|  |  |  | 
|---|
|  |  |  | <template> | 
|---|
|  |  |  | <ProDialog title="短信发送" v-model="visible" @close="onDialogClose" destroy-on-close draggable> | 
|---|
|  |  |  | <ProForm :model="form" ref="dialogForm" label-width="90px"> | 
|---|
|  |  |  | <ProForm :model="form" ref="dialogForm" label-width="100px"> | 
|---|
|  |  |  | <ProFormItemV2 | 
|---|
|  |  |  | label="请选择模板:" | 
|---|
|  |  |  | prop="contractTemplateId" | 
|---|
|  |  |  | :check-rules="[{ message: '请选择模板' }]" | 
|---|
|  |  |  | > | 
|---|
|  |  |  | <ProFormSelect | 
|---|
|  |  |  | v-model="form.contractTemplateId" | 
|---|
|  |  |  | :valueEnum="enterpriseContractTemplateSelect" | 
|---|
|  |  |  | > | 
|---|
|  |  |  | </ProFormSelect> | 
|---|
|  |  |  | </ProFormItemV2> | 
|---|
|  |  |  | <ProFormItemV2 label="短信类型:" prop="name" required> | 
|---|
|  |  |  | <div>{{ '人员签约通道短信' }}</div> | 
|---|
|  |  |  | </ProFormItemV2> | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <script setup lang="ts"> | 
|---|
|  |  |  | import { FormInstance } from 'element-plus'; | 
|---|
|  |  |  | import { ProDialog, ProForm, ProFormItemV2 } from '@bole-core/components'; | 
|---|
|  |  |  | import { ProDialog, ProForm, ProFormItemV2, ProFormSelect } from '@bole-core/components'; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | defineOptions({ | 
|---|
|  |  |  | name: 'SendShotMessageDialog', | 
|---|
|  |  |  | 
|---|
|  |  |  | ids: string[]; | 
|---|
|  |  |  | customerId: string; | 
|---|
|  |  |  | name: string; | 
|---|
|  |  |  | contractTemplateId: string; | 
|---|
|  |  |  | }; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | const form = defineModel<Form>('form'); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | const { enterpriseContractTemplateSelect } = useEnterpriseContractTemplateSelect(); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | const emit = defineEmits<{ | 
|---|
|  |  |  | (e: 'onConfirm'): void; | 
|---|
|  |  |  | (e: 'onCancel'): void; | 
|---|