From 2324366f7a02f2c62fef36dcd0d74e6c385766dd Mon Sep 17 00:00:00 2001
From: xuxueyang <xuxy@fengyuntec.com>
Date: 星期五, 27 九月 2024 11:46:09 +0800
Subject: [PATCH] update 打印(供应商

---
 sub_pages/supplier/print/print-list.vue |   27 +++++++++++++++++----------
 1 files changed, 17 insertions(+), 10 deletions(-)

diff --git a/sub_pages/supplier/print/print-list.vue b/sub_pages/supplier/print/print-list.vue
index a4e73c9..253d446 100644
--- a/sub_pages/supplier/print/print-list.vue
+++ b/sub_pages/supplier/print/print-list.vue
@@ -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
@@ -756,8 +763,8 @@
 									that.currentTime = 1
 									// that.Send(that.buffs[that.currentPrint - 1])
 									that.prepareSend(that.buffs[that.currentPrint - 1])
-									
-									
+
+
 								}, 500)
 
 							}

--
Gitblit v1.9.3