熊飞 2024-01-15 16:52:52 +08:00
commit 431eab7e49
16 changed files with 403 additions and 267 deletions

View File

@ -10,7 +10,7 @@ VUE_APP_IS_TEST = true
VUE_APP_LOGIN_FOR_PERMISSION = false VUE_APP_LOGIN_FOR_PERMISSION = false
# 是否开启长时间无操作锁定弹框 true:是 false:否 # 是否开启长时间无操作锁定弹框 true:是 false:否
VUE_APP_LOCK_FOR_PERMISSION = true VUE_APP_LOCK_FOR_PERMISSION = false
# 无操作锁定弹框判断时间 单位:秒 # 无操作锁定弹框判断时间 单位:秒
VUE_APP_LOCK_FOR_TIME = 360 VUE_APP_LOCK_FOR_TIME = 360

View File

@ -4,7 +4,8 @@ src/utils/*
public public
dist dist
src/* # src/*
src/views/trials/trials-panel/reading/global-review/*
src/views/dictionary/checkConfig/* src/views/dictionary/checkConfig/*
src/views/trials/trials-panel/trial-summary/* src/views/trials/trials-panel/trial-summary/*
src/main.js src/main.js

1
.gitignore vendored
View File

@ -14,3 +14,4 @@ tests/**/coverage/
*.ntvs* *.ntvs*
*.njsproj *.njsproj
*.sln *.sln
.eslintignore

View File

@ -3,19 +3,11 @@
<div class="base-dialog-body"> <div class="base-dialog-body">
<!-- --> <!-- -->
<el-form-item :label="$t('trials:staffResearch:form:lastName')" prop="LastName"> <el-form-item :label="$t('trials:staffResearch:form:lastName')" prop="LastName">
<el-input <el-input v-model="form.LastName" disabled style="width: 200px" />
v-model="form.LastName"
disabled
style="width:200px;"
/>
</el-form-item> </el-form-item>
<!-- --> <!-- -->
<el-form-item :label="$t('trials:staffResearch:form:firstName')" prop="FirstName"> <el-form-item :label="$t('trials:staffResearch:form:firstName')" prop="FirstName">
<el-input <el-input v-model="form.FirstName" disabled style="width: 200px" />
v-model="form.FirstName"
disabled
style="width:200px;"
/>
</el-form-item> </el-form-item>
<!-- 角色 --> <!-- 角色 -->
<!-- <el-form-item :label="$t('trials:staffResearch:form:role')" prop="TrialRoleCode"> <!-- <el-form-item :label="$t('trials:staffResearch:form:role')" prop="TrialRoleCode">
@ -34,27 +26,15 @@
</el-form-item> --> </el-form-item> -->
<!-- 电话号码 --> <!-- 电话号码 -->
<el-form-item :label="$t('trials:staffResearch:form:phone')" prop="Phone"> <el-form-item :label="$t('trials:staffResearch:form:phone')" prop="Phone">
<el-input <el-input v-model="form.Phone" disabled style="width: 200px" />
v-model="form.Phone"
disabled
style="width:200px;"
/>
</el-form-item> </el-form-item>
<!-- 邮箱 --> <!-- 邮箱 -->
<el-form-item :label="$t('trials:staffResearch:form:email')" prop="Email"> <el-form-item :label="$t('trials:staffResearch:form:email')" prop="Email">
<el-input <el-input v-model="form.Email" disabled style="width: 200px" />
v-model="form.Email"
disabled
style="width:200px;"
/>
</el-form-item> </el-form-item>
<!-- 单位 --> <!-- 单位 -->
<el-form-item :label="$t('trials:staffResearch:form:organization')" prop="OrganizationName"> <el-form-item :label="$t('trials:staffResearch:form:organization')" prop="OrganizationName">
<el-input <el-input v-model="form.OrganizationName" disabled style="width: 200px" />
v-model="form.OrganizationName"
disabled
style="width:200px;"
/>
</el-form-item> </el-form-item>
<!-- 是否生成账号 --> <!-- 是否生成账号 -->
<!-- <el-form-item <!-- <el-form-item
@ -69,51 +49,35 @@
</el-radio-group> </el-radio-group>
</el-form-item> --> </el-form-item> -->
<!-- 用户类型 --> <!-- 用户类型 -->
<el-form-item <el-form-item v-if="form.IsGenerateAccount" :label="$t('trials:staffResearch:form:userType')" prop="UserTypeId">
v-if="form.IsGenerateAccount" <el-select v-model="form.UserTypeId" style="width: 200px" disabled>
:label="$t('trials:staffResearch:form:userType')" <el-option v-for="item of userTypeOptions" :key="item.Id" :label="item.UserTypeShortName" :value="item.Id">
prop="UserTypeId"
>
<el-select
v-model="form.UserTypeId"
style="width:200px;"
disabled
>
<el-option
v-for="item of userTypeOptions"
:key="item.Id"
:label="item.UserTypeShortName"
:value="item.Id"
>
<span>{{ item.UserType }}</span> <span>{{ item.UserType }}</span>
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<!-- 更新状态 --> <!-- 更新状态 -->
<el-form-item <el-form-item :label="$t('trials:staffResearch:form:updateState')">
:label="$t('trials:staffResearch:form:updateState')" <el-radio-group v-model="form.IsHistoryUserDeleted" style="width: 200px">
> <el-radio v-for="item of $d.IsUserExitTrial" :key="`IsHistoryUserDeleted${item.value}`" :label="item.value">{{
<el-radio-group item.label }}</el-radio>
v-model="form.IsHistoryUserDeleted"
style="width:200px;"
>
<el-radio v-for="item of $d.IsUserExitTrial" :key="`IsHistoryUserDeleted${item.value}`" :label="item.value">{{ item.label }}</el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<el-form-item v-if="errorMsg" label=""> <el-form-item v-if="errorMsg" label="">
<span v-if="errorMsg" style="font-size: 12px;color: #f66;">{{ errorMsg }}</span> <span v-if="errorMsg" style="font-size: 12px; color: #f66">{{
errorMsg
}}</span>
</el-form-item> </el-form-item>
</div> </div>
<div class="base-dialog-footer" style="text-align:right;margin-top:10px;"> <div class="base-dialog-footer" style="text-align: right; margin-top: 10px">
<el-form-item> <el-form-item>
<!-- 取消 --> <!-- 取消 -->
<el-button size="small" type="primary" :disabled="btnLoading" @click="handleCancel"> <el-button size="small" type="primary" :disabled="btnLoading" @click="handleCancel">
{{ $t('common:button:cancel') }} {{ $t("common:button:cancel") }}
</el-button> </el-button>
<!-- 保存 --> <!-- 保存 -->
<el-button size="small" type="primary" :loading="btnLoading" @click="handleSave"> <el-button size="small" type="primary" :loading="btnLoading" @click="handleSave">
{{ $t('common:button:save') }} {{ $t("common:button:save") }}
</el-button> </el-button>
</el-form-item> </el-form-item>
</div> </div>
@ -142,7 +106,8 @@ export default {
if (value === '') { if (value === '') {
callback(new Error(this.$t('trials:researchForm:formRule:specify'))) callback(new Error(this.$t('trials:researchForm:formRule:specify')))
} else { } else {
var reg = /^[A-Za-z0-9]+([_\.][A-Za-z0-9]+)*@([A-Za-z0-9\-]+\.)+[A-Za-z]{2,6}$/ var reg =
/^[A-Za-z0-9]+([_\.][A-Za-z0-9]+)*@([A-Za-z0-9\-]+\.)+[A-Za-z]{2,6}$/
if (this.form.Email && reg.test(this.form.Email)) { if (this.form.Email && reg.test(this.form.Email)) {
this.sendDisabled = false this.sendDisabled = false
callback() callback()
@ -164,29 +129,64 @@ export default {
OrganizationName: '', OrganizationName: '',
IsGenerateAccount: false, IsGenerateAccount: false,
IsHistoryUserDeleted: '' IsHistoryUserDeleted: ''
}, },
rules: { rules: {
LastName: [ LastName: [
{ required: true, message: this.$t('trials:researchForm:formRule:specify'), trigger: 'blur' }, {
{ min: 0, max: 50, message: this.$t('trials:researchForm:formRule:maxLength'), trigger: 'blur' } required: true,
message: this.$t('trials:researchForm:formRule:specify'),
trigger: 'blur'
},
{
min: 0,
max: 50,
message: this.$t('trials:researchForm:formRule:maxLength'),
trigger: 'blur'
}
], ],
FirstName: [ FirstName: [
{ required: true, message: this.$t('trials:researchForm:formRule:specify'), trigger: 'blur' }, {
{ min: 0, max: 50, message: this.$t('trials:researchForm:formRule:maxLength'), trigger: 'blur' } required: true,
message: this.$t('trials:researchForm:formRule:specify'),
trigger: 'blur'
},
{
min: 0,
max: 50,
message: this.$t('trials:researchForm:formRule:maxLength'),
trigger: 'blur'
}
], ],
TrialRoleCode: [ TrialRoleCode: [
{ required: true, message: this.$t('trials:researchForm:formRule:select'), trigger: ['blur', 'change'] } {
required: true,
message: this.$t('trials:researchForm:formRule:select'),
trigger: ['blur', 'change']
}
],
UserTypeId: [
{
required: true,
message: this.$t('trials:researchForm:formRule:select'),
trigger: ['blur']
}
], ],
UserTypeId: [{ required: true, message: this.$t('trials:researchForm:formRule:select'), trigger: ['blur'] }],
Phone: [ Phone: [
{ max: 50, message: this.$t('common:ruleMessage:maxLength') + ' 50', trigger: 'blur' } {
max: 50,
message: this.$t('common:ruleMessage:maxLength') + ' 50',
trigger: 'blur'
}
], ],
Email: [ Email: [
{ required: true, validator: validateEmail, trigger: ['blur'] } { required: true, validator: validateEmail, trigger: ['blur'] }
], ],
IsHistoryUserDeleted: [ IsHistoryUserDeleted: [
{ required: true, message: this.$t('trials:researchForm:formRule:select'), trigger: ['blur', 'change'] } {
required: true,
message: this.$t('trials:researchForm:formRule:select'),
trigger: ['blur', 'change']
}
] ]
}, },
btnLoading: false, btnLoading: false,
@ -202,7 +202,7 @@ export default {
methods: { methods: {
async initForm() { async initForm() {
await this.getUserType() await this.getUserType()
Object.keys(this.data).forEach(key => { Object.keys(this.data).forEach((key) => {
this.form[key] = this.data[key] this.form[key] = this.data[key]
}) })
if (zzSessionStorage.getItem('userTypeEnumInt')) { if (zzSessionStorage.getItem('userTypeEnumInt')) {
@ -211,24 +211,31 @@ export default {
}, },
// //
handleSave() { handleSave() {
this.$refs['participantForm'].validate(valid => { this.$refs['participantForm'].validate((valid) => {
if (!valid) return if (!valid) return
this.btnLoading = true this.btnLoading = true
if (!this.form.TrialSiteSurveyId) { if (!this.form.TrialSiteSurveyId) {
this.form.TrialSiteSurveyId = getQueryString('trialSiteSurveyId') this.form.TrialSiteSurveyId = getQueryString('trialSiteSurveyId')
} }
const trialId = getQueryString('trialId') const trialId = getQueryString('trialId')
addOrUpdateTrialSiteUserSurvey(trialId, this.form).then(res => { addOrUpdateTrialSiteUserSurvey(trialId, this.form)
.then((res) => {
this.btnLoading = false this.btnLoading = false
if (res.IsSuccess) { if (res.IsSuccess) {
// //
this.$message.success(this.$t('common:message:savedSuccessfully')) this.$message.success(
this.$t('common:message:savedSuccessfully')
)
this.$emit('close', { id: res.Result, errorMessage: '' }) this.$emit('close', { id: res.Result, errorMessage: '' })
} }
}).catch((res) => { })
.catch((res) => {
if (res.Result && res.Result.Id && res.ErrorMessage) { if (res.Result && res.Result.Id && res.ErrorMessage) {
this.$emit('close', { id: res.Result.Id, errorMessage: res.ErrorMessage }) this.$emit('close', {
id: res.Result.Id,
errorMessage: res.ErrorMessage
})
// this.$confirm(res.ErrorMessage, '', { // this.$confirm(res.ErrorMessage, '', {
// type: 'warning' // type: 'warning'
// }).then(() => { // }).then(() => {
@ -250,8 +257,15 @@ export default {
}, },
// //
getUserType() { getUserType() {
getUserTypeList(3).then(res => { return new Promise((resolve) => {
getUserTypeList(3).then((res) => {
this.userTypeOptions = res.Result this.userTypeOptions = res.Result
var crcObj = res.Result.find((i) => i.UserTypeEnum === 2)
this.crcId = crcObj ? crcObj.Id : ''
var craObj = res.Result.find((i) => i.UserTypeEnum === 9)
this.craId = craObj ? craObj.Id : ''
})
resolve()
}) })
} }
} }

View File

@ -1,27 +1,19 @@
<template> <template>
<el-form ref="participantForm" :model="form" :rules="rules" label-width="200px" :inline="true"> <el-form ref="participantForm" v-loading="loading" :model="form" :rules="rules" label-width="200px" :inline="true">
<div class="base-dialog-body"> <div class="base-dialog-body">
<!-- --> <!-- -->
<el-form-item :label="$t('trials:staffResearch:form:lastName')" prop="LastName"> <el-form-item :label="$t('trials:staffResearch:form:lastName')" prop="LastName">
<el-input <el-input v-model="form.LastName" :disabled="!(state === 0 && userTypeEnumInt === 0)" style="width: 200px" />
v-model="form.LastName"
:disabled="!(state === 0 && userTypeEnumInt === 0)"
style="width:200px;"
/>
</el-form-item> </el-form-item>
<!-- --> <!-- -->
<el-form-item :label="$t('trials:staffResearch:form:firstName')" prop="FirstName"> <el-form-item :label="$t('trials:staffResearch:form:firstName')" prop="FirstName">
<el-input <el-input v-model="form.FirstName" :disabled="!(state === 0 && userTypeEnumInt === 0)" style="width: 200px" />
v-model="form.FirstName"
:disabled="!(state === 0 && userTypeEnumInt === 0)"
style="width:200px;"
/>
</el-form-item> </el-form-item>
<!-- 角色 --> <!-- 角色 -->
<el-form-item :label="$t('trials:staffResearch:form:role')" prop="TrialRoleCode"> <el-form-item :label="$t('trials:staffResearch:form:role')" prop="TrialRoleCode">
<el-select <el-select
v-model="form.TrialRoleCode" v-model="form.TrialRoleCode"
style="width:200px;" style="width: 200px"
:disabled="!(state === 0 && userTypeEnumInt === 0)" :disabled="!(state === 0 && userTypeEnumInt === 0)"
@change="handleTrialRoleChange" @change="handleTrialRoleChange"
> >
@ -35,26 +27,18 @@
</el-form-item> </el-form-item>
<!-- 电话号码 --> <!-- 电话号码 -->
<el-form-item :label="$t('trials:staffResearch:form:phone')" prop="Phone"> <el-form-item :label="$t('trials:staffResearch:form:phone')" prop="Phone">
<el-input <el-input v-model="form.Phone" :disabled="!(state === 0 && userTypeEnumInt === 0)" style="width: 200px" />
v-model="form.Phone"
:disabled="!(state === 0 && userTypeEnumInt === 0)"
style="width:200px;"
/>
</el-form-item> </el-form-item>
<!-- 邮箱 --> <!-- 邮箱 -->
<el-form-item :label="$t('trials:staffResearch:form:email')" prop="Email"> <el-form-item :label="$t('trials:staffResearch:form:email')" prop="Email">
<el-input <el-input v-model="form.Email" :disabled="!(state === 0 && userTypeEnumInt === 0)" style="width: 200px" />
v-model="form.Email"
:disabled="!(state === 0 && userTypeEnumInt === 0)"
style="width:200px;"
/>
</el-form-item> </el-form-item>
<!-- 单位 --> <!-- 单位 -->
<el-form-item :label="$t('trials:staffResearch:form:organization')" prop="OrganizationName"> <el-form-item :label="$t('trials:staffResearch:form:organization')" prop="OrganizationName">
<el-input <el-input
v-model="form.OrganizationName" v-model="form.OrganizationName"
:disabled="!(state === 0 && userTypeEnumInt === 0)" :disabled="!(state === 0 && userTypeEnumInt === 0)"
style="width:200px;" style="width: 200px"
/> />
</el-form-item> </el-form-item>
<!-- <el-row> <!-- <el-row>
@ -93,19 +77,20 @@
</el-form-item> </el-form-item>
</el-row>--> </el-row>-->
<el-form-item v-if="errorMsg" label=""> <el-form-item v-if="errorMsg" label="">
<span v-if="errorMsg" style="font-size: 12px;color: #f66;">{{ errorMsg }}</span> <span v-if="errorMsg" style="font-size: 12px; color: #f66">{{
errorMsg
}}</span>
</el-form-item> </el-form-item>
</div> </div>
<div class="base-dialog-footer" style="text-align:right;margin-top:10px;"> <div class="base-dialog-footer" style="text-align: right; margin-top: 10px">
<el-form-item> <el-form-item>
<!-- 取消 --> <!-- 取消 -->
<el-button size="small" type="primary" :disabled="btnLoading" @click="handleCancel"> <el-button size="small" type="primary" :disabled="btnLoading" @click="handleCancel">
{{ $t('common:button:cancel') }} {{ $t("common:button:cancel") }}
</el-button> </el-button>
<!-- 保存 --> <!-- 保存 -->
<el-button size="small" type="primary" :loading="btnLoading" @click="handleSave"> <el-button size="small" type="primary" :loading="btnLoading" @click="handleSave">
{{ $t('common:button:save') }} {{ $t("common:button:save") }}
</el-button> </el-button>
</el-form-item> </el-form-item>
</div> </div>
@ -152,7 +137,8 @@ export default {
if (value === '') { if (value === '') {
callback(new Error(this.$t('trials:researchForm:formRule:specify'))) callback(new Error(this.$t('trials:researchForm:formRule:specify')))
} else { } else {
var reg = /^[A-Za-z0-9]+([_\.][A-Za-z0-9]+)*@([A-Za-z0-9\-]+\.)+[A-Za-z]{2,6}$/ var reg =
/^[A-Za-z0-9]+([_\.][A-Za-z0-9]+)*@([A-Za-z0-9\-]+\.)+[A-Za-z]{2,6}$/
if (this.form.Email && reg.test(this.form.Email)) { if (this.form.Email && reg.test(this.form.Email)) {
this.sendDisabled = false this.sendDisabled = false
callback() callback()
@ -175,23 +161,54 @@ export default {
// IsCorrect: false, // IsCorrect: false,
IsGenerateAccount: false, IsGenerateAccount: false,
IsDisable: false IsDisable: false
}, },
rules: { rules: {
LastName: [ LastName: [
{ required: true, message: this.$t('trials:researchForm:formRule:specify'), trigger: 'blur' }, {
{ min: 0, max: 50, message: this.$t('trials:researchForm:formRule:maxLength'), trigger: 'blur' } required: true,
message: this.$t('trials:researchForm:formRule:specify'),
trigger: 'blur'
},
{
min: 0,
max: 50,
message: this.$t('trials:researchForm:formRule:maxLength'),
trigger: 'blur'
}
], ],
FirstName: [ FirstName: [
{ required: true, message: this.$t('trials:researchForm:formRule:specify'), trigger: 'blur' }, {
{ min: 0, max: 50, message: this.$t('trials:researchForm:formRule:maxLength'), trigger: 'blur' } required: true,
message: this.$t('trials:researchForm:formRule:specify'),
trigger: 'blur'
},
{
min: 0,
max: 50,
message: this.$t('trials:researchForm:formRule:maxLength'),
trigger: 'blur'
}
], ],
TrialRoleCode: [ TrialRoleCode: [
{ required: true, message: this.$t('trials:researchForm:formRule:select'), trigger: ['blur', 'change'] } {
required: true,
message: this.$t('trials:researchForm:formRule:select'),
trigger: ['blur', 'change']
}
],
UserTypeId: [
{
required: true,
message: this.$t('trials:researchForm:formRule:select'),
trigger: ['blur']
}
], ],
UserTypeId: [{ required: true, message: this.$t('trials:researchForm:formRule:select'), trigger: ['blur'] }],
Phone: [ Phone: [
{ max: 50, message: this.$t('common:ruleMessage:maxLength') + ' 50', trigger: 'blur' } {
max: 50,
message: this.$t('common:ruleMessage:maxLength') + ' 50',
trigger: 'blur'
}
], ],
Email: [ Email: [
{ required: true, validator: validateEmail, trigger: ['blur'] } { required: true, validator: validateEmail, trigger: ['blur'] }
@ -203,7 +220,8 @@ export default {
userTypeEnumInt: 0, userTypeEnumInt: 0,
errorMsg: '', errorMsg: '',
crcId: '', crcId: '',
craId: '' craId: '',
loading: false
} }
}, },
mounted() { mounted() {
@ -211,34 +229,43 @@ export default {
}, },
methods: { methods: {
async initForm() { async initForm() {
Object.keys(this.data).forEach(key => { this.loading = true
await this.getUserType()
Object.keys(this.data).forEach((key) => {
this.form[key] = this.data[key] this.form[key] = this.data[key]
}) })
if (zzSessionStorage.getItem('userTypeEnumInt')) { if (zzSessionStorage.getItem('userTypeEnumInt')) {
this.userTypeEnumInt = zzSessionStorage.getItem('userTypeEnumInt') * 1 this.userTypeEnumInt = zzSessionStorage.getItem('userTypeEnumInt') * 1
} }
this.getUserType() this.loading = false
}, },
// //
handleSave() { handleSave() {
this.$refs['participantForm'].validate(valid => { this.$refs['participantForm'].validate((valid) => {
if (!valid) return if (!valid) return
this.btnLoading = true this.btnLoading = true
if (!this.form.TrialSiteSurveyId) { if (!this.form.TrialSiteSurveyId) {
this.form.TrialSiteSurveyId = getQueryString('trialSiteSurveyId') this.form.TrialSiteSurveyId = getQueryString('trialSiteSurveyId')
} }
const trialId = getQueryString('trialId') const trialId = getQueryString('trialId')
addOrUpdateTrialSiteUserSurvey(trialId, this.form).then(res => { addOrUpdateTrialSiteUserSurvey(trialId, this.form)
.then((res) => {
this.btnLoading = false this.btnLoading = false
if (res.IsSuccess) { if (res.IsSuccess) {
// //
this.$message.success(this.$t('common:message:savedSuccessfully')) this.$message.success(
this.$t('common:message:savedSuccessfully')
)
this.$emit('close', { id: res.Result, errorMessage: '' }) this.$emit('close', { id: res.Result, errorMessage: '' })
} }
}).catch((res) => { })
.catch((res) => {
if (res.Result && res.Result.Id && res.ErrorMessage) { if (res.Result && res.Result.Id && res.ErrorMessage) {
this.$emit('close', { id: res.Result.Id, errorMessage: res.ErrorMessage }) this.$emit('close', {
id: res.Result.Id,
errorMessage: res.ErrorMessage
})
// this.$confirm(res.ErrorMessage, '', { // this.$confirm(res.ErrorMessage, '', {
// type: 'warning' // type: 'warning'
// }).then(() => { // }).then(() => {
@ -275,13 +302,16 @@ export default {
}, },
// //
getUserType() { getUserType() {
getUserTypeList(3).then(res => { return new Promise((resolve) => {
getUserTypeList(3).then((res) => {
this.userTypeOptions = res.Result this.userTypeOptions = res.Result
var crcObj = res.Result.find(i => i.UserTypeEnum === 2) var crcObj = res.Result.find((i) => i.UserTypeEnum === 2)
this.crcId = crcObj ? crcObj.Id : '' this.crcId = crcObj ? crcObj.Id : ''
var craObj = res.Result.find(i => i.UserTypeEnum === 9) var craObj = res.Result.find((i) => i.UserTypeEnum === 9)
this.craId = craObj ? craObj.Id : '' this.craId = craObj ? craObj.Id : ''
}) })
resolve()
})
}, },
handleIsCorrectChange(val) { handleIsCorrectChange(val) {
if (!val) { if (!val) {

View File

@ -295,6 +295,9 @@ export default {
}, },
methods: { methods: {
formItemChange(v, question) { formItemChange(v, question) {
if(question.QuestionType === 55){
this.$emit('setFormItemData', {key:question.Id,val:v})
}
if (question.Childrens.length > 0) { if (question.Childrens.length > 0) {
this.resetChild(question.Childrens) this.resetChild(question.Childrens)
} }

View File

@ -53,6 +53,8 @@ export default {
measurements: [], measurements: [],
currentQsId: '', currentQsId: '',
pet5PSId: '', pet5PSId: '',
pet5PSCommentsId:'',
calculatePet5PS:null,
liverSuvmaxId: '', liverSuvmaxId: '',
lungSuvmaxId: '', lungSuvmaxId: '',
suvmaxId: '', suvmaxId: '',
@ -146,6 +148,8 @@ export default {
} }
}) })
this.questions = questions this.questions = questions
this.calculatePet5PS = this.setpet5PS()
this.setPet5PSCommentDisplay()
this.measurements = [] this.measurements = []
res.OtherInfo.QuestionMarkInfoList.forEach(i => { res.OtherInfo.QuestionMarkInfoList.forEach(i => {
if (i.OtherMeasureData) { if (i.OtherMeasureData) {
@ -179,6 +183,10 @@ export default {
// PET 5PS // PET 5PS
this.pet5PSId = i.Id this.pet5PSId = i.Id
} }
if (i.QuestionType === 59) {
// PET 5PS
this.pet5PSCommentsId = i.Id
}
if (i.Childrens && i.Childrens.length > 0) { if (i.Childrens && i.Childrens.length > 0) {
this.setChild(i.Childrens) this.setChild(i.Childrens)
} }
@ -283,11 +291,12 @@ export default {
var idx = this.measurements.findIndex(i => i.QuestionId === Id) var idx = this.measurements.findIndex(i => i.QuestionId === Id)
if (idx === -1) return if (idx === -1) return
this.$set(this.questionForm, Id, '') this.$set(this.questionForm, Id, '')
this.setpet5PS() var pet5PS = this.setpet5PS()
this.questionForm[this.pet5PSId] = pet5PS
this.calculatePet5PS = pet5PS
this.setPet5PSCommentDisplay()
FusionEvent.$emit('removeAnnotation', { otherMeasureData: this.measurements[idx].OtherMeasureData, type: 'clear' }) FusionEvent.$emit('removeAnnotation', { otherMeasureData: this.measurements[idx].OtherMeasureData, type: 'clear' })
this.measurements.splice(idx, 1) this.measurements.splice(idx, 1)
console.log( this.measurements)
this.questionFormChangeState = true
}, },
locateAnnotation(obj) { locateAnnotation(obj) {
console.log('locateAnnotation') console.log('locateAnnotation')
@ -326,7 +335,10 @@ export default {
if (measurement.type === 'CircleROI') { if (measurement.type === 'CircleROI') {
const suvMax = measurement.suvMax const suvMax = measurement.suvMax
this.$set(this.questionForm, obj.QuestionId, suvMax || null) this.$set(this.questionForm, obj.QuestionId, suvMax || null)
this.setpet5PS() var pet5PS = this.setpet5PS()
this.questionForm[this.pet5PSId] = pet5PS
this.calculatePet5PS = pet5PS
this.setPet5PSCommentDisplay()
} }
FusionEvent.$emit('addOrUpdateAnnotations', { data }) FusionEvent.$emit('addOrUpdateAnnotations', { data })
this.questionFormChangeState = true this.questionFormChangeState = true
@ -359,7 +371,10 @@ export default {
if (measurement.metadata.toolName === 'CircleROI') { if (measurement.metadata.toolName === 'CircleROI') {
// const suvMax = measurement.suvMax // const suvMax = measurement.suvMax
this.$set(this.questionForm, obj.QuestionId, null) this.$set(this.questionForm, obj.QuestionId, null)
this.setpet5PS() var pet5PS = this.setpet5PS()
this.questionForm[this.pet5PSId] = pet5PS
this.calculatePet5PS = pet5PS
this.setPet5PSCommentDisplay()
} }
FusionEvent.$emit('addOrUpdateAnnotations', { data }) FusionEvent.$emit('addOrUpdateAnnotations', { data })
this.questionFormChangeState = true this.questionFormChangeState = true
@ -368,7 +383,10 @@ export default {
var idx = this.measurements.findIndex(i => i.OrderMarkName === remark) var idx = this.measurements.findIndex(i => i.OrderMarkName === remark)
if (idx === -1) return if (idx === -1) return
this.$set(this.questionForm, this.measurements[idx].QuestionId, '') this.$set(this.questionForm, this.measurements[idx].QuestionId, '')
this.setpet5PS() var pet5PS = this.setpet5PS()
this.questionForm[this.pet5PSId] = pet5PS
this.calculatePet5PS = pet5PS
this.setPet5PSCommentDisplay()
this.measurements[idx].OtherMeasureData = '' this.measurements[idx].OtherMeasureData = ''
this.currentQsId = this.measurements[idx].QuestionId this.currentQsId = this.measurements[idx].QuestionId
// const { QuestionId, QuestionType } = this.measurements[idx] // const { QuestionId, QuestionType } = this.measurements[idx]
@ -379,6 +397,26 @@ export default {
}, },
setFormItemData(obj) { setFormItemData(obj) {
this.questionForm[obj.key] = obj.val this.questionForm[obj.key] = obj.val
if(obj.key === this.pet5PSId){
this.setPet5PSCommentDisplay()
}
},
setPet5PSCommentDisplay(){
if( this.pet5PSCommentsId && this.pet5PSId ){
for (let i = 0; i < this.questions[0].Childrens[0].Childrens.length; i++) {
if (this.questions[0].Childrens[0].Childrens[i].QuestionType === 59) {
if(this.calculatePet5PS && this.calculatePet5PS !== this.questionForm[this.pet5PSId]){
this.questions[0].Childrens[0].Childrens[i].ShowQuestion = 0
this.questions[0].Childrens[0].Childrens[i].IsRequired = 0
}else{
this.questions[0].Childrens[0].Childrens[i].ShowQuestion = 2
this.questions[0].Childrens[0].Childrens[i].IsRequired = 3
this.questionForm[this.pet5PSCommentsId] = ''
}
break
}
}
}
}, },
setpet5PS() { setpet5PS() {
console.log('setpet5PS') console.log('setpet5PS')
@ -391,18 +429,23 @@ export default {
const lungSUVmax = !isNaN(parseFloat(this.questionForm[this.lungSuvmaxId])) ? parseFloat(this.questionForm[this.lungSuvmaxId]) : 0 const lungSUVmax = !isNaN(parseFloat(this.questionForm[this.lungSuvmaxId])) ? parseFloat(this.questionForm[this.lungSuvmaxId]) : 0
if (maxSUVmax > liverSUVmax * 2) { if (maxSUVmax > liverSUVmax * 2) {
// 访 max SUVmax>2*SUVmax 5 // 访 max SUVmax>2*SUVmax 5
this.questionForm[this.pet5PSId] = '5' // this.questionForm[this.pet5PSId] = '5'
return '5'
} else if (maxSUVmax > liverSUVmax) { } else if (maxSUVmax > liverSUVmax) {
// 访SUVmax>SUVmax 4 // 访SUVmax>SUVmax 4
this.questionForm[this.pet5PSId] = '4' // this.questionForm[this.pet5PSId] = '4'
return '4'
} else if (maxSUVmax > lungSUVmax && maxSUVmax <= liverSUVmax) { } else if (maxSUVmax > lungSUVmax && maxSUVmax <= liverSUVmax) {
// SUVmax<访max SUVmax1*SUVmax 3 // SUVmax<访max SUVmax1*SUVmax 3
this.questionForm[this.pet5PSId] = '3' // this.questionForm[this.pet5PSId] = '3'
return '3'
} else if (maxSUVmax < lungSUVmax) { } else if (maxSUVmax < lungSUVmax) {
// 访SUVmax<SUVmax 2 // 访SUVmax<SUVmax 2
this.questionForm[this.pet5PSId] = '2' // this.questionForm[this.pet5PSId] = '2'
return '2'
}else{ }else{
this.questionForm[this.pet5PSId] = '' // this.questionForm[this.pet5PSId] = ''
return ''
} }
}, },
resetSuvQuestions() { resetSuvQuestions() {
@ -422,7 +465,10 @@ export default {
if (v.Childrens.length > 0) { if (v.Childrens.length > 0) {
this.setSuvChild(v.Childrens) this.setSuvChild(v.Childrens)
} }
this.setpet5PS() var pet5PS = this.setpet5PS()
this.questionForm[this.pet5PSId] = pet5PS
this.calculatePet5PS = pet5PS
this.setPet5PSCommentDisplay()
this.questionFormChangeState = true this.questionFormChangeState = true
}) })

View File

@ -345,7 +345,6 @@ export default {
// return // return
// } // }
if (question.QuestionType === 49) { if (question.QuestionType === 49) {
console.log(question,v)
this.$emit('setFormItemData', { key: question.Id, val: v }) this.$emit('setFormItemData', { key: question.Id, val: v })
} }
if (question.Childrens.length > 0) { if (question.Childrens.length > 0) {

View File

@ -63,7 +63,7 @@ export default {
isQulityIssues: { isQulityIssues: {
type: Boolean, type: Boolean,
default: true default: true
}, }
}, },
data() { data() {
return { return {
@ -119,7 +119,6 @@ export default {
}, },
methods: { methods: {
async getQuestions(visitTaskId) { async getQuestions(visitTaskId) {
console.log('getQuestions')
this.visitTaskId = visitTaskId this.visitTaskId = visitTaskId
// const loading = this.$loading({ fullscreen: true }) // const loading = this.$loading({ fullscreen: true })
var idx = this.visitTaskList.findIndex(i => i.VisitTaskId === visitTaskId) var idx = this.visitTaskList.findIndex(i => i.VisitTaskId === visitTaskId)
@ -196,7 +195,6 @@ export default {
if (i.QuestionType === 48) { if (i.QuestionType === 48) {
// //
this.spleenLengthId = i.Id this.spleenLengthId = i.Id
} }
if (i.QuestionType === 58) { if (i.QuestionType === 58) {
// //
@ -297,7 +295,6 @@ export default {
}) })
}, },
setSpleenCommentDisplay() { setSpleenCommentDisplay() {
console.log('setSpleenCommentDisplay')
if (this.spleenCommentsId && this.spleenStatusId) { if (this.spleenCommentsId && this.spleenStatusId) {
for (let i = 0; i < this.questions[0].Childrens.length; i++) { for (let i = 0; i < this.questions[0].Childrens.length; i++) {
if (this.questions[0].Childrens[i].QuestionType === 58) { if (this.questions[0].Childrens[i].QuestionType === 58) {
@ -488,7 +485,7 @@ export default {
var diffFromBaseline = length - this.spleenInfo.BaseLineSpleenLength var diffFromBaseline = length - this.spleenInfo.BaseLineSpleenLength
var percentFormBaseline = 0 var percentFormBaseline = 0
if (this.spleenInfo.BaseLineSpleenLength) { if (this.spleenInfo.BaseLineSpleenLength) {
percentFormBaseline = length * 100 / (this.spleenInfo.BaseLineSpleenLength - 130) percentFormBaseline = diffFromBaseline * 100 / (this.spleenInfo.BaseLineSpleenLength - 130)
} }
if (this.spleenInfo.BaseLineSpleenLength > 130 && diffFromBaseline >= 10 && percentFormBaseline > 50) { if (this.spleenInfo.BaseLineSpleenLength > 130 && diffFromBaseline >= 10 && percentFormBaseline > 50) {
// 1线 >130 mm // 1线 >130 mm

View File

@ -26,13 +26,24 @@
show-overflow-tooltip show-overflow-tooltip
width="150" width="150"
> >
<template slot-scope="scope"> <!-- <template slot-scope="scope">
<div v-if="scope.row.BeforeQuestionList.length>index && scope.row.BeforeQuestionList[index].Answer" :style="{color: scope.row.BeforeQuestionList[index].IsGlobalAnswer ? '#f66' : null}"> <div v-if="scope.row.BeforeQuestionList.length>index && scope.row.BeforeQuestionList[index].Answer" :style="{color: scope.row.BeforeQuestionList[index].IsGlobalAnswer ? '#f66' : null}">
<span v-if="scope.row.BeforeQuestionList[index].DictionaryCode"> <span v-if="scope.row.BeforeQuestionList[index].DictionaryCode">
{{ $fd(scope.row.BeforeQuestionList[index].DictionaryCode,parseInt(scope.row.BeforeQuestionList[index].Answer)) }} {{ $fd(scope.row.BeforeQuestionList[index].DictionaryCode,parseInt(scope.row.BeforeQuestionList[index].Answer)) }}
</span> </span>
<span v-else>{{ scope.row.BeforeQuestionList[index].Answer }}</span> <span v-else>{{ scope.row.BeforeQuestionList[index].Answer }}</span>
</div> </div>
</template> -->
<template slot-scope="scope">
<template v-if="(scope.row.IsBaseLine && (scope.row.BeforeQuestionList[index].GlobalReadingShowType ===1 || scope.row.BeforeQuestionList[index].GlobalReadingShowType ===5)) || (!scope.row.IsBaseLine && (scope.row.BeforeQuestionList[index].GlobalReadingShowType ===2 || scope.row.BeforeQuestionList[index].GlobalReadingShowType ===6)) || (scope.row.BeforeQuestionList[index].GlobalReadingShowType ===0 || scope.row.BeforeQuestionList[index].GlobalReadingShowType ===4)">
<div v-if="scope.row.BeforeQuestionList.length>index && scope.row.BeforeQuestionList[index].Answer" :style="{color: scope.row.BeforeQuestionList[index].IsGlobalAnswer ? '#f66' : null}">
<span v-if="scope.row.BeforeQuestionList[index].DictionaryCode">
{{ $fd(scope.row.BeforeQuestionList[index].DictionaryCode,parseInt(scope.row.BeforeQuestionList[index].Answer)) }}
</span>
<span v-else>{{ scope.row.BeforeQuestionList[index].Answer }}</span>
</div>
</template>
</template> </template>
</el-table-column> </el-table-column>
</template> </template>
@ -85,20 +96,20 @@
<template> <template>
<el-table-column <el-table-column
v-for="(qs,index) in globalInfo.adjustedQsList" v-for="(qs,index) in globalInfo.adjustedQsList"
v-if="qs.isShow"
:key="index" :key="index"
prop="" prop=""
:label="qs" :label="qs.questionName"
show-overflow-tooltip show-overflow-tooltip
:min-width="index === 3 ? '200' : '200'" :min-width="index === 3 ? '200' : '200'"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<div v-if="readingTaskState<2"> <div v-if="readingTaskState<2 && (scope.row.AfterQuestionList[index].GlobalReadingShowType === 0 || (scope.row.IsBaseLine && scope.row.AfterQuestionList[index].GlobalReadingShowType === 1) || (!scope.row.IsBaseLine && scope.row.AfterQuestionList[index].GlobalReadingShowType === 2))">
<span v-if="(scope.row.IsBaseLine && scope.row.AfterQuestionList[index].LimitEdit === 2) || (!scope.row.IsBaseLine && scope.row.AfterQuestionList[index].LimitEdit === 1)"> <!-- <span v-if="(scope.row.IsBaseLine && scope.row.AfterQuestionList[index].LimitEdit === 2) || (!scope.row.IsBaseLine && scope.row.AfterQuestionList[index].LimitEdit === 1)">
{{ $fd(scope.row.AfterQuestionList[index].DictionaryCode, parseInt(scope.row.AfterQuestionList[index].VisitAnswer)) }} {{ $fd(scope.row.AfterQuestionList[index].DictionaryCode, parseInt(scope.row.AfterQuestionList[index].VisitAnswer)) }}
</span> </span> -->
<el-form-item <el-form-item
v-else
style="margin-bottom: 0;" style="margin-bottom: 0;"
:prop="`${scope.$index}${scope.row.AfterQuestionList[index].QuestionId?scope.row.AfterQuestionList[index].QuestionId:scope.row.AfterQuestionList[index].GlobalAnswerType}`" :prop="`${scope.$index}${scope.row.AfterQuestionList[index].QuestionId?scope.row.AfterQuestionList[index].QuestionId:scope.row.AfterQuestionList[index].GlobalAnswerType}`"
label="" label=""
@ -255,7 +266,7 @@
/> />
</el-form-item> </el-form-item>
</div> </div>
<div v-else-if="scope.row.AfterQuestionList.length>index && scope.row.AfterQuestionList[index].Answer"> <div v-else>
<span v-if="scope.row.AfterQuestionList[index].GlobalAnswerType === 3"> <span v-if="scope.row.AfterQuestionList[index].GlobalAnswerType === 3">
{{ getAssessType(scope.row.AfterQuestionList[index].Answer) }} {{ getAssessType(scope.row.AfterQuestionList[index].Answer) }}

View File

@ -88,9 +88,10 @@
<template> <template>
<el-table-column <el-table-column
v-for="(qs,index) in globalInfo.adjustedQsList" v-for="(qs,index) in globalInfo.adjustedQsList"
v-if="qs.isShow"
:key="index" :key="index"
prop="" prop=""
:label="qs" :label="qs.questionName"
show-overflow-tooltip show-overflow-tooltip
:min-width="index === 3 ? '200' : '200'" :min-width="index === 3 ? '200' : '200'"
> >
@ -331,6 +332,7 @@ export default {
...mapGetters(['language']) ...mapGetters(['language'])
}, },
mounted() { mounted() {
console.log(this.globalInfo)
this.assessTypes = this.globalInfo.assessTypeList.filter(i => i.IsBaseLineUse === this.isBaseline) this.assessTypes = this.globalInfo.assessTypeList.filter(i => i.IsBaseLineUse === this.isBaseline)
}, },
methods: { methods: {
@ -448,7 +450,6 @@ export default {
} }
}) })
} }
console.log(this.globalForm)
}, },
getAssessType(v) { getAssessType(v) {
console.log(this.language) console.log(this.language)

View File

@ -26,6 +26,7 @@
width="200" width="200"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<template v-if="(scope.row.IsBaseLine && (scope.row.BeforeQuestionList[index].GlobalReadingShowType ===1 || scope.row.BeforeQuestionList[index].GlobalReadingShowType ===5)) || (!scope.row.IsBaseLine && (scope.row.BeforeQuestionList[index].GlobalReadingShowType ===2 || scope.row.BeforeQuestionList[index].GlobalReadingShowType ===6)) || (scope.row.BeforeQuestionList[index].GlobalReadingShowType ===0 || scope.row.BeforeQuestionList[index].GlobalReadingShowType ===4)">
<div v-if="scope.row.BeforeQuestionList.length>index && scope.row.BeforeQuestionList[index].Answer"> <div v-if="scope.row.BeforeQuestionList.length>index && scope.row.BeforeQuestionList[index].Answer">
<span v-if="scope.row.BeforeQuestionList[index].DictionaryCode"> <span v-if="scope.row.BeforeQuestionList[index].DictionaryCode">
{{ $fd(scope.row.BeforeQuestionList[index].DictionaryCode,parseInt(scope.row.BeforeQuestionList[index].Answer)) }} {{ $fd(scope.row.BeforeQuestionList[index].DictionaryCode,parseInt(scope.row.BeforeQuestionList[index].Answer)) }}
@ -34,6 +35,7 @@
<span v-else>{{ scope.row.BeforeQuestionList[index].Answer }}</span> <span v-else>{{ scope.row.BeforeQuestionList[index].Answer }}</span>
</div> </div>
</template> </template>
</template>
</el-table-column> </el-table-column>
</template> </template>
</el-table-column> </el-table-column>
@ -47,18 +49,18 @@
<template> <template>
<el-table-column <el-table-column
v-for="(qs,index) in globalInfo.adjustedQsList" v-for="(qs,index) in globalInfo.adjustedQsList"
v-if="qs.isShow"
:key="index" :key="index"
prop="" prop=""
:label="qs" :label="qs.questionName"
:width="index > 0 ? '300' : '200'" :width="index > 0 ? '300' : '200'"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<div v-if="readingTaskState<2 "> <div v-if="readingTaskState<2 && (scope.row.AfterQuestionList[index].GlobalReadingShowType === 0 || (scope.row.IsBaseLine && scope.row.AfterQuestionList[index].GlobalReadingShowType === 1) || (!scope.row.IsBaseLine && scope.row.AfterQuestionList[index].GlobalReadingShowType === 2))">
<span v-if="(scope.row.IsBaseLine && scope.row.AfterQuestionList[index].LimitEdit === 2) || (!scope.row.IsBaseLine && scope.row.AfterQuestionList[index].LimitEdit === 1)"> <!-- <span v-if="(scope.row.IsBaseLine && scope.row.AfterQuestionList[index].LimitEdit === 2) || (!scope.row.IsBaseLine && scope.row.AfterQuestionList[index].LimitEdit === 1)">
{{ $fd(scope.row.AfterQuestionList[index].DictionaryCode, parseInt(scope.row.AfterQuestionList[index].VisitAnswer)) }} {{ $fd(scope.row.AfterQuestionList[index].DictionaryCode, parseInt(scope.row.AfterQuestionList[index].VisitAnswer)) }}
</span> </span> -->
<el-form-item <el-form-item
v-else
:prop="`${scope.$index}${scope.row.AfterQuestionList[index].QuestionId?scope.row.AfterQuestionList[index].QuestionId:scope.row.AfterQuestionList[index].GlobalAnswerType}`" :prop="`${scope.$index}${scope.row.AfterQuestionList[index].QuestionId?scope.row.AfterQuestionList[index].QuestionId:scope.row.AfterQuestionList[index].GlobalAnswerType}`"
label="" label=""
:rules="[ :rules="[
@ -107,7 +109,7 @@
/> />
</el-form-item> </el-form-item>
</div> </div>
<div v-else-if="scope.row.AfterQuestionList.length>index && scope.row.AfterQuestionList[index].Answer"> <div v-else>
<span v-if="scope.row.AfterQuestionList[index].GlobalAnswerType === 3"> <span v-if="scope.row.AfterQuestionList[index].GlobalAnswerType === 3">
{{ getAssessType(scope.row.AfterQuestionList[index].Answer) }} {{ getAssessType(scope.row.AfterQuestionList[index].Answer) }}
@ -181,7 +183,6 @@ export default {
} }
}, },
mounted() { mounted() {
console.log(this.globalInfo.adjustedQsList)
}, },
methods: { methods: {
selectChange(v, row, index) { selectChange(v, row, index) {

View File

@ -26,13 +26,24 @@
show-overflow-tooltip show-overflow-tooltip
width="150" width="150"
> >
<template slot-scope="scope"> <!-- <template slot-scope="scope">
<div v-if="scope.row.BeforeQuestionList.length>index && scope.row.BeforeQuestionList[index].Answer" :style="{color: scope.row.BeforeQuestionList[index].IsGlobalAnswer ? '#f66' : null}"> <div v-if="scope.row.BeforeQuestionList.length>index && scope.row.BeforeQuestionList[index].Answer" :style="{color: scope.row.BeforeQuestionList[index].IsGlobalAnswer ? '#f66' : null}">
<span v-if="scope.row.BeforeQuestionList[index].DictionaryCode"> <span v-if="scope.row.BeforeQuestionList[index].DictionaryCode">
{{ $fd(scope.row.BeforeQuestionList[index].DictionaryCode,parseInt(scope.row.BeforeQuestionList[index].Answer)) }} {{ $fd(scope.row.BeforeQuestionList[index].DictionaryCode,parseInt(scope.row.BeforeQuestionList[index].Answer)) }}
</span> </span>
<span v-else>{{ scope.row.BeforeQuestionList[index].Answer }}</span> <span v-else>{{ scope.row.BeforeQuestionList[index].Answer }}</span>
</div> </div>
</template> -->
<template slot-scope="scope">
<template v-if="(scope.row.IsBaseLine && (scope.row.BeforeQuestionList[index].GlobalReadingShowType ===1 || scope.row.BeforeQuestionList[index].GlobalReadingShowType ===5)) || (!scope.row.IsBaseLine && (scope.row.BeforeQuestionList[index].GlobalReadingShowType ===2 || scope.row.BeforeQuestionList[index].GlobalReadingShowType ===6)) || (scope.row.BeforeQuestionList[index].GlobalReadingShowType ===0 || scope.row.BeforeQuestionList[index].GlobalReadingShowType ===4)">
<div v-if="scope.row.BeforeQuestionList.length>index && scope.row.BeforeQuestionList[index].Answer" :style="{color: scope.row.BeforeQuestionList[index].IsGlobalAnswer ? '#f66' : null}">
<span v-if="scope.row.BeforeQuestionList[index].DictionaryCode">
{{ $fd(scope.row.BeforeQuestionList[index].DictionaryCode,parseInt(scope.row.BeforeQuestionList[index].Answer)) }}
</span>
<span v-else>{{ scope.row.BeforeQuestionList[index].Answer }}</span>
</div>
</template>
</template> </template>
</el-table-column> </el-table-column>
</template> </template>
@ -85,20 +96,20 @@
<template> <template>
<el-table-column <el-table-column
v-for="(qs,index) in globalInfo.adjustedQsList" v-for="(qs,index) in globalInfo.adjustedQsList"
v-if="qs.isShow"
:key="index" :key="index"
prop="" prop=""
:label="qs" :label="qs.questionName"
show-overflow-tooltip show-overflow-tooltip
:min-width="index === 3 ? '200' : '200'" :min-width="index === 3 ? '200' : '200'"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<div v-if="readingTaskState<2"> <div v-if="readingTaskState<2 && (scope.row.AfterQuestionList[index].GlobalReadingShowType === 0 || (scope.row.IsBaseLine && scope.row.AfterQuestionList[index].GlobalReadingShowType === 1) || (!scope.row.IsBaseLine && scope.row.AfterQuestionList[index].GlobalReadingShowType === 2))">
<span v-if="(scope.row.IsBaseLine && scope.row.AfterQuestionList[index].LimitEdit === 2) || (!scope.row.IsBaseLine && scope.row.AfterQuestionList[index].LimitEdit === 1)"> <!-- <span v-if="(scope.row.IsBaseLine && scope.row.AfterQuestionList[index].LimitEdit === 2) || (!scope.row.IsBaseLine && scope.row.AfterQuestionList[index].LimitEdit === 1)">
{{ $fd(scope.row.AfterQuestionList[index].DictionaryCode, parseInt(scope.row.AfterQuestionList[index].VisitAnswer)) }} {{ $fd(scope.row.AfterQuestionList[index].DictionaryCode, parseInt(scope.row.AfterQuestionList[index].VisitAnswer)) }}
</span> </span> -->
<el-form-item <el-form-item
v-else
style="margin-bottom: 0;" style="margin-bottom: 0;"
:prop="`${scope.$index}${scope.row.AfterQuestionList[index].QuestionId?scope.row.AfterQuestionList[index].QuestionId:scope.row.AfterQuestionList[index].GlobalAnswerType}`" :prop="`${scope.$index}${scope.row.AfterQuestionList[index].QuestionId?scope.row.AfterQuestionList[index].QuestionId:scope.row.AfterQuestionList[index].GlobalAnswerType}`"
label="" label=""
@ -253,7 +264,7 @@
/> />
</el-form-item> </el-form-item>
</div> </div>
<div v-else-if="scope.row.AfterQuestionList.length>index && scope.row.AfterQuestionList[index].Answer"> <div v-else>
<span v-if="scope.row.AfterQuestionList[index].GlobalAnswerType === 3"> <span v-if="scope.row.AfterQuestionList[index].GlobalAnswerType === 3">
{{ getAssessType(scope.row.AfterQuestionList[index].Answer) }} {{ getAssessType(scope.row.AfterQuestionList[index].Answer) }}

View File

@ -26,13 +26,24 @@
show-overflow-tooltip show-overflow-tooltip
width="150" width="150"
> >
<template slot-scope="scope"> <!-- <template slot-scope="scope">
<div v-if="scope.row.BeforeQuestionList.length>index && scope.row.BeforeQuestionList[index].Answer" :style="{color: scope.row.BeforeQuestionList[index].IsGlobalAnswer ? '#f66' : null}"> <div v-if="scope.row.BeforeQuestionList.length>index && scope.row.BeforeQuestionList[index].Answer" :style="{color: scope.row.BeforeQuestionList[index].IsGlobalAnswer ? '#f66' : null}">
<span v-if="scope.row.BeforeQuestionList[index].DictionaryCode"> <span v-if="scope.row.BeforeQuestionList[index].DictionaryCode">
{{ $fd(scope.row.BeforeQuestionList[index].DictionaryCode,parseInt(scope.row.BeforeQuestionList[index].Answer)) }} {{ $fd(scope.row.BeforeQuestionList[index].DictionaryCode,parseInt(scope.row.BeforeQuestionList[index].Answer)) }}
</span> </span>
<span v-else>{{ scope.row.BeforeQuestionList[index].Answer }}</span> <span v-else>{{ scope.row.BeforeQuestionList[index].Answer }}</span>
</div> </div>
</template> -->
<template slot-scope="scope">
<template v-if="(scope.row.IsBaseLine && (scope.row.BeforeQuestionList[index].GlobalReadingShowType ===1 || scope.row.BeforeQuestionList[index].GlobalReadingShowType ===5)) || (!scope.row.IsBaseLine && (scope.row.BeforeQuestionList[index].GlobalReadingShowType ===2 || scope.row.BeforeQuestionList[index].GlobalReadingShowType ===6)) || (scope.row.BeforeQuestionList[index].GlobalReadingShowType ===0 || scope.row.BeforeQuestionList[index].GlobalReadingShowType ===4)">
<div v-if="scope.row.BeforeQuestionList.length>index && scope.row.BeforeQuestionList[index].Answer" :style="{color: scope.row.BeforeQuestionList[index].IsGlobalAnswer ? '#f66' : null}">
<span v-if="scope.row.BeforeQuestionList[index].DictionaryCode">
{{ $fd(scope.row.BeforeQuestionList[index].DictionaryCode,parseInt(scope.row.BeforeQuestionList[index].Answer)) }}
</span>
<span v-else>{{ scope.row.BeforeQuestionList[index].Answer }}</span>
</div>
</template>
</template> </template>
</el-table-column> </el-table-column>
</template> </template>
@ -85,19 +96,19 @@
<template> <template>
<el-table-column <el-table-column
v-for="(qs,index) in globalInfo.adjustedQsList" v-for="(qs,index) in globalInfo.adjustedQsList"
v-if="qs.isShow"
:key="index" :key="index"
prop="" prop=""
:label="qs" :label="qs.questionName"
show-overflow-tooltip show-overflow-tooltip
:min-width="index === 3 ? '200' : '200'" :min-width="index === 3 ? '200' : '200'"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<div v-if="readingTaskState<2"> <div v-if="readingTaskState<2 && (scope.row.AfterQuestionList[index].GlobalReadingShowType === 0 || (scope.row.IsBaseLine && scope.row.AfterQuestionList[index].GlobalReadingShowType === 1) || (!scope.row.IsBaseLine && scope.row.AfterQuestionList[index].GlobalReadingShowType === 2))">
<span v-if="(scope.row.IsBaseLine && scope.row.AfterQuestionList[index].LimitEdit === 2) || (!scope.row.IsBaseLine && scope.row.AfterQuestionList[index].LimitEdit === 1)"> <!-- <span v-if="(scope.row.IsBaseLine && scope.row.AfterQuestionList[index].LimitEdit === 2) || (!scope.row.IsBaseLine && scope.row.AfterQuestionList[index].LimitEdit === 1)">
{{ $fd(scope.row.AfterQuestionList[index].DictionaryCode, parseInt(scope.row.AfterQuestionList[index].VisitAnswer)) }} {{ $fd(scope.row.AfterQuestionList[index].DictionaryCode, parseInt(scope.row.AfterQuestionList[index].VisitAnswer)) }}
</span> </span> -->
<el-form-item <el-form-item
v-else
style="margin-bottom: 0;" style="margin-bottom: 0;"
:prop="`${scope.$index}${scope.row.AfterQuestionList[index].QuestionId?scope.row.AfterQuestionList[index].QuestionId:scope.row.AfterQuestionList[index].GlobalAnswerType}`" :prop="`${scope.$index}${scope.row.AfterQuestionList[index].QuestionId?scope.row.AfterQuestionList[index].QuestionId:scope.row.AfterQuestionList[index].GlobalAnswerType}`"
label="" label=""
@ -246,7 +257,7 @@
/> />
</el-form-item> </el-form-item>
</div> </div>
<div v-else-if="scope.row.AfterQuestionList.length>index && scope.row.AfterQuestionList[index].Answer"> <div v-else>
<span v-if="scope.row.AfterQuestionList[index].GlobalAnswerType === 3"> <span v-if="scope.row.AfterQuestionList[index].GlobalAnswerType === 3">
{{ getAssessType(scope.row.AfterQuestionList[index].Answer) }} {{ getAssessType(scope.row.AfterQuestionList[index].Answer) }}

View File

@ -257,17 +257,22 @@ export default {
evaluationQsList.push(qs.QuestionName) evaluationQsList.push(qs.QuestionName)
}) })
qs.AfterQuestionList.map(qs => { qs.AfterQuestionList.map(qs => {
console.log(qs)
if (qs.GlobalAnswerType === 1 && (this.CriterionType === 10)) { if (qs.GlobalAnswerType === 1 && (this.CriterionType === 10)) {
// 访 // 访
adjustedQsList.push(this.$t('trials:globalReview:table:visitRemark')) adjustedQsList.push({questionName:this.$t('trials:globalReview:table:visitRemark'),isShow:true})
} else if (qs.GlobalAnswerType === 1 && (this.CriterionType !== 10)) { } else if (qs.GlobalAnswerType === 1 && (this.CriterionType !== 10)) {
// //
adjustedQsList.push(this.$t('trials:globalReview:table:globalRemark')) adjustedQsList.push({questionName:this.$t('trials:globalReview:table:globalRemark'),isShow:true})
} else if (qs.GlobalAnswerType === 3 && (this.CriterionType !== 10)) { } else if (qs.GlobalAnswerType === 3 && (this.CriterionType !== 10)) {
// //
adjustedQsList.push(this.$t('trials:globalReview:table:updateType')) adjustedQsList.push({questionName:this.$t('trials:globalReview:table:updateType'),isShow:true})
} else { } else {
adjustedQsList.push(qs.QuestionName) var isShow = true
if(this.CriterionType === 2 && (qs.QuestionType === 39 || qs.QuestionType === 40 || qs.QuestionType === 41)){
isShow = false
}
adjustedQsList.push({questionName:qs.QuestionName,isShow:isShow})
} }
}) })
qs.AgreeOrNot.map(qs => { qs.AgreeOrNot.map(qs => {

View File

@ -122,10 +122,15 @@
<!-- 结论 --> <!-- 结论 -->
<el-table-column <el-table-column
prop="EvaluationResult" prop="EvaluationResult"
:label="$t('trials:oncologyReview:title:findings')"
show-overflow-tooltip show-overflow-tooltip
width="150" width="150"
> >
<template slot="header" slot-scope="scope">
<div>
<span>{{ $t('trials:oncologyReview:title:findings') }}</span>
<span style="color:red">*</span>
</div>
</template>
<template slot-scope="scope"> <template slot-scope="scope">
<el-select <el-select
v-if="oncologyInfo.ReadingTaskState < 2 && !scope.row.IsBaseLine" v-if="oncologyInfo.ReadingTaskState < 2 && !scope.row.IsBaseLine"
@ -156,7 +161,7 @@
<div> <div>
<!-- 原因 --> <!-- 原因 -->
<span>{{ $t('trials:oncologyReview:title:reason') }}</span> <span>{{ $t('trials:oncologyReview:title:reason') }}</span>
<span style="color:red">*</span> <span style="color:red">!</span>
</div> </div>
</el-tooltip> </el-tooltip>