jufubao-admin-library 1.1.172 → 1.1.174
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.
- package/library/pageComponents/modules/JfbProductSearch.vue +17 -1
- package/library/pageComponents/modules/JfbRuleCreate.vue +25 -6
- package/library/pageComponents/modules/lib/JfbRuleCreate.js +53 -34
- package/library/viewModules/viewStore/viewStore/market/list.vue +2 -1
- package/library/viewModules/viewStore/viewStore/rule/create.vue +2 -1
- package/library/viewModules/viewStore/viewStore/selected/list.vue +2 -1
- package/library/viewModules/viewsFinance/viewsFinance/balance/components/listPartner.vue +1 -0
- package/library/viewModules/viewsFinance/viewsFinance/balance/detail_partner.vue +5 -0
- package/library/viewModules/viewsFinance/viewsFinance/index.vue +2 -1
- package/library/viewModules/viewsFlashSale/schemas/product.js +12 -0
- package/library/viewModules/viewsFlashSale/viewsFlashSale/product.vue +33 -4
- package/package.json +1 -1
|
@@ -130,7 +130,7 @@ export default {
|
|
|
130
130
|
server: this.channelServer || 'supplier-partner',
|
|
131
131
|
fn: 'supplier-channel',
|
|
132
132
|
path: 'p1',
|
|
133
|
-
params: this.channelParams
|
|
133
|
+
params: {...this.channelParams,from:1}
|
|
134
134
|
})
|
|
135
135
|
let all = [];
|
|
136
136
|
this.isMain = channelTabList.data.list.length > 0;
|
|
@@ -526,6 +526,22 @@ export default {
|
|
|
526
526
|
multiple: true, //多选
|
|
527
527
|
list: setting.data?.delivery_methods?.options || [],
|
|
528
528
|
},
|
|
529
|
+
this.$setting.system==='partner-mall'&&{
|
|
530
|
+
label: "是否展示:", //label
|
|
531
|
+
ele: "xd-select-list", //package 名称
|
|
532
|
+
valueKey: "show_status", //form[valueKey]
|
|
533
|
+
value: [], //v-model
|
|
534
|
+
placeholder: "请选择配送方式",
|
|
535
|
+
multiple: false, //多选
|
|
536
|
+
className:'input40',
|
|
537
|
+
list: [{
|
|
538
|
+
value:'Y',
|
|
539
|
+
label:'展示'
|
|
540
|
+
},{
|
|
541
|
+
value:'N',
|
|
542
|
+
label:'隐藏'
|
|
543
|
+
}],
|
|
544
|
+
},
|
|
529
545
|
setting.data?.delivery_logistics_company?.enabled&&{
|
|
530
546
|
label: "配送公司:", //label
|
|
531
547
|
ele: "xd-select-list", //package 名称
|
|
@@ -208,7 +208,9 @@
|
|
|
208
208
|
label:'23时',
|
|
209
209
|
value:'23',
|
|
210
210
|
},
|
|
211
|
-
]
|
|
211
|
+
],
|
|
212
|
+
is_has_formula:true,
|
|
213
|
+
adjust_price_type:'',
|
|
212
214
|
}
|
|
213
215
|
},
|
|
214
216
|
computed: {
|
|
@@ -217,7 +219,11 @@
|
|
|
217
219
|
return this.$route.params.id;
|
|
218
220
|
},
|
|
219
221
|
btnName(){
|
|
220
|
-
|
|
222
|
+
if(this.select_policy_id&&!this.isCopy){
|
|
223
|
+
return '更新'
|
|
224
|
+
}else{
|
|
225
|
+
return '提交'
|
|
226
|
+
}
|
|
221
227
|
},
|
|
222
228
|
|
|
223
229
|
isMovie(){
|
|
@@ -281,7 +287,7 @@
|
|
|
281
287
|
|
|
282
288
|
//非电影初始化
|
|
283
289
|
else{
|
|
284
|
-
let {conditions, options, agg_channel_code,formula, ...other} = res.data;
|
|
290
|
+
let {conditions, options, agg_channel_code,formula,is_has_formula, ...other} = res.data;
|
|
285
291
|
|
|
286
292
|
//按价格设置
|
|
287
293
|
if (conditions.price !== undefined) {
|
|
@@ -332,6 +338,17 @@
|
|
|
332
338
|
|
|
333
339
|
//设置渠道选择值
|
|
334
340
|
this.channelActiveName = agg_channel_code || this.channelTabList[0]['value'];
|
|
341
|
+
//调价方式
|
|
342
|
+
|
|
343
|
+
if(this.channelParams.scene === 'select'){
|
|
344
|
+
this.is_has_formula = is_has_formula;
|
|
345
|
+
if(!is_has_formula){
|
|
346
|
+
this.adjust_price_type = 'old';
|
|
347
|
+
}
|
|
348
|
+
}else {
|
|
349
|
+
this.is_has_formula = true;
|
|
350
|
+
}
|
|
351
|
+
console.log(this.channelParams.scene,this.is_has_formula,'this.is_has_formula')
|
|
335
352
|
formData = {...other, ...conditions, ...options, city_codes: conditions.city_codes, ...formulaData};
|
|
336
353
|
console.log('conditions', formData)
|
|
337
354
|
}
|
|
@@ -362,7 +379,7 @@
|
|
|
362
379
|
|
|
363
380
|
//设置公共参数
|
|
364
381
|
let commonConfig = {sort: {"enabled": true}};
|
|
365
|
-
if(this.channelParams.scene === 'modifyprice') {
|
|
382
|
+
if(this.channelParams.scene === 'modifyprice'||this.channelParams.scene === 'select') {
|
|
366
383
|
commonConfig = {...commonConfig, ...{
|
|
367
384
|
sale_price_base: {
|
|
368
385
|
"enabled": true,
|
|
@@ -411,7 +428,9 @@
|
|
|
411
428
|
&& policySettingObj.data.formula.options
|
|
412
429
|
&& policySettingObj.data.formula.options.length > 0
|
|
413
430
|
) {
|
|
414
|
-
|
|
431
|
+
if(this.channelParams.scene === 'modifyprice'){
|
|
432
|
+
commonConfig['sale_price_base'] = policySettingObj.data.formula;
|
|
433
|
+
}
|
|
415
434
|
}
|
|
416
435
|
|
|
417
436
|
this.policySettingObj = Object.assign({},commonConfig,policySettingObj.data.conditions) ;
|
|
@@ -487,7 +506,7 @@
|
|
|
487
506
|
let params = {
|
|
488
507
|
item: postData,
|
|
489
508
|
};
|
|
490
|
-
if (select_policy_id) {
|
|
509
|
+
if (select_policy_id&&!this.isCopy) {
|
|
491
510
|
fn = 'updateRole';
|
|
492
511
|
params[this.keyword.role] = select_policy_id
|
|
493
512
|
}
|
|
@@ -52,6 +52,12 @@ export default {
|
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
},
|
|
55
|
+
'listValue.adjust_price_type' (n, o) {
|
|
56
|
+
if (n && n !== o) {
|
|
57
|
+
this.adjust_price_type = n
|
|
58
|
+
this.initForm(this.listValue)
|
|
59
|
+
}
|
|
60
|
+
},
|
|
55
61
|
},
|
|
56
62
|
data () {
|
|
57
63
|
return {
|
|
@@ -498,12 +504,35 @@ export default {
|
|
|
498
504
|
],
|
|
499
505
|
inline: false,
|
|
500
506
|
},
|
|
501
|
-
this.
|
|
507
|
+
!this.is_has_formula && {
|
|
508
|
+
label: '调价方式:',
|
|
509
|
+
ele: 'xd-radio',
|
|
510
|
+
valueKey: 'adjust_price_type',
|
|
511
|
+
value: params.adjust_price_type||'old',
|
|
512
|
+
list: [
|
|
513
|
+
{ "label": "使用原有调价规则(可在调价-调价规则管理查看)", "value": 'old' },
|
|
514
|
+
{ "label": "新建调价规则", "value": 'new' }
|
|
515
|
+
],
|
|
516
|
+
inline: false,
|
|
517
|
+
},
|
|
518
|
+
this.channelParams.scene === "select" && this.checkConfig('delivery_logistics_company') && {
|
|
519
|
+
label: "配送公司:", //label
|
|
520
|
+
ele: "xd-select-list", //package 名称
|
|
521
|
+
valueKey: "delivery_logistics_company", //form[valueKey]
|
|
522
|
+
value: params.delivery_logistics_company || '', //v-model
|
|
523
|
+
placeholder: "请选择配送公司",
|
|
524
|
+
multiple: false, //多选
|
|
525
|
+
list: [{
|
|
526
|
+
value: 'jd',
|
|
527
|
+
label: '京东物流',
|
|
528
|
+
}],
|
|
529
|
+
},
|
|
530
|
+
this.checkConfig('sale_price_base')&&(this.is_has_formula||this.adjust_price_type==='new') && {
|
|
502
531
|
label: '售价调整',
|
|
503
532
|
ele: 'title',
|
|
504
533
|
size: 'small',
|
|
505
534
|
},
|
|
506
|
-
this.checkConfig('sale_price_base') && {
|
|
535
|
+
this.checkConfig('sale_price_base')&&(this.is_has_formula||this.adjust_price_type==='new') && {
|
|
507
536
|
label: '基于:',
|
|
508
537
|
ele: 'xd-select-list',
|
|
509
538
|
valueKey: 'sale_price_base',
|
|
@@ -520,7 +549,7 @@ export default {
|
|
|
520
549
|
notice: '<span style="color:#000; font-size: 14px;">调整</span><span style="color:#f00; font-size: 14px;">售价</span>',
|
|
521
550
|
inline: true
|
|
522
551
|
},
|
|
523
|
-
this.checkConfig('sale_price_unit') && {
|
|
552
|
+
this.checkConfig('sale_price_unit')&&(this.is_has_formula||this.adjust_price_type==='new') && {
|
|
524
553
|
label: " ",
|
|
525
554
|
ele: "xd-radio",
|
|
526
555
|
valueKey: "sale_price_unit",
|
|
@@ -529,7 +558,7 @@ export default {
|
|
|
529
558
|
disabled: this.getSalePriceUnitDisabled('sale_price_unit', false),
|
|
530
559
|
rules: [{ required: true, message: '请选择', trigger: 'blur' }],
|
|
531
560
|
},
|
|
532
|
-
this.checkConfig('sale_price_value') && {
|
|
561
|
+
this.checkConfig('sale_price_value')&&(this.is_has_formula||this.adjust_price_type==='new') && {
|
|
533
562
|
label: '上调/下调',
|
|
534
563
|
ele: 'xd-input-unit',
|
|
535
564
|
valueKey: 'sale_price_value',
|
|
@@ -548,7 +577,7 @@ export default {
|
|
|
548
577
|
notice: '可设置正负值,负值时为下调',
|
|
549
578
|
inline: false
|
|
550
579
|
},
|
|
551
|
-
this.
|
|
580
|
+
(this.is_has_formula||this.adjust_price_type==='new')&&{
|
|
552
581
|
label: '不高于市场价:',
|
|
553
582
|
ele: 'xd-radio',
|
|
554
583
|
valueKey: 'no_high_market_price',
|
|
@@ -560,7 +589,7 @@ export default {
|
|
|
560
589
|
inline: false,
|
|
561
590
|
notice: '若调价后大于市场价则使用市场价为售价'
|
|
562
591
|
},
|
|
563
|
-
this.
|
|
592
|
+
(this.is_has_formula||this.adjust_price_type==='new')&&{
|
|
564
593
|
label: '小数点保留位数:',
|
|
565
594
|
ele: 'xd-select-list',
|
|
566
595
|
valueKey: 'decimal',
|
|
@@ -578,12 +607,12 @@ export default {
|
|
|
578
607
|
trigger: 'blur'
|
|
579
608
|
}],
|
|
580
609
|
},
|
|
581
|
-
this.isShowVipSet
|
|
610
|
+
this.isShowVipSet&&(this.is_has_formula||this.adjust_price_type==='new') &&{
|
|
582
611
|
label: 'PLUS售价',
|
|
583
612
|
ele: 'title',
|
|
584
613
|
size: 'small',
|
|
585
614
|
},
|
|
586
|
-
this.isShowVipSet
|
|
615
|
+
this.isShowVipSet&&(this.is_has_formula||this.adjust_price_type==='new') &&{
|
|
587
616
|
label: '基于:',
|
|
588
617
|
ele: 'xd-select-list',
|
|
589
618
|
valueKey: 'vip_price_base',
|
|
@@ -600,7 +629,7 @@ export default {
|
|
|
600
629
|
notice: '<span style="color:#000; font-size: 14px;">调整</span><span style="color:#f00; font-size: 14px;">售价</span>',
|
|
601
630
|
inline: true
|
|
602
631
|
},
|
|
603
|
-
this.isShowVipSet
|
|
632
|
+
this.isShowVipSet&&(this.is_has_formula||this.adjust_price_type==='new') &&{
|
|
604
633
|
label: " ",
|
|
605
634
|
ele: "xd-radio",
|
|
606
635
|
valueKey: "vip_price_unit",
|
|
@@ -609,7 +638,7 @@ export default {
|
|
|
609
638
|
disabled: this.getSalePriceUnitDisabled('vip_price_unit', false),
|
|
610
639
|
rules: [{ required: true, message: '请选择', trigger: 'blur' }],
|
|
611
640
|
},
|
|
612
|
-
this.isShowVipSet
|
|
641
|
+
this.isShowVipSet&&(this.is_has_formula||this.adjust_price_type==='new') &&{
|
|
613
642
|
label: '上调/下调',
|
|
614
643
|
ele: 'xd-input-unit',
|
|
615
644
|
valueKey: 'vip_price_value',
|
|
@@ -628,7 +657,7 @@ export default {
|
|
|
628
657
|
notice: '可设置正负值,负值时为下调',
|
|
629
658
|
inline: false
|
|
630
659
|
},
|
|
631
|
-
this.isShowVipSet
|
|
660
|
+
this.isShowVipSet&&(this.is_has_formula||this.adjust_price_type==='new') &&{
|
|
632
661
|
label: '不高于市场价:',
|
|
633
662
|
ele: 'xd-radio',
|
|
634
663
|
valueKey: 'vip_price_no_high_market_price',
|
|
@@ -640,7 +669,7 @@ export default {
|
|
|
640
669
|
inline: false,
|
|
641
670
|
notice: '若调价后大于市场价则使用市场价为售价'
|
|
642
671
|
},
|
|
643
|
-
this.isShowVipSet
|
|
672
|
+
this.isShowVipSet&&(this.is_has_formula||this.adjust_price_type==='new') &&{
|
|
644
673
|
label: '小数点保留位数:',
|
|
645
674
|
ele: 'xd-select-list',
|
|
646
675
|
valueKey: 'vip_price_decimal',
|
|
@@ -658,27 +687,15 @@ export default {
|
|
|
658
687
|
trigger: 'blur'
|
|
659
688
|
}],
|
|
660
689
|
},
|
|
661
|
-
this.channelParams.scene === "select" && {
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
},
|
|
670
|
-
this.channelParams.scene === "select" && this.checkConfig('delivery_logistics_company') && {
|
|
671
|
-
label: "配送公司:", //label
|
|
672
|
-
ele: "xd-select-list", //package 名称
|
|
673
|
-
valueKey: "delivery_logistics_company", //form[valueKey]
|
|
674
|
-
value: params.delivery_logistics_company || '', //v-model
|
|
675
|
-
placeholder: "请选择配送公司",
|
|
676
|
-
multiple: false, //多选
|
|
677
|
-
list: [{
|
|
678
|
-
value: 'jd',
|
|
679
|
-
label: '京东物流',
|
|
680
|
-
}],
|
|
681
|
-
},
|
|
690
|
+
// this.channelParams.scene === "select" && {
|
|
691
|
+
// label: '关联调价规则:',
|
|
692
|
+
// ele: 'xd-select-list',
|
|
693
|
+
// valueKey: 'modifyprice_policy_id',
|
|
694
|
+
// value: params.modifyprice_policy_id || '',
|
|
695
|
+
// placeholder: '请选择关联调价规则',
|
|
696
|
+
// multiple: false,
|
|
697
|
+
// list: this.modifypriceList,
|
|
698
|
+
// },
|
|
682
699
|
|
|
683
700
|
].filter(i => i)
|
|
684
701
|
},
|
|
@@ -1448,7 +1465,9 @@ export default {
|
|
|
1448
1465
|
if (!this.checkVarEmpty(discount_ratio.max)) postData.conditions.discount_ratio.max = this.$xdHelper.multiplyFloatNumber(discount_ratio.max, 100)
|
|
1449
1466
|
if (!this.checkVarEmpty(discount_ratio.min)) postData.conditions.discount_ratio.min = this.$xdHelper.multiplyFloatNumber(discount_ratio.min, 100)
|
|
1450
1467
|
}
|
|
1451
|
-
|
|
1468
|
+
if(postData.conditions.sale_num&&!postData.conditions.sale_num.start&&!postData.conditions.sale_num.end){
|
|
1469
|
+
delete postData.conditions.sale_num
|
|
1470
|
+
}
|
|
1452
1471
|
postData['formula'] = {
|
|
1453
1472
|
sale_price: { unit: '', base: '', value: '', decimal: 0 },
|
|
1454
1473
|
vip_price: { unit: '', base: '', value: '', decimal: 0 }
|
|
@@ -422,6 +422,9 @@ export default {
|
|
|
422
422
|
partner_name() {
|
|
423
423
|
return this.$route.query.partner_name;
|
|
424
424
|
},
|
|
425
|
+
is_from_home(){
|
|
426
|
+
return this.$route.query.is_from_home;
|
|
427
|
+
},
|
|
425
428
|
},
|
|
426
429
|
watch: {
|
|
427
430
|
channel_code(val) {
|
|
@@ -563,6 +566,7 @@ export default {
|
|
|
563
566
|
const other = this.getParams();
|
|
564
567
|
let params = {
|
|
565
568
|
...other,
|
|
569
|
+
is_from_home:this.is_from_home,
|
|
566
570
|
export: true,
|
|
567
571
|
file_ext: "xlsx",
|
|
568
572
|
file_name: this.exportName,
|
|
@@ -594,6 +598,7 @@ export default {
|
|
|
594
598
|
const other = this.getParams();
|
|
595
599
|
let params = {
|
|
596
600
|
...other,
|
|
601
|
+
is_from_home:this.is_from_home,
|
|
597
602
|
page_token: this.page_token,
|
|
598
603
|
page_size: this.page_size,
|
|
599
604
|
};
|
|
@@ -59,5 +59,17 @@ module.exports = {
|
|
|
59
59
|
disabled: true,
|
|
60
60
|
role: '',
|
|
61
61
|
},
|
|
62
|
+
{
|
|
63
|
+
mapFn: 'getPolicyListSetting',
|
|
64
|
+
isRule: false,
|
|
65
|
+
title: '超管获取规则配置表',
|
|
66
|
+
isPublic: true,
|
|
67
|
+
path: '/product-partner/v1/:xspace/agg-channel-filters',
|
|
68
|
+
params: {
|
|
69
|
+
agg_channel_code: ['聚合渠道', 'String', '必填'],
|
|
70
|
+
xspace: ['xspace', 'String', '必填']
|
|
71
|
+
},
|
|
72
|
+
disabled: true,
|
|
73
|
+
},
|
|
62
74
|
],
|
|
63
75
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="app-container">
|
|
3
|
+
<el-card class="app-container__list" style="margin-bottom: 20px;">
|
|
3
4
|
<div class="main-tab">
|
|
4
5
|
<el-tabs
|
|
5
6
|
type="card"
|
|
@@ -36,6 +37,7 @@
|
|
|
36
37
|
</template>
|
|
37
38
|
</xd-search>
|
|
38
39
|
</div>
|
|
40
|
+
</el-card>
|
|
39
41
|
<el-card class="app-container__list">
|
|
40
42
|
<div class="app-container__list-pagination">
|
|
41
43
|
<div style="display: flex; justify-content: space-between; width: 100%">
|
|
@@ -370,16 +372,20 @@ export default {
|
|
|
370
372
|
xnamespace: this.business_code,
|
|
371
373
|
scene: "selected",
|
|
372
374
|
type: "MALL",
|
|
375
|
+
from:1,
|
|
373
376
|
},
|
|
374
377
|
}).then((res) => {
|
|
375
378
|
this.channelTabList = res.data.list;
|
|
376
379
|
this.channelTabList.unshift({
|
|
377
380
|
label: "全部",
|
|
378
|
-
value:
|
|
381
|
+
value: 'all'
|
|
379
382
|
});
|
|
380
383
|
this.channelActiveName = this.channelTabList[0].value;
|
|
381
|
-
this.initSearchForm();
|
|
382
384
|
});
|
|
385
|
+
console.log(this.channelActiveName,'this.channelActiveName')
|
|
386
|
+
let setting = await this.getPolicyListSetting({agg_channel_code: this.channelActiveName,xspace: this.business_code});
|
|
387
|
+
console.log(setting,'ssss')
|
|
388
|
+
this.initSearchForm();
|
|
383
389
|
await this.getList();
|
|
384
390
|
},
|
|
385
391
|
|
|
@@ -389,6 +395,7 @@ export default {
|
|
|
389
395
|
"sessionAddProduct",
|
|
390
396
|
"batchSessionAddProduct",
|
|
391
397
|
"getActivityCodeCount",
|
|
398
|
+
"getPolicyListSetting"
|
|
392
399
|
]),
|
|
393
400
|
|
|
394
401
|
/**
|
|
@@ -590,8 +597,12 @@ export default {
|
|
|
590
597
|
].filter((i) => i);
|
|
591
598
|
this.searchFormKey = Date.now();
|
|
592
599
|
},
|
|
593
|
-
handleTabClick(value) {
|
|
600
|
+
async handleTabClick(value) {
|
|
594
601
|
console.log(value, "apapaapp");
|
|
602
|
+
let setting = await this.getPolicyListSetting({agg_channel_code: this.channelActiveName,xspace: this.business_code});
|
|
603
|
+
console.log(setting,'ssss')
|
|
604
|
+
this.initSearchForm();
|
|
605
|
+
await this.getList();
|
|
595
606
|
},
|
|
596
607
|
|
|
597
608
|
/**
|
|
@@ -723,7 +734,7 @@ export default {
|
|
|
723
734
|
...params,
|
|
724
735
|
site_id: this.site_id,
|
|
725
736
|
business_code: this.business_code,
|
|
726
|
-
channel_code: this.channelActiveName
|
|
737
|
+
channel_code: this.channelActiveName,
|
|
727
738
|
session_id: this.session_id,
|
|
728
739
|
activity_id: this.activity_id,
|
|
729
740
|
page_token: this.currentPage,
|
|
@@ -828,5 +839,23 @@ export default {
|
|
|
828
839
|
line-height: 40px;
|
|
829
840
|
}
|
|
830
841
|
}
|
|
842
|
+
::v-deep {
|
|
843
|
+
.el-tabs--card > .el-tabs__header .el-tabs__item {
|
|
844
|
+
background: #f8f8f8;
|
|
845
|
+
border-bottom: 1px solid #dfe4ed !important;
|
|
846
|
+
&.is-top.is-active {
|
|
847
|
+
&:first-child {
|
|
848
|
+
border-radius: 2px 0 0 0;
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
&:last-child {
|
|
852
|
+
border-radius: 0 2px 0 0;
|
|
853
|
+
}
|
|
854
|
+
background: $blue;
|
|
855
|
+
border-bottom: 1px solid $blue !important;
|
|
856
|
+
color: #fff !important;
|
|
857
|
+
}
|
|
858
|
+
}
|
|
859
|
+
}
|
|
831
860
|
</style>
|
|
832
861
|
|