浏览代码

采购修改价格

shish 3 年之前
父节点
当前提交
f1f85f6298
共有 2 个文件被更改,包括 3 次插入2 次删除
  1. 2 1
      ghsApp/src/pagesPurchase/components/pageSuccess.vue
  2. 1 1
      ghsApp/src/pagesPurchase/details.vue

+ 2 - 1
ghsApp/src/pagesPurchase/components/pageSuccess.vue

@@ -123,7 +123,8 @@ export default {
 		},
 		commitChange(){
 			let that = this
-			batchChangePrice({data:JSON.stringify(this.productList)}).then(res => {
+			let targetId = this.option.id ||0
+			batchChangePrice({data:JSON.stringify(this.productList),changeType:'cg',targetId:targetId}).then(res => {
 				uni.showToast({title:res.msg})
 				if(res.code == 1){
 					that.$msg('修改成功')

+ 1 - 1
ghsApp/src/pagesPurchase/details.vue

@@ -347,7 +347,7 @@ export default {
 				if(res.code == 1 && res.data.orderSn){
 					uni.setStorageSync('flowersItemInfo', itemInfo)
 					that.removeFromSaveDirect()
-					that.$util.pageTo({url: "/pagesPurchase/components/pageSuccess",type:2,query: {orderSn: res.data.orderSn}})
+					that.$util.pageTo({url: "/pagesPurchase/components/pageSuccess",type:2,query: {orderSn: res.data.orderSn,id:res.data.id}})
 				}
 			})
 		},