apply-clients 4.1.42-weinan → 4.1.44-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.42-weinan",
3
+ "version": "4.1.44-weinan",
4
4
  "description": "报建前端模块",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -120,11 +120,13 @@
120
120
  this.tabs[name].props = {service: this.row, shutype: 'shu'}
121
121
  if (this.num === 1) {
122
122
  this.selectdatacopy = this.$children[0].$children[0].show_data
123
+ this.num += 1
123
124
  }
124
125
  } else if (name === 'app-take-pic') {
125
126
  this.tabs[name].props = {blobid: this.row.f_process_id, defname: this.row.defname, isdelete: 'true', istakepic: 'true', istype: 'true'}
126
127
  if (this.num === 1) {
127
128
  this.selectdatacopy = this.$children[0].$children[0].show_data
129
+ this.num += 1
128
130
  }
129
131
  } else {
130
132
  this.row.defname = this.row.defname
@@ -400,7 +400,6 @@
400
400
  watch:{
401
401
  // 监听selectdata的变化
402
402
  'selectdata'() {
403
- debugger
404
403
  console.log('进入selectdata改变事件data=>' + JSON.stringify(this.selectdata))
405
404
  if(this.copydata!=null){
406
405
  this.show_data=this.copydata
@@ -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,266 @@
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 class="font_normal_body">终止状态:</label>
90
+ <v-select
91
+ v-model="model.f_state"
92
+ placeholder='办理环节'
93
+ condition="s.f_state = '{}'"
94
+ :value.sync="model.f_state"
95
+ :options='$parent.$parent.states'
96
+ class="select select_list"
97
+ :value-single="true"
98
+ close-on-select ></v-select>
99
+ </div>
100
+ <div class="form-group col-sm-3">
101
+ <label for="startDate" class="font_normal_body">开始时间:</label>
102
+ <datepicker id="startDate" placeholder="开始日期"
103
+ style="width: 60%!important;"
104
+ v-model="model.startDate"
105
+ :value.sync="model.startDate"
106
+ :format="'yyyy-MM-dd 00:00:00'"
107
+ :show-reset-button="true"
108
+ condition="u.f_apply_date >= '{}'">
109
+ </datepicker>
110
+ </div>
111
+ <div class="form-group col-sm-3">
112
+ <label for="endDate" class="font_normal_body">结束时间:</label>
113
+ <datepicker id="endDate" placeholder="结束日期"
114
+ style="width: 60%!important;"
115
+ v-model="model.endDate"
116
+ :value.sync="model.endDate"
117
+ :format="'yyyy-MM-dd 23:59:59'"
118
+ :show-reset-button="true"
119
+ condition="u.f_apply_date <= '{}'">
120
+ </datepicker>
121
+ </div>
122
+ </div>
123
+ </div>
124
+ </criteria>
125
+ <data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy">
126
+ <template partial='head'>
127
+ <tr>
128
+ <th style="white-space: nowrap;">序号</th>
129
+ <th style="white-space: nowrap;">报建编号</th>
130
+ <th style="white-space: nowrap;">项目名称</th>
131
+ <!-- <th style="white-space: nowrap;">电话</th>-->
132
+ <th style="white-space: nowrap;">报建类型</th>
133
+ <th style="white-space: nowrap;">办理环节</th>
134
+ <th style="white-space: nowrap;">状态</th>
135
+ <th style="white-space: nowrap;">终止原因</th>
136
+ <th style="white-space: nowrap;">终止时间</th>
137
+ <th style="white-space: nowrap;">终止人</th>
138
+ <th style="white-space: nowrap;">撤销原因</th>
139
+ <th style="white-space: nowrap;">撤销时间</th>
140
+ <th style="white-space: nowrap;">撤销人</th>
141
+ <th style="white-space: nowrap;">操作</th>
142
+ </tr>
143
+ </template>
144
+ <template partial='body'>
145
+ <tr>
146
+ <td style="text-align: center;">
147
+ <nobr>{{$index+1}}</nobr>
148
+ </td>
149
+ <td style="text-align: center;">
150
+ <nobr>{{row.f_apply_num}}</nobr>
151
+ </td>
152
+ <td style="text-align: center;">
153
+ <nobr>{{row.f_entry_name}}</nobr>
154
+ </td>
155
+ <!-- <td style="text-align: center;">
156
+ <nobr>{{row.f_phone}}</nobr>
157
+ </td>-->
158
+ <td style="text-align: center;">
159
+ <nobr>{{row.f_apply_type}}</nobr>
160
+ </td>
161
+ <td style="text-align: center;">
162
+ <nobr>{{row.defname}}</nobr>
163
+ </td>
164
+ <td style="text-align: center;">
165
+ <nobr>{{row.f_state}}</nobr>
166
+ </td>
167
+ <td style="text-align: center;">
168
+ <nobr>{{row.f_stop_remarks}}</nobr>
169
+ </td>
170
+ <td style="text-align: center;">
171
+ <nobr>{{row.f_date}}</nobr>
172
+ </td>
173
+ <td style="text-align: center;">
174
+ <nobr>{{row.f_operator}}</nobr>
175
+ </td>
176
+ <td style="text-align: center;">
177
+ <nobr>{{row.f_cancel_reason}}</nobr>
178
+ </td>
179
+ <td style="text-align: center;">
180
+ <nobr>{{row.f_cancel_date}}</nobr>
181
+ </td>
182
+ <td style="text-align: center;">
183
+ <nobr>{{row.f_cancel_name}}</nobr>
184
+ </td>
185
+ <td style="text-align: center;">
186
+ <dropdown v-if="row.f_state === '有效'">
187
+ <button type="button" data-toggle="dropdown" style="border: 0px;background: none;">
188
+ <span class="glyphicon glyphicon-th-list" style="position: inherit;"></span>
189
+ </button>
190
+ <ul slot="dropdown-menu" class="dropdown-menu dropdown-menu-right">
191
+ <li>
192
+ <a href="#" @click="$parent.$parent.$parent.click(row)">撤销</a>
193
+ </li>
194
+ </ul>
195
+ </dropdown>
196
+ </td>
197
+ </tr>
198
+ </template>
199
+ </data-grid>
200
+ </criteria-paged>
201
+ </div>
202
+ </template>
203
+ <script>
204
+ import {HttpResetClass, PagedList} from 'vue-client'
205
+ import {isEmpty} from '../../Util'
206
+ export default {
207
+ title: '终止报建',
208
+ data () {
209
+ return {
210
+ model: new PagedList('rs/sql/getStopApply', 20, {
211
+ data: {
212
+ orgid: this.$login.f.orgid
213
+ }
214
+ }),
215
+ curorgid: [this.$login.f.orgid],
216
+ applytype: [{label: '全部', value: ''}, ...this.$appdata.getParam('报建类型')],
217
+ defnames: [{label: '全部', value: ''}, ...this.$appdata.getParam('办理环节')], // 流程节点
218
+ states: [{label: '全部', value: ''}, {label: '有效', value: '有效'}, {label: '无效', value: '无效'}],
219
+ applyNatures: [{label: '全部', value: ''}], // 报建性质
220
+ criteriaShow: false
221
+ }
222
+ },
223
+ ready () {
224
+ // 调用查询
225
+ this.search()
226
+ },
227
+ events: {
228
+ },
229
+ methods: {
230
+ // 查询
231
+ search () {
232
+ this.$dispatch('search')
233
+ },
234
+ click (row) {
235
+ this.$dispatch('cancelStopApply', row)
236
+ },
237
+ applyTypeChange () {
238
+ if (!isEmpty(this.$refs.cp.$refs.cri.model.f_apply_type)) {
239
+ let http = new HttpResetClass()
240
+ http.load('POST', 'rs/logic/getDefnameByType', {
241
+ f_apply_type: this.$refs.cp.$refs.cri.model.f_apply_type
242
+ }, {resolveMsg: null, rejectMsg: null}).then((res) => {
243
+ this.defnames = [{label: '全部', value: ''}, ...res.data]
244
+ })
245
+ } else {
246
+ this.defnames = [{label: '全部', value: ''}, ...this.$appdata.getParam('办理环节')]
247
+ }
248
+ },
249
+ clear () {
250
+ Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
251
+ this.$refs.cp.$refs.cri.model[key] = null
252
+ })
253
+ },
254
+ getorg (val) {
255
+ if (val.length <= 0) {
256
+ return
257
+ }
258
+ this.model.params.data.orgid = val[0]
259
+ }
260
+ },
261
+ computed: {
262
+ }
263
+ }
264
+ </script>
265
+ <style scoped>
266
+ </style>