|
@@ -2,19 +2,22 @@
|
|
|
<div class="hc-table-form-content">
|
|
|
<div class="hc-content-box">
|
|
|
<div class="hc-table-forem-box">
|
|
|
+ <!--HcTableForm :ref="tableFormRef" scroll @render="tableFormRender"
|
|
|
+ @rightTap="tableFormRightTap"/-->
|
|
|
<el-scrollbar v-if="excelIdVal && isTableForm">
|
|
|
- <div class="hc-excel-table-form-view" :id="`table-form-${excelIdVal}`"></div>
|
|
|
+ <div :id="`table-form-${excelIdVal}`" class="hc-excel-table-form-view"></div>
|
|
|
</el-scrollbar>
|
|
|
- <HcStatus :desc="statusDesc" v-else/>
|
|
|
+ <HcStatus v-else :desc="statusDesc"/>
|
|
|
</div>
|
|
|
- <div class="hc-fixed-page" v-if="formLogDataList.length > 1">
|
|
|
+ <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="fixed-page-item" :class="index === formLogIndex ? 'primary' : ''" @click="getBussDataInfo(index)">
|
|
|
+ <div :class="index === formLogIndex ? 'primary' : ''" class="fixed-page-item"
|
|
|
+ @click="getBussDataInfo(index)">
|
|
|
<div class="name-box">
|
|
|
<HcIcon name="sticky-note"/>
|
|
|
- <span class="page">第{{index + 1}}页</span>
|
|
|
+ <span class="page">第{{ index + 1 }}页</span>
|
|
|
</div>
|
|
|
<div class="close-box" @click.stop="closeBussDataInfo(index)">
|
|
|
<HcIcon name="close"/>
|
|
@@ -25,19 +28,19 @@
|
|
|
</el-scrollbar>
|
|
|
</div>
|
|
|
<div class="hc-right-pian-box hc-flex-column">
|
|
|
- <DateCalendar :recordDate="recordDates" :dateData="dateData" @choice-date="dateCalendarChoice"/>
|
|
|
- <el-alert title="蓝色代表当天已填写过日志" type="warning" show-icon/>
|
|
|
- <div class="my-4" v-if="menuItem?.nodeType === 7 || menuItem?.nodeType === 11">
|
|
|
- <el-button type="primary" hc-btn @click="showProcessModal">
|
|
|
+ <DateCalendar :dateData="dateData" :recordDate="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"/>
|
|
|
<span>关联工序</span>
|
|
|
</el-button>
|
|
|
</div>
|
|
|
- <div class="hc-process-box" v-if="menuItem?.nodeType === 7 || menuItem?.nodeType === 11">
|
|
|
+ <div v-if="menuItem?.nodeType === 7 || menuItem?.nodeType === 11" class="hc-process-box">
|
|
|
<el-scrollbar>
|
|
|
- <div class="process-item-box" v-for="(item,index) in processDataList">
|
|
|
- <div class="process-item">{{item.path}}</div>
|
|
|
- <HcIcon name="close-circle" fill class="process-icon" @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>
|
|
@@ -45,43 +48,51 @@
|
|
|
</div>
|
|
|
<div class="hc-footer-box">
|
|
|
<HcTooltip keys="ledger_query_save_form">
|
|
|
- <el-button type="primary" hc-btn :disabled="!isTableForm || taskStatus === 3 || taskStatus === 4" :loading="tableFormSaveLoading" @click="tableFormSaveClick">
|
|
|
+ <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 hc-btn :disabled="!isTableForm || taskStatus === 1 || taskStatus === 3 || taskStatus === 4" @click="reportModalClick">
|
|
|
+ <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 hc-btn :disabled="!isTableForm || taskStatus === 1 " :loading="previewLoading" @click="previewBussPdf">
|
|
|
+ <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 hc-btn :disabled="!isTableForm || taskStatus === 3 || taskStatus === 4" @click="copyTableFormClick">
|
|
|
+ <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 hc-btn :disabled="!isTableForm || taskStatus === 3 || taskStatus === 4" @click="copyTimeLogModal">
|
|
|
+ <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 hc-btn :disabled="!isTableForm || taskStatus === 3 || taskStatus === 4" @click="addTableFormClick">
|
|
|
+ <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 hc-btn :disabled="!isTableForm || taskStatus === 1 || taskStatus === 2" @click="abolishTableFormClick">
|
|
|
+ <el-button :disabled="!isTableForm || taskStatus === 1 || taskStatus === 2" hc-btn
|
|
|
+ @click="abolishTableFormClick">
|
|
|
<HcIcon name="delete-bin-3"/>
|
|
|
<span>废除</span>
|
|
|
</el-button>
|
|
@@ -89,30 +100,43 @@
|
|
|
</div>
|
|
|
|
|
|
<!--关联工序-->
|
|
|
- <HcDialog :show="processNodeModal" title="选择关联工序" widths="62rem" @close="processNodeModal = false" @save="processNodeClick">
|
|
|
+ <HcDialog :show="processNodeModal" title="选择关联工序" widths="62rem" @close="processNodeModal = false"
|
|
|
+ @save="processNodeClick">
|
|
|
<div class="node-many-tree">
|
|
|
- <el-tree :load="ElTreeLoadNode" lazy class="my-tree" :props="processTreeProps" show-checkbox node-key="primaryKeyId"
|
|
|
- :default-checked-keys="defaultChecked" :default-expanded-keys="defaultExpanded" check-strictly ref="processElTree"/>
|
|
|
+ <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 :show="copyTimeModal" isTable title="复制任意时间" widths="62rem" saveText="复制" :padding="false" @close="copyTimeModal = false" :loading="copyTimeLoading" @save="copyTimeSaveClick">
|
|
|
+ <HcDialog :loading="copyTimeLoading" :padding="false" :show="copyTimeModal" isTable saveText="复制"
|
|
|
+ title="复制任意时间"
|
|
|
+ widths="62rem" @close="copyTimeModal = false" @save="copyTimeSaveClick">
|
|
|
<div class="hc-user-time-box">
|
|
|
<div class="tree-box">
|
|
|
<el-scrollbar>
|
|
|
- <el-tree class="hc-tree-node" :props="copyTimeTreeProps" :data="copyTimeTreeData" node-key="hierarchy" :default-expanded-keys="copyTimeTreeKeys" highlight-current accordion @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" isCheck @selection-change="copyTimeTableSelection"/>
|
|
|
</div>
|
|
|
</div>
|
|
|
</HcDialog>
|
|
|
|
|
|
<!--批量上报审批-->
|
|
|
- <HcReportModal title="日志填报上报" url="contractLog/startTaskTheLog" :show="showReportModal" :projectId="projectId" :contractId="contractId" type="log" :typeData="menuItem.primaryKeyId"
|
|
|
- :taskName="reportTaskName" :addition="reportAddition" @hide="showReportModal = false" @finish="showReportFinish"/>
|
|
|
+ <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"/>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -123,15 +147,16 @@ import wbsQueryApi from '~api/data-fill/query';
|
|
|
import HTableForm from "~src/plugins/HTableForm"
|
|
|
import DateCalendar from "./dateCalendar/index.vue"
|
|
|
import {getObjValue, getObjNullValue, isString, getArrValue, isValueNull} from "vue-utils-plus"
|
|
|
+import HcTableForm from "~com/table-form/index.vue";
|
|
|
|
|
|
//参数
|
|
|
const props = defineProps({
|
|
|
projectId: {
|
|
|
- type: [String,Number],
|
|
|
+ type: [String, Number],
|
|
|
default: ''
|
|
|
},
|
|
|
contractId: {
|
|
|
- type: [String,Number],
|
|
|
+ type: [String, Number],
|
|
|
default: ''
|
|
|
},
|
|
|
items: {
|
|
@@ -139,7 +164,7 @@ const props = defineProps({
|
|
|
default: () => ({})
|
|
|
},
|
|
|
userName: {
|
|
|
- type: [String,Number],
|
|
|
+ type: [String, Number],
|
|
|
default: ''
|
|
|
}
|
|
|
})
|
|
@@ -151,6 +176,7 @@ const menuItem = ref(props.items);
|
|
|
const userName = ref(props.userName);
|
|
|
const excelIdVal = ref('');
|
|
|
const statusDesc = ref('');
|
|
|
+const tableFormRef = ref(null);
|
|
|
|
|
|
//监听
|
|
|
watch(() => [
|
|
@@ -176,7 +202,7 @@ nextTick(() => {
|
|
|
const getQueryData = () => {
|
|
|
setQueryDataDate()
|
|
|
const date = recordDate.value ?? {}, time = recordTime.value ?? ''
|
|
|
- getExcelBusinessData(date,time)
|
|
|
+ getExcelBusinessData(date, time)
|
|
|
}
|
|
|
|
|
|
const setQueryDataDate = () => {
|
|
@@ -192,16 +218,16 @@ const dateCalendarChoice = ({date, choices, dates}) => {
|
|
|
recordTime.value = choices
|
|
|
recordDate.value = date
|
|
|
recordDates.value = dates
|
|
|
- getExcelBusinessData(date,choices)
|
|
|
+ getExcelBusinessData(date, choices)
|
|
|
}
|
|
|
|
|
|
//获取数据
|
|
|
-const getExcelBusinessData = (date,choices) => {
|
|
|
+const getExcelBusinessData = (date, choices) => {
|
|
|
const {primaryKeyId} = menuItem.value
|
|
|
getExcelHtml(excelIdVal.value)
|
|
|
getTheLogBusinessData(excelIdVal.value, choices)
|
|
|
- getSubmitLogDateList(date,primaryKeyId)
|
|
|
- checkTheLogTaskStatus(choices,primaryKeyId)
|
|
|
+ getSubmitLogDateList(date, primaryKeyId)
|
|
|
+ checkTheLogTaskStatus(choices, primaryKeyId)
|
|
|
}
|
|
|
|
|
|
//获取模板标签数据
|
|
@@ -210,7 +236,7 @@ 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
|
|
|
}, false)
|
|
@@ -218,7 +244,7 @@ const getExcelHtml = async (excelId) => {
|
|
|
const resData = isString(data) ? data || '' : ''
|
|
|
excelHtmlData.value = resData
|
|
|
if (!error && code === 200 && resData) {
|
|
|
- setHTableForm(resData,excelId)
|
|
|
+ setHTableForm(resData, excelId)
|
|
|
} else {
|
|
|
isTableForm.value = false
|
|
|
statusDesc.value = '暂无表单'
|
|
@@ -257,7 +283,7 @@ const setHTableForm = (resData, excelId) => {
|
|
|
const formLogDataList = ref([])
|
|
|
const getTheLogBusinessData = async (excelId, recordDate) => {
|
|
|
const {primaryKeyId} = menuItem.value
|
|
|
- const { data } = await queryApi.getTheLogBusinessData({
|
|
|
+ const {data} = await queryApi.getTheLogBusinessData({
|
|
|
contractId: contractId.value || '',
|
|
|
pkeyId: excelId,
|
|
|
nodePrimaryKeyId: primaryKeyId,
|
|
@@ -298,9 +324,9 @@ 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,
|
|
@@ -315,9 +341,9 @@ const getSubmitLogDateList = async ({year},pid) => {
|
|
|
|
|
|
//获取当前资料的任务状态
|
|
|
const taskStatus = ref(1)
|
|
|
-const checkTheLogTaskStatus = async (choices,primaryKeyId) => {
|
|
|
+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,
|
|
@@ -353,7 +379,7 @@ const defaultChecked = ref([]) //默认选中
|
|
|
const ElTreeLoadNode = async (node, resolve) => {
|
|
|
if (node.level === 0) {
|
|
|
const {error, code, data} = await wbsQueryApi.queryWbsTreeData({
|
|
|
- contractId: contractId.value ||'',
|
|
|
+ contractId: contractId.value || '',
|
|
|
contractIdRelation: '',
|
|
|
primaryKeyId: '',
|
|
|
parentId: ''
|
|
@@ -432,19 +458,19 @@ const tableFormSaveClick = async () => {
|
|
|
if (res) {
|
|
|
await checkTheLogTaskStatus(recordTime.value, primaryKeyId)
|
|
|
await getBussPdfInfo()
|
|
|
- tableFormSaveLoading.value = false
|
|
|
+ tableFormSaveLoading.value = false
|
|
|
}
|
|
|
}
|
|
|
|
|
|
//保存
|
|
|
const saveExcelBussData = async () => {
|
|
|
let isLinkTabIds = getLinkTabIds(); //处理工序ID
|
|
|
- console.log(isLinkTabIds,'isLinkTabIds');
|
|
|
+ console.log(isLinkTabIds, 'isLinkTabIds');
|
|
|
if (isLinkTabIds) {
|
|
|
tableFormSaveLoading.value = true
|
|
|
- const { error, code, msg } = await queryApi.saveExcelBussData({
|
|
|
+ const {error, code, msg} = await queryApi.saveExcelBussData({
|
|
|
dataInfo: {orderList: formLogDataList.value}
|
|
|
- },false)
|
|
|
+ }, false)
|
|
|
|
|
|
if (!error && code === 200) {
|
|
|
|
|
@@ -460,15 +486,15 @@ const saveExcelBussData = async () => {
|
|
|
//处理工序数据
|
|
|
const getLinkTabIds = () => {
|
|
|
let {nodeType} = menuItem.value;
|
|
|
- let isLink=false
|
|
|
+ let isLink = false
|
|
|
if (nodeType === 7 || nodeType === 11) {
|
|
|
- isLink= formLogDataList.value.some((item)=>{
|
|
|
- const linkIds = getArrValue(item?.linkTabIds)
|
|
|
- return linkIds.length>0
|
|
|
+ isLink = formLogDataList.value.some((item) => {
|
|
|
+ const linkIds = getArrValue(item?.linkTabIds)
|
|
|
+ return linkIds.length > 0
|
|
|
})
|
|
|
- if(isLink){
|
|
|
+ if (isLink) {
|
|
|
return true
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
window?.$message?.warning('请先关联工序')
|
|
|
return false
|
|
|
}
|
|
@@ -488,7 +514,7 @@ const previewBussPdf = () => {
|
|
|
const getBussPdfInfo = async () => {
|
|
|
previewLoading.value = true
|
|
|
const {primaryKeyId} = menuItem.value
|
|
|
- const { error, code, data } = await queryApi.getBussPdfInfo({
|
|
|
+ const {error, code, data} = await queryApi.getBussPdfInfo({
|
|
|
contractId: contractId.value || '',
|
|
|
pkeyId: excelIdVal.value,
|
|
|
nodePrimaryKeyId: primaryKeyId,
|
|
@@ -499,7 +525,7 @@ const getBussPdfInfo = async () => {
|
|
|
previewLoading.value = false
|
|
|
const resData = isString(data) ? data || '' : ''
|
|
|
if (!error && code === 200 && resData) {
|
|
|
- window.open(resData,'_blank')
|
|
|
+ window.open(resData, '_blank')
|
|
|
} else {
|
|
|
window?.$message?.warning('暂无PDF,无法预览')
|
|
|
}
|
|
@@ -508,7 +534,7 @@ 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 ?? ''
|
|
|
}, false)
|
|
@@ -520,7 +546,7 @@ const queryCurrentLogSelectProcessList = async (bid) => {
|
|
|
processDataList.value = linkTabIds
|
|
|
} else {
|
|
|
processDataList.value = []
|
|
|
- if(msg) window?.$message?.warning(msg)
|
|
|
+ if (msg) window?.$message?.warning(msg)
|
|
|
}
|
|
|
} else {
|
|
|
const formIndex = formLogIndex.value
|
|
@@ -567,8 +593,8 @@ 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
|
|
|
})
|
|
@@ -587,8 +613,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([])
|
|
|
|
|
@@ -596,8 +622,8 @@ 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
|
|
@@ -610,7 +636,7 @@ const queryLogTimeTreeList = async (time) => {
|
|
|
const copyTimeTableKeys = ref([]);
|
|
|
const copyTimeTableSelection = (rows) => {
|
|
|
copyTimeTableKeys.value = rows.filter((item) => {
|
|
|
- return (item??'') !== '';
|
|
|
+ return (item ?? '') !== '';
|
|
|
})
|
|
|
}
|
|
|
|
|
@@ -630,7 +656,7 @@ const copyTimeSaveClick = () => {
|
|
|
const copyTheLogBusinessData = async (ids) => {
|
|
|
copyTimeLoading.value = true
|
|
|
const {primaryKeyId} = menuItem.value
|
|
|
- const { error, code } = await queryApi.copyTheLogBusinessData({
|
|
|
+ const {error, code} = await queryApi.copyTheLogBusinessData({
|
|
|
contractId: contractId.value || '',
|
|
|
nodePrimaryKeyId: primaryKeyId,
|
|
|
currentTime: recordTime.value,
|
|
@@ -674,7 +700,7 @@ const setFormDefaultData = (formInfo = {}) => {
|
|
|
//删除记录
|
|
|
const closeBussDataInfo = (index) => {
|
|
|
formLogDataList.value.splice(index, 1)
|
|
|
- const logIndex = index <= 0 ? 0 : index - 1
|
|
|
+ const logIndex = index <= 0 ? 0 : index - 1
|
|
|
formLogIndex.value = logIndex
|
|
|
getBussDataInfo(logIndex)
|
|
|
}
|
|
@@ -684,7 +710,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,
|
|
@@ -715,7 +741,7 @@ const abolishTableFormClick = () => {
|
|
|
//确认废除
|
|
|
const theLogOneAbolish = async () => {
|
|
|
const {primaryKeyId} = menuItem.value
|
|
|
- const { error, code } = await queryApi.theLogOneAbolish({
|
|
|
+ const {error, code} = await queryApi.theLogOneAbolish({
|
|
|
projectId: projectId.value,
|
|
|
contractId: contractId.value,
|
|
|
nodePrimaryKeyId: primaryKeyId,
|
|
@@ -741,7 +767,7 @@ const theLogOneAbolish = async () => {
|
|
|
padding: 24px;
|
|
|
background: #f1f5f8;
|
|
|
border-radius: 10px;
|
|
|
- box-shadow: -2px 0px 10px 0px rgba(32,37,50,0.03), 0px 10px 21px 20px rgba(32,37,50,0.03);
|
|
|
+ box-shadow: -2px 0px 10px 0px rgba(32, 37, 50, 0.03), 0px 10px 21px 20px rgba(32, 37, 50, 0.03);
|
|
|
}
|
|
|
.hc-content-box {
|
|
|
flex: 1;
|
|
@@ -773,7 +799,7 @@ const theLogOneAbolish = async () => {
|
|
|
background: #f1f5f8;
|
|
|
border: 1px solid #f1f5f8;
|
|
|
color: var(--el-color-primary-light-3);
|
|
|
- box-shadow: 4px 4px 8px 0 rgba(54,92,167,0.15), -4px -4px 8px 0 #ffffff;
|
|
|
+ box-shadow: 4px 4px 8px 0 rgba(54, 92, 167, 0.15), -4px -4px 8px 0 #ffffff;
|
|
|
transition: .1s;
|
|
|
.name-box {
|
|
|
position: relative;
|
|
@@ -799,7 +825,7 @@ const theLogOneAbolish = async () => {
|
|
|
box-shadow: var(--hc-shadow);
|
|
|
border: 1px solid #f1f5f8;
|
|
|
}
|
|
|
- &+.fixed-page-item{
|
|
|
+ & + .fixed-page-item {
|
|
|
margin-top: 20px;
|
|
|
}
|
|
|
}
|