|
@@ -207,11 +207,19 @@
|
|
|
:labelCol="BaseTool.Constant.labelCol"
|
|
|
:wrapperCol="BaseTool.Constant.wrapperCol"
|
|
|
>
|
|
|
- <a-input
|
|
|
- style="width: 70%"
|
|
|
- disabled
|
|
|
- v-decorator="['producerName', {rules: [{required: true, message: '生产商不能为空'}]}]" />
|
|
|
- <a-button style="width: 30%" type="primary" @click="handleProducerSelect">选择</a-button>
|
|
|
+ <a-select
|
|
|
+ show-search
|
|
|
+ option-filter-prop="children"
|
|
|
+ :filter-option="filterOptionProducer"
|
|
|
+ v-decorator="['producerId']"
|
|
|
+ placeholder="请选择">
|
|
|
+ <a-select-option
|
|
|
+ v-for="({id, name}) in producerList"
|
|
|
+ :key="id"
|
|
|
+ :label="name"
|
|
|
+ :value="id">{{ name }}
|
|
|
+ </a-select-option>
|
|
|
+ </a-select>
|
|
|
</a-form-item>
|
|
|
<a-form-item
|
|
|
label="生产商"
|
|
@@ -927,6 +935,7 @@ import { queryUser } from '@/api/upms/user'
|
|
|
import DetailList from '@/components/tools/DetailList'
|
|
|
import SbInfoSelectModal from '@/views/sb/info/modules/SbInfoSelectModal'
|
|
|
import ParamForm from './ParamForm'
|
|
|
+import { queryFirmProducer } from '@/api/firm/producer'
|
|
|
const DetailListItem = DetailList.Item
|
|
|
|
|
|
export default {
|
|
@@ -967,6 +976,7 @@ export default {
|
|
|
isChildMap: {},
|
|
|
isShowMap: {},
|
|
|
isFinancingMap: {},
|
|
|
+ producerList: {},
|
|
|
userList: {},
|
|
|
unitMap: {},
|
|
|
sbInfoSelectType: null,
|
|
@@ -1006,6 +1016,9 @@ export default {
|
|
|
this.isChildMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.SB_IS_CHILD)
|
|
|
this.isShowMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.SB_IS_SHOW)
|
|
|
this.isFinancingMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.SB_IS_FINANCING)
|
|
|
+ queryFirmProducer({}).then(res => {
|
|
|
+ this.producerList = res.data
|
|
|
+ })
|
|
|
},
|
|
|
methods: {
|
|
|
base (record, type) {
|
|
@@ -1458,6 +1471,11 @@ export default {
|
|
|
'producerName': row.name
|
|
|
})
|
|
|
},
|
|
|
+ filterOptionProducer (input, option) {
|
|
|
+ return (
|
|
|
+ option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
+ )
|
|
|
+ },
|
|
|
setFileList (info, type) {
|
|
|
// { file, fileList }
|
|
|
|