apply-clients 4.1.85 → 4.1.86

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.85",
3
+ "version": "4.1.86",
4
4
  "description": "报建前端模块",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -1,205 +1,199 @@
1
- <template>
2
- <div style="margin-bottom: 20px" class="form-group select-overspread">
3
- <label class="control-label-justify control-label col-sm-3">选择用户</label>
4
- <div class="col-sm-10" >
5
- <button class="button_search button_spacing" type="button" style="width: max-content;position: absolute" @click="openSelect" :disabled="mark === 1">选择</button>
6
- </div>
7
- </div>
8
-
9
- <modal v-if="showselect" :show.sync="showselect" width="80%" title="用户信息" v-ref:modal large backdrop="false">
10
- <article slot="modal-body" class="modal-body" style="height: 600px!important;">
11
- <criteria-paged :model="model" v-ref:cp>
12
- <criteria partial='criteria' @condition-changed='$parent.$parent.searchCondition' v-ref:cri>
13
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
14
- <div class="row">
15
- <div class="form-group col-sm-3">
16
- <label class="font_normal_body">客户编号:</label>
17
- <input type="text" style="width:60%" class="input_search" placeholder='客户编号' v-model="model.f_userinfo_code"
18
- v-on:keyup.enter="search"
19
- condition="ui.f_userinfo_code = '{}'">
20
- </div>
21
- <div class="form-group col-sm-3">
22
- <label class="font_normal_body">客户地址:</label>
23
- <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
24
- v-on:keyup.enter="search" condition="ua.f_address like '%{}%'" placeholder='客户地址'>
25
- </div>
26
- <div class="form-group col-sm-3 button-range">
27
- <button class="button_search button_spacing" @click.prevent="search" v-el:cx>查询</button>
28
- <button class="button_clear button_spacing" @click.prevent="$parent.$parent.$parent.clear()">清空</button>
29
- <div
30
- :class="{'button_shrink_top':$parent.$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.$parent.criteriaShow}"
31
- @click="$parent.$parent.$parent.criteriaShow = !$parent.$parent.$parent.criteriaShow"
32
- class="button_spacing"
33
- style="float: right">
34
- </div>
35
- </div>
36
- </div>
37
- <div class="row" v-show="$parent.$parent.$parent.criteriaShow">
38
- <div class="form-group col-sm-3">
39
- <label class="font_normal_body">客户名称:</label>
40
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
41
- v-on:keyup.enter="search" condition="ui.f_user_name like '%{}%'" placeholder='客户名称'>
42
- </div>
43
- <div class="form-group col-sm-3">
44
- <label class="font_normal_body">客户电话:</label>
45
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
46
- v-on:keyup.enter="search" condition="ui.f_user_phone = '{}'" placeholder='客户电话'>
47
- </div>
48
- </div>
49
- </div>
50
- </criteria>
51
- <data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy" style="height: 100%">
52
- <template partial='head'>
53
- <tr>
54
- <th style="white-space: nowrap;">序号</th>
55
- <th style="white-space: nowrap;">客户编号</th>
56
- <th style="white-space: nowrap;">客户名称</th>
57
- <th style="white-space: nowrap;">客户电话</th>
58
- <th style="white-space: nowrap;">地址信息</th>
59
- <th style="white-space: nowrap;">选择</th>
60
- </tr>
61
- </template>
62
- <template partial='body'>
63
- <tr >
64
- <td style="text-align: center;">
65
- <nobr><font>{{$index+1}}</font></nobr>
66
- </td>
67
- <td style="text-align: center;">
68
- <nobr><font>{{ row.f_userinfo_code }}</font></nobr>
69
- </td>
70
- <td style="text-align: center;">
71
- <nobr><font>{{ row.f_user_name }}</font></nobr>
72
- </td>
73
- <td style="text-align: center;">
74
- <nobr><font>{{ row.f_user_phone }}</font></nobr>
75
- </td>
76
- <td style="text-align: center;">
77
- <nobr><font>{{ row.f_address_type }}</font></nobr>
78
- </td>
79
- <td style="text-align: center;" v-show="false">
80
- <nobr><font>{{ row.f_pcd }}</font></nobr>
81
- </td>
82
- <td style="text-align: center;" v-show="false">
83
- <nobr><font>{{ row.f_street }}</font></nobr>
84
- </td>
85
- <td style="text-align: center;" v-show="false">
86
- <nobr><font>{{ row.f_residential_area }}</font></nobr>
87
- </td>
88
- <td style="text-align: center;" v-show="false">
89
- <nobr><font>{{ row.f_building }}</font></nobr>
90
- </td>
91
- <td style="text-align: center;" v-show="false">
92
- <nobr><font>{{ row.f_unit }}</font></nobr>
93
- </td>
94
- <td style="text-align: center;" v-show="false">
95
- <nobr><font>{{ row.f_floor }}</font></nobr>
96
- </td>
97
- <td style="text-align: center;" v-show="false">
98
- <nobr><font>{{ row.f_room }}</font></nobr>
99
- </td>
100
- <td style="text-align: center;">
101
- <nobr><font>{{ row.f_address }}</font></nobr>
102
- </td>
103
- <td style="text-align: center;">
104
- <nobr><font>
105
- <button type="button" name="button" class="button_export" @click.prevent="$parent.$parent.$parent.$parent.select(row)">确认选择</button>
106
- </font></nobr>
107
- </td>
108
- </tr>
109
- </template>
110
- </data-grid>
111
- </criteria-paged>
112
- </article>
113
- <footer slot="modal-footer" class="modal-footer">
114
- </footer>
115
- </modal>
116
- </template>
117
- <script>
118
- import {PagedList} from 'vue-client'
119
- import Vue from 'vue'
120
-
121
- export default {
122
- title: '选择用户',
123
- props: {
124
- selectdata: {
125
- type: Object
126
- },
127
- mark: {
128
- type: Number,
129
- default: 0
130
- }
131
- },
132
- data () {
133
- return {
134
- showselect: false,
135
- model: new PagedList('rs/sql/applyGetUserinfos', 20, null),
136
- criteriaShow: false
137
- }
138
- },
139
- ready () {
140
- },
141
- methods: {
142
- select (row) {
143
- this.$dispatch('selectUserinfo', row)
144
-
145
- this.showselect = false
146
- },
147
- searchCondition (args) {
148
- args.condition = `${args.condition} and ui.f_filialeid = '${this.$login.f.orgid}'`
149
-
150
- this.model.search(args.condition, args.model)
151
- },
152
- clear () {
153
- Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
154
- this.$refs.cp.$refs.cri.model[key] = null
155
- })
156
- },
157
- openSelect () {
158
- this.showselect = true
159
- setTimeout(() => {
160
- this.$refs.cp.$refs.cri.search()
161
- }, 100)
162
- }
163
- },
164
- events: {
165
- },
166
- computed: {
167
- },
168
- watch: {
169
- }
170
- }
171
- </script>
172
- <style scoped>
173
- .control-label-justify {
174
- display: inline-block;
175
- vertical-align: top;
176
- width: 110px;
177
- text-align: justify;
178
- font-family: PingFang-SC-Bold;
179
- }
180
-
181
- .control-label-justify::after {
182
- content: "";
183
- display: inline-block;
184
- width: 100%;
185
- overflow: hidden;
186
- height: 0;
187
- }
188
- .input_view{
189
- padding: 8px;
190
- background-color: #ffffff;
191
- border-radius: 2px;
192
- border: solid 1px #c7c7c7!important;
193
- color: #333333!important;
194
- font-size: 15px!important;
195
- }
196
-
197
- .input_view[readonly]{
198
- border: 1px solid #DDD!important;
199
- color:#ACA899!important;
200
- }
201
- .input_view:disabled{
202
- border: 1px solid #DDD!important;
203
- color:#ACA899!important;
204
- }
205
- </style>
1
+ <template>
2
+ <div style="margin-bottom: 20px" class="form-group select-overspread">
3
+ <label class="control-label-justify control-label col-sm-3">选择用户</label>
4
+ <div class="col-sm-10" >
5
+ <button class="button_search button_spacing" type="button" style="width: max-content;position: absolute" @click="openSelect" :disabled="mark === 1">选择</button>
6
+ </div>
7
+ </div>
8
+
9
+ <modal v-if="showselect" :show.sync="showselect" width="80%" title="用户信息" v-ref:modal large backdrop="false">
10
+ <article slot="modal-body" class="modal-body" style="height: 600px!important;">
11
+ <criteria-paged :model="model" v-ref:cp>
12
+ <criteria partial='criteria' @condition-changed='$parent.$parent.searchCondition' v-ref:cri>
13
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
14
+ <div class="row">
15
+ <div class="form-group col-sm-3">
16
+ <label class="font_normal_body">客户编号:</label>
17
+ <input type="text" style="width:60%" class="input_search" placeholder='客户编号' v-model="model.f_userinfo_code"
18
+ v-on:keyup.enter="search"
19
+ condition="ui.f_userinfo_code = '{}'">
20
+ </div>
21
+ <div class="form-group col-sm-3">
22
+ <label class="font_normal_body">客户地址:</label>
23
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
24
+ v-on:keyup.enter="search" condition="ua.f_address like '%{}%'" placeholder='客户地址'>
25
+ </div>
26
+ <div class="form-group col-sm-3">
27
+ <label class="font_normal_body">卡号:</label>
28
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_card_id"
29
+ v-on:keyup.enter="search" condition="uf.f_card_id like '%{}%'" placeholder='卡号'>
30
+ </div>
31
+ <div class="form-group col-sm-3 button-range">
32
+ <button class="button_search button_spacing" @click.prevent="search" v-el:cx>查询</button>
33
+ <button class="button_clear button_spacing" @click.prevent="$parent.$parent.$parent.clear()">清空</button>
34
+ <div
35
+ :class="{'button_shrink_top':$parent.$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.$parent.criteriaShow}"
36
+ @click="$parent.$parent.$parent.criteriaShow = !$parent.$parent.$parent.criteriaShow"
37
+ class="button_spacing"
38
+ style="float: right">
39
+ </div>
40
+ </div>
41
+ </div>
42
+ <div class="row" v-show="$parent.$parent.$parent.criteriaShow">
43
+ <div class="form-group col-sm-3">
44
+ <label class="font_normal_body">客户名称:</label>
45
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
46
+ v-on:keyup.enter="search" condition="ui.f_user_name like '%{}%'" placeholder='客户名称'>
47
+ </div>
48
+ <div class="form-group col-sm-3">
49
+ <label class="font_normal_body">客户电话:</label>
50
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
51
+ v-on:keyup.enter="search" condition="ui.f_user_phone = '{}'" placeholder='客户电话'>
52
+ </div>
53
+ <div class="form-group col-sm-3">
54
+ <label class="font_normal_body">表号:</label>
55
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
56
+ v-on:keyup.enter="search" condition="uf.f_meternumber like '%{}%'" placeholder='表号'>
57
+ </div>
58
+ </div>
59
+ </div>
60
+ </criteria>
61
+ <data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy" style="height: 100%">
62
+ <template partial='head'>
63
+ <tr>
64
+ <th style="white-space: nowrap;">序号</th>
65
+ <th style="white-space: nowrap;">客户编号</th>
66
+ <th style="white-space: nowrap;">客户名称</th>
67
+ <th style="white-space: nowrap;">客户电话</th>
68
+ <th style="white-space: nowrap;">卡号</th>
69
+ <th style="white-space: nowrap;">表号</th>
70
+ <th style="white-space: nowrap;">地址信息</th>
71
+ <th style="white-space: nowrap;">选择</th>
72
+ </tr>
73
+ </template>
74
+ <template partial='body'>
75
+ <tr >
76
+ <td style="text-align: center;">
77
+ <nobr><font>{{$index+1}}</font></nobr>
78
+ </td>
79
+ <td style="text-align: center;">
80
+ <nobr><font>{{ row.f_userinfo_code }}</font></nobr>
81
+ </td>
82
+ <td style="text-align: center;">
83
+ <nobr><font>{{ row.f_user_name }}</font></nobr>
84
+ </td>
85
+ <td style="text-align: center;">
86
+ <nobr><font>{{ row.f_user_phone }}</font></nobr>
87
+ </td>
88
+ <td style="text-align: center;">
89
+ <nobr><font>{{ row.f_card_id }}</font></nobr>
90
+ </td>
91
+ <td style="text-align: center;">
92
+ <nobr><font>{{ row.f_meternumber }}</font></nobr>
93
+ </td>
94
+ <td style="text-align: center;">
95
+ <nobr><font>{{ row.f_address }}</font></nobr>
96
+ </td>
97
+ <td style="text-align: center;">
98
+ <nobr><font>
99
+ <button type="button" name="button" class="button_export" @click.prevent="$parent.$parent.$parent.$parent.select(row)">确认选择</button>
100
+ </font></nobr>
101
+ </td>
102
+ </tr>
103
+ </template>
104
+ </data-grid>
105
+ </criteria-paged>
106
+ </article>
107
+ <footer slot="modal-footer" class="modal-footer">
108
+ </footer>
109
+ </modal>
110
+ </template>
111
+ <script>
112
+ import {PagedList} from 'vue-client'
113
+ import Vue from 'vue'
114
+
115
+ export default {
116
+ title: '选择用户',
117
+ props: {
118
+ selectdata: {
119
+ type: Object
120
+ },
121
+ mark: {
122
+ type: Number,
123
+ default: 0
124
+ }
125
+ },
126
+ data () {
127
+ return {
128
+ showselect: false,
129
+ model: new PagedList('rs/sql/applyGetUserinfos', 20, null),
130
+ criteriaShow: false
131
+ }
132
+ },
133
+ ready () {
134
+ },
135
+ methods: {
136
+ select (row) {
137
+ this.$dispatch('selectUserinfo', row)
138
+
139
+ this.showselect = false
140
+ },
141
+ searchCondition (args) {
142
+ args.condition = `${args.condition} and ui.f_filialeid = '${this.$login.f.orgid}'`
143
+
144
+ this.model.search(args.condition, args.model)
145
+ },
146
+ clear () {
147
+ Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
148
+ this.$refs.cp.$refs.cri.model[key] = null
149
+ })
150
+ },
151
+ openSelect () {
152
+ this.showselect = true
153
+ setTimeout(() => {
154
+ this.$refs.cp.$refs.cri.search()
155
+ }, 100)
156
+ }
157
+ },
158
+ events: {
159
+ },
160
+ computed: {
161
+ },
162
+ watch: {
163
+ }
164
+ }
165
+ </script>
166
+ <style scoped>
167
+ .control-label-justify {
168
+ display: inline-block;
169
+ vertical-align: top;
170
+ width: 110px;
171
+ text-align: justify;
172
+ font-family: PingFang-SC-Bold;
173
+ }
174
+
175
+ .control-label-justify::after {
176
+ content: "";
177
+ display: inline-block;
178
+ width: 100%;
179
+ overflow: hidden;
180
+ height: 0;
181
+ }
182
+ .input_view{
183
+ padding: 8px;
184
+ background-color: #ffffff;
185
+ border-radius: 2px;
186
+ border: solid 1px #c7c7c7!important;
187
+ color: #333333!important;
188
+ font-size: 15px!important;
189
+ }
190
+
191
+ .input_view[readonly]{
192
+ border: 1px solid #DDD!important;
193
+ color:#ACA899!important;
194
+ }
195
+ .input_view:disabled{
196
+ border: 1px solid #DDD!important;
197
+ color:#ACA899!important;
198
+ }
199
+ </style>