浏览代码

上报流程合同段id修改

duy 4 月之前
父节点
当前提交
88b24827c9
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 4 2
      src/global/components/hc-report-modal/index.vue

+ 4 - 2
src/global/components/hc-report-modal/index.vue

@@ -60,7 +60,8 @@ import { onMounted, ref, watch } from 'vue'
 //import tasksFlowApi from '~api/tasks/flow'
 import { ApprovalApi, queryFixedFlow, queryFixedFlow1, queryFixedFlow3 } from '~api/other'
 import { arrIndex, arrToId, formValidate, getArrValue, isNullES } from 'js-fast-way'
-
+import { useAppStore } from '~src/store'
+const useAppState = useAppStore()
 const props = defineProps({
     show: {
         type: Boolean,
@@ -153,6 +154,7 @@ const dataInfo = ref({
     projectId:props.projectId,
     contractId:props.contractId,
 })
+const contractId1 = ref(useAppState.contractId)
 //表单
 const formRef = ref(null)
 const processData = ref([])
@@ -308,7 +310,7 @@ const queryFixedFlowApi = async (type, datas) => {
     const { error, code, data, msg } = await queryFixedFlow({
         projectId: projectId.value,
         // contractId: cid,
-        contractId: contractId.value,
+        contractId: contractId1.value,
         contractIdRelation:flowContractId.value,
         ...flowJson,
         nodeId:formModel.value.ids,