apply-clients 5.0.35-ezhou-6 → 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.
@@ -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: {
@@ -223,7 +224,11 @@ export default {
223
224
  f_apply_source:this.models2.f_apply_source,
224
225
  f_sub_state:'未完工',
225
226
  f_project_number : res1.data.f_apply_num,
226
- user:this.$login.f
227
+ user:{
228
+ id: this.$login.f.id,
229
+ name: this.$login.f.name,
230
+ ename: this.$login.f.ename
231
+ }
227
232
  }
228
233
  await http.load('POST','rs/logic/newaddApplyproduct',{data:data}, {resolveMsg: null, rejectMsg: '转发失败,请联系开发人员'})
229
234
  var flag = false
@@ -1388,7 +1393,9 @@ export default {
1388
1393
  // 控制设置级联
1389
1394
  // 源select所选的值 this.$refs.service_show.data.activitys.fields[index].value
1390
1395
  if (this.$refs.service_show.data.fields[i].label === '街道名称') {
1391
- this.$refs.service_show.data.fields[i].value = ''
1396
+ if (!this.selectShow){
1397
+ this.$refs.service_show.data.fields[i].value = ''
1398
+ }
1392
1399
  let street = await this.$resetpost('rs/sql/singleTable', {
1393
1400
  data: {
1394
1401
  tablename: 't_street',
@@ -1557,8 +1564,9 @@ export default {
1557
1564
  // 控制设置级联
1558
1565
  // 源select所选的值 this.$refs.service_show.data.activitys.fields[index].value
1559
1566
  if (this.$refs.service_show.data.fields[i].label === '小区名称') {
1560
- this.$refs.service_show.data.fields[i].value = ''
1561
-
1567
+ if (!this.selectShow){
1568
+ this.$refs.service_show.data.fields[i].value = ''
1569
+ }
1562
1570
  let area = await this.$resetpost('rs/sql/singleTable', {
1563
1571
  data: {
1564
1572
  tablename: 't_area',
@@ -2240,6 +2248,7 @@ export default {
2240
2248
  this.$refs.service_show.data.fields[i].value = row.f_aroundmeter
2241
2249
  }
2242
2250
  }
2251
+ this.selectShow = true
2243
2252
  console.log("当前数据",JSON.stringify(this.$refs.service_show.data))
2244
2253
  }
2245
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>
@@ -152,31 +152,25 @@
152
152
  </div>
153
153
  </div>
154
154
  <div class="col-sm-12 form-group text-center" style="padding-top:20px">
155
- <div class="form-group col-sm-2 center-block">
156
- <label class=" col-sm-6 control-label control-label-justify">所属公司:</label>
157
- <div class="col-sm-6">
155
+ <div class="form-group col-sm-3 center-block">
156
+ <label class=" col-sm-4 control-label control-label-justify">所属公司:</label>
157
+ <div class="col-sm-8">
158
158
  <input class="form-control" type="text" v-model="model.f_filiale" disabled>
159
159
  </div>
160
160
  </div>
161
- <div class="col-sm-1 form-group center-block">
162
- </div>
163
161
  <div class="col-sm-2 form-group center-block">
164
162
  <label class="control-label control-label-justify col-sm-6">部门:</label>
165
163
  <div class="col-sm-6">
166
164
  <input type="text" class="form-control" disabled v-model="model.f_parentname"/>
167
165
  </div>
168
166
  </div>
169
- <div class="col-sm-1 form-group center-block">
170
- </div>
171
167
  <div class="col-sm-2 form-group center-block">
172
168
  <label class="control-label control-label-justify col-sm-6">操作人:</label>
173
169
  <div class="col-sm-6 ">
174
170
  <input type="text" class="form-control" disabled v-model="model.f_operator"/>
175
171
  </div>
176
172
  </div>
177
- <div class="col-sm-1 form-group center-block">
178
- </div>
179
- <div class="col-sm-2 form-group center-block">
173
+ <div class="col-sm-4 form-group center-block">
180
174
  <label class="control-label control-label-justify col-sm-6">操作日期:</label>
181
175
  <div class="col-sm-6">
182
176
  <input type="text" class="form-control" disabled v-model="model.f_operate_date"/>