Browse Source

现场注册列表

lyn7568 4 years ago
parent
commit
b2e0084672

+ 2 - 2
src/views/modules/admin/attenders-add-or-update.vue

@ -40,8 +40,8 @@
40 40
      </el-form-item>
41 41
      <el-form-item label="住宿要求" prop="room">
42 42
        <!-- <el-input v-model="dataForm.room" placeholder="住宿要求"></el-input> -->
43
        <el-radio v-model="dataForm.room" :label="1"></el-radio>
44
        <el-radio v-model="dataForm.room" :label="0"></el-radio>
43
        <el-radio v-model="dataForm.room" :label="1"></el-radio>
44
        <el-radio v-model="dataForm.room" :label="0"></el-radio>
45 45
      </el-form-item>
46 46
      <el-form-item label="接送要求" prop="transfer">
47 47
        <!-- <el-input v-model="dataForm.transfer" placeholder="接送要求"></el-input> -->

+ 3 - 2
src/views/modules/admin/attenders.vue

@ -139,7 +139,7 @@ export default {
139 139
        key: ""
140 140
      },
141 141
      dataList: [],
142
      pageIndex: 0,
142
      pageIndex: 1,
143 143
      pageSize: 10,
144 144
      totalPage: 0,
145 145
      dataListLoading: false,
@ -163,7 +163,8 @@ export default {
163 163
        params: this.$http.adornParams({
164 164
          page: this.pageIndex,
165 165
          limit: this.pageSize,
166
          key: this.dataForm.key
166
          key: this.dataForm.key,
167
          meetingId: this.$route.params.id
167 168
        })
168 169
      }).then(({ data }) => {
169 170
        if (data && data.code === 0) {

+ 0 - 1
src/views/modules/admin/meeting.vue

@ -63,7 +63,6 @@ export default {
63 63
          params: this.$http.adornParams()
64 64
        }).then(res => {
65 65
          if (res.data && res.data.code === 0) {
66
            window.console.log(res.data.meeting);
67 66
            this.meetingData = res.data.meeting;
68 67
            this.industries = res.data.meeting.industries.split(",");
69 68
            this.image = res.data.meeting.titlePicture;

+ 133 - 220
src/views/modules/admin/signinfo.vue

@ -6,8 +6,17 @@
6 6
      </el-form-item>
7 7
      <el-form-item>
8 8
        <el-button @click="getDataList()">查询</el-button>
9
        <el-button v-if="isAuth('admin:signinfo:save')" type="primary" @click="addOrUpdateHandle()">新增</el-button>
10
        <el-button v-if="isAuth('admin:signinfo:delete')" type="danger" @click="deleteHandle()" :disabled="dataListSelections.length <= 0">批量删除</el-button>
9
        <el-button
10
          v-if="isAuth('admin:signinfo:save')"
11
          type="primary"
12
          @click="addOrUpdateHandle()"
13
        >新增</el-button>
14
        <el-button
15
          v-if="isAuth('admin:signinfo:delete')"
16
          type="danger"
17
          @click="deleteHandle()"
18
          :disabled="dataListSelections.length <= 0"
19
        >批量删除</el-button>
11 20
      </el-form-item>
12 21
    </el-form>
13 22
    <el-table
@ -15,136 +24,33 @@
15 24
      border
16 25
      v-loading="dataListLoading"
17 26
      @selection-change="selectionChangeHandle"
18
      style="width: 100%;">
19
      <el-table-column
20
        type="selection"
21
        header-align="center"
22
        align="center"
23
        width="50">
24
      </el-table-column>
25
      <el-table-column
26
        prop="id"
27
        header-align="center"
28
        align="center"
29
        label="签到id">
30
      </el-table-column>
31
      <el-table-column
32
        prop="aId"
33
        header-align="center"
34
        align="center"
35
        label="参会人员id">
36
      </el-table-column>
37
      <el-table-column
38
        prop="meetingId"
39
        header-align="center"
40
        align="center"
41
        label="会议id">
42
      </el-table-column>
43
      <el-table-column
44
        prop="truename"
45
        header-align="center"
46
        align="center"
47
        label="姓名">
48
      </el-table-column>
49
      <el-table-column
50
        prop="organization"
51
        header-align="center"
52
        align="center"
53
        label="所属机构(单位名称、公司名称">
54
      </el-table-column>
55
      <el-table-column
56
        prop="position"
57
        header-align="center"
58
        align="center"
59
        label="职位id">
60
      </el-table-column>
61
      <el-table-column
62
        prop="jobTitle"
63
        header-align="center"
64
        align="center"
65
        label="职称">
66
      </el-table-column>
67
      <el-table-column
68
        prop="phone"
69
        header-align="center"
70
        align="center"
71
        label="电话">
72
      </el-table-column>
73
      <el-table-column
74
        prop="typeId"
75
        header-align="center"
76
        align="center"
77
        label="参会人员类型id">
78
      </el-table-column>
79
      <el-table-column
80
        prop="typeAttenders"
81
        header-align="center"
82
        align="center"
83
        label="">
84
      </el-table-column>
85
      <el-table-column
86
        prop="servicer"
87
        header-align="center"
88
        align="center"
89
        label="负责人(员工id)">
90
      </el-table-column>
91
      <el-table-column
92
        prop="servername"
93
        header-align="center"
94
        align="center"
95
        label="">
96
      </el-table-column>
97
      <el-table-column
98
        prop="isPay"
99
        header-align="center"
100
        align="center"
101
        label="">
102
      </el-table-column>
103
      <el-table-column
104
        prop="status"
105
        header-align="center"
106
        align="center"
107
        label="签到状态">
108
      </el-table-column>
109
      <el-table-column
110
        prop="badge"
111
        header-align="center"
112
        align="center"
113
        label="是否完成胸卡打印">
114
      </el-table-column>
115
      <el-table-column
116
        prop="lastTime"
117
        header-align="center"
118
        align="center"
119
        label="最后签到时间">
120
      </el-table-column>
121
      <el-table-column
122
        prop="note"
123
        header-align="center"
124
        align="center"
125
        label="备注">
126
      </el-table-column>
127
      <el-table-column
128
        prop="regflag"
129
        header-align="center"
130
        align="center"
131
        label="注册情况 0, 1, 2, 现场注册">
27
      style="width: 100%;"
28
    >
29
      <el-table-column type="selection" header-align="center" align="center" width="50"></el-table-column>
30
      <el-table-column prop="truename" header-align="center" align="center" label="姓名"></el-table-column>
31
      <el-table-column prop="organization" header-align="center" align="center" label="所属机构"></el-table-column>
32
      <!-- <el-table-column prop="jobTitle" header-align="center" align="center" label="职称"></el-table-column> -->
33
      <el-table-column prop="phone" header-align="center" align="center" label="电话"></el-table-column>
34
      <el-table-column prop="status" header-align="center" align="center" label="签到状态">
35
        <template slot-scope="scope">
36
          <el-tag v-if="scope.row.status===1">已签到</el-tag>
37
          <el-tag v-else type="danger">未签到</el-tag>
38
        </template>
132 39
      </el-table-column>
133
      <el-table-column
134
        prop="createTime"
135
        header-align="center"
136
        align="center"
137
        label="创建时间">
40
      <el-table-column prop="badge" header-align="center" align="center" label="是否完成胸卡打印">
41
        <template slot-scope="scope">
42
          <el-tag v-if="scope.row.badge===1">是</el-tag>
43
          <el-tag v-else type="danger">否</el-tag>
44
        </template>
138 45
      </el-table-column>
139
      <el-table-column
140
        fixed="right"
141
        header-align="center"
142
        align="center"
143
        width="150"
144
        label="操作">
46
      <el-table-column prop="servername" header-align="center" align="center" label="负责人"></el-table-column>
47
      <el-table-column prop="createTime" header-align="center" align="center" label="创建时间"></el-table-column>
48
      <el-table-column prop="lastTime" header-align="center" align="center" label="最后签到时间"></el-table-column>
49
      <el-table-column prop="note" header-align="center" align="center" label="备注"></el-table-column>
50
      <el-table-column fixed="right" header-align="center" align="center" width="150" label="操作">
145 51
        <template slot-scope="scope">
146 52
          <el-button type="text" size="small" @click="addOrUpdateHandle(scope.row.id)">修改</el-button>
147
          <el-button type="text" size="small" @click="deleteHandle(scope.row.id)">删除</el-button>
53
          <!-- <el-button type="text" size="small" @click="deleteHandle(scope.row.id)">删除</el-button> -->
148 54
        </template>
149 55
      </el-table-column>
150 56
    </el-table>
@ -155,111 +61,118 @@
155 61
      :page-sizes="[10, 20, 50, 100]"
156 62
      :page-size="pageSize"
157 63
      :total="totalPage"
158
      layout="total, sizes, prev, pager, next, jumper">
159
    </el-pagination>
64
      layout="total, sizes, prev, pager, next, jumper"
65
    ></el-pagination>
160 66
    <!-- 弹窗, 新增 / 修改 -->
161 67
    <add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update>
162 68
  </div>
163 69
</template>
164 70
165 71
<script>
166
  import AddOrUpdate from './signinfo-add-or-update'
167
  export default {
168
    data () {
169
      return {
170
        dataForm: {
171
          key: ''
172
        },
173
        dataList: [],
174
        pageIndex: 1,
175
        pageSize: 10,
176
        totalPage: 0,
177
        dataListLoading: false,
178
        dataListSelections: [],
179
        addOrUpdateVisible: false
180
      }
72
import AddOrUpdate from "./signinfo-add-or-update";
73
export default {
74
  data() {
75
    return {
76
      dataForm: {
77
        key: ""
78
      },
79
      dataList: [],
80
      pageIndex: 1,
81
      pageSize: 10,
82
      totalPage: 0,
83
      dataListLoading: false,
84
      dataListSelections: [],
85
      addOrUpdateVisible: false
86
    };
87
  },
88
  components: {
89
    AddOrUpdate
90
  },
91
  activated() {
92
    this.getDataList();
93
  },
94
  methods: {
95
    // 获取数据列表
96
    getDataList() {
97
      this.dataListLoading = true;
98
      this.$http({
99
        url: this.$http.adornUrl("/admin/signinfo/list"),
100
        method: "get",
101
        params: this.$http.adornParams({
102
          page: this.pageIndex,
103
          limit: this.pageSize,
104
          key: this.dataForm.key,
105
          meetingId: this.$route.params.id
106
        })
107
      }).then(({ data }) => {
108
        if (data && data.code === 0) {
109
          this.dataList = data.page.list;
110
          this.totalPage = data.page.totalCount;
111
        } else {
112
          this.dataList = [];
113
          this.totalPage = 0;
114
        }
115
        this.dataListLoading = false;
116
      });
117
    },
118
    // 每页数
119
    sizeChangeHandle(val) {
120
      this.pageSize = val;
121
      this.pageIndex = 1;
122
      this.getDataList();
181 123
    },
182
    components: {
183
      AddOrUpdate
124
    // 当前页
125
    currentChangeHandle(val) {
126
      this.pageIndex = val;
127
      this.getDataList();
184 128
    },
185
    activated () {
186
      this.getDataList()
129
    // 多选
130
    selectionChangeHandle(val) {
131
      this.dataListSelections = val;
187 132
    },
188
    methods: {
189
      // 获取数据列表
190
      getDataList () {
191
        this.dataListLoading = true
133
    // 新增 / 修改
134
    addOrUpdateHandle(id) {
135
      this.addOrUpdateVisible = true;
136
      this.$nextTick(() => {
137
        this.$refs.addOrUpdate.init(id);
138
      });
139
    },
140
    // 删除
141
    deleteHandle(id) {
142
      var ids = id
143
        ? [id]
144
        : this.dataListSelections.map(item => {
145
            return item.id;
146
          });
147
      this.$confirm(
148
        `确定对[id=${ids.join(",")}]进行[${id ? "删除" : "批量删除"}]操作?`,
149
        "提示",
150
        {
151
          confirmButtonText: "确定",
152
          cancelButtonText: "取消",
153
          type: "warning"
154
        }
155
      ).then(() => {
192 156
        this.$http({
193
          url: this.$http.adornUrl('/admin/signinfo/list'),
194
          method: 'get',
195
          params: this.$http.adornParams({
196
            'page': this.pageIndex,
197
            'limit': this.pageSize,
198
            'key': this.dataForm.key
199
          })
200
        }).then(({data}) => {
157
          url: this.$http.adornUrl("/admin/signinfo/delete"),
158
          method: "post",
159
          data: this.$http.adornData(ids, false)
160
        }).then(({ data }) => {
201 161
          if (data && data.code === 0) {
202
            this.dataList = data.page.list
203
            this.totalPage = data.page.totalCount
162
            this.$message({
163
              message: "操作成功",
164
              type: "success",
165
              duration: 1500,
166
              onClose: () => {
167
                this.getDataList();
168
              }
169
            });
204 170
          } else {
205
            this.dataList = []
206
            this.totalPage = 0
171
            this.$message.error(data.msg);
207 172
          }
208
          this.dataListLoading = false
209
        })
210
      },
211
      // 每页数
212
      sizeChangeHandle (val) {
213
        this.pageSize = val
214
        this.pageIndex = 1
215
        this.getDataList()
216
      },
217
      // 当前页
218
      currentChangeHandle (val) {
219
        this.pageIndex = val
220
        this.getDataList()
221
      },
222
      // 多选
223
      selectionChangeHandle (val) {
224
        this.dataListSelections = val
225
      },
226
      // 新增 / 修改
227
      addOrUpdateHandle (id) {
228
        this.addOrUpdateVisible = true
229
        this.$nextTick(() => {
230
          this.$refs.addOrUpdate.init(id)
231
        })
232
      },
233
      // 删除
234
      deleteHandle (id) {
235
        var ids = id ? [id] : this.dataListSelections.map(item => {
236
          return item.id
237
        })
238
        this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? '删除' : '批量删除'}]操作?`, '提示', {
239
          confirmButtonText: '确定',
240
          cancelButtonText: '取消',
241
          type: 'warning'
242
        }).then(() => {
243
          this.$http({
244
            url: this.$http.adornUrl('/admin/signinfo/delete'),
245
            method: 'post',
246
            data: this.$http.adornData(ids, false)
247
          }).then(({data}) => {
248
            if (data && data.code === 0) {
249
              this.$message({
250
                message: '操作成功',
251
                type: 'success',
252
                duration: 1500,
253
                onClose: () => {
254
                  this.getDataList()
255
                }
256
              })
257
            } else {
258
              this.$message.error(data.msg)
259
            }
260
          })
261
        })
262
      }
173
        });
174
      });
263 175
    }
264 176
  }
177
};
265 178
</script>

+ 7 - 4
src/views/modules/admin/typesoffee.vue

@ -1,6 +1,6 @@
1 1
<template>
2 2
  <div class="typesoffeeContent" v-loading="loading">
3
    <el-form>
3
    <el-form :model="dataForm">
4 4
      <el-form-item label="注册费用信息"></el-form-item>
5 5
      <el-form-item>
6 6
        <el-input style="width:400px" placeholder="请输入级别类型" v-model="dataForm.name"></el-input>
@ -83,7 +83,8 @@ export default {
83 83
  components: {},
84 84
  computed: {},
85 85
  beforeMount() {},
86
  mounted() {
86
  created() {},
87
  activated() {
87 88
    this.getDataList();
88 89
    this.getMoneyaccount();
89 90
  },
@ -107,8 +108,8 @@ export default {
107 108
            onClose: () => {}
108 109
          });
109 110
          this.getDataList();
110
          this.dataForm.name = "";
111
          this.dataForm.money = "";
111
          // this.dataForm.name = "";
112
          // this.dataForm.money = "";
112 113
        } else {
113 114
          this.$message.error(data.msg);
114 115
        }
@ -203,6 +204,8 @@ export default {
203 204
        methods: "get"
204 205
      }).then(({ data }) => {
205 206
        if (data && data.code === 0) {
207
          window.console.log(data);
208
          data.moneyAccount === null ? (this.show = false) : (this.show = true);
206 209
          this.moneyaccount = data.moneyAccount;
207 210
          this.loading = false;
208 211
        }