system-clients 3.2.6 → 3.2.7-rongcheng
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/.gradle/3.5/file-changes/last-build.bin +0 -0
- package/.gradle/3.5/taskHistory/taskHistory.lock +0 -0
- package/.gradle/3.5.1/file-changes/last-build.bin +0 -0
- package/.gradle/3.5.1/taskHistory/taskHistory.lock +0 -0
- package/.gradle/buildOutputCleanup/built.bin +0 -0
- package/.gradle/buildOutputCleanup/cache.properties +2 -0
- package/.gradle/buildOutputCleanup/cache.properties.lock +1 -0
- package/SystemClient.iml +5 -2
- package/build/webpack.base.conf.js +11 -21
- package/package.json +4 -6
- package/src/App.vue +24 -24
- package/src/components/Main.vue +476 -626
- package/src/components/equipment/EquipmentManage.vue +1 -1
- package/src/components/equipment/PcAdd.vue +5 -5
- package/src/components/equipment/PcList.vue +5 -5
- package/src/components/equipment/PhoneAdd.vue +13 -26
- package/src/components/equipment/PhoneList.vue +21 -31
- package/src/components/equipment/PosAdd.vue +45 -231
- package/src/components/equipment/PosList.vue +68 -198
- package/src/components/equipment/PosManage.vue +9 -80
- package/src/components/parammanage/ParamManage.vue +2 -2
- package/src/components/parammanage/ParamPage.vue +8 -30
- package/src/components/parammanage/SinglePage.vue +4 -4
- package/src/components/server/LoadData.vue +2 -21
- package/src/components/server/Login.vue +638 -889
- package/src/components/server/ModifyPw.vue +7 -12
- package/src/components/server/ResSelect.vue +0 -5
- package/src/components/server/RightTree.vue +204 -289
- package/src/plugins/GetLoginInfoService.js +515 -521
- package/src/plugins/validation.js +1 -9
- package/src/system.js +1 -34
- package/src/components/TabButton.vue +0 -201
- package/src/components/Tabs.vue +0 -67
- package/src/components/addressManage/AddressCascadingMenu.vue +0 -145
- 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/filiale/dongguan/Main.vue +0 -715
- package/src/filiale/dongguan/system.js +0 -5
- package/src/filiale/konggang/Login.vue +0 -840
- package/src/filiale/konggang/system.js +0 -7
- package/src/filiale/qianneng/ModifyPw.vue +0 -107
- package/src/filiale/qianneng/system.js +0 -7
- package/src/filiale/rizhao/LeftTree.vue +0 -111
- package/src/filiale/rizhao/Login.vue +0 -791
- package/src/filiale/rizhao/Main.vue +0 -606
- package/src/filiale/rizhao/system.js +0 -14
- package/src/filiale/yuchuan/Login.vue +0 -889
- package/src/filiale/yuchuan/Main.vue +0 -773
- package/src/filiale/yuchuan/system.js +0 -10
- package/src/plugins/EncryptUtil.js +0 -53
- package/src/plugins/HeatGetLoginInfoService.js +0 -491
- package/src/stores/HeatAppData.js +0 -38
- package/src/styles/fonts/PINGFANG LIGHT.TTF +0 -0
- package/src/styles/fonts/PingFangSC-Regular.ttf +0 -0
- package/src/styles/fonts/glyphicons-halflings-regular.eot +0 -0
- package/src/styles/fonts/glyphicons-halflings-regular.svg +0 -288
- package/src/styles/fonts/glyphicons-halflings-regular.ttf +0 -0
- package/src/styles/fonts/glyphicons-halflings-regular.woff +0 -0
- package/src/styles/fonts/glyphicons-halflings-regular.woff2 +0 -0
- package/src/styles/fonts/pingfang-bold.ttf +0 -0
- package/src/styles/fonts/pingfang-medium.ttf +0 -0
- package/src/styles/fonts/pingfang-regular.ttf +0 -0
- package/src/styles/fonts/trendstrends.ttf +0 -0
- package/src/styles/fonts//346/261/211/344/273/252/350/217/261/345/277/203/344/275/223/347/256/200.ttf +0 -0
- package/src/styles/less/.csscomb.json +0 -304
- package/src/styles/less/.csslintrc +0 -19
- package/src/styles/less/alerts.less +0 -73
- package/src/styles/less/aofeng/animate.min.css +0 -11
- package/src/styles/less/aofeng/expandcss.less +0 -569
- package/src/styles/less/aofeng/standard.less +0 -2507
- package/src/styles/less/aofeng/themeOne/BinaryTemplate.less +0 -686
- package/src/styles/less/aofeng/themeOne/loginStyle.less +0 -1586
- package/src/styles/less/aofeng/themeOne/systemStyle.less +0 -2650
- package/src/styles/less/aofeng/themeOne.less +0 -17
- package/src/styles/less/aofeng/themeTwo/newStyle1.less +0 -415
- package/src/styles/less/aofeng/themeTwo.less +0 -3
- package/src/styles/less/badges.less +0 -66
- package/src/styles/less/bootstrap.less +0 -66
- package/src/styles/less/breadcrumbs.less +0 -26
- package/src/styles/less/button-groups.less +0 -247
- package/src/styles/less/buttons.less +0 -172
- package/src/styles/less/carousel.less +0 -269
- package/src/styles/less/close.less +0 -34
- package/src/styles/less/code.less +0 -69
- package/src/styles/less/component-animations.less +0 -33
- package/src/styles/less/dropdowns.less +0 -216
- package/src/styles/less/fonts-list.less +0 -25
- package/src/styles/less/forms.less +0 -626
- package/src/styles/less/glyphicons.less +0 -305
- package/src/styles/less/grid.less +0 -84
- package/src/styles/less/input-groups.less +0 -167
- package/src/styles/less/jumbotron.less +0 -52
- package/src/styles/less/labels.less +0 -64
- package/src/styles/less/list-group.less +0 -141
- package/src/styles/less/manageStyle/manageChile.less +0 -180
- 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/src/styles/less/manageStyle/manageStyle.less +0 -1102
- package/src/styles/less/manageStyle/safeStyle.less +0 -498
- package/src/styles/less/media.less +0 -66
- package/src/styles/less/mixins/alerts.less +0 -14
- package/src/styles/less/mixins/background-variant.less +0 -9
- package/src/styles/less/mixins/border-radius.less +0 -18
- package/src/styles/less/mixins/buttons.less +0 -69
- package/src/styles/less/mixins/center-block.less +0 -7
- package/src/styles/less/mixins/clearfix.less +0 -22
- package/src/styles/less/mixins/forms.less +0 -90
- package/src/styles/less/mixins/gradients.less +0 -59
- package/src/styles/less/mixins/grid-framework.less +0 -92
- package/src/styles/less/mixins/grid.less +0 -122
- package/src/styles/less/mixins/hide-text.less +0 -21
- package/src/styles/less/mixins/image.less +0 -33
- package/src/styles/less/mixins/labels.less +0 -12
- package/src/styles/less/mixins/list-group.less +0 -30
- package/src/styles/less/mixins/nav-divider.less +0 -10
- package/src/styles/less/mixins/nav-vertical-align.less +0 -9
- package/src/styles/less/mixins/opacity.less +0 -8
- package/src/styles/less/mixins/pagination.less +0 -24
- package/src/styles/less/mixins/panels.less +0 -24
- package/src/styles/less/mixins/progress-bar.less +0 -10
- package/src/styles/less/mixins/reset-filter.less +0 -8
- package/src/styles/less/mixins/reset-text.less +0 -18
- package/src/styles/less/mixins/resize.less +0 -6
- package/src/styles/less/mixins/responsive-visibility.less +0 -15
- package/src/styles/less/mixins/size.less +0 -10
- package/src/styles/less/mixins/tab-focus.less +0 -9
- package/src/styles/less/mixins/table-row.less +0 -44
- package/src/styles/less/mixins/text-emphasis.less +0 -9
- package/src/styles/less/mixins/text-overflow.less +0 -8
- package/src/styles/less/mixins/vendor-prefixes.less +0 -227
- package/src/styles/less/mixins.less +0 -40
- package/src/styles/less/modals.less +0 -151
- package/src/styles/less/navbar.less +0 -660
- package/src/styles/less/navs.less +0 -285
- package/src/styles/less/normalize.less +0 -424
- package/src/styles/less/pager.less +0 -76
- package/src/styles/less/pagination.less +0 -89
- package/src/styles/less/panels.less +0 -275
- package/src/styles/less/popovers.less +0 -131
- package/src/styles/less/print.less +0 -101
- package/src/styles/less/progress-bars.less +0 -87
- package/src/styles/less/responsive-embed.less +0 -35
- package/src/styles/less/responsive-utilities.less +0 -194
- package/src/styles/less/scaffolding.less +0 -161
- package/src/styles/less/stand.less +0 -207
- package/src/styles/less/tables.less +0 -312
- package/src/styles/less/theme.less +0 -291
- package/src/styles/less/thumbnails.less +0 -36
- package/src/styles/less/tooltip.less +0 -102
- package/src/styles/less/type.less +0 -316
- package/src/styles/less/utilities.less +0 -55
- package/src/styles/less/variables.less +0 -899
- package/src/styles/less/wells.less +0 -29
- package/src/util/Daiban.json +0 -12
- package/static/images/lefticon//345/220/210/345/220/214/347/256/241/347/220/206.png +0 -0
- package/static/logo.png +0 -0
- package/static/newStyle/about-us.png +0 -0
- package/static/rizhao.png +0 -0
- package/yarn-error.log +0 -6896
@@ -4,7 +4,7 @@
|
|
4
4
|
<div class="form-horizontal select-overspread" style="background: white; padding: 0 1%;">
|
5
5
|
<div class="row">
|
6
6
|
<div class="col-sm-2 form-group">
|
7
|
-
<label class="font_normal_body"
|
7
|
+
<label class="font_normal_body">终端类型</label>
|
8
8
|
<v-select id="f_charge_type"
|
9
9
|
v-model="model.f_equipment_type"
|
10
10
|
placeholder='终端类型'
|
@@ -1,23 +1,23 @@
|
|
1
1
|
<template>
|
2
|
-
<div class="
|
2
|
+
<div class="auto select-overspread">
|
3
3
|
<validator name='v'>
|
4
4
|
<ul class="nav nav-tabs" >
|
5
5
|
<li role="presentation" class="active"><a href="#">PC端MAC</a></li>
|
6
6
|
</ul>
|
7
7
|
<form class="form-horizontal">
|
8
|
-
<div class="col-sm-6
|
8
|
+
<div class="col-sm-6">
|
9
9
|
<label class="font_normal_body">使用人员</label>
|
10
10
|
<input type="text" style="width: 60%" class="input_search" v-model="model.f_username" placeholder="使用人员" >
|
11
11
|
</div>
|
12
|
-
<div class="col-sm-6
|
12
|
+
<div class="col-sm-6">
|
13
13
|
<label class="font_normal_body">所属地址</label>
|
14
14
|
<input type="text" style="width: 60%" class="input_search" v-model="model.f_mac_outlets" placeholder="所属地址" >
|
15
15
|
</div>
|
16
|
-
<div class="col-sm-6
|
16
|
+
<div class="col-sm-6">
|
17
17
|
<label class="font_normal_body">mac地址</label>
|
18
18
|
<input type="text" style="width: 60%" class="input_search" v-model="model.f_mac_number" placeholder="mac地址" >
|
19
19
|
</div>
|
20
|
-
<div class="col-sm-6
|
20
|
+
<div class="col-sm-6">
|
21
21
|
<label class="font_normal_body">使用公司</label>
|
22
22
|
|
23
23
|
<res-select restype='organization'
|
@@ -4,7 +4,7 @@
|
|
4
4
|
<criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
|
5
5
|
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
6
6
|
<div class="row">
|
7
|
-
<div class="col-sm-3
|
7
|
+
<div class="col-sm-3">
|
8
8
|
<label class="font_normal_body">使用公司</label>
|
9
9
|
<res-select restype='organization'
|
10
10
|
is-mul="false"
|
@@ -13,12 +13,12 @@
|
|
13
13
|
</res-select>
|
14
14
|
</div>
|
15
15
|
|
16
|
-
<div class="col-sm-3
|
16
|
+
<div class="col-sm-3" >
|
17
17
|
<label class="font_normal_body">使用人员</label>
|
18
18
|
<input type="text" class="input_search" style="width:60%" v-model="model.f_username"
|
19
19
|
condition="f_username like '%{}%'" placeholder="使用人员">
|
20
20
|
</div>
|
21
|
-
<div class="col-sm-3
|
21
|
+
<div class="col-sm-3" >
|
22
22
|
<label class="font_normal_body">所属地址</label>
|
23
23
|
<input type="text" class="input_search" style="width:60%" v-model="model.f_mac_outlets"
|
24
24
|
condition="f_mac_outlets like '%{}%'" placeholder="所属地址">
|
@@ -31,7 +31,7 @@
|
|
31
31
|
</div>
|
32
32
|
</div>
|
33
33
|
<div class="row" v-show="$parent.$parent.criteriaShow">
|
34
|
-
<div class="col-sm-3
|
34
|
+
<div class="col-sm-3" >
|
35
35
|
<label class="font_normal_body">MAC地址</label>
|
36
36
|
<input type="text" class="input_search" style="width:60%" v-model="model.f_mac_number"
|
37
37
|
condition="f_mac_number like '%{}%'" placeholder="MAC地址">
|
@@ -58,7 +58,7 @@
|
|
58
58
|
<td style="text-align:center">{{row.f_mac_outlets}}</td>
|
59
59
|
<td style="text-align:center">{{row.f_mac_number}}</td>
|
60
60
|
<td style="text-align:center">
|
61
|
-
<button class="btn btn-
|
61
|
+
<button class="btn btn-link" @click.stop="$parent.$parent.$parent.del(row)">删除</button>
|
62
62
|
</td>
|
63
63
|
</tr>
|
64
64
|
</template>
|
@@ -1,28 +1,23 @@
|
|
1
1
|
<template>
|
2
|
-
<div class="
|
2
|
+
<div class="auto select-overspread">
|
3
3
|
<validator name='v'>
|
4
4
|
<ul class="nav nav-tabs" >
|
5
5
|
<li role="presentation" class="active"><a href="#">Phone端设备号</a></li>
|
6
6
|
</ul>
|
7
7
|
<form class="form-horizontal">
|
8
8
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
is-mul="false"
|
22
|
-
@res-select="getorg"
|
23
|
-
:initresid="curorgid">
|
24
|
-
</res-select>
|
25
|
-
</div>
|
9
|
+
<div class="col-sm-6">
|
10
|
+
<label class="font_normal_body">使用人员</label>
|
11
|
+
<input type="text" style="width: 60%" class="input_search" v-model="model.f_username" placeholder="使用人员" >
|
12
|
+
</div>
|
13
|
+
<div class="col-sm-6">
|
14
|
+
<label class="font_normal_body">设备号</label>
|
15
|
+
<input type="text" style="width: 60%" class="input_search" v-model="model.f_terminal_number" placeholder="设备号" >
|
16
|
+
</div>
|
17
|
+
<div class="col-sm-6">
|
18
|
+
<label class="font_normal_body">使用公司</label>
|
19
|
+
<right-tree :userid.sync='userid' :source.sync='source' @re-res="getRes"></right-tree>
|
20
|
+
</div>
|
26
21
|
|
27
22
|
</form>
|
28
23
|
<div style="text-align:right;height:auto;">
|
@@ -47,8 +42,6 @@
|
|
47
42
|
filialeCodeStr: this.$login.f.f_orgids,
|
48
43
|
userid: this.$login.f.id,
|
49
44
|
source: `tool.getFullTree(this.getRights().where(row.getType() == $organization$))`,
|
50
|
-
curorgid: this.$login.f.orgid,
|
51
|
-
f_orgid: ''
|
52
45
|
}
|
53
46
|
},
|
54
47
|
props: ['data'],
|
@@ -71,7 +64,6 @@
|
|
71
64
|
confirm () {
|
72
65
|
this.model.f_operator = this.$login.f.name
|
73
66
|
this.model.f_filialeids = this.filialeCodeStr
|
74
|
-
this.model.f_orgid = this.f_orgid
|
75
67
|
console.log('保存', this.model)
|
76
68
|
this.$resetpost('rs/entity/t_equipment', this.model, {resolveMsg: '保存成功', rejectMsg: '保存失败'}).then((res) => {
|
77
69
|
this.$dispatch('refresh')
|
@@ -85,8 +77,6 @@
|
|
85
77
|
this.model.f_terminal_number = row.f_terminal_number
|
86
78
|
this.model.id = row.id
|
87
79
|
this.filialeCodeStr = row.f_filialeids
|
88
|
-
this.f_orgid = row.f_orgid
|
89
|
-
this.curorgid= [row.f_orgid]
|
90
80
|
},
|
91
81
|
initModel () {
|
92
82
|
delete this.model.id
|
@@ -99,9 +89,6 @@
|
|
99
89
|
getRes(obj) {
|
100
90
|
this.filialeCodeStr = obj.resids
|
101
91
|
},
|
102
|
-
getorg (val) {
|
103
|
-
this.f_orgid = val[0]
|
104
|
-
}
|
105
92
|
}
|
106
93
|
}
|
107
94
|
</script>
|
@@ -4,32 +4,27 @@
|
|
4
4
|
<criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
|
5
5
|
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
6
6
|
<div class="row">
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
is-mul="false"
|
12
|
-
@res-select="$parent.$parent.getorg"
|
13
|
-
:initresid="$parent.$parent.curorgid">
|
14
|
-
</res-select>
|
15
|
-
</div>
|
7
|
+
<div class="col-sm-3">
|
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
|
+
</div>
|
16
11
|
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
</div>
|
12
|
+
<div class="col-sm-3" >
|
13
|
+
<label class="font_normal_body">使用人员</label>
|
14
|
+
<input type="text" class="input_search" style="width:60%" v-model="model.f_username"
|
15
|
+
condition="f_username like '%{}%'" placeholder="使用人员">
|
16
|
+
</div>
|
17
|
+
<div class="col-sm-3" >
|
18
|
+
<label class="font_normal_body">设备号</label>
|
19
|
+
<input type="text" class="input_search" style="width:60%" v-model="model.f_terminal_number"
|
20
|
+
condition="f_terminal_number like '%{}%'" placeholder="设备号">
|
21
|
+
</div>
|
22
|
+
<div class="span" style="float:right;">
|
23
|
+
<button class="button_search" @click="$parent.$parent.search()" v-el:cx>查询</button>
|
24
|
+
<button class="button_search" @click="$parent.$parent.add()" v-el:cx>新增</button>
|
31
25
|
</div>
|
32
26
|
</div>
|
27
|
+
</div>
|
33
28
|
</criteria>
|
34
29
|
<data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid >
|
35
30
|
<template partial='head'>
|
@@ -46,7 +41,7 @@
|
|
46
41
|
<td style="text-align:center">{{row.f_username}}</td>
|
47
42
|
<td style="text-align:center">{{row.f_terminal_number}}</td>
|
48
43
|
<td style="text-align:center">
|
49
|
-
<button class="btn btn-
|
44
|
+
<button class="btn btn-link" @click.stop="$parent.$parent.$parent.del(row)">删除</button>
|
50
45
|
</td>
|
51
46
|
</tr>
|
52
47
|
</template>
|
@@ -67,9 +62,7 @@
|
|
67
62
|
filialeNameStr: this.$login.f.f_fengongsi,
|
68
63
|
filialeCodeStr: this.$login.f.f_orgids,
|
69
64
|
userid:this.$login.f.id,
|
70
|
-
|
71
|
-
source: `tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() != $role$))`,
|
72
|
-
f_orgid:''
|
65
|
+
source: `tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() != $role$))`
|
73
66
|
}
|
74
67
|
},
|
75
68
|
ready () {
|
@@ -82,7 +75,7 @@
|
|
82
75
|
},
|
83
76
|
|
84
77
|
selfSearch (args) {
|
85
|
-
args.condition = `${args.condition} and f_equipment_type = 'PHONE' and f_state = '正常' and
|
78
|
+
args.condition = `${args.condition} and f_equipment_type = 'PHONE' and f_state = '正常' and f_filialeids like '${this.filialeCodeStr}%'`
|
86
79
|
this.model.search(args.condition, this.model)
|
87
80
|
},
|
88
81
|
add () {
|
@@ -101,9 +94,6 @@
|
|
101
94
|
this.filialeNameStr = obj.res
|
102
95
|
this.filialeCodeStr = obj.resids
|
103
96
|
},
|
104
|
-
getorg (val) {
|
105
|
-
this.f_orgid = val[0]
|
106
|
-
}
|
107
97
|
},
|
108
98
|
computed: {
|
109
99
|
|
@@ -4,148 +4,71 @@
|
|
4
4
|
<ul class="nav nav-tabs" >
|
5
5
|
<li role="presentation" class="active"><a href="#">POS</a></li>
|
6
6
|
</ul>
|
7
|
-
<form
|
7
|
+
<form class="form-horizontal">
|
8
8
|
<div class="row">
|
9
|
-
<div class="col-sm-6
|
10
|
-
<label class="font_normal_body"
|
11
|
-
<
|
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
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
|
-
v-validate:f_terminal_number='{required :true}' />
|
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="设备名称" >
|
17
16
|
</div>
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
v-validate:f_terminal_name='{required: true}' />
|
22
|
-
</div>
|
23
|
-
<div class="col-sm-6 form-group" :class="{'has-error': $v.f_equipment_type.required}">
|
24
|
-
<label class="font_normal_body">设备类型</label>
|
25
|
-
<input type="text" class="input_search" style="width: 60%" v-model="model.f_equipment_type" placeholder="设备类型"
|
26
|
-
v-validate:f_equipment_type="{required: true}" />
|
27
|
-
</div>
|
28
|
-
<div class="col-sm-6 form-group">
|
29
|
-
<label class="font_normal_body" >MAC 号 </label>
|
30
|
-
<input type="text" class="input_search" style="width: 60%" v-model="model.f_mac_number" placeholder="MAC号" >
|
31
|
-
</div>
|
32
|
-
<div class="col-sm-6 form-group">
|
17
|
+
</div>
|
18
|
+
<div class="row">
|
19
|
+
<div class="col-sm-6">
|
33
20
|
<label class="font_normal_body" >机器编号</label>
|
34
21
|
<input type="text" class="input_search" style="width: 60%" v-model="model.f_machine_number" placeholder="机器编号" >
|
35
22
|
</div>
|
36
|
-
<div class="col-sm-6
|
37
|
-
<label class="font_normal_body">联系电话</label>
|
38
|
-
<input type="text" class="input_search" style="width: 60%" v-model="model.f_phone" placeholder="联系电话"
|
39
|
-
v-validate:f_phone="{required: true, minlength:7, maxlength: 11}" title="手机号必须7-11位">
|
40
|
-
<!-- <div class="font_normal_body" v-if="$v.f_phone.minlength || $v.f_phone.maxlength"><span>手机号必须7-11位</span></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="联系电话" >
|
41
26
|
</div>
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
<div class="col-sm-6 form-group" :class="{'has-error': $v.f_bank_name.required}">
|
48
|
-
<label class="font_normal_body">所属银行</label>
|
49
|
-
<input type="text" class="input_search" style="width: 60%" v-model="model.f_bank_name" placeholder="所属银行"
|
50
|
-
v-validate:f_bank_name="{required: true}">
|
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="所在地" >
|
51
32
|
</div>
|
52
|
-
<div class="col-sm-6
|
53
|
-
<label class="font_normal_body"
|
54
|
-
<v-
|
55
|
-
v-model="model.f_param_id"
|
56
|
-
placeholder='所属参数'
|
57
|
-
:value.sync="model.f_param_id"
|
58
|
-
:options='ParamTypeItems'
|
59
|
-
close-on-select clear-button>
|
60
|
-
</v-select>
|
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="所属银行" >
|
61
36
|
</div>
|
62
37
|
</div>
|
63
|
-
<div class="col-sm-12
|
64
|
-
<label class="font_normal_body " > 备注 </label>
|
38
|
+
<div class="col-sm-12">
|
39
|
+
<label class="font_normal_body " style="margin-top:-20px"> 备注 </label>
|
65
40
|
<textarea class="input_textarea" rows="3" style="width:80%;margin-top:5px" v-model="model.f_comments"></textarea>
|
66
41
|
</div>
|
67
42
|
</form>
|
68
43
|
<div style="text-align:right;height:auto;">
|
69
|
-
<button class="button_search"
|
70
|
-
<button class="btn btn-info" @click="upgrade()" v-if="info && data.f_state==='正常'">升级</button>
|
71
|
-
<button class="btn btn-success" @click="getEditState()" v-if="model.f_state === '停用' && info" >启用</button>
|
72
|
-
<button class="btn btn-danger" @click="getEditState()" v-if="model.f_state === '正常' && info" >停用</button>
|
73
|
-
<button class="btn button_search" @click="confirm()" :disabled="!$v.valid" >确认</button>
|
44
|
+
<button class="btn button_search " @click="confirm()" >确认</button>
|
74
45
|
<button class="btn button_clear " @click="cancel()" >取消</button>
|
75
46
|
</div>
|
76
|
-
<modal :show.sync="showfiles" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
|
77
|
-
<article slot="modal-body" style="height: 500px">
|
78
|
-
<upload v-show="showfiles" :businessid="model.id" v-ref:upload fusetype="POS" isremark="true" style="width:auto" ></upload>
|
79
|
-
</article>
|
80
|
-
<footer slot="modal-footer" class="modal-footer">
|
81
|
-
</footer>
|
82
|
-
</modal>
|
83
|
-
<modal v-if="show" :show.sync="show" v-ref:modal backdrop="false" >
|
84
|
-
<header slot="modal-header" class="modal-header">
|
85
|
-
<button type="button" class="close" @click="close"><span>×</span></button>
|
86
|
-
<h4 class="modal-title">pos机升级</h4>
|
87
|
-
</header>
|
88
|
-
<article slot="modal-body" class="modal-body">
|
89
|
-
<form class="form-horizontal">
|
90
|
-
<div class="row">
|
91
|
-
<div>
|
92
|
-
<h4>是否升级?</h4>
|
93
|
-
</div>
|
94
|
-
<!-- <div class="col-sm-6 form-group">-->
|
95
|
-
<!-- <label class="font_normal_body">参数名称</label>-->
|
96
|
-
<!-- <input type="text" class="input_search" style="width: 60%" v-model="modifyItem.name" @keyup.enter="confirm">-->
|
97
|
-
<!-- </div>-->
|
98
|
-
<!-- <div class="col-sm-6 form-group" v-if="modifyItem.EntityType === 't_parameter'">-->
|
99
|
-
<!-- <div class="checkbox">-->
|
100
|
-
<!-- <label>-->
|
101
|
-
<!-- <input type="checkbox" v-model="modifyItem.isGlobal" :checked="modifyItem.isGlobal">是否全局-->
|
102
|
-
<!-- </label>-->
|
103
|
-
<!-- </div>-->
|
104
|
-
<!-- </div>-->
|
105
|
-
</div>
|
106
|
-
</form>
|
107
|
-
</article>
|
108
|
-
<footer slot="modal-footer" class="modal-footer">
|
109
|
-
<button type="button" class="button_search button_spacing" @click='upgradeRoot()'>是</button>
|
110
|
-
<button type="button" class="button_clear button_spacing" @click='close'>否</button>
|
111
|
-
</footer>
|
112
|
-
</modal>
|
113
47
|
</validator>
|
114
|
-
|
115
48
|
</div>
|
116
49
|
</template>
|
117
50
|
<script>
|
118
|
-
|
51
|
+
|
52
|
+
|
119
53
|
export default {
|
120
54
|
data () {
|
121
55
|
return {
|
122
|
-
checkparam: false,
|
123
|
-
source: `tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() != $role$))`,
|
124
56
|
model: {
|
125
57
|
f_terminal_number: '',
|
126
58
|
f_terminal_name: '',
|
127
|
-
f_mac_number:'',
|
128
|
-
// f_username:'',
|
129
59
|
f_bank_name: '',
|
130
60
|
f_equipment_type: 'POS',
|
131
61
|
f_state: '正常',
|
132
|
-
f_machine_number:
|
62
|
+
f_machine_number:'',
|
133
63
|
f_phone:'',
|
134
64
|
f_comments:'',
|
135
65
|
f_address:'',
|
136
|
-
f_filialeids:
|
137
|
-
f_orgid:''
|
138
|
-
|
139
|
-
},
|
140
|
-
ParamTypeItems:[],
|
141
|
-
showfiles: false,
|
142
|
-
show:false,
|
143
|
-
infoadd: this.infoadd,
|
144
|
-
isSelPop: false
|
66
|
+
f_filialeids:this.f_filialeids,
|
67
|
+
f_orgid:''
|
68
|
+
}
|
145
69
|
}
|
146
70
|
},
|
147
|
-
props: ['data', 'f_filialeids'
|
148
|
-
|
71
|
+
props: ['data', 'f_filialeids'],
|
149
72
|
watch: {
|
150
73
|
'data' (val) {
|
151
74
|
if (val) {
|
@@ -155,134 +78,31 @@ import {HttpResetClass, PagedList} from 'vue-client'
|
|
155
78
|
}
|
156
79
|
}
|
157
80
|
},
|
158
|
-
|
81
|
+
ready () {
|
159
82
|
console.log('mac信息:', this.data)
|
160
83
|
if (this.data) {
|
161
84
|
this.edit(this.data)
|
162
85
|
}
|
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
86
|
},
|
181
|
-
|
182
87
|
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
88
|
confirm () {
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
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
|
-
}
|
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
|
281
97
|
this.$resetpost('rs/entity/t_equipment', this.model, {resolveMsg: '保存成功', rejectMsg: '保存失败'}).then((res) => {
|
282
98
|
this.$dispatch('refresh')
|
283
99
|
}).catch((error) => {
|
284
100
|
this.$dispatch('refresh')
|
285
101
|
})
|
102
|
+
// }else
|
103
|
+
// {
|
104
|
+
// this.$showAlert('请先选择左上角的所在分公司', 'warning', 2000)
|
105
|
+
// }
|
286
106
|
|
287
107
|
},
|
288
108
|
edit (row) {
|
@@ -290,15 +110,11 @@ import {HttpResetClass, PagedList} from 'vue-client'
|
|
290
110
|
this.model.f_terminal_name = row.f_terminal_name
|
291
111
|
this.model.f_bank_name = row.f_bank_name
|
292
112
|
this.model.f_machine_number = row.f_machine_number
|
293
|
-
this.model.f_mac_number = row.f_mac_number
|
294
113
|
this.model.f_address = row.f_address
|
295
114
|
this.model.f_phone = row.f_phone
|
296
|
-
this.model.f_state = row.f_state
|
297
115
|
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
116
|
this.model.f_filialeids=row.f_filialeids
|
117
|
+
this.model.id = row.id
|
302
118
|
this.model.f_orgid = row.f_orgid
|
303
119
|
},
|
304
120
|
initModel () {
|
@@ -307,9 +123,7 @@ import {HttpResetClass, PagedList} from 'vue-client'
|
|
307
123
|
this.model.f_terminal_name = ''
|
308
124
|
this.model.f_bank_name = ''
|
309
125
|
this.model.f_machine_number = ''
|
310
|
-
this.model.f_state = '正常'
|
311
126
|
this.model.f_phone = ''
|
312
|
-
this.model.f_param_id = ''
|
313
127
|
this.model.f_address = ''
|
314
128
|
this.model.f_filialeids=''
|
315
129
|
this.model.f_orgid=''
|