|
@@ -31,7 +31,21 @@
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<template v-if="ruleForm.customerType !== 2">
|
|
<template v-if="ruleForm.customerType !== 2">
|
|
<el-form-item label="客户名称" prop="customerName">
|
|
<el-form-item label="客户名称" prop="customerName">
|
|
- <custom-select
|
|
|
|
|
|
+ <el-select
|
|
|
|
+ v-model="ruleForm.customerName"
|
|
|
|
+ :disabled="disabled"
|
|
|
|
+ :placeholder="placeholder"
|
|
|
|
+ :clearable="false"
|
|
|
|
+ @change="searchChange"
|
|
|
|
+ >
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="item in listData"
|
|
|
|
+ :key="item.customerName"
|
|
|
|
+ :label="item.customerName"
|
|
|
|
+ :value="item.customerName"
|
|
|
|
+ />
|
|
|
|
+ </el-select>
|
|
|
|
+ <!-- <custom-select
|
|
:value.sync="ruleForm.customerName"
|
|
:value.sync="ruleForm.customerName"
|
|
:disabled="disabled"
|
|
:disabled="disabled"
|
|
:placeholder="placeholder"
|
|
:placeholder="placeholder"
|
|
@@ -45,7 +59,7 @@
|
|
:label="item.corporateName"
|
|
:label="item.corporateName"
|
|
:value="item.corporateName"
|
|
:value="item.corporateName"
|
|
/>
|
|
/>
|
|
- </custom-select>
|
|
|
|
|
|
+ </custom-select> -->
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="证件种类" prop="certificateType">
|
|
<el-form-item label="证件种类" prop="certificateType">
|
|
<el-select
|
|
<el-select
|
|
@@ -253,14 +267,14 @@
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import { mapGetters } from 'vuex'
|
|
import { mapGetters } from 'vuex'
|
|
-import { getEnterpriseInspectionInfo } from '@/api/dictionary'
|
|
|
|
|
|
+import { getEnterpriseCompany } from '@/api/accountCenter/openInfoManage'
|
|
import { getCompanyInfoFormSocialCreditCode } from '@/api/dictionary'
|
|
import { getCompanyInfoFormSocialCreditCode } from '@/api/dictionary'
|
|
import qichachaInfo from '../../mixins/qichachaInfo'
|
|
import qichachaInfo from '../../mixins/qichachaInfo'
|
|
import { validPhone } from '@/utils/validate'
|
|
import { validPhone } from '@/utils/validate'
|
|
|
|
|
|
export default {
|
|
export default {
|
|
components: {
|
|
components: {
|
|
- CustomSelect: () => import('@/components/CustomSelect/index.vue')
|
|
|
|
|
|
+ // CustomSelect: () => import('@/components/CustomSelect/index.vue')
|
|
},
|
|
},
|
|
mixins: [qichachaInfo],
|
|
mixins: [qichachaInfo],
|
|
props: {
|
|
props: {
|
|
@@ -281,7 +295,7 @@ export default {
|
|
},
|
|
},
|
|
placeholder: {
|
|
placeholder: {
|
|
type: String,
|
|
type: String,
|
|
- default: '请选择公司名称'
|
|
|
|
|
|
+ default: '请选择客户名称'
|
|
}
|
|
}
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
@@ -368,6 +382,7 @@ export default {
|
|
this.backFileList = deepData.backFile ? [deepData.backFile] : []
|
|
this.backFileList = deepData.backFile ? [deepData.backFile] : []
|
|
|
|
|
|
this.ruleForm.periodValidityDate = this.ruleForm.periodOfValidityFrom ? [this.ruleForm.periodOfValidityFrom, this.ruleForm.periodOfValidity] : []
|
|
this.ruleForm.periodValidityDate = this.ruleForm.periodOfValidityFrom ? [this.ruleForm.periodOfValidityFrom, this.ruleForm.periodOfValidity] : []
|
|
|
|
+ this.searchClick(this.ruleForm.customerType)
|
|
}
|
|
}
|
|
},
|
|
},
|
|
immediate: true,
|
|
immediate: true,
|
|
@@ -389,26 +404,27 @@ export default {
|
|
}
|
|
}
|
|
this.ruleForm.customerType = val
|
|
this.ruleForm.customerType = val
|
|
this.key += 1
|
|
this.key += 1
|
|
|
|
+ this.searchClick(val)
|
|
// this.getConpanyInfo()
|
|
// this.getConpanyInfo()
|
|
},
|
|
},
|
|
searchClick(val) {
|
|
searchClick(val) {
|
|
- getEnterpriseInspectionInfo({ keyword: val }).then(({ data }) => {
|
|
|
|
|
|
+ getEnterpriseCompany({ customerType: val }).then(({ data }) => {
|
|
this.listData = data
|
|
this.listData = data
|
|
})
|
|
})
|
|
},
|
|
},
|
|
searchChange(val) {
|
|
searchChange(val) {
|
|
- const obj = this.listData.find((item) => item.corporateName === val)
|
|
|
|
|
|
+ const obj = this.listData.find((item) => item.customerName === val)
|
|
if (!obj) return
|
|
if (!obj) return
|
|
const {
|
|
const {
|
|
socialCreditCode,
|
|
socialCreditCode,
|
|
- address,
|
|
|
|
|
|
+ registeredAddress,
|
|
legalRepresentative
|
|
legalRepresentative
|
|
} = obj
|
|
} = obj
|
|
this.ruleForm = {
|
|
this.ruleForm = {
|
|
...this.ruleForm,
|
|
...this.ruleForm,
|
|
socialCreditCode,
|
|
socialCreditCode,
|
|
- registeredAddress: address,
|
|
|
|
- businessAddress: address
|
|
|
|
|
|
+ registeredAddress: registeredAddress,
|
|
|
|
+ businessAddress: registeredAddress
|
|
}
|
|
}
|
|
// 法定代表人
|
|
// 法定代表人
|
|
this.$emit('getLegalRepresentative', legalRepresentative)
|
|
this.$emit('getLegalRepresentative', legalRepresentative)
|