@bit-sun/business-component 2.2.0-alpha.21 → 2.2.0-alpha.23

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
@@ -2082,6 +2082,8 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
2082
2082
  isMap = _ref.isMap,
2083
2083
  fixedparameter = _ref.fixedparameter,
2084
2084
  fieldValToParam = _ref.fieldValToParam,
2085
+ _ref$fixedparamsDisab = _ref.fixedparamsDisabled,
2086
+ fixedparamsDisabled = _ref$fixedparamsDisab === void 0 ? false : _ref$fixedparamsDisab,
2085
2087
  _ref$mappingTextField = _ref.mappingTextField,
2086
2088
  mappingTextField = _ref$mappingTextField === void 0 ? 'name' : _ref$mappingTextField,
2087
2089
  mappingTextShowKeyField = _ref.mappingTextShowKeyField,
@@ -2109,6 +2111,12 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
2109
2111
  optionLabelProp: "label",
2110
2112
  autoClearSearchValue: false
2111
2113
  });
2114
+ var tableInitPagination = {
2115
+ showQuickJumper: true,
2116
+ total: 0,
2117
+ current: 1,
2118
+ pageSize: tableInitPageSize
2119
+ };
2112
2120
  var _useState = useState([]),
2113
2121
  _useState2 = _slicedToArray(_useState, 2),
2114
2122
  items = _useState2[0],
@@ -2177,12 +2185,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
2177
2185
  _useState20 = _slicedToArray(_useState19, 2),
2178
2186
  tableData = _useState20[0],
2179
2187
  setTableData = _useState20[1];
2180
- var _useState21 = useState({
2181
- showQuickJumper: true,
2182
- total: 0,
2183
- current: 1,
2184
- pageSize: tableInitPageSize
2185
- }),
2188
+ var _useState21 = useState(tableInitPagination),
2186
2189
  _useState22 = _slicedToArray(_useState21, 2),
2187
2190
  tablePagination = _useState22[0],
2188
2191
  setTablePagination = _useState22[1];
@@ -2231,10 +2234,21 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
2231
2234
  },
2232
2235
  getTableFormRef: function getTableFormRef() {
2233
2236
  return form;
2237
+ },
2238
+ // 解决下拉框数据源的问题
2239
+ getSelectDataSource: function getSelectDataSource() {
2240
+ return items;
2241
+ },
2242
+ setSelectDataSource: function setSelectDataSource(list, listTotal) {
2243
+ setItems(list);
2244
+ setItemsTotal(listTotal);
2245
+ },
2246
+ refreshSelectDataSource: function refreshSelectDataSource() {
2247
+ refreshItems();
2234
2248
  }
2235
2249
  };
2236
2250
  });
2237
- // 获取数据源 (type: 1下拉框 2弹框 不传值默认为下拉框)
2251
+ // 获取数据源 (type: 1下拉框 2/3弹框 不传值默认为下拉框)
2238
2252
  var getData = function getData() {
2239
2253
  var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
2240
2254
  var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
@@ -2247,7 +2261,20 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
2247
2261
  var fixedParamVal = ctx.form.getFieldValue(fieldValToParam[index]);
2248
2262
  if (fixedParamVal) {
2249
2263
  fixedParam[item] = fixedParamVal;
2250
- form.setFieldsValue(_objectSpread2(_objectSpread2({}, form === null || form === void 0 ? void 0 : form.getFieldsValue()), {}, _defineProperty({}, item, fixedParamVal)));
2264
+ // 解决依赖项在弹窗中回显/更改(如果不能更改,传参fixedparamsDisabled为true即可)
2265
+ if (type == 2 || type == 3) {
2266
+ var fixedChangeParamVal = form.getFieldValue(item);
2267
+ // 依赖项在弹窗form中更改--①更换依赖值;②去掉依赖值
2268
+ var isDependenceValueChange = fixedChangeParamVal && fixedChangeParamVal !== fixedParamVal || type == 2 && !fixedChangeParamVal;
2269
+ var dependenceValue = isDependenceValueChange ? fixedChangeParamVal : fixedParamVal;
2270
+ fixedParam[item] = dependenceValue;
2271
+ form.setFieldsValue(_objectSpread2(_objectSpread2({}, form === null || form === void 0 ? void 0 : form.getFieldsValue()), {}, _defineProperty({}, item, dependenceValue)));
2272
+ if (isDependenceValueChange) {
2273
+ ctx.form.setFieldValue(fieldValToParam[index], fixedChangeParamVal); // 更改依赖项
2274
+ ctx.form.setFieldValue(resultSourceKey, null); // 同时清空之前依赖项对应的选择项
2275
+ refreshItems();
2276
+ }
2277
+ }
2251
2278
  }
2252
2279
  });
2253
2280
  }
@@ -2457,7 +2484,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
2457
2484
  getData({
2458
2485
  pageSize: tableInitPageSize,
2459
2486
  currentPage: 1
2460
- }, 2);
2487
+ }, 3);
2461
2488
  setIsModalVisible(true);
2462
2489
  // 回显
2463
2490
  if (value) {
@@ -2495,18 +2522,18 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
2495
2522
  var handleSelectOver = function handleSelectOver(selectedValue) {
2496
2523
  if (selectedValue === null || selectedValue === void 0 ? void 0 : selectedValue.length) {
2497
2524
  var _ctx$form2;
2498
- formaData(selectedValue);
2499
2525
  // 解决选择最后1页的sku,返回后,不显示名称问题
2500
2526
  var source = _.uniqBy(items.concat(selectedValue), 'value');
2501
2527
  ctx === null || ctx === void 0 ? void 0 : (_ctx$form2 = ctx.form) === null || _ctx$form2 === void 0 ? void 0 : _ctx$form2.setFieldSource(resultSourceKey, source);
2502
2528
  setItems(source);
2529
+ formaData(selectedValue, source);
2503
2530
  }
2504
2531
  };
2505
2532
  var handleOk = function handleOk() {
2506
2533
  handleSelectOver(popvalue);
2507
2534
  handleCancel();
2508
2535
  };
2509
- var formaData = function formaData(value) {
2536
+ var formaData = function formaData(value, source) {
2510
2537
  if (labelInValue) {
2511
2538
  var formatResult = value.map(function (i) {
2512
2539
  return {
@@ -2515,17 +2542,26 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
2515
2542
  value: i[mappingValueField]
2516
2543
  };
2517
2544
  });
2518
- onChange(selectMode ? formatResult : formatResult[0], value);
2545
+ onChange(selectMode ? formatResult : formatResult[0], value, source);
2519
2546
  } else {
2520
2547
  var _formatResult = selectMode ? value.map(function (i) {
2521
2548
  return i.value;
2522
2549
  }) : _.get(value[0], 'value');
2523
- onChange(_formatResult, value);
2550
+ onChange(_formatResult, value, source);
2524
2551
  }
2525
2552
  };
2526
- var handleCancel = function handleCancel() {
2553
+ var clearModalTable = function clearModalTable() {
2527
2554
  form.resetFields();
2528
2555
  setTableFormParams({});
2556
+ setTableData([]);
2557
+ setTablePagination(tableInitPagination);
2558
+ setSelectedRowKeys([]);
2559
+ setDoubleArr([]);
2560
+ setCheckedAll(false);
2561
+ setIndeterminate(false);
2562
+ };
2563
+ var handleCancel = function handleCancel() {
2564
+ clearModalTable();
2529
2565
  setIsModalVisible(false);
2530
2566
  if (selectMode) {
2531
2567
  run();
@@ -2533,7 +2569,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
2533
2569
  };
2534
2570
  var refreshItems = function refreshItems() {
2535
2571
  // 查看是否存在关联值 如果有关联值 就查询 没有就不能查询
2536
- if (fieldValToParam && ctx) {
2572
+ if (fieldValToParam && ctx && fixedparamsDisabled) {
2537
2573
  var formValueList = [];
2538
2574
  fieldValToParam.forEach(function (item, index) {
2539
2575
  var fixedParamVal = ctx.form.getFieldValue(fieldValToParam[index]);
@@ -2707,11 +2743,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
2707
2743
  var formItem = function formItem(list) {
2708
2744
  if (isModalVisible && (list === null || list === void 0 ? void 0 : list.length)) {
2709
2745
  var setDisabled = function setDisabled(name) {
2710
- var _requestConfig$fixedp = requestConfig.fixedparamsDisabled,
2711
- fixedparamsDisabled = _requestConfig$fixedp === void 0 ? false : _requestConfig$fixedp,
2712
- _requestConfig$fixedp2 = requestConfig.fixedparameter,
2713
- fixedparameter = _requestConfig$fixedp2 === void 0 ? [] : _requestConfig$fixedp2;
2714
- if (fixedparamsDisabled && fixedparameter.find(function (item) {
2746
+ if (fixedparamsDisabled && (fixedparameter === null || fixedparameter === void 0 ? void 0 : fixedparameter.length) && fixedparameter.find(function (item) {
2715
2747
  return item === name;
2716
2748
  })) {
2717
2749
  return true;
@@ -9849,6 +9881,22 @@ var loadSelectSource = function loadSelectSource(url, params) {
9849
9881
  });
9850
9882
  });
9851
9883
  };
9884
+ var checkSpuMatchCode = function checkSpuMatchCode(data) {
9885
+ return new Promise(function (resolve, reject) {
9886
+ axios.post("/stock/rwFrontRecordSkcDetail/checkSpuMatchCode", data).then(function (result) {
9887
+ var _result3, _result4;
9888
+ result = result.data;
9889
+ if (((_result3 = result) === null || _result3 === void 0 ? void 0 : _result3.status) && result.status !== '0' || ((_result4 = result) === null || _result4 === void 0 ? void 0 : _result4.code) && result.code !== '000000') {
9890
+ message.error(result.msg);
9891
+ reject(false);
9892
+ return;
9893
+ }
9894
+ resolve(result);
9895
+ }).catch(function (err) {
9896
+ reject(err);
9897
+ });
9898
+ });
9899
+ };
9852
9900
  var ResizeableTitle = function ResizeableTitle(props) {
9853
9901
  var onResize = props.onResize,
9854
9902
  width = props.width,
@@ -10089,6 +10137,87 @@ var AddSelect = function AddSelect(props) {
10089
10137
  setShowToChooseColumns = _useState46[1];
10090
10138
  var codeToChoose = tableCodeList[0] || initTableCode[businessType][0];
10091
10139
  var codeSelected = tableCodeList[1] || initTableCode[businessType][1];
10140
+ var checkSelectChange = /*#__PURE__*/function () {
10141
+ var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
10142
+ var result;
10143
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
10144
+ while (1) {
10145
+ switch (_context.prev = _context.next) {
10146
+ case 0:
10147
+ if (!(bType == 'skc' && tList.some(function (i) {
10148
+ return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
10149
+ }))) {
10150
+ _context.next = 3;
10151
+ break;
10152
+ }
10153
+ message.warning('相同skc配码不可设置相同哦');
10154
+ return _context.abrupt("return", false);
10155
+ case 3:
10156
+ if (!(bType == 'spu')) {
10157
+ _context.next = 26;
10158
+ break;
10159
+ }
10160
+ if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
10161
+ return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
10162
+ }))) {
10163
+ _context.next = 7;
10164
+ break;
10165
+ }
10166
+ message.warning('相同商品相同配码颜色不可设置相同哦');
10167
+ return _context.abrupt("return", false);
10168
+ case 7:
10169
+ if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
10170
+ _context.next = 10;
10171
+ break;
10172
+ }
10173
+ message.warning('请先选择颜色!');
10174
+ return _context.abrupt("return", false);
10175
+ case 10:
10176
+ if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
10177
+ return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
10178
+ }))) {
10179
+ _context.next = 13;
10180
+ break;
10181
+ }
10182
+ message.warning('相同商品相同颜色配码不可设置相同哦');
10183
+ return _context.abrupt("return", false);
10184
+ case 13:
10185
+ if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
10186
+ _context.next = 26;
10187
+ break;
10188
+ }
10189
+ result = true;
10190
+ _context.prev = 15;
10191
+ _context.next = 18;
10192
+ return checkSpuMatchCode({
10193
+ skcCode: recordItem[recordKey],
10194
+ matchingCode: changeValue,
10195
+ ext1: recordItem.colorName
10196
+ });
10197
+ case 18:
10198
+ result = _context.sent;
10199
+ result = true;
10200
+ _context.next = 25;
10201
+ break;
10202
+ case 22:
10203
+ _context.prev = 22;
10204
+ _context.t0 = _context["catch"](15);
10205
+ result = typeof _context.t0 == 'boolean' ? _context.t0 : false;
10206
+ case 25:
10207
+ return _context.abrupt("return", result);
10208
+ case 26:
10209
+ return _context.abrupt("return", true);
10210
+ case 27:
10211
+ case "end":
10212
+ return _context.stop();
10213
+ }
10214
+ }
10215
+ }, _callee, null, [[15, 22]]);
10216
+ }));
10217
+ return function checkSelectChange(_x, _x2, _x3, _x4, _x5, _x6) {
10218
+ return _ref4.apply(this, arguments);
10219
+ };
10220
+ }();
10092
10221
  useEffect(function () {
10093
10222
  setTableColumns(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableColumns);
10094
10223
  }, [modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableColumns]);
@@ -10238,40 +10367,55 @@ var AddSelect = function AddSelect(props) {
10238
10367
  return _objectSpread2(_objectSpread2({}, item), {}, {
10239
10368
  render: function render(text, record, index) {
10240
10369
  var _item$dataSource;
10241
- if ((_item$dataSource = item.dataSource) === null || _item$dataSource === void 0 ? void 0 : _item$dataSource.length) {
10370
+ if ((item === null || item === void 0 ? void 0 : (_item$dataSource = item.dataSource) === null || _item$dataSource === void 0 ? void 0 : _item$dataSource.length) || (item === null || item === void 0 ? void 0 : item.dataSourceCode)) {
10371
+ var _item$dataSourceMappi, _item$dataSourceMappi2;
10372
+ var dataSourceList = item.dataSource || (record === null || record === void 0 ? void 0 : record[item === null || item === void 0 ? void 0 : item.dataSourceCode]) || [];
10373
+ var selectKey = (item === null || item === void 0 ? void 0 : (_item$dataSourceMappi = item.dataSourceMapping) === null || _item$dataSourceMappi === void 0 ? void 0 : _item$dataSourceMappi[0]) || 'code';
10374
+ var selectText = (item === null || item === void 0 ? void 0 : (_item$dataSourceMappi2 = item.dataSourceMapping) === null || _item$dataSourceMappi2 === void 0 ? void 0 : _item$dataSourceMappi2[1]) || 'name';
10242
10375
  return /*#__PURE__*/React.createElement(Select, {
10243
10376
  value: text || null,
10244
- onChange: function onChange(value) {
10245
- if (businessType == 'skc' && popvalue.some(function (i) {
10246
- return i.code == record.code && i[item.dataIndex] == value;
10247
- })) {
10248
- message.warning('相同skc配码不可设置相同哦');
10249
- record[item.dataIndex] = null;
10250
- var _newPopValue = popvalue.map(function (i, innerIndex) {
10251
- if (innerIndex == index) {
10252
- i[item.dataIndex] = record[item.dataIndex];
10377
+ onChange: function () {
10378
+ var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
10379
+ var isConformToTheRules, newPopValue;
10380
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
10381
+ while (1) {
10382
+ switch (_context2.prev = _context2.next) {
10383
+ case 0:
10384
+ _context2.next = 2;
10385
+ return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
10386
+ case 2:
10387
+ isConformToTheRules = _context2.sent;
10388
+ if (isConformToTheRules) {
10389
+ record[item.dataIndex] = value;
10390
+ } else {
10391
+ record[item.dataIndex] = null;
10392
+ }
10393
+ newPopValue = popvalue.map(function (i, innerIndex) {
10394
+ if (innerIndex == index) {
10395
+ i[item.dataIndex] = record[item.dataIndex];
10396
+ }
10397
+ return i;
10398
+ });
10399
+ setPopValue(newPopValue);
10400
+ case 6:
10401
+ case "end":
10402
+ return _context2.stop();
10403
+ }
10253
10404
  }
10254
- return i;
10255
- });
10256
- setPopValue(_newPopValue);
10257
- return false;
10405
+ }, _callee2);
10406
+ }));
10407
+ function onChange(_x7) {
10408
+ return _onChange.apply(this, arguments);
10258
10409
  }
10259
- record[item.dataIndex] = value;
10260
- var newPopValue = popvalue.map(function (i, innerIndex) {
10261
- if (innerIndex == index) {
10262
- i[item.dataIndex] = record[item.dataIndex];
10263
- }
10264
- return i;
10265
- });
10266
- setPopValue(newPopValue);
10267
- },
10410
+ return onChange;
10411
+ }(),
10268
10412
  style: {
10269
10413
  width: '160px'
10270
10414
  }
10271
- }, item.dataSource.map(function (item) {
10415
+ }, dataSourceList.map(function (item) {
10272
10416
  return /*#__PURE__*/React.createElement(Select.Option, {
10273
- value: item.code
10274
- }, item.name);
10417
+ value: item[selectKey]
10418
+ }, item[selectText]);
10275
10419
  }));
10276
10420
  }
10277
10421
  return /*#__PURE__*/React.createElement(React.Fragment, null);
@@ -10400,10 +10544,10 @@ var AddSelect = function AddSelect(props) {
10400
10544
  currentPage: currentPage
10401
10545
  }, otherParams), fixedParam), params);
10402
10546
  axios.get("".concat(url, "?").concat(stringify(queryParams))).then(function (result) {
10403
- var _result3, _result4;
10547
+ var _result5, _result6;
10404
10548
  setFetching(false);
10405
10549
  result = result.data;
10406
- if (((_result3 = result) === null || _result3 === void 0 ? void 0 : _result3.status) && result.status !== '0' || ((_result4 = result) === null || _result4 === void 0 ? void 0 : _result4.code) && result.code !== '000000') {
10550
+ if (((_result5 = result) === null || _result5 === void 0 ? void 0 : _result5.status) && result.status !== '0' || ((_result6 = result) === null || _result6 === void 0 ? void 0 : _result6.code) && result.code !== '000000') {
10407
10551
  message.error(result.msg);
10408
10552
  return;
10409
10553
  }
@@ -10498,10 +10642,10 @@ var AddSelect = function AddSelect(props) {
10498
10642
  });
10499
10643
  }
10500
10644
  if (businessType == 'skc') {
10501
- Promise.all([loadSelectSource("/items/item/propertyValue", {
10502
- pageSize: 5000,
10645
+ Promise.all([loadSelectSource("/items/item/propertyValue/sizeBySkcConfig", {
10646
+ pageSize: 10000,
10503
10647
  currentPage: 1,
10504
- 'qp-propertyId-eq': '1467042217951883265'
10648
+ type: 2 // 类型:1尺码;2颜色
10505
10649
  }), loadSelectSource("/items/category/queryCategoryTree", {
10506
10650
  pageSize: 5000,
10507
10651
  currentPage: 1
@@ -10648,10 +10792,11 @@ var AddSelect = function AddSelect(props) {
10648
10792
  getData(_objectSpread2(_objectSpread2({}, params), {}, {
10649
10793
  pageSize: tableInitPageSize
10650
10794
  }), 2);
10651
- if (selectMode) {
10652
- getData(params);
10653
- }
10795
+ // if (selectMode) {
10796
+ // getData(params)
10797
+ // }
10654
10798
  };
10799
+
10655
10800
  var onResetTable = function onResetTable() {
10656
10801
  form.resetFields();
10657
10802
  setTableFormParams({});
@@ -10829,8 +10974,8 @@ var AddSelect = function AddSelect(props) {
10829
10974
  });
10830
10975
  }, [tableColumns]);
10831
10976
  var handleResize = function handleResize(arr, index, callback) {
10832
- return function (_, _ref4) {
10833
- var size = _ref4.size;
10977
+ return function (_, _ref5) {
10978
+ var size = _ref5.size;
10834
10979
  var newColumns = arr.map(function (col) {
10835
10980
  return _objectSpread2({}, col);
10836
10981
  });
@@ -12807,6 +12952,10 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
12807
12952
  filter: 'qp-code,name-orGroup,like',
12808
12953
  mappingTextField: 'name',
12809
12954
  mappingValueField: 'code',
12955
+ otherParams: {
12956
+ 'qp-skcStatus-eq': 1 // 状态:0禁用 1启用
12957
+ },
12958
+
12810
12959
  sourceName: 'qp-skcCode-eq'
12811
12960
  }, requestConfigProp);
12812
12961
  tableSearchForm = [{
@@ -12902,10 +13051,10 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
12902
13051
  }
12903
13052
  }
12904
13053
  }];
12905
- Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/item/propertyValue"), {
12906
- pageSize: 5000,
13054
+ Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/item/propertyValue/sizeBySkcConfig"), {
13055
+ pageSize: 10000,
12907
13056
  currentPage: 1,
12908
- 'qp-propertyId-eq': '1467042217951883265'
13057
+ type: 2 // 类型:1尺码;2颜色
12909
13058
  }), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/category/queryCategoryTree"), {
12910
13059
  pageSize: 5000,
12911
13060
  currentPage: 1
@@ -13823,6 +13972,11 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
13823
13972
  }
13824
13973
  // 配送方式选择器
13825
13974
  if (type === 'deliveryMode') {
13975
+ var _requestConfigProp$fi;
13976
+ var isLogisCompanyCodeSingleSearch = requestConfigProp === null || requestConfigProp === void 0 ? void 0 : (_requestConfigProp$fi = requestConfigProp.fixedparameter) === null || _requestConfigProp$fi === void 0 ? void 0 : _requestConfigProp$fi.some(function (i) {
13977
+ return i == 'qp-logisCompanyCode-eq';
13978
+ });
13979
+ var logisCompanyCodeSingleSearchName = isLogisCompanyCodeSingleSearch ? 'qp-logisCompanyCode-eq' : 'qp-logisCompanyCode-in';
13826
13980
  requestConfig = _objectSpread2({
13827
13981
  url: "".concat(prefixUrl.selectPrefix, "/deliveryMode"),
13828
13982
  filter: 'qp-name,code-orGroup,like',
@@ -13841,23 +13995,24 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
13841
13995
  name: 'qp-code-like',
13842
13996
  label: '配送方式编码'
13843
13997
  }, {
13844
- name: 'qp-logisCompanyCode-in',
13998
+ name: logisCompanyCodeSingleSearchName,
13845
13999
  type: 'select',
13846
14000
  label: '所属物流商',
13847
14001
  field: {
13848
14002
  type: 'select',
13849
- props: {
14003
+ props: _objectSpread2(_objectSpread2({}, isLogisCompanyCodeSingleSearch ? {} : {
13850
14004
  mode: 'multiple',
14005
+ maxTagCount: 1
14006
+ }), {}, {
13851
14007
  notFoundContent: '暂无数据',
13852
14008
  allowClear: true,
13853
14009
  showSearch: true,
13854
14010
  showArrow: true,
13855
- maxTagCount: 1,
13856
14011
  optionFilterProp: 'children',
13857
14012
  filterOption: function filterOption(input, option) {
13858
14013
  return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
13859
14014
  }
13860
- }
14015
+ })
13861
14016
  }
13862
14017
  }, {
13863
14018
  name: 'qp-recordChannnelCode-in',
@@ -14179,14 +14334,9 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
14179
14334
  },
14180
14335
  beforeShowModal: parProps === null || parProps === void 0 ? void 0 : parProps.beforeShowModal,
14181
14336
  onSaveCallback: parProps.onSaveCallback,
14182
- businessType: 'sku'
14183
- // onSaveCallback: (rows) => {
14184
- // console.log('save call', rows);
14185
- // // return Promise.resolve(true);
14186
- // // return Promise.reject('FAILE')
14187
- // }
14337
+ businessType: 'sku',
14338
+ isAllowRepeatedSelect: !!(parProps === null || parProps === void 0 ? void 0 : parProps.isAllowRepeatedSelect)
14188
14339
  };
14189
-
14190
14340
  var modalTableProps = {
14191
14341
  modalTableTitle: '选择商品',
14192
14342
  tableSearchForm: [{
@@ -14399,7 +14549,7 @@ var AddSkcSelect = function AddSkcSelect(parProps) {
14399
14549
  setPropertyList = _useState6[1];
14400
14550
  useEffect(function () {
14401
14551
  // type: 1 尺码组; 2 配码组
14402
- axios.get("/items/itemPropertyValueGroup/listNoPage?qp-type-eq=2").then(function (result) {
14552
+ axios.get("/items/itemPropertyValueGroup/listNoPage?qp-type-eq=2&qp-status-eq=1").then(function (result) {
14403
14553
  var _result, _result2;
14404
14554
  result = result.data;
14405
14555
  if (((_result = result) === null || _result === void 0 ? void 0 : _result.status) && result.status !== '0' || ((_result2 = result) === null || _result2 === void 0 ? void 0 : _result2.code) && result.code !== '000000') {
@@ -14463,7 +14613,9 @@ var AddSkcSelect = function AddSkcSelect(parProps) {
14463
14613
  requestConfig: _objectSpread2({
14464
14614
  url: "/items/skc/skcSelect",
14465
14615
  filter: 'qp-name-like',
14466
- otherParams: {},
14616
+ otherParams: {
14617
+ 'qp-skcStatus-eq': 1
14618
+ },
14467
14619
  mappingTextField: 'name',
14468
14620
  mappingValueField: 'code'
14469
14621
  }, parProps.requestConfig),
@@ -14475,8 +14627,9 @@ var AddSkcSelect = function AddSkcSelect(parProps) {
14475
14627
  beforeShowModal: parProps === null || parProps === void 0 ? void 0 : parProps.beforeShowModal,
14476
14628
  onSaveCallback: parProps.onSaveCallback,
14477
14629
  businessType: 'skc',
14478
- isAllowRepeatedSelect: true
14630
+ isAllowRepeatedSelect: (parProps === null || parProps === void 0 ? void 0 : parProps.isAllowRepeatedSelect) !== undefined ? !!(parProps === null || parProps === void 0 ? void 0 : parProps.isAllowRepeatedSelect) : true // 默认开启一行选多次
14479
14631
  };
14632
+
14480
14633
  var modalTableProps = {
14481
14634
  modalTableTitle: '选择商品',
14482
14635
  tableSearchForm: [{
@@ -14669,6 +14822,25 @@ var AddSpuSelect = function AddSpuSelect(parProps) {
14669
14822
  _useState8 = _slicedToArray(_useState7, 2),
14670
14823
  value = _useState8[0],
14671
14824
  setValue = _useState8[1];
14825
+ var _useState9 = useState([]),
14826
+ _useState10 = _slicedToArray(_useState9, 2),
14827
+ propertyList = _useState10[0],
14828
+ setPropertyList = _useState10[1];
14829
+ useEffect(function () {
14830
+ if (parProps === null || parProps === void 0 ? void 0 : parProps.isSingleColor) {
14831
+ // type: 1 尺码组; 2 配码组
14832
+ axios.get("/items/itemPropertyValueGroup/listNoPage?qp-type-eq=2&qp-status-eq=1").then(function (result) {
14833
+ var _result3, _result4;
14834
+ result = result.data;
14835
+ if (((_result3 = result) === null || _result3 === void 0 ? void 0 : _result3.status) && result.status !== '0' || ((_result4 = result) === null || _result4 === void 0 ? void 0 : _result4.code) && result.code !== '000000') {
14836
+ message.error(result.msg);
14837
+ return;
14838
+ }
14839
+ var data = result.data || [];
14840
+ setPropertyList(data);
14841
+ }).catch(function (err) {});
14842
+ }
14843
+ }, []);
14672
14844
  //注⚠️:自定义过表头的请记得传tableCodeList参数
14673
14845
  var initialSelectColumn = [{
14674
14846
  title: '商品编码',
@@ -14687,6 +14859,19 @@ var AddSpuSelect = function AddSpuSelect(parProps) {
14687
14859
  }, text);
14688
14860
  },
14689
14861
  dataIndex: 'name'
14862
+ }, {
14863
+ title: '颜色',
14864
+ dataIndex: 'colorName',
14865
+ width: 200,
14866
+ isSelectItem: true,
14867
+ dataSourceCode: 'colorValues',
14868
+ dataSourceMapping: ['value', 'value']
14869
+ }, {
14870
+ title: '配码',
14871
+ dataIndex: 'selectPropertyGroupCode',
14872
+ width: 160,
14873
+ isSelectItem: true,
14874
+ dataSource: propertyList
14690
14875
  }, {
14691
14876
  title: '数量',
14692
14877
  width: 100,
@@ -14729,14 +14914,9 @@ var AddSpuSelect = function AddSpuSelect(parProps) {
14729
14914
  },
14730
14915
  beforeShowModal: parProps === null || parProps === void 0 ? void 0 : parProps.beforeShowModal,
14731
14916
  onSaveCallback: parProps.onSaveCallback,
14732
- businessType: 'spu'
14733
- // onSaveCallback: (rows) => {
14734
- // console.log('save call', rows);
14735
- // // return Promise.resolve(true);
14736
- // // return Promise.reject('FAILE')
14737
- // }
14917
+ businessType: 'spu',
14918
+ isAllowRepeatedSelect: !!(parProps === null || parProps === void 0 ? void 0 : parProps.isAllowRepeatedSelect)
14738
14919
  };
14739
-
14740
14920
  var modalTableProps = {
14741
14921
  modalTableTitle: '选择商品',
14742
14922
  tableSearchForm: [{
@@ -15032,6 +15212,7 @@ function getStorageVale(storageKeyString) {
15032
15212
  return "";
15033
15213
  }
15034
15214
 
15215
+ var _excluded$5 = ["ctx", "value", "valueName", "onChange", "onChangeName", "placeholder", "remoteSource", "initialValue", "treeCheckable", "showSearch", "maxTagCount", "multiple", "isChoose", "mode", "getPopupContainer", "labelInValue", "showArrow", "allowClear", "showCheckedStrategy", "style", "getTreeData", "disabled"];
15035
15216
  var TreeSearchSelect = function TreeSearchSelect(props) {
15036
15217
  var _useState = useState([]),
15037
15218
  _useState2 = _slicedToArray(_useState, 2),
@@ -15064,13 +15245,14 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
15064
15245
  _props$allowClear = props.allowClear,
15065
15246
  allowClear = _props$allowClear === void 0 ? true : _props$allowClear,
15066
15247
  _props$showCheckedStr = props.showCheckedStrategy,
15067
- showCheckedStrategy = _props$showCheckedStr === void 0 ? TreeSelect.SHOW_PARENT : _props$showCheckedStr,
15248
+ showCheckedStrategy = _props$showCheckedStr === void 0 ? (props === null || props === void 0 ? void 0 : props.treeCheckStrictly) ? TreeSelect.SHOW_ALL : TreeSelect.SHOW_PARENT : _props$showCheckedStr,
15068
15249
  _props$style = props.style,
15069
15250
  style = _props$style === void 0 ? {
15070
15251
  width: '100%'
15071
15252
  } : _props$style,
15072
15253
  getTreeData = props.getTreeData,
15073
- disabled = props.disabled;
15254
+ disabled = props.disabled,
15255
+ restProps = _objectWithoutProperties(props, _excluded$5);
15074
15256
  var url = remoteSource.url,
15075
15257
  _remoteSource$paramsK = remoteSource.paramsKey,
15076
15258
  paramsKey = _remoteSource$paramsK === void 0 ? 'qp-name-like' : _remoteSource$paramsK,
@@ -15111,7 +15293,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
15111
15293
  switch (_context.prev = _context.next) {
15112
15294
  case 0:
15113
15295
  resData = (res === null || res === void 0 ? void 0 : res.data) || [];
15114
- if (!(resData.status === '0')) {
15296
+ if (!(resData.status === '0' || resData.code === '000000')) {
15115
15297
  _context.next = 13;
15116
15298
  break;
15117
15299
  }
@@ -15155,7 +15337,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
15155
15337
  };
15156
15338
  var formatData = function formatData(value) {
15157
15339
  if (labelInValue) {
15158
- var formatResult = multiple ? value.map(function (i) {
15340
+ var formatResult = multiple || treeCheckable ? value.map(function (i) {
15159
15341
  return _objectSpread2(_objectSpread2({}, i), {}, {
15160
15342
  key: i.value
15161
15343
  });
@@ -15164,9 +15346,9 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
15164
15346
  });
15165
15347
  return formatResult;
15166
15348
  } else {
15167
- var _formatResult = multiple ? value.map(function (i) {
15349
+ var _formatResult = multiple || treeCheckable ? value.map(function (i) {
15168
15350
  return (i === null || i === void 0 ? void 0 : i.value) || i;
15169
- }) : _.get(value[0], 'value') || value;
15351
+ }) : _.get(value === null || value === void 0 ? void 0 : value[0], 'value') || value;
15170
15352
  return _formatResult;
15171
15353
  }
15172
15354
  };
@@ -15213,7 +15395,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
15213
15395
  };
15214
15396
  return /*#__PURE__*/React.createElement("div", {
15215
15397
  className: 'tree_search_select'
15216
- }, /*#__PURE__*/React.createElement(TreeSelect, {
15398
+ }, /*#__PURE__*/React.createElement(TreeSelect, _objectSpread2(_objectSpread2({}, restProps), {}, {
15217
15399
  treeCheckable: treeCheckable,
15218
15400
  maxTagCount: maxTagCount,
15219
15401
  showSearch: showSearch,
@@ -15239,7 +15421,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
15239
15421
  getPopupContainer: function getPopupContainer() {
15240
15422
  return _getPopupContainer && _getPopupContainer() || document.body;
15241
15423
  }
15242
- }));
15424
+ })));
15243
15425
  };
15244
15426
 
15245
15427
  var handleDefaultProps = function handleDefaultProps(type) {
@@ -15264,7 +15446,8 @@ var handleDefaultProps = function handleDefaultProps(type) {
15264
15446
  remoteSource: {
15265
15447
  url: "/user/orgViewNode/common/getTreeForOrgViewAndTenant",
15266
15448
  initialParams: {
15267
- 'orgViewCode': 'sales-organizational-view'
15449
+ 'orgViewCode': 'sales-organizational-view',
15450
+ 'qp-status-eq': 10
15268
15451
  },
15269
15452
  resKeyValue: ['code', 'name']
15270
15453
  }
@@ -15276,7 +15459,8 @@ var handleDefaultProps = function handleDefaultProps(type) {
15276
15459
  remoteSource: {
15277
15460
  url: "/user/orgViewNode/common/getTreeForOrgViewAndTenant",
15278
15461
  initialParams: {
15279
- 'orgViewCode': 'purchase-organizational-view'
15462
+ 'orgViewCode': 'purchase-organizational-view',
15463
+ 'qp-status-eq': 10
15280
15464
  },
15281
15465
  resKeyValue: ['code', 'name']
15282
15466
  }
@@ -15288,12 +15472,22 @@ var handleDefaultProps = function handleDefaultProps(type) {
15288
15472
  remoteSource: {
15289
15473
  url: "/user/orgViewNode/common/getTreeForOrgViewAndTenant",
15290
15474
  initialParams: {
15291
- 'orgViewCode': 'stock-organizational-view'
15475
+ 'orgViewCode': 'stock-organizational-view',
15476
+ 'qp-status-eq': 10
15292
15477
  },
15293
15478
  resKeyValue: ['code', 'name']
15294
15479
  }
15295
15480
  };
15296
15481
  break;
15482
+ case 'market-area':
15483
+ result = {
15484
+ isChoose: true,
15485
+ remoteSource: {
15486
+ url: "/channel-manage/tagNode/getTree/10",
15487
+ resKeyValue: ['code', 'name']
15488
+ }
15489
+ };
15490
+ break;
15297
15491
  default:
15298
15492
  result = {
15299
15493
  treeCheckable: true,
@@ -15376,11 +15570,11 @@ var arrow_top = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXA
15376
15570
  var css_248z$9 = ".form-guide {\n cursor: pointer;\n position: fixed;\n right: 5px;\n color: #B1BAD4;\n padding: 5px 0;\n width: 48px;\n z-index: 10;\n top: 50%;\n transform: translateY(-50%);\n background-color: #141620;\n border-radius: 5px;\n}\n.form-guide .form-guide-top {\n padding: 0px 10px;\n display: flex;\n justify-content: center;\n}\n.form-guide .form-guide-center {\n border-top: 1px solid #6E7588;\n border-bottom: 1px solid #6E7588;\n padding: 0px 10px;\n}\n.form-guide .form-guide-item {\n width: 28px;\n padding: 5px 0;\n display: block;\n word-break: break-all;\n color: #B1BAD4;\n font-size: 14px;\n line-height: 16px;\n position: relative;\n}\n.form-guide .form-guide-item::after {\n content: '';\n display: block;\n width: 15px;\n height: 1px;\n background-color: #6E7588;\n position: absolute;\n bottom: 0px;\n left: 7px;\n}\n.form-guide .form-guide-bottom {\n padding: 5px 10px;\n display: flex;\n justify-content: center;\n}\n.form-guide .form-guide-item:last-child::after {\n content: '';\n display: none;\n width: 15px;\n height: 1px;\n background-color: #6E7588;\n position: absolute;\n bottom: 0px;\n left: 7px;\n}\n.white-card.bitsun-form-card-class .ant-card-body {\n background-color: #FFFFFF;\n padding: 0px;\n}\n.bitsun-form-card-class > .ant-card-body {\n margin-bottom: 10px;\n}\n.bitsun-form-card-class .ant-card-head {\n border: 0px;\n padding: 0px;\n height: 48px;\n}\n.bitsun-form-card-class .ant-card-body {\n padding: 12px 0 0;\n margin-top: -4px;\n background-color: #F3F3F3;\n}\n.bitsun-form-card-class .ant-card-head-title {\n display: flex;\n align-items: center;\n font-size: 16px;\n color: #000000;\n font-weight: 600;\n font-family: PingFangSC;\n background-color: #FFFFFF;\n padding: 8px 0;\n margin: 0px;\n}\n.bitsun-form-card-class .ant-card-head-title .title-left-line {\n display: inline-block;\n width: 4px;\n height: 100%;\n background-color: #005CFF;\n height: 20px;\n margin-right: 16px;\n}\n.field-group-hidden .ant-card-body {\n display: none !important;\n}\n";
15377
15571
  styleInject(css_248z$9);
15378
15572
 
15379
- var _excluded$5 = ["children"],
15573
+ var _excluded$6 = ["children"],
15380
15574
  _excluded2$2 = ["children"];
15381
15575
  var Field = function Field(_ref) {
15382
15576
  var children = _ref.children,
15383
- props = _objectWithoutProperties(_ref, _excluded$5);
15577
+ props = _objectWithoutProperties(_ref, _excluded$6);
15384
15578
  var _React$useState = React.useState(true),
15385
15579
  _React$useState2 = _slicedToArray(_React$useState, 2),
15386
15580
  fieldGroupVisible = _React$useState2[0],
@@ -15515,7 +15709,7 @@ var ExportIcon = function ExportIcon(_ref) {
15515
15709
  var css_248z$a = ".sort_table_wrapper .sort_table {\n display: flex;\n}\n.sort_table_wrapper .sort_table .sort_table_column_wrapper {\n width: 560px;\n margin-right: 10px;\n}\n.sort_table_wrapper .sort_table .sort_table_content_wrapper {\n width: 210px;\n}\n.sort_table_wrapper .sort_table .sort_table_column_count,\n.sort_table_wrapper .sort_table .sort_table_content_count {\n height: 20px;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .sort_table .sort_table_column_count span,\n.sort_table_wrapper .sort_table .sort_table_content_count span {\n color: #848484;\n}\n.sort_table_wrapper .sort_table .sort_table_column {\n margin-top: 10px;\n width: 560px;\n height: 430px;\n overflow: auto;\n padding: 10px;\n background: #ffffff;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n}\n.sort_table_wrapper .sort_table .sort_table_column_all {\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n}\n.sort_table_wrapper .sort_table .sort_table_column_all_empty {\n width: 538px;\n line-height: 360px;\n text-align: center;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #848484;\n}\n.sort_table_wrapper .sort_table .sort_table_column_special {\n margin-top: 40px;\n width: 100px;\n height: 20px;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #848484;\n letter-spacing: 0;\n}\n.sort_table_wrapper .sort_table .sort_table_column .ant-checkbox-wrapper {\n width: 144px;\n margin-top: 16px;\n}\n.sort_table_wrapper .sort_table .sort_table_column .ant-checkbox-wrapper + .ant-checkbox-wrapper {\n margin-left: 0px;\n}\n.sort_table_wrapper .sort_table .sort_table_content {\n margin-top: 10px;\n padding-top: 10px;\n padding-bottom: 10px;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n}\n.sort_table_wrapper .sort_table .sort_table_content .ant-table-wrapper {\n padding: 0px !important;\n}\n.sort_table_wrapper .sort_table .sort_table_content .sort_table_title {\n height: 32px;\n line-height: 32px;\n padding-left: 10px;\n color: gray;\n}\n.sort_table_wrapper div.ant-modal-header {\n width: 820px;\n height: 64px;\n background: #ffffff;\n padding: 20px;\n border: 0px;\n}\n.sort_table_wrapper div.ant-modal-header div.ant-modal-title {\n height: 24px;\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n line-height: 24px;\n}\n.sort_table_wrapper .ant-modal-body {\n padding: 0 20px !important;\n}\n.sort_table_wrapper .ant-modal-close-x {\n height: 24px;\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .ant-input-affix-wrapper {\n padding: 0px;\n padding-right: 10px;\n}\n.sort_table_wrapper input {\n height: 32px;\n padding: 6px 4px;\n border-radius: 5px;\n}\n.sort_table_wrapper .ant-input-prefix {\n width: 24px;\n height: 24px;\n margin: 4px;\n display: flex;\n justify-content: center;\n}\n.sort_table_wrapper .ant-modal-footer {\n height: 70px;\n border: 0;\n padding: 20px;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn {\n width: 80px;\n height: 34px;\n border-radius: 5px;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn span {\n font-family: PingFangSC-Medium;\n font-weight: 600;\n font-size: 14px;\n letter-spacing: 0;\n text-align: center;\n line-height: 20px;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn:first-child {\n margin-right: 524px;\n}\n.sort_table_wrapper .ant-table-wrapper::-webkit-scrollbar {\n display: none;\n}\n.sort_table_wrapper .ant-table-wrapper {\n margin-top: 10px;\n height: 364px;\n overflow: scroll;\n padding-bottom: 50px;\n}\n.sort_table_wrapper .ant-table-wrapper tr {\n height: 36px;\n}\n.sort_table_wrapper .ant-table-wrapper tr td {\n width: 24px !important;\n height: 36px !important;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:first-child {\n padding-left: 10px !important;\n padding-right: 0px !important;\n width: 115px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td img {\n cursor: pointer;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:not(:first-child) {\n padding-left: 0px !important;\n padding-right: 0px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:last-child {\n padding-left: 0px !important;\n padding-right: 3px !important;\n width: 34px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:last-child img {\n position: relative;\n top: 1px;\n}\n.global_tab_nav_style {\n top: 2px !important;\n}\n.row-dragging {\n background: #fafafa;\n border: 1px solid #ccc;\n z-index: 10000;\n}\n.row-dragging td {\n padding: 7px 16px;\n display: none;\n}\n.row-dragging td:first-child {\n display: inline-block;\n}\n.row-dragging .drag-visible {\n visibility: visible;\n}\n";
15516
15710
  styleInject(css_248z$a);
15517
15711
 
15518
- var _excluded$6 = ["className", "style"];
15712
+ var _excluded$7 = ["className", "style"];
15519
15713
  var Search$1 = Input.Search;
15520
15714
  var DragHandle$1 = SortableHandle(function () {
15521
15715
  return /*#__PURE__*/React.createElement("img", {
@@ -15882,7 +16076,7 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
15882
16076
  _this.DraggableBodyRow = function (_ref2) {
15883
16077
  var className = _ref2.className,
15884
16078
  style = _ref2.style,
15885
- restProps = _objectWithoutProperties(_ref2, _excluded$6);
16079
+ restProps = _objectWithoutProperties(_ref2, _excluded$7);
15886
16080
  var sortDataSource = _this.state.sortDataSource;
15887
16081
  // function findIndex base on Table rowKey props and should always be a right array index
15888
16082
  var index = sortDataSource.findIndex(function (x) {
@@ -16149,7 +16343,7 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
16149
16343
  return SortableTable;
16150
16344
  }(React.Component);
16151
16345
 
16152
- var _excluded$7 = ["onResize", "width"],
16346
+ var _excluded$8 = ["onResize", "width"],
16153
16347
  _excluded2$3 = ["style", "columns", "tableCode", "summary", "dynamicColumns", "scroll"];
16154
16348
  var Text = Typography.Text;
16155
16349
  var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
@@ -16262,7 +16456,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
16262
16456
  _this.ResizeableTitle = function (props) {
16263
16457
  var onResize = props.onResize,
16264
16458
  width = props.width,
16265
- restProps = _objectWithoutProperties(props, _excluded$7);
16459
+ restProps = _objectWithoutProperties(props, _excluded$8);
16266
16460
  if (!width) {
16267
16461
  return /*#__PURE__*/React.createElement("th", _objectSpread2({}, restProps));
16268
16462
  }
@@ -16394,7 +16588,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
16394
16588
  return ColumnSettingSulaTable;
16395
16589
  }(React.Component);
16396
16590
 
16397
- var _excluded$8 = ["onResize", "width"],
16591
+ var _excluded$9 = ["onResize", "width"],
16398
16592
  _excluded2$4 = ["columns", "tableCode", "summary", "dynamicColumns", "scroll"];
16399
16593
  var Text$1 = Typography.Text;
16400
16594
  var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
@@ -16506,7 +16700,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
16506
16700
  _this.ResizeableTitle = function (props) {
16507
16701
  var onResize = props.onResize,
16508
16702
  width = props.width,
16509
- restProps = _objectWithoutProperties(props, _excluded$8);
16703
+ restProps = _objectWithoutProperties(props, _excluded$9);
16510
16704
  if (!width) {
16511
16705
  return /*#__PURE__*/React.createElement("th", _objectSpread2({}, restProps));
16512
16706
  }
@@ -16716,12 +16910,12 @@ var moreIcon = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D
16716
16910
  var css_248z$c = "";
16717
16911
  styleInject(css_248z$c);
16718
16912
 
16719
- var _excluded$9 = ["message", "type"];
16913
+ var _excluded$a = ["message", "type"];
16720
16914
  var CommonAlert = (function (props) {
16721
16915
  var message = props.message,
16722
16916
  _props$type = props.type,
16723
16917
  type = _props$type === void 0 ? 'info' : _props$type,
16724
- reset = _objectWithoutProperties(props, _excluded$9);
16918
+ reset = _objectWithoutProperties(props, _excluded$a);
16725
16919
  return /*#__PURE__*/React.createElement("div", {
16726
16920
  style: {
16727
16921
  width: '100%',
@@ -16742,7 +16936,7 @@ var CommonAlert = (function (props) {
16742
16936
  }, reset)));
16743
16937
  });
16744
16938
 
16745
- var _excluded$a = ["children"];
16939
+ var _excluded$b = ["children"];
16746
16940
  var iconMap = {
16747
16941
  edit: /*#__PURE__*/React.createElement("img", {
16748
16942
  src: editIcon
@@ -16764,7 +16958,7 @@ var index$3 = (function (props) {
16764
16958
  _useState2 = _slicedToArray(_useState, 1),
16765
16959
  id = _useState2[0];
16766
16960
  var children = props.children,
16767
- restProps = _objectWithoutProperties(props, _excluded$a);
16961
+ restProps = _objectWithoutProperties(props, _excluded$b);
16768
16962
  return /*#__PURE__*/React.createElement("div", {
16769
16963
  id: id,
16770
16964
  className: 'detail_page_wrapper'
@@ -16973,7 +17167,7 @@ var DetailWrapper = /*#__PURE__*/React.memo(function (_ref) {
16973
17167
  var css_248z$d = ".home_page_head {\n height: 54px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n background-color: #FFFFFF;\n border-bottom: 1px solid #f0f0f0;\n padding: 0 20px;\n}\n.home_page_head .home_page_title {\n height: 20px;\n font-family: PingFangSC-Medium;\n font-weight: 600;\n font-size: 16px;\n color: #000000;\n letter-spacing: 0;\n line-height: 20px;\n flex-grow: 1;\n margin-top: 2px;\n}\n.home_page_head .ant-breadcrumb {\n display: block !important;\n}\n.home_page_head .ant-breadcrumb .ant-breadcrumb-separator {\n margin: 0 2px;\n}\n.home_page_head .ant-breadcrumb li .bread_name {\n color: #8A8F8D;\n font-size: 12px;\n line-height: 16px;\n cursor: pointer;\n}\n";
16974
17168
  styleInject(css_248z$d);
16975
17169
 
16976
- var _excluded$b = ["children"];
17170
+ var _excluded$c = ["children"];
16977
17171
  var index$4 = (function (props) {
16978
17172
  var _useLocation = useLocation(),
16979
17173
  pathname = _useLocation.pathname;
@@ -16981,7 +17175,7 @@ var index$4 = (function (props) {
16981
17175
  _useState2 = _slicedToArray(_useState, 1),
16982
17176
  id = _useState2[0];
16983
17177
  var children = props.children,
16984
- restProps = _objectWithoutProperties(props, _excluded$b);
17178
+ restProps = _objectWithoutProperties(props, _excluded$c);
16985
17179
  return /*#__PURE__*/React.createElement("div", {
16986
17180
  id: id,
16987
17181
  className: 'home_page_wrapper'
@@ -17084,7 +17278,7 @@ var HeaderWrapper = /*#__PURE__*/React.memo(function (_ref) {
17084
17278
  var css_248z$e = ".sort_table_wrapper .sort_table {\n display: flex;\n}\n.sort_table_wrapper .sort_table .sort_table_column_wrapper {\n width: 560px;\n margin-right: 10px;\n}\n.sort_table_wrapper .sort_table .sort_table_content_wrapper {\n width: 210px;\n}\n.sort_table_wrapper .sort_table .sort_table_column_count,\n.sort_table_wrapper .sort_table .sort_table_content_count {\n height: 20px;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .sort_table .sort_table_column_count span,\n.sort_table_wrapper .sort_table .sort_table_content_count span {\n color: #848484;\n}\n.sort_table_wrapper .sort_table .sort_table_column {\n margin-top: 10px;\n width: 560px;\n height: 430px;\n overflow: auto;\n padding: 10px;\n background: #ffffff;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n}\n.sort_table_wrapper .sort_table .sort_table_column_all {\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n}\n.sort_table_wrapper .sort_table .sort_table_column_all_empty {\n width: 538px;\n line-height: 360px;\n text-align: center;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #848484;\n}\n.sort_table_wrapper .sort_table .sort_table_column_special {\n margin-top: 40px;\n width: 100px;\n height: 20px;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #848484;\n letter-spacing: 0;\n}\n.sort_table_wrapper .sort_table .sort_table_column .ant-checkbox-wrapper {\n width: 144px;\n margin-top: 16px;\n}\n.sort_table_wrapper .sort_table .sort_table_column .ant-checkbox-wrapper + .ant-checkbox-wrapper {\n margin-left: 0px;\n}\n.sort_table_wrapper .sort_table .sort_table_content {\n margin-top: 10px;\n padding-top: 10px;\n padding-bottom: 10px;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n}\n.sort_table_wrapper .sort_table .sort_table_content .ant-table-wrapper {\n padding: 0px !important;\n}\n.sort_table_wrapper .sort_table .sort_table_content .sort_table_title {\n height: 32px;\n line-height: 32px;\n padding-left: 10px;\n color: gray;\n}\n.sort_table_wrapper div.ant-modal-header {\n width: 820px;\n height: 64px;\n background: #ffffff;\n padding: 20px;\n border: 0px;\n}\n.sort_table_wrapper div.ant-modal-header div.ant-modal-title {\n height: 24px;\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n line-height: 24px;\n}\n.sort_table_wrapper .ant-modal-body {\n padding: 0 20px !important;\n}\n.sort_table_wrapper .ant-modal-close-x {\n height: 24px;\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .ant-input-affix-wrapper {\n padding: 0px;\n padding-right: 10px;\n}\n.sort_table_wrapper input {\n height: 32px;\n padding: 6px 4px;\n border-radius: 5px;\n}\n.sort_table_wrapper .ant-input-prefix {\n width: 24px;\n height: 24px;\n margin: 4px;\n display: flex;\n justify-content: center;\n}\n.sort_table_wrapper .ant-modal-footer {\n height: 70px;\n border: 0;\n padding: 20px;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn {\n width: 80px;\n height: 34px;\n border-radius: 5px;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn span {\n font-family: PingFangSC-Medium;\n font-weight: 600;\n font-size: 14px;\n letter-spacing: 0;\n text-align: center;\n line-height: 20px;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn:first-child {\n margin-right: 524px;\n}\n.sort_table_wrapper .ant-table-wrapper::-webkit-scrollbar {\n display: none;\n}\n.sort_table_wrapper .ant-table-wrapper {\n margin-top: 10px;\n height: 364px;\n overflow: scroll;\n padding-bottom: 50px;\n}\n.sort_table_wrapper .ant-table-wrapper tr {\n height: 36px;\n}\n.sort_table_wrapper .ant-table-wrapper tr td {\n width: 24px !important;\n height: 36px !important;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:first-child {\n padding-left: 10px !important;\n padding-right: 0px !important;\n width: 115px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td img {\n cursor: pointer;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:not(:first-child) {\n padding-left: 0px !important;\n padding-right: 0px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:last-child {\n padding-left: 0px !important;\n padding-right: 3px !important;\n width: 34px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:last-child img {\n position: relative;\n top: 1px;\n}\n";
17085
17279
  styleInject(css_248z$e);
17086
17280
 
17087
- var _excluded$c = ["className", "style"];
17281
+ var _excluded$d = ["className", "style"];
17088
17282
  var DragHandle$2 = SortableHandle(function () {
17089
17283
  return /*#__PURE__*/React.createElement("img", {
17090
17284
  src: drag
@@ -17471,7 +17665,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
17471
17665
  _this.DraggableBodyRow = function (_ref2) {
17472
17666
  var className = _ref2.className,
17473
17667
  style = _ref2.style,
17474
- restProps = _objectWithoutProperties(_ref2, _excluded$c);
17668
+ restProps = _objectWithoutProperties(_ref2, _excluded$d);
17475
17669
  var sortDataSource = _this.state.sortDataSource;
17476
17670
  // function findIndex base on Table rowKey props and should always be a right array index
17477
17671
  var index = sortDataSource.findIndex(function (x) {
@@ -17776,7 +17970,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
17776
17970
  return SortableTable;
17777
17971
  }(React.Component);
17778
17972
 
17779
- var _excluded$d = ["className", "style"];
17973
+ var _excluded$e = ["className", "style"];
17780
17974
  var DragHandle$3 = SortableHandle(function () {
17781
17975
  return /*#__PURE__*/React.createElement("img", {
17782
17976
  src: drag
@@ -18006,7 +18200,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
18006
18200
  _this.DraggableBodyRow = function (_ref2) {
18007
18201
  var className = _ref2.className,
18008
18202
  style = _ref2.style,
18009
- restProps = _objectWithoutProperties(_ref2, _excluded$d);
18203
+ restProps = _objectWithoutProperties(_ref2, _excluded$e);
18010
18204
  var sortDataSource = _this.state.sortDataSource;
18011
18205
  var index = sortDataSource.findIndex(function (x) {
18012
18206
  return x.name === restProps['data-row-key'];
@@ -18249,12 +18443,12 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
18249
18443
  return SearchItemTable;
18250
18444
  }(React.Component);
18251
18445
 
18252
- var _excluded$e = ["onResize", "width"];
18446
+ var _excluded$f = ["onResize", "width"];
18253
18447
  var MemoQueryTable = /*#__PURE__*/React.memo(QueryTable);
18254
18448
  var ResizeableTitle$2 = function ResizeableTitle(props) {
18255
18449
  var onResize = props.onResize,
18256
18450
  width = props.width,
18257
- restProps = _objectWithoutProperties(props, _excluded$e);
18451
+ restProps = _objectWithoutProperties(props, _excluded$f);
18258
18452
  if (!width) {
18259
18453
  return /*#__PURE__*/React.createElement("th", _objectSpread2({}, restProps));
18260
18454
  }
@@ -20747,7 +20941,7 @@ var CustomerMenuHeader = function CustomerMenuHeader(_ref) {
20747
20941
  var css_248z$m = ".customer_menu_content {\n color: #b1bad4;\n background: #141620;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 18px;\n height: 40px;\n border-bottom: 1px solid #3d4047;\n}\n.customer_menu_content .ant-btn-link {\n color: #b1bad4 !important;\n font-size: 16px;\n height: 36px;\n}\n.menu_item {\n line-height: 30px;\n height: 30px;\n color: rgba(44, 47, 46);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.link_style:hover {\n background-color: #e4e7ed;\n cursor: pointer;\n color: #1890ff;\n}\n.sub_menu_content {\n box-shadow: 2px 0px 4px 0px rgba(185, 185, 185, 0.5);\n position: fixed;\n top: 50px;\n left: 140px;\n width: 200px;\n height: 100%;\n background-color: #fff;\n padding-top: 10px;\n z-index: 9999;\n}\n.tab_left_operate {\n display: flex;\n height: 28px;\n align-items: center;\n}\n.tab_left_operate > div {\n width: 28px;\n font-size: 12px;\n color: #2C2F2ECC;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n border-right: 1px solid #E4E4E4;\n background-color: #fff;\n cursor: pointer;\n}\n.tab_left_operate > div:last-child {\n box-shadow: 2px -2px 4px 0px rgba(185, 185, 185, 0.9);\n z-index: 99;\n}\n.tab_right_operate {\n height: 28px;\n width: 28px;\n font-size: 12px;\n color: #2C2F2ECC;\n display: flex;\n align-items: center;\n justify-content: center;\n border-right: 1px solid #E4E4E4;\n background-color: #fff;\n box-shadow: -2px -2px 4px 0px rgba(185, 185, 185, 0.9);\n z-index: 99;\n cursor: pointer;\n position: relative;\n}\n";
20748
20942
  styleInject(css_248z$m);
20749
20943
 
20750
- var _excluded$f = ["route"];
20944
+ var _excluded$g = ["route"];
20751
20945
  var TabPane = Tabs.TabPane;
20752
20946
  var UN_LISTTEN_DRP;
20753
20947
  var routerArray = [];
@@ -21391,6 +21585,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
21391
21585
  // }
21392
21586
  // });
21393
21587
  (_window$$wujie = window.$wujie) === null || _window$$wujie === void 0 ? void 0 : _window$$wujie.bus.$on("main-route-change", function (appname, info) {
21588
+ localStorage.setItem('isTabChange', true);
21394
21589
  if (appname === itemPath) {
21395
21590
  istParent = 1;
21396
21591
  if (info.type === 'main') {
@@ -21563,7 +21758,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
21563
21758
  }); // 添加数据大屏
21564
21759
  var _this$props3 = this.props,
21565
21760
  route = _this$props3.route,
21566
- restPrpos = _objectWithoutProperties(_this$props3, _excluded$f);
21761
+ restPrpos = _objectWithoutProperties(_this$props3, _excluded$g);
21567
21762
  var exist = route.routes.find(function (route) {
21568
21763
  return route.path === '/homePage/data-show';
21569
21764
  });
@@ -22412,10 +22607,10 @@ var index$6 = /*#__PURE__*/forwardRef(function (props, ref) {
22412
22607
  }))))));
22413
22608
  });
22414
22609
 
22415
- var _excluded$g = ["children"];
22610
+ var _excluded$h = ["children"];
22416
22611
  var Drawer = (function (props) {
22417
22612
  var children = props.children,
22418
- restProps = _objectWithoutProperties(props, _excluded$g);
22613
+ restProps = _objectWithoutProperties(props, _excluded$h);
22419
22614
  return /*#__PURE__*/React.createElement(Drawer$1, _objectSpread2({
22420
22615
  mask: true,
22421
22616
  closable: false,
@@ -29187,6 +29382,20 @@ var inputTypes = {
29187
29382
  310: {
29188
29383
  type: 'bs-deliveryModeSearchSelect',
29189
29384
  props: _objectSpread2({}, normalSingleSelectProps)
29385
+ },
29386
+ 340: {
29387
+ type: 'bs-RuleTemplateSearchSelect',
29388
+ props: _objectSpread2(_objectSpread2({}, normalMultipleSelectProps), {}, {
29389
+ requestConfig: {
29390
+ filter: 'qp-name,code-orGroup-in'
29391
+ }
29392
+ })
29393
+ },
29394
+ 350: {
29395
+ type: 'bs-marketAreaOrgSelect',
29396
+ props: _objectSpread2({
29397
+ treeCheckable: false
29398
+ }, normalSingleSelectProps)
29190
29399
  }
29191
29400
  },
29192
29401
  30: {
@@ -29323,6 +29532,20 @@ var inputTypes = {
29323
29532
  filter: 'qp-name,code-orGroup,in'
29324
29533
  }
29325
29534
  })
29535
+ },
29536
+ 340: {
29537
+ type: 'bs-RuleTemplateSearchSelect',
29538
+ props: _objectSpread2(_objectSpread2({}, normalMultipleSelectProps), {}, {
29539
+ requestConfig: {
29540
+ filter: 'qp-name,code-orGroup-in'
29541
+ }
29542
+ })
29543
+ },
29544
+ 350: {
29545
+ type: 'bs-marketAreaOrgSelect',
29546
+ props: _objectSpread2({
29547
+ treeCheckable: false
29548
+ }, normalSingleSelectProps)
29326
29549
  }
29327
29550
  }
29328
29551
  };
@@ -29351,7 +29574,9 @@ var choiceType = Object.freeze({
29351
29574
  270: '员工选择器',
29352
29575
  280: '库存组织选择器',
29353
29576
  310: '配送方式选择器',
29354
- 330: '变量'
29577
+ 330: '变量',
29578
+ 340: '规则场景选择器',
29579
+ 350: '营销区域选择器'
29355
29580
  });
29356
29581
  var inputType = {
29357
29582
  10: '输入',
@@ -30687,26 +30912,10 @@ function hanleCallbackValue(codeProps, value, customerFields) {
30687
30912
  render: function render(_ref) {
30688
30913
  var record = _ref.record;
30689
30914
  try {
30690
- var _record$extensionFiel = record.extensionFields,
30691
- extensionFields = _record$extensionFiel === void 0 ? {} : _record$extensionFiel;
30692
- var fieldName1 = item === null || item === void 0 ? void 0 : item.key.split(',')[1]; //兼容没有fieldName的情况
30693
- var fieldName2 = "".concat(fieldName1, "Name");
30694
- if (customerFields.length) {
30695
- var targetField = customerFields.find(function (k) {
30696
- return k.name.includes(fieldName1);
30697
- });
30698
- if (targetField) {
30699
- var _targetField$initialS = targetField.initialSource,
30700
- initialSource = _targetField$initialS === void 0 ? [] : _targetField$initialS;
30701
- if (initialSource.length) {
30702
- var _initialSource$find;
30703
- return ((_initialSource$find = initialSource.find(function (d) {
30704
- return d.value == extensionFields[fieldName1];
30705
- })) === null || _initialSource$find === void 0 ? void 0 : _initialSource$find.text) || extensionFields[fieldName1];
30706
- }
30707
- }
30708
- }
30709
- return extensionFields[fieldName2] || extensionFields[fieldName1] || '';
30915
+ var lastName1 = item === null || item === void 0 ? void 0 : item.key.split(',')[1]; //兼容没有fieldName的情况
30916
+ var lastName2 = "".concat(lastName1, "Name");
30917
+ var target = (record === null || record === void 0 ? void 0 : record.extensionFields) || {};
30918
+ return target[lastName2] || target[lastName1] || '';
30710
30919
  } catch (e) {
30711
30920
  console.log('e', e);
30712
30921
  }