index.js 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. var template = ''
  2. var docInfo = JSON.parse(window.localStorage.getItem('wlyyAgent'))
  3. $.ajax('../../../component/statistics/LascBreastSurgeryInspectEntity/index.html', {
  4. data: {},
  5. dataType: 'html',
  6. cache: false,
  7. timeout: 60000,
  8. async: false,
  9. error: function (res) {},
  10. success: function (res) {
  11. template = res
  12. }
  13. })
  14. Vue.component('lasc-breast-surgery-inspect-entity', {
  15. template: template,
  16. props: [],
  17. data: function () {
  18. return {
  19. isShowPicker: false,
  20. columns: ['非对称性腺体增厚', '乳头凹陷', '腋窝淋巴结肿大', '副乳腺', '乳腺切除术后'],
  21. pickType: '',
  22. curItem: '',
  23. isShowDatePicker: false,
  24. activeDateField: '',
  25. date: '',
  26. form: {
  27. screenId: '', //两癌筛查id
  28. receiveBreastSurgeryClinic: '2', //是否接收乳腺临床检查1拒绝2接收
  29. surgeryClinicRefuseContent: '',
  30. surgicalClinicTreatmentSuggestions: [], //
  31. surgicalClinicTreatmentOther: '', //
  32. breastSurgeryClinicOrg: docInfo.hospitalName, //检查机构
  33. breastSurgeryClinicUser: docInfo.name, //检查人员
  34. breastSurgeryClinicTime: '' //检查时间
  35. },
  36. readonly: true,
  37. data: {
  38. value: [
  39. {
  40. id: 28,
  41. screenId: '808080f683cb15560183cb3dfadb0000',
  42. name: null,
  43. surgicalClinicTreatmentSuggestions: '3',
  44. surgicalClinicTreatmentOther: '',
  45. breastSurgeryClinicOrg: '思明区嘉莲街道社区卫生服务中心',
  46. breastSurgeryClinicUser: '王清秀',
  47. breastSurgeryClinicTime: '2022-10-12',
  48. doctor: '361aef4891de492cb0e6a47cf9fe31f3',
  49. inspectOrgCode: '3502110100',
  50. inspectUserCode: '361aef4891de492cb0e6a47cf9fe31f3',
  51. receiveBreastSurgeryClinic: '1',
  52. surgeryClinicRefuseContent: null
  53. }
  54. ]
  55. }
  56. }
  57. },
  58. methods: {},
  59. mounted() {
  60. var form = JSON.parse(JSON.stringify(this.data.value))
  61. form.surgicalClinicTreatmentSuggestions = (form.surgicalClinicTreatmentSuggestions && form.surgicalClinicTreatmentSuggestions.split(',')) || []
  62. this.form = _.assign(this.form, form)
  63. }
  64. })