| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114 | 
							- var template = ''
 
- $.ajax('../../../component/statistics/LascCervicalColposcopyFollowup/index.html', {
 
-   data: {},
 
-   dataType: 'html',
 
-   cache: false,
 
-   timeout: 60000,
 
-   async: false,
 
-   error: function (res) {},
 
-   success: function (res) {
 
-     template = res
 
-   }
 
- })
 
- Vue.component('lasc-cervical-colposcopy-followup', {
 
-   props: ['data'],
 
-   data: function () {
 
-     return {
 
-       readonlyTwo: 1,
 
-       readonly: true,
 
-       pickType: '',
 
-       curItem: '',
 
-       isShowDatePicker: false,
 
-       date: '',
 
-       minDate: moment().add(-100, 'year').toDate(),
 
-       form: {
 
-         screenId: '', //两癌筛查id
 
-         list: []
 
-       }
 
-     }
 
-   },
 
-   template: template,
 
-   watch:{
 
-     data:{
 
-       handler(newVal,oldVal){
 
-         var vm = this
 
-         if (this.data.value && this.data.value.length) {
 
-           var form = JSON.parse(JSON.stringify(this.data.value))
 
-           if (vm.isStrEmpty(form[0].examineStatus)) {
 
-             this.form.list = _.map(form, function (v) {
 
-               return _.assign(vm.getDefItem(), v)
 
-             })
 
-           } else {
 
-             _.each(form, function (m) {
 
-               m.examineCauseResultAbnormal = m.examineCauseResultAbnormal.split(',')
 
-             })
 
-             this.form.list = form
 
-           }
 
-         }
 
-       },
 
-       deep:true
 
-     }
 
-   },
 
-   created: function () {
 
-     var vm = this
 
-     if (this.data.value && this.data.value.length) {
 
-       var form = JSON.parse(JSON.stringify(this.data.value))
 
-       if (vm.isStrEmpty(form[0].examineStatus)) {
 
-         this.form.list = _.map(form, function (v) {
 
-           return _.assign(vm.getDefItem(), v)
 
-         })
 
-       } else {
 
-         _.each(form, function (m) {
 
-           m.examineCauseResultAbnormal = m.examineCauseResultAbnormal.split(',')
 
-         })
 
-         this.form.list = form
 
-       }
 
-     }
 
- },
 
-   methods: {
 
-     getDefItem: function (noDefault) {
 
-       var tmp = {
 
-         screenId: this.form.screenId,
 
-         examineStatus: '', //阴道镜检查情况
 
-         costStatus: '', //阴道镜检查费用情况
 
-         examineTimeStatus: '', //阴道镜检查时间
 
-         examineTime: '', //请选择阴道镜检查时间
 
-         colposcopyOrgStatus: '', //阴道镜检查机构
 
-         colposcopyOrg: '', //请输入阴道镜检查机构  暂时不用
 
-         colposcopyOrgName: '', //请输入阴道镜检查机构
 
-         tentativeDiagnosis: '', //阴道镜检查初步诊断
 
-         tentativeDiagnosisAbnormal: '', //阴道镜检查初步诊断异常
 
-         tentativeDiagnosisAbnormalExplain: '', //阴道镜检查初步诊断异常-其他
 
-         pathologyExamine: '', //是否需组织病理检查
 
-         acceptExamine: '', //接受组织病理学检查
 
-         notExamineCause: '', //组织病理学检查-未接受检查的原因
 
-         notExamineCauseExplain: '', //组织病理学检查-未接受检查的原因-其他
 
-         examineCauseResult: '', //组织病理学检查结果
 
-         examineCauseResultAbnormal: [], //组织病理学检查结果异常
 
-         examineCauseResultAbnormalExplain: '', //组织病理学检查结果异常-其他
 
-         colposcopyTime: '', //计划行阴道镜检查时间
 
-         notExamineCauseOther: '', //阴道镜检查情况-未接受检查的原因
 
-         notExamineCauseOtherCause: '', //阴道镜检查情况-未接受检查的原因-其他
 
-         orgName: '', //随访机构
 
-         org: '', //随访机构
 
-         doctorName: '', //随访人员
 
-         doctor: '', //随访人员
 
-         followupTime: '' //随访时间
 
-       }
 
-       if (!noDefault) {
 
-         tmp.orgName = docInfo.hospitalName
 
-         tmp.org = docInfo.hospital
 
-         tmp.doctorName = docInfo.name
 
-         tmp.doctor = docInfo.code
 
-         tmp.followupTime = moment().format('YYYY-MM-DD')
 
-       }
 
-       return tmp
 
-     },
 
-     isStrEmpty: function (str) {
 
-       return typeof str === 'undefined' || str === null || str === ''
 
-     }
 
-   }
 
- })
 
 
  |