@@ -172,10 +172,16 @@ export default {
this.initData({ type, shopId: this.shopId,status:0,requestType:'changePrice'});
},
commitPrice(){
+ let that = this
if(this.priceArr.length == 0){
this.$msg('没有修改')
return;
}
+ this.$util.confirmModal({content:'确认修改?'},() => {
+ that.commitChange()
+ })
+ },
+ commitChange(){
let data = JSON.stringify(this.priceArr);
batchChangePrice({data}).then(res => {
if(res.code == 1){
@@ -134,6 +134,12 @@ export default {
this.productList = arr
commitChange(){
+ that.commitModify()
+ commitModify(){
let that = this
let targetId = this.option.id ||0
batchChangePrice({data:JSON.stringify(this.productList),changeType:'cg',targetId:targetId}).then(res => {