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,184 +1,184 @@
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_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_contract_number"
15
- v-on:keyup.enter="search"
16
- condition="f_contract_number like '%{}%'">
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_address"
21
- v-on:keyup.enter="search"
22
- condition="f_address like '%{}%'">
23
- </div>
24
- <div class="form-group col-sm-2 operate">
25
- <button type="button" class="btn btn-info head-but" @click="search(),$parent.$parent.close()" v-el:cx>查询</button>
26
- <!-- <button class="button_search button_spacing width-60" @click="search(),$parent.$parent.close()" v-el:cx>查询</button>-->
27
- <div
28
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
29
- @click="$parent.$parent.hidden()"
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="col-sm-3 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-3 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>
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 @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
80
- <nobr>{{$index+1}}</nobr>
81
- </td>
82
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
83
- <nobr>{{row.f_sub_state}}</nobr>
84
- </td>
85
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
86
- <nobr>{{row.f_user_name}}/{{row.f_contact}}</nobr>
87
- </td>
88
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
89
- <nobr>{{row.f_contract_number}}</nobr>
90
- </td>
91
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
92
- <nobr>{{row.f_phone}}</nobr>
93
- </td>
94
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
95
- <nobr>{{row.f_address}}</nobr>
96
- </td>
97
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
98
- <nobr>{{row.defname}}</nobr>
99
- </td>
100
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
101
- <nobr>{{row.f_apply_type}}</nobr>
102
- </td>
103
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
104
- <nobr>{{row.f_apply_date}}</nobr>
105
- </td>
106
- </tr>
107
- </template>
108
- </data-grid>
109
- </criteria-paged>
110
- </div>
111
- </template>
112
- <script>
113
- import {PagedList} from 'vue-client'
114
- import getNowDate from '../../getNowDate.js'
115
- import {HttpResetClass} from 'vue-client'
116
-
117
- export default {
118
- title: '勘探详情',
119
- data() {
120
- return {
121
- applytype: [{label:"全部",value:''}],
122
- model: new PagedList('rs/sql/supervisory', 20, {
123
- data: {
124
- id: `${this.$login.f.name}`,
125
- org: `${this.$login.f.orgs}`
126
- }
127
- }),
128
- defnames:[], // 所有流程节点
129
- condition: '', // 查询条件
130
- criteriaShow: false
131
- }
132
- },
133
- async ready() {
134
- // 调用查询
135
- this.$refs.cp.$refs.cri.search()
136
- // 获取所有办理环节
137
- this.getDefnames()
138
- },
139
- events: {
140
- },
141
- methods: {
142
- hidden() {
143
- this.$dispatch('hidden', this.criteriaShow)
144
- this.criteriaShow = !this.criteriaShow
145
- },
146
- // 获取所有办理环节
147
- getDefnames() {
148
- let http = new HttpResetClass()
149
- http.load('POST', 'rs/logic/getAllDefname', {}, {
150
- resolveMsg: null,
151
- rejectMsg: null
152
- }).then((res) => {
153
- this.defnames = [{label: '全部', value: ''}, ...res.data]
154
- })
155
- },
156
- check(val) {
157
- this.$dispatch('apply', val)
158
- },
159
- close() {
160
- this.$dispatch('close')
161
- }
162
- },
163
- computed: {
164
- }
165
- }
166
- </script>
167
- <style scoped>
168
-
169
- .operate{
170
- text-align: right;
171
- display: flex;
172
- align-items: center; /*子元素中线居中*/
173
- justify-content: flex-end; /*子元素靠右*/
174
- margin-top: 7px;
175
- }
176
- .head-but{
177
- margin-left: 5px;
178
- height: 34px;
179
- background-color: #6aa6e2;
180
- border-radius: 4px;
181
- font-family: PingFang;
182
- color: #ffffff;
183
- }
184
- </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_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_contract_number"
15
+ v-on:keyup.enter="search"
16
+ condition="f_contract_number like '%{}%'">
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_address"
21
+ v-on:keyup.enter="search"
22
+ condition="f_address like '%{}%'">
23
+ </div>
24
+ <div class="form-group col-sm-2 operate">
25
+ <button type="button" class="btn btn-info head-but" @click="search(),$parent.$parent.close()" v-el:cx>查询</button>
26
+ <!-- <button class="button_search button_spacing width-60" @click="search(),$parent.$parent.close()" v-el:cx>查询</button>-->
27
+ <div
28
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
29
+ @click="$parent.$parent.hidden()"
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="col-sm-3 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-3 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>
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 @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
80
+ <nobr>{{$index+1}}</nobr>
81
+ </td>
82
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
83
+ <nobr>{{row.f_sub_state}}</nobr>
84
+ </td>
85
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
86
+ <nobr>{{row.f_user_name}}/{{row.f_contact}}</nobr>
87
+ </td>
88
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
89
+ <nobr>{{row.f_contract_number}}</nobr>
90
+ </td>
91
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
92
+ <nobr>{{row.f_phone}}</nobr>
93
+ </td>
94
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
95
+ <nobr>{{row.f_address}}</nobr>
96
+ </td>
97
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
98
+ <nobr>{{row.defname}}</nobr>
99
+ </td>
100
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
101
+ <nobr>{{row.f_apply_type}}</nobr>
102
+ </td>
103
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
104
+ <nobr>{{row.f_apply_date}}</nobr>
105
+ </td>
106
+ </tr>
107
+ </template>
108
+ </data-grid>
109
+ </criteria-paged>
110
+ </div>
111
+ </template>
112
+ <script>
113
+ import {PagedList} from 'vue-client'
114
+ import getNowDate from '../../getNowDate.js'
115
+ import {HttpResetClass} from 'vue-client'
116
+
117
+ export default {
118
+ title: '勘探详情',
119
+ data() {
120
+ return {
121
+ applytype: [{label:"全部",value:''}],
122
+ model: new PagedList('rs/sql/supervisory', 20, {
123
+ data: {
124
+ id: `${this.$login.f.name}`,
125
+ org: `${this.$login.f.orgs}`
126
+ }
127
+ }),
128
+ defnames:[], // 所有流程节点
129
+ condition: '', // 查询条件
130
+ criteriaShow: false
131
+ }
132
+ },
133
+ async ready() {
134
+ // 调用查询
135
+ this.$refs.cp.$refs.cri.search()
136
+ // 获取所有办理环节
137
+ this.getDefnames()
138
+ },
139
+ events: {
140
+ },
141
+ methods: {
142
+ hidden() {
143
+ this.$dispatch('hidden', this.criteriaShow)
144
+ this.criteriaShow = !this.criteriaShow
145
+ },
146
+ // 获取所有办理环节
147
+ getDefnames() {
148
+ let http = new HttpResetClass()
149
+ http.load('POST', 'rs/logic/getAllDefname', {}, {
150
+ resolveMsg: null,
151
+ rejectMsg: null
152
+ }).then((res) => {
153
+ this.defnames = [{label: '全部', value: ''}, ...res.data]
154
+ })
155
+ },
156
+ check(val) {
157
+ this.$dispatch('apply', val)
158
+ },
159
+ close() {
160
+ this.$dispatch('close')
161
+ }
162
+ },
163
+ computed: {
164
+ }
165
+ }
166
+ </script>
167
+ <style scoped>
168
+
169
+ .operate{
170
+ text-align: right;
171
+ display: flex;
172
+ align-items: center; /*子元素中线居中*/
173
+ justify-content: flex-end; /*子元素靠右*/
174
+ margin-top: 7px;
175
+ }
176
+ .head-but{
177
+ margin-left: 5px;
178
+ height: 34px;
179
+ background-color: #6aa6e2;
180
+ border-radius: 4px;
181
+ font-family: PingFang;
182
+ color: #ffffff;
183
+ }
184
+ </style>