manage-client 3.2.168 → 3.2.170

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,109 +1,109 @@
1
- {
2
- "name": "manage-client",
3
- "version": "3.2.168",
4
- "description": "经营管控模块前台组件",
5
- "main": "src/index.js",
6
- "directories": {
7
- "test": "test"
8
- },
9
- "dependencies": {
10
- "swiper": "^5.4.5"
11
- },
12
- "devDependencies": {
13
- "axios": "0.15.3",
14
- "babel-core": "^6.0.0",
15
- "babel-loader": "^6.0.0",
16
- "babel-plugin-transform-runtime": "^6.0.0",
17
- "babel-preset-es2015": "^6.0.0",
18
- "babel-preset-stage-2": "^6.0.0",
19
- "chai": "^3.5.0",
20
- "co": "^4.6.0",
21
- "connect-history-api-fallback": "^1.1.0",
22
- "cross-env": "^1.0.7",
23
- "cross-spawn": "^2.1.5",
24
- "css-loader": "^0.23.0",
25
- "echarts": "^4.1.0",
26
- "eslint": "^2.0.0",
27
- "eslint-config-standard": "^5.1.0",
28
- "eslint-friendly-formatter": "^1.2.2",
29
- "eslint-loader": "^1.3.0",
30
- "eslint-plugin-html": "^1.3.0",
31
- "eslint-plugin-promise": "^1.0.8",
32
- "eslint-plugin-standard": "^1.3.2",
33
- "eslint-plugin-vue": "^0.1.1",
34
- "eventsource-polyfill": "^0.9.6",
35
- "express": "^4.13.3",
36
- "extract-text-webpack-plugin": "^1.0.1",
37
- "filemanager-webpack-plugin": "^2.0.5",
38
- "file-loader": "^0.8.4",
39
- "function-bind": "^1.0.2",
40
- "html-webpack-plugin": "^2.8.1",
41
- "http-proxy-middleware": "^0.11.0",
42
- "inject-loader": "^2.0.1",
43
- "isparta-loader": "^2.0.0",
44
- "jasmine-core": "^2.4.1",
45
- "jquery": "^3.3.1",
46
- "jsencrypt": "3.0.0-rc.1",
47
- "json-loader": "^0.5.4",
48
- "karma": "^1.4.1",
49
- "karma-chrome-launcher": "^2.2.0",
50
- "karma-coverage": "^1.1.1",
51
- "karma-mocha": "^1.3.0",
52
- "karma-sinon-chai": "^1.3.1",
53
- "karma-sourcemap-loader": "^0.3.7",
54
- "karma-spec-reporter": "0.0.31",
55
- "karma-webpack": "^2.0.2",
56
- "ldap-clients": "3.0.28",
57
- "less": "^2.7.3",
58
- "mkdirp": "^0.5.1",
59
- "mocha": "^3.2.0",
60
- "moment": "2.24.0",
61
- "ncp": "^2.0.0",
62
- "rimraf": "^2.5.0",
63
- "sale-client": "3.4.14",
64
- "selenium-server": "2.52.0",
65
- "sinon": "^2.1.0",
66
- "sinon-chai": "^2.8.0",
67
- "style": "0.0.3",
68
- "style-loader": "^0.20.3",
69
- "swiper": "^5.4.5",
70
- "system-clients": "3.1.89-20",
71
- "url-loader": "^0.5.7",
72
- "vue-amap": "0.5.10",
73
- "vue-client": "1.24.51",
74
- "vue-hot-reload-api": "^1.2.0",
75
- "vue-html-loader": "^1.0.0",
76
- "vue-loader": "8.2.1",
77
- "vue-resource": "^1.5.0",
78
- "vue-router": "^0.7.13",
79
- "vue-strap": "^1.0.9",
80
- "vue-style-loader": "^1.0.0",
81
- "vue-validator": "2.1.7",
82
- "webpack": "1.12.2",
83
- "webpack-dev-middleware": "^1.4.0",
84
- "webpack-hot-middleware": "^2.6.0",
85
- "webpack-merge": "^0.8.3",
86
- "webpack-parallel-uglify-plugin": "^1.0.0"
87
- },
88
- "scripts": {
89
- "unit": "karma start test/unit/karma.conf.js --single-run",
90
- "example": "node build/example-server.js",
91
- "dev": "node build/dev-server.js",
92
- "lint": "eslint src/**.js test/e2e/**.js test/unit/specs/** build/**.js",
93
- "build": "rimraf lib && mkdirp lib && cross-env VUE_APP_ENTRY=saleManage webpack --progress --hide-modules --config build/webpack.prod.conf.js && cross-env VUE_APP_ENTRY=reportManage webpack --progress --hide-modules --config build/webpack.prod.conf.js && cross-env VUE_APP_BUILDEND=true VUE_APP_ENTRY=webmeterManage webpack --progress --hide-modules --config build/webpack.prod.conf.js",
94
- "buildSaleManage": "rimraf lib && mkdirp lib && cross-env VUE_APP_ENTRY=saleManage VUE_APP_SINGLE=true webpack --progress --hide-modules --config build/webpack.prod.conf.js",
95
- "buildReportManage": "rimraf lib && mkdirp lib && cross-env VUE_APP_ENTRY=reportManage VUE_APP_SINGLE=true webpack --progress --hide-modules --config build/webpack.prod.conf.js",
96
- "buildWebmeterManage": "rimraf lib && mkdirp lib && cross-env VUE_APP_ENTRY=webmeterManage VUE_APP_SINGLE=true webpack --progress --hide-modules --config build/webpack.prod.conf.js",
97
- "e2e": "node test/e2e/runner.js",
98
- "release": "bash build/release.sh"
99
- },
100
- "repository": {
101
- "type": "git",
102
- "url": "https://gitee.com/aote/management_modules.git"
103
- },
104
- "keywords": [
105
- "manage"
106
- ],
107
- "author": "liuxudong",
108
- "license": "ISC"
109
- }
1
+ {
2
+ "name": "manage-client",
3
+ "version": "3.2.170",
4
+ "description": "经营管控模块前台组件",
5
+ "main": "src/index.js",
6
+ "directories": {
7
+ "test": "test"
8
+ },
9
+ "dependencies": {
10
+ "swiper": "^5.4.5"
11
+ },
12
+ "devDependencies": {
13
+ "axios": "0.15.3",
14
+ "babel-core": "^6.0.0",
15
+ "babel-loader": "^6.0.0",
16
+ "babel-plugin-transform-runtime": "^6.0.0",
17
+ "babel-preset-es2015": "^6.0.0",
18
+ "babel-preset-stage-2": "^6.0.0",
19
+ "chai": "^3.5.0",
20
+ "co": "^4.6.0",
21
+ "connect-history-api-fallback": "^1.1.0",
22
+ "cross-env": "^1.0.7",
23
+ "cross-spawn": "^2.1.5",
24
+ "css-loader": "^0.23.0",
25
+ "echarts": "^4.1.0",
26
+ "eslint": "^2.0.0",
27
+ "eslint-config-standard": "^5.1.0",
28
+ "eslint-friendly-formatter": "^1.2.2",
29
+ "eslint-loader": "^1.3.0",
30
+ "eslint-plugin-html": "^1.3.0",
31
+ "eslint-plugin-promise": "^1.0.8",
32
+ "eslint-plugin-standard": "^1.3.2",
33
+ "eslint-plugin-vue": "^0.1.1",
34
+ "eventsource-polyfill": "^0.9.6",
35
+ "express": "^4.13.3",
36
+ "extract-text-webpack-plugin": "^1.0.1",
37
+ "filemanager-webpack-plugin": "^2.0.5",
38
+ "file-loader": "^0.8.4",
39
+ "function-bind": "^1.0.2",
40
+ "html-webpack-plugin": "^2.8.1",
41
+ "http-proxy-middleware": "^0.11.0",
42
+ "inject-loader": "^2.0.1",
43
+ "isparta-loader": "^2.0.0",
44
+ "jasmine-core": "^2.4.1",
45
+ "jquery": "^3.3.1",
46
+ "jsencrypt": "3.0.0-rc.1",
47
+ "json-loader": "^0.5.4",
48
+ "karma": "^1.4.1",
49
+ "karma-chrome-launcher": "^2.2.0",
50
+ "karma-coverage": "^1.1.1",
51
+ "karma-mocha": "^1.3.0",
52
+ "karma-sinon-chai": "^1.3.1",
53
+ "karma-sourcemap-loader": "^0.3.7",
54
+ "karma-spec-reporter": "0.0.31",
55
+ "karma-webpack": "^2.0.2",
56
+ "ldap-clients": "3.0.28",
57
+ "less": "^2.7.3",
58
+ "mkdirp": "^0.5.1",
59
+ "mocha": "^3.2.0",
60
+ "moment": "2.24.0",
61
+ "ncp": "^2.0.0",
62
+ "rimraf": "^2.5.0",
63
+ "sale-client": "3.4.14",
64
+ "selenium-server": "2.52.0",
65
+ "sinon": "^2.1.0",
66
+ "sinon-chai": "^2.8.0",
67
+ "style": "0.0.3",
68
+ "style-loader": "^0.20.3",
69
+ "swiper": "^5.4.5",
70
+ "system-clients": "3.1.89-20",
71
+ "url-loader": "^0.5.7",
72
+ "vue-amap": "0.5.10",
73
+ "vue-client": "1.24.51",
74
+ "vue-hot-reload-api": "^1.2.0",
75
+ "vue-html-loader": "^1.0.0",
76
+ "vue-loader": "8.2.1",
77
+ "vue-resource": "^1.5.0",
78
+ "vue-router": "^0.7.13",
79
+ "vue-strap": "^1.0.9",
80
+ "vue-style-loader": "^1.0.0",
81
+ "vue-validator": "2.1.7",
82
+ "webpack": "1.12.2",
83
+ "webpack-dev-middleware": "^1.4.0",
84
+ "webpack-hot-middleware": "^2.6.0",
85
+ "webpack-merge": "^0.8.3",
86
+ "webpack-parallel-uglify-plugin": "^1.0.0"
87
+ },
88
+ "scripts": {
89
+ "unit": "karma start test/unit/karma.conf.js --single-run",
90
+ "example": "node build/example-server.js",
91
+ "dev": "node build/dev-server.js",
92
+ "lint": "eslint src/**.js test/e2e/**.js test/unit/specs/** build/**.js",
93
+ "build": "rimraf lib && mkdirp lib && cross-env VUE_APP_ENTRY=saleManage webpack --progress --hide-modules --config build/webpack.prod.conf.js && cross-env VUE_APP_ENTRY=reportManage webpack --progress --hide-modules --config build/webpack.prod.conf.js && cross-env VUE_APP_BUILDEND=true VUE_APP_ENTRY=webmeterManage webpack --progress --hide-modules --config build/webpack.prod.conf.js",
94
+ "buildSaleManage": "rimraf lib && mkdirp lib && cross-env VUE_APP_ENTRY=saleManage VUE_APP_SINGLE=true webpack --progress --hide-modules --config build/webpack.prod.conf.js",
95
+ "buildReportManage": "rimraf lib && mkdirp lib && cross-env VUE_APP_ENTRY=reportManage VUE_APP_SINGLE=true webpack --progress --hide-modules --config build/webpack.prod.conf.js",
96
+ "buildWebmeterManage": "rimraf lib && mkdirp lib && cross-env VUE_APP_ENTRY=webmeterManage VUE_APP_SINGLE=true webpack --progress --hide-modules --config build/webpack.prod.conf.js",
97
+ "e2e": "node test/e2e/runner.js",
98
+ "release": "bash build/release.sh"
99
+ },
100
+ "repository": {
101
+ "type": "git",
102
+ "url": "https://gitee.com/aote/management_modules.git"
103
+ },
104
+ "keywords": [
105
+ "manage"
106
+ ],
107
+ "author": "liuxudong",
108
+ "license": "ISC"
109
+ }
@@ -0,0 +1,413 @@
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main" @keyup.enter="search">
4
+ <div class="flex" v-if="!show">
5
+ <criteria-paged :model="model" v-ref:paged>
6
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
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 for="startDate" class="font_normal_body">开始日期</label>
11
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
12
+ v-model="model.startDate"
13
+ :value.sync="model.startDate"
14
+ :format="'yyyy-MM-dd 00:00:00'"
15
+ :show-reset-button="true">
16
+ </datepicker>
17
+ </div>
18
+ <div class="col-sm-2 form-group">
19
+ <label for="endDate" class="font_normal_body">结束日期</label>
20
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
21
+ v-model="model.endDate"
22
+ :value.sync="model.endDate"
23
+ :format="'yyyy-MM-dd 23:59:59'"
24
+ :show-reset-button="true">
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
+ is-mul="false"
44
+ @res-select="$parent.$parent.getuser"
45
+ :parentresid="$parent.$parent.userresid"
46
+ :initresid='$parent.$parent.operatorid'>
47
+ </res-select>
48
+ </div>
49
+ <div class="span" style="float:right;">
50
+ <button class="button_search button_spacing" @click="search()">查询</button>
51
+
52
+ <export-excel :data="$parent.$parent.getCondition"
53
+ :field="$parent.$parent.getfield"
54
+ :footer="$parent.$parent.footer"
55
+ :header="$parent.$parent.other"
56
+ sqlurl="rs/logic/exportfile"
57
+ sql-name="feimin_style"
58
+ template-name='非民用购气使用查询'
59
+ :choose-col="true"></export-excel>
60
+ <print-data-self :model="$parent.model" :field="$parent.$parent.getfield"
61
+ :defaultfield="$parent.$parent.defaultfield" printName="非民用购气使用查询"
62
+ :sumsmodel="$parent.$parent.sumsmodel" :sum-field="$parent.$parent.sumField" :page-sum="$parent.$parent.pageSum"
63
+ :start-date="$parent.$parent.startDate" :end-date="$parent.$parent.endDate"
64
+ ></print-data-self>
65
+ </div>
66
+ </div>
67
+ </div>
68
+ </criteria>
69
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid :classname="$parent.classname">
70
+ <template partial='head'>
71
+ <tr>
72
+ <th>
73
+ <nobr>序号</nobr>
74
+ </th>
75
+ <th>
76
+ <nobr>用户名称</nobr>
77
+ </th>
78
+ <th>
79
+ <nobr>单价</nobr>
80
+ </th>
81
+ <th>
82
+ <nobr>总购气量</nobr>
83
+ </th>
84
+ <th>
85
+ <nobr>本月购气量</nobr>
86
+ </th>
87
+ <th>
88
+ <nobr>补气量</nobr>
89
+ </th>
90
+ <th>
91
+ <nobr>上月表数</nobr>
92
+ </th>
93
+ <th>
94
+ <nobr>本月表数</nobr>
95
+ </th>
96
+ <th>
97
+ <nobr>表余量</nobr>
98
+ </th>
99
+ <th>
100
+ <nobr>用气量</nobr>
101
+ </th>
102
+ <th>
103
+ <nobr>备注</nobr>
104
+ </th>
105
+ </tr>
106
+ </template>
107
+ <template partial='body'>
108
+ <td style="text-align:center">
109
+ <nobr>{{$index+1}}</nobr>
110
+ </td>
111
+ <td style="text-align: center;">
112
+ <nobr>{{row.f_user_name}}</nobr>
113
+ </td>
114
+ <td style="text-align: center;">
115
+ <nobr>{{row.f_price}}</nobr>
116
+ </td>
117
+ <td style="text-align: center;">
118
+ <nobr>{{row.zgougas}}</nobr>
119
+ </td>
120
+ <td style="text-align: center;">
121
+ <nobr>{{row.gougas}}</nobr>
122
+ </td>
123
+ <td style="text-align: center;">
124
+ <nobr>{{row.bugas}}</nobr>
125
+ </td>
126
+ <td style="text-align: center;">
127
+ <nobr>{{row.lastgas}}</nobr>
128
+ </td>
129
+ <td style="text-align: center;">
130
+ <nobr>{{row.thisgas}}</nobr>
131
+ </td>
132
+ <td style="text-align: center;">
133
+ <nobr>{{row.yugas}}</nobr>
134
+ </td>
135
+ <td style="text-align: center;">
136
+ <nobr>{{row.yonggas}}</nobr>
137
+ </td>
138
+ <td style="text-align: center;">
139
+ <nobr>{{row.beizhu}}</nobr>
140
+ </td>
141
+ </template>
142
+ <template partial='foot'></template>
143
+ </data-grid>
144
+ </criteria-paged>
145
+ <table class="table-hover">
146
+ <tr style="position: relative" class="table-bordered">
147
+ <td
148
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold" >
149
+ 报表统计时间
150
+ </td>
151
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold" v-if="startDate==endDate">
152
+ {{startDate}}
153
+ </td>
154
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold" v-else>
155
+ {{startDate+" 至 "+endDate}}
156
+ </td>
157
+ </tr>
158
+ <tr style="position: relative" class="table-bordered">
159
+ <td
160
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
161
+ 汇总信息
162
+ </td>
163
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
164
+ 总购气量汇总:&emsp;{{sumsmodel.zgougas.toFixed(2)}}
165
+ </td>
166
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
167
+ 本月购气量汇总:&emsp;{{sumsmodel.gougas.toFixed(2)}}
168
+ </td>
169
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
170
+ 补气汇总:&emsp;{{sumsmodel.bugas.toFixed(2)}}
171
+ </td>
172
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
173
+ 表余量汇总:&emsp;{{sumsmodel.yugas.toFixed(2)}}
174
+ </td>
175
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
176
+ 用气量汇总:&emsp;{{sumsmodel.yonggas.toFixed(2)}}
177
+ </td>
178
+ </tr>
179
+ </table>
180
+ </div>
181
+ </div>
182
+ </div>
183
+ </template>
184
+ <script>
185
+ import {PagedList, HttpResetClass} from 'vue-client'
186
+ import defaultPrint from '../sale/config/DefaultPrint'
187
+ import exportConfig from '../sale/config/exportConfig'
188
+ import PrintDataSelf from '../sale/common/PrintDataSelf'
189
+
190
+ let readySomething = async function (self) {
191
+ self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
192
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
193
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
194
+ }
195
+ export default {
196
+ title: '非民用购气使用查询',
197
+ props: ['data'],
198
+ data() {
199
+ return {
200
+ depresid: [],
201
+ userresid: [],
202
+ f_orgid: this.$login.f.orgid,
203
+ f_depid: this.$login.f.depids,
204
+ f_operatorid: this.$login.f.id,
205
+ operatorid: [],
206
+ depid: [],
207
+ orgname: '',
208
+ depname: [],
209
+ operatorname: '',
210
+ orgCondtionStr: '1=1',
211
+ data: {},
212
+ other:[],
213
+ footer:[],
214
+ model: new PagedList('rs/sql/feimin_style', 20, {startDate: 'this.model.startDate', endDate: 'this.model.endDate', f_orgid: 'this.model.f_orgid'},{
215
+ zgougas:0,
216
+ gougas:0,
217
+ bugas:0,
218
+ yugas:0,
219
+ yonggas:0
220
+ }),
221
+ gasproperties:[],
222
+ show:false,
223
+ rowdata:{},
224
+ residentialArea: [],
225
+ modelval: [],
226
+ startDate:"",
227
+ endDate:"",
228
+ inputtouPerson: [],
229
+ printshow: false,
230
+ all: false,
231
+ fields: {},
232
+ thead: '',
233
+ tfoot: '',
234
+
235
+ // 下拉框
236
+
237
+ //合计数据
238
+ sumsmodel: {},
239
+ sumField: {
240
+ 'zgougas': '总购气量汇总', 'gougas': '本月购气量汇总','bugas': '补气汇总','yugas': '表余量汇总','yonggas': '用气量汇总'
241
+ },
242
+ pageSum: {
243
+ 'zgougas': '0.00',
244
+ 'gougas': '0.00',
245
+ 'bugas': '0.00',
246
+ 'yugas': '0.00',
247
+ 'yonggas': '0.00'
248
+ },
249
+ defaultfield: [],
250
+ config: {
251
+ defaultPrint: ['f_userinfo_code', 'f_user_name']
252
+ },
253
+ batchmoneyShow:false
254
+ }
255
+ },
256
+ ready() {
257
+ readySomething(this).then(() => {
258
+ this.$emit('ready')
259
+ }).catch((error) => {
260
+ this.$emit('error', error)
261
+ })
262
+ },
263
+ methods: {
264
+ getotherfooter(){
265
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
266
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
267
+ this.other=[];
268
+ this.footer=[];
269
+ let exportdata = this.getCondition;
270
+ let otherInData=[];
271
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
272
+ let footerData=[],exportfield=this.getfield;
273
+ footerData.push("合计");
274
+ let self =this;
275
+ for(var field in self.sumsmodel){
276
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
277
+ }
278
+ this.footer.push(footerData);
279
+ this.other.push(otherInData);
280
+ },
281
+ search(){
282
+ this.$refs.paged.$refs.cri.search()
283
+ },
284
+ selfSearch(args) {
285
+ let orgcondition = ' f_orgid in (' + this.f_orgid + ')'
286
+ if (this.f_depid[0]) {
287
+ orgcondition += " and f_depid in("+this.f_depid.toString()+')'
288
+ }
289
+ if(this.f_operatorid[0]) {
290
+ orgcondition += ' and f_operatorid in (' + this.f_operatorid + ')'
291
+ }
292
+ this.startDate=this.$refs.paged.$refs.cri.model.startDate.substring(0,10)
293
+ this.endDate=this.$refs.paged.$refs.cri.model.endDate.substring(0,10)
294
+ this.orgCondtionStr=orgcondition
295
+ this.$refs.paged.$refs.cri.model.f_orgid = orgcondition
296
+ this.model.search(args.f_orgid, args.model)
297
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
298
+ },
299
+ getRes (obj) {
300
+ this.orgname = obj.res[0]
301
+ this.depresid = obj.resids
302
+ this.f_orgid = obj.resids
303
+ },
304
+ getdep (obj, val) {
305
+ this.depname = val
306
+ this.userresid = obj
307
+ this.f_depid = obj
308
+ },
309
+ getuser ( obj, val) {
310
+ this.operatorname = val[0]
311
+ this.f_operatorid = obj
312
+ },
313
+ stamp() {
314
+ this.all = false
315
+ //默认选择要打印的列
316
+ this.modelval = defaultPrint.config
317
+ this.fields = this.getfield
318
+ console.log('所有打印字段', this.fields)
319
+ this.printshow = true
320
+ this.put()
321
+ },
322
+ put() {
323
+ // 对Modelval进行排序
324
+ this.sortModelval()
325
+ this.thead = `<tr><th colspan=${this.modelval.length}>非民用购气使用查询</th></tr><tr>`
326
+ for (let key of this.modelval) {
327
+ this.thead += '<th>' + this.fields[key] + '</th>'
328
+ }
329
+ this.thead += '</tr>'
330
+ },
331
+ print() {
332
+ this.$refs.print.PrintAsFile()
333
+ this.printshow = false
334
+ },
335
+ dealmsg(val) {
336
+ console.log('---------------dealmsg')
337
+ this.rowdata=val
338
+ this.show=true
339
+ val.model = this.model.model
340
+ this.$dispatch('deal-msg', val)
341
+ },
342
+ close() {
343
+ this.printshow = false
344
+ this.all = false
345
+ },
346
+ // 对选择的列进行排序
347
+ sortModelval() {
348
+ let sortModel = []
349
+ Object.keys(this.fields).forEach((key) => {
350
+ if (this.modelval.includes(key)) {
351
+ sortModel.push(key)
352
+ }
353
+ })
354
+ this.modelval = sortModel
355
+ console.log('选择的打印的字段', this.modelval)
356
+ },
357
+ userTypeChange () {
358
+ this.gasproperties=[]
359
+ if(this.$refs.paged.$refs.criteria.model !==null) {
360
+ this.$refs.paged.$refs.criteria.model.f_gasproperties=''
361
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.criteria.model.f_user_type[0])
362
+ }
363
+ else{
364
+ this.gasproperties =[{label: '全部', value: ''}]
365
+ }
366
+ },
367
+ },
368
+ watch: {
369
+ 'all'(val) {
370
+ if (val) {
371
+ this.modelval = this.bodyData
372
+ } else {
373
+ this.modelval = defaultPrint.config
374
+ this.put()
375
+ }
376
+ },
377
+ 'modelval.length'() {
378
+ this.put()
379
+ },
380
+ sumsmodel:{
381
+ handler: function(val) {
382
+ this.getotherfooter();
383
+ },
384
+ deep: true
385
+ }
386
+ },
387
+ computed: {
388
+ getCondition() {
389
+ return {
390
+ startDate: this.$refs.paged.$refs.cri.model.startDate,
391
+ endDate: this.$refs.paged.$refs.cri.model.endDate,
392
+ f_orgid: this.orgCondtionStr
393
+
394
+ }
395
+
396
+ },
397
+ getfield() {
398
+ return exportConfig.feimin_style
399
+ },
400
+ whetherpaies () {
401
+ return [
402
+ {label: '全部', value: ''},
403
+ {label: '已缴费', value: '是'},
404
+ {label: '未缴费', value: '否'}
405
+ ]
406
+ },
407
+ usertypes() {
408
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
409
+ }
410
+
411
+ }
412
+ }
413
+ </script>
@@ -352,6 +352,10 @@ export default{
352
352
  'f_gas1': '阶一气量', 'f_gas2': '阶二气量', 'f_gas3': '阶三气量',
353
353
  'f_preamount': '收费金额', 'f_user_type': '用户类型', 'f_type': '收费类型', 'f_date': '日期', 'f_operator': '操作员'
354
354
  },
355
+ feimin_style: {
356
+ 'f_user_name': '用户名称', 'f_price': '单价', 'zgougas': '总购气量汇总', 'gougas': '本月购气量汇总',
357
+ 'bugas': '补气汇总','yugas': '表余量汇总','yonggas': '用气量汇总'
358
+ },
355
359
  chaostyle: {
356
360
  'f_userinfo_code': '用户号', 'f_user_name': '用户名', 'f_address': '用户地址', 'f_last_tablebase': '起方',
357
361
  'f_tablebase': '止方', 'gas': '气量', 'f_price': '单价',
@@ -148,6 +148,16 @@
148
148
  :show-reset-button="reset">
149
149
  </datepicker>
150
150
  </div>
151
+ <div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
152
+ <label class="font_normal_body">余额区间</label>
153
+ <div class="row">
154
+ <input type="text" style="width:27%" class="input_search" v-model="model.f_balance_amount_sta"
155
+ condition="ss.f_balance_amount >= {} " placeholder="">
156
+ <label class="font_normal_body"> ≤ x ≤ </label>
157
+ <input type="text" style="width:27%" class="input_search" v-model="model.f_balance_amount_end"
158
+ condition="ss.f_balance_amount <= {} " placeholder="">
159
+ </div>
160
+ </div>
151
161
  </div>
152
162
  </div>
153
163
  </criteria>