Commit 81c27dae by 张立顺

feat 功能开发

1 parent 3d41c6f4
......@@ -18,7 +18,7 @@ export const appId = "wx570d9331f9ace0bd";
* 4预发布
* 5cdptest
*/
let index = 1;
let index = 0;
const accountInfo = wx.getAccountInfoSync();
const systemInfo = wx.getSystemInfoSync();
const envName = accountInfo.miniProgram.envVersion;
......
......@@ -711,7 +711,10 @@ Page({
let { name, } = e.currentTarget.dataset
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({
title: '预警提示',
content: `今日驻店人数与 ${orderObj.lastStaffName} 提交不一致,再次确认!不一致提交日报时,今日驻店人数将被清空。`,
......@@ -958,11 +961,9 @@ Page({
item = {
...item,
...carBand,
}
if (item.brandType == 0) {
this.setData({
staffCountValue: item.staffCount
})
recordStaffCount: carBand.staffCount,
recordDeliveryCount: carBand.deliveryCount,
recordNotDeliveryCount: carBand.notDeliveryCount
}
} else {
if (item.brandType == 0) {
......@@ -1001,7 +1002,7 @@ Page({
util.isDateWithin60Days(reportDate),
['orderObj.remark']: remark,
['orderObj.lastStaffName']: data.lastStaffName,
['orderObj.lastStaffUuid']: remark.lastStaffUuid,
['orderObj.lastStaffUuid']: data.lastStaffUuid,
approvalList: data.approvalList || [],
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!