Przeglądaj źródła

打印标签优先使用处方号

cc12458 2 tygodni temu
rodzic
commit
95d4a4a1b4
3 zmienionych plików z 3 dodań i 1 usunięć
  1. 1 0
      src/api/pda.api.ts
  2. 1 0
      src/model/step.model.ts
  3. 1 1
      src/module/print/Tag_60_40.vue

+ 1 - 0
src/api/pda.api.ts

@@ -59,6 +59,7 @@ export function getDataMethod(no: string, mode?: string) {
             remark2: data?.pharmacistsremarks,
             entrust: data?.entrust,
 
+            no: data?.preNo,
             date: data?.prescriptionTime,
           },
           medicines:

+ 1 - 0
src/model/step.model.ts

@@ -31,6 +31,7 @@ export interface StepModel {
       address: string;
     };
 
+    no?: string;
     date?: string;
   };
   medicines: {

+ 1 - 1
src/module/print/Tag_60_40.vue

@@ -59,7 +59,7 @@ watch(
 <template>
   <div class="print-container relative flex flex-col">
     <div class="text-22 text-center font-black">{{ dataset?.patient?.hospital }}</div>
-    <div class="text-16 text-center">{{ dataset?.no }}</div>
+    <div class="text-16 text-center">{{ dataset?.prescription?.no ?? dataset?.no }}</div>
     <div class="text-22 flex items-center text-center">
       <div class="text-24 snippet-wrapper" style="flex: 1 1 60%">
         <span v-if="dataset?.patient?.name" class="font-semibold" data-snippet=",">{{ dataset?.patient?.name }}</span>