index.js 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. var template = ''
  2. $.ajax('../../../component/statistics/LascBreastTreatInfo/index.html', {
  3. data: {},
  4. dataType: 'html',
  5. cache: false,
  6. timeout: 60000,
  7. async: false,
  8. error: function (res) {},
  9. success: function (res) {
  10. template = res
  11. }
  12. })
  13. Vue.component('lasc-breast-treat-info', {
  14. template: template,
  15. props: ['data'],
  16. data: function () {
  17. return {
  18. isShowPicker: false,
  19. pickType: '',
  20. curItem: '',
  21. isShowDatePicker: false,
  22. activeDateField: '',
  23. date: '',
  24. form: {
  25. screenId: '', //两癌筛查id
  26. treatPosition: '',
  27. id: '',
  28. name: '',
  29. type: [],
  30. typeOther: '',
  31. opFrontT: '',
  32. opFrontN: '',
  33. opFrontM: '',
  34. opFront: '',
  35. opAfterT: '',
  36. opAfterN: '',
  37. opAfterM: '',
  38. opAfter: '',
  39. immunohistochemicalResultsEr: '',
  40. immunohistochemicalResultsErUnknown: '',
  41. immunohistochemicalResultsPr: '',
  42. immunohistochemicalResultsPrUnknown: '',
  43. immunohistochemicalResultsHer: '',
  44. immunohistochemicalResultsKi: '',
  45. immunohistochemicalResultsKiUnknown: '',
  46. immunohistochemicalResultsFishCish: '',
  47. breastCancerSurgeryMode: [],
  48. breastCancerSurgeryModeOther: '',
  49. breastSurgeryMode: '',
  50. breastSurgeryModeOther: '',
  51. armpitSurgeryMode: [],
  52. armpitSurgeryModeOther: '',
  53. breastReconstructionMode: '',
  54. breastReconstructionModeOther: '',
  55. followupDoctor: '', //随访人员
  56. followupDate: '', //随访日期
  57. isTreat: '', // 是否治疗
  58. isTreatOtherContent: '',
  59. followupOrg: '' //随访机构
  60. },
  61. columns: [],
  62. orgColumns: [],
  63. isShowOrgsPicker: false,
  64. show: true,
  65. showType: '',
  66. required: true
  67. }
  68. },
  69. methods: {},
  70. mounted() {
  71. if (this.data.value && this.data.value.length && this.data.value[0].id) {
  72. var first = this.data.value[0]
  73. this.form.screenId = first.screenId
  74. this.form.id = first.id ? first.id : ''
  75. first.type = first.type ? first.type.split(',') : []
  76. first.breastCancerSurgeryMode = first.breastCancerSurgeryMode ? first.breastCancerSurgeryMode.split(',') : []
  77. first.armpitSurgeryMode = first.armpitSurgeryMode ? first.armpitSurgeryMode.split(',') : []
  78. this.form = first
  79. }
  80. }
  81. })