jufubao-admin-library 1.1.220 → 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.
@@ -76,8 +76,7 @@
76
76
  type="primary"
77
77
  size="small"
78
78
  @click="handleAddSkuAdjust"
79
- :disabled="skuAdjustList.length >= 10"
80
- >新增规格调价(最多10个)</el-button>
79
+ >新增规格调价</el-button>
81
80
  </div>
82
81
  <el-table
83
82
  :data="skuAdjustList"
@@ -349,6 +348,7 @@ export default {
349
348
  this.adjustListValue.ratioValue = '';
350
349
  this.adjustListValue.moneyValue = '';
351
350
  }
351
+ this.adjustListValue.allow_below_cost = false;
352
352
  this.getAdjustForm(this.adjustListValue)
353
353
  }
354
354
  }
@@ -356,6 +356,7 @@ export default {
356
356
  'adjustListValue.vip_unit':{
357
357
  handler(n,o){
358
358
  if(n&&n!==o){
359
+ this.adjustListValue.vip_allow_below_cost = false;
359
360
  this.getAdjustForm(this.adjustListValue)
360
361
  }
361
362
  }
@@ -1162,6 +1163,17 @@ export default {
1162
1163
  ele: 'slot',
1163
1164
  slot:'showPrice'
1164
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
+ },
1165
1177
  this.isShowVipSet&&{
1166
1178
  label: 'PLUS售价调整',
1167
1179
  ele: 'title',
@@ -1319,6 +1331,17 @@ export default {
1319
1331
  ele: 'slot',
1320
1332
  slot:'showVipPrice'
1321
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
+ },
1322
1345
  this.sku_count>1&&{
1323
1346
  ele:'slot',
1324
1347
  slot:'sku_table'
@@ -1413,7 +1436,7 @@ export default {
1413
1436
  });
1414
1437
  },
1415
1438
  getAdjustParams () {
1416
- 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;
1417
1440
  let value = 0;
1418
1441
  if(unit === 'ratio') value = Number(ratioValue);
1419
1442
  if(unit === 'money') value = Number(moneyValue);
@@ -1431,6 +1454,7 @@ export default {
1431
1454
  base: unit === 'fixed' ? 'jfb_price' : base,
1432
1455
  decimal: unit === 'fixed' ? 0 : decimal,
1433
1456
  rounding_method: unit === 'fixed' ? 'ceil' : rounding_method,
1457
+ allow_below_cost: allow_below_cost ?? false,
1434
1458
  }
1435
1459
  };
1436
1460
 
@@ -1441,6 +1465,7 @@ export default {
1441
1465
  decimal: vip_unit === 'fixed' ? 0 : vip_decimal,
1442
1466
  rounding_method: vip_unit === 'fixed' ? 'ceil' : vip_rounding_method,
1443
1467
  value: this.$xdHelper.multiplyFloatNumber(Number(vip_value), 100),
1468
+ allow_below_cost: vip_allow_below_cost ?? false,
1444
1469
  };
1445
1470
  }
1446
1471
 
@@ -1795,7 +1820,8 @@ export default {
1795
1820
  fn: 'selected-products-skus',
1796
1821
  path: 'p3',
1797
1822
  params:{
1798
- product_id:this.dialogRow.product_id
1823
+ product_id: this.dialogRow.product_id,
1824
+ status: 'Y'
1799
1825
  }
1800
1826
  })
1801
1827
  console.log(res,'aaaaaa')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-admin-library",
3
- "version": "1.1.220",
3
+ "version": "1.1.222",
4
4
  "description": "聚福宝福利后台管理系统公共模块",
5
5
  "author": "goashiyong <gaoshiyong1272@vip.163.com>",
6
6
  "scripts": {