秒杀公式,审核拒绝原因

This commit is contained in:
faiz 2024-11-22 18:55:17 +08:00
parent d5edee3d96
commit 5286846efb
2 changed files with 14 additions and 8 deletions

View File

@ -1346,11 +1346,12 @@ export default {
) { ) {
return this.$message.warning("成本价过高请重新调整!!!"); return this.$message.warning("成本价过高请重新调整!!!");
} }
row.price = toFixedNoRounding( // row.price = toFixedNoRounding(
row.original_price * // row.original_price *
(1 - // (1 -
toFixedNoRounding(1 - Number(row.cost) / Number(row.original_cost))) // toFixedNoRounding(1 - Number(row.cost) / Number(row.original_cost)))
); // );
row.price = toFixedNoRounding(row.cost / 0.89);
}, },
// //
addTem() { addTem() {

View File

@ -439,10 +439,10 @@
<label class="name">活动日期内最多购买次数</label <label class="name">活动日期内最多购买次数</label
>{{ formValidate.all_pay_count }} >{{ formValidate.all_pay_count }}
</div> </div>
<div class="list sp100"> <!-- <div class="list sp100">
<label class="name">秒杀时间段内最多购买次数</label <label class="name">秒杀时间段内最多购买次数</label
>{{ formValidate.once_pay_count }} >{{ formValidate.once_pay_count }}
</div> </div> -->
<div class="list sp"> <div class="list sp">
<label class="name">审核状态</label <label class="name">审核状态</label
>{{ >{{
@ -477,6 +477,10 @@
<label class="name">创建时间</label <label class="name">创建时间</label
>{{ formValidate.create_time }} >{{ formValidate.create_time }}
</div> </div>
<div class="list sp" v-if="formValidate.refusal">
<label class="name">审核拒绝原因</label
>{{ formValidate.refusal }}
</div>
</div> </div>
</div> </div>
</div> </div>
@ -821,7 +825,8 @@ export default {
stock: info.stock, stock: info.stock,
stock_count: info.stock_count, stock_count: info.stock_count,
seckill_status: info.seckill_status, seckill_status: info.seckill_status,
us_status: info.us_status us_status: info.us_status,
refusal: info.refusal
}; };
if (this.formValidate.spec_type === 0) { if (this.formValidate.spec_type === 0) {
this.OneattrValue = info.attrValue; this.OneattrValue = info.attrValue;