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

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

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