yusheng 1 anno fa
parent
commit
322960bb24

BIN
public/importTemplate/供应商信息导入模板.xlsx


BIN
public/importTemplate/客户信息导入模板.xlsx


+ 51 - 0
src/api/saleManage/contact.js

@@ -285,3 +285,54 @@ export async function groupByContact(params) {
   }
   return Promise.reject(new Error(res.data.message));
 }
+
+
+/**
+ * 客户资质证照
+ */
+export async function identityphotoList(data) {
+  const res = await request.post(`/main/identityphoto/list`, data);
+  if (res.data.code == 0) {
+    return res.data.data;
+  }
+  return Promise.reject(new Error(res.data.message));
+}
+
+// 保存or更新
+export async function saveOrEdit (data) {
+  const res = await request.post(`/main/identityphoto/saveOrUpdate`, data);
+  if (res.data.code == 0) {
+    return res.data;
+  }
+  return Promise.reject(new Error(res.data.message));
+}
+
+
+
+// 获取证照信息详情
+export async function getPhotoInfo (id) {
+  const res = await request.get(`/main/identityphoto/getById/${id}`);
+  if (res.data.code == 0) {
+    return res.data.data;
+  }
+  return Promise.reject(new Error(res.data.message));
+}
+// 物品信息列表
+export async function getList(params) {
+  const res = await request.get('/main/category/getList', { params });
+  if (res.data.code == 0) {
+    return res.data.data;
+  }
+  return Promise.reject(new Error(res.data.message));
+}
+
+/**
+ * 删除
+ */
+export async function deleteIdentityphoto(data) {
+  const res = await request.delete('/main/identityphoto/delete', { data });
+  if (res.data.code == 0) {
+    return res.data.data;
+  }
+  return Promise.reject(new Error(res.data.message));
+}

+ 30 - 2
src/enum/dict.js

@@ -62,7 +62,8 @@ export default {
   企业规模: 'enterprise_size',
   产地: 'purchase_origin',
   故障等级: 'fault_level',
-  商品价格类型: 'goods_price_type'
+  商品价格类型: 'goods_price_type',
+  规则状态: 'rule_status',
 };
 
 export const numberList = [
@@ -74,7 +75,8 @@ export const numberList = [
   'order_source',
   'production_status',
   'plan_type',
-  'delivery_status'
+  'delivery_status',
+  'rule_status'
 ];
 
 //报价管理-审核枚举
@@ -409,3 +411,29 @@ label: '空闲中',
 value: 2
 },
 ]
+
+ 
+//持证类型
+export const holderTypeOptions = [
+  {
+    label: '个人',
+    value: '1'
+  },
+
+  {
+    label: '供应商',
+    value: '3'
+  },
+  {
+    label: '客户',
+    value: '4'
+  },
+  {
+    label: '企业资质',
+    value: '2'
+  },
+  {
+    label: '受托企业资质',
+    value: '6'
+  }
+];

+ 5 - 0
src/views/purchasingManage/purchaseOrder/components/addDialog.vue

@@ -850,6 +850,11 @@
         });
         info['rawDetailList'] = info.rawList;
         info['outputDetailList'] = info.outputList;
+  
+        info.productList.forEach(item=>{
+           item['discountSinglePrice']=item.singlePrice
+           item['discountTotalPrice']=item.totalPrice
+        })
         if (info.productList.lenght > 1) {
           this.$refs.planTableListRef.open(info);
         } else {

+ 1097 - 1055
src/views/purchasingManage/supplierManage/components/contactDetailDialog.vue

@@ -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>

+ 4 - 6
src/views/purchasingManage/supplierManage/index.vue

@@ -147,7 +147,7 @@
     <importDialog
       ref="importDialogRef"
       @success="reload"
-      :fileUrl="'/eos/importTemplate/客户信息导入模板.xlsx'"
+      :fileUrl="'/eos/importTemplate/供应商信息导入模板.xlsx'"
       fileName="供应商信息导入模板"
       apiUrl="/eom/contact/importFileSupplier"
     />
@@ -155,10 +155,8 @@
 </template>
 
 <script>
-  import ContactSearch from './components/contactSearch.vue';
-  // import AddContactDialog from './components/addContactDialog.vue';
+  import ContactSearch from './components/contactSearch.vue';;
   import AddContactDialog from '@/views/saleManage/contact/components/addContactDialog.vue';
-  // D:\公司项目\kd-aiot-frontend-eom\src\views\saleManage\contact\components\addContactDialog.vue
   import ContactDetailDialog from './components/contactDetailDialog.vue';
   import popModal from '@/components/pop-modal';
   import AssetTree from '@/components/AssetTree';
@@ -377,7 +375,7 @@
       handleNodeClick(data, node) {
         this.curNodeData = data;
         let type = 2;
-        if (data.id == '20250317001' || data.parentId == '20250317001') {
+        if ( data.rootCategoryLevelId == '20250317001') {
           type = 3;
         }
         this.reload({ categoryId: data.id, type });
@@ -441,7 +439,7 @@
           });
       },
       openDetail(row) {
-        this.$refs.contactDetailDialogRef.open(row);
+        this.$refs.contactDetailDialogRef.open(row,this.curNodeData);
       }
     }
   };

+ 1 - 0
src/views/saleManage/businessOpportunity/components/darwerComponents/opportunityInfo.vue

@@ -84,6 +84,7 @@ export default {
   },
   methods: {
     async init(row) {
+      console.log(row,'rowdadasd')
       this.form = row;
     },
 

+ 75 - 80
src/views/saleManage/contact/components/addContactDialog.vue

@@ -240,7 +240,7 @@
               </el-form-item>
             </el-col>
             <el-col :span="8" v-if="form.type != 2">
-              <el-form-item label="资质审查" prop="qualificationCensorship">
+              <el-form-item label="客户审查" prop="qualificationCensorship">
                 <el-radio v-model="form.qualificationCensorship" label="1"
                   >启用</el-radio
                 >
@@ -609,22 +609,26 @@
 
       <el-tab-pane label="证书资质" :name="4">
         <headerTitle title="证书资质" style="margin-top: 30px"></headerTitle>
-        <ele-pro-table
+        <certificateManagement
+          ref="certificateManagementRef"
+        ></certificateManagement>
+
+        <!-- <ele-pro-table
           ref="certificateTable"
           :columns="certificateColumns"
           :need-page="false"
           :datasource="tableCertificateDataList"
           :toolkit="[]"
           height="350px"
-        >
-          <!-- 表头工具栏 -->
-          <template v-slot:toolbar>
+        > -->
+        <!-- 表头工具栏 -->
+        <!-- <template v-slot:toolbar>
             <el-button type="primary" @click="addCertificate('add', '')"
               >新增</el-button
             >
-          </template>
-          <!-- 操作栏 -->
-          <template v-slot:action="scope">
+          </template> -->
+        <!-- 操作栏 -->
+        <!-- <template v-slot:action="scope">
             <el-link
               v-if="[1, 2].includes(scope.row.processStatus)"
               type="primary"
@@ -683,7 +687,7 @@
               </template>
             </el-popconfirm>
           </template>
-        </ele-pro-table>
+        </ele-pro-table> -->
       </el-tab-pane>
       <el-tab-pane :label="getLabel" :name="5" v-if="form.type != 1">
         <headerTitle :title="getLabel" style="margin-top: 30px"></headerTitle>
@@ -793,7 +797,7 @@
       classType="1"
       @changeParent="changeParent"
     ></parentList>
-    <!-- 资质证书弹窗   -->
+    <!-- 资质证书弹窗  
     <certificate-qualifications-dialog
       :certificate-qualifications-dialog-flag.sync="
         certificateQualificationsDialogFlag
@@ -805,7 +809,7 @@
       @success="tableCertificateDataAdd"
       @reload="reloadTableCertificateDataList"
     >
-    </certificate-qualifications-dialog>
+    </certificate-qualifications-dialog> -->
     <process-submit-dialog
       :processSubmitDialogFlag.sync="processSubmitDialogFlag"
       v-if="processSubmitDialogFlag"
@@ -825,9 +829,9 @@
     contactDetail,
     contactSave,
     contactUpdate,
-    contactQcPackDeleteAPI,
-    contactQcSubmit,
-    contactQcPackPageAPI,
+    // contactQcPackDeleteAPI,
+    // identityphotoList,
+    // contactQcPackPageAPI,
     contactQcPackSaveAPI
   } from '@/api/saleManage/contact';
   import { categoryData } from 'element-china-category-data';
@@ -846,10 +850,9 @@
   import { reviewStatus, lbjtList } from '@/enum/dict';
   import { deepClone } from '@/utils';
   import searchTable from '@/views/saleManage/saleOrder/components/searchTable.vue';
-  import { getTableList } from '@/api/saleManage/saleorder';
   import fileMain from '@/components/addDoc/index.vue';
   import processSubmitDialog from '@/BIZComponents/processSubmitDialog/processSubmitDialog.vue';
-  import { getByCode } from '@/api/system/dictionary-data';
+  import certificateManagement from '@/views/saleManage/contact/components/certificateManagement/index.vue';
 
   export default {
     props: {
@@ -865,7 +868,8 @@
       deptSelect,
       personSelect,
       parentList,
-      productList
+      productList,
+      certificateManagement
     },
     data() {
       let formDef = {
@@ -1204,7 +1208,7 @@
         return this.categoryIdList
           .map((item) => {
             let data = this.$refs.treeSelect.getNodeByValue(item);
-            return data.parentId == 0 ? data.id : data.parentId;
+            return data.rootCategoryLevelId;
           })
           .includes('20250317001')
           ? '生产列表'
@@ -1366,7 +1370,7 @@
           this.isUpdate = false;
           // 默认带出列表页面选中的分类
           this.$nextTick(() => {
-            this.categoryIdList = contactCategoryId?[contactCategoryId]:[];
+            this.categoryIdList = contactCategoryId ? [contactCategoryId] : [];
           });
         } else {
           this.isUpdate = true;
@@ -1390,42 +1394,42 @@
         });
       },
 
-      //新增/查看/修改资质
-      addCertificate(type, row, index) {
-        this.certificateQualificationsDialogFlag = true;
-        this.$nextTick(() => {
-          console.log(index);
-          this.$refs.certificateQualificationsDialogRef.init(type, row, index);
-        });
-      },
-      /* 证书资质表格数据源 */
-      tableCertificateData() {
-        contactQcPackPageAPI({
-          certificationType: this.form.type,
-          relationId: this.form.id
-        }).then((res) => {
-          this.tableCertificateDataList = res;
-        });
-      },
+      // //新增/查看/修改资质
+      // addCertificate(type, row, index) {
+      //   this.certificateQualificationsDialogFlag = true;
+      //   this.$nextTick(() => {
+      //     console.log(index);
+      //     this.$refs.certificateQualificationsDialogRef.init(type, row, index);
+      //   });
+      // },
+      // /* 证书资质表格数据源 */
+      // tableCertificateData() {
+      //   contactQcPackPageAPI({
+      //     certificationType: this.form.type,
+      //     relationId: this.form.id
+      //   }).then((res) => {
+      //     this.tableCertificateDataList = res;
+      //   });
+      // },
 
-      tableCertificateDataAdd({ form = {}, index = '' }) {
-        if (this.form.id) {
-          this.tableCertificateData();
-        } else {
-          if (index + '') {
-            this.$set(this.tableCertificateDataList, index, form);
-          } else {
-            this.tableCertificateDataList.push(form);
-          }
-        }
-      },
-      //删除资质包
-      handleRemove(row) {
-        contactQcPackDeleteAPI([row.id]).then((res) => {
-          this.$message.success('删除成功!');
-          this.tableCertificateDataAdd({});
-        });
-      },
+      // tableCertificateDataAdd({ form = {}, index = '' }) {
+      //   if (this.form.id) {
+      //     this.tableCertificateData();
+      //   } else {
+      //     if (index + '') {
+      //       this.$set(this.tableCertificateDataList, index, form);
+      //     } else {
+      //       this.tableCertificateDataList.push(form);
+      //     }
+      //   }
+      // },
+      // //删除资质包
+      // handleRemove(row) {
+      //   contactQcPackDeleteAPI([row.id]).then((res) => {
+      //     this.$message.success('删除成功!');
+      //     this.tableCertificateDataAdd({});
+      //   });
+      // },
 
       //开启提交流程
       async contactSubmit(row) {
@@ -1442,18 +1446,9 @@
               businessName: base.name,
               businessType: '客户审核'
             }
-            // callBackMethodType : '1',
-            // callBackMethod : 'proTargetPlanApproveApiImpl.updatePlanApprovalStatus',
-            // pcHandle : '/bpm/handleTask/components/project-manage/plan-manage/submit.vue',
-            // pcView : '/bpm/handleTask/components/project-manage/plan-manage/detailDialog.vue',
-            // miniHandle : '',
-            // miniView : '',
           };
           this.$refs.processSubmitDialogRef.init(params);
         });
-        // await contactQcSubmit({ businessId: row.id, certificationType: 1 });
-
-        // this.reload();
       },
       //开启资质提交流程
       async submit(row) {
@@ -1465,25 +1460,15 @@
             formCreateUserId: row.createUserId,
             variables: {
               certificationType: this.form.type,
-              businessName: row.name,
-
+              businessName: row.name
             }
-            // callBackMethodType : '1',
-            // callBackMethod : 'proTargetPlanApproveApiImpl.updatePlanApprovalStatus',
-            // pcHandle : '/bpm/handleTask/components/project-manage/plan-manage/submit.vue',
-            // pcView : '/bpm/handleTask/components/project-manage/plan-manage/detailDialog.vue',
-            // miniHandle : '',
-            // miniView : '',
           };
           this.$refs.processSubmitDialogRef.init(params);
         });
-        // await contactQcSubmit({ businessId: row.id, certificationType: 1 });
-
-        // this.reload();
       },
       //获取代号
       unifiedSocialCreditCodeChange(val) {
-        this.form.serialNo = this.form.serialNo||val.slice(-4);
+        this.form.serialNo = this.form.serialNo || val.slice(-4);
       },
       // 选择负责人部门
       change_principalDep(id) {
@@ -1753,7 +1738,7 @@
         this.tableLinkData = data.linkList;
         this.supplyList = data.productList || [];
 
-        this.tableCertificateDataAdd({});
+        // this.tableCertificateDataAdd({});
         this.form.qualificationCensorship =
           this.form.qualificationCensorship || '2';
 
@@ -1762,12 +1747,22 @@
         //     data.base.businessLicenseFile
         //   ]);
         // }
-        this.$nextTick(()=>{
-          this.categoryIdList = this.form.categoryId
+        this.categoryIdList = this.form.categoryId
           ? deepClone(this.form.categoryId.split(','))
           : [];
-        })
-       
+        this.$nextTick(() => {
+          this.$refs.certificateManagementRef &&
+            this.$refs.certificateManagementRef.init(
+              this.form.type != 1
+                ? this.getLabel == '供货列表'
+                  ? '3'
+                  : '6'
+                : '4',
+              this.form.id,
+              this.form.name
+            );
+        });
+
         if (this.tableLinkData && this.tableLinkData.length > 0) {
           this.tableLinkData.forEach((e) => (e.status = e.status + ''));
         }

+ 282 - 0
src/views/saleManage/contact/components/certificateManagement/components/add-dialog.vue

@@ -0,0 +1,282 @@
+<template>
+  <!-- 上传 -->
+  <el-dialog
+    :title="title"
+    :visible.sync="dialogVisible"
+    @close="close"
+    width="60%"
+    append-to-body
+  >
+    <el-form ref="form" :model="form" :rules="rules" label-width="82px">
+      <el-row :gutter="15">
+        <el-col v-bind="styleResponsive ? { sm: 12 } : { span: 12 }">
+          <el-form-item prop="holderType" label="持证类型">
+            <el-select
+              style="width: 100%"
+              v-model="form.holderType"
+              @change="holderTypeChange"
+              :disabled="true"
+            >
+              <el-option
+                :label="item.label"
+                :value="item.value"
+                v-for="(item, index) in holderTypeOptions"
+                :key="index"
+              >
+              </el-option>
+            </el-select>
+          </el-form-item>
+        </el-col>
+        <el-col v-bind="styleResponsive ? { sm: 12 } : { span: 12 }">
+          <el-form-item prop="type" label="证件类型">
+            <DictSelection
+              v-model="form.type"
+              dictName="客户/供应商资质类型"
+            ></DictSelection>
+          </el-form-item>
+        </el-col>
+        <el-col v-bind="styleResponsive ? { sm: 12 } : { span: 12 }">
+          <el-form-item prop="code" label="证照编号">
+            <el-input placeholder="请输入" v-model="form.code"></el-input>
+          </el-form-item>
+        </el-col>
+        <el-col v-bind="styleResponsive ? { sm: 12 } : { span: 12 }">
+          <el-form-item label="等级:" prop="level">
+            <el-select style="width: 100%" v-model="form.level" filterable>
+              <el-option
+                :label="item.label"
+                :value="item.value"
+                v-for="(item, index) in levelOptions"
+                :key="index"
+              >
+              </el-option>
+            </el-select>
+          </el-form-item>
+        </el-col>
+        <el-col v-bind="styleResponsive ? { sm: 12 } : { span: 12 }">
+          <el-form-item prop="status" label="状态">
+            <DictSelection
+              v-model="form.status"
+              dictName="规则状态"
+            ></DictSelection>
+          </el-form-item>
+        </el-col>
+
+        <el-col v-bind="styleResponsive ? { sm: 12 } : { span: 12 }">
+          <el-form-item prop="holder" label="持证对象">
+            <el-input v-model="form.holder" clearable readonly></el-input>
+          </el-form-item>
+        </el-col>
+        <el-col v-bind="styleResponsive ? { sm: 12 } : { span: 12 }">
+          <el-form-item label="颁发时间">
+            <el-date-picker
+              style="width: 100%"
+              v-model="form.enactorTime"
+              type="date"
+              value-format="yyyy-MM-dd HH:mm:ss"
+              placeholder="选择日期"
+            >
+            </el-date-picker>
+          </el-form-item>
+        </el-col>
+        <el-col v-bind="styleResponsive ? { sm: 12 } : { span: 12 }">
+          <el-form-item prop="date" label="有效期至">
+            <el-date-picker
+              style="width: 100%"
+              v-model="form.date"
+              type="daterange"
+              range-separator="至"
+              start-placeholder="开始日期"
+              end-placeholder="结束日期"
+              value-format="yyyy-MM-dd HH:mm:ss"
+              :default-time="['00:00:00', '23:59:59']"
+            >
+            </el-date-picker>
+          </el-form-item>
+        </el-col>
+        <el-col v-bind="styleResponsive ? { sm: 24 } : { span: 24 }">
+          <el-form-item prop="fileObj" label="附件">
+            <fileMain v-model="form.fileObj" />
+          </el-form-item>
+        </el-col>
+        <el-col v-bind="styleResponsive ? { sm: 24 } : { span: 24 }">
+          <el-form-item prop="remark" label="备注">
+            <el-input
+              placeholder="请输入"
+              v-model="form.remark"
+              type="textarea"
+              :rows="3"
+              :resize="`none`"
+            ></el-input>
+          </el-form-item>
+        </el-col>
+      </el-row>
+    </el-form>
+    <productTable ref="productTableRef" />
+    <div slot="footer" class="dialog-footer">
+      <el-button size="small" @click="save" type="primary">保 存</el-button>
+      <el-button size="small" @click="close">关 闭</el-button>
+    </div>
+  </el-dialog>
+</template>
+
+<script>
+  import { saveOrEdit, getPhotoInfo } from '@/api/saleManage/contact';
+  import fileMain from '@/components/addDoc/index.vue';
+  import { getCode } from '@/api/login/index.js';
+  import productTable from './productTable.vue';
+
+  import { listOrganizations } from '@/api/system/organization';
+  import { holderTypeOptions } from '@/enum/dict.js';
+  const defaultForm = {
+    code: '',
+    holder: '',
+    holderId: '',
+    type: '',
+    date: [],
+    fileObj: [],
+    holderType: '4',
+
+    status: 1
+  };
+  export default {
+    components: {
+      fileMain,
+      productTable
+    },
+    //注册组件
+    data() {
+      return {
+        dialogVisible: false,
+        levelOptions: [
+          {
+            label: '初级',
+            value: '1'
+          },
+          {
+            label: '中级',
+            value: '2'
+          },
+          {
+            label: '高级',
+            value: '3'
+          }
+        ],
+        rules: {
+          code: [
+            { required: true, trigger: 'blur', message: '请输入证照编号' }
+          ],
+          date: [
+            { required: true, trigger: 'change', message: '请选择有效期' }
+          ],
+          status: [
+            { required: true, trigger: 'change', message: '请选择状态' }
+          ],
+          fileObj: [{ required: true, trigger: 'change', message: '请选择' }]
+        },
+        form: { ...defaultForm },
+        title: '新增',
+        holderTypeOptions,
+        companyData: [] //公司分类
+      };
+    },
+    computed: {
+      // 是否开启响应式布局
+      styleResponsive() {
+        return this.$store.state.theme.styleResponsive;
+      }
+    },
+
+    methods: {
+      open(row, type, holderData) {
+        this.$refs.form && this.$refs.form.clearValidate();
+        this.dialogVisible = true;
+        if (type != 'add') {
+          this.title = '修改';
+          this.getInfo(row.id);
+        } else {
+          this.title = '新增';
+          console.log(holderData, 'holderData');
+
+          if (holderData.holderId) {
+            this.form.holder = holderData.holder;
+            this.form.holderId = holderData.holderId;
+            this.form.holderType = holderData.holderType;
+          }
+
+          this.getOrderCode();
+        }
+      },
+      async getOrderCode() {
+        const data = await getCode('license_code');
+        this.$set(this.form, 'code', data);
+      },
+
+      async getInfo(id) {
+        const data = await getPhotoInfo(id);
+        this.form = {
+          ...data,
+          type: data.type + '',
+          date: [data.validityStartTime, data.validityEndTime],
+          holderType: data.holderType || '1'
+        };
+
+        this.$refs.productTableRef.putTableValue(data.categorys || []);
+      },
+
+      close() {
+        this.dialogVisible = false;
+        this.form = { defaultForm };
+        this.$refs.productTableRef.initData();
+      },
+
+      save() {
+        this.$refs.form.validate((valid) => {
+          if (!valid) {
+            return false;
+          }
+          this.loading = true;
+          if (this.form.date?.length) {
+            this.form.validityStartTime = this.form.date[0];
+            this.form.validityEndTime = this.form.date[1];
+          }
+
+          const data = {
+            ...this.form
+          };
+          delete data.date;
+          let productTable = this.$refs.productTableRef.getTableValue();
+          data.categorys = productTable || [];
+          if (!this.form.holderId) {
+            this.$emit('success', this.form);
+            this.close();
+          } else {
+            saveOrEdit(data)
+              .then((msg) => {
+                this.loading = false;
+                this.$message.success(msg);
+                this.close();
+                this.$emit('success');
+              })
+              .catch((e) => {
+                this.loading = false;
+              });
+          }
+        });
+      },
+
+      //选择公司分类
+      handleChange(val) {
+        if (!val) return (this.form.processTypeName = '');
+        let node = this.$refs.tree.$refs.tree.getCurrentNode();
+        this.form.holderId = node.id;
+      }
+    }
+  };
+</script>
+
+<style lang="scss">
+  .el-form-item {
+    margin-bottom: 20px !important;
+  }
+</style>

+ 95 - 0
src/views/saleManage/contact/components/certificateManagement/components/detail-dialog.vue

@@ -0,0 +1,95 @@
+<template>
+  <el-dialog title="证照详情" :visible.sync="dialogVisible" width="60%"
+  append-to-body
+  
+  >
+    <el-descriptions title="" :column="3" size="medium" border>
+      <el-descriptions-item>
+        <template slot="label"> 证照编号 </template>
+        {{ form.code }}
+      </el-descriptions-item>
+      <el-descriptions-item>
+        <template slot="label"> 类型 </template>
+        {{ getDictValue('客户/供应商资质类型', form.type) }}
+      </el-descriptions-item>
+      <el-descriptions-item>
+        <template slot="label"> 持证对象</template>
+        {{ form.holder }}
+      </el-descriptions-item>
+      <el-descriptions-item :span="2">
+        <template slot="label"> 有效期至 </template>
+        {{ form.validityStartTime + ' — ' + form.validityEndTime }}
+      </el-descriptions-item>
+      <el-descriptions-item>
+        <template slot="label"> 状态 </template>
+        {{ getDictValue('规则状态', form.status) }}
+      </el-descriptions-item>
+      <el-descriptions-item>
+        <template slot="label"> 颁发时间 </template>
+        {{ form.enactorTime }}
+      </el-descriptions-item>
+      <el-descriptions-item>
+        <template slot="label"> 创建人 </template>
+        {{ form.createUserName }}
+      </el-descriptions-item>
+      <!-- <el-descriptions-item>
+        <template slot="label"> 创建机构 </template>
+        {{ form.createUserDeptName }}
+      </el-descriptions-item> -->
+      <el-descriptions-item>
+        <template slot="label"> 创建时间 </template>
+        {{ form.createTime }}
+      </el-descriptions-item>
+      <el-descriptions-item :span="3">
+        <template slot="label"> 附件 </template>
+        <fileMain v-model="form.fileObj" type="view"></fileMain>
+      </el-descriptions-item>
+      <el-descriptions-item :span="3">
+        <template slot="label"> 备注 </template>
+        {{ form.remark }}
+      </el-descriptions-item>
+    </el-descriptions>
+    <div slot="footer" class="dialog-footer">
+      <el-button size="small" @click="dialogVisible = false">关 闭</el-button>
+    </div>
+  </el-dialog>
+</template>
+
+<script>
+  import { getPhotoInfo } from '@/api/saleManage/contact';
+  import dictMixins from '@/mixins/dictMixins';
+  import fileMain from '@/components/addDoc/index.vue';
+
+  export default {
+    mixins: [dictMixins],
+    components: {fileMain},
+    //注册组件
+    data() {
+      return {
+        dialogVisible: false,
+        form: {}
+      };
+    },
+    computed: {},
+    created() {
+      this.requestDict('客户/供应商资质类型');
+      this.requestDict('规则状态');
+    },
+    methods: {
+      open(row) {
+        this.dialogVisible = true;
+        this.getInfo(row.id);
+      },
+      async getInfo(id) {
+        const data = await getPhotoInfo(id);
+        this.form = data;
+      }
+    }
+  };
+</script>
+
+<style lang="scss">
+  .el-form-item {
+    margin-bottom: 20px !important;
+  }
+</style>

+ 166 - 0
src/views/saleManage/contact/components/certificateManagement/components/productTable.vue

@@ -0,0 +1,166 @@
+<template>
+    <div>
+    <headerTitle title="关联产品" ></headerTitle>
+    <ele-pro-table ref="table" :needPage="false" :columns="columns" :datasource="datasource" class="time-form"
+      :toolkit="[]">
+      <!-- 表头工具栏 -->
+      <template v-slot:toolbar>
+        <el-button
+              size="small"
+              type="primary"
+              icon="el-icon-plus"
+              class="ele-btn-icon"
+              @click="handParent('', -1)"
+            >
+              新增
+            </el-button>
+      </template>
+      <!-- 操作列 -->
+      <template v-slot:action="scope">
+        <el-popconfirm  class="ele-action" title="确定要删除吗?" @confirm="remove(scope.$index)">
+          <template v-slot:reference>
+            <el-link type="danger" :underline="false" icon="el-icon-delete">
+              删除
+            </el-link>
+          </template>
+        </el-popconfirm>
+      </template>
+    </ele-pro-table>
+
+    <product-list
+      ref="productListRef"
+      classType="1"
+      :is-get-inventory-total="true"
+      @changeParent="changeParent"
+    
+    ></product-list>
+</div>
+</template>
+
+<script>
+  import productList from '@/BIZComponents/product-list.vue';
+ 
+  export default {
+
+    components:{
+        productList
+    },
+    data() {
+        return {
+            datasource: [],
+            columns: [
+            {
+            width: 50,
+            label: '序号',
+            type: 'index',
+            columnKey: 'index',
+            align: 'center',
+            fixed: 'left'
+          },
+          {
+            prop: 'productCategoryName',
+            label: '类型',
+            slot: 'productCategoryName',
+            align: 'center'
+          },
+          {
+            prop: 'productCode',
+            label: '编码',
+            slot: 'productCode',
+            align: 'center'
+          },
+          {
+            prop: 'productName',
+            label: '名称',
+            slot: 'productName',
+            headerSlot: 'headerProductName',
+            align: 'center',
+            fixed: 'left'
+          },
+          {
+            prop: 'specification',
+            label: '规格',
+            slot: 'specification',
+            align: 'center'
+          },
+          {
+            prop: 'productBrand',
+            label: '牌号',
+            slot: 'productBrand',
+            align: 'center'
+          },
+          {
+            prop: 'modelType',
+            label: '型号',
+            slot: 'modelType',
+            align: 'center'
+          },
+          {
+          columnKey: 'action',
+          label: '操作',
+          width: 80,
+          align: 'left',
+          resizable: false,
+          slot: 'action',
+          showOverflowTooltip: true
+        }]
+        }
+    },
+    methods:{
+      //选择产品回调
+      changeParent(obj, idx) {
+        obj.forEach((item, index) => {
+          let i = idx == -1 ? index : idx;
+          let row = {};
+          row.key = this.datasource.length + 1;
+          let parasm = idx == -1 ? row : this.datasource[i];
+          this.$set(parasm, 'productId', item.id);
+          this.$set(parasm, 'productCategoryId', item.categoryLevelId);
+          this.$set(parasm, 'productCategoryName', item.categoryLevelPath);
+          this.$set(parasm, 'productCode', item.code);
+          this.$set(parasm, 'productName', item.name);
+          this.$set(parasm, 'specification', item.specification);
+          this.$set(parasm, 'productBrand', item.brandNum);
+          this.$set(parasm, 'modelType', item.modelType);
+          if (idx == -1) {
+            this.datasource.push(row);
+          }
+        });
+      },
+
+      //选择产品
+      handParent() {
+        this.$refs.productListRef.open('',-1);
+      },
+      //删除选中产品
+      remove(index) {
+        this.datasource.splice(index, 1);
+        this.setSort();
+      },
+
+      // 重新排序
+      setSort() {
+        this.datasource.forEach((n, index) => {
+          n.key = index + 1;
+        });
+      },
+
+      // 初始化数据
+      initData() {
+        this.datasource = [];
+      },
+
+      // 返回列表数据
+      getTableValue() {
+        let comitDatasource = this.datasource;
+        if (comitDatasource.length === 0) return [];
+        return comitDatasource;
+      },
+
+      //修改回显
+      putTableValue(data) {
+        this.datasource = data;
+      }
+    }
+  }
+</script>

+ 210 - 0
src/views/saleManage/contact/components/certificateManagement/index.vue

@@ -0,0 +1,210 @@
+<template>
+
+  <ele-pro-table
+      ref="table"
+      :columns="columns"
+      :datasource="tableList"
+      class="dict-table"
+      tool-class="ele-toolbar-form"
+      :need-page="false"
+    >
+      
+    <addDialog ref="addDialogRef" @success="reload" />
+    <detailDialog ref="detailDialogRef" />
+      <!-- 工具栏 -->
+      <template v-slot:toolbar>
+        <el-button
+          type="primary"
+          icon="el-icon-plus"
+          @click="handleUpload('add')"
+          v-if="holderData.holderId"
+          >添加</el-button
+        >
+        <!-- <el-button type="primary" @click="handleUpload">导入</el-button> -->
+      </template>
+      <template v-slot:code="{ row }">
+        <el-link type="primary" :underline="false" @click="openDetail(row)">{{
+          row.code
+        }}</el-link>
+
+        <p class="ele-text-info">
+          {{ getDictValue('客户/供应商资质类型', row.type) }}
+        </p>
+      </template>
+      <template v-slot:time="{ row }">
+        <p>起:{{ row.validityStartTime }}</p>
+        <p class="ele-text-info">止:{{ row.validityEndTime }}</p>
+      </template>
+      <template v-slot:createUser="{ row }">
+        <p>{{ row.createUserName }}</p>
+        <p>{{ row.createUserDeptName }}</p>
+        <p class="ele-text-info">{{ row.createTime }}</p>
+      </template>
+      <template v-slot:picture="{ row }">
+        <fileMain v-model="row.fileObj" type="view"></fileMain>
+      </template>
+      <template v-slot:action="{ row }">
+        <el-link
+          type="primary"
+          :underline="false"
+          icon="el-icon-edit"
+          @click="handleUpload('edit', row)"
+        >
+          修改
+        </el-link>
+        <el-popconfirm
+          class="ele-action"
+          title="确定要删除此信息吗?"
+          @confirm="remove([row.id])"
+        >
+          <template v-slot:reference>
+            <el-link type="danger" :underline="false" icon="el-icon-delete">
+              删除
+            </el-link>
+          </template>
+        </el-popconfirm>
+      </template>
+    </ele-pro-table>
+</template>
+
+<script>
+  import addDialog from './components/add-dialog.vue';
+  import detailDialog from './components/detail-dialog.vue';
+  import { identityphotoList,deleteIdentityphoto } from '@/api/saleManage/contact';
+  import dictMixins from '@/mixins/dictMixins';
+  import { holderTypeOptions } from '@/enum/dict.js';
+  import fileMain from '@/components/addDoc/index.vue';
+
+  export default {
+    mixins: [dictMixins],
+    components: { addDialog, detailDialog, fileMain },
+    data() {
+      return {
+        tableList: [],
+        columns: [
+          {
+            label: '序号',
+            type: 'index',
+            width: 55,
+            align: 'center'
+          },
+          {
+            label: '持证类型',
+            align: 'center',
+            prop: 'holderType',
+            formatter: (row) => {
+              return holderTypeOptions.find(
+                (item) => item.value == row.holderType
+              )?.label;
+            },
+            width: 150
+          },
+          {
+            align: 'center',
+            label: '证照编号',
+            prop: 'code',
+            slot: 'code',
+            width: 180
+          },
+          {
+            label: '状态',
+            align: 'center',
+            prop: 'status',
+            formatter: (row) => {
+              return this.getDictValue('规则状态', row.status);
+            }
+          },
+          {
+            label: '执证对象',
+            align: 'center',
+            prop: 'holder'
+          },
+          {
+            align: 'center',
+            label: '有效期限',
+            prop: 'time',
+            slot: 'time',
+            minWidth: '180',
+            showOverflowTooltip: true
+          },
+          {
+            label: '创建人信息',
+            align: 'center',
+            prop: 'createUser',
+            slot: 'createUser',
+            minWidth: '200',
+            showOverflowTooltip: true
+          },
+          {
+            label: '证照',
+            align: 'center',
+            prop: 'picture',
+            slot: 'picture'
+          },
+          {
+            label: '备注',
+            align: 'center',
+            prop: 'remark',
+            minWidth: '100',
+            showOverflowTooltip: true
+          },
+          {
+            columnKey: 'action',
+            label: '操作',
+            align: 'center',
+            width: 200,
+            resizable: false,
+            slot: 'action',
+            showOverflowTooltip: true
+          }
+        ],
+        holderData: {
+          holderId: '',
+          holder: '',
+          holderType: ''
+        }
+      };
+    },
+    created() {
+      this.requestDict('客户/供应商资质类型');
+      this.requestDict('规则状态');
+    },
+    methods: {
+      init(holderType, holderId, holder) {
+        this.holderData = { holderId, holder, holderType };
+        this.getTable();
+      },
+      getTable() {
+        identityphotoList({
+          holderType: this.holderData.holderType,
+          holderId: this.holderData.holderId
+        }).then((res) => {
+          this.tableList = res;
+        });
+      },
+      reload(data) {
+        if(data){
+          this.tableList.push(data)
+        }else{
+          this.getTable();
+        }
+      },
+      handleUpload(type, row) {
+        this.$refs.addDialogRef.open(row, type, this.holderData);
+      },
+
+      //删除接口
+      remove(delData) {
+        deleteIdentityphoto(delData).then((res) => {
+          this.$message.success('删除成功!');
+          this.reload();
+        });
+      },
+      openDetail(row) {
+        this.$refs.detailDialogRef.open(row);
+      }
+    }
+  };
+</script>
+
+<style class=""></style>

+ 181 - 171
src/views/saleManage/contact/components/drawer.vue

@@ -121,7 +121,9 @@
             ></receivableManage>
           </el-tab-pane>
           <el-tab-pane label="证书资质" name="证书资质">
-            <certificateTable ref="certificateTableRef"></certificateTable>
+            <certificateManagement
+              ref="certificateManagementRef"
+            ></certificateManagement>
           </el-tab-pane>
 
           <el-tab-pane label="审批流程" name="审批流程">
@@ -180,187 +182,195 @@
 </template>
 
 <script>
-import {
-  contactDetail,
-  updateContactDynamics,
-  queryContactIdCount
-} from '@/api/saleManage/contact';
-import dictMixins from '@/mixins/dictMixins';
-import contactInfo from './darwerComponents/contactInfo.vue';
+  import {
+    contactDetail,
+    updateContactDynamics,
+    queryContactIdCount
+  } from '@/api/saleManage/contact';
+  import dictMixins from '@/mixins/dictMixins';
+  import contactInfo from './darwerComponents/contactInfo.vue';
 
-import comment from './darwerComponents/comment.vue';
+  import comment from './darwerComponents/comment.vue';
 
-//银行
-import bankInfo from './darwerComponents/bankInfo.vue';
-//联系人
-import linkInfo from './darwerComponents/linkInfo.vue';
-// //其他信息
-// import otherForm from './darwerComponents/otherForm.vue';
-//资质
-import certificateTable from './darwerComponents/certificateTable.vue';
-//商机
-import businessOpportunity from '@/views/saleManage/businessOpportunity/index.vue';
-//报价单
-import quotation from '@/views/saleManage/quotation/index.vue';
-//合同
-import contractBook from '@/views/contractManage/contractBook/index.vue';
-//销售订单
-import saleOrder from '@/views/saleManage/saleOrder/index.vue';
-//发货单
-import invoice from '@/views/saleManage/saleOrder/invoice/index.vue';
-//退货单
-import returnGoods from '@/views/saleManage/saleOrder/returnGoods/index.vue';
-//对账单
-import accountstatement from '@/views/saleManage/saleOrder/accountstatement/index.vue';
-//发票
-import invoiceManage from '@/views/financialManage/invoiceManage/index.vue';
-//应收
-import receivableManage from '@/views/financialManage/receivableManage/index.vue';
-//跟进
-import followList from './darwerComponents/followList.vue';
-import TinymceEditor from '@/components/TinymceEditor/index.vue';
-import { mapGetters } from 'vuex';
-import bpmDetail from '@/views/bpm/processInstance/detail.vue';
+  //银行
+  import bankInfo from './darwerComponents/bankInfo.vue';
+  //联系人
+  import linkInfo from './darwerComponents/linkInfo.vue';
+  // //其他信息
+  // import otherForm from './darwerComponents/otherForm.vue';
+  //资质
+  // import certificateTable from './darwerComponents/certificateTable.vue';
+  //商机
+  import businessOpportunity from '@/views/saleManage/businessOpportunity/index.vue';
+  //报价单
+  import quotation from '@/views/saleManage/quotation/index.vue';
+  //合同
+  import contractBook from '@/views/contractManage/contractBook/index.vue';
+  //销售订单
+  import saleOrder from '@/views/saleManage/saleOrder/index.vue';
+  //发货单
+  import invoice from '@/views/saleManage/saleOrder/invoice/index.vue';
+  //退货单
+  import returnGoods from '@/views/saleManage/saleOrder/returnGoods/index.vue';
+  //对账单
+  import accountstatement from '@/views/saleManage/saleOrder/accountstatement/index.vue';
+  //发票
+  import invoiceManage from '@/views/financialManage/invoiceManage/index.vue';
+  //应收
+  import receivableManage from '@/views/financialManage/receivableManage/index.vue';
+  //跟进
+  import followList from './darwerComponents/followList.vue';
+  import TinymceEditor from '@/components/TinymceEditor/index.vue';
+  import { mapGetters } from 'vuex';
+  import bpmDetail from '@/views/bpm/processInstance/detail.vue';
+  import certificateManagement from '@/views/saleManage/contact/components/certificateManagement/index.vue';
+  export default {
+    mixins: [dictMixins],
 
-export default {
-  mixins: [dictMixins],
-
-  components: {
-    bpmDetail,
-    contactInfo,
-    bankInfo,
-    linkInfo,
-    // otherForm,
-    certificateTable,
-    quotation,
-    contractBook,
-    saleOrder,
-    invoiceManage,
-    businessOpportunity,
-    receivableManage,
-    invoice,
-    followList,
-    TinymceEditor,
-    returnGoods,
-    accountstatement,
-    comment
-  },
-  data() {
-    return {
-      drawer: false,
-      title: '',
-      activeName: '详细信息',
-      row: { base: {} },
-      content: '',
-      commitCommentVisible: false,
-      inputComment: '',
-      contactCountData: {
-        totalAmountSaleOrderRecord: '', //退货单总额:
-        totalAmountRecord: '', //退款总额
-        totalAmountTreatReturn: '', //待回款总额
-        totalAmountSaleOrder: '', //销售订单总额
-        totalAmountReturn: '' //回款总额
-      },
-      pageName: 'myList'
-    };
-  },
-  created() {
-    this.requestDict('供应商级别');
-  },
-  computed: {
-    ...mapGetters(['user'])
-  },
-  methods: {
-    async open(row, pageName) {
-      this.row = await contactDetail(row.id);
-      this.pageName = pageName;
-      const contactCountData = await queryContactIdCount(row.id);
-      this.contactCountData = contactCountData.data;
-      this.drawer = true;
-      this.$nextTick(() => {
-        this.$refs.contactInfoRef.init(this.row);
-        this.$refs.bankInfoRef.init(this.row);
-        this.$refs.linkInfoREf.init(this.row);
-        this.$refs.certificateTableRef.init(this.row.base);
-        this.$refs.followListRef.init(this.row);
-        this.$refs.commentRef.init(this.row.base);
-      });
+    components: {
+      bpmDetail,
+      contactInfo,
+      bankInfo,
+      linkInfo,
+      // otherForm,
+      // certificateTable,
+      quotation,
+      contractBook,
+      saleOrder,
+      invoiceManage,
+      businessOpportunity,
+      receivableManage,
+      invoice,
+      followList,
+      TinymceEditor,
+      returnGoods,
+      accountstatement,
+      comment,
+      certificateManagement
+    },
+    data() {
+      return {
+        drawer: false,
+        title: '',
+        activeName: '详细信息',
+        row: { base: {} },
+        content: '',
+        commitCommentVisible: false,
+        inputComment: '',
+        contactCountData: {
+          totalAmountSaleOrderRecord: '', //退货单总额:
+          totalAmountRecord: '', //退款总额
+          totalAmountTreatReturn: '', //待回款总额
+          totalAmountSaleOrder: '', //销售订单总额
+          totalAmountReturn: '' //回款总额
+        },
+        pageName: 'myList'
+      };
     },
-    async commitComment() {
-      await updateContactDynamics({
-        id: this.row.base.id,
-        contactDynamicsList: [
-          {
-            id: '', //主键id
-            date: '', //评论时间
-            ownerId: '', //文章的id
-            fromId: this.user.info.userId, //评论者id
-            fromName: this.user.info.name, //评论者昵称
-            fromAvatar: this.user.info.avatar && this.user.info.avatar[0]?.url, //评论者头像
-            content: this.inputComment, //评论内容
-            reply: [
-              //回复,或子评论
-            ]
-          }
-        ]
-      });
-      this.commitCommentVisible = false;
-      this.row = await contactDetail(this.row.base.id);
-      this.$refs.commentRef.init(this.row.base);
+    created() {
+      this.requestDict('供应商级别');
     },
-    handleClose(done) {
-      this.$confirm('确认关闭?')
-        .then((_) => {
-          done();
-        })
-        .catch((_) => {});
+    computed: {
+      ...mapGetters(['user'])
+    },
+    methods: {
+      async open(row, pageName) {
+        this.row = await contactDetail(row.id);
+        this.pageName = pageName;
+        const contactCountData = await queryContactIdCount(row.id);
+        this.contactCountData = contactCountData.data;
+        this.drawer = true;
+        this.$nextTick(() => {
+          this.$refs.contactInfoRef.init(this.row);
+          this.$refs.bankInfoRef.init(this.row);
+          this.$refs.linkInfoREf.init(this.row);
+          // this.$refs.certificateTableRef.init(this.row.base);
+          this.$refs.certificateManagementRef &&
+            this.$refs.certificateManagementRef.init(
+              '4',
+              this.row.base.id,
+              this.row.base.name
+            );
+          this.$refs.followListRef.init(this.row);
+          this.$refs.commentRef.init(this.row.base);
+        });
+      },
+      async commitComment() {
+        await updateContactDynamics({
+          id: this.row.base.id,
+          contactDynamicsList: [
+            {
+              id: '', //主键id
+              date: '', //评论时间
+              ownerId: '', //文章的id
+              fromId: this.user.info.userId, //评论者id
+              fromName: this.user.info.name, //评论者昵称
+              fromAvatar:
+                this.user.info.avatar && this.user.info.avatar[0]?.url, //评论者头像
+              content: this.inputComment, //评论内容
+              reply: [
+                //回复,或子评论
+              ]
+            }
+          ]
+        });
+        this.commitCommentVisible = false;
+        this.row = await contactDetail(this.row.base.id);
+        this.$refs.commentRef.init(this.row.base);
+      },
+      handleClose(done) {
+        this.$confirm('确认关闭?')
+          .then((_) => {
+            done();
+          })
+          .catch((_) => {});
+      }
     }
-  }
-};
+  };
 </script>
 <style lang="scss" scoped>
-.ele-body {
-  display: flex;
-}
-:deep(.el-tabs__content) {
-  padding: 10px;
-  height: calc(100% - 40px);
-  overflow: auto;
-}
-:deep(.el-input.is-disabled .el-input__inner) {
-  color: #606266;
-}
-.card {
-  display: flex;
-  padding: 15px;
-  font-size: 16px;
-  > div {
-    flex: 1;
-    margin: 0px 40px;
-    background: #1890ff;
-    color: #fff;
+  .ele-body {
     display: flex;
-    flex-direction: column;
-    align-items: center;
-    justify-content: center;
-    padding: 12px;
-    border-radius: 10px;
-    .value {
-      margin-top: 8px;
+  }
+  :deep(.el-tabs__content) {
+    padding: 10px;
+    height: calc(100% - 40px);
+    overflow: auto;
+  }
+  :deep(.el-input.is-disabled .el-input__inner) {
+    color: #606266;
+  }
+  .card {
+    display: flex;
+    padding: 15px;
+    font-size: 16px;
+    > div {
+      flex: 1;
+      margin: 0px 40px;
+      background: #1890ff;
+      color: #fff;
+      display: flex;
+      flex-direction: column;
+      align-items: center;
+      justify-content: center;
+      padding: 12px;
+      border-radius: 10px;
+      .value {
+        margin-top: 8px;
+      }
     }
   }
-}
-.title {
-  span {
-    margin-left: 50px;
+  .title {
+    span {
+      margin-left: 50px;
+    }
+    .name {
+      font-weight: 800;
+      color: #40a9ff;
+    }
   }
-  .name {
-    font-weight: 800;
-    color: #40a9ff;
+  :deep(.el-card__body) {
+    overflow: auto;
+    height: calc(100% - 51px);
   }
-}
-:deep(.el-card__body) {
-  overflow: auto;
-  height: calc(100% - 51px);
-}
 </style>