shish 4 лет назад
Родитель
Сommit
7f0eac52b0
2 измененных файлов с 5 добавлено и 3 удалено
  1. 2 2
      ghsApp/src/admin/item/list.vue
  2. 3 1
      hdPad/src/mixins/product.js

+ 2 - 2
ghsApp/src/admin/item/list.vue

@@ -161,7 +161,7 @@ export default {
 			line={};
 			line.text= itemName;
 			line.rotation=0;
-			line.x=30;
+			line.x=60;
 			line.y=15;
 			line.xscal=2;
 			line.yscal=2;
@@ -170,7 +170,7 @@ export default {
 			//添加条型码
 			line={};
 			line.barcode=itemId;
-			line.x=30;
+			line.x=60;
 			line.y=80;
 			line.type="CODE128";
 			line.width=2;//条型宽度,这里的宽指的是 条型码 竖条的宽度,不是整个条型码的宽度

+ 3 - 1
hdPad/src/mixins/product.js

@@ -232,7 +232,9 @@ export default {
 			this.replaceItemFn(item)			
 		},
 		addItemModelHidden() {
-			this.$refs.selectNumPriceRef.close()
+			if(this.$refs.selectNumPriceRef){
+				this.$refs.selectNumPriceRef.close()
+			}
 			this.customData = {};
 		},
 		async takeItem(code){