|
@@ -34,7 +34,7 @@
|
|
<el-form-item v-if="diyProcessUser" label="任务人" prop="userTasks">
|
|
<el-form-item v-if="diyProcessUser" label="任务人" prop="userTasks">
|
|
<HcTasksUser
|
|
<HcTasksUser
|
|
:contract-id="contractId" :project-id="projectId" :type="type" :type-data="typeData"
|
|
:contract-id="contractId" :project-id="projectId" :type="type" :type-data="typeData"
|
|
- ui="w-full" :classify-type="classifyType" :table-owner="tableOwner" :node-id="formModel.ids" @change="diyProcessUserChange"
|
|
|
|
|
|
+ ui="w-full" :classify-type="classifyType" :table-owner="tableOwner" :node-id="formModel.ids ? formModel.ids : nodeId " :info-ids="infoIds" @change="diyProcessUserChange"
|
|
/>
|
|
/>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item v-else label="任务人">
|
|
<el-form-item v-else label="任务人">
|
|
@@ -66,7 +66,7 @@
|
|
import { onMounted, ref, watch } from 'vue'
|
|
import { onMounted, ref, watch } from 'vue'
|
|
import tasksFlowApi from '~api/tasks/flow'
|
|
import tasksFlowApi from '~api/tasks/flow'
|
|
import { ApprovalApi, queryFixedFlow, queryFixedFlow1 } from '~api/other'
|
|
import { ApprovalApi, queryFixedFlow, queryFixedFlow1 } from '~api/other'
|
|
-import { arrIndex, formValidate, getArrValue } from 'js-fast-way'
|
|
|
|
|
|
+import { arrIndex, arrToId, formValidate, getArrValue } from 'js-fast-way'
|
|
|
|
|
|
const props = defineProps({
|
|
const props = defineProps({
|
|
show: {
|
|
show: {
|
|
@@ -129,6 +129,11 @@ const props = defineProps({
|
|
type: [String, Number],
|
|
type: [String, Number],
|
|
default: '',
|
|
default: '',
|
|
},
|
|
},
|
|
|
|
+ nodeId:{
|
|
|
|
+ type: [String, Number],
|
|
|
|
+ default: '',
|
|
|
|
+ },
|
|
|
|
+
|
|
})
|
|
})
|
|
|
|
|
|
const emit = defineEmits(['hide', 'finish', 'tagClose'])
|
|
const emit = defineEmits(['hide', 'finish', 'tagClose'])
|
|
@@ -142,6 +147,7 @@ const ApiUrl = ref(props.url)
|
|
const isTypes = ref(props.type)
|
|
const isTypes = ref(props.type)
|
|
const typeDatas = ref(props.typeData)
|
|
const typeDatas = ref(props.typeData)
|
|
const reportDatas = ref(props.datas)
|
|
const reportDatas = ref(props.datas)
|
|
|
|
+const nodeId = ref(props.nodeId)
|
|
|
|
|
|
//表单
|
|
//表单
|
|
const formRef = ref(null)
|
|
const formRef = ref(null)
|
|
@@ -192,13 +198,15 @@ watch(() => [
|
|
props.typeData,
|
|
props.typeData,
|
|
props.datas,
|
|
props.datas,
|
|
props.trialSelfInspectionRecordId,
|
|
props.trialSelfInspectionRecordId,
|
|
-], ([val, pid, cid, cla, tab, name, ids, url, addition, type, typeData, datas, trialSelfInspectionRecordId]) => {
|
|
|
|
|
|
+ props.nodeId,
|
|
|
|
+], ([val, pid, cid, cla, tab, name, ids, url, addition, type, typeData, datas, trialSelfInspectionRecordId, nodeid]) => {
|
|
isShow.value = val
|
|
isShow.value = val
|
|
projectId.value = pid
|
|
projectId.value = pid
|
|
contractId.value = cid
|
|
contractId.value = cid
|
|
classifyType.value = cla
|
|
classifyType.value = cla
|
|
tableOwner.value = tab
|
|
tableOwner.value = tab
|
|
ApiUrl.value = url
|
|
ApiUrl.value = url
|
|
|
|
+ nodeId.value = nodeid
|
|
//更新到表单数据
|
|
//更新到表单数据
|
|
formModel.value = {
|
|
formModel.value = {
|
|
projectId: pid,
|
|
projectId: pid,
|
|
@@ -238,6 +246,7 @@ const getProcessDatasApi = () => {
|
|
}
|
|
}
|
|
|
|
|
|
//获取流程数据
|
|
//获取流程数据
|
|
|
|
+const infoIds = ref('')
|
|
const linkUserJoinString = ref('')
|
|
const linkUserJoinString = ref('')
|
|
const getProcessData = async (type, datas) => {
|
|
const getProcessData = async (type, datas) => {
|
|
linkUserJoinString.value = ''
|
|
linkUserJoinString.value = ''
|
|
@@ -249,12 +258,15 @@ const getProcessData = async (type, datas) => {
|
|
} else if (type === 'wbs' || type === 'query') {
|
|
} else if (type === 'wbs' || type === 'query') {
|
|
flowJson['privatePKeyId'] = datas
|
|
flowJson['privatePKeyId'] = datas
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ infoIds.value = arrToId(reportDatas.value)
|
|
const { error, code, data } = await queryFixedFlow1({
|
|
const { error, code, data } = await queryFixedFlow1({
|
|
projectId: projectId.value,
|
|
projectId: projectId.value,
|
|
contractId: contractId.value,
|
|
contractId: contractId.value,
|
|
- nodeId:formModel.value.ids,
|
|
|
|
|
|
+ nodeId:nodeId.value,
|
|
classifyType:classifyType.value,
|
|
classifyType:classifyType.value,
|
|
tableOwner:tableOwner.value,
|
|
tableOwner:tableOwner.value,
|
|
|
|
+ infoIds:infoIds.value,
|
|
...flowJson,
|
|
...flowJson,
|
|
|
|
|
|
})
|
|
})
|