apply-clients 7.1.44 → 7.1.47

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