pacs拉取添加是否已拉取判断
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
beb96f272f
commit
1dd21911e5
|
@ -180,3 +180,12 @@ export function cmoveStudyList(data) {
|
||||||
data
|
data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// pacs验证
|
||||||
|
export function cMoveVerify(data) {
|
||||||
|
return request({
|
||||||
|
url: '/Patient/cMoveVerify',
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
|
@ -16,8 +16,8 @@
|
||||||
>
|
>
|
||||||
<el-select
|
<el-select
|
||||||
v-model="searchData.PacsDicomAEId"
|
v-model="searchData.PacsDicomAEId"
|
||||||
clearable
|
|
||||||
style="width: 140px"
|
style="width: 140px"
|
||||||
|
@change="getList"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="(item, index) of AElist"
|
v-for="(item, index) of AElist"
|
||||||
|
@ -84,7 +84,7 @@
|
||||||
</el-date-picker>
|
</el-date-picker>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- studyID -->
|
<!-- studyID -->
|
||||||
<el-form-item
|
<!-- <el-form-item
|
||||||
class="my_multiple"
|
class="my_multiple"
|
||||||
:label="$t('trials:inspection:pullImage:search:studyID')"
|
:label="$t('trials:inspection:pullImage:search:studyID')"
|
||||||
>
|
>
|
||||||
|
@ -93,6 +93,17 @@
|
||||||
clearable
|
clearable
|
||||||
:maxlength="400"
|
:maxlength="400"
|
||||||
></el-input>
|
></el-input>
|
||||||
|
</el-form-item> -->
|
||||||
|
<!-- AccessionNumber -->
|
||||||
|
<el-form-item
|
||||||
|
class="my_multiple"
|
||||||
|
:label="$t('trials:inspection:pullImage:search:AccessionNumber')"
|
||||||
|
>
|
||||||
|
<el-input
|
||||||
|
v-model="searchData.AccessionNumber"
|
||||||
|
clearable
|
||||||
|
:maxlength="400"
|
||||||
|
></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- modalitiesInStudy -->
|
<!-- modalitiesInStudy -->
|
||||||
<el-form-item
|
<el-form-item
|
||||||
|
@ -234,11 +245,18 @@
|
||||||
min-width="120"
|
min-width="120"
|
||||||
/>
|
/>
|
||||||
<!--studyID-->
|
<!--studyID-->
|
||||||
<el-table-column
|
<!-- <el-table-column
|
||||||
prop="StudyID"
|
prop="StudyID"
|
||||||
:label="$t('trials:inspection:pullImage:table:studyID')"
|
:label="$t('trials:inspection:pullImage:table:studyID')"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
min-width="120"
|
min-width="120"
|
||||||
|
/> -->
|
||||||
|
<!--AccessionNumber-->
|
||||||
|
<el-table-column
|
||||||
|
prop="AccessionNumber"
|
||||||
|
:label="$t('trials:inspection:pullImage:table:AccessionNumber')"
|
||||||
|
show-overflow-tooltip
|
||||||
|
min-width="120"
|
||||||
/>
|
/>
|
||||||
<!--modalitiesInStudy-->
|
<!--modalitiesInStudy-->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
|
@ -308,7 +326,11 @@
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import Pagination from '@/components/Pagination'
|
import Pagination from '@/components/Pagination'
|
||||||
import { getCFindStudyList, cmoveStudyList } from '@/api/inspection.js'
|
import {
|
||||||
|
getCFindStudyList,
|
||||||
|
cmoveStudyList,
|
||||||
|
cMoveVerify,
|
||||||
|
} from '@/api/inspection.js'
|
||||||
import { getDicomAEList } from '@/api/dicomAE.js'
|
import { getDicomAEList } from '@/api/dicomAE.js'
|
||||||
const defaultSearchData = () => {
|
const defaultSearchData = () => {
|
||||||
return {
|
return {
|
||||||
|
@ -324,6 +346,7 @@ const defaultSearchData = () => {
|
||||||
BodyPartExamined: null,
|
BodyPartExamined: null,
|
||||||
StudyDescription: null,
|
StudyDescription: null,
|
||||||
StudyInstanceUID: null,
|
StudyInstanceUID: null,
|
||||||
|
AccessionNumber: null,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
export default {
|
export default {
|
||||||
|
@ -352,12 +375,12 @@ export default {
|
||||||
// 查询
|
// 查询
|
||||||
searchData: defaultSearchData(),
|
searchData: defaultSearchData(),
|
||||||
PatientBirthDate: [],
|
PatientBirthDate: [],
|
||||||
StudyDate: [],
|
StudyDate: [new Date(), new Date()],
|
||||||
// StudyTime: [
|
// StudyTime: [
|
||||||
// new Date(2016, 9, 10, 0, 0, 0),
|
// new Date(2016, 9, 10, 0, 0, 0),
|
||||||
// new Date(2016, 9, 10, 23, 59, 59),
|
// new Date(2016, 9, 10, 23, 59, 59),
|
||||||
// ],
|
// ],
|
||||||
StudyTime: null,
|
StudyTime: [new Date(new Date().getTime() - 10800000), new Date()],
|
||||||
// 可加入项目列表
|
// 可加入项目列表
|
||||||
loading: false,
|
loading: false,
|
||||||
list: [],
|
list: [],
|
||||||
|
@ -370,6 +393,19 @@ export default {
|
||||||
this.getAEList()
|
this.getAEList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 验证pacs
|
||||||
|
async cMoveVerify(data) {
|
||||||
|
try {
|
||||||
|
let res = await cMoveVerify(data)
|
||||||
|
if (res.IsSuccess) {
|
||||||
|
return res.Result
|
||||||
|
}
|
||||||
|
return false
|
||||||
|
} catch (err) {
|
||||||
|
console.log(err)
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
},
|
||||||
async getList() {
|
async getList() {
|
||||||
if (!this.searchData.PacsDicomAEId)
|
if (!this.searchData.PacsDicomAEId)
|
||||||
return this.$message.warning(
|
return this.$message.warning(
|
||||||
|
@ -460,8 +496,8 @@ export default {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
this.PatientBirthDate = []
|
this.PatientBirthDate = []
|
||||||
this.StudyDate = []
|
this.StudyDate = [new Date(), new Date()]
|
||||||
this.StudyTime = null
|
this.StudyTime = [new Date(new Date().getTime() - 10800000), new Date()]
|
||||||
},
|
},
|
||||||
// 表格排序
|
// 表格排序
|
||||||
handleSortByColumn(sort) {
|
handleSortByColumn(sort) {
|
||||||
|
@ -478,10 +514,6 @@ export default {
|
||||||
// 拉取pacs数据
|
// 拉取pacs数据
|
||||||
async pullImage(row) {
|
async pullImage(row) {
|
||||||
try {
|
try {
|
||||||
let confirm = await this.$confirm(
|
|
||||||
this.$t('trials:inspection:pullImage:confirm:pull')
|
|
||||||
)
|
|
||||||
if (!confirm) return false
|
|
||||||
let data = {
|
let data = {
|
||||||
PacsDicomAEId: this.searchData.PacsDicomAEId,
|
PacsDicomAEId: this.searchData.PacsDicomAEId,
|
||||||
// studyIDList: [row.StudyID],
|
// studyIDList: [row.StudyID],
|
||||||
|
@ -493,6 +525,28 @@ export default {
|
||||||
(item) => item.StudyInstanceUID
|
(item) => item.StudyInstanceUID
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
let r = await this.cMoveVerify(data)
|
||||||
|
if (!r) return false
|
||||||
|
let isPullList = []
|
||||||
|
Object.keys(r).forEach((key) => {
|
||||||
|
if (r[key]) {
|
||||||
|
isPullList.push(key)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
let message = this.$t('trials:inspection:pullImage:confirm:pull')
|
||||||
|
if (isPullList.length > 0) {
|
||||||
|
message =
|
||||||
|
isPullList.join('<br/>') +
|
||||||
|
'<br/>' +
|
||||||
|
this.$t('trials:inspection:pullImage:message:isHasPull') +
|
||||||
|
',' +
|
||||||
|
message
|
||||||
|
}
|
||||||
|
let confirm = await this.$confirm(message, '', {
|
||||||
|
dangerouslyUseHTMLString: true,
|
||||||
|
})
|
||||||
|
if (!confirm) return false
|
||||||
|
|
||||||
this.loading = true
|
this.loading = true
|
||||||
let res = await cmoveStudyList(data)
|
let res = await cmoveStudyList(data)
|
||||||
this.loading = false
|
this.loading = false
|
||||||
|
|
Loading…
Reference in New Issue