|
@@ -51,7 +51,7 @@
|
|
|
</el-button>
|
|
|
</HcTooltip>
|
|
|
<HcTooltip keys="wbs_report" v-if="NodeStatus !== '3'">
|
|
|
- <el-button hc-btn :disabled="NodeStatus === '3' || NodeStatus === '1'" @click="reportModalClick">
|
|
|
+ <el-button hc-btn :disabled="NodeStatus === '3' || NodeStatus === '1'" :loading="reportLoading" @click="reportModalClick">
|
|
|
<HcIcon name="send-plane-2"/>
|
|
|
<span>上报</span>
|
|
|
</el-button>
|
|
@@ -154,7 +154,7 @@
|
|
|
</el-button>
|
|
|
</HcTooltip>
|
|
|
<HcTooltip keys="wbs_report" v-if="NodeStatus !== '3'">
|
|
|
- <el-button hc-btn :disabled="NodeStatus === '3' || NodeStatus === '1'" @click="reportModalClick">
|
|
|
+ <el-button hc-btn :disabled="NodeStatus === '3' || NodeStatus === '1'" :loading="reportLoading" @click="reportModalClick">
|
|
|
<HcIcon name="send-plane-2"/>
|
|
|
<span>上报</span>
|
|
|
</el-button>
|
|
@@ -329,8 +329,8 @@ 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, clog} from "vue-utils-plus"
|
|
|
-import {getDictionary} from "~api/other"
|
|
|
+import {isType, deepClone, formValidate} from "vue-utils-plus"
|
|
|
+import {getDictionary, eVisaTaskCheckApi} from "~api/other"
|
|
|
import wbsApi from "~api/data-fill/wbs"
|
|
|
import Draggable from "vuedraggable";
|
|
|
|
|
@@ -1068,23 +1068,32 @@ const reportIds = ref('')
|
|
|
const reportTaskName = ref('')
|
|
|
const reportAddition = ref({})
|
|
|
const showReportModal = ref(false)
|
|
|
+const reportLoading = ref(false)
|
|
|
const reportModalClick = async () => {
|
|
|
const info = nodeDataInfo.value;
|
|
|
const rows = ListItemDatas.value;
|
|
|
if (rows.length > 0) {
|
|
|
- //初始弹出弹窗,防呆
|
|
|
- reportIds.value = info['primaryKeyId']
|
|
|
- reportAddition.value = {
|
|
|
- classify: authBtnTabKey.value,
|
|
|
- contractIdRelation: info['contractIdRelation'],
|
|
|
- }
|
|
|
- showReportModal.value = true
|
|
|
- //请求文件题名
|
|
|
- const {data} = await wbsApi.queryDocumentTitle({
|
|
|
- primaryKeyId: info['primaryKeyId'],
|
|
|
- classify: authBtnTabKey.value
|
|
|
+ reportLoading.value = true
|
|
|
+ const taskCheck = await eVisaTaskCheckApi({
|
|
|
+ projectId: projectId.value,
|
|
|
+ contractId: contractId.value
|
|
|
})
|
|
|
- reportTaskName.value = isString(data)? data : ''
|
|
|
+ reportLoading.value = false
|
|
|
+ if (taskCheck) {
|
|
|
+ //初始弹出弹窗,防呆
|
|
|
+ reportIds.value = info['primaryKeyId']
|
|
|
+ reportAddition.value = {
|
|
|
+ classify: authBtnTabKey.value,
|
|
|
+ contractIdRelation: info['contractIdRelation'],
|
|
|
+ }
|
|
|
+ showReportModal.value = true
|
|
|
+ //请求文件题名
|
|
|
+ const {data} = await wbsApi.queryDocumentTitle({
|
|
|
+ primaryKeyId: info['primaryKeyId'],
|
|
|
+ classify: authBtnTabKey.value
|
|
|
+ })
|
|
|
+ reportTaskName.value = isString(data)? data : ''
|
|
|
+ }
|
|
|
} else {
|
|
|
window.$message?.warning('暂无相关数据')
|
|
|
}
|