|
@@ -26,6 +26,10 @@ const props = defineProps({
|
|
type: [String, Number],
|
|
type: [String, Number],
|
|
default: '',
|
|
default: '',
|
|
},
|
|
},
|
|
|
|
+ periodId: {
|
|
|
|
+ type: [String, Number],
|
|
|
|
+ default: '',
|
|
|
|
+ },
|
|
})
|
|
})
|
|
|
|
|
|
//事件
|
|
//事件
|
|
@@ -41,15 +45,18 @@ const isShow = defineModel('modelValue', {
|
|
const dataId = ref(props.ids)
|
|
const dataId = ref(props.ids)
|
|
const nodeId = ref(props.idn)
|
|
const nodeId = ref(props.idn)
|
|
const cid = ref(props.contractId)
|
|
const cid = ref(props.contractId)
|
|
|
|
+const contractPeriodId = ref(props.periodId)
|
|
|
|
|
|
watch(() => [
|
|
watch(() => [
|
|
props.ids,
|
|
props.ids,
|
|
props.idn,
|
|
props.idn,
|
|
|
|
+ props.periodId,
|
|
props.contractId,
|
|
props.contractId,
|
|
-], ([ids, idn, contractId]) => {
|
|
|
|
|
|
+], ([ids, idn, periodId, contractId]) => {
|
|
dataId.value = ids
|
|
dataId.value = ids
|
|
nodeId.value = idn
|
|
nodeId.value = idn
|
|
cid.value = contractId
|
|
cid.value = contractId
|
|
|
|
+ contractPeriodId.value = periodId
|
|
}, { immediate: true })
|
|
}, { immediate: true })
|
|
|
|
|
|
//监听
|
|
//监听
|
|
@@ -98,6 +105,7 @@ const modalSave = async () => {
|
|
}
|
|
}
|
|
const rowIds = arrToId(rows)
|
|
const rowIds = arrToId(rows)
|
|
const { data } = await mainApi.addResolveForm({
|
|
const { data } = await mainApi.addResolveForm({
|
|
|
|
+ contractPeriodId: contractPeriodId.value,
|
|
contractId: cid.value,
|
|
contractId: cid.value,
|
|
nodeId: nodeId.value,
|
|
nodeId: nodeId.value,
|
|
ids: rowIds,
|
|
ids: rowIds,
|