|
|
|
@ -405,7 +405,6 @@ export default { |
|
|
|
if (isPreview) { |
|
|
|
// |
|
|
|
//this.multipleSelection.forEach((item,index) =>{ |
|
|
|
|
|
|
|
postapi( |
|
|
|
`/api/app/printreport/getpatientregisterguidereport?PatientRegisterId=${this.multipleSelection[0].id}` |
|
|
|
) |
|
|
|
@ -426,7 +425,8 @@ export default { |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch((err) => { |
|
|
|
this.$message.warning(err); |
|
|
|
console.log('打印指引单', err) |
|
|
|
this.$message.warning({ showClose: true, message: err }); |
|
|
|
}); |
|
|
|
// }); |
|
|
|
} else { |
|
|
|
@ -441,22 +441,21 @@ export default { |
|
|
|
if (resPrintData.code == -1) continue |
|
|
|
toOutShell.ReportTable = resPrintData.data |
|
|
|
resPeisAPI = await this.$peisAPI.print(JSON.stringify(toOutShell)); |
|
|
|
console.log('壳返回结果',resPeisAPI) |
|
|
|
if (JSON.parse(resPeisAPI).code < 0) continue |
|
|
|
resPrintTimes = postapi("api/app/patientregister/updatepatientregisterguideprinttimesmany", [this.multipleSelection[i].id]); |
|
|
|
resPrintTimes = await postapi("/api/app/patientregister/updatepatientregisterguideprinttimesmany", [this.multipleSelection[i].id]); |
|
|
|
if (resPrintTimes.code == -1) continue |
|
|
|
lfind = arrayExistObj(this.tableData, "id", this.multipleSelection[i].id); |
|
|
|
if (lfind > -1) { |
|
|
|
if (this.tableData[lfind].guidePrintTimes) { |
|
|
|
this.tableData[lfind].guidePrintTimes = |
|
|
|
Number( |
|
|
|
this.tableData[lfind].guidePrintTimes |
|
|
|
) + 1; |
|
|
|
this.tableData[lfind].guidePrintTimes = Number(this.tableData[lfind].guidePrintTimes) + 1; |
|
|
|
} else { |
|
|
|
this.tableData[lfind].guidePrintTimes = 1; |
|
|
|
} |
|
|
|
} |
|
|
|
} catch (error) { |
|
|
|
this.$message.error(error) |
|
|
|
console.log('打印指引单', `${error}`) |
|
|
|
this.$message.warning({ showClose: true, message: error }); |
|
|
|
} |
|
|
|
|
|
|
|
this.elProgress.percentage = Math.floor( |
|
|
|
|