lichao hace 3 años
padre
commit
27f8539273

+ 15 - 0
src/api/dealer/sales.js

@@ -79,3 +79,18 @@ export function itemDetail(current, size, params) {
     }
   })
 }
+// 请核
+export function pleaseCheck(data) {
+  return request({
+    url: '/api/blade-purchase-sales/order/checkOrder',
+    method: 'post',
+    data: data
+  })
+}
+export function repealCancel(data) {
+  return request({
+    url: '/api/blade-purchase-sales/order/repealCancel',
+    method: 'post',
+    data: data
+  })
+}

+ 8 - 6
src/views/businessManagement/inventoryAccount/index.vue

@@ -56,7 +56,7 @@
           </el-button>
         </template>
       </avue-crud>
-      <el-dialog title="导入价格"
+      <el-dialog title="导入库存"
                  append-to-body
                  :visible.sync="excelBox"
                  :close-on-click-modal="false"
@@ -127,7 +127,7 @@ export default {
     }
   },
   created() {
-    this.search.createTime = defaultDate(1)
+    // this.search.createTime = defaultDate(1)
     let i = 0;
     this.option.column.forEach(item => {
       if (item.search) i++
@@ -253,10 +253,12 @@ export default {
       // this.show = false;
     },
     statement() {
-      this.statementData = {...this.search}
-      this.statementData.createStartTime = this.statementData.createTime[0]+ " " + "00:00:00"
-      this.statementData.createEndTime = this.statementData.createTime[1]+ " " + "23:59:59"
-      delete this.statementData.createTime
+      this.statementData = {...this.search};
+      if (this.statementData.createTime && this.statementData.createTime.length > 0) {
+        this.statementData.createStartTime = this.statementData.createTime[0]+ " " + "00:00:00"
+        this.statementData.createEndTime = this.statementData.createTime[1]+ " " + "23:59:59"
+        delete this.statementData.createTime;
+      }
       this.switchDialog = !this.switchDialog;
     },
     onClose(val) {

+ 6 - 1
src/views/businessManagement/purchaseOrder/detailsPageEdit.vue

@@ -608,7 +608,12 @@ export default {
       },
       billType:"申请",  //账单类型
       billData:{},     //账单需要数据
-      financeData: {}, // 账单请核需要的路由
+      financeData: {
+        url:"/financialManagement/paymentRequest/index",
+        pageStatus:"this.$store.getters.pqStatus",
+        pageLabel:"付费申请",
+        checkType: 'ffsq'
+      }, // 账单请核需要的路由
       applyPaymentDialog:false,//生成账单组件
       applicationDialog: false,// 申请记录
       dialogVisible: false,

+ 3 - 2
src/views/businessManagement/salesOrder/detailsPageEdit.vue

@@ -208,7 +208,8 @@
                                 :disabled="detailData.seeDisabled || browse"/>
                 <el-input
                   v-else-if="(item.prop === 'advancePayment') || (item.prop === 'orderAmount') ||
-                  (item.prop === 'settlmentAmount') || (item.prop === 'caseOverPayment') || (item.prop === 'thisUsedProfit')"
+                  (item.prop === 'settlmentAmount') || (item.prop === 'caseOverPayment') || (item.prop === 'thisUsedProfit') ||
+                  (item.prop === 'createProfit')"
                   v-model.trim="form[item.prop]" size="small" autocomplete="off"
                   @change="computedCost"
                   :disabled="detailData.seeDisabled || item.disabled || browse"
@@ -1052,7 +1053,7 @@ export default {
           }, {
             label: '产生返利',
             prop: 'createProfit',
-            disabled: true,
+            disabled: false,
             rules: [
               {
                 required: false,

+ 39 - 24
src/views/dealer/purchase/detail.vue

@@ -403,7 +403,9 @@
         :billData="{}"
         :arrList="applyPaymentList"
         :belongCompany="form.belongToCorpId"
+        :checkData="checkData"
         @choceFun="choceFun"
+        @submit="feeSubmit"
       />
     </el-dialog>
 <!--    历史记录-->
@@ -657,6 +659,12 @@ export default {
       applyPaymentList: [],
       billType:"收费",  //账单类型
       billData:{},     //账单需要数据
+      checkData:{
+        url:"/financialManagement/paymentRequest/index",
+        pageStatus:"this.$store.getters.pqStatus",
+        pageLabel:"付费申请",
+        checkType: 'ffsq'
+      },
       applySettlementDialog:false,//生成账单组件
       financialAccountDialog:false,
       feesOption: [],
@@ -762,7 +770,7 @@ export default {
         delete this.form.orderItemsList;
         delete this.form.orderFilesList;
         this.oldForm = {...this.form};
-        this.oldDataList = [...this.dataList];
+        // this.oldDataList = [...this.dataList];
         this.oldUploadData = [...this.uploadData];
       }).finally(() => {
         this.pageLoading = false;
@@ -1218,36 +1226,41 @@ export default {
       this.billType = type;
       this.applyPaymentList = [];
       this.goodData.map(e => {
-        const form = {
-          srcOrderno:this.form.orderNo,
-          srcParentId: this.form.id,
-          itemType:"采购",
-          corpsName:this.form.corpsName,
-          corpId:this.form.corpId,
-          currency: 'CNY',
-          exchangeRate: '1',
-          taxRate: '0',
-          accDate: this.form.businesDate,
-          srcType: 1,
-          // chargeMember: this.form.chargeMember,
-          parentId: this.form.id,
-          tradeType: 'JXS',
-          optionType: 'JXS',
-          amount: e.amount,
-          costType: this.feesOption.find(item => item.cname == '货款')? this.feesOption.find(item => item.cname == '货款').id: null,
-          srcFeesId: e.id,
-          goodName: e.cname,
-          price: e.price,
-          quantity: e.orderQuantity,
-          unit:e.unit,
+        if (e.submitPay != 1) {
+          const form = {
+            srcOrderno:this.form.orderNo,
+            srcParentId: this.form.id,
+            itemType:"采购",
+            corpsName:this.form.corpsName,
+            corpId:this.form.corpId,
+            currency: 'CNY',
+            exchangeRate: '1',
+            taxRate: '0',
+            accDate: this.form.businesDate,
+            srcType: 1,
+            // chargeMember: this.form.chargeMember,
+            parentId: this.form.id,
+            tradeType: 'JXS',
+            optionType: 'JXS',
+            amount: e.amount,
+            costType: this.feesOption.find(item => item.cname == '货款')? this.feesOption.find(item => item.cname == '货款').id: null,
+            srcFeesId: e.id,
+            goodName: e.cname,
+            price: e.price,
+            quantity: e.orderQuantity,
+            unit:e.unit,
+          }
+          this.applyPaymentList.push(form);
         }
-        this.applyPaymentList.push(form);
       })
     },
     //关闭账单
     choceFun(){
       this.financialAccountDialog  = false
     },
+    feeSubmit() {
+      this.queryData(this.form.id);
+    },
     // 获得库存信息
     async getStockInfo(data) {
       //tradeType JXS
@@ -1380,12 +1393,14 @@ export default {
       itemDetail(this.goodPage.currentPage, this.goodPage.pageSize, data).then(res => {
         this.dataList = res.data.data.records;
         this.goodPage.total = res.data.data.total;
+        this.oldDataList = [...this.dataList];
       }).finally(() => {
         this.goodLoading = false;
       })
     },
     // 验证新旧值对比
     verification() {
+      console.log(contrastList(this.dataList, this.oldDataList))
       if (contrastObj(this.form, this.oldForm) ||
         contrastList(this.dataList, this.oldDataList) ||
         contrastList(this.uploadData, this.oldUploadData)) {

+ 207 - 21
src/views/dealer/sales/detail.vue

@@ -12,6 +12,21 @@
       </div>
       <div class="add-customer-btn">
         <el-button
+          v-if="checker && form.status != 3"
+          type="primary"
+          size="small"
+          class="el-button--small-yh"
+          @click.stop="openCheckDialog">
+          审批
+        </el-button>
+        <el-button
+          v-if="form.status > 0"
+          @click.native="checkScheduleDialog = true,checkId=form.id"
+          type="primary"
+          size="small"
+          class="el-button--small-yh"
+        >审核进度</el-button>
+        <el-button
           type="primary"
           size="small"
           class="el-button--small-yh"
@@ -20,22 +35,44 @@
         >编 辑</el-button>
         <el-button
           type="primary"
+          v-if="!checkDisabled && confirmDisabled"
+          :disabled="!form.id || disabled"
+          size="small"
+          @click="pleaseCheck"
+          :loading="btnLoading"
+          class="el-button--small-yh"
+        >请核</el-button>
+        <el-button
+          type="primary"
+          v-if="form.status == 1"
+          :disabled="disabled"
+          size="small"
+          @click="repealCancel"
+          :loading="btnLoading"
+        >撤销请核</el-button>
+        <el-button
+          type="primary"
           size="small"
           style="margin-right: 8px;"
           @click="dealerSubmit"
-          :disabled="disabled"
+          :disabled="disabled || checkDisabled"
           :loading="btnLoading"
           v-if="form.id"
         >
-          {{ form.status == 0? '确认订单': form.status == 3? '撤销订单': '' }}
+          {{ form.confirmStatus == 0? '确认订单': form.confirmStatus == 3? '撤销订单': '' }}
         </el-button>
         <el-dropdown style="margin-right: 8px;">
           <el-button type="warning" size="small">账单处理<i class="el-icon-arrow-down el-icon--right"></i></el-button>
           <el-dropdown-menu slot="dropdown">
+<!--            <el-dropdown-item-->
+<!--              @click.native="applySettlement('收费')"-->
+<!--              :disabled="disabled"-->
+<!--            >生成账单-->
+<!--            </el-dropdown-item>-->
             <el-dropdown-item
-              @click.native="applySettlement('收费')"
-              :disabled="disabled"
-            >生成账单
+              @click.native="openApplicationDialog"
+              :disabled="!form.id"
+            >查看账单
             </el-dropdown-item>
           </el-dropdown-menu>
         </el-dropdown>
@@ -72,7 +109,7 @@
               v-model="form.corpId"
               @getCorpData="getCorpData"
               corpType="KH"
-              :disabled="disabled || confirmDisabled"
+              :disabled="disabled || confirmDisabled || checkDisabled"
             />
           </template>
           <template slot="belongToCorpId">
@@ -80,7 +117,7 @@
               v-model="form.belongToCorpId"
               @getCorpData="getGSData"
               corpType="GS"
-              :disabled="disabled || confirmDisabled"
+              :disabled="disabled || confirmDisabled || checkDisabled"
             />
           </template>
           <template slot="storageId">
@@ -88,7 +125,7 @@
               v-model="form.storageId"
               @returnBack="storageChange"
               :configuration="configurationWarehouse"
-              :disabled="disabled || confirmDisabled"/>
+              :disabled="disabled || confirmDisabled || checkDisabled"/>
           </template>
           <template slot="chargeMember">
             <el-select
@@ -124,7 +161,7 @@
               icon="el-icon-circle-plus-outline"
               circle
               size="mini"
-              :disabled="disabled || !form.storageId || confirmDisabled"
+              :disabled="disabled || !form.storageId || confirmDisabled || checkDisabled"
               @click="$refs.crud.rowCellAdd()"></el-button>
           </template>
           <template slot="menuLeft">
@@ -133,7 +170,7 @@
               icon="el-icon-plus"
               size="small"
               @click.stop="newDetails"
-              :disabled="disabled || !form.storageId || confirmDisabled"
+              :disabled="disabled || !form.storageId || confirmDisabled || checkDisabled"
             >录入明细</el-button>
             <el-button
               type="info"
@@ -150,7 +187,7 @@
             <el-upload
               :action="baseURL"
               :headers="headers"
-              :disabled="disabled || confirmDisabled || !form.storageId"
+              :disabled="disabled || confirmDisabled || !form.storageId || checkDisabled"
               :on-progress="uploading"
               :show-file-list=false
               :data="uploadParam"
@@ -164,7 +201,7 @@
                 type="primary"
                 size="small"
                 icon="el-icon-upload"
-                :disabled="disabled || confirmDisabled || !form.storageId"
+                :disabled="disabled || confirmDisabled || !form.storageId || checkDisabled"
               >导 入</el-button>
             </el-upload>
           </template>
@@ -174,7 +211,7 @@
               icon="el-icon-edit"
               type="text"
               @click="rowCell(row, index)"
-              :disabled="disabled || confirmDisabled"
+              :disabled="disabled || confirmDisabled || checkDisabled"
             >{{ row.$cellEdit ? "保存" : "修改" }}</el-button
             >
             <el-button
@@ -182,7 +219,7 @@
               icon="el-icon-delete"
               type="text"
               @click="rowDel(row, index)"
-              :disabled="disabled || confirmDisabled"
+              :disabled="disabled || confirmDisabled || checkDisabled"
             >删除</el-button
             >
           </template>
@@ -340,7 +377,7 @@
         :data="uploadData"
         deleteUrl="/api/blade-client/corpsbank/update"
         :enumerationValue="84"
-        :disabled="disabled || confirmDisabled"
+        :disabled="disabled || confirmDisabled || checkDisabled"
       />
     </div>
 <!--    商品弹窗-->
@@ -462,6 +499,60 @@
       :params="historyParams"
       @closeDialog="closeDialog"
     />
+    <el-dialog
+      append-to-body
+      title="审批"
+      class="el-dialogDeep"
+      :visible.sync="checkDialog"
+      width="50%"
+      :close-on-click-modal="false"
+      :destroy-on-close="true"
+      :close-on-press-escape="false"
+      v-dialog-drag
+    >
+      <check
+        :checkData="checkData"
+        :checkDetail="false"
+        :idList="[]"
+        @choceCheckFun="choceCheckFun"
+      >
+      </check>
+    </el-dialog>
+    <el-dialog
+      append-to-body
+      title="审批进度"
+      class="el-dialogDeep"
+      :visible.sync="checkScheduleDialog"
+      width="40%"
+      :close-on-click-modal="false"
+      :destroy-on-close="true"
+      :close-on-press-escape="false"
+      v-dialog-drag
+    >
+      <check-schedule
+        :checkId="checkId"
+        :batchNo="batchNo"
+        @choceScheduleFun="choceScheduleFun"
+      >
+      </check-schedule>
+    </el-dialog>
+    <el-dialog
+      title="申请记录"
+      append-to-body
+      class="el-dialogDeep"
+      :visible.sync="applicationDialog"
+      width="60%"
+      :close-on-click-modal="false"
+      :destroy-on-close="true"
+      :close-on-press-escape="false"
+      v-dialog-drag
+    >
+      <bill-application
+        :billId="form.id"
+        @choceApplication="choceApplication"
+      >
+      </bill-application>
+    </el-dialog>
   </div>
 </template>
 
@@ -474,7 +565,11 @@ import {getUserInfo} from "@/api/system/user";
 import { gainUser } from "@/api/basicData/customerInquiry";
 import {selectGoodsNum} from "@/api/basicData/inventoryAccount"; // 库存查询
 import {detail as KHDetail} from "@/api/basicData/customerInformation";
-import {dataDetail, removeGoods, typeSave, getLotNo, dealerSubmit, historyPrice, itemDetail} from "@/api/dealer/sales";
+import {dataDetail, removeGoods,
+  typeSave, getLotNo,
+  dealerSubmit, historyPrice,
+  itemDetail, pleaseCheck,
+  repealCancel,} from "@/api/dealer/sales";
 import reportDialog from "@/components/report-dialog/main";
 import {
   isDiscount,
@@ -483,6 +578,7 @@ import {
   IntegerFormat
 } from "@/util/validate";
 import financialAccount from "../../../components/finance/financialAccount";
+import check from "@/components/check/check";
 import checkSchedule from "@/components/check/checkSchedule";
 import  billApplication from "@/components/bill/billApplication";
 import { customerList as feeList } from "@/api/basicData/basicFeesDesc";
@@ -504,6 +600,7 @@ export default {
     reportDialog,
     billApplication,
     financialAccount,
+    check,
     checkSchedule,
     viewHistory,
   },
@@ -604,6 +701,18 @@ export default {
             span: 8,
           },
           {
+            label: "系统编号",
+            prop: "sysNo",
+            span: 8,
+            disabled: true,
+          },
+          {
+            label: "订单号",
+            prop: "orderNo",
+            span: 8,
+            disabled: true,
+          },
+          {
             label: "备注",
             prop: "orderRemark",
             type: "textarea",
@@ -745,6 +854,14 @@ export default {
       oldForm: {},
       oldDataList: [],
       oldUploadData: [],
+      checkDisabled: false, // 审核状态
+      checker: false,
+      checkId: '',
+      batchNo:'',
+      checkDialog: false,
+      checkScheduleDialog: false,
+      checkData: {},
+      applicationDialog: false, // 历史账单查看弹窗
     }
   },
   async created() {
@@ -783,12 +900,17 @@ export default {
     });
     this.$set(this.form, 'businesDate', getCurrentDate());
     this.$set(this.form, 'status', 0);
+    this.$set(this.form , 'confirmStatus', 0);
     if (this.detailData.query) {
       this.disabled = true;
       this.option.column.map(e => {
         this.$set(e, 'disabled', true)
       })
       this.queryData(this.detailData.id);
+    }  else if (this.detailData.auditId) {
+      this.checker = true;
+      this.batchNo = this.detailData.check.batchNo
+      this.queryData(this.detailData.id);
     } else {
       this.dataList = [
         {
@@ -829,7 +951,8 @@ export default {
             storageId: this.form.storageId
           }
         }
-        this.confirmDisabled = this.form.status == 3? true: false;
+        this.confirmDisabled = this.form.confirmStatus == 3? true: false;
+        this.checkDisabled = this.form.status > 0? true: false;
         if (this.confirmDisabled) {
           // this.option.column.map(e => {
           //   this.$set(e, 'disabled', true)
@@ -861,8 +984,8 @@ export default {
     openEdit() {
       this.disabled = false;
       this.option.column.map(e => {
-        if (this.confirmDisabled) {
-          if (e.prop == 'businesDate') {
+        if (this.confirmDisabled || this.checkDisabled) {
+          if (e.prop == 'businesDate' || e.prop == 'sysNo' || e.prop == 'orderNo') {
             this.$set(e, 'disabled', true)
           } else {
             this.$set(e, 'disabled', false)
@@ -1498,9 +1621,9 @@ export default {
     dealerSubmit() {
       if (this.verification()) {
         let dealer;
-        if (this.form.status == 0) {
+        if (this.form.confirmStatus == 0) {
           dealer = 1;
-        } else if (this.form.status == 3) {
+        } else if (this.form.confirmStatus == 3) {
           dealer = 2;
         }
         this.btnLoading = true;
@@ -1622,6 +1745,69 @@ export default {
         return true;
       }
     },
+    // 请核
+    pleaseCheck() {
+      if (this.verification()) {
+        const data = {
+          id : this.form.id,
+          checkType: 'xsqh',
+          url: '/dealer/sales/index',
+          pageStatus:"this.$store.getters.dealerSaleStatus",
+          pageLabel:"销售订单(D)",
+          checkFlag: 2,
+        }
+        this.btnLoading = true;
+        pleaseCheck(data).then(res => {
+          this.$message.success('请核成功')
+          this.queryData(this.form.id)
+        }).catch(() => {
+          this.$message.error('请核失败')
+        }).finally(() => {
+          this.btnLoading = false;
+        })
+      }
+    },
+    repealCancel(){
+      this.$confirm("您确定撤回此次申请吗?", {
+        confirmButtonText: "确定",
+        cancelButtonText: "取消",
+        type: "warning"
+      }).then(() => {
+        const data = {
+          id : this.form.id,
+          checkType: 'xsqh',
+          pageLabel:"销售订单(D)",
+          checkFlag: 2,
+        }
+        this.pageLoading = true
+        repealCancel(data).then(res => {
+          this.$message.success('撤回成功')
+          this.queryData(this.form.id)
+        }).finally(() => {
+          this.pageLoading = false
+        })
+      })
+    },
+    //打开审核
+    openCheckDialog(){
+      this.checkData  = this.detailData.check
+      this.checkDialog = true;
+    },
+    //关闭审核
+    choceCheckFun(){
+      this.checkDialog = false;
+    },
+    choceScheduleFun(){
+      this.checkScheduleDialog = false
+    },
+    // 查看申请记录
+    openApplicationDialog(){
+      this.applicationDialog = true
+    },
+    //关闭记录
+    choceApplication(){
+      this.applicationDialog = false
+    },
   },
 }
 </script>

+ 52 - 2
src/views/dealer/sales/index.vue

@@ -70,6 +70,13 @@
             @click.stop="copyDoc()"
             :disabled="selection.length != 1"
           >复制单据</el-button>
+          <el-button
+            v-if="false"
+            type="info"
+            size="small"
+            icon="el-icon-printer"
+            @click.stop="statement"
+          >报表打印</el-button>
         </template>
         <template slot-scope="scope" slot="menu">
           <el-button
@@ -77,7 +84,7 @@
             icon="el-icon-delete"
             size="small"
             @click.stop="rowDel(scope.row, scope.index)"
-            :disabled="scope.row.status == 3"
+            :disabled="scope.row.confirmStatus == 3 || scope.row.status > 0"
           >删除
           </el-button>
         </template>
@@ -89,6 +96,12 @@
       :detailData="detailData"
       v-if="!show"
     />
+    <report-dialog
+      :switchDialog="switchDialog"
+      :searchValue="statementData"
+      :reportName="'经销商-账务对账'"
+      @onClose="onClose()"
+    />
   </div>
 </template>
 
@@ -97,10 +110,14 @@ import option from './config/mainList.json';
 import detailPage from "./detail";
 import { gainUser } from "@/api/basicData/customerInquiry";
 import {getSalesList, dataDetail, deleteDetails} from "@/api/dealer/sales";
+import reportDialog from "@/components/report-dialog/main";
 
 export default {
   name: "index",
-  components: { detailPage },
+  components: {
+    detailPage,
+    reportDialog,
+  },
   data() {
     return {
       option: {},
@@ -199,6 +216,8 @@ export default {
           },
         ]
       },
+      switchDialog: false, //报表弹窗
+      statementData: {},
     }
   },
   async created() {
@@ -220,6 +239,27 @@ export default {
       this.option.searchMenuPosition = "right";
     }
   },
+  activated() {
+    if (this.$route.query.check) {
+      this.show = true;
+      this.detailData = {
+        id: this.$route.query.check.billId,
+        check: this.$route.query.check,
+        auditId: this.$route.query.check.id,
+      };
+      this.show = false;
+      this.$store.commit("JXSSALE_IN_DETAIL");
+    }
+    if (this.$route.query.params) {
+      this.show = true;
+      this.detailData = {
+        id: this.$route.query.params,
+        query: true,
+      };
+      this.show = false;
+      this.$store.commit("JXSSALE_IN_DETAIL");
+    }
+  },
   filters: {
     decimalFormat(num) {
       return num ? Number(num).toFixed(2) : "0.00";
@@ -236,6 +276,7 @@ export default {
     },
     newAdd() {
       this.show = false;
+      this.$store.commit("JXSSALE_IN_DETAIL");
     },
     copyDoc() {},
     selectionChange(list) {
@@ -354,6 +395,7 @@ export default {
       };
       this.$nextTick(() => {
         this.show = false;
+        this.$store.commit("JXSSALE_IN_DETAIL");
       });
     },
     beforeOpenPage(row, index) {
@@ -362,6 +404,7 @@ export default {
         id: row.id,
         query: true, // 表示只是查询
       };
+      this.$store.commit("JXSSALE_IN_DETAIL");
     },
     expandChange(row) {
       if (this.dataList[row.$index].itemLoading == false) {
@@ -375,6 +418,13 @@ export default {
           });
       }
     },
+    statement() {
+      this.statementData = {...this.search};
+      this.switchDialog = !this.switchDialog;
+    },
+    onClose(val) {
+      this.switchDialog = val;
+    },
   },
 }
 </script>

+ 25 - 0
src/views/financialManagement/receiptSettle/receiptSettleDetailsPage.vue

@@ -117,6 +117,13 @@
                        @click="selectRecipt"
             >选择销售合同
             </el-button>
+            <el-button
+              v-if="false && form.id"
+              type="info"
+              size="small"
+              icon="el-icon-printer"
+              @click.stop="openReport"
+            >报表打印</el-button>
           </template>
           <template slot-scope="{ row }" slot="currency">
             <el-select  v-if="row.$cellEdit" v-model="row.currency" size="small" placeholder="请选择 币别" clearable filterable>
@@ -183,6 +190,13 @@
       ref="messagePost"
       @closeDialog="closeDialog"
     ></messagePost>
+    <report-dialog
+      :reportId="form.id"
+      :switchDialog="switchDialog"
+      :searchValue="statementData"
+      :reportName="'对账单'"
+      @onClose="onClose()"
+    />
   </div>
 </template>
 
@@ -197,6 +211,7 @@
   import {getUserInfo} from "@/api/system/user";
   import {getCorpDetail} from "@/api/maintenance/overpayment";
   import { getlistBankBy as GYSGetBank } from "@/api/basicData/configuration"
+  import reportDialog from "@/components/report-dialog/main";
 
   export default {
     name: "receiptDetailsPage",
@@ -207,6 +222,7 @@
     },
     components:{
       billDetail,
+      reportDialog,
     },
     data() {
       return {
@@ -440,6 +456,8 @@
             label: '停用'
           }],
         editDisable: false, //编辑状态禁用
+        switchDialog: false,
+        statementData: {},
       }
     },
     created() {
@@ -823,6 +841,13 @@
       cellStyle() {
         return "padding:0;height:40px;";
       },
+      openReport() {
+        this.statementData = {...this.search};
+        this.switchDialog = !this.switchDialog;
+      },
+      onClose(val) {
+        this.switchDialog = val;
+      },
     }
   }
 </script>