From 810282754545ae25e0251a8c4c3dcc4950377e23 Mon Sep 17 00:00:00 2001
From: liugongyu <290219706@qq.com>
Date: Wed, 10 Aug 2022 14:41:11 +0800
Subject: [PATCH] 发票
---
common/common.js | 75 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
common/uni.css | 9 ++++++++-
pages/addTitle/addTitle.vue | 429 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---------------------------------------------------------------------------------------------------------------------------------------------------
pages/billing/billing.vue | 656 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
pages/companyMsg/companyMsg.vue | 202 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---------------------------------------------------------------------------------------------------------------
pages/editTitle/editTitle.vue | 423 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-------------------------------------------------------------------------------------------------------------------------
pages/elecRecord/elecRecord.vue | 84 +++++++++++++++++++++++++++++++++++++++++++++++++++---------------------------------
pages/index/index.vue | 16 ++++++++--------
pages/invoiceClaim/invoiceClaim.vue | 55 +++++++++++++++++++++++++++----------------------------
pages/invoiceForm/invoiceForm.vue | 180 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---------------------------------------------------------------
pages/invoicePreview/invoicePreview.vue | 29 +++++++++++++++++++++--------
pages/invoiceRecord/invoiceRecord.vue | 129 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--------------------------------------------------
pages/invoiceTitle/invoiceTitle.vue | 354 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--------------------------------------------------------------------------------------------------------------------------
13 files changed, 1704 insertions(+), 937 deletions(-)
diff --git a/common/common.js b/common/common.js
index 42faa9e..c0350ea 100644
--- a/common/common.js
+++ b/common/common.js
@@ -1,6 +1,8 @@
import md5 from './md5.min.js';
// 江阴正式环境
-var serverUrl = "https://bus.jycrtc.com";
+var serverUrl = "http://test.jycrtc.com:8096";
+// 测试 http://test.jycrtc.com:8096 正式 https://bus.jycrtc.com
+var serverPayUrl = ''
// 测试环境
// var serverUrl = "http://test.jycrtc.com:8096";
//江阴微信小程序appid
@@ -51,7 +53,26 @@ const createCouponOrder = serverUrl + "/business/h5/coupon/createCouponOrder";
// 商户卡券-使用余额购买
const accountPay = serverUrl + "/business/h5/pay/busAccount/accountPay";
+// 获取发票抬头列表
+const queryCustInvoiceInfoList = serverUrl + "/business/h5/pay/invoice/queryCustInvoiceInfoList";
+// 新增一条客户发票抬头信息
+const insertCustInvoiceInfo = serverUrl + "/business/h5/pay/invoice/insertCustInvoiceInfo";
+// 通过主键更新一条客户发票抬头信息
+const updateCustInvoiceInfo = serverUrl + "/business/h5/pay/invoice/updateCustInvoiceInfo";
+// 删除一条客户发票抬头信息
+const deleteCustInvoiceInfoByID = serverUrl + "/business/h5/pay/invoice/deleteCustInvoiceInfoByID";
+// 获取开票订单列表
+const queryRntPayOrderForInvoice = serverUrl + "/business/h5/pay/invoice/queryRntPayOrderForInvoice";
+
+// 记录客户开发票历史信息及开票历史详情信息
+const openTicketForCustInvoiceHisInfo = serverUrl + "/business/h5/pay/invoice/openTicketForCustInvoiceHisInfo";
+
+// 查询客户所有发票历史
+const queryCustInvoiceHistoryList = serverUrl + "/business/h5/pay/invoice/queryCustInvoiceHistoryList";
+
+// 重发邮件
+const resendInvoiceMail = serverUrl + "/business/h5/pay/invoice/resendInvoiceMail";
@@ -223,8 +244,43 @@ var cardTypeFormat = function(num){
return '折扣券'
}
}
+
+var formatDate = function(dataStr) {
+ var time = new Date(dataStr);
+
+ function timeAdd0(str) {
+
+ if (str < 10) {
+
+ str = '0' + str;
+
+ }
+
+ return str
+
+ }
+
+ var y = time.getFullYear();
+
+ var m = time.getMonth() + 1;
+
+ var d = time.getDate();
+
+ var h = time.getHours();
+
+ var mm = time.getMinutes();
+
+ var s = time.getSeconds();
+
+ return y + '-' + timeAdd0(m) + '-' + timeAdd0(d) + ' '
+
+ + timeAdd0(h) + ':' + timeAdd0(mm) + ':' + timeAdd0(s);
+
+
+};
export default {
// deviceInfo,
+ formatDate,
hs_wxPay_appId,
public_orgId,
appName,
@@ -254,6 +310,23 @@ export default {
accountPay,
+ // 获取发票抬头列表
+ queryCustInvoiceInfoList,
+ // 新增一条客户发票抬头信息
+ insertCustInvoiceInfo,
+ // 通过主键更新一条客户发票抬头信息
+ updateCustInvoiceInfo,
+ // 删除一条客户发票抬头信息
+ deleteCustInvoiceInfoByID,
+ // 获取开票订单列表
+ queryRntPayOrderForInvoice,
+ // 记录客户开发票历史信息及开票历史详情信息
+ openTicketForCustInvoiceHisInfo,
+ // 查询客户所有发票历史
+ queryCustInvoiceHistoryList,
+ // 重发邮件
+ resendInvoiceMail,
+
//陈彪接口
rechargeList,
walletKindType,
diff --git a/common/uni.css b/common/uni.css
index 63893ff..472a18c 100644
--- a/common/uni.css
+++ b/common/uni.css
@@ -1857,4 +1857,11 @@ checkbox-group label {
.marginRightArrow{
margin-right: 10px;
-}
\ No newline at end of file
+}
+
+.novipcard_Mid{
+ text-align: center;
+}
+
+
+
diff --git a/pages/addTitle/addTitle.vue b/pages/addTitle/addTitle.vue
index 877e86a..14fe58c 100644
--- a/pages/addTitle/addTitle.vue
+++ b/pages/addTitle/addTitle.vue
@@ -1,157 +1,292 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/companyMsg/companyMsg.vue b/pages/companyMsg/companyMsg.vue
index 9319ef9..2e52c77 100644
--- a/pages/companyMsg/companyMsg.vue
+++ b/pages/companyMsg/companyMsg.vue
@@ -1,119 +1,99 @@
-
-
-
- 抬头类型:
- 公司
-
-
-
-
-
-
- *发票抬头:
-
-
- 中兴智能交通股份有限公司
-
-
-
-
- *纳税人识别号:
-
-
- 123333
-
-
-
-
- 注册地址:
-
-
- 北京市海淀区玲珑路中关村产业园北京市海淀区玲珑路中关村产业园
-
-
-
-
- 注册电话:
-
-
- 123
-
-
-
-
- 开户行:
-
-
- 北京市海淀区玲珑路中关村产业园北京市海淀区玲珑路中关村产业园
-
-
-
-
- 开户账号:
-
-
- 1123村产业园
-
-
-
-
- *电子邮箱:
-
-
- 1123@qq.com
-
-
-
-
- 备注:
-
-
- 备注
-
-
-
-
+
+
+
+ 抬头类型:
+ {{titleIfo.invoiceType==0?'个人':'企业'}}
+
+
+
+
+
+
+ *
+ 发票抬头:
+
+
+ {{titleIfo.name}}
+
+
+
+
+ *
+ 纳税人识别号:
+
+
+ {{titleIfo.taxid}}
+
+
+
+
+ 注册地址:
+
+
+ {{titleIfo.address}}
+
+
+
+
+ 注册电话:
+
+
+ {{titleIfo.phone}}
+
+
+
+
+ 开户行:
+
+
+ {{titleIfo.bankName}}
+
+
+
+
+ 开户账号:
+
+
+ {{titleIfo.taxid}}
+
+
+
+
+ *
+ 电子邮箱:
+
+
+ {{titleIfo.email}}
+
+
+
+
+ 备注:
+
+
+ {{titleIfo.remark}}
+
+
+
+
-
-
-
-
- 邮寄地址:
-
-
- 北京市海淀区玲珑路中关村产业园北京市海淀区玲珑路中关村产业园
-
-
-
-
- 联系人:
-
-
- 中兴智能交通股份有限公司
-
-
-
-
- 联系方式:
-
-
- 13113131212
-
-
-
-
-
+
+
diff --git a/pages/invoicePreview/invoicePreview.vue b/pages/invoicePreview/invoicePreview.vue
index 8c3b35f..b94cd42 100644
--- a/pages/invoicePreview/invoicePreview.vue
+++ b/pages/invoicePreview/invoicePreview.vue
@@ -1,17 +1,30 @@
-
+
+
+
diff --git a/pages/invoiceTitle/invoiceTitle.vue b/pages/invoiceTitle/invoiceTitle.vue
index 012acbf..724cfa1 100644
--- a/pages/invoiceTitle/invoiceTitle.vue
+++ b/pages/invoiceTitle/invoiceTitle.vue
@@ -1,130 +1,240 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+ 暂无抬头,请先添加!
+
+
+
+
+
--
libgit2 0.21.4