system-clients 3.1.93 → 3.1.95-aode
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.
- package/.eslintrc.js +16 -16
- package/build/webpack.base.conf.js +78 -85
- package/package.json +102 -102
- package/src/components/Main.vue +30 -107
- package/src/components/equipment/EquipmentManage.vue +65 -65
- package/src/components/equipment/PcAdd.vue +5 -5
- package/src/components/equipment/PcList.vue +5 -5
- package/src/components/equipment/PhoneAdd.vue +4 -4
- package/src/components/equipment/PhoneList.vue +4 -4
- package/src/components/equipment/PosAdd.vue +137 -323
- package/src/components/equipment/PosList.vue +164 -294
- package/src/components/equipment/PosManage.vue +67 -138
- package/src/components/parammanage/ParamManage.vue +2 -2
- package/src/components/parammanage/ParamPage.vue +7 -7
- package/src/components/parammanage/SinglePage.vue +4 -4
- package/src/components/server/Login.vue +42 -48
- package/src/components/server/ResSelect.vue +0 -5
- package/src/components/server/ResSelectGroup.vue +118 -155
- package/src/components/server/RightTree.vue +257 -262
- package/src/plugins/GetLoginInfoService.js +7 -7
- package/src/styles/less/aofeng/standard.less +60 -446
- package/src/styles/less/aofeng/themeOne/BinaryTemplate.less +13 -13
- package/src/styles/less/aofeng/themeOne/systemStyle.less +6 -6
- package/src/styles/less/tables.less +0 -50
- package/src/styles/less/type.less +3 -16
- package/src/styles/less/variables.less +3 -6
- package/src/system.js +83 -93
- package/static/aodelogo.png +0 -0
- package/static/aodenewlogo.png +0 -0
- package/static/{logo.png → ewmlogo.png} +0 -0
- package/.gradle/5.2.1/gc.properties +0 -0
- package/.gradle/vcs-1/gc.properties +0 -0
- package/src/components/TabButton.vue +0 -201
- package/src/components/Tabs.vue +0 -67
- package/src/components/equipment/PosManageBoth.vue +0 -125
- package/src/components/equipment/PosParamAdd.vue +0 -236
- package/src/components/equipment/PosParamList.vue +0 -121
- package/src/components/equipment/PosParamManage.vue +0 -51
- package/src/components/server/ImageVieweTest.vue +0 -56
- package/src/components/server/ImageViewer.vue +0 -350
- package/src/components/server/PcdBuildingSelect.vue +0 -241
- package/src/styles/less/manageStyle/manageStyle/manageChile.less +0 -180
- package/src/styles/less/manageStyle/manageStyle/manageStyle.less +0 -1102
- package/src/styles/less/manageStyle/manageStyle/safeStyle.less +0 -498
- package/static/newStyle/about-us.png +0 -0
- package/yarn-error.log +0 -6896
@@ -1,323 +1,137 @@
|
|
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
|
8
|
-
<div class="row">
|
9
|
-
<div class="col-sm-6
|
10
|
-
<label class="font_normal_body"
|
11
|
-
<
|
12
|
-
</div>
|
13
|
-
<div class="col-sm-6
|
14
|
-
<label class="font_normal_body"
|
15
|
-
<input type="text" class="input_search" style="width: 60%" v-model="model.
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
<
|
21
|
-
|
22
|
-
</div>
|
23
|
-
<div class="col-sm-6
|
24
|
-
<label class="font_normal_body"
|
25
|
-
<input type="text" class="input_search" style="width: 60%" v-model="model.
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
<
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
<
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
model
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
f_param_id:''
|
139
|
-
},
|
140
|
-
ParamTypeItems:[],
|
141
|
-
showfiles: false,
|
142
|
-
show:false,
|
143
|
-
infoadd: this.infoadd,
|
144
|
-
isSelPop: false
|
145
|
-
}
|
146
|
-
},
|
147
|
-
props: ['data', 'f_filialeids','info'],
|
148
|
-
|
149
|
-
watch: {
|
150
|
-
'data' (val) {
|
151
|
-
if (val) {
|
152
|
-
this.edit(val)
|
153
|
-
} else {
|
154
|
-
this.initModel()
|
155
|
-
}
|
156
|
-
}
|
157
|
-
},
|
158
|
-
async ready () {
|
159
|
-
console.log('mac信息:', this.data)
|
160
|
-
if (this.data) {
|
161
|
-
this.edit(this.data)
|
162
|
-
}
|
163
|
-
console.log('查看是否隐藏', this.info)
|
164
|
-
try {
|
165
|
-
// 获取参数
|
166
|
-
let http = new HttpResetClass()
|
167
|
-
let res = await http.load('POST', 'rs/sql/get_posParam', {data: {condition : ' 1 = 1 '}}, {
|
168
|
-
resolveMsg: null,
|
169
|
-
rejectMsg: '获取参数出错!!'
|
170
|
-
})
|
171
|
-
this.ParamTypeItems = res.data.map(item=>{
|
172
|
-
return {
|
173
|
-
label:item.name,
|
174
|
-
value:item.f_param_id
|
175
|
-
}
|
176
|
-
})
|
177
|
-
} catch (e) {
|
178
|
-
console.log(e)
|
179
|
-
}
|
180
|
-
},
|
181
|
-
|
182
|
-
methods: {
|
183
|
-
recursiveSelOrg(val, flag){
|
184
|
-
if(val.parent){
|
185
|
-
if(val.parent.resourcetype===flag){
|
186
|
-
return {id: val.parent.id, name: val.parent.name}
|
187
|
-
} else {
|
188
|
-
return this.recursiveSelOrg(val.parent,flag)
|
189
|
-
}
|
190
|
-
} else {
|
191
|
-
return {id: '', name: ''}
|
192
|
-
}
|
193
|
-
},
|
194
|
-
getRes(val){
|
195
|
-
console.log('====================', val)
|
196
|
-
if (val.orgobj.length === 1 && val.orgobj[0].resourcetype === 'user'){
|
197
|
-
|
198
|
-
let org = this.recursiveSelOrg(val.orgobj[0], 'organization')
|
199
|
-
this.model.f_user_orgid=org.id
|
200
|
-
this.model.f_user_orgname=org.name
|
201
|
-
let dep = this.recursiveSelOrg(val.orgobj[0], 'department')
|
202
|
-
this.model.f_user_depid=dep.id
|
203
|
-
this.model.f_user_depname=dep.name
|
204
|
-
|
205
|
-
this.model.f_user_operatorid = val.orgobj[0].userid
|
206
|
-
this.model.f_user_operator=val.orgobj[0].name
|
207
|
-
this.isSelPop = true
|
208
|
-
} else {
|
209
|
-
// 不可提交
|
210
|
-
this.isSelPop = false
|
211
|
-
}
|
212
|
-
},
|
213
|
-
close () {
|
214
|
-
this.show = false
|
215
|
-
},
|
216
|
-
uploadFiles(){
|
217
|
-
this.showfiles= !this.showfiles
|
218
|
-
},
|
219
|
-
getEditState () {
|
220
|
-
if (this.model.f_state === '正常') {
|
221
|
-
this.$showMessage(`当前设备号: ${this.model.f_terminal_number} ,确认停用该设备?`, ['confirm', 'cancel']).then((res) => {
|
222
|
-
if (res === 'confirm') {
|
223
|
-
this.$showAlert(`已向设备号: ${this.model.f_terminal_number}发送停用指令,请稍后查看执行结果!`, 'success', 2500)
|
224
|
-
this.model.f_state = '停用'
|
225
|
-
try {
|
226
|
-
// 测试接口
|
227
|
-
// this.$resetpost('rs/logic/updatePosState', {data: {number: this.model.f_terminal_number, state: '停用'}}, {resolveMsg: null, rejectMsg: null}, 0)
|
228
|
-
// .then((res) => {})
|
229
|
-
this.$resetpost('rs/logic/batchPos',{data: {tasks: [this.data], taskState: 0}}, {rejectMsg: null, resolveMsg: null})
|
230
|
-
} catch (error) {
|
231
|
-
this.search()
|
232
|
-
}
|
233
|
-
}
|
234
|
-
})
|
235
|
-
} else if (this.model.f_state === '停用'){
|
236
|
-
this.$showMessage(`当前设备号: ${this.model.f_terminal_number} ,确认启用该设备?`, ['confirm', 'cancel']).then((res) => {
|
237
|
-
if (res === 'confirm') {
|
238
|
-
this.$showAlert(`已向设备号: ${this.model.f_terminal_number}发送启用指令,请稍后查看执行结果!`, 'success', 2500)
|
239
|
-
this.model.f_state = '正常'
|
240
|
-
try {
|
241
|
-
// 测试接口
|
242
|
-
// this.$resetpost('rs/logic/getEditPosState', {data: {number: this.model.f_terminal_number, state: '正常'}}, {resolveMsg: null, rejectMsg: null}, 0)
|
243
|
-
// .then((res) => {})
|
244
|
-
this.$resetpost('rs/logic/batchPos',{data: {tasks: [this.data], taskState: 1}}, {rejectMsg: null, resolveMsg: null})
|
245
|
-
} catch (error) {
|
246
|
-
this.search()
|
247
|
-
}
|
248
|
-
}
|
249
|
-
})
|
250
|
-
}
|
251
|
-
},
|
252
|
-
editBeizhu (val) {
|
253
|
-
this.editshow = true
|
254
|
-
this.posBase = val
|
255
|
-
},
|
256
|
-
|
257
|
-
//升级
|
258
|
-
upgrade(){
|
259
|
-
this.show=true
|
260
|
-
},
|
261
|
-
upgradeRoot() {
|
262
|
-
this.$resetpost('rs/logic/batchPos',{data: {tasks: [this.data], taskState: 2}}, {rejectMsg: null, resolveMsg: null})
|
263
|
-
this.$dispatch('refresh')
|
264
|
-
},
|
265
|
-
search () {
|
266
|
-
this.$refs.paged.$refs.cri.search()
|
267
|
-
},
|
268
|
-
confirm () {
|
269
|
-
// 如果是修改的话,只修改页面上用户填写的信息
|
270
|
-
if (!this.info) {
|
271
|
-
this.model.f_online = '离线'
|
272
|
-
this.model.f_operator = this.$login.f.name
|
273
|
-
this.model.f_orgid = this.$login.f.orgid
|
274
|
-
this.model.f_filialeids = this.$login.f.orgid
|
275
|
-
this.model.f_operatorid = this.$login.f.id
|
276
|
-
this.model.f_orgname = this.$login.f.orgs
|
277
|
-
this.model.f_depid = this.$login.f.depids
|
278
|
-
this.model.f_depname = this.$login.f.deps
|
279
|
-
this.model.f_orgstr = this.$login.f.fullids
|
280
|
-
}
|
281
|
-
this.$resetpost('rs/entity/t_equipment', this.model, {resolveMsg: '保存成功', rejectMsg: '保存失败'}).then((res) => {
|
282
|
-
this.$dispatch('refresh')
|
283
|
-
}).catch((error) => {
|
284
|
-
this.$dispatch('refresh')
|
285
|
-
})
|
286
|
-
|
287
|
-
},
|
288
|
-
edit (row) {
|
289
|
-
this.model.f_terminal_number = row.f_terminal_number
|
290
|
-
this.model.f_terminal_name = row.f_terminal_name
|
291
|
-
this.model.f_bank_name = row.f_bank_name
|
292
|
-
this.model.f_machine_number = row.f_machine_number
|
293
|
-
this.model.f_mac_number = row.f_mac_number
|
294
|
-
this.model.f_address = row.f_address
|
295
|
-
this.model.f_phone = row.f_phone
|
296
|
-
this.model.f_state = row.f_state
|
297
|
-
this.model.f_comments=row.f_comments
|
298
|
-
this.model.f_param_id=row.f_param_id
|
299
|
-
// this.model.f_username=row.f_username
|
300
|
-
this.model.id = row.id
|
301
|
-
this.model.f_filialeids=row.f_filialeids
|
302
|
-
this.model.f_orgid = row.f_orgid
|
303
|
-
},
|
304
|
-
initModel () {
|
305
|
-
delete this.model.id
|
306
|
-
this.model.f_terminal_number = ''
|
307
|
-
this.model.f_terminal_name = ''
|
308
|
-
this.model.f_bank_name = ''
|
309
|
-
this.model.f_machine_number = ''
|
310
|
-
this.model.f_state = '正常'
|
311
|
-
this.model.f_phone = ''
|
312
|
-
this.model.f_param_id = ''
|
313
|
-
this.model.f_address = ''
|
314
|
-
this.model.f_filialeids=''
|
315
|
-
this.model.f_orgid=''
|
316
|
-
this.model.f_comments=''
|
317
|
-
},
|
318
|
-
cancel () {
|
319
|
-
this.$dispatch('close')
|
320
|
-
}
|
321
|
-
}
|
322
|
-
}
|
323
|
-
</script>
|
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 class="form-horizontal">
|
8
|
+
<div class="row">
|
9
|
+
<div class="col-sm-6">
|
10
|
+
<label class="font_normal_body" >设备编号</label>
|
11
|
+
<input type="text" class="input_search" style="width: 60%" v-model="model.f_terminal_number" placeholder="设备编号" >
|
12
|
+
</div>
|
13
|
+
<div class="col-sm-6">
|
14
|
+
<label class="font_normal_body" >设备名称</label>
|
15
|
+
<input type="text" class="input_search" style="width: 60%" v-model="model.f_terminal_name" placeholder="设备名称" >
|
16
|
+
</div>
|
17
|
+
</div>
|
18
|
+
<div class="row">
|
19
|
+
<div class="col-sm-6">
|
20
|
+
<label class="font_normal_body" >机器编号</label>
|
21
|
+
<input type="text" class="input_search" style="width: 60%" v-model="model.f_machine_number" placeholder="机器编号" >
|
22
|
+
</div>
|
23
|
+
<div class="col-sm-6">
|
24
|
+
<label class="font_normal_body" >联系电话</label>
|
25
|
+
<input type="text" class="input_search" style="width: 60%" v-model="model.f_phone" placeholder="联系电话" >
|
26
|
+
</div>
|
27
|
+
</div>
|
28
|
+
<div class="row">
|
29
|
+
<div class="col-sm-6">
|
30
|
+
<label class="font_normal_body" > 所在地</label>
|
31
|
+
<input type="text" class="input_search" style="width: 60%" v-model="model.f_address" placeholder="所在地" >
|
32
|
+
</div>
|
33
|
+
<div class="col-sm-6">
|
34
|
+
<label class="font_normal_body" >所属银行</label>
|
35
|
+
<input type="text" class="input_search" style="width: 60%" v-model="model.f_bank_name" placeholder="所属银行" >
|
36
|
+
</div>
|
37
|
+
</div>
|
38
|
+
<div class="col-sm-12">
|
39
|
+
<label class="font_normal_body " style="margin-top:-20px"> 备注 </label>
|
40
|
+
<textarea class="input_textarea" rows="3" style="width:80%;margin-top:5px" v-model="model.f_comments"></textarea>
|
41
|
+
</div>
|
42
|
+
</form>
|
43
|
+
<div style="text-align:right;height:auto;">
|
44
|
+
<button class="btn button_search " @click="confirm()" >确认</button>
|
45
|
+
<button class="btn button_clear " @click="cancel()" >取消</button>
|
46
|
+
</div>
|
47
|
+
</validator>
|
48
|
+
</div>
|
49
|
+
</template>
|
50
|
+
<script>
|
51
|
+
|
52
|
+
|
53
|
+
export default {
|
54
|
+
data () {
|
55
|
+
return {
|
56
|
+
model: {
|
57
|
+
f_terminal_number: '',
|
58
|
+
f_terminal_name: '',
|
59
|
+
f_bank_name: '',
|
60
|
+
f_equipment_type: 'POS',
|
61
|
+
f_state: '正常',
|
62
|
+
f_machine_number:'',
|
63
|
+
f_phone:'',
|
64
|
+
f_comments:'',
|
65
|
+
f_address:'',
|
66
|
+
f_filialeids:this.f_filialeids,
|
67
|
+
f_orgid:''
|
68
|
+
}
|
69
|
+
}
|
70
|
+
},
|
71
|
+
props: ['data', 'f_filialeids'],
|
72
|
+
watch: {
|
73
|
+
'data' (val) {
|
74
|
+
if (val) {
|
75
|
+
this.edit(val)
|
76
|
+
} else {
|
77
|
+
this.initModel()
|
78
|
+
}
|
79
|
+
}
|
80
|
+
},
|
81
|
+
ready () {
|
82
|
+
console.log('mac信息:', this.data)
|
83
|
+
if (this.data) {
|
84
|
+
this.edit(this.data)
|
85
|
+
}
|
86
|
+
},
|
87
|
+
methods: {
|
88
|
+
confirm () {
|
89
|
+
// if(this.f_filialeids!=''&&this.f_filialeids!=null){
|
90
|
+
this.model.f_operator = this.$login.f.name
|
91
|
+
this.model.f_operatorid = this.$login.f.id
|
92
|
+
this.model.f_filialeids = this.f_filialeids
|
93
|
+
this.model.f_orgid = this.$login.f.orgid
|
94
|
+
this.model.f_orgname = this.$login.f.orgs
|
95
|
+
this.model.f_depid = this.$login.f.depids
|
96
|
+
this.model.f_depname = this.$login.f.deps
|
97
|
+
this.$resetpost('rs/entity/t_equipment', this.model, {resolveMsg: '保存成功', rejectMsg: '保存失败'}).then((res) => {
|
98
|
+
this.$dispatch('refresh')
|
99
|
+
}).catch((error) => {
|
100
|
+
this.$dispatch('refresh')
|
101
|
+
})
|
102
|
+
// }else
|
103
|
+
// {
|
104
|
+
// this.$showAlert('请先选择左上角的所在分公司', 'warning', 2000)
|
105
|
+
// }
|
106
|
+
|
107
|
+
},
|
108
|
+
edit (row) {
|
109
|
+
this.model.f_terminal_number = row.f_terminal_number
|
110
|
+
this.model.f_terminal_name = row.f_terminal_name
|
111
|
+
this.model.f_bank_name = row.f_bank_name
|
112
|
+
this.model.f_machine_number = row.f_machine_number
|
113
|
+
this.model.f_address = row.f_address
|
114
|
+
this.model.f_phone = row.f_phone
|
115
|
+
this.model.f_comments=row.f_comments
|
116
|
+
this.model.f_filialeids=row.f_filialeids
|
117
|
+
this.model.id = row.id
|
118
|
+
this.model.f_orgid = row.f_orgid
|
119
|
+
},
|
120
|
+
initModel () {
|
121
|
+
delete this.model.id
|
122
|
+
this.model.f_terminal_number = ''
|
123
|
+
this.model.f_terminal_name = ''
|
124
|
+
this.model.f_bank_name = ''
|
125
|
+
this.model.f_machine_number = ''
|
126
|
+
this.model.f_phone = ''
|
127
|
+
this.model.f_address = ''
|
128
|
+
this.model.f_filialeids=''
|
129
|
+
this.model.f_orgid=''
|
130
|
+
this.model.f_comments=''
|
131
|
+
},
|
132
|
+
cancel () {
|
133
|
+
this.$dispatch('close')
|
134
|
+
}
|
135
|
+
}
|
136
|
+
}
|
137
|
+
</script>
|