Commit 2d5cef47 by 张立顺

feat 功能开发

1 parent 245ebed9
...@@ -299,9 +299,18 @@ Page({ ...@@ -299,9 +299,18 @@ Page({
max: 100, max: 100,
inputPlaceholder: '' inputPlaceholder: ''
}, },
// {
// label: '店端总未触客数',
// key: 'notDeliveryCount',
// type: 'number',
// required: true,
// min: 0,
// max: 100,
// inputPlaceholder: ''
// },
{ {
label: '店端总未触客数', label: '实际售前触客数',
key: 'notDeliveryCount', key: 'equityToShopCount',
type: 'number', type: 'number',
required: true, required: true,
min: 0, min: 0,
...@@ -309,24 +318,42 @@ Page({ ...@@ -309,24 +318,42 @@ Page({
inputPlaceholder: '' inputPlaceholder: ''
}, },
{ {
label: '实际售前触客数', label: '实际售后触客数',
key: 'equityToShopCount', key: 'afterSaleEquityToShopCount',
type: 'number', type: 'number',
required: true, required: false,
min: 0, min: 0,
max: 100, max: 100,
inputPlaceholder: '' inputPlaceholder: ''
}, },
{ {
label: '实际售后触客数', label: '今日店端实际发券数',
key: 'afterSaleEquityToShopCount', key: 'issueCouponCount',
type: 'number', type: 'number',
required: false, required: true,
min: 0, min: 0,
max: 100, max: 100,
inputPlaceholder: '' inputPlaceholder: ''
}, },
{ {
label: '本月待邀约',
key: 'waitInviteCount',
type: 'number',
required: true,
min: 0,
max: 3000,
inputPlaceholder: ''
},
{
label: '今日流失',
key: 'customerLossCount',
type: 'number',
required: true,
min: 0,
max: 3000,
inputPlaceholder: ''
},
{
name: 'person' name: 'person'
}, },
{ {
...@@ -340,40 +367,6 @@ Page({ ...@@ -340,40 +367,6 @@ Page({
disabled: true, disabled: true,
inputPlaceholder: '自动填入系统数据' inputPlaceholder: '自动填入系统数据'
} }
// {
// name: 'person'
// },
// {
// label: '北汽无忧成交数',
// key: 'bqWorryFreeCount',
// type: 'number',
// required: false,
// min: 0,
// max: 100,
// templateValue: 3,
// disabled: true,
// inputPlaceholder: '自动填入系统数据'
// },
// {
// label: '广爱无忧成交数',
// key: 'gaWorryFreeCount',
// type: 'number',
// required: false,
// min: 0,
// max: 100,
// disabled: true,
// templateValue: 3,
// inputPlaceholder: '自动填入系统数据'
// },
// {
// label: '未触客返店人数',
// key: 'notDeliveryReturnCount',
// type: 'number',
// required: false,
// min: 0,
// max: 100,
// inputPlaceholder: ''
// }
] ]
}, },
handleTemplagePickerChange(e) { handleTemplagePickerChange(e) {
...@@ -400,23 +393,23 @@ Page({ ...@@ -400,23 +393,23 @@ 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({
showPicker: true, showPicker: true,
pickerType: 'merchant' pickerType: 'merchant'
}) })
}, },
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({
showPicker: true, showPicker: true,
pickerType: 'staff' pickerType: 'staff'
}) })
}, },
navbarReady(e) { navbarReady(e) {
let navBarHeight = e.detail.height let navBarHeight = e.detail.height
...@@ -541,7 +534,7 @@ Page({ ...@@ -541,7 +534,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)
...@@ -665,7 +658,7 @@ Page({ ...@@ -665,7 +658,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)
...@@ -772,11 +765,9 @@ Page({ ...@@ -772,11 +765,9 @@ Page({
0: '问界', 0: '问界',
1: '鸿蒙' 1: '鸿蒙'
} }
context += `【${ context += `【${bandType[el.brandType] || item.firstBrandName
bandType[el.brandType] || item.firstBrandName }】 店端总未触客数+门店售前触客数与当月实际交车数不符,差异值${item.differenceValue
}】 店端总未触客数+门店售前触客数与当月实际交车数不符,差异值${ },请相关驻店销售对齐核销再次提交\t\n`
item.differenceValue
},请相关驻店销售对齐核销再次提交\t\n`
el.deliveryCountinputError = true el.deliveryCountinputError = true
el.equityToShopCountinputError = true el.equityToShopCountinputError = true
el.notDeliveryCountinputError = true el.notDeliveryCountinputError = true
...@@ -843,10 +834,6 @@ Page({ ...@@ -843,10 +834,6 @@ Page({
hwObjArray[hwIndex]?.label || hwObjArray[hwIndex]?.label ||
otherObjArray[otherIndex]?.label || otherObjArray[otherIndex]?.label ||
hwOhterObjArray[hwohterIndex]?.label hwOhterObjArray[hwohterIndex]?.label
// 本月待邀约数
if ( if (
this.isNotEmpty(carBandList[index][name]) && this.isNotEmpty(carBandList[index][name]) &&
this.isNotEmpty(carBandList[index][checkName]) && this.isNotEmpty(carBandList[index][checkName]) &&
...@@ -1182,7 +1169,8 @@ Page({ ...@@ -1182,7 +1169,8 @@ Page({
notDeliveryCount, notDeliveryCount,
customerLossCount, customerLossCount,
waitInviteCount, waitInviteCount,
recordWaitInviteCount recordWaitInviteCount,
reocedIssueCouponCount,
} = item } = item
item = { item = {
...carBand, ...carBand,
...@@ -1195,6 +1183,7 @@ Page({ ...@@ -1195,6 +1183,7 @@ Page({
notDeliveryCountRecord: notDeliveryCount, notDeliveryCountRecord: notDeliveryCount,
customerLossCountRecord: customerLossCount, customerLossCountRecord: customerLossCount,
waitInviteCountRecord: recordWaitInviteCount, waitInviteCountRecord: recordWaitInviteCount,
issueCouponCountRecord: reocedIssueCouponCount
// recordWaitInviteCount:recordWaitInviteCount // recordWaitInviteCount:recordWaitInviteCount
} }
} else { } else {
...@@ -1375,7 +1364,7 @@ Page({ ...@@ -1375,7 +1364,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
...@@ -1580,7 +1569,7 @@ Page({ ...@@ -1580,7 +1569,7 @@ Page({
} }
// } // }
}) })
.catch(err => {}) .catch(err => { })
}, },
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
...@@ -1693,5 +1682,5 @@ Page({ ...@@ -1693,5 +1682,5 @@ Page({
/** /**
* 生命周期函数--监听页面初次渲染完成 * 生命周期函数--监听页面初次渲染完成
*/ */
onReady: function () {} onReady: function () { }
}) })
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!