diff --git a/.env.production b/.env.production index 518a9ba..908e604 100644 --- a/.env.production +++ b/.env.production @@ -14,3 +14,4 @@ VUE_APP_API= '/' # 方楠 VUE_APP_BASE_API = 'http://expense-h5.lyrfp.com' +# VUE_APP_BASE_API = 'http://60.204.223.58:8080' diff --git a/.env.test b/.env.test index 39969ed..54c48a2 100644 --- a/.env.test +++ b/.env.test @@ -7,7 +7,8 @@ VUE_APP_TITLE = 链友融财务数字一体化信息系统 # 链友融财务数字一体化信息系统/开发环境 # VUE_APP_BASE_API = 'https://2537287x0n.imdo.co' # 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 diff --git a/src/components/FollowPeoPle/index.vue b/src/components/FollowPeoPle/index.vue index 0d8c5e2..d637a2f 100644 --- a/src/components/FollowPeoPle/index.vue +++ b/src/components/FollowPeoPle/index.vue @@ -1,49 +1,103 @@ diff --git a/src/views/company/claim/index.vue b/src/views/company/claim/index.vue index 9302f8f..bfb46ec 100644 --- a/src/views/company/claim/index.vue +++ b/src/views/company/claim/index.vue @@ -749,14 +749,14 @@ -
+
申请单关联
@@ -1268,26 +1268,6 @@ export default { handleConfirmIe(arr, index, 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], - '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.form.expenseClaimTrips[index].expenseClaimDetails[nIndex], 'invoiceIds', @@ -1314,16 +1294,6 @@ export default { // 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) - /* this.$set( - this.form.expenseClaimDetails[nIndex], - 'invoiceCount', - this.totalCount(arr) - ) - this.$set( - this.form.expenseClaimDetails[nIndex], - 'invoiceName', - '已关联发票' - ) */ this.$set( this.form.expenseClaimDetails[nIndex], 'invoiceCount', @@ -1432,6 +1402,7 @@ export default { this.$nextTick(() => { this.$refs.BottomBtn.handleFilterBtnList() }) + this.handleGetInvoiceList(this.form.expenseApplyIds || []) }) .finally(() => { this.$loading(false, 'loadingSb') @@ -1457,6 +1428,7 @@ export default { this.$set(this.form.expenseClaimTrips[index], 'isOpen', false) }, handleConfirmPo(arr, index) { + console.log(arr, 1431) let nameArr = (this.form.expenseClaimTrips[index].tripPartnersName && this.form.expenseClaimTrips[index].tripPartnersName.split('、')) || @@ -1477,7 +1449,6 @@ export default { this.$set(this.form.expenseClaimTrips[index], 'isOpen', false) }, handlePoShow(index) { - // if (this.disabled) return if (this.form.expenseClaimTrips[index].tripPartners.length) { this.$set(this.form.expenseClaimTrips[index], 'type', 0) this.$set(this.form.expenseClaimTrips[index], 'isOpen', true) @@ -1522,27 +1493,8 @@ export default { ], }) }, - handleInitList() { - console.log('......') - this.$loading(true) + handleGetInvoiceList(ids = []) { 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({ pageNo: 1, pageSize: this.$store.getters.requestPageSize, @@ -1553,7 +1505,11 @@ export default { pageSize: 1000, billType: this.$route.query.billType === 'RCBX' ? 'RCSQ' : 'CLSQ', expenseFlag: 0, - ids: [], + // ids: [], + // sortingFieldStr: encodeURIComponent( + // JSON.stringify([{ field: 'id', order: 'desc' }]) + // ), + ids: ids.length ? ids.join(',') : null, sortingFieldStr: encodeURIComponent( JSON.stringify([{ field: 'id', order: 'desc' }]) ), @@ -1615,14 +1571,41 @@ export default { disabled: item.status != 2 ? true : false, } }) - console.log(this.expenseApplyList) - console.log('dkldsjlkdsjl') + console.log( + 'this.expenseApplyList', + this.expenseApplyList.filter((item) => item.id == 179) + ) resolve() 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) { if (this.disabled) { return diff --git a/src/views/company/trips/index.vue b/src/views/company/trips/index.vue index d929f71..c36739b 100644 --- a/src/views/company/trips/index.vue +++ b/src/views/company/trips/index.vue @@ -595,6 +595,7 @@ export default { this.$set(this.form.expenseApplyTrips[index], 'isOpen', false) }, handleConfirmPo(arr, index) { + console.log(arr, 598) let nameArr = (this.form.expenseApplyTrips[index].tripPartnersName && this.form.expenseApplyTrips[index].tripPartnersName.split('、')) ||