| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516 |
- <template>
- <ele-modal
- custom-class="ele-dialog-form long-dialog-form"
- :centered="true"
- v-if="visible"
- :visible.sync="visible"
- :title="title"
- :close-on-click-modal="false"
- append-to-body
- width="70%"
- @close="cancel"
- :maxable="true"
- :resizable="true"
- >
- <el-tabs v-model="activeName" type="card" @tab-click="handleActive">
- <el-tab-pane label="基本信息" name="base">
- <headerTitle title="基本信息" style="margin-top: 30px"></headerTitle>
- <el-form
- label-width="120px"
- ref="formRef"
- :model="form">
- <el-row>
- <el-col :span="8">
- <el-form-item
- label="生产厂家分类:"
- prop="categoryId">
- <el-input v-model="form.categoryName" disabled></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="名称:" prop="name">
- <el-input v-model="form.name" disabled></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="生产厂家代号:" prop="serialNo">
- <el-input v-model="form.serialNo" disabled></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="8">
- <el-form-item label="生产厂家简称:" prop="simpleName">
- <el-input v-model="form.simpleName" disabled></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="法定代表人:" prop="legalPerson">
- <el-input v-model="form.legalPerson" disabled></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="注册资金:" prop="registeredCapital">
- <el-input v-model="form.registeredCapital" disabled></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="8">
- <el-form-item label="授信额度:" prop="authorizationLimit">
- <el-input v-model="form.authorizationLimit" disabled></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="单位电话:" prop="phone">
- <el-input v-model="form.phone" disabled></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="地址:" prop="addressId">
- <el-input v-model="form.addressName" disabled></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="8">
- <el-form-item label="详细地址:" prop="address">
- <el-input v-model="form.address" disabled></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item
- label="统一社会信用代码:"
- prop="unifiedSocialCreditCode"
- class="form_item_label"
- >
- <el-input v-model="form.unifiedSocialCreditCode" disabled></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="所属行业:" prop="industry">
- <el-input v-model="form.industryFullName" disabled></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="8">
- <el-form-item label="营业类型:" prop="companyCategoryId">
- <el-input v-model="form.companyCategoryName" disabled></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="登记日期:" prop="registerDate">
- <el-input v-model="form.registerDate" disabled></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="经营范围:" prop="businessScope">
- <el-input v-model="form.businessScope" disabled></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="8">
- <el-form-item label="主营产品:" prop="mainProduct">
- <el-input v-model="form.mainProduct" disabled></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item
- label="是否存在上级集团公司:"
- prop="hasParentGroup"
- class="form_item_label">
- <el-input :value=" form.hasParentGroup === 1 ? '是' : '否'" disabled></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="级别:" >
- <DictSelection dictName="生产厂家级别" disabled clearable v-model="form.level">
- </DictSelection>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="16">
- <el-form-item label="备注:" prop="remark">
- <el-input v-model="form.remark" disabled type="textarea"></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item prop="businessLicenseFile" label="营业执照附件:">
- <fileMain v-model="form.businessLicenseFiles" type="view"></fileMain>
- <!-- <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-row>
- </el-form>
- <headerTitle title="银行信息" style="margin-top: 30px"></headerTitle>
- <ele-pro-table
- ref="table"
- :columns="bankColumns"
- :datasource="tableBankData"
- height="350px"
- :need-page="false"
- >
- <template v-slot:accountNameHeader="{ column }">
- <span>{{ column.label }}</span><span style="color:red">*</span>
- </template>
- <template v-slot:accountName="{ row }">
- {{ row.accountName }}
- </template>
- <template v-slot:accountNo="{ row }">
- {{ row.accountNo }}
- </template>
- <template v-slot:bankName="{ row }">
- {{ row.bankName }}
- </template>
- <template v-slot:interbankNo="{ row }">
- {{ row.interbankNo }}
- </template>
- </ele-pro-table>
- <headerTitle title="联系人信息" style="margin-top: 30px"></headerTitle>
- <ele-pro-table
- ref="linkTable"
- :columns="linkColumns"
- :datasource="tableLinkData"
- height="350px"
- :need-page="false"
- >
- <template v-slot:linkNameHeader="{ column }">
- <span>{{ column.label }}</span><span style="color:red">*</span>
- </template>
- <template v-slot:mobilePhoneHeader="{ column }">
- <span>{{ column.label }}</span><span style="color:red">*</span>
- </template>
- <template v-slot:statusHeader="{ column }">
- <span>{{ column.label }}</span><span style="color:red">*</span>
- </template>
- <template v-slot:linkName="{ row }">
- {{ row.linkName }}
- </template>
- <template v-slot:mobilePhone="{ row }">
- {{ row.mobilePhone }}
- </template>
- <template v-slot:phone="{ row }">
- {{ row.phone }}
- </template>
- <template v-slot:email="{ row }">
- {{ row.email }}
- </template>
- <template v-slot:post="{ row }">
- {{ row.post }}
- </template>
- <template v-slot:ifChief="{ row, $index }">
- <el-select v-model="row.ifChief" class="w100" disabled>
- <el-option
- v-for="item in ifChiefList"
- :key="item.value"
- :label="item.label"
- :value="item.value"
- ></el-option>
- </el-select>
- </template>
- <template v-slot:status="{ row }">
- <DictSelection
- dictName="联系人状态"
- v-model="row.status"
- :disabled="true"
- ></DictSelection>
- </template>
- <template v-slot:remark="{ row }">
- {{ row.remark }}
- </template>
- </ele-pro-table>
- <headerTitle title="其他信息" style="margin-top: 30px"></headerTitle>
- <el-form
- label-width="130px"
- ref="otherFormRef"
- :model="otherForm"
- style="margin-top: 30px"
- >
- <el-row>
- <el-col :span="8">
- <el-form-item label="结算方式:" prop="settlementMode">
- <el-input v-model="otherForm.settlementModeName" disabled></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="税率:" prop="taxRate">
- <el-input v-model="otherForm.taxRate" disabled>
- <template v-slot:append>%</template>
- </el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="折扣率:" prop="discount">
- <el-input v-model="otherForm.discount" disabled>
- <template v-slot:append>%</template>
- </el-input>
- </el-form-item>
- </el-col>
- <!-- <el-col :span="8">
- <el-form-item
- label="分管部门:"
- prop="deptId"
- style="margin-bottom: 22px"
- >
- {{otherForm.deptName}}
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="业务员:" prop="salesmanId">
- {{otherForm.salesmanName}}
- </el-form-item>
- </el-col> -->
- <el-col :span="8">
- <el-form-item label="寄件人:" prop="sender">
- <el-input v-model="otherForm.sender" disabled></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="寄件人电话:" prop="senderPhone">
- <el-input v-model="otherForm.senderPhone" disabled></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="寄件人地址:" prop="addressId">
- <el-input v-model="otherForm.addressName" disabled></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="寄件人详细地址:" prop="address">
- <el-input v-model="otherForm.address" disabled></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- </el-form>
- </el-tab-pane>
- <!-- <el-tab-pane label="银行信息" name="bank">-->
- <!-- -->
- <!-- </el-tab-pane>-->
- <!-- <el-tab-pane label="联系人信息" name="link">-->
- <!-- -->
- <!-- </el-tab-pane>-->
- <!-- <el-tab-pane label="其他信息" name="other">-->
- <!-- </el-tab-pane>-->
- <el-tab-pane label="生产列表" name="supply">
- <headerTitle title="生产列表" style="margin-top: 30px"></headerTitle>
- <ele-pro-table ref="supplyRef" :columns="supplyColumns" :need-page="false"
- :datasource="supplyList"
- height="350px">
- </ele-pro-table>
- </el-tab-pane>
- <el-tab-pane label="证书资质" name="certificate">
- <headerTitle title="证书资质" style="margin-top: 30px"></headerTitle>
- <ele-pro-table ref="certificateTable" :columns="certificateColumns" :needPage="false" :datasource="tableCertificateData"
- height="350px">
- <!-- 操作栏 -->
- <template v-slot:action="scope">
- <el-link
- v-if="[1,2].includes(scope.row.approvalStatus)"
- type="primary"
- :underline="false"
- icon="el-icon-edit"
- @click="addCertificate('view',scope.row)">
- 详情
- </el-link>
- </template>
- </ele-pro-table>
- </el-tab-pane>
- <el-tab-pane label="订单记录" name="order">
- <headerTitle title="订单记录" style="margin-top: 30px"></headerTitle>
- <div class="ele-border-lighter form-content">
- <!-- 数据表格 -->
- <ele-pro-table
- ref="table"
- :columns="orderColumns"
- :datasource="orderDatasource"
- height="calc(100vh - 520px)"
- style="margin-bottom: 10px"
- full-height="calc(100vh - 116px)"
- tool-class="ele-toolbar-form"
- cache-key="eomContactPageTable">
- <!-- 查看详情列 -->
- <!-- 查看详情列 -->
- <template v-slot:contractNo="{ row }">
- <el-link
- type="primary"
- :underline="false"
- @click="opencontractDetail(row)"
- >
- {{ row.contractNo }}
- </el-link
- >
- </template>
- <template v-slot:orderNo="{ row }">
- <el-link
- type="primary"
- :underline="false"
- @click="openorderDetail(row)"
- >
- {{ row.orderNo }}
- </el-link
- >
- </template>
- </ele-pro-table>
- </div>
- </el-tab-pane>
- <el-tab-pane label="收货记录" name="send">
- <headerTitle title="收货记录" style="margin-top: 30px"></headerTitle>
- <div class="ele-border-lighter form-content" >
- <!-- 数据表格 -->
- <ele-pro-table
- ref="table"
- :columns="sendColumns"
- :datasource="sendDatasource"
- height="calc(100vh - 520px)"
- style="margin-bottom: 10px"
- full-height="calc(100vh - 116px)"
- tool-class="ele-toolbar-form"
- cache-key="eomContactPageTable"
- >
- <!-- 查看详情列 -->
- <template v-slot:receiveNo="{ row }">
- <el-link
- type="primary"
- :underline="false"
- @click="openorderDetail(row, 'receiveNo')"
- >
- {{ row.receiveNo }}
- </el-link
- >
- </template>
- <template v-slot:orderNo="{ row }">
- <el-link
- type="primary"
- :underline="false"
- @click="openorderDetail(row, 'orderNo')"
- >
- {{ row.orderNo }}
- </el-link
- >
- </template>
- </ele-pro-table>
- </div>
- </el-tab-pane>
- <el-tab-pane label="退货记录" name="return">
- <headerTitle title="退货记录" style="margin-top: 30px"></headerTitle>
- <div class="ele-border-lighter form-content">
- <!-- 数据表格 -->
- <ele-pro-table
- ref="table"
- :columns="returnColumns"
- :datasource="returnDatasource"
- height="calc(100vh - 520px)"
- style="margin-bottom: 10px"
- full-height="calc(100vh - 116px)"
- tool-class="ele-toolbar-form"
- cache-key="eomContactPageTable">
- <!-- 查看详情列 -->
- <template v-slot:returnNo="{ row }">
- <el-link
- type="primary"
- :underline="false"
- @click="openorderDetail(row, 'returnNo')">
- {{ row.returnNo }}</el-link>
- </template>
- <template v-slot:receiveNo="{ row }">
- <el-link
- type="primary"
- :underline="false"
- @click="openorderDetail(row, 'sendNo')"
- >
- {{ row.receiveId }}</el-link
- >
- </template>
- <template v-slot:orderNo="{ row }">
- <el-link
- type="primary"
- :underline="false"
- @click="openorderDetail(row, 'orderNo')"
- >
- {{ row.orderNo }}</el-link
- >
- </template>
- </ele-pro-table>
- </div>
- </el-tab-pane>
- <el-tab-pane label="对账记录" name="reconciliation">
- <headerTitle title="对账记录" style="margin-top: 30px"></headerTitle>
- <div class="ele-border-lighter form-content">
- <!-- 数据表格 -->
- <ele-pro-table
- ref="table"
- :columns="reconciliationColumns"
- :datasource="reconciliationDatasource"
- height="calc(100vh - 520px)"
- style="margin-bottom: 10px"
- full-height="calc(100vh - 116px)"
- tool-class="ele-toolbar-form"
- cache-key="eomContactPageTable">
- <!-- 查看详情列 -->
- <template v-slot:statementNo="{ row }">
- <el-link type="primary" :underline="false" @click="openorderDetail(row,'statementNo')"> {{
- row.statementNo
- }}
- </el-link>
- </template>
- <template v-slot:orderNo="{ row }">
- <el-link type="primary" :underline="false" @click="openorderDetail(row,'orderNo')"> {{
- row.orderNo
- }}
- </el-link>
- </template>
- </ele-pro-table>
- </div>
- </el-tab-pane>
- <el-tab-pane label="开票记录" name="invoice">
- <headerTitle title="开票记录" style="margin-top: 30px"></headerTitle>
- <el-card shadow="never" >
- <!-- 数据表格 -->
- <ele-pro-table
- ref="table"
- :columns="invoiceColumns"
- :datasource="invoiceDatasource"
- height="calc(100vh - 520px)"
- tool-class="ele-toolbar-form"
- cache-key="eomContactPageTable"
- >
- <!-- 收款信息 -->
- <template v-slot:code="{row}">
- <el-link
- type="primary"
- :underline="false"
- @click="handleDetail(row,'view')">
- {{ row.code }}
- </el-link>
- </template>
- <!-- 开票信息 -->
- <template v-slot:invoiceCode="{row}">
- <el-link
- type="primary"
- :underline="false"
- @click="handleInvoiceDetail(row,'view')">
- {{ row.invoiceCode }}
- </el-link>
- </template>
- </ele-pro-table>
- </el-card>
- </el-tab-pane>
- </el-tabs>
- <div slot="footer" class="footer">
- <el-button @click="cancel">返回</el-button>
- </div>
- <!-- 资质证书弹窗 -->
- <certificate-qualifications-dialog
- :certificate-qualifications-dialog-flag.sync="certificateQualificationsDialogFlag"
- v-if="certificateQualificationsDialogFlag"
- ref="certificateQualificationsDialogRef"
- :contactId="form.id"
- @reload="reload">
- </certificate-qualifications-dialog>
- </ele-modal>
- </template>
- <script>
- import {contactDetail, contactQcPackPageAPI} from '@/api/saleManage/contact';
- import {getFile} from '@/api/system/file';
- import {getInfoByIds as getCategoryInfo} from '@/api/classifyManage/index';
- import fileUpload from '@/components/upload/fileUpload';
- import dictMixins from '@/mixins/dictMixins';
- import deptSelect from '@/components/CommomSelect/dept-select.vue';
- import personSelect from '@/components/CommomSelect/person-select.vue';
- import {copyObj} from '@/utils/util';
- import {reviewStatus,lbjtList} from "@/enum/dict";
- import certificateQualificationsDialog
- from "@/views/purchasingManage/supplierManage/components/certificateQualificationsDialog.vue";
- import {getTableList} from '@/api/purchasingManage/purchaseOrder';
- import {getReceiveTableList} from "@/api/purchasingManage/purchaseorderreceive";
- import {getReturnTableList} from "@/api/purchasingManage/returnGoods";
- import {getAccountstatementList} from "@/api/saleManage/accountstatement";
- import {finPayablePageListAPI} from "@/api/financialManage/payableManage";
- // import fileMain from "@/components/addDoc/index.vue";
- export default {
- props: {
- categoryTreeList: Array
- },
- mixins: [dictMixins],
- components: {
- // fileMain,
- certificateQualificationsDialog,
- fileUpload,
- deptSelect,
- personSelect
- },
- 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: '',
- legalPerson: '',
- registeredCapital: '',
- 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,
- certificateQualificationsDialogFlag: false,
- title: '生产厂家详情',
- row: {},
- activeName: 'base',
- formDef,
- otherFormDef,
- form: copyObj(formDef),
- otherForm: copyObj(otherFormDef),
- tableBankData: [],
- tableLinkData: [],
- supplyList: [],
- ifChiefList: [
- {
- value: 0,
- label: '否'
- },
- {
- value: 1,
- label: '是'
- }
- ],
- statusList: [
- {
- label: '未收款',
- value: 0
- },
- {
- label: '部分收款',
- value: 1
- },
- {
- label: '已收全款',
- value: 2
- }
- ],
- bankColumns: [
- {
- type: 'index',
- width: 55,
- align: 'center'
- },
- {
- label: '单位名称',
- prop: 'accountName',
- slot: 'accountName',
- action: 'accountName',
- headerSlot: 'accountNameHeader',
- align: 'center'
- },
- {
- label: '银行账号',
- prop: 'accountNo',
- slot: 'accountNo',
- action: 'accountNo',
- align: 'center'
- },
- {
- label: '开户行',
- prop: 'bankName',
- slot: 'bankName',
- action: 'bankName',
- align: 'center'
- },
- {
- label: '银行银联号',
- prop: 'interbankNo',
- slot: 'interbankNo',
- action: 'interbankNo',
- align: 'center'
- },
- ],
- linkColumns: [
- {
- type: 'index',
- width: 55,
- align: 'center'
- },
- {
- label: '姓名',
- prop: 'linkName',
- slot: 'linkName',
- action: 'linkName',
- headerSlot: 'linkNameHeader',
- align: 'center'
- },
- {
- label: '手机',
- prop: 'mobilePhone',
- slot: 'mobilePhone',
- action: 'mobilePhone',
- headerSlot: 'mobilePhoneHeader',
- align: 'center'
- },
- {
- label: '电话',
- prop: 'phone',
- slot: 'phone',
- action: 'phone',
- align: 'center'
- },
- {
- label: '微信号',
- prop: 'wechat',
- slot: 'wechat',
- action: 'wechat',
- align: 'center'
- },
- {
- label: '邮箱',
- prop: 'email',
- slot: 'email',
- action: 'email',
- align: 'center'
- },
- {
- label: '职务',
- prop: 'post',
- slot: 'post',
- action: 'post',
- align: 'center'
- },
- {
- label: '状态',
- prop: 'status',
- slot: 'status',
- action: 'status',
- headerSlot: 'statusHeader',
- align: 'center'
- },
- {
- label: '是否首要',
- prop: 'ifChief',
- slot: 'ifChief',
- action: 'ifChief',
- align: 'center'
- },
- {
- label: '备注',
- prop: 'remark',
- slot: 'remark',
- action: 'remark',
- align: 'center'
- },
- ],
- certificateColumns: [
- {
- type: 'index',
- width: 55,
- align: 'center'
- },
- {
- label: '编码',
- prop: 'code',
- slot: 'code',
- align: "center",
- minWidth: 120
- },
- {
- label: '名称',
- prop: 'name',
- slot: 'name',
- align: "center",
- minWidth: 120
- },
- {
- label: '创建人',
- prop: 'createUserName',
- slot: 'createUserName',
- align: "center",
- width: 120
- },
- {
- label: '创建时间',
- prop: 'createTime',
- slot: 'createTime',
- align: "center",
- minWidth: 120
- },
- {
- label: '状态',
- prop: 'approvalStatus',
- slot: 'approvalStatus',
- align: "center",
- width: 120,
- formatter: (_row, _column, cellValue) => {
- return reviewStatus[_row.approvalStatus];
- }
- },
- {
- label: '备注',
- prop: 'remark',
- slot: 'remark',
- align: "center",
- minWidth: 120
- },
- {
- action: 'action',
- slot: 'action',
- label: '操作',
- align: "center",
- }
- ],
- orderColumns: [
- {
- columnKey: 'index',
- label: '序号',
- type: 'index',
- width: 55,
- align: 'center',
- showOverflowTooltip: true,
- },
- {
- prop: 'orderNo',
- label: '订单编码',
- sortable: true,
- align: 'center',
- slot: 'orderNo',
- showOverflowTooltip: true,
- minWidth: 200
- },
- {
- prop: 'contractNo',
- label: '合同编码',
- sortable: true,
- align: 'center',
- slot: 'contractNo',
- showOverflowTooltip: true,
- minWidth: 250
- },
- // {
- // prop: 'deliveryDate',
- // label: '交货日期',
- // align: 'center',
- // showOverflowTooltip: true,
- // minWidth: 200
- // },
- // {
- // prop: 'purchaseTypeName',
- // label: '采购订单类型',
- // align: 'center',
- // showOverflowTooltip: true,
- // minWidth: 140
- // },
- {
- prop: 'partaName',
- label: '采购方名称',
- align: 'center',
- showOverflowTooltip: true,
- minWidth: 200
- },
- {
- prop: 'partaLinkName',
- label: '采购方联系人',
- align: 'center',
- showOverflowTooltip: true,
- minWidth: 130
- },
- {
- prop: 'partaTel',
- label: '采购方联系电话',
- align: 'center',
- showOverflowTooltip: true,
- minWidth: 130
- },
- // {
- // prop: 'partbName',
- // label: '名称',
- // align: 'center',
- // showOverflowTooltip: true,
- // minWidth: 250
- // },
- {
- prop: 'partbLinkName',
- label: '生产厂家联系人',
- align: 'center',
- showOverflowTooltip: true,
- minWidth: 120
- },
- {
- prop: 'partbTel',
- label: '生产厂家联系电话',
- align: 'center',
- showOverflowTooltip: true,
- minWidth: 130
- },
- {
- prop: 'payAmount',
- label: '应付金额(元)',
- align: 'center',
- showOverflowTooltip: true,
- minWidth: 140
- },
- {
- prop: 'createTime',
- label: '创建时间',
- align: 'center',
- showOverflowTooltip: true,
- minWidth: 170
- },
- {
- prop: 'orderStatus',
- label: '审核状态',
- align: 'center',
- showOverflowTooltip: true,
- minWidth: 100,
- formatter: (_row, _column, cellValue) => {
- return reviewStatus[_row.orderStatus];
- }
- }
- ],
- sendColumns: [
- {
- columnKey: 'index',
- label: '序号',
- type: 'index',
- width: 55,
- align: 'center',
- showOverflowTooltip: true
- },
- {
- prop: 'receiveNo',
- label: '收货单编码',
- sortable: true,
- align: 'center',
- slot: 'receiveNo',
- showOverflowTooltip: true,
- minWidth: 180
- },
- {
- prop: 'orderNo',
- label: '采购订单编码',
- sortable: true,
- align: 'center',
- slot: 'orderNo',
- showOverflowTooltip: true,
- minWidth: 180
- },
- {
- prop: 'supplierName',
- label: '名称',
- align: 'center',
- showOverflowTooltip: true,
- minWidth: 300
- },
- {
- prop: 'sendNoteNo',
- label: '送货单号',
- align: 'center',
- showOverflowTooltip: true,
- minWidth: 200
- },
- // {
- // prop: 'replied',
- // label: '是否回执',
- // align: 'center',
- // showOverflowTooltip: true,
- // minWidth: 200,
- // formatter: (_row, _column, cellValue) => {
- // return _row.replied==1?'是':'否';
- // }
- // },
- {
- prop: 'reviewStatus',
- label: '状态',
- align: 'center',
- showOverflowTooltip: true,
- minWidth: 200,
- formatter: (_row, _column, cellValue) => {
- return reviewStatus[_row.reviewStatus];
- }
- },
- {
- prop: 'createTime',
- label: '创建时间',
- align: 'center',
- showOverflowTooltip: true,
- minWidth: 170
- }
- ],
- returnColumns: [
- {
- columnKey: 'index',
- label: '序号',
- type: 'index',
- width: 55,
- align: 'center',
- showOverflowTooltip: true,
- },
- {
- prop: 'returnNo',
- label: '退货单编码',
- sortable: true,
- align: 'center',
- slot: 'returnNo',
- showOverflowTooltip: true,
- minWidth: 200
- },
- {
- prop: 'receiveNo',
- label: '收货单编码',
- sortable: true,
- align: 'center',
- slot: 'receiveNo',
- showOverflowTooltip: true,
- minWidth: 200
- },
- {
- prop: 'orderNo',
- label: '采购订单编码',
- sortable: true,
- align: 'center',
- slot: 'orderNo',
- showOverflowTooltip: true,
- minWidth: 200
- },
- {
- prop: 'supplierName',
- label: '名称',
- align: 'center',
- showOverflowTooltip: true,
- minWidth: 180
- },
- {
- prop: 'returnSourceType',
- label: '退货类型',
- align: 'center',
- showOverflowTooltip: true,
- minWidth: 200,
- formatter: (_row, _column, cellValue) => {
- return _row.returnSourceType == 2? '委外发货退货':'采购收货退货'
- }
- },
- // {
- // prop: 'payAmount',
- // label: '应付金额',
- // align: 'center',
- // slot: 'payAmount',
- // showOverflowTooltip: true,
- // minWidth: 200
- // },
- {
- prop: 'reviewStatus',
- label: '状态',
- align: 'center',
- showOverflowTooltip: true,
- minWidth: 200,
- formatter: (_row, _column, cellValue) => {
- return reviewStatus[_row.reviewStatus];
- }
- },
- {
- prop: 'createTime',
- label: '创建时间',
- align: 'center',
- showOverflowTooltip: true,
- minWidth: 170
- }
- ],
- reconciliationColumns: [
- {
- columnKey: 'index',
- label: '序号',
- type: 'index',
- width: 55,
- align: 'center',
- showOverflowTooltip: true
- },
- {
- prop: 'statementNo',
- label: '对账单编码',
- sortable: true,
- align: 'center',
- slot: 'statementNo',
- showOverflowTooltip: true,
- minWidth: 200
- },
- {
- prop: 'contactName',
- label: '名称',
- align: 'center',
- showOverflowTooltip: true,
- minWidth: 180,
- },
- // {
- // prop: 'projectName',
- // label: '项目名称',
- // align: 'center',
- // showOverflowTooltip: true,
- // minWidth: 200,
- // },
- {
- prop: 'startDate',
- label: '对账开始日期',
- align: 'center',
- slot: 'startDate',
- showOverflowTooltip: true,
- minWidth: 200
- },
- {
- prop: 'endDate',
- label: '对账结束日期',
- align: 'center',
- slot: 'endDate',
- showOverflowTooltip: true,
- minWidth: 200
- },
- {
- prop: 'amountTotalPrice',
- label: '总金额',
- align: 'center',
- showOverflowTooltip: true,
- minWidth: 130
- },
- {
- prop: 'amountReceivablePrice',
- label: '应收金额',
- align: 'center',
- showOverflowTooltip: true,
- minWidth: 130
- },
- {
- prop: 'amountPayablePrice',
- label: '应付金额',
- align: 'center',
- showOverflowTooltip: true,
- minWidth: 130
- },
- {
- prop: 'reviewStatus',
- label: '状态',
- align: 'center',
- showOverflowTooltip: true,
- minWidth: 200,
- formatter: (_row, _column, cellValue) => {
- return reviewStatus[_row.reviewStatus];
- }
- },
- {
- prop: 'replied',
- label: '是否回执',
- align: 'center',
- slot: 'replied',
- showOverflowTooltip: true,
- minWidth: 200,
- formatter: (_row, _column, cellValue) => {
- return _row.replied ? '是' : '否';
- }
- },
- {
- prop: 'createTime',
- label: '创建时间',
- align: 'center',
- showOverflowTooltip: true,
- minWidth: 170
- },
- ],
- invoiceColumns: [
- {
- width: 60,
- label: '序号',
- type: 'index',
- columnKey: 'index',
- align: 'center',
- },
- {
- minWidth: 130,
- prop: 'code',
- label: '应付编码',
- sortable: true,
- align: 'center',
- slot: 'code',
- showOverflowTooltip: true
- },
- {
- minWidth: 120,
- prop: 'invoiceCode',
- label: '发票编码',
- sortable: true,
- slot: 'invoiceCode',
- align: 'center',
- showOverflowTooltip: true
- },
- {
- minWidth: 130,
- prop: 'contactName',
- label: '单位名称',
- align: 'center',
- slot: 'contactName',
- showOverflowTooltip: true
- },
- {
- minWidth: 140,
- prop: 'payableDate',
- label: '应付日期',
- slot: 'payableDate',
- align: 'center',
- showOverflowTooltip: true
- },
- {
- minWidth: 100,
- prop: 'payableTotalPrice',
- label: '应付金额',
- align: 'center',
- slot: 'payableTotalPrice',
- showOverflowTooltip: true
- },
- {
- minWidth: 100,
- prop: 'paidTotalPrice',
- label: '已付金额',
- align: 'center',
- slot: 'paidTotalPrice',
- showOverflowTooltip: true
- },
- {
- minWidth: 100,
- prop: 'unpaidTotalPrice',
- label: '未付金额',
- align: 'center',
- slot: 'unpaidTotalPrice',
- showOverflowTooltip: true
- },
- {
- minWidth: 100,
- prop: 'sourceCode',
- label: '来源编码',
- align: 'center',
- slot: 'sourceCode',
- showOverflowTooltip: true
- },
- {
- minWidth: 100,
- prop: 'accountingSubjectName',
- label: '会计科目',
- align: 'center',
- slot: 'accountingSubjectName',
- showOverflowTooltip: true
- },
- {
- minWidth: 100,
- prop: 'status',
- label: '收款状态',
- align: 'center',
- slot: 'status',
- showOverflowTooltip: true,
- formatter: (_row, _column, cellValue) => {
- return this.statusList.find(item => item.value === cellValue).label
- }
- },
- {
- minWidth: 100,
- prop: 'approvalStatus',
- label: '审核状态',
- align: 'center',
- slot: 'approvalStatus',
- formatter: (_row, _column, cellValue) => {
- return reviewStatus[_row.approvalStatus];
- }
- }
- ],
- supplyColumns: [
- {
- columnKey: 'index',
- type: 'index',
- width: 50,
- align: 'center',
- showOverflowTooltip: true,
- label: '序号'
- },
- {
- prop: 'productCode',
- label: '编码',
- align: 'center',
- showOverflowTooltip: true,
- minWidth: 110
- },
- {
- prop: 'productName',
- label: '名称',
- align: 'center',
- showOverflowTooltip: true,
- minWidth: 110
- },
- {
- prop: 'imgCode',
- align: 'center',
- label: '图号/件号',
- showOverflowTooltip: true,
- minWidth: 110
- },
- {
- prop: '属性类型',
- align: 'center',
- label: 'produceType',
- showOverflowTooltip: true,
- minWidth: 110,
- formatter: (row, column) => {
- if(row.produceType){
- return row.produceType.map(item=>{
- return lbjtList[item]
- }).toString()
- }
-
- }
- },
- // {
- // prop: 'approvalNumber',
- // align: 'center',
- // label: '批准文号',
- // showOverflowTooltip: true,
- // minWidth: 110
- // },
- {
- prop: 'packingSpecification',
- align: 'center',
- label: '包装规格',
- showOverflowTooltip: true,
- minWidth: 110
- },
- {
- prop: 'brandNum',
- align: 'center',
- label: '牌号',
- showOverflowTooltip: true
- },
- {
- prop: 'modelType',
- label: '型号',
- align: 'center',
- showOverflowTooltip: true
- },
- {
- prop: 'specification',
- label: '规格',
- align: 'center',
- showOverflowTooltip: true
- },
- {
- prop: 'measuringUnit',
- label: '计量单位',
- showOverflowTooltip: true,
- align: 'center',
- minWidth: 90
- },
- // {
- // prop: 'weightUnit',
- // label: '重量单位',
- // showOverflowTooltip: true,
- // align: 'center',
- // minWidth: 90
- // },
- //
- // {
- // prop: 'roughWeight',
- // label: '毛重',
- // showOverflowTooltip: true,
- // align: 'center',
- // minWidth: 90
- // },
- //
- // {
- // prop: 'netWeight',
- // label: '净重',
- // showOverflowTooltip: true,
- // align: 'center',
- // minWidth: 90
- // },
- //
- // {
- // prop: 'packingUnit',
- // align: 'center',
- // label: '包装单位',
- // showOverflowTooltip: true
- // },
- // {
- // prop: 'categoryLevelPath',
- // label: '分类',
- // align: 'center',
- // showOverflowTooltip: true
- // }
- ],
- };
- },
- methods: {
- async open(row) {
- this.row = row;
- this.visible = true;
- await this._getById(row.id);
- },
- cancel() {
- this.$nextTick(() => {
- // 关闭后,销毁所有的表单数据
- this.form = copyObj(this.formDef),
- this.otherForm = copyObj(this.otherFormDef),
- this.tableBankData = []
- this.tableLinkData = []
- this.visible = false;
- })
- },
- handleActive(val) {
- if (val.name == 'certificate') {
- this.reload()
- }
- },
- //新增/查看/修改资质
- addCertificate(type, row) {
- this.certificateQualificationsDialogFlag = true
- this.$nextTick(() => {
- this.$refs.certificateQualificationsDialogRef.init(type, row)
- })
- },
- /* 证书资质表格数据源 */
- tableCertificateData({page, limit, where}) {
- if (!this.form.id) return []
- return contactQcPackPageAPI({
- pageNum: page,
- size: limit,
- ...where,
- contactId: this.form.id
- });
- },
- /* 订单表格表格数据源 */
- orderDatasource({page, limit, where, order}) {
- return getTableList({
- pageNum: page,
- size: limit,
- ...where,
- partbName:this.row.name
- });
- },
- /* 收货单表格数据源 */
- sendDatasource({page, limit, where, order}) {
- return getReceiveTableList({
- pageNum: page,
- size: limit,
- ...where,
- supplierName: this.row.name
- });
- },
- /* 退货表格数据源 */
- returnDatasource({ page, limit, where, order }) {
- return getReturnTableList({
- pageNum: page,
- size: limit,
- ...where,
- supplierName: this.row.name
- });
- },
- /* 对账单表格数据源 */
- reconciliationDatasource({page, limit, where, order}) {
- return getAccountstatementList({
- pageNum: page,
- size: limit,
- type: 3,
- ...where,
- contactName: this.row.name
- });
- },
- /* 开票记录表格数据源 */
- invoiceDatasource({page, limit, where, order}) {
- return finPayablePageListAPI({
- pageNum: page,
- size: limit,
- ...where,
- contactName:this.row.name
- });
- },
- /* 刷新表格 */
- reload(where) {
- where = {
- ...where,
- contactId: this.form.id
- }
- this.$refs.certificateTable.reload({page: 1, where});
- },
- async _getById(id) {
- const data = await contactDetail(id);
- this.form = data.base||{};
- this.otherForm = data.other||{};
- this.tableBankData = data.bankList||[];
- this.tableLinkData = data.linkList||[];
- this.supplyList = data.productList||[];
- if (this.tableLinkData && this.tableLinkData.length > 0) {
- this.tableLinkData.forEach(e => e.status = e.status + "");
- }
- if (this.form.level) {
- this.form.level = this.form.level + "";
- }
- await getCategoryInfo(this.form.categoryId).then((res) => {
- let categoryName = res.data.map(item=>item.name)?.join(',')
- this.$set(this.form, 'categoryName', categoryName)
- });
- },
- downloadFile(file) {
- getFile({objectName: file.storePath}, file.name);
- },
- }
- };
- </script>
|