index.js 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. var template = ''
  2. var docInfo = JSON.parse(window.localStorage.getItem('docInfo'))
  3. $.ajax('../../../component/statistics/LascCervicalFinalDiagnosisEntity/index.html', {
  4. data: {},
  5. dataType: 'html',
  6. cache: false,
  7. timeout: 60000,
  8. async: false,
  9. error: function (res) {},
  10. success: function (res) {
  11. template = res
  12. }
  13. })
  14. Vue.component('lasc-cervical-final-diagnosis-entity', {
  15. props: ['data'],
  16. data: function () {
  17. return {
  18. readonlyTwo: 1,
  19. readonly: true,
  20. isShowPicker: false,
  21. pathologicalShowDatePicker: false,
  22. columns: [],
  23. pickType: '',
  24. curItem: '',
  25. pathologicalCurItem: '',
  26. pathologicalPickType: '',
  27. pathologicalDate: '',
  28. isShowDatePicker: false,
  29. activeDateField: '',
  30. date: '',
  31. form: {
  32. screenId: '', //两癌筛查id
  33. finalDiagnosisResult: '1', //最后诊断
  34. finalDiagnosisAbnormal: [], //最后诊断 - 异常内容
  35. finalDiagnosisMalignantTumors: '', //最后诊断 - 异常内容 - 其他恶性肿瘤说明
  36. finalDiagnosisOtherAbnormal: '', //最后诊断 - 异常内容 - 其他异常描述
  37. finalDiagnosisOrg: docInfo.hospitalName, //检查机构
  38. finalDiagnosisUser: docInfo.name, //检查人员
  39. finalDiagnosisTime: '', //检查时间
  40. cervicalLesionsFollowStatus: '', //宫颈病变随访情况
  41. cervicalLesionsTreatment: '', //宫颈病变接受治疗
  42. cervicalLesionsUnbehandeltReason: '', //宫颈病变接受治疗 - 未接收治疗原因
  43. cervicalLesionsTreatmentMethod: '', //治疗方法
  44. cervicalLesionsTreatmentOther: '', //治疗方法 - 其他
  45. followUpOrg: '', //治疗机构
  46. followUpTime: '', //治疗日期
  47. acceptPathologicalExamination: '', //接受组织病理学检查
  48. refusePathologicalExaminationReason: '', //未接受检查的原因
  49. refusePathologicalExaminationReasonOther: '', // 未接受检查的其他原因
  50. pathologicalExaminationResult: [], //组织病理学检查结果
  51. pathologicalExaminationAbnormalOther: '', //组织病理学其他描述
  52. pathologicalExaminationOrg: docInfo.hospitalName, // 检查机构
  53. pathologicalExaminationUser: docInfo.name, //检查人员
  54. pathologicalExaminationTime: '' //检查时间
  55. }
  56. }
  57. },
  58. template: template,
  59. mounted() {
  60. var form = JSON.parse(JSON.stringify(this.data.value))
  61. console.log(form, 'formformform111111111111111')
  62. if (this.readonly && !form.finalDiagnosisOrg) {
  63. this.form = {
  64. screenId: '', //两癌筛查id
  65. finalDiagnosisResult: '', //最后诊断
  66. finalDiagnosisAbnormal: [], //最后诊断 - 异常内容
  67. finalDiagnosisMalignantTumors: '', //最后诊断 - 异常内容 - 其他恶性肿瘤说明
  68. finalDiagnosisOtherAbnormal: '', //最后诊断 - 异常内容 - 其他异常描述
  69. finalDiagnosisOrg: '', //检查机构
  70. finalDiagnosisUser: '', //检查人员
  71. finalDiagnosisTime: '', //检查时间
  72. cervicalLesionsFollowStatus: '', //宫颈病变随访情况
  73. cervicalLesionsTreatment: '', //宫颈病变接受治疗
  74. cervicalLesionsUnbehandeltReason: '', //宫颈病变接受治疗 - 未接收治疗原因
  75. cervicalLesionsTreatmentMethod: '', //治疗方法
  76. cervicalLesionsTreatmentOther: '', //治疗方法 - 其他
  77. followUpOrg: '', //治疗机构
  78. followUpTime: '', //治疗日期
  79. acceptPathologicalExamination: '', //接受组织病理学检查
  80. refusePathologicalExaminationReason: '', //未接受检查的原因
  81. refusePathologicalExaminationReasonOther: '', // 未接受检查的其他原因
  82. pathologicalExaminationResult: [], //组织病理学检查结果
  83. pathologicalExaminationAbnormalOther: '', //组织病理学其他描述
  84. pathologicalExaminationOrg: '', // 检查机构
  85. pathologicalExaminationUser: '', //检查人员
  86. pathologicalExaminationTime: '' //检查时间
  87. }
  88. } else {
  89. console.log(form, 'formformform')
  90. form.finalDiagnosisAbnormal = (form.finalDiagnosisAbnormal && form.finalDiagnosisAbnormal.split(',')) || []
  91. form.pathologicalExaminationResult = (form.pathologicalExaminationResult && form.pathologicalExaminationResult.split(',')) || []
  92. this.form = _.assign(this.form, form)
  93. this.form.screenId = this.data.screenId
  94. }
  95. },
  96. methods: {}
  97. })