@kmkf-fe-packages/basic-components 2.10.25 → 2.10.28
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 +690 -490
- package/dist/src/bs/component/model/components/SearchForm/GoodsSearchForm.d.ts +12 -0
- package/dist/src/bs/component/model/components/SearchForm/configs.d.ts +19 -0
- package/dist/src/bs/component/model/components/SearchForm/index.d.ts +4 -3
- package/dist/src/bs/component/model/components/SearchForm/loaders.d.ts +3 -0
- package/dist/src/bs/component/model/components/SearchForm/registry.d.ts +9 -0
- package/dist/src/index.d.ts +13 -0
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -6,7 +6,7 @@ import { CopyToClipboard } from 'react-copy-to-clipboard';
|
|
|
6
6
|
import { AddressData, BsAddressData, WdtAddressData, GyAddressData, JstAddressData, request as request$1, ExpressData, isNull, imgResize, uuid, normalizeYouzanStar, servers, columnsGoodsList, LogisticsAddressData, isJdLogisticsCompany, getJdCustomerCodeOptions, SendDataCenter, kmSkuTypeMap, hasAddNullComponent, SUBMIT_TIME_ID, UPGRADE_TIME_ID, FINAL_TIME_ID, CUSTOM_TIME_ID, useStatus, finalFormData, transformList, dataSourceTrans, DATA_SPLIT_COMPONENT_FIELDS_MAP, findLabelBySelectValue, BS_E3_BOOLEAN_STATUS_MAP, DxdSuppliersData, filterWdtOrders, WDT_ORDER_TYPE_MAP, tradeStatusMap, warehouseTypeMap, filterBsE3Orders, filterGyOrders, GY_DELIVERY_STATE_MAPPING, filterJstOrders, filterJyOrders, JY_ORDER_TYPE_MAP, JY_ORDER_STATUS_MAP, filterJkyOrders, JKY_ORDER_FROM_MAP, JKY_ORDER_TYPE_MAP, JKY_ORDER_STATUS_MAP, getJkyLogisticInfo, filterKmOrders, getSystemShowHead, getIsPlatformCodesIncludeOrderNos, BS_SYSTEM_ORDER_CONFIG, KM_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, JST_SYSTEM_ORDER_CONFIG, JY_SYSTEM_ORDER_CONFIG, JKY_SYSTEM_ORDER_CONFIG, WDT_RETURN_BILL_NO_CONFIG, PLATFORM_AFTER_SALES_ORDER_CONFIG, DXD_SYSTEM_ORDER_CONFIG, TTX_SYSTEM_ORDER_CONFIG, BS_E3_ORDER_STATUS_MAP, KM_ORDER_TYPE_MAP, KM_ORDER_STATUS, TTX_INTERNAL_ORDER_TYPE_MAP, TTX_STATUS_MAP, updateOrderSubFormGoodsHandle, updateWlnGoodsHandle, updateWdtGoodsHandle, updateBsE3GoodsHandle, updateGyGoodsHandle, updateJstGoodsHandle, updateKmGoodsHandle, updateJyGoodsHandle, updateJkyGoodsHandle, updateDxdGoodsHandle, updateTtxGoodsHandle, updateWdtAftersaleGoodsHandle, jstMergeIdenticalGoods, msgTypeCh, pushGyLog, skxSystemOrderBackValues, skxReturnSystemOrderBackValues, formatTrade, updateSkxGoodsHandle, formatReturnTrade, updateSkxReturnGoodsHandle } from '@kmkf-fe-packages/kmkf-utils';
|
|
7
7
|
import every from 'lodash/every';
|
|
8
8
|
import maxBy from 'lodash/maxBy';
|
|
9
|
-
import { debounce, isNaN as isNaN$1, isNumber as isNumber$1, uniqBy, cloneDeep, difference, differenceWith, isBoolean, isEqual, takeRight,
|
|
9
|
+
import { debounce, isNaN as isNaN$1, isNumber as isNumber$1, uniqBy, cloneDeep, difference, differenceWith, isBoolean, isEqual, takeRight, intersection, isEmpty } from 'lodash';
|
|
10
10
|
import { useUpdateEffect, useDebounceEffect, useAntdTable } from 'ahooks';
|
|
11
11
|
import zhCN from 'antd/lib/locale/zh_CN';
|
|
12
12
|
import Monitor from 'kmkf-monitor';
|
|
@@ -8816,12 +8816,14 @@ var processSceneStatus = function processSceneStatus(getValue) {
|
|
|
8816
8816
|
BS_E3_WAREHOUSING_STATUS: 'bsE3InStockStatusItemList',
|
|
8817
8817
|
MSG_STATUS: 'msgStatusValues',
|
|
8818
8818
|
WDT_WAREHOUSING_STATUS: 'wdtInStockStatusItemList',
|
|
8819
|
+
WDT_WAREHOUSING_STATUS_V2: 'wdtInStockStatusV2ItemList',
|
|
8819
8820
|
DXD_WAREHOUSING_STATUS: 'dxdInStockStatusItemList',
|
|
8820
8821
|
JKY_WAREHOUSING_STATUS: 'jkyInStockStatusItemList',
|
|
8821
8822
|
JST_WAREHOUSING_STATUS: 'jstInStockStatusItemList',
|
|
8822
8823
|
TTX_WAREHOUSING_STATUS: 'ttxInStockStatusItemList',
|
|
8823
8824
|
WLN_WAREHOUSING_STATUS: 'wlnInStockStatusItemList',
|
|
8824
|
-
KM_WAREHOUSING_STATUS: 'kmInStockStatusItemList'
|
|
8825
|
+
KM_WAREHOUSING_STATUS: 'kmInStockStatusItemList',
|
|
8826
|
+
JY_WAREHOUSING_STATUS: 'jyInStockStatusItemList'
|
|
8825
8827
|
};
|
|
8826
8828
|
return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(STATUS_LIST_MAP[nex.workOrderComponentType])), []));
|
|
8827
8829
|
};
|
|
@@ -9758,12 +9760,14 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
|
|
|
9758
9760
|
BS_E3_WAREHOUSING_STATUS: processSceneStatus,
|
|
9759
9761
|
MSG_STATUS: processSceneStatus,
|
|
9760
9762
|
WDT_WAREHOUSING_STATUS: processSceneStatus,
|
|
9763
|
+
WDT_WAREHOUSING_STATUS_V2: processSceneStatus,
|
|
9761
9764
|
DXD_WAREHOUSING_STATUS: processSceneStatus,
|
|
9762
9765
|
WLN_WAREHOUSING_STATUS: processSceneStatus,
|
|
9763
9766
|
JKY_WAREHOUSING_STATUS: processSceneStatus,
|
|
9764
9767
|
JST_WAREHOUSING_STATUS: processSceneStatus,
|
|
9765
9768
|
TTX_WAREHOUSING_STATUS: processSceneStatus,
|
|
9766
9769
|
KM_WAREHOUSING_STATUS: processSceneStatus,
|
|
9770
|
+
JY_WAREHOUSING_STATUS: processSceneStatus,
|
|
9767
9771
|
BS_LOGISTICS: processErpLogistics,
|
|
9768
9772
|
WLN_LOGISTICS: processErpLogistics,
|
|
9769
9773
|
WDT_LOGISTICS: processErpLogistics,
|
|
@@ -16438,191 +16442,6 @@ var useGetColumns = (function (type) {
|
|
|
16438
16442
|
return [columns, showColumnsDataIndexList, loading];
|
|
16439
16443
|
});
|
|
16440
16444
|
|
|
16441
|
-
var compareSymbolList = [{
|
|
16442
|
-
label: '模糊',
|
|
16443
|
-
value: 'like'
|
|
16444
|
-
}, {
|
|
16445
|
-
label: '精准',
|
|
16446
|
-
value: 'eq'
|
|
16447
|
-
}];
|
|
16448
|
-
var OptionalInput = function OptionalInput(props) {
|
|
16449
|
-
var value = props.value,
|
|
16450
|
-
onChange = props.onChange,
|
|
16451
|
-
_props$placeholder = props.placeholder,
|
|
16452
|
-
placeholder = _props$placeholder === void 0 ? '' : _props$placeholder,
|
|
16453
|
-
onPressEnter = props.onPressEnter,
|
|
16454
|
-
onBlur = props.onBlur,
|
|
16455
|
-
formItemProps = props.formItemProps;
|
|
16456
|
-
var handleSelectChange = function handleSelectChange(compareSymbol) {
|
|
16457
|
-
if (typeof onChange === 'function') {
|
|
16458
|
-
onChange({
|
|
16459
|
-
type: compareSymbol || 'like',
|
|
16460
|
-
inputValue: value === null || value === void 0 ? void 0 : value.inputValue
|
|
16461
|
-
});
|
|
16462
|
-
}
|
|
16463
|
-
};
|
|
16464
|
-
var handleInputChange = function handleInputChange(e) {
|
|
16465
|
-
if (typeof onChange === 'function') {
|
|
16466
|
-
onChange({
|
|
16467
|
-
type: (value === null || value === void 0 ? void 0 : value.type) || 'like',
|
|
16468
|
-
inputValue: e.target.value
|
|
16469
|
-
});
|
|
16470
|
-
}
|
|
16471
|
-
};
|
|
16472
|
-
var handleBlur = function handleBlur(event) {
|
|
16473
|
-
var nextTarget = event.relatedTarget;
|
|
16474
|
-
if (nextTarget && event.currentTarget.contains(nextTarget)) return;
|
|
16475
|
-
if (typeof onBlur === 'function') onBlur(event);
|
|
16476
|
-
};
|
|
16477
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
16478
|
-
style: {
|
|
16479
|
-
display: 'flex',
|
|
16480
|
-
alignItems: 'center'
|
|
16481
|
-
},
|
|
16482
|
-
onBlur: handleBlur
|
|
16483
|
-
}, /*#__PURE__*/React.createElement(Select, {
|
|
16484
|
-
className: "optional-input-select",
|
|
16485
|
-
style: {
|
|
16486
|
-
width: '70px'
|
|
16487
|
-
},
|
|
16488
|
-
options: compareSymbolList,
|
|
16489
|
-
onChange: handleSelectChange,
|
|
16490
|
-
value: (value === null || value === void 0 ? void 0 : value.type) || 'like'
|
|
16491
|
-
}), /*#__PURE__*/React.createElement(Input, _objectSpread2({
|
|
16492
|
-
style: {
|
|
16493
|
-
width: '150px'
|
|
16494
|
-
},
|
|
16495
|
-
allowClear: true,
|
|
16496
|
-
placeholder: placeholder,
|
|
16497
|
-
onChange: handleInputChange,
|
|
16498
|
-
onPressEnter: onPressEnter,
|
|
16499
|
-
value: value === null || value === void 0 ? void 0 : value.inputValue
|
|
16500
|
-
}, formItemProps)));
|
|
16501
|
-
};
|
|
16502
|
-
|
|
16503
|
-
var transformFormData = function transformFormData(formData) {
|
|
16504
|
-
var conditionList = [];
|
|
16505
|
-
for (var key in formData) {
|
|
16506
|
-
if (formData[key]) {
|
|
16507
|
-
var _formData$key, _formData$key2, _formData$key3, _formData$key4;
|
|
16508
|
-
var value = ((_formData$key = formData[key]) === null || _formData$key === void 0 ? void 0 : _formData$key.type) ? (_formData$key2 = formData[key]) === null || _formData$key2 === void 0 ? void 0 : _formData$key2.inputValue : formData[key];
|
|
16509
|
-
var compareSymbol = ((_formData$key3 = formData[key]) === null || _formData$key3 === void 0 ? void 0 : _formData$key3.type) ? (_formData$key4 = formData[key]) === null || _formData$key4 === void 0 ? void 0 : _formData$key4.type : Array.isArray(value) ? 'eq' : 'like';
|
|
16510
|
-
if (!isNull(value)) {
|
|
16511
|
-
conditionList.push({
|
|
16512
|
-
leftValue: key,
|
|
16513
|
-
compareSymbol: compareSymbol,
|
|
16514
|
-
rightValue: value
|
|
16515
|
-
});
|
|
16516
|
-
}
|
|
16517
|
-
}
|
|
16518
|
-
}
|
|
16519
|
-
return conditionList;
|
|
16520
|
-
};
|
|
16521
|
-
var shouldSubmitOnBlur = function shouldSubmitOnBlur(relatedTarget) {
|
|
16522
|
-
var _target$closest;
|
|
16523
|
-
var target = relatedTarget;
|
|
16524
|
-
return !(target === null || target === void 0 ? void 0 : (_target$closest = target.closest) === null || _target$closest === void 0 ? void 0 : _target$closest.call(target, '.search-form-actions'));
|
|
16525
|
-
};
|
|
16526
|
-
|
|
16527
|
-
function SearchForm(_ref) {
|
|
16528
|
-
var searchFormData = _ref.searchFormData,
|
|
16529
|
-
form = _ref.form,
|
|
16530
|
-
showColumnsDataIndexList = _ref.showColumnsDataIndexList,
|
|
16531
|
-
submit = _ref.submit,
|
|
16532
|
-
reset = _ref.reset;
|
|
16533
|
-
var _useState = useState({}),
|
|
16534
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
16535
|
-
searchData = _useState2[0],
|
|
16536
|
-
setSearchData = _useState2[1];
|
|
16537
|
-
var submitForm = /*#__PURE__*/function () {
|
|
16538
|
-
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(submitBtnClickFlag) {
|
|
16539
|
-
var values;
|
|
16540
|
-
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
16541
|
-
while (1) switch (_context.prev = _context.next) {
|
|
16542
|
-
case 0:
|
|
16543
|
-
_context.next = 2;
|
|
16544
|
-
return form.getFieldsValue();
|
|
16545
|
-
case 2:
|
|
16546
|
-
values = _context.sent;
|
|
16547
|
-
if (submitBtnClickFlag || !isEqual(values, searchData)) {
|
|
16548
|
-
setSearchData(values);
|
|
16549
|
-
submit();
|
|
16550
|
-
}
|
|
16551
|
-
case 4:
|
|
16552
|
-
case "end":
|
|
16553
|
-
return _context.stop();
|
|
16554
|
-
}
|
|
16555
|
-
}, _callee);
|
|
16556
|
-
}));
|
|
16557
|
-
return function submitForm(_x) {
|
|
16558
|
-
return _ref2.apply(this, arguments);
|
|
16559
|
-
};
|
|
16560
|
-
}();
|
|
16561
|
-
var submitFormOnBlur = function submitFormOnBlur(event) {
|
|
16562
|
-
if (!shouldSubmitOnBlur(event.relatedTarget)) return;
|
|
16563
|
-
submitForm();
|
|
16564
|
-
};
|
|
16565
|
-
return /*#__PURE__*/React.createElement(Form, {
|
|
16566
|
-
layout: "inline",
|
|
16567
|
-
form: form,
|
|
16568
|
-
className: "search-form"
|
|
16569
|
-
}, searchFormData.map(function (item) {
|
|
16570
|
-
var label = item.label,
|
|
16571
|
-
name = item.name,
|
|
16572
|
-
dataIndex = item.dataIndex,
|
|
16573
|
-
type = item.type,
|
|
16574
|
-
_item$formItemProps = item.formItemProps,
|
|
16575
|
-
formItemProps = _item$formItemProps === void 0 ? {} : _item$formItemProps;
|
|
16576
|
-
if (!showColumnsDataIndexList.includes(dataIndex || name)) return;
|
|
16577
|
-
return /*#__PURE__*/React.createElement(Form.Item, {
|
|
16578
|
-
name: name,
|
|
16579
|
-
style: {
|
|
16580
|
-
marginBottom: '12px'
|
|
16581
|
-
}
|
|
16582
|
-
}, type === 'optionalInput' ? /*#__PURE__*/React.createElement(OptionalInput, {
|
|
16583
|
-
onPressEnter: function onPressEnter() {
|
|
16584
|
-
return submitForm();
|
|
16585
|
-
},
|
|
16586
|
-
onBlur: submitFormOnBlur,
|
|
16587
|
-
placeholder: label,
|
|
16588
|
-
formItemProps: formItemProps
|
|
16589
|
-
}) : type === 'select' ? /*#__PURE__*/React.createElement(Select, _objectSpread2({
|
|
16590
|
-
placeholder: label,
|
|
16591
|
-
showSearch: true,
|
|
16592
|
-
allowClear: true,
|
|
16593
|
-
style: {
|
|
16594
|
-
width: 150
|
|
16595
|
-
},
|
|
16596
|
-
onBlur: submitFormOnBlur
|
|
16597
|
-
}, formItemProps)) : /*#__PURE__*/React.createElement(Input, _objectSpread2({
|
|
16598
|
-
placeholder: label,
|
|
16599
|
-
allowClear: true,
|
|
16600
|
-
style: {
|
|
16601
|
-
width: 150
|
|
16602
|
-
},
|
|
16603
|
-
onPressEnter: function onPressEnter() {
|
|
16604
|
-
return submitForm();
|
|
16605
|
-
},
|
|
16606
|
-
onBlur: submitFormOnBlur
|
|
16607
|
-
}, formItemProps)));
|
|
16608
|
-
}), /*#__PURE__*/React.createElement(Form.Item, {
|
|
16609
|
-
style: {
|
|
16610
|
-
marginBottom: '12px'
|
|
16611
|
-
},
|
|
16612
|
-
className: "search-form-actions"
|
|
16613
|
-
}, /*#__PURE__*/React.createElement(Button, {
|
|
16614
|
-
type: "primary",
|
|
16615
|
-
style: {
|
|
16616
|
-
marginRight: '8px'
|
|
16617
|
-
},
|
|
16618
|
-
onClick: function onClick() {
|
|
16619
|
-
return submitForm(true);
|
|
16620
|
-
}
|
|
16621
|
-
}, "\u67E5\u8BE2"), /*#__PURE__*/React.createElement(Button, {
|
|
16622
|
-
onClick: reset
|
|
16623
|
-
}, "\u91CD\u7F6E")));
|
|
16624
|
-
}
|
|
16625
|
-
|
|
16626
16445
|
var ACTION_CONFIG = {
|
|
16627
16446
|
JST_ERP: [{
|
|
16628
16447
|
sourceField: 'styleCode',
|
|
@@ -16819,108 +16638,207 @@ var GoodsReSync = function GoodsReSync(_ref) {
|
|
|
16819
16638
|
});
|
|
16820
16639
|
};
|
|
16821
16640
|
|
|
16822
|
-
var
|
|
16823
|
-
var
|
|
16824
|
-
|
|
16825
|
-
|
|
16826
|
-
|
|
16827
|
-
|
|
16828
|
-
|
|
16829
|
-
|
|
16830
|
-
|
|
16831
|
-
|
|
16832
|
-
|
|
16641
|
+
var transformFormData = function transformFormData(formData) {
|
|
16642
|
+
var conditionList = [];
|
|
16643
|
+
for (var key in formData) {
|
|
16644
|
+
if (formData[key]) {
|
|
16645
|
+
var _formData$key, _formData$key2, _formData$key3, _formData$key4;
|
|
16646
|
+
var value = ((_formData$key = formData[key]) === null || _formData$key === void 0 ? void 0 : _formData$key.type) ? (_formData$key2 = formData[key]) === null || _formData$key2 === void 0 ? void 0 : _formData$key2.inputValue : formData[key];
|
|
16647
|
+
var compareSymbol = ((_formData$key3 = formData[key]) === null || _formData$key3 === void 0 ? void 0 : _formData$key3.type) ? (_formData$key4 = formData[key]) === null || _formData$key4 === void 0 ? void 0 : _formData$key4.type : Array.isArray(value) ? 'eq' : 'like';
|
|
16648
|
+
var hasValue = Array.isArray(value) ? value.length > 0 : !isNull(value);
|
|
16649
|
+
if (hasValue) {
|
|
16650
|
+
conditionList.push({
|
|
16651
|
+
leftValue: key,
|
|
16652
|
+
compareSymbol: compareSymbol,
|
|
16653
|
+
rightValue: value
|
|
16654
|
+
});
|
|
16655
|
+
}
|
|
16833
16656
|
}
|
|
16834
|
-
}
|
|
16835
|
-
|
|
16836
|
-
|
|
16837
|
-
|
|
16838
|
-
|
|
16839
|
-
|
|
16840
|
-
|
|
16841
|
-
|
|
16842
|
-
|
|
16657
|
+
}
|
|
16658
|
+
return conditionList;
|
|
16659
|
+
};
|
|
16660
|
+
var shouldSubmitOnBlur = function shouldSubmitOnBlur(relatedTarget) {
|
|
16661
|
+
var _target$closest;
|
|
16662
|
+
var target = relatedTarget;
|
|
16663
|
+
return !(target === null || target === void 0 ? void 0 : (_target$closest = target.closest) === null || _target$closest === void 0 ? void 0 : _target$closest.call(target, '.search-form-actions'));
|
|
16664
|
+
};
|
|
16665
|
+
|
|
16666
|
+
var compareSymbolList = [{
|
|
16667
|
+
label: '模糊',
|
|
16668
|
+
value: 'like'
|
|
16669
|
+
}, {
|
|
16670
|
+
label: '精准',
|
|
16671
|
+
value: 'eq'
|
|
16672
|
+
}];
|
|
16673
|
+
var OptionalInput = function OptionalInput(props) {
|
|
16674
|
+
var value = props.value,
|
|
16675
|
+
onChange = props.onChange,
|
|
16676
|
+
_props$placeholder = props.placeholder,
|
|
16677
|
+
placeholder = _props$placeholder === void 0 ? '' : _props$placeholder,
|
|
16678
|
+
onPressEnter = props.onPressEnter,
|
|
16679
|
+
onBlur = props.onBlur,
|
|
16680
|
+
formItemProps = props.formItemProps,
|
|
16681
|
+
_props$defaultCompare = props.defaultCompareSymbol,
|
|
16682
|
+
defaultCompareSymbol = _props$defaultCompare === void 0 ? 'like' : _props$defaultCompare;
|
|
16683
|
+
var handleSelectChange = function handleSelectChange(compareSymbol) {
|
|
16684
|
+
if (typeof onChange === 'function') {
|
|
16685
|
+
onChange({
|
|
16686
|
+
type: compareSymbol || defaultCompareSymbol,
|
|
16687
|
+
inputValue: value === null || value === void 0 ? void 0 : value.inputValue
|
|
16843
16688
|
});
|
|
16844
|
-
}
|
|
16845
|
-
|
|
16846
|
-
|
|
16847
|
-
|
|
16848
|
-
|
|
16849
|
-
|
|
16689
|
+
}
|
|
16690
|
+
};
|
|
16691
|
+
var handleInputChange = function handleInputChange(e) {
|
|
16692
|
+
if (typeof onChange === 'function') {
|
|
16693
|
+
onChange({
|
|
16694
|
+
type: (value === null || value === void 0 ? void 0 : value.type) || defaultCompareSymbol,
|
|
16695
|
+
inputValue: e.target.value
|
|
16696
|
+
});
|
|
16697
|
+
}
|
|
16698
|
+
};
|
|
16699
|
+
var handleBlur = function handleBlur(event) {
|
|
16700
|
+
var nextTarget = event.relatedTarget;
|
|
16701
|
+
if (nextTarget && event.currentTarget.contains(nextTarget)) return;
|
|
16702
|
+
if (typeof onBlur === 'function') onBlur(event);
|
|
16703
|
+
};
|
|
16704
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
16705
|
+
style: {
|
|
16706
|
+
display: 'flex',
|
|
16707
|
+
alignItems: 'center'
|
|
16708
|
+
},
|
|
16709
|
+
onBlur: handleBlur
|
|
16710
|
+
}, /*#__PURE__*/React.createElement(Select, {
|
|
16711
|
+
className: "optional-input-select",
|
|
16712
|
+
style: {
|
|
16713
|
+
width: '70px'
|
|
16714
|
+
},
|
|
16715
|
+
options: compareSymbolList,
|
|
16716
|
+
onChange: handleSelectChange,
|
|
16717
|
+
value: (value === null || value === void 0 ? void 0 : value.type) || defaultCompareSymbol
|
|
16718
|
+
}), /*#__PURE__*/React.createElement(Input, _objectSpread2({
|
|
16719
|
+
style: {
|
|
16720
|
+
width: '150px'
|
|
16721
|
+
},
|
|
16722
|
+
allowClear: true,
|
|
16723
|
+
placeholder: placeholder,
|
|
16724
|
+
onChange: handleInputChange,
|
|
16725
|
+
onPressEnter: onPressEnter,
|
|
16726
|
+
value: value === null || value === void 0 ? void 0 : value.inputValue
|
|
16727
|
+
}, formItemProps)));
|
|
16850
16728
|
};
|
|
16851
|
-
|
|
16852
|
-
|
|
16729
|
+
|
|
16730
|
+
function SearchForm(_ref) {
|
|
16731
|
+
var searchFormData = _ref.searchFormData,
|
|
16732
|
+
form = _ref.form,
|
|
16733
|
+
showColumnsDataIndexList = _ref.showColumnsDataIndexList,
|
|
16734
|
+
submit = _ref.submit,
|
|
16735
|
+
reset = _ref.reset,
|
|
16736
|
+
_ref$optionalInputDef = _ref.optionalInputDefaultCompareSymbol,
|
|
16737
|
+
optionalInputDefaultCompareSymbol = _ref$optionalInputDef === void 0 ? 'like' : _ref$optionalInputDef;
|
|
16738
|
+
var _useState = useState({}),
|
|
16853
16739
|
_useState2 = _slicedToArray(_useState, 2),
|
|
16854
|
-
|
|
16855
|
-
|
|
16856
|
-
var
|
|
16857
|
-
|
|
16858
|
-
selectIds = _useState4[0],
|
|
16859
|
-
setSelectIds = _useState4[1];
|
|
16860
|
-
var _useState5 = useState([]),
|
|
16861
|
-
_useState6 = _slicedToArray(_useState5, 2),
|
|
16862
|
-
brandList = _useState6[0],
|
|
16863
|
-
setBrandList = _useState6[1];
|
|
16864
|
-
var _useGetColumns = useGetColumns('wdt'),
|
|
16865
|
-
_useGetColumns2 = _slicedToArray(_useGetColumns, 3),
|
|
16866
|
-
columns = _useGetColumns2[0],
|
|
16867
|
-
showColumnsDataIndexList = _useGetColumns2[1],
|
|
16868
|
-
loading = _useGetColumns2[2];
|
|
16869
|
-
useImperativeHandle(ref, function () {
|
|
16870
|
-
return {
|
|
16871
|
-
getSelectGoodList: function getSelectGoodList() {
|
|
16872
|
-
return selectList;
|
|
16873
|
-
}
|
|
16874
|
-
};
|
|
16740
|
+
searchData = _useState2[0],
|
|
16741
|
+
setSearchData = _useState2[1];
|
|
16742
|
+
var visibleFieldNames = (showColumnsDataIndexList === null || showColumnsDataIndexList === void 0 ? void 0 : showColumnsDataIndexList.length) ? showColumnsDataIndexList : searchFormData.map(function (item) {
|
|
16743
|
+
return item.dataIndex || item.name;
|
|
16875
16744
|
});
|
|
16876
|
-
var
|
|
16877
|
-
|
|
16878
|
-
|
|
16879
|
-
|
|
16880
|
-
|
|
16881
|
-
|
|
16882
|
-
|
|
16883
|
-
|
|
16884
|
-
|
|
16885
|
-
|
|
16886
|
-
|
|
16887
|
-
|
|
16888
|
-
|
|
16889
|
-
|
|
16890
|
-
|
|
16891
|
-
|
|
16892
|
-
|
|
16893
|
-
var pageNo = 0;
|
|
16894
|
-
var pageSize = 100;
|
|
16895
|
-
var getMore = function getMore() {
|
|
16896
|
-
extendRequest('/qy/gdfw/wdt/erp/goodBrand/list', {
|
|
16897
|
-
method: 'post',
|
|
16898
|
-
data: {
|
|
16899
|
-
pageSize: pageSize,
|
|
16900
|
-
pageNo: pageNo
|
|
16901
|
-
}
|
|
16902
|
-
}).then(function (res) {
|
|
16903
|
-
var _res$data2;
|
|
16904
|
-
if (res.success && (res === null || res === void 0 ? void 0 : (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.detailList)) {
|
|
16905
|
-
var _res$data3, _res$data4;
|
|
16906
|
-
list.push.apply(list, _toConsumableArray((res === null || res === void 0 ? void 0 : (_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.detailList) || []));
|
|
16907
|
-
if ((res === null || res === void 0 ? void 0 : (_res$data4 = res.data) === null || _res$data4 === void 0 ? void 0 : _res$data4.detailList.length) === pageSize) {
|
|
16908
|
-
pageNo += 1;
|
|
16909
|
-
getMore();
|
|
16910
|
-
} else {
|
|
16911
|
-
setBrandList(list);
|
|
16912
|
-
}
|
|
16913
|
-
} else {
|
|
16914
|
-
reject$1(res);
|
|
16745
|
+
var submitForm = /*#__PURE__*/function () {
|
|
16746
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(submitBtnClickFlag) {
|
|
16747
|
+
var values;
|
|
16748
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
16749
|
+
while (1) switch (_context.prev = _context.next) {
|
|
16750
|
+
case 0:
|
|
16751
|
+
_context.next = 2;
|
|
16752
|
+
return form.getFieldsValue();
|
|
16753
|
+
case 2:
|
|
16754
|
+
values = _context.sent;
|
|
16755
|
+
if (submitBtnClickFlag || !isEqual(values, searchData)) {
|
|
16756
|
+
setSearchData(values);
|
|
16757
|
+
submit();
|
|
16758
|
+
}
|
|
16759
|
+
case 4:
|
|
16760
|
+
case "end":
|
|
16761
|
+
return _context.stop();
|
|
16915
16762
|
}
|
|
16916
|
-
}
|
|
16763
|
+
}, _callee);
|
|
16764
|
+
}));
|
|
16765
|
+
return function submitForm(_x) {
|
|
16766
|
+
return _ref2.apply(this, arguments);
|
|
16917
16767
|
};
|
|
16918
|
-
|
|
16768
|
+
}();
|
|
16769
|
+
var submitFormOnBlur = function submitFormOnBlur(event) {
|
|
16770
|
+
if (!shouldSubmitOnBlur(event.relatedTarget)) return;
|
|
16771
|
+
submitForm();
|
|
16919
16772
|
};
|
|
16920
|
-
React.
|
|
16921
|
-
|
|
16922
|
-
|
|
16923
|
-
|
|
16773
|
+
return /*#__PURE__*/React.createElement(Form, {
|
|
16774
|
+
layout: "inline",
|
|
16775
|
+
form: form,
|
|
16776
|
+
className: "search-form"
|
|
16777
|
+
}, searchFormData.map(function (item) {
|
|
16778
|
+
var label = item.label,
|
|
16779
|
+
name = item.name,
|
|
16780
|
+
dataIndex = item.dataIndex,
|
|
16781
|
+
type = item.type,
|
|
16782
|
+
_item$formItemProps = item.formItemProps,
|
|
16783
|
+
formItemProps = _item$formItemProps === void 0 ? {} : _item$formItemProps;
|
|
16784
|
+
if (!visibleFieldNames.includes(dataIndex || name)) return;
|
|
16785
|
+
return /*#__PURE__*/React.createElement(Form.Item, {
|
|
16786
|
+
name: name,
|
|
16787
|
+
style: {
|
|
16788
|
+
marginBottom: '12px'
|
|
16789
|
+
}
|
|
16790
|
+
}, type === 'optionalInput' ? /*#__PURE__*/React.createElement(OptionalInput, {
|
|
16791
|
+
onPressEnter: function onPressEnter() {
|
|
16792
|
+
return submitForm();
|
|
16793
|
+
},
|
|
16794
|
+
onBlur: submitFormOnBlur,
|
|
16795
|
+
placeholder: label,
|
|
16796
|
+
formItemProps: formItemProps,
|
|
16797
|
+
defaultCompareSymbol: optionalInputDefaultCompareSymbol
|
|
16798
|
+
}) : type === 'select' ? /*#__PURE__*/React.createElement(Select, _objectSpread2({
|
|
16799
|
+
placeholder: label,
|
|
16800
|
+
showSearch: true,
|
|
16801
|
+
allowClear: true,
|
|
16802
|
+
style: {
|
|
16803
|
+
width: 150
|
|
16804
|
+
},
|
|
16805
|
+
onBlur: submitFormOnBlur
|
|
16806
|
+
}, formItemProps)) : /*#__PURE__*/React.createElement(Input, _objectSpread2({
|
|
16807
|
+
placeholder: label,
|
|
16808
|
+
allowClear: true,
|
|
16809
|
+
style: {
|
|
16810
|
+
width: 150
|
|
16811
|
+
},
|
|
16812
|
+
onPressEnter: function onPressEnter() {
|
|
16813
|
+
return submitForm();
|
|
16814
|
+
},
|
|
16815
|
+
onBlur: submitFormOnBlur
|
|
16816
|
+
}, formItemProps)));
|
|
16817
|
+
}), /*#__PURE__*/React.createElement(Form.Item, {
|
|
16818
|
+
style: {
|
|
16819
|
+
marginBottom: '12px'
|
|
16820
|
+
},
|
|
16821
|
+
className: "search-form-actions"
|
|
16822
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
16823
|
+
type: "primary",
|
|
16824
|
+
style: {
|
|
16825
|
+
marginRight: '8px'
|
|
16826
|
+
},
|
|
16827
|
+
onClick: function onClick() {
|
|
16828
|
+
return submitForm(true);
|
|
16829
|
+
}
|
|
16830
|
+
}, "\u67E5\u8BE2"), /*#__PURE__*/React.createElement(Button, {
|
|
16831
|
+
onClick: reset
|
|
16832
|
+
}, "\u91CD\u7F6E")));
|
|
16833
|
+
}
|
|
16834
|
+
|
|
16835
|
+
/**
|
|
16836
|
+
* Builds the search fields used by the WDT goods selector.
|
|
16837
|
+
* Brand options are supplied by the caller because they are loaded at runtime.
|
|
16838
|
+
*/
|
|
16839
|
+
var createWdtSearchFormData = function createWdtSearchFormData() {
|
|
16840
|
+
var brandOptions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
16841
|
+
return [{
|
|
16924
16842
|
label: 'SKU名称',
|
|
16925
16843
|
name: 'skuName',
|
|
16926
16844
|
dataIndex: 'specName'
|
|
@@ -16946,16 +16864,7 @@ var GoodList = function GoodList(props, ref) {
|
|
|
16946
16864
|
filterOption: function filterOption(input, option) {
|
|
16947
16865
|
return option.label.includes(input);
|
|
16948
16866
|
},
|
|
16949
|
-
options:
|
|
16950
|
-
return !item.isDisabled;
|
|
16951
|
-
}).map(function (_ref2) {
|
|
16952
|
-
var value = _ref2.brandId,
|
|
16953
|
-
label = _ref2.brandName;
|
|
16954
|
-
return {
|
|
16955
|
-
value: value,
|
|
16956
|
-
label: label
|
|
16957
|
-
};
|
|
16958
|
-
})
|
|
16867
|
+
options: brandOptions
|
|
16959
16868
|
}
|
|
16960
16869
|
}, {
|
|
16961
16870
|
label: '是否组合装',
|
|
@@ -16975,7 +16884,448 @@ var GoodList = function GoodList(props, ref) {
|
|
|
16975
16884
|
value: ''
|
|
16976
16885
|
}]
|
|
16977
16886
|
}
|
|
16887
|
+
}, {
|
|
16888
|
+
label: '工单赠品标记',
|
|
16889
|
+
name: 'isSelfGift',
|
|
16890
|
+
type: 'select',
|
|
16891
|
+
formItemProps: {
|
|
16892
|
+
mode: 'multiple',
|
|
16893
|
+
options: [{
|
|
16894
|
+
label: '赠品',
|
|
16895
|
+
value: 1
|
|
16896
|
+
}, {
|
|
16897
|
+
label: '未标记',
|
|
16898
|
+
value: 0
|
|
16899
|
+
}]
|
|
16900
|
+
}
|
|
16901
|
+
}];
|
|
16902
|
+
};
|
|
16903
|
+
var createBsE3SearchFormData = function createBsE3SearchFormData() {
|
|
16904
|
+
return [{
|
|
16905
|
+
label: '商品货号',
|
|
16906
|
+
name: 'goodNo',
|
|
16907
|
+
type: 'optionalInput'
|
|
16908
|
+
}, {
|
|
16909
|
+
label: '商品名称',
|
|
16910
|
+
name: 'goodName'
|
|
16911
|
+
}, {
|
|
16912
|
+
label: 'SKU',
|
|
16913
|
+
name: 'skuCode',
|
|
16914
|
+
dataIndex: 'specNo',
|
|
16915
|
+
type: 'optionalInput'
|
|
16916
|
+
}, {
|
|
16917
|
+
label: 'SKU ID',
|
|
16918
|
+
name: 'skuId',
|
|
16919
|
+
dataIndex: 'specId',
|
|
16920
|
+
type: 'optionalInput'
|
|
16921
|
+
}];
|
|
16922
|
+
};
|
|
16923
|
+
var createGySearchFormData = function createGySearchFormData() {
|
|
16924
|
+
return [{
|
|
16925
|
+
label: '商品简称',
|
|
16926
|
+
name: 'goodShortName'
|
|
16927
|
+
}, {
|
|
16928
|
+
label: '商品sku名称',
|
|
16929
|
+
name: 'skuName',
|
|
16930
|
+
dataIndex: 'specName'
|
|
16931
|
+
}, {
|
|
16932
|
+
label: '商品sku编码',
|
|
16933
|
+
name: 'skuCode',
|
|
16934
|
+
dataIndex: 'specNo',
|
|
16935
|
+
type: 'optionalInput'
|
|
16936
|
+
}, {
|
|
16937
|
+
label: '商品名称',
|
|
16938
|
+
name: 'goodName'
|
|
16939
|
+
}, {
|
|
16940
|
+
label: '商品编码',
|
|
16941
|
+
name: 'goodNo',
|
|
16942
|
+
type: 'optionalInput'
|
|
16943
|
+
}];
|
|
16944
|
+
};
|
|
16945
|
+
var createJstSearchFormData = function createJstSearchFormData() {
|
|
16946
|
+
return [{
|
|
16947
|
+
label: '商品名称',
|
|
16948
|
+
name: 'goodName'
|
|
16949
|
+
}, {
|
|
16950
|
+
label: '商品编码',
|
|
16951
|
+
name: 'goodNo',
|
|
16952
|
+
type: 'optionalInput'
|
|
16953
|
+
}, {
|
|
16954
|
+
label: '款式编码',
|
|
16955
|
+
name: 'styleCode',
|
|
16956
|
+
type: 'optionalInput'
|
|
16957
|
+
}, {
|
|
16958
|
+
label: '规格值',
|
|
16959
|
+
name: 'propertiesValue',
|
|
16960
|
+
type: 'optionalInput'
|
|
16961
|
+
}, {
|
|
16962
|
+
label: '商品类型',
|
|
16963
|
+
name: 'skuType',
|
|
16964
|
+
type: 'select',
|
|
16965
|
+
formItemProps: {
|
|
16966
|
+
options: [{
|
|
16967
|
+
label: '普通商品',
|
|
16968
|
+
value: 'normal'
|
|
16969
|
+
}, {
|
|
16970
|
+
label: '组合装商品',
|
|
16971
|
+
value: 'combine'
|
|
16972
|
+
}]
|
|
16973
|
+
}
|
|
16974
|
+
}];
|
|
16975
|
+
};
|
|
16976
|
+
var createKmSearchFormData = function createKmSearchFormData() {
|
|
16977
|
+
return [{
|
|
16978
|
+
label: '商品名称',
|
|
16979
|
+
name: 'goodName'
|
|
16980
|
+
}, {
|
|
16981
|
+
label: '商品编码',
|
|
16982
|
+
name: 'goodNo',
|
|
16983
|
+
type: 'optionalInput'
|
|
16984
|
+
}, {
|
|
16985
|
+
label: 'SKU名称',
|
|
16986
|
+
name: 'skuName',
|
|
16987
|
+
dataIndex: 'specName'
|
|
16988
|
+
}, {
|
|
16989
|
+
label: 'SKU编码',
|
|
16990
|
+
name: 'skuCode',
|
|
16991
|
+
dataIndex: 'specNo',
|
|
16992
|
+
type: 'optionalInput'
|
|
16993
|
+
}];
|
|
16994
|
+
};
|
|
16995
|
+
var createJySearchFormData = function createJySearchFormData() {
|
|
16996
|
+
return [{
|
|
16997
|
+
label: '规格名称',
|
|
16998
|
+
name: 'skuName',
|
|
16999
|
+
dataIndex: 'specName'
|
|
17000
|
+
}, {
|
|
17001
|
+
label: '规格编码',
|
|
17002
|
+
name: 'skuCode',
|
|
17003
|
+
dataIndex: 'specNo',
|
|
17004
|
+
type: 'optionalInput'
|
|
17005
|
+
}, {
|
|
17006
|
+
label: '商品名称',
|
|
17007
|
+
name: 'goodName'
|
|
17008
|
+
}, {
|
|
17009
|
+
label: '商品编码',
|
|
17010
|
+
name: 'goodNo',
|
|
17011
|
+
type: 'optionalInput'
|
|
17012
|
+
}, {
|
|
17013
|
+
label: '巨益赠品标记',
|
|
17014
|
+
name: 'isGift',
|
|
17015
|
+
type: 'select',
|
|
17016
|
+
formItemProps: {
|
|
17017
|
+
mode: 'multiple',
|
|
17018
|
+
options: [{
|
|
17019
|
+
label: '是',
|
|
17020
|
+
value: 1
|
|
17021
|
+
}, {
|
|
17022
|
+
label: '否',
|
|
17023
|
+
value: 0
|
|
17024
|
+
}]
|
|
17025
|
+
}
|
|
17026
|
+
}, {
|
|
17027
|
+
label: '工单赠品标记',
|
|
17028
|
+
name: 'isSelfGift',
|
|
17029
|
+
type: 'select',
|
|
17030
|
+
formItemProps: {
|
|
17031
|
+
mode: 'multiple',
|
|
17032
|
+
options: [{
|
|
17033
|
+
label: '赠品',
|
|
17034
|
+
value: 1
|
|
17035
|
+
}, {
|
|
17036
|
+
label: '未标记',
|
|
17037
|
+
value: 0
|
|
17038
|
+
}]
|
|
17039
|
+
}
|
|
17040
|
+
}];
|
|
17041
|
+
};
|
|
17042
|
+
var createWlnSearchFormData = function createWlnSearchFormData() {
|
|
17043
|
+
return [{
|
|
17044
|
+
label: '规格值',
|
|
17045
|
+
name: 'propertiesValue'
|
|
17046
|
+
}, {
|
|
17047
|
+
label: 'SKU编码',
|
|
17048
|
+
name: 'specNo',
|
|
17049
|
+
type: 'optionalInput'
|
|
17050
|
+
}, {
|
|
17051
|
+
label: '商品名称',
|
|
17052
|
+
name: 'goodName'
|
|
17053
|
+
}, {
|
|
17054
|
+
label: '商品编码',
|
|
17055
|
+
name: 'goodNo',
|
|
17056
|
+
type: 'optionalInput'
|
|
17057
|
+
}, {
|
|
17058
|
+
label: '是否组合装',
|
|
17059
|
+
name: 'skuType',
|
|
17060
|
+
type: 'select',
|
|
17061
|
+
formItemProps: {
|
|
17062
|
+
mode: 'multiple',
|
|
17063
|
+
filterOption: function filterOption(input, option) {
|
|
17064
|
+
return option.label.includes(input);
|
|
17065
|
+
},
|
|
17066
|
+
options: [{
|
|
17067
|
+
label: '普通商品',
|
|
17068
|
+
value: 'normal'
|
|
17069
|
+
}, {
|
|
17070
|
+
label: '组合装商品',
|
|
17071
|
+
value: 'combine'
|
|
17072
|
+
}]
|
|
17073
|
+
}
|
|
17074
|
+
}];
|
|
17075
|
+
};
|
|
17076
|
+
var createJkySearchFormData = function createJkySearchFormData() {
|
|
17077
|
+
return [{
|
|
17078
|
+
label: '规格名称',
|
|
17079
|
+
name: 'skuName',
|
|
17080
|
+
dataIndex: 'specName'
|
|
17081
|
+
}, {
|
|
17082
|
+
label: '规格编码',
|
|
17083
|
+
name: 'skuCode',
|
|
17084
|
+
dataIndex: 'specNo',
|
|
17085
|
+
type: 'optionalInput'
|
|
17086
|
+
}, {
|
|
17087
|
+
label: '货品名称',
|
|
17088
|
+
name: 'goodName'
|
|
17089
|
+
}, {
|
|
17090
|
+
label: '货品编码',
|
|
17091
|
+
name: 'goodNo',
|
|
17092
|
+
type: 'optionalInput'
|
|
16978
17093
|
}];
|
|
17094
|
+
};
|
|
17095
|
+
|
|
17096
|
+
var WDT_BRAND_PAGE_SIZE = 100;
|
|
17097
|
+
var loadWdtBrandOptions = /*#__PURE__*/function () {
|
|
17098
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
17099
|
+
var options, pageNo, hasNextPage, _response$data, response, detailList;
|
|
17100
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
17101
|
+
while (1) switch (_context.prev = _context.next) {
|
|
17102
|
+
case 0:
|
|
17103
|
+
options = [];
|
|
17104
|
+
pageNo = 0;
|
|
17105
|
+
hasNextPage = true;
|
|
17106
|
+
case 3:
|
|
17107
|
+
if (!hasNextPage) {
|
|
17108
|
+
_context.next = 15;
|
|
17109
|
+
break;
|
|
17110
|
+
}
|
|
17111
|
+
_context.next = 6;
|
|
17112
|
+
return extendRequest('/qy/gdfw/wdt/erp/goodBrand/list', {
|
|
17113
|
+
method: 'post',
|
|
17114
|
+
data: {
|
|
17115
|
+
pageSize: WDT_BRAND_PAGE_SIZE,
|
|
17116
|
+
pageNo: pageNo
|
|
17117
|
+
}
|
|
17118
|
+
});
|
|
17119
|
+
case 6:
|
|
17120
|
+
response = _context.sent;
|
|
17121
|
+
if (!((response === null || response === void 0 ? void 0 : response.success) !== true)) {
|
|
17122
|
+
_context.next = 9;
|
|
17123
|
+
break;
|
|
17124
|
+
}
|
|
17125
|
+
throw new Error('Failed to load WDT brand options');
|
|
17126
|
+
case 9:
|
|
17127
|
+
detailList = (response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.detailList) || [];
|
|
17128
|
+
options.push.apply(options, _toConsumableArray(detailList.filter(function (item) {
|
|
17129
|
+
return !item.isDisabled;
|
|
17130
|
+
}).map(function (item) {
|
|
17131
|
+
return {
|
|
17132
|
+
value: item.brandId,
|
|
17133
|
+
label: item.brandName
|
|
17134
|
+
};
|
|
17135
|
+
})));
|
|
17136
|
+
hasNextPage = detailList.length >= WDT_BRAND_PAGE_SIZE;
|
|
17137
|
+
pageNo += 1;
|
|
17138
|
+
_context.next = 3;
|
|
17139
|
+
break;
|
|
17140
|
+
case 15:
|
|
17141
|
+
return _context.abrupt("return", {
|
|
17142
|
+
brandIds: options
|
|
17143
|
+
});
|
|
17144
|
+
case 16:
|
|
17145
|
+
case "end":
|
|
17146
|
+
return _context.stop();
|
|
17147
|
+
}
|
|
17148
|
+
}, _callee);
|
|
17149
|
+
}));
|
|
17150
|
+
return function loadWdtBrandOptions() {
|
|
17151
|
+
return _ref.apply(this, arguments);
|
|
17152
|
+
};
|
|
17153
|
+
}();
|
|
17154
|
+
|
|
17155
|
+
var GOODS_SEARCH_FORM_CONFIG = {
|
|
17156
|
+
wdt: {
|
|
17157
|
+
createSearchFormData: function createSearchFormData(options) {
|
|
17158
|
+
return createWdtSearchFormData(options.brandIds || []);
|
|
17159
|
+
},
|
|
17160
|
+
loadOptions: [loadWdtBrandOptions]
|
|
17161
|
+
},
|
|
17162
|
+
bse3: {
|
|
17163
|
+
createSearchFormData: function createSearchFormData() {
|
|
17164
|
+
return createBsE3SearchFormData();
|
|
17165
|
+
},
|
|
17166
|
+
loadOptions: []
|
|
17167
|
+
},
|
|
17168
|
+
gy: {
|
|
17169
|
+
createSearchFormData: function createSearchFormData() {
|
|
17170
|
+
return createGySearchFormData();
|
|
17171
|
+
},
|
|
17172
|
+
loadOptions: []
|
|
17173
|
+
},
|
|
17174
|
+
jst: {
|
|
17175
|
+
createSearchFormData: function createSearchFormData() {
|
|
17176
|
+
return createJstSearchFormData();
|
|
17177
|
+
},
|
|
17178
|
+
loadOptions: []
|
|
17179
|
+
},
|
|
17180
|
+
km: {
|
|
17181
|
+
createSearchFormData: function createSearchFormData() {
|
|
17182
|
+
return createKmSearchFormData();
|
|
17183
|
+
},
|
|
17184
|
+
loadOptions: []
|
|
17185
|
+
},
|
|
17186
|
+
jy: {
|
|
17187
|
+
createSearchFormData: function createSearchFormData() {
|
|
17188
|
+
return createJySearchFormData();
|
|
17189
|
+
},
|
|
17190
|
+
loadOptions: []
|
|
17191
|
+
},
|
|
17192
|
+
wln: {
|
|
17193
|
+
createSearchFormData: function createSearchFormData() {
|
|
17194
|
+
return createWlnSearchFormData();
|
|
17195
|
+
},
|
|
17196
|
+
loadOptions: []
|
|
17197
|
+
},
|
|
17198
|
+
jky: {
|
|
17199
|
+
createSearchFormData: function createSearchFormData() {
|
|
17200
|
+
return createJkySearchFormData();
|
|
17201
|
+
},
|
|
17202
|
+
loadOptions: []
|
|
17203
|
+
}
|
|
17204
|
+
};
|
|
17205
|
+
|
|
17206
|
+
var _excluded$e = ["type", "searchFormData", "loadOptions"];
|
|
17207
|
+
var EMPTY_LOADERS = [];
|
|
17208
|
+
var mergeOptionMaps = function mergeOptionMaps(optionMaps) {
|
|
17209
|
+
return optionMaps.reduce(function (merged, optionMap) {
|
|
17210
|
+
return _objectSpread2(_objectSpread2({}, merged), optionMap);
|
|
17211
|
+
}, {});
|
|
17212
|
+
};
|
|
17213
|
+
var GoodsSearchForm = function GoodsSearchForm(_ref) {
|
|
17214
|
+
var type = _ref.type,
|
|
17215
|
+
customSearchFormData = _ref.searchFormData,
|
|
17216
|
+
_ref$loadOptions = _ref.loadOptions,
|
|
17217
|
+
loadOptions = _ref$loadOptions === void 0 ? EMPTY_LOADERS : _ref$loadOptions,
|
|
17218
|
+
searchFormProps = _objectWithoutProperties(_ref, _excluded$e);
|
|
17219
|
+
var config = GOODS_SEARCH_FORM_CONFIG[type];
|
|
17220
|
+
var _useState = useState({}),
|
|
17221
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
17222
|
+
optionMap = _useState2[0],
|
|
17223
|
+
setOptionMap = _useState2[1];
|
|
17224
|
+
var loaders = useMemo(function () {
|
|
17225
|
+
return loadOptions === EMPTY_LOADERS ? config.loadOptions : loadOptions;
|
|
17226
|
+
}, [config, loadOptions]);
|
|
17227
|
+
useEffect(function () {
|
|
17228
|
+
var disposed = false;
|
|
17229
|
+
if (!loaders.length) return undefined;
|
|
17230
|
+
setOptionMap({});
|
|
17231
|
+
Promise.allSettled(loaders.map(function (loader) {
|
|
17232
|
+
return loader();
|
|
17233
|
+
})).then(function (results) {
|
|
17234
|
+
if (disposed) return;
|
|
17235
|
+
setOptionMap(mergeOptionMaps(results.filter(function (result) {
|
|
17236
|
+
return result.status === 'fulfilled';
|
|
17237
|
+
}).map(function (result) {
|
|
17238
|
+
return result.value;
|
|
17239
|
+
})));
|
|
17240
|
+
});
|
|
17241
|
+
return function () {
|
|
17242
|
+
disposed = true;
|
|
17243
|
+
};
|
|
17244
|
+
}, [loaders]);
|
|
17245
|
+
var applyOptions = function applyOptions(data) {
|
|
17246
|
+
return data.map(function (item) {
|
|
17247
|
+
var options = optionMap[item.name];
|
|
17248
|
+
if (!options) return item;
|
|
17249
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
17250
|
+
formItemProps: _objectSpread2(_objectSpread2({}, item.formItemProps || {}), {}, {
|
|
17251
|
+
options: options
|
|
17252
|
+
})
|
|
17253
|
+
});
|
|
17254
|
+
});
|
|
17255
|
+
};
|
|
17256
|
+
var searchFormData = useMemo(function () {
|
|
17257
|
+
return applyOptions(customSearchFormData || config.createSearchFormData(optionMap));
|
|
17258
|
+
}, [config, customSearchFormData, optionMap]);
|
|
17259
|
+
return /*#__PURE__*/React.createElement(SearchForm, _objectSpread2(_objectSpread2({}, searchFormProps), {}, {
|
|
17260
|
+
searchFormData: searchFormData
|
|
17261
|
+
}));
|
|
17262
|
+
};
|
|
17263
|
+
|
|
17264
|
+
var getTableData = function getTableData(_ref, formData) {
|
|
17265
|
+
var current = _ref.current,
|
|
17266
|
+
pageSize = _ref.pageSize;
|
|
17267
|
+
var conditionList = transformFormData(formData);
|
|
17268
|
+
return extendRequest('/qy/gdfw/product/product/page', {
|
|
17269
|
+
method: 'post',
|
|
17270
|
+
data: {
|
|
17271
|
+
pageSize: pageSize,
|
|
17272
|
+
pageNo: current,
|
|
17273
|
+
platform: 'WDT_ERP',
|
|
17274
|
+
conditionList: conditionList
|
|
17275
|
+
}
|
|
17276
|
+
}).then(function (res) {
|
|
17277
|
+
var _res$data = res.data,
|
|
17278
|
+
_res$data$productSkuL = _res$data.productSkuList,
|
|
17279
|
+
productSkuList = _res$data$productSkuL === void 0 ? [] : _res$data$productSkuL,
|
|
17280
|
+
_res$data$total = _res$data.total,
|
|
17281
|
+
total = _res$data$total === void 0 ? 0 : _res$data$total;
|
|
17282
|
+
var newProducts = productSkuList.map(function (item, index) {
|
|
17283
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
17284
|
+
index: index + 1
|
|
17285
|
+
});
|
|
17286
|
+
});
|
|
17287
|
+
return {
|
|
17288
|
+
total: total,
|
|
17289
|
+
list: newProducts
|
|
17290
|
+
};
|
|
17291
|
+
});
|
|
17292
|
+
};
|
|
17293
|
+
var GoodList = function GoodList(props, ref) {
|
|
17294
|
+
var _useState = useState([]),
|
|
17295
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
17296
|
+
selectList = _useState2[0],
|
|
17297
|
+
setSelect = _useState2[1];
|
|
17298
|
+
var _useState3 = useState([]),
|
|
17299
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
17300
|
+
selectIds = _useState4[0],
|
|
17301
|
+
setSelectIds = _useState4[1];
|
|
17302
|
+
var _useGetColumns = useGetColumns('wdt'),
|
|
17303
|
+
_useGetColumns2 = _slicedToArray(_useGetColumns, 3),
|
|
17304
|
+
columns = _useGetColumns2[0],
|
|
17305
|
+
showColumnsDataIndexList = _useGetColumns2[1],
|
|
17306
|
+
loading = _useGetColumns2[2];
|
|
17307
|
+
useImperativeHandle(ref, function () {
|
|
17308
|
+
return {
|
|
17309
|
+
getSelectGoodList: function getSelectGoodList() {
|
|
17310
|
+
return selectList;
|
|
17311
|
+
}
|
|
17312
|
+
};
|
|
17313
|
+
});
|
|
17314
|
+
var _Form$useForm = Form.useForm(),
|
|
17315
|
+
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
17316
|
+
form = _Form$useForm2[0];
|
|
17317
|
+
var _useGoodsReSyncQuery = useGoodsReSyncQuery(getTableData),
|
|
17318
|
+
_useGoodsReSyncQuery2 = _slicedToArray(_useGoodsReSyncQuery, 2),
|
|
17319
|
+
getTableDataWithReSync = _useGoodsReSyncQuery2[0],
|
|
17320
|
+
reSyncQueryState = _useGoodsReSyncQuery2[1];
|
|
17321
|
+
var _useAntdTable = useAntdTable(getTableDataWithReSync, {
|
|
17322
|
+
defaultPageSize: 10,
|
|
17323
|
+
form: form
|
|
17324
|
+
}),
|
|
17325
|
+
tableProps = _useAntdTable.tableProps,
|
|
17326
|
+
search = _useAntdTable.search;
|
|
17327
|
+
var submit = search.submit,
|
|
17328
|
+
reset = search.reset;
|
|
16979
17329
|
var rowSelection = {
|
|
16980
17330
|
selectedRowKeys: selectIds,
|
|
16981
17331
|
fixed: true,
|
|
@@ -17056,8 +17406,8 @@ var GoodList = function GoodList(props, ref) {
|
|
|
17056
17406
|
return /*#__PURE__*/React.createElement(Skeleton, {
|
|
17057
17407
|
active: true,
|
|
17058
17408
|
loading: loading
|
|
17059
|
-
}, /*#__PURE__*/React.createElement(
|
|
17060
|
-
|
|
17409
|
+
}, /*#__PURE__*/React.createElement(GoodsSearchForm, {
|
|
17410
|
+
type: "wdt",
|
|
17061
17411
|
form: form,
|
|
17062
17412
|
showColumnsDataIndexList: showColumnsDataIndexList,
|
|
17063
17413
|
submit: submit,
|
|
@@ -17174,35 +17524,6 @@ var getTableData$1 = function getTableData(_ref, formData) {
|
|
|
17174
17524
|
};
|
|
17175
17525
|
});
|
|
17176
17526
|
};
|
|
17177
|
-
var searchFormData = [{
|
|
17178
|
-
label: '商品名称',
|
|
17179
|
-
name: 'goodName'
|
|
17180
|
-
}, {
|
|
17181
|
-
label: '商品编码',
|
|
17182
|
-
name: 'goodNo',
|
|
17183
|
-
type: 'optionalInput'
|
|
17184
|
-
}, {
|
|
17185
|
-
label: '款式编码',
|
|
17186
|
-
name: 'styleCode',
|
|
17187
|
-
type: 'optionalInput'
|
|
17188
|
-
}, {
|
|
17189
|
-
label: '规格值',
|
|
17190
|
-
name: 'propertiesValue',
|
|
17191
|
-
type: 'optionalInput'
|
|
17192
|
-
}, {
|
|
17193
|
-
label: '商品类型',
|
|
17194
|
-
name: 'skuType',
|
|
17195
|
-
type: 'select',
|
|
17196
|
-
formItemProps: {
|
|
17197
|
-
options: [{
|
|
17198
|
-
label: '普通商品',
|
|
17199
|
-
value: 'normal'
|
|
17200
|
-
}, {
|
|
17201
|
-
label: '组合装商品',
|
|
17202
|
-
value: 'combine'
|
|
17203
|
-
}]
|
|
17204
|
-
}
|
|
17205
|
-
}];
|
|
17206
17527
|
var GoodList$1 = function GoodList(props, ref) {
|
|
17207
17528
|
var _useState = useState([]),
|
|
17208
17529
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -17328,8 +17649,8 @@ var GoodList$1 = function GoodList(props, ref) {
|
|
|
17328
17649
|
return /*#__PURE__*/React.createElement(Skeleton, {
|
|
17329
17650
|
active: true,
|
|
17330
17651
|
loading: loading
|
|
17331
|
-
}, /*#__PURE__*/React.createElement(
|
|
17332
|
-
|
|
17652
|
+
}, /*#__PURE__*/React.createElement(GoodsSearchForm, {
|
|
17653
|
+
type: "jst",
|
|
17333
17654
|
form: form,
|
|
17334
17655
|
showColumnsDataIndexList: showColumnsDataIndexList,
|
|
17335
17656
|
submit: submit,
|
|
@@ -17446,24 +17767,6 @@ var getTableData$2 = function getTableData(_ref, formData) {
|
|
|
17446
17767
|
};
|
|
17447
17768
|
});
|
|
17448
17769
|
};
|
|
17449
|
-
var searchFormData$1 = [{
|
|
17450
|
-
label: '商品货号',
|
|
17451
|
-
name: 'goodNo',
|
|
17452
|
-
type: 'optionalInput'
|
|
17453
|
-
}, {
|
|
17454
|
-
label: '商品名称',
|
|
17455
|
-
name: 'goodName'
|
|
17456
|
-
}, {
|
|
17457
|
-
label: 'SKU',
|
|
17458
|
-
name: 'skuCode',
|
|
17459
|
-
dataIndex: 'specNo',
|
|
17460
|
-
type: 'optionalInput'
|
|
17461
|
-
}, {
|
|
17462
|
-
label: 'SKU ID',
|
|
17463
|
-
name: 'skuId',
|
|
17464
|
-
dataIndex: 'specId',
|
|
17465
|
-
type: 'optionalInput'
|
|
17466
|
-
}];
|
|
17467
17770
|
var GoodList$2 = function GoodList(props, ref) {
|
|
17468
17771
|
var _useState = useState([]),
|
|
17469
17772
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -17577,8 +17880,8 @@ var GoodList$2 = function GoodList(props, ref) {
|
|
|
17577
17880
|
return /*#__PURE__*/React.createElement(Skeleton, {
|
|
17578
17881
|
active: true,
|
|
17579
17882
|
loading: loading
|
|
17580
|
-
}, /*#__PURE__*/React.createElement(
|
|
17581
|
-
|
|
17883
|
+
}, /*#__PURE__*/React.createElement(GoodsSearchForm, {
|
|
17884
|
+
type: "bse3",
|
|
17582
17885
|
form: form,
|
|
17583
17886
|
showColumnsDataIndexList: showColumnsDataIndexList,
|
|
17584
17887
|
submit: submit,
|
|
@@ -17688,23 +17991,6 @@ var getTableData$3 = function getTableData(_ref, formData) {
|
|
|
17688
17991
|
};
|
|
17689
17992
|
});
|
|
17690
17993
|
};
|
|
17691
|
-
var searchFormData$2 = [{
|
|
17692
|
-
label: '商品名称',
|
|
17693
|
-
name: 'goodName'
|
|
17694
|
-
}, {
|
|
17695
|
-
label: '商品编码',
|
|
17696
|
-
name: 'goodNo',
|
|
17697
|
-
type: 'optionalInput'
|
|
17698
|
-
}, {
|
|
17699
|
-
label: 'SKU名称',
|
|
17700
|
-
name: 'skuName',
|
|
17701
|
-
dataIndex: 'specName'
|
|
17702
|
-
}, {
|
|
17703
|
-
label: 'SKU编码',
|
|
17704
|
-
name: 'skuCode',
|
|
17705
|
-
dataIndex: 'specNo',
|
|
17706
|
-
type: 'optionalInput'
|
|
17707
|
-
}];
|
|
17708
17994
|
var GoodList$3 = function GoodList(props, ref) {
|
|
17709
17995
|
var _useState = useState([]),
|
|
17710
17996
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -17830,8 +18116,8 @@ var GoodList$3 = function GoodList(props, ref) {
|
|
|
17830
18116
|
return /*#__PURE__*/React.createElement(Skeleton, {
|
|
17831
18117
|
active: true,
|
|
17832
18118
|
loading: loading
|
|
17833
|
-
}, /*#__PURE__*/React.createElement(
|
|
17834
|
-
|
|
18119
|
+
}, /*#__PURE__*/React.createElement(GoodsSearchForm, {
|
|
18120
|
+
type: "km",
|
|
17835
18121
|
form: form,
|
|
17836
18122
|
showColumnsDataIndexList: showColumnsDataIndexList,
|
|
17837
18123
|
submit: submit,
|
|
@@ -17946,26 +18232,6 @@ var getTableData$4 = function getTableData(_ref, formData) {
|
|
|
17946
18232
|
};
|
|
17947
18233
|
});
|
|
17948
18234
|
};
|
|
17949
|
-
var searchFormData$3 = [{
|
|
17950
|
-
label: '商品简称',
|
|
17951
|
-
name: 'goodShortName'
|
|
17952
|
-
}, {
|
|
17953
|
-
label: '商品sku名称',
|
|
17954
|
-
name: 'skuName',
|
|
17955
|
-
dataIndex: 'specName'
|
|
17956
|
-
}, {
|
|
17957
|
-
label: '商品sku编码',
|
|
17958
|
-
name: 'skuCode',
|
|
17959
|
-
dataIndex: 'specNo',
|
|
17960
|
-
type: 'optionalInput'
|
|
17961
|
-
}, {
|
|
17962
|
-
label: '商品名称',
|
|
17963
|
-
name: 'goodName'
|
|
17964
|
-
}, {
|
|
17965
|
-
label: '商品编码',
|
|
17966
|
-
name: 'goodNo',
|
|
17967
|
-
type: 'optionalInput'
|
|
17968
|
-
}];
|
|
17969
18235
|
var GoodList$4 = function GoodList(props, ref) {
|
|
17970
18236
|
var _useState = useState([]),
|
|
17971
18237
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -18082,8 +18348,8 @@ var GoodList$4 = function GoodList(props, ref) {
|
|
|
18082
18348
|
return /*#__PURE__*/React.createElement(Skeleton, {
|
|
18083
18349
|
active: true,
|
|
18084
18350
|
loading: loading
|
|
18085
|
-
}, /*#__PURE__*/React.createElement(
|
|
18086
|
-
|
|
18351
|
+
}, /*#__PURE__*/React.createElement(GoodsSearchForm, {
|
|
18352
|
+
type: "gy",
|
|
18087
18353
|
form: form,
|
|
18088
18354
|
showColumnsDataIndexList: showColumnsDataIndexList,
|
|
18089
18355
|
submit: submit,
|
|
@@ -18325,11 +18591,11 @@ function multiSelect() {
|
|
|
18325
18591
|
var css_248z$d = ".high-performance-table .lock-left {\n background: #FFF !important;\n}\n.high-performance-table .art-empty-wrapper {\n margin-top: 24px;\n}\n.high-performance-table .cell-content {\n height: 48px;\n display: flex;\n align-items: center;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n padding: 8px 12px;\n}\n";
|
|
18326
18592
|
styleInject(css_248z$d);
|
|
18327
18593
|
|
|
18328
|
-
var _excluded$
|
|
18594
|
+
var _excluded$f = ["children"];
|
|
18329
18595
|
var Cell = function Cell(_ref) {
|
|
18330
18596
|
var tdProps = _ref.tdProps;
|
|
18331
18597
|
var children = tdProps.children,
|
|
18332
|
-
otherProps = _objectWithoutProperties(tdProps, _excluded$
|
|
18598
|
+
otherProps = _objectWithoutProperties(tdProps, _excluded$f);
|
|
18333
18599
|
return /*#__PURE__*/React.createElement("td", _objectSpread2({}, otherProps), /*#__PURE__*/React.createElement("div", {
|
|
18334
18600
|
className: "cell-content"
|
|
18335
18601
|
}, children));
|
|
@@ -18481,7 +18747,7 @@ var reject = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbS
|
|
|
18481
18747
|
|
|
18482
18748
|
var reminder = "data:image/png;base64,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";
|
|
18483
18749
|
|
|
18484
|
-
var _excluded$
|
|
18750
|
+
var _excluded$g = ["mode", "maxSelectCount", "showOnly", "getOptionsAsync", "onChange"];
|
|
18485
18751
|
var AsyncSelect = function AsyncSelect(props) {
|
|
18486
18752
|
var mode = props.mode,
|
|
18487
18753
|
maxSelectCount = props.maxSelectCount,
|
|
@@ -18489,7 +18755,7 @@ var AsyncSelect = function AsyncSelect(props) {
|
|
|
18489
18755
|
showOnly = _props$showOnly === void 0 ? false : _props$showOnly,
|
|
18490
18756
|
getOptionsAsync = props.getOptionsAsync,
|
|
18491
18757
|
_onChange = props.onChange,
|
|
18492
|
-
otherProps = _objectWithoutProperties(props, _excluded$
|
|
18758
|
+
otherProps = _objectWithoutProperties(props, _excluded$g);
|
|
18493
18759
|
var _React$useState = React.useState([]),
|
|
18494
18760
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
18495
18761
|
data = _React$useState2[0],
|
|
@@ -18539,7 +18805,7 @@ var AsyncSelect = function AsyncSelect(props) {
|
|
|
18539
18805
|
}));
|
|
18540
18806
|
};
|
|
18541
18807
|
|
|
18542
|
-
var _excluded$
|
|
18808
|
+
var _excluded$h = ["filterComponentType", "searchDefaultConditions", "props", "ShopList"];
|
|
18543
18809
|
var RangePicker = DatePicker.RangePicker;
|
|
18544
18810
|
var _SelectInput = function SelectInput(props) {
|
|
18545
18811
|
var _props$value = props.value,
|
|
@@ -18754,7 +19020,7 @@ var FilterSelectOption = function FilterSelectOption(props) {
|
|
|
18754
19020
|
searchDefaultConditions = props.searchDefaultConditions,
|
|
18755
19021
|
componentProps = props.props,
|
|
18756
19022
|
ShopList = props.ShopList,
|
|
18757
|
-
otherProps = _objectWithoutProperties(props, _excluded$
|
|
19023
|
+
otherProps = _objectWithoutProperties(props, _excluded$h);
|
|
18758
19024
|
var handleChange = function handleChange() {
|
|
18759
19025
|
var _props$onChange, _props$onSubmit;
|
|
18760
19026
|
for (var _len = arguments.length, params = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
@@ -19636,38 +19902,6 @@ var getTableData$5 = function getTableData(_ref, formData) {
|
|
|
19636
19902
|
};
|
|
19637
19903
|
});
|
|
19638
19904
|
};
|
|
19639
|
-
var searchFormData$4 = [{
|
|
19640
|
-
label: '规格值',
|
|
19641
|
-
name: 'propertiesValue'
|
|
19642
|
-
}, {
|
|
19643
|
-
label: 'SKU编码',
|
|
19644
|
-
name: 'specNo',
|
|
19645
|
-
type: 'optionalInput'
|
|
19646
|
-
}, {
|
|
19647
|
-
label: '商品名称',
|
|
19648
|
-
name: 'goodName'
|
|
19649
|
-
}, {
|
|
19650
|
-
label: '商品编码',
|
|
19651
|
-
name: 'goodNo',
|
|
19652
|
-
type: 'optionalInput'
|
|
19653
|
-
}, {
|
|
19654
|
-
label: '是否组合装',
|
|
19655
|
-
name: 'skuType',
|
|
19656
|
-
type: 'select',
|
|
19657
|
-
formItemProps: {
|
|
19658
|
-
mode: 'multiple',
|
|
19659
|
-
filterOption: function filterOption(input, option) {
|
|
19660
|
-
return option.label.includes(input);
|
|
19661
|
-
},
|
|
19662
|
-
options: [{
|
|
19663
|
-
label: '普通商品',
|
|
19664
|
-
value: 'normal'
|
|
19665
|
-
}, {
|
|
19666
|
-
label: '组合装商品',
|
|
19667
|
-
value: 'combine'
|
|
19668
|
-
}]
|
|
19669
|
-
}
|
|
19670
|
-
}];
|
|
19671
19905
|
var GoodList$5 = function GoodList(props, ref) {
|
|
19672
19906
|
var _useState = useState([]),
|
|
19673
19907
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -19793,8 +20027,8 @@ var GoodList$5 = function GoodList(props, ref) {
|
|
|
19793
20027
|
return /*#__PURE__*/React.createElement(Skeleton, {
|
|
19794
20028
|
active: true,
|
|
19795
20029
|
loading: loading
|
|
19796
|
-
}, /*#__PURE__*/React.createElement(
|
|
19797
|
-
|
|
20030
|
+
}, /*#__PURE__*/React.createElement(GoodsSearchForm, {
|
|
20031
|
+
type: "wln",
|
|
19798
20032
|
form: form,
|
|
19799
20033
|
showColumnsDataIndexList: showColumnsDataIndexList,
|
|
19800
20034
|
submit: submit,
|
|
@@ -19909,23 +20143,6 @@ var getTableData$6 = function getTableData(_ref, formData) {
|
|
|
19909
20143
|
};
|
|
19910
20144
|
});
|
|
19911
20145
|
};
|
|
19912
|
-
var searchFormData$5 = [{
|
|
19913
|
-
label: '规格名称',
|
|
19914
|
-
name: 'skuName',
|
|
19915
|
-
dataIndex: 'specName'
|
|
19916
|
-
}, {
|
|
19917
|
-
label: '规格编码',
|
|
19918
|
-
name: 'skuCode',
|
|
19919
|
-
dataIndex: 'specNo',
|
|
19920
|
-
type: 'optionalInput'
|
|
19921
|
-
}, {
|
|
19922
|
-
label: '商品名称',
|
|
19923
|
-
name: 'goodName'
|
|
19924
|
-
}, {
|
|
19925
|
-
label: '商品编码',
|
|
19926
|
-
name: 'goodNo',
|
|
19927
|
-
type: 'optionalInput'
|
|
19928
|
-
}];
|
|
19929
20146
|
var GoodList$6 = function GoodList(props, ref) {
|
|
19930
20147
|
var _useState = useState([]),
|
|
19931
20148
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -20051,8 +20268,8 @@ var GoodList$6 = function GoodList(props, ref) {
|
|
|
20051
20268
|
return /*#__PURE__*/React.createElement(Skeleton, {
|
|
20052
20269
|
active: true,
|
|
20053
20270
|
loading: loading
|
|
20054
|
-
}, /*#__PURE__*/React.createElement(
|
|
20055
|
-
|
|
20271
|
+
}, /*#__PURE__*/React.createElement(GoodsSearchForm, {
|
|
20272
|
+
type: "jy",
|
|
20056
20273
|
form: form,
|
|
20057
20274
|
showColumnsDataIndexList: showColumnsDataIndexList,
|
|
20058
20275
|
submit: submit,
|
|
@@ -20167,23 +20384,6 @@ var getTableData$7 = function getTableData(_ref, formData) {
|
|
|
20167
20384
|
};
|
|
20168
20385
|
});
|
|
20169
20386
|
};
|
|
20170
|
-
var searchFormData$6 = [{
|
|
20171
|
-
label: '规格名称',
|
|
20172
|
-
name: 'skuName',
|
|
20173
|
-
dataIndex: 'specName'
|
|
20174
|
-
}, {
|
|
20175
|
-
label: '规格编码',
|
|
20176
|
-
name: 'skuCode',
|
|
20177
|
-
dataIndex: 'specNo',
|
|
20178
|
-
type: 'optionalInput'
|
|
20179
|
-
}, {
|
|
20180
|
-
label: '货品名称',
|
|
20181
|
-
name: 'goodName'
|
|
20182
|
-
}, {
|
|
20183
|
-
label: '货品编码',
|
|
20184
|
-
name: 'goodNo',
|
|
20185
|
-
type: 'optionalInput'
|
|
20186
|
-
}];
|
|
20187
20387
|
var GoodList$7 = function GoodList(props, ref) {
|
|
20188
20388
|
var _useState = useState([]),
|
|
20189
20389
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -20306,8 +20506,8 @@ var GoodList$7 = function GoodList(props, ref) {
|
|
|
20306
20506
|
return /*#__PURE__*/React.createElement(Skeleton, {
|
|
20307
20507
|
active: true,
|
|
20308
20508
|
loading: loading
|
|
20309
|
-
}, /*#__PURE__*/React.createElement(
|
|
20310
|
-
|
|
20509
|
+
}, /*#__PURE__*/React.createElement(GoodsSearchForm, {
|
|
20510
|
+
type: "jky",
|
|
20311
20511
|
form: form,
|
|
20312
20512
|
showColumnsDataIndexList: showColumnsDataIndexList,
|
|
20313
20513
|
submit: submit,
|
|
@@ -26933,7 +27133,7 @@ var BsGoods = function BsGoods(props) {
|
|
|
26933
27133
|
}));
|
|
26934
27134
|
};
|
|
26935
27135
|
|
|
26936
|
-
var _excluded$
|
|
27136
|
+
var _excluded$i = ["value", "onChange", "reasonList", "disabled", "isSettingConfig"];
|
|
26937
27137
|
var BsExchange = function BsExchange(props) {
|
|
26938
27138
|
var _value$bsExchangeType6, _value$bsExchangeType7, _value$bsExchangeType8;
|
|
26939
27139
|
var value = props.value,
|
|
@@ -26942,7 +27142,7 @@ var BsExchange = function BsExchange(props) {
|
|
|
26942
27142
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
26943
27143
|
disabled = props.disabled,
|
|
26944
27144
|
isSettingConfig = props.isSettingConfig,
|
|
26945
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
27145
|
+
other = _objectWithoutProperties(props, _excluded$i);
|
|
26946
27146
|
var valueRef = useRef({});
|
|
26947
27147
|
useEffect(function () {
|
|
26948
27148
|
valueRef.current = value;
|
|
@@ -27181,7 +27381,7 @@ var BsExchange = function BsExchange(props) {
|
|
|
27181
27381
|
}))) : null);
|
|
27182
27382
|
};
|
|
27183
27383
|
|
|
27184
|
-
var _excluded$
|
|
27384
|
+
var _excluded$j = ["value", "onChange", "reasonList", "disabled", "type", "isSettingConfig"];
|
|
27185
27385
|
var typeMap = {
|
|
27186
27386
|
BS_REISSUE_GOODS: {
|
|
27187
27387
|
key: 'bsReissueGoods',
|
|
@@ -27207,7 +27407,7 @@ var BsReissue = function BsReissue(props) {
|
|
|
27207
27407
|
disabled = props.disabled,
|
|
27208
27408
|
type = props.type,
|
|
27209
27409
|
isSettingConfig = props.isSettingConfig,
|
|
27210
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
27410
|
+
other = _objectWithoutProperties(props, _excluded$j);
|
|
27211
27411
|
var valueRef = useRef({});
|
|
27212
27412
|
useEffect(function () {
|
|
27213
27413
|
var _value$bsReissueType;
|
|
@@ -27334,7 +27534,7 @@ var BsReissue = function BsReissue(props) {
|
|
|
27334
27534
|
})));
|
|
27335
27535
|
};
|
|
27336
27536
|
|
|
27337
|
-
var _excluded$
|
|
27537
|
+
var _excluded$k = ["value", "onChange", "reasonList", "disabled", "isSettingConfig"];
|
|
27338
27538
|
var BsReturnGoods = function BsReturnGoods(props) {
|
|
27339
27539
|
var value = props.value,
|
|
27340
27540
|
onChange = props.onChange,
|
|
@@ -27342,7 +27542,7 @@ var BsReturnGoods = function BsReturnGoods(props) {
|
|
|
27342
27542
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
27343
27543
|
disabled = props.disabled,
|
|
27344
27544
|
isSettingConfig = props.isSettingConfig,
|
|
27345
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
27545
|
+
other = _objectWithoutProperties(props, _excluded$k);
|
|
27346
27546
|
var valueRef = useRef({});
|
|
27347
27547
|
useEffect(function () {
|
|
27348
27548
|
pubsub.subscribe('returnSelectList', function (_, data) {
|
|
@@ -27960,7 +28160,7 @@ var kmUtils = {
|
|
|
27960
28160
|
getOrderListSingleton: getOrderListSingleton$4
|
|
27961
28161
|
};
|
|
27962
28162
|
|
|
27963
|
-
var _excluded$
|
|
28163
|
+
var _excluded$l = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode", "cancel"],
|
|
27964
28164
|
_excluded2 = ["shopCode"];
|
|
27965
28165
|
var columnsMap = {
|
|
27966
28166
|
BS_SYSTEM_ORDER: BS_SYSTEM_ORDER_CONFIG.columns,
|
|
@@ -28379,7 +28579,7 @@ var index$2 = (function (props) {
|
|
|
28379
28579
|
vipCode = _ref9.vipCode,
|
|
28380
28580
|
shopCode = _ref9.shopCode,
|
|
28381
28581
|
cancel = _ref9.cancel,
|
|
28382
|
-
rest = _objectWithoutProperties(_ref9, _excluded$
|
|
28582
|
+
rest = _objectWithoutProperties(_ref9, _excluded$l);
|
|
28383
28583
|
return _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
28384
28584
|
billNo: billNo,
|
|
28385
28585
|
billType: billType,
|
|
@@ -30772,7 +30972,7 @@ var CommonExchangeGoods = function CommonExchangeGoods(props) {
|
|
|
30772
30972
|
})));
|
|
30773
30973
|
};
|
|
30774
30974
|
|
|
30775
|
-
var _excluded$
|
|
30975
|
+
var _excluded$m = ["value", "onChange", "reasonList", "disabled", "type", "isSettingConfig"];
|
|
30776
30976
|
var typeMap$1 = {
|
|
30777
30977
|
WDT_REISSUE_GOODS: {
|
|
30778
30978
|
key: 'wdtReissueGoods',
|
|
@@ -30802,7 +31002,7 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
30802
31002
|
disabled = props.disabled,
|
|
30803
31003
|
type = props.type,
|
|
30804
31004
|
isSettingConfig = props.isSettingConfig,
|
|
30805
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
31005
|
+
other = _objectWithoutProperties(props, _excluded$m);
|
|
30806
31006
|
var showModeBtn = ((value === null || value === void 0 ? void 0 : (_value$wdtSystemOrder = value.wdtSystemOrder) === null || _value$wdtSystemOrder === void 0 ? void 0 : _value$wdtSystemOrder.orders) || []).some(function (order) {
|
|
30807
31007
|
var _order$srcTid;
|
|
30808
31008
|
return order === null || order === void 0 ? void 0 : (_order$srcTid = order.srcTid) === null || _order$srcTid === void 0 ? void 0 : _order$srcTid.includes(',');
|
|
@@ -31026,7 +31226,7 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
31026
31226
|
})));
|
|
31027
31227
|
};
|
|
31028
31228
|
|
|
31029
|
-
var _excluded$
|
|
31229
|
+
var _excluded$n = ["value", "onChange", "reasonList", "disabled", "type", "isSettingConfig"];
|
|
31030
31230
|
var typeMap$2 = {
|
|
31031
31231
|
JST_REISSUE_GOODS: {
|
|
31032
31232
|
compType: '补发',
|
|
@@ -31177,7 +31377,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
31177
31377
|
disabled = props.disabled,
|
|
31178
31378
|
type = props.type,
|
|
31179
31379
|
isSettingConfig = props.isSettingConfig,
|
|
31180
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
31380
|
+
other = _objectWithoutProperties(props, _excluded$n);
|
|
31181
31381
|
var showModeBtn = ((_typeMap$type = typeMap$2[type]) === null || _typeMap$type === void 0 ? void 0 : _typeMap$type.checkShowModeBtn) ? typeMap$2[type].checkShowModeBtn(value) : !!((_typeMap$type2 = typeMap$2[type]) === null || _typeMap$type2 === void 0 ? void 0 : _typeMap$type2.showModeBtn) || false;
|
|
31182
31382
|
var getOrderFlag = useRef(false);
|
|
31183
31383
|
var _useState = useState(false),
|
|
@@ -32042,12 +32242,12 @@ var Goods$1 = function Goods(props, ref) {
|
|
|
32042
32242
|
};
|
|
32043
32243
|
var index$3 = /*#__PURE__*/forwardRef(Goods$1);
|
|
32044
32244
|
|
|
32045
|
-
var _excluded$
|
|
32245
|
+
var _excluded$o = ["onChange", "value", "failValue"];
|
|
32046
32246
|
function CommonStatus(props) {
|
|
32047
32247
|
var onChange = props.onChange,
|
|
32048
32248
|
value = props.value,
|
|
32049
32249
|
failValue = props.failValue,
|
|
32050
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
32250
|
+
other = _objectWithoutProperties(props, _excluded$o);
|
|
32051
32251
|
var changeHandle = function changeHandle(val) {
|
|
32052
32252
|
onChange === null || onChange === void 0 ? void 0 : onChange({
|
|
32053
32253
|
status: val,
|
|
@@ -32186,7 +32386,7 @@ var CommonSystemOrder = function CommonSystemOrder(props) {
|
|
|
32186
32386
|
})) : null) : null);
|
|
32187
32387
|
};
|
|
32188
32388
|
|
|
32189
|
-
var _excluded$
|
|
32389
|
+
var _excluded$p = ["value", "onChange", "disabled", "failValue", "type"];
|
|
32190
32390
|
var CommonSystemOrder$1 = function CommonSystemOrder(props) {
|
|
32191
32391
|
var _value$changeIndex, _value$changeIndex2, _value$changeIndex3;
|
|
32192
32392
|
var _props$value = props.value,
|
|
@@ -32196,7 +32396,7 @@ var CommonSystemOrder$1 = function CommonSystemOrder(props) {
|
|
|
32196
32396
|
failValue = props.failValue,
|
|
32197
32397
|
_props$type = props.type,
|
|
32198
32398
|
type = _props$type === void 0 ? 1 : _props$type,
|
|
32199
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
32399
|
+
other = _objectWithoutProperties(props, _excluded$p);
|
|
32200
32400
|
var _useState = useState(0),
|
|
32201
32401
|
_useState2 = _slicedToArray(_useState, 2),
|
|
32202
32402
|
changeIndex = _useState2[0],
|
|
@@ -32262,7 +32462,7 @@ var CommonSystemOrder$1 = function CommonSystemOrder(props) {
|
|
|
32262
32462
|
}, "\u5931\u8D25\u539F\u56E0\uFF1A", (_value$changeIndex3 = value[changeIndex]) === null || _value$changeIndex3 === void 0 ? void 0 : _value$changeIndex3.reason) : null));
|
|
32263
32463
|
};
|
|
32264
32464
|
|
|
32265
|
-
var _excluded$
|
|
32465
|
+
var _excluded$q = ["value", "onChange", "disabled", "failValue", "type"];
|
|
32266
32466
|
var MsgStatus = function MsgStatus(props) {
|
|
32267
32467
|
var _value$changeIndex, _value$changeIndex2, _value$changeIndex3;
|
|
32268
32468
|
var _props$value = props.value,
|
|
@@ -32272,7 +32472,7 @@ var MsgStatus = function MsgStatus(props) {
|
|
|
32272
32472
|
failValue = props.failValue,
|
|
32273
32473
|
_props$type = props.type,
|
|
32274
32474
|
type = _props$type === void 0 ? 1 : _props$type,
|
|
32275
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
32475
|
+
other = _objectWithoutProperties(props, _excluded$q);
|
|
32276
32476
|
var _useState = useState(0),
|
|
32277
32477
|
_useState2 = _slicedToArray(_useState, 2),
|
|
32278
32478
|
changeIndex = _useState2[0],
|
|
@@ -32341,7 +32541,7 @@ var CalculationInput = function CalculationInput(props) {
|
|
|
32341
32541
|
}, config === null || config === void 0 ? void 0 : config.unit));
|
|
32342
32542
|
};
|
|
32343
32543
|
|
|
32344
|
-
var _excluded$
|
|
32544
|
+
var _excluded$r = ["value", "onChange", "reasonList", "disabled", "type", "isSettingConfig"];
|
|
32345
32545
|
var typeMap$3 = {
|
|
32346
32546
|
BS_E3_REISSUE_GOODS: {
|
|
32347
32547
|
key: 'bsE3ReissueGoods',
|
|
@@ -32361,7 +32561,7 @@ var bsE3Reissue = function bsE3Reissue(props) {
|
|
|
32361
32561
|
disabled = props.disabled,
|
|
32362
32562
|
type = props.type,
|
|
32363
32563
|
isSettingConfig = props.isSettingConfig,
|
|
32364
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
32564
|
+
other = _objectWithoutProperties(props, _excluded$r);
|
|
32365
32565
|
var getOrderFlag = useRef(false);
|
|
32366
32566
|
var valueRef = useRef(null);
|
|
32367
32567
|
var _useState = useState(false),
|
|
@@ -32600,7 +32800,7 @@ var css_248z$h = ".index-module_systemNoDisabled__1s7aJ.ant-select-item-option-d
|
|
|
32600
32800
|
var styles$6 = {"systemNoDisabled":"index-module_systemNoDisabled__1s7aJ"};
|
|
32601
32801
|
styleInject(css_248z$h);
|
|
32602
32802
|
|
|
32603
|
-
var _excluded$
|
|
32803
|
+
var _excluded$s = ["value", "onChange", "reasonList", "disabled", "type", "isSettingConfig"],
|
|
32604
32804
|
_excluded2$1 = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode"];
|
|
32605
32805
|
var typeMap$4 = {
|
|
32606
32806
|
GY_REISSUE_GOODS: {
|
|
@@ -32631,7 +32831,7 @@ var GyReissue = function GyReissue(props) {
|
|
|
32631
32831
|
disabled = props.disabled,
|
|
32632
32832
|
type = props.type,
|
|
32633
32833
|
isSettingConfig = props.isSettingConfig,
|
|
32634
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
32834
|
+
other = _objectWithoutProperties(props, _excluded$s);
|
|
32635
32835
|
// const showModeBtn = (value?.gySystemOrder?.orders || []).some((order: any) =>
|
|
32636
32836
|
// order?.platformCode?.includes(';'),
|
|
32637
32837
|
// );
|
|
@@ -32925,7 +33125,7 @@ var GyReissue = function GyReissue(props) {
|
|
|
32925
33125
|
})));
|
|
32926
33126
|
};
|
|
32927
33127
|
|
|
32928
|
-
var _excluded$
|
|
33128
|
+
var _excluded$t = ["value", "onChange", "reasonList", "disabled", "type", "isSettingConfig"],
|
|
32929
33129
|
_excluded2$2 = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode"];
|
|
32930
33130
|
var typeMap$5 = {
|
|
32931
33131
|
GY_RETURN_GOODS: {
|
|
@@ -32955,7 +33155,7 @@ var GyReturnGoods = function GyReturnGoods(props) {
|
|
|
32955
33155
|
disabled = props.disabled,
|
|
32956
33156
|
type = props.type,
|
|
32957
33157
|
isSettingConfig = props.isSettingConfig,
|
|
32958
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
33158
|
+
other = _objectWithoutProperties(props, _excluded$t);
|
|
32959
33159
|
var valueRef = useRef({});
|
|
32960
33160
|
var getOrderFlag = useRef(false);
|
|
32961
33161
|
var _useState = useState(false),
|
|
@@ -33227,7 +33427,7 @@ var css_248z$i = ".index-module_imageBox__1f2AI {\n display: flex;\n flex-wrap
|
|
|
33227
33427
|
var styles$7 = {"imageBox":"index-module_imageBox__1f2AI","addBtn":"index-module_addBtn__1DY59","tips":"index-module_tips__1XQjf"};
|
|
33228
33428
|
styleInject(css_248z$i);
|
|
33229
33429
|
|
|
33230
|
-
var _excluded$
|
|
33430
|
+
var _excluded$u = ["maxCount", "maxSize", "onChange", "value", "disabled", "hostUrl", "canDownload", "actionUrl"];
|
|
33231
33431
|
var Dragger$1 = Upload.Dragger;
|
|
33232
33432
|
var fn$4 = function fn() {
|
|
33233
33433
|
return void 0;
|
|
@@ -33250,7 +33450,7 @@ var KmVideo = function KmVideo(_ref) {
|
|
|
33250
33450
|
canDownload = _ref$canDownload === void 0 ? false : _ref$canDownload,
|
|
33251
33451
|
_ref$actionUrl = _ref.actionUrl,
|
|
33252
33452
|
actionUrl = _ref$actionUrl === void 0 ? '/qy/common/uploadWorkOrderImg' : _ref$actionUrl,
|
|
33253
|
-
resetProps = _objectWithoutProperties(_ref, _excluded$
|
|
33453
|
+
resetProps = _objectWithoutProperties(_ref, _excluded$u);
|
|
33254
33454
|
var _useState = useState(false),
|
|
33255
33455
|
_useState2 = _slicedToArray(_useState, 2),
|
|
33256
33456
|
visible = _useState2[0],
|
|
@@ -33854,4 +34054,4 @@ var FIELD_COLUMNS_MAP = {
|
|
|
33854
34054
|
PLATFORM_AFTER_SALES_ORDER: PLATFORM_AFTER_SALES_ORDER_CONFIG.columns
|
|
33855
34055
|
};
|
|
33856
34056
|
|
|
33857
|
-
export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, ApaasImage, ApaasInput, ApaasInputNumber, ApaasLogistics, ApaasMultipleSelect, ApaasPosting, ApaasRadio, ApaasRate, ApaasSelect, ApaasSlider, ApaasTextArea, ApaasUpload, ApaasUploadAsync$1 as ApaasUploadAsync, ApaasUploadFile, index as ApaasUploadProAsync, AsyncSelect, bsE3Reissue as BsE3Reissue, BsExchange, BsGoods, BsReissue, BsReturnGoods as BsReturn, index$2 as BsSystemOrder, BuyerNick, CalculationInput, ChooseBaby, CommonExchangeGoods, CommonGoods, CommonSystemOrder$1 as CommonMultiStatus, CommonReturnGoods, CommonStatus, CommonSystemOrder, CopyTextIcon, ExpressLogistics, FIELD_COLUMNS_MAP, Goods, index$3 as GoodsTable, GyReissue, GyReturnGoods as GyReturn, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, KmVideo, LogisticsInterception, LogisticsMoreInterception, LogisticsMoreTrajectory, LogisticsTrajectory, MAX_COLUMN_WIDTH, MIN_COLUMN_WIDTH, MsgStatus, OrderSubForm, utils as OrderSubFormUtils, ParseLogistics, Payment, PublicReissue, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, SYSTEM_ORDER_COLUMNS_MAP, ShopNameSelect as ShopName, SkxGoods, IdInputSelect as SkxIdInputSelect, Status, SubForm, Supplier, TBGoodId, TBGoodSerial, TradeId, WdtGoodList, wdtReissue as WdtReissue, WlnGoods, YouzanStar, columnsBaseInfoMap, erpColumnsMap, erpFormValidator, index$1 as erpModalColumnsMap, getColumns$a as getDxdColumns, getColumns$4 as getGyColumns, getColumns$9 as getJkyColumns, getColumns$5 as getJstColumns, getColumns$7 as getJyColumns, getColumns$6 as getKmColumns, getColumns$8 as getSkxColumns, getColumns$b as getTtxColumns, getColumns$2 as getWdtColumns, getColumns$3 as getWlnColumns, orderSubFormConstants, renderMap, renderSplitMap, resolveColumnWidth };
|
|
34057
|
+
export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, ApaasImage, ApaasInput, ApaasInputNumber, ApaasLogistics, ApaasMultipleSelect, ApaasPosting, ApaasRadio, ApaasRate, ApaasSelect, ApaasSlider, ApaasTextArea, ApaasUpload, ApaasUploadAsync$1 as ApaasUploadAsync, ApaasUploadFile, index as ApaasUploadProAsync, AsyncSelect, bsE3Reissue as BsE3Reissue, BsExchange, BsGoods, BsReissue, BsReturnGoods as BsReturn, index$2 as BsSystemOrder, BuyerNick, CalculationInput, ChooseBaby, CommonExchangeGoods, CommonGoods, CommonSystemOrder$1 as CommonMultiStatus, CommonReturnGoods, CommonStatus, CommonSystemOrder, CopyTextIcon, ExpressLogistics, FIELD_COLUMNS_MAP, GOODS_SEARCH_FORM_CONFIG, Goods, GoodsReSync, GoodsSearchForm, index$3 as GoodsTable, GyReissue, GyReturnGoods as GyReturn, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, KmVideo, LogisticsInterception, LogisticsMoreInterception, LogisticsMoreTrajectory, LogisticsTrajectory, MAX_COLUMN_WIDTH, MIN_COLUMN_WIDTH, MsgStatus, OrderSubForm, utils as OrderSubFormUtils, ParseLogistics, Payment, PublicReissue, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, SYSTEM_ORDER_COLUMNS_MAP, SearchForm, ShopNameSelect as ShopName, SkxGoods, IdInputSelect as SkxIdInputSelect, Status, SubForm, Supplier, TBGoodId, TBGoodSerial, TradeId, WdtGoodList, wdtReissue as WdtReissue, WlnGoods, YouzanStar, columnsBaseInfoMap, createBsE3SearchFormData, createGySearchFormData, createJkySearchFormData, createJstSearchFormData, createJySearchFormData, createKmSearchFormData, createWdtSearchFormData, createWlnSearchFormData, erpColumnsMap, erpFormValidator, index$1 as erpModalColumnsMap, getColumns$a as getDxdColumns, getColumns$4 as getGyColumns, getColumns$9 as getJkyColumns, getColumns$5 as getJstColumns, getColumns$7 as getJyColumns, getColumns$6 as getKmColumns, getColumns$8 as getSkxColumns, getColumns$b as getTtxColumns, getColumns$2 as getWdtColumns, getColumns$3 as getWlnColumns, loadWdtBrandOptions, orderSubFormConstants, renderMap, renderSplitMap, resolveColumnWidth, shouldSubmitOnBlur, transformFormData, useGoodsReSyncQuery };
|