index.js 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. var template = ''
  2. $.ajax('../../../component/statistics/LascCervicalCytologyInspectEntityList/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-cytology-inspect-entityList', {
  14. template: template,
  15. props: ['data'],
  16. data: function () {
  17. return {
  18. readonly: true,
  19. readonlyTwo: 1,
  20. isShowPicker: false,
  21. tbsResultList: [
  22. '未见上皮内病变细胞和恶性细胞',
  23. '未明确意义的不典型鳞状上皮细胞(ASC-US)',
  24. '不典型鳞状上皮细胞-不除外高度鳞状上皮内病变(ASC-H)',
  25. '低度鳞状上皮内病变(LSIL)',
  26. '高度鳞状上皮内病变(HSIL)',
  27. '鳞状细胞癌(SCC)',
  28. '不典型腺上皮细胞(AGC) ',
  29. '不典型宫颈管腺细胞倾向瘤变',
  30. '宫颈管原位癌',
  31. '腺癌',
  32. '其他',
  33. '标本不满意',
  34. '标本不满意:上皮细胞数目太少',
  35. '标本不满意:大量炎细胞遮盖'
  36. ],
  37. columns: [],
  38. pickType: '',
  39. curItem: '',
  40. isShowDatePicker: false,
  41. activeDateField: '',
  42. date: '',
  43. // minDate: moment().add(-100, 'year').toDate(),
  44. minDate: null,
  45. form: {
  46. screenId: '', //两癌筛查id
  47. receiveCervicalCarcinomaInspect: 2, //是否接收乳腺临床检查1拒绝2接收
  48. list: []
  49. },
  50. cytoTubeNum: '',
  51. active: '',
  52. pdfUrl: ''
  53. }
  54. },
  55. methods: {},
  56. mounted() {
  57. var vm = this
  58. this.form.screenId = this.data.screenId
  59. if (this.data.value && this.data.value.length) {
  60. var form = JSON.parse(JSON.stringify(this.data.value))
  61. form.forEach(function (v) {
  62. v.tbsResult = vm.tbsResultList[Number(v.tbsResult) - 1]
  63. })
  64. this.form.list = form
  65. vm.cytoTubeNum = vm.data.value[0].cytoTubeNum
  66. }
  67. }
  68. })