lilei 3 年之前
父節點
當前提交
ba375b0eb7

+ 9 - 0
src/api/expenseManagement.js

@@ -158,6 +158,15 @@ export const expenseAccountDetailList = (params) => {
     method: 'post'
   })
 }
+// 费用报销明细统计
+export const expenseAccountDetailCount = (params) => {
+  const url = `/report/expenseAcctDetailReport/queryDetailReport/count`
+  return axios({
+    url: url,
+    data: params,
+    method: 'post'
+  })
+}
 
 //  费用报销明细单 导出
 export const expenseAcctDetailReport = (params) => {

+ 18 - 1
src/views/expenseManagement/expenseReimbursementDetail/list.vue

@@ -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

+ 1 - 1
src/views/salesManagement/salesQuery/queryPart.vue

@@ -129,7 +129,7 @@ export default {
       loadData: parameter => {
         this.disabled = true
         this.queryParam.dealerSn = this.buyerSn
-        return queryStockProductPage(Object.assign(parameter, this.queryParam, { onlineFalg: '1' })).then(res => {
+        return queryStockProductPage(Object.assign(parameter, this.queryParam, { onlineFalg: '1', pricingState: 'PRICED' })).then(res => {
           let data
           if (res.status == 200) {
             data = res.data