|
|
@@ -210,10 +210,18 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
commitChange(){
|
|
|
+ let that = this
|
|
|
let data = JSON.stringify(this.priceList);
|
|
|
batchChangePrice({data:data,appVersion:1}).then(res => {
|
|
|
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', })
|
|
|
})
|