system-clients 3.2.90 → 3.2.92-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.
- package/.gradle/7.4/checksums/checksums.lock +0 -0
- package/.gradle/7.4/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/.gradle/7.4/dependencies-accessors/gc.properties +0 -0
- package/.gradle/7.4/executionHistory/executionHistory.bin +0 -0
- package/.gradle/7.4/executionHistory/executionHistory.lock +0 -0
- package/.gradle/7.4/fileChanges/last-build.bin +0 -0
- package/.gradle/7.4/fileHashes/fileHashes.bin +0 -0
- package/.gradle/7.4/fileHashes/fileHashes.lock +0 -0
- package/.gradle/7.4/gc.properties +0 -0
- package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/.gradle/buildOutputCleanup/cache.properties +2 -0
- package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- package/.gradle/file-system.probe +0 -0
- package/.gradle/vcs-1/gc.properties +0 -0
- package/package.json +105 -105
- package/src/components/Main.vue +41 -7
- package/src/components/equipment/EquipmentManage.vue +83 -83
- package/src/components/equipment/PcAdd.vue +115 -115
- package/src/components/equipment/PcList.vue +119 -119
- package/src/components/equipment/PcManage.vue +61 -61
- package/src/components/equipment/PhoneAdd.vue +118 -118
- package/src/components/equipment/PhoneList.vue +113 -113
- package/src/components/equipment/PhoneManage.vue +61 -61
- package/src/components/equipment/PosAdd.vue +10 -6
- package/src/components/equipment/PosList.vue +5 -3
- package/src/components/equipment/PosParamAdd.vue +1 -1
- package/src/components/equipment/PosParamList.vue +2 -2
- package/src/components/parammanage/ParamPage.vue +12 -12
- package/src/components/parammanage/SinglePage.vue +8 -8
- package/src/components/server/Login.vue +35 -17
- package/src/components/server/ModifyPw.vue +0 -1
- package/src/components/server/PcdBuildingSelect.vue +0 -2
- package/src/components/server/ResSelect.vue +3 -0
- package/src/components/server/ResSelectGroup.vue +211 -211
- package/src/components/server/RoleSelector.vue +2 -3
- package/src/filiale/baole/Login.vue +0 -2
- package/src/filiale/bayan/PosAdd.vue +369 -0
- package/src/filiale/bayan/PosList.vue +349 -0
- package/src/filiale/bayan/PosManage.vue +138 -0
- package/src/filiale/bayan/system.js +6 -0
- package/src/filiale/chengtou/Login.vue +0 -2
- package/src/filiale/dongguan/Login.vue +0 -2
- package/src/filiale/dongguan/Main.vue +0 -2
- package/src/filiale/furuike/Login.vue +0 -4
- package/src/filiale/furuike/Main.vue +0 -2
- package/src/filiale/gehua/Main.vue +0 -2
- package/src/filiale/konggang/Login.vue +0 -2
- package/src/filiale/qianneng/Login.vue +582 -584
- package/src/filiale/qianneng/Main.vue +0 -2
- package/src/filiale/qianneng/ModifyPw.vue +0 -1
- package/src/filiale/rizhao/Login.vue +0 -2
- package/src/filiale/rizhao/Main.vue +1 -1
- package/src/filiale/shiquan/Login.vue +0 -2
- package/src/filiale/tianyi/Login.vue +0 -2
- package/src/filiale/tongchuan/Login.vue +0 -2
- package/src/filiale/tongchuan/Main.vue +1 -3
- package/src/filiale/weinan/Main.vue +923 -924
- package/src/filiale/weinan/system.js +7 -7
- package/src/filiale/wenxi/Login.vue +0 -2
- package/src/filiale/wenxi/Main.vue +0 -2
- package/src/filiale/wuhai/Main.vue +0 -3
- package/src/filiale/yuchuan/Login.vue +0 -2
- package/src/filiale/yuchuan/Main.vue +0 -2
- package/src/filiale/zhoukou/Main.vue +0 -2
- package/src/plugins/GetLoginInfoService.js +75 -13
- package/src/stores/AppData.js +1 -1
@@ -1,118 +1,118 @@
|
|
1
|
-
<template>
|
2
|
-
<div class="row select-overspread">
|
3
|
-
<validator name='v'>
|
4
|
-
<ul class="nav nav-tabs" >
|
5
|
-
<li role="presentation" class="active"><a href="#">Phone端设备号</a></li>
|
6
|
-
</ul>
|
7
|
-
<form class="form-horizontal">
|
8
|
-
|
9
|
-
<div class="col-sm-6 form-group">
|
10
|
-
<label class="font_normal_body">使用人员</label>
|
11
|
-
<!-- <input type="text" style="width: 60%" class="input_search" v-model="model.f_username" placeholder="使用人员" >-->
|
12
|
-
<v-select style="width:60% "
|
13
|
-
class="select select_list"
|
14
|
-
:value.sync="model.f_username"
|
15
|
-
v-model="model.f_username"
|
16
|
-
:options='users'
|
17
|
-
placeholder='人员选择'
|
18
|
-
value-single
|
19
|
-
close-on-select>
|
20
|
-
</v-select>
|
21
|
-
</div>
|
22
|
-
<div class="col-sm-6 form-group">
|
23
|
-
<label class="font_normal_body">设备号</label>
|
24
|
-
<input type="text" style="width: 60%" class="input_search" v-model="model.f_terminal_number" placeholder="设备号" >
|
25
|
-
</div>
|
26
|
-
<div class="col-sm-6 form-group">
|
27
|
-
<label class="font_normal_body">使用公司</label>
|
28
|
-
<!--<right-tree :userid.sync='userid' :source.sync='source' @re-res="getRes"></right-tree>-->
|
29
|
-
<res-select restype='organization'
|
30
|
-
is-mul="false"
|
31
|
-
@res-select="getorg"
|
32
|
-
:initresid="curorgid">
|
33
|
-
</res-select>
|
34
|
-
</div>
|
35
|
-
|
36
|
-
</form>
|
37
|
-
<div style="text-align:right;height:auto;">
|
38
|
-
<button class="btn button_search " @click="confirm()" >确认</button>
|
39
|
-
<button class="btn button_clear " @click="cancel()" >取消</button>
|
40
|
-
</div>
|
41
|
-
</validator>
|
42
|
-
</div>
|
43
|
-
</template>
|
44
|
-
<script>
|
45
|
-
import { HttpResetClass } from 'vue-client'
|
46
|
-
|
47
|
-
export default {
|
48
|
-
data () {
|
49
|
-
return {
|
50
|
-
model: {
|
51
|
-
f_username: null,
|
52
|
-
f_terminal_number: '',
|
53
|
-
f_equipment_type: 'PHONE',
|
54
|
-
f_state: '正常'
|
55
|
-
},
|
56
|
-
filialeCodeStr: this.$login.f.f_orgids,
|
57
|
-
userid: this.$login.f.id,
|
58
|
-
source: `tool.getFullTree(this.getRights().where(row.getType() == $organization$))`,
|
59
|
-
curorgid: [this.$login.f.orgid],
|
60
|
-
f_orgid: ''
|
61
|
-
}
|
62
|
-
},
|
63
|
-
props: ['data','users'],
|
64
|
-
watch: {
|
65
|
-
'data' (val) {
|
66
|
-
if (val) {
|
67
|
-
this.edit(val)
|
68
|
-
} else {
|
69
|
-
this.initModel()
|
70
|
-
}
|
71
|
-
}
|
72
|
-
},
|
73
|
-
ready () {
|
74
|
-
console.log('mac信息:', this.data)
|
75
|
-
if (this.data) {
|
76
|
-
this.edit(this.data)
|
77
|
-
}
|
78
|
-
},
|
79
|
-
methods: {
|
80
|
-
confirm () {
|
81
|
-
this.model.f_user_operatorid=this.model.f_username.id
|
82
|
-
this.model.f_user_operator=this.model.f_username.name
|
83
|
-
this.model.f_operator = this.$login.f.name
|
84
|
-
this.model.f_filialeids = this.$login.f.f_orgids
|
85
|
-
this.model.f_orgid = this.f_orgid
|
86
|
-
console.log('保存', this.model)
|
87
|
-
this.$resetpost('
|
88
|
-
this.$dispatch('refresh')
|
89
|
-
}).catch(() => {
|
90
|
-
this.$dispatch('refresh')
|
91
|
-
})
|
92
|
-
},
|
93
|
-
edit (row) {
|
94
|
-
console.log('修改,,。。', row)
|
95
|
-
this.model.f_username = {id:row.f_user_operatorid,name:row.f_user_operator}
|
96
|
-
this.model.f_terminal_number = row.f_terminal_number
|
97
|
-
this.model.id = row.id
|
98
|
-
this.filialeCodeStr = row.f_filialeids
|
99
|
-
this.f_orgid = row.f_orgid
|
100
|
-
this.curorgid= [row.f_orgid]
|
101
|
-
},
|
102
|
-
initModel () {
|
103
|
-
delete this.model.id
|
104
|
-
this.model.f_username = ''
|
105
|
-
this.model.f_terminal_number = ''
|
106
|
-
},
|
107
|
-
cancel () {
|
108
|
-
this.$dispatch('close')
|
109
|
-
},
|
110
|
-
getRes(obj) {
|
111
|
-
this.filialeCodeStr = obj.resids
|
112
|
-
},
|
113
|
-
getorg (val) {
|
114
|
-
this.f_orgid = val[0]
|
115
|
-
}
|
116
|
-
}
|
117
|
-
}
|
118
|
-
</script>
|
1
|
+
<template>
|
2
|
+
<div class="row select-overspread">
|
3
|
+
<validator name='v'>
|
4
|
+
<ul class="nav nav-tabs" >
|
5
|
+
<li role="presentation" class="active"><a href="#">Phone端设备号</a></li>
|
6
|
+
</ul>
|
7
|
+
<form class="form-horizontal">
|
8
|
+
|
9
|
+
<div class="col-sm-6 form-group">
|
10
|
+
<label class="font_normal_body">使用人员</label>
|
11
|
+
<!-- <input type="text" style="width: 60%" class="input_search" v-model="model.f_username" placeholder="使用人员" >-->
|
12
|
+
<v-select style="width:60% "
|
13
|
+
class="select select_list"
|
14
|
+
:value.sync="model.f_username"
|
15
|
+
v-model="model.f_username"
|
16
|
+
:options='users'
|
17
|
+
placeholder='人员选择'
|
18
|
+
value-single
|
19
|
+
close-on-select>
|
20
|
+
</v-select>
|
21
|
+
</div>
|
22
|
+
<div class="col-sm-6 form-group">
|
23
|
+
<label class="font_normal_body">设备号</label>
|
24
|
+
<input type="text" style="width: 60%" class="input_search" v-model="model.f_terminal_number" placeholder="设备号" >
|
25
|
+
</div>
|
26
|
+
<div class="col-sm-6 form-group">
|
27
|
+
<label class="font_normal_body">使用公司</label>
|
28
|
+
<!--<right-tree :userid.sync='userid' :source.sync='source' @re-res="getRes"></right-tree>-->
|
29
|
+
<res-select restype='organization'
|
30
|
+
is-mul="false"
|
31
|
+
@res-select="getorg"
|
32
|
+
:initresid="curorgid">
|
33
|
+
</res-select>
|
34
|
+
</div>
|
35
|
+
|
36
|
+
</form>
|
37
|
+
<div style="text-align:right;height:auto;">
|
38
|
+
<button class="btn button_search " @click="confirm()" >确认</button>
|
39
|
+
<button class="btn button_clear " @click="cancel()" >取消</button>
|
40
|
+
</div>
|
41
|
+
</validator>
|
42
|
+
</div>
|
43
|
+
</template>
|
44
|
+
<script>
|
45
|
+
import { HttpResetClass } from 'vue-client'
|
46
|
+
|
47
|
+
export default {
|
48
|
+
data () {
|
49
|
+
return {
|
50
|
+
model: {
|
51
|
+
f_username: null,
|
52
|
+
f_terminal_number: '',
|
53
|
+
f_equipment_type: 'PHONE',
|
54
|
+
f_state: '正常'
|
55
|
+
},
|
56
|
+
filialeCodeStr: this.$login.f.f_orgids,
|
57
|
+
userid: this.$login.f.id,
|
58
|
+
source: `tool.getFullTree(this.getRights().where(row.getType() == $organization$))`,
|
59
|
+
curorgid: [this.$login.f.orgid],
|
60
|
+
f_orgid: ''
|
61
|
+
}
|
62
|
+
},
|
63
|
+
props: ['data','users'],
|
64
|
+
watch: {
|
65
|
+
'data' (val) {
|
66
|
+
if (val) {
|
67
|
+
this.edit(val)
|
68
|
+
} else {
|
69
|
+
this.initModel()
|
70
|
+
}
|
71
|
+
}
|
72
|
+
},
|
73
|
+
ready () {
|
74
|
+
console.log('mac信息:', this.data)
|
75
|
+
if (this.data) {
|
76
|
+
this.edit(this.data)
|
77
|
+
}
|
78
|
+
},
|
79
|
+
methods: {
|
80
|
+
confirm () {
|
81
|
+
this.model.f_user_operatorid=this.model.f_username.id
|
82
|
+
this.model.f_user_operator=this.model.f_username.name
|
83
|
+
this.model.f_operator = this.$login.f.name
|
84
|
+
this.model.f_filialeids = this.$login.f.f_orgids
|
85
|
+
this.model.f_orgid = this.f_orgid
|
86
|
+
console.log('保存', this.model)
|
87
|
+
this.$resetpost('rs/entity/t_equipment', this.model, {resolveMsg: '保存成功', rejectMsg: '保存失败'}).then((res) => {
|
88
|
+
this.$dispatch('refresh')
|
89
|
+
}).catch(() => {
|
90
|
+
this.$dispatch('refresh')
|
91
|
+
})
|
92
|
+
},
|
93
|
+
edit (row) {
|
94
|
+
console.log('修改,,。。', row)
|
95
|
+
this.model.f_username = {id:row.f_user_operatorid,name:row.f_user_operator}
|
96
|
+
this.model.f_terminal_number = row.f_terminal_number
|
97
|
+
this.model.id = row.id
|
98
|
+
this.filialeCodeStr = row.f_filialeids
|
99
|
+
this.f_orgid = row.f_orgid
|
100
|
+
this.curorgid= [row.f_orgid]
|
101
|
+
},
|
102
|
+
initModel () {
|
103
|
+
delete this.model.id
|
104
|
+
this.model.f_username = ''
|
105
|
+
this.model.f_terminal_number = ''
|
106
|
+
},
|
107
|
+
cancel () {
|
108
|
+
this.$dispatch('close')
|
109
|
+
},
|
110
|
+
getRes(obj) {
|
111
|
+
this.filialeCodeStr = obj.resids
|
112
|
+
},
|
113
|
+
getorg (val) {
|
114
|
+
this.f_orgid = val[0]
|
115
|
+
}
|
116
|
+
}
|
117
|
+
}
|
118
|
+
</script>
|
@@ -1,113 +1,113 @@
|
|
1
|
-
<template>
|
2
|
-
<div class="flex" style="flex:1; ">
|
3
|
-
<criteria-paged :model="model" v-ref:paged>
|
4
|
-
<criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
|
5
|
-
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
6
|
-
<div class="row">
|
7
|
-
<div class="col-sm-3 form-group">
|
8
|
-
<label class="font_normal_body">使用公司</label>
|
9
|
-
<!--<right-tree :userid.sync='$parent.$parent.userid' :source.sync='$parent.$parent.source' @re-res="$parent.$parent.getRes" > </right-tree>-->
|
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
|
-
|
17
|
-
<div class="col-sm-3 form-group" >
|
18
|
-
<label class="font_normal_body">使用人员</label>
|
19
|
-
<input type="text" class="input_search" style="width:60%" v-model="model.f_username"
|
20
|
-
condition="f_username like '%{}%'" placeholder="使用人员">
|
21
|
-
</div>
|
22
|
-
<div class="col-sm-3 form-group" >
|
23
|
-
<label class="font_normal_body">设备号</label>
|
24
|
-
<input type="text" class="input_search" style="width:60%" v-model="model.f_terminal_number"
|
25
|
-
condition="f_terminal_number like '%{}%'" placeholder="设备号">
|
26
|
-
</div>
|
27
|
-
<div class="span" style="float:right;">
|
28
|
-
<button class="button_search" @click="$parent.$parent.search()" v-el:cx>查询</button>
|
29
|
-
<button class="button_search" @click="$parent.$parent.add()" v-el:cx>新增</button>
|
30
|
-
</div>
|
31
|
-
</div>
|
32
|
-
</div>
|
33
|
-
</criteria>
|
34
|
-
<data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid >
|
35
|
-
<template partial='head'>
|
36
|
-
<tr>
|
37
|
-
<th>序号</th>
|
38
|
-
<th>使用人员</th>
|
39
|
-
<th>设备号</th>
|
40
|
-
<th>操作</th>
|
41
|
-
</tr>
|
42
|
-
</template>
|
43
|
-
<template partial='body':model="model">
|
44
|
-
<tr>
|
45
|
-
<td style="text-align:center">{{$index+1}}</td>
|
46
|
-
<td style="text-align:center">{{row.f_user_operator}}</td>
|
47
|
-
<td style="text-align:center">{{row.f_terminal_number}}</td>
|
48
|
-
<td style="text-align:center">
|
49
|
-
<button class="btn btn-danger" @click.stop="$parent.$parent.$parent.del(row)">删除</button>
|
50
|
-
</td>
|
51
|
-
</tr>
|
52
|
-
</template>
|
53
|
-
</data-grid>
|
54
|
-
</criteria-paged>
|
55
|
-
</div>
|
56
|
-
</template>
|
57
|
-
|
58
|
-
<script>
|
59
|
-
import { PagedList } from 'vue-client'
|
60
|
-
|
61
|
-
export default {
|
62
|
-
title: 'PC',
|
63
|
-
components: {},
|
64
|
-
|
65
|
-
data () {
|
66
|
-
return {
|
67
|
-
model: new PagedList('
|
68
|
-
filialeNameStr: this.$login.f.f_fengongsi,
|
69
|
-
filialeCodeStr: this.$login.f.f_orgids,
|
70
|
-
userid:this.$login.f.id,
|
71
|
-
curorgid: [this.$login.f.orgid],
|
72
|
-
source: `tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() != $role$))`,
|
73
|
-
f_orgid:''
|
74
|
-
}
|
75
|
-
},
|
76
|
-
ready () {
|
77
|
-
console.log('看看终端类型', this.equipmentType)
|
78
|
-
this.search()
|
79
|
-
},
|
80
|
-
methods: {
|
81
|
-
search () {
|
82
|
-
this.$refs.paged.$refs.cri.search()
|
83
|
-
},
|
84
|
-
|
85
|
-
selfSearch (args) {
|
86
|
-
args.condition = `${args.condition} and f_equipment_type = 'PHONE' and f_state = '正常' and f_orgid = '${this.f_orgid ? this.f_orgid: this.$login.f.orgid}'`
|
87
|
-
this.model.search(args.condition, this.model)
|
88
|
-
},
|
89
|
-
add () {
|
90
|
-
this.$dispatch('add')
|
91
|
-
},
|
92
|
-
del (row) {
|
93
|
-
console.log('要删除了', row)
|
94
|
-
row.f_state = '已删除'
|
95
|
-
this.$resetpost('
|
96
|
-
this.$dispatch('refresh')
|
97
|
-
}).catch((error) => {
|
98
|
-
this.$dispatch('refresh')
|
99
|
-
})
|
100
|
-
},
|
101
|
-
getRes (obj) {
|
102
|
-
this.filialeNameStr = obj.res
|
103
|
-
this.filialeCodeStr = obj.resids
|
104
|
-
},
|
105
|
-
getorg (val) {
|
106
|
-
this.f_orgid = val[0]
|
107
|
-
}
|
108
|
-
},
|
109
|
-
computed: {
|
110
|
-
|
111
|
-
}
|
112
|
-
}
|
113
|
-
</script>
|
1
|
+
<template>
|
2
|
+
<div class="flex" style="flex:1; ">
|
3
|
+
<criteria-paged :model="model" v-ref:paged>
|
4
|
+
<criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
|
5
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
6
|
+
<div class="row">
|
7
|
+
<div class="col-sm-3 form-group">
|
8
|
+
<label class="font_normal_body">使用公司</label>
|
9
|
+
<!--<right-tree :userid.sync='$parent.$parent.userid' :source.sync='$parent.$parent.source' @re-res="$parent.$parent.getRes" > </right-tree>-->
|
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
|
+
|
17
|
+
<div class="col-sm-3 form-group" >
|
18
|
+
<label class="font_normal_body">使用人员</label>
|
19
|
+
<input type="text" class="input_search" style="width:60%" v-model="model.f_username"
|
20
|
+
condition="f_username like '%{}%'" placeholder="使用人员">
|
21
|
+
</div>
|
22
|
+
<div class="col-sm-3 form-group" >
|
23
|
+
<label class="font_normal_body">设备号</label>
|
24
|
+
<input type="text" class="input_search" style="width:60%" v-model="model.f_terminal_number"
|
25
|
+
condition="f_terminal_number like '%{}%'" placeholder="设备号">
|
26
|
+
</div>
|
27
|
+
<div class="span" style="float:right;">
|
28
|
+
<button class="button_search" @click="$parent.$parent.search()" v-el:cx>查询</button>
|
29
|
+
<button class="button_search" @click="$parent.$parent.add()" v-el:cx>新增</button>
|
30
|
+
</div>
|
31
|
+
</div>
|
32
|
+
</div>
|
33
|
+
</criteria>
|
34
|
+
<data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid >
|
35
|
+
<template partial='head'>
|
36
|
+
<tr>
|
37
|
+
<th>序号</th>
|
38
|
+
<th>使用人员</th>
|
39
|
+
<th>设备号</th>
|
40
|
+
<th>操作</th>
|
41
|
+
</tr>
|
42
|
+
</template>
|
43
|
+
<template partial='body':model="model">
|
44
|
+
<tr>
|
45
|
+
<td style="text-align:center">{{$index+1}}</td>
|
46
|
+
<td style="text-align:center">{{row.f_user_operator}}</td>
|
47
|
+
<td style="text-align:center">{{row.f_terminal_number}}</td>
|
48
|
+
<td style="text-align:center">
|
49
|
+
<button class="btn btn-danger" @click.stop="$parent.$parent.$parent.del(row)">删除</button>
|
50
|
+
</td>
|
51
|
+
</tr>
|
52
|
+
</template>
|
53
|
+
</data-grid>
|
54
|
+
</criteria-paged>
|
55
|
+
</div>
|
56
|
+
</template>
|
57
|
+
|
58
|
+
<script>
|
59
|
+
import { PagedList } from 'vue-client'
|
60
|
+
|
61
|
+
export default {
|
62
|
+
title: 'PC',
|
63
|
+
components: {},
|
64
|
+
|
65
|
+
data () {
|
66
|
+
return {
|
67
|
+
model: new PagedList('rs/sql/equipmentQuery', 20),
|
68
|
+
filialeNameStr: this.$login.f.f_fengongsi,
|
69
|
+
filialeCodeStr: this.$login.f.f_orgids,
|
70
|
+
userid:this.$login.f.id,
|
71
|
+
curorgid: [this.$login.f.orgid],
|
72
|
+
source: `tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() != $role$))`,
|
73
|
+
f_orgid:''
|
74
|
+
}
|
75
|
+
},
|
76
|
+
ready () {
|
77
|
+
console.log('看看终端类型', this.equipmentType)
|
78
|
+
this.search()
|
79
|
+
},
|
80
|
+
methods: {
|
81
|
+
search () {
|
82
|
+
this.$refs.paged.$refs.cri.search()
|
83
|
+
},
|
84
|
+
|
85
|
+
selfSearch (args) {
|
86
|
+
args.condition = `${args.condition} and f_equipment_type = 'PHONE' and f_state = '正常' and f_orgid = '${this.f_orgid ? this.f_orgid: this.$login.f.orgid}'`
|
87
|
+
this.model.search(args.condition, this.model)
|
88
|
+
},
|
89
|
+
add () {
|
90
|
+
this.$dispatch('add')
|
91
|
+
},
|
92
|
+
del (row) {
|
93
|
+
console.log('要删除了', row)
|
94
|
+
row.f_state = '已删除'
|
95
|
+
this.$resetpost('rs/entity/t_equipment', row, {warnMsg: '确定要删除这条信息吗?', resolveMsg: '删除成功', rejectMsg: '删除失败'}).then((res) => {
|
96
|
+
this.$dispatch('refresh')
|
97
|
+
}).catch((error) => {
|
98
|
+
this.$dispatch('refresh')
|
99
|
+
})
|
100
|
+
},
|
101
|
+
getRes (obj) {
|
102
|
+
this.filialeNameStr = obj.res
|
103
|
+
this.filialeCodeStr = obj.resids
|
104
|
+
},
|
105
|
+
getorg (val) {
|
106
|
+
this.f_orgid = val[0]
|
107
|
+
}
|
108
|
+
},
|
109
|
+
computed: {
|
110
|
+
|
111
|
+
}
|
112
|
+
}
|
113
|
+
</script>
|
@@ -1,61 +1,61 @@
|
|
1
|
-
<template>
|
2
|
-
<div class="flex-row">
|
3
|
-
<div :class="{'basic-main':!isChange,'binary-left':isChange}">
|
4
|
-
<phone-list :row="row" @select-changed="selected" style="width:auto;" v-ref:list ></phone-list>
|
5
|
-
</div>
|
6
|
-
<div class="binary-right" style="margin-left: 10px; width: 50%;" v-if="isChange">
|
7
|
-
<phone-add :data="row" :users="users" v-ref:addbox></phone-add>
|
8
|
-
</div>
|
9
|
-
</div>
|
10
|
-
</template>
|
11
|
-
<script>
|
12
|
-
|
13
|
-
import PhoneList from './PhoneList'
|
14
|
-
import PhoneAdd from './PhoneAdd'
|
15
|
-
|
16
|
-
export default {
|
17
|
-
title: 'PC终端管理',
|
18
|
-
components: {
|
19
|
-
PhoneList, PhoneAdd
|
20
|
-
},
|
21
|
-
props:['users'],
|
22
|
-
data () {
|
23
|
-
return {
|
24
|
-
isChange: false,
|
25
|
-
row: null
|
26
|
-
}
|
27
|
-
},
|
28
|
-
methods: {
|
29
|
-
selected (obj) {
|
30
|
-
this.isChange = true
|
31
|
-
this.row = obj.val
|
32
|
-
}
|
33
|
-
},
|
34
|
-
events: {
|
35
|
-
'search' () {
|
36
|
-
this.isChange = false
|
37
|
-
this.row = null
|
38
|
-
this.$refs.list.$refs.paged.$refs.cri.search()
|
39
|
-
},
|
40
|
-
'refresh' () {
|
41
|
-
this.isChange = false
|
42
|
-
this.row = null
|
43
|
-
this.$refs.list.search()
|
44
|
-
},
|
45
|
-
'error' (name, row, res) {
|
46
|
-
this.isChange = false
|
47
|
-
this.row = null
|
48
|
-
},
|
49
|
-
'close' () {
|
50
|
-
this.isChange = false
|
51
|
-
this.row = null
|
52
|
-
this.$refs.list.search()
|
53
|
-
},
|
54
|
-
'add' () {
|
55
|
-
this.row = null
|
56
|
-
this.isChange = true
|
57
|
-
this.$refs.list.$refs.paged.$refs.grid.selectStore.selected = null
|
58
|
-
}
|
59
|
-
}
|
60
|
-
}
|
61
|
-
</script>
|
1
|
+
<template>
|
2
|
+
<div class="flex-row">
|
3
|
+
<div :class="{'basic-main':!isChange,'binary-left':isChange}">
|
4
|
+
<phone-list :row="row" @select-changed="selected" style="width:auto;" v-ref:list ></phone-list>
|
5
|
+
</div>
|
6
|
+
<div class="binary-right" style="margin-left: 10px; width: 50%;" v-if="isChange">
|
7
|
+
<phone-add :data="row" :users="users" v-ref:addbox></phone-add>
|
8
|
+
</div>
|
9
|
+
</div>
|
10
|
+
</template>
|
11
|
+
<script>
|
12
|
+
|
13
|
+
import PhoneList from './PhoneList'
|
14
|
+
import PhoneAdd from './PhoneAdd'
|
15
|
+
|
16
|
+
export default {
|
17
|
+
title: 'PC终端管理',
|
18
|
+
components: {
|
19
|
+
PhoneList, PhoneAdd
|
20
|
+
},
|
21
|
+
props:['users'],
|
22
|
+
data () {
|
23
|
+
return {
|
24
|
+
isChange: false,
|
25
|
+
row: null
|
26
|
+
}
|
27
|
+
},
|
28
|
+
methods: {
|
29
|
+
selected (obj) {
|
30
|
+
this.isChange = true
|
31
|
+
this.row = obj.val
|
32
|
+
}
|
33
|
+
},
|
34
|
+
events: {
|
35
|
+
'search' () {
|
36
|
+
this.isChange = false
|
37
|
+
this.row = null
|
38
|
+
this.$refs.list.$refs.paged.$refs.cri.search()
|
39
|
+
},
|
40
|
+
'refresh' () {
|
41
|
+
this.isChange = false
|
42
|
+
this.row = null
|
43
|
+
this.$refs.list.search()
|
44
|
+
},
|
45
|
+
'error' (name, row, res) {
|
46
|
+
this.isChange = false
|
47
|
+
this.row = null
|
48
|
+
},
|
49
|
+
'close' () {
|
50
|
+
this.isChange = false
|
51
|
+
this.row = null
|
52
|
+
this.$refs.list.search()
|
53
|
+
},
|
54
|
+
'add' () {
|
55
|
+
this.row = null
|
56
|
+
this.isChange = true
|
57
|
+
this.$refs.list.$refs.paged.$refs.grid.selectStore.selected = null
|
58
|
+
}
|
59
|
+
}
|
60
|
+
}
|
61
|
+
</script>
|
@@ -33,7 +33,7 @@
|
|
33
33
|
<label class="font_normal_body" >机器编号</label>
|
34
34
|
<input type="text" class="input_search" style="width: 60%" v-model="model.f_machine_number" placeholder="机器编号" >
|
35
35
|
</div>
|
36
|
-
<div class="col-sm-6 form-group" :class="{'has-error': $v.f_phone.required
|
36
|
+
<div class="col-sm-6 form-group" :class="{'has-error': $v.f_phone.required}">
|
37
37
|
<label class="font_normal_body">联系电话</label>
|
38
38
|
<input type="text" class="input_search" style="width: 60%" v-model="model.f_phone" placeholder="联系电话"
|
39
39
|
v-validate:f_phone="{required: true, minlength:7, maxlength: 11}" title="手机号必须7-11位">
|
@@ -223,7 +223,10 @@ import {HttpResetClass, PagedList} from 'vue-client'
|
|
223
223
|
this.$showAlert(`已向设备号: ${this.model.f_terminal_number}发送停用指令,请稍后查看执行结果!`, 'success', 2500)
|
224
224
|
this.model.f_state = '停用'
|
225
225
|
try {
|
226
|
-
|
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})
|
227
230
|
} catch (error) {
|
228
231
|
this.search()
|
229
232
|
}
|
@@ -235,7 +238,10 @@ import {HttpResetClass, PagedList} from 'vue-client'
|
|
235
238
|
this.$showAlert(`已向设备号: ${this.model.f_terminal_number}发送启用指令,请稍后查看执行结果!`, 'success', 2500)
|
236
239
|
this.model.f_state = '正常'
|
237
240
|
try {
|
238
|
-
|
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})
|
239
245
|
} catch (error) {
|
240
246
|
this.search()
|
241
247
|
}
|
@@ -253,7 +259,6 @@ import {HttpResetClass, PagedList} from 'vue-client'
|
|
253
259
|
this.show=true
|
254
260
|
},
|
255
261
|
upgradeRoot() {
|
256
|
-
// todo v4
|
257
262
|
this.$resetpost('rs/logic/batchPos',{data: {tasks: [this.data], taskState: 2}}, {rejectMsg: null, resolveMsg: null})
|
258
263
|
this.$dispatch('refresh')
|
259
264
|
},
|
@@ -273,8 +278,7 @@ import {HttpResetClass, PagedList} from 'vue-client'
|
|
273
278
|
this.model.f_depname = this.$login.f.deps
|
274
279
|
this.model.f_orgstr = this.$login.f.fullids
|
275
280
|
}
|
276
|
-
|
277
|
-
this.$resetpost('api/af-system/logic/save_equipment', this.model, {resolveMsg: '保存成功', rejectMsg: '保存失败'}).then((res) => {
|
281
|
+
this.$resetpost('rs/entity/t_equipment', this.model, {resolveMsg: '保存成功', rejectMsg: '保存失败'}).then((res) => {
|
278
282
|
this.$dispatch('refresh')
|
279
283
|
}).catch((error) => {
|
280
284
|
this.$dispatch('refresh')
|