瀏覽代碼

安全检查记录带出联系人

xzc 1 周之前
父節點
當前提交
77a1b28542

+ 13 - 0
yudao-ui-admin-vue3/src/views/pressure2/boilertaskorder/components/SavetyCheckRecordList.vue

@@ -155,6 +155,16 @@ const props = defineProps({
     type: String,
     default: ''
   },
+  unitContact: {
+    // 单位联系人
+    type: String,
+    default: ''
+  },
+  unitPhone: {
+    // 单位联系电话
+    type: String,
+    default: ''
+  },
 })
 
 const userStore = useUserStore()
@@ -487,6 +497,9 @@ const pushWX = async () => {
     return
   }
 
+  // 预填默认联系人
+  dialogFormData.value.serviceFormReceiver = props.unitContact || ''
+  dialogFormData.value.serviceFormReceiverPhone = props.unitPhone || ''
   dialogVisible.value = true
 
 }

+ 2 - 0
yudao-ui-admin-vue3/src/views/pressure2/boilertaskorder/components/TaskOrderDetailDialog.vue

@@ -845,6 +845,8 @@
     :checkId="savetyCheck.checkId"
     :orderId="savetyCheck.orderId"
     :editType="savetyCheck.editType"
+    :unitContact="taskOrderDetail.unitContact"
+    :unitPhone="taskOrderDetail.unitPhone"
     @success="handleUpdateSavetyCheckRecordList" />
 
   <CustomDialog

+ 13 - 0
yudao-ui-admin-vue3/src/views/pressure2/pipetaskorder/components/SavetyCheckRecordList.vue

@@ -157,6 +157,16 @@ const props = defineProps({
     type: String,
     default: ''
   },
+  unitContact: {
+    // 单位联系人
+    type: String,
+    default: ''
+  },
+  unitPhone: {
+    // 单位联系电话
+    type: String,
+    default: ''
+  },
 })
 
 const userStore = useUserStore()
@@ -480,6 +490,9 @@ const pushWX = async () => {
     return
   }
 
+  // 预填默认联系人
+  dialogFormData.value.serviceFormReceiver = props.unitContact || ''
+  dialogFormData.value.serviceFormReceiverPhone = props.unitPhone || ''
   dialogVisible.value = true
 
 }

+ 2 - 0
yudao-ui-admin-vue3/src/views/pressure2/pipetaskorder/components/TaskOrderDetailDialog.vue

@@ -835,6 +835,8 @@
     :checkId="savetyCheck.checkId"
     :orderId="savetyCheck.orderId"
     :editType="savetyCheck.editType"
+    :unitContact="taskOrderDetail.unitContact"
+    :unitPhone="taskOrderDetail.unitPhone"
     @success="handleUpdateSavetyCheckRecordList" />
 
   <CustomDialog