|
@@ -93,6 +93,14 @@ const props = defineProps({
|
|
type: [String, Number],
|
|
type: [String, Number],
|
|
default: '',
|
|
default: '',
|
|
},
|
|
},
|
|
|
|
+ classifyType: {
|
|
|
|
+ type: [String, Number],
|
|
|
|
+ default: '',
|
|
|
|
+ },
|
|
|
|
+ tableOwner: {
|
|
|
|
+ type: [String, Number],
|
|
|
|
+ default: '',
|
|
|
|
+ },
|
|
url: {
|
|
url: {
|
|
type: [String, Number],
|
|
type: [String, Number],
|
|
default: '',
|
|
default: '',
|
|
@@ -128,6 +136,8 @@ 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 classifyType = ref(props.classifyType)
|
|
|
|
+const tableOwner = ref(props.tableOwner)
|
|
const ApiUrl = ref(props.url)
|
|
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)
|
|
@@ -172,6 +182,8 @@ watch(() => [
|
|
props.show,
|
|
props.show,
|
|
props.projectId,
|
|
props.projectId,
|
|
props.contractId,
|
|
props.contractId,
|
|
|
|
+ props.classifyType,
|
|
|
|
+ props.tableOwner,
|
|
props.taskName,
|
|
props.taskName,
|
|
props.ids,
|
|
props.ids,
|
|
props.url,
|
|
props.url,
|
|
@@ -180,10 +192,12 @@ watch(() => [
|
|
props.typeData,
|
|
props.typeData,
|
|
props.datas,
|
|
props.datas,
|
|
props.trialSelfInspectionRecordId,
|
|
props.trialSelfInspectionRecordId,
|
|
-], ([val, pid, cid, name, ids, url, addition, type, typeData, datas, trialSelfInspectionRecordId]) => {
|
|
|
|
|
|
+], ([val, pid, cid, cla, tab, name, ids, url, addition, type, typeData, datas, trialSelfInspectionRecordId]) => {
|
|
isShow.value = val
|
|
isShow.value = val
|
|
projectId.value = pid
|
|
projectId.value = pid
|
|
contractId.value = cid
|
|
contractId.value = cid
|
|
|
|
+ classifyType.value = cla
|
|
|
|
+ tableOwner.value = tab
|
|
ApiUrl.value = url
|
|
ApiUrl.value = url
|
|
//更新到表单数据
|
|
//更新到表单数据
|
|
formModel.value = {
|
|
formModel.value = {
|
|
@@ -238,6 +252,9 @@ const getProcessData = async (type, datas) => {
|
|
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,
|
|
|
|
+ classifyType:classifyType.value,
|
|
|
|
+ tableOwner:tableOwner.value,
|
|
...flowJson,
|
|
...flowJson,
|
|
|
|
|
|
})
|
|
})
|
|
@@ -266,6 +283,8 @@ const queryFixedFlowApi = async (type, datas) => {
|
|
contractId: contractId.value,
|
|
contractId: contractId.value,
|
|
...flowJson,
|
|
...flowJson,
|
|
nodeId:formModel.value.ids,
|
|
nodeId:formModel.value.ids,
|
|
|
|
+ classifyType:classifyType.value,
|
|
|
|
+ tableOwner:tableOwner.value,
|
|
})
|
|
})
|
|
if (!error && code === 200) {
|
|
if (!error && code === 200) {
|
|
const arr = getArrValue(data['records'])
|
|
const arr = getArrValue(data['records'])
|