system-clients 3.2.96 → 3.2.97-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 (230) 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/8.5/checksums/checksums.lock +0 -0
  12. package/.gradle/8.5/dependencies-accessors/dependencies-accessors.lock +0 -0
  13. package/.gradle/8.5/dependencies-accessors/gc.properties +0 -0
  14. package/.gradle/8.5/executionHistory/executionHistory.bin +0 -0
  15. package/.gradle/8.5/executionHistory/executionHistory.lock +0 -0
  16. package/.gradle/8.5/fileChanges/last-build.bin +0 -0
  17. package/.gradle/8.5/fileHashes/fileHashes.bin +0 -0
  18. package/.gradle/8.5/fileHashes/fileHashes.lock +0 -0
  19. package/.gradle/8.5/gc.properties +0 -0
  20. package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  21. package/.gradle/buildOutputCleanup/cache.properties +2 -0
  22. package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  23. package/.gradle/file-system.probe +0 -0
  24. package/.gradle/vcs-1/gc.properties +0 -0
  25. package/SystemClient.iml +8 -8
  26. package/build/webpack.base.conf.js +85 -85
  27. package/build.gradle +6 -6
  28. package/examples/LoginPage/App.vue +21 -21
  29. package/examples/LoginPage/index.html +11 -11
  30. package/examples/LoginPage/main.js +15 -15
  31. package/gradle/wrapper/gradle-wrapper.jar +0 -0
  32. package/gradle/wrapper/gradle-wrapper.properties +7 -0
  33. package/gradlew +249 -0
  34. package/gradlew.bat +92 -0
  35. package/index.html +21 -21
  36. package/package.json +105 -105
  37. package/src/components/Main.vue +961 -937
  38. package/src/components/TabButton.vue +201 -201
  39. package/src/components/Tabs.vue +67 -67
  40. package/src/components/Util.js +343 -343
  41. package/src/components/addressManage/AddressCascadingMenu.vue +145 -145
  42. package/src/components/common/ProgressBase.vue +83 -83
  43. package/src/components/equipment/EquipmentManage.vue +83 -83
  44. package/src/components/equipment/PcAdd.vue +115 -115
  45. package/src/components/equipment/PcList.vue +119 -119
  46. package/src/components/equipment/PcManage.vue +61 -61
  47. package/src/components/equipment/PhoneAdd.vue +118 -118
  48. package/src/components/equipment/PhoneList.vue +113 -113
  49. package/src/components/equipment/PhoneManage.vue +61 -61
  50. package/src/components/equipment/PosAdd.vue +323 -319
  51. package/src/components/equipment/PosList.vue +294 -292
  52. package/src/components/equipment/PosManage.vue +138 -138
  53. package/src/components/equipment/PosManageBoth.vue +125 -125
  54. package/src/components/equipment/PosParamAdd.vue +236 -236
  55. package/src/components/equipment/PosParamList.vue +121 -121
  56. package/src/components/equipment/PosParamManage.vue +51 -51
  57. package/src/components/materialManage/materialData.vue +44 -44
  58. package/src/components/materialManage/materialList.vue +255 -255
  59. package/src/components/parammanage/ParamManage.vue +42 -42
  60. package/src/components/parammanage/ParamPage.vue +337 -337
  61. package/src/components/parammanage/ParamPages.vue +222 -222
  62. package/src/components/parammanage/SinglePage.vue +235 -235
  63. package/src/components/parammanage/SinglePages.vue +167 -167
  64. package/src/components/server/AddChangeMsg.vue +66 -66
  65. package/src/components/server/ChangeDeclare.vue +45 -45
  66. package/src/components/server/ImageVieweTest.vue +56 -56
  67. package/src/components/server/ImageViewer.vue +350 -350
  68. package/src/components/server/LeftTree.vue +111 -111
  69. package/src/components/server/LoadData.vue +55 -55
  70. package/src/components/server/Login.vue +566 -548
  71. package/src/components/server/LoginPage.vue +235 -235
  72. package/src/components/server/LoginView.vue +128 -128
  73. package/src/components/server/Menu.vue +188 -188
  74. package/src/components/server/ModifyPw.vue +125 -126
  75. package/src/components/server/PcdBuildingSelect.vue +241 -243
  76. package/src/components/server/ResSelect.vue +175 -169
  77. package/src/components/server/ResSelectGroup.vue +211 -211
  78. package/src/components/server/RightTree.vue +348 -348
  79. package/src/components/server/RoleSelector.vue +89 -90
  80. package/src/components/server/TestResSelect.vue +58 -58
  81. package/src/components/server/TestResSelectGroup.vue +388 -388
  82. package/src/filiale/baole/Login.vue +568 -570
  83. package/src/filiale/baole/system.js +5 -5
  84. package/src/filiale/bayan/PosAdd.vue +369 -0
  85. package/src/filiale/bayan/PosList.vue +349 -0
  86. package/src/filiale/bayan/PosManage.vue +138 -0
  87. package/src/filiale/bayan/system.js +6 -0
  88. package/src/filiale/chengtou/Login.vue +537 -539
  89. package/src/filiale/chengtou/system.js +5 -5
  90. package/src/filiale/dongguan/Login.vue +900 -902
  91. package/src/filiale/dongguan/Main.vue +715 -717
  92. package/src/filiale/dongguan/system.js +6 -6
  93. package/src/filiale/furuike/Login.vue +583 -587
  94. package/src/filiale/furuike/Main.vue +827 -840
  95. package/src/filiale/furuike/system.js +7 -7
  96. package/src/filiale/gehua/Main.vue +807 -809
  97. package/src/filiale/gehua/system.js +6 -6
  98. package/src/filiale/konggang/Login.vue +470 -472
  99. package/src/filiale/konggang/system.js +7 -7
  100. package/src/filiale/qianneng/Login.vue +582 -584
  101. package/src/filiale/qianneng/Main.vue +816 -818
  102. package/src/filiale/qianneng/ModifyPw.vue +107 -108
  103. package/src/filiale/qianneng/system.js +11 -11
  104. package/src/filiale/rizhao/LeftTree.vue +111 -111
  105. package/src/filiale/rizhao/Login.vue +791 -793
  106. package/src/filiale/rizhao/Main.vue +611 -611
  107. package/src/filiale/rizhao/system.js +14 -14
  108. package/src/filiale/shiquan/Login.vue +564 -566
  109. package/src/filiale/shiquan/system.js +8 -8
  110. package/src/filiale/tianyi/Login.vue +571 -573
  111. package/src/filiale/tianyi/system.js +5 -5
  112. package/src/filiale/tongchuan/Login.vue +561 -563
  113. package/src/filiale/tongchuan/Main.vue +1019 -1021
  114. package/src/filiale/tongchuan/system.js +7 -7
  115. package/src/filiale/weinan/Main.vue +923 -924
  116. package/src/filiale/weinan/system.js +7 -7
  117. package/src/filiale/wenxi/Login.vue +535 -537
  118. package/src/filiale/wenxi/Main.vue +785 -787
  119. package/src/filiale/wenxi/system.js +10 -10
  120. package/src/filiale/wuhai/LeftTree.vue +141 -141
  121. package/src/filiale/wuhai/Main.vue +807 -810
  122. package/src/filiale/wuhai/system.js +10 -10
  123. package/src/filiale/yuchuan/Login.vue +889 -891
  124. package/src/filiale/yuchuan/Main.vue +864 -866
  125. package/src/filiale/yuchuan/system.js +10 -10
  126. package/src/filiale/zhoukou/Main.vue +807 -809
  127. package/src/filiale/zhoukou/system.js +6 -6
  128. package/src/plugins/EncryptUtil.js +53 -53
  129. package/src/plugins/GetLoginInfoService.js +631 -474
  130. package/src/plugins/HeatGetLoginInfoService.js +491 -491
  131. package/src/plugins/validation.js +15 -15
  132. package/src/stores/AppData.js +38 -38
  133. package/src/stores/HeatAppData.js +38 -38
  134. package/src/styles/fonts/glyphicons-halflings-regular.svg +288 -288
  135. package/src/styles/less/.csscomb.json +304 -304
  136. package/src/styles/less/.csslintrc +19 -19
  137. package/src/styles/less/alerts.less +73 -73
  138. package/src/styles/less/aofeng/animate.min.css +10 -10
  139. package/src/styles/less/aofeng/expandcss.less +569 -569
  140. package/src/styles/less/aofeng/login.less +367 -367
  141. package/src/styles/less/aofeng/standard.less +2507 -2507
  142. package/src/styles/less/aofeng/themeOne/BinaryTemplate.less +690 -690
  143. package/src/styles/less/aofeng/themeOne/loginStyle.less +1586 -1586
  144. package/src/styles/less/aofeng/themeOne/systemStyle.less +2650 -2650
  145. package/src/styles/less/aofeng/themeOne.less +17 -17
  146. package/src/styles/less/aofeng/themeTwo/newStyle1.less +415 -415
  147. package/src/styles/less/aofeng/themeTwo.less +3 -3
  148. package/src/styles/less/badges.less +66 -66
  149. package/src/styles/less/bootstrap.less +66 -66
  150. package/src/styles/less/breadcrumbs.less +26 -26
  151. package/src/styles/less/button-groups.less +247 -247
  152. package/src/styles/less/buttons.less +172 -172
  153. package/src/styles/less/carousel.less +269 -269
  154. package/src/styles/less/close.less +34 -34
  155. package/src/styles/less/code.less +69 -69
  156. package/src/styles/less/component-animations.less +33 -33
  157. package/src/styles/less/dropdowns.less +216 -216
  158. package/src/styles/less/fonts-list.less +25 -25
  159. package/src/styles/less/forms.less +626 -626
  160. package/src/styles/less/glyphicons.less +305 -305
  161. package/src/styles/less/grid.less +84 -84
  162. package/src/styles/less/input-groups.less +167 -167
  163. package/src/styles/less/jumbotron.less +52 -52
  164. package/src/styles/less/labels.less +64 -64
  165. package/src/styles/less/list-group.less +141 -141
  166. package/src/styles/less/manageStyle/manageChile.less +180 -180
  167. package/src/styles/less/manageStyle/manageStyle/manageChile.less +180 -180
  168. package/src/styles/less/manageStyle/manageStyle/manageStyle.less +1102 -1102
  169. package/src/styles/less/manageStyle/manageStyle/safeStyle.less +498 -498
  170. package/src/styles/less/manageStyle/manageStyle.less +1102 -1102
  171. package/src/styles/less/manageStyle/safeStyle.less +498 -498
  172. package/src/styles/less/media.less +66 -66
  173. package/src/styles/less/mixins/alerts.less +14 -14
  174. package/src/styles/less/mixins/background-variant.less +9 -9
  175. package/src/styles/less/mixins/border-radius.less +18 -18
  176. package/src/styles/less/mixins/buttons.less +69 -69
  177. package/src/styles/less/mixins/center-block.less +7 -7
  178. package/src/styles/less/mixins/clearfix.less +22 -22
  179. package/src/styles/less/mixins/forms.less +90 -90
  180. package/src/styles/less/mixins/gradients.less +59 -59
  181. package/src/styles/less/mixins/grid-framework.less +92 -92
  182. package/src/styles/less/mixins/grid.less +122 -122
  183. package/src/styles/less/mixins/hide-text.less +21 -21
  184. package/src/styles/less/mixins/image.less +33 -33
  185. package/src/styles/less/mixins/labels.less +12 -12
  186. package/src/styles/less/mixins/list-group.less +30 -30
  187. package/src/styles/less/mixins/nav-divider.less +10 -10
  188. package/src/styles/less/mixins/nav-vertical-align.less +9 -9
  189. package/src/styles/less/mixins/opacity.less +8 -8
  190. package/src/styles/less/mixins/pagination.less +24 -24
  191. package/src/styles/less/mixins/panels.less +24 -24
  192. package/src/styles/less/mixins/progress-bar.less +10 -10
  193. package/src/styles/less/mixins/reset-filter.less +8 -8
  194. package/src/styles/less/mixins/reset-text.less +18 -18
  195. package/src/styles/less/mixins/resize.less +6 -6
  196. package/src/styles/less/mixins/responsive-visibility.less +15 -15
  197. package/src/styles/less/mixins/size.less +10 -10
  198. package/src/styles/less/mixins/tab-focus.less +9 -9
  199. package/src/styles/less/mixins/table-row.less +44 -44
  200. package/src/styles/less/mixins/text-emphasis.less +9 -9
  201. package/src/styles/less/mixins/text-overflow.less +8 -8
  202. package/src/styles/less/mixins/vendor-prefixes.less +227 -227
  203. package/src/styles/less/mixins.less +40 -40
  204. package/src/styles/less/modals.less +151 -151
  205. package/src/styles/less/navbar.less +660 -660
  206. package/src/styles/less/navs.less +285 -285
  207. package/src/styles/less/normalize.less +424 -424
  208. package/src/styles/less/pager.less +76 -76
  209. package/src/styles/less/pagination.less +89 -89
  210. package/src/styles/less/panels.less +275 -275
  211. package/src/styles/less/popovers.less +131 -131
  212. package/src/styles/less/print.less +101 -101
  213. package/src/styles/less/progress-bars.less +87 -87
  214. package/src/styles/less/responsive-embed.less +35 -35
  215. package/src/styles/less/responsive-utilities.less +194 -194
  216. package/src/styles/less/scaffolding.less +161 -161
  217. package/src/styles/less/stand.less +207 -207
  218. package/src/styles/less/tables.less +312 -312
  219. package/src/styles/less/theme.less +291 -291
  220. package/src/styles/less/thumbnails.less +36 -36
  221. package/src/styles/less/tooltip.less +102 -102
  222. package/src/styles/less/type.less +316 -316
  223. package/src/styles/less/utilities.less +55 -55
  224. package/src/styles/less/variables.less +899 -899
  225. package/src/styles/less/wells.less +29 -29
  226. package/src/system.js +125 -121
  227. package/src/util/Daiban.json +12 -12
  228. package/yarn-error.log +6896 -6896
  229. package/src/filiale/ruihua/Login.vue +0 -549
  230. package/src/filiale/ruihua/system.js +0 -5
@@ -1,5 +1,5 @@
1
- // 分公司特殊组件页面注册
2
-
3
- exports.specialComp = {
4
- 'login': (resolve) => require(['./Login'], resolve)
5
- }
1
+ // 分公司特殊组件页面注册
2
+
3
+ exports.specialComp = {
4
+ 'login': (resolve) => require(['./Login'], resolve)
5
+ }
@@ -0,0 +1,369 @@
1
+ <template>
2
+ <div class="auto select-overspread">
3
+ <validator name='v'>
4
+ <ul class="nav nav-tabs" >
5
+ <li role="presentation" class="active"><a href="#">POS</a></li>
6
+ </ul>
7
+ <form novalidate class="form-horizontal" >
8
+ <div class="row">
9
+ <div class="col-sm-6 form-group">
10
+ <label class="font_normal_body">&ensp;公&emsp;&emsp;司&ensp;</label>
11
+ <right-tree @re-res="getRes1"></right-tree>
12
+ </div>
13
+ <div class="col-sm-6 form-group">
14
+ <label class="font_normal_body">设备负责人</label>
15
+ <right-tree @re-res="getRes" :source="source"></right-tree>
16
+ </div>
17
+ <div class="col-sm-6 form-group" :class="[$v.f_terminal_number.required ? 'has-error' : '']">
18
+ <label class="font_normal_body">设备编号</label>
19
+ <input type="text" class="input_search" style="width: 60%" v-model="model.f_terminal_number" placeholder="设备编号" v-el:f_terminal_number
20
+ v-validate:f_terminal_number='{required :true}' />
21
+ </div>
22
+ <div class="col-sm-6 form-group" :class="[$v.f_terminal_name.required ? 'has-error' : '']">
23
+ <label class="font_normal_body">&ensp;设备名称&ensp;</label>
24
+ <input type="text" class="input_search" style="width: 60%" v-model="model.f_terminal_name" placeholder="设备名称"
25
+ v-validate:f_terminal_name='{required: true}' />
26
+ </div>
27
+ <div class="col-sm-6 form-group" :class="{'has-error': $v.f_equipment_type.required}">
28
+ <label class="font_normal_body">设备类型</label>
29
+ <input type="text" class="input_search" style="width: 60%" v-model="model.f_equipment_type" placeholder="设备类型"
30
+ v-validate:f_equipment_type="{required: true}" />
31
+ </div>
32
+ <div class="col-sm-6 form-group">
33
+ <label class="font_normal_body" >&ensp;MAC&nbsp;号&nbsp;&ensp;</label>
34
+ <input type="text" class="input_search" style="width: 60%" v-model="model.f_mac_number" placeholder="MAC号" >
35
+ </div>
36
+ <div class="col-sm-6 form-group">
37
+ <label class="font_normal_body" >机器编号</label>
38
+ <input type="text" class="input_search" style="width: 60%" v-model="model.f_machine_number" placeholder="机器编号" >
39
+ </div>
40
+ <div class="col-sm-6 form-group" :class="{'has-error': $v.f_phone.required}">
41
+ <label class="font_normal_body">&ensp;联系电话&ensp;</label>
42
+ <input type="text" class="input_search" style="width: 60%" v-model="model.f_phone" placeholder="联系电话"
43
+ v-validate:f_phone="{required: true, minlength:7, maxlength: 11}" title="手机号必须7-11位">
44
+ <!-- <div class="font_normal_body" v-if="$v.f_phone.minlength || $v.f_phone.maxlength"><span>手机号必须7-11位</span></div>-->
45
+ </div>
46
+ <div class="col-sm-6 form-group" :class="{'has-error': $v.f_bank_name.required}">
47
+ <label class="font_normal_body">所属银行</label>
48
+ <v-select id="f_charge_type"
49
+ v-model="model.f_bank_name"
50
+ placeholder='所属银行'
51
+ :value.sync="model.f_bank_name"
52
+ :options='bankAffiliation'
53
+ :value-single="true"
54
+ v-validate:f_bank_name="{ required: true }"
55
+ close-on-select clear-button>
56
+ </v-select>
57
+ </div>
58
+ <div class="col-sm-6 form-group">
59
+ <label class="font_normal_body">&ensp;所属参数&ensp;</label>
60
+ <v-select id="f_charge_type"
61
+ v-model="model.f_param_id"
62
+ placeholder='所属参数'
63
+ :value.sync="model.f_param_id"
64
+ :options='ParamTypeItems'
65
+ close-on-select clear-button>
66
+ </v-select>
67
+ </div>
68
+ <div class="col-sm-6 form-group">
69
+ <label class="font_normal_body">所属部门</label>
70
+ <res-select restype='department'
71
+ :is-mul="false"
72
+ @res-select="getdep"
73
+ :parentresid="depresid"
74
+ :initresid="initresid">
75
+ </res-select>
76
+ </div>
77
+
78
+ </div>
79
+ <div class="col-sm-12 form-group" :class="{'has-error': $v.f_address.required}">
80
+ <label class="font_normal_body">&ensp;放置地点&ensp;</label>
81
+ <textarea class="input_textarea" style="width: 80%" v-model="model.f_address" placeholder="所在地"
82
+ v-validate:f_address="{required: true}" rows="2"></textarea>
83
+ </div>
84
+ <div class="col-sm-12 form-group">
85
+ <label class="font_normal_body " >&ensp;&nbsp;&nbsp;&nbsp;&nbsp;备注&nbsp;&nbsp;&nbsp;&ensp;</label>
86
+ <textarea class="input_textarea" rows="3" style="width:80%;margin-top:5px" v-model="model.f_comments"></textarea>
87
+ </div>
88
+ </form>
89
+ <div style="text-align:right;height:auto;">
90
+ <button class="button_search" @click="uploadFiles()" v-if="info">上传图片</button>
91
+ <button class="btn btn-info" @click="upgrade()" v-if="info && data.f_state==='正常'">升级</button>
92
+ <button class="btn btn-success" @click="getEditState()" v-if="model.f_state === '停用' && info" >启用</button>
93
+ <button class="btn btn-danger" @click="getEditState()" v-if="model.f_state === '正常' && info" >停用</button>
94
+ <button class="btn button_search" @click="confirm()" :disabled="!$v.valid" >确认</button>
95
+ <button class="btn button_clear " @click="cancel()" >取消</button>
96
+ </div>
97
+ <modal :show.sync="showfiles" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
98
+ <article slot="modal-body" style="height: 500px">
99
+ <upload v-show="showfiles" :businessid="model.id" v-ref:upload fusetype="POS" isremark="true" style="width:auto" ></upload>
100
+ </article>
101
+ <footer slot="modal-footer" class="modal-footer">
102
+ </footer>
103
+ </modal>
104
+ <modal v-if="show" :show.sync="show" v-ref:modal backdrop="false" >
105
+ <header slot="modal-header" class="modal-header">
106
+ <button type="button" class="close" @click="close"><span>&times;</span></button>
107
+ <h4 class="modal-title">pos机升级</h4>
108
+ </header>
109
+ <article slot="modal-body" class="modal-body">
110
+ <form class="form-horizontal">
111
+ <div class="row">
112
+ <div>
113
+ <h4>是否升级?</h4>
114
+ </div>
115
+ <!-- <div class="col-sm-6 form-group">-->
116
+ <!-- <label class="font_normal_body">参数名称</label>-->
117
+ <!-- <input type="text" class="input_search" style="width: 60%" v-model="modifyItem.name" @keyup.enter="confirm">-->
118
+ <!-- </div>-->
119
+ <!-- <div class="col-sm-6 form-group" v-if="modifyItem.EntityType === 't_parameter'">-->
120
+ <!-- <div class="checkbox">-->
121
+ <!-- <label>-->
122
+ <!-- <input type="checkbox" v-model="modifyItem.isGlobal" :checked="modifyItem.isGlobal">是否全局-->
123
+ <!-- </label>-->
124
+ <!-- </div>-->
125
+ <!-- </div>-->
126
+ </div>
127
+ </form>
128
+ </article>
129
+ <footer slot="modal-footer" class="modal-footer">
130
+ <button type="button" class="button_search button_spacing" @click='upgradeRoot()'>是</button>
131
+ <button type="button" class="button_clear button_spacing" @click='close'>否</button>
132
+ </footer>
133
+ </modal>
134
+ </validator>
135
+
136
+ </div>
137
+ </template>
138
+ <script>
139
+ import {HttpResetClass, PagedList} from 'vue-client'
140
+ export default {
141
+ data () {
142
+ return {
143
+ depname: '',
144
+ f_depid: '',
145
+ orgname: '',
146
+ initresid: [], // 用于存放初始化选中的部门 ID
147
+ depresid: [this.$login.f.depids],
148
+ depid: [this.f_depid],
149
+ f_orgid: this.$login.f.orgid,
150
+ userresid: [this.$login.f.id],
151
+ checkparam: false,
152
+ bankAffiliation: this.$appdata.getParam('所属银行'),
153
+ source: `tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() != $role$))`,
154
+ userid: this.$login.f.id,
155
+ model: {
156
+ f_terminal_number: '',
157
+ f_terminal_name: '',
158
+ f_depname: '',
159
+ f_mac_number:'',
160
+ // f_username:'',
161
+ f_bank_name: '微信',
162
+ f_equipment_type: 'POS',
163
+ f_state: '正常',
164
+ f_machine_number: '',
165
+ f_phone:'',
166
+ f_comments:'',
167
+ f_address:'',
168
+ f_filialeids: '',
169
+ f_orgid:'',
170
+ f_param_id:''
171
+ },
172
+ ParamTypeItems:[],
173
+ showfiles: false,
174
+ show:false,
175
+ infoadd: this.infoadd,
176
+ isSelPop: false
177
+ }
178
+ },
179
+ props: ['data', 'f_filialeids','info'],
180
+
181
+ watch: {
182
+ 'data' (val) {
183
+ if (val) {
184
+ this.edit(val)
185
+ } else {
186
+ this.initModel()
187
+ }
188
+ }
189
+ },
190
+ async ready () {
191
+ console.log('mac信息:', this.data)
192
+ if (this.data) {
193
+ this.edit(this.data)
194
+ }
195
+ console.log('查看是否隐藏', this.info)
196
+ try {
197
+ // 获取参数
198
+ let http = new HttpResetClass()
199
+ let res = await http.load('POST', 'rs/sql/get_posParam', {data: {condition : ' 1 = 1 '}}, {
200
+ resolveMsg: null,
201
+ rejectMsg: '获取参数出错!!'
202
+ })
203
+ this.ParamTypeItems = res.data.map(item=>{
204
+ return {
205
+ label:item.name,
206
+ value:item.f_param_id
207
+ }
208
+ })
209
+ } catch (e) {
210
+ console.log(e)
211
+ }
212
+ },
213
+
214
+ methods: {
215
+ getRes1 (obj) {
216
+ this.orgname = obj.res[0]
217
+ this.depresid = obj.resids
218
+ this.f_orgid = obj.resids
219
+ this.userresid = obj.resids
220
+ },
221
+ getdep (obj, val) {
222
+ this.depname = val
223
+ // this.userresid = obj
224
+ this.f_depid = obj
225
+ },
226
+ recursiveSelOrg(val, flag){
227
+ if(val.parent){
228
+ if(val.parent.resourcetype===flag){
229
+ return {id: val.parent.id, name: val.parent.name}
230
+ } else {
231
+ return this.recursiveSelOrg(val.parent,flag)
232
+ }
233
+ } else {
234
+ return {id: '', name: ''}
235
+ }
236
+ },
237
+ getRes(val){
238
+ console.log('====================', val)
239
+ if (val.orgobj.length === 1 && val.orgobj[0].resourcetype === 'user'){
240
+
241
+ let org = this.recursiveSelOrg(val.orgobj[0], 'organization')
242
+ this.model.f_orgid=org.id
243
+ this.model.f_orgname=org.name
244
+ let dep = this.recursiveSelOrg(val.orgobj[0], 'department')
245
+ this.model.f_depid=dep.id
246
+ this.model.f_depname=dep.name
247
+
248
+ this.model.f_operatorid = val.orgobj[0].userid
249
+ this.model.f_operator=val.orgobj[0].name
250
+ this.isSelPop = true
251
+ } else {
252
+ // 不可提交
253
+ this.isSelPop = false
254
+ }
255
+ },
256
+ close () {
257
+ this.show = false
258
+ },
259
+ uploadFiles(){
260
+ this.showfiles= !this.showfiles
261
+ },
262
+ getEditState () {
263
+ if (this.model.f_state === '正常') {
264
+ this.$showMessage(`当前设备号: ${this.model.f_terminal_number} ,确认停用该设备?`, ['confirm', 'cancel']).then((res) => {
265
+ if (res === 'confirm') {
266
+ this.$showAlert(`已向设备号: ${this.model.f_terminal_number}发送停用指令,请稍后查看执行结果!`, 'success', 2500)
267
+ this.model.f_state = '停用'
268
+ try {
269
+ // 测试接口
270
+ // this.$resetpost('rs/logic/updatePosState', {data: {number: this.model.f_terminal_number, state: '停用'}}, {resolveMsg: null, rejectMsg: null}, 0)
271
+ // .then((res) => {})
272
+ this.$resetpost('rs/logic/batchPos',{data: {tasks: [this.data], taskState: 0}}, {rejectMsg: null, resolveMsg: null})
273
+ } catch (error) {
274
+ this.search()
275
+ }
276
+ }
277
+ })
278
+ } else if (this.model.f_state === '停用'){
279
+ this.$showMessage(`当前设备号: ${this.model.f_terminal_number} ,确认启用该设备?`, ['confirm', 'cancel']).then((res) => {
280
+ if (res === 'confirm') {
281
+ this.$showAlert(`已向设备号: ${this.model.f_terminal_number}发送启用指令,请稍后查看执行结果!`, 'success', 2500)
282
+ this.model.f_state = '正常'
283
+ try {
284
+ // 测试接口
285
+ // this.$resetpost('rs/logic/getEditPosState', {data: {number: this.model.f_terminal_number, state: '正常'}}, {resolveMsg: null, rejectMsg: null}, 0)
286
+ // .then((res) => {})
287
+ this.$resetpost('rs/logic/batchPos',{data: {tasks: [this.data], taskState: 1}}, {rejectMsg: null, resolveMsg: null})
288
+ } catch (error) {
289
+ this.search()
290
+ }
291
+ }
292
+ })
293
+ }
294
+ },
295
+ editBeizhu (val) {
296
+ this.editshow = true
297
+ this.posBase = val
298
+ },
299
+
300
+ //升级
301
+ upgrade(){
302
+ this.show=true
303
+ },
304
+ upgradeRoot() {
305
+ this.$resetpost('rs/logic/batchPos',{data: {tasks: [this.data], taskState: 2}}, {rejectMsg: null, resolveMsg: null})
306
+ this.$dispatch('refresh')
307
+ },
308
+ search () {
309
+ this.$refs.paged.$refs.cri.search()
310
+ },
311
+ confirm () {
312
+ // 如果是修改的话,只修改页面上用户填写的信息
313
+ this.model.f_depname = this.depname[0]
314
+ this.model.f_depid = this.f_depid[0]
315
+ if (!this.info) {
316
+ this.model.f_online = '离线'
317
+ this.model.f_operator = this.$login.f.name
318
+ this.model.f_orgid = this.$login.f.orgid
319
+ this.model.f_filialeids = this.$login.f.orgid
320
+ this.model.f_operatorid = this.$login.f.id
321
+ this.model.f_orgname = this.$login.f.orgs
322
+ // this.model.f_depname=this.depname[0]
323
+ this.model.f_orgstr = this.$login.f.fullids
324
+ }
325
+ this.$resetpost('rs/entity/t_equipment', this.model, {resolveMsg: '保存成功', rejectMsg: '保存失败'}).then((res) => {
326
+ this.$dispatch('refresh')
327
+ }).catch((error) => {
328
+ this.$dispatch('refresh')
329
+ })
330
+
331
+ },
332
+ edit (row) {
333
+ this.model.f_terminal_number = row.f_terminal_number
334
+ this.model.f_terminal_name = row.f_terminal_name
335
+ this.model.f_bank_name = row.f_bank_name
336
+ this.model.f_machine_number = row.f_machine_number
337
+ this.model.f_mac_number = row.f_mac_number
338
+ this.model.f_address = row.f_address
339
+ this.model.f_phone = row.f_phone
340
+ this.model.f_state = row.f_state
341
+ this.model.f_comments=row.f_comments
342
+ this.model.f_param_id=row.f_param_id
343
+ // this.model.f_username=row.f_username
344
+ this.model.id = row.id
345
+ this.model.f_filialeids=row.f_filialeids
346
+ this.model.f_orgid = row.f_orgid
347
+ this.model.f_depname = row.f_depname
348
+ this.initresid = [row.f_depid]
349
+ },
350
+ initModel() {
351
+ delete this.model.id
352
+ this.model.f_terminal_number = ''
353
+ this.model.f_terminal_name = ''
354
+ this.model.f_bank_name = ''
355
+ this.model.f_machine_number = ''
356
+ this.model.f_state = '正常'
357
+ this.model.f_phone = ''
358
+ this.model.f_param_id = ''
359
+ this.model.f_address = ''
360
+ this.model.f_filialeids = ''
361
+ this.model.f_orgid = ''
362
+ this.model.f_comments = ''
363
+ },
364
+ cancel() {
365
+ this.$dispatch('close')
366
+ }
367
+ }
368
+ }
369
+ </script>