manage-client 1.22.1-ca → 1.22.3-ca

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 (48) hide show
  1. package/.npmignore +10 -0
  2. package/build/.npmignore +1 -0
  3. package/build/dev-server.js +93 -64
  4. package/package.json +1 -1
  5. package/src/components/MeterManage/ChargeQuery.vue +104 -10
  6. package/src/components/MeterManage/LiushuiQuery.vue +54 -3
  7. package/src/components/SellReport/BonSummary.vue +233 -233
  8. package/src/components/SellReport/BusSummary.vue +238 -238
  9. package/src/components/SellReport/ChanganDaySellGAs.vue +242 -242
  10. package/src/components/SellReport/ChanganSellMsg.vue +232 -232
  11. package/src/components/SellReport/ChanganSellMsg_Month.vue +240 -240
  12. package/src/components/SellReport/FenxiangSell.vue +182 -182
  13. package/src/components/SellReport/GasCollect.vue +174 -174
  14. package/src/components/SellReport/ManageBusSummary.vue +229 -229
  15. package/src/components/SellReport/ManageGasPrice.vue +221 -221
  16. package/src/components/SellReport/ManageSellType.vue +229 -229
  17. package/src/components/sale/businessquery/BusinessManage.vue +108 -108
  18. package/src/components/sale/businessquery/ChangeUserQuery.vue +330 -330
  19. package/src/components/sale/businessquery/ChargeQuery.vue +29 -0
  20. package/src/components/sale/businessquery/DisableQuery.vue +286 -286
  21. package/src/components/sale/businessquery/EnableQuery.vue +258 -258
  22. package/src/components/sale/businessquery/FillCardQuery.vue +373 -373
  23. package/src/components/sale/businessquery/FillGasQuery.vue +311 -311
  24. package/src/components/sale/businessquery/HandplanQuery.vue +296 -296
  25. package/src/components/sale/businessquery/LiuShuiQuery.vue +8 -0
  26. package/src/components/sale/businessquery/OtherChargeQuery.vue +308 -308
  27. package/src/components/sale/businessquery/ReverseQuery.vue +305 -305
  28. package/src/components/sale/businessquery/RfCardReadBack.vue +412 -412
  29. package/src/components/sale/businessquery/SellGasGroupPrice.vue +211 -211
  30. package/src/components/sale/businessquery/SellgasQuerybyDay.vue +185 -185
  31. package/src/components/sale/businessquery/SellgasQuerybyDep.vue +186 -186
  32. package/src/components/sale/businessquery/SellgasQuerybySpot.vue +191 -191
  33. package/src/components/sale/businessquery/SellingHand.vue +267 -267
  34. package/src/components/sale/businessquery/TransferQuery.vue +291 -291
  35. package/src/components/sale/businessquery/TreaDownQuery.vue +439 -439
  36. package/src/components/sale/businessquery/ValveQuery.vue +275 -275
  37. package/src/components/sale/config/exportConfig.js +136 -136
  38. package/src/components/sale/filesquery/ArchivesManage.vue +60 -60
  39. package/src/components/sale/filesquery/DeviceCount.vue +333 -333
  40. package/src/components/sale/filesquery/DeviceQuery.vue +361 -361
  41. package/src/components/sale/filesquery/FilesRecord.vue +160 -160
  42. package/src/components/sale/filesquery/MeterQuery.vue +499 -499
  43. package/src/components/sale/filesquery/NoSaleQuery.vue +412 -412
  44. package/src/components/webmeter/DrillData/UserGasAll.vue +490 -467
  45. package/src/plugins/Table.js +194 -194
  46. package/src/saleManage.js +134 -134
  47. package/src/stores/MagLoadParams.js +71 -71
  48. package/yarn.lock +7516 -0
@@ -1,233 +1,233 @@
1
- <template>
2
- <div id='app' >
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-inline auto " partial >
6
- <p class="bg-info text-center" style="padding: 8px;">操作员结账报表</p>
7
- <div novalidate class="auto form-horizontal select-overspread container-fluid auto" partial>
8
- <div class="row">
9
- <div class="col-sm-3 form-group form-fix-width" >
10
- <label class="control-label _zoom4">售气单位</label>
11
- <v-select :value.sync="model.f_filiale"
12
- v-model="model.f_filiale"
13
- :options='$parent.$parent.compans'
14
- placeholder='请选择'
15
- :value-single="true"
16
- close-on-select></v-select>
17
- </div>
18
- <div class="col-sm-3 form-group form-fix-width" >
19
- <label class="control-label _zoom4">售气部门</label>
20
- <v-select :value.sync="model.f_outlets"
21
- v-model="model.f_outlets"
22
- :options='$parent.$parent.selldep'
23
- placeholder='请选择'
24
- :value-single="true"
25
- close-on-select></v-select>
26
- </div>
27
- <div class="col-sm-3 form-group form-fix-width" >
28
- <label class="control-label _zoom4">操作地点</label>
29
- <input type="text" class="form-control _zoom6" v-model="model.op_spot"
30
- :value.sync="model.op_spot"
31
- placeholder='操作地点'>
32
- </div>
33
- <div class="col-sm-3 form-group form-fix-width" >
34
- <label class="control-label _zoom4">操作员</label>
35
- <input type="text" class="form-control _zoom6" v-model="model.op_id"
36
- :value.sync="model.op_id"
37
- placeholder='操作员'>
38
- </div>
39
- <div class="col-sm-3 form-group form-fix-width" >
40
- <label class="control-label _zoom4" for="startDate">开始日期:</label>
41
- <datepicker id="startDate" placeholder="开始日期"
42
- v-model="model.startDate"
43
- class="_zoom6"
44
- :value.sync="model.startDate"
45
- :disabled-days-of-Week="[]"
46
- :format="'yyyy-MM-dd'"
47
- :show-reset-button="reset">
48
- </datepicker>
49
- </div>
50
- <div class="col-sm-3 form-group form-fix-width" >
51
- <label class="control-label _zoom4" for="endDate">结束日期:</label>
52
- <datepicker id="endDate" placeholder="结束日期"
53
- v-model="model.endDate"
54
- class="_zoom6"
55
- :value.sync="model.endDate"
56
- :disabled-days-of-Week="[]"
57
- :format="'yyyy-MM-dd'"
58
- :show-reset-button="reset">
59
- </datepicker>
60
- </div>
61
- </div>
62
- <div class="row">
63
- <div style = "float:right;margin-top:10px">
64
- <button class="btn btn-primary width-100" @click="search()">查询</button>
65
- <report-print id='gasprice' top='1cm' left='2cm' width='100%' height='100%'></report-print>
66
- <report-excel id='gasprice' ></report-excel>
67
- </div>
68
- </div>
69
- </div>
70
- </div>
71
- </criteria>
72
- <div partial='list' v-el:handcollect id='bussummary'>
73
- <table class='tableprint' style="margin: 0px auto">
74
- <thead>
75
- <tr>
76
- <th colspan='9' style="font-weight: normal; text-align: left;">
77
- <h3 style="text-align: center">操作员结账报表</h3>
78
- </th>
79
- </tr>
80
- <tr>
81
- <th colspan='9' style="font-weight: normal; text-align: center;">
82
- 开始时间:{{model.model.startDate}}&nbsp;&nbsp;&nbsp;
83
- 结束时间:{{ model.model.endDate }}&nbsp;&nbsp;&nbsp;
84
- </th>
85
- </tr>
86
- <tr>
87
-
88
- </tr>
89
- </thead>
90
- <tr>
91
- <td colspan='9'>
92
- {{{ model.data.substring(26,model.data.length-8) }}}
93
- </td>
94
- </tr>
95
- <tfoot>
96
- <tr style="text-align: left">
97
- <th colspan='3'>财务审核:</th>
98
- <th colspan='3'>收款审核:</th>
99
- <th colspan='2'>收款员:</th>
100
- </tr>
101
- </tfoot>
102
- </table>
103
- {{{ $parent.reportStr }}}
104
- </div>
105
- </criteria-paged>
106
- <modal :show.sync="show" v-ref:modal small backdrop="false">
107
- <header slot="modal-header" class="modal-header">
108
- <h4 class="modal-title">输入文件名称</h4>
109
- </header>
110
- <article slot="modal-body" class="modal-body">
111
- <div class="form-group">
112
- <input type="text" class="form-control" v-model="filename" placeholder='保存的文件名'>
113
- </div>
114
- </article>
115
- <footer slot="modal-footer" class="modal-footer">
116
- <button v-show="show" type="button" class="btn btn-default" @click='close'>取消</button>
117
- <button v-show="show" type="button" class="btn btn-success" @click='confirm(filename)'>确认</button>
118
- </footer>
119
- </modal>
120
-
121
- </div>
122
- </template>
123
- <script>
124
- import { DataModel } from 'vue-client'
125
- import co from 'co'
126
- let saveFile = function * (self) {
127
- // 线验证文件是否重名
128
- let count = yield self.$resetpost('rs/sql/manageSingleTable',
129
- {data: {tablename: 't_report_record', condition: `f_files_name = '${self.filename}'`}},
130
- {resolveMsg: null, rejectMsg: null})
131
- if (count.data.length > 0) {
132
- self.$showAlert('无法保存,文件名重名', 'warning', 3000)
133
- return
134
- }
135
- let saveBack = yield self.$resetpost('rs/logic/saveReport', {f_files_content: self.$refs.paged.$els.handcollect.innerHTML,
136
- f_files_name: self.filename, f_files_type: self.data.f_report_type, f_component_name: 'bus-summary',
137
- f_operator: this.$login.f.name, f_query_month: `${self.model.model.startDate}-${self.model.model.endDate}`,
138
- f_outlets: this.$login.f.f_parentname})
139
- if (saveBack.data.status === 'succeed') {
140
- self.show = false
141
- self.filename = ''
142
- // 后台保存完成,通知刷新
143
- self.$dispatch('save-success', self.filename)
144
- }
145
- }
146
- export default {
147
- title: '收费类型报表',
148
- props: ['data'],
149
- data () {
150
- return {
151
- model: new DataModel('rs/report/bussummary', {
152
- startDate: 'this.model.startDate',
153
- endDate: 'this.model.endDate',
154
- op_id: 'this.model.op_id',
155
- op_spot: 'this.model.op_spot',
156
- f_filiale: 'this.model.f_filiale',
157
- f_outlets: 'this.model.f_outlets',
158
- }),
159
- reportStr: null,
160
- show: false,
161
- filename: '',
162
- op_id:'',
163
- op_spot:'',
164
- f_filiale:'长安公司',
165
- f_outlets:this.$login.f.f_parentname,
166
- userid: this.$login.f.id,
167
- source: `tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() != $role$))`
168
- }
169
- },
170
- ready () {
171
- /*if (this.data) {
172
- this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
173
- this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
174
- this.$refs.paged.$refs.criteria.model.f_filiale = '长安公司'
175
- this.$refs.paged.$refs.criteria.model.f_outlets = this.$login.f.f_parentname
176
- this.$refs.paged.$refs.criteria.model.op_spot = this.$login.f.op_spot
177
- this.$refs.paged.$refs.criteria.model.op_id = this.$login.f.op_id
178
- }
179
- this.$refs.paged.$refs.criteria.search()*/
180
- },
181
- methods: {
182
- selfSearch (args) {
183
- this.$refs.paged.search(args)
184
- },
185
- // 根据文件路径获取储存的报表内容
186
- getFileContent (path) {
187
- this.$resetpost('rs/logic/getReportFileContent', {f_files_path: path}, {resolveMsg: null, rejectMsg: null}).then((res) => {
188
- this.reportStr = res.data.filecontent
189
- this.model.state = '正确'
190
- })
191
- },
192
- confirm () {
193
- if (!this.filename || this.filename === '') {
194
- this.$showAlert('无法保存,文件名不能为空', 'warning', 3000)
195
- }
196
- let saveGen = saveFile(this)
197
- co(saveGen)
198
- },
199
- close () {
200
- this.show = false
201
- },
202
- // 将报表保存成文件
203
- confirmReport () {
204
- this.show = true
205
- this.filename = this.data.f_report_name + this.$login.toStandardDateString()
206
- }
207
- },
208
- watch: {
209
- 'data' (val) {
210
- if (val.f_files_path) {
211
- this.getFileContent(val.f_files_path)
212
- } else {
213
- this.reportStr = null
214
- }
215
- }
216
- },
217
- computed: {
218
- selldep () {
219
- let rs = []
220
- if(this.$refs.paged.$refs.criteria.model.f_filiale){
221
- return [{label: '全部', value: ''}, ...this.$appdata.getParam(this.$refs.paged.$refs.criteria.model.f_filiale) ]
222
- }
223
- else {
224
- return [{label: '全部', value: ''}]
225
- }
226
- },
227
- //分公司
228
- compans () {
229
- return [{label: '全部', value: ''},...this.$appdata.getParam('售气单位')]
230
- },
231
- }
232
- }
233
- </script>
1
+ <template>
2
+ <div id='app' >
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-inline auto " partial >
6
+ <p class="bg-info text-center" style="padding: 8px;">操作员结账报表</p>
7
+ <div novalidate class="auto form-horizontal select-overspread container-fluid auto" partial>
8
+ <div class="row">
9
+ <div class="col-sm-3 form-group form-fix-width" >
10
+ <label class="control-label _zoom4">售气单位</label>
11
+ <v-select :value.sync="model.f_filiale"
12
+ v-model="model.f_filiale"
13
+ :options='$parent.$parent.compans'
14
+ placeholder='请选择'
15
+ :value-single="true"
16
+ close-on-select></v-select>
17
+ </div>
18
+ <div class="col-sm-3 form-group form-fix-width" >
19
+ <label class="control-label _zoom4">售气部门</label>
20
+ <v-select :value.sync="model.f_outlets"
21
+ v-model="model.f_outlets"
22
+ :options='$parent.$parent.selldep'
23
+ placeholder='请选择'
24
+ :value-single="true"
25
+ close-on-select></v-select>
26
+ </div>
27
+ <div class="col-sm-3 form-group form-fix-width" >
28
+ <label class="control-label _zoom4">操作地点</label>
29
+ <input type="text" class="form-control _zoom6" v-model="model.op_spot"
30
+ :value.sync="model.op_spot"
31
+ placeholder='操作地点'>
32
+ </div>
33
+ <div class="col-sm-3 form-group form-fix-width" >
34
+ <label class="control-label _zoom4">操作员</label>
35
+ <input type="text" class="form-control _zoom6" v-model="model.op_id"
36
+ :value.sync="model.op_id"
37
+ placeholder='操作员'>
38
+ </div>
39
+ <div class="col-sm-3 form-group form-fix-width" >
40
+ <label class="control-label _zoom4" for="startDate">开始日期:</label>
41
+ <datepicker id="startDate" placeholder="开始日期"
42
+ v-model="model.startDate"
43
+ class="_zoom6"
44
+ :value.sync="model.startDate"
45
+ :disabled-days-of-Week="[]"
46
+ :format="'yyyy-MM-dd'"
47
+ :show-reset-button="reset">
48
+ </datepicker>
49
+ </div>
50
+ <div class="col-sm-3 form-group form-fix-width" >
51
+ <label class="control-label _zoom4" for="endDate">结束日期:</label>
52
+ <datepicker id="endDate" placeholder="结束日期"
53
+ v-model="model.endDate"
54
+ class="_zoom6"
55
+ :value.sync="model.endDate"
56
+ :disabled-days-of-Week="[]"
57
+ :format="'yyyy-MM-dd'"
58
+ :show-reset-button="reset">
59
+ </datepicker>
60
+ </div>
61
+ </div>
62
+ <div class="row">
63
+ <div style = "float:right;margin-top:10px">
64
+ <button class="btn btn-primary width-100" @click="search()">查询</button>
65
+ <report-print id='gasprice' top='1cm' left='2cm' width='100%' height='100%'></report-print>
66
+ <report-excel id='gasprice' ></report-excel>
67
+ </div>
68
+ </div>
69
+ </div>
70
+ </div>
71
+ </criteria>
72
+ <div partial='list' v-el:handcollect id='bussummary'>
73
+ <table class='tableprint' style="margin: 0px auto">
74
+ <thead>
75
+ <tr>
76
+ <th colspan='9' style="font-weight: normal; text-align: left;">
77
+ <h3 style="text-align: center">操作员结账报表</h3>
78
+ </th>
79
+ </tr>
80
+ <tr>
81
+ <th colspan='9' style="font-weight: normal; text-align: center;">
82
+ 开始时间:{{model.model.startDate}}&nbsp;&nbsp;&nbsp;
83
+ 结束时间:{{ model.model.endDate }}&nbsp;&nbsp;&nbsp;
84
+ </th>
85
+ </tr>
86
+ <tr>
87
+
88
+ </tr>
89
+ </thead>
90
+ <tr>
91
+ <td colspan='9'>
92
+ {{{ model.data.substring(26,model.data.length-8) }}}
93
+ </td>
94
+ </tr>
95
+ <tfoot>
96
+ <tr style="text-align: left">
97
+ <th colspan='3'>财务审核:</th>
98
+ <th colspan='3'>收款审核:</th>
99
+ <th colspan='2'>收款员:</th>
100
+ </tr>
101
+ </tfoot>
102
+ </table>
103
+ {{{ $parent.reportStr }}}
104
+ </div>
105
+ </criteria-paged>
106
+ <modal :show.sync="show" v-ref:modal small backdrop="false">
107
+ <header slot="modal-header" class="modal-header">
108
+ <h4 class="modal-title">输入文件名称</h4>
109
+ </header>
110
+ <article slot="modal-body" class="modal-body">
111
+ <div class="form-group">
112
+ <input type="text" class="form-control" v-model="filename" placeholder='保存的文件名'>
113
+ </div>
114
+ </article>
115
+ <footer slot="modal-footer" class="modal-footer">
116
+ <button v-show="show" type="button" class="btn btn-default" @click='close'>取消</button>
117
+ <button v-show="show" type="button" class="btn btn-success" @click='confirm(filename)'>确认</button>
118
+ </footer>
119
+ </modal>
120
+
121
+ </div>
122
+ </template>
123
+ <script>
124
+ import { DataModel } from 'vue-client'
125
+ import co from 'co'
126
+ let saveFile = function * (self) {
127
+ // 线验证文件是否重名
128
+ let count = yield self.$resetpost('rs/sql/manageSingleTable',
129
+ {data: {tablename: 't_report_record', condition: `f_files_name = '${self.filename}'`}},
130
+ {resolveMsg: null, rejectMsg: null})
131
+ if (count.data.length > 0) {
132
+ self.$showAlert('无法保存,文件名重名', 'warning', 3000)
133
+ return
134
+ }
135
+ let saveBack = yield self.$resetpost('rs/logic/saveReport', {f_files_content: self.$refs.paged.$els.handcollect.innerHTML,
136
+ f_files_name: self.filename, f_files_type: self.data.f_report_type, f_component_name: 'bus-summary',
137
+ f_operator: this.$login.f.name, f_query_month: `${self.model.model.startDate}-${self.model.model.endDate}`,
138
+ f_outlets: this.$login.f.f_parentname})
139
+ if (saveBack.data.status === 'succeed') {
140
+ self.show = false
141
+ self.filename = ''
142
+ // 后台保存完成,通知刷新
143
+ self.$dispatch('save-success', self.filename)
144
+ }
145
+ }
146
+ export default {
147
+ title: '收费类型报表',
148
+ props: ['data'],
149
+ data () {
150
+ return {
151
+ model: new DataModel('rs/report/bussummary', {
152
+ startDate: 'this.model.startDate',
153
+ endDate: 'this.model.endDate',
154
+ op_id: 'this.model.op_id',
155
+ op_spot: 'this.model.op_spot',
156
+ f_filiale: 'this.model.f_filiale',
157
+ f_outlets: 'this.model.f_outlets',
158
+ }),
159
+ reportStr: null,
160
+ show: false,
161
+ filename: '',
162
+ op_id:'',
163
+ op_spot:'',
164
+ f_filiale:'长安公司',
165
+ f_outlets:this.$login.f.f_parentname,
166
+ userid: this.$login.f.id,
167
+ source: `tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() != $role$))`
168
+ }
169
+ },
170
+ ready () {
171
+ /*if (this.data) {
172
+ this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
173
+ this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
174
+ this.$refs.paged.$refs.criteria.model.f_filiale = '长安公司'
175
+ this.$refs.paged.$refs.criteria.model.f_outlets = this.$login.f.f_parentname
176
+ this.$refs.paged.$refs.criteria.model.op_spot = this.$login.f.op_spot
177
+ this.$refs.paged.$refs.criteria.model.op_id = this.$login.f.op_id
178
+ }
179
+ this.$refs.paged.$refs.criteria.search()*/
180
+ },
181
+ methods: {
182
+ selfSearch (args) {
183
+ this.$refs.paged.search(args)
184
+ },
185
+ // 根据文件路径获取储存的报表内容
186
+ getFileContent (path) {
187
+ this.$resetpost('rs/logic/getReportFileContent', {f_files_path: path}, {resolveMsg: null, rejectMsg: null}).then((res) => {
188
+ this.reportStr = res.data.filecontent
189
+ this.model.state = '正确'
190
+ })
191
+ },
192
+ confirm () {
193
+ if (!this.filename || this.filename === '') {
194
+ this.$showAlert('无法保存,文件名不能为空', 'warning', 3000)
195
+ }
196
+ let saveGen = saveFile(this)
197
+ co(saveGen)
198
+ },
199
+ close () {
200
+ this.show = false
201
+ },
202
+ // 将报表保存成文件
203
+ confirmReport () {
204
+ this.show = true
205
+ this.filename = this.data.f_report_name + this.$login.toStandardDateString()
206
+ }
207
+ },
208
+ watch: {
209
+ 'data' (val) {
210
+ if (val.f_files_path) {
211
+ this.getFileContent(val.f_files_path)
212
+ } else {
213
+ this.reportStr = null
214
+ }
215
+ }
216
+ },
217
+ computed: {
218
+ selldep () {
219
+ let rs = []
220
+ if(this.$refs.paged.$refs.criteria.model.f_filiale){
221
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam(this.$refs.paged.$refs.criteria.model.f_filiale) ]
222
+ }
223
+ else {
224
+ return [{label: '全部', value: ''}]
225
+ }
226
+ },
227
+ //分公司
228
+ compans () {
229
+ return [{label: '全部', value: ''},...this.$appdata.getParam('售气单位')]
230
+ },
231
+ }
232
+ }
233
+ </script>