shish 3 лет назад
Родитель
Сommit
862c9bc128
2 измененных файлов с 2 добавлено и 3 удалено
  1. 1 2
      ghsApp/src/admin/item/detail.vue
  2. 1 1
      ghsApp/src/pagesPurchase/info.vue

+ 1 - 2
ghsApp/src/admin/item/detail.vue

@@ -303,7 +303,6 @@ export default {
 				that.printFocus = false
 				return
 			}
-
 			let currentNum = this.printNum
 			let itemId = this.printItemId
       if (currentNum == null) {
@@ -322,9 +321,9 @@ export default {
 				that.printFocus = false
 				return
 			}
-
 			print({id:itemId,num:currentNum}).then(res=>{
 				if(res.code == 1){
+					that.printLabelShow = false
 					that.$msg(res.msg)
 				} else if(res.code == 0){
 					that.printLabelShow = false

+ 1 - 1
ghsApp/src/pagesPurchase/info.vue

@@ -293,7 +293,7 @@ export default {
 		},
 		printLabel(item,type){
 			this.printType = type
-			this.printItemId = item.itemId
+			this.printItemId = item.productId
 			this.printLabelShow = true
 			this.printNum = item.itemNum
 		},