fix: keep absent brief SMS content empty
This commit is contained in:
@@ -95,8 +95,10 @@ export class ReportChannelExportService {
|
||||
const values = fields.map(
|
||||
(field) => resolveExportValue(item.snapshot, field.code, field.name) ?? field.defaultValue ?? '',
|
||||
);
|
||||
const smsContentIndex = fields.findIndex((field) => field.name.trim() === '短信内容');
|
||||
const smsContentValue = smsContentIndex >= 0 ? values[smsContentIndex] : '';
|
||||
const smsContentField = fields.find((field) => field.name.trim() === '短信内容');
|
||||
const smsContentValue = smsContentField
|
||||
? resolveExportValue(item.snapshot, smsContentField.code, smsContentField.name) ?? ''
|
||||
: '';
|
||||
const smsContent = isFileRef(smsContentValue) ? '' : String(smsContentValue ?? '');
|
||||
const missing = fields.filter((field, index) => field.required && !hasValue(values[index]));
|
||||
const missingReason =
|
||||
|
||||
Reference in New Issue
Block a user