jufubao-admin-library 1.1.198 → 1.1.200

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,18 @@
348
348
  }else {
349
349
  this.is_has_formula = true;
350
350
  }
351
+ //类目
352
+ // if(this.channelActiveName === 'jufubao'){
353
+ // console.log(options.category_ids,'options.category_ids')
354
+ // if(options.category_ids.length){
355
+ // options.category_ids.map(item =>{
356
+ // if(item.profit_rate||item.profit_rate==0){
357
+ // item.label = item.label+'('+item.profit_rate/100+'%)'
358
+ // }
359
+ // })
360
+ // }
361
+
362
+ // }
351
363
  console.log(this.channelParams.scene,this.is_has_formula,'this.is_has_formula')
352
364
  formData = {...other, ...conditions, ...options, city_codes: conditions.city_codes, ...formulaData};
353
365
  console.log('conditions', formData)
@@ -1322,11 +1322,18 @@ export default {
1322
1322
  handleRemoteCategorySearch ({ node, resolve }) {
1323
1323
  let value = 0
1324
1324
  if (node.level !== 0) value = node.value
1325
- getOptions({ server: "product-partner", fn: "categories", path: "p4", params: { value } })
1326
- .then(res => {
1327
- resolve(res.data.list)
1328
- })
1329
- .catch((err) => { console.error(err) })
1325
+ this.getChildrenAndProfitRate({
1326
+ value,
1327
+ agg_channel_code: this.channelActiveName
1328
+ }).then(res => {
1329
+ console.log(res,'res')
1330
+ if(this.channelActiveName === 'jufubao') {
1331
+ res.data.list.map(item=>{
1332
+ item.profit_rate_string = '('+item.profit_rate/100+'%)'
1333
+ })
1334
+ }
1335
+ resolve(res.data.list)
1336
+ }) .catch((err) => { console.error(err) })
1330
1337
  },
1331
1338
 
1332
1339
  /**
@@ -104,6 +104,7 @@ import tableCategory from "./components/table-category.vue";
104
104
  import XdStatTableGroup from "@/components/XdStatTableGroup.vue"
105
105
  import checkPermission from "@/utils/permission";
106
106
  import Role from "@/constant/modules/supplierStat";
107
+ import RoleProduct from "@/constant/modules/productStat";
107
108
  import selectDiscount from "./components/select-discount.vue";
108
109
  import { getOptions } from "@/utils/options";
109
110
  import statAllM from "./components/stat-all-m.vue"
@@ -123,6 +124,7 @@ export default {
123
124
  data() {
124
125
  return {
125
126
  Role,
127
+ RoleProduct,
126
128
  title: "",
127
129
  activeName: "supplier",
128
130
  siteList: [],
@@ -166,7 +168,7 @@ export default {
166
168
  return checkPermission([Role.productCategoryCycSales]);
167
169
  },
168
170
  isSelectProdDis(){
169
- return checkPermission([Role.getSelectedProdDiscounts]);
171
+ return checkPermission([RoleProduct.getSelectedProdDiscounts]);
170
172
  },
171
173
  has_tab() {
172
174
  return checkPermission([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-admin-library",
3
- "version": "1.1.198",
3
+ "version": "1.1.200",
4
4
  "description": "聚福宝福利后台管理系统公共模块",
5
5
  "author": "goashiyong <gaoshiyong1272@vip.163.com>",
6
6
  "scripts": {