|
|
@@ -12,19 +12,13 @@
|
|
|
: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-form label-width="120px" ref="formRef" :model="form">
|
|
|
<el-row>
|
|
|
<el-col :span="8">
|
|
|
- <el-form-item
|
|
|
- label="供应商分类:"
|
|
|
- prop="categoryId">
|
|
|
+ <el-form-item label="供应商分类:" prop="categoryId">
|
|
|
<el-input v-model="form.categoryName" disabled></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
@@ -38,7 +32,7 @@
|
|
|
<el-input v-model="form.serialNo" disabled></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
-
|
|
|
+
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="供应商简称:" prop="simpleName">
|
|
|
<el-input v-model="form.simpleName" disabled></el-input>
|
|
|
@@ -54,7 +48,7 @@
|
|
|
<el-input v-model="form.registeredCapital" disabled></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
-
|
|
|
+
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="授信额度:" prop="authorizationLimit">
|
|
|
<el-input v-model="form.authorizationLimit" disabled></el-input>
|
|
|
@@ -71,36 +65,54 @@
|
|
|
prop="unifiedSocialCreditCode"
|
|
|
class="form_item_label"
|
|
|
>
|
|
|
- <el-input v-model="form.unifiedSocialCreditCode" disabled></el-input>
|
|
|
+ <el-input
|
|
|
+ v-model="form.unifiedSocialCreditCode"
|
|
|
+ disabled
|
|
|
+ ></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="24">
|
|
|
<el-form-item label="注册地址:" prop="addressId">
|
|
|
- <el-input v-model="form.addressName" disabled style="width: 35%;"></el-input>
|
|
|
- <el-input v-model="form.address" disabled style="width: 65%;"></el-input>
|
|
|
+ <el-input
|
|
|
+ v-model="form.addressName"
|
|
|
+ disabled
|
|
|
+ style="width: 35%"
|
|
|
+ ></el-input>
|
|
|
+ <el-input
|
|
|
+ v-model="form.address"
|
|
|
+ disabled
|
|
|
+ style="width: 65%"
|
|
|
+ ></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- <el-col :span="24">
|
|
|
+
|
|
|
+ <el-col :span="24">
|
|
|
<el-form-item label="联系地址:" prop="addressId">
|
|
|
- <el-input v-model="otherForm.addressName" disabled style="width: 35%;"></el-input>
|
|
|
- <el-input v-model="otherForm.address" disabled style="width: 65%;"></el-input>
|
|
|
+ <el-input
|
|
|
+ v-model="otherForm.addressName"
|
|
|
+ disabled
|
|
|
+ style="width: 35%"
|
|
|
+ ></el-input>
|
|
|
+ <el-input
|
|
|
+ v-model="otherForm.address"
|
|
|
+ disabled
|
|
|
+ style="width: 65%"
|
|
|
+ ></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-col :span="8">
|
|
|
<el-form-item label="营业类型:" prop="companyCategoryId">
|
|
|
- <el-input v-model="form.companyCategoryName" disabled></el-input>
|
|
|
+ <el-input
|
|
|
+ v-model="form.companyCategoryName"
|
|
|
+ disabled
|
|
|
+ ></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
@@ -113,7 +125,7 @@
|
|
|
<el-input v-model="form.businessScope" disabled></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
-
|
|
|
+
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="主营产品:" prop="mainProduct">
|
|
|
<el-input v-model="form.mainProduct" disabled></el-input>
|
|
|
@@ -123,25 +135,35 @@
|
|
|
<el-form-item
|
|
|
label="是否存在上级集团公司:"
|
|
|
prop="hasParentGroup"
|
|
|
- class="form_item_label">
|
|
|
- <el-input :value=" form.hasParentGroup === 1 ? '是' : '否'" disabled></el-input>
|
|
|
+ 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">
|
|
|
+ <el-form-item label="级别:">
|
|
|
+ <DictSelection
|
|
|
+ dictName="供应商级别"
|
|
|
+ disabled
|
|
|
+ clearable
|
|
|
+ v-model="form.level"
|
|
|
+ >
|
|
|
</DictSelection>
|
|
|
</el-form-item>
|
|
|
-
|
|
|
</el-col>
|
|
|
|
|
|
-
|
|
|
<el-col :span="16">
|
|
|
<el-form-item label="备注:" prop="remark">
|
|
|
- <el-input v-model="form.remark" disabled type="textarea"></el-input>
|
|
|
+ <el-input
|
|
|
+ v-model="form.remark"
|
|
|
+ disabled
|
|
|
+ type="textarea"
|
|
|
+ ></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
-
|
|
|
</el-row>
|
|
|
</el-form>
|
|
|
<headerTitle title="银行信息" style="margin-top: 30px"></headerTitle>
|
|
|
@@ -154,7 +176,8 @@
|
|
|
:need-page="false"
|
|
|
>
|
|
|
<template v-slot:accountNameHeader="{ column }">
|
|
|
- <span>{{ column.label }}</span><span style="color:red">*</span>
|
|
|
+ <span>{{ column.label }}</span
|
|
|
+ ><span style="color: red">*</span>
|
|
|
</template>
|
|
|
|
|
|
<template v-slot:accountName="{ row }">
|
|
|
@@ -180,13 +203,16 @@
|
|
|
:need-page="false"
|
|
|
>
|
|
|
<template v-slot:linkNameHeader="{ column }">
|
|
|
- <span>{{ column.label }}</span><span style="color:red">*</span>
|
|
|
+ <span>{{ column.label }}</span
|
|
|
+ ><span style="color: red">*</span>
|
|
|
</template>
|
|
|
<template v-slot:mobilePhoneHeader="{ column }">
|
|
|
- <span>{{ column.label }}</span><span style="color:red">*</span>
|
|
|
+ <span>{{ column.label }}</span
|
|
|
+ ><span style="color: red">*</span>
|
|
|
</template>
|
|
|
<template v-slot:statusHeader="{ column }">
|
|
|
- <span>{{ column.label }}</span><span style="color:red">*</span>
|
|
|
+ <span>{{ column.label }}</span
|
|
|
+ ><span style="color: red">*</span>
|
|
|
</template>
|
|
|
|
|
|
<template v-slot:linkName="{ row }">
|
|
|
@@ -281,41 +307,34 @@
|
|
|
</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 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>-->
|
|
|
<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"
|
|
|
- :toolkit="[]" height="350px">
|
|
|
+ <ele-pro-table
|
|
|
+ ref="supplyRef"
|
|
|
+ :columns="supplyColumns"
|
|
|
+ :need-page="false"
|
|
|
+ :datasource="supplyList"
|
|
|
+ :toolkit="[]"
|
|
|
+ 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"
|
|
|
- :toolkit="[]" 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>
|
|
|
+ <certificateManagement
|
|
|
+ ref="certificateManagementRef"
|
|
|
+ ></certificateManagement>
|
|
|
</el-tab-pane>
|
|
|
- <el-tab-pane label="订单记录" name="order">
|
|
|
+ <el-tab-pane label="订单记录" name="order">
|
|
|
<headerTitle title="订单记录" style="margin-top: 30px"></headerTitle>
|
|
|
<div class="ele-border-lighter form-content">
|
|
|
<!-- 数据表格 -->
|
|
|
@@ -327,7 +346,8 @@
|
|
|
style="margin-bottom: 10px"
|
|
|
full-height="calc(100vh - 116px)"
|
|
|
tool-class="ele-toolbar-form"
|
|
|
- cache-key="eomContactPageTable">
|
|
|
+ cache-key="eomContactPageTable"
|
|
|
+ >
|
|
|
<!-- 查看详情列 -->
|
|
|
<!-- 查看详情列 -->
|
|
|
<template v-slot:contractNo="{ row }">
|
|
|
@@ -337,8 +357,7 @@
|
|
|
@click="opencontractDetail(row)"
|
|
|
>
|
|
|
{{ row.contractNo }}
|
|
|
- </el-link
|
|
|
- >
|
|
|
+ </el-link>
|
|
|
</template>
|
|
|
<template v-slot:orderNo="{ row }">
|
|
|
<el-link
|
|
|
@@ -347,15 +366,14 @@
|
|
|
@click="openorderDetail(row)"
|
|
|
>
|
|
|
{{ row.orderNo }}
|
|
|
- </el-link
|
|
|
- >
|
|
|
+ </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" >
|
|
|
+ <div class="ele-border-lighter form-content">
|
|
|
<!-- 数据表格 -->
|
|
|
<ele-pro-table
|
|
|
ref="table"
|
|
|
@@ -363,7 +381,6 @@
|
|
|
:datasource="sendDatasource"
|
|
|
height="calc(100vh - 520px)"
|
|
|
style="margin-bottom: 10px"
|
|
|
-
|
|
|
full-height="calc(100vh - 116px)"
|
|
|
tool-class="ele-toolbar-form"
|
|
|
cache-key="eomContactPageTable"
|
|
|
@@ -377,8 +394,7 @@
|
|
|
@click="openorderDetail(row, 'receiveNo')"
|
|
|
>
|
|
|
{{ row.receiveNo }}
|
|
|
- </el-link
|
|
|
- >
|
|
|
+ </el-link>
|
|
|
</template>
|
|
|
<template v-slot:orderNo="{ row }">
|
|
|
<el-link
|
|
|
@@ -387,8 +403,7 @@
|
|
|
@click="openorderDetail(row, 'orderNo')"
|
|
|
>
|
|
|
{{ row.orderNo }}
|
|
|
- </el-link
|
|
|
- >
|
|
|
+ </el-link>
|
|
|
</template>
|
|
|
</ele-pro-table>
|
|
|
</div>
|
|
|
@@ -405,14 +420,17 @@
|
|
|
style="margin-bottom: 10px"
|
|
|
full-height="calc(100vh - 116px)"
|
|
|
tool-class="ele-toolbar-form"
|
|
|
- cache-key="eomContactPageTable">
|
|
|
+ cache-key="eomContactPageTable"
|
|
|
+ >
|
|
|
<!-- 查看详情列 -->
|
|
|
<template v-slot:returnNo="{ row }">
|
|
|
<el-link
|
|
|
type="primary"
|
|
|
:underline="false"
|
|
|
- @click="openorderDetail(row, 'returnNo')">
|
|
|
- {{ row.returnNo }}</el-link>
|
|
|
+ @click="openorderDetail(row, 'returnNo')"
|
|
|
+ >
|
|
|
+ {{ row.returnNo }}</el-link
|
|
|
+ >
|
|
|
</template>
|
|
|
<template v-slot:receiveNo="{ row }">
|
|
|
<el-link
|
|
|
@@ -434,7 +452,6 @@
|
|
|
</template>
|
|
|
</ele-pro-table>
|
|
|
</div>
|
|
|
-
|
|
|
</el-tab-pane>
|
|
|
<el-tab-pane label="对账记录" name="reconciliation">
|
|
|
<headerTitle title="对账记录" style="margin-top: 30px"></headerTitle>
|
|
|
@@ -448,18 +465,25 @@
|
|
|
style="margin-bottom: 10px"
|
|
|
full-height="calc(100vh - 116px)"
|
|
|
tool-class="ele-toolbar-form"
|
|
|
- cache-key="eomContactPageTable">
|
|
|
+ cache-key="eomContactPageTable"
|
|
|
+ >
|
|
|
<!-- 查看详情列 -->
|
|
|
<template v-slot:statementNo="{ row }">
|
|
|
- <el-link type="primary" :underline="false" @click="openorderDetail(row,'statementNo')"> {{
|
|
|
- row.statementNo
|
|
|
- }}
|
|
|
+ <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
|
|
|
+ type="primary"
|
|
|
+ :underline="false"
|
|
|
+ @click="openorderDetail(row, 'orderNo')"
|
|
|
+ >
|
|
|
+ {{ row.orderNo }}
|
|
|
</el-link>
|
|
|
</template>
|
|
|
</ele-pro-table>
|
|
|
@@ -467,7 +491,7 @@
|
|
|
</el-tab-pane>
|
|
|
<el-tab-pane label="开票记录" name="invoice">
|
|
|
<headerTitle title="开票记录" style="margin-top: 30px"></headerTitle>
|
|
|
- <el-card shadow="never" >
|
|
|
+ <el-card shadow="never">
|
|
|
<!-- 数据表格 -->
|
|
|
<ele-pro-table
|
|
|
ref="table"
|
|
|
@@ -478,22 +502,22 @@
|
|
|
cache-key="eomContactPageTable"
|
|
|
>
|
|
|
<!-- 收款信息 -->
|
|
|
- <template v-slot:code="{row}">
|
|
|
-
|
|
|
+ <template v-slot:code="{ row }">
|
|
|
<el-link
|
|
|
type="primary"
|
|
|
:underline="false"
|
|
|
- @click="handleDetail(row,'view')">
|
|
|
+ @click="handleDetail(row, 'view')"
|
|
|
+ >
|
|
|
{{ row.code }}
|
|
|
</el-link>
|
|
|
</template>
|
|
|
<!-- 开票信息 -->
|
|
|
- <template v-slot:invoiceCode="{row}">
|
|
|
-
|
|
|
+ <template v-slot:invoiceCode="{ row }">
|
|
|
<el-link
|
|
|
type="primary"
|
|
|
:underline="false"
|
|
|
- @click="handleInvoiceDetail(row,'view')">
|
|
|
+ @click="handleInvoiceDetail(row, 'view')"
|
|
|
+ >
|
|
|
{{ row.invoiceCode }}
|
|
|
</el-link>
|
|
|
</template>
|
|
|
@@ -505,117 +529,111 @@
|
|
|
<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, reviewStatusEnum,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";
|
|
|
+ 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, reviewStatusEnum, 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';
|
|
|
+ import certificateManagement from '@/views/saleManage/contact/components/certificateManagement/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: [
|
|
|
+ export default {
|
|
|
+ props: {
|
|
|
+ categoryTreeList: Array
|
|
|
+ },
|
|
|
+ mixins: [dictMixins],
|
|
|
+ components: {
|
|
|
+ fileMain,
|
|
|
+ certificateManagement,
|
|
|
+ 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
|
|
|
@@ -629,877 +647,901 @@ export default {
|
|
|
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];
|
|
|
+ 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'
|
|
|
}
|
|
|
- }
|
|
|
- ],
|
|
|
- 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 reviewStatusEnum[_row.reviewStatus].label;
|
|
|
+ ],
|
|
|
+ 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'
|
|
|
}
|
|
|
- },
|
|
|
- {
|
|
|
- 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? '委外发货退货':'采购收货退货'
|
|
|
+ ],
|
|
|
+ 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'
|
|
|
}
|
|
|
- },
|
|
|
- // {
|
|
|
- // 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 reviewStatusEnum[_row.reviewStatus].label;
|
|
|
+ ],
|
|
|
+ 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];
|
|
|
+ }
|
|
|
}
|
|
|
- },
|
|
|
- {
|
|
|
- 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 reviewStatusEnum[_row.reviewStatus].label;
|
|
|
+ ],
|
|
|
+ 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 reviewStatusEnum[_row.reviewStatus].label;
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: 'createTime',
|
|
|
+ label: '创建时间',
|
|
|
+ align: 'center',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ minWidth: 170
|
|
|
}
|
|
|
- },
|
|
|
- {
|
|
|
- prop: 'replied',
|
|
|
- label: '是否回执',
|
|
|
- align: 'center',
|
|
|
- slot: 'replied',
|
|
|
- showOverflowTooltip: true,
|
|
|
- minWidth: 200,
|
|
|
- formatter: (_row, _column, cellValue) => {
|
|
|
- return _row.replied ? '是' : '否';
|
|
|
+ ],
|
|
|
+ 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 reviewStatusEnum[_row.reviewStatus].label;
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: 'createTime',
|
|
|
+ label: '创建时间',
|
|
|
+ align: 'center',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ minWidth: 170
|
|
|
}
|
|
|
- },
|
|
|
- {
|
|
|
- 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
|
|
|
+ ],
|
|
|
+ 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 reviewStatusEnum[_row.reviewStatus].label;
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ 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
|
|
|
}
|
|
|
- },
|
|
|
- {
|
|
|
- minWidth: 100,
|
|
|
- prop: 'approvalStatus',
|
|
|
- label: '审核状态',
|
|
|
- align: 'center',
|
|
|
- slot: 'approvalStatus',
|
|
|
- formatter: (_row, _column, cellValue) => {
|
|
|
- return reviewStatus[_row.approvalStatus];
|
|
|
+ ],
|
|
|
+ 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: 'produceType',
|
|
|
- align: 'center',
|
|
|
- label: '属性类型',
|
|
|
- showOverflowTooltip: true,
|
|
|
- minWidth: 110,
|
|
|
- formatter: (row, column) => {
|
|
|
- if(row.produceType){
|
|
|
- return row.produceType.map(item=>{
|
|
|
- return lbjtList[item]
|
|
|
- }).toString()
|
|
|
+ ],
|
|
|
+ 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: 'produceType',
|
|
|
+ align: 'center',
|
|
|
+ label: '属性类型',
|
|
|
+ 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.requestDict('生产类型');
|
|
|
+ },
|
|
|
+ // {
|
|
|
+ // 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
|
|
|
+ }
|
|
|
|
|
|
- this.row = row;
|
|
|
- this.visible = true;
|
|
|
- await this._getById(row.id);
|
|
|
+ // {
|
|
|
+ // 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
|
|
|
+ // }
|
|
|
+ ],
|
|
|
+ type: ''
|
|
|
+ };
|
|
|
},
|
|
|
+ // computed: {
|
|
|
+ // getLabel() {
|
|
|
+ // return this.categoryIdList
|
|
|
+ // .map((item) => {
|
|
|
+ // let data = this.$refs.treeSelect.getNodeByValue(item);
|
|
|
+ // return data.rootCategoryLevelId;
|
|
|
+ // })
|
|
|
+ // .includes('20250317001')
|
|
|
+ // ? '生产列表'
|
|
|
+ // : '供货列表';
|
|
|
+ // }
|
|
|
+ // },
|
|
|
+ methods: {
|
|
|
+ async open(row, curNodeData) {
|
|
|
+ this.requestDict('生产类型');
|
|
|
+ this.type = curNodeData.rootCategoryLevelId == '20250317001' ? '6' : '3';
|
|
|
|
|
|
- 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: 2,
|
|
|
- ...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||[];
|
|
|
+ this.row = row;
|
|
|
+ this.visible = true;
|
|
|
+ await this._getById(row.id);
|
|
|
+ },
|
|
|
|
|
|
- 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)
|
|
|
- });
|
|
|
- },
|
|
|
+ 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: 2,
|
|
|
+ ...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
|
|
|
+ };
|
|
|
+ },
|
|
|
+ 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 || [];
|
|
|
|
|
|
- downloadFile(file) {
|
|
|
- getFile({objectName: file.storePath}, file.name);
|
|
|
- },
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.$refs.certificateManagementRef &&
|
|
|
+ this.$refs.certificateManagementRef.init(
|
|
|
+ this.type,
|
|
|
+ this.form.id,
|
|
|
+ this.form.name
|
|
|
+ );
|
|
|
+ });
|
|
|
|
|
|
- }
|
|
|
-};
|
|
|
+ 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>
|