var template = '' $.ajax('../../../component/statistics/LascCervicalFinalDiagnosisEntity/index.html', { data: {}, dataType: 'html', cache: false, timeout: 60000, async: false, error: function (res) {}, success: function (res) { template = res } }) Vue.component('lasc-cervical-final-diagnosis-entity', { props: ['data'], data: function () { return { readonlyTwo: 1, readonly: true, isShowPicker: false, pathologicalShowDatePicker: false, columns: [], pickType: '', curItem: '', pathologicalCurItem: '', pathologicalPickType: '', pathologicalDate: '', isShowDatePicker: false, activeDateField: '', date: '', form: { screenId: '', //两癌筛查id finalDiagnosisResult: '1', //最后诊断 finalDiagnosisAbnormal: [], //最后诊断 - 异常内容 finalDiagnosisMalignantTumors: '', //最后诊断 - 异常内容 - 其他恶性肿瘤说明 finalDiagnosisOtherAbnormal: '', //最后诊断 - 异常内容 - 其他异常描述 finalDiagnosisOrg: docInfo.hospitalName, //检查机构 finalDiagnosisUser: docInfo.name, //检查人员 finalDiagnosisTime: '', //检查时间 cervicalLesionsFollowStatus: '', //宫颈病变随访情况 cervicalLesionsTreatment: '', //宫颈病变接受治疗 cervicalLesionsUnbehandeltReason: '', //宫颈病变接受治疗 - 未接收治疗原因 cervicalLesionsTreatmentMethod: '', //治疗方法 cervicalLesionsTreatmentOther: '', //治疗方法 - 其他 followUpOrg: '', //治疗机构 followUpTime: '', //治疗日期 acceptPathologicalExamination: '', //接受组织病理学检查 refusePathologicalExaminationReason: '', //未接受检查的原因 refusePathologicalExaminationReasonOther: '', // 未接受检查的其他原因 pathologicalExaminationResult: [], //组织病理学检查结果 pathologicalExaminationAbnormalOther: '', //组织病理学其他描述 pathologicalExaminationOrg: docInfo.hospitalName, // 检查机构 pathologicalExaminationUser: docInfo.name, //检查人员 pathologicalExaminationTime: '' //检查时间 } } }, template: template, created: function () { var form = JSON.parse(JSON.stringify(this.data.value)) if (this.readonly && !form.finalDiagnosisOrg) { this.form = { screenId: '', //两癌筛查id finalDiagnosisResult: '', //最后诊断 finalDiagnosisAbnormal: [], //最后诊断 - 异常内容 finalDiagnosisMalignantTumors: '', //最后诊断 - 异常内容 - 其他恶性肿瘤说明 finalDiagnosisOtherAbnormal: '', //最后诊断 - 异常内容 - 其他异常描述 finalDiagnosisOrg: '', //检查机构 finalDiagnosisUser: '', //检查人员 finalDiagnosisTime: '', //检查时间 cervicalLesionsFollowStatus: '', //宫颈病变随访情况 cervicalLesionsTreatment: '', //宫颈病变接受治疗 cervicalLesionsUnbehandeltReason: '', //宫颈病变接受治疗 - 未接收治疗原因 cervicalLesionsTreatmentMethod: '', //治疗方法 cervicalLesionsTreatmentOther: '', //治疗方法 - 其他 followUpOrg: '', //治疗机构 followUpTime: '', //治疗日期 acceptPathologicalExamination: '', //接受组织病理学检查 refusePathologicalExaminationReason: '', //未接受检查的原因 refusePathologicalExaminationReasonOther: '', // 未接受检查的其他原因 pathologicalExaminationResult: [], //组织病理学检查结果 pathologicalExaminationAbnormalOther: '', //组织病理学其他描述 pathologicalExaminationOrg: '', // 检查机构 pathologicalExaminationUser: '', //检查人员 pathologicalExaminationTime: '' //检查时间 } } else { console.log(form, 'formformform') form.finalDiagnosisAbnormal = (form.finalDiagnosisAbnormal && form.finalDiagnosisAbnormal.split(',')) || [] form.pathologicalExaminationResult = (form.pathologicalExaminationResult && form.pathologicalExaminationResult.split(',')) || [] this.form = _.assign(this.form, form) this.form.screenId = this.data.screenId } }, methods: {} })