@kmkf-fe-packages/basic-components 2.2.44-beta.7 → 2.2.44-beta.71
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 +408 -268
- package/dist/index.js +407 -267
- package/dist/src/bs/component/GoodItem/index.d.ts +4 -1
- package/dist/src/bs/component/model/Columns/Erp/jky.d.ts +5 -19
- package/dist/src/bs/component/model/Columns/Erp/wdt.d.ts +6 -0
- package/dist/src/bs/component/model/JkyGoodsModal/GoodsList.d.ts +1 -1
- package/dist/src/common/CommonGoods/index.d.ts +4 -1
- package/dist/src/common/Reissue/index.d.ts +4 -1
- package/dist/src/constants/systemOrderColumnsMap.d.ts +10 -2
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -3,7 +3,7 @@ import { Cascader, DatePicker, Image, InputNumber, Input, Select, Upload, messag
|
|
|
3
3
|
import { EyeOutlined, DeleteOutlined, CloseOutlined, PlusSquareOutlined, MinusCircleFilled, PlusCircleFilled, CopyOutlined, CloseCircleOutlined, CaretUpOutlined, UpOutlined, DownOutlined, PlusOutlined, VideoCameraTwoTone } from '@ant-design/icons';
|
|
4
4
|
import request, { extend as extend$1 } from 'umi-request';
|
|
5
5
|
import { CopyToClipboard } from 'react-copy-to-clipboard';
|
|
6
|
-
import { AddressData, BsAddressData, WdtAddressData, GyAddressData, JstAddressData,
|
|
6
|
+
import { AddressData, BsAddressData, WdtAddressData, GyAddressData, JstAddressData, request as request$1, ExpressData, isNull, imgResize, uuid, servers, columnsGoodsList, LogisticsAddressData, 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, filterWdtOrders, WDT_ORDER_TYPE_MAP, tradeStatusMap, 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, updateOrderSubFormGoodsHandle, updateWlnGoodsHandle, updateWdtGoodsHandle, updateBsE3GoodsHandle, updateGyGoodsHandle, updateJstGoodsHandle, updateKmGoodsHandle, updateJyGoodsHandle, updateJkyGoodsHandle, 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
9
|
import { debounce, isNaN as isNaN$1, isNumber as isNumber$1, uniqBy, cloneDeep, difference, differenceWith, isBoolean, isEqual, takeRight, reject as reject$1, intersection, isEmpty } from 'lodash';
|
|
@@ -7758,9 +7758,10 @@ var Province = function Province(props) {
|
|
|
7758
7758
|
wdt: WdtAddressData.getInstance(),
|
|
7759
7759
|
gy: GyAddressData.getInstance(),
|
|
7760
7760
|
km: AddressData.getInstance(),
|
|
7761
|
-
jst: JstAddressData.getInstance()
|
|
7762
|
-
jky: JkyAddressData.getInstance()
|
|
7761
|
+
jst: JstAddressData.getInstance()
|
|
7762
|
+
// jky: JkyAddressData.getInstance(),
|
|
7763
7763
|
};
|
|
7764
|
+
|
|
7764
7765
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Cascader, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
7765
7766
|
options: ((_mapping$type = mapping[type]) === null || _mapping$type === void 0 ? void 0 : _mapping$type.addressOptions) || [],
|
|
7766
7767
|
style: {
|
|
@@ -7996,13 +7997,14 @@ function ApaasPosting(props) {
|
|
|
7996
7997
|
});
|
|
7997
7998
|
}
|
|
7998
7999
|
|
|
7999
|
-
var _excluded$b = ["value", "onChange", "platformType", "type"];
|
|
8000
|
+
var _excluded$b = ["value", "onChange", "platformType", "type", "placement"];
|
|
8000
8001
|
function ApaasLogistics(props) {
|
|
8001
8002
|
var value = props.value,
|
|
8002
8003
|
onChange = props.onChange,
|
|
8003
8004
|
platformType = props.platformType,
|
|
8004
8005
|
_props$type = props.type,
|
|
8005
8006
|
type = _props$type === void 0 ? 'select' : _props$type,
|
|
8007
|
+
placement = props.placement,
|
|
8006
8008
|
other = _objectWithoutProperties(props, _excluded$b);
|
|
8007
8009
|
var _useState = useState([]),
|
|
8008
8010
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -8040,12 +8042,13 @@ function ApaasLogistics(props) {
|
|
|
8040
8042
|
return type === 'input' ? /*#__PURE__*/React.createElement(Input, _objectSpread2(_objectSpread2({}, other), {}, {
|
|
8041
8043
|
value: value,
|
|
8042
8044
|
onChange: handleInputChange
|
|
8043
|
-
})) : /*#__PURE__*/React.createElement(Select, _objectSpread2(
|
|
8045
|
+
})) : /*#__PURE__*/React.createElement(Select, _objectSpread2({
|
|
8044
8046
|
value: value,
|
|
8045
8047
|
onChange: onChange,
|
|
8046
8048
|
options: option,
|
|
8047
|
-
virtual: true
|
|
8048
|
-
|
|
8049
|
+
virtual: true,
|
|
8050
|
+
placement: placement
|
|
8051
|
+
}, other));
|
|
8049
8052
|
}
|
|
8050
8053
|
|
|
8051
8054
|
var _excluded$c = ["label", "name", "extra", "required", "rules", "initialValue"];
|
|
@@ -8129,6 +8132,11 @@ var systemOrderMap = {
|
|
|
8129
8132
|
ids: 'wdtSystemSelectIds',
|
|
8130
8133
|
order: 'wdtSystemShowOrder'
|
|
8131
8134
|
},
|
|
8135
|
+
JKY_SYSTEM_ORDER: {
|
|
8136
|
+
no: 'jkySystemOrderNo',
|
|
8137
|
+
ids: 'jkySystemSelectIds',
|
|
8138
|
+
order: 'jkySystemShowOrder'
|
|
8139
|
+
},
|
|
8132
8140
|
BS_E3_SYSTEM_ORDER: {
|
|
8133
8141
|
no: 'bsE3SystemOrderNo',
|
|
8134
8142
|
ids: 'bsE3SystemSelectIds',
|
|
@@ -8606,7 +8614,8 @@ var processSceneStatus = function processSceneStatus(getValue) {
|
|
|
8606
8614
|
WAREHOUSING_STATUS: 'inStockStatusItemList',
|
|
8607
8615
|
BS_E3_WAREHOUSING_STATUS: 'bsE3InStockStatusItemList',
|
|
8608
8616
|
MSG_STATUS: 'msgStatusValues',
|
|
8609
|
-
WDT_WAREHOUSING_STATUS: 'wdtInStockStatusItemList'
|
|
8617
|
+
WDT_WAREHOUSING_STATUS: 'wdtInStockStatusItemList',
|
|
8618
|
+
JKY_WAREHOUSING_STATUS: 'jkyInStockStatusItemList'
|
|
8610
8619
|
};
|
|
8611
8620
|
return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(STATUS_LIST_MAP[nex.workOrderComponentType])), []));
|
|
8612
8621
|
};
|
|
@@ -8700,6 +8709,33 @@ var processBsGoods = function processBsGoods(getValue) {
|
|
|
8700
8709
|
return _defineProperty({}, nex.uniqueKey, _values);
|
|
8701
8710
|
};
|
|
8702
8711
|
};
|
|
8712
|
+
var processJkyGoods = function processJkyGoods(templateColumns) {
|
|
8713
|
+
return function (getValue) {
|
|
8714
|
+
return function (nex, config) {
|
|
8715
|
+
var _values = {
|
|
8716
|
+
jkyGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_jkyGoods")), []),
|
|
8717
|
+
shopCode: getValue("".concat(nex.uniqueKey, "_shopCode"))
|
|
8718
|
+
};
|
|
8719
|
+
var selectIds = [];
|
|
8720
|
+
var orderNo = '';
|
|
8721
|
+
var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
|
|
8722
|
+
return col.workOrderComponentType === 'TRADE_ID_INPUT';
|
|
8723
|
+
});
|
|
8724
|
+
if (tradeId) {
|
|
8725
|
+
orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
|
|
8726
|
+
}
|
|
8727
|
+
var jkySystemOrder = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
|
|
8728
|
+
return col.workOrderComponentType === 'JKY_SYSTEM_ORDER';
|
|
8729
|
+
});
|
|
8730
|
+
if (jkySystemOrder) {
|
|
8731
|
+
selectIds = jsonParseSecurity(getValue("".concat(jkySystemOrder.uniqueKey, "_").concat(systemOrderMap[jkySystemOrder.workOrderComponentType].ids)), []);
|
|
8732
|
+
}
|
|
8733
|
+
_values.selectIds = selectIds;
|
|
8734
|
+
_values.orderNo = orderNo;
|
|
8735
|
+
return _defineProperty({}, nex.uniqueKey, _values);
|
|
8736
|
+
};
|
|
8737
|
+
};
|
|
8738
|
+
};
|
|
8703
8739
|
var processWdtGoods = function processWdtGoods(templateColumns) {
|
|
8704
8740
|
return function (getValue) {
|
|
8705
8741
|
return function (nex, config) {
|
|
@@ -8991,6 +9027,11 @@ var processErpSystemOrder = function processErpSystemOrder(getValue) {
|
|
|
8991
9027
|
ids: 'wdtSystemSelectIds',
|
|
8992
9028
|
order: 'wdtSystemShowOrder'
|
|
8993
9029
|
},
|
|
9030
|
+
JKY_SYSTEM_ORDER: {
|
|
9031
|
+
no: 'jkySystemOrderNo',
|
|
9032
|
+
ids: 'jkySystemSelectIds',
|
|
9033
|
+
order: 'jkySystemShowOrder'
|
|
9034
|
+
},
|
|
8994
9035
|
BS_E3_SYSTEM_ORDER: {
|
|
8995
9036
|
no: 'bsE3SystemOrderNo',
|
|
8996
9037
|
ids: 'bsE3SystemSelectIds',
|
|
@@ -9250,14 +9291,14 @@ var processJstReturnGoods = function processJstReturnGoods(templateColumns) {
|
|
|
9250
9291
|
};
|
|
9251
9292
|
var processLabel = function processLabel(getValue) {
|
|
9252
9293
|
return function (nex, config) {
|
|
9253
|
-
var
|
|
9254
|
-
return
|
|
9294
|
+
var _ref74;
|
|
9295
|
+
return _ref74 = {}, _defineProperty(_ref74, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _defineProperty(_ref74, "".concat(nex.uniqueKey, "_label"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _ref74;
|
|
9255
9296
|
};
|
|
9256
9297
|
};
|
|
9257
9298
|
var processMemberLevel = function processMemberLevel(getValue) {
|
|
9258
9299
|
return function (nex, config) {
|
|
9259
|
-
var
|
|
9260
|
-
return
|
|
9300
|
+
var _ref75;
|
|
9301
|
+
return _ref75 = {}, _defineProperty(_ref75, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _defineProperty(_ref75, "".concat(nex.uniqueKey, "_memberLevel"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _ref75;
|
|
9261
9302
|
};
|
|
9262
9303
|
};
|
|
9263
9304
|
var processAfterSalesOrderId = function processAfterSalesOrderId(getValue) {
|
|
@@ -9361,6 +9402,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
|
|
|
9361
9402
|
BS_E3_WAREHOUSING_STATUS: processSceneStatus,
|
|
9362
9403
|
MSG_STATUS: processSceneStatus,
|
|
9363
9404
|
WDT_WAREHOUSING_STATUS: processSceneStatus,
|
|
9405
|
+
JKY_WAREHOUSING_STATUS: processSceneStatus,
|
|
9364
9406
|
BS_LOGISTICS: processErpLogistics,
|
|
9365
9407
|
WLN_LOGISTICS: processErpLogistics,
|
|
9366
9408
|
WDT_LOGISTICS: processErpLogistics,
|
|
@@ -9376,6 +9418,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
|
|
|
9376
9418
|
BS_POSTING: processBsPosting,
|
|
9377
9419
|
BS_GOODS: processBsGoods,
|
|
9378
9420
|
WDT_GOODS: processWdtGoods(templateColumns),
|
|
9421
|
+
JKY_GOODS: processJkyGoods(templateColumns),
|
|
9379
9422
|
WDT_AFTERSALE_GOODS: processWdtAftersaleGoods(templateColumns),
|
|
9380
9423
|
JST_AFTERSALE_GOODS: processJstAftersaleGoods(templateColumns),
|
|
9381
9424
|
BS_E3_GOODS: processBsE3Goods(templateColumns),
|
|
@@ -9394,6 +9437,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
|
|
|
9394
9437
|
KM_SYSTEM_ORDER: processErpSystemOrder,
|
|
9395
9438
|
WLN_SYSTEM_ORDER: processErpSystemOrder,
|
|
9396
9439
|
WDT_SYSTEM_ORDER: processErpSystemOrder,
|
|
9440
|
+
JKY_SYSTEM_ORDER: processErpSystemOrder,
|
|
9397
9441
|
WDT_RETURN_BILL_NO: processErpSystemOrder,
|
|
9398
9442
|
BS_E3_SYSTEM_ORDER: processErpSystemOrder,
|
|
9399
9443
|
JST_SYSTEM_ORDER: processErpSystemOrder,
|
|
@@ -9990,12 +10034,21 @@ var EditSplitRenderMap = {
|
|
|
9990
10034
|
updateHandle = _ref17.updateHandle,
|
|
9991
10035
|
disabled = _ref17.disabled;
|
|
9992
10036
|
return /*#__PURE__*/React.createElement(ApaasLogistics, {
|
|
10037
|
+
getPopupContainer: function getPopupContainer() {
|
|
10038
|
+
return document.getElementById('subform');
|
|
10039
|
+
},
|
|
9993
10040
|
value: val,
|
|
9994
10041
|
allowClear: true,
|
|
10042
|
+
showSearch: true,
|
|
9995
10043
|
onChange: function onChange(e) {
|
|
9996
10044
|
return updateHandle(e, index, t.key);
|
|
9997
10045
|
},
|
|
9998
|
-
disabled: t.isEdit || disabled
|
|
10046
|
+
disabled: t.isEdit || disabled,
|
|
10047
|
+
filterOption: function filterOption(input, option) {
|
|
10048
|
+
return option.label.includes(input);
|
|
10049
|
+
},
|
|
10050
|
+
placement: "topLeft",
|
|
10051
|
+
listHeight: 120
|
|
9999
10052
|
});
|
|
10000
10053
|
},
|
|
10001
10054
|
//退货物流-物流公司
|
|
@@ -10006,12 +10059,21 @@ var EditSplitRenderMap = {
|
|
|
10006
10059
|
updateHandle = _ref18.updateHandle,
|
|
10007
10060
|
disabled = _ref18.disabled;
|
|
10008
10061
|
return /*#__PURE__*/React.createElement(ApaasLogistics, {
|
|
10062
|
+
getPopupContainer: function getPopupContainer() {
|
|
10063
|
+
return document.getElementById('subform');
|
|
10064
|
+
},
|
|
10009
10065
|
value: val,
|
|
10010
10066
|
allowClear: true,
|
|
10067
|
+
showSearch: true,
|
|
10011
10068
|
onChange: function onChange(e) {
|
|
10012
10069
|
return updateHandle(e, index, t.key);
|
|
10013
10070
|
},
|
|
10014
|
-
disabled: t.isEdit || disabled
|
|
10071
|
+
disabled: t.isEdit || disabled,
|
|
10072
|
+
filterOption: function filterOption(input, option) {
|
|
10073
|
+
return option.label.includes(input);
|
|
10074
|
+
},
|
|
10075
|
+
placement: "topLeft",
|
|
10076
|
+
listHeight: 120
|
|
10015
10077
|
});
|
|
10016
10078
|
}
|
|
10017
10079
|
};
|
|
@@ -10480,7 +10542,11 @@ var SubForm = function SubForm(props) {
|
|
|
10480
10542
|
});
|
|
10481
10543
|
}, [inputValue]);
|
|
10482
10544
|
var handleOpenChange = function handleOpenChange(newOpen) {
|
|
10483
|
-
|
|
10545
|
+
if (!['jbCFrJV4m7_trajectoryCompany', '0qFEv9GEyd_returnLogisticsCompany'].includes(selectKey)) {
|
|
10546
|
+
setOpen(newOpen);
|
|
10547
|
+
} else {
|
|
10548
|
+
setOpen(false);
|
|
10549
|
+
}
|
|
10484
10550
|
};
|
|
10485
10551
|
var onChangeInput = useCallback(debounce(function (val) {
|
|
10486
10552
|
setInputValue(val);
|
|
@@ -10568,6 +10634,9 @@ var SubForm = function SubForm(props) {
|
|
|
10568
10634
|
visible: open,
|
|
10569
10635
|
onVisibleChange: handleOpenChange
|
|
10570
10636
|
}, ['0qFEv9GEyd_returnLogisticsCompany', 'jbCFrJV4m7_trajectoryCompany'].includes(selectKey) ? /*#__PURE__*/React.createElement(ApaasLogistics, {
|
|
10637
|
+
getPopupContainer: function getPopupContainer() {
|
|
10638
|
+
return document.getElementById('subform');
|
|
10639
|
+
},
|
|
10571
10640
|
value: undefined,
|
|
10572
10641
|
onChange: function onChange(val) {
|
|
10573
10642
|
onChangeInput(val);
|
|
@@ -10580,7 +10649,9 @@ var SubForm = function SubForm(props) {
|
|
|
10580
10649
|
},
|
|
10581
10650
|
filterOption: function filterOption(input, option) {
|
|
10582
10651
|
return option.label.includes(input);
|
|
10583
|
-
}
|
|
10652
|
+
},
|
|
10653
|
+
placement: "topLeft",
|
|
10654
|
+
listHeight: 120
|
|
10584
10655
|
}) : /*#__PURE__*/React.createElement(Input, {
|
|
10585
10656
|
placeholder: "\u8F93\u5165\u5173\u952E\u8BCD\u67E5\u8BE2",
|
|
10586
10657
|
allowClear: true,
|
|
@@ -12099,7 +12170,7 @@ var ChooseBaby = function ChooseBaby(props) {
|
|
|
12099
12170
|
}));
|
|
12100
12171
|
};
|
|
12101
12172
|
|
|
12102
|
-
var css_248z$7 = "#goods-wrap.goodsBox.single-row {\n max-height: 800px;\n overflow-y: auto;\n padding-top: 4px;\n flex-basis: 100%;\n}\n#goods-wrap.goodsBox.single-row .good-item.rich-item.with-pic,\n#goods-wrap.goodsBox.single-row .good-item.rich-item.with-attr,\n#goods-wrap.goodsBox.single-row .good-item.rich-item.with-attr.with-pic {\n flex-basis: 100%;\n}\n#goods-wrap.goodsBox.single-row .good-item.rich-item .good-attrs {\n flex-grow: 1;\n flex-shrink: 1;\n}\n#goods-wrap.goodsBox.single-row .good-item.rich-item .good-attrs .good-item-attr {\n flex-grow: 1;\n flex-shrink: 1;\n max-width: 80px;\n width: 20px;\n flex-basis: 20px;\n}\n#goods-wrap.goodsBox.single-row .good-item.rich-item .good-attrs .ant-input {\n flex-shrink: 1;\n flex-grow: 1;\n width: 20px;\n flex-basis: 40px;\n}\n#goods-wrap .good-item.rich-item {\n position: relative;\n border: 1px solid #ccc;\n display: flex;\n flex-basis: 80px;\n flex-wrap: nowrap;\n margin: 0 10px 10px 0;\n padding: 4px;\n}\n#goods-wrap .good-item.rich-item.with-pic {\n flex-basis: 90px;\n}\n#goods-wrap .good-item.rich-item.with-attr {\n flex-basis: 150px;\n}\n#goods-wrap .good-item.rich-item.with-attr.with-pic {\n flex-basis: 238px;\n}\n#goods-wrap .good-item.rich-item.with-attr.with-pic .goods-imgBox {\n margin-right: 8px;\n}\n#goods-wrap .good-item.rich-item .good-item-attr {\n margin-right: 6px;\n width: 52px;\n flex-basis: 52px;\n}\n#goods-wrap .good-item.rich-item .good-img {\n position: relative;\n width: 80px;\n height: 80px;\n border-radius: 4px;\n border: 1px solid #f2f3f5;\n margin: 0 10px 0 0;\n text-align: center;\n background-color: #f2f3f5;\n}\n#goods-wrap .good-item.rich-item .good-attrs {\n display: flex;\n flex-direction: column;\n font-size: 12px;\n}\n#goods-wrap .good-item.rich-item .good-attrs .ant-input {\n font-size: 12px;\n width: 80px;\n height: 20px;\n padding-left: 5px;\n padding-right: 5px;\n}\n#goods-wrap .good-item.rich-item .good-attrs .ant-input.id-textarea {\n width: 80px;\n resize: none;\n height: 45px;\n}\n#goods-wrap .good-item.rich-item .good-attrs div {\n display: flex;\n}\n#goods-wrap .good-item.rich-item .good-attrs div:not(:first-child) {\n margin-top: 4px;\n}\n";
|
|
12173
|
+
var css_248z$7 = "#goods-wrap.goodsBox.single-row {\n max-height: 800px;\n overflow-y: auto;\n padding-top: 4px;\n flex-basis: 100%;\n}\n#goods-wrap.goodsBox.single-row .good-item.rich-item.with-pic,\n#goods-wrap.goodsBox.single-row .good-item.rich-item.with-attr,\n#goods-wrap.goodsBox.single-row .good-item.rich-item.with-attr.with-pic {\n flex-basis: 100%;\n}\n#goods-wrap.goodsBox.single-row .good-item.rich-item .good-attrs {\n flex-grow: 1;\n flex-shrink: 1;\n}\n#goods-wrap.goodsBox.single-row .good-item.rich-item .good-attrs .good-item-attr {\n flex-grow: 1;\n flex-shrink: 1;\n max-width: 80px;\n width: 20px;\n flex-basis: 20px;\n}\n#goods-wrap.goodsBox.single-row .good-item.rich-item .good-attrs .ant-input {\n flex-shrink: 1;\n flex-grow: 1;\n width: 20px;\n flex-basis: 40px;\n}\n#goods-wrap .good-item.rich-item {\n position: relative;\n border: 1px solid #ccc;\n display: flex;\n flex-basis: 80px;\n flex-wrap: nowrap;\n margin: 0 10px 10px 0;\n padding: 4px;\n}\n#goods-wrap .good-item.rich-item.with-pic {\n flex-basis: 90px;\n}\n#goods-wrap .good-item.rich-item.with-attr {\n flex-basis: 150px;\n}\n#goods-wrap .good-item.rich-item.with-attr.with-pic {\n flex-basis: 238px;\n}\n#goods-wrap .good-item.rich-item.with-attr.with-pic .goods-imgBox {\n margin-right: 8px;\n}\n#goods-wrap .good-item.rich-item .good-item-attr {\n margin-right: 6px;\n width: 52px;\n flex-basis: 52px;\n}\n#goods-wrap .good-item.rich-item .good-img {\n position: relative;\n width: 80px;\n height: 80px;\n border-radius: 4px;\n border: 1px solid #f2f3f5;\n margin: 0 10px 0 0;\n text-align: center;\n background-color: #f2f3f5;\n}\n#goods-wrap .good-item.rich-item .good-attrs {\n display: flex;\n flex-direction: column;\n font-size: 12px;\n}\n#goods-wrap .good-item.rich-item .good-attrs .ant-input {\n font-size: 12px;\n width: 80px;\n height: 20px;\n padding-left: 5px;\n padding-right: 5px;\n}\n#goods-wrap .good-item.rich-item .good-attrs .ant-input.id-textarea {\n width: 80px;\n resize: none;\n height: 45px;\n}\n#goods-wrap .good-item.rich-item .good-attrs div {\n display: flex;\n}\n#goods-wrap .good-item.rich-item .good-attrs div:not(:first-child) {\n margin-top: 4px;\n}\n.goods-uploaded-state {\n display: flex;\n}\n.goods-uploaded-state .clear-all {\n float: right;\n color: #1966ff;\n cursor: pointer;\n margin-left: 12px;\n}\n";
|
|
12103
12174
|
styleInject(css_248z$7);
|
|
12104
12175
|
|
|
12105
12176
|
var GoodItem = function GoodItem(props) {
|
|
@@ -12428,13 +12499,22 @@ var GoodItem = function GoodItem(props) {
|
|
|
12428
12499
|
var hasAttr = useMemo(function () {
|
|
12429
12500
|
return hasPic ? headerList.length > 1 : headerList.length > 0;
|
|
12430
12501
|
}, [hasPic, headerList]);
|
|
12502
|
+
var clearAll = function clearAll() {
|
|
12503
|
+
onChange === null || onChange === void 0 ? void 0 : onChange({
|
|
12504
|
+
shopId: shopId,
|
|
12505
|
+
imgList: []
|
|
12506
|
+
});
|
|
12507
|
+
};
|
|
12431
12508
|
return /*#__PURE__*/React.createElement("div", null, imgList.length === 0 ? /*#__PURE__*/React.createElement("p", {
|
|
12432
12509
|
className: "goods-title"
|
|
12433
12510
|
}, "\u6700\u591A\u6DFB\u52A0", maxLength, "\u4E2A\u5B9D\u8D1D") : /*#__PURE__*/React.createElement("p", {
|
|
12434
12511
|
className: "goods-uploaded-state"
|
|
12435
12512
|
}, "\u5DF2\u6DFB\u52A0", /*#__PURE__*/React.createElement("span", {
|
|
12436
12513
|
className: "goods-uploaded-count"
|
|
12437
|
-
}, imgList.length), "/", maxLength,
|
|
12514
|
+
}, imgList.length), "/", maxLength, /*#__PURE__*/React.createElement("span", {
|
|
12515
|
+
className: 'clear-all',
|
|
12516
|
+
onClick: clearAll
|
|
12517
|
+
}, "\u6E05\u7A7A")), /*#__PURE__*/React.createElement("div", {
|
|
12438
12518
|
ref: boxRef,
|
|
12439
12519
|
id: "goods-wrap",
|
|
12440
12520
|
className: "goodsBox goodsBox-item-horizontal--box".concat(isSingleRow ? ' single-row' : '')
|
|
@@ -14931,6 +15011,13 @@ var wdtColumns = [{
|
|
|
14931
15011
|
title: '辅助单位',
|
|
14932
15012
|
width: 150,
|
|
14933
15013
|
render: renderTextEllipsis
|
|
15014
|
+
}, {
|
|
15015
|
+
dataIndex: 'skuType',
|
|
15016
|
+
title: '是否组合装',
|
|
15017
|
+
width: 150,
|
|
15018
|
+
render: function render(type) {
|
|
15019
|
+
return type === 'suite' ? '组合装' : '非组合装';
|
|
15020
|
+
}
|
|
14934
15021
|
}];
|
|
14935
15022
|
|
|
14936
15023
|
var bse3Columns = [{
|
|
@@ -15321,34 +15408,75 @@ var jyColumns = [{
|
|
|
15321
15408
|
}
|
|
15322
15409
|
}];
|
|
15323
15410
|
|
|
15411
|
+
var getYesOrNo$2 = function getYesOrNo(val) {
|
|
15412
|
+
if (!isBoolean(val)) return null;
|
|
15413
|
+
return val ? '是' : '否';
|
|
15414
|
+
};
|
|
15324
15415
|
var jkyColumns = [{
|
|
15325
|
-
dataIndex: '
|
|
15326
|
-
title: "\u8D27\u54C1\
|
|
15416
|
+
dataIndex: 'goodName',
|
|
15417
|
+
title: "\u8D27\u54C1\u540D\u79F0",
|
|
15327
15418
|
align: 'center',
|
|
15328
15419
|
ellipsis: true,
|
|
15329
15420
|
width: 150,
|
|
15330
15421
|
render: renderTextEllipsis
|
|
15331
15422
|
}, {
|
|
15332
|
-
dataIndex: '
|
|
15333
|
-
title: "\u8D27\u54C1\
|
|
15423
|
+
dataIndex: 'goodNo',
|
|
15424
|
+
title: "\u8D27\u54C1\u7F16\u53F7",
|
|
15334
15425
|
align: 'center',
|
|
15335
15426
|
ellipsis: true,
|
|
15336
15427
|
width: 150,
|
|
15337
15428
|
render: renderTextEllipsis
|
|
15338
15429
|
}, {
|
|
15339
|
-
dataIndex: '
|
|
15430
|
+
dataIndex: 'goodId',
|
|
15340
15431
|
title: "\u8D27\u54C1ID",
|
|
15341
15432
|
align: 'center',
|
|
15342
15433
|
ellipsis: true,
|
|
15343
15434
|
width: 150,
|
|
15344
15435
|
render: renderTextEllipsis
|
|
15345
15436
|
}, {
|
|
15346
|
-
dataIndex: '
|
|
15437
|
+
dataIndex: 'goodPicUrl',
|
|
15438
|
+
title: "\u8D27\u54C1\u4E3B\u56FE",
|
|
15439
|
+
align: 'center',
|
|
15440
|
+
ellipsis: true,
|
|
15441
|
+
width: 150,
|
|
15442
|
+
render: function render(picUrl) {
|
|
15443
|
+
return /*#__PURE__*/React.createElement("img", {
|
|
15444
|
+
style: {
|
|
15445
|
+
width: '30px',
|
|
15446
|
+
height: '30px',
|
|
15447
|
+
objectFit: 'contain'
|
|
15448
|
+
},
|
|
15449
|
+
src: picUrl
|
|
15450
|
+
});
|
|
15451
|
+
}
|
|
15452
|
+
}, {
|
|
15453
|
+
dataIndex: 'goodShortName',
|
|
15454
|
+
title: "\u8D27\u54C1\u522B\u540D",
|
|
15455
|
+
align: 'center',
|
|
15456
|
+
ellipsis: true,
|
|
15457
|
+
width: 150,
|
|
15458
|
+
render: renderTextEllipsis
|
|
15459
|
+
}, {
|
|
15460
|
+
dataIndex: 'specBarcode',
|
|
15347
15461
|
title: "\u8D27\u54C1\u6761\u7801",
|
|
15348
15462
|
align: 'center',
|
|
15349
15463
|
ellipsis: true,
|
|
15350
15464
|
width: 150,
|
|
15351
15465
|
render: renderTextEllipsis
|
|
15466
|
+
}, {
|
|
15467
|
+
dataIndex: 'categoryName',
|
|
15468
|
+
title: "\u8D27\u54C1\u7C7B\u522B",
|
|
15469
|
+
align: 'center',
|
|
15470
|
+
ellipsis: true,
|
|
15471
|
+
width: 150,
|
|
15472
|
+
render: renderTextEllipsis
|
|
15473
|
+
}, {
|
|
15474
|
+
dataIndex: 'brandName',
|
|
15475
|
+
title: "\u54C1\u724C",
|
|
15476
|
+
align: 'center',
|
|
15477
|
+
ellipsis: true,
|
|
15478
|
+
width: 200,
|
|
15479
|
+
render: renderTextEllipsis
|
|
15352
15480
|
}, {
|
|
15353
15481
|
dataIndex: 'specName',
|
|
15354
15482
|
title: "\u89C4\u683C\u540D\u79F0",
|
|
@@ -15364,7 +15492,14 @@ var jkyColumns = [{
|
|
|
15364
15492
|
width: 150,
|
|
15365
15493
|
render: renderTextEllipsis
|
|
15366
15494
|
}, {
|
|
15367
|
-
dataIndex: '
|
|
15495
|
+
dataIndex: 'specNo',
|
|
15496
|
+
title: "\u89C4\u683C\u7F16\u7801",
|
|
15497
|
+
align: 'center',
|
|
15498
|
+
ellipsis: true,
|
|
15499
|
+
width: 150,
|
|
15500
|
+
render: renderTextEllipsis
|
|
15501
|
+
}, {
|
|
15502
|
+
dataIndex: 'specImgUrl',
|
|
15368
15503
|
title: "\u89C4\u683C\u56FE\u7247",
|
|
15369
15504
|
align: 'center',
|
|
15370
15505
|
ellipsis: true,
|
|
@@ -15380,162 +15515,78 @@ var jkyColumns = [{
|
|
|
15380
15515
|
});
|
|
15381
15516
|
}
|
|
15382
15517
|
}, {
|
|
15383
|
-
dataIndex: '
|
|
15384
|
-
title: "\
|
|
15385
|
-
width: 100,
|
|
15386
|
-
render: function render(val) {
|
|
15387
|
-
return /*#__PURE__*/React.createElement("span", null, val);
|
|
15388
|
-
}
|
|
15389
|
-
}, {
|
|
15390
|
-
dataIndex: 'actualSendCount',
|
|
15391
|
-
title: "\u5B9E\u53D1\u6570\u91CF",
|
|
15392
|
-
width: 150,
|
|
15393
|
-
render: renderTextEllipsis
|
|
15394
|
-
}, {
|
|
15395
|
-
dataIndex: 'sellPrice',
|
|
15396
|
-
title: "\u5355\u4EF7",
|
|
15397
|
-
width: 150,
|
|
15398
|
-
render: function render(val) {
|
|
15399
|
-
return val || val === 0 ? Number(val).toFixed(2) : '';
|
|
15400
|
-
}
|
|
15401
|
-
}, {
|
|
15402
|
-
dataIndex: 'sellTotal',
|
|
15403
|
-
title: "\u91D1\u989D",
|
|
15404
|
-
width: 150
|
|
15405
|
-
}, {
|
|
15406
|
-
dataIndex: 'discountTotal',
|
|
15407
|
-
title: "\u62B5\u6263\u91D1\u989D",
|
|
15408
|
-
width: 150
|
|
15409
|
-
}, {
|
|
15410
|
-
dataIndex: 'shareFavourableFee',
|
|
15411
|
-
title: "\u5206\u644A\u91D1\u989D",
|
|
15412
|
-
width: 150
|
|
15413
|
-
}, {
|
|
15414
|
-
dataIndex: 'shareFavourableAfterFee',
|
|
15415
|
-
title: "\u5206\u644A\u540E\u91D1\u989D",
|
|
15416
|
-
width: 150
|
|
15417
|
-
}, {
|
|
15418
|
-
dataIndex: 'customerPrice',
|
|
15419
|
-
title: "\u7EC8\u7AEF\u9500\u552E\u5355\u4EF7",
|
|
15420
|
-
width: 150
|
|
15421
|
-
}, {
|
|
15422
|
-
dataIndex: 'customerTotal',
|
|
15423
|
-
title: "\u7EC8\u7AEF\u9500\u552E\u91D1\u989D",
|
|
15424
|
-
width: 150
|
|
15425
|
-
}, {
|
|
15426
|
-
dataIndex: 'divideSellTotal',
|
|
15427
|
-
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
15428
|
-
width: 150
|
|
15429
|
-
}, {
|
|
15430
|
-
dataIndex: 'isGift',
|
|
15431
|
-
title: "\u662F\u5426\u8D60\u54C1",
|
|
15432
|
-
width: 150,
|
|
15433
|
-
render: function render(val) {
|
|
15434
|
-
return /*#__PURE__*/React.createElement("span", null, val === '1' ? '是' : '否');
|
|
15435
|
-
}
|
|
15436
|
-
}, {
|
|
15437
|
-
dataIndex: 'isFit',
|
|
15438
|
-
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
15439
|
-
width: 150,
|
|
15440
|
-
render: function render(val) {
|
|
15441
|
-
return /*#__PURE__*/React.createElement("span", null, val === '1' ? '是' : '否');
|
|
15442
|
-
}
|
|
15443
|
-
}, {
|
|
15444
|
-
dataIndex: 'isPresell',
|
|
15445
|
-
title: "\u662F\u5426\u9884\u552E\u8D27\u54C1",
|
|
15446
|
-
width: 150,
|
|
15447
|
-
render: function render(val) {
|
|
15448
|
-
return /*#__PURE__*/React.createElement("span", null, val === '1' ? '是' : '否');
|
|
15449
|
-
}
|
|
15450
|
-
}, {
|
|
15451
|
-
dataIndex: 'brandName',
|
|
15452
|
-
title: "\u54C1\u724C",
|
|
15518
|
+
dataIndex: 'colorName',
|
|
15519
|
+
title: "\u989C\u8272\u540D\u79F0",
|
|
15453
15520
|
align: 'center',
|
|
15454
15521
|
ellipsis: true,
|
|
15455
|
-
width:
|
|
15522
|
+
width: 150,
|
|
15456
15523
|
render: renderTextEllipsis
|
|
15457
15524
|
}, {
|
|
15458
|
-
dataIndex: '
|
|
15459
|
-
title: "\
|
|
15525
|
+
dataIndex: 'colorCode',
|
|
15526
|
+
title: "\u989C\u8272\u4EE3\u7801",
|
|
15460
15527
|
align: 'center',
|
|
15461
15528
|
ellipsis: true,
|
|
15462
15529
|
width: 150,
|
|
15463
15530
|
render: renderTextEllipsis
|
|
15464
15531
|
}, {
|
|
15465
|
-
dataIndex: '
|
|
15466
|
-
title: "\
|
|
15532
|
+
dataIndex: 'sizeName',
|
|
15533
|
+
title: "\u5C3A\u7801\u540D\u79F0",
|
|
15467
15534
|
align: 'center',
|
|
15468
15535
|
ellipsis: true,
|
|
15469
|
-
width:
|
|
15536
|
+
width: 150,
|
|
15470
15537
|
render: renderTextEllipsis
|
|
15471
15538
|
}, {
|
|
15472
|
-
dataIndex: '
|
|
15473
|
-
title: "\
|
|
15539
|
+
dataIndex: 'sizeCode',
|
|
15540
|
+
title: "\u5C3A\u7801\u4EE3\u7801",
|
|
15474
15541
|
align: 'center',
|
|
15475
15542
|
ellipsis: true,
|
|
15476
|
-
width:
|
|
15543
|
+
width: 150,
|
|
15477
15544
|
render: renderTextEllipsis
|
|
15478
15545
|
}, {
|
|
15479
|
-
dataIndex: '
|
|
15480
|
-
title: "\
|
|
15546
|
+
dataIndex: 'marketPrice',
|
|
15547
|
+
title: "\u5E02\u573A\u4EF7",
|
|
15481
15548
|
align: 'center',
|
|
15482
15549
|
ellipsis: true,
|
|
15483
|
-
width:
|
|
15484
|
-
render: renderTextEllipsis
|
|
15485
|
-
}, {
|
|
15486
|
-
dataIndex: 'tradeGoodsName',
|
|
15487
|
-
title: "\u4EA4\u6613\u8D27\u54C1\u540D\u79F0",
|
|
15488
|
-
ellipsis: true,
|
|
15489
|
-
width: 250,
|
|
15490
|
-
render: renderTextEllipsis
|
|
15491
|
-
}, {
|
|
15492
|
-
dataIndex: 'tradeGoodsSpec',
|
|
15493
|
-
title: "\u4EA4\u6613\u89C4\u683C\u540D\u79F0",
|
|
15494
|
-
ellipsis: true,
|
|
15495
|
-
width: 250,
|
|
15496
|
-
render: renderTextEllipsis
|
|
15497
|
-
}, {
|
|
15498
|
-
dataIndex: 'sourceSubtradeNo',
|
|
15499
|
-
title: "\u7F51\u5E97\u5B50\u8BA2\u5355\u53F7",
|
|
15500
|
-
ellipsis: true,
|
|
15501
|
-
width: 250,
|
|
15502
|
-
render: renderTextEllipsis
|
|
15503
|
-
}, {
|
|
15504
|
-
dataIndex: 'platGoodsId',
|
|
15505
|
-
title: "\u5E73\u53F0\u5546\u54C1ID",
|
|
15506
|
-
ellipsis: true,
|
|
15507
|
-
width: 250,
|
|
15550
|
+
width: 150,
|
|
15508
15551
|
render: renderTextEllipsis
|
|
15509
15552
|
}, {
|
|
15510
|
-
dataIndex: '
|
|
15511
|
-
title: "\
|
|
15553
|
+
dataIndex: 'retailPrice',
|
|
15554
|
+
title: "\u96F6\u552E\u4EF7",
|
|
15555
|
+
align: 'center',
|
|
15512
15556
|
ellipsis: true,
|
|
15513
|
-
width:
|
|
15557
|
+
width: 150,
|
|
15514
15558
|
render: renderTextEllipsis
|
|
15515
15559
|
}, {
|
|
15516
|
-
dataIndex: '
|
|
15517
|
-
title: "\
|
|
15560
|
+
dataIndex: 'memberPrice',
|
|
15561
|
+
title: "\u4F1A\u5458\u4EF7",
|
|
15562
|
+
align: 'center',
|
|
15518
15563
|
ellipsis: true,
|
|
15519
|
-
width:
|
|
15564
|
+
width: 150,
|
|
15520
15565
|
render: renderTextEllipsis
|
|
15521
15566
|
}, {
|
|
15522
|
-
dataIndex: '
|
|
15523
|
-
title: "\
|
|
15567
|
+
dataIndex: 'costPrice',
|
|
15568
|
+
title: "\u6210\u672C\u4EF7",
|
|
15569
|
+
align: 'center',
|
|
15524
15570
|
ellipsis: true,
|
|
15525
|
-
width:
|
|
15571
|
+
width: 150,
|
|
15526
15572
|
render: renderTextEllipsis
|
|
15527
15573
|
}, {
|
|
15528
|
-
dataIndex: '
|
|
15529
|
-
title: "\
|
|
15574
|
+
dataIndex: 'isVirtual',
|
|
15575
|
+
title: "\u662F\u5426\u865A\u62DF\u5546\u54C1",
|
|
15576
|
+
align: 'center',
|
|
15530
15577
|
ellipsis: true,
|
|
15531
|
-
width:
|
|
15532
|
-
render:
|
|
15578
|
+
width: 150,
|
|
15579
|
+
render: function render(val) {
|
|
15580
|
+
return renderTextEllipsis(getYesOrNo$2(val));
|
|
15581
|
+
}
|
|
15533
15582
|
}, {
|
|
15534
|
-
dataIndex: '
|
|
15535
|
-
title: "\
|
|
15583
|
+
dataIndex: 'skuType',
|
|
15584
|
+
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
15536
15585
|
ellipsis: true,
|
|
15537
|
-
width:
|
|
15538
|
-
render:
|
|
15586
|
+
width: 150,
|
|
15587
|
+
render: function render(val) {
|
|
15588
|
+
return renderTextEllipsis(getYesOrNo$2(val === 'combine'));
|
|
15589
|
+
}
|
|
15539
15590
|
}];
|
|
15540
15591
|
|
|
15541
15592
|
var getColumnsMap = function getColumnsMap() {
|
|
@@ -15809,7 +15860,7 @@ var transformFormData = function transformFormData(formData) {
|
|
|
15809
15860
|
if (formData[key]) {
|
|
15810
15861
|
var _formData$key, _formData$key2, _formData$key3, _formData$key4;
|
|
15811
15862
|
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];
|
|
15812
|
-
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 : 'like';
|
|
15863
|
+
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';
|
|
15813
15864
|
conditionList.push({
|
|
15814
15865
|
leftValue: key,
|
|
15815
15866
|
compareSymbol: compareSymbol,
|
|
@@ -15955,6 +16006,24 @@ var GoodList = function GoodList(props, ref) {
|
|
|
15955
16006
|
};
|
|
15956
16007
|
})
|
|
15957
16008
|
}
|
|
16009
|
+
}, {
|
|
16010
|
+
label: '是否组合装',
|
|
16011
|
+
name: 'skuType',
|
|
16012
|
+
dataIndex: 'skuType',
|
|
16013
|
+
type: 'select',
|
|
16014
|
+
formItemProps: {
|
|
16015
|
+
mode: 'multiple',
|
|
16016
|
+
filterOption: function filterOption(input, option) {
|
|
16017
|
+
return option.label.includes(input);
|
|
16018
|
+
},
|
|
16019
|
+
options: [{
|
|
16020
|
+
label: '组合装',
|
|
16021
|
+
value: 'suite'
|
|
16022
|
+
}, {
|
|
16023
|
+
label: '非组合装',
|
|
16024
|
+
value: ''
|
|
16025
|
+
}]
|
|
16026
|
+
}
|
|
15958
16027
|
}];
|
|
15959
16028
|
var rowSelection = {
|
|
15960
16029
|
selectedRowKeys: selectIds,
|
|
@@ -18778,13 +18847,15 @@ var JyGoodsModal$1 = /*#__PURE__*/forwardRef(JyGoodsModal);
|
|
|
18778
18847
|
var getTableData$6 = function getTableData(_ref, formData) {
|
|
18779
18848
|
var current = _ref.current,
|
|
18780
18849
|
pageSize = _ref.pageSize;
|
|
18850
|
+
var conditionList = transformFormData(formData);
|
|
18781
18851
|
return extendRequest('/qy/gdfw/product/product/page', {
|
|
18782
18852
|
method: 'post',
|
|
18783
|
-
data:
|
|
18853
|
+
data: {
|
|
18784
18854
|
pageSize: pageSize,
|
|
18785
18855
|
pageNo: current,
|
|
18786
|
-
platform: '
|
|
18787
|
-
|
|
18856
|
+
platform: 'JKY_ERP',
|
|
18857
|
+
conditionList: conditionList
|
|
18858
|
+
}
|
|
18788
18859
|
}).then(function (res) {
|
|
18789
18860
|
var _res$data = res.data,
|
|
18790
18861
|
_res$data$productSkuL = _res$data.productSkuList,
|
|
@@ -18807,13 +18878,15 @@ var searchFormData$5 = [{
|
|
|
18807
18878
|
}, {
|
|
18808
18879
|
label: '规格编码',
|
|
18809
18880
|
name: 'skuCode',
|
|
18810
|
-
dataIndex: 'specNo'
|
|
18881
|
+
dataIndex: 'specNo',
|
|
18882
|
+
type: 'optionalInput'
|
|
18811
18883
|
}, {
|
|
18812
|
-
label: '
|
|
18884
|
+
label: '货品名称',
|
|
18813
18885
|
name: 'goodName'
|
|
18814
18886
|
}, {
|
|
18815
|
-
label: '
|
|
18816
|
-
name: 'goodNo'
|
|
18887
|
+
label: '货品编码',
|
|
18888
|
+
name: 'goodNo',
|
|
18889
|
+
type: 'optionalInput'
|
|
18817
18890
|
}];
|
|
18818
18891
|
var GoodList$6 = function GoodList(props, ref) {
|
|
18819
18892
|
var _useState = useState([]),
|
|
@@ -18883,8 +18956,8 @@ var GoodList$6 = function GoodList(props, ref) {
|
|
|
18883
18956
|
getCheckboxProps: function getCheckboxProps(record) {
|
|
18884
18957
|
var options = {
|
|
18885
18958
|
disabled: (props.selectedRows || []).map(function (row) {
|
|
18886
|
-
return row.
|
|
18887
|
-
}).includes(record.
|
|
18959
|
+
return row.specId || record.id;
|
|
18960
|
+
}).includes(record.specId || record.id),
|
|
18888
18961
|
name: record.id
|
|
18889
18962
|
};
|
|
18890
18963
|
return options;
|
|
@@ -20331,7 +20404,7 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
20331
20404
|
};
|
|
20332
20405
|
};
|
|
20333
20406
|
|
|
20334
|
-
var getYesOrNo$
|
|
20407
|
+
var getYesOrNo$3 = function getYesOrNo(val) {
|
|
20335
20408
|
if (isNull(val)) return null;
|
|
20336
20409
|
return val ? '是' : '否';
|
|
20337
20410
|
};
|
|
@@ -20482,7 +20555,7 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
20482
20555
|
label: '否',
|
|
20483
20556
|
value: false
|
|
20484
20557
|
}]
|
|
20485
|
-
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$
|
|
20558
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$3(val));
|
|
20486
20559
|
},
|
|
20487
20560
|
width: 100
|
|
20488
20561
|
}]
|
|
@@ -20494,7 +20567,7 @@ var isNumberOrNumberString$1 = function isNumberOrNumberString(value) {
|
|
|
20494
20567
|
if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
|
|
20495
20568
|
return false;
|
|
20496
20569
|
};
|
|
20497
|
-
var getYesOrNo$
|
|
20570
|
+
var getYesOrNo$4 = function getYesOrNo(val) {
|
|
20498
20571
|
if (isNull(val)) return null;
|
|
20499
20572
|
return val ? '是' : '否';
|
|
20500
20573
|
};
|
|
@@ -20609,7 +20682,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
20609
20682
|
title: "\u662F\u5426\u53D6\u6D88",
|
|
20610
20683
|
width: 150,
|
|
20611
20684
|
render: function render(val) {
|
|
20612
|
-
return /*#__PURE__*/React.createElement("span", null, getYesOrNo$
|
|
20685
|
+
return /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
|
|
20613
20686
|
}
|
|
20614
20687
|
}, {
|
|
20615
20688
|
dataIndex: 'isGift',
|
|
@@ -20628,7 +20701,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
20628
20701
|
label: '否',
|
|
20629
20702
|
value: 0
|
|
20630
20703
|
}]
|
|
20631
|
-
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$
|
|
20704
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
|
|
20632
20705
|
}
|
|
20633
20706
|
}, {
|
|
20634
20707
|
dataIndex: 'skuNote',
|
|
@@ -20754,7 +20827,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
20754
20827
|
label: '否',
|
|
20755
20828
|
value: 0
|
|
20756
20829
|
}]
|
|
20757
|
-
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$
|
|
20830
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
|
|
20758
20831
|
}
|
|
20759
20832
|
}].map(function (item) {
|
|
20760
20833
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
@@ -20883,7 +20956,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
20883
20956
|
label: '否',
|
|
20884
20957
|
value: 0
|
|
20885
20958
|
}]
|
|
20886
|
-
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$
|
|
20959
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
|
|
20887
20960
|
}
|
|
20888
20961
|
}].map(function (item) {
|
|
20889
20962
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
@@ -21739,6 +21812,11 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
21739
21812
|
title: "\u4F9B\u5E94\u5546\u7F16\u7801",
|
|
21740
21813
|
width: 150,
|
|
21741
21814
|
render: renderTextEllipsis
|
|
21815
|
+
}, {
|
|
21816
|
+
dataIndex: 'remark',
|
|
21817
|
+
title: "\u5907\u6CE8",
|
|
21818
|
+
width: 200,
|
|
21819
|
+
render: renderTextEllipsis
|
|
21742
21820
|
}].map(function (item) {
|
|
21743
21821
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
21744
21822
|
align: 'center',
|
|
@@ -22523,7 +22601,7 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22523
22601
|
}
|
|
22524
22602
|
}, {
|
|
22525
22603
|
dataIndex: 'sellTotal',
|
|
22526
|
-
title: "\u91D1\u989D",
|
|
22604
|
+
title: "\u603B\u91D1\u989D",
|
|
22527
22605
|
width: 150
|
|
22528
22606
|
}, {
|
|
22529
22607
|
dataIndex: 'discountTotal',
|
|
@@ -22548,7 +22626,22 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22548
22626
|
}, {
|
|
22549
22627
|
dataIndex: 'divideSellTotal',
|
|
22550
22628
|
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
22551
|
-
width: 150
|
|
22629
|
+
width: 150,
|
|
22630
|
+
render: function render(val, record, index) {
|
|
22631
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
22632
|
+
style: {
|
|
22633
|
+
width: 130
|
|
22634
|
+
},
|
|
22635
|
+
value: val,
|
|
22636
|
+
min: 0,
|
|
22637
|
+
precision: 2,
|
|
22638
|
+
onChange: function onChange(num) {
|
|
22639
|
+
updateDataHandle({
|
|
22640
|
+
divideSellTotal: num
|
|
22641
|
+
}, index);
|
|
22642
|
+
}
|
|
22643
|
+
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
22644
|
+
}
|
|
22552
22645
|
}, {
|
|
22553
22646
|
dataIndex: 'isGift',
|
|
22554
22647
|
title: "\u662F\u5426\u8D60\u54C1",
|
|
@@ -22567,12 +22660,12 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22567
22660
|
},
|
|
22568
22661
|
options: [{
|
|
22569
22662
|
label: '是',
|
|
22570
|
-
value:
|
|
22663
|
+
value: 1
|
|
22571
22664
|
}, {
|
|
22572
22665
|
label: '否',
|
|
22573
|
-
value:
|
|
22666
|
+
value: 0
|
|
22574
22667
|
}]
|
|
22575
|
-
}) : /*#__PURE__*/React.createElement("span", null, val
|
|
22668
|
+
}) : /*#__PURE__*/React.createElement("span", null, val == 1 ? '是' : '否');
|
|
22576
22669
|
}
|
|
22577
22670
|
}, {
|
|
22578
22671
|
dataIndex: 'isFit',
|
|
@@ -22592,12 +22685,12 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22592
22685
|
},
|
|
22593
22686
|
options: [{
|
|
22594
22687
|
label: '是',
|
|
22595
|
-
value:
|
|
22688
|
+
value: 1
|
|
22596
22689
|
}, {
|
|
22597
22690
|
label: '否',
|
|
22598
|
-
value:
|
|
22691
|
+
value: 0
|
|
22599
22692
|
}]
|
|
22600
|
-
}) : /*#__PURE__*/React.createElement("span", null, val
|
|
22693
|
+
}) : /*#__PURE__*/React.createElement("span", null, val == 1 ? '是' : '否');
|
|
22601
22694
|
}
|
|
22602
22695
|
}, {
|
|
22603
22696
|
dataIndex: 'isPresell',
|
|
@@ -22622,7 +22715,7 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22622
22715
|
label: '否',
|
|
22623
22716
|
value: '0'
|
|
22624
22717
|
}]
|
|
22625
|
-
}) : /*#__PURE__*/React.createElement("span", null, val
|
|
22718
|
+
}) : /*#__PURE__*/React.createElement("span", null, val == '1' ? '是' : '否');
|
|
22626
22719
|
}
|
|
22627
22720
|
}, {
|
|
22628
22721
|
dataIndex: 'brandName',
|
|
@@ -22841,8 +22934,8 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22841
22934
|
width: 250,
|
|
22842
22935
|
render: function render(val, record, index) {
|
|
22843
22936
|
return !disabled ? /*#__PURE__*/React.createElement(ApaasInput, {
|
|
22844
|
-
onChange: function onChange(
|
|
22845
|
-
updateHandle(value, index, 'reason');
|
|
22937
|
+
onChange: function onChange(e) {
|
|
22938
|
+
updateHandle(e.target.value, index, 'reason');
|
|
22846
22939
|
}
|
|
22847
22940
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
22848
22941
|
}
|
|
@@ -22858,12 +22951,12 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22858
22951
|
},
|
|
22859
22952
|
options: [{
|
|
22860
22953
|
label: '是',
|
|
22861
|
-
value:
|
|
22954
|
+
value: 1
|
|
22862
22955
|
}, {
|
|
22863
22956
|
label: '否',
|
|
22864
|
-
value:
|
|
22957
|
+
value: 0
|
|
22865
22958
|
}]
|
|
22866
|
-
}) : /*#__PURE__*/React.createElement("span", null, val ===
|
|
22959
|
+
}) : /*#__PURE__*/React.createElement("span", null, val === 1 ? '是' : '否');
|
|
22867
22960
|
}
|
|
22868
22961
|
}, {
|
|
22869
22962
|
dataIndex: 'isFit',
|
|
@@ -22877,12 +22970,12 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22877
22970
|
},
|
|
22878
22971
|
options: [{
|
|
22879
22972
|
label: '是',
|
|
22880
|
-
value:
|
|
22973
|
+
value: 1
|
|
22881
22974
|
}, {
|
|
22882
22975
|
label: '否',
|
|
22883
|
-
value:
|
|
22976
|
+
value: 0
|
|
22884
22977
|
}]
|
|
22885
|
-
}) : /*#__PURE__*/React.createElement("span", null, val ===
|
|
22978
|
+
}) : /*#__PURE__*/React.createElement("span", null, val === 1 ? '是' : '否');
|
|
22886
22979
|
}
|
|
22887
22980
|
}, {
|
|
22888
22981
|
dataIndex: 'brandName',
|
|
@@ -23266,6 +23359,13 @@ var processGoods$1 = function processGoods(_ref) {
|
|
|
23266
23359
|
canUpdateNumber: canUpdateNumber,
|
|
23267
23360
|
source: source
|
|
23268
23361
|
});
|
|
23362
|
+
} else if (isErpType.isJky(type)) {
|
|
23363
|
+
newList = processJkyGoods$1({
|
|
23364
|
+
list: list,
|
|
23365
|
+
type: type,
|
|
23366
|
+
canUpdateNumber: canUpdateNumber,
|
|
23367
|
+
source: source
|
|
23368
|
+
});
|
|
23269
23369
|
} else {
|
|
23270
23370
|
newList = processDefaultGoods({
|
|
23271
23371
|
list: list,
|
|
@@ -23314,11 +23414,45 @@ var processJyGoods = function processJyGoods(_ref2) {
|
|
|
23314
23414
|
});
|
|
23315
23415
|
});
|
|
23316
23416
|
};
|
|
23317
|
-
|
|
23318
|
-
var processWdtGoods$1 = function processWdtGoods(_ref3) {
|
|
23417
|
+
var processJkyGoods$1 = function processJkyGoods(_ref3) {
|
|
23319
23418
|
var list = _ref3.list,
|
|
23320
|
-
type = _ref3.type,
|
|
23321
23419
|
canUpdateNumber = _ref3.canUpdateNumber;
|
|
23420
|
+
return list.map(function (item) {
|
|
23421
|
+
var goodName = item.goodName,
|
|
23422
|
+
goodNo = item.goodNo,
|
|
23423
|
+
goodId = item.goodId,
|
|
23424
|
+
specBarcode = item.specBarcode,
|
|
23425
|
+
retailPrice = item.retailPrice,
|
|
23426
|
+
isGift = item.isGift,
|
|
23427
|
+
skuType = item.skuType,
|
|
23428
|
+
specImgUrl = item.specImgUrl,
|
|
23429
|
+
categoryName = item.categoryName;
|
|
23430
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
23431
|
+
cateName: categoryName,
|
|
23432
|
+
goodsName: goodName,
|
|
23433
|
+
goodsNo: goodNo,
|
|
23434
|
+
goodsId: goodId,
|
|
23435
|
+
barcode: specBarcode,
|
|
23436
|
+
skuImgUrl: specImgUrl,
|
|
23437
|
+
combinationName: goodName,
|
|
23438
|
+
combinationCode: goodNo,
|
|
23439
|
+
isGift: isGift ? 1 : 0,
|
|
23440
|
+
isFit: skuType === 'combine' ? 1 : 0,
|
|
23441
|
+
uuid: uuid(),
|
|
23442
|
+
canDelete: true,
|
|
23443
|
+
sellCount: 1,
|
|
23444
|
+
sellPrice: retailPrice,
|
|
23445
|
+
sellTotal: retailPrice ? (retailPrice * 1).toFixed(2) : '',
|
|
23446
|
+
canEdit: true,
|
|
23447
|
+
canUpdateNumber: canUpdateNumber
|
|
23448
|
+
});
|
|
23449
|
+
});
|
|
23450
|
+
};
|
|
23451
|
+
// 处理不同类型的商品数据
|
|
23452
|
+
var processWdtGoods$1 = function processWdtGoods(_ref4) {
|
|
23453
|
+
var list = _ref4.list,
|
|
23454
|
+
type = _ref4.type,
|
|
23455
|
+
canUpdateNumber = _ref4.canUpdateNumber;
|
|
23322
23456
|
return list.map(function (item) {
|
|
23323
23457
|
var processedItem = _objectSpread2(_objectSpread2({}, item), {}, {
|
|
23324
23458
|
uuid: uuid(),
|
|
@@ -23336,9 +23470,9 @@ var processWdtGoods$1 = function processWdtGoods(_ref3) {
|
|
|
23336
23470
|
return processedItem;
|
|
23337
23471
|
});
|
|
23338
23472
|
};
|
|
23339
|
-
var processBsE3Goods$1 = function processBsE3Goods(
|
|
23340
|
-
var list =
|
|
23341
|
-
canUpdateNumber =
|
|
23473
|
+
var processBsE3Goods$1 = function processBsE3Goods(_ref5) {
|
|
23474
|
+
var list = _ref5.list,
|
|
23475
|
+
canUpdateNumber = _ref5.canUpdateNumber;
|
|
23342
23476
|
return list.map(function (item) {
|
|
23343
23477
|
var specNo = item.specNo,
|
|
23344
23478
|
specId = item.specId,
|
|
@@ -23373,9 +23507,9 @@ var processBsE3Goods$1 = function processBsE3Goods(_ref4) {
|
|
|
23373
23507
|
});
|
|
23374
23508
|
});
|
|
23375
23509
|
};
|
|
23376
|
-
var processGyGoods$1 = function processGyGoods(
|
|
23377
|
-
var list =
|
|
23378
|
-
source =
|
|
23510
|
+
var processGyGoods$1 = function processGyGoods(_ref6) {
|
|
23511
|
+
var list = _ref6.list,
|
|
23512
|
+
source = _ref6.source;
|
|
23379
23513
|
var isFormWorkOrder = source === 'workOrder';
|
|
23380
23514
|
return list.map(function (item) {
|
|
23381
23515
|
var goodName = item.goodName,
|
|
@@ -23402,8 +23536,8 @@ var processGyGoods$1 = function processGyGoods(_ref5) {
|
|
|
23402
23536
|
});
|
|
23403
23537
|
});
|
|
23404
23538
|
};
|
|
23405
|
-
var processJstGoods$1 = function processJstGoods(
|
|
23406
|
-
var list =
|
|
23539
|
+
var processJstGoods$1 = function processJstGoods(_ref7) {
|
|
23540
|
+
var list = _ref7.list;
|
|
23407
23541
|
return list.map(function (item) {
|
|
23408
23542
|
return {
|
|
23409
23543
|
name: item.goodName,
|
|
@@ -23421,9 +23555,9 @@ var processJstGoods$1 = function processJstGoods(_ref6) {
|
|
|
23421
23555
|
};
|
|
23422
23556
|
});
|
|
23423
23557
|
};
|
|
23424
|
-
var processKmGoods$1 = function processKmGoods(
|
|
23425
|
-
var list =
|
|
23426
|
-
type =
|
|
23558
|
+
var processKmGoods$1 = function processKmGoods(_ref8) {
|
|
23559
|
+
var list = _ref8.list,
|
|
23560
|
+
type = _ref8.type;
|
|
23427
23561
|
var initParamsMap = {
|
|
23428
23562
|
KM_GOODS: {
|
|
23429
23563
|
num: 1
|
|
@@ -23442,7 +23576,9 @@ var processKmGoods$1 = function processKmGoods(_ref7) {
|
|
|
23442
23576
|
sysOuterId: item.goodNo,
|
|
23443
23577
|
outerId: item.goodNo,
|
|
23444
23578
|
skuSysId: item.specId,
|
|
23579
|
+
sysSkuId: item.specId,
|
|
23445
23580
|
itemSysId: item.goodId,
|
|
23581
|
+
sysItemId: item.goodId,
|
|
23446
23582
|
sysPicPath: item.goodPicUrl,
|
|
23447
23583
|
payment: null,
|
|
23448
23584
|
price: item.retailPrice,
|
|
@@ -23453,9 +23589,9 @@ var processKmGoods$1 = function processKmGoods(_ref7) {
|
|
|
23453
23589
|
}, initParamsMap[type] || {});
|
|
23454
23590
|
});
|
|
23455
23591
|
};
|
|
23456
|
-
var processDefaultGoods = function processDefaultGoods(
|
|
23457
|
-
var list =
|
|
23458
|
-
canUpdateNumber =
|
|
23592
|
+
var processDefaultGoods = function processDefaultGoods(_ref9) {
|
|
23593
|
+
var list = _ref9.list,
|
|
23594
|
+
canUpdateNumber = _ref9.canUpdateNumber;
|
|
23459
23595
|
return list.map(function (item) {
|
|
23460
23596
|
var goodsId = item.goodsId,
|
|
23461
23597
|
name = item.name,
|
|
@@ -23561,7 +23697,7 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
23561
23697
|
systemItemIds = dataSource === null || dataSource === void 0 ? void 0 : dataSource.filter(function (item) {
|
|
23562
23698
|
return item === null || item === void 0 ? void 0 : item.sysItemId;
|
|
23563
23699
|
}).map(function (item) {
|
|
23564
|
-
return (item === null || item === void 0 ? void 0 : item.sysSkuId) == '-1' ? item === null || item === void 0 ? void 0 : item.sysItemId : "".concat(item === null || item === void 0 ? void 0 : item.sysItemId, "-").concat(item === null || item === void 0 ? void 0 : item.sysSkuId);
|
|
23700
|
+
return !(item === null || item === void 0 ? void 0 : item.sysSkuId) || (item === null || item === void 0 ? void 0 : item.sysSkuId) == '-1' || (item === null || item === void 0 ? void 0 : item.sysSkuId) == (item === null || item === void 0 ? void 0 : item.sysItemId) ? item === null || item === void 0 ? void 0 : item.sysItemId : "".concat(item === null || item === void 0 ? void 0 : item.sysItemId, "-").concat(item === null || item === void 0 ? void 0 : item.sysSkuId);
|
|
23565
23701
|
});
|
|
23566
23702
|
_context.next = 3;
|
|
23567
23703
|
return servers.KM.getSupplierSingleton(systemItemIds);
|
|
@@ -23570,7 +23706,7 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
23570
23706
|
dataSource === null || dataSource === void 0 ? void 0 : (_dataSource$filter = dataSource.filter(function (item) {
|
|
23571
23707
|
return item === null || item === void 0 ? void 0 : item.sysItemId;
|
|
23572
23708
|
})) === null || _dataSource$filter === void 0 ? void 0 : _dataSource$filter.forEach(function (item) {
|
|
23573
|
-
var key = (item === null || item === void 0 ? void 0 : item.sysSkuId) == '-1' ? item === null || item === void 0 ? void 0 : item.sysItemId : "".concat(item === null || item === void 0 ? void 0 : item.sysItemId, "-").concat(item === null || item === void 0 ? void 0 : item.sysSkuId);
|
|
23709
|
+
var key = !(item === null || item === void 0 ? void 0 : item.sysSkuId) || (item === null || item === void 0 ? void 0 : item.sysSkuId) == '-1' || (item === null || item === void 0 ? void 0 : item.sysSkuId) == (item === null || item === void 0 ? void 0 : item.sysItemId) ? item === null || item === void 0 ? void 0 : item.sysItemId : "".concat(item === null || item === void 0 ? void 0 : item.sysItemId, "-").concat(item === null || item === void 0 ? void 0 : item.sysSkuId);
|
|
23574
23710
|
var supplierInfo = supplierMap.get(key);
|
|
23575
23711
|
item.supplierCode = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierCode;
|
|
23576
23712
|
item.supplierName = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierName;
|
|
@@ -23728,6 +23864,7 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
23728
23864
|
}
|
|
23729
23865
|
}), /*#__PURE__*/React.createElement("span", null, "\u5DF2\u9009\u62E9(", currentTradeOriginGoods === null || currentTradeOriginGoods === void 0 ? void 0 : currentTradeOriginGoods.length, "/", filterDataSource === null || filterDataSource === void 0 ? void 0 : filterDataSource.length, ")")));
|
|
23730
23866
|
};
|
|
23867
|
+
SelectTradeGoods.displayName = 'SelectTradeGoods';
|
|
23731
23868
|
var getButtonText = function getButtonText() {
|
|
23732
23869
|
var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
23733
23870
|
if (['KM_GOODS', 'KM_REISSUE_GOODS'].includes(type)) {
|
|
@@ -25117,21 +25254,25 @@ var getJkyOrderListSingleton = function getJkyOrderListSingleton(orderNo) {
|
|
|
25117
25254
|
extendRequest('/qy/gdfw/jky/erp/trade/fullInfo', {
|
|
25118
25255
|
method: 'post',
|
|
25119
25256
|
data: {
|
|
25120
|
-
|
|
25257
|
+
sourceTradeNos: orderNo
|
|
25121
25258
|
}
|
|
25122
25259
|
}).then(function (res) {
|
|
25123
25260
|
if (res === null || res === void 0 ? void 0 : res.success) {
|
|
25124
|
-
var _res$data, _res$
|
|
25125
|
-
if (res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 :
|
|
25126
|
-
var _filterJkyOrders
|
|
25127
|
-
res.data.trades = (_filterJkyOrders = filterJkyOrders(res === null || res === void 0 ? void 0 :
|
|
25261
|
+
var _res$data, _res$data2;
|
|
25262
|
+
if (res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.length) {
|
|
25263
|
+
var _filterJkyOrders;
|
|
25264
|
+
res.data.trades = (_filterJkyOrders = filterJkyOrders(res === null || res === void 0 ? void 0 : res.data, orderNo)) === null || _filterJkyOrders === void 0 ? void 0 : _filterJkyOrders.map(function (item) {
|
|
25128
25265
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
25266
|
+
tradeFrom: JKY_ORDER_FROM_MAP[item.tradeFrom],
|
|
25129
25267
|
tradeType: JKY_ORDER_TYPE_MAP[item.tradeType],
|
|
25130
|
-
tradeStatus: JKY_ORDER_STATUS_MAP[item.tradeStatus]
|
|
25268
|
+
tradeStatus: JKY_ORDER_STATUS_MAP[item.tradeStatus],
|
|
25269
|
+
logisticName: getJkyLogisticInfo(item, 'logisticName'),
|
|
25270
|
+
logisticCode: getJkyLogisticInfo(item, 'logisticCode'),
|
|
25271
|
+
logisticNo: getJkyLogisticInfo(item, 'logisticNo')
|
|
25131
25272
|
});
|
|
25132
25273
|
});
|
|
25133
25274
|
}
|
|
25134
|
-
resolve(((_res$
|
|
25275
|
+
resolve(((_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.trades) || []);
|
|
25135
25276
|
// 延迟10秒清除,保证订单的时效性
|
|
25136
25277
|
setTimeout(function () {
|
|
25137
25278
|
singletonMap$7.delete(orderNo);
|
|
@@ -25493,8 +25634,8 @@ var index$2 = (function (props) {
|
|
|
25493
25634
|
while (1) switch (_context8.prev = _context8.next) {
|
|
25494
25635
|
case 0:
|
|
25495
25636
|
jyUtils.getJyOrderListSingleton(orderNo).then(function (data) {
|
|
25496
|
-
var trades = (
|
|
25497
|
-
return getIsPlatformCodesIncludeOrderNos(item.
|
|
25637
|
+
var trades = (data || []).filter(function (item) {
|
|
25638
|
+
return getIsPlatformCodesIncludeOrderNos(item.tradeId, orderNo);
|
|
25498
25639
|
});
|
|
25499
25640
|
_onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, {
|
|
25500
25641
|
orders: trades,
|
|
@@ -25524,12 +25665,9 @@ var index$2 = (function (props) {
|
|
|
25524
25665
|
while (1) switch (_context9.prev = _context9.next) {
|
|
25525
25666
|
case 0:
|
|
25526
25667
|
jkyUtils.getJkyOrderListSingleton(orderNo).then(function (data) {
|
|
25527
|
-
var trades = ((data === null || data === void 0 ? void 0 : data.trades) || []).filter(function (item) {
|
|
25528
|
-
return getIsPlatformCodesIncludeOrderNos(item.platformCode, orderNo);
|
|
25529
|
-
});
|
|
25530
25668
|
_onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, {
|
|
25531
|
-
orders:
|
|
25532
|
-
showOrderInfo:
|
|
25669
|
+
orders: data || [],
|
|
25670
|
+
showOrderInfo: data || []
|
|
25533
25671
|
}));
|
|
25534
25672
|
});
|
|
25535
25673
|
onceRef.current = false;
|
|
@@ -26506,8 +26644,8 @@ var processGyOrders = function processGyOrders(_ref4) {
|
|
|
26506
26644
|
var processJyOrders = function processJyOrders(_ref5) {
|
|
26507
26645
|
var data = _ref5.data,
|
|
26508
26646
|
orderNo = _ref5.orderNo;
|
|
26509
|
-
var trades = (
|
|
26510
|
-
return getIsPlatformCodesIncludeOrderNos(item.
|
|
26647
|
+
var trades = (data || []).filter(function (item) {
|
|
26648
|
+
return getIsPlatformCodesIncludeOrderNos(item.tradeId, orderNo);
|
|
26511
26649
|
});
|
|
26512
26650
|
return trades;
|
|
26513
26651
|
};
|
|
@@ -26832,7 +26970,7 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
26832
26970
|
value === null || value === void 0 ? void 0 : (_value$kmGoods = value.kmGoods) === null || _value$kmGoods === void 0 ? void 0 : (_value$kmGoods$filter = _value$kmGoods.filter(function (item) {
|
|
26833
26971
|
return item === null || item === void 0 ? void 0 : item.sysItemId;
|
|
26834
26972
|
})) === null || _value$kmGoods$filter === void 0 ? void 0 : _value$kmGoods$filter.forEach(function (item) {
|
|
26835
|
-
var key = item.sysSkuId == '-1' ? item.sysItemId : "".concat(item.sysItemId, "-").concat(item.sysSkuId);
|
|
26973
|
+
var key = !(item === null || item === void 0 ? void 0 : item.sysSkuId) || (item === null || item === void 0 ? void 0 : item.sysSkuId) == '-1' || (item === null || item === void 0 ? void 0 : item.sysSkuId) == (item === null || item === void 0 ? void 0 : item.sysItemId) ? item === null || item === void 0 ? void 0 : item.sysItemId : "".concat(item === null || item === void 0 ? void 0 : item.sysItemId, "-").concat(item === null || item === void 0 ? void 0 : item.sysSkuId);
|
|
26836
26974
|
map[key] = item;
|
|
26837
26975
|
});
|
|
26838
26976
|
}
|
|
@@ -26873,7 +27011,8 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
26873
27011
|
hasChange = false;
|
|
26874
27012
|
currentValue = valueRef.current;
|
|
26875
27013
|
kmGoods = currentValue === null || currentValue === void 0 ? void 0 : (_currentValue$kmGoods = currentValue.kmGoods) === null || _currentValue$kmGoods === void 0 ? void 0 : _currentValue$kmGoods.map(function (item) {
|
|
26876
|
-
var
|
|
27014
|
+
var key = !(item === null || item === void 0 ? void 0 : item.sysSkuId) || (item === null || item === void 0 ? void 0 : item.sysSkuId) == '-1' || (item === null || item === void 0 ? void 0 : item.sysSkuId) == (item === null || item === void 0 ? void 0 : item.sysItemId) ? item === null || item === void 0 ? void 0 : item.sysItemId : "".concat(item === null || item === void 0 ? void 0 : item.sysItemId, "-").concat(item === null || item === void 0 ? void 0 : item.sysSkuId);
|
|
27015
|
+
var supplierInfo = supplierMap.get(key);
|
|
26877
27016
|
var newSupplierCode = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierCode;
|
|
26878
27017
|
var newSupplierName = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierName;
|
|
26879
27018
|
// 如果供应商信息有变化,标记需要更新
|
|
@@ -27157,7 +27296,6 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
27157
27296
|
orderNo: value === null || value === void 0 ? void 0 : value.orderNo,
|
|
27158
27297
|
type: compType
|
|
27159
27298
|
});
|
|
27160
|
-
console.log('getDataSourceAsync', list);
|
|
27161
27299
|
onChange(_objectSpread2(_objectSpread2({}, valueRef.current), {}, {
|
|
27162
27300
|
allOrders: list || []
|
|
27163
27301
|
}));
|
|
@@ -27193,6 +27331,7 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
27193
27331
|
}
|
|
27194
27332
|
}));
|
|
27195
27333
|
};
|
|
27334
|
+
CommonGoods.displayName = 'CommonGoods';
|
|
27196
27335
|
|
|
27197
27336
|
var componentMap$3 = {
|
|
27198
27337
|
WDT_RETURN_GOODS: {
|
|
@@ -27856,14 +27995,14 @@ var typeMap$2 = {
|
|
|
27856
27995
|
alwaysShowChooseErpGoodsBtn: true,
|
|
27857
27996
|
orderTypeKey: 'orderType',
|
|
27858
27997
|
oIdKey: 'tradeNo',
|
|
27859
|
-
outerOiIdKey: '',
|
|
27860
|
-
goodDetailsKey: '
|
|
27998
|
+
outerOiIdKey: 'sourceSubtradeNo',
|
|
27999
|
+
goodDetailsKey: 'goodsDetail',
|
|
27861
28000
|
isShowSelectTradeGoods: true,
|
|
27862
28001
|
showModeBtn: true
|
|
27863
28002
|
}
|
|
27864
28003
|
};
|
|
27865
28004
|
var PublicReissue = function PublicReissue(props) {
|
|
27866
|
-
var _typeMap$
|
|
28005
|
+
var _typeMap$type35, _typeMap$type41, _typeMap$type42, _typeMap$type43, _typeMap$type44, _value$typeMap$type$s8, _typeMap$type45, _typeMap$type46, _typeMap$type47, _typeMap$type48, _typeMap$type49, _typeMap$type50, _typeMap$type51, _typeMap$type52, _value$typeMap$type$s9, _typeMap$type53, _typeMap$type54, _typeMap$type55, _typeMap$type56;
|
|
27867
28006
|
var value = props.value,
|
|
27868
28007
|
onChange = props.onChange,
|
|
27869
28008
|
_props$reasonList = props.reasonList,
|
|
@@ -27986,7 +28125,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
27986
28125
|
value === null || value === void 0 ? void 0 : (_value$kmReissueGoods = value.kmReissueGoods) === null || _value$kmReissueGoods === void 0 ? void 0 : (_value$kmReissueGoods2 = _value$kmReissueGoods.filter(function (item) {
|
|
27987
28126
|
return item === null || item === void 0 ? void 0 : item.sysItemId;
|
|
27988
28127
|
})) === null || _value$kmReissueGoods2 === void 0 ? void 0 : _value$kmReissueGoods2.forEach(function (item) {
|
|
27989
|
-
var key = item.sysSkuId == '-1' ? item.sysItemId : "".concat(item.sysItemId, "-").concat(item.sysSkuId);
|
|
28128
|
+
var key = !(item === null || item === void 0 ? void 0 : item.sysSkuId) || (item === null || item === void 0 ? void 0 : item.sysSkuId) == '-1' || (item === null || item === void 0 ? void 0 : item.sysSkuId) == (item === null || item === void 0 ? void 0 : item.sysItemId) ? item === null || item === void 0 ? void 0 : item.sysItemId : "".concat(item === null || item === void 0 ? void 0 : item.sysItemId, "-").concat(item === null || item === void 0 ? void 0 : item.sysSkuId);
|
|
27990
28129
|
map[key] = item;
|
|
27991
28130
|
});
|
|
27992
28131
|
}
|
|
@@ -28027,7 +28166,8 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28027
28166
|
hasChange = false;
|
|
28028
28167
|
currentValue = valueRef.current;
|
|
28029
28168
|
kmReissueGoods = currentValue === null || currentValue === void 0 ? void 0 : (_currentValue$kmReiss = currentValue.kmReissueGoods) === null || _currentValue$kmReiss === void 0 ? void 0 : _currentValue$kmReiss.map(function (item) {
|
|
28030
|
-
var
|
|
28169
|
+
var key = !(item === null || item === void 0 ? void 0 : item.sysSkuId) || (item === null || item === void 0 ? void 0 : item.sysSkuId) == '-1' || (item === null || item === void 0 ? void 0 : item.sysSkuId) == (item === null || item === void 0 ? void 0 : item.sysItemId) ? item === null || item === void 0 ? void 0 : item.sysItemId : "".concat(item === null || item === void 0 ? void 0 : item.sysItemId, "-").concat(item === null || item === void 0 ? void 0 : item.sysSkuId);
|
|
28170
|
+
var supplierInfo = supplierMap.get(key);
|
|
28031
28171
|
var newSupplierCode = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierCode;
|
|
28032
28172
|
var newSupplierName = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierName;
|
|
28033
28173
|
// 如果供应商信息有变化,标记需要更新
|
|
@@ -28063,7 +28203,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28063
28203
|
}
|
|
28064
28204
|
}, [sysItemIdMap]);
|
|
28065
28205
|
var getGoodDetails = function getGoodDetails(_ref5) {
|
|
28066
|
-
var _typeMap$type18, _typeMap$type19, _value$typeMap$type$s6, _typeMap$type20, _typeMap$type21, _typeMap$type22, _typeMap$type23
|
|
28206
|
+
var _typeMap$type18, _typeMap$type19, _value$typeMap$type$s6, _typeMap$type20, _typeMap$type21, _typeMap$type22, _typeMap$type23;
|
|
28067
28207
|
var mode = _ref5.mode,
|
|
28068
28208
|
sysOrderNo = _ref5.sysOrderNo,
|
|
28069
28209
|
_ref5$isAllOrders = _ref5.isAllOrders,
|
|
@@ -28095,8 +28235,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28095
28235
|
var _order$typeMap$type$g;
|
|
28096
28236
|
return order === null || order === void 0 ? void 0 : (_order$typeMap$type$g = order[typeMap$2[type].goodDetailsKey]) === null || _order$typeMap$type$g === void 0 ? void 0 : _order$typeMap$type$g.length;
|
|
28097
28237
|
});
|
|
28098
|
-
|
|
28099
|
-
var goodDetails = hasGoodDetails ? (!isAllOrders || ((_typeMap$type22 = typeMap$2[type]) === null || _typeMap$type22 === void 0 ? void 0 : _typeMap$type22.isSelectTradeGoodsMerge)) && typeMap$2[type].mergeIdenticalGoods ? typeMap$2[type].mergeIdenticalGoods((_typeMap$type23 = typeMap$2[type]) === null || _typeMap$type23 === void 0 ? void 0 : _typeMap$type23.updateGoodsHandle(orders, orderRest)) : (_typeMap$type24 = typeMap$2[type]) === null || _typeMap$type24 === void 0 ? void 0 : _typeMap$type24.updateGoodsHandle(orders, orderRest) : [];
|
|
28238
|
+
var goodDetails = hasGoodDetails ? (!isAllOrders || ((_typeMap$type21 = typeMap$2[type]) === null || _typeMap$type21 === void 0 ? void 0 : _typeMap$type21.isSelectTradeGoodsMerge)) && typeMap$2[type].mergeIdenticalGoods ? typeMap$2[type].mergeIdenticalGoods((_typeMap$type22 = typeMap$2[type]) === null || _typeMap$type22 === void 0 ? void 0 : _typeMap$type22.updateGoodsHandle(orders, orderRest)) : (_typeMap$type23 = typeMap$2[type]) === null || _typeMap$type23 === void 0 ? void 0 : _typeMap$type23.updateGoodsHandle(orders, orderRest) : [];
|
|
28100
28239
|
var orderNo = systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orderNo;
|
|
28101
28240
|
var list = mode && !isAllOrders ? goodDetails.filter(function (goodItem) {
|
|
28102
28241
|
return !orderNo || goodItem[typeMap$2[type].outerOiIdKey] === orderNo;
|
|
@@ -28104,30 +28243,30 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28104
28243
|
return list;
|
|
28105
28244
|
};
|
|
28106
28245
|
var changeGoodHandle = function changeGoodHandle(val) {
|
|
28107
|
-
var _typeMap$
|
|
28246
|
+
var _typeMap$type24;
|
|
28108
28247
|
var newValue = _objectSpread2({}, value);
|
|
28109
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28248
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type24 = typeMap$2[type]) === null || _typeMap$type24 === void 0 ? void 0 : _typeMap$type24.key)] = val || [];
|
|
28110
28249
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
28111
28250
|
};
|
|
28112
28251
|
var changeSystemOrderHandle = function changeSystemOrderHandle(val) {
|
|
28113
|
-
var _typeMap$
|
|
28252
|
+
var _typeMap$type25, _typeMap$type26, _value$typeMap$type$t2, _typeMap$type31, _value$typeMap$type$t3, _typeMap$type33;
|
|
28114
28253
|
var newValue = _objectSpread2({}, value);
|
|
28115
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28116
|
-
if (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28117
|
-
var _value$typeMap$type$s7, _typeMap$
|
|
28118
|
-
var orders = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s7 = value[(_typeMap$
|
|
28254
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type25 = typeMap$2[type]) === null || _typeMap$type25 === void 0 ? void 0 : _typeMap$type25.systemOrderNo)] = val;
|
|
28255
|
+
if (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type26 = typeMap$2[type]) === null || _typeMap$type26 === void 0 ? void 0 : _typeMap$type26.systemOrderBillType) {
|
|
28256
|
+
var _value$typeMap$type$s7, _typeMap$type27, _typeMap$type29, _typeMap$type30;
|
|
28257
|
+
var orders = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s7 = value[(_typeMap$type27 = typeMap$2[type]) === null || _typeMap$type27 === void 0 ? void 0 : _typeMap$type27.systemOrder]) === null || _value$typeMap$type$s7 === void 0 ? void 0 : _value$typeMap$type$s7.orders) || [];
|
|
28119
28258
|
var targetOrder = val && orders.find(function (oItem) {
|
|
28120
|
-
var _typeMap$
|
|
28121
|
-
return oItem[(_typeMap$
|
|
28259
|
+
var _typeMap$type28;
|
|
28260
|
+
return oItem[(_typeMap$type28 = typeMap$2[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.oIdKey] === val;
|
|
28122
28261
|
});
|
|
28123
|
-
newValue[(_typeMap$
|
|
28124
|
-
}
|
|
28125
|
-
if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$
|
|
28126
|
-
var _typeMap$
|
|
28127
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28128
|
-
} else if (['1'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$
|
|
28129
|
-
var _typeMap$
|
|
28130
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28262
|
+
newValue[(_typeMap$type29 = typeMap$2[type]) === null || _typeMap$type29 === void 0 ? void 0 : _typeMap$type29.systemOrderBillType] = targetOrder === null || targetOrder === void 0 ? void 0 : targetOrder[(_typeMap$type30 = typeMap$2[type]) === null || _typeMap$type30 === void 0 ? void 0 : _typeMap$type30.orderTypeKey];
|
|
28263
|
+
}
|
|
28264
|
+
if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$type31 = typeMap$2[type]) === null || _typeMap$type31 === void 0 ? void 0 : _typeMap$type31.typeName]) === null || _value$typeMap$type$t2 === void 0 ? void 0 : _value$typeMap$type$t2[0])) {
|
|
28265
|
+
var _typeMap$type32;
|
|
28266
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type32 = typeMap$2[type]) === null || _typeMap$type32 === void 0 ? void 0 : _typeMap$type32.key)] = [];
|
|
28267
|
+
} else if (['1'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$type33 = typeMap$2[type]) === null || _typeMap$type33 === void 0 ? void 0 : _typeMap$type33.typeName]) === null || _value$typeMap$type$t3 === void 0 ? void 0 : _value$typeMap$type$t3[0])) {
|
|
28268
|
+
var _typeMap$type34;
|
|
28269
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type34 = typeMap$2[type]) === null || _typeMap$type34 === void 0 ? void 0 : _typeMap$type34.key)] = getGoodDetails({
|
|
28131
28270
|
mode: isStrict,
|
|
28132
28271
|
sysOrderNo: val
|
|
28133
28272
|
});
|
|
@@ -28135,27 +28274,27 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28135
28274
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue, 'systemOrder');
|
|
28136
28275
|
};
|
|
28137
28276
|
//显示选择商品按钮
|
|
28138
|
-
var showChangeBtn = !!(value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
28277
|
+
var showChangeBtn = !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type35 = typeMap$2[type]) === null || _typeMap$type35 === void 0 ? void 0 : _typeMap$type35.systemOrderNo]);
|
|
28139
28278
|
var selectedGoodsChange = useCallback(function (skuList) {
|
|
28140
|
-
var _typeMap$
|
|
28279
|
+
var _typeMap$type36, _typeMap$type37, _typeMap$type38, _uniqBy, _typeMap$type39;
|
|
28141
28280
|
var newValue = _objectSpread2({}, value);
|
|
28142
28281
|
// 原订单商品
|
|
28143
28282
|
var originTradeGoodList = getGoodDetails({
|
|
28144
28283
|
mode: isStrict,
|
|
28145
|
-
isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28284
|
+
isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type36 = typeMap$2[type]) === null || _typeMap$type36 === void 0 ? void 0 : _typeMap$type36.isShowSelectTradeGoods
|
|
28146
28285
|
}) || [];
|
|
28147
28286
|
// 当前选中的所有商品【包含了原订单+商品库】
|
|
28148
|
-
var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28149
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28150
|
-
var _typeMap$
|
|
28151
|
-
return skuList.includes(item[(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28287
|
+
var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type37 = typeMap$2[type]) === null || _typeMap$type37 === void 0 ? void 0 : _typeMap$type37.key)]) || [];
|
|
28288
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type38 = typeMap$2[type]) === null || _typeMap$type38 === void 0 ? void 0 : _typeMap$type38.key)] = (_uniqBy = uniqBy(originTradeGoodList.concat(currentSelectGoodList), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type39 = typeMap$2[type]) === null || _typeMap$type39 === void 0 ? void 0 : _typeMap$type39.uniqueKey) || 'uuid')) === null || _uniqBy === void 0 ? void 0 : _uniqBy.filter(function (item) {
|
|
28289
|
+
var _typeMap$type40;
|
|
28290
|
+
return skuList.includes(item[(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type40 = typeMap$2[type]) === null || _typeMap$type40 === void 0 ? void 0 : _typeMap$type40.uniqueKey) || 'uuid']);
|
|
28152
28291
|
});
|
|
28153
28292
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
28154
|
-
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28293
|
+
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type41 = typeMap$2[type]) === null || _typeMap$type41 === void 0 ? void 0 : _typeMap$type41.key)], isStrict]);
|
|
28155
28294
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
|
|
28156
28295
|
gutter: 8,
|
|
28157
28296
|
wrap: true,
|
|
28158
|
-
id: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28297
|
+
id: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type42 = typeMap$2[type]) === null || _typeMap$type42 === void 0 ? void 0 : _typeMap$type42.key) || "".concat(Date.now())
|
|
28159
28298
|
}, /*#__PURE__*/React.createElement(Col, {
|
|
28160
28299
|
className: "gutter-row",
|
|
28161
28300
|
xs: {
|
|
@@ -28171,12 +28310,12 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28171
28310
|
},
|
|
28172
28311
|
disabled: disabled,
|
|
28173
28312
|
allowClear: false,
|
|
28174
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28313
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type43 = typeMap$2[type]) === null || _typeMap$type43 === void 0 ? void 0 : _typeMap$type43.systemOrderNo)],
|
|
28175
28314
|
onChange: function onChange(val) {
|
|
28176
28315
|
return changeSystemOrderHandle(val);
|
|
28177
28316
|
},
|
|
28178
|
-
placeholder: "\u9009\u62E9".concat((typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28179
|
-
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s8 = value[(_typeMap$
|
|
28317
|
+
placeholder: "\u9009\u62E9".concat((typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type44 = typeMap$2[type]) === null || _typeMap$type44 === void 0 ? void 0 : _typeMap$type44.compType) || '', "\u7CFB\u7EDF\u5355")
|
|
28318
|
+
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s8 = value[(_typeMap$type45 = typeMap$2[type]) === null || _typeMap$type45 === void 0 ? void 0 : _typeMap$type45.systemOrder]) === null || _value$typeMap$type$s8 === void 0 ? void 0 : _value$typeMap$type$s8.showOrderInfo) || []).map(function (item) {
|
|
28180
28319
|
return /*#__PURE__*/React.createElement(Select.Option, {
|
|
28181
28320
|
key: item[typeMap$2[type].oIdKey],
|
|
28182
28321
|
value: item[typeMap$2[type].oIdKey],
|
|
@@ -28198,11 +28337,11 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28198
28337
|
disabled: isSettingConfig ? !isSettingConfig : disabled,
|
|
28199
28338
|
allowClear: false,
|
|
28200
28339
|
options: reasonList,
|
|
28201
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28340
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type46 = typeMap$2[type]) === null || _typeMap$type46 === void 0 ? void 0 : _typeMap$type46.typeName)],
|
|
28202
28341
|
onChange: function onChange(val) {
|
|
28203
28342
|
return changeTypeHandle(val);
|
|
28204
28343
|
}
|
|
28205
|
-
})), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28344
|
+
})), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type47 = typeMap$2[type]) === null || _typeMap$type47 === void 0 ? void 0 : _typeMap$type47.systemOrderBillType) && !isSettingConfig && /*#__PURE__*/React.createElement(Col, {
|
|
28206
28345
|
className: "gutter-row",
|
|
28207
28346
|
xs: {
|
|
28208
28347
|
span: 11
|
|
@@ -28211,7 +28350,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28211
28350
|
span: 6
|
|
28212
28351
|
}
|
|
28213
28352
|
}, /*#__PURE__*/React.createElement(Input, {
|
|
28214
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28353
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type48 = typeMap$2[type]) === null || _typeMap$type48 === void 0 ? void 0 : _typeMap$type48.systemOrderBillType)],
|
|
28215
28354
|
disabled: disabled,
|
|
28216
28355
|
readOnly: true
|
|
28217
28356
|
}))), /*#__PURE__*/React.createElement(GoodItem$1, _objectSpread2(_objectSpread2({
|
|
@@ -28222,29 +28361,30 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28222
28361
|
canUpdateNumber: showChangeBtn,
|
|
28223
28362
|
hasSelectedSystemOrder: showChangeBtn,
|
|
28224
28363
|
// showChangeBtn={showChangeBtn || typeMap?.[type]?.isShowSelectTradeGoods}
|
|
28225
|
-
alwaysShowChooseErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28364
|
+
alwaysShowChooseErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type49 = typeMap$2[type]) === null || _typeMap$type49 === void 0 ? void 0 : _typeMap$type49.alwaysShowChooseErpGoodsBtn,
|
|
28226
28365
|
// showErpGoodsBtn={typeMap?.[type]?.showErpGoodsBtn}
|
|
28227
28366
|
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
28228
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28367
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type50 = typeMap$2[type]) === null || _typeMap$type50 === void 0 ? void 0 : _typeMap$type50.key)],
|
|
28229
28368
|
onChange: function onChange(val) {
|
|
28230
28369
|
return changeGoodHandle(val);
|
|
28231
28370
|
},
|
|
28232
28371
|
onModeChange: handleModeChange,
|
|
28233
|
-
showModeBtn: !!(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28372
|
+
showModeBtn: !!(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type51 = typeMap$2[type]) === null || _typeMap$type51 === void 0 ? void 0 : _typeMap$type51.showModeBtn),
|
|
28234
28373
|
isStrict: isStrict,
|
|
28235
|
-
isShowSelectTradeGoods: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28236
|
-
systemOrders: value === null || value === void 0 ? void 0 : (_value$typeMap$type$s9 = value[(_typeMap$
|
|
28237
|
-
selectedSystemOrders: showChangeBtn ? [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28374
|
+
isShowSelectTradeGoods: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type52 = typeMap$2[type]) === null || _typeMap$type52 === void 0 ? void 0 : _typeMap$type52.isShowSelectTradeGoods,
|
|
28375
|
+
systemOrders: value === null || value === void 0 ? void 0 : (_value$typeMap$type$s9 = value[(_typeMap$type53 = typeMap$2[type]) === null || _typeMap$type53 === void 0 ? void 0 : _typeMap$type53.systemOrder]) === null || _value$typeMap$type$s9 === void 0 ? void 0 : _value$typeMap$type$s9.orders,
|
|
28376
|
+
selectedSystemOrders: showChangeBtn ? [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type54 = typeMap$2[type]) === null || _typeMap$type54 === void 0 ? void 0 : _typeMap$type54.systemOrderNo)]] : [],
|
|
28238
28377
|
tradeGoods: {
|
|
28239
28378
|
originDataSource: getGoodDetails({
|
|
28240
28379
|
mode: isStrict,
|
|
28241
|
-
isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28380
|
+
isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type55 = typeMap$2[type]) === null || _typeMap$type55 === void 0 ? void 0 : _typeMap$type55.isShowSelectTradeGoods
|
|
28242
28381
|
}),
|
|
28243
|
-
uniqueKey: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28382
|
+
uniqueKey: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type56 = typeMap$2[type]) === null || _typeMap$type56 === void 0 ? void 0 : _typeMap$type56.uniqueKey) || 'uuid',
|
|
28244
28383
|
selectedGoodsChange: selectedGoodsChange
|
|
28245
28384
|
}
|
|
28246
28385
|
})));
|
|
28247
28386
|
};
|
|
28387
|
+
PublicReissue.displayName = 'PublicReissue';
|
|
28248
28388
|
|
|
28249
28389
|
var css_248z$g = ".goodsBox {\n display: flex;\n flex-wrap: wrap;\n}\n.goods-imgBox {\n position: relative;\n width: 80px;\n height: 80px;\n border: 1px solid #F2F3F5;\n margin: 0 10px 10px 0;\n text-align: center;\n}\n.icon-close {\n position: absolute;\n top: -5px;\n right: -5px;\n width: 13px;\n height: 13px;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 50%;\n z-index: 3;\n background-color: #fff;\n cursor: pointer;\n}\n.img {\n width: 100%;\n height: 100%;\n -o-object-fit: contain;\n object-fit: contain;\n}\n.goods-title {\n margin: 0 0 10px 5px;\n color: #4E5969;\n}\n.deg90 {\n transform: rotate(90deg);\n}\n.goodMain {\n display: flex;\n flex-wrap: wrap;\n height: 265px;\n overflow-y: auto;\n margin-bottom: 10px;\n}\n.goodMain .goodItem {\n width: 140px;\n height: 175px;\n padding: 11px 10px 0;\n text-align: center;\n display: inline-block;\n vertical-align: top;\n margin-bottom: 10px;\n margin-right: 30px;\n border: 1px solid #e6e6e6;\n cursor: pointer;\n transition: border 0.3s;\n}\n.goodMain .goodItem .goodImg {\n width: 120px;\n height: 120px;\n}\n.goodMain .goodItem .goodText {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.goodMain .goodItem.active {\n border: 1px solid #3089dc;\n}\n.right-context {\n display: flex;\n flex-direction: column;\n}\n";
|
|
28250
28390
|
styleInject(css_248z$g);
|