manage-client-xy 3.1.75 → 3.1.78

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.
@@ -11,8 +11,8 @@ var compiler = webpack(config)
11
11
  // Define HTTP proxies to your custom API backend
12
12
  // https://github.com/chimurai/http-proxy-middleware
13
13
  // var bendi = 'http://127.0.0.1:8089/manage', fuwu = 'http://36.103.224.217:6300/'
14
- var bendi = 'http://200.100.100.111:8300/'
15
- ,fuwu ='http://200.100.100.111:8300/'
14
+ var bendi = 'http://172.16.16.162:8300/'
15
+ ,fuwu ='http://172.16.16.162:8300/'
16
16
  // ,fuwu = 'http://172.16.16.163:8300/'
17
17
  var proxyTable = {
18
18
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "manage-client-xy",
3
- "version": "3.1.75",
3
+ "version": "3.1.78",
4
4
  "description": "经营管控模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -1,254 +1,254 @@
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
- <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">&emsp;&emsp;公司:</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">&emsp;&emsp;部门:</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">&emsp;&emsp;人员:</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" style="float:right;">
53
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;&emsp;&emsp;&nbsp;&nbsp;&nbsp;</label>
54
- <button class="button_search" @click="$parent.$parent.searchData()">查询</button>
55
- <report-print id='gasprice' top='3cm' left='0' width='100%' height='100%' :preview="true"></report-print>
56
- <report-excel id='gasprice'
57
- v-if="$parent.$parent.jurisdiction.includes('excel导出')"
58
- ></report-excel>
59
- </div>
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='17' style="font-weight: normal; text-align: left;">
68
- <h3 style="text-align: center">嘉澄汇沣非嘉澄汇沣对账</h3>
69
- </th>
70
- </tr>
71
- <tr>
72
- <th colspan='17' style="font-weight: normal; text-align: center;">
73
- 开始时间:{{model.model.startDate}}&nbsp;&nbsp;&nbsp;
74
- 结束时间:{{ model.model.endDate }}
75
- </th>
76
- </tr>
77
- <tr>
78
- <th colspan='17' style="font-weight: normal; text-align: center;">
79
- 打印时间:{{{$parent.printTime}}}
80
- </th>
81
- </tr>
82
- <tr>
83
- <th colspan='17' style="font-weight: normal; text-align: center;">
84
- <div>
85
- <span v-show="$parent.orgname.trim()!=''">公司:{{ $parent.orgname }}</span>
86
- <span v-show="$parent.depname.trim()!=''"> 部门:{{ $parent.depname }}</span>
87
- <span v-show="$parent.operatorname.trim()!=''">人员:{{ $parent.operatorname }}</span>
88
- </div>
89
- </th>
90
- </tr>
91
- </thead>
92
- <tr>
93
- <td colspan='17'>
94
- {{{ model.data.substring(26,model.data.length-8) }}}
95
- </td>
96
- </tr>
97
- <tfoot>
98
- <tr style="text-align: left">
99
- <th colspan='6'>财务审核:</th>
100
- <th colspan='6'>收款审核:</th>
101
- <th colspan='5'>收款员:</th>
102
- </tr>
103
- </tfoot>
104
- </table>
105
- {{{ $parent.reportStr}}}
106
- </div>
107
- </criteria-paged>
108
- <modal :show.sync="show" v-ref:modal small backdrop="false">
109
- <header slot="modal-header" class="modal-header">
110
- <h4 class="modal-title">输入文件名称</h4>
111
- </header>
112
- <article slot="modal-body" class="modal-body">
113
- <div class="form-group">
114
- <input type="text" class="form-control" v-model="filename" placeholder='保存的文件名'>
115
- </div>
116
- </article>
117
- <footer slot="modal-footer" class="modal-footer">
118
- <button v-show="show" type="button" class="btn btn-default" @click='close'>取消</button>
119
- <button v-show="show" type="button" class="btn btn-success" @click='confirm(filename)'>确认</button>
120
- </footer>
121
- </modal>' ) 'div>
122
- </template>
123
-
124
- <script>
125
- import { DataModel } from 'vue-client'
126
- import co from 'co'
127
- let saveFile = function * (self) {
128
- // 线验证文件是否重名
129
- let count = yield self.$resetpost('rs/sql/manageSingleTable',
130
- {data: {tablename: 't_report_record', condition: `f_files_name = '${self.filename}'`}},
131
- {resolveMsg: null, rejectMsg: null})
132
- if (count.data.length > 0) {
133
- self.$showAlert('无法保存,文件名重名', 'warning', 3000)
134
- return
135
- }
136
- let saveBack = yield self.$resetpost('rs/logic/saveReport', {f_files_content: self.$refs.paged.$els.handcollect.innerHTML,
137
- f_files_name: self.filename, f_files_type: self.data.f_report_type, f_component_name: 'manage-bus-summary',
138
- f_operator: this.$login.f.name, f_query_month: `${self.model.model.startDate}-${self.model.model.endDate}`,
139
- f_outlets: this.$login.f.depname})
140
- if (saveBack.data.status === 'succeed') {
141
- self.show = false
142
- self.filename = ''
143
- // 后台保存完成,通知刷新
144
- self.$dispatch('save-success', self.filename)
145
- }
146
- }
147
- export default {
148
- title: '嘉澄汇沣非嘉澄汇沣对账',
149
- props: ['data'],
150
- data () {
151
- return {
152
- printTime: this.$login.toStandardTimeString(),
153
- depresid: [],
154
- userresid: [],
155
- f_orgid: this.$login.f.orgid,
156
- f_depid: this.$login.f.depid,
157
- f_operatorid: this.$login.f.id,
158
- jurisdiction: this.$login.r,
159
- operatorid: [],
160
- depid: [],
161
- orgname: '',
162
- depname: '',
163
- operatorname: '',
164
- f_inputtor:[],
165
- f_user_type:'',
166
- orgCondtionStr: '1=1',
167
- model: new DataModel('rs/report/konggang', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
168
- f_orgid: 'this.model.f_orgid'}),
169
- reportStr: null,
170
- show: false
171
- }
172
- },
173
- ready () {
174
- this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
175
- this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
176
- this.$refs.paged.$refs.criteria.search()
177
- console.log(this.$login.f)
178
- },
179
- methods: {
180
- searchData () {
181
- this.$refs.paged.$refs.criteria.search()
182
- },
183
- selfSearch (args) {
184
- console.log(args.condition + 'yyyqqq')
185
- this.printTime = this.$login.toStandardTimeString()
186
- let orgcondition = args.condition
187
- if (this.f_orgid[0]) {
188
- orgcondition += " and s.f_orgid in (" + this.f_orgid.toString() + ")"
189
- }
190
- if (this.f_depid[0]) {
191
- orgcondition += " and s.f_depname like '%" + this.depname + "%'"
192
- }
193
- if (this.f_operatorid[0]) {
194
- orgcondition += " and s.f_operator like '%" + this.operatorname + "%'"
195
- }
196
- this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
197
- this.$refs.paged.search(args)
198
- },
199
- getRes (obj) {
200
- this.orgname = obj.res[0]
201
- this.depresid = obj.resids
202
- this.f_orgid = obj.resids
203
- this.userresid = obj.resids
204
- },
205
- getdep (obj, val) {
206
- this.depname = val[0]
207
- this.f_depid = obj
208
- },
209
- getuser ( obj, val) {
210
- this.operatorname = val[0]
211
- this.f_operatorid = obj
212
- },
213
- // 根据文件路径获取储存的报表内容
214
- getFileContent (path) {
215
- this.$resetpost('rs/logic/getReportFileContent', {f_files_path: path}, {resolveMsg: null, rejectMsg: null}).then((res) => {
216
- this.reportStr = res.data.filecontent
217
- this.model.state = '正确'
218
- })
219
- },
220
- confirm () {
221
- if (!this.filename || this.filename === '') {
222
- this.$showAlert('无法保存,文件名不能为空', 'warning', 3000)
223
- }
224
- let saveGen = saveFile(this)
225
- co(saveGen)
226
- },
227
- close () {
228
- this.show = false
229
- },
230
- // 将报表保存成文件
231
- confirmReport () {
232
- this.show = true
233
- this.filename = this.data.f_report_name + this.$login.toStandardDateString()
234
- },
235
- },
236
- watch: {
237
- 'data' (val) {
238
- if (val.f_files_path) {
239
- this.getFileContent(val.f_files_path)
240
- } else {
241
- this.reportStr = null
242
- }
243
- }
244
- },
245
- computed: {
246
-
247
- }
248
- }
249
- </script>
250
- <style scoped>
251
- .noborder{
252
- border: none;
253
- }
254
- </style>
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
+ <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">&emsp;&emsp;公司:</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">&emsp;&emsp;部门:</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">&emsp;&emsp;人员:</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" style="float:right;">
53
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;&emsp;&emsp;&nbsp;&nbsp;&nbsp;</label>
54
+ <button class="button_search" @click="$parent.$parent.searchData()">查询</button>
55
+ <report-print id='gasprice' top='3cm' left='0' width='100%' height='100%' :preview="true"></report-print>
56
+ <report-excel id='gasprice'
57
+ v-if="$parent.$parent.jurisdiction.includes('excel导出')"
58
+ ></report-excel>
59
+ </div>
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='17' style="font-weight: normal; text-align: left;">
68
+ <h3 style="text-align: center">嘉澄汇沣非嘉澄汇沣对账</h3>
69
+ </th>
70
+ </tr>
71
+ <tr>
72
+ <th colspan='17' style="font-weight: normal; text-align: center;">
73
+ 开始时间:{{model.model.startDate}}&nbsp;&nbsp;&nbsp;
74
+ 结束时间:{{ model.model.endDate }}
75
+ </th>
76
+ </tr>
77
+ <tr>
78
+ <th colspan='17' style="font-weight: normal; text-align: center;">
79
+ 打印时间:{{{$parent.printTime}}}
80
+ </th>
81
+ </tr>
82
+ <tr>
83
+ <th colspan='17' style="font-weight: normal; text-align: center;">
84
+ <div>
85
+ <span v-show="$parent.orgname.trim()!=''">公司:{{ $parent.orgname }}</span>
86
+ <span v-show="$parent.depname.trim()!=''"> 部门:{{ $parent.depname }}</span>
87
+ <span v-show="$parent.operatorname.trim()!=''">人员:{{ $parent.operatorname }}</span>
88
+ </div>
89
+ </th>
90
+ </tr>
91
+ </thead>
92
+ <tr>
93
+ <td colspan='17'>
94
+ {{{ model.data.substring(26,model.data.length-8) }}}
95
+ </td>
96
+ </tr>
97
+ <tfoot>
98
+ <tr style="text-align: left">
99
+ <th colspan='6'>财务审核:</th>
100
+ <th colspan='6'>收款审核:</th>
101
+ <th colspan='5'>收款员:</th>
102
+ </tr>
103
+ </tfoot>
104
+ </table>
105
+ {{{ $parent.reportStr}}}
106
+ </div>
107
+ </criteria-paged>
108
+ <modal :show.sync="show" v-ref:modal small backdrop="false">
109
+ <header slot="modal-header" class="modal-header">
110
+ <h4 class="modal-title">输入文件名称</h4>
111
+ </header>
112
+ <article slot="modal-body" class="modal-body">
113
+ <div class="form-group">
114
+ <input type="text" class="form-control" v-model="filename" placeholder='保存的文件名'>
115
+ </div>
116
+ </article>
117
+ <footer slot="modal-footer" class="modal-footer">
118
+ <button v-show="show" type="button" class="btn btn-default" @click='close'>取消</button>
119
+ <button v-show="show" type="button" class="btn btn-success" @click='confirm(filename)'>确认</button>
120
+ </footer>
121
+ </modal>' ) 'div>
122
+ </template>
123
+
124
+ <script>
125
+ import { DataModel } from 'vue-client'
126
+ import co from 'co'
127
+ let saveFile = function * (self) {
128
+ // 线验证文件是否重名
129
+ let count = yield self.$resetpost('rs/sql/manageSingleTable',
130
+ {data: {tablename: 't_report_record', condition: `f_files_name = '${self.filename}'`}},
131
+ {resolveMsg: null, rejectMsg: null})
132
+ if (count.data.length > 0) {
133
+ self.$showAlert('无法保存,文件名重名', 'warning', 3000)
134
+ return
135
+ }
136
+ let saveBack = yield self.$resetpost('rs/logic/saveReport', {f_files_content: self.$refs.paged.$els.handcollect.innerHTML,
137
+ f_files_name: self.filename, f_files_type: self.data.f_report_type, f_component_name: 'manage-bus-summary',
138
+ f_operator: this.$login.f.name, f_query_month: `${self.model.model.startDate}-${self.model.model.endDate}`,
139
+ f_outlets: this.$login.f.depname})
140
+ if (saveBack.data.status === 'succeed') {
141
+ self.show = false
142
+ self.filename = ''
143
+ // 后台保存完成,通知刷新
144
+ self.$dispatch('save-success', self.filename)
145
+ }
146
+ }
147
+ export default {
148
+ title: '嘉澄汇沣非嘉澄汇沣对账',
149
+ props: ['data'],
150
+ data () {
151
+ return {
152
+ printTime: this.$login.toStandardTimeString(),
153
+ depresid: [],
154
+ userresid: [],
155
+ f_orgid: this.$login.f.orgid,
156
+ f_depid: this.$login.f.depids,
157
+ f_operatorid: this.$login.f.id,
158
+ jurisdiction: this.$login.r,
159
+ operatorid: [],
160
+ depid: [],
161
+ orgname: '',
162
+ depname: '',
163
+ operatorname: '',
164
+ f_inputtor:[],
165
+ f_user_type:'',
166
+ orgCondtionStr: '1=1',
167
+ model: new DataModel('rs/report/konggang', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
168
+ f_orgid: 'this.model.f_orgid'}),
169
+ reportStr: null,
170
+ show: false
171
+ }
172
+ },
173
+ ready () {
174
+ this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
175
+ this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
176
+ this.$refs.paged.$refs.criteria.search()
177
+ console.log(this.$login.f)
178
+ },
179
+ methods: {
180
+ searchData () {
181
+ this.$refs.paged.$refs.criteria.search()
182
+ },
183
+ selfSearch (args) {
184
+ console.log(args.condition + 'yyyqqq')
185
+ this.printTime = this.$login.toStandardTimeString()
186
+ let orgcondition = args.condition
187
+ if (this.f_orgid[0]) {
188
+ orgcondition += " and s.f_orgid in (" + this.f_orgid.toString() + ")"
189
+ }
190
+ if (this.f_depid[0]) {
191
+ orgcondition += " and s.f_depname like '%" + this.depname + "%'"
192
+ }
193
+ if (this.f_operatorid[0]) {
194
+ orgcondition += " and s.f_operator like '%" + this.operatorname + "%'"
195
+ }
196
+ this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
197
+ this.$refs.paged.search(args)
198
+ },
199
+ getRes (obj) {
200
+ this.orgname = obj.res[0]
201
+ this.depresid = obj.resids
202
+ this.f_orgid = obj.resids
203
+ this.userresid = obj.resids
204
+ },
205
+ getdep (obj, val) {
206
+ this.depname = val[0]
207
+ this.f_depid = obj
208
+ },
209
+ getuser ( obj, val) {
210
+ this.operatorname = val[0]
211
+ this.f_operatorid = obj
212
+ },
213
+ // 根据文件路径获取储存的报表内容
214
+ getFileContent (path) {
215
+ this.$resetpost('rs/logic/getReportFileContent', {f_files_path: path}, {resolveMsg: null, rejectMsg: null}).then((res) => {
216
+ this.reportStr = res.data.filecontent
217
+ this.model.state = '正确'
218
+ })
219
+ },
220
+ confirm () {
221
+ if (!this.filename || this.filename === '') {
222
+ this.$showAlert('无法保存,文件名不能为空', 'warning', 3000)
223
+ }
224
+ let saveGen = saveFile(this)
225
+ co(saveGen)
226
+ },
227
+ close () {
228
+ this.show = false
229
+ },
230
+ // 将报表保存成文件
231
+ confirmReport () {
232
+ this.show = true
233
+ this.filename = this.data.f_report_name + this.$login.toStandardDateString()
234
+ },
235
+ },
236
+ watch: {
237
+ 'data' (val) {
238
+ if (val.f_files_path) {
239
+ this.getFileContent(val.f_files_path)
240
+ } else {
241
+ this.reportStr = null
242
+ }
243
+ }
244
+ },
245
+ computed: {
246
+
247
+ }
248
+ }
249
+ </script>
250
+ <style scoped>
251
+ .noborder{
252
+ border: none;
253
+ }
254
+ </style>