system-clients 3.1.74-xianyang → 3.1.79-xianyang

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.
@@ -1,315 +1,254 @@
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-4 form-group">
10
- <label class="font_normal_body">所属人员</label>
11
- <right-tree @re-res="getRes" :source="source"></right-tree>
12
- </div>
13
- <div class="col-sm-4 form-group" :class="[$v.f_terminal_number.required ? 'has-error' : '']">
14
- <label class="font_normal_body">设备编号</label>
15
- <input type="text" class="input_search" style="width: 60%" v-model="model.f_terminal_number"
16
- placeholder="设备编号" v-el:f_terminal_number
17
- v-validate:f_terminal_number='{required :true}'/>
18
- </div>
19
- <div class="col-sm-4 form-group" :class="[$v.f_terminal_name.required ? 'has-error' : '']">
20
- <label class="font_normal_body">设备名称</label>
21
- <input type="text" class="input_search" style="width: 60%" v-model="model.f_terminal_name"
22
- placeholder="设备名称"
23
- v-validate:f_terminal_name='{required: true}'/>
24
- </div>
25
- <div class="col-sm-4 form-group" :class="{'has-error': $v.f_equipment_type.required}">
26
- <label class="font_normal_body">设备类型</label>
27
- <input type="text" class="input_search" style="width: 60%" v-model="model.f_equipment_type"
28
- placeholder="设备类型"
29
- v-validate:f_equipment_type="{required: true}"/>
30
- </div>
31
- <div class="col-sm-4 form-group">
32
- <label class="font_normal_body">MAC&nbsp;号&nbsp;</label>
33
- <input type="text" class="input_search" style="width: 60%" v-model="model.f_mac_number" placeholder="MAC号">
34
- </div>
35
- <div class="col-sm-4 form-group">
36
- <label class="font_normal_body">机器编号</label>
37
- <input type="text" class="input_search" style="width: 60%" v-model="model.f_machine_number"
38
- placeholder="机器编号">
39
- </div>
40
- <div class="col-sm-4 form-group" :class="{'has-error': $v.f_phone.required}">
41
- <label class="font_normal_body">联系电话</label>
42
- <input type="text" class="input_search" style="width: 60%" v-model="model.f_phone" placeholder="联系电话"
43
- v-validate:f_phone="{required: true}">
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-4 form-group" :class="{'has-error': $v.f_address.required}">
47
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;所在地</label>
48
- <input type="text" class="input_search" style="width: 60%" v-model="model.f_address" placeholder="所在地"
49
- v-validate:f_address="{required: true}">
50
- </div>
51
- <div class="col-sm-4 form-group" :class="{'has-error': $v.f_bank_name.required}">
52
- <label class="font_normal_body">所属银行</label>
53
- <input type="text" class="input_search" style="width: 60%" v-model="model.f_bank_name" placeholder="所属银行"
54
- v-validate:f_bank_name="{required: true}">
55
- </div>
56
- </div>
57
- <div class="col-sm-12 form-group">
58
- <label class="font_normal_body ">&nbsp;&nbsp;&nbsp;备注&nbsp;&nbsp;&nbsp;</label>
59
- <textarea class="input_textarea" rows="3" style="width:80%;margin-top:5px"
60
- v-model="model.f_comments"></textarea>
61
- </div>
62
- </form>
63
- <div style="text-align:right;height:auto;">
64
- <button class="button_search" @click="uploadFiles()" v-if="info">上传图片</button>
65
- <button class="btn btn-info" @click="upgrade()" v-if="info && data.f_state==='正常'">升级</button>
66
- <button class="btn btn-success" @click="getEditState()" v-if="model.f_state === '停用' && info">启用</button>
67
- <button class="btn btn-danger" @click="getEditState()" v-if="model.f_state === '正常' && info">停用</button>
68
- <button class="btn button_search" @click="confirm()" :disabled="!$v.valid">确认</button>
69
- <button class="btn button_clear " @click="cancel()">取消</button>
70
- </div>
71
- <modal :show.sync="showfiles" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
72
- <article slot="modal-body">
73
- <upload :blodid="model.f_userinfo_id" :businessid="model.id" v-ref:upload fusetype="收费" isremark="true"
74
- style="width:auto"></upload>
75
- </article>
76
- <footer slot="modal-footer" class="modal-footer">
77
- </footer>
78
- </modal>
79
-
80
- <modal v-if="show" :show.sync="show" v-ref:modal backdrop="false">
81
- <header slot="modal-header" class="modal-header">
82
- <button type="button" class="close" @click="close"><span>&times;</span></button>
83
- <h4 class="modal-title">pos机升级</h4>
84
- </header>
85
- <article slot="modal-body" class="modal-body">
86
- <form class="form-horizontal">
87
- <div class="row">
88
- <div>
89
- <h4>是否升级?</h4>
90
- </div>
91
- <!-- <div class="col-sm-6 form-group">-->
92
- <!-- <label class="font_normal_body">参数名称</label>-->
93
- <!-- <input type="text" class="input_search" style="width: 60%" v-model="modifyItem.name" @keyup.enter="confirm">-->
94
- <!-- </div>-->
95
- <!-- <div class="col-sm-6 form-group" v-if="modifyItem.EntityType === 't_parameter'">-->
96
- <!-- <div class="checkbox">-->
97
- <!-- <label>-->
98
- <!-- <input type="checkbox" v-model="modifyItem.isGlobal" :checked="modifyItem.isGlobal">是否全局-->
99
- <!-- </label>-->
100
- <!-- </div>-->
101
- <!-- </div>-->
102
- </div>
103
- </form>
104
- </article>
105
- <footer slot="modal-footer" class="modal-footer">
106
- <button type="button" class="button_search button_spacing" @click='upgradeRoot()'>是</button>
107
- <button type="button" class="button_clear button_spacing" @click='close'>否</button>
108
- </footer>
109
- </modal>
110
- </validator>
111
-
112
- </div>
113
- </template>
114
- <script>
115
- import {PagedList} from 'vue-client'
116
-
117
- export default {
118
- data() {
119
- return {
120
- checkparam: false,
121
- source: `tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() != $role$))`,
122
- model: {
123
- f_terminal_number: '',
124
- f_terminal_name: '',
125
- f_mac_number: '',
126
- // f_username:'',
127
- f_bank_name: '',
128
- f_equipment_type: 'POS',
129
- f_state: '正常',
130
- f_machine_number: '',
131
- f_phone: '',
132
- f_comments: '',
133
- f_address: '',
134
- f_filialeids: '',
135
- f_orgid: ''
136
- },
137
- showfiles: false,
138
- show: false,
139
- infoadd: this.infoadd,
140
- isSelPop: false
141
- }
142
- },
143
- props: ['data', 'f_filialeids', 'info'],
144
-
145
- watch: {
146
- 'data'(val) {
147
- if (val) {
148
- this.edit(val)
149
- } else {
150
- this.initModel()
151
- }
152
- }
153
- },
154
- ready() {
155
- console.log('mac信息:', this.data)
156
- if (this.data) {
157
- this.edit(this.data)
158
- }
159
- console.log('查看是否隐藏', this.info)
160
- },
161
-
162
- methods: {
163
- recursiveSelOrg(val, flag) {
164
- if (val.parent) {
165
- if (val.parent.resourcetype === flag) {
166
- return {id: val.parent.id, name: val.parent.name}
167
- } else {
168
- return this.recursiveSelOrg(val.parent, flag)
169
- }
170
- } else {
171
- return {id: '', name: ''}
172
- }
173
- },
174
- getRes(val) {
175
- console.log('====================', val)
176
- if (val.orgobj.length === 1 && val.orgobj[0].resourcetype === 'user') {
177
-
178
- let org = this.recursiveSelOrg(val.orgobj[0], 'organization')
179
- this.model.f_user_orgid = org.id
180
- this.model.f_user_orgname = org.name
181
- let dep = this.recursiveSelOrg(val.orgobj[0], 'department')
182
- this.model.f_user_depid = dep.id
183
- this.model.f_user_depname = dep.name
184
-
185
- this.model.f_user_operatorid = val.orgobj[0].userid
186
- this.model.f_user_operator = val.orgobj[0].name
187
- this.isSelPop = true
188
- } else {
189
- // 不可提交
190
- this.isSelPop = false
191
- }
192
- },
193
- close() {
194
- this.show = false
195
- },
196
- uploadFiles() {
197
- this.showfiles = !this.showfiles
198
- },
199
- getEditState() {
200
- if (this.model.f_state === '正常') {
201
- this.$showMessage(`当前设备号: ${this.model.f_terminal_number} ,确认停用该设备?`, ['confirm', 'cancel']).then((res) => {
202
- if (res === 'confirm') {
203
- this.$showAlert(`已向设备号: ${this.model.f_terminal_number}发送停用指令,请稍后查看执行结果!`, 'success', 2500)
204
- this.model.f_state = '停用'
205
- try {
206
- // 测试接口
207
- // this.$resetpost('rs/logic/updatePosState', {data: {number: this.model.f_terminal_number, state: '停用'}}, {resolveMsg: null, rejectMsg: null}, 0)
208
- // .then((res) => {})
209
- this.$resetpost('rs/logic/batchPos', {data: {tasks: [this.data], taskState: 0}}, {
210
- rejectMsg: null,
211
- resolveMsg: null
212
- })
213
- } catch (error) {
214
- this.search()
215
- }
216
- }
217
- })
218
- } else if (this.model.f_state === '停用') {
219
- this.$showMessage(`当前设备号: ${this.model.f_terminal_number} ,确认启用该设备?`, ['confirm', 'cancel']).then((res) => {
220
- if (res === 'confirm') {
221
- this.$showAlert(`已向设备号: ${this.model.f_terminal_number}发送启用指令,请稍后查看执行结果!`, 'success', 2500)
222
- this.model.f_state = '正常'
223
- try {
224
- // 测试接口
225
- // this.$resetpost('rs/logic/getEditPosState', {data: {number: this.model.f_terminal_number, state: '正常'}}, {resolveMsg: null, rejectMsg: null}, 0)
226
- // .then((res) => {})
227
- this.$resetpost('rs/logic/batchPos', {data: {tasks: [this.data], taskState: 1}}, {
228
- rejectMsg: null,
229
- resolveMsg: null
230
- })
231
- } catch (error) {
232
- this.search()
233
- }
234
- }
235
- })
236
- }
237
- },
238
- editBeizhu(val) {
239
- this.editshow = true
240
- this.posBase = val
241
- },
242
-
243
- //升级
244
- upgrade() {
245
- this.show = true
246
- },
247
- upgradeRoot() {
248
- this.$resetpost('rs/logic/batchPos', {data: {tasks: [this.data], taskState: 2}}, {
249
- rejectMsg: null,
250
- resolveMsg: null
251
- })
252
- this.$dispatch('refresh')
253
- // this.$resetpost('rs/logic/t_equipment', {data: val}, {resolveMsg: null, rejectMsg: null}).then((res) => {
254
- // this.$dispatch('refresh')
255
- // }).catch((error) => {
256
- // this.$dispatch('refresh')
257
- // })
258
- },
259
- search() {
260
- this.$refs.paged.$refs.cri.search()
261
- },
262
- confirm() {
263
- // 如果是修改的话,只修改页面上用户填写的信息
264
- if (!this.info) {
265
- this.model.f_online = '离线'
266
- this.model.f_operator = this.$login.f.name
267
- this.model.f_orgid = this.$login.f.orgid
268
- this.model.f_filialeids = this.$login.f.orgid
269
- this.model.f_operatorid = this.$login.f.id
270
- this.model.f_orgname = this.$login.f.orgs
271
- this.model.f_depid = this.$login.f.depids
272
- this.model.f_depname = this.$login.f.deps
273
- this.model.f_orgstr = this.$login.f.fullids
274
- }
275
- this.$resetpost('rs/entity/t_equipment', this.model, {resolveMsg: '保存成功', rejectMsg: '保存失败'}).then((res) => {
276
- this.$dispatch('refresh')
277
- }).catch((error) => {
278
- this.$dispatch('refresh')
279
- })
280
-
281
- },
282
- edit(row) {
283
- this.model.f_terminal_number = row.f_terminal_number
284
- this.model.f_terminal_name = row.f_terminal_name
285
- this.model.f_bank_name = row.f_bank_name
286
- this.model.f_machine_number = row.f_machine_number
287
- this.model.f_mac_number = row.f_mac_number
288
- this.model.f_address = row.f_address
289
- this.model.f_phone = row.f_phone
290
- this.model.f_state = row.f_state
291
- this.model.f_comments = row.f_comments
292
- // this.model.f_username=row.f_username
293
- this.model.id = row.id
294
- this.model.f_filialeids = row.f_filialeids
295
- this.model.f_orgid = row.f_orgid
296
- },
297
- initModel() {
298
- delete this.model.id
299
- this.model.f_terminal_number = ''
300
- this.model.f_terminal_name = ''
301
- this.model.f_bank_name = ''
302
- this.model.f_machine_number = ''
303
- this.model.f_state = '正常'
304
- this.model.f_phone = ''
305
- this.model.f_address = ''
306
- this.model.f_filialeids = ''
307
- this.model.f_orgid = ''
308
- this.model.f_comments = ''
309
- },
310
- cancel() {
311
- this.$dispatch('close')
312
- }
313
- }
314
- }
315
- </script>
1
+ <template>
2
+ <div class="flex">
3
+ <criteria-paged :model="model" v-ref:paged>
4
+
5
+ <criteria partial='criteria' @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">公&nbsp;&nbsp;&nbsp;司</label>
10
+ <res-select restype='organization'
11
+ is-mul="false"
12
+ @res-select="$parent.$parent.getorg"
13
+ :initresid="$parent.$parent.curorgid">
14
+ </res-select>
15
+ </div>
16
+ <div class="col-sm-3 form-group">
17
+ <label class="font_normal_body">设备编号</label>
18
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_terminal_number"
19
+ condition="f_terminal_number like '%{}%'" placeholder="设备编号">
20
+ </div>
21
+ <div class="col-sm-3 form-group">
22
+ <label class="font_normal_body">所属人员</label>
23
+ <right-tree @re-res="$parent.$parent.getRes" :source="$parent.$parent.source"></right-tree>
24
+ </div>
25
+
26
+ <div class="span" style="float:right;">
27
+ <button type="button" class="button_search" @click="search()" v-el:cx>查询</button>
28
+ <button type="button" class="button_search" @click="$parent.$parent.add() " v-el:cx >新增</button>
29
+ <div style="float: right" class="button_spacing" :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
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_address"
37
+ condition="f_address like '%{}%'" placeholder="所在地">
38
+ </div>
39
+ <div class="col-sm-3 form-group">
40
+ <label class="font_normal_body">设备名称</label>
41
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_terminal_name"
42
+ condition="f_terminal_name like '%{}%'" placeholder="设备名称">
43
+ </div>
44
+ <div class="col-sm-3 form-group">
45
+ <label class="font_normal_body">机器编号</label>
46
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_machine_number"
47
+ condition="f_machine_number like '%{}%'" placeholder="机器编号">
48
+ </div>
49
+ <div class="col-sm-3 form-group">
50
+ <label class="font_normal_body">所属银行</label>
51
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_bank_name"
52
+ condition="f_bank_name like '%{}%'" placeholder="所属银行">
53
+ </div>
54
+ <div class="col-sm-3 form-group">
55
+ <label class="font_normal_body">联系电话</label>
56
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_phone"
57
+ condition="f_phone like '%{}%'" placeholder="联系电话">
58
+ </div>
59
+ </div>
60
+ </div>
61
+ </criteria>
62
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid >
63
+ <template partial='head'>
64
+ <tr>
65
+ <th><input type="checkbox" name="ischeckbox_all_id" v-model="$parent.$parent.$parent.isSelAll" :value.sync="$parent.$parent.$parent.isSelAll" /></th>
66
+ <th style="text-align:center;white-space:nowrap;">序号</th>
67
+ <th style="text-align:center;white-space:nowrap;">设备编号</th>
68
+ <th style="text-align:center;white-space:nowrap;" v-show="!$parent.$parent.$parent.isshowless">设备类型</th>
69
+ <th style="text-align:center;white-space:nowrap;">设备名称</th>
70
+ <th style="text-align:center;white-space:nowrap;">所属公司</th>
71
+ <th style="text-align:center;white-space:nowrap;">所属部门</th>
72
+ <th style="text-align:center;white-space:nowrap;">所属人员</th>
73
+ <th style="text-align:center;white-space:nowrap;">状态</th>
74
+ <th style="text-align:center;white-space:nowrap;">机器编号</th>
75
+ <th style="text-align:center;white-space:nowrap;">联系电话</th>
76
+ <th style="text-align:center;white-space:nowrap;">所在地</th>
77
+ <th style="text-align:center;white-space:nowrap;">所属银行</th>
78
+ <th style="text-align:center;white-space:nowrap;">电池电量</th>
79
+ <th style="text-align:center;white-space:nowrap;" v-show="!$parent.$parent.$parent.isshowless">是否登录</th>
80
+ <th style="text-align:center;white-space:nowrap;" v-show="!$parent.$parent.$parent.isshowless">更新时间</th>
81
+ <th style="text-align:center;white-space:nowrap;" v-show="!$parent.$parent.$parent.isshowless">操作时间</th>
82
+ <th style="text-align:center;white-space:nowrap;" v-show="!$parent.$parent.$parent.isshowless">软件版本</th>
83
+ <!-- <th style="text-align:center;white-space:nowrap;">使用人员</th>-->
84
+ <th style="text-align:center;white-space:nowrap;" v-show="!$parent.$parent.$parent.isshowless">操作人</th>
85
+ <th style="text-align:center;white-space:nowrap;">失联状态</th>
86
+ </tr>
87
+ </template>
88
+ <template partial='body':model="model">
89
+ <tr>
90
+ <td><input type="checkbox" name="checkbox_id" v-model="$parent.$parent.$parent.selPos" :value.sync="row"></td>
91
+ <td style="text-align:center;white-space:nowrap;">{{$index+1}}</td>
92
+ <td style="text-align:center;white-space:nowrap;"><span title="点击查看历史" @click="$parent.$parent.$parent.abcd(row)"><a>{{row.f_terminal_number}}</a></span></td>
93
+ <td style="text-align:center;white-space:nowrap;" v-show="!$parent.$parent.$parent.isshowless">{{row.f_equipment_type}}</td>
94
+ <td style="text-align:center;white-space:nowrap;">{{row.f_terminal_name}}</td>
95
+ <td style="text-align:center;white-space:nowrap;">{{row.f_user_orgname}}</td>
96
+ <td style="text-align:center;white-space:nowrap;">{{row.f_depname}}</td>
97
+ <td style="text-align:center;white-space:nowrap;">{{row.f_operator}}</td>
98
+
99
+ <td style="text-align:center;white-space:nowrap;">{{row.f_state}}</td>
100
+ <td style="text-align:center;white-space:nowrap;">{{row.f_machine_number}}</td>
101
+ <td style="text-align:center;white-space:nowrap;">{{row.f_phone}}</td>
102
+ <td style="text-align:center;white-space:nowrap;">{{row.f_address}}</td>
103
+ <td style="text-align:center;white-space:nowrap;">{{row.f_bank_name}}</td>
104
+ <td style="text-align:center;white-space:nowrap;">{{row.f_battery_level}}</td>
105
+ <td style="text-align:center;white-space:nowrap;" v-show="!$parent.$parent.$parent.isshowless">{{row.f_is_login}}</td>
106
+ <td style="text-align:center;white-space:nowrap;" v-show="!$parent.$parent.$parent.isshowless">{{row.f_hybrid_version}}</td>
107
+ <td style="text-align:center;white-space:nowrap;" v-show="!$parent.$parent.$parent.isshowless">{{row.f_operate_date}}</td>
108
+ <td style="text-align:center;white-space:nowrap;" v-show="!$parent.$parent.$parent.isshowless">{{row.f_appVer}}</td>
109
+ <!-- <td style="text-align:center;white-space:nowrap;" >{{row.f_username}}</td>-->
110
+ <td style="text-align:center;white-space:nowrap;" v-show="!$parent.$parent.$parent.isshowless">{{row.f_operator}}</td>
111
+ <td style="text-align:center;white-space:nowrap;" >{{row.isunknown}}</td>
112
+ </tr>
113
+ </template>
114
+ </data-grid>
115
+ </criteria-paged>
116
+ </div>
117
+ <modal v-show="infoshow" :show.sync="infoshow" v-ref:modal backdrop="false" width="800px" title="终端历史信息">
118
+ <article slot="modal-body" class="modal-body">
119
+ <criteria-paged :model="model2" v-ref:paged2>
120
+ <data-grid :model="model2" v-ref:grid2 partial='list'>
121
+ <template partial='head'>
122
+ <tr>
123
+ <!--<th style="padding: 0;border: 0">
124
+ <input type="checkbox" id="f_operator" v-model="$parent.$parent.$parent.all[model.pageIndex-1]"
125
+ @change="$parent.$parent.$parent.select()" style="width: 22px;height: 22px"/>
126
+ </th>-->
127
+ <th><nobr>序号</nobr></th>
128
+ <th><nobr>终端号</nobr></th>
129
+ <th><nobr>上次上报时间</nobr></th>
130
+ <th><nobr>本次上报时间</nobr></th>
131
+ <th><nobr><b>状态</b></nobr></th>
132
+ </tr>
133
+ </template>
134
+ <template partial='body'>
135
+ <td style="text-align: center;">{{$index + 1}}</td>
136
+ <td style="text-align: center;">{{row.f_terminal_number}}</td>
137
+ <td style="text-align: center;">{{row.f_update_date}}</td>
138
+ <td style="text-align: center;">{{row.f_update_date }}</td>
139
+ <td style="text-align: center;"><b>{{row.f_pos_state}}</b></td>
140
+ </template>
141
+ </data-grid>
142
+ </criteria-paged>
143
+ </article>
144
+ <footer slot="modal-footer" class="modal-footer">
145
+ <button type="button" class="btn btn-success" @click='infoclose'>关闭</button>
146
+ </footer>
147
+ </modal>
148
+ </template>
149
+
150
+ <script>
151
+
152
+ import {PagedList} from 'vue-client'
153
+
154
+ export default {
155
+ title: '终端控制',
156
+ components: {},
157
+ data () {
158
+ return {
159
+ source: `tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() != $role$))`,
160
+ model: new PagedList('rs/sql/equipmentQuery', 20),
161
+ model2: new PagedList('rs/sql/singleTable', 30, {tablename: '`t_poshistory`'}),
162
+ curorgid: [this.f_filialeid],
163
+ f_orgid: '',
164
+ f_filialeids: '',
165
+ criteriaShow: false,
166
+ infoadd: false,
167
+ selPos: [],
168
+ isSelAll: false, // 默认不全选
169
+ infoshow: false
170
+ }
171
+ },
172
+ props: ['f_filialeid','isshowless'],
173
+ ready () {
174
+ this.search()
175
+ },
176
+ watch:{
177
+ // 'selPos'(val){
178
+ // console.log(val)
179
+ // },
180
+ 'isSelAll'(val){
181
+ console.log('-------', val)
182
+ if (val) {
183
+ // 对当前页面全选
184
+ this.selPos = []
185
+ for (const sel of this.model.rows) {
186
+ // if (this.selPos.indexOf(sel.id) < 0){
187
+ this.selPos.push(sel)
188
+ // }
189
+ }
190
+ } else {
191
+ // 取消全选
192
+ this.selPos = []
193
+ }
194
+ }
195
+ },
196
+ methods: {
197
+ getRes(val){
198
+ if (val.orgobj.length === 1 && val.orgobj[0].resourcetype === 'user'){
199
+ this.$refs.paged.$refs.cri.model.f_user_operatorid=val.orgobj[0].userid
200
+ this.$refs.paged.$refs.cri.model.f_user_operator=val.orgobj[0].name
201
+ } else {
202
+ this.$refs.paged.$refs.cri.model.f_user_operatorid=''
203
+ this.$refs.paged.$refs.cri.model.f_user_operator=''
204
+ }
205
+ },
206
+ infoclose(){
207
+ this.infoshow=false
208
+ },
209
+ abcd (row) {
210
+ console.log("chakan",row)
211
+ let condition = `f_terminal_number = '${row.f_terminal_number}' order by id desc`
212
+ this.model2.search(condition)
213
+ this.infoshow = true
214
+ },
215
+ search () {
216
+ console.log("111111111111111111111111111111111111")
217
+ this.$refs.paged.$refs.cri.search()
218
+ },
219
+
220
+ selfSearch (args) {
221
+ console.log(args)
222
+ if (args.model.f_user_operatorid && args.model.f_user_operator){
223
+ args.condition = `${args.condition} and f_user_operatorid = '${args.model.f_user_operatorid}'
224
+ and f_user_operator = '${args.model.f_user_operator}'`
225
+ }
226
+ args.condition = `${args.condition} and f_equipment_type = 'POS' and f_orgid = '${this.f_filialeid ? this.f_orgid: this.$login.f.orgid}'`
227
+ this.model.search(args.condition, this.model)
228
+ this.$dispatch('research')
229
+ },
230
+
231
+ add () {
232
+ this.infoadd=false
233
+ // if (this.f_filialeid) {
234
+ this.$dispatch('add', this.f_filialeid)
235
+ // } else {
236
+ // this.$showAlert('请先选择左上角的所在分公司', 'warning', 2000)
237
+ // }
238
+ },
239
+
240
+ getorg (val) {
241
+ console.log("====================", val)
242
+ this.f_orgid = val[0]
243
+ this.f_filialeid = val[0]
244
+ // this.search()
245
+ },
246
+ hidden(){
247
+ this.criteriaShow = !this.criteriaShow
248
+ }
249
+ },
250
+ computed: {
251
+
252
+ }
253
+ }
254
+ </script>