Jelajahi Sumber

基本信息保存修改

duy 3 bulan lalu
induk
melakukan
8160ef0a19

+ 10 - 1
src/views/tentative/detect/components/basicInfo.vue

@@ -241,6 +241,10 @@ const props = defineProps({
         default: '', //委托单id
 
     },
+    type:{
+        type: [String, Number],
+        default: '',
+    },
 })
 const emit = defineEmits(['change'])
 
@@ -254,6 +258,7 @@ const dataId = ref(props.dataId)
 const projectId = ref(props.projectId)
 const contractId = ref(props.contractId)
 const ids = ref(props.ids)
+const type = ref(props.type)
 
 const handleRefresh = () => {
      getInfoData()
@@ -296,14 +301,17 @@ watch(() => [
     props.projectId,
     props.contractId,
     props.ids,
+    props.type,
     
    
-], ([did, nid, pid, cid, id]) => {
+], ([did, nid, pid, cid, id, tpe]) => {
     dataId.value = did
     nodeId.value = nid
     projectId.value = pid
     contractId.value = cid
     ids.value = id
+    type.value = tpe
+
 
 
 
@@ -547,6 +555,7 @@ const handleSave = async () => {
     basicInfoData.value.standardInfoIds = standardInfoIds
     basicInfoData.value.oldRecordNumber = oldRecordNumber.value
     basicInfoData.value.oldReportNumber = oldReportNumber.value
+    basicInfoData.value.type = type.value
 
     // emit('change', basicInfoData.value)
     handleSaveLoad.value = true

+ 1 - 0
src/views/tentative/detect/test-form.vue

@@ -205,6 +205,7 @@
         <LinkAssociation v-model="isLinksAssociation" :ids="listItemBaseData.commissionId" :cid="contractId" @change="commissionChange" @close="isLinksAssociation = false" />
         <basicInfo 
             v-model="isShowBasic" 
+            :type="authBtnTabKey" 
             :node-id="nodeId" 
             :data-id="dataId.length > 0 ? dataId : nodeIdvalue" 
             :project-id="projectId"