Browse Source

Merge branch '20201109_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20201109_pc_vue_new_branch

XMLWAN 3 years ago
parent
commit
301071fb7b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/xt_pages/outpatientCharges/invoiceTemplate/printFour.vue

+ 2 - 2
src/xt_pages/outpatientCharges/invoiceTemplate/printFour.vue View File

35
             <!-- <div>{{ paramsObj.gend == 1 ? '男' : '女' }}</div> -->
35
             <!-- <div>{{ paramsObj.gend == 1 ? '男' : '女' }}</div> -->
36
             <div v-if="paramsObj.gend == 1" style="position: absolute;top:110px;left:100px;">√</div>
36
             <div v-if="paramsObj.gend == 1" style="position: absolute;top:110px;left:100px;">√</div>
37
             <div v-else style="position: absolute;top:110px;left:140px;">√</div>
37
             <div v-else style="position: absolute;top:110px;left:140px;">√</div>
38
-            <div style="position: absolute;top:110px;left:260px;">{{ (totalPrice - list.psn_cash_money).toFixed(2) }}</div>
39
-            <div style="position: absolute;top:110px;left:420px;">{{ list.psn_cash_money.toFixed(2) }}</div>
38
+            <div style="position: absolute;top:110px;left:260px;">{{ list.number.length <= 13 ? (totalPrice - list.psn_cash_money).toFixed(2) : '0.00' }}</div>
39
+            <div style="position: absolute;top:110px;left:420px;">{{ list.number.length <= 13 ? list.psn_cash_money.toFixed(2) : (totalPrice - list.psn_cash_money).toFixed(2) }}</div>
40
             <div style="position: absolute;top:110px;left:540px;">现金</div>
40
             <div style="position: absolute;top:110px;left:540px;">现金</div>
41
         </div>
41
         </div>
42
         <div style="display:flex;justify-content: space-between;">
42
         <div style="display:flex;justify-content: space-between;">