no message
This commit is contained in:
1
unpackage/dist/build/mp-weixin/pageMake/invoice/applyFor.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pageMake/invoice/applyFor.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../common/vendor.js"),o=require("../../hooks/useNav.js"),l=require("../../api/api.js");if(!Array){(e.resolveComponent("up-icon")+e.resolveComponent("up-checkbox")+e.resolveComponent("up-checkbox-group")+e.resolveComponent("z-paging")+e.resolveComponent("up-button"))()}Math||((()=>"../../uni_modules/uview-plus/components/u-icon/u-icon.js")+(()=>"../../uni_modules/uview-plus/components/u-checkbox/u-checkbox.js")+(()=>"../../uni_modules/uview-plus/components/u-checkbox-group/u-checkbox-group.js")+(()=>"../../uni_modules/z-paging/components/z-paging/z-paging.js")+(()=>"../../uni_modules/uview-plus/components/u-button/u-button.js"))();const n={__name:"applyFor",setup(n){const{nav:u,navTo:a}=o.useNav();let c=e.ref([]);const t=e.ref([]),r=e.ref(null);let s=e.ref(!1);const p=e=>{c.value=e?t.value.map(((e,o)=>e.id)):[],s.value=e,console.log(e)},i=async(o,n)=>{const u={current:o,pageSize:n};l.orderList(u).then((o=>{r.value.complete(o),e.index.hideLoading()})).catch((o=>{r.value.complete(!1),e.index.hideLoading()}))},m=e=>{e.length==t.value.length?s.value=!0:s.value=!1,console.log(e)};let v=()=>!r.value;return e.onPullDownRefresh((()=>{v()||r.value.reload().catch((()=>{}))})),e.onPageScroll((e=>{v()||(r.value.updatePageScrollTop(e.scrollTop),e.scrollTop<10&&r.value.doChatRecordLoadMore())})),e.onReachBottom((()=>{v()||r.value.pageReachBottom()})),(o,l)=>({a:e.p({name:"error-circle-fill",color:"#3c9cff"}),b:e.f(t.value,((o,l,n)=>({a:"8baf785a-3-"+n+",8baf785a-2",b:e.p({shape:"circle",customStyle:{margin:"0"},name:o.id}),c:e.t(o.orderNo),d:e.t(o.electricityAmount),e:e.t(o.serviceAmount),f:e.t(o.actuallyAmount),g:l}))),c:e.o(m),d:e.o((o=>e.isRef(c)?c.value=o:c=o)),e:e.p({placement:"column",modelValue:e.unref(c)}),f:e.sr(r,"8baf785a-1",{k:"paging"}),g:e.o(i),h:e.o((e=>t.value=e)),i:e.p({"use-page-scroll":!0,modelValue:t.value}),j:e.o(p),k:e.o((o=>e.isRef(s)?s.value=o:s=o)),l:e.p({label:"本页全选",shape:"circle",usedAlone:!0,customStyle:{margin:"0 10rpx 0 0"},checked:e.unref(s)}),m:e.o((o=>e.unref(a)(`/pageMake/invoice/applyForDay?list=${encodeURIComponent(JSON.stringify(e.unref(c)))}`))),n:e.p({customStyle:{height:"80rpx",width:"230rpx"},color:"#4879e6",text:"下一步",shape:"circle",disabled:0==e.unref(c).length})})}},u=e._export_sfc(n,[["__scopeId","data-v-8baf785a"]]);n.__runtimeHooks=1,wx.createPage(u);
|
||||
10
unpackage/dist/build/mp-weixin/pageMake/invoice/applyFor.json
vendored
Normal file
10
unpackage/dist/build/mp-weixin/pageMake/invoice/applyFor.json
vendored
Normal 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"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/pageMake/invoice/applyFor.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pageMake/invoice/applyFor.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="invoice data-v-8baf785a"><view class="invoice_tip data-v-8baf785a"><view class="data-v-8baf785a" style="display:flex;align-items:center"><up-icon wx:if="{{a}}" class="data-v-8baf785a" u-i="8baf785a-0" bind:__l="__l" u-p="{{a}}"></up-icon> 发票须知: </view><view class="data-v-8baf785a">1.开票金额为用户实际支付金额(不含返利返佣)</view><view class="data-v-8baf785a">2.未寄出的纸质发票会在开票确认后的20个工作日内寄出</view><view class="data-v-8baf785a">3.单笔订单只支持开具一种发票类型</view><view class="data-v-8baf785a">4.云快充仅为平台方,实际开票主体以申请开票时展示的开票运营商公司为准</view><view class="data-v-8baf785a">5.发票由各家电站运营商提供,一起申请可能会生成多张发票</view><view class="data-v-8baf785a">6.若超过20个工作日仍未收到发票,您可以通过(区号)+12366向开票公司所在区域的主管税务机关进行反馈处理</view></view><view class="data-v-8baf785a" style="height:20rpx"></view><view class="data-v-8baf785a"><z-paging wx:if="{{i}}" class="r data-v-8baf785a" u-s="{{['d']}}" u-r="paging" bindquery="{{g}}" u-i="8baf785a-1" bind:__l="__l" bindupdateModelValue="{{h}}" u-p="{{i}}"><up-checkbox-group wx:if="{{e}}" class="data-v-8baf785a" u-s="{{['d']}}" bindchange="{{c}}" u-i="8baf785a-2,8baf785a-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-8baf785a" style="margin-bottom:20rpx"><view class="data-v-8baf785a" style="display:flex;align-items:center;font-weight:bold;font-size:30rpx;margin-bottom:30rpx"><up-checkbox wx:if="{{item.b}}" class="data-v-8baf785a" u-i="{{item.a}}" bind:__l="__l" u-p="{{item.b}}"></up-checkbox> 充电单号:{{item.c}}</view><view class="data-v-8baf785a" style="display:flex;align-items:center;justify-content:space-between;background-color:#f6f6f6;border-radius:15rpx;padding:20rpx"><view class="data-v-8baf785a" style="font-size:28rpx"><view class="data-v-8baf785a" style="margin-bottom:15rpx">即途展厅</view><view class="data-v-8baf785a" style="margin-bottom:15rpx">{{item.d}}电费</view><view class="data-v-8baf785a">{{item.e}}服务费</view></view><view class="data-v-8baf785a" style="text-align:right"><view class="data-v-8baf785a" style="margin-bottom:25rpx;font-size:36rpx;font-weight:bold;color:#4879e6">{{item.f}} <text class="data-v-8baf785a" style="font-size:30rpx">元</text></view><view class="data-v-8baf785a" style="font-size:28rpx">个人支付</view></view></view></view></up-checkbox-group></z-paging></view><view class="data-v-8baf785a" 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-8baf785a" style="display:flex;align-items:center"><up-checkbox wx:if="{{l}}" class="data-v-8baf785a" bindchange="{{j}}" u-i="8baf785a-4" bind:__l="__l" bindupdateChecked="{{k}}" u-p="{{l}}"></up-checkbox></view><view class="data-v-8baf785a" style="width:230rpx"><up-button wx:if="{{n}}" class="data-v-8baf785a" bindclick="{{m}}" u-i="8baf785a-5" bind:__l="__l" u-p="{{n}}"></up-button></view></view></view>
|
||||
1
unpackage/dist/build/mp-weixin/pageMake/invoice/applyFor.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pageMake/invoice/applyFor.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.invoice_tip.data-v-8baf785a{padding:20rpx;font-size:24rpx;color:#3c9cff;background-color:rgba(60,156,255,.2)}.invoice_tip view.data-v-8baf785a{line-height:40rpx}.invoice_list.data-v-8baf785a{padding:15rpx 30rpx;background-color:#fff}.invoice_list_view.data-v-8baf785a{display:flex;align-items:center;justify-content:space-between;font-size:28rpx;margin-bottom:25rpx}.invoice_list_view_left.data-v-8baf785a{color:#646368}.invoice_list_view_right.data-v-8baf785a{color:#262626}
|
||||
1
unpackage/dist/build/mp-weixin/pageMake/invoice/applyForDay.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pageMake/invoice/applyForDay.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../common/vendor.js"),o=require("../../hooks/useNav.js"),t=require("../../api/api.js");if(!Array){(e.resolveComponent("up-icon")+e.resolveComponent("up-button"))()}Math||((()=>"../../uni_modules/uview-plus/components/u-icon/u-icon.js")+(()=>"../../uni_modules/uview-plus/components/u-button/u-button.js"))();const n={__name:"applyForDay",setup(n){const{nav:r,navTo:c}=o.useNav(),s=e.ref([]);let u=e.ref([]);return e.onLoad((async e=>{u.value=JSON.parse(decodeURIComponent(e.list)),console.log(u.value);let o=await t.preApply({ordersIds:JSON.parse(decodeURIComponent(e.list))});s.value=o})),(o,t)=>({a:e.p({name:"error-circle-fill",color:"#3c9cff"}),b:e.f(s.value,((o,t,n)=>({a:e.t(o.merchantName),b:e.t(o.electricityAmount),c:e.t(o.serviceAmount),d:e.t(o.invoiceAmount),e:t}))),c:e.o((o=>e.unref(c)(`/pageMake/invoice/makeInvoice?list=${encodeURIComponent(JSON.stringify(e.unref(u)))}`))),d:e.p({customStyle:{height:"80rpx",width:"230rpx"},color:"#4879e6",text:"下一步",shape:"circle"})})}},r=e._export_sfc(n,[["__scopeId","data-v-5655c689"]]);wx.createPage(r);
|
||||
7
unpackage/dist/build/mp-weixin/pageMake/invoice/applyForDay.json
vendored
Normal file
7
unpackage/dist/build/mp-weixin/pageMake/invoice/applyForDay.json
vendored
Normal 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"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/pageMake/invoice/applyForDay.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pageMake/invoice/applyForDay.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="invoice data-v-5655c689"><view class="invoice_tip data-v-5655c689"><view class="data-v-5655c689" style="display:flex;align-items:center"><up-icon wx:if="{{a}}" class="data-v-5655c689" u-i="5655c689-0" bind:__l="__l" u-p="{{a}}"></up-icon> 发票须知: </view><view class="data-v-5655c689">1.开票金额为用户实际支付金额(不含返利返佣)</view><view class="data-v-5655c689">2.未寄出的纸质发票会在开票确认后的20个工作日内寄出</view><view class="data-v-5655c689">3.单笔订单只支持开具一种发票类型</view><view class="data-v-5655c689">4.云快充仅为平台方,实际开票主体以申请开票时展示的开票运营商公司为准</view><view class="data-v-5655c689">5.发票由各家电站运营商提供,一起申请可能会生成多张发票</view><view class="data-v-5655c689">6.若超过20个工作日仍未收到发票,您可以通过(区号)+12366向开票公司所在区域的主管税务机关进行反馈处理</view></view><view class="data-v-5655c689" style="height:20rpx"></view><view class="data-v-5655c689"><view wx:for="{{b}}" wx:for-item="item" wx:key="e" class="invoice_list data-v-5655c689" style="margin-bottom:20rpx"><view class="data-v-5655c689" style="display:flex;align-items:center;font-weight:bold;font-size:30rpx;margin-bottom:30rpx"> 开票运营商:{{item.a}}</view><view class="data-v-5655c689" style="display:flex;align-items:center;justify-content:space-between;background-color:#f6f6f6;border-radius:15rpx;padding:20rpx"><view class="data-v-5655c689" style="font-size:28rpx"><view class="data-v-5655c689" style="margin-bottom:15rpx">{{item.b}}电费</view><view class="data-v-5655c689">{{item.c}}服务费</view></view><view class="data-v-5655c689" style="text-align:right"><view class="data-v-5655c689" style="margin-bottom:25rpx;font-size:36rpx;font-weight:bold;color:#4879e6">{{item.d}} <text class="data-v-5655c689" style="font-size:30rpx">元</text></view><view class="data-v-5655c689" style="font-size:28rpx">个人支付</view></view></view></view></view><view class="data-v-5655c689" 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-5655c689"></view><view class="data-v-5655c689" style="width:230rpx"><up-button wx:if="{{d}}" class="data-v-5655c689" bindclick="{{c}}" u-i="5655c689-1" bind:__l="__l" u-p="{{d}}"></up-button></view></view></view>
|
||||
1
unpackage/dist/build/mp-weixin/pageMake/invoice/applyForDay.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pageMake/invoice/applyForDay.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.invoice_tip.data-v-5655c689{padding:20rpx;font-size:24rpx;color:#3c9cff;background-color:rgba(60,156,255,.2)}.invoice_tip view.data-v-5655c689{line-height:40rpx}.invoice_list.data-v-5655c689{padding:15rpx 30rpx;background-color:#fff}.invoice_list_view.data-v-5655c689{display:flex;align-items:center;justify-content:space-between;font-size:28rpx;margin-bottom:25rpx}.invoice_list_view_left.data-v-5655c689{color:#646368}.invoice_list_view_right.data-v-5655c689{color:#262626}
|
||||
1
unpackage/dist/build/mp-weixin/pageMake/invoice/invoice.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pageMake/invoice/invoice.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../common/vendor.js"),c=require("../../hooks/useNav.js"),o=require("../../api/api.js");if(!Array){(e.resolveComponent("up-icon")+e.resolveComponent("up-tag")+e.resolveComponent("z-paging")+e.resolveComponent("up-button"))()}Math||((()=>"../../uni_modules/uview-plus/components/u-icon/u-icon.js")+(()=>"../../uni_modules/uview-plus/components/u-tag/u-tag.js")+(()=>"../../uni_modules/z-paging/components/z-paging/z-paging.js")+(()=>"../../uni_modules/uview-plus/components/u-button/u-button.js"))();const t={__name:"invoice",setup(t){const{nav:n,navTo:a}=c.useNav(),l=e.ref([]),i=e.ref(null),u=async(c,t)=>{const n={current:c,pageSize:t};o.invoiceList(n).then((c=>{i.value.complete(c),e.index.hideLoading()})).catch((c=>{i.value.complete(!1),e.index.hideLoading()}))};let s=()=>!i.value;return e.onPullDownRefresh((()=>{s()||i.value.reload().catch((()=>{}))})),e.onPageScroll((e=>{s()||(i.value.updatePageScrollTop(e.scrollTop),e.scrollTop<10&&i.value.doChatRecordLoadMore())})),e.onReachBottom((()=>{s()||i.value.pageReachBottom()})),(c,o)=>({a:e.p({name:"error-circle-fill",color:"#3c9cff"}),b:e.f(l.value,((c,o,t)=>e.e({a:"c39f8dcc-2-"+t+",c39f8dcc-1",b:e.t(c.createTime),c:"c39f8dcc-3-"+t+",c39f8dcc-1",d:e.t(c.invoiceTitle),e:e.t(c.merchantInvoice||"-"),f:0==c.status},0==c.status?{g:"c39f8dcc-4-"+t+",c39f8dcc-1",h:e.p({text:"待开票",type:"warning",plain:!0,plainFill:!0})}:{},{i:1==c.status},1==c.status?{j:"c39f8dcc-5-"+t+",c39f8dcc-1",k:e.p({text:"已开票",type:"success",plain:!0,plainFill:!0})}:{},{l:-1==c.status},-1==c.status?{m:"c39f8dcc-6-"+t+",c39f8dcc-1",n:e.p({text:"取消",type:"error",plain:!0,plainFill:!0})}:{},{o:e.t(c.invoiceAmount),p:o}))),c:e.p({name:"clock-fill"}),d:e.p({name:"arrow-right"}),e:e.sr(i,"c39f8dcc-1",{k:"paging"}),f:e.o(u),g:e.o((e=>l.value=e)),h:e.p({"use-page-scroll":!0,modelValue:l.value}),i:e.o((c=>e.unref(a)("/pageMake/invoice/applyFor"))),j:e.p({customStyle:{height:"80rpx"},color:"#4879e6",text:"申请开票",shape:"circle"})})}},n=e._export_sfc(t,[["__scopeId","data-v-c39f8dcc"]]);t.__runtimeHooks=1,wx.createPage(n);
|
||||
9
unpackage/dist/build/mp-weixin/pageMake/invoice/invoice.json
vendored
Normal file
9
unpackage/dist/build/mp-weixin/pageMake/invoice/invoice.json
vendored
Normal 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"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/pageMake/invoice/invoice.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pageMake/invoice/invoice.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="invoice data-v-c39f8dcc"><view class="invoice_tip data-v-c39f8dcc"><view class="data-v-c39f8dcc" style="display:flex;align-items:center"><up-icon wx:if="{{a}}" class="data-v-c39f8dcc" u-i="c39f8dcc-0" bind:__l="__l" u-p="{{a}}"></up-icon> 温馨提示: </view><view class="data-v-c39f8dcc">1.云充电仅为平台方,实际开票主体以下方展示的开票公司为准</view><view class="data-v-c39f8dcc">2.若超过20个工作日仍未收到发票,您可以通过(区号)+12366向开票公司所在区域的主管税务机关进行反馈处理</view></view><view class="data-v-c39f8dcc" style="height:20rpx"></view><z-paging wx:if="{{h}}" class="r data-v-c39f8dcc" u-s="{{['d']}}" u-r="paging" bindquery="{{f}}" u-i="c39f8dcc-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-c39f8dcc"><view class="invoice_list_view data-v-c39f8dcc"><view class="invoice_list_view_left data-v-c39f8dcc" style="display:flex;align-items:center"><up-icon wx:if="{{c}}" class="data-v-c39f8dcc" u-i="{{item.a}}" bind:__l="__l" u-p="{{c}}"></up-icon> {{item.b}}</view><up-icon wx:if="{{d}}" class="data-v-c39f8dcc" u-i="{{item.c}}" bind:__l="__l" u-p="{{d}}"></up-icon></view><view class="invoice_list_view data-v-c39f8dcc"><view class="invoice_list_view_left data-v-c39f8dcc">发票抬头</view><view class="invoice_list_view_right data-v-c39f8dcc">{{item.d}}</view></view><view class="invoice_list_view data-v-c39f8dcc"><view class="invoice_list_view_left data-v-c39f8dcc">开票运营商</view><view class="invoice_list_view_right data-v-c39f8dcc">{{item.e}}</view></view><view class="data-v-c39f8dcc" style="border:1px dashed #eee"></view><view class="data-v-c39f8dcc" style="height:20rpx"></view><view class="data-v-c39f8dcc" style="display:flex;align-items:center;justify-content:space-between"><view class="data-v-c39f8dcc"><up-tag wx:if="{{item.f}}" class="data-v-c39f8dcc" u-i="{{item.g}}" bind:__l="__l" u-p="{{item.h}}"></up-tag><up-tag wx:if="{{item.i}}" class="data-v-c39f8dcc" u-i="{{item.j}}" bind:__l="__l" u-p="{{item.k}}"></up-tag><up-tag wx:if="{{item.l}}" class="data-v-c39f8dcc" u-i="{{item.m}}" bind:__l="__l" u-p="{{item.n}}"></up-tag></view><view class="data-v-c39f8dcc" style="font-size:36rpx;font-weight:bold">{{item.o}} <text class="data-v-c39f8dcc" style="font-size:30rpx">元</text></view></view></view></z-paging><view class="data-v-c39f8dcc" style="height:150rpx"></view><view class="data-v-c39f8dcc" style="position:fixed;bottom:0;left:0;width:750rpx;padding:20rpx 50rpx;background-color:#fff"><up-button wx:if="{{j}}" class="data-v-c39f8dcc" bindclick="{{i}}" u-i="c39f8dcc-7" bind:__l="__l" u-p="{{j}}"></up-button></view></view>
|
||||
1
unpackage/dist/build/mp-weixin/pageMake/invoice/invoice.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pageMake/invoice/invoice.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.invoice_tip.data-v-c39f8dcc{padding:20rpx;font-size:24rpx;color:#3c9cff;background-color:rgba(60,156,255,.2)}.invoice_tip view.data-v-c39f8dcc{line-height:40rpx}.invoice_list.data-v-c39f8dcc{padding:15rpx 30rpx;background-color:#fff}.invoice_list_view.data-v-c39f8dcc{display:flex;align-items:center;justify-content:space-between;font-size:28rpx;margin-bottom:25rpx}.invoice_list_view_left.data-v-c39f8dcc{color:#646368}.invoice_list_view_right.data-v-c39f8dcc{color:#262626}
|
||||
1
unpackage/dist/build/mp-weixin/pageMake/invoice/makeInvoice.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pageMake/invoice/makeInvoice.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../common/vendor.js"),n=require("../../api/api.js");if(!Array){(e.resolveComponent("up-icon")+e.resolveComponent("up-textarea")+e.resolveComponent("up-button")+e.resolveComponent("up-picker"))()}Math||((()=>"../../uni_modules/uview-plus/components/u-icon/u-icon.js")+(()=>"../../uni_modules/uview-plus/components/u-textarea/u-textarea.js")+(()=>"../../uni_modules/uview-plus/components/u-button/u-button.js")+(()=>"../../uni_modules/uview-plus/components/u-picker/u-picker.js"))();const o={__name:"makeInvoice",setup(o){e.ref([]);let i=e.ref({invoiceType:null,subjectType:null,ordersIds:[]}),u=e.ref(!1),a=e.ref(!1);e.onLoad((async e=>{console.log(e),console.log(JSON.parse(decodeURIComponent(e.list))),i.value.ordersIds=JSON.parse(decodeURIComponent(e.list))}));const l=async()=>i.value.subjectType?i.value.invoiceType?(1!=!i.value.invoiceType||i.value.taxNumber)&&(1!=!i.value.subjectType||i.value.registrationPhone)&&(1!=!i.value.subjectType||2!=!i.value.invoiceType||i.value.taxNumber)?1!=!i.value.subjectType||2!=!i.value.invoiceType||i.value.registrationAddress?1!=!i.value.subjectType||2!=!i.value.invoiceType||i.value.registrationPhone?1!=!i.value.subjectType||2!=!i.value.invoiceType||i.value.bankName?1!=!i.value.subjectType||2!=!i.value.invoiceType||i.value.bankAccount?i.value.name?i.value.address?i.value.phone?i.value.email?(await n.apply(i.value),void e.index.navigateBack({delta:3})):e.index.showToast({title:"请输入收票人邮箱",icon:"none"}):e.index.showToast({title:"请输入收票人电话",icon:"none"}):e.index.showToast({title:"请输入收票人地址",icon:"none"}):e.index.showToast({title:"请输入收票人姓名",icon:"none"}):e.index.showToast({title:"请输入开户行账户",icon:"none"}):e.index.showToast({title:"请输入开户行名称",icon:"none"}):e.index.showToast({title:"请输入公司电话",icon:"none"}):e.index.showToast({title:"请输入公司地址",icon:"none"}):e.index.showToast({title:"请输入发票税号",icon:"none"}):e.index.showToast({title:"请选择发票类型",icon:"none"}):e.index.showToast({title:"请选择发票主体",icon:"none"}),t=e=>{i.value.invoiceType=e.value[0].id,u.value=!1,console.log(i.value.invoiceType)},r=e=>{i.value.subjectType=e.value[0].id,a.value=!1,2==e.value[0].id&&(i.value.invoiceType=1)},s=()=>{2!=i.value.subjectType&&(u.value=!0)},c=e.reactive([[{label:"增值税普通发票",id:1},{label:"增值税专用发票",id:2}]]),v=e.reactive([[{label:"企业",id:1},{label:"个人",id:2}]]);return(n,o)=>e.e({a:e.p({name:"error-circle-fill",color:"#3c9cff"}),b:e.t(e.unref(i).subjectType?v[0].find((n=>n.id==e.unref(i).subjectType)).label:"请选择"),c:e.unref(i).subjectType?"":"#808080",d:e.p({name:"arrow-down"}),e:e.o((n=>e.isRef(a)?a.value=!0:a=!0)),f:e.t(e.unref(i).invoiceType?c[0].find((n=>n.id==e.unref(i).invoiceType)).label:"请选择"),g:e.unref(i).invoiceType?"":"#808080",h:e.p({name:"arrow-down"}),i:e.o(s),j:e.unref(i).invoiceTitle,k:e.o((n=>e.unref(i).invoiceTitle=n.detail.value)),l:1==e.unref(i).subjectType},1==e.unref(i).subjectType?{m:e.unref(i).taxNumber,n:e.o((n=>e.unref(i).taxNumber=n.detail.value))}:{},{o:2==e.unref(i).invoiceType},2==e.unref(i).invoiceType?{p:e.unref(i).registrationAddress,q:e.o((n=>e.unref(i).registrationAddress=n.detail.value))}:{},{r:2==e.unref(i).invoiceType},2==e.unref(i).invoiceType?{s:e.unref(i).registrationPhone,t:e.o((n=>e.unref(i).registrationPhone=n.detail.value))}:{},{v:2==e.unref(i).invoiceType},2==e.unref(i).invoiceType?{w:e.unref(i).bankName,x:e.o((n=>e.unref(i).bankName=n.detail.value))}:{},{y:2==e.unref(i).invoiceType},2==e.unref(i).invoiceType?{z:e.unref(i).bankAccount,A:e.o((n=>e.unref(i).bankAccount=n.detail.value))}:{},{B:e.unref(i).name,C:e.o((n=>e.unref(i).name=n.detail.value)),D:e.unref(i).phone,E:e.o((n=>e.unref(i).phone=n.detail.value)),F:e.unref(i).address,G:e.o((n=>e.unref(i).address=n.detail.value)),H:e.unref(i).email,I:e.o((n=>e.unref(i).email=n.detail.value)),J:e.o((n=>e.unref(i).invoiceRemark=n)),K:e.p({placeholder:"请输入内容",modelValue:e.unref(i).invoiceRemark}),L:e.o(l),M:e.p({customStyle:{height:"80rpx",width:"230rpx"},color:"#4879e6",text:"确认开票",shape:"circle"}),N:e.o(t),O:e.o((n=>e.isRef(u)?u.value=!1:u=!1)),P:e.p({keyName:"label",show:e.unref(u),columns:c}),Q:e.o(r),R:e.o((n=>e.isRef(a)?a.value=!1:a=!1)),S:e.p({keyName:"label",show:e.unref(a),columns:v})})}},i=e._export_sfc(o,[["__scopeId","data-v-fc7ee96e"]]);wx.createPage(i);
|
||||
9
unpackage/dist/build/mp-weixin/pageMake/invoice/makeInvoice.json
vendored
Normal file
9
unpackage/dist/build/mp-weixin/pageMake/invoice/makeInvoice.json
vendored
Normal 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"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/pageMake/invoice/makeInvoice.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pageMake/invoice/makeInvoice.wxml
vendored
Normal file
File diff suppressed because one or more lines are too long
1
unpackage/dist/build/mp-weixin/pageMake/invoice/makeInvoice.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pageMake/invoice/makeInvoice.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
page{background-color:#f5f5f5}.invoice_tip.data-v-fc7ee96e{padding:20rpx;font-size:24rpx;color:#3c9cff;background-color:rgba(60,156,255,.2)}.invoice_tip view.data-v-fc7ee96e{line-height:40rpx}.invoice_list.data-v-fc7ee96e{padding:15rpx 30rpx;background-color:#fff}.invoice_list_view.data-v-fc7ee96e{display:flex;align-items:center;justify-content:space-between;font-size:28rpx;margin-bottom:25rpx}.invoice_list_view_left.data-v-fc7ee96e{color:#646368}.invoice_list_view_right.data-v-fc7ee96e{color:#262626}
|
||||
1
unpackage/dist/build/mp-weixin/pageMake/refund/refund.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pageMake/refund/refund.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../common/vendor.js"),t=require("../../api/api.js"),o={data:()=>({balance:0,dataFrom:{amount:"",refundReason:""}}),onLoad(e){e.balance&&(this.balance=e.balance)},methods:{toKft(){e.index.makePhoneCall({phoneNumber:"4008005326"})},refundTo(){if(!this.dataFrom.amount)return e.index.showToast({title:"请输入退款金额",icon:"none"});t.refund(this.dataFrom).then((t=>{e.index.showModal({title:"提示",content:"提交成功",showCancel:!1,success:function(t){e.index.navigateBack()}})}))}}};if(!Array){(e.resolveComponent("up-textarea")+e.resolveComponent("up-button"))()}Math||((()=>"../../uni_modules/uview-plus/components/u-textarea/u-textarea.js")+(()=>"../../uni_modules/uview-plus/components/u-button/u-button.js"))();const a=e._export_sfc(o,[["render",function(t,o,a,n,r,u){return{a:`可申请退款${r.balance}元`,b:r.dataFrom.amount,c:e.o((e=>r.dataFrom.amount=e.detail.value)),d:e.o((e=>r.dataFrom.amount=r.balance)),e:e.o((e=>r.dataFrom.refundReason=e)),f:e.p({placeholder:"请输入退款理由",modelValue:r.dataFrom.refundReason}),g:e.o(u.toKft),h:e.p({customStyle:{height:"80rpx"},text:"联系客服",shape:"circle"}),i:e.o(u.refundTo),j:e.p({customStyle:{height:"80rpx"},color:"#4879e6",text:"提交",shape:"circle"})}}]]);wx.createPage(a);
|
||||
7
unpackage/dist/build/mp-weixin/pageMake/refund/refund.json
vendored
Normal file
7
unpackage/dist/build/mp-weixin/pageMake/refund/refund.json
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"navigationBarTitleText": "退款申请",
|
||||
"usingComponents": {
|
||||
"up-textarea": "../../uni_modules/uview-plus/components/u-textarea/u-textarea",
|
||||
"up-button": "../../uni_modules/uview-plus/components/u-button/u-button"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/pageMake/refund/refund.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pageMake/refund/refund.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="p30"><view style="font-size:36rpx;font-weight:bold;margin-top:40rpx"> 退款信息 <text style="font-size:26rpx;color:chocolate;font-weight:500">活动金额不在退款范围内</text></view><view style="display:flex;align-items:center;height:100rpx;justify-content:space-between"><view>¥</view><input placeholder="{{a}}" style="width:500rpx;font-size:32rpx" type="number" value="{{b}}" bindinput="{{c}}"/><view bindtap="{{d}}" style="font-size:28rpx;color:#4879e6">全部</view></view><view style="font-size:28rpx;margin-bottom:20rpx">申请退款理由</view><view style="margin-bottom:30rpx"><up-textarea wx:if="{{f}}" u-i="53c42ebc-0" bind:__l="__l" bindupdateModelValue="{{e}}" u-p="{{f}}"></up-textarea></view><view style="font-weight:bold;font-size:30rpx;margin-bottom:20rpx">退款须知:</view><view style="font-size:26rpx;color:#60646b;line-height:50rpx">1.退款金额不包含充值时使用的第三方优惠抵扣金额,退款时充值享受到的优惠金额也将全部扣除</view><view style="font-size:26rpx;color:#60646b;line-height:50rpx">2.您的退款金额到账时间由各充值渠道(微信/支付宝)决定,请耐心等待,约1~3工作日到账</view><view style="font-size:26rpx;color:#60646b;line-height:50rpx">3.退款按照充值记录进行逐笔退款,一次申请可能产生多笔退款到账记录,请注意查收</view><view style="font-size:26rpx;color:#60646b;line-height:50rpx">4.正在充电或存在异常订单时无法进行退款操作</view><view style="font-size:26rpx;color:#60646b;line-height:50rpx">5.根据各充值渠道规则,只可退一年内的充值金额</view><view style="position:fixed;bottom:0;left:0;width:750rpx;padding:20rpx 30rpx;border-top:1rpx solid #eee" class="flex-acsb"><view style="width:230rpx"><up-button wx:if="{{h}}" bindclick="{{g}}" u-i="53c42ebc-1" bind:__l="__l" u-p="{{h}}"></up-button></view><view style="width:400rpx"><up-button wx:if="{{j}}" bindclick="{{i}}" u-i="53c42ebc-2" bind:__l="__l" u-p="{{j}}"></up-button></view></view></view>
|
||||
1
unpackage/dist/build/mp-weixin/pageMake/refund/refund.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pageMake/refund/refund.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
page{background-color:#fff}
|
||||
Reference in New Issue
Block a user