apply-clients 7.1.36-yuchuan-37 → 7.1.36-yuchuan-40

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,224 +1,224 @@
1
- <template>
2
- <!-- 中止报建 -->
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"><strong>报建编号:</strong></label>
9
- <input type="text" style="width:60%" class="input_search" placeholder='报建编号' v-model="model.f_apply_num"
10
- v-on:keyup.enter="search"
11
- condition="f_apply_num = '{}'">
12
- </div>
13
- <div class="form-group col-sm-3">
14
- <label class="font_normal_body"><strong>客户名称:</strong></label>
15
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
16
- v-on:keyup.enter="$parent.$parent.search()" condition="f_user_name like '%{}%'" placeholder='客户名称'>
17
- </div>
18
- <div class="form-group col-sm-3">
19
- <label class="font_normal_body"><strong>电&emsp;&emsp;话:</strong></label>
20
- <input type="text" style="width:60%" class="input_search" v-model="model.f_phone"
21
- v-on:keyup.enter="$parent.$parent.search()" condition="f_phone = '{}'" placeholder='电话'>
22
- </div>
23
- <div class="form-group col-sm-2 button-range">
24
- <button class="button_search button_spacing" @click="$parent.$parent.search()" v-el:cx>查询</button>
25
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
26
- <div
27
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
28
- @click="$parent.$parent.criteriaShow = !$parent.$parent.criteriaShow"
29
- class="button_spacing"
30
- style="float: right">
31
- </div>
32
- </div>
33
- </div>
34
- <div class="row" v-show="$parent.$parent.criteriaShow">
35
- <div class="form-group col-sm-3">
36
- <label class="font_normal_body"><strong>报建类型:</strong></label>
37
- <v-select
38
- v-model="model.f_apply_type"
39
- placeholder='报建类型'
40
- condition="f_apply_type like '%{}%'"
41
- :value.sync="model.f_apply_type"
42
- :options='$parent.$parent.applytype'
43
- class="select select_list"
44
- :value-single="true"
45
- @change="$parent.$parent.applyTypeChange()"
46
- close-on-select ></v-select>
47
- </div>
48
- <div class="form-group col-sm-3">
49
- <label class="font_normal_body"><strong>办理环节:</strong></label>
50
- <v-select
51
- v-model="model.defname"
52
- placeholder='办理环节'
53
- condition="defname = '{}'"
54
- :value.sync="model.defname"
55
- :options='$parent.$parent.defnames'
56
- class="select select_list"
57
- :value-single="true"
58
- close-on-select ></v-select>
59
- </div>
60
- <div class="form-group col-sm-3">
61
- <label for="startDate" class="font_normal_body"><strong>开始时间:</strong></label>
62
- <datepicker id="startDate" placeholder="开始日期"
63
- style="width: 60%!important;"
64
- v-model="model.startDate"
65
- :value.sync="model.startDate"
66
- :format="'yyyy-MM-dd HH:mm:ss'"
67
- :show-reset-button="true"
68
- condition="f_apply_date >= '{}'">
69
- </datepicker>
70
- </div>
71
- <div class="form-group col-sm-3">
72
- <label for="endDate" class="font_normal_body"><strong>结束时间:</strong></label>
73
- <datepicker id="endDate" placeholder="结束日期"
74
- style="width: 60%!important;"
75
- v-model="model.endDate"
76
- :value.sync="model.endDate"
77
- :format="'yyyy-MM-dd HH:mm:ss'"
78
- :show-reset-button="true"
79
- condition="f_apply_date <= '{}'">
80
- </datepicker>
81
- </div>
82
- </div>
83
- </div>
84
- </criteria>
85
- <data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy">
86
- <template partial='head'>
87
- <tr>
88
- <th style="white-space: nowrap;">序号</th>
89
- <th style="white-space: nowrap;">报建编号</th>
90
- <th style="white-space: nowrap;">客户名称</th>
91
- <th style="white-space: nowrap;">电话</th>
92
- <th style="white-space: nowrap;">报建类型</th>
93
- <th style="white-space: nowrap;">办理环节</th>
94
- <th style="white-space: nowrap;">类型</th>
95
- <th style="white-space: nowrap;">状态</th>
96
- <th style="white-space: nowrap;">终止原因</th>
97
- <th style="white-space: nowrap;">终止时间</th>
98
- <th style="white-space: nowrap;">终止人</th>
99
- <th style="white-space: nowrap;">撤销原因</th>
100
- <th style="white-space: nowrap;">撤销时间</th>
101
- <th style="white-space: nowrap;">撤销人</th>
102
- <th style="white-space: nowrap;">操作</th>
103
- </tr>
104
- </template>
105
- <template partial='body'>
106
- <tr>
107
- <td style="text-align: center;">
108
- <nobr>{{$index+1}}</nobr>
109
- </td>
110
- <td style="text-align: center;">
111
- <nobr>{{row.f_apply_num}}</nobr>
112
- </td>
113
- <td style="text-align: center;">
114
- <nobr>{{row.f_user_name}}</nobr>
115
- </td>
116
- <td style="text-align: center;">
117
- <nobr>{{row.f_phone}}</nobr>
118
- </td>
119
- <td style="text-align: center;">
120
- <nobr>{{row.f_apply_type}}</nobr>
121
- </td>
122
- <td style="text-align: center;">
123
- <nobr>{{row.defname}}</nobr>
124
- </td>
125
- <td style="text-align: center;">
126
- <nobr>{{row.f_type}}</nobr>
127
- </td>
128
- <td style="text-align: center;">
129
- <nobr>{{row.f_state}}</nobr>
130
- </td>
131
- <td style="text-align: center;">
132
- <nobr>{{row.f_stop_reason}}</nobr>
133
- </td>
134
- <td style="text-align: center;">
135
- <nobr>{{row.f_stop_date}}</nobr>
136
- </td>
137
- <td style="text-align: center;">
138
- <nobr>{{row.f_operator}}</nobr>
139
- </td>
140
- <td style="text-align: center;">
141
- <nobr>{{row.f_cancel_reason}}</nobr>
142
- </td>
143
- <td style="text-align: center;">
144
- <nobr>{{row.f_cancel_date}}</nobr>
145
- </td>
146
- <td style="text-align: center;">
147
- <nobr>{{row.f_cancel_operator}}</nobr>
148
- </td>
149
- <td style="text-align: center;">
150
- <dropdown v-if="row.f_state === '有效' && row.f_operatorid === $login.f.id">
151
- <button type="button" data-toggle="dropdown" style="border: 0px;background: none;">
152
- <span class="glyphicon glyphicon-th-list" style="position: inherit;"></span>
153
- </button>
154
- <ul slot="dropdown-menu" class="dropdown-menu dropdown-menu-right">
155
- <li>
156
- <a href="#" @click="$parent.$parent.$parent.click(row)">撤销</a>
157
- </li>
158
- </ul>
159
- </dropdown>
160
- </td>
161
- </tr>
162
- </template>
163
- </data-grid>
164
- </criteria-paged>
165
- </div>
166
- </template>
167
- <script>
168
- import {PagedList} from 'vue-client'
169
- import {isEmpty} from '../../Util'
170
- export default {
171
- title: '勘探详情',
172
- data () {
173
- return {
174
- model: new PagedList('rs/sql/getStopApply', 20, null),
175
- curorgid: [this.$login.f.orgid],
176
- applytype: [{label: '全部', value: ''}, ...this.$appdata.getParam('报建类型')?this.$appdata.getParam('报建类型'):[]],
177
- defnames: [{label: '全部', value: ''}], // 流程节点
178
- criteriaShow: false
179
- }
180
- },
181
- ready () {
182
- // 调用查询
183
- this.search()
184
- },
185
- events: {
186
- },
187
- methods: {
188
- // 查询
189
- search () {
190
- this.$dispatch('search')
191
- },
192
- click (row) {
193
- this.$dispatch('cancelStopApply', row)
194
- },
195
- async applyTypeChange () {
196
- if (!isEmpty(this.$refs.cp.$refs.cri.model.f_apply_type)) {
197
- let res = await this.$resetpost('rs/logic/getDefnameByType',
198
- { f_apply_type: this.$refs.cp.$refs.cri.model.f_apply_type },
199
- {resolveMsg: null, rejectMsg: '节点信息获取失败!!!'}
200
- )
201
-
202
- this.defnames = [{label: '全部', value: ''}, ...res.data]
203
- } else {
204
- this.defnames = [{label: '全部', value: ''}]
205
- }
206
- },
207
- clear () {
208
- Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
209
- this.$refs.cp.$refs.cri.model[key] = null
210
- })
211
- },
212
- getorg (val) {
213
- if (val.length <= 0) {
214
- return
215
- }
216
- this.model.params.data.orgid = val[0]
217
- }
218
- },
219
- computed: {
220
- }
221
- }
222
- </script>
223
- <style scoped>
224
- </style>
1
+ <template>
2
+ <!-- 中止报建 -->
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"><strong>报建编号:</strong></label>
9
+ <input type="text" style="width:60%" class="input_search" placeholder='报建编号' v-model="model.f_apply_num"
10
+ v-on:keyup.enter="search"
11
+ condition="f_apply_num = '{}'">
12
+ </div>
13
+ <div class="form-group col-sm-3">
14
+ <label class="font_normal_body"><strong>客户名称:</strong></label>
15
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
16
+ v-on:keyup.enter="$parent.$parent.search()" condition="f_user_name like '%{}%'" placeholder='客户名称'>
17
+ </div>
18
+ <div class="form-group col-sm-3">
19
+ <label class="font_normal_body"><strong>电&emsp;&emsp;话:</strong></label>
20
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_phone"
21
+ v-on:keyup.enter="$parent.$parent.search()" condition="f_phone = '{}'" placeholder='电话'>
22
+ </div>
23
+ <div class="form-group col-sm-2 button-range">
24
+ <button class="button_search button_spacing" @click="$parent.$parent.search()" v-el:cx>查询</button>
25
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
26
+ <div
27
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
28
+ @click="$parent.$parent.criteriaShow = !$parent.$parent.criteriaShow"
29
+ class="button_spacing"
30
+ style="float: right">
31
+ </div>
32
+ </div>
33
+ </div>
34
+ <div class="row" v-show="$parent.$parent.criteriaShow">
35
+ <div class="form-group col-sm-3">
36
+ <label class="font_normal_body"><strong>报建类型:</strong></label>
37
+ <v-select
38
+ v-model="model.f_apply_type"
39
+ placeholder='报建类型'
40
+ condition="f_apply_type like '%{}%'"
41
+ :value.sync="model.f_apply_type"
42
+ :options='$parent.$parent.applytype'
43
+ class="select select_list"
44
+ :value-single="true"
45
+ @change="$parent.$parent.applyTypeChange()"
46
+ close-on-select ></v-select>
47
+ </div>
48
+ <div class="form-group col-sm-3">
49
+ <label class="font_normal_body"><strong>办理环节:</strong></label>
50
+ <v-select
51
+ v-model="model.defname"
52
+ placeholder='办理环节'
53
+ condition="defname = '{}'"
54
+ :value.sync="model.defname"
55
+ :options='$parent.$parent.defnames'
56
+ class="select select_list"
57
+ :value-single="true"
58
+ close-on-select ></v-select>
59
+ </div>
60
+ <div class="form-group col-sm-3">
61
+ <label for="startDate" class="font_normal_body"><strong>开始时间:</strong></label>
62
+ <datepicker id="startDate" placeholder="开始日期"
63
+ style="width: 60%!important;"
64
+ v-model="model.startDate"
65
+ :value.sync="model.startDate"
66
+ :format="'yyyy-MM-dd HH:mm:ss'"
67
+ :show-reset-button="true"
68
+ condition="f_apply_date >= '{}'">
69
+ </datepicker>
70
+ </div>
71
+ <div class="form-group col-sm-3">
72
+ <label for="endDate" class="font_normal_body"><strong>结束时间:</strong></label>
73
+ <datepicker id="endDate" placeholder="结束日期"
74
+ style="width: 60%!important;"
75
+ v-model="model.endDate"
76
+ :value.sync="model.endDate"
77
+ :format="'yyyy-MM-dd HH:mm:ss'"
78
+ :show-reset-button="true"
79
+ condition="f_apply_date <= '{}'">
80
+ </datepicker>
81
+ </div>
82
+ </div>
83
+ </div>
84
+ </criteria>
85
+ <data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy">
86
+ <template partial='head'>
87
+ <tr>
88
+ <th style="white-space: nowrap;">序号</th>
89
+ <th style="white-space: nowrap;">报建编号</th>
90
+ <th style="white-space: nowrap;">客户名称</th>
91
+ <th style="white-space: nowrap;">电话</th>
92
+ <th style="white-space: nowrap;">报建类型</th>
93
+ <th style="white-space: nowrap;">办理环节</th>
94
+ <th style="white-space: nowrap;">类型</th>
95
+ <th style="white-space: nowrap;">状态</th>
96
+ <th style="white-space: nowrap;">终止原因</th>
97
+ <th style="white-space: nowrap;">终止时间</th>
98
+ <th style="white-space: nowrap;">终止人</th>
99
+ <th style="white-space: nowrap;">撤销原因</th>
100
+ <th style="white-space: nowrap;">撤销时间</th>
101
+ <th style="white-space: nowrap;">撤销人</th>
102
+ <th style="white-space: nowrap;">操作</th>
103
+ </tr>
104
+ </template>
105
+ <template partial='body'>
106
+ <tr>
107
+ <td style="text-align: center;">
108
+ <nobr>{{$index+1}}</nobr>
109
+ </td>
110
+ <td style="text-align: center;">
111
+ <nobr>{{row.f_apply_num}}</nobr>
112
+ </td>
113
+ <td style="text-align: center;">
114
+ <nobr>{{row.f_user_name}}</nobr>
115
+ </td>
116
+ <td style="text-align: center;">
117
+ <nobr>{{row.f_phone}}</nobr>
118
+ </td>
119
+ <td style="text-align: center;">
120
+ <nobr>{{row.f_apply_type}}</nobr>
121
+ </td>
122
+ <td style="text-align: center;">
123
+ <nobr>{{row.defname}}</nobr>
124
+ </td>
125
+ <td style="text-align: center;">
126
+ <nobr>{{row.f_type}}</nobr>
127
+ </td>
128
+ <td style="text-align: center;">
129
+ <nobr>{{row.f_state}}</nobr>
130
+ </td>
131
+ <td style="text-align: center;">
132
+ <nobr>{{row.f_stop_reason}}</nobr>
133
+ </td>
134
+ <td style="text-align: center;">
135
+ <nobr>{{row.f_stop_date}}</nobr>
136
+ </td>
137
+ <td style="text-align: center;">
138
+ <nobr>{{row.f_operator}}</nobr>
139
+ </td>
140
+ <td style="text-align: center;">
141
+ <nobr>{{row.f_cancel_reason}}</nobr>
142
+ </td>
143
+ <td style="text-align: center;">
144
+ <nobr>{{row.f_cancel_date}}</nobr>
145
+ </td>
146
+ <td style="text-align: center;">
147
+ <nobr>{{row.f_cancel_operator}}</nobr>
148
+ </td>
149
+ <td style="text-align: center;">
150
+ <dropdown v-if="row.f_state === '有效' && row.f_operatorid === $login.f.id">
151
+ <button type="button" data-toggle="dropdown" style="border: 0px;background: none;">
152
+ <span class="glyphicon glyphicon-th-list" style="position: inherit;"></span>
153
+ </button>
154
+ <ul slot="dropdown-menu" class="dropdown-menu dropdown-menu-right">
155
+ <li>
156
+ <a href="#" @click="$parent.$parent.$parent.click(row)">撤销</a>
157
+ </li>
158
+ </ul>
159
+ </dropdown>
160
+ </td>
161
+ </tr>
162
+ </template>
163
+ </data-grid>
164
+ </criteria-paged>
165
+ </div>
166
+ </template>
167
+ <script>
168
+ import {HttpResetClass, PagedList} from 'vue-client'
169
+ import {isEmpty} from '../../Util'
170
+ export default {
171
+ title: '勘探详情',
172
+ data () {
173
+ return {
174
+ model: new PagedList('rs/sql/getStopApply', 20, null),
175
+ curorgid: [this.$login.f.orgid],
176
+ applytype: [{label: '全部', value: ''}, ...this.$appdata.getParam('报建类型')?this.$appdata.getParam('报建类型'):[]],
177
+ defnames: [{label: '全部', value: ''}], // 流程节点
178
+ criteriaShow: false
179
+ }
180
+ },
181
+ ready () {
182
+ // 调用查询
183
+ this.search()
184
+ },
185
+ events: {
186
+ },
187
+ methods: {
188
+ // 查询
189
+ search () {
190
+ this.$dispatch('search')
191
+ },
192
+ click (row) {
193
+ this.$dispatch('cancelStopApply', row)
194
+ },
195
+ async applyTypeChange () {
196
+ if (!isEmpty(this.$refs.cp.$refs.cri.model.f_apply_type)) {
197
+ let http = new HttpResetClass()
198
+ let res = await http.load('POST', 'rs/logic/getDefnameByType', {
199
+ f_apply_type: this.$refs.cp.$refs.cri.model.f_apply_type},
200
+ {resolveMsg: null, rejectMsg: '流程标识获取失败!!!'}
201
+ )
202
+ this.defnames = [{label: '全部', value: ''}, ...res.data]
203
+ } else {
204
+ this.defnames = [{label: '全部', value: ''}]
205
+ }
206
+ },
207
+ clear () {
208
+ Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
209
+ this.$refs.cp.$refs.cri.model[key] = null
210
+ })
211
+ },
212
+ getorg (val) {
213
+ if (val.length <= 0) {
214
+ return
215
+ }
216
+ this.model.params.data.orgid = val[0]
217
+ }
218
+ },
219
+ computed: {
220
+ }
221
+ }
222
+ </script>
223
+ <style scoped>
224
+ </style>