@kmkf-fe-packages/basic-components 2.2.44-beta.3 → 2.2.44-beta.30
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 +333 -255
- package/dist/index.js +332 -254
- 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 +13 -2
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -3,7 +3,7 @@ import { Cascader, DatePicker, Image, InputNumber, Input, Select, Upload, messag
|
|
|
3
3
|
import { EyeOutlined, DeleteOutlined, CloseOutlined, PlusSquareOutlined, MinusCircleFilled, PlusCircleFilled, CopyOutlined, CloseCircleOutlined, CaretUpOutlined, UpOutlined, DownOutlined, PlusOutlined, VideoCameraTwoTone } from '@ant-design/icons';
|
|
4
4
|
import request, { extend as extend$1 } from 'umi-request';
|
|
5
5
|
import { CopyToClipboard } from 'react-copy-to-clipboard';
|
|
6
|
-
import { AddressData, BsAddressData, WdtAddressData, GyAddressData, JstAddressData, request as request$1, ExpressData, isNull, imgResize, uuid, servers, columnsGoodsList, LogisticsAddressData, SendDataCenter, hasAddNullComponent, SUBMIT_TIME_ID, UPGRADE_TIME_ID, FINAL_TIME_ID, CUSTOM_TIME_ID, useStatus, finalFormData, transformList, dataSourceTrans, DATA_SPLIT_COMPONENT_FIELDS_MAP, findLabelBySelectValue, BS_E3_BOOLEAN_STATUS_MAP, filterWdtOrders, WDT_ORDER_TYPE_MAP, tradeStatusMap, filterBsE3Orders, filterGyOrders, GY_DELIVERY_STATE_MAPPING, filterJstOrders, filterJyOrders, JY_ORDER_TYPE_MAP, JY_ORDER_STATUS_MAP, filterJkyOrders, JKY_ORDER_TYPE_MAP, JKY_ORDER_STATUS_MAP, filterKmOrders, getSystemShowHead, getIsPlatformCodesIncludeOrderNos, BS_SYSTEM_ORDER_CONFIG, KM_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, JST_SYSTEM_ORDER_CONFIG, JY_SYSTEM_ORDER_CONFIG, JKY_SYSTEM_ORDER_CONFIG, WDT_RETURN_BILL_NO_CONFIG, updateOrderSubFormGoodsHandle, updateWlnGoodsHandle, updateWdtGoodsHandle, updateBsE3GoodsHandle, updateGyGoodsHandle, updateJstGoodsHandle, updateKmGoodsHandle, updateJyGoodsHandle, updateJkyGoodsHandle, updateWdtAftersaleGoodsHandle, jstMergeIdenticalGoods, msgTypeCh, pushGyLog, skxSystemOrderBackValues, skxReturnSystemOrderBackValues, formatTrade, updateSkxGoodsHandle, formatReturnTrade, updateSkxReturnGoodsHandle } from '@kmkf-fe-packages/kmkf-utils';
|
|
6
|
+
import { AddressData, BsAddressData, WdtAddressData, GyAddressData, JstAddressData, request as request$1, ExpressData, isNull, imgResize, uuid, servers, columnsGoodsList, LogisticsAddressData, SendDataCenter, kmSkuTypeMap, hasAddNullComponent, SUBMIT_TIME_ID, UPGRADE_TIME_ID, FINAL_TIME_ID, CUSTOM_TIME_ID, useStatus, finalFormData, transformList, dataSourceTrans, DATA_SPLIT_COMPONENT_FIELDS_MAP, findLabelBySelectValue, BS_E3_BOOLEAN_STATUS_MAP, filterWdtOrders, WDT_ORDER_TYPE_MAP, tradeStatusMap, filterBsE3Orders, filterGyOrders, GY_DELIVERY_STATE_MAPPING, filterJstOrders, filterJyOrders, JY_ORDER_TYPE_MAP, JY_ORDER_STATUS_MAP, filterJkyOrders, JKY_ORDER_FROM_MAP, JKY_ORDER_TYPE_MAP, JKY_ORDER_STATUS_MAP, filterKmOrders, getSystemShowHead, getIsPlatformCodesIncludeOrderNos, BS_SYSTEM_ORDER_CONFIG, KM_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, JST_SYSTEM_ORDER_CONFIG, JY_SYSTEM_ORDER_CONFIG, JKY_SYSTEM_ORDER_CONFIG, WDT_RETURN_BILL_NO_CONFIG, updateOrderSubFormGoodsHandle, updateWlnGoodsHandle, updateWdtGoodsHandle, updateBsE3GoodsHandle, updateGyGoodsHandle, updateJstGoodsHandle, updateKmGoodsHandle, updateJyGoodsHandle, updateJkyGoodsHandle, updateWdtAftersaleGoodsHandle, jstMergeIdenticalGoods, msgTypeCh, pushGyLog, skxSystemOrderBackValues, skxReturnSystemOrderBackValues, formatTrade, updateSkxGoodsHandle, formatReturnTrade, updateSkxReturnGoodsHandle } from '@kmkf-fe-packages/kmkf-utils';
|
|
7
7
|
import every from 'lodash/every';
|
|
8
8
|
import maxBy from 'lodash/maxBy';
|
|
9
9
|
import { debounce, isNaN as isNaN$1, isNumber as isNumber$1, uniqBy, cloneDeep, difference, differenceWith, isBoolean, isEqual, takeRight, reject as reject$1, intersection, isEmpty } from 'lodash';
|
|
@@ -7759,7 +7759,9 @@ var Province = function Province(props) {
|
|
|
7759
7759
|
gy: GyAddressData.getInstance(),
|
|
7760
7760
|
km: AddressData.getInstance(),
|
|
7761
7761
|
jst: JstAddressData.getInstance()
|
|
7762
|
+
// jky: JkyAddressData.getInstance(),
|
|
7762
7763
|
};
|
|
7764
|
+
|
|
7763
7765
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Cascader, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
7764
7766
|
options: ((_mapping$type = mapping[type]) === null || _mapping$type === void 0 ? void 0 : _mapping$type.addressOptions) || [],
|
|
7765
7767
|
style: {
|
|
@@ -7995,13 +7997,14 @@ function ApaasPosting(props) {
|
|
|
7995
7997
|
});
|
|
7996
7998
|
}
|
|
7997
7999
|
|
|
7998
|
-
var _excluded$b = ["value", "onChange", "platformType", "type"];
|
|
8000
|
+
var _excluded$b = ["value", "onChange", "platformType", "type", "placement"];
|
|
7999
8001
|
function ApaasLogistics(props) {
|
|
8000
8002
|
var value = props.value,
|
|
8001
8003
|
onChange = props.onChange,
|
|
8002
8004
|
platformType = props.platformType,
|
|
8003
8005
|
_props$type = props.type,
|
|
8004
8006
|
type = _props$type === void 0 ? 'select' : _props$type,
|
|
8007
|
+
placement = props.placement,
|
|
8005
8008
|
other = _objectWithoutProperties(props, _excluded$b);
|
|
8006
8009
|
var _useState = useState([]),
|
|
8007
8010
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -8039,12 +8042,13 @@ function ApaasLogistics(props) {
|
|
|
8039
8042
|
return type === 'input' ? /*#__PURE__*/React.createElement(Input, _objectSpread2(_objectSpread2({}, other), {}, {
|
|
8040
8043
|
value: value,
|
|
8041
8044
|
onChange: handleInputChange
|
|
8042
|
-
})) : /*#__PURE__*/React.createElement(Select, _objectSpread2(
|
|
8045
|
+
})) : /*#__PURE__*/React.createElement(Select, _objectSpread2({
|
|
8043
8046
|
value: value,
|
|
8044
8047
|
onChange: onChange,
|
|
8045
8048
|
options: option,
|
|
8046
|
-
virtual: true
|
|
8047
|
-
|
|
8049
|
+
virtual: true,
|
|
8050
|
+
placement: placement
|
|
8051
|
+
}, other));
|
|
8048
8052
|
}
|
|
8049
8053
|
|
|
8050
8054
|
var _excluded$c = ["label", "name", "extra", "required", "rules", "initialValue"];
|
|
@@ -8605,7 +8609,8 @@ var processSceneStatus = function processSceneStatus(getValue) {
|
|
|
8605
8609
|
WAREHOUSING_STATUS: 'inStockStatusItemList',
|
|
8606
8610
|
BS_E3_WAREHOUSING_STATUS: 'bsE3InStockStatusItemList',
|
|
8607
8611
|
MSG_STATUS: 'msgStatusValues',
|
|
8608
|
-
WDT_WAREHOUSING_STATUS: 'wdtInStockStatusItemList'
|
|
8612
|
+
WDT_WAREHOUSING_STATUS: 'wdtInStockStatusItemList',
|
|
8613
|
+
JKY_WAREHOUSING_STATUS: 'jkyInStockStatusItemList'
|
|
8609
8614
|
};
|
|
8610
8615
|
return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(STATUS_LIST_MAP[nex.workOrderComponentType])), []));
|
|
8611
8616
|
};
|
|
@@ -9360,6 +9365,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
|
|
|
9360
9365
|
BS_E3_WAREHOUSING_STATUS: processSceneStatus,
|
|
9361
9366
|
MSG_STATUS: processSceneStatus,
|
|
9362
9367
|
WDT_WAREHOUSING_STATUS: processSceneStatus,
|
|
9368
|
+
JKY_WAREHOUSING_STATUS: processSceneStatus,
|
|
9363
9369
|
BS_LOGISTICS: processErpLogistics,
|
|
9364
9370
|
WLN_LOGISTICS: processErpLogistics,
|
|
9365
9371
|
WDT_LOGISTICS: processErpLogistics,
|
|
@@ -9989,12 +9995,21 @@ var EditSplitRenderMap = {
|
|
|
9989
9995
|
updateHandle = _ref17.updateHandle,
|
|
9990
9996
|
disabled = _ref17.disabled;
|
|
9991
9997
|
return /*#__PURE__*/React.createElement(ApaasLogistics, {
|
|
9998
|
+
getPopupContainer: function getPopupContainer() {
|
|
9999
|
+
return document.getElementById('subform');
|
|
10000
|
+
},
|
|
9992
10001
|
value: val,
|
|
9993
10002
|
allowClear: true,
|
|
10003
|
+
showSearch: true,
|
|
9994
10004
|
onChange: function onChange(e) {
|
|
9995
10005
|
return updateHandle(e, index, t.key);
|
|
9996
10006
|
},
|
|
9997
|
-
disabled: t.isEdit || disabled
|
|
10007
|
+
disabled: t.isEdit || disabled,
|
|
10008
|
+
filterOption: function filterOption(input, option) {
|
|
10009
|
+
return option.label.includes(input);
|
|
10010
|
+
},
|
|
10011
|
+
placement: "topLeft",
|
|
10012
|
+
listHeight: 120
|
|
9998
10013
|
});
|
|
9999
10014
|
},
|
|
10000
10015
|
//退货物流-物流公司
|
|
@@ -10005,12 +10020,21 @@ var EditSplitRenderMap = {
|
|
|
10005
10020
|
updateHandle = _ref18.updateHandle,
|
|
10006
10021
|
disabled = _ref18.disabled;
|
|
10007
10022
|
return /*#__PURE__*/React.createElement(ApaasLogistics, {
|
|
10023
|
+
getPopupContainer: function getPopupContainer() {
|
|
10024
|
+
return document.getElementById('subform');
|
|
10025
|
+
},
|
|
10008
10026
|
value: val,
|
|
10009
10027
|
allowClear: true,
|
|
10028
|
+
showSearch: true,
|
|
10010
10029
|
onChange: function onChange(e) {
|
|
10011
10030
|
return updateHandle(e, index, t.key);
|
|
10012
10031
|
},
|
|
10013
|
-
disabled: t.isEdit || disabled
|
|
10032
|
+
disabled: t.isEdit || disabled,
|
|
10033
|
+
filterOption: function filterOption(input, option) {
|
|
10034
|
+
return option.label.includes(input);
|
|
10035
|
+
},
|
|
10036
|
+
placement: "topLeft",
|
|
10037
|
+
listHeight: 120
|
|
10014
10038
|
});
|
|
10015
10039
|
}
|
|
10016
10040
|
};
|
|
@@ -10479,7 +10503,11 @@ var SubForm = function SubForm(props) {
|
|
|
10479
10503
|
});
|
|
10480
10504
|
}, [inputValue]);
|
|
10481
10505
|
var handleOpenChange = function handleOpenChange(newOpen) {
|
|
10482
|
-
|
|
10506
|
+
if (!['jbCFrJV4m7_trajectoryCompany', '0qFEv9GEyd_returnLogisticsCompany'].includes(selectKey)) {
|
|
10507
|
+
setOpen(newOpen);
|
|
10508
|
+
} else {
|
|
10509
|
+
setOpen(false);
|
|
10510
|
+
}
|
|
10483
10511
|
};
|
|
10484
10512
|
var onChangeInput = useCallback(debounce(function (val) {
|
|
10485
10513
|
setInputValue(val);
|
|
@@ -10567,6 +10595,9 @@ var SubForm = function SubForm(props) {
|
|
|
10567
10595
|
visible: open,
|
|
10568
10596
|
onVisibleChange: handleOpenChange
|
|
10569
10597
|
}, ['0qFEv9GEyd_returnLogisticsCompany', 'jbCFrJV4m7_trajectoryCompany'].includes(selectKey) ? /*#__PURE__*/React.createElement(ApaasLogistics, {
|
|
10598
|
+
getPopupContainer: function getPopupContainer() {
|
|
10599
|
+
return document.getElementById('subform');
|
|
10600
|
+
},
|
|
10570
10601
|
value: undefined,
|
|
10571
10602
|
onChange: function onChange(val) {
|
|
10572
10603
|
onChangeInput(val);
|
|
@@ -10579,7 +10610,9 @@ var SubForm = function SubForm(props) {
|
|
|
10579
10610
|
},
|
|
10580
10611
|
filterOption: function filterOption(input, option) {
|
|
10581
10612
|
return option.label.includes(input);
|
|
10582
|
-
}
|
|
10613
|
+
},
|
|
10614
|
+
placement: "topLeft",
|
|
10615
|
+
listHeight: 120
|
|
10583
10616
|
}) : /*#__PURE__*/React.createElement(Input, {
|
|
10584
10617
|
placeholder: "\u8F93\u5165\u5173\u952E\u8BCD\u67E5\u8BE2",
|
|
10585
10618
|
allowClear: true,
|
|
@@ -12098,7 +12131,7 @@ var ChooseBaby = function ChooseBaby(props) {
|
|
|
12098
12131
|
}));
|
|
12099
12132
|
};
|
|
12100
12133
|
|
|
12101
|
-
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";
|
|
12134
|
+
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";
|
|
12102
12135
|
styleInject(css_248z$7);
|
|
12103
12136
|
|
|
12104
12137
|
var GoodItem = function GoodItem(props) {
|
|
@@ -12427,13 +12460,22 @@ var GoodItem = function GoodItem(props) {
|
|
|
12427
12460
|
var hasAttr = useMemo(function () {
|
|
12428
12461
|
return hasPic ? headerList.length > 1 : headerList.length > 0;
|
|
12429
12462
|
}, [hasPic, headerList]);
|
|
12463
|
+
var clearAll = function clearAll() {
|
|
12464
|
+
onChange === null || onChange === void 0 ? void 0 : onChange({
|
|
12465
|
+
shopId: shopId,
|
|
12466
|
+
imgList: []
|
|
12467
|
+
});
|
|
12468
|
+
};
|
|
12430
12469
|
return /*#__PURE__*/React.createElement("div", null, imgList.length === 0 ? /*#__PURE__*/React.createElement("p", {
|
|
12431
12470
|
className: "goods-title"
|
|
12432
12471
|
}, "\u6700\u591A\u6DFB\u52A0", maxLength, "\u4E2A\u5B9D\u8D1D") : /*#__PURE__*/React.createElement("p", {
|
|
12433
12472
|
className: "goods-uploaded-state"
|
|
12434
12473
|
}, "\u5DF2\u6DFB\u52A0", /*#__PURE__*/React.createElement("span", {
|
|
12435
12474
|
className: "goods-uploaded-count"
|
|
12436
|
-
}, imgList.length), "/", maxLength,
|
|
12475
|
+
}, imgList.length), "/", maxLength, /*#__PURE__*/React.createElement("span", {
|
|
12476
|
+
className: 'clear-all',
|
|
12477
|
+
onClick: clearAll
|
|
12478
|
+
}, "\u6E05\u7A7A")), /*#__PURE__*/React.createElement("div", {
|
|
12437
12479
|
ref: boxRef,
|
|
12438
12480
|
id: "goods-wrap",
|
|
12439
12481
|
className: "goodsBox goodsBox-item-horizontal--box".concat(isSingleRow ? ' single-row' : '')
|
|
@@ -15087,12 +15129,7 @@ var kmColumns = [{
|
|
|
15087
15129
|
ellipsis: true,
|
|
15088
15130
|
width: 150,
|
|
15089
15131
|
render: function render(type) {
|
|
15090
|
-
return renderTextEllipsis(
|
|
15091
|
-
0: '普通',
|
|
15092
|
-
1: 'sku套件',
|
|
15093
|
-
2: '纯套件',
|
|
15094
|
-
3: '包材商品'
|
|
15095
|
-
}[type] || type);
|
|
15132
|
+
return renderTextEllipsis((kmSkuTypeMap === null || kmSkuTypeMap === void 0 ? void 0 : kmSkuTypeMap[type]) || type);
|
|
15096
15133
|
}
|
|
15097
15134
|
}, {
|
|
15098
15135
|
dataIndex: 'specName',
|
|
@@ -15325,34 +15362,75 @@ var jyColumns = [{
|
|
|
15325
15362
|
}
|
|
15326
15363
|
}];
|
|
15327
15364
|
|
|
15365
|
+
var getYesOrNo$2 = function getYesOrNo(val) {
|
|
15366
|
+
if (!isBoolean(val)) return null;
|
|
15367
|
+
return val ? '是' : '否';
|
|
15368
|
+
};
|
|
15328
15369
|
var jkyColumns = [{
|
|
15329
|
-
dataIndex: '
|
|
15330
|
-
title: "\u8D27\u54C1\
|
|
15370
|
+
dataIndex: 'goodName',
|
|
15371
|
+
title: "\u8D27\u54C1\u540D\u79F0",
|
|
15331
15372
|
align: 'center',
|
|
15332
15373
|
ellipsis: true,
|
|
15333
15374
|
width: 150,
|
|
15334
15375
|
render: renderTextEllipsis
|
|
15335
15376
|
}, {
|
|
15336
|
-
dataIndex: '
|
|
15337
|
-
title: "\u8D27\u54C1\
|
|
15377
|
+
dataIndex: 'goodNo',
|
|
15378
|
+
title: "\u8D27\u54C1\u7F16\u53F7",
|
|
15338
15379
|
align: 'center',
|
|
15339
15380
|
ellipsis: true,
|
|
15340
15381
|
width: 150,
|
|
15341
15382
|
render: renderTextEllipsis
|
|
15342
15383
|
}, {
|
|
15343
|
-
dataIndex: '
|
|
15384
|
+
dataIndex: 'goodId',
|
|
15344
15385
|
title: "\u8D27\u54C1ID",
|
|
15345
15386
|
align: 'center',
|
|
15346
15387
|
ellipsis: true,
|
|
15347
15388
|
width: 150,
|
|
15348
15389
|
render: renderTextEllipsis
|
|
15349
15390
|
}, {
|
|
15350
|
-
dataIndex: '
|
|
15391
|
+
dataIndex: 'goodPicUrl',
|
|
15392
|
+
title: "\u8D27\u54C1\u4E3B\u56FE",
|
|
15393
|
+
align: 'center',
|
|
15394
|
+
ellipsis: true,
|
|
15395
|
+
width: 150,
|
|
15396
|
+
render: function render(picUrl) {
|
|
15397
|
+
return /*#__PURE__*/React.createElement("img", {
|
|
15398
|
+
style: {
|
|
15399
|
+
width: '30px',
|
|
15400
|
+
height: '30px',
|
|
15401
|
+
objectFit: 'contain'
|
|
15402
|
+
},
|
|
15403
|
+
src: picUrl
|
|
15404
|
+
});
|
|
15405
|
+
}
|
|
15406
|
+
}, {
|
|
15407
|
+
dataIndex: 'goodShortName',
|
|
15408
|
+
title: "\u8D27\u54C1\u522B\u540D",
|
|
15409
|
+
align: 'center',
|
|
15410
|
+
ellipsis: true,
|
|
15411
|
+
width: 150,
|
|
15412
|
+
render: renderTextEllipsis
|
|
15413
|
+
}, {
|
|
15414
|
+
dataIndex: 'specBarcode',
|
|
15351
15415
|
title: "\u8D27\u54C1\u6761\u7801",
|
|
15352
15416
|
align: 'center',
|
|
15353
15417
|
ellipsis: true,
|
|
15354
15418
|
width: 150,
|
|
15355
15419
|
render: renderTextEllipsis
|
|
15420
|
+
}, {
|
|
15421
|
+
dataIndex: 'categoryName',
|
|
15422
|
+
title: "\u8D27\u54C1\u7C7B\u522B",
|
|
15423
|
+
align: 'center',
|
|
15424
|
+
ellipsis: true,
|
|
15425
|
+
width: 150,
|
|
15426
|
+
render: renderTextEllipsis
|
|
15427
|
+
}, {
|
|
15428
|
+
dataIndex: 'brandName',
|
|
15429
|
+
title: "\u54C1\u724C",
|
|
15430
|
+
align: 'center',
|
|
15431
|
+
ellipsis: true,
|
|
15432
|
+
width: 200,
|
|
15433
|
+
render: renderTextEllipsis
|
|
15356
15434
|
}, {
|
|
15357
15435
|
dataIndex: 'specName',
|
|
15358
15436
|
title: "\u89C4\u683C\u540D\u79F0",
|
|
@@ -15368,7 +15446,14 @@ var jkyColumns = [{
|
|
|
15368
15446
|
width: 150,
|
|
15369
15447
|
render: renderTextEllipsis
|
|
15370
15448
|
}, {
|
|
15371
|
-
dataIndex: '
|
|
15449
|
+
dataIndex: 'specNo',
|
|
15450
|
+
title: "\u89C4\u683C\u7F16\u7801",
|
|
15451
|
+
align: 'center',
|
|
15452
|
+
ellipsis: true,
|
|
15453
|
+
width: 150,
|
|
15454
|
+
render: renderTextEllipsis
|
|
15455
|
+
}, {
|
|
15456
|
+
dataIndex: 'specImgUrl',
|
|
15372
15457
|
title: "\u89C4\u683C\u56FE\u7247",
|
|
15373
15458
|
align: 'center',
|
|
15374
15459
|
ellipsis: true,
|
|
@@ -15384,162 +15469,78 @@ var jkyColumns = [{
|
|
|
15384
15469
|
});
|
|
15385
15470
|
}
|
|
15386
15471
|
}, {
|
|
15387
|
-
dataIndex: '
|
|
15388
|
-
title: "\
|
|
15389
|
-
width: 100,
|
|
15390
|
-
render: function render(val) {
|
|
15391
|
-
return /*#__PURE__*/React.createElement("span", null, val);
|
|
15392
|
-
}
|
|
15393
|
-
}, {
|
|
15394
|
-
dataIndex: 'actualSendCount',
|
|
15395
|
-
title: "\u5B9E\u53D1\u6570\u91CF",
|
|
15396
|
-
width: 150,
|
|
15397
|
-
render: renderTextEllipsis
|
|
15398
|
-
}, {
|
|
15399
|
-
dataIndex: 'sellPrice',
|
|
15400
|
-
title: "\u5355\u4EF7",
|
|
15401
|
-
width: 150,
|
|
15402
|
-
render: function render(val) {
|
|
15403
|
-
return val || val === 0 ? Number(val).toFixed(2) : '';
|
|
15404
|
-
}
|
|
15405
|
-
}, {
|
|
15406
|
-
dataIndex: 'sellTotal',
|
|
15407
|
-
title: "\u91D1\u989D",
|
|
15408
|
-
width: 150
|
|
15409
|
-
}, {
|
|
15410
|
-
dataIndex: 'discountTotal',
|
|
15411
|
-
title: "\u62B5\u6263\u91D1\u989D",
|
|
15412
|
-
width: 150
|
|
15413
|
-
}, {
|
|
15414
|
-
dataIndex: 'shareFavourableFee',
|
|
15415
|
-
title: "\u5206\u644A\u91D1\u989D",
|
|
15416
|
-
width: 150
|
|
15417
|
-
}, {
|
|
15418
|
-
dataIndex: 'shareFavourableAfterFee',
|
|
15419
|
-
title: "\u5206\u644A\u540E\u91D1\u989D",
|
|
15420
|
-
width: 150
|
|
15421
|
-
}, {
|
|
15422
|
-
dataIndex: 'customerPrice',
|
|
15423
|
-
title: "\u7EC8\u7AEF\u9500\u552E\u5355\u4EF7",
|
|
15424
|
-
width: 150
|
|
15425
|
-
}, {
|
|
15426
|
-
dataIndex: 'customerTotal',
|
|
15427
|
-
title: "\u7EC8\u7AEF\u9500\u552E\u91D1\u989D",
|
|
15428
|
-
width: 150
|
|
15429
|
-
}, {
|
|
15430
|
-
dataIndex: 'divideSellTotal',
|
|
15431
|
-
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
15432
|
-
width: 150
|
|
15433
|
-
}, {
|
|
15434
|
-
dataIndex: 'isGift',
|
|
15435
|
-
title: "\u662F\u5426\u8D60\u54C1",
|
|
15436
|
-
width: 150,
|
|
15437
|
-
render: function render(val) {
|
|
15438
|
-
return /*#__PURE__*/React.createElement("span", null, val === '1' ? '是' : '否');
|
|
15439
|
-
}
|
|
15440
|
-
}, {
|
|
15441
|
-
dataIndex: 'isFit',
|
|
15442
|
-
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
15443
|
-
width: 150,
|
|
15444
|
-
render: function render(val) {
|
|
15445
|
-
return /*#__PURE__*/React.createElement("span", null, val === '1' ? '是' : '否');
|
|
15446
|
-
}
|
|
15447
|
-
}, {
|
|
15448
|
-
dataIndex: 'isPresell',
|
|
15449
|
-
title: "\u662F\u5426\u9884\u552E\u8D27\u54C1",
|
|
15450
|
-
width: 150,
|
|
15451
|
-
render: function render(val) {
|
|
15452
|
-
return /*#__PURE__*/React.createElement("span", null, val === '1' ? '是' : '否');
|
|
15453
|
-
}
|
|
15454
|
-
}, {
|
|
15455
|
-
dataIndex: 'brandName',
|
|
15456
|
-
title: "\u54C1\u724C",
|
|
15472
|
+
dataIndex: 'colorName',
|
|
15473
|
+
title: "\u989C\u8272\u540D\u79F0",
|
|
15457
15474
|
align: 'center',
|
|
15458
15475
|
ellipsis: true,
|
|
15459
|
-
width:
|
|
15476
|
+
width: 150,
|
|
15460
15477
|
render: renderTextEllipsis
|
|
15461
15478
|
}, {
|
|
15462
|
-
dataIndex: '
|
|
15463
|
-
title: "\
|
|
15479
|
+
dataIndex: 'colorCode',
|
|
15480
|
+
title: "\u989C\u8272\u4EE3\u7801",
|
|
15464
15481
|
align: 'center',
|
|
15465
15482
|
ellipsis: true,
|
|
15466
15483
|
width: 150,
|
|
15467
15484
|
render: renderTextEllipsis
|
|
15468
15485
|
}, {
|
|
15469
|
-
dataIndex: '
|
|
15470
|
-
title: "\
|
|
15486
|
+
dataIndex: 'sizeName',
|
|
15487
|
+
title: "\u5C3A\u7801\u540D\u79F0",
|
|
15471
15488
|
align: 'center',
|
|
15472
15489
|
ellipsis: true,
|
|
15473
|
-
width:
|
|
15490
|
+
width: 150,
|
|
15474
15491
|
render: renderTextEllipsis
|
|
15475
15492
|
}, {
|
|
15476
|
-
dataIndex: '
|
|
15477
|
-
title: "\
|
|
15493
|
+
dataIndex: 'sizeCode',
|
|
15494
|
+
title: "\u5C3A\u7801\u4EE3\u7801",
|
|
15478
15495
|
align: 'center',
|
|
15479
15496
|
ellipsis: true,
|
|
15480
|
-
width:
|
|
15497
|
+
width: 150,
|
|
15481
15498
|
render: renderTextEllipsis
|
|
15482
15499
|
}, {
|
|
15483
|
-
dataIndex: '
|
|
15484
|
-
title: "\
|
|
15500
|
+
dataIndex: 'marketPrice',
|
|
15501
|
+
title: "\u5E02\u573A\u4EF7",
|
|
15485
15502
|
align: 'center',
|
|
15486
15503
|
ellipsis: true,
|
|
15487
|
-
width:
|
|
15488
|
-
render: renderTextEllipsis
|
|
15489
|
-
}, {
|
|
15490
|
-
dataIndex: 'tradeGoodsName',
|
|
15491
|
-
title: "\u4EA4\u6613\u8D27\u54C1\u540D\u79F0",
|
|
15492
|
-
ellipsis: true,
|
|
15493
|
-
width: 250,
|
|
15494
|
-
render: renderTextEllipsis
|
|
15495
|
-
}, {
|
|
15496
|
-
dataIndex: 'tradeGoodsSpec',
|
|
15497
|
-
title: "\u4EA4\u6613\u89C4\u683C\u540D\u79F0",
|
|
15498
|
-
ellipsis: true,
|
|
15499
|
-
width: 250,
|
|
15500
|
-
render: renderTextEllipsis
|
|
15501
|
-
}, {
|
|
15502
|
-
dataIndex: 'sourceSubtradeNo',
|
|
15503
|
-
title: "\u7F51\u5E97\u5B50\u8BA2\u5355\u53F7",
|
|
15504
|
-
ellipsis: true,
|
|
15505
|
-
width: 250,
|
|
15506
|
-
render: renderTextEllipsis
|
|
15507
|
-
}, {
|
|
15508
|
-
dataIndex: 'platGoodsId',
|
|
15509
|
-
title: "\u5E73\u53F0\u5546\u54C1ID",
|
|
15510
|
-
ellipsis: true,
|
|
15511
|
-
width: 250,
|
|
15504
|
+
width: 150,
|
|
15512
15505
|
render: renderTextEllipsis
|
|
15513
15506
|
}, {
|
|
15514
|
-
dataIndex: '
|
|
15515
|
-
title: "\
|
|
15507
|
+
dataIndex: 'retailPrice',
|
|
15508
|
+
title: "\u96F6\u552E\u4EF7",
|
|
15509
|
+
align: 'center',
|
|
15516
15510
|
ellipsis: true,
|
|
15517
|
-
width:
|
|
15511
|
+
width: 150,
|
|
15518
15512
|
render: renderTextEllipsis
|
|
15519
15513
|
}, {
|
|
15520
|
-
dataIndex: '
|
|
15521
|
-
title: "\
|
|
15514
|
+
dataIndex: 'memberPrice',
|
|
15515
|
+
title: "\u4F1A\u5458\u4EF7",
|
|
15516
|
+
align: 'center',
|
|
15522
15517
|
ellipsis: true,
|
|
15523
|
-
width:
|
|
15518
|
+
width: 150,
|
|
15524
15519
|
render: renderTextEllipsis
|
|
15525
15520
|
}, {
|
|
15526
|
-
dataIndex: '
|
|
15527
|
-
title: "\
|
|
15521
|
+
dataIndex: 'costPrice',
|
|
15522
|
+
title: "\u6210\u672C\u4EF7",
|
|
15523
|
+
align: 'center',
|
|
15528
15524
|
ellipsis: true,
|
|
15529
|
-
width:
|
|
15525
|
+
width: 150,
|
|
15530
15526
|
render: renderTextEllipsis
|
|
15531
15527
|
}, {
|
|
15532
|
-
dataIndex: '
|
|
15533
|
-
title: "\
|
|
15528
|
+
dataIndex: 'isVirtual',
|
|
15529
|
+
title: "\u662F\u5426\u865A\u62DF\u5546\u54C1",
|
|
15530
|
+
align: 'center',
|
|
15534
15531
|
ellipsis: true,
|
|
15535
|
-
width:
|
|
15536
|
-
render:
|
|
15532
|
+
width: 150,
|
|
15533
|
+
render: function render(val) {
|
|
15534
|
+
return renderTextEllipsis(getYesOrNo$2(val));
|
|
15535
|
+
}
|
|
15537
15536
|
}, {
|
|
15538
|
-
dataIndex: '
|
|
15539
|
-
title: "\
|
|
15537
|
+
dataIndex: 'skuType',
|
|
15538
|
+
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
15540
15539
|
ellipsis: true,
|
|
15541
|
-
width:
|
|
15542
|
-
render:
|
|
15540
|
+
width: 150,
|
|
15541
|
+
render: function render(val) {
|
|
15542
|
+
return renderTextEllipsis(getYesOrNo$2(val === 'combine'));
|
|
15543
|
+
}
|
|
15543
15544
|
}];
|
|
15544
15545
|
|
|
15545
15546
|
var getColumnsMap = function getColumnsMap() {
|
|
@@ -18782,13 +18783,15 @@ var JyGoodsModal$1 = /*#__PURE__*/forwardRef(JyGoodsModal);
|
|
|
18782
18783
|
var getTableData$6 = function getTableData(_ref, formData) {
|
|
18783
18784
|
var current = _ref.current,
|
|
18784
18785
|
pageSize = _ref.pageSize;
|
|
18786
|
+
var conditionList = transformFormData(formData);
|
|
18785
18787
|
return extendRequest('/qy/gdfw/product/product/page', {
|
|
18786
18788
|
method: 'post',
|
|
18787
|
-
data:
|
|
18789
|
+
data: {
|
|
18788
18790
|
pageSize: pageSize,
|
|
18789
18791
|
pageNo: current,
|
|
18790
|
-
platform: '
|
|
18791
|
-
|
|
18792
|
+
platform: 'JKY_ERP',
|
|
18793
|
+
conditionList: conditionList
|
|
18794
|
+
}
|
|
18792
18795
|
}).then(function (res) {
|
|
18793
18796
|
var _res$data = res.data,
|
|
18794
18797
|
_res$data$productSkuL = _res$data.productSkuList,
|
|
@@ -18811,13 +18814,15 @@ var searchFormData$5 = [{
|
|
|
18811
18814
|
}, {
|
|
18812
18815
|
label: '规格编码',
|
|
18813
18816
|
name: 'skuCode',
|
|
18814
|
-
dataIndex: 'specNo'
|
|
18817
|
+
dataIndex: 'specNo',
|
|
18818
|
+
type: 'optionalInput'
|
|
18815
18819
|
}, {
|
|
18816
|
-
label: '
|
|
18820
|
+
label: '货品名称',
|
|
18817
18821
|
name: 'goodName'
|
|
18818
18822
|
}, {
|
|
18819
|
-
label: '
|
|
18820
|
-
name: 'goodNo'
|
|
18823
|
+
label: '货品编码',
|
|
18824
|
+
name: 'goodNo',
|
|
18825
|
+
type: 'optionalInput'
|
|
18821
18826
|
}];
|
|
18822
18827
|
var GoodList$6 = function GoodList(props, ref) {
|
|
18823
18828
|
var _useState = useState([]),
|
|
@@ -20335,7 +20340,7 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
20335
20340
|
};
|
|
20336
20341
|
};
|
|
20337
20342
|
|
|
20338
|
-
var getYesOrNo$
|
|
20343
|
+
var getYesOrNo$3 = function getYesOrNo(val) {
|
|
20339
20344
|
if (isNull(val)) return null;
|
|
20340
20345
|
return val ? '是' : '否';
|
|
20341
20346
|
};
|
|
@@ -20486,7 +20491,7 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
20486
20491
|
label: '否',
|
|
20487
20492
|
value: false
|
|
20488
20493
|
}]
|
|
20489
|
-
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$
|
|
20494
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$3(val));
|
|
20490
20495
|
},
|
|
20491
20496
|
width: 100
|
|
20492
20497
|
}]
|
|
@@ -20498,7 +20503,7 @@ var isNumberOrNumberString$1 = function isNumberOrNumberString(value) {
|
|
|
20498
20503
|
if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
|
|
20499
20504
|
return false;
|
|
20500
20505
|
};
|
|
20501
|
-
var getYesOrNo$
|
|
20506
|
+
var getYesOrNo$4 = function getYesOrNo(val) {
|
|
20502
20507
|
if (isNull(val)) return null;
|
|
20503
20508
|
return val ? '是' : '否';
|
|
20504
20509
|
};
|
|
@@ -20613,7 +20618,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
20613
20618
|
title: "\u662F\u5426\u53D6\u6D88",
|
|
20614
20619
|
width: 150,
|
|
20615
20620
|
render: function render(val) {
|
|
20616
|
-
return /*#__PURE__*/React.createElement("span", null, getYesOrNo$
|
|
20621
|
+
return /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
|
|
20617
20622
|
}
|
|
20618
20623
|
}, {
|
|
20619
20624
|
dataIndex: 'isGift',
|
|
@@ -20632,7 +20637,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
20632
20637
|
label: '否',
|
|
20633
20638
|
value: 0
|
|
20634
20639
|
}]
|
|
20635
|
-
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$
|
|
20640
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
|
|
20636
20641
|
}
|
|
20637
20642
|
}, {
|
|
20638
20643
|
dataIndex: 'skuNote',
|
|
@@ -20758,7 +20763,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
20758
20763
|
label: '否',
|
|
20759
20764
|
value: 0
|
|
20760
20765
|
}]
|
|
20761
|
-
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$
|
|
20766
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
|
|
20762
20767
|
}
|
|
20763
20768
|
}].map(function (item) {
|
|
20764
20769
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
@@ -20887,7 +20892,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
20887
20892
|
label: '否',
|
|
20888
20893
|
value: 0
|
|
20889
20894
|
}]
|
|
20890
|
-
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$
|
|
20895
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
|
|
20891
20896
|
}
|
|
20892
20897
|
}].map(function (item) {
|
|
20893
20898
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
@@ -22425,7 +22430,7 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22425
22430
|
updateHandle = _ref.updateHandle,
|
|
22426
22431
|
updateDataHandle = _ref.updateDataHandle;
|
|
22427
22432
|
return {
|
|
22428
|
-
|
|
22433
|
+
//吉客云商品信息
|
|
22429
22434
|
JKY_GOODS: [{
|
|
22430
22435
|
dataIndex: 'goodsNo',
|
|
22431
22436
|
title: "\u8D27\u54C1\u7F16\u53F7",
|
|
@@ -22571,12 +22576,12 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22571
22576
|
},
|
|
22572
22577
|
options: [{
|
|
22573
22578
|
label: '是',
|
|
22574
|
-
value:
|
|
22579
|
+
value: 1
|
|
22575
22580
|
}, {
|
|
22576
22581
|
label: '否',
|
|
22577
|
-
value:
|
|
22582
|
+
value: 0
|
|
22578
22583
|
}]
|
|
22579
|
-
}) : /*#__PURE__*/React.createElement("span", null, val ===
|
|
22584
|
+
}) : /*#__PURE__*/React.createElement("span", null, val === 1 ? '是' : '否');
|
|
22580
22585
|
}
|
|
22581
22586
|
}, {
|
|
22582
22587
|
dataIndex: 'isFit',
|
|
@@ -22596,12 +22601,12 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22596
22601
|
},
|
|
22597
22602
|
options: [{
|
|
22598
22603
|
label: '是',
|
|
22599
|
-
value:
|
|
22604
|
+
value: 1
|
|
22600
22605
|
}, {
|
|
22601
22606
|
label: '否',
|
|
22602
|
-
value:
|
|
22607
|
+
value: 0
|
|
22603
22608
|
}]
|
|
22604
|
-
}) : /*#__PURE__*/React.createElement("span", null, val ===
|
|
22609
|
+
}) : /*#__PURE__*/React.createElement("span", null, val === 1 ? '是' : '否');
|
|
22605
22610
|
}
|
|
22606
22611
|
}, {
|
|
22607
22612
|
dataIndex: 'isPresell',
|
|
@@ -22723,7 +22728,7 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22723
22728
|
ellipsis: true
|
|
22724
22729
|
});
|
|
22725
22730
|
}),
|
|
22726
|
-
//
|
|
22731
|
+
// 吉客云补发商品信息
|
|
22727
22732
|
JKY_REISSUE_GOODS: [{
|
|
22728
22733
|
dataIndex: 'goodsNo',
|
|
22729
22734
|
title: "\u8D27\u54C1\u7F16\u53F7",
|
|
@@ -22794,7 +22799,7 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22794
22799
|
}
|
|
22795
22800
|
},
|
|
22796
22801
|
render: function render(val, record, index) {
|
|
22797
|
-
return
|
|
22802
|
+
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
22798
22803
|
style: {
|
|
22799
22804
|
width: 70
|
|
22800
22805
|
},
|
|
@@ -22814,7 +22819,7 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22814
22819
|
title: "\u5355\u4EF7",
|
|
22815
22820
|
width: 150,
|
|
22816
22821
|
render: function render(val, record, index) {
|
|
22817
|
-
return
|
|
22822
|
+
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
22818
22823
|
style: {
|
|
22819
22824
|
width: 130
|
|
22820
22825
|
},
|
|
@@ -22834,56 +22839,59 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22834
22839
|
title: "\u603B\u91D1\u989D",
|
|
22835
22840
|
width: 150,
|
|
22836
22841
|
render: function render(val, record, index) {
|
|
22837
|
-
|
|
22842
|
+
if ((typeof record.sellCount === 'number' || record.sellCount) && (typeof record.sellPrice === 'number' || record.sellPrice)) {
|
|
22843
|
+
return record.sellCount * record.sellPrice;
|
|
22844
|
+
}
|
|
22845
|
+
return '';
|
|
22838
22846
|
}
|
|
22839
22847
|
}, {
|
|
22840
22848
|
dataIndex: 'reason',
|
|
22841
22849
|
title: "\u9000\u6362\u539F\u56E0",
|
|
22842
22850
|
width: 250,
|
|
22843
22851
|
render: function render(val, record, index) {
|
|
22844
|
-
return /*#__PURE__*/React.createElement(ApaasInput, {
|
|
22852
|
+
return !disabled ? /*#__PURE__*/React.createElement(ApaasInput, {
|
|
22845
22853
|
onChange: function onChange(value) {
|
|
22846
22854
|
updateHandle(value, index, 'reason');
|
|
22847
22855
|
}
|
|
22848
|
-
});
|
|
22856
|
+
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
22849
22857
|
}
|
|
22850
22858
|
}, {
|
|
22851
22859
|
dataIndex: 'isGift',
|
|
22852
22860
|
title: "\u662F\u5426\u8D60\u54C1",
|
|
22853
22861
|
width: 150,
|
|
22854
22862
|
render: function render(val, record, index) {
|
|
22855
|
-
return
|
|
22863
|
+
return !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
22856
22864
|
value: val,
|
|
22857
22865
|
onChange: function onChange(value) {
|
|
22858
22866
|
updateHandle(value, index, 'isGift');
|
|
22859
22867
|
},
|
|
22860
22868
|
options: [{
|
|
22861
22869
|
label: '是',
|
|
22862
|
-
value:
|
|
22870
|
+
value: 1
|
|
22863
22871
|
}, {
|
|
22864
22872
|
label: '否',
|
|
22865
|
-
value:
|
|
22873
|
+
value: 0
|
|
22866
22874
|
}]
|
|
22867
|
-
}) : /*#__PURE__*/React.createElement("span", null, val ===
|
|
22875
|
+
}) : /*#__PURE__*/React.createElement("span", null, val === 1 ? '是' : '否');
|
|
22868
22876
|
}
|
|
22869
22877
|
}, {
|
|
22870
22878
|
dataIndex: 'isFit',
|
|
22871
22879
|
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
22872
22880
|
width: 150,
|
|
22873
22881
|
render: function render(val, record, index) {
|
|
22874
|
-
return
|
|
22882
|
+
return !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
22875
22883
|
value: val,
|
|
22876
22884
|
onChange: function onChange(value) {
|
|
22877
22885
|
updateHandle(value, index, 'isFit');
|
|
22878
22886
|
},
|
|
22879
22887
|
options: [{
|
|
22880
22888
|
label: '是',
|
|
22881
|
-
value:
|
|
22889
|
+
value: 1
|
|
22882
22890
|
}, {
|
|
22883
22891
|
label: '否',
|
|
22884
|
-
value:
|
|
22892
|
+
value: 0
|
|
22885
22893
|
}]
|
|
22886
|
-
}) : /*#__PURE__*/React.createElement("span", null, val ===
|
|
22894
|
+
}) : /*#__PURE__*/React.createElement("span", null, val === 1 ? '是' : '否');
|
|
22887
22895
|
}
|
|
22888
22896
|
}, {
|
|
22889
22897
|
dataIndex: 'brandName',
|
|
@@ -23267,6 +23275,13 @@ var processGoods$1 = function processGoods(_ref) {
|
|
|
23267
23275
|
canUpdateNumber: canUpdateNumber,
|
|
23268
23276
|
source: source
|
|
23269
23277
|
});
|
|
23278
|
+
} else if (isErpType.isJky(type)) {
|
|
23279
|
+
newList = processJkyGoods({
|
|
23280
|
+
list: list,
|
|
23281
|
+
type: type,
|
|
23282
|
+
canUpdateNumber: canUpdateNumber,
|
|
23283
|
+
source: source
|
|
23284
|
+
});
|
|
23270
23285
|
} else {
|
|
23271
23286
|
newList = processDefaultGoods({
|
|
23272
23287
|
list: list,
|
|
@@ -23315,11 +23330,45 @@ var processJyGoods = function processJyGoods(_ref2) {
|
|
|
23315
23330
|
});
|
|
23316
23331
|
});
|
|
23317
23332
|
};
|
|
23318
|
-
|
|
23319
|
-
var processWdtGoods$1 = function processWdtGoods(_ref3) {
|
|
23333
|
+
var processJkyGoods = function processJkyGoods(_ref3) {
|
|
23320
23334
|
var list = _ref3.list,
|
|
23321
|
-
type = _ref3.type,
|
|
23322
23335
|
canUpdateNumber = _ref3.canUpdateNumber;
|
|
23336
|
+
return list.map(function (item) {
|
|
23337
|
+
var goodName = item.goodName,
|
|
23338
|
+
goodNo = item.goodNo,
|
|
23339
|
+
goodId = item.goodId,
|
|
23340
|
+
specBarcode = item.specBarcode,
|
|
23341
|
+
retailPrice = item.retailPrice,
|
|
23342
|
+
isGift = item.isGift,
|
|
23343
|
+
skuType = item.skuType,
|
|
23344
|
+
specImgUrl = item.specImgUrl,
|
|
23345
|
+
categoryName = item.categoryName;
|
|
23346
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
23347
|
+
cateName: categoryName,
|
|
23348
|
+
goodsName: goodName,
|
|
23349
|
+
goodsNo: goodNo,
|
|
23350
|
+
goodsId: goodId,
|
|
23351
|
+
barcode: specBarcode,
|
|
23352
|
+
skuImgUrl: specImgUrl,
|
|
23353
|
+
combinationName: goodName,
|
|
23354
|
+
combinationCode: goodNo,
|
|
23355
|
+
isGift: isGift ? '1' : '0',
|
|
23356
|
+
isFit: skuType === 'combine' ? '1' : '0',
|
|
23357
|
+
uuid: uuid(),
|
|
23358
|
+
canDelete: true,
|
|
23359
|
+
sellCount: 1,
|
|
23360
|
+
sellPrice: retailPrice,
|
|
23361
|
+
sellTotal: (retailPrice * 1).toFixed(2),
|
|
23362
|
+
canEdit: true,
|
|
23363
|
+
canUpdateNumber: canUpdateNumber
|
|
23364
|
+
});
|
|
23365
|
+
});
|
|
23366
|
+
};
|
|
23367
|
+
// 处理不同类型的商品数据
|
|
23368
|
+
var processWdtGoods$1 = function processWdtGoods(_ref4) {
|
|
23369
|
+
var list = _ref4.list,
|
|
23370
|
+
type = _ref4.type,
|
|
23371
|
+
canUpdateNumber = _ref4.canUpdateNumber;
|
|
23323
23372
|
return list.map(function (item) {
|
|
23324
23373
|
var processedItem = _objectSpread2(_objectSpread2({}, item), {}, {
|
|
23325
23374
|
uuid: uuid(),
|
|
@@ -23337,9 +23386,9 @@ var processWdtGoods$1 = function processWdtGoods(_ref3) {
|
|
|
23337
23386
|
return processedItem;
|
|
23338
23387
|
});
|
|
23339
23388
|
};
|
|
23340
|
-
var processBsE3Goods$1 = function processBsE3Goods(
|
|
23341
|
-
var list =
|
|
23342
|
-
canUpdateNumber =
|
|
23389
|
+
var processBsE3Goods$1 = function processBsE3Goods(_ref5) {
|
|
23390
|
+
var list = _ref5.list,
|
|
23391
|
+
canUpdateNumber = _ref5.canUpdateNumber;
|
|
23343
23392
|
return list.map(function (item) {
|
|
23344
23393
|
var specNo = item.specNo,
|
|
23345
23394
|
specId = item.specId,
|
|
@@ -23374,9 +23423,9 @@ var processBsE3Goods$1 = function processBsE3Goods(_ref4) {
|
|
|
23374
23423
|
});
|
|
23375
23424
|
});
|
|
23376
23425
|
};
|
|
23377
|
-
var processGyGoods$1 = function processGyGoods(
|
|
23378
|
-
var list =
|
|
23379
|
-
source =
|
|
23426
|
+
var processGyGoods$1 = function processGyGoods(_ref6) {
|
|
23427
|
+
var list = _ref6.list,
|
|
23428
|
+
source = _ref6.source;
|
|
23380
23429
|
var isFormWorkOrder = source === 'workOrder';
|
|
23381
23430
|
return list.map(function (item) {
|
|
23382
23431
|
var goodName = item.goodName,
|
|
@@ -23403,8 +23452,8 @@ var processGyGoods$1 = function processGyGoods(_ref5) {
|
|
|
23403
23452
|
});
|
|
23404
23453
|
});
|
|
23405
23454
|
};
|
|
23406
|
-
var processJstGoods$1 = function processJstGoods(
|
|
23407
|
-
var list =
|
|
23455
|
+
var processJstGoods$1 = function processJstGoods(_ref7) {
|
|
23456
|
+
var list = _ref7.list;
|
|
23408
23457
|
return list.map(function (item) {
|
|
23409
23458
|
return {
|
|
23410
23459
|
name: item.goodName,
|
|
@@ -23422,9 +23471,9 @@ var processJstGoods$1 = function processJstGoods(_ref6) {
|
|
|
23422
23471
|
};
|
|
23423
23472
|
});
|
|
23424
23473
|
};
|
|
23425
|
-
var processKmGoods$1 = function processKmGoods(
|
|
23426
|
-
var list =
|
|
23427
|
-
type =
|
|
23474
|
+
var processKmGoods$1 = function processKmGoods(_ref8) {
|
|
23475
|
+
var list = _ref8.list,
|
|
23476
|
+
type = _ref8.type;
|
|
23428
23477
|
var initParamsMap = {
|
|
23429
23478
|
KM_GOODS: {
|
|
23430
23479
|
num: 1
|
|
@@ -23443,20 +23492,22 @@ var processKmGoods$1 = function processKmGoods(_ref7) {
|
|
|
23443
23492
|
sysOuterId: item.goodNo,
|
|
23444
23493
|
outerId: item.goodNo,
|
|
23445
23494
|
skuSysId: item.specId,
|
|
23495
|
+
sysSkuId: item.specId,
|
|
23446
23496
|
itemSysId: item.goodId,
|
|
23497
|
+
sysItemId: item.goodId,
|
|
23447
23498
|
sysPicPath: item.goodPicUrl,
|
|
23448
23499
|
payment: null,
|
|
23449
23500
|
price: item.retailPrice,
|
|
23450
|
-
type: null,
|
|
23501
|
+
type: (kmSkuTypeMap === null || kmSkuTypeMap === void 0 ? void 0 : kmSkuTypeMap[item === null || item === void 0 ? void 0 : item.skuType]) || '',
|
|
23451
23502
|
uuid: uuid(),
|
|
23452
23503
|
canDelete: true,
|
|
23453
23504
|
canEdit: true
|
|
23454
23505
|
}, initParamsMap[type] || {});
|
|
23455
23506
|
});
|
|
23456
23507
|
};
|
|
23457
|
-
var processDefaultGoods = function processDefaultGoods(
|
|
23458
|
-
var list =
|
|
23459
|
-
canUpdateNumber =
|
|
23508
|
+
var processDefaultGoods = function processDefaultGoods(_ref9) {
|
|
23509
|
+
var list = _ref9.list,
|
|
23510
|
+
canUpdateNumber = _ref9.canUpdateNumber;
|
|
23460
23511
|
return list.map(function (item) {
|
|
23461
23512
|
var goodsId = item.goodsId,
|
|
23462
23513
|
name = item.name,
|
|
@@ -23562,7 +23613,7 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
23562
23613
|
systemItemIds = dataSource === null || dataSource === void 0 ? void 0 : dataSource.filter(function (item) {
|
|
23563
23614
|
return item === null || item === void 0 ? void 0 : item.sysItemId;
|
|
23564
23615
|
}).map(function (item) {
|
|
23565
|
-
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);
|
|
23616
|
+
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);
|
|
23566
23617
|
});
|
|
23567
23618
|
_context.next = 3;
|
|
23568
23619
|
return servers.KM.getSupplierSingleton(systemItemIds);
|
|
@@ -23571,7 +23622,7 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
23571
23622
|
dataSource === null || dataSource === void 0 ? void 0 : (_dataSource$filter = dataSource.filter(function (item) {
|
|
23572
23623
|
return item === null || item === void 0 ? void 0 : item.sysItemId;
|
|
23573
23624
|
})) === null || _dataSource$filter === void 0 ? void 0 : _dataSource$filter.forEach(function (item) {
|
|
23574
|
-
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);
|
|
23625
|
+
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);
|
|
23575
23626
|
var supplierInfo = supplierMap.get(key);
|
|
23576
23627
|
item.supplierCode = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierCode;
|
|
23577
23628
|
item.supplierName = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierName;
|
|
@@ -23729,6 +23780,7 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
23729
23780
|
}
|
|
23730
23781
|
}), /*#__PURE__*/React.createElement("span", null, "\u5DF2\u9009\u62E9(", currentTradeOriginGoods === null || currentTradeOriginGoods === void 0 ? void 0 : currentTradeOriginGoods.length, "/", filterDataSource === null || filterDataSource === void 0 ? void 0 : filterDataSource.length, ")")));
|
|
23731
23782
|
};
|
|
23783
|
+
SelectTradeGoods.displayName = 'SelectTradeGoods';
|
|
23732
23784
|
var getButtonText = function getButtonText() {
|
|
23733
23785
|
var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
23734
23786
|
if (['KM_GOODS', 'KM_REISSUE_GOODS'].includes(type)) {
|
|
@@ -23810,7 +23862,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
23810
23862
|
var isShowSelectTradeGoods = type !== 'JST_EXCHANGE_GOODS' || (jstReturnGoods === null || jstReturnGoods === void 0 ? void 0 : jstReturnGoods.jstSystemOrderNo);
|
|
23811
23863
|
// 判断是否为是否展示系统单筛选项
|
|
23812
23864
|
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;
|
|
23813
|
-
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;
|
|
23865
|
+
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;
|
|
23814
23866
|
var refModal = useRef();
|
|
23815
23867
|
console.debug('表格数据', value);
|
|
23816
23868
|
var handleDelete = function handleDelete(record, index) {
|
|
@@ -25115,24 +25167,28 @@ var getJkyOrderListSingleton = function getJkyOrderListSingleton(orderNo) {
|
|
|
25115
25167
|
singletonMap$7.delete(orderNo);
|
|
25116
25168
|
reject(err);
|
|
25117
25169
|
};
|
|
25118
|
-
extendRequest('/qy/gdfw/
|
|
25170
|
+
extendRequest('/qy/gdfw/jky/erp/trade/fullInfo', {
|
|
25119
25171
|
method: 'post',
|
|
25120
25172
|
data: {
|
|
25121
|
-
|
|
25173
|
+
sourceTradeNos: orderNo
|
|
25122
25174
|
}
|
|
25123
25175
|
}).then(function (res) {
|
|
25124
25176
|
if (res === null || res === void 0 ? void 0 : res.success) {
|
|
25125
|
-
var _res$data, _res$
|
|
25126
|
-
if (res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 :
|
|
25127
|
-
var _filterJkyOrders
|
|
25128
|
-
res.data.trades = (_filterJkyOrders = filterJkyOrders(res === null || res === void 0 ? void 0 :
|
|
25177
|
+
var _res$data, _res$data2;
|
|
25178
|
+
if (res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.length) {
|
|
25179
|
+
var _filterJkyOrders;
|
|
25180
|
+
res.data.trades = (_filterJkyOrders = filterJkyOrders(res === null || res === void 0 ? void 0 : res.data, orderNo)) === null || _filterJkyOrders === void 0 ? void 0 : _filterJkyOrders.map(function (item) {
|
|
25129
25181
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
25182
|
+
goodsDetail: (item.goodsDetail || []).map(function (goodsItem) {
|
|
25183
|
+
return _objectSpread2({}, goodsItem);
|
|
25184
|
+
}),
|
|
25185
|
+
tradeFrom: JKY_ORDER_FROM_MAP[item.tradeFrom],
|
|
25130
25186
|
tradeType: JKY_ORDER_TYPE_MAP[item.tradeType],
|
|
25131
25187
|
tradeStatus: JKY_ORDER_STATUS_MAP[item.tradeStatus]
|
|
25132
25188
|
});
|
|
25133
25189
|
});
|
|
25134
25190
|
}
|
|
25135
|
-
resolve(((_res$
|
|
25191
|
+
resolve(((_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.trades) || []);
|
|
25136
25192
|
// 延迟10秒清除,保证订单的时效性
|
|
25137
25193
|
setTimeout(function () {
|
|
25138
25194
|
singletonMap$7.delete(orderNo);
|
|
@@ -26833,7 +26889,7 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
26833
26889
|
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) {
|
|
26834
26890
|
return item === null || item === void 0 ? void 0 : item.sysItemId;
|
|
26835
26891
|
})) === null || _value$kmGoods$filter === void 0 ? void 0 : _value$kmGoods$filter.forEach(function (item) {
|
|
26836
|
-
var key = item.sysSkuId == '-1' ? item.sysItemId : "".concat(item.sysItemId, "-").concat(item.sysSkuId);
|
|
26892
|
+
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);
|
|
26837
26893
|
map[key] = item;
|
|
26838
26894
|
});
|
|
26839
26895
|
}
|
|
@@ -26874,7 +26930,8 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
26874
26930
|
hasChange = false;
|
|
26875
26931
|
currentValue = valueRef.current;
|
|
26876
26932
|
kmGoods = currentValue === null || currentValue === void 0 ? void 0 : (_currentValue$kmGoods = currentValue.kmGoods) === null || _currentValue$kmGoods === void 0 ? void 0 : _currentValue$kmGoods.map(function (item) {
|
|
26877
|
-
var
|
|
26933
|
+
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);
|
|
26934
|
+
var supplierInfo = supplierMap.get(key);
|
|
26878
26935
|
var newSupplierCode = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierCode;
|
|
26879
26936
|
var newSupplierName = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierName;
|
|
26880
26937
|
// 如果供应商信息有变化,标记需要更新
|
|
@@ -27158,7 +27215,6 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
27158
27215
|
orderNo: value === null || value === void 0 ? void 0 : value.orderNo,
|
|
27159
27216
|
type: compType
|
|
27160
27217
|
});
|
|
27161
|
-
console.log('getDataSourceAsync', list);
|
|
27162
27218
|
onChange(_objectSpread2(_objectSpread2({}, valueRef.current), {}, {
|
|
27163
27219
|
allOrders: list || []
|
|
27164
27220
|
}));
|
|
@@ -27194,6 +27250,7 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
27194
27250
|
}
|
|
27195
27251
|
}));
|
|
27196
27252
|
};
|
|
27253
|
+
CommonGoods.displayName = 'CommonGoods';
|
|
27197
27254
|
|
|
27198
27255
|
var componentMap$3 = {
|
|
27199
27256
|
WDT_RETURN_GOODS: {
|
|
@@ -27845,10 +27902,26 @@ var typeMap$2 = {
|
|
|
27845
27902
|
outerOiIdKey: '',
|
|
27846
27903
|
goodDetailsKey: 'subOrderDetails',
|
|
27847
27904
|
isShowSelectTradeGoods: true
|
|
27905
|
+
},
|
|
27906
|
+
JKY_REISSUE_GOODS: {
|
|
27907
|
+
compType: '补发',
|
|
27908
|
+
key: 'jkyReissueGoods',
|
|
27909
|
+
typeName: 'jkyReissueType',
|
|
27910
|
+
systemOrder: 'jkySystemOrder',
|
|
27911
|
+
systemOrderNo: 'jkySystemOrderNo',
|
|
27912
|
+
getOrderList: jkyUtils.getJkyOrderListSingleton,
|
|
27913
|
+
updateGoodsHandle: updateJkyGoodsHandle,
|
|
27914
|
+
alwaysShowChooseErpGoodsBtn: true,
|
|
27915
|
+
orderTypeKey: 'orderType',
|
|
27916
|
+
oIdKey: 'tradeNo',
|
|
27917
|
+
outerOiIdKey: '',
|
|
27918
|
+
goodDetailsKey: 'goodsDetail',
|
|
27919
|
+
isShowSelectTradeGoods: true,
|
|
27920
|
+
showModeBtn: true
|
|
27848
27921
|
}
|
|
27849
27922
|
};
|
|
27850
27923
|
var PublicReissue = function PublicReissue(props) {
|
|
27851
|
-
var _typeMap$
|
|
27924
|
+
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;
|
|
27852
27925
|
var value = props.value,
|
|
27853
27926
|
onChange = props.onChange,
|
|
27854
27927
|
_props$reasonList = props.reasonList,
|
|
@@ -27971,7 +28044,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
27971
28044
|
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) {
|
|
27972
28045
|
return item === null || item === void 0 ? void 0 : item.sysItemId;
|
|
27973
28046
|
})) === null || _value$kmReissueGoods2 === void 0 ? void 0 : _value$kmReissueGoods2.forEach(function (item) {
|
|
27974
|
-
var key = item.sysSkuId == '-1' ? item.sysItemId : "".concat(item.sysItemId, "-").concat(item.sysSkuId);
|
|
28047
|
+
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);
|
|
27975
28048
|
map[key] = item;
|
|
27976
28049
|
});
|
|
27977
28050
|
}
|
|
@@ -28012,7 +28085,8 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28012
28085
|
hasChange = false;
|
|
28013
28086
|
currentValue = valueRef.current;
|
|
28014
28087
|
kmReissueGoods = currentValue === null || currentValue === void 0 ? void 0 : (_currentValue$kmReiss = currentValue.kmReissueGoods) === null || _currentValue$kmReiss === void 0 ? void 0 : _currentValue$kmReiss.map(function (item) {
|
|
28015
|
-
var
|
|
28088
|
+
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);
|
|
28089
|
+
var supplierInfo = supplierMap.get(key);
|
|
28016
28090
|
var newSupplierCode = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierCode;
|
|
28017
28091
|
var newSupplierName = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierName;
|
|
28018
28092
|
// 如果供应商信息有变化,标记需要更新
|
|
@@ -28048,7 +28122,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28048
28122
|
}
|
|
28049
28123
|
}, [sysItemIdMap]);
|
|
28050
28124
|
var getGoodDetails = function getGoodDetails(_ref5) {
|
|
28051
|
-
var _typeMap$type18, _typeMap$type19, _value$typeMap$type$s6, _typeMap$type20, _typeMap$type21, _typeMap$type22, _typeMap$type23
|
|
28125
|
+
var _typeMap$type18, _typeMap$type19, _value$typeMap$type$s6, _typeMap$type20, _typeMap$type21, _typeMap$type22, _typeMap$type23;
|
|
28052
28126
|
var mode = _ref5.mode,
|
|
28053
28127
|
sysOrderNo = _ref5.sysOrderNo,
|
|
28054
28128
|
_ref5$isAllOrders = _ref5.isAllOrders,
|
|
@@ -28070,14 +28144,17 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28070
28144
|
orderRest = {
|
|
28071
28145
|
canEdit: true
|
|
28072
28146
|
};
|
|
28147
|
+
} else if (['JKY_REISSUE_GOODS'].includes(type)) {
|
|
28148
|
+
orderRest = {
|
|
28149
|
+
canEdit: true
|
|
28150
|
+
};
|
|
28073
28151
|
}
|
|
28074
28152
|
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] : [];
|
|
28075
28153
|
var hasGoodDetails = orders === null || orders === void 0 ? void 0 : orders.some(function (order) {
|
|
28076
28154
|
var _order$typeMap$type$g;
|
|
28077
28155
|
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;
|
|
28078
28156
|
});
|
|
28079
|
-
|
|
28080
|
-
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) : [];
|
|
28157
|
+
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) : [];
|
|
28081
28158
|
var orderNo = systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orderNo;
|
|
28082
28159
|
var list = mode && !isAllOrders ? goodDetails.filter(function (goodItem) {
|
|
28083
28160
|
return !orderNo || goodItem[typeMap$2[type].outerOiIdKey] === orderNo;
|
|
@@ -28085,30 +28162,30 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28085
28162
|
return list;
|
|
28086
28163
|
};
|
|
28087
28164
|
var changeGoodHandle = function changeGoodHandle(val) {
|
|
28088
|
-
var _typeMap$
|
|
28165
|
+
var _typeMap$type24;
|
|
28089
28166
|
var newValue = _objectSpread2({}, value);
|
|
28090
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28167
|
+
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 || [];
|
|
28091
28168
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
28092
28169
|
};
|
|
28093
28170
|
var changeSystemOrderHandle = function changeSystemOrderHandle(val) {
|
|
28094
|
-
var _typeMap$
|
|
28171
|
+
var _typeMap$type25, _typeMap$type26, _value$typeMap$type$t2, _typeMap$type31, _value$typeMap$type$t3, _typeMap$type33;
|
|
28095
28172
|
var newValue = _objectSpread2({}, value);
|
|
28096
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28097
|
-
if (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28098
|
-
var _value$typeMap$type$s7, _typeMap$
|
|
28099
|
-
var orders = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s7 = value[(_typeMap$
|
|
28173
|
+
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;
|
|
28174
|
+
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) {
|
|
28175
|
+
var _value$typeMap$type$s7, _typeMap$type27, _typeMap$type29, _typeMap$type30;
|
|
28176
|
+
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) || [];
|
|
28100
28177
|
var targetOrder = val && orders.find(function (oItem) {
|
|
28101
|
-
var _typeMap$
|
|
28102
|
-
return oItem[(_typeMap$
|
|
28178
|
+
var _typeMap$type28;
|
|
28179
|
+
return oItem[(_typeMap$type28 = typeMap$2[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.oIdKey] === val;
|
|
28103
28180
|
});
|
|
28104
|
-
newValue[(_typeMap$
|
|
28105
|
-
}
|
|
28106
|
-
if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$
|
|
28107
|
-
var _typeMap$
|
|
28108
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28109
|
-
} else if (['1'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$
|
|
28110
|
-
var _typeMap$
|
|
28111
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28181
|
+
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];
|
|
28182
|
+
}
|
|
28183
|
+
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])) {
|
|
28184
|
+
var _typeMap$type32;
|
|
28185
|
+
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)] = [];
|
|
28186
|
+
} 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])) {
|
|
28187
|
+
var _typeMap$type34;
|
|
28188
|
+
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({
|
|
28112
28189
|
mode: isStrict,
|
|
28113
28190
|
sysOrderNo: val
|
|
28114
28191
|
});
|
|
@@ -28116,27 +28193,27 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28116
28193
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue, 'systemOrder');
|
|
28117
28194
|
};
|
|
28118
28195
|
//显示选择商品按钮
|
|
28119
|
-
var showChangeBtn = !!(value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
28196
|
+
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]);
|
|
28120
28197
|
var selectedGoodsChange = useCallback(function (skuList) {
|
|
28121
|
-
var _typeMap$
|
|
28198
|
+
var _typeMap$type36, _typeMap$type37, _typeMap$type38, _uniqBy, _typeMap$type39;
|
|
28122
28199
|
var newValue = _objectSpread2({}, value);
|
|
28123
28200
|
// 原订单商品
|
|
28124
28201
|
var originTradeGoodList = getGoodDetails({
|
|
28125
28202
|
mode: isStrict,
|
|
28126
|
-
isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28203
|
+
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
|
|
28127
28204
|
}) || [];
|
|
28128
28205
|
// 当前选中的所有商品【包含了原订单+商品库】
|
|
28129
|
-
var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28130
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28131
|
-
var _typeMap$
|
|
28132
|
-
return skuList.includes(item[(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28206
|
+
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)]) || [];
|
|
28207
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type38 = typeMap$2[type]) === null || _typeMap$type38 === void 0 ? void 0 : _typeMap$type38.key)] = (_uniqBy = uniqBy(originTradeGoodList.concat(currentSelectGoodList), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type39 = typeMap$2[type]) === null || _typeMap$type39 === void 0 ? void 0 : _typeMap$type39.uniqueKey) || 'uuid')) === null || _uniqBy === void 0 ? void 0 : _uniqBy.filter(function (item) {
|
|
28208
|
+
var _typeMap$type40;
|
|
28209
|
+
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']);
|
|
28133
28210
|
});
|
|
28134
28211
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
28135
|
-
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28212
|
+
}, [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]);
|
|
28136
28213
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
|
|
28137
28214
|
gutter: 8,
|
|
28138
28215
|
wrap: true,
|
|
28139
|
-
id: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28216
|
+
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())
|
|
28140
28217
|
}, /*#__PURE__*/React.createElement(Col, {
|
|
28141
28218
|
className: "gutter-row",
|
|
28142
28219
|
xs: {
|
|
@@ -28152,12 +28229,12 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28152
28229
|
},
|
|
28153
28230
|
disabled: disabled,
|
|
28154
28231
|
allowClear: false,
|
|
28155
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28232
|
+
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)],
|
|
28156
28233
|
onChange: function onChange(val) {
|
|
28157
28234
|
return changeSystemOrderHandle(val);
|
|
28158
28235
|
},
|
|
28159
|
-
placeholder: "\u9009\u62E9".concat((typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28160
|
-
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s8 = value[(_typeMap$
|
|
28236
|
+
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")
|
|
28237
|
+
}, ((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) {
|
|
28161
28238
|
return /*#__PURE__*/React.createElement(Select.Option, {
|
|
28162
28239
|
key: item[typeMap$2[type].oIdKey],
|
|
28163
28240
|
value: item[typeMap$2[type].oIdKey],
|
|
@@ -28179,11 +28256,11 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28179
28256
|
disabled: isSettingConfig ? !isSettingConfig : disabled,
|
|
28180
28257
|
allowClear: false,
|
|
28181
28258
|
options: reasonList,
|
|
28182
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28259
|
+
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)],
|
|
28183
28260
|
onChange: function onChange(val) {
|
|
28184
28261
|
return changeTypeHandle(val);
|
|
28185
28262
|
}
|
|
28186
|
-
})), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28263
|
+
})), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type47 = typeMap$2[type]) === null || _typeMap$type47 === void 0 ? void 0 : _typeMap$type47.systemOrderBillType) && !isSettingConfig && /*#__PURE__*/React.createElement(Col, {
|
|
28187
28264
|
className: "gutter-row",
|
|
28188
28265
|
xs: {
|
|
28189
28266
|
span: 11
|
|
@@ -28192,7 +28269,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28192
28269
|
span: 6
|
|
28193
28270
|
}
|
|
28194
28271
|
}, /*#__PURE__*/React.createElement(Input, {
|
|
28195
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28272
|
+
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)],
|
|
28196
28273
|
disabled: disabled,
|
|
28197
28274
|
readOnly: true
|
|
28198
28275
|
}))), /*#__PURE__*/React.createElement(GoodItem$1, _objectSpread2(_objectSpread2({
|
|
@@ -28203,15 +28280,15 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28203
28280
|
canUpdateNumber: showChangeBtn,
|
|
28204
28281
|
hasSelectedSystemOrder: showChangeBtn,
|
|
28205
28282
|
// showChangeBtn={showChangeBtn || typeMap?.[type]?.isShowSelectTradeGoods}
|
|
28206
|
-
alwaysShowChooseErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28283
|
+
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,
|
|
28207
28284
|
// showErpGoodsBtn={typeMap?.[type]?.showErpGoodsBtn}
|
|
28208
28285
|
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
28209
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28286
|
+
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)],
|
|
28210
28287
|
onChange: function onChange(val) {
|
|
28211
28288
|
return changeGoodHandle(val);
|
|
28212
28289
|
},
|
|
28213
28290
|
onModeChange: handleModeChange,
|
|
28214
|
-
showModeBtn:
|
|
28291
|
+
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),
|
|
28215
28292
|
isStrict: isStrict,
|
|
28216
28293
|
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,
|
|
28217
28294
|
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,
|
|
@@ -28226,6 +28303,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28226
28303
|
}
|
|
28227
28304
|
})));
|
|
28228
28305
|
};
|
|
28306
|
+
PublicReissue.displayName = 'PublicReissue';
|
|
28229
28307
|
|
|
28230
28308
|
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";
|
|
28231
28309
|
styleInject(css_248z$g);
|