system-clients 3.0.41 → 3.0.42-fanxian
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/package.json +1 -1
- package/src/components/Main.vue +615 -534
- package/src/components/equipment/EquipmentManage.vue +65 -65
- package/src/components/equipment/PcAdd.vue +105 -105
- package/src/components/equipment/PcList.vue +119 -119
- package/src/components/equipment/PcManage.vue +60 -60
- package/src/components/equipment/PhoneAdd.vue +94 -94
- package/src/components/equipment/PhoneList.vue +102 -102
- package/src/components/equipment/PhoneManage.vue +60 -60
- package/src/components/equipment/PosAdd.vue +137 -137
- package/src/components/equipment/PosList.vue +156 -156
- package/src/components/equipment/PosManage.vue +67 -67
- package/src/components/parammanage/AlarmInformation.vue +122 -0
- package/src/components/server/ResSelectGroup.vue +140 -140
- package/src/system.js +78 -76
- package/static/newStyle/alarm.mp3 +0 -0
- package/.npmignore +0 -10
- package/build/.npmignore +0 -1
- package/src/.npmignore +0 -1
@@ -1,137 +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 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>
|
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>
|
@@ -1,156 +1,156 @@
|
|
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">
|
9
|
-
<label class="font_normal_body">使用公司</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">
|
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">
|
22
|
-
<label class="font_normal_body">联系电话</label>
|
23
|
-
<input type="text" class="input_search" style="width:60%" v-model="model.f_phone"
|
24
|
-
condition="f_phone like '%{}%'" placeholder="联系电话">
|
25
|
-
</div>
|
26
|
-
|
27
|
-
<div class="span" style="float:right;">
|
28
|
-
<button type="button" class="button_search" @click="search()" v-el:cx>查询</button>
|
29
|
-
<button type="button" class="button_search" @click="$parent.$parent.add()" v-el:cx>新增</button>
|
30
|
-
<div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
31
|
-
@click="$parent.$parent.hidden()"></div>
|
32
|
-
</div>
|
33
|
-
</div>
|
34
|
-
<div class="row" v-show="$parent.$parent.criteriaShow">
|
35
|
-
<div class="col-sm-3">
|
36
|
-
<label class="font_normal_body"> 所在地</label>
|
37
|
-
<input type="text" class="input_search" style="width:60%" v-model="model.f_address"
|
38
|
-
condition="f_address like '%{}%'" placeholder="所在地">
|
39
|
-
</div>
|
40
|
-
<div class="col-sm-3">
|
41
|
-
<label class="font_normal_body">设备名称</label>
|
42
|
-
<input type="text" class="input_search" style="width:60%" v-model="model.f_terminal_name"
|
43
|
-
condition="f_terminal_name like '%{}%'" placeholder="设备名称">
|
44
|
-
</div>
|
45
|
-
<div class="col-sm-3">
|
46
|
-
<label class="font_normal_body">机器编号</label>
|
47
|
-
<input type="text" class="input_search" style="width:60%" v-model="model.f_machine_number"
|
48
|
-
condition="f_machine_number like '%{}%'" placeholder="机器编号">
|
49
|
-
</div>
|
50
|
-
<div class="col-sm-3">
|
51
|
-
<label class="font_normal_body">所属银行</label>
|
52
|
-
<input type="text" class="input_search" style="width:60%" v-model="model.f_bank_name"
|
53
|
-
condition="f_bank_name like '%{}%'" placeholder="所属银行">
|
54
|
-
</div>
|
55
|
-
</div>
|
56
|
-
</div>
|
57
|
-
</criteria>
|
58
|
-
<data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid >
|
59
|
-
<template partial='head'>
|
60
|
-
<tr>
|
61
|
-
<th>序号</th>
|
62
|
-
<th>设备编号</th>
|
63
|
-
<th>设备名称</th>
|
64
|
-
<th>机器编号</th>
|
65
|
-
<th>联系电话</th>
|
66
|
-
<th>所在地</th>
|
67
|
-
<th>所属银行</th>
|
68
|
-
<th>操作</th>
|
69
|
-
</tr>
|
70
|
-
</template>
|
71
|
-
<template partial='body':model="model">
|
72
|
-
<tr>
|
73
|
-
<td style="text-align:center">{{$index+1}}</td>
|
74
|
-
<td style="text-align:center">{{row.f_terminal_number}}</td>
|
75
|
-
<td style="text-align:center">{{row.f_terminal_name}}</td>
|
76
|
-
<td style="text-align:center">{{row.f_machine_number}}</td>
|
77
|
-
<td style="text-align:center">{{row.f_phone}}</td>
|
78
|
-
<td style="text-align:center">{{row.f_address}}</td>
|
79
|
-
<td style="text-align:center">{{row.f_bank_name}}</td>
|
80
|
-
<td style="text-align:center">
|
81
|
-
<button class="btn btn-link" @click.stop="$parent.$parent.$parent.del(row)">删除</button>
|
82
|
-
</td>
|
83
|
-
</tr>
|
84
|
-
</template>
|
85
|
-
</data-grid>
|
86
|
-
</criteria-paged>
|
87
|
-
</div>
|
88
|
-
</template>
|
89
|
-
|
90
|
-
<script>
|
91
|
-
|
92
|
-
import { PagedList } from 'vue-client'
|
93
|
-
|
94
|
-
export default {
|
95
|
-
title: '终端控制',
|
96
|
-
components: {},
|
97
|
-
data () {
|
98
|
-
return {
|
99
|
-
model: new PagedList('rs/sql/equipmentQuery', 20),
|
100
|
-
curorgid: [this.f_filialeid],
|
101
|
-
f_orgid: '',
|
102
|
-
f_filialeids:'',
|
103
|
-
criteriaShow: false
|
104
|
-
}
|
105
|
-
},
|
106
|
-
props: ['f_filialeid'],
|
107
|
-
ready () {
|
108
|
-
this.search()
|
109
|
-
},
|
110
|
-
methods: {
|
111
|
-
|
112
|
-
search () {
|
113
|
-
console.log("111111111111111111111111111111111111")
|
114
|
-
this.$refs.paged.$refs.cri.search()
|
115
|
-
},
|
116
|
-
|
117
|
-
selfSearch (args) {
|
118
|
-
args.condition = `${args.condition} and f_equipment_type = 'POS' and f_state = '正常' and f_filialeids = '${this.f_filialeid ? this.f_orgid: this.$login.f.orgid}'`
|
119
|
-
this.model.search(args.condition, this.model)
|
120
|
-
this.$dispatch('research')
|
121
|
-
},
|
122
|
-
|
123
|
-
add () {
|
124
|
-
if (this.f_filialeid) {
|
125
|
-
this.$parent.f_filialeid=this.f_filialeid
|
126
|
-
this.$dispatch('add')
|
127
|
-
} else {
|
128
|
-
this.$showAlert('请先选择左上角的所在分公司', 'warning', 2000)
|
129
|
-
}
|
130
|
-
|
131
|
-
},
|
132
|
-
|
133
|
-
del (row) {
|
134
|
-
console.log('要删除了', row)
|
135
|
-
row.f_state = '已删除'
|
136
|
-
this.$resetpost('rs/entity/t_equipment', row, {warnMsg: '确定要删除这条信息吗?', resolveMsg: '删除成功', rejectMsg: '删除失败'}).then((res) => {
|
137
|
-
this.$dispatch('refresh')
|
138
|
-
}).catch((error) => {
|
139
|
-
this.$dispatch('refresh')
|
140
|
-
})
|
141
|
-
},
|
142
|
-
|
143
|
-
getorg (val) {
|
144
|
-
this.f_orgid = val[0]
|
145
|
-
this.f_filialeid = val[0]
|
146
|
-
this.search()
|
147
|
-
},
|
148
|
-
hidden(){
|
149
|
-
this.criteriaShow = !this.criteriaShow
|
150
|
-
}
|
151
|
-
},
|
152
|
-
computed: {
|
153
|
-
|
154
|
-
}
|
155
|
-
}
|
156
|
-
</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">
|
9
|
+
<label class="font_normal_body">使用公司</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">
|
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">
|
22
|
+
<label class="font_normal_body">联系电话</label>
|
23
|
+
<input type="text" class="input_search" style="width:60%" v-model="model.f_phone"
|
24
|
+
condition="f_phone like '%{}%'" placeholder="联系电话">
|
25
|
+
</div>
|
26
|
+
|
27
|
+
<div class="span" style="float:right;">
|
28
|
+
<button type="button" class="button_search" @click="search()" v-el:cx>查询</button>
|
29
|
+
<button type="button" class="button_search" @click="$parent.$parent.add()" v-el:cx>新增</button>
|
30
|
+
<div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
31
|
+
@click="$parent.$parent.hidden()"></div>
|
32
|
+
</div>
|
33
|
+
</div>
|
34
|
+
<div class="row" v-show="$parent.$parent.criteriaShow">
|
35
|
+
<div class="col-sm-3">
|
36
|
+
<label class="font_normal_body"> 所在地</label>
|
37
|
+
<input type="text" class="input_search" style="width:60%" v-model="model.f_address"
|
38
|
+
condition="f_address like '%{}%'" placeholder="所在地">
|
39
|
+
</div>
|
40
|
+
<div class="col-sm-3">
|
41
|
+
<label class="font_normal_body">设备名称</label>
|
42
|
+
<input type="text" class="input_search" style="width:60%" v-model="model.f_terminal_name"
|
43
|
+
condition="f_terminal_name like '%{}%'" placeholder="设备名称">
|
44
|
+
</div>
|
45
|
+
<div class="col-sm-3">
|
46
|
+
<label class="font_normal_body">机器编号</label>
|
47
|
+
<input type="text" class="input_search" style="width:60%" v-model="model.f_machine_number"
|
48
|
+
condition="f_machine_number like '%{}%'" placeholder="机器编号">
|
49
|
+
</div>
|
50
|
+
<div class="col-sm-3">
|
51
|
+
<label class="font_normal_body">所属银行</label>
|
52
|
+
<input type="text" class="input_search" style="width:60%" v-model="model.f_bank_name"
|
53
|
+
condition="f_bank_name like '%{}%'" placeholder="所属银行">
|
54
|
+
</div>
|
55
|
+
</div>
|
56
|
+
</div>
|
57
|
+
</criteria>
|
58
|
+
<data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid >
|
59
|
+
<template partial='head'>
|
60
|
+
<tr>
|
61
|
+
<th>序号</th>
|
62
|
+
<th>设备编号</th>
|
63
|
+
<th>设备名称</th>
|
64
|
+
<th>机器编号</th>
|
65
|
+
<th>联系电话</th>
|
66
|
+
<th>所在地</th>
|
67
|
+
<th>所属银行</th>
|
68
|
+
<th>操作</th>
|
69
|
+
</tr>
|
70
|
+
</template>
|
71
|
+
<template partial='body':model="model">
|
72
|
+
<tr>
|
73
|
+
<td style="text-align:center">{{$index+1}}</td>
|
74
|
+
<td style="text-align:center">{{row.f_terminal_number}}</td>
|
75
|
+
<td style="text-align:center">{{row.f_terminal_name}}</td>
|
76
|
+
<td style="text-align:center">{{row.f_machine_number}}</td>
|
77
|
+
<td style="text-align:center">{{row.f_phone}}</td>
|
78
|
+
<td style="text-align:center">{{row.f_address}}</td>
|
79
|
+
<td style="text-align:center">{{row.f_bank_name}}</td>
|
80
|
+
<td style="text-align:center">
|
81
|
+
<button class="btn btn-link" @click.stop="$parent.$parent.$parent.del(row)">删除</button>
|
82
|
+
</td>
|
83
|
+
</tr>
|
84
|
+
</template>
|
85
|
+
</data-grid>
|
86
|
+
</criteria-paged>
|
87
|
+
</div>
|
88
|
+
</template>
|
89
|
+
|
90
|
+
<script>
|
91
|
+
|
92
|
+
import { PagedList } from 'vue-client'
|
93
|
+
|
94
|
+
export default {
|
95
|
+
title: '终端控制',
|
96
|
+
components: {},
|
97
|
+
data () {
|
98
|
+
return {
|
99
|
+
model: new PagedList('rs/sql/equipmentQuery', 20),
|
100
|
+
curorgid: [this.f_filialeid],
|
101
|
+
f_orgid: '',
|
102
|
+
f_filialeids:'',
|
103
|
+
criteriaShow: false
|
104
|
+
}
|
105
|
+
},
|
106
|
+
props: ['f_filialeid'],
|
107
|
+
ready () {
|
108
|
+
this.search()
|
109
|
+
},
|
110
|
+
methods: {
|
111
|
+
|
112
|
+
search () {
|
113
|
+
console.log("111111111111111111111111111111111111")
|
114
|
+
this.$refs.paged.$refs.cri.search()
|
115
|
+
},
|
116
|
+
|
117
|
+
selfSearch (args) {
|
118
|
+
args.condition = `${args.condition} and f_equipment_type = 'POS' and f_state = '正常' and f_filialeids = '${this.f_filialeid ? this.f_orgid: this.$login.f.orgid}'`
|
119
|
+
this.model.search(args.condition, this.model)
|
120
|
+
this.$dispatch('research')
|
121
|
+
},
|
122
|
+
|
123
|
+
add () {
|
124
|
+
if (this.f_filialeid) {
|
125
|
+
this.$parent.f_filialeid=this.f_filialeid
|
126
|
+
this.$dispatch('add')
|
127
|
+
} else {
|
128
|
+
this.$showAlert('请先选择左上角的所在分公司', 'warning', 2000)
|
129
|
+
}
|
130
|
+
|
131
|
+
},
|
132
|
+
|
133
|
+
del (row) {
|
134
|
+
console.log('要删除了', row)
|
135
|
+
row.f_state = '已删除'
|
136
|
+
this.$resetpost('rs/entity/t_equipment', row, {warnMsg: '确定要删除这条信息吗?', resolveMsg: '删除成功', rejectMsg: '删除失败'}).then((res) => {
|
137
|
+
this.$dispatch('refresh')
|
138
|
+
}).catch((error) => {
|
139
|
+
this.$dispatch('refresh')
|
140
|
+
})
|
141
|
+
},
|
142
|
+
|
143
|
+
getorg (val) {
|
144
|
+
this.f_orgid = val[0]
|
145
|
+
this.f_filialeid = val[0]
|
146
|
+
this.search()
|
147
|
+
},
|
148
|
+
hidden(){
|
149
|
+
this.criteriaShow = !this.criteriaShow
|
150
|
+
}
|
151
|
+
},
|
152
|
+
computed: {
|
153
|
+
|
154
|
+
}
|
155
|
+
}
|
156
|
+
</script>
|