system-clients 3.2.90-temp → 3.2.90-tongchuan

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 (28) 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/8.5/checksums/checksums.lock +0 -0
  11. package/.gradle/8.5/dependencies-accessors/dependencies-accessors.lock +0 -0
  12. package/.gradle/8.5/executionHistory/executionHistory.bin +0 -0
  13. package/.gradle/8.5/executionHistory/executionHistory.lock +0 -0
  14. package/.gradle/8.5/fileHashes/fileHashes.bin +0 -0
  15. package/.gradle/8.5/fileHashes/fileHashes.lock +0 -0
  16. package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  17. package/.gradle/buildOutputCleanup/cache.properties +1 -1
  18. package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  19. package/.gradle/file-system.probe +0 -0
  20. package/package.json +1 -1
  21. package/src/components/Main.vue +2 -0
  22. package/src/components/server/Login.vue +1 -1
  23. package/src/components/server/ResSelect.vue +0 -3
  24. package/src/filiale/tongchuan/Main.vue +15 -0
  25. package/src/filiale/bayan/PosAdd.vue +0 -369
  26. package/src/filiale/bayan/PosList.vue +0 -349
  27. package/src/filiale/bayan/PosManage.vue +0 -138
  28. package/src/filiale/bayan/system.js +0 -6
File without changes
@@ -1,2 +1,2 @@
1
- #Fri Dec 20 09:28:00 CST 2024
1
+ #Thu Nov 27 18:20:00 CST 2025
2
2
  gradle.version=8.5
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "system-clients",
3
- "version": "3.2.90-temp",
3
+ "version": "3.2.90-tongchuan",
4
4
  "description": "系统基础框架",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -321,7 +321,9 @@ let createWaterMark = function (userName) {
321
321
  // }
322
322
  this.changeShow()
323
323
  const istelRemindTimes =this.$appdata.getSingleValue("是否开启工单提醒定时器")
324
+ this.getDaiBan()
324
325
  if(istelRemindTimes=='是'){
326
+ this.getOrderList()
325
327
  this.getTimesgotoWorkOrderSite()
326
328
  }
327
329
  const isapplyRemind =this.$appdata.getSingleValue("是否开启提醒")
@@ -313,7 +313,7 @@ export default {
313
313
  // 那些角色可以定时获取预约提示
314
314
  msgRole : '预约处理人员',
315
315
  // 定时获取提示间隔 单位:分钟
316
- times: 25,
316
+ times: 60,
317
317
  approve: false, // 是否获取审核提醒
318
318
  approveTimes: 1 // 审核时间见间隔
319
319
  },
@@ -161,9 +161,6 @@
161
161
  'parentresid'(){
162
162
  this.dealdata()
163
163
  },
164
- 'initresid'(){
165
- this.dealdata()
166
- }
167
164
  },
168
165
  }
169
166
  </script>
@@ -308,6 +308,7 @@ let createWaterMark = function (userName) {
308
308
  },
309
309
  ready() {
310
310
  getwartermakr(this);
311
+ this.getTimesgotoWzkfPage()
311
312
  let component = this.$login.getUrlCompileParames('component')
312
313
  if (component) {
313
314
  this.isManger = true
@@ -479,6 +480,20 @@ let createWaterMark = function (userName) {
479
480
  this.newTipShow = true
480
481
  }
481
482
  },
483
+ getTimesgotoWzkfPage(){
484
+ let teltimes = 2*60*1000 // 两分钟
485
+ try {
486
+ this.intervaltx =setInterval(()=>{
487
+ let msg = localStorage.getItem('wzKfMessage')
488
+ if(msg){
489
+ localStorage.removeItem('wzKfMessage')
490
+ this.$showMessage(`你有${msg}条客户消息待处理,请尽快前往文字客服页面进行处理`)
491
+ }
492
+ },teltimes)
493
+ }catch (e) {
494
+ console.log('捕获到异常', e)
495
+ }
496
+ },
482
497
  getTimesgotoWorkOrderSite(){
483
498
  let teltimes = 2*60*1000 // 两分钟
484
499
  try {
@@ -1,369 +0,0 @@
1
- <template>
2
- <div class="auto select-overspread">
3
- <validator name='v'>
4
- <ul class="nav nav-tabs" >
5
- <li role="presentation" class="active"><a href="#">POS</a></li>
6
- </ul>
7
- <form novalidate class="form-horizontal" >
8
- <div class="row">
9
- <div class="col-sm-6 form-group">
10
- <label class="font_normal_body">&ensp;公&emsp;&emsp;司&ensp;</label>
11
- <right-tree @re-res="getRes1"></right-tree>
12
- </div>
13
- <div class="col-sm-6 form-group">
14
- <label class="font_normal_body">设备负责人</label>
15
- <right-tree @re-res="getRes" :source="source"></right-tree>
16
- </div>
17
- <div class="col-sm-6 form-group" :class="[$v.f_terminal_number.required ? 'has-error' : '']">
18
- <label class="font_normal_body">设备编号</label>
19
- <input type="text" class="input_search" style="width: 60%" v-model="model.f_terminal_number" placeholder="设备编号" v-el:f_terminal_number
20
- v-validate:f_terminal_number='{required :true}' />
21
- </div>
22
- <div class="col-sm-6 form-group" :class="[$v.f_terminal_name.required ? 'has-error' : '']">
23
- <label class="font_normal_body">&ensp;设备名称&ensp;</label>
24
- <input type="text" class="input_search" style="width: 60%" v-model="model.f_terminal_name" placeholder="设备名称"
25
- v-validate:f_terminal_name='{required: true}' />
26
- </div>
27
- <div class="col-sm-6 form-group" :class="{'has-error': $v.f_equipment_type.required}">
28
- <label class="font_normal_body">设备类型</label>
29
- <input type="text" class="input_search" style="width: 60%" v-model="model.f_equipment_type" placeholder="设备类型"
30
- v-validate:f_equipment_type="{required: true}" />
31
- </div>
32
- <div class="col-sm-6 form-group">
33
- <label class="font_normal_body" >&ensp;MAC&nbsp;号&nbsp;&ensp;</label>
34
- <input type="text" class="input_search" style="width: 60%" v-model="model.f_mac_number" placeholder="MAC号" >
35
- </div>
36
- <div class="col-sm-6 form-group">
37
- <label class="font_normal_body" >机器编号</label>
38
- <input type="text" class="input_search" style="width: 60%" v-model="model.f_machine_number" placeholder="机器编号" >
39
- </div>
40
- <div class="col-sm-6 form-group" :class="{'has-error': $v.f_phone.required}">
41
- <label class="font_normal_body">&ensp;联系电话&ensp;</label>
42
- <input type="text" class="input_search" style="width: 60%" v-model="model.f_phone" placeholder="联系电话"
43
- v-validate:f_phone="{required: true, minlength:7, maxlength: 11}" title="手机号必须7-11位">
44
- <!-- <div class="font_normal_body" v-if="$v.f_phone.minlength || $v.f_phone.maxlength"><span>手机号必须7-11位</span></div>-->
45
- </div>
46
- <div class="col-sm-6 form-group" :class="{'has-error': $v.f_bank_name.required}">
47
- <label class="font_normal_body">所属银行</label>
48
- <v-select id="f_charge_type"
49
- v-model="model.f_bank_name"
50
- placeholder='所属银行'
51
- :value.sync="model.f_bank_name"
52
- :options='bankAffiliation'
53
- :value-single="true"
54
- v-validate:f_bank_name="{ required: true }"
55
- close-on-select clear-button>
56
- </v-select>
57
- </div>
58
- <div class="col-sm-6 form-group">
59
- <label class="font_normal_body">&ensp;所属参数&ensp;</label>
60
- <v-select id="f_charge_type"
61
- v-model="model.f_param_id"
62
- placeholder='所属参数'
63
- :value.sync="model.f_param_id"
64
- :options='ParamTypeItems'
65
- close-on-select clear-button>
66
- </v-select>
67
- </div>
68
- <div class="col-sm-6 form-group">
69
- <label class="font_normal_body">所属部门</label>
70
- <res-select restype='department'
71
- :is-mul="false"
72
- @res-select="getdep"
73
- :parentresid="depresid"
74
- :initresid="initresid">
75
- </res-select>
76
- </div>
77
-
78
- </div>
79
- <div class="col-sm-12 form-group" :class="{'has-error': $v.f_address.required}">
80
- <label class="font_normal_body">&ensp;放置地点&ensp;</label>
81
- <textarea class="input_textarea" style="width: 80%" v-model="model.f_address" placeholder="所在地"
82
- v-validate:f_address="{required: true}" rows="2"></textarea>
83
- </div>
84
- <div class="col-sm-12 form-group">
85
- <label class="font_normal_body " >&ensp;&nbsp;&nbsp;&nbsp;&nbsp;备注&nbsp;&nbsp;&nbsp;&ensp;</label>
86
- <textarea class="input_textarea" rows="3" style="width:80%;margin-top:5px" v-model="model.f_comments"></textarea>
87
- </div>
88
- </form>
89
- <div style="text-align:right;height:auto;">
90
- <button class="button_search" @click="uploadFiles()" v-if="info">上传图片</button>
91
- <button class="btn btn-info" @click="upgrade()" v-if="info && data.f_state==='正常'">升级</button>
92
- <button class="btn btn-success" @click="getEditState()" v-if="model.f_state === '停用' && info" >启用</button>
93
- <button class="btn btn-danger" @click="getEditState()" v-if="model.f_state === '正常' && info" >停用</button>
94
- <button class="btn button_search" @click="confirm()" :disabled="!$v.valid" >确认</button>
95
- <button class="btn button_clear " @click="cancel()" >取消</button>
96
- </div>
97
- <modal :show.sync="showfiles" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
98
- <article slot="modal-body" style="height: 500px">
99
- <upload v-show="showfiles" :businessid="model.id" v-ref:upload fusetype="POS" isremark="true" style="width:auto" ></upload>
100
- </article>
101
- <footer slot="modal-footer" class="modal-footer">
102
- </footer>
103
- </modal>
104
- <modal v-if="show" :show.sync="show" v-ref:modal backdrop="false" >
105
- <header slot="modal-header" class="modal-header">
106
- <button type="button" class="close" @click="close"><span>&times;</span></button>
107
- <h4 class="modal-title">pos机升级</h4>
108
- </header>
109
- <article slot="modal-body" class="modal-body">
110
- <form class="form-horizontal">
111
- <div class="row">
112
- <div>
113
- <h4>是否升级?</h4>
114
- </div>
115
- <!-- <div class="col-sm-6 form-group">-->
116
- <!-- <label class="font_normal_body">参数名称</label>-->
117
- <!-- <input type="text" class="input_search" style="width: 60%" v-model="modifyItem.name" @keyup.enter="confirm">-->
118
- <!-- </div>-->
119
- <!-- <div class="col-sm-6 form-group" v-if="modifyItem.EntityType === 't_parameter'">-->
120
- <!-- <div class="checkbox">-->
121
- <!-- <label>-->
122
- <!-- <input type="checkbox" v-model="modifyItem.isGlobal" :checked="modifyItem.isGlobal">是否全局-->
123
- <!-- </label>-->
124
- <!-- </div>-->
125
- <!-- </div>-->
126
- </div>
127
- </form>
128
- </article>
129
- <footer slot="modal-footer" class="modal-footer">
130
- <button type="button" class="button_search button_spacing" @click='upgradeRoot()'>是</button>
131
- <button type="button" class="button_clear button_spacing" @click='close'>否</button>
132
- </footer>
133
- </modal>
134
- </validator>
135
-
136
- </div>
137
- </template>
138
- <script>
139
- import {HttpResetClass, PagedList} from 'vue-client'
140
- export default {
141
- data () {
142
- return {
143
- depname: '',
144
- f_depid: '',
145
- orgname: '',
146
- initresid: [], // 用于存放初始化选中的部门 ID
147
- depresid: [this.$login.f.depids],
148
- depid: [this.f_depid],
149
- f_orgid: this.$login.f.orgid,
150
- userresid: [this.$login.f.id],
151
- checkparam: false,
152
- bankAffiliation: this.$appdata.getParam('所属银行'),
153
- source: `tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() != $role$))`,
154
- userid: this.$login.f.id,
155
- model: {
156
- f_terminal_number: '',
157
- f_terminal_name: '',
158
- f_depname: '',
159
- f_mac_number:'',
160
- // f_username:'',
161
- f_bank_name: '微信',
162
- f_equipment_type: 'POS',
163
- f_state: '正常',
164
- f_machine_number: '',
165
- f_phone:'',
166
- f_comments:'',
167
- f_address:'',
168
- f_filialeids: '',
169
- f_orgid:'',
170
- f_param_id:''
171
- },
172
- ParamTypeItems:[],
173
- showfiles: false,
174
- show:false,
175
- infoadd: this.infoadd,
176
- isSelPop: false
177
- }
178
- },
179
- props: ['data', 'f_filialeids','info'],
180
-
181
- watch: {
182
- 'data' (val) {
183
- if (val) {
184
- this.edit(val)
185
- } else {
186
- this.initModel()
187
- }
188
- }
189
- },
190
- async ready () {
191
- console.log('mac信息:', this.data)
192
- if (this.data) {
193
- this.edit(this.data)
194
- }
195
- console.log('查看是否隐藏', this.info)
196
- try {
197
- // 获取参数
198
- let http = new HttpResetClass()
199
- let res = await http.load('POST', 'rs/sql/get_posParam', {data: {condition : ' 1 = 1 '}}, {
200
- resolveMsg: null,
201
- rejectMsg: '获取参数出错!!'
202
- })
203
- this.ParamTypeItems = res.data.map(item=>{
204
- return {
205
- label:item.name,
206
- value:item.f_param_id
207
- }
208
- })
209
- } catch (e) {
210
- console.log(e)
211
- }
212
- },
213
-
214
- methods: {
215
- getRes1 (obj) {
216
- this.orgname = obj.res[0]
217
- this.depresid = obj.resids
218
- this.f_orgid = obj.resids
219
- this.userresid = obj.resids
220
- },
221
- getdep (obj, val) {
222
- this.depname = val
223
- // this.userresid = obj
224
- this.f_depid = obj
225
- },
226
- recursiveSelOrg(val, flag){
227
- if(val.parent){
228
- if(val.parent.resourcetype===flag){
229
- return {id: val.parent.id, name: val.parent.name}
230
- } else {
231
- return this.recursiveSelOrg(val.parent,flag)
232
- }
233
- } else {
234
- return {id: '', name: ''}
235
- }
236
- },
237
- getRes(val){
238
- console.log('====================', val)
239
- if (val.orgobj.length === 1 && val.orgobj[0].resourcetype === 'user'){
240
-
241
- let org = this.recursiveSelOrg(val.orgobj[0], 'organization')
242
- this.model.f_orgid=org.id
243
- this.model.f_orgname=org.name
244
- let dep = this.recursiveSelOrg(val.orgobj[0], 'department')
245
- this.model.f_depid=dep.id
246
- this.model.f_depname=dep.name
247
-
248
- this.model.f_operatorid = val.orgobj[0].userid
249
- this.model.f_operator=val.orgobj[0].name
250
- this.isSelPop = true
251
- } else {
252
- // 不可提交
253
- this.isSelPop = false
254
- }
255
- },
256
- close () {
257
- this.show = false
258
- },
259
- uploadFiles(){
260
- this.showfiles= !this.showfiles
261
- },
262
- getEditState () {
263
- if (this.model.f_state === '正常') {
264
- this.$showMessage(`当前设备号: ${this.model.f_terminal_number} ,确认停用该设备?`, ['confirm', 'cancel']).then((res) => {
265
- if (res === 'confirm') {
266
- this.$showAlert(`已向设备号: ${this.model.f_terminal_number}发送停用指令,请稍后查看执行结果!`, 'success', 2500)
267
- this.model.f_state = '停用'
268
- try {
269
- // 测试接口
270
- // this.$resetpost('rs/logic/updatePosState', {data: {number: this.model.f_terminal_number, state: '停用'}}, {resolveMsg: null, rejectMsg: null}, 0)
271
- // .then((res) => {})
272
- this.$resetpost('rs/logic/batchPos',{data: {tasks: [this.data], taskState: 0}}, {rejectMsg: null, resolveMsg: null})
273
- } catch (error) {
274
- this.search()
275
- }
276
- }
277
- })
278
- } else if (this.model.f_state === '停用'){
279
- this.$showMessage(`当前设备号: ${this.model.f_terminal_number} ,确认启用该设备?`, ['confirm', 'cancel']).then((res) => {
280
- if (res === 'confirm') {
281
- this.$showAlert(`已向设备号: ${this.model.f_terminal_number}发送启用指令,请稍后查看执行结果!`, 'success', 2500)
282
- this.model.f_state = '正常'
283
- try {
284
- // 测试接口
285
- // this.$resetpost('rs/logic/getEditPosState', {data: {number: this.model.f_terminal_number, state: '正常'}}, {resolveMsg: null, rejectMsg: null}, 0)
286
- // .then((res) => {})
287
- this.$resetpost('rs/logic/batchPos',{data: {tasks: [this.data], taskState: 1}}, {rejectMsg: null, resolveMsg: null})
288
- } catch (error) {
289
- this.search()
290
- }
291
- }
292
- })
293
- }
294
- },
295
- editBeizhu (val) {
296
- this.editshow = true
297
- this.posBase = val
298
- },
299
-
300
- //升级
301
- upgrade(){
302
- this.show=true
303
- },
304
- upgradeRoot() {
305
- this.$resetpost('rs/logic/batchPos',{data: {tasks: [this.data], taskState: 2}}, {rejectMsg: null, resolveMsg: null})
306
- this.$dispatch('refresh')
307
- },
308
- search () {
309
- this.$refs.paged.$refs.cri.search()
310
- },
311
- confirm () {
312
- // 如果是修改的话,只修改页面上用户填写的信息
313
- this.model.f_depname = this.depname[0]
314
- this.model.f_depid = this.f_depid[0]
315
- if (!this.info) {
316
- this.model.f_online = '离线'
317
- this.model.f_operator = this.$login.f.name
318
- this.model.f_orgid = this.$login.f.orgid
319
- this.model.f_filialeids = this.$login.f.orgid
320
- this.model.f_operatorid = this.$login.f.id
321
- this.model.f_orgname = this.$login.f.orgs
322
- // this.model.f_depname=this.depname[0]
323
- this.model.f_orgstr = this.$login.f.fullids
324
- }
325
- this.$resetpost('rs/entity/t_equipment', this.model, {resolveMsg: '保存成功', rejectMsg: '保存失败'}).then((res) => {
326
- this.$dispatch('refresh')
327
- }).catch((error) => {
328
- this.$dispatch('refresh')
329
- })
330
-
331
- },
332
- edit (row) {
333
- this.model.f_terminal_number = row.f_terminal_number
334
- this.model.f_terminal_name = row.f_terminal_name
335
- this.model.f_bank_name = row.f_bank_name
336
- this.model.f_machine_number = row.f_machine_number
337
- this.model.f_mac_number = row.f_mac_number
338
- this.model.f_address = row.f_address
339
- this.model.f_phone = row.f_phone
340
- this.model.f_state = row.f_state
341
- this.model.f_comments=row.f_comments
342
- this.model.f_param_id=row.f_param_id
343
- // this.model.f_username=row.f_username
344
- this.model.id = row.id
345
- this.model.f_filialeids=row.f_filialeids
346
- this.model.f_orgid = row.f_orgid
347
- this.model.f_depname = row.f_depname
348
- this.initresid = [row.f_depid]
349
- },
350
- initModel() {
351
- delete this.model.id
352
- this.model.f_terminal_number = ''
353
- this.model.f_terminal_name = ''
354
- this.model.f_bank_name = ''
355
- this.model.f_machine_number = ''
356
- this.model.f_state = '正常'
357
- this.model.f_phone = ''
358
- this.model.f_param_id = ''
359
- this.model.f_address = ''
360
- this.model.f_filialeids = ''
361
- this.model.f_orgid = ''
362
- this.model.f_comments = ''
363
- },
364
- cancel() {
365
- this.$dispatch('close')
366
- }
367
- }
368
- }
369
- </script>
@@ -1,349 +0,0 @@
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>
@@ -1,138 +0,0 @@
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>
@@ -1,6 +0,0 @@
1
- // 分公司特殊组件页面注册
2
-
3
-
4
- exports.specialComp = {
5
- 'pos-manage': (resolve) => { require(['./PosManage'], resolve) }
6
- }