shish 3 лет назад
Родитель
Сommit
fb42078e9b

+ 6 - 0
ghsApp/src/admin/changePrice/list.vue

@@ -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){

+ 6 - 0
ghsApp/src/pagesPurchase/components/pageSuccess.vue

@@ -134,6 +134,12 @@ export default {
 			this.productList = arr
 		},
 		commitChange(){
+			let that = this
+			this.$util.confirmModal({content:'确认修改?'},() => {
+				that.commitModify()
+			})
+		},
+		commitModify(){
 			let that = this
 			let targetId = this.option.id ||0
 			batchChangePrice({data:JSON.stringify(this.productList),changeType:'cg',targetId:targetId}).then(res => {