@kmkf-fe-packages/basic-components 2.2.44-beta.0 → 2.2.44-beta.101
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 +1344 -467
- package/dist/index.js +1343 -466
- package/dist/src/bs/SystemOrder/index.d.ts +1 -1
- package/dist/src/bs/component/GoodItem/constants/bsE3ReissueGoodsColumns.d.ts +1 -1
- package/dist/src/bs/component/GoodItem/constants/wdtReissueGoodsColumns.d.ts +2 -2
- package/dist/src/bs/component/GoodItem/index.d.ts +8 -1
- package/dist/src/bs/component/model/Columns/Erp/jky.d.ts +5 -19
- package/dist/src/bs/component/model/Columns/Erp/km.d.ts +6 -0
- 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/columnsBaseInfoMap.d.ts +2 -2
- 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, request as request$1, ExpressData, isNull, imgResize, uuid, servers, columnsGoodsList, LogisticsAddressData, SendDataCenter, hasAddNullComponent, SUBMIT_TIME_ID, UPGRADE_TIME_ID, FINAL_TIME_ID, CUSTOM_TIME_ID, useStatus, finalFormData, transformList, dataSourceTrans, DATA_SPLIT_COMPONENT_FIELDS_MAP, findLabelBySelectValue, BS_E3_BOOLEAN_STATUS_MAP, filterWdtOrders, WDT_ORDER_TYPE_MAP, tradeStatusMap, filterBsE3Orders, filterGyOrders, GY_DELIVERY_STATE_MAPPING, filterJstOrders, filterJyOrders, JY_ORDER_TYPE_MAP, JY_ORDER_STATUS_MAP, filterJkyOrders, JKY_ORDER_TYPE_MAP, JKY_ORDER_STATUS_MAP, filterKmOrders, getSystemShowHead, getIsPlatformCodesIncludeOrderNos, BS_SYSTEM_ORDER_CONFIG, KM_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, JST_SYSTEM_ORDER_CONFIG, JY_SYSTEM_ORDER_CONFIG, JKY_SYSTEM_ORDER_CONFIG, WDT_RETURN_BILL_NO_CONFIG, updateOrderSubFormGoodsHandle, updateWlnGoodsHandle, updateWdtGoodsHandle, updateBsE3GoodsHandle, updateGyGoodsHandle, updateJstGoodsHandle, updateKmGoodsHandle, updateJyGoodsHandle, updateJkyGoodsHandle, updateWdtAftersaleGoodsHandle, jstMergeIdenticalGoods, msgTypeCh, pushGyLog, skxSystemOrderBackValues, skxReturnSystemOrderBackValues, formatTrade, updateSkxGoodsHandle, formatReturnTrade, updateSkxReturnGoodsHandle } from '@kmkf-fe-packages/kmkf-utils';
|
|
6
|
+
import { AddressData, BsAddressData, WdtAddressData, GyAddressData, JstAddressData, request as request$1, ExpressData, isNull, imgResize, uuid, servers, columnsGoodsList, LogisticsAddressData, SendDataCenter, kmSkuTypeMap, hasAddNullComponent, SUBMIT_TIME_ID, UPGRADE_TIME_ID, FINAL_TIME_ID, CUSTOM_TIME_ID, useStatus, finalFormData, transformList, dataSourceTrans, DATA_SPLIT_COMPONENT_FIELDS_MAP, findLabelBySelectValue, BS_E3_BOOLEAN_STATUS_MAP, filterWdtOrders, WDT_ORDER_TYPE_MAP, tradeStatusMap, filterBsE3Orders, filterGyOrders, GY_DELIVERY_STATE_MAPPING, filterJstOrders, filterJyOrders, JY_ORDER_TYPE_MAP, JY_ORDER_STATUS_MAP, filterJkyOrders, JKY_ORDER_FROM_MAP, JKY_ORDER_TYPE_MAP, JKY_ORDER_STATUS_MAP, 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, BS_E3_ORDER_STATUS_MAP, KM_ORDER_TYPE_MAP, KM_ORDER_STATUS, updateOrderSubFormGoodsHandle, updateWlnGoodsHandle, updateWdtGoodsHandle, updateBsE3GoodsHandle, updateGyGoodsHandle, updateJstGoodsHandle, updateKmGoodsHandle, updateJyGoodsHandle, updateJkyGoodsHandle, updateWdtAftersaleGoodsHandle, jstMergeIdenticalGoods, msgTypeCh, pushGyLog, skxSystemOrderBackValues, skxReturnSystemOrderBackValues, formatTrade, updateSkxGoodsHandle, formatReturnTrade, updateSkxReturnGoodsHandle } from '@kmkf-fe-packages/kmkf-utils';
|
|
7
7
|
import every from 'lodash/every';
|
|
8
8
|
import maxBy from 'lodash/maxBy';
|
|
9
9
|
import { debounce, isNaN as isNaN$1, isNumber as isNumber$1, uniqBy, cloneDeep, difference, differenceWith, isBoolean, isEqual, takeRight, reject as reject$1, intersection, isEmpty } from 'lodash';
|
|
@@ -7759,7 +7759,9 @@ var Province = function Province(props) {
|
|
|
7759
7759
|
gy: GyAddressData.getInstance(),
|
|
7760
7760
|
km: AddressData.getInstance(),
|
|
7761
7761
|
jst: JstAddressData.getInstance()
|
|
7762
|
+
// jky: JkyAddressData.getInstance(),
|
|
7762
7763
|
};
|
|
7764
|
+
|
|
7763
7765
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Cascader, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
7764
7766
|
options: ((_mapping$type = mapping[type]) === null || _mapping$type === void 0 ? void 0 : _mapping$type.addressOptions) || [],
|
|
7765
7767
|
style: {
|
|
@@ -7934,7 +7936,8 @@ var IdentifyAddress = function IdentifyAddress(props) {
|
|
|
7934
7936
|
placeholder: "\u6536\u4EF6\u4EBA\u59D3\u540D",
|
|
7935
7937
|
allowClear: true,
|
|
7936
7938
|
onChange: function onChange(e) {
|
|
7937
|
-
|
|
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');
|
|
7938
7941
|
}
|
|
7939
7942
|
}), /*#__PURE__*/React.createElement(Input, {
|
|
7940
7943
|
value: value.receiverMobile,
|
|
@@ -7942,7 +7945,8 @@ var IdentifyAddress = function IdentifyAddress(props) {
|
|
|
7942
7945
|
allowClear: true,
|
|
7943
7946
|
placeholder: "\u6536\u4EF6\u4EBA\u7535\u8BDD",
|
|
7944
7947
|
onChange: function onChange(e) {
|
|
7945
|
-
|
|
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');
|
|
7946
7950
|
}
|
|
7947
7951
|
})), /*#__PURE__*/React.createElement(Space, {
|
|
7948
7952
|
wrap: true
|
|
@@ -7959,7 +7963,8 @@ var IdentifyAddress = function IdentifyAddress(props) {
|
|
|
7959
7963
|
placeholder: "\u8BE6\u7EC6\u5730\u5740",
|
|
7960
7964
|
allowClear: true,
|
|
7961
7965
|
onChange: function onChange(e) {
|
|
7962
|
-
|
|
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');
|
|
7963
7968
|
}
|
|
7964
7969
|
})));
|
|
7965
7970
|
};
|
|
@@ -7995,13 +8000,14 @@ function ApaasPosting(props) {
|
|
|
7995
8000
|
});
|
|
7996
8001
|
}
|
|
7997
8002
|
|
|
7998
|
-
var _excluded$b = ["value", "onChange", "platformType", "type"];
|
|
8003
|
+
var _excluded$b = ["value", "onChange", "platformType", "type", "placement"];
|
|
7999
8004
|
function ApaasLogistics(props) {
|
|
8000
8005
|
var value = props.value,
|
|
8001
8006
|
onChange = props.onChange,
|
|
8002
8007
|
platformType = props.platformType,
|
|
8003
8008
|
_props$type = props.type,
|
|
8004
8009
|
type = _props$type === void 0 ? 'select' : _props$type,
|
|
8010
|
+
placement = props.placement,
|
|
8005
8011
|
other = _objectWithoutProperties(props, _excluded$b);
|
|
8006
8012
|
var _useState = useState([]),
|
|
8007
8013
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -8039,12 +8045,13 @@ function ApaasLogistics(props) {
|
|
|
8039
8045
|
return type === 'input' ? /*#__PURE__*/React.createElement(Input, _objectSpread2(_objectSpread2({}, other), {}, {
|
|
8040
8046
|
value: value,
|
|
8041
8047
|
onChange: handleInputChange
|
|
8042
|
-
})) : /*#__PURE__*/React.createElement(Select, _objectSpread2(
|
|
8048
|
+
})) : /*#__PURE__*/React.createElement(Select, _objectSpread2({
|
|
8043
8049
|
value: value,
|
|
8044
8050
|
onChange: onChange,
|
|
8045
8051
|
options: option,
|
|
8046
|
-
virtual: true
|
|
8047
|
-
|
|
8052
|
+
virtual: true,
|
|
8053
|
+
placement: placement
|
|
8054
|
+
}, other));
|
|
8048
8055
|
}
|
|
8049
8056
|
|
|
8050
8057
|
var _excluded$c = ["label", "name", "extra", "required", "rules", "initialValue"];
|
|
@@ -8128,6 +8135,11 @@ var systemOrderMap = {
|
|
|
8128
8135
|
ids: 'wdtSystemSelectIds',
|
|
8129
8136
|
order: 'wdtSystemShowOrder'
|
|
8130
8137
|
},
|
|
8138
|
+
JKY_SYSTEM_ORDER: {
|
|
8139
|
+
no: 'jkySystemOrderNo',
|
|
8140
|
+
ids: 'jkySystemSelectIds',
|
|
8141
|
+
order: 'jkySystemShowOrder'
|
|
8142
|
+
},
|
|
8131
8143
|
BS_E3_SYSTEM_ORDER: {
|
|
8132
8144
|
no: 'bsE3SystemOrderNo',
|
|
8133
8145
|
ids: 'bsE3SystemSelectIds',
|
|
@@ -8605,7 +8617,8 @@ var processSceneStatus = function processSceneStatus(getValue) {
|
|
|
8605
8617
|
WAREHOUSING_STATUS: 'inStockStatusItemList',
|
|
8606
8618
|
BS_E3_WAREHOUSING_STATUS: 'bsE3InStockStatusItemList',
|
|
8607
8619
|
MSG_STATUS: 'msgStatusValues',
|
|
8608
|
-
WDT_WAREHOUSING_STATUS: 'wdtInStockStatusItemList'
|
|
8620
|
+
WDT_WAREHOUSING_STATUS: 'wdtInStockStatusItemList',
|
|
8621
|
+
JKY_WAREHOUSING_STATUS: 'jkyInStockStatusItemList'
|
|
8609
8622
|
};
|
|
8610
8623
|
return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(STATUS_LIST_MAP[nex.workOrderComponentType])), []));
|
|
8611
8624
|
};
|
|
@@ -8673,6 +8686,21 @@ var processErpSendGood = function processErpSendGood(getValue) {
|
|
|
8673
8686
|
return _defineProperty({}, nex.uniqueKey, (itemList === null || itemList === void 0 ? void 0 : itemList.length) ? itemList : initValue);
|
|
8674
8687
|
};
|
|
8675
8688
|
};
|
|
8689
|
+
var processErpReturnWarehouse = function processErpReturnWarehouse(getValue) {
|
|
8690
|
+
return function (nex, config) {
|
|
8691
|
+
var kmReturnWarehouseMap = {
|
|
8692
|
+
KM_RETURN_WAREHOUSE: {
|
|
8693
|
+
list: 'kmReturnWarehouse'
|
|
8694
|
+
}
|
|
8695
|
+
};
|
|
8696
|
+
var initValue = [{
|
|
8697
|
+
kmReturnWarehouseName: '',
|
|
8698
|
+
kmReturnWarehouseId: ''
|
|
8699
|
+
}];
|
|
8700
|
+
var itemList = jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(kmReturnWarehouseMap[nex.workOrderComponentType].list)), initValue);
|
|
8701
|
+
return _defineProperty({}, nex.uniqueKey, (itemList === null || itemList === void 0 ? void 0 : itemList.length) ? itemList : initValue);
|
|
8702
|
+
};
|
|
8703
|
+
};
|
|
8676
8704
|
var processBsPosting = function processBsPosting(getValue) {
|
|
8677
8705
|
return function (nex, config) {
|
|
8678
8706
|
var bsAddress = [transTextToNumber(getValue("".concat(nex.uniqueKey, "_bsPostingProvince"))), transTextToNumber(getValue("".concat(nex.uniqueKey, "_bsPostingCity")))];
|
|
@@ -8699,6 +8727,33 @@ var processBsGoods = function processBsGoods(getValue) {
|
|
|
8699
8727
|
return _defineProperty({}, nex.uniqueKey, _values);
|
|
8700
8728
|
};
|
|
8701
8729
|
};
|
|
8730
|
+
var processJkyGoods = function processJkyGoods(templateColumns) {
|
|
8731
|
+
return function (getValue) {
|
|
8732
|
+
return function (nex, config) {
|
|
8733
|
+
var _values = {
|
|
8734
|
+
jkyGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_jkyGoods")), []),
|
|
8735
|
+
shopCode: getValue("".concat(nex.uniqueKey, "_shopCode"))
|
|
8736
|
+
};
|
|
8737
|
+
var selectIds = [];
|
|
8738
|
+
var orderNo = '';
|
|
8739
|
+
var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
|
|
8740
|
+
return col.workOrderComponentType === 'TRADE_ID_INPUT';
|
|
8741
|
+
});
|
|
8742
|
+
if (tradeId) {
|
|
8743
|
+
orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
|
|
8744
|
+
}
|
|
8745
|
+
var jkySystemOrder = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
|
|
8746
|
+
return col.workOrderComponentType === 'JKY_SYSTEM_ORDER';
|
|
8747
|
+
});
|
|
8748
|
+
if (jkySystemOrder) {
|
|
8749
|
+
selectIds = jsonParseSecurity(getValue("".concat(jkySystemOrder.uniqueKey, "_").concat(systemOrderMap[jkySystemOrder.workOrderComponentType].ids)), []);
|
|
8750
|
+
}
|
|
8751
|
+
_values.selectIds = selectIds;
|
|
8752
|
+
_values.orderNo = orderNo;
|
|
8753
|
+
return _defineProperty({}, nex.uniqueKey, _values);
|
|
8754
|
+
};
|
|
8755
|
+
};
|
|
8756
|
+
};
|
|
8702
8757
|
var processWdtGoods = function processWdtGoods(templateColumns) {
|
|
8703
8758
|
return function (getValue) {
|
|
8704
8759
|
return function (nex, config) {
|
|
@@ -8945,6 +9000,14 @@ var processWdtExchangeGoods = function processWdtExchangeGoods(getValue) {
|
|
|
8945
9000
|
});
|
|
8946
9001
|
};
|
|
8947
9002
|
};
|
|
9003
|
+
var processKmExchangeGoods = function processKmExchangeGoods(getValue) {
|
|
9004
|
+
return function (nex, config) {
|
|
9005
|
+
return _defineProperty({}, nex.uniqueKey, {
|
|
9006
|
+
kmExchangeGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_kmExchangeGoods")), []),
|
|
9007
|
+
shopCode: getValue("".concat(nex.uniqueKey, "_shopCode"))
|
|
9008
|
+
});
|
|
9009
|
+
};
|
|
9010
|
+
};
|
|
8948
9011
|
var processJstExchangeGoods = function processJstExchangeGoods(getValue) {
|
|
8949
9012
|
return function (nex, config) {
|
|
8950
9013
|
return _defineProperty({}, nex.uniqueKey, {
|
|
@@ -8990,6 +9053,11 @@ var processErpSystemOrder = function processErpSystemOrder(getValue) {
|
|
|
8990
9053
|
ids: 'wdtSystemSelectIds',
|
|
8991
9054
|
order: 'wdtSystemShowOrder'
|
|
8992
9055
|
},
|
|
9056
|
+
JKY_SYSTEM_ORDER: {
|
|
9057
|
+
no: 'jkySystemOrderNo',
|
|
9058
|
+
ids: 'jkySystemSelectIds',
|
|
9059
|
+
order: 'jkySystemShowOrder'
|
|
9060
|
+
},
|
|
8993
9061
|
BS_E3_SYSTEM_ORDER: {
|
|
8994
9062
|
no: 'bsE3SystemOrderNo',
|
|
8995
9063
|
ids: 'bsE3SystemSelectIds',
|
|
@@ -9156,6 +9224,28 @@ var processKmReissueGoods = function processKmReissueGoods(templateColumns) {
|
|
|
9156
9224
|
};
|
|
9157
9225
|
};
|
|
9158
9226
|
};
|
|
9227
|
+
var processKmReturnGoods = function processKmReturnGoods(templateColumns) {
|
|
9228
|
+
return function (getValue) {
|
|
9229
|
+
return function (nex, config) {
|
|
9230
|
+
var orderNo = '';
|
|
9231
|
+
var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
|
|
9232
|
+
return col.workOrderComponentType === 'TRADE_ID_INPUT';
|
|
9233
|
+
});
|
|
9234
|
+
if (tradeId) {
|
|
9235
|
+
orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
|
|
9236
|
+
}
|
|
9237
|
+
return _defineProperty({}, nex.uniqueKey, {
|
|
9238
|
+
kmSystemOrder: {
|
|
9239
|
+
orderNo: orderNo
|
|
9240
|
+
},
|
|
9241
|
+
kmReturnType: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_kmReturnType")), !isNull(config === null || config === void 0 ? void 0 : config.initReason) ? [config.initReason] : ['1']),
|
|
9242
|
+
kmReturnGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_kmReturnGoods")), []),
|
|
9243
|
+
shopCode: getValue("".concat(nex.uniqueKey, "_shopCode")),
|
|
9244
|
+
kmSystemOrderNo: getValue("".concat(nex.uniqueKey, "_kmSystemOrderNo"))
|
|
9245
|
+
});
|
|
9246
|
+
};
|
|
9247
|
+
};
|
|
9248
|
+
};
|
|
9159
9249
|
var processGyReissueGoods = function processGyReissueGoods(templateColumns) {
|
|
9160
9250
|
return function (getValue) {
|
|
9161
9251
|
return function (nex, config) {
|
|
@@ -9249,14 +9339,14 @@ var processJstReturnGoods = function processJstReturnGoods(templateColumns) {
|
|
|
9249
9339
|
};
|
|
9250
9340
|
var processLabel = function processLabel(getValue) {
|
|
9251
9341
|
return function (nex, config) {
|
|
9252
|
-
var
|
|
9253
|
-
return
|
|
9342
|
+
var _ref77;
|
|
9343
|
+
return _ref77 = {}, _defineProperty(_ref77, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _defineProperty(_ref77, "".concat(nex.uniqueKey, "_label"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _ref77;
|
|
9254
9344
|
};
|
|
9255
9345
|
};
|
|
9256
9346
|
var processMemberLevel = function processMemberLevel(getValue) {
|
|
9257
9347
|
return function (nex, config) {
|
|
9258
|
-
var
|
|
9259
|
-
return
|
|
9348
|
+
var _ref78;
|
|
9349
|
+
return _ref78 = {}, _defineProperty(_ref78, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _defineProperty(_ref78, "".concat(nex.uniqueKey, "_memberLevel"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _ref78;
|
|
9260
9350
|
};
|
|
9261
9351
|
};
|
|
9262
9352
|
var processAfterSalesOrderId = function processAfterSalesOrderId(getValue) {
|
|
@@ -9360,6 +9450,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
|
|
|
9360
9450
|
BS_E3_WAREHOUSING_STATUS: processSceneStatus,
|
|
9361
9451
|
MSG_STATUS: processSceneStatus,
|
|
9362
9452
|
WDT_WAREHOUSING_STATUS: processSceneStatus,
|
|
9453
|
+
JKY_WAREHOUSING_STATUS: processSceneStatus,
|
|
9363
9454
|
BS_LOGISTICS: processErpLogistics,
|
|
9364
9455
|
WLN_LOGISTICS: processErpLogistics,
|
|
9365
9456
|
WDT_LOGISTICS: processErpLogistics,
|
|
@@ -9372,19 +9463,23 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
|
|
|
9372
9463
|
BS_E3_SEND_GOOD: processErpSendGood,
|
|
9373
9464
|
KM_SEND_GOOD: processErpSendGood,
|
|
9374
9465
|
GY_SEND_GOOD: processErpSendGood,
|
|
9466
|
+
KM_RETURN_WAREHOUSE: processErpReturnWarehouse,
|
|
9375
9467
|
BS_POSTING: processBsPosting,
|
|
9376
9468
|
BS_GOODS: processBsGoods,
|
|
9377
9469
|
WDT_GOODS: processWdtGoods(templateColumns),
|
|
9470
|
+
JKY_GOODS: processJkyGoods(templateColumns),
|
|
9378
9471
|
WDT_AFTERSALE_GOODS: processWdtAftersaleGoods(templateColumns),
|
|
9379
9472
|
JST_AFTERSALE_GOODS: processJstAftersaleGoods(templateColumns),
|
|
9380
9473
|
BS_E3_GOODS: processBsE3Goods(templateColumns),
|
|
9381
9474
|
GY_GOODS: processGyGoods(templateColumns),
|
|
9382
9475
|
KM_GOODS: processKmGoods(templateColumns),
|
|
9383
9476
|
KM_REISSUE_GOODS: processKmReissueGoods(templateColumns),
|
|
9477
|
+
KM_RETURN_GOODS: processKmReturnGoods(templateColumns),
|
|
9384
9478
|
JST_GOODS: processJstGoods(templateColumns),
|
|
9385
9479
|
BS_REISSUE_GOODS: processBsReissueGoods,
|
|
9386
9480
|
BS_EXCHANGE_GOODS: processBsExchangeGoods,
|
|
9387
9481
|
WDT_EXCHANGE_GOODS: processWdtExchangeGoods,
|
|
9482
|
+
KM_EXCHANGE_GOODS: processKmExchangeGoods,
|
|
9388
9483
|
JST_EXCHANGE_GOODS: processJstExchangeGoods,
|
|
9389
9484
|
BS_RETURN_GOODS: processBsReturnGoods,
|
|
9390
9485
|
WDT_RETURN_GOODS: processWdtReturnGoods(),
|
|
@@ -9393,6 +9488,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
|
|
|
9393
9488
|
KM_SYSTEM_ORDER: processErpSystemOrder,
|
|
9394
9489
|
WLN_SYSTEM_ORDER: processErpSystemOrder,
|
|
9395
9490
|
WDT_SYSTEM_ORDER: processErpSystemOrder,
|
|
9491
|
+
JKY_SYSTEM_ORDER: processErpSystemOrder,
|
|
9396
9492
|
WDT_RETURN_BILL_NO: processErpSystemOrder,
|
|
9397
9493
|
BS_E3_SYSTEM_ORDER: processErpSystemOrder,
|
|
9398
9494
|
JST_SYSTEM_ORDER: processErpSystemOrder,
|
|
@@ -9989,12 +10085,21 @@ var EditSplitRenderMap = {
|
|
|
9989
10085
|
updateHandle = _ref17.updateHandle,
|
|
9990
10086
|
disabled = _ref17.disabled;
|
|
9991
10087
|
return /*#__PURE__*/React.createElement(ApaasLogistics, {
|
|
10088
|
+
getPopupContainer: function getPopupContainer() {
|
|
10089
|
+
return document.getElementById('subform');
|
|
10090
|
+
},
|
|
9992
10091
|
value: val,
|
|
9993
10092
|
allowClear: true,
|
|
10093
|
+
showSearch: true,
|
|
9994
10094
|
onChange: function onChange(e) {
|
|
9995
10095
|
return updateHandle(e, index, t.key);
|
|
9996
10096
|
},
|
|
9997
|
-
disabled: t.isEdit || disabled
|
|
10097
|
+
disabled: t.isEdit || disabled,
|
|
10098
|
+
filterOption: function filterOption(input, option) {
|
|
10099
|
+
return option.label.includes(input);
|
|
10100
|
+
},
|
|
10101
|
+
placement: "topLeft",
|
|
10102
|
+
listHeight: 120
|
|
9998
10103
|
});
|
|
9999
10104
|
},
|
|
10000
10105
|
//退货物流-物流公司
|
|
@@ -10005,12 +10110,21 @@ var EditSplitRenderMap = {
|
|
|
10005
10110
|
updateHandle = _ref18.updateHandle,
|
|
10006
10111
|
disabled = _ref18.disabled;
|
|
10007
10112
|
return /*#__PURE__*/React.createElement(ApaasLogistics, {
|
|
10113
|
+
getPopupContainer: function getPopupContainer() {
|
|
10114
|
+
return document.getElementById('subform');
|
|
10115
|
+
},
|
|
10008
10116
|
value: val,
|
|
10009
10117
|
allowClear: true,
|
|
10118
|
+
showSearch: true,
|
|
10010
10119
|
onChange: function onChange(e) {
|
|
10011
10120
|
return updateHandle(e, index, t.key);
|
|
10012
10121
|
},
|
|
10013
|
-
disabled: t.isEdit || disabled
|
|
10122
|
+
disabled: t.isEdit || disabled,
|
|
10123
|
+
filterOption: function filterOption(input, option) {
|
|
10124
|
+
return option.label.includes(input);
|
|
10125
|
+
},
|
|
10126
|
+
placement: "topLeft",
|
|
10127
|
+
listHeight: 120
|
|
10014
10128
|
});
|
|
10015
10129
|
}
|
|
10016
10130
|
};
|
|
@@ -10479,7 +10593,11 @@ var SubForm = function SubForm(props) {
|
|
|
10479
10593
|
});
|
|
10480
10594
|
}, [inputValue]);
|
|
10481
10595
|
var handleOpenChange = function handleOpenChange(newOpen) {
|
|
10482
|
-
|
|
10596
|
+
if (!['jbCFrJV4m7_trajectoryCompany', '0qFEv9GEyd_returnLogisticsCompany'].includes(selectKey)) {
|
|
10597
|
+
setOpen(newOpen);
|
|
10598
|
+
} else {
|
|
10599
|
+
setOpen(false);
|
|
10600
|
+
}
|
|
10483
10601
|
};
|
|
10484
10602
|
var onChangeInput = useCallback(debounce(function (val) {
|
|
10485
10603
|
setInputValue(val);
|
|
@@ -10567,6 +10685,9 @@ var SubForm = function SubForm(props) {
|
|
|
10567
10685
|
visible: open,
|
|
10568
10686
|
onVisibleChange: handleOpenChange
|
|
10569
10687
|
}, ['0qFEv9GEyd_returnLogisticsCompany', 'jbCFrJV4m7_trajectoryCompany'].includes(selectKey) ? /*#__PURE__*/React.createElement(ApaasLogistics, {
|
|
10688
|
+
getPopupContainer: function getPopupContainer() {
|
|
10689
|
+
return document.getElementById('subform');
|
|
10690
|
+
},
|
|
10570
10691
|
value: undefined,
|
|
10571
10692
|
onChange: function onChange(val) {
|
|
10572
10693
|
onChangeInput(val);
|
|
@@ -10579,7 +10700,9 @@ var SubForm = function SubForm(props) {
|
|
|
10579
10700
|
},
|
|
10580
10701
|
filterOption: function filterOption(input, option) {
|
|
10581
10702
|
return option.label.includes(input);
|
|
10582
|
-
}
|
|
10703
|
+
},
|
|
10704
|
+
placement: "topLeft",
|
|
10705
|
+
listHeight: 120
|
|
10583
10706
|
}) : /*#__PURE__*/React.createElement(Input, {
|
|
10584
10707
|
placeholder: "\u8F93\u5165\u5173\u952E\u8BCD\u67E5\u8BE2",
|
|
10585
10708
|
allowClear: true,
|
|
@@ -10656,7 +10779,8 @@ var BuyerNick = function BuyerNick(props) {
|
|
|
10656
10779
|
disabled = props.disabled,
|
|
10657
10780
|
_onBlur = props.onBlur;
|
|
10658
10781
|
var changeValue = function changeValue(e, type) {
|
|
10659
|
-
|
|
10782
|
+
var _e$target$value;
|
|
10783
|
+
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())));
|
|
10660
10784
|
};
|
|
10661
10785
|
// useEffect(() => {
|
|
10662
10786
|
// //淘宝平台和抖音平台需要展示买家id
|
|
@@ -10681,7 +10805,8 @@ var BuyerNick = function BuyerNick(props) {
|
|
|
10681
10805
|
changeValue(e, 'buyerNick');
|
|
10682
10806
|
},
|
|
10683
10807
|
onBlur: function onBlur(e) {
|
|
10684
|
-
|
|
10808
|
+
var _e$target$value2;
|
|
10809
|
+
_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');
|
|
10685
10810
|
}
|
|
10686
10811
|
});
|
|
10687
10812
|
};
|
|
@@ -10803,8 +10928,9 @@ var RemarkInput = function RemarkInput(props) {
|
|
|
10803
10928
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
10804
10929
|
};
|
|
10805
10930
|
var changeRemark = function changeRemark(e) {
|
|
10931
|
+
var _e$target$value;
|
|
10806
10932
|
var newValue = _objectSpread2(_objectSpread2({}, value), {}, {
|
|
10807
|
-
remark: e.target.value
|
|
10933
|
+
remark: (_e$target$value = e.target.value) === null || _e$target$value === void 0 ? void 0 : _e$target$value.trim()
|
|
10808
10934
|
});
|
|
10809
10935
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
10810
10936
|
};
|
|
@@ -10847,7 +10973,7 @@ var Logistics = function Logistics(props) {
|
|
|
10847
10973
|
var handleInputChange = function handleInputChange(e) {
|
|
10848
10974
|
var val = e.target.value;
|
|
10849
10975
|
typeof onChange === 'function' && onChange(_objectSpread2(_objectSpread2({}, value), {}, {
|
|
10850
|
-
order: val
|
|
10976
|
+
order: val === null || val === void 0 ? void 0 : val.trim()
|
|
10851
10977
|
}));
|
|
10852
10978
|
};
|
|
10853
10979
|
var handelSelectChange = function handelSelectChange(val) {
|
|
@@ -10911,7 +11037,8 @@ var AliPay = function AliPay(props) {
|
|
|
10911
11037
|
disabled = props.disabled,
|
|
10912
11038
|
_onBlur = props.onBlur;
|
|
10913
11039
|
var changeValue = function changeValue(e, type) {
|
|
10914
|
-
|
|
11040
|
+
var _e$target$value;
|
|
11041
|
+
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())));
|
|
10915
11042
|
};
|
|
10916
11043
|
return /*#__PURE__*/React.createElement("div", null, !isSingle ? /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Input, {
|
|
10917
11044
|
disabled: disabled,
|
|
@@ -12098,7 +12225,7 @@ var ChooseBaby = function ChooseBaby(props) {
|
|
|
12098
12225
|
}));
|
|
12099
12226
|
};
|
|
12100
12227
|
|
|
12101
|
-
var css_248z$7 = "#goods-wrap.goodsBox.single-row {\n max-height: 800px;\n overflow-y: auto;\n padding-top: 4px;\n flex-basis: 100%;\n}\n#goods-wrap.goodsBox.single-row .good-item.rich-item.with-pic,\n#goods-wrap.goodsBox.single-row .good-item.rich-item.with-attr,\n#goods-wrap.goodsBox.single-row .good-item.rich-item.with-attr.with-pic {\n flex-basis: 100%;\n}\n#goods-wrap.goodsBox.single-row .good-item.rich-item .good-attrs {\n flex-grow: 1;\n flex-shrink: 1;\n}\n#goods-wrap.goodsBox.single-row .good-item.rich-item .good-attrs .good-item-attr {\n flex-grow: 1;\n flex-shrink: 1;\n max-width: 80px;\n width: 20px;\n flex-basis: 20px;\n}\n#goods-wrap.goodsBox.single-row .good-item.rich-item .good-attrs .ant-input {\n flex-shrink: 1;\n flex-grow: 1;\n width: 20px;\n flex-basis: 40px;\n}\n#goods-wrap .good-item.rich-item {\n position: relative;\n border: 1px solid #ccc;\n display: flex;\n flex-basis: 80px;\n flex-wrap: nowrap;\n margin: 0 10px 10px 0;\n padding: 4px;\n}\n#goods-wrap .good-item.rich-item.with-pic {\n flex-basis: 90px;\n}\n#goods-wrap .good-item.rich-item.with-attr {\n flex-basis: 150px;\n}\n#goods-wrap .good-item.rich-item.with-attr.with-pic {\n flex-basis: 238px;\n}\n#goods-wrap .good-item.rich-item.with-attr.with-pic .goods-imgBox {\n margin-right: 8px;\n}\n#goods-wrap .good-item.rich-item .good-item-attr {\n margin-right: 6px;\n width: 52px;\n flex-basis: 52px;\n}\n#goods-wrap .good-item.rich-item .good-img {\n position: relative;\n width: 80px;\n height: 80px;\n border-radius: 4px;\n border: 1px solid #f2f3f5;\n margin: 0 10px 0 0;\n text-align: center;\n background-color: #f2f3f5;\n}\n#goods-wrap .good-item.rich-item .good-attrs {\n display: flex;\n flex-direction: column;\n font-size: 12px;\n}\n#goods-wrap .good-item.rich-item .good-attrs .ant-input {\n font-size: 12px;\n width: 80px;\n height: 20px;\n padding-left: 5px;\n padding-right: 5px;\n}\n#goods-wrap .good-item.rich-item .good-attrs .ant-input.id-textarea {\n width: 80px;\n resize: none;\n height: 45px;\n}\n#goods-wrap .good-item.rich-item .good-attrs div {\n display: flex;\n}\n#goods-wrap .good-item.rich-item .good-attrs div:not(:first-child) {\n margin-top: 4px;\n}\n";
|
|
12228
|
+
var css_248z$7 = "#goods-wrap.goodsBox.single-row {\n max-height: 800px;\n overflow-y: auto;\n padding-top: 4px;\n flex-basis: 100%;\n}\n#goods-wrap.goodsBox.single-row .good-item.rich-item.with-pic,\n#goods-wrap.goodsBox.single-row .good-item.rich-item.with-attr,\n#goods-wrap.goodsBox.single-row .good-item.rich-item.with-attr.with-pic {\n flex-basis: 100%;\n}\n#goods-wrap.goodsBox.single-row .good-item.rich-item .good-attrs {\n flex-grow: 1;\n flex-shrink: 1;\n}\n#goods-wrap.goodsBox.single-row .good-item.rich-item .good-attrs .good-item-attr {\n flex-grow: 1;\n flex-shrink: 1;\n max-width: 80px;\n width: 20px;\n flex-basis: 20px;\n}\n#goods-wrap.goodsBox.single-row .good-item.rich-item .good-attrs .ant-input {\n flex-shrink: 1;\n flex-grow: 1;\n width: 20px;\n flex-basis: 40px;\n}\n#goods-wrap .good-item.rich-item {\n position: relative;\n border: 1px solid #ccc;\n display: flex;\n flex-basis: 80px;\n flex-wrap: nowrap;\n margin: 0 10px 10px 0;\n padding: 4px;\n}\n#goods-wrap .good-item.rich-item.with-pic {\n flex-basis: 90px;\n}\n#goods-wrap .good-item.rich-item.with-attr {\n flex-basis: 150px;\n}\n#goods-wrap .good-item.rich-item.with-attr.with-pic {\n flex-basis: 238px;\n}\n#goods-wrap .good-item.rich-item.with-attr.with-pic .goods-imgBox {\n margin-right: 8px;\n}\n#goods-wrap .good-item.rich-item .good-item-attr {\n margin-right: 6px;\n width: 52px;\n flex-basis: 52px;\n}\n#goods-wrap .good-item.rich-item .good-img {\n position: relative;\n width: 80px;\n height: 80px;\n border-radius: 4px;\n border: 1px solid #f2f3f5;\n margin: 0 10px 0 0;\n text-align: center;\n background-color: #f2f3f5;\n}\n#goods-wrap .good-item.rich-item .good-attrs {\n display: flex;\n flex-direction: column;\n font-size: 12px;\n}\n#goods-wrap .good-item.rich-item .good-attrs .ant-input {\n font-size: 12px;\n width: 80px;\n height: 20px;\n padding-left: 5px;\n padding-right: 5px;\n}\n#goods-wrap .good-item.rich-item .good-attrs .ant-input.id-textarea {\n width: 80px;\n resize: none;\n height: 45px;\n}\n#goods-wrap .good-item.rich-item .good-attrs div {\n display: flex;\n}\n#goods-wrap .good-item.rich-item .good-attrs div:not(:first-child) {\n margin-top: 4px;\n}\n.goods-uploaded-state {\n display: flex;\n}\n.goods-uploaded-state .clear-all {\n float: right;\n color: #1966ff;\n cursor: pointer;\n margin-left: 12px;\n}\n";
|
|
12102
12229
|
styleInject(css_248z$7);
|
|
12103
12230
|
|
|
12104
12231
|
var GoodItem = function GoodItem(props) {
|
|
@@ -12427,13 +12554,22 @@ var GoodItem = function GoodItem(props) {
|
|
|
12427
12554
|
var hasAttr = useMemo(function () {
|
|
12428
12555
|
return hasPic ? headerList.length > 1 : headerList.length > 0;
|
|
12429
12556
|
}, [hasPic, headerList]);
|
|
12557
|
+
var clearAll = function clearAll() {
|
|
12558
|
+
onChange === null || onChange === void 0 ? void 0 : onChange({
|
|
12559
|
+
shopId: shopId,
|
|
12560
|
+
imgList: []
|
|
12561
|
+
});
|
|
12562
|
+
};
|
|
12430
12563
|
return /*#__PURE__*/React.createElement("div", null, imgList.length === 0 ? /*#__PURE__*/React.createElement("p", {
|
|
12431
12564
|
className: "goods-title"
|
|
12432
12565
|
}, "\u6700\u591A\u6DFB\u52A0", maxLength, "\u4E2A\u5B9D\u8D1D") : /*#__PURE__*/React.createElement("p", {
|
|
12433
12566
|
className: "goods-uploaded-state"
|
|
12434
12567
|
}, "\u5DF2\u6DFB\u52A0", /*#__PURE__*/React.createElement("span", {
|
|
12435
12568
|
className: "goods-uploaded-count"
|
|
12436
|
-
}, imgList.length), "/", maxLength,
|
|
12569
|
+
}, imgList.length), "/", maxLength, /*#__PURE__*/React.createElement("span", {
|
|
12570
|
+
className: 'clear-all',
|
|
12571
|
+
onClick: clearAll
|
|
12572
|
+
}, "\u6E05\u7A7A")), /*#__PURE__*/React.createElement("div", {
|
|
12437
12573
|
ref: boxRef,
|
|
12438
12574
|
id: "goods-wrap",
|
|
12439
12575
|
className: "goodsBox goodsBox-item-horizontal--box".concat(isSingleRow ? ' single-row' : '')
|
|
@@ -12573,7 +12709,8 @@ var Invoice = function Invoice(props) {
|
|
|
12573
12709
|
}),
|
|
12574
12710
|
current = _useRef.current;
|
|
12575
12711
|
var handleInputChange = function handleInputChange(e) {
|
|
12576
|
-
var
|
|
12712
|
+
var _e$target$value;
|
|
12713
|
+
var ordinaryTaitou = (_e$target$value = e.target.value) === null || _e$target$value === void 0 ? void 0 : _e$target$value.trim();
|
|
12577
12714
|
setVisible(false);
|
|
12578
12715
|
setList([]);
|
|
12579
12716
|
var newValue = _objectSpread2(_objectSpread2({}, value), {}, {
|
|
@@ -12596,8 +12733,9 @@ var Invoice = function Invoice(props) {
|
|
|
12596
12733
|
handleChange(ordinaryTaitou);
|
|
12597
12734
|
};
|
|
12598
12735
|
var handleValueClick = function handleValueClick(e) {
|
|
12736
|
+
var _e$target$value2;
|
|
12599
12737
|
var newValue = _objectSpread2(_objectSpread2({}, value), {}, {
|
|
12600
|
-
ordinarySerial: e.target.value
|
|
12738
|
+
ordinarySerial: (_e$target$value2 = e.target.value) === null || _e$target$value2 === void 0 ? void 0 : _e$target$value2.trim()
|
|
12601
12739
|
});
|
|
12602
12740
|
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2({}, newValue));
|
|
12603
12741
|
};
|
|
@@ -12908,7 +13046,8 @@ var Payment = function Payment(props) {
|
|
|
12908
13046
|
// }
|
|
12909
13047
|
// }, [shopId, shopList]);
|
|
12910
13048
|
var changeValue = function changeValue(e, type) {
|
|
12911
|
-
var
|
|
13049
|
+
var _e$target$value;
|
|
13050
|
+
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()));
|
|
12912
13051
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
12913
13052
|
type === 'enterprisePaymentTid' && (onSearch === null || onSearch === void 0 ? void 0 : onSearch(e));
|
|
12914
13053
|
};
|
|
@@ -12969,7 +13108,8 @@ var Payment = function Payment(props) {
|
|
|
12969
13108
|
return changeValue(e, item.name);
|
|
12970
13109
|
},
|
|
12971
13110
|
onBlur: function onBlur(e) {
|
|
12972
|
-
|
|
13111
|
+
var _e$target$value2;
|
|
13112
|
+
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);
|
|
12973
13113
|
}
|
|
12974
13114
|
}), (replaceValueCh === null || replaceValueCh === void 0 ? void 0 : replaceValueCh[item.name]) && /*#__PURE__*/React.createElement("p", {
|
|
12975
13115
|
style: {
|
|
@@ -13262,7 +13402,8 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
13262
13402
|
disabled: disabled || isEdit,
|
|
13263
13403
|
placeholder: "\u7269\u6D41\u5355\u53F7",
|
|
13264
13404
|
onChange: function onChange(e) {
|
|
13265
|
-
|
|
13405
|
+
var _e$target$value;
|
|
13406
|
+
return changeHandle((_e$target$value = e.target.value) === null || _e$target$value === void 0 ? void 0 : _e$target$value.trim(), 'interceptCode');
|
|
13266
13407
|
},
|
|
13267
13408
|
value: value === null || value === void 0 ? void 0 : value.interceptCode
|
|
13268
13409
|
}))), /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Item, {
|
|
@@ -13337,7 +13478,8 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
13337
13478
|
disabled: disabled || isEdit,
|
|
13338
13479
|
placeholder: senderMobileLabel,
|
|
13339
13480
|
onChange: function onChange(e) {
|
|
13340
|
-
|
|
13481
|
+
var _e$target$value2;
|
|
13482
|
+
return changeHandle((_e$target$value2 = e.target.value) === null || _e$target$value2 === void 0 ? void 0 : _e$target$value2.trim(), 'interceptSenderMobile');
|
|
13341
13483
|
}
|
|
13342
13484
|
})), /*#__PURE__*/React.createElement(Item, {
|
|
13343
13485
|
label: '退回地址',
|
|
@@ -13396,7 +13538,8 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
13396
13538
|
},
|
|
13397
13539
|
placeholder: "\u5176\u4ED6",
|
|
13398
13540
|
onChange: function onChange(e) {
|
|
13399
|
-
|
|
13541
|
+
var _e$target$value3;
|
|
13542
|
+
return changeHandle((_e$target$value3 = e.target.value) === null || _e$target$value3 === void 0 ? void 0 : _e$target$value3.trim(), 'interceptLogisticsStatusOther');
|
|
13400
13543
|
}
|
|
13401
13544
|
})), /*#__PURE__*/React.createElement(Item, {
|
|
13402
13545
|
label: '拦截状态',
|
|
@@ -13450,7 +13593,8 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
13450
13593
|
disabled: true,
|
|
13451
13594
|
placeholder: "\u63A5\u53E3\u72B6\u6001\u539F\u56E0",
|
|
13452
13595
|
onChange: function onChange(e) {
|
|
13453
|
-
|
|
13596
|
+
var _e$target$value4;
|
|
13597
|
+
return changeHandle((_e$target$value4 = e.target.value) === null || _e$target$value4 === void 0 ? void 0 : _e$target$value4.trim(), 'interceptLogisticsApiStatusReason');
|
|
13454
13598
|
}
|
|
13455
13599
|
})));
|
|
13456
13600
|
};
|
|
@@ -13526,7 +13670,7 @@ var LogisticsTrajectory = function LogisticsTrajectory(props) {
|
|
|
13526
13670
|
trajectoryApiStatus = _props$trajectoryApiS === void 0 ? false : _props$trajectoryApiS;
|
|
13527
13671
|
var handleInputChange = function handleInputChange(e, type) {
|
|
13528
13672
|
var val = e.target.value;
|
|
13529
|
-
typeof onChange === 'function' && onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, type, val)));
|
|
13673
|
+
typeof onChange === 'function' && onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, type, val === null || val === void 0 ? void 0 : val.trim())));
|
|
13530
13674
|
};
|
|
13531
13675
|
var handelSelectChange = function handelSelectChange(val) {
|
|
13532
13676
|
typeof onChange === 'function' && onChange(_objectSpread2(_objectSpread2({}, value), {}, {
|
|
@@ -13926,10 +14070,14 @@ var typeInitValueMap = {
|
|
|
13926
14070
|
}],
|
|
13927
14071
|
4: [{
|
|
13928
14072
|
deliveryNo: null
|
|
14073
|
+
}],
|
|
14074
|
+
5: [{
|
|
14075
|
+
returnWarehouseName: null,
|
|
14076
|
+
returnWarehouseId: null
|
|
13929
14077
|
}]
|
|
13930
14078
|
};
|
|
13931
14079
|
var jstGoods = function jstGoods(props) {
|
|
13932
|
-
var _value$changeIndex, _value$changeIndex2, _value$changeIndex3, _value$changeIndex4, _value$changeIndex5, _value$changeIndex6, _value$changeIndex7, _value$changeIndex8, _value$changeIndex9, _value$changeIndex10, _value$changeIndex11, _value$changeIndex12, _value$changeIndex13;
|
|
14080
|
+
var _value$changeIndex, _value$changeIndex2, _value$changeIndex3, _value$changeIndex4, _value$changeIndex5, _value$changeIndex6, _value$changeIndex7, _value$changeIndex8, _value$changeIndex9, _value$changeIndex10, _value$changeIndex11, _value$changeIndex12, _value$changeIndex13, _value$changeIndex14, _value$changeIndex15, _value$changeIndex16, _value$changeIndex17;
|
|
13933
14081
|
var _props$value = props.value,
|
|
13934
14082
|
value = _props$value === void 0 ? [] : _props$value,
|
|
13935
14083
|
onChange = props.onChange,
|
|
@@ -14002,13 +14150,28 @@ var jstGoods = function jstGoods(props) {
|
|
|
14002
14150
|
newList[changeIndex] = changeOrderInfo;
|
|
14003
14151
|
onChange === null || onChange === void 0 ? void 0 : onChange(newList);
|
|
14004
14152
|
};
|
|
14153
|
+
var handleSelectedReturn = function handleSelectedReturn(val, type, option, onlyShowFieldSelect) {
|
|
14154
|
+
var changeOrderInfo = _objectSpread2({}, value[changeIndex]);
|
|
14155
|
+
changeOrderInfo[type] = val;
|
|
14156
|
+
if (!onlyShowFieldSelect) {
|
|
14157
|
+
changeOrderInfo['returnWarehouseId'] = option.value;
|
|
14158
|
+
}
|
|
14159
|
+
if (isSelectName && type === 'returnWarehouseName') {
|
|
14160
|
+
// 如果发货仓名称存的是name,将id存入快照,同时把id替换成名称
|
|
14161
|
+
changeOrderInfo['sendSnapshotId'] = option.value;
|
|
14162
|
+
changeOrderInfo['returnWarehouseName'] = option.label;
|
|
14163
|
+
}
|
|
14164
|
+
var newList = _toConsumableArray(value);
|
|
14165
|
+
newList[changeIndex] = changeOrderInfo;
|
|
14166
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(newList);
|
|
14167
|
+
};
|
|
14005
14168
|
var filterOption = function filterOption(input, option) {
|
|
14006
14169
|
var _option$label;
|
|
14007
14170
|
return ((_option$label = option === null || option === void 0 ? void 0 : option.label) !== null && _option$label !== void 0 ? _option$label : '').includes(input);
|
|
14008
14171
|
};
|
|
14009
14172
|
var changeInputHandle = function changeInputHandle(val, type) {
|
|
14010
14173
|
var changeOrderInfo = _objectSpread2({}, value[changeIndex]);
|
|
14011
|
-
changeOrderInfo[type] = val;
|
|
14174
|
+
changeOrderInfo[type] = val === null || val === void 0 ? void 0 : val.trim();
|
|
14012
14175
|
var newList = _toConsumableArray(value);
|
|
14013
14176
|
newList[changeIndex] = changeOrderInfo;
|
|
14014
14177
|
onChange === null || onChange === void 0 ? void 0 : onChange(newList);
|
|
@@ -14116,7 +14279,35 @@ var jstGoods = function jstGoods(props) {
|
|
|
14116
14279
|
return changeInputHandle(e.target.value, 'deliveryNo');
|
|
14117
14280
|
},
|
|
14118
14281
|
value: (_value$changeIndex13 = value[changeIndex]) === null || _value$changeIndex13 === void 0 ? void 0 : _value$changeIndex13.sendName
|
|
14119
|
-
})) : null
|
|
14282
|
+
})) : null, type === 5 ? /*#__PURE__*/React.createElement(Space, null, ['returnWarehouseId', 'all'].includes(showField) && /*#__PURE__*/React.createElement(Input, {
|
|
14283
|
+
disabled: disabled,
|
|
14284
|
+
placeholder: "\u8BF7\u8F93\u5165\u9000\u8D27\u4ED3\u7F16\u7801",
|
|
14285
|
+
onChange: function onChange(e) {
|
|
14286
|
+
return changeInputHandle(e.target.value, 'returnWarehouseId');
|
|
14287
|
+
},
|
|
14288
|
+
value: (_value$changeIndex14 = value[changeIndex]) === null || _value$changeIndex14 === void 0 ? void 0 : _value$changeIndex14.returnWarehouseId
|
|
14289
|
+
}), ['returnWarehouseName', 'all'].includes(showField) && (isSelectName ? /*#__PURE__*/React.createElement(Select, {
|
|
14290
|
+
style: {
|
|
14291
|
+
minWidth: '100px',
|
|
14292
|
+
maxWidth: '180px'
|
|
14293
|
+
},
|
|
14294
|
+
disabled: disabled,
|
|
14295
|
+
placeholder: "\u9000\u8D27\u4ED3\u540D\u79F0",
|
|
14296
|
+
showSearch: true,
|
|
14297
|
+
options: sendOptions,
|
|
14298
|
+
filterOption: filterOption,
|
|
14299
|
+
value: ((_value$changeIndex15 = value[changeIndex]) === null || _value$changeIndex15 === void 0 ? void 0 : _value$changeIndex15.sendSnapshotId) || ((_value$changeIndex16 = value[changeIndex]) === null || _value$changeIndex16 === void 0 ? void 0 : _value$changeIndex16.returnWarehouseName) || null,
|
|
14300
|
+
onChange: function onChange(value, option) {
|
|
14301
|
+
return handleSelectedReturn(value, 'returnWarehouseName', option, onlyShowFieldSelect);
|
|
14302
|
+
}
|
|
14303
|
+
}) : /*#__PURE__*/React.createElement(Input, {
|
|
14304
|
+
disabled: disabled,
|
|
14305
|
+
placeholder: "\u8BF7\u8F93\u5165\u9000\u8D27\u4ED3\u540D\u79F0",
|
|
14306
|
+
onChange: function onChange(e) {
|
|
14307
|
+
return changeInputHandle(e.target.value, 'returnWarehouseName');
|
|
14308
|
+
},
|
|
14309
|
+
value: (_value$changeIndex17 = value[changeIndex]) === null || _value$changeIndex17 === void 0 ? void 0 : _value$changeIndex17.returnWarehouseName
|
|
14310
|
+
}))) : null) : null);
|
|
14120
14311
|
};
|
|
14121
14312
|
|
|
14122
14313
|
var css_248z$a = ".jstGoodsBox {\n display: flex;\n flex-wrap: wrap;\n}\n.jstGoodsBox .goodBox-Img {\n width: 80px;\n margin: 0 10px 10px 0;\n}\n.jstGoodsBox .right-context {\n font-size: 12px;\n}\n.jstGoodsBox .right-context .ant-input {\n font-size: 12px;\n width: 80px;\n height: 20px;\n padding-left: 5px;\n padding-right: 5px;\n}\n.jstGoodsBox .right-context .ant-input.id-textarea {\n width: 80px;\n resize: none;\n height: 45px;\n}\n.jstGoodsBox.goodsBox-item-horizontal--box {\n flex-direction: row;\n width: auto;\n}\n.jstimgBox {\n position: relative;\n width: 80px;\n height: 80px;\n border-radius: 4px;\n border: 1px solid #f2f3f5;\n margin: 0 10px 10px 0;\n text-align: center;\n background-color: #f2f3f5;\n display: flex;\n justify-items: center;\n align-items: center;\n}\n.jstimgBox .add-btn {\n color: #86909c;\n}\n.jstimgBox .text {\n color: #86909c;\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.searchBox {\n display: flex;\n justify-content: space-between;\n flex-wrap: wrap;\n margin-bottom: 10px;\n}\n.searchBox .search {\n width: 150px;\n margin-left: 6px;\n}\n.deg90 {\n transform: rotate(90deg);\n}\n.goodsMain {\n display: flex;\n flex-wrap: wrap;\n height: 400px;\n overflow-y: auto;\n margin-bottom: 10px;\n}\n.goodsMain .goodItem {\n width: 142px;\n height: 184px;\n padding: 7px;\n margin: 0 16px 16px 0;\n border-radius: 4px;\n background: #ffffff;\n box-sizing: border-box;\n /* 主题色/常规 */\n border: 1px solid #c9cdd4;\n}\n.goodsMain .goodItem .goodImg {\n width: 128px;\n height: 128px;\n border-radius: 4px;\n overflow: hidden;\n}\n.goodsMain .goodItem .goodImg img {\n width: 100%;\n height: 100%;\n -o-object-fit: contain;\n object-fit: contain;\n}\n.goodsMain .goodItem .goodText {\n text-align: center;\n font-size: 12px;\n color: #4e5969;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.goodsMain .goodItem .goodPrice {\n text-align: center;\n font-size: 14px;\n color: #1d2129;\n}\n.goodsMain .goodItem.active {\n border: 1px solid #1b5bf3;\n}\n@media screen and (max-width: 500px) {\n .goodsMain {\n display: grid;\n grid-template-columns: repeat(3, 1fr);\n grid-gap: 8px;\n height: 300px;\n }\n .goodsMain .goodItem {\n height: 126px;\n width: 83px;\n padding: 4px;\n margin: 0;\n border-radius: 4px;\n background: #FFFFFF;\n box-sizing: border-box;\n border: 1px solid rgba(0, 0, 0, 0.15);\n }\n .goodsMain .goodItem .goodImg {\n width: 98%;\n height: 77px;\n }\n .goodsMain .goodItem .goodText {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .goodsMain .goodItem.active {\n border: 1px solid #3089dc;\n }\n .searchBox {\n display: flex;\n flex-wrap: wrap;\n justify-content: initial;\n }\n .searchBox .classify {\n width: 120px;\n }\n .goodModal .ant-modal-body {\n padding: 8px;\n }\n}\n.goods-uploaded-count {\n color: #ff3638;\n}\n.footer {\n display: flex;\n justify-content: flex-end;\n}\n.right-context {\n display: flex;\n flex-direction: column;\n}\n.right-context .info-row {\n width: 80px;\n display: flex;\n align-items: center;\n padding: 0px 8px;\n border-radius: 2px;\n cursor: pointer;\n background: #f2f3f5;\n margin-bottom: 4px;\n}\n.right-context .info-row > div {\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n overflow: hidden;\n word-break: break-all;\n}\n.sphPagination {\n display: flex;\n align-items: center;\n}\n.sphPagination .shpBtn {\n display: flex;\n justify-content: center;\n align-items: center;\n padding: 0 8px;\n height: 32px;\n border: 1px solid #d9d9d9;\n border-radius: 2px;\n cursor: pointer;\n margin: 0 8px;\n}\n.sphPagination .shpBtn.unCursor {\n color: #eee;\n cursor: not-allowed;\n}\n";
|
|
@@ -14930,6 +15121,13 @@ var wdtColumns = [{
|
|
|
14930
15121
|
title: '辅助单位',
|
|
14931
15122
|
width: 150,
|
|
14932
15123
|
render: renderTextEllipsis
|
|
15124
|
+
}, {
|
|
15125
|
+
dataIndex: 'skuType',
|
|
15126
|
+
title: '是否组合装',
|
|
15127
|
+
width: 150,
|
|
15128
|
+
render: function render(type) {
|
|
15129
|
+
return type === 'suite' ? '组合装' : '非组合装';
|
|
15130
|
+
}
|
|
14933
15131
|
}];
|
|
14934
15132
|
|
|
14935
15133
|
var bse3Columns = [{
|
|
@@ -15086,7 +15284,9 @@ var kmColumns = [{
|
|
|
15086
15284
|
title: "\u5546\u54C1\u7C7B\u578B",
|
|
15087
15285
|
ellipsis: true,
|
|
15088
15286
|
width: 150,
|
|
15089
|
-
render:
|
|
15287
|
+
render: function render(type) {
|
|
15288
|
+
return renderTextEllipsis((kmSkuTypeMap === null || kmSkuTypeMap === void 0 ? void 0 : kmSkuTypeMap[type]) || type);
|
|
15289
|
+
}
|
|
15090
15290
|
}, {
|
|
15091
15291
|
dataIndex: 'specName',
|
|
15092
15292
|
title: "SKU\u540D\u79F0",
|
|
@@ -15318,34 +15518,75 @@ var jyColumns = [{
|
|
|
15318
15518
|
}
|
|
15319
15519
|
}];
|
|
15320
15520
|
|
|
15521
|
+
var getYesOrNo$2 = function getYesOrNo(val) {
|
|
15522
|
+
if (!isBoolean(val)) return null;
|
|
15523
|
+
return val ? '是' : '否';
|
|
15524
|
+
};
|
|
15321
15525
|
var jkyColumns = [{
|
|
15322
|
-
dataIndex: '
|
|
15323
|
-
title: "\u8D27\u54C1\
|
|
15526
|
+
dataIndex: 'goodName',
|
|
15527
|
+
title: "\u8D27\u54C1\u540D\u79F0",
|
|
15324
15528
|
align: 'center',
|
|
15325
15529
|
ellipsis: true,
|
|
15326
15530
|
width: 150,
|
|
15327
15531
|
render: renderTextEllipsis
|
|
15328
15532
|
}, {
|
|
15329
|
-
dataIndex: '
|
|
15330
|
-
title: "\u8D27\u54C1\
|
|
15533
|
+
dataIndex: 'goodNo',
|
|
15534
|
+
title: "\u8D27\u54C1\u7F16\u53F7",
|
|
15331
15535
|
align: 'center',
|
|
15332
15536
|
ellipsis: true,
|
|
15333
15537
|
width: 150,
|
|
15334
15538
|
render: renderTextEllipsis
|
|
15335
15539
|
}, {
|
|
15336
|
-
dataIndex: '
|
|
15540
|
+
dataIndex: 'goodId',
|
|
15337
15541
|
title: "\u8D27\u54C1ID",
|
|
15338
15542
|
align: 'center',
|
|
15339
15543
|
ellipsis: true,
|
|
15340
15544
|
width: 150,
|
|
15341
15545
|
render: renderTextEllipsis
|
|
15342
15546
|
}, {
|
|
15343
|
-
dataIndex: '
|
|
15547
|
+
dataIndex: 'goodPicUrl',
|
|
15548
|
+
title: "\u8D27\u54C1\u4E3B\u56FE",
|
|
15549
|
+
align: 'center',
|
|
15550
|
+
ellipsis: true,
|
|
15551
|
+
width: 150,
|
|
15552
|
+
render: function render(picUrl) {
|
|
15553
|
+
return /*#__PURE__*/React.createElement("img", {
|
|
15554
|
+
style: {
|
|
15555
|
+
width: '30px',
|
|
15556
|
+
height: '30px',
|
|
15557
|
+
objectFit: 'contain'
|
|
15558
|
+
},
|
|
15559
|
+
src: picUrl
|
|
15560
|
+
});
|
|
15561
|
+
}
|
|
15562
|
+
}, {
|
|
15563
|
+
dataIndex: 'goodShortName',
|
|
15564
|
+
title: "\u8D27\u54C1\u522B\u540D",
|
|
15565
|
+
align: 'center',
|
|
15566
|
+
ellipsis: true,
|
|
15567
|
+
width: 150,
|
|
15568
|
+
render: renderTextEllipsis
|
|
15569
|
+
}, {
|
|
15570
|
+
dataIndex: 'specBarcode',
|
|
15344
15571
|
title: "\u8D27\u54C1\u6761\u7801",
|
|
15345
15572
|
align: 'center',
|
|
15346
15573
|
ellipsis: true,
|
|
15347
15574
|
width: 150,
|
|
15348
15575
|
render: renderTextEllipsis
|
|
15576
|
+
}, {
|
|
15577
|
+
dataIndex: 'categoryName',
|
|
15578
|
+
title: "\u8D27\u54C1\u7C7B\u522B",
|
|
15579
|
+
align: 'center',
|
|
15580
|
+
ellipsis: true,
|
|
15581
|
+
width: 150,
|
|
15582
|
+
render: renderTextEllipsis
|
|
15583
|
+
}, {
|
|
15584
|
+
dataIndex: 'brandName',
|
|
15585
|
+
title: "\u54C1\u724C",
|
|
15586
|
+
align: 'center',
|
|
15587
|
+
ellipsis: true,
|
|
15588
|
+
width: 200,
|
|
15589
|
+
render: renderTextEllipsis
|
|
15349
15590
|
}, {
|
|
15350
15591
|
dataIndex: 'specName',
|
|
15351
15592
|
title: "\u89C4\u683C\u540D\u79F0",
|
|
@@ -15361,7 +15602,14 @@ var jkyColumns = [{
|
|
|
15361
15602
|
width: 150,
|
|
15362
15603
|
render: renderTextEllipsis
|
|
15363
15604
|
}, {
|
|
15364
|
-
dataIndex: '
|
|
15605
|
+
dataIndex: 'specNo',
|
|
15606
|
+
title: "\u89C4\u683C\u7F16\u7801",
|
|
15607
|
+
align: 'center',
|
|
15608
|
+
ellipsis: true,
|
|
15609
|
+
width: 150,
|
|
15610
|
+
render: renderTextEllipsis
|
|
15611
|
+
}, {
|
|
15612
|
+
dataIndex: 'specImgUrl',
|
|
15365
15613
|
title: "\u89C4\u683C\u56FE\u7247",
|
|
15366
15614
|
align: 'center',
|
|
15367
15615
|
ellipsis: true,
|
|
@@ -15377,162 +15625,78 @@ var jkyColumns = [{
|
|
|
15377
15625
|
});
|
|
15378
15626
|
}
|
|
15379
15627
|
}, {
|
|
15380
|
-
dataIndex: '
|
|
15381
|
-
title: "\
|
|
15382
|
-
|
|
15383
|
-
|
|
15384
|
-
return /*#__PURE__*/React.createElement("span", null, val);
|
|
15385
|
-
}
|
|
15386
|
-
}, {
|
|
15387
|
-
dataIndex: 'actualSendCount',
|
|
15388
|
-
title: "\u5B9E\u53D1\u6570\u91CF",
|
|
15628
|
+
dataIndex: 'colorName',
|
|
15629
|
+
title: "\u989C\u8272\u540D\u79F0",
|
|
15630
|
+
align: 'center',
|
|
15631
|
+
ellipsis: true,
|
|
15389
15632
|
width: 150,
|
|
15390
15633
|
render: renderTextEllipsis
|
|
15391
15634
|
}, {
|
|
15392
|
-
dataIndex: '
|
|
15393
|
-
title: "\
|
|
15394
|
-
width: 150,
|
|
15395
|
-
render: function render(val) {
|
|
15396
|
-
return val || val === 0 ? Number(val).toFixed(2) : '';
|
|
15397
|
-
}
|
|
15398
|
-
}, {
|
|
15399
|
-
dataIndex: 'sellTotal',
|
|
15400
|
-
title: "\u91D1\u989D",
|
|
15401
|
-
width: 150
|
|
15402
|
-
}, {
|
|
15403
|
-
dataIndex: 'discountTotal',
|
|
15404
|
-
title: "\u62B5\u6263\u91D1\u989D",
|
|
15405
|
-
width: 150
|
|
15406
|
-
}, {
|
|
15407
|
-
dataIndex: 'shareFavourableFee',
|
|
15408
|
-
title: "\u5206\u644A\u91D1\u989D",
|
|
15409
|
-
width: 150
|
|
15410
|
-
}, {
|
|
15411
|
-
dataIndex: 'shareFavourableAfterFee',
|
|
15412
|
-
title: "\u5206\u644A\u540E\u91D1\u989D",
|
|
15413
|
-
width: 150
|
|
15414
|
-
}, {
|
|
15415
|
-
dataIndex: 'customerPrice',
|
|
15416
|
-
title: "\u7EC8\u7AEF\u9500\u552E\u5355\u4EF7",
|
|
15417
|
-
width: 150
|
|
15418
|
-
}, {
|
|
15419
|
-
dataIndex: 'customerTotal',
|
|
15420
|
-
title: "\u7EC8\u7AEF\u9500\u552E\u91D1\u989D",
|
|
15421
|
-
width: 150
|
|
15422
|
-
}, {
|
|
15423
|
-
dataIndex: 'divideSellTotal',
|
|
15424
|
-
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
15425
|
-
width: 150
|
|
15426
|
-
}, {
|
|
15427
|
-
dataIndex: 'isGift',
|
|
15428
|
-
title: "\u662F\u5426\u8D60\u54C1",
|
|
15429
|
-
width: 150,
|
|
15430
|
-
render: function render(val) {
|
|
15431
|
-
return /*#__PURE__*/React.createElement("span", null, val === '1' ? '是' : '否');
|
|
15432
|
-
}
|
|
15433
|
-
}, {
|
|
15434
|
-
dataIndex: 'isFit',
|
|
15435
|
-
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
15436
|
-
width: 150,
|
|
15437
|
-
render: function render(val) {
|
|
15438
|
-
return /*#__PURE__*/React.createElement("span", null, val === '1' ? '是' : '否');
|
|
15439
|
-
}
|
|
15440
|
-
}, {
|
|
15441
|
-
dataIndex: 'isPresell',
|
|
15442
|
-
title: "\u662F\u5426\u9884\u552E\u8D27\u54C1",
|
|
15443
|
-
width: 150,
|
|
15444
|
-
render: function render(val) {
|
|
15445
|
-
return /*#__PURE__*/React.createElement("span", null, val === '1' ? '是' : '否');
|
|
15446
|
-
}
|
|
15447
|
-
}, {
|
|
15448
|
-
dataIndex: 'brandName',
|
|
15449
|
-
title: "\u54C1\u724C",
|
|
15635
|
+
dataIndex: 'colorCode',
|
|
15636
|
+
title: "\u989C\u8272\u4EE3\u7801",
|
|
15450
15637
|
align: 'center',
|
|
15451
15638
|
ellipsis: true,
|
|
15452
|
-
width:
|
|
15639
|
+
width: 150,
|
|
15453
15640
|
render: renderTextEllipsis
|
|
15454
15641
|
}, {
|
|
15455
|
-
dataIndex: '
|
|
15456
|
-
title: "\
|
|
15642
|
+
dataIndex: 'sizeName',
|
|
15643
|
+
title: "\u5C3A\u7801\u540D\u79F0",
|
|
15457
15644
|
align: 'center',
|
|
15458
15645
|
ellipsis: true,
|
|
15459
15646
|
width: 150,
|
|
15460
15647
|
render: renderTextEllipsis
|
|
15461
15648
|
}, {
|
|
15462
|
-
dataIndex: '
|
|
15463
|
-
title: "\
|
|
15649
|
+
dataIndex: 'sizeCode',
|
|
15650
|
+
title: "\u5C3A\u7801\u4EE3\u7801",
|
|
15464
15651
|
align: 'center',
|
|
15465
15652
|
ellipsis: true,
|
|
15466
|
-
width:
|
|
15653
|
+
width: 150,
|
|
15467
15654
|
render: renderTextEllipsis
|
|
15468
15655
|
}, {
|
|
15469
|
-
dataIndex: '
|
|
15470
|
-
title: "\
|
|
15656
|
+
dataIndex: 'marketPrice',
|
|
15657
|
+
title: "\u5E02\u573A\u4EF7",
|
|
15471
15658
|
align: 'center',
|
|
15472
15659
|
ellipsis: true,
|
|
15473
|
-
width:
|
|
15660
|
+
width: 150,
|
|
15474
15661
|
render: renderTextEllipsis
|
|
15475
15662
|
}, {
|
|
15476
|
-
dataIndex: '
|
|
15477
|
-
title: "\
|
|
15663
|
+
dataIndex: 'retailPrice',
|
|
15664
|
+
title: "\u96F6\u552E\u4EF7",
|
|
15478
15665
|
align: 'center',
|
|
15479
15666
|
ellipsis: true,
|
|
15480
|
-
width:
|
|
15667
|
+
width: 150,
|
|
15481
15668
|
render: renderTextEllipsis
|
|
15482
15669
|
}, {
|
|
15483
|
-
dataIndex: '
|
|
15484
|
-
title: "\
|
|
15670
|
+
dataIndex: 'memberPrice',
|
|
15671
|
+
title: "\u4F1A\u5458\u4EF7",
|
|
15672
|
+
align: 'center',
|
|
15485
15673
|
ellipsis: true,
|
|
15486
|
-
width:
|
|
15674
|
+
width: 150,
|
|
15487
15675
|
render: renderTextEllipsis
|
|
15488
15676
|
}, {
|
|
15489
|
-
dataIndex: '
|
|
15490
|
-
title: "\
|
|
15677
|
+
dataIndex: 'costPrice',
|
|
15678
|
+
title: "\u6210\u672C\u4EF7",
|
|
15679
|
+
align: 'center',
|
|
15491
15680
|
ellipsis: true,
|
|
15492
|
-
width:
|
|
15681
|
+
width: 150,
|
|
15493
15682
|
render: renderTextEllipsis
|
|
15494
15683
|
}, {
|
|
15495
|
-
dataIndex: '
|
|
15496
|
-
title: "\
|
|
15684
|
+
dataIndex: 'isVirtual',
|
|
15685
|
+
title: "\u662F\u5426\u865A\u62DF\u5546\u54C1",
|
|
15686
|
+
align: 'center',
|
|
15497
15687
|
ellipsis: true,
|
|
15498
|
-
width:
|
|
15499
|
-
render:
|
|
15688
|
+
width: 150,
|
|
15689
|
+
render: function render(val) {
|
|
15690
|
+
return renderTextEllipsis(getYesOrNo$2(val));
|
|
15691
|
+
}
|
|
15500
15692
|
}, {
|
|
15501
|
-
dataIndex: '
|
|
15502
|
-
title: "\
|
|
15503
|
-
ellipsis: true,
|
|
15504
|
-
width: 250,
|
|
15505
|
-
render: renderTextEllipsis
|
|
15506
|
-
}, {
|
|
15507
|
-
dataIndex: 'subTradeId',
|
|
15508
|
-
title: "\u5546\u54C1\u660E\u7EC6ID",
|
|
15509
|
-
ellipsis: true,
|
|
15510
|
-
width: 250,
|
|
15511
|
-
render: renderTextEllipsis
|
|
15512
|
-
}, {
|
|
15513
|
-
dataIndex: 'batchNo',
|
|
15514
|
-
title: "\u6279\u6B21\u53F7",
|
|
15515
|
-
ellipsis: true,
|
|
15516
|
-
width: 250,
|
|
15517
|
-
render: renderTextEllipsis
|
|
15518
|
-
}, {
|
|
15519
|
-
dataIndex: 'sendCount',
|
|
15520
|
-
title: "\u6279\u6B21\u6570\u91CF",
|
|
15521
|
-
ellipsis: true,
|
|
15522
|
-
width: 250,
|
|
15523
|
-
render: renderTextEllipsis
|
|
15524
|
-
}, {
|
|
15525
|
-
dataIndex: 'productDate',
|
|
15526
|
-
title: "\u751F\u4EA7\u65E5\u671F",
|
|
15527
|
-
ellipsis: true,
|
|
15528
|
-
width: 250,
|
|
15529
|
-
render: renderTextEllipsis
|
|
15530
|
-
}, {
|
|
15531
|
-
dataIndex: 'expireDate',
|
|
15532
|
-
title: "\u5230\u671F\u65E5\u671F",
|
|
15693
|
+
dataIndex: 'skuType',
|
|
15694
|
+
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
15533
15695
|
ellipsis: true,
|
|
15534
|
-
width:
|
|
15535
|
-
render:
|
|
15696
|
+
width: 150,
|
|
15697
|
+
render: function render(val) {
|
|
15698
|
+
return renderTextEllipsis(getYesOrNo$2(val === 'combine'));
|
|
15699
|
+
}
|
|
15536
15700
|
}];
|
|
15537
15701
|
|
|
15538
15702
|
var getColumnsMap = function getColumnsMap() {
|
|
@@ -15806,14 +15970,7 @@ var transformFormData = function transformFormData(formData) {
|
|
|
15806
15970
|
if (formData[key]) {
|
|
15807
15971
|
var _formData$key, _formData$key2, _formData$key3, _formData$key4;
|
|
15808
15972
|
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];
|
|
15809
|
-
|
|
15810
|
-
if (typeof value === 'string' && (value.includes(',') || value.includes("\uFF0C") || value.includes(' '))) {
|
|
15811
|
-
var _value, _value$replace, _value$replace$split;
|
|
15812
|
-
value = (_value = value) === null || _value === void 0 ? void 0 : (_value$replace = _value.replace(/[,, ]/g, ',')) === null || _value$replace === void 0 ? void 0 : (_value$replace$split = _value$replace.split(',')) === null || _value$replace$split === void 0 ? void 0 : _value$replace$split.filter(function (v) {
|
|
15813
|
-
return v;
|
|
15814
|
-
});
|
|
15815
|
-
}
|
|
15816
|
-
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) ? 'include' : 'eq';
|
|
15973
|
+
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';
|
|
15817
15974
|
conditionList.push({
|
|
15818
15975
|
leftValue: key,
|
|
15819
15976
|
compareSymbol: compareSymbol,
|
|
@@ -15959,6 +16116,24 @@ var GoodList = function GoodList(props, ref) {
|
|
|
15959
16116
|
};
|
|
15960
16117
|
})
|
|
15961
16118
|
}
|
|
16119
|
+
}, {
|
|
16120
|
+
label: '是否组合装',
|
|
16121
|
+
name: 'skuType',
|
|
16122
|
+
dataIndex: 'skuType',
|
|
16123
|
+
type: 'select',
|
|
16124
|
+
formItemProps: {
|
|
16125
|
+
mode: 'multiple',
|
|
16126
|
+
filterOption: function filterOption(input, option) {
|
|
16127
|
+
return option.label.includes(input);
|
|
16128
|
+
},
|
|
16129
|
+
options: [{
|
|
16130
|
+
label: '组合装',
|
|
16131
|
+
value: 'suite'
|
|
16132
|
+
}, {
|
|
16133
|
+
label: '非组合装',
|
|
16134
|
+
value: ''
|
|
16135
|
+
}]
|
|
16136
|
+
}
|
|
15962
16137
|
}];
|
|
15963
16138
|
var rowSelection = {
|
|
15964
16139
|
selectedRowKeys: selectIds,
|
|
@@ -18782,13 +18957,15 @@ var JyGoodsModal$1 = /*#__PURE__*/forwardRef(JyGoodsModal);
|
|
|
18782
18957
|
var getTableData$6 = function getTableData(_ref, formData) {
|
|
18783
18958
|
var current = _ref.current,
|
|
18784
18959
|
pageSize = _ref.pageSize;
|
|
18960
|
+
var conditionList = transformFormData(formData);
|
|
18785
18961
|
return extendRequest('/qy/gdfw/product/product/page', {
|
|
18786
18962
|
method: 'post',
|
|
18787
|
-
data:
|
|
18963
|
+
data: {
|
|
18788
18964
|
pageSize: pageSize,
|
|
18789
18965
|
pageNo: current,
|
|
18790
|
-
platform: '
|
|
18791
|
-
|
|
18966
|
+
platform: 'JKY_ERP',
|
|
18967
|
+
conditionList: conditionList
|
|
18968
|
+
}
|
|
18792
18969
|
}).then(function (res) {
|
|
18793
18970
|
var _res$data = res.data,
|
|
18794
18971
|
_res$data$productSkuL = _res$data.productSkuList,
|
|
@@ -18811,13 +18988,15 @@ var searchFormData$5 = [{
|
|
|
18811
18988
|
}, {
|
|
18812
18989
|
label: '规格编码',
|
|
18813
18990
|
name: 'skuCode',
|
|
18814
|
-
dataIndex: 'specNo'
|
|
18991
|
+
dataIndex: 'specNo',
|
|
18992
|
+
type: 'optionalInput'
|
|
18815
18993
|
}, {
|
|
18816
|
-
label: '
|
|
18994
|
+
label: '货品名称',
|
|
18817
18995
|
name: 'goodName'
|
|
18818
18996
|
}, {
|
|
18819
|
-
label: '
|
|
18820
|
-
name: 'goodNo'
|
|
18997
|
+
label: '货品编码',
|
|
18998
|
+
name: 'goodNo',
|
|
18999
|
+
type: 'optionalInput'
|
|
18821
19000
|
}];
|
|
18822
19001
|
var GoodList$6 = function GoodList(props, ref) {
|
|
18823
19002
|
var _useState = useState([]),
|
|
@@ -18887,8 +19066,8 @@ var GoodList$6 = function GoodList(props, ref) {
|
|
|
18887
19066
|
getCheckboxProps: function getCheckboxProps(record) {
|
|
18888
19067
|
var options = {
|
|
18889
19068
|
disabled: (props.selectedRows || []).map(function (row) {
|
|
18890
|
-
return row.
|
|
18891
|
-
}).includes(record.
|
|
19069
|
+
return row.specId || record.id;
|
|
19070
|
+
}).includes(record.specId || record.id),
|
|
18892
19071
|
name: record.id
|
|
18893
19072
|
};
|
|
18894
19073
|
return options;
|
|
@@ -20335,7 +20514,7 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
20335
20514
|
};
|
|
20336
20515
|
};
|
|
20337
20516
|
|
|
20338
|
-
var getYesOrNo$
|
|
20517
|
+
var getYesOrNo$3 = function getYesOrNo(val) {
|
|
20339
20518
|
if (isNull(val)) return null;
|
|
20340
20519
|
return val ? '是' : '否';
|
|
20341
20520
|
};
|
|
@@ -20486,7 +20665,7 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
20486
20665
|
label: '否',
|
|
20487
20666
|
value: false
|
|
20488
20667
|
}]
|
|
20489
|
-
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$
|
|
20668
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$3(val));
|
|
20490
20669
|
},
|
|
20491
20670
|
width: 100
|
|
20492
20671
|
}]
|
|
@@ -20498,7 +20677,7 @@ var isNumberOrNumberString$1 = function isNumberOrNumberString(value) {
|
|
|
20498
20677
|
if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
|
|
20499
20678
|
return false;
|
|
20500
20679
|
};
|
|
20501
|
-
var getYesOrNo$
|
|
20680
|
+
var getYesOrNo$4 = function getYesOrNo(val) {
|
|
20502
20681
|
if (isNull(val)) return null;
|
|
20503
20682
|
return val ? '是' : '否';
|
|
20504
20683
|
};
|
|
@@ -20613,7 +20792,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
20613
20792
|
title: "\u662F\u5426\u53D6\u6D88",
|
|
20614
20793
|
width: 150,
|
|
20615
20794
|
render: function render(val) {
|
|
20616
|
-
return /*#__PURE__*/React.createElement("span", null, getYesOrNo$
|
|
20795
|
+
return /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
|
|
20617
20796
|
}
|
|
20618
20797
|
}, {
|
|
20619
20798
|
dataIndex: 'isGift',
|
|
@@ -20632,7 +20811,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
20632
20811
|
label: '否',
|
|
20633
20812
|
value: 0
|
|
20634
20813
|
}]
|
|
20635
|
-
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$
|
|
20814
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
|
|
20636
20815
|
}
|
|
20637
20816
|
}, {
|
|
20638
20817
|
dataIndex: 'skuNote',
|
|
@@ -20758,7 +20937,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
20758
20937
|
label: '否',
|
|
20759
20938
|
value: 0
|
|
20760
20939
|
}]
|
|
20761
|
-
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$
|
|
20940
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
|
|
20762
20941
|
}
|
|
20763
20942
|
}].map(function (item) {
|
|
20764
20943
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
@@ -20887,7 +21066,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
20887
21066
|
label: '否',
|
|
20888
21067
|
value: 0
|
|
20889
21068
|
}]
|
|
20890
|
-
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$
|
|
21069
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
|
|
20891
21070
|
}
|
|
20892
21071
|
}].map(function (item) {
|
|
20893
21072
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
@@ -21626,16 +21805,28 @@ function toNum$3(value) {
|
|
|
21626
21805
|
}
|
|
21627
21806
|
return void 0;
|
|
21628
21807
|
}
|
|
21629
|
-
var
|
|
21630
|
-
|
|
21808
|
+
var isNumberOrNumberString$2 = function isNumberOrNumberString(value) {
|
|
21809
|
+
if (typeof value === 'number') return true;
|
|
21810
|
+
if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
|
|
21811
|
+
return false;
|
|
21812
|
+
};
|
|
21813
|
+
var getColumns$6 = function getColumns() {
|
|
21814
|
+
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
21815
|
+
_ref$text = _ref.text,
|
|
21631
21816
|
disabled = _ref.disabled,
|
|
21632
|
-
updateHandle = _ref.updateHandle
|
|
21817
|
+
updateHandle = _ref.updateHandle,
|
|
21818
|
+
updateDataHandle = _ref.updateDataHandle;
|
|
21633
21819
|
return {
|
|
21634
21820
|
KM_GOODS: [{
|
|
21635
21821
|
dataIndex: 'skuPropertiesName',
|
|
21636
21822
|
title: "\u89C4\u683C\u540D\u79F0",
|
|
21637
21823
|
width: 250,
|
|
21638
21824
|
render: renderTextEllipsis
|
|
21825
|
+
}, {
|
|
21826
|
+
dataIndex: 'sysSkuPropertiesName',
|
|
21827
|
+
title: "\u7CFB\u7EDF\u89C4\u683C\u540D\u79F0",
|
|
21828
|
+
width: 150,
|
|
21829
|
+
render: renderTextEllipsis
|
|
21639
21830
|
}, {
|
|
21640
21831
|
dataIndex: 'sysTitle',
|
|
21641
21832
|
title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
|
|
@@ -21743,6 +21934,11 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
21743
21934
|
title: "\u4F9B\u5E94\u5546\u7F16\u7801",
|
|
21744
21935
|
width: 150,
|
|
21745
21936
|
render: renderTextEllipsis
|
|
21937
|
+
}, {
|
|
21938
|
+
dataIndex: 'remark',
|
|
21939
|
+
title: "\u5907\u6CE8",
|
|
21940
|
+
width: 200,
|
|
21941
|
+
render: renderTextEllipsis
|
|
21746
21942
|
}].map(function (item) {
|
|
21747
21943
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
21748
21944
|
align: 'center',
|
|
@@ -21754,6 +21950,11 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
21754
21950
|
title: "\u89C4\u683C\u540D\u79F0",
|
|
21755
21951
|
width: 250,
|
|
21756
21952
|
render: renderTextEllipsis
|
|
21953
|
+
}, {
|
|
21954
|
+
dataIndex: 'sysSkuPropertiesName',
|
|
21955
|
+
title: "\u7CFB\u7EDF\u89C4\u683C\u540D\u79F0",
|
|
21956
|
+
width: 150,
|
|
21957
|
+
render: renderTextEllipsis
|
|
21757
21958
|
}, {
|
|
21758
21959
|
dataIndex: 'sysTitle',
|
|
21759
21960
|
title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
|
|
@@ -21798,7 +21999,9 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
21798
21999
|
dataIndex: 'realNum',
|
|
21799
22000
|
title: "\u5B9E\u9645\u8865\u53D1\u6570\u91CF",
|
|
21800
22001
|
width: 100,
|
|
21801
|
-
validator: function validator(_rule, value) {
|
|
22002
|
+
validator: function validator(_rule, value, extraParams) {
|
|
22003
|
+
console.log('实际补发数量-extraParams', extraParams);
|
|
22004
|
+
if (!(extraParams === null || extraParams === void 0 ? void 0 : extraParams.quantityVerify)) return undefined;
|
|
21802
22005
|
var title = '';
|
|
21803
22006
|
if (((value === null || value === void 0 ? void 0 : value.kmReissueGoods) || []).some(function (goods) {
|
|
21804
22007
|
var realNum = toNum$3(goods === null || goods === void 0 ? void 0 : goods.realNum);
|
|
@@ -21826,8 +22029,21 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
21826
22029
|
}
|
|
21827
22030
|
}, {
|
|
21828
22031
|
dataIndex: 'desiredNum',
|
|
21829
|
-
title: "\
|
|
22032
|
+
title: "\u7533\u8BF7\u8865\u53D1\u6570\u91CF",
|
|
21830
22033
|
width: 100,
|
|
22034
|
+
validator: function validator(_rule, value) {
|
|
22035
|
+
var title = '';
|
|
22036
|
+
if (((value === null || value === void 0 ? void 0 : value.kmReissueGoods) || []).some(function (goods) {
|
|
22037
|
+
var desiredNum = toNum$3(goods === null || goods === void 0 ? void 0 : goods.desiredNum);
|
|
22038
|
+
var res = typeof desiredNum === 'number' ? desiredNum < 1 : true;
|
|
22039
|
+
if (res) {
|
|
22040
|
+
title = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
|
|
22041
|
+
}
|
|
22042
|
+
return res;
|
|
22043
|
+
})) {
|
|
22044
|
+
return Promise.reject("".concat(title, "\u7533\u8BF7\u8865\u53D1\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
22045
|
+
}
|
|
22046
|
+
},
|
|
21831
22047
|
render: function render(val, record, index) {
|
|
21832
22048
|
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
21833
22049
|
style: {
|
|
@@ -21896,136 +22112,60 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
21896
22112
|
align: 'center',
|
|
21897
22113
|
ellipsis: true
|
|
21898
22114
|
});
|
|
21899
|
-
})
|
|
21900
|
-
|
|
21901
|
-
|
|
21902
|
-
|
|
21903
|
-
|
|
21904
|
-
if (typeof value === 'number') return true;
|
|
21905
|
-
if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
|
|
21906
|
-
return false;
|
|
21907
|
-
};
|
|
21908
|
-
function toNum$4(value) {
|
|
21909
|
-
if (typeof value === 'string') {
|
|
21910
|
-
return value ? +value : void 0;
|
|
21911
|
-
}
|
|
21912
|
-
if (typeof value === 'number') {
|
|
21913
|
-
return value;
|
|
21914
|
-
}
|
|
21915
|
-
return void 0;
|
|
21916
|
-
}
|
|
21917
|
-
var getColumns$7 = function getColumns(_ref) {
|
|
21918
|
-
var _ref$text = _ref.text,
|
|
21919
|
-
disabled = _ref.disabled,
|
|
21920
|
-
updateHandle = _ref.updateHandle,
|
|
21921
|
-
updateDataHandle = _ref.updateDataHandle;
|
|
21922
|
-
return {
|
|
21923
|
-
//巨益商品信息
|
|
21924
|
-
JY_GOODS: [{
|
|
21925
|
-
dataIndex: 'productName',
|
|
21926
|
-
title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
|
|
21927
|
-
align: 'center',
|
|
21928
|
-
ellipsis: true,
|
|
21929
|
-
width: 150,
|
|
21930
|
-
render: renderTextEllipsis
|
|
21931
|
-
}, {
|
|
21932
|
-
dataIndex: 'productCode',
|
|
21933
|
-
title: "\u7CFB\u7EDF\u5546\u54C1\u7F16\u7801",
|
|
21934
|
-
align: 'center',
|
|
21935
|
-
ellipsis: true,
|
|
21936
|
-
width: 150,
|
|
21937
|
-
render: renderTextEllipsis
|
|
21938
|
-
}, {
|
|
21939
|
-
dataIndex: 'productId',
|
|
21940
|
-
title: "\u7CFB\u7EDF\u5546\u54C1ID",
|
|
21941
|
-
align: 'center',
|
|
21942
|
-
ellipsis: true,
|
|
21943
|
-
width: 150,
|
|
22115
|
+
}),
|
|
22116
|
+
KM_RETURN_GOODS: [{
|
|
22117
|
+
dataIndex: 'skuPropertiesName',
|
|
22118
|
+
title: "\u89C4\u683C\u540D\u79F0",
|
|
22119
|
+
width: 250,
|
|
21944
22120
|
render: renderTextEllipsis
|
|
21945
22121
|
}, {
|
|
21946
|
-
dataIndex: '
|
|
22122
|
+
dataIndex: 'sysSkuPropertiesName',
|
|
21947
22123
|
title: "\u7CFB\u7EDF\u89C4\u683C\u540D\u79F0",
|
|
21948
|
-
align: 'center',
|
|
21949
|
-
ellipsis: true,
|
|
21950
22124
|
width: 150,
|
|
21951
22125
|
render: renderTextEllipsis
|
|
21952
22126
|
}, {
|
|
21953
|
-
dataIndex: '
|
|
21954
|
-
title: "\u7CFB\u7EDF\
|
|
21955
|
-
align: 'center',
|
|
21956
|
-
ellipsis: true,
|
|
22127
|
+
dataIndex: 'sysTitle',
|
|
22128
|
+
title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
|
|
21957
22129
|
width: 150,
|
|
21958
22130
|
render: renderTextEllipsis
|
|
21959
22131
|
}, {
|
|
21960
|
-
dataIndex: '
|
|
21961
|
-
title: "\
|
|
21962
|
-
align: 'center',
|
|
21963
|
-
ellipsis: true,
|
|
22132
|
+
dataIndex: 'shortTitle',
|
|
22133
|
+
title: "\u5546\u54C1\u7B80\u79F0",
|
|
21964
22134
|
width: 150,
|
|
21965
22135
|
render: renderTextEllipsis
|
|
21966
22136
|
}, {
|
|
21967
|
-
dataIndex: '
|
|
21968
|
-
title: "\
|
|
22137
|
+
dataIndex: 'title',
|
|
22138
|
+
title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
|
|
21969
22139
|
width: 150,
|
|
21970
22140
|
render: renderTextEllipsis
|
|
21971
22141
|
}, {
|
|
21972
|
-
dataIndex: '
|
|
21973
|
-
title: "\
|
|
22142
|
+
dataIndex: 'sysOuterId',
|
|
22143
|
+
title: "\u7CFB\u7EDF\u5546\u5BB6\u7F16\u7801",
|
|
21974
22144
|
width: 150,
|
|
21975
22145
|
render: renderTextEllipsis
|
|
21976
|
-
},
|
|
21977
|
-
// {
|
|
21978
|
-
// dataIndex: 'specName',
|
|
21979
|
-
// title: `规格名称`,
|
|
21980
|
-
// align: 'center',
|
|
21981
|
-
// ellipsis: true,
|
|
21982
|
-
// width: 200,
|
|
21983
|
-
// },
|
|
21984
|
-
// {
|
|
21985
|
-
// dataIndex: 'specCode',
|
|
21986
|
-
// title: `规格编号`,
|
|
21987
|
-
// align: 'center',
|
|
21988
|
-
// ellipsis: true,
|
|
21989
|
-
// width: 150,
|
|
21990
|
-
// },
|
|
21991
|
-
{
|
|
21992
|
-
dataIndex: 'mallProductName',
|
|
21993
|
-
title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
|
|
21994
|
-
align: 'center',
|
|
21995
|
-
ellipsis: true,
|
|
21996
|
-
width: 250,
|
|
21997
|
-
render: renderTextEllipsis
|
|
21998
22146
|
}, {
|
|
21999
|
-
dataIndex: '
|
|
22000
|
-
title: "\
|
|
22001
|
-
align: 'center',
|
|
22002
|
-
ellipsis: true,
|
|
22147
|
+
dataIndex: 'itemSysId',
|
|
22148
|
+
title: "\u7CFB\u7EDF\u5546\u54C1ID",
|
|
22003
22149
|
width: 150,
|
|
22004
22150
|
render: renderTextEllipsis
|
|
22005
22151
|
}, {
|
|
22006
|
-
dataIndex: '
|
|
22007
|
-
title: "\
|
|
22008
|
-
|
|
22009
|
-
ellipsis: true,
|
|
22010
|
-
width: 250,
|
|
22152
|
+
dataIndex: 'skuSysId',
|
|
22153
|
+
title: "\u7CFB\u7EDF\u89C4\u683CID",
|
|
22154
|
+
width: 150,
|
|
22011
22155
|
render: renderTextEllipsis
|
|
22012
22156
|
}, {
|
|
22013
|
-
dataIndex: '
|
|
22014
|
-
title: "\u5E73\u53F0\u89C4\
|
|
22015
|
-
|
|
22016
|
-
ellipsis: true,
|
|
22017
|
-
width: 250,
|
|
22157
|
+
dataIndex: 'skuId',
|
|
22158
|
+
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
22159
|
+
width: 170,
|
|
22018
22160
|
render: renderTextEllipsis
|
|
22019
22161
|
}, {
|
|
22020
|
-
dataIndex: '
|
|
22021
|
-
title: "\u5E73\u53F0\u89C4\
|
|
22022
|
-
|
|
22023
|
-
ellipsis: true,
|
|
22024
|
-
width: 250,
|
|
22162
|
+
dataIndex: 'outerSkuId',
|
|
22163
|
+
title: "\u5E73\u53F0\u89C4\u683C\u7F16\u7801",
|
|
22164
|
+
width: 170,
|
|
22025
22165
|
render: renderTextEllipsis
|
|
22026
22166
|
}, {
|
|
22027
|
-
dataIndex: '
|
|
22028
|
-
title: "\u6570\u91CF",
|
|
22167
|
+
dataIndex: 'realNum',
|
|
22168
|
+
title: "\u5B9E\u9645\u9000\u8D27\u6570\u91CF",
|
|
22029
22169
|
width: 100,
|
|
22030
22170
|
render: function render(val, record, index) {
|
|
22031
22171
|
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
@@ -22037,45 +22177,446 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
22037
22177
|
precision: 0,
|
|
22038
22178
|
onChange: function onChange(num) {
|
|
22039
22179
|
updateDataHandle({
|
|
22040
|
-
|
|
22041
|
-
|
|
22180
|
+
realNum: num,
|
|
22181
|
+
refundMoney: num && isNumberOrNumberString$2(record.price) ? num * record.price : null
|
|
22042
22182
|
}, index);
|
|
22043
22183
|
}
|
|
22044
22184
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
22045
22185
|
}
|
|
22046
22186
|
}, {
|
|
22047
|
-
dataIndex: '
|
|
22048
|
-
title: "\
|
|
22049
|
-
width:
|
|
22187
|
+
dataIndex: 'desiredNum',
|
|
22188
|
+
title: "\u7533\u8BF7\u9000\u8D27\u6570\u91CF",
|
|
22189
|
+
width: 100,
|
|
22190
|
+
validator: function validator(_rule, value) {
|
|
22191
|
+
var title = '';
|
|
22192
|
+
if (((value === null || value === void 0 ? void 0 : value.kmReturnGoods) || []).some(function (goods) {
|
|
22193
|
+
var desiredNum = toNum$3(goods === null || goods === void 0 ? void 0 : goods.desiredNum);
|
|
22194
|
+
var res = typeof desiredNum === 'number' ? desiredNum < 1 : true;
|
|
22195
|
+
if (res) {
|
|
22196
|
+
title = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
|
|
22197
|
+
}
|
|
22198
|
+
return res;
|
|
22199
|
+
})) {
|
|
22200
|
+
return Promise.reject("".concat(title, "\u7533\u8BF7\u9000\u8D27\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
22201
|
+
}
|
|
22202
|
+
},
|
|
22050
22203
|
render: function render(val, record, index) {
|
|
22051
22204
|
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
22052
22205
|
style: {
|
|
22053
|
-
width:
|
|
22206
|
+
width: 70
|
|
22054
22207
|
},
|
|
22055
22208
|
value: val,
|
|
22056
|
-
min:
|
|
22057
|
-
precision:
|
|
22209
|
+
min: 1,
|
|
22210
|
+
precision: 0,
|
|
22058
22211
|
onChange: function onChange(num) {
|
|
22059
|
-
|
|
22060
|
-
sellPrice: num,
|
|
22061
|
-
sellTotal: num && isNumberOrNumberString$2(record.sellCount) ? num * record.sellCount : null
|
|
22062
|
-
}, index);
|
|
22212
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'desiredNum');
|
|
22063
22213
|
}
|
|
22064
22214
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
22065
22215
|
}
|
|
22066
22216
|
}, {
|
|
22067
|
-
dataIndex: '
|
|
22068
|
-
title: "\
|
|
22069
|
-
width:
|
|
22070
|
-
|
|
22071
|
-
|
|
22072
|
-
|
|
22073
|
-
|
|
22074
|
-
|
|
22075
|
-
|
|
22076
|
-
|
|
22077
|
-
|
|
22078
|
-
|
|
22217
|
+
dataIndex: 'goodNum',
|
|
22218
|
+
title: "\u826F\u54C1\u6570",
|
|
22219
|
+
width: 100,
|
|
22220
|
+
render: function render(val, record, index) {
|
|
22221
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
22222
|
+
style: {
|
|
22223
|
+
width: 70
|
|
22224
|
+
},
|
|
22225
|
+
value: val,
|
|
22226
|
+
min: 1,
|
|
22227
|
+
precision: 0,
|
|
22228
|
+
onChange: function onChange(num) {
|
|
22229
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'goodNum');
|
|
22230
|
+
}
|
|
22231
|
+
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
22232
|
+
}
|
|
22233
|
+
}, {
|
|
22234
|
+
dataIndex: 'defectiveNum',
|
|
22235
|
+
title: "\u6B21\u54C1\u6570",
|
|
22236
|
+
width: 100,
|
|
22237
|
+
render: function render(val, record, index) {
|
|
22238
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
22239
|
+
style: {
|
|
22240
|
+
width: 70
|
|
22241
|
+
},
|
|
22242
|
+
value: val,
|
|
22243
|
+
min: 1,
|
|
22244
|
+
precision: 0,
|
|
22245
|
+
onChange: function onChange(num) {
|
|
22246
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'defectiveNum');
|
|
22247
|
+
}
|
|
22248
|
+
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
22249
|
+
}
|
|
22250
|
+
}, {
|
|
22251
|
+
dataIndex: 'price',
|
|
22252
|
+
title: "\u5546\u54C1\u9500\u552E\u4EF7",
|
|
22253
|
+
width: 150,
|
|
22254
|
+
render: function render(val) {
|
|
22255
|
+
return val || val === 0 ? Number(val).toFixed(2) : '';
|
|
22256
|
+
}
|
|
22257
|
+
}, {
|
|
22258
|
+
dataIndex: 'refundMoney',
|
|
22259
|
+
title: "\u5B9E\u9000\u91D1\u989D",
|
|
22260
|
+
width: 150,
|
|
22261
|
+
render: function render(val, record, index) {
|
|
22262
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
22263
|
+
style: {
|
|
22264
|
+
width: 130
|
|
22265
|
+
},
|
|
22266
|
+
value: val,
|
|
22267
|
+
min: 0,
|
|
22268
|
+
precision: 2,
|
|
22269
|
+
onChange: function onChange(num) {
|
|
22270
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'refundMoney');
|
|
22271
|
+
}
|
|
22272
|
+
}) : /*#__PURE__*/React.createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
|
|
22273
|
+
}
|
|
22274
|
+
}, {
|
|
22275
|
+
dataIndex: 'type',
|
|
22276
|
+
title: "\u5546\u54C1\u7C7B\u578B",
|
|
22277
|
+
width: 150,
|
|
22278
|
+
render: renderTextEllipsis
|
|
22279
|
+
}, {
|
|
22280
|
+
dataIndex: 'sysPicPath',
|
|
22281
|
+
title: "\u5546\u54C1\u56FE\u7247",
|
|
22282
|
+
width: 100,
|
|
22283
|
+
headerComponentType: 'pic',
|
|
22284
|
+
render: function render(val) {
|
|
22285
|
+
var imgUrl = (val === null || val === void 0 ? void 0 : val.startsWith('http')) ? val : "https://erp.superboss.cc".concat(val);
|
|
22286
|
+
return /*#__PURE__*/React.createElement(Image, {
|
|
22287
|
+
width: 30,
|
|
22288
|
+
src: imgUrl
|
|
22289
|
+
});
|
|
22290
|
+
}
|
|
22291
|
+
}].map(function (item) {
|
|
22292
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
22293
|
+
align: 'center',
|
|
22294
|
+
ellipsis: true
|
|
22295
|
+
});
|
|
22296
|
+
}),
|
|
22297
|
+
KM_EXCHANGE_GOODS: [{
|
|
22298
|
+
dataIndex: 'skuPropertiesName',
|
|
22299
|
+
title: "\u89C4\u683C\u540D\u79F0",
|
|
22300
|
+
width: 250,
|
|
22301
|
+
render: renderTextEllipsis
|
|
22302
|
+
}, {
|
|
22303
|
+
dataIndex: 'sysSkuPropertiesName',
|
|
22304
|
+
title: "\u7CFB\u7EDF\u89C4\u683C\u540D\u79F0",
|
|
22305
|
+
width: 150,
|
|
22306
|
+
render: renderTextEllipsis
|
|
22307
|
+
}, {
|
|
22308
|
+
dataIndex: 'sysTitle',
|
|
22309
|
+
title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
|
|
22310
|
+
width: 150,
|
|
22311
|
+
render: renderTextEllipsis
|
|
22312
|
+
}, {
|
|
22313
|
+
dataIndex: 'shortTitle',
|
|
22314
|
+
title: "\u5546\u54C1\u7B80\u79F0",
|
|
22315
|
+
width: 150,
|
|
22316
|
+
render: renderTextEllipsis
|
|
22317
|
+
}, {
|
|
22318
|
+
dataIndex: 'title',
|
|
22319
|
+
title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
|
|
22320
|
+
width: 150,
|
|
22321
|
+
render: renderTextEllipsis
|
|
22322
|
+
}, {
|
|
22323
|
+
dataIndex: 'sysOuterId',
|
|
22324
|
+
title: "\u7CFB\u7EDF\u5546\u5BB6\u7F16\u7801",
|
|
22325
|
+
width: 150,
|
|
22326
|
+
render: renderTextEllipsis
|
|
22327
|
+
}, {
|
|
22328
|
+
dataIndex: 'itemSysId',
|
|
22329
|
+
title: "\u7CFB\u7EDF\u5546\u54C1ID",
|
|
22330
|
+
width: 150,
|
|
22331
|
+
render: renderTextEllipsis
|
|
22332
|
+
}, {
|
|
22333
|
+
dataIndex: 'skuSysId',
|
|
22334
|
+
title: "\u7CFB\u7EDF\u89C4\u683CID",
|
|
22335
|
+
width: 150,
|
|
22336
|
+
render: renderTextEllipsis
|
|
22337
|
+
}, {
|
|
22338
|
+
dataIndex: 'skuId',
|
|
22339
|
+
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
22340
|
+
width: 170,
|
|
22341
|
+
render: renderTextEllipsis
|
|
22342
|
+
}, {
|
|
22343
|
+
dataIndex: 'outerSkuId',
|
|
22344
|
+
title: "\u5E73\u53F0\u89C4\u683C\u7F16\u7801",
|
|
22345
|
+
width: 170,
|
|
22346
|
+
render: renderTextEllipsis
|
|
22347
|
+
}, {
|
|
22348
|
+
dataIndex: 'realNum',
|
|
22349
|
+
title: "\u5B9E\u9645\u6362\u51FA\u6570\u91CF",
|
|
22350
|
+
width: 100,
|
|
22351
|
+
validator: function validator(_rule, value, extraParams) {
|
|
22352
|
+
if (!(extraParams === null || extraParams === void 0 ? void 0 : extraParams.quantityVerify)) return undefined;
|
|
22353
|
+
var title = '';
|
|
22354
|
+
if (((value === null || value === void 0 ? void 0 : value.kmExchangeGoods) || []).some(function (goods) {
|
|
22355
|
+
var realNum = toNum$3(goods === null || goods === void 0 ? void 0 : goods.realNum);
|
|
22356
|
+
var res = typeof realNum === 'number' ? realNum < 1 : true;
|
|
22357
|
+
if (res) {
|
|
22358
|
+
title = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
|
|
22359
|
+
}
|
|
22360
|
+
return res;
|
|
22361
|
+
})) {
|
|
22362
|
+
return Promise.reject("".concat(title, "\u5B9E\u9645\u6362\u51FA\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
22363
|
+
}
|
|
22364
|
+
},
|
|
22365
|
+
render: function render(val, record, index) {
|
|
22366
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
22367
|
+
style: {
|
|
22368
|
+
width: 70
|
|
22369
|
+
},
|
|
22370
|
+
value: val,
|
|
22371
|
+
min: 1,
|
|
22372
|
+
precision: 0,
|
|
22373
|
+
onChange: function onChange(num) {
|
|
22374
|
+
updateDataHandle({
|
|
22375
|
+
realNum: num,
|
|
22376
|
+
refundMoney: num && isNumberOrNumberString$2(record.price) ? num * record.price : null
|
|
22377
|
+
}, index);
|
|
22378
|
+
}
|
|
22379
|
+
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
22380
|
+
}
|
|
22381
|
+
}, {
|
|
22382
|
+
dataIndex: 'desiredNum',
|
|
22383
|
+
title: "\u5E94\u6362\u51FA\u6570\u91CF",
|
|
22384
|
+
width: 100,
|
|
22385
|
+
validator: function validator(_rule, value) {
|
|
22386
|
+
var title = '';
|
|
22387
|
+
if (((value === null || value === void 0 ? void 0 : value.kmExchangeGoods) || []).some(function (goods) {
|
|
22388
|
+
var desiredNum = toNum$3(goods === null || goods === void 0 ? void 0 : goods.desiredNum);
|
|
22389
|
+
var res = typeof desiredNum === 'number' ? desiredNum < 1 : true;
|
|
22390
|
+
if (res) {
|
|
22391
|
+
title = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
|
|
22392
|
+
}
|
|
22393
|
+
return res;
|
|
22394
|
+
})) {
|
|
22395
|
+
return Promise.reject("".concat(title, "\u5E94\u6362\u51FA\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
22396
|
+
}
|
|
22397
|
+
},
|
|
22398
|
+
render: function render(val, record, index) {
|
|
22399
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
22400
|
+
style: {
|
|
22401
|
+
width: 70
|
|
22402
|
+
},
|
|
22403
|
+
value: val,
|
|
22404
|
+
min: 1,
|
|
22405
|
+
precision: 0,
|
|
22406
|
+
onChange: function onChange(num) {
|
|
22407
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'desiredNum');
|
|
22408
|
+
}
|
|
22409
|
+
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
22410
|
+
}
|
|
22411
|
+
}, {
|
|
22412
|
+
dataIndex: 'price',
|
|
22413
|
+
title: "\u5546\u54C1\u9500\u552E\u4EF7",
|
|
22414
|
+
width: 150,
|
|
22415
|
+
render: function render(val) {
|
|
22416
|
+
return val || val === 0 ? Number(val).toFixed(2) : '';
|
|
22417
|
+
}
|
|
22418
|
+
}, {
|
|
22419
|
+
dataIndex: 'type',
|
|
22420
|
+
title: "\u5546\u54C1\u7C7B\u578B",
|
|
22421
|
+
width: 150,
|
|
22422
|
+
render: renderTextEllipsis
|
|
22423
|
+
}, {
|
|
22424
|
+
dataIndex: 'sysPicPath',
|
|
22425
|
+
title: "\u5546\u54C1\u56FE\u7247",
|
|
22426
|
+
width: 100,
|
|
22427
|
+
headerComponentType: 'pic',
|
|
22428
|
+
render: function render(val) {
|
|
22429
|
+
var imgUrl = (val === null || val === void 0 ? void 0 : val.startsWith('http')) ? val : "https://erp.superboss.cc".concat(val);
|
|
22430
|
+
return /*#__PURE__*/React.createElement(Image, {
|
|
22431
|
+
width: 30,
|
|
22432
|
+
src: imgUrl
|
|
22433
|
+
});
|
|
22434
|
+
}
|
|
22435
|
+
}].map(function (item) {
|
|
22436
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
22437
|
+
align: 'center',
|
|
22438
|
+
ellipsis: true
|
|
22439
|
+
});
|
|
22440
|
+
})
|
|
22441
|
+
};
|
|
22442
|
+
};
|
|
22443
|
+
|
|
22444
|
+
var isNumberOrNumberString$3 = function isNumberOrNumberString(value) {
|
|
22445
|
+
if (typeof value === 'number') return true;
|
|
22446
|
+
if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
|
|
22447
|
+
return false;
|
|
22448
|
+
};
|
|
22449
|
+
function toNum$4(value) {
|
|
22450
|
+
if (typeof value === 'string') {
|
|
22451
|
+
return value ? +value : void 0;
|
|
22452
|
+
}
|
|
22453
|
+
if (typeof value === 'number') {
|
|
22454
|
+
return value;
|
|
22455
|
+
}
|
|
22456
|
+
return void 0;
|
|
22457
|
+
}
|
|
22458
|
+
var getColumns$7 = function getColumns(_ref) {
|
|
22459
|
+
var _ref$text = _ref.text,
|
|
22460
|
+
disabled = _ref.disabled,
|
|
22461
|
+
updateHandle = _ref.updateHandle,
|
|
22462
|
+
updateDataHandle = _ref.updateDataHandle;
|
|
22463
|
+
return {
|
|
22464
|
+
//巨益商品信息
|
|
22465
|
+
JY_GOODS: [{
|
|
22466
|
+
dataIndex: 'productName',
|
|
22467
|
+
title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
|
|
22468
|
+
align: 'center',
|
|
22469
|
+
ellipsis: true,
|
|
22470
|
+
width: 150,
|
|
22471
|
+
render: renderTextEllipsis
|
|
22472
|
+
}, {
|
|
22473
|
+
dataIndex: 'productCode',
|
|
22474
|
+
title: "\u7CFB\u7EDF\u5546\u54C1\u7F16\u7801",
|
|
22475
|
+
align: 'center',
|
|
22476
|
+
ellipsis: true,
|
|
22477
|
+
width: 150,
|
|
22478
|
+
render: renderTextEllipsis
|
|
22479
|
+
}, {
|
|
22480
|
+
dataIndex: 'productId',
|
|
22481
|
+
title: "\u7CFB\u7EDF\u5546\u54C1ID",
|
|
22482
|
+
align: 'center',
|
|
22483
|
+
ellipsis: true,
|
|
22484
|
+
width: 150,
|
|
22485
|
+
render: renderTextEllipsis
|
|
22486
|
+
}, {
|
|
22487
|
+
dataIndex: 'skuName',
|
|
22488
|
+
title: "\u7CFB\u7EDF\u89C4\u683C\u540D\u79F0",
|
|
22489
|
+
align: 'center',
|
|
22490
|
+
ellipsis: true,
|
|
22491
|
+
width: 150,
|
|
22492
|
+
render: renderTextEllipsis
|
|
22493
|
+
}, {
|
|
22494
|
+
dataIndex: 'skuCode',
|
|
22495
|
+
title: "\u7CFB\u7EDF\u89C4\u683C\u7F16\u7801",
|
|
22496
|
+
align: 'center',
|
|
22497
|
+
ellipsis: true,
|
|
22498
|
+
width: 150,
|
|
22499
|
+
render: renderTextEllipsis
|
|
22500
|
+
}, {
|
|
22501
|
+
dataIndex: 'specId',
|
|
22502
|
+
title: "\u89C4\u683CID",
|
|
22503
|
+
align: 'center',
|
|
22504
|
+
ellipsis: true,
|
|
22505
|
+
width: 150,
|
|
22506
|
+
render: renderTextEllipsis
|
|
22507
|
+
}, {
|
|
22508
|
+
dataIndex: 'goodsClass',
|
|
22509
|
+
title: "\u8D27\u54C1\u7C7B\u522B",
|
|
22510
|
+
width: 150,
|
|
22511
|
+
render: renderTextEllipsis
|
|
22512
|
+
}, {
|
|
22513
|
+
dataIndex: 'code',
|
|
22514
|
+
title: "\u6761\u7801",
|
|
22515
|
+
width: 150,
|
|
22516
|
+
render: renderTextEllipsis
|
|
22517
|
+
},
|
|
22518
|
+
// {
|
|
22519
|
+
// dataIndex: 'specName',
|
|
22520
|
+
// title: `规格名称`,
|
|
22521
|
+
// align: 'center',
|
|
22522
|
+
// ellipsis: true,
|
|
22523
|
+
// width: 200,
|
|
22524
|
+
// },
|
|
22525
|
+
// {
|
|
22526
|
+
// dataIndex: 'specCode',
|
|
22527
|
+
// title: `规格编号`,
|
|
22528
|
+
// align: 'center',
|
|
22529
|
+
// ellipsis: true,
|
|
22530
|
+
// width: 150,
|
|
22531
|
+
// },
|
|
22532
|
+
{
|
|
22533
|
+
dataIndex: 'mallProductName',
|
|
22534
|
+
title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
|
|
22535
|
+
align: 'center',
|
|
22536
|
+
ellipsis: true,
|
|
22537
|
+
width: 250,
|
|
22538
|
+
render: renderTextEllipsis
|
|
22539
|
+
}, {
|
|
22540
|
+
dataIndex: 'mallProductOutCode',
|
|
22541
|
+
title: "\u5E73\u53F0\u5546\u54C1\u7F16\u7801",
|
|
22542
|
+
align: 'center',
|
|
22543
|
+
ellipsis: true,
|
|
22544
|
+
width: 150,
|
|
22545
|
+
render: renderTextEllipsis
|
|
22546
|
+
}, {
|
|
22547
|
+
dataIndex: 'mallProductId',
|
|
22548
|
+
title: "\u5E73\u53F0\u5546\u54C1ID",
|
|
22549
|
+
align: 'center',
|
|
22550
|
+
ellipsis: true,
|
|
22551
|
+
width: 250,
|
|
22552
|
+
render: renderTextEllipsis
|
|
22553
|
+
}, {
|
|
22554
|
+
dataIndex: 'mallSkuName',
|
|
22555
|
+
title: "\u5E73\u53F0\u89C4\u683C\u540D\u79F0",
|
|
22556
|
+
align: 'center',
|
|
22557
|
+
ellipsis: true,
|
|
22558
|
+
width: 250,
|
|
22559
|
+
render: renderTextEllipsis
|
|
22560
|
+
}, {
|
|
22561
|
+
dataIndex: 'mallSkuId',
|
|
22562
|
+
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
22563
|
+
align: 'center',
|
|
22564
|
+
ellipsis: true,
|
|
22565
|
+
width: 250,
|
|
22566
|
+
render: renderTextEllipsis
|
|
22567
|
+
}, {
|
|
22568
|
+
dataIndex: 'sellCount',
|
|
22569
|
+
title: "\u6570\u91CF",
|
|
22570
|
+
width: 100,
|
|
22571
|
+
render: function render(val, record, index) {
|
|
22572
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
22573
|
+
style: {
|
|
22574
|
+
width: 70
|
|
22575
|
+
},
|
|
22576
|
+
value: val,
|
|
22577
|
+
min: 1,
|
|
22578
|
+
precision: 0,
|
|
22579
|
+
onChange: function onChange(num) {
|
|
22580
|
+
updateDataHandle({
|
|
22581
|
+
sellCount: num,
|
|
22582
|
+
sellTotal: num && isNumberOrNumberString$3(record.sellPrice) ? num * record.sellPrice : null
|
|
22583
|
+
}, index);
|
|
22584
|
+
}
|
|
22585
|
+
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
22586
|
+
}
|
|
22587
|
+
}, {
|
|
22588
|
+
dataIndex: 'sellPrice',
|
|
22589
|
+
title: "\u5355\u4EF7",
|
|
22590
|
+
width: 150,
|
|
22591
|
+
render: function render(val, record, index) {
|
|
22592
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
22593
|
+
style: {
|
|
22594
|
+
width: 130
|
|
22595
|
+
},
|
|
22596
|
+
value: val,
|
|
22597
|
+
min: 0,
|
|
22598
|
+
precision: 2,
|
|
22599
|
+
onChange: function onChange(num) {
|
|
22600
|
+
updateDataHandle({
|
|
22601
|
+
sellPrice: num,
|
|
22602
|
+
sellTotal: num && isNumberOrNumberString$3(record.sellCount) ? num * record.sellCount : null
|
|
22603
|
+
}, index);
|
|
22604
|
+
}
|
|
22605
|
+
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
22606
|
+
}
|
|
22607
|
+
}, {
|
|
22608
|
+
dataIndex: 'mallSellingPrice',
|
|
22609
|
+
title: "\u5E73\u53F0\u5546\u54C1\u4EF7\u683C",
|
|
22610
|
+
width: 150
|
|
22611
|
+
}, {
|
|
22612
|
+
dataIndex: 'sellTotal',
|
|
22613
|
+
title: "\u91D1\u989D",
|
|
22614
|
+
width: 150
|
|
22615
|
+
}, {
|
|
22616
|
+
dataIndex: 'settlementPrice',
|
|
22617
|
+
title: "\u7ED3\u7B97\u4EF7",
|
|
22618
|
+
width: 150
|
|
22619
|
+
}, {
|
|
22079
22620
|
dataIndex: 'divideOrderFee',
|
|
22080
22621
|
title: "\u5206\u644A\u5B9E\u4ED8\u91D1\u989D",
|
|
22081
22622
|
width: 150
|
|
@@ -22261,7 +22802,7 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
22261
22802
|
onChange: function onChange(num) {
|
|
22262
22803
|
updateDataHandle({
|
|
22263
22804
|
sellCount: num,
|
|
22264
|
-
sellTotal: num && isNumberOrNumberString$
|
|
22805
|
+
sellTotal: num && isNumberOrNumberString$3(record.sellPrice) ? num * record.sellPrice : null
|
|
22265
22806
|
}, index);
|
|
22266
22807
|
}
|
|
22267
22808
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
@@ -22281,7 +22822,7 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
22281
22822
|
onChange: function onChange(num) {
|
|
22282
22823
|
updateDataHandle({
|
|
22283
22824
|
sellPrice: num,
|
|
22284
|
-
sellTotal: num && isNumberOrNumberString$
|
|
22825
|
+
sellTotal: num && isNumberOrNumberString$3(record.sellCount) ? num * record.sellCount : null
|
|
22285
22826
|
}, index);
|
|
22286
22827
|
}
|
|
22287
22828
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
@@ -22405,7 +22946,7 @@ var getColumns$8 = function getColumns(_ref) {
|
|
|
22405
22946
|
};
|
|
22406
22947
|
};
|
|
22407
22948
|
|
|
22408
|
-
var isNumberOrNumberString$
|
|
22949
|
+
var isNumberOrNumberString$4 = function isNumberOrNumberString(value) {
|
|
22409
22950
|
if (typeof value === 'number') return true;
|
|
22410
22951
|
if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
|
|
22411
22952
|
return false;
|
|
@@ -22425,7 +22966,7 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22425
22966
|
updateHandle = _ref.updateHandle,
|
|
22426
22967
|
updateDataHandle = _ref.updateDataHandle;
|
|
22427
22968
|
return {
|
|
22428
|
-
|
|
22969
|
+
//吉客云商品信息
|
|
22429
22970
|
JKY_GOODS: [{
|
|
22430
22971
|
dataIndex: 'goodsNo',
|
|
22431
22972
|
title: "\u8D27\u54C1\u7F16\u53F7",
|
|
@@ -22495,7 +23036,7 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22495
23036
|
onChange: function onChange(num) {
|
|
22496
23037
|
updateDataHandle({
|
|
22497
23038
|
sellCount: num,
|
|
22498
|
-
sellTotal: num && isNumberOrNumberString$
|
|
23039
|
+
sellTotal: num && isNumberOrNumberString$4(record.sellPrice) ? num * record.sellPrice : null
|
|
22499
23040
|
}, index);
|
|
22500
23041
|
}
|
|
22501
23042
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
@@ -22520,14 +23061,14 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22520
23061
|
onChange: function onChange(num) {
|
|
22521
23062
|
updateDataHandle({
|
|
22522
23063
|
sellPrice: num,
|
|
22523
|
-
sellTotal: num && isNumberOrNumberString$
|
|
23064
|
+
sellTotal: num && isNumberOrNumberString$4(record.sellCount) ? num * record.sellCount : null
|
|
22524
23065
|
}, index);
|
|
22525
23066
|
}
|
|
22526
23067
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
22527
23068
|
}
|
|
22528
23069
|
}, {
|
|
22529
23070
|
dataIndex: 'sellTotal',
|
|
22530
|
-
title: "\u91D1\u989D",
|
|
23071
|
+
title: "\u603B\u91D1\u989D",
|
|
22531
23072
|
width: 150
|
|
22532
23073
|
}, {
|
|
22533
23074
|
dataIndex: 'discountTotal',
|
|
@@ -22552,7 +23093,22 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22552
23093
|
}, {
|
|
22553
23094
|
dataIndex: 'divideSellTotal',
|
|
22554
23095
|
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
22555
|
-
width: 150
|
|
23096
|
+
width: 150,
|
|
23097
|
+
render: function render(val, record, index) {
|
|
23098
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
23099
|
+
style: {
|
|
23100
|
+
width: 130
|
|
23101
|
+
},
|
|
23102
|
+
value: val,
|
|
23103
|
+
min: 0,
|
|
23104
|
+
precision: 2,
|
|
23105
|
+
onChange: function onChange(num) {
|
|
23106
|
+
updateDataHandle({
|
|
23107
|
+
divideSellTotal: num
|
|
23108
|
+
}, index);
|
|
23109
|
+
}
|
|
23110
|
+
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
23111
|
+
}
|
|
22556
23112
|
}, {
|
|
22557
23113
|
dataIndex: 'isGift',
|
|
22558
23114
|
title: "\u662F\u5426\u8D60\u54C1",
|
|
@@ -22571,12 +23127,12 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22571
23127
|
},
|
|
22572
23128
|
options: [{
|
|
22573
23129
|
label: '是',
|
|
22574
|
-
value:
|
|
23130
|
+
value: 1
|
|
22575
23131
|
}, {
|
|
22576
23132
|
label: '否',
|
|
22577
|
-
value:
|
|
23133
|
+
value: 0
|
|
22578
23134
|
}]
|
|
22579
|
-
}) : /*#__PURE__*/React.createElement("span", null, val
|
|
23135
|
+
}) : /*#__PURE__*/React.createElement("span", null, val == 1 ? '是' : '否');
|
|
22580
23136
|
}
|
|
22581
23137
|
}, {
|
|
22582
23138
|
dataIndex: 'isFit',
|
|
@@ -22596,12 +23152,12 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22596
23152
|
},
|
|
22597
23153
|
options: [{
|
|
22598
23154
|
label: '是',
|
|
22599
|
-
value:
|
|
23155
|
+
value: 1
|
|
22600
23156
|
}, {
|
|
22601
23157
|
label: '否',
|
|
22602
|
-
value:
|
|
23158
|
+
value: 0
|
|
22603
23159
|
}]
|
|
22604
|
-
}) : /*#__PURE__*/React.createElement("span", null, val
|
|
23160
|
+
}) : /*#__PURE__*/React.createElement("span", null, val == 1 ? '是' : '否');
|
|
22605
23161
|
}
|
|
22606
23162
|
}, {
|
|
22607
23163
|
dataIndex: 'isPresell',
|
|
@@ -22626,7 +23182,7 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22626
23182
|
label: '否',
|
|
22627
23183
|
value: '0'
|
|
22628
23184
|
}]
|
|
22629
|
-
}) : /*#__PURE__*/React.createElement("span", null, val
|
|
23185
|
+
}) : /*#__PURE__*/React.createElement("span", null, val == '1' ? '是' : '否');
|
|
22630
23186
|
}
|
|
22631
23187
|
}, {
|
|
22632
23188
|
dataIndex: 'brandName',
|
|
@@ -22723,7 +23279,7 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22723
23279
|
ellipsis: true
|
|
22724
23280
|
});
|
|
22725
23281
|
}),
|
|
22726
|
-
//
|
|
23282
|
+
// 吉客云补发商品信息
|
|
22727
23283
|
JKY_REISSUE_GOODS: [{
|
|
22728
23284
|
dataIndex: 'goodsNo',
|
|
22729
23285
|
title: "\u8D27\u54C1\u7F16\u53F7",
|
|
@@ -22794,7 +23350,7 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22794
23350
|
}
|
|
22795
23351
|
},
|
|
22796
23352
|
render: function render(val, record, index) {
|
|
22797
|
-
return
|
|
23353
|
+
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
22798
23354
|
style: {
|
|
22799
23355
|
width: 70
|
|
22800
23356
|
},
|
|
@@ -22804,7 +23360,7 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22804
23360
|
onChange: function onChange(num) {
|
|
22805
23361
|
updateDataHandle({
|
|
22806
23362
|
sellCount: num,
|
|
22807
|
-
sellTotal: num && isNumberOrNumberString$
|
|
23363
|
+
sellTotal: num && isNumberOrNumberString$4(record.sellPrice) ? num * record.sellPrice : null
|
|
22808
23364
|
}, index);
|
|
22809
23365
|
}
|
|
22810
23366
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
@@ -22814,7 +23370,7 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22814
23370
|
title: "\u5355\u4EF7",
|
|
22815
23371
|
width: 150,
|
|
22816
23372
|
render: function render(val, record, index) {
|
|
22817
|
-
return
|
|
23373
|
+
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
22818
23374
|
style: {
|
|
22819
23375
|
width: 130
|
|
22820
23376
|
},
|
|
@@ -22824,7 +23380,7 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22824
23380
|
onChange: function onChange(num) {
|
|
22825
23381
|
updateDataHandle({
|
|
22826
23382
|
sellPrice: num,
|
|
22827
|
-
sellTotal: num && isNumberOrNumberString$
|
|
23383
|
+
sellTotal: num && isNumberOrNumberString$4(record.sellCount) ? num * record.sellCount : null
|
|
22828
23384
|
}, index);
|
|
22829
23385
|
}
|
|
22830
23386
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
@@ -22834,56 +23390,59 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22834
23390
|
title: "\u603B\u91D1\u989D",
|
|
22835
23391
|
width: 150,
|
|
22836
23392
|
render: function render(val, record, index) {
|
|
22837
|
-
|
|
23393
|
+
if ((typeof record.sellCount === 'number' || record.sellCount) && (typeof record.sellPrice === 'number' || record.sellPrice)) {
|
|
23394
|
+
return record.sellCount * record.sellPrice;
|
|
23395
|
+
}
|
|
23396
|
+
return '';
|
|
22838
23397
|
}
|
|
22839
23398
|
}, {
|
|
22840
23399
|
dataIndex: 'reason',
|
|
22841
23400
|
title: "\u9000\u6362\u539F\u56E0",
|
|
22842
23401
|
width: 250,
|
|
22843
23402
|
render: function render(val, record, index) {
|
|
22844
|
-
return /*#__PURE__*/React.createElement(ApaasInput, {
|
|
22845
|
-
onChange: function onChange(
|
|
22846
|
-
updateHandle(value, index, 'reason');
|
|
23403
|
+
return !disabled ? /*#__PURE__*/React.createElement(ApaasInput, {
|
|
23404
|
+
onChange: function onChange(e) {
|
|
23405
|
+
updateHandle(e.target.value, index, 'reason');
|
|
22847
23406
|
}
|
|
22848
|
-
});
|
|
23407
|
+
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
22849
23408
|
}
|
|
22850
23409
|
}, {
|
|
22851
23410
|
dataIndex: 'isGift',
|
|
22852
23411
|
title: "\u662F\u5426\u8D60\u54C1",
|
|
22853
23412
|
width: 150,
|
|
22854
23413
|
render: function render(val, record, index) {
|
|
22855
|
-
return
|
|
23414
|
+
return !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
22856
23415
|
value: val,
|
|
22857
23416
|
onChange: function onChange(value) {
|
|
22858
23417
|
updateHandle(value, index, 'isGift');
|
|
22859
23418
|
},
|
|
22860
23419
|
options: [{
|
|
22861
23420
|
label: '是',
|
|
22862
|
-
value:
|
|
23421
|
+
value: 1
|
|
22863
23422
|
}, {
|
|
22864
23423
|
label: '否',
|
|
22865
|
-
value:
|
|
23424
|
+
value: 0
|
|
22866
23425
|
}]
|
|
22867
|
-
}) : /*#__PURE__*/React.createElement("span", null, val ===
|
|
23426
|
+
}) : /*#__PURE__*/React.createElement("span", null, val === 1 ? '是' : '否');
|
|
22868
23427
|
}
|
|
22869
23428
|
}, {
|
|
22870
23429
|
dataIndex: 'isFit',
|
|
22871
23430
|
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
22872
23431
|
width: 150,
|
|
22873
23432
|
render: function render(val, record, index) {
|
|
22874
|
-
return
|
|
23433
|
+
return !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
22875
23434
|
value: val,
|
|
22876
23435
|
onChange: function onChange(value) {
|
|
22877
23436
|
updateHandle(value, index, 'isFit');
|
|
22878
23437
|
},
|
|
22879
23438
|
options: [{
|
|
22880
23439
|
label: '是',
|
|
22881
|
-
value:
|
|
23440
|
+
value: 1
|
|
22882
23441
|
}, {
|
|
22883
23442
|
label: '否',
|
|
22884
|
-
value:
|
|
23443
|
+
value: 0
|
|
22885
23444
|
}]
|
|
22886
|
-
}) : /*#__PURE__*/React.createElement("span", null, val ===
|
|
23445
|
+
}) : /*#__PURE__*/React.createElement("span", null, val === 1 ? '是' : '否');
|
|
22887
23446
|
}
|
|
22888
23447
|
}, {
|
|
22889
23448
|
dataIndex: 'brandName',
|
|
@@ -23049,7 +23608,8 @@ var getColumnsMap$1 = function getColumnsMap(args) {
|
|
|
23049
23608
|
})), getColumns$6({
|
|
23050
23609
|
text: text,
|
|
23051
23610
|
disabled: disabled,
|
|
23052
|
-
updateHandle: updateHandle
|
|
23611
|
+
updateHandle: updateHandle,
|
|
23612
|
+
updateDataHandle: updateDataHandle
|
|
23053
23613
|
})), getColumns$7({
|
|
23054
23614
|
text: text,
|
|
23055
23615
|
disabled: disabled,
|
|
@@ -23073,7 +23633,7 @@ var getColumnsMap$1 = function getColumnsMap(args) {
|
|
|
23073
23633
|
});
|
|
23074
23634
|
};
|
|
23075
23635
|
var erpColumnsMap = getColumnsMap$1();
|
|
23076
|
-
var erpFormValidator = function erpFormValidator(_rule, value, type) {
|
|
23636
|
+
var erpFormValidator = function erpFormValidator(_rule, value, type, extraParams) {
|
|
23077
23637
|
var validatorFnList = (erpColumnsMap[type] || erpColumnsMap['default']).map(function (column) {
|
|
23078
23638
|
return column.validator;
|
|
23079
23639
|
}).filter(Boolean);
|
|
@@ -23083,7 +23643,7 @@ var erpFormValidator = function erpFormValidator(_rule, value, type) {
|
|
|
23083
23643
|
try {
|
|
23084
23644
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
23085
23645
|
var validatorFn = _step.value;
|
|
23086
|
-
var validatorResult = validatorFn(_rule, value,
|
|
23646
|
+
var validatorResult = validatorFn(_rule, value, extraParams);
|
|
23087
23647
|
if (validatorResult) {
|
|
23088
23648
|
res = validatorResult;
|
|
23089
23649
|
break;
|
|
@@ -23208,7 +23768,7 @@ var isErpType = {
|
|
|
23208
23768
|
return ['JST_GOODS', 'JST_REISSUE_GOODS', 'JST_RETURN_GOODS', 'JST_EXCHANGE_GOODS'].includes(type);
|
|
23209
23769
|
},
|
|
23210
23770
|
isKm: function isKm(type) {
|
|
23211
|
-
return ['KM_GOODS', 'KM_REISSUE_GOODS'].includes(type);
|
|
23771
|
+
return ['KM_GOODS', 'KM_REISSUE_GOODS', 'KM_RETURN_GOODS', 'KM_EXCHANGE_GOODS'].includes(type);
|
|
23212
23772
|
},
|
|
23213
23773
|
isJy: function isJy(type) {
|
|
23214
23774
|
return ['JY_GOODS', 'JY_REISSUE_GOODS'].includes(type);
|
|
@@ -23267,6 +23827,13 @@ var processGoods$1 = function processGoods(_ref) {
|
|
|
23267
23827
|
canUpdateNumber: canUpdateNumber,
|
|
23268
23828
|
source: source
|
|
23269
23829
|
});
|
|
23830
|
+
} else if (isErpType.isJky(type)) {
|
|
23831
|
+
newList = processJkyGoods$1({
|
|
23832
|
+
list: list,
|
|
23833
|
+
type: type,
|
|
23834
|
+
canUpdateNumber: canUpdateNumber,
|
|
23835
|
+
source: source
|
|
23836
|
+
});
|
|
23270
23837
|
} else {
|
|
23271
23838
|
newList = processDefaultGoods({
|
|
23272
23839
|
list: list,
|
|
@@ -23315,11 +23882,45 @@ var processJyGoods = function processJyGoods(_ref2) {
|
|
|
23315
23882
|
});
|
|
23316
23883
|
});
|
|
23317
23884
|
};
|
|
23318
|
-
|
|
23319
|
-
var processWdtGoods$1 = function processWdtGoods(_ref3) {
|
|
23885
|
+
var processJkyGoods$1 = function processJkyGoods(_ref3) {
|
|
23320
23886
|
var list = _ref3.list,
|
|
23321
|
-
type = _ref3.type,
|
|
23322
23887
|
canUpdateNumber = _ref3.canUpdateNumber;
|
|
23888
|
+
return list.map(function (item) {
|
|
23889
|
+
var goodName = item.goodName,
|
|
23890
|
+
goodNo = item.goodNo,
|
|
23891
|
+
goodId = item.goodId,
|
|
23892
|
+
specBarcode = item.specBarcode,
|
|
23893
|
+
retailPrice = item.retailPrice,
|
|
23894
|
+
isGift = item.isGift,
|
|
23895
|
+
skuType = item.skuType,
|
|
23896
|
+
specImgUrl = item.specImgUrl,
|
|
23897
|
+
categoryName = item.categoryName;
|
|
23898
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
23899
|
+
cateName: categoryName,
|
|
23900
|
+
goodsName: goodName,
|
|
23901
|
+
goodsNo: goodNo,
|
|
23902
|
+
goodsId: goodId,
|
|
23903
|
+
barcode: specBarcode,
|
|
23904
|
+
skuImgUrl: specImgUrl,
|
|
23905
|
+
combinationName: goodName,
|
|
23906
|
+
combinationCode: goodNo,
|
|
23907
|
+
isGift: isGift ? 1 : 0,
|
|
23908
|
+
isFit: skuType === 'combine' ? 1 : 0,
|
|
23909
|
+
uuid: uuid(),
|
|
23910
|
+
canDelete: true,
|
|
23911
|
+
sellCount: 1,
|
|
23912
|
+
sellPrice: retailPrice,
|
|
23913
|
+
sellTotal: retailPrice ? (retailPrice * 1).toFixed(2) : '',
|
|
23914
|
+
canEdit: true,
|
|
23915
|
+
canUpdateNumber: canUpdateNumber
|
|
23916
|
+
});
|
|
23917
|
+
});
|
|
23918
|
+
};
|
|
23919
|
+
// 处理不同类型的商品数据
|
|
23920
|
+
var processWdtGoods$1 = function processWdtGoods(_ref4) {
|
|
23921
|
+
var list = _ref4.list,
|
|
23922
|
+
type = _ref4.type,
|
|
23923
|
+
canUpdateNumber = _ref4.canUpdateNumber;
|
|
23323
23924
|
return list.map(function (item) {
|
|
23324
23925
|
var processedItem = _objectSpread2(_objectSpread2({}, item), {}, {
|
|
23325
23926
|
uuid: uuid(),
|
|
@@ -23337,9 +23938,9 @@ var processWdtGoods$1 = function processWdtGoods(_ref3) {
|
|
|
23337
23938
|
return processedItem;
|
|
23338
23939
|
});
|
|
23339
23940
|
};
|
|
23340
|
-
var processBsE3Goods$1 = function processBsE3Goods(
|
|
23341
|
-
var list =
|
|
23342
|
-
canUpdateNumber =
|
|
23941
|
+
var processBsE3Goods$1 = function processBsE3Goods(_ref5) {
|
|
23942
|
+
var list = _ref5.list,
|
|
23943
|
+
canUpdateNumber = _ref5.canUpdateNumber;
|
|
23343
23944
|
return list.map(function (item) {
|
|
23344
23945
|
var specNo = item.specNo,
|
|
23345
23946
|
specId = item.specId,
|
|
@@ -23374,9 +23975,9 @@ var processBsE3Goods$1 = function processBsE3Goods(_ref4) {
|
|
|
23374
23975
|
});
|
|
23375
23976
|
});
|
|
23376
23977
|
};
|
|
23377
|
-
var processGyGoods$1 = function processGyGoods(
|
|
23378
|
-
var list =
|
|
23379
|
-
source =
|
|
23978
|
+
var processGyGoods$1 = function processGyGoods(_ref6) {
|
|
23979
|
+
var list = _ref6.list,
|
|
23980
|
+
source = _ref6.source;
|
|
23380
23981
|
var isFormWorkOrder = source === 'workOrder';
|
|
23381
23982
|
return list.map(function (item) {
|
|
23382
23983
|
var goodName = item.goodName,
|
|
@@ -23403,8 +24004,8 @@ var processGyGoods$1 = function processGyGoods(_ref5) {
|
|
|
23403
24004
|
});
|
|
23404
24005
|
});
|
|
23405
24006
|
};
|
|
23406
|
-
var processJstGoods$1 = function processJstGoods(
|
|
23407
|
-
var list =
|
|
24007
|
+
var processJstGoods$1 = function processJstGoods(_ref7) {
|
|
24008
|
+
var list = _ref7.list;
|
|
23408
24009
|
return list.map(function (item) {
|
|
23409
24010
|
return {
|
|
23410
24011
|
name: item.goodName,
|
|
@@ -23422,9 +24023,9 @@ var processJstGoods$1 = function processJstGoods(_ref6) {
|
|
|
23422
24023
|
};
|
|
23423
24024
|
});
|
|
23424
24025
|
};
|
|
23425
|
-
var processKmGoods$1 = function processKmGoods(
|
|
23426
|
-
var list =
|
|
23427
|
-
type =
|
|
24026
|
+
var processKmGoods$1 = function processKmGoods(_ref8) {
|
|
24027
|
+
var list = _ref8.list,
|
|
24028
|
+
type = _ref8.type;
|
|
23428
24029
|
var initParamsMap = {
|
|
23429
24030
|
KM_GOODS: {
|
|
23430
24031
|
num: 1
|
|
@@ -23432,31 +24033,39 @@ var processKmGoods$1 = function processKmGoods(_ref7) {
|
|
|
23432
24033
|
KM_REISSUE_GOODS: {
|
|
23433
24034
|
realNum: 1,
|
|
23434
24035
|
desiredNum: 1
|
|
24036
|
+
},
|
|
24037
|
+
KM_RETURN_GOODS: {},
|
|
24038
|
+
KM_EXCHANGE_GOODS: {
|
|
24039
|
+
realNum: 1,
|
|
24040
|
+
desiredNum: 1
|
|
23435
24041
|
}
|
|
23436
24042
|
};
|
|
23437
24043
|
return list.map(function (item) {
|
|
23438
24044
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
23439
24045
|
skuPropertiesName: item.specName,
|
|
24046
|
+
sysSkuPropertiesName: item.specId,
|
|
23440
24047
|
sysTitle: item.goodName,
|
|
23441
24048
|
title: null,
|
|
23442
24049
|
shortTitle: item.goodShortName,
|
|
23443
24050
|
sysOuterId: item.goodNo,
|
|
23444
24051
|
outerId: item.goodNo,
|
|
23445
24052
|
skuSysId: item.specId,
|
|
24053
|
+
sysSkuId: item.specId,
|
|
23446
24054
|
itemSysId: item.goodId,
|
|
24055
|
+
sysItemId: item.goodId,
|
|
23447
24056
|
sysPicPath: item.goodPicUrl,
|
|
23448
24057
|
payment: null,
|
|
23449
24058
|
price: item.retailPrice,
|
|
23450
|
-
type: null,
|
|
24059
|
+
type: (kmSkuTypeMap === null || kmSkuTypeMap === void 0 ? void 0 : kmSkuTypeMap[item === null || item === void 0 ? void 0 : item.skuType]) || '',
|
|
23451
24060
|
uuid: uuid(),
|
|
23452
24061
|
canDelete: true,
|
|
23453
24062
|
canEdit: true
|
|
23454
24063
|
}, initParamsMap[type] || {});
|
|
23455
24064
|
});
|
|
23456
24065
|
};
|
|
23457
|
-
var processDefaultGoods = function processDefaultGoods(
|
|
23458
|
-
var list =
|
|
23459
|
-
canUpdateNumber =
|
|
24066
|
+
var processDefaultGoods = function processDefaultGoods(_ref9) {
|
|
24067
|
+
var list = _ref9.list,
|
|
24068
|
+
canUpdateNumber = _ref9.canUpdateNumber;
|
|
23460
24069
|
return list.map(function (item) {
|
|
23461
24070
|
var goodsId = item.goodsId,
|
|
23462
24071
|
name = item.name,
|
|
@@ -23499,6 +24108,8 @@ var GoodsModalMap = {
|
|
|
23499
24108
|
JST_EXCHANGE_GOODS: JstGoodsModal,
|
|
23500
24109
|
KM_GOODS: KmGoodsModal,
|
|
23501
24110
|
KM_REISSUE_GOODS: KmGoodsModal,
|
|
24111
|
+
KM_RETURN_GOODS: KmGoodsModal,
|
|
24112
|
+
KM_EXCHANGE_GOODS: KmGoodsModal,
|
|
23502
24113
|
JY_GOODS: JyGoodsModal$1,
|
|
23503
24114
|
JY_REISSUE_GOODS: JyGoodsModal$1,
|
|
23504
24115
|
JKY_GOODS: JkyGoodsModal$1,
|
|
@@ -23518,6 +24129,8 @@ var systemOrderNoMap = {
|
|
|
23518
24129
|
JKY_GOODS: 'tradeNo',
|
|
23519
24130
|
JKY_REISSUE_GOODS: 'tradeNo',
|
|
23520
24131
|
KM_REISSUE_GOODS: 'sid',
|
|
24132
|
+
KM_RETURN_GOODS: 'sid',
|
|
24133
|
+
KM_EXCHANGE_GOODS: 'sid',
|
|
23521
24134
|
JST_REISSUE_GOODS: 'oId',
|
|
23522
24135
|
GY_REISSUE_GOODS: 'code',
|
|
23523
24136
|
BS_E3_REISSUE_GOODS: 'orderSn',
|
|
@@ -23543,7 +24156,10 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
23543
24156
|
type = _ref$type === void 0 ? '' : _ref$type,
|
|
23544
24157
|
width = _ref.width,
|
|
23545
24158
|
_ref$isReissueType = _ref.isReissueType,
|
|
23546
|
-
isReissueType = _ref$isReissueType === void 0 ? false : _ref$isReissueType
|
|
24159
|
+
isReissueType = _ref$isReissueType === void 0 ? false : _ref$isReissueType,
|
|
24160
|
+
_ref$isReloadSelectTa = _ref.isReloadSelectTable,
|
|
24161
|
+
isReloadSelectTable = _ref$isReloadSelectTa === void 0 ? false : _ref$isReloadSelectTa,
|
|
24162
|
+
validSystemOrderFn = _ref.validSystemOrderFn;
|
|
23547
24163
|
var _useState = useState(),
|
|
23548
24164
|
_useState2 = _slicedToArray(_useState, 2),
|
|
23549
24165
|
selectSystemNo = _useState2[0],
|
|
@@ -23562,7 +24178,7 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
23562
24178
|
systemItemIds = dataSource === null || dataSource === void 0 ? void 0 : dataSource.filter(function (item) {
|
|
23563
24179
|
return item === null || item === void 0 ? void 0 : item.sysItemId;
|
|
23564
24180
|
}).map(function (item) {
|
|
23565
|
-
return (item === null || item === void 0 ? void 0 : item.sysSkuId) == '-1' ? item === null || item === void 0 ? void 0 : item.sysItemId : "".concat(item === null || item === void 0 ? void 0 : item.sysItemId, "-").concat(item === null || item === void 0 ? void 0 : item.sysSkuId);
|
|
24181
|
+
return !(item === null || item === void 0 ? void 0 : item.sysSkuId) || (item === null || item === void 0 ? void 0 : item.sysSkuId) == '-1' || (item === null || item === void 0 ? void 0 : item.sysSkuId) == (item === null || item === void 0 ? void 0 : item.sysItemId) ? item === null || item === void 0 ? void 0 : item.sysItemId : "".concat(item === null || item === void 0 ? void 0 : item.sysItemId, "-").concat(item === null || item === void 0 ? void 0 : item.sysSkuId);
|
|
23566
24182
|
});
|
|
23567
24183
|
_context.next = 3;
|
|
23568
24184
|
return servers.KM.getSupplierSingleton(systemItemIds);
|
|
@@ -23571,7 +24187,7 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
23571
24187
|
dataSource === null || dataSource === void 0 ? void 0 : (_dataSource$filter = dataSource.filter(function (item) {
|
|
23572
24188
|
return item === null || item === void 0 ? void 0 : item.sysItemId;
|
|
23573
24189
|
})) === null || _dataSource$filter === void 0 ? void 0 : _dataSource$filter.forEach(function (item) {
|
|
23574
|
-
var key = (item === null || item === void 0 ? void 0 : item.sysSkuId) == '-1' ? item === null || item === void 0 ? void 0 : item.sysItemId : "".concat(item === null || item === void 0 ? void 0 : item.sysItemId, "-").concat(item === null || item === void 0 ? void 0 : item.sysSkuId);
|
|
24190
|
+
var key = !(item === null || item === void 0 ? void 0 : item.sysSkuId) || (item === null || item === void 0 ? void 0 : item.sysSkuId) == '-1' || (item === null || item === void 0 ? void 0 : item.sysSkuId) == (item === null || item === void 0 ? void 0 : item.sysItemId) ? item === null || item === void 0 ? void 0 : item.sysItemId : "".concat(item === null || item === void 0 ? void 0 : item.sysItemId, "-").concat(item === null || item === void 0 ? void 0 : item.sysSkuId);
|
|
23575
24191
|
var supplierInfo = supplierMap.get(key);
|
|
23576
24192
|
item.supplierCode = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierCode;
|
|
23577
24193
|
item.supplierName = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierName;
|
|
@@ -23588,36 +24204,52 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
23588
24204
|
}();
|
|
23589
24205
|
var openModal = /*#__PURE__*/function () {
|
|
23590
24206
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
24207
|
+
var flag;
|
|
23591
24208
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
23592
24209
|
while (1) switch (_context2.prev = _context2.next) {
|
|
23593
24210
|
case 0:
|
|
24211
|
+
if (!validSystemOrderFn) {
|
|
24212
|
+
_context2.next = 7;
|
|
24213
|
+
break;
|
|
24214
|
+
}
|
|
24215
|
+
_context2.next = 3;
|
|
24216
|
+
return validSystemOrderFn();
|
|
24217
|
+
case 3:
|
|
24218
|
+
flag = _context2.sent;
|
|
24219
|
+
if (!(flag === false)) {
|
|
24220
|
+
_context2.next = 7;
|
|
24221
|
+
break;
|
|
24222
|
+
}
|
|
24223
|
+
console.log('validSystemOrderFn校验不通过');
|
|
24224
|
+
return _context2.abrupt("return");
|
|
24225
|
+
case 7:
|
|
23594
24226
|
if (!validSystemOrder) {
|
|
23595
|
-
_context2.next =
|
|
24227
|
+
_context2.next = 10;
|
|
23596
24228
|
break;
|
|
23597
24229
|
}
|
|
23598
24230
|
message.warning('请选择补发系统单');
|
|
23599
24231
|
return _context2.abrupt("return");
|
|
23600
|
-
case
|
|
23601
|
-
if (!(getDataSourceAsync && !(dataSource === null || dataSource === void 0 ? void 0 : dataSource.length))) {
|
|
23602
|
-
_context2.next =
|
|
24232
|
+
case 10:
|
|
24233
|
+
if (!(getDataSourceAsync && (!(dataSource === null || dataSource === void 0 ? void 0 : dataSource.length) || isReloadSelectTable))) {
|
|
24234
|
+
_context2.next = 13;
|
|
23603
24235
|
break;
|
|
23604
24236
|
}
|
|
23605
|
-
_context2.next =
|
|
24237
|
+
_context2.next = 13;
|
|
23606
24238
|
return getDataSourceAsync();
|
|
23607
|
-
case
|
|
23608
|
-
if (!['KM_GOODS', 'KM_REISSUE_GOODS'].includes(type)) {
|
|
23609
|
-
_context2.next =
|
|
24239
|
+
case 13:
|
|
24240
|
+
if (!['KM_GOODS', 'KM_REISSUE_GOODS', 'KM_RETURN_GOODS'].includes(type)) {
|
|
24241
|
+
_context2.next = 16;
|
|
23610
24242
|
break;
|
|
23611
24243
|
}
|
|
23612
|
-
_context2.next =
|
|
24244
|
+
_context2.next = 16;
|
|
23613
24245
|
return getKmSupplier(dataSource);
|
|
23614
|
-
case
|
|
24246
|
+
case 16:
|
|
23615
24247
|
setTradeGoodsVisible(true);
|
|
23616
24248
|
// 补发直接传入的是systemNo
|
|
23617
24249
|
if (isShowSelect && isReissueType) {
|
|
23618
24250
|
setSelectSystemNo(selectedSystemOrders || []);
|
|
23619
24251
|
}
|
|
23620
|
-
case
|
|
24252
|
+
case 18:
|
|
23621
24253
|
case "end":
|
|
23622
24254
|
return _context2.stop();
|
|
23623
24255
|
}
|
|
@@ -23729,9 +24361,10 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
23729
24361
|
}
|
|
23730
24362
|
}), /*#__PURE__*/React.createElement("span", null, "\u5DF2\u9009\u62E9(", currentTradeOriginGoods === null || currentTradeOriginGoods === void 0 ? void 0 : currentTradeOriginGoods.length, "/", filterDataSource === null || filterDataSource === void 0 ? void 0 : filterDataSource.length, ")")));
|
|
23731
24363
|
};
|
|
24364
|
+
SelectTradeGoods.displayName = 'SelectTradeGoods';
|
|
23732
24365
|
var getButtonText = function getButtonText() {
|
|
23733
24366
|
var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
23734
|
-
if (['KM_GOODS', 'KM_REISSUE_GOODS'].includes(type)) {
|
|
24367
|
+
if (['KM_GOODS', 'KM_REISSUE_GOODS', 'KM_EXCHANGE_GOODS'].includes(type)) {
|
|
23735
24368
|
return '选择快麦ERP商品';
|
|
23736
24369
|
}
|
|
23737
24370
|
if (['BS_E3_GOODS', 'BS_E3_REISSUE_GOODS', 'BS_E3_EXCHANGE_GOODS'].includes(type)) {
|
|
@@ -23802,15 +24435,17 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
23802
24435
|
_props$templateDetail = props.templateDetail,
|
|
23803
24436
|
templateDetail = _props$templateDetail === void 0 ? {} : _props$templateDetail,
|
|
23804
24437
|
_props$hasSelectedSys = props.hasSelectedSystemOrder,
|
|
23805
|
-
hasSelectedSystemOrder = _props$hasSelectedSys === void 0 ? false : _props$hasSelectedSys
|
|
24438
|
+
hasSelectedSystemOrder = _props$hasSelectedSys === void 0 ? false : _props$hasSelectedSys,
|
|
24439
|
+
isReloadSelectTable = props.isReloadSelectTable,
|
|
24440
|
+
validSystemOrderFn = props.validSystemOrderFn;
|
|
23806
24441
|
var canDelete = ['JST_AFTERSALE_GOODS'].includes(type);
|
|
23807
24442
|
var uniqueKey = (tradeGoods === null || tradeGoods === void 0 ? void 0 : tradeGoods.uniqueKey) || 'uuid';
|
|
23808
24443
|
// 监听聚水潭退货商品
|
|
23809
24444
|
var jstReturnGoods = Form === null || Form === void 0 ? void 0 : Form.useWatch('3979edfd6d', form);
|
|
23810
24445
|
var isShowSelectTradeGoods = type !== 'JST_EXCHANGE_GOODS' || (jstReturnGoods === null || jstReturnGoods === void 0 ? void 0 : jstReturnGoods.jstSystemOrderNo);
|
|
23811
24446
|
// 判断是否为是否展示系统单筛选项
|
|
23812
|
-
var isShowSelect = type && ['WDT_GOODS', 'BS_E3_GOODS', 'GY_GOODS', 'JST_GOODS', 'WLN_GOODS', 'KM_GOODS', 'JY_GOODS', 'JY_REISSUE_GOODS', 'JKY_GOODS', 'JKY_REISSUE_GOODS', 'GY_REISSUE_GOODS', 'KM_REISSUE_GOODS', 'BS_E3_REISSUE_GOODS', 'WDT_REISSUE_GOODS', 'JST_REISSUE_GOODS'].includes(type) || false;
|
|
23813
|
-
var isReissueType = type && ['GY_REISSUE_GOODS', 'KM_REISSUE_GOODS', 'BS_E3_REISSUE_GOODS', 'WDT_REISSUE_GOODS', 'JST_REISSUE_GOODS', 'JY_REISSUE_GOODS'].includes(type) || false;
|
|
24447
|
+
var isShowSelect = type && ['WDT_GOODS', 'BS_E3_GOODS', 'GY_GOODS', 'JST_GOODS', 'WLN_GOODS', 'KM_GOODS', 'JY_GOODS', 'JY_REISSUE_GOODS', 'JKY_GOODS', 'JKY_REISSUE_GOODS', 'GY_REISSUE_GOODS', 'KM_REISSUE_GOODS', 'KM_RETURN_GOODS', 'BS_E3_REISSUE_GOODS', 'WDT_REISSUE_GOODS', 'JST_REISSUE_GOODS'].includes(type) || false;
|
|
24448
|
+
var isReissueType = type && ['GY_REISSUE_GOODS', 'KM_REISSUE_GOODS', 'BS_E3_REISSUE_GOODS', 'WDT_REISSUE_GOODS', 'JST_REISSUE_GOODS', 'JY_REISSUE_GOODS', 'JKY_REISSUE_GOODS'].includes(type) || false;
|
|
23814
24449
|
var refModal = useRef();
|
|
23815
24450
|
console.debug('表格数据', value);
|
|
23816
24451
|
var handleDelete = function handleDelete(record, index) {
|
|
@@ -23899,6 +24534,8 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
23899
24534
|
case 'GY_RETURN_GOODS':
|
|
23900
24535
|
case 'KM_GOODS':
|
|
23901
24536
|
case 'KM_REISSUE_GOODS':
|
|
24537
|
+
case 'KM_RETURN_GOODS':
|
|
24538
|
+
case 'KM_EXCHANGE_GOODS':
|
|
23902
24539
|
case 'JY_GOODS':
|
|
23903
24540
|
case 'JY_REISSUE_GOODS':
|
|
23904
24541
|
case 'JKY_GOODS':
|
|
@@ -24101,6 +24738,8 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
24101
24738
|
checked: isStrict,
|
|
24102
24739
|
onChange: handleCheckboxChange
|
|
24103
24740
|
}, "\u5408\u5E76\u5355\uFF0C\u52FE\u9009\u540E\u53EA\u5C55\u793A\u5F53\u524D\u5E73\u53F0\u8BA2\u5355\u5546\u54C1"), !isEmpty(tradeGoods) && isShowSelectTradeGoods && /*#__PURE__*/React.createElement(SelectTradeGoods, {
|
|
24741
|
+
isReloadSelectTable: isReloadSelectTable,
|
|
24742
|
+
validSystemOrderFn: validSystemOrderFn,
|
|
24104
24743
|
validSystemOrder: validSystemOrder,
|
|
24105
24744
|
isShowSelect: isShowSelect,
|
|
24106
24745
|
uniqueKey: uniqueKey,
|
|
@@ -24831,7 +25470,8 @@ var getWdtOrderListSingleton = function getWdtOrderListSingleton(orderNo) {
|
|
|
24831
25470
|
billNo: item.tradeNo,
|
|
24832
25471
|
billType: WDT_ORDER_TYPE_MAP[item.tradeType],
|
|
24833
25472
|
billTag: item.tagName || item.tags,
|
|
24834
|
-
tradeStatusValue: tradeStatusMap === null || tradeStatusMap === void 0 ? void 0 : (_tradeStatusMap$data$ = tradeStatusMap[data.data.version]) === null || _tradeStatusMap$data$ === void 0 ? void 0 : _tradeStatusMap$data$[item.tradeStatus]
|
|
25473
|
+
tradeStatusValue: tradeStatusMap === null || tradeStatusMap === void 0 ? void 0 : (_tradeStatusMap$data$ = tradeStatusMap[data.data.version]) === null || _tradeStatusMap$data$ === void 0 ? void 0 : _tradeStatusMap$data$[item.tradeStatus],
|
|
25474
|
+
logisticsName: ExpressData.getInstance('wdt').getExpressNameByCode(item === null || item === void 0 ? void 0 : item.logisticsCode, false) || (item === null || item === void 0 ? void 0 : item.logisticsName)
|
|
24835
25475
|
});
|
|
24836
25476
|
});
|
|
24837
25477
|
}
|
|
@@ -25115,24 +25755,28 @@ var getJkyOrderListSingleton = function getJkyOrderListSingleton(orderNo) {
|
|
|
25115
25755
|
singletonMap$7.delete(orderNo);
|
|
25116
25756
|
reject(err);
|
|
25117
25757
|
};
|
|
25118
|
-
extendRequest('/qy/gdfw/
|
|
25758
|
+
extendRequest('/qy/gdfw/jky/erp/trade/fullInfo', {
|
|
25119
25759
|
method: 'post',
|
|
25120
25760
|
data: {
|
|
25121
|
-
|
|
25761
|
+
sourceTradeNos: orderNo
|
|
25122
25762
|
}
|
|
25123
25763
|
}).then(function (res) {
|
|
25124
25764
|
if (res === null || res === void 0 ? void 0 : res.success) {
|
|
25125
|
-
var _res$data, _res$
|
|
25126
|
-
if (res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 :
|
|
25127
|
-
var _filterJkyOrders
|
|
25128
|
-
res.data.trades = (_filterJkyOrders = filterJkyOrders(res === null || res === void 0 ? void 0 :
|
|
25765
|
+
var _res$data, _res$data2;
|
|
25766
|
+
if (res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.length) {
|
|
25767
|
+
var _filterJkyOrders;
|
|
25768
|
+
res.data.trades = (_filterJkyOrders = filterJkyOrders(res === null || res === void 0 ? void 0 : res.data, orderNo)) === null || _filterJkyOrders === void 0 ? void 0 : _filterJkyOrders.map(function (item) {
|
|
25129
25769
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
25770
|
+
tradeFrom: JKY_ORDER_FROM_MAP[item.tradeFrom],
|
|
25130
25771
|
tradeType: JKY_ORDER_TYPE_MAP[item.tradeType],
|
|
25131
|
-
tradeStatus: JKY_ORDER_STATUS_MAP[item.tradeStatus]
|
|
25772
|
+
tradeStatus: JKY_ORDER_STATUS_MAP[item.tradeStatus],
|
|
25773
|
+
logisticName: getJkyLogisticInfo(item, 'logisticName'),
|
|
25774
|
+
logisticCode: getJkyLogisticInfo(item, 'logisticCode'),
|
|
25775
|
+
logisticNo: getJkyLogisticInfo(item, 'logisticNo')
|
|
25132
25776
|
});
|
|
25133
25777
|
});
|
|
25134
25778
|
}
|
|
25135
|
-
resolve(((_res$
|
|
25779
|
+
resolve(((_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.trades) || []);
|
|
25136
25780
|
// 延迟10秒清除,保证订单的时效性
|
|
25137
25781
|
setTimeout(function () {
|
|
25138
25782
|
singletonMap$7.delete(orderNo);
|
|
@@ -25232,6 +25876,34 @@ var index$2 = (function (props) {
|
|
|
25232
25876
|
showHeader = _props$showHeader === void 0 ? [] : _props$showHeader;
|
|
25233
25877
|
var onceRef = useRef(false);
|
|
25234
25878
|
var valueRef = useRef(null);
|
|
25879
|
+
// 字段筛选状态 - 用户选择要筛选的字段(单选)
|
|
25880
|
+
var _useState = useState(''),
|
|
25881
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
25882
|
+
filterField = _useState2[0],
|
|
25883
|
+
setFilterField = _useState2[1];
|
|
25884
|
+
// 筛选关键词 - 输入框内容,用于模糊匹配选中字段列的值
|
|
25885
|
+
var _useState3 = useState(''),
|
|
25886
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
25887
|
+
filterKeyword = _useState4[0],
|
|
25888
|
+
setFilterKeyword = _useState4[1];
|
|
25889
|
+
// 初始化筛选字段(仅在 type 变化时初始化)
|
|
25890
|
+
useEffect(function () {
|
|
25891
|
+
var allColumns = columnsMap[type] || [];
|
|
25892
|
+
if (showHeader && showHeader.length > 0) {
|
|
25893
|
+
var _validItems$;
|
|
25894
|
+
// showHeader 是对象数组,提取第一个 dataIndex
|
|
25895
|
+
var validItems = showHeader.filter(function (item) {
|
|
25896
|
+
return item.show !== false;
|
|
25897
|
+
});
|
|
25898
|
+
var defaultField = ((_validItems$ = validItems[0]) === null || _validItems$ === void 0 ? void 0 : _validItems$.dataIndex) || '';
|
|
25899
|
+
setFilterField(defaultField);
|
|
25900
|
+
} else {
|
|
25901
|
+
var _allColumns$;
|
|
25902
|
+
// 如果 showHeader 为空,使用第一个列
|
|
25903
|
+
var firstField = ((_allColumns$ = allColumns[0]) === null || _allColumns$ === void 0 ? void 0 : _allColumns$.dataIndex) || '';
|
|
25904
|
+
setFilterField(firstField);
|
|
25905
|
+
}
|
|
25906
|
+
}, [type]);
|
|
25235
25907
|
useEffect(function () {
|
|
25236
25908
|
var _value$orders, _value$showOrderInfo;
|
|
25237
25909
|
valueRef.current = value;
|
|
@@ -25259,12 +25931,100 @@ var index$2 = (function (props) {
|
|
|
25259
25931
|
}
|
|
25260
25932
|
}, [value, type]);
|
|
25261
25933
|
var columns = useMemo(function () {
|
|
25934
|
+
// 通过 getSystemShowHead 处理 showHeader 配置
|
|
25262
25935
|
var baseInfoColumns = getSystemShowHead({
|
|
25263
25936
|
columns: columnsMap[type] || [],
|
|
25264
25937
|
showHeader: showHeader
|
|
25265
25938
|
});
|
|
25266
25939
|
return baseInfoColumns || [];
|
|
25267
25940
|
}, [type, showHeader]);
|
|
25941
|
+
// 构建字段渲染值映射表(原始值 -> 显示值),用于筛选时同时匹配原始值和显示值
|
|
25942
|
+
var fieldRenderMap = useMemo(function () {
|
|
25943
|
+
var map = {};
|
|
25944
|
+
// JKY_SYSTEM_ORDER 需要处理的字段
|
|
25945
|
+
if (type === 'JKY_SYSTEM_ORDER') {
|
|
25946
|
+
// isDelete: 1 -> "是", 0 -> "否"
|
|
25947
|
+
map['isDelete'] = {
|
|
25948
|
+
'1': '是',
|
|
25949
|
+
'0': '否'
|
|
25950
|
+
};
|
|
25951
|
+
// tradeFrom - 订单来源映射
|
|
25952
|
+
map['tradeFrom'] = _objectSpread2({}, JKY_ORDER_FROM_MAP);
|
|
25953
|
+
// tradeType - 订单类型映射
|
|
25954
|
+
map['tradeType'] = _objectSpread2({}, JKY_ORDER_TYPE_MAP);
|
|
25955
|
+
// tradeStatus - 销售单状态映射
|
|
25956
|
+
map['tradeStatus'] = _objectSpread2({}, JKY_ORDER_STATUS_MAP);
|
|
25957
|
+
}
|
|
25958
|
+
// BS_E3_SYSTEM_ORDER 需要处理的字段
|
|
25959
|
+
if (type === 'BS_E3_SYSTEM_ORDER') {
|
|
25960
|
+
// orderStatus - 订单状态映射
|
|
25961
|
+
map['orderStatus'] = _objectSpread2({}, BS_E3_ORDER_STATUS_MAP);
|
|
25962
|
+
// 布尔类型字段映射
|
|
25963
|
+
var booleanMap = _objectSpread2({}, BS_E3_BOOLEAN_STATUS_MAP);
|
|
25964
|
+
['isSplit', 'isSplitNew', 'isCombine', 'isCombineNew', 'isCopy', 'isExchangeOrder'].forEach(function (field) {
|
|
25965
|
+
map[field] = booleanMap;
|
|
25966
|
+
});
|
|
25967
|
+
}
|
|
25968
|
+
// KM_SYSTEM_ORDER 需要处理的字段
|
|
25969
|
+
if (type === 'KM_SYSTEM_ORDER') {
|
|
25970
|
+
// billType - 订单类型映射(0: "普通订单", 1: "货到付款", ...)
|
|
25971
|
+
map['billType'] = _objectSpread2({}, KM_ORDER_TYPE_MAP);
|
|
25972
|
+
// sysStatus - 订单系统状态映射
|
|
25973
|
+
map['sysStatus'] = _objectSpread2({}, KM_ORDER_STATUS);
|
|
25974
|
+
}
|
|
25975
|
+
// JY_SYSTEM_ORDER 需要处理的字段
|
|
25976
|
+
if (type === 'JY_SYSTEM_ORDER') {
|
|
25977
|
+
// tradeType - 订单类型映射
|
|
25978
|
+
map['tradeType'] = _objectSpread2({}, JY_ORDER_TYPE_MAP);
|
|
25979
|
+
// tradeStatus - 订单状态映射
|
|
25980
|
+
map['tradeStatus'] = _objectSpread2({}, JY_ORDER_STATUS_MAP);
|
|
25981
|
+
}
|
|
25982
|
+
// GY_SYSTEM_ORDER 需要处理的字段
|
|
25983
|
+
if (type === 'GY_SYSTEM_ORDER') {
|
|
25984
|
+
// deliveryStateName - 发货状态映射 (0: "未发货", 2: "全部发货")
|
|
25985
|
+
map['deliveryStateName'] = _objectSpread2({}, GY_DELIVERY_STATE_MAPPING);
|
|
25986
|
+
}
|
|
25987
|
+
return map;
|
|
25988
|
+
}, [type]);
|
|
25989
|
+
// 过滤后的表格数据 - 根据选中字段和关键词模糊匹配(不区分大小写)
|
|
25990
|
+
var filteredData = useMemo(function () {
|
|
25991
|
+
if (!filterField || !filterKeyword) {
|
|
25992
|
+
return (value === null || value === void 0 ? void 0 : value.orders) || [];
|
|
25993
|
+
}
|
|
25994
|
+
var keywordLower = filterKeyword.toLowerCase();
|
|
25995
|
+
var renderMap = fieldRenderMap[filterField];
|
|
25996
|
+
return ((value === null || value === void 0 ? void 0 : value.orders) || []).filter(function (item) {
|
|
25997
|
+
var fieldValue = item[filterField];
|
|
25998
|
+
if (fieldValue == null) return false;
|
|
25999
|
+
var fieldValueStr = String(fieldValue);
|
|
26000
|
+
var fieldValueLower = fieldValueStr.toLowerCase();
|
|
26001
|
+
// 直接匹配原始值
|
|
26002
|
+
if (fieldValueLower.includes(keywordLower)) return true;
|
|
26003
|
+
// 匹配渲染后的值
|
|
26004
|
+
if (renderMap) {
|
|
26005
|
+
// KM_SYSTEM_ORDER 的 billType 是逗号分隔的多个类型(如 "2,3,0")
|
|
26006
|
+
var isKmBillType = filterField === 'billType' && fieldValueStr.includes(',');
|
|
26007
|
+
if (isKmBillType) {
|
|
26008
|
+
// 拆分为单个类型代码,分别映射后拼接
|
|
26009
|
+
var typeCodes = fieldValueStr.split(',');
|
|
26010
|
+
var displayValues = typeCodes.map(function (code) {
|
|
26011
|
+
return renderMap[code.trim()];
|
|
26012
|
+
}).filter(Boolean);
|
|
26013
|
+
var displayValueStr = displayValues.join(',');
|
|
26014
|
+
if (displayValueStr.toLowerCase().includes(keywordLower)) {
|
|
26015
|
+
return true;
|
|
26016
|
+
}
|
|
26017
|
+
} else {
|
|
26018
|
+
// 单个值的字段
|
|
26019
|
+
var displayValue = renderMap[fieldValueStr];
|
|
26020
|
+
if (displayValue && displayValue.toLowerCase().includes(keywordLower)) {
|
|
26021
|
+
return true;
|
|
26022
|
+
}
|
|
26023
|
+
}
|
|
26024
|
+
}
|
|
26025
|
+
return false;
|
|
26026
|
+
});
|
|
26027
|
+
}, [value === null || value === void 0 ? void 0 : value.orders, filterField, filterKeyword, fieldRenderMap]);
|
|
25268
26028
|
var getOrderList = /*#__PURE__*/function () {
|
|
25269
26029
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(orderNo) {
|
|
25270
26030
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -25494,8 +26254,8 @@ var index$2 = (function (props) {
|
|
|
25494
26254
|
while (1) switch (_context8.prev = _context8.next) {
|
|
25495
26255
|
case 0:
|
|
25496
26256
|
jyUtils.getJyOrderListSingleton(orderNo).then(function (data) {
|
|
25497
|
-
var trades = (
|
|
25498
|
-
return getIsPlatformCodesIncludeOrderNos(item.
|
|
26257
|
+
var trades = (data || []).filter(function (item) {
|
|
26258
|
+
return getIsPlatformCodesIncludeOrderNos(item.tradeId, orderNo);
|
|
25499
26259
|
});
|
|
25500
26260
|
_onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, {
|
|
25501
26261
|
orders: trades,
|
|
@@ -25525,12 +26285,9 @@ var index$2 = (function (props) {
|
|
|
25525
26285
|
while (1) switch (_context9.prev = _context9.next) {
|
|
25526
26286
|
case 0:
|
|
25527
26287
|
jkyUtils.getJkyOrderListSingleton(orderNo).then(function (data) {
|
|
25528
|
-
var trades = ((data === null || data === void 0 ? void 0 : data.trades) || []).filter(function (item) {
|
|
25529
|
-
return getIsPlatformCodesIncludeOrderNos(item.platformCode, orderNo);
|
|
25530
|
-
});
|
|
25531
26288
|
_onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, {
|
|
25532
|
-
orders:
|
|
25533
|
-
showOrderInfo:
|
|
26289
|
+
orders: data || [],
|
|
26290
|
+
showOrderInfo: data || []
|
|
25534
26291
|
}));
|
|
25535
26292
|
});
|
|
25536
26293
|
onceRef.current = false;
|
|
@@ -25560,25 +26317,39 @@ var index$2 = (function (props) {
|
|
|
25560
26317
|
};
|
|
25561
26318
|
}
|
|
25562
26319
|
};
|
|
25563
|
-
// useEffect(() => {
|
|
25564
|
-
// const dom = document.querySelector(
|
|
25565
|
-
// `.${type}_SYSTEM_ORDER_COMPONENT .ant-table-content`,
|
|
25566
|
-
// );
|
|
25567
|
-
// //解决列表出现横向滚动条时选择数据造成行内闪烁问题
|
|
25568
|
-
// if (
|
|
25569
|
-
// (value?.selectIds || []).length > 0 &&
|
|
25570
|
-
// dom &&
|
|
25571
|
-
// dom.scrollWidth > dom.clientWidth &&
|
|
25572
|
-
// dom.scrollLeft === 0
|
|
25573
|
-
// ) {
|
|
25574
|
-
// console.log(dom.scrollWidth > dom.clientWidth, dom.scrollLeft === 0);
|
|
25575
|
-
// dom.scrollLeft = 1;
|
|
25576
|
-
// }
|
|
25577
|
-
// }, [JSON.stringify(value?.selectIds || [])]);
|
|
25578
26320
|
return /*#__PURE__*/React.createElement("div", {
|
|
25579
26321
|
className: "".concat(type, "_SYSTEM_ORDER_COMPONENT")
|
|
25580
|
-
}, /*#__PURE__*/React.createElement(
|
|
25581
|
-
|
|
26322
|
+
}, /*#__PURE__*/React.createElement(Space, {
|
|
26323
|
+
style: {
|
|
26324
|
+
marginBottom: 8
|
|
26325
|
+
}
|
|
26326
|
+
}, /*#__PURE__*/React.createElement(Select, {
|
|
26327
|
+
style: {
|
|
26328
|
+
width: 150
|
|
26329
|
+
},
|
|
26330
|
+
placeholder: "\u9009\u62E9\u5B57\u6BB5",
|
|
26331
|
+
value: filterField,
|
|
26332
|
+
onChange: setFilterField,
|
|
26333
|
+
allowClear: true,
|
|
26334
|
+
showSearch: true,
|
|
26335
|
+
optionFilterProp: "children"
|
|
26336
|
+
}, (columnsMap[type] || []).map(function (col) {
|
|
26337
|
+
return /*#__PURE__*/React.createElement(Select.Option, {
|
|
26338
|
+
key: col.dataIndex,
|
|
26339
|
+
value: col.dataIndex
|
|
26340
|
+
}, col.title);
|
|
26341
|
+
})), /*#__PURE__*/React.createElement(Input, {
|
|
26342
|
+
placeholder: "\u8F93\u5165\u5173\u952E\u8BCD\u6A21\u7CCA\u5339\u914D",
|
|
26343
|
+
style: {
|
|
26344
|
+
width: 200
|
|
26345
|
+
},
|
|
26346
|
+
value: filterKeyword,
|
|
26347
|
+
onChange: function onChange(e) {
|
|
26348
|
+
return setFilterKeyword(e.target.value);
|
|
26349
|
+
},
|
|
26350
|
+
allowClear: true
|
|
26351
|
+
})), /*#__PURE__*/React.createElement(Table, {
|
|
26352
|
+
dataSource: filteredData,
|
|
25582
26353
|
columns: columns,
|
|
25583
26354
|
rowSelection: rowSelection,
|
|
25584
26355
|
rowKey: rowKeyMap[type] || 'billNo',
|
|
@@ -26507,8 +27278,8 @@ var processGyOrders = function processGyOrders(_ref4) {
|
|
|
26507
27278
|
var processJyOrders = function processJyOrders(_ref5) {
|
|
26508
27279
|
var data = _ref5.data,
|
|
26509
27280
|
orderNo = _ref5.orderNo;
|
|
26510
|
-
var trades = (
|
|
26511
|
-
return getIsPlatformCodesIncludeOrderNos(item.
|
|
27281
|
+
var trades = (data || []).filter(function (item) {
|
|
27282
|
+
return getIsPlatformCodesIncludeOrderNos(item.tradeId, orderNo);
|
|
26512
27283
|
});
|
|
26513
27284
|
return trades;
|
|
26514
27285
|
};
|
|
@@ -26833,7 +27604,7 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
26833
27604
|
value === null || value === void 0 ? void 0 : (_value$kmGoods = value.kmGoods) === null || _value$kmGoods === void 0 ? void 0 : (_value$kmGoods$filter = _value$kmGoods.filter(function (item) {
|
|
26834
27605
|
return item === null || item === void 0 ? void 0 : item.sysItemId;
|
|
26835
27606
|
})) === null || _value$kmGoods$filter === void 0 ? void 0 : _value$kmGoods$filter.forEach(function (item) {
|
|
26836
|
-
var key = item.sysSkuId == '-1' ? item.sysItemId : "".concat(item.sysItemId, "-").concat(item.sysSkuId);
|
|
27607
|
+
var key = !(item === null || item === void 0 ? void 0 : item.sysSkuId) || (item === null || item === void 0 ? void 0 : item.sysSkuId) == '-1' || (item === null || item === void 0 ? void 0 : item.sysSkuId) == (item === null || item === void 0 ? void 0 : item.sysItemId) ? item === null || item === void 0 ? void 0 : item.sysItemId : "".concat(item === null || item === void 0 ? void 0 : item.sysItemId, "-").concat(item === null || item === void 0 ? void 0 : item.sysSkuId);
|
|
26837
27608
|
map[key] = item;
|
|
26838
27609
|
});
|
|
26839
27610
|
}
|
|
@@ -26874,7 +27645,8 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
26874
27645
|
hasChange = false;
|
|
26875
27646
|
currentValue = valueRef.current;
|
|
26876
27647
|
kmGoods = currentValue === null || currentValue === void 0 ? void 0 : (_currentValue$kmGoods = currentValue.kmGoods) === null || _currentValue$kmGoods === void 0 ? void 0 : _currentValue$kmGoods.map(function (item) {
|
|
26877
|
-
var
|
|
27648
|
+
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);
|
|
27649
|
+
var supplierInfo = supplierMap.get(key);
|
|
26878
27650
|
var newSupplierCode = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierCode;
|
|
26879
27651
|
var newSupplierName = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierName;
|
|
26880
27652
|
// 如果供应商信息有变化,标记需要更新
|
|
@@ -27158,7 +27930,6 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
27158
27930
|
orderNo: value === null || value === void 0 ? void 0 : value.orderNo,
|
|
27159
27931
|
type: compType
|
|
27160
27932
|
});
|
|
27161
|
-
console.log('getDataSourceAsync', list);
|
|
27162
27933
|
onChange(_objectSpread2(_objectSpread2({}, valueRef.current), {}, {
|
|
27163
27934
|
allOrders: list || []
|
|
27164
27935
|
}));
|
|
@@ -27194,6 +27965,7 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
27194
27965
|
}
|
|
27195
27966
|
}));
|
|
27196
27967
|
};
|
|
27968
|
+
CommonGoods.displayName = 'CommonGoods';
|
|
27197
27969
|
|
|
27198
27970
|
var componentMap$3 = {
|
|
27199
27971
|
WDT_RETURN_GOODS: {
|
|
@@ -27387,6 +28159,55 @@ var componentMap$4 = {
|
|
|
27387
28159
|
returnGoodsSysorder: 'jstReturnGoodsSysorder',
|
|
27388
28160
|
returnGoodsSysorderBack: 'jstReturnGoodsSysorderBack'
|
|
27389
28161
|
}
|
|
28162
|
+
},
|
|
28163
|
+
KM_EXCHANGE_GOODS: {
|
|
28164
|
+
type: 'km',
|
|
28165
|
+
showChooseTradeGoodsBtn: true,
|
|
28166
|
+
valueKey: 'kmExchangeGoods',
|
|
28167
|
+
returnTypeKey: 'kmExchangeType',
|
|
28168
|
+
systemOrder: 'kmSystemOrder',
|
|
28169
|
+
systemOrderNo: 'kmSystemOrderNo',
|
|
28170
|
+
oIdKey: 'billNo',
|
|
28171
|
+
goodDetailsKey: 'subOrders',
|
|
28172
|
+
skuIdKey: 'skuId',
|
|
28173
|
+
outerOiIdKey: '',
|
|
28174
|
+
name: '快麦',
|
|
28175
|
+
updateGoodsHandle: updateKmGoodsHandle,
|
|
28176
|
+
isReloadSelectTable: true,
|
|
28177
|
+
validSystemOrderFn: function () {
|
|
28178
|
+
var _validSystemOrderFn = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(form) {
|
|
28179
|
+
var returnGoodsValue;
|
|
28180
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
28181
|
+
while (1) switch (_context.prev = _context.next) {
|
|
28182
|
+
case 0:
|
|
28183
|
+
_context.next = 2;
|
|
28184
|
+
return form.getFieldValue('KM3F7B91C2');
|
|
28185
|
+
case 2:
|
|
28186
|
+
returnGoodsValue = _context.sent;
|
|
28187
|
+
if (returnGoodsValue.kmSystemOrderNo) {
|
|
28188
|
+
_context.next = 6;
|
|
28189
|
+
break;
|
|
28190
|
+
}
|
|
28191
|
+
message.error('请选择退货系统单');
|
|
28192
|
+
return _context.abrupt("return", false);
|
|
28193
|
+
case 6:
|
|
28194
|
+
case "end":
|
|
28195
|
+
return _context.stop();
|
|
28196
|
+
}
|
|
28197
|
+
}, _callee);
|
|
28198
|
+
}));
|
|
28199
|
+
function validSystemOrderFn(_x) {
|
|
28200
|
+
return _validSystemOrderFn.apply(this, arguments);
|
|
28201
|
+
}
|
|
28202
|
+
return validSystemOrderFn;
|
|
28203
|
+
}(),
|
|
28204
|
+
eventNameMap: {
|
|
28205
|
+
// pubsub 事件
|
|
28206
|
+
exchangeCopyGood: 'kmExchangeCopyGood',
|
|
28207
|
+
exchangeBackCopyGood: 'kmExchangeBackCopyGood',
|
|
28208
|
+
returnGoodsSysorder: 'kmReturnGoodsSysorder',
|
|
28209
|
+
returnGoodsSysorderBack: 'kmReturnGoodsSysorderBack'
|
|
28210
|
+
}
|
|
27390
28211
|
}
|
|
27391
28212
|
};
|
|
27392
28213
|
var CommonExchangeGoods = function CommonExchangeGoods(props) {
|
|
@@ -27394,7 +28215,8 @@ var CommonExchangeGoods = function CommonExchangeGoods(props) {
|
|
|
27394
28215
|
var value = props.value,
|
|
27395
28216
|
onChange = props.onChange,
|
|
27396
28217
|
disabled = props.disabled,
|
|
27397
|
-
compType = props.type
|
|
28218
|
+
compType = props.type,
|
|
28219
|
+
form = props.form;
|
|
27398
28220
|
var uniqueKey = (componentMap$4 === null || componentMap$4 === void 0 ? void 0 : (_componentMap$compTyp = componentMap$4[compType]) === null || _componentMap$compTyp === void 0 ? void 0 : _componentMap$compTyp.skuIdKey) || 'uuid';
|
|
27399
28221
|
var valueRef = useRef({});
|
|
27400
28222
|
// PS: 目前选择订单商品,只有聚水潭换出商品,而且聚水潭不用考虑合并单,所以这个值一直是 false
|
|
@@ -27487,6 +28309,10 @@ var CommonExchangeGoods = function CommonExchangeGoods(props) {
|
|
|
27487
28309
|
return new Promise(function (resolve) {
|
|
27488
28310
|
pubsub.subscribeOnce(componentMap$4[compType].eventNameMap.returnGoodsSysorderBack, function (_, data) {
|
|
27489
28311
|
resolve(data);
|
|
28312
|
+
console.log('getDataSourceAsync---111data--', data, getGoodDetails({
|
|
28313
|
+
returnGoodsValue: data,
|
|
28314
|
+
mode: isStrict
|
|
28315
|
+
}));
|
|
27490
28316
|
setOriginDataSource(getGoodDetails({
|
|
27491
28317
|
returnGoodsValue: data,
|
|
27492
28318
|
mode: isStrict
|
|
@@ -27495,9 +28321,14 @@ var CommonExchangeGoods = function CommonExchangeGoods(props) {
|
|
|
27495
28321
|
pubsub.publish(componentMap$4[compType].eventNameMap.returnGoodsSysorder, compType);
|
|
27496
28322
|
});
|
|
27497
28323
|
};
|
|
28324
|
+
console.log('aaa--', originDataSource);
|
|
27498
28325
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(GoodItem$1, _objectSpread2(_objectSpread2({
|
|
27499
28326
|
key: componentMap$4[compType].type
|
|
27500
28327
|
}, props), {}, {
|
|
28328
|
+
validSystemOrderFn: function validSystemOrderFn() {
|
|
28329
|
+
return componentMap$4[compType].validSystemOrderFn(form);
|
|
28330
|
+
},
|
|
28331
|
+
isReloadSelectTable: componentMap$4[compType].isReloadSelectTable,
|
|
27501
28332
|
disabled: disabled,
|
|
27502
28333
|
canUpdateNumber: true,
|
|
27503
28334
|
showChangeBtn: true,
|
|
@@ -27673,7 +28504,8 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
27673
28504
|
var newValue = _objectSpread2({}, value);
|
|
27674
28505
|
// 原订单商品
|
|
27675
28506
|
var originTradeGoodList = getGoodDetails({
|
|
27676
|
-
mode: isStrict
|
|
28507
|
+
mode: isStrict,
|
|
28508
|
+
isAllOrders: true
|
|
27677
28509
|
}) || [];
|
|
27678
28510
|
// 当前选中的所有商品【包含了原订单+商品库】
|
|
27679
28511
|
var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type22 = typeMap$1[type]) === null || _typeMap$type22 === void 0 ? void 0 : _typeMap$type22.key)]) || [];
|
|
@@ -27831,6 +28663,30 @@ var typeMap$2 = {
|
|
|
27831
28663
|
uniqueKey: 'id',
|
|
27832
28664
|
isShowSelectTradeGoods: true
|
|
27833
28665
|
},
|
|
28666
|
+
KM_RETURN_GOODS: {
|
|
28667
|
+
compType: '退货',
|
|
28668
|
+
key: 'kmReturnGoods',
|
|
28669
|
+
typeName: 'kmReturnType',
|
|
28670
|
+
systemOrder: 'kmSystemOrder',
|
|
28671
|
+
systemOrderNo: 'kmSystemOrderNo',
|
|
28672
|
+
getOrderList: kmUtils.getOrderListSingleton,
|
|
28673
|
+
updateGoodsHandle: updateKmGoodsHandle,
|
|
28674
|
+
alwaysShowChooseErpGoodsBtn: true,
|
|
28675
|
+
orderTypeKey: 'orderType',
|
|
28676
|
+
oIdKey: 'billNo',
|
|
28677
|
+
outerOiIdKey: '',
|
|
28678
|
+
goodDetailsKey: 'subOrders',
|
|
28679
|
+
uniqueKey: 'id',
|
|
28680
|
+
isShowSelectTradeGoods: true,
|
|
28681
|
+
showErpGoodsBtn: false,
|
|
28682
|
+
eventNameMap: {
|
|
28683
|
+
// pubsub 事件
|
|
28684
|
+
exchangeCopyGood: 'kmExchangeCopyGood',
|
|
28685
|
+
exchangeBackCopyGood: 'kmExchangeBackCopyGood',
|
|
28686
|
+
returnGoodsSysorder: 'kmReturnGoodsSysorder',
|
|
28687
|
+
returnGoodsSysorderBack: 'kmReturnGoodsSysorderBack'
|
|
28688
|
+
}
|
|
28689
|
+
},
|
|
27834
28690
|
JY_REISSUE_GOODS: {
|
|
27835
28691
|
compType: '补发',
|
|
27836
28692
|
key: 'jyReissueGoods',
|
|
@@ -27845,10 +28701,26 @@ var typeMap$2 = {
|
|
|
27845
28701
|
outerOiIdKey: '',
|
|
27846
28702
|
goodDetailsKey: 'subOrderDetails',
|
|
27847
28703
|
isShowSelectTradeGoods: true
|
|
28704
|
+
},
|
|
28705
|
+
JKY_REISSUE_GOODS: {
|
|
28706
|
+
compType: '补发',
|
|
28707
|
+
key: 'jkyReissueGoods',
|
|
28708
|
+
typeName: 'jkyReissueType',
|
|
28709
|
+
systemOrder: 'jkySystemOrder',
|
|
28710
|
+
systemOrderNo: 'jkySystemOrderNo',
|
|
28711
|
+
getOrderList: jkyUtils.getJkyOrderListSingleton,
|
|
28712
|
+
updateGoodsHandle: updateJkyGoodsHandle,
|
|
28713
|
+
alwaysShowChooseErpGoodsBtn: true,
|
|
28714
|
+
orderTypeKey: 'orderType',
|
|
28715
|
+
oIdKey: 'tradeNo',
|
|
28716
|
+
outerOiIdKey: 'sourceSubtradeNo',
|
|
28717
|
+
goodDetailsKey: 'goodsDetail',
|
|
28718
|
+
isShowSelectTradeGoods: true,
|
|
28719
|
+
showModeBtn: true
|
|
27848
28720
|
}
|
|
27849
28721
|
};
|
|
27850
28722
|
var PublicReissue = function PublicReissue(props) {
|
|
27851
|
-
var _typeMap$type36, _typeMap$type42, _typeMap$type43, _typeMap$type44, _typeMap$type45, _value$typeMap$type$s8, _typeMap$type46, _typeMap$type47, _typeMap$type48, _typeMap$type49, _typeMap$type50, _typeMap$type51, _typeMap$type52, _value$typeMap$type$s9, _typeMap$
|
|
28723
|
+
var _typeMap$type18, _typeMap$type36, _typeMap$type42, _typeMap$type43, _typeMap$type44, _typeMap$type45, _value$typeMap$type$s8, _typeMap$type46, _typeMap$type47, _typeMap$type48, _typeMap$type49, _typeMap$type50, _typeMap$type51, _typeMap$type52, _typeMap$type53, _typeMap$type54, _value$typeMap$type$s9, _typeMap$type55, _typeMap$type56, _typeMap$type57, _typeMap$type58;
|
|
27852
28724
|
var value = props.value,
|
|
27853
28725
|
onChange = props.onChange,
|
|
27854
28726
|
_props$reasonList = props.reasonList,
|
|
@@ -27966,24 +28838,25 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
27966
28838
|
};
|
|
27967
28839
|
var sysItemIdMap = useMemo(function () {
|
|
27968
28840
|
var map = {};
|
|
27969
|
-
if (
|
|
27970
|
-
var _value$
|
|
27971
|
-
|
|
28841
|
+
if (['KM_REISSUE_GOODS', 'KM_RETURN_GOODS'].includes(type)) {
|
|
28842
|
+
var _value$goodsKey, _value$goodsKey$filte;
|
|
28843
|
+
var goodsKey = typeMap$2[type].key;
|
|
28844
|
+
value === null || value === void 0 ? void 0 : (_value$goodsKey = value[goodsKey]) === null || _value$goodsKey === void 0 ? void 0 : (_value$goodsKey$filte = _value$goodsKey.filter(function (item) {
|
|
27972
28845
|
return item === null || item === void 0 ? void 0 : item.sysItemId;
|
|
27973
|
-
})) === null || _value$
|
|
27974
|
-
var key = item.sysSkuId == '-1' ? item.sysItemId : "".concat(item.sysItemId, "-").concat(item.sysSkuId);
|
|
28846
|
+
})) === null || _value$goodsKey$filte === void 0 ? void 0 : _value$goodsKey$filte.forEach(function (item) {
|
|
28847
|
+
var key = !(item === null || item === void 0 ? void 0 : item.sysSkuId) || (item === null || item === void 0 ? void 0 : item.sysSkuId) == '-1' || (item === null || item === void 0 ? void 0 : item.sysSkuId) == (item === null || item === void 0 ? void 0 : item.sysItemId) ? item === null || item === void 0 ? void 0 : item.sysItemId : "".concat(item === null || item === void 0 ? void 0 : item.sysItemId, "-").concat(item === null || item === void 0 ? void 0 : item.sysSkuId);
|
|
27975
28848
|
map[key] = item;
|
|
27976
28849
|
});
|
|
27977
28850
|
}
|
|
27978
28851
|
return map;
|
|
27979
|
-
}, [value === null || value === void 0 ? void 0 : value.
|
|
28852
|
+
}, [value === null || value === void 0 ? void 0 : value[(_typeMap$type18 = typeMap$2[type]) === null || _typeMap$type18 === void 0 ? void 0 : _typeMap$type18.key]]);
|
|
27980
28853
|
// 用于跟踪已经处理过的 sysItemId,避免重复处理
|
|
27981
28854
|
var processedSysItemIdsRef = useRef(new Set());
|
|
27982
28855
|
useEffect(function () {
|
|
27983
28856
|
var fetchSupplier = /*#__PURE__*/function () {
|
|
27984
28857
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(sysItemIds) {
|
|
27985
|
-
var _currentValue$
|
|
27986
|
-
var needFetchIds, supplierMap, hasChange, currentValue,
|
|
28858
|
+
var _currentValue$goodsKe;
|
|
28859
|
+
var needFetchIds, supplierMap, hasChange, currentValue, goodsKey, kmGoods;
|
|
27987
28860
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
27988
28861
|
while (1) switch (_context2.prev = _context2.next) {
|
|
27989
28862
|
case 0:
|
|
@@ -28011,8 +28884,10 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28011
28884
|
// 检查是否有实际变化,避免不必要的更新
|
|
28012
28885
|
hasChange = false;
|
|
28013
28886
|
currentValue = valueRef.current;
|
|
28014
|
-
|
|
28015
|
-
|
|
28887
|
+
goodsKey = typeMap$2[type].key;
|
|
28888
|
+
kmGoods = currentValue === null || currentValue === void 0 ? void 0 : (_currentValue$goodsKe = currentValue[goodsKey]) === null || _currentValue$goodsKe === void 0 ? void 0 : _currentValue$goodsKe.map(function (item) {
|
|
28889
|
+
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);
|
|
28890
|
+
var supplierInfo = supplierMap.get(key);
|
|
28016
28891
|
var newSupplierCode = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierCode;
|
|
28017
28892
|
var newSupplierName = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierName;
|
|
28018
28893
|
// 如果供应商信息有变化,标记需要更新
|
|
@@ -28027,12 +28902,10 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28027
28902
|
}
|
|
28028
28903
|
return item;
|
|
28029
28904
|
}); // 只在有实际变化时才更新
|
|
28030
|
-
if (hasChange &&
|
|
28031
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, currentValue), {}, {
|
|
28032
|
-
kmReissueGoods: kmReissueGoods
|
|
28033
|
-
}));
|
|
28905
|
+
if (hasChange && kmGoods) {
|
|
28906
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, currentValue), {}, _defineProperty({}, goodsKey, kmGoods)));
|
|
28034
28907
|
}
|
|
28035
|
-
case
|
|
28908
|
+
case 13:
|
|
28036
28909
|
case "end":
|
|
28037
28910
|
return _context2.stop();
|
|
28038
28911
|
}
|
|
@@ -28048,20 +28921,20 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28048
28921
|
}
|
|
28049
28922
|
}, [sysItemIdMap]);
|
|
28050
28923
|
var getGoodDetails = function getGoodDetails(_ref5) {
|
|
28051
|
-
var _typeMap$
|
|
28924
|
+
var _typeMap$type19, _typeMap$type20, _value$typeMap$type$s6, _typeMap$type21, _typeMap$type22, _typeMap$type23, _typeMap$type24;
|
|
28052
28925
|
var mode = _ref5.mode,
|
|
28053
28926
|
sysOrderNo = _ref5.sysOrderNo,
|
|
28054
28927
|
_ref5$isAllOrders = _ref5.isAllOrders,
|
|
28055
28928
|
isAllOrders = _ref5$isAllOrders === void 0 ? false : _ref5$isAllOrders;
|
|
28056
|
-
var systemOrder = value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
28057
|
-
var systemOrderNo = sysOrderNo !== null && sysOrderNo !== void 0 ? sysOrderNo : value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
28929
|
+
var systemOrder = value === null || value === void 0 ? void 0 : value[(_typeMap$type19 = typeMap$2[type]) === null || _typeMap$type19 === void 0 ? void 0 : _typeMap$type19.systemOrder];
|
|
28930
|
+
var systemOrderNo = sysOrderNo !== null && sysOrderNo !== void 0 ? sysOrderNo : value === null || value === void 0 ? void 0 : value[(_typeMap$type20 = typeMap$2[type]) === null || _typeMap$type20 === void 0 ? void 0 : _typeMap$type20.systemOrderNo];
|
|
28058
28931
|
var order = systemOrderNo && ((systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orders) || []).find(function (order) {
|
|
28059
28932
|
return order[typeMap$2[type].oIdKey] === systemOrderNo;
|
|
28060
28933
|
});
|
|
28061
28934
|
var orderRest = undefined;
|
|
28062
28935
|
if (['JST_REISSUE_GOODS', 'JST_RETURN_GOODS'].includes(type)) {
|
|
28063
28936
|
orderRest = true;
|
|
28064
|
-
} else if (
|
|
28937
|
+
} else if (['KM_REISSUE_GOODS', 'KM_RETURN_GOODS'].includes(type)) {
|
|
28065
28938
|
orderRest = {
|
|
28066
28939
|
orderBackGoodsLevel: props.orderBackGoodsLevel,
|
|
28067
28940
|
canEdit: true
|
|
@@ -28070,14 +28943,17 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28070
28943
|
orderRest = {
|
|
28071
28944
|
canEdit: true
|
|
28072
28945
|
};
|
|
28946
|
+
} else if (['JKY_REISSUE_GOODS'].includes(type)) {
|
|
28947
|
+
orderRest = {
|
|
28948
|
+
canEdit: true
|
|
28949
|
+
};
|
|
28073
28950
|
}
|
|
28074
|
-
var orders = isAllOrders ? (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s6 = value[(_typeMap$
|
|
28951
|
+
var orders = isAllOrders ? (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s6 = value[(_typeMap$type21 = typeMap$2[type]) === null || _typeMap$type21 === void 0 ? void 0 : _typeMap$type21.systemOrder]) === null || _value$typeMap$type$s6 === void 0 ? void 0 : _value$typeMap$type$s6.orders) || [] : order ? [order] : [];
|
|
28075
28952
|
var hasGoodDetails = orders === null || orders === void 0 ? void 0 : orders.some(function (order) {
|
|
28076
28953
|
var _order$typeMap$type$g;
|
|
28077
28954
|
return order === null || order === void 0 ? void 0 : (_order$typeMap$type$g = order[typeMap$2[type].goodDetailsKey]) === null || _order$typeMap$type$g === void 0 ? void 0 : _order$typeMap$type$g.length;
|
|
28078
28955
|
});
|
|
28079
|
-
|
|
28080
|
-
var goodDetails = hasGoodDetails ? (!isAllOrders || ((_typeMap$type22 = typeMap$2[type]) === null || _typeMap$type22 === void 0 ? void 0 : _typeMap$type22.isSelectTradeGoodsMerge)) && typeMap$2[type].mergeIdenticalGoods ? typeMap$2[type].mergeIdenticalGoods((_typeMap$type23 = typeMap$2[type]) === null || _typeMap$type23 === void 0 ? void 0 : _typeMap$type23.updateGoodsHandle(orders, orderRest)) : (_typeMap$type24 = typeMap$2[type]) === null || _typeMap$type24 === void 0 ? void 0 : _typeMap$type24.updateGoodsHandle(orders, orderRest) : [];
|
|
28956
|
+
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, type)) : (_typeMap$type24 = typeMap$2[type]) === null || _typeMap$type24 === void 0 ? void 0 : _typeMap$type24.updateGoodsHandle(orders, orderRest, type) : [];
|
|
28081
28957
|
var orderNo = systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orderNo;
|
|
28082
28958
|
var list = mode && !isAllOrders ? goodDetails.filter(function (goodItem) {
|
|
28083
28959
|
return !orderNo || goodItem[typeMap$2[type].outerOiIdKey] === orderNo;
|
|
@@ -28204,28 +29080,29 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28204
29080
|
hasSelectedSystemOrder: showChangeBtn,
|
|
28205
29081
|
// showChangeBtn={showChangeBtn || typeMap?.[type]?.isShowSelectTradeGoods}
|
|
28206
29082
|
alwaysShowChooseErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type50 = typeMap$2[type]) === null || _typeMap$type50 === void 0 ? void 0 : _typeMap$type50.alwaysShowChooseErpGoodsBtn,
|
|
28207
|
-
|
|
29083
|
+
showErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type51 = typeMap$2[type]) === null || _typeMap$type51 === void 0 ? void 0 : _typeMap$type51.showErpGoodsBtn,
|
|
28208
29084
|
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
28209
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
29085
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type52 = typeMap$2[type]) === null || _typeMap$type52 === void 0 ? void 0 : _typeMap$type52.key)],
|
|
28210
29086
|
onChange: function onChange(val) {
|
|
28211
29087
|
return changeGoodHandle(val);
|
|
28212
29088
|
},
|
|
28213
29089
|
onModeChange: handleModeChange,
|
|
28214
|
-
showModeBtn:
|
|
29090
|
+
showModeBtn: !!(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type53 = typeMap$2[type]) === null || _typeMap$type53 === void 0 ? void 0 : _typeMap$type53.showModeBtn),
|
|
28215
29091
|
isStrict: isStrict,
|
|
28216
|
-
isShowSelectTradeGoods: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28217
|
-
systemOrders: value === null || value === void 0 ? void 0 : (_value$typeMap$type$s9 = value[(_typeMap$
|
|
28218
|
-
selectedSystemOrders: showChangeBtn ? [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
29092
|
+
isShowSelectTradeGoods: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type54 = typeMap$2[type]) === null || _typeMap$type54 === void 0 ? void 0 : _typeMap$type54.isShowSelectTradeGoods,
|
|
29093
|
+
systemOrders: value === null || value === void 0 ? void 0 : (_value$typeMap$type$s9 = value[(_typeMap$type55 = typeMap$2[type]) === null || _typeMap$type55 === void 0 ? void 0 : _typeMap$type55.systemOrder]) === null || _value$typeMap$type$s9 === void 0 ? void 0 : _value$typeMap$type$s9.orders,
|
|
29094
|
+
selectedSystemOrders: showChangeBtn ? [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type56 = typeMap$2[type]) === null || _typeMap$type56 === void 0 ? void 0 : _typeMap$type56.systemOrderNo)]] : [],
|
|
28219
29095
|
tradeGoods: {
|
|
28220
29096
|
originDataSource: getGoodDetails({
|
|
28221
29097
|
mode: isStrict,
|
|
28222
|
-
isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
29098
|
+
isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type57 = typeMap$2[type]) === null || _typeMap$type57 === void 0 ? void 0 : _typeMap$type57.isShowSelectTradeGoods
|
|
28223
29099
|
}),
|
|
28224
|
-
uniqueKey: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
29100
|
+
uniqueKey: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type58 = typeMap$2[type]) === null || _typeMap$type58 === void 0 ? void 0 : _typeMap$type58.uniqueKey) || 'uuid',
|
|
28225
29101
|
selectedGoodsChange: selectedGoodsChange
|
|
28226
29102
|
}
|
|
28227
29103
|
})));
|
|
28228
29104
|
};
|
|
29105
|
+
PublicReissue.displayName = 'PublicReissue';
|
|
28229
29106
|
|
|
28230
29107
|
var css_248z$g = ".goodsBox {\n display: flex;\n flex-wrap: wrap;\n}\n.goods-imgBox {\n position: relative;\n width: 80px;\n height: 80px;\n border: 1px solid #F2F3F5;\n margin: 0 10px 10px 0;\n text-align: center;\n}\n.icon-close {\n position: absolute;\n top: -5px;\n right: -5px;\n width: 13px;\n height: 13px;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 50%;\n z-index: 3;\n background-color: #fff;\n cursor: pointer;\n}\n.img {\n width: 100%;\n height: 100%;\n -o-object-fit: contain;\n object-fit: contain;\n}\n.goods-title {\n margin: 0 0 10px 5px;\n color: #4E5969;\n}\n.deg90 {\n transform: rotate(90deg);\n}\n.goodMain {\n display: flex;\n flex-wrap: wrap;\n height: 265px;\n overflow-y: auto;\n margin-bottom: 10px;\n}\n.goodMain .goodItem {\n width: 140px;\n height: 175px;\n padding: 11px 10px 0;\n text-align: center;\n display: inline-block;\n vertical-align: top;\n margin-bottom: 10px;\n margin-right: 30px;\n border: 1px solid #e6e6e6;\n cursor: pointer;\n transition: border 0.3s;\n}\n.goodMain .goodItem .goodImg {\n width: 120px;\n height: 120px;\n}\n.goodMain .goodItem .goodText {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.goodMain .goodItem.active {\n border: 1px solid #3089dc;\n}\n.right-context {\n display: flex;\n flex-direction: column;\n}\n";
|
|
28231
29108
|
styleInject(css_248z$g);
|