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

重构:将询价信息卡片从 PageOne 迁移至 PageThree,并更新询价信息的计算属性

Yannay 2 тижнів тому
батько
коміт
640187aa82

+ 0 - 19
pages/orderDetailRefactored/components/PageOne.vue

@@ -74,21 +74,6 @@
74
       <follow-card v-if="recordType === 'followRecord'" :key="'followRecord'" :clue-id="currentClueId" type="5" />
74
       <follow-card v-if="recordType === 'followRecord'" :key="'followRecord'" :clue-id="currentClueId" type="5" />
75
     </view>
75
     </view>
76
 
76
 
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>
91
-
92
     <!-- 基本信息卡片 -->
77
     <!-- 基本信息卡片 -->
93
     <view class="info-card">
78
     <view class="info-card">
94
       <view class="info-card-title">基本信息</view>
79
       <view class="info-card-title">基本信息</view>
@@ -174,10 +159,6 @@ export default {
174
   computed: {
159
   computed: {
175
     currentClueId() {
160
     currentClueId() {
176
       return (this.currentReceipt && this.currentReceipt.clueId) || (this.orderDetail && this.orderDetail.clueId) || ''
161
       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)
181
     }
162
     }
182
   },
163
   },
183
   watch: {
164
   watch: {

+ 19 - 0
pages/orderDetailRefactored/components/PageThree.vue

@@ -49,6 +49,21 @@
49
       </u-row>
49
       </u-row>
50
     </view>
50
     </view>
51
 
51
 
52
+    <!-- 核价信息卡片 -->
53
+    <view v-if="hasInquiryInfo" class="info-card">
54
+      <view class="info-card-title">核价信息</view>
55
+      <u-row class="info-row">
56
+        <u-col span="6">
57
+          <view class="info-label">核价次数</view>
58
+          <view class="info-value">{{ currentReceipt.inquiryCount || 0 }}</view>
59
+        </u-col>
60
+        <u-col span="6">
61
+          <view class="info-label">核价价格</view>
62
+          <view class="info-value">¥{{ currentReceipt.inquiryPrice || 0 }}</view>
63
+        </u-col>
64
+      </u-row>
65
+    </view>
66
+
52
     <!-- 高清实物图卡片 -->
67
     <!-- 高清实物图卡片 -->
53
     <view class="card-wrap">
68
     <view class="card-wrap">
54
       <view class="detail-image-section">
69
       <view class="detail-image-section">
@@ -254,6 +269,10 @@ export default {
254
     // 银行账号占位符
269
     // 银行账号占位符
255
     bankAccountPlaceholder() {
270
     bankAccountPlaceholder() {
256
       return this.isAlipayPayment ? '请输入支付宝账号' : '请输入银行账号'
271
       return this.isAlipayPayment ? '请输入支付宝账号' : '请输入银行账号'
272
+    },
273
+    // 是否有核价信息
274
+    hasInquiryInfo() {
275
+      return this.currentReceipt && (this.currentReceipt.inquiryCount || this.currentReceipt.inquiryPrice)
257
     }
276
     }
258
   },
277
   },
259
   watch: {
278
   watch: {