apply-clients 3.4.85 → 3.4.88
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 +1 -1
- package/src/filiale/hongda/android/AppAddMaterialScience.vue +25 -13
- package/src/filiale/hongda/android/AppExplorationUser.vue +1 -1
- package/src/filiale/hongda/android/AppInstallationDetails.vue +494 -0
- package/src/filiale/hongda/android.js +2 -1
- package/src/filiale/hongda/pc/ApplyChargeList.vue +475 -0
- package/src/filiale/hongda/pc/ServiceView.vue +1 -2
- package/src/filiale/hongda/pc/addMaterialScience.vue +29 -7
- package/src/filiale/hongda/pc/chargeManagement.vue +8 -16
- package/src/filiale/hongda/pc/printChargepc.vue +5 -4
- package/src/filiale/hongda/pc/printactivatecard.vue +18 -5
- package/src/filiale/hongda/pc/printinstall.vue +2 -2
- package/src/filiale/hongda/pc.js +2 -1
- package/src/filiale/shexian/pc/SupervisoryServiceControl.vue +902 -0
- package/src/filiale/shexian/pc/chargeManagement.vue +654 -0
- package/src/filiale/shexian/pc.js +11 -9
|
@@ -0,0 +1,475 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<criteria-paged :model="model" v-ref:cp>
|
|
3
|
+
<criteria partial='criteria' @condition-changed='$parent.searchCondition' v-ref:cri>
|
|
4
|
+
<div class="form-horizontal select-overspread container-fluid auto" partial>
|
|
5
|
+
<div class="row">
|
|
6
|
+
<div class="form-group col-sm-3">
|
|
7
|
+
<label class="font_normal_body">组织机构:</label>
|
|
8
|
+
<res-select
|
|
9
|
+
restype='organization'
|
|
10
|
+
:initresid='$parent.$parent.curorgid'
|
|
11
|
+
@res-select="$parent.$parent.getorg"
|
|
12
|
+
:is-mul="false"
|
|
13
|
+
></res-select>
|
|
14
|
+
</div>
|
|
15
|
+
<div class="form-group col-sm-3">
|
|
16
|
+
<label for="startDate" class="font_normal_body">开始时间:</label>
|
|
17
|
+
<datepicker id="startDate" placeholder="开始日期"
|
|
18
|
+
style="width: 60%!important;"
|
|
19
|
+
v-model="model.startDate"
|
|
20
|
+
:value.sync="model.startDate"
|
|
21
|
+
:format="'yyyy-MM-dd 00:00:00'"
|
|
22
|
+
:show-reset-button="true"
|
|
23
|
+
condition="cr.f_charge_date >= '{}'">
|
|
24
|
+
</datepicker>
|
|
25
|
+
</div>
|
|
26
|
+
<div class="form-group col-sm-3">
|
|
27
|
+
<label for="endDate" class="font_normal_body">结束时间:</label>
|
|
28
|
+
<datepicker id="endDate" placeholder="结束日期"
|
|
29
|
+
style="width: 60%!important;"
|
|
30
|
+
v-model="model.endDate"
|
|
31
|
+
:value.sync="model.endDate"
|
|
32
|
+
:format="'yyyy-MM-dd 23:59:59'"
|
|
33
|
+
:show-reset-button="true"
|
|
34
|
+
condition="cr.f_charge_date <= '{}'">
|
|
35
|
+
</datepicker>
|
|
36
|
+
</div>
|
|
37
|
+
<div class="form-group col-sm-3 button-range">
|
|
38
|
+
<button class="button_search button_spacing" @click="$parent.$parent.search()" v-el:cx>查询</button>
|
|
39
|
+
<button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
|
|
40
|
+
<export-excel :data="$parent.$parent.getCondition"
|
|
41
|
+
:field="$parent.$parent.getfield"
|
|
42
|
+
sqlurl="rs/logic/applyExportfile"
|
|
43
|
+
sql-name="getApplyCharge"
|
|
44
|
+
template-name='收费记录信息导出'
|
|
45
|
+
:choose-col="true"></export-excel>
|
|
46
|
+
<div
|
|
47
|
+
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
|
48
|
+
@click="$parent.$parent.criteriaShow = !$parent.$parent.criteriaShow"
|
|
49
|
+
class="button_spacing"
|
|
50
|
+
style="float: right">
|
|
51
|
+
</div>
|
|
52
|
+
</div>
|
|
53
|
+
</div>
|
|
54
|
+
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
55
|
+
<div class="form-group col-sm-3">
|
|
56
|
+
<label class="font_normal_body">工程编号:</label>
|
|
57
|
+
<input type="text" style="width: 60%" class="input_search" placeholder='工程编号' v-model="model.f_apply_num"
|
|
58
|
+
v-on:keyup.enter="$parent.$parent.search()"
|
|
59
|
+
condition="a.f_apply_num = '{}'">
|
|
60
|
+
</div>
|
|
61
|
+
<div class="form-group col-sm-3">
|
|
62
|
+
<label class="font_normal_body">合同编号:</label>
|
|
63
|
+
<input type="text" style="width: 60%" class="input_search" placeholder='合同编号' v-model="model.f_contract_number"
|
|
64
|
+
v-on:keyup.enter="$parent.$parent.search()"
|
|
65
|
+
condition="a.f_contract_number = '{}'">
|
|
66
|
+
</div>
|
|
67
|
+
<div class="form-group col-sm-3">
|
|
68
|
+
<label class="font_normal_body">报建类型:</label>
|
|
69
|
+
<v-select
|
|
70
|
+
v-model="model.f_apply_type"
|
|
71
|
+
placeholder='请选择'
|
|
72
|
+
condition="a.f_apply_type = '{}'"
|
|
73
|
+
:value.sync="model.f_apply_type"
|
|
74
|
+
:options='$parent.$parent.applytype'
|
|
75
|
+
class="select select_list"
|
|
76
|
+
:value-single="true"
|
|
77
|
+
@change="$parent.$parent.applyTypeChange()"
|
|
78
|
+
close-on-select ></v-select>
|
|
79
|
+
</div>
|
|
80
|
+
<!-- <div class="form-group col-sm-3">
|
|
81
|
+
<label class="font_normal_body">报建性质:</label>
|
|
82
|
+
<v-select
|
|
83
|
+
v-model="model.f_apply_nature"
|
|
84
|
+
placeholder='报建性质'
|
|
85
|
+
condition="a.f_apply_nature = '{}'"
|
|
86
|
+
:value.sync="model.f_apply_nature"
|
|
87
|
+
:options='$parent.$parent.applyNatures'
|
|
88
|
+
class="select select_list"
|
|
89
|
+
:value-single="true"
|
|
90
|
+
close-on-select ></v-select>
|
|
91
|
+
</div>-->
|
|
92
|
+
<div class="form-group col-sm-3">
|
|
93
|
+
<label class="font_normal_body">用户名称:</label>
|
|
94
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
|
|
95
|
+
v-on:keyup.enter="$parent.$parent.search()" condition="a.f_user_name like '%{}%'" placeholder='用户名称'>
|
|
96
|
+
</div>
|
|
97
|
+
<div class="form-group col-sm-3">
|
|
98
|
+
<label class="font_normal_body">用户电话:</label>
|
|
99
|
+
<input type="text" style="width:60%" class="input_search" placeholder='用户电话' v-model="model.f_phone"
|
|
100
|
+
v-on:keyup.enter="$parent.$parent.search()"
|
|
101
|
+
condition="a.f_phone like '%{}%'">
|
|
102
|
+
</div>
|
|
103
|
+
<div class="form-group col-sm-3">
|
|
104
|
+
<label class="font_normal_body">用户地址:</label>
|
|
105
|
+
<input type="text" style="width:60%" class="input_search" placeholder='用户地址' v-model="model.f_address"
|
|
106
|
+
v-on:keyup.enter="$parent.$parent.search()"
|
|
107
|
+
condition="a.f_address like '%{}%'">
|
|
108
|
+
</div>
|
|
109
|
+
<div class="form-group col-sm-3">
|
|
110
|
+
<label class="font_normal_body">身份证号:</label>
|
|
111
|
+
<input type="text" style="width:60%" class="input_search" placeholder='身份证号' v-model="model.f_idnumber"
|
|
112
|
+
v-on:keyup.enter="$parent.$parent.search()"
|
|
113
|
+
condition="a.f_idnumber like '%{}%'">
|
|
114
|
+
</div>
|
|
115
|
+
<div class="form-group col-sm-3">
|
|
116
|
+
<label class="font_normal_body">缴费编码:</label>
|
|
117
|
+
<input type="text" class="input_search" style="width: 60%" placeholder='缴费编码' v-model="model.f_charge_number"
|
|
118
|
+
v-on:keyup.enter="$parent.$parent.search()"
|
|
119
|
+
condition="cr.f_charge_number like '%{}%'">
|
|
120
|
+
</div>
|
|
121
|
+
<div class="form-group col-sm-3">
|
|
122
|
+
<label class="font_normal_body">付款方式:</label>
|
|
123
|
+
<v-select
|
|
124
|
+
v-model="model.f_payment_method"
|
|
125
|
+
placeholder='请选择'
|
|
126
|
+
condition="cr.f_payment_method = '{}'"
|
|
127
|
+
:value.sync="model.f_payment_method"
|
|
128
|
+
:options='$parent.$parent.paymentMethod'
|
|
129
|
+
class="select select_list"
|
|
130
|
+
:value-single="true"
|
|
131
|
+
close-on-select ></v-select>
|
|
132
|
+
</div>
|
|
133
|
+
<div class="form-group col-sm-3">
|
|
134
|
+
<label class="font_normal_body">收费项目:</label>
|
|
135
|
+
<v-select
|
|
136
|
+
v-model="model.f_payment_term"
|
|
137
|
+
placeholder='请选择'
|
|
138
|
+
condition="cr.f_payment_term = '{}'"
|
|
139
|
+
:value.sync="model.f_payment_term"
|
|
140
|
+
:options='$parent.$parent.paymentTerm'
|
|
141
|
+
class="select select_list"
|
|
142
|
+
:value-single="true"
|
|
143
|
+
close-on-select ></v-select>
|
|
144
|
+
</div>
|
|
145
|
+
<div class="form-group col-sm-3">
|
|
146
|
+
<label class="font_normal_body">流 水 号:</label>
|
|
147
|
+
<input type="text" style="width: 60%" class="input_search" placeholder='流水号' v-model="model.f_payer_number"
|
|
148
|
+
v-on:keyup.enter="$parent.$parent.search()"
|
|
149
|
+
condition="cr.f_payer_number = '{}'">
|
|
150
|
+
</div>
|
|
151
|
+
<div class="form-group col-sm-3">
|
|
152
|
+
<label class="font_normal_body">部  门:</label>
|
|
153
|
+
<res-select
|
|
154
|
+
restype='department'
|
|
155
|
+
:parentresid="$parent.$parent.curorgid"
|
|
156
|
+
:initresid='$parent.$parent.curdepid'
|
|
157
|
+
@res-select="$parent.$parent.getdep"
|
|
158
|
+
:is-mul="true"
|
|
159
|
+
></res-select>
|
|
160
|
+
</div>
|
|
161
|
+
<div class="form-group col-sm-3">
|
|
162
|
+
<label class="font_normal_body">人  员:</label>
|
|
163
|
+
<res-select
|
|
164
|
+
restype='user'
|
|
165
|
+
:parentresid="$parent.$parent.curdepid"
|
|
166
|
+
:initresid='$parent.$parent.curuserid'
|
|
167
|
+
@res-select="$parent.$parent.getuser"
|
|
168
|
+
:is-mul="true"></res-select>
|
|
169
|
+
</div>
|
|
170
|
+
<div class="form-group col-sm-3">
|
|
171
|
+
<label class="font_normal_body">缴费状态:</label>
|
|
172
|
+
<v-select
|
|
173
|
+
v-model="model.f_charge_status"
|
|
174
|
+
placeholder='请选择'
|
|
175
|
+
condition="cr.f_charge_status = '{}'"
|
|
176
|
+
:value.sync="model.f_charge_status"
|
|
177
|
+
:options='$parent.$parent.chargeStatus'
|
|
178
|
+
class="select select_list"
|
|
179
|
+
:value-single="true"
|
|
180
|
+
close-on-select ></v-select>
|
|
181
|
+
</div>
|
|
182
|
+
<div class="form-group col-sm-3">
|
|
183
|
+
<label class="font_normal_body">服务人:</label>
|
|
184
|
+
<v-select
|
|
185
|
+
v-model="model.f_servicer"
|
|
186
|
+
placeholder='请选择'
|
|
187
|
+
condition="a.f_servicer = '{}'"
|
|
188
|
+
:value.sync="model.f_servicer"
|
|
189
|
+
class="select select_list"
|
|
190
|
+
:options='$parent.$parent.servicerList'
|
|
191
|
+
:value-single="true"
|
|
192
|
+
close-on-select ></v-select>
|
|
193
|
+
</div>
|
|
194
|
+
<div class="form-group col-sm-3">
|
|
195
|
+
<label class="font_normal_body">报建发起人:</label>
|
|
196
|
+
<v-select
|
|
197
|
+
v-model="model.f_operator"
|
|
198
|
+
placeholder='请选择'
|
|
199
|
+
condition="a.f_operator = '{}'"
|
|
200
|
+
:value.sync="model.f_operator"
|
|
201
|
+
class="select select_list"
|
|
202
|
+
:options='$parent.$parent.operatorList'
|
|
203
|
+
:value-single="true"
|
|
204
|
+
close-on-select ></v-select>
|
|
205
|
+
</div>
|
|
206
|
+
<div class="form-group col-sm-3">
|
|
207
|
+
<label class="font_normal_body">发票号:</label>
|
|
208
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_invoice_num"
|
|
209
|
+
v-on:keyup.enter="$parent.$parent.search()" condition="f_invoice_num like '%{}%'" placeholder='发票号'>
|
|
210
|
+
</div>
|
|
211
|
+
</div>
|
|
212
|
+
</div>
|
|
213
|
+
</criteria>
|
|
214
|
+
<data-grid :model="model" partial='list' v-ref:grid style="overflow: auto" class="list_area table_sy">
|
|
215
|
+
<template partial='head'>
|
|
216
|
+
<tr>
|
|
217
|
+
<th style="white-space: nowrap;">序号</th>
|
|
218
|
+
<th style="white-space: nowrap;">工程编号</th>
|
|
219
|
+
<th style="white-space: nowrap;">合同编号</th>
|
|
220
|
+
<th style="white-space: nowrap;">报建类型</th>
|
|
221
|
+
<th style="white-space: nowrap;">发票号</th>
|
|
222
|
+
<th style="white-space: nowrap;">用户名称</th>
|
|
223
|
+
<th style="white-space: nowrap;">用户电话</th>
|
|
224
|
+
<th style="white-space: nowrap;">用户地址</th>
|
|
225
|
+
<th style="white-space: nowrap;">身份证号</th>
|
|
226
|
+
<th style="white-space: nowrap;">缴费编码</th>
|
|
227
|
+
<th style="white-space: nowrap;">收费项目</th>
|
|
228
|
+
<th style="white-space: nowrap;">收费金额(退款金额)</th>
|
|
229
|
+
<th style="white-space: nowrap;">付款方式</th>
|
|
230
|
+
<th style="white-space: nowrap;">流水号</th>
|
|
231
|
+
<th style="white-space: nowrap;">服务人</th>
|
|
232
|
+
<th style="white-space: nowrap;">报建发起人</th>
|
|
233
|
+
<th style="white-space: nowrap;">收费人员(退款人员)</th>
|
|
234
|
+
<th style="white-space: nowrap;">收费日期(退款日期)</th>
|
|
235
|
+
<th style="white-space: nowrap;">实际收费时间</th>
|
|
236
|
+
<th style="white-space: nowrap;">状态</th>
|
|
237
|
+
</tr>
|
|
238
|
+
</template>
|
|
239
|
+
<template partial='body'>
|
|
240
|
+
<tr >
|
|
241
|
+
<td style="text-align: center;">
|
|
242
|
+
<nobr><font>{{$index+1}}</font></nobr>
|
|
243
|
+
</td>
|
|
244
|
+
<td style="text-align: center;">
|
|
245
|
+
<nobr><font>{{row.f_apply_num}}</font></nobr>
|
|
246
|
+
</td>
|
|
247
|
+
<td style="text-align: center;">
|
|
248
|
+
<nobr><font>{{row.f_contract_number}}</font></nobr>
|
|
249
|
+
</td>
|
|
250
|
+
<td style="text-align: center;">
|
|
251
|
+
<nobr><font>{{row.f_apply_type}}</font></nobr>
|
|
252
|
+
</td>
|
|
253
|
+
<td style="text-align: center;">
|
|
254
|
+
<nobr><font>{{row.f_invoice_num}}</font></nobr>
|
|
255
|
+
</td>
|
|
256
|
+
<td style="text-align: center;">
|
|
257
|
+
<nobr><font>{{row.f_user_name}}</font></nobr>
|
|
258
|
+
</td>
|
|
259
|
+
<td style="text-align: center;">
|
|
260
|
+
<nobr><font>{{row.f_phone}}</font></nobr>
|
|
261
|
+
</td>
|
|
262
|
+
<td style="text-align: center;">
|
|
263
|
+
<nobr><font>{{row.f_address}}</font></nobr>
|
|
264
|
+
</td>
|
|
265
|
+
<td style="text-align: center;">
|
|
266
|
+
<nobr><font>{{row.f_idnumber}}</font></nobr>
|
|
267
|
+
</td>
|
|
268
|
+
<td style="text-align: center;">
|
|
269
|
+
<nobr><font>{{row.f_charge_number}}</font></nobr>
|
|
270
|
+
</td>
|
|
271
|
+
<td style="text-align: center;">
|
|
272
|
+
<nobr><font>{{row.f_payment_term}}</font></nobr>
|
|
273
|
+
</td>
|
|
274
|
+
<td style="text-align: center;">
|
|
275
|
+
<nobr><font>{{row.f_charge_money}}</font></nobr>
|
|
276
|
+
</td>
|
|
277
|
+
<td style="text-align: center;">
|
|
278
|
+
<nobr><font>{{row.f_payment_method}}</font></nobr>
|
|
279
|
+
</td>
|
|
280
|
+
<td style="text-align: center;">
|
|
281
|
+
<nobr><font>{{row.f_payer_number}}</font></nobr>
|
|
282
|
+
</td>
|
|
283
|
+
<td style="text-align: center;">
|
|
284
|
+
<nobr><font>{{row.f_servicer}}</font></nobr>
|
|
285
|
+
</td>
|
|
286
|
+
<td style="text-align: center;">
|
|
287
|
+
<nobr><font>{{row.f_operator}}</font></nobr>
|
|
288
|
+
</td>
|
|
289
|
+
<td style="text-align: center;">
|
|
290
|
+
<nobr><font>{{row.f_charge_collectors}}</font></nobr>
|
|
291
|
+
</td>
|
|
292
|
+
<td style="text-align: center;">
|
|
293
|
+
<nobr><font>{{row.f_charge_date}}</font></nobr>
|
|
294
|
+
</td>
|
|
295
|
+
<td style="text-align: center;">
|
|
296
|
+
<nobr><font>{{row.f_actual_date}}</font></nobr>
|
|
297
|
+
</td>
|
|
298
|
+
<td style="text-align: center;">
|
|
299
|
+
<nobr><font>{{row.f_charge_status}}</font></nobr>
|
|
300
|
+
</td>
|
|
301
|
+
</tr>
|
|
302
|
+
</template>
|
|
303
|
+
</data-grid>
|
|
304
|
+
</criteria-paged>
|
|
305
|
+
</template>
|
|
306
|
+
|
|
307
|
+
<script>
|
|
308
|
+
import {PagedList} from 'vue-client'
|
|
309
|
+
import {HttpResetClass} from 'vue-client'
|
|
310
|
+
import {isEmpty} from "../../../components/Util";
|
|
311
|
+
export default {
|
|
312
|
+
title: '报建收费列表',
|
|
313
|
+
data () {
|
|
314
|
+
return {
|
|
315
|
+
model: new PagedList('rs/sql/getApplyCharge', 30, null, {
|
|
316
|
+
f_charge_money: 0
|
|
317
|
+
}),
|
|
318
|
+
curorgid: [this.$login.f.orgid],
|
|
319
|
+
curdepid: [],
|
|
320
|
+
servicerList:[],
|
|
321
|
+
operatorList:[],
|
|
322
|
+
curuserid: [],
|
|
323
|
+
paymentTerm :[{label: '全部', value: ''}, ...this.$appdata.getParam('收费项目')],
|
|
324
|
+
applytype: [{label: '全部', value: ''}, ...this.$appdata.getParam('报建类型')],
|
|
325
|
+
applyNatures: [{label: '全部', value: ''}], // 报建性质
|
|
326
|
+
paymentMethod: [{label: '全部', value: ''}, ...this.$appdata.getParam('付款方式')],
|
|
327
|
+
chargeStatus: [
|
|
328
|
+
{label: '全部', value: ''},
|
|
329
|
+
{label: '有效', value: '有效'},
|
|
330
|
+
{label: '作废', value: '作废'},
|
|
331
|
+
{label: '退款', value: '退款'}
|
|
332
|
+
],
|
|
333
|
+
criteriaShow: false,
|
|
334
|
+
chargeAll: {
|
|
335
|
+
count: 0,
|
|
336
|
+
sum: 0
|
|
337
|
+
},
|
|
338
|
+
getfield: {
|
|
339
|
+
'f_apply_num': '工程编号',
|
|
340
|
+
'f_contract_number': '合同编号',
|
|
341
|
+
'f_apply_type': '报建类型',
|
|
342
|
+
'f_apply_nature': '报建性质',
|
|
343
|
+
'f_user_name': '用户名称',
|
|
344
|
+
'f_phone': '用户电话',
|
|
345
|
+
'f_address': '用户地址',
|
|
346
|
+
'f_idnumber': '身份证号',
|
|
347
|
+
'f_charge_number': '缴费编码',
|
|
348
|
+
'f_charge_money': '收费金额',
|
|
349
|
+
'f_payment_method': '付款方式',
|
|
350
|
+
'f_payer_number': '流水号',
|
|
351
|
+
'f_charge_collectors': '收费人员',
|
|
352
|
+
'f_charge_date': '收费日期',
|
|
353
|
+
'f_actual_date': '实际收费时间',
|
|
354
|
+
'f_charge_status': '状态'
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
},
|
|
358
|
+
ready () {
|
|
359
|
+
// 调用查询
|
|
360
|
+
this.search()
|
|
361
|
+
this.getservicer()
|
|
362
|
+
this.getapplyoperator()
|
|
363
|
+
},
|
|
364
|
+
methods: {
|
|
365
|
+
async getservicer(){
|
|
366
|
+
debugger
|
|
367
|
+
let data = {
|
|
368
|
+
tablename: 't_user',
|
|
369
|
+
condition: `1=1`
|
|
370
|
+
}
|
|
371
|
+
let http = new HttpResetClass()
|
|
372
|
+
let res = await http.load(
|
|
373
|
+
'POST',
|
|
374
|
+
`rs/sql/apply_singleTable`,
|
|
375
|
+
{data: data},
|
|
376
|
+
{resolveMsg: null, rejectMsg: '服务人查询失败!!!'}
|
|
377
|
+
)
|
|
378
|
+
res.data.forEach(item => {
|
|
379
|
+
this.servicerList.push({
|
|
380
|
+
'label': item.name,
|
|
381
|
+
'value': item.name
|
|
382
|
+
})
|
|
383
|
+
})},
|
|
384
|
+
|
|
385
|
+
async getapplyoperator(){
|
|
386
|
+
debugger
|
|
387
|
+
let data = {
|
|
388
|
+
condition: `1=1`
|
|
389
|
+
}
|
|
390
|
+
let http = new HttpResetClass()
|
|
391
|
+
let res = await http.load('POST', 'rs/sql/getapplyOperator', {data: data}, {resolveMsg: null, rejectMsg: null})
|
|
392
|
+
res.data.forEach(item => {
|
|
393
|
+
this.operatorList.push({
|
|
394
|
+
'label': item.f_operator,
|
|
395
|
+
'value': item.f_operator
|
|
396
|
+
})
|
|
397
|
+
})},
|
|
398
|
+
|
|
399
|
+
applyTypeChange () {
|
|
400
|
+
if (!isEmpty(this.$refs.cp.$refs.cri.model.f_apply_type)) {
|
|
401
|
+
this.applyNatures = isEmpty(this.$appdata.getParam(`${this.$refs.cp.$refs.cri.model.f_apply_type}性质`)) ? [{label: '全部', value: ''}] : [{label: '全部', value: ''}, ...this.$appdata.getParam(`${this.$refs.cp.$refs.cri.model.f_apply_type}性质`)]
|
|
402
|
+
} else {
|
|
403
|
+
this.applyNatures = [{label: '全部', value: ''}]
|
|
404
|
+
}
|
|
405
|
+
},
|
|
406
|
+
clear () {
|
|
407
|
+
Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
|
|
408
|
+
this.$refs.cp.$refs.cri.model[key] = ''
|
|
409
|
+
})
|
|
410
|
+
this.curdepid = []
|
|
411
|
+
this.curuserid = []
|
|
412
|
+
},
|
|
413
|
+
searchCondition (args) {
|
|
414
|
+
args.condition = args.condition + ` and cr.f_orgid in (${this.curorgid})`
|
|
415
|
+
if (this.curdepid.length > 0) {
|
|
416
|
+
args.condition = args.condition + ` and cr.f_depid in (${this.curdepid})`
|
|
417
|
+
}
|
|
418
|
+
if (this.curuserid.length > 0) {
|
|
419
|
+
args.condition = args.condition + ` and cr.f_charge_collectors_id in (${this.curuserid})`
|
|
420
|
+
}
|
|
421
|
+
this.model.search(args.condition, args.model)
|
|
422
|
+
},
|
|
423
|
+
// 查询
|
|
424
|
+
search () {
|
|
425
|
+
this.$refs.cp.$refs.cri.search()
|
|
426
|
+
this.getChargeAll()
|
|
427
|
+
this.getapplyoperator()
|
|
428
|
+
},
|
|
429
|
+
async getChargeAll () {
|
|
430
|
+
let http = new HttpResetClass()
|
|
431
|
+
let data = {
|
|
432
|
+
condition: this.model.condition
|
|
433
|
+
}
|
|
434
|
+
let res = await http.load('POST', 'rs/sql/getChargeAll', {data: data}, {resolveMsg: null, rejectMsg: null})
|
|
435
|
+
|
|
436
|
+
this.chargeAll = res.data[0]
|
|
437
|
+
},
|
|
438
|
+
getuser (val) {
|
|
439
|
+
if (val.length <= 0) {
|
|
440
|
+
return
|
|
441
|
+
}
|
|
442
|
+
this.curuserid = val
|
|
443
|
+
this.search()
|
|
444
|
+
},
|
|
445
|
+
getdep (val) {
|
|
446
|
+
if (val.length <= 0) {
|
|
447
|
+
return
|
|
448
|
+
}
|
|
449
|
+
this.curdepid = val
|
|
450
|
+
this.curuserid = []
|
|
451
|
+
this.search()
|
|
452
|
+
},
|
|
453
|
+
getorg (val) {
|
|
454
|
+
if (val.length <= 0) {
|
|
455
|
+
return
|
|
456
|
+
}
|
|
457
|
+
this.curorgid = val
|
|
458
|
+
this.curdepid = []
|
|
459
|
+
this.curuserid = []
|
|
460
|
+
this.search()
|
|
461
|
+
},
|
|
462
|
+
|
|
463
|
+
},
|
|
464
|
+
computed: {
|
|
465
|
+
getCondition () {
|
|
466
|
+
return {
|
|
467
|
+
condition: this.model.condition
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
</script>
|
|
473
|
+
|
|
474
|
+
<style scoped>
|
|
475
|
+
</style>
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
|
|
75
75
|
<div :style="item.style ? item.style+';height: 40px;margin-bottom: 20px':'height: 40px;margin-bottom: 20px'"
|
|
76
76
|
v-if="item.label === '用户电话'"
|
|
77
|
-
:class="[
|
|
77
|
+
:class="[item.required && !(item.value) ? 'has-error' : '',item.bootstraped ? item.bootstraped + ' form-group':'col-sm-4 form-group']">
|
|
78
78
|
<label :style="item.label_style ? item.label_style : ''"
|
|
79
79
|
:class="item.label_bootstraped ? item.label_bootstraped+' control-label-justify control-label' : 'control-label-justify control-label col-sm-6'">{{ item.label }}</label>
|
|
80
80
|
<div :style="item.value_style ? item.value_style:''"
|
|
@@ -82,7 +82,6 @@
|
|
|
82
82
|
<input class="form-control input_view" style=""
|
|
83
83
|
type="number"
|
|
84
84
|
oninput="if(value.length > 11) value=value.slice(0,11)"
|
|
85
|
-
v-validate:f_user_phone="{minlength: 7, maxlength: 11 }"
|
|
86
85
|
v-model="data.fields[index].value"
|
|
87
86
|
:placeholder="item.placeholder"
|
|
88
87
|
:value="data.fields[index].value"
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
<th class="textNoLineBreak">材料型号</th>
|
|
9
9
|
<th class="textNoLineBreak">材料单位</th>
|
|
10
10
|
<th class="textNoLineBreak">材料数量</th>
|
|
11
|
+
<th class="textNoLineBreak">应免数量</th>
|
|
11
12
|
<th class="textNoLineBreak">材料价格</th>
|
|
12
13
|
<th class="textNoLineBreak">材料状态</th>
|
|
13
14
|
|
|
@@ -38,6 +39,9 @@
|
|
|
38
39
|
<td style="text-align: center;">
|
|
39
40
|
<nobr>{{row.f_material_number}}</nobr>
|
|
40
41
|
</td>
|
|
42
|
+
<td style="text-align: center;">
|
|
43
|
+
<nobr>{{row.f_quantity_payable}}</nobr>
|
|
44
|
+
</td>
|
|
41
45
|
<td style="text-align: center;">
|
|
42
46
|
<nobr>{{row.f_material_price}}</nobr>
|
|
43
47
|
</td>
|
|
@@ -133,6 +137,16 @@
|
|
|
133
137
|
/>
|
|
134
138
|
</div>
|
|
135
139
|
</div>
|
|
140
|
+
<div class="form-group col-sm-6" :class="[item.f_quantity_payable ? '' : 'has-error']">
|
|
141
|
+
<label class="col-sm-4 control-label">应免数量:</label>
|
|
142
|
+
<div class="col-sm-8">
|
|
143
|
+
<input class="form-control input_view" style="" type="number"
|
|
144
|
+
placeholder="应免数量"
|
|
145
|
+
v-model="item.f_quantity_payable"
|
|
146
|
+
:value="item.f_quantity_payable"
|
|
147
|
+
/>
|
|
148
|
+
</div>
|
|
149
|
+
</div>
|
|
136
150
|
<div class="form-group col-sm-6">
|
|
137
151
|
<label class="col-sm-4 control-label">材料价格:</label>
|
|
138
152
|
<div class="col-sm-8">
|
|
@@ -252,7 +266,8 @@
|
|
|
252
266
|
f_material_style:'',
|
|
253
267
|
f_material_unit:'',
|
|
254
268
|
f_material_number:'',
|
|
255
|
-
f_material_price:''
|
|
269
|
+
f_material_price:'',
|
|
270
|
+
f_quantity_payable:0
|
|
256
271
|
}
|
|
257
272
|
],
|
|
258
273
|
meterialOptions:[],
|
|
@@ -269,7 +284,9 @@
|
|
|
269
284
|
}
|
|
270
285
|
},
|
|
271
286
|
ready(){
|
|
272
|
-
this
|
|
287
|
+
this.$nextTick(() => {
|
|
288
|
+
this.getOnetoManyData()
|
|
289
|
+
})
|
|
273
290
|
},
|
|
274
291
|
methods: {
|
|
275
292
|
async getOnetoManyData () {
|
|
@@ -277,12 +294,14 @@
|
|
|
277
294
|
tablename: `t_material_apply`,
|
|
278
295
|
condition: `f_process_id='${this.selectdata.f_process_id}'`
|
|
279
296
|
}
|
|
280
|
-
let
|
|
297
|
+
let http = new HttpResetClass()
|
|
298
|
+
let res = await http.load('post',
|
|
281
299
|
'rs/sql/apply_singleTable',
|
|
282
300
|
{data: data},
|
|
283
301
|
{resolveMsg: null, rejectMsg: 'onetomany查询失败'}
|
|
284
302
|
)
|
|
285
303
|
this.onetomany.rows = res.data
|
|
304
|
+
console.log('材料信息', this.onetomany.rows)
|
|
286
305
|
},
|
|
287
306
|
async openMaterialModal () {
|
|
288
307
|
this.getMateralNames()
|
|
@@ -294,7 +313,8 @@
|
|
|
294
313
|
f_material_style:'',
|
|
295
314
|
f_material_unit:'',
|
|
296
315
|
f_material_number:'',
|
|
297
|
-
f_material_price:''
|
|
316
|
+
f_material_price:'',
|
|
317
|
+
f_quantity_payable:0
|
|
298
318
|
}
|
|
299
319
|
],
|
|
300
320
|
this.showMaterialModal = true
|
|
@@ -316,7 +336,8 @@
|
|
|
316
336
|
f_material_style:'',
|
|
317
337
|
f_material_unit:'',
|
|
318
338
|
f_material_number:'',
|
|
319
|
-
f_material_price:''
|
|
339
|
+
f_material_price:'',
|
|
340
|
+
f_quantity_payable:0
|
|
320
341
|
})
|
|
321
342
|
},
|
|
322
343
|
// 获取模态框材料
|
|
@@ -346,7 +367,6 @@
|
|
|
346
367
|
this.materials[index].f_material_name = material.f_material_name
|
|
347
368
|
this.materials[index].f_material_style = material.f_material_style
|
|
348
369
|
this.materials[index].f_material_unit = material.f_material_unit
|
|
349
|
-
this.materials[index].f_material_number = material.f_material_number
|
|
350
370
|
this.materials[index].f_material_price = material.f_material_price
|
|
351
371
|
},
|
|
352
372
|
// 新增材料
|
|
@@ -397,6 +417,7 @@
|
|
|
397
417
|
f_material_unit:row.f_material_unit,
|
|
398
418
|
f_material_number:row.f_material_number,
|
|
399
419
|
f_material_price:row.f_material_price,
|
|
420
|
+
f_quantity_payable:row.f_quantity_payable
|
|
400
421
|
}
|
|
401
422
|
]
|
|
402
423
|
this.showMaterialModal = true
|
|
@@ -408,6 +429,7 @@
|
|
|
408
429
|
data.f_material_unit = this.materials[0].f_material_unit
|
|
409
430
|
data.f_material_number = this.materials[0].f_material_number
|
|
410
431
|
data.f_material_price = this.materials[0].f_material_price
|
|
432
|
+
data.f_quantity_payable = this.materials[0].f_quantity_payable
|
|
411
433
|
let res = await this.$resetpost(
|
|
412
434
|
`apply/rs/entity/t_material_apply`,
|
|
413
435
|
data
|
|
@@ -514,7 +536,7 @@
|
|
|
514
536
|
this.pricesum = 0
|
|
515
537
|
if (res.length>0){
|
|
516
538
|
for (let row of res){
|
|
517
|
-
let num = row.f_material_price * row.f_material_number
|
|
539
|
+
let num = row.f_material_price * (row.f_material_number - row.f_quantity_payable )
|
|
518
540
|
this.pricesum += num
|
|
519
541
|
}
|
|
520
542
|
}else {
|
|
@@ -448,27 +448,19 @@ export default {
|
|
|
448
448
|
this.$refs.print.$refs.print.PrintTable()
|
|
449
449
|
// 保存票据号
|
|
450
450
|
let data = {
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
f_charge_id: this.charge.id,//收费记录id
|
|
455
|
-
f_type: '报建收费',
|
|
451
|
+
f_charge_id: this.charge.id, //收费记录id
|
|
452
|
+
f_charge_type: this.charge.f_payment_term,
|
|
453
|
+
f_use_type: '国税发票', // 使用类型
|
|
456
454
|
f_using_bill: {
|
|
457
455
|
number: this.billnum.bill.number,
|
|
458
456
|
id: this.billnum.bill.id
|
|
459
457
|
},
|
|
460
|
-
f_biL_type: '正常',
|
|
461
|
-
f_biLl_state: '有效',
|
|
462
|
-
f_operator: this.$login.f.f_operator,
|
|
463
|
-
f_operate_date: this.$login.f.f_operate_date,
|
|
464
|
-
f_orgid: this.$login.f.f_orgid,
|
|
465
|
-
f_orgname: this.$login.f.f_orgname,
|
|
466
|
-
f_depid: this.$login.f.f_depid,
|
|
467
|
-
f_depname: this.$login.f.f_depname,
|
|
468
|
-
f_operatorid: this.$login.f.f_operatorid
|
|
469
458
|
}
|
|
459
|
+
debugger
|
|
470
460
|
let http = new HttpResetClass()
|
|
471
|
-
http.load('post', 'rs/logic/
|
|
461
|
+
http.load('post', 'rs/logic/sale_openBill', data, {resolveMsg: null, rejectMsg: null}).then(()=>{
|
|
462
|
+
http.load('post','apply/rs/entity/t_charge_record',{id:this.charge.id,version:this.charge.version,f_invoice_num:this.billnum.bill.number},{resolveMsg: null, rejectMsg: null})
|
|
463
|
+
})
|
|
472
464
|
},
|
|
473
465
|
showPrintModal(row) {
|
|
474
466
|
this.charge = row
|
|
@@ -478,7 +470,7 @@ export default {
|
|
|
478
470
|
f_bill_user: this.$login.f.name, // 票据使用人
|
|
479
471
|
f_bill_type: '国税发票', // 票据类型
|
|
480
472
|
f_orgid: this.$login.f.orgid,
|
|
481
|
-
f_use_type: '
|
|
473
|
+
f_use_type: '燃气费' // 票据使用类型(燃气费、其他费用等)可不传
|
|
482
474
|
}
|
|
483
475
|
let http = new HttpResetClass()
|
|
484
476
|
http.load('post', 'rs/logic/sale_validateBill', data, {resolveMsg: null, rejectMsg: null}).then(res=>{
|