|
@@ -86,6 +86,10 @@ const props = defineProps({
|
|
type: [String, Number],
|
|
type: [String, Number],
|
|
default: '',
|
|
default: '',
|
|
},
|
|
},
|
|
|
|
+ flowContractId: {
|
|
|
|
+ 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 flowContractId = ref(props.flowContractId)
|
|
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)
|
|
@@ -195,7 +200,8 @@ 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]) => {
|
|
|
|
|
|
+ props.flowContractId,
|
|
|
|
+], ([val, pid, cid, cla, tab, name, ids, url, addition, type, typeData, datas, trialSelfInspectionRecordId, nodeid, flowCid]) => {
|
|
isShow.value = val
|
|
isShow.value = val
|
|
projectId.value = pid
|
|
projectId.value = pid
|
|
contractId.value = cid
|
|
contractId.value = cid
|
|
@@ -219,6 +225,7 @@ watch(() => [
|
|
isTypes.value = type
|
|
isTypes.value = type
|
|
typeDatas.value = typeData
|
|
typeDatas.value = typeData
|
|
reportDatas.value = datas
|
|
reportDatas.value = datas
|
|
|
|
+ flowContractId.value = flowCid
|
|
if (val) {
|
|
if (val) {
|
|
getProcessDatasApi()
|
|
getProcessDatasApi()
|
|
}
|
|
}
|
|
@@ -260,13 +267,12 @@ 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: flowContractId.value ?? contractId.value,
|
|
nodeId:nodeId.value,
|
|
nodeId:nodeId.value,
|
|
classifyType:classifyType.value,
|
|
classifyType:classifyType.value,
|
|
tableOwner:tableOwner.value,
|
|
tableOwner:tableOwner.value,
|
|
infoIds:infoIds.value,
|
|
infoIds:infoIds.value,
|
|
...flowJson,
|
|
...flowJson,
|
|
-
|
|
|
|
})
|
|
})
|
|
if (!error && code === 200) {
|
|
if (!error && code === 200) {
|
|
const arr = getArrValue(data['records'])
|
|
const arr = getArrValue(data['records'])
|
|
@@ -290,7 +296,7 @@ const queryFixedFlowApi = async (type, datas) => {
|
|
linkUserJoinString.value = ''
|
|
linkUserJoinString.value = ''
|
|
const { error, code, data, msg } = await queryFixedFlow({
|
|
const { error, code, data, msg } = await queryFixedFlow({
|
|
projectId: projectId.value,
|
|
projectId: projectId.value,
|
|
- contractId: contractId.value,
|
|
|
|
|
|
+ contractId: flowContractId.value ?? contractId.value,
|
|
...flowJson,
|
|
...flowJson,
|
|
nodeId:formModel.value.ids,
|
|
nodeId:formModel.value.ids,
|
|
classifyType:classifyType.value,
|
|
classifyType:classifyType.value,
|