index.js 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. var template = ''
  2. $.ajax('../../../component/statistics/LascCervicalGynecologicalExaminationEntityList/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-cervical-gynecological-examination-entityList', {
  14. template: template,
  15. props: [],
  16. data: function () {
  17. return {
  18. readonly: true,
  19. readonlyTwo: 1,
  20. isShowPicker: false,
  21. vulvaInspectList: ['正常', '白斑', '溃疡', '湿疣', '疱疹', '肿物', '其他'],
  22. vaginalInspectList: ['正常', '充血', '溃疡', '湿疣', '疱疹', '肿物', '其他'],
  23. secretionList: ['正常', '异味', '血性', '脓性', '泡沫样', '豆渣样', '其他'],
  24. cervixInspectList: ['正常', '触血', '息肉', '糜烂样', '菜花样', '其他'],
  25. columns: [],
  26. pickType: '',
  27. curItem: '',
  28. isShowDatePicker: false,
  29. activeDateField: '',
  30. date: '',
  31. // minDate: moment().add(-100, 'year').toDate(),
  32. minDate: null,
  33. form: {
  34. screenId: '', //两癌筛查id
  35. receiveCervicalCarcinomaInspect: '2', //是否接收乳腺临床检查1拒绝2接收
  36. list: []
  37. },
  38. data: {
  39. value: [{}]
  40. }
  41. }
  42. },
  43. methods: {},
  44. mounted() {
  45. var vm = this
  46. this.form.screenId = this.data.screenId || ''
  47. if (this.data.value && this.data.value.length) {
  48. var list = JSON.parse(JSON.stringify(this.data.value))
  49. list.forEach(function (v) {
  50. v.vulvaInspect = vm.formatList(v.vulvaInspect)
  51. v.vaginalInspect = vm.formatList(v.vaginalInspect)
  52. v.secretion = vm.formatList(v.secretion)
  53. v.cervixInspect = vm.formatList(v.cervixInspect)
  54. v.uterusInspect = vm.formatList(v.uterusInspect)
  55. v.pelvicInspect = vm.formatList(v.pelvicInspect)
  56. v.secretionInspectPathogens = vm.formatList(v.secretionInspectPathogens)
  57. v.clinicalDiagnosis = vm.formatList(v.clinicalDiagnosis)
  58. v.pelvicTendernessLocation = vm.formatList(v.pelvicTendernessLocation)
  59. v.uterusInspectTumorPosition = vm.formatList(v.uterusInspectTumorPosition)
  60. v.vaginalInspectTumorPosition = vm.formatList(v.vaginalInspectTumorPosition)
  61. v.vulvaInspectTumorPosition = vm.formatList(v.vulvaInspectTumorPosition)
  62. v.pelvicInspectTumorPosition = vm.formatList(v.pelvicInspectTumorPosition)
  63. })
  64. this.form.list = list
  65. this.form.receiveCervicalCarcinomaInspect = list[0].receiveCervicalCarcinomaInspect
  66. }
  67. }
  68. })