|
@@ -20,7 +20,9 @@ const drugFlag = [
|
|
|
];
|
|
|
|
|
|
const state = reactive({
|
|
|
- data: {} as PrintOrderVo,
|
|
|
+ data: {
|
|
|
+ diagnose: "",
|
|
|
+ } as PrintOrderVo,
|
|
|
// 重新整理一下数据
|
|
|
tempData: {},
|
|
|
qrCodeImage: "",
|
|
@@ -71,6 +73,7 @@ async function printPrescription(red: boolean) {
|
|
|
const tmp = [];
|
|
|
state.currentDrugData = [];
|
|
|
const canvas = document.createElement("canvas");
|
|
|
+ state.printTime = dayjs().format("YYYY年MM月DD日");
|
|
|
|
|
|
drugFlag.forEach(item => {
|
|
|
let tmpDrug = [];
|
|
@@ -88,7 +91,6 @@ async function printPrescription(red: boolean) {
|
|
|
height: 6,
|
|
|
margin: 0,
|
|
|
displayValue: false,
|
|
|
- // fontSize: 10,
|
|
|
});
|
|
|
i.qrCode = canvas.toDataURL("image/png");
|
|
|
});
|
|
@@ -131,6 +133,8 @@ defineExpose({
|
|
|
</aside>
|
|
|
<div class="layout_main layout_container">
|
|
|
<header>
|
|
|
+ 诊断:
|
|
|
+ <el-input v-model="state.data.diagnose" style="width: 120px" />
|
|
|
<el-button @click="printPrescription(true)">红色处方</el-button>
|
|
|
<el-button @click="printPrescription(false)">终止妊娠</el-button>
|
|
|
<el-button
|
|
@@ -288,7 +292,7 @@ defineExpose({
|
|
|
class="print-poisonous-hemp__tag--underline"
|
|
|
colspan="2"
|
|
|
>
|
|
|
- {{ dayjs(item.startTime).format("YYYY年MM月DD日") }}
|
|
|
+ {{ state.printTime }}
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|