| | |
| | | </ProForm> |
| | | <div |
| | | class="chuck-add-or-edit-actions" |
| | | v-if="form.appointmentStatus === EnumStandardOrderAppointmentStatus.WaitSure" |
| | | v-if=" |
| | | form.appointmentStatus === EnumStandardOrderAppointmentStatus.WaitSure && |
| | | type === 'confirm' |
| | | " |
| | | > |
| | | <el-button class="chuck-add-or-edit-actions" @click="cancelStandardOrderAppointment" |
| | | >取消预约</el-button |
| | |
| | | |
| | | const route = useRoute(); |
| | | const id = (route.params.id as string) ?? ''; |
| | | const type = (route.query.type as string) ?? ''; |
| | | const { closeViewPush } = useRouteView(); |
| | | |
| | | const form = reactive({ |
| | |
| | | queryKey: ['standardOrderServices/getStandardOrder', id], |
| | | queryFn: async () => { |
| | | return await standardOrderServices.getStandardOrder( |
| | | { id: id }, |
| | | { id: id, scene: EnumGetStandardOrdersQueryScene.SupplierEnterpriseOrder }, |
| | | { |
| | | showLoading: false, |
| | | } |
| | |
| | | form.serviceCode = data.serviceCode; |
| | | form.createdUserName = data.createdUserName; |
| | | form.time = [data.beginTime, data.endTime]; |
| | | form.address = `${data.provinceContent}${data.cityContent}${data.addressName}${data.addressName}${data.addressDetail}\t${data.name}\t${data.contactPhoneNumber}`; |
| | | form.address = `${data.addressDetail}\t${data.createdUserName}\t${data.contactPhoneNumber}`; |
| | | form.serviceName = data.serviceName; |
| | | form.supplierEnterpriseName = data.supplierEnterpriseName; |
| | | form.servers = data.servers?.length ? data.servers.map((x) => x.name).join(',') : ''; |