|
@@ -12,7 +12,7 @@
|
|
|
</el-button>
|
|
|
</template>
|
|
|
<template #extra>
|
|
|
- <el-button type="primary" hc-btn @click="linksRelateModalClick" :disabled="!checkTabId">关联工程用途及部位</el-button>
|
|
|
+ <el-button type="primary" hc-btn @click="linksRelateModalClick" :disabled="listItemData.length <= 0">关联工程用途及部位</el-button>
|
|
|
<el-button :type="isMixRatioTestIds ? 'primary' : ''" hc-btn :disabled="!isMixRatioTestIds" @click="linksRawModalClick">关联原材检测报告</el-button>
|
|
|
<el-button type="primary" hc-btn @click="linksSampleModalClick">关联取样</el-button>
|
|
|
</template>
|
|
@@ -53,15 +53,19 @@
|
|
|
<HcIcon name="save"/>
|
|
|
<span>保存</span>
|
|
|
</el-button>
|
|
|
- <el-button hc-btn :loading="reportLoading" @click="reportModalClick">
|
|
|
+ <!-- <el-button hc-btn :loading="reportLoading" @click="reportModalClick" :disabled="NodeStatus === '3' || NodeStatus === '1'" >
|
|
|
+ <HcIcon name="send-plane-2"/>
|
|
|
+ <span>上报</span>
|
|
|
+ </el-button> -->
|
|
|
+ <el-button hc-btn :loading="reportLoading" @click="reportModalClick" >
|
|
|
<HcIcon name="send-plane-2"/>
|
|
|
<span>上报</span>
|
|
|
</el-button>
|
|
|
- <el-button hc-btn :loading="bussPdfsLoading" @click="bussPdfsClick">
|
|
|
+ <el-button hc-btn :disabled="NodeStatus === '1'" :loading="bussPdfsLoading" @click="bussPdfsClick">
|
|
|
<HcIcon name="eye"/>
|
|
|
<span>预览</span>
|
|
|
</el-button>
|
|
|
- <el-button hc-btn @click="abolishOneClick">
|
|
|
+ <el-button hc-btn @click="abolishOneClick" v-if="NodeStatus === '3'">
|
|
|
<HcIcon name="arrow-go-back"/>
|
|
|
<span>撤回上报流程</span>
|
|
|
</el-button>
|
|
@@ -149,6 +153,7 @@ import {rowsToId} from "~uti/tools";
|
|
|
import dayjs from "dayjs"
|
|
|
import { Loading } from "element-plus/es/components/loading/src/service";
|
|
|
import { eVisaTaskCheckApi} from "~api/other"
|
|
|
+import wbsApi from "~api/data-fill/wbs"
|
|
|
|
|
|
|
|
|
//变量
|
|
@@ -160,7 +165,8 @@ const projectId = ref(useAppState.getProjectId);
|
|
|
const contractId = ref(useAppState.getContractId);
|
|
|
const projectInfo = ref(useAppState.getProjectInfo);
|
|
|
const contractInfo = ref(useAppState.getContractInfo);
|
|
|
-
|
|
|
+//获取模板标签数据
|
|
|
+const isTableForm = ref(false)
|
|
|
//路由参数
|
|
|
const routerQuery = useRoutes?.query;
|
|
|
//存储目录格式 1按部位存储,2按日期存储
|
|
@@ -252,7 +258,7 @@ const getSearchNodeTables = async () => {
|
|
|
//获取数据
|
|
|
const getTableDataAll = () => {
|
|
|
getSearchNodeTables()
|
|
|
- //queryNodeStatus()
|
|
|
+ queryNodeStatus()
|
|
|
}
|
|
|
|
|
|
//设置滚动条位置
|
|
@@ -538,9 +544,25 @@ const setFormRegExpJson = (FormRegExpJson) => {
|
|
|
})
|
|
|
}
|
|
|
//获取数据列表
|
|
|
-const ListItemDatas = ref([]);
|
|
|
+
|
|
|
+
|
|
|
const nodeItemInfo = ref({})
|
|
|
const nodeDataInfo = ref({})
|
|
|
+//查询状态
|
|
|
+const NodeStatus = ref('1')
|
|
|
+const queryNodeStatus = async () => {
|
|
|
+ const info = getStoreData('prenodeDataInfo') || {}
|
|
|
+ const {error, code, data} = await wbsApi.queryNodeStatus({
|
|
|
+ primaryKeyId: info['contractIdRelation'] ? info['id'] : info['primaryKeyId'],
|
|
|
+ classify: authBtnTabKey.value
|
|
|
+ })
|
|
|
+ //1 未填报,2待上报,3已上报
|
|
|
+ if (!error && code === 200) {
|
|
|
+ NodeStatus.value = data ?? '1'
|
|
|
+ } else {
|
|
|
+ NodeStatus.value = '1'
|
|
|
+ }
|
|
|
+}
|
|
|
//批量上报
|
|
|
const reportIds = ref('')
|
|
|
const reportTaskName = ref('')
|
|
@@ -561,7 +583,6 @@ const showReportFinish = () => {
|
|
|
|
|
|
|
|
|
const reportModalClick = async () => {
|
|
|
-
|
|
|
const info = getStoreData('prenodeDataInfo') || {}
|
|
|
console.log(info,'info');
|
|
|
const rows = listItemData.value;
|