shish 2 anni fa
parent
commit
c616136d28
1 ha cambiato i file con 9 aggiunte e 1 eliminazioni
  1. 9 1
      ghsApp/src/admin/changePrice/list2.vue

+ 9 - 1
ghsApp/src/admin/changePrice/list2.vue

@@ -210,10 +210,18 @@ export default {
 			})
 			})
 		},
 		},
 		commitChange(){
 		commitChange(){
+			let that = this
 			let data = JSON.stringify(this.priceList);
 			let data = JSON.stringify(this.priceList);
 			batchChangePrice({data:data,appVersion:1}).then(res => {
 			batchChangePrice({data:data,appVersion:1}).then(res => {
 					if(res.code == 1){
 					if(res.code == 1){
-						this.priceList = []
+
+						that.priceList.forEach(function(value,index,array){
+							that.$refs[`productRef${value.id}`][0].hjModifyPrice = ''
+							that.$refs[`productRef${value.id}`][0].modifyPrice = ''
+							that.$refs[`productRef${value.id}`][0].skModifyPrice = ''
+						})
+
+						that.priceList = []
 					}
 					}
 					uni.showToast({ title: '修改成功', icon: 'success', })
 					uni.showToast({ title: '修改成功', icon: 'success', })
 				})
 				})