Commit 2dd9001d by 张立顺

bugfix

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