safecheck-client 4.0.0-63 → 4.0.0-65
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/components/android/AndroidDefectDetails.vue +725 -725
- package/src/components/android/Insurance/PhoneInsurancePurchaseDetail.vue +280 -280
- package/src/filiale/jinhong/android/PhoneInsurancePurchaseDetail.vue +437 -437
- package/src/filiale/jinhong/android/PhoneInsuranceRecordList.vue +346 -346
- package/src/filiale/meihekou/android/PhoneInsurancePurchaseDetail.vue +293 -0
- package/src/filiale/meihekou/android/SafecheckOrderV.vue +2400 -2400
- package/src/filiale/meihekou/android.js +20 -19
- package/src/filiale/qingjian/pc/NewCheckpaper.vue +5 -11
@@ -1,437 +1,437 @@
|
|
1
|
-
<template>
|
2
|
-
<div class="auto clearfix">
|
3
|
-
<div class="row app-row col-xs-12 col-sm-6 col-md-6">
|
4
|
-
<div class="col-xs-4 col-sm-4 col-md-4">
|
5
|
-
<img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
|
6
|
-
<span class="text-left font">客户编号</span>
|
7
|
-
</div>
|
8
|
-
<div class="col-xs-8 col-sm-8 col-md-8">
|
9
|
-
<p class="text-left show-font">{{ model.f_userinfo_code }}</p>
|
10
|
-
</div>
|
11
|
-
</div>
|
12
|
-
<div class="row app-row col-xs-12 col-sm-6 col-md-6">
|
13
|
-
<div class="col-xs-4 col-sm-4 col-md-4">
|
14
|
-
<img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
|
15
|
-
<span class="text-left font">客户姓名</span>
|
16
|
-
</div>
|
17
|
-
<div class="col-xs-8 col-sm-8 col-md-8">
|
18
|
-
<input v-model="model.f_user_name" class="form-control show-font" placeholder="请输入客户姓名" type="text">
|
19
|
-
</div>
|
20
|
-
</div>
|
21
|
-
<div class="row app-row col-xs-12 col-sm-12 col-md-12">
|
22
|
-
<div class="col-xs-4 col-sm-2 col-md-2">
|
23
|
-
<img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
|
24
|
-
<span class="text-left font">客户地址</span>
|
25
|
-
</div>
|
26
|
-
<div class="col-xs-8 col-sm-10 col-md-10">
|
27
|
-
<input v-model="model.f_address" class="form-control show-font" placeholder="请输入客户地址" type="text">
|
28
|
-
</div>
|
29
|
-
</div>
|
30
|
-
<div class="row app-row col-xs-12 col-sm-6 col-md-6">
|
31
|
-
<div class="col-xs-4 col-sm-4 col-md-4">
|
32
|
-
<img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
|
33
|
-
<span class="text-left font">客户电话</span>
|
34
|
-
</div>
|
35
|
-
<div class="col-xs-8 col-sm-8 col-md-8">
|
36
|
-
<input v-model="model.f_user_phone" class="form-control show-font" placeholder="请输入电话号码" type="number">
|
37
|
-
</div>
|
38
|
-
</div>
|
39
|
-
<div class="row app-row col-xs-12 col-sm-6 col-md-6">
|
40
|
-
<div class="col-xs-4 col-sm-4 col-md-4">
|
41
|
-
<img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
|
42
|
-
<span class="text-left font">证件类型</span>
|
43
|
-
</div>
|
44
|
-
<div class="col-xs-8 col-sm-8 col-md-8">
|
45
|
-
<v-select v-model="model.f_id_type" :options="idTypeOptions"
|
46
|
-
:value-single="true" :value.sync="model.f_id_type"
|
47
|
-
close-on-select placeholder="请选择证件类型"
|
48
|
-
style="width: 100%">
|
49
|
-
</v-select>
|
50
|
-
</div>
|
51
|
-
</div>
|
52
|
-
<div class="row app-row col-xs-12 col-sm-6 col-md-6">
|
53
|
-
<div class="col-xs-4 col-sm-4 col-md-4">
|
54
|
-
<img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
|
55
|
-
<span class="text-left font">证件号码</span>
|
56
|
-
</div>
|
57
|
-
<div class="col-xs-8 col-sm-8 col-md-8">
|
58
|
-
<input v-model="model.f_idnumber" class="form-control show-font" placeholder="请输入证件号码" type="text">
|
59
|
-
</div>
|
60
|
-
</div>
|
61
|
-
<div class="row app-row col-xs-12 col-sm-6 col-md-6">
|
62
|
-
<div class="col-xs-4 col-sm-4 col-md-4">
|
63
|
-
<img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
|
64
|
-
<span class="text-left font">保单号</span>
|
65
|
-
</div>
|
66
|
-
<div class="col-xs-8 col-sm-8 col-md-8">
|
67
|
-
<input v-model="model.f_insurance_number" class="form-control show-font" placeholder="请输入保单号" type="number">
|
68
|
-
</div>
|
69
|
-
</div>
|
70
|
-
<div class="row app-row col-xs-12 col-sm-6 col-md-6">
|
71
|
-
<div class="col-xs-4 col-sm-4 col-md-4">
|
72
|
-
<img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
|
73
|
-
<span class="text-left font">上期保费截至日期</span>
|
74
|
-
</div>
|
75
|
-
<div class="col-xs-8 col-sm-8 col-md-8">
|
76
|
-
<p class="text-left show-font">{{ model.f_last_insexpiration_date }}</p>
|
77
|
-
</div>
|
78
|
-
</div>
|
79
|
-
<div class="row app-row col-xs-12 col-sm-6 col-md-6">
|
80
|
-
<div class="col-xs-4 col-sm-4 col-md-4">
|
81
|
-
<img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
|
82
|
-
<span class="text-left font">投保日期</span>
|
83
|
-
</div>
|
84
|
-
<div class="col-xs-8 col-sm-8 col-md-8">
|
85
|
-
<datepicker v-model="model.f_ins_start_date" :format="'yyyy-MM-dd'" :value.sync="model.f_ins_start_date"
|
86
|
-
placeholder="请选择投保日期" style="width: 60%" @change="changeExpirationDate">
|
87
|
-
</datepicker>
|
88
|
-
</div>
|
89
|
-
</div>
|
90
|
-
<div class="row app-row col-xs-12 col-sm-6 col-md-6">
|
91
|
-
<div class="col-xs-4 col-sm-4 col-md-4">
|
92
|
-
<img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
|
93
|
-
<span class="text-left font">购买年限</span>
|
94
|
-
</div>
|
95
|
-
<div class="col-xs-8 col-sm-8 col-md-8">
|
96
|
-
<input v-model="model.f_salecount" class="form-control show-font" placeholder="购买年限" style="width: 60%"
|
97
|
-
type="number" @change="changeExpirationDate">
|
98
|
-
</div>
|
99
|
-
</div>
|
100
|
-
<div class="row app-row col-xs-12 col-sm-6 col-md-6">
|
101
|
-
<div class="col-xs-4 col-sm-4 col-md-4">
|
102
|
-
<img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
|
103
|
-
<span class="text-left font">购买日期</span>
|
104
|
-
</div>
|
105
|
-
<div class="col-xs-8 col-sm-8 col-md-8">
|
106
|
-
<datepicker v-model="create_date" :format="'yyyy-MM-dd'" :value.sync="create_date"
|
107
|
-
placeholder="购买日期" style="width: 60%">
|
108
|
-
</datepicker>
|
109
|
-
</div>
|
110
|
-
</div>
|
111
|
-
<div class="row app-row col-xs-12 col-sm-6 col-md-6">
|
112
|
-
<div class="col-xs-4 col-sm-4 col-md-4">
|
113
|
-
<img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
|
114
|
-
<span class="text-left font">到期日期</span>
|
115
|
-
</div>
|
116
|
-
<div class="col-xs-8 col-sm-8 col-md-8">
|
117
|
-
<datepicker v-model="model.f_expiration_date" :format="'yyyy-MM-dd'" :value.sync="model.f_expiration_date"
|
118
|
-
placeholder="到期日期" style="width: 60%">
|
119
|
-
</datepicker>
|
120
|
-
</div>
|
121
|
-
</div>
|
122
|
-
<div class="row app-row col-xs-12 col-sm-6 col-md-6">
|
123
|
-
<div class="col-xs-4 col-sm-4 col-md-4">
|
124
|
-
<img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
|
125
|
-
<span class="text-left font">保险公司</span>
|
126
|
-
</div>
|
127
|
-
<div class="col-xs-8 col-sm-8 col-md-8">
|
128
|
-
<v-select v-model="model.f_insurance_company" :options="insurance_companys"
|
129
|
-
:value-single="true" :value.sync="model.f_insurance_company"
|
130
|
-
close-on-select placeholder="保险公司"
|
131
|
-
style="width: 100%">
|
132
|
-
</v-select>
|
133
|
-
</div>
|
134
|
-
</div>
|
135
|
-
<div class="row app-row col-xs-12 col-sm-6 col-md-6">
|
136
|
-
<div class="col-xs-4 col-sm-4 col-md-4">
|
137
|
-
<img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
|
138
|
-
<span class="text-left font">保险险种</span>
|
139
|
-
</div>
|
140
|
-
<div class="col-xs-8 col-sm-8 col-md-8">
|
141
|
-
<v-select v-model="model.f_insurance_type" :options="insurance_types"
|
142
|
-
:value-single="true" :value.sync="model.f_insurance_type"
|
143
|
-
close-on-select placeholder="保险险种"
|
144
|
-
style="width: 100%">
|
145
|
-
</v-select>
|
146
|
-
</div>
|
147
|
-
</div>
|
148
|
-
<div class="row app-row col-xs-12 col-sm-6 col-md-6">
|
149
|
-
<div class="col-xs-4 col-sm-4 col-md-4">
|
150
|
-
<img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
|
151
|
-
<span class="text-left font">金额</span>
|
152
|
-
</div>
|
153
|
-
<div class="col-xs-8 col-sm-8 col-md-8">
|
154
|
-
<input v-model="model.f_money" class="form-control show-font" placeholder="请输入金额" type="number">
|
155
|
-
</div>
|
156
|
-
</div>
|
157
|
-
<div class="row app-row col-xs-12 col-sm-6 col-md-6">
|
158
|
-
<div class="col-xs-4 col-sm-4 col-md-4">
|
159
|
-
<img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
|
160
|
-
<span class="text-left font">与投保人关系</span>
|
161
|
-
</div>
|
162
|
-
<div class="col-xs-8 col-sm-8 col-md-8">
|
163
|
-
<v-select v-model="model.f_relationship" :options="relationshipOptions"
|
164
|
-
:value-single="true" :value.sync="model.f_relationship"
|
165
|
-
close-on-select placeholder="请选择关系"
|
166
|
-
style="width: 100%">
|
167
|
-
</v-select>
|
168
|
-
</div>
|
169
|
-
</div>
|
170
|
-
<div class="row app-row col-xs-12 col-sm-6 col-md-6">
|
171
|
-
<div class="col-xs-4 col-sm-4 col-md-4">
|
172
|
-
<img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
|
173
|
-
<span class="text-left font">收款方式</span>
|
174
|
-
</div>
|
175
|
-
<div class="col-xs-8 col-sm-8 col-md-8">
|
176
|
-
<v-select v-model="model.f_payment" :options="payTypes"
|
177
|
-
:value-single="true" :value.sync="model.f_payment"
|
178
|
-
close-on-select placeholder="收款方式"
|
179
|
-
style="width: 100%">
|
180
|
-
</v-select>
|
181
|
-
</div>
|
182
|
-
</div>
|
183
|
-
<div class="row app-row col-xs-12">
|
184
|
-
<div class="col-xs-4 col-sm-4 col-md-4">
|
185
|
-
<img alt="" src="../../../assets/add.png" style="width: 20px;">
|
186
|
-
<span class="text-left font">备注</span>
|
187
|
-
</div>
|
188
|
-
<div class="col-xs-8 col-sm-8 col-md-8">
|
189
|
-
<input v-model="model.f_comments" class="form-control show-font" placeholder="备注">
|
190
|
-
</div>
|
191
|
-
</div>
|
192
|
-
<div class="col-xs-12 text-center app-row">
|
193
|
-
<button class="btn btn-lg btn-font btn-color" style="width: 22%;" type="button" @click="commit()">提交</button>
|
194
|
-
</div>
|
195
|
-
</div>
|
196
|
-
</template>
|
197
|
-
<script>
|
198
|
-
import {HttpResetClass} from 'vue-client'
|
199
|
-
import * as Util from '../../../components/Util'
|
200
|
-
import Vue from 'vue'
|
201
|
-
|
202
|
-
export default {
|
203
|
-
title: '手机单户抄表',
|
204
|
-
data() {
|
205
|
-
return {
|
206
|
-
create_date: Util.getNowDate(),
|
207
|
-
isCommit: false,
|
208
|
-
insurance_types: [{label: '请选择', value: ''}, ...this.$appdata.getParam('险种')],
|
209
|
-
insurance_companys: [{label: '请选择', value: ''}, ...this.$appdata.getParam('保险公司')],
|
210
|
-
payTypes: [{label: '请选择', value: ''}, ...this.$appdata.getParam('付款方式')],
|
211
|
-
idTypeOptions: [
|
212
|
-
{label: '身份证', value: '身份证'},
|
213
|
-
{label: '军官证', value: '军官证'},
|
214
|
-
{label: '统一社会信用代码', value: '统一社会信用代码'},
|
215
|
-
{label: '港澳居民通行证', value: '港澳居民通行证'},
|
216
|
-
{label: '外国人永久居留证', value: '外国人永久居留证'},
|
217
|
-
{label: '户口本', value: '户口本'}
|
218
|
-
],
|
219
|
-
relationshipOptions: [
|
220
|
-
{label: '本人', value: '0'},
|
221
|
-
{label: '配偶', value: '1'},
|
222
|
-
{label: '父母', value: '2'},
|
223
|
-
{label: '子女', value: '3'},
|
224
|
-
{label: '其他', value: '9'}
|
225
|
-
]
|
226
|
-
}
|
227
|
-
},
|
228
|
-
props: {
|
229
|
-
model: {
|
230
|
-
type: Object,
|
231
|
-
default: {}
|
232
|
-
}
|
233
|
-
},
|
234
|
-
ready() {
|
235
|
-
new HttpResetClass().load('post', `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
|
236
|
-
data: {
|
237
|
-
items: 'ui.*,p.f_province,p.f_city,p.f_district,tu.f_user_type,tu.f_user_id,tu.version as table_version',
|
238
|
-
tablename: 't_userinfo ui left join t_user_address ua on ui.f_userinfo_id = ua.f_userinfo_id left join t_pcd p on ua.f_pcd_id = p.id left join t_userfiles tu on tu.f_userinfo_id = ui.f_userinfo_id',
|
239
|
-
condition: `ui.f_userinfo_id = '${this.model.f_userinfo_id}' and tu.f_table_state in ('正常','停用','预备')`,
|
240
|
-
orderitem: '1'
|
241
|
-
}
|
242
|
-
}).then(response => {
|
243
|
-
this.model = Object.assign({}, this.model, response.data[0])
|
244
|
-
this.model.f_last_insexpiration_date = response.data[0].f_ins_stop_date
|
245
|
-
if (response.data[0].f_user_type.includes('非民用')) {
|
246
|
-
this.model.f_relationship = '9'
|
247
|
-
} else {
|
248
|
-
this.model.f_relationship = '0'
|
249
|
-
}
|
250
|
-
if (response.data[0].f_ins_stop_date && response.data[0].f_ins_stop_date >= Util.toStandardDateString()) {
|
251
|
-
let stopDate = new Date(response.data[0].f_ins_stop_date)
|
252
|
-
stopDate.setDate(stopDate.getDate() + 1)
|
253
|
-
let year = stopDate.getFullYear()
|
254
|
-
let month = (stopDate.getMonth() + 1).toString().padStart(2, '0')
|
255
|
-
let day = stopDate.getDate().toString().padStart(2, '0')
|
256
|
-
this.model.f_ins_start_date = `${year}-${month}-${day}`
|
257
|
-
} else {
|
258
|
-
this.model.f_ins_start_date = Util.toStandardDateString()
|
259
|
-
}
|
260
|
-
// if (!this.model.province || !this.model.city || !this.model.county){
|
261
|
-
// this.$showMessage('检查档案省、市、区数据是否正常')
|
262
|
-
// }
|
263
|
-
})
|
264
|
-
this.model.f_money = ''
|
265
|
-
this.model.f_fee_type = ''
|
266
|
-
this.model.f_comments = ''
|
267
|
-
this.model.f_salecount = 1
|
268
|
-
this.model.f_insurance_number = ''
|
269
|
-
this.model.f_id_type = '身份证'
|
270
|
-
},
|
271
|
-
methods: {
|
272
|
-
async commit() {
|
273
|
-
if (!this.model.f_payment) {
|
274
|
-
this.$showMessage('收款方式未选择,请选择后重新尝试。')
|
275
|
-
return
|
276
|
-
}
|
277
|
-
if (!this.model.f_ins_start_date) {
|
278
|
-
this.$showMessage('投保日期未选择,请选择后重新尝试。')
|
279
|
-
return
|
280
|
-
}
|
281
|
-
if (!this.model.f_expiration_date) {
|
282
|
-
this.$showMessage('到期日期未选择,请选择后重新尝试。')
|
283
|
-
return
|
284
|
-
}
|
285
|
-
if (!this.model.f_insurance_type) {
|
286
|
-
this.$showMessage('保险险种未填写,请填写后重新尝试。')
|
287
|
-
return
|
288
|
-
}
|
289
|
-
if (!this.model.f_money) {
|
290
|
-
this.$showMessage('金额未填写,请填写后重新尝试。')
|
291
|
-
return
|
292
|
-
}
|
293
|
-
if (!this.model.f_id_type) {
|
294
|
-
this.$showMessage('证件类型未选择,请选择后重新尝试。')
|
295
|
-
return
|
296
|
-
}
|
297
|
-
// if (!this.model.f_idnumber) {
|
298
|
-
// this.$showMessage('证件号码未填写,请填写后重新尝试。')
|
299
|
-
// return
|
300
|
-
// }
|
301
|
-
if (!this.model.f_insurance_number) {
|
302
|
-
this.$showMessage('保单号未填写,请填写后重新尝试。')
|
303
|
-
return
|
304
|
-
}
|
305
|
-
if (!this.model.f_relationship) {
|
306
|
-
this.$showMessage('与投保人关系未选择,请选择后重新尝试。')
|
307
|
-
return
|
308
|
-
}
|
309
|
-
let data = {
|
310
|
-
"begin_date": this.model.f_ins_start_date,// 保单开始日期 yyyy-mm-dd
|
311
|
-
"insure_period_display": `${this.model.f_salecount}年`,// 保期
|
312
|
-
"user_name": this.model.f_user_name,// 投保人姓名
|
313
|
-
"id_type": this.model.f_id_type,//证件类型
|
314
|
-
"id_number": this.model.f_idnumber,// 证件号码
|
315
|
-
"user_phone": this.model.f_user_phone,// 投保人电话
|
316
|
-
"user_address": this.model.f_address,// 投保人地址
|
317
|
-
"province": this.model.f_province,//省
|
318
|
-
"city": this.model.f_city,//市
|
319
|
-
"county": this.model.f_district,//区
|
320
|
-
"insuredList": [ //被保人信息
|
321
|
-
{
|
322
|
-
"user_name": this.model.f_user_name,// 被保人姓名
|
323
|
-
"id_type": this.model.f_id_type,//证件类型
|
324
|
-
"id_number": this.model.f_idnumber,// 证件号码
|
325
|
-
"relationship": this.model.f_relationship//与投保人关系: 0 本人 1 配偶 2 父母 3 子女 9 其他 若投保人是企业,默认传9
|
326
|
-
}
|
327
|
-
]
|
328
|
-
}
|
329
|
-
try {
|
330
|
-
let commit_data = JSON.parse(JSON.stringify(this.model))
|
331
|
-
/*const response = await new HttpResetClass().load('post', `${this.$androidUtil.getProxyUrl()}/api/af-revenue/jingSuanShi/specialToPolicy`, data)
|
332
|
-
let commit_data = JSON.parse(JSON.stringify(this.model))
|
333
|
-
if (response.data.message.includes('成功')) {
|
334
|
-
commit_data.f_serial_id = response.data.orderNo
|
335
|
-
} else {
|
336
|
-
this.$showMessage(response.data.message)
|
337
|
-
return
|
338
|
-
}*/
|
339
|
-
commit_data.f_buy_date = this.create_date
|
340
|
-
commit_data.f_total_ins_charge = 0
|
341
|
-
commit_data.f_operatorid = Vue.user.id
|
342
|
-
commit_data.f_operator = Vue.user.name
|
343
|
-
if (this.model.f_payment == '余额抵扣'){
|
344
|
-
if (this.model.f_meter_classify == '机表'){
|
345
|
-
if((this.model.f_balance -0)-this.model.f_money < 0){
|
346
|
-
this.$showMessage('当前用户账户余额不够抵扣本次收费,请选择其他的收费方式进行收费')
|
347
|
-
return
|
348
|
-
}
|
349
|
-
commit_data.f_receivable = Number(commit_data.f_money)
|
350
|
-
commit_data.f_money = 0
|
351
|
-
}else {
|
352
|
-
this.$showMessage('仅有机表用户可选择余额抵扣')
|
353
|
-
return
|
354
|
-
}
|
355
|
-
}
|
356
|
-
commit_data.f_receivable = this.model.f_money
|
357
|
-
commit_data.f_operate_date = Util.toStandardDateString()
|
358
|
-
commit_data.f_state = '有效'
|
359
|
-
commit_data.f_orgid = Vue.user.orgid
|
360
|
-
commit_data.f_orgname = Vue.user.orgs
|
361
|
-
commit_data.f_depid = Vue.user.depids
|
362
|
-
commit_data.f_depname = Vue.user.deps
|
363
|
-
await new HttpResetClass().load('post', `${this.$androidUtil.getProxyUrl()}/api/af-revenue/logic/saveInsInfo`, {data: commit_data})
|
364
|
-
this.$showMessage('提交成功')
|
365
|
-
this.$back()
|
366
|
-
} catch (error) {
|
367
|
-
this.$showMessage('提交失败')
|
368
|
-
this.isCommit = false
|
369
|
-
}
|
370
|
-
},
|
371
|
-
changeExpirationDate() {
|
372
|
-
if (this.model.f_ins_start_date && this.model.f_salecount) {
|
373
|
-
let factoryDate = new Date(this.model.f_ins_start_date);
|
374
|
-
let scrapDate = new Date(factoryDate);
|
375
|
-
scrapDate.setFullYear(factoryDate.getFullYear() + parseInt(this.model.f_salecount));
|
376
|
-
let year = scrapDate.getFullYear();
|
377
|
-
let month = (scrapDate.getMonth() + 1).toString().padStart(2, '0');
|
378
|
-
let day = (scrapDate.getDate()-1).toString().padStart(2, '0');
|
379
|
-
this.$set('model.f_expiration_date',`${year}-${month}-${day}`)
|
380
|
-
}
|
381
|
-
}
|
382
|
-
},
|
383
|
-
watch: {
|
384
|
-
'model.f_insurance_type'() {
|
385
|
-
this.model.f_money = Number(this.$appdata.getSingleValue(this.model.f_insurance_type) || 0) * Number(this.model.f_salecount)
|
386
|
-
},
|
387
|
-
'model.f_salecount'() {
|
388
|
-
this.model.f_money = Number(this.$appdata.getSingleValue(this.model.f_insurance_type) || 0) * Number(this.model.f_salecount)
|
389
|
-
}
|
390
|
-
}
|
391
|
-
}
|
392
|
-
</script>
|
393
|
-
<style scoped>
|
394
|
-
.mt-5 {
|
395
|
-
margin-top: 5px;
|
396
|
-
}
|
397
|
-
|
398
|
-
.mt-10 {
|
399
|
-
margin-top: 10px;
|
400
|
-
}
|
401
|
-
|
402
|
-
.mt-20 {
|
403
|
-
margin-top: 20px;
|
404
|
-
}
|
405
|
-
|
406
|
-
.app-row {
|
407
|
-
background-color: white;
|
408
|
-
padding: 10px 10px 0 10px;
|
409
|
-
border-bottom: 1px solid rgba(235, 235, 235, 0.5);
|
410
|
-
}
|
411
|
-
|
412
|
-
.app-row-none-border {
|
413
|
-
background-color: white;
|
414
|
-
padding: 10px 10px 0 10px;
|
415
|
-
}
|
416
|
-
|
417
|
-
.font {
|
418
|
-
font: 15px PingFang-SC-Medium;
|
419
|
-
color: #666666;
|
420
|
-
}
|
421
|
-
|
422
|
-
.show-font {
|
423
|
-
font: 15px PingFang-SC-Medium;
|
424
|
-
color: #333333
|
425
|
-
}
|
426
|
-
|
427
|
-
.btn-font {
|
428
|
-
font: 600 16px PingFang-SC-Bold;
|
429
|
-
color: #499EDF;
|
430
|
-
}
|
431
|
-
|
432
|
-
.btn-color {
|
433
|
-
background-color: #FFFFFF;
|
434
|
-
border-radius: 10px;
|
435
|
-
border: 1px solid #499EDF;
|
436
|
-
}
|
437
|
-
</style>
|
1
|
+
<template>
|
2
|
+
<div class="auto clearfix">
|
3
|
+
<div class="row app-row col-xs-12 col-sm-6 col-md-6">
|
4
|
+
<div class="col-xs-4 col-sm-4 col-md-4">
|
5
|
+
<img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
|
6
|
+
<span class="text-left font">客户编号</span>
|
7
|
+
</div>
|
8
|
+
<div class="col-xs-8 col-sm-8 col-md-8">
|
9
|
+
<p class="text-left show-font">{{ model.f_userinfo_code }}</p>
|
10
|
+
</div>
|
11
|
+
</div>
|
12
|
+
<div class="row app-row col-xs-12 col-sm-6 col-md-6">
|
13
|
+
<div class="col-xs-4 col-sm-4 col-md-4">
|
14
|
+
<img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
|
15
|
+
<span class="text-left font">客户姓名</span>
|
16
|
+
</div>
|
17
|
+
<div class="col-xs-8 col-sm-8 col-md-8">
|
18
|
+
<input v-model="model.f_user_name" class="form-control show-font" placeholder="请输入客户姓名" type="text">
|
19
|
+
</div>
|
20
|
+
</div>
|
21
|
+
<div class="row app-row col-xs-12 col-sm-12 col-md-12">
|
22
|
+
<div class="col-xs-4 col-sm-2 col-md-2">
|
23
|
+
<img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
|
24
|
+
<span class="text-left font">客户地址</span>
|
25
|
+
</div>
|
26
|
+
<div class="col-xs-8 col-sm-10 col-md-10">
|
27
|
+
<input v-model="model.f_address" class="form-control show-font" placeholder="请输入客户地址" type="text">
|
28
|
+
</div>
|
29
|
+
</div>
|
30
|
+
<div class="row app-row col-xs-12 col-sm-6 col-md-6">
|
31
|
+
<div class="col-xs-4 col-sm-4 col-md-4">
|
32
|
+
<img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
|
33
|
+
<span class="text-left font">客户电话</span>
|
34
|
+
</div>
|
35
|
+
<div class="col-xs-8 col-sm-8 col-md-8">
|
36
|
+
<input v-model="model.f_user_phone" class="form-control show-font" placeholder="请输入电话号码" type="number">
|
37
|
+
</div>
|
38
|
+
</div>
|
39
|
+
<div class="row app-row col-xs-12 col-sm-6 col-md-6">
|
40
|
+
<div class="col-xs-4 col-sm-4 col-md-4">
|
41
|
+
<img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
|
42
|
+
<span class="text-left font">证件类型</span>
|
43
|
+
</div>
|
44
|
+
<div class="col-xs-8 col-sm-8 col-md-8">
|
45
|
+
<v-select v-model="model.f_id_type" :options="idTypeOptions"
|
46
|
+
:value-single="true" :value.sync="model.f_id_type"
|
47
|
+
close-on-select placeholder="请选择证件类型"
|
48
|
+
style="width: 100%">
|
49
|
+
</v-select>
|
50
|
+
</div>
|
51
|
+
</div>
|
52
|
+
<div class="row app-row col-xs-12 col-sm-6 col-md-6">
|
53
|
+
<div class="col-xs-4 col-sm-4 col-md-4">
|
54
|
+
<img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
|
55
|
+
<span class="text-left font">证件号码</span>
|
56
|
+
</div>
|
57
|
+
<div class="col-xs-8 col-sm-8 col-md-8">
|
58
|
+
<input v-model="model.f_idnumber" class="form-control show-font" placeholder="请输入证件号码" type="text">
|
59
|
+
</div>
|
60
|
+
</div>
|
61
|
+
<div class="row app-row col-xs-12 col-sm-6 col-md-6">
|
62
|
+
<div class="col-xs-4 col-sm-4 col-md-4">
|
63
|
+
<img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
|
64
|
+
<span class="text-left font">保单号</span>
|
65
|
+
</div>
|
66
|
+
<div class="col-xs-8 col-sm-8 col-md-8">
|
67
|
+
<input v-model="model.f_insurance_number" class="form-control show-font" placeholder="请输入保单号" type="number">
|
68
|
+
</div>
|
69
|
+
</div>
|
70
|
+
<div class="row app-row col-xs-12 col-sm-6 col-md-6">
|
71
|
+
<div class="col-xs-4 col-sm-4 col-md-4">
|
72
|
+
<img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
|
73
|
+
<span class="text-left font">上期保费截至日期</span>
|
74
|
+
</div>
|
75
|
+
<div class="col-xs-8 col-sm-8 col-md-8">
|
76
|
+
<p class="text-left show-font">{{ model.f_last_insexpiration_date }}</p>
|
77
|
+
</div>
|
78
|
+
</div>
|
79
|
+
<div class="row app-row col-xs-12 col-sm-6 col-md-6">
|
80
|
+
<div class="col-xs-4 col-sm-4 col-md-4">
|
81
|
+
<img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
|
82
|
+
<span class="text-left font">投保日期</span>
|
83
|
+
</div>
|
84
|
+
<div class="col-xs-8 col-sm-8 col-md-8">
|
85
|
+
<datepicker v-model="model.f_ins_start_date" :format="'yyyy-MM-dd'" :value.sync="model.f_ins_start_date"
|
86
|
+
placeholder="请选择投保日期" style="width: 60%" @change="changeExpirationDate">
|
87
|
+
</datepicker>
|
88
|
+
</div>
|
89
|
+
</div>
|
90
|
+
<div class="row app-row col-xs-12 col-sm-6 col-md-6">
|
91
|
+
<div class="col-xs-4 col-sm-4 col-md-4">
|
92
|
+
<img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
|
93
|
+
<span class="text-left font">购买年限</span>
|
94
|
+
</div>
|
95
|
+
<div class="col-xs-8 col-sm-8 col-md-8">
|
96
|
+
<input v-model="model.f_salecount" class="form-control show-font" placeholder="购买年限" style="width: 60%"
|
97
|
+
type="number" @change="changeExpirationDate">
|
98
|
+
</div>
|
99
|
+
</div>
|
100
|
+
<div class="row app-row col-xs-12 col-sm-6 col-md-6">
|
101
|
+
<div class="col-xs-4 col-sm-4 col-md-4">
|
102
|
+
<img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
|
103
|
+
<span class="text-left font">购买日期</span>
|
104
|
+
</div>
|
105
|
+
<div class="col-xs-8 col-sm-8 col-md-8">
|
106
|
+
<datepicker v-model="create_date" :format="'yyyy-MM-dd'" :value.sync="create_date"
|
107
|
+
placeholder="购买日期" style="width: 60%">
|
108
|
+
</datepicker>
|
109
|
+
</div>
|
110
|
+
</div>
|
111
|
+
<div class="row app-row col-xs-12 col-sm-6 col-md-6">
|
112
|
+
<div class="col-xs-4 col-sm-4 col-md-4">
|
113
|
+
<img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
|
114
|
+
<span class="text-left font">到期日期</span>
|
115
|
+
</div>
|
116
|
+
<div class="col-xs-8 col-sm-8 col-md-8">
|
117
|
+
<datepicker v-model="model.f_expiration_date" :format="'yyyy-MM-dd'" :value.sync="model.f_expiration_date"
|
118
|
+
placeholder="到期日期" style="width: 60%">
|
119
|
+
</datepicker>
|
120
|
+
</div>
|
121
|
+
</div>
|
122
|
+
<div class="row app-row col-xs-12 col-sm-6 col-md-6">
|
123
|
+
<div class="col-xs-4 col-sm-4 col-md-4">
|
124
|
+
<img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
|
125
|
+
<span class="text-left font">保险公司</span>
|
126
|
+
</div>
|
127
|
+
<div class="col-xs-8 col-sm-8 col-md-8">
|
128
|
+
<v-select v-model="model.f_insurance_company" :options="insurance_companys"
|
129
|
+
:value-single="true" :value.sync="model.f_insurance_company"
|
130
|
+
close-on-select placeholder="保险公司"
|
131
|
+
style="width: 100%">
|
132
|
+
</v-select>
|
133
|
+
</div>
|
134
|
+
</div>
|
135
|
+
<div class="row app-row col-xs-12 col-sm-6 col-md-6">
|
136
|
+
<div class="col-xs-4 col-sm-4 col-md-4">
|
137
|
+
<img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
|
138
|
+
<span class="text-left font">保险险种</span>
|
139
|
+
</div>
|
140
|
+
<div class="col-xs-8 col-sm-8 col-md-8">
|
141
|
+
<v-select v-model="model.f_insurance_type" :options="insurance_types"
|
142
|
+
:value-single="true" :value.sync="model.f_insurance_type"
|
143
|
+
close-on-select placeholder="保险险种"
|
144
|
+
style="width: 100%">
|
145
|
+
</v-select>
|
146
|
+
</div>
|
147
|
+
</div>
|
148
|
+
<div class="row app-row col-xs-12 col-sm-6 col-md-6">
|
149
|
+
<div class="col-xs-4 col-sm-4 col-md-4">
|
150
|
+
<img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
|
151
|
+
<span class="text-left font">金额</span>
|
152
|
+
</div>
|
153
|
+
<div class="col-xs-8 col-sm-8 col-md-8">
|
154
|
+
<input v-model="model.f_money" class="form-control show-font" placeholder="请输入金额" type="number">
|
155
|
+
</div>
|
156
|
+
</div>
|
157
|
+
<div class="row app-row col-xs-12 col-sm-6 col-md-6">
|
158
|
+
<div class="col-xs-4 col-sm-4 col-md-4">
|
159
|
+
<img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
|
160
|
+
<span class="text-left font">与投保人关系</span>
|
161
|
+
</div>
|
162
|
+
<div class="col-xs-8 col-sm-8 col-md-8">
|
163
|
+
<v-select v-model="model.f_relationship" :options="relationshipOptions"
|
164
|
+
:value-single="true" :value.sync="model.f_relationship"
|
165
|
+
close-on-select placeholder="请选择关系"
|
166
|
+
style="width: 100%">
|
167
|
+
</v-select>
|
168
|
+
</div>
|
169
|
+
</div>
|
170
|
+
<div class="row app-row col-xs-12 col-sm-6 col-md-6">
|
171
|
+
<div class="col-xs-4 col-sm-4 col-md-4">
|
172
|
+
<img alt="" src="../../../assets/add.png" style="width: 20px;margin-bottom: 5px">
|
173
|
+
<span class="text-left font">收款方式</span>
|
174
|
+
</div>
|
175
|
+
<div class="col-xs-8 col-sm-8 col-md-8">
|
176
|
+
<v-select v-model="model.f_payment" :options="payTypes"
|
177
|
+
:value-single="true" :value.sync="model.f_payment"
|
178
|
+
close-on-select placeholder="收款方式"
|
179
|
+
style="width: 100%">
|
180
|
+
</v-select>
|
181
|
+
</div>
|
182
|
+
</div>
|
183
|
+
<div class="row app-row col-xs-12">
|
184
|
+
<div class="col-xs-4 col-sm-4 col-md-4">
|
185
|
+
<img alt="" src="../../../assets/add.png" style="width: 20px;">
|
186
|
+
<span class="text-left font">备注</span>
|
187
|
+
</div>
|
188
|
+
<div class="col-xs-8 col-sm-8 col-md-8">
|
189
|
+
<input v-model="model.f_comments" class="form-control show-font" placeholder="备注">
|
190
|
+
</div>
|
191
|
+
</div>
|
192
|
+
<div class="col-xs-12 text-center app-row">
|
193
|
+
<button class="btn btn-lg btn-font btn-color" style="width: 22%;" type="button" @click="commit()">提交</button>
|
194
|
+
</div>
|
195
|
+
</div>
|
196
|
+
</template>
|
197
|
+
<script>
|
198
|
+
import {HttpResetClass} from 'vue-client'
|
199
|
+
import * as Util from '../../../components/Util'
|
200
|
+
import Vue from 'vue'
|
201
|
+
|
202
|
+
export default {
|
203
|
+
title: '手机单户抄表',
|
204
|
+
data() {
|
205
|
+
return {
|
206
|
+
create_date: Util.getNowDate(),
|
207
|
+
isCommit: false,
|
208
|
+
insurance_types: [{label: '请选择', value: ''}, ...this.$appdata.getParam('险种')],
|
209
|
+
insurance_companys: [{label: '请选择', value: ''}, ...this.$appdata.getParam('保险公司')],
|
210
|
+
payTypes: [{label: '请选择', value: ''}, ...this.$appdata.getParam('付款方式')],
|
211
|
+
idTypeOptions: [
|
212
|
+
{label: '身份证', value: '身份证'},
|
213
|
+
{label: '军官证', value: '军官证'},
|
214
|
+
{label: '统一社会信用代码', value: '统一社会信用代码'},
|
215
|
+
{label: '港澳居民通行证', value: '港澳居民通行证'},
|
216
|
+
{label: '外国人永久居留证', value: '外国人永久居留证'},
|
217
|
+
{label: '户口本', value: '户口本'}
|
218
|
+
],
|
219
|
+
relationshipOptions: [
|
220
|
+
{label: '本人', value: '0'},
|
221
|
+
{label: '配偶', value: '1'},
|
222
|
+
{label: '父母', value: '2'},
|
223
|
+
{label: '子女', value: '3'},
|
224
|
+
{label: '其他', value: '9'}
|
225
|
+
]
|
226
|
+
}
|
227
|
+
},
|
228
|
+
props: {
|
229
|
+
model: {
|
230
|
+
type: Object,
|
231
|
+
default: {}
|
232
|
+
}
|
233
|
+
},
|
234
|
+
ready() {
|
235
|
+
new HttpResetClass().load('post', `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
|
236
|
+
data: {
|
237
|
+
items: 'ui.*,p.f_province,p.f_city,p.f_district,tu.f_user_type,tu.f_user_id,tu.version as table_version',
|
238
|
+
tablename: 't_userinfo ui left join t_user_address ua on ui.f_userinfo_id = ua.f_userinfo_id left join t_pcd p on ua.f_pcd_id = p.id left join t_userfiles tu on tu.f_userinfo_id = ui.f_userinfo_id',
|
239
|
+
condition: `ui.f_userinfo_id = '${this.model.f_userinfo_id}' and tu.f_table_state in ('正常','停用','预备')`,
|
240
|
+
orderitem: '1'
|
241
|
+
}
|
242
|
+
}).then(response => {
|
243
|
+
this.model = Object.assign({}, this.model, response.data[0])
|
244
|
+
this.model.f_last_insexpiration_date = response.data[0].f_ins_stop_date
|
245
|
+
if (response.data[0].f_user_type.includes('非民用')) {
|
246
|
+
this.model.f_relationship = '9'
|
247
|
+
} else {
|
248
|
+
this.model.f_relationship = '0'
|
249
|
+
}
|
250
|
+
if (response.data[0].f_ins_stop_date && response.data[0].f_ins_stop_date >= Util.toStandardDateString()) {
|
251
|
+
let stopDate = new Date(response.data[0].f_ins_stop_date)
|
252
|
+
stopDate.setDate(stopDate.getDate() + 1)
|
253
|
+
let year = stopDate.getFullYear()
|
254
|
+
let month = (stopDate.getMonth() + 1).toString().padStart(2, '0')
|
255
|
+
let day = stopDate.getDate().toString().padStart(2, '0')
|
256
|
+
this.model.f_ins_start_date = `${year}-${month}-${day}`
|
257
|
+
} else {
|
258
|
+
this.model.f_ins_start_date = Util.toStandardDateString()
|
259
|
+
}
|
260
|
+
// if (!this.model.province || !this.model.city || !this.model.county){
|
261
|
+
// this.$showMessage('检查档案省、市、区数据是否正常')
|
262
|
+
// }
|
263
|
+
})
|
264
|
+
this.model.f_money = ''
|
265
|
+
this.model.f_fee_type = ''
|
266
|
+
this.model.f_comments = ''
|
267
|
+
this.model.f_salecount = 1
|
268
|
+
this.model.f_insurance_number = ''
|
269
|
+
this.model.f_id_type = '身份证'
|
270
|
+
},
|
271
|
+
methods: {
|
272
|
+
async commit() {
|
273
|
+
if (!this.model.f_payment) {
|
274
|
+
this.$showMessage('收款方式未选择,请选择后重新尝试。')
|
275
|
+
return
|
276
|
+
}
|
277
|
+
if (!this.model.f_ins_start_date) {
|
278
|
+
this.$showMessage('投保日期未选择,请选择后重新尝试。')
|
279
|
+
return
|
280
|
+
}
|
281
|
+
if (!this.model.f_expiration_date) {
|
282
|
+
this.$showMessage('到期日期未选择,请选择后重新尝试。')
|
283
|
+
return
|
284
|
+
}
|
285
|
+
if (!this.model.f_insurance_type) {
|
286
|
+
this.$showMessage('保险险种未填写,请填写后重新尝试。')
|
287
|
+
return
|
288
|
+
}
|
289
|
+
if (!this.model.f_money) {
|
290
|
+
this.$showMessage('金额未填写,请填写后重新尝试。')
|
291
|
+
return
|
292
|
+
}
|
293
|
+
if (!this.model.f_id_type) {
|
294
|
+
this.$showMessage('证件类型未选择,请选择后重新尝试。')
|
295
|
+
return
|
296
|
+
}
|
297
|
+
// if (!this.model.f_idnumber) {
|
298
|
+
// this.$showMessage('证件号码未填写,请填写后重新尝试。')
|
299
|
+
// return
|
300
|
+
// }
|
301
|
+
if (!this.model.f_insurance_number) {
|
302
|
+
this.$showMessage('保单号未填写,请填写后重新尝试。')
|
303
|
+
return
|
304
|
+
}
|
305
|
+
if (!this.model.f_relationship) {
|
306
|
+
this.$showMessage('与投保人关系未选择,请选择后重新尝试。')
|
307
|
+
return
|
308
|
+
}
|
309
|
+
let data = {
|
310
|
+
"begin_date": this.model.f_ins_start_date,// 保单开始日期 yyyy-mm-dd
|
311
|
+
"insure_period_display": `${this.model.f_salecount}年`,// 保期
|
312
|
+
"user_name": this.model.f_user_name,// 投保人姓名
|
313
|
+
"id_type": this.model.f_id_type,//证件类型
|
314
|
+
"id_number": this.model.f_idnumber,// 证件号码
|
315
|
+
"user_phone": this.model.f_user_phone,// 投保人电话
|
316
|
+
"user_address": this.model.f_address,// 投保人地址
|
317
|
+
"province": this.model.f_province,//省
|
318
|
+
"city": this.model.f_city,//市
|
319
|
+
"county": this.model.f_district,//区
|
320
|
+
"insuredList": [ //被保人信息
|
321
|
+
{
|
322
|
+
"user_name": this.model.f_user_name,// 被保人姓名
|
323
|
+
"id_type": this.model.f_id_type,//证件类型
|
324
|
+
"id_number": this.model.f_idnumber,// 证件号码
|
325
|
+
"relationship": this.model.f_relationship//与投保人关系: 0 本人 1 配偶 2 父母 3 子女 9 其他 若投保人是企业,默认传9
|
326
|
+
}
|
327
|
+
]
|
328
|
+
}
|
329
|
+
try {
|
330
|
+
let commit_data = JSON.parse(JSON.stringify(this.model))
|
331
|
+
/*const response = await new HttpResetClass().load('post', `${this.$androidUtil.getProxyUrl()}/api/af-revenue/jingSuanShi/specialToPolicy`, data)
|
332
|
+
let commit_data = JSON.parse(JSON.stringify(this.model))
|
333
|
+
if (response.data.message.includes('成功')) {
|
334
|
+
commit_data.f_serial_id = response.data.orderNo
|
335
|
+
} else {
|
336
|
+
this.$showMessage(response.data.message)
|
337
|
+
return
|
338
|
+
}*/
|
339
|
+
commit_data.f_buy_date = this.create_date
|
340
|
+
commit_data.f_total_ins_charge = 0
|
341
|
+
commit_data.f_operatorid = Vue.user.id
|
342
|
+
commit_data.f_operator = Vue.user.name
|
343
|
+
if (this.model.f_payment == '余额抵扣'){
|
344
|
+
if (this.model.f_meter_classify == '机表'){
|
345
|
+
if((this.model.f_balance -0)-this.model.f_money < 0){
|
346
|
+
this.$showMessage('当前用户账户余额不够抵扣本次收费,请选择其他的收费方式进行收费')
|
347
|
+
return
|
348
|
+
}
|
349
|
+
commit_data.f_receivable = Number(commit_data.f_money)
|
350
|
+
commit_data.f_money = 0
|
351
|
+
}else {
|
352
|
+
this.$showMessage('仅有机表用户可选择余额抵扣')
|
353
|
+
return
|
354
|
+
}
|
355
|
+
}
|
356
|
+
commit_data.f_receivable = this.model.f_money
|
357
|
+
commit_data.f_operate_date = Util.toStandardDateString()
|
358
|
+
commit_data.f_state = '有效'
|
359
|
+
commit_data.f_orgid = Vue.user.orgid
|
360
|
+
commit_data.f_orgname = Vue.user.orgs
|
361
|
+
commit_data.f_depid = Vue.user.depids
|
362
|
+
commit_data.f_depname = Vue.user.deps
|
363
|
+
await new HttpResetClass().load('post', `${this.$androidUtil.getProxyUrl()}/api/af-revenue/logic/saveInsInfo`, {data: commit_data})
|
364
|
+
this.$showMessage('提交成功')
|
365
|
+
this.$back()
|
366
|
+
} catch (error) {
|
367
|
+
this.$showMessage('提交失败')
|
368
|
+
this.isCommit = false
|
369
|
+
}
|
370
|
+
},
|
371
|
+
changeExpirationDate() {
|
372
|
+
if (this.model.f_ins_start_date && this.model.f_salecount) {
|
373
|
+
let factoryDate = new Date(this.model.f_ins_start_date);
|
374
|
+
let scrapDate = new Date(factoryDate);
|
375
|
+
scrapDate.setFullYear(factoryDate.getFullYear() + parseInt(this.model.f_salecount));
|
376
|
+
let year = scrapDate.getFullYear();
|
377
|
+
let month = (scrapDate.getMonth() + 1).toString().padStart(2, '0');
|
378
|
+
let day = (scrapDate.getDate()-1).toString().padStart(2, '0');
|
379
|
+
this.$set('model.f_expiration_date',`${year}-${month}-${day}`)
|
380
|
+
}
|
381
|
+
}
|
382
|
+
},
|
383
|
+
watch: {
|
384
|
+
'model.f_insurance_type'() {
|
385
|
+
this.model.f_money = Number(this.$appdata.getSingleValue(this.model.f_insurance_type) || 0) * Number(this.model.f_salecount)
|
386
|
+
},
|
387
|
+
'model.f_salecount'() {
|
388
|
+
this.model.f_money = Number(this.$appdata.getSingleValue(this.model.f_insurance_type) || 0) * Number(this.model.f_salecount)
|
389
|
+
}
|
390
|
+
}
|
391
|
+
}
|
392
|
+
</script>
|
393
|
+
<style scoped>
|
394
|
+
.mt-5 {
|
395
|
+
margin-top: 5px;
|
396
|
+
}
|
397
|
+
|
398
|
+
.mt-10 {
|
399
|
+
margin-top: 10px;
|
400
|
+
}
|
401
|
+
|
402
|
+
.mt-20 {
|
403
|
+
margin-top: 20px;
|
404
|
+
}
|
405
|
+
|
406
|
+
.app-row {
|
407
|
+
background-color: white;
|
408
|
+
padding: 10px 10px 0 10px;
|
409
|
+
border-bottom: 1px solid rgba(235, 235, 235, 0.5);
|
410
|
+
}
|
411
|
+
|
412
|
+
.app-row-none-border {
|
413
|
+
background-color: white;
|
414
|
+
padding: 10px 10px 0 10px;
|
415
|
+
}
|
416
|
+
|
417
|
+
.font {
|
418
|
+
font: 15px PingFang-SC-Medium;
|
419
|
+
color: #666666;
|
420
|
+
}
|
421
|
+
|
422
|
+
.show-font {
|
423
|
+
font: 15px PingFang-SC-Medium;
|
424
|
+
color: #333333
|
425
|
+
}
|
426
|
+
|
427
|
+
.btn-font {
|
428
|
+
font: 600 16px PingFang-SC-Bold;
|
429
|
+
color: #499EDF;
|
430
|
+
}
|
431
|
+
|
432
|
+
.btn-color {
|
433
|
+
background-color: #FFFFFF;
|
434
|
+
border-radius: 10px;
|
435
|
+
border: 1px solid #499EDF;
|
436
|
+
}
|
437
|
+
</style>
|