index.js 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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: ['data'],
  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. }
  38. },
  39. methods: {},
  40. mounted() {
  41. var form = JSON.parse(JSON.stringify(this.data.value))
  42. form.surgicalClinicTreatmentSuggestions = (form.surgicalClinicTreatmentSuggestions && form.surgicalClinicTreatmentSuggestions.split(',')) || []
  43. this.form = _.assign(this.form, form)
  44. }
  45. })