Commit 1ef2c61f authored by 邓春圆's avatar 邓春圆

复制包装类型

parent dace2a39
...@@ -274,11 +274,12 @@ export default { ...@@ -274,11 +274,12 @@ export default {
getChannel(val).then((res) => { getChannel(val).then((res) => {
console.log(res.data,'data') console.log(res.data,'data')
res.data.channelPackagingList.forEach((item,index) =>{ res.data.channelPackagingList.forEach((item,index) =>{
if(!this.form.channelPackagingList[index]){ this.form.channelPackagingList[index] = { airWeightLimit:item.airWeightLimit, packagingTypes: item.packagingTypes ? item.packagingTypes.split(',') : [], channelPriceStepClearanceList:[],}
this.form.channelPackagingList[index] = { airWeightLimit:item.airWeightLimit, packagingTypes:[], channelPriceStepClearanceList:[],} // if(!this.form.channelPackagingList[index]){
}else { // this.form.channelPackagingList[index] = { airWeightLimit:item.airWeightLimit, packagingTypes:item.packagingTypes ? item.packagingTypes.split(',') : [], channelPriceStepClearanceList:[],}
this.form.channelPackagingList[index] = { airWeightLimit:item.airWeightLimit, packagingTypes: [], channelPriceStepClearanceList:[],} // }else {
} //
// }
item.channelPriceStepClearanceList.forEach((itemm, indexx) => { item.channelPriceStepClearanceList.forEach((itemm, indexx) => {
let p = { let p = {
"channelId":'', "channelId":'',
......
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