index.js 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. var template = ''
  2. $.ajax('../../../component/statistics/LascBreastFollowUp/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-followUp', {
  14. template: template,
  15. props: [],
  16. data: function () {
  17. return {
  18. readonly: true,
  19. isShowPicker: false,
  20. pickType: '',
  21. curItem: '',
  22. isShowDatePicker: false,
  23. activeDateField: '',
  24. date: '',
  25. // minDate: moment().add(-100, 'year').toDate(),
  26. minDate: '',
  27. form: {
  28. screenId: '', //两癌筛查id
  29. type: '', //类型
  30. id: '',
  31. name: '',
  32. followupOrNot: '', //是否随访
  33. receiveTreat: '', //接受治疗情况
  34. subsist: '', //生存情况
  35. reviewOrNot: '', //是否复查
  36. molybdenumBiRads: '', // 钼靶分级
  37. cduBiRads: '', // 超声分级
  38. reviewValue: [], //复查内容
  39. reviewContentQita: '', // 复查内容其他
  40. clinicalInspect: '', //临床诊断
  41. followupDoctor: '', //随访人员
  42. followupDate: '', //随访日期
  43. followupOrNotOther: '' //其他
  44. },
  45. show: true,
  46. showTwo: false,
  47. isLoaded4: '0',
  48. reviewData: [
  49. { id: '1', text: '乳腺超声' },
  50. { id: '2', text: '钼靶' },
  51. { id: '3', text: '乳腺核磁共振' },
  52. { id: '4', text: '手术或活检' },
  53. { id: '5', text: '不详' },
  54. { id: '6', text: '其他' }
  55. ],
  56. data: {
  57. value: [{}]
  58. }
  59. }
  60. },
  61. methods: {},
  62. mounted() {
  63. if (this.data.value && this.data.value.length && this.data.value[0].id) {
  64. var first = this.data.value[0]
  65. this.form.screenId = first.screenId
  66. this.form.id = first.id ? first.id : ''
  67. first.reviewValue = first.reviewValue ? first.reviewValue.split(',') : ''
  68. this.show = false
  69. this.form = first
  70. }
  71. }
  72. })