shish 1 жил өмнө
parent
commit
eb4d0a4d4b

+ 5 - 14
hdApp/src/admin/billing/affirm.vue

@@ -110,7 +110,10 @@
 					<view class="">
           <tui-list-cell class="line-cell" :hover="false" :arrow="false">
             <view class="tui-title">客户</view>
-            <view class="tui-input">{{ form.customName }}</view>
+            <view class="tui-input" style="display: flex;align-items:center;">
+              <text style="max-width:200upx;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display: inline-block;">{{ form.customName }}</text>
+              <text v-if="Number(customInfo.balance)>0" style="color:#3385FF;font-weight:bold;margin-left:20upx;">余额 ¥{{ parseFloat(customInfo.balance) }}</text>
+            </view>
           </tui-list-cell>
 
 					<tui-list-cell class="line-cell" :hover="false" :arrow="false">
@@ -318,7 +321,7 @@ export default {
         dealPrice:0
       },
       showCustomer: false,
-      customInfo:{discount:1},
+      customInfo:{discount:1,balance:0},
       customData: { bigCount: 0, smallCount: 0, userPrice: 0 },
       isAddModel:false,
       checkStock:true,
@@ -605,18 +608,6 @@ export default {
 .special-title {
   color: #ff6b35 !important;
   font-weight: bold !important;
-  position: relative;
-  
-  &::before {
-    content: '';
-    display: inline-block;
-    width: 8upx;
-    height: 8upx;
-    background-color: #ff6b35;
-    border-radius: 50%;
-    margin-right: 10upx;
-    vertical-align: middle;
-  }
 }
 
 .payment-buttons {