| | |
| | | <el-radio :value="3">不通过</el-radio> |
| | | </el-radio-group> |
| | | </el-form-item> |
| | | <el-form-item label="监督人" prop="supervisoryName"> |
| | | <el-input v-model="form.supervisoryName" placeholder="请输入监督人" clearable style="width: 100%" /> |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | | </FormDialog> |
| | |
| | | const formRef = ref(); |
| | | const form = ref({ |
| | | decision: undefined, // 0 通过 3 不通过 |
| | | supervisoryName: undefined, // 监督人 |
| | | }); |
| | | |
| | | const rules = { |
| | | decision: [{ required: true, message: "请选择审批结果", trigger: "change" }], |
| | | supervisoryName: [{ required: true, message: "请选择监督人", trigger: "change" }], |
| | | }; |
| | | |
| | | const statusText = (status) => { |
| | |
| | | await nextTick(); |
| | | await loadDetail(repairId); |
| | | form.value.decision = undefined; |
| | | form.value.supervisoryName = undefined; |
| | | }; |
| | | |
| | | const handleClose = () => { |
| | |
| | | id.value = undefined; |
| | | detail.value = {}; |
| | | form.value.decision = undefined; |
| | | form.value.supervisoryName = undefined; |
| | | }; |
| | | |
| | | const updateStatus = async (status) => { |
| | | loading.value = true; |
| | | try { |
| | | const { code } = await editRepair({ id: id.value, status }); |
| | | const { code } = await editRepair({ id: id.value, status, supervisoryName: form.value.supervisoryName }); |
| | | if (code === 200) { |
| | | ElMessage.success("审批成功"); |
| | | emits("ok"); |
| | |
| | | prop: "maintenanceTime", |
| | | formatData: (cell) => (cell ? dayjs(cell).format("YYYY-MM-DD") : ""), |
| | | }, |
| | | { prop: "auditName", label: "审核人", width: 120 }, |
| | | { prop: "supervisoryName", label: "监督人", width: 120 }, |
| | | { |
| | | label: "状态", |
| | | align: "center", |
| | |
| | | <el-radio label="审核不通过">审核不通过</el-radio> |
| | | </el-radio-group> |
| | | </el-form-item> |
| | | <el-form-item label="监督人" prop="supervisoryName"> |
| | | <el-input v-model="form.supervisoryName" placeholder="请输入监督人" clearable style="width: 100%" /> |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | | </FormDialog> |
| | |
| | | const formRef = ref(); |
| | | const form = ref({ |
| | | decision: undefined, // 审核通过 / 审核不通过 |
| | | supervisoryName: undefined, // 监督人 |
| | | }); |
| | | |
| | | const rules = { |
| | | decision: [{ required: true, message: "请选择审批结果", trigger: "change" }], |
| | | supervisoryName: [{ required: true, message: "请选择监督人", trigger: "change" }], |
| | | }; |
| | | |
| | | const statusText = (status) => status || "-"; |
| | |
| | | visible.value = true; |
| | | await nextTick(); |
| | | form.value.decision = undefined; |
| | | form.value.supervisoryName = undefined; |
| | | }; |
| | | |
| | | const handleClose = () => { |
| | | visible.value = false; |
| | | detail.value = {}; |
| | | form.value.decision = undefined; |
| | | form.value.supervisoryName = undefined; |
| | | }; |
| | | |
| | | const updateStatus = async (status) => { |
| | | loading.value = true; |
| | | try { |
| | | const payload = { ...(detail.value || {}), status }; |
| | | const payload = { ...(detail.value || {}), status, supervisoryName: form.value.supervisoryName }; |
| | | const { code } = await deviceMaintenanceTaskEdit(payload); |
| | | if (code === 200) { |
| | | ElMessage.success("审批成功"); |
| | |
| | | }, |
| | | { prop: "registrant", label: "登记人", minWidth: 100 }, |
| | | { prop: "registrationDate", label: "登记日期", minWidth: 100 }, |
| | | { prop: "auditName", label: "审核人", width: 120 }, |
| | | { prop: "supervisoryName", label: "监督人", width: 120 }, |
| | | { |
| | | label: "状态", |
| | | align: "center", |