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

隐藏归属仓库字段

parent 4b1448e3
......@@ -49,19 +49,19 @@
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item :label="$t('归属仓库')" prop="warehouseIds">
<!-- <el-select v-model="form.wareHouseIds">
<el-option v-for="item in warehouseList" :value="item.id" :label="item.nameZh"/>
</el-select> -->
<el-checkbox-group v-model="warehouseIdsArr">
<!--label需要是字符串,因为回显时分解后为字符串格式-->
<el-checkbox v-for="item in warehouseList" :label="`${item.id}`" :key="item.id" >{{item.titleZh}}</el-checkbox>
</el-checkbox-group>
<!-- <el-input
v-model="form.warehouseIds"
placeholder="请输入归属仓库Ids"
/> -->
</el-form-item>
<!-- <el-form-item :label="$t('归属仓库')" prop="warehouseIds">-->
<!-- &lt;!&ndash; <el-select v-model="form.wareHouseIds">-->
<!-- <el-option v-for="item in warehouseList" :value="item.id" :label="item.nameZh"/>-->
<!-- </el-select> &ndash;&gt;-->
<!-- <el-checkbox-group v-model="warehouseIdsArr">-->
<!-- &lt;!&ndash;label需要是字符串,因为回显时分解后为字符串格式&ndash;&gt;-->
<!-- <el-checkbox v-for="item in warehouseList" :label="`${item.id}`" :key="item.id" >{{item.titleZh}}</el-checkbox>-->
<!-- </el-checkbox-group>-->
<!-- &lt;!&ndash; <el-input-->
<!-- v-model="form.warehouseIds"-->
<!-- placeholder="请输入归属仓库Ids"-->
<!-- /> &ndash;&gt;-->
<!-- </el-form-item>-->
</el-col>
<el-col :span="12">
<el-form-item :label="$t('排序')" prop="sort">
......@@ -259,9 +259,9 @@ export default {
this.form.channelPackagingList.forEach(item =>{
item.packagingTypes = item.packagingTypes && item.packagingTypes.length !== 0 ? item.packagingTypes.split(',') : []
})
if(this.form.warehouseIds.length){
this.warehouseIdsArr = this.form.warehouseIds.split(',')?.filter(item => !!item)
}
// if(this.form.warehouseIds.length){
// this.warehouseIdsArr = this.form.warehouseIds.split(',')?.filter(item => !!item)
// }
if(this.form.bubbleWeightRatio){
this.form.bubbleWeightRatio = this.form.bubbleWeightRatio * 100
}
......@@ -372,7 +372,7 @@ export default {
}
})
if (derail) return;
this.form.warehouseIds = this.warehouseIdsArr.join(',')
// this.form.warehouseIds = this.warehouseIdsArr.join(',')
let form = JSON.parse(JSON.stringify(this.form))
let attrId = this.form.attrId
attrId = attrId.join(',')
......
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