From 12b2c447a6006f99284c4946b3d6f70cbf43280c Mon Sep 17 00:00:00 2001 From: xuxy <1059738716@qq.com> Date: 星期六, 10 八月 2024 18:26:16 +0800 Subject: [PATCH] 1 --- sub_pages/supplier/print/print-list.vue | 35 ++++++++++++++++++++++++++--------- 1 files changed, 26 insertions(+), 9 deletions(-) diff --git a/sub_pages/supplier/print/print-list.vue b/sub_pages/supplier/print/print-list.vue index af0d710..9bf47d5 100644 --- a/sub_pages/supplier/print/print-list.vue +++ b/sub_pages/supplier/print/print-list.vue @@ -145,12 +145,19 @@ 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 } @@ -526,20 +533,28 @@ } 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}`) @@ -805,6 +820,7 @@ font-size: 28rpx; color: #000000; line-height: 40rpx; + .level { font-weight: 400; font-size: 28rpx; @@ -841,6 +857,7 @@ font-size: 28rpx; color: #000000; line-height: 40rpx; + .level { font-weight: 400; font-size: 28rpx; -- Gitblit v1.9.3