xuzhancheng 1 nedēļu atpakaļ
vecāks
revīzija
7a39315470

+ 1 - 1
yudao-ui-admin-vue3/src/api/pressure2/boilertaskorder/index.ts

@@ -746,6 +746,6 @@ export const BoilerTaskOrderApi = {
   },
 
   inspectionServicePush: async (data: any) => {
-    return await request.post({ url: `/pressure/task-order/service-from/push`, data })
+    return await request.post({ url: `/pressure2/boiler-task-order-sign-file/create`, data })
   },
 }

+ 3 - 1
yudao-ui-admin-vue3/src/api/pressure2/pipetaskorder/index.ts

@@ -726,5 +726,7 @@ export const PipeTaskOrderApi = {
     return await request.get({ url: '/pressure2/pipe-task-order-item-report/updateReportBySummaryId', params: { summaryId } })
   },
 
-
+  inspectionServicePush: async (data: any) => {
+    return await request.post({ url: `/pressure2/boiler-task-order-sign-file/create`, data })
+  },
 }

+ 2 - 1
yudao-ui-admin-vue3/src/views/pressure2/boilertaskorder/components/OrderDialog.vue

@@ -115,7 +115,8 @@ const handlePushConfirm = async () => {
   try {
     if (pushFormType.value === 'wx') {
       await BoilerTaskOrderApi.inspectionServicePush({
-        id: props.orderId,
+        equipMainType: props.type === 'pipe' ? "300" : "200",
+        orderId: props.orderId,
         receiver: pushDialogFormData.value.serviceFormReceiver,
         receiverPhone: pushDialogFormData.value.serviceFormReceiverPhone,
         businessType: 100

+ 2 - 1
yudao-ui-admin-vue3/src/views/pressure2/boilertaskorder/components/SavetyCheckRecordList.vue

@@ -243,10 +243,11 @@ const handleClose = () => {
 const handleWxPush = () => {
   const { serviceFormReceiver, serviceFormReceiverPhone } = dialogFormData.value
   const params: Record<string, any> = {
-    id: props.orderId,
+    orderId: props.orderId,
     receiver: serviceFormReceiver,
     receiverPhone: serviceFormReceiverPhone,
     businessType: 300,
+    equipMainType: 200,
     securityCheckId: unref(curCheckId)
   }
   // 提交表单数据

+ 4 - 3
yudao-ui-admin-vue3/src/views/pressure2/boilertaskorder/components/ServiceRecordList.vue

@@ -482,10 +482,11 @@ const handleWxPush = () => {
   const { serviceFormReceiver, serviceFormReceiverPhone } = serviceOrderDialogFormData.value
   // 邮箱推送
   const params: Record<string, any> = {
-    id: props.taskOrderDetail.id,
+    orderId: props.taskOrderDetail.id,
     receiver: serviceFormReceiver,
     receiverPhone: serviceFormReceiverPhone,
-    businessType: props.businessType
+    businessType: props.businessType == 1000 ? 200 : props.businessType,
+    equipMainType: 200
   }
   if (props.businessType === 400) {
     params.orderItemId = props.orderItemId
@@ -503,7 +504,7 @@ const handleEmailPush = () => {
   // 邮箱推送
   const params: Record<string, any> = {
     id: props.taskOrderDetail.id,
-    businessType: props.businessType,
+    businessType: props.businessType == 1000 ? 200 : props.businessType,
     email: serviceFormReceiverEmail
   }
   if (props.businessType === 400) {

+ 2 - 1
yudao-ui-admin-vue3/src/views/pressure2/pipetaskorder/components/SavetyCheckRecordList.vue

@@ -235,10 +235,11 @@ const handleClose = () => {
 const handleWxPush = () => {
   const { serviceFormReceiver, serviceFormReceiverPhone } = dialogFormData.value
   const params: Record<string, any> = {
-    id: props.orderId,
+    orderId: props.orderId,
     receiver: serviceFormReceiver,
     receiverPhone: serviceFormReceiverPhone,
     businessType: 300,
+    equipMainType: 300,
     securityCheckId: unref(curCheckId)
   }
   // 提交表单数据

+ 4 - 3
yudao-ui-admin-vue3/src/views/pressure2/pipetaskorder/components/ServiceRecordList.vue

@@ -473,10 +473,11 @@ const handleWxPush = () => {
   const { serviceFormReceiver, serviceFormReceiverPhone } = serviceOrderDialogFormData.value
   // 邮箱推送
   const params: Record<string, any> = {
-    id: props.taskOrderDetail.id,
+    orderId: props.taskOrderDetail.id,
     receiver: serviceFormReceiver,
     receiverPhone: serviceFormReceiverPhone,
-    businessType: props.businessType
+    businessType: props.businessType == 1000 ? 200 : props.businessType,
+    equipMainType: 300
   }
   // 提交表单数据
   PipeTaskOrderApi.inspectionServicePush(params).then(() => {
@@ -491,7 +492,7 @@ const handleEmailPush = () => {
   // 邮箱推送
   const params: Record<string, any> = {
     id: props.taskOrderDetail.id,
-    businessType: props.businessType,
+    businessType: props.businessType == 1000 ? 200 : props.businessType,
     email: serviceFormReceiverEmail
   }
   // 提交表单数据