Compare commits

..

3 Commits

Author SHA1 Message Date
赵夫琳 1dbf764bbf 修复同行人无法关联的bug 8 months ago
赵夫琳 a713686e0e 1 8 months ago
赵夫琳 dd34f0ab1c 1 8 months ago

@ -13,4 +13,4 @@ VUE_APP_API= '/'
# 请求环境 # 请求环境
# 方楠 # 方楠
VUE_APP_BASE_API = 'https://2537287x0n.imdo.co' VUE_APP_BASE_API = 'http://60.204.223.58:8080'

@ -7,7 +7,8 @@ VUE_APP_TITLE = 链友融财务数字一体化信息系统
# 链友融财务数字一体化信息系统/开发环境 # 链友融财务数字一体化信息系统/开发环境
# VUE_APP_BASE_API = 'https://2537287x0n.imdo.co' # VUE_APP_BASE_API = 'https://2537287x0n.imdo.co'
# VUE_APP_BASE_API = 'https://351009q0x9.oicp.vip' # VUE_APP_BASE_API = 'https://351009q0x9.oicp.vip'
VUE_APP_BASE_API = 'https://60.204.223.58:8080' # VUE_APP_BASE_API = 'https://60.204.223.58:8080'
VUE_APP_BASE_API = 'http://60.204.223.58:8080'
# 路由懒加载 # 路由懒加载
VUE_CLI_BABEL_TRANSPILE_MODULES = true VUE_CLI_BABEL_TRANSPILE_MODULES = true

@ -11,7 +11,7 @@
<div>姓名 {{item.nickname}}</div> <div>姓名 {{item.nickname}}</div>
<div>电话 {{item.mobile}}</div> <div>电话 {{item.mobile}}</div>
</div> </div>
<div class="new-rt" v-if="!disabled" @click="handleNewDel(index)"> <div class="new-rt" v-if="!disabled" @click="handleNewDel(index)">
<van-icon name="delete-o" size="20" /> <van-icon name="delete-o" size="20" />
</div> </div>
</div> </div>
@ -157,9 +157,9 @@ export default {
arr.push(z) arr.push(z)
}) })
}) })
if (this.tripPartners.length) { // if (this.tripPartners.length) {
arr = arr.concat(this.tripPartners) // arr = arr.concat(this.tripPartners)
} // }
let newArr = arr.concat(this.allTripPartners) let newArr = arr.concat(this.allTripPartners)
let repeatId = this.getisRepeat(newArr) let repeatId = this.getisRepeat(newArr)
if (repeatId) { if (repeatId) {

@ -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)

Loading…
Cancel
Save