perf: docx: 附加项目: `不分人等`

main
Lei OT 10 months ago
parent 65f2b996aa
commit 903efaead2

@ -642,12 +642,13 @@ export default class AgencyContract {
const date2 = shortDate(firstQ.use_dates_end);
const othersDates = others.map((oq) => `${shortDate(oq.use_dates_start)}~${shortDate(oq.use_dates_end)}`).join(', ');
const otherStr = isEmpty(othersDates) ? '' : `, ${othersDates}`;
const sizeStr = [0,1].includes(firstQ.group_size_min) && firstQ.group_size_max === 1000 ? '不分人等,' : `${firstQ.group_size_min}-${firstQ.group_size_max}人,`;
return new Paragraph({
children: [
// new TextRun({ text: `${extra.info.product_title} ${firstQ.unit_name}`, bold: true }),
new TextRun({
text:
`${firstQ.group_size_min}-${firstQ.group_size_max}人, ${firstQ.unit_name}, ${firstQ.adult_cost}` +
`${sizeStr} ${firstQ.unit_name}, ${firstQ.adult_cost}` +
// + (`, ${firstQ.group_size_min}-${firstQ.group_size_max}`)
(compactBy !== 'dates' ? `, ${date1}~${date2}${otherStr}` : ''),
}),

Loading…
Cancel
Save