apply-clients 7.1.36-yuchuan-10 → 7.1.36-yuchuan-11

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,90 +1,90 @@
1
- <template>
2
- <div id="unit" class="row" :class="{'binary':showItem}">
3
- <div :class="{'basic-main':!showItem,'binary-left':showItem}">
4
- <gongjian-apply-list @select-changed="idsearch" :styles="showItem?'col-sm-3':'col-sm-2'" v-if="stepControl"
5
- v-ref:jgDeviceAlarmlist @add="add"></gongjian-apply-list>
6
- </div>
7
- <div class="binary-right">
8
- <gongjian-apply-dispose :recordlist="recordlist" :model="model" :oldmodel="oldmodel" v-show="showItem"
9
- :f_distribution_state="f_distribution_state" :row="row" :rowsdata="rowsdata1"
10
- :warehousename="warehousename"
11
- ></gongjian-apply-dispose>
12
- </div>
13
- </div>
14
- </template>
15
-
16
- <script>
17
- export default {
18
- title: '政府报建',
19
- components: {},
20
- data() {
21
- return {
22
- f_alarmId: '',
23
- row: {},
24
- model: {},
25
- oldmodel: {},
26
- showItem: false,
27
- stepControl: true,
28
-
29
- // 分公司id串
30
- width: '100%',
31
- f_filialeids: this.$login.f.f_orgids,
32
- areaShow: false,
33
- areatype: '小区',
34
- arearow: {},
35
- style: 'col-sm-2'
36
- }
37
- },
38
- methods: {
39
- selected(obj) {
40
- this.style = 'col-sm-3 '
41
- if (obj.val && obj.val.id) {
42
- console.log('对比分公司', obj.val.f_filialeid, this.f_filialeids)
43
- if (obj.val.f_filialeid !== this.f_filialeids) {
44
- this.refresh()
45
- return
46
- }
47
- this.areaShow = true
48
- this.$refs.addareamsg.cleardara()
49
- this.$refs.addareamsg.operation = 'modify'
50
- this.$refs.addareamsg.areatype = '小区'
51
- this.$refs.addareamsg.areamodel = Object.assign({}, obj.val)
52
- if (obj.val.f_slice_area && obj.val.f_area_code) {
53
- this.$refs.addareamsg.areamodel.slice_area = [{
54
- name: this.$refs.addareamsg.areamodel.f_slice_area,
55
- code: this.$refs.addareamsg.areamodel.f_area_code
56
- }]
57
- }
58
- this.$refs.addareamsg.initdata(obj.val)
59
- }
60
- },
61
- add (a) {
62
- console.log('新增')
63
- this.showItem = true
64
- this.model = {}
65
- this.oldmodel = {}
66
- },
67
- refresh() {
68
- this.areaShow = false
69
- this.$refs.arealist.$refs.paged.$refs.cri.search()
70
- },
71
- idsearch(row) {
72
- this.showItem = true
73
- this.model = JSON.parse(JSON.stringify(row.val))
74
- this.oldmodel = JSON.parse(JSON.stringify(row.val))
75
- },
76
- getAlarmData () {
77
- let data = {}
78
- }
79
- },
80
- events: {
81
- 'close'() {
82
- this.showItem = false
83
- this.$refs.stocklist.search()
84
- console.log('this.$refs', this.$refs)
85
- console.log('showitem', this.showItem)
86
- },
87
- }
88
- }
89
- </script>
90
-
1
+ <template>
2
+ <div id="unit" class="row" :class="{'binary':showItem}">
3
+ <div :class="{'basic-main':!showItem,'binary-left':showItem}">
4
+ <gongjian-apply-list @select-changed="idsearch" :styles="showItem?'col-sm-3':'col-sm-2'" v-if="stepControl"
5
+ v-ref:jgDeviceAlarmlist @add="add"></gongjian-apply-list>
6
+ </div>
7
+ <div class="binary-right">
8
+ <gongjian-apply-dispose :recordlist="recordlist" :model="model" :oldmodel="oldmodel" v-show="showItem"
9
+ :f_distribution_state="f_distribution_state" :row="row" :rowsdata="rowsdata1"
10
+ :warehousename="warehousename"
11
+ ></gongjian-apply-dispose>
12
+ </div>
13
+ </div>
14
+ </template>
15
+
16
+ <script>
17
+ export default {
18
+ title: '政府报建',
19
+ components: {},
20
+ data() {
21
+ return {
22
+ f_alarmId: '',
23
+ row: {},
24
+ model: {},
25
+ oldmodel: {},
26
+ showItem: false,
27
+ stepControl: true,
28
+
29
+ // 分公司id串
30
+ width: '100%',
31
+ f_filialeids: this.$login.f.f_fengongsi?this.$login.f.f_fengongsi:'榆林.榆川天然气',
32
+ areaShow: false,
33
+ areatype: '小区',
34
+ arearow: {},
35
+ style: 'col-sm-2'
36
+ }
37
+ },
38
+ methods: {
39
+ selected(obj) {
40
+ this.style = 'col-sm-3 '
41
+ if (obj.val && obj.val.id) {
42
+ console.log('对比分公司', obj.val.f_filialeid, this.f_filialeids)
43
+ if (obj.val.f_filialeid !== this.f_filialeids) {
44
+ this.refresh()
45
+ return
46
+ }
47
+ this.areaShow = true
48
+ this.$refs.addareamsg.cleardara()
49
+ this.$refs.addareamsg.operation = 'modify'
50
+ this.$refs.addareamsg.areatype = '小区'
51
+ this.$refs.addareamsg.areamodel = Object.assign({}, obj.val)
52
+ if (obj.val.f_slice_area && obj.val.f_area_code) {
53
+ this.$refs.addareamsg.areamodel.slice_area = [{
54
+ name: this.$refs.addareamsg.areamodel.f_slice_area,
55
+ code: this.$refs.addareamsg.areamodel.f_area_code
56
+ }]
57
+ }
58
+ this.$refs.addareamsg.initdata(obj.val)
59
+ }
60
+ },
61
+ add (a) {
62
+ console.log('新增')
63
+ this.showItem = true
64
+ this.model = {}
65
+ this.oldmodel = {}
66
+ },
67
+ refresh() {
68
+ this.areaShow = false
69
+ this.$refs.arealist.$refs.paged.$refs.cri.search()
70
+ },
71
+ idsearch(row) {
72
+ this.showItem = true
73
+ this.model = JSON.parse(JSON.stringify(row.val))
74
+ this.oldmodel = JSON.parse(JSON.stringify(row.val))
75
+ },
76
+ getAlarmData () {
77
+ let data = {}
78
+ }
79
+ },
80
+ events: {
81
+ 'close'() {
82
+ this.showItem = false
83
+ this.$refs.stocklist.search()
84
+ console.log('this.$refs', this.$refs)
85
+ console.log('showitem', this.showItem)
86
+ },
87
+ }
88
+ }
89
+ </script>
90
+
@@ -259,7 +259,7 @@ export default {
259
259
  return {
260
260
  condition: this.$refs.cp.$refs.cri.condition,
261
261
  data: {
262
- f_filiale: this.$login.f.f_fengongsi
262
+ f_filiale: this.$login.f.f_fengongsi?this.$login.f.f_fengongsi:'榆林.榆川天然气'
263
263
  }
264
264
  }
265
265
  }
@@ -527,7 +527,7 @@ export default {
527
527
  return {
528
528
  condition: this.model.condition,
529
529
  data: {
530
- f_filiale: this.$login.f.f_fengongsi
530
+ f_filiale: this.$login.f.f_fengongsi?this.$login.f.f_fengongsi:'榆林.榆川天然气'
531
531
  }
532
532
  }
533
533
  }
@@ -267,7 +267,7 @@ export default {
267
267
  return {
268
268
  condition: this.$refs.cp.$refs.cri.condition,
269
269
  data: {
270
- f_filiale: this.$login.f.f_fengongsi
270
+ f_filiale: this.$login.f.f_fengongsi?this.$login.f.f_fengongsi:'榆林.榆川天然气'
271
271
  }
272
272
  }
273
273
  }
@@ -533,7 +533,7 @@ export default {
533
533
  condition: this.$refs.cp.$refs.cri.condition,
534
534
  data: {
535
535
  userid: this.$login.f.id,
536
- f_filiale: this.$login.f.f_fengongsi
536
+ f_filiale: this.$login.f.f_fengongsi?this.$login.f.f_fengongsi:'榆林.榆川天然气'
537
537
  }
538
538
  }
539
539
  }
@@ -1,158 +1,158 @@
1
- <template>
2
- <div class="flex-row">
3
- <div class="basic-main">
4
- <div :class="showData ? 'top' : 'auto'">
5
- <exploration-select v-ref:query :show-data="showData"></exploration-select>
6
- </div>
7
- <!-- <div v-if="showtotal">-->
8
- <!-- <new-exploration-user :selectdata="selectdata"></new-exploration-user>-->
9
- <!-- </div>-->
10
- <div v-if="showtotal" style="height: 89%">
11
- <tabset v-ref:tabs :close="false" :active.sync="active">
12
- <tab :header='selectdata.defname'>
13
- <service-control v-ref:service :selectdata="selectdata"></service-control>
14
- </tab>
15
- <tab header='地图'>
16
- <apply-map-com :selectdata="selectdata"></apply-map-com>
17
- </tab>
18
- <tab header='附件'>
19
- <apply-upload :blodid="selectdata.f_process_id"
20
- :isupload = "true"
21
- :isdelete="true"
22
- :isusetype="true"
23
- :isremark = "true"
24
- :takeimg="true"
25
- :issearch="true"
26
- :defname="selectdata.defname">
27
- </apply-upload>
28
- </tab>
29
- </tabset>
30
- </div>
31
- </div>
32
- </div>
33
- </template>
34
- <script>
35
- import Vue from 'vue'
36
- import {HttpResetClass} from 'vue-client'
37
- export default {
38
- title: '报建流程',
39
- data () {
40
- return {
41
- showData: true, // 控制列表数据
42
- showtotal: false, // 详情显示
43
- selectdata: {},
44
- xmlname: '', // 配置文件名
45
- active: 0 // 配置文件名
46
- }
47
- },
48
- ready () {
49
- console.log('=============用户信息=================')
50
- console.log(this.$login.f)
51
- console.log(this.$login.r)
52
- },
53
- methods: {
54
- // 获取页面配置json文件
55
- async loadName () {
56
-
57
- let data = {
58
- workname: this.selectdata.processname
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
- 'locationclick' (res) {
71
- console.log('/*/*/*/*/*/*/*/*/*/*/*/*/*/**/*/*/*/*')
72
- if (res.pname){
73
- this.$refs.service.setLabelValue('定位地址', res.pname + res.cityname + res.adname + res.address + res.name)
74
- }else {
75
- this.$refs.service.setLabelValue('定位地址', res.province + res.city + res.address + res.name)
76
- }
77
- this.$refs.service.show_data.f_lng = res.location.lng
78
- this.$refs.service.show_data.f_lat = res.location.lat
79
- this.active = 0
80
- },
81
- 'onMessage' (data) {
82
- console.log('接收消息')
83
- console.log(data)
84
- if (data.type === 'apply-task') {
85
- this.$refs.query.$refs.cp.$refs.cri.search()
86
- }
87
- },
88
- // 刷新控制层
89
- async 'breakControl' (servicedata) {
90
-
91
- if (servicedata.id) {
92
- let data = {
93
- condition: `u.id = ${servicedata.id}`,
94
- data: {
95
- userid: this.$login.f.id,
96
- f_filiale: this.$login.f.f_fengongsi
97
- }
98
- }
99
- let res = await this.$resetpost(
100
- 'rs/sql/checkuser',
101
- {data: data},
102
- {resolveMsg: null, rejectMsg: '数据更新失败,请手查询更新!!!'}
103
- )
104
-
105
- this.selectdata = res.data[0]
106
- } else {
107
- this.selectdata = servicedata
108
- }
109
-
110
- this.showtotal = false
111
- this.$nextTick(() => {
112
- this.showtotal = true
113
- })
114
-
115
- },
116
- // 初始化
117
- async 'apply' (val) {
118
- this.showtotal = false
119
- this.selectdata = val
120
-
121
- // 次方法必须同步执行,否则后续会出问题
122
- // 获取页面json配置文件
123
- await this.loadName()
124
-
125
- // 显示详细
126
- this.showtotal = true
127
- // 关闭列表数据
128
- this.showData = false
129
- // 关闭分页
130
- this.$refs.query.$refs.cp.pager = false
131
- },
132
- 'search' () {
133
- this.selectdata = {}
134
- // 关闭详细
135
- this.showtotal = false
136
- // 显示列表数据
137
- this.showData = true
138
- // 显示分页
139
- this.$refs.query.$refs.cp.pager = true
140
- // 调用查询
141
- this.$refs.query.$refs.cp.$refs.cri.search()
142
- },
143
- 'loadPage' () {
144
- this.selectdata = {}
145
- // 关闭详细
146
- this.showtotal = false
147
- // 显示列表数据
148
- this.showData = true
149
- // 显示分页
150
- this.$refs.query.$refs.cp.pager = true
151
- // 调用查询
152
- this.$refs.query.$refs.cp.loadPage(this.$refs.query.model.pageIndex)
153
- }
154
- },
155
- watch: {
156
- }
157
- }
158
- </script>
1
+ <template>
2
+ <div class="flex-row">
3
+ <div class="basic-main">
4
+ <div :class="showData ? 'top' : 'auto'">
5
+ <exploration-select v-ref:query :show-data="showData"></exploration-select>
6
+ </div>
7
+ <!-- <div v-if="showtotal">-->
8
+ <!-- <new-exploration-user :selectdata="selectdata"></new-exploration-user>-->
9
+ <!-- </div>-->
10
+ <div v-if="showtotal" style="height: 89%">
11
+ <tabset v-ref:tabs :close="false" :active.sync="active">
12
+ <tab :header='selectdata.defname'>
13
+ <service-control v-ref:service :selectdata="selectdata"></service-control>
14
+ </tab>
15
+ <tab header='地图'>
16
+ <apply-map-com :selectdata="selectdata"></apply-map-com>
17
+ </tab>
18
+ <tab header='附件'>
19
+ <apply-upload :blodid="selectdata.f_process_id"
20
+ :isupload = "true"
21
+ :isdelete="true"
22
+ :isusetype="true"
23
+ :isremark = "true"
24
+ :takeimg="true"
25
+ :issearch="true"
26
+ :defname="selectdata.defname">
27
+ </apply-upload>
28
+ </tab>
29
+ </tabset>
30
+ </div>
31
+ </div>
32
+ </div>
33
+ </template>
34
+ <script>
35
+ import Vue from 'vue'
36
+ import {HttpResetClass} from 'vue-client'
37
+ export default {
38
+ title: '报建流程',
39
+ data () {
40
+ return {
41
+ showData: true, // 控制列表数据
42
+ showtotal: false, // 详情显示
43
+ selectdata: {},
44
+ xmlname: '', // 配置文件名
45
+ active: 0 // 配置文件名
46
+ }
47
+ },
48
+ ready () {
49
+ console.log('=============用户信息=================')
50
+ console.log(this.$login.f)
51
+ console.log(this.$login.r)
52
+ },
53
+ methods: {
54
+ // 获取页面配置json文件
55
+ async loadName () {
56
+
57
+ let data = {
58
+ workname: this.selectdata.processname
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
+ 'locationclick' (res) {
71
+ console.log('/*/*/*/*/*/*/*/*/*/*/*/*/*/**/*/*/*/*')
72
+ if (res.pname){
73
+ this.$refs.service.setLabelValue('定位地址', res.pname + res.cityname + res.adname + res.address + res.name)
74
+ }else {
75
+ this.$refs.service.setLabelValue('定位地址', res.province + res.city + res.address + res.name)
76
+ }
77
+ this.$refs.service.show_data.f_lng = res.location.lng
78
+ this.$refs.service.show_data.f_lat = res.location.lat
79
+ this.active = 0
80
+ },
81
+ 'onMessage' (data) {
82
+ console.log('接收消息')
83
+ console.log(data)
84
+ if (data.type === 'apply-task') {
85
+ this.$refs.query.$refs.cp.$refs.cri.search()
86
+ }
87
+ },
88
+ // 刷新控制层
89
+ async 'breakControl' (servicedata) {
90
+
91
+ if (servicedata.id) {
92
+ let data = {
93
+ condition: `u.id = ${servicedata.id}`,
94
+ data: {
95
+ userid: this.$login.f.id,
96
+ f_filiale: this.$login.f.f_fengongsi?this.$login.f.f_fengongsi:'榆林.榆川天然气'
97
+ }
98
+ }
99
+ let res = await this.$resetpost(
100
+ 'rs/sql/checkuser',
101
+ {data: data},
102
+ {resolveMsg: null, rejectMsg: '数据更新失败,请手查询更新!!!'}
103
+ )
104
+
105
+ this.selectdata = res.data[0]
106
+ } else {
107
+ this.selectdata = servicedata
108
+ }
109
+
110
+ this.showtotal = false
111
+ this.$nextTick(() => {
112
+ this.showtotal = true
113
+ })
114
+
115
+ },
116
+ // 初始化
117
+ async 'apply' (val) {
118
+ this.showtotal = false
119
+ this.selectdata = val
120
+
121
+ // 次方法必须同步执行,否则后续会出问题
122
+ // 获取页面json配置文件
123
+ await this.loadName()
124
+
125
+ // 显示详细
126
+ this.showtotal = true
127
+ // 关闭列表数据
128
+ this.showData = false
129
+ // 关闭分页
130
+ this.$refs.query.$refs.cp.pager = false
131
+ },
132
+ 'search' () {
133
+ this.selectdata = {}
134
+ // 关闭详细
135
+ this.showtotal = false
136
+ // 显示列表数据
137
+ this.showData = true
138
+ // 显示分页
139
+ this.$refs.query.$refs.cp.pager = true
140
+ // 调用查询
141
+ this.$refs.query.$refs.cp.$refs.cri.search()
142
+ },
143
+ 'loadPage' () {
144
+ this.selectdata = {}
145
+ // 关闭详细
146
+ this.showtotal = false
147
+ // 显示列表数据
148
+ this.showData = true
149
+ // 显示分页
150
+ this.$refs.query.$refs.cp.pager = true
151
+ // 调用查询
152
+ this.$refs.query.$refs.cp.loadPage(this.$refs.query.model.pageIndex)
153
+ }
154
+ },
155
+ watch: {
156
+ }
157
+ }
158
+ </script>