Commit fab7bd06 authored by jingnan's avatar jingnan 👀

已分拣,批量修改库位先选库房,再选库位,库位可以多选,用逗号隔开号拼接

parent bb4841f3
......@@ -68,6 +68,16 @@ export default {
name: 'btnCodeEdit',
remindText: `responseData为接口返回数据`
}
},
{
key: 'multipleVal',
title: '多选值',
width: 1,
component: {
isLabelTop: true,
name: 'el-switch',
defaultValue: false
}
}
]
}
......
<template>
<div class="generalLinkageSelect-select">
<el-select ref="selectCom" v-model="selVal" placeholder="请选择" size="mini" :disabled="disabledVal" @change="changeVal">
<el-select ref="selectCom" v-model="selVal" placeholder="请选择" :multiple="isMultiple" size="mini" :disabled="disabledVal" @change="changeVal">
<el-option
v-for="item in options"
:key="item.value"
......@@ -35,7 +35,7 @@ export default {
default: () => {}
},
value: {
type: [Number, String, Object],
type: [Number, String, Object, Array],
default: () => ''
}
},
......@@ -47,7 +47,11 @@ export default {
linkageValue: ''
}
},
computed: {},
computed: {
isMultiple() {
return this.item.multipleVal || this.$utils._get(this.item, 'multipleVal') || false
}
},
watch: {
form: {
immediate: true,
......
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