manage-client 3.3.120 → 3.3.121-cs

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 (27) hide show
  1. package/build/dev-server.js +189 -189
  2. package/package.json +111 -111
  3. package/src/components/SellReport/OpenEticketSummary.vue +245 -0
  4. package/src/components/SellReport/PublicGasPriceReport.vue +257 -0
  5. package/src/components/handReport/WebGastypeReport.vue +5 -5
  6. package/src/components/sale/businessquery/ChargeQuery.vue +7 -3
  7. package/src/components/sale/businessquery/FMYGasQuery.vue +32 -25
  8. package/src/components/sale/filesquery/RecordInfoQuery.vue +4 -4
  9. package/src/filiale/WEINAN/ResSelectGroupNew.vue +8 -1
  10. package/src/filiale/WEINAN/businessquery/WallHangingFurnaceUserQuery.vue +1 -0
  11. package/src/filiale/lixianV3/ChangeMeterQuery.vue +735 -729
  12. package/src/filiale/lixianV3/GasAnalysisQuery.vue +12 -6
  13. package/src/filiale/lixianV3/RecordInfoQuery.vue +1448 -0
  14. package/src/filiale/lixianV3/config/exportConfig.js +2276 -2275
  15. package/src/filiale/lixianV3/sale.js +21 -19
  16. package/src/filiale/lixianV3/useGasYearRatioQuery.vue +39 -6
  17. package/src/filiale/ningjin/GasStatistics.vue +1 -1
  18. package/src/filiale/shanxian/Paymentpie.vue +16 -34
  19. package/src/filiale/shanxian/SiteManager.vue +29 -47
  20. package/src/filiale/taizhoukesi/NewGasStatistics.vue +536 -0
  21. package/src/filiale/taizhoukesi/config/DefaultPrint.js +6 -0
  22. package/src/filiale/taizhoukesi/config/exportConfig.js +2377 -0
  23. package/src/filiale/taizhoukesi/config/tableConfig.js +54 -0
  24. package/src/filiale/taizhoukesi/sale.js +6 -0
  25. package/src/filiale/taizhoukesi/webmeterManage.js +6 -0
  26. package/src/main.js +68 -68
  27. package/src/reportManage.js +8 -0
@@ -0,0 +1,245 @@
1
+ <template>
2
+ <div class="basic-main" style="height: 98%">
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-2 form-group" >
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-2 form-group" >
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-2 form-group">
30
+ <label class="font_normal_body">&nbsp;&nbsp;公&nbsp;&nbsp;&nbsp;司&nbsp;&nbsp; </label>
31
+ <right-tree @re-res="$parent.$parent.getRes"></right-tree>
32
+ </div>
33
+ <div class="col-sm-2 form-group">
34
+ <label class="font_normal_body">&nbsp;&nbsp;部&nbsp;&nbsp;&nbsp;门&nbsp;&nbsp; </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-2 form-group">
44
+ <label class="font_normal_body">&nbsp;&nbsp;人&nbsp;&nbsp;&nbsp;员&nbsp;&nbsp; </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
+
53
+
54
+
55
+ </div>
56
+ <div class="span" style = "float:right;">
57
+ <button class="button_search" @click="$parent.$parent.searchData()">查询</button>
58
+ <report-print id='gasprice' top='3cm' left='0' width='100%' height='100%' :preview="true"></report-print>
59
+ <report-excel id='gasprice'></report-excel>
60
+ </div>
61
+ </div>
62
+ </criteria>
63
+ <div partial='list' v-el:handcollect id='gasprice' style="overflow-y: scroll">
64
+ <table class='tableprint' style="margin: 0px auto;">
65
+ <thead>
66
+ <tr>
67
+ <th colspan='18' style="font-weight: normal; text-align: left;">
68
+ <h3 style="text-align: center">开票统计报表</h3>
69
+ </th>
70
+ </tr>
71
+ <tr>
72
+ <th colspan='18' style="font-weight: normal; text-align: center;">
73
+ 开始时间:{{model.model.startDate}}&nbsp;&nbsp;&nbsp;
74
+ 结束时间:{{ model.model.endDate }}&nbsp;&nbsp;<br/>
75
+ 打印时间:{{{$parent.printTime}}}
76
+ </th>
77
+ </tr>
78
+ </thead>
79
+ <tr>
80
+ <td colspan='18'>
81
+ {{{ model.data.substring(26,model.data.length-8) }}}
82
+ </td>
83
+ </tr>
84
+ <tfoot>
85
+ <tr style="text-align: left">
86
+ <th colspan='6'>财务审核:</th>
87
+ <th colspan='6'>收款审核:</th>
88
+ <th colspan='6'>收款员:</th>
89
+ </tr>
90
+ </tfoot>
91
+ </table>
92
+ {{{ $parent.reportStr}}}
93
+ </div>
94
+ </criteria-paged>
95
+ <modal :show.sync="show" v-ref:modal small backdrop="false">
96
+ <header slot="modal-header" class="modal-header">
97
+ <h4 class="modal-title">输入文件名称</h4>
98
+ </header>
99
+ <article slot="modal-body" class="modal-body">
100
+ <div class="form-group">
101
+ <input type="text" class="form-control" v-model="filename" placeholder='保存的文件名'>
102
+ </div>
103
+ </article>
104
+ <footer slot="modal-footer" class="modal-footer">
105
+ <button v-show="show" type="button" class="btn btn-default" @click='close'>取消</button>
106
+ <button v-show="show" type="button" class="btn btn-success" @click='confirm(filename)'>确认</button>
107
+ </footer>
108
+ </modal>
109
+ </div>
110
+ </template>
111
+
112
+ <script>
113
+ import { DataModel } from 'vue-client'
114
+ import co from 'co'
115
+ let saveFile = function * (self) {
116
+ // 线验证文件是否重名
117
+ let count = yield self.$resetpost('rs/sql/manageSingleTable',
118
+ {data: {tablename: 't_report_record', condition: `f_files_name = '${self.filename}'`}},
119
+ {resolveMsg: null, rejectMsg: null})
120
+ if (count.data.length > 0) {
121
+ self.$showAlert('无法保存,文件名重名', 'warning', 3000)
122
+ return
123
+ }
124
+ let saveBack = yield self.$resetpost('rs/logic/saveReport', {f_files_content: self.$refs.paged.$els.handcollect.innerHTML,
125
+ f_files_name: self.filename, f_files_type: self.data.f_report_type, f_component_name: 'manage-bus-summary',
126
+ f_operator: this.$login.f.name, f_query_month: `${self.model.model.startDate}-${self.model.model.endDate}`,
127
+ f_outlets: this.$login.f.depname})
128
+ if (saveBack.data.status === 'succeed') {
129
+ self.show = false
130
+ self.filename = ''
131
+ // 后台保存完成,通知刷新
132
+ self.$dispatch('save-success', self.filename)
133
+ }
134
+ }
135
+ export default {
136
+ title: '开票统计报表',
137
+ props: ['data'],
138
+ data () {
139
+ return {
140
+ printTime: this.$login.toStandardTimeString(),
141
+ depresid: [],
142
+
143
+ userresid: [],
144
+ f_orgid: this.$login.f.orgid,
145
+ f_depid: this.$login.f.depids,
146
+ f_operatorid: this.$login.f.id,
147
+ operatorid: [],
148
+ depid: [],
149
+ orgname: '',
150
+ depname: '',
151
+ operatorname: '',
152
+ meterbrands: [],
153
+ orgCondtionStr: '1=1',
154
+ model: new DataModel('rs/report/openEticketSummary', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
155
+ f_orgid: 'this.model.f_orgid'}),
156
+ reportStr: null,
157
+ show: false,
158
+ }
159
+ },
160
+ ready () {
161
+ this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardYearMonth() + '-01 00:00:00'
162
+ this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
163
+ console.log(this.$login.f)
164
+ },
165
+ methods: {
166
+ searchData () {
167
+ this.$refs.paged.$refs.criteria.search()
168
+ },
169
+ selfSearch (args) {
170
+ this.printTime = this.$login.toStandardTimeString()
171
+ let orgcondition = ` f_orgid in ('${this.f_orgid}')`
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
+ this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
179
+ this.$refs.paged.search(args)
180
+ },
181
+ getRes (obj) {
182
+ this.orgname = obj.res[0]
183
+ this.depresid = obj.resids
184
+ this.f_orgid = obj.resids
185
+ },
186
+ getdep (obj, val) {
187
+ // this.depname = val[0]
188
+ this.userresid = obj
189
+ this.f_depid = obj
190
+ },
191
+ getuser ( obj, val) {
192
+ this.operatorname = val[0]
193
+ this.f_operatorid = obj
194
+ },
195
+
196
+ // 根据文件路径获取储存的报表内容
197
+ getFileContent (path) {
198
+ this.$resetpost('rs/logic/getReportFileContent', {f_files_path: path}, {resolveMsg: null, rejectMsg: null}).then((res) => {
199
+ this.reportStr = res.data.filecontent
200
+ this.model.state = '正确'
201
+ })
202
+ },
203
+ confirm () {
204
+ if (!this.filename || this.filename === '') {
205
+ this.$showAlert('无法保存,文件名不能为空', 'warning', 3000)
206
+ }
207
+ let saveGen = saveFile(this)
208
+ co(saveGen)
209
+ },
210
+ close () {
211
+ this.show = false
212
+ },
213
+ // 将报表保存成文件
214
+ confirmReport () {
215
+ this.show = true
216
+ this.filename = this.data.f_report_name + this.$login.toStandardDateString()
217
+ },
218
+ },
219
+ watch: {
220
+ 'data' (val) {
221
+ if (val.f_files_path) {
222
+ this.getFileContent(val.f_files_path)
223
+ } else {
224
+ this.reportStr = null
225
+ }
226
+ }
227
+ },
228
+ computed: {
229
+ metertypes () {
230
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
231
+ },
232
+ chargetype () {
233
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('付款方式')]
234
+ }
235
+ }
236
+ }
237
+ </script>
238
+ <style scoped>
239
+ .noborder{
240
+ border: none;
241
+ }
242
+ .fontSize{
243
+ font-size: 13px;
244
+ }
245
+ </style>
@@ -0,0 +1,257 @@
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">&nbsp;&nbsp;&nbsp;公司&nbsp;&nbsp;&nbsp;</label>
29
+ <right-tree @re-res="$parent.$parent.getRes"></right-tree>
30
+ </div>
31
+ <div class="col-sm-2 form-group">
32
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;部门&nbsp;&nbsp;&nbsp; </label>
33
+ <res-select restype='department'
34
+ @res-select="$parent.$parent.getdep"
35
+ :parentresid ="$parent.$parent.depresid"
36
+ :initresid='$parent.$parent.depid'>
37
+ </res-select>
38
+
39
+ </div>
40
+ <div class="col-sm-2 form-group">
41
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;人员&nbsp;&nbsp;&nbsp; </label>
42
+ <res-select restype='user'
43
+ @res-select="$parent.$parent.getuser"
44
+ :parentresid="$parent.$parent.userresid"
45
+ :initresid='$parent.$parent.operatorid'>
46
+ </res-select>
47
+ </div>
48
+ <div class="col-sm-2 form-group">
49
+ <label class="font_normal_body" title="分组项一">分组项一</label>
50
+ <v-select :value.sync="model.f_public_group1"
51
+ v-model="model.f_public_group1"
52
+ v-ref:groupone
53
+ :options='$parent.$parent.group1' placeholder='请选择'
54
+ close-on-select></v-select>
55
+ </div>
56
+ <div class="col-sm-2 form-group">
57
+ <label class="font_normal_body" title="分组项二">分组项二</label>
58
+ <v-select :value.sync="model.f_public_group2"
59
+ v-ref:grouptwo
60
+ v-model="model.f_public_group2"
61
+ :options='$parent.$parent.group2' placeholder='请选择'
62
+ close-on-select></v-select>
63
+ </div>
64
+ <div style = "float:right;">
65
+ <button class="button_search" @click="$parent.$parent.searchData()">查询</button>
66
+ <report-print id='gasprice' top='3cm' left='0' width='100%' height='100%' :preview="true"></report-print>
67
+ <report-excel id='gasprice'></report-excel>
68
+ </div>
69
+ </div>
70
+ </div>
71
+ </criteria>
72
+ <div partial='list' v-el:handcollect id='gasprice' style="overflow-y: scroll">
73
+ <table class='tableprint' style="margin: 0px auto" v-if="!$parent.data.f_files_path">
74
+ <thead>
75
+ <tr>
76
+ <th colspan='5' style="font-weight: bold; text-align: left;">
77
+ <h3 style="text-align: center">气量统计报表</h3>
78
+ </th>
79
+ </tr>
80
+ <tr>
81
+ <th colspan='5' style="font-weight: normal; text-align: center;">
82
+ 开始时间:{{model.model.startDate}}&nbsp;&nbsp;&nbsp;
83
+ 结束时间:{{ model.model.endDate }}&nbsp;&nbsp;
84
+ </th>
85
+ </tr>
86
+ <tr>
87
+ <th colspan='5' style="font-weight: normal; text-align: center;">
88
+ 打印时间:{{{$parent.printTime}}}
89
+ </th>
90
+ </tr>
91
+ <tr>
92
+ <th colspan='5' style="font-weight: normal; text-align: center;">
93
+ <div>
94
+ <span v-show="$parent.orgname.trim()!=''">公司:{{$parent.orgname}}</span>
95
+ <span v-show="$parent.depname.trim()!=''"> 部门:{{$parent.depname}}</span>
96
+ </div>
97
+ </th>
98
+ </tr>
99
+ </thead>
100
+ <tr>
101
+ <td colspan='5' style="font-weight: normal;" id="test">
102
+ {{{ model.data.substring(26,model.data.length-8) }}}
103
+ </td>
104
+ </tr>
105
+ <!-- <tfoot>-->
106
+ <!-- <tr style="text-align: left">-->
107
+ <!-- <th colspan='3' style="font-weight: normal; text-align: center;">-->
108
+ <!-- 收款人:-->
109
+ <!-- </th><th colspan='3' style="font-weight: normal; text-align: center;">-->
110
+ <!-- 审核人:-->
111
+ <!-- </th><th colspan='2' style="font-weight: normal; text-align: center;">-->
112
+ <!-- 经手人:-->
113
+ <!-- </th>-->
114
+ <!-- </tr>-->
115
+ <!-- </tfoot>-->
116
+ </table>
117
+ {{{ $parent.reportStr}}}
118
+ </div>
119
+ </criteria-paged>
120
+ </div>
121
+ </template>
122
+
123
+ <script>
124
+ import { DataModel } from 'vue-client'
125
+ import co from 'co'
126
+ export default {
127
+ title: '气量统计报表',
128
+ props: ['data'],
129
+ data () {
130
+ return {
131
+ printTime: this.$login.toStandardTimeString(),
132
+ depresid: [],
133
+ userresid: [],
134
+ initres: {
135
+ org:[this.$login.f.orgid],
136
+ dep:[],
137
+ user:[]
138
+ },
139
+ f_public_group1: '',
140
+ f_public_group2: '',
141
+ f_orgid: this.$login.f.orgid,
142
+ f_depid: this.$login.f.depids,
143
+ f_operatorid: this.$login.f.id,
144
+ operatorid: [],
145
+ depid: [],
146
+ orgname: '',
147
+ group1Name: '',
148
+ group2Name: '',
149
+ depname: '',
150
+ operatorname: '',
151
+ orgCondtionStr: '1=1',
152
+ model: new DataModel('rs/report/PublicGasPriceReport',
153
+ {startDate: 'this.model.startDate',
154
+ endDate: 'this.model.endDate',
155
+ f_orgid: 'this.model.f_orgid',
156
+ f_public_group1: 'this.model.f_public_group1[0]',
157
+ f_public_group2: 'this.model.f_public_group2[0]',
158
+ group1Name: 'this.model.group1Name',
159
+ group2Name: 'this.model.group2Name'
160
+ }
161
+ ),
162
+ reportStr: null,
163
+ show: false,
164
+ spans: ''
165
+ }
166
+ },
167
+ ready () {
168
+ this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
169
+ this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
170
+ // this.$refs.paged.$refs.criteria.search()
171
+ },
172
+ methods: {
173
+ searchData () {
174
+ this.$refs.paged.$refs.criteria.search()
175
+ },
176
+ selfSearch (args) {
177
+ this.printTime = this.$login.toStandardTimeString()
178
+ this.$refs.paged.$refs.criteria.model.group1Name = this.$refs.paged.$refs.criteria.$refs.groupone.selectedItems
179
+ this.$refs.paged.$refs.criteria.model.group2Name = this.$refs.paged.$refs.criteria.$refs.grouptwo.selectedItems
180
+ let orgcondition = '1 = 1'
181
+ if (this.f_orgid[0]) {
182
+ orgcondition += ` and f_orgid in ('${this.f_orgid}')`
183
+ }
184
+ if (this.f_depid[0]) {
185
+ orgcondition += ` and f_depid in ('${this.f_depid}')`
186
+ }
187
+ if(this.f_operatorid[0]) {
188
+ orgcondition += ` and f_operatorid in ('${this.f_operatorid}')`
189
+ }
190
+ let name1 = args.model.f_public_group1
191
+ let name2 = args.model.f_public_group2
192
+ if (name1 == null || name1 == '' || name2 == null || name2 == ''){
193
+ alert("请选择分组项!!!")
194
+ return
195
+ }
196
+ if (name2.toString() == name1.toString()){
197
+ alert("分组项一与分组项二不能重复!!!")
198
+ return
199
+ }
200
+ console.log(args.model.f_public_group1)
201
+ this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
202
+ this.$refs.paged.search(args)
203
+ },
204
+ getRes (obj) {
205
+ this.orgname = obj.res[0]
206
+ this.depresid = obj.resids
207
+ this.f_orgid = obj.resids
208
+ },
209
+ getdep (obj, val) {
210
+ this.depname = val[0]
211
+ this.userresid = obj
212
+ this.f_depid = obj
213
+ },
214
+ getuser ( obj, val) {
215
+ this.operatorname = val[0]
216
+ this.f_operatorid = obj
217
+ }
218
+ },
219
+ watch: {
220
+ 'data' (val) {
221
+ if (val.f_files_path) {
222
+ this.getFileContent(val.f_files_path)
223
+ } else {
224
+ this.reportStr = null
225
+ }
226
+ },
227
+ 'model.data' (val) {
228
+ let tab = document.getElementById('test').children[0]
229
+ var tds = tab.getElementsByTagName('td')
230
+ var num = 0
231
+ for (let td of tds) {
232
+ let span = td.getAttribute('colspan')
233
+ num = num + ((span ? span : 1) - 0)
234
+ }
235
+ this.spans = num
236
+ }
237
+ },
238
+ computed: {
239
+ group1() {
240
+ return [{label:'用户类型', value:'f_user_type'},
241
+ {label:'用气性质', value:'f_gasproperties'},
242
+ {label:'气价名称 ', value:'f_price_name'}]
243
+ },
244
+ group2() {
245
+ return [{label:'用户类型', value:'f_user_type'},
246
+ {label:'用气性质', value:'f_gasproperties'},
247
+ {label:'气价名称', value:'f_price_name'},
248
+ {label:'单价', value:'f_stair_price'}]
249
+ }
250
+ }
251
+ }
252
+ </script>
253
+ <style scoped>
254
+ .noborder{
255
+ border: none;
256
+ }
257
+ </style>
@@ -51,23 +51,23 @@
51
51
  <table class='tableprint' style="margin: 0px auto" v-if="!$parent.data.f_files_path">
52
52
  <thead>
53
53
  <tr>
54
- <th colspan='5' style="font-weight: bold; text-align: left;">
54
+ <th colspan='4' style="font-weight: bold; text-align: left;">
55
55
  <h3 style="text-align: center">抄表性质统计报表</h3>
56
56
  </th>
57
57
  </tr>
58
58
  <tr>
59
- <th colspan='5' style="font-weight: normal; text-align: center;">
59
+ <th colspan='4' style="font-weight: normal; text-align: center;">
60
60
  开始时间:{{model.model.startDate}}&nbsp;&nbsp;&nbsp;
61
61
  结束时间:{{ model.model.endDate }}&nbsp;&nbsp;
62
62
  </th>
63
63
  </tr>
64
64
  <tr>
65
- <th colspan='5' style="font-weight: normal; text-align: center;">
65
+ <th colspan='4' style="font-weight: normal; text-align: center;">
66
66
  打印时间:{{{$parent.printTime}}}
67
67
  </th>
68
68
  </tr>
69
69
  <tr>
70
- <th colspan='5' style="font-weight: normal; text-align: center;">
70
+ <th colspan='4' style="font-weight: normal; text-align: center;">
71
71
  <div>
72
72
  <span v-show="$parent.orgname.trim()!=''">公司:{{$parent.orgname}}</span>
73
73
  <span v-show="$parent.depname.trim()!=''"> 部门:{{$parent.depname}}</span>
@@ -76,7 +76,7 @@
76
76
  </tr>
77
77
  </thead>
78
78
  <tr>
79
- <td colspan='5' style="font-weight: normal;" id="test">
79
+ <td colspan='4' style="font-weight: normal;" id="test">
80
80
  {{{ model.data.substring(26,model.data.length-8) }}}
81
81
  </td>
82
82
  </tr>
@@ -1001,9 +1001,12 @@
1001
1001
  })
1002
1002
  },
1003
1003
  methods: {
1004
- async batchPrintBill(row, type){
1004
+ async batchPrintBill(row, type) {
1005
1005
  this.operate_type = type
1006
- if (this.$refs.paged.$refs.cri.model.f_state.length === 1 && this.$refs.paged.$refs.cri.model.f_state[0] === '有效') {
1006
+ console.log('this.$refs.paged.$refs.cri.model.f_state', this.$refs.paged.$refs.cri.model.f_state)
1007
+ console.log(this.$refs.paged.$refs.cri.model.f_state.length === 1)
1008
+ console.log(this.$refs.paged.$refs.cri.model.f_state[0] == '有效')
1009
+ if (this.$refs.paged.$refs.cri.model.f_state.length === 1 && this.$refs.paged.$refs.cri.model.f_state[0] == '有效') {
1007
1010
  if (type === '票据补打') {
1008
1011
  this.batchPrintData.push(row)
1009
1012
  this.$showMessage(`您确定补打本张票据吗???`, ['confirm', 'cancel']).then(async (res) => {
@@ -1022,7 +1025,8 @@
1022
1025
  } else {
1023
1026
  this.$showMessage(`请先查询数据!!!`, ['confirm'])
1024
1027
  }
1025
- }
1028
+ }
1029
+ } else {
1026
1030
  this.$showMessage(`请选择有效的收费记录进行票据补打!!!`, ['confirm'])
1027
1031
  }
1028
1032
  },