apply-clients 4.1.41-weinan → 4.1.43-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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apply-clients",
3
- "version": "4.1.41-weinan",
3
+ "version": "4.1.43-weinan",
4
4
  "description": "报建前端模块",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -80,7 +80,9 @@
80
80
  }
81
81
  },
82
82
  // actName: this.$appdata.getParam('用气类型'), // 报建app需提取的流程名称
83
- faultshow: 8 // 控制 故障汇总 在 菜单里显示与否
83
+ faultshow: 8, // 控制 故障汇总 在 菜单里显示与否
84
+ selectdatacopy: null,
85
+ num: 0
84
86
  }
85
87
  },
86
88
 
@@ -116,13 +118,25 @@
116
118
  console.log('name=>' + name)
117
119
  if (name === 'apply-info') {
118
120
  this.tabs[name].props = {service: this.row, shutype: 'shu'}
121
+ if (this.num === 1) {
122
+ this.selectdatacopy = this.$children[0].$children[0].show_data
123
+ this.num += 1
124
+ }
119
125
  } else if (name === 'app-take-pic') {
120
126
  this.tabs[name].props = {blobid: this.row.f_process_id, defname: this.row.defname, isdelete: 'true', istakepic: 'true', istype: 'true'}
127
+ if (this.num === 1) {
128
+ this.selectdatacopy = this.$children[0].$children[0].show_data
129
+ this.num += 1
130
+ }
121
131
  } else {
122
132
  this.row.defname = this.row.defname
123
133
  // this.row.fields = new Array()
124
134
  // this.row.buttons = new Array()
125
- this.tabs[name].props = {selectdata: this.row}
135
+ if (this.num === 1) {
136
+ this.selectdatacopy = this.$children[0].$children[0].show_data
137
+ }
138
+ this.num += 1
139
+ this.tabs[name].props = {selectdata: this.row,copydata: this.selectdatacopy}
126
140
  }
127
141
  console.log('即将goto=>' + name + ',props:' + JSON.stringify(this.tabs[name].props))
128
142
  this.$goto(name, this.tabs[name].props, 'apply')
@@ -8,7 +8,7 @@
8
8
  import {isEmpty} from "../Util";
9
9
  export default {
10
10
  title: '报建流程业务控制层',
11
- props: ['selectdata'],
11
+ props: ['selectdata','copydata'],
12
12
  data () {
13
13
  return {
14
14
  data:null, // 数据库数据,json配置文件数据的数据集合
@@ -176,7 +176,9 @@
176
176
  temp['back_reason'] = this.selectdata.f_back_reason
177
177
  }
178
178
  console.log('即将给show_data赋值temp=>' + JSON.stringify(temp))
179
- this.show_data = temp
179
+ if (this.show_data==null){
180
+ this.show_data = temp
181
+ }
180
182
  console.log('initializtion()方法结束,showview')
181
183
  this.showview = true
182
184
  if (this.selectdata.defname === '现场勘察' || this.selectdata.defname ==='入户安装') {
@@ -280,6 +282,12 @@
280
282
  this.show_data.fields[index+11].required = false
281
283
  this.show_data.fields[index+12].required = false
282
284
  this.show_data.fields[index+13].required = false
285
+ }else if (this.data.fields[index].label === '是否具备安装条件'&& this.show_data.fields[index].value === '是') {
286
+ this.show_data.fields[index+9].required = true
287
+ this.show_data.fields[index+10].required = true
288
+ this.show_data.fields[index+11].required = true
289
+ this.show_data.fields[index+12].required = true
290
+ this.show_data.fields[index+13].required = true
283
291
  }
284
292
  // this.$refs.service_show.model_temp // 子业务显示组件
285
293
  // 级联操作示例:
@@ -393,7 +401,12 @@
393
401
  // 监听selectdata的变化
394
402
  'selectdata'() {
395
403
  console.log('进入selectdata改变事件data=>' + JSON.stringify(this.selectdata))
404
+ if(this.copydata!=null){
405
+ this.show_data=this.copydata
406
+ this.refurbish()
407
+ }else{
396
408
  this.refurbish()
409
+ }
397
410
  },
398
411
  deep:true
399
412
  }
@@ -53,12 +53,12 @@ export default {
53
53
  if (res=='confirm'){
54
54
  this.selectdata = Object.assign( {},this.selectdata,model)
55
55
  let data = {
56
- loginUser: Vue.user,
56
+ loginUser: Vue.this.$login.f,
57
57
  selectdata: this.selectdata,
58
58
  model: model1
59
59
  }
60
60
  let http = new HttpResetClass()
61
- http.load('POST', this.$androidUtil.getProxyUrl()+'/rs/logic/stopApply', {data: data}, {resolveMsg: null,rejectMsg: '删除失败'})
61
+ http.load('POST', 'rs/logic/stopApply', {data: data}, {resolveMsg: null,rejectMsg: '删除失败'})
62
62
  .then(res => {
63
63
  if (res.data === 200) {
64
64
  this.$dispatch('search')
@@ -1,101 +1,101 @@
1
- <template>
2
- <div class="flex-row">
3
- <div class="basic-main">
4
- <stop-apply-list v-ref:query></stop-apply-list>
5
- </div>
6
-
7
- <modal v-if="showModal" :show.sync="showModal" backdrop="false" large>
8
- <header slot="modal-header" class="modal-header">
9
- <button type="button" class="close" @click="closeModal()"><span>&times;</span></button>
10
- <span class="modal-title"><font size="3">撤销</font></span>
11
- </header>
12
- <article slot="modal-body" class="modal-body clearfix">
13
- <div :class="data.f_cancel_reason ? '' : 'has-error'" class="form-group">
14
- <label class="control-label-justify control-label col-sm-1">撤销原因</label>
15
- <div class="col-sm-9">
16
- <textarea
17
- class="form-control input_view" style="width: 100%" rows="5"
18
- v-model="data.f_cancel_reason" :value="data.f_cancel_reason"
19
- ></textarea>
20
- </div>
21
- </div>
22
- </article>
23
- <footer slot="modal-footer" class="modal-footer">
24
- <button :class="!data.f_cancel_reason ? 'btn btn-default':'btn btn-primary'"
25
- :disabled="!data.f_cancel_reason" type="button" @click="confirmModal()">
26
- 确认
27
- </button>
28
- </footer>
29
- </modal>
30
- </div>
31
- </template>
32
-
33
- <script>
34
- export default {
35
- title: '终止报建',
36
- data () {
37
- return {
38
- showModal: false,
39
- data: null
40
- }
41
- },
42
- ready () {
43
- },
44
- methods: {
45
- closeModal () {
46
- this.showModal = false
47
- this.data = null
48
-
49
- this.$refs.query.$refs.cp.$refs.cri.search()
50
- },
51
- async confirmModal () {
52
- let data = {
53
- data: this.data,
54
- user: this.$login.f
55
- }
56
-
57
- let res = await this.$resetpost(
58
- `rs/logic/cancelStopApply`,
59
- {data: data},
60
- {resolveMsg: null, rejectMsg: '撤销失败!!!'}
61
- )
62
-
63
- this.closeModal()
64
- }
65
- },
66
- events: {
67
- 'search' () {
68
- this.$refs.query.$refs.cp.$refs.cri.search()
69
- },
70
- 'cancelStopApply' (row) {
71
- this.data = row
72
-
73
- this.showModal = true
74
- }
75
- }
76
- }
77
- </script>
78
-
79
- <style scoped>
80
- .control-label-justify {
81
- display: inline-block;
82
- vertical-align: top;
83
- width: 110px;
84
- text-align: justify;
85
- font-family: PingFang-SC-Bold;
86
- }
87
-
88
- .control-label-justify::after {
89
- content: "";
90
- display: inline-block;
91
- width: 100%;
92
- overflow: hidden;
93
- height: 0;
94
- }
95
- .clearfix:after,.clearfix:before{
96
- display: table;
97
- }
98
- .clearfix:after{
99
- clear: both;
100
- }
101
- </style>
1
+ <template>
2
+ <div class="flex-row">
3
+ <div class="basic-main">
4
+ <stop-apply-list v-ref:query></stop-apply-list>
5
+ </div>
6
+
7
+ <modal v-if="showModal" :show.sync="showModal" backdrop="false" large>
8
+ <header slot="modal-header" class="modal-header">
9
+ <button type="button" class="close" @click="closeModal()"><span>&times;</span></button>
10
+ <span class="modal-title"><font size="3">撤销</font></span>
11
+ </header>
12
+ <article slot="modal-body" class="modal-body clearfix">
13
+ <div :class="data.f_cancel_reason ? '' : 'has-error'" class="form-group">
14
+ <label class="control-label-justify control-label col-sm-1">撤销原因</label>
15
+ <div class="col-sm-9">
16
+ <textarea
17
+ class="form-control input_view" style="width: 100%" rows="5"
18
+ v-model="data.f_cancel_reason" :value="data.f_cancel_reason"
19
+ ></textarea>
20
+ </div>
21
+ </div>
22
+ </article>
23
+ <footer slot="modal-footer" class="modal-footer">
24
+ <button :class="!data.f_cancel_reason ? 'btn btn-default':'btn btn-primary'"
25
+ :disabled="!data.f_cancel_reason" type="button" @click="confirmModal()">
26
+ 确认
27
+ </button>
28
+ </footer>
29
+ </modal>
30
+ </div>
31
+ </template>
32
+
33
+ <script>
34
+ import {HttpResetClass} from "vue-client";
35
+
36
+ export default {
37
+ title: '终止报建',
38
+ data () {
39
+ return {
40
+ showModal: false,
41
+ data: null
42
+ }
43
+ },
44
+ ready () {
45
+ },
46
+ methods: {
47
+ closeModal () {
48
+ this.showModal = false
49
+ this.data = null
50
+
51
+ this.$refs.query.$refs.cp.$refs.cri.search()
52
+ },
53
+ async confirmModal () {
54
+ let data = {
55
+ model: this.data,
56
+ loginUser: this.$login.f
57
+ }
58
+ let http = new HttpResetClass()
59
+ let res = await http.load('post', `rs/logic/cancelStopApply`, {data:data},
60
+ {resolveMsg: null, rejectMsg: '撤销失败!!!'}
61
+ )
62
+
63
+ this.closeModal()
64
+ }
65
+ },
66
+ events: {
67
+ 'search' () {
68
+ this.$refs.query.$refs.cp.$refs.cri.search()
69
+ },
70
+ 'cancelStopApply' (row) {
71
+ this.data = row
72
+
73
+ this.showModal = true
74
+ }
75
+ }
76
+ }
77
+ </script>
78
+
79
+ <style scoped>
80
+ .control-label-justify {
81
+ display: inline-block;
82
+ vertical-align: top;
83
+ width: 110px;
84
+ text-align: justify;
85
+ font-family: PingFang-SC-Bold;
86
+ }
87
+
88
+ .control-label-justify::after {
89
+ content: "";
90
+ display: inline-block;
91
+ width: 100%;
92
+ overflow: hidden;
93
+ height: 0;
94
+ }
95
+ .clearfix:after,.clearfix:before{
96
+ display: table;
97
+ }
98
+ .clearfix:after{
99
+ clear: both;
100
+ }
101
+ </style>
@@ -1,257 +1,253 @@
1
- <template>
2
- <div class="col-sm-12">
3
- <criteria-paged :model="model" v-ref:cp>
4
- <criteria partial='criteria' @condition-changed='search' v-ref:cri>
5
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
- <div class="row">
7
- <!-- <div class="form-group col-sm-3">-->
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="form-group col-sm-3">
17
- <label class="font_normal_body">项目名称:</label>
18
- <input type="text" style="width:60%" class="input_search" placeholder='项目名称' v-model="model.f_entry_name"
19
- v-on:keyup.enter="search"
20
- condition="u.f_entry_name = '{}'">
21
- </div>
22
- <div class="form-group col-sm-3">
23
- <label class="font_normal_body">报建编号:</label>
24
- <input type="text" style="width:60%" class="input_search" placeholder='报建编号' v-model="model.f_apply_num"
25
- v-on:keyup.enter="search"
26
- condition="u.f_apply_num = '{}'">
27
- </div>
28
- <div class="form-group col-sm-3">
29
- <label class="font_normal_body">客户名称:</label>
30
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
31
- v-on:keyup.enter="$parent.$parent.search()" condition="u.f_user_name like '%{}%'" placeholder='客户名称'>
32
- </div>
33
- <div class="form-group col-sm-2 button-range">
34
- <button class="button_search button_spacing" @click="$parent.$parent.search()" v-el:cx>查询</button>
35
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
36
- <div
37
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
38
- @click="$parent.$parent.criteriaShow = !$parent.$parent.criteriaShow"
39
- class="button_spacing"
40
- style="float: right">
41
- </div>
42
- </div>
43
- </div>
44
- <div class="row" v-show="$parent.$parent.criteriaShow">
45
- <div class="form-group col-sm-3">
46
- <label class="font_normal_body">联系电话:</label>
47
- <input type="text" style="width:60%" class="input_search" placeholder='联系电话' v-model="model.f_phone"
48
- v-on:keyup.enter="search"
49
- condition="u.f_phone like '%{}%'">
50
- </div>
51
- <div class="form-group col-sm-3">
52
- <label class="font_normal_body">合同编号:</label>
53
- <input type="text" style="width:60%" class="input_search" placeholder='合同编号' v-model="model.f_contract_number"
54
- v-on:keyup.enter="search"
55
- condition="u.f_contract_number = '{}'">
56
- </div>
57
- <div class="form-group col-sm-3">
58
- <label class="font_normal_body">报建类型:</label>
59
- <v-select
60
- v-model="model.f_apply_type"
61
- placeholder='报建类型'
62
- condition="u.f_apply_type = '{}'"
63
- :value.sync="model.f_apply_type"
64
- :options='$parent.$parent.applytype'
65
- class="select select_list"
66
- :value-single="true"
67
- @change="$parent.$parent.applyTypeChange()"
68
- close-on-select ></v-select>
69
- </div>
70
- <div class="form-group col-sm-3">
71
- <label class="font_normal_body">办理环节:</label>
72
- <v-select
73
- v-model="model.defname"
74
- placeholder='办理环节'
75
- condition="defname = '{}'"
76
- :value.sync="model.defname"
77
- :options='$parent.$parent.defnames'
78
- class="select select_list"
79
- :value-single="true"
80
- close-on-select ></v-select>
81
- </div>
82
- <div class="form-group col-sm-3">
83
- <label class="font_normal_body">用户地址:</label>
84
- <input type="text" style="width:60%" class="input_search" placeholder='用户地址' v-model="model.f_address"
85
- v-on:keyup.enter="search"
86
- condition="u.f_address like '%{}%'">
87
- </div>
88
- <div class="form-group col-sm-3">
89
- <label for="startDate" class="font_normal_body">开始时间:</label>
90
- <datepicker id="startDate" placeholder="开始日期"
91
- style="width: 60%!important;"
92
- v-model="model.startDate"
93
- :value.sync="model.startDate"
94
- :format="'yyyy-MM-dd 00:00:00'"
95
- :show-reset-button="true"
96
- condition="u.f_apply_date >= '{}'">
97
- </datepicker>
98
- </div>
99
- <div class="form-group col-sm-3">
100
- <label for="endDate" class="font_normal_body">结束时间:</label>
101
- <datepicker id="endDate" placeholder="结束日期"
102
- style="width: 60%!important;"
103
- v-model="model.endDate"
104
- :value.sync="model.endDate"
105
- :format="'yyyy-MM-dd 23:59:59'"
106
- :show-reset-button="true"
107
- condition="u.f_apply_date <= '{}'">
108
- </datepicker>
109
- </div>
110
- </div>
111
- </div>
112
- </criteria>
113
- <data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy">
114
- <template partial='head'>
115
- <tr>
116
- <th style="white-space: nowrap;">序号</th>
117
- <th style="white-space: nowrap;">报建编号</th>
118
- <th style="white-space: nowrap;">客户名称</th>
119
- <th style="white-space: nowrap;">电话</th>
120
- <th style="white-space: nowrap;">报建类型</th>
121
- <th style="white-space: nowrap;">办理环节</th>
122
- <th style="white-space: nowrap;">状态</th>
123
- <th style="white-space: nowrap;">终止原因</th>
124
- <th style="white-space: nowrap;">终止时间</th>
125
- <th style="white-space: nowrap;">终止人</th>
126
- <!-- <th style="white-space: nowrap;">撤销原因</th>-->
127
- <!-- <th style="white-space: nowrap;">撤销时间</th>-->
128
- <!-- <th style="white-space: nowrap;">撤销人</th>-->
129
- <!-- <th style="white-space: nowrap;">操作</th>-->
130
- </tr>
131
- </template>
132
- <template partial='body'>
133
- <tr>
134
- <td style="text-align: center;">
135
- <nobr>{{$index+1}}</nobr>
136
- </td>
137
- <td style="text-align: center;">
138
- <nobr>{{row.f_apply_num}}</nobr>
139
- </td>
140
- <td style="text-align: center;">
141
- <nobr>{{row.f_user_name}}</nobr>
142
- </td>
143
- <td style="text-align: center;">
144
- <nobr>{{row.f_phone}}</nobr>
145
- </td>
146
- <td style="text-align: center;">
147
- <nobr>{{row.f_apply_type}}</nobr>
148
- </td>
149
- <td style="text-align: center;">
150
- <nobr>{{row.defname}}</nobr>
151
- </td>
152
- <td style="text-align: center;">
153
- <nobr>{{row.f_state}}</nobr>
154
- </td>
155
- <td style="text-align: center;">
156
- <nobr>{{row.f_stop_remarks}}</nobr>
157
- </td>
158
- <td style="text-align: center;">
159
- <nobr>{{row.f_date}}</nobr>
160
- </td>
161
- <td style="text-align: center;">
162
- <nobr>{{row.f_operator}}</nobr>
163
- </td>
164
- <!-- <td style="text-align: center;">-->
165
- <!-- <nobr>{{row.f_cancel_reason}}</nobr>-->
166
- <!-- </td>-->
167
- <!-- <td style="text-align: center;">-->
168
- <!-- <nobr>{{row.f_cancel_date}}</nobr>-->
169
- <!-- </td>-->
170
- <!-- <td style="text-align: center;">-->
171
- <!-- <nobr>{{row.f_cancel_name}}</nobr>-->
172
- <!-- </td>-->
173
- <!-- <td style="text-align: center;">-->
174
- <!-- <dropdown v-if="row.f_type === '暂停报建' && row.f_state === '有效'">-->
175
- <!-- <button type="button" data-toggle="dropdown" style="border: 0px;background: none;">-->
176
- <!-- <span class="glyphicon glyphicon-th-list" style="position: inherit;"></span>-->
177
- <!-- </button>-->
178
- <!-- <ul slot="dropdown-menu" class="dropdown-menu dropdown-menu-right">-->
179
- <!-- <li>-->
180
- <!-- <a href="#" @click="$parent.$parent.$parent.click(row)">撤销</a>-->
181
- <!-- </li>-->
182
- <!-- </ul>-->
183
- <!-- </dropdown>-->
184
- <!-- </td>-->
185
- </tr>
186
- </template>
187
- </data-grid>
188
- </criteria-paged>
189
- </div>
190
- </template>
191
- <script>
192
- import {PagedList} from 'vue-client'
193
- import {isEmpty} from '../../Util'
194
- export default {
195
- title: '终止报建',
196
- data () {
197
- return {
198
- model: new PagedList('rs/sql/getStopApply', 20, {
199
- data: {
200
- orgid: this.$login.f.orgid
201
- }
202
- }),
203
- curorgid: [this.$login.f.orgid],
204
- applytype: [{label: '全部', value: ''}, ...this.$appdata.getParam('报建类型')],
205
- defnames: [{label: '全部', value: ''}, ...this.$appdata.getParam('办理环节')], // 流程节点
206
- applyNatures: [{label: '全部', value: ''}], // 报建性质
207
- criteriaShow: false
208
- }
209
- },
210
- ready () {
211
- // 调用查询
212
- this.search()
213
- },
214
- events: {
215
- },
216
- methods: {
217
- // 查询
218
- search () {
219
- this.$dispatch('search')
220
- },
221
- click (row) {
222
- this.$dispatch('cancelStopApply', row)
223
- },
224
- async applyTypeChange () {
225
- if (!isEmpty(this.$refs.cp.$refs.cri.model.f_apply_type)) {
226
- let res = await this.$resetpost('rs/logic/getDefnameByType',
227
- { f_apply_type: this.$refs.cp.$refs.cri.model.f_apply_type },
228
- {resolveMsg: null, rejectMsg: '节点信息获取失败!!!'}
229
- )
230
-
231
- this.defnames = [{label: '全部', value: ''}, ...res.data]
232
-
233
- this.applyNatures = isEmpty(this.$appdata.getParam(`${this.$refs.cp.$refs.cri.model.f_apply_type}性质`)) ? [{label: '全部', value: ''}] : [{label: '全部', value: ''}, ...this.$appdata.getParam(`${this.$refs.cp.$refs.cri.model.f_apply_type}性质`)]
234
- } else {
235
- this.defnames = [{label: '全部', value: ''}, ...this.$appdata.getParam('办理环节')]
236
-
237
- this.applyNatures = [{label: '全部', value: ''}]
238
- }
239
- },
240
- clear () {
241
- Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
242
- this.$refs.cp.$refs.cri.model[key] = null
243
- })
244
- },
245
- getorg (val) {
246
- if (val.length <= 0) {
247
- return
248
- }
249
- this.model.params.data.orgid = val[0]
250
- }
251
- },
252
- computed: {
253
- }
254
- }
255
- </script>
256
- <style scoped>
257
- </style>
1
+ <template>
2
+ <div class="col-sm-12">
3
+ <criteria-paged :model="model" v-ref:cp>
4
+ <criteria partial='criteria' @condition-changed='search' v-ref:cri>
5
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
+ <div class="row">
7
+ <!-- <div class="form-group col-sm-3">-->
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="form-group col-sm-3">
17
+ <label class="font_normal_body">项目名称:</label>
18
+ <input type="text" style="width:60%" class="input_search" placeholder='项目名称' v-model="model.f_entry_name"
19
+ v-on:keyup.enter="search"
20
+ condition="u.f_entry_name = '{}'">
21
+ </div>
22
+ <div class="form-group col-sm-3">
23
+ <label class="font_normal_body">报建编号:</label>
24
+ <input type="text" style="width:60%" class="input_search" placeholder='报建编号' v-model="model.f_apply_num"
25
+ v-on:keyup.enter="search"
26
+ condition="u.f_apply_num = '{}'">
27
+ </div>
28
+ <!-- <div class="form-group col-sm-3">
29
+ <label class="font_normal_body">客户名称:</label>
30
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
31
+ v-on:keyup.enter="$parent.$parent.search()" condition="u.f_user_name like '%{}%'" placeholder='客户名称'>
32
+ </div>-->
33
+ <div class="form-group col-sm-2 button-range">
34
+ <button class="button_search button_spacing" @click="$parent.$parent.search()" v-el:cx>查询</button>
35
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
36
+ <div
37
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
38
+ @click="$parent.$parent.criteriaShow = !$parent.$parent.criteriaShow"
39
+ class="button_spacing"
40
+ style="float: right">
41
+ </div>
42
+ </div>
43
+ </div>
44
+ <div class="row" v-show="$parent.$parent.criteriaShow">
45
+ <!-- <div class="form-group col-sm-3">
46
+ <label class="font_normal_body">联系电话:</label>
47
+ <input type="text" style="width:60%" class="input_search" placeholder='联系电话' v-model="model.f_phone"
48
+ v-on:keyup.enter="search"
49
+ condition="u.f_phone like '%{}%'">
50
+ </div>-->
51
+ <div class="form-group col-sm-3">
52
+ <label class="font_normal_body">合同编号:</label>
53
+ <input type="text" style="width:60%" class="input_search" placeholder='合同编号' v-model="model.f_contract_number"
54
+ v-on:keyup.enter="search"
55
+ condition="u.f_contract_number = '{}'">
56
+ </div>
57
+ <div class="form-group col-sm-3">
58
+ <label class="font_normal_body">报建类型:</label>
59
+ <v-select
60
+ v-model="model.f_apply_type"
61
+ placeholder='报建类型'
62
+ condition="u.f_apply_type = '{}'"
63
+ :value.sync="model.f_apply_type"
64
+ :options='$parent.$parent.applytype'
65
+ class="select select_list"
66
+ :value-single="true"
67
+ @change="$parent.$parent.applyTypeChange()"
68
+ close-on-select ></v-select>
69
+ </div>
70
+ <div class="form-group col-sm-3">
71
+ <label class="font_normal_body">办理环节:</label>
72
+ <v-select
73
+ v-model="model.defname"
74
+ placeholder='办理环节'
75
+ condition="defname = '{}'"
76
+ :value.sync="model.defname"
77
+ :options='$parent.$parent.defnames'
78
+ class="select select_list"
79
+ :value-single="true"
80
+ close-on-select ></v-select>
81
+ </div>
82
+ <div class="form-group col-sm-3">
83
+ <label class="font_normal_body">用户地址:</label>
84
+ <input type="text" style="width:60%" class="input_search" placeholder='用户地址' v-model="model.f_address"
85
+ v-on:keyup.enter="search"
86
+ condition="u.f_address like '%{}%'">
87
+ </div>
88
+ <div class="form-group col-sm-3">
89
+ <label for="startDate" class="font_normal_body">开始时间:</label>
90
+ <datepicker id="startDate" placeholder="开始日期"
91
+ style="width: 60%!important;"
92
+ v-model="model.startDate"
93
+ :value.sync="model.startDate"
94
+ :format="'yyyy-MM-dd 00:00:00'"
95
+ :show-reset-button="true"
96
+ condition="u.f_apply_date >= '{}'">
97
+ </datepicker>
98
+ </div>
99
+ <div class="form-group col-sm-3">
100
+ <label for="endDate" class="font_normal_body">结束时间:</label>
101
+ <datepicker id="endDate" placeholder="结束日期"
102
+ style="width: 60%!important;"
103
+ v-model="model.endDate"
104
+ :value.sync="model.endDate"
105
+ :format="'yyyy-MM-dd 23:59:59'"
106
+ :show-reset-button="true"
107
+ condition="u.f_apply_date <= '{}'">
108
+ </datepicker>
109
+ </div>
110
+ </div>
111
+ </div>
112
+ </criteria>
113
+ <data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy">
114
+ <template partial='head'>
115
+ <tr>
116
+ <th style="white-space: nowrap;">序号</th>
117
+ <th style="white-space: nowrap;">报建编号</th>
118
+ <th style="white-space: nowrap;">项目名称</th>
119
+ <!-- <th style="white-space: nowrap;">电话</th>-->
120
+ <th style="white-space: nowrap;">报建类型</th>
121
+ <th style="white-space: nowrap;">办理环节</th>
122
+ <th style="white-space: nowrap;">状态</th>
123
+ <th style="white-space: nowrap;">终止原因</th>
124
+ <th style="white-space: nowrap;">终止时间</th>
125
+ <th style="white-space: nowrap;">终止人</th>
126
+ <th style="white-space: nowrap;">撤销原因</th>
127
+ <th style="white-space: nowrap;">撤销时间</th>
128
+ <th style="white-space: nowrap;">撤销人</th>
129
+ <th style="white-space: nowrap;">操作</th>
130
+ </tr>
131
+ </template>
132
+ <template partial='body'>
133
+ <tr>
134
+ <td style="text-align: center;">
135
+ <nobr>{{$index+1}}</nobr>
136
+ </td>
137
+ <td style="text-align: center;">
138
+ <nobr>{{row.f_apply_num}}</nobr>
139
+ </td>
140
+ <td style="text-align: center;">
141
+ <nobr>{{row.f_entry_name}}</nobr>
142
+ </td>
143
+ <!-- <td style="text-align: center;">
144
+ <nobr>{{row.f_phone}}</nobr>
145
+ </td>-->
146
+ <td style="text-align: center;">
147
+ <nobr>{{row.f_apply_type}}</nobr>
148
+ </td>
149
+ <td style="text-align: center;">
150
+ <nobr>{{row.defname}}</nobr>
151
+ </td>
152
+ <td style="text-align: center;">
153
+ <nobr>{{row.f_state}}</nobr>
154
+ </td>
155
+ <td style="text-align: center;">
156
+ <nobr>{{row.f_stop_remarks}}</nobr>
157
+ </td>
158
+ <td style="text-align: center;">
159
+ <nobr>{{row.f_date}}</nobr>
160
+ </td>
161
+ <td style="text-align: center;">
162
+ <nobr>{{row.f_operator}}</nobr>
163
+ </td>
164
+ <td style="text-align: center;">
165
+ <nobr>{{row.f_cancel_reason}}</nobr>
166
+ </td>
167
+ <td style="text-align: center;">
168
+ <nobr>{{row.f_cancel_date}}</nobr>
169
+ </td>
170
+ <td style="text-align: center;">
171
+ <nobr>{{row.f_cancel_name}}</nobr>
172
+ </td>
173
+ <td style="text-align: center;">
174
+ <dropdown v-if="row.f_state === '有效'">
175
+ <button type="button" data-toggle="dropdown" style="border: 0px;background: none;">
176
+ <span class="glyphicon glyphicon-th-list" style="position: inherit;"></span>
177
+ </button>
178
+ <ul slot="dropdown-menu" class="dropdown-menu dropdown-menu-right">
179
+ <li>
180
+ <a href="#" @click="$parent.$parent.$parent.click(row)">撤销</a>
181
+ </li>
182
+ </ul>
183
+ </dropdown>
184
+ </td>
185
+ </tr>
186
+ </template>
187
+ </data-grid>
188
+ </criteria-paged>
189
+ </div>
190
+ </template>
191
+ <script>
192
+ import {HttpResetClass, PagedList} from 'vue-client'
193
+ import {isEmpty} from '../../Util'
194
+ export default {
195
+ title: '终止报建',
196
+ data () {
197
+ return {
198
+ model: new PagedList('rs/sql/getStopApply', 20, {
199
+ data: {
200
+ orgid: this.$login.f.orgid
201
+ }
202
+ }),
203
+ curorgid: [this.$login.f.orgid],
204
+ applytype: [{label: '全部', value: ''}, ...this.$appdata.getParam('报建类型')],
205
+ defnames: [{label: '全部', value: ''}, ...this.$appdata.getParam('办理环节')], // 流程节点
206
+ applyNatures: [{label: '全部', value: ''}], // 报建性质
207
+ criteriaShow: false
208
+ }
209
+ },
210
+ ready () {
211
+ // 调用查询
212
+ this.search()
213
+ },
214
+ events: {
215
+ },
216
+ methods: {
217
+ // 查询
218
+ search () {
219
+ this.$dispatch('search')
220
+ },
221
+ click (row) {
222
+ this.$dispatch('cancelStopApply', row)
223
+ },
224
+ applyTypeChange () {
225
+ if (!isEmpty(this.$refs.cp.$refs.cri.model.f_apply_type)) {
226
+ let http = new HttpResetClass()
227
+ http.load('POST', 'rs/logic/getDefnameByType', {
228
+ f_apply_type: this.$refs.cp.$refs.cri.model.f_apply_type
229
+ }, {resolveMsg: null, rejectMsg: null}).then((res) => {
230
+ this.defnames = [{label: '全部', value: ''}, ...res.data]
231
+ })
232
+ } else {
233
+ this.defnames = [{label: '全部', value: ''}, ...this.$appdata.getParam('办理环节')]
234
+ }
235
+ },
236
+ clear () {
237
+ Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
238
+ this.$refs.cp.$refs.cri.model[key] = null
239
+ })
240
+ },
241
+ getorg (val) {
242
+ if (val.length <= 0) {
243
+ return
244
+ }
245
+ this.model.params.data.orgid = val[0]
246
+ }
247
+ },
248
+ computed: {
249
+ }
250
+ }
251
+ </script>
252
+ <style scoped>
253
+ </style>