| | |
| | | </el-form-item> |
| | | </el-form> |
| | | <el-button @click="submitForm" type="primary" :disabled="formLoading">装机完成</el-button> |
| | | <el-button @click="dialogVisible = false">取 消</el-button> |
| | | <el-button @click="cancelInstall" type="primary" :disabled="formLoading">放弃装机</el-button> |
| | | <el-button @click="resetForm()">重 置</el-button> |
| | | |
| | | |
| | | <!-- 医生拆机列表 --> |
| | | <ContentWrap> |
| | | <el-table v-loading="loading" :data="list" :stripe="true" :show-overflow-tooltip="true" @current-change="onCurChange" > |
| | | <el-table-column label="id" align="center" prop="id" /> |
| | | <el-table-column label="--" align="center" prop="cancelled" > |
| | | <template #default="scope"> |
| | | {{scope.row.cancelled == 1 ? "放弃" : ""}} |
| | | </template> |
| | | </el-table-column> |
| | | <!-- <el-table-column label="作业类型" align="center" prop="jobType" />--> |
| | | <!-- <el-table-column label="医生编号" align="center" prop="docId" />--> |
| | | <el-table-column label="医生名称" align="center" width="auto" prop="docName" /> |
| | |
| | | :formatter="dateFormatter" |
| | | /> |
| | | --> |
| | | <!-- |
| | | <el-table-column label="操作" align="center" min-width="120px"> |
| | | <template #default="scope"> |
| | | <el-button |
| | |
| | | </el-button> |
| | | </template> |
| | | </el-table-column> |
| | | --> |
| | | </el-table> |
| | | <!-- 分页 --> |
| | | <Pagination |
| | |
| | | const formData = ref({ |
| | | id: undefined, |
| | | devId: undefined, |
| | | patId: patient.value.patId, |
| | | patName: patient.value.patName, |
| | | patId: patient.value?.patId, |
| | | patName: patient.value?.patName, |
| | | rentTime: new Date().getTime(), |
| | | returnTime: undefined, |
| | | interference: undefined, |
| | |
| | | } |
| | | } |
| | | |
| | | const cancelInstall = async () => { |
| | | const data = formData.value as unknown as DevRentVO |
| | | if (formData.value.id === null || formData.value.id === undefined) { |
| | | const result = await DevRentApi.devCancel(data) |
| | | formData.value.id = result |
| | | message.success(t('操作成功')) |
| | | } else { |
| | | await DevRentApi.devCancel(data) |
| | | message.success(t('操作成功')) |
| | | } |
| | | // 发送操作成功的事件 |
| | | emit('success') |
| | | resetForm() |
| | | getList() |
| | | } |
| | | |
| | | /** 重置表单 */ |
| | | const resetForm = () => { |
| | | formData.value = { |
| | | id: undefined, |
| | | devId: undefined, |
| | | patId: patient.value.patId, |
| | | patName: patient.value.patName, |
| | | patId: patient.value?.patId, |
| | | patName: patient.value?.patName, |
| | | rentTime: new Date().getTime(), |
| | | returnTime: undefined, |
| | | interference: undefined, |