diff --git a/common/js/api.js b/common/js/api.js
index e8b3f3f..dd7a961 100644
--- a/common/js/api.js
+++ b/common/js/api.js
@@ -36,6 +36,9 @@ let API = {
wx(data, success, fail){
API.sendRequest('get', data, '/wechat/login/wx', success, fail)
},
+ getFeeInvoiceHead(data, success, fail, boolean=true){
+ API.sendRequest('get', data, '/api/InvoiceIssuance/getFeeInvoiceHead', success, fail, boolean)
+ },
// 通用api
request(url, data, success, fail, boolean=true){
API.sendRequest('post', data, url, success, fail, boolean)
diff --git a/pages/Invoicing/Invoicing.vue b/pages/Invoicing/Invoicing.vue
index 2eede86..4b231bb 100644
--- a/pages/Invoicing/Invoicing.vue
+++ b/pages/Invoicing/Invoicing.vue
@@ -64,22 +64,24 @@
抬头信息:
- 导入发票抬头
+
-
+
+ {{list2.title?list2.title:'请输入抬头名称'}}
-
+
+ {{list2.tax_number?list2.tax_number:'请输入抬头名称'}}
@@ -339,6 +341,7 @@
// }
this.pay()
this.form1 = this.$refs.form.modelValue;
+ this.Obtain()
}
if(this.stepsIndex == 2){
@@ -429,17 +432,23 @@
// });
// #endif
// #ifdef H5
- wxApi.wxRegister(() => {
- wx.invoke('chooseInvoiceTitle', {"scene": "1"}, function (res) {
- let info = JSON.parse(res.choose_invoice_title_info);
- _this.list2.type = info.type;
- _this.list2.title = info.title;
- _this.list2.address = info.companyAddress;
- _this.list2.telephone = info.telephone;
- _this.list2.bank_name = info.bankName;
- _this.list2.bank_account = info.bankAccount;
- _this.list2.tax_number = info.taxNumber;
- })
+ // wxApi.wxRegister(() => {
+ // wx.invoke('chooseInvoiceTitle', {"scene": "1"}, function (res) {
+ // let info = JSON.parse(res.choose_invoice_title_info);
+ // _this.list2.type = info.type;
+ // _this.list2.title = info.title;
+ // _this.list2.address = info.companyAddress;
+ // _this.list2.telephone = info.telephone;
+ // _this.list2.bank_name = info.bankName;
+ // _this.list2.bank_account = info.bankAccount;
+ // _this.list2.tax_number = info.taxNumber;
+ // })
+ // })
+ API.getFeeInvoiceHead({}, res => {
+ _this.list2.type = String(res.data.type);
+ console.log(typeof _this.list2.type);
+ _this.list2.title = res.data.title;
+ _this.list2.tax_number = res.data.tax_number;
})
// #endif
},
diff --git a/unpackage/dist/build/web/index.html b/unpackage/dist/build/web/index.html
index 65624c0..7593754 100644
--- a/unpackage/dist/build/web/index.html
+++ b/unpackage/dist/build/web/index.html
@@ -1,2 +1,2 @@
Waterinvoice_uiapp
\ No newline at end of file
+ document.write('')