From 970938a52ddb3172f9200b727bb4bfd2981b0c41 Mon Sep 17 00:00:00 2001 From: jishenghua <752718920@qq.com> Date: Mon, 28 Apr 2025 17:21:58 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B4=A2=E5=8A=A1=E9=A1=B5=E9=9D=A2=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E5=BE=85=E6=94=B6=E6=AC=BE=E5=92=8C=E5=BE=85=E4=BB=98?= =?UTF-8?q?=E6=AC=BE=E7=9A=84=E6=9D=A1=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jshERP-web/src/api/api.js | 2 ++ .../src/views/financial/MoneyInList.vue | 2 ++ .../src/views/financial/MoneyOutList.vue | 2 ++ .../financial/mixins/FinancialListMixin.js | 22 +++++++++++++++++-- 4 files changed, 26 insertions(+), 2 deletions(-) diff --git a/jshERP-web/src/api/api.js b/jshERP-web/src/api/api.js index 9a1eb1d5..524940c6 100644 --- a/jshERP-web/src/api/api.js +++ b/jshERP-web/src/api/api.js @@ -107,6 +107,7 @@ const findBySelectOrgan = (params)=>postAction("/supplier/findBySelect_organ",pa //单据相关 const findBillDetailByNumber = (params)=>getAction("/depotHead/getDetailByNumber",params); const waitBillCount = (params)=>getAction("/depotHead/waitBillCount",params); +const getNeedCount = (params)=>getAction("/depotHead/getNeedCount",params); const batchAddDepotHeadAndDetail = (params)=>postAction("/depotHead/batchAddDepotHeadAndDetail",params); const findStockByDepotAndBarCode = (params)=>getAction("/depotItem/findStockByDepotAndBarCode",params); const getBatchNumberList = (params)=>getAction("/depotItem/getBatchNumberList",params); @@ -199,6 +200,7 @@ export { findBySelectOrgan, findBillDetailByNumber, waitBillCount, + getNeedCount, batchAddDepotHeadAndDetail, findStockByDepotAndBarCode, getBatchNumberList, diff --git a/jshERP-web/src/views/financial/MoneyInList.vue b/jshERP-web/src/views/financial/MoneyInList.vue index 6827d5e0..1f2bb765 100644 --- a/jshERP-web/src/views/financial/MoneyInList.vue +++ b/jshERP-web/src/views/financial/MoneyInList.vue @@ -100,6 +100,7 @@
新增 + 待收款({{waitTotal}}) 删除 审核 反审核 @@ -228,6 +229,7 @@ this.initUser() this.initPerson() this.initAccount() + this.initGetNeedCount('customer') }, methods: { } diff --git a/jshERP-web/src/views/financial/MoneyOutList.vue b/jshERP-web/src/views/financial/MoneyOutList.vue index 802dec0e..d06551d8 100644 --- a/jshERP-web/src/views/financial/MoneyOutList.vue +++ b/jshERP-web/src/views/financial/MoneyOutList.vue @@ -100,6 +100,7 @@
新增 + 待收款({{waitTotal}}) 删除 审核 反审核 @@ -228,6 +229,7 @@ this.initUser() this.initPerson() this.initAccount() + this.initGetNeedCount('vendor') }, methods: { } diff --git a/jshERP-web/src/views/financial/mixins/FinancialListMixin.js b/jshERP-web/src/views/financial/mixins/FinancialListMixin.js index fcdd56dc..a3ac839a 100644 --- a/jshERP-web/src/views/financial/mixins/FinancialListMixin.js +++ b/jshERP-web/src/views/financial/mixins/FinancialListMixin.js @@ -1,6 +1,16 @@ import { - findFinancialDetailByNumber, findBySelectSup, findBySelectCus, findBySelectOrgan, findBySelectRetail, - getUserList, getPersonByType, getAccount, getCurrentSystemConfig, getPlatformConfigByKey, findInOutItemByParam + findFinancialDetailByNumber, + findBySelectSup, + findBySelectCus, + findBySelectOrgan, + findBySelectRetail, + getUserList, + getPersonByType, + getAccount, + getCurrentSystemConfig, + getPlatformConfigByKey, + findInOutItemByParam, + getNeedCount } from '@/api/api' import { getCheckFlag, getFormatDate, getPrevMonthFormatDate } from '@/utils/util' import Vue from 'vue' @@ -15,6 +25,7 @@ export const FinancialListMixin = { isShowExcel: false, billExcelUrl: '', prefixNo: '', + waitTotal: 0, supList: [], cusList: [], organList: [], @@ -176,6 +187,13 @@ export const FinancialListMixin = { } }) }, + initGetNeedCount(supplierType) { + getNeedCount({supplierType: supplierType}).then((res)=>{ + if(res && res.code === 200) { + this.waitTotal = res.data.needCount + } + }) + }, onDateChange: function (value, dateString) { this.queryParam.beginTime=dateString[0] this.queryParam.endTime=dateString[1]