Quellcode durchsuchen

总订单列表/详情:优惠券额度显示

shipeng vor 6 Tagen
Ursprung
Commit
bce6c42ca2
2 geänderte Dateien mit 9 neuen und 6 gelöschten Zeilen
  1. 6 1
      src/views/order/orderMr/dialog/details.vue
  2. 3 5
      src/views/order/orderMr/index.vue

+ 6 - 1
src/views/order/orderMr/dialog/details.vue

@@ -75,10 +75,15 @@
           <el-col :span="12">
             <div class="grid-content bg-purple item-class">下单时间: <span>{{ form.createTime || '' }}</span></div>
           </el-col>
-          <el-col :span="12">
+          <!-- <el-col :span="12">
             <div class="grid-content bg-purple item-class">优惠信息: 
               <span>{{ form.coupon ? form.coupon.couponName : "暂无" }}</span>
             </div>
+          </el-col> -->
+          <el-col :span="12">
+            <div class="grid-content bg-purple item-class">优惠券额度: 
+              <span>{{ form.coupon ? form.coupon.preferentialPrice : "暂无" }}</span>
+            </div>
           </el-col>
           <el-col :span="12">
             <div class="grid-content bg-purple item-class">支付时间: <span>{{ form.payTime || '' }}</span></div>

+ 3 - 5
src/views/order/orderMr/index.vue

@@ -286,6 +286,7 @@
               <span v-if="scope.row.status != 0">¥{{ scope.row.realPrice }}</span>
             </template>
           </el-table-column>
+          <el-table-column label="优惠券额度" align="center" prop="preferentialPrice" width="120" />
           <el-table-column label="支付方式" align="center" prop="payWay">
             <template slot-scope="scope">
               <dict-tag :options="dict.type.pay_way_type" :value="scope.row.payWay"/>
@@ -324,7 +325,7 @@
               <span>{{ scope.row.refundPriceTotal && scope.row.refundPriceTotal !=0 ? ('-' + scope.row.refundPriceTotal) : '' }}</span>
             </template>
           </el-table-column>
-          <el-table-column label="是否成功开票" align="center">
+          <el-table-column label="是否成功开票" align="center" width="130">
             <template slot-scope="scope">
               <el-tag type="danger" v-if="scope.row.ifSuccessInvoice  == '0'">否</el-tag>
               <el-tag type="success" v-else-if="scope.row.ifSuccessInvoice  == '1'">是</el-tag>
@@ -340,7 +341,7 @@
               <span>{{ scope.row.remark }}</span>
             </template>
           </el-table-column>
-          <el-table-column label="OTA订单号" align="center" prop="otaOrderId">
+          <el-table-column label="OTA订单号" align="center" prop="otaOrderId" width="170">
             <template slot-scope="scope">
               <span>{{ scope.row.otaOrderId||'-' }}</span>
             </template>
@@ -850,9 +851,6 @@ export default {
 .app-container {
   height: calc( 100vh - 110px );
   box-sizing: border-box;
-}
-.app-container-query {
-  
 }
 .app-container-table-box {
   height: calc( 100% - var(--q-height) );