var template = '' $.ajax('../../../component/statistics/LascCervicalPreliminaryScreenEntity/index.html', { data: {}, dataType: 'html', cache: false, timeout: 60000, async: false, error: function (res) {}, success: function (res) { template = res } }) Vue.component('lasc-cervical-preliminary-screen-entity', { template: template, props: ['data'], data: function () { return { readonlyTwo: 1, readonly: true, isShowPicker: false, columns: [], pickType: '', curItem: '', isShowDatePicker: false, activeDateField: '', date: '', minDate: moment().add(-100, 'year').toDate(), form: { screenId: '', //两癌筛查id preliminaryScreenResults: '', // preliminaryScreenOrg: docInfo.hospitalName, //检查机构 preliminaryScreenUser: docInfo.name, //检查人员 preliminaryScreenTime: moment().format('YYYY-MM-DD') //检查时间 } } }, methods: {}, mounted() { var vm = this this.form.screenId = this.data.screenId if (this.data.value && this.data.value.length) { var form = JSON.parse(JSON.stringify(this.data.value)) form.forEach(function (v) { v.tbsResult = vm.tbsResultList[Number(v.tbsResult) - 1] }) this.form.list = form vm.cytoTubeNum = vm.data.value[0].cytoTubeNum } } })