Qukatie 10 mesiacov pred
rodič
commit
85f7f74eba

+ 18 - 0
src/api/basicdata/dept.js

@@ -91,4 +91,22 @@ export function monitorUrl(data) {
     method: 'get',
     params: data
   })
+}
+
+// 审核
+export function agreementStorageSubmission(data) {
+  return request({
+    url: '/basicdata/warehouse/agreementStorageSubmission',
+    method: 'post',
+    data: data
+  })
+}
+
+// 撤销
+export function revoke(data) {
+  return request({
+    url: '/basicdata/warehouse/revoke',
+    method: 'post',
+    data: data
+  })
 }

+ 141 - 7
src/views/basicdata/dept/index.vue

@@ -96,7 +96,7 @@
             v-hasPermi="['basicdata:warehouse:edit']">修改</el-button>
           <el-button size="mini" type="text" icon="el-icon-plus" @click="handleAdd(scope.row)"
             v-hasPermi="['basicdata:warehouse:add']">新增</el-button>
-          <el-button size="mini" type="text" icon="el-icon-plus" v-if="scope.row.fLocation === 1"
+          <el-button size="mini" type="text" icon="el-icon-plus" v-if="scope.row.parentId === 100"
             @click="handleView(scope.row)">查看监控</el-button>
           <el-button v-if="scope.row.parentId != 0" size="mini" type="text" icon="el-icon-delete"
             @click="handleDelete(scope.row)" v-hasPermi="['basicdata:warehouse:remove']">删除</el-button>
@@ -349,17 +349,26 @@
           </template>
         </el-table-column>
       </el-table>
-      <upload-Contract :relevantAttachments="relevantAttachments" :createBy="username"></upload-Contract>
+      <upload-Contract v-if="form.fLocation == 0" :relevantAttachments="relevantAttachments"
+        :createBy="username"></upload-Contract>
       <div slot="footer" class="dialog-footer">
+        <el-button type="primary" v-if="$route.query.id&&form.approvalStatus == '审核提交'"
+          @click="addOrUpdateHand(form, 'approval_status')">审批
+        </el-button>
+        <el-button type="success" @click="approve" v-if="form.fLocation == 0 && form.fId && form.approvalStatus == '录入'">审
+          核</el-button>
+        <el-button type="danger" @click="reApprove" v-if="form.approvalStatus == '审核提交'">撤销审核</el-button>
         <el-button type="primary" @click="submitForm">确 定</el-button>
         <el-button @click="cancel">取 消</el-button>
       </div>
     </el-dialog>
+    <approval-comments v-if="addOrUpdateVisib" ref="ApprovalComments" @refreshDataList="returnData">
+    </approval-comments>
   </div>
 </template>
 
 <script>
-import { listDept, getDept, delDept, addDept, updateDept, listDeptExcludeChild, lazyListDept, monitorUrl } from "@/api/basicdata/dept";
+import { listDept, getDept, delDept, addDept, updateDept, listDeptExcludeChild, lazyListDept, monitorUrl, agreementStorageSubmission, revoke } from "@/api/basicdata/dept";
 import { list } from "@/api/monitor/monitorList";
 import { getToken } from "@/utils/auth";
 import Treeselect from "@riophae/vue-treeselect";
@@ -368,6 +377,7 @@ import uploadContract from "@/views/Warehousing/components/upLoadContract";
 import Vue from 'vue'
 import upLoad from "@/views/Warehousing/components/upLoad";
 import Cookies from "js-cookie";
+import ApprovalComments from '@/views/startApproval'
 import Axios from "axios";
 Vue.directive('dialogDrag', {
   bind(el, binding, vnode, oldVnode) {
@@ -428,10 +438,12 @@ export default {
   components: {
     Treeselect,
     upLoad,
-    uploadContract
+    uploadContract,
+    ApprovalComments
   },
   data() {
     return {
+      addOrUpdateVisib: false,
       ctnpriceItemsList: [],
       relevantAttachments: [],
       headers: {
@@ -565,7 +577,129 @@ export default {
       return name;
     }
   },
+  activated() {
+    if (this.$route.query.id) {
+      this.handleUpdate({ fId: this.$route.query.id })
+    }
+  },
   methods: {
+    returnData() {
+      this.open = false;
+      this.addOrUpdateVisib = false;
+      this.homePage()
+    },
+    homePage() {
+      let view = {
+        fullPath: "/basicdata/dept",
+        hash: "",
+        matched: Array(2),
+        meta: Object,
+        name: "AgreementTask",
+        params: Object,
+        path: "/basicdata/dept",
+        query: Object,
+        title: "仓库管理",
+      };
+      this.$router.push({ path: "/index" });
+      this.$store
+        .dispatch("tagsView/delView", view)
+        .then(({ visitedViews }) => {
+          if (this.isActive(view)) {
+            this.toLastView(visitedViews, view);
+          }
+        });
+      Global.$emit("removeCache", "closeSelectedTag", view);
+    },
+    addOrUpdateHand(form, status) {
+      this.addOrUpdateVisib = true
+      this.$nextTick(() => {
+        this.$refs.ApprovalComments.init(form.fId, status, 1100)
+      })
+    },
+    approve() {
+      this.$confirm('是否审核?', '提示', {
+        confirmButtonText: '确定',
+        cancelButtonText: '取消',
+        type: 'warning'
+      }).then(() => {
+        if (this.form.fProperties != null) {
+          this.form.fProperties = this.form.fProperties.join(",");
+
+        }
+        if (this.form.fType != null) {
+          this.form.fType = this.form.fType.join(",");
+        }
+        if (this.form.fGoodsType != null) {
+          this.form.fGoodsType = this.form.fGoodsType.join(",");
+
+        }
+        this.form.annexList = []
+        for (let item in this.pictureEist) {
+          if (this.pictureEist[item].response) {
+            this.form.annexList.push({
+              fUrl: this.pictureEist[item].response.url
+            })
+          } else {
+            this.form.annexList.push({
+              fUrl: this.pictureEist[item].url
+            })
+          }
+        }
+        this.form.fPhotoUrl = JSON.stringify(this.form.fPhotoUrl)
+        let obj = {
+          ...this.form,
+          enclosureList: this.relevantAttachments,
+          ctnpriceItemsList: this.ctnpriceItemsList
+        }
+        agreementStorageSubmission(obj).then(res => {
+          this.msgSuccess("操作成功");
+          this.open = false;
+          this.getList();
+        })
+      })
+    },
+    reApprove() {
+      this.$confirm('是否撤销审核?', '提示', {
+        confirmButtonText: '确定',
+        cancelButtonText: '取消',
+        type: 'warning'
+      }).then(() => {
+        if (this.form.fProperties != null) {
+          this.form.fProperties = this.form.fProperties.join(",");
+
+        }
+        if (this.form.fType != null) {
+          this.form.fType = this.form.fType.join(",");
+        }
+        if (this.form.fGoodsType != null) {
+          this.form.fGoodsType = this.form.fGoodsType.join(",");
+
+        }
+        this.form.annexList = []
+        for (let item in this.pictureEist) {
+          if (this.pictureEist[item].response) {
+            this.form.annexList.push({
+              fUrl: this.pictureEist[item].response.url
+            })
+          } else {
+            this.form.annexList.push({
+              fUrl: this.pictureEist[item].url
+            })
+          }
+        }
+        this.form.fPhotoUrl = JSON.stringify(this.form.fPhotoUrl)
+        let obj = {
+          ...this.form,
+          enclosureList: this.relevantAttachments,
+          ctnpriceItemsList: this.ctnpriceItemsList
+        }
+        revoke(obj).then(res => {
+          this.msgSuccess("操作成功");
+          this.open = false;
+          this.getList();
+        })
+      })
+    },
     deleteRow(index, rows) {
       rows.splice(index, 1);
     },
@@ -757,7 +891,7 @@ export default {
         this.form = response.data;
         this.form.fLocation = this.form.fLocation + ''
         this.form.fCharg = this.form.fCharg + ''
-        this.relevantAttachments = response.data["attach"] ? response.data["attach"] : [];
+        this.relevantAttachments = response.data["enclosureList"] ? response.data["enclosureList"] : [];
         this.ctnpriceItemsList = response.data["ctnpriceItemsList"] ? response.data["ctnpriceItemsList"] : [];
         // this.relevantAttachments = this.form.annexList ? this.form.annexList : [];
         if (this.form.fProperties != null) {
@@ -824,7 +958,7 @@ export default {
             this.form.fPhotoUrl = JSON.stringify(this.form.fPhotoUrl)
             let obj = {
               ...this.form,
-              attach: this.relevantAttachments,
+              enclosureList: this.relevantAttachments,
               ctnpriceItemsList: this.ctnpriceItemsList
             }
             updateDept(obj).then(response => {
@@ -860,7 +994,7 @@ export default {
             console.log(this.form.fProperties, this.form.fType, this.form.fGoodsType);
             let obj = {
               ...this.form,
-              attach: this.relevantAttachments,
+              enclosureList: this.relevantAttachments,
               ctnpriceItemsList: this.ctnpriceItemsList
             }
             addDept(obj).then(response => {

+ 8 - 0
src/views/index.vue

@@ -256,6 +256,7 @@
                   <span v-else-if="item.refno2 === 'KHDZ'">凯和对账</span>
                   <span v-else-if="item.refno2 === 'KHSF'">凯和收费</span>
                   <span v-else-if="item.refno2 === 'KHFF'">凯和付费</span>
+                  <span v-else-if="item.refno2 === 'CKSP'">仓库</span>
                   <span v-else-if="item.refno2 === 'ApplyFP'"
                     >凯和开票申请</span
                   >
@@ -1385,6 +1386,13 @@ export default {
     approval(row) {
       console.log(row);
       switch (row.refno2) {
+        case "CKSP": {
+          this.$router.push({
+            path: "/basicdata/dept",
+            query: { id: row.billId },
+          });
+          break;
+        }
         case "CDZZ": {
           this.$router.push({
             path: "/business/inAndOutStock",

+ 114 - 274
src/views/morePage/stock/index.vue

@@ -1,97 +1,60 @@
 <template>
   <div class="app-container">
-    <el-form
-      :model="queryParams"
-      ref="queryForm"
-      v-show="showSearch"
-      label-width="100px"
-      size="mini"
-    >
+    <el-form :model="queryParams" ref="queryForm" v-show="showSearch" label-width="100px" size="mini">
       <el-row>
         <el-col :span="6">
           <el-form-item label="客户名称" prop="refno1">
-            <el-select
-              v-model="queryParams.refno1"
-              placeholder="请输入客户名称"
-              clearable
-              size="small"
-              filterable
-            >
-              <el-option
-                v-for="(dict, index) in factIdOptions"
-                :key="index.fId"
-                :label="dict.fName"
-                :value="dict.fName"
-              />
+            <el-select v-model="queryParams.refno1" placeholder="请输入客户名称" clearable size="small" filterable>
+              <el-option v-for="(dict, index) in factIdOptions" :key="index.fId" :label="dict.fName"
+                :value="dict.fName" />
             </el-select>
           </el-form-item>
         </el-col>
         <el-col :span="6">
           <el-form-item label-width="100px" label="业务类型" prop="refno2">
-            <el-select
-              v-model="queryParams.refno2"
-              placeholder="请选择业务类型"
-              clearable
-              size="small"
-            >
-              <el-option label="费用变更" value="FYBG"/>
-              <el-option label="场地直装" value="CDZZ"/>
-              <el-option label="入库" value="SJRK"/>
-              <el-option label="出库" value="SJCK"/>
-              <el-option label="货转" value="HQZY"/>
-              <el-option label="调拨" value="CKDB"/>
-              <el-option label="货物通关" value="HWTG"/>
-              <el-option label="计算仓储费" value="JSCCF"/>
-              <el-option label="仓储费" value="CCF"/>
-              <el-option label="作业费" value="ZYF"/>
-              <el-option v-if="sysType != 3" label="收费" value="SF"/>
-              <el-option v-if="sysType != 3" label="对账" value="DZ"/>
-              <el-option v-if="sysType != 3" label="付费" value="FF"/>
-              <el-option v-if="sysType == 3" label="下单配船" value="SE"/>
-              <el-option v-if="sysType == 3" label="凯和开票申请" value="ApplyFP"/>
-              <el-option v-if="sysType == 3" label="凯和对账" value="KHDZ"/>
-              <el-option v-if="sysType == 3" label="凯和收费" value="KHSF"/>
-              <el-option v-if="sysType == 3" label="凯和付费" value="KHFF"/>
-              <el-option v-if="sysType == 3" label="凯和订单" value="KHDD"/>
-              <el-option label="入库明细审批" value="SJRKITEM"/>
-              <el-option label="出库明细审批" value="SJCKITEM"/>
-              <el-option v-if="sysType == 3" label="申请变更" value="XGDD"/>
-              <el-option v-if="sysType == 3" label="提交变更" value="XGTJ"/>
-              <el-option v-if="sysType == 3" label="申请删单" value="DDSC"/>
+            <el-select v-model="queryParams.refno2" placeholder="请选择业务类型" clearable size="small">
+              <el-option label="仓库" value="CKSP" />
+              <el-option label="费用变更" value="FYBG" />
+              <el-option label="场地直装" value="CDZZ" />
+              <el-option label="入库" value="SJRK" />
+              <el-option label="出库" value="SJCK" />
+              <el-option label="货转" value="HQZY" />
+              <el-option label="调拨" value="CKDB" />
+              <el-option label="货物通关" value="HWTG" />
+              <el-option label="计算仓储费" value="JSCCF" />
+              <el-option label="仓储费" value="CCF" />
+              <el-option label="作业费" value="ZYF" />
+              <el-option v-if="sysType != 3" label="收费" value="SF" />
+              <el-option v-if="sysType != 3" label="对账" value="DZ" />
+              <el-option v-if="sysType != 3" label="付费" value="FF" />
+              <el-option v-if="sysType == 3" label="下单配船" value="SE" />
+              <el-option v-if="sysType == 3" label="凯和开票申请" value="ApplyFP" />
+              <el-option v-if="sysType == 3" label="凯和对账" value="KHDZ" />
+              <el-option v-if="sysType == 3" label="凯和收费" value="KHSF" />
+              <el-option v-if="sysType == 3" label="凯和付费" value="KHFF" />
+              <el-option v-if="sysType == 3" label="凯和订单" value="KHDD" />
+              <el-option label="入库明细审批" value="SJRKITEM" />
+              <el-option label="出库明细审批" value="SJCKITEM" />
+              <el-option v-if="sysType == 3" label="申请变更" value="XGDD" />
+              <el-option v-if="sysType == 3" label="提交变更" value="XGTJ" />
+              <el-option v-if="sysType == 3" label="申请删单" value="DDSC" />
             </el-select>
           </el-form-item>
         </el-col>
         <el-col :span="6">
           <el-form-item label-width="100px" label="提单号" prop="refno3">
-            <el-input
-              v-model="queryParams.refno3"
-              placeholder="请输入提单号"
-              clearable
-              size="small"
-              style="max-width: 187px"
-            />
+            <el-input v-model="queryParams.refno3" placeholder="请输入提单号" clearable size="small" style="max-width: 187px" />
           </el-form-item>
         </el-col>
         <el-col :span="6">
           <el-form-item label-width="100px" label="业务编号" prop="fBsno">
-            <el-input
-              v-model="queryParams.fBsno"
-              placeholder="请输入业务编号"
-              clearable
-              size="small"
-              style="max-width: 187px"
-            />
+            <el-input v-model="queryParams.fBsno" placeholder="请输入业务编号" clearable size="small" style="max-width: 187px" />
           </el-form-item>
         </el-col>
         <el-col :span="6">
           <el-form-item label-width="100px" label="系统编号" prop="billNo">
-            <el-input
-              v-model="queryParams.billNo"
-              placeholder="请输入业务编号"
-              clearable
-              size="small"
-              style="max-width: 187px"
-            />
+            <el-input v-model="queryParams.billNo" placeholder="请输入业务编号" clearable size="small"
+              style="max-width: 187px" />
           </el-form-item>
         </el-col>
       </el-row>
@@ -99,154 +62,72 @@
         <div v-show="show">
           <el-row>
             <el-col :span="6">
-              <el-form-item
-                label-width="100px"
-                label="请核人"
-                prop="sendUserId"
-              >
-                <el-select
-                  v-model="queryParams.sendUserId"
-                  placeholder="请选择请核人"
-                  clearable
-                  size="small"
-                  multiple
-                >
+              <el-form-item label-width="100px" label="请核人" prop="sendUserId">
+                <el-select v-model="queryParams.sendUserId" placeholder="请选择请核人" clearable size="small" multiple>
                 </el-select>
               </el-form-item>
             </el-col>
             <el-col :span="6">
-              <el-form-item
-                label-width="100px"
-                label="审核人"
-                prop="auditUserId"
-              >
-                <el-select
-                  v-model="queryParams.auditUserId"
-                  placeholder="请输入审核人"
-                  clearable
-                  size="small"
-                  multiple
-                >
+              <el-form-item label-width="100px" label="审核人" prop="auditUserId">
+                <el-select v-model="queryParams.auditUserId" placeholder="请输入审核人" clearable size="small" multiple>
                 </el-select>
               </el-form-item>
             </el-col>
             <el-col :span="6">
-              <el-form-item
-                label-width="100px"
-                label="提交日期"
-                prop="sendTime"
-              >
-                <el-date-picker
-                  v-model="queryParams.sendTime"
-                  size="small"
-                  @keyup.enter.native="handleQuery"
-                  style="max-width: 187px"
-                  type="datetimerange"
-                  align="right"
-                  start-placeholder="开始日期"
-                  end-placeholder="结束日期"
-                  :default-time="['00:00:00', '23:59:59']"
-                >
+              <el-form-item label-width="100px" label="提交日期" prop="sendTime">
+                <el-date-picker v-model="queryParams.sendTime" size="small" @keyup.enter.native="handleQuery"
+                  style="max-width: 187px" type="datetimerange" align="right" start-placeholder="开始日期"
+                  end-placeholder="结束日期" :default-time="['00:00:00', '23:59:59']">
                 </el-date-picker>
               </el-form-item>
             </el-col>
             <el-col :span="6">
-              <el-form-item
-                label-width="100px"
-                label="业务日期"
-                prop="billTime"
-              >
-                <el-date-picker
-                  v-model="queryParams.billTime"
-                  placeholder="请输入业务日期"
-                  clearable
-                  size="small"
-                  @keyup.enter.native="handleQuery"
-                  style="max-width: 187px"
-                  type="date"
-                >
-                </el-date-picker> </el-form-item
-            ></el-col>
+              <el-form-item label-width="100px" label="业务日期" prop="billTime">
+                <el-date-picker v-model="queryParams.billTime" placeholder="请输入业务日期" clearable size="small"
+                  @keyup.enter.native="handleQuery" style="max-width: 187px" type="date">
+                </el-date-picker> </el-form-item></el-col>
           </el-row>
           <el-row>
-            <el-col :span="6"
-              ><el-form-item
-                label-width="100px"
-                label="审核日期"
-                prop="auditOpTime"
-              >
-                <el-date-picker
-                  v-model="queryParams.auditOpTime"
-                  placeholder="请输入审核日期"
-                  clearable
-                  size="small"
-                  @keyup.enter.native="handleQuery"
-                  style="max-width: 187px"
-                  type="date"
-                >
-                </el-date-picker></el-form-item
-            ></el-col>
+            <el-col :span="6"><el-form-item label-width="100px" label="审核日期" prop="auditOpTime">
+                <el-date-picker v-model="queryParams.auditOpTime" placeholder="请输入审核日期" clearable size="small"
+                  @keyup.enter.native="handleQuery" style="max-width: 187px" type="date">
+                </el-date-picker></el-form-item></el-col>
           </el-row>
         </div>
       </el-collapse-transition>
     </el-form>
     <el-row :gutter="10" class="mb8">
       <el-col :span="1.5">
-        <el-button size="mini" @click="handleQuery('')">全部</el-button></el-col
-      >
+        <el-button size="mini" @click="handleQuery('')">全部</el-button></el-col>
       <el-col :span="1.5">
-        <el-button size="mini" @click="handleQuery('S')">待审业务</el-button></el-col
-      >
+        <el-button size="mini" @click="handleQuery('S')">待审业务</el-button></el-col>
       <el-col :span="1.5">
-        <el-button size="mini" @click="handleQuery('N')">审核中</el-button></el-col
-      >
+        <el-button size="mini" @click="handleQuery('N')">审核中</el-button></el-col>
       <el-col :span="1.5">
-        <el-button size="mini" @click="handleQuery('A')">审核通过</el-button></el-col
-      >
+        <el-button size="mini" @click="handleQuery('A')">审核通过</el-button></el-col>
 
       <div class="tabSetting">
         <div style="margin-right: 20px">
-          <el-button
-            type="cyan"
-            icon="el-icon-search"
-            size="mini"
-            @click="handleQuery()"
-            >搜索</el-button
-          >
-          <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
-            >重置</el-button
-          >
-<!--          <el-button-->
-<!--            v-show="show"-->
-<!--            @click="show = !show"-->
-<!--            icon="el-icon-arrow-up"-->
-<!--            size="mini"-->
-<!--            >展开</el-button-->
-<!--          >-->
-<!--          <el-button-->
-<!--            v-show="!show"-->
-<!--            @click="show = !show"-->
-<!--            icon="el-icon-arrow-down"-->
-<!--            size="mini"-->
-<!--            >展开</el-button>-->
+          <el-button type="cyan" icon="el-icon-search" size="mini" @click="handleQuery()">搜索</el-button>
+          <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
+          <!--          <el-button-->
+          <!--            v-show="show"-->
+          <!--            @click="show = !show"-->
+          <!--            icon="el-icon-arrow-up"-->
+          <!--            size="mini"-->
+          <!--            >展开</el-button-->
+          <!--          >-->
+          <!--          <el-button-->
+          <!--            v-show="!show"-->
+          <!--            @click="show = !show"-->
+          <!--            icon="el-icon-arrow-down"-->
+          <!--            size="mini"-->
+          <!--            >展开</el-button>-->
         </div>
-        <right-toolbar
-          :showSearch.sync="showSearch"
-          @queryTable="getList"
-        ></right-toolbar>
+        <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
         <div style="margin: 0 12px">
-          <el-tooltip
-            class="item"
-            effect="dark"
-            content="列设置"
-            placement="top"
-          >
-            <el-button
-              icon="el-icon-setting"
-              size="mini"
-              circle
-              @click="showSetting = !showSetting"
-            ></el-button>
+          <el-tooltip class="item" effect="dark" content="列设置" placement="top">
+            <el-button icon="el-icon-setting" size="mini" circle @click="showSetting = !showSetting"></el-button>
           </el-tooltip>
         </div>
       </div>
@@ -254,45 +135,20 @@
     <el-dialog title="自定义列显示" :visible.sync="showSetting" width="700px">
       <div>配置排序列数据(拖动调整顺序)</div>
       <div style="margin-left: 17px">
-        <el-checkbox
-          v-model="allCheck"
-          label="全选"
-          @change="allChecked"
-        ></el-checkbox>
+        <el-checkbox v-model="allCheck" label="全选" @change="allChecked"></el-checkbox>
       </div>
       <div style="padding: 4px; display: flex; justify-content: center">
-        <draggable
-          v-model="setRowList"
-          group="site"
-          animation="300"
-          @start="onStart"
-          @end="onEnd"
-          handle=".indraggable"
-        >
+        <draggable v-model="setRowList" group="site" animation="300" @start="onStart" @end="onEnd" handle=".indraggable">
           <transition-group>
-            <div
-              v-for="item in setRowList"
-              :key="item.surface"
-              class="listStyle"
-            >
+            <div v-for="item in setRowList" :key="item.surface" class="listStyle">
               <div style="width: 500px" class="indraggable">
                 <div class="progress" :style="{ width: item.width + 'px' }">
-                  <el-checkbox
-                    :label="item.name"
-                    v-model="item.checked"
-                    :true-label="0"
-                    :false-label="1"
-                    >{{ item.name }}
+                  <el-checkbox :label="item.name" v-model="item.checked" :true-label="0" :false-label="1">{{ item.name }}
                   </el-checkbox>
                 </div>
               </div>
-              <el-input-number
-                v-model.number="item.width"
-                controls-position="right"
-                :min="1"
-                :max="500"
-                size="mini"
-              ></el-input-number>
+              <el-input-number v-model.number="item.width" controls-position="right" :min="1" :max="500"
+                size="mini"></el-input-number>
             </div>
           </transition-group>
         </draggable>
@@ -303,23 +159,10 @@
         <el-button type="primary" @click="save()">确 定</el-button>
       </span>
     </el-dialog>
-    <el-table
-      v-loading="loading"
-      :data="selectAuditList"
-      :header-cell-style="{ borderBottom: '1px dashed #dfe6ec' }"
-    >
+    <el-table v-loading="loading" :data="selectAuditList" :header-cell-style="{ borderBottom: '1px dashed #dfe6ec' }">
       <el-table-column type="index" label="#" fixed="left"></el-table-column>
-      <el-table-column
-        v-for="(item, index) in getRowList"
-        :key="index"
-        :label="item.name"
-        :width="item.width"
-        :prop="item.label"
-        align="center"
-        :fixed="item.fixed"
-        :show-overflow-tooltip="true"
-        sortable
-      >
+      <el-table-column v-for="(item, index) in getRowList" :key="index" :label="item.name" :width="item.width"
+        :prop="item.label" align="center" :fixed="item.fixed" :show-overflow-tooltip="true" sortable>
         <template slot-scope="scope">
           <span v-if="item.label == 'refno3'">{{
             scope.row.refno3 ? scope.row.refno3 : scope.row.billNo
@@ -327,7 +170,8 @@
           <span v-else-if="item.label == 'sendUserId'">
             {{ scope.row.sendUserId | userFormat(userOptions) }}
           </span>
-          <span v-else-if="item.label == 'auditOpTime'">{{ scope.row.auditOpTime?(scope.row.auditOpTime).slice(0, 10): '' }}</span>
+          <span v-else-if="item.label == 'auditOpTime'">{{ scope.row.auditOpTime ? (scope.row.auditOpTime).slice(0, 10) : ''
+          }}</span>
           <span v-else>{{ scope.row[item.label] }}</span>
         </template>
       </el-table-column>
@@ -397,35 +241,17 @@
       ></el-table-column> -->
       <el-table-column label="操作" width="80" fixed="right">
         <template slot-scope="scope">
-          <span style="cursor: pointer" @click="approval(scope.row)"
-            >查看详情</span
-          >
+          <span style="cursor: pointer" @click="approval(scope.row)">查看详情</span>
         </template>
       </el-table-column>
     </el-table>
-    <pagination
-      v-show="total > 0"
-      :total="total"
-      :page.sync="queryParams.pageNum"
-      :limit.sync="queryParams.pageSize"
-      @pagination="getList"
-    />
-    <el-dialog
-      title="消息提示"
-      :visible.sync="dialogVisible"
-      width="80%"
-      :before-close="handleClose"
-      :close-on-click-modal="false"
-    >
-      <span
-        v-html="text"
-        class="text"
-        style="max-width: 100%; height: auto"
-      ></span>
+    <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
+      @pagination="getList" />
+    <el-dialog title="消息提示" :visible.sync="dialogVisible" width="80%" :before-close="handleClose"
+      :close-on-click-modal="false">
+      <span v-html="text" class="text" style="max-width: 100%; height: auto"></span>
       <span slot="footer" class="dialog-footer">
-        <el-button type="primary" @click="dialogVisible = false"
-          >关 闭</el-button
-        >
+        <el-button type="primary" @click="dialogVisible = false">关 闭</el-button>
       </span>
     </el-dialog>
   </div>
@@ -715,6 +541,10 @@ export default {
           }
           if (e.refno2) {
             switch (e.refno2) {
+              case "CKSP": {
+                e.refno2 = "仓库";
+                break;
+              }
               case "FYBG": {
                 e.refno2 = "费用变更";
                 break;
@@ -824,6 +654,13 @@ export default {
     },
     approval(row) {
       switch (row.refno4) {
+        case "CKSP": {
+          this.$router.push({
+            path: "/basicdata/dept",
+            query: { id: row.billId }
+          })
+          break;
+        }
         case "CDZZ": {
           this.$router.push({
             path: "/business/inAndOutStock",
@@ -848,35 +685,35 @@ export default {
         case "SJRK": {
           this.$router.push({
             path: "/business/inStock",
-            query: { id: row.billId},
+            query: { id: row.billId },
           });
           break;
         }
         case "SJCK": {
           this.$router.push({
             path: "/business/outStock",
-            query: { id: row.billId},
+            query: { id: row.billId },
           });
           break;
         }
         case "HQZY": {
           this.$router.push({
             path: "/business/goodsTransfer",
-            query: { id: row.billId},
+            query: { id: row.billId },
           });
           break;
         }
         case "CKDB": {
           this.$router.push({
             path: "/business/stockTransfer",
-            query: { id: row.billId},
+            query: { id: row.billId },
           });
           break;
         }
         case "HWTG": {
           this.$router.push({
             path: "/business/cargoClearance",
-            query: { id: row.billId},
+            query: { id: row.billId },
           });
           break;
         }
@@ -960,35 +797,35 @@ export default {
         case "SJRKITEM": {
           this.$router.push({
             path: "/business/inStock",
-            query: { id: row.billId},
+            query: { id: row.billId },
           });
           break;
         }
         case "SJCKITEM": {
           this.$router.push({
             path: "/business/outStock",
-            query: { id: row.billId},
+            query: { id: row.billId },
           });
           break;
         }
         case "XGDD": {
           this.$router.push({
             path: "/domesticTrade/orderInformation",
-            query: {testing:JSON.stringify(row)},
+            query: { testing: JSON.stringify(row) },
           });
           break;
         }
         case "XGTJ": {
           this.$router.push({
             path: "/domesticTrade/orderInformation",
-            query: {testing:JSON.stringify(row)},
+            query: { testing: JSON.stringify(row) },
           });
           break;
         }
         case "DDSC": {
           this.$router.push({
             path: "/domesticTrade/orderInformation",
-            query: {testing:JSON.stringify(row)},
+            query: { testing: JSON.stringify(row) },
           });
           break;
         }
@@ -1013,15 +850,18 @@ export default {
   display: flex;
   justify-content: flex-end;
 }
+
 .listStyle {
   display: flex;
   border-top: 1px solid #dcdfe6;
   border-left: 1px solid #dcdfe6;
   border-right: 1px solid #dcdfe6;
 }
+
 .listStyle:last-child {
   border-bottom: 1px solid #dcdfe6;
 }
+
 .progress {
   display: flex;
   align-items: center;