|
|
@ -573,16 +573,16 @@ 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.expenseClaimTrips[index].expenseClaimDetails[nIndex], 'invoiceIds', arr)
|
|
|
|
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], 'show', false)
|
|
|
|
this.$set(this.form.expenseClaimTrips[index].expenseClaimDetails[nIndex], 'invoiceCount', this.totalCount(arr)==0?'':this.totalCount(arr))
|
|
|
|
this.$set(this.form.expenseClaimTrips[index].expenseClaimDetails[nIndex], 'invoiceCount', this.totalCount(arr) == 0 ? '' : this.totalCount(arr))
|
|
|
|
this.$set(this.form.expenseClaimTrips[index].expenseClaimDetails[nIndex], 'invoiceName', this.totalCount(arr)==0?'请关联':'已关联发票')
|
|
|
|
this.$set(this.form.expenseClaimTrips[index].expenseClaimDetails[nIndex], 'invoiceName', this.totalCount(arr) == 0 ? '请关联' : '已关联发票')
|
|
|
|
},
|
|
|
|
},
|
|
|
|
handleConfirmIe1(arr, nIndex) {
|
|
|
|
handleConfirmIe1(arr, 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.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)==0?'':this.totalCount(arr))
|
|
|
|
this.$set(this.form.expenseClaimDetails[nIndex], 'invoiceCount', this.totalCount(arr) == 0 ? '' : this.totalCount(arr))
|
|
|
|
this.$set(this.form.expenseClaimDetails[nIndex], 'invoiceName', this.totalCount(arr)==0?'请关联':'已关联发票')
|
|
|
|
this.$set(this.form.expenseClaimDetails[nIndex], 'invoiceName', this.totalCount(arr) == 0 ? '请关联' : '已关联发票')
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
totalCount(obj) {
|
|
|
|
totalCount(obj) {
|
|
|
@ -709,15 +709,12 @@ 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)
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
|
|
|
|
|
|
|
|
this.$fm('请先添加同行人!')
|
|
|
|
this.$fm('请先添加同行人!')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
handlePoCancel(index) {
|
|
|
|
handlePoCancel(index) {
|
|
|
|
this.$set(this.form.expenseClaimTrips[index], 'isOpen', false)
|
|
|
|
this.$set(this.form.expenseClaimTrips[index], 'isOpen', false)
|
|
|
|