+
元
@@ -123,10 +137,15 @@
-
-
+
+
- 当商品购买数量 ≥{{ row.num }} 时,售价为 ¥{{ row.price }}/{{ baseInfoForm.goodsUnit }}
+ {{ wholesaleRulePreview(row) }}
@@ -667,7 +686,7 @@ export default {
wholesalePreviewColumns: [
{
title: "销售规则",
- width: 300,
+ width: 480,
render: (h, params) => {
let guide =
"当商品购买数量 ≥" +
@@ -1186,6 +1205,11 @@ export default {
this.renderTableData(this.skuTableData);
this.syncWholesalePriceToSku();
},
+ wholesaleRulePreview(row) {
+ const unit = this.baseInfoForm.goodsUnit || "";
+ const unitText = unit ? `/${unit}` : "";
+ return `当商品购买数量 ≥${row.num} 时,售价为 ¥${row.price}${unitText}`;
+ },
handleDeleteWholesaleData(index) {
this.wholesaleData.splice(index, 1);
this.renderTableData(this.skuTableData);
@@ -2595,6 +2619,51 @@ export default {
margin-left: 10px;
}
+.wholesale-rule-form-item {
+ width: 100% !important;
+ min-width: 900px;
+}
+
+.wholesale-preview-table {
+ width: 480px;
+}
+
+.wholesale-preview-table :deep(.el-table__cell .cell) {
+ overflow: visible;
+ white-space: nowrap;
+}
+
+.wholesale-rule-form-item :deep(.el-form-item__content) {
+ width: 100%;
+}
+
+.wholesale-num-input {
+ width: 190px;
+}
+
+.wholesale-num-input :deep(.el-input__wrapper) {
+ min-width: 140px;
+}
+
+.wholesale-price-cell {
+ position: relative;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+}
+
+.wholesale-price-input {
+ width: 190px;
+}
+
+.wholesale-price-del {
+ position: absolute;
+ top: 50%;
+ left: 50%;
+ margin-left: 100px;
+ transform: translateY(-50%);
+}
+
.form-tip {
color: #666;
font-size: 12px;