Răsfoiți Sursa

打印提示

shish 4 ani în urmă
părinte
comite
86d2b8dbd0
2 a modificat fișierele cu 24 adăugiri și 16 ștergeri
  1. 12 8
      ghsApp/src/pagesPurchase/info.vue
  2. 12 8
      hdApp/src/admin/goods/plantCgDetail.vue

+ 12 - 8
ghsApp/src/pagesPurchase/info.vue

@@ -214,18 +214,22 @@ export default {
 	methods: {
 		printLabel(item){
 			let that = this
-			printItem({id:item.id}).then(res=>{
-				if(res.code == 1){
-					that.$msg(res.msg)
-				}	
+			that.$util.confirmModal({content:'确认打印'},() => {
+				printItem({id:item.id}).then(res=>{
+					if(res.code == 1){
+						that.$msg(res.msg)
+					}	
+				})
 			})
 		},
 		printAllLabel(item){
 			let that = this
-			printAll({orderSn:item.orderSn}).then(res=>{
-				if(res.code == 1){
-					that.$msg(res.msg)
-				}
+			that.$util.confirmModal({content:'确认打印'},() => {
+				printAll({orderSn:item.orderSn}).then(res=>{
+					if(res.code == 1){
+						that.$msg(res.msg)
+					}
+				})          
 			})
 		},
 		goToClear (item) {

+ 12 - 8
hdApp/src/admin/goods/plantCgDetail.vue

@@ -129,18 +129,22 @@ export default {
   methods: {
 		printLabel(item){
       let that = this
-      printItem({id:item.id}).then(res=>{
-        if(res.code == 1){
-          that.$msg(res.msg)
-        }
+      that.$util.confirmModal({content:'确认打印'},() => {
+        printItem({id:item.id}).then(res=>{
+          if(res.code == 1){
+            that.$msg(res.msg)
+          }
+        })
       })
 		},
 		printAllLabel(item){
 			let that = this
-      printAll({orderSn:item.orderSn}).then(res=>{
-        if(res.code == 1){
-          that.$msg(res.msg)
-        }
+      that.$util.confirmModal({content:'确认打印'},() => {
+        printAll({orderSn:item.orderSn}).then(res=>{
+          if(res.code == 1){
+            that.$msg(res.msg)
+          }
+        })
       })
 		},
     copy (val) {