|
|
|
@ -116,6 +116,88 @@
|
|
|
|
|
isCell
|
|
|
|
|
clearable
|
|
|
|
|
/>
|
|
|
|
|
<!-- <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="请输入"
|
|
|
|
|
/>
|
|
|
|
|
<van-field
|
|
|
|
|
v-model="form.projectName"
|
|
|
|
|
:disabled="disabled"
|
|
|
|
|
label="项目名称"
|
|
|
|
|
required
|
|
|
|
|
:rules="[{ required: true, message: '请输入' }]"
|
|
|
|
|
clear-trigger="always"
|
|
|
|
|
input-align="right"
|
|
|
|
|
placeholder="请输入"
|
|
|
|
|
/>
|
|
|
|
|
<van-field
|
|
|
|
|
v-model="form.reason"
|
|
|
|
|
:disabled="disabled"
|
|
|
|
|
name="reason"
|
|
|
|
|
autosize
|
|
|
|
|
rows="2"
|
|
|
|
|
label="报销事由"
|
|
|
|
|
required
|
|
|
|
|
:rules="[{ required: true, message: '请输入' }]"
|
|
|
|
|
clear-trigger="always"
|
|
|
|
|
input-align="right"
|
|
|
|
|
placeholder="请输入"
|
|
|
|
|
type="textarea"
|
|
|
|
|
/>
|
|
|
|
|
<van-field
|
|
|
|
|
v-model="form.remark"
|
|
|
|
|
:disabled="disabled"
|
|
|
|
|
name="remark"
|
|
|
|
|
autosize
|
|
|
|
|
rows="2"
|
|
|
|
|
label="备注信息"
|
|
|
|
|
clear-trigger="always"
|
|
|
|
|
input-align="right"
|
|
|
|
|
placeholder="请输入"
|
|
|
|
|
type="textarea"
|
|
|
|
|
/>
|
|
|
|
|
<RePick
|
|
|
|
|
v-model="form.costDeptId"
|
|
|
|
|
:disabled="disabled"
|
|
|
|
|
label="费用归属部门"
|
|
|
|
|
:name="`costDeptId`"
|
|
|
|
|
:list="userDeptTree"
|
|
|
|
|
isRequrie
|
|
|
|
|
isCascader
|
|
|
|
|
isShowSearch
|
|
|
|
|
title="费用归属部门"
|
|
|
|
|
titleKey="name"
|
|
|
|
|
isCell
|
|
|
|
|
clearable
|
|
|
|
|
/> -->
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="section mt5"><span class="line"> </span>附件</div>
|
|
|
|
@ -383,17 +465,43 @@
|
|
|
|
|
label="关联发票"
|
|
|
|
|
clear-trigger="always"
|
|
|
|
|
input-align="right"
|
|
|
|
|
placeholder="请关联"
|
|
|
|
|
:placeholder="
|
|
|
|
|
nitem.invoiceCount > 0 ? '已关联发票' : '请关联'
|
|
|
|
|
"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- <div @click="handleShowIe('1', index, nIndex)">
|
|
|
|
|
<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
|
|
|
|
|
:disabled="disabled"
|
|
|
|
|
:list="nitem.ieList"
|
|
|
|
|
:temClaimNo="form.claimNo"
|
|
|
|
|
:invoiceIds="nitem.invoiceIds"
|
|
|
|
|
@onCancel="nitem.show = false"
|
|
|
|
|
:isOpen="nitem.show"
|
|
|
|
|
@onConfirm="handleConfirmIe($event, index, nIndex)"
|
|
|
|
|
@onConfirm="
|
|
|
|
|
(arr) => {
|
|
|
|
|
handleConfirmIe(arr, index, nIndex)
|
|
|
|
|
}
|
|
|
|
|
"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
@ -547,7 +655,7 @@
|
|
|
|
|
type="textarea"
|
|
|
|
|
/>
|
|
|
|
|
<div @click="handleShowIe1(nIndex)">
|
|
|
|
|
<van-field
|
|
|
|
|
<!-- <van-field
|
|
|
|
|
disabled
|
|
|
|
|
:class="
|
|
|
|
|
nitem.invoiceName ? 'actived-disabled tag-blue' : 'tag-blue'
|
|
|
|
@ -562,8 +670,46 @@
|
|
|
|
|
placeholder="请关联"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
<ConnectInvoice
|
|
|
|
|
:list="nitem.ieList"
|
|
|
|
|
:invoiceIds="nitem.invoiceIds"
|
|
|
|
|
@onCancel="nitem.show = false"
|
|
|
|
|
:isOpen="nitem.show"
|
|
|
|
|
@onConfirm="
|
|
|
|
|
(arr) => {
|
|
|
|
|
handleConfirmIe1(arr, nIndex)
|
|
|
|
|
}
|
|
|
|
|
"
|
|
|
|
|
/>
|
|
|
|
|
<div
|
|
|
|
|
style="color: red; margin-top: 10px"
|
|
|
|
|
v-if="
|
|
|
|
|
nitem.amount > handleCountAmount(form.expenseClaimDetails)
|
|
|
|
|
"
|
|
|
|
|
>
|
|
|
|
|
费用明细超出费控设置金额,费控设置金额为:{{
|
|
|
|
|
handleCountAmount(form.expenseClaimDetails)
|
|
|
|
|
}} -->
|
|
|
|
|
<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="
|
|
|
|
|
nitem.invoiceCount > 0 ? '已关联发票' : '请关联'
|
|
|
|
|
"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
<!--关联发票 -->
|
|
|
|
|
<ConnectInvoice
|
|
|
|
|
:disabled="disabled"
|
|
|
|
|
:list="nitem.ieList"
|
|
|
|
|
:invoiceIds="nitem.invoiceIds"
|
|
|
|
|
@onCancel="nitem.show = false"
|
|
|
|
@ -602,7 +748,6 @@
|
|
|
|
|
>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- 日常费用列表结束 -->
|
|
|
|
|
|
|
|
|
|
<div class="section mt5" v-if="['show'].includes(typeStr)">
|
|
|
|
|
<span class="line"> </span>审批流程
|
|
|
|
@ -612,6 +757,7 @@
|
|
|
|
|
:processInstanceId="form.processInstanceId"
|
|
|
|
|
@onSetId="handleSetAccessId"
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
<!-- 申请单关联 -->
|
|
|
|
|
<div class="section mt5"><span class="line"> </span>申请单关联</div>
|
|
|
|
|
<RePick
|
|
|
|
@ -794,6 +940,7 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
times: null,
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
// 计算属性
|
|
|
|
@ -1091,12 +1238,13 @@ export default {
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
handleShowIe(type, index, nIndex) {
|
|
|
|
|
if (this.disabled) return
|
|
|
|
|
// if (this.disabled) return
|
|
|
|
|
// this.indexOne = index
|
|
|
|
|
// this.indexTwo = nIndex
|
|
|
|
|
// this.claimType = type
|
|
|
|
|
// 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',
|
|
|
|
@ -1108,7 +1256,7 @@ export default {
|
|
|
|
|
// })
|
|
|
|
|
},
|
|
|
|
|
handleShowIe1(nIndex) {
|
|
|
|
|
if (this.disabled) return
|
|
|
|
|
// if (this.disabled) return
|
|
|
|
|
// let obj = this.form.expenseClaimDetails[nIndex]
|
|
|
|
|
|
|
|
|
|
// this.$set(this.form.expenseClaimDetails[nIndex], 'ieList', arr)
|
|
|
|
@ -1118,7 +1266,7 @@ export default {
|
|
|
|
|
// })
|
|
|
|
|
},
|
|
|
|
|
handleConfirmIe(arr, index, nIndex) {
|
|
|
|
|
console.log(arr, 'nIndex', 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],
|
|
|
|
@ -1162,6 +1310,7 @@ export default {
|
|
|
|
|
)
|
|
|
|
|
},
|
|
|
|
|
handleConfirmIe1(arr, nIndex) {
|
|
|
|
|
console.log(arr)
|
|
|
|
|
// 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)
|
|
|
|
@ -1466,6 +1615,8 @@ export default {
|
|
|
|
|
disabled: item.status != 2 ? true : false,
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
console.log(this.expenseApplyList)
|
|
|
|
|
console.log('dkldsjlkdsjl')
|
|
|
|
|
resolve()
|
|
|
|
|
this.$loading(false)
|
|
|
|
|
})
|
|
|
|
|