Commit 82e4d334 authored by 邓春圆's avatar 邓春圆

全部线路列表-编辑线路渠道清关费,一个线路下编辑多个渠道清关费,第一个渠道选择了包装=箱,第二个渠道就无法选择箱 BUG修复

parent aad6efad
......@@ -39,13 +39,13 @@ export default {
return DICT_TYPE
},
deletePackagingTypes() {
return (index) => {
let a = []
this.form.channelList.forEach(item => {
item.packagingCreateReqVOList.forEach(i => {
this.form.channelList[index].packagingCreateReqVOList.forEach(i => {
a.push(...i.packagingTypes)
})
})
return a
}
},
channelIdBlackList() {
let arr = []
......@@ -265,7 +265,8 @@ export default {
<el-button size="mini" type="primary" @click="newChannelsAdd(index)">新增渠道</el-button>
</el-col>
<el-col :span="3">
<el-button size="mini" type="danger" :disabled="form.channelList.length === 1" @click="channelsDelete(index)">
<el-button size="mini" type="danger" :disabled="form.channelList.length === 1"
@click="channelsDelete(index)">
删除当前渠道
</el-button>
</el-col>
......@@ -291,7 +292,7 @@ export default {
<el-col :span="5">
<el-select multiple v-model="itemm.packagingTypes">
<el-option
:disabled="deletePackagingTypes.includes(item.value) && (!itemm.packagingTypes.includes(item.value))"
:disabled="deletePackagingTypes(index).includes(item.value) && (!itemm.packagingTypes.includes(item.value))"
v-for="item in getDictDatas(DICT_TYPE.ECW_PACKAGING_TYPE)" :value="item.value" :key="item.value"
:label="$l(item, 'label')"></el-option>
</el-select>
......
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