一致性核查检查日期改为拍片日期
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
ab527e2357
commit
629816217c
|
@ -62,7 +62,7 @@
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- 查询 -->
|
<!-- 查询 -->
|
||||||
<el-button type="primary" icon="el-icon-search" @click="handleSearch">
|
<el-button type="primary" icon="el-icon-search" @click="handleSearch">
|
||||||
{{ $t("common:button:search") }}
|
{{ $t('common:button:search') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
<!-- 重置 -->
|
<!-- 重置 -->
|
||||||
<el-button
|
<el-button
|
||||||
|
@ -70,7 +70,7 @@
|
||||||
icon="el-icon-refresh-left"
|
icon="el-icon-refresh-left"
|
||||||
@click="handleReset"
|
@click="handleReset"
|
||||||
>
|
>
|
||||||
{{ $t("common:button:reset") }}
|
{{ $t('common:button:reset') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
<!--导出一致性核查表-->
|
<!--导出一致性核查表-->
|
||||||
<el-button
|
<el-button
|
||||||
|
@ -78,7 +78,7 @@
|
||||||
icon="el-icon-download"
|
icon="el-icon-download"
|
||||||
@click="handleExport(1)"
|
@click="handleExport(1)"
|
||||||
>
|
>
|
||||||
{{ $t("trials:consistencyCheck:button:export1") }}
|
{{ $t('trials:consistencyCheck:button:export1') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
<!-- 导出一致性核查记录表 -->
|
<!-- 导出一致性核查记录表 -->
|
||||||
<el-button
|
<el-button
|
||||||
|
@ -86,7 +86,7 @@
|
||||||
icon="el-icon-download"
|
icon="el-icon-download"
|
||||||
@click="handleExport(2)"
|
@click="handleExport(2)"
|
||||||
>
|
>
|
||||||
{{ $t("trials:consistencyCheck:button:export2") }}
|
{{ $t('trials:consistencyCheck:button:export2') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
<!-- 下载模板 -->
|
<!-- 下载模板 -->
|
||||||
<el-button
|
<el-button
|
||||||
|
@ -95,7 +95,7 @@
|
||||||
icon="el-icon-download"
|
icon="el-icon-download"
|
||||||
@click="handleDownload"
|
@click="handleDownload"
|
||||||
>
|
>
|
||||||
{{ $t("trials:consistencyCheck:button:download") }}
|
{{ $t('trials:consistencyCheck:button:download') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
</el-form>
|
</el-form>
|
||||||
<!-- 上传 -->
|
<!-- 上传 -->
|
||||||
|
@ -106,7 +106,7 @@
|
||||||
icon="el-icon-upload2"
|
icon="el-icon-upload2"
|
||||||
@click="handleOpenUploadDialog"
|
@click="handleOpenUploadDialog"
|
||||||
>
|
>
|
||||||
{{ $t("trials:consistencyCheck:button:upload") }}
|
{{ $t('trials:consistencyCheck:button:upload') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
|
@ -133,10 +133,10 @@
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-tag v-if="scope.row.IsUrgent" type="danger">{{
|
<el-tag v-if="scope.row.IsUrgent" type="danger">{{
|
||||||
$fd("YesOrNo", scope.row.IsUrgent)
|
$fd('YesOrNo', scope.row.IsUrgent)
|
||||||
}}</el-tag>
|
}}</el-tag>
|
||||||
<el-tag v-else type="primary">{{
|
<el-tag v-else type="primary">{{
|
||||||
$fd("YesOrNo", scope.row.IsUrgent)
|
$fd('YesOrNo', scope.row.IsUrgent)
|
||||||
}}</el-tag>
|
}}</el-tag>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
@ -156,8 +156,8 @@
|
||||||
>
|
>
|
||||||
{{
|
{{
|
||||||
userTypeEnumInt === 2
|
userTypeEnumInt === 2
|
||||||
? $fd("CheckChallengeState", 1)
|
? $fd('CheckChallengeState', 1)
|
||||||
: $fd("CheckChallengeState", 2)
|
: $fd('CheckChallengeState', 2)
|
||||||
}}
|
}}
|
||||||
</el-tag>
|
</el-tag>
|
||||||
<el-tag
|
<el-tag
|
||||||
|
@ -166,12 +166,12 @@
|
||||||
>
|
>
|
||||||
{{
|
{{
|
||||||
userTypeEnumInt === 2
|
userTypeEnumInt === 2
|
||||||
? $fd("CheckChallengeState", 2)
|
? $fd('CheckChallengeState', 2)
|
||||||
: $fd("CheckChallengeState", 1)
|
: $fd('CheckChallengeState', 1)
|
||||||
}}
|
}}
|
||||||
</el-tag>
|
</el-tag>
|
||||||
<el-tag v-else-if="scope.row.CheckChallengeState === 3">{{
|
<el-tag v-else-if="scope.row.CheckChallengeState === 3">{{
|
||||||
$fd("CheckChallengeState", scope.row.CheckChallengeState)
|
$fd('CheckChallengeState', scope.row.CheckChallengeState)
|
||||||
}}</el-tag>
|
}}</el-tag>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
@ -202,7 +202,7 @@
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span>{{ scope.row.VisitName }}</span>
|
<span>{{ scope.row.VisitName }}</span>
|
||||||
<span v-if="scope.row.IsCheckBack" class="status-primary-circle">{{
|
<span v-if="scope.row.IsCheckBack" class="status-primary-circle">{{
|
||||||
$t("trials:consistencyCheck:table:back")
|
$t('trials:consistencyCheck:table:back')
|
||||||
}}</span>
|
}}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
@ -227,8 +227,32 @@
|
||||||
width="140"
|
width="140"
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<!-- <template slot-scope="scope">
|
||||||
<span>{{ scope.row.LatestScanDate.split(" ")[0] }}</span>
|
<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>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
||||||
|
@ -270,13 +294,13 @@
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span v-if="scope.row.CheckState === 0"> -- </span>
|
<span v-if="scope.row.CheckState === 0"> -- </span>
|
||||||
<el-tag v-else-if="scope.row.CheckState === 9" type="danger">{{
|
<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>
|
||||||
<el-tag v-else-if="scope.row.CheckState === 10" type="danger">{{
|
<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>
|
||||||
<el-tag v-else-if="scope.row.CheckState === 11">{{
|
<el-tag v-else-if="scope.row.CheckState === 11">{{
|
||||||
$fd("CheckState", scope.row.CheckState)
|
$fd('CheckState', scope.row.CheckState)
|
||||||
}}</el-tag>
|
}}</el-tag>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
@ -312,23 +336,23 @@
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span v-if="scope.row.RequestBackState * 1 === 0">{{
|
<span v-if="scope.row.RequestBackState * 1 === 0">{{
|
||||||
$fd("RequestBackState", scope.row.RequestBackState * 1)
|
$fd('RequestBackState', scope.row.RequestBackState * 1)
|
||||||
}}</span>
|
}}</span>
|
||||||
<el-tag v-else-if="scope.row.RequestBackState * 1 === 1">{{
|
<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>
|
||||||
<el-tag
|
<el-tag
|
||||||
v-else-if="scope.row.RequestBackState * 1 === 2"
|
v-else-if="scope.row.RequestBackState * 1 === 2"
|
||||||
type="warning"
|
type="warning"
|
||||||
>{{
|
>{{
|
||||||
$fd("RequestBackState", scope.row.RequestBackState * 1)
|
$fd('RequestBackState', scope.row.RequestBackState * 1)
|
||||||
}}</el-tag
|
}}</el-tag
|
||||||
>
|
>
|
||||||
<el-tag
|
<el-tag
|
||||||
v-else-if="scope.row.RequestBackState * 1 === 3"
|
v-else-if="scope.row.RequestBackState * 1 === 3"
|
||||||
type="danger"
|
type="danger"
|
||||||
>{{
|
>{{
|
||||||
$fd("RequestBackState", scope.row.RequestBackState * 1)
|
$fd('RequestBackState', scope.row.RequestBackState * 1)
|
||||||
}}</el-tag
|
}}</el-tag
|
||||||
>
|
>
|
||||||
</template>
|
</template>
|
||||||
|
@ -396,9 +420,9 @@
|
||||||
<div class="remark">
|
<div class="remark">
|
||||||
<span class="status-primary-circle">
|
<span class="status-primary-circle">
|
||||||
<!-- 回退 -->
|
<!-- 回退 -->
|
||||||
{{ $t("trials:consistencyCheck:table:back") }}
|
{{ $t('trials:consistencyCheck:table:back') }}
|
||||||
</span>
|
</span>
|
||||||
<span>: {{ $t("trials:consistencyCheck:title:back") }}</span>
|
<span>: {{ $t('trials:consistencyCheck:title:back') }}</span>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -435,9 +459,9 @@
|
||||||
width="600px"
|
width="600px"
|
||||||
>
|
>
|
||||||
<div slot="title">
|
<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">{{
|
<span style="font-size: 12px; margin-left: 5px">{{
|
||||||
`(${$t("common:label:sign")}${currentUser})`
|
`(${$t('common:label:sign')}${currentUser})`
|
||||||
}}</span>
|
}}</span>
|
||||||
</div>
|
</div>
|
||||||
<SignForm
|
<SignForm
|
||||||
|
@ -539,11 +563,11 @@
|
||||||
size="small"
|
size="small"
|
||||||
type="primary"
|
type="primary"
|
||||||
@click="
|
@click="
|
||||||
ReasonVisible = false;
|
ReasonVisible = false
|
||||||
QuestionForm = { Type: null, Reason: null };
|
QuestionForm = { Type: null, Reason: null }
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
{{ $t("common:button:cancel") }}
|
{{ $t('common:button:cancel') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
<!-- 保存 -->
|
<!-- 保存 -->
|
||||||
<el-button
|
<el-button
|
||||||
|
@ -552,7 +576,7 @@
|
||||||
type="primary"
|
type="primary"
|
||||||
@click="passOrCloes"
|
@click="passOrCloes"
|
||||||
>
|
>
|
||||||
{{ $t("common:button:save") }}
|
{{ $t('common:button:save') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
@ -573,32 +597,33 @@ import {
|
||||||
closeCheckChallenge,
|
closeCheckChallenge,
|
||||||
setCheckPass,
|
setCheckPass,
|
||||||
getCheckChallengeDialogList,
|
getCheckChallengeDialogList,
|
||||||
} from "@/api/trials";
|
} from '@/api/trials'
|
||||||
import { DownloadCommonDoc } from "@/api/dictionary";
|
import { DownloadCommonDoc } from '@/api/dictionary'
|
||||||
import {
|
import {
|
||||||
getDicomAndNoneDicomStudyList_Export,
|
getDicomAndNoneDicomStudyList_Export,
|
||||||
getConsistencyVerificationList_Export,
|
getConsistencyVerificationList_Export,
|
||||||
} from "@/api/export";
|
} from '@/api/export'
|
||||||
import { checkBack } from "@/api/trials/visit";
|
import { checkBack } from '@/api/trials/visit'
|
||||||
import BaseContainer from "@/components/BaseContainer";
|
import BaseContainer from '@/components/BaseContainer'
|
||||||
import BaseModel from "@/components/BaseModel";
|
import BaseModel from '@/components/BaseModel'
|
||||||
import ConsistencyCheckForm from "./components/consistencyCheckForm";
|
import ConsistencyCheckForm from './components/consistencyCheckForm'
|
||||||
import UploadExcel from "./components/uploadExcel";
|
import UploadExcel from './components/uploadExcel'
|
||||||
import SignForm from "@/views/trials/components/newSignForm";
|
import SignForm from '@/views/trials/components/newSignForm'
|
||||||
import Pagination from "@/components/Pagination";
|
import Pagination from '@/components/Pagination'
|
||||||
import const_ from "@/const/sign-code";
|
import const_ from '@/const/sign-code'
|
||||||
|
import moment from 'moment'
|
||||||
const searchDataDefault = () => {
|
const searchDataDefault = () => {
|
||||||
return {
|
return {
|
||||||
TrialSiteId: "",
|
TrialSiteId: '',
|
||||||
SubjectInfo: "",
|
SubjectInfo: '',
|
||||||
VisitPlanArray: [],
|
VisitPlanArray: [],
|
||||||
CheckState: null,
|
CheckState: null,
|
||||||
PageIndex: 1,
|
PageIndex: 1,
|
||||||
PageSize: 20,
|
PageSize: 20,
|
||||||
};
|
}
|
||||||
};
|
}
|
||||||
export default {
|
export default {
|
||||||
name: "ConsistencyCheck",
|
name: 'ConsistencyCheck',
|
||||||
components: {
|
components: {
|
||||||
BaseContainer,
|
BaseContainer,
|
||||||
Pagination,
|
Pagination,
|
||||||
|
@ -614,6 +639,7 @@ export default {
|
||||||
Reason: null,
|
Reason: null,
|
||||||
Remake: null,
|
Remake: null,
|
||||||
},
|
},
|
||||||
|
moment,
|
||||||
searchData: searchDataDefault(),
|
searchData: searchDataDefault(),
|
||||||
ReasonVisible: false,
|
ReasonVisible: false,
|
||||||
total: 0,
|
total: 0,
|
||||||
|
@ -625,170 +651,170 @@ export default {
|
||||||
currentDialogList: [],
|
currentDialogList: [],
|
||||||
siteOptions: [],
|
siteOptions: [],
|
||||||
visitPlanOptions: [],
|
visitPlanOptions: [],
|
||||||
userTypeEnumInt: zzSessionStorage.getItem("userTypeEnumInt") * 1,
|
userTypeEnumInt: zzSessionStorage.getItem('userTypeEnumInt') * 1,
|
||||||
upload_cfg: {
|
upload_cfg: {
|
||||||
visible: false,
|
visible: false,
|
||||||
title: this.$t("trials:consistencyCheck:button:upload"),
|
title: this.$t('trials:consistencyCheck:button:upload'),
|
||||||
width: "500px",
|
width: '500px',
|
||||||
showClose: true,
|
showClose: true,
|
||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
Type: [
|
Type: [
|
||||||
{
|
{
|
||||||
required: true,
|
required: true,
|
||||||
message: this.$t("common:ruleMessage:specify"),
|
message: this.$t('common:ruleMessage:specify'),
|
||||||
trigger: "blur",
|
trigger: 'blur',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
Remake: [
|
Remake: [
|
||||||
{
|
{
|
||||||
required: true,
|
required: true,
|
||||||
message: this.$t("common:ruleMessage:specify"),
|
message: this.$t('common:ruleMessage:specify'),
|
||||||
trigger: "blur",
|
trigger: 'blur',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
signVisible: false,
|
signVisible: false,
|
||||||
signType: 0, // 0代表申请,1代表回退,2通过
|
signType: 0, // 0代表申请,1代表回退,2通过
|
||||||
currentUser: zzSessionStorage.getItem("userName"),
|
currentUser: zzSessionStorage.getItem('userName'),
|
||||||
OtherInfo: {},
|
OtherInfo: {},
|
||||||
signCode: "",
|
signCode: '',
|
||||||
trialId: this.$route.query.trialId,
|
trialId: this.$route.query.trialId,
|
||||||
isReply: false,
|
isReply: false,
|
||||||
ReasonTitle: null,
|
ReasonTitle: null,
|
||||||
};
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.getList();
|
this.getList()
|
||||||
this.getSite();
|
this.getSite()
|
||||||
this.getVisitPlanOptions();
|
this.getVisitPlanOptions()
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
chatVisible() {
|
chatVisible() {
|
||||||
if (!this.chatVisible) {
|
if (!this.chatVisible) {
|
||||||
this.$store.state.trials.checkTaskId = null;
|
this.$store.state.trials.checkTaskId = null
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
beforeClose() {
|
beforeClose() {
|
||||||
this.chatVisible = false;
|
this.chatVisible = false
|
||||||
this.$store.state.trials.checkTaskId = null;
|
this.$store.state.trials.checkTaskId = null
|
||||||
},
|
},
|
||||||
handleExport(type) {
|
handleExport(type) {
|
||||||
if (type === 1) {
|
if (type === 1) {
|
||||||
getDicomAndNoneDicomStudyList_Export(this.searchData)
|
getDicomAndNoneDicomStudyList_Export(this.searchData)
|
||||||
.then((res) => {})
|
.then((res) => {})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
this.loading = false;
|
this.loading = false
|
||||||
});
|
})
|
||||||
} else {
|
} else {
|
||||||
getConsistencyVerificationList_Export(this.searchData)
|
getConsistencyVerificationList_Export(this.searchData)
|
||||||
.then((res) => {})
|
.then((res) => {})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
this.loading = false;
|
this.loading = false
|
||||||
});
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
typeChange(v) {
|
typeChange(v) {
|
||||||
if (v === (this.currentRow.type === "pass" ? 4 : 2)) {
|
if (v === (this.currentRow.type === 'pass' ? 4 : 2)) {
|
||||||
this.QuestionForm.Reason = null;
|
this.QuestionForm.Reason = null
|
||||||
this.QuestionForm.Remake = null;
|
this.QuestionForm.Remake = null
|
||||||
} else {
|
} else {
|
||||||
this.QuestionForm.Reason = this.$t(
|
this.QuestionForm.Reason = this.$t(
|
||||||
`trials:check:radio:${this.currentRow.type}reason${v}`
|
`trials:check:radio:${this.currentRow.type}reason${v}`
|
||||||
);
|
)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
passOrCloes() {
|
passOrCloes() {
|
||||||
if (this.currentRow.type === "pass") {
|
if (this.currentRow.type === 'pass') {
|
||||||
this.pass();
|
this.pass()
|
||||||
} else {
|
} else {
|
||||||
this.handleClose(this.currentRow);
|
this.handleClose(this.currentRow)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleOpenReason(row, type) {
|
handleOpenReason(row, type) {
|
||||||
if (type === "pass") {
|
if (type === 'pass') {
|
||||||
// 手动通过一次性核查原因
|
// 手动通过一次性核查原因
|
||||||
this.ReasonTitle = this.$t(
|
this.ReasonTitle = this.$t(
|
||||||
"trials:consistencyCheck:dialogTitle:xfpassManually"
|
'trials:consistencyCheck:dialogTitle:xfpassManually'
|
||||||
);
|
)
|
||||||
} else {
|
} else {
|
||||||
// 关闭一致性核查原因
|
// 关闭一致性核查原因
|
||||||
this.ReasonTitle = this.$t(
|
this.ReasonTitle = this.$t(
|
||||||
"trials:consistencyCheck:dialogTitle:xfclose"
|
'trials:consistencyCheck:dialogTitle:xfclose'
|
||||||
);
|
)
|
||||||
}
|
}
|
||||||
this.currentRow = { ...row, Reason: null };
|
this.currentRow = { ...row, Reason: null }
|
||||||
this.currentRow.type = type;
|
this.currentRow.type = type
|
||||||
this.QuestionForm = {
|
this.QuestionForm = {
|
||||||
Type: null,
|
Type: null,
|
||||||
Reason: null,
|
Reason: null,
|
||||||
Remake: null,
|
Remake: null,
|
||||||
};
|
}
|
||||||
this.ReasonVisible = true;
|
this.ReasonVisible = true
|
||||||
},
|
},
|
||||||
// 获取质疑列表
|
// 获取质疑列表
|
||||||
getList() {
|
getList() {
|
||||||
this.loading = true;
|
this.loading = true
|
||||||
this.searchData.TrialId = this.trialId;
|
this.searchData.TrialId = this.trialId
|
||||||
getConsistencyVerificationList(this.searchData)
|
getConsistencyVerificationList(this.searchData)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
this.loading = false;
|
this.loading = false
|
||||||
this.list = res.Result.CurrentPageData;
|
this.list = res.Result.CurrentPageData
|
||||||
this.total = res.Result.TotalCount;
|
this.total = res.Result.TotalCount
|
||||||
this.OtherInfo = res.OtherInfo;
|
this.OtherInfo = res.OtherInfo
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
this.loading = false;
|
this.loading = false
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
// 回复质疑
|
// 回复质疑
|
||||||
handleReply(row) {
|
handleReply(row) {
|
||||||
this.loading = true;
|
this.loading = true
|
||||||
getCheckChallengeDialogList(row.Id)
|
getCheckChallengeDialogList(row.Id)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
this.loading = false;
|
this.loading = false
|
||||||
if (res.IsSuccess) {
|
if (res.IsSuccess) {
|
||||||
Object.assign(row, res.Result.SubjectVisitCheck);
|
Object.assign(row, res.Result.SubjectVisitCheck)
|
||||||
this.currentRow = { ...row };
|
this.currentRow = { ...row }
|
||||||
this.$store.state.trials.checkTaskId = row.Id;
|
this.$store.state.trials.checkTaskId = row.Id
|
||||||
this.currentDialogList = res.Result.DialogList;
|
this.currentDialogList = res.Result.DialogList
|
||||||
this.isReply = true;
|
this.isReply = true
|
||||||
this.chatVisible = true;
|
this.chatVisible = true
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
this.loading = false;
|
this.loading = false
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
getDialogList() {
|
getDialogList() {
|
||||||
this.loading = true;
|
this.loading = true
|
||||||
this.$refs["chatForm"].loading = true;
|
this.$refs['chatForm'].loading = true
|
||||||
getCheckChallengeDialogList(this.currentRow.Id)
|
getCheckChallengeDialogList(this.currentRow.Id)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
this.loading = false;
|
this.loading = false
|
||||||
if (res.IsSuccess) {
|
if (res.IsSuccess) {
|
||||||
var i = this.list.findIndex(
|
var i = this.list.findIndex(
|
||||||
(item) => item.Id === this.currentRow.Id
|
(item) => item.Id === this.currentRow.Id
|
||||||
);
|
)
|
||||||
if (i > -1) {
|
if (i > -1) {
|
||||||
this.currentRow = Object.assign(
|
this.currentRow = Object.assign(
|
||||||
this.list[i],
|
this.list[i],
|
||||||
res.Result.SubjectVisitCheck
|
res.Result.SubjectVisitCheck
|
||||||
);
|
)
|
||||||
this.currentDialogList = res.Result.DialogList;
|
this.currentDialogList = res.Result.DialogList
|
||||||
this.$refs["chatForm"].addMessage(
|
this.$refs['chatForm'].addMessage(
|
||||||
res.Result.DialogList[res.Result.DialogList.length - 1]
|
res.Result.DialogList[res.Result.DialogList.length - 1]
|
||||||
);
|
)
|
||||||
// this.$refs['chatForm'].getMessageList(res.Result.DialogList)
|
// this.$refs['chatForm'].getMessageList(res.Result.DialogList)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
this.loading = false;
|
this.loading = false
|
||||||
this.$refs["chatForm"].loading = false;
|
this.$refs['chatForm'].loading = false
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
// 回退
|
// 回退
|
||||||
// handleBack(row) {
|
// handleBack(row) {
|
||||||
|
@ -799,127 +825,125 @@ export default {
|
||||||
// this.signVisible = true
|
// this.signVisible = true
|
||||||
// },
|
// },
|
||||||
handleBack() {
|
handleBack() {
|
||||||
this.signType = 1;
|
this.signType = 1
|
||||||
const { DataFallback } = const_.processSignature;
|
const { DataFallback } = const_.processSignature
|
||||||
this.signCode = DataFallback;
|
this.signCode = DataFallback
|
||||||
this.signVisible = true;
|
this.signVisible = true
|
||||||
},
|
},
|
||||||
pass() {
|
pass() {
|
||||||
this.$refs.reasonForm.validate((valid) => {
|
this.$refs.reasonForm.validate((valid) => {
|
||||||
if (!valid) return;
|
if (!valid) return
|
||||||
this.btnLoading = true;
|
this.btnLoading = true
|
||||||
if (this.QuestionForm.Type === 4) {
|
if (this.QuestionForm.Type === 4) {
|
||||||
// 问题无法解决强制关闭质疑,已提醒中心下次注意
|
// 问题无法解决强制关闭质疑,已提醒中心下次注意
|
||||||
this.QuestionForm.Reason = `${this.QuestionForm.Remake}`;
|
this.QuestionForm.Reason = `${this.QuestionForm.Remake}`
|
||||||
}
|
}
|
||||||
var params = {
|
var params = {
|
||||||
Id: this.currentRow.Id,
|
Id: this.currentRow.Id,
|
||||||
ManualPassReason: this.QuestionForm.Reason,
|
ManualPassReason: this.QuestionForm.Reason,
|
||||||
};
|
}
|
||||||
setCheckPass(this.trialId, params)
|
setCheckPass(this.trialId, params)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
this.btnLoading = false;
|
this.btnLoading = false
|
||||||
if (res.IsSuccess) {
|
if (res.IsSuccess) {
|
||||||
this.getList();
|
this.getList()
|
||||||
this.QuestionForm.Type = null;
|
this.QuestionForm.Type = null
|
||||||
this.ReasonVisible = false;
|
this.ReasonVisible = false
|
||||||
this.$message.success(
|
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
||||||
this.$t("common:message:savedSuccessfully")
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
this.btnLoading = false;
|
this.btnLoading = false
|
||||||
});
|
})
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
back(signInfo) {
|
back(signInfo) {
|
||||||
this.loading = true;
|
this.loading = true
|
||||||
var params = {
|
var params = {
|
||||||
data: { id: this.currentRow.Id },
|
data: { id: this.currentRow.Id },
|
||||||
signInfo: signInfo,
|
signInfo: signInfo,
|
||||||
};
|
}
|
||||||
checkBack(params)
|
checkBack(params)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
this.loading = false;
|
this.loading = false
|
||||||
if (signInfo) {
|
if (signInfo) {
|
||||||
this.$refs["signForm"].btnLoading = false;
|
this.$refs['signForm'].btnLoading = false
|
||||||
this.signVisible = false;
|
this.signVisible = false
|
||||||
}
|
}
|
||||||
if (res.IsSuccess) {
|
if (res.IsSuccess) {
|
||||||
this.getList();
|
this.getList()
|
||||||
// this.getDialogList()
|
// this.getDialogList()
|
||||||
this.chatVisible = false;
|
this.chatVisible = false
|
||||||
// 回退成功
|
// 回退成功
|
||||||
this.$message.success(
|
this.$message.success(
|
||||||
this.$t("trials:consistencyCheck:message:fallbackSuccessfully")
|
this.$t('trials:consistencyCheck:message:fallbackSuccessfully')
|
||||||
);
|
)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
this.loading = false;
|
this.loading = false
|
||||||
if (signInfo) {
|
if (signInfo) {
|
||||||
this.$refs["signForm"].btnLoading = false;
|
this.$refs['signForm'].btnLoading = false
|
||||||
}
|
}
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
// 关闭质疑
|
// 关闭质疑
|
||||||
handleClose(row) {
|
handleClose(row) {
|
||||||
this.$refs.reasonForm.validate((valid) => {
|
this.$refs.reasonForm.validate((valid) => {
|
||||||
if (!valid) return;
|
if (!valid) return
|
||||||
var item = Object.assign({}, row);
|
var item = Object.assign({}, row)
|
||||||
item.CheckChallengeState = 3;
|
item.CheckChallengeState = 3
|
||||||
this.btnLoading = true;
|
this.btnLoading = true
|
||||||
if (this.QuestionForm.Type === 2) {
|
if (this.QuestionForm.Type === 2) {
|
||||||
// 问题无法解决强制关闭质疑,已提醒中心下次注意
|
// 问题无法解决强制关闭质疑,已提醒中心下次注意
|
||||||
this.QuestionForm.Reason = `${this.$t(
|
this.QuestionForm.Reason = `${this.$t(
|
||||||
"trials:qcQuality:message:problemNotSolved"
|
'trials:qcQuality:message:problemNotSolved'
|
||||||
)}<br/><br/>${this.$t("trials:consistencyCheck:title:note")}${
|
)}<br/><br/>${this.$t('trials:consistencyCheck:title:note')}${
|
||||||
this.QuestionForm.Remake
|
this.QuestionForm.Remake
|
||||||
}`;
|
}`
|
||||||
}
|
}
|
||||||
var params = {
|
var params = {
|
||||||
SubjectVisitId: row.Id,
|
SubjectVisitId: row.Id,
|
||||||
CloseCheckChallenge: this.QuestionForm.Reason,
|
CloseCheckChallenge: this.QuestionForm.Reason,
|
||||||
};
|
}
|
||||||
closeCheckChallenge(this.trialId, params)
|
closeCheckChallenge(this.trialId, params)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
this.btnLoading = false;
|
this.btnLoading = false
|
||||||
if (res.IsSuccess) {
|
if (res.IsSuccess) {
|
||||||
this.getList();
|
this.getList()
|
||||||
this.ReasonVisible = false;
|
this.ReasonVisible = false
|
||||||
this.QuestionForm.Type = null;
|
this.QuestionForm.Type = null
|
||||||
// 关闭成功
|
// 关闭成功
|
||||||
this.$message.success(
|
this.$message.success(
|
||||||
this.$t("trials:consistencyCheck:message:closedSuccessfully")
|
this.$t('trials:consistencyCheck:message:closedSuccessfully')
|
||||||
);
|
)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
this.btnLoading = false;
|
this.btnLoading = false
|
||||||
});
|
})
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
handleDownload() {
|
handleDownload() {
|
||||||
this.loading = true;
|
this.loading = true
|
||||||
DownloadCommonDoc("VisitCheck_Template")
|
DownloadCommonDoc('VisitCheck_Template')
|
||||||
.then((data) => {
|
.then((data) => {
|
||||||
this.loading = false;
|
this.loading = false
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
this.loading = false;
|
this.loading = false
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
// 打开上传excel弹窗
|
// 打开上传excel弹窗
|
||||||
handleOpenUploadDialog() {
|
handleOpenUploadDialog() {
|
||||||
this.upload_cfg.visible = true;
|
this.upload_cfg.visible = true
|
||||||
this.upload_cfg.title = this.$t("common:button:upload");
|
this.upload_cfg.title = this.$t('common:button:upload')
|
||||||
},
|
},
|
||||||
// 查看
|
// 查看
|
||||||
handleView(row) {
|
handleView(row) {
|
||||||
this.currentRow = { ...row };
|
this.currentRow = { ...row }
|
||||||
this.isReply = false;
|
this.isReply = false
|
||||||
this.chatVisible = true;
|
this.chatVisible = true
|
||||||
},
|
},
|
||||||
// crc申请回退
|
// crc申请回退
|
||||||
// handleApplyBack(row) {
|
// handleApplyBack(row) {
|
||||||
|
@ -933,92 +957,92 @@ export default {
|
||||||
// }).catch(() => {})
|
// }).catch(() => {})
|
||||||
// },
|
// },
|
||||||
handleApplyBack() {
|
handleApplyBack() {
|
||||||
this.$confirm(this.$t("trials:consistencyCheck:message:apply"), {
|
this.$confirm(this.$t('trials:consistencyCheck:message:apply'), {
|
||||||
type: "warning",
|
type: 'warning',
|
||||||
distinguishCancelAndClose: true,
|
distinguishCancelAndClose: true,
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
this.apply();
|
this.apply()
|
||||||
})
|
})
|
||||||
.catch(() => {});
|
.catch(() => {})
|
||||||
},
|
},
|
||||||
apply() {
|
apply() {
|
||||||
this.loading = true;
|
this.loading = true
|
||||||
cRCRequstCheckBack(this.trialId, this.currentRow.Id)
|
cRCRequstCheckBack(this.trialId, this.currentRow.Id)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
this.loading = false;
|
this.loading = false
|
||||||
if (res.IsSuccess) {
|
if (res.IsSuccess) {
|
||||||
// this.getList()
|
// this.getList()
|
||||||
this.getDialogList();
|
this.getDialogList()
|
||||||
// 申请成功
|
// 申请成功
|
||||||
// this.$message.success(this.$t('trials:consistencyCheck:message:appledSuccessfully'))
|
// this.$message.success(this.$t('trials:consistencyCheck:message:appledSuccessfully'))
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
this.loading = false;
|
this.loading = false
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
// 关闭签名弹窗
|
// 关闭签名弹窗
|
||||||
closeSignDialog(isRefresh, signInfo) {
|
closeSignDialog(isRefresh, signInfo) {
|
||||||
if (!isRefresh) {
|
if (!isRefresh) {
|
||||||
this.signVisible = false;
|
this.signVisible = false
|
||||||
} else {
|
} else {
|
||||||
// 1代表回退,2通过
|
// 1代表回退,2通过
|
||||||
if (this.signType === 1) {
|
if (this.signType === 1) {
|
||||||
this.back(signInfo);
|
this.back(signInfo)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 通过一致性核查
|
// 通过一致性核查
|
||||||
handlePassCheck(row) {
|
handlePassCheck(row) {
|
||||||
this.signType = 2;
|
this.signType = 2
|
||||||
this.currentRow = { ...row };
|
this.currentRow = { ...row }
|
||||||
const { ConsistencyCheckPassed } = const_.processSignature;
|
const { ConsistencyCheckPassed } = const_.processSignature
|
||||||
this.signCode = ConsistencyCheckPassed;
|
this.signCode = ConsistencyCheckPassed
|
||||||
this.signVisible = true;
|
this.signVisible = true
|
||||||
},
|
},
|
||||||
// 重置
|
// 重置
|
||||||
handleReset() {
|
handleReset() {
|
||||||
this.searchData = searchDataDefault();
|
this.searchData = searchDataDefault()
|
||||||
this.getList();
|
this.getList()
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs.consistencyTable.clearSort();
|
this.$refs.consistencyTable.clearSort()
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
// 查询
|
// 查询
|
||||||
handleSearch() {
|
handleSearch() {
|
||||||
this.searchData.PageIndex = 1;
|
this.searchData.PageIndex = 1
|
||||||
this.getList();
|
this.getList()
|
||||||
},
|
},
|
||||||
// 排序
|
// 排序
|
||||||
handleSortByColumn(column) {
|
handleSortByColumn(column) {
|
||||||
if (column.order === "ascending") {
|
if (column.order === 'ascending') {
|
||||||
this.searchData.Asc = true;
|
this.searchData.Asc = true
|
||||||
} else {
|
} else {
|
||||||
this.searchData.Asc = false;
|
this.searchData.Asc = false
|
||||||
}
|
}
|
||||||
this.searchData.SortField = column.prop;
|
this.searchData.SortField = column.prop
|
||||||
this.searchData.PageIndex = 1;
|
this.searchData.PageIndex = 1
|
||||||
this.getList();
|
this.getList()
|
||||||
},
|
},
|
||||||
refreshTable() {
|
refreshTable() {
|
||||||
this.upload_cfg.visible = false;
|
this.upload_cfg.visible = false
|
||||||
this.getList();
|
this.getList()
|
||||||
},
|
},
|
||||||
// 获取site下拉框数据
|
// 获取site下拉框数据
|
||||||
getSite() {
|
getSite() {
|
||||||
getTrialSiteSelect(this.trialId).then((res) => {
|
getTrialSiteSelect(this.trialId).then((res) => {
|
||||||
this.siteOptions = res.Result;
|
this.siteOptions = res.Result
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
// 获取访视下拉框数据
|
// 获取访视下拉框数据
|
||||||
getVisitPlanOptions() {
|
getVisitPlanOptions() {
|
||||||
getTrialVisitStageSelect(this.trialId).then((res) => {
|
getTrialVisitStageSelect(this.trialId).then((res) => {
|
||||||
this.visitPlanOptions = res.Result;
|
this.visitPlanOptions = res.Result
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
}
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
.consistency-list {
|
.consistency-list {
|
||||||
|
|
Loading…
Reference in New Issue