jufubao-admin-library 1.1.229 → 1.1.230

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.
@@ -72,9 +72,9 @@
72
72
  <div style="margin-top: 20px;">
73
73
  <div style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px;">
74
74
  <h3 style="font-size: 16px; font-weight: 500; margin: 0;">规格调价</h3>
75
- <el-button
76
- type="primary"
77
- size="small"
75
+ <el-button
76
+ type="primary"
77
+ size="small"
78
78
  @click="handleAddSkuAdjust"
79
79
  >新增规格调价</el-button>
80
80
  </div>
@@ -90,6 +90,11 @@
90
90
  label="规格"
91
91
  min-width="120"
92
92
  />
93
+ <el-table-column
94
+ prop="product_sku"
95
+ label="规格ID"
96
+ min-width="120"
97
+ />
93
98
  <el-table-column
94
99
  prop="unit_label"
95
100
  label="调价方式"
@@ -253,7 +258,7 @@
253
258
  @onConfirm="handlePublicSet"
254
259
  >
255
260
  <el-form ref="setForm" :model="setForm" :rules="setRules" label-width="120px">
256
- <el-form-item prop="product_name" label="商品名称">
261
+ <el-form-item prop="product_name" label="商品名称">
257
262
  {{ dialogRow['product_name'] }}
258
263
  </el-form-item>
259
264
  <el-form-item prop="public" label="是否公开">
@@ -273,7 +278,7 @@
273
278
  <el-checkbox v-for="(item,index) in tagData" :label="item.value" :key="index">{{item.label}}</el-checkbox>
274
279
  </el-checkbox-group>
275
280
  </el-form-item>
276
- <el-form-item prop="spider_url" label="产品来源地址">
281
+ <el-form-item prop="spider_url" label="产品来源地址">
277
282
  <el-input v-model="setForm.spider_url" placeholder="请输入"></el-input>
278
283
  </el-form-item>
279
284
  <div v-if="setForm.skus.length">
@@ -403,7 +408,7 @@ export default {
403
408
  // 重新计算上调/下调值
404
409
  let unit = 'moneyValue';
405
410
  if(this.skuAdjustValue['unit'] === 'ratio') unit = 'ratioValue';
406
-
411
+
407
412
  const skuData = this.skuList.find(sku => sku.value === this.skuAdjustValue.product_sku);
408
413
  if (skuData && skuData.prices[n]) {
409
414
  let price = skuData.prices[n];
@@ -455,7 +460,7 @@ export default {
455
460
  }
456
461
  },
457
462
  },
458
-
463
+
459
464
  data () {
460
465
  return {
461
466
  showCount: false,
@@ -1221,7 +1226,7 @@ export default {
1221
1226
  ele: 'slot',
1222
1227
  slot:'showVipSelectPrice'
1223
1228
  },
1224
-
1229
+
1225
1230
  this.isShowVipSet&&params.vip_unit==='ratio'&& {
1226
1231
  label: "",
1227
1232
  ele: 'slot',
@@ -1416,17 +1421,17 @@ export default {
1416
1421
  this.$refs['skuDesireForm'].validate((valid) => {
1417
1422
  if (valid) {
1418
1423
  if(!this.skuAdjustValue.product_sku || !this.skuAdjustValue.base || !this.skuDesireForm.price) return false;
1419
-
1424
+
1420
1425
  let unit = 'moneyValue';
1421
1426
  if(this.skuAdjustValue['unit'] === 'ratio') unit = 'ratioValue';
1422
-
1427
+
1423
1428
  const skuData = this.skuList.find(sku => sku.value === this.skuAdjustValue.product_sku);
1424
1429
  if (!skuData || !skuData.prices[this.skuAdjustValue.base]) return false;
1425
-
1430
+
1426
1431
  let price = skuData.prices[this.skuAdjustValue.base];
1427
1432
  let value = this.$xdHelper.divisionFloatNumber(this.$xdHelper.multiplyFloatNumber(this.skuDesireForm.price, 100) - price, price);
1428
1433
  this.skuAdjustValue[unit] = this.$xdHelper.multiplyFloatNumber(value, 100).toFixed(2);
1429
-
1434
+
1430
1435
  this.getSkuAdjustForm(this.skuAdjustValue);
1431
1436
  this.skuAdjustKey = Date.now();
1432
1437
  this.showSkuDesire = false;
@@ -1441,12 +1446,12 @@ export default {
1441
1446
  if(unit === 'ratio') value = Number(ratioValue);
1442
1447
  if(unit === 'money') value = Number(moneyValue);
1443
1448
  if(unit === 'fixed') value = Number(moneyValue);
1444
-
1449
+
1445
1450
  let vip_value = 0;
1446
1451
  if(vip_unit === 'ratio') vip_value = Number(vipRatioValue);
1447
1452
  if(vip_unit === 'money') vip_value = Number(vipMoneyValue);
1448
1453
  if(vip_unit === 'fixed') vip_value = Number(vipMoneyValue);
1449
-
1454
+
1450
1455
  const formula = {
1451
1456
  sale_price: {
1452
1457
  unit,
@@ -1468,12 +1473,12 @@ export default {
1468
1473
  allow_below_cost: vip_allow_below_cost ?? false,
1469
1474
  };
1470
1475
  }
1471
-
1476
+
1472
1477
  const params = {
1473
1478
  product_id,
1474
1479
  formula
1475
1480
  };
1476
-
1481
+
1477
1482
  // 添加规格调价信息到skus数组
1478
1483
  if(this.skuAdjustList && this.skuAdjustList.length > 0){
1479
1484
  params.skus = this.skuAdjustList.map(item => {
@@ -1514,7 +1519,7 @@ export default {
1514
1519
  };
1515
1520
  });
1516
1521
  }
1517
-
1522
+
1518
1523
  return params;
1519
1524
  },
1520
1525
 
@@ -1840,7 +1845,7 @@ export default {
1840
1845
  if (params.unit === 'money' && params.ratioValue !== '') {
1841
1846
  this.skuAdjustValue.ratioValue = '';
1842
1847
  }
1843
-
1848
+
1844
1849
  this.skuAdjustForm = [
1845
1850
  {
1846
1851
  label: '商品规格:',
@@ -1900,7 +1905,7 @@ export default {
1900
1905
  ele: 'slot',
1901
1906
  slot: 'showSkuOriginalPrice'
1902
1907
  },
1903
-
1908
+
1904
1909
  this.skuAdjustValue.unit==='ratio' && {
1905
1910
  keys: Date.now(),
1906
1911
  label: "",
@@ -343,6 +343,20 @@ export default {
343
343
  { required: false, message: "请选择网站地址", trigger: "change" },
344
344
  ],
345
345
  },
346
+ {
347
+ label: '工号验证:',
348
+ ele: 'xd-radio',
349
+ valueKey: 'job_number_verify',
350
+ value: params.job_number_verify || 'N',
351
+ placeholder: '请选择状态',
352
+ list: [
353
+ { "label": "开启", "value": 'Y' },
354
+ { "label": "关闭", "value": 'N' },
355
+ ],
356
+ rules: [
357
+ { required: true, message: `请选择工号验证状态`, trigger: 'change' },
358
+ ]
359
+ },
346
360
  {
347
361
  label: '客户状态:',
348
362
  ele: 'xd-radio-status',
@@ -396,7 +410,8 @@ export default {
396
410
  company_name: row.company_name,
397
411
  site_id: row.site_id,
398
412
  company_status: row.company_status,
399
- index_path:row.index_path
413
+ index_path: row.index_path,
414
+ job_number_verify: row.job_number_verify,
400
415
  };
401
416
  if(row.default_entry_page){
402
417
  info.default_entry_page = JSON.parse(row.default_entry_page)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-admin-library",
3
- "version": "1.1.229",
3
+ "version": "1.1.230",
4
4
  "description": "聚福宝福利后台管理系统公共模块",
5
5
  "author": "goashiyong <gaoshiyong1272@vip.163.com>",
6
6
  "scripts": {