manage-client 4.1.139 → 4.1.140
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "manage-client",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.140",
|
|
4
4
|
"description": "经营管控模块前台组件",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"directories": {
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"ldap-clients": "3.0.96",
|
|
72
72
|
"url-loader": "^0.5.7",
|
|
73
73
|
"vue-amap": "0.5.10",
|
|
74
|
-
"vue-client": "1.26.
|
|
74
|
+
"vue-client": "1.26.7",
|
|
75
75
|
"vue-hot-reload-api": "^1.2.0",
|
|
76
76
|
"vue-html-loader": "^1.0.0",
|
|
77
77
|
"vue-loader": "8.2.1",
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
<td>{{row.f_files_name}}</td>
|
|
109
109
|
<td>{{row.f_operator}}</td>
|
|
110
110
|
<td>{{row.f_operate_date}}</td>
|
|
111
|
-
<td><button type="button" class="btn btn-link" @click.stop="$
|
|
111
|
+
<td><button type="button" class="btn btn-link" @click.stop="$dispatch('delete-history-row', row)">删除</button></td>
|
|
112
112
|
</template>
|
|
113
113
|
</data-grid>
|
|
114
114
|
</criteria-paged>
|
|
@@ -164,6 +164,7 @@ export default {
|
|
|
164
164
|
}
|
|
165
165
|
},
|
|
166
166
|
ready () {
|
|
167
|
+
this.$on('delete-history-row', (row) => this.delete(row))
|
|
167
168
|
// 获取所有报表类型
|
|
168
169
|
this.getReportInfo(null, '1=1 and f_rank=1')
|
|
169
170
|
this.getReportName()
|
|
@@ -178,7 +179,7 @@ export default {
|
|
|
178
179
|
this.model.search('1=1')
|
|
179
180
|
},
|
|
180
181
|
delete (row) {
|
|
181
|
-
this.$
|
|
182
|
+
this.$resetpost('api/af-revenue/logic/deletereport', {id: row.id}, {resolveMsg: '删除成功', rejectMsg: '删除失败'}).then((res) => {
|
|
182
183
|
this.$dispatch('delect-report', '删除计划', row)
|
|
183
184
|
this.search()
|
|
184
185
|
})
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
<button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
|
|
23
23
|
<export-excel :data="$parent.$parent.getCondition" :footer="$parent.$parent.footer"
|
|
24
24
|
:field="$parent.$parent.getfield" :header="$parent.$parent.other"
|
|
25
|
+
:prop-task-export="true"
|
|
25
26
|
sqlurl="api/af-revenue/logic/openapi/exportfile" sql-name="webhandplanQuery" template-name='物联网表抄表查询导出'
|
|
26
27
|
:choose-col="true"></export-excel>
|
|
27
28
|
<print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
|
|
@@ -73,6 +73,16 @@
|
|
|
73
73
|
close-on-select :search="false">
|
|
74
74
|
</v-select>
|
|
75
75
|
</div>
|
|
76
|
+
<div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
|
|
77
|
+
<label class="font_normal_body">气量环比 </label>
|
|
78
|
+
<div class="row">
|
|
79
|
+
<input type="text" style="width:27%" class="input_search" v-model="model.amount_ratio1"
|
|
80
|
+
condition="amount_ratio >= {} " placeholder="">
|
|
81
|
+
<label class="font_normal_body"> ≤ x ≤ </label>
|
|
82
|
+
<input type="text" style="width:27%" class="input_search" v-model="model.amount_ratio2"
|
|
83
|
+
condition="amount_ratio <= {} " placeholder="">
|
|
84
|
+
</div>
|
|
85
|
+
</div>
|
|
76
86
|
|
|
77
87
|
</div>
|
|
78
88
|
</div>
|
|
@@ -230,7 +240,7 @@
|
|
|
230
240
|
footer:[],
|
|
231
241
|
data: {},
|
|
232
242
|
ratio: this.$appdata.getSingleValue('环比报警值百分比'),
|
|
233
|
-
model: new PagedList('api/af-revenue/sql/getHandRatioQuery', 20, {
|
|
243
|
+
model: new PagedList('api/af-revenue/sql/getHandRatioQuery', 20, {month_date: 'this.model.month_date', next_month_date: 'this.model.next_month_date', last_month_date: 'this.model.last_month_date'}),
|
|
234
244
|
initres: {
|
|
235
245
|
org:[this.$login.f.orgid],
|
|
236
246
|
dep:[]
|
|
@@ -412,6 +422,8 @@
|
|
|
412
422
|
this.$showMessage('请选择所属年月!')
|
|
413
423
|
return
|
|
414
424
|
}
|
|
425
|
+
let month_date = this.$refs.paged.$refs.cri.model.last_month_date
|
|
426
|
+
let { last_month_date, next_month_date } = this.getAdjacentMonths(month_date)
|
|
415
427
|
this.area = this.$refs.paged.$refs.cri.model.f_residential_area
|
|
416
428
|
if(this.area.length !== 0){
|
|
417
429
|
let str = JSON.stringify(this.area)
|
|
@@ -434,7 +446,11 @@
|
|
|
434
446
|
let ratio1 = this.ratio-0
|
|
435
447
|
let ratio2 = 0-this.ratio
|
|
436
448
|
let condition = `${args.condition} ` + this.orgCondtionStr + ` and (amount_ratio>=${ratio1} or amount_ratio<=${ratio2})`
|
|
437
|
-
this.model.search(condition,
|
|
449
|
+
this.model.search(condition, {
|
|
450
|
+
last_month_date: last_month_date,
|
|
451
|
+
next_month_date: next_month_date,
|
|
452
|
+
month_date: month_date
|
|
453
|
+
})
|
|
438
454
|
},
|
|
439
455
|
clear() {
|
|
440
456
|
//清空部门和人员
|
|
@@ -447,6 +463,30 @@
|
|
|
447
463
|
})
|
|
448
464
|
this.$refs.paged.$refs.cri.model.f_meter_classify = []
|
|
449
465
|
},
|
|
466
|
+
getAdjacentMonths(monthDate) {
|
|
467
|
+
// 解析年份和月份
|
|
468
|
+
let [year, month] = monthDate.split('-').map(Number)
|
|
469
|
+
|
|
470
|
+
// 计算上一个月
|
|
471
|
+
let lastYear = year
|
|
472
|
+
let lastMonth = month - 1
|
|
473
|
+
if (lastMonth < 1) {
|
|
474
|
+
lastMonth = 12
|
|
475
|
+
lastYear = year - 1
|
|
476
|
+
}
|
|
477
|
+
let last_month_date = `${lastYear}-${String(lastMonth).padStart(2, '0')}`
|
|
478
|
+
|
|
479
|
+
// 计算下一个月
|
|
480
|
+
let nextYear = year
|
|
481
|
+
let nextMonth = month + 1
|
|
482
|
+
if (nextMonth > 12) {
|
|
483
|
+
nextMonth = 1
|
|
484
|
+
nextYear = year + 1
|
|
485
|
+
}
|
|
486
|
+
let next_month_date = `${nextYear}-${String(nextMonth).padStart(2, '0')}`
|
|
487
|
+
|
|
488
|
+
return { last_month_date, next_month_date }
|
|
489
|
+
},
|
|
450
490
|
show() {
|
|
451
491
|
this.criteriaShow = true
|
|
452
492
|
},
|
|
@@ -73,6 +73,16 @@
|
|
|
73
73
|
close-on-select :search="false">
|
|
74
74
|
</v-select>
|
|
75
75
|
</div>
|
|
76
|
+
<div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
|
|
77
|
+
<label class="font_normal_body">气量环比 </label>
|
|
78
|
+
<div class="row">
|
|
79
|
+
<input type="text" style="width:27%" class="input_search" v-model="model.amount_ratio1"
|
|
80
|
+
condition="amount_ratio >= {} " placeholder="">
|
|
81
|
+
<label class="font_normal_body"> ≤ x ≤ </label>
|
|
82
|
+
<input type="text" style="width:27%" class="input_search" v-model="model.amount_ratio2"
|
|
83
|
+
condition="amount_ratio <= {} " placeholder="">
|
|
84
|
+
</div>
|
|
85
|
+
</div>
|
|
76
86
|
|
|
77
87
|
</div>
|
|
78
88
|
</div>
|