|  |  | 
 |  |  | <template> | 
 |  |  |   <PageLayout title="投诉举报" class="cooperation-page-wrapper" hasBorder :needAuth="false"> | 
 |  |  |   <PageLayout | 
 |  |  |     title="投诉举报" | 
 |  |  |     class="cooperation-page-wrapper" | 
 |  |  |     hasBorder | 
 |  |  |     :needAuth="false" | 
 |  |  |     developing | 
 |  |  |   > | 
 |  |  |     <ContentScrollView :paddingH="false"> | 
 |  |  |       <nut-form :model-value="form" ref="formRef" :rules="rules"> | 
 |  |  |         <nut-form-item label="企业名称:" class="bole-form-item" prop="companyName" required> | 
 |  |  | 
 |  |  |  | 
 |  |  | <script setup lang="ts"> | 
 |  |  | import { FormRules } from '@nutui/nutui-taro/dist/types/__VUE/form/types'; | 
 |  |  | import * as cooperationApplyServices from '@12333/services/api/CooperationApply'; | 
 |  |  | import { CooperateTypeText, CooperateApplyTypeEnum } from '@12333/constants'; | 
 |  |  | import { FormValidator, Message } from '@12333/utils'; | 
 |  |  | import Taro from '@tarojs/taro'; | 
 |  |  | 
 |  |  |  | 
 |  |  | async function createPlatformCooperationApply() { | 
 |  |  |   try { | 
 |  |  |     let params: API.CreatePlatformCooperationApplyInput = { | 
 |  |  |       title: CooperateTypeText.Complaint, | 
 |  |  |       contact: form.contact, | 
 |  |  |       contactPhone: form.contactPhone, | 
 |  |  |       applyDescription: form.remark, | 
 |  |  |       companyName: form.companyName, | 
 |  |  |       applyType: CooperateApplyTypeEnum.Complaint, | 
 |  |  |     }; | 
 |  |  |     let res = await cooperationApplyServices.createPlatformCooperationApply(params); | 
 |  |  |     if (res) { | 
 |  |  |       await Message.confirm({ | 
 |  |  |         message: '信息已提交,请耐心等待工作人员的联系', | 
 |  |  |       }); | 
 |  |  |       Taro.navigateBack({ | 
 |  |  |         delta: 1, | 
 |  |  |       }); | 
 |  |  |     } | 
 |  |  |     // let params: API.CreatePlatformCooperationApplyInput = { | 
 |  |  |     //   title: CooperateTypeText.Complaint, | 
 |  |  |     //   contact: form.contact, | 
 |  |  |     //   contactPhone: form.contactPhone, | 
 |  |  |     //   applyDescription: form.remark, | 
 |  |  |     //   companyName: form.companyName, | 
 |  |  |     //   applyType: CooperateApplyTypeEnum.Complaint, | 
 |  |  |     // }; | 
 |  |  |     // let res = await cooperationApplyServices.createPlatformCooperationApply(params); | 
 |  |  |     // if (res) { | 
 |  |  |     //   await Message.confirm({ | 
 |  |  |     //     message: '信息已提交,请耐心等待工作人员的联系', | 
 |  |  |     //   }); | 
 |  |  |     //   Taro.navigateBack({ | 
 |  |  |     //     delta: 1, | 
 |  |  |     //   }); | 
 |  |  |     // } | 
 |  |  |   } catch (error) {} | 
 |  |  | } | 
 |  |  | </script> |