@kmkf-fe-packages/basic-components 2.2.44-beta.5 → 2.2.44-beta.53
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 +377 -272
- package/dist/index.js +376 -271
- 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/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' : '')
|
|
@@ -15103,12 +15183,7 @@ var kmColumns = [{
|
|
|
15103
15183
|
ellipsis: true,
|
|
15104
15184
|
width: 150,
|
|
15105
15185
|
render: function render(type) {
|
|
15106
|
-
return renderTextEllipsis(
|
|
15107
|
-
0: '普通',
|
|
15108
|
-
1: 'sku套件',
|
|
15109
|
-
2: '纯套件',
|
|
15110
|
-
3: '包材商品'
|
|
15111
|
-
}[type] || type);
|
|
15186
|
+
return renderTextEllipsis((kmkfUtils.kmSkuTypeMap === null || kmkfUtils.kmSkuTypeMap === void 0 ? void 0 : kmkfUtils.kmSkuTypeMap[type]) || type);
|
|
15112
15187
|
}
|
|
15113
15188
|
}, {
|
|
15114
15189
|
dataIndex: 'specName',
|
|
@@ -15341,34 +15416,75 @@ var jyColumns = [{
|
|
|
15341
15416
|
}
|
|
15342
15417
|
}];
|
|
15343
15418
|
|
|
15419
|
+
var getYesOrNo$2 = function getYesOrNo(val) {
|
|
15420
|
+
if (!lodash.isBoolean(val)) return null;
|
|
15421
|
+
return val ? '是' : '否';
|
|
15422
|
+
};
|
|
15344
15423
|
var jkyColumns = [{
|
|
15345
|
-
dataIndex: '
|
|
15346
|
-
title: "\u8D27\u54C1\
|
|
15424
|
+
dataIndex: 'goodName',
|
|
15425
|
+
title: "\u8D27\u54C1\u540D\u79F0",
|
|
15347
15426
|
align: 'center',
|
|
15348
15427
|
ellipsis: true,
|
|
15349
15428
|
width: 150,
|
|
15350
15429
|
render: renderTextEllipsis
|
|
15351
15430
|
}, {
|
|
15352
|
-
dataIndex: '
|
|
15353
|
-
title: "\u8D27\u54C1\
|
|
15431
|
+
dataIndex: 'goodNo',
|
|
15432
|
+
title: "\u8D27\u54C1\u7F16\u53F7",
|
|
15354
15433
|
align: 'center',
|
|
15355
15434
|
ellipsis: true,
|
|
15356
15435
|
width: 150,
|
|
15357
15436
|
render: renderTextEllipsis
|
|
15358
15437
|
}, {
|
|
15359
|
-
dataIndex: '
|
|
15438
|
+
dataIndex: 'goodId',
|
|
15360
15439
|
title: "\u8D27\u54C1ID",
|
|
15361
15440
|
align: 'center',
|
|
15362
15441
|
ellipsis: true,
|
|
15363
15442
|
width: 150,
|
|
15364
15443
|
render: renderTextEllipsis
|
|
15365
15444
|
}, {
|
|
15366
|
-
dataIndex: '
|
|
15445
|
+
dataIndex: 'goodPicUrl',
|
|
15446
|
+
title: "\u8D27\u54C1\u4E3B\u56FE",
|
|
15447
|
+
align: 'center',
|
|
15448
|
+
ellipsis: true,
|
|
15449
|
+
width: 150,
|
|
15450
|
+
render: function render(picUrl) {
|
|
15451
|
+
return /*#__PURE__*/React__default['default'].createElement("img", {
|
|
15452
|
+
style: {
|
|
15453
|
+
width: '30px',
|
|
15454
|
+
height: '30px',
|
|
15455
|
+
objectFit: 'contain'
|
|
15456
|
+
},
|
|
15457
|
+
src: picUrl
|
|
15458
|
+
});
|
|
15459
|
+
}
|
|
15460
|
+
}, {
|
|
15461
|
+
dataIndex: 'goodShortName',
|
|
15462
|
+
title: "\u8D27\u54C1\u522B\u540D",
|
|
15463
|
+
align: 'center',
|
|
15464
|
+
ellipsis: true,
|
|
15465
|
+
width: 150,
|
|
15466
|
+
render: renderTextEllipsis
|
|
15467
|
+
}, {
|
|
15468
|
+
dataIndex: 'specBarcode',
|
|
15367
15469
|
title: "\u8D27\u54C1\u6761\u7801",
|
|
15368
15470
|
align: 'center',
|
|
15369
15471
|
ellipsis: true,
|
|
15370
15472
|
width: 150,
|
|
15371
15473
|
render: renderTextEllipsis
|
|
15474
|
+
}, {
|
|
15475
|
+
dataIndex: 'categoryName',
|
|
15476
|
+
title: "\u8D27\u54C1\u7C7B\u522B",
|
|
15477
|
+
align: 'center',
|
|
15478
|
+
ellipsis: true,
|
|
15479
|
+
width: 150,
|
|
15480
|
+
render: renderTextEllipsis
|
|
15481
|
+
}, {
|
|
15482
|
+
dataIndex: 'brandName',
|
|
15483
|
+
title: "\u54C1\u724C",
|
|
15484
|
+
align: 'center',
|
|
15485
|
+
ellipsis: true,
|
|
15486
|
+
width: 200,
|
|
15487
|
+
render: renderTextEllipsis
|
|
15372
15488
|
}, {
|
|
15373
15489
|
dataIndex: 'specName',
|
|
15374
15490
|
title: "\u89C4\u683C\u540D\u79F0",
|
|
@@ -15384,7 +15500,14 @@ var jkyColumns = [{
|
|
|
15384
15500
|
width: 150,
|
|
15385
15501
|
render: renderTextEllipsis
|
|
15386
15502
|
}, {
|
|
15387
|
-
dataIndex: '
|
|
15503
|
+
dataIndex: 'specNo',
|
|
15504
|
+
title: "\u89C4\u683C\u7F16\u7801",
|
|
15505
|
+
align: 'center',
|
|
15506
|
+
ellipsis: true,
|
|
15507
|
+
width: 150,
|
|
15508
|
+
render: renderTextEllipsis
|
|
15509
|
+
}, {
|
|
15510
|
+
dataIndex: 'specImgUrl',
|
|
15388
15511
|
title: "\u89C4\u683C\u56FE\u7247",
|
|
15389
15512
|
align: 'center',
|
|
15390
15513
|
ellipsis: true,
|
|
@@ -15400,162 +15523,78 @@ var jkyColumns = [{
|
|
|
15400
15523
|
});
|
|
15401
15524
|
}
|
|
15402
15525
|
}, {
|
|
15403
|
-
dataIndex: '
|
|
15404
|
-
title: "\
|
|
15405
|
-
width: 100,
|
|
15406
|
-
render: function render(val) {
|
|
15407
|
-
return /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
15408
|
-
}
|
|
15409
|
-
}, {
|
|
15410
|
-
dataIndex: 'actualSendCount',
|
|
15411
|
-
title: "\u5B9E\u53D1\u6570\u91CF",
|
|
15412
|
-
width: 150,
|
|
15413
|
-
render: renderTextEllipsis
|
|
15414
|
-
}, {
|
|
15415
|
-
dataIndex: 'sellPrice',
|
|
15416
|
-
title: "\u5355\u4EF7",
|
|
15417
|
-
width: 150,
|
|
15418
|
-
render: function render(val) {
|
|
15419
|
-
return val || val === 0 ? Number(val).toFixed(2) : '';
|
|
15420
|
-
}
|
|
15421
|
-
}, {
|
|
15422
|
-
dataIndex: 'sellTotal',
|
|
15423
|
-
title: "\u91D1\u989D",
|
|
15424
|
-
width: 150
|
|
15425
|
-
}, {
|
|
15426
|
-
dataIndex: 'discountTotal',
|
|
15427
|
-
title: "\u62B5\u6263\u91D1\u989D",
|
|
15428
|
-
width: 150
|
|
15429
|
-
}, {
|
|
15430
|
-
dataIndex: 'shareFavourableFee',
|
|
15431
|
-
title: "\u5206\u644A\u91D1\u989D",
|
|
15432
|
-
width: 150
|
|
15433
|
-
}, {
|
|
15434
|
-
dataIndex: 'shareFavourableAfterFee',
|
|
15435
|
-
title: "\u5206\u644A\u540E\u91D1\u989D",
|
|
15436
|
-
width: 150
|
|
15437
|
-
}, {
|
|
15438
|
-
dataIndex: 'customerPrice',
|
|
15439
|
-
title: "\u7EC8\u7AEF\u9500\u552E\u5355\u4EF7",
|
|
15440
|
-
width: 150
|
|
15441
|
-
}, {
|
|
15442
|
-
dataIndex: 'customerTotal',
|
|
15443
|
-
title: "\u7EC8\u7AEF\u9500\u552E\u91D1\u989D",
|
|
15444
|
-
width: 150
|
|
15445
|
-
}, {
|
|
15446
|
-
dataIndex: 'divideSellTotal',
|
|
15447
|
-
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
15448
|
-
width: 150
|
|
15449
|
-
}, {
|
|
15450
|
-
dataIndex: 'isGift',
|
|
15451
|
-
title: "\u662F\u5426\u8D60\u54C1",
|
|
15452
|
-
width: 150,
|
|
15453
|
-
render: function render(val) {
|
|
15454
|
-
return /*#__PURE__*/React__default['default'].createElement("span", null, val === '1' ? '是' : '否');
|
|
15455
|
-
}
|
|
15456
|
-
}, {
|
|
15457
|
-
dataIndex: 'isFit',
|
|
15458
|
-
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
15459
|
-
width: 150,
|
|
15460
|
-
render: function render(val) {
|
|
15461
|
-
return /*#__PURE__*/React__default['default'].createElement("span", null, val === '1' ? '是' : '否');
|
|
15462
|
-
}
|
|
15463
|
-
}, {
|
|
15464
|
-
dataIndex: 'isPresell',
|
|
15465
|
-
title: "\u662F\u5426\u9884\u552E\u8D27\u54C1",
|
|
15466
|
-
width: 150,
|
|
15467
|
-
render: function render(val) {
|
|
15468
|
-
return /*#__PURE__*/React__default['default'].createElement("span", null, val === '1' ? '是' : '否');
|
|
15469
|
-
}
|
|
15470
|
-
}, {
|
|
15471
|
-
dataIndex: 'brandName',
|
|
15472
|
-
title: "\u54C1\u724C",
|
|
15526
|
+
dataIndex: 'colorName',
|
|
15527
|
+
title: "\u989C\u8272\u540D\u79F0",
|
|
15473
15528
|
align: 'center',
|
|
15474
15529
|
ellipsis: true,
|
|
15475
|
-
width:
|
|
15530
|
+
width: 150,
|
|
15476
15531
|
render: renderTextEllipsis
|
|
15477
15532
|
}, {
|
|
15478
|
-
dataIndex: '
|
|
15479
|
-
title: "\
|
|
15533
|
+
dataIndex: 'colorCode',
|
|
15534
|
+
title: "\u989C\u8272\u4EE3\u7801",
|
|
15480
15535
|
align: 'center',
|
|
15481
15536
|
ellipsis: true,
|
|
15482
15537
|
width: 150,
|
|
15483
15538
|
render: renderTextEllipsis
|
|
15484
15539
|
}, {
|
|
15485
|
-
dataIndex: '
|
|
15486
|
-
title: "\
|
|
15540
|
+
dataIndex: 'sizeName',
|
|
15541
|
+
title: "\u5C3A\u7801\u540D\u79F0",
|
|
15487
15542
|
align: 'center',
|
|
15488
15543
|
ellipsis: true,
|
|
15489
|
-
width:
|
|
15544
|
+
width: 150,
|
|
15490
15545
|
render: renderTextEllipsis
|
|
15491
15546
|
}, {
|
|
15492
|
-
dataIndex: '
|
|
15493
|
-
title: "\
|
|
15547
|
+
dataIndex: 'sizeCode',
|
|
15548
|
+
title: "\u5C3A\u7801\u4EE3\u7801",
|
|
15494
15549
|
align: 'center',
|
|
15495
15550
|
ellipsis: true,
|
|
15496
|
-
width:
|
|
15551
|
+
width: 150,
|
|
15497
15552
|
render: renderTextEllipsis
|
|
15498
15553
|
}, {
|
|
15499
|
-
dataIndex: '
|
|
15500
|
-
title: "\
|
|
15554
|
+
dataIndex: 'marketPrice',
|
|
15555
|
+
title: "\u5E02\u573A\u4EF7",
|
|
15501
15556
|
align: 'center',
|
|
15502
15557
|
ellipsis: true,
|
|
15503
|
-
width:
|
|
15504
|
-
render: renderTextEllipsis
|
|
15505
|
-
}, {
|
|
15506
|
-
dataIndex: 'tradeGoodsName',
|
|
15507
|
-
title: "\u4EA4\u6613\u8D27\u54C1\u540D\u79F0",
|
|
15508
|
-
ellipsis: true,
|
|
15509
|
-
width: 250,
|
|
15510
|
-
render: renderTextEllipsis
|
|
15511
|
-
}, {
|
|
15512
|
-
dataIndex: 'tradeGoodsSpec',
|
|
15513
|
-
title: "\u4EA4\u6613\u89C4\u683C\u540D\u79F0",
|
|
15514
|
-
ellipsis: true,
|
|
15515
|
-
width: 250,
|
|
15516
|
-
render: renderTextEllipsis
|
|
15517
|
-
}, {
|
|
15518
|
-
dataIndex: 'sourceSubtradeNo',
|
|
15519
|
-
title: "\u7F51\u5E97\u5B50\u8BA2\u5355\u53F7",
|
|
15520
|
-
ellipsis: true,
|
|
15521
|
-
width: 250,
|
|
15522
|
-
render: renderTextEllipsis
|
|
15523
|
-
}, {
|
|
15524
|
-
dataIndex: 'platGoodsId',
|
|
15525
|
-
title: "\u5E73\u53F0\u5546\u54C1ID",
|
|
15526
|
-
ellipsis: true,
|
|
15527
|
-
width: 250,
|
|
15558
|
+
width: 150,
|
|
15528
15559
|
render: renderTextEllipsis
|
|
15529
15560
|
}, {
|
|
15530
|
-
dataIndex: '
|
|
15531
|
-
title: "\
|
|
15561
|
+
dataIndex: 'retailPrice',
|
|
15562
|
+
title: "\u96F6\u552E\u4EF7",
|
|
15563
|
+
align: 'center',
|
|
15532
15564
|
ellipsis: true,
|
|
15533
|
-
width:
|
|
15565
|
+
width: 150,
|
|
15534
15566
|
render: renderTextEllipsis
|
|
15535
15567
|
}, {
|
|
15536
|
-
dataIndex: '
|
|
15537
|
-
title: "\
|
|
15568
|
+
dataIndex: 'memberPrice',
|
|
15569
|
+
title: "\u4F1A\u5458\u4EF7",
|
|
15570
|
+
align: 'center',
|
|
15538
15571
|
ellipsis: true,
|
|
15539
|
-
width:
|
|
15572
|
+
width: 150,
|
|
15540
15573
|
render: renderTextEllipsis
|
|
15541
15574
|
}, {
|
|
15542
|
-
dataIndex: '
|
|
15543
|
-
title: "\
|
|
15575
|
+
dataIndex: 'costPrice',
|
|
15576
|
+
title: "\u6210\u672C\u4EF7",
|
|
15577
|
+
align: 'center',
|
|
15544
15578
|
ellipsis: true,
|
|
15545
|
-
width:
|
|
15579
|
+
width: 150,
|
|
15546
15580
|
render: renderTextEllipsis
|
|
15547
15581
|
}, {
|
|
15548
|
-
dataIndex: '
|
|
15549
|
-
title: "\
|
|
15582
|
+
dataIndex: 'isVirtual',
|
|
15583
|
+
title: "\u662F\u5426\u865A\u62DF\u5546\u54C1",
|
|
15584
|
+
align: 'center',
|
|
15550
15585
|
ellipsis: true,
|
|
15551
|
-
width:
|
|
15552
|
-
render:
|
|
15586
|
+
width: 150,
|
|
15587
|
+
render: function render(val) {
|
|
15588
|
+
return renderTextEllipsis(getYesOrNo$2(val));
|
|
15589
|
+
}
|
|
15553
15590
|
}, {
|
|
15554
|
-
dataIndex: '
|
|
15555
|
-
title: "\
|
|
15591
|
+
dataIndex: 'skuType',
|
|
15592
|
+
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
15556
15593
|
ellipsis: true,
|
|
15557
|
-
width:
|
|
15558
|
-
render:
|
|
15594
|
+
width: 150,
|
|
15595
|
+
render: function render(val) {
|
|
15596
|
+
return renderTextEllipsis(getYesOrNo$2(val === 'combine'));
|
|
15597
|
+
}
|
|
15559
15598
|
}];
|
|
15560
15599
|
|
|
15561
15600
|
var getColumnsMap = function getColumnsMap() {
|
|
@@ -18798,13 +18837,15 @@ var JyGoodsModal$1 = /*#__PURE__*/React.forwardRef(JyGoodsModal);
|
|
|
18798
18837
|
var getTableData$6 = function getTableData(_ref, formData) {
|
|
18799
18838
|
var current = _ref.current,
|
|
18800
18839
|
pageSize = _ref.pageSize;
|
|
18840
|
+
var conditionList = transformFormData(formData);
|
|
18801
18841
|
return extendRequest('/qy/gdfw/product/product/page', {
|
|
18802
18842
|
method: 'post',
|
|
18803
|
-
data:
|
|
18843
|
+
data: {
|
|
18804
18844
|
pageSize: pageSize,
|
|
18805
18845
|
pageNo: current,
|
|
18806
|
-
platform: '
|
|
18807
|
-
|
|
18846
|
+
platform: 'JKY_ERP',
|
|
18847
|
+
conditionList: conditionList
|
|
18848
|
+
}
|
|
18808
18849
|
}).then(function (res) {
|
|
18809
18850
|
var _res$data = res.data,
|
|
18810
18851
|
_res$data$productSkuL = _res$data.productSkuList,
|
|
@@ -18827,13 +18868,15 @@ var searchFormData$5 = [{
|
|
|
18827
18868
|
}, {
|
|
18828
18869
|
label: '规格编码',
|
|
18829
18870
|
name: 'skuCode',
|
|
18830
|
-
dataIndex: 'specNo'
|
|
18871
|
+
dataIndex: 'specNo',
|
|
18872
|
+
type: 'optionalInput'
|
|
18831
18873
|
}, {
|
|
18832
|
-
label: '
|
|
18874
|
+
label: '货品名称',
|
|
18833
18875
|
name: 'goodName'
|
|
18834
18876
|
}, {
|
|
18835
|
-
label: '
|
|
18836
|
-
name: 'goodNo'
|
|
18877
|
+
label: '货品编码',
|
|
18878
|
+
name: 'goodNo',
|
|
18879
|
+
type: 'optionalInput'
|
|
18837
18880
|
}];
|
|
18838
18881
|
var GoodList$6 = function GoodList(props, ref) {
|
|
18839
18882
|
var _useState = React.useState([]),
|
|
@@ -18903,8 +18946,8 @@ var GoodList$6 = function GoodList(props, ref) {
|
|
|
18903
18946
|
getCheckboxProps: function getCheckboxProps(record) {
|
|
18904
18947
|
var options = {
|
|
18905
18948
|
disabled: (props.selectedRows || []).map(function (row) {
|
|
18906
|
-
return row.
|
|
18907
|
-
}).includes(record.
|
|
18949
|
+
return row.specId || record.id;
|
|
18950
|
+
}).includes(record.specId || record.id),
|
|
18908
18951
|
name: record.id
|
|
18909
18952
|
};
|
|
18910
18953
|
return options;
|
|
@@ -20351,7 +20394,7 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
20351
20394
|
};
|
|
20352
20395
|
};
|
|
20353
20396
|
|
|
20354
|
-
var getYesOrNo$
|
|
20397
|
+
var getYesOrNo$3 = function getYesOrNo(val) {
|
|
20355
20398
|
if (kmkfUtils.isNull(val)) return null;
|
|
20356
20399
|
return val ? '是' : '否';
|
|
20357
20400
|
};
|
|
@@ -20502,7 +20545,7 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
20502
20545
|
label: '否',
|
|
20503
20546
|
value: false
|
|
20504
20547
|
}]
|
|
20505
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$
|
|
20548
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$3(val));
|
|
20506
20549
|
},
|
|
20507
20550
|
width: 100
|
|
20508
20551
|
}]
|
|
@@ -20514,7 +20557,7 @@ var isNumberOrNumberString$1 = function isNumberOrNumberString(value) {
|
|
|
20514
20557
|
if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
|
|
20515
20558
|
return false;
|
|
20516
20559
|
};
|
|
20517
|
-
var getYesOrNo$
|
|
20560
|
+
var getYesOrNo$4 = function getYesOrNo(val) {
|
|
20518
20561
|
if (kmkfUtils.isNull(val)) return null;
|
|
20519
20562
|
return val ? '是' : '否';
|
|
20520
20563
|
};
|
|
@@ -20629,7 +20672,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
20629
20672
|
title: "\u662F\u5426\u53D6\u6D88",
|
|
20630
20673
|
width: 150,
|
|
20631
20674
|
render: function render(val) {
|
|
20632
|
-
return /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$
|
|
20675
|
+
return /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$4(val));
|
|
20633
20676
|
}
|
|
20634
20677
|
}, {
|
|
20635
20678
|
dataIndex: 'isGift',
|
|
@@ -20648,7 +20691,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
20648
20691
|
label: '否',
|
|
20649
20692
|
value: 0
|
|
20650
20693
|
}]
|
|
20651
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$
|
|
20694
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$4(val));
|
|
20652
20695
|
}
|
|
20653
20696
|
}, {
|
|
20654
20697
|
dataIndex: 'skuNote',
|
|
@@ -20774,7 +20817,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
20774
20817
|
label: '否',
|
|
20775
20818
|
value: 0
|
|
20776
20819
|
}]
|
|
20777
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$
|
|
20820
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$4(val));
|
|
20778
20821
|
}
|
|
20779
20822
|
}].map(function (item) {
|
|
20780
20823
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
@@ -20903,7 +20946,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
20903
20946
|
label: '否',
|
|
20904
20947
|
value: 0
|
|
20905
20948
|
}]
|
|
20906
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$
|
|
20949
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$4(val));
|
|
20907
20950
|
}
|
|
20908
20951
|
}].map(function (item) {
|
|
20909
20952
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
@@ -22543,7 +22586,7 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22543
22586
|
}
|
|
22544
22587
|
}, {
|
|
22545
22588
|
dataIndex: 'sellTotal',
|
|
22546
|
-
title: "\u91D1\u989D",
|
|
22589
|
+
title: "\u603B\u91D1\u989D",
|
|
22547
22590
|
width: 150
|
|
22548
22591
|
}, {
|
|
22549
22592
|
dataIndex: 'discountTotal',
|
|
@@ -22568,7 +22611,22 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22568
22611
|
}, {
|
|
22569
22612
|
dataIndex: 'divideSellTotal',
|
|
22570
22613
|
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
22571
|
-
width: 150
|
|
22614
|
+
width: 150,
|
|
22615
|
+
render: function render(val, record, index) {
|
|
22616
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
22617
|
+
style: {
|
|
22618
|
+
width: 130
|
|
22619
|
+
},
|
|
22620
|
+
value: val,
|
|
22621
|
+
min: 0,
|
|
22622
|
+
precision: 2,
|
|
22623
|
+
onChange: function onChange(num) {
|
|
22624
|
+
updateDataHandle({
|
|
22625
|
+
divideSellTotal: num
|
|
22626
|
+
}, index);
|
|
22627
|
+
}
|
|
22628
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
22629
|
+
}
|
|
22572
22630
|
}, {
|
|
22573
22631
|
dataIndex: 'isGift',
|
|
22574
22632
|
title: "\u662F\u5426\u8D60\u54C1",
|
|
@@ -22587,12 +22645,12 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22587
22645
|
},
|
|
22588
22646
|
options: [{
|
|
22589
22647
|
label: '是',
|
|
22590
|
-
value:
|
|
22648
|
+
value: 1
|
|
22591
22649
|
}, {
|
|
22592
22650
|
label: '否',
|
|
22593
|
-
value:
|
|
22651
|
+
value: 0
|
|
22594
22652
|
}]
|
|
22595
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val
|
|
22653
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val == 1 ? '是' : '否');
|
|
22596
22654
|
}
|
|
22597
22655
|
}, {
|
|
22598
22656
|
dataIndex: 'isFit',
|
|
@@ -22612,12 +22670,12 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22612
22670
|
},
|
|
22613
22671
|
options: [{
|
|
22614
22672
|
label: '是',
|
|
22615
|
-
value:
|
|
22673
|
+
value: 1
|
|
22616
22674
|
}, {
|
|
22617
22675
|
label: '否',
|
|
22618
|
-
value:
|
|
22676
|
+
value: 0
|
|
22619
22677
|
}]
|
|
22620
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val
|
|
22678
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val == 1 ? '是' : '否');
|
|
22621
22679
|
}
|
|
22622
22680
|
}, {
|
|
22623
22681
|
dataIndex: 'isPresell',
|
|
@@ -22642,7 +22700,7 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22642
22700
|
label: '否',
|
|
22643
22701
|
value: '0'
|
|
22644
22702
|
}]
|
|
22645
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val
|
|
22703
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val == '1' ? '是' : '否');
|
|
22646
22704
|
}
|
|
22647
22705
|
}, {
|
|
22648
22706
|
dataIndex: 'brandName',
|
|
@@ -22861,8 +22919,8 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22861
22919
|
width: 250,
|
|
22862
22920
|
render: function render(val, record, index) {
|
|
22863
22921
|
return !disabled ? /*#__PURE__*/React__default['default'].createElement(ApaasInput, {
|
|
22864
|
-
onChange: function onChange(
|
|
22865
|
-
updateHandle(value, index, 'reason');
|
|
22922
|
+
onChange: function onChange(e) {
|
|
22923
|
+
updateHandle(e.target.value, index, 'reason');
|
|
22866
22924
|
}
|
|
22867
22925
|
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
22868
22926
|
}
|
|
@@ -22878,12 +22936,12 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22878
22936
|
},
|
|
22879
22937
|
options: [{
|
|
22880
22938
|
label: '是',
|
|
22881
|
-
value:
|
|
22939
|
+
value: 1
|
|
22882
22940
|
}, {
|
|
22883
22941
|
label: '否',
|
|
22884
|
-
value:
|
|
22942
|
+
value: 0
|
|
22885
22943
|
}]
|
|
22886
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val ===
|
|
22944
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val === 1 ? '是' : '否');
|
|
22887
22945
|
}
|
|
22888
22946
|
}, {
|
|
22889
22947
|
dataIndex: 'isFit',
|
|
@@ -22897,12 +22955,12 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22897
22955
|
},
|
|
22898
22956
|
options: [{
|
|
22899
22957
|
label: '是',
|
|
22900
|
-
value:
|
|
22958
|
+
value: 1
|
|
22901
22959
|
}, {
|
|
22902
22960
|
label: '否',
|
|
22903
|
-
value:
|
|
22961
|
+
value: 0
|
|
22904
22962
|
}]
|
|
22905
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val ===
|
|
22963
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val === 1 ? '是' : '否');
|
|
22906
22964
|
}
|
|
22907
22965
|
}, {
|
|
22908
22966
|
dataIndex: 'brandName',
|
|
@@ -23286,6 +23344,13 @@ var processGoods$1 = function processGoods(_ref) {
|
|
|
23286
23344
|
canUpdateNumber: canUpdateNumber,
|
|
23287
23345
|
source: source
|
|
23288
23346
|
});
|
|
23347
|
+
} else if (isErpType.isJky(type)) {
|
|
23348
|
+
newList = processJkyGoods$1({
|
|
23349
|
+
list: list,
|
|
23350
|
+
type: type,
|
|
23351
|
+
canUpdateNumber: canUpdateNumber,
|
|
23352
|
+
source: source
|
|
23353
|
+
});
|
|
23289
23354
|
} else {
|
|
23290
23355
|
newList = processDefaultGoods({
|
|
23291
23356
|
list: list,
|
|
@@ -23334,11 +23399,45 @@ var processJyGoods = function processJyGoods(_ref2) {
|
|
|
23334
23399
|
});
|
|
23335
23400
|
});
|
|
23336
23401
|
};
|
|
23337
|
-
|
|
23338
|
-
var processWdtGoods$1 = function processWdtGoods(_ref3) {
|
|
23402
|
+
var processJkyGoods$1 = function processJkyGoods(_ref3) {
|
|
23339
23403
|
var list = _ref3.list,
|
|
23340
|
-
type = _ref3.type,
|
|
23341
23404
|
canUpdateNumber = _ref3.canUpdateNumber;
|
|
23405
|
+
return list.map(function (item) {
|
|
23406
|
+
var goodName = item.goodName,
|
|
23407
|
+
goodNo = item.goodNo,
|
|
23408
|
+
goodId = item.goodId,
|
|
23409
|
+
specBarcode = item.specBarcode,
|
|
23410
|
+
retailPrice = item.retailPrice,
|
|
23411
|
+
isGift = item.isGift,
|
|
23412
|
+
skuType = item.skuType,
|
|
23413
|
+
specImgUrl = item.specImgUrl,
|
|
23414
|
+
categoryName = item.categoryName;
|
|
23415
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
23416
|
+
cateName: categoryName,
|
|
23417
|
+
goodsName: goodName,
|
|
23418
|
+
goodsNo: goodNo,
|
|
23419
|
+
goodsId: goodId,
|
|
23420
|
+
barcode: specBarcode,
|
|
23421
|
+
skuImgUrl: specImgUrl,
|
|
23422
|
+
combinationName: goodName,
|
|
23423
|
+
combinationCode: goodNo,
|
|
23424
|
+
isGift: isGift ? 1 : 0,
|
|
23425
|
+
isFit: skuType === 'combine' ? 1 : 0,
|
|
23426
|
+
uuid: kmkfUtils.uuid(),
|
|
23427
|
+
canDelete: true,
|
|
23428
|
+
sellCount: 1,
|
|
23429
|
+
sellPrice: retailPrice,
|
|
23430
|
+
sellTotal: retailPrice ? (retailPrice * 1).toFixed(2) : '',
|
|
23431
|
+
canEdit: true,
|
|
23432
|
+
canUpdateNumber: canUpdateNumber
|
|
23433
|
+
});
|
|
23434
|
+
});
|
|
23435
|
+
};
|
|
23436
|
+
// 处理不同类型的商品数据
|
|
23437
|
+
var processWdtGoods$1 = function processWdtGoods(_ref4) {
|
|
23438
|
+
var list = _ref4.list,
|
|
23439
|
+
type = _ref4.type,
|
|
23440
|
+
canUpdateNumber = _ref4.canUpdateNumber;
|
|
23342
23441
|
return list.map(function (item) {
|
|
23343
23442
|
var processedItem = _objectSpread2(_objectSpread2({}, item), {}, {
|
|
23344
23443
|
uuid: kmkfUtils.uuid(),
|
|
@@ -23356,9 +23455,9 @@ var processWdtGoods$1 = function processWdtGoods(_ref3) {
|
|
|
23356
23455
|
return processedItem;
|
|
23357
23456
|
});
|
|
23358
23457
|
};
|
|
23359
|
-
var processBsE3Goods$1 = function processBsE3Goods(
|
|
23360
|
-
var list =
|
|
23361
|
-
canUpdateNumber =
|
|
23458
|
+
var processBsE3Goods$1 = function processBsE3Goods(_ref5) {
|
|
23459
|
+
var list = _ref5.list,
|
|
23460
|
+
canUpdateNumber = _ref5.canUpdateNumber;
|
|
23362
23461
|
return list.map(function (item) {
|
|
23363
23462
|
var specNo = item.specNo,
|
|
23364
23463
|
specId = item.specId,
|
|
@@ -23393,9 +23492,9 @@ var processBsE3Goods$1 = function processBsE3Goods(_ref4) {
|
|
|
23393
23492
|
});
|
|
23394
23493
|
});
|
|
23395
23494
|
};
|
|
23396
|
-
var processGyGoods$1 = function processGyGoods(
|
|
23397
|
-
var list =
|
|
23398
|
-
source =
|
|
23495
|
+
var processGyGoods$1 = function processGyGoods(_ref6) {
|
|
23496
|
+
var list = _ref6.list,
|
|
23497
|
+
source = _ref6.source;
|
|
23399
23498
|
var isFormWorkOrder = source === 'workOrder';
|
|
23400
23499
|
return list.map(function (item) {
|
|
23401
23500
|
var goodName = item.goodName,
|
|
@@ -23422,8 +23521,8 @@ var processGyGoods$1 = function processGyGoods(_ref5) {
|
|
|
23422
23521
|
});
|
|
23423
23522
|
});
|
|
23424
23523
|
};
|
|
23425
|
-
var processJstGoods$1 = function processJstGoods(
|
|
23426
|
-
var list =
|
|
23524
|
+
var processJstGoods$1 = function processJstGoods(_ref7) {
|
|
23525
|
+
var list = _ref7.list;
|
|
23427
23526
|
return list.map(function (item) {
|
|
23428
23527
|
return {
|
|
23429
23528
|
name: item.goodName,
|
|
@@ -23441,9 +23540,9 @@ var processJstGoods$1 = function processJstGoods(_ref6) {
|
|
|
23441
23540
|
};
|
|
23442
23541
|
});
|
|
23443
23542
|
};
|
|
23444
|
-
var processKmGoods$1 = function processKmGoods(
|
|
23445
|
-
var list =
|
|
23446
|
-
type =
|
|
23543
|
+
var processKmGoods$1 = function processKmGoods(_ref8) {
|
|
23544
|
+
var list = _ref8.list,
|
|
23545
|
+
type = _ref8.type;
|
|
23447
23546
|
var initParamsMap = {
|
|
23448
23547
|
KM_GOODS: {
|
|
23449
23548
|
num: 1
|
|
@@ -23462,20 +23561,22 @@ var processKmGoods$1 = function processKmGoods(_ref7) {
|
|
|
23462
23561
|
sysOuterId: item.goodNo,
|
|
23463
23562
|
outerId: item.goodNo,
|
|
23464
23563
|
skuSysId: item.specId,
|
|
23564
|
+
sysSkuId: item.specId,
|
|
23465
23565
|
itemSysId: item.goodId,
|
|
23566
|
+
sysItemId: item.goodId,
|
|
23466
23567
|
sysPicPath: item.goodPicUrl,
|
|
23467
23568
|
payment: null,
|
|
23468
23569
|
price: item.retailPrice,
|
|
23469
|
-
type: null,
|
|
23570
|
+
type: (kmkfUtils.kmSkuTypeMap === null || kmkfUtils.kmSkuTypeMap === void 0 ? void 0 : kmkfUtils.kmSkuTypeMap[item === null || item === void 0 ? void 0 : item.skuType]) || '',
|
|
23470
23571
|
uuid: kmkfUtils.uuid(),
|
|
23471
23572
|
canDelete: true,
|
|
23472
23573
|
canEdit: true
|
|
23473
23574
|
}, initParamsMap[type] || {});
|
|
23474
23575
|
});
|
|
23475
23576
|
};
|
|
23476
|
-
var processDefaultGoods = function processDefaultGoods(
|
|
23477
|
-
var list =
|
|
23478
|
-
canUpdateNumber =
|
|
23577
|
+
var processDefaultGoods = function processDefaultGoods(_ref9) {
|
|
23578
|
+
var list = _ref9.list,
|
|
23579
|
+
canUpdateNumber = _ref9.canUpdateNumber;
|
|
23479
23580
|
return list.map(function (item) {
|
|
23480
23581
|
var goodsId = item.goodsId,
|
|
23481
23582
|
name = item.name,
|
|
@@ -23581,7 +23682,7 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
23581
23682
|
systemItemIds = dataSource === null || dataSource === void 0 ? void 0 : dataSource.filter(function (item) {
|
|
23582
23683
|
return item === null || item === void 0 ? void 0 : item.sysItemId;
|
|
23583
23684
|
}).map(function (item) {
|
|
23584
|
-
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);
|
|
23685
|
+
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);
|
|
23585
23686
|
});
|
|
23586
23687
|
_context.next = 3;
|
|
23587
23688
|
return kmkfUtils.servers.KM.getSupplierSingleton(systemItemIds);
|
|
@@ -23590,7 +23691,7 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
23590
23691
|
dataSource === null || dataSource === void 0 ? void 0 : (_dataSource$filter = dataSource.filter(function (item) {
|
|
23591
23692
|
return item === null || item === void 0 ? void 0 : item.sysItemId;
|
|
23592
23693
|
})) === null || _dataSource$filter === void 0 ? void 0 : _dataSource$filter.forEach(function (item) {
|
|
23593
|
-
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);
|
|
23694
|
+
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);
|
|
23594
23695
|
var supplierInfo = supplierMap.get(key);
|
|
23595
23696
|
item.supplierCode = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierCode;
|
|
23596
23697
|
item.supplierName = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierName;
|
|
@@ -23748,6 +23849,7 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
23748
23849
|
}
|
|
23749
23850
|
}), /*#__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, ")")));
|
|
23750
23851
|
};
|
|
23852
|
+
SelectTradeGoods.displayName = 'SelectTradeGoods';
|
|
23751
23853
|
var getButtonText = function getButtonText() {
|
|
23752
23854
|
var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
23753
23855
|
if (['KM_GOODS', 'KM_REISSUE_GOODS'].includes(type)) {
|
|
@@ -25137,21 +25239,25 @@ var getJkyOrderListSingleton = function getJkyOrderListSingleton(orderNo) {
|
|
|
25137
25239
|
extendRequest('/qy/gdfw/jky/erp/trade/fullInfo', {
|
|
25138
25240
|
method: 'post',
|
|
25139
25241
|
data: {
|
|
25140
|
-
|
|
25242
|
+
sourceTradeNos: orderNo
|
|
25141
25243
|
}
|
|
25142
25244
|
}).then(function (res) {
|
|
25143
25245
|
if (res === null || res === void 0 ? void 0 : res.success) {
|
|
25144
|
-
var _res$data, _res$
|
|
25145
|
-
if (res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 :
|
|
25146
|
-
var _filterJkyOrders
|
|
25147
|
-
res.data.trades = (_filterJkyOrders = kmkfUtils.filterJkyOrders(res === null || res === void 0 ? void 0 :
|
|
25246
|
+
var _res$data, _res$data2;
|
|
25247
|
+
if (res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.length) {
|
|
25248
|
+
var _filterJkyOrders;
|
|
25249
|
+
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) {
|
|
25148
25250
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
25251
|
+
tradeFrom: kmkfUtils.JKY_ORDER_FROM_MAP[item.tradeFrom],
|
|
25149
25252
|
tradeType: kmkfUtils.JKY_ORDER_TYPE_MAP[item.tradeType],
|
|
25150
|
-
tradeStatus: kmkfUtils.JKY_ORDER_STATUS_MAP[item.tradeStatus]
|
|
25253
|
+
tradeStatus: kmkfUtils.JKY_ORDER_STATUS_MAP[item.tradeStatus],
|
|
25254
|
+
logisticName: kmkfUtils.getJkyLogisticInfo(item, 'logisticName'),
|
|
25255
|
+
logisticCode: kmkfUtils.getJkyLogisticInfo(item, 'logisticCode'),
|
|
25256
|
+
logisticNo: kmkfUtils.getJkyLogisticInfo(item, 'logisticNo')
|
|
25151
25257
|
});
|
|
25152
25258
|
});
|
|
25153
25259
|
}
|
|
25154
|
-
resolve(((_res$
|
|
25260
|
+
resolve(((_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.trades) || []);
|
|
25155
25261
|
// 延迟10秒清除,保证订单的时效性
|
|
25156
25262
|
setTimeout(function () {
|
|
25157
25263
|
singletonMap$7.delete(orderNo);
|
|
@@ -25513,7 +25619,7 @@ var index$2 = (function (props) {
|
|
|
25513
25619
|
while (1) switch (_context8.prev = _context8.next) {
|
|
25514
25620
|
case 0:
|
|
25515
25621
|
jyUtils.getJyOrderListSingleton(orderNo).then(function (data) {
|
|
25516
|
-
var trades = (
|
|
25622
|
+
var trades = (data || []).filter(function (item) {
|
|
25517
25623
|
return kmkfUtils.getIsPlatformCodesIncludeOrderNos(item.platformCode, orderNo);
|
|
25518
25624
|
});
|
|
25519
25625
|
_onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, {
|
|
@@ -25544,12 +25650,9 @@ var index$2 = (function (props) {
|
|
|
25544
25650
|
while (1) switch (_context9.prev = _context9.next) {
|
|
25545
25651
|
case 0:
|
|
25546
25652
|
jkyUtils.getJkyOrderListSingleton(orderNo).then(function (data) {
|
|
25547
|
-
var trades = ((data === null || data === void 0 ? void 0 : data.trades) || []).filter(function (item) {
|
|
25548
|
-
return kmkfUtils.getIsPlatformCodesIncludeOrderNos(item.platformCode, orderNo);
|
|
25549
|
-
});
|
|
25550
25653
|
_onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, {
|
|
25551
|
-
orders:
|
|
25552
|
-
showOrderInfo:
|
|
25654
|
+
orders: data || [],
|
|
25655
|
+
showOrderInfo: data || []
|
|
25553
25656
|
}));
|
|
25554
25657
|
});
|
|
25555
25658
|
onceRef.current = false;
|
|
@@ -26526,7 +26629,7 @@ var processGyOrders = function processGyOrders(_ref4) {
|
|
|
26526
26629
|
var processJyOrders = function processJyOrders(_ref5) {
|
|
26527
26630
|
var data = _ref5.data,
|
|
26528
26631
|
orderNo = _ref5.orderNo;
|
|
26529
|
-
var trades = (
|
|
26632
|
+
var trades = (data || []).filter(function (item) {
|
|
26530
26633
|
return kmkfUtils.getIsPlatformCodesIncludeOrderNos(item.platformCode, orderNo);
|
|
26531
26634
|
});
|
|
26532
26635
|
return trades;
|
|
@@ -26852,7 +26955,7 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
26852
26955
|
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) {
|
|
26853
26956
|
return item === null || item === void 0 ? void 0 : item.sysItemId;
|
|
26854
26957
|
})) === null || _value$kmGoods$filter === void 0 ? void 0 : _value$kmGoods$filter.forEach(function (item) {
|
|
26855
|
-
var key = item.sysSkuId == '-1' ? item.sysItemId : "".concat(item.sysItemId, "-").concat(item.sysSkuId);
|
|
26958
|
+
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);
|
|
26856
26959
|
map[key] = item;
|
|
26857
26960
|
});
|
|
26858
26961
|
}
|
|
@@ -26893,7 +26996,8 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
26893
26996
|
hasChange = false;
|
|
26894
26997
|
currentValue = valueRef.current;
|
|
26895
26998
|
kmGoods = currentValue === null || currentValue === void 0 ? void 0 : (_currentValue$kmGoods = currentValue.kmGoods) === null || _currentValue$kmGoods === void 0 ? void 0 : _currentValue$kmGoods.map(function (item) {
|
|
26896
|
-
var
|
|
26999
|
+
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);
|
|
27000
|
+
var supplierInfo = supplierMap.get(key);
|
|
26897
27001
|
var newSupplierCode = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierCode;
|
|
26898
27002
|
var newSupplierName = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierName;
|
|
26899
27003
|
// 如果供应商信息有变化,标记需要更新
|
|
@@ -27177,7 +27281,6 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
27177
27281
|
orderNo: value === null || value === void 0 ? void 0 : value.orderNo,
|
|
27178
27282
|
type: compType
|
|
27179
27283
|
});
|
|
27180
|
-
console.log('getDataSourceAsync', list);
|
|
27181
27284
|
onChange(_objectSpread2(_objectSpread2({}, valueRef.current), {}, {
|
|
27182
27285
|
allOrders: list || []
|
|
27183
27286
|
}));
|
|
@@ -27213,6 +27316,7 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
27213
27316
|
}
|
|
27214
27317
|
}));
|
|
27215
27318
|
};
|
|
27319
|
+
CommonGoods.displayName = 'CommonGoods';
|
|
27216
27320
|
|
|
27217
27321
|
var componentMap$3 = {
|
|
27218
27322
|
WDT_RETURN_GOODS: {
|
|
@@ -27876,14 +27980,14 @@ var typeMap$2 = {
|
|
|
27876
27980
|
alwaysShowChooseErpGoodsBtn: true,
|
|
27877
27981
|
orderTypeKey: 'orderType',
|
|
27878
27982
|
oIdKey: 'tradeNo',
|
|
27879
|
-
outerOiIdKey: '',
|
|
27880
|
-
goodDetailsKey: '
|
|
27983
|
+
outerOiIdKey: 'sourceSubtradeNo',
|
|
27984
|
+
goodDetailsKey: 'goodsDetail',
|
|
27881
27985
|
isShowSelectTradeGoods: true,
|
|
27882
27986
|
showModeBtn: true
|
|
27883
27987
|
}
|
|
27884
27988
|
};
|
|
27885
27989
|
var PublicReissue = function PublicReissue(props) {
|
|
27886
|
-
var _typeMap$
|
|
27990
|
+
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;
|
|
27887
27991
|
var value = props.value,
|
|
27888
27992
|
onChange = props.onChange,
|
|
27889
27993
|
_props$reasonList = props.reasonList,
|
|
@@ -28006,7 +28110,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28006
28110
|
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) {
|
|
28007
28111
|
return item === null || item === void 0 ? void 0 : item.sysItemId;
|
|
28008
28112
|
})) === null || _value$kmReissueGoods2 === void 0 ? void 0 : _value$kmReissueGoods2.forEach(function (item) {
|
|
28009
|
-
var key = item.sysSkuId == '-1' ? item.sysItemId : "".concat(item.sysItemId, "-").concat(item.sysSkuId);
|
|
28113
|
+
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);
|
|
28010
28114
|
map[key] = item;
|
|
28011
28115
|
});
|
|
28012
28116
|
}
|
|
@@ -28047,7 +28151,8 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28047
28151
|
hasChange = false;
|
|
28048
28152
|
currentValue = valueRef.current;
|
|
28049
28153
|
kmReissueGoods = currentValue === null || currentValue === void 0 ? void 0 : (_currentValue$kmReiss = currentValue.kmReissueGoods) === null || _currentValue$kmReiss === void 0 ? void 0 : _currentValue$kmReiss.map(function (item) {
|
|
28050
|
-
var
|
|
28154
|
+
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);
|
|
28155
|
+
var supplierInfo = supplierMap.get(key);
|
|
28051
28156
|
var newSupplierCode = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierCode;
|
|
28052
28157
|
var newSupplierName = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierName;
|
|
28053
28158
|
// 如果供应商信息有变化,标记需要更新
|
|
@@ -28083,7 +28188,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28083
28188
|
}
|
|
28084
28189
|
}, [sysItemIdMap]);
|
|
28085
28190
|
var getGoodDetails = function getGoodDetails(_ref5) {
|
|
28086
|
-
var _typeMap$type18, _typeMap$type19, _value$typeMap$type$s6, _typeMap$type20, _typeMap$type21, _typeMap$type22, _typeMap$type23
|
|
28191
|
+
var _typeMap$type18, _typeMap$type19, _value$typeMap$type$s6, _typeMap$type20, _typeMap$type21, _typeMap$type22, _typeMap$type23;
|
|
28087
28192
|
var mode = _ref5.mode,
|
|
28088
28193
|
sysOrderNo = _ref5.sysOrderNo,
|
|
28089
28194
|
_ref5$isAllOrders = _ref5.isAllOrders,
|
|
@@ -28115,8 +28220,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28115
28220
|
var _order$typeMap$type$g;
|
|
28116
28221
|
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;
|
|
28117
28222
|
});
|
|
28118
|
-
|
|
28119
|
-
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) : [];
|
|
28223
|
+
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) : [];
|
|
28120
28224
|
var orderNo = systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orderNo;
|
|
28121
28225
|
var list = mode && !isAllOrders ? goodDetails.filter(function (goodItem) {
|
|
28122
28226
|
return !orderNo || goodItem[typeMap$2[type].outerOiIdKey] === orderNo;
|
|
@@ -28124,30 +28228,30 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28124
28228
|
return list;
|
|
28125
28229
|
};
|
|
28126
28230
|
var changeGoodHandle = function changeGoodHandle(val) {
|
|
28127
|
-
var _typeMap$
|
|
28231
|
+
var _typeMap$type24;
|
|
28128
28232
|
var newValue = _objectSpread2({}, value);
|
|
28129
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28233
|
+
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 || [];
|
|
28130
28234
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
28131
28235
|
};
|
|
28132
28236
|
var changeSystemOrderHandle = function changeSystemOrderHandle(val) {
|
|
28133
|
-
var _typeMap$
|
|
28237
|
+
var _typeMap$type25, _typeMap$type26, _value$typeMap$type$t2, _typeMap$type31, _value$typeMap$type$t3, _typeMap$type33;
|
|
28134
28238
|
var newValue = _objectSpread2({}, value);
|
|
28135
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28136
|
-
if (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28137
|
-
var _value$typeMap$type$s7, _typeMap$
|
|
28138
|
-
var orders = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s7 = value[(_typeMap$
|
|
28239
|
+
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;
|
|
28240
|
+
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) {
|
|
28241
|
+
var _value$typeMap$type$s7, _typeMap$type27, _typeMap$type29, _typeMap$type30;
|
|
28242
|
+
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) || [];
|
|
28139
28243
|
var targetOrder = val && orders.find(function (oItem) {
|
|
28140
|
-
var _typeMap$
|
|
28141
|
-
return oItem[(_typeMap$
|
|
28244
|
+
var _typeMap$type28;
|
|
28245
|
+
return oItem[(_typeMap$type28 = typeMap$2[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.oIdKey] === val;
|
|
28142
28246
|
});
|
|
28143
|
-
newValue[(_typeMap$
|
|
28144
|
-
}
|
|
28145
|
-
if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$
|
|
28146
|
-
var _typeMap$
|
|
28147
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28148
|
-
} else if (['1'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$
|
|
28149
|
-
var _typeMap$
|
|
28150
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28247
|
+
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];
|
|
28248
|
+
}
|
|
28249
|
+
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])) {
|
|
28250
|
+
var _typeMap$type32;
|
|
28251
|
+
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)] = [];
|
|
28252
|
+
} 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])) {
|
|
28253
|
+
var _typeMap$type34;
|
|
28254
|
+
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({
|
|
28151
28255
|
mode: isStrict,
|
|
28152
28256
|
sysOrderNo: val
|
|
28153
28257
|
});
|
|
@@ -28155,27 +28259,27 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28155
28259
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue, 'systemOrder');
|
|
28156
28260
|
};
|
|
28157
28261
|
//显示选择商品按钮
|
|
28158
|
-
var showChangeBtn = !!(value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
28262
|
+
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]);
|
|
28159
28263
|
var selectedGoodsChange = React.useCallback(function (skuList) {
|
|
28160
|
-
var _typeMap$
|
|
28264
|
+
var _typeMap$type36, _typeMap$type37, _typeMap$type38, _uniqBy, _typeMap$type39;
|
|
28161
28265
|
var newValue = _objectSpread2({}, value);
|
|
28162
28266
|
// 原订单商品
|
|
28163
28267
|
var originTradeGoodList = getGoodDetails({
|
|
28164
28268
|
mode: isStrict,
|
|
28165
|
-
isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28269
|
+
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
|
|
28166
28270
|
}) || [];
|
|
28167
28271
|
// 当前选中的所有商品【包含了原订单+商品库】
|
|
28168
|
-
var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28169
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28170
|
-
var _typeMap$
|
|
28171
|
-
return skuList.includes(item[(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28272
|
+
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)]) || [];
|
|
28273
|
+
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) {
|
|
28274
|
+
var _typeMap$type40;
|
|
28275
|
+
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']);
|
|
28172
28276
|
});
|
|
28173
28277
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
28174
|
-
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28278
|
+
}, [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]);
|
|
28175
28279
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Row, {
|
|
28176
28280
|
gutter: 8,
|
|
28177
28281
|
wrap: true,
|
|
28178
|
-
id: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28282
|
+
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())
|
|
28179
28283
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
28180
28284
|
className: "gutter-row",
|
|
28181
28285
|
xs: {
|
|
@@ -28191,12 +28295,12 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28191
28295
|
},
|
|
28192
28296
|
disabled: disabled,
|
|
28193
28297
|
allowClear: false,
|
|
28194
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28298
|
+
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)],
|
|
28195
28299
|
onChange: function onChange(val) {
|
|
28196
28300
|
return changeSystemOrderHandle(val);
|
|
28197
28301
|
},
|
|
28198
|
-
placeholder: "\u9009\u62E9".concat((typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28199
|
-
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s8 = value[(_typeMap$
|
|
28302
|
+
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")
|
|
28303
|
+
}, ((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) {
|
|
28200
28304
|
return /*#__PURE__*/React__default['default'].createElement(antd.Select.Option, {
|
|
28201
28305
|
key: item[typeMap$2[type].oIdKey],
|
|
28202
28306
|
value: item[typeMap$2[type].oIdKey],
|
|
@@ -28218,11 +28322,11 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28218
28322
|
disabled: isSettingConfig ? !isSettingConfig : disabled,
|
|
28219
28323
|
allowClear: false,
|
|
28220
28324
|
options: reasonList,
|
|
28221
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28325
|
+
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)],
|
|
28222
28326
|
onChange: function onChange(val) {
|
|
28223
28327
|
return changeTypeHandle(val);
|
|
28224
28328
|
}
|
|
28225
|
-
})), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28329
|
+
})), (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, {
|
|
28226
28330
|
className: "gutter-row",
|
|
28227
28331
|
xs: {
|
|
28228
28332
|
span: 11
|
|
@@ -28231,7 +28335,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28231
28335
|
span: 6
|
|
28232
28336
|
}
|
|
28233
28337
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
28234
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28338
|
+
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)],
|
|
28235
28339
|
disabled: disabled,
|
|
28236
28340
|
readOnly: true
|
|
28237
28341
|
}))), /*#__PURE__*/React__default['default'].createElement(GoodItem$1, _objectSpread2(_objectSpread2({
|
|
@@ -28242,29 +28346,30 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28242
28346
|
canUpdateNumber: showChangeBtn,
|
|
28243
28347
|
hasSelectedSystemOrder: showChangeBtn,
|
|
28244
28348
|
// showChangeBtn={showChangeBtn || typeMap?.[type]?.isShowSelectTradeGoods}
|
|
28245
|
-
alwaysShowChooseErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28349
|
+
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,
|
|
28246
28350
|
// showErpGoodsBtn={typeMap?.[type]?.showErpGoodsBtn}
|
|
28247
28351
|
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
28248
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28352
|
+
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)],
|
|
28249
28353
|
onChange: function onChange(val) {
|
|
28250
28354
|
return changeGoodHandle(val);
|
|
28251
28355
|
},
|
|
28252
28356
|
onModeChange: handleModeChange,
|
|
28253
|
-
showModeBtn: !!(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28357
|
+
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),
|
|
28254
28358
|
isStrict: isStrict,
|
|
28255
|
-
isShowSelectTradeGoods: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28256
|
-
systemOrders: value === null || value === void 0 ? void 0 : (_value$typeMap$type$s9 = value[(_typeMap$
|
|
28257
|
-
selectedSystemOrders: showChangeBtn ? [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28359
|
+
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,
|
|
28360
|
+
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,
|
|
28361
|
+
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)]] : [],
|
|
28258
28362
|
tradeGoods: {
|
|
28259
28363
|
originDataSource: getGoodDetails({
|
|
28260
28364
|
mode: isStrict,
|
|
28261
|
-
isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28365
|
+
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
|
|
28262
28366
|
}),
|
|
28263
|
-
uniqueKey: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28367
|
+
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',
|
|
28264
28368
|
selectedGoodsChange: selectedGoodsChange
|
|
28265
28369
|
}
|
|
28266
28370
|
})));
|
|
28267
28371
|
};
|
|
28372
|
+
PublicReissue.displayName = 'PublicReissue';
|
|
28268
28373
|
|
|
28269
28374
|
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";
|
|
28270
28375
|
styleInject(css_248z$g);
|