修申请单无法回显得bug

main-20240105
赵夫琳 8 months ago
parent 1dbf764bbf
commit ddc29a046d

@ -154,7 +154,6 @@
</div> </div>
</div> </div>
<!-- 申请单关联 --> <!-- 申请单关联 -->
<div class="section mt5"> <span class="line"> </span>申请单关联</div> <div class="section mt5"> <span class="line"> </span>申请单关联</div>
<RePick v-model="form.expenseApplyIds" isShowSearch :disabled="disabled" inputAlign="left" multiple titleKey="title" idKey="id" label="申请单" :name="`expenseApplyIds`" :list="expenseApplyList" isCell clearable /> <RePick v-model="form.expenseApplyIds" isShowSearch :disabled="disabled" inputAlign="left" multiple titleKey="title" idKey="id" label="申请单" :name="`expenseApplyIds`" :list="expenseApplyList" isCell clearable />
@ -280,7 +279,7 @@ export default {
} }
] ]
}, },
times:null times: null
}; };
}, },
// //
@ -676,6 +675,8 @@ export default {
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.BottomBtn.handleFilterBtnList() this.$refs.BottomBtn.handleFilterBtnList()
}) })
// this.handleInitForm(this.form.expenseApplyIds || [])
this.handleGetInvoiceList(this.form.expenseApplyIds || [])
}).finally(() => { }).finally(() => {
this.$loading(false, 'loadingSb') this.$loading(false, 'loadingSb')
}) })
@ -753,27 +754,8 @@ export default {
] ]
}) })
}, },
handleInitList() { handleGetInvoiceList(ids = []) {
console.log('......'); return new Promise(resolve => {
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 || []
})
getInvoicePage({ getInvoicePage({
pageNo: 1, pageNo: 1,
pageSize: this.$store.getters.requestPageSize, pageSize: this.$store.getters.requestPageSize,
@ -784,7 +766,7 @@ export default {
pageSize: 1000, pageSize: 1000,
billType: this.$route.query.billType === 'RCBX' ? 'RCSQ' : 'CLSQ', billType: this.$route.query.billType === 'RCBX' ? 'RCSQ' : 'CLSQ',
expenseFlag: 0, expenseFlag: 0,
ids: [], ids: ids.length ? ids.join(',') : null,
sortingFieldStr: encodeURIComponent(JSON.stringify([{ field: 'id', order: "desc" }])) sortingFieldStr: encodeURIComponent(JSON.stringify([{ field: 'id', order: "desc" }]))
}).then((res) => { }).then((res) => {
@ -824,13 +806,36 @@ export default {
disabled: item.status != 2 ? true : false disabled: item.status != 2 ? true : false
} }
}) })
console.log(this.expenseApplyList) console.log('this.expenseApplyList', this.expenseApplyList.filter(item => item.id == 179))
console.log('dkldsjlkdsjl')
resolve() resolve()
this.$loading(false) 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()
})
}) })
}, },

Loading…
Cancel
Save