阅片单元配置:增加阅片过程下载影像、阅片过程上传影像不区分阅片标准
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
5bfc4a9a82
commit
5d8c389090
|
@ -158,7 +158,6 @@
|
|||
<!-- 上传 -->
|
||||
<el-button
|
||||
v-if="
|
||||
item.CriterionType === 0 &&
|
||||
item.ImageUploadEnum > 0 &&
|
||||
item.IsReadingTaskViewInOrder > 0
|
||||
"
|
||||
|
@ -171,7 +170,6 @@
|
|||
<!-- 下载 -->
|
||||
<el-button
|
||||
v-if="
|
||||
item.CriterionType === 0 &&
|
||||
item.ImageDownloadEnum === 1 &&
|
||||
item.IsReadingTaskViewInOrder > 0
|
||||
"
|
||||
|
|
|
@ -103,7 +103,7 @@
|
|||
@click.stop="handleCheckAllChange"
|
||||
type="success"
|
||||
>{{
|
||||
$t("trials:readingUnit:readingRules:title:CriterionModalitysAll")
|
||||
$t('trials:readingUnit:readingRules:title:CriterionModalitysAll')
|
||||
}}</el-button
|
||||
>
|
||||
</el-form-item>
|
||||
|
@ -183,7 +183,7 @@
|
|||
"
|
||||
@change="
|
||||
() => {
|
||||
form.IsArbitrationReading = false;
|
||||
form.IsArbitrationReading = false
|
||||
}
|
||||
"
|
||||
>
|
||||
|
@ -233,8 +233,8 @@
|
|||
@change="
|
||||
(v) => {
|
||||
if (!v) {
|
||||
form.IsGlobalReading = v;
|
||||
form.IsOncologyReading = v;
|
||||
form.IsGlobalReading = v
|
||||
form.IsOncologyReading = v
|
||||
}
|
||||
}
|
||||
"
|
||||
|
@ -307,15 +307,15 @@
|
|||
"
|
||||
@change="
|
||||
(v) => {
|
||||
form.ImageDownloadEnum = 0;
|
||||
form.ImageUploadEnum = 0;
|
||||
form.ImageDownloadEnum = 0
|
||||
form.ImageUploadEnum = 0
|
||||
if (v) {
|
||||
form.IsReadingShowSubjectInfo = true;
|
||||
form.IsReadingShowPreviousResults = true;
|
||||
form.ReadingTaskViewEnum = 0;
|
||||
form.IseCRFShowInDicomReading = false;
|
||||
form.IsReadingShowSubjectInfo = true
|
||||
form.IsReadingShowPreviousResults = true
|
||||
form.ReadingTaskViewEnum = 0
|
||||
form.IseCRFShowInDicomReading = false
|
||||
} else {
|
||||
form.ReadingTaskViewEnum = 2;
|
||||
form.ReadingTaskViewEnum = 2
|
||||
}
|
||||
}
|
||||
"
|
||||
|
@ -352,11 +352,10 @@
|
|||
</el-radio>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
<!--支持影像下载-->
|
||||
<!--支持影像下载v-if="CriterionType === 0"-->
|
||||
<el-form-item
|
||||
:label="$t('trials:processCfg:form:ImageDownloadEnum')"
|
||||
prop="ImageDownloadEnum"
|
||||
v-if="CriterionType === 0"
|
||||
>
|
||||
<el-radio-group
|
||||
v-model="form.ImageDownloadEnum"
|
||||
|
@ -380,7 +379,6 @@
|
|||
<el-form-item
|
||||
:label="$t('trials:processCfg:form:ImageUploadEnum')"
|
||||
prop="ImageUploadEnum"
|
||||
v-if="CriterionType === 0"
|
||||
>
|
||||
<el-radio-group
|
||||
v-model="form.ImageUploadEnum"
|
||||
|
@ -443,7 +441,7 @@
|
|||
@change="
|
||||
(v) => {
|
||||
if (!v) {
|
||||
form.IseCRFShowInDicomReading = true;
|
||||
form.IseCRFShowInDicomReading = true
|
||||
}
|
||||
}
|
||||
"
|
||||
|
@ -542,7 +540,7 @@
|
|||
"
|
||||
@change="
|
||||
(v) => {
|
||||
$set(form, 'AdditionalAssessmentType' + item.Id, v);
|
||||
$set(form, 'AdditionalAssessmentType' + item.Id, v)
|
||||
}
|
||||
"
|
||||
>
|
||||
|
@ -564,21 +562,21 @@
|
|||
>
|
||||
<!-- 保存 -->
|
||||
<el-button type="primary" @click="handleSave(true)">
|
||||
{{ $t("common:button:save") }}
|
||||
{{ $t('common:button:save') }}
|
||||
</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import { getCriterionReadingInfo, setCriterionReadingInfo } from "@/api/trials";
|
||||
import { getCriterionReadingInfo, setCriterionReadingInfo } from '@/api/trials'
|
||||
export default {
|
||||
name: "ReadingRules",
|
||||
name: 'ReadingRules',
|
||||
props: {
|
||||
trialReadingCriterionId: {
|
||||
type: String,
|
||||
default() {
|
||||
return "";
|
||||
return ''
|
||||
},
|
||||
},
|
||||
CriterionType: {
|
||||
|
@ -590,7 +588,7 @@ export default {
|
|||
return {
|
||||
additionalAssessmentOptionList: [],
|
||||
form: {
|
||||
TrialId: "",
|
||||
TrialId: '',
|
||||
ImagePlatform: null,
|
||||
ReadingTool: 0,
|
||||
ReadingTaskViewEnum: null,
|
||||
|
@ -625,151 +623,151 @@ export default {
|
|||
IsAutoCreate: [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t("common:ruleMessage:select"),
|
||||
trigger: ["blur", "change"],
|
||||
message: this.$t('common:ruleMessage:select'),
|
||||
trigger: ['blur', 'change'],
|
||||
},
|
||||
],
|
||||
IsAdditionalAssessment: [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t("common:ruleMessage:select"),
|
||||
trigger: ["blur", "change"],
|
||||
message: this.$t('common:ruleMessage:select'),
|
||||
trigger: ['blur', 'change'],
|
||||
},
|
||||
],
|
||||
ImagePlatform: [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t("common:ruleMessage:select"),
|
||||
trigger: ["blur", "change"],
|
||||
message: this.$t('common:ruleMessage:select'),
|
||||
trigger: ['blur', 'change'],
|
||||
},
|
||||
],
|
||||
ReadingTool: [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t("common:ruleMessage:select"),
|
||||
trigger: ["blur", "change"],
|
||||
message: this.$t('common:ruleMessage:select'),
|
||||
trigger: ['blur', 'change'],
|
||||
},
|
||||
],
|
||||
ImageDownloadEnum: [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t("common:ruleMessage:select"),
|
||||
trigger: ["blur", "change"],
|
||||
message: this.$t('common:ruleMessage:select'),
|
||||
trigger: ['blur', 'change'],
|
||||
},
|
||||
],
|
||||
ImageUploadEnum: [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t("common:ruleMessage:select"),
|
||||
trigger: ["blur", "change"],
|
||||
message: this.$t('common:ruleMessage:select'),
|
||||
trigger: ['blur', 'change'],
|
||||
},
|
||||
],
|
||||
IsImageFilter: [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t("common:ruleMessage:select"),
|
||||
trigger: ["blur", "change"],
|
||||
message: this.$t('common:ruleMessage:select'),
|
||||
trigger: ['blur', 'change'],
|
||||
},
|
||||
],
|
||||
ReadingTaskViewEnum: [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t("common:ruleMessage:select"),
|
||||
trigger: ["blur", "change"],
|
||||
message: this.$t('common:ruleMessage:select'),
|
||||
trigger: ['blur', 'change'],
|
||||
},
|
||||
],
|
||||
IsImageLabeled: [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t("common:ruleMessage:select"),
|
||||
trigger: ["blur", "change"],
|
||||
message: this.$t('common:ruleMessage:select'),
|
||||
trigger: ['blur', 'change'],
|
||||
},
|
||||
],
|
||||
IsReadingShowSubjectInfo: [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t("common:ruleMessage:select"),
|
||||
trigger: ["blur", "change"],
|
||||
message: this.$t('common:ruleMessage:select'),
|
||||
trigger: ['blur', 'change'],
|
||||
},
|
||||
],
|
||||
IsReadingShowPreviousResults: [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t("common:ruleMessage:select"),
|
||||
trigger: ["blur", "change"],
|
||||
message: this.$t('common:ruleMessage:select'),
|
||||
trigger: ['blur', 'change'],
|
||||
},
|
||||
],
|
||||
ReadingType: [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t("common:ruleMessage:select"),
|
||||
trigger: ["blur", "change"],
|
||||
message: this.$t('common:ruleMessage:select'),
|
||||
trigger: ['blur', 'change'],
|
||||
},
|
||||
],
|
||||
IsReadingTaskViewInOrder: [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t("common:ruleMessage:select"),
|
||||
trigger: ["blur", "change"],
|
||||
message: this.$t('common:ruleMessage:select'),
|
||||
trigger: ['blur', 'change'],
|
||||
},
|
||||
],
|
||||
IsGlobalReading: [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t("common:ruleMessage:select"),
|
||||
trigger: ["blur", "change"],
|
||||
message: this.$t('common:ruleMessage:select'),
|
||||
trigger: ['blur', 'change'],
|
||||
},
|
||||
],
|
||||
IsArbitrationReading: [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t("common:ruleMessage:select"),
|
||||
trigger: ["blur", "change"],
|
||||
message: this.$t('common:ruleMessage:select'),
|
||||
trigger: ['blur', 'change'],
|
||||
},
|
||||
],
|
||||
IsOncologyReading: [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t("common:ruleMessage:select"),
|
||||
trigger: ["blur", "change"],
|
||||
message: this.$t('common:ruleMessage:select'),
|
||||
trigger: ['blur', 'change'],
|
||||
},
|
||||
],
|
||||
DigitPlaces: [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t("common:ruleMessage:select"),
|
||||
trigger: ["blur", "change"],
|
||||
message: this.$t('common:ruleMessage:select'),
|
||||
trigger: ['blur', 'change'],
|
||||
},
|
||||
],
|
||||
IseCRFShowInDicomReading: [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t("common:ruleMessage:select"),
|
||||
trigger: ["blur", "change"],
|
||||
message: this.$t('common:ruleMessage:select'),
|
||||
trigger: ['blur', 'change'],
|
||||
},
|
||||
],
|
||||
IsReadingPeriod: [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t("common:ruleMessage:select"),
|
||||
trigger: ["blur", "change"],
|
||||
message: this.$t('common:ruleMessage:select'),
|
||||
trigger: ['blur', 'change'],
|
||||
},
|
||||
],
|
||||
CriterionModalitys: [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t("common:ruleMessage:select"),
|
||||
trigger: ["blur", "change"],
|
||||
message: this.$t('common:ruleMessage:select'),
|
||||
trigger: ['blur', 'change'],
|
||||
},
|
||||
{
|
||||
validator: (rule, value, callback) => {
|
||||
if (value && Array.isArray(value) && value.length < 0) {
|
||||
callback(new Error(this.$t("common:ruleMessage:select")));
|
||||
callback(new Error(this.$t('common:ruleMessage:select')))
|
||||
} else {
|
||||
callback();
|
||||
callback()
|
||||
}
|
||||
},
|
||||
trigger: ["blur", "change"],
|
||||
trigger: ['blur', 'change'],
|
||||
},
|
||||
],
|
||||
// IsReadingTaskViewInOrder: [
|
||||
|
@ -786,15 +784,15 @@ export default {
|
|||
modalityList: [],
|
||||
CriterionModalitys: [],
|
||||
modalityIsCheck: false, // 是否允许影像筛选
|
||||
};
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.initPage();
|
||||
this.initPage()
|
||||
},
|
||||
watch: {
|
||||
CriterionModalitys: {
|
||||
handler() {
|
||||
this.form.CriterionModalitys = this.CriterionModalitys.join("|");
|
||||
this.form.CriterionModalitys = this.CriterionModalitys.join('|')
|
||||
},
|
||||
deep: true,
|
||||
},
|
||||
|
@ -803,19 +801,19 @@ export default {
|
|||
// 检查类型筛选值变更
|
||||
IsImageFilterChange(data) {
|
||||
if (data) {
|
||||
this.CriterionModalitys = this.modalityList;
|
||||
this.CriterionModalitys = this.modalityList
|
||||
} else {
|
||||
this.CriterionModalitys = [];
|
||||
this.CriterionModalitys = []
|
||||
}
|
||||
},
|
||||
// 影像模态全选
|
||||
handleCheckAllChange() {
|
||||
this.CriterionModalitys =
|
||||
this.CriterionModalitys.length <= 0 ? this.modalityList : [];
|
||||
this.CriterionModalitys.length <= 0 ? this.modalityList : []
|
||||
},
|
||||
initPage() {
|
||||
this.loading = true;
|
||||
const trialId = this.$route.query.trialId;
|
||||
this.loading = true
|
||||
const trialId = this.$route.query.trialId
|
||||
// getTrialCriterionAdditionalAssessmentOptionList(this.trialReadingCriterionId).then(res => {
|
||||
// this.additionalAssessmentOptionList = res.Result
|
||||
// if (this.additionalAssessmentOptionList.length > 0) {
|
||||
|
@ -828,46 +826,46 @@ export default {
|
|||
TrialReadingCriterionId: this.trialReadingCriterionId,
|
||||
})
|
||||
.then((res) => {
|
||||
this.loading = false;
|
||||
this.modalityList = res.Result.TrialModalitys.split("|").filter(
|
||||
this.loading = false
|
||||
this.modalityList = res.Result.TrialModalitys.split('|').filter(
|
||||
(item) => item && item.trim()
|
||||
);
|
||||
)
|
||||
for (const k in this.form) {
|
||||
if (res.Result.hasOwnProperty(k)) {
|
||||
this.form[k] = res.Result[k];
|
||||
this.form[k] = res.Result[k]
|
||||
}
|
||||
}
|
||||
this.CriterionModalitys = this.form.CriterionModalitys
|
||||
? this.form.CriterionModalitys.split("|")
|
||||
: [];
|
||||
? this.form.CriterionModalitys.split('|')
|
||||
: []
|
||||
this.form.TrialCriterionAdditionalAssessmentTypeList.forEach((v) => {
|
||||
this.$set(v, "IsSelected", v.IsSelected || false);
|
||||
this.$set(v, 'IsSelected', v.IsSelected || false)
|
||||
this.$set(
|
||||
this.form,
|
||||
"AdditionalAssessmentType" + v.Id,
|
||||
'AdditionalAssessmentType' + v.Id,
|
||||
v.IsSelected
|
||||
);
|
||||
});
|
||||
this.isReadingTaskViewInOrder = res.Result.IsReadingTaskViewInOrder;
|
||||
this.isConfirm = res.Result.IsSign;
|
||||
this.IsMustGlobalReading = res.Result.IsMustGlobalReading;
|
||||
this.$emit("setConfirm", res.Result.IsSign);
|
||||
this.$emit("setArbitrationReading", res.Result.IsArbitrationReading);
|
||||
)
|
||||
})
|
||||
this.isReadingTaskViewInOrder = res.Result.IsReadingTaskViewInOrder
|
||||
this.isConfirm = res.Result.IsSign
|
||||
this.IsMustGlobalReading = res.Result.IsMustGlobalReading
|
||||
this.$emit('setConfirm', res.Result.IsSign)
|
||||
this.$emit('setArbitrationReading', res.Result.IsArbitrationReading)
|
||||
this.$emit(
|
||||
"setAdditionalAssessment",
|
||||
'setAdditionalAssessment',
|
||||
this.form.IsAdditionalAssessment
|
||||
);
|
||||
this.$emit("setIsClinicalReading", res.Result.IsClinicalReading);
|
||||
this.$emit("setGlobalReading", res.Result.IsGlobalReading);
|
||||
this.$emit("setOncologyReading", res.Result.IsOncologyReading);
|
||||
this.$emit("setDigitPlaces", res.Result.DigitPlaces);
|
||||
)
|
||||
this.$emit('setIsClinicalReading', res.Result.IsClinicalReading)
|
||||
this.$emit('setGlobalReading', res.Result.IsGlobalReading)
|
||||
this.$emit('setOncologyReading', res.Result.IsOncologyReading)
|
||||
this.$emit('setDigitPlaces', res.Result.DigitPlaces)
|
||||
if (res.Result.ReadingType === 1) {
|
||||
this.$emit("setArbitrationReading", false);
|
||||
this.$emit('setArbitrationReading', false)
|
||||
}
|
||||
})
|
||||
.catch(() => {
|
||||
this.loading = false;
|
||||
});
|
||||
this.loading = false
|
||||
})
|
||||
// }).catch(() => {
|
||||
// this.loading = false
|
||||
// })
|
||||
|
@ -875,52 +873,52 @@ export default {
|
|||
// 配置信息保存
|
||||
handleSave(isPrompt = true) {
|
||||
return new Promise((resolve, reject) => {
|
||||
this.$refs["readingRulesForm"].validate((valid) => {
|
||||
this.$refs['readingRulesForm'].validate((valid) => {
|
||||
if (!valid) {
|
||||
resolve(false);
|
||||
resolve(false)
|
||||
} else {
|
||||
this.loading = true;
|
||||
this.loading = true
|
||||
if (this.form.ReadingType === 1) {
|
||||
this.form.IsArbitrationReading = false;
|
||||
this.form.IsArbitrationReading = false
|
||||
}
|
||||
// 保存配置信息
|
||||
this.form.TrialReadingCriterionId = this.trialReadingCriterionId;
|
||||
this.form.TrialReadingCriterionId = this.trialReadingCriterionId
|
||||
setCriterionReadingInfo(this.form)
|
||||
.then((res) => {
|
||||
this.loading = false;
|
||||
this.$emit("reloadArbitrationRules");
|
||||
this.loading = false
|
||||
this.$emit('reloadArbitrationRules')
|
||||
this.$emit(
|
||||
"setArbitrationReading",
|
||||
'setArbitrationReading',
|
||||
this.form.IsArbitrationReading
|
||||
);
|
||||
)
|
||||
this.$emit(
|
||||
"setAdditionalAssessment",
|
||||
'setAdditionalAssessment',
|
||||
this.form.IsAdditionalAssessment
|
||||
);
|
||||
this.$emit("setIsClinicalReading", this.form.IsClinicalReading);
|
||||
this.$emit("setGlobalReading", this.form.IsGlobalReading);
|
||||
this.$emit("setOncologyReading", this.form.IsOncologyReading);
|
||||
this.$emit("setDigitPlaces", this.form.DigitPlaces);
|
||||
)
|
||||
this.$emit('setIsClinicalReading', this.form.IsClinicalReading)
|
||||
this.$emit('setGlobalReading', this.form.IsGlobalReading)
|
||||
this.$emit('setOncologyReading', this.form.IsOncologyReading)
|
||||
this.$emit('setDigitPlaces', this.form.DigitPlaces)
|
||||
if (this.form.ReadingType === 1) {
|
||||
this.$emit("setArbitrationReading", false);
|
||||
this.$emit('setArbitrationReading', false)
|
||||
}
|
||||
if (res.IsSuccess && isPrompt) {
|
||||
this.$message.success(
|
||||
this.$t("common:message:savedSuccessfully")
|
||||
);
|
||||
this.$t('common:message:savedSuccessfully')
|
||||
)
|
||||
}
|
||||
resolve(true);
|
||||
resolve(true)
|
||||
})
|
||||
.catch((_) => {
|
||||
this.loading = false;
|
||||
resolve(false);
|
||||
});
|
||||
this.loading = false
|
||||
resolve(false)
|
||||
})
|
||||
}
|
||||
});
|
||||
});
|
||||
})
|
||||
})
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.reading-rule-config-form {
|
||||
|
|
Loading…
Reference in New Issue