jufubao-takeorder 1.0.2-beta7 → 1.0.2-beta8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-takeorder",
3
- "version": "1.0.2-beta7",
3
+ "version": "1.0.2-beta8",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -698,10 +698,7 @@ export default {
698
698
  }
699
699
  },
700
700
  onJfbShow(options) {
701
- // 页面显示时恢复轮询
702
- if (!this.pollTimer) {
703
- this.startPolling();
704
- }
701
+ this.onJfbLoad(options);
705
702
  console.log("event.onJfbShow", options);
706
703
  },
707
704
  onJfbHide(options) {
@@ -27,9 +27,8 @@
27
27
  >
28
28
  <view
29
29
  v-if="
30
- (info.user_quotation_status === 'received' ||
31
- info.user_quotation_status === 'win_order') &&
32
- info.order_status !== 'close'
30
+ info.user_quotation_status === 'received' ||
31
+ info.user_quotation_status === 'win_order'
33
32
  "
34
33
  class="jfb-takeorder-order-detail__countdown-banner"
35
34
  :style="{ backgroundColor: mainColor }"
@@ -58,7 +57,7 @@
58
57
  v-if="
59
58
  info.user_quotation_status === 'wait_quote' ||
60
59
  info.user_quotation_status === 'quoted' ||
61
- info.order_status === 'close' ||
60
+ info.user_quotation_status === 'close' ||
62
61
  info.user_quotation_status === 'cancel_quotation'
63
62
  "
64
63
  class="wrap"
@@ -68,7 +67,7 @@
68
67
  v-if="
69
68
  step === 1 ||
70
69
  info.user_quotation_status === 'quoted' ||
71
- info.order_status === 'close'
70
+ info.user_quotation_status === 'close'
72
71
  "
73
72
  >
74
73
  <view>市场原价(仅供参考)</view>
@@ -91,7 +90,7 @@
91
90
  v-if="
92
91
  step === 1 ||
93
92
  info.user_quotation_status === 'quoted' ||
94
- info.order_status === 'close'
93
+ info.user_quotation_status === 'close'
95
94
  "
96
95
  >
97
96
  <view>报价人数</view>
@@ -102,7 +101,7 @@
102
101
  v-if="
103
102
  step === 1 ||
104
103
  info.user_quotation_status === 'quoted' ||
105
- info.order_status === 'close'
104
+ info.user_quotation_status === 'close'
106
105
  "
107
106
  >
108
107
  <view>报价倒计时</view>
@@ -158,9 +157,7 @@
158
157
  (info.user_quotation_status === 'cancel_quotation' ||
159
158
  info.user_quotation_status === 'wait_quote' ||
160
159
  info.user_quotation_status === 'quoted') &&
161
- step !== 2 &&
162
- info.order_status !== 'reported' &&
163
- info.order_status !== 'close'
160
+ step !== 2
164
161
  "
165
162
  >
166
163
  <view class="quote-title">订单报价</view>
@@ -185,8 +182,8 @@
185
182
  <view
186
183
  class="wrap upload"
187
184
  v-if="
188
- info.user_quotation_status === 'received' &&
189
- info.order_status !== 'close'
185
+ info.user_quotation_status === 'received' ||
186
+ info.user_quotation_status === 'reported'
190
187
  "
191
188
  >
192
189
  <view class="voucher" v-if="voucherImages && voucherImages.length > 0">
@@ -223,7 +220,7 @@
223
220
  </view>
224
221
  </view>
225
222
  </view>
226
- <view style="display: flex; justify-content: center">
223
+ <view v-if="info.user_quotation_status === 'received'" style="display: flex; justify-content: center">
227
224
  <xd-upload
228
225
  @on-done="handleUploadDone"
229
226
  selectType="image"
@@ -242,7 +239,7 @@
242
239
  >
243
240
  </xd-upload>
244
241
  </view>
245
- <view class="upload-notice">
242
+ <view v-if="info.user_quotation_status === 'received'" class="upload-notice">
246
243
  <text>请务必按真实报单并仔细校对取餐码正确无误,</text>
247
244
  <text :style="{ color: mainColor }"
248
245
  >取餐码错误或未上报真实取餐码造成客诉产生损失将由您承担!</text
@@ -251,9 +248,9 @@
251
248
  </view>
252
249
  <view
253
250
  v-if="
254
- (info.order_status === 'close' || info.order_status === 'quoting') &&
255
- notice &&
256
- info.user_quotation_status !== 'received'
251
+ (info.user_quotation_status === 'close' ||
252
+ info.user_quotation_status === 'quoted') &&
253
+ notice
257
254
  "
258
255
  class="special-tip wrap"
259
256
  style="padding: 24rpx 32rpx"
@@ -273,7 +270,10 @@
273
270
  <view v-if="!isCountdownEnd" :style="{ height: '100rpx' }"></view>
274
271
  <view
275
272
  :key="info.user_quotation_status"
276
- v-if="info.order_status !== 'close' && info.order_status !== 'reported'"
273
+ v-if="
274
+ info.user_quotation_status !== 'close' &&
275
+ info.user_quotation_status !== 'reported'
276
+ "
277
277
  class="fixe_bottom"
278
278
  :style="prod_bottom"
279
279
  >
@@ -478,7 +478,7 @@ export default {
478
478
  // 上报倒计时定时器标识
479
479
  reportCountdownTimer: null,
480
480
  // 上报倒计时剩余秒数(10分钟 = 600秒)
481
- reportCountdownSeconds: 600,
481
+ reportCountdownSeconds: 0,
482
482
  quotePrice: "",
483
483
  closeMask: true,
484
484
  showConfirmDialog: false,
@@ -509,7 +509,10 @@ export default {
509
509
  };
510
510
  },
511
511
  quotePriceTotal() {
512
- return this.$xdUniHelper.multiplyFloatNumber(this.quotePrice, this.info.product_total);
512
+ return this.$xdUniHelper.multiplyFloatNumber(
513
+ this.quotePrice,
514
+ this.info.product_total
515
+ );
513
516
  },
514
517
  },
515
518
  watch: {
@@ -566,11 +569,9 @@ export default {
566
569
  this.quoteDisabled = true;
567
570
  }
568
571
  if (
569
- (this.info.user_quotation_status === "cancel_quotation" ||
570
- this.info.user_quotation_status === "wait_quote" ||
571
- this.info.user_quotation_status === "quoted") &&
572
- this.info.order_status !== "reported" &&
573
- this.info.order_status !== "close"
572
+ this.info.user_quotation_status === "cancel_quotation" ||
573
+ this.info.user_quotation_status === "wait_quote" ||
574
+ this.info.user_quotation_status === "quoted"
574
575
  ) {
575
576
  this.startCountdown();
576
577
  }
@@ -582,7 +583,7 @@ export default {
582
583
  //如果已接单,开启十分钟上报订单倒计时
583
584
  this.startReportCountdown();
584
585
  }
585
- if (this.info.order_status === "close") {
586
+ if (this.info.user_quotation_status === "close") {
586
587
  //如果订单已关闭,则隐藏所有按钮,并且清除倒计时
587
588
  this.isCountdownEnd = true;
588
589
  this.clearReceiveCountdown();
@@ -772,7 +773,7 @@ export default {
772
773
  // 先清除可能存在的旧定时器,防止重复计时
773
774
  this.clearReportCountdown();
774
775
  // 初始化倒计时秒数(10分钟 = 600秒),如果有接口返回的时间则使用接口返回的时间
775
- this.reportCountdownSeconds = this.info.rest_report_time || 600;
776
+ this.reportCountdownSeconds = this.info.rest_report_time;
776
777
  this.isReportCountdownEnd = false;
777
778
 
778
779
  // 创建每秒执行的定时器