198 lines
		
	
	
		
			5.6 KiB
		
	
	
	
		
			Plaintext
		
	
	
			
		
		
	
	
			198 lines
		
	
	
		
			5.6 KiB
		
	
	
	
		
			Plaintext
		
	
	
| <template>
 | |
|   <el-form
 | |
|     ref="feedBackForm"
 | |
|     v-loading="loading"
 | |
|     :model="form"
 | |
|     label-width="150px"
 | |
|     size="small"
 | |
|     :rules="rules"
 | |
|   >
 | |
|     <div class="base-dialog-body">
 | |
|       <el-form-item
 | |
|         label="是否认可医学反馈"
 | |
|         prop="DoctorUserIdeaEnum"
 | |
|       >
 | |
|         <el-radio-group
 | |
|           v-model="form.DoctorUserIdeaEnum"
 | |
|         >
 | |
|           <el-radio
 | |
|             v-for="item of $d.MedicalReviewDoctorUserIdea"
 | |
|             :key="item.id"
 | |
|             :label="item.value"
 | |
|           >
 | |
|             {{ item.label }}
 | |
|           </el-radio>
 | |
|         </el-radio-group>
 | |
|       </el-form-item>
 | |
| 
 | |
|       <!-- 类型 -->
 | |
|       <el-form-item
 | |
|         v-if="form.DoctorUserIdeaEnum===2"
 | |
|         label="原因"
 | |
|         prop="DisagreeReason"
 | |
|       >
 | |
|         <el-input
 | |
|           v-model="form.DisagreeReason"
 | |
|         />
 | |
|       </el-form-item>
 | |
|       <!-- 是否申请重阅 -->
 | |
|       <el-form-item
 | |
|         v-if="form.DoctorUserIdeaEnum===1"
 | |
|         label="是否申请重阅"
 | |
|         prop="IsApplyHeavyReading"
 | |
|       >
 | |
|         <el-radio-group
 | |
|           v-model="form.IsApplyHeavyReading"
 | |
|         >
 | |
|           <el-radio
 | |
|             v-for="item of $d.YesOrNo"
 | |
|             :key="`IsApplyHeavyReading${item.value}`"
 | |
|             :label="item.value"
 | |
|           >
 | |
|             {{ item.label }}
 | |
|           </el-radio>
 | |
|         </el-radio-group>
 | |
|       </el-form-item>
 | |
| 
 | |
|       <el-form-item
 | |
|         v-if="form.IsApplyHeavyReading"
 | |
|         label="申请原因"
 | |
|         prop="ReReadingReason"
 | |
|         :rules="[
 | |
|           { required: true, message: $t('common:ruleMessage:select')},
 | |
|         ]"
 | |
|       >
 | |
|         <el-radio-group v-model="form.ReReadingReason">
 | |
|           <!-- 问题已解决 -->
 | |
|           <el-radio label="阅片记录错误" />
 | |
|           <!-- 问题无法解决强制关闭质疑 -->
 | |
|           <el-radio label="其他" />
 | |
|         </el-radio-group>
 | |
|       </el-form-item>
 | |
|       <!-- 原因 -->
 | |
|       <el-form-item
 | |
|         v-if="form.ReReadingReason === '其他'"
 | |
|         label="备注"
 | |
|         prop="OtherReason"
 | |
|         :rules="[
 | |
|           { required: true, message: this.$t('common:ruleMessage:specify'), trigger: 'blur' },
 | |
|           { max: 500, message: `${this.$t('common:ruleMessage:maxLength')} 500` }
 | |
|         ]"
 | |
|       >
 | |
|         <el-input
 | |
|           v-model="form.OtherReason"
 | |
|           type="textarea"
 | |
|           :autosize="{ minRows: 2, maxRows: 4}"
 | |
|           :placeholder="$t('common:ruleMessage:specify')"
 | |
|           maxlength="500"
 | |
|           show-word-limit
 | |
|         />
 | |
|       </el-form-item>
 | |
|       <el-form-item
 | |
|         v-if="form.IsApplyHeavyReading"
 | |
|         label="是否复制阅片表单"
 | |
|         prop="IsCopyOrigenalForms"
 | |
|         :rules="[
 | |
|           { required: true, message: $t('common:ruleMessage:select')},
 | |
|         ]"
 | |
|       >
 | |
|         <el-radio-group v-model="form.IsCopyOrigenalForms">
 | |
|           <el-radio
 | |
|             v-for="item of $d.YesOrNo"
 | |
|             :key="'IsCopyOrigenalForms' + item.value"
 | |
|             :label="item.value"
 | |
|           >
 | |
|             {{ item.label }}
 | |
|           </el-radio>
 | |
|         </el-radio-group>
 | |
|       </el-form-item>
 | |
| 
 | |
|     </div>
 | |
|     <div class="base-dialog-footer" style="text-align:right;margin-top:10px;">
 | |
|       <el-form-item style="text-align:right;">
 | |
|         <!-- 取消 -->
 | |
|         <el-button
 | |
|           size="small"
 | |
|           type="primary"
 | |
|           @click="handleClose"
 | |
|         >
 | |
|           {{ $t('common:button:cancel') }}
 | |
|         </el-button>
 | |
|         <!-- Save -->
 | |
|         <el-button
 | |
|           size="small"
 | |
|           type="primary"
 | |
|           @click="handleSave"
 | |
|         >
 | |
|           {{ $t('common:button:save') }}
 | |
|         </el-button>
 | |
|       </el-form-item>
 | |
|     </div>
 | |
|   </el-form>
 | |
| </template>
 | |
| <script>
 | |
| import { iRSendMedicalReviewDialog } from '@/api/trials'
 | |
| export default {
 | |
|   name: 'FeedbackFrom',
 | |
|   props: {
 | |
|     taskMedicalReviewId: {
 | |
|       type: String,
 | |
|       required: true
 | |
|     }
 | |
|   },
 | |
| 
 | |
|   data() {
 | |
|     return {
 | |
|       form: {
 | |
|         TaskMedicalReviewId: '',
 | |
|         DoctorUserIdeaEnum: null,
 | |
|         DisagreeReason: '',
 | |
|         IsApplyHeavyReading: null,
 | |
|         IsCopyOrigenalForms: null,
 | |
|         RequestReReadingType: 0,
 | |
|         RequestReReadingReason: '',
 | |
|         ReReadingReason: '',
 | |
|         OtherReason: ''
 | |
|       },
 | |
|       rules: {
 | |
|         DoctorUserIdeaEnum: [{ required: true, message: this.$t('common:ruleMessage:select'), trigger: 'blur' }],
 | |
|         DisagreeReason: [{ required: true, message: this.$t('common:ruleMessage:specify'), trigger: 'blur' },
 | |
|           { max: 500, message: `${this.$t('common:ruleMessage:maxLength')} 500` }],
 | |
|         IsApplyHeavyReading: [
 | |
|           { required: true, message: this.$t('common:ruleMessage:select'), trigger: 'blur' }
 | |
|         ]
 | |
|       },
 | |
|       loading: false
 | |
|     }
 | |
|   },
 | |
|   methods: {
 | |
|     // 更新qc问题配置信息
 | |
|     handleSave() {
 | |
|       this.$refs.feedBackForm.validate(valid => {
 | |
|         if (!valid) return
 | |
|         this.loading = true
 | |
|         this.form.TaskMedicalReviewId = this.taskMedicalReviewId
 | |
|         this.form.RequestReReadingReason = this.form.OtherReason ? this.form.OtherReason : this.form.ReReadingReason
 | |
|         this.form.TrialId = this.$route.query.trialId
 | |
|         iRSendMedicalReviewDialog(this.form).then(res => {
 | |
|           this.loading = false
 | |
|           if (res.IsSuccess) {
 | |
|             // 关闭弹窗并刷新
 | |
|             this.$emit('close')
 | |
|             this.$emit('getList')
 | |
|             this.$message.success(this.$t('common:message:savedSuccessfully'))
 | |
|           }
 | |
|         }).catch(() => { this.loading = false })
 | |
|       })
 | |
|     },
 | |
|     handleClose() {
 | |
|       this.$emit('close')
 | |
|     }
 | |
|   }
 | |
| }
 | |
| </script>
 | |
| 
 | |
| <style lang="scss">
 | |
| 
 | |
| </style>
 |