From ddc29a046d2a75b488b3a12221ac94938f1a1c1a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=B5=B5=E5=A4=AB=E7=90=B3?=
<5356169+zhaofulin@user.noreply.gitee.com>
Date: Wed, 3 Apr 2024 11:45:01 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E7=94=B3=E8=AF=B7=E5=8D=95=E6=97=A0?=
=?UTF-8?q?=E6=B3=95=E5=9B=9E=E6=98=BE=E5=BE=97bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/company/claim/index.vue | 59 +++++++++++++++++--------------
1 file changed, 32 insertions(+), 27 deletions(-)
diff --git a/src/views/company/claim/index.vue b/src/views/company/claim/index.vue
index fc086ee..7304842 100644
--- a/src/views/company/claim/index.vue
+++ b/src/views/company/claim/index.vue
@@ -154,7 +154,6 @@
-
申请单关联
@@ -280,7 +279,7 @@ export default {
}
]
},
- times:null
+ times: null
};
},
// 计算属性
@@ -676,6 +675,8 @@ export default {
this.$nextTick(() => {
this.$refs.BottomBtn.handleFilterBtnList()
})
+ // this.handleInitForm(this.form.expenseApplyIds || [])
+ this.handleGetInvoiceList(this.form.expenseApplyIds || [])
}).finally(() => {
this.$loading(false, 'loadingSb')
})
@@ -753,27 +754,8 @@ export default {
]
})
},
- handleInitList() {
- console.log('......');
- this.$loading(true)
- return new Promise((resolve) => {
- listData({
- pageNo: 1,
- pageSize: this.$store.getters.requestPageSize,
- dictType: 'bs_trip_type',
- }).then((res) => {
- // 出差类型
- this.tripTypeList = res.data.list || []
- console.log('tripTypeList..', this.tripTypeList);
- })
- listData({
- pageNo: 1,
- pageSize: this.$store.getters.requestPageSize,
- dictType: 'bs_fee_type',
- }).then((res) => {
- // 出差类型
- this.feeTypeList = res.data.list || []
- })
+ handleGetInvoiceList(ids = []) {
+ return new Promise(resolve => {
getInvoicePage({
pageNo: 1,
pageSize: this.$store.getters.requestPageSize,
@@ -784,7 +766,7 @@ export default {
pageSize: 1000,
billType: this.$route.query.billType === 'RCBX' ? 'RCSQ' : 'CLSQ',
expenseFlag: 0,
- ids: [],
+ ids: ids.length ? ids.join(',') : null,
sortingFieldStr: encodeURIComponent(JSON.stringify([{ field: 'id', order: "desc" }]))
}).then((res) => {
@@ -824,13 +806,36 @@ export default {
disabled: item.status != 2 ? true : false
}
})
- console.log(this.expenseApplyList)
- console.log('dkldsjlkdsjl')
+ console.log('this.expenseApplyList', this.expenseApplyList.filter(item => item.id == 179))
resolve()
this.$loading(false)
})
})
-
+ })
+ },
+ handleInitList() {
+ this.$loading(true)
+ return new Promise((resolve) => {
+ listData({
+ pageNo: 1,
+ pageSize: this.$store.getters.requestPageSize,
+ dictType: 'bs_trip_type',
+ }).then((res) => {
+ // 出差类型
+ this.tripTypeList = res.data.list || []
+ console.log('tripTypeList..', this.tripTypeList);
+ })
+ listData({
+ pageNo: 1,
+ pageSize: this.$store.getters.requestPageSize,
+ dictType: 'bs_fee_type',
+ }).then((res) => {
+ // 出差类型
+ this.feeTypeList = res.data.list || []
+ })
+ this.handleGetInvoiceList([]).then(() => {
+ resolve()
+ })
})
},