@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.js
CHANGED
|
@@ -7773,9 +7773,10 @@ var Province = function Province(props) {
|
|
|
7773
7773
|
wdt: kmkfUtils.WdtAddressData.getInstance(),
|
|
7774
7774
|
gy: kmkfUtils.GyAddressData.getInstance(),
|
|
7775
7775
|
km: kmkfUtils.AddressData.getInstance(),
|
|
7776
|
-
jst: kmkfUtils.JstAddressData.getInstance()
|
|
7777
|
-
jky:
|
|
7776
|
+
jst: kmkfUtils.JstAddressData.getInstance()
|
|
7777
|
+
// jky: JkyAddressData.getInstance(),
|
|
7778
7778
|
};
|
|
7779
|
+
|
|
7779
7780
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Cascader, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
7780
7781
|
options: ((_mapping$type = mapping[type]) === null || _mapping$type === void 0 ? void 0 : _mapping$type.addressOptions) || [],
|
|
7781
7782
|
style: {
|
|
@@ -8011,13 +8012,14 @@ function ApaasPosting(props) {
|
|
|
8011
8012
|
});
|
|
8012
8013
|
}
|
|
8013
8014
|
|
|
8014
|
-
var _excluded$b = ["value", "onChange", "platformType", "type"];
|
|
8015
|
+
var _excluded$b = ["value", "onChange", "platformType", "type", "placement"];
|
|
8015
8016
|
function ApaasLogistics(props) {
|
|
8016
8017
|
var value = props.value,
|
|
8017
8018
|
onChange = props.onChange,
|
|
8018
8019
|
platformType = props.platformType,
|
|
8019
8020
|
_props$type = props.type,
|
|
8020
8021
|
type = _props$type === void 0 ? 'select' : _props$type,
|
|
8022
|
+
placement = props.placement,
|
|
8021
8023
|
other = _objectWithoutProperties(props, _excluded$b);
|
|
8022
8024
|
var _useState = React.useState([]),
|
|
8023
8025
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -8055,12 +8057,13 @@ function ApaasLogistics(props) {
|
|
|
8055
8057
|
return type === 'input' ? /*#__PURE__*/React__default['default'].createElement(antd.Input, _objectSpread2(_objectSpread2({}, other), {}, {
|
|
8056
8058
|
value: value,
|
|
8057
8059
|
onChange: handleInputChange
|
|
8058
|
-
})) : /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(
|
|
8060
|
+
})) : /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2({
|
|
8059
8061
|
value: value,
|
|
8060
8062
|
onChange: onChange,
|
|
8061
8063
|
options: option,
|
|
8062
|
-
virtual: true
|
|
8063
|
-
|
|
8064
|
+
virtual: true,
|
|
8065
|
+
placement: placement
|
|
8066
|
+
}, other));
|
|
8064
8067
|
}
|
|
8065
8068
|
|
|
8066
8069
|
var _excluded$c = ["label", "name", "extra", "required", "rules", "initialValue"];
|
|
@@ -8144,6 +8147,11 @@ var systemOrderMap = {
|
|
|
8144
8147
|
ids: 'wdtSystemSelectIds',
|
|
8145
8148
|
order: 'wdtSystemShowOrder'
|
|
8146
8149
|
},
|
|
8150
|
+
JKY_SYSTEM_ORDER: {
|
|
8151
|
+
no: 'jkySystemOrderNo',
|
|
8152
|
+
ids: 'jkySystemSelectIds',
|
|
8153
|
+
order: 'jkySystemShowOrder'
|
|
8154
|
+
},
|
|
8147
8155
|
BS_E3_SYSTEM_ORDER: {
|
|
8148
8156
|
no: 'bsE3SystemOrderNo',
|
|
8149
8157
|
ids: 'bsE3SystemSelectIds',
|
|
@@ -8621,7 +8629,8 @@ var processSceneStatus = function processSceneStatus(getValue) {
|
|
|
8621
8629
|
WAREHOUSING_STATUS: 'inStockStatusItemList',
|
|
8622
8630
|
BS_E3_WAREHOUSING_STATUS: 'bsE3InStockStatusItemList',
|
|
8623
8631
|
MSG_STATUS: 'msgStatusValues',
|
|
8624
|
-
WDT_WAREHOUSING_STATUS: 'wdtInStockStatusItemList'
|
|
8632
|
+
WDT_WAREHOUSING_STATUS: 'wdtInStockStatusItemList',
|
|
8633
|
+
JKY_WAREHOUSING_STATUS: 'jkyInStockStatusItemList'
|
|
8625
8634
|
};
|
|
8626
8635
|
return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(STATUS_LIST_MAP[nex.workOrderComponentType])), []));
|
|
8627
8636
|
};
|
|
@@ -8715,6 +8724,33 @@ var processBsGoods = function processBsGoods(getValue) {
|
|
|
8715
8724
|
return _defineProperty({}, nex.uniqueKey, _values);
|
|
8716
8725
|
};
|
|
8717
8726
|
};
|
|
8727
|
+
var processJkyGoods = function processJkyGoods(templateColumns) {
|
|
8728
|
+
return function (getValue) {
|
|
8729
|
+
return function (nex, config) {
|
|
8730
|
+
var _values = {
|
|
8731
|
+
jkyGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_jkyGoods")), []),
|
|
8732
|
+
shopCode: getValue("".concat(nex.uniqueKey, "_shopCode"))
|
|
8733
|
+
};
|
|
8734
|
+
var selectIds = [];
|
|
8735
|
+
var orderNo = '';
|
|
8736
|
+
var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
|
|
8737
|
+
return col.workOrderComponentType === 'TRADE_ID_INPUT';
|
|
8738
|
+
});
|
|
8739
|
+
if (tradeId) {
|
|
8740
|
+
orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
|
|
8741
|
+
}
|
|
8742
|
+
var jkySystemOrder = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
|
|
8743
|
+
return col.workOrderComponentType === 'JKY_SYSTEM_ORDER';
|
|
8744
|
+
});
|
|
8745
|
+
if (jkySystemOrder) {
|
|
8746
|
+
selectIds = jsonParseSecurity(getValue("".concat(jkySystemOrder.uniqueKey, "_").concat(systemOrderMap[jkySystemOrder.workOrderComponentType].ids)), []);
|
|
8747
|
+
}
|
|
8748
|
+
_values.selectIds = selectIds;
|
|
8749
|
+
_values.orderNo = orderNo;
|
|
8750
|
+
return _defineProperty({}, nex.uniqueKey, _values);
|
|
8751
|
+
};
|
|
8752
|
+
};
|
|
8753
|
+
};
|
|
8718
8754
|
var processWdtGoods = function processWdtGoods(templateColumns) {
|
|
8719
8755
|
return function (getValue) {
|
|
8720
8756
|
return function (nex, config) {
|
|
@@ -9006,6 +9042,11 @@ var processErpSystemOrder = function processErpSystemOrder(getValue) {
|
|
|
9006
9042
|
ids: 'wdtSystemSelectIds',
|
|
9007
9043
|
order: 'wdtSystemShowOrder'
|
|
9008
9044
|
},
|
|
9045
|
+
JKY_SYSTEM_ORDER: {
|
|
9046
|
+
no: 'jkySystemOrderNo',
|
|
9047
|
+
ids: 'jkySystemSelectIds',
|
|
9048
|
+
order: 'jkySystemShowOrder'
|
|
9049
|
+
},
|
|
9009
9050
|
BS_E3_SYSTEM_ORDER: {
|
|
9010
9051
|
no: 'bsE3SystemOrderNo',
|
|
9011
9052
|
ids: 'bsE3SystemSelectIds',
|
|
@@ -9265,14 +9306,14 @@ var processJstReturnGoods = function processJstReturnGoods(templateColumns) {
|
|
|
9265
9306
|
};
|
|
9266
9307
|
var processLabel = function processLabel(getValue) {
|
|
9267
9308
|
return function (nex, config) {
|
|
9268
|
-
var
|
|
9269
|
-
return
|
|
9309
|
+
var _ref74;
|
|
9310
|
+
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;
|
|
9270
9311
|
};
|
|
9271
9312
|
};
|
|
9272
9313
|
var processMemberLevel = function processMemberLevel(getValue) {
|
|
9273
9314
|
return function (nex, config) {
|
|
9274
|
-
var
|
|
9275
|
-
return
|
|
9315
|
+
var _ref75;
|
|
9316
|
+
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;
|
|
9276
9317
|
};
|
|
9277
9318
|
};
|
|
9278
9319
|
var processAfterSalesOrderId = function processAfterSalesOrderId(getValue) {
|
|
@@ -9376,6 +9417,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
|
|
|
9376
9417
|
BS_E3_WAREHOUSING_STATUS: processSceneStatus,
|
|
9377
9418
|
MSG_STATUS: processSceneStatus,
|
|
9378
9419
|
WDT_WAREHOUSING_STATUS: processSceneStatus,
|
|
9420
|
+
JKY_WAREHOUSING_STATUS: processSceneStatus,
|
|
9379
9421
|
BS_LOGISTICS: processErpLogistics,
|
|
9380
9422
|
WLN_LOGISTICS: processErpLogistics,
|
|
9381
9423
|
WDT_LOGISTICS: processErpLogistics,
|
|
@@ -9391,6 +9433,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
|
|
|
9391
9433
|
BS_POSTING: processBsPosting,
|
|
9392
9434
|
BS_GOODS: processBsGoods,
|
|
9393
9435
|
WDT_GOODS: processWdtGoods(templateColumns),
|
|
9436
|
+
JKY_GOODS: processJkyGoods(templateColumns),
|
|
9394
9437
|
WDT_AFTERSALE_GOODS: processWdtAftersaleGoods(templateColumns),
|
|
9395
9438
|
JST_AFTERSALE_GOODS: processJstAftersaleGoods(templateColumns),
|
|
9396
9439
|
BS_E3_GOODS: processBsE3Goods(templateColumns),
|
|
@@ -9409,6 +9452,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
|
|
|
9409
9452
|
KM_SYSTEM_ORDER: processErpSystemOrder,
|
|
9410
9453
|
WLN_SYSTEM_ORDER: processErpSystemOrder,
|
|
9411
9454
|
WDT_SYSTEM_ORDER: processErpSystemOrder,
|
|
9455
|
+
JKY_SYSTEM_ORDER: processErpSystemOrder,
|
|
9412
9456
|
WDT_RETURN_BILL_NO: processErpSystemOrder,
|
|
9413
9457
|
BS_E3_SYSTEM_ORDER: processErpSystemOrder,
|
|
9414
9458
|
JST_SYSTEM_ORDER: processErpSystemOrder,
|
|
@@ -10005,12 +10049,21 @@ var EditSplitRenderMap = {
|
|
|
10005
10049
|
updateHandle = _ref17.updateHandle,
|
|
10006
10050
|
disabled = _ref17.disabled;
|
|
10007
10051
|
return /*#__PURE__*/React__default['default'].createElement(ApaasLogistics, {
|
|
10052
|
+
getPopupContainer: function getPopupContainer() {
|
|
10053
|
+
return document.getElementById('subform');
|
|
10054
|
+
},
|
|
10008
10055
|
value: val,
|
|
10009
10056
|
allowClear: true,
|
|
10057
|
+
showSearch: true,
|
|
10010
10058
|
onChange: function onChange(e) {
|
|
10011
10059
|
return updateHandle(e, index, t.key);
|
|
10012
10060
|
},
|
|
10013
|
-
disabled: t.isEdit || disabled
|
|
10061
|
+
disabled: t.isEdit || disabled,
|
|
10062
|
+
filterOption: function filterOption(input, option) {
|
|
10063
|
+
return option.label.includes(input);
|
|
10064
|
+
},
|
|
10065
|
+
placement: "topLeft",
|
|
10066
|
+
listHeight: 120
|
|
10014
10067
|
});
|
|
10015
10068
|
},
|
|
10016
10069
|
//退货物流-物流公司
|
|
@@ -10021,12 +10074,21 @@ var EditSplitRenderMap = {
|
|
|
10021
10074
|
updateHandle = _ref18.updateHandle,
|
|
10022
10075
|
disabled = _ref18.disabled;
|
|
10023
10076
|
return /*#__PURE__*/React__default['default'].createElement(ApaasLogistics, {
|
|
10077
|
+
getPopupContainer: function getPopupContainer() {
|
|
10078
|
+
return document.getElementById('subform');
|
|
10079
|
+
},
|
|
10024
10080
|
value: val,
|
|
10025
10081
|
allowClear: true,
|
|
10082
|
+
showSearch: true,
|
|
10026
10083
|
onChange: function onChange(e) {
|
|
10027
10084
|
return updateHandle(e, index, t.key);
|
|
10028
10085
|
},
|
|
10029
|
-
disabled: t.isEdit || disabled
|
|
10086
|
+
disabled: t.isEdit || disabled,
|
|
10087
|
+
filterOption: function filterOption(input, option) {
|
|
10088
|
+
return option.label.includes(input);
|
|
10089
|
+
},
|
|
10090
|
+
placement: "topLeft",
|
|
10091
|
+
listHeight: 120
|
|
10030
10092
|
});
|
|
10031
10093
|
}
|
|
10032
10094
|
};
|
|
@@ -10495,7 +10557,11 @@ var SubForm = function SubForm(props) {
|
|
|
10495
10557
|
});
|
|
10496
10558
|
}, [inputValue]);
|
|
10497
10559
|
var handleOpenChange = function handleOpenChange(newOpen) {
|
|
10498
|
-
|
|
10560
|
+
if (!['jbCFrJV4m7_trajectoryCompany', '0qFEv9GEyd_returnLogisticsCompany'].includes(selectKey)) {
|
|
10561
|
+
setOpen(newOpen);
|
|
10562
|
+
} else {
|
|
10563
|
+
setOpen(false);
|
|
10564
|
+
}
|
|
10499
10565
|
};
|
|
10500
10566
|
var onChangeInput = React.useCallback(lodash.debounce(function (val) {
|
|
10501
10567
|
setInputValue(val);
|
|
@@ -10583,6 +10649,9 @@ var SubForm = function SubForm(props) {
|
|
|
10583
10649
|
visible: open,
|
|
10584
10650
|
onVisibleChange: handleOpenChange
|
|
10585
10651
|
}, ['0qFEv9GEyd_returnLogisticsCompany', 'jbCFrJV4m7_trajectoryCompany'].includes(selectKey) ? /*#__PURE__*/React__default['default'].createElement(ApaasLogistics, {
|
|
10652
|
+
getPopupContainer: function getPopupContainer() {
|
|
10653
|
+
return document.getElementById('subform');
|
|
10654
|
+
},
|
|
10586
10655
|
value: undefined,
|
|
10587
10656
|
onChange: function onChange(val) {
|
|
10588
10657
|
onChangeInput(val);
|
|
@@ -10595,7 +10664,9 @@ var SubForm = function SubForm(props) {
|
|
|
10595
10664
|
},
|
|
10596
10665
|
filterOption: function filterOption(input, option) {
|
|
10597
10666
|
return option.label.includes(input);
|
|
10598
|
-
}
|
|
10667
|
+
},
|
|
10668
|
+
placement: "topLeft",
|
|
10669
|
+
listHeight: 120
|
|
10599
10670
|
}) : /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
10600
10671
|
placeholder: "\u8F93\u5165\u5173\u952E\u8BCD\u67E5\u8BE2",
|
|
10601
10672
|
allowClear: true,
|
|
@@ -12114,7 +12185,7 @@ var ChooseBaby = function ChooseBaby(props) {
|
|
|
12114
12185
|
}));
|
|
12115
12186
|
};
|
|
12116
12187
|
|
|
12117
|
-
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";
|
|
12188
|
+
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";
|
|
12118
12189
|
styleInject(css_248z$7);
|
|
12119
12190
|
|
|
12120
12191
|
var GoodItem = function GoodItem(props) {
|
|
@@ -12443,13 +12514,22 @@ var GoodItem = function GoodItem(props) {
|
|
|
12443
12514
|
var hasAttr = React.useMemo(function () {
|
|
12444
12515
|
return hasPic ? headerList.length > 1 : headerList.length > 0;
|
|
12445
12516
|
}, [hasPic, headerList]);
|
|
12517
|
+
var clearAll = function clearAll() {
|
|
12518
|
+
onChange === null || onChange === void 0 ? void 0 : onChange({
|
|
12519
|
+
shopId: shopId,
|
|
12520
|
+
imgList: []
|
|
12521
|
+
});
|
|
12522
|
+
};
|
|
12446
12523
|
return /*#__PURE__*/React__default['default'].createElement("div", null, imgList.length === 0 ? /*#__PURE__*/React__default['default'].createElement("p", {
|
|
12447
12524
|
className: "goods-title"
|
|
12448
12525
|
}, "\u6700\u591A\u6DFB\u52A0", maxLength, "\u4E2A\u5B9D\u8D1D") : /*#__PURE__*/React__default['default'].createElement("p", {
|
|
12449
12526
|
className: "goods-uploaded-state"
|
|
12450
12527
|
}, "\u5DF2\u6DFB\u52A0", /*#__PURE__*/React__default['default'].createElement("span", {
|
|
12451
12528
|
className: "goods-uploaded-count"
|
|
12452
|
-
}, imgList.length), "/", maxLength,
|
|
12529
|
+
}, imgList.length), "/", maxLength, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
12530
|
+
className: 'clear-all',
|
|
12531
|
+
onClick: clearAll
|
|
12532
|
+
}, "\u6E05\u7A7A")), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
12453
12533
|
ref: boxRef,
|
|
12454
12534
|
id: "goods-wrap",
|
|
12455
12535
|
className: "goodsBox goodsBox-item-horizontal--box".concat(isSingleRow ? ' single-row' : '')
|
|
@@ -14946,6 +15026,13 @@ var wdtColumns = [{
|
|
|
14946
15026
|
title: '辅助单位',
|
|
14947
15027
|
width: 150,
|
|
14948
15028
|
render: renderTextEllipsis
|
|
15029
|
+
}, {
|
|
15030
|
+
dataIndex: 'skuType',
|
|
15031
|
+
title: '是否组合装',
|
|
15032
|
+
width: 150,
|
|
15033
|
+
render: function render(type) {
|
|
15034
|
+
return type === 'suite' ? '组合装' : '非组合装';
|
|
15035
|
+
}
|
|
14949
15036
|
}];
|
|
14950
15037
|
|
|
14951
15038
|
var bse3Columns = [{
|
|
@@ -15336,34 +15423,75 @@ var jyColumns = [{
|
|
|
15336
15423
|
}
|
|
15337
15424
|
}];
|
|
15338
15425
|
|
|
15426
|
+
var getYesOrNo$2 = function getYesOrNo(val) {
|
|
15427
|
+
if (!lodash.isBoolean(val)) return null;
|
|
15428
|
+
return val ? '是' : '否';
|
|
15429
|
+
};
|
|
15339
15430
|
var jkyColumns = [{
|
|
15340
|
-
dataIndex: '
|
|
15341
|
-
title: "\u8D27\u54C1\
|
|
15431
|
+
dataIndex: 'goodName',
|
|
15432
|
+
title: "\u8D27\u54C1\u540D\u79F0",
|
|
15342
15433
|
align: 'center',
|
|
15343
15434
|
ellipsis: true,
|
|
15344
15435
|
width: 150,
|
|
15345
15436
|
render: renderTextEllipsis
|
|
15346
15437
|
}, {
|
|
15347
|
-
dataIndex: '
|
|
15348
|
-
title: "\u8D27\u54C1\
|
|
15438
|
+
dataIndex: 'goodNo',
|
|
15439
|
+
title: "\u8D27\u54C1\u7F16\u53F7",
|
|
15349
15440
|
align: 'center',
|
|
15350
15441
|
ellipsis: true,
|
|
15351
15442
|
width: 150,
|
|
15352
15443
|
render: renderTextEllipsis
|
|
15353
15444
|
}, {
|
|
15354
|
-
dataIndex: '
|
|
15445
|
+
dataIndex: 'goodId',
|
|
15355
15446
|
title: "\u8D27\u54C1ID",
|
|
15356
15447
|
align: 'center',
|
|
15357
15448
|
ellipsis: true,
|
|
15358
15449
|
width: 150,
|
|
15359
15450
|
render: renderTextEllipsis
|
|
15360
15451
|
}, {
|
|
15361
|
-
dataIndex: '
|
|
15452
|
+
dataIndex: 'goodPicUrl',
|
|
15453
|
+
title: "\u8D27\u54C1\u4E3B\u56FE",
|
|
15454
|
+
align: 'center',
|
|
15455
|
+
ellipsis: true,
|
|
15456
|
+
width: 150,
|
|
15457
|
+
render: function render(picUrl) {
|
|
15458
|
+
return /*#__PURE__*/React__default['default'].createElement("img", {
|
|
15459
|
+
style: {
|
|
15460
|
+
width: '30px',
|
|
15461
|
+
height: '30px',
|
|
15462
|
+
objectFit: 'contain'
|
|
15463
|
+
},
|
|
15464
|
+
src: picUrl
|
|
15465
|
+
});
|
|
15466
|
+
}
|
|
15467
|
+
}, {
|
|
15468
|
+
dataIndex: 'goodShortName',
|
|
15469
|
+
title: "\u8D27\u54C1\u522B\u540D",
|
|
15470
|
+
align: 'center',
|
|
15471
|
+
ellipsis: true,
|
|
15472
|
+
width: 150,
|
|
15473
|
+
render: renderTextEllipsis
|
|
15474
|
+
}, {
|
|
15475
|
+
dataIndex: 'specBarcode',
|
|
15362
15476
|
title: "\u8D27\u54C1\u6761\u7801",
|
|
15363
15477
|
align: 'center',
|
|
15364
15478
|
ellipsis: true,
|
|
15365
15479
|
width: 150,
|
|
15366
15480
|
render: renderTextEllipsis
|
|
15481
|
+
}, {
|
|
15482
|
+
dataIndex: 'categoryName',
|
|
15483
|
+
title: "\u8D27\u54C1\u7C7B\u522B",
|
|
15484
|
+
align: 'center',
|
|
15485
|
+
ellipsis: true,
|
|
15486
|
+
width: 150,
|
|
15487
|
+
render: renderTextEllipsis
|
|
15488
|
+
}, {
|
|
15489
|
+
dataIndex: 'brandName',
|
|
15490
|
+
title: "\u54C1\u724C",
|
|
15491
|
+
align: 'center',
|
|
15492
|
+
ellipsis: true,
|
|
15493
|
+
width: 200,
|
|
15494
|
+
render: renderTextEllipsis
|
|
15367
15495
|
}, {
|
|
15368
15496
|
dataIndex: 'specName',
|
|
15369
15497
|
title: "\u89C4\u683C\u540D\u79F0",
|
|
@@ -15379,7 +15507,14 @@ var jkyColumns = [{
|
|
|
15379
15507
|
width: 150,
|
|
15380
15508
|
render: renderTextEllipsis
|
|
15381
15509
|
}, {
|
|
15382
|
-
dataIndex: '
|
|
15510
|
+
dataIndex: 'specNo',
|
|
15511
|
+
title: "\u89C4\u683C\u7F16\u7801",
|
|
15512
|
+
align: 'center',
|
|
15513
|
+
ellipsis: true,
|
|
15514
|
+
width: 150,
|
|
15515
|
+
render: renderTextEllipsis
|
|
15516
|
+
}, {
|
|
15517
|
+
dataIndex: 'specImgUrl',
|
|
15383
15518
|
title: "\u89C4\u683C\u56FE\u7247",
|
|
15384
15519
|
align: 'center',
|
|
15385
15520
|
ellipsis: true,
|
|
@@ -15395,162 +15530,78 @@ var jkyColumns = [{
|
|
|
15395
15530
|
});
|
|
15396
15531
|
}
|
|
15397
15532
|
}, {
|
|
15398
|
-
dataIndex: '
|
|
15399
|
-
title: "\
|
|
15400
|
-
width: 100,
|
|
15401
|
-
render: function render(val) {
|
|
15402
|
-
return /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
15403
|
-
}
|
|
15404
|
-
}, {
|
|
15405
|
-
dataIndex: 'actualSendCount',
|
|
15406
|
-
title: "\u5B9E\u53D1\u6570\u91CF",
|
|
15407
|
-
width: 150,
|
|
15408
|
-
render: renderTextEllipsis
|
|
15409
|
-
}, {
|
|
15410
|
-
dataIndex: 'sellPrice',
|
|
15411
|
-
title: "\u5355\u4EF7",
|
|
15412
|
-
width: 150,
|
|
15413
|
-
render: function render(val) {
|
|
15414
|
-
return val || val === 0 ? Number(val).toFixed(2) : '';
|
|
15415
|
-
}
|
|
15416
|
-
}, {
|
|
15417
|
-
dataIndex: 'sellTotal',
|
|
15418
|
-
title: "\u91D1\u989D",
|
|
15419
|
-
width: 150
|
|
15420
|
-
}, {
|
|
15421
|
-
dataIndex: 'discountTotal',
|
|
15422
|
-
title: "\u62B5\u6263\u91D1\u989D",
|
|
15423
|
-
width: 150
|
|
15424
|
-
}, {
|
|
15425
|
-
dataIndex: 'shareFavourableFee',
|
|
15426
|
-
title: "\u5206\u644A\u91D1\u989D",
|
|
15427
|
-
width: 150
|
|
15428
|
-
}, {
|
|
15429
|
-
dataIndex: 'shareFavourableAfterFee',
|
|
15430
|
-
title: "\u5206\u644A\u540E\u91D1\u989D",
|
|
15431
|
-
width: 150
|
|
15432
|
-
}, {
|
|
15433
|
-
dataIndex: 'customerPrice',
|
|
15434
|
-
title: "\u7EC8\u7AEF\u9500\u552E\u5355\u4EF7",
|
|
15435
|
-
width: 150
|
|
15436
|
-
}, {
|
|
15437
|
-
dataIndex: 'customerTotal',
|
|
15438
|
-
title: "\u7EC8\u7AEF\u9500\u552E\u91D1\u989D",
|
|
15439
|
-
width: 150
|
|
15440
|
-
}, {
|
|
15441
|
-
dataIndex: 'divideSellTotal',
|
|
15442
|
-
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
15443
|
-
width: 150
|
|
15444
|
-
}, {
|
|
15445
|
-
dataIndex: 'isGift',
|
|
15446
|
-
title: "\u662F\u5426\u8D60\u54C1",
|
|
15447
|
-
width: 150,
|
|
15448
|
-
render: function render(val) {
|
|
15449
|
-
return /*#__PURE__*/React__default['default'].createElement("span", null, val === '1' ? '是' : '否');
|
|
15450
|
-
}
|
|
15451
|
-
}, {
|
|
15452
|
-
dataIndex: 'isFit',
|
|
15453
|
-
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
15454
|
-
width: 150,
|
|
15455
|
-
render: function render(val) {
|
|
15456
|
-
return /*#__PURE__*/React__default['default'].createElement("span", null, val === '1' ? '是' : '否');
|
|
15457
|
-
}
|
|
15458
|
-
}, {
|
|
15459
|
-
dataIndex: 'isPresell',
|
|
15460
|
-
title: "\u662F\u5426\u9884\u552E\u8D27\u54C1",
|
|
15461
|
-
width: 150,
|
|
15462
|
-
render: function render(val) {
|
|
15463
|
-
return /*#__PURE__*/React__default['default'].createElement("span", null, val === '1' ? '是' : '否');
|
|
15464
|
-
}
|
|
15465
|
-
}, {
|
|
15466
|
-
dataIndex: 'brandName',
|
|
15467
|
-
title: "\u54C1\u724C",
|
|
15533
|
+
dataIndex: 'colorName',
|
|
15534
|
+
title: "\u989C\u8272\u540D\u79F0",
|
|
15468
15535
|
align: 'center',
|
|
15469
15536
|
ellipsis: true,
|
|
15470
|
-
width:
|
|
15537
|
+
width: 150,
|
|
15471
15538
|
render: renderTextEllipsis
|
|
15472
15539
|
}, {
|
|
15473
|
-
dataIndex: '
|
|
15474
|
-
title: "\
|
|
15540
|
+
dataIndex: 'colorCode',
|
|
15541
|
+
title: "\u989C\u8272\u4EE3\u7801",
|
|
15475
15542
|
align: 'center',
|
|
15476
15543
|
ellipsis: true,
|
|
15477
15544
|
width: 150,
|
|
15478
15545
|
render: renderTextEllipsis
|
|
15479
15546
|
}, {
|
|
15480
|
-
dataIndex: '
|
|
15481
|
-
title: "\
|
|
15547
|
+
dataIndex: 'sizeName',
|
|
15548
|
+
title: "\u5C3A\u7801\u540D\u79F0",
|
|
15482
15549
|
align: 'center',
|
|
15483
15550
|
ellipsis: true,
|
|
15484
|
-
width:
|
|
15551
|
+
width: 150,
|
|
15485
15552
|
render: renderTextEllipsis
|
|
15486
15553
|
}, {
|
|
15487
|
-
dataIndex: '
|
|
15488
|
-
title: "\
|
|
15554
|
+
dataIndex: 'sizeCode',
|
|
15555
|
+
title: "\u5C3A\u7801\u4EE3\u7801",
|
|
15489
15556
|
align: 'center',
|
|
15490
15557
|
ellipsis: true,
|
|
15491
|
-
width:
|
|
15558
|
+
width: 150,
|
|
15492
15559
|
render: renderTextEllipsis
|
|
15493
15560
|
}, {
|
|
15494
|
-
dataIndex: '
|
|
15495
|
-
title: "\
|
|
15561
|
+
dataIndex: 'marketPrice',
|
|
15562
|
+
title: "\u5E02\u573A\u4EF7",
|
|
15496
15563
|
align: 'center',
|
|
15497
15564
|
ellipsis: true,
|
|
15498
|
-
width:
|
|
15499
|
-
render: renderTextEllipsis
|
|
15500
|
-
}, {
|
|
15501
|
-
dataIndex: 'tradeGoodsName',
|
|
15502
|
-
title: "\u4EA4\u6613\u8D27\u54C1\u540D\u79F0",
|
|
15503
|
-
ellipsis: true,
|
|
15504
|
-
width: 250,
|
|
15505
|
-
render: renderTextEllipsis
|
|
15506
|
-
}, {
|
|
15507
|
-
dataIndex: 'tradeGoodsSpec',
|
|
15508
|
-
title: "\u4EA4\u6613\u89C4\u683C\u540D\u79F0",
|
|
15509
|
-
ellipsis: true,
|
|
15510
|
-
width: 250,
|
|
15511
|
-
render: renderTextEllipsis
|
|
15512
|
-
}, {
|
|
15513
|
-
dataIndex: 'sourceSubtradeNo',
|
|
15514
|
-
title: "\u7F51\u5E97\u5B50\u8BA2\u5355\u53F7",
|
|
15515
|
-
ellipsis: true,
|
|
15516
|
-
width: 250,
|
|
15517
|
-
render: renderTextEllipsis
|
|
15518
|
-
}, {
|
|
15519
|
-
dataIndex: 'platGoodsId',
|
|
15520
|
-
title: "\u5E73\u53F0\u5546\u54C1ID",
|
|
15521
|
-
ellipsis: true,
|
|
15522
|
-
width: 250,
|
|
15565
|
+
width: 150,
|
|
15523
15566
|
render: renderTextEllipsis
|
|
15524
15567
|
}, {
|
|
15525
|
-
dataIndex: '
|
|
15526
|
-
title: "\
|
|
15568
|
+
dataIndex: 'retailPrice',
|
|
15569
|
+
title: "\u96F6\u552E\u4EF7",
|
|
15570
|
+
align: 'center',
|
|
15527
15571
|
ellipsis: true,
|
|
15528
|
-
width:
|
|
15572
|
+
width: 150,
|
|
15529
15573
|
render: renderTextEllipsis
|
|
15530
15574
|
}, {
|
|
15531
|
-
dataIndex: '
|
|
15532
|
-
title: "\
|
|
15575
|
+
dataIndex: 'memberPrice',
|
|
15576
|
+
title: "\u4F1A\u5458\u4EF7",
|
|
15577
|
+
align: 'center',
|
|
15533
15578
|
ellipsis: true,
|
|
15534
|
-
width:
|
|
15579
|
+
width: 150,
|
|
15535
15580
|
render: renderTextEllipsis
|
|
15536
15581
|
}, {
|
|
15537
|
-
dataIndex: '
|
|
15538
|
-
title: "\
|
|
15582
|
+
dataIndex: 'costPrice',
|
|
15583
|
+
title: "\u6210\u672C\u4EF7",
|
|
15584
|
+
align: 'center',
|
|
15539
15585
|
ellipsis: true,
|
|
15540
|
-
width:
|
|
15586
|
+
width: 150,
|
|
15541
15587
|
render: renderTextEllipsis
|
|
15542
15588
|
}, {
|
|
15543
|
-
dataIndex: '
|
|
15544
|
-
title: "\
|
|
15589
|
+
dataIndex: 'isVirtual',
|
|
15590
|
+
title: "\u662F\u5426\u865A\u62DF\u5546\u54C1",
|
|
15591
|
+
align: 'center',
|
|
15545
15592
|
ellipsis: true,
|
|
15546
|
-
width:
|
|
15547
|
-
render:
|
|
15593
|
+
width: 150,
|
|
15594
|
+
render: function render(val) {
|
|
15595
|
+
return renderTextEllipsis(getYesOrNo$2(val));
|
|
15596
|
+
}
|
|
15548
15597
|
}, {
|
|
15549
|
-
dataIndex: '
|
|
15550
|
-
title: "\
|
|
15598
|
+
dataIndex: 'skuType',
|
|
15599
|
+
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
15551
15600
|
ellipsis: true,
|
|
15552
|
-
width:
|
|
15553
|
-
render:
|
|
15601
|
+
width: 150,
|
|
15602
|
+
render: function render(val) {
|
|
15603
|
+
return renderTextEllipsis(getYesOrNo$2(val === 'combine'));
|
|
15604
|
+
}
|
|
15554
15605
|
}];
|
|
15555
15606
|
|
|
15556
15607
|
var getColumnsMap = function getColumnsMap() {
|
|
@@ -15824,7 +15875,7 @@ var transformFormData = function transformFormData(formData) {
|
|
|
15824
15875
|
if (formData[key]) {
|
|
15825
15876
|
var _formData$key, _formData$key2, _formData$key3, _formData$key4;
|
|
15826
15877
|
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];
|
|
15827
|
-
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';
|
|
15878
|
+
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';
|
|
15828
15879
|
conditionList.push({
|
|
15829
15880
|
leftValue: key,
|
|
15830
15881
|
compareSymbol: compareSymbol,
|
|
@@ -15970,6 +16021,24 @@ var GoodList = function GoodList(props, ref) {
|
|
|
15970
16021
|
};
|
|
15971
16022
|
})
|
|
15972
16023
|
}
|
|
16024
|
+
}, {
|
|
16025
|
+
label: '是否组合装',
|
|
16026
|
+
name: 'skuType',
|
|
16027
|
+
dataIndex: 'skuType',
|
|
16028
|
+
type: 'select',
|
|
16029
|
+
formItemProps: {
|
|
16030
|
+
mode: 'multiple',
|
|
16031
|
+
filterOption: function filterOption(input, option) {
|
|
16032
|
+
return option.label.includes(input);
|
|
16033
|
+
},
|
|
16034
|
+
options: [{
|
|
16035
|
+
label: '组合装',
|
|
16036
|
+
value: 'suite'
|
|
16037
|
+
}, {
|
|
16038
|
+
label: '非组合装',
|
|
16039
|
+
value: ''
|
|
16040
|
+
}]
|
|
16041
|
+
}
|
|
15973
16042
|
}];
|
|
15974
16043
|
var rowSelection = {
|
|
15975
16044
|
selectedRowKeys: selectIds,
|
|
@@ -18793,13 +18862,15 @@ var JyGoodsModal$1 = /*#__PURE__*/React.forwardRef(JyGoodsModal);
|
|
|
18793
18862
|
var getTableData$6 = function getTableData(_ref, formData) {
|
|
18794
18863
|
var current = _ref.current,
|
|
18795
18864
|
pageSize = _ref.pageSize;
|
|
18865
|
+
var conditionList = transformFormData(formData);
|
|
18796
18866
|
return extendRequest('/qy/gdfw/product/product/page', {
|
|
18797
18867
|
method: 'post',
|
|
18798
|
-
data:
|
|
18868
|
+
data: {
|
|
18799
18869
|
pageSize: pageSize,
|
|
18800
18870
|
pageNo: current,
|
|
18801
|
-
platform: '
|
|
18802
|
-
|
|
18871
|
+
platform: 'JKY_ERP',
|
|
18872
|
+
conditionList: conditionList
|
|
18873
|
+
}
|
|
18803
18874
|
}).then(function (res) {
|
|
18804
18875
|
var _res$data = res.data,
|
|
18805
18876
|
_res$data$productSkuL = _res$data.productSkuList,
|
|
@@ -18822,13 +18893,15 @@ var searchFormData$5 = [{
|
|
|
18822
18893
|
}, {
|
|
18823
18894
|
label: '规格编码',
|
|
18824
18895
|
name: 'skuCode',
|
|
18825
|
-
dataIndex: 'specNo'
|
|
18896
|
+
dataIndex: 'specNo',
|
|
18897
|
+
type: 'optionalInput'
|
|
18826
18898
|
}, {
|
|
18827
|
-
label: '
|
|
18899
|
+
label: '货品名称',
|
|
18828
18900
|
name: 'goodName'
|
|
18829
18901
|
}, {
|
|
18830
|
-
label: '
|
|
18831
|
-
name: 'goodNo'
|
|
18902
|
+
label: '货品编码',
|
|
18903
|
+
name: 'goodNo',
|
|
18904
|
+
type: 'optionalInput'
|
|
18832
18905
|
}];
|
|
18833
18906
|
var GoodList$6 = function GoodList(props, ref) {
|
|
18834
18907
|
var _useState = React.useState([]),
|
|
@@ -18898,8 +18971,8 @@ var GoodList$6 = function GoodList(props, ref) {
|
|
|
18898
18971
|
getCheckboxProps: function getCheckboxProps(record) {
|
|
18899
18972
|
var options = {
|
|
18900
18973
|
disabled: (props.selectedRows || []).map(function (row) {
|
|
18901
|
-
return row.
|
|
18902
|
-
}).includes(record.
|
|
18974
|
+
return row.specId || record.id;
|
|
18975
|
+
}).includes(record.specId || record.id),
|
|
18903
18976
|
name: record.id
|
|
18904
18977
|
};
|
|
18905
18978
|
return options;
|
|
@@ -20346,7 +20419,7 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
20346
20419
|
};
|
|
20347
20420
|
};
|
|
20348
20421
|
|
|
20349
|
-
var getYesOrNo$
|
|
20422
|
+
var getYesOrNo$3 = function getYesOrNo(val) {
|
|
20350
20423
|
if (kmkfUtils.isNull(val)) return null;
|
|
20351
20424
|
return val ? '是' : '否';
|
|
20352
20425
|
};
|
|
@@ -20497,7 +20570,7 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
20497
20570
|
label: '否',
|
|
20498
20571
|
value: false
|
|
20499
20572
|
}]
|
|
20500
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$
|
|
20573
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$3(val));
|
|
20501
20574
|
},
|
|
20502
20575
|
width: 100
|
|
20503
20576
|
}]
|
|
@@ -20509,7 +20582,7 @@ var isNumberOrNumberString$1 = function isNumberOrNumberString(value) {
|
|
|
20509
20582
|
if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
|
|
20510
20583
|
return false;
|
|
20511
20584
|
};
|
|
20512
|
-
var getYesOrNo$
|
|
20585
|
+
var getYesOrNo$4 = function getYesOrNo(val) {
|
|
20513
20586
|
if (kmkfUtils.isNull(val)) return null;
|
|
20514
20587
|
return val ? '是' : '否';
|
|
20515
20588
|
};
|
|
@@ -20624,7 +20697,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
20624
20697
|
title: "\u662F\u5426\u53D6\u6D88",
|
|
20625
20698
|
width: 150,
|
|
20626
20699
|
render: function render(val) {
|
|
20627
|
-
return /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$
|
|
20700
|
+
return /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$4(val));
|
|
20628
20701
|
}
|
|
20629
20702
|
}, {
|
|
20630
20703
|
dataIndex: 'isGift',
|
|
@@ -20643,7 +20716,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
20643
20716
|
label: '否',
|
|
20644
20717
|
value: 0
|
|
20645
20718
|
}]
|
|
20646
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$
|
|
20719
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$4(val));
|
|
20647
20720
|
}
|
|
20648
20721
|
}, {
|
|
20649
20722
|
dataIndex: 'skuNote',
|
|
@@ -20769,7 +20842,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
20769
20842
|
label: '否',
|
|
20770
20843
|
value: 0
|
|
20771
20844
|
}]
|
|
20772
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$
|
|
20845
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$4(val));
|
|
20773
20846
|
}
|
|
20774
20847
|
}].map(function (item) {
|
|
20775
20848
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
@@ -20898,7 +20971,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
20898
20971
|
label: '否',
|
|
20899
20972
|
value: 0
|
|
20900
20973
|
}]
|
|
20901
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$
|
|
20974
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$4(val));
|
|
20902
20975
|
}
|
|
20903
20976
|
}].map(function (item) {
|
|
20904
20977
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
@@ -21754,6 +21827,11 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
21754
21827
|
title: "\u4F9B\u5E94\u5546\u7F16\u7801",
|
|
21755
21828
|
width: 150,
|
|
21756
21829
|
render: renderTextEllipsis
|
|
21830
|
+
}, {
|
|
21831
|
+
dataIndex: 'remark',
|
|
21832
|
+
title: "\u5907\u6CE8",
|
|
21833
|
+
width: 200,
|
|
21834
|
+
render: renderTextEllipsis
|
|
21757
21835
|
}].map(function (item) {
|
|
21758
21836
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
21759
21837
|
align: 'center',
|
|
@@ -22538,7 +22616,7 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22538
22616
|
}
|
|
22539
22617
|
}, {
|
|
22540
22618
|
dataIndex: 'sellTotal',
|
|
22541
|
-
title: "\u91D1\u989D",
|
|
22619
|
+
title: "\u603B\u91D1\u989D",
|
|
22542
22620
|
width: 150
|
|
22543
22621
|
}, {
|
|
22544
22622
|
dataIndex: 'discountTotal',
|
|
@@ -22563,7 +22641,22 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22563
22641
|
}, {
|
|
22564
22642
|
dataIndex: 'divideSellTotal',
|
|
22565
22643
|
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
22566
|
-
width: 150
|
|
22644
|
+
width: 150,
|
|
22645
|
+
render: function render(val, record, index) {
|
|
22646
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
22647
|
+
style: {
|
|
22648
|
+
width: 130
|
|
22649
|
+
},
|
|
22650
|
+
value: val,
|
|
22651
|
+
min: 0,
|
|
22652
|
+
precision: 2,
|
|
22653
|
+
onChange: function onChange(num) {
|
|
22654
|
+
updateDataHandle({
|
|
22655
|
+
divideSellTotal: num
|
|
22656
|
+
}, index);
|
|
22657
|
+
}
|
|
22658
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
22659
|
+
}
|
|
22567
22660
|
}, {
|
|
22568
22661
|
dataIndex: 'isGift',
|
|
22569
22662
|
title: "\u662F\u5426\u8D60\u54C1",
|
|
@@ -22582,12 +22675,12 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22582
22675
|
},
|
|
22583
22676
|
options: [{
|
|
22584
22677
|
label: '是',
|
|
22585
|
-
value:
|
|
22678
|
+
value: 1
|
|
22586
22679
|
}, {
|
|
22587
22680
|
label: '否',
|
|
22588
|
-
value:
|
|
22681
|
+
value: 0
|
|
22589
22682
|
}]
|
|
22590
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val
|
|
22683
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val == 1 ? '是' : '否');
|
|
22591
22684
|
}
|
|
22592
22685
|
}, {
|
|
22593
22686
|
dataIndex: 'isFit',
|
|
@@ -22607,12 +22700,12 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22607
22700
|
},
|
|
22608
22701
|
options: [{
|
|
22609
22702
|
label: '是',
|
|
22610
|
-
value:
|
|
22703
|
+
value: 1
|
|
22611
22704
|
}, {
|
|
22612
22705
|
label: '否',
|
|
22613
|
-
value:
|
|
22706
|
+
value: 0
|
|
22614
22707
|
}]
|
|
22615
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val
|
|
22708
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val == 1 ? '是' : '否');
|
|
22616
22709
|
}
|
|
22617
22710
|
}, {
|
|
22618
22711
|
dataIndex: 'isPresell',
|
|
@@ -22637,7 +22730,7 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22637
22730
|
label: '否',
|
|
22638
22731
|
value: '0'
|
|
22639
22732
|
}]
|
|
22640
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val
|
|
22733
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val == '1' ? '是' : '否');
|
|
22641
22734
|
}
|
|
22642
22735
|
}, {
|
|
22643
22736
|
dataIndex: 'brandName',
|
|
@@ -22856,8 +22949,8 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22856
22949
|
width: 250,
|
|
22857
22950
|
render: function render(val, record, index) {
|
|
22858
22951
|
return !disabled ? /*#__PURE__*/React__default['default'].createElement(ApaasInput, {
|
|
22859
|
-
onChange: function onChange(
|
|
22860
|
-
updateHandle(value, index, 'reason');
|
|
22952
|
+
onChange: function onChange(e) {
|
|
22953
|
+
updateHandle(e.target.value, index, 'reason');
|
|
22861
22954
|
}
|
|
22862
22955
|
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
22863
22956
|
}
|
|
@@ -22873,12 +22966,12 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22873
22966
|
},
|
|
22874
22967
|
options: [{
|
|
22875
22968
|
label: '是',
|
|
22876
|
-
value:
|
|
22969
|
+
value: 1
|
|
22877
22970
|
}, {
|
|
22878
22971
|
label: '否',
|
|
22879
|
-
value:
|
|
22972
|
+
value: 0
|
|
22880
22973
|
}]
|
|
22881
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val ===
|
|
22974
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val === 1 ? '是' : '否');
|
|
22882
22975
|
}
|
|
22883
22976
|
}, {
|
|
22884
22977
|
dataIndex: 'isFit',
|
|
@@ -22892,12 +22985,12 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22892
22985
|
},
|
|
22893
22986
|
options: [{
|
|
22894
22987
|
label: '是',
|
|
22895
|
-
value:
|
|
22988
|
+
value: 1
|
|
22896
22989
|
}, {
|
|
22897
22990
|
label: '否',
|
|
22898
|
-
value:
|
|
22991
|
+
value: 0
|
|
22899
22992
|
}]
|
|
22900
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val ===
|
|
22993
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val === 1 ? '是' : '否');
|
|
22901
22994
|
}
|
|
22902
22995
|
}, {
|
|
22903
22996
|
dataIndex: 'brandName',
|
|
@@ -23281,6 +23374,13 @@ var processGoods$1 = function processGoods(_ref) {
|
|
|
23281
23374
|
canUpdateNumber: canUpdateNumber,
|
|
23282
23375
|
source: source
|
|
23283
23376
|
});
|
|
23377
|
+
} else if (isErpType.isJky(type)) {
|
|
23378
|
+
newList = processJkyGoods$1({
|
|
23379
|
+
list: list,
|
|
23380
|
+
type: type,
|
|
23381
|
+
canUpdateNumber: canUpdateNumber,
|
|
23382
|
+
source: source
|
|
23383
|
+
});
|
|
23284
23384
|
} else {
|
|
23285
23385
|
newList = processDefaultGoods({
|
|
23286
23386
|
list: list,
|
|
@@ -23329,11 +23429,45 @@ var processJyGoods = function processJyGoods(_ref2) {
|
|
|
23329
23429
|
});
|
|
23330
23430
|
});
|
|
23331
23431
|
};
|
|
23332
|
-
|
|
23333
|
-
var processWdtGoods$1 = function processWdtGoods(_ref3) {
|
|
23432
|
+
var processJkyGoods$1 = function processJkyGoods(_ref3) {
|
|
23334
23433
|
var list = _ref3.list,
|
|
23335
|
-
type = _ref3.type,
|
|
23336
23434
|
canUpdateNumber = _ref3.canUpdateNumber;
|
|
23435
|
+
return list.map(function (item) {
|
|
23436
|
+
var goodName = item.goodName,
|
|
23437
|
+
goodNo = item.goodNo,
|
|
23438
|
+
goodId = item.goodId,
|
|
23439
|
+
specBarcode = item.specBarcode,
|
|
23440
|
+
retailPrice = item.retailPrice,
|
|
23441
|
+
isGift = item.isGift,
|
|
23442
|
+
skuType = item.skuType,
|
|
23443
|
+
specImgUrl = item.specImgUrl,
|
|
23444
|
+
categoryName = item.categoryName;
|
|
23445
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
23446
|
+
cateName: categoryName,
|
|
23447
|
+
goodsName: goodName,
|
|
23448
|
+
goodsNo: goodNo,
|
|
23449
|
+
goodsId: goodId,
|
|
23450
|
+
barcode: specBarcode,
|
|
23451
|
+
skuImgUrl: specImgUrl,
|
|
23452
|
+
combinationName: goodName,
|
|
23453
|
+
combinationCode: goodNo,
|
|
23454
|
+
isGift: isGift ? 1 : 0,
|
|
23455
|
+
isFit: skuType === 'combine' ? 1 : 0,
|
|
23456
|
+
uuid: kmkfUtils.uuid(),
|
|
23457
|
+
canDelete: true,
|
|
23458
|
+
sellCount: 1,
|
|
23459
|
+
sellPrice: retailPrice,
|
|
23460
|
+
sellTotal: retailPrice ? (retailPrice * 1).toFixed(2) : '',
|
|
23461
|
+
canEdit: true,
|
|
23462
|
+
canUpdateNumber: canUpdateNumber
|
|
23463
|
+
});
|
|
23464
|
+
});
|
|
23465
|
+
};
|
|
23466
|
+
// 处理不同类型的商品数据
|
|
23467
|
+
var processWdtGoods$1 = function processWdtGoods(_ref4) {
|
|
23468
|
+
var list = _ref4.list,
|
|
23469
|
+
type = _ref4.type,
|
|
23470
|
+
canUpdateNumber = _ref4.canUpdateNumber;
|
|
23337
23471
|
return list.map(function (item) {
|
|
23338
23472
|
var processedItem = _objectSpread2(_objectSpread2({}, item), {}, {
|
|
23339
23473
|
uuid: kmkfUtils.uuid(),
|
|
@@ -23351,9 +23485,9 @@ var processWdtGoods$1 = function processWdtGoods(_ref3) {
|
|
|
23351
23485
|
return processedItem;
|
|
23352
23486
|
});
|
|
23353
23487
|
};
|
|
23354
|
-
var processBsE3Goods$1 = function processBsE3Goods(
|
|
23355
|
-
var list =
|
|
23356
|
-
canUpdateNumber =
|
|
23488
|
+
var processBsE3Goods$1 = function processBsE3Goods(_ref5) {
|
|
23489
|
+
var list = _ref5.list,
|
|
23490
|
+
canUpdateNumber = _ref5.canUpdateNumber;
|
|
23357
23491
|
return list.map(function (item) {
|
|
23358
23492
|
var specNo = item.specNo,
|
|
23359
23493
|
specId = item.specId,
|
|
@@ -23388,9 +23522,9 @@ var processBsE3Goods$1 = function processBsE3Goods(_ref4) {
|
|
|
23388
23522
|
});
|
|
23389
23523
|
});
|
|
23390
23524
|
};
|
|
23391
|
-
var processGyGoods$1 = function processGyGoods(
|
|
23392
|
-
var list =
|
|
23393
|
-
source =
|
|
23525
|
+
var processGyGoods$1 = function processGyGoods(_ref6) {
|
|
23526
|
+
var list = _ref6.list,
|
|
23527
|
+
source = _ref6.source;
|
|
23394
23528
|
var isFormWorkOrder = source === 'workOrder';
|
|
23395
23529
|
return list.map(function (item) {
|
|
23396
23530
|
var goodName = item.goodName,
|
|
@@ -23417,8 +23551,8 @@ var processGyGoods$1 = function processGyGoods(_ref5) {
|
|
|
23417
23551
|
});
|
|
23418
23552
|
});
|
|
23419
23553
|
};
|
|
23420
|
-
var processJstGoods$1 = function processJstGoods(
|
|
23421
|
-
var list =
|
|
23554
|
+
var processJstGoods$1 = function processJstGoods(_ref7) {
|
|
23555
|
+
var list = _ref7.list;
|
|
23422
23556
|
return list.map(function (item) {
|
|
23423
23557
|
return {
|
|
23424
23558
|
name: item.goodName,
|
|
@@ -23436,9 +23570,9 @@ var processJstGoods$1 = function processJstGoods(_ref6) {
|
|
|
23436
23570
|
};
|
|
23437
23571
|
});
|
|
23438
23572
|
};
|
|
23439
|
-
var processKmGoods$1 = function processKmGoods(
|
|
23440
|
-
var list =
|
|
23441
|
-
type =
|
|
23573
|
+
var processKmGoods$1 = function processKmGoods(_ref8) {
|
|
23574
|
+
var list = _ref8.list,
|
|
23575
|
+
type = _ref8.type;
|
|
23442
23576
|
var initParamsMap = {
|
|
23443
23577
|
KM_GOODS: {
|
|
23444
23578
|
num: 1
|
|
@@ -23457,7 +23591,9 @@ var processKmGoods$1 = function processKmGoods(_ref7) {
|
|
|
23457
23591
|
sysOuterId: item.goodNo,
|
|
23458
23592
|
outerId: item.goodNo,
|
|
23459
23593
|
skuSysId: item.specId,
|
|
23594
|
+
sysSkuId: item.specId,
|
|
23460
23595
|
itemSysId: item.goodId,
|
|
23596
|
+
sysItemId: item.goodId,
|
|
23461
23597
|
sysPicPath: item.goodPicUrl,
|
|
23462
23598
|
payment: null,
|
|
23463
23599
|
price: item.retailPrice,
|
|
@@ -23468,9 +23604,9 @@ var processKmGoods$1 = function processKmGoods(_ref7) {
|
|
|
23468
23604
|
}, initParamsMap[type] || {});
|
|
23469
23605
|
});
|
|
23470
23606
|
};
|
|
23471
|
-
var processDefaultGoods = function processDefaultGoods(
|
|
23472
|
-
var list =
|
|
23473
|
-
canUpdateNumber =
|
|
23607
|
+
var processDefaultGoods = function processDefaultGoods(_ref9) {
|
|
23608
|
+
var list = _ref9.list,
|
|
23609
|
+
canUpdateNumber = _ref9.canUpdateNumber;
|
|
23474
23610
|
return list.map(function (item) {
|
|
23475
23611
|
var goodsId = item.goodsId,
|
|
23476
23612
|
name = item.name,
|
|
@@ -23576,7 +23712,7 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
23576
23712
|
systemItemIds = dataSource === null || dataSource === void 0 ? void 0 : dataSource.filter(function (item) {
|
|
23577
23713
|
return item === null || item === void 0 ? void 0 : item.sysItemId;
|
|
23578
23714
|
}).map(function (item) {
|
|
23579
|
-
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);
|
|
23715
|
+
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);
|
|
23580
23716
|
});
|
|
23581
23717
|
_context.next = 3;
|
|
23582
23718
|
return kmkfUtils.servers.KM.getSupplierSingleton(systemItemIds);
|
|
@@ -23585,7 +23721,7 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
23585
23721
|
dataSource === null || dataSource === void 0 ? void 0 : (_dataSource$filter = dataSource.filter(function (item) {
|
|
23586
23722
|
return item === null || item === void 0 ? void 0 : item.sysItemId;
|
|
23587
23723
|
})) === null || _dataSource$filter === void 0 ? void 0 : _dataSource$filter.forEach(function (item) {
|
|
23588
|
-
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);
|
|
23724
|
+
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);
|
|
23589
23725
|
var supplierInfo = supplierMap.get(key);
|
|
23590
23726
|
item.supplierCode = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierCode;
|
|
23591
23727
|
item.supplierName = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierName;
|
|
@@ -23743,6 +23879,7 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
23743
23879
|
}
|
|
23744
23880
|
}), /*#__PURE__*/React__default['default'].createElement("span", null, "\u5DF2\u9009\u62E9(", currentTradeOriginGoods === null || currentTradeOriginGoods === void 0 ? void 0 : currentTradeOriginGoods.length, "/", filterDataSource === null || filterDataSource === void 0 ? void 0 : filterDataSource.length, ")")));
|
|
23745
23881
|
};
|
|
23882
|
+
SelectTradeGoods.displayName = 'SelectTradeGoods';
|
|
23746
23883
|
var getButtonText = function getButtonText() {
|
|
23747
23884
|
var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
23748
23885
|
if (['KM_GOODS', 'KM_REISSUE_GOODS'].includes(type)) {
|
|
@@ -25132,21 +25269,25 @@ var getJkyOrderListSingleton = function getJkyOrderListSingleton(orderNo) {
|
|
|
25132
25269
|
extendRequest('/qy/gdfw/jky/erp/trade/fullInfo', {
|
|
25133
25270
|
method: 'post',
|
|
25134
25271
|
data: {
|
|
25135
|
-
|
|
25272
|
+
sourceTradeNos: orderNo
|
|
25136
25273
|
}
|
|
25137
25274
|
}).then(function (res) {
|
|
25138
25275
|
if (res === null || res === void 0 ? void 0 : res.success) {
|
|
25139
|
-
var _res$data, _res$
|
|
25140
|
-
if (res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 :
|
|
25141
|
-
var _filterJkyOrders
|
|
25142
|
-
res.data.trades = (_filterJkyOrders = kmkfUtils.filterJkyOrders(res === null || res === void 0 ? void 0 :
|
|
25276
|
+
var _res$data, _res$data2;
|
|
25277
|
+
if (res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.length) {
|
|
25278
|
+
var _filterJkyOrders;
|
|
25279
|
+
res.data.trades = (_filterJkyOrders = kmkfUtils.filterJkyOrders(res === null || res === void 0 ? void 0 : res.data, orderNo)) === null || _filterJkyOrders === void 0 ? void 0 : _filterJkyOrders.map(function (item) {
|
|
25143
25280
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
25281
|
+
tradeFrom: kmkfUtils.JKY_ORDER_FROM_MAP[item.tradeFrom],
|
|
25144
25282
|
tradeType: kmkfUtils.JKY_ORDER_TYPE_MAP[item.tradeType],
|
|
25145
|
-
tradeStatus: kmkfUtils.JKY_ORDER_STATUS_MAP[item.tradeStatus]
|
|
25283
|
+
tradeStatus: kmkfUtils.JKY_ORDER_STATUS_MAP[item.tradeStatus],
|
|
25284
|
+
logisticName: kmkfUtils.getJkyLogisticInfo(item, 'logisticName'),
|
|
25285
|
+
logisticCode: kmkfUtils.getJkyLogisticInfo(item, 'logisticCode'),
|
|
25286
|
+
logisticNo: kmkfUtils.getJkyLogisticInfo(item, 'logisticNo')
|
|
25146
25287
|
});
|
|
25147
25288
|
});
|
|
25148
25289
|
}
|
|
25149
|
-
resolve(((_res$
|
|
25290
|
+
resolve(((_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.trades) || []);
|
|
25150
25291
|
// 延迟10秒清除,保证订单的时效性
|
|
25151
25292
|
setTimeout(function () {
|
|
25152
25293
|
singletonMap$7.delete(orderNo);
|
|
@@ -25508,8 +25649,8 @@ var index$2 = (function (props) {
|
|
|
25508
25649
|
while (1) switch (_context8.prev = _context8.next) {
|
|
25509
25650
|
case 0:
|
|
25510
25651
|
jyUtils.getJyOrderListSingleton(orderNo).then(function (data) {
|
|
25511
|
-
var trades = (
|
|
25512
|
-
return kmkfUtils.getIsPlatformCodesIncludeOrderNos(item.
|
|
25652
|
+
var trades = (data || []).filter(function (item) {
|
|
25653
|
+
return kmkfUtils.getIsPlatformCodesIncludeOrderNos(item.tradeId, orderNo);
|
|
25513
25654
|
});
|
|
25514
25655
|
_onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, {
|
|
25515
25656
|
orders: trades,
|
|
@@ -25539,12 +25680,9 @@ var index$2 = (function (props) {
|
|
|
25539
25680
|
while (1) switch (_context9.prev = _context9.next) {
|
|
25540
25681
|
case 0:
|
|
25541
25682
|
jkyUtils.getJkyOrderListSingleton(orderNo).then(function (data) {
|
|
25542
|
-
var trades = ((data === null || data === void 0 ? void 0 : data.trades) || []).filter(function (item) {
|
|
25543
|
-
return kmkfUtils.getIsPlatformCodesIncludeOrderNos(item.platformCode, orderNo);
|
|
25544
|
-
});
|
|
25545
25683
|
_onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, {
|
|
25546
|
-
orders:
|
|
25547
|
-
showOrderInfo:
|
|
25684
|
+
orders: data || [],
|
|
25685
|
+
showOrderInfo: data || []
|
|
25548
25686
|
}));
|
|
25549
25687
|
});
|
|
25550
25688
|
onceRef.current = false;
|
|
@@ -26521,8 +26659,8 @@ var processGyOrders = function processGyOrders(_ref4) {
|
|
|
26521
26659
|
var processJyOrders = function processJyOrders(_ref5) {
|
|
26522
26660
|
var data = _ref5.data,
|
|
26523
26661
|
orderNo = _ref5.orderNo;
|
|
26524
|
-
var trades = (
|
|
26525
|
-
return kmkfUtils.getIsPlatformCodesIncludeOrderNos(item.
|
|
26662
|
+
var trades = (data || []).filter(function (item) {
|
|
26663
|
+
return kmkfUtils.getIsPlatformCodesIncludeOrderNos(item.tradeId, orderNo);
|
|
26526
26664
|
});
|
|
26527
26665
|
return trades;
|
|
26528
26666
|
};
|
|
@@ -26847,7 +26985,7 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
26847
26985
|
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) {
|
|
26848
26986
|
return item === null || item === void 0 ? void 0 : item.sysItemId;
|
|
26849
26987
|
})) === null || _value$kmGoods$filter === void 0 ? void 0 : _value$kmGoods$filter.forEach(function (item) {
|
|
26850
|
-
var key = item.sysSkuId == '-1' ? item.sysItemId : "".concat(item.sysItemId, "-").concat(item.sysSkuId);
|
|
26988
|
+
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);
|
|
26851
26989
|
map[key] = item;
|
|
26852
26990
|
});
|
|
26853
26991
|
}
|
|
@@ -26888,7 +27026,8 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
26888
27026
|
hasChange = false;
|
|
26889
27027
|
currentValue = valueRef.current;
|
|
26890
27028
|
kmGoods = currentValue === null || currentValue === void 0 ? void 0 : (_currentValue$kmGoods = currentValue.kmGoods) === null || _currentValue$kmGoods === void 0 ? void 0 : _currentValue$kmGoods.map(function (item) {
|
|
26891
|
-
var
|
|
27029
|
+
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);
|
|
27030
|
+
var supplierInfo = supplierMap.get(key);
|
|
26892
27031
|
var newSupplierCode = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierCode;
|
|
26893
27032
|
var newSupplierName = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierName;
|
|
26894
27033
|
// 如果供应商信息有变化,标记需要更新
|
|
@@ -27172,7 +27311,6 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
27172
27311
|
orderNo: value === null || value === void 0 ? void 0 : value.orderNo,
|
|
27173
27312
|
type: compType
|
|
27174
27313
|
});
|
|
27175
|
-
console.log('getDataSourceAsync', list);
|
|
27176
27314
|
onChange(_objectSpread2(_objectSpread2({}, valueRef.current), {}, {
|
|
27177
27315
|
allOrders: list || []
|
|
27178
27316
|
}));
|
|
@@ -27208,6 +27346,7 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
27208
27346
|
}
|
|
27209
27347
|
}));
|
|
27210
27348
|
};
|
|
27349
|
+
CommonGoods.displayName = 'CommonGoods';
|
|
27211
27350
|
|
|
27212
27351
|
var componentMap$3 = {
|
|
27213
27352
|
WDT_RETURN_GOODS: {
|
|
@@ -27871,14 +28010,14 @@ var typeMap$2 = {
|
|
|
27871
28010
|
alwaysShowChooseErpGoodsBtn: true,
|
|
27872
28011
|
orderTypeKey: 'orderType',
|
|
27873
28012
|
oIdKey: 'tradeNo',
|
|
27874
|
-
outerOiIdKey: '',
|
|
27875
|
-
goodDetailsKey: '
|
|
28013
|
+
outerOiIdKey: 'sourceSubtradeNo',
|
|
28014
|
+
goodDetailsKey: 'goodsDetail',
|
|
27876
28015
|
isShowSelectTradeGoods: true,
|
|
27877
28016
|
showModeBtn: true
|
|
27878
28017
|
}
|
|
27879
28018
|
};
|
|
27880
28019
|
var PublicReissue = function PublicReissue(props) {
|
|
27881
|
-
var _typeMap$
|
|
28020
|
+
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;
|
|
27882
28021
|
var value = props.value,
|
|
27883
28022
|
onChange = props.onChange,
|
|
27884
28023
|
_props$reasonList = props.reasonList,
|
|
@@ -28001,7 +28140,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28001
28140
|
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) {
|
|
28002
28141
|
return item === null || item === void 0 ? void 0 : item.sysItemId;
|
|
28003
28142
|
})) === null || _value$kmReissueGoods2 === void 0 ? void 0 : _value$kmReissueGoods2.forEach(function (item) {
|
|
28004
|
-
var key = item.sysSkuId == '-1' ? item.sysItemId : "".concat(item.sysItemId, "-").concat(item.sysSkuId);
|
|
28143
|
+
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);
|
|
28005
28144
|
map[key] = item;
|
|
28006
28145
|
});
|
|
28007
28146
|
}
|
|
@@ -28042,7 +28181,8 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28042
28181
|
hasChange = false;
|
|
28043
28182
|
currentValue = valueRef.current;
|
|
28044
28183
|
kmReissueGoods = currentValue === null || currentValue === void 0 ? void 0 : (_currentValue$kmReiss = currentValue.kmReissueGoods) === null || _currentValue$kmReiss === void 0 ? void 0 : _currentValue$kmReiss.map(function (item) {
|
|
28045
|
-
var
|
|
28184
|
+
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);
|
|
28185
|
+
var supplierInfo = supplierMap.get(key);
|
|
28046
28186
|
var newSupplierCode = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierCode;
|
|
28047
28187
|
var newSupplierName = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierName;
|
|
28048
28188
|
// 如果供应商信息有变化,标记需要更新
|
|
@@ -28078,7 +28218,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28078
28218
|
}
|
|
28079
28219
|
}, [sysItemIdMap]);
|
|
28080
28220
|
var getGoodDetails = function getGoodDetails(_ref5) {
|
|
28081
|
-
var _typeMap$type18, _typeMap$type19, _value$typeMap$type$s6, _typeMap$type20, _typeMap$type21, _typeMap$type22, _typeMap$type23
|
|
28221
|
+
var _typeMap$type18, _typeMap$type19, _value$typeMap$type$s6, _typeMap$type20, _typeMap$type21, _typeMap$type22, _typeMap$type23;
|
|
28082
28222
|
var mode = _ref5.mode,
|
|
28083
28223
|
sysOrderNo = _ref5.sysOrderNo,
|
|
28084
28224
|
_ref5$isAllOrders = _ref5.isAllOrders,
|
|
@@ -28110,8 +28250,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28110
28250
|
var _order$typeMap$type$g;
|
|
28111
28251
|
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;
|
|
28112
28252
|
});
|
|
28113
|
-
|
|
28114
|
-
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) : [];
|
|
28253
|
+
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) : [];
|
|
28115
28254
|
var orderNo = systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orderNo;
|
|
28116
28255
|
var list = mode && !isAllOrders ? goodDetails.filter(function (goodItem) {
|
|
28117
28256
|
return !orderNo || goodItem[typeMap$2[type].outerOiIdKey] === orderNo;
|
|
@@ -28119,30 +28258,30 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28119
28258
|
return list;
|
|
28120
28259
|
};
|
|
28121
28260
|
var changeGoodHandle = function changeGoodHandle(val) {
|
|
28122
|
-
var _typeMap$
|
|
28261
|
+
var _typeMap$type24;
|
|
28123
28262
|
var newValue = _objectSpread2({}, value);
|
|
28124
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28263
|
+
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 || [];
|
|
28125
28264
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
28126
28265
|
};
|
|
28127
28266
|
var changeSystemOrderHandle = function changeSystemOrderHandle(val) {
|
|
28128
|
-
var _typeMap$
|
|
28267
|
+
var _typeMap$type25, _typeMap$type26, _value$typeMap$type$t2, _typeMap$type31, _value$typeMap$type$t3, _typeMap$type33;
|
|
28129
28268
|
var newValue = _objectSpread2({}, value);
|
|
28130
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28131
|
-
if (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28132
|
-
var _value$typeMap$type$s7, _typeMap$
|
|
28133
|
-
var orders = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s7 = value[(_typeMap$
|
|
28269
|
+
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;
|
|
28270
|
+
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) {
|
|
28271
|
+
var _value$typeMap$type$s7, _typeMap$type27, _typeMap$type29, _typeMap$type30;
|
|
28272
|
+
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) || [];
|
|
28134
28273
|
var targetOrder = val && orders.find(function (oItem) {
|
|
28135
|
-
var _typeMap$
|
|
28136
|
-
return oItem[(_typeMap$
|
|
28274
|
+
var _typeMap$type28;
|
|
28275
|
+
return oItem[(_typeMap$type28 = typeMap$2[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.oIdKey] === val;
|
|
28137
28276
|
});
|
|
28138
|
-
newValue[(_typeMap$
|
|
28139
|
-
}
|
|
28140
|
-
if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$
|
|
28141
|
-
var _typeMap$
|
|
28142
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28143
|
-
} else if (['1'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$
|
|
28144
|
-
var _typeMap$
|
|
28145
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28277
|
+
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];
|
|
28278
|
+
}
|
|
28279
|
+
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])) {
|
|
28280
|
+
var _typeMap$type32;
|
|
28281
|
+
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)] = [];
|
|
28282
|
+
} 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])) {
|
|
28283
|
+
var _typeMap$type34;
|
|
28284
|
+
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({
|
|
28146
28285
|
mode: isStrict,
|
|
28147
28286
|
sysOrderNo: val
|
|
28148
28287
|
});
|
|
@@ -28150,27 +28289,27 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28150
28289
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue, 'systemOrder');
|
|
28151
28290
|
};
|
|
28152
28291
|
//显示选择商品按钮
|
|
28153
|
-
var showChangeBtn = !!(value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
28292
|
+
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]);
|
|
28154
28293
|
var selectedGoodsChange = React.useCallback(function (skuList) {
|
|
28155
|
-
var _typeMap$
|
|
28294
|
+
var _typeMap$type36, _typeMap$type37, _typeMap$type38, _uniqBy, _typeMap$type39;
|
|
28156
28295
|
var newValue = _objectSpread2({}, value);
|
|
28157
28296
|
// 原订单商品
|
|
28158
28297
|
var originTradeGoodList = getGoodDetails({
|
|
28159
28298
|
mode: isStrict,
|
|
28160
|
-
isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28299
|
+
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
|
|
28161
28300
|
}) || [];
|
|
28162
28301
|
// 当前选中的所有商品【包含了原订单+商品库】
|
|
28163
|
-
var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28164
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28165
|
-
var _typeMap$
|
|
28166
|
-
return skuList.includes(item[(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28302
|
+
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)]) || [];
|
|
28303
|
+
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 = lodash.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) {
|
|
28304
|
+
var _typeMap$type40;
|
|
28305
|
+
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']);
|
|
28167
28306
|
});
|
|
28168
28307
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
28169
|
-
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28308
|
+
}, [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]);
|
|
28170
28309
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Row, {
|
|
28171
28310
|
gutter: 8,
|
|
28172
28311
|
wrap: true,
|
|
28173
|
-
id: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28312
|
+
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())
|
|
28174
28313
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
28175
28314
|
className: "gutter-row",
|
|
28176
28315
|
xs: {
|
|
@@ -28186,12 +28325,12 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28186
28325
|
},
|
|
28187
28326
|
disabled: disabled,
|
|
28188
28327
|
allowClear: false,
|
|
28189
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28328
|
+
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)],
|
|
28190
28329
|
onChange: function onChange(val) {
|
|
28191
28330
|
return changeSystemOrderHandle(val);
|
|
28192
28331
|
},
|
|
28193
|
-
placeholder: "\u9009\u62E9".concat((typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28194
|
-
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s8 = value[(_typeMap$
|
|
28332
|
+
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")
|
|
28333
|
+
}, ((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) {
|
|
28195
28334
|
return /*#__PURE__*/React__default['default'].createElement(antd.Select.Option, {
|
|
28196
28335
|
key: item[typeMap$2[type].oIdKey],
|
|
28197
28336
|
value: item[typeMap$2[type].oIdKey],
|
|
@@ -28213,11 +28352,11 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28213
28352
|
disabled: isSettingConfig ? !isSettingConfig : disabled,
|
|
28214
28353
|
allowClear: false,
|
|
28215
28354
|
options: reasonList,
|
|
28216
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28355
|
+
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)],
|
|
28217
28356
|
onChange: function onChange(val) {
|
|
28218
28357
|
return changeTypeHandle(val);
|
|
28219
28358
|
}
|
|
28220
|
-
})), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28359
|
+
})), (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__default['default'].createElement(antd.Col, {
|
|
28221
28360
|
className: "gutter-row",
|
|
28222
28361
|
xs: {
|
|
28223
28362
|
span: 11
|
|
@@ -28226,7 +28365,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28226
28365
|
span: 6
|
|
28227
28366
|
}
|
|
28228
28367
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
28229
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28368
|
+
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)],
|
|
28230
28369
|
disabled: disabled,
|
|
28231
28370
|
readOnly: true
|
|
28232
28371
|
}))), /*#__PURE__*/React__default['default'].createElement(GoodItem$1, _objectSpread2(_objectSpread2({
|
|
@@ -28237,29 +28376,30 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28237
28376
|
canUpdateNumber: showChangeBtn,
|
|
28238
28377
|
hasSelectedSystemOrder: showChangeBtn,
|
|
28239
28378
|
// showChangeBtn={showChangeBtn || typeMap?.[type]?.isShowSelectTradeGoods}
|
|
28240
|
-
alwaysShowChooseErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28379
|
+
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,
|
|
28241
28380
|
// showErpGoodsBtn={typeMap?.[type]?.showErpGoodsBtn}
|
|
28242
28381
|
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
28243
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28382
|
+
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)],
|
|
28244
28383
|
onChange: function onChange(val) {
|
|
28245
28384
|
return changeGoodHandle(val);
|
|
28246
28385
|
},
|
|
28247
28386
|
onModeChange: handleModeChange,
|
|
28248
|
-
showModeBtn: !!(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28387
|
+
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),
|
|
28249
28388
|
isStrict: isStrict,
|
|
28250
|
-
isShowSelectTradeGoods: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28251
|
-
systemOrders: value === null || value === void 0 ? void 0 : (_value$typeMap$type$s9 = value[(_typeMap$
|
|
28252
|
-
selectedSystemOrders: showChangeBtn ? [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28389
|
+
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,
|
|
28390
|
+
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,
|
|
28391
|
+
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)]] : [],
|
|
28253
28392
|
tradeGoods: {
|
|
28254
28393
|
originDataSource: getGoodDetails({
|
|
28255
28394
|
mode: isStrict,
|
|
28256
|
-
isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28395
|
+
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
|
|
28257
28396
|
}),
|
|
28258
|
-
uniqueKey: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28397
|
+
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',
|
|
28259
28398
|
selectedGoodsChange: selectedGoodsChange
|
|
28260
28399
|
}
|
|
28261
28400
|
})));
|
|
28262
28401
|
};
|
|
28402
|
+
PublicReissue.displayName = 'PublicReissue';
|
|
28263
28403
|
|
|
28264
28404
|
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";
|
|
28265
28405
|
styleInject(css_248z$g);
|