Commit b6360729 authored by 邓春圆's avatar 邓春圆

复制添加默认值

parent 07a04f39
...@@ -294,7 +294,16 @@ export default { ...@@ -294,7 +294,16 @@ export default {
this.form.channelPackagingList[index].channelPriceStepClearanceList[indexx] = p; this.form.channelPackagingList[index].channelPriceStepClearanceList[indexx] = p;
} }
let it = this.form.channelPackagingList[index].channelPriceStepClearanceList[indexx] let it = this.form.channelPackagingList[index].channelPriceStepClearanceList[indexx]
this.form.channelPackagingList[index].channelPriceStepClearanceList[indexx] = {...p,...it,clearancePrice:itemm.clearancePrice,clearancePriceUnit:itemm.clearancePriceUnit,clearanceVolumeUnit:itemm.clearanceVolumeUnit} ; this.form.channelPackagingList[index].channelPriceStepClearanceList[indexx] = {
...p,
...it,
clearancePrice:itemm.clearancePrice,
clearancePriceUnit:itemm.clearancePriceUnit,
clearanceVolumeUnit:itemm.clearanceVolumeUnit,
endNum:itemm.endNum,
startNum:itemm.startNum,
weightUnit:itemm.weightUnit
} ;
}) })
}) })
this.$forceUpdate() this.$forceUpdate()
......
...@@ -424,16 +424,19 @@ export default { ...@@ -424,16 +424,19 @@ export default {
this.form.priceStepClearanceList[index].clearancePrice = item.clearancePrice this.form.priceStepClearanceList[index].clearancePrice = item.clearancePrice
this.form.priceStepClearanceList[index].clearancePriceUnit = item.clearancePriceUnit this.form.priceStepClearanceList[index].clearancePriceUnit = item.clearancePriceUnit
this.form.priceStepClearanceList[index].clearanceVolumeUnit = item.clearanceVolumeUnit this.form.priceStepClearanceList[index].clearanceVolumeUnit = item.clearanceVolumeUnit
this.form.priceStepClearanceList[index].endNum = item.endNum
this.form.priceStepClearanceList[index].startNum = item.startNum
this.form.priceStepClearanceList[index].weightUnit = item.weightUnit
}else { }else {
let p = { let p = {
"channelId":'', "channelId":'',
"clearancePrice":item.clearancePrice, "clearancePrice":item.clearancePrice,
"clearancePriceUnit":item.clearancePriceUnit, "clearancePriceUnit":item.clearancePriceUnit,
"clearanceVolumeUnit":item.clearanceVolumeUnit, "clearanceVolumeUnit":item.clearanceVolumeUnit,
"endNum":'', "endNum":item.endNum,
"packagingId":'', "packagingId":'',
"startNum":'', "startNum":item.startNum,
"weightUnit":'' "weightUnit":item.weightUnit
} }
this.form.priceStepClearanceList.push(p) this.form.priceStepClearanceList.push(p)
} }
......
...@@ -154,16 +154,19 @@ export default { ...@@ -154,16 +154,19 @@ export default {
this.form.priceStepClearanceList[index].clearancePrice = item.clearancePrice this.form.priceStepClearanceList[index].clearancePrice = item.clearancePrice
this.form.priceStepClearanceList[index].clearancePriceUnit = item.clearancePriceUnit this.form.priceStepClearanceList[index].clearancePriceUnit = item.clearancePriceUnit
this.form.priceStepClearanceList[index].clearanceVolumeUnit = item.clearanceVolumeUnit this.form.priceStepClearanceList[index].clearanceVolumeUnit = item.clearanceVolumeUnit
this.form.priceStepClearanceList[index].endNum = item.endNum
this.form.priceStepClearanceList[index].startNum = item.startNum
this.form.priceStepClearanceList[index].weightUnit = item.weightUnit
}else { }else {
let p = { let p = {
"channelId":'', "channelId":'',
"clearancePrice":item.clearancePrice, "clearancePrice":item.clearancePrice,
"clearancePriceUnit":item.clearancePriceUnit, "clearancePriceUnit":item.clearancePriceUnit,
"clearanceVolumeUnit":item.clearanceVolumeUnit, "clearanceVolumeUnit":item.clearanceVolumeUnit,
"endNum":'', "endNum":item.endNum,
"packagingId":'', "packagingId":'',
"startNum":'', "startNum":item.startNum,
"weightUnit":'' "weightUnit":item.weightUnit
} }
this.form.priceStepClearanceList.push(p) this.form.priceStepClearanceList.push(p)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment