change(dms): 完善故障报修工单功能

master
zch 3 months ago
parent fc357315d5
commit f0580a1c30

@ -183,6 +183,7 @@
<pagination v-show="total > 0" :total="total" v-model:page="queryParams.pageNum" v-model:limit="queryParams.pageSize" @pagination="getList" /> <pagination v-show="total > 0" :total="total" v-model:page="queryParams.pageNum" v-model:limit="queryParams.pageSize" @pagination="getList" />
</el-card> </el-card>
<!-- 添加或修改故障报修工单对话框 --> <!-- 添加或修改故障报修工单对话框 -->
<el-dialog :title="dialog.title" v-model="dialog.visible" width="500px" append-to-body> <el-dialog :title="dialog.title" v-model="dialog.visible" width="500px" append-to-body>
<el-form ref="dmsBillsFaultInstanceFormRef" :model="form" :rules="rules" label-width="80px"> <el-form ref="dmsBillsFaultInstanceFormRef" :model="form" :rules="rules" label-width="80px">
@ -220,6 +221,14 @@
</el-form-item>--> </el-form-item>-->
<el-form-item label="设备" prop="machineId"> <el-form-item label="设备" prop="machineId">
<!-- <el-input v-model="form.machineId" placeholder="请输入设备" />--> <!-- <el-input v-model="form.machineId" placeholder="请输入设备" />-->
<el-select v-model="form.machineId" placeholder="请选择设备">
<el-option
v-for="item in deviceList"
:key="item.machineId"
:label="item.machineName"
:value="item.machineId"
></el-option>
</el-select>
</el-form-item> </el-form-item>
<el-form-item label="申请人" prop="applyUser"> <el-form-item label="申请人" prop="applyUser">
<el-input v-model="form.applyUser" placeholder="请输入申请人" /> <el-input v-model="form.applyUser" placeholder="请输入申请人" />
@ -308,6 +317,7 @@
<script setup name="DmsBillsFaultInstance" lang="ts"> <script setup name="DmsBillsFaultInstance" lang="ts">
import { listDmsBillsFaultInstance, getDmsBillsFaultInstance, delDmsBillsFaultInstance, addDmsBillsFaultInstance, updateDmsBillsFaultInstance } from '@/api/dms/dmsBillsFaultInstance'; import { listDmsBillsFaultInstance, getDmsBillsFaultInstance, delDmsBillsFaultInstance, addDmsBillsFaultInstance, updateDmsBillsFaultInstance } from '@/api/dms/dmsBillsFaultInstance';
import { DmsBillsFaultInstanceVO, DmsBillsFaultInstanceQuery, DmsBillsFaultInstanceForm } from '@/api/dms/dmsBillsFaultInstance/types'; import { DmsBillsFaultInstanceVO, DmsBillsFaultInstanceQuery, DmsBillsFaultInstanceForm } from '@/api/dms/dmsBillsFaultInstance/types';
import {getDmsBaseMachineInfoList} from "@/api/dms/dmsBaseMachineInfo";
const { proxy } = getCurrentInstance() as ComponentInternalInstance; const { proxy } = getCurrentInstance() as ComponentInternalInstance;
const { repair_confirm, active_flag, fault_source_type, bills_status, instance_type } = toRefs<any>(proxy?.useDict('repair_confirm', 'active_flag', 'fault_source_type', 'bills_status', 'instance_type')); const { repair_confirm, active_flag, fault_source_type, bills_status, instance_type } = toRefs<any>(proxy?.useDict('repair_confirm', 'active_flag', 'fault_source_type', 'bills_status', 'instance_type'));
@ -553,7 +563,16 @@ const handleExport = () => {
}, `dmsBillsFaultInstance_${new Date().getTime()}.xlsx`) }, `dmsBillsFaultInstance_${new Date().getTime()}.xlsx`)
} }
//
let deviceList = ([]);
const getDeviceList = async () => {
const res = await getDmsBaseMachineInfoList(null);
deviceList = res.data;
}
onMounted(() => { onMounted(() => {
getDeviceList();
getList(); getList();
}); });
</script> </script>

Loading…
Cancel
Save