manage-client 3.3.93 → 3.3.94

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.
@@ -1,2 +1,2 @@
1
- #Wed Nov 01 18:50:38 CST 2023
2
- gradle.version=4.4
1
+ #Mon Oct 26 16:02:57 CST 2020
2
+ gradle.version=6.1.1
package/package.json CHANGED
@@ -1,111 +1,111 @@
1
- {
2
- "name": "manage-client",
3
- "version": "3.3.93",
4
- "description": "经营管控模块前台组件",
5
- "main": "src/index.js",
6
- "directories": {
7
- "test": "test"
8
- },
9
- "dependencies": {
10
- "crypto-js": "^4.1.1",
11
- "swiper": "^5.4.5"
12
- },
13
- "devDependencies": {
14
- "axios": "0.15.3",
15
- "babel-core": "^6.0.0",
16
- "babel-loader": "^6.0.0",
17
- "babel-plugin-transform-runtime": "^6.0.0",
18
- "babel-preset-es2015": "^6.0.0",
19
- "babel-preset-stage-2": "^6.0.0",
20
- "chai": "^3.5.0",
21
- "co": "^4.6.0",
22
- "connect-history-api-fallback": "^1.1.0",
23
- "cross-env": "^1.0.7",
24
- "cross-spawn": "^2.1.5",
25
- "css-loader": "^0.23.0",
26
- "echarts": "^4.1.0",
27
- "eslint": "^2.0.0",
28
- "eslint-config-standard": "^5.1.0",
29
- "eslint-friendly-formatter": "^1.2.2",
30
- "eslint-loader": "^1.3.0",
31
- "eslint-plugin-html": "^1.3.0",
32
- "eslint-plugin-promise": "^1.0.8",
33
- "eslint-plugin-standard": "^1.3.2",
34
- "eslint-plugin-vue": "^0.1.1",
35
- "eventsource-polyfill": "^0.9.6",
36
- "express": "^4.13.3",
37
- "extract-text-webpack-plugin": "^1.0.1",
38
- "filemanager-webpack-plugin": "^2.0.5",
39
- "file-loader": "^0.8.4",
40
- "function-bind": "^1.0.2",
41
- "html-webpack-plugin": "^2.8.1",
42
- "http-proxy-middleware": "^0.11.0",
43
- "inject-loader": "^2.0.1",
44
- "isparta-loader": "^2.0.0",
45
- "jasmine-core": "^2.4.1",
46
- "jquery": "^3.3.1",
47
- "jsencrypt": "3.0.0-rc.1",
48
- "json-loader": "^0.5.4",
49
- "karma": "^1.4.1",
50
- "karma-chrome-launcher": "^2.2.0",
51
- "karma-coverage": "^1.1.1",
52
- "karma-mocha": "^1.3.0",
53
- "karma-sinon-chai": "^1.3.1",
54
- "karma-sourcemap-loader": "^0.3.7",
55
- "karma-spec-reporter": "0.0.31",
56
- "karma-webpack": "^2.0.2",
57
- "ldap-clients": "3.0.7",
58
- "less": "^2.7.3",
59
- "mkdirp": "^0.5.1",
60
- "mocha": "^3.2.0",
61
- "moment": "2.24.0",
62
- "ncp": "^2.0.0",
63
- "rimraf": "^2.5.0",
64
- "sale-client": "3.4.14",
65
- "selenium-server": "2.52.0",
66
- "sinon": "^2.1.0",
67
- "sinon-chai": "^2.8.0",
68
- "style": "0.0.3",
69
- "style-loader": "^0.20.3",
70
- "swiper": "^5.4.5",
71
- "system-clients": "3.2.61",
72
- "url-loader": "^0.5.7",
73
- "vue-amap": "0.5.10",
74
- "vue-client": "1.24.115",
75
- "vue-hot-reload-api": "^1.2.0",
76
- "vue-html-loader": "^1.0.0",
77
- "vue-loader": "8.2.1",
78
- "vue-resource": "^1.5.0",
79
- "vue-router": "^0.7.13",
80
- "vue-strap": "^1.0.9",
81
- "vue-style-loader": "^1.0.0",
82
- "vue-validator": "2.1.7",
83
- "webpack": "1.12.2",
84
- "webpack-dev-middleware": "^1.4.0",
85
- "webpack-hot-middleware": "^2.6.0",
86
- "webpack-merge": "^0.8.3",
87
- "webpack-parallel-uglify-plugin": "^1.0.0"
88
- },
89
- "scripts": {
90
- "unit": "karma start test/unit/karma.conf.js --single-run",
91
- "example": "node build/example-server.js",
92
- "dev": "node build/dev-server.js",
93
- "lint": "eslint src/**.js test/e2e/**.js test/unit/specs/** build/**.js",
94
- "oldbuild": "rimraf dist && mkdirp dist && ncp static dist/static && cross-env NODE_ENV=production webpack --progress --hide-modules --config build/webpack.oldprod.conf.js",
95
- "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",
96
- "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",
97
- "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",
98
- "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",
99
- "e2e": "node test/e2e/runner.js",
100
- "release": "bash build/release.sh"
101
- },
102
- "repository": {
103
- "type": "git",
104
- "url": "https://gitee.com/aote/management_modules.git"
105
- },
106
- "keywords": [
107
- "manage"
108
- ],
109
- "author": "liuxudong",
110
- "license": "ISC"
111
- }
1
+ {
2
+ "name": "manage-client",
3
+ "version": "3.3.94",
4
+ "description": "经营管控模块前台组件",
5
+ "main": "src/index.js",
6
+ "directories": {
7
+ "test": "test"
8
+ },
9
+ "dependencies": {
10
+ "crypto-js": "^4.1.1",
11
+ "swiper": "^5.4.5"
12
+ },
13
+ "devDependencies": {
14
+ "axios": "0.15.3",
15
+ "babel-core": "^6.0.0",
16
+ "babel-loader": "^6.0.0",
17
+ "babel-plugin-transform-runtime": "^6.0.0",
18
+ "babel-preset-es2015": "^6.0.0",
19
+ "babel-preset-stage-2": "^6.0.0",
20
+ "chai": "^3.5.0",
21
+ "co": "^4.6.0",
22
+ "connect-history-api-fallback": "^1.1.0",
23
+ "cross-env": "^1.0.7",
24
+ "cross-spawn": "^2.1.5",
25
+ "css-loader": "^0.23.0",
26
+ "echarts": "^4.1.0",
27
+ "eslint": "^2.0.0",
28
+ "eslint-config-standard": "^5.1.0",
29
+ "eslint-friendly-formatter": "^1.2.2",
30
+ "eslint-loader": "^1.3.0",
31
+ "eslint-plugin-html": "^1.3.0",
32
+ "eslint-plugin-promise": "^1.0.8",
33
+ "eslint-plugin-standard": "^1.3.2",
34
+ "eslint-plugin-vue": "^0.1.1",
35
+ "eventsource-polyfill": "^0.9.6",
36
+ "express": "^4.13.3",
37
+ "extract-text-webpack-plugin": "^1.0.1",
38
+ "filemanager-webpack-plugin": "^2.0.5",
39
+ "file-loader": "^0.8.4",
40
+ "function-bind": "^1.0.2",
41
+ "html-webpack-plugin": "^2.8.1",
42
+ "http-proxy-middleware": "^0.11.0",
43
+ "inject-loader": "^2.0.1",
44
+ "isparta-loader": "^2.0.0",
45
+ "jasmine-core": "^2.4.1",
46
+ "jquery": "^3.3.1",
47
+ "jsencrypt": "3.0.0-rc.1",
48
+ "json-loader": "^0.5.4",
49
+ "karma": "^1.4.1",
50
+ "karma-chrome-launcher": "^2.2.0",
51
+ "karma-coverage": "^1.1.1",
52
+ "karma-mocha": "^1.3.0",
53
+ "karma-sinon-chai": "^1.3.1",
54
+ "karma-sourcemap-loader": "^0.3.7",
55
+ "karma-spec-reporter": "0.0.31",
56
+ "karma-webpack": "^2.0.2",
57
+ "ldap-clients": "3.0.7",
58
+ "less": "^2.7.3",
59
+ "mkdirp": "^0.5.1",
60
+ "mocha": "^3.2.0",
61
+ "moment": "2.24.0",
62
+ "ncp": "^2.0.0",
63
+ "rimraf": "^2.5.0",
64
+ "sale-client": "3.4.14",
65
+ "selenium-server": "2.52.0",
66
+ "sinon": "^2.1.0",
67
+ "sinon-chai": "^2.8.0",
68
+ "style": "0.0.3",
69
+ "style-loader": "^0.20.3",
70
+ "swiper": "^5.4.5",
71
+ "system-clients": "3.2.61",
72
+ "url-loader": "^0.5.7",
73
+ "vue-amap": "0.5.10",
74
+ "vue-client": "1.24.115",
75
+ "vue-hot-reload-api": "^1.2.0",
76
+ "vue-html-loader": "^1.0.0",
77
+ "vue-loader": "8.2.1",
78
+ "vue-resource": "^1.5.0",
79
+ "vue-router": "^0.7.13",
80
+ "vue-strap": "^1.0.9",
81
+ "vue-style-loader": "^1.0.0",
82
+ "vue-validator": "2.1.7",
83
+ "webpack": "1.12.2",
84
+ "webpack-dev-middleware": "^1.4.0",
85
+ "webpack-hot-middleware": "^2.6.0",
86
+ "webpack-merge": "^0.8.3",
87
+ "webpack-parallel-uglify-plugin": "^1.0.0"
88
+ },
89
+ "scripts": {
90
+ "unit": "karma start test/unit/karma.conf.js --single-run",
91
+ "example": "node build/example-server.js",
92
+ "dev": "node build/dev-server.js",
93
+ "lint": "eslint src/**.js test/e2e/**.js test/unit/specs/** build/**.js",
94
+ "oldbuild": "rimraf dist && mkdirp dist && ncp static dist/static && cross-env NODE_ENV=production webpack --progress --hide-modules --config build/webpack.oldprod.conf.js",
95
+ "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",
96
+ "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",
97
+ "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",
98
+ "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",
99
+ "e2e": "node test/e2e/runner.js",
100
+ "release": "bash build/release.sh"
101
+ },
102
+ "repository": {
103
+ "type": "git",
104
+ "url": "https://gitee.com/aote/management_modules.git"
105
+ },
106
+ "keywords": [
107
+ "manage"
108
+ ],
109
+ "author": "liuxudong",
110
+ "license": "ISC"
111
+ }
@@ -0,0 +1,257 @@
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-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">&nbsp;&nbsp;&nbsp;公司&nbsp;&nbsp;&nbsp; </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">&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-4">
44
+ <label class="font_normal_body">&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
+ <div class="col-sm-4">
53
+ <label class="font_normal_body" title="参数名称:气表品牌">气表品牌</label>
54
+ <v-select :value.sync="model.f_meter_brand"
55
+ :options='$parent.$parent.meterBrands' placeholder='请选择' v-model="model.f_meter_brand"
56
+ condition="f_meter_brand in {}"
57
+ close-on-select></v-select>
58
+ </div>
59
+
60
+
61
+ </div>
62
+ <div class="span" style = "float:right;">
63
+ <button class="button_search" @click="$parent.$parent.searchData()">查询</button>
64
+ <report-print id='gasprice' top='3cm' left='0' width='100%' height='100%' :preview="true"></report-print>
65
+ <report-excel id='gasprice'></report-excel>
66
+ </div>
67
+ </div>
68
+ </criteria>
69
+ <div partial='list' v-el:handcollect id='gasprice' style="overflow-y: scroll">
70
+ <table class='tableprint' style="margin: 0px auto;">
71
+ <thead>
72
+ <tr>
73
+ <th colspan='18' style="font-weight: normal; text-align: left;">
74
+ <h2 style="text-align: center">{{$parent.orgname}}</h2>
75
+ <h3 style="text-align: center">补卡费统计报表</h3>
76
+ </th>
77
+ </tr>
78
+ <tr>
79
+ <th colspan='18' style="font-weight: normal; text-align: center;">
80
+ 开始时间:{{model.model.startDate}}&nbsp;&nbsp;&nbsp;
81
+ 结束时间:{{ model.model.endDate }}&nbsp;&nbsp;<br/>
82
+ 打印时间:{{{$parent.printTime}}}
83
+ </th>
84
+ </tr>
85
+ <tr>
86
+ <th colspan='18' style="font-weight: normal; text-align: center;">
87
+ <div>
88
+ <span v-show="$parent.depname.trim()!=''">网点:{{$parent.depname}}</span>
89
+ <span v-show="$parent.operatorname.trim()!=''">操作员:{{$parent.operatorname}}</span>
90
+ </div>
91
+ </th>
92
+ </tr>
93
+ </thead>
94
+ <tr>
95
+ <td colspan='18'>
96
+ {{{ model.data.substring(26,model.data.length-8) }}}
97
+ </td>
98
+ </tr>
99
+ <tfoot>
100
+ <tr style="text-align: left">
101
+ <th colspan='6'>财务审核:</th>
102
+ <th colspan='6'>收款审核:</th>
103
+ <th colspan='6'>收款员:</th>
104
+ </tr>
105
+ </tfoot>
106
+ </table>
107
+ {{{ $parent.reportStr}}}
108
+ </div>
109
+ </criteria-paged>
110
+ <modal :show.sync="show" v-ref:modal small backdrop="false">
111
+ <header slot="modal-header" class="modal-header">
112
+ <h4 class="modal-title">输入文件名称</h4>
113
+ </header>
114
+ <article slot="modal-body" class="modal-body">
115
+ <div class="form-group">
116
+ <input type="text" class="form-control" v-model="filename" placeholder='保存的文件名'>
117
+ </div>
118
+ </article>
119
+ <footer slot="modal-footer" class="modal-footer">
120
+ <button v-show="show" type="button" class="btn btn-default" @click='close'>取消</button>
121
+ <button v-show="show" type="button" class="btn btn-success" @click='confirm(filename)'>确认</button>
122
+ </footer>
123
+ </modal>
124
+ </div>
125
+ </template>
126
+
127
+ <script>
128
+ import { DataModel } from 'vue-client'
129
+ import co from 'co'
130
+ let saveFile = function * (self) {
131
+ // 线验证文件是否重名
132
+ let count = yield self.$resetpost('rs/sql/manageSingleTable',
133
+ {data: {tablename: 't_report_record', condition: `f_files_name = '${self.filename}'`}},
134
+ {resolveMsg: null, rejectMsg: null})
135
+ if (count.data.length > 0) {
136
+ self.$showAlert('无法保存,文件名重名', 'warning', 3000)
137
+ return
138
+ }
139
+ let saveBack = yield self.$resetpost('rs/logic/saveReport', {f_files_content: self.$refs.paged.$els.handcollect.innerHTML,
140
+ f_files_name: self.filename, f_files_type: self.data.f_report_type, f_component_name: 'manage-bus-summary',
141
+ f_operator: this.$login.f.name, f_query_month: `${self.model.model.startDate}-${self.model.model.endDate}`,
142
+ f_outlets: this.$login.f.depname})
143
+ if (saveBack.data.status === 'succeed') {
144
+ self.show = false
145
+ self.filename = ''
146
+ // 后台保存完成,通知刷新
147
+ self.$dispatch('save-success', self.filename)
148
+ }
149
+ }
150
+ export default {
151
+ title: '补卡费统计报表',
152
+ props: ['data'],
153
+ data () {
154
+ return {
155
+ printTime: this.$login.toStandardTimeString(),
156
+ depresid: [],
157
+
158
+ userresid: [],
159
+ f_orgid: this.$login.f.orgid,
160
+ f_depid: this.$login.f.depids,
161
+ f_operatorid: this.$login.f.id,
162
+ operatorid: [],
163
+ depid: [],
164
+ orgname: '',
165
+ depname: '',
166
+ operatorname: '',
167
+ meterbrands: [],
168
+ orgCondtionStr: '1=1',
169
+ model: new DataModel('rs/report/fillcardSummary', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
170
+ f_orgid: 'this.model.f_orgid'}),
171
+ reportStr: null,
172
+ show: false,
173
+ }
174
+ },
175
+ ready () {
176
+ this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
177
+ this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
178
+ console.log(this.$login.f)
179
+ },
180
+ methods: {
181
+ searchData () {
182
+ this.$refs.paged.$refs.criteria.search()
183
+ },
184
+ selfSearch (args) {
185
+ this.printTime = this.$login.toStandardTimeString()
186
+ let orgcondition = ` f_orgid in ('${this.f_orgid}')`
187
+ if (this.f_depid[0]) {
188
+ orgcondition += ` and f_depid in ('${this.f_depid}')`
189
+ }
190
+ if(this.f_operatorid[0]) {
191
+ orgcondition += ` and f_operatorid in ('${this.f_operatorid}')`
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
+ // 根据文件路径获取储存的报表内容
212
+ getFileContent (path) {
213
+ this.$resetpost('rs/logic/getReportFileContent', {f_files_path: path}, {resolveMsg: null, rejectMsg: null}).then((res) => {
214
+ this.reportStr = res.data.filecontent
215
+ this.model.state = '正确'
216
+ })
217
+ },
218
+ confirm () {
219
+ if (!this.filename || this.filename === '') {
220
+ this.$showAlert('无法保存,文件名不能为空', 'warning', 3000)
221
+ }
222
+ let saveGen = saveFile(this)
223
+ co(saveGen)
224
+ },
225
+ close () {
226
+ this.show = false
227
+ },
228
+ // 将报表保存成文件
229
+ confirmReport () {
230
+ this.show = true
231
+ this.filename = this.data.f_report_name + this.$login.toStandardDateString()
232
+ },
233
+ },
234
+ watch: {
235
+ 'data' (val) {
236
+ if (val.f_files_path) {
237
+ this.getFileContent(val.f_files_path)
238
+ } else {
239
+ this.reportStr = null
240
+ }
241
+ }
242
+ },
243
+ computed: {
244
+ meterBrands () {
245
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表品牌')]
246
+ }
247
+ }
248
+ }
249
+ </script>
250
+ <style scoped>
251
+ .noborder{
252
+ border: none;
253
+ }
254
+ .fontSize{
255
+ font-size: 13px;
256
+ }
257
+ </style>