浏览代码

在收单page1增加核价价格和核价次数的显示

Yannay 1 月之前
父节点
当前提交
05d0f659ec
共有 1 个文件被更改,包括 18 次插入1 次删除
  1. 18 1
      pages/orderDetailRefactored/components/PageOne.vue

+ 18 - 1
pages/orderDetailRefactored/components/PageOne.vue

@@ -74,7 +74,20 @@
74 74
       <follow-card v-if="recordType === 'followRecord'" :key="'followRecord'" :clue-id="currentClueId" type="5" />
75 75
     </view>
76 76
 
77
-
77
+    <!-- 核价信息卡片 -->
78
+    <view v-if="hasInquiryInfo" class="info-card">
79
+      <view class="info-card-title">核价信息</view>
80
+      <u-row class="info-row">
81
+        <u-col span="6">
82
+          <view class="info-label">核价次数</view>
83
+          <view class="info-value">{{ currentReceipt.inquiryCount || 0 }}</view>
84
+        </u-col>
85
+        <u-col span="6">
86
+          <view class="info-label">核价价格</view>
87
+          <view class="info-value">¥{{ currentReceipt.inquiryPrice || 0 }}</view>
88
+        </u-col>
89
+      </u-row>
90
+    </view>
78 91
 
79 92
     <!-- 基本信息卡片 -->
80 93
     <view class="info-card">
@@ -161,6 +174,10 @@ export default {
161 174
   computed: {
162 175
     currentClueId() {
163 176
       return (this.currentReceipt && this.currentReceipt.clueId) || (this.orderDetail && this.orderDetail.clueId) || ''
177
+    },
178
+    // 是否有核价信息
179
+    hasInquiryInfo() {
180
+      return this.currentReceipt && (this.currentReceipt.inquiryCount || this.currentReceipt.inquiryPrice)
164 181
     }
165 182
   },
166 183
   watch: {