From b92b0221ac04915bb8776c5bf51e65fc4c03b4ba Mon Sep 17 00:00:00 2001 From: 陶杰 <1378534974@qq.com> Date: 星期四, 10 十月 2024 17:38:46 +0800 Subject: [PATCH] 1.平台没有回复则不显示回复层 --- sub_pages/supplier/print/print-list.vue | 30 ++++++++++++++++++++---------- 1 files changed, 20 insertions(+), 10 deletions(-) diff --git a/sub_pages/supplier/print/print-list.vue b/sub_pages/supplier/print/print-list.vue index c2800c2..253d446 100644 --- a/sub_pages/supplier/print/print-list.vue +++ b/sub_pages/supplier/print/print-list.vue @@ -107,7 +107,7 @@ canvasWidth: 80, canvasHeight: 80, // buffSize: [], - buffIndex: 0, + // buffIndex: 0, // printNum: [], // printNumIndex: 0, // printerNum: 1, @@ -135,7 +135,7 @@ // list[j] = i; // j++ // } - + // for (var i = 1; i < 10; i++) { // numList[i - 1] = i // } @@ -145,18 +145,25 @@ that.oneTimeData = 20 // that.printNum = numList // that.printerNum = numList[0] - + }, - async onLoad() { + async onLoad(options) { var t = this.$storage.getItem('cache_delivery_order_print') || '' if (t) { this.items = JSON.parse(t) - var apitype = '' + var requrl = '' // #ifdef PUB_SUPPLIER - apitype = '/supplier' - // #endif - // #ifdef PUB_PARTNER // apitype = '/supplier' + if(options.source=='detail'){ + requrl = `/api/supplier/delivery/list/items/views` + + }else{ + requrl = `/api/supplier/delivery/list/items/views/new` + + } + // #endif + // #ifndef PUB_SUPPLIER + requrl = `/api/delivery/list/items/views` // #endif //获取详情接口 var ids = [] @@ -176,7 +183,7 @@ const { code, data - } = await this.$http.request('post', `/api${apitype}/delivery/list/items/views`, { + } = await this.$http.request('post', requrl, { data: { // id: this.item.id, ids: ids @@ -754,7 +761,10 @@ currentPrint++ that.currentPrint = currentPrint that.currentTime = 1 - that.Send(that.buffs[that.currentPrint - 1]) + // that.Send(that.buffs[that.currentPrint - 1]) + that.prepareSend(that.buffs[that.currentPrint - 1]) + + }, 500) } -- Gitblit v1.9.3