Commit 2dd9001d by 张立顺

bugfix

1 parent ee4ccb6d
......@@ -367,6 +367,7 @@ Page({
// this.setData({
// [`orderObj.${name}`]: value
// })
value = value.replace(/\D/g, ''); // \D 匹配非数字字符
let valueName = `carBandList[${index}].${name}`
console.log(valueName)
this.setData({
......@@ -537,9 +538,9 @@ Page({
if (code == 0) {
let {
brandDataList,
deliveryCount,
equityToShopCount,
afterSaleEquityToShopCount,
// deliveryCount,
// equityToShopCount,
// afterSaleEquityToShopCount,
remark
} = data
if (brandDataList && brandDataList.length) {
......@@ -552,6 +553,15 @@ Page({
}
return item
})
} else {
carBandList = carBandList.map(item => {
return {
...item,
deliveryCount: '',
equityToShopCount: '',
afterSaleEquityToShopCount: ''
};
})
}
console.log(carBandList, 'carBandList')
// trafficProblemList = trafficProblemList || []
......@@ -642,11 +652,11 @@ Page({
util.isDateWithin7Days(reportDate),
['orderObj.isDateWithin60Days']:
util.isDateWithin60Days(reportDate),
['orderObj.deliveryCount']: deliveryCount,
// ['orderObj.filmToShopCount']: filmToShopCount,
['orderObj.afterSaleEquityToShopCount']:
afterSaleEquityToShopCount,
['orderObj.equityToShopCount']: equityToShopCount,
// ['orderObj.deliveryCount']: deliveryCount,
// ['orderObj.afterSaleEquityToShopCount']:
// afterSaleEquityToShopCount,
// ['orderObj.equityToShopCount']: equityToShopCount,
['orderObj.remark']: remark,
approvalList: data.approvalList || [],
currentWordNumber: data?.remark?.length
......
......@@ -325,6 +325,7 @@ Page({
// value = wx.$util.numberFixedDigit(value)
// value = parseFloat(value) > 999999.99 ? 999999.99 : value
// }
value = value.replace(/\D/g, ''); // \D 匹配非数字字符
let valueName = `carBandList[${index}].${name}`
console.log(valueName);
this.setData({
......@@ -483,6 +484,14 @@ Page({
}
return item;
})
} else {
carBandList = carBandList.map(item => {
return {
...item,
toShopFilmCount: '',
deliveryCount: '',
};
})
}
// skillProblemList = skillProblemList || []
// formData.forEach(element => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!