apply-clients 3.5.5-35 → 3.5.5-37

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.
@@ -5,11 +5,11 @@ var proxyMiddleware = require('http-proxy-middleware')
5
5
  // var httpProxy = require('http-proxy')
6
6
  var app = express()
7
7
  var compiler = webpack(config)
8
- // var proxy = httpProxy.createProxyServer()
9
- // var ldap = 'http://121.36.79.201:8400'
10
- // var applyinstall = 'http://121.36.79.201:8400'
11
- var ldap = 'http://192.168.50.93:31986/'
12
- var applyinstall = 'http://192.168.50.93:31986/'
8
+ var ldap = 'http://125.71.238.50:30789'
9
+ var applyinstall = 'http://125.71.238.50:30789'
10
+ //测试地址
11
+ // var ldap = 'http://192.168.50.93:31986'
12
+ // var applyinstall = 'http://192.168.50.93:31986'
13
13
 
14
14
  var proxyTable = {
15
15
  '/rs/logic/getSaleInitData': {
@@ -124,10 +124,10 @@ app.use(hotMiddleware)
124
124
  // serve pure static assets
125
125
  app.use('/static', express.static('./static'))
126
126
 
127
- module.exports = app.listen(8300, function (err) {
127
+ module.exports = app.listen(30789, function (err) {
128
128
  if (err) {
129
129
  console.log(err)
130
130
  return
131
131
  }
132
- console.log('Listening at http://localhost:8300')
132
+ console.log('Listening at http://localhost:30789')
133
133
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apply-clients",
3
- "version": "3.5.5-35",
3
+ "version": "3.5.5-37",
4
4
  "description": "报建前端模块",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -96,7 +96,7 @@
96
96
  "sinon-chai": "^2.8.0",
97
97
  "style": "0.0.3",
98
98
  "style-loader": "^0.20.3",
99
- "system-clients": "3.2.86",
99
+ "system-clients": "4.0.13",
100
100
  "system-phone": "1.2.80-49",
101
101
  "url-loader": "^0.5.7",
102
102
  "vue-client": "1.25.33",
@@ -1,141 +1,141 @@
1
- <template>
2
- <div class="flex-row">
3
- <div class="basic-main">
4
- <div :class="showData ? 'top' : 'auto'">
5
- <supervisory-list v-ref:query :show-data="showData"></supervisory-list>
6
- </div>
7
- <div v-if="showtotal" style="height: 89%">
8
- <div class="col-sm-2" style="margin-top: 20px">
9
- <supervisory-chart :selectdata="selectdata"></supervisory-chart>
10
- </div>
11
- <div class="col-sm-10" style="margin-top: 20px">
12
- <tabset v-ref:tabs :close="false">
13
- <tab :header='selectdata.defname'>
14
- <supervisory-service-control :selectdata="selectdata" :node-snapshot="true"></supervisory-service-control>
15
- </tab>
16
- <tab header='附件'>
17
- <apply-upload :blodid="selectdata.f_process_id"
18
- :pblobid="selectdata.f_parent_process_id"
19
- :isupload = "false"
20
- :isdelete="false"
21
- :isusetype="true"
22
- :isremark = "true"
23
- :takeimg="false"
24
- :issearch="true"
25
- :defname="selectdata.defname">
26
- </apply-upload>
27
- </tab>
28
- </tabset>
29
- </div>
30
- <div style="height: 1%">
31
-
32
- </div>
33
- </div>
34
- </div>
35
- </div>
36
-
37
- </template>
38
- <script>
39
- import Vue from 'vue'
40
- import {HttpResetClass} from 'vue-client'
41
- export default {
42
- title: '流程监控',
43
- data () {
44
- return {
45
- showtotal: false, // 控制详细信息显示
46
- showData: true,
47
- selectdata: {},
48
- xmlname: '' // 配置文件名称
49
- }
50
- },
51
- created () {
52
- },
53
- methods: {
54
- // 获取页面配置json文件
55
- async loadName () {
56
- let data = {
57
- workname: this.selectdata.processname
58
- }
59
-
60
- let res = await this.$resetpost(
61
- 'rs/logic/ApplyGetConfigs',
62
- {data: data},
63
- {resolveMsg: null, rejectMsg: '配置数据获取失败!!!'}
64
- )
65
-
66
- Vue.prototype.$workflow_vue = res.data
67
- }
68
- },
69
- events: {
70
- // 刷新控制层
71
- async 'breakControl' (servicedata) {
72
-
73
- if (servicedata.id) {
74
- let data = {
75
- condition: `u.id = ${servicedata.id}`,
76
- data: {
77
- orgid: this.$login.f.orgid
78
- }
79
- }
80
- let res = await this.$resetpost(
81
- 'rs/sql/supervisory',
82
- {data: data},
83
- {resolveMsg: null, rejectMsg: '数据更新失败,请手查询更新!!!'}
84
- )
85
- this.selectdata = Object.assign({}, this.selectdata, res.data[0])
86
- } else {
87
- this.selectdata = servicedata
88
- }
89
-
90
- this.showtotal = false
91
- this.$nextTick(() => {
92
- this.showtotal = true
93
- })
94
-
95
- },
96
- 'onMessage' (data) {
97
- console.log('接收消息')
98
- console.log(data)
99
- if (data.type === 'apply-task') {
100
- this.$refs.queryuser.$refs.cp.$refs.cri.search()
101
- }
102
- },
103
- async 'apply' (val) {
104
- this.selectdata = null
105
- this.selectdata = val
106
- this.showtotal = false
107
-
108
- // 获取配置文件
109
- await this.loadName()
110
-
111
- this.$refs.query.$refs.cp.pager = false
112
- this.showData = false
113
-
114
- this.showtotal = true
115
- },
116
- 'search' () {
117
- // 关闭详细
118
- this.showtotal = false
119
- // 显示列表数据
120
- this.showData = true
121
- // 显示分页
122
- this.$refs.query.$refs.cp.pager = true
123
- // 调用查询
124
- this.$refs.query.$refs.cp.$refs.cri.search()
125
- },
126
- 'loadPage' () {
127
- // 关闭详细
128
- this.showtotal = false
129
- // 显示列表数据
130
- this.showData = true
131
- // 显示分页
132
- this.$refs.query.$refs.cp.pager = true
133
- // 调用查询
134
- this.$refs.query.$refs.cp.loadPage(this.$refs.query.model.pageIndex)
135
- }
136
- },
137
-
138
- watch: {
139
- }
140
- }
141
- </script>
1
+ <template>
2
+ <div class="flex-row">
3
+ <div class="basic-main">
4
+ <div :class="showData ? 'top' : 'auto'">
5
+ <supervisory-list v-ref:query :show-data="showData"></supervisory-list>
6
+ </div>
7
+ <div v-if="showtotal" style="height: 89%">
8
+ <div class="col-sm-2" style="margin-top: 20px">
9
+ <supervisory-chart :selectdata="selectdata"></supervisory-chart>
10
+ </div>
11
+ <div class="col-sm-10" style="margin-top: 20px">
12
+ <tabset v-ref:tabs :close="false">
13
+ <tab :header='selectdata.defname'>
14
+ <supervisory-service-control :selectdata="selectdata" :node-snapshot="true"></supervisory-service-control>
15
+ </tab>
16
+ <tab header='附件'>
17
+ <apply-upload :blodid="selectdata.f_process_id"
18
+ :pblobid="selectdata.f_parent_process_id"
19
+ :isupload = "false"
20
+ :isdelete="false"
21
+ :isusetype="true"
22
+ :isremark = "true"
23
+ :takeimg="false"
24
+ :issearch="true"
25
+ :defname="selectdata.defname">
26
+ </apply-upload>
27
+ </tab>
28
+ </tabset>
29
+ </div>
30
+ <div style="height: 1%">
31
+
32
+ </div>
33
+ </div>
34
+ </div>
35
+ </div>
36
+
37
+ </template>
38
+ <script>
39
+ import Vue from 'vue'
40
+ import {HttpResetClass} from 'vue-client'
41
+ export default {
42
+ title: '流程监控',
43
+ data () {
44
+ return {
45
+ showtotal: false, // 控制详细信息显示
46
+ showData: true,
47
+ selectdata: {},
48
+ xmlname: '' // 配置文件名称
49
+ }
50
+ },
51
+ created () {
52
+ },
53
+ methods: {
54
+ // 获取页面配置json文件
55
+ async loadName () {
56
+ let data = {
57
+ workname: this.selectdata.processname
58
+ }
59
+
60
+ let res = await this.$resetpost(
61
+ 'rs/logic/ApplyGetConfigs',
62
+ {data: data},
63
+ {resolveMsg: null, rejectMsg: '配置数据获取失败!!!'}
64
+ )
65
+
66
+ Vue.prototype.$workflow_vue = res.data
67
+ }
68
+ },
69
+ events: {
70
+ // 刷新控制层
71
+ async 'breakControl' (servicedata) {
72
+
73
+ if (servicedata.id) {
74
+ let data = {
75
+ condition: `u.id = ${servicedata.id}`,
76
+ data: {
77
+ orgid: this.$login.f.orgid
78
+ }
79
+ }
80
+ let res = await this.$resetpost(
81
+ 'rs/sql/supervisory',
82
+ {data: data},
83
+ {resolveMsg: null, rejectMsg: '数据更新失败,请手查询更新!!!'}
84
+ )
85
+ this.selectdata = Object.assign({}, this.selectdata, res.data[0])
86
+ } else {
87
+ this.selectdata = servicedata
88
+ }
89
+
90
+ this.showtotal = false
91
+ this.$nextTick(() => {
92
+ this.showtotal = true
93
+ })
94
+
95
+ },
96
+ 'onMessage' (data) {
97
+ console.log('接收消息')
98
+ console.log(data)
99
+ if (data.type === 'apply-task') {
100
+ this.$refs.queryuser.$refs.cp.$refs.cri.search()
101
+ }
102
+ },
103
+ async 'apply' (val) {
104
+ this.selectdata = null
105
+ this.selectdata = val
106
+ this.showtotal = false
107
+
108
+ // 获取配置文件
109
+ await this.loadName()
110
+
111
+ this.$refs.query.$refs.cp.pager = false
112
+ this.showData = false
113
+
114
+ this.showtotal = true
115
+ },
116
+ 'search' () {
117
+ // 关闭详细
118
+ this.showtotal = false
119
+ // 显示列表数据
120
+ this.showData = true
121
+ // 显示分页
122
+ this.$refs.query.$refs.cp.pager = true
123
+ // 调用查询
124
+ this.$refs.query.$refs.cp.$refs.cri.search()
125
+ },
126
+ 'loadPage' () {
127
+ // 关闭详细
128
+ this.showtotal = false
129
+ // 显示列表数据
130
+ this.showData = true
131
+ // 显示分页
132
+ this.$refs.query.$refs.cp.pager = true
133
+ // 调用查询
134
+ this.$refs.query.$refs.cp.loadPage(this.$refs.query.model.pageIndex)
135
+ }
136
+ },
137
+
138
+ watch: {
139
+ }
140
+ }
141
+ </script>
@@ -4,6 +4,45 @@
4
4
  <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:criteria>
5
5
  <div novalidate class="form-horizontal select-overspread container-fluid auto" partial >
6
6
  <div class="row">
7
+ <div class="col-sm-2">
8
+ <label class="font_normal_body">组织机构:</label>
9
+ <res-select
10
+ restype='organization'
11
+ :initresid='$parent.$parent.curorgid'
12
+ @res-select="$parent.$parent.getorg"
13
+ :is-mul="false"
14
+ ></res-select>
15
+ </div>
16
+ <div class="col-sm-2">
17
+ <label class="font_normal_body">部&emsp;&emsp;门:</label>
18
+ <res-select
19
+ restype='department'
20
+ :parentresid="$parent.$parent.curorgid"
21
+ :initresid='$parent.$parent.curdepid'
22
+ @res-select="$parent.$parent.getdep"
23
+ :is-mul="true"
24
+ ></res-select>
25
+ </div>
26
+ <div class="col-sm-2">
27
+ <label class="font_normal_body">人&emsp;&emsp;员:</label>
28
+ <res-select
29
+ restype='user'
30
+ :parentresid="$parent.$parent.curdepid"
31
+ :initresid='$parent.$parent.curuserid'
32
+ @res-select="$parent.$parent.getuser"
33
+ :is-mul="true"></res-select>
34
+ </div>
35
+ <div class="col-sm-2" >
36
+ <label class="font_normal_body" for="startDate">分组项:</label>
37
+ <v-select
38
+ :value.sync="model.f_public_group1"
39
+ v-model="model.f_public_group1"
40
+ v-ref:groupone
41
+ :options='$parent.$parent.group1'
42
+ placeholder='请选择'
43
+ close-on-select
44
+ ></v-select>
45
+ </div>
7
46
  <div class="col-sm-2" >
8
47
  <label class="font_normal_body" for="startDate">开始日期:</label>
9
48
  <datepicker id="startDate" placeholder="开始日期" style="width: 60%"
@@ -54,7 +93,7 @@
54
93
  </th>
55
94
  </tr>
56
95
  <tr>
57
- <th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
96
+ <th :colspan='$par ent.spans' style="font-weight: normal; text-align: center;">
58
97
  <div>
59
98
  <span v-show="$parent.orgname.trim()!=''">公司:{{$parent.orgname}}</span>
60
99
  <span v-show="$parent.depname.trim()!=''"> 部门:{{$parent.depname}}</span>
@@ -70,9 +109,9 @@
70
109
  </tr>
71
110
  <tfoot>
72
111
  </tfoot>
73
- </table>
112
+ </table>
74
113
  </div>
75
- </criteria-paged>
114
+ </criteria-page d>
76
115
  </div>
77
116
  </template>
78
117
  <script>
@@ -83,6 +122,9 @@ export default {
83
122
  data () {
84
123
  return {
85
124
  printTime: this.$login.toStandardTimeString(),
125
+ curorgid: [this.$login.f.orgid],
126
+ curdepid: [],
127
+ curuserid: [],
86
128
  depresid: [],
87
129
  userresid: [],
88
130
  f_orgid: this.$login.f.orgid,
@@ -98,40 +140,70 @@ export default {
98
140
  orgCondtionStr: '1=1',
99
141
  model: new DataModel('rs/report/fgChargeRecord', {
100
142
  startDate: 'this.model.startDate', endDate: 'this.model.endDate',
101
- f_orgid: 'this.model.f_orgid'
143
+ f_orgid: 'this.model.f_orgid',
144
+ f_public_group1: 'this.model.f_public_group1[0]',
145
+ group1Name: 'this.model.group1Name'
102
146
  }),
103
147
  reportStr: null,
104
148
  spans: 0,
149
+ f_public_group1: '',
150
+ group1Name: ''
105
151
  }
106
152
  },
107
153
  ready () {
108
154
  this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
109
155
  this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
110
- this.searchData()
111
156
  },
112
157
  created () {
113
158
  },
114
159
  methods: {
115
- searchData () {
116
- this.$refs.paged.$refs.criteria.search()
117
- },
118
160
  selfSearch(args) {
119
- console.log(args)
161
+ this.$refs.paged.$refs.criteria.model.group1Name = this.$refs.paged.$refs.criteria.$refs.groupone.selectedItems
162
+ if (this.curuserid.length > 0) {
163
+ args.condition = args.condition + ` and cr.f_charge_collectors_id in (${this.curuserid})`
164
+ }
120
165
  let orgcondition = 'f_orgid in (' + this.f_orgid + ')'
166
+ let name1 = args.model.f_public_group1
167
+ if (name1 == null || name1 == ''){
168
+ alert("请选择分组项!!!")
169
+ return
170
+ }
121
171
  this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
122
172
  this.$refs.paged.search(args)
123
173
  },
124
- getRes (obj) {
125
- this.orgname = obj.res[0]
126
- this.f_orgid = obj.resids
174
+ getuser (val) {
175
+ if (val.length <= 0) {
176
+ return
177
+ }
178
+ this.curuserid = val
179
+ },
180
+ getdep (val) {
181
+ if (val.length <= 0) {
182
+ return
183
+ }
184
+ this.curdepid = val
185
+ this.curuserid = []
186
+ },
187
+ getorg (val) {
188
+ if (val.length <= 0) {
189
+ return
190
+ }
191
+ this.curorgid = val
192
+ this.curdepid = []
193
+ this.curuserid = []
194
+ },
195
+ searchData () {
196
+ this.$refs.paged.$refs.criteria.search()
127
197
  }
128
198
  },
199
+ computed: {
200
+ group1() {
201
+ return [{label:'报建类型', value:'f_apply_type'}, {label:'报建性质', value:'f_apply_nature'}]
202
+ }
203
+ },
129
204
  watch: {
130
205
  'model.data' (val) {
131
206
  this.spans = val.split('</tr>').map(item => item.split('</td>').length - 1).reduce((x, y) => x > y ? x : y)
132
- },
133
- 'this.$refs.paged.$refs.criteria.model.f_insurance_company' (val) {
134
- console.log(val)
135
207
  }
136
208
  }
137
209
  }