|
@@ -374,12 +374,14 @@ import { useAppStore } from '~src/store'
|
|
|
import { getStoreValue, setStoreValue } from '~src/utils/storage'
|
|
|
import { arrToId, arrToKey, downloadBlob, getArrValue, getObjValue, isString } from 'js-fast-way'
|
|
|
import queryApi from '~api/data-fill/query'
|
|
|
+import divisionApi from '~api/data-fill/division'
|
|
|
import { eVisaTaskCheckApi } from '~api/other'
|
|
|
import { toPdfPage } from '~uti/btn-auth'
|
|
|
import wbsApi from '~api/data-fill/wbs'
|
|
|
import website from '~src/config'
|
|
|
import { getDictionaryData } from '~uti/tools'
|
|
|
import { getDictionary } from '~api/other'
|
|
|
+import { reRendering } from 'element-plus/es/components/watermark/src/utils.mjs'
|
|
|
//变量
|
|
|
const useAppState = useAppStore()
|
|
|
const projectId = ref(useAppState.getProjectId)
|
|
@@ -1026,19 +1028,7 @@ const resignClick = async ()=>{
|
|
|
window.$message?.warning('勾选错误!只能操作待审批和已审批数据')
|
|
|
return
|
|
|
}
|
|
|
- //判断是否满足条件 //一键重迁 全部放开
|
|
|
- /*const result = rows.every(({ status }) => {
|
|
|
- if(status ===1 || status ===2){
|
|
|
- return true;
|
|
|
- }else{
|
|
|
- return false;
|
|
|
- }
|
|
|
- })
|
|
|
- //判断状态
|
|
|
- if (!result) {
|
|
|
- window.$message?.warning('只能勾选已审批的数据')
|
|
|
- return
|
|
|
- }*/
|
|
|
+
|
|
|
resignModal.value = true
|
|
|
|
|
|
|
|
@@ -1112,6 +1102,7 @@ const resignTitleClick = async ()=>{
|
|
|
|
|
|
// resignTitleModal.value = true
|
|
|
if (isTemplateType.value) {
|
|
|
+
|
|
|
resignTitleModal.value = true
|
|
|
} else {
|
|
|
resignTitleSave()
|
|
@@ -1148,21 +1139,33 @@ const resignTitleSave = async ()=>{
|
|
|
const resignTitleSaveLoad = ref(false)
|
|
|
|
|
|
//规则更改
|
|
|
-const changeRuleClick = ()=>{
|
|
|
- getWbsNodeTypeApi().then()
|
|
|
+const changeRuleClick = async ()=>{
|
|
|
+ await getWbsNodeTypeApi()
|
|
|
+
|
|
|
ruleModal.value = true
|
|
|
ruleTableData.value = []
|
|
|
- tableCheckedKeys.value.forEach((ele)=>{
|
|
|
+ tableCheckedKeys.value.forEach(async (ele)=>{
|
|
|
+ let returnData = await getNodeNameConfigApi(ele.wbsId)
|
|
|
+
|
|
|
+
|
|
|
+ ele.rule = returnData
|
|
|
+ let str = ''
|
|
|
+ if (ele.rule.length > 0) {
|
|
|
+ str = ele.rule.join('-')
|
|
|
+ }
|
|
|
+ ele.nodeName = await getRuleValue(ele.wbsId, str)
|
|
|
+
|
|
|
ruleTableData.value.push({
|
|
|
name:ele.name,
|
|
|
wbsId:ele.wbsId,
|
|
|
id:ele.id,
|
|
|
- rule:'',
|
|
|
- nodeName:'',
|
|
|
+ rule:ele.rule,
|
|
|
+ nodeName:ele.nodeName,
|
|
|
})
|
|
|
})
|
|
|
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
const ruleModal = ref(false)
|
|
|
const ruleModalSaveLoad = ref(false)
|
|
@@ -1181,6 +1184,7 @@ const ruleModalSave = async ()=>{
|
|
|
arr.push({
|
|
|
id:item.id,
|
|
|
nodeName:item.nodeName,
|
|
|
+ nodeRule:item.rule.join('-'),
|
|
|
})
|
|
|
})
|
|
|
|
|
@@ -1252,6 +1256,22 @@ const getRuleValue = async (wbsId, param) => {
|
|
|
}
|
|
|
|
|
|
}
|
|
|
+//获取节点命名配置
|
|
|
+
|
|
|
+const getNodeNameConfigApi = async (wbsId) => {
|
|
|
+
|
|
|
+ const { error, code, msg, data } = await divisionApi.getNodeNameConfig({
|
|
|
+ pKeyId:wbsId, projectId: projectId.value,
|
|
|
+ })
|
|
|
+ //处理数据
|
|
|
+ if (!error && code === 200) {
|
|
|
+ console.log(data, 'data')
|
|
|
+
|
|
|
+ return data || []
|
|
|
+ } else {
|
|
|
+ return []
|
|
|
+ }
|
|
|
+}
|
|
|
//获取节点类型
|
|
|
const nodeTypeData = ref([])
|
|
|
const getWbsNodeTypeApi = async () => {
|