Bläddra i källkod

【修改】销售出库单 格子宽度

howie 2 år sedan
förälder
incheckning
f2dd116d55
1 ändrade filer med 234 tillägg och 240 borttagningar
  1. 234 240
      src/views/supply/sales/sales_list.vue

+ 234 - 240
src/views/supply/sales/sales_list.vue

@@ -19,8 +19,7 @@
                     v-for="(item, index) in statusList"
                     :key="index"
                     :label="item.value"
-                    >{{ item.label }}</el-radio-button
-                  >
+                  >{{ item.label }}</el-radio-button>
                 </el-radio-group>
               </el-form-item>
             </el-col>
@@ -29,7 +28,7 @@
                 <el-input
                   v-model="screenForm.orderNum"
                   placeholder="请输入发货单号(多个单号请用逗号隔开)"
-                ></el-input>
+                />
               </el-form-item>
             </el-col>
             <el-col :xs="24" :sm="12" :lg="6">
@@ -37,7 +36,7 @@
                 <el-input
                   v-model="screenForm.mainOrderId"
                   placeholder="请输入订单号"
-                ></el-input>
+                />
               </el-form-item>
             </el-col>
             <el-col :xs="24" :sm="12" :lg="6">
@@ -45,7 +44,7 @@
                 <el-input
                   v-model="screenForm.jxsName"
                   placeholder="请输入经销商名称"
-                ></el-input>
+                />
               </el-form-item>
             </el-col>
             <el-col :xs="24" :sm="12" :lg="6">
@@ -53,7 +52,7 @@
                 <el-input
                   v-model="screenForm.jxsNum"
                   placeholder="请输入规格型号"
-                ></el-input>
+                />
               </el-form-item>
             </el-col>
             <el-col :xs="24" :sm="12" :lg="6">
@@ -61,7 +60,7 @@
                 <el-input
                   v-model="screenForm.chName"
                   placeholder="请输入产品名称"
-                ></el-input>
+                />
               </el-form-item>
             </el-col>
             <el-col :xs="24" :sm="12" :lg="6">
@@ -69,7 +68,7 @@
                 <el-input
                   v-model="screenForm.chNum"
                   placeholder="请输入物料编码"
-                ></el-input>
+                />
               </el-form-item>
             </el-col>
             <el-col :xs="24" :sm="12" :lg="6">
@@ -77,7 +76,7 @@
                 <el-input
                   v-model="screenForm.model"
                   placeholder="请输入规格型号"
-                ></el-input>
+                />
               </el-form-item>
             </el-col>
             <el-col :xs="24" :sm="12" :lg="6">
@@ -92,11 +91,11 @@
                   style="width: 100%"
                 >
                   <el-option
-                    :label="item.name"
-                    :value="item.id"
                     v-for="(item, index) in warehouseList"
                     :key="index"
-                  ></el-option>
+                    :label="item.name"
+                    :value="item.id"
+                  />
                 </el-select>
               </el-form-item>
             </el-col>
@@ -110,8 +109,7 @@
                   value-format="yyyy-MM-dd HH:mm:ss"
                   start-placeholder="开始日期"
                   end-placeholder="结束日期"
-                >
-                </el-date-picker>
+                />
               </el-form-item>
             </el-col>
             <el-col :xs="24" :sm="12" :lg="6">
@@ -124,8 +122,7 @@
                   value-format="yyyy-MM-dd HH:mm:ss"
                   start-placeholder="开始日期"
                   end-placeholder="结束日期"
-                >
-                </el-date-picker>
+                />
               </el-form-item>
             </el-col>
             <!-- <el-col :xs="24" :sm="12" :lg="6">
@@ -146,8 +143,7 @@
                   value-format="yyyy-MM-dd HH:mm:ss"
                   start-placeholder="开始日期"
                   end-placeholder="结束日期"
-                >
-                </el-date-picker>
+                />
               </el-form-item>
             </el-col>
             <el-col :xs="24" :sm="12" :lg="6">
@@ -155,15 +151,15 @@
                 <el-input
                   v-model="screenForm.id"
                   placeholder="请输入出库单号(多个单号请用逗号隔开)"
-                ></el-input>
+                />
               </el-form-item>
             </el-col>
             <el-col :xs="24" :sm="12" :lg="6">
               <el-form-item label="金蝶推送状态" prop="syncStatus">
                 <el-select v-model="screenForm.syncStatus" clearable filterable>
-                  <el-option label="未推送" :value="0"> </el-option>
-                  <el-option label="推送成功" :value="1"> </el-option>
-                  <el-option label="失败推送" :value="-1"> </el-option>
+                  <el-option label="未推送" :value="0" />
+                  <el-option label="推送成功" :value="1" />
+                  <el-option label="失败推送" :value="-1" />
 
                 </el-select>
               </el-form-item>
@@ -171,9 +167,10 @@
             <el-col :xs="24" :sm="12" :lg="24" class="tr">
               <el-form-item label="">
                 <el-button @click="resetScreenForm">清空</el-button>
-                <el-button type="primary" @click="submitScreenForm"
-                  >搜索</el-button
-                >
+                <el-button
+                  type="primary"
+                  @click="submitScreenForm"
+                >搜索</el-button>
               </el-form-item>
             </el-col>
           </el-row>
@@ -184,27 +181,25 @@
         <div class="btn-group clearfix">
           <div class="fl">
             <el-button
+              v-if="$checkBtnRole('refund', $route.meta.roles)"
               size="mini"
               type="primary"
               icon="el-icon-plus"
               @click="toReturnForm()"
-              v-if="$checkBtnRole('refund', $route.meta.roles)"
-              >退货申请</el-button
-            >
+            >退货申请</el-button>
             <el-button
+              v-if="$checkBtnRole('examine', $route.meta.roles)"
               size="mini"
               type="warning"
               icon="el-icon-finished"
-              @click="batchExamine"
               :disabled="multipleSelection.length < 1"
-              v-if="$checkBtnRole('examine', $route.meta.roles)"
-              >批量审批</el-button
-            >
+              @click="batchExamine"
+            >批量审批</el-button>
           </div>
           <div class="fr">
             <ExportButton
-              :exUrl="'sale/order/exportChuku'"
-              :exParams="exParams"
+              :ex-url="'sale/order/exportChuku'"
+              :ex-params="exParams"
             />
           </div>
         </div>
@@ -216,21 +211,21 @@
             border
             fit
             :row-style="rowClass"
-            @selection-change="handleSelectionChange"
             show-summary
             :summary-method="$getSummaries"
+            @selection-change="handleSelectionChange"
           >
             <el-table-column
               align="center"
               type="selection"
               width="55"
               fixed="left"
-            ></el-table-column>
+            />
             <el-table-column
               align="left"
               label="金蝶推送状态"
               prop="syncStatus"
-              min-width="100"
+              min-width="130"
               show-overflow-tooltip
               sortable
             >
@@ -257,7 +252,7 @@
               min-width="100"
               show-overflow-tooltip
               sortable
-            ></el-table-column>
+            />
             <el-table-column
               align="left"
               label="订单类型"
@@ -291,7 +286,7 @@
               sortable
             >
               <template slot-scope="scope">
-                <CopyButton :copyText="scope.row.id" />
+                <CopyButton :copy-text="scope.row.id" />
                 <span>{{ scope.row.id }}</span>
               </template>
             </el-table-column>
@@ -304,7 +299,7 @@
               sortable
             >
               <template slot-scope="scope">
-                <CopyButton :copyText="scope.row.orderNo" />
+                <CopyButton :copy-text="scope.row.orderNo" />
                 <span>{{ scope.row.orderNo }}</span>
               </template>
             </el-table-column>
@@ -317,14 +312,16 @@
               sortable
             >
               <template slot-scope="scope">
-                <CopyButton :copyText='(scope.row.orderType === "TRADE" ||
-                scope.row.orderType === "HOME" || scope.row.orderType
-                ==="REQUISITION_TRADE" || scope.row.orderType
-                ==="REQUISITION_HOME")? scope.row.enginOrderNo:scope.row.mainOrderId' />                <span>{{
+                <CopyButton
+                  :copy-text="(scope.row.orderType === &quot;TRADE&quot; ||
+                    scope.row.orderType === &quot;HOME&quot; || scope.row.orderType
+                      ===&quot;REQUISITION_TRADE&quot; || scope.row.orderType
+                      ===&quot;REQUISITION_HOME&quot;)? scope.row.enginOrderNo:scope.row.mainOrderId"
+                />                <span>{{
                   (scope.row.orderType === "TRADE" ||
-                  scope.row.orderType === "HOME" ||
-                  scope.row.orderType === "REQUISITION_TRADE" ||
-                  scope.row.orderType === "REQUISITION_HOME")
+                    scope.row.orderType === "HOME" ||
+                    scope.row.orderType === "REQUISITION_TRADE" ||
+                    scope.row.orderType === "REQUISITION_HOME")
                     ? scope.row.enginOrderNo
                     : scope.row.mainOrderId
                 }}</span>
@@ -337,7 +334,7 @@
               min-width="100"
               show-overflow-tooltip
               sortable
-            ></el-table-column>
+            />
             <el-table-column
               align="left"
               label="经销商编码"
@@ -347,7 +344,7 @@
               sortable
             >
               <template slot-scope="scope">
-                <CopyButton :copyText="scope.row.customerNumber" />
+                <CopyButton :copy-text="scope.row.customerNumber" />
                 <span>{{ scope.row.customerNumber }}</span>
               </template>
             </el-table-column>
@@ -360,7 +357,7 @@
               sortable
             >
               <template slot-scope="scope">
-                <CopyButton :copyText="scope.row.customerName" />
+                <CopyButton :copy-text="scope.row.customerName" />
                 <span>{{ scope.row.customerName }}</span>
               </template>
             </el-table-column>
@@ -373,7 +370,7 @@
               sortable
             >
               <template slot-scope="scope">
-                <CopyButton :copyText="scope.row.materialCode" />
+                <CopyButton :copy-text="scope.row.materialCode" />
                 <span>{{ scope.row.materialCode }}</span>
               </template>
             </el-table-column>
@@ -386,7 +383,7 @@
               sortable
             >
               <template slot-scope="scope">
-                <CopyButton :copyText="scope.row.materialOldNumber" />
+                <CopyButton :copy-text="scope.row.materialOldNumber" />
                 <span>{{ scope.row.materialOldNumber }}</span>
               </template>
             </el-table-column>
@@ -399,7 +396,7 @@
               sortable
             >
               <template slot-scope="scope">
-                <CopyButton :copyText="scope.row.materialName" />
+                <CopyButton :copy-text="scope.row.materialName" />
                 <span>{{ scope.row.materialName }}</span>
               </template>
             </el-table-column>
@@ -412,7 +409,7 @@
               sortable
             >
               <template slot-scope="scope">
-                <CopyButton :copyText="scope.row.specification" />
+                <CopyButton :copy-text="scope.row.specification" />
                 <span>{{ scope.row.specification }}</span>
               </template>
             </el-table-column>
@@ -423,7 +420,7 @@
               min-width="100"
               show-overflow-tooltip
               sortable
-            ></el-table-column>
+            />
             <el-table-column
               align="left"
               label="制单人"
@@ -431,7 +428,7 @@
               min-width="100"
               show-overflow-tooltip
               sortable
-            ></el-table-column>
+            />
             <el-table-column
               align="left"
               label="审核时间"
@@ -439,7 +436,7 @@
               min-width="150"
               show-overflow-tooltip
               sortable
-            ></el-table-column>
+            />
 
             <el-table-column
               align="right"
@@ -448,7 +445,7 @@
               min-width="100"
               show-overflow-tooltip
               sortable
-            ></el-table-column>
+            />
 
             <!-- <el-table-column align="right" label="单价" prop="price" min-width="100" show-overflow-tooltip
               sortable>
@@ -480,34 +477,33 @@
               fixed="right"
             >
               <template slot-scope="scope">
-                <el-button type="text" @click="toDetail(scope.row)"
-                  >详情</el-button
-                >
                 <el-button
                   type="text"
+                  @click="toDetail(scope.row)"
+                >详情</el-button>
+                <el-button
                   v-if="
                     scope.row.type === 2 && scope.row.examineStatus !== 'OK'
                   "
+                  type="text"
                   @click="toDetail(scope.row), (edit = true)"
-                  >编辑</el-button
-                >
+                >编辑</el-button>
                 <el-button
+                  v-if="
+                    $checkBtnRole('examine', $route.meta.roles) &&
+                      scope.row.examineStatus === 'WAIT'
+                  "
                   type="text"
                   @click="toExamine(scope.row)"
+                >审批</el-button>
+                <el-popconfirm
                   v-if="
                     $checkBtnRole('examine', $route.meta.roles) &&
-                    scope.row.examineStatus === 'WAIT'
+                      scope.row.examineStatus === 'OK'
                   "
-                  >审批</el-button
-                >
-                <el-popconfirm
                   style="margin-left: 10px"
                   title="确定弃审吗?"
                   @onConfirm="handleAbandon(scope.row.id)"
-                  v-if="
-                    $checkBtnRole('examine', $route.meta.roles) &&
-                    scope.row.examineStatus === 'OK'
-                  "
                 >
                   <el-button slot="reference" type="text">弃审</el-button>
                 </el-popconfirm>
@@ -519,38 +515,37 @@
       <div class="pagination clearfix">
         <div class="fr">
           <el-pagination
-            @size-change="handleSizeChange"
-            @current-change="handleCurrentChange"
             :current-page="currentPage"
             :page-sizes="[10, 20, 30, 50, 100]"
             :page-size="10"
             layout="total, sizes, prev, pager, next, jumper"
             :total="listTotal"
-          >
-          </el-pagination>
+            @size-change="handleSizeChange"
+            @current-change="handleCurrentChange"
+          />
         </div>
       </div>
     </div>
 
     <ExamineDialog
-      :isShow.sync="isShowExamineDialog"
-      :examineForm.sync="examineForm"
+      :is-show.sync="isShowExamineDialog"
+      :examine-form.sync="examineForm"
     />
 
     <SalesDetail
-      :listItem="queryItem"
-      :edit="edit"
       v-if="isShowDetail"
+      :list-item="queryItem"
+      :edit="edit"
       @backListFormDetail="backList"
     />
     <SalesExamine
-      :listItem="queryItem"
       v-if="isShowExamine"
+      :list-item="queryItem"
       @backListFormExamine="backList"
     />
     <SalesReturnForm
-      :listItem="queryItem"
       v-if="isShowReturnForm"
+      :list-item="queryItem"
       @backListFormDetail="backList"
     />
   </div>
@@ -563,44 +558,43 @@ import {
   examineJudge,
   getList,
   getWarehouseList,
-  getListOrderNo,
-} from "@/api/supply/sales";
-import SalesDetail from "@/views/supply/sales/components/sales_detail";
-import SalesExamine from "@/views/supply/sales/components/sales_examine";
-import SalesReturnForm from "@/views/supply/sales/components/sales_return_form";
-import ExamineDialog from "@/components/Common/examine-dialog";
-
-let that;
+  getListOrderNo
+} from '@/api/supply/sales'
+import SalesDetail from '@/views/supply/sales/components/sales_detail'
+import SalesExamine from '@/views/supply/sales/components/sales_examine'
+import SalesReturnForm from '@/views/supply/sales/components/sales_return_form'
+import ExamineDialog from '@/components/Common/examine-dialog'
+
+let that
 export default {
   components: {
     SalesDetail,
     SalesExamine,
     SalesReturnForm,
-    ExamineDialog,
+    ExamineDialog
   },
   filters: {
     statusFilter(val) {
       if (that.statusList.length) {
-        let obj = that.statusList.find(o => o.value == val);
-      return obj ? obj.label : ''
+        const obj = that.statusList.find(o => o.value == val)
+        return obj ? obj.label : ''
       }
       return ''
     },
     orderTypeFilter(val) {
       if (that.orderTypeList.length) {
-        let obj = that.orderTypeList.find(o => o.value == val);
-      return obj ? obj.label : ''
+        const obj = that.orderTypeList.find(o => o.value == val)
+        return obj ? obj.label : ''
       }
       return ''
-
     },
     billStatusFilter(val) {
       const MAP = {
-        1: "已开票",
-        0: "未开票",
-      };
-      return MAP[val];
-    },
+        1: '已开票',
+        0: '未开票'
+      }
+      return MAP[val]
+    }
   },
   data() {
     return {
@@ -611,192 +605,192 @@ export default {
       listLoading: false, // 列表加载loading
       screenForm: {
         // 筛选表单数据
-        orderNum: "",
-        jxsName: "",
-        jxsNum: "",
-        chName: "",
-        chNum: "",
-        model: "",
+        orderNum: '',
+        jxsName: '',
+        jxsNum: '',
+        chName: '',
+        chNum: '',
+        model: '',
         warehouse: [],
-        date: "",
-        status: "",
-        mainOrderId: "",
-        approval: "",
-        printTime: "",
+        date: '',
+        status: '',
+        mainOrderId: '',
+        approval: '',
+        printTime: '',
         printDesc: null,
-        syncStatus:'',
-        id: "",
+        syncStatus: '',
+        id: ''
       },
       statusList: [
-        { label: "已保存", value: "SAVE" },
-        { label: "待审核", value: "WAIT" },
-        { label: "审核通过", value: "OK" },
+        { label: '已保存', value: 'SAVE' },
+        { label: '待审核', value: 'WAIT' },
+        { label: '审核通过', value: 'OK' }
         // { label: '审核驳回', value: 'FAIL' },,
       ],
       orderTypeList: [
-        { label: "商用", value: "TRADE" },
-        { label: "家用", value: "HOME" },
-        { label: "零售单", value: "RETAIL" },
-        { label: "销售政策单", value: "RETAIL_POLICY" },
-        { label: "置换单家用", value: "PERMU_HOME" },
-        { label: "置换商用", value: "PERMU_TRADE" },
-        { label: "置换零售", value: "PERMU_RETAIL" },
-        { label: "置换销售政策单", value: "PERMU_RETAIL_POLICY" },
-        { label: "调拨单零售", value: "REQUISITION_RETAIL" },
-        { label: "调拨单销售政策", value: "REQUISITION_RETAIL_POLICY" },
-        { label: "调拨单商用", value: "REQUISITION_TRADE" },
-        { label: "调拨单家用", value: "REQUISITION_HOME" },
+        { label: '商用', value: 'TRADE' },
+        { label: '家用', value: 'HOME' },
+        { label: '零售单', value: 'RETAIL' },
+        { label: '销售政策单', value: 'RETAIL_POLICY' },
+        { label: '置换单家用', value: 'PERMU_HOME' },
+        { label: '置换商用', value: 'PERMU_TRADE' },
+        { label: '置换零售', value: 'PERMU_RETAIL' },
+        { label: '置换销售政策单', value: 'PERMU_RETAIL_POLICY' },
+        { label: '调拨单零售', value: 'REQUISITION_RETAIL' },
+        { label: '调拨单销售政策', value: 'REQUISITION_RETAIL_POLICY' },
+        { label: '调拨单商用', value: 'REQUISITION_TRADE' },
+        { label: '调拨单家用', value: 'REQUISITION_HOME' }
       ],
       warehouseList: [],
       centerDialogVisible: false,
-      cid: "",
+      cid: '',
       queryItem: {},
       isShowDetail: false,
       isShowExamine: false,
       isShowReturnForm: false,
-      value1: "",
-      qty: "",
+      value1: '',
+      qty: '',
       edit: false,
-      choiceDate: "",
+      choiceDate: '',
       selectRow: [],
       multipleSelection: [],
       isShowExamineDialog: false,
       examineForm: {
-        status: "",
-        remark: "",
+        status: '',
+        remark: ''
       },
       setDisabled: {
         disabledDate: (time) => {
           if (this.choiceDate) {
-            const res = 13 * 24 * 3600 * 1000;
-            const minTime = this.choiceDate - res;
-            const maxTime = this.choiceDate + res;
-            return time.getTime() < minTime || time.getTime() > maxTime;
+            const res = 13 * 24 * 3600 * 1000
+            const minTime = this.choiceDate - res
+            const maxTime = this.choiceDate + res
+            return time.getTime() < minTime || time.getTime() > maxTime
           }
         },
         onPick: ({ maxDate, minDate }) => {
-          this.choiceDate = minDate.getTime();
-          if (maxDate) this.choiceDate = "";
-        },
-      },
-    };
+          this.choiceDate = minDate.getTime()
+          if (maxDate) this.choiceDate = ''
+        }
+      }
+    }
   },
 
   computed: {
     exParams() {
       return {
         examineStatus: this.screenForm.status,
-        orderNo: this.screenForm.orderNum.replace(/,/gi, ","),
+        orderNo: this.screenForm.orderNum.replace(/,/gi, ','),
         customerName: this.screenForm.jxsName,
         customerNumber: this.screenForm.jxsNum,
         materialName: this.screenForm.chName,
         materialNumber: this.screenForm.chNum,
         specification: this.screenForm.model,
-        correspondId: this.screenForm.warehouse.join(","),
-        startTime: this.screenForm.date ? this.screenForm.date[0] : "",
-        endTime: this.screenForm.date ? this.screenForm.date[1] : "",
-        syncStatus:this.screenForm.syncStatus,
+        correspondId: this.screenForm.warehouse.join(','),
+        startTime: this.screenForm.date ? this.screenForm.date[0] : '',
+        endTime: this.screenForm.date ? this.screenForm.date[1] : '',
+        syncStatus: this.screenForm.syncStatus,
 
         approvalStartTime: this.screenForm.approval
           ? this.screenForm.approval[0]
-          : "",
+          : '',
         approvalEndTime: this.screenForm.approval
           ? this.screenForm.approval[1]
-          : "",
+          : '',
         printStartTime: this.screenForm.printTime
           ? this.screenForm.printTime[0]
-          : "",
+          : '',
         printEndTime: this.screenForm.printTime
           ? this.screenForm.printTime[1]
-          : "",
+          : '',
         mainOrderId: this.screenForm.mainOrderId,
         printTimeDesc: this.screenForm.printDesc,
-        id: this.screenForm.id.replace(/,/gi, ","),
-      };
-    },
+        id: this.screenForm.id.replace(/,/gi, ',')
+      }
+    }
   },
 
   watch: {
     multipleSelection(data) {
       // 监听选中状态
-      this.selectRow = [];
+      this.selectRow = []
       if (data.length > 0) {
         data.forEach((item, index) => {
-          this.selectRow.push(item.id);
-        });
+          this.selectRow.push(item.id)
+        })
       }
-    },
+    }
   },
 
   beforeCreate() {
-    that = this;
+    that = this
   },
 
   created() {
-    this.getWarehouseList();
-    this.getList();
+    this.getWarehouseList()
+    this.getList()
   },
 
   methods: {
     // 查询列表
     getList() {
-      this.listLoading = true;
-      let params = {
+      this.listLoading = true
+      const params = {
         pageNum: this.currentPage,
         pageSize: this.pageSize,
         examineStatus: this.screenForm.status,
-        orderNo: this.screenForm.orderNum.replace(/,/gi, ","),
+        orderNo: this.screenForm.orderNum.replace(/,/gi, ','),
         customerName: this.screenForm.jxsName,
         customerNumber: this.screenForm.jxsNum,
         materialName: this.screenForm.chName,
         materialNumber: this.screenForm.chNum,
         specification: this.screenForm.model,
-        correspondId: this.screenForm.warehouse.join(","),
-        syncStatus:this.screenForm.syncStatus,
+        correspondId: this.screenForm.warehouse.join(','),
+        syncStatus: this.screenForm.syncStatus,
 
-        startTime: this.screenForm.date ? this.screenForm.date[0] : "",
-        endTime: this.screenForm.date ? this.screenForm.date[1] : "",
+        startTime: this.screenForm.date ? this.screenForm.date[0] : '',
+        endTime: this.screenForm.date ? this.screenForm.date[1] : '',
         approvalStartTime: this.screenForm.approval
           ? this.screenForm.approval[0]
-          : "",
+          : '',
         approvalEndTime: this.screenForm.approval
           ? this.screenForm.approval[1]
-          : "",
+          : '',
         mainOrderId: this.screenForm.mainOrderId,
         printStartTime: this.screenForm.printTime
           ? this.screenForm.printTime[0]
-          : "",
+          : '',
         printEndTime: this.screenForm.printTime
           ? this.screenForm.printTime[1]
-          : "",
+          : '',
         printTimeDesc: this.screenForm.printDesc,
-        id: this.screenForm.id.replace(/,/gi, ","),
-      };
+        id: this.screenForm.id.replace(/,/gi, ',')
+      }
       getList(params).then((res) => {
         res.data.records.forEach((item) => {
-          item.sums1 = ["refundableQty"];
-          item.sums2 = ["price", "payAmount"];
-        });
-        this.dataList = res.data.records;
-        this.listTotal = res.data.total;
-        this.listLoading = false;
-      });
+          item.sums1 = ['refundableQty']
+          item.sums2 = ['price', 'payAmount']
+        })
+        this.dataList = res.data.records
+        this.listTotal = res.data.total
+        this.listLoading = false
+      })
     },
 
     // 获取仓库列表
     getWarehouseList() {
       getWarehouseList({
         pageNum: 1,
-        pageSize: -1,
+        pageSize: -1
       }).then((res) => {
-        this.warehouseList = res.data.records;
-      });
+        this.warehouseList = res.data.records
+      })
     },
 
     updateReceipt() {
       if (!this.value1) {
-        this.$errorMsg("请选择时间");
-        return;
+        this.$errorMsg('请选择时间')
+        return
       }
       // updateReceipt({
       // startTime:this.value1[0],
@@ -809,40 +803,40 @@ export default {
     },
     // 提交筛选表单
     submitScreenForm() {
-      this.currentPage = 1;
-      this.getList();
+      this.currentPage = 1
+      this.getList()
       if (this.screenForm.orderNum) {
         getListOrderNo({
-          orderNo: this.screenForm.orderNum.replace(/,/gi, ","),
+          orderNo: this.screenForm.orderNum.replace(/,/gi, ',')
         }).then((res) => {
           if (res.data) {
-            this.$confirm(res.data, "提示", {
-              confirmButtonText: "确定",
-              showCancelButton: false,
-            });
+            this.$confirm(res.data, '提示', {
+              confirmButtonText: '确定',
+              showCancelButton: false
+            })
           }
-        });
+        })
       }
     },
 
     // 重置筛选表单
     resetScreenForm() {
-      this.$refs.screenForm.resetFields();
-      this.currentPage = 1;
-      this.getList();
+      this.$refs.screenForm.resetFields()
+      this.currentPage = 1
+      this.getList()
     },
 
     // 更改每页数量
     handleSizeChange(val) {
-      this.pageSize = val;
-      this.currentPage = 1;
-      this.getList();
+      this.pageSize = val
+      this.currentPage = 1
+      this.getList()
     },
 
     // 更改当前页
     handleCurrentChange(val) {
-      this.currentPage = val;
-      this.getList();
+      this.currentPage = val
+      this.getList()
     },
 
     // 判断是否可以审批
@@ -851,89 +845,89 @@ export default {
       const result = await new Promise((resolve, reject) => {
         examineJudge({ id: item.id })
           .then((res) => {
-            resolve(res.code == 200);
+            resolve(res.code == 200)
           })
           .catch((res) => {
-            resolve(0);
-          });
-      });
-      return result;
+            resolve(0)
+          })
+      })
+      return result
     },
 
     // 进入表单
     toReturnForm(item) {
-      this.queryItem = item;
-      this.isShowReturnForm = true;
+      this.queryItem = item
+      this.isShowReturnForm = true
     },
 
     // 进入详情
     toDetail(item) {
-      this.queryItem = item;
-      this.isShowDetail = true;
+      this.queryItem = item
+      this.isShowDetail = true
     },
 
     // 进入审批
     async toExamine(item) {
-      const canExamine = await this.examineJudge(item);
+      const canExamine = await this.examineJudge(item)
       if (!canExamine) {
-        return false;
+        return false
       }
-      this.queryItem = item;
-      this.isShowExamine = true;
+      this.queryItem = item
+      this.isShowExamine = true
     },
 
     backList() {
-      this.queryItem = {};
-      this.isShowDetail = false;
-      this.isShowExamine = false;
-      this.isShowReturnForm = false;
+      this.queryItem = {}
+      this.isShowDetail = false
+      this.isShowExamine = false
+      this.isShowReturnForm = false
     },
 
     handleSelectionChange(val) {
-      this.multipleSelection = val;
+      this.multipleSelection = val
       if (val) {
-        this.selections = val;
+        this.selections = val
       } else {
-        this.selections = [];
+        this.selections = []
       }
     },
 
     rowClass({ row, rowIndex }) {
       if (this.selectRow.includes(row.id)) {
-        return { "background-color": "#ecf5ff" };
+        return { 'background-color': '#ecf5ff' }
       }
     },
 
     // 打开 批量审批
     batchExamine() {
-      this.isShowExamineDialog = true;
+      this.isShowExamineDialog = true
     },
 
     // 提交 批量审批
     submitExamineForm() {
-      let ids = this.multipleSelection.map((item) => {
-        return item.id;
-      });
+      const ids = this.multipleSelection.map((item) => {
+        return item.id
+      })
       examineBatch({
-        ids: ids.join(","),
+        ids: ids.join(','),
         examineStatus: this.examineForm.status,
-        approvalRemark: this.examineForm.remark,
+        approvalRemark: this.examineForm.remark
       }).then((res) => {
-        this.isShowExamineDialog = false;
-        this.getList();
-        this.$successMsg("修改成功");
-      });
+        this.isShowExamineDialog = false
+        this.getList()
+        this.$successMsg('修改成功')
+      })
     },
 
     // 弃审
     handleAbandon(id) {
       abandonData({ id }).then((res) => {
-        this.$successMsg();
-        this.getList();
-      });
-    },
-  },
-};
+        this.$successMsg()
+        this.getList()
+      })
+    }
+  }
+}
 </script>
 
 <style lang="scss" scoped></style>