system-clients 3.2.93 → 3.2.94-temp

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/.gradle/7.4/checksums/checksums.lock +0 -0
  2. package/.gradle/7.4/dependencies-accessors/dependencies-accessors.lock +0 -0
  3. package/.gradle/7.4/dependencies-accessors/gc.properties +0 -0
  4. package/.gradle/7.4/executionHistory/executionHistory.bin +0 -0
  5. package/.gradle/7.4/executionHistory/executionHistory.lock +0 -0
  6. package/.gradle/7.4/fileChanges/last-build.bin +0 -0
  7. package/.gradle/7.4/fileHashes/fileHashes.bin +0 -0
  8. package/.gradle/7.4/fileHashes/fileHashes.lock +0 -0
  9. package/.gradle/7.4/gc.properties +0 -0
  10. package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  11. package/.gradle/buildOutputCleanup/cache.properties +2 -0
  12. package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  13. package/.gradle/file-system.probe +0 -0
  14. package/.gradle/vcs-1/gc.properties +0 -0
  15. package/package.json +2 -2
  16. package/src/components/Main.vue +42 -18
  17. package/src/components/equipment/EquipmentManage.vue +83 -83
  18. package/src/components/equipment/PcAdd.vue +115 -115
  19. package/src/components/equipment/PcList.vue +119 -119
  20. package/src/components/equipment/PcManage.vue +61 -61
  21. package/src/components/equipment/PhoneAdd.vue +118 -118
  22. package/src/components/equipment/PhoneList.vue +113 -113
  23. package/src/components/equipment/PhoneManage.vue +61 -61
  24. package/src/components/equipment/PosAdd.vue +10 -6
  25. package/src/components/equipment/PosList.vue +5 -3
  26. package/src/components/equipment/PosParamAdd.vue +1 -1
  27. package/src/components/equipment/PosParamList.vue +2 -2
  28. package/src/components/parammanage/ParamPage.vue +12 -12
  29. package/src/components/parammanage/SinglePage.vue +8 -8
  30. package/src/components/server/Login.vue +35 -17
  31. package/src/components/server/ModifyPw.vue +0 -1
  32. package/src/components/server/PcdBuildingSelect.vue +0 -2
  33. package/src/components/server/ResSelect.vue +166 -169
  34. package/src/components/server/ResSelectGroup.vue +211 -211
  35. package/src/components/server/RoleSelector.vue +2 -3
  36. package/src/filiale/baole/Login.vue +0 -2
  37. package/src/filiale/bayan/PosAdd.vue +369 -0
  38. package/src/filiale/bayan/PosList.vue +349 -0
  39. package/src/filiale/bayan/PosManage.vue +138 -0
  40. package/src/filiale/bayan/system.js +6 -0
  41. package/src/filiale/chengtou/Login.vue +0 -2
  42. package/src/filiale/dongguan/Login.vue +0 -2
  43. package/src/filiale/dongguan/Main.vue +0 -2
  44. package/src/filiale/furuike/Login.vue +0 -4
  45. package/src/filiale/furuike/Main.vue +0 -2
  46. package/src/filiale/gehua/Main.vue +0 -2
  47. package/src/filiale/konggang/Login.vue +0 -2
  48. package/src/filiale/qianneng/Login.vue +582 -584
  49. package/src/filiale/qianneng/Main.vue +2 -4
  50. package/src/filiale/qianneng/ModifyPw.vue +0 -1
  51. package/src/filiale/rizhao/Login.vue +0 -2
  52. package/src/filiale/rizhao/Main.vue +1 -1
  53. package/src/filiale/shiquan/Login.vue +0 -2
  54. package/src/filiale/tianyi/Login.vue +0 -2
  55. package/src/filiale/tongchuan/Login.vue +0 -2
  56. package/src/filiale/tongchuan/Main.vue +1 -3
  57. package/src/filiale/weinan/Main.vue +923 -924
  58. package/src/filiale/weinan/system.js +7 -7
  59. package/src/filiale/wenxi/Login.vue +0 -2
  60. package/src/filiale/wenxi/Main.vue +0 -2
  61. package/src/filiale/wuhai/Main.vue +0 -3
  62. package/src/filiale/yuchuan/Login.vue +0 -2
  63. package/src/filiale/yuchuan/Main.vue +0 -2
  64. package/src/filiale/zhoukou/Main.vue +0 -2
  65. package/src/plugins/GetLoginInfoService.js +75 -13
  66. package/src/stores/AppData.js +1 -1
@@ -0,0 +1,349 @@
1
+ <template>
2
+ <div class="flex">
3
+ <criteria-paged :model="model" v-ref:paged>
4
+
5
+ <criteria partial='criteria' style="background-color: white;" @condition-changed='$parent.selfSearch' v-ref:cri>
6
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
7
+ <div class="row">
8
+ <div class="col-sm-3 form-group">
9
+ <label class="font_normal_body">公&emsp;&emsp;司 </label>
10
+ <right-tree @re-res="$parent.$parent.getRes"></right-tree>
11
+ </div>
12
+ <div class="col-sm-3 form-group">
13
+ <label class="font_normal_body">设备编号</label>
14
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_terminal_number"
15
+ condition="f_terminal_number like '%{}%'" placeholder="设备编号">
16
+ </div>
17
+
18
+
19
+ <div class="span" style="float:right;margin-top: 6px">
20
+ <button type="button" class="btn-success btn " style="border-radius: 4px"
21
+ @click="$parent.$parent.batchRoot('1')">批量启用
22
+ </button>
23
+ <button type="button" class="btn-danger btn " style="border-radius: 4px"
24
+ @click="$parent.$parent.batchRoot('0')">批量停用
25
+ </button>
26
+ <button type="button" class="button_search btn" @click="search()" v-el:cx>查询</button>
27
+ <button type="button" class="button_search btn" @click="$parent.$parent.add() " v-el:cx>新增</button>
28
+ <div style="float: right" class="button_spacing"
29
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
30
+ @click="$parent.$parent.hidden()"></div>
31
+ </div>
32
+ </div>
33
+ <div class="row" v-show="$parent.$parent.criteriaShow">
34
+ <div class="col-sm-3 form-group">
35
+ <label class="font_normal_body">所属部门</label>
36
+ <res-select restype='department'
37
+ :is-mul="false"
38
+ @res-select="$parent.$parent.getdep"
39
+ :parentresid="$parent.$parent.depresid">
40
+ </res-select>
41
+ </div>
42
+ <div class="col-sm-3 form-group">
43
+ <label class="font_normal_body">所属人员</label>
44
+ <res-select restype='user'
45
+ @res-select="$parent.$parent.getuser"
46
+ :is-mul="false"
47
+ :parentresid="$parent.$parent.userresid">
48
+ </res-select>
49
+ </div>
50
+ <div class="col-sm-3 form-group">
51
+ <label class="font_normal_body">所在地</label>
52
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_address"
53
+ condition="f_address like '%{}%'" placeholder="所在地">
54
+ </div>
55
+ <div class="col-sm-3 form-group">
56
+ <label class="font_normal_body">设备名称</label>
57
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_terminal_name"
58
+ condition="f_terminal_name like '%{}%'" placeholder="设备名称">
59
+ </div>
60
+ <div class="col-sm-3 form-group">
61
+ <label class="font_normal_body">机器编号</label>
62
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_machine_number"
63
+ condition="f_machine_number like '%{}%'" placeholder="机器编号">
64
+ </div>
65
+ <div class="col-sm-3 form-group">
66
+ <label class="font_normal_body">所属银行</label>
67
+ <v-select id="f_charge_type"
68
+ v-model="model.f_bank_name"
69
+ placeholder='所属银行'
70
+ :value.sync="model.f_bank_name"
71
+ :options='$parent.$parent.bankAffiliation'
72
+ condition="f_bank_name = '{}'"
73
+ close-on-select clear-button>
74
+ </v-select>
75
+ </div>
76
+ <div class="col-sm-3 form-group">
77
+ <label class="font_normal_body">联系电话</label>
78
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_phone"
79
+ condition="f_phone like '%{}%'" placeholder="联系电话">
80
+ </div>
81
+ </div>
82
+ </div>
83
+ </criteria>
84
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid >
85
+ <template partial='head'>
86
+ <tr>
87
+ <th><input type="checkbox" name="ischeckbox_all_id" v-model="$parent.$parent.$parent.isSelAll" :value.sync="$parent.$parent.$parent.isSelAll" /></th>
88
+ <th style="text-align:center;white-space:nowrap;">序号</th>
89
+ <th style="text-align:center;white-space:nowrap;">设备编号</th>
90
+ <th style="text-align:center;white-space:nowrap;" v-show="!$parent.$parent.$parent.isshowless">设备类型</th>
91
+ <th style="text-align:center;white-space:nowrap;">MAC号</th>
92
+ <th style="text-align:center;white-space:nowrap;">机器编号</th>
93
+ <th style="text-align:center;white-space:nowrap;">设备名称</th>
94
+ <th style="text-align:center;white-space:nowrap;">公司</th>
95
+ <th style="text-align:center;white-space:nowrap;">所属部门</th>
96
+ <th style="text-align:center;white-space:nowrap;">设备负责人</th>
97
+ <th style="text-align:center;white-space:nowrap;">状态</th>
98
+ <th style="text-align:center;white-space:nowrap;">联系电话</th>
99
+ <th style="text-align:center;white-space:nowrap;">放置地点</th>
100
+ <th style="text-align:center;white-space:nowrap;">所属银行</th>
101
+ <th style="text-align:center;white-space:nowrap;">所属参数</th>
102
+ <!-- <th style="text-align:center;white-space:nowrap;" v-show="!$parent.$parent.$parent.isshowless">操作时间</th>-->
103
+ <!-- <th style="text-align:center;white-space:nowrap;">使用人员</th>-->
104
+ <th style="text-align:center;white-space:nowrap;">备注</th>
105
+ <th style="text-align:center;white-space:nowrap;" v-show="!$parent.$parent.$parent.isshowless">操作人</th>
106
+ <th style="text-align:center;white-space:nowrap;">失联状态</th>
107
+ <th style="text-align:center;white-space:nowrap;">操作</th>
108
+ </tr>
109
+ </template>
110
+ <template partial='body':model="model">
111
+ <tr>
112
+ <td><input type="checkbox" name="checkbox_id" v-model="$parent.$parent.$parent.selPos" :value.sync="row"></td>
113
+ <td style="text-align:center;white-space:nowrap;">{{$index+1}}</td>
114
+ <td style="text-align:center;white-space:nowrap;"><span title="点击查看历史" @click="$parent.$parent.$parent.abcd(row)"><a>{{row.f_terminal_number}}</a></span></td>
115
+ <td style="text-align:center;white-space:nowrap;" v-show="!$parent.$parent.$parent.isshowless">{{row.f_equipment_type}}</td>
116
+ <td style="text-align:center;white-space:nowrap;">{{row.f_mac_number}}</td>
117
+ <td style="text-align:center;white-space:nowrap;">{{row.f_machine_number}}</td>
118
+ <td style="text-align:center;white-space:nowrap;">{{row.f_terminal_name}}</td>
119
+ <td style="text-align:center;white-space:nowrap;">{{row.f_orgname}}</td>
120
+ <td style="text-align:center;white-space:nowrap;">{{row.f_depname}}</td>
121
+ <td style="text-align:center;white-space:nowrap;">{{row.f_operator}}</td>
122
+
123
+ <td style="text-align:center;white-space:nowrap;">{{row.f_state}}</td>
124
+ <td style="text-align:center;white-space:nowrap;">{{row.f_phone}}</td>
125
+ <td style="text-align:center;white-space:nowrap;">{{row.f_address}}</td>
126
+ <td style="text-align:center;white-space:nowrap;">{{row.f_bank_name}}</td>
127
+ <td style="text-align:center;white-space:nowrap;">{{row.f_param_id}}</td>
128
+ <!-- <td style="text-align:center;white-space:nowrap;" v-show="!$parent.$parent.$parent.isshowless">{{row.f_appVer}}</td>-->
129
+ <!-- <td style="text-align:center;white-space:nowrap;" >{{row.f_username}}</td>-->
130
+ <td style="text-align:center;white-space:nowrap;">{{row.f_comments}}</td>
131
+ <td style="text-align:center;white-space:nowrap;" v-show="!$parent.$parent.$parent.isshowless">{{row.f_operator}}</td>
132
+ <td style="text-align:center;white-space:nowrap;" >{{row.isunknown}}</td>
133
+ <td style="text-align:center">
134
+ <button class="btn btn-danger" @click.stop="$parent.$parent.$parent.del(row)">删除</button>
135
+ </td>
136
+ </tr>
137
+ </template>
138
+ </data-grid>
139
+ </criteria-paged>
140
+ </div>
141
+ <modal v-show="infoshow" :show.sync="infoshow" v-ref:modal backdrop="false" width="800px" title="终端历史信息">
142
+ <article slot="modal-body" class="modal-body">
143
+ <criteria-paged :model="model2" v-ref:paged2>
144
+ <data-grid :model="model2" v-ref:grid2 partial='list'>
145
+ <template partial='head'>
146
+ <tr>
147
+ <!--<th style="padding: 0;border: 0">
148
+ <input type="checkbox" id="f_operator" v-model="$parent.$parent.$parent.all[model.pageIndex-1]"
149
+ @change="$parent.$parent.$parent.select()" style="width: 22px;height: 22px"/>
150
+ </th>-->
151
+ <th><nobr>序号</nobr></th>
152
+ <th><nobr>终端号</nobr></th>
153
+ <th><nobr>上次上报时间</nobr></th>
154
+ <th><nobr>本次上报时间</nobr></th>
155
+ <th><nobr><b>状态</b></nobr></th>
156
+ </tr>
157
+ </template>
158
+ <template partial='body'>
159
+ <td style="text-align: center;">{{$index + 1}}</td>
160
+ <td style="text-align: center;">{{row.f_terminal_number}}</td>
161
+ <td style="text-align: center;">{{row.f_update_date}}</td>
162
+ <td style="text-align: center;">{{row.f_update_date }}</td>
163
+ <td style="text-align: center;"><b>{{row.f_pos_state}}</b></td>
164
+ </template>
165
+ </data-grid>
166
+ </criteria-paged>
167
+ </article>
168
+ <footer slot="modal-footer" class="modal-footer">
169
+ <button type="button" class="btn btn-success" @click='infoclose'>关闭</button>
170
+ </footer>
171
+ </modal>
172
+ </template>
173
+
174
+ <script>
175
+
176
+ import {PagedList} from 'vue-client'
177
+
178
+ export default {
179
+ title: '终端控制',
180
+ components: {},
181
+ data () {
182
+ return {
183
+ depresid: [this.$login.f.depids],
184
+ depid: [this.$login.f.depids],
185
+ f_orgid: this.$login.f.orgid,
186
+ f_depid: '',
187
+ f_operatorid: '',
188
+ mul: false,
189
+ orgname: '',
190
+ depname: '',
191
+ operatorname: '',
192
+ userresid: [this.$login.f.id],
193
+ operatorid: [this.$login.f.id],
194
+ source: `tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() != $role$))`,
195
+ model: new PagedList('rs/sql/equipmentQuery', 20),
196
+ model2: new PagedList('rs/sql/singleTable', 30, {tablename: '`t_poshistory`'}),
197
+ curorgid: [this.f_filialeid],
198
+ f_filialeids: '',
199
+ criteriaShow: false,
200
+ infoadd: false,
201
+ selPos: [],
202
+ bankAffiliation: this.$appdata.getParam('所属银行'),
203
+ isSelAll: false, // 默认不全选
204
+ infoshow: false
205
+ }
206
+ },
207
+ props: ['f_filialeid','isshowless'],
208
+ ready () {
209
+ this.search()
210
+ },
211
+ watch:{
212
+ // 'selPos'(val){
213
+ // console.log(val)
214
+ // },
215
+ 'isSelAll'(val){
216
+ console.log('-------', val)
217
+ if (val) {
218
+ // 对当前页面全选
219
+ this.selPos = []
220
+ for (const sel of this.model.rows) {
221
+ // if (this.selPos.indexOf(sel.id) < 0){
222
+ this.selPos.push(sel)
223
+ // }
224
+ }
225
+ } else {
226
+ // 取消全选
227
+ this.selPos = []
228
+ }
229
+ }
230
+ },
231
+ methods: {
232
+ getRes (obj) {
233
+ this.orgname = obj.res[0]
234
+ this.depresid = obj.resids
235
+ this.f_orgid = obj.resids
236
+ this.userresid = obj.resids
237
+ },
238
+ getdep (obj, val) {
239
+ this.depname = val
240
+ // this.userresid = obj
241
+ this.f_depid = obj
242
+ },
243
+ getuser (obj, val) {
244
+ this.operatorname = val
245
+ this.f_operatorid = obj
246
+ },
247
+ infoclose(){
248
+ this.infoshow=false
249
+ },
250
+ // 批量操作
251
+ async batchRoot(val) {
252
+ let arrs = []
253
+ let alertMessage = ''
254
+ let selPos = this.selPos
255
+ if (val === '0') {
256
+ alertMessage = '停用'
257
+ for (const tmp of selPos) {
258
+ if (tmp.f_state === '正常') arrs.push(tmp)
259
+ }
260
+ } else if (val === '1') {
261
+ alertMessage = '启用'
262
+ for (const tmp of selPos) {
263
+ if (tmp.f_state === '停用') arrs.push(tmp)
264
+ }
265
+ } else if (val === '2') {
266
+ alertMessage = '升级'
267
+ for (const tmp of selPos) {
268
+ if (tmp.f_state === '正常') arrs.push(tmp)
269
+ }
270
+ } else {
271
+ this.showAlert('出现异常,请重新进操作')
272
+ return
273
+ }
274
+ await this.$resetpost('rs/logic/batchPos', {data: {tasks: arrs, taskState: val}}, {
275
+ rejectMsg: null,
276
+ resolveMsg: null
277
+ })
278
+ // 需要提示
279
+ this.$showAlert(`已经开始批量${alertMessage},选择${selPos.length},其中${arrs.length}台可以正常${alertMessage},具体请留意设备情况,并刷新列表查看执行结果!`,'success', 2500)
280
+ this.$dispatch('close')
281
+ },
282
+ abcd (row) {
283
+ console.log("chakan",row)
284
+ let condition = `f_terminal_number = '${row.f_terminal_number}' order by id desc`
285
+ this.model2.search(condition)
286
+ this.infoshow = true
287
+ },
288
+ search () {
289
+ console.log("111111111111111111111111111111111111")
290
+ this.$refs.paged.$refs.cri.search()
291
+ },
292
+ selfSearch (args) {
293
+ console.log(args)
294
+ if (args.model.f_user_operatorid && args.model.f_user_operator){
295
+ args.condition = `${args.condition} and f_user_operatorid = '${args.model.f_user_operatorid}'
296
+ and f_user_operator = '${args.model.f_user_operator}'`
297
+ }
298
+
299
+ if (args.model.f_user_operatorid && args.model.f_user_operator) {
300
+ args.condition = `${args.condition} and f_user_operatorid = '${args.model.f_user_operatorid}'
301
+ and f_user_operator = '${args.model.f_user_operator}'`;
302
+ }
303
+
304
+ // 添加设备类型和状态条件
305
+ args.condition = `${args.condition} and f_equipment_type = 'POS' and f_state != '已删除'`;
306
+ // 添加公司、部门、员工条件
307
+ if (this.f_orgid && this.f_orgid.length > 0) {
308
+ args.condition += ` and f_orgid = '${this.f_orgid}'`;
309
+ }
310
+
311
+ if (this.f_depid && this.f_depid.length > 0) {
312
+ args.condition += ` and f_depid = '${this.f_depid}'`; // 或者使用合适的条件处理
313
+ }
314
+
315
+ if (this.f_operatorid && this.f_operatorid.length > 0) {
316
+ args.condition += ` and f_operatorid = '${this.f_operatorid}'`; // 或者使用合适的条件处理
317
+ }
318
+ this.model.search(args.condition, this.model)
319
+ this.$dispatch('research')
320
+ },
321
+
322
+ add () {
323
+ this.infoadd = false
324
+ // if (this.f_filialeid) {
325
+ this.$dispatch('add', this.f_filialeid)
326
+ // } else {
327
+ // this.$showAlert('请先选择左上角的所在分公司', 'warning', 2000)
328
+ // }
329
+ },
330
+ del(row) {
331
+ console.log('要删除了', row)
332
+ row.f_state = '已删除'
333
+ this.$resetpost('rs/entity/t_equipment', row, {
334
+ warnMsg: '确定要删除这条信息吗?',
335
+ resolveMsg: '删除成功',
336
+ rejectMsg: '删除失败'
337
+ }).then((res) => {
338
+ this.$dispatch('refresh')
339
+ }).catch((error) => {
340
+ this.$dispatch('refresh')
341
+ })
342
+ },
343
+ hidden() {
344
+ this.criteriaShow = !this.criteriaShow
345
+ }
346
+ },
347
+ computed: {}
348
+ }
349
+ </script>
@@ -0,0 +1,138 @@
1
+ <template>
2
+ <div class="flex-row">
3
+ <div :class="{'basic-main':!isChange,'binary-left':isChange}">
4
+ <pos-list :row="row" @dblclick="selected" style="width:auto;" :f_filialeid.sync="f_filialeids" :isshowless="isChange" v-ref:list ></pos-list>
5
+ </div>
6
+ <div class="binary-right" style="margin-left: 10px; width: 40%;" v-if="isChange">
7
+ <pos-add :data="row" :info="infoadd" :f_filialeids.sync="f_filialeids" v-ref:addbox></pos-add>
8
+ </div>
9
+
10
+ <!-- <modal v-if="batchPos" :show.sync="batchPos" backdrop="false" >-->
11
+ <!-- <header slot="modal-header" class="modal-header">-->
12
+ <!-- <button type="button" class="close" @click="close"><span>&times;</span></button>-->
13
+ <!-- <h4 class="modal-title">批量操作</h4>-->
14
+ <!-- </header>-->
15
+ <!-- <article slot="modal-body" class="modal-body">-->
16
+ <!-- <form class="form-horizontal">-->
17
+ <!-- <div class="row">-->
18
+ <!-- <div>-->
19
+ <!-- <h4>注意事项</h4>-->
20
+ <!-- <p>1.如果需要对POS设备进行升级,批量选择的POS设备包含非正常状态,则只会对状态为正常的设备进行升级。</p>-->
21
+ <!-- <p>2.如果POS设备处于停用状态,则可以进行启用操作。如果设备处于启用状态,则可以进行停用和升级操作。</p>-->
22
+ <!-- <p>3.批量操作可能耗时较长,请刷新列表查看结果。</p>-->
23
+ <!-- </div>-->
24
+ <!-- </div>-->
25
+ <!-- </form>-->
26
+ <!-- </article>-->
27
+ <!-- <footer slot="modal-footer" class="modal-footer">-->
28
+ <!--&lt;!&ndash; <button type="button" class="button_search button_spacing" @click="batchRoot('2')">批量升级</button>&ndash;&gt;-->
29
+ <!-- <button type="button" class="button_search button_spacing" @click="batchRoot('1')">批量启用</button>-->
30
+ <!-- <button type="button" class="button_search button_spacing" @click="batchRoot('0')">批量停用</button>-->
31
+ <!-- <button type="button" class="button_clear button_spacing" @click='close'>退出</button>-->
32
+ <!-- </footer>-->
33
+ <!-- </modal>-->
34
+ </div>
35
+ </template>
36
+ <script>
37
+
38
+ import PosList from './PosList'
39
+ import PosAdd from './PosAdd'
40
+
41
+ export default {
42
+ title: 'POS终端管理',
43
+ components: {
44
+ PosList, PosAdd
45
+ },
46
+ data () {
47
+ return {
48
+ isChange: false,
49
+ row: null,
50
+ infoadd: true, // 判断是否显示 升级 等按钮(true/false)
51
+ batchPos: false,
52
+ f_filialeids: ''
53
+ }
54
+ },
55
+ methods: {
56
+ // 批量操作
57
+ // async batchRoot(val){
58
+ // let arrs = []
59
+ // let alertMessage=''
60
+ // let selPos = this.$refs.list.selPos
61
+ // if (val==='0'){
62
+ // alertMessage='停用'
63
+ // for (const tmp of selPos) {
64
+ // if (tmp.f_state==='正常') arrs.push(tmp)
65
+ // }
66
+ // } else if (val==='1'){
67
+ // alertMessage='启用'
68
+ // for (const tmp of selPos) {
69
+ // if (tmp.f_state==='停用') arrs.push(tmp)
70
+ // }
71
+ // } else if(val==='2'){
72
+ // alertMessage='升级'
73
+ // for (const tmp of selPos) {
74
+ // if (tmp.f_state==='正常') arrs.push(tmp)
75
+ // }
76
+ // } else {
77
+ // this.showAlert('出现异常,请重新进操作')
78
+ // return
79
+ // }
80
+ //
81
+ // await this.$resetpost('rs/logic/batchPos',{data: {tasks: arrs, taskState: val}}, {rejectMsg: null, resolveMsg: null})
82
+ //
83
+ // // 需要提示
84
+ // this.$showAlert(`已经开始批量${alertMessage},选择${selPos.length},其中${arrs.length}台可以正常${alertMessage},具体请留意设备情况,并刷新列表查看执行结果!`)
85
+ // this.isChange = false
86
+ // this.close()
87
+ // },
88
+ close(){
89
+ this.batchPos = false
90
+ },
91
+ selected(obj, idx) {
92
+ console.log(obj)
93
+ if (!(obj instanceof MouseEvent)) {
94
+ this.isChange = true
95
+ this.infoadd = true
96
+ this.row = obj
97
+ } else {
98
+ this.$showAlert('如需新增,请点击增加按钮!', 'info', 1000)
99
+ }
100
+ }
101
+ },
102
+ events: {
103
+ 'search' () {
104
+ this.infoadd=true
105
+ this.isChange = false
106
+ this.row = null
107
+ this.$refs.list.$refs.paged.$refs.cri.search()
108
+ },
109
+ 'research' () {
110
+ console.log('重新查询')
111
+ this.isChange = false
112
+ this.row = null
113
+ },
114
+ 'refresh' () {
115
+ this.isChange = false
116
+ this.row = null
117
+ this.$refs.list.search()
118
+ },
119
+ 'error' (name, row, res) {
120
+ this.isChange = false
121
+ this.row = null
122
+ },
123
+ 'close' () {
124
+ this.isChange = false
125
+ this.row = null
126
+
127
+ // this.$refs.list.search()
128
+ },
129
+ 'add' (val) {
130
+ this.f_filialeids = val
131
+ this.infoadd=false
132
+ this.row = null
133
+ this.isChange = true
134
+ this.$refs.list.$refs.paged.$refs.grid.selectStore.selected = null
135
+ }
136
+ }
137
+ }
138
+ </script>
@@ -0,0 +1,6 @@
1
+ // 分公司特殊组件页面注册
2
+
3
+
4
+ exports.specialComp = {
5
+ 'pos-manage': (resolve) => { require(['./PosManage'], resolve) }
6
+ }
@@ -173,7 +173,6 @@ let saveGen = function *(self) {
173
173
  console.log('登录配置', self.config)
174
174
  if (self.config.isMac) {
175
175
  // 获取该登录人分公司下的mac配置
176
- // todo v4
177
176
  let getMacs = yield self.$resetpost('rs/sql/equipmentQuery', {data: {condition: `f_filialeids like '%${self.$login.f.f_orgids}%'`}}, {
178
177
  resolveMsg: null,
179
178
  rejectMsg: null
@@ -438,7 +437,6 @@ export default {
438
437
  if (this.config.distanceLogin) {
439
438
  if (this.$login && this.$login.getUrlParames('name') ) {
440
439
  let ename = this.$login.getUrlParames('name');
441
- // todo v4
442
440
  let logininfo = await this.$resetpost('rs/logic/getLoginData',{data:{ename:ename}},{resolveMsg: null, rejectMsg: null});
443
441
  if(logininfo.data){
444
442
  if(logininfo.data.ename && logininfo.data.password){
@@ -179,7 +179,6 @@ let saveGen = function *(self) {
179
179
  console.log('登录配置', self.config)
180
180
  if (self.config.isMac) {
181
181
  // 获取该登录人分公司下的mac配置
182
- // todo v4
183
182
  let getMacs = yield self.$resetpost('rs/sql/equipmentQuery', {data: {condition: `f_filialeids like '%${self.$login.f.f_orgids}%'`}}, {
184
183
  resolveMsg: null,
185
184
  rejectMsg: null
@@ -429,7 +428,6 @@ export default {
429
428
  if (this.config.distanceLogin) {
430
429
  if (this.$login && this.$login.getUrlParames('name') ) {
431
430
  let ename = this.$login.getUrlParames('name');
432
- // todo v4
433
431
  let logininfo = await this.$resetpost('rs/logic/getLoginData',{data:{ename:ename}},{resolveMsg: null, rejectMsg: null});
434
432
  if(logininfo.data){
435
433
  if(logininfo.data.ename && logininfo.data.password){
@@ -97,7 +97,6 @@ let getwartermakr = async function (self) {
97
97
  tablename: 't_singlevalue',
98
98
  condition: " 1=1 and name=\'水印内容\'"
99
99
  };
100
- // todo v4
101
100
  let result = await self.$resetpost('rs/sql/saleSingleTable', {data: param}, {resolveMsg: null, rejectMsg: null});
102
101
  if (result && result.data.length > 0) {
103
102
  self.showwatermakeflag = true;
@@ -393,7 +392,6 @@ export default {
393
392
  username: this.$login.f.name,
394
393
  usertelephone: this.$login.f.f_user_telephone
395
394
  }
396
- // todo v4
397
395
  await this.$resetpost('rs/logic/logOut', data, {resolveMsg: '退出成功', rejectMsg: null})
398
396
  window.location.reload()
399
397
  }
@@ -166,7 +166,6 @@ let saveGen = function *(self) {
166
166
  console.log('登录配置', self.config)
167
167
  if (self.config.isMac) {
168
168
  // 获取该登录人分公司下的mac配置
169
- // todo v4
170
169
  let getMacs = yield self.$resetpost('rs/sql/equipmentQuery', {data: {condition: `f_filialeids like '%${self.$login.f.f_orgids}%'`}}, {
171
170
  resolveMsg: null,
172
171
  rejectMsg: null
@@ -264,13 +263,11 @@ export default {
264
263
  st: obj.ticket,
265
264
  serviceKey: this.config.serviceKey
266
265
  }
267
- // todo v4
268
266
  this.$resetpost('/sso/logic/serviceValidate', params,{resolveMsg: null, rejectMsg: null}).then((re) => {
269
267
  // this.$showMessage("re----" + JSON.stringify(re))
270
268
  if (re.data.code === 200) {
271
269
  this.showlogin = false
272
270
  let condition = `ename = '${re.data.data.userName}'`
273
- // todo v4
274
271
  this.$resetpost('rs/sql/singleTable', {data: { items: '*', tablename: 't_user', condition: condition}}, {resolveMsg: null, rejectMsg: null}).then((res) => {
275
272
  if (res.data && res.data.length > 0) {
276
273
  this.model.ename = res.data[0].ename
@@ -477,7 +474,6 @@ export default {
477
474
  if (this.config.distanceLogin) {
478
475
  if (this.$login && this.$login.getUrlParames('name') ) {
479
476
  let ename = this.$login.getUrlParames('name');
480
- // todo v4
481
477
  let logininfo = await this.$resetpost('rs/logic/getLoginData',{data:{ename:ename}},{resolveMsg: null, rejectMsg: null});
482
478
  if(logininfo.data){
483
479
  if(logininfo.data.ename && logininfo.data.password){
@@ -178,7 +178,6 @@ let getwartermakr = async function (self) {
178
178
  tablename: 't_singlevalue',
179
179
  condition: " 1=1 and name=\'水印内容\'"
180
180
  };
181
- // todo v4
182
181
  let result = await self.$resetpost('rs/sql/saleSingleTable', {data: param}, {resolveMsg: null, rejectMsg: null});
183
182
  if (result && result.data.length > 0) {
184
183
  self.showwatermakeflag = true;
@@ -505,7 +504,6 @@ export default {
505
504
  username: this.$login.f.name,
506
505
  usertelephone: this.$login.f.f_user_telephone
507
506
  }
508
- // todo v4
509
507
  await this.$resetpost('rs/logic/logOut', data, {resolveMsg: '退出成功', rejectMsg: null})
510
508
  window.location.reload()
511
509
  }
@@ -151,7 +151,6 @@ let getwartermakr = async function (self) {
151
151
  tablename: 't_singlevalue',
152
152
  condition: " 1=1 and name=\'水印内容\'"
153
153
  };
154
- // todo v4
155
154
  let result = await self.$resetpost('rs/sql/saleSingleTable', {data: param}, {resolveMsg: null, rejectMsg: null});
156
155
  if (result && result.data.length > 0) {
157
156
  self.showwatermakeflag = true;
@@ -423,7 +422,6 @@ export default {
423
422
  username: this.$login.f.name,
424
423
  usertelephone: this.$login.f.f_user_telephone
425
424
  }
426
- // todo v4
427
425
  await this.$resetpost('rs/logic/logOut', data, {resolveMsg: '退出成功', rejectMsg: null})
428
426
  window.location.reload()
429
427
  }
@@ -162,7 +162,6 @@
162
162
  console.log('登录配置', self.config)
163
163
  if (self.config.isMac) {
164
164
  // 获取该登录人分公司下的mac配置
165
- // todo v4
166
165
  let getMacs = yield self.$resetpost('rs/sql/equipmentQuery', {data: {condition: `f_filialeids like '%${self.$login.f.f_orgids}%'`}}, {
167
166
  resolveMsg: null,
168
167
  rejectMsg: null
@@ -371,7 +370,6 @@
371
370
  if (this.config.distanceLogin) {
372
371
  if (this.$login && this.$login.getUrlParames('name') ) {
373
372
  let ename = this.$login.getUrlParames('name');
374
- // todo v4
375
373
  let logininfo = await this.$resetpost('rs/logic/getLoginData',{data:{ename:ename}},{resolveMsg: null, rejectMsg: null});
376
374
  if(logininfo.data){
377
375
  if(logininfo.data.ename && logininfo.data.password){