Commit f7aad381 by 张立顺

fix bug

1 parent 59caffd0
......@@ -309,7 +309,7 @@ export default {
// val.content = ''
let childContent = ''
if (val.recordType == 1) {
val.content = `【${val.recordType == 1 ? '删除' : '修改'}】状态:${val.useStatus ? '禁用' : '启用'},投保成本${val.insuranceCost}元,上架成本${val.shelfCost}元,嘀加成本${val.salesCost}元,`
val.content = `【${val.recordType == 1 ? '删除' : '修改'}】状态:${val.useStatus ? '禁用' : '启用'},投保成本${val.insuranceCost || '-'}元,上架成本${val.shelfCost || '-'}元,嘀加成本${val.salesCost || '-'}元,`
val?.deleteList?.forEach((v, index) => {
childContent = `${v.fieldName}${v.beforeValue || '-'}${v.valueUnit || ''}${index < val?.deleteList?.length - 1 ? ',' : ''}`
val.content += childContent
......@@ -317,7 +317,7 @@ export default {
} else {
val.content = `【${val.recordType == 1 ? '删除' : '修改'}】`
val?.detailList?.forEach((v, index) => {
childContent = `${v.fieldName}由${v.beforeValue}${v.valueUnit || ''}变为${v.afterValue}${v.valueUnit || ''}${index < val?.detailList?.length - 1 ? ',' : ''}`
childContent = `${v.fieldName}由${v.beforeValue || '-'}${v.valueUnit || ''}变为${v.afterValue || '-'}${v.valueUnit || ''}${index < val?.detailList?.length - 1 ? ',' : ''}`
val.content += childContent
})
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!