no message

This commit is contained in:
PC-202306242200\Administrator
2026-03-28 23:00:29 +08:00
commit 4d06351f6a
2830 changed files with 166480 additions and 0 deletions

View File

@@ -0,0 +1,148 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const hooks_useNav = require("../../hooks/useNav.js");
const api_api = require("../../api/api.js");
if (!Array) {
const _easycom_up_icon2 = common_vendor.resolveComponent("up-icon");
const _easycom_up_checkbox2 = common_vendor.resolveComponent("up-checkbox");
const _easycom_up_checkbox_group2 = common_vendor.resolveComponent("up-checkbox-group");
const _easycom_z_paging2 = common_vendor.resolveComponent("z-paging");
const _easycom_up_button2 = common_vendor.resolveComponent("up-button");
(_easycom_up_icon2 + _easycom_up_checkbox2 + _easycom_up_checkbox_group2 + _easycom_z_paging2 + _easycom_up_button2)();
}
const _easycom_up_icon = () => "../../uni_modules/uview-plus/components/u-icon/u-icon.js";
const _easycom_up_checkbox = () => "../../uni_modules/uview-plus/components/u-checkbox/u-checkbox.js";
const _easycom_up_checkbox_group = () => "../../uni_modules/uview-plus/components/u-checkbox-group/u-checkbox-group.js";
const _easycom_z_paging = () => "../../uni_modules/z-paging/components/z-paging/z-paging.js";
const _easycom_up_button = () => "../../uni_modules/uview-plus/components/u-button/u-button.js";
if (!Math) {
(_easycom_up_icon + _easycom_up_checkbox + _easycom_up_checkbox_group + _easycom_z_paging + _easycom_up_button)();
}
const _sfc_main = {
__name: "applyFor",
setup(__props) {
const { nav, navTo } = hooks_useNav.useNav();
let checkboxValue1 = common_vendor.ref([]);
const dataList = common_vendor.ref([]);
const paging = common_vendor.ref(null);
let allCel = common_vendor.ref(false);
const allCheck = (e) => {
if (e) {
checkboxValue1.value = dataList.value.map((item, index) => {
return item.id;
});
} else {
checkboxValue1.value = [];
}
allCel.value = e;
common_vendor.index.__f__("log", "at pageMake/invoice/applyFor.vue:94", e);
};
const queryList = async (pageNo, pageSize) => {
const params = {
current: pageNo,
pageSize
};
api_api.orderList(params).then((res) => {
paging.value.complete(res);
common_vendor.index.hideLoading();
}).catch((res) => {
paging.value.complete(false);
common_vendor.index.hideLoading();
});
};
const checkboxChange = (e) => {
if (e.length == dataList.value.length) {
allCel.value = true;
} else {
allCel.value = false;
}
common_vendor.index.__f__("log", "at pageMake/invoice/applyFor.vue:119", e);
};
let isPagingRefNotFound = () => {
return !paging.value;
};
common_vendor.onPullDownRefresh(() => {
if (isPagingRefNotFound())
return;
paging.value.reload().catch(() => {
});
});
common_vendor.onPageScroll((e) => {
if (isPagingRefNotFound())
return;
paging.value.updatePageScrollTop(e.scrollTop);
e.scrollTop < 10 && paging.value.doChatRecordLoadMore();
});
common_vendor.onReachBottom(() => {
if (isPagingRefNotFound())
return;
paging.value.pageReachBottom();
});
return (_ctx, _cache) => {
return {
a: common_vendor.p({
name: "error-circle-fill",
color: "#3c9cff"
}),
b: common_vendor.f(dataList.value, (item, index, i0) => {
return {
a: "d81cafaf-3-" + i0 + ",d81cafaf-2",
b: common_vendor.p({
shape: "circle",
customStyle: {
margin: "0"
},
name: item.id
}),
c: common_vendor.t(item.orderNo),
d: common_vendor.t(item.electricityAmount),
e: common_vendor.t(item.serviceAmount),
f: common_vendor.t(item.actuallyAmount),
g: index
};
}),
c: common_vendor.o(checkboxChange),
d: common_vendor.o(($event) => common_vendor.isRef(checkboxValue1) ? checkboxValue1.value = $event : checkboxValue1 = $event),
e: common_vendor.p({
placement: "column",
modelValue: common_vendor.unref(checkboxValue1)
}),
f: common_vendor.sr(paging, "d81cafaf-1", {
"k": "paging"
}),
g: common_vendor.o(queryList),
h: common_vendor.o(($event) => dataList.value = $event),
i: common_vendor.p({
["use-page-scroll"]: true,
modelValue: dataList.value
}),
j: common_vendor.o(allCheck),
k: common_vendor.o(($event) => common_vendor.isRef(allCel) ? allCel.value = $event : allCel = $event),
l: common_vendor.p({
label: "本页全选",
shape: "circle",
usedAlone: true,
customStyle: {
margin: "0 10rpx 0 0"
},
checked: common_vendor.unref(allCel)
}),
m: common_vendor.o(($event) => common_vendor.unref(navTo)(`/pageMake/invoice/applyForDay?list=${encodeURIComponent(JSON.stringify(common_vendor.unref(checkboxValue1)))}`)),
n: common_vendor.p({
customStyle: {
height: "80rpx",
width: "230rpx"
},
color: "#4879e6",
text: "下一步",
shape: "circle",
disabled: common_vendor.unref(checkboxValue1).length == 0
})
};
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-d81cafaf"]]);
_sfc_main.__runtimeHooks = 1;
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pageMake/invoice/applyFor.js.map

View File

@@ -0,0 +1,10 @@
{
"navigationBarTitleText": "申请开票",
"usingComponents": {
"up-icon": "../../uni_modules/uview-plus/components/u-icon/u-icon",
"up-checkbox": "../../uni_modules/uview-plus/components/u-checkbox/u-checkbox",
"up-checkbox-group": "../../uni_modules/uview-plus/components/u-checkbox-group/u-checkbox-group",
"z-paging": "../../uni_modules/z-paging/components/z-paging/z-paging",
"up-button": "../../uni_modules/uview-plus/components/u-button/u-button"
}
}

View File

@@ -0,0 +1 @@
<view class="invoice data-v-d81cafaf"><view class="invoice_tip data-v-d81cafaf"><view class="data-v-d81cafaf" style="display:flex;align-items:center"><up-icon wx:if="{{a}}" class="data-v-d81cafaf" u-i="d81cafaf-0" bind:__l="__l" u-p="{{a}}"></up-icon> 发票须知: </view><view class="data-v-d81cafaf">1.开票金额为用户实际支付金额(不含返利返佣)</view><view class="data-v-d81cafaf">2.未寄出的纸质发票会在开票确认后的20个工作日内寄出</view><view class="data-v-d81cafaf">3.单笔订单只支持开具一种发票类型</view><view class="data-v-d81cafaf">4.云快充仅为平台方,实际开票主体以申请开票时展示的开票运营商公司为准</view><view class="data-v-d81cafaf">5.发票由各家电站运营商提供,一起申请可能会生成多张发票</view><view class="data-v-d81cafaf">6.若超过20个工作日仍未收到发票您可以通过(区号)+12366向开票公司所在区域的主管税务机关进行反馈处理</view></view><view class="data-v-d81cafaf" style="height:20rpx"></view><view class="data-v-d81cafaf"><z-paging wx:if="{{i}}" class="r data-v-d81cafaf" u-s="{{['d']}}" u-r="paging" bindquery="{{g}}" u-i="d81cafaf-1" bind:__l="__l" bindupdateModelValue="{{h}}" u-p="{{i}}"><up-checkbox-group wx:if="{{e}}" class="data-v-d81cafaf" u-s="{{['d']}}" bindchange="{{c}}" u-i="d81cafaf-2,d81cafaf-1" bind:__l="__l" bindupdateModelValue="{{d}}" u-p="{{e}}"><view wx:for="{{b}}" wx:for-item="item" wx:key="g" class="invoice_list data-v-d81cafaf" style="margin-bottom:20rpx"><view class="data-v-d81cafaf" style="display:flex;align-items:center;font-weight:bold;font-size:30rpx;margin-bottom:30rpx"><up-checkbox wx:if="{{item.b}}" class="data-v-d81cafaf" u-i="{{item.a}}" bind:__l="__l" u-p="{{item.b}}"></up-checkbox> 充电单号:{{item.c}}</view><view class="data-v-d81cafaf" style="display:flex;align-items:center;justify-content:space-between;background-color:#f6f6f6;border-radius:15rpx;padding:20rpx"><view class="data-v-d81cafaf" style="font-size:28rpx"><view class="data-v-d81cafaf" style="margin-bottom:15rpx">即途展厅</view><view class="data-v-d81cafaf" style="margin-bottom:15rpx">{{item.d}}电费</view><view class="data-v-d81cafaf">{{item.e}}服务费</view></view><view class="data-v-d81cafaf" style="text-align:right"><view class="data-v-d81cafaf" style="margin-bottom:25rpx;font-size:36rpx;font-weight:bold;color:#4879e6">{{item.f}} <text class="data-v-d81cafaf" style="font-size:30rpx">元</text></view><view class="data-v-d81cafaf" style="font-size:28rpx">个人支付</view></view></view></view></up-checkbox-group></z-paging></view><view class="data-v-d81cafaf" style="position:fixed;bottom:0;left:0;width:750rpx;padding:20rpx 50rpx;background-color:#fff;display:flex;align-items:center;justify-content:space-between"><view class="data-v-d81cafaf" style="display:flex;align-items:center"><up-checkbox wx:if="{{l}}" class="data-v-d81cafaf" bindchange="{{j}}" u-i="d81cafaf-4" bind:__l="__l" bindupdateChecked="{{k}}" u-p="{{l}}"></up-checkbox></view><view class="data-v-d81cafaf" style="width:230rpx"><up-button wx:if="{{n}}" class="data-v-d81cafaf" bindclick="{{m}}" u-i="d81cafaf-5" bind:__l="__l" u-p="{{n}}"></up-button></view></view></view>

View File

@@ -0,0 +1,26 @@
.invoice_tip.data-v-d81cafaf {
padding: 20rpx;
font-size: 24rpx;
color: #3c9cff;
background-color: rgba(60, 156, 255, 0.2);
}
.invoice_tip view.data-v-d81cafaf {
line-height: 40rpx;
}
.invoice_list.data-v-d81cafaf {
padding: 15rpx 30rpx;
background-color: #fff;
}
.invoice_list_view.data-v-d81cafaf {
display: flex;
align-items: center;
justify-content: space-between;
font-size: 28rpx;
margin-bottom: 25rpx;
}
.invoice_list_view_left.data-v-d81cafaf {
color: #646368;
}
.invoice_list_view_right.data-v-d81cafaf {
color: #262626;
}

View File

@@ -0,0 +1,58 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const hooks_useNav = require("../../hooks/useNav.js");
const api_api = require("../../api/api.js");
if (!Array) {
const _easycom_up_icon2 = common_vendor.resolveComponent("up-icon");
const _easycom_up_button2 = common_vendor.resolveComponent("up-button");
(_easycom_up_icon2 + _easycom_up_button2)();
}
const _easycom_up_icon = () => "../../uni_modules/uview-plus/components/u-icon/u-icon.js";
const _easycom_up_button = () => "../../uni_modules/uview-plus/components/u-button/u-button.js";
if (!Math) {
(_easycom_up_icon + _easycom_up_button)();
}
const _sfc_main = {
__name: "applyForDay",
setup(__props) {
const { nav, navTo } = hooks_useNav.useNav();
const dataList = common_vendor.ref([]);
let checkboxValue1 = common_vendor.ref([]);
common_vendor.onLoad(async (options) => {
checkboxValue1.value = JSON.parse(decodeURIComponent(options.list));
common_vendor.index.__f__("log", "at pageMake/invoice/applyForDay.vue:80", checkboxValue1.value);
let _res = await api_api.preApply({ ordersIds: JSON.parse(decodeURIComponent(options.list)) });
dataList.value = _res;
});
return (_ctx, _cache) => {
return {
a: common_vendor.p({
name: "error-circle-fill",
color: "#3c9cff"
}),
b: common_vendor.f(dataList.value, (item, index, i0) => {
return {
a: common_vendor.t(item.merchantName),
b: common_vendor.t(item.electricityAmount),
c: common_vendor.t(item.serviceAmount),
d: common_vendor.t(item.invoiceAmount),
e: index
};
}),
c: common_vendor.o(($event) => common_vendor.unref(navTo)(`/pageMake/invoice/makeInvoice?list=${encodeURIComponent(JSON.stringify(common_vendor.unref(checkboxValue1)))}`)),
d: common_vendor.p({
customStyle: {
height: "80rpx",
width: "230rpx"
},
color: "#4879e6",
text: "下一步",
shape: "circle"
})
};
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-0b3268c8"]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pageMake/invoice/applyForDay.js.map

View File

@@ -0,0 +1,7 @@
{
"navigationBarTitleText": "申请开票",
"usingComponents": {
"up-icon": "../../uni_modules/uview-plus/components/u-icon/u-icon",
"up-button": "../../uni_modules/uview-plus/components/u-button/u-button"
}
}

View File

@@ -0,0 +1 @@
<view class="invoice data-v-0b3268c8"><view class="invoice_tip data-v-0b3268c8"><view class="data-v-0b3268c8" style="display:flex;align-items:center"><up-icon wx:if="{{a}}" class="data-v-0b3268c8" u-i="0b3268c8-0" bind:__l="__l" u-p="{{a}}"></up-icon> 发票须知: </view><view class="data-v-0b3268c8">1.开票金额为用户实际支付金额(不含返利返佣)</view><view class="data-v-0b3268c8">2.未寄出的纸质发票会在开票确认后的20个工作日内寄出</view><view class="data-v-0b3268c8">3.单笔订单只支持开具一种发票类型</view><view class="data-v-0b3268c8">4.云快充仅为平台方,实际开票主体以申请开票时展示的开票运营商公司为准</view><view class="data-v-0b3268c8">5.发票由各家电站运营商提供,一起申请可能会生成多张发票</view><view class="data-v-0b3268c8">6.若超过20个工作日仍未收到发票您可以通过(区号)+12366向开票公司所在区域的主管税务机关进行反馈处理</view></view><view class="data-v-0b3268c8" style="height:20rpx"></view><view class="data-v-0b3268c8"><view wx:for="{{b}}" wx:for-item="item" wx:key="e" class="invoice_list data-v-0b3268c8" style="margin-bottom:20rpx"><view class="data-v-0b3268c8" style="display:flex;align-items:center;font-weight:bold;font-size:30rpx;margin-bottom:30rpx"> 开票运营商:{{item.a}}</view><view class="data-v-0b3268c8" style="display:flex;align-items:center;justify-content:space-between;background-color:#f6f6f6;border-radius:15rpx;padding:20rpx"><view class="data-v-0b3268c8" style="font-size:28rpx"><view class="data-v-0b3268c8" style="margin-bottom:15rpx">{{item.b}}电费</view><view class="data-v-0b3268c8">{{item.c}}服务费</view></view><view class="data-v-0b3268c8" style="text-align:right"><view class="data-v-0b3268c8" style="margin-bottom:25rpx;font-size:36rpx;font-weight:bold;color:#4879e6">{{item.d}} <text class="data-v-0b3268c8" style="font-size:30rpx">元</text></view><view class="data-v-0b3268c8" style="font-size:28rpx">个人支付</view></view></view></view></view><view class="data-v-0b3268c8" style="position:fixed;bottom:0;left:0;width:750rpx;padding:20rpx 50rpx;background-color:#fff;display:flex;align-items:center;justify-content:space-between"><view class="data-v-0b3268c8"></view><view class="data-v-0b3268c8" style="width:230rpx"><up-button wx:if="{{d}}" class="data-v-0b3268c8" bindclick="{{c}}" u-i="0b3268c8-1" bind:__l="__l" u-p="{{d}}"></up-button></view></view></view>

View File

@@ -0,0 +1,26 @@
.invoice_tip.data-v-0b3268c8 {
padding: 20rpx;
font-size: 24rpx;
color: #3c9cff;
background-color: rgba(60, 156, 255, 0.2);
}
.invoice_tip view.data-v-0b3268c8 {
line-height: 40rpx;
}
.invoice_list.data-v-0b3268c8 {
padding: 15rpx 30rpx;
background-color: #fff;
}
.invoice_list_view.data-v-0b3268c8 {
display: flex;
align-items: center;
justify-content: space-between;
font-size: 28rpx;
margin-bottom: 25rpx;
}
.invoice_list_view_left.data-v-0b3268c8 {
color: #646368;
}
.invoice_list_view_right.data-v-0b3268c8 {
color: #262626;
}

View File

@@ -0,0 +1,136 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const hooks_useNav = require("../../hooks/useNav.js");
const api_api = require("../../api/api.js");
if (!Array) {
const _easycom_up_icon2 = common_vendor.resolveComponent("up-icon");
const _easycom_up_tag2 = common_vendor.resolveComponent("up-tag");
const _easycom_z_paging2 = common_vendor.resolveComponent("z-paging");
const _easycom_up_button2 = common_vendor.resolveComponent("up-button");
(_easycom_up_icon2 + _easycom_up_tag2 + _easycom_z_paging2 + _easycom_up_button2)();
}
const _easycom_up_icon = () => "../../uni_modules/uview-plus/components/u-icon/u-icon.js";
const _easycom_up_tag = () => "../../uni_modules/uview-plus/components/u-tag/u-tag.js";
const _easycom_z_paging = () => "../../uni_modules/z-paging/components/z-paging/z-paging.js";
const _easycom_up_button = () => "../../uni_modules/uview-plus/components/u-button/u-button.js";
if (!Math) {
(_easycom_up_icon + _easycom_up_tag + _easycom_z_paging + _easycom_up_button)();
}
const _sfc_main = {
__name: "invoice",
setup(__props) {
const { nav, navTo } = hooks_useNav.useNav();
const dataList = common_vendor.ref([]);
const paging = common_vendor.ref(null);
const queryList = async (pageNo, pageSize) => {
const params = {
current: pageNo,
pageSize
};
api_api.invoiceList(params).then((res) => {
paging.value.complete(res);
common_vendor.index.hideLoading();
}).catch((res) => {
paging.value.complete(false);
common_vendor.index.hideLoading();
});
};
let isPagingRefNotFound = () => {
return !paging.value;
};
common_vendor.onPullDownRefresh(() => {
if (isPagingRefNotFound())
return;
paging.value.reload().catch(() => {
});
});
common_vendor.onPageScroll((e) => {
if (isPagingRefNotFound())
return;
paging.value.updatePageScrollTop(e.scrollTop);
e.scrollTop < 10 && paging.value.doChatRecordLoadMore();
});
common_vendor.onReachBottom(() => {
if (isPagingRefNotFound())
return;
paging.value.pageReachBottom();
});
return (_ctx, _cache) => {
return {
a: common_vendor.p({
name: "error-circle-fill",
color: "#3c9cff"
}),
b: common_vendor.f(dataList.value, (item, index, i0) => {
return common_vendor.e({
a: "d71576e1-2-" + i0 + ",d71576e1-1",
b: common_vendor.t(item.createTime),
c: "d71576e1-3-" + i0 + ",d71576e1-1",
d: common_vendor.t(item.invoiceTitle),
e: common_vendor.t(item.merchantInvoice || "-"),
f: item.status == 0
}, item.status == 0 ? {
g: "d71576e1-4-" + i0 + ",d71576e1-1",
h: common_vendor.p({
text: "待开票",
type: "warning",
plain: true,
plainFill: true
})
} : {}, {
i: item.status == 1
}, item.status == 1 ? {
j: "d71576e1-5-" + i0 + ",d71576e1-1",
k: common_vendor.p({
text: "已开票",
type: "success",
plain: true,
plainFill: true
})
} : {}, {
l: item.status == -1
}, item.status == -1 ? {
m: "d71576e1-6-" + i0 + ",d71576e1-1",
n: common_vendor.p({
text: "取消",
type: "error",
plain: true,
plainFill: true
})
} : {}, {
o: common_vendor.t(item.invoiceAmount),
p: index
});
}),
c: common_vendor.p({
name: "clock-fill"
}),
d: common_vendor.p({
name: "arrow-right"
}),
e: common_vendor.sr(paging, "d71576e1-1", {
"k": "paging"
}),
f: common_vendor.o(queryList),
g: common_vendor.o(($event) => dataList.value = $event),
h: common_vendor.p({
["use-page-scroll"]: true,
modelValue: dataList.value
}),
i: common_vendor.o(($event) => common_vendor.unref(navTo)("/pageMake/invoice/applyFor")),
j: common_vendor.p({
customStyle: {
height: "80rpx"
},
color: "#4879e6",
text: "申请开票",
shape: "circle"
})
};
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-d71576e1"]]);
_sfc_main.__runtimeHooks = 1;
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pageMake/invoice/invoice.js.map

View File

@@ -0,0 +1,9 @@
{
"navigationBarTitleText": "开票记录",
"usingComponents": {
"up-icon": "../../uni_modules/uview-plus/components/u-icon/u-icon",
"up-tag": "../../uni_modules/uview-plus/components/u-tag/u-tag",
"z-paging": "../../uni_modules/z-paging/components/z-paging/z-paging",
"up-button": "../../uni_modules/uview-plus/components/u-button/u-button"
}
}

View File

@@ -0,0 +1 @@
<view class="invoice data-v-d71576e1"><view class="invoice_tip data-v-d71576e1"><view class="data-v-d71576e1" style="display:flex;align-items:center"><up-icon wx:if="{{a}}" class="data-v-d71576e1" u-i="d71576e1-0" bind:__l="__l" u-p="{{a}}"></up-icon> 温馨提示: </view><view class="data-v-d71576e1">1.云充电仅为平台方,实际开票主体以下方展示的开票公司为准</view><view class="data-v-d71576e1">2.若超过20个工作日仍未收到发票您可以通过(区号)+12366向开票公司所在区域的主管税务机关进行反馈处理</view></view><view class="data-v-d71576e1" style="height:20rpx"></view><z-paging wx:if="{{h}}" class="r data-v-d71576e1" u-s="{{['d']}}" u-r="paging" bindquery="{{f}}" u-i="d71576e1-1" bind:__l="__l" bindupdateModelValue="{{g}}" u-p="{{h}}"><view wx:for="{{b}}" wx:for-item="item" wx:key="p" class="invoice_list data-v-d71576e1"><view class="invoice_list_view data-v-d71576e1"><view class="invoice_list_view_left data-v-d71576e1" style="display:flex;align-items:center"><up-icon wx:if="{{c}}" class="data-v-d71576e1" u-i="{{item.a}}" bind:__l="__l" u-p="{{c}}"></up-icon> {{item.b}}</view><up-icon wx:if="{{d}}" class="data-v-d71576e1" u-i="{{item.c}}" bind:__l="__l" u-p="{{d}}"></up-icon></view><view class="invoice_list_view data-v-d71576e1"><view class="invoice_list_view_left data-v-d71576e1">发票抬头</view><view class="invoice_list_view_right data-v-d71576e1">{{item.d}}</view></view><view class="invoice_list_view data-v-d71576e1"><view class="invoice_list_view_left data-v-d71576e1">开票运营商</view><view class="invoice_list_view_right data-v-d71576e1">{{item.e}}</view></view><view class="data-v-d71576e1" style="border:1px dashed #eee"></view><view class="data-v-d71576e1" style="height:20rpx"></view><view class="data-v-d71576e1" style="display:flex;align-items:center;justify-content:space-between"><view class="data-v-d71576e1"><up-tag wx:if="{{item.f}}" class="data-v-d71576e1" u-i="{{item.g}}" bind:__l="__l" u-p="{{item.h}}"></up-tag><up-tag wx:if="{{item.i}}" class="data-v-d71576e1" u-i="{{item.j}}" bind:__l="__l" u-p="{{item.k}}"></up-tag><up-tag wx:if="{{item.l}}" class="data-v-d71576e1" u-i="{{item.m}}" bind:__l="__l" u-p="{{item.n}}"></up-tag></view><view class="data-v-d71576e1" style="font-size:36rpx;font-weight:bold">{{item.o}} <text class="data-v-d71576e1" style="font-size:30rpx">元</text></view></view></view></z-paging><view class="data-v-d71576e1" style="height:150rpx"></view><view class="data-v-d71576e1" style="position:fixed;bottom:0;left:0;width:750rpx;padding:20rpx 50rpx;background-color:#fff"><up-button wx:if="{{j}}" class="data-v-d71576e1" bindclick="{{i}}" u-i="d71576e1-7" bind:__l="__l" u-p="{{j}}"></up-button></view></view>

View File

@@ -0,0 +1,26 @@
.invoice_tip.data-v-d71576e1 {
padding: 20rpx;
font-size: 24rpx;
color: #3c9cff;
background-color: rgba(60, 156, 255, 0.2);
}
.invoice_tip view.data-v-d71576e1 {
line-height: 40rpx;
}
.invoice_list.data-v-d71576e1 {
padding: 15rpx 30rpx;
background-color: #fff;
}
.invoice_list_view.data-v-d71576e1 {
display: flex;
align-items: center;
justify-content: space-between;
font-size: 28rpx;
margin-bottom: 25rpx;
}
.invoice_list_view_left.data-v-d71576e1 {
color: #646368;
}
.invoice_list_view_right.data-v-d71576e1 {
color: #262626;
}

View File

@@ -0,0 +1,196 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const api_api = require("../../api/api.js");
if (!Array) {
const _easycom_up_icon2 = common_vendor.resolveComponent("up-icon");
const _easycom_up_textarea2 = common_vendor.resolveComponent("up-textarea");
const _easycom_up_button2 = common_vendor.resolveComponent("up-button");
const _easycom_up_picker2 = common_vendor.resolveComponent("up-picker");
(_easycom_up_icon2 + _easycom_up_textarea2 + _easycom_up_button2 + _easycom_up_picker2)();
}
const _easycom_up_icon = () => "../../uni_modules/uview-plus/components/u-icon/u-icon.js";
const _easycom_up_textarea = () => "../../uni_modules/uview-plus/components/u-textarea/u-textarea.js";
const _easycom_up_button = () => "../../uni_modules/uview-plus/components/u-button/u-button.js";
const _easycom_up_picker = () => "../../uni_modules/uview-plus/components/u-picker/u-picker.js";
if (!Math) {
(_easycom_up_icon + _easycom_up_textarea + _easycom_up_button + _easycom_up_picker)();
}
const _sfc_main = {
__name: "makeInvoice",
setup(__props) {
common_vendor.ref([]);
let dataFrom = common_vendor.ref({
invoiceType: null,
subjectType: null,
ordersIds: []
});
let show1 = common_vendor.ref(false);
let show2 = common_vendor.ref(false);
common_vendor.onLoad(async (options) => {
common_vendor.index.__f__("log", "at pageMake/invoice/makeInvoice.vue:183", options);
common_vendor.index.__f__("log", "at pageMake/invoice/makeInvoice.vue:184", JSON.parse(decodeURIComponent(options.list)));
dataFrom.value.ordersIds = JSON.parse(decodeURIComponent(options.list));
});
const applyCon = async () => {
if (!dataFrom.value.subjectType)
return common_vendor.index.showToast({ title: "请选择发票主体", icon: "none" });
if (!dataFrom.value.invoiceType)
return common_vendor.index.showToast({ title: "请选择发票类型", icon: "none" });
if (!dataFrom.value.invoiceType == 1 && !dataFrom.value.taxNumber)
return common_vendor.index.showToast({ title: "请输入发票税号", icon: "none" });
if (!dataFrom.value.subjectType == 1 && !dataFrom.value.registrationPhone)
return common_vendor.index.showToast({ title: "请输入发票税号", icon: "none" });
if (!dataFrom.value.subjectType == 1 && !dataFrom.value.invoiceType == 2 && !dataFrom.value.taxNumber)
return common_vendor.index.showToast({ title: "请输入发票税号", icon: "none" });
if (!dataFrom.value.subjectType == 1 && !dataFrom.value.invoiceType == 2 && !dataFrom.value.registrationAddress)
return common_vendor.index.showToast({ title: "请输入公司地址", icon: "none" });
if (!dataFrom.value.subjectType == 1 && !dataFrom.value.invoiceType == 2 && !dataFrom.value.registrationPhone)
return common_vendor.index.showToast({ title: "请输入公司电话", icon: "none" });
if (!dataFrom.value.subjectType == 1 && !dataFrom.value.invoiceType == 2 && !dataFrom.value.bankName)
return common_vendor.index.showToast({ title: "请输入开户行名称", icon: "none" });
if (!dataFrom.value.subjectType == 1 && !dataFrom.value.invoiceType == 2 && !dataFrom.value.bankAccount)
return common_vendor.index.showToast({ title: "请输入开户行账户", icon: "none" });
if (!dataFrom.value.name)
return common_vendor.index.showToast({ title: "请输入收票人姓名", icon: "none" });
if (!dataFrom.value.address)
return common_vendor.index.showToast({ title: "请输入收票人地址", icon: "none" });
if (!dataFrom.value.phone)
return common_vendor.index.showToast({ title: "请输入收票人电话", icon: "none" });
if (!dataFrom.value.email)
return common_vendor.index.showToast({ title: "请输入收票人邮箱", icon: "none" });
await api_api.apply(dataFrom.value);
common_vendor.index.navigateBack({
delta: 3
});
};
const aaa1 = (ee) => {
dataFrom.value.invoiceType = ee.value[0].id;
show1.value = false;
common_vendor.index.__f__("log", "at pageMake/invoice/makeInvoice.vue:213", dataFrom.value.invoiceType);
};
const aaa2 = (ee) => {
dataFrom.value.subjectType = ee.value[0].id;
show2.value = false;
if (ee.value[0].id == 2) {
dataFrom.value.invoiceType = 1;
}
};
const show1True = () => {
if (dataFrom.value.subjectType == 2) {
return;
}
show1.value = true;
};
const columns1 = common_vendor.reactive([
[
{
label: "增值税普通发票",
id: 1
},
{
label: "增值税专用发票",
id: 2
}
]
]);
const columns2 = common_vendor.reactive([
[
{
label: "企业",
id: 1
},
{
label: "个人",
id: 2
}
]
]);
return (_ctx, _cache) => {
return common_vendor.e({
a: common_vendor.p({
name: "error-circle-fill",
color: "#3c9cff"
}),
b: common_vendor.t(!common_vendor.unref(dataFrom).subjectType ? "请选择" : columns2[0].find((val) => val.id == common_vendor.unref(dataFrom).subjectType).label),
c: !common_vendor.unref(dataFrom).subjectType ? "#808080" : "",
d: common_vendor.p({
name: "arrow-down"
}),
e: common_vendor.o(($event) => common_vendor.isRef(show2) ? show2.value = true : show2 = true),
f: common_vendor.t(!common_vendor.unref(dataFrom).invoiceType ? "请选择" : columns1[0].find((val) => val.id == common_vendor.unref(dataFrom).invoiceType).label),
g: !common_vendor.unref(dataFrom).invoiceType ? "#808080" : "",
h: common_vendor.p({
name: "arrow-down"
}),
i: common_vendor.o(show1True),
j: common_vendor.unref(dataFrom).invoiceTitle,
k: common_vendor.o(($event) => common_vendor.unref(dataFrom).invoiceTitle = $event.detail.value),
l: common_vendor.unref(dataFrom).subjectType == 1
}, common_vendor.unref(dataFrom).subjectType == 1 ? {
m: common_vendor.unref(dataFrom).taxNumber,
n: common_vendor.o(($event) => common_vendor.unref(dataFrom).taxNumber = $event.detail.value)
} : {}, {
o: common_vendor.unref(dataFrom).invoiceType == 2
}, common_vendor.unref(dataFrom).invoiceType == 2 ? {
p: common_vendor.unref(dataFrom).registrationAddress,
q: common_vendor.o(($event) => common_vendor.unref(dataFrom).registrationAddress = $event.detail.value)
} : {}, {
r: common_vendor.unref(dataFrom).invoiceType == 2
}, common_vendor.unref(dataFrom).invoiceType == 2 ? {
s: common_vendor.unref(dataFrom).registrationPhone,
t: common_vendor.o(($event) => common_vendor.unref(dataFrom).registrationPhone = $event.detail.value)
} : {}, {
v: common_vendor.unref(dataFrom).invoiceType == 2
}, common_vendor.unref(dataFrom).invoiceType == 2 ? {
w: common_vendor.unref(dataFrom).bankName,
x: common_vendor.o(($event) => common_vendor.unref(dataFrom).bankName = $event.detail.value)
} : {}, {
y: common_vendor.unref(dataFrom).invoiceType == 2
}, common_vendor.unref(dataFrom).invoiceType == 2 ? {
z: common_vendor.unref(dataFrom).bankAccount,
A: common_vendor.o(($event) => common_vendor.unref(dataFrom).bankAccount = $event.detail.value)
} : {}, {
B: common_vendor.unref(dataFrom).name,
C: common_vendor.o(($event) => common_vendor.unref(dataFrom).name = $event.detail.value),
D: common_vendor.unref(dataFrom).phone,
E: common_vendor.o(($event) => common_vendor.unref(dataFrom).phone = $event.detail.value),
F: common_vendor.unref(dataFrom).address,
G: common_vendor.o(($event) => common_vendor.unref(dataFrom).address = $event.detail.value),
H: common_vendor.unref(dataFrom).email,
I: common_vendor.o(($event) => common_vendor.unref(dataFrom).email = $event.detail.value),
J: common_vendor.o(($event) => common_vendor.unref(dataFrom).invoiceRemark = $event),
K: common_vendor.p({
placeholder: "请输入内容",
modelValue: common_vendor.unref(dataFrom).invoiceRemark
}),
L: common_vendor.o(applyCon),
M: common_vendor.p({
customStyle: {
height: "80rpx",
width: "230rpx"
},
color: "#4879e6",
text: "确认开票",
shape: "circle"
}),
N: common_vendor.o(aaa1),
O: common_vendor.o(($event) => common_vendor.isRef(show1) ? show1.value = false : show1 = false),
P: common_vendor.p({
keyName: "label",
show: common_vendor.unref(show1),
columns: columns1
}),
Q: common_vendor.o(aaa2),
R: common_vendor.o(($event) => common_vendor.isRef(show2) ? show2.value = false : show2 = false),
S: common_vendor.p({
keyName: "label",
show: common_vendor.unref(show2),
columns: columns2
})
});
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-4c7e3b70"]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pageMake/invoice/makeInvoice.js.map

View File

@@ -0,0 +1,9 @@
{
"navigationBarTitleText": "申请开票",
"usingComponents": {
"up-icon": "../../uni_modules/uview-plus/components/u-icon/u-icon",
"up-textarea": "../../uni_modules/uview-plus/components/u-textarea/u-textarea",
"up-button": "../../uni_modules/uview-plus/components/u-button/u-button",
"up-picker": "../../uni_modules/uview-plus/components/u-picker/u-picker"
}
}

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,31 @@
page {
background-color: #f5f5f5;
}
.invoice_tip.data-v-4c7e3b70 {
padding: 20rpx;
font-size: 24rpx;
color: #3c9cff;
background-color: rgba(60, 156, 255, 0.2);
}
.invoice_tip view.data-v-4c7e3b70 {
line-height: 40rpx;
}
.invoice_list.data-v-4c7e3b70 {
padding: 15rpx 30rpx;
background-color: #fff;
}
.invoice_list_view.data-v-4c7e3b70 {
display: flex;
align-items: center;
justify-content: space-between;
font-size: 28rpx;
margin-bottom: 25rpx;
}
.invoice_list_view_left.data-v-4c7e3b70 {
color: #646368;
}
.invoice_list_view_right.data-v-4c7e3b70 {
color: #262626;
}