Jelajahi Sumber

公式参数合同段Id修改

duy 5 bulan lalu
induk
melakukan
2755b68aa2
2 mengubah file dengan 19 tambahan dan 1 penghapusan
  1. 9 1
      src/views/data-fill/collapse-form/index.vue
  2. 10 0
      src/views/data-fill/wbs.vue

+ 9 - 1
src/views/data-fill/collapse-form/index.vue

@@ -485,7 +485,7 @@
             v-if="formulaModal"
             ref="formulaRefs"
             :key-name="tableFormItemNode.KeyName"
-            :contract-id="contract_id"
+            :contract-id="contractInfo"
             :formparent-id="formparentId"
             :pkey-id="tableFormItemNode.pkeyId"
             :project-id="projectId"
@@ -700,6 +700,10 @@ const props = defineProps({
         type: [Array],
         default: () => [],
     },
+    contractInfo:{
+        type: [String, Number],
+        default: '',
+    },
 })
 
 //事件
@@ -723,6 +727,7 @@ const tree_AutoExpandKeys = ref(props.treeAutoExpandKeys)
 const treenodeDataInfo = ref(props.treenodeDataInfo)
 const newlistdata = ref(props.newlistdata)
 const isEnableBulk = ref(true)
+const contractInfo = ref(props.contractInfo)
 
 //表单变量
 const formDataList = ref([])
@@ -792,6 +797,7 @@ watch(
         props.primaryKeyId,
         props.newlistdata,
         props.treenodeDataInfo,
+        props.contractInfo,
     ],
     ([
         pid,
@@ -804,6 +810,7 @@ watch(
         tree_id,
         Newlistdata,
         TreenodeDataInfo,
+        cinfo,
     ]) => {
         projectId.value = pid
         contract_id.value = cid
@@ -815,6 +822,7 @@ watch(
         treeId.value = tree_id
         newlistdata.value = Newlistdata
         treenodeDataInfo.value = TreenodeDataInfo
+        contractInfo.value = cinfo
     },
 )
 

+ 10 - 0
src/views/data-fill/wbs.vue

@@ -297,6 +297,11 @@
                     >
                         <CollapseForm
                             ref="ListItemRef"
+                            :contract-info="
+                                contractInfo?.contractType === 2
+                                    ? nodeDataInfo?.contractIdRelation
+                                    : contractId
+                            "
                             :tree-auto-expand-keys="TreeAutoExpandKeys"
                             :classify="authBtnTabKey"
                             :contract-id="contractId"
@@ -385,6 +390,11 @@
                 >
                     <CollapseForm
                         ref="ListItemsRef"
+                        :contract-info="
+                            contractInfo?.contractType === 2
+                                ? nodeDataInfo?.contractIdRelation
+                                : contractId
+                        "
                         :classify="authBtnTabKey"
                         :contract-id="contractId"
                         :datas="ListItemDatas"