@kmkf-fe-packages/basic-components 2.2.44-beta.4 → 2.2.44-beta.40
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 +401 -272
- package/dist/index.js +400 -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
|
@@ -7774,7 +7774,9 @@ var Province = function Province(props) {
|
|
|
7774
7774
|
gy: kmkfUtils.GyAddressData.getInstance(),
|
|
7775
7775
|
km: kmkfUtils.AddressData.getInstance(),
|
|
7776
7776
|
jst: kmkfUtils.JstAddressData.getInstance()
|
|
7777
|
+
// jky: JkyAddressData.getInstance(),
|
|
7777
7778
|
};
|
|
7779
|
+
|
|
7778
7780
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Cascader, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
7779
7781
|
options: ((_mapping$type = mapping[type]) === null || _mapping$type === void 0 ? void 0 : _mapping$type.addressOptions) || [],
|
|
7780
7782
|
style: {
|
|
@@ -8010,13 +8012,14 @@ function ApaasPosting(props) {
|
|
|
8010
8012
|
});
|
|
8011
8013
|
}
|
|
8012
8014
|
|
|
8013
|
-
var _excluded$b = ["value", "onChange", "platformType", "type"];
|
|
8015
|
+
var _excluded$b = ["value", "onChange", "platformType", "type", "placement"];
|
|
8014
8016
|
function ApaasLogistics(props) {
|
|
8015
8017
|
var value = props.value,
|
|
8016
8018
|
onChange = props.onChange,
|
|
8017
8019
|
platformType = props.platformType,
|
|
8018
8020
|
_props$type = props.type,
|
|
8019
8021
|
type = _props$type === void 0 ? 'select' : _props$type,
|
|
8022
|
+
placement = props.placement,
|
|
8020
8023
|
other = _objectWithoutProperties(props, _excluded$b);
|
|
8021
8024
|
var _useState = React.useState([]),
|
|
8022
8025
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -8054,12 +8057,13 @@ function ApaasLogistics(props) {
|
|
|
8054
8057
|
return type === 'input' ? /*#__PURE__*/React__default['default'].createElement(antd.Input, _objectSpread2(_objectSpread2({}, other), {}, {
|
|
8055
8058
|
value: value,
|
|
8056
8059
|
onChange: handleInputChange
|
|
8057
|
-
})) : /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(
|
|
8060
|
+
})) : /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2({
|
|
8058
8061
|
value: value,
|
|
8059
8062
|
onChange: onChange,
|
|
8060
8063
|
options: option,
|
|
8061
|
-
virtual: true
|
|
8062
|
-
|
|
8064
|
+
virtual: true,
|
|
8065
|
+
placement: placement
|
|
8066
|
+
}, other));
|
|
8063
8067
|
}
|
|
8064
8068
|
|
|
8065
8069
|
var _excluded$c = ["label", "name", "extra", "required", "rules", "initialValue"];
|
|
@@ -8143,6 +8147,11 @@ var systemOrderMap = {
|
|
|
8143
8147
|
ids: 'wdtSystemSelectIds',
|
|
8144
8148
|
order: 'wdtSystemShowOrder'
|
|
8145
8149
|
},
|
|
8150
|
+
JKY_SYSTEM_ORDER: {
|
|
8151
|
+
no: 'jkySystemOrderNo',
|
|
8152
|
+
ids: 'jkySystemSelectIds',
|
|
8153
|
+
order: 'jkySystemShowOrder'
|
|
8154
|
+
},
|
|
8146
8155
|
BS_E3_SYSTEM_ORDER: {
|
|
8147
8156
|
no: 'bsE3SystemOrderNo',
|
|
8148
8157
|
ids: 'bsE3SystemSelectIds',
|
|
@@ -8620,7 +8629,8 @@ var processSceneStatus = function processSceneStatus(getValue) {
|
|
|
8620
8629
|
WAREHOUSING_STATUS: 'inStockStatusItemList',
|
|
8621
8630
|
BS_E3_WAREHOUSING_STATUS: 'bsE3InStockStatusItemList',
|
|
8622
8631
|
MSG_STATUS: 'msgStatusValues',
|
|
8623
|
-
WDT_WAREHOUSING_STATUS: 'wdtInStockStatusItemList'
|
|
8632
|
+
WDT_WAREHOUSING_STATUS: 'wdtInStockStatusItemList',
|
|
8633
|
+
JKY_WAREHOUSING_STATUS: 'jkyInStockStatusItemList'
|
|
8624
8634
|
};
|
|
8625
8635
|
return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(STATUS_LIST_MAP[nex.workOrderComponentType])), []));
|
|
8626
8636
|
};
|
|
@@ -8714,6 +8724,33 @@ var processBsGoods = function processBsGoods(getValue) {
|
|
|
8714
8724
|
return _defineProperty({}, nex.uniqueKey, _values);
|
|
8715
8725
|
};
|
|
8716
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
|
+
};
|
|
8717
8754
|
var processWdtGoods = function processWdtGoods(templateColumns) {
|
|
8718
8755
|
return function (getValue) {
|
|
8719
8756
|
return function (nex, config) {
|
|
@@ -9005,6 +9042,11 @@ var processErpSystemOrder = function processErpSystemOrder(getValue) {
|
|
|
9005
9042
|
ids: 'wdtSystemSelectIds',
|
|
9006
9043
|
order: 'wdtSystemShowOrder'
|
|
9007
9044
|
},
|
|
9045
|
+
JKY_SYSTEM_ORDER: {
|
|
9046
|
+
no: 'jkySystemOrderNo',
|
|
9047
|
+
ids: 'jkySystemSelectIds',
|
|
9048
|
+
order: 'jkySystemShowOrder'
|
|
9049
|
+
},
|
|
9008
9050
|
BS_E3_SYSTEM_ORDER: {
|
|
9009
9051
|
no: 'bsE3SystemOrderNo',
|
|
9010
9052
|
ids: 'bsE3SystemSelectIds',
|
|
@@ -9264,14 +9306,14 @@ var processJstReturnGoods = function processJstReturnGoods(templateColumns) {
|
|
|
9264
9306
|
};
|
|
9265
9307
|
var processLabel = function processLabel(getValue) {
|
|
9266
9308
|
return function (nex, config) {
|
|
9267
|
-
var
|
|
9268
|
-
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;
|
|
9269
9311
|
};
|
|
9270
9312
|
};
|
|
9271
9313
|
var processMemberLevel = function processMemberLevel(getValue) {
|
|
9272
9314
|
return function (nex, config) {
|
|
9273
|
-
var
|
|
9274
|
-
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;
|
|
9275
9317
|
};
|
|
9276
9318
|
};
|
|
9277
9319
|
var processAfterSalesOrderId = function processAfterSalesOrderId(getValue) {
|
|
@@ -9375,6 +9417,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
|
|
|
9375
9417
|
BS_E3_WAREHOUSING_STATUS: processSceneStatus,
|
|
9376
9418
|
MSG_STATUS: processSceneStatus,
|
|
9377
9419
|
WDT_WAREHOUSING_STATUS: processSceneStatus,
|
|
9420
|
+
JKY_WAREHOUSING_STATUS: processSceneStatus,
|
|
9378
9421
|
BS_LOGISTICS: processErpLogistics,
|
|
9379
9422
|
WLN_LOGISTICS: processErpLogistics,
|
|
9380
9423
|
WDT_LOGISTICS: processErpLogistics,
|
|
@@ -9390,6 +9433,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
|
|
|
9390
9433
|
BS_POSTING: processBsPosting,
|
|
9391
9434
|
BS_GOODS: processBsGoods,
|
|
9392
9435
|
WDT_GOODS: processWdtGoods(templateColumns),
|
|
9436
|
+
JKY_GOODS: processJkyGoods(templateColumns),
|
|
9393
9437
|
WDT_AFTERSALE_GOODS: processWdtAftersaleGoods(templateColumns),
|
|
9394
9438
|
JST_AFTERSALE_GOODS: processJstAftersaleGoods(templateColumns),
|
|
9395
9439
|
BS_E3_GOODS: processBsE3Goods(templateColumns),
|
|
@@ -9408,6 +9452,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
|
|
|
9408
9452
|
KM_SYSTEM_ORDER: processErpSystemOrder,
|
|
9409
9453
|
WLN_SYSTEM_ORDER: processErpSystemOrder,
|
|
9410
9454
|
WDT_SYSTEM_ORDER: processErpSystemOrder,
|
|
9455
|
+
JKY_SYSTEM_ORDER: processErpSystemOrder,
|
|
9411
9456
|
WDT_RETURN_BILL_NO: processErpSystemOrder,
|
|
9412
9457
|
BS_E3_SYSTEM_ORDER: processErpSystemOrder,
|
|
9413
9458
|
JST_SYSTEM_ORDER: processErpSystemOrder,
|
|
@@ -10004,12 +10049,21 @@ var EditSplitRenderMap = {
|
|
|
10004
10049
|
updateHandle = _ref17.updateHandle,
|
|
10005
10050
|
disabled = _ref17.disabled;
|
|
10006
10051
|
return /*#__PURE__*/React__default['default'].createElement(ApaasLogistics, {
|
|
10052
|
+
getPopupContainer: function getPopupContainer() {
|
|
10053
|
+
return document.getElementById('subform');
|
|
10054
|
+
},
|
|
10007
10055
|
value: val,
|
|
10008
10056
|
allowClear: true,
|
|
10057
|
+
showSearch: true,
|
|
10009
10058
|
onChange: function onChange(e) {
|
|
10010
10059
|
return updateHandle(e, index, t.key);
|
|
10011
10060
|
},
|
|
10012
|
-
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
|
|
10013
10067
|
});
|
|
10014
10068
|
},
|
|
10015
10069
|
//退货物流-物流公司
|
|
@@ -10020,12 +10074,21 @@ var EditSplitRenderMap = {
|
|
|
10020
10074
|
updateHandle = _ref18.updateHandle,
|
|
10021
10075
|
disabled = _ref18.disabled;
|
|
10022
10076
|
return /*#__PURE__*/React__default['default'].createElement(ApaasLogistics, {
|
|
10077
|
+
getPopupContainer: function getPopupContainer() {
|
|
10078
|
+
return document.getElementById('subform');
|
|
10079
|
+
},
|
|
10023
10080
|
value: val,
|
|
10024
10081
|
allowClear: true,
|
|
10082
|
+
showSearch: true,
|
|
10025
10083
|
onChange: function onChange(e) {
|
|
10026
10084
|
return updateHandle(e, index, t.key);
|
|
10027
10085
|
},
|
|
10028
|
-
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
|
|
10029
10092
|
});
|
|
10030
10093
|
}
|
|
10031
10094
|
};
|
|
@@ -10494,7 +10557,11 @@ var SubForm = function SubForm(props) {
|
|
|
10494
10557
|
});
|
|
10495
10558
|
}, [inputValue]);
|
|
10496
10559
|
var handleOpenChange = function handleOpenChange(newOpen) {
|
|
10497
|
-
|
|
10560
|
+
if (!['jbCFrJV4m7_trajectoryCompany', '0qFEv9GEyd_returnLogisticsCompany'].includes(selectKey)) {
|
|
10561
|
+
setOpen(newOpen);
|
|
10562
|
+
} else {
|
|
10563
|
+
setOpen(false);
|
|
10564
|
+
}
|
|
10498
10565
|
};
|
|
10499
10566
|
var onChangeInput = React.useCallback(lodash.debounce(function (val) {
|
|
10500
10567
|
setInputValue(val);
|
|
@@ -10582,6 +10649,9 @@ var SubForm = function SubForm(props) {
|
|
|
10582
10649
|
visible: open,
|
|
10583
10650
|
onVisibleChange: handleOpenChange
|
|
10584
10651
|
}, ['0qFEv9GEyd_returnLogisticsCompany', 'jbCFrJV4m7_trajectoryCompany'].includes(selectKey) ? /*#__PURE__*/React__default['default'].createElement(ApaasLogistics, {
|
|
10652
|
+
getPopupContainer: function getPopupContainer() {
|
|
10653
|
+
return document.getElementById('subform');
|
|
10654
|
+
},
|
|
10585
10655
|
value: undefined,
|
|
10586
10656
|
onChange: function onChange(val) {
|
|
10587
10657
|
onChangeInput(val);
|
|
@@ -10594,7 +10664,9 @@ var SubForm = function SubForm(props) {
|
|
|
10594
10664
|
},
|
|
10595
10665
|
filterOption: function filterOption(input, option) {
|
|
10596
10666
|
return option.label.includes(input);
|
|
10597
|
-
}
|
|
10667
|
+
},
|
|
10668
|
+
placement: "topLeft",
|
|
10669
|
+
listHeight: 120
|
|
10598
10670
|
}) : /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
10599
10671
|
placeholder: "\u8F93\u5165\u5173\u952E\u8BCD\u67E5\u8BE2",
|
|
10600
10672
|
allowClear: true,
|
|
@@ -12113,7 +12185,7 @@ var ChooseBaby = function ChooseBaby(props) {
|
|
|
12113
12185
|
}));
|
|
12114
12186
|
};
|
|
12115
12187
|
|
|
12116
|
-
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";
|
|
12117
12189
|
styleInject(css_248z$7);
|
|
12118
12190
|
|
|
12119
12191
|
var GoodItem = function GoodItem(props) {
|
|
@@ -12442,13 +12514,22 @@ var GoodItem = function GoodItem(props) {
|
|
|
12442
12514
|
var hasAttr = React.useMemo(function () {
|
|
12443
12515
|
return hasPic ? headerList.length > 1 : headerList.length > 0;
|
|
12444
12516
|
}, [hasPic, headerList]);
|
|
12517
|
+
var clearAll = function clearAll() {
|
|
12518
|
+
onChange === null || onChange === void 0 ? void 0 : onChange({
|
|
12519
|
+
shopId: shopId,
|
|
12520
|
+
imgList: []
|
|
12521
|
+
});
|
|
12522
|
+
};
|
|
12445
12523
|
return /*#__PURE__*/React__default['default'].createElement("div", null, imgList.length === 0 ? /*#__PURE__*/React__default['default'].createElement("p", {
|
|
12446
12524
|
className: "goods-title"
|
|
12447
12525
|
}, "\u6700\u591A\u6DFB\u52A0", maxLength, "\u4E2A\u5B9D\u8D1D") : /*#__PURE__*/React__default['default'].createElement("p", {
|
|
12448
12526
|
className: "goods-uploaded-state"
|
|
12449
12527
|
}, "\u5DF2\u6DFB\u52A0", /*#__PURE__*/React__default['default'].createElement("span", {
|
|
12450
12528
|
className: "goods-uploaded-count"
|
|
12451
|
-
}, 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", {
|
|
12452
12533
|
ref: boxRef,
|
|
12453
12534
|
id: "goods-wrap",
|
|
12454
12535
|
className: "goodsBox goodsBox-item-horizontal--box".concat(isSingleRow ? ' single-row' : '')
|
|
@@ -15102,12 +15183,7 @@ var kmColumns = [{
|
|
|
15102
15183
|
ellipsis: true,
|
|
15103
15184
|
width: 150,
|
|
15104
15185
|
render: function render(type) {
|
|
15105
|
-
return renderTextEllipsis(
|
|
15106
|
-
0: '普通',
|
|
15107
|
-
1: 'sku套件',
|
|
15108
|
-
2: '纯套件',
|
|
15109
|
-
3: '包材商品'
|
|
15110
|
-
}[type] || type);
|
|
15186
|
+
return renderTextEllipsis((kmkfUtils.kmSkuTypeMap === null || kmkfUtils.kmSkuTypeMap === void 0 ? void 0 : kmkfUtils.kmSkuTypeMap[type]) || type);
|
|
15111
15187
|
}
|
|
15112
15188
|
}, {
|
|
15113
15189
|
dataIndex: 'specName',
|
|
@@ -15340,34 +15416,75 @@ var jyColumns = [{
|
|
|
15340
15416
|
}
|
|
15341
15417
|
}];
|
|
15342
15418
|
|
|
15419
|
+
var getYesOrNo$2 = function getYesOrNo(val) {
|
|
15420
|
+
if (!lodash.isBoolean(val)) return null;
|
|
15421
|
+
return val ? '是' : '否';
|
|
15422
|
+
};
|
|
15343
15423
|
var jkyColumns = [{
|
|
15344
|
-
dataIndex: '
|
|
15345
|
-
title: "\u8D27\u54C1\
|
|
15424
|
+
dataIndex: 'goodName',
|
|
15425
|
+
title: "\u8D27\u54C1\u540D\u79F0",
|
|
15346
15426
|
align: 'center',
|
|
15347
15427
|
ellipsis: true,
|
|
15348
15428
|
width: 150,
|
|
15349
15429
|
render: renderTextEllipsis
|
|
15350
15430
|
}, {
|
|
15351
|
-
dataIndex: '
|
|
15352
|
-
title: "\u8D27\u54C1\
|
|
15431
|
+
dataIndex: 'goodNo',
|
|
15432
|
+
title: "\u8D27\u54C1\u7F16\u53F7",
|
|
15353
15433
|
align: 'center',
|
|
15354
15434
|
ellipsis: true,
|
|
15355
15435
|
width: 150,
|
|
15356
15436
|
render: renderTextEllipsis
|
|
15357
15437
|
}, {
|
|
15358
|
-
dataIndex: '
|
|
15438
|
+
dataIndex: 'goodId',
|
|
15359
15439
|
title: "\u8D27\u54C1ID",
|
|
15360
15440
|
align: 'center',
|
|
15361
15441
|
ellipsis: true,
|
|
15362
15442
|
width: 150,
|
|
15363
15443
|
render: renderTextEllipsis
|
|
15364
15444
|
}, {
|
|
15365
|
-
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',
|
|
15366
15469
|
title: "\u8D27\u54C1\u6761\u7801",
|
|
15367
15470
|
align: 'center',
|
|
15368
15471
|
ellipsis: true,
|
|
15369
15472
|
width: 150,
|
|
15370
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
|
|
15371
15488
|
}, {
|
|
15372
15489
|
dataIndex: 'specName',
|
|
15373
15490
|
title: "\u89C4\u683C\u540D\u79F0",
|
|
@@ -15383,7 +15500,14 @@ var jkyColumns = [{
|
|
|
15383
15500
|
width: 150,
|
|
15384
15501
|
render: renderTextEllipsis
|
|
15385
15502
|
}, {
|
|
15386
|
-
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',
|
|
15387
15511
|
title: "\u89C4\u683C\u56FE\u7247",
|
|
15388
15512
|
align: 'center',
|
|
15389
15513
|
ellipsis: true,
|
|
@@ -15399,162 +15523,78 @@ var jkyColumns = [{
|
|
|
15399
15523
|
});
|
|
15400
15524
|
}
|
|
15401
15525
|
}, {
|
|
15402
|
-
dataIndex: '
|
|
15403
|
-
title: "\
|
|
15404
|
-
width: 100,
|
|
15405
|
-
render: function render(val) {
|
|
15406
|
-
return /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
15407
|
-
}
|
|
15408
|
-
}, {
|
|
15409
|
-
dataIndex: 'actualSendCount',
|
|
15410
|
-
title: "\u5B9E\u53D1\u6570\u91CF",
|
|
15411
|
-
width: 150,
|
|
15412
|
-
render: renderTextEllipsis
|
|
15413
|
-
}, {
|
|
15414
|
-
dataIndex: 'sellPrice',
|
|
15415
|
-
title: "\u5355\u4EF7",
|
|
15416
|
-
width: 150,
|
|
15417
|
-
render: function render(val) {
|
|
15418
|
-
return val || val === 0 ? Number(val).toFixed(2) : '';
|
|
15419
|
-
}
|
|
15420
|
-
}, {
|
|
15421
|
-
dataIndex: 'sellTotal',
|
|
15422
|
-
title: "\u91D1\u989D",
|
|
15423
|
-
width: 150
|
|
15424
|
-
}, {
|
|
15425
|
-
dataIndex: 'discountTotal',
|
|
15426
|
-
title: "\u62B5\u6263\u91D1\u989D",
|
|
15427
|
-
width: 150
|
|
15428
|
-
}, {
|
|
15429
|
-
dataIndex: 'shareFavourableFee',
|
|
15430
|
-
title: "\u5206\u644A\u91D1\u989D",
|
|
15431
|
-
width: 150
|
|
15432
|
-
}, {
|
|
15433
|
-
dataIndex: 'shareFavourableAfterFee',
|
|
15434
|
-
title: "\u5206\u644A\u540E\u91D1\u989D",
|
|
15435
|
-
width: 150
|
|
15436
|
-
}, {
|
|
15437
|
-
dataIndex: 'customerPrice',
|
|
15438
|
-
title: "\u7EC8\u7AEF\u9500\u552E\u5355\u4EF7",
|
|
15439
|
-
width: 150
|
|
15440
|
-
}, {
|
|
15441
|
-
dataIndex: 'customerTotal',
|
|
15442
|
-
title: "\u7EC8\u7AEF\u9500\u552E\u91D1\u989D",
|
|
15443
|
-
width: 150
|
|
15444
|
-
}, {
|
|
15445
|
-
dataIndex: 'divideSellTotal',
|
|
15446
|
-
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
15447
|
-
width: 150
|
|
15448
|
-
}, {
|
|
15449
|
-
dataIndex: 'isGift',
|
|
15450
|
-
title: "\u662F\u5426\u8D60\u54C1",
|
|
15451
|
-
width: 150,
|
|
15452
|
-
render: function render(val) {
|
|
15453
|
-
return /*#__PURE__*/React__default['default'].createElement("span", null, val === '1' ? '是' : '否');
|
|
15454
|
-
}
|
|
15455
|
-
}, {
|
|
15456
|
-
dataIndex: 'isFit',
|
|
15457
|
-
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
15458
|
-
width: 150,
|
|
15459
|
-
render: function render(val) {
|
|
15460
|
-
return /*#__PURE__*/React__default['default'].createElement("span", null, val === '1' ? '是' : '否');
|
|
15461
|
-
}
|
|
15462
|
-
}, {
|
|
15463
|
-
dataIndex: 'isPresell',
|
|
15464
|
-
title: "\u662F\u5426\u9884\u552E\u8D27\u54C1",
|
|
15465
|
-
width: 150,
|
|
15466
|
-
render: function render(val) {
|
|
15467
|
-
return /*#__PURE__*/React__default['default'].createElement("span", null, val === '1' ? '是' : '否');
|
|
15468
|
-
}
|
|
15469
|
-
}, {
|
|
15470
|
-
dataIndex: 'brandName',
|
|
15471
|
-
title: "\u54C1\u724C",
|
|
15526
|
+
dataIndex: 'colorName',
|
|
15527
|
+
title: "\u989C\u8272\u540D\u79F0",
|
|
15472
15528
|
align: 'center',
|
|
15473
15529
|
ellipsis: true,
|
|
15474
|
-
width:
|
|
15530
|
+
width: 150,
|
|
15475
15531
|
render: renderTextEllipsis
|
|
15476
15532
|
}, {
|
|
15477
|
-
dataIndex: '
|
|
15478
|
-
title: "\
|
|
15533
|
+
dataIndex: 'colorCode',
|
|
15534
|
+
title: "\u989C\u8272\u4EE3\u7801",
|
|
15479
15535
|
align: 'center',
|
|
15480
15536
|
ellipsis: true,
|
|
15481
15537
|
width: 150,
|
|
15482
15538
|
render: renderTextEllipsis
|
|
15483
15539
|
}, {
|
|
15484
|
-
dataIndex: '
|
|
15485
|
-
title: "\
|
|
15540
|
+
dataIndex: 'sizeName',
|
|
15541
|
+
title: "\u5C3A\u7801\u540D\u79F0",
|
|
15486
15542
|
align: 'center',
|
|
15487
15543
|
ellipsis: true,
|
|
15488
|
-
width:
|
|
15544
|
+
width: 150,
|
|
15489
15545
|
render: renderTextEllipsis
|
|
15490
15546
|
}, {
|
|
15491
|
-
dataIndex: '
|
|
15492
|
-
title: "\
|
|
15547
|
+
dataIndex: 'sizeCode',
|
|
15548
|
+
title: "\u5C3A\u7801\u4EE3\u7801",
|
|
15493
15549
|
align: 'center',
|
|
15494
15550
|
ellipsis: true,
|
|
15495
|
-
width:
|
|
15551
|
+
width: 150,
|
|
15496
15552
|
render: renderTextEllipsis
|
|
15497
15553
|
}, {
|
|
15498
|
-
dataIndex: '
|
|
15499
|
-
title: "\
|
|
15554
|
+
dataIndex: 'marketPrice',
|
|
15555
|
+
title: "\u5E02\u573A\u4EF7",
|
|
15500
15556
|
align: 'center',
|
|
15501
15557
|
ellipsis: true,
|
|
15502
|
-
width:
|
|
15503
|
-
render: renderTextEllipsis
|
|
15504
|
-
}, {
|
|
15505
|
-
dataIndex: 'tradeGoodsName',
|
|
15506
|
-
title: "\u4EA4\u6613\u8D27\u54C1\u540D\u79F0",
|
|
15507
|
-
ellipsis: true,
|
|
15508
|
-
width: 250,
|
|
15509
|
-
render: renderTextEllipsis
|
|
15510
|
-
}, {
|
|
15511
|
-
dataIndex: 'tradeGoodsSpec',
|
|
15512
|
-
title: "\u4EA4\u6613\u89C4\u683C\u540D\u79F0",
|
|
15513
|
-
ellipsis: true,
|
|
15514
|
-
width: 250,
|
|
15515
|
-
render: renderTextEllipsis
|
|
15516
|
-
}, {
|
|
15517
|
-
dataIndex: 'sourceSubtradeNo',
|
|
15518
|
-
title: "\u7F51\u5E97\u5B50\u8BA2\u5355\u53F7",
|
|
15519
|
-
ellipsis: true,
|
|
15520
|
-
width: 250,
|
|
15521
|
-
render: renderTextEllipsis
|
|
15522
|
-
}, {
|
|
15523
|
-
dataIndex: 'platGoodsId',
|
|
15524
|
-
title: "\u5E73\u53F0\u5546\u54C1ID",
|
|
15525
|
-
ellipsis: true,
|
|
15526
|
-
width: 250,
|
|
15558
|
+
width: 150,
|
|
15527
15559
|
render: renderTextEllipsis
|
|
15528
15560
|
}, {
|
|
15529
|
-
dataIndex: '
|
|
15530
|
-
title: "\
|
|
15561
|
+
dataIndex: 'retailPrice',
|
|
15562
|
+
title: "\u96F6\u552E\u4EF7",
|
|
15563
|
+
align: 'center',
|
|
15531
15564
|
ellipsis: true,
|
|
15532
|
-
width:
|
|
15565
|
+
width: 150,
|
|
15533
15566
|
render: renderTextEllipsis
|
|
15534
15567
|
}, {
|
|
15535
|
-
dataIndex: '
|
|
15536
|
-
title: "\
|
|
15568
|
+
dataIndex: 'memberPrice',
|
|
15569
|
+
title: "\u4F1A\u5458\u4EF7",
|
|
15570
|
+
align: 'center',
|
|
15537
15571
|
ellipsis: true,
|
|
15538
|
-
width:
|
|
15572
|
+
width: 150,
|
|
15539
15573
|
render: renderTextEllipsis
|
|
15540
15574
|
}, {
|
|
15541
|
-
dataIndex: '
|
|
15542
|
-
title: "\
|
|
15575
|
+
dataIndex: 'costPrice',
|
|
15576
|
+
title: "\u6210\u672C\u4EF7",
|
|
15577
|
+
align: 'center',
|
|
15543
15578
|
ellipsis: true,
|
|
15544
|
-
width:
|
|
15579
|
+
width: 150,
|
|
15545
15580
|
render: renderTextEllipsis
|
|
15546
15581
|
}, {
|
|
15547
|
-
dataIndex: '
|
|
15548
|
-
title: "\
|
|
15582
|
+
dataIndex: 'isVirtual',
|
|
15583
|
+
title: "\u662F\u5426\u865A\u62DF\u5546\u54C1",
|
|
15584
|
+
align: 'center',
|
|
15549
15585
|
ellipsis: true,
|
|
15550
|
-
width:
|
|
15551
|
-
render:
|
|
15586
|
+
width: 150,
|
|
15587
|
+
render: function render(val) {
|
|
15588
|
+
return renderTextEllipsis(getYesOrNo$2(val));
|
|
15589
|
+
}
|
|
15552
15590
|
}, {
|
|
15553
|
-
dataIndex: '
|
|
15554
|
-
title: "\
|
|
15591
|
+
dataIndex: 'skuType',
|
|
15592
|
+
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
15555
15593
|
ellipsis: true,
|
|
15556
|
-
width:
|
|
15557
|
-
render:
|
|
15594
|
+
width: 150,
|
|
15595
|
+
render: function render(val) {
|
|
15596
|
+
return renderTextEllipsis(getYesOrNo$2(val === 'combine'));
|
|
15597
|
+
}
|
|
15558
15598
|
}];
|
|
15559
15599
|
|
|
15560
15600
|
var getColumnsMap = function getColumnsMap() {
|
|
@@ -18797,13 +18837,15 @@ var JyGoodsModal$1 = /*#__PURE__*/React.forwardRef(JyGoodsModal);
|
|
|
18797
18837
|
var getTableData$6 = function getTableData(_ref, formData) {
|
|
18798
18838
|
var current = _ref.current,
|
|
18799
18839
|
pageSize = _ref.pageSize;
|
|
18840
|
+
var conditionList = transformFormData(formData);
|
|
18800
18841
|
return extendRequest('/qy/gdfw/product/product/page', {
|
|
18801
18842
|
method: 'post',
|
|
18802
|
-
data:
|
|
18843
|
+
data: {
|
|
18803
18844
|
pageSize: pageSize,
|
|
18804
18845
|
pageNo: current,
|
|
18805
|
-
platform: '
|
|
18806
|
-
|
|
18846
|
+
platform: 'JKY_ERP',
|
|
18847
|
+
conditionList: conditionList
|
|
18848
|
+
}
|
|
18807
18849
|
}).then(function (res) {
|
|
18808
18850
|
var _res$data = res.data,
|
|
18809
18851
|
_res$data$productSkuL = _res$data.productSkuList,
|
|
@@ -18826,13 +18868,15 @@ var searchFormData$5 = [{
|
|
|
18826
18868
|
}, {
|
|
18827
18869
|
label: '规格编码',
|
|
18828
18870
|
name: 'skuCode',
|
|
18829
|
-
dataIndex: 'specNo'
|
|
18871
|
+
dataIndex: 'specNo',
|
|
18872
|
+
type: 'optionalInput'
|
|
18830
18873
|
}, {
|
|
18831
|
-
label: '
|
|
18874
|
+
label: '货品名称',
|
|
18832
18875
|
name: 'goodName'
|
|
18833
18876
|
}, {
|
|
18834
|
-
label: '
|
|
18835
|
-
name: 'goodNo'
|
|
18877
|
+
label: '货品编码',
|
|
18878
|
+
name: 'goodNo',
|
|
18879
|
+
type: 'optionalInput'
|
|
18836
18880
|
}];
|
|
18837
18881
|
var GoodList$6 = function GoodList(props, ref) {
|
|
18838
18882
|
var _useState = React.useState([]),
|
|
@@ -18902,8 +18946,8 @@ var GoodList$6 = function GoodList(props, ref) {
|
|
|
18902
18946
|
getCheckboxProps: function getCheckboxProps(record) {
|
|
18903
18947
|
var options = {
|
|
18904
18948
|
disabled: (props.selectedRows || []).map(function (row) {
|
|
18905
|
-
return row.
|
|
18906
|
-
}).includes(record.
|
|
18949
|
+
return row.specId || record.id;
|
|
18950
|
+
}).includes(record.specId || record.id),
|
|
18907
18951
|
name: record.id
|
|
18908
18952
|
};
|
|
18909
18953
|
return options;
|
|
@@ -20350,7 +20394,7 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
20350
20394
|
};
|
|
20351
20395
|
};
|
|
20352
20396
|
|
|
20353
|
-
var getYesOrNo$
|
|
20397
|
+
var getYesOrNo$3 = function getYesOrNo(val) {
|
|
20354
20398
|
if (kmkfUtils.isNull(val)) return null;
|
|
20355
20399
|
return val ? '是' : '否';
|
|
20356
20400
|
};
|
|
@@ -20501,7 +20545,7 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
20501
20545
|
label: '否',
|
|
20502
20546
|
value: false
|
|
20503
20547
|
}]
|
|
20504
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$
|
|
20548
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$3(val));
|
|
20505
20549
|
},
|
|
20506
20550
|
width: 100
|
|
20507
20551
|
}]
|
|
@@ -20513,7 +20557,7 @@ var isNumberOrNumberString$1 = function isNumberOrNumberString(value) {
|
|
|
20513
20557
|
if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
|
|
20514
20558
|
return false;
|
|
20515
20559
|
};
|
|
20516
|
-
var getYesOrNo$
|
|
20560
|
+
var getYesOrNo$4 = function getYesOrNo(val) {
|
|
20517
20561
|
if (kmkfUtils.isNull(val)) return null;
|
|
20518
20562
|
return val ? '是' : '否';
|
|
20519
20563
|
};
|
|
@@ -20628,7 +20672,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
20628
20672
|
title: "\u662F\u5426\u53D6\u6D88",
|
|
20629
20673
|
width: 150,
|
|
20630
20674
|
render: function render(val) {
|
|
20631
|
-
return /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$
|
|
20675
|
+
return /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$4(val));
|
|
20632
20676
|
}
|
|
20633
20677
|
}, {
|
|
20634
20678
|
dataIndex: 'isGift',
|
|
@@ -20647,7 +20691,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
20647
20691
|
label: '否',
|
|
20648
20692
|
value: 0
|
|
20649
20693
|
}]
|
|
20650
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$
|
|
20694
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$4(val));
|
|
20651
20695
|
}
|
|
20652
20696
|
}, {
|
|
20653
20697
|
dataIndex: 'skuNote',
|
|
@@ -20773,7 +20817,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
20773
20817
|
label: '否',
|
|
20774
20818
|
value: 0
|
|
20775
20819
|
}]
|
|
20776
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$
|
|
20820
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$4(val));
|
|
20777
20821
|
}
|
|
20778
20822
|
}].map(function (item) {
|
|
20779
20823
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
@@ -20902,7 +20946,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
20902
20946
|
label: '否',
|
|
20903
20947
|
value: 0
|
|
20904
20948
|
}]
|
|
20905
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$
|
|
20949
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$4(val));
|
|
20906
20950
|
}
|
|
20907
20951
|
}].map(function (item) {
|
|
20908
20952
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
@@ -22440,7 +22484,7 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22440
22484
|
updateHandle = _ref.updateHandle,
|
|
22441
22485
|
updateDataHandle = _ref.updateDataHandle;
|
|
22442
22486
|
return {
|
|
22443
|
-
|
|
22487
|
+
//吉客云商品信息
|
|
22444
22488
|
JKY_GOODS: [{
|
|
22445
22489
|
dataIndex: 'goodsNo',
|
|
22446
22490
|
title: "\u8D27\u54C1\u7F16\u53F7",
|
|
@@ -22542,7 +22586,7 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22542
22586
|
}
|
|
22543
22587
|
}, {
|
|
22544
22588
|
dataIndex: 'sellTotal',
|
|
22545
|
-
title: "\u91D1\u989D",
|
|
22589
|
+
title: "\u603B\u91D1\u989D",
|
|
22546
22590
|
width: 150
|
|
22547
22591
|
}, {
|
|
22548
22592
|
dataIndex: 'discountTotal',
|
|
@@ -22567,7 +22611,22 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22567
22611
|
}, {
|
|
22568
22612
|
dataIndex: 'divideSellTotal',
|
|
22569
22613
|
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
22570
|
-
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
|
+
}
|
|
22571
22630
|
}, {
|
|
22572
22631
|
dataIndex: 'isGift',
|
|
22573
22632
|
title: "\u662F\u5426\u8D60\u54C1",
|
|
@@ -22586,12 +22645,12 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22586
22645
|
},
|
|
22587
22646
|
options: [{
|
|
22588
22647
|
label: '是',
|
|
22589
|
-
value:
|
|
22648
|
+
value: 1
|
|
22590
22649
|
}, {
|
|
22591
22650
|
label: '否',
|
|
22592
|
-
value:
|
|
22651
|
+
value: 0
|
|
22593
22652
|
}]
|
|
22594
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val
|
|
22653
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val == 1 ? '是' : '否');
|
|
22595
22654
|
}
|
|
22596
22655
|
}, {
|
|
22597
22656
|
dataIndex: 'isFit',
|
|
@@ -22611,12 +22670,12 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22611
22670
|
},
|
|
22612
22671
|
options: [{
|
|
22613
22672
|
label: '是',
|
|
22614
|
-
value:
|
|
22673
|
+
value: 1
|
|
22615
22674
|
}, {
|
|
22616
22675
|
label: '否',
|
|
22617
|
-
value:
|
|
22676
|
+
value: 0
|
|
22618
22677
|
}]
|
|
22619
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val
|
|
22678
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val == 1 ? '是' : '否');
|
|
22620
22679
|
}
|
|
22621
22680
|
}, {
|
|
22622
22681
|
dataIndex: 'isPresell',
|
|
@@ -22641,7 +22700,7 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22641
22700
|
label: '否',
|
|
22642
22701
|
value: '0'
|
|
22643
22702
|
}]
|
|
22644
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val
|
|
22703
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val == '1' ? '是' : '否');
|
|
22645
22704
|
}
|
|
22646
22705
|
}, {
|
|
22647
22706
|
dataIndex: 'brandName',
|
|
@@ -22738,7 +22797,7 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22738
22797
|
ellipsis: true
|
|
22739
22798
|
});
|
|
22740
22799
|
}),
|
|
22741
|
-
//
|
|
22800
|
+
// 吉客云补发商品信息
|
|
22742
22801
|
JKY_REISSUE_GOODS: [{
|
|
22743
22802
|
dataIndex: 'goodsNo',
|
|
22744
22803
|
title: "\u8D27\u54C1\u7F16\u53F7",
|
|
@@ -22809,7 +22868,7 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22809
22868
|
}
|
|
22810
22869
|
},
|
|
22811
22870
|
render: function render(val, record, index) {
|
|
22812
|
-
return
|
|
22871
|
+
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
22813
22872
|
style: {
|
|
22814
22873
|
width: 70
|
|
22815
22874
|
},
|
|
@@ -22829,7 +22888,7 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22829
22888
|
title: "\u5355\u4EF7",
|
|
22830
22889
|
width: 150,
|
|
22831
22890
|
render: function render(val, record, index) {
|
|
22832
|
-
return
|
|
22891
|
+
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
22833
22892
|
style: {
|
|
22834
22893
|
width: 130
|
|
22835
22894
|
},
|
|
@@ -22849,56 +22908,59 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22849
22908
|
title: "\u603B\u91D1\u989D",
|
|
22850
22909
|
width: 150,
|
|
22851
22910
|
render: function render(val, record, index) {
|
|
22852
|
-
|
|
22911
|
+
if ((typeof record.sellCount === 'number' || record.sellCount) && (typeof record.sellPrice === 'number' || record.sellPrice)) {
|
|
22912
|
+
return record.sellCount * record.sellPrice;
|
|
22913
|
+
}
|
|
22914
|
+
return '';
|
|
22853
22915
|
}
|
|
22854
22916
|
}, {
|
|
22855
22917
|
dataIndex: 'reason',
|
|
22856
22918
|
title: "\u9000\u6362\u539F\u56E0",
|
|
22857
22919
|
width: 250,
|
|
22858
22920
|
render: function render(val, record, index) {
|
|
22859
|
-
return /*#__PURE__*/React__default['default'].createElement(ApaasInput, {
|
|
22921
|
+
return !disabled ? /*#__PURE__*/React__default['default'].createElement(ApaasInput, {
|
|
22860
22922
|
onChange: function onChange(value) {
|
|
22861
22923
|
updateHandle(value, index, 'reason');
|
|
22862
22924
|
}
|
|
22863
|
-
});
|
|
22925
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
22864
22926
|
}
|
|
22865
22927
|
}, {
|
|
22866
22928
|
dataIndex: 'isGift',
|
|
22867
22929
|
title: "\u662F\u5426\u8D60\u54C1",
|
|
22868
22930
|
width: 150,
|
|
22869
22931
|
render: function render(val, record, index) {
|
|
22870
|
-
return
|
|
22932
|
+
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
22871
22933
|
value: val,
|
|
22872
22934
|
onChange: function onChange(value) {
|
|
22873
22935
|
updateHandle(value, index, 'isGift');
|
|
22874
22936
|
},
|
|
22875
22937
|
options: [{
|
|
22876
22938
|
label: '是',
|
|
22877
|
-
value:
|
|
22939
|
+
value: 1
|
|
22878
22940
|
}, {
|
|
22879
22941
|
label: '否',
|
|
22880
|
-
value:
|
|
22942
|
+
value: 0
|
|
22881
22943
|
}]
|
|
22882
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val ===
|
|
22944
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val === 1 ? '是' : '否');
|
|
22883
22945
|
}
|
|
22884
22946
|
}, {
|
|
22885
22947
|
dataIndex: 'isFit',
|
|
22886
22948
|
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
22887
22949
|
width: 150,
|
|
22888
22950
|
render: function render(val, record, index) {
|
|
22889
|
-
return
|
|
22951
|
+
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
22890
22952
|
value: val,
|
|
22891
22953
|
onChange: function onChange(value) {
|
|
22892
22954
|
updateHandle(value, index, 'isFit');
|
|
22893
22955
|
},
|
|
22894
22956
|
options: [{
|
|
22895
22957
|
label: '是',
|
|
22896
|
-
value:
|
|
22958
|
+
value: 1
|
|
22897
22959
|
}, {
|
|
22898
22960
|
label: '否',
|
|
22899
|
-
value:
|
|
22961
|
+
value: 0
|
|
22900
22962
|
}]
|
|
22901
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val ===
|
|
22963
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val === 1 ? '是' : '否');
|
|
22902
22964
|
}
|
|
22903
22965
|
}, {
|
|
22904
22966
|
dataIndex: 'brandName',
|
|
@@ -23282,6 +23344,13 @@ var processGoods$1 = function processGoods(_ref) {
|
|
|
23282
23344
|
canUpdateNumber: canUpdateNumber,
|
|
23283
23345
|
source: source
|
|
23284
23346
|
});
|
|
23347
|
+
} else if (isErpType.isJky(type)) {
|
|
23348
|
+
newList = processJkyGoods$1({
|
|
23349
|
+
list: list,
|
|
23350
|
+
type: type,
|
|
23351
|
+
canUpdateNumber: canUpdateNumber,
|
|
23352
|
+
source: source
|
|
23353
|
+
});
|
|
23285
23354
|
} else {
|
|
23286
23355
|
newList = processDefaultGoods({
|
|
23287
23356
|
list: list,
|
|
@@ -23330,11 +23399,45 @@ var processJyGoods = function processJyGoods(_ref2) {
|
|
|
23330
23399
|
});
|
|
23331
23400
|
});
|
|
23332
23401
|
};
|
|
23333
|
-
|
|
23334
|
-
var processWdtGoods$1 = function processWdtGoods(_ref3) {
|
|
23402
|
+
var processJkyGoods$1 = function processJkyGoods(_ref3) {
|
|
23335
23403
|
var list = _ref3.list,
|
|
23336
|
-
type = _ref3.type,
|
|
23337
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 * 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;
|
|
23338
23441
|
return list.map(function (item) {
|
|
23339
23442
|
var processedItem = _objectSpread2(_objectSpread2({}, item), {}, {
|
|
23340
23443
|
uuid: kmkfUtils.uuid(),
|
|
@@ -23352,9 +23455,9 @@ var processWdtGoods$1 = function processWdtGoods(_ref3) {
|
|
|
23352
23455
|
return processedItem;
|
|
23353
23456
|
});
|
|
23354
23457
|
};
|
|
23355
|
-
var processBsE3Goods$1 = function processBsE3Goods(
|
|
23356
|
-
var list =
|
|
23357
|
-
canUpdateNumber =
|
|
23458
|
+
var processBsE3Goods$1 = function processBsE3Goods(_ref5) {
|
|
23459
|
+
var list = _ref5.list,
|
|
23460
|
+
canUpdateNumber = _ref5.canUpdateNumber;
|
|
23358
23461
|
return list.map(function (item) {
|
|
23359
23462
|
var specNo = item.specNo,
|
|
23360
23463
|
specId = item.specId,
|
|
@@ -23389,9 +23492,9 @@ var processBsE3Goods$1 = function processBsE3Goods(_ref4) {
|
|
|
23389
23492
|
});
|
|
23390
23493
|
});
|
|
23391
23494
|
};
|
|
23392
|
-
var processGyGoods$1 = function processGyGoods(
|
|
23393
|
-
var list =
|
|
23394
|
-
source =
|
|
23495
|
+
var processGyGoods$1 = function processGyGoods(_ref6) {
|
|
23496
|
+
var list = _ref6.list,
|
|
23497
|
+
source = _ref6.source;
|
|
23395
23498
|
var isFormWorkOrder = source === 'workOrder';
|
|
23396
23499
|
return list.map(function (item) {
|
|
23397
23500
|
var goodName = item.goodName,
|
|
@@ -23418,8 +23521,8 @@ var processGyGoods$1 = function processGyGoods(_ref5) {
|
|
|
23418
23521
|
});
|
|
23419
23522
|
});
|
|
23420
23523
|
};
|
|
23421
|
-
var processJstGoods$1 = function processJstGoods(
|
|
23422
|
-
var list =
|
|
23524
|
+
var processJstGoods$1 = function processJstGoods(_ref7) {
|
|
23525
|
+
var list = _ref7.list;
|
|
23423
23526
|
return list.map(function (item) {
|
|
23424
23527
|
return {
|
|
23425
23528
|
name: item.goodName,
|
|
@@ -23437,9 +23540,9 @@ var processJstGoods$1 = function processJstGoods(_ref6) {
|
|
|
23437
23540
|
};
|
|
23438
23541
|
});
|
|
23439
23542
|
};
|
|
23440
|
-
var processKmGoods$1 = function processKmGoods(
|
|
23441
|
-
var list =
|
|
23442
|
-
type =
|
|
23543
|
+
var processKmGoods$1 = function processKmGoods(_ref8) {
|
|
23544
|
+
var list = _ref8.list,
|
|
23545
|
+
type = _ref8.type;
|
|
23443
23546
|
var initParamsMap = {
|
|
23444
23547
|
KM_GOODS: {
|
|
23445
23548
|
num: 1
|
|
@@ -23458,20 +23561,22 @@ var processKmGoods$1 = function processKmGoods(_ref7) {
|
|
|
23458
23561
|
sysOuterId: item.goodNo,
|
|
23459
23562
|
outerId: item.goodNo,
|
|
23460
23563
|
skuSysId: item.specId,
|
|
23564
|
+
sysSkuId: item.specId,
|
|
23461
23565
|
itemSysId: item.goodId,
|
|
23566
|
+
sysItemId: item.goodId,
|
|
23462
23567
|
sysPicPath: item.goodPicUrl,
|
|
23463
23568
|
payment: null,
|
|
23464
23569
|
price: item.retailPrice,
|
|
23465
|
-
type: null,
|
|
23570
|
+
type: (kmkfUtils.kmSkuTypeMap === null || kmkfUtils.kmSkuTypeMap === void 0 ? void 0 : kmkfUtils.kmSkuTypeMap[item === null || item === void 0 ? void 0 : item.skuType]) || '',
|
|
23466
23571
|
uuid: kmkfUtils.uuid(),
|
|
23467
23572
|
canDelete: true,
|
|
23468
23573
|
canEdit: true
|
|
23469
23574
|
}, initParamsMap[type] || {});
|
|
23470
23575
|
});
|
|
23471
23576
|
};
|
|
23472
|
-
var processDefaultGoods = function processDefaultGoods(
|
|
23473
|
-
var list =
|
|
23474
|
-
canUpdateNumber =
|
|
23577
|
+
var processDefaultGoods = function processDefaultGoods(_ref9) {
|
|
23578
|
+
var list = _ref9.list,
|
|
23579
|
+
canUpdateNumber = _ref9.canUpdateNumber;
|
|
23475
23580
|
return list.map(function (item) {
|
|
23476
23581
|
var goodsId = item.goodsId,
|
|
23477
23582
|
name = item.name,
|
|
@@ -23577,7 +23682,7 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
23577
23682
|
systemItemIds = dataSource === null || dataSource === void 0 ? void 0 : dataSource.filter(function (item) {
|
|
23578
23683
|
return item === null || item === void 0 ? void 0 : item.sysItemId;
|
|
23579
23684
|
}).map(function (item) {
|
|
23580
|
-
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);
|
|
23581
23686
|
});
|
|
23582
23687
|
_context.next = 3;
|
|
23583
23688
|
return kmkfUtils.servers.KM.getSupplierSingleton(systemItemIds);
|
|
@@ -23586,7 +23691,7 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
23586
23691
|
dataSource === null || dataSource === void 0 ? void 0 : (_dataSource$filter = dataSource.filter(function (item) {
|
|
23587
23692
|
return item === null || item === void 0 ? void 0 : item.sysItemId;
|
|
23588
23693
|
})) === null || _dataSource$filter === void 0 ? void 0 : _dataSource$filter.forEach(function (item) {
|
|
23589
|
-
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);
|
|
23590
23695
|
var supplierInfo = supplierMap.get(key);
|
|
23591
23696
|
item.supplierCode = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierCode;
|
|
23592
23697
|
item.supplierName = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierName;
|
|
@@ -23744,6 +23849,7 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
23744
23849
|
}
|
|
23745
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, ")")));
|
|
23746
23851
|
};
|
|
23852
|
+
SelectTradeGoods.displayName = 'SelectTradeGoods';
|
|
23747
23853
|
var getButtonText = function getButtonText() {
|
|
23748
23854
|
var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
23749
23855
|
if (['KM_GOODS', 'KM_REISSUE_GOODS'].includes(type)) {
|
|
@@ -23825,7 +23931,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
23825
23931
|
var isShowSelectTradeGoods = type !== 'JST_EXCHANGE_GOODS' || (jstReturnGoods === null || jstReturnGoods === void 0 ? void 0 : jstReturnGoods.jstSystemOrderNo);
|
|
23826
23932
|
// 判断是否为是否展示系统单筛选项
|
|
23827
23933
|
var isShowSelect = type && ['WDT_GOODS', 'BS_E3_GOODS', 'GY_GOODS', 'JST_GOODS', 'WLN_GOODS', 'KM_GOODS', 'JY_GOODS', 'JY_REISSUE_GOODS', 'JKY_GOODS', 'JKY_REISSUE_GOODS', 'GY_REISSUE_GOODS', 'KM_REISSUE_GOODS', 'BS_E3_REISSUE_GOODS', 'WDT_REISSUE_GOODS', 'JST_REISSUE_GOODS'].includes(type) || false;
|
|
23828
|
-
var isReissueType = type && ['GY_REISSUE_GOODS', 'KM_REISSUE_GOODS', 'BS_E3_REISSUE_GOODS', 'WDT_REISSUE_GOODS', 'JST_REISSUE_GOODS', 'JY_REISSUE_GOODS'].includes(type) || false;
|
|
23934
|
+
var isReissueType = type && ['GY_REISSUE_GOODS', 'KM_REISSUE_GOODS', 'BS_E3_REISSUE_GOODS', 'WDT_REISSUE_GOODS', 'JST_REISSUE_GOODS', 'JY_REISSUE_GOODS', 'JKY_REISSUE_GOODS'].includes(type) || false;
|
|
23829
23935
|
var refModal = React.useRef();
|
|
23830
23936
|
console.debug('表格数据', value);
|
|
23831
23937
|
var handleDelete = function handleDelete(record, index) {
|
|
@@ -25130,24 +25236,28 @@ var getJkyOrderListSingleton = function getJkyOrderListSingleton(orderNo) {
|
|
|
25130
25236
|
singletonMap$7.delete(orderNo);
|
|
25131
25237
|
reject(err);
|
|
25132
25238
|
};
|
|
25133
|
-
extendRequest('/qy/gdfw/
|
|
25239
|
+
extendRequest('/qy/gdfw/jky/erp/trade/fullInfo', {
|
|
25134
25240
|
method: 'post',
|
|
25135
25241
|
data: {
|
|
25136
|
-
|
|
25242
|
+
sourceTradeNos: orderNo
|
|
25137
25243
|
}
|
|
25138
25244
|
}).then(function (res) {
|
|
25139
25245
|
if (res === null || res === void 0 ? void 0 : res.success) {
|
|
25140
|
-
var _res$data, _res$
|
|
25141
|
-
if (res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 :
|
|
25142
|
-
var _filterJkyOrders
|
|
25143
|
-
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) {
|
|
25144
25250
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
25251
|
+
tradeFrom: kmkfUtils.JKY_ORDER_FROM_MAP[item.tradeFrom],
|
|
25145
25252
|
tradeType: kmkfUtils.JKY_ORDER_TYPE_MAP[item.tradeType],
|
|
25146
|
-
tradeStatus: kmkfUtils.JKY_ORDER_STATUS_MAP[item.tradeStatus]
|
|
25253
|
+
tradeStatus: kmkfUtils.JKY_ORDER_STATUS_MAP[item.tradeStatus],
|
|
25254
|
+
logisticName: kmkfUtils.getJkyLogisticInfo(item === null || item === void 0 ? void 0 : item.packageDetail, 'logisticName'),
|
|
25255
|
+
logisticCode: kmkfUtils.getJkyLogisticInfo(item === null || item === void 0 ? void 0 : item.packageDetail, 'logisticCode'),
|
|
25256
|
+
logisticNo: kmkfUtils.getJkyLogisticInfo(item === null || item === void 0 ? void 0 : item.packageDetail, 'logisticNo')
|
|
25147
25257
|
});
|
|
25148
25258
|
});
|
|
25149
25259
|
}
|
|
25150
|
-
resolve(((_res$
|
|
25260
|
+
resolve(((_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.trades) || []);
|
|
25151
25261
|
// 延迟10秒清除,保证订单的时效性
|
|
25152
25262
|
setTimeout(function () {
|
|
25153
25263
|
singletonMap$7.delete(orderNo);
|
|
@@ -25509,7 +25619,7 @@ var index$2 = (function (props) {
|
|
|
25509
25619
|
while (1) switch (_context8.prev = _context8.next) {
|
|
25510
25620
|
case 0:
|
|
25511
25621
|
jyUtils.getJyOrderListSingleton(orderNo).then(function (data) {
|
|
25512
|
-
var trades = (
|
|
25622
|
+
var trades = (data || []).filter(function (item) {
|
|
25513
25623
|
return kmkfUtils.getIsPlatformCodesIncludeOrderNos(item.platformCode, orderNo);
|
|
25514
25624
|
});
|
|
25515
25625
|
_onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, {
|
|
@@ -25540,12 +25650,9 @@ var index$2 = (function (props) {
|
|
|
25540
25650
|
while (1) switch (_context9.prev = _context9.next) {
|
|
25541
25651
|
case 0:
|
|
25542
25652
|
jkyUtils.getJkyOrderListSingleton(orderNo).then(function (data) {
|
|
25543
|
-
var trades = ((data === null || data === void 0 ? void 0 : data.trades) || []).filter(function (item) {
|
|
25544
|
-
return kmkfUtils.getIsPlatformCodesIncludeOrderNos(item.platformCode, orderNo);
|
|
25545
|
-
});
|
|
25546
25653
|
_onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, {
|
|
25547
|
-
orders:
|
|
25548
|
-
showOrderInfo:
|
|
25654
|
+
orders: data || [],
|
|
25655
|
+
showOrderInfo: data || []
|
|
25549
25656
|
}));
|
|
25550
25657
|
});
|
|
25551
25658
|
onceRef.current = false;
|
|
@@ -26522,7 +26629,7 @@ var processGyOrders = function processGyOrders(_ref4) {
|
|
|
26522
26629
|
var processJyOrders = function processJyOrders(_ref5) {
|
|
26523
26630
|
var data = _ref5.data,
|
|
26524
26631
|
orderNo = _ref5.orderNo;
|
|
26525
|
-
var trades = (
|
|
26632
|
+
var trades = (data || []).filter(function (item) {
|
|
26526
26633
|
return kmkfUtils.getIsPlatformCodesIncludeOrderNos(item.platformCode, orderNo);
|
|
26527
26634
|
});
|
|
26528
26635
|
return trades;
|
|
@@ -26848,7 +26955,7 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
26848
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) {
|
|
26849
26956
|
return item === null || item === void 0 ? void 0 : item.sysItemId;
|
|
26850
26957
|
})) === null || _value$kmGoods$filter === void 0 ? void 0 : _value$kmGoods$filter.forEach(function (item) {
|
|
26851
|
-
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);
|
|
26852
26959
|
map[key] = item;
|
|
26853
26960
|
});
|
|
26854
26961
|
}
|
|
@@ -26889,7 +26996,8 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
26889
26996
|
hasChange = false;
|
|
26890
26997
|
currentValue = valueRef.current;
|
|
26891
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) {
|
|
26892
|
-
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);
|
|
26893
27001
|
var newSupplierCode = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierCode;
|
|
26894
27002
|
var newSupplierName = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierName;
|
|
26895
27003
|
// 如果供应商信息有变化,标记需要更新
|
|
@@ -27173,7 +27281,6 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
27173
27281
|
orderNo: value === null || value === void 0 ? void 0 : value.orderNo,
|
|
27174
27282
|
type: compType
|
|
27175
27283
|
});
|
|
27176
|
-
console.log('getDataSourceAsync', list);
|
|
27177
27284
|
onChange(_objectSpread2(_objectSpread2({}, valueRef.current), {}, {
|
|
27178
27285
|
allOrders: list || []
|
|
27179
27286
|
}));
|
|
@@ -27209,6 +27316,7 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
27209
27316
|
}
|
|
27210
27317
|
}));
|
|
27211
27318
|
};
|
|
27319
|
+
CommonGoods.displayName = 'CommonGoods';
|
|
27212
27320
|
|
|
27213
27321
|
var componentMap$3 = {
|
|
27214
27322
|
WDT_RETURN_GOODS: {
|
|
@@ -27860,10 +27968,26 @@ var typeMap$2 = {
|
|
|
27860
27968
|
outerOiIdKey: '',
|
|
27861
27969
|
goodDetailsKey: 'subOrderDetails',
|
|
27862
27970
|
isShowSelectTradeGoods: true
|
|
27971
|
+
},
|
|
27972
|
+
JKY_REISSUE_GOODS: {
|
|
27973
|
+
compType: '补发',
|
|
27974
|
+
key: 'jkyReissueGoods',
|
|
27975
|
+
typeName: 'jkyReissueType',
|
|
27976
|
+
systemOrder: 'jkySystemOrder',
|
|
27977
|
+
systemOrderNo: 'jkySystemOrderNo',
|
|
27978
|
+
getOrderList: jkyUtils.getJkyOrderListSingleton,
|
|
27979
|
+
updateGoodsHandle: kmkfUtils.updateJkyGoodsHandle,
|
|
27980
|
+
alwaysShowChooseErpGoodsBtn: true,
|
|
27981
|
+
orderTypeKey: 'orderType',
|
|
27982
|
+
oIdKey: 'tradeNo',
|
|
27983
|
+
outerOiIdKey: '',
|
|
27984
|
+
goodDetailsKey: 'goodsDetail',
|
|
27985
|
+
isShowSelectTradeGoods: true,
|
|
27986
|
+
showModeBtn: true
|
|
27863
27987
|
}
|
|
27864
27988
|
};
|
|
27865
27989
|
var PublicReissue = function PublicReissue(props) {
|
|
27866
|
-
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;
|
|
27867
27991
|
var value = props.value,
|
|
27868
27992
|
onChange = props.onChange,
|
|
27869
27993
|
_props$reasonList = props.reasonList,
|
|
@@ -27986,7 +28110,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
27986
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) {
|
|
27987
28111
|
return item === null || item === void 0 ? void 0 : item.sysItemId;
|
|
27988
28112
|
})) === null || _value$kmReissueGoods2 === void 0 ? void 0 : _value$kmReissueGoods2.forEach(function (item) {
|
|
27989
|
-
var key = item.sysSkuId == '-1' ? item.sysItemId : "".concat(item.sysItemId, "-").concat(item.sysSkuId);
|
|
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);
|
|
27990
28114
|
map[key] = item;
|
|
27991
28115
|
});
|
|
27992
28116
|
}
|
|
@@ -28027,7 +28151,8 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28027
28151
|
hasChange = false;
|
|
28028
28152
|
currentValue = valueRef.current;
|
|
28029
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) {
|
|
28030
|
-
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);
|
|
28031
28156
|
var newSupplierCode = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierCode;
|
|
28032
28157
|
var newSupplierName = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierName;
|
|
28033
28158
|
// 如果供应商信息有变化,标记需要更新
|
|
@@ -28063,7 +28188,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28063
28188
|
}
|
|
28064
28189
|
}, [sysItemIdMap]);
|
|
28065
28190
|
var getGoodDetails = function getGoodDetails(_ref5) {
|
|
28066
|
-
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;
|
|
28067
28192
|
var mode = _ref5.mode,
|
|
28068
28193
|
sysOrderNo = _ref5.sysOrderNo,
|
|
28069
28194
|
_ref5$isAllOrders = _ref5.isAllOrders,
|
|
@@ -28085,14 +28210,17 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28085
28210
|
orderRest = {
|
|
28086
28211
|
canEdit: true
|
|
28087
28212
|
};
|
|
28213
|
+
} else if (['JKY_REISSUE_GOODS'].includes(type)) {
|
|
28214
|
+
orderRest = {
|
|
28215
|
+
canEdit: true
|
|
28216
|
+
};
|
|
28088
28217
|
}
|
|
28089
28218
|
var orders = isAllOrders ? (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s6 = value[(_typeMap$type20 = typeMap$2[type]) === null || _typeMap$type20 === void 0 ? void 0 : _typeMap$type20.systemOrder]) === null || _value$typeMap$type$s6 === void 0 ? void 0 : _value$typeMap$type$s6.orders) || [] : order ? [order] : [];
|
|
28090
28219
|
var hasGoodDetails = orders === null || orders === void 0 ? void 0 : orders.some(function (order) {
|
|
28091
28220
|
var _order$typeMap$type$g;
|
|
28092
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;
|
|
28093
28222
|
});
|
|
28094
|
-
|
|
28095
|
-
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) : [];
|
|
28096
28224
|
var orderNo = systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orderNo;
|
|
28097
28225
|
var list = mode && !isAllOrders ? goodDetails.filter(function (goodItem) {
|
|
28098
28226
|
return !orderNo || goodItem[typeMap$2[type].outerOiIdKey] === orderNo;
|
|
@@ -28100,30 +28228,30 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28100
28228
|
return list;
|
|
28101
28229
|
};
|
|
28102
28230
|
var changeGoodHandle = function changeGoodHandle(val) {
|
|
28103
|
-
var _typeMap$
|
|
28231
|
+
var _typeMap$type24;
|
|
28104
28232
|
var newValue = _objectSpread2({}, value);
|
|
28105
|
-
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 || [];
|
|
28106
28234
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
28107
28235
|
};
|
|
28108
28236
|
var changeSystemOrderHandle = function changeSystemOrderHandle(val) {
|
|
28109
|
-
var _typeMap$
|
|
28237
|
+
var _typeMap$type25, _typeMap$type26, _value$typeMap$type$t2, _typeMap$type31, _value$typeMap$type$t3, _typeMap$type33;
|
|
28110
28238
|
var newValue = _objectSpread2({}, value);
|
|
28111
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28112
|
-
if (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28113
|
-
var _value$typeMap$type$s7, _typeMap$
|
|
28114
|
-
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) || [];
|
|
28115
28243
|
var targetOrder = val && orders.find(function (oItem) {
|
|
28116
|
-
var _typeMap$
|
|
28117
|
-
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;
|
|
28118
28246
|
});
|
|
28119
|
-
newValue[(_typeMap$
|
|
28120
|
-
}
|
|
28121
|
-
if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$
|
|
28122
|
-
var _typeMap$
|
|
28123
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28124
|
-
} else if (['1'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$
|
|
28125
|
-
var _typeMap$
|
|
28126
|
-
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({
|
|
28127
28255
|
mode: isStrict,
|
|
28128
28256
|
sysOrderNo: val
|
|
28129
28257
|
});
|
|
@@ -28131,27 +28259,27 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28131
28259
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue, 'systemOrder');
|
|
28132
28260
|
};
|
|
28133
28261
|
//显示选择商品按钮
|
|
28134
|
-
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]);
|
|
28135
28263
|
var selectedGoodsChange = React.useCallback(function (skuList) {
|
|
28136
|
-
var _typeMap$
|
|
28264
|
+
var _typeMap$type36, _typeMap$type37, _typeMap$type38, _uniqBy, _typeMap$type39;
|
|
28137
28265
|
var newValue = _objectSpread2({}, value);
|
|
28138
28266
|
// 原订单商品
|
|
28139
28267
|
var originTradeGoodList = getGoodDetails({
|
|
28140
28268
|
mode: isStrict,
|
|
28141
|
-
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
|
|
28142
28270
|
}) || [];
|
|
28143
28271
|
// 当前选中的所有商品【包含了原订单+商品库】
|
|
28144
|
-
var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28145
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28146
|
-
var _typeMap$
|
|
28147
|
-
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']);
|
|
28148
28276
|
});
|
|
28149
28277
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
28150
|
-
}, [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]);
|
|
28151
28279
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Row, {
|
|
28152
28280
|
gutter: 8,
|
|
28153
28281
|
wrap: true,
|
|
28154
|
-
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())
|
|
28155
28283
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
28156
28284
|
className: "gutter-row",
|
|
28157
28285
|
xs: {
|
|
@@ -28167,12 +28295,12 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28167
28295
|
},
|
|
28168
28296
|
disabled: disabled,
|
|
28169
28297
|
allowClear: false,
|
|
28170
|
-
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)],
|
|
28171
28299
|
onChange: function onChange(val) {
|
|
28172
28300
|
return changeSystemOrderHandle(val);
|
|
28173
28301
|
},
|
|
28174
|
-
placeholder: "\u9009\u62E9".concat((typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28175
|
-
}, ((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) {
|
|
28176
28304
|
return /*#__PURE__*/React__default['default'].createElement(antd.Select.Option, {
|
|
28177
28305
|
key: item[typeMap$2[type].oIdKey],
|
|
28178
28306
|
value: item[typeMap$2[type].oIdKey],
|
|
@@ -28194,11 +28322,11 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28194
28322
|
disabled: isSettingConfig ? !isSettingConfig : disabled,
|
|
28195
28323
|
allowClear: false,
|
|
28196
28324
|
options: reasonList,
|
|
28197
|
-
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)],
|
|
28198
28326
|
onChange: function onChange(val) {
|
|
28199
28327
|
return changeTypeHandle(val);
|
|
28200
28328
|
}
|
|
28201
|
-
})), (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, {
|
|
28202
28330
|
className: "gutter-row",
|
|
28203
28331
|
xs: {
|
|
28204
28332
|
span: 11
|
|
@@ -28207,7 +28335,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28207
28335
|
span: 6
|
|
28208
28336
|
}
|
|
28209
28337
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
28210
|
-
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)],
|
|
28211
28339
|
disabled: disabled,
|
|
28212
28340
|
readOnly: true
|
|
28213
28341
|
}))), /*#__PURE__*/React__default['default'].createElement(GoodItem$1, _objectSpread2(_objectSpread2({
|
|
@@ -28218,15 +28346,15 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28218
28346
|
canUpdateNumber: showChangeBtn,
|
|
28219
28347
|
hasSelectedSystemOrder: showChangeBtn,
|
|
28220
28348
|
// showChangeBtn={showChangeBtn || typeMap?.[type]?.isShowSelectTradeGoods}
|
|
28221
|
-
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,
|
|
28222
28350
|
// showErpGoodsBtn={typeMap?.[type]?.showErpGoodsBtn}
|
|
28223
28351
|
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
28224
|
-
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)],
|
|
28225
28353
|
onChange: function onChange(val) {
|
|
28226
28354
|
return changeGoodHandle(val);
|
|
28227
28355
|
},
|
|
28228
28356
|
onModeChange: handleModeChange,
|
|
28229
|
-
showModeBtn:
|
|
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),
|
|
28230
28358
|
isStrict: isStrict,
|
|
28231
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,
|
|
28232
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,
|
|
@@ -28241,6 +28369,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28241
28369
|
}
|
|
28242
28370
|
})));
|
|
28243
28371
|
};
|
|
28372
|
+
PublicReissue.displayName = 'PublicReissue';
|
|
28244
28373
|
|
|
28245
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";
|
|
28246
28375
|
styleInject(css_248z$g);
|