apply-clients 3.1.36 → 3.1.37

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,195 +1,195 @@
1
- <template>
2
- <div>
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-5">
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_user_name like '%{}%' or f_contact like '%{}%') " placeholder='二选一输入'>
11
- </div>
12
- <div class="form-group col-sm-4">
13
- <label class="font_normal_body">合同编号:</label>
14
- <input type="text" class="input_search" placeholder='合同编号' v-model="model.f_contract_number"
15
- v-on:keyup.enter="search"
16
- condition="f_contract_number like '%{}%'">
17
- </div>
18
- <div class="form-group col-sm-3 operate">
19
- <label class="font_normal_body"></label>
20
- <button type="button" class="btn btn-info head-but" @click="search(),$parent.$parent.close()" v-el:cx>查询</button>
21
- <div
22
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
23
- @click="$parent.$parent.hidden()"
24
- class="button_spacing"
25
- style="float: right">
26
- </div>
27
- </div>
28
- </div>
29
- <div class="row" v-show="$parent.$parent.criteriaShow">
30
- <div class="form-group col-sm-4">
31
- <label class="font_normal_body">用户地址:</label>
32
- <input type="text" class="input_search" placeholder='用户地址' v-model="model.f_address"
33
- v-on:keyup.enter="search"
34
- condition="f_address like '%{}%'">
35
- </div>
36
- <div class="col-sm-4 form-group">
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
- close-on-select ></v-select>
47
- </div>
48
- <div class="col-sm-4 form-group">
49
- <label class="font_normal_body">办理环节:</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>
61
- </div>
62
- </criteria>
63
- <data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy">
64
- <template partial='head'>
65
- <tr class="title">
66
- <th>序号</th>
67
- <th>当前环节</th>
68
- <th>客户名称/联系人</th>
69
- <th>合同编号</th>
70
- <th>电话</th>
71
- <th>地址</th>
72
- <th>报建类型</th>
73
- <th>报建日期</th>
74
- <th>操作</th>
75
- </tr>
76
- </template>
77
- <template partial='body'>
78
- <tr>
79
- <td style="text-align: center;">
80
- <nobr>{{$index+1}}</nobr>
81
- </td>
82
- <td style="text-align: center;">
83
- <nobr>{{row.defname}}</nobr>
84
- </td>
85
- <td style="text-align: center;">
86
- <nobr>{{row.f_user_name}}/{{row.f_contact}}</nobr>
87
- </td>
88
- <td style="text-align: center;">
89
- <nobr>{{row.f_contract_number}}</nobr>
90
- </td>
91
- <td style="text-align: center;">
92
- <nobr>{{row.f_phone}}</nobr>
93
- </td>
94
- <td style="text-align: center;">
95
- <nobr>{{row.f_address}}</nobr>
96
- </td>
97
- <td style="text-align: center;">
98
- <nobr>{{row.f_apply_type}}</nobr>
99
- </td>
100
- <td style="text-align: center;">
101
- <nobr>{{row.f_apply_date}}</nobr>
102
- </td>
103
- <td style="text-align: center;">
104
- <dropdown>
105
- <button @click="$parent.$parent.$parent.checkfuncs(row)" type="button" data-toggle="dropdown" style="border: 0px;background: none;">
106
- <span class="glyphicon glyphicon-th-list" style="position: inherit;"></span>
107
- </button>
108
- <ul slot="dropdown-menu" class="dropdown-menu dropdown-menu-right">
109
- <li v-for="(index,func) in $parent.$parent.$parent.funcs">
110
- <a href="#" @click="$parent.$parent.$parent.$parent.func(func,row)">{{func.title}}</a>
111
- </li>
112
- </ul>
113
- </dropdown>
114
- </td>
115
- </tr>
116
- </template>
117
- </data-grid>
118
- </criteria-paged>
119
- </div>
120
- </template>
121
- <script>
122
- import {HttpResetClass} from 'vue-client'
123
- import {PagedList} from 'vue-client'
124
- export default {
125
- title: '报建业务信息',
126
- data () {
127
- return {
128
- // applytype: [{label: '全部', value: ''}, ...this.$appdata.getParam('报建类型')],
129
- applytype: [{label: '全部', value: ''}],
130
- funcs: [],
131
- defnames: [],
132
- model: new PagedList('rs/sql/checkuserfunction', 20, {
133
- data: {
134
- id: this.$login.f.id,
135
- org: this.$login.f.orgs
136
- }
137
- }),
138
- criteriaShow: false // 控制查询条件
139
- }
140
- },
141
- ready () {
142
- // 调用查询
143
- this.$refs.cp.$refs.cri.search()
144
- this.getDefnames()
145
- },
146
- methods: {
147
- // 获取配置
148
- checkfuncs (row) {
149
- this.funcs = this.$function_vue.functions
150
- },
151
- // 获取所有办理环节
152
- getDefnames () {
153
- let http = new HttpResetClass()
154
- http.load('POST', 'rs/logic/getAllDefname', {}, {
155
- resolveMsg: null,
156
- rejectMsg: null
157
- }).then((res) => {
158
- this.defnames = [{label: '全部', value: ''}, ...res.data]
159
- })
160
- },
161
- // 控制查询条件
162
- hidden () {
163
- this.$dispatch('hidden', this.criteriaShow)
164
- this.criteriaShow = !this.criteriaShow
165
- },
166
- // 关闭
167
- close () {
168
- this.$dispatch('close')
169
- },
170
- // 点击功能操作
171
- func (func, row) {
172
- this.$dispatch('func', func, row)
173
- }
174
- },
175
- events: {
176
- }
177
- }
178
- </script>
179
- <style scoped>
180
- .operate{
181
- text-align: right;
182
- display: flex;
183
- align-items: center; /*子元素中线居中*/
184
- justify-content: flex-end; /*子元素靠右*/
185
- margin-top: 7px;
186
- }
187
- .head-but{
188
- margin-left: 5px;
189
- height: 34px;
190
- background-color: #6aa6e2;
191
- border-radius: 4px;
192
- font-family: PingFang;
193
- color: #ffffff;
194
- }
195
- </style>
1
+ <template>
2
+ <div>
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-5">
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_user_name like '%{}%' or f_contact like '%{}%') " placeholder='二选一输入'>
11
+ </div>
12
+ <div class="form-group col-sm-4">
13
+ <label class="font_normal_body">合同编号:</label>
14
+ <input type="text" class="input_search" placeholder='合同编号' v-model="model.f_contract_number"
15
+ v-on:keyup.enter="search"
16
+ condition="f_contract_number like '%{}%'">
17
+ </div>
18
+ <div class="form-group col-sm-3 operate">
19
+ <label class="font_normal_body"></label>
20
+ <button type="button" class="btn btn-info head-but" @click="search(),$parent.$parent.close()" v-el:cx>查询</button>
21
+ <div
22
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
23
+ @click="$parent.$parent.hidden()"
24
+ class="button_spacing"
25
+ style="float: right">
26
+ </div>
27
+ </div>
28
+ </div>
29
+ <div class="row" v-show="$parent.$parent.criteriaShow">
30
+ <div class="form-group col-sm-4">
31
+ <label class="font_normal_body">用户地址:</label>
32
+ <input type="text" class="input_search" placeholder='用户地址' v-model="model.f_address"
33
+ v-on:keyup.enter="search"
34
+ condition="f_address like '%{}%'">
35
+ </div>
36
+ <div class="col-sm-4 form-group">
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
+ close-on-select ></v-select>
47
+ </div>
48
+ <div class="col-sm-4 form-group">
49
+ <label class="font_normal_body">办理环节:</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>
61
+ </div>
62
+ </criteria>
63
+ <data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy">
64
+ <template partial='head'>
65
+ <tr class="title">
66
+ <th>序号</th>
67
+ <th>当前环节</th>
68
+ <th>客户名称/联系人</th>
69
+ <th>合同编号</th>
70
+ <th>电话</th>
71
+ <th>地址</th>
72
+ <th>报建类型</th>
73
+ <th>报建日期</th>
74
+ <th>操作</th>
75
+ </tr>
76
+ </template>
77
+ <template partial='body'>
78
+ <tr>
79
+ <td style="text-align: center;">
80
+ <nobr>{{$index+1}}</nobr>
81
+ </td>
82
+ <td style="text-align: center;">
83
+ <nobr>{{row.defname}}</nobr>
84
+ </td>
85
+ <td style="text-align: center;">
86
+ <nobr>{{row.f_user_name}}/{{row.f_contact}}</nobr>
87
+ </td>
88
+ <td style="text-align: center;">
89
+ <nobr>{{row.f_contract_number}}</nobr>
90
+ </td>
91
+ <td style="text-align: center;">
92
+ <nobr>{{row.f_phone}}</nobr>
93
+ </td>
94
+ <td style="text-align: center;">
95
+ <nobr>{{row.f_address}}</nobr>
96
+ </td>
97
+ <td style="text-align: center;">
98
+ <nobr>{{row.f_apply_type}}</nobr>
99
+ </td>
100
+ <td style="text-align: center;">
101
+ <nobr>{{row.f_apply_date}}</nobr>
102
+ </td>
103
+ <td style="text-align: center;">
104
+ <dropdown>
105
+ <button @click="$parent.$parent.$parent.checkfuncs(row)" type="button" data-toggle="dropdown" style="border: 0px;background: none;">
106
+ <span class="glyphicon glyphicon-th-list" style="position: inherit;"></span>
107
+ </button>
108
+ <ul slot="dropdown-menu" class="dropdown-menu dropdown-menu-right">
109
+ <li v-for="(index,func) in $parent.$parent.$parent.funcs">
110
+ <a href="#" @click="$parent.$parent.$parent.$parent.func(func,row)">{{func.title}}</a>
111
+ </li>
112
+ </ul>
113
+ </dropdown>
114
+ </td>
115
+ </tr>
116
+ </template>
117
+ </data-grid>
118
+ </criteria-paged>
119
+ </div>
120
+ </template>
121
+ <script>
122
+ import {HttpResetClass} from 'vue-client'
123
+ import {PagedList} from 'vue-client'
124
+ export default {
125
+ title: '报建业务信息',
126
+ data () {
127
+ return {
128
+ // applytype: [{label: '全部', value: ''}, ...this.$appdata.getParam('报建类型')],
129
+ applytype: [{label: '全部', value: ''}],
130
+ funcs: [],
131
+ defnames: [],
132
+ model: new PagedList('rs/sql/checkuserfunction', 20, {
133
+ data: {
134
+ id: this.$login.f.id,
135
+ org: this.$login.f.orgs
136
+ }
137
+ }),
138
+ criteriaShow: false // 控制查询条件
139
+ }
140
+ },
141
+ ready () {
142
+ // 调用查询
143
+ this.$refs.cp.$refs.cri.search()
144
+ this.getDefnames()
145
+ },
146
+ methods: {
147
+ // 获取配置
148
+ checkfuncs (row) {
149
+ this.funcs = this.$function_vue.functions
150
+ },
151
+ // 获取所有办理环节
152
+ getDefnames () {
153
+ let http = new HttpResetClass()
154
+ http.load('POST', 'rs/logic/getAllDefname', {}, {
155
+ resolveMsg: null,
156
+ rejectMsg: null
157
+ }).then((res) => {
158
+ this.defnames = [{label: '全部', value: ''}, ...res.data]
159
+ })
160
+ },
161
+ // 控制查询条件
162
+ hidden () {
163
+ this.$dispatch('hidden', this.criteriaShow)
164
+ this.criteriaShow = !this.criteriaShow
165
+ },
166
+ // 关闭
167
+ close () {
168
+ this.$dispatch('close')
169
+ },
170
+ // 点击功能操作
171
+ func (func, row) {
172
+ this.$dispatch('func', func, row)
173
+ }
174
+ },
175
+ events: {
176
+ }
177
+ }
178
+ </script>
179
+ <style scoped>
180
+ .operate{
181
+ text-align: right;
182
+ display: flex;
183
+ align-items: center; /*子元素中线居中*/
184
+ justify-content: flex-end; /*子元素靠右*/
185
+ margin-top: 7px;
186
+ }
187
+ .head-but{
188
+ margin-left: 5px;
189
+ height: 34px;
190
+ background-color: #6aa6e2;
191
+ border-radius: 4px;
192
+ font-family: PingFang;
193
+ color: #ffffff;
194
+ }
195
+ </style>