system-clients 3.2.97 → 3.2.98-weinan

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 (219) hide show
  1. package/.eslintrc.js +16 -16
  2. package/.gradle/7.4/checksums/checksums.lock +0 -0
  3. package/.gradle/7.4/dependencies-accessors/dependencies-accessors.lock +0 -0
  4. package/.gradle/7.4/dependencies-accessors/gc.properties +0 -0
  5. package/.gradle/7.4/executionHistory/executionHistory.bin +0 -0
  6. package/.gradle/7.4/executionHistory/executionHistory.lock +0 -0
  7. package/.gradle/7.4/fileChanges/last-build.bin +0 -0
  8. package/.gradle/7.4/fileHashes/fileHashes.bin +0 -0
  9. package/.gradle/7.4/fileHashes/fileHashes.lock +0 -0
  10. package/.gradle/7.4/gc.properties +0 -0
  11. package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  12. package/.gradle/buildOutputCleanup/cache.properties +2 -0
  13. package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  14. package/.gradle/file-system.probe +0 -0
  15. package/.gradle/vcs-1/gc.properties +0 -0
  16. package/SystemClient.iml +8 -8
  17. package/build/webpack.base.conf.js +85 -85
  18. package/build.gradle +6 -6
  19. package/examples/LoginPage/App.vue +21 -21
  20. package/examples/LoginPage/index.html +11 -11
  21. package/examples/LoginPage/main.js +15 -15
  22. package/gradle/wrapper/gradle-wrapper.jar +0 -0
  23. package/gradle/wrapper/gradle-wrapper.properties +5 -0
  24. package/index.html +21 -21
  25. package/package.json +103 -103
  26. package/src/components/Main.vue +961 -937
  27. package/src/components/TabButton.vue +201 -201
  28. package/src/components/Tabs.vue +67 -67
  29. package/src/components/Util.js +343 -343
  30. package/src/components/addressManage/AddressCascadingMenu.vue +145 -145
  31. package/src/components/common/ProgressBase.vue +83 -83
  32. package/src/components/equipment/EquipmentManage.vue +83 -83
  33. package/src/components/equipment/PcAdd.vue +115 -115
  34. package/src/components/equipment/PcList.vue +119 -119
  35. package/src/components/equipment/PcManage.vue +61 -61
  36. package/src/components/equipment/PhoneAdd.vue +118 -118
  37. package/src/components/equipment/PhoneList.vue +113 -113
  38. package/src/components/equipment/PhoneManage.vue +61 -61
  39. package/src/components/equipment/PosAdd.vue +323 -319
  40. package/src/components/equipment/PosList.vue +294 -292
  41. package/src/components/equipment/PosManage.vue +138 -138
  42. package/src/components/equipment/PosManageBoth.vue +125 -125
  43. package/src/components/equipment/PosParamAdd.vue +236 -236
  44. package/src/components/equipment/PosParamList.vue +121 -121
  45. package/src/components/equipment/PosParamManage.vue +51 -51
  46. package/src/components/materialManage/materialData.vue +44 -44
  47. package/src/components/materialManage/materialList.vue +255 -255
  48. package/src/components/parammanage/ParamManage.vue +42 -42
  49. package/src/components/parammanage/ParamPage.vue +337 -337
  50. package/src/components/parammanage/ParamPages.vue +222 -222
  51. package/src/components/parammanage/SinglePage.vue +235 -235
  52. package/src/components/parammanage/SinglePages.vue +167 -167
  53. package/src/components/server/AddChangeMsg.vue +66 -66
  54. package/src/components/server/ChangeDeclare.vue +45 -45
  55. package/src/components/server/ImageVieweTest.vue +56 -56
  56. package/src/components/server/ImageViewer.vue +350 -350
  57. package/src/components/server/LeftTree.vue +111 -111
  58. package/src/components/server/LoadData.vue +55 -55
  59. package/src/components/server/Login.vue +37 -20
  60. package/src/components/server/LoginPage.vue +235 -235
  61. package/src/components/server/LoginView.vue +128 -128
  62. package/src/components/server/Menu.vue +188 -188
  63. package/src/components/server/ModifyPw.vue +125 -126
  64. package/src/components/server/PcdBuildingSelect.vue +241 -243
  65. package/src/components/server/ResSelect.vue +175 -169
  66. package/src/components/server/ResSelectGroup.vue +211 -211
  67. package/src/components/server/RightTree.vue +348 -348
  68. package/src/components/server/RoleSelector.vue +89 -90
  69. package/src/components/server/TestResSelect.vue +58 -58
  70. package/src/components/server/TestResSelectGroup.vue +388 -388
  71. package/src/filiale/baole/Login.vue +568 -570
  72. package/src/filiale/baole/system.js +5 -5
  73. package/src/filiale/bayan/PosAdd.vue +369 -0
  74. package/src/filiale/bayan/PosList.vue +349 -0
  75. package/src/filiale/bayan/PosManage.vue +138 -0
  76. package/src/filiale/bayan/system.js +6 -0
  77. package/src/filiale/chengtou/Login.vue +537 -539
  78. package/src/filiale/chengtou/system.js +5 -5
  79. package/src/filiale/dongguan/Login.vue +900 -902
  80. package/src/filiale/dongguan/Main.vue +715 -717
  81. package/src/filiale/dongguan/system.js +6 -6
  82. package/src/filiale/furuike/Login.vue +583 -587
  83. package/src/filiale/furuike/Main.vue +827 -840
  84. package/src/filiale/furuike/system.js +7 -7
  85. package/src/filiale/gehua/Main.vue +807 -809
  86. package/src/filiale/gehua/system.js +6 -6
  87. package/src/filiale/konggang/Login.vue +470 -472
  88. package/src/filiale/konggang/system.js +7 -7
  89. package/src/filiale/qianneng/Login.vue +582 -584
  90. package/src/filiale/qianneng/Main.vue +816 -818
  91. package/src/filiale/qianneng/ModifyPw.vue +107 -108
  92. package/src/filiale/qianneng/system.js +11 -11
  93. package/src/filiale/rizhao/LeftTree.vue +111 -111
  94. package/src/filiale/rizhao/Login.vue +791 -793
  95. package/src/filiale/rizhao/Main.vue +611 -611
  96. package/src/filiale/rizhao/system.js +14 -14
  97. package/src/filiale/shiquan/Login.vue +564 -566
  98. package/src/filiale/shiquan/system.js +8 -8
  99. package/src/filiale/tianyi/Login.vue +571 -573
  100. package/src/filiale/tianyi/system.js +5 -5
  101. package/src/filiale/tongchuan/Login.vue +561 -563
  102. package/src/filiale/tongchuan/Main.vue +1019 -1021
  103. package/src/filiale/tongchuan/system.js +7 -7
  104. package/src/filiale/weinan/Main.vue +923 -924
  105. package/src/filiale/weinan/system.js +7 -7
  106. package/src/filiale/wenxi/Login.vue +535 -537
  107. package/src/filiale/wenxi/Main.vue +785 -787
  108. package/src/filiale/wenxi/system.js +10 -10
  109. package/src/filiale/wuhai/LeftTree.vue +141 -141
  110. package/src/filiale/wuhai/Main.vue +807 -810
  111. package/src/filiale/wuhai/system.js +10 -10
  112. package/src/filiale/yuchuan/Login.vue +889 -891
  113. package/src/filiale/yuchuan/Main.vue +864 -866
  114. package/src/filiale/yuchuan/system.js +10 -10
  115. package/src/filiale/zhoukou/Main.vue +807 -809
  116. package/src/filiale/zhoukou/system.js +6 -6
  117. package/src/plugins/EncryptUtil.js +1 -1
  118. package/src/plugins/GetLoginInfoService.js +173 -13
  119. package/src/plugins/HeatGetLoginInfoService.js +491 -491
  120. package/src/plugins/validation.js +15 -15
  121. package/src/stores/AppData.js +38 -38
  122. package/src/stores/HeatAppData.js +38 -38
  123. package/src/styles/fonts/glyphicons-halflings-regular.svg +288 -288
  124. package/src/styles/less/.csscomb.json +304 -304
  125. package/src/styles/less/.csslintrc +19 -19
  126. package/src/styles/less/alerts.less +73 -73
  127. package/src/styles/less/aofeng/animate.min.css +10 -10
  128. package/src/styles/less/aofeng/expandcss.less +569 -569
  129. package/src/styles/less/aofeng/login.less +367 -367
  130. package/src/styles/less/aofeng/standard.less +2507 -2507
  131. package/src/styles/less/aofeng/themeOne/BinaryTemplate.less +690 -690
  132. package/src/styles/less/aofeng/themeOne/loginStyle.less +1586 -1586
  133. package/src/styles/less/aofeng/themeOne/systemStyle.less +2650 -2650
  134. package/src/styles/less/aofeng/themeOne.less +17 -17
  135. package/src/styles/less/aofeng/themeTwo/newStyle1.less +415 -415
  136. package/src/styles/less/aofeng/themeTwo.less +3 -3
  137. package/src/styles/less/badges.less +66 -66
  138. package/src/styles/less/bootstrap.less +66 -66
  139. package/src/styles/less/breadcrumbs.less +26 -26
  140. package/src/styles/less/button-groups.less +247 -247
  141. package/src/styles/less/buttons.less +172 -172
  142. package/src/styles/less/carousel.less +269 -269
  143. package/src/styles/less/close.less +34 -34
  144. package/src/styles/less/code.less +69 -69
  145. package/src/styles/less/component-animations.less +33 -33
  146. package/src/styles/less/dropdowns.less +216 -216
  147. package/src/styles/less/fonts-list.less +25 -25
  148. package/src/styles/less/forms.less +626 -626
  149. package/src/styles/less/glyphicons.less +305 -305
  150. package/src/styles/less/grid.less +84 -84
  151. package/src/styles/less/input-groups.less +167 -167
  152. package/src/styles/less/jumbotron.less +52 -52
  153. package/src/styles/less/labels.less +64 -64
  154. package/src/styles/less/list-group.less +141 -141
  155. package/src/styles/less/manageStyle/manageChile.less +180 -180
  156. package/src/styles/less/manageStyle/manageStyle/manageChile.less +180 -180
  157. package/src/styles/less/manageStyle/manageStyle/manageStyle.less +1102 -1102
  158. package/src/styles/less/manageStyle/manageStyle/safeStyle.less +498 -498
  159. package/src/styles/less/manageStyle/manageStyle.less +1102 -1102
  160. package/src/styles/less/manageStyle/safeStyle.less +498 -498
  161. package/src/styles/less/media.less +66 -66
  162. package/src/styles/less/mixins/alerts.less +14 -14
  163. package/src/styles/less/mixins/background-variant.less +9 -9
  164. package/src/styles/less/mixins/border-radius.less +18 -18
  165. package/src/styles/less/mixins/buttons.less +69 -69
  166. package/src/styles/less/mixins/center-block.less +7 -7
  167. package/src/styles/less/mixins/clearfix.less +22 -22
  168. package/src/styles/less/mixins/forms.less +90 -90
  169. package/src/styles/less/mixins/gradients.less +59 -59
  170. package/src/styles/less/mixins/grid-framework.less +92 -92
  171. package/src/styles/less/mixins/grid.less +122 -122
  172. package/src/styles/less/mixins/hide-text.less +21 -21
  173. package/src/styles/less/mixins/image.less +33 -33
  174. package/src/styles/less/mixins/labels.less +12 -12
  175. package/src/styles/less/mixins/list-group.less +30 -30
  176. package/src/styles/less/mixins/nav-divider.less +10 -10
  177. package/src/styles/less/mixins/nav-vertical-align.less +9 -9
  178. package/src/styles/less/mixins/opacity.less +8 -8
  179. package/src/styles/less/mixins/pagination.less +24 -24
  180. package/src/styles/less/mixins/panels.less +24 -24
  181. package/src/styles/less/mixins/progress-bar.less +10 -10
  182. package/src/styles/less/mixins/reset-filter.less +8 -8
  183. package/src/styles/less/mixins/reset-text.less +18 -18
  184. package/src/styles/less/mixins/resize.less +6 -6
  185. package/src/styles/less/mixins/responsive-visibility.less +15 -15
  186. package/src/styles/less/mixins/size.less +10 -10
  187. package/src/styles/less/mixins/tab-focus.less +9 -9
  188. package/src/styles/less/mixins/table-row.less +44 -44
  189. package/src/styles/less/mixins/text-emphasis.less +9 -9
  190. package/src/styles/less/mixins/text-overflow.less +8 -8
  191. package/src/styles/less/mixins/vendor-prefixes.less +227 -227
  192. package/src/styles/less/mixins.less +40 -40
  193. package/src/styles/less/modals.less +151 -151
  194. package/src/styles/less/navbar.less +660 -660
  195. package/src/styles/less/navs.less +285 -285
  196. package/src/styles/less/normalize.less +424 -424
  197. package/src/styles/less/pager.less +76 -76
  198. package/src/styles/less/pagination.less +89 -89
  199. package/src/styles/less/panels.less +275 -275
  200. package/src/styles/less/popovers.less +131 -131
  201. package/src/styles/less/print.less +101 -101
  202. package/src/styles/less/progress-bars.less +87 -87
  203. package/src/styles/less/responsive-embed.less +35 -35
  204. package/src/styles/less/responsive-utilities.less +194 -194
  205. package/src/styles/less/scaffolding.less +161 -161
  206. package/src/styles/less/stand.less +207 -207
  207. package/src/styles/less/tables.less +312 -312
  208. package/src/styles/less/theme.less +291 -291
  209. package/src/styles/less/thumbnails.less +36 -36
  210. package/src/styles/less/tooltip.less +102 -102
  211. package/src/styles/less/type.less +316 -316
  212. package/src/styles/less/utilities.less +55 -55
  213. package/src/styles/less/variables.less +899 -899
  214. package/src/styles/less/wells.less +29 -29
  215. package/src/system.js +125 -121
  216. package/src/util/Daiban.json +12 -12
  217. package/yarn-error.log +6896 -6896
  218. package/src/filiale/ruihua/Login.vue +0 -549
  219. package/src/filiale/ruihua/system.js +0 -5
@@ -0,0 +1,349 @@
1
+ <template>
2
+ <div class="flex">
3
+ <criteria-paged :model="model" v-ref:paged>
4
+
5
+ <criteria partial='criteria' style="background-color: white;" @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 form-group">
9
+ <label class="font_normal_body">公&emsp;&emsp;司 </label>
10
+ <right-tree @re-res="$parent.$parent.getRes"></right-tree>
11
+ </div>
12
+ <div class="col-sm-3 form-group">
13
+ <label class="font_normal_body">设备编号</label>
14
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_terminal_number"
15
+ condition="f_terminal_number like '%{}%'" placeholder="设备编号">
16
+ </div>
17
+
18
+
19
+ <div class="span" style="float:right;margin-top: 6px">
20
+ <button type="button" class="btn-success btn " style="border-radius: 4px"
21
+ @click="$parent.$parent.batchRoot('1')">批量启用
22
+ </button>
23
+ <button type="button" class="btn-danger btn " style="border-radius: 4px"
24
+ @click="$parent.$parent.batchRoot('0')">批量停用
25
+ </button>
26
+ <button type="button" class="button_search btn" @click="search()" v-el:cx>查询</button>
27
+ <button type="button" class="button_search btn" @click="$parent.$parent.add() " v-el:cx>新增</button>
28
+ <div style="float: right" class="button_spacing"
29
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
30
+ @click="$parent.$parent.hidden()"></div>
31
+ </div>
32
+ </div>
33
+ <div class="row" v-show="$parent.$parent.criteriaShow">
34
+ <div class="col-sm-3 form-group">
35
+ <label class="font_normal_body">所属部门</label>
36
+ <res-select restype='department'
37
+ :is-mul="false"
38
+ @res-select="$parent.$parent.getdep"
39
+ :parentresid="$parent.$parent.depresid">
40
+ </res-select>
41
+ </div>
42
+ <div class="col-sm-3 form-group">
43
+ <label class="font_normal_body">所属人员</label>
44
+ <res-select restype='user'
45
+ @res-select="$parent.$parent.getuser"
46
+ :is-mul="false"
47
+ :parentresid="$parent.$parent.userresid">
48
+ </res-select>
49
+ </div>
50
+ <div class="col-sm-3 form-group">
51
+ <label class="font_normal_body">所在地</label>
52
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_address"
53
+ condition="f_address like '%{}%'" placeholder="所在地">
54
+ </div>
55
+ <div class="col-sm-3 form-group">
56
+ <label class="font_normal_body">设备名称</label>
57
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_terminal_name"
58
+ condition="f_terminal_name like '%{}%'" placeholder="设备名称">
59
+ </div>
60
+ <div class="col-sm-3 form-group">
61
+ <label class="font_normal_body">机器编号</label>
62
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_machine_number"
63
+ condition="f_machine_number like '%{}%'" placeholder="机器编号">
64
+ </div>
65
+ <div class="col-sm-3 form-group">
66
+ <label class="font_normal_body">所属银行</label>
67
+ <v-select id="f_charge_type"
68
+ v-model="model.f_bank_name"
69
+ placeholder='所属银行'
70
+ :value.sync="model.f_bank_name"
71
+ :options='$parent.$parent.bankAffiliation'
72
+ condition="f_bank_name = '{}'"
73
+ close-on-select clear-button>
74
+ </v-select>
75
+ </div>
76
+ <div class="col-sm-3 form-group">
77
+ <label class="font_normal_body">联系电话</label>
78
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_phone"
79
+ condition="f_phone like '%{}%'" placeholder="联系电话">
80
+ </div>
81
+ </div>
82
+ </div>
83
+ </criteria>
84
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid >
85
+ <template partial='head'>
86
+ <tr>
87
+ <th><input type="checkbox" name="ischeckbox_all_id" v-model="$parent.$parent.$parent.isSelAll" :value.sync="$parent.$parent.$parent.isSelAll" /></th>
88
+ <th style="text-align:center;white-space:nowrap;">序号</th>
89
+ <th style="text-align:center;white-space:nowrap;">设备编号</th>
90
+ <th style="text-align:center;white-space:nowrap;" v-show="!$parent.$parent.$parent.isshowless">设备类型</th>
91
+ <th style="text-align:center;white-space:nowrap;">MAC号</th>
92
+ <th style="text-align:center;white-space:nowrap;">机器编号</th>
93
+ <th style="text-align:center;white-space:nowrap;">设备名称</th>
94
+ <th style="text-align:center;white-space:nowrap;">公司</th>
95
+ <th style="text-align:center;white-space:nowrap;">所属部门</th>
96
+ <th style="text-align:center;white-space:nowrap;">设备负责人</th>
97
+ <th style="text-align:center;white-space:nowrap;">状态</th>
98
+ <th style="text-align:center;white-space:nowrap;">联系电话</th>
99
+ <th style="text-align:center;white-space:nowrap;">放置地点</th>
100
+ <th style="text-align:center;white-space:nowrap;">所属银行</th>
101
+ <th style="text-align:center;white-space:nowrap;">所属参数</th>
102
+ <!-- <th style="text-align:center;white-space:nowrap;" v-show="!$parent.$parent.$parent.isshowless">操作时间</th>-->
103
+ <!-- <th style="text-align:center;white-space:nowrap;">使用人员</th>-->
104
+ <th style="text-align:center;white-space:nowrap;">备注</th>
105
+ <th style="text-align:center;white-space:nowrap;" v-show="!$parent.$parent.$parent.isshowless">操作人</th>
106
+ <th style="text-align:center;white-space:nowrap;">失联状态</th>
107
+ <th style="text-align:center;white-space:nowrap;">操作</th>
108
+ </tr>
109
+ </template>
110
+ <template partial='body':model="model">
111
+ <tr>
112
+ <td><input type="checkbox" name="checkbox_id" v-model="$parent.$parent.$parent.selPos" :value.sync="row"></td>
113
+ <td style="text-align:center;white-space:nowrap;">{{$index+1}}</td>
114
+ <td style="text-align:center;white-space:nowrap;"><span title="点击查看历史" @click="$parent.$parent.$parent.abcd(row)"><a>{{row.f_terminal_number}}</a></span></td>
115
+ <td style="text-align:center;white-space:nowrap;" v-show="!$parent.$parent.$parent.isshowless">{{row.f_equipment_type}}</td>
116
+ <td style="text-align:center;white-space:nowrap;">{{row.f_mac_number}}</td>
117
+ <td style="text-align:center;white-space:nowrap;">{{row.f_machine_number}}</td>
118
+ <td style="text-align:center;white-space:nowrap;">{{row.f_terminal_name}}</td>
119
+ <td style="text-align:center;white-space:nowrap;">{{row.f_orgname}}</td>
120
+ <td style="text-align:center;white-space:nowrap;">{{row.f_depname}}</td>
121
+ <td style="text-align:center;white-space:nowrap;">{{row.f_operator}}</td>
122
+
123
+ <td style="text-align:center;white-space:nowrap;">{{row.f_state}}</td>
124
+ <td style="text-align:center;white-space:nowrap;">{{row.f_phone}}</td>
125
+ <td style="text-align:center;white-space:nowrap;">{{row.f_address}}</td>
126
+ <td style="text-align:center;white-space:nowrap;">{{row.f_bank_name}}</td>
127
+ <td style="text-align:center;white-space:nowrap;">{{row.f_param_id}}</td>
128
+ <!-- <td style="text-align:center;white-space:nowrap;" v-show="!$parent.$parent.$parent.isshowless">{{row.f_appVer}}</td>-->
129
+ <!-- <td style="text-align:center;white-space:nowrap;" >{{row.f_username}}</td>-->
130
+ <td style="text-align:center;white-space:nowrap;">{{row.f_comments}}</td>
131
+ <td style="text-align:center;white-space:nowrap;" v-show="!$parent.$parent.$parent.isshowless">{{row.f_operator}}</td>
132
+ <td style="text-align:center;white-space:nowrap;" >{{row.isunknown}}</td>
133
+ <td style="text-align:center">
134
+ <button class="btn btn-danger" @click.stop="$parent.$parent.$parent.del(row)">删除</button>
135
+ </td>
136
+ </tr>
137
+ </template>
138
+ </data-grid>
139
+ </criteria-paged>
140
+ </div>
141
+ <modal v-show="infoshow" :show.sync="infoshow" v-ref:modal backdrop="false" width="800px" title="终端历史信息">
142
+ <article slot="modal-body" class="modal-body">
143
+ <criteria-paged :model="model2" v-ref:paged2>
144
+ <data-grid :model="model2" v-ref:grid2 partial='list'>
145
+ <template partial='head'>
146
+ <tr>
147
+ <!--<th style="padding: 0;border: 0">
148
+ <input type="checkbox" id="f_operator" v-model="$parent.$parent.$parent.all[model.pageIndex-1]"
149
+ @change="$parent.$parent.$parent.select()" style="width: 22px;height: 22px"/>
150
+ </th>-->
151
+ <th><nobr>序号</nobr></th>
152
+ <th><nobr>终端号</nobr></th>
153
+ <th><nobr>上次上报时间</nobr></th>
154
+ <th><nobr>本次上报时间</nobr></th>
155
+ <th><nobr><b>状态</b></nobr></th>
156
+ </tr>
157
+ </template>
158
+ <template partial='body'>
159
+ <td style="text-align: center;">{{$index + 1}}</td>
160
+ <td style="text-align: center;">{{row.f_terminal_number}}</td>
161
+ <td style="text-align: center;">{{row.f_update_date}}</td>
162
+ <td style="text-align: center;">{{row.f_update_date }}</td>
163
+ <td style="text-align: center;"><b>{{row.f_pos_state}}</b></td>
164
+ </template>
165
+ </data-grid>
166
+ </criteria-paged>
167
+ </article>
168
+ <footer slot="modal-footer" class="modal-footer">
169
+ <button type="button" class="btn btn-success" @click='infoclose'>关闭</button>
170
+ </footer>
171
+ </modal>
172
+ </template>
173
+
174
+ <script>
175
+
176
+ import {PagedList} from 'vue-client'
177
+
178
+ export default {
179
+ title: '终端控制',
180
+ components: {},
181
+ data () {
182
+ return {
183
+ depresid: [this.$login.f.depids],
184
+ depid: [this.$login.f.depids],
185
+ f_orgid: this.$login.f.orgid,
186
+ f_depid: '',
187
+ f_operatorid: '',
188
+ mul: false,
189
+ orgname: '',
190
+ depname: '',
191
+ operatorname: '',
192
+ userresid: [this.$login.f.id],
193
+ operatorid: [this.$login.f.id],
194
+ source: `tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() != $role$))`,
195
+ model: new PagedList('rs/sql/equipmentQuery', 20),
196
+ model2: new PagedList('rs/sql/singleTable', 30, {tablename: '`t_poshistory`'}),
197
+ curorgid: [this.f_filialeid],
198
+ f_filialeids: '',
199
+ criteriaShow: false,
200
+ infoadd: false,
201
+ selPos: [],
202
+ bankAffiliation: this.$appdata.getParam('所属银行'),
203
+ isSelAll: false, // 默认不全选
204
+ infoshow: false
205
+ }
206
+ },
207
+ props: ['f_filialeid','isshowless'],
208
+ ready () {
209
+ this.search()
210
+ },
211
+ watch:{
212
+ // 'selPos'(val){
213
+ // console.log(val)
214
+ // },
215
+ 'isSelAll'(val){
216
+ console.log('-------', val)
217
+ if (val) {
218
+ // 对当前页面全选
219
+ this.selPos = []
220
+ for (const sel of this.model.rows) {
221
+ // if (this.selPos.indexOf(sel.id) < 0){
222
+ this.selPos.push(sel)
223
+ // }
224
+ }
225
+ } else {
226
+ // 取消全选
227
+ this.selPos = []
228
+ }
229
+ }
230
+ },
231
+ methods: {
232
+ getRes (obj) {
233
+ this.orgname = obj.res[0]
234
+ this.depresid = obj.resids
235
+ this.f_orgid = obj.resids
236
+ this.userresid = obj.resids
237
+ },
238
+ getdep (obj, val) {
239
+ this.depname = val
240
+ // this.userresid = obj
241
+ this.f_depid = obj
242
+ },
243
+ getuser (obj, val) {
244
+ this.operatorname = val
245
+ this.f_operatorid = obj
246
+ },
247
+ infoclose(){
248
+ this.infoshow=false
249
+ },
250
+ // 批量操作
251
+ async batchRoot(val) {
252
+ let arrs = []
253
+ let alertMessage = ''
254
+ let selPos = this.selPos
255
+ if (val === '0') {
256
+ alertMessage = '停用'
257
+ for (const tmp of selPos) {
258
+ if (tmp.f_state === '正常') arrs.push(tmp)
259
+ }
260
+ } else if (val === '1') {
261
+ alertMessage = '启用'
262
+ for (const tmp of selPos) {
263
+ if (tmp.f_state === '停用') arrs.push(tmp)
264
+ }
265
+ } else if (val === '2') {
266
+ alertMessage = '升级'
267
+ for (const tmp of selPos) {
268
+ if (tmp.f_state === '正常') arrs.push(tmp)
269
+ }
270
+ } else {
271
+ this.showAlert('出现异常,请重新进操作')
272
+ return
273
+ }
274
+ await this.$resetpost('rs/logic/batchPos', {data: {tasks: arrs, taskState: val}}, {
275
+ rejectMsg: null,
276
+ resolveMsg: null
277
+ })
278
+ // 需要提示
279
+ this.$showAlert(`已经开始批量${alertMessage},选择${selPos.length},其中${arrs.length}台可以正常${alertMessage},具体请留意设备情况,并刷新列表查看执行结果!`,'success', 2500)
280
+ this.$dispatch('close')
281
+ },
282
+ abcd (row) {
283
+ console.log("chakan",row)
284
+ let condition = `f_terminal_number = '${row.f_terminal_number}' order by id desc`
285
+ this.model2.search(condition)
286
+ this.infoshow = true
287
+ },
288
+ search () {
289
+ console.log("111111111111111111111111111111111111")
290
+ this.$refs.paged.$refs.cri.search()
291
+ },
292
+ selfSearch (args) {
293
+ console.log(args)
294
+ if (args.model.f_user_operatorid && args.model.f_user_operator){
295
+ args.condition = `${args.condition} and f_user_operatorid = '${args.model.f_user_operatorid}'
296
+ and f_user_operator = '${args.model.f_user_operator}'`
297
+ }
298
+
299
+ if (args.model.f_user_operatorid && args.model.f_user_operator) {
300
+ args.condition = `${args.condition} and f_user_operatorid = '${args.model.f_user_operatorid}'
301
+ and f_user_operator = '${args.model.f_user_operator}'`;
302
+ }
303
+
304
+ // 添加设备类型和状态条件
305
+ args.condition = `${args.condition} and f_equipment_type = 'POS' and f_state != '已删除'`;
306
+ // 添加公司、部门、员工条件
307
+ if (this.f_orgid && this.f_orgid.length > 0) {
308
+ args.condition += ` and f_orgid = '${this.f_orgid}'`;
309
+ }
310
+
311
+ if (this.f_depid && this.f_depid.length > 0) {
312
+ args.condition += ` and f_depid = '${this.f_depid}'`; // 或者使用合适的条件处理
313
+ }
314
+
315
+ if (this.f_operatorid && this.f_operatorid.length > 0) {
316
+ args.condition += ` and f_operatorid = '${this.f_operatorid}'`; // 或者使用合适的条件处理
317
+ }
318
+ this.model.search(args.condition, this.model)
319
+ this.$dispatch('research')
320
+ },
321
+
322
+ add () {
323
+ this.infoadd = false
324
+ // if (this.f_filialeid) {
325
+ this.$dispatch('add', this.f_filialeid)
326
+ // } else {
327
+ // this.$showAlert('请先选择左上角的所在分公司', 'warning', 2000)
328
+ // }
329
+ },
330
+ del(row) {
331
+ console.log('要删除了', row)
332
+ row.f_state = '已删除'
333
+ this.$resetpost('rs/entity/t_equipment', row, {
334
+ warnMsg: '确定要删除这条信息吗?',
335
+ resolveMsg: '删除成功',
336
+ rejectMsg: '删除失败'
337
+ }).then((res) => {
338
+ this.$dispatch('refresh')
339
+ }).catch((error) => {
340
+ this.$dispatch('refresh')
341
+ })
342
+ },
343
+ hidden() {
344
+ this.criteriaShow = !this.criteriaShow
345
+ }
346
+ },
347
+ computed: {}
348
+ }
349
+ </script>
@@ -0,0 +1,138 @@
1
+ <template>
2
+ <div class="flex-row">
3
+ <div :class="{'basic-main':!isChange,'binary-left':isChange}">
4
+ <pos-list :row="row" @dblclick="selected" style="width:auto;" :f_filialeid.sync="f_filialeids" :isshowless="isChange" v-ref:list ></pos-list>
5
+ </div>
6
+ <div class="binary-right" style="margin-left: 10px; width: 40%;" v-if="isChange">
7
+ <pos-add :data="row" :info="infoadd" :f_filialeids.sync="f_filialeids" v-ref:addbox></pos-add>
8
+ </div>
9
+
10
+ <!-- <modal v-if="batchPos" :show.sync="batchPos" backdrop="false" >-->
11
+ <!-- <header slot="modal-header" class="modal-header">-->
12
+ <!-- <button type="button" class="close" @click="close"><span>&times;</span></button>-->
13
+ <!-- <h4 class="modal-title">批量操作</h4>-->
14
+ <!-- </header>-->
15
+ <!-- <article slot="modal-body" class="modal-body">-->
16
+ <!-- <form class="form-horizontal">-->
17
+ <!-- <div class="row">-->
18
+ <!-- <div>-->
19
+ <!-- <h4>注意事项</h4>-->
20
+ <!-- <p>1.如果需要对POS设备进行升级,批量选择的POS设备包含非正常状态,则只会对状态为正常的设备进行升级。</p>-->
21
+ <!-- <p>2.如果POS设备处于停用状态,则可以进行启用操作。如果设备处于启用状态,则可以进行停用和升级操作。</p>-->
22
+ <!-- <p>3.批量操作可能耗时较长,请刷新列表查看结果。</p>-->
23
+ <!-- </div>-->
24
+ <!-- </div>-->
25
+ <!-- </form>-->
26
+ <!-- </article>-->
27
+ <!-- <footer slot="modal-footer" class="modal-footer">-->
28
+ <!--&lt;!&ndash; <button type="button" class="button_search button_spacing" @click="batchRoot('2')">批量升级</button>&ndash;&gt;-->
29
+ <!-- <button type="button" class="button_search button_spacing" @click="batchRoot('1')">批量启用</button>-->
30
+ <!-- <button type="button" class="button_search button_spacing" @click="batchRoot('0')">批量停用</button>-->
31
+ <!-- <button type="button" class="button_clear button_spacing" @click='close'>退出</button>-->
32
+ <!-- </footer>-->
33
+ <!-- </modal>-->
34
+ </div>
35
+ </template>
36
+ <script>
37
+
38
+ import PosList from './PosList'
39
+ import PosAdd from './PosAdd'
40
+
41
+ export default {
42
+ title: 'POS终端管理',
43
+ components: {
44
+ PosList, PosAdd
45
+ },
46
+ data () {
47
+ return {
48
+ isChange: false,
49
+ row: null,
50
+ infoadd: true, // 判断是否显示 升级 等按钮(true/false)
51
+ batchPos: false,
52
+ f_filialeids: ''
53
+ }
54
+ },
55
+ methods: {
56
+ // 批量操作
57
+ // async batchRoot(val){
58
+ // let arrs = []
59
+ // let alertMessage=''
60
+ // let selPos = this.$refs.list.selPos
61
+ // if (val==='0'){
62
+ // alertMessage='停用'
63
+ // for (const tmp of selPos) {
64
+ // if (tmp.f_state==='正常') arrs.push(tmp)
65
+ // }
66
+ // } else if (val==='1'){
67
+ // alertMessage='启用'
68
+ // for (const tmp of selPos) {
69
+ // if (tmp.f_state==='停用') arrs.push(tmp)
70
+ // }
71
+ // } else if(val==='2'){
72
+ // alertMessage='升级'
73
+ // for (const tmp of selPos) {
74
+ // if (tmp.f_state==='正常') arrs.push(tmp)
75
+ // }
76
+ // } else {
77
+ // this.showAlert('出现异常,请重新进操作')
78
+ // return
79
+ // }
80
+ //
81
+ // await this.$resetpost('rs/logic/batchPos',{data: {tasks: arrs, taskState: val}}, {rejectMsg: null, resolveMsg: null})
82
+ //
83
+ // // 需要提示
84
+ // this.$showAlert(`已经开始批量${alertMessage},选择${selPos.length},其中${arrs.length}台可以正常${alertMessage},具体请留意设备情况,并刷新列表查看执行结果!`)
85
+ // this.isChange = false
86
+ // this.close()
87
+ // },
88
+ close(){
89
+ this.batchPos = false
90
+ },
91
+ selected(obj, idx) {
92
+ console.log(obj)
93
+ if (!(obj instanceof MouseEvent)) {
94
+ this.isChange = true
95
+ this.infoadd = true
96
+ this.row = obj
97
+ } else {
98
+ this.$showAlert('如需新增,请点击增加按钮!', 'info', 1000)
99
+ }
100
+ }
101
+ },
102
+ events: {
103
+ 'search' () {
104
+ this.infoadd=true
105
+ this.isChange = false
106
+ this.row = null
107
+ this.$refs.list.$refs.paged.$refs.cri.search()
108
+ },
109
+ 'research' () {
110
+ console.log('重新查询')
111
+ this.isChange = false
112
+ this.row = null
113
+ },
114
+ 'refresh' () {
115
+ this.isChange = false
116
+ this.row = null
117
+ this.$refs.list.search()
118
+ },
119
+ 'error' (name, row, res) {
120
+ this.isChange = false
121
+ this.row = null
122
+ },
123
+ 'close' () {
124
+ this.isChange = false
125
+ this.row = null
126
+
127
+ // this.$refs.list.search()
128
+ },
129
+ 'add' (val) {
130
+ this.f_filialeids = val
131
+ this.infoadd=false
132
+ this.row = null
133
+ this.isChange = true
134
+ this.$refs.list.$refs.paged.$refs.grid.selectStore.selected = null
135
+ }
136
+ }
137
+ }
138
+ </script>
@@ -0,0 +1,6 @@
1
+ // 分公司特殊组件页面注册
2
+
3
+
4
+ exports.specialComp = {
5
+ 'pos-manage': (resolve) => { require(['./PosManage'], resolve) }
6
+ }