system-clients 3.1.86 → 3.1.87-xianyang

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (133) hide show
  1. package/package.json +1 -1
  2. package/src/components/Main.vue +1 -1
  3. package/src/components/equipment/EquipmentManage.vue +68 -65
  4. package/src/components/equipment/PcAdd.vue +5 -5
  5. package/src/components/equipment/PcList.vue +5 -5
  6. package/src/components/equipment/PhoneAdd.vue +4 -4
  7. package/src/components/equipment/PhoneList.vue +4 -4
  8. package/src/components/equipment/PosAdd.vue +121 -117
  9. package/src/components/equipment/PosList.vue +148 -64
  10. package/src/components/equipment/PosManage.vue +89 -10
  11. package/src/components/equipment/QCAdd.vue +318 -0
  12. package/src/components/equipment/QCList.vue +230 -0
  13. package/src/components/equipment/QCManage.vue +150 -0
  14. package/src/components/server/Login.vue +642 -688
  15. package/src/components/server/ModifyPw.vue +4 -5
  16. package/src/components/server/ResSelect.vue +5 -1
  17. package/src/components/server/ResSelectGroup.vue +1 -1
  18. package/src/components/server/RightTree.vue +3 -4
  19. package/src/plugins/EncryptUtil.js +53 -0
  20. package/src/plugins/GetLoginInfoService.js +3 -0
  21. package/src/plugins/validation.js +1 -1
  22. package/src/system.js +89 -87
  23. package/.gradle/3.5/file-changes/last-build.bin +0 -0
  24. package/.gradle/3.5/taskHistory/taskHistory.lock +0 -0
  25. package/.gradle/3.5.1/file-changes/last-build.bin +0 -0
  26. package/.gradle/3.5.1/taskHistory/taskHistory.lock +0 -0
  27. package/.gradle/5.2.1/gc.properties +0 -0
  28. package/.gradle/buildOutputCleanup/built.bin +0 -0
  29. package/.gradle/buildOutputCleanup/cache.properties +0 -2
  30. package/.gradle/buildOutputCleanup/cache.properties.lock +0 -1
  31. package/.gradle/vcs-1/gc.properties +0 -0
  32. package/src/components/server/ImageVieweTest.vue +0 -56
  33. package/src/components/server/ImageViewer.vue +0 -350
  34. package/src/styles/fonts/PINGFANG LIGHT.TTF +0 -0
  35. package/src/styles/fonts/PingFangSC-Regular.ttf +0 -0
  36. package/src/styles/fonts/glyphicons-halflings-regular.eot +0 -0
  37. package/src/styles/fonts/glyphicons-halflings-regular.svg +0 -288
  38. package/src/styles/fonts/glyphicons-halflings-regular.ttf +0 -0
  39. package/src/styles/fonts/glyphicons-halflings-regular.woff +0 -0
  40. package/src/styles/fonts/glyphicons-halflings-regular.woff2 +0 -0
  41. package/src/styles/fonts/pingfang-bold.ttf +0 -0
  42. package/src/styles/fonts/pingfang-medium.ttf +0 -0
  43. package/src/styles/fonts/pingfang-regular.ttf +0 -0
  44. package/src/styles/fonts/trendstrends.ttf +0 -0
  45. 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
  46. package/src/styles/less/.csscomb.json +0 -304
  47. package/src/styles/less/.csslintrc +0 -19
  48. package/src/styles/less/alerts.less +0 -73
  49. package/src/styles/less/aofeng/animate.min.css +0 -11
  50. package/src/styles/less/aofeng/expandcss.less +0 -569
  51. package/src/styles/less/aofeng/standard.less +0 -2121
  52. package/src/styles/less/aofeng/themeOne/BinaryTemplate.less +0 -686
  53. package/src/styles/less/aofeng/themeOne/loginStyle.less +0 -1586
  54. package/src/styles/less/aofeng/themeOne/systemStyle.less +0 -2650
  55. package/src/styles/less/aofeng/themeOne.less +0 -17
  56. package/src/styles/less/aofeng/themeTwo/newStyle1.less +0 -415
  57. package/src/styles/less/aofeng/themeTwo.less +0 -3
  58. package/src/styles/less/badges.less +0 -66
  59. package/src/styles/less/bootstrap.less +0 -66
  60. package/src/styles/less/breadcrumbs.less +0 -26
  61. package/src/styles/less/button-groups.less +0 -247
  62. package/src/styles/less/buttons.less +0 -172
  63. package/src/styles/less/carousel.less +0 -269
  64. package/src/styles/less/close.less +0 -34
  65. package/src/styles/less/code.less +0 -69
  66. package/src/styles/less/component-animations.less +0 -33
  67. package/src/styles/less/dropdowns.less +0 -216
  68. package/src/styles/less/fonts-list.less +0 -25
  69. package/src/styles/less/forms.less +0 -626
  70. package/src/styles/less/glyphicons.less +0 -305
  71. package/src/styles/less/grid.less +0 -84
  72. package/src/styles/less/input-groups.less +0 -167
  73. package/src/styles/less/jumbotron.less +0 -52
  74. package/src/styles/less/labels.less +0 -64
  75. package/src/styles/less/list-group.less +0 -141
  76. package/src/styles/less/manageStyle/manageChile.less +0 -180
  77. package/src/styles/less/manageStyle/manageStyle.less +0 -1102
  78. package/src/styles/less/manageStyle/safeStyle.less +0 -498
  79. package/src/styles/less/media.less +0 -66
  80. package/src/styles/less/mixins/alerts.less +0 -14
  81. package/src/styles/less/mixins/background-variant.less +0 -9
  82. package/src/styles/less/mixins/border-radius.less +0 -18
  83. package/src/styles/less/mixins/buttons.less +0 -69
  84. package/src/styles/less/mixins/center-block.less +0 -7
  85. package/src/styles/less/mixins/clearfix.less +0 -22
  86. package/src/styles/less/mixins/forms.less +0 -90
  87. package/src/styles/less/mixins/gradients.less +0 -59
  88. package/src/styles/less/mixins/grid-framework.less +0 -92
  89. package/src/styles/less/mixins/grid.less +0 -122
  90. package/src/styles/less/mixins/hide-text.less +0 -21
  91. package/src/styles/less/mixins/image.less +0 -33
  92. package/src/styles/less/mixins/labels.less +0 -12
  93. package/src/styles/less/mixins/list-group.less +0 -30
  94. package/src/styles/less/mixins/nav-divider.less +0 -10
  95. package/src/styles/less/mixins/nav-vertical-align.less +0 -9
  96. package/src/styles/less/mixins/opacity.less +0 -8
  97. package/src/styles/less/mixins/pagination.less +0 -24
  98. package/src/styles/less/mixins/panels.less +0 -24
  99. package/src/styles/less/mixins/progress-bar.less +0 -10
  100. package/src/styles/less/mixins/reset-filter.less +0 -8
  101. package/src/styles/less/mixins/reset-text.less +0 -18
  102. package/src/styles/less/mixins/resize.less +0 -6
  103. package/src/styles/less/mixins/responsive-visibility.less +0 -15
  104. package/src/styles/less/mixins/size.less +0 -10
  105. package/src/styles/less/mixins/tab-focus.less +0 -9
  106. package/src/styles/less/mixins/table-row.less +0 -44
  107. package/src/styles/less/mixins/text-emphasis.less +0 -9
  108. package/src/styles/less/mixins/text-overflow.less +0 -8
  109. package/src/styles/less/mixins/vendor-prefixes.less +0 -227
  110. package/src/styles/less/mixins.less +0 -40
  111. package/src/styles/less/modals.less +0 -151
  112. package/src/styles/less/navbar.less +0 -660
  113. package/src/styles/less/navs.less +0 -285
  114. package/src/styles/less/normalize.less +0 -424
  115. package/src/styles/less/pager.less +0 -76
  116. package/src/styles/less/pagination.less +0 -89
  117. package/src/styles/less/panels.less +0 -275
  118. package/src/styles/less/popovers.less +0 -131
  119. package/src/styles/less/print.less +0 -101
  120. package/src/styles/less/progress-bars.less +0 -87
  121. package/src/styles/less/responsive-embed.less +0 -35
  122. package/src/styles/less/responsive-utilities.less +0 -194
  123. package/src/styles/less/scaffolding.less +0 -161
  124. package/src/styles/less/stand.less +0 -207
  125. package/src/styles/less/tables.less +0 -262
  126. package/src/styles/less/theme.less +0 -291
  127. package/src/styles/less/thumbnails.less +0 -36
  128. package/src/styles/less/tooltip.less +0 -102
  129. package/src/styles/less/type.less +0 -303
  130. package/src/styles/less/utilities.less +0 -55
  131. package/src/styles/less/variables.less +0 -896
  132. package/src/styles/less/wells.less +0 -29
  133. package/static/logo.png +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "system-clients",
3
- "version": "3.1.86",
3
+ "version": "3.1.87-xianyang",
4
4
  "description": "系统基础框架",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -85,7 +85,7 @@
85
85
  <!-- <li>{{name}}</li> -->
86
86
  <li>{{date}}</li>
87
87
  <li @click="show=true">修改密码</li>
88
- <li @click="AddChangeMsgShow=true">系统版本:1.0.0</li>
88
+ <li @click="AddChangeMsgShow=true">系统版本:{{$login.version?$login.version:'1.0.0'}}</li>
89
89
  </ul>
90
90
 
91
91
  </dropdown>
@@ -1,65 +1,68 @@
1
- <template>
2
- <div class="flex">
3
- <div class="auto">
4
- <div class="form-horizontal select-overspread" style="background: white; padding: 0 1%;">
5
- <div class="row">
6
- <div class="col-sm-2 form-group">
7
- <label class="font_normal_body">终端类型</label>
8
- <v-select id="f_charge_type"
9
- v-model="model.f_equipment_type"
10
- placeholder='终端类型'
11
- :value.sync="model.f_equipment_type"
12
- :options='equipmentType'
13
- close-on-select clear-button>
14
- </v-select>
15
- </div>
16
- </div>
17
- </div>
18
- </div>
19
- <div v-if="model.f_equipment_type[0] === 'PC'">
20
- <pc-manage></pc-manage>
21
- </div>
22
- <div v-if="model.f_equipment_type[0] === 'POS'">
23
- <pos-manage></pos-manage>
24
- </div>
25
- <div v-if="model.f_equipment_type[0] === 'PHONE'">
26
- <phone-manage></phone-manage>
27
- </div>
28
- </div>
29
- </template>
30
-
31
- <script>
32
-
33
- export default {
34
- title: '终端控制',
35
- data () {
36
- return {
37
- filialeNameStr: this.$login.f.f_fengongsi,
38
- filialeCodeStr: this.$login.f.orgid,
39
- userid:this.$login.f.id,
40
- source: `tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() != $role$))`,
41
- equipmentType: this.$appdata.getParam('终端类型'),
42
- model: {
43
- f_equipment_type: []
44
- }
45
- }
46
- },
47
- ready () {
48
- console.log('看看终端类型', this.equipmentType)
49
- this.model.f_equipment_type = [this.equipmentType[0].value]
50
- },
51
- methods: {
52
- del (row) {
53
- console.log('要删除了', row)
54
- },
55
-
56
- getRes (obj) {
57
- this.filialeNameStr = obj.res
58
- this.filialeCodeStr = obj.resids
59
- },
60
- },
61
- computed: {
62
-
63
- }
64
- }
65
- </script>
1
+ <template>
2
+ <div class="flex">
3
+ <div class="auto">
4
+ <div class="form-horizontal select-overspread" style="background: white; padding: 0 1%;">
5
+ <div class="row">
6
+ <div class="col-sm-2 form-group">
7
+ <label class="font_normal_body">终端类型</label>
8
+ <v-select id="f_charge_type"
9
+ v-model="model.f_equipment_type"
10
+ placeholder='终端类型'
11
+ :value.sync="model.f_equipment_type"
12
+ :options='equipmentType'
13
+ close-on-select clear-button>
14
+ </v-select>
15
+ </div>
16
+ </div>
17
+ </div>
18
+ </div>
19
+ <div v-if="model.f_equipment_type[0] === 'PC'">
20
+ <pc-manage></pc-manage>
21
+ </div>
22
+ <div v-if="model.f_equipment_type[0] === 'POS'">
23
+ <pos-manage></pos-manage>
24
+ </div>
25
+ <div v-if="model.f_equipment_type[0] === 'PHONE'">
26
+ <phone-manage></phone-manage>
27
+ </div>
28
+ <div v-if="model.f_equipment_type[0] === '圈存机'">
29
+ <qc-manage></qc-manage>
30
+ </div>
31
+ </div>
32
+ </template>
33
+
34
+ <script>
35
+
36
+ export default {
37
+ title: '终端控制',
38
+ data () {
39
+ return {
40
+ filialeNameStr: this.$login.f.f_fengongsi,
41
+ filialeCodeStr: this.$login.f.orgid,
42
+ userid:this.$login.f.id,
43
+ source: `tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() != $role$))`,
44
+ equipmentType: this.$appdata.getParam('终端类型'),
45
+ model: {
46
+ f_equipment_type: []
47
+ }
48
+ }
49
+ },
50
+ ready () {
51
+ console.log('看看终端类型', this.equipmentType)
52
+ this.model.f_equipment_type = [this.equipmentType[0].value]
53
+ },
54
+ methods: {
55
+ del (row) {
56
+ console.log('要删除了', row)
57
+ },
58
+
59
+ getRes (obj) {
60
+ this.filialeNameStr = obj.res
61
+ this.filialeCodeStr = obj.resids
62
+ },
63
+ },
64
+ computed: {
65
+
66
+ }
67
+ }
68
+ </script>
@@ -1,23 +1,23 @@
1
1
  <template>
2
- <div class="auto select-overspread">
2
+ <div class="row 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 form-group">
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 form-group">
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 form-group">
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 form-group">
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 form-group">
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 form-group" >
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 form-group" >
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 form-group" >
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-link" @click.stop="$parent.$parent.$parent.del(row)">删除</button>
61
+ <button class="btn btn-danger" @click.stop="$parent.$parent.$parent.del(row)">删除</button>
62
62
  </td>
63
63
  </tr>
64
64
  </template>
@@ -1,20 +1,20 @@
1
1
  <template>
2
- <div class="auto select-overspread">
2
+ <div class="row 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
- <div class="col-sm-6">
9
+ <div class="col-sm-6 form-group">
10
10
  <label class="font_normal_body">使用人员</label>
11
11
  <input type="text" style="width: 60%" class="input_search" v-model="model.f_username" placeholder="使用人员" >
12
12
  </div>
13
- <div class="col-sm-6">
13
+ <div class="col-sm-6 form-group">
14
14
  <label class="font_normal_body">设备号</label>
15
15
  <input type="text" style="width: 60%" class="input_search" v-model="model.f_terminal_number" placeholder="设备号" >
16
16
  </div>
17
- <div class="col-sm-6">
17
+ <div class="col-sm-6 form-group">
18
18
  <label class="font_normal_body">使用公司</label>
19
19
  <right-tree :userid.sync='userid' :source.sync='source' @re-res="getRes"></right-tree>
20
20
  </div>
@@ -4,17 +4,17 @@
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 form-group">
8
8
  <label class="font_normal_body">使用公司</label>
9
9
  <right-tree :userid.sync='$parent.$parent.userid' :source.sync='$parent.$parent.source' @re-res="$parent.$parent.getRes" > </right-tree>
10
10
  </div>
11
11
 
12
- <div class="col-sm-3" >
12
+ <div class="col-sm-3 form-group" >
13
13
  <label class="font_normal_body">使用人员</label>
14
14
  <input type="text" class="input_search" style="width:60%" v-model="model.f_username"
15
15
  condition="f_username like '%{}%'" placeholder="使用人员">
16
16
  </div>
17
- <div class="col-sm-3" >
17
+ <div class="col-sm-3 form-group" >
18
18
  <label class="font_normal_body">设备号</label>
19
19
  <input type="text" class="input_search" style="width:60%" v-model="model.f_terminal_number"
20
20
  condition="f_terminal_number like '%{}%'" placeholder="设备号">
@@ -41,7 +41,7 @@
41
41
  <td style="text-align:center">{{row.f_username}}</td>
42
42
  <td style="text-align:center">{{row.f_terminal_number}}</td>
43
43
  <td style="text-align:center">
44
- <button class="btn btn-link" @click.stop="$parent.$parent.$parent.del(row)">删除</button>
44
+ <button class="btn btn-danger" @click.stop="$parent.$parent.$parent.del(row)">删除</button>
45
45
  </td>
46
46
  </tr>
47
47
  </template>
@@ -4,94 +4,65 @@
4
4
  <ul class="nav nav-tabs" >
5
5
  <li role="presentation" class="active"><a href="#">POS</a></li>
6
6
  </ul>
7
- <form class="form-horizontal">
7
+ <form novalidate class="form-horizontal" >
8
8
  <div class="row">
9
- <div class="col-sm-4">
10
- <label class="font_normal_body" >设备编号</label>
11
- <input type="text" class="input_search" style="width: 60%" v-model="model.f_terminal_number" placeholder="设备编号" >
9
+ <div class="col-sm-4 form-group">
10
+ <label class="font_normal_body">所属人员</label>
11
+ <right-tree @re-res="getRes" :source="source"></right-tree>
12
12
  </div>
13
- <div class="col-sm-4">
14
- <label class="font_normal_body" >设备名称</label>
15
- <input type="text" class="input_search" style="width: 60%" v-model="model.f_terminal_name" placeholder="设备名称" >
13
+ <div class="col-sm-4 form-group" :class="[$v.f_terminal_number.required ? 'has-error' : '']">
14
+ <label class="font_normal_body">设备编号</label>
15
+ <input type="text" class="input_search" style="width: 60%" v-model="model.f_terminal_number" placeholder="设备编号" v-el:f_terminal_number
16
+ v-validate:f_terminal_number='{required :true}' />
16
17
  </div>
17
- <div class="col-sm-4">
18
- <label class="font_normal_body" >设备类型</label>
19
- <input type="text" class="input_search" style="width: 60%" v-model="model.f_equipment_type" placeholder="设备类型" >
18
+ <div class="col-sm-4 form-group" :class="[$v.f_terminal_name.required ? 'has-error' : '']">
19
+ <label class="font_normal_body">设备名称</label>
20
+ <input type="text" class="input_search" style="width: 60%" v-model="model.f_terminal_name" placeholder="设备名称"
21
+ v-validate:f_terminal_name='{required: true}' />
20
22
  </div>
21
- </div>
22
- <div class="row">
23
- <div class="col-sm-4">
24
- <label class="font_normal_body" >mac 号&nbsp;&nbsp;</label>
25
- <input type="text" class="input_search" style="width: 60%" v-model="model.f_mac_number" placeholder="机器编号" >
23
+ <div class="col-sm-4 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}" />
26
27
  </div>
27
- <div class="col-sm-4">
28
+ <div class="col-sm-4 form-group">
29
+ <label class="font_normal_body" >MAC&nbsp;号&nbsp;</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-4 form-group">
28
33
  <label class="font_normal_body" >机器编号</label>
29
34
  <input type="text" class="input_search" style="width: 60%" v-model="model.f_machine_number" placeholder="机器编号" >
30
35
  </div>
31
- <div class="col-sm-4">
32
- <label class="font_normal_body" >联系电话</label>
33
- <input type="text" class="input_search" style="width: 60%" v-model="model.f_phone" placeholder="联系电话" >
36
+ <div class="col-sm-4 form-group" :class="{'has-error': $v.f_phone.required}">
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>-->
34
41
  </div>
35
- </div>
36
- <div class="row">
37
- <div class="col-sm-4">
38
- <label class="font_normal_body" >&nbsp;&nbsp;&nbsp;所在地</label>
39
- <input type="text" class="input_search" style="width: 60%" v-model="model.f_address" placeholder="所在地" >
40
- </div>
41
- <div class="col-sm-4">
42
- <label class="font_normal_body" >所属银行</label>
43
- <input type="text" class="input_search" style="width: 60%" v-model="model.f_bank_name" placeholder="所属银行" >
42
+ <div class="col-sm-4 form-group" :class="{'has-error': $v.f_address.required}">
43
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;所在地</label>
44
+ <input type="text" class="input_search" style="width: 60%" v-model="model.f_address" placeholder="所在地"
45
+ v-validate:f_address="{required: true}">
44
46
  </div>
45
- <div class="col-sm-4">
46
- <label class="font_normal_body" >使用人员</label>
47
- <input type="text" class="input_search" style="width: 60%" v-model="model.f_username" placeholder="所属银行" >
47
+ <div class="col-sm-4 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}">
48
51
  </div>
49
52
  </div>
50
- <div class="col-sm-12">
51
- <label class="font_normal_body " style="margin-top:-20px">&nbsp;&nbsp;&nbsp;备注&nbsp;&nbsp;&nbsp;</label>
53
+ <div class="col-sm-12 form-group">
54
+ <label class="font_normal_body " >&nbsp;&nbsp;&nbsp;备注&nbsp;&nbsp;&nbsp;</label>
52
55
  <textarea class="input_textarea" rows="3" style="width:80%;margin-top:5px" v-model="model.f_comments"></textarea>
53
56
  </div>
54
57
  </form>
55
58
  <div style="text-align:right;height:auto;">
56
59
  <button class="button_search" @click="uploadFiles()" v-if="info">上传图片</button>
57
- <button class="btn btn-info" @click="upgrade()" v-if="info">升级</button>
58
- <button class="btn btn-info" @click="abcd(row)" v-if="info">历史</button>
59
- <button class="btn btn-success" @click="getEditState()" v-if="model.f_state !== '正常'&& info" >启用</button>
60
- <button class="btn btn-danger" @click="getEditState()" v-if="model.f_state === '正常'&& info" >停用</button>
61
- <button class="btn button_search " @click="confirm()" >确认</button>
60
+ <button class="btn btn-info" @click="upgrade()" v-if="info && data.f_state==='正常'">升级</button>
61
+ <button class="btn btn-success" @click="getEditState()" v-if="model.f_state === '停用' && info" >启用</button>
62
+ <button class="btn btn-danger" @click="getEditState()" v-if="model.f_state === '正常' && info" >停用</button>
63
+ <button class="btn button_search" @click="confirm()" :disabled="!$v.valid" >确认</button>
62
64
  <button class="btn button_clear " @click="cancel()" >取消</button>
63
65
  </div>
64
- <modal v-show="infoshow" :show.sync="infoshow" v-ref:modal backdrop="false" width="800px" title="终端历史信息">
65
- <article slot="modal-body" class="modal-body">
66
- <criteria-paged :model="model2" v-ref:paged2>
67
- <data-grid :model="model2" v-ref:grid2 partial='list'>
68
- <template partial='head'>
69
- <tr>
70
- <!--<th style="padding: 0;border: 0">
71
- <input type="checkbox" id="f_operator" v-model="$parent.$parent.$parent.all[model.pageIndex-1]"
72
- @change="$parent.$parent.$parent.select()" style="width: 22px;height: 22px"/>
73
- </th>-->
74
- <th><nobr>序号</nobr></th>
75
- <th><nobr>终端号</nobr></th>
76
- <th><nobr>上次上报时间</nobr></th>
77
- <th><nobr>本次上报时间</nobr></th>
78
- <th><nobr><b>状态</b></nobr></th>
79
- </tr>
80
- </template>
81
- <template partial='body'>
82
- <td style="text-align: center;">{{$index + 1}}</td>
83
- <td style="text-align: center;">{{row.f_terminal_number}}</td>
84
- <td style="text-align: center;">{{row.f_update_date}}</td>
85
- <td style="text-align: center;">{{row.f_update_date }}</td>
86
- <td style="text-align: center;"><b>{{row.f_pos_state}}</b></td>
87
- </template>
88
- </data-grid>
89
- </criteria-paged>
90
- </article>
91
- <footer slot="modal-footer" class="modal-footer">
92
- <button type="button" class="btn btn-success" @click='infoclose'>关闭</button>
93
- </footer>
94
- </modal>
95
66
  <modal :show.sync="showfiles" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
96
67
  <article slot="modal-body">
97
68
  <upload :blodid="model.f_userinfo_id" :businessid="model.id" v-ref:upload fusetype="收费" isremark="true" style="width:auto" ></upload>
@@ -100,7 +71,7 @@
100
71
  </footer>
101
72
  </modal>
102
73
 
103
- <modal v-if="show" :show.sync="show" v-ref:modal backdrop="false">
74
+ <modal v-if="show" :show.sync="show" v-ref:modal backdrop="false" >
104
75
  <header slot="modal-header" class="modal-header">
105
76
  <button type="button" class="close" @click="close"><span>&times;</span></button>
106
77
  <h4 class="modal-title">pos机升级</h4>
@@ -126,7 +97,7 @@
126
97
  </form>
127
98
  </article>
128
99
  <footer slot="modal-footer" class="modal-footer">
129
- <button type="button" class="button_search button_spacing" @click='confirm'>是</button>
100
+ <button type="button" class="button_search button_spacing" @click='upgradeRoot()'>是</button>
130
101
  <button type="button" class="button_clear button_spacing" @click='close'>否</button>
131
102
  </footer>
132
103
  </modal>
@@ -139,28 +110,27 @@
139
110
  export default {
140
111
  data () {
141
112
  return {
113
+ checkparam: false,
114
+ source: `tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() != $role$))`,
142
115
  model: {
143
116
  f_terminal_number: '',
144
117
  f_terminal_name: '',
145
118
  f_mac_number:'',
146
- f_username:'',
119
+ // f_username:'',
147
120
  f_bank_name: '',
148
121
  f_equipment_type: 'POS',
149
- f_state: '',
150
- f_machine_number:'',
122
+ f_state: '正常',
123
+ f_machine_number: '',
151
124
  f_phone:'',
152
125
  f_comments:'',
153
126
  f_address:'',
154
- f_filialeids:this.f_filialeids,
127
+ f_filialeids: '',
155
128
  f_orgid:''
156
129
  },
157
- model2: new PagedList('rs/sql/getPosUpdate', 30, {orderitem: '`id DESC`'}),
158
- infoshow: false,
159
130
  showfiles: false,
160
131
  show:false,
161
- info:true,
162
- infoadd:this.infoadd
163
-
132
+ infoadd: this.infoadd,
133
+ isSelPop: false
164
134
  }
165
135
  },
166
136
  props: ['data', 'f_filialeids','info'],
@@ -179,13 +149,42 @@
179
149
  if (this.data) {
180
150
  this.edit(this.data)
181
151
  }
182
- console.log("查看是否隐藏",this.info)
152
+ console.log('查看是否隐藏', this.info)
183
153
  },
154
+
184
155
  methods: {
185
- close () {
156
+ recursiveSelOrg(val, flag){
157
+ if(val.parent){
158
+ if(val.parent.resourcetype===flag){
159
+ return {id: val.parent.id, name: val.parent.name}
160
+ } else {
161
+ return this.recursiveSelOrg(val.parent,flag)
162
+ }
163
+ } else {
164
+ return {id: '', name: ''}
165
+ }
166
+ },
167
+ getRes(val){
168
+ console.log('====================', val)
169
+ if (val.orgobj.length === 1 && val.orgobj[0].resourcetype === 'user'){
186
170
 
187
- this.show = false
171
+ let org = this.recursiveSelOrg(val.orgobj[0], 'organization')
172
+ this.model.f_user_orgid=org.id
173
+ this.model.f_user_orgname=org.name
174
+ let dep = this.recursiveSelOrg(val.orgobj[0], 'department')
175
+ this.model.f_user_depid=dep.id
176
+ this.model.f_user_depname=dep.name
188
177
 
178
+ this.model.f_user_operatorid = val.orgobj[0].userid
179
+ this.model.f_user_operator=val.orgobj[0].name
180
+ this.isSelPop = true
181
+ } else {
182
+ // 不可提交
183
+ this.isSelPop = false
184
+ }
185
+ },
186
+ close () {
187
+ this.show = false
189
188
  },
190
189
  uploadFiles(){
191
190
  this.showfiles= !this.showfiles
@@ -194,24 +193,28 @@
194
193
  if (this.model.f_state === '正常') {
195
194
  this.$showMessage(`当前设备号: ${this.model.f_terminal_number} ,确认停用该设备?`, ['confirm', 'cancel']).then((res) => {
196
195
  if (res === 'confirm') {
197
- this.$showAlert(`设备号: ${this.model.f_terminal_number},已停用`, 'success', 2000)
198
- this.model.f_state = "停用"
196
+ this.$showAlert(`已向设备号: ${this.model.f_terminal_number}发送停用指令,请稍后查看执行结果!`, 'success', 2500)
197
+ this.model.f_state = '停用'
199
198
  try {
200
- this.$resetpost('rs/logic/updatePosState', {data: {number: this.model.f_terminal_number, state: '停用'}}, {}, 0).then((res) => {
201
- })
199
+ // 测试接口
200
+ // this.$resetpost('rs/logic/updatePosState', {data: {number: this.model.f_terminal_number, state: '停用'}}, {resolveMsg: null, rejectMsg: null}, 0)
201
+ // .then((res) => {})
202
+ this.$resetpost('rs/logic/batchPos',{data: {tasks: [this.data], taskState: 0}}, {rejectMsg: null, resolveMsg: null})
202
203
  } catch (error) {
203
204
  this.search()
204
205
  }
205
206
  }
206
207
  })
207
- }else if (this.model.f_state === '停用'){
208
+ } else if (this.model.f_state === '停用'){
208
209
  this.$showMessage(`当前设备号: ${this.model.f_terminal_number} ,确认启用该设备?`, ['confirm', 'cancel']).then((res) => {
209
210
  if (res === 'confirm') {
210
- this.$showAlert(`设备号: ${this.model.f_terminal_number},已启用`, 'success', 2000)
211
- this.model.f_state = "正常"
211
+ this.$showAlert(`已向设备号: ${this.model.f_terminal_number}发送启用指令,请稍后查看执行结果!`, 'success', 2500)
212
+ this.model.f_state = '正常'
212
213
  try {
213
- this.$resetpost('rs/logic/getEditPosState', {data: {number: this.model.f_terminal_number, state: '正常'}}, {}, 0).then((res) => {
214
- })
214
+ // 测试接口
215
+ // this.$resetpost('rs/logic/getEditPosState', {data: {number: this.model.f_terminal_number, state: '正常'}}, {resolveMsg: null, rejectMsg: null}, 0)
216
+ // .then((res) => {})
217
+ this.$resetpost('rs/logic/batchPos',{data: {tasks: [this.data], taskState: 1}}, {rejectMsg: null, resolveMsg: null})
215
218
  } catch (error) {
216
219
  this.search()
217
220
  }
@@ -223,42 +226,41 @@
223
226
  this.editshow = true
224
227
  this.posBase = val
225
228
  },
226
- infoclose(){
227
- this.infoshow=false
228
- },
229
- abcd (row) {
230
- console.log("chakan",row)
231
- console.log("chakan",this.model)
232
- let condition = `f_machine_number = '${this.model.f_machine_number}'`
233
- this.model2.search(condition)
234
- this.infoshow = true
235
- console.log("进方法了么?",this.infoshow)
236
- },
229
+
237
230
  //升级
238
231
  upgrade(){
239
- this.show=true
232
+ this.show=true
233
+ },
234
+ upgradeRoot() {
235
+ this.$resetpost('rs/logic/batchPos',{data: {tasks: [this.data], taskState: 2}}, {rejectMsg: null, resolveMsg: null})
236
+ this.$dispatch('refresh')
237
+ // this.$resetpost('rs/logic/t_equipment', {data: val}, {resolveMsg: null, rejectMsg: null}).then((res) => {
238
+ // this.$dispatch('refresh')
239
+ // }).catch((error) => {
240
+ // this.$dispatch('refresh')
241
+ // })
240
242
  },
241
243
  search () {
242
244
  this.$refs.paged.$refs.cri.search()
243
245
  },
244
246
  confirm () {
245
- // if(this.f_filialeids!=''&&this.f_filialeids!=null){
246
- this.model.f_operator = this.$login.f.name
247
- this.model.f_operatorid = this.$login.f.id
248
- this.model.f_filialeids = this.f_filialeids
249
- this.model.f_orgid = this.$login.f.orgid
250
- this.model.f_orgname = this.$login.f.orgs
251
- this.model.f_depid = this.$login.f.depids
252
- this.model.f_depname = this.$login.f.deps
247
+ // 如果是修改的话,只修改页面上用户填写的信息
248
+ if (!this.info) {
249
+ this.model.f_online = '离线'
250
+ this.model.f_operator = this.$login.f.name
251
+ this.model.f_orgid = this.$login.f.orgid
252
+ this.model.f_filialeids = this.$login.f.orgid
253
+ this.model.f_operatorid = this.$login.f.id
254
+ this.model.f_orgname = this.$login.f.orgs
255
+ this.model.f_depid = this.$login.f.depids
256
+ this.model.f_depname = this.$login.f.deps
257
+ this.model.f_orgstr = this.$login.f.fullids
258
+ }
253
259
  this.$resetpost('rs/entity/t_equipment', this.model, {resolveMsg: '保存成功', rejectMsg: '保存失败'}).then((res) => {
254
260
  this.$dispatch('refresh')
255
261
  }).catch((error) => {
256
262
  this.$dispatch('refresh')
257
263
  })
258
- // }else
259
- // {
260
- // this.$showAlert('请先选择左上角的所在分公司', 'warning', 2000)
261
- // }
262
264
 
263
265
  },
264
266
  edit (row) {
@@ -266,12 +268,14 @@
266
268
  this.model.f_terminal_name = row.f_terminal_name
267
269
  this.model.f_bank_name = row.f_bank_name
268
270
  this.model.f_machine_number = row.f_machine_number
271
+ this.model.f_mac_number = row.f_mac_number
269
272
  this.model.f_address = row.f_address
270
273
  this.model.f_phone = row.f_phone
271
274
  this.model.f_state = row.f_state
272
275
  this.model.f_comments=row.f_comments
273
- this.model.f_filialeids=row.f_filialeids
276
+ // this.model.f_username=row.f_username
274
277
  this.model.id = row.id
278
+ this.model.f_filialeids=row.f_filialeids
275
279
  this.model.f_orgid = row.f_orgid
276
280
  },
277
281
  initModel () {