index.js 4.4 KB

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