Selaa lähdekoodia

Merge branch 'master' of http://git.huaml.com/zhh/front-end

shish 5 vuotta sitten
vanhempi
commit
f93fa986c6
2 muutettua tiedostoa jossa 12 lisäystä ja 0 poistoa
  1. 6 0
      ghs/src/views/item/list.vue
  2. 6 0
      hd/src/views/item/list.vue

+ 6 - 0
ghs/src/views/item/list.vue

@@ -463,6 +463,12 @@ export default {
     },
 
     hideSort (e) {
+      if(this.$util.isEmpty(this.initData)){
+        this.sort.status = false;
+        this.canAddPrice = false
+        this.costPrice = false
+        return;
+      }
       this.dataList.form.data = JSON.stringify(this.initData)
       this.$service.product.productBatchUpdate(this.dataList.form).then(res => {
         console.log(res)

+ 6 - 0
hd/src/views/item/list.vue

@@ -463,6 +463,12 @@
 			},
 
 			hideSort (e) {
+				if(this.$util.isEmpty(this.initData)){
+					this.sort.status = false;
+					this.canAddPrice = false
+					this.costPrice = false
+					return;
+				}
 				this.dataList.form.data = JSON.stringify(this.initData)
 				this.$service.product.productBatchUpdate(this.dataList.form).then(res => {
 					console.log(res)