|
@@ -127,6 +127,7 @@ import { GETSYSFILED, MOD, GETPERSONNEL, GETGENERATEFOEM, GETBUSINESSLIST, UPDAT
|
|
import { GETTABLELIST } from '@/pages/product/api'
|
|
import { GETTABLELIST } from '@/pages/product/api'
|
|
import { post, get } from "@/utils/request";
|
|
import { post, get } from "@/utils/request";
|
|
import { getAllListByCode, getFromValue, resetFromValue, getFirstDayOfMonth, getLastDayOfMonth, formatDate } from '@/utils/tools'
|
|
import { getAllListByCode, getFromValue, resetFromValue, getFirstDayOfMonth, getLastDayOfMonth, formatDate } from '@/utils/tools'
|
|
|
|
+import { formatDateTime } from '@/utils/times'
|
|
import { GenerateForm } from '@zmjs/form-design';
|
|
import { GenerateForm } from '@zmjs/form-design';
|
|
import RelatedProducts from './component/relatedProducts.vue'
|
|
import RelatedProducts from './component/relatedProducts.vue'
|
|
|
|
|
|
@@ -178,8 +179,8 @@ function editBusiness(visibles: boolean) {
|
|
let productTableListData = relatedProductsRef?.value?.returnData()
|
|
let productTableListData = relatedProductsRef?.value?.returnData()
|
|
let newForm = {
|
|
let newForm = {
|
|
...res,
|
|
...res,
|
|
- expectedTransactionDate: res.expectedTransactionDate ? formatDate(new Date(res.expectedTransactionDate)) : '',
|
|
|
|
- // businessItemProductList: productTableListData ? JSON.stringify(productTableListData) : []
|
|
|
|
|
|
+ expectedTransactionDate: res.expectedTransactionDate ? formatDateTime(new Date(res.expectedTransactionDate)) : '',
|
|
|
|
+ businessItemProductList: productTableListData ? JSON.stringify(productTableListData) : []
|
|
}
|
|
}
|
|
allLoading.businessSaveLading = true
|
|
allLoading.businessSaveLading = true
|
|
post(UPDATEINSET, { ...newForm }).then((_res) => {
|
|
post(UPDATEINSET, { ...newForm }).then((_res) => {
|