index.js 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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. watch:{
  57. data:{
  58. handler(newVal,oldVal){
  59. var vm = this
  60. this.form.screenId = this.data.screenId
  61. if (this.data.value && this.data.value.length) {
  62. var form = JSON.parse(JSON.stringify(this.data.value))
  63. form.forEach(function (v) {
  64. v.tbsResult = vm.tbsResultList[Number(v.tbsResult) - 1]
  65. })
  66. this.form.list = form
  67. vm.cytoTubeNum = vm.data.value[0].cytoTubeNum
  68. }
  69. },
  70. deep:true
  71. }
  72. },
  73. mounted() {
  74. }
  75. })