index.js 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. var template = ''
  2. $.ajax('../../../component/statistics/LascCervicalPreliminaryScreenEntity/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-preliminary-screen-entity', {
  14. template: template,
  15. props: ['data'],
  16. data: function () {
  17. return {
  18. readonlyTwo: 1,
  19. readonly: true,
  20. isShowPicker: false,
  21. columns: [],
  22. pickType: '',
  23. curItem: '',
  24. isShowDatePicker: false,
  25. activeDateField: '',
  26. date: '',
  27. minDate: moment().add(-100, 'year').toDate(),
  28. form: {
  29. screenId: '', //两癌筛查id
  30. preliminaryScreenResults: '', //
  31. preliminaryScreenOrg: docInfo.hospitalName, //检查机构
  32. preliminaryScreenUser: docInfo.name, //检查人员
  33. preliminaryScreenTime: moment().format('YYYY-MM-DD') //检查时间
  34. }
  35. }
  36. },
  37. methods: {},
  38. mounted() {
  39. var vm = this
  40. this.form.screenId = this.data.screenId
  41. if (this.data.value && this.data.value.length) {
  42. var form = JSON.parse(JSON.stringify(this.data.value))
  43. form.forEach(function (v) {
  44. v.tbsResult = vm.tbsResultList[Number(v.tbsResult) - 1]
  45. })
  46. this.form.list = form
  47. vm.cytoTubeNum = vm.data.value[0].cytoTubeNum
  48. }
  49. }
  50. })