apply-clients 3.0.7-151 → 3.0.7-152

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": "apply-clients",
3
- "version": "3.0.7-151",
3
+ "version": "3.0.7-152",
4
4
  "description": "报建前端模块",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -312,7 +312,6 @@
312
312
  },
313
313
  methods: {
314
314
  selfSearch (args) {
315
- debugger
316
315
  let f_apply_department = this.$login.f.f_department_name
317
316
  if(f_apply_department === '成山供气部'){
318
317
  args.condition = `${args.condition} and (u.f_apply_department = '成山供气部' OR u.f_apply_department is null)`
@@ -478,6 +477,9 @@
478
477
  ,
479
478
  check(val) {
480
479
  console.log("--------------进入check---------------")
480
+ new HttpResetClass().load('POST','rs/log/html',
481
+ `列表点击数据:${JSON.stringify(val)}`
482
+ , {resolveMsg: null, rejectMsg: null})
481
483
  this.$dispatch('check', val)
482
484
  this.$dispatch('addactive',val)
483
485
  }
@@ -1,182 +1,158 @@
1
- <template>
2
- <div class="col-sm-12" style="overflow:auto;background-color: #ffffff;">
3
- <div class="tops" v-bind:style="{ height: topheight }">
4
- <exploration-select v-ref:queryuser v-show="show"></exploration-select>
5
- <modify-user-files v-ref:modifyuser v-show="!show"></modify-user-files>
6
- </div>
7
- <div v-show="showtotal" v-bind:style="{ height: botheight ,'position': 'relative', 'top': '110px', 'background-color' : '#f6f6f6' ,padding:'12px'}">
8
- <div class="col-sm-10">
9
- <tabset v-ref:tabs :close="false">
10
- <tab :header='header' style="background-color :#f6f6f6;overflow: auto;">
11
- <service-control v-ref:service :selectdata="selectdata"></service-control>
12
- </tab>
13
- <tab header='附件'>
14
- <apply-upload v-ref:file
15
- :blodid="selectdata.f_process_id"
16
- :isupload = "true"
17
- :isdelete="true"
18
- :isusetype="true"
19
- :isremark = "true"
20
- :takeimg="false"
21
- :issearch="true"
22
- :defname="selectdata.defname">
23
- </apply-upload>
24
- </tab>
25
- </tabset>
26
- </div>
27
- <div class="col-sm-2" style="overflow:auto;" v-show="showbasic" >
28
- <history_control v-ref:binfo :selectdata="selectdata" ></history_control>
29
- </div>
30
- </div>
31
- </div>
32
- </template>
33
- <script>
34
- import Vue from 'vue'
35
- import {HttpResetClass} from 'vue-client'
36
- export default {
37
- title: '报建流程',
38
- data() {
39
- return {
40
- flagg: false,
41
- show: true,
42
- showbasic: false,
43
- showtotal: false,
44
- header: null,
45
- selectdata: {},
46
- botheight: '0%',
47
- topheight: '100%',
48
- tittle1: '户档案管理',
49
- tittle2: '表档案管理',
50
- tittle3: '设备管理',
51
- xmlname: ''
52
- }
53
- },
54
- created(){
55
- let http = new HttpResetClass()
56
- if (this.selectdata.type === '工业户' || this.selectdata.type === '商业户' || this.selectdata.f_apply_type === '工业户' || this.selectdata.f_apply_type === '商业户') {
57
- this.xmlname = '工商户'
58
- } else if (this.selectdata.f_apply_type === '民建户' || this.selectdata.f_apply_type === '民现户') {
59
- this.xmlname = this.selectdata.f_apply_type
60
- } else {
61
- this.xmlname = this.selectdata.type
62
- }
63
- let xmldata = {
64
- data: this.$login.f,
65
- workname: this.xmlname + '报建流程'
66
- }
67
- if (this.selectdata.type === '工程管理') {
68
- xmldata.workname = '工程管理流程'
69
- }
70
- http.load('POST', 'rs/logic/ApplyGetConfigs', {data: xmldata}, {resolveMsg: null, rejectMsg: null}
71
- ).then((res) => {
72
- if (res.data.code && res.data.code === 200) {
73
- Vue.workflow_vue = Vue.prototype.$workflow_vue = res.data.workflow_vue
74
- } else {
75
- this.$showMessage('获取报建配置失败,原因:' + res.data.msg)
76
- return
77
- }
78
- })
79
- },
80
- events: {
81
- 'onMessage' (data) {
82
- console.log('接收消息')
83
- console.log(data)
84
- if (data.type === 'apply-task') {
85
- this.$refs.queryuser.$refs.cp.$refs.cri.search()
86
- this.$refs.file.load()
87
- }
88
- },
89
- 'addactive' () {
90
- //this.$refs.queryuser.$refs.cp.$refs.cri.search()
91
- this.hidden()
92
- this.showbasic = true
93
- this.topheight = '8%'
94
- this.botheight = '88.9%'
95
- },
96
- 'changeheight'() {
97
- this.show = true
98
- this.botheight = '0%'
99
- },
100
- 'check' (val) {
101
- this.selectdata = null
102
- this.selectdata = val
103
- if (this.selectdata.f_apply_type === '工业户' || this.selectdata.f_apply_type === '商业户') {
104
- this.xmlname = '工商户报建流程'
105
- } else if (this.selectdata.f_apply_type === '民建户') {
106
- this.xmlname = '民建户报建流程'
107
- } else if (this.selectdata.f_apply_type === '民现户') {
108
- this.xmlname = '民现户报建流程'
109
- } else if (this.selectdata.f_apply_type === '改造工程') {
110
- this.xmlname = '改造报建流程'
111
- } else if (this.selectdata.f_apply_type === '市政工程') {
112
- this.xmlname = '市政报建流程'
113
- } else {
114
- this.xmlname = this.selectdata.type + '报建流程'
115
- }
116
- let xmldata = {
117
- data: this.$login.f,
118
- workname: this.xmlname
119
- }
120
- let http = new HttpResetClass()
121
- http.load('POST', 'rs/logic/ApplyGetConfigs', {data: xmldata}, {resolveMsg: null, rejectMsg: null}
122
- ).then((res) => {
123
- if (res.data.code && res.data.code === 200) {
124
- Vue.workflow_vue = Vue.prototype.$workflow_vue = res.data.workflow_vue
125
- if (res.data.msg) {
126
- console.log('获取配置文件信息:', res.data.msg)
127
- }
128
- this.topheight = '8%'
129
- this.botheight = '88.9%'
130
- // this.$refs.queryuser.$refs.cp.$refs.grid.model.rows = [val]
131
- this.$refs.queryuser.$refs.cp.pager = false
132
- this.showbasic = true
133
- this.header = val.defname
134
- this.hidden()
135
- this.$refs.service.refurbish(val)
136
- } else {
137
- this.$showMessage('获取报建配置失败,原因:' + res.data.msg)
138
- return
139
- }
140
- })
141
- },
142
- 'selfsearch'() {
143
- this.$refs.queryuser.$refs.cp.$refs.cri.search()
144
- },
145
- 'close'() {
146
- this.showtotal = false
147
- this.topheight = '100%'
148
- this.botheight = '0%'
149
- this.$refs.queryuser.$refs.cp.pager = true
150
- this.$refs.queryuser.$refs.cp.$refs.cri.search()
151
- },
152
- 'cancelmain'() {
153
- this.showtotal = false
154
- this.topheight = '100%'
155
- this.botheight = '0%'
156
- /* this.$refs.queryuser.$refs.cp.loadPage()*/
157
- this.$refs.queryuser.$refs.cp.pager = true
158
- this.$refs.queryuser.model.loadPage(this.$refs.queryuser.model.pageIndex)
159
- }
160
- },
161
- methods: {
162
- hidden() {
163
- this.showtotal = true
164
- },
165
- close() {
166
- this.hidden()
167
- this.topheight = '100%'
168
- this.botheight = '0%'
169
- }
170
- },
171
- watch: {
172
- 'selectdata'(val) {
173
- console.log('selectdata:', val)
174
- },
175
- 'selectdata.f_customer_type'() {
176
- if (this.selectdata.f_customer_type == '企业') {
177
- this.flagg = true
178
- }
179
- }
180
- }
181
- }
182
- </script>
1
+ <template>
2
+ <div class="col-sm-12" style="overflow:auto;background-color: #ffffff;">
3
+ <div class="tops" v-bind:style="{ height: topheight }">
4
+ <exploration-select v-ref:queryuser v-show="show"></exploration-select>
5
+ <modify-user-files v-ref:modifyuser v-show="!show"></modify-user-files>
6
+ </div>
7
+ <div v-show="showtotal" v-bind:style="{ height: botheight ,'position': 'relative', 'top': '110px', 'background-color' : '#f6f6f6' ,padding:'12px'}">
8
+ <div class="col-sm-10">
9
+ <tabset v-ref:tabs :close="false">
10
+ <tab :header='header' style="background-color :#f6f6f6;overflow: auto;">
11
+ <service-control v-ref:service :selectdata="selectdata"></service-control>
12
+ </tab>
13
+ <tab header='附件'>
14
+ <apply-upload v-ref:file
15
+ :blodid="selectdata.f_process_id"
16
+ :isupload = "true"
17
+ :isdelete="true"
18
+ :isusetype="true"
19
+ :isremark = "true"
20
+ :takeimg="false"
21
+ :issearch="true"
22
+ :defname="selectdata.defname">
23
+ </apply-upload>
24
+ </tab>
25
+ </tabset>
26
+ </div>
27
+ <div class="col-sm-2" style="overflow:auto;" v-show="showbasic" >
28
+ <history_control v-ref:binfo :selectdata="selectdata" ></history_control>
29
+ </div>
30
+ </div>
31
+ </div>
32
+ </template>
33
+ <script>
34
+ import Vue from 'vue'
35
+ import {HttpResetClass} from 'vue-client'
36
+ export default {
37
+ title: '报建流程',
38
+ data() {
39
+ return {
40
+ flagg: false,
41
+ show: true,
42
+ showbasic: false,
43
+ showtotal: false,
44
+ header: null,
45
+ selectdata: {},
46
+ botheight: '0%',
47
+ topheight: '100%',
48
+ tittle1: '户档案管理',
49
+ tittle2: '表档案管理',
50
+ tittle3: '设备管理',
51
+ xmlname: ''
52
+ }
53
+ },
54
+ created(){
55
+ },
56
+ events: {
57
+ 'onMessage' (data) {
58
+ console.log('接收消息')
59
+ console.log(data)
60
+ if (data.type === 'apply-task') {
61
+ this.$refs.queryuser.$refs.cp.$refs.cri.search()
62
+ this.$refs.file.load()
63
+ }
64
+ },
65
+ 'addactive' () {
66
+ //this.$refs.queryuser.$refs.cp.$refs.cri.search()
67
+ this.hidden()
68
+ this.showbasic = true
69
+ this.topheight = '8%'
70
+ this.botheight = '88.9%'
71
+ },
72
+ 'changeheight'() {
73
+ this.show = true
74
+ this.botheight = '0%'
75
+ },
76
+ 'check' (val) {
77
+ this.selectdata = null
78
+ this.selectdata = val
79
+ if (this.selectdata.f_apply_type === '工业户' || this.selectdata.f_apply_type === '商业户') {
80
+ this.xmlname = '工商户报建流程'
81
+ } else if (this.selectdata.f_apply_type === '民建户') {
82
+ this.xmlname = '民建户报建流程'
83
+ } else if (this.selectdata.f_apply_type === '民现户') {
84
+ this.xmlname = '民现户报建流程'
85
+ } else if (this.selectdata.f_apply_type === '改造工程') {
86
+ this.xmlname = '改造报建流程'
87
+ } else if (this.selectdata.f_apply_type === '市政工程') {
88
+ this.xmlname = '市政报建流程'
89
+ } else {
90
+ this.xmlname = this.selectdata.type + '报建流程'
91
+ }
92
+ let xmldata = {
93
+ data: this.$login.f,
94
+ workname: this.xmlname
95
+ }
96
+ let http = new HttpResetClass()
97
+ http.load('POST', 'rs/logic/ApplyGetConfigs', {data: xmldata}, {resolveMsg: null, rejectMsg: null}
98
+ ).then((res) => {
99
+ if (res.data.code && res.data.code === 200) {
100
+ Vue.workflow_vue = Vue.prototype.$workflow_vue = res.data.workflow_vue
101
+ if (res.data.msg) {
102
+ console.log('获取配置文件信息:', res.data.msg)
103
+ }
104
+ this.topheight = '8%'
105
+ this.botheight = '88.9%'
106
+ // this.$refs.queryuser.$refs.cp.$refs.grid.model.rows = [val]
107
+ this.$refs.queryuser.$refs.cp.pager = false
108
+ this.showbasic = true
109
+ this.header = val.defname
110
+ this.hidden()
111
+ this.$refs.service.refurbish(val)
112
+ } else {
113
+ this.$showMessage('获取报建配置失败,原因:' + res.data.msg)
114
+ return
115
+ }
116
+ })
117
+ },
118
+ 'selfsearch'() {
119
+ this.$refs.queryuser.$refs.cp.$refs.cri.search()
120
+ },
121
+ 'close'() {
122
+ this.showtotal = false
123
+ this.topheight = '100%'
124
+ this.botheight = '0%'
125
+ this.$refs.queryuser.$refs.cp.pager = true
126
+ this.$refs.queryuser.$refs.cp.$refs.cri.search()
127
+ },
128
+ 'cancelmain'() {
129
+ this.showtotal = false
130
+ this.topheight = '100%'
131
+ this.botheight = '0%'
132
+ /* this.$refs.queryuser.$refs.cp.loadPage()*/
133
+ this.$refs.queryuser.$refs.cp.pager = true
134
+ this.$refs.queryuser.model.loadPage(this.$refs.queryuser.model.pageIndex)
135
+ }
136
+ },
137
+ methods: {
138
+ hidden() {
139
+ this.showtotal = true
140
+ },
141
+ close() {
142
+ this.hidden()
143
+ this.topheight = '100%'
144
+ this.botheight = '0%'
145
+ }
146
+ },
147
+ watch: {
148
+ 'selectdata'(val) {
149
+ console.log('selectdata:', val)
150
+ },
151
+ 'selectdata.f_customer_type'() {
152
+ if (this.selectdata.f_customer_type == '企业') {
153
+ this.flagg = true
154
+ }
155
+ }
156
+ }
157
+ }
158
+ </script>