Commit 81c27dae by 张立顺

feat 功能开发

1 parent 3d41c6f4
...@@ -18,7 +18,7 @@ export const appId = "wx570d9331f9ace0bd"; ...@@ -18,7 +18,7 @@ export const appId = "wx570d9331f9ace0bd";
* 4预发布 * 4预发布
* 5cdptest * 5cdptest
*/ */
let index = 1; let index = 0;
const accountInfo = wx.getAccountInfoSync(); const accountInfo = wx.getAccountInfoSync();
const systemInfo = wx.getSystemInfoSync(); const systemInfo = wx.getSystemInfoSync();
const envName = accountInfo.miniProgram.envVersion; const envName = accountInfo.miniProgram.envVersion;
......
...@@ -711,7 +711,10 @@ Page({ ...@@ -711,7 +711,10 @@ Page({
let { name, } = e.currentTarget.dataset let { name, } = e.currentTarget.dataset
let { staffCountValue, orderObj, userInfo } = this.data let { staffCountValue, orderObj, userInfo } = this.data
// //
if (name == 'staffCount' && staffCountValue && value != staffCountValue && userInfo.uuid != orderObj.lastStaffUuid) { if ([''].in) {
}
if (name == 'staffCount' && staffCountValue && value != staffCountValue && orderObj.lastStaffUuid && userInfo.uuid != orderObj.lastStaffUuid) {
wx.showModal({ wx.showModal({
title: '预警提示', title: '预警提示',
content: `今日驻店人数与 ${orderObj.lastStaffName} 提交不一致,再次确认!不一致提交日报时,今日驻店人数将被清空。`, content: `今日驻店人数与 ${orderObj.lastStaffName} 提交不一致,再次确认!不一致提交日报时,今日驻店人数将被清空。`,
...@@ -958,11 +961,9 @@ Page({ ...@@ -958,11 +961,9 @@ Page({
item = { item = {
...item, ...item,
...carBand, ...carBand,
} recordStaffCount: carBand.staffCount,
if (item.brandType == 0) { recordDeliveryCount: carBand.deliveryCount,
this.setData({ recordNotDeliveryCount: carBand.notDeliveryCount
staffCountValue: item.staffCount
})
} }
} else { } else {
if (item.brandType == 0) { if (item.brandType == 0) {
...@@ -1001,7 +1002,7 @@ Page({ ...@@ -1001,7 +1002,7 @@ Page({
util.isDateWithin60Days(reportDate), util.isDateWithin60Days(reportDate),
['orderObj.remark']: remark, ['orderObj.remark']: remark,
['orderObj.lastStaffName']: data.lastStaffName, ['orderObj.lastStaffName']: data.lastStaffName,
['orderObj.lastStaffUuid']: remark.lastStaffUuid, ['orderObj.lastStaffUuid']: data.lastStaffUuid,
approvalList: data.approvalList || [], approvalList: data.approvalList || [],
currentWordNumber: data?.remark?.length currentWordNumber: data?.remark?.length
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!