| | |
| | | |
| | | <script setup lang="ts"> |
| | | import { FormRules } from '@nutui/nutui-taro/dist/types/__VUE/form/types'; |
| | | import * as cooperationApplyServices from '@12333/services/api/CooperationApply'; |
| | | // 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> |