From b71ef4ca57edff76557df0dbd8fb25f1cc489a9f Mon Sep 17 00:00:00 2001 From: liaoxinyu Date: Thu, 13 Nov 2025 14:12:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=94=B3=E8=AF=B7=E5=BC=80?= =?UTF-8?q?=E7=A5=A8=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manifest.json | 1 + pages/Invoicing/Invoicing.vue | 19 ++++++++++++------- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/manifest.json b/manifest.json index 6bb691c..c982664 100644 --- a/manifest.json +++ b/manifest.json @@ -5,6 +5,7 @@ "versionName" : "1.0.0", "versionCode" : "100", "transformPx" : false, + "sassImplementationName": "node-sass", /* 5+App特有相关 */ "app-plus" : { "usingComponents" : true, diff --git a/pages/Invoicing/Invoicing.vue b/pages/Invoicing/Invoicing.vue index 6b83da5..7ab4856 100644 --- a/pages/Invoicing/Invoicing.vue +++ b/pages/Invoicing/Invoicing.vue @@ -38,7 +38,7 @@ - + @@ -259,7 +259,7 @@ }, onLoad() { this.dropdown() - this.Obtain() + // this.Obtain() }, watch: { // 监听selectedYear和selectedMonth的变化,以更新pickerValue @@ -273,11 +273,16 @@ } }, methods: { + pucodeinput(val){ + if(val.length==8){ + this.Obtain() + } + }, // 获取开票信息的下拉数据 dropdown(){ API.getApplyData({}, res => { this.range = res.data.project_arr; - this.candidates.push(res.data.pucode) + this.candidates.push(...res.data.pucode) }) }, // 把开票项目的 value 换成 名称显示 @@ -360,9 +365,9 @@ // this.stepsIndex = 0; // return // } + // this.Obtain() this.pay() this.form1 = this.$refs.form.modelValue; - // this.Obtain() } if(this.stepsIndex == 2){ @@ -478,18 +483,18 @@ // _this.list2.tax_number = info.taxNumber; // }) // }) - API.getFeeInvoiceHead({}, res => { + API.getFeeInvoiceHead({pucode:+_this.list1.pucode}, res => { _this.list2.type = String(res.data.type); _this.list2.title = res.data.title; _this.list2.tax_number = res.data.tax_number; _this.list1.email = res.data.email; - console.log(res.data); + // console.log(res.data); }) // #endif }, pay(){ let data = { - pucode: this.list1.pucode, + pucode: +this.list1.pucode, expire_time: this.list1.expire_time, project_id: this.list1.project_id, merge: this.list1.merge,