From 6cde965343eda99445f34d6e7503659b6c1aefdc Mon Sep 17 00:00:00 2001
From: doum <doum>
Date: 星期三, 06 五月 2026 08:55:16 +0800
Subject: [PATCH] 支付宝支付dddadd

---
 small-program/shop/pages/write-off-a/write-off-a.vue |   33 +++++++++++++++++++++++++++++++++
 1 files changed, 33 insertions(+), 0 deletions(-)

diff --git a/small-program/shop/pages/write-off-a/write-off-a.vue b/small-program/shop/pages/write-off-a/write-off-a.vue
index 311061d..8adba82 100644
--- a/small-program/shop/pages/write-off-a/write-off-a.vue
+++ b/small-program/shop/pages/write-off-a/write-off-a.vue
@@ -155,6 +155,7 @@
 		</view>
 		<view class="footer" >
 			<view class="footer-btns">
+				<view class="btn you"  v-if="info.status >0 || info.status <=7  "   @click="printerOrder1()" >鎵撳嵃鏍囩</view>
 				<view class="btn you"  v-if="info.status ===1 ||info.status ===4  "   @click="show0=true" >鏀朵欢鏍搁攢</view>
 				<view class="btn you" v-if="info.status ===5 &&(info.overdueStatus ==0 || info.overdueStatus == 1)"  @click="show2=true" >纭鍒板簵</view>
 				<view class="btn you" v-if="info.status ===5 && (info.overdueStatus == 4 || info.overdueStatus == 2)"  @click="show1=true"  >鍙栦欢鏍搁攢</view>
@@ -290,6 +291,7 @@
 				id:null,
 				show1:false,
 				show0:false,
+				loading:false,
 				show3:false,
 				show2:false,
 				info:{},
@@ -318,6 +320,7 @@
 		onLoad(options) {
 			this.info={} 
 			this.show2=false
+			this.loading=false
 			this.show1=false
 			this.show0=false
 			this.show3=false
@@ -585,6 +588,35 @@
 					},1000) 
 				} 
 			}, 
+			async printerOrder(){
+				try{
+					var that =this
+					 that.$u.api.printOrderLabel({ orderId: this.id }).then(res=>{})
+				}catch(e){
+				} 
+				
+			},
+			async printerOrder1(){
+				if(this.loading){
+					return
+				}
+				this.loading =true
+				try{
+					var that =this
+					 that.$u.api.printOrderLabel({ orderId: this.id }).then(res=>{
+						 if (res.code === 200 ) {
+							 uni.showToast({
+							 	title:'鍙戣捣鎵撳嵃璇锋眰鎴愬姛',
+								icon:'none'
+							 })
+						 } 
+						 that.loading =false
+					 })
+				}catch(e){
+					this.loading =false
+				} 
+				
+			},
 			async shopVerifyOrderDo(){
 				var that =this
 				if (!this.form.images || this.form.images.length == 0) {
@@ -601,6 +633,7 @@
 						icon: 'success'
 					})
 					  uni.$emit('updateOrder',{info:this.info,delete:0})
+					  that.printerOrder()
 					 setTimeout(function(){
 						 that.getOrderDetail()
 					 },1000) 

--
Gitblit v1.9.3