Commit 702cdfff by 张立顺

fix bug

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