一致性核查检查日期改为拍片日期
continuous-integration/drone/push Build is passing Details

uat_us
wangxiaoshuang 2024-11-18 09:33:47 +08:00
parent ab527e2357
commit 629816217c
1 changed files with 227 additions and 203 deletions

View File

@ -62,7 +62,7 @@
</el-form-item>
<!-- 查询 -->
<el-button type="primary" icon="el-icon-search" @click="handleSearch">
{{ $t("common:button:search") }}
{{ $t('common:button:search') }}
</el-button>
<!-- 重置 -->
<el-button
@ -70,7 +70,7 @@
icon="el-icon-refresh-left"
@click="handleReset"
>
{{ $t("common:button:reset") }}
{{ $t('common:button:reset') }}
</el-button>
<!--导出一致性核查表-->
<el-button
@ -78,7 +78,7 @@
icon="el-icon-download"
@click="handleExport(1)"
>
{{ $t("trials:consistencyCheck:button:export1") }}
{{ $t('trials:consistencyCheck:button:export1') }}
</el-button>
<!-- 导出一致性核查记录表 -->
<el-button
@ -86,7 +86,7 @@
icon="el-icon-download"
@click="handleExport(2)"
>
{{ $t("trials:consistencyCheck:button:export2") }}
{{ $t('trials:consistencyCheck:button:export2') }}
</el-button>
<!-- 下载模板 -->
<el-button
@ -95,7 +95,7 @@
icon="el-icon-download"
@click="handleDownload"
>
{{ $t("trials:consistencyCheck:button:download") }}
{{ $t('trials:consistencyCheck:button:download') }}
</el-button>
</el-form>
<!-- 上传 -->
@ -106,7 +106,7 @@
icon="el-icon-upload2"
@click="handleOpenUploadDialog"
>
{{ $t("trials:consistencyCheck:button:upload") }}
{{ $t('trials:consistencyCheck:button:upload') }}
</el-button>
</span>
</template>
@ -133,10 +133,10 @@
>
<template slot-scope="scope">
<el-tag v-if="scope.row.IsUrgent" type="danger">{{
$fd("YesOrNo", scope.row.IsUrgent)
$fd('YesOrNo', scope.row.IsUrgent)
}}</el-tag>
<el-tag v-else type="primary">{{
$fd("YesOrNo", scope.row.IsUrgent)
$fd('YesOrNo', scope.row.IsUrgent)
}}</el-tag>
</template>
</el-table-column>
@ -156,8 +156,8 @@
>
{{
userTypeEnumInt === 2
? $fd("CheckChallengeState", 1)
: $fd("CheckChallengeState", 2)
? $fd('CheckChallengeState', 1)
: $fd('CheckChallengeState', 2)
}}
</el-tag>
<el-tag
@ -166,12 +166,12 @@
>
{{
userTypeEnumInt === 2
? $fd("CheckChallengeState", 2)
: $fd("CheckChallengeState", 1)
? $fd('CheckChallengeState', 2)
: $fd('CheckChallengeState', 1)
}}
</el-tag>
<el-tag v-else-if="scope.row.CheckChallengeState === 3">{{
$fd("CheckChallengeState", scope.row.CheckChallengeState)
$fd('CheckChallengeState', scope.row.CheckChallengeState)
}}</el-tag>
</template>
</el-table-column>
@ -202,7 +202,7 @@
<template slot-scope="scope">
<span>{{ scope.row.VisitName }}</span>
<span v-if="scope.row.IsCheckBack" class="status-primary-circle">{{
$t("trials:consistencyCheck:table:back")
$t('trials:consistencyCheck:table:back')
}}</span>
</template>
</el-table-column>
@ -227,8 +227,32 @@
width="140"
sortable="custom"
>
<template slot-scope="scope">
<!-- <template slot-scope="scope">
<span>{{ scope.row.LatestScanDate.split(" ")[0] }}</span>
</template> -->
<template slot-scope="scope">
<el-tooltip
class="item"
effect="dark"
:content="`${
scope.row.EarliestScanDate
? moment(scope.row.EarliestScanDate).format('YYYY-MM-DD')
: ''
} ~ ${
scope.row.LatestScanDate
? moment(scope.row.LatestScanDate).format('YYYY-MM-DD')
: ''
}`"
placement="top"
>
<span>
{{
scope.row.LatestScanDate
? moment(scope.row.LatestScanDate).format('YYYY-MM-DD')
: ''
}}
</span>
</el-tooltip>
</template>
</el-table-column>
@ -270,13 +294,13 @@
<template slot-scope="scope">
<span v-if="scope.row.CheckState === 0"> -- </span>
<el-tag v-else-if="scope.row.CheckState === 9" type="danger">{{
$fd("CheckState", scope.row.CheckState)
$fd('CheckState', scope.row.CheckState)
}}</el-tag>
<el-tag v-else-if="scope.row.CheckState === 10" type="danger">{{
$fd("CheckState", scope.row.CheckState)
$fd('CheckState', scope.row.CheckState)
}}</el-tag>
<el-tag v-else-if="scope.row.CheckState === 11">{{
$fd("CheckState", scope.row.CheckState)
$fd('CheckState', scope.row.CheckState)
}}</el-tag>
</template>
</el-table-column>
@ -312,23 +336,23 @@
>
<template slot-scope="scope">
<span v-if="scope.row.RequestBackState * 1 === 0">{{
$fd("RequestBackState", scope.row.RequestBackState * 1)
$fd('RequestBackState', scope.row.RequestBackState * 1)
}}</span>
<el-tag v-else-if="scope.row.RequestBackState * 1 === 1">{{
$fd("RequestBackState", scope.row.RequestBackState * 1)
$fd('RequestBackState', scope.row.RequestBackState * 1)
}}</el-tag>
<el-tag
v-else-if="scope.row.RequestBackState * 1 === 2"
type="warning"
>{{
$fd("RequestBackState", scope.row.RequestBackState * 1)
$fd('RequestBackState', scope.row.RequestBackState * 1)
}}</el-tag
>
<el-tag
v-else-if="scope.row.RequestBackState * 1 === 3"
type="danger"
>{{
$fd("RequestBackState", scope.row.RequestBackState * 1)
$fd('RequestBackState', scope.row.RequestBackState * 1)
}}</el-tag
>
</template>
@ -396,9 +420,9 @@
<div class="remark">
<span class="status-primary-circle">
<!-- 回退 -->
{{ $t("trials:consistencyCheck:table:back") }}
{{ $t('trials:consistencyCheck:table:back') }}
</span>
<span>: {{ $t("trials:consistencyCheck:title:back") }}</span>
<span>: {{ $t('trials:consistencyCheck:title:back') }}</span>
</div>
</template>
@ -435,9 +459,9 @@
width="600px"
>
<div slot="title">
<span style="font-size: 18px">{{ $t("common:dialogTitle:sign") }}</span>
<span style="font-size: 18px">{{ $t('common:dialogTitle:sign') }}</span>
<span style="font-size: 12px; margin-left: 5px">{{
`(${$t("common:label:sign")}${currentUser})`
`(${$t('common:label:sign')}${currentUser})`
}}</span>
</div>
<SignForm
@ -539,11 +563,11 @@
size="small"
type="primary"
@click="
ReasonVisible = false;
QuestionForm = { Type: null, Reason: null };
ReasonVisible = false
QuestionForm = { Type: null, Reason: null }
"
>
{{ $t("common:button:cancel") }}
{{ $t('common:button:cancel') }}
</el-button>
<!-- 保存 -->
<el-button
@ -552,7 +576,7 @@
type="primary"
@click="passOrCloes"
>
{{ $t("common:button:save") }}
{{ $t('common:button:save') }}
</el-button>
</div>
</el-dialog>
@ -573,32 +597,33 @@ import {
closeCheckChallenge,
setCheckPass,
getCheckChallengeDialogList,
} from "@/api/trials";
import { DownloadCommonDoc } from "@/api/dictionary";
} from '@/api/trials'
import { DownloadCommonDoc } from '@/api/dictionary'
import {
getDicomAndNoneDicomStudyList_Export,
getConsistencyVerificationList_Export,
} from "@/api/export";
import { checkBack } from "@/api/trials/visit";
import BaseContainer from "@/components/BaseContainer";
import BaseModel from "@/components/BaseModel";
import ConsistencyCheckForm from "./components/consistencyCheckForm";
import UploadExcel from "./components/uploadExcel";
import SignForm from "@/views/trials/components/newSignForm";
import Pagination from "@/components/Pagination";
import const_ from "@/const/sign-code";
} from '@/api/export'
import { checkBack } from '@/api/trials/visit'
import BaseContainer from '@/components/BaseContainer'
import BaseModel from '@/components/BaseModel'
import ConsistencyCheckForm from './components/consistencyCheckForm'
import UploadExcel from './components/uploadExcel'
import SignForm from '@/views/trials/components/newSignForm'
import Pagination from '@/components/Pagination'
import const_ from '@/const/sign-code'
import moment from 'moment'
const searchDataDefault = () => {
return {
TrialSiteId: "",
SubjectInfo: "",
TrialSiteId: '',
SubjectInfo: '',
VisitPlanArray: [],
CheckState: null,
PageIndex: 1,
PageSize: 20,
};
};
}
}
export default {
name: "ConsistencyCheck",
name: 'ConsistencyCheck',
components: {
BaseContainer,
Pagination,
@ -614,6 +639,7 @@ export default {
Reason: null,
Remake: null,
},
moment,
searchData: searchDataDefault(),
ReasonVisible: false,
total: 0,
@ -625,170 +651,170 @@ export default {
currentDialogList: [],
siteOptions: [],
visitPlanOptions: [],
userTypeEnumInt: zzSessionStorage.getItem("userTypeEnumInt") * 1,
userTypeEnumInt: zzSessionStorage.getItem('userTypeEnumInt') * 1,
upload_cfg: {
visible: false,
title: this.$t("trials:consistencyCheck:button:upload"),
width: "500px",
title: this.$t('trials:consistencyCheck:button:upload'),
width: '500px',
showClose: true,
},
rules: {
Type: [
{
required: true,
message: this.$t("common:ruleMessage:specify"),
trigger: "blur",
message: this.$t('common:ruleMessage:specify'),
trigger: 'blur',
},
],
Remake: [
{
required: true,
message: this.$t("common:ruleMessage:specify"),
trigger: "blur",
message: this.$t('common:ruleMessage:specify'),
trigger: 'blur',
},
],
},
signVisible: false,
signType: 0, // 01退,2
currentUser: zzSessionStorage.getItem("userName"),
currentUser: zzSessionStorage.getItem('userName'),
OtherInfo: {},
signCode: "",
signCode: '',
trialId: this.$route.query.trialId,
isReply: false,
ReasonTitle: null,
};
}
},
mounted() {
this.getList();
this.getSite();
this.getVisitPlanOptions();
this.getList()
this.getSite()
this.getVisitPlanOptions()
},
watch: {
chatVisible() {
if (!this.chatVisible) {
this.$store.state.trials.checkTaskId = null;
this.$store.state.trials.checkTaskId = null
}
},
},
methods: {
beforeClose() {
this.chatVisible = false;
this.$store.state.trials.checkTaskId = null;
this.chatVisible = false
this.$store.state.trials.checkTaskId = null
},
handleExport(type) {
if (type === 1) {
getDicomAndNoneDicomStudyList_Export(this.searchData)
.then((res) => {})
.catch(() => {
this.loading = false;
});
this.loading = false
})
} else {
getConsistencyVerificationList_Export(this.searchData)
.then((res) => {})
.catch(() => {
this.loading = false;
});
this.loading = false
})
}
},
typeChange(v) {
if (v === (this.currentRow.type === "pass" ? 4 : 2)) {
this.QuestionForm.Reason = null;
this.QuestionForm.Remake = null;
if (v === (this.currentRow.type === 'pass' ? 4 : 2)) {
this.QuestionForm.Reason = null
this.QuestionForm.Remake = null
} else {
this.QuestionForm.Reason = this.$t(
`trials:check:radio:${this.currentRow.type}reason${v}`
);
)
}
},
passOrCloes() {
if (this.currentRow.type === "pass") {
this.pass();
if (this.currentRow.type === 'pass') {
this.pass()
} else {
this.handleClose(this.currentRow);
this.handleClose(this.currentRow)
}
},
handleOpenReason(row, type) {
if (type === "pass") {
if (type === 'pass') {
//
this.ReasonTitle = this.$t(
"trials:consistencyCheck:dialogTitle:xfpassManually"
);
'trials:consistencyCheck:dialogTitle:xfpassManually'
)
} else {
//
this.ReasonTitle = this.$t(
"trials:consistencyCheck:dialogTitle:xfclose"
);
'trials:consistencyCheck:dialogTitle:xfclose'
)
}
this.currentRow = { ...row, Reason: null };
this.currentRow.type = type;
this.currentRow = { ...row, Reason: null }
this.currentRow.type = type
this.QuestionForm = {
Type: null,
Reason: null,
Remake: null,
};
this.ReasonVisible = true;
}
this.ReasonVisible = true
},
//
getList() {
this.loading = true;
this.searchData.TrialId = this.trialId;
this.loading = true
this.searchData.TrialId = this.trialId
getConsistencyVerificationList(this.searchData)
.then((res) => {
this.loading = false;
this.list = res.Result.CurrentPageData;
this.total = res.Result.TotalCount;
this.OtherInfo = res.OtherInfo;
this.loading = false
this.list = res.Result.CurrentPageData
this.total = res.Result.TotalCount
this.OtherInfo = res.OtherInfo
})
.catch(() => {
this.loading = false;
});
this.loading = false
})
},
//
handleReply(row) {
this.loading = true;
this.loading = true
getCheckChallengeDialogList(row.Id)
.then((res) => {
this.loading = false;
this.loading = false
if (res.IsSuccess) {
Object.assign(row, res.Result.SubjectVisitCheck);
this.currentRow = { ...row };
this.$store.state.trials.checkTaskId = row.Id;
this.currentDialogList = res.Result.DialogList;
this.isReply = true;
this.chatVisible = true;
Object.assign(row, res.Result.SubjectVisitCheck)
this.currentRow = { ...row }
this.$store.state.trials.checkTaskId = row.Id
this.currentDialogList = res.Result.DialogList
this.isReply = true
this.chatVisible = true
}
})
.catch(() => {
this.loading = false;
});
this.loading = false
})
},
getDialogList() {
this.loading = true;
this.$refs["chatForm"].loading = true;
this.loading = true
this.$refs['chatForm'].loading = true
getCheckChallengeDialogList(this.currentRow.Id)
.then((res) => {
this.loading = false;
this.loading = false
if (res.IsSuccess) {
var i = this.list.findIndex(
(item) => item.Id === this.currentRow.Id
);
)
if (i > -1) {
this.currentRow = Object.assign(
this.list[i],
res.Result.SubjectVisitCheck
);
this.currentDialogList = res.Result.DialogList;
this.$refs["chatForm"].addMessage(
)
this.currentDialogList = res.Result.DialogList
this.$refs['chatForm'].addMessage(
res.Result.DialogList[res.Result.DialogList.length - 1]
);
)
// this.$refs['chatForm'].getMessageList(res.Result.DialogList)
}
}
})
.catch(() => {
this.loading = false;
this.$refs["chatForm"].loading = false;
});
this.loading = false
this.$refs['chatForm'].loading = false
})
},
// 退
// handleBack(row) {
@ -799,127 +825,125 @@ export default {
// this.signVisible = true
// },
handleBack() {
this.signType = 1;
const { DataFallback } = const_.processSignature;
this.signCode = DataFallback;
this.signVisible = true;
this.signType = 1
const { DataFallback } = const_.processSignature
this.signCode = DataFallback
this.signVisible = true
},
pass() {
this.$refs.reasonForm.validate((valid) => {
if (!valid) return;
this.btnLoading = true;
if (!valid) return
this.btnLoading = true
if (this.QuestionForm.Type === 4) {
//
this.QuestionForm.Reason = `${this.QuestionForm.Remake}`;
this.QuestionForm.Reason = `${this.QuestionForm.Remake}`
}
var params = {
Id: this.currentRow.Id,
ManualPassReason: this.QuestionForm.Reason,
};
}
setCheckPass(this.trialId, params)
.then((res) => {
this.btnLoading = false;
this.btnLoading = false
if (res.IsSuccess) {
this.getList();
this.QuestionForm.Type = null;
this.ReasonVisible = false;
this.$message.success(
this.$t("common:message:savedSuccessfully")
);
this.getList()
this.QuestionForm.Type = null
this.ReasonVisible = false
this.$message.success(this.$t('common:message:savedSuccessfully'))
}
})
.catch(() => {
this.btnLoading = false;
});
});
this.btnLoading = false
})
})
},
back(signInfo) {
this.loading = true;
this.loading = true
var params = {
data: { id: this.currentRow.Id },
signInfo: signInfo,
};
}
checkBack(params)
.then((res) => {
this.loading = false;
this.loading = false
if (signInfo) {
this.$refs["signForm"].btnLoading = false;
this.signVisible = false;
this.$refs['signForm'].btnLoading = false
this.signVisible = false
}
if (res.IsSuccess) {
this.getList();
this.getList()
// this.getDialogList()
this.chatVisible = false;
this.chatVisible = false
// 退
this.$message.success(
this.$t("trials:consistencyCheck:message:fallbackSuccessfully")
);
this.$t('trials:consistencyCheck:message:fallbackSuccessfully')
)
}
})
.catch(() => {
this.loading = false;
this.loading = false
if (signInfo) {
this.$refs["signForm"].btnLoading = false;
this.$refs['signForm'].btnLoading = false
}
});
})
},
//
handleClose(row) {
this.$refs.reasonForm.validate((valid) => {
if (!valid) return;
var item = Object.assign({}, row);
item.CheckChallengeState = 3;
this.btnLoading = true;
if (!valid) return
var item = Object.assign({}, row)
item.CheckChallengeState = 3
this.btnLoading = true
if (this.QuestionForm.Type === 2) {
//
this.QuestionForm.Reason = `${this.$t(
"trials:qcQuality:message:problemNotSolved"
)}<br/><br/>${this.$t("trials:consistencyCheck:title:note")}${
'trials:qcQuality:message:problemNotSolved'
)}<br/><br/>${this.$t('trials:consistencyCheck:title:note')}${
this.QuestionForm.Remake
}`;
}`
}
var params = {
SubjectVisitId: row.Id,
CloseCheckChallenge: this.QuestionForm.Reason,
};
}
closeCheckChallenge(this.trialId, params)
.then((res) => {
this.btnLoading = false;
this.btnLoading = false
if (res.IsSuccess) {
this.getList();
this.ReasonVisible = false;
this.QuestionForm.Type = null;
this.getList()
this.ReasonVisible = false
this.QuestionForm.Type = null
//
this.$message.success(
this.$t("trials:consistencyCheck:message:closedSuccessfully")
);
this.$t('trials:consistencyCheck:message:closedSuccessfully')
)
}
})
.catch(() => {
this.btnLoading = false;
});
});
this.btnLoading = false
})
})
},
handleDownload() {
this.loading = true;
DownloadCommonDoc("VisitCheck_Template")
this.loading = true
DownloadCommonDoc('VisitCheck_Template')
.then((data) => {
this.loading = false;
this.loading = false
})
.catch(() => {
this.loading = false;
});
this.loading = false
})
},
// excel
handleOpenUploadDialog() {
this.upload_cfg.visible = true;
this.upload_cfg.title = this.$t("common:button:upload");
this.upload_cfg.visible = true
this.upload_cfg.title = this.$t('common:button:upload')
},
//
handleView(row) {
this.currentRow = { ...row };
this.isReply = false;
this.chatVisible = true;
this.currentRow = { ...row }
this.isReply = false
this.chatVisible = true
},
// crc退
// handleApplyBack(row) {
@ -933,92 +957,92 @@ export default {
// }).catch(() => {})
// },
handleApplyBack() {
this.$confirm(this.$t("trials:consistencyCheck:message:apply"), {
type: "warning",
this.$confirm(this.$t('trials:consistencyCheck:message:apply'), {
type: 'warning',
distinguishCancelAndClose: true,
})
.then(() => {
this.apply();
this.apply()
})
.catch(() => {});
.catch(() => {})
},
apply() {
this.loading = true;
this.loading = true
cRCRequstCheckBack(this.trialId, this.currentRow.Id)
.then((res) => {
this.loading = false;
this.loading = false
if (res.IsSuccess) {
// this.getList()
this.getDialogList();
this.getDialogList()
//
// this.$message.success(this.$t('trials:consistencyCheck:message:appledSuccessfully'))
}
})
.catch(() => {
this.loading = false;
});
this.loading = false
})
},
//
closeSignDialog(isRefresh, signInfo) {
if (!isRefresh) {
this.signVisible = false;
this.signVisible = false
} else {
// 1退,2
if (this.signType === 1) {
this.back(signInfo);
this.back(signInfo)
}
}
},
//
handlePassCheck(row) {
this.signType = 2;
this.currentRow = { ...row };
const { ConsistencyCheckPassed } = const_.processSignature;
this.signCode = ConsistencyCheckPassed;
this.signVisible = true;
this.signType = 2
this.currentRow = { ...row }
const { ConsistencyCheckPassed } = const_.processSignature
this.signCode = ConsistencyCheckPassed
this.signVisible = true
},
//
handleReset() {
this.searchData = searchDataDefault();
this.getList();
this.searchData = searchDataDefault()
this.getList()
this.$nextTick(() => {
this.$refs.consistencyTable.clearSort();
});
this.$refs.consistencyTable.clearSort()
})
},
//
handleSearch() {
this.searchData.PageIndex = 1;
this.getList();
this.searchData.PageIndex = 1
this.getList()
},
//
handleSortByColumn(column) {
if (column.order === "ascending") {
this.searchData.Asc = true;
if (column.order === 'ascending') {
this.searchData.Asc = true
} else {
this.searchData.Asc = false;
this.searchData.Asc = false
}
this.searchData.SortField = column.prop;
this.searchData.PageIndex = 1;
this.getList();
this.searchData.SortField = column.prop
this.searchData.PageIndex = 1
this.getList()
},
refreshTable() {
this.upload_cfg.visible = false;
this.getList();
this.upload_cfg.visible = false
this.getList()
},
// site
getSite() {
getTrialSiteSelect(this.trialId).then((res) => {
this.siteOptions = res.Result;
});
this.siteOptions = res.Result
})
},
// 访
getVisitPlanOptions() {
getTrialVisitStageSelect(this.trialId).then((res) => {
this.visitPlanOptions = res.Result;
});
this.visitPlanOptions = res.Result
})
},
},
};
}
</script>
<style lang="scss">
.consistency-list {