pengjun 1 year ago
parent
commit
8c417997b0
  1. 31
      src/components/doctorCheck/CheckPicture.vue

31
src/components/doctorCheck/CheckPicture.vue

@ -263,7 +263,7 @@ export default {
try {
await postapi('/api/app/RegisterCheckPicture/InstrumentMapping', body)
} catch (error) {
console.log('btnGetPic err',error)
console.log('btnGetPic err', error)
}
}
this.getCheckPictures(this.dataTransOpts.tableS.register_check.id)
@ -292,28 +292,29 @@ export default {
this.$message.warning({ showClose: true, message: "暂无可裁图片!" });
return;
}
if (!this.$peisAPI) {
this.$message.info({ showClose: true, message: "此功能,需要在壳客户端才可运行!" })
return
}
let token = window.sessionStorage.getItem("token");
let toOutShell = {
images:this.checkPictures,
token,
asbitemName: this.doctorCheck.asbitemName,
images: this.checkPictures,
token,
};
this.$peisAPI.imageCut(JSON.stringify(toOutShell))
.then(res => {
let lres = JSON.parse(res)
if (lres.code > -1) {
this.getCheckPictures(this.dataTransOpts.tableS.register_check.id);
}else{
console.log('裁图失败',lres.message)
}
})
.catch(err => {
console.log('裁图失败',err)
})
.then(res => {
let lres = JSON.parse(res)
if (lres.code > -1) {
this.getCheckPictures(this.dataTransOpts.tableS.register_check.id);
} else {
console.log('裁图失败', lres.message)
}
})
.catch(err => {
console.log('裁图失败', err)
})
},

Loading…
Cancel
Save