|
|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<ele-modal
|
|
|
- custom-class="ele-dialog-form long-dialog-form"
|
|
|
+ custom-class="ele-dialog-form long-dialog-form"
|
|
|
:centered="true"
|
|
|
v-if="visible"
|
|
|
:visible.sync="visible"
|
|
|
@@ -25,7 +25,7 @@
|
|
|
label="客户分类:"
|
|
|
prop="categoryId"
|
|
|
>
|
|
|
- {{form.categoryName}}
|
|
|
+ {{ form.categoryName }}
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
@@ -34,47 +34,57 @@
|
|
|
prop="deptId"
|
|
|
style="margin-bottom: 22px"
|
|
|
>
|
|
|
- {{otherForm.deptName}}
|
|
|
+ {{ otherForm.deptName }}
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="业务员:" prop="salesmanId">
|
|
|
- {{otherForm.salesmanName}}
|
|
|
+ {{ otherForm.salesmanName }}
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="客户名称:" prop="name">
|
|
|
- {{form.name}}
|
|
|
+ {{ form.name }}
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="客户代号:" prop="serialNo">
|
|
|
- {{form.serialNo}}
|
|
|
+ {{ form.serialNo }}
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="客户简称:" prop="simpleName">
|
|
|
- {{form.simpleName}}
|
|
|
+ {{ form.simpleName }}
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="法定代表人:" prop="legalPerson">
|
|
|
+ {{ form.legalPerson }}
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="注册资金:" prop="registeredCapital">
|
|
|
+ {{ form.registeredCapital }}
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="授信额度:" prop="authorizationLimit">
|
|
|
- {{form.authorizationLimit}}
|
|
|
+ {{ form.authorizationLimit }}
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="单位电话:" prop="phone">
|
|
|
- {{form.phone}}
|
|
|
+ {{ form.phone }}
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="地址:" prop="addressId">
|
|
|
- {{form.addressName}}
|
|
|
+ {{ form.addressName }}
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="详细地址:" prop="address">
|
|
|
- {{form.address}}
|
|
|
+ {{ form.address }}
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
@@ -82,54 +92,60 @@
|
|
|
label="统一社会信用代码:"
|
|
|
prop="unifiedSocialCreditCode"
|
|
|
>
|
|
|
- {{form.unifiedSocialCreditCode}}
|
|
|
+ {{ form.unifiedSocialCreditCode }}
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="所属行业:" prop="industry">
|
|
|
- {{form.industryFullName}}
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="8">
|
|
|
- <el-form-item label="企业类型:" prop="companyCategoryId">
|
|
|
- {{form.companyCategoryName}}
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="8">
|
|
|
- <el-form-item label="登记日期:" prop="registerDate">
|
|
|
- {{form.registerDate}}
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="8">
|
|
|
- <el-form-item label="经营范围:" prop="businessScope">
|
|
|
- {{form.businessScope}}
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="8">
|
|
|
- <el-form-item label="主营产品:" prop="mainProduct">
|
|
|
- {{form.mainProduct}}
|
|
|
+ {{ form.industryFullName }}
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
- <el-form-item
|
|
|
- label="上级单位:"
|
|
|
- prop="hasParentGroup"
|
|
|
- >
|
|
|
- {{ form.parentName }}
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="8">
|
|
|
- <el-form-item prop="businessLicenseFile" label="营业执照附件:">
|
|
|
- <el-link v-if="form.businessLicenseFile && form.businessLicenseFile !== ''"
|
|
|
- type="primary" :underline="false"
|
|
|
- @click="downloadFile(form.businessLicenseFile)"> {{ form.businessLicenseFile.name }}</el-link>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="16">
|
|
|
- <el-form-item label="备注:" prop="remark">
|
|
|
- {{form.remark}}
|
|
|
+ <el-form-item label="营业类型:" prop="companyCategoryId">
|
|
|
+ {{ form.companyCategoryName }}
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="企业类型:" prop="companyCategoryId">
|
|
|
+ {{ form.enterpriseTypeName }}
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="登记日期:" prop="registerDate">
|
|
|
+ {{ form.registerDate }}
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="经营范围:" prop="businessScope">
|
|
|
+ {{ form.businessScope }}
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="主营产品:" prop="mainProduct">
|
|
|
+ {{ form.mainProduct }}
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item
|
|
|
+ label="上级单位:"
|
|
|
+ prop="hasParentGroup"
|
|
|
+ >
|
|
|
+ {{ form.parentName }}
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item prop="businessLicenseFile" label="营业执照附件:">
|
|
|
+ <el-link v-if="form.businessLicenseFile && form.businessLicenseFile !== ''"
|
|
|
+ type="primary" :underline="false"
|
|
|
+ @click="downloadFile(form.businessLicenseFile)"> {{ form.businessLicenseFile.name }}
|
|
|
+ </el-link>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="16">
|
|
|
+ <el-form-item label="备注:" prop="remark">
|
|
|
+ {{ form.remark }}
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
</el-row>
|
|
|
</el-form>
|
|
|
</el-tab-pane>
|
|
|
@@ -147,16 +163,16 @@
|
|
|
</template>
|
|
|
|
|
|
<template v-slot:accountName="{ row }">
|
|
|
- {{row.accountName}}
|
|
|
+ {{ row.accountName }}
|
|
|
</template>
|
|
|
<template v-slot:accountNo="{ row }">
|
|
|
- {{row.accountNo}}
|
|
|
+ {{ row.accountNo }}
|
|
|
</template>
|
|
|
<template v-slot:bankName="{ row }">
|
|
|
- {{row.bankName}}
|
|
|
+ {{ row.bankName }}
|
|
|
</template>
|
|
|
<template v-slot:interbankNo="{ row }">
|
|
|
- {{row.interbankNo}}
|
|
|
+ {{ row.interbankNo }}
|
|
|
</template>
|
|
|
</ele-pro-table>
|
|
|
</el-tab-pane>
|
|
|
@@ -180,19 +196,22 @@
|
|
|
</template>
|
|
|
|
|
|
<template v-slot:linkName="{ row }">
|
|
|
- {{row.linkName}}
|
|
|
+ {{ row.linkName }}
|
|
|
</template>
|
|
|
<template v-slot:mobilePhone="{ row }">
|
|
|
- {{row.mobilePhone}}
|
|
|
+ {{ row.mobilePhone }}
|
|
|
</template>
|
|
|
<template v-slot:phone="{ row }">
|
|
|
- {{row.phone}}
|
|
|
+ {{ row.phone }}
|
|
|
</template>
|
|
|
<template v-slot:email="{ row }">
|
|
|
- {{row.email}}
|
|
|
+ {{ row.email }}
|
|
|
+ </template>
|
|
|
+ <template v-slot:deptName="{ row }">
|
|
|
+ {{ row.deptName }}
|
|
|
</template>
|
|
|
<template v-slot:post="{ row }">
|
|
|
- {{row.post}}
|
|
|
+ {{ row.post }}
|
|
|
</template>
|
|
|
<template v-slot:ifChief="{ row, $index }">
|
|
|
<el-select v-model="row.ifChief" class="w100" disabled>
|
|
|
@@ -212,7 +231,7 @@
|
|
|
></DictSelection>
|
|
|
</template>
|
|
|
<template v-slot:remark="{ row }">
|
|
|
- {{row.remark}}
|
|
|
+ {{ row.remark }}
|
|
|
</template>
|
|
|
</ele-pro-table>
|
|
|
</el-tab-pane>
|
|
|
@@ -226,39 +245,39 @@
|
|
|
<el-row>
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="结算方式:" prop="settlementMode">
|
|
|
- {{otherForm.settlementModeName}}
|
|
|
+ {{ otherForm.settlementModeName }}
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="税率:" prop="taxRate">
|
|
|
- {{otherForm.taxRate}} %
|
|
|
+ {{ otherForm.taxRate }} %
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="折扣率:" prop="discount">
|
|
|
- {{otherForm.discount}} %
|
|
|
+ {{ otherForm.discount }} %
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
-
|
|
|
+
|
|
|
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="收件人:" prop="sender">
|
|
|
- {{otherForm.sender}}
|
|
|
+ {{ otherForm.sender }}
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="收件人电话:" prop="senderPhone">
|
|
|
- {{otherForm.senderPhone}}
|
|
|
+ {{ otherForm.senderPhone }}
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="收件人地址:" prop="addressId">
|
|
|
- {{otherForm.addressName}}
|
|
|
+ {{ otherForm.addressName }}
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
- <el-form-item label="收件人详细地址:" prop="address" >
|
|
|
- {{otherForm.address}}
|
|
|
+ <el-form-item label="收件人详细地址:" prop="address">
|
|
|
+ {{ otherForm.address }}
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
@@ -273,217 +292,226 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import {contactDetail,getInfoById} from '@/api/bpm/components/saleManage/contact';
|
|
|
+import {contactDetail, getInfoById} from '@/api/bpm/components/saleManage/contact';
|
|
|
import {getFile} from '@/api/system/file';
|
|
|
import dictMixins from '@/mixins/dictMixins';
|
|
|
import {copyObj} from '@/utils/util';
|
|
|
|
|
|
|
|
|
export default {
|
|
|
- props: {
|
|
|
- categoryTreeList: Array
|
|
|
- },
|
|
|
- mixins: [dictMixins],
|
|
|
- components: {
|
|
|
- },
|
|
|
- data() {
|
|
|
- let formDef = {
|
|
|
- address: '',
|
|
|
- addressId: 0,
|
|
|
- addressName: '',
|
|
|
- authorizationLimit: 0,
|
|
|
- businessLicenseFile: {},
|
|
|
- businessScope: '',
|
|
|
- categoryId: '',
|
|
|
- categoryName: '',
|
|
|
- companyCategoryId: '',
|
|
|
- companyCategoryName: '',
|
|
|
- hasParentGroup: 0,
|
|
|
- industry: '',
|
|
|
- industryCode: '',
|
|
|
- industryFullName: '',
|
|
|
- mainProduct: '',
|
|
|
- name: '',
|
|
|
- officialIndustry: '',
|
|
|
- phone: '',
|
|
|
- registerDate: '',
|
|
|
- remark: '',
|
|
|
- serialNo: '',
|
|
|
- simpleName: '',
|
|
|
- type: 1,
|
|
|
- unifiedSocialCreditCode: ''
|
|
|
- };
|
|
|
- let otherFormDef = {
|
|
|
- settlementMode: '',
|
|
|
- settlementModeName: '',
|
|
|
- taxRate: 0,
|
|
|
- address: '',
|
|
|
- addressId: '',
|
|
|
- deptId: '',
|
|
|
- deptName: '',
|
|
|
- discount: 0,
|
|
|
- salesmanId: '',
|
|
|
- salesmanName: '',
|
|
|
- sender: '',
|
|
|
- senderPhone: ''
|
|
|
- };
|
|
|
- return {
|
|
|
- visible: false,
|
|
|
- title: '客户详情',
|
|
|
- row: {},
|
|
|
- activeName: 'base',
|
|
|
- formDef,
|
|
|
- otherFormDef,
|
|
|
- form: copyObj(formDef),
|
|
|
- otherForm: copyObj(otherFormDef),
|
|
|
- tableBankData: [],
|
|
|
- tableLinkData: [],
|
|
|
- ifChiefList: [
|
|
|
- {
|
|
|
- value: 0,
|
|
|
- label: '否'
|
|
|
- },
|
|
|
- {
|
|
|
- value: 1,
|
|
|
- label: '是'
|
|
|
- }
|
|
|
- ],
|
|
|
- bankColumns: [
|
|
|
- {
|
|
|
- type: 'index',
|
|
|
- width: 55,
|
|
|
- align: 'center'
|
|
|
- },
|
|
|
- {
|
|
|
- label: '单位名称',
|
|
|
- prop: 'accountName',
|
|
|
- slot: 'accountName',
|
|
|
- action: 'accountName',
|
|
|
- headerSlot: 'accountNameHeader'
|
|
|
- },
|
|
|
- {
|
|
|
- label: '银行账号',
|
|
|
- prop: 'accountNo',
|
|
|
- slot: 'accountNo',
|
|
|
- action: 'accountNo'
|
|
|
- },
|
|
|
- {
|
|
|
- label: '开户行',
|
|
|
- prop: 'bankName',
|
|
|
- slot: 'bankName',
|
|
|
- action: 'bankName'
|
|
|
- },
|
|
|
- {
|
|
|
- label: '银行银联号',
|
|
|
- prop: 'interbankNo',
|
|
|
- slot: 'interbankNo',
|
|
|
- action: 'interbankNo'
|
|
|
- },
|
|
|
- ],
|
|
|
- linkColumns: [
|
|
|
- {
|
|
|
- type: 'index',
|
|
|
- width: 55,
|
|
|
- align: 'center'
|
|
|
- },
|
|
|
- {
|
|
|
- label: '姓名',
|
|
|
- prop: 'linkName',
|
|
|
- slot: 'linkName',
|
|
|
- action: 'linkName',
|
|
|
- headerSlot: 'linkNameHeader'
|
|
|
- },
|
|
|
- {
|
|
|
- label: '手机',
|
|
|
- prop: 'mobilePhone',
|
|
|
- slot: 'mobilePhone',
|
|
|
- action: 'mobilePhone',
|
|
|
- headerSlot: 'mobilePhoneHeader'
|
|
|
- },
|
|
|
- {
|
|
|
- label: '电话',
|
|
|
- prop: 'phone',
|
|
|
- slot: 'phone',
|
|
|
- action: 'phone'
|
|
|
- },
|
|
|
- {
|
|
|
- label: '微信号',
|
|
|
- prop: 'wechat',
|
|
|
- slot: 'wechat',
|
|
|
- action: 'wechat'
|
|
|
- },
|
|
|
- {
|
|
|
- label: '邮箱',
|
|
|
- prop: 'email',
|
|
|
- slot: 'email',
|
|
|
- action: 'email'
|
|
|
- },
|
|
|
- {
|
|
|
- label: '职务',
|
|
|
- prop: 'post',
|
|
|
- slot: 'post',
|
|
|
- action: 'post'
|
|
|
- },
|
|
|
- {
|
|
|
- label: '状态',
|
|
|
- prop: 'status',
|
|
|
- slot: 'status',
|
|
|
- action: 'status',
|
|
|
- headerSlot: 'statusHeader'
|
|
|
- },
|
|
|
- {
|
|
|
- label: '是否首要',
|
|
|
- prop: 'ifChief',
|
|
|
- slot: 'ifChief',
|
|
|
- action: 'ifChief'
|
|
|
- },
|
|
|
- {
|
|
|
- label: '备注',
|
|
|
- prop: 'remark',
|
|
|
- slot: 'remark',
|
|
|
- action: 'remark'
|
|
|
- },
|
|
|
- ],
|
|
|
- };
|
|
|
+ props: {
|
|
|
+ categoryTreeList: Array
|
|
|
+ },
|
|
|
+ mixins: [dictMixins],
|
|
|
+ components: {},
|
|
|
+ data() {
|
|
|
+ let formDef = {
|
|
|
+ address: '',
|
|
|
+ addressId: 0,
|
|
|
+ addressName: '',
|
|
|
+ authorizationLimit: 0,
|
|
|
+ businessLicenseFile: {},
|
|
|
+ businessScope: '',
|
|
|
+ categoryId: '',
|
|
|
+ categoryName: '',
|
|
|
+ companyCategoryId: '',
|
|
|
+ companyCategoryName: '',
|
|
|
+ enterpriseTypeName: '',
|
|
|
+ enterpriseTypeId: '',
|
|
|
+ hasParentGroup: 0,
|
|
|
+ industry: '',
|
|
|
+ industryCode: '',
|
|
|
+ industryFullName: '',
|
|
|
+ mainProduct: '',
|
|
|
+ name: '',
|
|
|
+ officialIndustry: '',
|
|
|
+ phone: '',
|
|
|
+ registerDate: '',
|
|
|
+ remark: '',
|
|
|
+ serialNo: '',
|
|
|
+ simpleName: '',
|
|
|
+ legalPerson: '',
|
|
|
+ registeredCapital: '',
|
|
|
+ type: 1,
|
|
|
+ unifiedSocialCreditCode: ''
|
|
|
+ };
|
|
|
+ let otherFormDef = {
|
|
|
+ settlementMode: '',
|
|
|
+ settlementModeName: '',
|
|
|
+ taxRate: 0,
|
|
|
+ address: '',
|
|
|
+ addressId: '',
|
|
|
+ deptId: '',
|
|
|
+ deptName: '',
|
|
|
+ discount: 0,
|
|
|
+ salesmanId: '',
|
|
|
+ salesmanName: '',
|
|
|
+ sender: '',
|
|
|
+ senderPhone: ''
|
|
|
+ };
|
|
|
+ return {
|
|
|
+ visible: false,
|
|
|
+ title: '客户详情',
|
|
|
+ row: {},
|
|
|
+ activeName: 'base',
|
|
|
+ formDef,
|
|
|
+ otherFormDef,
|
|
|
+ form: copyObj(formDef),
|
|
|
+ otherForm: copyObj(otherFormDef),
|
|
|
+ tableBankData: [],
|
|
|
+ tableLinkData: [],
|
|
|
+ ifChiefList: [
|
|
|
+ {
|
|
|
+ value: 0,
|
|
|
+ label: '否'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ value: 1,
|
|
|
+ label: '是'
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ bankColumns: [
|
|
|
+ {
|
|
|
+ type: 'index',
|
|
|
+ width: 55,
|
|
|
+ align: 'center'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '单位名称',
|
|
|
+ prop: 'accountName',
|
|
|
+ slot: 'accountName',
|
|
|
+ action: 'accountName',
|
|
|
+ headerSlot: 'accountNameHeader'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '银行账号',
|
|
|
+ prop: 'accountNo',
|
|
|
+ slot: 'accountNo',
|
|
|
+ action: 'accountNo'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '开户行',
|
|
|
+ prop: 'bankName',
|
|
|
+ slot: 'bankName',
|
|
|
+ action: 'bankName'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '银行银联号',
|
|
|
+ prop: 'interbankNo',
|
|
|
+ slot: 'interbankNo',
|
|
|
+ action: 'interbankNo'
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ linkColumns: [
|
|
|
+ {
|
|
|
+ type: 'index',
|
|
|
+ width: 55,
|
|
|
+ align: 'center'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '姓名',
|
|
|
+ prop: 'linkName',
|
|
|
+ slot: 'linkName',
|
|
|
+ action: 'linkName',
|
|
|
+ headerSlot: 'linkNameHeader'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '手机',
|
|
|
+ prop: 'mobilePhone',
|
|
|
+ slot: 'mobilePhone',
|
|
|
+ action: 'mobilePhone',
|
|
|
+ headerSlot: 'mobilePhoneHeader'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '电话',
|
|
|
+ prop: 'phone',
|
|
|
+ slot: 'phone',
|
|
|
+ action: 'phone'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '微信号',
|
|
|
+ prop: 'wechat',
|
|
|
+ slot: 'wechat',
|
|
|
+ action: 'wechat'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '邮箱',
|
|
|
+ prop: 'email',
|
|
|
+ slot: 'email',
|
|
|
+ action: 'email'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '部门',
|
|
|
+ prop: 'deptName',
|
|
|
+ slot: 'deptName',
|
|
|
+ action: 'deptName'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '职务',
|
|
|
+ prop: 'post',
|
|
|
+ slot: 'post',
|
|
|
+ action: 'post'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '状态',
|
|
|
+ prop: 'status',
|
|
|
+ slot: 'status',
|
|
|
+ action: 'status',
|
|
|
+ headerSlot: 'statusHeader'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '是否首要',
|
|
|
+ prop: 'ifChief',
|
|
|
+ slot: 'ifChief',
|
|
|
+ action: 'ifChief'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '备注',
|
|
|
+ prop: 'remark',
|
|
|
+ slot: 'remark',
|
|
|
+ action: 'remark'
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ };
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ async open(row) {
|
|
|
+ this.row = row;
|
|
|
+ this.visible = true;
|
|
|
+ await this._getById(row.id);
|
|
|
},
|
|
|
- methods: {
|
|
|
- async open(row) {
|
|
|
- this.row = row;
|
|
|
- this.visible = true;
|
|
|
- await this._getById(row.id);
|
|
|
- },
|
|
|
|
|
|
- cancel() {
|
|
|
- this.$nextTick(() => {
|
|
|
- // 关闭后,销毁所有的表单数据
|
|
|
- this.form = copyObj(this.formDef),
|
|
|
+ cancel() {
|
|
|
+ this.$nextTick(() => {
|
|
|
+ // 关闭后,销毁所有的表单数据
|
|
|
+ this.form = copyObj(this.formDef),
|
|
|
this.otherForm = copyObj(this.otherFormDef),
|
|
|
this.tableBankData = []
|
|
|
- this.tableLinkData = []
|
|
|
- this.visible = false;
|
|
|
- })
|
|
|
- },
|
|
|
+ this.tableLinkData = []
|
|
|
+ this.visible = false;
|
|
|
+ })
|
|
|
+ },
|
|
|
|
|
|
- async _getById(id) {
|
|
|
- const data = await contactDetail(id);
|
|
|
- this.form = data.base;
|
|
|
- this.otherForm = data.other;
|
|
|
- this.tableBankData = data.bankList;
|
|
|
- this.tableLinkData = data.linkList;
|
|
|
+ async _getById(id) {
|
|
|
+ const data = await contactDetail(id);
|
|
|
+ this.form = data.base;
|
|
|
+ this.otherForm = data.other;
|
|
|
+ this.tableBankData = data.bankList;
|
|
|
+ this.tableLinkData = data.linkList;
|
|
|
|
|
|
- if(this.tableLinkData && this.tableLinkData.length > 0){
|
|
|
- this.tableLinkData.forEach(e => e.status = e.status+"");
|
|
|
- }
|
|
|
+ if (this.tableLinkData && this.tableLinkData.length > 0) {
|
|
|
+ this.tableLinkData.forEach(e => e.status = e.status + "");
|
|
|
+ }
|
|
|
|
|
|
- await getInfoById(this.form.categoryId).then((res) => {
|
|
|
- this.$set(this.form,'categoryName', res.data.name)
|
|
|
- });
|
|
|
- },
|
|
|
+ await getInfoById(this.form.categoryId).then((res) => {
|
|
|
+ this.$set(this.form, 'categoryName', res.data.name)
|
|
|
+ });
|
|
|
+ },
|
|
|
|
|
|
- downloadFile(file){
|
|
|
- getFile({ objectName: file.storePath }, file.name);
|
|
|
- },
|
|
|
+ downloadFile(file) {
|
|
|
+ getFile({objectName: file.storePath}, file.name);
|
|
|
+ },
|
|
|
|
|
|
- }
|
|
|
- };
|
|
|
+ }
|
|
|
+};
|
|
|
</script>
|