财务页面增加待收款和待付款的条数
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 findBillDetailByNumber = (params)=>getAction("/depotHead/getDetailByNumber",params);
|
||||||
const waitBillCount = (params)=>getAction("/depotHead/waitBillCount",params);
|
const waitBillCount = (params)=>getAction("/depotHead/waitBillCount",params);
|
||||||
|
const getNeedCount = (params)=>getAction("/depotHead/getNeedCount",params);
|
||||||
const batchAddDepotHeadAndDetail = (params)=>postAction("/depotHead/batchAddDepotHeadAndDetail",params);
|
const batchAddDepotHeadAndDetail = (params)=>postAction("/depotHead/batchAddDepotHeadAndDetail",params);
|
||||||
const findStockByDepotAndBarCode = (params)=>getAction("/depotItem/findStockByDepotAndBarCode",params);
|
const findStockByDepotAndBarCode = (params)=>getAction("/depotItem/findStockByDepotAndBarCode",params);
|
||||||
const getBatchNumberList = (params)=>getAction("/depotItem/getBatchNumberList",params);
|
const getBatchNumberList = (params)=>getAction("/depotItem/getBatchNumberList",params);
|
||||||
@@ -199,6 +200,7 @@ export {
|
|||||||
findBySelectOrgan,
|
findBySelectOrgan,
|
||||||
findBillDetailByNumber,
|
findBillDetailByNumber,
|
||||||
waitBillCount,
|
waitBillCount,
|
||||||
|
getNeedCount,
|
||||||
batchAddDepotHeadAndDetail,
|
batchAddDepotHeadAndDetail,
|
||||||
findStockByDepotAndBarCode,
|
findStockByDepotAndBarCode,
|
||||||
getBatchNumberList,
|
getBatchNumberList,
|
||||||
|
|||||||
@@ -100,6 +100,7 @@
|
|||||||
<!-- 操作按钮区域 -->
|
<!-- 操作按钮区域 -->
|
||||||
<div class="table-operator" style="margin-top: 5px">
|
<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="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="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(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>
|
<a-button v-if="checkFlag && btnEnableList.indexOf(7)>-1" icon="stop" @click="batchSetStatus(0)">反审核</a-button>
|
||||||
@@ -228,6 +229,7 @@
|
|||||||
this.initUser()
|
this.initUser()
|
||||||
this.initPerson()
|
this.initPerson()
|
||||||
this.initAccount()
|
this.initAccount()
|
||||||
|
this.initGetNeedCount('customer')
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -100,6 +100,7 @@
|
|||||||
<!-- 操作按钮区域 -->
|
<!-- 操作按钮区域 -->
|
||||||
<div class="table-operator" style="margin-top: 5px">
|
<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="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="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(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>
|
<a-button v-if="checkFlag && btnEnableList.indexOf(7)>-1" icon="stop" @click="batchSetStatus(0)">反审核</a-button>
|
||||||
@@ -228,6 +229,7 @@
|
|||||||
this.initUser()
|
this.initUser()
|
||||||
this.initPerson()
|
this.initPerson()
|
||||||
this.initAccount()
|
this.initAccount()
|
||||||
|
this.initGetNeedCount('vendor')
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,16 @@
|
|||||||
import {
|
import {
|
||||||
findFinancialDetailByNumber, findBySelectSup, findBySelectCus, findBySelectOrgan, findBySelectRetail,
|
findFinancialDetailByNumber,
|
||||||
getUserList, getPersonByType, getAccount, getCurrentSystemConfig, getPlatformConfigByKey, findInOutItemByParam
|
findBySelectSup,
|
||||||
|
findBySelectCus,
|
||||||
|
findBySelectOrgan,
|
||||||
|
findBySelectRetail,
|
||||||
|
getUserList,
|
||||||
|
getPersonByType,
|
||||||
|
getAccount,
|
||||||
|
getCurrentSystemConfig,
|
||||||
|
getPlatformConfigByKey,
|
||||||
|
findInOutItemByParam,
|
||||||
|
getNeedCount
|
||||||
} from '@/api/api'
|
} from '@/api/api'
|
||||||
import { getCheckFlag, getFormatDate, getPrevMonthFormatDate } from '@/utils/util'
|
import { getCheckFlag, getFormatDate, getPrevMonthFormatDate } from '@/utils/util'
|
||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
@@ -15,6 +25,7 @@ export const FinancialListMixin = {
|
|||||||
isShowExcel: false,
|
isShowExcel: false,
|
||||||
billExcelUrl: '',
|
billExcelUrl: '',
|
||||||
prefixNo: '',
|
prefixNo: '',
|
||||||
|
waitTotal: 0,
|
||||||
supList: [],
|
supList: [],
|
||||||
cusList: [],
|
cusList: [],
|
||||||
organList: [],
|
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) {
|
onDateChange: function (value, dateString) {
|
||||||
this.queryParam.beginTime=dateString[0]
|
this.queryParam.beginTime=dateString[0]
|
||||||
this.queryParam.endTime=dateString[1]
|
this.queryParam.endTime=dateString[1]
|
||||||
|
|||||||
Reference in New Issue
Block a user