Commit 3903df1f by 张权

删除参数

1 parent 1cb2798a
...@@ -358,9 +358,14 @@ export default { ...@@ -358,9 +358,14 @@ export default {
firstObj.packageCode = 'PC0010' firstObj.packageCode = 'PC0010'
params.push(firstObj) params.push(firstObj)
} }
console.log(params, '????????????') let targetParams = {
openCostPrice : this.costPrice ? 1 : 0,
createDetailRequests: params
}
if(this.showGh) delete targetParams.createDetailRequests
if (this.add == true) { if (this.add == true) {
this.$apis.openconfig.addConfig({ merchantIds: this.merchantIds, openCostPrice : this.costPrice ? 1 : 0, createDetailRequests: params }).then(res => { targetParams.merchantIds = this.merchantIds,
this.$apis.openconfig.addConfig(targetParams).then(res => {
if (res.code == '32') { if (res.code == '32') {
this.$message.error('请选择商户') this.$message.error('请选择商户')
} else if (res.code == '0') { } else if (res.code == '0') {
...@@ -368,7 +373,8 @@ export default { ...@@ -368,7 +373,8 @@ export default {
} }
}) })
} else { } else {
this.$apis.openconfig.modifyConfig({ id: this.id , openCostPrice : this.costPrice ? 1 : 0, createDetailRequests: params }).then(res => { targetParams.id = this.id
this.$apis.openconfig.modifyConfig(targetParams).then(res => {
console.log(res, '12313') console.log(res, '12313')
if (res.code == '32') { if (res.code == '32') {
this.$message.error('请正确勾选信息') this.$message.error('请正确勾选信息')
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!