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