yusheng 1 year ago
parent
commit
f39874df52

+ 147 - 139
src/enum/dict.js

@@ -63,7 +63,7 @@ export default {
   产地: 'purchase_origin',
   故障等级: 'fault_level',
   商品价格类型: 'goods_price_type',
-  规则状态: 'rule_status',
+  规则状态: 'rule_status'
 };
 
 export const numberList = [
@@ -85,7 +85,7 @@ export const reviewStatus = {
   1: '审核中',
   2: '已审核',
   3: '审核不通过',
-  7: '作废',
+  7: '作废'
 };
 //审核下拉
 export const reviewStatusSelect = [
@@ -93,7 +93,7 @@ export const reviewStatusSelect = [
   { value: 1, label: '审核中' },
   { value: 2, label: '已审核' },
   { value: 3, label: '审核不通过' },
-  { value: 7, label: '作废' },
+  { value: 7, label: '作废' }
 ];
 //报价单-是否接受拆单
 export const acceptUnpackoptions = [
@@ -129,8 +129,7 @@ export const reviewStatusEnum = [
   { value: 1, label: '审核中' },
   { value: 2, label: '已审核' },
   { value: 3, label: '审核未通过' },
-  { value: 7, label: '作废' },
-
+  { value: 7, label: '作废' }
 ];
 //销售订单整体进度
 export const saleOrderProgressStatusEnum = [
@@ -230,8 +229,9 @@ export const pricingWayList = [
   { id: 2, name: '按重量计费' }
 ];
 //来源类型
-export const relationType = {
-  1: '发货确认单'
+export const relationTypeOption = {
+  1: '发货确认单',
+  2: '收货确认单'
 };
 
 //委外订单来源类型
@@ -276,149 +276,157 @@ export const levelList = [
 export const relationTypeList = [{ value: 100, label: '采购订单' }];
 
 // 状态类型下拉
-export const StateType = [{
-  value: '1',
-  label: '启用'
-},
-{
-  value: '2',
-  label: '禁用'
-},
-
-]
+export const StateType = [
+  {
+    value: '1',
+    label: '启用'
+  },
+  {
+    value: '2',
+    label: '禁用'
+  }
+];
 
 // 启用状态下拉
-export const enabledStatus = [{
-  value: '1',
-  label: '启用'
-},
-{
-  value: '2',
-  label: '禁用'
-},
-
-]
+export const enabledStatus = [
+  {
+    value: '1',
+    label: '启用'
+  },
+  {
+    value: '2',
+    label: '禁用'
+  }
+];
 // 下拉是否回执下拉
-export const receiptType = [{
-  value: '1',
-  label: '是'
-},
-{
-  value: '0',
-  label: '否'
-},
-]
+export const receiptType = [
+  {
+    value: '1',
+    label: '是'
+  },
+  {
+    value: '0',
+    label: '否'
+  }
+];
 // 下拉
-export const reconciliationType = [{
-  label: '按年度',
-  value: 1
-},
-{
-  label: '按季度',
-  value: 2
-},
-{
-  label: '按月度',
-  value: 3
-},
-{
-  label: '按时间段',
-  value: 4
-},
-]
+export const reconciliationType = [
+  {
+    label: '按年度',
+    value: 1
+  },
+  {
+    label: '按季度',
+    value: 2
+  },
+  {
+    label: '按月度',
+    value: 3
+  },
+  {
+    label: '按时间段',
+    value: 4
+  }
+];
 // 异常列表进度 下拉
-export const exceptionType = [{
-  label: '处置中',
-  value: 1
-},
-{
-  label: '处置完毕',
-  value: 2
-},
-{
-  label: '暂时搁置',
-  value: 3
-},
-{
-  label: '关闭',
-  value: 4
-},
-{
-  label: '未开始',
-  value: 5
-}
-]
+export const exceptionType = [
+  {
+    label: '处置中',
+    value: 1
+  },
+  {
+    label: '处置完毕',
+    value: 2
+  },
+  {
+    label: '暂时搁置',
+    value: 3
+  },
+  {
+    label: '关闭',
+    value: 4
+  },
+  {
+    label: '未开始',
+    value: 5
+  }
+];
 //  发票类型下拉
-export const invoiceType = [{
-  label: '开票',
-  value: 1
-},
-{
-  label: '收票',
-  value: 2
-}
-]
+export const invoiceType = [
+  {
+    label: '开票',
+    value: 1
+  },
+  {
+    label: '收票',
+    value: 2
+  }
+];
 // 收款状态下拉
-export const paymentStatus = [{
-  label: '未收款',
-  value: 0
-},
-{
-  label: '部分收款',
-  value: 1
-},
-{
-  label: '已收全款',
-  value: 2
-}
-]
+export const paymentStatus = [
+  {
+    label: '未收款',
+    value: 0
+  },
+  {
+    label: '部分收款',
+    value: 1
+  },
+  {
+    label: '已收全款',
+    value: 2
+  }
+];
 // 付款状态下拉
-export const paymentType = [{
-  label: '未付款',
-  value: 0
-},
-{
-  label: '部分付款',
-  value: 1
-},
-{
-  label: '已付全款',
-  value: 2
-}
-]
-// 结算账户类型 
-export const accountType = [{
-label: '现金',
-value: 1
-},
-{
-label: '银行卡',
-value: 2
-},
-]
-// 结算账户是否启用下拉 
-export const whetherToEnable = [{
-label: '启用',
-value: 1
-},
-{
-label: '禁用',
-value: 0
-},
-]
+export const paymentType = [
+  {
+    label: '未付款',
+    value: 0
+  },
+  {
+    label: '部分付款',
+    value: 1
+  },
+  {
+    label: '已付全款',
+    value: 2
+  }
+];
+// 结算账户类型
+export const accountType = [
+  {
+    label: '现金',
+    value: 1
+  },
+  {
+    label: '银行卡',
+    value: 2
+  }
+];
+// 结算账户是否启用下拉
+export const whetherToEnable = [
+  {
+    label: '启用',
+    value: 1
+  },
+  {
+    label: '禁用',
+    value: 0
+  }
+];
 
 // 车辆状态下拉 vehicle state
-export const vehicleState = [{
-label: '运输中',
-value: 1
-},
-{
-label: '空闲中',
-value: 2
-},
-]
+export const vehicleState = [
+  {
+    label: '运输中',
+    value: 1
+  },
+  {
+    label: '空闲中',
+    value: 2
+  }
+];
 
- 
 //持证类型
 export const holderTypeOptions = [
   {

+ 16 - 2
src/views/purchasingManage/purchaseOrder/index.vue

@@ -185,6 +185,9 @@
         <div v-if="activeComp == 'returnorder'" class="returnorder">
           <return-goods></return-goods>
         </div>
+        <div v-if="activeComp == 'exceptionList'">
+          <exceptionList :relationType="2"></exceptionList>
+        </div>
         <div v-if="activeComp == 'accountstatement'">
           <accountstatement></accountstatement>
         </div>
@@ -272,7 +275,7 @@
   import importDialog from '@/components/upload/import-dialog.vue';
   import exportButton from '@/components/upload/exportButton.vue';
   import { parameterGetByCode } from '@/api/main/index.js';
-
+  import exceptionList from '@/views/saleManage/saleOrder/exceptionManagement/exceptionList/index.vue';
   export default {
     mixins: [dictMixins, tabMixins],
     components: {
@@ -291,7 +294,9 @@
       outSourceSend,
       addOutSourceSend,
       addInvoiceManage,
-      importDialog,invoiceConfirm
+      importDialog,
+      invoiceConfirm,
+      exceptionList
     },
     data() {
       return {
@@ -301,9 +306,11 @@
           { key: 'outsourceSend', name: '委外发货单' },
           { key: 'invoice', name: '收货单' },
           { key: 'invoiceConfirm', name: '收货确认单' },
+          { key: 'exceptionList', name: '异常列表' },
           { key: 'returnorder', name: '退货单' },
           { key: 'accountstatement', name: '对账单' }
         ],
+
         selection: [], //单选中集合
         delVisible: false, //批量删除弹框状态
         loading: false, // 加载状态
@@ -459,6 +466,13 @@
             showOverflowTooltip: true,
             minWidth: 140
           },
+          {
+            prop: 'createUserName',
+            label: '创建人',
+            align: 'center',
+            showOverflowTooltip: true,
+            minWidth: 170
+          },
           {
             prop: 'createTime',
             label: '创建时间',

+ 250 - 0
src/views/purchasingManage/purchaseOrder/invoiceConfirm/components/receiveTListDialog.vue

@@ -0,0 +1,250 @@
+<template>
+  <el-dialog
+    title="选择收货单"
+    custom-class="ele-dialog-form long-dialog-form"
+    :visible.sync="visible"
+    :before-close="handleClose"
+    :close-on-click-modal="false"
+    top="5vh"
+    :close-on-press-escape="false"
+    append-to-body
+    width="70%"
+  >
+    <el-card shadow="never">
+      <searchTable @search="reload"></searchTable>
+      <ele-pro-table
+        ref="table"
+        :columns="columns"
+        :datasource="datasource"
+        row-key="id"
+        height="calc(100vh - 500px)"
+        class="dict-table"
+        @cell-click="cellClick"
+      >
+        <!-- 表头工具栏 -->
+        <template v-slot:action="{ row }">
+          <el-radio class="radio" v-model="radio" :label="row.id"
+            ><i></i
+          ></el-radio>
+        </template>
+      </ele-pro-table>
+    </el-card>
+
+    <div class="btns" slot="footer">
+      <el-button type="primary" size="small" @click="selected">选择</el-button>
+      <el-button size="small" @click="handleClose">关闭</el-button>
+    </div>
+  </el-dialog>
+</template>
+
+<script>
+  import searchTable from './searchTable.vue';
+  import { reviewStatus } from '@/enum/dict';
+  import { getPurchasereceiveconfirmList } from '@/api/purchasingManage/invoiceConfirm';
+  export default {
+    components: {
+      searchTable
+    },
+
+    data() {
+      return {
+        visible: false,
+        currentIndex: null,
+        columns: [
+          {
+            action: 'action',
+            slot: 'action',
+            align: 'center',
+            label: '选择'
+          },
+
+          {
+            columnKey: 'index',
+            label: '序号',
+            type: 'index',
+            width: 55,
+            align: 'center',
+            showOverflowTooltip: true
+          },
+          {
+            prop: 'receiveConfirmNo',
+            label: '收货确认单单编码',
+            sortable: true,
+            align: 'center',
+            slot: 'receiveConfirmNo',
+            showOverflowTooltip: true,
+            minWidth: 180
+          },
+          {
+            prop: 'receiveCode',
+            label: '收货单编码',
+            sortable: true,
+            align: 'center',
+            slot: 'receiveCode',
+            showOverflowTooltip: true,
+            minWidth: 180
+          },
+
+          {
+            prop: 'sourceTypeName',
+            label: '采购订单类型',
+            sortable: true,
+            align: 'center',
+            showOverflowTooltip: true,
+            minWidth: 150
+          },
+
+          {
+            prop: 'productNames',
+            label: '产品名称',
+            align: 'center',
+            showOverflowTooltip: true,
+            minWidth: 140
+          },
+          {
+            prop: 'productCodes',
+            label: '产品编码',
+            align: 'center',
+            showOverflowTooltip: true,
+            minWidth: 160
+          },
+          {
+            prop: 'batchNos',
+            label: '批次号',
+            align: 'center',
+            showOverflowTooltip: true,
+            minWidth: 140
+          },
+          {
+            prop: 'productCount',
+            label: '数量',
+            align: 'center',
+            showOverflowTooltip: true,
+            minWidth: 140
+          },
+
+          {
+            prop: 'supplierName',
+            label: '供应商名称',
+            align: 'center',
+            showOverflowTooltip: true,
+            minWidth: 300
+          },
+          {
+            prop: 'sendNoteNo',
+            label: '送货单号',
+            align: 'center',
+            showOverflowTooltip: true,
+            minWidth: 200
+          },
+
+          {
+            prop: 'reviewStatus',
+            label: '状态',
+            align: 'center',
+            showOverflowTooltip: true,
+            minWidth: 200,
+            formatter: (_row, _column, cellValue) => {
+              return reviewStatus[_row.reviewStatus];
+            }
+          },
+          {
+            prop: 'createTime',
+            label: '创建时间',
+            align: 'center',
+            showOverflowTooltip: true,
+            minWidth: 170
+          }
+        ],
+
+        radio: null
+      };
+    },
+
+    methods: {
+      open(item, currentIndex) {
+        this.currentIndex = currentIndex;
+        if (item && item.id) {
+          this.radio = item.id;
+        }
+
+        this.visible = true;
+      },
+
+      /* 表格数据源 */
+      datasource({ page, limit, where, order }) {
+        return getPurchasereceiveconfirmList({
+          pageNum: page,
+          size: limit,
+          ...where,
+          reviewStatus: 2
+        });
+      },
+
+      /* 刷新表格 */
+      reload(where) {
+        where = {
+          ...where,
+          reviewStatus: 2
+        };
+        this.$refs.table.reload({ pageNum: 1, where: where });
+      },
+
+      handleNodeClick(data, node) {
+        this.reload({ categoryId: data.id });
+      },
+
+      // 单击获取id
+      cellClick(row) {
+        this.current = row;
+        console.log(row);
+        this.radio = row.id;
+      },
+      handleClose() {
+        this.visible = false;
+        this.current = null;
+        this.radio = '';
+      },
+
+      selected() {
+        if (!this.current) {
+          return this.$message.warning('请至少选择一条数据');
+        }
+        this.$emit('changeParent', this.current, this.currentIndex);
+        this.handleClose();
+      }
+    }
+  };
+</script>
+
+<style lang="scss" scoped>
+  .tree_col {
+    border: 1px solid #eee;
+    padding: 10px 0;
+    box-sizing: border-box;
+    height: 500px;
+    overflow: auto;
+  }
+
+  .table_col {
+    padding-left: 10px;
+
+    ::v-deep .el-table th.el-table__cell {
+      background: #f2f2f2;
+    }
+  }
+
+  .pagination {
+    text-align: right;
+    padding: 10px 0;
+  }
+
+  .btns {
+    text-align: center;
+    padding: 10px 0;
+  }
+
+  .topsearch {
+    margin-bottom: 15px;
+  }
+</style>

+ 8 - 22
src/views/purchasingManage/purchaseOrder/invoiceConfirm/components/searchTable.vue

@@ -16,28 +16,21 @@ export default {
           label: '关键字:',
           value: 'searchName',
           type: 'input',
-          placeholder: '收货单编码/采购订单编码/送货单号/产品名称'
+          placeholder: '收货确认单编码/收货单编码'
         },
         {
-          label: '收货单编码:',
-          value: 'receiveNo',
+          label: '收货确认单编码:',
+          value: 'receiveConfirmNo',
           type: 'input',
           placeholder: '请输入'
         },
         {
-          label: '采购订单编码:',
-          value: 'orderNo',
-          type: 'input',
-          placeholder: '请输入',
-        },
-        {
-          label: '采购订单类型:',
-          value: 'sourceTypeName',
-          labelWidth:130,
-          width: 360,
+          label: '收货单编码:',
+          value: 'receiveCode',
           type: 'input',
-          placeholder: '请输入',
+          placeholder: '请输入'
         },
+
         {
           label: '产品名称:',
           value: 'productName',
@@ -53,14 +46,7 @@ export default {
           type: 'input',
           placeholder: '请输入',
         },
-        {
-          label: '送货单号:',
-          value: 'sendNoteNo',
-          width: 380,
-          type: 'input',
-          placeholder: '请输入'
-        },
-      
+       
         {
           label: '状态:',
           value: 'reviewStatus',

+ 77 - 33
src/views/saleManage/saleOrder/exceptionManagement/components/addOrEditDialog.vue

@@ -66,7 +66,7 @@
               v-model="form.relationCode"
               :disabled="title == '详情'"
               redaonly
-              @click.native="$refs.sendConfirmDialogRef.open()"
+              @click.native="openDialog"
             />
           </el-form-item>
         </el-col>
@@ -122,12 +122,9 @@
           </el-select>
         </template>
         <template v-slot:describes="scope">
-            <el-input
-              v-model="scope.row.describes"
-              placeholder="请输入"
-            >
-            </el-input>
-          </template>
+          <el-input v-model="scope.row.describes" placeholder="请输入">
+          </el-input>
+        </template>
         <template v-slot:exceptionDetermine="scope">
           <el-select
             v-model="scope.row.exceptionDetermine"
@@ -151,7 +148,7 @@
           ></el-input>
         </template>
         <!-- 操作列 -->
-        <template v-slot:action="scope" v-if="title!='详情'">
+        <template v-slot:action="scope" v-if="title != '详情'">
           <el-popconfirm
             class="ele-action"
             title="确定要删除吗?"
@@ -201,6 +198,10 @@
       ref="sendConfirmDialogRef"
       @changeParent="changeParent"
     ></sendConfirmDialog>
+    <receiveTListDialog
+      ref="receiveTListDialogRef"
+      @changeParent="changeParent"
+    ></receiveTListDialog>
   </ele-modal>
 </template>
 
@@ -209,9 +210,12 @@
   import { getById, update, save } from '@/api/exceptionManagement/index';
   import processSubmitDialog from '@/BIZComponents/processSubmitDialog/processSubmitDialog.vue';
   import { getSendSaleOrderConfirmDetail } from '@/api/saleManage/invoiceConfirm';
-  import { relationType } from '@/enum/dict.js';
+  import { getReceiveConfirmDetail } from '@/api/purchasingManage/invoiceConfirm';
+  import { relationTypeOption } from '@/enum/dict.js';
   import bpmDetail from '@/views/bpm/processInstance/detail.vue';
   import sendConfirmDialog from '@/views/saleManage/saleOrder/invoiceConfirm/components/sendConfirmDialog.vue';
+  import receiveTListDialog from '@/views/purchasingManage/purchaseOrder/invoiceConfirm/components/receiveTListDialog.vue';
+
   const def = {
     name: '',
     relationCode: '',
@@ -226,7 +230,13 @@
     components: {
       processSubmitDialog,
       bpmDetail,
-      sendConfirmDialog
+      sendConfirmDialog,
+      receiveTListDialog
+    },
+    props: {
+      relationType: {
+        default: 1
+      }
     },
     data() {
       return {
@@ -245,12 +255,6 @@
           { label: '报损', value: 3 },
           { label: '报废', value: 4 }
         ],
-        options1: [
-          { label: '多发', value: 1 },
-          { label: '少发', value: 2 },
-          { label: '错发', value: 3 },
-          { label: '损坏', value: 4 }
-        ],
 
         rules: {
           name: [{ required: true, message: '请输入名称', trigger: 'change' }],
@@ -259,8 +263,12 @@
             { required: true, message: '请选择来源', trigger: 'change' }
           ]
         },
-        form: { ...def },
-        columns: [
+        form: { ...def }
+      };
+    },
+    computed: {
+      columns() {
+        return [
           {
             width: 45,
             type: 'index',
@@ -357,7 +365,7 @@
           {
             minWidth: 120,
             prop: 'clientCode',
-            label: '客户代号',
+            label: this.relationType == 1 ? '客户代号' : '供应商代号',
             showOverflowTooltip: true,
             align: 'center'
           },
@@ -458,11 +466,33 @@
             fixed: 'right',
             showOverflowTooltip: true
           }
-        ]
-      };
+        ];
+      },
+      options1() {
+        return this.relationType == 1
+          ? [
+              { label: '多发', value: 1 },
+              { label: '少发', value: 2 },
+              { label: '错发', value: 3 },
+              { label: '损坏', value: 4 }
+            ]
+          : [
+              { label: '多收', value: 1 },
+              { label: '少收', value: 2 },
+              { label: '错收', value: 3 },
+              { label: '损坏', value: 4 }
+            ];
+      }
     },
 
     methods: {
+      openDialog() {
+        let ref =
+          this.relationType == 1
+            ? 'sendConfirmDialogRef'
+            : 'receiveTListDialogRef';
+        this.$refs[ref].open();
+      },
       //打开新增编辑弹框
       async open(type, row) {
         this.title = type == 'edit' ? '处置' : type == 'add' ? '新建' : '详情';
@@ -471,23 +501,37 @@
         if (row && row?.id) {
           await this.getById(row?.id);
         } else {
-          this.form.relationType = 1;
-          this.form.relationTypeName = relationType[1];
+          this.form.relationType = this.relationType;
+          this.form.relationTypeName = relationTypeOption[this.relationType];
         }
       },
       async changeParent(data) {
-        const res = await getSendSaleOrderConfirmDetail(data.id);
-        this.form.relationCode = res.docNo;
-        this.form.relationId = res.id;
-        this.form.relationName = res.contactName + '-' + res.docNo;
-        this.$set(this.form, 'detailList', res.productList);
+        if (this.relationType == 1) {
+          const res = await getSendSaleOrderConfirmDetail(data.id);
+          this.form.relationCode = res.docNo;
+          this.form.relationId = res.id;
+          this.form.relationName = res.contactName + '-' + res.docNo;
+          this.$set(this.form, 'detailList', res.productList);
+        }
+        if (this.relationType == 2) {
+          const res = await getReceiveConfirmDetail(data.id);
+          this.form.relationCode = res.receiveConfirmNo;
+          this.form.relationId = res.id;
+          res.productList= res.productList.map(item=>{
+             item['clientCode']=item.supplierMark
+          })
+          
+          this.form.relationName =
+            res.supplierName + '-' + res.receiveConfirmNo;
+          this.$set(this.form, 'detailList', res.productList);
+        }
       },
 
       //获取订单详情
       async getById(id) {
         this.loading = true;
         let data = await getById(id);
-        data['relationTypeName'] = relationType[data.relationType];
+        data['relationTypeName'] = relationTypeOption[data.relationType];
 
         this.loading = false;
         if (data) {
@@ -512,7 +556,7 @@
       },
       async save(type) {
         try {
-          await this.getValidate()
+          await this.getValidate();
           this.loading = true;
           let isExceptionDispose = false;
           let isExceptionDetermine = false;
@@ -574,12 +618,12 @@
         });
       },
       reload() {
-        this.form = {
-          ...form
-        };
         this.cancel();
       },
       cancel() {
+        this.form = {
+          ...def
+        };
         this.addOrEditDialogFlag = false;
         this.$emit('done');
       }

+ 18 - 34
src/views/saleManage/saleOrder/exceptionManagement/exceptionList/index.vue

@@ -15,34 +15,7 @@
         <template v-slot:type="{ row }">
           <span> {{ getDictValue('异常类型', row.type + '') }}</span>
         </template>
-        <template v-slot:approvalStatus="{ row }">
-          <span
-            v-if="row.exceptionClose == 2 || !row.exceptionClose"
-            :style="{
-              color:
-                row.approvalStatus == 1
-                  ? '#409EFF'
-                  : row.approvalStatus == 2
-                  ? '#67C23A'
-                  : row.approvalStatus == 3
-                  ? '#F56C6C'
-                  : ''
-            }"
-          >
-            {{
-              row.approvalStatus == 1
-                ? '审核中'
-                : row.approvalStatus == 2
-                ? '审核通过'
-                : row.approvalStatus == 3
-                ? '审核不通过'
-                : row.approvalStatus == 4
-                ? '已处置'
-                : '未提交'
-            }}
-          </span>
-          <span v-else>关闭</span>
-        </template>
+
         <template v-slot:code="{ row }">
           <el-link
             type="primary"
@@ -150,7 +123,11 @@
             </template>
           </el-popconfirm>
         </template>
-        <dispose ref="disposeRef" @done="reload"></dispose>
+        <dispose
+          ref="disposeRef"
+          @done="reload"
+          :relationType="relationType"
+        ></dispose>
       </ele-pro-table>
     </el-card>
     <process-submit-dialog
@@ -169,9 +146,10 @@
   // import Create from '../components/create';
   import dispose from '../components/addOrEditDialog';
   import { getList, remove, submit } from '@/api/exceptionManagement/index';
-  import { relationType } from '@/enum/dict.js';
+  import { relationTypeOption } from '@/enum/dict.js';
   import processSubmitDialog from '@/BIZComponents/processSubmitDialog/processSubmitDialog.vue';
   import tabMixins from '@/mixins/tableColumnsMixin';
+  import { reviewStatus } from '@/enum/dict';
 
   export default {
     components: {
@@ -180,6 +158,11 @@
       processSubmitDialog
     },
     mixins: [dictMixins, tabMixins],
+    props: {
+      relationType: {
+        default: 1
+      }
+    },
     data() {
       return {
         visible: false,
@@ -264,7 +247,7 @@
             label: '来源单据类型',
             align: 'center',
             formatter: (row, column, cellValue) => {
-              return relationType[cellValue] || '';
+              return relationTypeOption[cellValue] || '';
             }
           },
           {
@@ -294,7 +277,9 @@
             prop: 'approvalStatus',
             label: '审批状态',
             align: 'center',
-            slot: 'approvalStatus'
+            formatter: (_row, _column, cellValue) => {
+              return reviewStatus[_row.approvalStatus];
+            }
           },
 
           {
@@ -330,7 +315,7 @@
           pageNum: page,
           size: limit,
           ...where,
-          relationType: 1
+          relationType: this.relationType
         });
       },
       open(type, row) {
@@ -338,7 +323,6 @@
       },
       remove(id) {
         remove(id).then((res) => {
-         
           this.reload();
         });
       },