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

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

parent aad6efad
......@@ -39,13 +39,13 @@ export default {
return DICT_TYPE
},
deletePackagingTypes() {
let a = []
this.form.channelList.forEach(item => {
item.packagingCreateReqVOList.forEach(i => {
return (index) => {
let a = []
this.form.channelList[index].packagingCreateReqVOList.forEach(i => {
a.push(...i.packagingTypes)
})
})
return a
return a
}
},
channelIdBlackList() {
let arr = []
......@@ -256,16 +256,17 @@ export default {
<el-col :span="3">
<el-select multiple v-model="itemOuter.channelIds">
<el-option
:disabled="channelIdBlackList.includes(item.channelId.toString()) && (!itemOuter.channelIds.includes(item.channelId.toString()))"
v-for="item in channelList" :value="item.channelId.toString()" :key="item.channelId"
:label="$l(item, 'name')"></el-option>
:disabled="channelIdBlackList.includes(item.channelId.toString()) && (!itemOuter.channelIds.includes(item.channelId.toString()))"
v-for="item in channelList" :value="item.channelId.toString()" :key="item.channelId"
:label="$l(item, 'name')"></el-option>
</el-select>
</el-col>
<el-col :span="3">
<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,9 +292,9 @@ 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))"
v-for="item in getDictDatas(DICT_TYPE.ECW_PACKAGING_TYPE)" :value="item.value" :key="item.value"
:label="$l(item, 'label')"></el-option>
: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>
</el-col>
<el-col :span="16">
......
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