Browse Source

修复严重精神疾病表单部分字段无法保存问题

yezehua 5 years ago
parent
commit
939e213264
1 changed files with 8 additions and 4 deletions
  1. 8 4
      app/followup/v1/html/fangshi-detail-7.html

+ 8 - 4
app/followup/v1/html/fangshi-detail-7.html

@ -565,7 +565,7 @@
                </td>
                <td colspan="2">
                    <el-date-picker :readonly="!editable" v-model="severeMentalDisorderData.followup_next_date" value-format="yyyy-MM-dd" type="date"
					 placeholder="选择日期">
					 placeholder="选择日期" @blur="forceUpdate">
					</el-date-picker>
                </td>
            </tr>
@ -750,6 +750,7 @@
            methods: {
                getData: function () {
                    var vm = this
                    window.vm = vm
                    fangshiAPI.getFollowupSevereMentalDisorder({ followupId: this.followupId || '1' }).then(function (res) {
                        if (res.status == 200) {
                            var data = res.data
@ -760,7 +761,7 @@
                                if (data.physical_disease_type) {
                                    vm.death_reason_type_check = data.physical_disease_type.split(',')
                                }
                                vmS.dangerous_level = data.dangerous_level ? data.dangerous_level.toString() : ''
                                vmS.dangerous_level = data.dangerous_level+''
                                if (data.illusion == '1') {
                                    vm.symptom_check.push('1')
                                } if (data.communication_difficulty == '1') {
@ -832,7 +833,7 @@
                    if (vm.death_reason_type_check) {
                        vmS.physical_disease_type = vm.death_reason_type_check.join(",")
                    }
                    this.symptom_check.map(function(i) {
                    vm.symptom_check.map(function(i) {
                        if (i == '1') {
                            vmS.illusion = '1'
                        } if (i == '2') {
@ -858,7 +859,7 @@
                        } if (i == '12') {
                            vmS.other_symptom = '1'
                        }
                        this.rehabilitation_check.map(function(i) {
                        vm.rehabilitation_check.map(function(i) {
                            if (i == '1') {
                                vmS.rehabilitation_work_ability = '1'
                            } if (i == '2') {
@ -927,6 +928,9 @@
                    this.finishedBtn = msg
                    this.getStatus()
                },
                forceUpdate: function() {
                	this.$forceUpdate()
                }
            }
        })
    </script>