Commit 7aeaafaa by 张立顺

fix bug

1 parent fea1ca41
......@@ -38,9 +38,18 @@ Page({
constructionVisible: false
},
constructionCancel() {
this.setData({
constructionVisible: false
})
this.setData(
{
constructionVisible: false
},
() => {
wx.setPageStyle({
style: {
overflow: 'unset'
}
})
}
)
},
RatingPopupSetting() {
this.setData({
......@@ -94,7 +103,7 @@ Page({
wx.$util.showToast('更新成功')
this.getOrderDetail(orderCode)
})
.catch(err => {})
.catch(err => { })
// 跳转新增订单页面 并带特定参数
// let { selectType } = this.data;
// if (selectType == 1) {
......@@ -109,7 +118,7 @@ Page({
// });
// }
},
error: () => {}
error: () => { }
},
'#modal4'
)
......@@ -139,7 +148,7 @@ Page({
})
}
},
error: () => {}
error: () => { }
},
'#modal3'
)
......@@ -209,8 +218,8 @@ Page({
item.status == 3
? 'confirmOrder'
: item.status == 1
? 'createOrder'
: 'orderDetail'
? 'createOrder'
: 'orderDetail'
if (item.constructionFlag == 'Y' && item.status != 10) {
wx.$router.go('constructionOrderDetail', item)
} else {
......@@ -257,7 +266,7 @@ Page({
success: res => {
this.showErrorType()
},
error: () => {}
error: () => { }
})
},
showRefundAlert() {
......@@ -318,7 +327,7 @@ Page({
})
}
},
error: () => {}
error: () => { }
},
'#modal2'
)
......@@ -388,9 +397,18 @@ Page({
showModal(e) {
let { btnname } = e.currentTarget.dataset
console.log(e, btnname)
this.setData({
[btnname]: true
})
this.setData(
{
[btnname]: true
},
() => {
wx.setPageStyle({
style: {
overflow: 'hidden'
}
})
}
)
},
setCopyData(e) {
let { content } = e.currentTarget.dataset
......@@ -404,9 +422,18 @@ Page({
})
},
sublistCancel() {
this.setData({
sublistVisible: false
})
this.setData(
{
sublistVisible: false
},
() => {
wx.setPageStyle({
style: {
overflow: 'unset'
}
})
}
)
},
// 获取人员权限
getStaffPermissions() {
......@@ -472,6 +499,11 @@ Page({
this.showFlag(options.orderCode)
// this.getGrass(options.orderCode)
}
wx.setPageStyle({
style: {
overflow: 'unset'
}
})
},
/**
* 生命周期函数--监听页面加载
......@@ -608,9 +640,8 @@ 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'
......@@ -729,7 +760,7 @@ Page({
})
}
})
} catch (err) {}
} catch (err) { }
},
isArtificer(data) {
let { customerObj, orderInfo } = this.data
......@@ -771,7 +802,7 @@ Page({
warrantyCardList
})
})
.catch(err => {})
.catch(err => { })
}, 500 * index)
})
},
......@@ -969,8 +1000,8 @@ Page({
!invoiceIssueQrcode
? this.handleSelectInvoice()
: wx.$router.go('tabWorkOrder.invoiceCode', {
obj: invoiceIssueQrcode
})
obj: invoiceIssueQrcode
})
}
})
.finally(() => {
......@@ -991,7 +1022,7 @@ Page({
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {},
onReady: function () { },
/**
* 生命周期函数--监听页面显示
......@@ -1009,12 +1040,12 @@ Page({
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {},
onHide: function () { },
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {},
onUnload: function () { },
/**
* 页面相关事件处理函数--监听用户下拉动作
......@@ -1029,5 +1060,5 @@ Page({
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {}
onReachBottom: function () { }
})
......@@ -53,28 +53,28 @@ Page({
this.setData(
{
sublistVisible: false
},
() => {
wx.setPageStyle({
style: {
overflow: 'unset'
}
})
}
// () => {
// wx.setPageStyle({
// style: {
// overflow: 'unset'
// }
// })
// }
)
},
constructionCancel() {
this.setData(
{
constructionVisible: false
},
() => {
wx.setPageStyle({
style: {
overflow: 'unset'
}
})
}
// () => {
// wx.setPageStyle({
// style: {
// overflow: 'unset'
// }
// })
// }
)
// this.setData({
// constructionVisible: false
......@@ -89,14 +89,14 @@ Page({
this.setData(
{
[btnname]: true
},
() => {
wx.setPageStyle({
style: {
overflow: 'hidden'
}
})
}
// () => {
// wx.setPageStyle({
// style: {
// overflow: 'hidden'
// }
// })
// }
)
},
navOrderSignature() {
......@@ -238,6 +238,11 @@ Page({
orderCode: options.orderCode
})
}
wx.setPageStyle({
style: {
overflow: 'unset'
}
})
},
/**
* 生命周期函数--监听页面加载
......@@ -459,9 +464,8 @@ 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({
......@@ -567,7 +571,7 @@ Page({
})
}
})
} catch (err) {}
} catch (err) { }
},
// 选择技师确认
changeArtificer(e) {
......@@ -679,7 +683,7 @@ Page({
warrantyCardList
})
})
.catch(err => {})
.catch(err => { })
}, 1000 * index)
})
},
......@@ -847,8 +851,8 @@ Page({
!invoiceIssueQrcode
? this.handleSelectInvoice()
: wx.$router.go('tabWorkOrder.invoiceCode', {
obj: invoiceIssueQrcode
})
obj: invoiceIssueQrcode
})
}
})
.finally(() => {
......@@ -870,7 +874,7 @@ Page({
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {},
onReady: function () { },
/**
* 生命周期函数--监听页面显示
......@@ -886,12 +890,12 @@ Page({
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {},
onHide: function () { },
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {},
onUnload: function () { },
/**
* 页面相关事件处理函数--监听用户下拉动作
......@@ -906,5 +910,5 @@ Page({
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {}
onReachBottom: function () { }
})
......@@ -298,15 +298,15 @@ Page({
max: 100,
inputPlaceholder: ''
},
{
label: '店端总未触客数',
key: 'notDeliveryCount',
type: 'number',
required: true,
min: 0,
max: 100,
inputPlaceholder: ''
},
// {
// label: '店端总未触客数',
// key: 'notDeliveryCount',
// type: 'number',
// required: true,
// min: 0,
// max: 100,
// inputPlaceholder: ''
// },
{
label: '实际售前触客数',
key: 'equityToShopCount',
......@@ -392,23 +392,23 @@ Page({
},
showStorePicker() {
let { userInfo } = this.data
;(userInfo?.isSuper ||
userInfo?.loginRole == 3 ||
userInfo?.loginRole == 5) &&
this.setData({
showPicker: true,
pickerType: 'merchant'
})
; (userInfo?.isSuper ||
userInfo?.loginRole == 3 ||
userInfo?.loginRole == 5) &&
this.setData({
showPicker: true,
pickerType: 'merchant'
})
},
showStaffPicker() {
let { userInfo } = this.data
;(userInfo?.isSuper ||
userInfo?.loginRole == 3 ||
userInfo?.loginRole == 5) &&
this.setData({
showPicker: true,
pickerType: 'staff'
})
; (userInfo?.isSuper ||
userInfo?.loginRole == 3 ||
userInfo?.loginRole == 5) &&
this.setData({
showPicker: true,
pickerType: 'staff'
})
},
navbarReady(e) {
let navBarHeight = e.detail.height
......@@ -533,7 +533,7 @@ Page({
showCancel: false,
confirmText: '确定',
confirmColor: '#347BFF',
success(res) {}
success(res) { }
})
} else {
wx.$util.showToast(message)
......@@ -666,7 +666,7 @@ Page({
showCancel: false,
confirmText: '确定',
confirmColor: '#347BFF',
success(res) {}
success(res) { }
})
} else {
// console.log(object);
......@@ -774,11 +774,9 @@ Page({
0: '问界',
1: '鸿蒙'
}
context += `【${
bandType[el.brandType] || item.firstBrandName
}】 店端总未触客数+门店售前触客数与当月实际交车数不符,差异值${
item.differenceValue
},请相关驻店销售对齐核销再次提交\t\n`
context += `【${bandType[el.brandType] || item.firstBrandName
}】 店端总未触客数+门店售前触客数与当月实际交车数不符,差异值${item.differenceValue
},请相关驻店销售对齐核销再次提交\t\n`
el.deliveryCountinputError = true
el.equityToShopCountinputError = true
el.notDeliveryCountinputError = true
......@@ -1360,7 +1358,7 @@ Page({
wx.$util.message(message)
}
})
.catch(err => {})
.catch(err => { })
},
inputSearch(e) {
let { pickerType } = this.data
......@@ -1564,7 +1562,7 @@ Page({
}
// }
})
.catch(err => {})
.catch(err => { })
},
/**
* 生命周期函数--监听页面加载
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!