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