@kmkf-fe-packages/basic-components 2.2.44-beta.7 → 2.2.44-beta.73
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 +441 -286
- package/dist/index.js +440 -285
- package/dist/src/bs/component/GoodItem/index.d.ts +4 -1
- package/dist/src/bs/component/model/Columns/Erp/jky.d.ts +5 -19
- package/dist/src/bs/component/model/Columns/Erp/wdt.d.ts +6 -0
- package/dist/src/bs/component/model/JkyGoodsModal/GoodsList.d.ts +1 -1
- package/dist/src/common/CommonGoods/index.d.ts +4 -1
- package/dist/src/common/Reissue/index.d.ts +4 -1
- package/dist/src/constants/systemOrderColumnsMap.d.ts +10 -2
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -3,7 +3,7 @@ import { Cascader, DatePicker, Image, InputNumber, Input, Select, Upload, messag
|
|
|
3
3
|
import { EyeOutlined, DeleteOutlined, CloseOutlined, PlusSquareOutlined, MinusCircleFilled, PlusCircleFilled, CopyOutlined, CloseCircleOutlined, CaretUpOutlined, UpOutlined, DownOutlined, PlusOutlined, VideoCameraTwoTone } from '@ant-design/icons';
|
|
4
4
|
import request, { extend as extend$1 } from 'umi-request';
|
|
5
5
|
import { CopyToClipboard } from 'react-copy-to-clipboard';
|
|
6
|
-
import { AddressData, BsAddressData, WdtAddressData, GyAddressData, JstAddressData,
|
|
6
|
+
import { AddressData, BsAddressData, WdtAddressData, GyAddressData, JstAddressData, request as request$1, ExpressData, isNull, imgResize, uuid, servers, columnsGoodsList, LogisticsAddressData, SendDataCenter, kmSkuTypeMap, hasAddNullComponent, SUBMIT_TIME_ID, UPGRADE_TIME_ID, FINAL_TIME_ID, CUSTOM_TIME_ID, useStatus, finalFormData, transformList, dataSourceTrans, DATA_SPLIT_COMPONENT_FIELDS_MAP, findLabelBySelectValue, BS_E3_BOOLEAN_STATUS_MAP, filterWdtOrders, WDT_ORDER_TYPE_MAP, tradeStatusMap, filterBsE3Orders, filterGyOrders, GY_DELIVERY_STATE_MAPPING, filterJstOrders, filterJyOrders, JY_ORDER_TYPE_MAP, JY_ORDER_STATUS_MAP, filterJkyOrders, JKY_ORDER_FROM_MAP, JKY_ORDER_TYPE_MAP, JKY_ORDER_STATUS_MAP, getJkyLogisticInfo, filterKmOrders, getSystemShowHead, getIsPlatformCodesIncludeOrderNos, BS_SYSTEM_ORDER_CONFIG, KM_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, JST_SYSTEM_ORDER_CONFIG, JY_SYSTEM_ORDER_CONFIG, JKY_SYSTEM_ORDER_CONFIG, WDT_RETURN_BILL_NO_CONFIG, updateOrderSubFormGoodsHandle, updateWlnGoodsHandle, updateWdtGoodsHandle, updateBsE3GoodsHandle, updateGyGoodsHandle, updateJstGoodsHandle, updateKmGoodsHandle, updateJyGoodsHandle, updateJkyGoodsHandle, updateWdtAftersaleGoodsHandle, jstMergeIdenticalGoods, msgTypeCh, pushGyLog, skxSystemOrderBackValues, skxReturnSystemOrderBackValues, formatTrade, updateSkxGoodsHandle, formatReturnTrade, updateSkxReturnGoodsHandle } from '@kmkf-fe-packages/kmkf-utils';
|
|
7
7
|
import every from 'lodash/every';
|
|
8
8
|
import maxBy from 'lodash/maxBy';
|
|
9
9
|
import { debounce, isNaN as isNaN$1, isNumber as isNumber$1, uniqBy, cloneDeep, difference, differenceWith, isBoolean, isEqual, takeRight, reject as reject$1, intersection, isEmpty } from 'lodash';
|
|
@@ -7758,9 +7758,10 @@ var Province = function Province(props) {
|
|
|
7758
7758
|
wdt: WdtAddressData.getInstance(),
|
|
7759
7759
|
gy: GyAddressData.getInstance(),
|
|
7760
7760
|
km: AddressData.getInstance(),
|
|
7761
|
-
jst: JstAddressData.getInstance()
|
|
7762
|
-
jky: JkyAddressData.getInstance()
|
|
7761
|
+
jst: JstAddressData.getInstance()
|
|
7762
|
+
// jky: JkyAddressData.getInstance(),
|
|
7763
7763
|
};
|
|
7764
|
+
|
|
7764
7765
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Cascader, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
7765
7766
|
options: ((_mapping$type = mapping[type]) === null || _mapping$type === void 0 ? void 0 : _mapping$type.addressOptions) || [],
|
|
7766
7767
|
style: {
|
|
@@ -7935,7 +7936,8 @@ var IdentifyAddress = function IdentifyAddress(props) {
|
|
|
7935
7936
|
placeholder: "\u6536\u4EF6\u4EBA\u59D3\u540D",
|
|
7936
7937
|
allowClear: true,
|
|
7937
7938
|
onChange: function onChange(e) {
|
|
7938
|
-
|
|
7939
|
+
var _e$target$value;
|
|
7940
|
+
return changeHandle((_e$target$value = e.target.value) === null || _e$target$value === void 0 ? void 0 : _e$target$value.trim(), 'receiverName');
|
|
7939
7941
|
}
|
|
7940
7942
|
}), /*#__PURE__*/React.createElement(Input, {
|
|
7941
7943
|
value: value.receiverMobile,
|
|
@@ -7943,7 +7945,8 @@ var IdentifyAddress = function IdentifyAddress(props) {
|
|
|
7943
7945
|
allowClear: true,
|
|
7944
7946
|
placeholder: "\u6536\u4EF6\u4EBA\u7535\u8BDD",
|
|
7945
7947
|
onChange: function onChange(e) {
|
|
7946
|
-
|
|
7948
|
+
var _e$target$value2;
|
|
7949
|
+
return changeHandle((_e$target$value2 = e.target.value) === null || _e$target$value2 === void 0 ? void 0 : _e$target$value2.trim(), 'receiverMobile');
|
|
7947
7950
|
}
|
|
7948
7951
|
})), /*#__PURE__*/React.createElement(Space, {
|
|
7949
7952
|
wrap: true
|
|
@@ -7960,7 +7963,8 @@ var IdentifyAddress = function IdentifyAddress(props) {
|
|
|
7960
7963
|
placeholder: "\u8BE6\u7EC6\u5730\u5740",
|
|
7961
7964
|
allowClear: true,
|
|
7962
7965
|
onChange: function onChange(e) {
|
|
7963
|
-
|
|
7966
|
+
var _e$target$value3;
|
|
7967
|
+
return changeHandle((_e$target$value3 = e.target.value) === null || _e$target$value3 === void 0 ? void 0 : _e$target$value3.trim(), 'detail');
|
|
7964
7968
|
}
|
|
7965
7969
|
})));
|
|
7966
7970
|
};
|
|
@@ -7996,13 +8000,14 @@ function ApaasPosting(props) {
|
|
|
7996
8000
|
});
|
|
7997
8001
|
}
|
|
7998
8002
|
|
|
7999
|
-
var _excluded$b = ["value", "onChange", "platformType", "type"];
|
|
8003
|
+
var _excluded$b = ["value", "onChange", "platformType", "type", "placement"];
|
|
8000
8004
|
function ApaasLogistics(props) {
|
|
8001
8005
|
var value = props.value,
|
|
8002
8006
|
onChange = props.onChange,
|
|
8003
8007
|
platformType = props.platformType,
|
|
8004
8008
|
_props$type = props.type,
|
|
8005
8009
|
type = _props$type === void 0 ? 'select' : _props$type,
|
|
8010
|
+
placement = props.placement,
|
|
8006
8011
|
other = _objectWithoutProperties(props, _excluded$b);
|
|
8007
8012
|
var _useState = useState([]),
|
|
8008
8013
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -8040,12 +8045,13 @@ function ApaasLogistics(props) {
|
|
|
8040
8045
|
return type === 'input' ? /*#__PURE__*/React.createElement(Input, _objectSpread2(_objectSpread2({}, other), {}, {
|
|
8041
8046
|
value: value,
|
|
8042
8047
|
onChange: handleInputChange
|
|
8043
|
-
})) : /*#__PURE__*/React.createElement(Select, _objectSpread2(
|
|
8048
|
+
})) : /*#__PURE__*/React.createElement(Select, _objectSpread2({
|
|
8044
8049
|
value: value,
|
|
8045
8050
|
onChange: onChange,
|
|
8046
8051
|
options: option,
|
|
8047
|
-
virtual: true
|
|
8048
|
-
|
|
8052
|
+
virtual: true,
|
|
8053
|
+
placement: placement
|
|
8054
|
+
}, other));
|
|
8049
8055
|
}
|
|
8050
8056
|
|
|
8051
8057
|
var _excluded$c = ["label", "name", "extra", "required", "rules", "initialValue"];
|
|
@@ -8129,6 +8135,11 @@ var systemOrderMap = {
|
|
|
8129
8135
|
ids: 'wdtSystemSelectIds',
|
|
8130
8136
|
order: 'wdtSystemShowOrder'
|
|
8131
8137
|
},
|
|
8138
|
+
JKY_SYSTEM_ORDER: {
|
|
8139
|
+
no: 'jkySystemOrderNo',
|
|
8140
|
+
ids: 'jkySystemSelectIds',
|
|
8141
|
+
order: 'jkySystemShowOrder'
|
|
8142
|
+
},
|
|
8132
8143
|
BS_E3_SYSTEM_ORDER: {
|
|
8133
8144
|
no: 'bsE3SystemOrderNo',
|
|
8134
8145
|
ids: 'bsE3SystemSelectIds',
|
|
@@ -8606,7 +8617,8 @@ var processSceneStatus = function processSceneStatus(getValue) {
|
|
|
8606
8617
|
WAREHOUSING_STATUS: 'inStockStatusItemList',
|
|
8607
8618
|
BS_E3_WAREHOUSING_STATUS: 'bsE3InStockStatusItemList',
|
|
8608
8619
|
MSG_STATUS: 'msgStatusValues',
|
|
8609
|
-
WDT_WAREHOUSING_STATUS: 'wdtInStockStatusItemList'
|
|
8620
|
+
WDT_WAREHOUSING_STATUS: 'wdtInStockStatusItemList',
|
|
8621
|
+
JKY_WAREHOUSING_STATUS: 'jkyInStockStatusItemList'
|
|
8610
8622
|
};
|
|
8611
8623
|
return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(STATUS_LIST_MAP[nex.workOrderComponentType])), []));
|
|
8612
8624
|
};
|
|
@@ -8700,6 +8712,33 @@ var processBsGoods = function processBsGoods(getValue) {
|
|
|
8700
8712
|
return _defineProperty({}, nex.uniqueKey, _values);
|
|
8701
8713
|
};
|
|
8702
8714
|
};
|
|
8715
|
+
var processJkyGoods = function processJkyGoods(templateColumns) {
|
|
8716
|
+
return function (getValue) {
|
|
8717
|
+
return function (nex, config) {
|
|
8718
|
+
var _values = {
|
|
8719
|
+
jkyGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_jkyGoods")), []),
|
|
8720
|
+
shopCode: getValue("".concat(nex.uniqueKey, "_shopCode"))
|
|
8721
|
+
};
|
|
8722
|
+
var selectIds = [];
|
|
8723
|
+
var orderNo = '';
|
|
8724
|
+
var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
|
|
8725
|
+
return col.workOrderComponentType === 'TRADE_ID_INPUT';
|
|
8726
|
+
});
|
|
8727
|
+
if (tradeId) {
|
|
8728
|
+
orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
|
|
8729
|
+
}
|
|
8730
|
+
var jkySystemOrder = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
|
|
8731
|
+
return col.workOrderComponentType === 'JKY_SYSTEM_ORDER';
|
|
8732
|
+
});
|
|
8733
|
+
if (jkySystemOrder) {
|
|
8734
|
+
selectIds = jsonParseSecurity(getValue("".concat(jkySystemOrder.uniqueKey, "_").concat(systemOrderMap[jkySystemOrder.workOrderComponentType].ids)), []);
|
|
8735
|
+
}
|
|
8736
|
+
_values.selectIds = selectIds;
|
|
8737
|
+
_values.orderNo = orderNo;
|
|
8738
|
+
return _defineProperty({}, nex.uniqueKey, _values);
|
|
8739
|
+
};
|
|
8740
|
+
};
|
|
8741
|
+
};
|
|
8703
8742
|
var processWdtGoods = function processWdtGoods(templateColumns) {
|
|
8704
8743
|
return function (getValue) {
|
|
8705
8744
|
return function (nex, config) {
|
|
@@ -8991,6 +9030,11 @@ var processErpSystemOrder = function processErpSystemOrder(getValue) {
|
|
|
8991
9030
|
ids: 'wdtSystemSelectIds',
|
|
8992
9031
|
order: 'wdtSystemShowOrder'
|
|
8993
9032
|
},
|
|
9033
|
+
JKY_SYSTEM_ORDER: {
|
|
9034
|
+
no: 'jkySystemOrderNo',
|
|
9035
|
+
ids: 'jkySystemSelectIds',
|
|
9036
|
+
order: 'jkySystemShowOrder'
|
|
9037
|
+
},
|
|
8994
9038
|
BS_E3_SYSTEM_ORDER: {
|
|
8995
9039
|
no: 'bsE3SystemOrderNo',
|
|
8996
9040
|
ids: 'bsE3SystemSelectIds',
|
|
@@ -9250,14 +9294,14 @@ var processJstReturnGoods = function processJstReturnGoods(templateColumns) {
|
|
|
9250
9294
|
};
|
|
9251
9295
|
var processLabel = function processLabel(getValue) {
|
|
9252
9296
|
return function (nex, config) {
|
|
9253
|
-
var
|
|
9254
|
-
return
|
|
9297
|
+
var _ref74;
|
|
9298
|
+
return _ref74 = {}, _defineProperty(_ref74, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _defineProperty(_ref74, "".concat(nex.uniqueKey, "_label"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _ref74;
|
|
9255
9299
|
};
|
|
9256
9300
|
};
|
|
9257
9301
|
var processMemberLevel = function processMemberLevel(getValue) {
|
|
9258
9302
|
return function (nex, config) {
|
|
9259
|
-
var
|
|
9260
|
-
return
|
|
9303
|
+
var _ref75;
|
|
9304
|
+
return _ref75 = {}, _defineProperty(_ref75, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _defineProperty(_ref75, "".concat(nex.uniqueKey, "_memberLevel"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _ref75;
|
|
9261
9305
|
};
|
|
9262
9306
|
};
|
|
9263
9307
|
var processAfterSalesOrderId = function processAfterSalesOrderId(getValue) {
|
|
@@ -9361,6 +9405,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
|
|
|
9361
9405
|
BS_E3_WAREHOUSING_STATUS: processSceneStatus,
|
|
9362
9406
|
MSG_STATUS: processSceneStatus,
|
|
9363
9407
|
WDT_WAREHOUSING_STATUS: processSceneStatus,
|
|
9408
|
+
JKY_WAREHOUSING_STATUS: processSceneStatus,
|
|
9364
9409
|
BS_LOGISTICS: processErpLogistics,
|
|
9365
9410
|
WLN_LOGISTICS: processErpLogistics,
|
|
9366
9411
|
WDT_LOGISTICS: processErpLogistics,
|
|
@@ -9376,6 +9421,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
|
|
|
9376
9421
|
BS_POSTING: processBsPosting,
|
|
9377
9422
|
BS_GOODS: processBsGoods,
|
|
9378
9423
|
WDT_GOODS: processWdtGoods(templateColumns),
|
|
9424
|
+
JKY_GOODS: processJkyGoods(templateColumns),
|
|
9379
9425
|
WDT_AFTERSALE_GOODS: processWdtAftersaleGoods(templateColumns),
|
|
9380
9426
|
JST_AFTERSALE_GOODS: processJstAftersaleGoods(templateColumns),
|
|
9381
9427
|
BS_E3_GOODS: processBsE3Goods(templateColumns),
|
|
@@ -9394,6 +9440,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
|
|
|
9394
9440
|
KM_SYSTEM_ORDER: processErpSystemOrder,
|
|
9395
9441
|
WLN_SYSTEM_ORDER: processErpSystemOrder,
|
|
9396
9442
|
WDT_SYSTEM_ORDER: processErpSystemOrder,
|
|
9443
|
+
JKY_SYSTEM_ORDER: processErpSystemOrder,
|
|
9397
9444
|
WDT_RETURN_BILL_NO: processErpSystemOrder,
|
|
9398
9445
|
BS_E3_SYSTEM_ORDER: processErpSystemOrder,
|
|
9399
9446
|
JST_SYSTEM_ORDER: processErpSystemOrder,
|
|
@@ -9990,12 +10037,21 @@ var EditSplitRenderMap = {
|
|
|
9990
10037
|
updateHandle = _ref17.updateHandle,
|
|
9991
10038
|
disabled = _ref17.disabled;
|
|
9992
10039
|
return /*#__PURE__*/React.createElement(ApaasLogistics, {
|
|
10040
|
+
getPopupContainer: function getPopupContainer() {
|
|
10041
|
+
return document.getElementById('subform');
|
|
10042
|
+
},
|
|
9993
10043
|
value: val,
|
|
9994
10044
|
allowClear: true,
|
|
10045
|
+
showSearch: true,
|
|
9995
10046
|
onChange: function onChange(e) {
|
|
9996
10047
|
return updateHandle(e, index, t.key);
|
|
9997
10048
|
},
|
|
9998
|
-
disabled: t.isEdit || disabled
|
|
10049
|
+
disabled: t.isEdit || disabled,
|
|
10050
|
+
filterOption: function filterOption(input, option) {
|
|
10051
|
+
return option.label.includes(input);
|
|
10052
|
+
},
|
|
10053
|
+
placement: "topLeft",
|
|
10054
|
+
listHeight: 120
|
|
9999
10055
|
});
|
|
10000
10056
|
},
|
|
10001
10057
|
//退货物流-物流公司
|
|
@@ -10006,12 +10062,21 @@ var EditSplitRenderMap = {
|
|
|
10006
10062
|
updateHandle = _ref18.updateHandle,
|
|
10007
10063
|
disabled = _ref18.disabled;
|
|
10008
10064
|
return /*#__PURE__*/React.createElement(ApaasLogistics, {
|
|
10065
|
+
getPopupContainer: function getPopupContainer() {
|
|
10066
|
+
return document.getElementById('subform');
|
|
10067
|
+
},
|
|
10009
10068
|
value: val,
|
|
10010
10069
|
allowClear: true,
|
|
10070
|
+
showSearch: true,
|
|
10011
10071
|
onChange: function onChange(e) {
|
|
10012
10072
|
return updateHandle(e, index, t.key);
|
|
10013
10073
|
},
|
|
10014
|
-
disabled: t.isEdit || disabled
|
|
10074
|
+
disabled: t.isEdit || disabled,
|
|
10075
|
+
filterOption: function filterOption(input, option) {
|
|
10076
|
+
return option.label.includes(input);
|
|
10077
|
+
},
|
|
10078
|
+
placement: "topLeft",
|
|
10079
|
+
listHeight: 120
|
|
10015
10080
|
});
|
|
10016
10081
|
}
|
|
10017
10082
|
};
|
|
@@ -10480,7 +10545,11 @@ var SubForm = function SubForm(props) {
|
|
|
10480
10545
|
});
|
|
10481
10546
|
}, [inputValue]);
|
|
10482
10547
|
var handleOpenChange = function handleOpenChange(newOpen) {
|
|
10483
|
-
|
|
10548
|
+
if (!['jbCFrJV4m7_trajectoryCompany', '0qFEv9GEyd_returnLogisticsCompany'].includes(selectKey)) {
|
|
10549
|
+
setOpen(newOpen);
|
|
10550
|
+
} else {
|
|
10551
|
+
setOpen(false);
|
|
10552
|
+
}
|
|
10484
10553
|
};
|
|
10485
10554
|
var onChangeInput = useCallback(debounce(function (val) {
|
|
10486
10555
|
setInputValue(val);
|
|
@@ -10568,6 +10637,9 @@ var SubForm = function SubForm(props) {
|
|
|
10568
10637
|
visible: open,
|
|
10569
10638
|
onVisibleChange: handleOpenChange
|
|
10570
10639
|
}, ['0qFEv9GEyd_returnLogisticsCompany', 'jbCFrJV4m7_trajectoryCompany'].includes(selectKey) ? /*#__PURE__*/React.createElement(ApaasLogistics, {
|
|
10640
|
+
getPopupContainer: function getPopupContainer() {
|
|
10641
|
+
return document.getElementById('subform');
|
|
10642
|
+
},
|
|
10571
10643
|
value: undefined,
|
|
10572
10644
|
onChange: function onChange(val) {
|
|
10573
10645
|
onChangeInput(val);
|
|
@@ -10580,7 +10652,9 @@ var SubForm = function SubForm(props) {
|
|
|
10580
10652
|
},
|
|
10581
10653
|
filterOption: function filterOption(input, option) {
|
|
10582
10654
|
return option.label.includes(input);
|
|
10583
|
-
}
|
|
10655
|
+
},
|
|
10656
|
+
placement: "topLeft",
|
|
10657
|
+
listHeight: 120
|
|
10584
10658
|
}) : /*#__PURE__*/React.createElement(Input, {
|
|
10585
10659
|
placeholder: "\u8F93\u5165\u5173\u952E\u8BCD\u67E5\u8BE2",
|
|
10586
10660
|
allowClear: true,
|
|
@@ -10657,7 +10731,8 @@ var BuyerNick = function BuyerNick(props) {
|
|
|
10657
10731
|
disabled = props.disabled,
|
|
10658
10732
|
_onBlur = props.onBlur;
|
|
10659
10733
|
var changeValue = function changeValue(e, type) {
|
|
10660
|
-
|
|
10734
|
+
var _e$target$value;
|
|
10735
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, type, (_e$target$value = e.target.value) === null || _e$target$value === void 0 ? void 0 : _e$target$value.trim())));
|
|
10661
10736
|
};
|
|
10662
10737
|
// useEffect(() => {
|
|
10663
10738
|
// //淘宝平台和抖音平台需要展示买家id
|
|
@@ -10682,7 +10757,8 @@ var BuyerNick = function BuyerNick(props) {
|
|
|
10682
10757
|
changeValue(e, 'buyerNick');
|
|
10683
10758
|
},
|
|
10684
10759
|
onBlur: function onBlur(e) {
|
|
10685
|
-
|
|
10760
|
+
var _e$target$value2;
|
|
10761
|
+
_onBlur === null || _onBlur === void 0 ? void 0 : _onBlur((_e$target$value2 = e.target.value) === null || _e$target$value2 === void 0 ? void 0 : _e$target$value2.trim(), 'buyerNick');
|
|
10686
10762
|
}
|
|
10687
10763
|
});
|
|
10688
10764
|
};
|
|
@@ -10804,8 +10880,9 @@ var RemarkInput = function RemarkInput(props) {
|
|
|
10804
10880
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
10805
10881
|
};
|
|
10806
10882
|
var changeRemark = function changeRemark(e) {
|
|
10883
|
+
var _e$target$value;
|
|
10807
10884
|
var newValue = _objectSpread2(_objectSpread2({}, value), {}, {
|
|
10808
|
-
remark: e.target.value
|
|
10885
|
+
remark: (_e$target$value = e.target.value) === null || _e$target$value === void 0 ? void 0 : _e$target$value.trim()
|
|
10809
10886
|
});
|
|
10810
10887
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
10811
10888
|
};
|
|
@@ -10848,7 +10925,7 @@ var Logistics = function Logistics(props) {
|
|
|
10848
10925
|
var handleInputChange = function handleInputChange(e) {
|
|
10849
10926
|
var val = e.target.value;
|
|
10850
10927
|
typeof onChange === 'function' && onChange(_objectSpread2(_objectSpread2({}, value), {}, {
|
|
10851
|
-
order: val
|
|
10928
|
+
order: val === null || val === void 0 ? void 0 : val.trim()
|
|
10852
10929
|
}));
|
|
10853
10930
|
};
|
|
10854
10931
|
var handelSelectChange = function handelSelectChange(val) {
|
|
@@ -10912,7 +10989,8 @@ var AliPay = function AliPay(props) {
|
|
|
10912
10989
|
disabled = props.disabled,
|
|
10913
10990
|
_onBlur = props.onBlur;
|
|
10914
10991
|
var changeValue = function changeValue(e, type) {
|
|
10915
|
-
|
|
10992
|
+
var _e$target$value;
|
|
10993
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, type, (_e$target$value = e.target.value) === null || _e$target$value === void 0 ? void 0 : _e$target$value.trim())));
|
|
10916
10994
|
};
|
|
10917
10995
|
return /*#__PURE__*/React.createElement("div", null, !isSingle ? /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Input, {
|
|
10918
10996
|
disabled: disabled,
|
|
@@ -12099,7 +12177,7 @@ var ChooseBaby = function ChooseBaby(props) {
|
|
|
12099
12177
|
}));
|
|
12100
12178
|
};
|
|
12101
12179
|
|
|
12102
|
-
var css_248z$7 = "#goods-wrap.goodsBox.single-row {\n max-height: 800px;\n overflow-y: auto;\n padding-top: 4px;\n flex-basis: 100%;\n}\n#goods-wrap.goodsBox.single-row .good-item.rich-item.with-pic,\n#goods-wrap.goodsBox.single-row .good-item.rich-item.with-attr,\n#goods-wrap.goodsBox.single-row .good-item.rich-item.with-attr.with-pic {\n flex-basis: 100%;\n}\n#goods-wrap.goodsBox.single-row .good-item.rich-item .good-attrs {\n flex-grow: 1;\n flex-shrink: 1;\n}\n#goods-wrap.goodsBox.single-row .good-item.rich-item .good-attrs .good-item-attr {\n flex-grow: 1;\n flex-shrink: 1;\n max-width: 80px;\n width: 20px;\n flex-basis: 20px;\n}\n#goods-wrap.goodsBox.single-row .good-item.rich-item .good-attrs .ant-input {\n flex-shrink: 1;\n flex-grow: 1;\n width: 20px;\n flex-basis: 40px;\n}\n#goods-wrap .good-item.rich-item {\n position: relative;\n border: 1px solid #ccc;\n display: flex;\n flex-basis: 80px;\n flex-wrap: nowrap;\n margin: 0 10px 10px 0;\n padding: 4px;\n}\n#goods-wrap .good-item.rich-item.with-pic {\n flex-basis: 90px;\n}\n#goods-wrap .good-item.rich-item.with-attr {\n flex-basis: 150px;\n}\n#goods-wrap .good-item.rich-item.with-attr.with-pic {\n flex-basis: 238px;\n}\n#goods-wrap .good-item.rich-item.with-attr.with-pic .goods-imgBox {\n margin-right: 8px;\n}\n#goods-wrap .good-item.rich-item .good-item-attr {\n margin-right: 6px;\n width: 52px;\n flex-basis: 52px;\n}\n#goods-wrap .good-item.rich-item .good-img {\n position: relative;\n width: 80px;\n height: 80px;\n border-radius: 4px;\n border: 1px solid #f2f3f5;\n margin: 0 10px 0 0;\n text-align: center;\n background-color: #f2f3f5;\n}\n#goods-wrap .good-item.rich-item .good-attrs {\n display: flex;\n flex-direction: column;\n font-size: 12px;\n}\n#goods-wrap .good-item.rich-item .good-attrs .ant-input {\n font-size: 12px;\n width: 80px;\n height: 20px;\n padding-left: 5px;\n padding-right: 5px;\n}\n#goods-wrap .good-item.rich-item .good-attrs .ant-input.id-textarea {\n width: 80px;\n resize: none;\n height: 45px;\n}\n#goods-wrap .good-item.rich-item .good-attrs div {\n display: flex;\n}\n#goods-wrap .good-item.rich-item .good-attrs div:not(:first-child) {\n margin-top: 4px;\n}\n";
|
|
12180
|
+
var css_248z$7 = "#goods-wrap.goodsBox.single-row {\n max-height: 800px;\n overflow-y: auto;\n padding-top: 4px;\n flex-basis: 100%;\n}\n#goods-wrap.goodsBox.single-row .good-item.rich-item.with-pic,\n#goods-wrap.goodsBox.single-row .good-item.rich-item.with-attr,\n#goods-wrap.goodsBox.single-row .good-item.rich-item.with-attr.with-pic {\n flex-basis: 100%;\n}\n#goods-wrap.goodsBox.single-row .good-item.rich-item .good-attrs {\n flex-grow: 1;\n flex-shrink: 1;\n}\n#goods-wrap.goodsBox.single-row .good-item.rich-item .good-attrs .good-item-attr {\n flex-grow: 1;\n flex-shrink: 1;\n max-width: 80px;\n width: 20px;\n flex-basis: 20px;\n}\n#goods-wrap.goodsBox.single-row .good-item.rich-item .good-attrs .ant-input {\n flex-shrink: 1;\n flex-grow: 1;\n width: 20px;\n flex-basis: 40px;\n}\n#goods-wrap .good-item.rich-item {\n position: relative;\n border: 1px solid #ccc;\n display: flex;\n flex-basis: 80px;\n flex-wrap: nowrap;\n margin: 0 10px 10px 0;\n padding: 4px;\n}\n#goods-wrap .good-item.rich-item.with-pic {\n flex-basis: 90px;\n}\n#goods-wrap .good-item.rich-item.with-attr {\n flex-basis: 150px;\n}\n#goods-wrap .good-item.rich-item.with-attr.with-pic {\n flex-basis: 238px;\n}\n#goods-wrap .good-item.rich-item.with-attr.with-pic .goods-imgBox {\n margin-right: 8px;\n}\n#goods-wrap .good-item.rich-item .good-item-attr {\n margin-right: 6px;\n width: 52px;\n flex-basis: 52px;\n}\n#goods-wrap .good-item.rich-item .good-img {\n position: relative;\n width: 80px;\n height: 80px;\n border-radius: 4px;\n border: 1px solid #f2f3f5;\n margin: 0 10px 0 0;\n text-align: center;\n background-color: #f2f3f5;\n}\n#goods-wrap .good-item.rich-item .good-attrs {\n display: flex;\n flex-direction: column;\n font-size: 12px;\n}\n#goods-wrap .good-item.rich-item .good-attrs .ant-input {\n font-size: 12px;\n width: 80px;\n height: 20px;\n padding-left: 5px;\n padding-right: 5px;\n}\n#goods-wrap .good-item.rich-item .good-attrs .ant-input.id-textarea {\n width: 80px;\n resize: none;\n height: 45px;\n}\n#goods-wrap .good-item.rich-item .good-attrs div {\n display: flex;\n}\n#goods-wrap .good-item.rich-item .good-attrs div:not(:first-child) {\n margin-top: 4px;\n}\n.goods-uploaded-state {\n display: flex;\n}\n.goods-uploaded-state .clear-all {\n float: right;\n color: #1966ff;\n cursor: pointer;\n margin-left: 12px;\n}\n";
|
|
12103
12181
|
styleInject(css_248z$7);
|
|
12104
12182
|
|
|
12105
12183
|
var GoodItem = function GoodItem(props) {
|
|
@@ -12428,13 +12506,22 @@ var GoodItem = function GoodItem(props) {
|
|
|
12428
12506
|
var hasAttr = useMemo(function () {
|
|
12429
12507
|
return hasPic ? headerList.length > 1 : headerList.length > 0;
|
|
12430
12508
|
}, [hasPic, headerList]);
|
|
12509
|
+
var clearAll = function clearAll() {
|
|
12510
|
+
onChange === null || onChange === void 0 ? void 0 : onChange({
|
|
12511
|
+
shopId: shopId,
|
|
12512
|
+
imgList: []
|
|
12513
|
+
});
|
|
12514
|
+
};
|
|
12431
12515
|
return /*#__PURE__*/React.createElement("div", null, imgList.length === 0 ? /*#__PURE__*/React.createElement("p", {
|
|
12432
12516
|
className: "goods-title"
|
|
12433
12517
|
}, "\u6700\u591A\u6DFB\u52A0", maxLength, "\u4E2A\u5B9D\u8D1D") : /*#__PURE__*/React.createElement("p", {
|
|
12434
12518
|
className: "goods-uploaded-state"
|
|
12435
12519
|
}, "\u5DF2\u6DFB\u52A0", /*#__PURE__*/React.createElement("span", {
|
|
12436
12520
|
className: "goods-uploaded-count"
|
|
12437
|
-
}, imgList.length), "/", maxLength,
|
|
12521
|
+
}, imgList.length), "/", maxLength, /*#__PURE__*/React.createElement("span", {
|
|
12522
|
+
className: 'clear-all',
|
|
12523
|
+
onClick: clearAll
|
|
12524
|
+
}, "\u6E05\u7A7A")), /*#__PURE__*/React.createElement("div", {
|
|
12438
12525
|
ref: boxRef,
|
|
12439
12526
|
id: "goods-wrap",
|
|
12440
12527
|
className: "goodsBox goodsBox-item-horizontal--box".concat(isSingleRow ? ' single-row' : '')
|
|
@@ -12574,7 +12661,8 @@ var Invoice = function Invoice(props) {
|
|
|
12574
12661
|
}),
|
|
12575
12662
|
current = _useRef.current;
|
|
12576
12663
|
var handleInputChange = function handleInputChange(e) {
|
|
12577
|
-
var
|
|
12664
|
+
var _e$target$value;
|
|
12665
|
+
var ordinaryTaitou = (_e$target$value = e.target.value) === null || _e$target$value === void 0 ? void 0 : _e$target$value.trim();
|
|
12578
12666
|
setVisible(false);
|
|
12579
12667
|
setList([]);
|
|
12580
12668
|
var newValue = _objectSpread2(_objectSpread2({}, value), {}, {
|
|
@@ -12597,8 +12685,9 @@ var Invoice = function Invoice(props) {
|
|
|
12597
12685
|
handleChange(ordinaryTaitou);
|
|
12598
12686
|
};
|
|
12599
12687
|
var handleValueClick = function handleValueClick(e) {
|
|
12688
|
+
var _e$target$value2;
|
|
12600
12689
|
var newValue = _objectSpread2(_objectSpread2({}, value), {}, {
|
|
12601
|
-
ordinarySerial: e.target.value
|
|
12690
|
+
ordinarySerial: (_e$target$value2 = e.target.value) === null || _e$target$value2 === void 0 ? void 0 : _e$target$value2.trim()
|
|
12602
12691
|
});
|
|
12603
12692
|
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2({}, newValue));
|
|
12604
12693
|
};
|
|
@@ -12909,7 +12998,8 @@ var Payment = function Payment(props) {
|
|
|
12909
12998
|
// }
|
|
12910
12999
|
// }, [shopId, shopList]);
|
|
12911
13000
|
var changeValue = function changeValue(e, type) {
|
|
12912
|
-
var
|
|
13001
|
+
var _e$target$value;
|
|
13002
|
+
var newValue = _objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, type, (_e$target$value = e.target.value) === null || _e$target$value === void 0 ? void 0 : _e$target$value.trim()));
|
|
12913
13003
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
12914
13004
|
type === 'enterprisePaymentTid' && (onSearch === null || onSearch === void 0 ? void 0 : onSearch(e));
|
|
12915
13005
|
};
|
|
@@ -12970,7 +13060,8 @@ var Payment = function Payment(props) {
|
|
|
12970
13060
|
return changeValue(e, item.name);
|
|
12971
13061
|
},
|
|
12972
13062
|
onBlur: function onBlur(e) {
|
|
12973
|
-
|
|
13063
|
+
var _e$target$value2;
|
|
13064
|
+
return _onBlur === null || _onBlur === void 0 ? void 0 : _onBlur((_e$target$value2 = e.target.value) === null || _e$target$value2 === void 0 ? void 0 : _e$target$value2.trim(), item.name);
|
|
12974
13065
|
}
|
|
12975
13066
|
}), (replaceValueCh === null || replaceValueCh === void 0 ? void 0 : replaceValueCh[item.name]) && /*#__PURE__*/React.createElement("p", {
|
|
12976
13067
|
style: {
|
|
@@ -13263,7 +13354,8 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
13263
13354
|
disabled: disabled || isEdit,
|
|
13264
13355
|
placeholder: "\u7269\u6D41\u5355\u53F7",
|
|
13265
13356
|
onChange: function onChange(e) {
|
|
13266
|
-
|
|
13357
|
+
var _e$target$value;
|
|
13358
|
+
return changeHandle((_e$target$value = e.target.value) === null || _e$target$value === void 0 ? void 0 : _e$target$value.trim(), 'interceptCode');
|
|
13267
13359
|
},
|
|
13268
13360
|
value: value === null || value === void 0 ? void 0 : value.interceptCode
|
|
13269
13361
|
}))), /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Item, {
|
|
@@ -13338,7 +13430,8 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
13338
13430
|
disabled: disabled || isEdit,
|
|
13339
13431
|
placeholder: senderMobileLabel,
|
|
13340
13432
|
onChange: function onChange(e) {
|
|
13341
|
-
|
|
13433
|
+
var _e$target$value2;
|
|
13434
|
+
return changeHandle((_e$target$value2 = e.target.value) === null || _e$target$value2 === void 0 ? void 0 : _e$target$value2.trim(), 'interceptSenderMobile');
|
|
13342
13435
|
}
|
|
13343
13436
|
})), /*#__PURE__*/React.createElement(Item, {
|
|
13344
13437
|
label: '退回地址',
|
|
@@ -13397,7 +13490,8 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
13397
13490
|
},
|
|
13398
13491
|
placeholder: "\u5176\u4ED6",
|
|
13399
13492
|
onChange: function onChange(e) {
|
|
13400
|
-
|
|
13493
|
+
var _e$target$value3;
|
|
13494
|
+
return changeHandle((_e$target$value3 = e.target.value) === null || _e$target$value3 === void 0 ? void 0 : _e$target$value3.trim(), 'interceptLogisticsStatusOther');
|
|
13401
13495
|
}
|
|
13402
13496
|
})), /*#__PURE__*/React.createElement(Item, {
|
|
13403
13497
|
label: '拦截状态',
|
|
@@ -13451,7 +13545,8 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
13451
13545
|
disabled: true,
|
|
13452
13546
|
placeholder: "\u63A5\u53E3\u72B6\u6001\u539F\u56E0",
|
|
13453
13547
|
onChange: function onChange(e) {
|
|
13454
|
-
|
|
13548
|
+
var _e$target$value4;
|
|
13549
|
+
return changeHandle((_e$target$value4 = e.target.value) === null || _e$target$value4 === void 0 ? void 0 : _e$target$value4.trim(), 'interceptLogisticsApiStatusReason');
|
|
13455
13550
|
}
|
|
13456
13551
|
})));
|
|
13457
13552
|
};
|
|
@@ -13527,7 +13622,7 @@ var LogisticsTrajectory = function LogisticsTrajectory(props) {
|
|
|
13527
13622
|
trajectoryApiStatus = _props$trajectoryApiS === void 0 ? false : _props$trajectoryApiS;
|
|
13528
13623
|
var handleInputChange = function handleInputChange(e, type) {
|
|
13529
13624
|
var val = e.target.value;
|
|
13530
|
-
typeof onChange === 'function' && onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, type, val)));
|
|
13625
|
+
typeof onChange === 'function' && onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, type, val === null || val === void 0 ? void 0 : val.trim())));
|
|
13531
13626
|
};
|
|
13532
13627
|
var handelSelectChange = function handelSelectChange(val) {
|
|
13533
13628
|
typeof onChange === 'function' && onChange(_objectSpread2(_objectSpread2({}, value), {}, {
|
|
@@ -14009,7 +14104,7 @@ var jstGoods = function jstGoods(props) {
|
|
|
14009
14104
|
};
|
|
14010
14105
|
var changeInputHandle = function changeInputHandle(val, type) {
|
|
14011
14106
|
var changeOrderInfo = _objectSpread2({}, value[changeIndex]);
|
|
14012
|
-
changeOrderInfo[type] = val;
|
|
14107
|
+
changeOrderInfo[type] = val === null || val === void 0 ? void 0 : val.trim();
|
|
14013
14108
|
var newList = _toConsumableArray(value);
|
|
14014
14109
|
newList[changeIndex] = changeOrderInfo;
|
|
14015
14110
|
onChange === null || onChange === void 0 ? void 0 : onChange(newList);
|
|
@@ -14931,6 +15026,13 @@ var wdtColumns = [{
|
|
|
14931
15026
|
title: '辅助单位',
|
|
14932
15027
|
width: 150,
|
|
14933
15028
|
render: renderTextEllipsis
|
|
15029
|
+
}, {
|
|
15030
|
+
dataIndex: 'skuType',
|
|
15031
|
+
title: '是否组合装',
|
|
15032
|
+
width: 150,
|
|
15033
|
+
render: function render(type) {
|
|
15034
|
+
return type === 'suite' ? '组合装' : '非组合装';
|
|
15035
|
+
}
|
|
14934
15036
|
}];
|
|
14935
15037
|
|
|
14936
15038
|
var bse3Columns = [{
|
|
@@ -15321,34 +15423,75 @@ var jyColumns = [{
|
|
|
15321
15423
|
}
|
|
15322
15424
|
}];
|
|
15323
15425
|
|
|
15426
|
+
var getYesOrNo$2 = function getYesOrNo(val) {
|
|
15427
|
+
if (!isBoolean(val)) return null;
|
|
15428
|
+
return val ? '是' : '否';
|
|
15429
|
+
};
|
|
15324
15430
|
var jkyColumns = [{
|
|
15325
|
-
dataIndex: '
|
|
15326
|
-
title: "\u8D27\u54C1\
|
|
15431
|
+
dataIndex: 'goodName',
|
|
15432
|
+
title: "\u8D27\u54C1\u540D\u79F0",
|
|
15327
15433
|
align: 'center',
|
|
15328
15434
|
ellipsis: true,
|
|
15329
15435
|
width: 150,
|
|
15330
15436
|
render: renderTextEllipsis
|
|
15331
15437
|
}, {
|
|
15332
|
-
dataIndex: '
|
|
15333
|
-
title: "\u8D27\u54C1\
|
|
15438
|
+
dataIndex: 'goodNo',
|
|
15439
|
+
title: "\u8D27\u54C1\u7F16\u53F7",
|
|
15334
15440
|
align: 'center',
|
|
15335
15441
|
ellipsis: true,
|
|
15336
15442
|
width: 150,
|
|
15337
15443
|
render: renderTextEllipsis
|
|
15338
15444
|
}, {
|
|
15339
|
-
dataIndex: '
|
|
15445
|
+
dataIndex: 'goodId',
|
|
15340
15446
|
title: "\u8D27\u54C1ID",
|
|
15341
15447
|
align: 'center',
|
|
15342
15448
|
ellipsis: true,
|
|
15343
15449
|
width: 150,
|
|
15344
15450
|
render: renderTextEllipsis
|
|
15345
15451
|
}, {
|
|
15346
|
-
dataIndex: '
|
|
15452
|
+
dataIndex: 'goodPicUrl',
|
|
15453
|
+
title: "\u8D27\u54C1\u4E3B\u56FE",
|
|
15454
|
+
align: 'center',
|
|
15455
|
+
ellipsis: true,
|
|
15456
|
+
width: 150,
|
|
15457
|
+
render: function render(picUrl) {
|
|
15458
|
+
return /*#__PURE__*/React.createElement("img", {
|
|
15459
|
+
style: {
|
|
15460
|
+
width: '30px',
|
|
15461
|
+
height: '30px',
|
|
15462
|
+
objectFit: 'contain'
|
|
15463
|
+
},
|
|
15464
|
+
src: picUrl
|
|
15465
|
+
});
|
|
15466
|
+
}
|
|
15467
|
+
}, {
|
|
15468
|
+
dataIndex: 'goodShortName',
|
|
15469
|
+
title: "\u8D27\u54C1\u522B\u540D",
|
|
15470
|
+
align: 'center',
|
|
15471
|
+
ellipsis: true,
|
|
15472
|
+
width: 150,
|
|
15473
|
+
render: renderTextEllipsis
|
|
15474
|
+
}, {
|
|
15475
|
+
dataIndex: 'specBarcode',
|
|
15347
15476
|
title: "\u8D27\u54C1\u6761\u7801",
|
|
15348
15477
|
align: 'center',
|
|
15349
15478
|
ellipsis: true,
|
|
15350
15479
|
width: 150,
|
|
15351
15480
|
render: renderTextEllipsis
|
|
15481
|
+
}, {
|
|
15482
|
+
dataIndex: 'categoryName',
|
|
15483
|
+
title: "\u8D27\u54C1\u7C7B\u522B",
|
|
15484
|
+
align: 'center',
|
|
15485
|
+
ellipsis: true,
|
|
15486
|
+
width: 150,
|
|
15487
|
+
render: renderTextEllipsis
|
|
15488
|
+
}, {
|
|
15489
|
+
dataIndex: 'brandName',
|
|
15490
|
+
title: "\u54C1\u724C",
|
|
15491
|
+
align: 'center',
|
|
15492
|
+
ellipsis: true,
|
|
15493
|
+
width: 200,
|
|
15494
|
+
render: renderTextEllipsis
|
|
15352
15495
|
}, {
|
|
15353
15496
|
dataIndex: 'specName',
|
|
15354
15497
|
title: "\u89C4\u683C\u540D\u79F0",
|
|
@@ -15364,7 +15507,14 @@ var jkyColumns = [{
|
|
|
15364
15507
|
width: 150,
|
|
15365
15508
|
render: renderTextEllipsis
|
|
15366
15509
|
}, {
|
|
15367
|
-
dataIndex: '
|
|
15510
|
+
dataIndex: 'specNo',
|
|
15511
|
+
title: "\u89C4\u683C\u7F16\u7801",
|
|
15512
|
+
align: 'center',
|
|
15513
|
+
ellipsis: true,
|
|
15514
|
+
width: 150,
|
|
15515
|
+
render: renderTextEllipsis
|
|
15516
|
+
}, {
|
|
15517
|
+
dataIndex: 'specImgUrl',
|
|
15368
15518
|
title: "\u89C4\u683C\u56FE\u7247",
|
|
15369
15519
|
align: 'center',
|
|
15370
15520
|
ellipsis: true,
|
|
@@ -15380,162 +15530,78 @@ var jkyColumns = [{
|
|
|
15380
15530
|
});
|
|
15381
15531
|
}
|
|
15382
15532
|
}, {
|
|
15383
|
-
dataIndex: '
|
|
15384
|
-
title: "\
|
|
15385
|
-
width: 100,
|
|
15386
|
-
render: function render(val) {
|
|
15387
|
-
return /*#__PURE__*/React.createElement("span", null, val);
|
|
15388
|
-
}
|
|
15389
|
-
}, {
|
|
15390
|
-
dataIndex: 'actualSendCount',
|
|
15391
|
-
title: "\u5B9E\u53D1\u6570\u91CF",
|
|
15392
|
-
width: 150,
|
|
15393
|
-
render: renderTextEllipsis
|
|
15394
|
-
}, {
|
|
15395
|
-
dataIndex: 'sellPrice',
|
|
15396
|
-
title: "\u5355\u4EF7",
|
|
15397
|
-
width: 150,
|
|
15398
|
-
render: function render(val) {
|
|
15399
|
-
return val || val === 0 ? Number(val).toFixed(2) : '';
|
|
15400
|
-
}
|
|
15401
|
-
}, {
|
|
15402
|
-
dataIndex: 'sellTotal',
|
|
15403
|
-
title: "\u91D1\u989D",
|
|
15404
|
-
width: 150
|
|
15405
|
-
}, {
|
|
15406
|
-
dataIndex: 'discountTotal',
|
|
15407
|
-
title: "\u62B5\u6263\u91D1\u989D",
|
|
15408
|
-
width: 150
|
|
15409
|
-
}, {
|
|
15410
|
-
dataIndex: 'shareFavourableFee',
|
|
15411
|
-
title: "\u5206\u644A\u91D1\u989D",
|
|
15412
|
-
width: 150
|
|
15413
|
-
}, {
|
|
15414
|
-
dataIndex: 'shareFavourableAfterFee',
|
|
15415
|
-
title: "\u5206\u644A\u540E\u91D1\u989D",
|
|
15416
|
-
width: 150
|
|
15417
|
-
}, {
|
|
15418
|
-
dataIndex: 'customerPrice',
|
|
15419
|
-
title: "\u7EC8\u7AEF\u9500\u552E\u5355\u4EF7",
|
|
15420
|
-
width: 150
|
|
15421
|
-
}, {
|
|
15422
|
-
dataIndex: 'customerTotal',
|
|
15423
|
-
title: "\u7EC8\u7AEF\u9500\u552E\u91D1\u989D",
|
|
15424
|
-
width: 150
|
|
15425
|
-
}, {
|
|
15426
|
-
dataIndex: 'divideSellTotal',
|
|
15427
|
-
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
15428
|
-
width: 150
|
|
15429
|
-
}, {
|
|
15430
|
-
dataIndex: 'isGift',
|
|
15431
|
-
title: "\u662F\u5426\u8D60\u54C1",
|
|
15432
|
-
width: 150,
|
|
15433
|
-
render: function render(val) {
|
|
15434
|
-
return /*#__PURE__*/React.createElement("span", null, val === '1' ? '是' : '否');
|
|
15435
|
-
}
|
|
15436
|
-
}, {
|
|
15437
|
-
dataIndex: 'isFit',
|
|
15438
|
-
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
15439
|
-
width: 150,
|
|
15440
|
-
render: function render(val) {
|
|
15441
|
-
return /*#__PURE__*/React.createElement("span", null, val === '1' ? '是' : '否');
|
|
15442
|
-
}
|
|
15443
|
-
}, {
|
|
15444
|
-
dataIndex: 'isPresell',
|
|
15445
|
-
title: "\u662F\u5426\u9884\u552E\u8D27\u54C1",
|
|
15446
|
-
width: 150,
|
|
15447
|
-
render: function render(val) {
|
|
15448
|
-
return /*#__PURE__*/React.createElement("span", null, val === '1' ? '是' : '否');
|
|
15449
|
-
}
|
|
15450
|
-
}, {
|
|
15451
|
-
dataIndex: 'brandName',
|
|
15452
|
-
title: "\u54C1\u724C",
|
|
15533
|
+
dataIndex: 'colorName',
|
|
15534
|
+
title: "\u989C\u8272\u540D\u79F0",
|
|
15453
15535
|
align: 'center',
|
|
15454
15536
|
ellipsis: true,
|
|
15455
|
-
width:
|
|
15537
|
+
width: 150,
|
|
15456
15538
|
render: renderTextEllipsis
|
|
15457
15539
|
}, {
|
|
15458
|
-
dataIndex: '
|
|
15459
|
-
title: "\
|
|
15540
|
+
dataIndex: 'colorCode',
|
|
15541
|
+
title: "\u989C\u8272\u4EE3\u7801",
|
|
15460
15542
|
align: 'center',
|
|
15461
15543
|
ellipsis: true,
|
|
15462
15544
|
width: 150,
|
|
15463
15545
|
render: renderTextEllipsis
|
|
15464
15546
|
}, {
|
|
15465
|
-
dataIndex: '
|
|
15466
|
-
title: "\
|
|
15547
|
+
dataIndex: 'sizeName',
|
|
15548
|
+
title: "\u5C3A\u7801\u540D\u79F0",
|
|
15467
15549
|
align: 'center',
|
|
15468
15550
|
ellipsis: true,
|
|
15469
|
-
width:
|
|
15551
|
+
width: 150,
|
|
15470
15552
|
render: renderTextEllipsis
|
|
15471
15553
|
}, {
|
|
15472
|
-
dataIndex: '
|
|
15473
|
-
title: "\
|
|
15554
|
+
dataIndex: 'sizeCode',
|
|
15555
|
+
title: "\u5C3A\u7801\u4EE3\u7801",
|
|
15474
15556
|
align: 'center',
|
|
15475
15557
|
ellipsis: true,
|
|
15476
|
-
width:
|
|
15558
|
+
width: 150,
|
|
15477
15559
|
render: renderTextEllipsis
|
|
15478
15560
|
}, {
|
|
15479
|
-
dataIndex: '
|
|
15480
|
-
title: "\
|
|
15561
|
+
dataIndex: 'marketPrice',
|
|
15562
|
+
title: "\u5E02\u573A\u4EF7",
|
|
15481
15563
|
align: 'center',
|
|
15482
15564
|
ellipsis: true,
|
|
15483
|
-
width:
|
|
15484
|
-
render: renderTextEllipsis
|
|
15485
|
-
}, {
|
|
15486
|
-
dataIndex: 'tradeGoodsName',
|
|
15487
|
-
title: "\u4EA4\u6613\u8D27\u54C1\u540D\u79F0",
|
|
15488
|
-
ellipsis: true,
|
|
15489
|
-
width: 250,
|
|
15490
|
-
render: renderTextEllipsis
|
|
15491
|
-
}, {
|
|
15492
|
-
dataIndex: 'tradeGoodsSpec',
|
|
15493
|
-
title: "\u4EA4\u6613\u89C4\u683C\u540D\u79F0",
|
|
15494
|
-
ellipsis: true,
|
|
15495
|
-
width: 250,
|
|
15496
|
-
render: renderTextEllipsis
|
|
15497
|
-
}, {
|
|
15498
|
-
dataIndex: 'sourceSubtradeNo',
|
|
15499
|
-
title: "\u7F51\u5E97\u5B50\u8BA2\u5355\u53F7",
|
|
15500
|
-
ellipsis: true,
|
|
15501
|
-
width: 250,
|
|
15502
|
-
render: renderTextEllipsis
|
|
15503
|
-
}, {
|
|
15504
|
-
dataIndex: 'platGoodsId',
|
|
15505
|
-
title: "\u5E73\u53F0\u5546\u54C1ID",
|
|
15506
|
-
ellipsis: true,
|
|
15507
|
-
width: 250,
|
|
15565
|
+
width: 150,
|
|
15508
15566
|
render: renderTextEllipsis
|
|
15509
15567
|
}, {
|
|
15510
|
-
dataIndex: '
|
|
15511
|
-
title: "\
|
|
15568
|
+
dataIndex: 'retailPrice',
|
|
15569
|
+
title: "\u96F6\u552E\u4EF7",
|
|
15570
|
+
align: 'center',
|
|
15512
15571
|
ellipsis: true,
|
|
15513
|
-
width:
|
|
15572
|
+
width: 150,
|
|
15514
15573
|
render: renderTextEllipsis
|
|
15515
15574
|
}, {
|
|
15516
|
-
dataIndex: '
|
|
15517
|
-
title: "\
|
|
15575
|
+
dataIndex: 'memberPrice',
|
|
15576
|
+
title: "\u4F1A\u5458\u4EF7",
|
|
15577
|
+
align: 'center',
|
|
15518
15578
|
ellipsis: true,
|
|
15519
|
-
width:
|
|
15579
|
+
width: 150,
|
|
15520
15580
|
render: renderTextEllipsis
|
|
15521
15581
|
}, {
|
|
15522
|
-
dataIndex: '
|
|
15523
|
-
title: "\
|
|
15582
|
+
dataIndex: 'costPrice',
|
|
15583
|
+
title: "\u6210\u672C\u4EF7",
|
|
15584
|
+
align: 'center',
|
|
15524
15585
|
ellipsis: true,
|
|
15525
|
-
width:
|
|
15586
|
+
width: 150,
|
|
15526
15587
|
render: renderTextEllipsis
|
|
15527
15588
|
}, {
|
|
15528
|
-
dataIndex: '
|
|
15529
|
-
title: "\
|
|
15589
|
+
dataIndex: 'isVirtual',
|
|
15590
|
+
title: "\u662F\u5426\u865A\u62DF\u5546\u54C1",
|
|
15591
|
+
align: 'center',
|
|
15530
15592
|
ellipsis: true,
|
|
15531
|
-
width:
|
|
15532
|
-
render:
|
|
15593
|
+
width: 150,
|
|
15594
|
+
render: function render(val) {
|
|
15595
|
+
return renderTextEllipsis(getYesOrNo$2(val));
|
|
15596
|
+
}
|
|
15533
15597
|
}, {
|
|
15534
|
-
dataIndex: '
|
|
15535
|
-
title: "\
|
|
15598
|
+
dataIndex: 'skuType',
|
|
15599
|
+
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
15536
15600
|
ellipsis: true,
|
|
15537
|
-
width:
|
|
15538
|
-
render:
|
|
15601
|
+
width: 150,
|
|
15602
|
+
render: function render(val) {
|
|
15603
|
+
return renderTextEllipsis(getYesOrNo$2(val === 'combine'));
|
|
15604
|
+
}
|
|
15539
15605
|
}];
|
|
15540
15606
|
|
|
15541
15607
|
var getColumnsMap = function getColumnsMap() {
|
|
@@ -15809,7 +15875,7 @@ var transformFormData = function transformFormData(formData) {
|
|
|
15809
15875
|
if (formData[key]) {
|
|
15810
15876
|
var _formData$key, _formData$key2, _formData$key3, _formData$key4;
|
|
15811
15877
|
var value = ((_formData$key = formData[key]) === null || _formData$key === void 0 ? void 0 : _formData$key.type) ? (_formData$key2 = formData[key]) === null || _formData$key2 === void 0 ? void 0 : _formData$key2.inputValue : formData[key];
|
|
15812
|
-
var compareSymbol = ((_formData$key3 = formData[key]) === null || _formData$key3 === void 0 ? void 0 : _formData$key3.type) ? (_formData$key4 = formData[key]) === null || _formData$key4 === void 0 ? void 0 : _formData$key4.type : 'like';
|
|
15878
|
+
var compareSymbol = ((_formData$key3 = formData[key]) === null || _formData$key3 === void 0 ? void 0 : _formData$key3.type) ? (_formData$key4 = formData[key]) === null || _formData$key4 === void 0 ? void 0 : _formData$key4.type : Array.isArray(value) ? 'eq' : 'like';
|
|
15813
15879
|
conditionList.push({
|
|
15814
15880
|
leftValue: key,
|
|
15815
15881
|
compareSymbol: compareSymbol,
|
|
@@ -15955,6 +16021,24 @@ var GoodList = function GoodList(props, ref) {
|
|
|
15955
16021
|
};
|
|
15956
16022
|
})
|
|
15957
16023
|
}
|
|
16024
|
+
}, {
|
|
16025
|
+
label: '是否组合装',
|
|
16026
|
+
name: 'skuType',
|
|
16027
|
+
dataIndex: 'skuType',
|
|
16028
|
+
type: 'select',
|
|
16029
|
+
formItemProps: {
|
|
16030
|
+
mode: 'multiple',
|
|
16031
|
+
filterOption: function filterOption(input, option) {
|
|
16032
|
+
return option.label.includes(input);
|
|
16033
|
+
},
|
|
16034
|
+
options: [{
|
|
16035
|
+
label: '组合装',
|
|
16036
|
+
value: 'suite'
|
|
16037
|
+
}, {
|
|
16038
|
+
label: '非组合装',
|
|
16039
|
+
value: ''
|
|
16040
|
+
}]
|
|
16041
|
+
}
|
|
15958
16042
|
}];
|
|
15959
16043
|
var rowSelection = {
|
|
15960
16044
|
selectedRowKeys: selectIds,
|
|
@@ -18778,13 +18862,15 @@ var JyGoodsModal$1 = /*#__PURE__*/forwardRef(JyGoodsModal);
|
|
|
18778
18862
|
var getTableData$6 = function getTableData(_ref, formData) {
|
|
18779
18863
|
var current = _ref.current,
|
|
18780
18864
|
pageSize = _ref.pageSize;
|
|
18865
|
+
var conditionList = transformFormData(formData);
|
|
18781
18866
|
return extendRequest('/qy/gdfw/product/product/page', {
|
|
18782
18867
|
method: 'post',
|
|
18783
|
-
data:
|
|
18868
|
+
data: {
|
|
18784
18869
|
pageSize: pageSize,
|
|
18785
18870
|
pageNo: current,
|
|
18786
|
-
platform: '
|
|
18787
|
-
|
|
18871
|
+
platform: 'JKY_ERP',
|
|
18872
|
+
conditionList: conditionList
|
|
18873
|
+
}
|
|
18788
18874
|
}).then(function (res) {
|
|
18789
18875
|
var _res$data = res.data,
|
|
18790
18876
|
_res$data$productSkuL = _res$data.productSkuList,
|
|
@@ -18807,13 +18893,15 @@ var searchFormData$5 = [{
|
|
|
18807
18893
|
}, {
|
|
18808
18894
|
label: '规格编码',
|
|
18809
18895
|
name: 'skuCode',
|
|
18810
|
-
dataIndex: 'specNo'
|
|
18896
|
+
dataIndex: 'specNo',
|
|
18897
|
+
type: 'optionalInput'
|
|
18811
18898
|
}, {
|
|
18812
|
-
label: '
|
|
18899
|
+
label: '货品名称',
|
|
18813
18900
|
name: 'goodName'
|
|
18814
18901
|
}, {
|
|
18815
|
-
label: '
|
|
18816
|
-
name: 'goodNo'
|
|
18902
|
+
label: '货品编码',
|
|
18903
|
+
name: 'goodNo',
|
|
18904
|
+
type: 'optionalInput'
|
|
18817
18905
|
}];
|
|
18818
18906
|
var GoodList$6 = function GoodList(props, ref) {
|
|
18819
18907
|
var _useState = useState([]),
|
|
@@ -18883,8 +18971,8 @@ var GoodList$6 = function GoodList(props, ref) {
|
|
|
18883
18971
|
getCheckboxProps: function getCheckboxProps(record) {
|
|
18884
18972
|
var options = {
|
|
18885
18973
|
disabled: (props.selectedRows || []).map(function (row) {
|
|
18886
|
-
return row.
|
|
18887
|
-
}).includes(record.
|
|
18974
|
+
return row.specId || record.id;
|
|
18975
|
+
}).includes(record.specId || record.id),
|
|
18888
18976
|
name: record.id
|
|
18889
18977
|
};
|
|
18890
18978
|
return options;
|
|
@@ -20331,7 +20419,7 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
20331
20419
|
};
|
|
20332
20420
|
};
|
|
20333
20421
|
|
|
20334
|
-
var getYesOrNo$
|
|
20422
|
+
var getYesOrNo$3 = function getYesOrNo(val) {
|
|
20335
20423
|
if (isNull(val)) return null;
|
|
20336
20424
|
return val ? '是' : '否';
|
|
20337
20425
|
};
|
|
@@ -20482,7 +20570,7 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
20482
20570
|
label: '否',
|
|
20483
20571
|
value: false
|
|
20484
20572
|
}]
|
|
20485
|
-
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$
|
|
20573
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$3(val));
|
|
20486
20574
|
},
|
|
20487
20575
|
width: 100
|
|
20488
20576
|
}]
|
|
@@ -20494,7 +20582,7 @@ var isNumberOrNumberString$1 = function isNumberOrNumberString(value) {
|
|
|
20494
20582
|
if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
|
|
20495
20583
|
return false;
|
|
20496
20584
|
};
|
|
20497
|
-
var getYesOrNo$
|
|
20585
|
+
var getYesOrNo$4 = function getYesOrNo(val) {
|
|
20498
20586
|
if (isNull(val)) return null;
|
|
20499
20587
|
return val ? '是' : '否';
|
|
20500
20588
|
};
|
|
@@ -20609,7 +20697,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
20609
20697
|
title: "\u662F\u5426\u53D6\u6D88",
|
|
20610
20698
|
width: 150,
|
|
20611
20699
|
render: function render(val) {
|
|
20612
|
-
return /*#__PURE__*/React.createElement("span", null, getYesOrNo$
|
|
20700
|
+
return /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
|
|
20613
20701
|
}
|
|
20614
20702
|
}, {
|
|
20615
20703
|
dataIndex: 'isGift',
|
|
@@ -20628,7 +20716,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
20628
20716
|
label: '否',
|
|
20629
20717
|
value: 0
|
|
20630
20718
|
}]
|
|
20631
|
-
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$
|
|
20719
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
|
|
20632
20720
|
}
|
|
20633
20721
|
}, {
|
|
20634
20722
|
dataIndex: 'skuNote',
|
|
@@ -20754,7 +20842,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
20754
20842
|
label: '否',
|
|
20755
20843
|
value: 0
|
|
20756
20844
|
}]
|
|
20757
|
-
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$
|
|
20845
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
|
|
20758
20846
|
}
|
|
20759
20847
|
}].map(function (item) {
|
|
20760
20848
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
@@ -20883,7 +20971,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
20883
20971
|
label: '否',
|
|
20884
20972
|
value: 0
|
|
20885
20973
|
}]
|
|
20886
|
-
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$
|
|
20974
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
|
|
20887
20975
|
}
|
|
20888
20976
|
}].map(function (item) {
|
|
20889
20977
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
@@ -21739,6 +21827,11 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
21739
21827
|
title: "\u4F9B\u5E94\u5546\u7F16\u7801",
|
|
21740
21828
|
width: 150,
|
|
21741
21829
|
render: renderTextEllipsis
|
|
21830
|
+
}, {
|
|
21831
|
+
dataIndex: 'remark',
|
|
21832
|
+
title: "\u5907\u6CE8",
|
|
21833
|
+
width: 200,
|
|
21834
|
+
render: renderTextEllipsis
|
|
21742
21835
|
}].map(function (item) {
|
|
21743
21836
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
21744
21837
|
align: 'center',
|
|
@@ -22523,7 +22616,7 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22523
22616
|
}
|
|
22524
22617
|
}, {
|
|
22525
22618
|
dataIndex: 'sellTotal',
|
|
22526
|
-
title: "\u91D1\u989D",
|
|
22619
|
+
title: "\u603B\u91D1\u989D",
|
|
22527
22620
|
width: 150
|
|
22528
22621
|
}, {
|
|
22529
22622
|
dataIndex: 'discountTotal',
|
|
@@ -22548,7 +22641,22 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22548
22641
|
}, {
|
|
22549
22642
|
dataIndex: 'divideSellTotal',
|
|
22550
22643
|
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
22551
|
-
width: 150
|
|
22644
|
+
width: 150,
|
|
22645
|
+
render: function render(val, record, index) {
|
|
22646
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
22647
|
+
style: {
|
|
22648
|
+
width: 130
|
|
22649
|
+
},
|
|
22650
|
+
value: val,
|
|
22651
|
+
min: 0,
|
|
22652
|
+
precision: 2,
|
|
22653
|
+
onChange: function onChange(num) {
|
|
22654
|
+
updateDataHandle({
|
|
22655
|
+
divideSellTotal: num
|
|
22656
|
+
}, index);
|
|
22657
|
+
}
|
|
22658
|
+
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
22659
|
+
}
|
|
22552
22660
|
}, {
|
|
22553
22661
|
dataIndex: 'isGift',
|
|
22554
22662
|
title: "\u662F\u5426\u8D60\u54C1",
|
|
@@ -22567,12 +22675,12 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22567
22675
|
},
|
|
22568
22676
|
options: [{
|
|
22569
22677
|
label: '是',
|
|
22570
|
-
value:
|
|
22678
|
+
value: 1
|
|
22571
22679
|
}, {
|
|
22572
22680
|
label: '否',
|
|
22573
|
-
value:
|
|
22681
|
+
value: 0
|
|
22574
22682
|
}]
|
|
22575
|
-
}) : /*#__PURE__*/React.createElement("span", null, val
|
|
22683
|
+
}) : /*#__PURE__*/React.createElement("span", null, val == 1 ? '是' : '否');
|
|
22576
22684
|
}
|
|
22577
22685
|
}, {
|
|
22578
22686
|
dataIndex: 'isFit',
|
|
@@ -22592,12 +22700,12 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22592
22700
|
},
|
|
22593
22701
|
options: [{
|
|
22594
22702
|
label: '是',
|
|
22595
|
-
value:
|
|
22703
|
+
value: 1
|
|
22596
22704
|
}, {
|
|
22597
22705
|
label: '否',
|
|
22598
|
-
value:
|
|
22706
|
+
value: 0
|
|
22599
22707
|
}]
|
|
22600
|
-
}) : /*#__PURE__*/React.createElement("span", null, val
|
|
22708
|
+
}) : /*#__PURE__*/React.createElement("span", null, val == 1 ? '是' : '否');
|
|
22601
22709
|
}
|
|
22602
22710
|
}, {
|
|
22603
22711
|
dataIndex: 'isPresell',
|
|
@@ -22622,7 +22730,7 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22622
22730
|
label: '否',
|
|
22623
22731
|
value: '0'
|
|
22624
22732
|
}]
|
|
22625
|
-
}) : /*#__PURE__*/React.createElement("span", null, val
|
|
22733
|
+
}) : /*#__PURE__*/React.createElement("span", null, val == '1' ? '是' : '否');
|
|
22626
22734
|
}
|
|
22627
22735
|
}, {
|
|
22628
22736
|
dataIndex: 'brandName',
|
|
@@ -22841,8 +22949,8 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22841
22949
|
width: 250,
|
|
22842
22950
|
render: function render(val, record, index) {
|
|
22843
22951
|
return !disabled ? /*#__PURE__*/React.createElement(ApaasInput, {
|
|
22844
|
-
onChange: function onChange(
|
|
22845
|
-
updateHandle(value, index, 'reason');
|
|
22952
|
+
onChange: function onChange(e) {
|
|
22953
|
+
updateHandle(e.target.value, index, 'reason');
|
|
22846
22954
|
}
|
|
22847
22955
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
22848
22956
|
}
|
|
@@ -22858,12 +22966,12 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22858
22966
|
},
|
|
22859
22967
|
options: [{
|
|
22860
22968
|
label: '是',
|
|
22861
|
-
value:
|
|
22969
|
+
value: 1
|
|
22862
22970
|
}, {
|
|
22863
22971
|
label: '否',
|
|
22864
|
-
value:
|
|
22972
|
+
value: 0
|
|
22865
22973
|
}]
|
|
22866
|
-
}) : /*#__PURE__*/React.createElement("span", null, val ===
|
|
22974
|
+
}) : /*#__PURE__*/React.createElement("span", null, val === 1 ? '是' : '否');
|
|
22867
22975
|
}
|
|
22868
22976
|
}, {
|
|
22869
22977
|
dataIndex: 'isFit',
|
|
@@ -22877,12 +22985,12 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22877
22985
|
},
|
|
22878
22986
|
options: [{
|
|
22879
22987
|
label: '是',
|
|
22880
|
-
value:
|
|
22988
|
+
value: 1
|
|
22881
22989
|
}, {
|
|
22882
22990
|
label: '否',
|
|
22883
|
-
value:
|
|
22991
|
+
value: 0
|
|
22884
22992
|
}]
|
|
22885
|
-
}) : /*#__PURE__*/React.createElement("span", null, val ===
|
|
22993
|
+
}) : /*#__PURE__*/React.createElement("span", null, val === 1 ? '是' : '否');
|
|
22886
22994
|
}
|
|
22887
22995
|
}, {
|
|
22888
22996
|
dataIndex: 'brandName',
|
|
@@ -23266,6 +23374,13 @@ var processGoods$1 = function processGoods(_ref) {
|
|
|
23266
23374
|
canUpdateNumber: canUpdateNumber,
|
|
23267
23375
|
source: source
|
|
23268
23376
|
});
|
|
23377
|
+
} else if (isErpType.isJky(type)) {
|
|
23378
|
+
newList = processJkyGoods$1({
|
|
23379
|
+
list: list,
|
|
23380
|
+
type: type,
|
|
23381
|
+
canUpdateNumber: canUpdateNumber,
|
|
23382
|
+
source: source
|
|
23383
|
+
});
|
|
23269
23384
|
} else {
|
|
23270
23385
|
newList = processDefaultGoods({
|
|
23271
23386
|
list: list,
|
|
@@ -23314,11 +23429,45 @@ var processJyGoods = function processJyGoods(_ref2) {
|
|
|
23314
23429
|
});
|
|
23315
23430
|
});
|
|
23316
23431
|
};
|
|
23317
|
-
|
|
23318
|
-
var processWdtGoods$1 = function processWdtGoods(_ref3) {
|
|
23432
|
+
var processJkyGoods$1 = function processJkyGoods(_ref3) {
|
|
23319
23433
|
var list = _ref3.list,
|
|
23320
|
-
type = _ref3.type,
|
|
23321
23434
|
canUpdateNumber = _ref3.canUpdateNumber;
|
|
23435
|
+
return list.map(function (item) {
|
|
23436
|
+
var goodName = item.goodName,
|
|
23437
|
+
goodNo = item.goodNo,
|
|
23438
|
+
goodId = item.goodId,
|
|
23439
|
+
specBarcode = item.specBarcode,
|
|
23440
|
+
retailPrice = item.retailPrice,
|
|
23441
|
+
isGift = item.isGift,
|
|
23442
|
+
skuType = item.skuType,
|
|
23443
|
+
specImgUrl = item.specImgUrl,
|
|
23444
|
+
categoryName = item.categoryName;
|
|
23445
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
23446
|
+
cateName: categoryName,
|
|
23447
|
+
goodsName: goodName,
|
|
23448
|
+
goodsNo: goodNo,
|
|
23449
|
+
goodsId: goodId,
|
|
23450
|
+
barcode: specBarcode,
|
|
23451
|
+
skuImgUrl: specImgUrl,
|
|
23452
|
+
combinationName: goodName,
|
|
23453
|
+
combinationCode: goodNo,
|
|
23454
|
+
isGift: isGift ? 1 : 0,
|
|
23455
|
+
isFit: skuType === 'combine' ? 1 : 0,
|
|
23456
|
+
uuid: uuid(),
|
|
23457
|
+
canDelete: true,
|
|
23458
|
+
sellCount: 1,
|
|
23459
|
+
sellPrice: retailPrice,
|
|
23460
|
+
sellTotal: retailPrice ? (retailPrice * 1).toFixed(2) : '',
|
|
23461
|
+
canEdit: true,
|
|
23462
|
+
canUpdateNumber: canUpdateNumber
|
|
23463
|
+
});
|
|
23464
|
+
});
|
|
23465
|
+
};
|
|
23466
|
+
// 处理不同类型的商品数据
|
|
23467
|
+
var processWdtGoods$1 = function processWdtGoods(_ref4) {
|
|
23468
|
+
var list = _ref4.list,
|
|
23469
|
+
type = _ref4.type,
|
|
23470
|
+
canUpdateNumber = _ref4.canUpdateNumber;
|
|
23322
23471
|
return list.map(function (item) {
|
|
23323
23472
|
var processedItem = _objectSpread2(_objectSpread2({}, item), {}, {
|
|
23324
23473
|
uuid: uuid(),
|
|
@@ -23336,9 +23485,9 @@ var processWdtGoods$1 = function processWdtGoods(_ref3) {
|
|
|
23336
23485
|
return processedItem;
|
|
23337
23486
|
});
|
|
23338
23487
|
};
|
|
23339
|
-
var processBsE3Goods$1 = function processBsE3Goods(
|
|
23340
|
-
var list =
|
|
23341
|
-
canUpdateNumber =
|
|
23488
|
+
var processBsE3Goods$1 = function processBsE3Goods(_ref5) {
|
|
23489
|
+
var list = _ref5.list,
|
|
23490
|
+
canUpdateNumber = _ref5.canUpdateNumber;
|
|
23342
23491
|
return list.map(function (item) {
|
|
23343
23492
|
var specNo = item.specNo,
|
|
23344
23493
|
specId = item.specId,
|
|
@@ -23373,9 +23522,9 @@ var processBsE3Goods$1 = function processBsE3Goods(_ref4) {
|
|
|
23373
23522
|
});
|
|
23374
23523
|
});
|
|
23375
23524
|
};
|
|
23376
|
-
var processGyGoods$1 = function processGyGoods(
|
|
23377
|
-
var list =
|
|
23378
|
-
source =
|
|
23525
|
+
var processGyGoods$1 = function processGyGoods(_ref6) {
|
|
23526
|
+
var list = _ref6.list,
|
|
23527
|
+
source = _ref6.source;
|
|
23379
23528
|
var isFormWorkOrder = source === 'workOrder';
|
|
23380
23529
|
return list.map(function (item) {
|
|
23381
23530
|
var goodName = item.goodName,
|
|
@@ -23402,8 +23551,8 @@ var processGyGoods$1 = function processGyGoods(_ref5) {
|
|
|
23402
23551
|
});
|
|
23403
23552
|
});
|
|
23404
23553
|
};
|
|
23405
|
-
var processJstGoods$1 = function processJstGoods(
|
|
23406
|
-
var list =
|
|
23554
|
+
var processJstGoods$1 = function processJstGoods(_ref7) {
|
|
23555
|
+
var list = _ref7.list;
|
|
23407
23556
|
return list.map(function (item) {
|
|
23408
23557
|
return {
|
|
23409
23558
|
name: item.goodName,
|
|
@@ -23421,9 +23570,9 @@ var processJstGoods$1 = function processJstGoods(_ref6) {
|
|
|
23421
23570
|
};
|
|
23422
23571
|
});
|
|
23423
23572
|
};
|
|
23424
|
-
var processKmGoods$1 = function processKmGoods(
|
|
23425
|
-
var list =
|
|
23426
|
-
type =
|
|
23573
|
+
var processKmGoods$1 = function processKmGoods(_ref8) {
|
|
23574
|
+
var list = _ref8.list,
|
|
23575
|
+
type = _ref8.type;
|
|
23427
23576
|
var initParamsMap = {
|
|
23428
23577
|
KM_GOODS: {
|
|
23429
23578
|
num: 1
|
|
@@ -23442,7 +23591,9 @@ var processKmGoods$1 = function processKmGoods(_ref7) {
|
|
|
23442
23591
|
sysOuterId: item.goodNo,
|
|
23443
23592
|
outerId: item.goodNo,
|
|
23444
23593
|
skuSysId: item.specId,
|
|
23594
|
+
sysSkuId: item.specId,
|
|
23445
23595
|
itemSysId: item.goodId,
|
|
23596
|
+
sysItemId: item.goodId,
|
|
23446
23597
|
sysPicPath: item.goodPicUrl,
|
|
23447
23598
|
payment: null,
|
|
23448
23599
|
price: item.retailPrice,
|
|
@@ -23453,9 +23604,9 @@ var processKmGoods$1 = function processKmGoods(_ref7) {
|
|
|
23453
23604
|
}, initParamsMap[type] || {});
|
|
23454
23605
|
});
|
|
23455
23606
|
};
|
|
23456
|
-
var processDefaultGoods = function processDefaultGoods(
|
|
23457
|
-
var list =
|
|
23458
|
-
canUpdateNumber =
|
|
23607
|
+
var processDefaultGoods = function processDefaultGoods(_ref9) {
|
|
23608
|
+
var list = _ref9.list,
|
|
23609
|
+
canUpdateNumber = _ref9.canUpdateNumber;
|
|
23459
23610
|
return list.map(function (item) {
|
|
23460
23611
|
var goodsId = item.goodsId,
|
|
23461
23612
|
name = item.name,
|
|
@@ -23561,7 +23712,7 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
23561
23712
|
systemItemIds = dataSource === null || dataSource === void 0 ? void 0 : dataSource.filter(function (item) {
|
|
23562
23713
|
return item === null || item === void 0 ? void 0 : item.sysItemId;
|
|
23563
23714
|
}).map(function (item) {
|
|
23564
|
-
return (item === null || item === void 0 ? void 0 : item.sysSkuId) == '-1' ? item === null || item === void 0 ? void 0 : item.sysItemId : "".concat(item === null || item === void 0 ? void 0 : item.sysItemId, "-").concat(item === null || item === void 0 ? void 0 : item.sysSkuId);
|
|
23715
|
+
return !(item === null || item === void 0 ? void 0 : item.sysSkuId) || (item === null || item === void 0 ? void 0 : item.sysSkuId) == '-1' || (item === null || item === void 0 ? void 0 : item.sysSkuId) == (item === null || item === void 0 ? void 0 : item.sysItemId) ? item === null || item === void 0 ? void 0 : item.sysItemId : "".concat(item === null || item === void 0 ? void 0 : item.sysItemId, "-").concat(item === null || item === void 0 ? void 0 : item.sysSkuId);
|
|
23565
23716
|
});
|
|
23566
23717
|
_context.next = 3;
|
|
23567
23718
|
return servers.KM.getSupplierSingleton(systemItemIds);
|
|
@@ -23570,7 +23721,7 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
23570
23721
|
dataSource === null || dataSource === void 0 ? void 0 : (_dataSource$filter = dataSource.filter(function (item) {
|
|
23571
23722
|
return item === null || item === void 0 ? void 0 : item.sysItemId;
|
|
23572
23723
|
})) === null || _dataSource$filter === void 0 ? void 0 : _dataSource$filter.forEach(function (item) {
|
|
23573
|
-
var key = (item === null || item === void 0 ? void 0 : item.sysSkuId) == '-1' ? item === null || item === void 0 ? void 0 : item.sysItemId : "".concat(item === null || item === void 0 ? void 0 : item.sysItemId, "-").concat(item === null || item === void 0 ? void 0 : item.sysSkuId);
|
|
23724
|
+
var key = !(item === null || item === void 0 ? void 0 : item.sysSkuId) || (item === null || item === void 0 ? void 0 : item.sysSkuId) == '-1' || (item === null || item === void 0 ? void 0 : item.sysSkuId) == (item === null || item === void 0 ? void 0 : item.sysItemId) ? item === null || item === void 0 ? void 0 : item.sysItemId : "".concat(item === null || item === void 0 ? void 0 : item.sysItemId, "-").concat(item === null || item === void 0 ? void 0 : item.sysSkuId);
|
|
23574
23725
|
var supplierInfo = supplierMap.get(key);
|
|
23575
23726
|
item.supplierCode = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierCode;
|
|
23576
23727
|
item.supplierName = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierName;
|
|
@@ -23728,6 +23879,7 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
23728
23879
|
}
|
|
23729
23880
|
}), /*#__PURE__*/React.createElement("span", null, "\u5DF2\u9009\u62E9(", currentTradeOriginGoods === null || currentTradeOriginGoods === void 0 ? void 0 : currentTradeOriginGoods.length, "/", filterDataSource === null || filterDataSource === void 0 ? void 0 : filterDataSource.length, ")")));
|
|
23730
23881
|
};
|
|
23882
|
+
SelectTradeGoods.displayName = 'SelectTradeGoods';
|
|
23731
23883
|
var getButtonText = function getButtonText() {
|
|
23732
23884
|
var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
23733
23885
|
if (['KM_GOODS', 'KM_REISSUE_GOODS'].includes(type)) {
|
|
@@ -25117,21 +25269,25 @@ var getJkyOrderListSingleton = function getJkyOrderListSingleton(orderNo) {
|
|
|
25117
25269
|
extendRequest('/qy/gdfw/jky/erp/trade/fullInfo', {
|
|
25118
25270
|
method: 'post',
|
|
25119
25271
|
data: {
|
|
25120
|
-
|
|
25272
|
+
sourceTradeNos: orderNo
|
|
25121
25273
|
}
|
|
25122
25274
|
}).then(function (res) {
|
|
25123
25275
|
if (res === null || res === void 0 ? void 0 : res.success) {
|
|
25124
|
-
var _res$data, _res$
|
|
25125
|
-
if (res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 :
|
|
25126
|
-
var _filterJkyOrders
|
|
25127
|
-
res.data.trades = (_filterJkyOrders = filterJkyOrders(res === null || res === void 0 ? void 0 :
|
|
25276
|
+
var _res$data, _res$data2;
|
|
25277
|
+
if (res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.length) {
|
|
25278
|
+
var _filterJkyOrders;
|
|
25279
|
+
res.data.trades = (_filterJkyOrders = filterJkyOrders(res === null || res === void 0 ? void 0 : res.data, orderNo)) === null || _filterJkyOrders === void 0 ? void 0 : _filterJkyOrders.map(function (item) {
|
|
25128
25280
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
25281
|
+
tradeFrom: JKY_ORDER_FROM_MAP[item.tradeFrom],
|
|
25129
25282
|
tradeType: JKY_ORDER_TYPE_MAP[item.tradeType],
|
|
25130
|
-
tradeStatus: JKY_ORDER_STATUS_MAP[item.tradeStatus]
|
|
25283
|
+
tradeStatus: JKY_ORDER_STATUS_MAP[item.tradeStatus],
|
|
25284
|
+
logisticName: getJkyLogisticInfo(item, 'logisticName'),
|
|
25285
|
+
logisticCode: getJkyLogisticInfo(item, 'logisticCode'),
|
|
25286
|
+
logisticNo: getJkyLogisticInfo(item, 'logisticNo')
|
|
25131
25287
|
});
|
|
25132
25288
|
});
|
|
25133
25289
|
}
|
|
25134
|
-
resolve(((_res$
|
|
25290
|
+
resolve(((_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.trades) || []);
|
|
25135
25291
|
// 延迟10秒清除,保证订单的时效性
|
|
25136
25292
|
setTimeout(function () {
|
|
25137
25293
|
singletonMap$7.delete(orderNo);
|
|
@@ -25493,8 +25649,8 @@ var index$2 = (function (props) {
|
|
|
25493
25649
|
while (1) switch (_context8.prev = _context8.next) {
|
|
25494
25650
|
case 0:
|
|
25495
25651
|
jyUtils.getJyOrderListSingleton(orderNo).then(function (data) {
|
|
25496
|
-
var trades = (
|
|
25497
|
-
return getIsPlatformCodesIncludeOrderNos(item.
|
|
25652
|
+
var trades = (data || []).filter(function (item) {
|
|
25653
|
+
return getIsPlatformCodesIncludeOrderNos(item.tradeId, orderNo);
|
|
25498
25654
|
});
|
|
25499
25655
|
_onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, {
|
|
25500
25656
|
orders: trades,
|
|
@@ -25524,12 +25680,9 @@ var index$2 = (function (props) {
|
|
|
25524
25680
|
while (1) switch (_context9.prev = _context9.next) {
|
|
25525
25681
|
case 0:
|
|
25526
25682
|
jkyUtils.getJkyOrderListSingleton(orderNo).then(function (data) {
|
|
25527
|
-
var trades = ((data === null || data === void 0 ? void 0 : data.trades) || []).filter(function (item) {
|
|
25528
|
-
return getIsPlatformCodesIncludeOrderNos(item.platformCode, orderNo);
|
|
25529
|
-
});
|
|
25530
25683
|
_onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, {
|
|
25531
|
-
orders:
|
|
25532
|
-
showOrderInfo:
|
|
25684
|
+
orders: data || [],
|
|
25685
|
+
showOrderInfo: data || []
|
|
25533
25686
|
}));
|
|
25534
25687
|
});
|
|
25535
25688
|
onceRef.current = false;
|
|
@@ -26506,8 +26659,8 @@ var processGyOrders = function processGyOrders(_ref4) {
|
|
|
26506
26659
|
var processJyOrders = function processJyOrders(_ref5) {
|
|
26507
26660
|
var data = _ref5.data,
|
|
26508
26661
|
orderNo = _ref5.orderNo;
|
|
26509
|
-
var trades = (
|
|
26510
|
-
return getIsPlatformCodesIncludeOrderNos(item.
|
|
26662
|
+
var trades = (data || []).filter(function (item) {
|
|
26663
|
+
return getIsPlatformCodesIncludeOrderNos(item.tradeId, orderNo);
|
|
26511
26664
|
});
|
|
26512
26665
|
return trades;
|
|
26513
26666
|
};
|
|
@@ -26832,7 +26985,7 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
26832
26985
|
value === null || value === void 0 ? void 0 : (_value$kmGoods = value.kmGoods) === null || _value$kmGoods === void 0 ? void 0 : (_value$kmGoods$filter = _value$kmGoods.filter(function (item) {
|
|
26833
26986
|
return item === null || item === void 0 ? void 0 : item.sysItemId;
|
|
26834
26987
|
})) === null || _value$kmGoods$filter === void 0 ? void 0 : _value$kmGoods$filter.forEach(function (item) {
|
|
26835
|
-
var key = item.sysSkuId == '-1' ? item.sysItemId : "".concat(item.sysItemId, "-").concat(item.sysSkuId);
|
|
26988
|
+
var key = !(item === null || item === void 0 ? void 0 : item.sysSkuId) || (item === null || item === void 0 ? void 0 : item.sysSkuId) == '-1' || (item === null || item === void 0 ? void 0 : item.sysSkuId) == (item === null || item === void 0 ? void 0 : item.sysItemId) ? item === null || item === void 0 ? void 0 : item.sysItemId : "".concat(item === null || item === void 0 ? void 0 : item.sysItemId, "-").concat(item === null || item === void 0 ? void 0 : item.sysSkuId);
|
|
26836
26989
|
map[key] = item;
|
|
26837
26990
|
});
|
|
26838
26991
|
}
|
|
@@ -26873,7 +27026,8 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
26873
27026
|
hasChange = false;
|
|
26874
27027
|
currentValue = valueRef.current;
|
|
26875
27028
|
kmGoods = currentValue === null || currentValue === void 0 ? void 0 : (_currentValue$kmGoods = currentValue.kmGoods) === null || _currentValue$kmGoods === void 0 ? void 0 : _currentValue$kmGoods.map(function (item) {
|
|
26876
|
-
var
|
|
27029
|
+
var key = !(item === null || item === void 0 ? void 0 : item.sysSkuId) || (item === null || item === void 0 ? void 0 : item.sysSkuId) == '-1' || (item === null || item === void 0 ? void 0 : item.sysSkuId) == (item === null || item === void 0 ? void 0 : item.sysItemId) ? item === null || item === void 0 ? void 0 : item.sysItemId : "".concat(item === null || item === void 0 ? void 0 : item.sysItemId, "-").concat(item === null || item === void 0 ? void 0 : item.sysSkuId);
|
|
27030
|
+
var supplierInfo = supplierMap.get(key);
|
|
26877
27031
|
var newSupplierCode = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierCode;
|
|
26878
27032
|
var newSupplierName = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierName;
|
|
26879
27033
|
// 如果供应商信息有变化,标记需要更新
|
|
@@ -27157,7 +27311,6 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
27157
27311
|
orderNo: value === null || value === void 0 ? void 0 : value.orderNo,
|
|
27158
27312
|
type: compType
|
|
27159
27313
|
});
|
|
27160
|
-
console.log('getDataSourceAsync', list);
|
|
27161
27314
|
onChange(_objectSpread2(_objectSpread2({}, valueRef.current), {}, {
|
|
27162
27315
|
allOrders: list || []
|
|
27163
27316
|
}));
|
|
@@ -27193,6 +27346,7 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
27193
27346
|
}
|
|
27194
27347
|
}));
|
|
27195
27348
|
};
|
|
27349
|
+
CommonGoods.displayName = 'CommonGoods';
|
|
27196
27350
|
|
|
27197
27351
|
var componentMap$3 = {
|
|
27198
27352
|
WDT_RETURN_GOODS: {
|
|
@@ -27856,14 +28010,14 @@ var typeMap$2 = {
|
|
|
27856
28010
|
alwaysShowChooseErpGoodsBtn: true,
|
|
27857
28011
|
orderTypeKey: 'orderType',
|
|
27858
28012
|
oIdKey: 'tradeNo',
|
|
27859
|
-
outerOiIdKey: '',
|
|
27860
|
-
goodDetailsKey: '
|
|
28013
|
+
outerOiIdKey: 'sourceSubtradeNo',
|
|
28014
|
+
goodDetailsKey: 'goodsDetail',
|
|
27861
28015
|
isShowSelectTradeGoods: true,
|
|
27862
28016
|
showModeBtn: true
|
|
27863
28017
|
}
|
|
27864
28018
|
};
|
|
27865
28019
|
var PublicReissue = function PublicReissue(props) {
|
|
27866
|
-
var _typeMap$
|
|
28020
|
+
var _typeMap$type35, _typeMap$type41, _typeMap$type42, _typeMap$type43, _typeMap$type44, _value$typeMap$type$s8, _typeMap$type45, _typeMap$type46, _typeMap$type47, _typeMap$type48, _typeMap$type49, _typeMap$type50, _typeMap$type51, _typeMap$type52, _value$typeMap$type$s9, _typeMap$type53, _typeMap$type54, _typeMap$type55, _typeMap$type56;
|
|
27867
28021
|
var value = props.value,
|
|
27868
28022
|
onChange = props.onChange,
|
|
27869
28023
|
_props$reasonList = props.reasonList,
|
|
@@ -27986,7 +28140,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
27986
28140
|
value === null || value === void 0 ? void 0 : (_value$kmReissueGoods = value.kmReissueGoods) === null || _value$kmReissueGoods === void 0 ? void 0 : (_value$kmReissueGoods2 = _value$kmReissueGoods.filter(function (item) {
|
|
27987
28141
|
return item === null || item === void 0 ? void 0 : item.sysItemId;
|
|
27988
28142
|
})) === 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);
|
|
28143
|
+
var key = !(item === null || item === void 0 ? void 0 : item.sysSkuId) || (item === null || item === void 0 ? void 0 : item.sysSkuId) == '-1' || (item === null || item === void 0 ? void 0 : item.sysSkuId) == (item === null || item === void 0 ? void 0 : item.sysItemId) ? item === null || item === void 0 ? void 0 : item.sysItemId : "".concat(item === null || item === void 0 ? void 0 : item.sysItemId, "-").concat(item === null || item === void 0 ? void 0 : item.sysSkuId);
|
|
27990
28144
|
map[key] = item;
|
|
27991
28145
|
});
|
|
27992
28146
|
}
|
|
@@ -28027,7 +28181,8 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28027
28181
|
hasChange = false;
|
|
28028
28182
|
currentValue = valueRef.current;
|
|
28029
28183
|
kmReissueGoods = currentValue === null || currentValue === void 0 ? void 0 : (_currentValue$kmReiss = currentValue.kmReissueGoods) === null || _currentValue$kmReiss === void 0 ? void 0 : _currentValue$kmReiss.map(function (item) {
|
|
28030
|
-
var
|
|
28184
|
+
var key = !(item === null || item === void 0 ? void 0 : item.sysSkuId) || (item === null || item === void 0 ? void 0 : item.sysSkuId) == '-1' || (item === null || item === void 0 ? void 0 : item.sysSkuId) == (item === null || item === void 0 ? void 0 : item.sysItemId) ? item === null || item === void 0 ? void 0 : item.sysItemId : "".concat(item === null || item === void 0 ? void 0 : item.sysItemId, "-").concat(item === null || item === void 0 ? void 0 : item.sysSkuId);
|
|
28185
|
+
var supplierInfo = supplierMap.get(key);
|
|
28031
28186
|
var newSupplierCode = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierCode;
|
|
28032
28187
|
var newSupplierName = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierName;
|
|
28033
28188
|
// 如果供应商信息有变化,标记需要更新
|
|
@@ -28063,7 +28218,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28063
28218
|
}
|
|
28064
28219
|
}, [sysItemIdMap]);
|
|
28065
28220
|
var getGoodDetails = function getGoodDetails(_ref5) {
|
|
28066
|
-
var _typeMap$type18, _typeMap$type19, _value$typeMap$type$s6, _typeMap$type20, _typeMap$type21, _typeMap$type22, _typeMap$type23
|
|
28221
|
+
var _typeMap$type18, _typeMap$type19, _value$typeMap$type$s6, _typeMap$type20, _typeMap$type21, _typeMap$type22, _typeMap$type23;
|
|
28067
28222
|
var mode = _ref5.mode,
|
|
28068
28223
|
sysOrderNo = _ref5.sysOrderNo,
|
|
28069
28224
|
_ref5$isAllOrders = _ref5.isAllOrders,
|
|
@@ -28095,8 +28250,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28095
28250
|
var _order$typeMap$type$g;
|
|
28096
28251
|
return order === null || order === void 0 ? void 0 : (_order$typeMap$type$g = order[typeMap$2[type].goodDetailsKey]) === null || _order$typeMap$type$g === void 0 ? void 0 : _order$typeMap$type$g.length;
|
|
28097
28252
|
});
|
|
28098
|
-
|
|
28099
|
-
var goodDetails = hasGoodDetails ? (!isAllOrders || ((_typeMap$type22 = typeMap$2[type]) === null || _typeMap$type22 === void 0 ? void 0 : _typeMap$type22.isSelectTradeGoodsMerge)) && typeMap$2[type].mergeIdenticalGoods ? typeMap$2[type].mergeIdenticalGoods((_typeMap$type23 = typeMap$2[type]) === null || _typeMap$type23 === void 0 ? void 0 : _typeMap$type23.updateGoodsHandle(orders, orderRest)) : (_typeMap$type24 = typeMap$2[type]) === null || _typeMap$type24 === void 0 ? void 0 : _typeMap$type24.updateGoodsHandle(orders, orderRest) : [];
|
|
28253
|
+
var goodDetails = hasGoodDetails ? (!isAllOrders || ((_typeMap$type21 = typeMap$2[type]) === null || _typeMap$type21 === void 0 ? void 0 : _typeMap$type21.isSelectTradeGoodsMerge)) && typeMap$2[type].mergeIdenticalGoods ? typeMap$2[type].mergeIdenticalGoods((_typeMap$type22 = typeMap$2[type]) === null || _typeMap$type22 === void 0 ? void 0 : _typeMap$type22.updateGoodsHandle(orders, orderRest)) : (_typeMap$type23 = typeMap$2[type]) === null || _typeMap$type23 === void 0 ? void 0 : _typeMap$type23.updateGoodsHandle(orders, orderRest) : [];
|
|
28100
28254
|
var orderNo = systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orderNo;
|
|
28101
28255
|
var list = mode && !isAllOrders ? goodDetails.filter(function (goodItem) {
|
|
28102
28256
|
return !orderNo || goodItem[typeMap$2[type].outerOiIdKey] === orderNo;
|
|
@@ -28104,30 +28258,30 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28104
28258
|
return list;
|
|
28105
28259
|
};
|
|
28106
28260
|
var changeGoodHandle = function changeGoodHandle(val) {
|
|
28107
|
-
var _typeMap$
|
|
28261
|
+
var _typeMap$type24;
|
|
28108
28262
|
var newValue = _objectSpread2({}, value);
|
|
28109
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28263
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type24 = typeMap$2[type]) === null || _typeMap$type24 === void 0 ? void 0 : _typeMap$type24.key)] = val || [];
|
|
28110
28264
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
28111
28265
|
};
|
|
28112
28266
|
var changeSystemOrderHandle = function changeSystemOrderHandle(val) {
|
|
28113
|
-
var _typeMap$
|
|
28267
|
+
var _typeMap$type25, _typeMap$type26, _value$typeMap$type$t2, _typeMap$type31, _value$typeMap$type$t3, _typeMap$type33;
|
|
28114
28268
|
var newValue = _objectSpread2({}, value);
|
|
28115
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28116
|
-
if (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28117
|
-
var _value$typeMap$type$s7, _typeMap$
|
|
28118
|
-
var orders = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s7 = value[(_typeMap$
|
|
28269
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type25 = typeMap$2[type]) === null || _typeMap$type25 === void 0 ? void 0 : _typeMap$type25.systemOrderNo)] = val;
|
|
28270
|
+
if (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type26 = typeMap$2[type]) === null || _typeMap$type26 === void 0 ? void 0 : _typeMap$type26.systemOrderBillType) {
|
|
28271
|
+
var _value$typeMap$type$s7, _typeMap$type27, _typeMap$type29, _typeMap$type30;
|
|
28272
|
+
var orders = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s7 = value[(_typeMap$type27 = typeMap$2[type]) === null || _typeMap$type27 === void 0 ? void 0 : _typeMap$type27.systemOrder]) === null || _value$typeMap$type$s7 === void 0 ? void 0 : _value$typeMap$type$s7.orders) || [];
|
|
28119
28273
|
var targetOrder = val && orders.find(function (oItem) {
|
|
28120
|
-
var _typeMap$
|
|
28121
|
-
return oItem[(_typeMap$
|
|
28274
|
+
var _typeMap$type28;
|
|
28275
|
+
return oItem[(_typeMap$type28 = typeMap$2[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.oIdKey] === val;
|
|
28122
28276
|
});
|
|
28123
|
-
newValue[(_typeMap$
|
|
28124
|
-
}
|
|
28125
|
-
if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$
|
|
28126
|
-
var _typeMap$
|
|
28127
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28128
|
-
} else if (['1'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$
|
|
28129
|
-
var _typeMap$
|
|
28130
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28277
|
+
newValue[(_typeMap$type29 = typeMap$2[type]) === null || _typeMap$type29 === void 0 ? void 0 : _typeMap$type29.systemOrderBillType] = targetOrder === null || targetOrder === void 0 ? void 0 : targetOrder[(_typeMap$type30 = typeMap$2[type]) === null || _typeMap$type30 === void 0 ? void 0 : _typeMap$type30.orderTypeKey];
|
|
28278
|
+
}
|
|
28279
|
+
if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$type31 = typeMap$2[type]) === null || _typeMap$type31 === void 0 ? void 0 : _typeMap$type31.typeName]) === null || _value$typeMap$type$t2 === void 0 ? void 0 : _value$typeMap$type$t2[0])) {
|
|
28280
|
+
var _typeMap$type32;
|
|
28281
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type32 = typeMap$2[type]) === null || _typeMap$type32 === void 0 ? void 0 : _typeMap$type32.key)] = [];
|
|
28282
|
+
} else if (['1'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$type33 = typeMap$2[type]) === null || _typeMap$type33 === void 0 ? void 0 : _typeMap$type33.typeName]) === null || _value$typeMap$type$t3 === void 0 ? void 0 : _value$typeMap$type$t3[0])) {
|
|
28283
|
+
var _typeMap$type34;
|
|
28284
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type34 = typeMap$2[type]) === null || _typeMap$type34 === void 0 ? void 0 : _typeMap$type34.key)] = getGoodDetails({
|
|
28131
28285
|
mode: isStrict,
|
|
28132
28286
|
sysOrderNo: val
|
|
28133
28287
|
});
|
|
@@ -28135,27 +28289,27 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28135
28289
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue, 'systemOrder');
|
|
28136
28290
|
};
|
|
28137
28291
|
//显示选择商品按钮
|
|
28138
|
-
var showChangeBtn = !!(value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
28292
|
+
var showChangeBtn = !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type35 = typeMap$2[type]) === null || _typeMap$type35 === void 0 ? void 0 : _typeMap$type35.systemOrderNo]);
|
|
28139
28293
|
var selectedGoodsChange = useCallback(function (skuList) {
|
|
28140
|
-
var _typeMap$
|
|
28294
|
+
var _typeMap$type36, _typeMap$type37, _typeMap$type38, _uniqBy, _typeMap$type39;
|
|
28141
28295
|
var newValue = _objectSpread2({}, value);
|
|
28142
28296
|
// 原订单商品
|
|
28143
28297
|
var originTradeGoodList = getGoodDetails({
|
|
28144
28298
|
mode: isStrict,
|
|
28145
|
-
isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28299
|
+
isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type36 = typeMap$2[type]) === null || _typeMap$type36 === void 0 ? void 0 : _typeMap$type36.isShowSelectTradeGoods
|
|
28146
28300
|
}) || [];
|
|
28147
28301
|
// 当前选中的所有商品【包含了原订单+商品库】
|
|
28148
|
-
var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28149
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28150
|
-
var _typeMap$
|
|
28151
|
-
return skuList.includes(item[(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28302
|
+
var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type37 = typeMap$2[type]) === null || _typeMap$type37 === void 0 ? void 0 : _typeMap$type37.key)]) || [];
|
|
28303
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type38 = typeMap$2[type]) === null || _typeMap$type38 === void 0 ? void 0 : _typeMap$type38.key)] = (_uniqBy = uniqBy(originTradeGoodList.concat(currentSelectGoodList), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type39 = typeMap$2[type]) === null || _typeMap$type39 === void 0 ? void 0 : _typeMap$type39.uniqueKey) || 'uuid')) === null || _uniqBy === void 0 ? void 0 : _uniqBy.filter(function (item) {
|
|
28304
|
+
var _typeMap$type40;
|
|
28305
|
+
return skuList.includes(item[(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type40 = typeMap$2[type]) === null || _typeMap$type40 === void 0 ? void 0 : _typeMap$type40.uniqueKey) || 'uuid']);
|
|
28152
28306
|
});
|
|
28153
28307
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
28154
|
-
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28308
|
+
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type41 = typeMap$2[type]) === null || _typeMap$type41 === void 0 ? void 0 : _typeMap$type41.key)], isStrict]);
|
|
28155
28309
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
|
|
28156
28310
|
gutter: 8,
|
|
28157
28311
|
wrap: true,
|
|
28158
|
-
id: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28312
|
+
id: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type42 = typeMap$2[type]) === null || _typeMap$type42 === void 0 ? void 0 : _typeMap$type42.key) || "".concat(Date.now())
|
|
28159
28313
|
}, /*#__PURE__*/React.createElement(Col, {
|
|
28160
28314
|
className: "gutter-row",
|
|
28161
28315
|
xs: {
|
|
@@ -28171,12 +28325,12 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28171
28325
|
},
|
|
28172
28326
|
disabled: disabled,
|
|
28173
28327
|
allowClear: false,
|
|
28174
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28328
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type43 = typeMap$2[type]) === null || _typeMap$type43 === void 0 ? void 0 : _typeMap$type43.systemOrderNo)],
|
|
28175
28329
|
onChange: function onChange(val) {
|
|
28176
28330
|
return changeSystemOrderHandle(val);
|
|
28177
28331
|
},
|
|
28178
|
-
placeholder: "\u9009\u62E9".concat((typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28179
|
-
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s8 = value[(_typeMap$
|
|
28332
|
+
placeholder: "\u9009\u62E9".concat((typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type44 = typeMap$2[type]) === null || _typeMap$type44 === void 0 ? void 0 : _typeMap$type44.compType) || '', "\u7CFB\u7EDF\u5355")
|
|
28333
|
+
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s8 = value[(_typeMap$type45 = typeMap$2[type]) === null || _typeMap$type45 === void 0 ? void 0 : _typeMap$type45.systemOrder]) === null || _value$typeMap$type$s8 === void 0 ? void 0 : _value$typeMap$type$s8.showOrderInfo) || []).map(function (item) {
|
|
28180
28334
|
return /*#__PURE__*/React.createElement(Select.Option, {
|
|
28181
28335
|
key: item[typeMap$2[type].oIdKey],
|
|
28182
28336
|
value: item[typeMap$2[type].oIdKey],
|
|
@@ -28198,11 +28352,11 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28198
28352
|
disabled: isSettingConfig ? !isSettingConfig : disabled,
|
|
28199
28353
|
allowClear: false,
|
|
28200
28354
|
options: reasonList,
|
|
28201
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28355
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type46 = typeMap$2[type]) === null || _typeMap$type46 === void 0 ? void 0 : _typeMap$type46.typeName)],
|
|
28202
28356
|
onChange: function onChange(val) {
|
|
28203
28357
|
return changeTypeHandle(val);
|
|
28204
28358
|
}
|
|
28205
|
-
})), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28359
|
+
})), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type47 = typeMap$2[type]) === null || _typeMap$type47 === void 0 ? void 0 : _typeMap$type47.systemOrderBillType) && !isSettingConfig && /*#__PURE__*/React.createElement(Col, {
|
|
28206
28360
|
className: "gutter-row",
|
|
28207
28361
|
xs: {
|
|
28208
28362
|
span: 11
|
|
@@ -28211,7 +28365,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28211
28365
|
span: 6
|
|
28212
28366
|
}
|
|
28213
28367
|
}, /*#__PURE__*/React.createElement(Input, {
|
|
28214
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28368
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type48 = typeMap$2[type]) === null || _typeMap$type48 === void 0 ? void 0 : _typeMap$type48.systemOrderBillType)],
|
|
28215
28369
|
disabled: disabled,
|
|
28216
28370
|
readOnly: true
|
|
28217
28371
|
}))), /*#__PURE__*/React.createElement(GoodItem$1, _objectSpread2(_objectSpread2({
|
|
@@ -28222,29 +28376,30 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28222
28376
|
canUpdateNumber: showChangeBtn,
|
|
28223
28377
|
hasSelectedSystemOrder: showChangeBtn,
|
|
28224
28378
|
// showChangeBtn={showChangeBtn || typeMap?.[type]?.isShowSelectTradeGoods}
|
|
28225
|
-
alwaysShowChooseErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28379
|
+
alwaysShowChooseErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type49 = typeMap$2[type]) === null || _typeMap$type49 === void 0 ? void 0 : _typeMap$type49.alwaysShowChooseErpGoodsBtn,
|
|
28226
28380
|
// showErpGoodsBtn={typeMap?.[type]?.showErpGoodsBtn}
|
|
28227
28381
|
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
28228
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28382
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type50 = typeMap$2[type]) === null || _typeMap$type50 === void 0 ? void 0 : _typeMap$type50.key)],
|
|
28229
28383
|
onChange: function onChange(val) {
|
|
28230
28384
|
return changeGoodHandle(val);
|
|
28231
28385
|
},
|
|
28232
28386
|
onModeChange: handleModeChange,
|
|
28233
|
-
showModeBtn: !!(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28387
|
+
showModeBtn: !!(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type51 = typeMap$2[type]) === null || _typeMap$type51 === void 0 ? void 0 : _typeMap$type51.showModeBtn),
|
|
28234
28388
|
isStrict: isStrict,
|
|
28235
|
-
isShowSelectTradeGoods: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28236
|
-
systemOrders: value === null || value === void 0 ? void 0 : (_value$typeMap$type$s9 = value[(_typeMap$
|
|
28237
|
-
selectedSystemOrders: showChangeBtn ? [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28389
|
+
isShowSelectTradeGoods: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type52 = typeMap$2[type]) === null || _typeMap$type52 === void 0 ? void 0 : _typeMap$type52.isShowSelectTradeGoods,
|
|
28390
|
+
systemOrders: value === null || value === void 0 ? void 0 : (_value$typeMap$type$s9 = value[(_typeMap$type53 = typeMap$2[type]) === null || _typeMap$type53 === void 0 ? void 0 : _typeMap$type53.systemOrder]) === null || _value$typeMap$type$s9 === void 0 ? void 0 : _value$typeMap$type$s9.orders,
|
|
28391
|
+
selectedSystemOrders: showChangeBtn ? [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type54 = typeMap$2[type]) === null || _typeMap$type54 === void 0 ? void 0 : _typeMap$type54.systemOrderNo)]] : [],
|
|
28238
28392
|
tradeGoods: {
|
|
28239
28393
|
originDataSource: getGoodDetails({
|
|
28240
28394
|
mode: isStrict,
|
|
28241
|
-
isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28395
|
+
isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type55 = typeMap$2[type]) === null || _typeMap$type55 === void 0 ? void 0 : _typeMap$type55.isShowSelectTradeGoods
|
|
28242
28396
|
}),
|
|
28243
|
-
uniqueKey: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28397
|
+
uniqueKey: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type56 = typeMap$2[type]) === null || _typeMap$type56 === void 0 ? void 0 : _typeMap$type56.uniqueKey) || 'uuid',
|
|
28244
28398
|
selectedGoodsChange: selectedGoodsChange
|
|
28245
28399
|
}
|
|
28246
28400
|
})));
|
|
28247
28401
|
};
|
|
28402
|
+
PublicReissue.displayName = 'PublicReissue';
|
|
28248
28403
|
|
|
28249
28404
|
var css_248z$g = ".goodsBox {\n display: flex;\n flex-wrap: wrap;\n}\n.goods-imgBox {\n position: relative;\n width: 80px;\n height: 80px;\n border: 1px solid #F2F3F5;\n margin: 0 10px 10px 0;\n text-align: center;\n}\n.icon-close {\n position: absolute;\n top: -5px;\n right: -5px;\n width: 13px;\n height: 13px;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 50%;\n z-index: 3;\n background-color: #fff;\n cursor: pointer;\n}\n.img {\n width: 100%;\n height: 100%;\n -o-object-fit: contain;\n object-fit: contain;\n}\n.goods-title {\n margin: 0 0 10px 5px;\n color: #4E5969;\n}\n.deg90 {\n transform: rotate(90deg);\n}\n.goodMain {\n display: flex;\n flex-wrap: wrap;\n height: 265px;\n overflow-y: auto;\n margin-bottom: 10px;\n}\n.goodMain .goodItem {\n width: 140px;\n height: 175px;\n padding: 11px 10px 0;\n text-align: center;\n display: inline-block;\n vertical-align: top;\n margin-bottom: 10px;\n margin-right: 30px;\n border: 1px solid #e6e6e6;\n cursor: pointer;\n transition: border 0.3s;\n}\n.goodMain .goodItem .goodImg {\n width: 120px;\n height: 120px;\n}\n.goodMain .goodItem .goodText {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.goodMain .goodItem.active {\n border: 1px solid #3089dc;\n}\n.right-context {\n display: flex;\n flex-direction: column;\n}\n";
|
|
28250
28405
|
styleInject(css_248z$g);
|