manage-client 3.1.11 → 3.1.12-ls

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 (208) hide show
  1. package/.gradle/6.1.1/fileHashes/fileHashes.bin +0 -0
  2. package/build/dev-server.js +2 -2
  3. package/package.json +101 -101
  4. package/src/components/SellReport/ManageBusSummary.vue +150 -187
  5. package/src/components/SellReport/ManageDayGas.vue +120 -120
  6. package/src/components/SellReport/ManageMonthGas.vue +124 -124
  7. package/src/components/SellReport/ManageOtherCharge.vue +121 -121
  8. package/src/components/SellReport/ManageSellType.vue +133 -133
  9. package/src/components/SellReport/ReportItems.vue +1 -2
  10. package/src/components/SellReport/jingwei/ManageHandSellMoney.vue +120 -120
  11. package/src/components/handReport/GeneraHandReport.vue +235 -0
  12. package/src/components/qinhua/BarChart.vue +26 -74
  13. package/src/components/qinhua/Style/qinhuaStyle.less +4 -111
  14. package/src/components/sale/businessquery/AccountQuery/GasReimbursementRate.vue +1 -1
  15. package/src/components/sale/businessquery/BusinesQuery.vue +3 -3
  16. package/src/components/sale/businessquery/BusinessManage.vue +0 -3
  17. package/src/components/sale/businessquery/CancellationQuery.vue +1 -1
  18. package/src/components/sale/businessquery/CardHandplanQuery.vue +1 -1
  19. package/src/components/sale/businessquery/ChangeMeterQuery.vue +1 -12
  20. package/src/components/sale/businessquery/ChangeUserQuery.vue +1 -7
  21. package/src/components/sale/businessquery/DisableQuery.vue +1 -1
  22. package/src/components/sale/businessquery/EnableQuery.vue +1 -1
  23. package/src/components/sale/businessquery/FillCardQuery.vue +1 -1
  24. package/src/components/sale/businessquery/FillGasQuery.vue +1 -1
  25. package/src/components/sale/businessquery/GasInspection.vue +1 -1
  26. package/src/components/sale/businessquery/HandGasPropertiesQuery.vue +19 -10
  27. package/src/components/sale/businessquery/HandplanQuery.vue +1 -1
  28. package/src/components/sale/businessquery/InspectListGas.vue +1 -1
  29. package/src/components/sale/businessquery/InspectListUser.vue +1 -1
  30. package/src/components/sale/businessquery/MoveMeterQuery.vue +1 -1
  31. package/src/components/sale/businessquery/OtherChargeQuery.vue +1 -1
  32. package/src/components/sale/businessquery/ReverseQuery.vue +1 -1
  33. package/src/components/sale/businessquery/SellingHand.vue +1 -1
  34. package/src/components/sale/businessquery/SendbookQuery.vue +1 -1
  35. package/src/components/sale/businessquery/SuspiciousUserQuery.vue +1 -1
  36. package/src/components/sale/businessquery/TransferQuery.vue +1 -1
  37. package/src/components/sale/businessquery/UserInsured.vue +1 -1
  38. package/src/components/sale/businessquery/overDueQuery.vue +1 -1
  39. package/src/components/sale/businessquery/priceadjustQuery.vue +1 -1
  40. package/src/components/sale/config/exportConfig.js +518 -527
  41. package/src/components/sale/filesquery/ArchivesManage.vue +0 -3
  42. package/src/components/sale/filesquery/DeviceQuery.vue +1 -1
  43. package/src/components/sale/filesquery/MeterQuery.vue +1 -1
  44. package/src/components/sale/filesquery/RecordInfoQuery.vue +9 -83
  45. package/src/components/sale/filesquery/UserDeviceQuery.vue +1 -1
  46. package/src/components/sale/filesquery/UserQuery.vue +0 -46
  47. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +28 -19
  48. package/src/components/webmeter/DrillData/LostContactEcharts.vue +14 -32
  49. package/src/components/webmeter/DrillData/UserGasAll.vue +8 -4
  50. package/src/components/webmeter/DrillData/UserGasEcharts.vue +7 -8
  51. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +27 -13
  52. package/src/components/webmeter/instruction/NewQueryInstructMain.vue +1 -1
  53. package/src/components/webmeter/newwebmeter/NewException/MeterExceptionList.vue +1 -1
  54. package/src/components/webmeter/newwebmeter/NewException/NewExceptionEcharsTotal.vue +566 -753
  55. package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +2 -6
  56. package/src/components/webmeter/newwebmeter/UserGasEchartsList.vue +3 -10
  57. package/src/components/webmeter/newwebmeter/UserGasList.vue +10 -12
  58. package/src/components/webmeter/newwebmeter/UserInstructList.vue +1 -1
  59. package/src/components/webmeter/newwebmeter/signAnalysisEcharts.vue +18 -26
  60. package/src/components/webmeter/newwebmeter/signAnalysisEform.vue +1 -1
  61. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +14 -15
  62. package/src/components/webmeter/report/ReportList.vue +1 -1
  63. package/src/filiale/WEINAN/MeterQuery.vue +1 -1
  64. package/src/filiale/WEINAN/RecordInfoQuery.vue +1 -1
  65. package/src/filiale/WEINAN/manage/ChangeMeterQuery.vue +1 -1
  66. package/src/filiale/gongyi/sale/businessquery/BusinessManage.vue +19 -19
  67. package/src/filiale/gongyi/sale/businessquery/ChangeMeterQuery.vue +0 -11
  68. package/src/filiale/gongyi/sale/filesquery/UserQuery.vue +0 -17
  69. package/src/filiale/jingwei/RecordInfoQuery.vue +1 -1
  70. package/src/filiale/jingzhou/ChargeQuery.vue +5 -15
  71. package/src/filiale/jingzhou/HandplanQuery.vue +1 -1
  72. package/src/filiale/jingzhou/config/exportConfig.js +13 -17
  73. package/src/filiale/liaoyuan/RecordInfoQuery.vue +14 -55
  74. package/src/filiale/liaoyuan/ReportList.vue +1 -1
  75. package/src/filiale/macheng/MeterQuery.vue +1 -1
  76. package/src/filiale/meihekou/CardHandplanQuery.vue +1 -1
  77. package/src/filiale/meihekou/ChargeQuery.vue +4 -4
  78. package/src/filiale/meihekou/HandplanQuery.vue +1 -1
  79. package/src/filiale/meihekou/RecordInfoQuery.vue +21 -3
  80. package/src/filiale/meihekou/sale.js +1 -5
  81. package/src/filiale/pingxiang/ChangeUserQuery.vue +1 -1
  82. package/src/filiale/shaoguan/HandplanQuery.vue +1 -1
  83. package/src/filiale/shaoguan/errorHandplanQuery.vue +1 -1
  84. package/src/filiale/shaoguan/overDueQuery.vue +1 -1
  85. package/src/filiale/shaoguan/sale/businessquery/ChangeUserQuery.vue +1 -1
  86. package/src/main.js +2 -2
  87. package/src/newmanage.js +3 -37
  88. package/src/reportManage.js +4 -0
  89. package/src/saleManage.js +0 -9
  90. package/src/components/daping/BarChart.vue +0 -256
  91. package/src/components/daping/BarChartLine.vue +0 -284
  92. package/src/components/daping/CallCenter.vue +0 -369
  93. package/src/components/daping/DataManagement.vue +0 -697
  94. package/src/components/daping/DataManagement1.vue +0 -345
  95. package/src/components/daping/DataStatistics.vue +0 -241
  96. package/src/components/daping/ExpireMeter.vue +0 -272
  97. package/src/components/daping/GMap.vue +0 -636
  98. package/src/components/daping/ManageMain.vue +0 -255
  99. package/src/components/daping/Pie.vue +0 -171
  100. package/src/components/daping/ResidentsSecurity.vue +0 -132
  101. package/src/components/daping/Ring.vue +0 -227
  102. package/src/components/daping/SafeCheckRing.vue +0 -160
  103. package/src/components/daping/SafecheckBarChart.vue +0 -294
  104. package/src/components/daping/Scada.vue +0 -198
  105. package/src/components/daping/SellBarEcharts.vue +0 -220
  106. package/src/components/daping/SellEcharts.vue +0 -219
  107. package/src/components/daping/Style/qinhuaStyle.less +0 -224
  108. package/src/components/daping/Style//346/261/211/344/273/252/350/217/261/345/277/203/344/275/223/347/256/200.ttf +0 -0
  109. package/src/components/daping/XianMap.vue +0 -275
  110. package/src/components/daping/js/AMap.js +0 -19
  111. package/src/components/daping/js/BMap.js +0 -13
  112. package/src/components/daping/json/mapStyle.json +0 -1299
  113. package/src/components/daping/json/xian.json +0 -1
  114. package/src/components/daping/qinHuaMap.vue +0 -338
  115. package/src/components/sale/businessquery/PriceChange.vue +0 -411
  116. package/src/components/sale/businessquery/iotStateSearch/iotStateQuery.vue +0 -334
  117. package/src/components/sale/filesquery/PriceChangeQuery.vue +0 -357
  118. package/src/filiale/meihekou/OtherChargeDetailQuery.vue +0 -74
  119. package/src/filiale/meihekou/OtherChargeQuery.vue +0 -613
  120. package/src/filiale/meihekou/UserGasEform.vue +0 -267
  121. package/src/filiale/rongchuang/SellingTable.vue +0 -250
  122. package/src/filiale/rongchuang/reportManage.js +0 -11
  123. package/src/filiale/tongchuan/UserQuery.vue +0 -846
  124. package/src/filiale/tongchuan/config/DefaultPrint.js +0 -6
  125. package/src/filiale/tongchuan/config/exportConfig.js +0 -857
  126. package/src/filiale/tongchuan/sale.js +0 -11
  127. package/src/filiale/zhoukou/CardHandplanQuery.vue +0 -450
  128. package/src/filiale/zhoukou/sale.js +0 -11
  129. package/src/plugins/transformer.js +0 -117
  130. package/static/NewManageHome/NewManageHome/01.png +0 -0
  131. package/static/NewManageHome/NewManageHome/02.png +0 -0
  132. package/static/NewManageHome/NewManageHome/03.png +0 -0
  133. package/static/NewManageHome/NewManageHome/04.png +0 -0
  134. package/static/NewManageHome/NewManageHome/1.gif +0 -0
  135. package/static/NewManageHome/NewManageHome/2.gif +0 -0
  136. package/static/NewManageHome/NewManageHome/3.gif +0 -0
  137. package/static/NewManageHome/NewManageHome/5gif.gif +0 -0
  138. package/static/NewManageHome/NewManageHome/6gif.gif +0 -0
  139. package/static/NewManageHome/NewManageHome/7.gif +0 -0
  140. package/static/NewManageHome/NewManageHome/8.gif +0 -0
  141. package/static/NewManageHome/NewManageHome/9.gif +0 -0
  142. package/static/NewManageHome/NewManageHome/background_qinhua.png +0 -0
  143. package/static/NewManageHome/NewManageHome/green.png +0 -0
  144. package/static/NewManageHome/NewManageHome/map.png +0 -0
  145. package/static/NewManageHome/NewManageHome/map1.png +0 -0
  146. package/static/NewManageHome/NewManageHome/mpa.png +0 -0
  147. package/static/NewManageHome/NewManageHome/sell_1.png +0 -0
  148. package/static/NewManageHome/NewManageHome/sell_2.png +0 -0
  149. package/static/NewManageHome/NewManageHome/title.png +0 -0
  150. package/static/NewManageHome/NewManageHome/title_left.png +0 -0
  151. package/static/NewManageHome/NewManageHome/title_right.png +0 -0
  152. package/static/NewManageHome/NewManageHome//345/210/206/345/205/254/345/217/270/345/271/264/345/272/246/350/264/255/350/277/233/351/207/217.png +0 -0
  153. package/static/NewManageHome/NewManageHome//345/212/240/350/275/275.gif +0 -0
  154. package/static/NewManageHome/NewManageHome//345/212/250/346/225/210.gif +0 -0
  155. package/static/NewManageHome/NewManageHome//345/215/203/351/230/263/345/216/2771.png +0 -0
  156. package/static/NewManageHome/NewManageHome//345/215/203/351/230/263/345/216/2772.png +0 -0
  157. package/static/NewManageHome/NewManageHome//345/215/242/346/260/217/345/216/2771.png +0 -0
  158. package/static/NewManageHome/NewManageHome//345/215/242/346/260/217/345/216/2772.png +0 -0
  159. package/static/NewManageHome/NewManageHome//345/217/263/344/270/212.png +0 -0
  160. package/static/NewManageHome/NewManageHome//345/217/263/344/270/213.png +0 -0
  161. package/static/NewManageHome/NewManageHome//345/233/272/345/256/232/350/265/204/344/272/247.png +0 -0
  162. package/static/NewManageHome/NewManageHome//345/233/276/345/261/2020.png +0 -0
  163. package/static/NewManageHome/NewManageHome//345/233/276/345/261/20212.png +0 -0
  164. package/static/NewManageHome/NewManageHome//345/233/276/345/261/2024.png +0 -0
  165. package/static/NewManageHome/NewManageHome//345/233/276/345/261/2025.png +0 -0
  166. package/static/NewManageHome/NewManageHome//345/233/276/345/261/202527.png +0 -0
  167. package/static/NewManageHome/NewManageHome//345/234/206/350/247/222/347/237/251/345/275/2421163.png +0 -0
  168. package/static/NewManageHome/NewManageHome//345/237/216/344/270/2341.png +0 -0
  169. package/static/NewManageHome/NewManageHome//345/237/216/344/270/2342.png +0 -0
  170. package/static/NewManageHome/NewManageHome//345/237/216/345/214/2271.png +0 -0
  171. package/static/NewManageHome/NewManageHome//345/237/216/345/214/2272.png +0 -0
  172. package/static/NewManageHome/NewManageHome//345/237/216/345/215/2271.png +0 -0
  173. package/static/NewManageHome/NewManageHome//345/237/216/345/215/2272.png +0 -0
  174. package/static/NewManageHome/NewManageHome//345/237/216/350/245/2771.png +0 -0
  175. package/static/NewManageHome/NewManageHome//345/237/216/350/245/2772.png +0 -0
  176. package/static/NewManageHome/NewManageHome//345/267/246/344/270/212.png +0 -0
  177. package/static/NewManageHome/NewManageHome//345/267/246/344/270/213.png +0 -0
  178. package/static/NewManageHome/NewManageHome//345/271/263/345/210/251/345/216/2771.png +0 -0
  179. package/static/NewManageHome/NewManageHome//345/271/263/345/210/251/345/216/2772.png +0 -0
  180. package/static/NewManageHome/NewManageHome//346/200/273/345/205/254/345/217/270/351/224/200/345/224/256/350/266/213/345/212/277.png +0 -0
  181. package/static/NewManageHome/NewManageHome//347/224/250/346/210/267.png +0 -0
  182. package/static/NewManageHome/NewManageHome//347/237/251/345/275/2421173/346/213/267/350/264/235.png +0 -0
  183. package/static/NewManageHome/NewManageHome//347/237/251/345/275/2421186.png +0 -0
  184. package/static/NewManageHome/NewManageHome//347/237/251/345/275/2421186/346/213/267/350/264/235.png +0 -0
  185. package/static/NewManageHome/NewManageHome//347/237/251/345/275/24211/346/213/267/350/264/2353.png +0 -0
  186. package/static/NewManageHome/NewManageHome//347/237/251/345/275/24211/346/213/267/350/264/2356.png +0 -0
  187. package/static/NewManageHome/NewManageHome//347/237/251/345/275/24211/346/213/267/350/264/2357.png +0 -0
  188. package/static/NewManageHome/NewManageHome//347/237/251/345/275/24211/346/213/267/350/264/2359.png +0 -0
  189. package/static/NewManageHome/NewManageHome//347/237/251/345/275/24216/346/213/267/350/264/23511.png +0 -0
  190. package/static/NewManageHome/NewManageHome//347/237/251/345/275/24216/346/213/267/350/264/23516.png +0 -0
  191. package/static/NewManageHome/NewManageHome//347/237/251/345/275/24216/346/213/267/350/264/23522.png +0 -0
  192. package/static/NewManageHome/NewManageHome//347/237/251/345/275/2426/346/213/267/350/264/2353.png +0 -0
  193. package/static/NewManageHome/NewManageHome//347/237/251/345/275/2426/346/213/267/350/264/2354.png +0 -0
  194. package/static/NewManageHome/NewManageHome//347/273/20420.png +0 -0
  195. package/static/NewManageHome/NewManageHome//347/273/20437.png +0 -0
  196. package/static/NewManageHome/NewManageHome//347/273/20443.png +0 -0
  197. package/static/NewManageHome/NewManageHome//347/273/20445.png +0 -0
  198. package/static/NewManageHome/NewManageHome//350/203/214/346/231/2571.png +0 -0
  199. package/static/NewManageHome/NewManageHome//350/220/245/344/270/232/346/224/266/345/205/245.png +0 -0
  200. package/static/NewManageHome/NewManageHome//351/224/200/345/224/256/346/260/224/351/207/217.png +0 -0
  201. package/static/NewManageHome/green.png +0 -0
  202. package/static/NewManageHome/title.png +0 -0
  203. package/static/NewManageHome//345/233/276/345/261/202527.png +0 -0
  204. package/static/NewManageHome//347/237/251/345/275/2426/346/213/267/350/264/2353.png +0 -0
  205. package/static/NewManageHome//347/237/251/345/275/2426/346/213/267/350/264/2354.png +0 -0
  206. package/static/NewManageHome//347/273/20443.png +0 -0
  207. package/static/NewManageHome//347/273/20445.png +0 -0
  208. package/static/newStyle/position.png +0 -0
@@ -112,136 +112,136 @@
112
112
  </template>
113
113
 
114
114
  <script>
115
- import { DataModel } from 'vue-client'
116
- import co from 'co'
117
- let saveFile = function * (self) {
118
- // 线验证文件是否重名
119
- let count = yield self.$resetpost('rs/sql/manageSingleTable',
120
- {data: {tablename: 't_report_record', condition: `f_files_name = '${self.filename}'`}},
121
- {resolveMsg: null, rejectMsg: null})
122
- if (count.data.length > 0) {
123
- self.$showAlert('无法保存,文件名重名', 'warning', 3000)
124
- return
125
- }
126
- let saveBack = yield self.$resetpost('rs/logic/saveReport', {f_files_content: self.$refs.paged.$els.handcollect.innerHTML,
127
- f_files_name: self.filename, f_files_type: self.data.f_report_type, f_component_name: 'manage-bus-summary',
128
- f_operator: this.$login.f.name, f_query_month: `${self.model.model.startDate}-${self.model.model.endDate}`,
129
- f_outlets: this.$login.f.depname})
130
- if (saveBack.data.status === 'succeed') {
131
- self.show = false
132
- self.filename = ''
133
- // 后台保存完成,通知刷新
134
- self.$dispatch('save-success', self.filename)
135
- }
115
+ import { DataModel } from 'vue-client'
116
+ import co from 'co'
117
+ let saveFile = function * (self) {
118
+ // 线验证文件是否重名
119
+ let count = yield self.$resetpost('rs/sql/manageSingleTable',
120
+ {data: {tablename: 't_report_record', condition: `f_files_name = '${self.filename}'`}},
121
+ {resolveMsg: null, rejectMsg: null})
122
+ if (count.data.length > 0) {
123
+ self.$showAlert('无法保存,文件名重名', 'warning', 3000)
124
+ return
136
125
  }
137
- export default {
138
- title: '营业厅售气情况统计表',
139
- props: ['data'],
140
- data () {
141
- return {
142
- printTime: this.$login.toStandardTimeString(),
143
- depresid: [],
144
- userresid: [],
145
- initres: {
146
- org:[this.$login.f.orgid],
147
- dep:[],
148
- user:[]
149
- },
150
- f_orgid: this.$login.f.orgid,
151
- f_depid: this.$login.f.depids,
152
- f_operatorid: this.$login.f.id,
153
- operatorid: [],
154
- depid: [],
155
- orgname: '',
156
- depname: '',
157
- operatorname: '',
158
- orgCondtionStr: '1=1',
159
- model: new DataModel('rs/report/managehandsellmoney', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
160
- f_orgid: 'this.model.f_orgid'}),
161
- reportStr: null,
162
- show: false,
163
- spans: ''
164
- }
126
+ let saveBack = yield self.$resetpost('rs/logic/saveReport', {f_files_content: self.$refs.paged.$els.handcollect.innerHTML,
127
+ f_files_name: self.filename, f_files_type: self.data.f_report_type, f_component_name: 'manage-bus-summary',
128
+ f_operator: this.$login.f.name, f_query_month: `${self.model.model.startDate}-${self.model.model.endDate}`,
129
+ f_outlets: this.$login.f.depname})
130
+ if (saveBack.data.status === 'succeed') {
131
+ self.show = false
132
+ self.filename = ''
133
+ // 后台保存完成,通知刷新
134
+ self.$dispatch('save-success', self.filename)
135
+ }
136
+ }
137
+ export default {
138
+ title: '营业厅售气情况统计表',
139
+ props: ['data'],
140
+ data () {
141
+ return {
142
+ printTime: this.$login.toStandardTimeString(),
143
+ depresid: [],
144
+ userresid: [],
145
+ initres: {
146
+ org:[this.$login.f.orgid],
147
+ dep:[],
148
+ user:[]
149
+ },
150
+ f_orgid: this.$login.f.orgid,
151
+ f_depid: this.$login.f.depids,
152
+ f_operatorid: this.$login.f.id,
153
+ operatorid: [],
154
+ depid: [],
155
+ orgname: '',
156
+ depname: '',
157
+ operatorname: '',
158
+ orgCondtionStr: '1=1',
159
+ model: new DataModel('rs/report/managehandsellmoney', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
160
+ f_orgid: 'this.model.f_orgid'}),
161
+ reportStr: null,
162
+ show: false,
163
+ spans: ''
164
+ }
165
+ },
166
+ ready () {
167
+ this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
168
+ this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
169
+ // this.$refs.paged.$refs.criteria.search()
170
+ },
171
+ methods: {
172
+ searchData () {
173
+ this.$refs.paged.$refs.criteria.search()
165
174
  },
166
- ready () {
167
- this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
168
- this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
169
- // this.$refs.paged.$refs.criteria.search()
175
+ selfSearch (args) {
176
+ this.printTime = this.$login.toStandardTimeString()
177
+ let orgstr = this.orgCondtionStr
178
+ args.condition = `${args.condition} ` + orgstr
179
+ this.$refs.paged.$refs.criteria.model.f_orgid = orgstr
180
+ this.$refs.paged.search(args)
170
181
  },
171
- methods: {
172
- searchData () {
173
- this.$refs.paged.$refs.criteria.search()
174
- },
175
- selfSearch (args) {
176
- this.printTime = this.$login.toStandardTimeString()
177
- let orgstr = this.orgCondtionStr
178
- args.condition = `${args.condition} ` + orgstr
179
- this.$refs.paged.$refs.criteria.model.f_orgid = orgstr
180
- this.$refs.paged.search(args)
181
- },
182
- getRes (condition, obj) {
183
- this.orgCondtionStr = condition
184
- this.orgname = obj.orgnames[0]
185
- this.depname = obj.depnames[0]
186
- },
187
- // getdep (obj, val) {
188
- // // this.depname = val[0]
189
- // this.userresid = obj
190
- // this.f_depid = obj
191
- // },
192
- // getuser ( obj, val) {
193
- // this.operatorname = val[0]
194
- // this.f_operatorid = obj
195
- // },
182
+ getRes (condition, obj) {
183
+ this.orgCondtionStr = condition
184
+ this.orgname = obj.orgnames[0]
185
+ this.depname = obj.depnames[0]
186
+ },
187
+ // getdep (obj, val) {
188
+ // // this.depname = val[0]
189
+ // this.userresid = obj
190
+ // this.f_depid = obj
191
+ // },
192
+ // getuser ( obj, val) {
193
+ // this.operatorname = val[0]
194
+ // this.f_operatorid = obj
195
+ // },
196
196
 
197
- // 根据文件路径获取储存的报表内容
198
- getFileContent (path) {
199
- this.$resetpost('rs/logic/getReportFileContent', {f_files_path: path}, {resolveMsg: null, rejectMsg: null}).then((res) => {
200
- this.reportStr = res.data.filecontent
201
- this.model.state = '正确'
202
- })
203
- },
204
- confirm () {
205
- if (!this.filename || this.filename === '') {
206
- this.$showAlert('无法保存,文件名不能为空', 'warning', 3000)
207
- }
208
- let saveGen = saveFile(this)
209
- co(saveGen)
210
- },
211
- close () {
212
- this.show = false
213
- },
214
- // 将报表保存成文件
215
- confirmReport () {
216
- this.show = true
217
- this.filename = this.data.f_report_name + this.$login.toStandardDateString()
197
+ // 根据文件路径获取储存的报表内容
198
+ getFileContent (path) {
199
+ this.$resetpost('rs/logic/getReportFileContent', {f_files_path: path}, {resolveMsg: null, rejectMsg: null}).then((res) => {
200
+ this.reportStr = res.data.filecontent
201
+ this.model.state = '正确'
202
+ })
203
+ },
204
+ confirm () {
205
+ if (!this.filename || this.filename === '') {
206
+ this.$showAlert('无法保存,文件名不能为空', 'warning', 3000)
218
207
  }
208
+ let saveGen = saveFile(this)
209
+ co(saveGen)
219
210
  },
220
- watch: {
221
- 'data' (val) {
222
- if (val.f_files_path) {
223
- this.getFileContent(val.f_files_path)
224
- } else {
225
- this.reportStr = null
226
- }
227
- },
228
- 'model.data' (val) {
229
- let tab = document.getElementById('test').children[0]
230
- var tds = tab.getElementsByTagName('td')
231
- var num = 0
232
- for (let td of tds) {
233
- let span = td.getAttribute('colspan')
234
- num = num + ((span ? span : 1) - 0)
235
- }
236
- this.spans = num
211
+ close () {
212
+ this.show = false
213
+ },
214
+ // 将报表保存成文件
215
+ confirmReport () {
216
+ this.show = true
217
+ this.filename = this.data.f_report_name + this.$login.toStandardDateString()
218
+ }
219
+ },
220
+ watch: {
221
+ 'data' (val) {
222
+ if (val.f_files_path) {
223
+ this.getFileContent(val.f_files_path)
224
+ } else {
225
+ this.reportStr = null
237
226
  }
238
227
  },
239
- computed: {
228
+ 'model.data' (val) {
229
+ let tab = document.getElementById('test').children[0]
230
+ var tds = tab.getElementsByTagName('td')
231
+ var num = 0
232
+ for (let td of tds) {
233
+ let span = td.getAttribute('colspan')
234
+ num = num + ((span ? span : 1) - 0)
235
+ }
236
+ this.spans = num
240
237
  }
238
+ },
239
+ computed: {
241
240
  }
241
+ }
242
242
  </script>
243
243
  <style scoped>
244
- .noborder{
245
- border: none;
246
- }
244
+ .noborder{
245
+ border: none;
246
+ }
247
247
  </style>
@@ -0,0 +1,235 @@
1
+ <template>
2
+ <div class="basic-main" style="height: 100%">
3
+ <criteria-paged :model="model" :pager='false' v-ref:paged>
4
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:criteria>
5
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial >
6
+ <div class="row">
7
+ <div class="col-sm-2 form-group" >
8
+ <label class="font_normal_body" for="startDate">开始日期:</label>
9
+ <datepicker id="startDate" placeholder="开始日期" style="width: 60%"
10
+ v-model="model.startDate"
11
+ :value.sync="model.startDate"
12
+ :disabled-days-of-Week="[]"
13
+ :format="'yyyy-MM-dd HH:mm:ss'"
14
+ :show-reset-button="reset">
15
+ </datepicker>
16
+ </div>
17
+ <div class="col-sm-2 form-group" >
18
+ <label class="font_normal_body" for="endDate">结束日期:</label>
19
+ <datepicker id="endDate" placeholder="结束日期" style="width: 60%"
20
+ v-model="model.endDate"
21
+ :value.sync="model.endDate"
22
+ :disabled-days-of-Week="[]"
23
+ :format="'yyyy-MM-dd HH:mm:ss'"
24
+ :show-reset-button="reset">
25
+ </datepicker>
26
+ </div>
27
+ <div class="col-sm-2 form-group">
28
+ <label class="font_normal_body" title="分组项一">分组项</label>
29
+ <v-select :value.sync="model.f_public_group1"
30
+ v-model="model.f_public_group1"
31
+ v-ref:groupone
32
+ :options='$parent.$parent.group1' placeholder='请选择'
33
+ close-on-select></v-select>
34
+ </div>
35
+ <div class="col-sm-2 form-group">
36
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;公司&nbsp;&nbsp;&nbsp;</label>
37
+ <right-tree @re-res="$parent.$parent.getRes"></right-tree>
38
+ </div>
39
+ <div class="col-sm-2 form-group">
40
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;部门&nbsp;&nbsp;&nbsp; </label>
41
+ <res-select restype='department'
42
+ @res-select="$parent.$parent.getdep"
43
+ :parentresid ="$parent.$parent.depresid"
44
+ :initresid='$parent.$parent.depid'>
45
+ </res-select>
46
+
47
+ </div>
48
+ <div class="col-sm-2 form-group">
49
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;人员&nbsp;&nbsp;&nbsp; </label>
50
+ <res-select restype='user'
51
+ @res-select="$parent.$parent.getuser"
52
+ :parentresid="$parent.$parent.userresid"
53
+ :initresid='$parent.$parent.operatorid'>
54
+ </res-select>
55
+ </div>
56
+
57
+ <div style = "float:right;">
58
+ <button class="button_search" @click="$parent.$parent.searchData()">查询</button>
59
+ <report-print id='gasprice' top='3cm' left='0' width='100%' height='100%' :preview="true"></report-print>
60
+ <report-excel id='gasprice'></report-excel>
61
+ </div>
62
+ </div>
63
+ </div>
64
+ </criteria>
65
+ <div partial='list' v-el:handcollect id='gasprice' style="overflow-y: scroll">
66
+ <table class='tableprint' style="margin: 0px auto" v-if="!$parent.data.f_files_path">
67
+ <thead>
68
+ <tr>
69
+ <th colspan='8' style="font-weight: bold; text-align: left;">
70
+ <h3 style="text-align: center">机表抄表分项报表</h3>
71
+ </th>
72
+ </tr>
73
+ <tr>
74
+ <th colspan='8' style="font-weight: normal; text-align: center;">
75
+ 开始时间:{{model.model.startDate}}&nbsp;&nbsp;&nbsp;
76
+ 结束时间:{{ model.model.endDate }}&nbsp;&nbsp;
77
+ </th>
78
+ </tr>
79
+ <tr>
80
+ <th colspan='8' style="font-weight: normal; text-align: center;">
81
+ 打印时间:{{{$parent.printTime}}}
82
+ </th>
83
+ </tr>
84
+ <tr>
85
+ <th colspan='8' style="font-weight: normal; text-align: center;">
86
+ <div>
87
+ <span v-show="$parent.orgname.trim()!=''">公司:{{$parent.orgname}}</span>
88
+ <span v-show="$parent.depname.trim()!=''"> 部门:{{$parent.depname}}</span>
89
+ </div>
90
+ </th>
91
+ </tr>
92
+ </thead>
93
+ <tr>
94
+ <td colspan='8' style="font-weight: normal;" id="test">
95
+ {{{ model.data.substring(26,model.data.length-8) }}}
96
+ </td>
97
+ </tr>
98
+ <tfoot>
99
+ <tr style="text-align: left">
100
+ <th colspan='3' style="font-weight: normal; text-align: center;">
101
+ 收款人:
102
+ </th><th colspan='3' style="font-weight: normal; text-align: center;">
103
+ 审核人:
104
+ </th><th colspan='2' style="font-weight: normal; text-align: center;">
105
+ 经手人:
106
+ </th>
107
+ </tr>
108
+ </tfoot>
109
+ </table>
110
+ {{{ $parent.reportStr}}}
111
+ </div>
112
+ </criteria-paged>
113
+ </div>
114
+ </template>
115
+
116
+ <script>
117
+ import { DataModel } from 'vue-client'
118
+ import co from 'co'
119
+ export default {
120
+ title: '机表抄表分项报表',
121
+ props: ['data'],
122
+ data () {
123
+ return {
124
+ printTime: this.$login.toStandardTimeString(),
125
+ depresid: [],
126
+ userresid: [],
127
+ initres: {
128
+ org:[this.$login.f.orgid],
129
+ dep:[],
130
+ user:[]
131
+ },
132
+ f_public_group1: '',
133
+ f_orgid: this.$login.f.orgid,
134
+ f_depid: this.$login.f.depids,
135
+ f_operatorid: this.$login.f.id,
136
+ operatorid: [],
137
+ depid: [],
138
+ orgname: '',
139
+ group1Name: '',
140
+ depname: '',
141
+ operatorname: '',
142
+ orgCondtionStr: '1=1',
143
+ model: new DataModel('rs/report/GeneraHandReport',
144
+ {startDate: 'this.model.startDate',
145
+ endDate: 'this.model.endDate',
146
+ f_orgid: 'this.model.f_orgid',
147
+ f_public_group1: 'this.model.f_public_group1[0]',
148
+ group1Name: 'this.model.group1Name'
149
+ }
150
+ ),
151
+ reportStr: null,
152
+ show: false,
153
+ spans: ''
154
+ }
155
+ },
156
+ ready () {
157
+ this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
158
+ this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
159
+ // this.$refs.paged.$refs.criteria.search()
160
+ },
161
+ methods: {
162
+ searchData () {
163
+ this.$refs.paged.$refs.criteria.search()
164
+ },
165
+ selfSearch (args) {
166
+ this.printTime = this.$login.toStandardTimeString()
167
+ this.$refs.paged.$refs.criteria.model.group1Name = this.$refs.paged.$refs.criteria.$refs.groupone.selectedItems
168
+ let orgcondition = '1 = 1'
169
+ if (this.f_orgid[0]) {
170
+ orgcondition += ' and f_orgid in ( ' + this.f_orgid + ')'
171
+ }
172
+ if (this.f_depid[0]) {
173
+ orgcondition += ' and f_depid in ( ' + this.f_depid + ')'
174
+ }
175
+ if (this.f_operatorid[0]) {
176
+ orgcondition += ' and f_operatorid in ( ' + this.f_operatorid + ')'
177
+ }
178
+ let name1 = args.model.f_public_group1
179
+ if (name1 == null || name1 == '') {
180
+ this.$showMessage('请选择分组项!')
181
+ return
182
+ }
183
+ console.log(args.model.f_public_group1)
184
+ this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
185
+ this.$refs.paged.search(args)
186
+ },
187
+ getRes (obj) {
188
+ this.orgname = obj.res[0]
189
+ this.depresid = obj.resids
190
+ this.f_orgid = obj.resids
191
+ },
192
+ getdep (obj, val) {
193
+ this.depname = val[0]
194
+ this.userresid = obj
195
+ this.f_depid = obj
196
+ },
197
+ getuser ( obj, val) {
198
+ this.operatorname = val[0]
199
+ this.f_operatorid = obj
200
+ }
201
+ },
202
+ watch: {
203
+ 'data' (val) {
204
+ if (val.f_files_path) {
205
+ this.getFileContent(val.f_files_path)
206
+ } else {
207
+ this.reportStr = null
208
+ }
209
+ },
210
+ 'model.data' (val) {
211
+ let tab = document.getElementById('test').children[0]
212
+ var tds = tab.getElementsByTagName('td')
213
+ var num = 0
214
+ for (let td of tds) {
215
+ let span = td.getAttribute('colspan')
216
+ num = num + ((span ? span : 1) - 0)
217
+ }
218
+ this.spans = num
219
+ }
220
+ },
221
+ computed: {
222
+ group1 () {
223
+ return [{label: '用户类型', value: 'f_user_type'},
224
+ {label: '用气性质', value: 'f_gasproperties'},
225
+ {label: '抄表员', value: 'f_inputtor'},
226
+ {label: '营业网点', value: 'f_depname'}]
227
+ }
228
+ }
229
+ }
230
+ </script>
231
+ <style scoped>
232
+ .noborder{
233
+ border: none;
234
+ }
235
+ </style>