rk
2025-09-24 f3c59a17062fb0a89b5f89b7845341386952a6b1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<template>
  <TableLayout :permissions="['business:platformgroup:query']">
    <!-- 表格和分页 -->
    <template v-slot:table-wrap>
      <ul class="toolbar" v-permissions="['business:platformgroup:create','business:platformgroup:delete']">
        <li><el-button type="primary" @click="$refs.operaPlatformGroupWindow.open('新建月台分组')" icon="el-icon-plus" v-permissions="['business:platformgroup:create']">新建</el-button></li>
        <li><el-button @click="deleteByIdInBatch" icon="el-icon-delete" v-permissions="['business:platformgroup:delete']">删除</el-button></li>
      </ul>
      <el-table
          :height="tableHeightNew"
        v-loading="isWorking.search"
        :data="tableData.list"
        stripe
        @selection-change="handleSelectionChange"
      >
        <el-table-column type="selection" width="55"></el-table-column>
        <el-table-column prop="name" label="月台组名称" fixed min-width="150px" align="center"></el-table-column>
        <el-table-column prop="startTime" label="工作时间" min-width="100px"  align="center">
          <template scope="{row}">
            {{row.startTime || ' '}} - {{row.endTime || ' '}}
          </template>
        </el-table-column>
        <el-table-column prop="type" label="业务类型"  align="center" min-width="100px">
          <template scope="{row}">
            <span v-if="row.type == 0">安泰物流卸货</span>
            <span v-if="row.type == 1">安泰物流装货</span>
            <span v-if="row.type == 2">市公司卸货</span>
          </template>
        </el-table-column>
        <el-table-column prop="waitCallTime" label="叫号等待时间(分钟)" min-width="140px"  align="center"></el-table-column>
        <el-table-column prop="signInNoticeUserNames" label="签到通知人员" min-width="200px"  align="center"></el-table-column>
        <el-table-column prop="unFinishNoticeUserNames" label="未完成作业通知人员" min-width="200px"  align="center"></el-table-column>
        <el-table-column prop="waitCallTime" label="自动叫号时间" min-width="140px"  align="center">
          <template scope="{row}">
            {{row.autoCallStartTime || ' '}} - {{row.autoCallEndTime || ' '}}
          </template>
        </el-table-column>
        <el-table-column prop="type" label="虚拟月台组"  align="center" min-width="100px">
          <template scope="{row}">
            <span v-if="row.isVirtual == 1" class="red">是</span>
            <span v-else class="green">否</span>
          </template>
        </el-table-column>
        <el-table-column label="是否自动叫号"  width="100px" fixed="right" align="center">
          <template slot-scope="{row}">
            <el-switch @change="changeAutoCall($event, row)" v-model="row.autoCall" active-color="#13ce66"
                       inactive-color="#ff4949" :active-value="1" :inactive-value="0"  >
            </el-switch>
          </template>
        </el-table-column>
        <el-table-column prop="editDate" label="最近更新时间" min-width="150px"  align="center"></el-table-column>
        <el-table-column
          v-if="containPermissions(['business:platformgroup:update', 'business:platformgroup:delete'])"
          label="操作"
          min-width="120"
          align="center"
          fixed="right"
        >
          <template slot-scope="{row}">
            <el-button type="text" @click="$refs.operaPlatformGroupWindow.open('编辑月台分组', row)" icon="el-icon-edit" v-permissions="['business:platformgroup:update']">编辑</el-button>
            <el-button type="text" @click="deleteById(row)" icon="el-icon-delete" v-permissions="['business:platformgroup:delete']">删除</el-button>
          </template>
        </el-table-column>
      </el-table>
      <pagination
        @size-change="handleSizeChange"
        @current-change="handlePageChange"
        :pagination="tableData.pagination"
      >
      </pagination>
    </template>
    <!-- 新建/修改 -->
    <OperaPlatformGroupWindow ref="operaPlatformGroupWindow" @success="handlePageChange"/>
  </TableLayout>
</template>
 
<script>
import BaseTable from '@/components/base/BaseTable'
import TableLayout from '@/layouts/TableLayout'
import Pagination from '@/components/common/Pagination'
import OperaPlatformGroupWindow from '@/components/business/OperaPlatformGroupWindow'
export default {
  name: 'Platform',
  extends: BaseTable,
  components: { TableLayout, Pagination, OperaPlatformGroupWindow },
  data () {
    return {
      // 搜索
      working: false,
      working1: false,
      searchForm: {
        name: ''
      }
    }
  },
  created () {
    this.config({
      module: '月台信息表',
      api: '/platform/platformGroup',
      'field.id': 'id',
      'field.main': 'id'
    })
    this.search()
  },
  methods: {
    changeAutoCall(e, row) {
      this.api.updateAutoCallById({
        id: row.id,
        autoCall: e
      })
    }
  }
}
</script>