var template = '' var docInfo = JSON.parse(window.localStorage.getItem('wlyyAgent')) $.ajax('../../../component/statistics/LascBreastSurgeryInspectEntity/index.html', { data: {}, dataType: 'html', cache: false, timeout: 60000, async: false, error: function (res) {}, success: function (res) { template = res } }) Vue.component('lasc-breast-surgery-inspect-entity', { template: template, props: [], data: function () { return { isShowPicker: false, columns: ['非对称性腺体增厚', '乳头凹陷', '腋窝淋巴结肿大', '副乳腺', '乳腺切除术后'], pickType: '', curItem: '', isShowDatePicker: false, activeDateField: '', date: '', form: { screenId: '', //两癌筛查id receiveBreastSurgeryClinic: '2', //是否接收乳腺临床检查1拒绝2接收 surgeryClinicRefuseContent: '', surgicalClinicTreatmentSuggestions: [], // surgicalClinicTreatmentOther: '', // breastSurgeryClinicOrg: docInfo.hospitalName, //检查机构 breastSurgeryClinicUser: docInfo.name, //检查人员 breastSurgeryClinicTime: '' //检查时间 }, readonly: true, data: { value: [ { id: 28, screenId: '808080f683cb15560183cb3dfadb0000', name: null, surgicalClinicTreatmentSuggestions: '3', surgicalClinicTreatmentOther: '', breastSurgeryClinicOrg: '思明区嘉莲街道社区卫生服务中心', breastSurgeryClinicUser: '王清秀', breastSurgeryClinicTime: '2022-10-12', doctor: '361aef4891de492cb0e6a47cf9fe31f3', inspectOrgCode: '3502110100', inspectUserCode: '361aef4891de492cb0e6a47cf9fe31f3', receiveBreastSurgeryClinic: '1', surgeryClinicRefuseContent: null } ] } } }, methods: {}, mounted() { var form = JSON.parse(JSON.stringify(this.data.value)) form.surgicalClinicTreatmentSuggestions = (form.surgicalClinicTreatmentSuggestions && form.surgicalClinicTreatmentSuggestions.split(',')) || [] this.form = _.assign(this.form, form) } })