From ad785d3e8c2ed8c19f2e66b885b07d4406a0f392 Mon Sep 17 00:00:00 2001 From: jiangweiguo <1578967617@qq.com> Date: Tue, 20 Aug 2024 16:54:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=A1=B9=E7=9B=AE=E8=B5=84?= =?UTF-8?q?=E9=87=91=E6=9D=A5=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/company/claim/index.vue | 38 +++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/src/views/company/claim/index.vue b/src/views/company/claim/index.vue index 1f5f966..a3f19e2 100644 --- a/src/views/company/claim/index.vue +++ b/src/views/company/claim/index.vue @@ -77,6 +77,15 @@ input-align="right" placeholder="请输入" /> + + + + @@ -851,6 +869,7 @@ export default { mounted() {}, data() { return { + showPicker: false, areaTree: [], indexOne: 1, indexTwo: 1, @@ -878,7 +897,9 @@ export default { maxDate: new Date('2030/01/01'), defaultDate: new Date(), dateShow: false, + fundingSourceLabel: '', form: { + fundingSource: null, companyName: window.localStorage.getItem('cn'), //公司名称 nickname: JSON.parse( window.localStorage.getItem('userInfo') || { dept: {} } @@ -943,6 +964,15 @@ export default { // 计算属性 // bs_fee_type computed: { + fundingSourceList() { + const list = this.getDictDatas('funding_source')?.map((e) => { + return { + text: e.label, + value: e.value + } + }) + return list || [] + }, allTripPartners() { let arr = [] this.form.expenseClaimTrips.forEach((v) => { @@ -981,6 +1011,11 @@ export default { watch: {}, // 方法集合 methods: { + selectFundingSource(val) { + this.form.fundingSource = val.value + this.fundingSourceLabel = val.text + this.showPicker = false + }, // 新增发票按钮 addInvoice() { this.$router.push({ @@ -1395,6 +1430,9 @@ export default { } ) } + this.fundingSourceLabel = this.fundingSourceList.find( + (e) => e.value == this.form.fundingSource + ).text if (Array.isArray(this.form.expenseClaimTrips)) { this.form.expenseClaimTrips.forEach((n) => { n.expenseClaimDetails.forEach((z) => {