|
|
@@ -37,6 +37,10 @@
|
|
|
onChange: onSelectChange,
|
|
|
}" class="j-table-force-nowrap" @change="handleTableChange">
|
|
|
|
|
|
+ <template slot="status" slot-scope="text, record">
|
|
|
+ {{ record.status == 1 ? '正在进行' : '已完成维修' }}
|
|
|
+ </template>
|
|
|
+
|
|
|
<template slot="layoutId" slot-scope="text, record">
|
|
|
{{ getLayoutName(record) }}
|
|
|
</template>
|
|
|
@@ -80,6 +84,7 @@ import {
|
|
|
delBatch,
|
|
|
delAll
|
|
|
} from '@/api/roomBuildingApi'
|
|
|
+import { HousekeepingApi } from '@/api/fwApi.js'
|
|
|
let hotelInfo = JSON.parse(localStorage.getItem("storeInfo"));
|
|
|
export default {
|
|
|
mixins: [JeecgListMixin],
|
|
|
@@ -110,43 +115,38 @@ export default {
|
|
|
columns: [{
|
|
|
title: "房间号",
|
|
|
align: "center",
|
|
|
- dataIndex: "hotelName",
|
|
|
+ dataIndex: "roomNo",
|
|
|
},
|
|
|
{
|
|
|
title: "开始时间",
|
|
|
// align: "center",
|
|
|
- dataIndex: "buildName",
|
|
|
+ dataIndex: "startDate",
|
|
|
},
|
|
|
{
|
|
|
title: "结束时间",
|
|
|
// align: "center",
|
|
|
- dataIndex: "floorName",
|
|
|
+ dataIndex: "endDate",
|
|
|
},
|
|
|
{
|
|
|
title: "维修状态",
|
|
|
align: "center",
|
|
|
- dataIndex: "layoutId",
|
|
|
+ dataIndex: "status",
|
|
|
scopedSlots: {
|
|
|
- customRender: "layoutId"
|
|
|
+ customRender: "status"
|
|
|
},
|
|
|
},
|
|
|
{
|
|
|
title: "维修原因",
|
|
|
align: "center",
|
|
|
- dataIndex: "name",
|
|
|
- scopedSlots: {
|
|
|
- customRender: "prefix_name"
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- title: "维修结果",
|
|
|
- align: "center",
|
|
|
- dataIndex: "createAt",
|
|
|
+ dataIndex: "remark",
|
|
|
+ // scopedSlots: {
|
|
|
+ // customRender: "prefix_name"
|
|
|
+ // },
|
|
|
}
|
|
|
],
|
|
|
url: {
|
|
|
// list: 'org.jeecg.modules.business/busMarketMember/list',
|
|
|
- list: "/rooms/cesRooms/list",
|
|
|
+ list: "/fw/fwRoomRepair/list",
|
|
|
delete: "/rooms/cesRooms/remove",
|
|
|
deleteBatch: "/rooms/cesRooms/deleteBatch",
|
|
|
exportXlsUrl: "/rooms/cesRooms/exportXls",
|
|
|
@@ -172,6 +172,10 @@ export default {
|
|
|
this.loadData();
|
|
|
}
|
|
|
});
|
|
|
+ // HousekeepingApi.getAllData().then(res=>{
|
|
|
+ // debugger
|
|
|
+ // console.log(res);
|
|
|
+ // })
|
|
|
},
|
|
|
methods: {
|
|
|
onImgSave() {
|