apply-clients 3.5.5-9 → 3.5.5-90
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/build/dev-server.js +7 -6
- package/package.json +6 -4
- package/src/App.vue +25 -25
- package/src/components/QXClient.js +333 -0
- package/src/components/SignTools.js +65 -0
- package/src/components/android/AppCheckTakePic.vue +168 -168
- package/src/components/android/Process/AppChargeList.vue +8 -0
- package/src/components/android/Process/AppExplorationUser.vue +1 -2
- package/src/components/android/Process/AppServiceControl.vue +1755 -1755
- package/src/components/product/Function/Service/FunctionServiceControl.vue +4 -4
- package/src/components/product/Install/ContractCharge.vue +210 -210
- package/src/components/product/PcZhihuanManagement.vue +160 -160
- package/src/components/product/Print/BuildOrder/buildOrderList.vue +339 -339
- package/src/components/product/Process/Processes/contractModel.vue +49 -37
- package/src/components/product/Process/Processes/selectApply.vue +251 -251
- package/src/components/product/Process/Processes/selectBcakApply.vue +250 -250
- package/src/filiale/baiyin/android/ByAddMaterialScience.vue +2 -0
- package/src/filiale/fugou/android/AppAddMaterialScience.vue +444 -444
- package/src/filiale/fugou/android/AppAddReplacement.vue +512 -341
- package/src/filiale/fugou/android/AppChargeManagement.vue +739 -739
- package/src/filiale/fugou/android/AppDevicesManagement.vue +3 -1
- package/src/filiale/fugou/android/AppExplorationUser.vue +3 -3
- package/src/filiale/fugou/android/AppInstallationDetails.vue +2 -1
- package/src/filiale/fugou/android/AppServiceControl.vue +75 -17
- package/src/filiale/fugou/android/AppZhihuanManagement.vue +14 -2
- package/src/filiale/fugou/pc/AddReplacement.vue +511 -340
- package/src/filiale/fugou/pc/ApplyChargeList.vue +487 -480
- package/src/filiale/fugou/pc/Applybatchdispatch.vue +754 -0
- package/src/filiale/fugou/pc/ExplorationSelect.vue +3 -4
- package/src/filiale/fugou/pc/InstallationDetails.vue +1 -1
- package/src/filiale/fugou/pc/ServiceControl.vue +47 -20
- package/src/filiale/fugou/pc/StopApplyList.vue +291 -0
- package/src/filiale/fugou/pc/addMaterialScience.vue +481 -481
- package/src/filiale/fugou/pc/addressAndUserinfoManagement.vue +216 -216
- package/src/filiale/fugou/pc/chargeReport.vue +215 -143
- package/src/filiale/fugou/pc/devicesManagement.vue +1 -0
- package/src/filiale/fugou/pc.js +3 -1
- package/src/filiale/gongyi/pc/addressAndUserinfoManagement.vue +187 -0
- package/src/filiale/gongyi/pc.js +25 -24
- package/src/filiale/hongda/pc/addMaterialScience.vue +723 -723
- package/src/filiale/jinhuang/android/AppAddMaterialScience.vue +635 -0
- package/src/filiale/jinhuang/android.js +6 -0
- package/src/filiale/jinhuang/pc/ContractList.vue +220 -0
- package/src/filiale/jinhuang/pc/ExplorationSelect.vue +523 -0
- package/src/filiale/jinhuang/pc/ServiceControl.vue +7 -0
- package/src/filiale/jinhuang/pc/addMaterialScience.vue +638 -0
- package/src/filiale/jinhuang/pc/addressAndUserinfoManagement.vue +41 -1
- package/src/filiale/jinhuang/pc.js +3 -0
- package/src/filiale/qianneng/android/AppServiceView.vue +13 -13
- package/src/filiale/qianneng/pc/ApplyMaterialDetailed.vue +1 -1
- package/src/filiale/qianneng/pc/Applybatchdispatch.vue +786 -769
- package/src/filiale/qianneng/pc/Applydetail.vue +1 -1
- package/src/filiale/qianneng/pc/FunctionServiceControl.vue +10 -3
- package/src/filiale/qianneng/pc/ServiceControl.vue +1387 -1382
- package/src/filiale/ruihua/pc/ServiceControl.vue +2 -1
- package/src/filiale/yangchunboneng/android/AppChargeManagement.vue +527 -520
- package/src/filiale/yangchunboneng/android/AppContractCharge.vue +210 -210
- package/src/filiale/yangchunboneng/android/AppExplorationUser.vue +72 -5
- package/src/filiale/yangchunboneng/android/AppInstallationMaterial.vue +1116 -1087
- package/src/filiale/yangchunboneng/android/AppProcessSupervisory.vue +331 -0
- package/src/filiale/yangchunboneng/android/AppServiceControl.vue +219 -43
- package/src/filiale/yangchunboneng/android/MaterIialOne.vue +21 -1
- package/src/filiale/yangchunboneng/android.js +21 -20
- package/src/filiale/yangchunboneng/pc/ApplyChargeList.vue +32 -4
- package/src/filiale/yangchunboneng/pc/ApplyUpload.vue +392 -392
- package/src/filiale/yangchunboneng/pc/ExplorationSelect.vue +612 -547
- package/src/filiale/yangchunboneng/pc/ServiceControl.vue +4 -2
- package/src/filiale/yangchunboneng/pc/StopApplyList.vue +294 -0
- package/src/filiale/yangchunboneng/pc/SupervisoryControl.vue +141 -0
- package/src/filiale/yangchunboneng/pc/SupervisoryList.vue +54 -42
- package/src/filiale/yangchunboneng/pc/SupervisoryListNew.vue +5 -1
- package/src/filiale/yangchunboneng/pc/SupervisoryServiceView.vue +1 -1
- package/src/filiale/yangchunboneng/pc/buildOrderList.vue +411 -0
- package/src/filiale/yangchunboneng/pc/chargeManagement.vue +5 -1
- package/src/filiale/yangchunboneng/pc/constructionInfo.vue +84 -0
- package/src/filiale/yangchunboneng/pc/printBuildOrder.vue +175 -0
- package/src/filiale/yangchunboneng/pc.js +29 -24
- package/src/main.js +4 -3
- package/src/test/SessionTestServlet.java +0 -69
- package/webapp/WEB-INF/web.xml +0 -52
- package/webapp/session-test.jsp +0 -59
|
@@ -1,210 +1,210 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="col-sm-12" style="margin: 20px 0px;">
|
|
3
|
-
<data-grid :model="model" v-ref:grid class="list_area table_sy" style="padding: 0px">
|
|
4
|
-
<template partial='head'>
|
|
5
|
-
<tr>
|
|
6
|
-
<th>合同金额</th>
|
|
7
|
-
<th>付款节点</th>
|
|
8
|
-
<th>付款比例</th>
|
|
9
|
-
<th>应收金额</th>
|
|
10
|
-
<th>
|
|
11
|
-
<button type="button" class="btn btn-primary" @click="$parent.$parent.showAdd()">新增</button>
|
|
12
|
-
</th>
|
|
13
|
-
</tr>
|
|
14
|
-
</template>
|
|
15
|
-
<template partial='body'>
|
|
16
|
-
<tr>
|
|
17
|
-
<td style="text-align: center;">
|
|
18
|
-
<nobr><font>{{ row.f_amount }}</font></nobr>
|
|
19
|
-
</td>
|
|
20
|
-
<td style="text-align: center;">
|
|
21
|
-
<nobr><font>{{ row.defname }}</font></nobr>
|
|
22
|
-
</td>
|
|
23
|
-
<td style="text-align: center;">
|
|
24
|
-
<nobr><font>{{ row.f_payment_ratio }}%</font></nobr>
|
|
25
|
-
</td>
|
|
26
|
-
<td style="text-align: center;">
|
|
27
|
-
<nobr><font>{{ $parent.$parent.toFixed(row.f_due_money) }}</font></nobr>
|
|
28
|
-
</td>
|
|
29
|
-
<td style="text-align: center;">
|
|
30
|
-
<nobr><font>
|
|
31
|
-
<button type="button" class="btn btn-primary" @click="$parent.$parent.updateData(row)">修改</button>
|
|
32
|
-
<button type="button" class="btn btn-primary" @click="$parent.$parent.delData(row)">删除</button>
|
|
33
|
-
</font></nobr>
|
|
34
|
-
</td>
|
|
35
|
-
</tr>
|
|
36
|
-
</template>
|
|
37
|
-
</data-grid>
|
|
38
|
-
<modal
|
|
39
|
-
:show.sync="addModal"
|
|
40
|
-
backdrop="false"
|
|
41
|
-
:title="titleText"
|
|
42
|
-
>
|
|
43
|
-
<header slot="modal-header" class="modal-header">
|
|
44
|
-
<button type="button" class="close" @click="closeModal"><span>×</span></button>
|
|
45
|
-
<h4 class="modal-title">{{ titleText }}</h4>
|
|
46
|
-
</header>
|
|
47
|
-
<article slot="modal-body" class="modal-body clearfix">
|
|
48
|
-
<div class="form-group col-sm-12">
|
|
49
|
-
<label class="col-sm-3 control-label">合同金额(元)::</label>
|
|
50
|
-
<div class="col-sm-9">
|
|
51
|
-
<input type="text"
|
|
52
|
-
class="form-control input_view"
|
|
53
|
-
style="width: 60%"
|
|
54
|
-
readonly
|
|
55
|
-
v-model="addData.f_amount"/>
|
|
56
|
-
</div>
|
|
57
|
-
</div>
|
|
58
|
-
<div class="form-group col-sm-12">
|
|
59
|
-
<label class="col-sm-3 control-label">付款节点:</label>
|
|
60
|
-
<div class="col-sm-9">
|
|
61
|
-
<v-select
|
|
62
|
-
v-model="addData.applyType"
|
|
63
|
-
placeholder='请选择需要发起的工程类型'
|
|
64
|
-
:value.sync="addData.applyType"
|
|
65
|
-
:options='payProjects'
|
|
66
|
-
:value-single="true"
|
|
67
|
-
class="select select_list"
|
|
68
|
-
:search="false"
|
|
69
|
-
close-on-select></v-select>
|
|
70
|
-
</div>
|
|
71
|
-
</div>
|
|
72
|
-
<div class="form-group col-sm-12">
|
|
73
|
-
<label class="col-sm-3 control-label">付款比例(%):</label>
|
|
74
|
-
<div class="col-sm-9">
|
|
75
|
-
<input type="text"
|
|
76
|
-
class="form-control input_view" style="width: 60%"
|
|
77
|
-
v-model="addData.f_payment_ratio" @change="inputChange(1)"/>
|
|
78
|
-
</div>
|
|
79
|
-
</div>
|
|
80
|
-
<div class="form-group col-sm-12">
|
|
81
|
-
<label class="col-sm-3 control-label">预付款金额(元):</label>
|
|
82
|
-
<div class="col-sm-9">
|
|
83
|
-
<input type="text"
|
|
84
|
-
style="width: 60%"
|
|
85
|
-
class="form-control input_view"
|
|
86
|
-
v-model="addData.f_due_money"
|
|
87
|
-
@change="inputChange(2)"/>
|
|
88
|
-
</div>
|
|
89
|
-
</div>
|
|
90
|
-
</article>
|
|
91
|
-
<footer slot="modal-footer" class="modal-footer">
|
|
92
|
-
<button type="button" class="btn btn-primary" @click="saveOrUpdate()">确认</button>
|
|
93
|
-
</footer>
|
|
94
|
-
</modal>
|
|
95
|
-
</div>
|
|
96
|
-
</template>
|
|
97
|
-
<script>
|
|
98
|
-
import {HttpResetClass} from 'vue-client'
|
|
99
|
-
|
|
100
|
-
export default {
|
|
101
|
-
title: '付款预设',
|
|
102
|
-
props: {
|
|
103
|
-
selectdata: {
|
|
104
|
-
type: Object
|
|
105
|
-
},
|
|
106
|
-
mark: {
|
|
107
|
-
type: Number,
|
|
108
|
-
default: 1
|
|
109
|
-
}
|
|
110
|
-
},
|
|
111
|
-
data () {
|
|
112
|
-
return {
|
|
113
|
-
model: {rows: [{f_process_id: 100, f_payment_ratio: '', defname: '', f_due_money: ''}]},
|
|
114
|
-
payProjects: [{label: '合同签订', value: '合同签订'}, {label: '验收通气', value: '验收通气'}, {label: '完工', value: '完工'}],
|
|
115
|
-
addModal: false,
|
|
116
|
-
addData: {f_amount: 0, f_process_id: '', f_payment_ratio: '', defname: '', f_due_money: ''},
|
|
117
|
-
titleText: ''
|
|
118
|
-
}
|
|
119
|
-
},
|
|
120
|
-
methods: {
|
|
121
|
-
toFixed (num) {
|
|
122
|
-
return parseFloat(num).toFixed(2)
|
|
123
|
-
},
|
|
124
|
-
showAdd () {
|
|
125
|
-
this.addData = {
|
|
126
|
-
f_amount: this.selectdata.f_contract_money,
|
|
127
|
-
f_process_id: this.selectdata.f_process_id,
|
|
128
|
-
f_payment_ratio: '',
|
|
129
|
-
defname: '',
|
|
130
|
-
f_due_money: ''
|
|
131
|
-
}
|
|
132
|
-
this.titleText = '新增付款预设'
|
|
133
|
-
this.addModal = true
|
|
134
|
-
},
|
|
135
|
-
inputChange (type) {
|
|
136
|
-
if (this.addData.f_amount) {
|
|
137
|
-
if (type === 1) {
|
|
138
|
-
this.addData.f_due_money = (this.addData.f_amount * (this.addData.f_payment_ratio / 100)).toFixed(2)
|
|
139
|
-
// this.addData.f_due_money转为数字类型
|
|
140
|
-
this.addData.f_due_money = parseFloat(this.addData.f_due_money)
|
|
141
|
-
this.selectdata.f_contract_money = parseFloat(this.selectdata.f_contract_money)
|
|
142
|
-
if (this.addData.f_due_money > this.selectdata.f_contract_money) {
|
|
143
|
-
this.addData.f_payment_ratio = 0
|
|
144
|
-
this.addData.f_due_money = 0
|
|
145
|
-
this.$showMessage('预付款金额不能大于合同金额')
|
|
146
|
-
}
|
|
147
|
-
} else {
|
|
148
|
-
this.addData.f_payment_ratio = Math.round(this.addData.f_due_money / this.addData.f_amount * 100)
|
|
149
|
-
this.addData.f_payment_ratio = parseFloat(this.addData.f_payment_ratio)
|
|
150
|
-
if (this.addData.f_payment_ratio > 100) {
|
|
151
|
-
this.addData.f_payment_ratio = 0
|
|
152
|
-
this.addData.f_due_money = 0
|
|
153
|
-
this.$showMessage('付款比率不能大于100%')
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
},
|
|
158
|
-
updateData (row) {
|
|
159
|
-
this.addData = row
|
|
160
|
-
this.addData.f_amount = this.selectdata.f_contract_money
|
|
161
|
-
this.titleText = '修改付款预设'
|
|
162
|
-
this.addModal = true
|
|
163
|
-
},
|
|
164
|
-
delData (row) {
|
|
165
|
-
console.log('delData=========')
|
|
166
|
-
this.$resetdelete(this.$androidUtil.getProxyUrl() + '/apply/rs/entity/t_contract_charge', {id: row.id}, {
|
|
167
|
-
resolveMsg: null,
|
|
168
|
-
rejectMsg: null
|
|
169
|
-
}).then(() => {
|
|
170
|
-
this.search()
|
|
171
|
-
})
|
|
172
|
-
this.addModal = false
|
|
173
|
-
},
|
|
174
|
-
saveOrUpdate () {
|
|
175
|
-
// this.addData
|
|
176
|
-
console.log('saveOrUpdate=========')
|
|
177
|
-
this.addData.defname = this.addData.applyType
|
|
178
|
-
new HttpResetClass().load('POST', this.$androidUtil.getProxyUrl() + '/apply/rs/entity/t_contract_charge', this.addData, {
|
|
179
|
-
resolveMsg: null,
|
|
180
|
-
rejectMsg: null
|
|
181
|
-
}).then(() => {
|
|
182
|
-
this.search()
|
|
183
|
-
})
|
|
184
|
-
// 关闭弹窗
|
|
185
|
-
this.addModal = false
|
|
186
|
-
},
|
|
187
|
-
closeModal () {
|
|
188
|
-
this.addModal = false
|
|
189
|
-
},
|
|
190
|
-
search () {
|
|
191
|
-
let data = {
|
|
192
|
-
condition: `f_process_id = '${this.selectdata.f_process_id}'`
|
|
193
|
-
}
|
|
194
|
-
new HttpResetClass().load('POST', this.$androidUtil.getProxyUrl() + '/rs/sql/getContractCharge', {data: data}
|
|
195
|
-
, {resolveMsg: null, rejectMsg: null})
|
|
196
|
-
.then((res) => {
|
|
197
|
-
this.model.rows = res.data
|
|
198
|
-
})
|
|
199
|
-
}
|
|
200
|
-
},
|
|
201
|
-
ready () {
|
|
202
|
-
this.payProjects = this.$appdata.getParam(this.selectdata.f_apply_type + '付款预设')
|
|
203
|
-
this.search()
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
</script>
|
|
207
|
-
|
|
208
|
-
<style scoped>
|
|
209
|
-
|
|
210
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="col-sm-12" style="margin: 20px 0px;">
|
|
3
|
+
<data-grid :model="model" v-ref:grid class="list_area table_sy" style="padding: 0px">
|
|
4
|
+
<template partial='head'>
|
|
5
|
+
<tr>
|
|
6
|
+
<th>合同金额</th>
|
|
7
|
+
<th>付款节点</th>
|
|
8
|
+
<th>付款比例</th>
|
|
9
|
+
<th>应收金额</th>
|
|
10
|
+
<th>
|
|
11
|
+
<button v-if="Vue.user.f_role_name.includes('付款预设-新增')" type="button" class="btn btn-primary" @click="$parent.$parent.showAdd()">新增</button>
|
|
12
|
+
</th>
|
|
13
|
+
</tr>
|
|
14
|
+
</template>
|
|
15
|
+
<template partial='body'>
|
|
16
|
+
<tr>
|
|
17
|
+
<td style="text-align: center;">
|
|
18
|
+
<nobr><font>{{ row.f_amount }}</font></nobr>
|
|
19
|
+
</td>
|
|
20
|
+
<td style="text-align: center;">
|
|
21
|
+
<nobr><font>{{ row.defname }}</font></nobr>
|
|
22
|
+
</td>
|
|
23
|
+
<td style="text-align: center;">
|
|
24
|
+
<nobr><font>{{ row.f_payment_ratio }}%</font></nobr>
|
|
25
|
+
</td>
|
|
26
|
+
<td style="text-align: center;">
|
|
27
|
+
<nobr><font>{{ $parent.$parent.toFixed(row.f_due_money) }}</font></nobr>
|
|
28
|
+
</td>
|
|
29
|
+
<td style="text-align: center;">
|
|
30
|
+
<nobr><font>
|
|
31
|
+
<button v-if="Vue.user.f_role_name.includes('付款预设-修改')" type="button" class="btn btn-primary" @click="$parent.$parent.updateData(row)">修改</button>
|
|
32
|
+
<button v-if="Vue.user.f_role_name.includes('付款预设-删除')" type="button" class="btn btn-primary" @click="$parent.$parent.delData(row)">删除</button>
|
|
33
|
+
</font></nobr>
|
|
34
|
+
</td>
|
|
35
|
+
</tr>
|
|
36
|
+
</template>
|
|
37
|
+
</data-grid>
|
|
38
|
+
<modal
|
|
39
|
+
:show.sync="addModal"
|
|
40
|
+
backdrop="false"
|
|
41
|
+
:title="titleText"
|
|
42
|
+
>
|
|
43
|
+
<header slot="modal-header" class="modal-header">
|
|
44
|
+
<button type="button" class="close" @click="closeModal"><span>×</span></button>
|
|
45
|
+
<h4 class="modal-title">{{ titleText }}</h4>
|
|
46
|
+
</header>
|
|
47
|
+
<article slot="modal-body" class="modal-body clearfix">
|
|
48
|
+
<div class="form-group col-sm-12">
|
|
49
|
+
<label class="col-sm-3 control-label">合同金额(元)::</label>
|
|
50
|
+
<div class="col-sm-9">
|
|
51
|
+
<input type="text"
|
|
52
|
+
class="form-control input_view"
|
|
53
|
+
style="width: 60%"
|
|
54
|
+
readonly
|
|
55
|
+
v-model="addData.f_amount"/>
|
|
56
|
+
</div>
|
|
57
|
+
</div>
|
|
58
|
+
<div class="form-group col-sm-12">
|
|
59
|
+
<label class="col-sm-3 control-label">付款节点:</label>
|
|
60
|
+
<div class="col-sm-9">
|
|
61
|
+
<v-select
|
|
62
|
+
v-model="addData.applyType"
|
|
63
|
+
placeholder='请选择需要发起的工程类型'
|
|
64
|
+
:value.sync="addData.applyType"
|
|
65
|
+
:options='payProjects'
|
|
66
|
+
:value-single="true"
|
|
67
|
+
class="select select_list"
|
|
68
|
+
:search="false"
|
|
69
|
+
close-on-select></v-select>
|
|
70
|
+
</div>
|
|
71
|
+
</div>
|
|
72
|
+
<div class="form-group col-sm-12">
|
|
73
|
+
<label class="col-sm-3 control-label">付款比例(%):</label>
|
|
74
|
+
<div class="col-sm-9">
|
|
75
|
+
<input type="text"
|
|
76
|
+
class="form-control input_view" style="width: 60%"
|
|
77
|
+
v-model="addData.f_payment_ratio" @change="inputChange(1)"/>
|
|
78
|
+
</div>
|
|
79
|
+
</div>
|
|
80
|
+
<div class="form-group col-sm-12">
|
|
81
|
+
<label class="col-sm-3 control-label">预付款金额(元):</label>
|
|
82
|
+
<div class="col-sm-9">
|
|
83
|
+
<input type="text"
|
|
84
|
+
style="width: 60%"
|
|
85
|
+
class="form-control input_view"
|
|
86
|
+
v-model="addData.f_due_money"
|
|
87
|
+
@change="inputChange(2)"/>
|
|
88
|
+
</div>
|
|
89
|
+
</div>
|
|
90
|
+
</article>
|
|
91
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
92
|
+
<button type="button" class="btn btn-primary" @click="saveOrUpdate()">确认</button>
|
|
93
|
+
</footer>
|
|
94
|
+
</modal>
|
|
95
|
+
</div>
|
|
96
|
+
</template>
|
|
97
|
+
<script>
|
|
98
|
+
import {HttpResetClass} from 'vue-client'
|
|
99
|
+
|
|
100
|
+
export default {
|
|
101
|
+
title: '付款预设',
|
|
102
|
+
props: {
|
|
103
|
+
selectdata: {
|
|
104
|
+
type: Object
|
|
105
|
+
},
|
|
106
|
+
mark: {
|
|
107
|
+
type: Number,
|
|
108
|
+
default: 1
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
data () {
|
|
112
|
+
return {
|
|
113
|
+
model: {rows: [{f_process_id: 100, f_payment_ratio: '', defname: '', f_due_money: ''}]},
|
|
114
|
+
payProjects: [{label: '合同签订', value: '合同签订'}, {label: '验收通气', value: '验收通气'}, {label: '完工', value: '完工'}],
|
|
115
|
+
addModal: false,
|
|
116
|
+
addData: {f_amount: 0, f_process_id: '', f_payment_ratio: '', defname: '', f_due_money: ''},
|
|
117
|
+
titleText: ''
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
methods: {
|
|
121
|
+
toFixed (num) {
|
|
122
|
+
return parseFloat(num).toFixed(2)
|
|
123
|
+
},
|
|
124
|
+
showAdd () {
|
|
125
|
+
this.addData = {
|
|
126
|
+
f_amount: this.selectdata.f_contract_money,
|
|
127
|
+
f_process_id: this.selectdata.f_process_id,
|
|
128
|
+
f_payment_ratio: '',
|
|
129
|
+
defname: '',
|
|
130
|
+
f_due_money: ''
|
|
131
|
+
}
|
|
132
|
+
this.titleText = '新增付款预设'
|
|
133
|
+
this.addModal = true
|
|
134
|
+
},
|
|
135
|
+
inputChange (type) {
|
|
136
|
+
if (this.addData.f_amount) {
|
|
137
|
+
if (type === 1) {
|
|
138
|
+
this.addData.f_due_money = (this.addData.f_amount * (this.addData.f_payment_ratio / 100)).toFixed(2)
|
|
139
|
+
// this.addData.f_due_money转为数字类型
|
|
140
|
+
this.addData.f_due_money = parseFloat(this.addData.f_due_money)
|
|
141
|
+
this.selectdata.f_contract_money = parseFloat(this.selectdata.f_contract_money)
|
|
142
|
+
if (this.addData.f_due_money > this.selectdata.f_contract_money) {
|
|
143
|
+
this.addData.f_payment_ratio = 0
|
|
144
|
+
this.addData.f_due_money = 0
|
|
145
|
+
this.$showMessage('预付款金额不能大于合同金额')
|
|
146
|
+
}
|
|
147
|
+
} else {
|
|
148
|
+
this.addData.f_payment_ratio = Math.round(this.addData.f_due_money / this.addData.f_amount * 100)
|
|
149
|
+
this.addData.f_payment_ratio = parseFloat(this.addData.f_payment_ratio)
|
|
150
|
+
if (this.addData.f_payment_ratio > 100) {
|
|
151
|
+
this.addData.f_payment_ratio = 0
|
|
152
|
+
this.addData.f_due_money = 0
|
|
153
|
+
this.$showMessage('付款比率不能大于100%')
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
updateData (row) {
|
|
159
|
+
this.addData = row
|
|
160
|
+
this.addData.f_amount = this.selectdata.f_contract_money
|
|
161
|
+
this.titleText = '修改付款预设'
|
|
162
|
+
this.addModal = true
|
|
163
|
+
},
|
|
164
|
+
delData (row) {
|
|
165
|
+
console.log('delData=========')
|
|
166
|
+
this.$resetdelete(this.$androidUtil.getProxyUrl() + '/apply/rs/entity/t_contract_charge', {id: row.id}, {
|
|
167
|
+
resolveMsg: null,
|
|
168
|
+
rejectMsg: null
|
|
169
|
+
}).then(() => {
|
|
170
|
+
this.search()
|
|
171
|
+
})
|
|
172
|
+
this.addModal = false
|
|
173
|
+
},
|
|
174
|
+
saveOrUpdate () {
|
|
175
|
+
// this.addData
|
|
176
|
+
console.log('saveOrUpdate=========')
|
|
177
|
+
this.addData.defname = this.addData.applyType
|
|
178
|
+
new HttpResetClass().load('POST', this.$androidUtil.getProxyUrl() + '/apply/rs/entity/t_contract_charge', this.addData, {
|
|
179
|
+
resolveMsg: null,
|
|
180
|
+
rejectMsg: null
|
|
181
|
+
}).then(() => {
|
|
182
|
+
this.search()
|
|
183
|
+
})
|
|
184
|
+
// 关闭弹窗
|
|
185
|
+
this.addModal = false
|
|
186
|
+
},
|
|
187
|
+
closeModal () {
|
|
188
|
+
this.addModal = false
|
|
189
|
+
},
|
|
190
|
+
search () {
|
|
191
|
+
let data = {
|
|
192
|
+
condition: `f_process_id = '${this.selectdata.f_process_id}'`
|
|
193
|
+
}
|
|
194
|
+
new HttpResetClass().load('POST', this.$androidUtil.getProxyUrl() + '/rs/sql/getContractCharge', {data: data}
|
|
195
|
+
, {resolveMsg: null, rejectMsg: null})
|
|
196
|
+
.then((res) => {
|
|
197
|
+
this.model.rows = res.data
|
|
198
|
+
})
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
ready () {
|
|
202
|
+
this.payProjects = this.$appdata.getParam(this.selectdata.f_apply_type + '付款预设')
|
|
203
|
+
this.search()
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
</script>
|
|
207
|
+
|
|
208
|
+
<style scoped>
|
|
209
|
+
|
|
210
|
+
</style>
|
|
@@ -40,13 +40,12 @@
|
|
|
40
40
|
width="100%"
|
|
41
41
|
v-model="model.f_apply_type"
|
|
42
42
|
placeholder='报建类型'
|
|
43
|
-
condition="u.f_apply_type
|
|
43
|
+
condition="u.f_apply_type in {}"
|
|
44
44
|
:value.sync="model.f_apply_type"
|
|
45
45
|
:options='$parent.$parent.applytype'
|
|
46
46
|
class="select select_list"
|
|
47
|
-
:
|
|
48
|
-
|
|
49
|
-
close-on-select ></v-select>
|
|
47
|
+
:multiple="true"
|
|
48
|
+
></v-select>
|
|
50
49
|
</div>
|
|
51
50
|
</div>
|
|
52
51
|
<div class="row form-group app-input" v-if="$parent.$parent.criteriaShow">
|
|
@@ -111,6 +110,70 @@
|
|
|
111
110
|
</datepicker>
|
|
112
111
|
</div>
|
|
113
112
|
</div>
|
|
113
|
+
<div class="row form-group app-input" v-if="$parent.$parent.criteriaShow">
|
|
114
|
+
<label class="">计划通气日期:</label>
|
|
115
|
+
<div class="col-xs-8" >
|
|
116
|
+
<datepicker id="startDate" placeholder="计划通气开始日期"
|
|
117
|
+
style="width: 100%!important;"
|
|
118
|
+
v-model="model.jihuastart"
|
|
119
|
+
:value.sync="model.jihuastart"
|
|
120
|
+
:format="'yyyy-MM-dd'"
|
|
121
|
+
:show-reset-button="true"
|
|
122
|
+
condition="u.f_reconnaissance_time >= '{}'">
|
|
123
|
+
</datepicker>
|
|
124
|
+
</div>
|
|
125
|
+
</div>
|
|
126
|
+
<div class="row form-group app-input" v-if="$parent.$parent.criteriaShow">
|
|
127
|
+
<label class="">计划通气日期:</label>
|
|
128
|
+
<div class="col-xs-8" >
|
|
129
|
+
<datepicker id="startDate" placeholder="计划通气结束日期"
|
|
130
|
+
style="width: 100%!important;"
|
|
131
|
+
v-model="model.jihuaend"
|
|
132
|
+
:value.sync="model.jihuaend"
|
|
133
|
+
:format="'yyyy-MM-dd'"
|
|
134
|
+
:show-reset-button="true"
|
|
135
|
+
condition="u.f_reconnaissance_time <= '{}'">
|
|
136
|
+
</datepicker>
|
|
137
|
+
</div>
|
|
138
|
+
</div>
|
|
139
|
+
<div class="row form-group app-input" v-if="$parent.$parent.criteriaShow">
|
|
140
|
+
<label class="">预计通气时间:</label>
|
|
141
|
+
<div class="col-xs-8" >
|
|
142
|
+
<datepicker id="startDate" placeholder="预计通气开始时间"
|
|
143
|
+
style="width: 100%!important;"
|
|
144
|
+
v-model="model.yujistart"
|
|
145
|
+
:value.sync="model.yujistart"
|
|
146
|
+
:format="'yyyy-MM-dd'"
|
|
147
|
+
:show-reset-button="true"
|
|
148
|
+
condition="u.f_yjgase_time >= '{}'">
|
|
149
|
+
</datepicker>
|
|
150
|
+
</div>
|
|
151
|
+
</div>
|
|
152
|
+
<div class="row form-group app-input" v-if="$parent.$parent.criteriaShow">
|
|
153
|
+
<label class="">预计通气时间:</label>
|
|
154
|
+
<div class="col-xs-8" >
|
|
155
|
+
<datepicker id="startDate" placeholder="预计通气结束时间"
|
|
156
|
+
style="width: 100%!important;"
|
|
157
|
+
v-model="model.yujiend"
|
|
158
|
+
:value.sync="model.yujiend"
|
|
159
|
+
:format="'yyyy-MM-dd'"
|
|
160
|
+
:show-reset-button="true"
|
|
161
|
+
condition="u.f_yjgase_time <= '{}'">
|
|
162
|
+
</datepicker>
|
|
163
|
+
</div>
|
|
164
|
+
</div>
|
|
165
|
+
<div class="row form-group app-input" v-if="$parent.$parent.criteriaShow">
|
|
166
|
+
<label class="">已收金额>=:</label>
|
|
167
|
+
<div class="col-xs-8" >
|
|
168
|
+
<input class="" v-model=model.f_cumulative_payment_money condition="u.f_cumulative_payment_money >= '{}'" />
|
|
169
|
+
</div>
|
|
170
|
+
</div>
|
|
171
|
+
<div class="row form-group app-input" v-if="$parent.$parent.criteriaShow">
|
|
172
|
+
<label class="">已收金额<=:</label>
|
|
173
|
+
<div class="col-xs-8" >
|
|
174
|
+
<input class="" v-model=model.f_cumulative_payment_money2 condition="u.f_cumulative_payment_money <= '{}'" />
|
|
175
|
+
</div>
|
|
176
|
+
</div>
|
|
114
177
|
<!-- <div class="row form-group app-input" v-if="$parent.$parent.criteriaShow">
|
|
115
178
|
<label class="">稍后处理:</label>
|
|
116
179
|
<div class="col-xs-8" >
|
|
@@ -157,6 +220,10 @@
|
|
|
157
220
|
<p class="col-xs-3 text-left font"><b>客户编号:</b></p>
|
|
158
221
|
<p :class="[ row.defname =='通气点火' && (row.f_apply_nature=='热水器' || row.f_apply_nature=='壁挂炉') ? 'redy' : (row.f_apply_nature=='热水器' || row.f_apply_nature=='壁挂炉' ? 'pred': (row.defname =='通气点火' ? 'p1':''))]" class="col-xs-9 text-left input-font">{{ row.f_userinfo_code }}</p>
|
|
159
222
|
</div>
|
|
223
|
+
<div class="col-xs-12">
|
|
224
|
+
<p class="col-xs-3 text-left font"><b>合同编号:</b></p>
|
|
225
|
+
<p class="col-xs-9 text-left input-font">{{ row.f_contract_number}}</p>
|
|
226
|
+
</div>
|
|
160
227
|
<div class="col-xs-12">
|
|
161
228
|
<p class="col-xs-3 text-left font"><b>合同金额:</b></p>
|
|
162
229
|
<p class="col-xs-9 text-left input-font">{{ row.f_contract_money}}</p>
|
|
@@ -295,7 +362,7 @@ export default {
|
|
|
295
362
|
// applyTypes:[{label:'散户报建',value:'散户报建'},{label:'工商户报建',value:'工商户报建'}],
|
|
296
363
|
criteriaShow: false,
|
|
297
364
|
// applytype: [{label: '全部', value: ''}, {label:'团购转散户',value:'团购转散户'} ], // 所有报建类型
|
|
298
|
-
defnames: [{label: '全部', value: ''}],
|
|
365
|
+
defnames: [{label: '全部', value: ''}, ...this.$appdata.getParam('办理环节')], // 流程节点
|
|
299
366
|
applyNatures: [{label: '全部', value: ''}], // 报建性质
|
|
300
367
|
laterList: [
|
|
301
368
|
{label: '全部', value: ''},
|