|
@@ -58,6 +58,7 @@ import { CONTRACT_ADDITION_EDITING, CONTRACT_EDITING, OBTAIN_THE_CONTRACT_REMITT
|
|
|
import useRouterStore from "@store/useRouterStore.js";
|
|
|
import FoldingPanel from '@components/common/foldingPanel.vue';
|
|
|
import dayjs from 'dayjs';
|
|
|
+import commonUtil from "@utility/commonUtil"
|
|
|
|
|
|
const router = useRouterStore()
|
|
|
const { toastText, toastSuccess, toastFail, toastLoading } = useToast()
|
|
@@ -106,7 +107,7 @@ function onSubmit() {
|
|
|
}
|
|
|
|
|
|
toastLoading('保存中', 0)
|
|
|
- requests.post(props.formValue?.id ? CONTRACT_EDITING : CONTRACT_ADDITION_EDITING, { ...props.formValue, ...res.data, paymentListStr: JSON.stringify(paymentPlanList.value) }).then(() => {
|
|
|
+ requests.post(props.formValue?.id ? CONTRACT_EDITING : CONTRACT_ADDITION_EDITING, { ...commonUtil.getFromValue({ ...props.formValue, ...res.data, paymentListStr: JSON.stringify(paymentPlanList.value) }) }).then(() => {
|
|
|
toastSuccess('保存成功')
|
|
|
setTimeout(() => {
|
|
|
router.navigateBack({
|