|
|
@ -263,7 +263,7 @@ export default { |
|
|
try { |
|
|
try { |
|
|
await postapi('/api/app/RegisterCheckPicture/InstrumentMapping', body) |
|
|
await postapi('/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) |
|
|
@ -292,28 +292,29 @@ export default { |
|
|
this.$message.warning({ showClose: true, message: "暂无可裁图片!" }); |
|
|
this.$message.warning({ showClose: true, message: "暂无可裁图片!" }); |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!this.$peisAPI) { |
|
|
if (!this.$peisAPI) { |
|
|
this.$message.info({ showClose: true, message: "此功能,需要在壳客户端才可运行!" }) |
|
|
this.$message.info({ showClose: true, message: "此功能,需要在壳客户端才可运行!" }) |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
let token = window.sessionStorage.getItem("token"); |
|
|
let token = window.sessionStorage.getItem("token"); |
|
|
let toOutShell = { |
|
|
let toOutShell = { |
|
|
images:this.checkPictures, |
|
|
|
|
|
token, |
|
|
|
|
|
|
|
|
asbitemName: this.doctorCheck.asbitemName, |
|
|
|
|
|
images: this.checkPictures, |
|
|
|
|
|
token, |
|
|
}; |
|
|
}; |
|
|
this.$peisAPI.imageCut(JSON.stringify(toOutShell)) |
|
|
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) |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|