修改对应bug

This commit is contained in:
chenze 2024-08-30 19:50:35 +08:00
parent 953b148da4
commit bb5dd5f4e3
5 changed files with 12 additions and 17 deletions

View File

@ -30,7 +30,7 @@
</a-col> </a-col>
<a-col :md="7" :sm="15"> <a-col :md="7" :sm="15">
<a-form-item label="报修来源"> <a-form-item label="报修来源">
<a-select v-model="queryParam.remark" <a-select v-model="queryParam.remark" :allowClear="true"
v-decorator="['remark']"> v-decorator="['remark']">
<a-select-option v-for="item in remarkOption" :key="item.value"> <a-select-option v-for="item in remarkOption" :key="item.value">
{{ item.label }} {{ item.label }}
@ -40,7 +40,7 @@
</a-col> </a-col>
<a-col :md="7" :sm="15"> <a-col :md="7" :sm="15">
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="工单状态"> <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="工单状态">
<a-select v-model="queryParam.type" <a-select v-model="queryParam.type" :allowClear="true"
v-decorator="['status']"> v-decorator="['status']">
<a-select-option v-for="item in options" :key="item.value"> <a-select-option v-for="item in options" :key="item.value">
{{ item.label }} {{ item.label }}
@ -433,6 +433,7 @@ export default {
'type': type, 'type': type,
'repair': { 'repair': {
'explain': this.queryParam.explain, 'explain': this.queryParam.explain,
'sn': this.queryParam.sn,
'typeId': this.queryParam.typeId, 'typeId': this.queryParam.typeId,
'deviceId': this.queryParam.deviceId, 'deviceId': this.queryParam.deviceId,
'status': this.queryParam.status, 'status': this.queryParam.status,

View File

@ -226,9 +226,8 @@ export default {
}, },
getDeviceName (deviceId) { getDeviceName (deviceId) {
let device = this.deviceList.find(item => item.id == deviceId) let device = this.deviceList.find(item => item.id == deviceId)
console.log(device) this.deviceName = device.name
this.deviceName = device.label this.deviceId = device.id
this.deviceId = device.key
}, },
selectFailureType () { selectFailureType () {
getRepairFailureTypeList().then(res => { getRepairFailureTypeList().then(res => {
@ -247,14 +246,14 @@ export default {
getRepairRoomList({ 'addressId': roomId }).then(res => { getRepairRoomList({ 'addressId': roomId }).then(res => {
this.roomList = res.rows this.roomList = res.rows
}) })
this.address = room.label this.address = room.name
this.addressId = room.key this.addressId = room.id
}, },
selectFloorName (floorId) { selectFloorName (floorId) {
let floor = this.roomList.find(item => item.id == floorId) let floor = this.roomList.find(item => item.id == floorId)
this.floor = floor.label this.floor = floor.name
this.floorId = floor.key this.floorId = floor.id
}, },
async handlePreview (file) { async handlePreview (file) {

View File

@ -3,11 +3,6 @@
<div class="table-page-search-wrapper"> <div class="table-page-search-wrapper">
<a-form layout="inline"> <a-form layout="inline">
<a-row :gutter="48"> <a-row :gutter="48">
<a-col :md="5" :sm="15">
<a-form-item label="报修单号">
<a-input placeholder="请输入报修单号" v-model="queryParam.sn" />
</a-form-item>
</a-col>
<a-col :md="7" :sm="15"> <a-col :md="7" :sm="15">
<a-form-item label="时间范围"> <a-form-item label="时间范围">
<a-range-picker v-model="timeRange" @change="selectTime" /> <a-range-picker v-model="timeRange" @change="selectTime" />

View File

@ -4,7 +4,7 @@
<a-form layout="inline"> <a-form layout="inline">
<a-row :gutter="48"> <a-row :gutter="48">
<a-col :md="5" :sm="15"> <a-col :md="5" :sm="15">
<a-form-item label="设备类别"> <a-form-item label="故障类型">
<a-input placeholder="请输入名称" v-model="queryParam.name" /> <a-input placeholder="请输入名称" v-model="queryParam.name" />
</a-form-item> </a-form-item>
</a-col> </a-col>
@ -81,7 +81,7 @@ export default {
// //
columns: [ columns: [
{ {
title: '设备类别', title: '故障类型',
dataIndex: 'name' dataIndex: 'name'
}, },
{ {

View File

@ -226,7 +226,7 @@ export default {
// //
columns: [ columns: [
{ {
title: '类型', title: '故障类型',
dataIndex: 'typename' dataIndex: 'typename'
}, },
{ {