Commit 41a0c7b1 by 张立顺

fix bug

1 parent 2fb695a7
......@@ -28,11 +28,11 @@ const checkDailyReport = async sceneType => {
if (sceneType != 7) eventRequest.push(clockedIntoWork())
eventRequest.push(
sceneType
?
?
// sceneType == 7
// ? usedCarStaffDailyReport(userInfo)
// :
equityStaffDailyReport(userInfo)
equityStaffDailyReport(userInfo)
: staffDailyReport(userInfo)
)
}
......@@ -275,6 +275,8 @@ const addModalToQueue = (
// 学习中心 开单限制
const checkStudyTask = () => {
return new Promise((resolve, reject) => {
resolve(false)
return;
wx.showLoading()
api.checkStudyTaskAPI().then(res => {
wx.hideLoading()
......
......@@ -103,7 +103,7 @@ Page({
wx.$util.showToast('更新成功')
this.getOrderDetail(orderCode)
})
.catch(err => { })
.catch(err => {})
// 跳转新增订单页面 并带特定参数
// let { selectType } = this.data;
// if (selectType == 1) {
......@@ -118,7 +118,7 @@ Page({
// });
// }
},
error: () => { }
error: () => {}
},
'#modal4'
)
......@@ -148,7 +148,7 @@ Page({
})
}
},
error: () => { }
error: () => {}
},
'#modal3'
)
......@@ -269,7 +269,7 @@ Page({
success: res => {
this.showErrorType()
},
error: () => { }
error: () => {}
})
},
showRefundAlert() {
......@@ -330,7 +330,7 @@ Page({
})
}
},
error: () => { }
error: () => {}
},
'#modal2'
)
......@@ -646,8 +646,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 || ''}`
}
// 处理订单是否显示 操作按钮 支付方式为pos和微信 并且订单状态是 4和6
// data.failureFlag != 'Y'
......@@ -766,7 +767,7 @@ Page({
})
}
})
} catch (err) { }
} catch (err) {}
},
isArtificer(data) {
let { customerObj, orderInfo } = this.data
......@@ -808,7 +809,7 @@ Page({
warrantyCardList
})
})
.catch(err => { })
.catch(err => {})
}, 500 * index)
})
},
......@@ -1006,8 +1007,8 @@ Page({
!invoiceIssueQrcode
? this.handleSelectInvoice()
: wx.$router.go('tabWorkOrder.invoiceCode', {
obj: invoiceIssueQrcode
})
obj: invoiceIssueQrcode
})
}
})
.finally(() => {
......@@ -1028,7 +1029,7 @@ Page({
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () { },
onReady: function () {},
/**
* 生命周期函数--监听页面显示
......@@ -1046,12 +1047,12 @@ Page({
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () { },
onHide: function () {},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () { },
onUnload: function () {},
/**
* 页面相关事件处理函数--监听用户下拉动作
......@@ -1066,5 +1067,5 @@ Page({
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () { }
onReachBottom: function () {}
})
......@@ -310,7 +310,8 @@ SubmitContext.prototype.doSubmit = async function (submitObj, apiName, save) {
page.setData({
submitStatus: true
})
console.log(submitObj, 'submitObj');
return;
try {
const res = await api[apiName](submitObj)
let code = res.code
......
......@@ -149,7 +149,7 @@ Page({
})
}
},
error: () => { }
error: () => {}
},
'#modal2'
)
......@@ -171,8 +171,11 @@ Page({
if (refundStep?.data == 'Y') return this.showRefundAlert()
// 有进行的施工单做提示
let res = await api.statByStatus({ merchantId: orderInfo.merchantId, orderCode: orderInfo.orderCode })
console.log(res, 'status');
let res = await api.statByStatus({
merchantId: orderInfo.merchantId,
orderCode: orderInfo.orderCode
})
console.log(res, 'status')
let { data } = res
if (data?.incompleteTotal > 0) {
wx.$modal(
......@@ -185,7 +188,7 @@ Page({
console.log(res, 'res')
this.showTarget()
},
error: () => { }
error: () => {}
},
'#modal5'
)
......@@ -202,7 +205,7 @@ Page({
console.log(res, 'res')
this.showErrorType()
},
error: () => { }
error: () => {}
})
},
targetOperate() {
......@@ -595,14 +598,16 @@ 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 || ''}`
}
// 处理订单是否显示 操作按钮 支付方式为pos和微信 并且订单状态是 4和6
// data.failureFlag != 'Y'
data.canOperate =
[1, 3, 4].includes(data.selectPayType) &&
[4, 6].includes(data.status)
// data.goodsOrderApplyStatus = 2
this.setData({
allNoConstruction,
orderInfo: data,
......@@ -706,7 +711,7 @@ Page({
})
}
})
} catch (err) { }
} catch (err) {}
},
// 选择技师确认
changeArtificer(e) {
......@@ -818,7 +823,7 @@ Page({
warrantyCardList
})
})
.catch(err => { })
.catch(err => {})
}, 1000 * index)
})
},
......@@ -986,8 +991,8 @@ Page({
!invoiceIssueQrcode
? this.handleSelectInvoice()
: wx.$router.go('tabWorkOrder.invoiceCode', {
obj: invoiceIssueQrcode
})
obj: invoiceIssueQrcode
})
}
})
.finally(() => {
......@@ -1009,7 +1014,7 @@ Page({
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () { },
onReady: function () {},
/**
* 生命周期函数--监听页面显示
......@@ -1025,12 +1030,12 @@ Page({
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () { },
onHide: function () {},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () { },
onUnload: function () {},
/**
* 页面相关事件处理函数--监听用户下拉动作
......@@ -1045,5 +1050,5 @@ Page({
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () { }
onReachBottom: function () {}
})
......@@ -691,6 +691,158 @@ page {
margin: 0 calc(-1 * var(--fontSize20)) var(--fontSize16);
}
.approval-tag {
padding: 4rpx 12rpx;
border-radius: 4rpx;
font-size: 24rpx;
}
.goodsOrderApplyStatus {
padding-bottom: var(--fontSize40);
}
.approval-tag.success {
color: #35C376;
border: 1px solid #35C376;
}
.approval-tag.error {
color: #F5222D;
border: 1px solid #F5222D;
}
.approval-tag.warning {
color: #FF9D0A;
border: 1px solid #FF9D0A;
}
.approval-info {
display: flex;
font-size: 28rpx;
margin-top: 20rpx;
}
.approval-info .label {
color: #888;
width: 140rpx;
}
.approval-info .value {
flex: 1;
color: #333;
word-break: break-all;
}
.timeline {
margin-top: 30rpx;
}
.timeline .timeline-item {
display: flex;
position: relative;
min-height: 80rpx;
overflow: visible;
}
.timeline .timeline-item .timeline-left {
width: 40rpx;
display: flex;
flex-direction: column;
align-items: center;
margin-right: 10rpx;
position: relative;
flex-shrink: 0;
align-self: stretch;
}
.timeline .timeline-item .timeline-left .dot-wrapper {
width: 100%;
height: 44rpx;
display: flex;
align-items: center;
justify-content: center;
}
.timeline .timeline-item .timeline-left .dot {
width: 16rpx;
height: 16rpx;
border-radius: 50%;
background: #E5E5E5;
z-index: 2;
box-sizing: border-box;
}
.timeline .timeline-item .timeline-left .dot.step-active {
background: #FFFFFF;
border: 4rpx solid #347BFF;
width: 24rpx;
height: 24rpx;
position: relative;
}
.timeline .timeline-item .timeline-left .dot.step-active::after {
content: '';
position: absolute;
width: 10rpx;
height: 10rpx;
background: #347BFF;
border-radius: 50%;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.timeline .timeline-item .timeline-left .dot.step-done {
background: #d6e4ff;
}
.timeline .timeline-item .timeline-left .dot.step-wait {
background: #E5E5E5;
}
.timeline .timeline-item .timeline-left .statusLine {
position: absolute;
top: 38rpx;
bottom: -10rpx;
left: 50%;
transform: translateX(-50%);
width: 2rpx;
background: #D8D8D8;
z-index: 1;
}
.timeline .timeline-item:last-child .timeline-left .statusLine {
display: none;
}
.timeline .timeline-item .timeline-left .statusLine.step-done {
background: #8FB5FF;
top: 34rpx;
bottom: -6rpx;
}
.timeline .timeline-item .timeline-content {
flex: 1;
font-size: 28rpx;
color: #333;
display: flex;
align-items: center;
height: 44rpx;
}
.timeline .timeline-item .timeline-content .status {
margin-left: 20rpx;
font-size: 24rpx;
}
.timeline .timeline-item .timeline-content .status.warning {
color: #FF9D0A;
}
.timeline .timeline-item .timeline-content .status.success {
color: #35C376;
}
.meal-hd {
padding: var(--fontSize20);
/* box-shadow: 0 var(--fontSize4) var(--fontSize20) 0 #0000001a; */
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!