Commit 702cdfff by 张立顺

fix bug

1 parent 186c3552
...@@ -152,7 +152,7 @@ Page({ ...@@ -152,7 +152,7 @@ Page({
}) })
} }
}, },
error: () => { } error: () => {}
}, },
'#modal2' '#modal2'
) )
...@@ -263,8 +263,8 @@ Page({ ...@@ -263,8 +263,8 @@ Page({
} else if (userType == 2) { } else if (userType == 2) {
item item
? this.showSelectType({ ? this.showSelectType({
item item
}) })
: wx.$router.go('tabWorkOrder.' + name, item) : wx.$router.go('tabWorkOrder.' + name, item)
} else { } else {
wx.$util.showNoAccess() wx.$util.showNoAccess()
...@@ -272,8 +272,8 @@ Page({ ...@@ -272,8 +272,8 @@ Page({
} else { } else {
wx.$util.showNoAccess() wx.$util.showNoAccess()
} }
// 已支付加已施工 // 已支付加已施工 全部子订单都已施工才能确认施工详情跳转
} else if (item.constructionFlag == 'Y' && item.status != 10) { } else if (item.allConstructionFlag && item.status != 10) {
wx.$router.go('tabWorkOrder.constructionOrderDetail', item) wx.$router.go('tabWorkOrder.constructionOrderDetail', item)
} else { } else {
wx.$router.go('tabWorkOrder.' + name, item) wx.$router.go('tabWorkOrder.' + name, item)
...@@ -547,7 +547,7 @@ Page({ ...@@ -547,7 +547,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 { searchObj, userInfo } = this.data let { searchObj, userInfo } = this.data
...@@ -623,7 +623,8 @@ Page({ ...@@ -623,7 +623,8 @@ Page({
// 判断一下是否所有子订单都已经施工,是就跳转 施工完成 // 判断一下是否所有子订单都已经施工,是就跳转 施工完成
e.allConstructionFlag = true e.allConstructionFlag = true
e.subOrderList.map(i => { e.subOrderList.map(i => {
if (i.constructionFlag != 'Y') { // 判断一下是否所有子订单都已经施工
if (![1, 2, 3].includes(i.constructionStatus)) {
e.allConstructionFlag = false e.allConstructionFlag = false
} }
i.totalPrice = Number(wx.$util.decimal(i.totalPrice, 2)).toFixed(2) i.totalPrice = Number(wx.$util.decimal(i.totalPrice, 2)).toFixed(2)
...@@ -649,7 +650,8 @@ Page({ ...@@ -649,7 +650,8 @@ Page({
g.price = g.totalPrice g.price = g.totalPrice
? Number(g.totalPrice) / Number(g.number) ? Number(g.totalPrice) / Number(g.number)
: g.upgradePrice : g.upgradePrice
if (g.constructionFlag != 'Y') { // 判断一下是否所有子订单都已经施工
if (![1, 2, 3].includes(g.constructionStatus)) {
e.allConstructionFlag = false e.allConstructionFlag = false
} }
}) })
...@@ -859,7 +861,7 @@ Page({ ...@@ -859,7 +861,7 @@ Page({
/** /**
* 生命周期函数--监听页面初次渲染完成 * 生命周期函数--监听页面初次渲染完成
*/ */
onReady: function () { }, onReady: function () {},
/** /**
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
...@@ -871,22 +873,22 @@ Page({ ...@@ -871,22 +873,22 @@ Page({
/** /**
* 生命周期函数--监听页面隐藏 * 生命周期函数--监听页面隐藏
*/ */
onHide: function () { }, onHide: function () {},
/** /**
* 生命周期函数--监听页面卸载 * 生命周期函数--监听页面卸载
*/ */
onUnload: function () { }, onUnload: function () {},
/** /**
* 页面相关事件处理函数--监听用户下拉动作 * 页面相关事件处理函数--监听用户下拉动作
*/ */
onPullDownRefresh: function () { }, onPullDownRefresh: function () {},
/** /**
* 页面上拉触底事件的处理函数 * 页面上拉触底事件的处理函数
*/ */
onReachBottom: function () { }, onReachBottom: function () {},
scrollonReachBottom() { scrollonReachBottom() {
let { total, pageNum } = this.data let { total, pageNum } = this.data
wx.$util.onReachBottom( wx.$util.onReachBottom(
...@@ -909,5 +911,5 @@ Page({ ...@@ -909,5 +911,5 @@ Page({
/** /**
* 用户点击右上角分享 * 用户点击右上角分享
*/ */
onShareAppMessage: function () { } onShareAppMessage: function () {}
}) })
...@@ -236,6 +236,7 @@ page { ...@@ -236,6 +236,7 @@ page {
.list .item .goods-list .constructionFlaging::after { .list .item .goods-list .constructionFlaging::after {
width: var(--fontSize32); width: var(--fontSize32);
height: var(--fontSize32); height: var(--fontSize32);
margin-left: -10rpx;
background: url(https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/miniProgram/constructionFlaging.png); background: url(https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/miniProgram/constructionFlaging.png);
background-size: 100%; background-size: 100%;
} }
...@@ -243,6 +244,7 @@ page { ...@@ -243,6 +244,7 @@ page {
.list .item .goods-list .constructionFlaged::after { .list .item .goods-list .constructionFlaged::after {
width: var(--fontSize32); width: var(--fontSize32);
height: var(--fontSize32); height: var(--fontSize32);
margin-left: -10rpx;
background: url(https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/miniProgram/constructionFlaged.png); background: url(https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/miniProgram/constructionFlaged.png);
background-size: 100%; background-size: 100%;
} }
...@@ -252,6 +254,7 @@ page { ...@@ -252,6 +254,7 @@ page {
height: var(--fontSize32); height: var(--fontSize32);
-webkit-transition: all 0.4s; -webkit-transition: all 0.4s;
transition: all 0.4s; transition: all 0.4s;
margin-left: -8rpx;
background: url(https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/miniProgram/pullDownArrow.png); background: url(https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/miniProgram/pullDownArrow.png);
background-size: 100%; background-size: 100%;
} }
...@@ -262,6 +265,8 @@ page { ...@@ -262,6 +265,8 @@ page {
// height: var(--fontSize32); // height: var(--fontSize32);
// -webkit-transition: all 0.4s; // -webkit-transition: all 0.4s;
transition: all 0.4s; transition: all 0.4s;
margin-top: -15rpx;
margin-left: -8rpx;
// background: url(https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/miniProgram/pullDownArrow.png); // background: url(https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/miniProgram/pullDownArrow.png);
// background-size: 100%; // background-size: 100%;
} }
......
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
<view class="goods-list" style="padding-bottom:{{ li.subOrderList.length<1?0:'' }}"> <view class="goods-list" style="padding-bottom:{{ li.subOrderList.length<1?0:'' }}">
<block wx:if="{{ li.subOrderList.length }}"> <block wx:if="{{ li.subOrderList.length }}">
<block wx:for="{{ li.subOrderList }}" wx:key="sindex" wx:for-item="i" wx:for-index="sindex"> <block wx:for="{{ li.subOrderList }}" wx:key="sindex" wx:for-item="i" wx:for-index="sindex">
<view catch:tap="foldUp" data-item="{{ i }}" data-index="{{ sindex }}" data-listindex="{{ ind }}" class="goods {{ filter.subStatus(i.constructionStatus) }} {{i.packageGoodsOrderList?'pullDownArrow':''}} {{sindex.foldUp?'showAllGoodsListFlag':'' }}" wx:if="{{ li.showAllGoodsListFlag ? true : sindex < 2 }}"> <view catch:tap="foldUp" data-item="{{ i }}" data-index="{{ sindex }}" data-listindex="{{ ind }}" class="goods {{ filter.subStatus(i.constructionStatus) }} {{i.packageGoodsOrderList?'pullDownArrow':''}} {{i.foldUp?'showAllGoodsListFlag':'' }}" wx:if="{{ li.showAllGoodsListFlag ? true : sindex < 2 }}">
<view class="goods-name text-hide"> <view class="goods-name text-hide">
{{filter.replaceItemText(i.upgradeGoodsAlias) ||filter.replaceItemText(i.upgradeGoodsName) || i.packageName||''}} {{filter.replaceItemText(i.upgradeGoodsAlias) ||filter.replaceItemText(i.upgradeGoodsName) || i.packageName||''}}
</view> </view>
......
...@@ -5,7 +5,9 @@ ...@@ -5,7 +5,9 @@
<view class="main" style="padding-bottom: {{'var(--fontSize290)'}};"> <view class="main" style="padding-bottom: {{'var(--fontSize290)'}};">
<view class="status-box"> <view class="status-box">
<view class="user-info"> <view class="user-info">
<view class="car hide-text"><image wx:if="{{detailInfo.constructionStatus != 0}}" src="{{IMG_URL}}repair-order/complete.png" mode=""/>{{detailInfo.customer.carSeriesName || '无车型客户'}}</view> <view class="car hide-text">
<image wx:if="{{detailInfo.constructionStatus != 0}}" src="{{IMG_URL}}repair-order/complete.png" mode="" />{{detailInfo.customer.carSeriesName || '无车型客户'}}
</view>
<view class="staff-name"> <view class="staff-name">
<text class="name">{{detailInfo.customer.customerName || '-'}}</text> <text class="name">{{detailInfo.customer.customerName || '-'}}</text>
</view> </view>
...@@ -22,7 +24,7 @@ ...@@ -22,7 +24,7 @@
<view>完成施工,如客户返工请点击</view> <view>完成施工,如客户返工请点击</view>
<view wx:if="{{detailInfo.approvalStatus}}">{{detailInfo.approvalName}}已审核{{detailInfo.approvalStatus == 1 ? '通过' : '不通过'}}</view> <view wx:if="{{detailInfo.approvalStatus}}">{{detailInfo.approvalName}}已审核{{detailInfo.approvalStatus == 1 ? '通过' : '不通过'}}</view>
</view> </view>
<view class="btn text-center" bindtap="handleRedo" wx:if="{{filter.btnPermissions(userPermissions, 'WULIAOCHUKU')}}">客户返工</view> <view class="btn text-center" bindtap="handleRedo" wx:if="{{filter.btnPermissions(userPermissions, 'WULIAOCHUKU')&&detailInfo.effectiveFlag == 0}}">客户返工</view>
</view> </view>
</block> </block>
</view> </view>
...@@ -87,7 +89,7 @@ ...@@ -87,7 +89,7 @@
</block> </block>
<block wx:elif="{{detailInfo.constructionStatus != 0}}"> <block wx:elif="{{detailInfo.constructionStatus != 0}}">
<view class="empty-box"> <view class="empty-box">
<image src="{{IMG_URL}}repair-order/repair-order-empty.png" mode=""/> <image src="{{IMG_URL}}repair-order/repair-order-empty.png" mode="" />
暂无数据 暂无数据
</view> </view>
</block> </block>
...@@ -121,7 +123,7 @@ ...@@ -121,7 +123,7 @@
</block> </block>
<block wx:else> <block wx:else>
<view class="empty-box"> <view class="empty-box">
<image src="{{IMG_URL}}repair-order/repair-order-empty.png" mode=""/> <image src="{{IMG_URL}}repair-order/repair-order-empty.png" mode="" />
暂无数据 暂无数据
</view> </view>
</block> </block>
...@@ -194,37 +196,8 @@ ...@@ -194,37 +196,8 @@
</view> </view>
</view> </view>
</block> </block>
<time-select <time-select show="{{ startTimeVisible }}" title="开始施工时间" defaultTime="{{ detailInfo.startTime }}" isStartTime="{{ true }}" endTime="{{ detailInfo.endTime }}" bind:confirm="onStartTimeConfirm" bindcancel="onClosePicker" />
show="{{ startTimeVisible }}" <time-select show="{{ endTimeVisible }}" title="结束施工时间" defaultTime="{{ detailInfo.endTime }}" isStartTime="{{ false }}" startTime="{{ detailInfo.startTime }}" bind:confirm="onEndTimeConfirm" bindcancel="onClosePicker" />
title="开始施工时间" <outbound-popup show="{{ outboundVisible }}" title="物料出库" detailInfo="{{ detailInfo }}" bindcancel="handleOutboundCancel" bindconfirm="handleOutboundConfirm" userPermissions="{{ userPermissions }}"></outbound-popup>
defaultTime="{{ detailInfo.startTime }}" <rework-popup show="{{ reworkVisible }}" title="返工确认" detailInfo="{{ detailInfo }}" bindcancel="handleReworkCancel" bindconfirm="handleReworkConfirm"></rework-popup>
isStartTime="{{ true }}" <review-popup show="{{reviewVisible}}" bindcancel="reviewCancel" bindconfirm="reviewConfirm" bindclose="reviewClose"></review-popup>
endTime="{{ detailInfo.endTime }}"
bind:confirm="onStartTimeConfirm"
bindcancel="onClosePicker"
/>
<time-select
show="{{ endTimeVisible }}"
title="结束施工时间"
defaultTime="{{ detailInfo.endTime }}"
isStartTime="{{ false }}"
startTime="{{ detailInfo.startTime }}"
bind:confirm="onEndTimeConfirm"
bindcancel="onClosePicker"
/>
<outbound-popup
show="{{ outboundVisible }}"
title="物料出库"
detailInfo="{{ detailInfo }}"
bindcancel="handleOutboundCancel"
bindconfirm="handleOutboundConfirm"
userPermissions="{{ userPermissions }}"
></outbound-popup>
<rework-popup
show="{{ reworkVisible }}"
title="返工确认"
detailInfo="{{ detailInfo }}"
bindcancel="handleReworkCancel"
bindconfirm="handleReworkConfirm"
></rework-popup>
<review-popup show="{{reviewVisible}}" bindcancel="reviewCancel" bindconfirm="reviewConfirm" bindclose="reviewClose"></review-popup>
\ No newline at end of file \ No newline at end of file
...@@ -50,6 +50,7 @@ Component({ ...@@ -50,6 +50,7 @@ Component({
wx.$router.go(path, { wx.$router.go(path, {
...item ...item
}) })
this.handleCancel()
}, },
selectType(e) { selectType(e) {
let { type } = e.currentTarget.dataset let { type } = e.currentTarget.dataset
......
...@@ -29,7 +29,8 @@ Component({ ...@@ -29,7 +29,8 @@ Component({
data: { data: {
// selectType: 82, // selectType: 82,
constructionList: [], constructionList: [],
loading: false loading: false,
first: true
}, },
/** /**
...@@ -46,6 +47,7 @@ Component({ ...@@ -46,6 +47,7 @@ Component({
// let {constructionList} = this.data // let {constructionList} = this.data
let { index, value } = e.currentTarget.dataset let { index, value } = e.currentTarget.dataset
this.setData({ this.setData({
first: false,
['constructionList[' + index + '].constructionFlag']: value ['constructionList[' + index + '].constructionFlag']: value
}) })
}, },
...@@ -99,7 +101,7 @@ Component({ ...@@ -99,7 +101,7 @@ Component({
}) })
}) })
}, },
error: () => {} error: () => { }
}, },
'#modal' '#modal'
) )
...@@ -108,11 +110,17 @@ Component({ ...@@ -108,11 +110,17 @@ Component({
this.triggerEvent('cancel') this.triggerEvent('cancel')
}, },
handleConfirm() { handleConfirm() {
let { constructionList, orderCode } = this.data let { constructionList, orderCode, first } = this.data
if (constructionList.length == 0 || first) return false;
if (constructionList.length > 0) { if (constructionList.length > 0) {
let flag = constructionList.some(item => item.constructionFlag == 1) let flag = constructionList.every(item => {
// console.log(item);
return ['1', '2'].includes(item.constructionFlag)
})
// console.log(flag, 'constructionFlag');
if (!flag) { if (!flag) {
wx.$util.showToast('请最少选择一个施工商品') wx.$util.showToast('需要勾选全部施工商品')
return return
} }
} }
......
...@@ -123,4 +123,8 @@ ...@@ -123,4 +123,8 @@
background: #347BFF; background: #347BFF;
margin-left: 24rpx; margin-left: 24rpx;
} }
.disabled {
background: #D0D2D6;
color: #FFFFFF;
}
} }
\ No newline at end of file \ No newline at end of file
...@@ -22,6 +22,6 @@ ...@@ -22,6 +22,6 @@
</view> </view>
<view class="btnbox"> <view class="btnbox">
<view class="btn cancel" bind:tap="handleCancel">取消</view> <view class="btn cancel" bind:tap="handleCancel">取消</view>
<view class="btn confirm" bind:tap="handleConfirm">下一步</view> <view class="btn confirm {{constructionList.length == '0' || first? 'disabled' : '' }}" bind:tap="handleConfirm">下一步</view>
</view> </view>
</modal> </modal>
\ No newline at end of file \ No newline at end of file
// tabWorkOrder/components/applyRefundBtn/applyRefundBtn.js // tabWorkOrder/components/applyRefundBtn/applyRefundBtn.js
import api from "~/api/api" import api from '~/api/api'
Component({ Component({
/** /**
* 组件的属性列表 * 组件的属性列表
*/ */
properties: { properties: {
orderInfo: Object orderInfo: Object,
showRefundBtn: Boolean,
updateFlag: Boolean
}, },
/** /**
...@@ -27,12 +28,15 @@ Component({ ...@@ -27,12 +28,15 @@ Component({
selectTap() { selectTap() {
let { orderInfo } = this.data let { orderInfo } = this.data
// 查询订单可展示按钮 // 查询订单可展示按钮
api.getMoreBtnAPI({orderCode: orderInfo.orderCode}).then(res => { api.getMoreBtnAPI({ orderCode: orderInfo.orderCode }).then(res => {
let { code, data } = res let { code, data } = res
if (code == 0) { if (code == 0) {
this.setData({ this.setData({
moreSelectData: this.filterMoreSelectData(data.refundApplyButton, data.refundApplyDetailButton), moreSelectData: this.filterMoreSelectData(
showSelect: !this.data.showSelect, data.refundApplyButton,
data.refundApplyDetailButton
),
showSelect: !this.data.showSelect
}) })
} }
}) })
...@@ -41,8 +45,8 @@ Component({ ...@@ -41,8 +45,8 @@ Component({
filterMoreSelectData(refundApplyButton, refundApplyDetailButton) { filterMoreSelectData(refundApplyButton, refundApplyDetailButton) {
const allOptions = ['申请退款', '退款详情'] const allOptions = ['申请退款', '退款详情']
const conditions = { const conditions = {
'申请退款': refundApplyButton === 'Y', 申请退款: refundApplyButton === 'Y',
'退款详情': refundApplyDetailButton === 'Y' 退款详情: refundApplyDetailButton === 'Y'
} }
return allOptions.filter(option => conditions[option]) return allOptions.filter(option => conditions[option])
}, },
...@@ -53,7 +57,13 @@ Component({ ...@@ -53,7 +57,13 @@ Component({
moreSelectIndex: null moreSelectIndex: null
}) })
}, },
tapConstruction() {
this.closeSelect()
let thisPage = wx.$router.getPageInstance()
thisPage.setData({
sublistVisible: true
})
},
optionTap(e) { optionTap(e) {
let { index, item } = e.currentTarget.dataset let { index, item } = e.currentTarget.dataset
let { orderInfo } = this.data let { orderInfo } = this.data
...@@ -62,47 +72,54 @@ Component({ ...@@ -62,47 +72,54 @@ Component({
// 申请退款点击埋点 // 申请退款点击埋点
wx.$track.setTrackData(0, 'apply_refund_page', {}, '', 1) wx.$track.setTrackData(0, 'apply_refund_page', {}, '', 1)
// 退款申请时区域运营查询 // 退款申请时区域运营查询
api.areaSupervisionExistsAPI({merchantId: userInfo.shopMerchantId, sceneType: userInfo.sceneType}).then(res => { api
let { code, data, message} = res .areaSupervisionExistsAPI({
if (code == 0) { merchantId: userInfo.shopMerchantId,
if (!data) { sceneType: userInfo.sceneType
return this.setData({ })
areaOperationsFlag: true, .then(res => {
showSelect: !this.data.showSelect let { code, data, message } = res
}) if (code == 0) {
if (!data) {
return this.setData({
areaOperationsFlag: true,
showSelect: !this.data.showSelect
})
} else {
wx.navigateTo({
url: `/tabWorkOrder/pages/refundApply/refundApply?orderCode=${orderInfo.orderCode}&shopMerchantName=${orderInfo.merchantName}&shopMerchantId=${orderInfo.merchantId}`
})
this.closeSelect()
}
} else { } else {
wx.navigateTo({ return wx.$util.showToast(message)
url: `/tabWorkOrder/pages/refundApply/refundApply?orderCode=${orderInfo.orderCode}&shopMerchantName=${orderInfo.merchantName}&shopMerchantId=${orderInfo.merchantId}`,
})
this.closeSelect()
} }
} else { })
return wx.$util.showToast(message)
}
})
} else { } else {
// 退款详情点击埋点 // 退款详情点击埋点
wx.$track.setTrackData(0, 'refund_detail_page', {}, '', 1) wx.$track.setTrackData(0, 'refund_detail_page', {}, '', 1)
// 点击退款详情,判断是否存在多条退款申请记录,存在跳转列表页,不存在直接跳转详情页 // 点击退款详情,判断是否存在多条退款申请记录,存在跳转列表页,不存在直接跳转详情页
api.getRefundDetailListAPI({orderCode: orderInfo.orderCode}).then(res => { api
let { code, data } = res .getRefundDetailListAPI({ orderCode: orderInfo.orderCode })
if (code == 0) { .then(res => {
if (data?.length > 1) { let { code, data } = res
wx.navigateTo({ if (code == 0) {
url: `/tabWorkOrder/pages/refundDetailList/refundDetailList?orderCode=${orderInfo.orderCode}`, if (data?.length > 1) {
}) wx.navigateTo({
} else if (data.length == 1) { url: `/tabWorkOrder/pages/refundDetailList/refundDetailList?orderCode=${orderInfo.orderCode}`
wx.navigateTo({ })
url: `/tabWorkOrder/pages/refundApply/refundApply?applyCode=${data[0].applyCode}`, } else if (data.length == 1) {
}) wx.navigateTo({
url: `/tabWorkOrder/pages/refundApply/refundApply?applyCode=${data[0].applyCode}`
})
}
} }
} this.closeSelect()
this.closeSelect() })
})
} }
this.setData({ this.setData({
moreSelectIndex: index, moreSelectIndex: index
// showSelect: !this.data.showSelect // showSelect: !this.data.showSelect
}) })
}, },
...@@ -112,4 +129,4 @@ Component({ ...@@ -112,4 +129,4 @@ Component({
}) })
} }
} }
})
\ No newline at end of file \ No newline at end of file
})
/* tabWorkOrder/components/applyRefundBtn/applyRefundBtn.wxss */ /* tabWorkOrder/components/applyRefundBtn/applyRefundBtn.wxss */
.select_box { .select_box {
position: relative; position: relative;
.select {
display: flex;
align-items: center;
}
.icon {
width: 32rpx;
height: 32rpx;
// margin-right: 7rpx;
}
.more-btn { .more-btn {
position: relative; position: relative;
font-size: var(--fontSize28); font-size: var(--fontSize28);
color: #347BFF; color: #347BFF;
font-weight: 400; font-weight: 400;
} }
.option_box{
.option_box {
position: absolute; position: absolute;
z-index: 1005; z-index: 1005;
top: var(--fontSize60); top: var(--fontSize60);
right: calc(-1 * var(--fontSize24)); right: calc(-1 * var(--fontSize24));
width: var(--fontSize194); width: var(--fontSize194);
box-sizing: border-box; box-sizing: border-box;
background: #FFFFFF; background: #FFFFFF;
box-shadow: 0 var(--fontSize4) var(--fontSize12) #0000000d; box-shadow: 0 var(--fontSize4) var(--fontSize12) #0000000d;
border-radius: var(--fontSize16); border-radius: var(--fontSize16);
overflow: hidden; overflow: hidden;
.option{
.option {
display: block; display: block;
height: var(--fontSize88); height: var(--fontSize88);
line-height: var(--fontSize88); line-height: var(--fontSize88);
...@@ -28,18 +42,22 @@ ...@@ -28,18 +42,22 @@
font-weight: 400; font-weight: 400;
font-size: var(--fontSize28); font-size: var(--fontSize28);
} }
.option:first-child{
.option:first-child {
border-radius: var(--fontSize16) var(--fontSize16) 0 0; border-radius: var(--fontSize16) var(--fontSize16) 0 0;
} }
.option:last-child{
.option:last-child {
border-radius: 0 0 var(--fontSize16) var(--fontSize16); border-radius: 0 0 var(--fontSize16) var(--fontSize16);
} }
.option.active{
.option.active {
background: #347bff1a; background: #347bff1a;
color: #347BFF; color: #347BFF;
} }
} }
.option_box::after{
.option_box::after {
height: 0; height: 0;
width: 0; width: 0;
content: ''; content: '';
...@@ -52,20 +70,22 @@ ...@@ -52,20 +70,22 @@
transform: rotate(90deg); transform: rotate(90deg);
filter: drop-shadow(0 var(--fontSize4) var(--fontSize8) #0000000d) filter: drop-shadow(0 var(--fontSize4) var(--fontSize8) #0000000d)
} }
.option_box::before{
.option_box::before {
height: 0; height: 0;
width: 0; width: 0;
content: ''; content: '';
position: absolute; position: absolute;
border: var(--fontSize14) solid transparent; border: var(--fontSize14) solid transparent;
border-right: var(--fontSize14) solid #FFFFFF; border-right: var(--fontSize14) solid #FFFFFF;
top: calc(-1 * var(--fontSize28)); top: calc(-1 * var(--fontSize28));
left: var(--fontSize88); left: var(--fontSize88);
z-index: 1; z-index: 1;
transform: rotate(90deg); transform: rotate(90deg);
filter: drop-shadow(0 var(--fontSize4) var(--fontSize8) #0000000d) filter: drop-shadow(0 var(--fontSize4) var(--fontSize8) #0000000d)
} }
.mask_class{
.mask_class {
width: 100vw; width: 100vw;
height: 100vh; height: 100vh;
background: transparent; background: transparent;
......
<!--tabWorkOrder/components/applyRefundBtn/applyRefundBtn.wxml--> <!--tabWorkOrder/components/applyRefundBtn/applyRefundBtn.wxml-->
<view class='select_box' > <view class="select_box">
<view class='select' catchtap='selectTap'> <view class="select" catchtap="selectTap">
<view class='more-btn'>更多</view> <gl-image class="icon" src="/miniProgram/more.png"></gl-image>
</view> <view class="more-btn">更多</view>
<view class='option_box' wx:if="{{showSelect}}"> </view>
<view class='option {{moreSelectIndex == index ? "active" : ""}}' wx:for='{{moreSelectData}}' wx:key='this' data-index='{{index}}' data-item="{{item}}" catchtap='optionTap'>{{item}}</view> <view class="option_box" wx:if="{{ showSelect }}">
</view> <view class="option" wx:if="{{ updateFlag }}" catchtap="tapConstruction">修改施工</view>
<view class="mask_class" wx:if="{{showSelect}}" bindtap="closeSelect"></view> <block wx:if="{{ showRefundBtn }}">
<view
class="option {{ moreSelectIndex == index ?'active' : '' }}"
wx:for="{{ moreSelectData }}"
wx:key="this"
data-index="{{ index }}"
data-item="{{ item }}"
catchtap="optionTap"
>{{item}}</view>
</block>
</view>
<view class="mask_class" wx:if="{{ showSelect }}" bindtap="closeSelect"></view>
</view> </view>
<area-operations-modal wx:if="{{areaOperationsFlag}}" isShow="{{areaOperationsFlag}}" bindclose="closeModal"></area-operations-modal>
\ No newline at end of file \ No newline at end of file
<area-operations-modal wx:if="{{ areaOperationsFlag }}" isShow="{{ areaOperationsFlag }}" bindclose="closeModal"></area-operations-modal>
\ No newline at end of file \ No newline at end of file
...@@ -150,7 +150,35 @@ var techicianName = function (array) { ...@@ -150,7 +150,35 @@ var techicianName = function (array) {
} }
return result return result
} }
var subStatus = function (constructionStatus) {
console.log(constructionStatus)
switch (constructionStatus) {
case 1:
case 2:
return 'constructionFlaged'
case 0:
return 'constructionFlaging'
case 3:
return ''
default:
return ''
}
// return 'constructionFlaging';
}
var subStatusName = function (constructionStatus) {
console.log(constructionStatus)
switch (constructionStatus) {
case 1:
case 2:
return '已施工'
case 0:
return '待施工'
case 3:
return ''
default:
return ''
}
}
/* /*
* 导出 * 导出
*/ */
...@@ -165,5 +193,7 @@ module.exports = { ...@@ -165,5 +193,7 @@ module.exports = {
filterOrderStatus: filterOrderStatus, filterOrderStatus: filterOrderStatus,
filterRefundDisabled: filterRefundDisabled, filterRefundDisabled: filterRefundDisabled,
activeNum: activeNum, activeNum: activeNum,
techicianName: techicianName techicianName: techicianName,
subStatus: subStatus,
subStatusName: subStatusName
} }
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
"select-invoice-modal": "/components/SelectInvoiceModal/SelectInvoiceModal", "select-invoice-modal": "/components/SelectInvoiceModal/SelectInvoiceModal",
"apply-refund-btn": "/tabWorkOrder/components/applyRefundBtn/applyRefundBtn", "apply-refund-btn": "/tabWorkOrder/components/applyRefundBtn/applyRefundBtn",
"order-prompt-popup": "/components/orderPromptPop/orderPromptPop", "order-prompt-popup": "/components/orderPromptPop/orderPromptPop",
"ConstructionDetailModal": "/tabWorkOrder/components/ConstructionDetailModal/ConstructionDetailModal" "ConstructionDetailModal": "/tabWorkOrder/components/ConstructionDetailModal/ConstructionDetailModal",
"sublist-modal": "/tabWorkOrder/components/SublistModal/SublistModal"
} }
} }
...@@ -4,7 +4,8 @@ page { ...@@ -4,7 +4,8 @@ page {
} }
.main { .main {
padding-bottom: var(--fontSize160); padding-bottom: var(--fontSize210);
overflow: scroll;
} }
.status-box { .status-box {
...@@ -236,17 +237,41 @@ page { ...@@ -236,17 +237,41 @@ page {
font-size: var(--fontSize24); font-size: var(--fontSize24);
} }
.constructionFlaged {
width: 58rpx;
height: 26rpx;
font-family: PingFangSC-Medium;
font-weight: 500;
font-size: 18rpx;
color: #35C376;
border: 1px solid #35C376;
line-height: 26rpx;
text-align: center;
}
.constructionFlaging {
width: 58rpx;
height: 26rpx;
line-height: 26rpx;
text-align: center;
border: 1px solid #FF9D0A;
font-family: PingFangSC-Medium;
font-weight: 500;
font-size: 18rpx;
color: #FF9D0A;
}
.artificer { .artificer {
height: var(--fontSize48); // height: var(--fontSize48);
background: #FFFFFF; // background: #FFFFFF;
border: var(--fontSize1) solid #DEE0E3; // border: var(--fontSize1) solid #DEE0E3;
border-radius: var(--fontSize26); // border-radius: var(--fontSize26);
display: flex; // display: flex;
align-items: center; // align-items: center;
justify-content: center; // justify-content: center;
padding: 0 var(--fontSize24); // padding: 0 var(--fontSize24);
color: #292D33; // color: #292D33;
font-size: var(--fontSize24); // font-size: var(--fontSize24);
margin-left: auto; margin-left: auto;
} }
...@@ -436,8 +461,9 @@ page { ...@@ -436,8 +461,9 @@ page {
.isFullSucreen { page .isFullSucreen {
padding-bottom: var(--fontSize228) !important; box-sizing: border-box;
padding-bottom: var(--fontSize310) !important;
} }
.isFullSucreen-btn { .isFullSucreen-btn {
...@@ -731,8 +757,16 @@ page { ...@@ -731,8 +757,16 @@ page {
box-sizing: border-box; box-sizing: border-box;
/* min-height: var(--fontSize100); */ /* min-height: var(--fontSize100); */
background-color: #fff; background-color: #fff;
padding-bottom: var(--fontSize10);
padding: 0 var(--fontSize32); .btn {
height: var(--fontSize80);
background: #347BFF;
border-radius: var(--fontSize12);
font-size: var(--fontSize28);
color: #FFFFFF;
margin: 0 var(--fontSize32);
}
} }
...@@ -745,6 +779,7 @@ page { ...@@ -745,6 +779,7 @@ page {
color: #347BFF; color: #347BFF;
font-size: var(--fontSize24); font-size: var(--fontSize24);
font-weight: 600; font-weight: 600;
justify-content: center;
} }
.btn-box .checkBtn { .btn-box .checkBtn {
......
...@@ -247,10 +247,11 @@ Page({ ...@@ -247,10 +247,11 @@ Page({
.then(res => { .then(res => {
console.log(res) console.log(res)
let { code, message, data } = res let { code, message, data } = res
console.log('showFlag', res); console.log('showFlag', res)
if (code == 0) { if (code == 0) {
this.setData({ this.setData({
confirmFlagObj: confirmFlagObj[data.confirmFlag] confirmFlagObj: confirmFlagObj[data.confirmFlag],
updateFlag: data.updateFlag
}) })
} }
}) })
...@@ -400,8 +401,9 @@ Page({ ...@@ -400,8 +401,9 @@ Page({
if (data.orderTime) if (data.orderTime)
data.time = new Date(data.orderTime).format('yyyy-MM-dd hh:mm:ss') data.time = new Date(data.orderTime).format('yyyy-MM-dd hh:mm:ss')
if (data.customer && data.customer.carSeriesName) { if (data.customer && data.customer.carSeriesName) {
data.carType = `${data.customer.carBrand || ''}-${data.customer.carChildsBrandName || '' data.carType = `${data.customer.carBrand || ''}-${
}-${data.customer.carSeriesName || ''}` data.customer.carChildsBrandName || ''
}-${data.customer.carSeriesName || ''}`
} }
this.setData({ this.setData({
...@@ -506,7 +508,7 @@ Page({ ...@@ -506,7 +508,7 @@ Page({
}) })
} }
}) })
} catch (err) { } } catch (err) {}
}, },
// 选择技师确认 // 选择技师确认
changeArtificer(e) { changeArtificer(e) {
...@@ -618,7 +620,7 @@ Page({ ...@@ -618,7 +620,7 @@ Page({
warrantyCardList warrantyCardList
}) })
}) })
.catch(err => { }) .catch(err => {})
}, 1000 * index) }, 1000 * index)
}) })
}, },
...@@ -786,8 +788,8 @@ Page({ ...@@ -786,8 +788,8 @@ Page({
!invoiceIssueQrcode !invoiceIssueQrcode
? this.handleSelectInvoice() ? this.handleSelectInvoice()
: wx.$router.go('tabWorkOrder.invoiceCode', { : wx.$router.go('tabWorkOrder.invoiceCode', {
obj: invoiceIssueQrcode obj: invoiceIssueQrcode
}) })
} }
}) })
.finally(() => { .finally(() => {
...@@ -809,7 +811,7 @@ Page({ ...@@ -809,7 +811,7 @@ Page({
/** /**
* 生命周期函数--监听页面初次渲染完成 * 生命周期函数--监听页面初次渲染完成
*/ */
onReady: function () { }, onReady: function () {},
/** /**
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
...@@ -825,12 +827,12 @@ Page({ ...@@ -825,12 +827,12 @@ Page({
/** /**
* 生命周期函数--监听页面隐藏 * 生命周期函数--监听页面隐藏
*/ */
onHide: function () { }, onHide: function () {},
/** /**
* 生命周期函数--监听页面卸载 * 生命周期函数--监听页面卸载
*/ */
onUnload: function () { }, onUnload: function () {},
/** /**
* 页面相关事件处理函数--监听用户下拉动作 * 页面相关事件处理函数--监听用户下拉动作
...@@ -845,5 +847,5 @@ Page({ ...@@ -845,5 +847,5 @@ Page({
/** /**
* 页面上拉触底事件的处理函数 * 页面上拉触底事件的处理函数
*/ */
onReachBottom: function () { } onReachBottom: function () {}
}) })
...@@ -140,17 +140,42 @@ page { ...@@ -140,17 +140,42 @@ page {
} }
.artificer { .artificer {
height: var(--fontSize48); // height: var(--fontSize48);
background: #FFFFFF; // background: #FFFFFF;
border: var(--fontSize1) solid #DEE0E3; // border: var(--fontSize1) solid #DEE0E3;
border-radius: var(--fontSize26); // border-radius: var(--fontSize26);
display: flex; // display: flex;
align-items: center; // align-items: center;
justify-content: center; // justify-content: center;
padding: 0 var(--fontSize24); // padding: 0 var(--fontSize24);
color: #292D33; // color: #292D33;
font-size: var(--fontSize24); // font-size: var(--fontSize24);
margin-left: auto; margin-left: auto;
}
.constructionFlaged {
width: 54rpx;
height: 26rpx;
font-family: PingFangSC-Medium;
font-weight: 500;
font-size: 18rpx;
color: #35C376;
border: 1px solid #35C376;
line-height: 26rpx;
text-align: center;
}
.constructionFlaging {
width: 54rpx;
height: 26rpx;
line-height: 26rpx;
text-align: center;
border: 1px solid #FF9D0A;
font-family: PingFangSC-Medium;
font-weight: 500;
font-size: 18rpx;
color: #FF9D0A;
} }
.artificer text { .artificer text {
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<view class="main {{ sublistVisible?'hildden':''}} {{ isFullSucreen?'isFullSucreen':'' }}"> <view class="main {{ sublistVisible?'hildden':''}} {{ isFullSucreen?'isFullSucreen':'' }}">
<view class="status-box" wx:if="{{ orderInfo.status!=10&&orderInfo.status!=9 }}"> <view class="status-box" wx:if="{{ orderInfo.status!=10&&orderInfo.status!=9 }}">
<view class="content">客户已付款</view> <view class="content">客户已付款</view>
<view class="tips">技师施工完毕后,点击完成施工按钮可通知车主前来取车</view> <view class="tips">请确认订单是否施工,并选择施工服务项目,将产生施工单</view>
</view> </view>
<view class="status-box" wx:if="{{ orderInfo.status == 10 }}"> <view class="status-box" wx:if="{{ orderInfo.status == 10 }}">
<view class="content">订单关闭</view> <view class="content">订单关闭</view>
...@@ -14,7 +14,6 @@ ...@@ -14,7 +14,6 @@
</view> </view>
<view class="status-box" wx:if="{{ orderInfo.status == 9 }}"> <view class="status-box" wx:if="{{ orderInfo.status == 9 }}">
<view class="content">订单已撤销</view> <view class="content">订单已撤销</view>
<!-- <view class="tips">客户支付超过24小时,系统自动关闭订单</view> -->
</view> </view>
<view class="box"> <view class="box">
<!-- <view class="title">礼券信息</view> --> <!-- <view class="title">礼券信息</view> -->
...@@ -45,10 +44,11 @@ ...@@ -45,10 +44,11 @@
<view class="meal-bd-bottom"> <view class="meal-bd-bottom">
{{g.upgradeGoodsType===1?g.positionStr: g.upgradeGoodsTypeName}} {{g.upgradeGoodsType===1?g.positionStr: g.upgradeGoodsTypeName}}
<view class="count">x{{g.number}}</view> <view class="count">x{{g.number}}</view>
<view class="artificer" bindtap="selectArtificer" data-item="{{ g }}"> <view class="artificer {{ filter.subStatus(g.constructionStatus) }}">{{filter.subStatusName(g.constructionStatus)}}</view>
<!-- <view class="artificer" bindtap="selectArtificer" data-item="{{ g }}">
<text class="{{ !g.technicianName ? 'grey_text' : '' }} 'text-hide'">{{g.technicianName || '选择技师'}}</text> <text class="{{ !g.technicianName ? 'grey_text' : '' }} 'text-hide'">{{g.technicianName || '选择技师'}}</text>
<image src="/components/images/arrow-x.png" mode="" /> <image src="/components/images/arrow-x.png" mode="" />
</view> </view> -->
</view> </view>
</view> </view>
</view> </view>
...@@ -84,11 +84,12 @@ ...@@ -84,11 +84,12 @@
<image src="/components/images/arrow-x.png" mode="" /> <image src="/components/images/arrow-x.png" mode="" />
</view> </view>
<!-- 太阳膜类且配置技师 25-8月版本全部放开 --> <!-- 太阳膜类且配置技师 25-8月版本全部放开 -->
<!-- wx:if="{{ item.upgradeGoodsPosition}}" --> <!-- wx:if="{{ item.upgradeGoodbpsPosition}}" -->
<view class="artificer" bindtap="selectArtificer" data-item="{{ item }}"> <!-- <view class="artificer" bindtap="selectArtificer" data-item="{{ item }}">
<text class="{{ !item.technicianName ? 'grey_text' : '' }} 'text-hide'">{{item.technicianName || '选择技师'}}</text> <text class="{{ !item.technicianName ? 'grey_text' : '' }} 'text-hide'">{{item.technicianName || '选择技师'}}</text>
<image src="/components/images/arrow-x.png" mode="" /> <image src="/components/images/arrow-x.png" mode="" />
</view> </view> -->
<view class="artificer {{ filter.subStatus(item.constructionStatus) }}">{{filter.subStatusName(item.constructionStatus)}}</view>
</view> </view>
</view> </view>
</block> </block>
...@@ -117,10 +118,13 @@ ...@@ -117,10 +118,13 @@
工单信息 工单信息
<view style="display: flex;gap: var(--fontSize32);"> <view style="display: flex;gap: var(--fontSize32);">
<!-- 非门店收款 已支付/已退款展示 --> <!-- 非门店收款 已支付/已退款展示 -->
<view <!-- wx:if="{{ isStaff && orderInfo.selectPayType != 2 && showMoreBtn && (orderInfo.status == 4 || orderInfo.status == 6 || orderInfo.status == 12) }}" -->
wx:if="{{ isStaff && orderInfo.selectPayType != 2 && showMoreBtn && (orderInfo.status == 4 || orderInfo.status == 6 || orderInfo.status == 12) }}" <view>
> <apply-refund-btn
<apply-refund-btn orderInfo="{{ orderInfo }}"></apply-refund-btn> orderInfo="{{ orderInfo }}"
updateFlag="{{ updateFlag }}"
showRefundBtn="{{ isStaff && orderInfo.selectPayType != 2 && showMoreBtn && (orderInfo.status == 4 || orderInfo.status == 6 || orderInfo.status == 12) }}"
></apply-refund-btn>
</view> </view>
<view <view
wx:if="{{ orderInfo.showInvoiceEntrance || orderInfo.invoiceStatus == 2 }}" wx:if="{{ orderInfo.showInvoiceEntrance || orderInfo.invoiceStatus == 2 }}"
...@@ -136,7 +140,7 @@ ...@@ -136,7 +140,7 @@
<view class="cell"> <view class="cell">
<view class="label">{{item.label}}</view> <view class="label">{{item.label}}</view>
<block wx:if="{{ item.key == 'status' }}"> <block wx:if="{{ item.key == 'status' }}">
<view class="value" style="color:{{ item.constructionFlag == 'Y'? status[orderInfo.status].color:'' }};"> <view class="value" style="color:{{ status[orderInfo.status].color||'' }};">
<!-- {{ item.constructionFlag == 'Y'? status[orderInfo.status].text: '待施工'}} --> <!-- {{ item.constructionFlag == 'Y'? status[orderInfo.status].text: '待施工'}} -->
{{ status[orderInfo.status].text}} {{ status[orderInfo.status].text}}
</view> </view>
......
...@@ -61,9 +61,9 @@ const domain_items = { ...@@ -61,9 +61,9 @@ const domain_items = {
// dj: 'http://192.168.1.165:8292', // dj: 'http://192.168.1.165:8292',
// dj: 'http://192.168.1.104:8292', //叶立庆 // dj: 'http://192.168.1.104:8292', //叶立庆
// dj: "http://192.168.1.169:8292", //蔡远明 // dj: "http://192.168.1.169:8292", //蔡远明
// dj: 'http://192.168.1.104:8292',//范富荣 dj: 'http://192.168.1.104:8292',//范富荣
// dj: 'http://192.168.1.89:8292', //周杭 // dj: 'http://192.168.1.89:8292', //周杭
dj: 'http://192.168.1.76:8292', //璐琦 // dj: 'http://192.168.1.76:8292', //璐琦
// dj: 'http://192.168.1.227:8292',//陈希 // dj: 'http://192.168.1.227:8292',//陈希
// dj: 'http://192.168.1.67:8292',//周立明 // dj: 'http://192.168.1.67:8292',//周立明
// dj: 'http://192.168.148.235:8292',// 熊正顺 // dj: 'http://192.168.148.235:8292',// 熊正顺
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!