jufubao-admin-library 1.1.221 → 1.1.222
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.
|
@@ -348,6 +348,7 @@ export default {
|
|
|
348
348
|
this.adjustListValue.ratioValue = '';
|
|
349
349
|
this.adjustListValue.moneyValue = '';
|
|
350
350
|
}
|
|
351
|
+
this.adjustListValue.allow_below_cost = false;
|
|
351
352
|
this.getAdjustForm(this.adjustListValue)
|
|
352
353
|
}
|
|
353
354
|
}
|
|
@@ -355,6 +356,7 @@ export default {
|
|
|
355
356
|
'adjustListValue.vip_unit':{
|
|
356
357
|
handler(n,o){
|
|
357
358
|
if(n&&n!==o){
|
|
359
|
+
this.adjustListValue.vip_allow_below_cost = false;
|
|
358
360
|
this.getAdjustForm(this.adjustListValue)
|
|
359
361
|
}
|
|
360
362
|
}
|
|
@@ -1161,6 +1163,17 @@ export default {
|
|
|
1161
1163
|
ele: 'slot',
|
|
1162
1164
|
slot:'showPrice'
|
|
1163
1165
|
},
|
|
1166
|
+
{
|
|
1167
|
+
label: "是否低于成本:",
|
|
1168
|
+
ele: "xd-radio",
|
|
1169
|
+
valueKey: "allow_below_cost",
|
|
1170
|
+
value: params.allow_below_cost ?? false,
|
|
1171
|
+
list: [
|
|
1172
|
+
{ "label": "不允许低于成本", "value": false },
|
|
1173
|
+
{ "label": "允许低于成本", "value": true }
|
|
1174
|
+
],
|
|
1175
|
+
inline: true
|
|
1176
|
+
},
|
|
1164
1177
|
this.isShowVipSet&&{
|
|
1165
1178
|
label: 'PLUS售价调整',
|
|
1166
1179
|
ele: 'title',
|
|
@@ -1318,6 +1331,17 @@ export default {
|
|
|
1318
1331
|
ele: 'slot',
|
|
1319
1332
|
slot:'showVipPrice'
|
|
1320
1333
|
},
|
|
1334
|
+
this.isShowVipSet && {
|
|
1335
|
+
label: "是否低于成本:",
|
|
1336
|
+
ele: "xd-radio",
|
|
1337
|
+
valueKey: "vip_allow_below_cost",
|
|
1338
|
+
value: params.vip_allow_below_cost ?? false,
|
|
1339
|
+
list: [
|
|
1340
|
+
{ "label": "不允许低于成本", "value": false },
|
|
1341
|
+
{ "label": "允许低于成本", "value": true }
|
|
1342
|
+
],
|
|
1343
|
+
inline: true
|
|
1344
|
+
},
|
|
1321
1345
|
this.sku_count>1&&{
|
|
1322
1346
|
ele:'slot',
|
|
1323
1347
|
slot:'sku_table'
|
|
@@ -1412,7 +1436,7 @@ export default {
|
|
|
1412
1436
|
});
|
|
1413
1437
|
},
|
|
1414
1438
|
getAdjustParams () {
|
|
1415
|
-
const { product_id, unit, base,decimal,rounding_method,ratioValue, moneyValue,vip_unit, vip_base,vip_decimal,vip_rounding_method,vipRatioValue, vipMoneyValue} = this.adjustListValue;
|
|
1439
|
+
const { product_id, unit, base,decimal,rounding_method,ratioValue, moneyValue,vip_unit, vip_base,vip_decimal,vip_rounding_method,vipRatioValue, vipMoneyValue,allow_below_cost, vip_allow_below_cost} = this.adjustListValue;
|
|
1416
1440
|
let value = 0;
|
|
1417
1441
|
if(unit === 'ratio') value = Number(ratioValue);
|
|
1418
1442
|
if(unit === 'money') value = Number(moneyValue);
|
|
@@ -1430,6 +1454,7 @@ export default {
|
|
|
1430
1454
|
base: unit === 'fixed' ? 'jfb_price' : base,
|
|
1431
1455
|
decimal: unit === 'fixed' ? 0 : decimal,
|
|
1432
1456
|
rounding_method: unit === 'fixed' ? 'ceil' : rounding_method,
|
|
1457
|
+
allow_below_cost: allow_below_cost ?? false,
|
|
1433
1458
|
}
|
|
1434
1459
|
};
|
|
1435
1460
|
|
|
@@ -1440,6 +1465,7 @@ export default {
|
|
|
1440
1465
|
decimal: vip_unit === 'fixed' ? 0 : vip_decimal,
|
|
1441
1466
|
rounding_method: vip_unit === 'fixed' ? 'ceil' : vip_rounding_method,
|
|
1442
1467
|
value: this.$xdHelper.multiplyFloatNumber(Number(vip_value), 100),
|
|
1468
|
+
allow_below_cost: vip_allow_below_cost ?? false,
|
|
1443
1469
|
};
|
|
1444
1470
|
}
|
|
1445
1471
|
|
|
@@ -1794,7 +1820,8 @@ export default {
|
|
|
1794
1820
|
fn: 'selected-products-skus',
|
|
1795
1821
|
path: 'p3',
|
|
1796
1822
|
params:{
|
|
1797
|
-
product_id:this.dialogRow.product_id
|
|
1823
|
+
product_id: this.dialogRow.product_id,
|
|
1824
|
+
status: 'Y'
|
|
1798
1825
|
}
|
|
1799
1826
|
})
|
|
1800
1827
|
console.log(res,'aaaaaa')
|