|
@@ -106,6 +106,8 @@
|
|
|
courses: { ...form, priceRulesList: null, orgCode: userInfo.value?.orgCode },
|
|
|
priceRulesList: transformData(form.priceRulesList),
|
|
|
};
|
|
|
+ console.log(newObj, '结算');
|
|
|
+ console.log(form, 'form');
|
|
|
|
|
|
if (!areAllItemsAllFieldsFilled(newObj.priceRulesList)) return message.error('请填写完整');
|
|
|
isSubmit.value = true;
|
|
@@ -122,8 +124,8 @@
|
|
|
function transformData(data) {
|
|
|
return data.map((it) => {
|
|
|
return {
|
|
|
- startTime: dayjs(unref(it.editValueRefs.time)[0]).format('YYYY-MM-DD hh:mm:ss'),
|
|
|
- endTime: dayjs(unref(it.editValueRefs.time)[1]).format('YYYY-MM-DD hh:mm:ss'),
|
|
|
+ startTime: unref(it.editValueRefs.time)[0],
|
|
|
+ endTime: unref(it.editValueRefs.time)[1],
|
|
|
name: unref(it.editValueRefs.name),
|
|
|
id: typeof it.id == 'string' ? it.id : null,
|
|
|
coursesId: it.coursesId,
|