Commit 3ffb55a1 by chenwq

1.1和2.1多入口,适配票通

1 parent afcb0261
Showing 38 changed files with 1323 additions and 93 deletions
...@@ -349,8 +349,16 @@ module.exports = { ...@@ -349,8 +349,16 @@ module.exports = {
getStaffMentorFlag(data) { getStaffMentorFlag(data) {
return api.post('dj.api.smartcarlife.employee.isMentor', data) return api.post('dj.api.smartcarlife.employee.isMentor', data)
}, },
// 查询店铺配置 // 查询店铺配置
getShopMerchantPointConfig(data) { getShopMerchantPointConfig(data) {
return api.post("dj.api.smartcarlife.shopMerchantPointConfig.get", data); return api.post("dj.api.smartcarlife.shopMerchantPointConfig.get", data);
},
// 申请开票
createOrderCode(data) {
return api.post("dj.api.smartcarlife.vpt.invoiceIssueQrcode.createByOrder", data);
},
// 根据订单号查询二维码和发票信息
getOrderCode(data) {
return api.post("dj.api.smartcarlife.vpt.invoiceIssueQrcode.getByOrderCode", data);
} }
} }
...@@ -114,7 +114,9 @@ ...@@ -114,7 +114,9 @@
"pages/supervisorDaily/supervisorDaily", "pages/supervisorDaily/supervisorDaily",
"pages/residentManage/residentManage", "pages/residentManage/residentManage",
"pages/mentorshipManage/mentorshipManage", "pages/mentorshipManage/mentorshipManage",
"pages/tabWorkOrderRelevance/index" "pages/tabWorkOrderRelevance/index",
"pages/invoiceCode/invoiceCode",
"pages/invoiceResult/invoiceResult"
] ]
}, },
{ {
......
// packageEquity/components/MoreBtn/MoreBtn.js
Component({
externalClasses: ['popup-slot-class'],
/**
* 组件的属性列表
*/
properties: {
popupVisible: {
type: Boolean,
value: false,
observer: function (n, o) {
n && wx.hideKeyboard()
this.setData({
showPopup: n
})
}
},
title: {
type: String,
value: '更多操作'
},
height: {
type: String,
value: '85%'
},
btnsList: {
type: Array,
value: [],
observer: function(n) {
this.setData({
height: (112 * n.length + 74 + 124) + 'rpx'
})
}
},
slotStyle: String
},
/**
* 组件的初始数据
*/
data: {},
/**
* 组件的方法列表
*/
methods: {
noScroll() { },
hidePopup() {
this.setData({
popupVisible: false
})
this.triggerEvent('cancel')
},
handleClick(e) {
let { idx } = e.currentTarget.dataset
let { btnsList } = this.data
const obj = btnsList[idx]
this.triggerEvent('btnClick', obj)
}
},
attached() {
// console.log(wx.$util.isFullSucreen(), 'wx.$util.isFullSucreen()')
this.setData({
isFullSucreen: wx.$util.isFullSucreen(true)
})
}
})
\ No newline at end of file \ No newline at end of file
{
"component": true,
"usingComponents": {}
}
\ No newline at end of file \ No newline at end of file
/* packageEquity/components/MoreBtn/MoreBtn.wxss */
.popup {
position: fixed;
top: 0;
left: 0;
bottom: 0;
right: 0;
z-index: 998;
}
.popup-bg {
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
background-color: rgba(0, 0, 0, .6);
}
.text-center {
display: flex;
align-items: center;
justify-content: center;
}
.popup-content {
position: absolute;
left: 0;
width: 100%;
background: #F4F5F7;
animation: show-popup .5s forwards;
box-sizing: border-box;
border-radius: var(--fontSize20) var(--fontSize20) 0 0;
}
.popup-title {
box-sizing: border-box;
height: 72rpx;
line-height: 72rpx;
font-size: var(--fontSize24);
color: #9B9B9E;
background: #FFFFFF;
border-radius: var(--fontSize20) var(--fontSize20) 0 0;
border-bottom: var(--fontSize2) solid #EBEDF0;
}
.popup-slot {
box-sizing: border-box;
height: calc(100% - var(--fontSize214));
background: #FFFFFF;
}
.popup-footer {
box-sizing: border-box;
background: #FFFFFF;
margin-top: 12rpx;
}
.popup-footer.isFullSucreen {
padding-bottom: var(--fontSize68) !important;
}
.popup-footer .btn {
width: 100%;
height: 112rpx;
box-sizing: border-box;
border-radius: var(--fontSize12);
font-size: var(--fontSize32);
}
.popup-footer .cancel {
color: #222222;
}
@keyframes show-popup {
0% {
bottom: -100%;
}
100% {
bottom: 0;
}
}
.popup-row {
height: 112rpx;
line-height: 112rpx;
font-weight: 500;
font-size: 32rpx;
color: #222222;
text-align: center;
}
\ No newline at end of file \ No newline at end of file
<!--packageEquity/components/MoreBtn/MoreBtn.wxml-->
<view class="popup" hidden="{{ !showPopup }}" catchtouchmove="noScroll">
<view class="popup-bg" bindtap="hidePopup"></view>
<view class="popup-content" style="height:{{ height }}">
<block wx:if="{{ title }}">
<view class="popup-title text-center">{{title}}</view>
</block>
<view class="popup-slot popup-slot-class" style="{{slotStyle}}">
<view wx:for="{{btnsList}}" wx:key="index" class="popup-row" data-idx="{{index}}" bindtap="handleClick">{{item.name}}</view>
</view>
<view class="popup-footer {{ isFullSucreen?'isFullSucreen':'' }}">
<view class="cancel btn text-center" bind:tap="hidePopup">取消</view>
</view>
</view>
</view>
\ No newline at end of file \ No newline at end of file
// components/SelectInvoiceModal/SelectInvoiceModal.js
import commonApi from '~/api/api'
Component({
/**
* 组件的属性列表
*/
properties: {
invoiveVisible: {
type: Boolean,
value: false,
observer: function (n, o) {
this.handleOpen()
}
},
orderInfo: {
type: Object,
value: {}
}
},
/**
* 组件的初始数据
*/
data: {
selectType: 81,
loading: false
},
/**
* 组件的方法列表
*/
methods: {
selectType(e) {
let {
type
} = e.currentTarget.dataset;
this.setData({
selectType: type,
});
},
handleOpen() {
wx.$modal(
this, {
show: true,
title: "选择发票类型",
tabTitleShow: false,
success: (res) => {
// 跳转新增订单页面 并带特定参数
let {
selectType,
orderInfo,
loading
} = this.data;
if (loading) {
return true
}
console.log(orderInfo, 'orderInfo----')
const params = {
orderCode: orderInfo.orderCode,
invoiceType: selectType
}
wx.$util.showLoading()
this.setData({
loading: true
})
commonApi.createOrderCode(params).then(res => {
wx.$util.hideLoading()
if (res.code == 0) {
wx.$util.showToast('开票成功')
wx.$router.go("tabWorkOrder.invoiceCode", {
obj: {
orderCode: orderInfo.orderCode,
...res.data
}
})
} else {
wx.$util.showToast(res.message)
}
}).finally(() => {
this.setData({
loading: false
})
})
},
error: () => { },
},
"#modal"
);
}
},
})
\ No newline at end of file \ No newline at end of file
{
"component": true,
"usingComponents": {
"modal": "/components/modal/modal"
}
}
\ No newline at end of file \ No newline at end of file
/* components/SelectInvoiceModal/SelectInvoiceModal.wxss */
.modatcontent {
box-sizing: border-box;
padding: var(--fontSize48) 0;
}
.modal {
.icon {
width: 96rpx;
height: 96rpx;
margin-right: 30rpx;
}
.modalbox {
display: flex;
align-items: center;
box-sizing: border-box;
width: 522rpx;
height: 136rpx;
background: #F7F8FA;
border-radius: 8rpx;
font-family: PingFangSC-Medium;
font-weight: 500;
font-size: 28rpx;
color: #292D33;
padding-left: 24rpx;
margin: 0 auto;
&+.modalbox {
margin-top: 16rpx;
}
}
.act {
background: #347bff1a;
border: 2rpx solid #347BFF;
color: #3582EE;
}
}
\ No newline at end of file \ No newline at end of file
<!--components/SelectInvoiceModal/SelectInvoiceModal.wxml-->
<!-- 申请开票 - 选择发票类型弹窗 -->
<modal id="modal" class="modal" custom="true" btns="{{ ['取消','确定'] }}">
<view class="modatcontent">
<view class="modalbox {{ selectType == 81?'act': '' }} com" bindtap="selectType" data-type="81">
<gl-image class="icon" src="/miniProgram/order1.png"></gl-image>
普通发票
</view>
<view class="modalbox cancle {{ selectType == 82?'act': '' }}" bindtap="selectType" data-type="82">
<gl-image class="icon" src="/miniProgram/order3.png"></gl-image>
增值税专用发票
</view>
</view>
</modal>
\ No newline at end of file \ No newline at end of file
...@@ -19,6 +19,7 @@ let timeoutId; ...@@ -19,6 +19,7 @@ let timeoutId;
const IMG_URL2 = const IMG_URL2 =
"https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/"; "https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/";
import carLifeApi from "../../../carEquityApi"; import carLifeApi from "../../../carEquityApi";
import commonApi from '~/api/api'
Component({ Component({
/** /**
* 组件的属性列表 * 组件的属性列表
...@@ -208,7 +209,15 @@ Component({ ...@@ -208,7 +209,15 @@ Component({
repealReason: '', repealReason: '',
repealId: '', repealId: '',
zyPayStatus: '', // 合同协议状态 zyPayStatus: '', // 合同协议状态
selectType: 1 selectType: 1,
// 更多按钮
moreBtnVisible: false,
btnOrderInfo: {},
btnsList: [{
name: '申请开票'
}],
// 选择发票
invoiveVisible: false
}, },
observers: { observers: {
mode: function (value) { mode: function (value) {
...@@ -1128,6 +1137,70 @@ Component({ ...@@ -1128,6 +1137,70 @@ Component({
zyPayStatus: e.detail.zyPayStatus zyPayStatus: e.detail.zyPayStatus
}); });
}, },
/** 更多按钮 */
handleMoreBtn(e) {
let { target } = e.currentTarget.dataset
console.log(target, 'tttt')
this.setData({
'btnsList[0].name': target.invoicing == 2 ? '查看发票' : '申请开票'
})
target.orderCode = target.payId
this.handleBtnCancel()
this.setData({
btnOrderInfo: target || {}
})
},
handleBtnCancel() {
let { moreBtnVisible } = this.data
this.setData({
moreBtnVisible: !moreBtnVisible
})
},
handleBtnClick(e) {
let obj = e.detail
switch (obj.name) {
case '申请开票':
this.handleSelectInvoice()
break
case '查看发票':
this.handleInvoiceDetail()
break
}
this.handleBtnCancel()
},
handleSelectInvoice() {
let { invoiveVisible } = this.data
this.setData({
invoiveVisible: !invoiveVisible
})
},
handleInvoiceDetail() {
let { btnOrderInfo } = this.data
const params = {
orderCode: btnOrderInfo.payId
}
commonApi.getOrderCode(params).then(res => {
let { invoiceInfo, invoiceIssueQrcode } = res.data
if (invoiceInfo) {
if(invoiceInfo.code == '0000') {
wx.navigateTo({
url: `/pages/webView/webView?url=${encodeURIComponent(invoiceInfo.downloadUrl)}`
})
} else {
wx.$router.go("tabWorkOrder.invoiceResult", {
obj: {
bizOrderCode: invoiceIssueQrcode.bizOrderCode,
invoiceAmount: invoiceIssueQrcode.invoiceAmount,
createdDate: invoiceInfo.createdDate,
code: invoiceInfo.code,
downloadUrl: invoiceInfo.downloadUrl,
msg: invoiceInfo.msg
}
})
}
}
})
},
/**获取门店主营品牌 */ /**获取门店主营品牌 */
async getMerchantCarBrandList() { async getMerchantCarBrandList() {
const { userInfo } = this.data, const { userInfo } = this.data,
......
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
"component": true, "component": true,
"usingComponents": { "usingComponents": {
"order-screen": "../components/OrderScreen/OrderScreen", "order-screen": "../components/OrderScreen/OrderScreen",
"zy-pay-popup": "../components/zyPayPopup/zyPayPopup" "zy-pay-popup": "../components/zyPayPopup/zyPayPopup",
"more-btn": "/components/MoreBtn/MoreBtn",
"select-invoice-modal": "/components/SelectInvoiceModal/SelectInvoiceModal"
} }
} }
\ No newline at end of file \ No newline at end of file
...@@ -151,6 +151,9 @@ ...@@ -151,6 +151,9 @@
</view> </view>
<!-- footer --> <!-- footer -->
<view class="item-footer"> <view class="item-footer">
<view class="btn_class" wx:if="{{item.showInvoiceEntrance}}">
<view class="order-btn default-btn padding_20" bindtap="handleMoreBtn" data-target="{{ item }}">更多</view>
</view>
<!-- 超管isSuper/商户类型 userType 1账号不可操作 --> <!-- 超管isSuper/商户类型 userType 1账号不可操作 -->
<block wx:if="{{ !userInfo.isSuper && userInfo.userType == 2||staffUuid }}"> <block wx:if="{{ !userInfo.isSuper && userInfo.userType == 2||staffUuid }}">
<block wx:if="{{ item.zyPayStatus == 1 && (item.orderStatus == 3 || item.orderStatus == 4 || item.orderStatus == 7) }}"> <block wx:if="{{ item.zyPayStatus == 1 && (item.orderStatus == 3 || item.orderStatus == 4 || item.orderStatus == 7) }}">
...@@ -170,8 +173,8 @@ ...@@ -170,8 +173,8 @@
<view class="order-btn default-btn padding_20" bindtap="jumpReception" data-item="{{ item }}">接待记录</view> <view class="order-btn default-btn padding_20" bindtap="jumpReception" data-item="{{ item }}">接待记录</view>
</block> </block>
<block wx:if="{{ !staffUuid&&isOrder }}"> <block wx:if="{{ !staffUuid&&isOrder }}">
<view wx:if="{{ item.orderStatus == '-1' || item.orderStatus == '0' }}" class="order-btn" bindtap="handleClickBtn" data-target="{{ item }}">{{btnTxt[item.orderStatus]}}</view> <view wx:if="{{ item.orderStatus == '-1' || item.orderStatus == '0' }}" class="order-btn" bindtap="handleClickBtn" data-target="{{ item }}">{{btnTxt[item.orderStatus]}}</view>
<block wx:elif="{{ item.orderStatus != 6 && item.orderStatus != 8 }}"> <block wx:elif="{{ item.orderStatus != 6 }}">
<block wx:if="{{ item.orderStatus == '2' || item.orderStatus == '3' || item.orderStatus == '5' }}"> <block wx:if="{{ item.orderStatus == '2' || item.orderStatus == '3' || item.orderStatus == '5' }}">
<view wx:if="{{ item.orderStatus == '2' }}" class="order-btn default-btn padding_20" bindtap="handleClickBtn" data-target="{{ item }}">战败</view> <view wx:if="{{ item.orderStatus == '2' }}" class="order-btn default-btn padding_20" bindtap="handleClickBtn" data-target="{{ item }}">战败</view>
<view wx:if="{{ item.orderStatus == '2' }}" class="order-btn padding_20" bindtap="handleClickBtn" data-target="{{ item }}" data-type="pay">{{btnTxt[item.orderStatus]}}</view> <view wx:if="{{ item.orderStatus == '2' }}" class="order-btn padding_20" bindtap="handleClickBtn" data-target="{{ item }}" data-type="pay">{{btnTxt[item.orderStatus]}}</view>
...@@ -284,4 +287,6 @@ ...@@ -284,4 +287,6 @@
</view> </view>
</view> </view>
</view> </view>
<zy-pay-popup wx:if="{{showZyPayPopup}}" showZyTarget="{{showZyTarget}}" updateZyFlag="{{updateZyFlag}}" isListShow="{{true}}" show="{{showZyPayPopup}}" bindconfirm="zyPayConfirm"></zy-pay-popup>
\ No newline at end of file \ No newline at end of file
<zy-pay-popup wx:if="{{showZyPayPopup}}" showZyTarget="{{showZyTarget}}" updateZyFlag="{{updateZyFlag}}" isListShow="{{true}}" show="{{showZyPayPopup}}" bindconfirm="zyPayConfirm"></zy-pay-popup>
<more-btn wx:if="{{ moreBtnVisible }}" popupVisible="{{ moreBtnVisible }}" btnsList="{{btnsList}}" bindcancel="handleBtnCancel" bindbtnClick="handleBtnClick"></more-btn>
<select-invoice-modal invoiveVisible="{{ invoiveVisible }}" orderInfo="{{btnOrderInfo}}"></select-invoice-modal>
\ No newline at end of file \ No newline at end of file
...@@ -7,6 +7,7 @@ let timeoutId; ...@@ -7,6 +7,7 @@ let timeoutId;
import { import {
checkDailyReport checkDailyReport
} from "~/store/ModalToQueueControl"; } from "~/store/ModalToQueueControl";
import commonApi from '~/api/api'
Page({ Page({
/** /**
* 页面的初始数据 * 页面的初始数据
...@@ -19,42 +20,42 @@ Page({ ...@@ -19,42 +20,42 @@ Page({
activeIndex: 0, activeIndex: 0,
//分润 //分润
pointsMultiObj: [{ pointsMultiObj: [{
label: "销售顾问 /录单员", label: "销售顾问 /录单员",
arr: ["merchantName", "employeeName"], arr: ["merchantName", "employeeName"],
}, },
{ {
label: "交付人员", label: "交付人员",
arr: ["merchantName", "deliveryEmployeeName"], arr: ["merchantName", "deliveryEmployeeName"],
}, },
{ {
label: "转化人员", label: "转化人员",
arr: ["sellerMerchantName", "sellerName"], arr: ["sellerMerchantName", "sellerName"],
}, },
{ {
label: "工单编号", label: "工单编号",
key: "orderCode", key: "orderCode",
}, },
{ {
label: "工单时间", label: "工单时间",
key: "orderTime", key: "orderTime",
}, },
], ],
orderObj: [{ orderObj: [{
label: "销售顾问", label: "销售顾问",
arr: ["merchantName", "employeeName"], arr: ["merchantName", "employeeName"],
}, },
{ {
label: "转化人员", label: "转化人员",
arr: ["sellerMerchantName", "sellerName"], arr: ["sellerMerchantName", "sellerName"],
}, },
{ {
label: "工单编号", label: "工单编号",
key: "orderCode", key: "orderCode",
}, },
{ {
label: "工单时间", label: "工单时间",
key: "orderTime", key: "orderTime",
}, },
], ],
searchObj: {}, searchObj: {},
pageNum: 1, pageNum: 1,
...@@ -66,7 +67,15 @@ Page({ ...@@ -66,7 +67,15 @@ Page({
isMake: true, isMake: true,
selectType: 1, selectType: 1,
isSettingExpiredTraffic: false, // 是否启用流量失效 isSettingExpiredTraffic: false, // 是否启用流量失效
isScan: false // 是否扫码核销 isScan: false, // 是否扫码核销
// 更多按钮
moreBtnVisible: false,
btnOrderInfo: {},
btnsList: [{
name: '申请开票'
}],
// 选择发票
invoiveVisible: false
}, },
// 创建一个动画实例 // 创建一个动画实例
// createAnimation: function () { // createAnimation: function () {
...@@ -112,31 +121,31 @@ Page({ ...@@ -112,31 +121,31 @@ Page({
} }
wx.$modal( wx.$modal(
this, { this, {
show: true, show: true,
title: "请选择录单入口", title: "请选择录单入口",
tabTitleShow: false, tabTitleShow: false,
success: (res) => { success: (res) => {
// 跳转新增订单页面 并带特定参数 // 跳转新增订单页面 并带特定参数
let { let {
orderInfo, orderInfo,
selectType selectType
} = this.data; } = this.data;
console.log(item, "showSelectType"); console.log(item, "showSelectType");
if (selectType == 1) { if (selectType == 1) {
wx.$router.go("tabWorkOrder.createOrder", { wx.$router.go("tabWorkOrder.createOrder", {
scene, scene,
...item, ...item,
}); });
} else { } else {
wx.$router.go("tabWorkOrder.defeatOrder", { wx.$router.go("tabWorkOrder.defeatOrder", {
scene, scene,
...item, ...item,
isExpiredTraffic: selectType == 3 isExpiredTraffic: selectType == 3
}); });
} }
},
error: () => {},
}, },
error: () => { },
},
"#modal2" "#modal2"
); );
}, },
...@@ -488,7 +497,7 @@ Page({ ...@@ -488,7 +497,7 @@ Page({
return (360 * Math.atan(_Y / _X)) / (2 * Math.PI); return (360 * Math.atan(_Y / _X)) / (2 * Math.PI);
}, },
init(userInfo) {}, init(userInfo) { },
search() { search() {
wx.$orderListRefresh = false; wx.$orderListRefresh = false;
let { let {
...@@ -757,9 +766,9 @@ Page({ ...@@ -757,9 +766,9 @@ Page({
if (wx.$orderListRefresh) { if (wx.$orderListRefresh) {
// 清空筛选条件 搜索条件 // 清空筛选条件 搜索条件
this.setData({ this.setData({
searchObj: {}, searchObj: {},
keyword: "", keyword: "",
}, },
() => { () => {
this.search(); this.search();
this.getCreateOrderSetting() this.getCreateOrderSetting()
...@@ -783,6 +792,68 @@ Page({ ...@@ -783,6 +792,68 @@ Page({
}) })
} }
}, },
/** 更多按钮 */
handleMoreBtn(e) {
let { target } = e.currentTarget.dataset
this.setData({
'btnsList[0].name': target.invoiceStatus == 2 ? '查看发票' : '申请开票'
})
this.handleBtnCancel()
this.setData({
btnOrderInfo: target || {}
})
},
handleBtnCancel() {
let { moreBtnVisible } = this.data
this.setData({
moreBtnVisible: !moreBtnVisible
})
},
handleBtnClick(e) {
let obj = e.detail
switch (obj.name) {
case '申请开票':
this.handleSelectInvoice()
break
case '查看发票':
this.handleInvoiceDetail()
break
}
this.handleBtnCancel()
},
handleSelectInvoice() {
let { invoiveVisible } = this.data
this.setData({
invoiveVisible: !invoiveVisible
})
},
handleInvoiceDetail() {
let { btnOrderInfo } = this.data
const params = {
orderCode: btnOrderInfo.orderCode
}
commonApi.getOrderCode(params).then(res => {
let { invoiceInfo, invoiceIssueQrcode } = res.data
if (invoiceInfo) {
if(invoiceInfo.code == '0000') {
wx.navigateTo({
url: `/pages/webView/webView?url=${encodeURIComponent(invoiceInfo.downloadUrl)}`
})
} else {
wx.$router.go("tabWorkOrder.invoiceResult", {
obj: {
bizOrderCode: invoiceIssueQrcode.bizOrderCode,
invoiceAmount: invoiceIssueQrcode.invoiceAmount,
createdDate: invoiceInfo.createdDate,
code: invoiceInfo.code,
downloadUrl: invoiceInfo.downloadUrl,
msg: invoiceInfo.msg
}
})
}
}
})
},
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
...@@ -798,41 +869,43 @@ Page({ ...@@ -798,41 +869,43 @@ Page({
/** /**
* 生命周期函数--监听页面初次渲染完成 * 生命周期函数--监听页面初次渲染完成
*/ */
onReady: function () {}, onReady: function () { },
/** /**
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
*/ */
onShow: function () {}, onShow: function () {
this.search()
},
/** /**
* 生命周期函数--监听页面隐藏 * 生命周期函数--监听页面隐藏
*/ */
onHide: function () {}, onHide: function () { },
/** /**
* 生命周期函数--监听页面卸载 * 生命周期函数--监听页面卸载
*/ */
onUnload: function () {}, onUnload: function () { },
/** /**
* 页面相关事件处理函数--监听用户下拉动作 * 页面相关事件处理函数--监听用户下拉动作
*/ */
onPullDownRefresh: function () {}, onPullDownRefresh: function () { },
/** /**
* 页面上拉触底事件的处理函数 * 页面上拉触底事件的处理函数
*/ */
onReachBottom: function () {}, onReachBottom: function () { },
scrollonReachBottom() { scrollonReachBottom() {
let { let {
total, total,
pageNum pageNum
} = this.data; } = this.data;
wx.$util.onReachBottom({ wx.$util.onReachBottom({
total, total,
pageNum, pageNum,
}, },
(res) => { (res) => {
this.getWorkList(); this.getWorkList();
this.getStatByStatus(); this.getStatByStatus();
...@@ -848,5 +921,5 @@ Page({ ...@@ -848,5 +921,5 @@ Page({
/** /**
* 用户点击右上角分享 * 用户点击右上角分享
*/ */
onShareAppMessage: function () {}, onShareAppMessage: function () { },
}); });
\ No newline at end of file \ No newline at end of file
{ {
"navigationStyle":"custom", "navigationStyle":"custom",
"usingComponents": { "usingComponents": {
"order-screen": "../../components/OrderScreen/OrderScreen" "order-screen": "../../components/OrderScreen/OrderScreen",
"more-btn": "/components/MoreBtn/MoreBtn",
"select-invoice-modal": "/components/SelectInvoiceModal/SelectInvoiceModal"
} }
} }
\ No newline at end of file \ No newline at end of file
...@@ -591,4 +591,46 @@ page { ...@@ -591,4 +591,46 @@ page {
.modatcontent { .modatcontent {
box-sizing: border-box; box-sizing: border-box;
padding: var(--fontSize48) 0; padding: var(--fontSize48) 0;
}
.item-footer {
display: flex;
justify-content: space-between;
align-items: center;
font-size: var(--fontSize24);
color: #9B9B9E;
border-top: var(--fontSize1) solid #EDEDED;
padding: var(--fontSize20) var(--fontSize32) 0;
}
.btn_class {
display: flex;
gap: var(--fontSize16);
margin-left: auto;
}
.order-btn {
box-sizing: border-box;
height: var(--fontSize56);
display: flex;
align-items: center;
justify-content: center;
font-size: var(--fontSize28);
color: #FFFFFF;
background: #347BFF;
border-radius: var(--fontSize32);
padding: var(--fontSize8) var(--fontSize20);
flex-shrink: 0;
}
.order-btn.default-btn {
background: #FFFFFF;
border: var(--fontSize2) solid #347BFF;
border-radius: var(--fontSize32);
color: #347BFF;
}
.padding_20 {
padding: 0 var(--fontSize14);
} }
\ No newline at end of file \ No newline at end of file
...@@ -168,6 +168,12 @@ ...@@ -168,6 +168,12 @@
</view> --> </view> -->
<!-- </block> --> <!-- </block> -->
<!-- </block> --> <!-- </block> -->
<!-- footer -->
<view class="item-footer" wx:if="{{li.showInvoiceEntrance}}">
<view class="btn_class">
<view class="order-btn default-btn padding_20" catchtap="handleMoreBtn" data-target="{{ li }}">更多</view>
</view>
</view>
</view> </view>
<block wx:if="{{ isMake }}"> <block wx:if="{{ isMake }}">
<view <view
...@@ -234,4 +240,6 @@ ...@@ -234,4 +240,6 @@
失效客户 失效客户
</view> </view>
</view> </view>
</modal>
\ No newline at end of file \ No newline at end of file
</modal>
<more-btn wx:if="{{ moreBtnVisible }}" popupVisible="{{ moreBtnVisible }}" btnsList="{{btnsList}}" bindcancel="handleBtnCancel" bindbtnClick="handleBtnClick"></more-btn>
<select-invoice-modal invoiveVisible="{{ invoiveVisible }}" orderInfo="{{btnOrderInfo}}"></select-invoice-modal>
\ No newline at end of file \ No newline at end of file
...@@ -3,6 +3,7 @@ import api from "../../api.js"; ...@@ -3,6 +3,7 @@ import api from "../../api.js";
import order_mixins, { data } from "../order_mixins.js"; import order_mixins, { data } from "../order_mixins.js";
import { getPositionList } from "~/store/index"; import { getPositionList } from "~/store/index";
import { checkDailyReport } from "~/store/ModalToQueueControl"; import { checkDailyReport } from "~/store/ModalToQueueControl";
import commonApi from '~/api/api'
const IMG_URL = const IMG_URL =
"https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/"; "https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/";
const app = getApp(); const app = getApp();
...@@ -29,7 +30,10 @@ Page({ ...@@ -29,7 +30,10 @@ Page({
showRatingPopup: false, showRatingPopup: false,
showRatingCard: true, // 显示评价卡片 showRatingCard: true, // 显示评价卡片
isMake: true, isMake: true,
warrantyEditObj: {} warrantyEditObj: {},
// 发票按钮
invoiceName: '申请开票',
invoiveVisible: false,
}, },
RatingPopupSetting() { RatingPopupSetting() {
this.setData({ this.setData({
...@@ -491,6 +495,7 @@ Page({ ...@@ -491,6 +495,7 @@ Page({
flag: true, flag: true,
warrantyCardList, warrantyCardList,
showRatingCard, showRatingCard,
invoiceName: data.invoiceStatus == 2 ? '查看发票' : '申请开票'
}); });
this.setQrBoxHeight(); this.setQrBoxHeight();
// 超时关闭的不显示客服码和 // 超时关闭的不显示客服码和
...@@ -786,6 +791,53 @@ Page({ ...@@ -786,6 +791,53 @@ Page({
// }, 3000) // }, 3000)
}, },
// 开票
handleBtnInvoice() {
let { invoiceName } = this.data
switch (invoiceName) {
case '申请开票':
this.handleSelectInvoice()
break
case '查看发票':
this.handleInvoiceDetail()
break
}
},
handleSelectInvoice() {
let { invoiveVisible } = this.data
this.setData({
invoiveVisible: !invoiveVisible
})
},
handleInvoiceDetail() {
let { orderInfo } = this.data
const params = {
orderCode: orderInfo.orderCode
}
commonApi.getOrderCode(params).then(res => {
let { invoiceInfo, invoiceIssueQrcode } = res.data
if (invoiceInfo) {
if (invoiceInfo.code == '0000') {
wx.navigateTo({
url: `/pages/webView/webView?url=${encodeURIComponent(invoiceInfo.downloadUrl)}`
})
} else {
wx.$router.go("tabWorkOrder.invoiceResult", {
obj: {
bizOrderCode: invoiceIssueQrcode.bizOrderCode,
invoiceAmount: invoiceIssueQrcode.invoiceAmount,
createdDate: invoiceInfo.createdDate,
code: invoiceInfo.code,
downloadUrl: invoiceInfo.downloadUrl,
msg: invoiceInfo.msg
}
})
}
}
})
},
previewImage(e) { previewImage(e) {
let { url, index } = e.currentTarget.dataset; let { url, index } = e.currentTarget.dataset;
let urlList = url.map((v) => { let urlList = url.map((v) => {
......
{ {
"navigationBarTitleText": "完成施工", "navigationBarTitleText": "完成施工",
"usingComponents": { "usingComponents": {
"orderRatingPopup": "/tabWorkOrder/components/orderRatingPopup/orderRatingPopup" "orderRatingPopup": "/tabWorkOrder/components/orderRatingPopup/orderRatingPopup",
"select-invoice-modal": "/components/SelectInvoiceModal/SelectInvoiceModal"
} }
} }
...@@ -146,6 +146,20 @@ page { ...@@ -146,6 +146,20 @@ page {
align-items: center; align-items: center;
} }
.invoice-btn {
display: flex;
align-items: center;
font-size: 28rpx;
font-weight: 400;
color: #347BFF;
}
.invoice-btn .icon {
width: 32rpx;
height: 32rpx;
margin-right: 6rpx;
}
.box .title::after { .box .title::after {
position: absolute; position: absolute;
content: ''; content: '';
......
...@@ -105,6 +105,10 @@ ...@@ -105,6 +105,10 @@
<view class="box"> <view class="box">
<view class="title infoTitle"> <view class="title infoTitle">
<text>工单信息</text> <text>工单信息</text>
<view wx:if="{{orderInfo.showInvoiceEntrance}}" class="invoice-btn" bindtap="handleBtnInvoice">
<gl-image class="icon" src="/icon-invoice.png"></gl-image>
{{invoiceName}}
</view>
<view class="operate" wx:if="{{ orderInfo.canOperate&&(isYqdSuper||isStaff)&&isMake }}"> <view class="operate" wx:if="{{ orderInfo.canOperate&&(isYqdSuper||isStaff)&&isMake }}">
<text bindtap="targetOperate">操作</text> <text bindtap="targetOperate">操作</text>
<view class="tip {{ showTip?'':'none' }}" bindtap="targetError"> <view class="tip {{ showTip?'':'none' }}" bindtap="targetError">
...@@ -339,4 +343,5 @@ ...@@ -339,4 +343,5 @@
</view> </view>
</view> </view>
</modal> </modal>
<orderRatingPopup bind:close="RatingPopupSetting" title="客户签字" flag="{{ showRatingPopup }}" wx:if="{{ showRatingPopup }}" orderInfoSetting="{{ orderInfo }}" />
\ No newline at end of file \ No newline at end of file
<orderRatingPopup bind:close="RatingPopupSetting" title="客户签字" flag="{{ showRatingPopup }}" wx:if="{{ showRatingPopup }}" orderInfoSetting="{{ orderInfo }}" />
<select-invoice-modal invoiveVisible="{{ invoiveVisible }}" orderInfo="{{orderInfo}}"></select-invoice-modal>
\ No newline at end of file \ No newline at end of file
// tabWorkOrder/pages/invoiceCode/invoiceCode.js
import commonApi from '~/api/api'
Page({
/**
* 页面的初始数据
*/
data: {
codeInfo: {},
editFormData: [{
label: '销售方名称',
name: 'enterpriseName'
}, {
label: '企业联系电话',
name: ''
}, {
label: '开票金额',
name: 'invoiceAmount'
}, {
label: '票通订单号',
name: 'tradeNo'
}, {
label: '生成时间',
name: 'tradeTime'
}, {
label: '二维码有效期',
name: 'expireTime'
}]
},
handleConfirm() {
let { codeInfo } = this.data
const params = {
orderCode: codeInfo.orderCode
}
console.log(codeInfo)
console.log(params)
commonApi.getOrderCode(params).then(res => {
console.log(res, 'res---')
let { invoiceInfo, invoiceIssueQrcode } = res.data
if (invoiceInfo) {
if (invoiceInfo.code == '0000') {
wx.$router.back()
wx.navigateTo({
url: `/pages/webView/webView?url=${encodeURIComponent(invoiceInfo.downloadUrl)}`
})
} else {
wx.$router.redirectTo("tabWorkOrder.invoiceResult", {
obj: {
bizOrderCode: invoiceIssueQrcode.bizOrderCode,
invoiceAmount: invoiceIssueQrcode.invoiceAmount,
createdDate: invoiceInfo.createdDate,
code: invoiceInfo.code,
downloadUrl: invoiceInfo.downloadUrl,
msg: invoiceInfo.msg
}
})
}
}
})
},
handleBack() {
wx.$router.back()
},
onRoute(res) {
console.log(res, 'res---')
res.obj = {
account: null,
orderCode: "250513144655824",
allowInvoiceCount: 1,
bizOrderCode: "250513144655824",
bizTradeNo: "kkkk9999",
casherName: "",
email: "zhoulm@didihu.com.cn",
enterpriseName: "500102201007206608",
expireDay: 7,
expireTime: "2025-05-21 11:18:34",
extractCode: "1922491705875894272",
invoiceAmount: "1.00",
invoiceQrCode: "https://invoice2025-test.oss-cn-shenzhen.aliyuncs.com/e204ed89-6d6f-45f9-a482-e744e61b95e3.png",
invoiceRemark: "",
invoiceType: "82,81",
invoiceUrl: "https://fpkjnw.vpiaotong.com/tp/scan/index/UnJFQVBFeW5HMUZ3TTJqdjNEUS9XTGdkWDg0SDc4Q1g=.pt",
qrcodeNo: "QR20250514111834KQQB",
reviewerName: "",
taxpayerNum: "500102201007206608",
tradeNo: "250513144655824",
tradeTime: "2025-05-13 17:31:00",
}
this.setData({
codeInfo: JSON.parse(JSON.stringify(res.obj))
})
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})
\ No newline at end of file \ No newline at end of file
{
"navigationBarTitleText": "查看二维码",
"usingComponents": {}
}
\ No newline at end of file \ No newline at end of file
/* tabWorkOrder/pages/invoiceCode/invoiceCode.wxss */
page {
background-color: #F4F5F7;
}
.main {
box-sizing: border-box;
padding: 0rpx 20rpx 200rpx;
padding-bottom: 250rpx;
}
.box {
background: #FFFFFF;
box-shadow: 0 var(--fontSize4) var(--fontSize20) 0 rgba(0, 0, 0, 0.10);
border-radius: var(--fontSize16);
overflow: hidden;
margin-top: var(--fontSize20);
}
.cell {
height: 120rpx;
line-height: 120rpx;
display: flex;
justify-content: space-between;
font-size: 28rpx;
color: #222222;
padding: 0 40rpx;
border-bottom: 2rpx solide #000000;
}
.title {
font-size: 32rpx;
color: #222222;
font-weight: 600;
padding: 32rpx 32rpx 16rpx;
}
.code-box {
text-align: center;
font-size: 24rpx;
color: #757980;
margin: 20rpx 0 24rpx;
}
.img-code {
width: 240rpx;
height: 240rpx;
margin-bottom: 12rpx
}
.tips {
margin: 32rpx 0 20rpx;
text-align: center;
font-size: 24rpx;
color: #757980;
}
.btn-box{
width: 100%;
min-height: var(--fontSize100);
box-sizing: border-box;
font-size: var(--fontSize28);
}
.btn{
box-sizing: border-box;
width: calc(100% - 88rpx);
height: var(--fontSize88);
color: #fff;
font-size: 32rpx;
border-radius: var(--fontSize12);
background-color: #347BFF;
display: flex;
align-items: center;
justify-content: center;
margin: 0 44rpx 20rpx;
}
.btn-back {
background-color: #FFFFFF;
color: #347BFF;
}
\ No newline at end of file \ No newline at end of file
<!--tabWorkOrder/pages/invoiceCode/invoiceCode.wxml-->
<view class="main ">
<view class="box">
<view class="title">开票二维码</view>
<view class="code-box">
<image src="{{codeInfo.invoiceQrCode}}" class="img-code" />
<view>客户可使用微信或支付宝,扫码开票</view>
</view>
<view wx:for="{{editFormData}}" wx:key="index" class="cell">
<view>{{item.label}}</view>
<view>{{codeInfo[item.name]}}</view>
</view>
</view>
<view class="tips">
<view>客户扫码提交成功后,点下方“结果查询”实时获取发票;</view>
<view>未显示可5分钟后重试。</view>
</view>
<view class="btn-box {{isFullSucreen?'isFullSucreen-btn':''}}">
<view class="btn" bindtap="handleConfirm">结果查询</view>
<view class="btn btn-back" bindtap="handleBack">返回列表</view>
</view>
</view>
\ No newline at end of file \ No newline at end of file
// tabWorkOrder/pages/invoiceResult/invoiceResult.js
Page({
/**
* 页面的初始数据
*/
data: {
info: {
code: ''
},
editFormData: [{
label: '工单编号',
name: 'bizOrderCode',
isCopy: true
}, {
label: '申请时间',
name: 'createdDate'
}, {
label: '申请金额',
name: 'invoiceAmount',
prefix: '¥'
}, {
label: '失败原因',
name: 'msg'
}]
},
handleJump() {
let { info } = this.data
wx.navigateTo({
url: `/pages/webView/webView?url=${encodeURIComponent(info.downloadUrl)}`
})
// wx.showLoading({
// title: '加载中',
// mask: true
// })
// console.log(info, 'info----')
// wx.downloadFile({
// url: info.downloadUrl, // 将http文件地址转为https (开发环境文件服务器不支持https无法预览)
// success: function (res) {
// console.log(res, '==============')
// const manage = wx.getFileSystemManager()
// let file = info.downloadUrl.split('/')
// let fileName = file[file.length - 1]
// manage.saveFile({
// tempFilePath: res.tempFilePath,
// filePath: wx.env.USER_DATA_PATH + '/' + fileName,
// success: function (res) {
// console.log('00000000')
// wx.hideLoading()
// wx.openDocument({
// filePath: wx.env.USER_DATA_PATH + '/' + fileName,
// fileType: 'pdf',
// showMenu: true,
// success: function (res) {
// wx.hideLoading()
// }
// })
// }
// })
// }
// })
},
toCopy(e) {
const { value } = e.currentTarget.dataset
wx.setClipboardData({
data: value.toString(),
success(res) {
wx.$util.showToast('已复制')
}
})
},
handleBack() {
wx.$router.back()
},
onRoute(res) {
console.log(res, 'res---')
this.setData({
info: JSON.parse(JSON.stringify(res.obj))
})
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})
\ No newline at end of file \ No newline at end of file
{
"navigationBarTitleText": "查看发票",
"usingComponents": {}
}
\ No newline at end of file \ No newline at end of file
/* tabWorkOrder/pages/invoiceResult/invoiceResult.wxss */
.wrapper {
position: absolute;
top: 50%;
width: 100%;
height: auto;
transform: translateY(-50%);
}
.content {
margin: 112rpx 64rpx 160rpx;
padding: 48rpx 64rpx;
background: #F4F5F7;
border-radius: 24rpx 24rpx 4rpx 4rpx 4rpx 4rpx 4rpx 4rpx 4rpx 4rpx 4rpx 4rpx 4rpx 4rpx 4rpx 4rpx 4rpx 4rpx 4rpx 4rpx 4rpx 4rpx 4rpx 4rpx 4rpx 4rpx 4rpx 4rpx 4rpx 4rpx 4rpx 4rpx 4rpx 4rpx 4rpx;
}
.tip {
font-size: 28rpx;
color: #999EA8;
}
.error-header {
text-align: center;
font-size: 32rpx;
color: #222222;
margin-bottom: 112rpx;
}
.icon {
width: 160rpx;
height: 160rpx;
margin: 128rpx 0 8rpx;
}
.cell {
height: 40rpx;
line-height: 40rpx;
display: flex;
align-items: center;
font-size: 28rpx;
color: #222222;
border-bottom: 2rpx solide #000000;
margin-bottom: 16rpx;
}
.cell .label {
width: 112rpx;
margin-right: 48rpx;
}
.btn-box{
width: 100%;
min-height: var(--fontSize100);
box-sizing: border-box;
font-size: var(--fontSize28);
}
.btn{
box-sizing: border-box;
width: calc(100% - 88rpx);
height: var(--fontSize88);
color: #fff;
font-size: 32rpx;
border-radius: var(--fontSize12);
background-color: #347BFF;
display: flex;
align-items: center;
justify-content: center;
margin: 0 44rpx 20rpx;
}
.btn-back {
background-color: #FFFFFF;
color: #292D33;
border: 2rpx solid #DEE0E3;
}
.copy_icon {
width: var(--fontSize28);
height: var(--fontSize28);
margin-left: 12rpx;
}
\ No newline at end of file \ No newline at end of file
<!--tabWorkOrder/pages/invoiceResult/invoiceResult.wxml-->
<!-- <van-overlay wx:if="{{ info.code == '0000' }}" z-index="99999">
<view class="wrapper">
<image src="{{ IMG_URL}}equity/{{imgType }}.png" mode="widthFix" />
</view>
</van-overlay> -->
<!-- <view bindtap="previewFile">dianji</view> -->
<!-- <view wx:if="{{ info.code != '0000' }}"> -->
<view>
<view class="error-header">
<gl-image class="icon" src="/icon-invoice-error.png"></gl-image>
<view>开票失败</view>
</view>
<view class="content">
<view wx:for="{{editFormData}}" wx:key="index" class="cell">
<view class="label">{{item.label}}</view>
<view><text wx:if="{{item.prefix}}">{{item.prefix}}</text>{{info[item.name] || ''}}</view>
<image wx:if="{{ item.isCopy }}" catch:tap="toCopy" data-value="{{ info[item.name] }}" class="copy_icon" src="../../images/copy_name.png" />
</view>
<view class="tip">开票失败,请联系总部运营并提供工单编号及失败原因。</view>
</view>
<view class="btn-box {{isFullSucreen?'isFullSucreen-btn':''}}">
<!-- <view wx:if="{{info.code == '0000'}}" class="btn" bindtap="handleJump">发票</view> -->
<view class="btn btn-back" bindtap="handleBack">返回列表</view>
</view>
</view>
\ No newline at end of file \ No newline at end of file
...@@ -6,6 +6,7 @@ import { ...@@ -6,6 +6,7 @@ import {
getServiceFilmRollSetting, getServiceFilmRollSetting,
setConfigInfo setConfigInfo
} from '~/store/index' } from '~/store/index'
import commonApi from '~/api/api'
const IMG_URL = 'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/' const IMG_URL = 'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/'
const app = getApp() const app = getApp()
Page({ Page({
...@@ -36,7 +37,10 @@ Page({ ...@@ -36,7 +37,10 @@ Page({
}, },
baseConfigData: {}, baseConfigData: {},
isMake: true, isMake: true,
packageGoodsList: [] packageGoodsList: [],
// 发票按钮
invoiceName: '申请开票',
invoiveVisible: false,
}, },
jumpUserPortrait() { jumpUserPortrait() {
wx.$router.go('tabDate.userPortrait', this.data.orderInfo) wx.$router.go('tabDate.userPortrait', this.data.orderInfo)
...@@ -314,10 +318,12 @@ Page({ ...@@ -314,10 +318,12 @@ Page({
if (data.customer && data.customer.carSeriesName) { if (data.customer && data.customer.carSeriesName) {
data.carType = `${data.customer.carBrand || ''}-${data.customer.carChildsBrandName || ''}-${data.customer.carSeriesName || ''}` data.carType = `${data.customer.carBrand || ''}-${data.customer.carChildsBrandName || ''}-${data.customer.carSeriesName || ''}`
} }
this.setData({ this.setData({
orderInfo: data, orderInfo: data,
flag: true, flag: true,
warrantyCardList warrantyCardList,
invoiceName: data.invoiceStatus == 2 ? '查看发票' : '申请开票'
}) })
// 去掉车主评价功能 // 去掉车主评价功能
// this.setQrBoxHeight() // this.setQrBoxHeight()
...@@ -664,6 +670,53 @@ Page({ ...@@ -664,6 +670,53 @@ Page({
// }, 3000) // }, 3000)
}, },
// 开票
handleBtnInvoice() {
let { invoiceName } = this.data
switch (invoiceName) {
case '申请开票':
this.handleSelectInvoice()
break
case '查看发票':
this.handleInvoiceDetail()
break
}
},
handleSelectInvoice() {
let { invoiveVisible } = this.data
this.setData({
invoiveVisible: !invoiveVisible
})
},
handleInvoiceDetail() {
let { orderInfo } = this.data
const params = {
orderCode: orderInfo.orderCode
}
commonApi.getOrderCode(params).then(res => {
let { invoiceInfo, invoiceIssueQrcode } = res.data
if (invoiceInfo) {
if (invoiceInfo.code == '0000') {
wx.navigateTo({
url: `/pages/webView/webView?url=${encodeURIComponent(invoiceInfo.downloadUrl)}`
})
} else {
wx.$router.go("tabWorkOrder.invoiceResult", {
obj: {
bizOrderCode: invoiceIssueQrcode.bizOrderCode,
invoiceAmount: invoiceIssueQrcode.invoiceAmount,
createdDate: invoiceInfo.createdDate,
code: invoiceInfo.code,
downloadUrl: invoiceInfo.downloadUrl,
msg: invoiceInfo.msg
}
})
}
}
})
},
previewImage(e) { previewImage(e) {
let { let {
url, url,
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
"navigationBarTitleText": "工单详情", "navigationBarTitleText": "工单详情",
"usingComponents": { "usingComponents": {
"artificer-select-popup" : "/components/ArtificerSelectPopup/artificerSelectPopup", "artificer-select-popup" : "/components/ArtificerSelectPopup/artificerSelectPopup",
"film-roll-no-popup": "/tabWorkOrder/components/FilmRollNoPopup/FilmRollNoPopup" "film-roll-no-popup": "/tabWorkOrder/components/FilmRollNoPopup/FilmRollNoPopup",
"select-invoice-modal": "/components/SelectInvoiceModal/SelectInvoiceModal"
} }
} }
\ No newline at end of file \ No newline at end of file
...@@ -93,7 +93,13 @@ ...@@ -93,7 +93,13 @@
<!-- </block> --> <!-- </block> -->
</view> </view>
<view class="box"> <view class="box">
<view class="title">工单信息</view> <view class="title invoice">
工单信息
<view wx:if="{{orderInfo.showInvoiceEntrance}}" class="invoice-btn" bindtap="handleBtnInvoice">
<gl-image class="icon" src="/icon-invoice.png"></gl-image>
{{invoiceName}}
</view>
</view>
<block wx:for="{{orderObj}}" wx:key="index"> <block wx:for="{{orderObj}}" wx:key="index">
<view class="cell"> <view class="cell">
<view class="label">{{item.label}}</view> <view class="label">{{item.label}}</view>
...@@ -272,4 +278,5 @@ ...@@ -272,4 +278,5 @@
<order-popup orderType="4" show="{{showPopup}}" /> <order-popup orderType="4" show="{{showPopup}}" />
<artificer-select-popup show="{{artificerSelectPopup}}" title="选择技师" copyArtificerList="{{artificerList}}" orderInfo="{{orderInfo}}" artificerSelectObj="{{artificerSelectObj}}" bindconfirm="changeArtificer" /> <artificer-select-popup show="{{artificerSelectPopup}}" title="选择技师" copyArtificerList="{{artificerList}}" orderInfo="{{orderInfo}}" artificerSelectObj="{{artificerSelectObj}}" bindconfirm="changeArtificer" />
<!-- <wxs src="/utils/index.wxs" module="common" /> --> <!-- <wxs src="/utils/index.wxs" module="common" /> -->
<film-roll-no-popup show="{{filmRollNoPopup}}" title="选择膜卷号" copyfilmRollNoList="{{filmRollNoList}}" filmSelectedItem="{{filmSelectedItem}}" bindconfirm="changefilmRollNo" />
\ No newline at end of file \ No newline at end of file
<film-roll-no-popup show="{{filmRollNoPopup}}" title="选择膜卷号" copyfilmRollNoList="{{filmRollNoList}}" filmSelectedItem="{{filmSelectedItem}}" bindconfirm="changefilmRollNo" />
<select-invoice-modal invoiveVisible="{{ invoiveVisible }}" orderInfo="{{orderInfo}}"></select-invoice-modal>
\ No newline at end of file \ No newline at end of file
...@@ -72,6 +72,25 @@ page { ...@@ -72,6 +72,25 @@ page {
transform: translateY(-50%); transform: translateY(-50%);
} }
.box .title.invoice {
display: flex;
justify-content: space-between;
}
.invoice-btn {
display: flex;
align-items: center;
font-size: 28rpx;
font-weight: 400;
color: #347BFF;
}
.invoice-btn .icon {
width: 32rpx;
height: 32rpx;
margin-right: 6rpx;
}
.box .goods { .box .goods {
font-size: var(--fontSize28); font-size: var(--fontSize28);
margin-bottom: var(--fontSize32); margin-bottom: var(--fontSize32);
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
"navigationBarTitleText": "客户签字", "navigationBarTitleText": "客户签字",
"usingComponents": { "usingComponents": {
"artificer-select-popup" : "/components/ArtificerSelectPopup/artificerSelectPopup", "artificer-select-popup" : "/components/ArtificerSelectPopup/artificerSelectPopup",
"film-roll-no-popup": "/tabWorkOrder/components/FilmRollNoPopup/FilmRollNoPopup" "film-roll-no-popup": "/tabWorkOrder/components/FilmRollNoPopup/FilmRollNoPopup",
"select-invoice-modal": "/components/SelectInvoiceModal/SelectInvoiceModal"
} }
} }
...@@ -6,7 +6,12 @@ ...@@ -6,7 +6,12 @@
<view class="tips">感谢您的配合,请在确认以下信息后,在下方的签字区内签字确认,谢谢!</view> <view class="tips">感谢您的配合,请在确认以下信息后,在下方的签字区内签字确认,谢谢!</view>
</view> </view>
<view class="box"> <view class="box">
<view class="title">信息确认</view> <view class="title invoice">信息确认
<view wx:if="{{orderInfo.showInvoiceEntrance}}" class="invoice-btn" bindtap="handleBtnInvoice">
<gl-image class="icon" src="/icon-invoice.png"></gl-image>
{{invoiceName}}
</view>
</view>
<view class="cell"> <view class="cell">
<view class="label">客户姓名:</view> <view class="label">客户姓名:</view>
<view class="value">{{orderInfo.customerName || ''}}</view> <view class="value">{{orderInfo.customerName || ''}}</view>
...@@ -162,4 +167,5 @@ ...@@ -162,4 +167,5 @@
copyfilmRollNoList="{{filmRollNoList}}" copyfilmRollNoList="{{filmRollNoList}}"
filmSelectedItem="{{filmSelectedItem}}" filmSelectedItem="{{filmSelectedItem}}"
bindconfirm="changefilmRollNo" /> bindconfirm="changefilmRollNo" />
<select-invoice-modal invoiveVisible="{{ invoiveVisible }}" orderInfo="{{orderInfo}}"></select-invoice-modal>
...@@ -51,6 +51,25 @@ page { ...@@ -51,6 +51,25 @@ page {
transform: translateY(-50%); transform: translateY(-50%);
} }
.box .title.invoice {
display: flex;
justify-content: space-between;
}
.invoice-btn {
display: flex;
align-items: center;
font-size: 28rpx;
font-weight: 400;
color: #347BFF;
}
.invoice-btn .icon {
width: 32rpx;
height: 32rpx;
margin-right: 6rpx;
}
.box .flex { .box .flex {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!