财务页面增加待收款和待付款的条数
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -100,6 +100,7 @@
|
||||
<!-- 操作按钮区域 -->
|
||||
<div class="table-operator" style="margin-top: 5px">
|
||||
<a-button v-if="btnEnableList.indexOf(1)>-1" @click="myHandleAdd" type="primary" icon="plus">新增</a-button>
|
||||
<a-button v-if="btnEnableList.indexOf(1)>-1" @click="handleWaitBill" icon="link">待收款({{waitTotal}})</a-button>
|
||||
<a-button v-if="btnEnableList.indexOf(1)>-1" icon="delete" @click="batchDel">删除</a-button>
|
||||
<a-button v-if="checkFlag && btnEnableList.indexOf(2)>-1" icon="check" @click="batchSetStatus(1)">审核</a-button>
|
||||
<a-button v-if="checkFlag && btnEnableList.indexOf(7)>-1" icon="stop" @click="batchSetStatus(0)">反审核</a-button>
|
||||
@@ -228,6 +229,7 @@
|
||||
this.initUser()
|
||||
this.initPerson()
|
||||
this.initAccount()
|
||||
this.initGetNeedCount('customer')
|
||||
},
|
||||
methods: {
|
||||
}
|
||||
|
||||
@@ -100,6 +100,7 @@
|
||||
<!-- 操作按钮区域 -->
|
||||
<div class="table-operator" style="margin-top: 5px">
|
||||
<a-button v-if="btnEnableList.indexOf(1)>-1" @click="myHandleAdd" type="primary" icon="plus">新增</a-button>
|
||||
<a-button v-if="btnEnableList.indexOf(1)>-1" @click="handleWaitBill" icon="link">待收款({{waitTotal}})</a-button>
|
||||
<a-button v-if="btnEnableList.indexOf(1)>-1" icon="delete" @click="batchDel">删除</a-button>
|
||||
<a-button v-if="checkFlag && btnEnableList.indexOf(2)>-1" icon="check" @click="batchSetStatus(1)">审核</a-button>
|
||||
<a-button v-if="checkFlag && btnEnableList.indexOf(7)>-1" icon="stop" @click="batchSetStatus(0)">反审核</a-button>
|
||||
@@ -228,6 +229,7 @@
|
||||
this.initUser()
|
||||
this.initPerson()
|
||||
this.initAccount()
|
||||
this.initGetNeedCount('vendor')
|
||||
},
|
||||
methods: {
|
||||
}
|
||||
|
||||
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user