safecheck-client 4.0.0-3 → 4.0.0-30
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 +132 -132
- package/src/App.vue +31 -31
- package/src/components/NewDefectList/DefectListNew.vue +663 -663
- package/src/components/Util/ImgSelfSafePlus.vue +13 -3
- package/src/components/Util/SafecheckUpload.vue +281 -281
- package/src/components/android/Insurance/PhoneInsurancePurchase.vue +175 -165
- package/src/components/android/Insurance/PhoneInsurancePurchaseDetail.vue +104 -112
- package/src/components/android/Insurance/PhoneInsuranceRecordList.vue +1 -1
- package/src/components/android/PhoneUpUserinfo.vue +20 -0
- package/src/components/android/SafecheckDevices.vue +1337 -1295
- package/src/components/paper/PaperList.vue +34 -6
- package/src/components/pc/CheckBookList.vue +3 -1
- package/src/components/pc/DefectDeal.vue +1007 -1007
- package/src/components/pc/NewCheckpaper.vue +1965 -1959
- package/src/components/pc/NewCheckpaperTemp.vue +5 -5
- package/src/components/planmanage/PlanManage.vue +6 -8
- package/src/filiale/fugou/pc/PaperDefectMain.vue +1 -1
- package/src/filiale/jinhong/android/PhoneInsurancePurchaseDetail.vue +433 -0
- package/src/filiale/jinhong/android.js +9 -0
- package/src/filiale/meihekou/android/SafecheckOrderV.vue +2286 -0
- package/src/filiale/meihekou/android/SafecheckUserInfo.vue +787 -0
- package/src/filiale/meihekou/android.js +14 -0
- package/src/filiale/meihekou/pc.js +12 -0
- package/src/filiale/yunchengminsheng/android/DailyworkloadQuery.vue +2 -2
- package/src/filiale/yunchengminsheng/android/SafecheckOrderV.vue +2 -0
- package/src/filiale/yunchengminsheng/pc/NewCheckpaper.vue +16 -5
|
@@ -572,7 +572,7 @@
|
|
|
572
572
|
}).then((res) => {
|
|
573
573
|
if (res.data.code == 200) {
|
|
574
574
|
this.loading = false;
|
|
575
|
-
this.$
|
|
575
|
+
this.$emit('showback')
|
|
576
576
|
}
|
|
577
577
|
})
|
|
578
578
|
},
|
|
@@ -599,7 +599,7 @@
|
|
|
599
599
|
this.loading = false;
|
|
600
600
|
this.message = '';
|
|
601
601
|
this.showModel = false;
|
|
602
|
-
this.$
|
|
602
|
+
this.$emit('showback')
|
|
603
603
|
}
|
|
604
604
|
})
|
|
605
605
|
},
|
|
@@ -938,16 +938,16 @@
|
|
|
938
938
|
back() {
|
|
939
939
|
if (this.role == 'inspect') {
|
|
940
940
|
if (!this.isStrat) {
|
|
941
|
-
this.$
|
|
941
|
+
this.$emit('showback')
|
|
942
942
|
return
|
|
943
943
|
} else {
|
|
944
944
|
this.savePaper(true).then(() => {
|
|
945
|
-
this.$
|
|
945
|
+
this.$emit('showback')
|
|
946
946
|
this.isStrat = false
|
|
947
947
|
})
|
|
948
948
|
}
|
|
949
949
|
} else {
|
|
950
|
-
this.$
|
|
950
|
+
this.$emit('showback')
|
|
951
951
|
}
|
|
952
952
|
},
|
|
953
953
|
checkIsStart() {
|
|
@@ -618,19 +618,17 @@
|
|
|
618
618
|
return true
|
|
619
619
|
},
|
|
620
620
|
//查询安检员selectChanged
|
|
621
|
-
async searchChecker(
|
|
621
|
+
async searchChecker(){
|
|
622
|
+
console.log(this.$login.f.orgid)
|
|
623
|
+
debugger
|
|
622
624
|
let res=await new HttpResetClass().load('POST', '/rs/search', {
|
|
623
625
|
data:{
|
|
624
|
-
source: `
|
|
625
|
-
userid: this.
|
|
626
|
+
source: `root.getResourceById($${this.$login.f.orgid}$,$organization$).getSpecialResByType($user$).where(row.getAttributes().get($rolestr$).indexOf($安检员$) != -1)`,
|
|
627
|
+
userid: this.$login.f.id
|
|
626
628
|
}
|
|
627
629
|
}, {resolveMsg: null, rejectMsg: null})
|
|
628
|
-
let arr = []
|
|
629
630
|
res.data.forEach((resRow) => {
|
|
630
|
-
|
|
631
|
-
arr.push(resRow.name)
|
|
632
|
-
this.checker.push({label:resRow.name,value:resRow})
|
|
633
|
-
}
|
|
631
|
+
this.checker.push({label:resRow.name,value:resRow})
|
|
634
632
|
})
|
|
635
633
|
},
|
|
636
634
|
//设置属性值
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
</datepicker>
|
|
104
104
|
</div>
|
|
105
105
|
<div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
|
|
106
|
-
<label class="font_normal_body"
|
|
106
|
+
<label class="font_normal_body">客户类型</label>
|
|
107
107
|
<v-select :value.sync="model.f_check_type" v-model='model.f_check_type'
|
|
108
108
|
:value-single="true" style="width: 60%"
|
|
109
109
|
class="select_list select"
|
|
@@ -0,0 +1,433 @@
|
|
|
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_ins_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_ins_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_relationship) {
|
|
302
|
+
this.$showMessage('与投保人关系未选择,请选择后重新尝试。')
|
|
303
|
+
return
|
|
304
|
+
}
|
|
305
|
+
let data = {
|
|
306
|
+
"begin_date": this.model.f_ins_start_date,// 保单开始日期 yyyy-mm-dd
|
|
307
|
+
"insure_period_display": `${this.model.f_salecount}年`,// 保期
|
|
308
|
+
"user_name": this.model.f_user_name,// 投保人姓名
|
|
309
|
+
"id_type": this.model.f_id_type,//证件类型
|
|
310
|
+
"id_number": this.model.f_idnumber,// 证件号码
|
|
311
|
+
"user_phone": this.model.f_user_phone,// 投保人电话
|
|
312
|
+
"user_address": this.model.f_address,// 投保人地址
|
|
313
|
+
"province": this.model.f_province,//省
|
|
314
|
+
"city": this.model.f_city,//市
|
|
315
|
+
"county": this.model.f_district,//区
|
|
316
|
+
"insuredList": [ //被保人信息
|
|
317
|
+
{
|
|
318
|
+
"user_name": this.model.f_user_name,// 被保人姓名
|
|
319
|
+
"id_type": this.model.f_id_type,//证件类型
|
|
320
|
+
"id_number": this.model.f_idnumber,// 证件号码
|
|
321
|
+
"relationship": this.model.f_relationship//与投保人关系: 0 本人 1 配偶 2 父母 3 子女 9 其他 若投保人是企业,默认传9
|
|
322
|
+
}
|
|
323
|
+
]
|
|
324
|
+
}
|
|
325
|
+
try {
|
|
326
|
+
let commit_data = JSON.parse(JSON.stringify(this.model))
|
|
327
|
+
/*const response = await new HttpResetClass().load('post', `${this.$androidUtil.getProxyUrl()}/api/af-revenue/jingSuanShi/specialToPolicy`, data)
|
|
328
|
+
let commit_data = JSON.parse(JSON.stringify(this.model))
|
|
329
|
+
if (response.data.message.includes('成功')) {
|
|
330
|
+
commit_data.f_serial_id = response.data.orderNo
|
|
331
|
+
} else {
|
|
332
|
+
this.$showMessage(response.data.message)
|
|
333
|
+
return
|
|
334
|
+
}*/
|
|
335
|
+
commit_data.f_buy_date = this.create_date
|
|
336
|
+
commit_data.f_total_ins_charge = 0
|
|
337
|
+
commit_data.f_operatorid = Vue.user.id
|
|
338
|
+
commit_data.f_operator = Vue.user.name
|
|
339
|
+
if (this.model.f_payment == '余额抵扣'){
|
|
340
|
+
if (this.model.f_meter_classify == '机表'){
|
|
341
|
+
if((this.model.f_balance -0)-this.model.f_money < 0){
|
|
342
|
+
this.$showMessage('当前用户账户余额不够抵扣本次收费,请选择其他的收费方式进行收费')
|
|
343
|
+
return
|
|
344
|
+
}
|
|
345
|
+
commit_data.f_receivable = Number(commit_data.f_money)
|
|
346
|
+
commit_data.f_money = 0
|
|
347
|
+
}else {
|
|
348
|
+
this.$showMessage('仅有机表用户可选择余额抵扣')
|
|
349
|
+
return
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
commit_data.f_receivable = this.model.f_money
|
|
353
|
+
commit_data.f_operate_date = Util.toStandardDateString()
|
|
354
|
+
commit_data.f_state = '有效'
|
|
355
|
+
commit_data.f_orgid = Vue.user.orgid
|
|
356
|
+
commit_data.f_orgname = Vue.user.orgs
|
|
357
|
+
commit_data.f_depid = Vue.user.depids
|
|
358
|
+
commit_data.f_depname = Vue.user.deps
|
|
359
|
+
await new HttpResetClass().load('post', `${this.$androidUtil.getProxyUrl()}/api/af-revenue/logic/saveInsInfo`, {data: commit_data})
|
|
360
|
+
this.$showMessage('提交成功')
|
|
361
|
+
this.$back()
|
|
362
|
+
} catch (error) {
|
|
363
|
+
this.$showMessage('提交失败')
|
|
364
|
+
this.isCommit = false
|
|
365
|
+
}
|
|
366
|
+
},
|
|
367
|
+
changeExpirationDate() {
|
|
368
|
+
if (this.model.f_ins_start_date && this.model.f_salecount) {
|
|
369
|
+
let factoryDate = new Date(this.model.f_ins_start_date);
|
|
370
|
+
let scrapDate = new Date(factoryDate);
|
|
371
|
+
scrapDate.setFullYear(factoryDate.getFullYear() + parseInt(this.model.f_salecount));
|
|
372
|
+
let year = scrapDate.getFullYear();
|
|
373
|
+
let month = (scrapDate.getMonth() + 1).toString().padStart(2, '0');
|
|
374
|
+
let day = (scrapDate.getDate()-1).toString().padStart(2, '0');
|
|
375
|
+
this.$set('model.f_expiration_date',`${year}-${month}-${day}`)
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
},
|
|
379
|
+
watch: {
|
|
380
|
+
'model.f_insurance_type'() {
|
|
381
|
+
this.model.f_money = Number(this.$appdata.getSingleValue(this.model.f_insurance_type) || 0) * Number(this.model.f_salecount)
|
|
382
|
+
},
|
|
383
|
+
'model.f_salecount'() {
|
|
384
|
+
this.model.f_money = Number(this.$appdata.getSingleValue(this.model.f_insurance_type) || 0) * Number(this.model.f_salecount)
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
</script>
|
|
389
|
+
<style scoped>
|
|
390
|
+
.mt-5 {
|
|
391
|
+
margin-top: 5px;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
.mt-10 {
|
|
395
|
+
margin-top: 10px;
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
.mt-20 {
|
|
399
|
+
margin-top: 20px;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
.app-row {
|
|
403
|
+
background-color: white;
|
|
404
|
+
padding: 10px 10px 0 10px;
|
|
405
|
+
border-bottom: 1px solid rgba(235, 235, 235, 0.5);
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
.app-row-none-border {
|
|
409
|
+
background-color: white;
|
|
410
|
+
padding: 10px 10px 0 10px;
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
.font {
|
|
414
|
+
font: 15px PingFang-SC-Medium;
|
|
415
|
+
color: #666666;
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
.show-font {
|
|
419
|
+
font: 15px PingFang-SC-Medium;
|
|
420
|
+
color: #333333
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
.btn-font {
|
|
424
|
+
font: 600 16px PingFang-SC-Bold;
|
|
425
|
+
color: #499EDF;
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
.btn-color {
|
|
429
|
+
background-color: #FFFFFF;
|
|
430
|
+
border-radius: 10px;
|
|
431
|
+
border: 1px solid #499EDF;
|
|
432
|
+
}
|
|
433
|
+
</style>
|