|
|
|
@ -5,7 +5,7 @@
|
|
|
|
|
<div class="section"> <span class="line"> </span> 基本信息</div>
|
|
|
|
|
<div class="trips-box">
|
|
|
|
|
<div class="item-box">
|
|
|
|
|
<!-- <van-field v-model="form.applyNo" disabled label="单号" clear-trigger="always" input-align="right" /> -->
|
|
|
|
|
<van-field v-model="form.claimNo" disabled label="单号" clear-trigger="always" input-align="right" />
|
|
|
|
|
<van-field v-model="cn" disabled label="公司名称" clear-trigger="always" input-align="right" />
|
|
|
|
|
<van-field v-model="userInfo.nickname" disabled label="申请人" clear-trigger="always" input-align="right" maxlength="50" placeholder="请输入" />
|
|
|
|
|
<van-field v-model="userInfo.dept.name" disabled label="申请部门" clear-trigger="always" input-align="right" maxlength="50" placeholder="请输入" />
|
|
|
|
@ -86,7 +86,7 @@
|
|
|
|
|
<van-field disabled :class="nitem.invoiceName ? 'actived-disabled tag-blue':'tag-blue'" v-model="nitem.invoiceName" name="reason" autosize rows="2" label="关联发票" clear-trigger="always" input-align="right" placeholder="请关联" />
|
|
|
|
|
</div>
|
|
|
|
|
<!--关联发票 -->
|
|
|
|
|
<ConnectInvoice :list="nitem.ieList" :invoiceIds="nitem.invoiceIds" @onCancel="nitem.show = false" :isOpen="nitem.show" @onConfirm="(arr)=>{handleConfirmIe(arr,index,nIndex)}" />
|
|
|
|
|
<ConnectInvoice :list="nitem.ieList" :temClaimNo="form.claimNo" :invoiceIds="nitem.invoiceIds" @onCancel="nitem.show = false" :isOpen="nitem.show" @onConfirm="(arr)=>{handleConfirmIe(arr,index,nIndex)}" />
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="add-box" style="margin-bottom:0.3rem" v-if="['edit','add'].includes(typeStr)">
|
|
|
|
@ -550,6 +550,7 @@ export default {
|
|
|
|
|
// let obj = this.form.expenseClaimTrips[index].expenseClaimDetails[nIndex]
|
|
|
|
|
// this.$set(this.form.expenseClaimTrips[index].expenseClaimDetails[nIndex], 'ieList', arr)
|
|
|
|
|
this.$set(this.form.expenseClaimTrips[index].expenseClaimDetails[nIndex], 'show', true)
|
|
|
|
|
console.log('form......', this.form);
|
|
|
|
|
// this.handleFilterList(obj.invoiceIds || {}).then((arr) => {
|
|
|
|
|
//
|
|
|
|
|
// })
|
|
|
|
@ -638,19 +639,22 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
// this.form.expenseClaimTrips.forEach(n => {
|
|
|
|
|
// n.expenseClaimDetails.forEach(z => {
|
|
|
|
|
if (Array.isArray(this.form.expenseClaimTrips)) {
|
|
|
|
|
this.form.expenseClaimTrips.forEach(n => {
|
|
|
|
|
n.expenseClaimDetails.forEach(z => {
|
|
|
|
|
// let nameArr = ((this.ieList.filter(item => (z.invoiceIds || []).includes(item.id)) || []).map(item => item.invoiceCode)).join('、')
|
|
|
|
|
// this.$set(z, 'show', false)
|
|
|
|
|
this.$set(z, 'show', false)
|
|
|
|
|
// this.$set(z, 'invoiceName', nameArr)
|
|
|
|
|
// })
|
|
|
|
|
// })
|
|
|
|
|
// this.form.expenseClaimDetails.forEach(z => {
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
if (Array.isArray(this.form.expenseClaimDetails)) {
|
|
|
|
|
this.form.expenseClaimDetails.forEach(z => {
|
|
|
|
|
// let nameArr = ((this.ieList.filter(item => (z.invoiceIds || []).includes(item.id)) || []).map(item => item.invoiceCode)).join('、')
|
|
|
|
|
// this.$set(z, 'show', false)
|
|
|
|
|
this.$set(z, 'show', false)
|
|
|
|
|
// this.$set(z, 'invoiceName', nameArr)
|
|
|
|
|
// })
|
|
|
|
|
console.log('我看了一下累了..', this.form);
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
this.fileList = res.data.files || []
|
|
|
|
|
this.isAuthorised = res.data.isAuthorised
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|