index.js 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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: ['data'],
  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. }
  57. },
  58. methods: {},
  59. watch:{
  60. data: {
  61. handler(newVal, oldVal) {
  62. if (this.data.value && this.data.value.length && this.data.value[0].id) {
  63. var first = this.data.value[0]
  64. this.form.screenId = first.screenId
  65. this.form.id = first.id ? first.id : ''
  66. first.reviewValue = first.reviewValue ? first.reviewValue.split(',') : ''
  67. this.show = false
  68. this.form = first
  69. }
  70. },
  71. deep: true
  72. }
  73. },
  74. mounted() {
  75. }
  76. })