|
@@ -25,6 +25,7 @@ import {useAppStore} from "@/store";
|
|
import wbsApi from '~api/data-fill/wbs';
|
|
import wbsApi from '~api/data-fill/wbs';
|
|
import {getFormApiUrl} from '@/config/envApi';
|
|
import {getFormApiUrl} from '@/config/envApi';
|
|
import api from '~api/api';
|
|
import api from '~api/api';
|
|
|
|
+import {getObjValue} from "js-fast-way";
|
|
|
|
|
|
const store = useAppStore()
|
|
const store = useAppStore()
|
|
const instance = getCurrentInstance().proxy
|
|
const instance = getCurrentInstance().proxy
|
|
@@ -143,7 +144,10 @@ const handleMessage = async (event) => {
|
|
//保存成功
|
|
//保存成功
|
|
if (msg.type === 'saveSuccess') {
|
|
if (msg.type === 'saveSuccess') {
|
|
uni.hideLoading();
|
|
uni.hideLoading();
|
|
|
|
+ uni.showLoading({title: '更新数据中...', mask: true});
|
|
await queryNodeStatus()
|
|
await queryNodeStatus()
|
|
|
|
+ await getWbsContractById()
|
|
|
|
+ uni.hideLoading();
|
|
await previewClick()
|
|
await previewClick()
|
|
}
|
|
}
|
|
//消息提示
|
|
//消息提示
|
|
@@ -160,6 +164,20 @@ const handleMessage = async (event) => {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+//获取数据详情
|
|
|
|
+const getWbsContractById = async () => {
|
|
|
|
+ const { pKeyId } = pageNode.value
|
|
|
|
+ const { data } = await wbsApi.getWbsContractById({
|
|
|
|
+ pKeyId: pKeyId,
|
|
|
|
+ })
|
|
|
|
+ //处理数据
|
|
|
|
+ const { isBussShow, isTabPdf, pdfUrl, tabFileType } = getObjValue(data)
|
|
|
|
+ pageNode.value.isBussShow = isBussShow
|
|
|
|
+ pageNode.value.isTabPdf = isTabPdf
|
|
|
|
+ pageNode.value.pdfUrl = pdfUrl
|
|
|
|
+ pageNode.value.tabFileType = tabFileType
|
|
|
|
+}
|
|
|
|
+
|
|
//当前节点状态, 1 未填报,2待上报,3已上报
|
|
//当前节点状态, 1 未填报,2待上报,3已上报
|
|
const queryNodeStatus = async () => {
|
|
const queryNodeStatus = async () => {
|
|
const {classify, treeId, status} = pageNode.value
|
|
const {classify, treeId, status} = pageNode.value
|