|
|
@ -69,6 +69,7 @@ import { mapState } from "vuex"; |
|
|
import { Loading } from "element-ui"; |
|
|
import { Loading } from "element-ui"; |
|
|
import { getapi, postapi, putapi, deletapi } from "@/api/api"; |
|
|
import { getapi, postapi, putapi, deletapi } from "@/api/api"; |
|
|
import { getPagePriv, checkPagePriv, deepCopy, arrayExistObj } from "../../utlis/proFunc"; |
|
|
import { getPagePriv, checkPagePriv, deepCopy, arrayExistObj } from "../../utlis/proFunc"; |
|
|
|
|
|
import { hadoopGet, hadoopPost, hadoopPut, hadoopDel } from "../../api/hadoopApi" |
|
|
import CheckPictureUpload from "./CheckPictureUpload.vue"; |
|
|
import CheckPictureUpload from "./CheckPictureUpload.vue"; |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
@ -154,16 +155,16 @@ export default { |
|
|
// "creatorId": "3a0c4180-107c-0c89-b25b-0bd34666dcec", |
|
|
// "creatorId": "3a0c4180-107c-0c89-b25b-0bd34666dcec", |
|
|
// "id": "3a0f6a3c-88a5-d5f7-d59b-ef3b38074901" |
|
|
// "id": "3a0f6a3c-88a5-d5f7-d59b-ef3b38074901" |
|
|
// } |
|
|
// } |
|
|
getapi( |
|
|
|
|
|
`/api/app/registercheckpicture/getregistercheckpictureinregistercheckid?RegisterCheckId=${registerCheckId}` |
|
|
|
|
|
).then((res) => { |
|
|
|
|
|
if (res.code > -1) { |
|
|
|
|
|
this.checkPictures = res.data |
|
|
|
|
|
this.checkPictures.forEach(e => { |
|
|
|
|
|
e.isPrintTrans = e.isPrint == "Y" ? true : false |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
hadoopGet('pacsApi', `/api/app/registercheckpicture/getregistercheckpictureinregistercheckid?RegisterCheckId=${registerCheckId}`) |
|
|
|
|
|
// getapi(`/api/app/registercheckpicture/getregistercheckpictureinregistercheckid?RegisterCheckId=${registerCheckId}`) |
|
|
|
|
|
.then((res) => { |
|
|
|
|
|
if (res.code > -1) { |
|
|
|
|
|
this.checkPictures = res.data |
|
|
|
|
|
this.checkPictures.forEach(e => { |
|
|
|
|
|
e.isPrintTrans = e.isPrint == "Y" ? true : false |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
// 生成 图片预览列表 |
|
|
// 生成 图片预览列表 |
|
|
@ -171,7 +172,7 @@ export default { |
|
|
let srcList = [] |
|
|
let srcList = [] |
|
|
let image = curImag.pictureFilename.indexOf('http') > -1 |
|
|
let image = curImag.pictureFilename.indexOf('http') > -1 |
|
|
? curImag.pictureFilename |
|
|
? curImag.pictureFilename |
|
|
: this.sysConfig.apiurl + curImag.pictureFilename; |
|
|
|
|
|
|
|
|
: (this.sysConfig.pacsApi || this.sysConfig.apiurl) + curImag.pictureFilename; |
|
|
srcList.push(image) |
|
|
srcList.push(image) |
|
|
let lfind = arrayExistObj(oriList, 'id', curImag.id) |
|
|
let lfind = arrayExistObj(oriList, 'id', curImag.id) |
|
|
if (lfind > -1) { |
|
|
if (lfind > -1) { |
|
|
@ -194,7 +195,7 @@ export default { |
|
|
if (fileName.indexOf('base64') > -1 || fileName.indexOf('http') > -1) { |
|
|
if (fileName.indexOf('base64') > -1 || fileName.indexOf('http') > -1) { |
|
|
return fileName |
|
|
return fileName |
|
|
} else { |
|
|
} else { |
|
|
return this.sysConfig.apiurl + fileName |
|
|
|
|
|
|
|
|
return (this.sysConfig.pacsApi || this.sysConfig.apiurl) + fileName |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
@ -229,7 +230,7 @@ export default { |
|
|
this.$peisAPI.imageAcquisition(JSON.stringify(toOutShell)) |
|
|
this.$peisAPI.imageAcquisition(JSON.stringify(toOutShell)) |
|
|
.then(async (res) => { |
|
|
.then(async (res) => { |
|
|
let lres = JSON.parse(res) |
|
|
let lres = JSON.parse(res) |
|
|
console.log('this.$peisAPI.imageAcquisition',lres) |
|
|
|
|
|
|
|
|
console.log('this.$peisAPI.imageAcquisition', lres) |
|
|
if (lres.code > -1) { |
|
|
if (lres.code > -1) { |
|
|
for (let i = 0; i < lres.data.length; i++) { |
|
|
for (let i = 0; i < lres.data.length; i++) { |
|
|
let item = lres.data[i]; |
|
|
let item = lres.data[i]; |
|
|
@ -261,14 +262,15 @@ export default { |
|
|
}] |
|
|
}] |
|
|
} |
|
|
} |
|
|
try { |
|
|
try { |
|
|
await postapi('/api/app/RegisterCheckPicture/InstrumentMapping', body) |
|
|
|
|
|
|
|
|
//await postapi('/api/app/RegisterCheckPicture/InstrumentMapping', body) |
|
|
|
|
|
await hadoopPost('pacsApi', '/api/app/RegisterCheckPicture/InstrumentMapping', body) |
|
|
} catch (error) { |
|
|
} catch (error) { |
|
|
console.log('btnGetPic err', error) |
|
|
console.log('btnGetPic err', error) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
this.getCheckPictures(this.dataTransOpts.tableS.register_check.id) |
|
|
this.getCheckPictures(this.dataTransOpts.tableS.register_check.id) |
|
|
}else{ |
|
|
|
|
|
console.log('this.$peisAPI.imageAcquisition',lres.message) |
|
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
console.log('this.$peisAPI.imageAcquisition', lres.message) |
|
|
} |
|
|
} |
|
|
}).catch(err => { |
|
|
}).catch(err => { |
|
|
this.$message.error(err) |
|
|
this.$message.error(err) |
|
|
|