Commit 7aeaafaa by 张立顺

fix bug

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