first commit
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
window.medicalAid = {
|
||||
toFormData: v => {
|
||||
if (v.hospital_time) {
|
||||
v.hospital_time = v.hospital_time.split(",")
|
||||
}
|
||||
v.files_medical_certificate = JSON.parse(v.files_medical_certificate)
|
||||
v.files_medicare_settlement = JSON.parse(v.files_medicare_settlement)
|
||||
v.files_invoice = JSON.parse(v.files_invoice)
|
||||
v.files_summary_discharge = JSON.parse(v.files_summary_discharge)
|
||||
}
|
||||
,
|
||||
elementType: type => {
|
||||
if (type === 1) {
|
||||
return `<span v-if="type==1" class="text-primary">医疗补助</span>`
|
||||
} else if (type === 2) {
|
||||
return `<span v-if="type==2" class="text-danger">重疾补助</span>`
|
||||
} else {
|
||||
return `<span v-if="type==3" class="text-info">特殊补助</span>`
|
||||
}
|
||||
},
|
||||
med_types: [{val: 1, lab: '医疗补助'}, {val: 2, lab: '重疾补助'}]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user