|
@@ -150,6 +150,15 @@
|
|
|
</a-row>
|
|
|
</a-form>
|
|
|
</div>
|
|
|
+ <!-- alert -->
|
|
|
+ <a-alert type="info" v-if="countData" style="margin-bottom:10px">
|
|
|
+ <div slot="message">
|
|
|
+ <div>
|
|
|
+ 总单数:<strong>{{ countData&&(countData.detailNum || countData.detailNum==0) ? countData.detailNum : '--' }}</strong>;
|
|
|
+ 总费用金额:<strong>{{ countData&&(countData.expense || countData.expense==0) ? countData.expense : '--' }}</strong>;
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </a-alert>
|
|
|
<!-- 列表 -->
|
|
|
<s-table
|
|
|
class="sTable fixPagination"
|
|
@@ -180,7 +189,7 @@ import department from '../expenseReimbursement/department.js'
|
|
|
import employee from '../expenseReimbursement/employee.js'
|
|
|
import custList from '@/views/common/custList.vue'
|
|
|
import supplier from '@/views/common/supplier.js'
|
|
|
-import { expenseAccountDetailList, expenseAcctDetailReport } from '@/api/expenseManagement'
|
|
|
+import { expenseAccountDetailList, expenseAcctDetailReport, expenseAccountDetailCount } from '@/api/expenseManagement'
|
|
|
import { hdExportExcel } from '@/libs/exportExcel'
|
|
|
moment.locale('zh-cn')
|
|
|
export default {
|
|
@@ -199,6 +208,7 @@ export default {
|
|
|
moment(getDate.getCurrMonthDays().starttime, 'YYYY-MM-DD'),
|
|
|
moment(getDate.getCurrMonthDays().endtime, 'YYYY-MM-DD')
|
|
|
],
|
|
|
+ countData: null,
|
|
|
// 查询参数
|
|
|
queryParam: {
|
|
|
expenseDate: undefined, // 月份
|
|
@@ -231,6 +241,8 @@ export default {
|
|
|
if (params.expenseDate) {
|
|
|
params.expenseDate = params.expenseDate + '-01'
|
|
|
}
|
|
|
+ // 统计
|
|
|
+ this.getDetailCount(params)
|
|
|
return expenseAccountDetailList(params).then(res => {
|
|
|
let data
|
|
|
if (res.status == 200) {
|
|
@@ -301,6 +313,11 @@ export default {
|
|
|
this.queryParam.childSplitObjSn = undefined
|
|
|
this.$refs.custList.dealerName = []
|
|
|
},
|
|
|
+ getDetailCount (params) {
|
|
|
+ expenseAccountDetailCount(params).then(res => {
|
|
|
+ this.countData = res.data || null
|
|
|
+ })
|
|
|
+ },
|
|
|
// 导出
|
|
|
handleExport () {
|
|
|
const _this = this
|