sale-client 3.5.6 → 3.5.7-dg

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 (228) hide show
  1. package/.babelrc +5 -5
  2. package/build/dev-server.js +161 -167
  3. package/package.json +4 -4
  4. package/src/components/FilesManage/FileUserFiles.vue +22 -9
  5. package/src/components/FilesManage/MeterinfoTest.vue +17 -6
  6. package/src/components/FilesManage/UserEssentialInfoTest.vue +13 -6
  7. package/src/components/FilesManage/UserGeneralInfoTest.vue +17 -5
  8. package/src/components/FilesManage/UserMeterInfoTest.vue +3 -2
  9. package/src/components/UserFiles/AdjustableBox/AddBox.vue +51 -49
  10. package/src/components/charge/ChargeList.vue +78 -57
  11. package/src/components/charge/ChargeManage.vue +13 -13
  12. package/src/components/charge/ChargeOper.vue +19 -2
  13. package/src/components/charge/business/CardMeterCenter.vue +0 -1
  14. package/src/components/charge/business/FilesComplete.vue +2 -1
  15. package/src/components/charge/business/NoCardMeterCenter.vue +1 -1
  16. package/src/components/charge/business/OtherChargeNew.vue +2 -2
  17. package/src/components/chargeBatch/ChargeBatchList.vue +2 -2
  18. package/src/components/chargeBatch/ChargeManageBatch.vue +1 -1
  19. package/src/components/chargeBatch/ChargeManageGroup.vue +1 -1
  20. package/src/components/chargeNew/ChargeManageNew.vue +1 -1
  21. package/src/components/chargeNew/thirdSurplus.vue +1 -1
  22. package/src/components/common/userinfo_detail/TableUsageChart.vue +81 -0
  23. package/src/components/common/userinfo_detail/UserBaseInfoNew.vue +25 -8
  24. package/src/components/common/userinfo_detail/UserInfoDetailManageNew.vue +3 -0
  25. package/src/components/common/userinfo_detail/ic_detail/ChargeQueryUser.vue +14 -14
  26. package/src/components/common/userinfo_detail/ic_detail/ChargeRecordQuery.vue +1 -1
  27. package/src/components/common/userinfo_detail/ic_detail/HandQueryUser.vue +3 -3
  28. package/src/components/common/userinfo_detail/ic_detail/MachineRecordQuery.vue +4 -0
  29. package/src/components/common/userinfo_detail/ic_detail/MeterParam.vue +42 -3
  30. package/src/components/common/userinfo_detail/iot_detail/QueryInstruct.vue +24 -3
  31. package/src/components/revenue/Common/Movemeter.vue +1 -1
  32. package/src/components/revenue/Common/PrintBill.vue +5 -2
  33. package/src/components/revenue/HandManager/MbpeopleList.vue +9 -9
  34. package/src/components/revenue/HandManager/meterbookEntry.vue +7 -2
  35. package/src/components/revenue/HandManager/openEticket/HasOpenReceipt.vue +1 -0
  36. package/src/components/revenue/base/leftview/CheckGas.vue +55 -0
  37. package/src/components/revenue/base/leftview/MixPriceInfo.vue +1 -1
  38. package/src/components/revenue/base/leftview/meterinfodetail.vue +2 -1
  39. package/src/components/revenue/base/leftview/otherinfo.vue +10 -2
  40. package/src/components/revenue/base/rightview/CardList.vue +24 -22
  41. package/src/components/revenue/base/rightview/carddetail/GarbageDetail.vue +59 -0
  42. package/src/components/revenue/cardHandManage/cardDown.vue +1112 -0
  43. package/src/components/revenue/cardHandManage/cardHandManager.vue +6 -5
  44. package/src/components/revenue/cardHandManage/cardsHand.vue +643 -1364
  45. package/src/components/revenue/comprehen/ComprehenOperation/BankPayment/BankPaymentConstrast.vue +286 -0
  46. package/src/components/revenue/comprehen/ComprehenOperation/BankPayment/BankPaymentnew.vue +52 -0
  47. package/src/components/revenue/comprehen/ComprehenOperation/FeeDeduction/feeDeduction.vue +11 -13
  48. package/src/components/revenue/comprehen/ComprehenOperation/OverCharge/OverUseCharge.vue +7 -1
  49. package/src/components/revenue/comprehen/ComprehenOperation/newchangemeter/ResetMeter.vue +969 -0
  50. package/src/components/revenue/comprehen/Maintenance/hand/handListMaintain.vue +31 -32
  51. package/src/components/revenue/comprehen/Maintenance/hand/handOperate.vue +22 -22
  52. package/src/components/revenue/comprehen/Maintenance/revenue/StockListmain.vue +16 -16
  53. package/src/components/revenue/comprehen/SpecialUser/BasicLiving/BasicLivingList.vue +8 -1
  54. package/src/components/revenue/comprehen/StairPrice/GasPrice.vue +7 -3
  55. package/src/components/revenue/comprehen/StairPrice/GasPriceUser.vue +73 -40
  56. package/src/components/revenue/comprehen/batch/batchUserList.vue +2 -2
  57. package/src/components/revenue/comprehen/common/ImportExcel.vue +9 -6
  58. package/src/components/revenue/comprehen/common/JSONParse.vue +54 -0
  59. package/src/components/revenue/comprehen/gasbrand/AddGasBrand.vue +8 -5
  60. package/src/components/revenue/comprehen/gasbrand/AddUseringOrg.vue +76 -71
  61. package/src/components/revenue/comprehen/handAudit/MeterReadAudit.vue +2 -0
  62. package/src/components/revenue/concentrator/ncArchivesList.vue +4 -4
  63. package/src/components/revenue/concentrator/ncUserfilesList2.vue +11 -0
  64. package/src/components/revenue/invoiceuse/{ChargeList.vue → InvoiceChargeList.vue} +0 -0
  65. package/src/components/revenue/invoiceuse/InvoiceEntry.vue +2 -3
  66. package/src/components/revenue/invoiceuse/InvoiceUse.vue +12 -0
  67. package/src/components/revenue/machineHandManage/HandplanQuery.vue +1 -1
  68. package/src/components/revenue/machineHandManage/machineHand.vue +143 -2
  69. package/src/components/webMeter/MeterManage/WebMeterBatchOperationValve.vue +98 -2
  70. package/src/components/webMeter/paramSave/ParamSet.vue +78 -81
  71. package/src/components/webMeter/paramSave/ParamSetForm.vue +343 -344
  72. package/src/components/webMeter/paramSaveNew/ParamHistory.vue +115 -0
  73. package/src/components/webMeter/paramSaveNew/ParamSet.vue +594 -0
  74. package/src/components/webMeter/paramSaveNew/ParamSetDefault.vue +221 -0
  75. package/src/components/webMeter/paramSaveNew/ParamSetDefaultList.vue +68 -0
  76. package/src/components/webMeter/paramSaveNew/ParamSetForm.vue +437 -0
  77. package/src/components/webMeter/paramSaveNew/RadioBtn.vue +35 -0
  78. package/src/filiale/dongguan/components/FilesManage/FileUserFiles.vue +1037 -0
  79. package/src/filiale/dongguan/components/HighMeterCard.vue +1068 -0
  80. package/src/filiale/dongguan/components/common/userinfo_detail/UserBaseInfoNew.vue +478 -0
  81. package/src/filiale/dongguan/components/comprehen/StairPrice/GasPrice.vue +518 -0
  82. package/src/filiale/dongguan/components/meterinfodetail.vue +243 -0
  83. package/src/filiale/dongguan/sale.js +15 -0
  84. package/src/filiale/fugu/MeterinfoTest.vue +2 -2
  85. package/src/filiale/gaomi/components/charge/ChargeManage.vue +5 -5
  86. package/src/filiale/gongyi/charge/ChargeManage.vue +1 -1
  87. package/src/filiale/gongyi/charge/business/machine/MachineCharge.vue +1 -1
  88. package/src/filiale/gongyi/charge/business/machine/MachineMeterCenter.vue +3 -3
  89. package/src/filiale/gongyi/charge/business/machine/OweDetailList.vue +3 -3
  90. package/src/filiale/gongyi/charge/business/machine/OweList.vue +2 -2
  91. package/src/filiale/gongyi/revenue/comprehen/StairPrice/GasPrice.vue +6 -0
  92. package/src/filiale/gongyi/revenue/comprehen/ovdue/Overduetax.vue +8 -8
  93. package/src/filiale/gongyi/revenue/comprehen/ovdue/OverduetaxPrintBill.vue +1 -1
  94. package/src/filiale/gongyi/sale.js +1 -1
  95. package/src/filiale/guangxi/CardChangeFill.vue +595 -0
  96. package/src/filiale/guangxi/CardMeterCenter.vue +893 -0
  97. package/src/filiale/{WEINAN → guangxi}/CardMeterChargeCancel.vue +22 -29
  98. package/src/filiale/guangxi/CardService.js +1039 -0
  99. package/src/filiale/guangxi/ChangeSendCard.vue +23 -0
  100. package/src/filiale/guangxi/OtherGas.vue +409 -0
  101. package/src/filiale/guangxi/ShowCardSellGas.vue +899 -0
  102. package/src/filiale/guangxi/UnWriteCardCenter.vue +112 -0
  103. package/src/filiale/guangxi/sale.js +15 -0
  104. package/src/filiale/jinjiang/ChargeManage.vue +1 -1
  105. package/src/filiale/jinjiang/MachineMeterCenter.vue +1 -1
  106. package/src/filiale/kelai/CardMeterCenter.vue +919 -0
  107. package/src/filiale/kelai/GarbageCharge.vue +205 -0
  108. package/src/filiale/{WEINAN → kelai}/IOTMeterCenter.vue +323 -315
  109. package/src/filiale/kelai/MachineMeterCenter.vue +705 -0
  110. package/src/filiale/kelai/MeterinfoTest.vue +952 -0
  111. package/src/filiale/kelai/UserEssentialInfoTest.vue +341 -0
  112. package/src/filiale/kelai/UserfilesList.vue +293 -0
  113. package/src/filiale/kelai/sale.js +17 -0
  114. package/src/filiale/konggang/ChargeList.vue +897 -0
  115. package/src/filiale/konggang/FileUserFiles.vue +990 -0
  116. package/src/filiale/konggang/StockListmain.vue +479 -0
  117. package/src/filiale/{WEINAN → konggang}/UserEssentialInfoTest.vue +59 -116
  118. package/src/filiale/{WEINAN → konggang}/UserGeneralInfoTest.vue +277 -140
  119. package/src/filiale/konggang/sale.js +11 -1
  120. package/src/filiale/liaoyuan/ChargeManage.vue +13 -13
  121. package/src/filiale/liaoyuan/Overduetax.vue +5 -5
  122. package/src/filiale/liaoyuan/PriceAdjustment.vue +6 -5
  123. package/src/filiale/liaoyuan/sale.js +1 -1
  124. package/src/filiale/macheng/ChargeManage.vue +1 -1
  125. package/src/filiale/macheng/FilesManageNew/MeterinfoTest.vue +35 -18
  126. package/src/filiale/macheng/FilesManageNew/UserEssentialInfoTest.vue +2 -2
  127. package/src/filiale/macheng/FilesManageNew/UserGeneralInfoTest.vue +1 -1
  128. package/src/filiale/macheng/MachineMeterCenter.vue +1 -1
  129. package/src/filiale/macheng/MeterinfoTest.vue +33 -17
  130. package/src/filiale/meihekou/CardHand.vue +18 -18
  131. package/src/filiale/meihekou/ChargeManage.vue +2 -2
  132. package/src/filiale/meihekou/MachineCharge.vue +1 -1
  133. package/src/filiale/meihekou/MeterinfoTest.vue +3 -3
  134. package/src/filiale/meihekou/sale.js +1 -0
  135. package/src/filiale/qianneng/FilesManage/FileUserFiles.vue +9 -9
  136. package/src/filiale/qianneng/FilesManage/MeterinfoTest.vue +2 -2
  137. package/src/filiale/qianneng/FilesManageNew/UserGeneralInfoTest.vue +5 -1
  138. package/src/filiale/qianneng/GasPrice.vue +12 -6
  139. package/src/filiale/qianneng/HandManager.vue +8 -8
  140. package/src/filiale/qianneng/HighMeterIdCard.vue +25 -17
  141. package/src/filiale/qianneng/MachineCharge.vue +1 -1
  142. package/src/filiale/qianneng/js/WsUtil.js +191 -180
  143. package/src/filiale/qianneng/js/hignmeter.js +11 -1
  144. package/src/filiale/qianneng/machine/ArrearsQuery.vue +3 -3
  145. package/src/filiale/qianneng/machine/MachineMeterCenter.vue +3 -3
  146. package/src/filiale/qianneng/revenue/ChargeManage.vue +1 -1
  147. package/src/filiale/qianneng/revenue/machineHandManage/machineHand.vue +1 -1
  148. package/src/filiale/qingtongxia/HandManager/HandManager.vue +2 -2
  149. package/src/filiale/rizhao/ChargeQueryUser.vue +1 -1
  150. package/src/filiale/rizhao/MeterinfoTest.vue +2 -2
  151. package/src/filiale/rizhao/UserBaseInfoNew.vue +440 -0
  152. package/src/filiale/rizhao/sale.js +2 -1
  153. package/src/filiale/rongcheng/ChargeManage.vue +2 -2
  154. package/src/filiale/rongchuang/handListMaintain.vue +639 -0
  155. package/src/filiale/rongchuang/handOperate.vue +454 -0
  156. package/src/filiale/rongchuang/sale.js +10 -9
  157. package/src/filiale/shanggao/MeterinfoTest.vue +2 -2
  158. package/src/filiale/shaoguan/FilesManageNew/UserGeneralInfoTest.vue +3 -1
  159. package/src/filiale/shaoguan/MachineMeterCenter.vue +3 -3
  160. package/src/filiale/shaoguan/UserEssentialInfoTest.vue +3 -2
  161. package/src/filiale/shaoguan/charge/ChargeManage.vue +1 -1
  162. package/src/filiale/shaoguan/handListMaintain.vue +11 -11
  163. package/src/filiale/shaoguan/sale.js +2 -1
  164. package/src/filiale/tongchuan/CardMeterCenter.vue +915 -0
  165. package/src/filiale/tongchuan/ChargeManage.vue +3 -4
  166. package/src/filiale/tongchuan/HandManager.vue +13 -1
  167. package/src/filiale/tongchuan/StairPrice/GasPrice.vue +6 -0
  168. package/src/filiale/tongchuan/StairPrice/GasPriceUser.vue +71 -38
  169. package/src/filiale/tongchuan/UserBaseInfoNew.vue +14 -5
  170. package/src/filiale/tongchuan/base/otherinfo.vue +7 -1
  171. package/src/filiale/tongchuan/common/userinfo_detail/UserInfoDetailManageNew.vue +3 -0
  172. package/src/filiale/tongchuan/common/userinfo_detail/ic_detail/MeterParam.vue +24 -4
  173. package/src/filiale/tongchuan/common/userinfo_detail/iot_detail/WatchCollection.vue +4 -4
  174. package/src/filiale/tongchuan/sale.js +2 -1
  175. package/src/filiale/wuan/charge/ChargeManage.vue +2 -2
  176. package/src/filiale/wuhai/MeterinfoTest.vue +2 -2
  177. package/src/filiale/xinkang/MeterinfoTest.vue +952 -0
  178. package/src/filiale/xinkang/sale.js +3 -1
  179. package/src/filiale/zhongyi/FileUserFiles.vue +16 -19
  180. package/src/filiale/zhongyi/MeterinfoTest.vue +2 -2
  181. package/src/main.js +1 -1
  182. package/src/plugins/CardService.js +3 -1
  183. package/src/plugins/CommonService.js +2 -0
  184. package/src/plugins/FileManageService.js +2 -2
  185. package/src/plugins/LogicService.js +8 -2
  186. package/src/plugins/MachineChargeService.js +2 -0
  187. package/src/sale.js +30 -6
  188. package/.gradle/3.5.1/file-changes/last-build.bin +0 -0
  189. package/.gradle/3.5.1/taskHistory/taskHistory.lock +0 -0
  190. package/.gradle/buildOutputCleanup/built.bin +0 -0
  191. package/.gradle/buildOutputCleanup/cache.properties +0 -2
  192. package/.gradle/buildOutputCleanup/cache.properties.lock +0 -1
  193. package/src/filiale/WEINAN/AutomaticPurse.vue +0 -304
  194. package/src/filiale/WEINAN/CardList.vue +0 -497
  195. package/src/filiale/WEINAN/CardMeterCenter.vue +0 -819
  196. package/src/filiale/WEINAN/ChangeMeter.vue +0 -737
  197. package/src/filiale/WEINAN/ChargeList.vue +0 -1006
  198. package/src/filiale/WEINAN/ChargeManageNew.vue +0 -232
  199. package/src/filiale/WEINAN/ChargeQueryUser.vue +0 -331
  200. package/src/filiale/WEINAN/ChargeRecordQuery.vue +0 -73
  201. package/src/filiale/WEINAN/DisableManage.vue +0 -63
  202. package/src/filiale/WEINAN/EnableManage.vue +0 -142
  203. package/src/filiale/WEINAN/FileAddressManage.vue +0 -112
  204. package/src/filiale/WEINAN/FileUserAddress.vue +0 -785
  205. package/src/filiale/WEINAN/HighMeter.vue +0 -1090
  206. package/src/filiale/WEINAN/MachineMeterCenter.vue +0 -595
  207. package/src/filiale/WEINAN/MeterMessage.vue +0 -131
  208. package/src/filiale/WEINAN/MeterinfoTest.vue +0 -584
  209. package/src/filiale/WEINAN/OffGasAddGas.vue +0 -213
  210. package/src/filiale/WEINAN/OtherGas.vue +0 -351
  211. package/src/filiale/WEINAN/OverUseCharge.vue +0 -412
  212. package/src/filiale/WEINAN/RecordCancel.vue +0 -302
  213. package/src/filiale/WEINAN/RecordQueryUser.vue +0 -253
  214. package/src/filiale/WEINAN/ReplaceCardManage.vue +0 -408
  215. package/src/filiale/WEINAN/ShowCardSellGas.vue +0 -842
  216. package/src/filiale/WEINAN/Stairinfo.vue +0 -157
  217. package/src/filiale/WEINAN/TransferManage.vue +0 -370
  218. package/src/filiale/WEINAN/UserBaseInfoNew.vue +0 -325
  219. package/src/filiale/WEINAN/UserInfoDetailManageNew.vue +0 -150
  220. package/src/filiale/WEINAN/Userinfo.vue +0 -82
  221. package/src/filiale/WEINAN/gasmove.vue +0 -243
  222. package/src/filiale/WEINAN/meterinfodetail.vue +0 -104
  223. package/src/filiale/WEINAN/plugins/FileManageService.js +0 -362
  224. package/src/filiale/WEINAN/plugins/getTimeService.js +0 -87
  225. package/src/filiale/WEINAN/sale.js +0 -55
  226. package/src/filiale/WEINAN/sale.js~Stashed changes +0 -29
  227. package/src/filiale/WEINAN/static/mainicon//347/237/251/345/275/2421828.png +0 -0
  228. package/yarn-error.log +0 -9224
package/.babelrc CHANGED
@@ -1,5 +1,5 @@
1
- {
2
- "presets": ["es2015", "stage-2"],
3
- "plugins": ["transform-runtime"],
4
- "comments": false
5
- }
1
+ {
2
+ "presets": ["es2015", "stage-2"],
3
+ "plugins": ["transform-runtime"],
4
+ "comments": false
5
+ }
@@ -1,167 +1,161 @@
1
- var express = require('express')
2
- var webpack = require('webpack')
3
- var config = require('./webpack.dev.conf')
4
- var proxyMiddleware = require('http-proxy-middleware')
5
- // var httpProxy = require('http-proxy')
6
-
7
- var app = express()
8
- var compiler = webpack(config)
9
- // var proxy = httpProxy.createProxyServer()
10
-
11
- // Define HTTP proxies to your custom API backend
12
- // https://github.com/chimurai/http-proxy-middleware
13
- var bendi = 'http://127.0.0.1:8080',bendi1 = 'http://121.36.106.17:8400/'
14
- // var bendi = 'http://192.168.50.4:8300/',bendi1 = 'http://121.36.106.17:8400/'
15
- // var bendi = 'http://192.168.50.4:8400/',bendi1 = 'http://121.36.106.17:8400/'
16
- // var bendi = 'http://139.214.92.34:8301/',bendi1 = 'http://121.36.106.17:8400/'
17
- // 公司测试服务
18
- // var fuwu = 'http://192.168.89.62:8400'
19
- // var fuwu = 'http://121.36.106.17:8400/'
20
- var fuwu = 'http://192.168.50.4:8400/'
21
- // var fuwu = 'http://192.168.50.4:8300/'
22
- // var fuwu = 'http://139.214.92.34:8301/'
23
- //铜川正式
24
- // var fuwu = 'http://61.134.55.234:9999/'
25
- //铜川测试
26
- // var fuwu = 'http://61.134.55.234:9999/'
27
- // var fuwu = 'http://60.222.250.39:8300/'
28
- //韶关
29
- // var fuwu = 'http://119.146.1.106:8300/'
30
- // 巩义测试服务
31
- // var fuwu = 'http://192.168.0.227:8400'
32
- // 燎原测试服务
33
- // var fuwu = 'http://121.41.19.238:8400 '
34
- // var fuwu = 'http://121.41.19.238:9001/'
35
-
36
- // var fuwu = 'http://139.214.92.34:8301/'
37
-
38
- var proxyTable = {
39
- '/rs/logic/saleExport': {
40
- target: fuwu
41
- },
42
- '/rs/logic/saleGetExportProgress': {
43
- target: fuwu
44
- },
45
- '/files': {
46
- target: fuwu
47
- },
48
- // 查找资源服务数据
49
- '/rs/search': {
50
- target: fuwu
51
- },
52
- // 查找资源服务数据
53
- '/rs/logic/getLogin': {
54
- target: fuwu
55
- },
56
- // 查找资源服务数据
57
- '/rs/logic/getInitData': {
58
- target: fuwu
59
- },
60
- '/rs/logic/getSaleInitData': {
61
- target: fuwu
62
- },
63
- '/invoice':{
64
- target: fuwu
65
- },
66
- // 用户登录服务地址
67
- '/rs/user': {
68
- target: fuwu
69
- },
70
- '/rs/path/getParams': {
71
- target: fuwu
72
- },
73
- '/rs/data': {
74
- target: fuwu
75
- },
76
- '/rs/license': {
77
- target: fuwu
78
- },
79
- '/rs/db': {
80
- target: fuwu
81
- },
82
- '/excel': {
83
- target: fuwu
84
- },
85
- '/rs/config': {
86
- target: fuwu
87
- },
88
- '/rs/sql/getLicenseById': {
89
- target: fuwu
90
- },
91
- '/rs/sql/manage_getarealist': {
92
- target: fuwu
93
- },
94
- '/rs/sql/manage_getstreetlist': {
95
- target: fuwu
96
- },
97
- '/rs/report': {
98
- target: 'http://121.36.106.17:8400/'
99
- },
100
- '/rs/vue': {
101
- target: fuwu
102
- },
103
- '/webmeter': {
104
- target: 'http://192.168.50.4:8450'
105
- },
106
- '/rs': {
107
- // target: 'http://192.168.30.63:8081/'
108
- // target: 'http://121.36.106.17:8400/'
109
- target: bendi
110
- }
111
- }
112
-
113
- var devMiddleware = require('webpack-dev-middleware')(compiler, {
114
- publicPath: config.output.publicPath,
115
- stats: {
116
- colors: true,
117
- chunks: false
118
- }
119
- })
120
-
121
- var hotMiddleware = require('webpack-hot-middleware')(compiler)
122
- // force page reload when html-webpack-plugin template changes
123
- compiler.plugin('compilation', function (compilation) {
124
- compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
125
- hotMiddleware.publish({action: 'reload'})
126
- cb()
127
- })
128
- })
129
-
130
- // proxy api requests
131
- Object.keys(proxyTable).forEach(function (context) {
132
- var options = proxyTable[context]
133
- if (typeof options === 'string') {
134
- options = {target: options}
135
- }
136
- app.use(proxyMiddleware(context, options))
137
- })
138
-
139
- // handle fallback for HTML5 history API
140
- app.use(require('connect-history-api-fallback')())
141
- // app.use(function (req, res, next) {
142
- // res.header('Access-Control-Allow-Origin', '*')
143
- // res.header('Access-Control-Allow-Headers', 'X-Requested-With')
144
- // res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
145
- // res.header('X-Powered-By', '3,2,1')
146
- // res.header('Access-Control-Allow-Credentials', 'true')
147
- // res.header('Content-Type', 'application/json;charset=utf-8')
148
- // next()
149
- // })
150
-
151
- // serve webpack bundle output
152
- app.use(devMiddleware)
153
-
154
- // enable hot-reload and state-preserving
155
- // compilation error display
156
- app.use(hotMiddleware)
157
-
158
- // serve pure static assets
159
- app.use('/static', express.static('./static'))
160
-
161
- module.exports = app.listen(8089, function (err) {
162
- if (err) {
163
- console.log(err)
164
- return
165
- }
166
- console.log('Listening at http://localhost:8089')
167
- })
1
+ var express = require('express')
2
+ var webpack = require('webpack')
3
+ var config = require('./webpack.dev.conf')
4
+ var proxyMiddleware = require('http-proxy-middleware')
5
+ // var httpProxy = require('http-proxy')
6
+
7
+ var app = express()
8
+ var compiler = webpack(config)
9
+ // var proxy = httpProxy.createProxyServer()
10
+
11
+ // Define HTTP proxies to your custom API backend
12
+ // https://github.com/chimurai/http-proxy-middleware
13
+ var bendi = 'http://192.168.50.4:8400/', bendi1 = 'http://121.36.106.17:8400/'
14
+ // 公司测试服务
15
+ var fuwu = 'http://192.168.50.4:8400/'
16
+ // var fuwu = 'http://121.36.106.17:8400/'
17
+ // 铜川正式
18
+ // var fuwu = 'http://61.134.55.234:9999/'
19
+ // 铜川测试
20
+ // var fuwu = 'http://61.134.55.234:9999/'
21
+ // var fuwu = 'http://60.222.250.39:8300/'
22
+ // 韶关
23
+ // var fuwu = 'http://119.146.1.106:8300/'
24
+ // 巩义测试服务
25
+ // var fuwu = 'http://192.168.0.227:8400'
26
+ // 燎原测试服务
27
+ // var fuwu = 'http://121.41.19.238:8400 '
28
+ // var fuwu = 'http://121.41.19.238:9001/'
29
+
30
+ // var fuwu = 'http://139.214.92.34:8301/'
31
+
32
+ var proxyTable = {
33
+ '/rs/logic/saleExport': {
34
+ target: fuwu
35
+ },
36
+ '/rs/logic/saleGetExportProgress': {
37
+ target: fuwu
38
+ },
39
+ '/files': {
40
+ target: fuwu
41
+ },
42
+ // 查找资源服务数据
43
+ '/rs/search': {
44
+ target: fuwu
45
+ },
46
+ // 查找资源服务数据
47
+ '/rs/logic/getLogin': {
48
+ target: fuwu
49
+ },
50
+ // 查找资源服务数据
51
+ '/rs/logic/getInitData': {
52
+ target: fuwu
53
+ },
54
+ '/rs/logic/getSaleInitData': {
55
+ target: fuwu
56
+ },
57
+ '/invoice': {
58
+ target: fuwu
59
+ },
60
+ // 用户登录服务地址
61
+ '/rs/user': {
62
+ target: fuwu
63
+ },
64
+ '/rs/path/getParams': {
65
+ target: fuwu
66
+ },
67
+ '/rs/data': {
68
+ target: fuwu
69
+ },
70
+ '/rs/license': {
71
+ target: fuwu
72
+ },
73
+ '/rs/db': {
74
+ target: fuwu
75
+ },
76
+ '/excel': {
77
+ target: fuwu
78
+ },
79
+ '/rs/config': {
80
+ target: fuwu
81
+ },
82
+ '/rs/sql/getLicenseById': {
83
+ target: fuwu
84
+ },
85
+ '/rs/sql/manage_getarealist': {
86
+ target: fuwu
87
+ },
88
+ '/rs/sql/manage_getstreetlist': {
89
+ target: fuwu
90
+ },
91
+ '/rs/report': {
92
+ target: 'http://121.36.106.17:8400/'
93
+ },
94
+ '/rs/vue': {
95
+ target: fuwu
96
+ },
97
+ '/webmeter': {
98
+ target: fuwu
99
+ },
100
+ '/rs': {
101
+ // target: 'http://192.168.30.63:8081/'
102
+ // target: 'http://121.36.106.17:8400/'
103
+ target: bendi
104
+ }
105
+ }
106
+
107
+ var devMiddleware = require('webpack-dev-middleware')(compiler, {
108
+ publicPath: config.output.publicPath,
109
+ stats: {
110
+ colors: true,
111
+ chunks: false
112
+ }
113
+ })
114
+
115
+ var hotMiddleware = require('webpack-hot-middleware')(compiler)
116
+ // force page reload when html-webpack-plugin template changes
117
+ compiler.plugin('compilation', function (compilation) {
118
+ compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
119
+ hotMiddleware.publish({action: 'reload'})
120
+ cb()
121
+ })
122
+ })
123
+
124
+ // proxy api requests
125
+ Object.keys(proxyTable).forEach(function (context) {
126
+ var options = proxyTable[context]
127
+ if (typeof options === 'string') {
128
+ options = {target: options}
129
+ }
130
+ app.use(proxyMiddleware(context, options))
131
+ })
132
+
133
+ // handle fallback for HTML5 history API
134
+ app.use(require('connect-history-api-fallback')())
135
+ // app.use(function (req, res, next) {
136
+ // res.header('Access-Control-Allow-Origin', '*')
137
+ // res.header('Access-Control-Allow-Headers', 'X-Requested-With')
138
+ // res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
139
+ // res.header('X-Powered-By', '3,2,1')
140
+ // res.header('Access-Control-Allow-Credentials', 'true')
141
+ // res.header('Content-Type', 'application/json;charset=utf-8')
142
+ // next()
143
+ // })
144
+
145
+ // serve webpack bundle output
146
+ app.use(devMiddleware)
147
+
148
+ // enable hot-reload and state-preserving
149
+ // compilation error display
150
+ app.use(hotMiddleware)
151
+
152
+ // serve pure static assets
153
+ app.use('/static', express.static('./static'))
154
+
155
+ module.exports = app.listen(8089, function (err) {
156
+ if (err) {
157
+ console.log(err)
158
+ return
159
+ }
160
+ console.log('Listening at http://localhost:8089')
161
+ })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "3.5.6",
3
+ "version": "3.5.7-dg",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -25,7 +25,7 @@
25
25
  "yarn": "^1.22.10"
26
26
  },
27
27
  "devDependencies": {
28
- "address-client": "3.2.27",
28
+ "address-client": "3.2.29",
29
29
  "axios": "0.15.3",
30
30
  "babel-core": "^6.0.0",
31
31
  "babel-loader": "^6.0.0",
@@ -86,9 +86,9 @@
86
86
  "sinon-chai": "^2.8.0",
87
87
  "style": "0.0.3",
88
88
  "style-loader": "^0.20.3",
89
- "system-clients": "3.2.0-2",
89
+ "system-clients": "3.2.25",
90
90
  "url-loader": "^0.5.7",
91
- "vue-client": "1.24.52",
91
+ "vue-client": "1.24.67",
92
92
  "vue-clipboard2": "0.3.1",
93
93
  "vue-hot-reload-api": "^1.2.0",
94
94
  "vue-html-loader": "^1.0.0",
@@ -42,6 +42,7 @@
42
42
  class="form-group button-range">
43
43
  <!--<button class="button_search button_spacing" style="width: 90px" @click="$parent.$parent.showFileInfo()">查看批量状态-->
44
44
  <!--</button>-->
45
+ <button class="button_search button_spacing" type="button" @click="$parent.$parent.goChargeManage()">去收费</button>
45
46
 
46
47
  <button @click="search(), $parent.$parent.clean()" class="button_search button_spacing"
47
48
  style="float: right">查询
@@ -57,8 +58,6 @@
57
58
  <button @click="$parent.$parent.importFile" class="button_export button_spacing"
58
59
  style="float: right" v-if="false">导入
59
60
  </button>
60
- <button class="button_search button_spacing" style="width: 90px" @click="$parent.$parent.downloadFiles()">模板下载
61
- </button>
62
61
  <!-- <button class="button_search" style="width: 90px" @click=" $parent.$parent.selectaddress()">选择地址</button>-->
63
62
  <button @click="$parent.$parent.xiaohu()"
64
63
  class="button_delete button_spacing"
@@ -66,6 +65,7 @@
66
65
  v-if="$parent.$parent.rows && $parent.$parent.rows.length > 1 && this.$login.r.includes('批量销户')">
67
66
  批量销户
68
67
  </button>
68
+ <import-excel v-if="$parent.$parent.bacthPin === '销户导入'" template-btn-name= "销户模板" template-name= "销户模板" btn-name="导入销户" logic-name="batchpinusers" import-json="pinuser.json"></import-excel>
69
69
  <button @click="$parent.$parent.bulkOperations('批量销户', 'batch-cancellation')"
70
70
  class="button_delete button_spacing"
71
71
  style="float: right"
@@ -228,7 +228,7 @@
228
228
  </div>
229
229
  <div
230
230
  :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
231
- class="form-group" v-if="titleShow">
231
+ class="form-group" >
232
232
  <label class="font_normal_body">使用类型</label>
233
233
  <v-select :options='$parent.$parent.useoptions' :search='true'
234
234
  :value.sync="model.f_usetype"
@@ -238,7 +238,7 @@
238
238
  </div>
239
239
  <div
240
240
  :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
241
- class="form-group" v-if="titleShow">
241
+ class="form-group" >
242
242
  <label class="font_normal_body">用户等级</label>
243
243
  <v-select :options='$parent.$parent.userlevel' :search='true'
244
244
  :value.sync="model.userlevel"
@@ -248,7 +248,7 @@
248
248
  </div>
249
249
  <div
250
250
  :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
251
- class="form-group" v-if="titleShow">
251
+ class="form-group" >
252
252
  <label class="font_normal_body">工业备注</label>
253
253
  <v-select :options='$parent.$parent.industrycomments' :value.sync="model.f_gongye_type"
254
254
  close-on-select condition="f_gongye_type='{}'"
@@ -331,7 +331,7 @@
331
331
  <th v-if="!$parent.$parent.$parent.createFile">
332
332
  <nobr>状态</nobr>
333
333
  </th>
334
- <th v-if="titleShow">
334
+ <th >
335
335
  <nobr>用户等级</nobr>
336
336
  </th>
337
337
  <!--<th>-->
@@ -362,7 +362,7 @@
362
362
  <td style="text-align: center;">{{row.f_whether_hairpin}}</td>
363
363
  <td style="text-align: center;" v-if="!$parent.$parent.$parent.createFile">{{row.f_userfiles_address}}</td>
364
364
  <td style="text-align: center;" v-if="!$parent.$parent.$parent.createFile">{{row.f_user_state}}</td>
365
- <td style="text-align: center;" v-if="titleShow">{{row.f_user_level}}</td>
365
+ <td style="text-align: center;" >{{row.f_user_level}}</td>
366
366
  <td style="text-align: center;">
367
367
  <button type="button" name="button" class="button_search-2 button_spacing width-60"
368
368
  v-if="row.f_user_state === '正常' || row.f_user_state==='预备'"
@@ -405,9 +405,11 @@
405
405
  <footer slot="modal-footer" class="modal-footer">
406
406
  </footer>
407
407
  </modal>
408
- <modal :show.sync="batchMeterShow" width="500px" title="文件导入" v-ref:modal large backdrop="false">
408
+ <modal :show.sync="batchMeterShow" width="570px" title="文件导入" v-ref:modal large backdrop="false">
409
409
  <article slot="modal-body" class="modal-body">
410
- <file-upload class="my-file-uploader" name="useraddressUploadFile" action="rs/file/uploadFile" tagname="确定" multiple v-ref:file></file-upload>
410
+ <file-upload class="my-file-uploader col-sm-9" name="useraddressUploadFile" action="rs/file/uploadFile" tagname="确定" multiple v-ref:file></file-upload>
411
+ <button class="button_clear btn-gn" style="margin-top: 10px;background-color: #6aa6e2;" @click="downloadFiles()">模板下载
412
+ </button>
411
413
  </article>
412
414
  <footer slot="modal-footer" class="modal-footer">
413
415
  </footer>
@@ -503,6 +505,7 @@ let loadParamGem = async function (self) {
503
505
  createType: ['address', 'area'], // 建档方式: address-地址建档 area-小区建档
504
506
  hasLimit: true
505
507
  },
508
+ bacthPin: '',
506
509
  model: new PagedList('rs/sql/filemanage_getUserfies', 30, {orderitem: '"f_userinfo_id DESC"'}),
507
510
  row: null, // 选择一条客户信息,对其进行修改
508
511
  areainfo: null, // 小区批量建档使用的数据
@@ -581,6 +584,7 @@ let loadParamGem = async function (self) {
581
584
  newdata: {},
582
585
  resdata: '',
583
586
  resshow: false,
587
+ batchpinshow: false, // 导入销户
584
588
  titleShow: true, //是否显示部分档案信息类的筛选框
585
589
  useoptions: this.$appdata.getParam('使用类型'),
586
590
 
@@ -590,6 +594,7 @@ let loadParamGem = async function (self) {
590
594
  ready () {
591
595
  loadParamGem(this)
592
596
  this.titleShow = this.$appdata.getSingleValue('是否显示筛选框') == null? true : this.$appdata.getSingleValue('是否显示筛选框')
597
+ this.getAuthority()
593
598
  },
594
599
  compiled () {
595
600
  window.onresize = () => {
@@ -599,6 +604,11 @@ let loadParamGem = async function (self) {
599
604
  }
600
605
  },
601
606
  methods: {
607
+ getAuthority () {
608
+ if (this.$login.r.find(value => value == '销户导入')) {
609
+ this.bacthPin = '销户导入'
610
+ }
611
+ },
602
612
  getRes (obj) {
603
613
  console.log("-----------------")
604
614
  this.orgcondition = obj
@@ -848,6 +858,9 @@ let loadParamGem = async function (self) {
848
858
  importFile () {
849
859
  this.show = true
850
860
  },
861
+ pin () {
862
+ this.batchpinshow = true
863
+ },
851
864
  clear () {
852
865
  Object.keys(this.$refs.paged.$refs.criteria.model).forEach((key) => {
853
866
  this.$refs.paged.$refs.criteria.model[key] = []
@@ -43,7 +43,7 @@
43
43
  <input type="text" class="input_search" style="width:60%" v-show="false" v-model="$refs.brand.selectedItems"
44
44
  v-validate:brand='{required: true }'>
45
45
  <v-select :value.sync="row.gasbrand" :options='meterbrands' placeholder='气表品牌' close-on-select
46
- search @change='brandChange' v-model='row.gasbrand' v-ref:brand></v-select>
46
+ search @change='brandChange' v-model='row.gasbrand' :disabled="curuser.f_user_state != '预备'" v-ref:brand></v-select>
47
47
  </div>
48
48
  <div class="col-sm-4 form-group" :class="[$m.model.required ? 'has-error' : '']">
49
49
  <label for="gasmodel" class="font_normal_body">气表型号</label>
@@ -51,7 +51,7 @@
51
51
  v-validate:model='{required: true }'>
52
52
  <v-select :value.sync="row.gasmodel" :options='row.gasbrand[0].gasmodel' placeholder='气表型号'
53
53
  close-on-select
54
- v-model='row.gasmodel' :disabled='row.gasbrand.length === 0 ' v-ref:model></v-select>
54
+ v-model='row.gasmodel' :disabled="row.gasbrand.length === 0 || curuser.f_user_state != '预备'" v-ref:model></v-select>
55
55
  </div>
56
56
  <div class="col-sm-4 form-group">
57
57
  <label for="f_meter_base" class="font_normal_body">&ensp;累购气量</label>
@@ -185,7 +185,8 @@
185
185
  </div>
186
186
  <div class="col-sm-4 form-group">
187
187
  <label class="font_normal_body">表具使用年限</label>
188
- <input type="number" class="input_search" style="width:60%" v-model="fireinfo.f_use_limit"
188
+ <input type="number" class="input_search" style="width:60%" v-model="row.f_use_limit"
189
+ :value.sync="row.f_use_limit"
189
190
  placeholder='表具使用年限' >
190
191
  </div>
191
192
  <div class="col-sm-4 form-group">
@@ -202,6 +203,7 @@
202
203
  <datepicker style="width:60%" placeholder="通气日期"
203
204
  v-model="row.f_gas_date"
204
205
  v-ref:f_gas_date
206
+ @change="gasDateChange"
205
207
  :value.sync="row.f_gas_date"
206
208
  :format="'yyyy-MM-dd HH:mm:ss'"
207
209
  ></datepicker>
@@ -565,10 +567,10 @@
565
567
  templat: '' // 临时纬度
566
568
  }
567
569
  },
568
- props: ['f_filialeid', 'meter', 'isdecimal', 'valid', 'f_userinfo_id','overdueset'],
570
+ props: ['f_filialeid', 'meter', 'isdecimal', 'valid', 'f_userinfo_id', 'overdueset', 'curuser'],
569
571
  async ready () {
570
572
  console.log('看看meter里面的数据', this.meter, this.row)
571
- this.row = Object.assign(this.row, this.meter, {})
573
+ this.row = Object.assign(this.row, this.meter, {f_use_limit : this.$appdata.getSingleValue('报废年限')})
572
574
  if(this.row.f_meter_classify){
573
575
  if(this.row.f_meter_classify==='物联网表'){
574
576
  this.isiot=true
@@ -586,6 +588,16 @@
586
588
  co(meterBookGen(this))
587
589
  },
588
590
  methods: {
591
+ gasDateChange () {
592
+ if (!this.row.f_scrap_date && this.row.f_gas_date) {
593
+ if (this.row.f_use_limit) {
594
+ let date = new Date(this.row.f_gas_date)
595
+ let year = date.getFullYear() + (this.row.f_use_limit / 1)
596
+ this.$set('row.f_scrap_date', year + this.row.f_gas_date.slice(4))
597
+
598
+ }
599
+ }
600
+ },
589
601
  // 获取集中器下拉框
590
602
  async getConcentrators () {
591
603
  let condition = {
@@ -795,7 +807,6 @@
795
807
  this.ratioshow = false
796
808
  }
797
809
  }
798
-
799
810
  },
800
811
  computed: {
801
812
 
@@ -106,6 +106,13 @@
106
106
  <input type="text" v-model="baseinfo.base.f_zuhu_phone" class="input_search" style="width:60%"
107
107
  placeholder="租户电话">
108
108
  </div>
109
+ </div>
110
+ <div class="row">
111
+ <div style="" class="col-sm-8 form-group">
112
+ <label for="f_zuhu_idnumber" class="font_normal_body">租户身份证</label>
113
+ <input type="text" v-model="baseinfo.base.f_zuhu_idnumber" class="input_search" style="width:80%"
114
+ placeholder="租户身份证">
115
+ </div>
109
116
  <div style="" class="col-sm-4 form-group">
110
117
  <label for="f_is_mgq" class="font_normal_body ">&ensp;付款类型</label>
111
118
  <v-select id="f_is_mgq" :value.sync="baseinfo.base.f_cost_type" v-model="baseinfo.base.f_cost_type"
@@ -127,12 +134,12 @@
127
134
  </div>
128
135
  </div>
129
136
  <div class="row">
130
- <!-- <div style="" class="col-sm-4 form-group">-->
131
- <!-- <label for="f_user_level" class="font_normal_body ">&ensp;用户等级</label>-->
132
- <!-- <v-select :value.sync="baseinfo.base.f_user_level" :search="false" :value-single="true"-->
133
- <!-- :options='userlevel' placeholder='用户等级' close-on-select>-->
134
- <!-- </v-select>-->
135
- <!-- </div>-->
137
+ <div style="" class="col-sm-4 form-group">
138
+ <label for="f_user_level" class="font_normal_body ">&ensp;用户等级</label>
139
+ <v-select :value.sync="baseinfo.base.f_user_level" :search="false" :value-single="true"
140
+ :options='userlevel' placeholder='用户等级' close-on-select>
141
+ </v-select>
142
+ </div>
136
143
  <div class="col-sm-4 form-group">
137
144
  <label for="f_user_nature" class="font_normal_body" title="用户性质">&ensp;用气类型</label>
138
145
  <input type="text" v-show="false" v-model="baseinfo.base.f_user_nature">