From 952a604f0eef674334c15b0e65acf7341063c626 Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: Tue, 17 Oct 2023 11:41:27 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=B5=8B=E8=AF=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
api/fee/feeDetailApi.js | 54 ++++++++
api/invoice/invoiceApi.js | 18 +++
constant/url.js | 2 +
pages.json | 11 +-
pages/fee/payFeeDetail.vue | 10 +-
pages/invoice/addInvoiceApply.vue | 216 ++++++++++++++++++++++++++++++
6 files changed, 309 insertions(+), 2 deletions(-)
create mode 100644 api/fee/feeDetailApi.js
create mode 100644 pages/invoice/addInvoiceApply.vue
diff --git a/api/fee/feeDetailApi.js b/api/fee/feeDetailApi.js
new file mode 100644
index 0000000..19a8d87
--- /dev/null
+++ b/api/fee/feeDetailApi.js
@@ -0,0 +1,54 @@
+import {
+ request,
+ requestNoAuth
+} from '../../lib/java110/java110Request.js'
+import
+url
+from '../../constant/url.js'
+import {
+ formatDate
+} from '@/lib/java110/utils/DateUtil.js'
+/**
+ * 查询开票抬头
+ * @param {Object} _objData 数据
+ */
+export function getFeeDetail(_objData) {
+ return new Promise((resolve, reject) => {
+ request({
+ url: url.queryFeeDetail,
+ method: "GET",
+ data: _objData, //动态数据
+ success: function(res) {
+ let _json = res.data;
+
+ let _feeDetails = _json.feeDetails;
+ if (!_feeDetails) {
+ _feeDetails = [];
+ resolve(_feeDetails);
+ return;
+ }
+ _feeDetails.forEach(function(_feeDetail) {
+ let _tmpCreateTime = _feeDetail.createTime.replace(/\-/g, "/")
+ let _createTime = new Date(_tmpCreateTime);
+ _feeDetail.createTime = formatDate(_createTime);
+ if (_feeDetail.hasOwnProperty("startTime")) {
+ let _tmpStartTime = _feeDetail.startTime.replace(/\-/g, "/")
+ let _startTime = new Date(_tmpStartTime);
+ _feeDetail.startTime = formatDate(_startTime);
+ }
+
+ if (_feeDetail.hasOwnProperty("endTime")) {
+ let _tmpEndTime = _feeDetail.endTime.replace(/\-/g, "/")
+ let _endTime = new Date(_tmpEndTime);
+ _feeDetail.endTime = formatDate(_endTime);
+ }
+
+ });
+ resolve(_feeDetails);
+ },
+ fail: function(e) {
+ reject(e);
+ }
+ });
+ })
+}
\ No newline at end of file
diff --git a/api/invoice/invoiceApi.js b/api/invoice/invoiceApi.js
index 25b8468..22a82ba 100644
--- a/api/invoice/invoiceApi.js
+++ b/api/invoice/invoiceApi.js
@@ -129,3 +129,21 @@ export function getInvoiceEvent(_objData) {
});
})
}
+
+
+export function saveInvoiceApply(_data) {
+ return new Promise((resolve, reject) => {
+ request({
+ url: url.saveInvoiceApply,
+ method: "POST",
+ data: _data,
+ //动态数据
+ success: function(res) {
+ resolve(res.data);
+ },
+ fail: function(e) {
+ reject("服务器异常了");
+ }
+ });
+ })
+}
diff --git a/constant/url.js b/constant/url.js
index 7f603ce..fe2d815 100644
--- a/constant/url.js
+++ b/constant/url.js
@@ -227,6 +227,8 @@ export default {
listInvoiceApply: baseUrl+"app/invoice.listInvoiceApply",
deleteInvoiceApply: baseUrl+"app/invoice.deleteInvoiceApply",
listInvoiceEvent: baseUrl+"app/invoice.listInvoiceEvent",
+ saveInvoiceApply: baseUrl+"app/invoice.saveInvoiceApply",
+
diff --git a/pages.json b/pages.json
index 63caa8c..065af32 100644
--- a/pages.json
+++ b/pages.json
@@ -983,7 +983,16 @@
"path" : "pages/invoice/invoiceDetail",
"style" :
{
- "navigationBarTitleText": "",
+ "navigationBarTitleText": "发票详情",
+ "enablePullDownRefresh": false
+ }
+
+ }
+ ,{
+ "path" : "pages/invoice/addInvoiceApply",
+ "style" :
+ {
+ "navigationBarTitleText": "申请开票",
"enablePullDownRefresh": false
}
diff --git a/pages/fee/payFeeDetail.vue b/pages/fee/payFeeDetail.vue
index fb87c5d..dd79e65 100644
--- a/pages/fee/payFeeDetail.vue
+++ b/pages/fee/payFeeDetail.vue
@@ -47,6 +47,10 @@
备注
{{item.remark}}
+
+
+
+
@@ -65,7 +69,6 @@
import noDataPage from '@/components/no-data-page/no-data-page.vue'
import uniLoadMore from '@/components/uni-load-more/uni-load-more.vue';
-
const util = context.util;
export default {
data() {
@@ -168,6 +171,11 @@
})
}
});
+ },
+ _applyInvoice:function(_feeDetail){
+ uni.navigateTo({
+ url:'/pages/invoice/addInvoiceApply?detailId='+_feeDetail.detailId+'&feeId='+_feeDetail.feeId
+ })
}
}
}
diff --git a/pages/invoice/addInvoiceApply.vue b/pages/invoice/addInvoiceApply.vue
new file mode 100644
index 0000000..25c2d78
--- /dev/null
+++ b/pages/invoice/addInvoiceApply.vue
@@ -0,0 +1,216 @@
+
+
+
+ 发票抬头
+
+ 发票类型
+ {{invoiceType=='1001'?'个人':'公司'}}
+
+
+ 发票名头
+ {{invoiceName}}
+
+
+ 纳税人识别号
+ {{invoiceNum}}
+
+
+ 地址、电话
+ {{invoiceAddress}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file