| | |
| | | var t = this.$storage.getItem('cache_delivery_order_print') || '' |
| | | if (t) { |
| | | this.item = JSON.parse(t) |
| | | var apitype = '' |
| | | // #ifdef PUB_SUPPLIER |
| | | apitype = '/supplier' |
| | | // #endif |
| | | // #ifdef PUB_PARTNER |
| | | // apitype = '/supplier' |
| | | // #endif |
| | | //获取详情接口 |
| | | this.$message.showLoading() |
| | | const { |
| | | code, |
| | | data |
| | | } = await this.$http.request('get', '/api/supplier/delivery/list/items/view', { |
| | | } = await this.$http.request('get', `/api${apitype}/delivery/list/items/view`, { |
| | | params: { |
| | | id: this.item.id |
| | | } |
| | |
| | | } |
| | | command.setText(30, 40, "TSS24.BF2", 1, 1, "" + (that.item.supplierName || '-')) |
| | | command.setText(200, 40, "TSS24.BF2", 1, 1, "" + (that.item.warehouseName || '待分配')) |
| | | |
| | | command.setText(30, 80, "TSS24.BF2", 1, 1, "" + (that.item.flowerCategory || '')) |
| | | var flowerCategory = that.item.flowerCategory |
| | | if (flowerCategory) { |
| | | //只取二级分类 |
| | | var tarr = flowerCategory.split("/") |
| | | if (tarr.length >= 2) { |
| | | flowerCategory = tarr[tarr.length - 1] |
| | | } |
| | | } |
| | | command.setText(30, 80, "TSS24.BF2", 1, 1, "" + (flowerCategory || '')) |
| | | command.setText(200, 80, "TSS24.BF2", 1, 1, "库位:" + (that.item.warehouseLocationCode || '')) |
| | | |
| | | command.setText(30, 120, "TSS24.BF2", 1, 1, "等级:" + (that.item.flowerLevelStr || '')) |
| | | command.setText(200, 120, "TSS24.BF2", 1, 1, "" + (that.item.flowerColor || '')) |
| | | |
| | | command.setText(30, 160, "TSS24.BF2", 1, 1, "规格: " + (that.item.flowerUnit || '-')) |
| | | command.setText(200, 160, "TSS24.BF2", 1, 1, "成熟度: " + (paramsmap['成熟度'] || '-')) |
| | | |
| | | command.setText(30, 200, "TSS24.BF2", 1, 1, "枝长: " + (paramsmap['枝长'] || '-')) |
| | | // 规格: |
| | | command.setText(30, 160, "TSS24.BF2", 1, 1, "" + (that.item.flowerUnit || '-')) |
| | | // 成熟度: |
| | | command.setText(200, 160, "TSS24.BF2", 1, 1, "" + (paramsmap['成熟度'] || '-')) |
| | | // 枝长: |
| | | command.setText(30, 200, "TSS24.BF2", 1, 1, "" + (paramsmap['枝长'] || '-')) |
| | | command.setText(200, 200, "TSS24.BF2", 1, 1, that.$util.toDate(new Date())) |
| | | |
| | | command.setText(100, 230, "TSS24.BF2", 1, 1, "————————————") |
| | | command.setText(60, 230, "TSS24.BF2", 1, 1, "————————————") |
| | | |
| | | command.setText(30, 260, "TSS24.BF2", 1, 1, "花满芫") |
| | | command.setText(200, 260, "TSS24.BF2", 1, 1, `数目: ${i+1}/${that.item.num}`) |
| | |
| | | font-size: 28rpx; |
| | | color: #000000; |
| | | line-height: 40rpx; |
| | | |
| | | .level { |
| | | font-weight: 400; |
| | | font-size: 28rpx; |
| | |
| | | font-size: 28rpx; |
| | | color: #000000; |
| | | line-height: 40rpx; |
| | | |
| | | .level { |
| | | font-weight: 400; |
| | | font-size: 28rpx; |