manage-client 3.1.10 → 3.1.11-ls
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.gradle/6.1.1/fileHashes/fileHashes.bin +0 -0
- package/build/dev-server.js +6 -19
- package/package.json +3 -3
- package/src/components/SellReport/ManageBusSummary.vue +150 -187
- package/src/components/SellReport/ManageDayGas.vue +120 -120
- package/src/components/SellReport/ManageMonthGas.vue +124 -124
- package/src/components/SellReport/ManageOtherCharge.vue +121 -121
- package/src/components/SellReport/ManageSellType.vue +133 -133
- package/src/components/SellReport/ReportItems.vue +1 -2
- package/src/components/SellReport/jingwei/ManageHandSellMoney.vue +120 -120
- package/src/components/handReport/GeneraHandReport.vue +235 -0
- package/src/components/sale/businessquery/AccountQuery/GasReimbursementRate.vue +1 -1
- package/src/components/sale/businessquery/BusinesQuery.vue +3 -3
- package/src/components/sale/businessquery/BusinessManage.vue +152 -155
- package/src/components/sale/businessquery/CancellationQuery.vue +1 -1
- package/src/components/sale/businessquery/CardHandplanQuery.vue +1 -1
- package/src/components/sale/businessquery/ChangeMeterQuery.vue +1 -12
- package/src/components/sale/businessquery/ChangeUserQuery.vue +1 -7
- package/src/components/sale/businessquery/DisableQuery.vue +1 -1
- package/src/components/sale/businessquery/EnableQuery.vue +1 -1
- package/src/components/sale/businessquery/FillCardQuery.vue +1 -1
- package/src/components/sale/businessquery/FillGasQuery.vue +1 -1
- package/src/components/sale/businessquery/GasInspection.vue +1 -1
- package/src/components/sale/businessquery/HandGasPropertiesQuery.vue +19 -10
- package/src/components/sale/businessquery/HandplanQuery.vue +1 -1
- package/src/components/sale/businessquery/InspectListGas.vue +1 -1
- package/src/components/sale/businessquery/InspectListUser.vue +1 -1
- package/src/components/sale/businessquery/MoveMeterQuery.vue +1 -1
- package/src/components/sale/businessquery/OtherChargeQuery.vue +1 -1
- package/src/components/sale/businessquery/ReverseQuery.vue +1 -1
- package/src/components/sale/businessquery/SalesGasClassification.vue +168 -168
- package/src/components/sale/businessquery/SellingHand.vue +1 -1
- package/src/components/sale/businessquery/SendbookQuery.vue +1 -1
- package/src/components/sale/businessquery/SuspiciousUserQuery.vue +1 -1
- package/src/components/sale/businessquery/TransferQuery.vue +1 -1
- package/src/components/sale/businessquery/UserInsured.vue +1 -1
- package/src/components/sale/businessquery/overDueQuery.vue +1 -1
- package/src/components/sale/businessquery/priceadjustQuery.vue +1 -1
- package/src/components/sale/config/exportConfig.js +6 -12
- package/src/components/sale/filesquery/ArchivesManage.vue +0 -3
- package/src/components/sale/filesquery/DeviceQuery.vue +1 -1
- package/src/components/sale/filesquery/MeterQuery.vue +1 -1
- package/src/components/sale/filesquery/RecordInfoQuery.vue +9 -83
- package/src/components/sale/filesquery/UserDeviceQuery.vue +1 -1
- package/src/components/sale/filesquery/UserQuery.vue +0 -46
- package/src/components/sale/report/aode/YearByUserType.vue +272 -272
- package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +28 -19
- package/src/components/webmeter/DrillData/LostContactEcharts.vue +14 -32
- package/src/components/webmeter/DrillData/UserGasAll.vue +600 -596
- package/src/components/webmeter/DrillData/UserGasEcharts.vue +4 -4
- package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +27 -13
- package/src/components/webmeter/instruction/NewQueryInstructMain.vue +1 -1
- package/src/components/webmeter/newwebmeter/NewException/MeterExceptionList.vue +1 -1
- package/src/components/webmeter/newwebmeter/NewException/NewExceptionEcharsTotal.vue +566 -753
- package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +2 -6
- package/src/components/webmeter/newwebmeter/UserGasEchartsList.vue +3 -10
- package/src/components/webmeter/newwebmeter/UserGasList.vue +10 -12
- package/src/components/webmeter/newwebmeter/UserInstructList.vue +1 -1
- package/src/components/webmeter/report/ReportList.vue +1 -1
- package/src/filiale/WEINAN/MeterQuery.vue +1 -1
- package/src/filiale/WEINAN/OtherChargeQuery.vue +521 -521
- package/src/filiale/WEINAN/RecordInfoQuery.vue +1 -1
- package/src/filiale/WEINAN/manage/ChangeMeterQuery.vue +1 -1
- package/src/filiale/gongyi/sale/businessquery/BusinessManage.vue +19 -19
- package/src/filiale/gongyi/sale/businessquery/ChangeMeterQuery.vue +0 -11
- package/src/filiale/gongyi/sale/filesquery/UserQuery.vue +0 -17
- package/src/filiale/jingwei/RecordInfoQuery.vue +1 -1
- package/src/filiale/jingzhou/ChargeQuery.vue +5 -15
- package/src/filiale/jingzhou/HandplanQuery.vue +1 -1
- package/src/filiale/jingzhou/config/exportConfig.js +13 -17
- package/src/filiale/liaoyuan/RecordInfoQuery.vue +14 -55
- package/src/filiale/liaoyuan/ReportList.vue +1 -1
- package/src/filiale/macheng/MeterQuery.vue +1 -1
- package/src/filiale/meihekou/CardHandplanQuery.vue +1 -1
- package/src/filiale/meihekou/ChargeQuery.vue +4 -4
- package/src/filiale/meihekou/HandplanQuery.vue +1 -1
- package/src/filiale/meihekou/RecordInfoQuery.vue +21 -3
- package/src/filiale/meihekou/sale.js +1 -5
- package/src/filiale/pingxiang/ChangeUserQuery.vue +1 -1
- package/src/filiale/pingxiang/sale.js +9 -9
- package/src/filiale/qingtongxia/sale.js +13 -13
- package/src/filiale/rongcheng/UserQuery.vue +827 -827
- package/src/filiale/shaoguan/BusinessManage.vue +162 -162
- package/src/filiale/shaoguan/HandplanQuery.vue +1 -1
- package/src/filiale/shaoguan/OtherChargeQuery.vue +590 -590
- package/src/filiale/shaoguan/TransferQuery.vue +403 -403
- package/src/filiale/shaoguan/errorHandplanQuery.vue +366 -366
- package/src/filiale/shaoguan/overDueQuery.vue +1 -1
- package/src/filiale/shaoguan/sale/businessquery/ChangeUserQuery.vue +1 -1
- package/src/filiale/shaoguan/sale/businessquery/ExemptQuery.vue +314 -314
- package/src/filiale/shaoguan/sale/businessquery/FMYGasQuery.vue +687 -687
- package/src/filiale/shaoguan/sale/businessquery/PaymentChangeQuery.vue +338 -338
- package/src/filiale/shaoguan/sale/businessquery/ReconcileQuery.vue +426 -426
- package/src/filiale/shaoguan/sale.js +33 -33
- package/src/main.js +5 -5
- package/src/newmanage.js +0 -34
- package/src/reportManage.js +4 -0
- package/src/saleManage.js +483 -492
- package/.gradle/5.4.1/fileChanges/last-build.bin +0 -0
- package/.gradle/5.4.1/fileHashes/fileHashes.lock +0 -0
- package/.gradle/5.4.1/gc.properties +0 -0
- package/src/.idea/misc.xml +0 -9
- package/src/.idea/modules.xml +0 -8
- package/src/.idea/src.iml +0 -9
- package/src/.idea/vcs.xml +0 -6
- package/src/.idea/workspace.xml +0 -93
- package/src/components/daping/BarChart.vue +0 -256
- package/src/components/daping/BarChartLine.vue +0 -284
- package/src/components/daping/CallCenter.vue +0 -369
- package/src/components/daping/DataManagement.vue +0 -697
- package/src/components/daping/DataManagement1.vue +0 -345
- package/src/components/daping/DataStatistics.vue +0 -241
- package/src/components/daping/ExpireMeter.vue +0 -272
- package/src/components/daping/GMap.vue +0 -636
- package/src/components/daping/ManageMain.vue +0 -255
- package/src/components/daping/Pie.vue +0 -171
- package/src/components/daping/ResidentsSecurity.vue +0 -132
- package/src/components/daping/Ring.vue +0 -227
- package/src/components/daping/SafeCheckRing.vue +0 -160
- package/src/components/daping/SafecheckBarChart.vue +0 -294
- package/src/components/daping/Scada.vue +0 -198
- package/src/components/daping/SellBarEcharts.vue +0 -220
- package/src/components/daping/SellEcharts.vue +0 -219
- package/src/components/daping/Style/qinhuaStyle.less +0 -223
- package/src/components/daping/Style//346/261/211/344/273/252/350/217/261/345/277/203/344/275/223/347/256/200.ttf +0 -0
- package/src/components/daping/XianMap.vue +0 -275
- package/src/components/daping/js/AMap.js +0 -19
- package/src/components/daping/js/BMap.js +0 -13
- package/src/components/daping/json/mapStyle.json +0 -1299
- package/src/components/daping/json/xian.json +0 -1
- package/src/components/daping/qinHuaMap.vue +0 -338
- package/src/components/sale/businessquery/PriceChange.vue +0 -411
- package/src/components/sale/businessquery/iotStateSearch/iotStateQuery.vue +0 -334
- package/src/components/sale/filesquery/PriceChangeQuery.vue +0 -357
- package/src/filiale/meihekou/OtherChargeDetailQuery.vue +0 -74
- package/src/filiale/meihekou/OtherChargeQuery.vue +0 -613
- package/src/filiale/meihekou/UserGasEform.vue +0 -267
- package/src/filiale/rongchuang/SellingTable.vue +0 -250
- package/src/filiale/rongchuang/reportManage.js +0 -11
- package/src/filiale/tongchuan/UserQuery.vue +0 -846
- package/src/filiale/tongchuan/config/DefaultPrint.js +0 -6
- package/src/filiale/tongchuan/config/exportConfig.js +0 -857
- package/src/filiale/tongchuan/sale.js +0 -11
- package/src/plugins/transformer.js +0 -117
- package/static/NewManageHome/green.png +0 -0
- package/static/NewManageHome/title.png +0 -0
- package/static/NewManageHome//345/233/276/345/261/202527.png +0 -0
- package/static/NewManageHome//347/237/251/345/275/2426/346/213/267/350/264/2353.png +0 -0
- package/static/NewManageHome//347/237/251/345/275/2426/346/213/267/350/264/2354.png +0 -0
|
@@ -111,136 +111,136 @@
|
|
|
111
111
|
</template>
|
|
112
112
|
|
|
113
113
|
<script>
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
}
|
|
125
|
-
let saveBack = yield self.$resetpost('rs/logic/saveReport', {f_files_content: self.$refs.paged.$els.handcollect.innerHTML,
|
|
126
|
-
f_files_name: self.filename, f_files_type: self.data.f_report_type, f_component_name: 'manage-bus-summary',
|
|
127
|
-
f_operator: this.$login.f.name, f_query_month: `${self.model.model.startDate}-${self.model.model.endDate}`,
|
|
128
|
-
f_outlets: this.$login.f.depname})
|
|
129
|
-
if (saveBack.data.status === 'succeed') {
|
|
130
|
-
self.show = false
|
|
131
|
-
self.filename = ''
|
|
132
|
-
// 后台保存完成,通知刷新
|
|
133
|
-
self.$dispatch('save-success', self.filename)
|
|
134
|
-
}
|
|
114
|
+
import { DataModel } from 'vue-client'
|
|
115
|
+
import co from 'co'
|
|
116
|
+
let saveFile = function * (self) {
|
|
117
|
+
// 线验证文件是否重名
|
|
118
|
+
let count = yield self.$resetpost('rs/sql/manageSingleTable',
|
|
119
|
+
{data: {tablename: 't_report_record', condition: `f_files_name = '${self.filename}'`}},
|
|
120
|
+
{resolveMsg: null, rejectMsg: null})
|
|
121
|
+
if (count.data.length > 0) {
|
|
122
|
+
self.$showAlert('无法保存,文件名重名', 'warning', 3000)
|
|
123
|
+
return
|
|
135
124
|
}
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
125
|
+
let saveBack = yield self.$resetpost('rs/logic/saveReport', {f_files_content: self.$refs.paged.$els.handcollect.innerHTML,
|
|
126
|
+
f_files_name: self.filename, f_files_type: self.data.f_report_type, f_component_name: 'manage-bus-summary',
|
|
127
|
+
f_operator: this.$login.f.name, f_query_month: `${self.model.model.startDate}-${self.model.model.endDate}`,
|
|
128
|
+
f_outlets: this.$login.f.depname})
|
|
129
|
+
if (saveBack.data.status === 'succeed') {
|
|
130
|
+
self.show = false
|
|
131
|
+
self.filename = ''
|
|
132
|
+
// 后台保存完成,通知刷新
|
|
133
|
+
self.$dispatch('save-success', self.filename)
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
export default {
|
|
137
|
+
title: '日售气量汇总表',
|
|
138
|
+
props: ['data'],
|
|
139
|
+
data () {
|
|
140
|
+
return {
|
|
141
|
+
printTime: this.$login.toStandardTimeString(),
|
|
142
|
+
depresid: [],
|
|
143
|
+
userresid: [],
|
|
144
|
+
initres: {
|
|
145
|
+
org:[this.$login.f.orgid],
|
|
146
|
+
dep:[],
|
|
147
|
+
user:[]
|
|
148
|
+
},
|
|
149
|
+
f_orgid: this.$login.f.orgid,
|
|
150
|
+
f_depid: this.$login.f.depids,
|
|
151
|
+
f_operatorid: this.$login.f.id,
|
|
152
|
+
operatorid: [],
|
|
153
|
+
depid: [],
|
|
154
|
+
orgname: '',
|
|
155
|
+
depname: '',
|
|
156
|
+
operatorname: '',
|
|
157
|
+
orgCondtionStr: '1=1',
|
|
158
|
+
model: new DataModel('rs/report/manage_day_sellgas', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
|
|
159
|
+
f_orgid: 'this.model.f_orgid'}),
|
|
160
|
+
reportStr: null,
|
|
161
|
+
show: false,
|
|
162
|
+
spans: ''
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
ready () {
|
|
166
|
+
this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
|
|
167
|
+
this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
|
|
168
|
+
// this.$refs.paged.$refs.criteria.search()
|
|
169
|
+
},
|
|
170
|
+
methods: {
|
|
171
|
+
searchData () {
|
|
172
|
+
this.$refs.paged.$refs.criteria.search()
|
|
164
173
|
},
|
|
165
|
-
|
|
166
|
-
this
|
|
167
|
-
|
|
168
|
-
|
|
174
|
+
selfSearch (args) {
|
|
175
|
+
this.printTime = this.$login.toStandardTimeString()
|
|
176
|
+
let orgstr = this.orgCondtionStr
|
|
177
|
+
args.condition = `${args.condition} ` + orgstr
|
|
178
|
+
this.$refs.paged.$refs.criteria.model.f_orgid = orgstr
|
|
179
|
+
this.$refs.paged.search(args)
|
|
169
180
|
},
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
this.depname = obj.depnames[0]
|
|
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
|
-
// },
|
|
181
|
+
getRes (condition, obj) {
|
|
182
|
+
this.orgCondtionStr = condition
|
|
183
|
+
this.orgname = obj.orgnames[0]
|
|
184
|
+
this.depname = obj.depnames[0]
|
|
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
195
|
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
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()
|
|
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)
|
|
217
206
|
}
|
|
207
|
+
let saveGen = saveFile(this)
|
|
208
|
+
co(saveGen)
|
|
218
209
|
},
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
}
|
|
235
|
-
this.spans = num
|
|
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
|
|
236
225
|
}
|
|
237
226
|
},
|
|
238
|
-
|
|
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
|
|
239
236
|
}
|
|
237
|
+
},
|
|
238
|
+
computed: {
|
|
240
239
|
}
|
|
240
|
+
}
|
|
241
241
|
</script>
|
|
242
242
|
<style scoped>
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
243
|
+
.noborder{
|
|
244
|
+
border: none;
|
|
245
|
+
}
|
|
246
246
|
</style>
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
:show-reset-button="reset">
|
|
27
27
|
</datepicker>
|
|
28
28
|
</div>
|
|
29
|
-
<res-select-group :initres="$parent.$parent.initres"
|
|
29
|
+
<res-select-group :initres="$parent.$parent.initres" :show-component=['company','department','operator'] :cascade =true @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
|
|
30
30
|
<div class="col-sm-2 form-group">
|
|
31
31
|
<label class="font_normal_body">收费状态</label>
|
|
32
32
|
<v-select :value.sync="$parent.$parent.f_state"
|
|
@@ -110,140 +110,140 @@
|
|
|
110
110
|
</template>
|
|
111
111
|
|
|
112
112
|
<script>
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
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
|
-
}
|
|
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
|
|
134
123
|
}
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
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
|
+
userresid: [],
|
|
143
|
+
initres: {
|
|
144
|
+
org:[this.$login.f.orgid],
|
|
145
|
+
dep:[],
|
|
146
|
+
user:[]
|
|
147
|
+
},
|
|
148
|
+
f_orgid: this.$login.f.orgid,
|
|
149
|
+
f_depid: this.$login.f.depids,
|
|
150
|
+
f_operatorid: this.$login.f.id,
|
|
151
|
+
operatorid: [],
|
|
152
|
+
depid: [],
|
|
153
|
+
orgname: '',
|
|
154
|
+
depname: '',
|
|
155
|
+
f_state:['有效'],
|
|
156
|
+
operatorname: '',
|
|
157
|
+
orgCondtionStr: '1=1',
|
|
158
|
+
model: new DataModel('rs/report/manage_month_sellgas', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
|
|
159
|
+
f_orgid: 'this.model.f_orgid'}),
|
|
160
|
+
reportStr: null,
|
|
161
|
+
show: false,
|
|
162
|
+
spans: ''
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
ready () {
|
|
166
|
+
this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
|
|
167
|
+
this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
|
|
168
|
+
// this.$refs.paged.$refs.criteria.search()
|
|
169
|
+
},
|
|
170
|
+
methods: {
|
|
171
|
+
searchData () {
|
|
172
|
+
this.$refs.paged.$refs.criteria.search()
|
|
164
173
|
},
|
|
165
|
-
|
|
166
|
-
this
|
|
167
|
-
|
|
168
|
-
|
|
174
|
+
selfSearch (args) {
|
|
175
|
+
this.printTime = this.$login.toStandardTimeString()
|
|
176
|
+
let orgstr = this.orgCondtionStr
|
|
177
|
+
args.condition = `${args.condition} ` + orgstr
|
|
178
|
+
this.$refs.paged.$refs.criteria.model.f_orgid = this.orgCondtionStr + (this.f_state && this.f_state != '' ? " and f_state='" + this.f_state + "' " : '')
|
|
179
|
+
this.$refs.paged.search(args)
|
|
169
180
|
},
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
this.depname = obj.depnames[0]
|
|
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
|
-
// },
|
|
181
|
+
getRes (condition, obj) {
|
|
182
|
+
this.orgCondtionStr = condition
|
|
183
|
+
this.orgname = obj.orgnames[0]
|
|
184
|
+
this.depname = obj.depnames[0]
|
|
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
195
|
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
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()
|
|
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)
|
|
217
206
|
}
|
|
207
|
+
let saveGen = saveFile(this)
|
|
208
|
+
co(saveGen)
|
|
218
209
|
},
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
}
|
|
235
|
-
this.spans = num
|
|
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
|
|
236
225
|
}
|
|
237
226
|
},
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
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)
|
|
241
234
|
}
|
|
235
|
+
this.spans = num
|
|
236
|
+
}
|
|
237
|
+
},
|
|
238
|
+
computed: {
|
|
239
|
+
charge_state() {
|
|
240
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('收费状态')]
|
|
242
241
|
}
|
|
243
242
|
}
|
|
243
|
+
}
|
|
244
244
|
</script>
|
|
245
245
|
<style scoped>
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
246
|
+
.noborder{
|
|
247
|
+
border: none;
|
|
248
|
+
}
|
|
249
249
|
</style>
|