|
|
|
@ -302,25 +302,28 @@
|
|
|
|
|
:wrapperCol="{
|
|
|
|
|
xs: { span: 25 },
|
|
|
|
|
sm: { span: 19 }
|
|
|
|
|
}"
|
|
|
|
|
has-feedback>
|
|
|
|
|
<a-select
|
|
|
|
|
show-search
|
|
|
|
|
placeholder="请选择工厂"
|
|
|
|
|
v-decorator="['factoryName']"
|
|
|
|
|
@select="ChangeFactory"
|
|
|
|
|
:default-active-first-option="false"
|
|
|
|
|
:show-arrow="false"
|
|
|
|
|
@search="getFactoryData"
|
|
|
|
|
@blur="getFactoryData"
|
|
|
|
|
:filter-option="filterOption"
|
|
|
|
|
:not-found-content="null"
|
|
|
|
|
:filterOption="filterOption"
|
|
|
|
|
allowClear>
|
|
|
|
|
<a-select-option v-for="item in inFactory" :key="item.id" :value="item.shortName">
|
|
|
|
|
{{ item.shortName }}
|
|
|
|
|
</a-select-option>
|
|
|
|
|
</a-select>
|
|
|
|
|
}">
|
|
|
|
|
<div style="display: flex;align-items: center;">
|
|
|
|
|
<a-select
|
|
|
|
|
show-search
|
|
|
|
|
placeholder="请选择工厂"
|
|
|
|
|
v-decorator="['factoryName']"
|
|
|
|
|
@change="ChangeFactory"
|
|
|
|
|
:default-active-first-option="false"
|
|
|
|
|
:show-arrow="false"
|
|
|
|
|
@search="getFactoryData"
|
|
|
|
|
@blur="getFactoryData"
|
|
|
|
|
:filter-option="filterOption"
|
|
|
|
|
style="width: 80%;margin-right: 20px;"
|
|
|
|
|
:not-found-content="null"
|
|
|
|
|
:filterOption="filterOption"
|
|
|
|
|
allowClear>
|
|
|
|
|
<a-select-option v-for="item in inFactory" :key="item.id" :value="item.shortName">
|
|
|
|
|
{{ item.shortName }}
|
|
|
|
|
</a-select-option>
|
|
|
|
|
</a-select>
|
|
|
|
|
<a v-if="addrList.length>0" @click="addrsFlag=true">地址</a>
|
|
|
|
|
</div>
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
|
</a-row>
|
|
|
|
@ -657,8 +660,8 @@ export default {
|
|
|
|
|
id: null,
|
|
|
|
|
columns: [
|
|
|
|
|
{
|
|
|
|
|
dataIndex: 'addrName',
|
|
|
|
|
key: 'addrName',
|
|
|
|
|
dataIndex: 'addr',
|
|
|
|
|
key: 'addr',
|
|
|
|
|
ellipsis: true,
|
|
|
|
|
width: 250,
|
|
|
|
|
title: '详细地址'
|
|
|
|
@ -825,7 +828,6 @@ export default {
|
|
|
|
|
mounted() { },
|
|
|
|
|
methods: {
|
|
|
|
|
ChangeFactory(e, option) {
|
|
|
|
|
console.log(e)
|
|
|
|
|
if (e !== undefined) {
|
|
|
|
|
this.inFactory.forEach(item => {
|
|
|
|
|
if (item.id == option.key) {
|
|
|
|
@ -840,6 +842,7 @@ export default {
|
|
|
|
|
const fullNameEN = item.fullNameEN ? item.fullNameEN : ''
|
|
|
|
|
const addr = item.addr ? item.addr : ''
|
|
|
|
|
const tel = item.tel ? item.tel : ''
|
|
|
|
|
this.addrList = []
|
|
|
|
|
this.form.setFieldsValue({ factoryAddr: fullNameEN + addr })
|
|
|
|
|
this.form.setFieldsValue({ factoryContact: chief + tel })
|
|
|
|
|
}
|
|
|
|
|