@bit-sun/business-component 4.2.1-alpha.12-aiwei → 4.2.1-alpha.14-aiwei

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/dist/index.esm.js CHANGED
@@ -11610,8 +11610,7 @@ function commonFun(type, prefixUrl, parentProps) {
11610
11610
  },
11611
11611
  showCheckedStrategy: 'TreeSelect.SHOW_ALL'
11612
11612
  }
11613
- },
11614
- initialSource: getDictionarySource$1('BASIC_OPS_WH_TYPE')
11613
+ }
11615
11614
  }].concat(_toConsumableArray((modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needStatusSearch) ? [{
11616
11615
  name: 'qp-status-eq',
11617
11616
  type: 'select',
@@ -11632,9 +11631,12 @@ function commonFun(type, prefixUrl, parentProps) {
11632
11631
  'qp-type-in': '1,2'
11633
11632
  }, {
11634
11633
  headers: _objectSpread2({}, extralHeaders)
11634
+ }), loadSelectSource$1("/stock/ownerWarehouse/operationWarehouseClassificationList", {}, {
11635
+ headers: _objectSpread2({}, extralHeaders)
11635
11636
  })]).then(function (x) {
11636
11637
  var _x$2, _x$2$data$, _x$2$data$$channelInf;
11637
11638
  formatSource(x, 0, 2, tableSearchForm, ['groupCode', 'groupName']);
11639
+ formatSource(x, 2, 3, tableSearchForm, ['operationWarehouseClassification', 'operationWarehouseClassificationName']);
11638
11640
  var newData1 = [];
11639
11641
  (_x$2 = x[1]) === null || _x$2 === void 0 ? void 0 : (_x$2$data$ = _x$2.data[0]) === null || _x$2$data$ === void 0 ? void 0 : (_x$2$data$$channelInf = _x$2$data$.channelInfoSon) === null || _x$2$data$$channelInf === void 0 ? void 0 : _x$2$data$$channelInf.forEach(function (item) {
11640
11642
  newData1.push({
@@ -12566,19 +12568,19 @@ function commonFun(type, prefixUrl, parentProps) {
12566
12568
  var m5 = (_opList6 = opList) === null || _opList6 === void 0 ? void 0 : _opList6.filter(function (r) {
12567
12569
  return (r === null || r === void 0 ? void 0 : r.field) === 'store_channel_name' && trim(r === null || r === void 0 ? void 0 : r.value);
12568
12570
  });
12569
- tableSearchForm[7] = _objectSpread2(_objectSpread2({}, tableSearchForm[8]), {}, {
12571
+ tableSearchForm[7] = _objectSpread2(_objectSpread2({}, tableSearchForm[7]), {}, {
12570
12572
  initialSource: m1
12571
12573
  });
12572
- tableSearchForm[8] = _objectSpread2(_objectSpread2({}, tableSearchForm[9]), {}, {
12574
+ tableSearchForm[8] = _objectSpread2(_objectSpread2({}, tableSearchForm[8]), {}, {
12573
12575
  initialSource: m2
12574
12576
  });
12575
- tableSearchForm[9] = _objectSpread2(_objectSpread2({}, tableSearchForm[10]), {}, {
12577
+ tableSearchForm[9] = _objectSpread2(_objectSpread2({}, tableSearchForm[9]), {}, {
12576
12578
  initialSource: m3
12577
12579
  });
12578
- tableSearchForm[10] = _objectSpread2(_objectSpread2({}, tableSearchForm[11]), {}, {
12580
+ tableSearchForm[10] = _objectSpread2(_objectSpread2({}, tableSearchForm[10]), {}, {
12579
12581
  initialSource: m4
12580
12582
  });
12581
- tableSearchForm[11] = _objectSpread2(_objectSpread2({}, tableSearchForm[12]), {}, {
12583
+ tableSearchForm[11] = _objectSpread2(_objectSpread2({}, tableSearchForm[11]), {}, {
12582
12584
  initialSource: m5
12583
12585
  });
12584
12586
  });
package/dist/index.js CHANGED
@@ -11633,8 +11633,7 @@ function commonFun(type, prefixUrl, parentProps) {
11633
11633
  },
11634
11634
  showCheckedStrategy: 'TreeSelect.SHOW_ALL'
11635
11635
  }
11636
- },
11637
- initialSource: getDictionarySource$1('BASIC_OPS_WH_TYPE')
11636
+ }
11638
11637
  }].concat(_toConsumableArray((modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needStatusSearch) ? [{
11639
11638
  name: 'qp-status-eq',
11640
11639
  type: 'select',
@@ -11655,9 +11654,12 @@ function commonFun(type, prefixUrl, parentProps) {
11655
11654
  'qp-type-in': '1,2'
11656
11655
  }, {
11657
11656
  headers: _objectSpread2({}, extralHeaders)
11657
+ }), loadSelectSource$1("/stock/ownerWarehouse/operationWarehouseClassificationList", {}, {
11658
+ headers: _objectSpread2({}, extralHeaders)
11658
11659
  })]).then(function (x) {
11659
11660
  var _x$2, _x$2$data$, _x$2$data$$channelInf;
11660
11661
  formatSource(x, 0, 2, tableSearchForm, ['groupCode', 'groupName']);
11662
+ formatSource(x, 2, 3, tableSearchForm, ['operationWarehouseClassification', 'operationWarehouseClassificationName']);
11661
11663
  var newData1 = [];
11662
11664
  (_x$2 = x[1]) === null || _x$2 === void 0 ? void 0 : (_x$2$data$ = _x$2.data[0]) === null || _x$2$data$ === void 0 ? void 0 : (_x$2$data$$channelInf = _x$2$data$.channelInfoSon) === null || _x$2$data$$channelInf === void 0 ? void 0 : _x$2$data$$channelInf.forEach(function (item) {
11663
11665
  newData1.push({
@@ -12589,19 +12591,19 @@ function commonFun(type, prefixUrl, parentProps) {
12589
12591
  var m5 = (_opList6 = opList) === null || _opList6 === void 0 ? void 0 : _opList6.filter(function (r) {
12590
12592
  return (r === null || r === void 0 ? void 0 : r.field) === 'store_channel_name' && _.trim(r === null || r === void 0 ? void 0 : r.value);
12591
12593
  });
12592
- tableSearchForm[7] = _objectSpread2(_objectSpread2({}, tableSearchForm[8]), {}, {
12594
+ tableSearchForm[7] = _objectSpread2(_objectSpread2({}, tableSearchForm[7]), {}, {
12593
12595
  initialSource: m1
12594
12596
  });
12595
- tableSearchForm[8] = _objectSpread2(_objectSpread2({}, tableSearchForm[9]), {}, {
12597
+ tableSearchForm[8] = _objectSpread2(_objectSpread2({}, tableSearchForm[8]), {}, {
12596
12598
  initialSource: m2
12597
12599
  });
12598
- tableSearchForm[9] = _objectSpread2(_objectSpread2({}, tableSearchForm[10]), {}, {
12600
+ tableSearchForm[9] = _objectSpread2(_objectSpread2({}, tableSearchForm[9]), {}, {
12599
12601
  initialSource: m3
12600
12602
  });
12601
- tableSearchForm[10] = _objectSpread2(_objectSpread2({}, tableSearchForm[11]), {}, {
12603
+ tableSearchForm[10] = _objectSpread2(_objectSpread2({}, tableSearchForm[10]), {}, {
12602
12604
  initialSource: m4
12603
12605
  });
12604
- tableSearchForm[11] = _objectSpread2(_objectSpread2({}, tableSearchForm[12]), {}, {
12606
+ tableSearchForm[11] = _objectSpread2(_objectSpread2({}, tableSearchForm[11]), {}, {
12605
12607
  initialSource: m5
12606
12608
  });
12607
12609
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bit-sun/business-component",
3
- "version": "4.2.1-alpha.12-aiwei",
3
+ "version": "4.2.1-alpha.14-aiwei",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -1556,7 +1556,6 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1556
1556
  showCheckedStrategy: 'TreeSelect.SHOW_ALL',
1557
1557
  },
1558
1558
  },
1559
- initialSource: getDictionarySource('BASIC_OPS_WH_TYPE')
1560
1559
  },
1561
1560
  ...(modalTableBusProps?.needStatusSearch?[{ name: 'qp-status-eq', type: 'select', label: '运营仓状态', initialSource: getDictionarySource('SC00001') }]:[]),
1562
1561
  ]
@@ -1576,8 +1575,14 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1576
1575
  ...extralHeaders
1577
1576
  }
1578
1577
  }),
1578
+ loadSelectSource(`/stock/ownerWarehouse/operationWarehouseClassificationList`, {}, {
1579
+ headers: {
1580
+ ...extralHeaders
1581
+ }
1582
+ }),
1579
1583
  ]).then((x: any)=>{
1580
1584
  formatSource(x,0, 2, tableSearchForm,['groupCode','groupName']);
1585
+ formatSource(x,2, 3, tableSearchForm,['operationWarehouseClassification','operationWarehouseClassificationName']);
1581
1586
  const newData1: any[] = [];
1582
1587
  x[1]?.data[0]?.channelInfoSon?.forEach((item: any) => {
1583
1588
  newData1.push({ code: item.code, name: item.name })
@@ -2438,11 +2443,11 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2438
2443
  debugger
2439
2444
  const m4 = opList?.filter((r: any) => r?.field === 'head_item' && trim(r?.value));
2440
2445
  const m5 = opList?.filter((r: any) => r?.field === 'store_channel_name' && trim(r?.value));
2441
- tableSearchForm[7] = { ...tableSearchForm[8], initialSource: m1 };
2442
- tableSearchForm[8] = { ...tableSearchForm[9], initialSource: m2 };
2443
- tableSearchForm[9] = { ...tableSearchForm[10], initialSource: m3 };
2444
- tableSearchForm[10] = { ...tableSearchForm[11], initialSource: m4 };
2445
- tableSearchForm[11] = { ...tableSearchForm[12], initialSource: m5 };
2446
+ tableSearchForm[7] = { ...tableSearchForm[7], initialSource: m1 };
2447
+ tableSearchForm[8] = { ...tableSearchForm[8], initialSource: m2 };
2448
+ tableSearchForm[9] = { ...tableSearchForm[9], initialSource: m3 };
2449
+ tableSearchForm[10] = { ...tableSearchForm[10], initialSource: m4 };
2450
+ tableSearchForm[11] = { ...tableSearchForm[11], initialSource: m5 };
2446
2451
  })
2447
2452
  modalTableProps = {
2448
2453
  modalTableTitle: '选择商店',