Commit 1de6dfb4 by chenwq

fix: 修复模板表单数据赋值时的字符串拼接问题

1 parent 65cf7c8d
...@@ -180,7 +180,7 @@ Page({ ...@@ -180,7 +180,7 @@ Page({
const needDefaultCodeList = Object.keys(reportFirstAutoObj); const needDefaultCodeList = Object.keys(reportFirstAutoObj);
if (needDefaultCodeList.includes(routeParams.code)) { if (needDefaultCodeList.includes(routeParams.code)) {
reportFirstAutoObj[routeParams.code]?.list.forEach((item) => { reportFirstAutoObj[routeParams.code]?.list.forEach((item) => {
(tmlpFormData[item.attrName] = resObj[item.valueObj]?.data.totalOutputValue || 0) + ""; tmlpFormData[item.attrName] = (resObj[item.valueObj]?.data.totalOutputValue || 0) + "";
}); });
this.setData( this.setData(
{ {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!