jufubao-admin-library 1.1.89 → 1.1.91-beta1
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.
|
@@ -488,7 +488,25 @@ export default {
|
|
|
488
488
|
value:'jd',
|
|
489
489
|
label:'京东物流',
|
|
490
490
|
}],
|
|
491
|
-
}
|
|
491
|
+
},
|
|
492
|
+
this.projectType==='wholesale'&&{
|
|
493
|
+
label: "状态:", //label
|
|
494
|
+
ele: "xd-select-list", //package 名称
|
|
495
|
+
valueKey: "site_product_status", //form[valueKey]
|
|
496
|
+
value: [], //v-model
|
|
497
|
+
placeholder: "请选择状态",
|
|
498
|
+
multiple: false, //多选
|
|
499
|
+
list: [
|
|
500
|
+
{
|
|
501
|
+
label:'已上架',
|
|
502
|
+
value:'Y'
|
|
503
|
+
},
|
|
504
|
+
{
|
|
505
|
+
label:'已下架',
|
|
506
|
+
value:'N'
|
|
507
|
+
},
|
|
508
|
+
],
|
|
509
|
+
},
|
|
492
510
|
].filter(i => i);
|
|
493
511
|
this.searchStatus = true
|
|
494
512
|
this.renderSearchKey = Date.now()
|
|
@@ -119,5 +119,23 @@ module.exports = {
|
|
|
119
119
|
},
|
|
120
120
|
disabled: true,
|
|
121
121
|
},
|
|
122
|
+
{
|
|
123
|
+
title: "商品列表 - 已选品数量(计算的是前台es)",
|
|
124
|
+
mapFn: "selectedProductCount",
|
|
125
|
+
path: "/product-partner/v1/:xsiteid/:xnamespace/selected-products/count",
|
|
126
|
+
isRule: false,
|
|
127
|
+
data: {
|
|
128
|
+
xsiteid: ['站点Id', 'String', '必填'],
|
|
129
|
+
xnamespace: ['命名空间', 'String', '必填'],
|
|
130
|
+
filters: {
|
|
131
|
+
discount_ratio: {
|
|
132
|
+
type: ['类型 purchase_div_sale=货源进货价/售价, dist_div_sale=平台进货价/售价, real_div_sale=平台进货价/市场价', '必填'],
|
|
133
|
+
min: ['最小值', 'Number', ''],
|
|
134
|
+
max: ['最大值', 'Number', ''],
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
disabled: true,
|
|
139
|
+
},
|
|
122
140
|
],
|
|
123
141
|
}
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
@onGetParamsAndHeader="handleGetParamsAndHeader"
|
|
15
15
|
>
|
|
16
16
|
<template slot-scope="scope" slot="custom">
|
|
17
|
-
<el-form ref="form"
|
|
17
|
+
<el-form ref="form" label-width="80px">
|
|
18
18
|
<el-form-item
|
|
19
19
|
class="custom-form-item"
|
|
20
20
|
v-for="(item, index) in customForm"
|
|
@@ -53,6 +53,8 @@
|
|
|
53
53
|
v-if="customForm.length > 1"
|
|
54
54
|
></el-link>
|
|
55
55
|
</div>
|
|
56
|
+
<span v-if="item.count">{{ item.count }}</span>
|
|
57
|
+
<el-button type="primary" @click="handleGetCount(item)">计算数量</el-button>
|
|
56
58
|
</el-form-item>
|
|
57
59
|
</el-form>
|
|
58
60
|
</template>
|
|
@@ -147,7 +149,19 @@ export default {
|
|
|
147
149
|
"cycleDetail",
|
|
148
150
|
"cycleUpdate",
|
|
149
151
|
"cycleLogDetail",
|
|
152
|
+
"selectedProductCount",
|
|
150
153
|
]),
|
|
154
|
+
handleGetCount(item){
|
|
155
|
+
let discount_ratio = {
|
|
156
|
+
type: "real_div_sale",
|
|
157
|
+
max: item.discount_ratio * 1000,
|
|
158
|
+
min: 0,
|
|
159
|
+
}
|
|
160
|
+
this.selectedProductCount({filters: {discount_ratio}}).then(res => {
|
|
161
|
+
// item.count = res.data;
|
|
162
|
+
this.$set(item, 'count', res.data.total);
|
|
163
|
+
})
|
|
164
|
+
},
|
|
151
165
|
initFormList(params, isWitch) {
|
|
152
166
|
console.log(params, "params");
|
|
153
167
|
let formList = [
|