apply-clients 5.0.35-ezhou-7 → 5.0.35-ezhou-8

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": "5.0.35-ezhou-7",
3
+ "version": "5.0.35-ezhou-8",
4
4
  "description": "报建前端模块",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -178,7 +178,8 @@ export default {
178
178
  f_operator: this.$login.f.name,
179
179
  f_filiale: this.$login.f.f_fengongsi
180
180
  },
181
- models2:{}
181
+ models2:{},
182
+ selectShow: false
182
183
  }
183
184
  },
184
185
  methods: {
@@ -1392,7 +1393,9 @@ export default {
1392
1393
  // 控制设置级联
1393
1394
  // 源select所选的值 this.$refs.service_show.data.activitys.fields[index].value
1394
1395
  if (this.$refs.service_show.data.fields[i].label === '街道名称') {
1395
- this.$refs.service_show.data.fields[i].value = ''
1396
+ if (!this.selectShow){
1397
+ this.$refs.service_show.data.fields[i].value = ''
1398
+ }
1396
1399
  let street = await this.$resetpost('rs/sql/singleTable', {
1397
1400
  data: {
1398
1401
  tablename: 't_street',
@@ -1561,8 +1564,9 @@ export default {
1561
1564
  // 控制设置级联
1562
1565
  // 源select所选的值 this.$refs.service_show.data.activitys.fields[index].value
1563
1566
  if (this.$refs.service_show.data.fields[i].label === '小区名称') {
1564
- this.$refs.service_show.data.fields[i].value = ''
1565
-
1567
+ if (!this.selectShow){
1568
+ this.$refs.service_show.data.fields[i].value = ''
1569
+ }
1566
1570
  let area = await this.$resetpost('rs/sql/singleTable', {
1567
1571
  data: {
1568
1572
  tablename: 't_area',
@@ -2244,6 +2248,7 @@ export default {
2244
2248
  this.$refs.service_show.data.fields[i].value = row.f_aroundmeter
2245
2249
  }
2246
2250
  }
2251
+ this.selectShow = true
2247
2252
  console.log("当前数据",JSON.stringify(this.$refs.service_show.data))
2248
2253
  }
2249
2254
  }
@@ -1,183 +1,184 @@
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" style="top: 42px;">
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_user_name"
24
- v-on:keyup.enter="search" condition="ui.f_user_name 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_user_phone"
29
- v-on:keyup.enter="search" condition="ui.f_user_phone = '{}'" placeholder='客户电话'>
30
- </div>
31
-
32
- <div class="form-group col-sm-3 button-range">
33
- <button class="button_search button_spacing" @click.prevent="search" v-el:cx>查询</button>
34
- <button class="button_clear button_spacing" @click.prevent="$parent.$parent.$parent.clear()">清空</button>
35
- <div
36
- :class="{'button_shrink_top':$parent.$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.$parent.criteriaShow}"
37
- @click="$parent.$parent.$parent.criteriaShow = !$parent.$parent.$parent.criteriaShow"
38
- class="button_spacing"
39
- style="float: right">
40
- </div>
41
- </div>
42
- </div>
43
- <div class="row" v-show="$parent.$parent.$parent.criteriaShow">
44
- <div class="form-group col-sm-3">
45
- <label class="font_normal_body">客户地址:</label>
46
- <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
47
- v-on:keyup.enter="search" condition="ua.f_address like '%{}%'" placeholder='客户地址'>
48
- </div>
49
- </div>
50
- </div>
51
- </criteria>
52
- <data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy" style="height: 100%">
53
- <template partial='head'>
54
- <tr>
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
- <th style="white-space: nowrap;">选择</th>
61
- </tr>
62
- </template>
63
- <template partial='body'>
64
- <tr >
65
- <td style="text-align: center;">
66
- <nobr><font>{{$index+1}}</font></nobr>
67
- </td>
68
- <td style="text-align: center;">
69
- <nobr><font>{{ row.f_userinfo_code }}</font></nobr>
70
- </td>
71
- <td style="text-align: center;">
72
- <nobr><font>{{ row.f_user_name }}</font></nobr>
73
- </td>
74
- <td style="text-align: center;">
75
- <nobr><font>{{ row.f_user_phone }}</font></nobr>
76
- </td>
77
- <td style="text-align: center;">
78
- <nobr><font>{{ row.f_address }}</font></nobr>
79
- </td>
80
- <td style="text-align: center;">
81
- <nobr><font>
82
- <button type="button" name="button" class="button_export" @click.prevent="$parent.$parent.$parent.$parent.select(row)">确认选择</button>
83
- </font></nobr>
84
- </td>
85
- </tr>
86
- </template>
87
- </data-grid>
88
- </criteria-paged>
89
- </article>
90
- <footer slot="modal-footer" class="modal-footer">
91
- </footer>
92
- </modal>
93
- </template>
94
- <script>
95
- import {PagedList} from 'vue-client'
96
- import Vue from 'vue'
97
-
98
- export default {
99
- title: '收费管理',
100
- props: {
101
- selectdata: {
102
- type: Object
103
- },
104
- mark: {
105
- type: Number,
106
- default: 0
107
- }
108
- },
109
- data () {
110
- return {
111
- showselect: false,
112
- model: new PagedList('rs/sql/applyGetUserinfos', 20, null),
113
- criteriaShow: false
114
- }
115
- },
116
- ready () {
117
- },
118
- methods: {
119
- select (row) {
120
- this.$dispatch('selectUserinfo', row)
121
-
122
- this.showselect = false
123
- },
124
- searchCondition (args) {
125
- args.condition = `${args.condition}`
126
-
127
- this.model.search(args.condition, args.model)
128
- },
129
- clear () {
130
- Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
131
- this.$refs.cp.$refs.cri.model[key] = null
132
- })
133
- },
134
- openSelect () {
135
- this.showselect = true
136
- setTimeout(() => {
137
- this.$refs.cp.$refs.cri.search()
138
- }, 100)
139
- }
140
- },
141
- events: {
142
- },
143
- computed: {
144
- },
145
- watch: {
146
- }
147
- }
148
- </script>
149
- <style scoped>
150
- .control-label-justify {
151
- top: 42px;
152
- display: inline-block;
153
- vertical-align: top;
154
- width: 110px;
155
- text-align: justify;
156
- font-family: PingFang-SC-Bold;
157
- }
158
-
159
- .control-label-justify::after {
160
- content: "";
161
- display: inline-block;
162
- width: 100%;
163
- overflow: hidden;
164
- height: 0;
165
- }
166
- .input_view{
167
- padding: 8px;
168
- background-color: #ffffff;
169
- border-radius: 2px;
170
- border: solid 1px #c7c7c7!important;
171
- color: #333333!important;
172
- font-size: 15px!important;
173
- }
174
-
175
- .input_view[readonly]{
176
- border: 1px solid #DDD!important;
177
- color:#ACA899!important;
178
- }
179
- .input_view:disabled{
180
- border: 1px solid #DDD!important;
181
- color:#ACA899!important;
182
- }
183
- </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" style="top: 42px;">
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_user_name"
24
+ v-on:keyup.enter="search" condition="ui.f_user_name 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_user_phone"
29
+ v-on:keyup.enter="search" condition="ui.f_user_phone = '{}'" placeholder='客户电话'>
30
+ </div>
31
+
32
+ <div class="form-group col-sm-3 button-range">
33
+ <button class="button_search button_spacing" @click.prevent="search" v-el:cx>查询</button>
34
+ <button class="button_clear button_spacing" @click.prevent="$parent.$parent.$parent.clear()">清空</button>
35
+ <div
36
+ :class="{'button_shrink_top':$parent.$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.$parent.criteriaShow}"
37
+ @click="$parent.$parent.$parent.criteriaShow = !$parent.$parent.$parent.criteriaShow"
38
+ class="button_spacing"
39
+ style="float: right">
40
+ </div>
41
+ </div>
42
+ </div>
43
+ <div class="row" v-show="$parent.$parent.$parent.criteriaShow">
44
+ <div class="form-group col-sm-3">
45
+ <label class="font_normal_body">客户地址:</label>
46
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
47
+ v-on:keyup.enter="search" condition="ua.f_address like '%{}%'" placeholder='客户地址'>
48
+ </div>
49
+ </div>
50
+ </div>
51
+ </criteria>
52
+ <data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy" style="height: 100%">
53
+ <template partial='head'>
54
+ <tr>
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
+ <th style="white-space: nowrap;">选择</th>
61
+ </tr>
62
+ </template>
63
+ <template partial='body'>
64
+ <tr >
65
+ <td style="text-align: center;">
66
+ <nobr><font>{{$index+1}}</font></nobr>
67
+ </td>
68
+ <td style="text-align: center;">
69
+ <nobr><font>{{ row.f_userinfo_code }}</font></nobr>
70
+ </td>
71
+ <td style="text-align: center;">
72
+ <nobr><font>{{ row.f_user_name }}</font></nobr>
73
+ </td>
74
+ <td style="text-align: center;">
75
+ <nobr><font>{{ row.f_user_phone }}</font></nobr>
76
+ </td>
77
+ <td style="text-align: center;">
78
+ <nobr><font>{{ row.f_address }}</font></nobr>
79
+ </td>
80
+ <td style="text-align: center;">
81
+ <nobr><font>
82
+ <button type="button" name="button" class="button_export" @click.prevent="$parent.$parent.$parent.$parent.select(row)">确认选择</button>
83
+ </font></nobr>
84
+ </td>
85
+ </tr>
86
+ </template>
87
+ </data-grid>
88
+ </criteria-paged>
89
+ </article>
90
+ <footer slot="modal-footer" class="modal-footer">
91
+ </footer>
92
+ </modal>
93
+ </template>
94
+ <script>
95
+ import {PagedList} from 'vue-client'
96
+ import Vue from 'vue'
97
+
98
+ export default {
99
+ title: '收费管理',
100
+ props: {
101
+ selectdata: {
102
+ type: Object
103
+ },
104
+ mark: {
105
+ type: Number,
106
+ default: 0
107
+ }
108
+ },
109
+ data () {
110
+ return {
111
+ showselect: false,
112
+ model: new PagedList('rs/sql/applyGetUserinfos', 20, null),
113
+ criteriaShow: false
114
+ }
115
+ },
116
+ ready () {
117
+ },
118
+ methods: {
119
+ select (row) {
120
+ console.log("当前传入数据ccc",row)
121
+ this.$dispatch('selectUserinfo', row)
122
+
123
+ this.showselect = false
124
+ },
125
+ searchCondition (args) {
126
+ args.condition = `${args.condition}`
127
+
128
+ this.model.search(args.condition, args.model)
129
+ },
130
+ clear () {
131
+ Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
132
+ this.$refs.cp.$refs.cri.model[key] = null
133
+ })
134
+ },
135
+ openSelect () {
136
+ this.showselect = true
137
+ setTimeout(() => {
138
+ this.$refs.cp.$refs.cri.search()
139
+ }, 100)
140
+ }
141
+ },
142
+ events: {
143
+ },
144
+ computed: {
145
+ },
146
+ watch: {
147
+ }
148
+ }
149
+ </script>
150
+ <style scoped>
151
+ .control-label-justify {
152
+ top: 42px;
153
+ display: inline-block;
154
+ vertical-align: top;
155
+ width: 110px;
156
+ text-align: justify;
157
+ font-family: PingFang-SC-Bold;
158
+ }
159
+
160
+ .control-label-justify::after {
161
+ content: "";
162
+ display: inline-block;
163
+ width: 100%;
164
+ overflow: hidden;
165
+ height: 0;
166
+ }
167
+ .input_view{
168
+ padding: 8px;
169
+ background-color: #ffffff;
170
+ border-radius: 2px;
171
+ border: solid 1px #c7c7c7!important;
172
+ color: #333333!important;
173
+ font-size: 15px!important;
174
+ }
175
+
176
+ .input_view[readonly]{
177
+ border: 1px solid #DDD!important;
178
+ color:#ACA899!important;
179
+ }
180
+ .input_view:disabled{
181
+ border: 1px solid #DDD!important;
182
+ color:#ACA899!important;
183
+ }
184
+ </style>