apply-clients 7.1.36-yuchuan-1 → 7.1.36-yuchuan-2

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.
@@ -511,6 +511,7 @@ export default {
511
511
  clear () {
512
512
  Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
513
513
  this.$refs.cp.$refs.cri.model[key] = null
514
+ this.$refs.cp.$refs.cri.model.f_apply_type = []
514
515
  })
515
516
  }
516
517
  },
@@ -1,241 +1,241 @@
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_id"
18
- v-on:keyup.enter="search"
19
- condition="ui.f_userinfo_id = '{}'">
20
- </div>
21
- <div class="form-group col-sm-3">
22
- <label class="font_normal_body">表&emsp;&emsp;号:</label>
23
- <input type="text" style="width:60%" class="input_search" placeholder='客户编号' v-model="model.f_meternumber"
24
- v-on:keyup.enter="search"
25
- condition="f_meternumber = '{}'">
26
- </div>
27
- <div class="form-group col-sm-3">
28
- <label class="font_normal_body">客户名称:</label>
29
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
30
- v-on:keyup.enter="search" condition="f_user_name like '%{}%'" placeholder='客户名称'>
31
- </div>
32
-
33
- <div class="form-group col-sm-3 button-range">
34
- <button class="button_search button_spacing" @click.prevent="search" v-el:cx>查询</button>
35
- <button class="button_clear button_spacing" @click.prevent="$parent.$parent.$parent.clear()">清空</button>
36
- <div
37
- :class="{'button_shrink_top':$parent.$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.$parent.criteriaShow}"
38
- @click="$parent.$parent.$parent.criteriaShow = !$parent.$parent.$parent.criteriaShow"
39
- class="button_spacing"
40
- style="float: right">
41
- </div>
42
- </div>
43
- </div>
44
- <div class="row" v-show="$parent.$parent.$parent.criteriaShow">
45
- <div class="form-group col-sm-3">
46
- <label class="font_normal_body">客户电话:</label>
47
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
48
- v-on:keyup.enter="search" condition="f_user_phone = '{}'" placeholder='客户电话'>
49
- </div>
50
- <div class="form-group col-sm-3">
51
- <label class="font_normal_body">小&emsp;&emsp;区:</label>
52
- <v-select
53
- v-model="model.f_residential_area"
54
- placeholder='小区'
55
- condition="f_residential_area = '{}'"
56
- :value.sync="model.f_residential_area"
57
- :options='$parent.$parent.$parent.area'
58
- class="select select_list"
59
- :value-single="true"
60
- close-on-select ></v-select>
61
- </div>
62
- <div class="form-group col-sm-3">
63
- <label class="font_normal_body">楼&emsp;&emsp;号:</label>
64
- <input type="text" style="width:60%" class="input_search" v-model="model.f_building"
65
- v-on:keyup.enter="search" condition="f_building like '%{}%'" placeholder='楼号'>
66
- </div>
67
- <div class="form-group col-sm-3">
68
- <label class="font_normal_body">单&emsp;&emsp;元:</label>
69
- <input type="text" style="width:60%" class="input_search" v-model="model.f_unit"
70
- v-on:keyup.enter="search" condition="f_unit like '%{}%'" placeholder='单元'>
71
- </div>
72
- <div class="form-group col-sm-3">
73
- <label class="font_normal_body">门&nbsp;牌&nbsp;号:</label>
74
- <input type="text" style="width:60%" class="input_search" v-model="model.f_room"
75
- v-on:keyup.enter="search" condition="f_room like '%{}%'" placeholder='门牌号'>
76
- </div>
77
- <div class="form-group col-sm-3">
78
- <label class="font_normal_body">客户地址:</label>
79
- <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
80
- v-on:keyup.enter="search" condition="f_address like '%{}%'" placeholder='客户地址'>
81
- </div>
82
- </div>
83
- </div>
84
- </criteria>
85
- <data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy" style="height: 100%">
86
- <template partial='head'>
87
- <tr>
88
- <th style="white-space: nowrap;">序号</th>
89
- <th style="white-space: nowrap;">客户编号</th>
90
- <th style="white-space: nowrap;">客户名称</th>
91
- <th style="white-space: nowrap;">客户电话</th>
92
- <th style="white-space: nowrap;">地址信息</th>
93
- <th style="white-space: nowrap;">表号</th>
94
- <th style="white-space: nowrap;">选择</th>
95
- </tr>
96
- </template>
97
- <template partial='body'>
98
- <tr >
99
- <td style="text-align: center;">
100
- <nobr><font>{{$index+1}}</font></nobr>
101
- </td>
102
- <td style="text-align: center;">
103
- <nobr><font>{{ row.f_userinfo_id }}</font></nobr>
104
- </td>
105
- <td style="text-align: center;">
106
- <nobr><font>{{ row.f_user_name }}</font></nobr>
107
- </td>
108
- <td style="text-align: center;">
109
- <nobr><font>{{ row.f_user_phone }}</font></nobr>
110
- </td>
111
- <td style="text-align: center;">
112
- <nobr><font>{{ row.f_address }}</font></nobr>
113
- </td>
114
- <td style="text-align: center;">
115
- <nobr><font>{{ row.f_meternumber }}</font></nobr>
116
- </td>
117
- <td style="text-align: center;">
118
- <nobr><font>
119
- <button type="button" name="button" class="button_export" @click.prevent="$parent.$parent.$parent.$parent.select(row)">确认选择</button>
120
- </font></nobr>
121
- </td>
122
- </tr>
123
- </template>
124
- </data-grid>
125
- </criteria-paged>
126
- </article>
127
- <footer slot="modal-footer" class="modal-footer">
128
- </footer>
129
- </modal>
130
- </template>
131
- <script>
132
- import {HttpResetClass, PagedList} from 'vue-client'
133
- import Vue from 'vue'
134
-
135
- export default {
136
- title: '用户列表',
137
- props: {
138
- selectdata: {
139
- type: Object
140
- },
141
- mark: {
142
- type: Number,
143
- default: 0
144
- }
145
- },
146
- data () {
147
- return {
148
- showselect: false,
149
- model: new PagedList('rs/sql/applyGetUserinfos', 20, null),
150
- criteriaShow: false,
151
- area: []
152
- }
153
- },
154
- ready () {
155
- this.getArea()
156
- },
157
- methods: {
158
- select (row) {
159
- this.$dispatch('selectUserinfo', row)
160
-
161
- this.showselect = false
162
- },
163
- searchCondition (args) {
164
- args.condition = `${args.condition} and ui.f_filiale = '${this.$login.f.f_fengongsi}' and ui.f_user_type = '非民用'`
165
-
166
- this.model.search(args.condition, args.model)
167
- },
168
- clear () {
169
- Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
170
- this.$refs.cp.$refs.cri.model[key] = null
171
- })
172
- },
173
- openSelect () {
174
- this.showselect = true
175
- setTimeout(() => {
176
- this.$refs.cp.$refs.cri.search()
177
- }, 100)
178
- },
179
- // 获取小区
180
- async getArea () {
181
- let data = {
182
- tablename: 't_area_address',
183
- condition: `f_filiale = '${this.$login.f.f_fengongsi}' and f_area_status = '启用'`
184
- }
185
- let http = new HttpResetClass()
186
- let res = await http.load(
187
- 'POST',
188
- `rs/sql/applySingleTable`,
189
- {data: data},
190
- {resolveMsg: null, rejectMsg: '小区查询失败!!!'}
191
- )
192
- this.area = res.data.map(item => {
193
- return {
194
- label: item.f_residential_area,
195
- value: item.id
196
- }
197
- })
198
- }
199
- },
200
- events: {
201
- },
202
- computed: {
203
- },
204
- watch: {
205
- }
206
- }
207
- </script>
208
- <style scoped>
209
- .control-label-justify {
210
- display: inline-block;
211
- vertical-align: top;
212
- width: 110px;
213
- text-align: justify;
214
- font-family: PingFang-SC-Bold;
215
- }
216
-
217
- .control-label-justify::after {
218
- content: "";
219
- display: inline-block;
220
- width: 100%;
221
- overflow: hidden;
222
- height: 0;
223
- }
224
- .input_view{
225
- padding: 8px;
226
- background-color: #ffffff;
227
- border-radius: 2px;
228
- border: solid 1px #c7c7c7!important;
229
- color: #333333!important;
230
- font-size: 15px!important;
231
- }
232
-
233
- .input_view[readonly]{
234
- border: 1px solid #DDD!important;
235
- color:#ACA899!important;
236
- }
237
- .input_view:disabled{
238
- border: 1px solid #DDD!important;
239
- color:#ACA899!important;
240
- }
241
- </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_id"
18
+ v-on:keyup.enter="search"
19
+ condition="ui.f_userinfo_id = '{}'">
20
+ </div>
21
+ <div class="form-group col-sm-3">
22
+ <label class="font_normal_body">表&emsp;&emsp;号:</label>
23
+ <input type="text" style="width:60%" class="input_search" placeholder='客户编号' v-model="model.f_meternumber"
24
+ v-on:keyup.enter="search"
25
+ condition="f_meternumber = '{}'">
26
+ </div>
27
+ <div class="form-group col-sm-3">
28
+ <label class="font_normal_body">客户名称:</label>
29
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
30
+ v-on:keyup.enter="search" condition="f_user_name like '%{}%'" placeholder='客户名称'>
31
+ </div>
32
+
33
+ <div class="form-group col-sm-3 button-range">
34
+ <button class="button_search button_spacing" @click.prevent="search" v-el:cx>查询</button>
35
+ <button class="button_clear button_spacing" @click.prevent="$parent.$parent.$parent.clear()">清空</button>
36
+ <div
37
+ :class="{'button_shrink_top':$parent.$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.$parent.criteriaShow}"
38
+ @click="$parent.$parent.$parent.criteriaShow = !$parent.$parent.$parent.criteriaShow"
39
+ class="button_spacing"
40
+ style="float: right">
41
+ </div>
42
+ </div>
43
+ </div>
44
+ <div class="row" v-show="$parent.$parent.$parent.criteriaShow">
45
+ <div class="form-group col-sm-3">
46
+ <label class="font_normal_body">客户电话:</label>
47
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
48
+ v-on:keyup.enter="search" condition="f_user_phone = '{}'" placeholder='客户电话'>
49
+ </div>
50
+ <div class="form-group col-sm-3">
51
+ <label class="font_normal_body">小&emsp;&emsp;区:</label>
52
+ <v-select
53
+ v-model="model.f_residential_area"
54
+ placeholder='小区'
55
+ condition="f_residential_area = '{}'"
56
+ :value.sync="model.f_residential_area"
57
+ :options='$parent.$parent.$parent.area'
58
+ class="select select_list"
59
+ :value-single="true"
60
+ close-on-select ></v-select>
61
+ </div>
62
+ <div class="form-group col-sm-3">
63
+ <label class="font_normal_body">楼&emsp;&emsp;号:</label>
64
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_building"
65
+ v-on:keyup.enter="search" condition="f_building like '%{}%'" placeholder='楼号'>
66
+ </div>
67
+ <div class="form-group col-sm-3">
68
+ <label class="font_normal_body">单&emsp;&emsp;元:</label>
69
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_unit"
70
+ v-on:keyup.enter="search" condition="f_unit like '%{}%'" placeholder='单元'>
71
+ </div>
72
+ <div class="form-group col-sm-3">
73
+ <label class="font_normal_body">门&nbsp;牌&nbsp;号:</label>
74
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_room"
75
+ v-on:keyup.enter="search" condition="f_room like '%{}%'" placeholder='门牌号'>
76
+ </div>
77
+ <div class="form-group col-sm-3">
78
+ <label class="font_normal_body">客户地址:</label>
79
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
80
+ v-on:keyup.enter="search" condition="f_address like '%{}%'" placeholder='客户地址'>
81
+ </div>
82
+ </div>
83
+ </div>
84
+ </criteria>
85
+ <data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy" style="height: 100%">
86
+ <template partial='head'>
87
+ <tr>
88
+ <th style="white-space: nowrap;">序号</th>
89
+ <th style="white-space: nowrap;">客户编号</th>
90
+ <th style="white-space: nowrap;">客户名称</th>
91
+ <th style="white-space: nowrap;">客户电话</th>
92
+ <th style="white-space: nowrap;">地址信息</th>
93
+ <th style="white-space: nowrap;">表号</th>
94
+ <th style="white-space: nowrap;">选择</th>
95
+ </tr>
96
+ </template>
97
+ <template partial='body'>
98
+ <tr >
99
+ <td style="text-align: center;">
100
+ <nobr><font>{{$index+1}}</font></nobr>
101
+ </td>
102
+ <td style="text-align: center;">
103
+ <nobr><font>{{ row.f_userinfo_id }}</font></nobr>
104
+ </td>
105
+ <td style="text-align: center;">
106
+ <nobr><font>{{ row.f_user_name }}</font></nobr>
107
+ </td>
108
+ <td style="text-align: center;">
109
+ <nobr><font>{{ row.f_user_phone }}</font></nobr>
110
+ </td>
111
+ <td style="text-align: center;">
112
+ <nobr><font>{{ row.f_address }}</font></nobr>
113
+ </td>
114
+ <td style="text-align: center;">
115
+ <nobr><font>{{ row.f_meternumber }}</font></nobr>
116
+ </td>
117
+ <td style="text-align: center;">
118
+ <nobr><font>
119
+ <button type="button" name="button" class="button_export" @click.prevent="$parent.$parent.$parent.$parent.select(row)">确认选择</button>
120
+ </font></nobr>
121
+ </td>
122
+ </tr>
123
+ </template>
124
+ </data-grid>
125
+ </criteria-paged>
126
+ </article>
127
+ <footer slot="modal-footer" class="modal-footer">
128
+ </footer>
129
+ </modal>
130
+ </template>
131
+ <script>
132
+ import {HttpResetClass, PagedList} from 'vue-client'
133
+ import Vue from 'vue'
134
+
135
+ export default {
136
+ title: '用户列表',
137
+ props: {
138
+ selectdata: {
139
+ type: Object
140
+ },
141
+ mark: {
142
+ type: Number,
143
+ default: 0
144
+ }
145
+ },
146
+ data () {
147
+ return {
148
+ showselect: false,
149
+ model: new PagedList('rs/sql/applyGetUserinfos', 20, null),
150
+ criteriaShow: false,
151
+ area: []
152
+ }
153
+ },
154
+ ready () {
155
+ this.getArea()
156
+ },
157
+ methods: {
158
+ select (row) {
159
+ this.$dispatch('selectUserinfo', row)
160
+
161
+ this.showselect = false
162
+ },
163
+ searchCondition (args) {
164
+ args.condition = `${args.condition} and ui.f_filiale = '${this.$login.f.f_fengongsi}'`
165
+
166
+ this.model.search(args.condition, args.model)
167
+ },
168
+ clear () {
169
+ Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
170
+ this.$refs.cp.$refs.cri.model[key] = null
171
+ })
172
+ },
173
+ openSelect () {
174
+ this.showselect = true
175
+ setTimeout(() => {
176
+ this.$refs.cp.$refs.cri.search()
177
+ }, 100)
178
+ },
179
+ // 获取小区
180
+ async getArea () {
181
+ let data = {
182
+ tablename: 't_area_address',
183
+ condition: `f_filiale = '${this.$login.f.f_fengongsi}' and f_area_status = '启用'`
184
+ }
185
+ let http = new HttpResetClass()
186
+ let res = await http.load(
187
+ 'POST',
188
+ `rs/sql/applySingleTable`,
189
+ {data: data},
190
+ {resolveMsg: null, rejectMsg: '小区查询失败!!!'}
191
+ )
192
+ this.area = res.data.map(item => {
193
+ return {
194
+ label: item.f_residential_area,
195
+ value: item.id
196
+ }
197
+ })
198
+ }
199
+ },
200
+ events: {
201
+ },
202
+ computed: {
203
+ },
204
+ watch: {
205
+ }
206
+ }
207
+ </script>
208
+ <style scoped>
209
+ .control-label-justify {
210
+ display: inline-block;
211
+ vertical-align: top;
212
+ width: 110px;
213
+ text-align: justify;
214
+ font-family: PingFang-SC-Bold;
215
+ }
216
+
217
+ .control-label-justify::after {
218
+ content: "";
219
+ display: inline-block;
220
+ width: 100%;
221
+ overflow: hidden;
222
+ height: 0;
223
+ }
224
+ .input_view{
225
+ padding: 8px;
226
+ background-color: #ffffff;
227
+ border-radius: 2px;
228
+ border: solid 1px #c7c7c7!important;
229
+ color: #333333!important;
230
+ font-size: 15px!important;
231
+ }
232
+
233
+ .input_view[readonly]{
234
+ border: 1px solid #DDD!important;
235
+ color:#ACA899!important;
236
+ }
237
+ .input_view:disabled{
238
+ border: 1px solid #DDD!important;
239
+ color:#ACA899!important;
240
+ }
241
+ </style>
@@ -1396,6 +1396,12 @@ export default {
1396
1396
  {label: this.selectdata.f_user_name, value: this.selectdata.f_user_name},
1397
1397
  {label: '无', value: '无'}]
1398
1398
  },
1399
+ getGaiXianType () {
1400
+ return [{label: "隐患整改", value: "隐患整改"},
1401
+ {label: "改造工程", value: "改造工程"},
1402
+ {label: "改线工程", value: "改线工程"},
1403
+ {label: "老旧小区", value: "老旧小区"}]
1404
+ },
1399
1405
  async checkIsUser() {
1400
1406
  let data = {
1401
1407
  items: 'count(*) num' ,
@@ -1697,8 +1703,9 @@ export default {
1697
1703
  // 开启签字
1698
1704
  async 'startSignActivity' () {
1699
1705
  this.hideButtons('签字')
1700
- await this.constructionBefore()
1701
-
1706
+ if(this.show_data.f_apply_type !== '管线建设'){
1707
+ await this.constructionBefore()
1708
+ }
1702
1709
  let data = {
1703
1710
  apply: this.show_data,
1704
1711
  user: this.$login.f