manage-client-xy 3.1.83 → 3.1.85

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.
@@ -11,8 +11,8 @@ var compiler = webpack(config)
11
11
  // Define HTTP proxies to your custom API backend
12
12
  // https://github.com/chimurai/http-proxy-middleware
13
13
  // var bendi = 'http://127.0.0.1:8089/manage', fuwu = 'http://36.103.224.217:6300/'
14
- var bendi = 'http://127.0.0.1:8080/'
15
- ,fuwu ='http://172.16.16.162:8300/'
14
+ var bendi = 'http://172.16.16.163:8300/'
15
+ ,fuwu ='http://172.16.16.163:8300/'
16
16
  // ,fuwu = 'http://172.16.16.163:8300/'
17
17
  var proxyTable = {
18
18
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "manage-client-xy",
3
- "version": "3.1.83",
3
+ "version": "3.1.85",
4
4
  "description": "经营管控模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -1,283 +1,282 @@
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
- <p class="bg-info text-center" style="padding: 8px;">日期统计收费报表</p>
6
- <div class="form-group" v-if="!$parent.$parent.data.f_files_path"></div>
7
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
8
- <div class="row">
9
- <div class="col-sm-4">
10
- <label class="font_normal_body" for="startDate">开始日期:</label>
11
- <datepicker id="startDate" placeholder="开始日期" style="width: 60%"
12
- v-model="model.startDate"
13
- :value.sync="model.startDate"
14
- :disabled-days-of-Week="[]"
15
- :format="'yyyy-MM-dd HH:mm:ss'"
16
- :show-reset-button="reset">
17
- </datepicker>
18
- </div>
19
- <div class="col-sm-4">
20
- <label class="font_normal_body" for="endDate">结束日期:</label>
21
- <datepicker id="endDate" placeholder="结束日期" style="width: 60%"
22
- v-model="model.endDate"
23
- :value.sync="model.endDate"
24
- :disabled-days-of-Week="[]"
25
- :format="'yyyy-MM-dd HH:mm:ss'"
26
- :show-reset-button="reset">
27
- </datepicker>
28
- </div>
29
- <div class="col-sm-4">
30
- <label class="font_normal_body">&emsp;&emsp;公司:</label>
31
- <right-tree @re-res="$parent.$parent.getRes"></right-tree>
32
- </div>
33
- <div class="col-sm-4">
34
- <label class="font_normal_body">&emsp;&emsp;部门:</label>
35
- <res-select restype='department'
36
- is-mul="false"
37
- @res-select="$parent.$parent.getdep"
38
- :parentresid="$parent.$parent.depresid"
39
- :initresid='$parent.$parent.depid'>
40
- </res-select>
41
-
42
- </div>
43
- <div class="col-sm-4">
44
- <label class="font_normal_body">&emsp;&emsp;人员:</label>
45
- <res-select restype='user'
46
- is-mul="false"
47
- @res-select="$parent.$parent.getuser"
48
- :parentresid="$parent.$parent.userresid"
49
- :initresid='$parent.$parent.operatorid'>
50
- </res-select>
51
- </div>
52
- <div class="col-sm-4">
53
- <label class="font_normal_body" title="参数:付款方式查询">付款方式</label>
54
- <v-select :value.sync="model.f_payment" multiple
55
- v-model="model.f_payment"
56
- :options='$parent.$parent.payment' placeholder='请选择'
57
- condition="f_payment in {}"
58
- close-on-select></v-select>
59
- </div>
60
- <div class="col-sm-4" style="float:right;">
61
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;&emsp;&emsp;&nbsp;&nbsp;&nbsp;</label>
62
- <button class="button_search" @click="$parent.$parent.searchData()">查询</button>
63
- <report-print id='gasprice' top='3cm' left='0' width='100%' height='100%' :preview="true"></report-print>
64
- <report-excel id='gasprice'
65
- v-if="$parent.$parent.jurisdiction.includes('excel导出')"
66
- ></report-excel>
67
- </div>
68
- </div>
69
- </div>
70
- </criteria>
71
- <div partial='list' v-el:handcollect id='gasprice' style="overflow-y: scroll">
72
- <table class='tableprint' style="margin: 0px auto">
73
- <thead>
74
- <tr>
75
- <th colspan='17' style="font-weight: normal; text-align: left;">
76
- <h3 style="text-align: center">日期统计收费报表</h3>
77
- </th>
78
- </tr>
79
- <tr>
80
- <th colspan='17' style="font-weight: normal; text-align: center;">
81
- 开始时间:{{model.model.startDate}}&nbsp;&nbsp;&nbsp;
82
- 结束时间:{{ model.model.endDate }}
83
- </th>
84
- </tr>
85
- <tr>
86
- <th colspan='17' style="font-weight: normal; text-align: center;">
87
- 打印时间:{{{$parent.printTime}}}
88
- </th>
89
- </tr>
90
- <tr>
91
- <th colspan='17' style="font-weight: normal; text-align: center;">
92
- <div>
93
- <span v-show="$parent.orgname.trim()!=''">公司:{{ $parent.orgname }}</span>
94
- <span v-show="$parent.depname.trim()!=''"> 部门:{{ $parent.depname }}</span>
95
- <span v-show="$parent.operatorname.trim()!=''">人员:{{ $parent.operatorname }}</span>
96
- </div>
97
- </th>
98
- </tr>
99
- </thead>
100
- <tr>
101
- <td colspan='17'>
102
- {{{ model.data.substring(26,model.data.length-8) }}}
103
- </td>
104
- </tr>
105
- <tfoot>
106
- <tr style="text-align: left">
107
- <th colspan='6'>财务审核:</th>
108
- <th colspan='6'>收款审核:</th>
109
- <th colspan='5'>收款员:</th>
110
- </tr>
111
- </tfoot>
112
- </table>
113
- {{{ $parent.reportStr}}}
114
- </div>
115
- </criteria-paged>
116
- <modal :show.sync="show" v-ref:modal small backdrop="false">
117
- <header slot="modal-header" class="modal-header">
118
- <h4 class="modal-title">输入文件名称</h4>
119
- </header>
120
- <article slot="modal-body" class="modal-body">
121
- <div class="form-group">
122
- <input type="text" class="form-control" v-model="filename" placeholder='保存的文件名'>
123
- </div>
124
- </article>
125
- <footer slot="modal-footer" class="modal-footer">
126
- <button v-show="show" type="button" class="btn btn-default" @click='close'>取消</button>
127
- <button v-show="show" type="button" class="btn btn-success" @click='confirm(filename)'>确认</button>
128
- </footer>
129
- </modal>
130
- </div>
131
- </template>
132
-
133
- <script>
134
- import { DataModel } from 'vue-client'
135
- import co from 'co'
136
- let saveFile = function * (self) {
137
- // 线验证文件是否重名
138
- let count = yield self.$resetpost('rs/sql/manageSingleTable',
139
- {data: {tablename: 't_report_record', condition: `f_files_name = '${self.filename}'`}},
140
- {resolveMsg: null, rejectMsg: null})
141
- if (count.data.length > 0) {
142
- self.$showAlert('无法保存,文件名重名', 'warning', 3000)
143
- return
144
- }
145
- let saveBack = yield self.$resetpost('rs/logic/saveReport', {f_files_content: self.$refs.paged.$els.handcollect.innerHTML,
146
- f_files_name: self.filename, f_files_type: self.data.f_report_type, f_component_name: 'manage-bus-summary',
147
- f_operator: this.$login.f.name, f_query_month: `${self.model.model.startDate}-${self.model.model.endDate}`,
148
- f_outlets: this.$login.f.depname})
149
- if (saveBack.data.status === 'succeed') {
150
- self.show = false
151
- self.filename = ''
152
- // 后台保存完成,通知刷新
153
- self.$dispatch('save-success', self.filename)
154
- }
155
- }
156
- export default {
157
- title: '日期统计收费报表',
158
- props: ['data'],
159
- data () {
160
- return {
161
- printTime: this.$login.toStandardTimeString(),
162
- depresid: [],
163
- userresid: [],
164
- f_orgid: this.$login.f.orgid,
165
- f_depid: this.$login.f.depids,
166
- f_operatorid: this.$login.f.id,
167
- jurisdiction: this.$login.r,
168
- operatorid: [],
169
- depid: [],
170
- orgname: '',
171
- depname: '',
172
- operatorname: '',
173
- f_inputtor:[],
174
- f_user_type:'',
175
- orgCondtionStr: '1=1',
176
- model: new DataModel('rs/report/datePayment', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
177
- f_orgid: 'this.model.f_orgid'}),
178
- reportStr: null,
179
- show: false
180
- }
181
- },
182
- ready () {
183
- this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
184
- this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
185
- this.$refs.paged.$refs.criteria.search()
186
- console.log(this.$login.f)
187
- },
188
- methods: {
189
- searchData () {
190
- this.$refs.paged.$refs.criteria.search()
191
- },
192
- selfSearch (args) {
193
- console.log(args.condition + 'yyyqqq')
194
- this.printTime = this.$login.toStandardTimeString()
195
- let orgcondition = '1=1'
196
- if (this.f_orgid[0]) {
197
- var id = this.f_orgid.toString()
198
- var ids = id.split(',')
199
- console.log('几个公司:'+ids.length)
200
- var orgids = ''
201
- var f_orgids = ''
202
- if(ids.length==1){
203
- orgcondition += " and F_PAYMENT != '银行' and F_PAYMENT != '微信支付' "
204
- f_orgids += "'"+ids[0]+"'"
205
- }else{
206
- for (var i = 0;i<ids.length;i++){
207
- console.log('id = ' + ids[i])
208
- orgids += "'"+ids[i]+"',"
209
- }
210
- f_orgids = orgids.substring(0,orgids.length-1)
211
- }
212
-
213
- orgcondition += " and f_orgid in ( " + f_orgids + " ) "
214
- console.log('f_orgids:' + f_orgids)
215
- }
216
- if (this.f_depid[0]) {
217
- orgcondition += " and F_DEPNAME like '%" + this.depname + "%'"
218
- }
219
- if (this.f_operatorid[0]) {
220
- orgcondition += " and f_operator like '%" + this.operatorname + "%'"
221
- }
222
- orgcondition += " and " + args.condition
223
- this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
224
- this.$refs.paged.search(args)
225
- },
226
- getRes (obj) {
227
- this.orgname = obj.res[0]
228
- this.depresid = obj.resids
229
- this.f_orgid = obj.resids
230
- this.userresid = obj.resids
231
- },
232
- getdep (obj, val) {
233
- this.depname = val[0]
234
- this.f_depid = obj
235
- },
236
- getuser ( obj, val) {
237
- this.operatorname = val[0]
238
- this.f_operatorid = obj
239
- },
240
- // 根据文件路径获取储存的报表内容
241
- getFileContent (path) {
242
- this.$resetpost('rs/logic/getReportFileContent', {f_files_path: path}, {resolveMsg: null, rejectMsg: null}).then((res) => {
243
- this.reportStr = res.data.filecontent
244
- this.model.state = '正确'
245
- })
246
- },
247
- confirm () {
248
- if (!this.filename || this.filename === '') {
249
- this.$showAlert('无法保存,文件名不能为空', 'warning', 3000)
250
- }
251
- let saveGen = saveFile(this)
252
- co(saveGen)
253
- },
254
- close () {
255
- this.show = false
256
- },
257
- // 将报表保存成文件
258
- confirmReport () {
259
- this.show = true
260
- this.filename = this.data.f_report_name + this.$login.toStandardDateString()
261
- },
262
- },
263
- watch: {
264
- 'data' (val) {
265
- if (val.f_files_path) {
266
- this.getFileContent(val.f_files_path)
267
- } else {
268
- this.reportStr = null
269
- }
270
- }
271
- },
272
- computed: {
273
- payment() {
274
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('付款方式查询')]
275
- },
276
- }
277
- }
278
- </script>
279
- <style scoped>
280
- .noborder{
281
- border: none;
282
- }
283
- </style>
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
+ <p class="bg-info text-center" style="padding: 8px;">日期统计收费报表</p>
6
+ <div class="form-group" v-if="!$parent.$parent.data.f_files_path"></div>
7
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
8
+ <div class="row">
9
+ <div class="col-sm-4">
10
+ <label class="font_normal_body" for="startDate">开始日期:</label>
11
+ <datepicker id="startDate" placeholder="开始日期" style="width: 60%"
12
+ v-model="model.startDate"
13
+ :value.sync="model.startDate"
14
+ :disabled-days-of-Week="[]"
15
+ :format="'yyyy-MM-dd HH:mm:ss'"
16
+ :show-reset-button="reset">
17
+ </datepicker>
18
+ </div>
19
+ <div class="col-sm-4">
20
+ <label class="font_normal_body" for="endDate">结束日期:</label>
21
+ <datepicker id="endDate" placeholder="结束日期" style="width: 60%"
22
+ v-model="model.endDate"
23
+ :value.sync="model.endDate"
24
+ :disabled-days-of-Week="[]"
25
+ :format="'yyyy-MM-dd HH:mm:ss'"
26
+ :show-reset-button="reset">
27
+ </datepicker>
28
+ </div>
29
+ <div class="col-sm-4">
30
+ <label class="font_normal_body">&emsp;&emsp;公司:</label>
31
+ <right-tree @re-res="$parent.$parent.getRes"></right-tree>
32
+ </div>
33
+ <div class="col-sm-4">
34
+ <label class="font_normal_body">&emsp;&emsp;部门:</label>
35
+ <res-select restype='department'
36
+ is-mul="false"
37
+ @res-select="$parent.$parent.getdep"
38
+ :parentresid="$parent.$parent.depresid"
39
+ :initresid='$parent.$parent.depid'>
40
+ </res-select>
41
+
42
+ </div>
43
+ <div class="col-sm-4">
44
+ <label class="font_normal_body">&emsp;&emsp;人员:</label>
45
+ <res-select restype='user'
46
+ is-mul="false"
47
+ @res-select="$parent.$parent.getuser"
48
+ :parentresid="$parent.$parent.userresid"
49
+ :initresid='$parent.$parent.operatorid'>
50
+ </res-select>
51
+ </div>
52
+ <div class="col-sm-4">
53
+ <label class="font_normal_body" title="参数:付款方式查询">付款方式</label>
54
+ <v-select :value.sync="model.f_payment" multiple
55
+ v-model="model.f_payment"
56
+ :options='$parent.$parent.payment' placeholder='请选择'
57
+ condition="f_payment in {}"
58
+ close-on-select></v-select>
59
+ </div>
60
+ <div class="col-sm-4" style="float:right;">
61
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;&emsp;&emsp;&nbsp;&nbsp;&nbsp;</label>
62
+ <button class="button_search" @click="$parent.$parent.searchData()">查询</button>
63
+ <report-print id='gasprice' top='3cm' left='0' width='100%' height='100%' :preview="true"></report-print>
64
+ <report-excel id='gasprice'
65
+ v-if="$parent.$parent.jurisdiction.includes('excel导出')"
66
+ ></report-excel>
67
+ </div>
68
+ </div>
69
+ </div>
70
+ </criteria>
71
+ <div partial='list' v-el:handcollect id='gasprice' style="overflow-y: scroll">
72
+ <table class='tableprint' style="margin: 0px auto">
73
+ <thead>
74
+ <tr>
75
+ <th colspan='17' style="font-weight: normal; text-align: left;">
76
+ <h3 style="text-align: center">日期统计收费报表</h3>
77
+ </th>
78
+ </tr>
79
+ <tr>
80
+ <th colspan='17' style="font-weight: normal; text-align: center;">
81
+ 开始时间:{{model.model.startDate}}&nbsp;&nbsp;&nbsp;
82
+ 结束时间:{{ model.model.endDate }}
83
+ </th>
84
+ </tr>
85
+ <tr>
86
+ <th colspan='17' style="font-weight: normal; text-align: center;">
87
+ 打印时间:{{{$parent.printTime}}}
88
+ </th>
89
+ </tr>
90
+ <tr>
91
+ <th colspan='17' style="font-weight: normal; text-align: center;">
92
+ <div>
93
+ <span v-show="$parent.orgname.trim()!=''">公司:{{ $parent.orgname }}</span>
94
+ <span v-show="$parent.depname.trim()!=''"> 部门:{{ $parent.depname }}</span>
95
+ <span v-show="$parent.operatorname.trim()!=''">人员:{{ $parent.operatorname }}</span>
96
+ </div>
97
+ </th>
98
+ </tr>
99
+ </thead>
100
+ <tr>
101
+ <td colspan='17'>
102
+ {{{ model.data.substring(26,model.data.length-8) }}}
103
+ </td>
104
+ </tr>
105
+ <tfoot>
106
+ <tr style="text-align: left">
107
+ <th colspan='6'>财务审核:</th>
108
+ <th colspan='6'>收款审核:</th>
109
+ <th colspan='5'>收款员:</th>
110
+ </tr>
111
+ </tfoot>
112
+ </table>
113
+ {{{ $parent.reportStr}}}
114
+ </div>
115
+ </criteria-paged>
116
+ <modal :show.sync="show" v-ref:modal small backdrop="false">
117
+ <header slot="modal-header" class="modal-header">
118
+ <h4 class="modal-title">输入文件名称</h4>
119
+ </header>
120
+ <article slot="modal-body" class="modal-body">
121
+ <div class="form-group">
122
+ <input type="text" class="form-control" v-model="filename" placeholder='保存的文件名'>
123
+ </div>
124
+ </article>
125
+ <footer slot="modal-footer" class="modal-footer">
126
+ <button v-show="show" type="button" class="btn btn-default" @click='close'>取消</button>
127
+ <button v-show="show" type="button" class="btn btn-success" @click='confirm(filename)'>确认</button>
128
+ </footer>
129
+ </modal>
130
+ </div>
131
+ </template>
132
+
133
+ <script>
134
+ import { DataModel } from 'vue-client'
135
+ import co from 'co'
136
+ let saveFile = function * (self) {
137
+ // 线验证文件是否重名
138
+ let count = yield self.$resetpost('rs/sql/manageSingleTable',
139
+ {data: {tablename: 't_report_record', condition: `f_files_name = '${self.filename}'`}},
140
+ {resolveMsg: null, rejectMsg: null})
141
+ if (count.data.length > 0) {
142
+ self.$showAlert('无法保存,文件名重名', 'warning', 3000)
143
+ return
144
+ }
145
+ let saveBack = yield self.$resetpost('rs/logic/saveReport', {f_files_content: self.$refs.paged.$els.handcollect.innerHTML,
146
+ f_files_name: self.filename, f_files_type: self.data.f_report_type, f_component_name: 'manage-bus-summary',
147
+ f_operator: this.$login.f.name, f_query_month: `${self.model.model.startDate}-${self.model.model.endDate}`,
148
+ f_outlets: this.$login.f.depname})
149
+ if (saveBack.data.status === 'succeed') {
150
+ self.show = false
151
+ self.filename = ''
152
+ // 后台保存完成,通知刷新
153
+ self.$dispatch('save-success', self.filename)
154
+ }
155
+ }
156
+ export default {
157
+ title: '日期统计收费报表',
158
+ props: ['data'],
159
+ data () {
160
+ return {
161
+ printTime: this.$login.toStandardTimeString(),
162
+ depresid: [],
163
+ userresid: [],
164
+ f_orgid: this.$login.f.orgid,
165
+ f_depid: this.$login.f.depids,
166
+ f_operatorid: this.$login.f.id,
167
+ jurisdiction: this.$login.r,
168
+ operatorid: [],
169
+ depid: [],
170
+ orgname: '',
171
+ depname: '',
172
+ operatorname: '',
173
+ f_inputtor:[],
174
+ f_user_type:'',
175
+ orgCondtionStr: '1=1',
176
+ model: new DataModel('rs/report/datePayment', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
177
+ f_orgid: 'this.model.f_orgid'}),
178
+ reportStr: null,
179
+ show: false
180
+ }
181
+ },
182
+ ready () {
183
+ this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
184
+ this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
185
+ this.$refs.paged.$refs.criteria.search()
186
+ console.log(this.$login.f)
187
+ },
188
+ methods: {
189
+ searchData () {
190
+ this.$refs.paged.$refs.criteria.search()
191
+ },
192
+ selfSearch (args) {
193
+ console.log(args.condition + 'yyyqqq')
194
+ this.printTime = this.$login.toStandardTimeString()
195
+ let orgcondition = '1=1'
196
+ if (this.f_orgid[0]) {
197
+ var id = this.f_orgid.toString()
198
+ var ids = id.split(',')
199
+ console.log('几个公司:'+ids.length)
200
+ var orgids = ''
201
+ var f_orgids = ''
202
+ if(ids.length==1){
203
+ orgcondition += " and F_PAYMENT != '银行'"
204
+ f_orgids += "'"+ids[0]+"'"
205
+ }else{
206
+ for (var i = 0;i<ids.length;i++){
207
+ console.log('id = ' + ids[i])
208
+ orgids += "'"+ids[i]+"',"
209
+ }
210
+ f_orgids = orgids.substring(0,orgids.length-1)
211
+ }
212
+
213
+ orgcondition += " and f_orgid in ( " + f_orgids + " ) "
214
+ console.log('f_orgids:' + f_orgids)
215
+ }
216
+ if (this.f_depid[0]) {
217
+ orgcondition += " and F_DEPNAME like '%" + this.depname + "%'"
218
+ }
219
+ if (this.f_operatorid[0]) {
220
+ orgcondition += " and f_operator like '%" + this.operatorname + "%'"
221
+ }
222
+ this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
223
+ this.$refs.paged.search(args)
224
+ },
225
+ getRes (obj) {
226
+ this.orgname = obj.res[0]
227
+ this.depresid = obj.resids
228
+ this.f_orgid = obj.resids
229
+ this.userresid = obj.resids
230
+ },
231
+ getdep (obj, val) {
232
+ this.depname = val[0]
233
+ this.f_depid = obj
234
+ },
235
+ getuser ( obj, val) {
236
+ this.operatorname = val[0]
237
+ this.f_operatorid = obj
238
+ },
239
+ // 根据文件路径获取储存的报表内容
240
+ getFileContent (path) {
241
+ this.$resetpost('rs/logic/getReportFileContent', {f_files_path: path}, {resolveMsg: null, rejectMsg: null}).then((res) => {
242
+ this.reportStr = res.data.filecontent
243
+ this.model.state = '正确'
244
+ })
245
+ },
246
+ confirm () {
247
+ if (!this.filename || this.filename === '') {
248
+ this.$showAlert('无法保存,文件名不能为空', 'warning', 3000)
249
+ }
250
+ let saveGen = saveFile(this)
251
+ co(saveGen)
252
+ },
253
+ close () {
254
+ this.show = false
255
+ },
256
+ // 将报表保存成文件
257
+ confirmReport () {
258
+ this.show = true
259
+ this.filename = this.data.f_report_name + this.$login.toStandardDateString()
260
+ },
261
+ },
262
+ watch: {
263
+ 'data' (val) {
264
+ if (val.f_files_path) {
265
+ this.getFileContent(val.f_files_path)
266
+ } else {
267
+ this.reportStr = null
268
+ }
269
+ }
270
+ },
271
+ computed: {
272
+ payment() {
273
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('付款方式查询')]
274
+ },
275
+ }
276
+ }
277
+ </script>
278
+ <style scoped>
279
+ .noborder{
280
+ border: none;
281
+ }
282
+ </style>
@@ -1,259 +1,259 @@
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
- <p class="bg-info text-center" style="padding: 8px;">咸阳财务收费报表</p>
6
- <div class="form-group" v-if="!$parent.$parent.data.f_files_path"></div>
7
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
8
- <div class="row">
9
- <div class="col-sm-3">
10
- <label class="font_normal_body" for="startDate">开始日期:</label>
11
- <datepicker id="startDate" placeholder="开始日期" style="width: 60%"
12
- v-model="model.startDate"
13
- :value.sync="model.startDate"
14
- :disabled-days-of-Week="[]"
15
- :format="'yyyy-MM-dd HH:mm:ss'"
16
- :show-reset-button="reset">
17
- </datepicker>
18
- </div>
19
- <div class="col-sm-3">
20
- <label class="font_normal_body" for="endDate">结束日期:</label>
21
- <datepicker id="endDate" placeholder="结束日期" style="width: 60%"
22
- v-model="model.endDate"
23
- :value.sync="model.endDate"
24
- :disabled-days-of-Week="[]"
25
- :format="'yyyy-MM-dd HH:mm:ss'"
26
- :show-reset-button="reset">
27
- </datepicker>
28
- </div>
29
- <div class="col-sm-3">
30
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;公司&nbsp;&nbsp;&nbsp;</label>
31
- <right-tree @re-res="$parent.$parent.getRes"></right-tree>
32
- </div>
33
- <div class="span col-sm-3" style="text-align: right;">
34
- <button class="button_search" @click="$parent.$parent.searchData()">查询</button>
35
- <report-print id='gasprice' top='3cm' left='0' width='100%' height='100%' :preview="true"></report-print>
36
- <report-excel id='gasprice'
37
- v-if="$parent.$parent.jurisdiction.includes('excel导出')"
38
- ></report-excel>
39
- </div>
40
- </div>
41
- </div>
42
- </criteria>
43
- <div partial='list' v-el:handcollect id='gasprice' style="overflow-y: scroll">
44
- <table class='tableprint' style="margin: 0px auto">
45
- <thead>
46
- <tr>
47
- <th colspan='7' style="font-weight: normal; text-align: left;">
48
- <h3 style="text-align: center">咸阳财务收费报表</h3>
49
- </th>
50
- </tr>
51
- <tr>
52
- <th colspan='8' style="font-weight: normal; text-align: center;">
53
- 开始时间:{{model.model.startDate}}&nbsp;&nbsp;&nbsp;
54
- 结束时间:{{ model.model.endDate }}
55
- </th>
56
- </tr>
57
- <tr>
58
- <th colspan='8' style="font-weight: normal; text-align: center;">
59
- 打印时间:{{{$parent.printTime}}}
60
- </th>
61
- </tr>
62
- <tr>
63
- <th colspan='8' style="font-weight: normal; text-align: center;">
64
- <div>
65
- <span v-show="$parent.orgname.trim()!=''">公司:{{$parent.orgname}}</span>
66
- <span v-show="$parent.depname.trim()!=''"> 部门:{{$parent.depname}}</span>
67
- <span v-show="$parent.operatorname.trim()!=''">人员:{{$parent.operatorname}}</span>
68
- </div>
69
- </th>
70
- </tr>
71
- </thead>
72
- <tr>
73
- <td colspan='12'>
74
- {{{ model.data.substring(26,model.data.length-8) }}}
75
- </td>
76
- </tr>
77
- <tfoot>
78
- <tr style="text-align: left">
79
- <th colspan='3'>财务审核:</th>
80
- <th colspan='3'>收款审核:</th>
81
- <th colspan='1'>收款员:</th>
82
- </tr>
83
- </tfoot>
84
- </table>
85
- {{{ $parent.reportStr}}}
86
- </div>
87
- </criteria-paged>
88
- <modal :show.sync="show" v-ref:modal small backdrop="false">
89
- <header slot="modal-header" class="modal-header">
90
- <h4 class="modal-title">输入文件名称</h4>
91
- </header>
92
- <article slot="modal-body" class="modal-body">
93
- <div class="form-group">
94
- <input type="text" class="form-control" v-model="filename" placeholder='保存的文件名'>
95
- </div>
96
- </article>
97
- <footer slot="modal-footer" class="modal-footer">
98
- <button v-show="show" type="button" class="btn btn-default" @click='close'>取消</button>
99
- <button v-show="show" type="button" class="btn btn-success" @click='confirm(filename)'>确认</button>
100
- </footer>
101
- </modal>
102
- </div>
103
- </template>
104
-
105
- <script>
106
- import {DataModel} from 'vue-client'
107
- import co from 'co'
108
-
109
- let saveFile = function* (self) {
110
- // 线验证文件是否重名
111
- let count = yield self.$resetpost('rs/sql/manageSingleTable',
112
- {data: {tablename: 't_report_record', condition: `f_files_name = '${self.filename}'`}},
113
- {resolveMsg: null, rejectMsg: null})
114
- if (count.data.length > 0) {
115
- self.$showAlert('无法保存,文件名重名', 'warning', 3000)
116
- return
117
- }
118
- let saveBack = yield self.$resetpost('rs/logic/saveReport', {
119
- f_files_content: self.$refs.paged.$els.handcollect.innerHTML,
120
- f_files_name: self.filename, f_files_type: self.data.f_report_type, f_component_name: 'manage-bus-summary',
121
- f_operator: this.$login.f.name, f_query_month: `${self.model.model.startDate}-${self.model.model.endDate}`,
122
- f_outlets: this.$login.f.depname
123
- })
124
- if (saveBack.data.status === 'succeed') {
125
- self.show = false
126
- self.filename = ''
127
- // 后台保存完成,通知刷新
128
- self.$dispatch('save-success', self.filename)
129
- }
130
- }
131
- export default {
132
- title: '日期汇总表',
133
- props: ['data'],
134
- data() {
135
- return {
136
- printTime: this.$login.toStandardTimeString(),
137
- depresid: [],
138
- userresid: [],
139
- f_orgid: this.$login.f.orgid,
140
- f_depid: this.$login.f.depids,
141
- f_operatorid: this.$login.f.id,
142
- jurisdiction: this.$login.r,
143
- operatorid: [],
144
- depid: [],
145
- orgname: '',
146
- depname: '',
147
- operatorname: '',
148
- f_inputtor: [],
149
- f_user_type: '',
150
- orgCondtionStr: '1=1',
151
- model: new DataModel('rs/report/xianyangCharge', {
152
- startDate: 'this.model.startDate', endDate: 'this.model.endDate',
153
- f_orgid: 'this.model.f_orgid'
154
- }),
155
- reportStr: null,
156
- show: false
157
- }
158
- },
159
- ready() {
160
- this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
161
- this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
162
- // this.$refs.paged.$refs.criteria.search()
163
- console.log(this.$login.f)
164
- },
165
- methods: {
166
- searchData() {
167
- this.$refs.paged.$refs.criteria.search()
168
- },
169
- selfSearch(args) {
170
- console.log(args.condition + 'yyyqqq')
171
- this.printTime = this.$login.toStandardTimeString()
172
- let orgcondition = '1=1'
173
- if (this.f_orgid[0]) {
174
- var id = this.f_orgid.toString()
175
- var ids = id.split(',')
176
- console.log('几个公司:' + ids.length)
177
- var orgids = ''
178
- var f_orgids = ''
179
- if (ids.length == 1) {
180
- orgcondition += " and s.F_PAYMENT != '银行' and s.F_PAYMENT != '微信支付' "
181
- f_orgids += "'" + ids[0] + "'"
182
- } else {
183
- for (var i = 0; i < ids.length; i++) {
184
- console.log('id = ' + ids[i])
185
- orgids += "'" + ids[i] + "',"
186
- }
187
- f_orgids = orgids.substring(0, orgids.length - 1)
188
- }
189
-
190
- orgcondition += " and s.f_orgid in ( " + f_orgids + " ) "
191
- console.log('f_orgids:' + f_orgids)
192
- }
193
- this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
194
- this.$refs.paged.search(args)
195
- },
196
- getRes(obj) {
197
- this.orgname = obj.res[0]
198
- this.depresid = obj.resids
199
- this.f_orgid = obj.resids
200
- },
201
- getdep(obj, val) {
202
- // this.depname = val[0]
203
- this.userresid = obj
204
- this.f_depid = obj
205
- },
206
- getuser(obj, val) {
207
- this.operatorname = val[0]
208
- this.f_operatorid = obj
209
- },
210
- // 根据文件路径获取储存的报表内容
211
- getFileContent(path) {
212
- this.$resetpost('rs/logic/getReportFileContent', {f_files_path: path}, {
213
- resolveMsg: null,
214
- rejectMsg: null
215
- }).then((res) => {
216
- this.reportStr = res.data.filecontent
217
- this.model.state = '正确'
218
- })
219
- },
220
- confirm() {
221
- if (!this.filename || this.filename === '') {
222
- this.$showAlert('无法保存,文件名不能为空', 'warning', 3000)
223
- }
224
- let saveGen = saveFile(this)
225
- co(saveGen)
226
- },
227
- close() {
228
- this.show = false
229
- },
230
- // 将报表保存成文件
231
- confirmReport() {
232
- this.show = true
233
- this.filename = this.data.f_report_name + this.$login.toStandardDateString()
234
- },
235
- },
236
- watch: {
237
- 'data'(val) {
238
- if (val.f_files_path) {
239
- this.getFileContent(val.f_files_path)
240
- } else {
241
- this.reportStr = null
242
- }
243
- }
244
- },
245
- computed: {
246
- usertypes() {
247
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
248
- },
249
- inputtor() {
250
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('抄表员')]
251
- },
252
- }
253
- }
254
- </script>
255
- <style scoped>
256
- .noborder {
257
- border: none;
258
- }
259
- </style>
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
+ <p class="bg-info text-center" style="padding: 8px;">咸阳财务收费报表</p>
6
+ <div class="form-group" v-if="!$parent.$parent.data.f_files_path"></div>
7
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
8
+ <div class="row">
9
+ <div class="col-sm-3">
10
+ <label class="font_normal_body" for="startDate">开始日期:</label>
11
+ <datepicker id="startDate" placeholder="开始日期" style="width: 60%"
12
+ v-model="model.startDate"
13
+ :value.sync="model.startDate"
14
+ :disabled-days-of-Week="[]"
15
+ :format="'yyyy-MM-dd HH:mm:ss'"
16
+ :show-reset-button="reset">
17
+ </datepicker>
18
+ </div>
19
+ <div class="col-sm-3">
20
+ <label class="font_normal_body" for="endDate">结束日期:</label>
21
+ <datepicker id="endDate" placeholder="结束日期" style="width: 60%"
22
+ v-model="model.endDate"
23
+ :value.sync="model.endDate"
24
+ :disabled-days-of-Week="[]"
25
+ :format="'yyyy-MM-dd HH:mm:ss'"
26
+ :show-reset-button="reset">
27
+ </datepicker>
28
+ </div>
29
+ <div class="col-sm-3">
30
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;公司&nbsp;&nbsp;&nbsp;</label>
31
+ <right-tree @re-res="$parent.$parent.getRes"></right-tree>
32
+ </div>
33
+ <div class="span col-sm-3" style="text-align: right;">
34
+ <button class="button_search" @click="$parent.$parent.searchData()">查询</button>
35
+ <report-print id='gasprice' top='3cm' left='0' width='100%' height='100%' :preview="true"></report-print>
36
+ <report-excel id='gasprice'
37
+ v-if="$parent.$parent.jurisdiction.includes('excel导出')"
38
+ ></report-excel>
39
+ </div>
40
+ </div>
41
+ </div>
42
+ </criteria>
43
+ <div partial='list' v-el:handcollect id='gasprice' style="overflow-y: scroll">
44
+ <table class='tableprint' style="margin: 0px auto">
45
+ <thead>
46
+ <tr>
47
+ <th colspan='7' style="font-weight: normal; text-align: left;">
48
+ <h3 style="text-align: center">咸阳财务收费报表</h3>
49
+ </th>
50
+ </tr>
51
+ <tr>
52
+ <th colspan='8' style="font-weight: normal; text-align: center;">
53
+ 开始时间:{{model.model.startDate}}&nbsp;&nbsp;&nbsp;
54
+ 结束时间:{{ model.model.endDate }}
55
+ </th>
56
+ </tr>
57
+ <tr>
58
+ <th colspan='8' style="font-weight: normal; text-align: center;">
59
+ 打印时间:{{{$parent.printTime}}}
60
+ </th>
61
+ </tr>
62
+ <tr>
63
+ <th colspan='8' style="font-weight: normal; text-align: center;">
64
+ <div>
65
+ <span v-show="$parent.orgname.trim()!=''">公司:{{$parent.orgname}}</span>
66
+ <span v-show="$parent.depname.trim()!=''"> 部门:{{$parent.depname}}</span>
67
+ <span v-show="$parent.operatorname.trim()!=''">人员:{{$parent.operatorname}}</span>
68
+ </div>
69
+ </th>
70
+ </tr>
71
+ </thead>
72
+ <tr>
73
+ <td colspan='12'>
74
+ {{{ model.data.substring(26,model.data.length-8) }}}
75
+ </td>
76
+ </tr>
77
+ <tfoot>
78
+ <tr style="text-align: left">
79
+ <th colspan='3'>财务审核:</th>
80
+ <th colspan='3'>收款审核:</th>
81
+ <th colspan='1'>收款员:</th>
82
+ </tr>
83
+ </tfoot>
84
+ </table>
85
+ {{{ $parent.reportStr}}}
86
+ </div>
87
+ </criteria-paged>
88
+ <modal :show.sync="show" v-ref:modal small backdrop="false">
89
+ <header slot="modal-header" class="modal-header">
90
+ <h4 class="modal-title">输入文件名称</h4>
91
+ </header>
92
+ <article slot="modal-body" class="modal-body">
93
+ <div class="form-group">
94
+ <input type="text" class="form-control" v-model="filename" placeholder='保存的文件名'>
95
+ </div>
96
+ </article>
97
+ <footer slot="modal-footer" class="modal-footer">
98
+ <button v-show="show" type="button" class="btn btn-default" @click='close'>取消</button>
99
+ <button v-show="show" type="button" class="btn btn-success" @click='confirm(filename)'>确认</button>
100
+ </footer>
101
+ </modal>
102
+ </div>
103
+ </template>
104
+
105
+ <script>
106
+ import {DataModel} from 'vue-client'
107
+ import co from 'co'
108
+
109
+ let saveFile = function* (self) {
110
+ // 线验证文件是否重名
111
+ let count = yield self.$resetpost('rs/sql/manageSingleTable',
112
+ {data: {tablename: 't_report_record', condition: `f_files_name = '${self.filename}'`}},
113
+ {resolveMsg: null, rejectMsg: null})
114
+ if (count.data.length > 0) {
115
+ self.$showAlert('无法保存,文件名重名', 'warning', 3000)
116
+ return
117
+ }
118
+ let saveBack = yield self.$resetpost('rs/logic/saveReport', {
119
+ f_files_content: self.$refs.paged.$els.handcollect.innerHTML,
120
+ f_files_name: self.filename, f_files_type: self.data.f_report_type, f_component_name: 'manage-bus-summary',
121
+ f_operator: this.$login.f.name, f_query_month: `${self.model.model.startDate}-${self.model.model.endDate}`,
122
+ f_outlets: this.$login.f.depname
123
+ })
124
+ if (saveBack.data.status === 'succeed') {
125
+ self.show = false
126
+ self.filename = ''
127
+ // 后台保存完成,通知刷新
128
+ self.$dispatch('save-success', self.filename)
129
+ }
130
+ }
131
+ export default {
132
+ title: '日期汇总表',
133
+ props: ['data'],
134
+ data() {
135
+ return {
136
+ printTime: this.$login.toStandardTimeString(),
137
+ depresid: [],
138
+ userresid: [],
139
+ f_orgid: this.$login.f.orgid,
140
+ f_depid: this.$login.f.depids,
141
+ f_operatorid: this.$login.f.id,
142
+ jurisdiction: this.$login.r,
143
+ operatorid: [],
144
+ depid: [],
145
+ orgname: '',
146
+ depname: '',
147
+ operatorname: '',
148
+ f_inputtor: [],
149
+ f_user_type: '',
150
+ orgCondtionStr: '1=1',
151
+ model: new DataModel('rs/report/xianyangCharge', {
152
+ startDate: 'this.model.startDate', endDate: 'this.model.endDate',
153
+ f_orgid: 'this.model.f_orgid'
154
+ }),
155
+ reportStr: null,
156
+ show: false
157
+ }
158
+ },
159
+ ready() {
160
+ this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
161
+ this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
162
+ // this.$refs.paged.$refs.criteria.search()
163
+ console.log(this.$login.f)
164
+ },
165
+ methods: {
166
+ searchData() {
167
+ this.$refs.paged.$refs.criteria.search()
168
+ },
169
+ selfSearch(args) {
170
+ console.log(args.condition + 'yyyqqq')
171
+ this.printTime = this.$login.toStandardTimeString()
172
+ let orgcondition = '1=1'
173
+ if (this.f_orgid[0]) {
174
+ var id = this.f_orgid.toString()
175
+ var ids = id.split(',')
176
+ console.log('几个公司:' + ids.length)
177
+ var orgids = ''
178
+ var f_orgids = ''
179
+ if (ids.length == 1) {
180
+ orgcondition += " and s.F_PAYMENT != '银行'"
181
+ f_orgids += "'" + ids[0] + "'"
182
+ } else {
183
+ for (var i = 0; i < ids.length; i++) {
184
+ console.log('id = ' + ids[i])
185
+ orgids += "'" + ids[i] + "',"
186
+ }
187
+ f_orgids = orgids.substring(0, orgids.length - 1)
188
+ }
189
+
190
+ orgcondition += " and s.f_orgid in ( " + f_orgids + " ) "
191
+ console.log('f_orgids:' + f_orgids)
192
+ }
193
+ this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
194
+ this.$refs.paged.search(args)
195
+ },
196
+ getRes(obj) {
197
+ this.orgname = obj.res[0]
198
+ this.depresid = obj.resids
199
+ this.f_orgid = obj.resids
200
+ },
201
+ getdep(obj, val) {
202
+ // this.depname = val[0]
203
+ this.userresid = obj
204
+ this.f_depid = obj
205
+ },
206
+ getuser(obj, val) {
207
+ this.operatorname = val[0]
208
+ this.f_operatorid = obj
209
+ },
210
+ // 根据文件路径获取储存的报表内容
211
+ getFileContent(path) {
212
+ this.$resetpost('rs/logic/getReportFileContent', {f_files_path: path}, {
213
+ resolveMsg: null,
214
+ rejectMsg: null
215
+ }).then((res) => {
216
+ this.reportStr = res.data.filecontent
217
+ this.model.state = '正确'
218
+ })
219
+ },
220
+ confirm() {
221
+ if (!this.filename || this.filename === '') {
222
+ this.$showAlert('无法保存,文件名不能为空', 'warning', 3000)
223
+ }
224
+ let saveGen = saveFile(this)
225
+ co(saveGen)
226
+ },
227
+ close() {
228
+ this.show = false
229
+ },
230
+ // 将报表保存成文件
231
+ confirmReport() {
232
+ this.show = true
233
+ this.filename = this.data.f_report_name + this.$login.toStandardDateString()
234
+ },
235
+ },
236
+ watch: {
237
+ 'data'(val) {
238
+ if (val.f_files_path) {
239
+ this.getFileContent(val.f_files_path)
240
+ } else {
241
+ this.reportStr = null
242
+ }
243
+ }
244
+ },
245
+ computed: {
246
+ usertypes() {
247
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
248
+ },
249
+ inputtor() {
250
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('抄表员')]
251
+ },
252
+ }
253
+ }
254
+ </script>
255
+ <style scoped>
256
+ .noborder {
257
+ border: none;
258
+ }
259
+ </style>