duy 2 роки тому
батько
коміт
54588eb709
1 змінених файлів з 180 додано та 147 видалено
  1. 180 147
      src/views/ledger/components/table-form.vue

+ 180 - 147
src/views/ledger/components/table-form.vue

@@ -2,25 +2,29 @@
     <div class="hc-table-form-content">
         <div class="hc-content-box">
             <div class="hc-table-forem-box">
-                <HcTableForm ref="tableFormRef"
-                             :form="tableFormData"
-                             :html="excelHtmlData"
-                             :loading="loading"
-                             :pkey="excelIdVal"
-                             @render="tableFormRender"/>
+                <HcTableForm
+                    ref="tableFormRef"
+                    :form="tableFormData"
+                    :html="excelHtmlData"
+                    :loading="loading"
+                    :pkey="excelIdVal"
+                    @render="tableFormRender"
+                />
             </div>
             <div v-if="formLogDataList.length > 1" class="hc-fixed-page">
                 <el-scrollbar>
                     <div class="hc-fixed-page-list-box">
                         <template v-for="(item, index) in formLogDataList">
-                            <div :class="index === formLogIndex ? 'primary' : ''" class="fixed-page-item"
-                                 @click="getBussDataInfo(index)">
+                            <div
+                                :class="index === formLogIndex ? 'primary' : ''" class="fixed-page-item"
+                                @click="getBussDataInfo(index)"
+                            >
                                 <div class="name-box">
-                                    <HcIcon name="sticky-note"/>
+                                    <HcIcon name="sticky-note" />
                                     <span class="page">第{{ index + 1 }}页</span>
                                 </div>
                                 <div class="close-box" @click.stop="closeBussDataInfo(index)">
-                                    <HcIcon name="close"/>
+                                    <HcIcon name="close" />
                                 </div>
                             </div>
                         </template>
@@ -28,19 +32,21 @@
                 </el-scrollbar>
             </div>
             <div class="hc-right-pian-box hc-flex-column">
-                <DateCalendar :dateData="dateData" :recordDate="recordDates" @choice-date="dateCalendarChoice"/>
-                <el-alert show-icon title="蓝色代表当天已填写过日志" type="warning"/>
+                <DateCalendar :date-data="dateData" :record-date="recordDates" @choice-date="dateCalendarChoice" />
+                <el-alert show-icon title="蓝色代表当天已填写过日志" type="warning" />
                 <div v-if="menuItem?.nodeType === 7 || menuItem?.nodeType === 11" class="my-4">
                     <el-button hc-btn type="primary" @click="showProcessModal">
-                        <HcIcon name="add-circle"/>
+                        <HcIcon name="add-circle" />
                         <span>关联工序</span>
                     </el-button>
                 </div>
                 <div v-if="menuItem?.nodeType === 7 || menuItem?.nodeType === 11" class="hc-process-box">
                     <el-scrollbar>
-                        <div v-for="(item,index) in processDataList" class="process-item-box">
-                            <div class="process-item">{{ item.path }}</div>
-                            <HcIcon class="process-icon" fill name="close-circle" @click="deleProcess(index)"/>
+                        <div v-for="(item, index) in processDataList" class="process-item-box">
+                            <div class="process-item">
+                                {{ item.path }}
+                            </div>
+                            <HcIcon class="process-icon" fill name="close-circle" @click="deleProcess(index)" />
                         </div>
                     </el-scrollbar>
                 </div>
@@ -48,140 +54,165 @@
         </div>
         <div class="hc-footer-box">
             <HcTooltip keys="ledger_query_save_form">
-                <el-button :disabled="!isTableForm || taskStatus === 3 || taskStatus === 4"
-                           :loading="tableFormSaveLoading" hc-btn
-                           type="primary" @click="tableFormSaveClick">
-                    <HcIcon name="save"/>
+                <el-button
+                    :disabled="!isTableForm || taskStatus === 3 || taskStatus === 4"
+                    :loading="tableFormSaveLoading" hc-btn
+                    type="primary" @click="tableFormSaveClick"
+                >
+                    <HcIcon name="save" />
                     <span>保存</span>
                 </el-button>
             </HcTooltip>
             <HcTooltip keys="ledger_query_report_form">
-                <el-button :disabled="!isTableForm || taskStatus === 1 || taskStatus === 3 || taskStatus === 4" hc-btn
-                           @click="reportModalClick">
-                    <HcIcon name="send-plane-2"/>
+                <el-button
+                    :disabled="!isTableForm || taskStatus === 1 || taskStatus === 3 || taskStatus === 4" hc-btn
+                    @click="reportModalClick"
+                >
+                    <HcIcon name="send-plane-2" />
                     <span>上报</span>
                 </el-button>
             </HcTooltip>
             <HcTooltip keys="ledger_query_preview_form">
-                <el-button :disabled="!isTableForm || taskStatus === 1 " :loading="previewLoading" hc-btn
-                           @click="previewBussPdf">
-                    <HcIcon name="eye"/>
+                <el-button
+                    :disabled="!isTableForm || taskStatus === 1 " :loading="previewLoading" hc-btn
+                    @click="previewBussPdf"
+                >
+                    <HcIcon name="eye" />
                     <span>预览</span>
                 </el-button>
             </HcTooltip>
             <HcTooltip keys="ledger_query_copy_form">
-                <el-button :disabled="!isTableForm || taskStatus === 3 || taskStatus === 4" hc-btn
-                           @click="copyTableFormClick">
-                    <HcIcon name="file-copy-2"/>
+                <el-button
+                    :disabled="!isTableForm || taskStatus === 3 || taskStatus === 4" hc-btn
+                    @click="copyTableFormClick"
+                >
+                    <HcIcon name="file-copy-2" />
                     <span>复制当前表格及内容</span>
                 </el-button>
             </HcTooltip>
             <HcTooltip keys="ledger_query_time_form">
-                <el-button :disabled="!isTableForm || taskStatus === 3 || taskStatus === 4" hc-btn
-                           @click="copyTimeLogModal">
-                    <HcIcon name="file-copy-2"/>
+                <el-button
+                    :disabled="!isTableForm || taskStatus === 3 || taskStatus === 4" hc-btn
+                    @click="copyTimeLogModal"
+                >
+                    <HcIcon name="file-copy-2" />
                     <span>复制任意时间</span>
                 </el-button>
             </HcTooltip>
             <HcTooltip keys="ledger_query_add_form">
-                <el-button :disabled="!isTableForm || taskStatus === 3 || taskStatus === 4" hc-btn
-                           @click="addTableFormClick">
-                    <HcIcon name="add-circle"/>
+                <el-button
+                    :disabled="!isTableForm || taskStatus === 3 || taskStatus === 4" hc-btn
+                    @click="addTableFormClick"
+                >
+                    <HcIcon name="add-circle" />
                     <span>新增表格</span>
                 </el-button>
             </HcTooltip>
             <HcTooltip keys="ledger_query_abolish_form">
-                <el-button :disabled="!isTableForm || taskStatus === 1  || taskStatus === 2" hc-btn
-                           @click="abolishTableFormClick">
-                    <HcIcon name="delete-bin-3"/>
+                <el-button
+                    :disabled="!isTableForm || taskStatus === 1 || taskStatus === 2" hc-btn
+                    @click="abolishTableFormClick"
+                >
+                    <HcIcon name="delete-bin-3" />
                     <span>废除</span>
                 </el-button>
             </HcTooltip>
         </div>
 
-        <!--关联工序-->
-        <HcDialog :show="processNodeModal" title="选择关联工序" widths="62rem" @close="processNodeModal = false"
-                  @save="processNodeClick">
+        <!-- 关联工序 -->
+        <HcDialog
+            :show="processNodeModal" title="选择关联工序" widths="62rem" is-table
+            @close="processNodeModal = false" @save="processNodeClick"
+        >
             <div class="node-many-tree">
-                <el-tree ref="processElTree" :default-checked-keys="defaultChecked"
-                         :default-expanded-keys="defaultExpanded" :load="ElTreeLoadNode" :props="processTreeProps"
-                         check-strictly
-                         class="my-tree" lazy node-key="primaryKeyId"
-                         show-checkbox/>
+                <el-tree
+                    ref="processElTree" :default-checked-keys="defaultChecked"
+                    :default-expanded-keys="defaultExpanded" :load="ElTreeLoadNode" :props="processTreeProps"
+                    check-strictly
+                    class="my-tree" lazy node-key="primaryKeyId"
+                    show-checkbox 
+                />
             </div>
         </HcDialog>
 
-        <!--复制任意时间-->
-        <HcDialog :loading="copyTimeLoading" :padding="false" :show="copyTimeModal" isTable saveText="复制"
-                  title="复制任意时间"
-                  widths="62rem" @close="copyTimeModal = false" @save="copyTimeSaveClick">
+        <!-- 复制任意时间 -->
+        <HcDialog
+            :loading="copyTimeLoading" :padding="false" :show="copyTimeModal" is-table save-text="复制"
+            title="复制任意时间"
+            widths="62rem" @close="copyTimeModal = false" @save="copyTimeSaveClick"
+        >
             <div class="hc-user-time-box">
                 <div class="tree-box">
                     <el-scrollbar>
-                        <el-tree :data="copyTimeTreeData" :default-expanded-keys="copyTimeTreeKeys"
-                                 :props="copyTimeTreeProps"
-                                 accordion class="hc-tree-node" highlight-current
-                                 node-key="hierarchy" @node-click="copyTimeTreeNodeClick"/>
+                        <el-tree
+                            :data="copyTimeTreeData" :default-expanded-keys="copyTimeTreeKeys"
+                            :props="copyTimeTreeProps"
+                            accordion class="hc-tree-node" highlight-current
+                            node-key="hierarchy" @node-click="copyTimeTreeNodeClick"
+                        />
                     </el-scrollbar>
                 </div>
                 <div class="user-box">
-                    <HcTable ref="copyTimeTableRef" :column="copyTimeTableColumn" :datas="copyTimeTableData"
-                             :loading="copyTimeTableLoading" isCheck @selection-change="copyTimeTableSelection"/>
+                    <HcTable
+                        ref="copyTimeTableRef" :column="copyTimeTableColumn" :datas="copyTimeTableData"
+                        :loading="copyTimeTableLoading" is-check @selection-change="copyTimeTableSelection"
+                    />
                 </div>
             </div>
         </HcDialog>
 
-        <!--批量上报审批-->
-        <HcReportModal :addition="reportAddition" :contractId="contractId" :projectId="projectId"
-                       :show="showReportModal" :taskName="reportTaskName" :typeData="menuItem.primaryKeyId"
-                       title="日志填报上报"
-                       type="log" url="contractLog/startTaskTheLog" @finish="showReportFinish"
-                       @hide="showReportModal = false"/>
+        <!-- 批量上报审批 -->
+        <HcReportModal
+            :addition="reportAddition" :contract-id="contractId" :project-id="projectId"
+            :show="showReportModal" :task-name="reportTaskName" :type-data="menuItem.primaryKeyId"
+            title="日志填报上报"
+            type="log" url="contractLog/startTaskTheLog" @finish="showReportFinish"
+            @hide="showReportModal = false"
+        />
     </div>
 </template>
 
 <script setup>
-import {ref, watch, onMounted, onActivated, onDeactivated, onUnmounted} from "vue";
-import {getObjValue, isString, getArrValue, isNullES, getObjVal, arrToId} from "js-fast-way"
-import DateCalendar from "./dateCalendar/index.vue"
+import { onActivated, onDeactivated, onMounted, onUnmounted, ref, watch } from 'vue'
+import { arrToId, getArrValue, getObjVal, getObjValue, isNullES, isString } from 'js-fast-way'
+import DateCalendar from './dateCalendar/index.vue'
 //import HcTableForm from "~com/table-form/index.vue";
-import HTableForm from "~src/plugins/HTableForm"
-import wbsQueryApi from '~api/data-fill/query';
-import queryApi from '~api/ledger/query';
-import {useAppStore} from "~src/store";
+import HTableForm from '~src/plugins/HTableForm'
+import wbsQueryApi from '~api/data-fill/query'
+import queryApi from '~api/ledger/query'
+import { useAppStore } from '~src/store'
 
-const useAppState = useAppStore()
 //参数
 const props = defineProps({
     projectId: {
         type: [String, Number],
-        default: ''
+        default: '',
     },
     contractId: {
         type: [String, Number],
-        default: ''
+        default: '',
     },
     items: {
         type: Object,
-        default: () => ({})
+        default: () => ({}),
     },
     userName: {
         type: [String, Number],
-        default: ''
-    }
+        default: '',
+    },
 })
-
+const useAppState = useAppStore()
 //变量
-const projectId = ref(props.projectId);
-const contractId = ref(props.contractId);
-const menuItem = ref(props.items);
-const userName = ref(props.userName);
-const excelIdVal = ref('');
-const tableFormRef = ref(null);
+const projectId = ref(props.projectId)
+const contractId = ref(props.contractId)
+const menuItem = ref(props.items)
+const userName = ref(props.userName)
+const excelIdVal = ref('')
+const tableFormRef = ref(null)
 
 
-const contractInfo = ref(useAppState.getContractInfo);
-const {contractType} = contractInfo.value;
+const contractInfo = ref(useAppState.getContractInfo)
+const { contractType } = contractInfo.value
 const classifyType = ref(contractType === 2 ? '2' : '1')
 
 //监听
@@ -212,7 +243,7 @@ const getQueryData = () => {
 }
 
 const setQueryDataDate = () => {
-    const {excelId} = menuItem.value
+    const { excelId } = menuItem.value
     excelIdVal.value = excelId > 0 ? excelId + '' : ''
 }
 
@@ -220,7 +251,7 @@ const setQueryDataDate = () => {
 const recordTime = ref('')
 const recordDate = ref({})
 const recordDates = ref({})
-const dateCalendarChoice = ({date, choices, dates}) => {
+const dateCalendarChoice = ({ date, choices, dates }) => {
     recordTime.value = choices
     recordDate.value = date
     recordDates.value = dates
@@ -230,7 +261,7 @@ const dateCalendarChoice = ({date, choices, dates}) => {
 //获取数据
 const loading = ref(false)
 const getExcelBusinessData = async (date, choices) => {
-    const {primaryKeyId} = menuItem.value
+    const { primaryKeyId } = menuItem.value
     loading.value = true
     await getTheLogBusinessData(excelIdVal.value, choices)
     await getExcelHtml(excelIdVal.value)
@@ -245,9 +276,9 @@ const excelHtmlData = ref('')
 const getExcelHtml = async (excelId) => {
     if (excelId) {
         //获取数据
-        const {error, code, data} = await queryApi.getExcelHtml({
+        const { error, code, data } = await queryApi.getExcelHtml({
             contractId: contractId.value || '',
-            pkeyId: excelId
+            pkeyId: excelId,
         }, false)
         //处理数据
         const resData = isString(data) ? data || '' : ''
@@ -273,13 +304,13 @@ const tableFormRender = (form) => {
 //表单数据
 const formLogDataList = ref([])
 const getTheLogBusinessData = async (excelId, recordDate) => {
-    const {primaryKeyId} = menuItem.value
-    const {data} = await queryApi.getTheLogBusinessData({
+    const { primaryKeyId } = menuItem.value
+    const { data } = await queryApi.getTheLogBusinessData({
         contractId: contractId.value || '',
         pkeyId: excelId,
         nodePrimaryKeyId: primaryKeyId,
         recordTime: recordDate,
-        theLogId: ""
+        theLogId: '',
     }, false)
     //设置默认数据
     let formArrData = getArrValue(data)
@@ -312,13 +343,13 @@ const getBussDataInfo = (index = 0) => {
 
 //获取日期记录
 const dateData = ref([])
-const getSubmitLogDateList = async ({year}, pid) => {
+const getSubmitLogDateList = async ({ year }, pid) => {
     if (pid > 0 && year) {
-        const {data} = await queryApi.getSubmitLogDateList({
+        const { data } = await queryApi.getSubmitLogDateList({
             projectId: projectId.value,
             contractId: contractId.value,
             primaryKeyId: pid,
-            year: year
+            year: year,
         }, false)
         //处理数据
         dateData.value = getArrValue(data)
@@ -331,11 +362,11 @@ const getSubmitLogDateList = async ({year}, pid) => {
 const taskStatus = ref(1)
 const checkTheLogTaskStatus = async (choices, primaryKeyId) => {
     if (primaryKeyId > 0) {
-        const {error, code, data} = await queryApi.checkTheLogTaskStatus({
+        const { error, code, data } = await queryApi.checkTheLogTaskStatus({
             projectId: projectId.value,
             contractId: contractId.value,
             nodePrimaryKeyId: primaryKeyId,
-            recordTime: choices
+            recordTime: choices,
         }, false)
         //处理数据
         const res = isNullES(data) ? '' : data || ''
@@ -359,19 +390,20 @@ const showProcessModal = () => {
 
 //树的配置
 const processElTree = ref(null)
-const processTreeProps = {label: 'title', children: 'children', isLeaf: 'notExsitChild'}
+const processTreeProps = { label: 'title', children: 'children', isLeaf: 'notExsitChild' }
 const defaultExpanded = ref([]) //默认展开
 const defaultChecked = ref([]) //默认选中
 
 //树形结构异步加载数据
 const ElTreeLoadNode = async (node, resolve) => {
     if (node.level === 0) {
-        const {error, code, data} = await wbsQueryApi.queryWbsTreeData({
+        const { error, code, data } = await wbsQueryApi.queryWbsTreeData({
             contractId: contractId.value || '',
             contractIdRelation: '',
             primaryKeyId: '',
             parentId: '',
             classifyType: classifyType.value,
+            tableOwner:'',
         })
         //处理数据
         if (!error && code === 200) {
@@ -382,13 +414,14 @@ const ElTreeLoadNode = async (node, resolve) => {
             resolve([])
         }
     } else {
-        const {id, contractIdRelation, primaryKeyId} = node.data
-        const {error, code, data} = await wbsQueryApi.queryWbsTreeData({
+        const { id, contractIdRelation, primaryKeyId } = node.data
+        const { error, code, data } = await wbsQueryApi.queryWbsTreeData({
             contractId: contractId.value || '',
-            contractIdRelation: contractIdRelation,
+            contractIdRelation: contractIdRelation || '',
             primaryKeyId: id,
             parentId: contractIdRelation ? primaryKeyId : id,
             classifyType: classifyType.value,
+            tableOwner:'',
         })
         //处理数据
         if (!error && code === 200) {
@@ -407,13 +440,13 @@ const processNodeClick = () => {
     const formData = formLogDataList.value[formIndex]
     const linkTabIds = getArrValue(formData?.linkTabIds)
     for (let index = 0; index < keys.length; index++) {
-        let pathArr = [];
-        let node = processElTree.value.getNode(keys[index]);
-        getPathName(node, pathArr);
+        let pathArr = []
+        let node = processElTree.value.getNode(keys[index])
+        getPathName(node, pathArr)
         linkTabIds.push({
             path: pathArr.join('/'),
-            primaryKeyId: keys[index]
-        });
+            primaryKeyId: keys[index],
+        })
     }
     formLogDataList.value[formIndex]['linkTabIds'] = linkTabIds
     processDataList.value = linkTabIds
@@ -423,10 +456,10 @@ const processNodeClick = () => {
 //获取节点的路径名字
 const getPathName = (node, pathArr) => {
     if (node.parent?.parent) {
-        pathArr.unshift(node.data?.title.replace(/(^\s*)|(\s*$)/g, ""));   //去掉头尾空格
-        getPathName(node.parent, pathArr);
+        pathArr.unshift(node.data?.title.replace(/(^\s*)|(\s*$)/g, '')) //去掉头尾空格
+        getPathName(node.parent, pathArr)
     } else {
-        return; //根节点结束
+        return //根节点结束
     }
 }
 
@@ -443,7 +476,7 @@ const deleProcess = (index) => {
 //保存数据
 const tableFormSaveLoading = ref(false)
 const tableFormSaveClick = async () => {
-    const {primaryKeyId} = menuItem.value
+    const { primaryKeyId } = menuItem.value
     const res = await saveExcelBussData()
     if (res) {
         await checkTheLogTaskStatus(recordTime.value, primaryKeyId)
@@ -454,12 +487,12 @@ const tableFormSaveClick = async () => {
 
 //保存
 const saveExcelBussData = async () => {
-    let isLinkTabIds = getLinkTabIds(); //处理工序ID
+    let isLinkTabIds = getLinkTabIds() //处理工序ID
     console.log('orderList:', formLogDataList.value)
     if (isLinkTabIds) {
         tableFormSaveLoading.value = true
-        const {error, code, msg} = await queryApi.saveExcelBussData({
-            dataInfo: {orderList: formLogDataList.value}
+        const { error, code, msg } = await queryApi.saveExcelBussData({
+            dataInfo: { orderList: formLogDataList.value },
         }, false)
         if (!error && code === 200) {
             window?.$message?.success(msg)
@@ -474,7 +507,7 @@ const saveExcelBussData = async () => {
 
 //处理工序数据
 const getLinkTabIds = () => {
-    let {nodeType} = menuItem.value;
+    let { nodeType } = menuItem.value
     let isLink = false
     if (nodeType === 7 || nodeType === 11) {
         isLink = formLogDataList.value.some((item) => {
@@ -501,13 +534,13 @@ const previewBussPdf = () => {
 //预览PDF
 const getBussPdfInfo = async () => {
     previewLoading.value = true
-    const {primaryKeyId} = menuItem.value
-    const {error, code, data} = await queryApi.getBussPdfInfo({
+    const { primaryKeyId } = menuItem.value
+    const { error, code, data } = await queryApi.getBussPdfInfo({
         contractId: contractId.value || '',
         pkeyId: excelIdVal.value,
         nodePrimaryKeyId: primaryKeyId,
         recordTime: recordTime.value,
-        theLogId: ""
+        theLogId: '',
     }, false)
     //处理数据
     previewLoading.value = false
@@ -522,9 +555,9 @@ const getBussPdfInfo = async () => {
 //获取当前日志资料关联的工序节点信息
 const queryCurrentLogSelectProcessList = async (bid) => {
     if (bid) {
-        const {error, code, data, msg} = await queryApi.queryCurrentLogSelectProcessList({
+        const { error, code, data, msg } = await queryApi.queryCurrentLogSelectProcessList({
             contractId: contractId.value || '',
-            businessId: bid ?? ''
+            businessId: bid ?? '',
         }, false)
         //处理数据
         const formIndex = formLogIndex.value
@@ -558,7 +591,7 @@ const copyTableFormClick = () => {
     const defaultData = setFormDefaultData(formLog[logIndex])
     formLogDataList.value.push({
         ...defaultData,
-        id: ''
+        id: '',
     })
     const index = formLogDataList.value.length - 1
     getBussDataInfo(index)
@@ -574,17 +607,17 @@ const copyTimeLogModal = () => {
 
 //日期数
 const copyTimeTreeProps = {
-    children: 'treeList', label: 'name'
+    children: 'treeList', label: 'name',
 }
 const copyTimeTreeData = ref([])
 const copyTimeTreeKeys = ref([])
 
 //获取当前合同段下本日志节点的填报资料日期树
 const queryReportLogTimeTree = async () => {
-    const {primaryKeyId} = menuItem.value
-    const {data} = await queryApi.queryReportLogTimeTree({
+    const { primaryKeyId } = menuItem.value
+    const { data } = await queryApi.queryReportLogTimeTree({
         contractId: contractId.value || '',
-        nodePrimaryKeyId: primaryKeyId
+        nodePrimaryKeyId: primaryKeyId,
     })
     const res = getArrValue(data)
     copyTimeTreeData.value = res
@@ -601,8 +634,8 @@ const copyTimeTreeNodeClick = (data) => {
 //复制任意时间的记录人
 const copyTimeTableRef = ref(null)
 const copyTimeTableColumn = ref([
-    {key: 'createUserName', name: '记录人'},
-    {key: 'recordTime', name: '时间'},
+    { key: 'createUserName', name: '记录人' },
+    { key: 'recordTime', name: '时间' },
 ])
 const copyTimeTableData = ref([])
 
@@ -610,21 +643,21 @@ const copyTimeTableData = ref([])
 const copyTimeTableLoading = ref(false)
 const queryLogTimeTreeList = async (time) => {
     copyTimeTableLoading.value = true
-    const {primaryKeyId} = menuItem.value
-    const {data} = await queryApi.queryLogTimeTreeList({
+    const { primaryKeyId } = menuItem.value
+    const { data } = await queryApi.queryLogTimeTreeList({
         contractId: contractId.value || '',
         nodePrimaryKeyId: primaryKeyId,
-        time: time
+        time: time,
     })
     copyTimeTableLoading.value = false
     copyTimeTableData.value = getArrValue(data)
 }
 
 //多选
-const copyTimeTableKeys = ref([]);
+const copyTimeTableKeys = ref([])
 const copyTimeTableSelection = (rows) => {
     copyTimeTableKeys.value = rows.filter((item) => {
-        return (item ?? '') !== '';
+        return (item ?? '') !== ''
     })
 }
 
@@ -643,20 +676,20 @@ const copyTimeSaveClick = () => {
 //复制任意时间
 const copyTheLogBusinessData = async (ids) => {
     copyTimeLoading.value = true
-    const {primaryKeyId} = menuItem.value
-    const {error, code} = await queryApi.copyTheLogBusinessData({
+    const { primaryKeyId } = menuItem.value
+    const { error, code } = await queryApi.copyTheLogBusinessData({
         contractId: contractId.value || '',
         nodePrimaryKeyId: primaryKeyId,
         currentTime: recordTime.value,
-        theLogId: ids
+        theLogId: ids,
     })
     //处理数据
     copyTimeLoading.value = false
     if (!error && code === 200) {
         copyTimeModal.value = false
-        window?.$message?.success('复制成功');
+        window?.$message?.success('复制成功')
         setTimeout(() => {
-            window?.location?.reload()  //刷新页面
+            window?.location?.reload() //刷新页面
         }, 3000)
     }
 }
@@ -670,9 +703,9 @@ const setFormDefaultData = (formInfo = {}) => {
         contractId: contractId.value,
         recordTime: recordTime.value,
         pkeyId: excelIdVal.value,
-        isTheLog: "1",
-        theLogId: "",
-        classify: 1
+        isTheLog: '1',
+        theLogId: '',
+        classify: 1,
     }
 }
 
@@ -689,7 +722,7 @@ const reportTaskName = ref('')
 const reportAddition = ref({})
 const showReportModal = ref(false)
 const reportModalClick = () => {
-    const {primaryKeyId, title} = menuItem.value
+    const { primaryKeyId, title } = menuItem.value
     reportTaskName.value = `${recordTime.value} ${title} ${userName.value}`
     reportAddition.value = {
         nodePrimaryKeyId: primaryKeyId,
@@ -701,7 +734,7 @@ const reportModalClick = () => {
 //上报完成
 const showReportFinish = () => {
     showReportModal.value = false
-    window?.location?.reload()  //刷新页面
+    window?.location?.reload() //刷新页面
 }
 
 //废除
@@ -714,22 +747,22 @@ const abolishTableFormClick = () => {
             if (action === 'confirm') {
                 theLogOneAbolish()
             }
-        }
+        },
     })
 }
 //确认废除
 const theLogOneAbolish = async () => {
-    const {primaryKeyId} = menuItem.value
-    const {error, code} = await queryApi.theLogOneAbolish({
+    const { primaryKeyId } = menuItem.value
+    const { error, code } = await queryApi.theLogOneAbolish({
         projectId: projectId.value,
         contractId: contractId.value,
         nodePrimaryKeyId: primaryKeyId,
-        recordTime: recordTime.value
+        recordTime: recordTime.value,
     })
     //处理数据
     if (!error && code === 200) {
         window.$message?.success('废除成功')
-        window?.location?.reload()  //刷新页面
+        window?.location?.reload() //刷新页面
     }
 }