|
@@ -31,7 +31,7 @@
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<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="rcid" :project-id="projectId" :type="type" :type-data="typeData"
|
|
ui="w-full" :classify-type="classifyType" :table-owner="tableOwner" :node-id="formModel.ids ? formModel.ids : nodeId "
|
|
ui="w-full" :classify-type="classifyType" :table-owner="tableOwner" :node-id="formModel.ids ? formModel.ids : nodeId "
|
|
:info-ids="infoIds" @change="diyProcessUserChange"
|
|
:info-ids="infoIds" @change="diyProcessUserChange"
|
|
/>
|
|
/>
|
|
@@ -86,6 +86,10 @@ const props = defineProps({
|
|
type: [String, Number],
|
|
type: [String, Number],
|
|
default: '',
|
|
default: '',
|
|
},
|
|
},
|
|
|
|
+ reportContractId: {
|
|
|
|
+ type: [String, Number],
|
|
|
|
+ default: '',
|
|
|
|
+ },
|
|
classifyType: {
|
|
classifyType: {
|
|
type: [String, Number],
|
|
type: [String, Number],
|
|
default: '',
|
|
default: '',
|
|
@@ -137,6 +141,7 @@ const emit = defineEmits(['hide', 'finish', 'tagClose'])
|
|
const isShow = ref(props.show)
|
|
const isShow = ref(props.show)
|
|
const projectId = ref(props.projectId)
|
|
const projectId = ref(props.projectId)
|
|
const contractId = ref(props.contractId)
|
|
const contractId = ref(props.contractId)
|
|
|
|
+const rcid = ref(props.reportContractId)
|
|
const classifyType = ref(props.classifyType)
|
|
const classifyType = ref(props.classifyType)
|
|
const tableOwner = ref(props.tableOwner)
|
|
const tableOwner = ref(props.tableOwner)
|
|
const ApiUrl = ref(props.url)
|
|
const ApiUrl = ref(props.url)
|
|
@@ -150,7 +155,7 @@ const formRef = ref(null)
|
|
const processData = ref([])
|
|
const processData = ref([])
|
|
const formModel = ref({
|
|
const formModel = ref({
|
|
projectId: projectId.value,
|
|
projectId: projectId.value,
|
|
- contractId: contractId.value,
|
|
|
|
|
|
+ contractId: rcid.value,
|
|
ids: props.ids,
|
|
ids: props.ids,
|
|
userTasks: null,
|
|
userTasks: null,
|
|
taskName: props.taskName,
|
|
taskName: props.taskName,
|
|
@@ -184,6 +189,7 @@ watch(() => [
|
|
props.show,
|
|
props.show,
|
|
props.projectId,
|
|
props.projectId,
|
|
props.contractId,
|
|
props.contractId,
|
|
|
|
+ props.reportContractId,
|
|
props.classifyType,
|
|
props.classifyType,
|
|
props.tableOwner,
|
|
props.tableOwner,
|
|
props.taskName,
|
|
props.taskName,
|
|
@@ -195,7 +201,7 @@ watch(() => [
|
|
props.datas,
|
|
props.datas,
|
|
props.trialSelfInspectionRecordId,
|
|
props.trialSelfInspectionRecordId,
|
|
props.nodeId,
|
|
props.nodeId,
|
|
-], ([val, pid, cid, cla, tab, name, ids, url, addition, type, typeData, datas, trialSelfInspectionRecordId, nodeid]) => {
|
|
|
|
|
|
+], ([val, pid, cid, rCid, 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
|
|
@@ -203,10 +209,11 @@ watch(() => [
|
|
tableOwner.value = tab
|
|
tableOwner.value = tab
|
|
ApiUrl.value = url
|
|
ApiUrl.value = url
|
|
nodeId.value = nodeid
|
|
nodeId.value = nodeid
|
|
|
|
+ rcid.value = rCid
|
|
//更新到表单数据
|
|
//更新到表单数据
|
|
formModel.value = {
|
|
formModel.value = {
|
|
projectId: pid,
|
|
projectId: pid,
|
|
- contractId: cid,
|
|
|
|
|
|
+ contractId: rCid,
|
|
ids: ids,
|
|
ids: ids,
|
|
taskName: name,
|
|
taskName: name,
|
|
taskContent: '',
|
|
taskContent: '',
|
|
@@ -260,7 +267,7 @@ const getProcessData = async (type, datas) => {
|
|
infoIds.value = arrToId(reportDatas.value)
|
|
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: rcid.value,
|
|
nodeId:nodeId.value,
|
|
nodeId:nodeId.value,
|
|
classifyType:classifyType.value,
|
|
classifyType:classifyType.value,
|
|
tableOwner:tableOwner.value,
|
|
tableOwner:tableOwner.value,
|
|
@@ -319,7 +326,7 @@ const queryFixedFlowApi3 = async (type, datas) => {
|
|
linkUserJoinString.value = ''
|
|
linkUserJoinString.value = ''
|
|
const { error, code, data, msg } = await queryFixedFlow3({
|
|
const { error, code, data, msg } = await queryFixedFlow3({
|
|
projectId: projectId.value,
|
|
projectId: projectId.value,
|
|
- contractId: contractId.value,
|
|
|
|
|
|
+ contractId: rcid.value,
|
|
...flowJson,
|
|
...flowJson,
|
|
// nodeId:formModel.value.ids,
|
|
// nodeId:formModel.value.ids,
|
|
classifyType:classifyType.value,
|
|
classifyType:classifyType.value,
|
|
@@ -381,7 +388,7 @@ const batchApprovalApi = async () => {
|
|
//发起请求
|
|
//发起请求
|
|
const { error, code, data } = await ApprovalApi(ApiUrl.value, {
|
|
const { error, code, data } = await ApprovalApi(ApiUrl.value, {
|
|
projectId: projectId.value,
|
|
projectId: projectId.value,
|
|
- contractId: contractId.value,
|
|
|
|
|
|
+ contractId: rcid.value,
|
|
...formModel.value,
|
|
...formModel.value,
|
|
})
|
|
})
|
|
linkUserJoinString.value = ''
|
|
linkUserJoinString.value = ''
|