Переглянути джерело

升舱:票档差价显示处理

shipeng 2 днів тому
батько
коміт
2b71f09016
1 змінених файлів з 5 додано та 3 видалено
  1. 5 3
      src/views/windowTicketSales/model/upgradeBox.vue

+ 5 - 3
src/views/windowTicketSales/model/upgradeBox.vue

@@ -35,7 +35,7 @@
                             </el-select>
                         </el-form-item>
                         <el-form-item label="票档差价:">
-                            <span>{{ rebookForm.diffPrice }}元</span>
+                            <span>{{ rebookForm.goodsDiffPrice }}元</span>
                         </el-form-item>
                         <el-form-item v-if="rebookForm.diffPrice < 0" label="升舱补差:">
                             <span>退费{{ Math.abs(rebookForm.diffPrice) }}元</span>
@@ -299,6 +299,7 @@ export default {
                 paymentType: "1", // 支付方式'
                 realPrice: row.realPrice,
                 orderPrice: row.orderPrice,
+                goodsDiffPrice: row?.goodsDiffPrice || 0,
                 touristNum: row.touristNum,
                 seatList: [],
                 performTimeEnd: row.performTimeEnd,
@@ -425,8 +426,9 @@ export default {
                 })
                 this.rebookForm = {
                     ...this.rebookForm,
-                    realPrice: res.data.reSubmitInfo.realPrice,
-                    diffPrice: res.data.reSubmitInfo.diffPrice
+                    realPrice: res.data.reSubmitInfo?.realPrice,
+                    diffPrice: res.data.reSubmitInfo?.diffPrice,
+                    goodsDiffPrice: res.data.reSubmitInfo?.goodsDiffPrice || 0,
                 }
                 if(this.rebookForm.diffPrice <= 0) {
                     this.rebookForm.paymentType = "2"