manage-client 4.0.21 → 4.0.23

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 (39) hide show
  1. package/.gradle/8.5/checksums/checksums.lock +0 -0
  2. package/.gradle/8.5/dependencies-accessors/dependencies-accessors.lock +0 -0
  3. package/.gradle/8.5/dependencies-accessors/gc.properties +0 -0
  4. package/.gradle/8.5/executionHistory/executionHistory.bin +0 -0
  5. package/.gradle/8.5/executionHistory/executionHistory.lock +0 -0
  6. package/.gradle/8.5/fileChanges/last-build.bin +0 -0
  7. package/.gradle/8.5/fileHashes/fileHashes.bin +0 -0
  8. package/.gradle/8.5/fileHashes/fileHashes.lock +0 -0
  9. package/.gradle/8.5/gc.properties +0 -0
  10. package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  11. package/.gradle/buildOutputCleanup/cache.properties +2 -0
  12. package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  13. package/.gradle/file-system.probe +0 -0
  14. package/.gradle/vcs-1/gc.properties +0 -0
  15. package/package.json +1 -1
  16. package/src/filiale/fugou/WebHandplanQuery.vue +1016 -0
  17. package/src/filiale/fugou/sale.js +4 -0
  18. package/src/filiale/tongchuan/ChangeMeterQuery.vue +702 -0
  19. package/src/filiale/tongchuan/ChangeUserQuery.vue +395 -0
  20. package/src/filiale/tongchuan/ChargeQuery.vue +7 -4
  21. package/src/filiale/tongchuan/DeviceQuery.vue +4 -2
  22. package/src/filiale/tongchuan/DisableQuery.vue +523 -0
  23. package/src/filiale/tongchuan/FillCardQuery.vue +573 -0
  24. package/src/filiale/tongchuan/FillGasQuery.vue +2 -2
  25. package/src/filiale/tongchuan/FmyGasDeviceQuery.vue +870 -0
  26. package/src/filiale/tongchuan/GasDeviceQuery.vue +982 -0
  27. package/src/filiale/tongchuan/HandplanQuery.vue +2 -1
  28. package/src/filiale/tongchuan/PriceChangeQuery.vue +6 -3
  29. package/src/filiale/tongchuan/ReverseQuery.vue +450 -0
  30. package/src/filiale/tongchuan/UserDeviceQuery.vue +4 -2
  31. package/src/filiale/tongchuan/UserQuery.vue +2 -1
  32. package/src/filiale/tongchuan/gasPriceQuery.vue +381 -0
  33. package/src/filiale/tongchuan/sale.js +36 -1
  34. package/src/filiale/tongchuan/sellingChargePrice.vue +714 -0
  35. package/src/filiale/yangchun/UserQuery.vue +26 -0
  36. package/src/filiale/yangchun/config/exportConfig.js +2 -1
  37. package/src/filiale/jinbin/exportConfig.js +0 -1110
  38. package/src/filiale/jinbin/sale/businessquery/ChargeQuery.vue +0 -1372
  39. package/src/filiale/jinbin/sale.js +0 -7
@@ -0,0 +1,381 @@
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main" @keyup.enter="search">
4
+ <div class="flex" >
5
+ <criteria-paged :model="model" v-ref:paged @sort="sort">
6
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
7
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
8
+ <div class="row">
9
+ <div class="col-sm-2 form-group">
10
+ <label class="font_normal_body" >气价名称</label>
11
+ <v-select :value.sync="model.f_price_name" v-model='model.f_price_name'
12
+ :options='$parent.$parent.priceNames' multiple
13
+ condition="f_price_name in {}" @change="$parent.$parent.selectPrice()"
14
+ close-on-select style="width:60%"
15
+ v-el:cc></v-select>
16
+ </div>
17
+ <div class="col-sm-2 form-group">
18
+ <label class="font_normal_body" >单&emsp;&emsp;价</label>
19
+ <v-select :value.sync="model.f_price" v-model='model.f_price'
20
+ :options='$parent.$parent.pricesAll'
21
+ condition="detailvalue like '%{}%'"
22
+ close-on-select style="width:60%"
23
+ v-el:cc></v-select>
24
+ </div>
25
+ <div class="col-sm-2 form-group">
26
+ <label class="font_normal_body">气价类型</label>
27
+ <v-select :value.sync="model.pricetype" v-model="model.pricetype"
28
+ @change="$parent.$parent.pricetypechanged"
29
+ placeholder='气价类型' :options="$parent.$parent.pricetypes"
30
+ close-on-select v-ref:type>
31
+ </v-select>
32
+ </div>
33
+ <div class="span" style="float:right;">
34
+ <button class="button_search button_spacing" @click="search()">查询</button>
35
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
36
+ <export-excel :data="$parent.$parent.getCondition"
37
+ :field="$parent.$parent.getfield"
38
+ :header="$parent.$parent.other"
39
+ sqlurl="api/af-revenue/logic/openapi/exportfile" sql-name="gasPriceQuery" template-name='气价信息导出'
40
+ :choose-col="true"></export-excel>
41
+ <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
42
+ :defaultfield="$parent.$parent.defaultfield" titletable="气价信息"
43
+ :sumsmodel="$parent.$parent.sumsmodel"></print-data>
44
+ <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.criteriaShow=!$parent.$parent.criteriaShow"></div>
45
+ </div>
46
+ </div>
47
+ <div class="row" v-show="$parent.$parent.criteriaShow">
48
+ <div class="col-sm-2 form-group">
49
+ <label class="font_normal_body">客户类型</label>
50
+ <v-select :value.sync="model.f_user_type"
51
+ @change="$parent.$parent.userTypeChange1()"
52
+ :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
53
+ condition="f_user_type = '{}'"
54
+ close-on-select></v-select>
55
+ </div>
56
+ <div class="col-sm-2 form-group">
57
+ <label class="font_normal_body">用气性质</label>
58
+ <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
59
+ :options='$parent.$parent.gasproperties1' placeholder='请选择'
60
+ condition="f_gasproperties = '{}'"
61
+ close-on-select></v-select>
62
+ </div>
63
+ <div class="col-sm-2 form-group">
64
+ <label class="font_normal_body">是否启用</label>
65
+ <v-select :value.sync="model.price_state" v-model='model.price_state'
66
+ :options='$parent.$parent.pricestate'
67
+ condition="price_state = '{}'"
68
+ close-on-select style="width:60%" :value-single="true"
69
+ v-el:cc></v-select>
70
+ </div>
71
+ <div class="col-sm-2 form-group">
72
+ <label class="font_normal_body" :title="'参数名为:气价状态'">气价状态</label>
73
+ <v-select :value.sync="model.f_state" v-model='model.f_state'
74
+ :options='$parent.$parent.stateprice' placeholder='气价状态'
75
+ condition="f_state = '{}'"
76
+ close-on-select style="width:60%" :value-single="true"
77
+ v-el:cc></v-select>
78
+ </div>
79
+ <res-select-group :show-component="$parent.$parent.resshow" :selectin="true" :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
80
+ </div>
81
+ </div>
82
+ </criteria>
83
+ <data-grid :model="model" class="table_sy" partial='list' v-ref:grid>
84
+ <template partial='head'>
85
+ <th>
86
+ <!--<nobr>气价编号</nobr>-->
87
+ <data-order field="f_price_id" name="气价编号" :order.sync="$parent.$parent.$parent.orderFields.f_price_id"></data-order>
88
+ </th>
89
+ <th><nobr>气价类型</nobr></th>
90
+ <th><nobr>气价名称</nobr></th>
91
+ <th><nobr>用户类型</nobr></th>
92
+ <th><nobr>用气性质</nobr></th>
93
+ <th><nobr>阶段月数</nobr></th>
94
+ <th>
95
+ <!--<nobr>执行日期</nobr>-->
96
+ <data-order field="f_perform_date" name="执行日期" :order.sync="$parent.$parent.$parent.orderFields.f_perform_date"></data-order>
97
+ </th>
98
+ <th>
99
+ <!--<nobr>截止日期</nobr>-->
100
+ <data-order field="f_end_date" name="截止日期" :order.sync="$parent.$parent.$parent.orderFields.f_end_date"></data-order>
101
+ </th>
102
+ <th><nobr>版本号</nobr></th>
103
+ <th><nobr>状态</nobr></th>
104
+ <th><nobr>气价信息</nobr></th>
105
+ </template>
106
+ <template partial='body'>
107
+ <td style="text-align:center">{{row.f_price_id}}</td>
108
+ <td style="text-align:center">{{row.f_price_type }}</td>
109
+ <td style="text-align:center">{{row.f_price_name}}</td>
110
+ <td style="text-align:center">{{row.f_user_type}}</td>
111
+ <td style="text-align:center">{{row.f_gasproperties}}</td>
112
+ <td style="text-align:center">{{row.f_stairmonths}}</td>
113
+ <td style="text-align:center">{{row.f_perform_date}}</td>
114
+ <td style="text-align:center;white-space: nowrap;">{{row.f_end_date}}</td>
115
+ <td style="text-align:center">{{row.f_version}}</td>
116
+ <td style="text-align:center">{{row.f_state}}</td>
117
+ <td style="text-align:center;white-space: nowrap;">{{row.detailvalue}}</td>
118
+ </template>
119
+ <template partial='foot'></template>
120
+ </data-grid>
121
+ </criteria-paged>
122
+ <table class="table-hover">
123
+ <tr style="position: relative" class="table-bordered">
124
+ <td
125
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
126
+ 汇总信息
127
+ </td>
128
+ </tr>
129
+ </table>
130
+ </div>
131
+ </div>
132
+ </div>
133
+ </template>
134
+
135
+ <script>
136
+ import {PagedList} from 'vue-client'
137
+ import defaultPrint from '../../components/sale/config/DefaultPrint'
138
+ import exportConfig from '../../components/sale/config/exportConfig'
139
+
140
+ let readySomething = async function (self) {
141
+ self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
142
+ self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
143
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
144
+ await self.$MagLoadParams.loadParam()
145
+ self.getPricenames()
146
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
147
+ }
148
+ export default {
149
+ props:['data'],
150
+ title: '业务查询',
151
+ data() {
152
+ return {
153
+ data: {},
154
+ other: [],
155
+ footer: [],
156
+ model: new PagedList('api/af-revenue/sql/gasPriceQuery', 20, {orderitem: this.orderitem?'"' + this.orderitem + ' "':`'f_price_id desc'`} ),
157
+ criteriaShow: false,
158
+ bodyData: ["f_userinfo_code", "f_user_name", "f_orgname", "f_depname", "f_operator"],
159
+ orgCondtionStr: '',
160
+ show:false,
161
+ rowdata:{},
162
+ modelval: [],
163
+ printshow: false,
164
+ all: false,
165
+ fields: {},
166
+ //排序
167
+ orderitem:'f_price_id desc',
168
+ orderFields: {
169
+ f_price_id: 'no'
170
+ },
171
+ thead: '',
172
+ tfoot: '',
173
+ defaultfield: [],
174
+ resshow:['company'],
175
+ initres: {
176
+ org:[this.$login.f.orgid],
177
+ dep:[],
178
+ user:[]
179
+ },
180
+ gasproperties1:[],
181
+ f_filialeid: this.$login.f.orgid,
182
+ priceNames: [],
183
+ config: {
184
+ defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_meternumber']
185
+ },
186
+ pricestate:[{label:'未启用',value:'未启用'},{label:'已启用',value:'已启用'}],
187
+ pricesSum:[],
188
+ pricesAll:[{label: '全部', value: ''}],
189
+ //合计数据
190
+ sumsmodel: {},
191
+ stateprice: this.$appdata.getParam('气价状态') ? [{label: '全部',value: ''}, ...this.$appdata.getParam('气价状态')] : [],
192
+ }
193
+ },
194
+ ready() {
195
+ readySomething(this).then(() => {
196
+ this.$emit('ready')
197
+ }).catch((error) => {
198
+ this.$emit('error', error)
199
+ })
200
+ },
201
+ methods: {
202
+ getPricenames() {
203
+ this.priceNames = []
204
+ let priceArr = []
205
+ debugger
206
+ this.$MagGetSaleParam.prices.forEach((item) => {
207
+ console.log('111111111',item);
208
+ this.pricesSum.push(item)
209
+ let temp = {}
210
+ temp.label = item.f_price_name
211
+ temp.value = item.f_price_name
212
+ priceArr.push(temp)
213
+ })
214
+ this.priceNames = [{label: '全部', value: ''}, ...priceArr]
215
+ },
216
+ selectPrice(){
217
+ this.pricesAll=[{label: '全部', value: ''}]
218
+ this.$refs.paged.$refs.cri.model.f_price=''
219
+ this.pricesSum.forEach((item)=>{
220
+ if(this.$refs.paged.$refs.cri.model.f_price_name==item.f_price_name){
221
+ item.detailprice.forEach((item)=>{
222
+ let temp={}
223
+ temp.label=item.f_price
224
+ temp.value=item.f_price
225
+ this.pricesAll.push(temp)
226
+ })
227
+ }
228
+ })
229
+ },
230
+ pricetypechanged(){
231
+ this.$refs.paged.$refs.cri.model.f_price_name = []
232
+ },
233
+ userTypeChange1 () {
234
+ this.gasproperties1 = []
235
+ if (this.$refs.paged.$refs.cri.model !== null) {
236
+ this.$refs.paged.$refs.cri.model.f_gasproperties1 = ''
237
+ this.gasproperties1 = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
238
+ } else {
239
+ this.gasproperties1 = [{label: '全部', value: ''}]
240
+ }
241
+ },
242
+ getotherfooter() {
243
+ this.other = [];
244
+ this.footer = [];
245
+ let exportdata = this.getCondition;
246
+ let otherInData = [];
247
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
248
+ let footerData = [], exportfield = this.getfield;
249
+ footerData.push("合计");
250
+ let self = this;
251
+ for (var field in self.sumsmodel) {
252
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
253
+ }
254
+ this.footer.push(footerData);
255
+ this.other.push(otherInData);
256
+ },
257
+ search(){
258
+ this.$refs.paged.$refs.cri.search()
259
+ },
260
+ selfSearch(args) {
261
+ console.log(this.$refs.paged.$refs.cri.model.price_state)
262
+ if(this.$refs.paged.$refs.cri.model.price_state){
263
+ args.condition = `${args.condition} ` + this.orgCondtionStr
264
+ }
265
+ args.condition = `${args.condition}` + this.orgCondtionStr
266
+ this.model.search(args.condition, args.model)
267
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
268
+ },
269
+ clear() {
270
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
271
+ this.$refs.paged.$refs.cri.model[key] = []
272
+ })
273
+ },
274
+ getRes(condition,obj) {
275
+ this.orgCondtionStr = condition
276
+ this.orgname = obj.orgnames[0]
277
+ this.depname = obj.depnames[0]
278
+
279
+ },
280
+ stamp() {
281
+ this.all = false
282
+ //默认选择要打印的列
283
+ this.modelval = defaultPrint.config
284
+ this.fields = this.getfield
285
+ console.log('所有打印字段', this.fields)
286
+ this.printshow = true
287
+ this.put()
288
+ },
289
+ put() {
290
+ // 对Modelval进行排序
291
+ this.sortModelval()
292
+ this.thead = `<tr><th colspan=${this.modelval.length}>启用查询报表</th></tr><tr>`
293
+ for (let key of this.modelval) {
294
+ this.thead += '<th>' + this.fields[key] + '</th>'
295
+ }
296
+ this.thead += '</tr>'
297
+ },
298
+ cancel() {
299
+ this.show = false
300
+ },
301
+ dealmsg(val) {
302
+ console.log('---------------dealmsg')
303
+ this.rowdata=val
304
+ this.show=true
305
+ val.model = this.model.model
306
+ this.$dispatch('deal-msg', val)
307
+ },
308
+ print() {
309
+ this.$refs.print.PrintAsFile()
310
+ this.printshow = false
311
+ },
312
+ close() {
313
+ this.printshow = false
314
+ this.all = false
315
+ },
316
+ // 对选择的列进行排序
317
+ sortModelval() {
318
+ let sortModel = []
319
+ Object.keys(this.fields).forEach((key) => {
320
+ if (this.modelval.includes(key)) {
321
+ sortModel.push(key)
322
+ }
323
+ })
324
+ this.modelval = sortModel
325
+ console.log('选择的打印的字段', this.modelval)
326
+ },
327
+ sort (field, rule) {
328
+ // 将所有排序方式设为不排序,实现相互排斥
329
+ for (let key in this.orderFields) {
330
+ if (key === field) {
331
+ this.orderFields[key] = rule
332
+ } else {
333
+ this.orderFields[key] = 'no'
334
+ }
335
+ }
336
+ // 如果新规则不排序,还原为默认排序
337
+ if (rule === 'no') {
338
+ this.model.paramSource.orderitem = `'${this.orderitem}'`
339
+ } else {
340
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
341
+ }
342
+
343
+ this.search()
344
+ }
345
+ },
346
+ watch: {
347
+ 'all'(val) {
348
+ if (val) {
349
+ this.modelval = this.bodyData
350
+ } else {
351
+ this.modelval = defaultPrint.config
352
+ this.put()
353
+ }
354
+ },
355
+ sumsmodel: {
356
+ handler: function (val) {
357
+ this.getotherfooter();
358
+ },
359
+ deep: true
360
+ },
361
+ 'modelval.length'() {
362
+ this.put()
363
+ },
364
+ },
365
+ computed: {
366
+ getCondition() {
367
+ return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,orderitem:this.orderitem}
368
+ },
369
+ getfield() {
370
+ console.log('export',exportConfig.gasPriceConfig)
371
+ return exportConfig.gasPriceConfig
372
+ },
373
+ pricetypes() {
374
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
375
+ },
376
+ usertypes() {
377
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
378
+ },
379
+ }
380
+ }
381
+ </script>
@@ -5,8 +5,11 @@ export default function () {
5
5
  // 客户信息查询
6
6
  Vue.component('user-query', (resolve) => { require(['./UserQuery'], resolve) })
7
7
  Vue.component('res-select-group', (resolve) => { require(['./ResSelectGroupNew'], resolve) })
8
+ // 补气查询
8
9
  Vue.component('fill-gas-query', (resolve) => { require(['./FillGasQuery'], resolve) })
10
+ // 收费查询
9
11
  Vue.component('charge-query', (resolve) => { require(['./ChargeQuery'], resolve) })
12
+ // 机表抄表查询
10
13
  Vue.component('handplan-query', (resolve) => { require(['./HandplanQuery'], resolve) })
11
14
  // 调价记录查询
12
15
  Vue.component('price-change-query', (resolve) => { require(['./PriceChangeQuery'], resolve) })
@@ -21,5 +24,37 @@ export default function () {
21
24
  require(['./InspectListGas'], resolve)
22
25
  })
23
26
  // 用气稽查
24
- Vue.component('gas-inspection', (resolve) => {require(['./GasInspection'], resolve) })
27
+ Vue.component('gas-inspection', (resolve) => { require(['./GasInspection'], resolve) })
28
+ // 换表查询
29
+ Vue.component('change-meter-query', (resolve) => {
30
+ require(['./ChangeMeterQuery'], resolve)
31
+ })
32
+ // 档案变更记录
33
+ Vue.component('changeuser-query', (resolve) => {
34
+ require(['./ChangeUserQuery'], resolve)
35
+ })
36
+ // 民用用气设备查询
37
+ Vue.component('my-gas-device-query', (resolve) => {
38
+ require(['./GasDeviceQuery'], resolve)
39
+ })
40
+ // 非民用用气设备查询
41
+ Vue.component('fmy-gas-device-query', (resolve) => {
42
+ require(['./FmyGasDeviceQuery'], resolve)
43
+ })
44
+ // 冲正查询
45
+ Vue.component('reverse-query', (resolve) => {
46
+ require(['./ReverseQuery'], resolve)
47
+ })
48
+ // 补卡查询
49
+ Vue.component('fill-card-query', (resolve) => {
50
+ require(['./FillCardQuery'], resolve)
51
+ })
52
+ // 气价信息查询
53
+ Vue.component('gas-price-query', (resolve) => {
54
+ require(['./gasPriceQuery'], resolve)
55
+ })
56
+ // 气费阶梯明细
57
+ Vue.component('selling-charge-price', (resolve) => {
58
+ require(['./sellingChargePrice'], resolve)
59
+ })
25
60
  }