소스 검색

结算的收款也显示,部分结账去掉优惠

许智捷 2 년 전
부모
커밋
e01ed94ca7
2개의 변경된 파일4개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 1
      src/views/room/modules/checkIn/BillRoomInfo.vue
  2. 3 2
      src/views/room/modules/checkIn/Payment.vue

+ 1 - 1
src/views/room/modules/checkIn/BillRoomInfo.vue

@@ -1657,7 +1657,7 @@ export default {
                 this.paidList = res.result.filter((t) => t.feeType === 1 && t.preferentialStatus === 2 && !t.isPreferential)
                 this.oldpaidList = JSON.parse(JSON.stringify(this.paidList))
                 // 收费账单
-                this.paymentList = res.result.filter((t) => t.feeType === 2 && t.preferentialStatus === 1)
+                this.paymentList = res.result.filter((t) => t.feeType === 2)
                 this.oldpaymentList = JSON.parse(JSON.stringify(this.paymentList))
                 // 按当前选中房间过滤出费用
                 this.tabChange(this.tabSelectRoomId)

+ 3 - 2
src/views/room/modules/checkIn/Payment.vue

@@ -16,7 +16,8 @@
               prop="billAmount"
             >
               {{ model.billAmount.toFixed(2) }}元
-              <a-switch v-model="model.coupon"  />优惠
+        <!--部分结账这里 优惠功能暂时不要了-->
+        <!-- <a-switch v-model="model.coupon"  />优惠-->
             </a-form-model-item>
           </a-col>
           <template v-if="model.coupon">
@@ -515,7 +516,7 @@ export default {
             fees.push({
               feeType: this.model.feeType,
               preferentialType: this.model.preferentialType,
-              money: this.couponAmount.toFixed(2),
+              money: this.couponAmount.toFixed(2) - this.model.billAmount.toFixed(2),
               custorerOrderRemark: "优惠金额",
               isPreferential: true,
             });