apply-clients 4.1.65 → 4.1.66-weinan

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.
Files changed (49) hide show
  1. package/index.html +30 -30
  2. package/package.json +6 -5
  3. package/src/App.vue +20 -20
  4. package/src/apply.js +15 -1
  5. package/src/applyAndroid.js +52 -39
  6. package/src/assets//345/210/240/351/231/244.png +0 -0
  7. package/src/components/app_apply/AppChargeManagement.vue +754 -0
  8. package/src/components/app_apply/AppInstallationDetails.vue +529 -0
  9. package/src/components/app_apply/AppProcessSupervisory.vue +214 -0
  10. package/src/components/app_apply/AppSupervisoryCart.vue +68 -0
  11. package/src/components/app_apply/AppTakePic.vue +146 -0
  12. package/src/components/app_apply/AppdevicesDetails.vue +867 -0
  13. package/src/components/app_apply/ApplyInfo.vue +56 -56
  14. package/src/components/app_apply/ApplyToDoList.vue +292 -165
  15. package/src/components/app_apply/PlaceControler.vue +274 -258
  16. package/src/components/app_apply/ServiceControl.vue +440 -267
  17. package/src/components/app_apply/ServiceView.vue +394 -355
  18. package/src/components/app_apply/materialshoufei.vue +248 -0
  19. package/src/components/product/ApplyCharge/ApplyChargeList.vue +252 -251
  20. package/src/components/product/Function/InstallInfoSelect.vue +294 -282
  21. package/src/components/product/Function/StopApplyCrrdList.vue +176 -176
  22. package/src/components/product/Function/functions/StopInstall.vue +7 -1
  23. package/src/components/product/Process/ExplorationSelect.vue +32 -9
  24. package/src/components/product/Process/ExplorationUser.vue +2 -2
  25. package/src/components/product/Process/Processes/InstallationDetails.vue +317 -292
  26. package/src/components/product/Process/Processes/UserFireInfo.vue +409 -0
  27. package/src/components/product/Process/Processes/addressAndUserinfoManagement.vue +1597 -1079
  28. package/src/components/product/Process/Processes/addressAndUserinfoManagementPro.vue +1221 -0
  29. package/src/components/product/Process/Processes/chargeManagement.vue +27 -21
  30. package/src/components/product/Process/Processes/devicesDetails.vue +843 -0
  31. package/src/components/product/Process/Processes/materialshoufei.vue +187 -0
  32. package/src/components/product/Process/Processes/printCharge.vue +4 -4
  33. package/src/components/product/Process/Processes/recordcancel.vue +50 -50
  34. package/src/components/product/Process/Processes/selectUserinfo.vue +199 -0
  35. package/src/components/product/Process/Processes/splitMaterial.vue +358 -0
  36. package/src/components/product/Process/Service/ServiceControl.vue +1490 -879
  37. package/src/components/product/Process/ShowBackReason.vue +1 -0
  38. package/src/components/product/ServiceView.vue +816 -796
  39. package/src/components/product/Stop/StopApply.vue +101 -0
  40. package/src/components/product/Stop/StopApplyList.vue +266 -0
  41. package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +200 -194
  42. package/src/components/product/Supervisory/SupervisoryControl.vue +8 -3
  43. package/src/components/product/Supervisory/SupervisoryList.vue +19 -6
  44. package/src/components/product/Supervisory/SupervisoryhCart.vue +0 -7
  45. package/src/components/product/Test.vue +8 -4
  46. package/src/components/product/VueUtils/ApplyUpload.vue +276 -261
  47. package/src/main.js +25 -23
  48. package/static/images/lefticon//347/237/251/345/275/2421183.png +0 -0
  49. package/dist.rar +0 -0
@@ -1,194 +1,200 @@
1
- <template>
2
- <div class="auto clearfix">
3
- <show-back-reason :selectdata="data"></show-back-reason>
4
- </div>
5
- <service-view v-ref:service_show :data="data" v-if="showview"></service-view>
6
- </template>
7
- <script>
8
- import Vue from 'vue'
9
- import {HttpResetClass} from 'vue-client'
10
- // Date格式化
11
- Date.prototype.Format = function (fmt) {
12
- var o = {
13
- 'M+': this.getMonth() + 1, // 月份
14
- 'd+': this.getDate(), // 日
15
- 'H+': this.getHours(), // 小时
16
- 'm+': this.getMinutes(), // 分
17
- 's+': this.getSeconds(), // 秒
18
- 'q+': Math.floor((this.getMonth() + 3) / 3), // 季度
19
- 'S': this.getMilliseconds() // 毫秒
20
- }
21
- if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + '').substr(4 - RegExp.$1.length))
22
- for (var k in o) {
23
- if (new RegExp('(' + k + ')').test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length === 1) ? (o[k]) : (('00' + o[k]).substr(('' + o[k]).length)))
24
- }
25
- return fmt
26
- }
27
- export default {
28
- title: '报建监控控制层',
29
- props: {
30
- selectdata: {
31
- type: Object
32
- },
33
- nodeSnapshot: {
34
- type: Boolean,
35
- default: false
36
- }
37
- },
38
- data() {
39
- return {
40
- data: null, // 展示的数据
41
- json_datas: null, // json配置数据结构
42
- showview: false // 控制显示层显示
43
- }
44
- },
45
- created () {
46
- this.initial()
47
- },
48
- methods: {
49
- // 初始化模块
50
- async initial() {
51
- this.showview = false
52
- this.json_datas = this.$workflow_vue
53
- let sum = 0
54
- let jsonData = {}
55
- this.json_datas.activitys.forEach(item => {
56
- if (this.selectdata.defname === item.title) {
57
- jsonData = item
58
- sum++
59
- }
60
- })
61
- if (sum === 0) {
62
- this.$showMessage(`没有在JSON配置文件中找到活动名为:(${this.selectdata.defname})的节点配置`)
63
- return
64
- }
65
- if (sum === 1) {
66
- this.data = jsonData
67
- this.data = Object.assign({}, this.data, this.selectdata)
68
-
69
- await this.initializtion()
70
- this.showview = true
71
- return
72
- }
73
- this.$showMessage(`在JSON配置文件中找到活动名为:(${this.selectdata.defname})的节点配置:${sum}个`)
74
- },
75
- // json配置数据处理
76
- async initializtion() {
77
- this.data.fields.forEach(item => {
78
- if (this.selectdata[item.field]) {
79
- item.value = this.selectdata[item.field]
80
- }
81
- // 如果配置类型为select,获取options
82
- if(item.type==='select'){
83
- item.options=[]
84
- }
85
- if (typeof item.value === 'string' && item.value.startsWith("{") && item.value.endsWith("}")) {
86
- item.value = JSON.parse(item.value)
87
- }
88
- })
89
-
90
- // 控制组件
91
- if (this.data.components) {
92
- this.data.components.forEach(item => {
93
- item.mark = 1
94
- })
95
- }
96
-
97
-
98
- // onetomany 数据获取
99
- if (this.data.onetomany) {
100
- for (let index = 0; index < this.data.onetomany.length; index++) {
101
- let http = new HttpResetClass()
102
- let data = {
103
- tablename: this.data.onetomany[index].tables[0],
104
- condition: `f_process_id='${this.selectdata.f_process_id}'`
105
- }
106
-
107
- let res = await http.load('POST', 'rs/sql/singleTable', {data: data}, {
108
- resolveMsg: null,
109
- rejectMsg: 'onetomany查询失败'
110
- })
111
-
112
- // 初始化 onetomany
113
- this.data.onetomany[index].rows = res.data
114
-
115
- // 初始化onetomany中的fields
116
- for (let j = 0; j < this.data.onetomany[index].fields.length; j++) {
117
- // 如果配置类型为select,优先从参数列表获取options
118
- if (this.data.onetomany[index].fields[j].type === 'select') {
119
- let temp = Vue.$appdata.getParam(this.data.onetomany[index].fields[j].label)
120
- if (temp && temp.length > 0) {
121
- this.data.onetomany[index].fields[j].options = Vue.$appdata.getParam(this.data.onetomany[index].fields[j].label)
122
- }
123
- }
124
- }
125
- }
126
- }
127
- // 去除button
128
- this.data.buttons = null
129
-
130
-
131
- // 查询是否有当前节点快照信息,如果有使用快照数据,没有则展示最新数据
132
- if (this.nodeSnapshot && this.data.nodeSnapshot) {
133
- let http = new HttpResetClass()
134
- let data = {
135
- tablename: 't_node_snapshot',
136
- condition: `actid = '${this.selectdata.actid}' and f_process_id='${this.selectdata.f_process_id}'`
137
- }
138
- let res = await http.load('POST', 'rs/sql/singleTable', {data: data}, {
139
- resolveMsg: null,
140
- rejectMsg: null
141
- })
142
- if (res.data.length > 0) {
143
- data = JSON.parse(res.data[0].f_node_data)
144
-
145
- this.data.fields = data.fields
146
- this.data.onetomany = data.onetomany
147
- this.data.title = data.title
148
- }
149
- }
150
-
151
-
152
- // 将所有field都不可修改,不可操作
153
- this.data.fields.forEach(item => {
154
- item.readonly = true
155
- item.disabled = true
156
- })
157
- // 去除所有onetomany的操作
158
- if (this.data.onetomany) {
159
- this.data.onetomany.forEach(item => {
160
- item.hiddenOperate = true
161
- })
162
- }
163
-
164
- // 完成时间和完成人,部门,分公司
165
- if (this.selectdata.state === '结束') {
166
- let http = new HttpResetClass()
167
- let res = await http.load('POST', 'rs/search', {
168
- source: 'this.getInfo()',
169
- userid: this.selectdata.userid
170
- }, {resolveMsg: null, rejectMsg: null})
171
- let user = res.data
172
- this.data.operate_date = new Date(this.selectdata.finishtime).Format('yyyy-MM-dd')
173
- this.data.operator = this.selectdata.person
174
- this.data.f_filiale = user.orgs
175
- this.data.f_parentname = user.deps
176
- }
177
- }
178
- },
179
- events:{
180
- },
181
- watch: {
182
- deep: true
183
- }
184
- }
185
- </script>
186
- <style scoped>
187
- /*清除model中的浮动*/
188
- .clearfix:after,.clearfix:before{
189
- display: table;
190
- }
191
- .clearfix:after{
192
- clear: both;
193
- }
194
- </style>
1
+ <template>
2
+ <div class="auto clearfix">
3
+ <show-back-reason :selectdata="data"></show-back-reason>
4
+ </div>
5
+ <service-view v-ref:service_show :data="data" v-if="showview"></service-view>
6
+ </template>
7
+ <script>
8
+ import Vue from 'vue'
9
+ import {HttpResetClass} from 'vue-client'
10
+ // Date格式化
11
+ Date.prototype.Format = function (fmt) {
12
+ var o = {
13
+ 'M+': this.getMonth() + 1, // 月份
14
+ 'd+': this.getDate(), // 日
15
+ 'H+': this.getHours(), // 小时
16
+ 'm+': this.getMinutes(), // 分
17
+ 's+': this.getSeconds(), // 秒
18
+ 'q+': Math.floor((this.getMonth() + 3) / 3), // 季度
19
+ 'S': this.getMilliseconds() // 毫秒
20
+ }
21
+ if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + '').substr(4 - RegExp.$1.length))
22
+ for (var k in o) {
23
+ if (new RegExp('(' + k + ')').test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length === 1) ? (o[k]) : (('00' + o[k]).substr(('' + o[k]).length)))
24
+ }
25
+ return fmt
26
+ }
27
+ export default {
28
+ title: '报建监控控制层',
29
+ props: {
30
+ selectdata: {
31
+ type: Object
32
+ },
33
+ nodeSnapshot: {
34
+ type: Boolean,
35
+ default: false
36
+ }
37
+ },
38
+ data() {
39
+ return {
40
+ data: null, // 展示的数据
41
+ json_datas: null, // json配置数据结构
42
+ showview: false // 控制显示层显示
43
+ }
44
+ },
45
+ created () {
46
+ this.initial()
47
+ },
48
+ methods: {
49
+ // 初始化模块
50
+ async initial() {
51
+ this.showview = false
52
+ this.json_datas = this.$workflow_vue
53
+ let sum = 0
54
+ let jsonData = {}
55
+ this.json_datas.activitys.forEach(item => {
56
+ if (this.selectdata.defname === item.title) {
57
+ jsonData = item
58
+ sum++
59
+ }
60
+ })
61
+ if (sum === 0) {
62
+ this.$showMessage(`没有在JSON配置文件中找到活动名为:(${this.selectdata.defname})的节点配置`)
63
+ return
64
+ }
65
+ if (sum === 1) {
66
+ this.data = jsonData
67
+ this.data = Object.assign({}, this.data, this.selectdata)
68
+
69
+ await this.initializtion()
70
+ this.showview = true
71
+ return
72
+ }
73
+ this.$showMessage(`在JSON配置文件中找到活动名为:(${this.selectdata.defname})的节点配置:${sum}个`)
74
+ },
75
+ // json配置数据处理
76
+ async initializtion() {
77
+ this.data.fields.forEach(item => {
78
+ if (this.selectdata[item.field]) {
79
+ item.value = this.selectdata[item.field]
80
+ }
81
+ // 如果配置类型为select,获取options
82
+ if(item.type==='select'){
83
+ item.options=[]
84
+ }
85
+ if (typeof item.value === 'string' && item.value.startsWith("{") && item.value.endsWith("}")) {
86
+ item.value = JSON.parse(item.value)
87
+ }
88
+ })
89
+
90
+ // 控制组件
91
+ if (this.data.components) {
92
+ this.data.components.forEach(item => {
93
+ item.mark = 1
94
+ })
95
+ }
96
+
97
+
98
+ // onetomany 数据获取
99
+ if (this.data.onetomany) {
100
+ for (let index = 0; index < this.data.onetomany.length; index++) {
101
+ let http = new HttpResetClass()
102
+ let data = {
103
+ tablename: this.data.onetomany[index].tables[0],
104
+ condition: `f_process_id='${this.selectdata.f_process_id}'`
105
+ }
106
+
107
+ let res = await http.load('POST', 'rs/sql/singleTable', {data: data}, {
108
+ resolveMsg: null,
109
+ rejectMsg: 'onetomany查询失败'
110
+ })
111
+
112
+ // 初始化 onetomany
113
+ this.data.onetomany[index].rows = res.data
114
+
115
+ // 初始化onetomany中的fields
116
+ for (let j = 0; j < this.data.onetomany[index].fields.length; j++) {
117
+ // 如果配置类型为select,优先从参数列表获取options
118
+ if (this.data.onetomany[index].fields[j].type === 'select') {
119
+ let temp = Vue.$appdata.getParam(this.data.onetomany[index].fields[j].label)
120
+ if (temp && temp.length > 0) {
121
+ this.data.onetomany[index].fields[j].options = Vue.$appdata.getParam(this.data.onetomany[index].fields[j].label)
122
+ }
123
+ }
124
+ }
125
+ }
126
+ }
127
+ // 去除button
128
+ this.data.buttons = null
129
+
130
+
131
+ // 查询是否有当前节点快照信息,如果有使用快照数据,没有则展示最新数据
132
+ if (this.nodeSnapshot && this.data.nodeSnapshot) {
133
+ let http = new HttpResetClass()
134
+ let data = {
135
+ tablename: 't_node_snapshot',
136
+ condition: `actid = '${this.selectdata.actid}' and f_process_id='${this.selectdata.f_process_id}'`
137
+ }
138
+ let res = await http.load('POST', 'rs/sql/singleTable', {data: data}, {
139
+ resolveMsg: null,
140
+ rejectMsg: null
141
+ })
142
+ if (res.data.length > 0) {
143
+ data = JSON.parse(res.data[0].f_node_data)
144
+
145
+ this.data.fields = data.fields
146
+ this.data.onetomany = data.onetomany
147
+ this.data.title = data.title
148
+ }
149
+ }
150
+
151
+
152
+ // 将所有field都不可修改,不可操作
153
+ this.data.fields.forEach(item => {
154
+ item.readonly = true
155
+ item.disabled = true
156
+ })
157
+ // 去除所有onetomany的操作
158
+ if (this.data.onetomany) {
159
+ this.data.onetomany.forEach(item => {
160
+ item.hiddenOperate = true
161
+ })
162
+ }
163
+
164
+ // 完成时间和完成人,部门,分公司
165
+ if (this.selectdata.state === '结束') {
166
+ let http = new HttpResetClass()
167
+ let res = await http.load('POST', 'rs/search', {
168
+ source: 'this.getInfo()',
169
+ userid: this.selectdata.userid
170
+ }, {resolveMsg: null, rejectMsg: null})
171
+ let user = res.data
172
+ this.data.operate_date = new Date(this.selectdata.finishtime).Format('yyyy-MM-dd')
173
+ this.data.operator = this.selectdata.person
174
+ this.data.f_filiale = user.orgs
175
+ this.data.f_parentname = user.deps
176
+ }
177
+ for (const item of this.data.fields) {
178
+ debugger
179
+ if(item.label==='气价名称'){
180
+ item.value=this.data.f_price_name
181
+ }
182
+ }
183
+ }
184
+ },
185
+ events:{
186
+ },
187
+ watch: {
188
+ deep: true
189
+ }
190
+ }
191
+ </script>
192
+ <style scoped>
193
+ /*清除model中的浮动*/
194
+ .clearfix:after,.clearfix:before{
195
+ display: table;
196
+ }
197
+ .clearfix:after{
198
+ clear: both;
199
+ }
200
+ </style>
@@ -13,7 +13,7 @@
13
13
  <tab :header='selectdata.defname'>
14
14
  <supervisory-service-control :selectdata="selectdata" :node-snapshot="true"></supervisory-service-control>
15
15
  </tab>
16
- <tab header='附件'>
16
+ <!-- <tab header='附件'>
17
17
  <apply-upload :blodid="selectdata.f_process_id"
18
18
  :isupload = "false"
19
19
  :isdelete="false"
@@ -23,7 +23,7 @@
23
23
  :issearch="true"
24
24
  :defname="selectdata.defname">
25
25
  </apply-upload>
26
- </tab>
26
+ </tab>-->
27
27
  </tabset>
28
28
  </div>
29
29
  </div>
@@ -86,9 +86,14 @@
86
86
  this.xmlname = '散户集体报建流程'
87
87
  } else if (this.selectdata.f_apply_type === '煤改气报建') {
88
88
  this.xmlname = '散户集体报建流程'
89
+ } else if (this.selectdata.f_apply_type === '拆改装报建') {
90
+ this.xmlname = '拆改装流程'
89
91
  } else if (this.selectdata.f_apply_type === '综合报建') {
90
92
  this.xmlname = '报建流程'
91
- } else {
93
+ } else if (this.selectdata.f_apply_type === '居民报建') {
94
+ this.xmlname = '居民报建流程'
95
+ }
96
+ else {
92
97
  this.$showMessage('暂无此类报装')
93
98
  return
94
99
  }
@@ -6,20 +6,20 @@
6
6
  <div class="row">
7
7
  <div class="form-group col-sm-4">
8
8
  <label class="font_normal_body">项目名称:</label>
9
- <input type="text" class="input_search" v-model="model.f_user_name"
10
- v-on:keyup.enter="search" condition=" f_entry_name = '{}' " placeholder='请输入'>
9
+ <input type="text" class="input_search" v-model="model.f_entry_name"
10
+ v-on:keyup.enter="search" condition=" f_entry_name like '%{}%' " placeholder='请输入'>
11
11
  </div>
12
12
  <div class="form-group col-sm-3">
13
13
  <label class="font_normal_body">报建编号:</label>
14
14
  <input type="text" class="input_search" placeholder='报建编号' v-model="model.f_apply_num"
15
15
  v-on:keyup.enter="search"
16
- condition="f_apply_num = '{}'">
16
+ condition="f_apply_num like '%{}%'">
17
17
  </div>
18
18
  <div class="form-group col-sm-3">
19
19
  <label class="font_normal_body">合同编号:</label>
20
20
  <input type="text" class="input_search" placeholder='合同编号' v-model="model.f_contract_number"
21
21
  v-on:keyup.enter="search"
22
- condition="f_contract_number = '{}'">
22
+ condition="f_contract_number like '%{}%'">
23
23
  </div>
24
24
  <div class="form-group col-sm-2 button-range">
25
25
  <button class="button_search button_spacing" @click="$parent.$parent.search()" v-el:cx>查询</button>
@@ -58,6 +58,18 @@
58
58
  :value-single="true"
59
59
  close-on-select ></v-select>
60
60
  </div>
61
+ <div class="form-group col-sm-3">
62
+ <label class="font_normal_body">流程状态:</label>
63
+ <v-select
64
+ v-model="model.f_sub_state"
65
+ placeholder='流程状态'
66
+ condition="f_sub_state = '{}'"
67
+ :value.sync="model.f_sub_state"
68
+ :options='$parent.$parent.f_sub_state'
69
+ class="select select_list"
70
+ :value-single="true"
71
+ close-on-select ></v-select>
72
+ </div>
61
73
  <!-- <div class="form-group col-sm-3">-->
62
74
  <!-- <label class="font_normal_body">联系电话:</label>-->
63
75
  <!-- <input type="text" class="input_search" placeholder='联系电话' v-model="model.f_phone"-->
@@ -164,7 +176,8 @@
164
176
  orgid: this.$login.f.orgid
165
177
  }
166
178
  }),
167
- defnames: [{label: '全部', value: ''}], // 流程节点
179
+ f_sub_state: [{label: '全部', value: ''}, {label: '完工', value: '完工'}, {label: '正在进行', value: '正在进行'}, {label: '终止', value: '终止'}],
180
+ defnames: [{label: '全部', value: ''}, ...this.$appdata.getParam('办理环节')], // 流程节点
168
181
  criteriaShow: false
169
182
  }
170
183
  },
@@ -193,7 +206,7 @@
193
206
  this.defnames = [{label: '全部', value: ''}, ...res.data]
194
207
  })
195
208
  } else {
196
- this.defnames = [{label: '全部', value: ''}]
209
+ this.defnames = [{label: '全部', value: ''}, ...this.$appdata.getParam('办理环节')]
197
210
  }
198
211
  },
199
212
  check (val) {
@@ -48,15 +48,8 @@
48
48
  },
49
49
  //点击获取节点名
50
50
  getdefname(row){
51
- if(row.defname === this.$workflow_vue.start_activity){
52
51
  row = Object.assign({},this.selectdata,row)
53
52
  this.$dispatch('apply', row)
54
- }else if(this.check(row.actorexpression)){
55
- row = Object.assign({},this.selectdata,row)
56
- this.$dispatch('apply', row)
57
- }else{
58
- this.$showMessage("对不起,您没有查看此节点的权限!")
59
- }
60
53
  },
61
54
  // 检测是否有权限
62
55
  check(actorexpression){
@@ -1,7 +1,5 @@
1
1
  <template>
2
- <div class="basic-main" style="height: 100%">
3
- {{{ model }}}
4
- </div>
2
+
5
3
  </template>
6
4
 
7
5
  <script>
@@ -32,5 +30,11 @@
32
30
  </script>
33
31
 
34
32
  <style scoped>
35
-
33
+ .my-swipe .van-swipe-item {
34
+ color: #fff;
35
+ font-size: 20px;
36
+ line-height: 150px;
37
+ text-align: center;
38
+ background-color: #39a9ed;
39
+ }
36
40
  </style>