apply-clients 3.1.46 → 3.1.49

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": "3.1.46",
3
+ "version": "3.1.49",
4
4
  "description": "报建前端模块",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -93,7 +93,7 @@
93
93
  "system-clients": "3.2.2",
94
94
  "system-phone": "1.1.18",
95
95
  "url-loader": "^0.5.7",
96
- "vue-client": "1.21.61-akyh-1",
96
+ "vue-client": "1.21.61-akyh-3",
97
97
  "vue-hot-reload-api": "^1.2.0",
98
98
  "vue-html-loader": "^1.0.0",
99
99
  "vue-loader": "^8.2.1",
@@ -1,304 +1,315 @@
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-3">
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_apply_num"
15
- v-on:keyup.enter="search"
16
- condition="u.f_apply_num like '%{}%'">
17
- </div>
18
- <div class="form-group col-sm-3">
19
- <label class="font_normal_body">工程类型:</label>
20
- <v-select
21
- v-model="model.f_project_type"
22
- placeholder='请选择'
23
- condition="u.f_project_type like '%{}%'"
24
- :value.sync="model.f_project_type"
25
- :options='$parent.$parent.projectType'
26
- class="select select_list"
27
- :value-single="true"
28
- close-on-select ></v-select>
29
- </div>
30
-
31
- <div class="form-group col-sm-3 button-range">
32
- <button type="button" class="btn btn-info head-but" @click="search(),$parent.$parent.close()" v-el:cx>查询</button>
33
- <button type="button" class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
34
- <export-excel :data="$parent.$parent.getCondition"
35
- :field="$parent.$parent.getfield"
36
- sqlurl="rs/logic/applyExportfile"
37
- sql-name="supervisory3"
38
- template-name='报建记录信息导出'
39
- :choose-col="true"></export-excel>
40
- <!-- <button class="button_search button_spacing width-60" @click="search(),$parent.$parent.close()" v-el:cx>查询</button>-->
41
- <div
42
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
43
- @click="$parent.$parent.hidden()"
44
- class="button_spacing"
45
- style="float: right">
46
- </div>
47
- </div>
48
- </div>
49
- <div class="row" v-show="$parent.$parent.criteriaShow">
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="u.f_residential_area = '{}'"
56
- :value.sync="model.f_residential_area"
57
- :options='$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">用户地址:</label>
64
- <input type="text" class="input_search" placeholder='用户地址' v-model="model.f_address"
65
- v-on:keyup.enter="search"
66
- condition="f_address like '%{}%'">
67
- </div>
68
- <div class="form-group col-sm-3">
69
- <label class="font_normal_body">票&emsp;&emsp;号:</label>
70
- <input type="text" class="input_search" placeholder='票号' v-model="model.f_ticket_number"
71
- v-on:keyup.enter="search"
72
- condition="c.f_ticket_number like '%{}%'">
73
- </div>
74
- <div class="form-group col-sm-3">
75
- <label class="font_normal_body">合同编号:</label>
76
- <input type="text" class="input_search" placeholder='合同编号' v-model="model.f_contract_number"
77
- v-on:keyup.enter="search"
78
- condition="f_contract_number like '%{}%'">
79
- </div>
80
- <div class="col-sm-3 form-group">
81
- <label class="font_normal_body">报建类型:</label>
82
- <v-select
83
- v-model="model.f_apply_type"
84
- placeholder='报建类型'
85
- condition="f_apply_type like '%{}%'"
86
- :value.sync="model.f_apply_type"
87
- :options='$parent.$parent.applytype'
88
- class="select select_list"
89
- :value-single="true"
90
- close-on-select ></v-select>
91
- </div>
92
- <div class="col-sm-3 form-group">
93
- <label class="font_normal_body">办理环节:</label>
94
- <v-select
95
- v-model="model.defname"
96
- placeholder='办理环节'
97
- condition="defname = '{}'"
98
- :value.sync="model.defname"
99
- :options='$parent.$parent.defnames'
100
- class="select select_list"
101
- :value-single="true"
102
- close-on-select ></v-select>
103
- </div>
104
- <div class="form-group col-sm-3">
105
- <label for="startDate" class="font_normal_body">开始时间:</label>
106
- <datepicker id="startDate" placeholder="开始日期"
107
- style="width: 60%!important;"
108
- v-model="model.startDate"
109
- :value.sync="model.startDate"
110
- :format="'yyyy-MM-dd 00:00:00'"
111
- :show-reset-button="true"
112
- condition="f_apply_date >= '{}'">
113
- </datepicker>
114
- </div>
115
- <div class="form-group col-sm-3">
116
- <label for="endDate" class="font_normal_body">结束时间:</label>
117
- <datepicker id="endDate" placeholder="结束日期"
118
- style="width: 60%!important;"
119
- v-model="model.endDate"
120
- :value.sync="model.endDate"
121
- :format="'yyyy-MM-dd 23:59:59'"
122
- :show-reset-button="true"
123
- condition="f_apply_date <= '{}'">
124
- </datepicker>
125
- </div>
126
- </div>
127
- </div>
128
- </criteria>
129
- <data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy">
130
- <template partial='head'>
131
- <tr>
132
- <th>序号</th>
133
- <th>报建编号</th>
134
- <th>当前状态</th>
135
- <th>合计收费</th>
136
- <th>客户名称/联系人</th>
137
- <th>合同编号</th>
138
- <th>电话</th>
139
- <th>地址</th>
140
- <th>流程状态</th>
141
- <th>报建类型</th>
142
- <th>报建日期</th>
143
- </tr>
144
- </template>
145
- <template partial='body'>
146
- <tr>
147
- <td style="text-align: center;">
148
- <nobr>{{$index+1}}</nobr>
149
- </td>
150
- <td style="text-align: center;">
151
- <nobr><font>{{row.f_apply_num}}</font></nobr>
152
- </td>
153
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
154
- <nobr>{{row.f_sub_state}}</nobr>
155
- </td>
156
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
157
- <nobr>{{row.money}}</nobr>
158
- </td>
159
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
160
- <nobr>{{row.f_user_name}}/{{row.f_contact}}</nobr>
161
- </td>
162
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
163
- <nobr>{{row.f_contract_number}}</nobr>
164
- </td>
165
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
166
- <nobr>{{row.f_phone}}</nobr>
167
- </td>
168
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
169
- <nobr>{{row.f_address}}</nobr>
170
- </td>
171
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
172
- <nobr>{{row.defname}}</nobr>
173
- </td>
174
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
175
- <nobr>{{row.f_apply_type}}</nobr>
176
- </td>
177
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
178
- <nobr>{{row.f_apply_date}}</nobr>
179
- </td>
180
- </tr>
181
- </template>
182
- </data-grid>
183
- </criteria-paged>
184
- </div>
185
- </template>
186
- <script>
187
- import {PagedList} from 'vue-client'
188
- import getNowDate from '../../getNowDate.js'
189
- import {HttpResetClass} from 'vue-client'
190
-
191
- export default {
192
- title: '勘探详情',
193
- data() {
194
- return {
195
- applytype: [{label:"全部",value:''}, {label:"集中报建",value:'集中报建'}, {label:"非民用报建",value:'非民用报建'},{label:"散户报建",value:'散户报建'}],
196
- model: new PagedList('rs/sql/supervisory3', 20, {
197
- data: {
198
- id: `${this.$login.f.name}`,
199
- org: `${this.$login.f.orgs}`
200
- }
201
- }),
202
- defnames:[], // 所有流程节点
203
- condition: '', // 查询条件
204
- criteriaShow: false,
205
- area:[],
206
- getfield: {
207
- 'f_apply_num': ' 报 建 编 号 ',
208
- 'defname': ' 当 前 环 节 ',
209
- 'f_sub_state': ' 流 程 状 态 ',
210
- 'f_user_name': ' 客 户 名 称 ',
211
- 'f_contact': ' 联 系 人 ',
212
- 'f_contract_number': ' 合 同 编 号 ',
213
- 'f_phone': ' 电 话 ',
214
- 'f_address': ' 地 址 ',
215
- 'f_apply_type': ' 报 建 类 型 ',
216
- 'f_apply_date': ' 报 建 日 期 ',
217
- 'money': ' 缴纳总金额 ',
218
- 'f_households_sum': ' 报建户数 '
219
- }
220
- }
221
- },
222
- async ready() {
223
- // 调用查询
224
- this.$refs.cp.$refs.cri.search()
225
- // 获取所有办理环节
226
- this.getDefnames()
227
- this.getAreaAll()
228
- },
229
- events: {
230
- },
231
- methods: {
232
- clear () {
233
- Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
234
- this.$refs.cp.$refs.cri.model[key] = ''
235
- })
236
- },
237
- hidden() {
238
- this.$dispatch('hidden', this.criteriaShow)
239
- this.criteriaShow = !this.criteriaShow
240
- },
241
- // 获取所有办理环节
242
- getDefnames() {
243
- let http = new HttpResetClass()
244
- http.load('POST', 'rs/logic/getAllDefname', {}, {
245
- resolveMsg: null,
246
- rejectMsg: null
247
- }).then((res) => {
248
- this.defnames = [{label: '全部', value: ''}, ...res.data]
249
- })
250
- },
251
- async getAreaAll () {
252
- let http = new HttpResetClass()
253
- let condition = "f_filialeid = " + this.$login.f.orgid
254
- let res = await http.load('POST','rs/logic/apply_queryArea',{data:{condition:condition}}, {resolveMsg: null, rejectMsg: null})
255
-
256
- this.area = res.data.queryArea.map(item => {
257
- return {
258
- 'label': item.f_residential_area,
259
- 'value': item.f_residential_area,
260
- }
261
- })
262
- },
263
- check(val) {
264
- this.$dispatch('apply', val)
265
- },
266
- close() {
267
- this.$dispatch('close')
268
- }
269
- },
270
- computed: {
271
- projectType() {
272
- return this.$appdata.getParam("工程类型")
273
- },
274
- getCondition () {
275
- console.log("condition",this.$refs.cp.$refs.cri.condition)
276
- return {
277
- condition: this.$refs.cp.$refs.cri.condition,
278
- data: {
279
- org: `${this.$login.f.orgs}`,
280
- orgid: this.$login.f.orgid
281
- }
282
- }
283
- }
284
- }
285
- }
286
- </script>
287
- <style scoped>
288
-
289
- .operate{
290
- text-align: right;
291
- display: flex;
292
- align-items: center; /*子元素中线居中*/
293
- justify-content: flex-end; /*子元素靠右*/
294
- margin-top: 7px;
295
- }
296
- .head-but{
297
- margin-left: 5px;
298
- height: 34px;
299
- background-color: #6aa6e2;
300
- border-radius: 4px;
301
- font-family: PingFang;
302
- color: #ffffff;
303
- }
304
- </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-3">
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_apply_num"
15
+ v-on:keyup.enter="search"
16
+ condition="u.f_apply_num like '%{}%'">
17
+ </div>
18
+ <div class="form-group col-sm-3">
19
+ <label class="font_normal_body">工程类型:</label>
20
+ <v-select
21
+ v-model="model.f_project_type"
22
+ placeholder='请选择'
23
+ condition="u.f_project_type like '%{}%'"
24
+ :value.sync="model.f_project_type"
25
+ :options='$parent.$parent.projectType'
26
+ class="select select_list"
27
+ :value-single="true"
28
+ close-on-select ></v-select>
29
+ </div>
30
+
31
+ <div class="form-group col-sm-3 button-range">
32
+ <button type="button" class="btn btn-info head-but" @click="search(),$parent.$parent.close()" v-el:cx>查询</button>
33
+ <button type="button" class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
34
+ <export-excel :data="$parent.$parent.getCondition"
35
+ :field="$parent.$parent.getfield"
36
+ sqlurl="rs/logic/applyExportfile"
37
+ sql-name="supervisory3"
38
+ template-name='报建记录信息导出'
39
+ :choose-col="true"></export-excel>
40
+ <!-- <button class="button_search button_spacing width-60" @click="search(),$parent.$parent.close()" v-el:cx>查询</button>-->
41
+ <div
42
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
43
+ @click="$parent.$parent.hidden()"
44
+ class="button_spacing"
45
+ style="float: right">
46
+ </div>
47
+ </div>
48
+ </div>
49
+ <div class="row" v-show="$parent.$parent.criteriaShow">
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="u.f_residential_area = '{}'"
56
+ :value.sync="model.f_residential_area"
57
+ :options='$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">用户地址:</label>
64
+ <input type="text" class="input_search" placeholder='用户地址' v-model="model.f_address"
65
+ v-on:keyup.enter="search"
66
+ condition="f_address like '%{}%'">
67
+ </div>
68
+ <div class="form-group col-sm-3">
69
+ <label class="font_normal_body">票&emsp;&emsp;号:</label>
70
+ <input type="text" class="input_search" placeholder='票号' v-model="model.f_ticket_number"
71
+ v-on:keyup.enter="search"
72
+ condition="c.f_ticket_number like '%{}%'">
73
+ </div>
74
+ <div class="form-group col-sm-3">
75
+ <label class="font_normal_body">合同编号:</label>
76
+ <input type="text" class="input_search" placeholder='合同编号' v-model="model.f_contract_number"
77
+ v-on:keyup.enter="search"
78
+ condition="f_contract_number like '%{}%'">
79
+ </div>
80
+ <div class="col-sm-3 form-group">
81
+ <label class="font_normal_body">报建类型:</label>
82
+ <v-select
83
+ v-model="model.f_apply_type"
84
+ placeholder='报建类型'
85
+ condition="f_apply_type like '%{}%'"
86
+ :value.sync="model.f_apply_type"
87
+ :options='$parent.$parent.applytype'
88
+ class="select select_list"
89
+ :value-single="true"
90
+ close-on-select ></v-select>
91
+ </div>
92
+ <div class="col-sm-3 form-group">
93
+ <label class="font_normal_body">办理环节:</label>
94
+ <v-select
95
+ v-model="model.defname"
96
+ placeholder='办理环节'
97
+ condition="defname = '{}'"
98
+ :value.sync="model.defname"
99
+ :options='$parent.$parent.defnames'
100
+ class="select select_list"
101
+ :value-single="true"
102
+ close-on-select ></v-select>
103
+ </div>
104
+ <div class="form-group col-sm-3">
105
+ <label for="startDate" class="font_normal_body">开始时间:</label>
106
+ <datepicker id="startDate" placeholder="开始日期"
107
+ style="width: 60%!important;"
108
+ v-model="model.startDate"
109
+ :value.sync="model.startDate"
110
+ :format="'yyyy-MM-dd 00:00:00'"
111
+ :show-reset-button="true"
112
+ condition="f_apply_date >= '{}'">
113
+ </datepicker>
114
+ </div>
115
+ <div class="form-group col-sm-3">
116
+ <label for="endDate" class="font_normal_body">结束时间:</label>
117
+ <datepicker id="endDate" placeholder="结束日期"
118
+ style="width: 60%!important;"
119
+ v-model="model.endDate"
120
+ :value.sync="model.endDate"
121
+ :format="'yyyy-MM-dd 23:59:59'"
122
+ :show-reset-button="true"
123
+ condition="f_apply_date <= '{}'">
124
+ </datepicker>
125
+ </div>
126
+ <div class="form-group col-sm-3">
127
+ <label for="endDate" class="font_normal_body">收费日期:</label>
128
+ <datepicker id="f_charge_date" placeholder="收费日期"
129
+ style="width: 60%!important;"
130
+ v-model="model.f_charge_date"
131
+ :value.sync="model.f_charge_date"
132
+ :format="'yyyy-MM-dd'"
133
+ :show-reset-button="true"
134
+ condition="c.f_charge_date <= '{} 23:59:59' and c.f_charge_date >= '{} 00:00:00'">
135
+ </datepicker>
136
+ </div>
137
+ </div>
138
+ </div>
139
+ </criteria>
140
+ <data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy">
141
+ <template partial='head'>
142
+ <tr>
143
+ <th>序号</th>
144
+ <th>报建编号</th>
145
+ <th>当前状态</th>
146
+ <th>合计收费</th>
147
+ <th>客户名称/联系人</th>
148
+ <th>合同编号</th>
149
+ <th>电话</th>
150
+ <th>地址</th>
151
+ <th>流程状态</th>
152
+ <th>报建类型</th>
153
+ <th>报建日期</th>
154
+ </tr>
155
+ </template>
156
+ <template partial='body'>
157
+ <tr>
158
+ <td style="text-align: center;">
159
+ <nobr>{{$index+1}}</nobr>
160
+ </td>
161
+ <td style="text-align: center;">
162
+ <nobr><font>{{row.f_apply_num}}</font></nobr>
163
+ </td>
164
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
165
+ <nobr>{{row.f_sub_state}}</nobr>
166
+ </td>
167
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
168
+ <nobr>{{row.money}}</nobr>
169
+ </td>
170
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
171
+ <nobr>{{row.f_user_name}}/{{row.f_contact}}</nobr>
172
+ </td>
173
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
174
+ <nobr>{{row.f_contract_number}}</nobr>
175
+ </td>
176
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
177
+ <nobr>{{row.f_phone}}</nobr>
178
+ </td>
179
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
180
+ <nobr>{{row.f_address}}</nobr>
181
+ </td>
182
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
183
+ <nobr>{{row.defname}}</nobr>
184
+ </td>
185
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
186
+ <nobr>{{row.f_apply_type}}</nobr>
187
+ </td>
188
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
189
+ <nobr>{{row.f_apply_date}}</nobr>
190
+ </td>
191
+ </tr>
192
+ </template>
193
+ </data-grid>
194
+ </criteria-paged>
195
+ </div>
196
+ </template>
197
+ <script>
198
+ import {PagedList} from 'vue-client'
199
+ import getNowDate from '../../getNowDate.js'
200
+ import {HttpResetClass} from 'vue-client'
201
+
202
+ export default {
203
+ title: '勘探详情',
204
+ data() {
205
+ return {
206
+ applytype: [{label:"全部",value:''}, {label:"集中报建",value:'集中报建'}, {label:"非民用报建",value:'非民用报建'},{label:"散户报建",value:'散户报建'}],
207
+ model: new PagedList('rs/sql/supervisory3', 20, {
208
+ data: {
209
+ id: `${this.$login.f.name}`,
210
+ org: `${this.$login.f.orgs}`
211
+ }
212
+ }),
213
+ defnames:[], // 所有流程节点
214
+ condition: '', // 查询条件
215
+ criteriaShow: false,
216
+ area:[],
217
+ getfield: {
218
+ 'f_apply_num': ' 报 建 编 号 ',
219
+ 'defname': ' 当 前 环 节 ',
220
+ 'f_sub_state': ' 流 程 状 态 ',
221
+ 'f_user_name': ' 客 户 名 称 ',
222
+ 'f_contact': ' 联 系 人 ',
223
+ 'f_contract_number': ' 合 同 编 号 ',
224
+ 'f_phone': ' 电 话 ',
225
+ 'f_address': ' 地 址 ',
226
+ 'f_apply_type': ' 报 建 类 型 ',
227
+ 'f_apply_date': ' 报 建 日 期 ',
228
+ 'money': ' 缴纳总金额 ',
229
+ 'f_households_sum': ' 报建户数 '
230
+ }
231
+ }
232
+ },
233
+ async ready() {
234
+ // 调用查询
235
+ this.$refs.cp.$refs.cri.search()
236
+ // 获取所有办理环节
237
+ this.getDefnames()
238
+ this.getAreaAll()
239
+ },
240
+ events: {
241
+ },
242
+ methods: {
243
+ clear () {
244
+ Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
245
+ this.$refs.cp.$refs.cri.model[key] = ''
246
+ })
247
+ },
248
+ hidden() {
249
+ this.$dispatch('hidden', this.criteriaShow)
250
+ this.criteriaShow = !this.criteriaShow
251
+ },
252
+ // 获取所有办理环节
253
+ getDefnames() {
254
+ let http = new HttpResetClass()
255
+ http.load('POST', 'rs/logic/getAllDefname', {}, {
256
+ resolveMsg: null,
257
+ rejectMsg: null
258
+ }).then((res) => {
259
+ this.defnames = [{label: '全部', value: ''}, ...res.data]
260
+ })
261
+ },
262
+ async getAreaAll () {
263
+ let http = new HttpResetClass()
264
+ let condition = "f_filialeid = " + this.$login.f.orgid
265
+ let res = await http.load('POST','rs/logic/apply_queryArea',{data:{condition:condition}}, {resolveMsg: null, rejectMsg: null})
266
+
267
+ this.area = res.data.queryArea.map(item => {
268
+ return {
269
+ 'label': item.f_residential_area,
270
+ 'value': item.f_residential_area,
271
+ }
272
+ })
273
+ },
274
+ check(val) {
275
+ this.$dispatch('apply', val)
276
+ },
277
+ close() {
278
+ this.$dispatch('close')
279
+ }
280
+ },
281
+ computed: {
282
+ projectType() {
283
+ return this.$appdata.getParam("工程类型")
284
+ },
285
+ getCondition () {
286
+ console.log("condition",this.$refs.cp.$refs.cri.condition)
287
+ return {
288
+ condition: this.$refs.cp.$refs.cri.condition,
289
+ data: {
290
+ org: `${this.$login.f.orgs}`,
291
+ orgid: this.$login.f.orgid
292
+ }
293
+ }
294
+ }
295
+ }
296
+ }
297
+ </script>
298
+ <style scoped>
299
+
300
+ .operate{
301
+ text-align: right;
302
+ display: flex;
303
+ align-items: center; /*子元素中线居中*/
304
+ justify-content: flex-end; /*子元素靠右*/
305
+ margin-top: 7px;
306
+ }
307
+ .head-but{
308
+ margin-left: 5px;
309
+ height: 34px;
310
+ background-color: #6aa6e2;
311
+ border-radius: 4px;
312
+ font-family: PingFang;
313
+ color: #ffffff;
314
+ }
315
+ </style>
@@ -104,6 +104,17 @@
104
104
  condition="f_apply_date <= '{}'">
105
105
  </datepicker>
106
106
  </div>
107
+ <div class="form-group col-sm-4">
108
+ <label for="endDate" class="font_normal_body">收费日期:</label>
109
+ <datepicker id="f_charge_date" placeholder="收费日期"
110
+ style="width: 60%!important;"
111
+ v-model="model.f_charge_date"
112
+ :value.sync="model.f_charge_date"
113
+ :format="'yyyy-MM-dd'"
114
+ :show-reset-button="true"
115
+ condition="c.f_charge_date <= '{} 23:59:59' and c.f_charge_date >= '{} 00:00:00'">
116
+ </datepicker>
117
+ </div>
107
118
  </div>
108
119
  </div>
109
120
  </criteria>
@@ -105,6 +105,17 @@
105
105
  condition="f_apply_date <= '{}'">
106
106
  </datepicker>
107
107
  </div>
108
+ <div class="form-group col-sm-3">
109
+ <label for="endDate" class="font_normal_body">收费日期:</label>
110
+ <datepicker id="f_charge_date" placeholder="收费日期"
111
+ style="width: 60%!important;"
112
+ v-model="model.f_charge_date"
113
+ :value.sync="model.f_charge_date"
114
+ :format="'yyyy-MM-dd'"
115
+ :show-reset-button="true"
116
+ condition="c.f_charge_date <= '{} 23:59:59' and c.f_charge_date >= '{} 00:00:00'">
117
+ </datepicker>
118
+ </div>
108
119
  </div>
109
120
  </div>
110
121
  </criteria>
@@ -1,168 +1,168 @@
1
- <template>
2
- <div class="basic-main">
3
- <div class="tops" v-bind:style="{ height: topheight }">
4
- <exploration-select v-ref:queryuser v-show="show"></exploration-select>
5
- </div>
6
- <div v-if="showtotal" v-bind:style="{ height: botheight, 'margin-top' : '20px'}">
7
- <tabset v-ref:tabs :close="false">
8
- <tab header='集中报装' v-if="selectdata.f_apply_type == '集中报建'" style="background-color :#f6f6f6">
9
- <record-message v-ref:record :selectdata="selectdata" :key="tittle1"
10
- :edit = "true">
11
- </record-message>
12
- </tab>
13
- <tab :header='header' style="background-color :#ffffff!important;overflow: auto;">
14
- <service-control v-ref:service :selectdata="selectdata"></service-control>
15
- </tab>
16
- <tab header='附件' style="background-color :#ffffff!important;overflow: auto;">
17
- <apply-upload v-ref:file :blodid = "selectdata.f_process_id" :isusetype = "true" :isremark = "true" :isupload = "true" :defname="selectdata.defname"></apply-upload>
18
- </tab>
19
- </tabset>
20
- </div>
21
- </div>
22
- </template>
23
- <script>
24
- import Vue from 'vue'
25
- import {HttpResetClass} from 'vue-client'
26
- export default {
27
- title: '报建流程',
28
- data () {
29
- return {
30
- show: true, // 控制列表列表
31
- showtotal: false, // 详情显示
32
- header: null, // tag 标题
33
- selectdata: {},
34
- botheight: '0%', // 详情信息显示高度
35
- topheight: '100%', // 列表显示高度
36
- xmlname: '' // 配置文件名
37
- }
38
- },
39
- created () {
40
- },
41
- methods: {
42
- // 获取页面配置json文件
43
- async loadName () {
44
- let http = new HttpResetClass()
45
- let xmldata = {
46
- data: this.$login.f,
47
- workname: this.xmlname
48
- }
49
- let res = await http.load('POST', 'rs/logic/ApplyGetConfigs', {data: xmldata}, {resolveMsg: null, rejectMsg: null})
50
-
51
- if (res.data.code && res.data.code === 200) {
52
- Vue.prototype.$workflow_vue = res.data.workflow_vue
53
- } else {
54
- this.$showMessage('获取报建配置失败,原因:' + res.data.msg)
55
- return
56
- }
57
- },
58
- async getProcessId() {
59
- let http = new HttpResetClass()
60
- let data = {
61
- workname: this.xmlname
62
- }
63
- let res = await http.load('POST', 'rs/logic/getProcessId', {data: data}, {resolveMsg: null, rejectMsg: null})
64
-
65
- this.selectdata.f_process_id = res.data
66
- }
67
- },
68
- events: {
69
- 'onMessage' (data) {
70
- console.log('接收消息')
71
- console.log(data)
72
- if (data.type === 'apply-task') {
73
- this.$refs.queryuser.$refs.cp.$refs.cri.search()
74
- }
75
- },
76
- // 刷新控制层
77
- async 'breakControl' (servicedata) {
78
-
79
- if (servicedata.id) {
80
- let data = {
81
- condition: `u.id = ${servicedata.id}`,
82
- data: {
83
- id: this.$login.f.id,
84
- org: this.$login.f.orgs
85
- }
86
- }
87
- let res = await this.$resetpost(
88
- 'rs/sql/checkuser',
89
- {data: data},
90
- {resolveMsg: null, rejectMsg: '数据更新失败,请手查询更新!!!'}
91
- )
92
-
93
- this.selectdata = res.data[0]
94
- } else {
95
- this.selectdata = servicedata
96
- }
97
-
98
- this.showtotal = false
99
- this.$nextTick(() => {
100
- this.showtotal = true
101
- })
102
-
103
- },
104
- // 初始化
105
- async 'apply' (val) {
106
- this.selectdata = val
107
-
108
- if (this.selectdata.f_apply_type === '集中报建') {
109
- this.xmlname = '集中报建流程'
110
- } else if (this.selectdata.f_apply_type === '散户报建') {
111
- this.xmlname = '散户报建流程'
112
- } else if (this.selectdata.f_apply_type === '非民用报建') {
113
- this.xmlname = '非民用报建流程'
114
- } else {
115
- this.$showMessage('暂无此类报装')
116
- return
117
- }
118
-
119
- // 获取页面json配置文件
120
- // 次方法必须同步执行,否则后续会出问题
121
- await this.loadName()
122
-
123
- if(this.selectdata.defname === this.$workflow_vue.start_activity) {
124
- // 获取流程id
125
- await this.getProcessId()
126
- }
127
- // 显示详细
128
- this.showtotal = true
129
- this.topheight = '10%'
130
- this.botheight = '90%'
131
- // 列表显示当前数据
132
- this.$refs.queryuser.$refs.cp.$refs.grid.model.rows = [this.selectdata]
133
- // 关闭分页
134
- this.$refs.queryuser.$refs.cp.pager = false
135
-
136
- // tab标题
137
- this.header = this.selectdata.defname
138
- },
139
- // 关闭详情页等
140
- 'close' () {
141
- this.showtotal = false
142
- this.topheight = '100%'
143
- this.botheight = '0%'
144
- this.$refs.queryuser.$refs.cp.pager = true
145
- this.$refs.queryuser.$refs.cp.$refs.cri.search()
146
- },
147
- 'hidden' (criteriaShow) {
148
- if (!this.showtotal && !criteriaShow) {
149
-
150
- }
151
- if (!this.showtotal && criteriaShow) {
152
-
153
- }
154
- if (this.showtotal && !criteriaShow) {
155
- this.topheight = '20%'
156
- this.botheight = '80%'
157
- }
158
- if (this.showtotal && criteriaShow) {
159
- this.topheight = '10%'
160
- this.botheight = '90%'
161
- }
162
-
163
- }
164
- },
165
- watch: {
166
- }
167
- }
168
- </script>
1
+ <template>
2
+ <div class="basic-main">
3
+ <div class="tops" v-bind:style="{ height: topheight }">
4
+ <exploration-select v-ref:queryuser v-show="show"></exploration-select>
5
+ </div>
6
+ <div v-if="showtotal" v-bind:style="{ height: botheight, 'margin-top' : '20px'}">
7
+ <tabset v-ref:tabs :close="false">
8
+ <tab header='集中报装' v-if="selectdata.f_apply_type == '集中报建'" style="background-color :#f6f6f6">
9
+ <record-message v-ref:record :selectdata="selectdata" :key="tittle1"
10
+ :edit = "true">
11
+ </record-message>
12
+ </tab>
13
+ <tab :header='header' style="background-color :#ffffff!important;overflow: auto;">
14
+ <service-control v-ref:service :selectdata="selectdata"></service-control>
15
+ </tab>
16
+ <tab header='附件' style="background-color :#ffffff!important;overflow: auto;">
17
+ <apply-upload v-ref:file :blodid = "selectdata.f_process_id" :isusetype = "true" :isdelete = "true" :isremark = "true" :isupload = "true" :defname="selectdata.defname"></apply-upload>
18
+ </tab>
19
+ </tabset>
20
+ </div>
21
+ </div>
22
+ </template>
23
+ <script>
24
+ import Vue from 'vue'
25
+ import {HttpResetClass} from 'vue-client'
26
+ export default {
27
+ title: '报建流程',
28
+ data () {
29
+ return {
30
+ show: true, // 控制列表列表
31
+ showtotal: false, // 详情显示
32
+ header: null, // tag 标题
33
+ selectdata: {},
34
+ botheight: '0%', // 详情信息显示高度
35
+ topheight: '100%', // 列表显示高度
36
+ xmlname: '' // 配置文件名
37
+ }
38
+ },
39
+ created () {
40
+ },
41
+ methods: {
42
+ // 获取页面配置json文件
43
+ async loadName () {
44
+ let http = new HttpResetClass()
45
+ let xmldata = {
46
+ data: this.$login.f,
47
+ workname: this.xmlname
48
+ }
49
+ let res = await http.load('POST', 'rs/logic/ApplyGetConfigs', {data: xmldata}, {resolveMsg: null, rejectMsg: null})
50
+
51
+ if (res.data.code && res.data.code === 200) {
52
+ Vue.prototype.$workflow_vue = res.data.workflow_vue
53
+ } else {
54
+ this.$showMessage('获取报建配置失败,原因:' + res.data.msg)
55
+ return
56
+ }
57
+ },
58
+ async getProcessId() {
59
+ let http = new HttpResetClass()
60
+ let data = {
61
+ workname: this.xmlname
62
+ }
63
+ let res = await http.load('POST', 'rs/logic/getProcessId', {data: data}, {resolveMsg: null, rejectMsg: null})
64
+
65
+ this.selectdata.f_process_id = res.data
66
+ }
67
+ },
68
+ events: {
69
+ 'onMessage' (data) {
70
+ console.log('接收消息')
71
+ console.log(data)
72
+ if (data.type === 'apply-task') {
73
+ this.$refs.queryuser.$refs.cp.$refs.cri.search()
74
+ }
75
+ },
76
+ // 刷新控制层
77
+ async 'breakControl' (servicedata) {
78
+
79
+ if (servicedata.id) {
80
+ let data = {
81
+ condition: `u.id = ${servicedata.id}`,
82
+ data: {
83
+ id: this.$login.f.id,
84
+ org: this.$login.f.orgs
85
+ }
86
+ }
87
+ let res = await this.$resetpost(
88
+ 'rs/sql/checkuser',
89
+ {data: data},
90
+ {resolveMsg: null, rejectMsg: '数据更新失败,请手查询更新!!!'}
91
+ )
92
+
93
+ this.selectdata = res.data[0]
94
+ } else {
95
+ this.selectdata = servicedata
96
+ }
97
+
98
+ this.showtotal = false
99
+ this.$nextTick(() => {
100
+ this.showtotal = true
101
+ })
102
+
103
+ },
104
+ // 初始化
105
+ async 'apply' (val) {
106
+ this.selectdata = val
107
+
108
+ if (this.selectdata.f_apply_type === '集中报建') {
109
+ this.xmlname = '集中报建流程'
110
+ } else if (this.selectdata.f_apply_type === '散户报建') {
111
+ this.xmlname = '散户报建流程'
112
+ } else if (this.selectdata.f_apply_type === '非民用报建') {
113
+ this.xmlname = '非民用报建流程'
114
+ } else {
115
+ this.$showMessage('暂无此类报装')
116
+ return
117
+ }
118
+
119
+ // 获取页面json配置文件
120
+ // 次方法必须同步执行,否则后续会出问题
121
+ await this.loadName()
122
+
123
+ if(this.selectdata.defname === this.$workflow_vue.start_activity) {
124
+ // 获取流程id
125
+ await this.getProcessId()
126
+ }
127
+ // 显示详细
128
+ this.showtotal = true
129
+ this.topheight = '10%'
130
+ this.botheight = '90%'
131
+ // 列表显示当前数据
132
+ this.$refs.queryuser.$refs.cp.$refs.grid.model.rows = [this.selectdata]
133
+ // 关闭分页
134
+ this.$refs.queryuser.$refs.cp.pager = false
135
+
136
+ // tab标题
137
+ this.header = this.selectdata.defname
138
+ },
139
+ // 关闭详情页等
140
+ 'close' () {
141
+ this.showtotal = false
142
+ this.topheight = '100%'
143
+ this.botheight = '0%'
144
+ this.$refs.queryuser.$refs.cp.pager = true
145
+ this.$refs.queryuser.$refs.cp.$refs.cri.search()
146
+ },
147
+ 'hidden' (criteriaShow) {
148
+ if (!this.showtotal && !criteriaShow) {
149
+
150
+ }
151
+ if (!this.showtotal && criteriaShow) {
152
+
153
+ }
154
+ if (this.showtotal && !criteriaShow) {
155
+ this.topheight = '20%'
156
+ this.botheight = '80%'
157
+ }
158
+ if (this.showtotal && criteriaShow) {
159
+ this.topheight = '10%'
160
+ this.botheight = '90%'
161
+ }
162
+
163
+ }
164
+ },
165
+ watch: {
166
+ }
167
+ }
168
+ </script>
@@ -524,6 +524,52 @@
524
524
  }
525
525
  }
526
526
  },
527
+ getTotalCost(){
528
+ if (this.selectdata.defname === '结算') {
529
+ for (let i = 0; i < this.show_data.fields.length; i++) {
530
+ if (this.show_data.fields[i].label === '低压工程款') {
531
+ this.show_data.f_project_money_down = Number(this.show_data.fields[i].value)
532
+ console.log("测试1", this.show_data.f_project_money_down)
533
+ } else if (this.show_data.fields[i].label === '中压工程款') {
534
+ this.show_data.f_project_money_up = Number(this.show_data.fields[i].value)
535
+ console.log("测试2", this.show_data.f_project_money_up)
536
+ } else if (this.show_data.fields[i].label === '低压材料款') {
537
+ this.show_data.f_material_money_down = Number(this.show_data.fields[i].value)
538
+ console.log("测试3", this.show_data.f_material_money_down)
539
+ } else if (this.show_data.fields[i].label === '中压材料款') {
540
+ this.show_data.f_material_money_up = Number(this.show_data.fields[i].value)
541
+ console.log("测试4", this.show_data.f_material_money_up)
542
+ } else if (this.show_data.fields[i].label === '支付结算') {
543
+ console.log("测试5", this.show_data.f_payment_settlement)
544
+ if ((this.show_data.f_project_money_down + this.show_data.f_project_money_up) > 0) {
545
+ this.show_data.fields[i].value = this.show_data.f_project_money_down + this.show_data.f_project_money_up
546
+ }
547
+ this.show_data.f_payment_settlement = Number(this.show_data.fields[i].value)
548
+ } else if (this.show_data.fields[i].label === '支付材料') {
549
+ console.log("测试6", (this.show_data.f_material_money_down + this.show_data.f_material_money_up))
550
+ if ((this.show_data.f_material_money_down + this.show_data.f_material_money_up) > 0) {
551
+ console.log("测试6", (this.show_data.f_material_money_down + this.show_data.f_material_money_up))
552
+ this.show_data.fields[i].value = this.show_data.f_material_money_down + this.show_data.f_material_money_up
553
+ }
554
+ this.show_data.f_payment_material = Number(this.show_data.fields[i].value)
555
+ } else if (this.show_data.fields[i].label === '总成本') {
556
+ if ((this.show_data.f_payment_material + this.show_data.f_payment_settlement) > 0) {
557
+ console.log("测试7")
558
+ this.show_data.fields[i].value = this.show_data.f_payment_material + this.show_data.f_payment_settlement
559
+ }
560
+ this.show_data.f_total_cost = this.show_data.fields[i].value
561
+ } else if (this.show_data.fields[i].label === '毛利') {
562
+ if (this.show_data.f_total_cost > 0) {
563
+ console.log("测试8")
564
+ let number = parseFloat((this.selectdata.f_contract_money - this.show_data.f_total_cost) / this.selectdata.f_contract_money).toFixed(5)
565
+ let realVal = number.substring(0, number.length - 1)
566
+ this.show_data.fields[i].value =(realVal * 100).toFixed(2)+"%"
567
+ }
568
+ }
569
+ }
570
+ console.log("测试", this.show_data)
571
+ }
572
+ },
527
573
  an_kang_yi_hua () {
528
574
  //===================安康逸华前端特殊逻辑===========================
529
575
  let swap1 = null // 小区名称转换
@@ -896,6 +942,7 @@
896
942
  this.an_kang_yi_hua()
897
943
  this.getGasMeter1()
898
944
  this.getGasPrice()
945
+ this.getTotalCost()
899
946
 
900
947
 
901
948
  // 合成地址
@@ -124,7 +124,7 @@
124
124
  <nobr><font>{{row.f_ticket_number}}</font></nobr>
125
125
  </td>
126
126
  <td style="text-align: center;">
127
- <nobr><font>{{row.f_operation_date}}</font></nobr>
127
+ <nobr><font>{{row.f_charge_date}}</font></nobr>
128
128
  </td>
129
129
  <td style="text-align: center;">
130
130
  <nobr><font>{{row.f_operator}}</font></nobr>
@@ -981,8 +981,10 @@
981
981
  this.selectdata = val
982
982
  },
983
983
  async load() {
984
- if (!this.selectdata)
984
+ if (!this.selectdata || !this.selectdata.f_process_id){
985
985
  return
986
+ }
987
+ console.log("当前数据",!this.selectdata.f_process_id)
986
988
  let data = {
987
989
  f_process_id: this.selectdata.f_process_id
988
990
  }
@@ -123,6 +123,17 @@
123
123
  condition="f_apply_date <= '{}'">
124
124
  </datepicker>
125
125
  </div>
126
+ <div class="form-group col-sm-3">
127
+ <label for="endDate" class="font_normal_body">收费日期:</label>
128
+ <datepicker id="f_charge_date" placeholder="收费日期"
129
+ style="width: 60%!important;"
130
+ v-model="model.f_charge_date"
131
+ :value.sync="model.f_charge_date"
132
+ :format="'yyyy-MM-dd'"
133
+ :show-reset-button="true"
134
+ condition="c.f_charge_date <= '{} 23:59:59' and c.f_charge_date >= '{} 00:00:00'">
135
+ </datepicker>
136
+ </div>
126
137
  </div>
127
138
  </div>
128
139
  </criteria>
@@ -122,6 +122,17 @@
122
122
  condition="f_apply_date <= '{}'">
123
123
  </datepicker>
124
124
  </div>
125
+ <div class="form-group col-sm-3">
126
+ <label for="endDate" class="font_normal_body">收费日期:</label>
127
+ <datepicker id="f_charge_date" placeholder="收费日期"
128
+ style="width: 60%!important;"
129
+ v-model="model.f_charge_date"
130
+ :value.sync="model.f_charge_date"
131
+ :format="'yyyy-MM-dd'"
132
+ :show-reset-button="true"
133
+ condition="c.f_charge_date <= '{} 23:59:59' and c.f_charge_date >= '{} 00:00:00'">
134
+ </datepicker>
135
+ </div>
125
136
  </div>
126
137
  </div>
127
138
  </criteria>