|
|
|
@ -749,14 +749,14 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="section mt5" v-if="['show'].includes(typeStr)">
|
|
|
|
|
<!-- <div class="section mt5" v-if="['show'].includes(typeStr)">
|
|
|
|
|
<span class="line"> </span>审批流程
|
|
|
|
|
</div>
|
|
|
|
|
<ApprovalProcess
|
|
|
|
|
v-if="['show'].includes(typeStr)"
|
|
|
|
|
:processInstanceId="form.processInstanceId"
|
|
|
|
|
@onSetId="handleSetAccessId"
|
|
|
|
|
/>
|
|
|
|
|
/> -->
|
|
|
|
|
|
|
|
|
|
<!-- 申请单关联 -->
|
|
|
|
|
<div class="section mt5"><span class="line"> </span>申请单关联</div>
|
|
|
|
@ -1268,26 +1268,6 @@ export default {
|
|
|
|
|
handleConfirmIe(arr, index, nIndex) {
|
|
|
|
|
console.log(arr)
|
|
|
|
|
// let nameArr = ((this.ieList.filter(item => arr.includes(item.id)) || []).map(item => item.invoiceCode)).join('、')
|
|
|
|
|
/* this.$set(
|
|
|
|
|
this.form.expenseClaimTrips[index].expenseClaimDetails[nIndex],
|
|
|
|
|
'invoiceIds',
|
|
|
|
|
arr
|
|
|
|
|
)
|
|
|
|
|
this.$set(
|
|
|
|
|
this.form.expenseClaimTrips[index].expenseClaimDetails[nIndex],
|
|
|
|
|
'show',
|
|
|
|
|
false
|
|
|
|
|
)
|
|
|
|
|
this.$set(
|
|
|
|
|
this.form.expenseClaimTrips[index].expenseClaimDetails[nIndex],
|
|
|
|
|
'invoiceCount',
|
|
|
|
|
this.totalCount(arr)
|
|
|
|
|
)
|
|
|
|
|
this.$set(
|
|
|
|
|
this.form.expenseClaimTrips[index].expenseClaimDetails[nIndex],
|
|
|
|
|
'invoiceName',
|
|
|
|
|
'已关联发票'
|
|
|
|
|
) */
|
|
|
|
|
this.$set(
|
|
|
|
|
this.form.expenseClaimTrips[index].expenseClaimDetails[nIndex],
|
|
|
|
|
'invoiceIds',
|
|
|
|
@ -1314,16 +1294,6 @@ export default {
|
|
|
|
|
// let nameArr = ((this.ieList.filter(item => arr.includes(item.id)) || []).map(item => item.invoiceCode)).join('、')
|
|
|
|
|
this.$set(this.form.expenseClaimDetails[nIndex], 'invoiceIds', arr)
|
|
|
|
|
this.$set(this.form.expenseClaimDetails[nIndex], 'show', false)
|
|
|
|
|
/* this.$set(
|
|
|
|
|
this.form.expenseClaimDetails[nIndex],
|
|
|
|
|
'invoiceCount',
|
|
|
|
|
this.totalCount(arr)
|
|
|
|
|
)
|
|
|
|
|
this.$set(
|
|
|
|
|
this.form.expenseClaimDetails[nIndex],
|
|
|
|
|
'invoiceName',
|
|
|
|
|
'已关联发票'
|
|
|
|
|
) */
|
|
|
|
|
this.$set(
|
|
|
|
|
this.form.expenseClaimDetails[nIndex],
|
|
|
|
|
'invoiceCount',
|
|
|
|
@ -1432,6 +1402,7 @@ export default {
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
this.$refs.BottomBtn.handleFilterBtnList()
|
|
|
|
|
})
|
|
|
|
|
this.handleGetInvoiceList(this.form.expenseApplyIds || [])
|
|
|
|
|
})
|
|
|
|
|
.finally(() => {
|
|
|
|
|
this.$loading(false, 'loadingSb')
|
|
|
|
@ -1457,6 +1428,7 @@ export default {
|
|
|
|
|
this.$set(this.form.expenseClaimTrips[index], 'isOpen', false)
|
|
|
|
|
},
|
|
|
|
|
handleConfirmPo(arr, index) {
|
|
|
|
|
console.log(arr, 1431)
|
|
|
|
|
let nameArr =
|
|
|
|
|
(this.form.expenseClaimTrips[index].tripPartnersName &&
|
|
|
|
|
this.form.expenseClaimTrips[index].tripPartnersName.split('、')) ||
|
|
|
|
@ -1477,7 +1449,6 @@ export default {
|
|
|
|
|
this.$set(this.form.expenseClaimTrips[index], 'isOpen', false)
|
|
|
|
|
},
|
|
|
|
|
handlePoShow(index) {
|
|
|
|
|
// if (this.disabled) return
|
|
|
|
|
if (this.form.expenseClaimTrips[index].tripPartners.length) {
|
|
|
|
|
this.$set(this.form.expenseClaimTrips[index], 'type', 0)
|
|
|
|
|
this.$set(this.form.expenseClaimTrips[index], 'isOpen', true)
|
|
|
|
@ -1522,27 +1493,8 @@ export default {
|
|
|
|
|
],
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
handleInitList() {
|
|
|
|
|
console.log('......')
|
|
|
|
|
this.$loading(true)
|
|
|
|
|
handleGetInvoiceList(ids = []) {
|
|
|
|
|
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({
|
|
|
|
|
pageNo: 1,
|
|
|
|
|
pageSize: this.$store.getters.requestPageSize,
|
|
|
|
@ -1553,7 +1505,11 @@ export default {
|
|
|
|
|
pageSize: 1000,
|
|
|
|
|
billType: this.$route.query.billType === 'RCBX' ? 'RCSQ' : 'CLSQ',
|
|
|
|
|
expenseFlag: 0,
|
|
|
|
|
ids: [],
|
|
|
|
|
// ids: [],
|
|
|
|
|
// sortingFieldStr: encodeURIComponent(
|
|
|
|
|
// JSON.stringify([{ field: 'id', order: 'desc' }])
|
|
|
|
|
// ),
|
|
|
|
|
ids: ids.length ? ids.join(',') : null,
|
|
|
|
|
sortingFieldStr: encodeURIComponent(
|
|
|
|
|
JSON.stringify([{ field: 'id', order: 'desc' }])
|
|
|
|
|
),
|
|
|
|
@ -1615,14 +1571,41 @@ 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()
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
handleDateShow(index, obj) {
|
|
|
|
|
if (this.disabled) {
|
|
|
|
|
return
|
|
|
|
|