|
@@ -330,7 +330,7 @@ import HcTreeData from "./components/HcTreeData.vue"
|
|
|
import WbsTree from "./components/WbsTree.vue"
|
|
|
import {getTokenHeader} from '~src/api/request/header';
|
|
|
import {getStoreData, setStoreData} from '~src/utils/storage'
|
|
|
-import {isType, deepClone, formValidate} from "vue-utils-plus"
|
|
|
+import {isType, deepClone, formValidate, clog} from "vue-utils-plus"
|
|
|
import {getDictionary} from "~api/other"
|
|
|
import wbsApi from "~api/data-fill/wbs"
|
|
|
import Draggable from "vuedraggable";
|
|
@@ -339,7 +339,7 @@ import Draggable from "vuedraggable";
|
|
|
const router = useRouter()
|
|
|
const useRoutes = useRoute()
|
|
|
const useAppState = useAppStore()
|
|
|
-const {getObjValue, getArrValue} = isType()
|
|
|
+const {getObjValue, getArrValue, getObjNullValue} = isType()
|
|
|
|
|
|
//全局变量
|
|
|
const projectId = ref(useAppState.getProjectId);
|
|
@@ -1096,14 +1096,19 @@ const ListItemsRef = ref(null)
|
|
|
//保存
|
|
|
const tableFormSaveLoading = ref(false)
|
|
|
const tableFormSaveClick = async () => {
|
|
|
- let FormData = [];
|
|
|
+ let FormData = [], FormRegExpJson = {};
|
|
|
if (isDrawer.value) {
|
|
|
FormData = ListItemsRef.value.getFormData()
|
|
|
+ FormRegExpJson = ListItemsRef.value.getFormRegExpJson()
|
|
|
} else {
|
|
|
FormData = ListItemRef.value.getFormData()
|
|
|
+ FormRegExpJson = ListItemRef.value.getFormRegExpJson()
|
|
|
}
|
|
|
- console.log(FormData)
|
|
|
- if (FormData.length > 0) {
|
|
|
+ clog('FormData', '表单列表数据', FormData, '客户端')
|
|
|
+ clog('FormRegExpJson', '表单效验数据', FormRegExpJson, '客户端')
|
|
|
+ if (getObjNullValue(FormRegExpJson)) {
|
|
|
+
|
|
|
+ } else if (FormData.length > 0) {
|
|
|
tableFormSaveLoading.value = true
|
|
|
const {error, code} = await wbsApi.saveExcelBussData({
|
|
|
dataInfo: {orderList: FormData}
|