@kmkf-fe-packages/basic-components 2.2.44-beta.8 → 2.2.44-beta.81
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 +1163 -436
- package/dist/index.js +1162 -435
- 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/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.js
CHANGED
|
@@ -7773,9 +7773,10 @@ var Province = function Province(props) {
|
|
|
7773
7773
|
wdt: kmkfUtils.WdtAddressData.getInstance(),
|
|
7774
7774
|
gy: kmkfUtils.GyAddressData.getInstance(),
|
|
7775
7775
|
km: kmkfUtils.AddressData.getInstance(),
|
|
7776
|
-
jst: kmkfUtils.JstAddressData.getInstance()
|
|
7777
|
-
jky:
|
|
7776
|
+
jst: kmkfUtils.JstAddressData.getInstance()
|
|
7777
|
+
// jky: JkyAddressData.getInstance(),
|
|
7778
7778
|
};
|
|
7779
|
+
|
|
7779
7780
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Cascader, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
7780
7781
|
options: ((_mapping$type = mapping[type]) === null || _mapping$type === void 0 ? void 0 : _mapping$type.addressOptions) || [],
|
|
7781
7782
|
style: {
|
|
@@ -7950,7 +7951,8 @@ var IdentifyAddress = function IdentifyAddress(props) {
|
|
|
7950
7951
|
placeholder: "\u6536\u4EF6\u4EBA\u59D3\u540D",
|
|
7951
7952
|
allowClear: true,
|
|
7952
7953
|
onChange: function onChange(e) {
|
|
7953
|
-
|
|
7954
|
+
var _e$target$value;
|
|
7955
|
+
return changeHandle((_e$target$value = e.target.value) === null || _e$target$value === void 0 ? void 0 : _e$target$value.trim(), 'receiverName');
|
|
7954
7956
|
}
|
|
7955
7957
|
}), /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
7956
7958
|
value: value.receiverMobile,
|
|
@@ -7958,7 +7960,8 @@ var IdentifyAddress = function IdentifyAddress(props) {
|
|
|
7958
7960
|
allowClear: true,
|
|
7959
7961
|
placeholder: "\u6536\u4EF6\u4EBA\u7535\u8BDD",
|
|
7960
7962
|
onChange: function onChange(e) {
|
|
7961
|
-
|
|
7963
|
+
var _e$target$value2;
|
|
7964
|
+
return changeHandle((_e$target$value2 = e.target.value) === null || _e$target$value2 === void 0 ? void 0 : _e$target$value2.trim(), 'receiverMobile');
|
|
7962
7965
|
}
|
|
7963
7966
|
})), /*#__PURE__*/React__default['default'].createElement(antd.Space, {
|
|
7964
7967
|
wrap: true
|
|
@@ -7975,7 +7978,8 @@ var IdentifyAddress = function IdentifyAddress(props) {
|
|
|
7975
7978
|
placeholder: "\u8BE6\u7EC6\u5730\u5740",
|
|
7976
7979
|
allowClear: true,
|
|
7977
7980
|
onChange: function onChange(e) {
|
|
7978
|
-
|
|
7981
|
+
var _e$target$value3;
|
|
7982
|
+
return changeHandle((_e$target$value3 = e.target.value) === null || _e$target$value3 === void 0 ? void 0 : _e$target$value3.trim(), 'detail');
|
|
7979
7983
|
}
|
|
7980
7984
|
})));
|
|
7981
7985
|
};
|
|
@@ -8011,13 +8015,14 @@ function ApaasPosting(props) {
|
|
|
8011
8015
|
});
|
|
8012
8016
|
}
|
|
8013
8017
|
|
|
8014
|
-
var _excluded$b = ["value", "onChange", "platformType", "type"];
|
|
8018
|
+
var _excluded$b = ["value", "onChange", "platformType", "type", "placement"];
|
|
8015
8019
|
function ApaasLogistics(props) {
|
|
8016
8020
|
var value = props.value,
|
|
8017
8021
|
onChange = props.onChange,
|
|
8018
8022
|
platformType = props.platformType,
|
|
8019
8023
|
_props$type = props.type,
|
|
8020
8024
|
type = _props$type === void 0 ? 'select' : _props$type,
|
|
8025
|
+
placement = props.placement,
|
|
8021
8026
|
other = _objectWithoutProperties(props, _excluded$b);
|
|
8022
8027
|
var _useState = React.useState([]),
|
|
8023
8028
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -8055,12 +8060,13 @@ function ApaasLogistics(props) {
|
|
|
8055
8060
|
return type === 'input' ? /*#__PURE__*/React__default['default'].createElement(antd.Input, _objectSpread2(_objectSpread2({}, other), {}, {
|
|
8056
8061
|
value: value,
|
|
8057
8062
|
onChange: handleInputChange
|
|
8058
|
-
})) : /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(
|
|
8063
|
+
})) : /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2({
|
|
8059
8064
|
value: value,
|
|
8060
8065
|
onChange: onChange,
|
|
8061
8066
|
options: option,
|
|
8062
|
-
virtual: true
|
|
8063
|
-
|
|
8067
|
+
virtual: true,
|
|
8068
|
+
placement: placement
|
|
8069
|
+
}, other));
|
|
8064
8070
|
}
|
|
8065
8071
|
|
|
8066
8072
|
var _excluded$c = ["label", "name", "extra", "required", "rules", "initialValue"];
|
|
@@ -8144,6 +8150,11 @@ var systemOrderMap = {
|
|
|
8144
8150
|
ids: 'wdtSystemSelectIds',
|
|
8145
8151
|
order: 'wdtSystemShowOrder'
|
|
8146
8152
|
},
|
|
8153
|
+
JKY_SYSTEM_ORDER: {
|
|
8154
|
+
no: 'jkySystemOrderNo',
|
|
8155
|
+
ids: 'jkySystemSelectIds',
|
|
8156
|
+
order: 'jkySystemShowOrder'
|
|
8157
|
+
},
|
|
8147
8158
|
BS_E3_SYSTEM_ORDER: {
|
|
8148
8159
|
no: 'bsE3SystemOrderNo',
|
|
8149
8160
|
ids: 'bsE3SystemSelectIds',
|
|
@@ -8621,7 +8632,8 @@ var processSceneStatus = function processSceneStatus(getValue) {
|
|
|
8621
8632
|
WAREHOUSING_STATUS: 'inStockStatusItemList',
|
|
8622
8633
|
BS_E3_WAREHOUSING_STATUS: 'bsE3InStockStatusItemList',
|
|
8623
8634
|
MSG_STATUS: 'msgStatusValues',
|
|
8624
|
-
WDT_WAREHOUSING_STATUS: 'wdtInStockStatusItemList'
|
|
8635
|
+
WDT_WAREHOUSING_STATUS: 'wdtInStockStatusItemList',
|
|
8636
|
+
JKY_WAREHOUSING_STATUS: 'jkyInStockStatusItemList'
|
|
8625
8637
|
};
|
|
8626
8638
|
return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(STATUS_LIST_MAP[nex.workOrderComponentType])), []));
|
|
8627
8639
|
};
|
|
@@ -8689,6 +8701,21 @@ var processErpSendGood = function processErpSendGood(getValue) {
|
|
|
8689
8701
|
return _defineProperty({}, nex.uniqueKey, (itemList === null || itemList === void 0 ? void 0 : itemList.length) ? itemList : initValue);
|
|
8690
8702
|
};
|
|
8691
8703
|
};
|
|
8704
|
+
var processErpReturnWarehouse = function processErpReturnWarehouse(getValue) {
|
|
8705
|
+
return function (nex, config) {
|
|
8706
|
+
var kmReturnWarehouseMap = {
|
|
8707
|
+
KM_RETURN_WAREHOUSE: {
|
|
8708
|
+
list: 'kmReturnWarehouse'
|
|
8709
|
+
}
|
|
8710
|
+
};
|
|
8711
|
+
var initValue = [{
|
|
8712
|
+
kmReturnWarehouseName: '',
|
|
8713
|
+
kmReturnWarehouseId: ''
|
|
8714
|
+
}];
|
|
8715
|
+
var itemList = jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(kmReturnWarehouseMap[nex.workOrderComponentType].list)), initValue);
|
|
8716
|
+
return _defineProperty({}, nex.uniqueKey, (itemList === null || itemList === void 0 ? void 0 : itemList.length) ? itemList : initValue);
|
|
8717
|
+
};
|
|
8718
|
+
};
|
|
8692
8719
|
var processBsPosting = function processBsPosting(getValue) {
|
|
8693
8720
|
return function (nex, config) {
|
|
8694
8721
|
var bsAddress = [transTextToNumber(getValue("".concat(nex.uniqueKey, "_bsPostingProvince"))), transTextToNumber(getValue("".concat(nex.uniqueKey, "_bsPostingCity")))];
|
|
@@ -8715,6 +8742,33 @@ var processBsGoods = function processBsGoods(getValue) {
|
|
|
8715
8742
|
return _defineProperty({}, nex.uniqueKey, _values);
|
|
8716
8743
|
};
|
|
8717
8744
|
};
|
|
8745
|
+
var processJkyGoods = function processJkyGoods(templateColumns) {
|
|
8746
|
+
return function (getValue) {
|
|
8747
|
+
return function (nex, config) {
|
|
8748
|
+
var _values = {
|
|
8749
|
+
jkyGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_jkyGoods")), []),
|
|
8750
|
+
shopCode: getValue("".concat(nex.uniqueKey, "_shopCode"))
|
|
8751
|
+
};
|
|
8752
|
+
var selectIds = [];
|
|
8753
|
+
var orderNo = '';
|
|
8754
|
+
var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
|
|
8755
|
+
return col.workOrderComponentType === 'TRADE_ID_INPUT';
|
|
8756
|
+
});
|
|
8757
|
+
if (tradeId) {
|
|
8758
|
+
orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
|
|
8759
|
+
}
|
|
8760
|
+
var jkySystemOrder = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
|
|
8761
|
+
return col.workOrderComponentType === 'JKY_SYSTEM_ORDER';
|
|
8762
|
+
});
|
|
8763
|
+
if (jkySystemOrder) {
|
|
8764
|
+
selectIds = jsonParseSecurity(getValue("".concat(jkySystemOrder.uniqueKey, "_").concat(systemOrderMap[jkySystemOrder.workOrderComponentType].ids)), []);
|
|
8765
|
+
}
|
|
8766
|
+
_values.selectIds = selectIds;
|
|
8767
|
+
_values.orderNo = orderNo;
|
|
8768
|
+
return _defineProperty({}, nex.uniqueKey, _values);
|
|
8769
|
+
};
|
|
8770
|
+
};
|
|
8771
|
+
};
|
|
8718
8772
|
var processWdtGoods = function processWdtGoods(templateColumns) {
|
|
8719
8773
|
return function (getValue) {
|
|
8720
8774
|
return function (nex, config) {
|
|
@@ -8961,6 +9015,14 @@ var processWdtExchangeGoods = function processWdtExchangeGoods(getValue) {
|
|
|
8961
9015
|
});
|
|
8962
9016
|
};
|
|
8963
9017
|
};
|
|
9018
|
+
var processKmExchangeGoods = function processKmExchangeGoods(getValue) {
|
|
9019
|
+
return function (nex, config) {
|
|
9020
|
+
return _defineProperty({}, nex.uniqueKey, {
|
|
9021
|
+
kmExchangeGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_kmExchangeGoods")), []),
|
|
9022
|
+
shopCode: getValue("".concat(nex.uniqueKey, "_shopCode"))
|
|
9023
|
+
});
|
|
9024
|
+
};
|
|
9025
|
+
};
|
|
8964
9026
|
var processJstExchangeGoods = function processJstExchangeGoods(getValue) {
|
|
8965
9027
|
return function (nex, config) {
|
|
8966
9028
|
return _defineProperty({}, nex.uniqueKey, {
|
|
@@ -9006,6 +9068,11 @@ var processErpSystemOrder = function processErpSystemOrder(getValue) {
|
|
|
9006
9068
|
ids: 'wdtSystemSelectIds',
|
|
9007
9069
|
order: 'wdtSystemShowOrder'
|
|
9008
9070
|
},
|
|
9071
|
+
JKY_SYSTEM_ORDER: {
|
|
9072
|
+
no: 'jkySystemOrderNo',
|
|
9073
|
+
ids: 'jkySystemSelectIds',
|
|
9074
|
+
order: 'jkySystemShowOrder'
|
|
9075
|
+
},
|
|
9009
9076
|
BS_E3_SYSTEM_ORDER: {
|
|
9010
9077
|
no: 'bsE3SystemOrderNo',
|
|
9011
9078
|
ids: 'bsE3SystemSelectIds',
|
|
@@ -9172,6 +9239,28 @@ var processKmReissueGoods = function processKmReissueGoods(templateColumns) {
|
|
|
9172
9239
|
};
|
|
9173
9240
|
};
|
|
9174
9241
|
};
|
|
9242
|
+
var processKmReturnGoods = function processKmReturnGoods(templateColumns) {
|
|
9243
|
+
return function (getValue) {
|
|
9244
|
+
return function (nex, config) {
|
|
9245
|
+
var orderNo = '';
|
|
9246
|
+
var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
|
|
9247
|
+
return col.workOrderComponentType === 'TRADE_ID_INPUT';
|
|
9248
|
+
});
|
|
9249
|
+
if (tradeId) {
|
|
9250
|
+
orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
|
|
9251
|
+
}
|
|
9252
|
+
return _defineProperty({}, nex.uniqueKey, {
|
|
9253
|
+
kmSystemOrder: {
|
|
9254
|
+
orderNo: orderNo
|
|
9255
|
+
},
|
|
9256
|
+
kmReturnType: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_kmReturnType")), !kmkfUtils.isNull(config === null || config === void 0 ? void 0 : config.initReason) ? [config.initReason] : ['1']),
|
|
9257
|
+
kmReturnGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_kmReturnGoods")), []),
|
|
9258
|
+
shopCode: getValue("".concat(nex.uniqueKey, "_shopCode")),
|
|
9259
|
+
kmSystemOrderNo: getValue("".concat(nex.uniqueKey, "_kmSystemOrderNo"))
|
|
9260
|
+
});
|
|
9261
|
+
};
|
|
9262
|
+
};
|
|
9263
|
+
};
|
|
9175
9264
|
var processGyReissueGoods = function processGyReissueGoods(templateColumns) {
|
|
9176
9265
|
return function (getValue) {
|
|
9177
9266
|
return function (nex, config) {
|
|
@@ -9265,14 +9354,14 @@ var processJstReturnGoods = function processJstReturnGoods(templateColumns) {
|
|
|
9265
9354
|
};
|
|
9266
9355
|
var processLabel = function processLabel(getValue) {
|
|
9267
9356
|
return function (nex, config) {
|
|
9268
|
-
var
|
|
9269
|
-
return
|
|
9357
|
+
var _ref77;
|
|
9358
|
+
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;
|
|
9270
9359
|
};
|
|
9271
9360
|
};
|
|
9272
9361
|
var processMemberLevel = function processMemberLevel(getValue) {
|
|
9273
9362
|
return function (nex, config) {
|
|
9274
|
-
var
|
|
9275
|
-
return
|
|
9363
|
+
var _ref78;
|
|
9364
|
+
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;
|
|
9276
9365
|
};
|
|
9277
9366
|
};
|
|
9278
9367
|
var processAfterSalesOrderId = function processAfterSalesOrderId(getValue) {
|
|
@@ -9376,6 +9465,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
|
|
|
9376
9465
|
BS_E3_WAREHOUSING_STATUS: processSceneStatus,
|
|
9377
9466
|
MSG_STATUS: processSceneStatus,
|
|
9378
9467
|
WDT_WAREHOUSING_STATUS: processSceneStatus,
|
|
9468
|
+
JKY_WAREHOUSING_STATUS: processSceneStatus,
|
|
9379
9469
|
BS_LOGISTICS: processErpLogistics,
|
|
9380
9470
|
WLN_LOGISTICS: processErpLogistics,
|
|
9381
9471
|
WDT_LOGISTICS: processErpLogistics,
|
|
@@ -9388,19 +9478,23 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
|
|
|
9388
9478
|
BS_E3_SEND_GOOD: processErpSendGood,
|
|
9389
9479
|
KM_SEND_GOOD: processErpSendGood,
|
|
9390
9480
|
GY_SEND_GOOD: processErpSendGood,
|
|
9481
|
+
KM_RETURN_WAREHOUSE: processErpReturnWarehouse,
|
|
9391
9482
|
BS_POSTING: processBsPosting,
|
|
9392
9483
|
BS_GOODS: processBsGoods,
|
|
9393
9484
|
WDT_GOODS: processWdtGoods(templateColumns),
|
|
9485
|
+
JKY_GOODS: processJkyGoods(templateColumns),
|
|
9394
9486
|
WDT_AFTERSALE_GOODS: processWdtAftersaleGoods(templateColumns),
|
|
9395
9487
|
JST_AFTERSALE_GOODS: processJstAftersaleGoods(templateColumns),
|
|
9396
9488
|
BS_E3_GOODS: processBsE3Goods(templateColumns),
|
|
9397
9489
|
GY_GOODS: processGyGoods(templateColumns),
|
|
9398
9490
|
KM_GOODS: processKmGoods(templateColumns),
|
|
9399
9491
|
KM_REISSUE_GOODS: processKmReissueGoods(templateColumns),
|
|
9492
|
+
KM_RETURN_GOODS: processKmReturnGoods(templateColumns),
|
|
9400
9493
|
JST_GOODS: processJstGoods(templateColumns),
|
|
9401
9494
|
BS_REISSUE_GOODS: processBsReissueGoods,
|
|
9402
9495
|
BS_EXCHANGE_GOODS: processBsExchangeGoods,
|
|
9403
9496
|
WDT_EXCHANGE_GOODS: processWdtExchangeGoods,
|
|
9497
|
+
KM_EXCHANGE_GOODS: processKmExchangeGoods,
|
|
9404
9498
|
JST_EXCHANGE_GOODS: processJstExchangeGoods,
|
|
9405
9499
|
BS_RETURN_GOODS: processBsReturnGoods,
|
|
9406
9500
|
WDT_RETURN_GOODS: processWdtReturnGoods(),
|
|
@@ -9409,6 +9503,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
|
|
|
9409
9503
|
KM_SYSTEM_ORDER: processErpSystemOrder,
|
|
9410
9504
|
WLN_SYSTEM_ORDER: processErpSystemOrder,
|
|
9411
9505
|
WDT_SYSTEM_ORDER: processErpSystemOrder,
|
|
9506
|
+
JKY_SYSTEM_ORDER: processErpSystemOrder,
|
|
9412
9507
|
WDT_RETURN_BILL_NO: processErpSystemOrder,
|
|
9413
9508
|
BS_E3_SYSTEM_ORDER: processErpSystemOrder,
|
|
9414
9509
|
JST_SYSTEM_ORDER: processErpSystemOrder,
|
|
@@ -10005,12 +10100,21 @@ var EditSplitRenderMap = {
|
|
|
10005
10100
|
updateHandle = _ref17.updateHandle,
|
|
10006
10101
|
disabled = _ref17.disabled;
|
|
10007
10102
|
return /*#__PURE__*/React__default['default'].createElement(ApaasLogistics, {
|
|
10103
|
+
getPopupContainer: function getPopupContainer() {
|
|
10104
|
+
return document.getElementById('subform');
|
|
10105
|
+
},
|
|
10008
10106
|
value: val,
|
|
10009
10107
|
allowClear: true,
|
|
10108
|
+
showSearch: true,
|
|
10010
10109
|
onChange: function onChange(e) {
|
|
10011
10110
|
return updateHandle(e, index, t.key);
|
|
10012
10111
|
},
|
|
10013
|
-
disabled: t.isEdit || disabled
|
|
10112
|
+
disabled: t.isEdit || disabled,
|
|
10113
|
+
filterOption: function filterOption(input, option) {
|
|
10114
|
+
return option.label.includes(input);
|
|
10115
|
+
},
|
|
10116
|
+
placement: "topLeft",
|
|
10117
|
+
listHeight: 120
|
|
10014
10118
|
});
|
|
10015
10119
|
},
|
|
10016
10120
|
//退货物流-物流公司
|
|
@@ -10021,12 +10125,21 @@ var EditSplitRenderMap = {
|
|
|
10021
10125
|
updateHandle = _ref18.updateHandle,
|
|
10022
10126
|
disabled = _ref18.disabled;
|
|
10023
10127
|
return /*#__PURE__*/React__default['default'].createElement(ApaasLogistics, {
|
|
10128
|
+
getPopupContainer: function getPopupContainer() {
|
|
10129
|
+
return document.getElementById('subform');
|
|
10130
|
+
},
|
|
10024
10131
|
value: val,
|
|
10025
10132
|
allowClear: true,
|
|
10133
|
+
showSearch: true,
|
|
10026
10134
|
onChange: function onChange(e) {
|
|
10027
10135
|
return updateHandle(e, index, t.key);
|
|
10028
10136
|
},
|
|
10029
|
-
disabled: t.isEdit || disabled
|
|
10137
|
+
disabled: t.isEdit || disabled,
|
|
10138
|
+
filterOption: function filterOption(input, option) {
|
|
10139
|
+
return option.label.includes(input);
|
|
10140
|
+
},
|
|
10141
|
+
placement: "topLeft",
|
|
10142
|
+
listHeight: 120
|
|
10030
10143
|
});
|
|
10031
10144
|
}
|
|
10032
10145
|
};
|
|
@@ -10495,7 +10608,11 @@ var SubForm = function SubForm(props) {
|
|
|
10495
10608
|
});
|
|
10496
10609
|
}, [inputValue]);
|
|
10497
10610
|
var handleOpenChange = function handleOpenChange(newOpen) {
|
|
10498
|
-
|
|
10611
|
+
if (!['jbCFrJV4m7_trajectoryCompany', '0qFEv9GEyd_returnLogisticsCompany'].includes(selectKey)) {
|
|
10612
|
+
setOpen(newOpen);
|
|
10613
|
+
} else {
|
|
10614
|
+
setOpen(false);
|
|
10615
|
+
}
|
|
10499
10616
|
};
|
|
10500
10617
|
var onChangeInput = React.useCallback(lodash.debounce(function (val) {
|
|
10501
10618
|
setInputValue(val);
|
|
@@ -10583,6 +10700,9 @@ var SubForm = function SubForm(props) {
|
|
|
10583
10700
|
visible: open,
|
|
10584
10701
|
onVisibleChange: handleOpenChange
|
|
10585
10702
|
}, ['0qFEv9GEyd_returnLogisticsCompany', 'jbCFrJV4m7_trajectoryCompany'].includes(selectKey) ? /*#__PURE__*/React__default['default'].createElement(ApaasLogistics, {
|
|
10703
|
+
getPopupContainer: function getPopupContainer() {
|
|
10704
|
+
return document.getElementById('subform');
|
|
10705
|
+
},
|
|
10586
10706
|
value: undefined,
|
|
10587
10707
|
onChange: function onChange(val) {
|
|
10588
10708
|
onChangeInput(val);
|
|
@@ -10595,7 +10715,9 @@ var SubForm = function SubForm(props) {
|
|
|
10595
10715
|
},
|
|
10596
10716
|
filterOption: function filterOption(input, option) {
|
|
10597
10717
|
return option.label.includes(input);
|
|
10598
|
-
}
|
|
10718
|
+
},
|
|
10719
|
+
placement: "topLeft",
|
|
10720
|
+
listHeight: 120
|
|
10599
10721
|
}) : /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
10600
10722
|
placeholder: "\u8F93\u5165\u5173\u952E\u8BCD\u67E5\u8BE2",
|
|
10601
10723
|
allowClear: true,
|
|
@@ -10672,7 +10794,8 @@ var BuyerNick = function BuyerNick(props) {
|
|
|
10672
10794
|
disabled = props.disabled,
|
|
10673
10795
|
_onBlur = props.onBlur;
|
|
10674
10796
|
var changeValue = function changeValue(e, type) {
|
|
10675
|
-
|
|
10797
|
+
var _e$target$value;
|
|
10798
|
+
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())));
|
|
10676
10799
|
};
|
|
10677
10800
|
// useEffect(() => {
|
|
10678
10801
|
// //淘宝平台和抖音平台需要展示买家id
|
|
@@ -10697,7 +10820,8 @@ var BuyerNick = function BuyerNick(props) {
|
|
|
10697
10820
|
changeValue(e, 'buyerNick');
|
|
10698
10821
|
},
|
|
10699
10822
|
onBlur: function onBlur(e) {
|
|
10700
|
-
|
|
10823
|
+
var _e$target$value2;
|
|
10824
|
+
_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');
|
|
10701
10825
|
}
|
|
10702
10826
|
});
|
|
10703
10827
|
};
|
|
@@ -10819,8 +10943,9 @@ var RemarkInput = function RemarkInput(props) {
|
|
|
10819
10943
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
10820
10944
|
};
|
|
10821
10945
|
var changeRemark = function changeRemark(e) {
|
|
10946
|
+
var _e$target$value;
|
|
10822
10947
|
var newValue = _objectSpread2(_objectSpread2({}, value), {}, {
|
|
10823
|
-
remark: e.target.value
|
|
10948
|
+
remark: (_e$target$value = e.target.value) === null || _e$target$value === void 0 ? void 0 : _e$target$value.trim()
|
|
10824
10949
|
});
|
|
10825
10950
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
10826
10951
|
};
|
|
@@ -10863,7 +10988,7 @@ var Logistics = function Logistics(props) {
|
|
|
10863
10988
|
var handleInputChange = function handleInputChange(e) {
|
|
10864
10989
|
var val = e.target.value;
|
|
10865
10990
|
typeof onChange === 'function' && onChange(_objectSpread2(_objectSpread2({}, value), {}, {
|
|
10866
|
-
order: val
|
|
10991
|
+
order: val === null || val === void 0 ? void 0 : val.trim()
|
|
10867
10992
|
}));
|
|
10868
10993
|
};
|
|
10869
10994
|
var handelSelectChange = function handelSelectChange(val) {
|
|
@@ -10927,7 +11052,8 @@ var AliPay = function AliPay(props) {
|
|
|
10927
11052
|
disabled = props.disabled,
|
|
10928
11053
|
_onBlur = props.onBlur;
|
|
10929
11054
|
var changeValue = function changeValue(e, type) {
|
|
10930
|
-
|
|
11055
|
+
var _e$target$value;
|
|
11056
|
+
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())));
|
|
10931
11057
|
};
|
|
10932
11058
|
return /*#__PURE__*/React__default['default'].createElement("div", null, !isSingle ? /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
10933
11059
|
disabled: disabled,
|
|
@@ -12114,7 +12240,7 @@ var ChooseBaby = function ChooseBaby(props) {
|
|
|
12114
12240
|
}));
|
|
12115
12241
|
};
|
|
12116
12242
|
|
|
12117
|
-
var css_248z$7 = "#goods-wrap.goodsBox.single-row {\n max-height: 800px;\n overflow-y: auto;\n padding-top: 4px;\n flex-basis: 100%;\n}\n#goods-wrap.goodsBox.single-row .good-item.rich-item.with-pic,\n#goods-wrap.goodsBox.single-row .good-item.rich-item.with-attr,\n#goods-wrap.goodsBox.single-row .good-item.rich-item.with-attr.with-pic {\n flex-basis: 100%;\n}\n#goods-wrap.goodsBox.single-row .good-item.rich-item .good-attrs {\n flex-grow: 1;\n flex-shrink: 1;\n}\n#goods-wrap.goodsBox.single-row .good-item.rich-item .good-attrs .good-item-attr {\n flex-grow: 1;\n flex-shrink: 1;\n max-width: 80px;\n width: 20px;\n flex-basis: 20px;\n}\n#goods-wrap.goodsBox.single-row .good-item.rich-item .good-attrs .ant-input {\n flex-shrink: 1;\n flex-grow: 1;\n width: 20px;\n flex-basis: 40px;\n}\n#goods-wrap .good-item.rich-item {\n position: relative;\n border: 1px solid #ccc;\n display: flex;\n flex-basis: 80px;\n flex-wrap: nowrap;\n margin: 0 10px 10px 0;\n padding: 4px;\n}\n#goods-wrap .good-item.rich-item.with-pic {\n flex-basis: 90px;\n}\n#goods-wrap .good-item.rich-item.with-attr {\n flex-basis: 150px;\n}\n#goods-wrap .good-item.rich-item.with-attr.with-pic {\n flex-basis: 238px;\n}\n#goods-wrap .good-item.rich-item.with-attr.with-pic .goods-imgBox {\n margin-right: 8px;\n}\n#goods-wrap .good-item.rich-item .good-item-attr {\n margin-right: 6px;\n width: 52px;\n flex-basis: 52px;\n}\n#goods-wrap .good-item.rich-item .good-img {\n position: relative;\n width: 80px;\n height: 80px;\n border-radius: 4px;\n border: 1px solid #f2f3f5;\n margin: 0 10px 0 0;\n text-align: center;\n background-color: #f2f3f5;\n}\n#goods-wrap .good-item.rich-item .good-attrs {\n display: flex;\n flex-direction: column;\n font-size: 12px;\n}\n#goods-wrap .good-item.rich-item .good-attrs .ant-input {\n font-size: 12px;\n width: 80px;\n height: 20px;\n padding-left: 5px;\n padding-right: 5px;\n}\n#goods-wrap .good-item.rich-item .good-attrs .ant-input.id-textarea {\n width: 80px;\n resize: none;\n height: 45px;\n}\n#goods-wrap .good-item.rich-item .good-attrs div {\n display: flex;\n}\n#goods-wrap .good-item.rich-item .good-attrs div:not(:first-child) {\n margin-top: 4px;\n}\n";
|
|
12243
|
+
var css_248z$7 = "#goods-wrap.goodsBox.single-row {\n max-height: 800px;\n overflow-y: auto;\n padding-top: 4px;\n flex-basis: 100%;\n}\n#goods-wrap.goodsBox.single-row .good-item.rich-item.with-pic,\n#goods-wrap.goodsBox.single-row .good-item.rich-item.with-attr,\n#goods-wrap.goodsBox.single-row .good-item.rich-item.with-attr.with-pic {\n flex-basis: 100%;\n}\n#goods-wrap.goodsBox.single-row .good-item.rich-item .good-attrs {\n flex-grow: 1;\n flex-shrink: 1;\n}\n#goods-wrap.goodsBox.single-row .good-item.rich-item .good-attrs .good-item-attr {\n flex-grow: 1;\n flex-shrink: 1;\n max-width: 80px;\n width: 20px;\n flex-basis: 20px;\n}\n#goods-wrap.goodsBox.single-row .good-item.rich-item .good-attrs .ant-input {\n flex-shrink: 1;\n flex-grow: 1;\n width: 20px;\n flex-basis: 40px;\n}\n#goods-wrap .good-item.rich-item {\n position: relative;\n border: 1px solid #ccc;\n display: flex;\n flex-basis: 80px;\n flex-wrap: nowrap;\n margin: 0 10px 10px 0;\n padding: 4px;\n}\n#goods-wrap .good-item.rich-item.with-pic {\n flex-basis: 90px;\n}\n#goods-wrap .good-item.rich-item.with-attr {\n flex-basis: 150px;\n}\n#goods-wrap .good-item.rich-item.with-attr.with-pic {\n flex-basis: 238px;\n}\n#goods-wrap .good-item.rich-item.with-attr.with-pic .goods-imgBox {\n margin-right: 8px;\n}\n#goods-wrap .good-item.rich-item .good-item-attr {\n margin-right: 6px;\n width: 52px;\n flex-basis: 52px;\n}\n#goods-wrap .good-item.rich-item .good-img {\n position: relative;\n width: 80px;\n height: 80px;\n border-radius: 4px;\n border: 1px solid #f2f3f5;\n margin: 0 10px 0 0;\n text-align: center;\n background-color: #f2f3f5;\n}\n#goods-wrap .good-item.rich-item .good-attrs {\n display: flex;\n flex-direction: column;\n font-size: 12px;\n}\n#goods-wrap .good-item.rich-item .good-attrs .ant-input {\n font-size: 12px;\n width: 80px;\n height: 20px;\n padding-left: 5px;\n padding-right: 5px;\n}\n#goods-wrap .good-item.rich-item .good-attrs .ant-input.id-textarea {\n width: 80px;\n resize: none;\n height: 45px;\n}\n#goods-wrap .good-item.rich-item .good-attrs div {\n display: flex;\n}\n#goods-wrap .good-item.rich-item .good-attrs div:not(:first-child) {\n margin-top: 4px;\n}\n.goods-uploaded-state {\n display: flex;\n}\n.goods-uploaded-state .clear-all {\n float: right;\n color: #1966ff;\n cursor: pointer;\n margin-left: 12px;\n}\n";
|
|
12118
12244
|
styleInject(css_248z$7);
|
|
12119
12245
|
|
|
12120
12246
|
var GoodItem = function GoodItem(props) {
|
|
@@ -12443,13 +12569,22 @@ var GoodItem = function GoodItem(props) {
|
|
|
12443
12569
|
var hasAttr = React.useMemo(function () {
|
|
12444
12570
|
return hasPic ? headerList.length > 1 : headerList.length > 0;
|
|
12445
12571
|
}, [hasPic, headerList]);
|
|
12572
|
+
var clearAll = function clearAll() {
|
|
12573
|
+
onChange === null || onChange === void 0 ? void 0 : onChange({
|
|
12574
|
+
shopId: shopId,
|
|
12575
|
+
imgList: []
|
|
12576
|
+
});
|
|
12577
|
+
};
|
|
12446
12578
|
return /*#__PURE__*/React__default['default'].createElement("div", null, imgList.length === 0 ? /*#__PURE__*/React__default['default'].createElement("p", {
|
|
12447
12579
|
className: "goods-title"
|
|
12448
12580
|
}, "\u6700\u591A\u6DFB\u52A0", maxLength, "\u4E2A\u5B9D\u8D1D") : /*#__PURE__*/React__default['default'].createElement("p", {
|
|
12449
12581
|
className: "goods-uploaded-state"
|
|
12450
12582
|
}, "\u5DF2\u6DFB\u52A0", /*#__PURE__*/React__default['default'].createElement("span", {
|
|
12451
12583
|
className: "goods-uploaded-count"
|
|
12452
|
-
}, imgList.length), "/", maxLength,
|
|
12584
|
+
}, imgList.length), "/", maxLength, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
12585
|
+
className: 'clear-all',
|
|
12586
|
+
onClick: clearAll
|
|
12587
|
+
}, "\u6E05\u7A7A")), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
12453
12588
|
ref: boxRef,
|
|
12454
12589
|
id: "goods-wrap",
|
|
12455
12590
|
className: "goodsBox goodsBox-item-horizontal--box".concat(isSingleRow ? ' single-row' : '')
|
|
@@ -12589,7 +12724,8 @@ var Invoice = function Invoice(props) {
|
|
|
12589
12724
|
}),
|
|
12590
12725
|
current = _useRef.current;
|
|
12591
12726
|
var handleInputChange = function handleInputChange(e) {
|
|
12592
|
-
var
|
|
12727
|
+
var _e$target$value;
|
|
12728
|
+
var ordinaryTaitou = (_e$target$value = e.target.value) === null || _e$target$value === void 0 ? void 0 : _e$target$value.trim();
|
|
12593
12729
|
setVisible(false);
|
|
12594
12730
|
setList([]);
|
|
12595
12731
|
var newValue = _objectSpread2(_objectSpread2({}, value), {}, {
|
|
@@ -12612,8 +12748,9 @@ var Invoice = function Invoice(props) {
|
|
|
12612
12748
|
handleChange(ordinaryTaitou);
|
|
12613
12749
|
};
|
|
12614
12750
|
var handleValueClick = function handleValueClick(e) {
|
|
12751
|
+
var _e$target$value2;
|
|
12615
12752
|
var newValue = _objectSpread2(_objectSpread2({}, value), {}, {
|
|
12616
|
-
ordinarySerial: e.target.value
|
|
12753
|
+
ordinarySerial: (_e$target$value2 = e.target.value) === null || _e$target$value2 === void 0 ? void 0 : _e$target$value2.trim()
|
|
12617
12754
|
});
|
|
12618
12755
|
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2({}, newValue));
|
|
12619
12756
|
};
|
|
@@ -12924,7 +13061,8 @@ var Payment = function Payment(props) {
|
|
|
12924
13061
|
// }
|
|
12925
13062
|
// }, [shopId, shopList]);
|
|
12926
13063
|
var changeValue = function changeValue(e, type) {
|
|
12927
|
-
var
|
|
13064
|
+
var _e$target$value;
|
|
13065
|
+
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()));
|
|
12928
13066
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
12929
13067
|
type === 'enterprisePaymentTid' && (onSearch === null || onSearch === void 0 ? void 0 : onSearch(e));
|
|
12930
13068
|
};
|
|
@@ -12985,7 +13123,8 @@ var Payment = function Payment(props) {
|
|
|
12985
13123
|
return changeValue(e, item.name);
|
|
12986
13124
|
},
|
|
12987
13125
|
onBlur: function onBlur(e) {
|
|
12988
|
-
|
|
13126
|
+
var _e$target$value2;
|
|
13127
|
+
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);
|
|
12989
13128
|
}
|
|
12990
13129
|
}), (replaceValueCh === null || replaceValueCh === void 0 ? void 0 : replaceValueCh[item.name]) && /*#__PURE__*/React__default['default'].createElement("p", {
|
|
12991
13130
|
style: {
|
|
@@ -13278,7 +13417,8 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
13278
13417
|
disabled: disabled || isEdit,
|
|
13279
13418
|
placeholder: "\u7269\u6D41\u5355\u53F7",
|
|
13280
13419
|
onChange: function onChange(e) {
|
|
13281
|
-
|
|
13420
|
+
var _e$target$value;
|
|
13421
|
+
return changeHandle((_e$target$value = e.target.value) === null || _e$target$value === void 0 ? void 0 : _e$target$value.trim(), 'interceptCode');
|
|
13282
13422
|
},
|
|
13283
13423
|
value: value === null || value === void 0 ? void 0 : value.interceptCode
|
|
13284
13424
|
}))), /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(Item, {
|
|
@@ -13353,7 +13493,8 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
13353
13493
|
disabled: disabled || isEdit,
|
|
13354
13494
|
placeholder: senderMobileLabel,
|
|
13355
13495
|
onChange: function onChange(e) {
|
|
13356
|
-
|
|
13496
|
+
var _e$target$value2;
|
|
13497
|
+
return changeHandle((_e$target$value2 = e.target.value) === null || _e$target$value2 === void 0 ? void 0 : _e$target$value2.trim(), 'interceptSenderMobile');
|
|
13357
13498
|
}
|
|
13358
13499
|
})), /*#__PURE__*/React__default['default'].createElement(Item, {
|
|
13359
13500
|
label: '退回地址',
|
|
@@ -13412,7 +13553,8 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
13412
13553
|
},
|
|
13413
13554
|
placeholder: "\u5176\u4ED6",
|
|
13414
13555
|
onChange: function onChange(e) {
|
|
13415
|
-
|
|
13556
|
+
var _e$target$value3;
|
|
13557
|
+
return changeHandle((_e$target$value3 = e.target.value) === null || _e$target$value3 === void 0 ? void 0 : _e$target$value3.trim(), 'interceptLogisticsStatusOther');
|
|
13416
13558
|
}
|
|
13417
13559
|
})), /*#__PURE__*/React__default['default'].createElement(Item, {
|
|
13418
13560
|
label: '拦截状态',
|
|
@@ -13466,7 +13608,8 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
13466
13608
|
disabled: true,
|
|
13467
13609
|
placeholder: "\u63A5\u53E3\u72B6\u6001\u539F\u56E0",
|
|
13468
13610
|
onChange: function onChange(e) {
|
|
13469
|
-
|
|
13611
|
+
var _e$target$value4;
|
|
13612
|
+
return changeHandle((_e$target$value4 = e.target.value) === null || _e$target$value4 === void 0 ? void 0 : _e$target$value4.trim(), 'interceptLogisticsApiStatusReason');
|
|
13470
13613
|
}
|
|
13471
13614
|
})));
|
|
13472
13615
|
};
|
|
@@ -13542,7 +13685,7 @@ var LogisticsTrajectory = function LogisticsTrajectory(props) {
|
|
|
13542
13685
|
trajectoryApiStatus = _props$trajectoryApiS === void 0 ? false : _props$trajectoryApiS;
|
|
13543
13686
|
var handleInputChange = function handleInputChange(e, type) {
|
|
13544
13687
|
var val = e.target.value;
|
|
13545
|
-
typeof onChange === 'function' && onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, type, val)));
|
|
13688
|
+
typeof onChange === 'function' && onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, type, val === null || val === void 0 ? void 0 : val.trim())));
|
|
13546
13689
|
};
|
|
13547
13690
|
var handelSelectChange = function handelSelectChange(val) {
|
|
13548
13691
|
typeof onChange === 'function' && onChange(_objectSpread2(_objectSpread2({}, value), {}, {
|
|
@@ -13942,10 +14085,14 @@ var typeInitValueMap = {
|
|
|
13942
14085
|
}],
|
|
13943
14086
|
4: [{
|
|
13944
14087
|
deliveryNo: null
|
|
14088
|
+
}],
|
|
14089
|
+
5: [{
|
|
14090
|
+
returnWarehouseName: null,
|
|
14091
|
+
returnWarehouseId: null
|
|
13945
14092
|
}]
|
|
13946
14093
|
};
|
|
13947
14094
|
var jstGoods = function jstGoods(props) {
|
|
13948
|
-
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;
|
|
14095
|
+
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;
|
|
13949
14096
|
var _props$value = props.value,
|
|
13950
14097
|
value = _props$value === void 0 ? [] : _props$value,
|
|
13951
14098
|
onChange = props.onChange,
|
|
@@ -14018,13 +14165,28 @@ var jstGoods = function jstGoods(props) {
|
|
|
14018
14165
|
newList[changeIndex] = changeOrderInfo;
|
|
14019
14166
|
onChange === null || onChange === void 0 ? void 0 : onChange(newList);
|
|
14020
14167
|
};
|
|
14168
|
+
var handleSelectedReturn = function handleSelectedReturn(val, type, option, onlyShowFieldSelect) {
|
|
14169
|
+
var changeOrderInfo = _objectSpread2({}, value[changeIndex]);
|
|
14170
|
+
changeOrderInfo[type] = val;
|
|
14171
|
+
if (!onlyShowFieldSelect) {
|
|
14172
|
+
changeOrderInfo['returnWarehouseId'] = option.value;
|
|
14173
|
+
}
|
|
14174
|
+
if (isSelectName && type === 'returnWarehouseName') {
|
|
14175
|
+
// 如果发货仓名称存的是name,将id存入快照,同时把id替换成名称
|
|
14176
|
+
changeOrderInfo['sendSnapshotId'] = option.value;
|
|
14177
|
+
changeOrderInfo['returnWarehouseName'] = option.label;
|
|
14178
|
+
}
|
|
14179
|
+
var newList = _toConsumableArray(value);
|
|
14180
|
+
newList[changeIndex] = changeOrderInfo;
|
|
14181
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(newList);
|
|
14182
|
+
};
|
|
14021
14183
|
var filterOption = function filterOption(input, option) {
|
|
14022
14184
|
var _option$label;
|
|
14023
14185
|
return ((_option$label = option === null || option === void 0 ? void 0 : option.label) !== null && _option$label !== void 0 ? _option$label : '').includes(input);
|
|
14024
14186
|
};
|
|
14025
14187
|
var changeInputHandle = function changeInputHandle(val, type) {
|
|
14026
14188
|
var changeOrderInfo = _objectSpread2({}, value[changeIndex]);
|
|
14027
|
-
changeOrderInfo[type] = val;
|
|
14189
|
+
changeOrderInfo[type] = val === null || val === void 0 ? void 0 : val.trim();
|
|
14028
14190
|
var newList = _toConsumableArray(value);
|
|
14029
14191
|
newList[changeIndex] = changeOrderInfo;
|
|
14030
14192
|
onChange === null || onChange === void 0 ? void 0 : onChange(newList);
|
|
@@ -14132,7 +14294,35 @@ var jstGoods = function jstGoods(props) {
|
|
|
14132
14294
|
return changeInputHandle(e.target.value, 'deliveryNo');
|
|
14133
14295
|
},
|
|
14134
14296
|
value: (_value$changeIndex13 = value[changeIndex]) === null || _value$changeIndex13 === void 0 ? void 0 : _value$changeIndex13.sendName
|
|
14135
|
-
})) : null
|
|
14297
|
+
})) : null, type === 5 ? /*#__PURE__*/React__default['default'].createElement(antd.Space, null, ['returnWarehouseId', 'all'].includes(showField) && /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
14298
|
+
disabled: disabled,
|
|
14299
|
+
placeholder: "\u8BF7\u8F93\u5165\u9000\u8D27\u4ED3\u7F16\u7801",
|
|
14300
|
+
onChange: function onChange(e) {
|
|
14301
|
+
return changeInputHandle(e.target.value, 'returnWarehouseId');
|
|
14302
|
+
},
|
|
14303
|
+
value: (_value$changeIndex14 = value[changeIndex]) === null || _value$changeIndex14 === void 0 ? void 0 : _value$changeIndex14.returnWarehouseId
|
|
14304
|
+
}), ['returnWarehouseName', 'all'].includes(showField) && (isSelectName ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
14305
|
+
style: {
|
|
14306
|
+
minWidth: '100px',
|
|
14307
|
+
maxWidth: '180px'
|
|
14308
|
+
},
|
|
14309
|
+
disabled: disabled,
|
|
14310
|
+
placeholder: "\u9000\u8D27\u4ED3\u540D\u79F0",
|
|
14311
|
+
showSearch: true,
|
|
14312
|
+
options: sendOptions,
|
|
14313
|
+
filterOption: filterOption,
|
|
14314
|
+
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,
|
|
14315
|
+
onChange: function onChange(value, option) {
|
|
14316
|
+
return handleSelectedReturn(value, 'returnWarehouseName', option, onlyShowFieldSelect);
|
|
14317
|
+
}
|
|
14318
|
+
}) : /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
14319
|
+
disabled: disabled,
|
|
14320
|
+
placeholder: "\u8BF7\u8F93\u5165\u9000\u8D27\u4ED3\u540D\u79F0",
|
|
14321
|
+
onChange: function onChange(e) {
|
|
14322
|
+
return changeInputHandle(e.target.value, 'returnWarehouseName');
|
|
14323
|
+
},
|
|
14324
|
+
value: (_value$changeIndex17 = value[changeIndex]) === null || _value$changeIndex17 === void 0 ? void 0 : _value$changeIndex17.returnWarehouseName
|
|
14325
|
+
}))) : null) : null);
|
|
14136
14326
|
};
|
|
14137
14327
|
|
|
14138
14328
|
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";
|
|
@@ -14946,6 +15136,13 @@ var wdtColumns = [{
|
|
|
14946
15136
|
title: '辅助单位',
|
|
14947
15137
|
width: 150,
|
|
14948
15138
|
render: renderTextEllipsis
|
|
15139
|
+
}, {
|
|
15140
|
+
dataIndex: 'skuType',
|
|
15141
|
+
title: '是否组合装',
|
|
15142
|
+
width: 150,
|
|
15143
|
+
render: function render(type) {
|
|
15144
|
+
return type === 'suite' ? '组合装' : '非组合装';
|
|
15145
|
+
}
|
|
14949
15146
|
}];
|
|
14950
15147
|
|
|
14951
15148
|
var bse3Columns = [{
|
|
@@ -15336,34 +15533,75 @@ var jyColumns = [{
|
|
|
15336
15533
|
}
|
|
15337
15534
|
}];
|
|
15338
15535
|
|
|
15536
|
+
var getYesOrNo$2 = function getYesOrNo(val) {
|
|
15537
|
+
if (!lodash.isBoolean(val)) return null;
|
|
15538
|
+
return val ? '是' : '否';
|
|
15539
|
+
};
|
|
15339
15540
|
var jkyColumns = [{
|
|
15340
|
-
dataIndex: '
|
|
15341
|
-
title: "\u8D27\u54C1\
|
|
15541
|
+
dataIndex: 'goodName',
|
|
15542
|
+
title: "\u8D27\u54C1\u540D\u79F0",
|
|
15342
15543
|
align: 'center',
|
|
15343
15544
|
ellipsis: true,
|
|
15344
15545
|
width: 150,
|
|
15345
15546
|
render: renderTextEllipsis
|
|
15346
15547
|
}, {
|
|
15347
|
-
dataIndex: '
|
|
15348
|
-
title: "\u8D27\u54C1\
|
|
15548
|
+
dataIndex: 'goodNo',
|
|
15549
|
+
title: "\u8D27\u54C1\u7F16\u53F7",
|
|
15349
15550
|
align: 'center',
|
|
15350
15551
|
ellipsis: true,
|
|
15351
15552
|
width: 150,
|
|
15352
15553
|
render: renderTextEllipsis
|
|
15353
15554
|
}, {
|
|
15354
|
-
dataIndex: '
|
|
15555
|
+
dataIndex: 'goodId',
|
|
15355
15556
|
title: "\u8D27\u54C1ID",
|
|
15356
15557
|
align: 'center',
|
|
15357
15558
|
ellipsis: true,
|
|
15358
15559
|
width: 150,
|
|
15359
15560
|
render: renderTextEllipsis
|
|
15360
15561
|
}, {
|
|
15361
|
-
dataIndex: '
|
|
15562
|
+
dataIndex: 'goodPicUrl',
|
|
15563
|
+
title: "\u8D27\u54C1\u4E3B\u56FE",
|
|
15564
|
+
align: 'center',
|
|
15565
|
+
ellipsis: true,
|
|
15566
|
+
width: 150,
|
|
15567
|
+
render: function render(picUrl) {
|
|
15568
|
+
return /*#__PURE__*/React__default['default'].createElement("img", {
|
|
15569
|
+
style: {
|
|
15570
|
+
width: '30px',
|
|
15571
|
+
height: '30px',
|
|
15572
|
+
objectFit: 'contain'
|
|
15573
|
+
},
|
|
15574
|
+
src: picUrl
|
|
15575
|
+
});
|
|
15576
|
+
}
|
|
15577
|
+
}, {
|
|
15578
|
+
dataIndex: 'goodShortName',
|
|
15579
|
+
title: "\u8D27\u54C1\u522B\u540D",
|
|
15580
|
+
align: 'center',
|
|
15581
|
+
ellipsis: true,
|
|
15582
|
+
width: 150,
|
|
15583
|
+
render: renderTextEllipsis
|
|
15584
|
+
}, {
|
|
15585
|
+
dataIndex: 'specBarcode',
|
|
15362
15586
|
title: "\u8D27\u54C1\u6761\u7801",
|
|
15363
15587
|
align: 'center',
|
|
15364
15588
|
ellipsis: true,
|
|
15365
15589
|
width: 150,
|
|
15366
15590
|
render: renderTextEllipsis
|
|
15591
|
+
}, {
|
|
15592
|
+
dataIndex: 'categoryName',
|
|
15593
|
+
title: "\u8D27\u54C1\u7C7B\u522B",
|
|
15594
|
+
align: 'center',
|
|
15595
|
+
ellipsis: true,
|
|
15596
|
+
width: 150,
|
|
15597
|
+
render: renderTextEllipsis
|
|
15598
|
+
}, {
|
|
15599
|
+
dataIndex: 'brandName',
|
|
15600
|
+
title: "\u54C1\u724C",
|
|
15601
|
+
align: 'center',
|
|
15602
|
+
ellipsis: true,
|
|
15603
|
+
width: 200,
|
|
15604
|
+
render: renderTextEllipsis
|
|
15367
15605
|
}, {
|
|
15368
15606
|
dataIndex: 'specName',
|
|
15369
15607
|
title: "\u89C4\u683C\u540D\u79F0",
|
|
@@ -15379,7 +15617,14 @@ var jkyColumns = [{
|
|
|
15379
15617
|
width: 150,
|
|
15380
15618
|
render: renderTextEllipsis
|
|
15381
15619
|
}, {
|
|
15382
|
-
dataIndex: '
|
|
15620
|
+
dataIndex: 'specNo',
|
|
15621
|
+
title: "\u89C4\u683C\u7F16\u7801",
|
|
15622
|
+
align: 'center',
|
|
15623
|
+
ellipsis: true,
|
|
15624
|
+
width: 150,
|
|
15625
|
+
render: renderTextEllipsis
|
|
15626
|
+
}, {
|
|
15627
|
+
dataIndex: 'specImgUrl',
|
|
15383
15628
|
title: "\u89C4\u683C\u56FE\u7247",
|
|
15384
15629
|
align: 'center',
|
|
15385
15630
|
ellipsis: true,
|
|
@@ -15395,162 +15640,78 @@ var jkyColumns = [{
|
|
|
15395
15640
|
});
|
|
15396
15641
|
}
|
|
15397
15642
|
}, {
|
|
15398
|
-
dataIndex: '
|
|
15399
|
-
title: "\
|
|
15400
|
-
|
|
15401
|
-
|
|
15402
|
-
return /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
15403
|
-
}
|
|
15404
|
-
}, {
|
|
15405
|
-
dataIndex: 'actualSendCount',
|
|
15406
|
-
title: "\u5B9E\u53D1\u6570\u91CF",
|
|
15643
|
+
dataIndex: 'colorName',
|
|
15644
|
+
title: "\u989C\u8272\u540D\u79F0",
|
|
15645
|
+
align: 'center',
|
|
15646
|
+
ellipsis: true,
|
|
15407
15647
|
width: 150,
|
|
15408
15648
|
render: renderTextEllipsis
|
|
15409
15649
|
}, {
|
|
15410
|
-
dataIndex: '
|
|
15411
|
-
title: "\
|
|
15412
|
-
width: 150,
|
|
15413
|
-
render: function render(val) {
|
|
15414
|
-
return val || val === 0 ? Number(val).toFixed(2) : '';
|
|
15415
|
-
}
|
|
15416
|
-
}, {
|
|
15417
|
-
dataIndex: 'sellTotal',
|
|
15418
|
-
title: "\u91D1\u989D",
|
|
15419
|
-
width: 150
|
|
15420
|
-
}, {
|
|
15421
|
-
dataIndex: 'discountTotal',
|
|
15422
|
-
title: "\u62B5\u6263\u91D1\u989D",
|
|
15423
|
-
width: 150
|
|
15424
|
-
}, {
|
|
15425
|
-
dataIndex: 'shareFavourableFee',
|
|
15426
|
-
title: "\u5206\u644A\u91D1\u989D",
|
|
15427
|
-
width: 150
|
|
15428
|
-
}, {
|
|
15429
|
-
dataIndex: 'shareFavourableAfterFee',
|
|
15430
|
-
title: "\u5206\u644A\u540E\u91D1\u989D",
|
|
15431
|
-
width: 150
|
|
15432
|
-
}, {
|
|
15433
|
-
dataIndex: 'customerPrice',
|
|
15434
|
-
title: "\u7EC8\u7AEF\u9500\u552E\u5355\u4EF7",
|
|
15435
|
-
width: 150
|
|
15436
|
-
}, {
|
|
15437
|
-
dataIndex: 'customerTotal',
|
|
15438
|
-
title: "\u7EC8\u7AEF\u9500\u552E\u91D1\u989D",
|
|
15439
|
-
width: 150
|
|
15440
|
-
}, {
|
|
15441
|
-
dataIndex: 'divideSellTotal',
|
|
15442
|
-
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
15443
|
-
width: 150
|
|
15444
|
-
}, {
|
|
15445
|
-
dataIndex: 'isGift',
|
|
15446
|
-
title: "\u662F\u5426\u8D60\u54C1",
|
|
15447
|
-
width: 150,
|
|
15448
|
-
render: function render(val) {
|
|
15449
|
-
return /*#__PURE__*/React__default['default'].createElement("span", null, val === '1' ? '是' : '否');
|
|
15450
|
-
}
|
|
15451
|
-
}, {
|
|
15452
|
-
dataIndex: 'isFit',
|
|
15453
|
-
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
15454
|
-
width: 150,
|
|
15455
|
-
render: function render(val) {
|
|
15456
|
-
return /*#__PURE__*/React__default['default'].createElement("span", null, val === '1' ? '是' : '否');
|
|
15457
|
-
}
|
|
15458
|
-
}, {
|
|
15459
|
-
dataIndex: 'isPresell',
|
|
15460
|
-
title: "\u662F\u5426\u9884\u552E\u8D27\u54C1",
|
|
15461
|
-
width: 150,
|
|
15462
|
-
render: function render(val) {
|
|
15463
|
-
return /*#__PURE__*/React__default['default'].createElement("span", null, val === '1' ? '是' : '否');
|
|
15464
|
-
}
|
|
15465
|
-
}, {
|
|
15466
|
-
dataIndex: 'brandName',
|
|
15467
|
-
title: "\u54C1\u724C",
|
|
15650
|
+
dataIndex: 'colorCode',
|
|
15651
|
+
title: "\u989C\u8272\u4EE3\u7801",
|
|
15468
15652
|
align: 'center',
|
|
15469
15653
|
ellipsis: true,
|
|
15470
|
-
width:
|
|
15654
|
+
width: 150,
|
|
15471
15655
|
render: renderTextEllipsis
|
|
15472
15656
|
}, {
|
|
15473
|
-
dataIndex: '
|
|
15474
|
-
title: "\
|
|
15657
|
+
dataIndex: 'sizeName',
|
|
15658
|
+
title: "\u5C3A\u7801\u540D\u79F0",
|
|
15475
15659
|
align: 'center',
|
|
15476
15660
|
ellipsis: true,
|
|
15477
15661
|
width: 150,
|
|
15478
15662
|
render: renderTextEllipsis
|
|
15479
15663
|
}, {
|
|
15480
|
-
dataIndex: '
|
|
15481
|
-
title: "\
|
|
15664
|
+
dataIndex: 'sizeCode',
|
|
15665
|
+
title: "\u5C3A\u7801\u4EE3\u7801",
|
|
15482
15666
|
align: 'center',
|
|
15483
15667
|
ellipsis: true,
|
|
15484
|
-
width:
|
|
15668
|
+
width: 150,
|
|
15485
15669
|
render: renderTextEllipsis
|
|
15486
15670
|
}, {
|
|
15487
|
-
dataIndex: '
|
|
15488
|
-
title: "\
|
|
15671
|
+
dataIndex: 'marketPrice',
|
|
15672
|
+
title: "\u5E02\u573A\u4EF7",
|
|
15489
15673
|
align: 'center',
|
|
15490
15674
|
ellipsis: true,
|
|
15491
|
-
width:
|
|
15675
|
+
width: 150,
|
|
15492
15676
|
render: renderTextEllipsis
|
|
15493
15677
|
}, {
|
|
15494
|
-
dataIndex: '
|
|
15495
|
-
title: "\
|
|
15678
|
+
dataIndex: 'retailPrice',
|
|
15679
|
+
title: "\u96F6\u552E\u4EF7",
|
|
15496
15680
|
align: 'center',
|
|
15497
15681
|
ellipsis: true,
|
|
15498
|
-
width:
|
|
15682
|
+
width: 150,
|
|
15499
15683
|
render: renderTextEllipsis
|
|
15500
15684
|
}, {
|
|
15501
|
-
dataIndex: '
|
|
15502
|
-
title: "\
|
|
15685
|
+
dataIndex: 'memberPrice',
|
|
15686
|
+
title: "\u4F1A\u5458\u4EF7",
|
|
15687
|
+
align: 'center',
|
|
15503
15688
|
ellipsis: true,
|
|
15504
|
-
width:
|
|
15689
|
+
width: 150,
|
|
15505
15690
|
render: renderTextEllipsis
|
|
15506
15691
|
}, {
|
|
15507
|
-
dataIndex: '
|
|
15508
|
-
title: "\
|
|
15692
|
+
dataIndex: 'costPrice',
|
|
15693
|
+
title: "\u6210\u672C\u4EF7",
|
|
15694
|
+
align: 'center',
|
|
15509
15695
|
ellipsis: true,
|
|
15510
|
-
width:
|
|
15696
|
+
width: 150,
|
|
15511
15697
|
render: renderTextEllipsis
|
|
15512
15698
|
}, {
|
|
15513
|
-
dataIndex: '
|
|
15514
|
-
title: "\
|
|
15699
|
+
dataIndex: 'isVirtual',
|
|
15700
|
+
title: "\u662F\u5426\u865A\u62DF\u5546\u54C1",
|
|
15701
|
+
align: 'center',
|
|
15515
15702
|
ellipsis: true,
|
|
15516
|
-
width:
|
|
15517
|
-
render:
|
|
15703
|
+
width: 150,
|
|
15704
|
+
render: function render(val) {
|
|
15705
|
+
return renderTextEllipsis(getYesOrNo$2(val));
|
|
15706
|
+
}
|
|
15518
15707
|
}, {
|
|
15519
|
-
dataIndex: '
|
|
15520
|
-
title: "\
|
|
15708
|
+
dataIndex: 'skuType',
|
|
15709
|
+
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
15521
15710
|
ellipsis: true,
|
|
15522
|
-
width:
|
|
15523
|
-
render:
|
|
15524
|
-
|
|
15525
|
-
|
|
15526
|
-
title: "\u5546\u54C1\u660E\u7EC6ID",
|
|
15527
|
-
ellipsis: true,
|
|
15528
|
-
width: 250,
|
|
15529
|
-
render: renderTextEllipsis
|
|
15530
|
-
}, {
|
|
15531
|
-
dataIndex: 'batchNo',
|
|
15532
|
-
title: "\u6279\u6B21\u53F7",
|
|
15533
|
-
ellipsis: true,
|
|
15534
|
-
width: 250,
|
|
15535
|
-
render: renderTextEllipsis
|
|
15536
|
-
}, {
|
|
15537
|
-
dataIndex: 'sendCount',
|
|
15538
|
-
title: "\u6279\u6B21\u6570\u91CF",
|
|
15539
|
-
ellipsis: true,
|
|
15540
|
-
width: 250,
|
|
15541
|
-
render: renderTextEllipsis
|
|
15542
|
-
}, {
|
|
15543
|
-
dataIndex: 'productDate',
|
|
15544
|
-
title: "\u751F\u4EA7\u65E5\u671F",
|
|
15545
|
-
ellipsis: true,
|
|
15546
|
-
width: 250,
|
|
15547
|
-
render: renderTextEllipsis
|
|
15548
|
-
}, {
|
|
15549
|
-
dataIndex: 'expireDate',
|
|
15550
|
-
title: "\u5230\u671F\u65E5\u671F",
|
|
15551
|
-
ellipsis: true,
|
|
15552
|
-
width: 250,
|
|
15553
|
-
render: renderTextEllipsis
|
|
15711
|
+
width: 150,
|
|
15712
|
+
render: function render(val) {
|
|
15713
|
+
return renderTextEllipsis(getYesOrNo$2(val === 'combine'));
|
|
15714
|
+
}
|
|
15554
15715
|
}];
|
|
15555
15716
|
|
|
15556
15717
|
var getColumnsMap = function getColumnsMap() {
|
|
@@ -15824,7 +15985,7 @@ var transformFormData = function transformFormData(formData) {
|
|
|
15824
15985
|
if (formData[key]) {
|
|
15825
15986
|
var _formData$key, _formData$key2, _formData$key3, _formData$key4;
|
|
15826
15987
|
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];
|
|
15827
|
-
var compareSymbol = ((_formData$key3 = formData[key]) === null || _formData$key3 === void 0 ? void 0 : _formData$key3.type) ? (_formData$key4 = formData[key]) === null || _formData$key4 === void 0 ? void 0 : _formData$key4.type : 'like';
|
|
15988
|
+
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';
|
|
15828
15989
|
conditionList.push({
|
|
15829
15990
|
leftValue: key,
|
|
15830
15991
|
compareSymbol: compareSymbol,
|
|
@@ -15970,6 +16131,24 @@ var GoodList = function GoodList(props, ref) {
|
|
|
15970
16131
|
};
|
|
15971
16132
|
})
|
|
15972
16133
|
}
|
|
16134
|
+
}, {
|
|
16135
|
+
label: '是否组合装',
|
|
16136
|
+
name: 'skuType',
|
|
16137
|
+
dataIndex: 'skuType',
|
|
16138
|
+
type: 'select',
|
|
16139
|
+
formItemProps: {
|
|
16140
|
+
mode: 'multiple',
|
|
16141
|
+
filterOption: function filterOption(input, option) {
|
|
16142
|
+
return option.label.includes(input);
|
|
16143
|
+
},
|
|
16144
|
+
options: [{
|
|
16145
|
+
label: '组合装',
|
|
16146
|
+
value: 'suite'
|
|
16147
|
+
}, {
|
|
16148
|
+
label: '非组合装',
|
|
16149
|
+
value: ''
|
|
16150
|
+
}]
|
|
16151
|
+
}
|
|
15973
16152
|
}];
|
|
15974
16153
|
var rowSelection = {
|
|
15975
16154
|
selectedRowKeys: selectIds,
|
|
@@ -18793,13 +18972,15 @@ var JyGoodsModal$1 = /*#__PURE__*/React.forwardRef(JyGoodsModal);
|
|
|
18793
18972
|
var getTableData$6 = function getTableData(_ref, formData) {
|
|
18794
18973
|
var current = _ref.current,
|
|
18795
18974
|
pageSize = _ref.pageSize;
|
|
18975
|
+
var conditionList = transformFormData(formData);
|
|
18796
18976
|
return extendRequest('/qy/gdfw/product/product/page', {
|
|
18797
18977
|
method: 'post',
|
|
18798
|
-
data:
|
|
18978
|
+
data: {
|
|
18799
18979
|
pageSize: pageSize,
|
|
18800
18980
|
pageNo: current,
|
|
18801
|
-
platform: '
|
|
18802
|
-
|
|
18981
|
+
platform: 'JKY_ERP',
|
|
18982
|
+
conditionList: conditionList
|
|
18983
|
+
}
|
|
18803
18984
|
}).then(function (res) {
|
|
18804
18985
|
var _res$data = res.data,
|
|
18805
18986
|
_res$data$productSkuL = _res$data.productSkuList,
|
|
@@ -18822,13 +19003,15 @@ var searchFormData$5 = [{
|
|
|
18822
19003
|
}, {
|
|
18823
19004
|
label: '规格编码',
|
|
18824
19005
|
name: 'skuCode',
|
|
18825
|
-
dataIndex: 'specNo'
|
|
19006
|
+
dataIndex: 'specNo',
|
|
19007
|
+
type: 'optionalInput'
|
|
18826
19008
|
}, {
|
|
18827
|
-
label: '
|
|
19009
|
+
label: '货品名称',
|
|
18828
19010
|
name: 'goodName'
|
|
18829
19011
|
}, {
|
|
18830
|
-
label: '
|
|
18831
|
-
name: 'goodNo'
|
|
19012
|
+
label: '货品编码',
|
|
19013
|
+
name: 'goodNo',
|
|
19014
|
+
type: 'optionalInput'
|
|
18832
19015
|
}];
|
|
18833
19016
|
var GoodList$6 = function GoodList(props, ref) {
|
|
18834
19017
|
var _useState = React.useState([]),
|
|
@@ -18898,8 +19081,8 @@ var GoodList$6 = function GoodList(props, ref) {
|
|
|
18898
19081
|
getCheckboxProps: function getCheckboxProps(record) {
|
|
18899
19082
|
var options = {
|
|
18900
19083
|
disabled: (props.selectedRows || []).map(function (row) {
|
|
18901
|
-
return row.
|
|
18902
|
-
}).includes(record.
|
|
19084
|
+
return row.specId || record.id;
|
|
19085
|
+
}).includes(record.specId || record.id),
|
|
18903
19086
|
name: record.id
|
|
18904
19087
|
};
|
|
18905
19088
|
return options;
|
|
@@ -20346,7 +20529,7 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
20346
20529
|
};
|
|
20347
20530
|
};
|
|
20348
20531
|
|
|
20349
|
-
var getYesOrNo$
|
|
20532
|
+
var getYesOrNo$3 = function getYesOrNo(val) {
|
|
20350
20533
|
if (kmkfUtils.isNull(val)) return null;
|
|
20351
20534
|
return val ? '是' : '否';
|
|
20352
20535
|
};
|
|
@@ -20497,7 +20680,7 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
20497
20680
|
label: '否',
|
|
20498
20681
|
value: false
|
|
20499
20682
|
}]
|
|
20500
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$
|
|
20683
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$3(val));
|
|
20501
20684
|
},
|
|
20502
20685
|
width: 100
|
|
20503
20686
|
}]
|
|
@@ -20509,7 +20692,7 @@ var isNumberOrNumberString$1 = function isNumberOrNumberString(value) {
|
|
|
20509
20692
|
if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
|
|
20510
20693
|
return false;
|
|
20511
20694
|
};
|
|
20512
|
-
var getYesOrNo$
|
|
20695
|
+
var getYesOrNo$4 = function getYesOrNo(val) {
|
|
20513
20696
|
if (kmkfUtils.isNull(val)) return null;
|
|
20514
20697
|
return val ? '是' : '否';
|
|
20515
20698
|
};
|
|
@@ -20624,7 +20807,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
20624
20807
|
title: "\u662F\u5426\u53D6\u6D88",
|
|
20625
20808
|
width: 150,
|
|
20626
20809
|
render: function render(val) {
|
|
20627
|
-
return /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$
|
|
20810
|
+
return /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$4(val));
|
|
20628
20811
|
}
|
|
20629
20812
|
}, {
|
|
20630
20813
|
dataIndex: 'isGift',
|
|
@@ -20643,7 +20826,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
20643
20826
|
label: '否',
|
|
20644
20827
|
value: 0
|
|
20645
20828
|
}]
|
|
20646
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$
|
|
20829
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$4(val));
|
|
20647
20830
|
}
|
|
20648
20831
|
}, {
|
|
20649
20832
|
dataIndex: 'skuNote',
|
|
@@ -20769,7 +20952,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
20769
20952
|
label: '否',
|
|
20770
20953
|
value: 0
|
|
20771
20954
|
}]
|
|
20772
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$
|
|
20955
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$4(val));
|
|
20773
20956
|
}
|
|
20774
20957
|
}].map(function (item) {
|
|
20775
20958
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
@@ -20898,7 +21081,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
20898
21081
|
label: '否',
|
|
20899
21082
|
value: 0
|
|
20900
21083
|
}]
|
|
20901
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$
|
|
21084
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$4(val));
|
|
20902
21085
|
}
|
|
20903
21086
|
}].map(function (item) {
|
|
20904
21087
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
@@ -21637,16 +21820,28 @@ function toNum$3(value) {
|
|
|
21637
21820
|
}
|
|
21638
21821
|
return void 0;
|
|
21639
21822
|
}
|
|
21640
|
-
var
|
|
21641
|
-
|
|
21823
|
+
var isNumberOrNumberString$2 = function isNumberOrNumberString(value) {
|
|
21824
|
+
if (typeof value === 'number') return true;
|
|
21825
|
+
if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
|
|
21826
|
+
return false;
|
|
21827
|
+
};
|
|
21828
|
+
var getColumns$6 = function getColumns() {
|
|
21829
|
+
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
21830
|
+
_ref$text = _ref.text,
|
|
21642
21831
|
disabled = _ref.disabled,
|
|
21643
|
-
updateHandle = _ref.updateHandle
|
|
21832
|
+
updateHandle = _ref.updateHandle,
|
|
21833
|
+
updateDataHandle = _ref.updateDataHandle;
|
|
21644
21834
|
return {
|
|
21645
21835
|
KM_GOODS: [{
|
|
21646
21836
|
dataIndex: 'skuPropertiesName',
|
|
21647
21837
|
title: "\u89C4\u683C\u540D\u79F0",
|
|
21648
21838
|
width: 250,
|
|
21649
21839
|
render: renderTextEllipsis
|
|
21840
|
+
}, {
|
|
21841
|
+
dataIndex: 'sysSkuPropertiesName',
|
|
21842
|
+
title: "\u7CFB\u7EDF\u89C4\u683C\u540D\u79F0",
|
|
21843
|
+
width: 150,
|
|
21844
|
+
render: renderTextEllipsis
|
|
21650
21845
|
}, {
|
|
21651
21846
|
dataIndex: 'sysTitle',
|
|
21652
21847
|
title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
|
|
@@ -21754,6 +21949,11 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
21754
21949
|
title: "\u4F9B\u5E94\u5546\u7F16\u7801",
|
|
21755
21950
|
width: 150,
|
|
21756
21951
|
render: renderTextEllipsis
|
|
21952
|
+
}, {
|
|
21953
|
+
dataIndex: 'remark',
|
|
21954
|
+
title: "\u5907\u6CE8",
|
|
21955
|
+
width: 200,
|
|
21956
|
+
render: renderTextEllipsis
|
|
21757
21957
|
}].map(function (item) {
|
|
21758
21958
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
21759
21959
|
align: 'center',
|
|
@@ -21765,6 +21965,11 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
21765
21965
|
title: "\u89C4\u683C\u540D\u79F0",
|
|
21766
21966
|
width: 250,
|
|
21767
21967
|
render: renderTextEllipsis
|
|
21968
|
+
}, {
|
|
21969
|
+
dataIndex: 'sysSkuPropertiesName',
|
|
21970
|
+
title: "\u7CFB\u7EDF\u89C4\u683C\u540D\u79F0",
|
|
21971
|
+
width: 150,
|
|
21972
|
+
render: renderTextEllipsis
|
|
21768
21973
|
}, {
|
|
21769
21974
|
dataIndex: 'sysTitle',
|
|
21770
21975
|
title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
|
|
@@ -21809,7 +22014,9 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
21809
22014
|
dataIndex: 'realNum',
|
|
21810
22015
|
title: "\u5B9E\u9645\u8865\u53D1\u6570\u91CF",
|
|
21811
22016
|
width: 100,
|
|
21812
|
-
validator: function validator(_rule, value) {
|
|
22017
|
+
validator: function validator(_rule, value, extraParams) {
|
|
22018
|
+
console.log('实际补发数量-extraParams', extraParams);
|
|
22019
|
+
if (!(extraParams === null || extraParams === void 0 ? void 0 : extraParams.quantityVerify)) return undefined;
|
|
21813
22020
|
var title = '';
|
|
21814
22021
|
if (((value === null || value === void 0 ? void 0 : value.kmReissueGoods) || []).some(function (goods) {
|
|
21815
22022
|
var realNum = toNum$3(goods === null || goods === void 0 ? void 0 : goods.realNum);
|
|
@@ -21837,8 +22044,21 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
21837
22044
|
}
|
|
21838
22045
|
}, {
|
|
21839
22046
|
dataIndex: 'desiredNum',
|
|
21840
|
-
title: "\
|
|
22047
|
+
title: "\u7533\u8BF7\u8865\u53D1\u6570\u91CF",
|
|
21841
22048
|
width: 100,
|
|
22049
|
+
validator: function validator(_rule, value) {
|
|
22050
|
+
var title = '';
|
|
22051
|
+
if (((value === null || value === void 0 ? void 0 : value.kmReissueGoods) || []).some(function (goods) {
|
|
22052
|
+
var desiredNum = toNum$3(goods === null || goods === void 0 ? void 0 : goods.desiredNum);
|
|
22053
|
+
var res = typeof desiredNum === 'number' ? desiredNum < 1 : true;
|
|
22054
|
+
if (res) {
|
|
22055
|
+
title = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
|
|
22056
|
+
}
|
|
22057
|
+
return res;
|
|
22058
|
+
})) {
|
|
22059
|
+
return Promise.reject("".concat(title, "\u7533\u8BF7\u8865\u53D1\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
22060
|
+
}
|
|
22061
|
+
},
|
|
21842
22062
|
render: function render(val, record, index) {
|
|
21843
22063
|
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
21844
22064
|
style: {
|
|
@@ -21907,136 +22127,60 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
21907
22127
|
align: 'center',
|
|
21908
22128
|
ellipsis: true
|
|
21909
22129
|
});
|
|
21910
|
-
})
|
|
21911
|
-
|
|
21912
|
-
|
|
21913
|
-
|
|
21914
|
-
|
|
21915
|
-
if (typeof value === 'number') return true;
|
|
21916
|
-
if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
|
|
21917
|
-
return false;
|
|
21918
|
-
};
|
|
21919
|
-
function toNum$4(value) {
|
|
21920
|
-
if (typeof value === 'string') {
|
|
21921
|
-
return value ? +value : void 0;
|
|
21922
|
-
}
|
|
21923
|
-
if (typeof value === 'number') {
|
|
21924
|
-
return value;
|
|
21925
|
-
}
|
|
21926
|
-
return void 0;
|
|
21927
|
-
}
|
|
21928
|
-
var getColumns$7 = function getColumns(_ref) {
|
|
21929
|
-
var _ref$text = _ref.text,
|
|
21930
|
-
disabled = _ref.disabled,
|
|
21931
|
-
updateHandle = _ref.updateHandle,
|
|
21932
|
-
updateDataHandle = _ref.updateDataHandle;
|
|
21933
|
-
return {
|
|
21934
|
-
//巨益商品信息
|
|
21935
|
-
JY_GOODS: [{
|
|
21936
|
-
dataIndex: 'productName',
|
|
21937
|
-
title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
|
|
21938
|
-
align: 'center',
|
|
21939
|
-
ellipsis: true,
|
|
21940
|
-
width: 150,
|
|
21941
|
-
render: renderTextEllipsis
|
|
21942
|
-
}, {
|
|
21943
|
-
dataIndex: 'productCode',
|
|
21944
|
-
title: "\u7CFB\u7EDF\u5546\u54C1\u7F16\u7801",
|
|
21945
|
-
align: 'center',
|
|
21946
|
-
ellipsis: true,
|
|
21947
|
-
width: 150,
|
|
21948
|
-
render: renderTextEllipsis
|
|
21949
|
-
}, {
|
|
21950
|
-
dataIndex: 'productId',
|
|
21951
|
-
title: "\u7CFB\u7EDF\u5546\u54C1ID",
|
|
21952
|
-
align: 'center',
|
|
21953
|
-
ellipsis: true,
|
|
21954
|
-
width: 150,
|
|
22130
|
+
}),
|
|
22131
|
+
KM_RETURN_GOODS: [{
|
|
22132
|
+
dataIndex: 'skuPropertiesName',
|
|
22133
|
+
title: "\u89C4\u683C\u540D\u79F0",
|
|
22134
|
+
width: 250,
|
|
21955
22135
|
render: renderTextEllipsis
|
|
21956
22136
|
}, {
|
|
21957
|
-
dataIndex: '
|
|
22137
|
+
dataIndex: 'sysSkuPropertiesName',
|
|
21958
22138
|
title: "\u7CFB\u7EDF\u89C4\u683C\u540D\u79F0",
|
|
21959
|
-
align: 'center',
|
|
21960
|
-
ellipsis: true,
|
|
21961
22139
|
width: 150,
|
|
21962
22140
|
render: renderTextEllipsis
|
|
21963
22141
|
}, {
|
|
21964
|
-
dataIndex: '
|
|
21965
|
-
title: "\u7CFB\u7EDF\
|
|
21966
|
-
align: 'center',
|
|
21967
|
-
ellipsis: true,
|
|
22142
|
+
dataIndex: 'sysTitle',
|
|
22143
|
+
title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
|
|
21968
22144
|
width: 150,
|
|
21969
22145
|
render: renderTextEllipsis
|
|
21970
22146
|
}, {
|
|
21971
|
-
dataIndex: '
|
|
21972
|
-
title: "\
|
|
21973
|
-
align: 'center',
|
|
21974
|
-
ellipsis: true,
|
|
22147
|
+
dataIndex: 'shortTitle',
|
|
22148
|
+
title: "\u5546\u54C1\u7B80\u79F0",
|
|
21975
22149
|
width: 150,
|
|
21976
22150
|
render: renderTextEllipsis
|
|
21977
22151
|
}, {
|
|
21978
|
-
dataIndex: '
|
|
21979
|
-
title: "\
|
|
22152
|
+
dataIndex: 'title',
|
|
22153
|
+
title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
|
|
21980
22154
|
width: 150,
|
|
21981
22155
|
render: renderTextEllipsis
|
|
21982
22156
|
}, {
|
|
21983
|
-
dataIndex: '
|
|
21984
|
-
title: "\
|
|
22157
|
+
dataIndex: 'sysOuterId',
|
|
22158
|
+
title: "\u7CFB\u7EDF\u5546\u5BB6\u7F16\u7801",
|
|
21985
22159
|
width: 150,
|
|
21986
22160
|
render: renderTextEllipsis
|
|
21987
|
-
},
|
|
21988
|
-
// {
|
|
21989
|
-
// dataIndex: 'specName',
|
|
21990
|
-
// title: `规格名称`,
|
|
21991
|
-
// align: 'center',
|
|
21992
|
-
// ellipsis: true,
|
|
21993
|
-
// width: 200,
|
|
21994
|
-
// },
|
|
21995
|
-
// {
|
|
21996
|
-
// dataIndex: 'specCode',
|
|
21997
|
-
// title: `规格编号`,
|
|
21998
|
-
// align: 'center',
|
|
21999
|
-
// ellipsis: true,
|
|
22000
|
-
// width: 150,
|
|
22001
|
-
// },
|
|
22002
|
-
{
|
|
22003
|
-
dataIndex: 'mallProductName',
|
|
22004
|
-
title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
|
|
22005
|
-
align: 'center',
|
|
22006
|
-
ellipsis: true,
|
|
22007
|
-
width: 250,
|
|
22008
|
-
render: renderTextEllipsis
|
|
22009
22161
|
}, {
|
|
22010
|
-
dataIndex: '
|
|
22011
|
-
title: "\
|
|
22012
|
-
align: 'center',
|
|
22013
|
-
ellipsis: true,
|
|
22162
|
+
dataIndex: 'itemSysId',
|
|
22163
|
+
title: "\u7CFB\u7EDF\u5546\u54C1ID",
|
|
22014
22164
|
width: 150,
|
|
22015
22165
|
render: renderTextEllipsis
|
|
22016
22166
|
}, {
|
|
22017
|
-
dataIndex: '
|
|
22018
|
-
title: "\
|
|
22019
|
-
|
|
22020
|
-
ellipsis: true,
|
|
22021
|
-
width: 250,
|
|
22167
|
+
dataIndex: 'skuSysId',
|
|
22168
|
+
title: "\u7CFB\u7EDF\u89C4\u683CID",
|
|
22169
|
+
width: 150,
|
|
22022
22170
|
render: renderTextEllipsis
|
|
22023
22171
|
}, {
|
|
22024
|
-
dataIndex: '
|
|
22025
|
-
title: "\u5E73\u53F0\u89C4\
|
|
22026
|
-
|
|
22027
|
-
ellipsis: true,
|
|
22028
|
-
width: 250,
|
|
22172
|
+
dataIndex: 'skuId',
|
|
22173
|
+
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
22174
|
+
width: 170,
|
|
22029
22175
|
render: renderTextEllipsis
|
|
22030
22176
|
}, {
|
|
22031
|
-
dataIndex: '
|
|
22032
|
-
title: "\u5E73\u53F0\u89C4\
|
|
22033
|
-
|
|
22034
|
-
ellipsis: true,
|
|
22035
|
-
width: 250,
|
|
22177
|
+
dataIndex: 'outerSkuId',
|
|
22178
|
+
title: "\u5E73\u53F0\u89C4\u683C\u7F16\u7801",
|
|
22179
|
+
width: 170,
|
|
22036
22180
|
render: renderTextEllipsis
|
|
22037
22181
|
}, {
|
|
22038
|
-
dataIndex: '
|
|
22039
|
-
title: "\u6570\u91CF",
|
|
22182
|
+
dataIndex: 'realNum',
|
|
22183
|
+
title: "\u5B9E\u9645\u9000\u8D27\u6570\u91CF",
|
|
22040
22184
|
width: 100,
|
|
22041
22185
|
render: function render(val, record, index) {
|
|
22042
22186
|
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
@@ -22048,48 +22192,449 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
22048
22192
|
precision: 0,
|
|
22049
22193
|
onChange: function onChange(num) {
|
|
22050
22194
|
updateDataHandle({
|
|
22051
|
-
|
|
22052
|
-
|
|
22195
|
+
realNum: num,
|
|
22196
|
+
refundMoney: num && isNumberOrNumberString$2(record.price) ? num * record.price : null
|
|
22053
22197
|
}, index);
|
|
22054
22198
|
}
|
|
22055
22199
|
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
22056
22200
|
}
|
|
22057
22201
|
}, {
|
|
22058
|
-
dataIndex: '
|
|
22059
|
-
title: "\
|
|
22060
|
-
width:
|
|
22202
|
+
dataIndex: 'desiredNum',
|
|
22203
|
+
title: "\u7533\u8BF7\u9000\u8D27\u6570\u91CF",
|
|
22204
|
+
width: 100,
|
|
22205
|
+
validator: function validator(_rule, value) {
|
|
22206
|
+
var title = '';
|
|
22207
|
+
if (((value === null || value === void 0 ? void 0 : value.kmReturnGoods) || []).some(function (goods) {
|
|
22208
|
+
var desiredNum = toNum$3(goods === null || goods === void 0 ? void 0 : goods.desiredNum);
|
|
22209
|
+
var res = typeof desiredNum === 'number' ? desiredNum < 1 : true;
|
|
22210
|
+
if (res) {
|
|
22211
|
+
title = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
|
|
22212
|
+
}
|
|
22213
|
+
return res;
|
|
22214
|
+
})) {
|
|
22215
|
+
return Promise.reject("".concat(title, "\u7533\u8BF7\u9000\u8D27\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
22216
|
+
}
|
|
22217
|
+
},
|
|
22061
22218
|
render: function render(val, record, index) {
|
|
22062
22219
|
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
22063
22220
|
style: {
|
|
22064
|
-
width:
|
|
22221
|
+
width: 70
|
|
22065
22222
|
},
|
|
22066
22223
|
value: val,
|
|
22067
|
-
min:
|
|
22068
|
-
precision:
|
|
22224
|
+
min: 1,
|
|
22225
|
+
precision: 0,
|
|
22069
22226
|
onChange: function onChange(num) {
|
|
22070
|
-
|
|
22071
|
-
sellPrice: num,
|
|
22072
|
-
sellTotal: num && isNumberOrNumberString$2(record.sellCount) ? num * record.sellCount : null
|
|
22073
|
-
}, index);
|
|
22227
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'desiredNum');
|
|
22074
22228
|
}
|
|
22075
22229
|
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
22076
22230
|
}
|
|
22077
22231
|
}, {
|
|
22078
|
-
dataIndex: '
|
|
22079
|
-
title: "\
|
|
22080
|
-
width:
|
|
22081
|
-
|
|
22082
|
-
|
|
22083
|
-
|
|
22084
|
-
|
|
22085
|
-
|
|
22086
|
-
|
|
22087
|
-
|
|
22088
|
-
|
|
22089
|
-
|
|
22090
|
-
|
|
22091
|
-
|
|
22092
|
-
|
|
22232
|
+
dataIndex: 'goodNum',
|
|
22233
|
+
title: "\u826F\u54C1\u6570",
|
|
22234
|
+
width: 100,
|
|
22235
|
+
render: function render(val, record, index) {
|
|
22236
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
22237
|
+
style: {
|
|
22238
|
+
width: 70
|
|
22239
|
+
},
|
|
22240
|
+
value: val,
|
|
22241
|
+
min: 1,
|
|
22242
|
+
precision: 0,
|
|
22243
|
+
onChange: function onChange(num) {
|
|
22244
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'goodNum');
|
|
22245
|
+
}
|
|
22246
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
22247
|
+
}
|
|
22248
|
+
}, {
|
|
22249
|
+
dataIndex: 'defectiveNum',
|
|
22250
|
+
title: "\u6B21\u54C1\u6570",
|
|
22251
|
+
width: 100,
|
|
22252
|
+
render: function render(val, record, index) {
|
|
22253
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
22254
|
+
style: {
|
|
22255
|
+
width: 70
|
|
22256
|
+
},
|
|
22257
|
+
value: val,
|
|
22258
|
+
min: 1,
|
|
22259
|
+
precision: 0,
|
|
22260
|
+
onChange: function onChange(num) {
|
|
22261
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'defectiveNum');
|
|
22262
|
+
}
|
|
22263
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
22264
|
+
}
|
|
22265
|
+
}, {
|
|
22266
|
+
dataIndex: 'price',
|
|
22267
|
+
title: "\u5546\u54C1\u9500\u552E\u4EF7",
|
|
22268
|
+
width: 150,
|
|
22269
|
+
render: function render(val) {
|
|
22270
|
+
return val || val === 0 ? Number(val).toFixed(2) : '';
|
|
22271
|
+
}
|
|
22272
|
+
}, {
|
|
22273
|
+
dataIndex: 'refundMoney',
|
|
22274
|
+
title: "\u5B9E\u9000\u91D1\u989D",
|
|
22275
|
+
width: 150,
|
|
22276
|
+
render: function render(val, record, index) {
|
|
22277
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
22278
|
+
style: {
|
|
22279
|
+
width: 130
|
|
22280
|
+
},
|
|
22281
|
+
value: val,
|
|
22282
|
+
min: 0,
|
|
22283
|
+
precision: 2,
|
|
22284
|
+
onChange: function onChange(num) {
|
|
22285
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'refundMoney');
|
|
22286
|
+
}
|
|
22287
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
|
|
22288
|
+
}
|
|
22289
|
+
}, {
|
|
22290
|
+
dataIndex: 'type',
|
|
22291
|
+
title: "\u5546\u54C1\u7C7B\u578B",
|
|
22292
|
+
width: 150,
|
|
22293
|
+
render: renderTextEllipsis
|
|
22294
|
+
}, {
|
|
22295
|
+
dataIndex: 'sysPicPath',
|
|
22296
|
+
title: "\u5546\u54C1\u56FE\u7247",
|
|
22297
|
+
width: 100,
|
|
22298
|
+
headerComponentType: 'pic',
|
|
22299
|
+
render: function render(val) {
|
|
22300
|
+
var imgUrl = (val === null || val === void 0 ? void 0 : val.startsWith('http')) ? val : "https://erp.superboss.cc".concat(val);
|
|
22301
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Image, {
|
|
22302
|
+
width: 30,
|
|
22303
|
+
src: imgUrl
|
|
22304
|
+
});
|
|
22305
|
+
}
|
|
22306
|
+
}].map(function (item) {
|
|
22307
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
22308
|
+
align: 'center',
|
|
22309
|
+
ellipsis: true
|
|
22310
|
+
});
|
|
22311
|
+
}),
|
|
22312
|
+
KM_EXCHANGE_GOODS: [{
|
|
22313
|
+
dataIndex: 'skuPropertiesName',
|
|
22314
|
+
title: "\u89C4\u683C\u540D\u79F0",
|
|
22315
|
+
width: 250,
|
|
22316
|
+
render: renderTextEllipsis
|
|
22317
|
+
}, {
|
|
22318
|
+
dataIndex: 'sysSkuPropertiesName',
|
|
22319
|
+
title: "\u7CFB\u7EDF\u89C4\u683C\u540D\u79F0",
|
|
22320
|
+
width: 150,
|
|
22321
|
+
render: renderTextEllipsis
|
|
22322
|
+
}, {
|
|
22323
|
+
dataIndex: 'sysTitle',
|
|
22324
|
+
title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
|
|
22325
|
+
width: 150,
|
|
22326
|
+
render: renderTextEllipsis
|
|
22327
|
+
}, {
|
|
22328
|
+
dataIndex: 'shortTitle',
|
|
22329
|
+
title: "\u5546\u54C1\u7B80\u79F0",
|
|
22330
|
+
width: 150,
|
|
22331
|
+
render: renderTextEllipsis
|
|
22332
|
+
}, {
|
|
22333
|
+
dataIndex: 'title',
|
|
22334
|
+
title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
|
|
22335
|
+
width: 150,
|
|
22336
|
+
render: renderTextEllipsis
|
|
22337
|
+
}, {
|
|
22338
|
+
dataIndex: 'sysOuterId',
|
|
22339
|
+
title: "\u7CFB\u7EDF\u5546\u5BB6\u7F16\u7801",
|
|
22340
|
+
width: 150,
|
|
22341
|
+
render: renderTextEllipsis
|
|
22342
|
+
}, {
|
|
22343
|
+
dataIndex: 'itemSysId',
|
|
22344
|
+
title: "\u7CFB\u7EDF\u5546\u54C1ID",
|
|
22345
|
+
width: 150,
|
|
22346
|
+
render: renderTextEllipsis
|
|
22347
|
+
}, {
|
|
22348
|
+
dataIndex: 'skuSysId',
|
|
22349
|
+
title: "\u7CFB\u7EDF\u89C4\u683CID",
|
|
22350
|
+
width: 150,
|
|
22351
|
+
render: renderTextEllipsis
|
|
22352
|
+
}, {
|
|
22353
|
+
dataIndex: 'skuId',
|
|
22354
|
+
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
22355
|
+
width: 170,
|
|
22356
|
+
render: renderTextEllipsis
|
|
22357
|
+
}, {
|
|
22358
|
+
dataIndex: 'outerSkuId',
|
|
22359
|
+
title: "\u5E73\u53F0\u89C4\u683C\u7F16\u7801",
|
|
22360
|
+
width: 170,
|
|
22361
|
+
render: renderTextEllipsis
|
|
22362
|
+
}, {
|
|
22363
|
+
dataIndex: 'realNum',
|
|
22364
|
+
title: "\u5B9E\u9645\u6362\u51FA\u6570\u91CF",
|
|
22365
|
+
width: 100,
|
|
22366
|
+
validator: function validator(_rule, value, extraParams) {
|
|
22367
|
+
if (!(extraParams === null || extraParams === void 0 ? void 0 : extraParams.quantityVerify)) return undefined;
|
|
22368
|
+
var title = '';
|
|
22369
|
+
if (((value === null || value === void 0 ? void 0 : value.kmExchangeGoods) || []).some(function (goods) {
|
|
22370
|
+
var realNum = toNum$3(goods === null || goods === void 0 ? void 0 : goods.realNum);
|
|
22371
|
+
var res = typeof realNum === 'number' ? realNum < 1 : true;
|
|
22372
|
+
if (res) {
|
|
22373
|
+
title = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
|
|
22374
|
+
}
|
|
22375
|
+
return res;
|
|
22376
|
+
})) {
|
|
22377
|
+
return Promise.reject("".concat(title, "\u5B9E\u9645\u6362\u51FA\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
22378
|
+
}
|
|
22379
|
+
},
|
|
22380
|
+
render: function render(val, record, index) {
|
|
22381
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
22382
|
+
style: {
|
|
22383
|
+
width: 70
|
|
22384
|
+
},
|
|
22385
|
+
value: val,
|
|
22386
|
+
min: 1,
|
|
22387
|
+
precision: 0,
|
|
22388
|
+
onChange: function onChange(num) {
|
|
22389
|
+
updateDataHandle({
|
|
22390
|
+
realNum: num,
|
|
22391
|
+
refundMoney: num && isNumberOrNumberString$2(record.price) ? num * record.price : null
|
|
22392
|
+
}, index);
|
|
22393
|
+
}
|
|
22394
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
22395
|
+
}
|
|
22396
|
+
}, {
|
|
22397
|
+
dataIndex: 'desiredNum',
|
|
22398
|
+
title: "\u5E94\u6362\u51FA\u6570\u91CF",
|
|
22399
|
+
width: 100,
|
|
22400
|
+
validator: function validator(_rule, value) {
|
|
22401
|
+
var title = '';
|
|
22402
|
+
if (((value === null || value === void 0 ? void 0 : value.kmExchangeGoods) || []).some(function (goods) {
|
|
22403
|
+
var desiredNum = toNum$3(goods === null || goods === void 0 ? void 0 : goods.desiredNum);
|
|
22404
|
+
var res = typeof desiredNum === 'number' ? desiredNum < 1 : true;
|
|
22405
|
+
if (res) {
|
|
22406
|
+
title = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
|
|
22407
|
+
}
|
|
22408
|
+
return res;
|
|
22409
|
+
})) {
|
|
22410
|
+
return Promise.reject("".concat(title, "\u5E94\u6362\u51FA\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
22411
|
+
}
|
|
22412
|
+
},
|
|
22413
|
+
render: function render(val, record, index) {
|
|
22414
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
22415
|
+
style: {
|
|
22416
|
+
width: 70
|
|
22417
|
+
},
|
|
22418
|
+
value: val,
|
|
22419
|
+
min: 1,
|
|
22420
|
+
precision: 0,
|
|
22421
|
+
onChange: function onChange(num) {
|
|
22422
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'desiredNum');
|
|
22423
|
+
}
|
|
22424
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
22425
|
+
}
|
|
22426
|
+
}, {
|
|
22427
|
+
dataIndex: 'price',
|
|
22428
|
+
title: "\u5546\u54C1\u9500\u552E\u4EF7",
|
|
22429
|
+
width: 150,
|
|
22430
|
+
render: function render(val) {
|
|
22431
|
+
return val || val === 0 ? Number(val).toFixed(2) : '';
|
|
22432
|
+
}
|
|
22433
|
+
}, {
|
|
22434
|
+
dataIndex: 'type',
|
|
22435
|
+
title: "\u5546\u54C1\u7C7B\u578B",
|
|
22436
|
+
width: 150,
|
|
22437
|
+
render: renderTextEllipsis
|
|
22438
|
+
}, {
|
|
22439
|
+
dataIndex: 'sysPicPath',
|
|
22440
|
+
title: "\u5546\u54C1\u56FE\u7247",
|
|
22441
|
+
width: 100,
|
|
22442
|
+
headerComponentType: 'pic',
|
|
22443
|
+
render: function render(val) {
|
|
22444
|
+
var imgUrl = (val === null || val === void 0 ? void 0 : val.startsWith('http')) ? val : "https://erp.superboss.cc".concat(val);
|
|
22445
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Image, {
|
|
22446
|
+
width: 30,
|
|
22447
|
+
src: imgUrl
|
|
22448
|
+
});
|
|
22449
|
+
}
|
|
22450
|
+
}].map(function (item) {
|
|
22451
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
22452
|
+
align: 'center',
|
|
22453
|
+
ellipsis: true
|
|
22454
|
+
});
|
|
22455
|
+
})
|
|
22456
|
+
};
|
|
22457
|
+
};
|
|
22458
|
+
|
|
22459
|
+
var isNumberOrNumberString$3 = function isNumberOrNumberString(value) {
|
|
22460
|
+
if (typeof value === 'number') return true;
|
|
22461
|
+
if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
|
|
22462
|
+
return false;
|
|
22463
|
+
};
|
|
22464
|
+
function toNum$4(value) {
|
|
22465
|
+
if (typeof value === 'string') {
|
|
22466
|
+
return value ? +value : void 0;
|
|
22467
|
+
}
|
|
22468
|
+
if (typeof value === 'number') {
|
|
22469
|
+
return value;
|
|
22470
|
+
}
|
|
22471
|
+
return void 0;
|
|
22472
|
+
}
|
|
22473
|
+
var getColumns$7 = function getColumns(_ref) {
|
|
22474
|
+
var _ref$text = _ref.text,
|
|
22475
|
+
disabled = _ref.disabled,
|
|
22476
|
+
updateHandle = _ref.updateHandle,
|
|
22477
|
+
updateDataHandle = _ref.updateDataHandle;
|
|
22478
|
+
return {
|
|
22479
|
+
//巨益商品信息
|
|
22480
|
+
JY_GOODS: [{
|
|
22481
|
+
dataIndex: 'productName',
|
|
22482
|
+
title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
|
|
22483
|
+
align: 'center',
|
|
22484
|
+
ellipsis: true,
|
|
22485
|
+
width: 150,
|
|
22486
|
+
render: renderTextEllipsis
|
|
22487
|
+
}, {
|
|
22488
|
+
dataIndex: 'productCode',
|
|
22489
|
+
title: "\u7CFB\u7EDF\u5546\u54C1\u7F16\u7801",
|
|
22490
|
+
align: 'center',
|
|
22491
|
+
ellipsis: true,
|
|
22492
|
+
width: 150,
|
|
22493
|
+
render: renderTextEllipsis
|
|
22494
|
+
}, {
|
|
22495
|
+
dataIndex: 'productId',
|
|
22496
|
+
title: "\u7CFB\u7EDF\u5546\u54C1ID",
|
|
22497
|
+
align: 'center',
|
|
22498
|
+
ellipsis: true,
|
|
22499
|
+
width: 150,
|
|
22500
|
+
render: renderTextEllipsis
|
|
22501
|
+
}, {
|
|
22502
|
+
dataIndex: 'skuName',
|
|
22503
|
+
title: "\u7CFB\u7EDF\u89C4\u683C\u540D\u79F0",
|
|
22504
|
+
align: 'center',
|
|
22505
|
+
ellipsis: true,
|
|
22506
|
+
width: 150,
|
|
22507
|
+
render: renderTextEllipsis
|
|
22508
|
+
}, {
|
|
22509
|
+
dataIndex: 'skuCode',
|
|
22510
|
+
title: "\u7CFB\u7EDF\u89C4\u683C\u7F16\u7801",
|
|
22511
|
+
align: 'center',
|
|
22512
|
+
ellipsis: true,
|
|
22513
|
+
width: 150,
|
|
22514
|
+
render: renderTextEllipsis
|
|
22515
|
+
}, {
|
|
22516
|
+
dataIndex: 'specId',
|
|
22517
|
+
title: "\u89C4\u683CID",
|
|
22518
|
+
align: 'center',
|
|
22519
|
+
ellipsis: true,
|
|
22520
|
+
width: 150,
|
|
22521
|
+
render: renderTextEllipsis
|
|
22522
|
+
}, {
|
|
22523
|
+
dataIndex: 'goodsClass',
|
|
22524
|
+
title: "\u8D27\u54C1\u7C7B\u522B",
|
|
22525
|
+
width: 150,
|
|
22526
|
+
render: renderTextEllipsis
|
|
22527
|
+
}, {
|
|
22528
|
+
dataIndex: 'code',
|
|
22529
|
+
title: "\u6761\u7801",
|
|
22530
|
+
width: 150,
|
|
22531
|
+
render: renderTextEllipsis
|
|
22532
|
+
},
|
|
22533
|
+
// {
|
|
22534
|
+
// dataIndex: 'specName',
|
|
22535
|
+
// title: `规格名称`,
|
|
22536
|
+
// align: 'center',
|
|
22537
|
+
// ellipsis: true,
|
|
22538
|
+
// width: 200,
|
|
22539
|
+
// },
|
|
22540
|
+
// {
|
|
22541
|
+
// dataIndex: 'specCode',
|
|
22542
|
+
// title: `规格编号`,
|
|
22543
|
+
// align: 'center',
|
|
22544
|
+
// ellipsis: true,
|
|
22545
|
+
// width: 150,
|
|
22546
|
+
// },
|
|
22547
|
+
{
|
|
22548
|
+
dataIndex: 'mallProductName',
|
|
22549
|
+
title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
|
|
22550
|
+
align: 'center',
|
|
22551
|
+
ellipsis: true,
|
|
22552
|
+
width: 250,
|
|
22553
|
+
render: renderTextEllipsis
|
|
22554
|
+
}, {
|
|
22555
|
+
dataIndex: 'mallProductOutCode',
|
|
22556
|
+
title: "\u5E73\u53F0\u5546\u54C1\u7F16\u7801",
|
|
22557
|
+
align: 'center',
|
|
22558
|
+
ellipsis: true,
|
|
22559
|
+
width: 150,
|
|
22560
|
+
render: renderTextEllipsis
|
|
22561
|
+
}, {
|
|
22562
|
+
dataIndex: 'mallProductId',
|
|
22563
|
+
title: "\u5E73\u53F0\u5546\u54C1ID",
|
|
22564
|
+
align: 'center',
|
|
22565
|
+
ellipsis: true,
|
|
22566
|
+
width: 250,
|
|
22567
|
+
render: renderTextEllipsis
|
|
22568
|
+
}, {
|
|
22569
|
+
dataIndex: 'mallSkuName',
|
|
22570
|
+
title: "\u5E73\u53F0\u89C4\u683C\u540D\u79F0",
|
|
22571
|
+
align: 'center',
|
|
22572
|
+
ellipsis: true,
|
|
22573
|
+
width: 250,
|
|
22574
|
+
render: renderTextEllipsis
|
|
22575
|
+
}, {
|
|
22576
|
+
dataIndex: 'mallSkuId',
|
|
22577
|
+
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
22578
|
+
align: 'center',
|
|
22579
|
+
ellipsis: true,
|
|
22580
|
+
width: 250,
|
|
22581
|
+
render: renderTextEllipsis
|
|
22582
|
+
}, {
|
|
22583
|
+
dataIndex: 'sellCount',
|
|
22584
|
+
title: "\u6570\u91CF",
|
|
22585
|
+
width: 100,
|
|
22586
|
+
render: function render(val, record, index) {
|
|
22587
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
22588
|
+
style: {
|
|
22589
|
+
width: 70
|
|
22590
|
+
},
|
|
22591
|
+
value: val,
|
|
22592
|
+
min: 1,
|
|
22593
|
+
precision: 0,
|
|
22594
|
+
onChange: function onChange(num) {
|
|
22595
|
+
updateDataHandle({
|
|
22596
|
+
sellCount: num,
|
|
22597
|
+
sellTotal: num && isNumberOrNumberString$3(record.sellPrice) ? num * record.sellPrice : null
|
|
22598
|
+
}, index);
|
|
22599
|
+
}
|
|
22600
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
22601
|
+
}
|
|
22602
|
+
}, {
|
|
22603
|
+
dataIndex: 'sellPrice',
|
|
22604
|
+
title: "\u5355\u4EF7",
|
|
22605
|
+
width: 150,
|
|
22606
|
+
render: function render(val, record, index) {
|
|
22607
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
22608
|
+
style: {
|
|
22609
|
+
width: 130
|
|
22610
|
+
},
|
|
22611
|
+
value: val,
|
|
22612
|
+
min: 0,
|
|
22613
|
+
precision: 2,
|
|
22614
|
+
onChange: function onChange(num) {
|
|
22615
|
+
updateDataHandle({
|
|
22616
|
+
sellPrice: num,
|
|
22617
|
+
sellTotal: num && isNumberOrNumberString$3(record.sellCount) ? num * record.sellCount : null
|
|
22618
|
+
}, index);
|
|
22619
|
+
}
|
|
22620
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
22621
|
+
}
|
|
22622
|
+
}, {
|
|
22623
|
+
dataIndex: 'mallSellingPrice',
|
|
22624
|
+
title: "\u5E73\u53F0\u5546\u54C1\u4EF7\u683C",
|
|
22625
|
+
width: 150
|
|
22626
|
+
}, {
|
|
22627
|
+
dataIndex: 'sellTotal',
|
|
22628
|
+
title: "\u91D1\u989D",
|
|
22629
|
+
width: 150
|
|
22630
|
+
}, {
|
|
22631
|
+
dataIndex: 'settlementPrice',
|
|
22632
|
+
title: "\u7ED3\u7B97\u4EF7",
|
|
22633
|
+
width: 150
|
|
22634
|
+
}, {
|
|
22635
|
+
dataIndex: 'divideOrderFee',
|
|
22636
|
+
title: "\u5206\u644A\u5B9E\u4ED8\u91D1\u989D",
|
|
22637
|
+
width: 150
|
|
22093
22638
|
}, {
|
|
22094
22639
|
dataIndex: 'bfit',
|
|
22095
22640
|
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
@@ -22272,7 +22817,7 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
22272
22817
|
onChange: function onChange(num) {
|
|
22273
22818
|
updateDataHandle({
|
|
22274
22819
|
sellCount: num,
|
|
22275
|
-
sellTotal: num && isNumberOrNumberString$
|
|
22820
|
+
sellTotal: num && isNumberOrNumberString$3(record.sellPrice) ? num * record.sellPrice : null
|
|
22276
22821
|
}, index);
|
|
22277
22822
|
}
|
|
22278
22823
|
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
@@ -22292,7 +22837,7 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
22292
22837
|
onChange: function onChange(num) {
|
|
22293
22838
|
updateDataHandle({
|
|
22294
22839
|
sellPrice: num,
|
|
22295
|
-
sellTotal: num && isNumberOrNumberString$
|
|
22840
|
+
sellTotal: num && isNumberOrNumberString$3(record.sellCount) ? num * record.sellCount : null
|
|
22296
22841
|
}, index);
|
|
22297
22842
|
}
|
|
22298
22843
|
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
@@ -22416,7 +22961,7 @@ var getColumns$8 = function getColumns(_ref) {
|
|
|
22416
22961
|
};
|
|
22417
22962
|
};
|
|
22418
22963
|
|
|
22419
|
-
var isNumberOrNumberString$
|
|
22964
|
+
var isNumberOrNumberString$4 = function isNumberOrNumberString(value) {
|
|
22420
22965
|
if (typeof value === 'number') return true;
|
|
22421
22966
|
if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
|
|
22422
22967
|
return false;
|
|
@@ -22506,7 +23051,7 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22506
23051
|
onChange: function onChange(num) {
|
|
22507
23052
|
updateDataHandle({
|
|
22508
23053
|
sellCount: num,
|
|
22509
|
-
sellTotal: num && isNumberOrNumberString$
|
|
23054
|
+
sellTotal: num && isNumberOrNumberString$4(record.sellPrice) ? num * record.sellPrice : null
|
|
22510
23055
|
}, index);
|
|
22511
23056
|
}
|
|
22512
23057
|
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
@@ -22531,14 +23076,14 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22531
23076
|
onChange: function onChange(num) {
|
|
22532
23077
|
updateDataHandle({
|
|
22533
23078
|
sellPrice: num,
|
|
22534
|
-
sellTotal: num && isNumberOrNumberString$
|
|
23079
|
+
sellTotal: num && isNumberOrNumberString$4(record.sellCount) ? num * record.sellCount : null
|
|
22535
23080
|
}, index);
|
|
22536
23081
|
}
|
|
22537
23082
|
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
22538
23083
|
}
|
|
22539
23084
|
}, {
|
|
22540
23085
|
dataIndex: 'sellTotal',
|
|
22541
|
-
title: "\u91D1\u989D",
|
|
23086
|
+
title: "\u603B\u91D1\u989D",
|
|
22542
23087
|
width: 150
|
|
22543
23088
|
}, {
|
|
22544
23089
|
dataIndex: 'discountTotal',
|
|
@@ -22563,7 +23108,22 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22563
23108
|
}, {
|
|
22564
23109
|
dataIndex: 'divideSellTotal',
|
|
22565
23110
|
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
22566
|
-
width: 150
|
|
23111
|
+
width: 150,
|
|
23112
|
+
render: function render(val, record, index) {
|
|
23113
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
23114
|
+
style: {
|
|
23115
|
+
width: 130
|
|
23116
|
+
},
|
|
23117
|
+
value: val,
|
|
23118
|
+
min: 0,
|
|
23119
|
+
precision: 2,
|
|
23120
|
+
onChange: function onChange(num) {
|
|
23121
|
+
updateDataHandle({
|
|
23122
|
+
divideSellTotal: num
|
|
23123
|
+
}, index);
|
|
23124
|
+
}
|
|
23125
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
23126
|
+
}
|
|
22567
23127
|
}, {
|
|
22568
23128
|
dataIndex: 'isGift',
|
|
22569
23129
|
title: "\u662F\u5426\u8D60\u54C1",
|
|
@@ -22582,12 +23142,12 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22582
23142
|
},
|
|
22583
23143
|
options: [{
|
|
22584
23144
|
label: '是',
|
|
22585
|
-
value:
|
|
23145
|
+
value: 1
|
|
22586
23146
|
}, {
|
|
22587
23147
|
label: '否',
|
|
22588
|
-
value:
|
|
23148
|
+
value: 0
|
|
22589
23149
|
}]
|
|
22590
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val
|
|
23150
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val == 1 ? '是' : '否');
|
|
22591
23151
|
}
|
|
22592
23152
|
}, {
|
|
22593
23153
|
dataIndex: 'isFit',
|
|
@@ -22607,12 +23167,12 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22607
23167
|
},
|
|
22608
23168
|
options: [{
|
|
22609
23169
|
label: '是',
|
|
22610
|
-
value:
|
|
23170
|
+
value: 1
|
|
22611
23171
|
}, {
|
|
22612
23172
|
label: '否',
|
|
22613
|
-
value:
|
|
23173
|
+
value: 0
|
|
22614
23174
|
}]
|
|
22615
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val
|
|
23175
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val == 1 ? '是' : '否');
|
|
22616
23176
|
}
|
|
22617
23177
|
}, {
|
|
22618
23178
|
dataIndex: 'isPresell',
|
|
@@ -22637,7 +23197,7 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22637
23197
|
label: '否',
|
|
22638
23198
|
value: '0'
|
|
22639
23199
|
}]
|
|
22640
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val
|
|
23200
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val == '1' ? '是' : '否');
|
|
22641
23201
|
}
|
|
22642
23202
|
}, {
|
|
22643
23203
|
dataIndex: 'brandName',
|
|
@@ -22815,7 +23375,7 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22815
23375
|
onChange: function onChange(num) {
|
|
22816
23376
|
updateDataHandle({
|
|
22817
23377
|
sellCount: num,
|
|
22818
|
-
sellTotal: num && isNumberOrNumberString$
|
|
23378
|
+
sellTotal: num && isNumberOrNumberString$4(record.sellPrice) ? num * record.sellPrice : null
|
|
22819
23379
|
}, index);
|
|
22820
23380
|
}
|
|
22821
23381
|
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
@@ -22835,7 +23395,7 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22835
23395
|
onChange: function onChange(num) {
|
|
22836
23396
|
updateDataHandle({
|
|
22837
23397
|
sellPrice: num,
|
|
22838
|
-
sellTotal: num && isNumberOrNumberString$
|
|
23398
|
+
sellTotal: num && isNumberOrNumberString$4(record.sellCount) ? num * record.sellCount : null
|
|
22839
23399
|
}, index);
|
|
22840
23400
|
}
|
|
22841
23401
|
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
@@ -22856,8 +23416,8 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22856
23416
|
width: 250,
|
|
22857
23417
|
render: function render(val, record, index) {
|
|
22858
23418
|
return !disabled ? /*#__PURE__*/React__default['default'].createElement(ApaasInput, {
|
|
22859
|
-
onChange: function onChange(
|
|
22860
|
-
updateHandle(value, index, 'reason');
|
|
23419
|
+
onChange: function onChange(e) {
|
|
23420
|
+
updateHandle(e.target.value, index, 'reason');
|
|
22861
23421
|
}
|
|
22862
23422
|
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
22863
23423
|
}
|
|
@@ -22873,12 +23433,12 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22873
23433
|
},
|
|
22874
23434
|
options: [{
|
|
22875
23435
|
label: '是',
|
|
22876
|
-
value:
|
|
23436
|
+
value: 1
|
|
22877
23437
|
}, {
|
|
22878
23438
|
label: '否',
|
|
22879
|
-
value:
|
|
23439
|
+
value: 0
|
|
22880
23440
|
}]
|
|
22881
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val ===
|
|
23441
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val === 1 ? '是' : '否');
|
|
22882
23442
|
}
|
|
22883
23443
|
}, {
|
|
22884
23444
|
dataIndex: 'isFit',
|
|
@@ -22892,12 +23452,12 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22892
23452
|
},
|
|
22893
23453
|
options: [{
|
|
22894
23454
|
label: '是',
|
|
22895
|
-
value:
|
|
23455
|
+
value: 1
|
|
22896
23456
|
}, {
|
|
22897
23457
|
label: '否',
|
|
22898
|
-
value:
|
|
23458
|
+
value: 0
|
|
22899
23459
|
}]
|
|
22900
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val ===
|
|
23460
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val === 1 ? '是' : '否');
|
|
22901
23461
|
}
|
|
22902
23462
|
}, {
|
|
22903
23463
|
dataIndex: 'brandName',
|
|
@@ -23063,7 +23623,8 @@ var getColumnsMap$1 = function getColumnsMap(args) {
|
|
|
23063
23623
|
})), getColumns$6({
|
|
23064
23624
|
text: text,
|
|
23065
23625
|
disabled: disabled,
|
|
23066
|
-
updateHandle: updateHandle
|
|
23626
|
+
updateHandle: updateHandle,
|
|
23627
|
+
updateDataHandle: updateDataHandle
|
|
23067
23628
|
})), getColumns$7({
|
|
23068
23629
|
text: text,
|
|
23069
23630
|
disabled: disabled,
|
|
@@ -23087,7 +23648,7 @@ var getColumnsMap$1 = function getColumnsMap(args) {
|
|
|
23087
23648
|
});
|
|
23088
23649
|
};
|
|
23089
23650
|
var erpColumnsMap = getColumnsMap$1();
|
|
23090
|
-
var erpFormValidator = function erpFormValidator(_rule, value, type) {
|
|
23651
|
+
var erpFormValidator = function erpFormValidator(_rule, value, type, extraParams) {
|
|
23091
23652
|
var validatorFnList = (erpColumnsMap[type] || erpColumnsMap['default']).map(function (column) {
|
|
23092
23653
|
return column.validator;
|
|
23093
23654
|
}).filter(Boolean);
|
|
@@ -23097,7 +23658,7 @@ var erpFormValidator = function erpFormValidator(_rule, value, type) {
|
|
|
23097
23658
|
try {
|
|
23098
23659
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
23099
23660
|
var validatorFn = _step.value;
|
|
23100
|
-
var validatorResult = validatorFn(_rule, value,
|
|
23661
|
+
var validatorResult = validatorFn(_rule, value, extraParams);
|
|
23101
23662
|
if (validatorResult) {
|
|
23102
23663
|
res = validatorResult;
|
|
23103
23664
|
break;
|
|
@@ -23222,7 +23783,7 @@ var isErpType = {
|
|
|
23222
23783
|
return ['JST_GOODS', 'JST_REISSUE_GOODS', 'JST_RETURN_GOODS', 'JST_EXCHANGE_GOODS'].includes(type);
|
|
23223
23784
|
},
|
|
23224
23785
|
isKm: function isKm(type) {
|
|
23225
|
-
return ['KM_GOODS', 'KM_REISSUE_GOODS'].includes(type);
|
|
23786
|
+
return ['KM_GOODS', 'KM_REISSUE_GOODS', 'KM_RETURN_GOODS', 'KM_EXCHANGE_GOODS'].includes(type);
|
|
23226
23787
|
},
|
|
23227
23788
|
isJy: function isJy(type) {
|
|
23228
23789
|
return ['JY_GOODS', 'JY_REISSUE_GOODS'].includes(type);
|
|
@@ -23281,6 +23842,13 @@ var processGoods$1 = function processGoods(_ref) {
|
|
|
23281
23842
|
canUpdateNumber: canUpdateNumber,
|
|
23282
23843
|
source: source
|
|
23283
23844
|
});
|
|
23845
|
+
} else if (isErpType.isJky(type)) {
|
|
23846
|
+
newList = processJkyGoods$1({
|
|
23847
|
+
list: list,
|
|
23848
|
+
type: type,
|
|
23849
|
+
canUpdateNumber: canUpdateNumber,
|
|
23850
|
+
source: source
|
|
23851
|
+
});
|
|
23284
23852
|
} else {
|
|
23285
23853
|
newList = processDefaultGoods({
|
|
23286
23854
|
list: list,
|
|
@@ -23329,11 +23897,45 @@ var processJyGoods = function processJyGoods(_ref2) {
|
|
|
23329
23897
|
});
|
|
23330
23898
|
});
|
|
23331
23899
|
};
|
|
23332
|
-
|
|
23333
|
-
var processWdtGoods$1 = function processWdtGoods(_ref3) {
|
|
23900
|
+
var processJkyGoods$1 = function processJkyGoods(_ref3) {
|
|
23334
23901
|
var list = _ref3.list,
|
|
23335
|
-
type = _ref3.type,
|
|
23336
23902
|
canUpdateNumber = _ref3.canUpdateNumber;
|
|
23903
|
+
return list.map(function (item) {
|
|
23904
|
+
var goodName = item.goodName,
|
|
23905
|
+
goodNo = item.goodNo,
|
|
23906
|
+
goodId = item.goodId,
|
|
23907
|
+
specBarcode = item.specBarcode,
|
|
23908
|
+
retailPrice = item.retailPrice,
|
|
23909
|
+
isGift = item.isGift,
|
|
23910
|
+
skuType = item.skuType,
|
|
23911
|
+
specImgUrl = item.specImgUrl,
|
|
23912
|
+
categoryName = item.categoryName;
|
|
23913
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
23914
|
+
cateName: categoryName,
|
|
23915
|
+
goodsName: goodName,
|
|
23916
|
+
goodsNo: goodNo,
|
|
23917
|
+
goodsId: goodId,
|
|
23918
|
+
barcode: specBarcode,
|
|
23919
|
+
skuImgUrl: specImgUrl,
|
|
23920
|
+
combinationName: goodName,
|
|
23921
|
+
combinationCode: goodNo,
|
|
23922
|
+
isGift: isGift ? 1 : 0,
|
|
23923
|
+
isFit: skuType === 'combine' ? 1 : 0,
|
|
23924
|
+
uuid: kmkfUtils.uuid(),
|
|
23925
|
+
canDelete: true,
|
|
23926
|
+
sellCount: 1,
|
|
23927
|
+
sellPrice: retailPrice,
|
|
23928
|
+
sellTotal: retailPrice ? (retailPrice * 1).toFixed(2) : '',
|
|
23929
|
+
canEdit: true,
|
|
23930
|
+
canUpdateNumber: canUpdateNumber
|
|
23931
|
+
});
|
|
23932
|
+
});
|
|
23933
|
+
};
|
|
23934
|
+
// 处理不同类型的商品数据
|
|
23935
|
+
var processWdtGoods$1 = function processWdtGoods(_ref4) {
|
|
23936
|
+
var list = _ref4.list,
|
|
23937
|
+
type = _ref4.type,
|
|
23938
|
+
canUpdateNumber = _ref4.canUpdateNumber;
|
|
23337
23939
|
return list.map(function (item) {
|
|
23338
23940
|
var processedItem = _objectSpread2(_objectSpread2({}, item), {}, {
|
|
23339
23941
|
uuid: kmkfUtils.uuid(),
|
|
@@ -23351,9 +23953,9 @@ var processWdtGoods$1 = function processWdtGoods(_ref3) {
|
|
|
23351
23953
|
return processedItem;
|
|
23352
23954
|
});
|
|
23353
23955
|
};
|
|
23354
|
-
var processBsE3Goods$1 = function processBsE3Goods(
|
|
23355
|
-
var list =
|
|
23356
|
-
canUpdateNumber =
|
|
23956
|
+
var processBsE3Goods$1 = function processBsE3Goods(_ref5) {
|
|
23957
|
+
var list = _ref5.list,
|
|
23958
|
+
canUpdateNumber = _ref5.canUpdateNumber;
|
|
23357
23959
|
return list.map(function (item) {
|
|
23358
23960
|
var specNo = item.specNo,
|
|
23359
23961
|
specId = item.specId,
|
|
@@ -23388,9 +23990,9 @@ var processBsE3Goods$1 = function processBsE3Goods(_ref4) {
|
|
|
23388
23990
|
});
|
|
23389
23991
|
});
|
|
23390
23992
|
};
|
|
23391
|
-
var processGyGoods$1 = function processGyGoods(
|
|
23392
|
-
var list =
|
|
23393
|
-
source =
|
|
23993
|
+
var processGyGoods$1 = function processGyGoods(_ref6) {
|
|
23994
|
+
var list = _ref6.list,
|
|
23995
|
+
source = _ref6.source;
|
|
23394
23996
|
var isFormWorkOrder = source === 'workOrder';
|
|
23395
23997
|
return list.map(function (item) {
|
|
23396
23998
|
var goodName = item.goodName,
|
|
@@ -23417,8 +24019,8 @@ var processGyGoods$1 = function processGyGoods(_ref5) {
|
|
|
23417
24019
|
});
|
|
23418
24020
|
});
|
|
23419
24021
|
};
|
|
23420
|
-
var processJstGoods$1 = function processJstGoods(
|
|
23421
|
-
var list =
|
|
24022
|
+
var processJstGoods$1 = function processJstGoods(_ref7) {
|
|
24023
|
+
var list = _ref7.list;
|
|
23422
24024
|
return list.map(function (item) {
|
|
23423
24025
|
return {
|
|
23424
24026
|
name: item.goodName,
|
|
@@ -23436,9 +24038,9 @@ var processJstGoods$1 = function processJstGoods(_ref6) {
|
|
|
23436
24038
|
};
|
|
23437
24039
|
});
|
|
23438
24040
|
};
|
|
23439
|
-
var processKmGoods$1 = function processKmGoods(
|
|
23440
|
-
var list =
|
|
23441
|
-
type =
|
|
24041
|
+
var processKmGoods$1 = function processKmGoods(_ref8) {
|
|
24042
|
+
var list = _ref8.list,
|
|
24043
|
+
type = _ref8.type;
|
|
23442
24044
|
var initParamsMap = {
|
|
23443
24045
|
KM_GOODS: {
|
|
23444
24046
|
num: 1
|
|
@@ -23446,18 +24048,26 @@ var processKmGoods$1 = function processKmGoods(_ref7) {
|
|
|
23446
24048
|
KM_REISSUE_GOODS: {
|
|
23447
24049
|
realNum: 1,
|
|
23448
24050
|
desiredNum: 1
|
|
24051
|
+
},
|
|
24052
|
+
KM_RETURN_GOODS: {},
|
|
24053
|
+
KM_EXCHANGE_GOODS: {
|
|
24054
|
+
realNum: 1,
|
|
24055
|
+
desiredNum: 1
|
|
23449
24056
|
}
|
|
23450
24057
|
};
|
|
23451
24058
|
return list.map(function (item) {
|
|
23452
24059
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
23453
24060
|
skuPropertiesName: item.specName,
|
|
24061
|
+
sysSkuPropertiesName: item.specId,
|
|
23454
24062
|
sysTitle: item.goodName,
|
|
23455
24063
|
title: null,
|
|
23456
24064
|
shortTitle: item.goodShortName,
|
|
23457
24065
|
sysOuterId: item.goodNo,
|
|
23458
24066
|
outerId: item.goodNo,
|
|
23459
24067
|
skuSysId: item.specId,
|
|
24068
|
+
sysSkuId: item.specId,
|
|
23460
24069
|
itemSysId: item.goodId,
|
|
24070
|
+
sysItemId: item.goodId,
|
|
23461
24071
|
sysPicPath: item.goodPicUrl,
|
|
23462
24072
|
payment: null,
|
|
23463
24073
|
price: item.retailPrice,
|
|
@@ -23468,9 +24078,9 @@ var processKmGoods$1 = function processKmGoods(_ref7) {
|
|
|
23468
24078
|
}, initParamsMap[type] || {});
|
|
23469
24079
|
});
|
|
23470
24080
|
};
|
|
23471
|
-
var processDefaultGoods = function processDefaultGoods(
|
|
23472
|
-
var list =
|
|
23473
|
-
canUpdateNumber =
|
|
24081
|
+
var processDefaultGoods = function processDefaultGoods(_ref9) {
|
|
24082
|
+
var list = _ref9.list,
|
|
24083
|
+
canUpdateNumber = _ref9.canUpdateNumber;
|
|
23474
24084
|
return list.map(function (item) {
|
|
23475
24085
|
var goodsId = item.goodsId,
|
|
23476
24086
|
name = item.name,
|
|
@@ -23513,6 +24123,8 @@ var GoodsModalMap = {
|
|
|
23513
24123
|
JST_EXCHANGE_GOODS: JstGoodsModal,
|
|
23514
24124
|
KM_GOODS: KmGoodsModal,
|
|
23515
24125
|
KM_REISSUE_GOODS: KmGoodsModal,
|
|
24126
|
+
KM_RETURN_GOODS: KmGoodsModal,
|
|
24127
|
+
KM_EXCHANGE_GOODS: KmGoodsModal,
|
|
23516
24128
|
JY_GOODS: JyGoodsModal$1,
|
|
23517
24129
|
JY_REISSUE_GOODS: JyGoodsModal$1,
|
|
23518
24130
|
JKY_GOODS: JkyGoodsModal$1,
|
|
@@ -23532,6 +24144,8 @@ var systemOrderNoMap = {
|
|
|
23532
24144
|
JKY_GOODS: 'tradeNo',
|
|
23533
24145
|
JKY_REISSUE_GOODS: 'tradeNo',
|
|
23534
24146
|
KM_REISSUE_GOODS: 'sid',
|
|
24147
|
+
KM_RETURN_GOODS: 'sid',
|
|
24148
|
+
KM_EXCHANGE_GOODS: 'sid',
|
|
23535
24149
|
JST_REISSUE_GOODS: 'oId',
|
|
23536
24150
|
GY_REISSUE_GOODS: 'code',
|
|
23537
24151
|
BS_E3_REISSUE_GOODS: 'orderSn',
|
|
@@ -23557,7 +24171,10 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
23557
24171
|
type = _ref$type === void 0 ? '' : _ref$type,
|
|
23558
24172
|
width = _ref.width,
|
|
23559
24173
|
_ref$isReissueType = _ref.isReissueType,
|
|
23560
|
-
isReissueType = _ref$isReissueType === void 0 ? false : _ref$isReissueType
|
|
24174
|
+
isReissueType = _ref$isReissueType === void 0 ? false : _ref$isReissueType,
|
|
24175
|
+
_ref$isReloadSelectTa = _ref.isReloadSelectTable,
|
|
24176
|
+
isReloadSelectTable = _ref$isReloadSelectTa === void 0 ? false : _ref$isReloadSelectTa,
|
|
24177
|
+
validSystemOrderFn = _ref.validSystemOrderFn;
|
|
23561
24178
|
var _useState = React.useState(),
|
|
23562
24179
|
_useState2 = _slicedToArray(_useState, 2),
|
|
23563
24180
|
selectSystemNo = _useState2[0],
|
|
@@ -23576,7 +24193,7 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
23576
24193
|
systemItemIds = dataSource === null || dataSource === void 0 ? void 0 : dataSource.filter(function (item) {
|
|
23577
24194
|
return item === null || item === void 0 ? void 0 : item.sysItemId;
|
|
23578
24195
|
}).map(function (item) {
|
|
23579
|
-
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);
|
|
24196
|
+
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);
|
|
23580
24197
|
});
|
|
23581
24198
|
_context.next = 3;
|
|
23582
24199
|
return kmkfUtils.servers.KM.getSupplierSingleton(systemItemIds);
|
|
@@ -23585,7 +24202,7 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
23585
24202
|
dataSource === null || dataSource === void 0 ? void 0 : (_dataSource$filter = dataSource.filter(function (item) {
|
|
23586
24203
|
return item === null || item === void 0 ? void 0 : item.sysItemId;
|
|
23587
24204
|
})) === null || _dataSource$filter === void 0 ? void 0 : _dataSource$filter.forEach(function (item) {
|
|
23588
|
-
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);
|
|
24205
|
+
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);
|
|
23589
24206
|
var supplierInfo = supplierMap.get(key);
|
|
23590
24207
|
item.supplierCode = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierCode;
|
|
23591
24208
|
item.supplierName = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierName;
|
|
@@ -23602,36 +24219,52 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
23602
24219
|
}();
|
|
23603
24220
|
var openModal = /*#__PURE__*/function () {
|
|
23604
24221
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
24222
|
+
var flag;
|
|
23605
24223
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
23606
24224
|
while (1) switch (_context2.prev = _context2.next) {
|
|
23607
24225
|
case 0:
|
|
24226
|
+
if (!validSystemOrderFn) {
|
|
24227
|
+
_context2.next = 7;
|
|
24228
|
+
break;
|
|
24229
|
+
}
|
|
24230
|
+
_context2.next = 3;
|
|
24231
|
+
return validSystemOrderFn();
|
|
24232
|
+
case 3:
|
|
24233
|
+
flag = _context2.sent;
|
|
24234
|
+
if (!(flag === false)) {
|
|
24235
|
+
_context2.next = 7;
|
|
24236
|
+
break;
|
|
24237
|
+
}
|
|
24238
|
+
console.log('validSystemOrderFn校验不通过');
|
|
24239
|
+
return _context2.abrupt("return");
|
|
24240
|
+
case 7:
|
|
23608
24241
|
if (!validSystemOrder) {
|
|
23609
|
-
_context2.next =
|
|
24242
|
+
_context2.next = 10;
|
|
23610
24243
|
break;
|
|
23611
24244
|
}
|
|
23612
24245
|
antd.message.warning('请选择补发系统单');
|
|
23613
24246
|
return _context2.abrupt("return");
|
|
23614
|
-
case
|
|
23615
|
-
if (!(getDataSourceAsync && !(dataSource === null || dataSource === void 0 ? void 0 : dataSource.length))) {
|
|
23616
|
-
_context2.next =
|
|
24247
|
+
case 10:
|
|
24248
|
+
if (!(getDataSourceAsync && (!(dataSource === null || dataSource === void 0 ? void 0 : dataSource.length) || isReloadSelectTable))) {
|
|
24249
|
+
_context2.next = 13;
|
|
23617
24250
|
break;
|
|
23618
24251
|
}
|
|
23619
|
-
_context2.next =
|
|
24252
|
+
_context2.next = 13;
|
|
23620
24253
|
return getDataSourceAsync();
|
|
23621
|
-
case
|
|
23622
|
-
if (!['KM_GOODS', 'KM_REISSUE_GOODS'].includes(type)) {
|
|
23623
|
-
_context2.next =
|
|
24254
|
+
case 13:
|
|
24255
|
+
if (!['KM_GOODS', 'KM_REISSUE_GOODS', 'KM_RETURN_GOODS'].includes(type)) {
|
|
24256
|
+
_context2.next = 16;
|
|
23624
24257
|
break;
|
|
23625
24258
|
}
|
|
23626
|
-
_context2.next =
|
|
24259
|
+
_context2.next = 16;
|
|
23627
24260
|
return getKmSupplier(dataSource);
|
|
23628
|
-
case
|
|
24261
|
+
case 16:
|
|
23629
24262
|
setTradeGoodsVisible(true);
|
|
23630
24263
|
// 补发直接传入的是systemNo
|
|
23631
24264
|
if (isShowSelect && isReissueType) {
|
|
23632
24265
|
setSelectSystemNo(selectedSystemOrders || []);
|
|
23633
24266
|
}
|
|
23634
|
-
case
|
|
24267
|
+
case 18:
|
|
23635
24268
|
case "end":
|
|
23636
24269
|
return _context2.stop();
|
|
23637
24270
|
}
|
|
@@ -23743,9 +24376,10 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
23743
24376
|
}
|
|
23744
24377
|
}), /*#__PURE__*/React__default['default'].createElement("span", null, "\u5DF2\u9009\u62E9(", currentTradeOriginGoods === null || currentTradeOriginGoods === void 0 ? void 0 : currentTradeOriginGoods.length, "/", filterDataSource === null || filterDataSource === void 0 ? void 0 : filterDataSource.length, ")")));
|
|
23745
24378
|
};
|
|
24379
|
+
SelectTradeGoods.displayName = 'SelectTradeGoods';
|
|
23746
24380
|
var getButtonText = function getButtonText() {
|
|
23747
24381
|
var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
23748
|
-
if (['KM_GOODS', 'KM_REISSUE_GOODS'].includes(type)) {
|
|
24382
|
+
if (['KM_GOODS', 'KM_REISSUE_GOODS', 'KM_EXCHANGE_GOODS'].includes(type)) {
|
|
23749
24383
|
return '选择快麦ERP商品';
|
|
23750
24384
|
}
|
|
23751
24385
|
if (['BS_E3_GOODS', 'BS_E3_REISSUE_GOODS', 'BS_E3_EXCHANGE_GOODS'].includes(type)) {
|
|
@@ -23816,14 +24450,16 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
23816
24450
|
_props$templateDetail = props.templateDetail,
|
|
23817
24451
|
templateDetail = _props$templateDetail === void 0 ? {} : _props$templateDetail,
|
|
23818
24452
|
_props$hasSelectedSys = props.hasSelectedSystemOrder,
|
|
23819
|
-
hasSelectedSystemOrder = _props$hasSelectedSys === void 0 ? false : _props$hasSelectedSys
|
|
24453
|
+
hasSelectedSystemOrder = _props$hasSelectedSys === void 0 ? false : _props$hasSelectedSys,
|
|
24454
|
+
isReloadSelectTable = props.isReloadSelectTable,
|
|
24455
|
+
validSystemOrderFn = props.validSystemOrderFn;
|
|
23820
24456
|
var canDelete = ['JST_AFTERSALE_GOODS'].includes(type);
|
|
23821
24457
|
var uniqueKey = (tradeGoods === null || tradeGoods === void 0 ? void 0 : tradeGoods.uniqueKey) || 'uuid';
|
|
23822
24458
|
// 监听聚水潭退货商品
|
|
23823
24459
|
var jstReturnGoods = antd.Form === null || antd.Form === void 0 ? void 0 : antd.Form.useWatch('3979edfd6d', form);
|
|
23824
24460
|
var isShowSelectTradeGoods = type !== 'JST_EXCHANGE_GOODS' || (jstReturnGoods === null || jstReturnGoods === void 0 ? void 0 : jstReturnGoods.jstSystemOrderNo);
|
|
23825
24461
|
// 判断是否为是否展示系统单筛选项
|
|
23826
|
-
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;
|
|
24462
|
+
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;
|
|
23827
24463
|
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;
|
|
23828
24464
|
var refModal = React.useRef();
|
|
23829
24465
|
console.debug('表格数据', value);
|
|
@@ -23913,6 +24549,8 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
23913
24549
|
case 'GY_RETURN_GOODS':
|
|
23914
24550
|
case 'KM_GOODS':
|
|
23915
24551
|
case 'KM_REISSUE_GOODS':
|
|
24552
|
+
case 'KM_RETURN_GOODS':
|
|
24553
|
+
case 'KM_EXCHANGE_GOODS':
|
|
23916
24554
|
case 'JY_GOODS':
|
|
23917
24555
|
case 'JY_REISSUE_GOODS':
|
|
23918
24556
|
case 'JKY_GOODS':
|
|
@@ -24115,6 +24753,8 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
24115
24753
|
checked: isStrict,
|
|
24116
24754
|
onChange: handleCheckboxChange
|
|
24117
24755
|
}, "\u5408\u5E76\u5355\uFF0C\u52FE\u9009\u540E\u53EA\u5C55\u793A\u5F53\u524D\u5E73\u53F0\u8BA2\u5355\u5546\u54C1"), !lodash.isEmpty(tradeGoods) && isShowSelectTradeGoods && /*#__PURE__*/React__default['default'].createElement(SelectTradeGoods, {
|
|
24756
|
+
isReloadSelectTable: isReloadSelectTable,
|
|
24757
|
+
validSystemOrderFn: validSystemOrderFn,
|
|
24118
24758
|
validSystemOrder: validSystemOrder,
|
|
24119
24759
|
isShowSelect: isShowSelect,
|
|
24120
24760
|
uniqueKey: uniqueKey,
|
|
@@ -24845,7 +25485,8 @@ var getWdtOrderListSingleton = function getWdtOrderListSingleton(orderNo) {
|
|
|
24845
25485
|
billNo: item.tradeNo,
|
|
24846
25486
|
billType: kmkfUtils.WDT_ORDER_TYPE_MAP[item.tradeType],
|
|
24847
25487
|
billTag: item.tagName || item.tags,
|
|
24848
|
-
tradeStatusValue: kmkfUtils.tradeStatusMap === null || kmkfUtils.tradeStatusMap === void 0 ? void 0 : (_tradeStatusMap$data$ = kmkfUtils.tradeStatusMap[data.data.version]) === null || _tradeStatusMap$data$ === void 0 ? void 0 : _tradeStatusMap$data$[item.tradeStatus]
|
|
25488
|
+
tradeStatusValue: kmkfUtils.tradeStatusMap === null || kmkfUtils.tradeStatusMap === void 0 ? void 0 : (_tradeStatusMap$data$ = kmkfUtils.tradeStatusMap[data.data.version]) === null || _tradeStatusMap$data$ === void 0 ? void 0 : _tradeStatusMap$data$[item.tradeStatus],
|
|
25489
|
+
logisticsName: kmkfUtils.ExpressData.getInstance('wdt').getExpressNameByCode(item === null || item === void 0 ? void 0 : item.logisticsCode, false) || (item === null || item === void 0 ? void 0 : item.logisticsName)
|
|
24849
25490
|
});
|
|
24850
25491
|
});
|
|
24851
25492
|
}
|
|
@@ -25132,21 +25773,25 @@ var getJkyOrderListSingleton = function getJkyOrderListSingleton(orderNo) {
|
|
|
25132
25773
|
extendRequest('/qy/gdfw/jky/erp/trade/fullInfo', {
|
|
25133
25774
|
method: 'post',
|
|
25134
25775
|
data: {
|
|
25135
|
-
|
|
25776
|
+
sourceTradeNos: orderNo
|
|
25136
25777
|
}
|
|
25137
25778
|
}).then(function (res) {
|
|
25138
25779
|
if (res === null || res === void 0 ? void 0 : res.success) {
|
|
25139
|
-
var _res$data, _res$
|
|
25140
|
-
if (res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 :
|
|
25141
|
-
var _filterJkyOrders
|
|
25142
|
-
res.data.trades = (_filterJkyOrders = kmkfUtils.filterJkyOrders(res === null || res === void 0 ? void 0 :
|
|
25780
|
+
var _res$data, _res$data2;
|
|
25781
|
+
if (res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.length) {
|
|
25782
|
+
var _filterJkyOrders;
|
|
25783
|
+
res.data.trades = (_filterJkyOrders = kmkfUtils.filterJkyOrders(res === null || res === void 0 ? void 0 : res.data, orderNo)) === null || _filterJkyOrders === void 0 ? void 0 : _filterJkyOrders.map(function (item) {
|
|
25143
25784
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
25785
|
+
tradeFrom: kmkfUtils.JKY_ORDER_FROM_MAP[item.tradeFrom],
|
|
25144
25786
|
tradeType: kmkfUtils.JKY_ORDER_TYPE_MAP[item.tradeType],
|
|
25145
|
-
tradeStatus: kmkfUtils.JKY_ORDER_STATUS_MAP[item.tradeStatus]
|
|
25787
|
+
tradeStatus: kmkfUtils.JKY_ORDER_STATUS_MAP[item.tradeStatus],
|
|
25788
|
+
logisticName: kmkfUtils.getJkyLogisticInfo(item, 'logisticName'),
|
|
25789
|
+
logisticCode: kmkfUtils.getJkyLogisticInfo(item, 'logisticCode'),
|
|
25790
|
+
logisticNo: kmkfUtils.getJkyLogisticInfo(item, 'logisticNo')
|
|
25146
25791
|
});
|
|
25147
25792
|
});
|
|
25148
25793
|
}
|
|
25149
|
-
resolve(((_res$
|
|
25794
|
+
resolve(((_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.trades) || []);
|
|
25150
25795
|
// 延迟10秒清除,保证订单的时效性
|
|
25151
25796
|
setTimeout(function () {
|
|
25152
25797
|
singletonMap$7.delete(orderNo);
|
|
@@ -25508,8 +26153,8 @@ var index$2 = (function (props) {
|
|
|
25508
26153
|
while (1) switch (_context8.prev = _context8.next) {
|
|
25509
26154
|
case 0:
|
|
25510
26155
|
jyUtils.getJyOrderListSingleton(orderNo).then(function (data) {
|
|
25511
|
-
var trades = (
|
|
25512
|
-
return kmkfUtils.getIsPlatformCodesIncludeOrderNos(item.
|
|
26156
|
+
var trades = (data || []).filter(function (item) {
|
|
26157
|
+
return kmkfUtils.getIsPlatformCodesIncludeOrderNos(item.tradeId, orderNo);
|
|
25513
26158
|
});
|
|
25514
26159
|
_onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, {
|
|
25515
26160
|
orders: trades,
|
|
@@ -25539,12 +26184,9 @@ var index$2 = (function (props) {
|
|
|
25539
26184
|
while (1) switch (_context9.prev = _context9.next) {
|
|
25540
26185
|
case 0:
|
|
25541
26186
|
jkyUtils.getJkyOrderListSingleton(orderNo).then(function (data) {
|
|
25542
|
-
var trades = ((data === null || data === void 0 ? void 0 : data.trades) || []).filter(function (item) {
|
|
25543
|
-
return kmkfUtils.getIsPlatformCodesIncludeOrderNos(item.platformCode, orderNo);
|
|
25544
|
-
});
|
|
25545
26187
|
_onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, {
|
|
25546
|
-
orders:
|
|
25547
|
-
showOrderInfo:
|
|
26188
|
+
orders: data || [],
|
|
26189
|
+
showOrderInfo: data || []
|
|
25548
26190
|
}));
|
|
25549
26191
|
});
|
|
25550
26192
|
onceRef.current = false;
|
|
@@ -26521,8 +27163,8 @@ var processGyOrders = function processGyOrders(_ref4) {
|
|
|
26521
27163
|
var processJyOrders = function processJyOrders(_ref5) {
|
|
26522
27164
|
var data = _ref5.data,
|
|
26523
27165
|
orderNo = _ref5.orderNo;
|
|
26524
|
-
var trades = (
|
|
26525
|
-
return kmkfUtils.getIsPlatformCodesIncludeOrderNos(item.
|
|
27166
|
+
var trades = (data || []).filter(function (item) {
|
|
27167
|
+
return kmkfUtils.getIsPlatformCodesIncludeOrderNos(item.tradeId, orderNo);
|
|
26526
27168
|
});
|
|
26527
27169
|
return trades;
|
|
26528
27170
|
};
|
|
@@ -26847,7 +27489,7 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
26847
27489
|
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) {
|
|
26848
27490
|
return item === null || item === void 0 ? void 0 : item.sysItemId;
|
|
26849
27491
|
})) === null || _value$kmGoods$filter === void 0 ? void 0 : _value$kmGoods$filter.forEach(function (item) {
|
|
26850
|
-
var key = item.sysSkuId == '-1' ? item.sysItemId : "".concat(item.sysItemId, "-").concat(item.sysSkuId);
|
|
27492
|
+
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);
|
|
26851
27493
|
map[key] = item;
|
|
26852
27494
|
});
|
|
26853
27495
|
}
|
|
@@ -26888,7 +27530,8 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
26888
27530
|
hasChange = false;
|
|
26889
27531
|
currentValue = valueRef.current;
|
|
26890
27532
|
kmGoods = currentValue === null || currentValue === void 0 ? void 0 : (_currentValue$kmGoods = currentValue.kmGoods) === null || _currentValue$kmGoods === void 0 ? void 0 : _currentValue$kmGoods.map(function (item) {
|
|
26891
|
-
var
|
|
27533
|
+
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);
|
|
27534
|
+
var supplierInfo = supplierMap.get(key);
|
|
26892
27535
|
var newSupplierCode = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierCode;
|
|
26893
27536
|
var newSupplierName = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierName;
|
|
26894
27537
|
// 如果供应商信息有变化,标记需要更新
|
|
@@ -27172,7 +27815,6 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
27172
27815
|
orderNo: value === null || value === void 0 ? void 0 : value.orderNo,
|
|
27173
27816
|
type: compType
|
|
27174
27817
|
});
|
|
27175
|
-
console.log('getDataSourceAsync', list);
|
|
27176
27818
|
onChange(_objectSpread2(_objectSpread2({}, valueRef.current), {}, {
|
|
27177
27819
|
allOrders: list || []
|
|
27178
27820
|
}));
|
|
@@ -27208,6 +27850,7 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
27208
27850
|
}
|
|
27209
27851
|
}));
|
|
27210
27852
|
};
|
|
27853
|
+
CommonGoods.displayName = 'CommonGoods';
|
|
27211
27854
|
|
|
27212
27855
|
var componentMap$3 = {
|
|
27213
27856
|
WDT_RETURN_GOODS: {
|
|
@@ -27401,6 +28044,55 @@ var componentMap$4 = {
|
|
|
27401
28044
|
returnGoodsSysorder: 'jstReturnGoodsSysorder',
|
|
27402
28045
|
returnGoodsSysorderBack: 'jstReturnGoodsSysorderBack'
|
|
27403
28046
|
}
|
|
28047
|
+
},
|
|
28048
|
+
KM_EXCHANGE_GOODS: {
|
|
28049
|
+
type: 'km',
|
|
28050
|
+
showChooseTradeGoodsBtn: true,
|
|
28051
|
+
valueKey: 'kmExchangeGoods',
|
|
28052
|
+
returnTypeKey: 'kmExchangeType',
|
|
28053
|
+
systemOrder: 'kmSystemOrder',
|
|
28054
|
+
systemOrderNo: 'kmSystemOrderNo',
|
|
28055
|
+
oIdKey: 'billNo',
|
|
28056
|
+
goodDetailsKey: 'subOrders',
|
|
28057
|
+
skuIdKey: 'skuId',
|
|
28058
|
+
outerOiIdKey: '',
|
|
28059
|
+
name: '快麦',
|
|
28060
|
+
updateGoodsHandle: kmkfUtils.updateKmGoodsHandle,
|
|
28061
|
+
isReloadSelectTable: true,
|
|
28062
|
+
validSystemOrderFn: function () {
|
|
28063
|
+
var _validSystemOrderFn = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(form) {
|
|
28064
|
+
var returnGoodsValue;
|
|
28065
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
28066
|
+
while (1) switch (_context.prev = _context.next) {
|
|
28067
|
+
case 0:
|
|
28068
|
+
_context.next = 2;
|
|
28069
|
+
return form.getFieldValue('KM3F7B91C2');
|
|
28070
|
+
case 2:
|
|
28071
|
+
returnGoodsValue = _context.sent;
|
|
28072
|
+
if (returnGoodsValue.kmSystemOrderNo) {
|
|
28073
|
+
_context.next = 6;
|
|
28074
|
+
break;
|
|
28075
|
+
}
|
|
28076
|
+
antd.message.error('请选择退货系统单');
|
|
28077
|
+
return _context.abrupt("return", false);
|
|
28078
|
+
case 6:
|
|
28079
|
+
case "end":
|
|
28080
|
+
return _context.stop();
|
|
28081
|
+
}
|
|
28082
|
+
}, _callee);
|
|
28083
|
+
}));
|
|
28084
|
+
function validSystemOrderFn(_x) {
|
|
28085
|
+
return _validSystemOrderFn.apply(this, arguments);
|
|
28086
|
+
}
|
|
28087
|
+
return validSystemOrderFn;
|
|
28088
|
+
}(),
|
|
28089
|
+
eventNameMap: {
|
|
28090
|
+
// pubsub 事件
|
|
28091
|
+
exchangeCopyGood: 'kmExchangeCopyGood',
|
|
28092
|
+
exchangeBackCopyGood: 'kmExchangeBackCopyGood',
|
|
28093
|
+
returnGoodsSysorder: 'kmReturnGoodsSysorder',
|
|
28094
|
+
returnGoodsSysorderBack: 'kmReturnGoodsSysorderBack'
|
|
28095
|
+
}
|
|
27404
28096
|
}
|
|
27405
28097
|
};
|
|
27406
28098
|
var CommonExchangeGoods = function CommonExchangeGoods(props) {
|
|
@@ -27408,7 +28100,8 @@ var CommonExchangeGoods = function CommonExchangeGoods(props) {
|
|
|
27408
28100
|
var value = props.value,
|
|
27409
28101
|
onChange = props.onChange,
|
|
27410
28102
|
disabled = props.disabled,
|
|
27411
|
-
compType = props.type
|
|
28103
|
+
compType = props.type,
|
|
28104
|
+
form = props.form;
|
|
27412
28105
|
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';
|
|
27413
28106
|
var valueRef = React.useRef({});
|
|
27414
28107
|
// PS: 目前选择订单商品,只有聚水潭换出商品,而且聚水潭不用考虑合并单,所以这个值一直是 false
|
|
@@ -27501,6 +28194,10 @@ var CommonExchangeGoods = function CommonExchangeGoods(props) {
|
|
|
27501
28194
|
return new Promise(function (resolve) {
|
|
27502
28195
|
pubsub__default['default'].subscribeOnce(componentMap$4[compType].eventNameMap.returnGoodsSysorderBack, function (_, data) {
|
|
27503
28196
|
resolve(data);
|
|
28197
|
+
console.log('getDataSourceAsync---111data--', data, getGoodDetails({
|
|
28198
|
+
returnGoodsValue: data,
|
|
28199
|
+
mode: isStrict
|
|
28200
|
+
}));
|
|
27504
28201
|
setOriginDataSource(getGoodDetails({
|
|
27505
28202
|
returnGoodsValue: data,
|
|
27506
28203
|
mode: isStrict
|
|
@@ -27509,9 +28206,14 @@ var CommonExchangeGoods = function CommonExchangeGoods(props) {
|
|
|
27509
28206
|
pubsub__default['default'].publish(componentMap$4[compType].eventNameMap.returnGoodsSysorder, compType);
|
|
27510
28207
|
});
|
|
27511
28208
|
};
|
|
28209
|
+
console.log('aaa--', originDataSource);
|
|
27512
28210
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(GoodItem$1, _objectSpread2(_objectSpread2({
|
|
27513
28211
|
key: componentMap$4[compType].type
|
|
27514
28212
|
}, props), {}, {
|
|
28213
|
+
validSystemOrderFn: function validSystemOrderFn() {
|
|
28214
|
+
return componentMap$4[compType].validSystemOrderFn(form);
|
|
28215
|
+
},
|
|
28216
|
+
isReloadSelectTable: componentMap$4[compType].isReloadSelectTable,
|
|
27515
28217
|
disabled: disabled,
|
|
27516
28218
|
canUpdateNumber: true,
|
|
27517
28219
|
showChangeBtn: true,
|
|
@@ -27845,6 +28547,30 @@ var typeMap$2 = {
|
|
|
27845
28547
|
uniqueKey: 'id',
|
|
27846
28548
|
isShowSelectTradeGoods: true
|
|
27847
28549
|
},
|
|
28550
|
+
KM_RETURN_GOODS: {
|
|
28551
|
+
compType: '退货',
|
|
28552
|
+
key: 'kmReturnGoods',
|
|
28553
|
+
typeName: 'kmReturnType',
|
|
28554
|
+
systemOrder: 'kmSystemOrder',
|
|
28555
|
+
systemOrderNo: 'kmSystemOrderNo',
|
|
28556
|
+
getOrderList: kmUtils.getOrderListSingleton,
|
|
28557
|
+
updateGoodsHandle: kmkfUtils.updateKmGoodsHandle,
|
|
28558
|
+
alwaysShowChooseErpGoodsBtn: true,
|
|
28559
|
+
orderTypeKey: 'orderType',
|
|
28560
|
+
oIdKey: 'billNo',
|
|
28561
|
+
outerOiIdKey: '',
|
|
28562
|
+
goodDetailsKey: 'subOrders',
|
|
28563
|
+
uniqueKey: 'id',
|
|
28564
|
+
isShowSelectTradeGoods: true,
|
|
28565
|
+
showErpGoodsBtn: false,
|
|
28566
|
+
eventNameMap: {
|
|
28567
|
+
// pubsub 事件
|
|
28568
|
+
exchangeCopyGood: 'kmExchangeCopyGood',
|
|
28569
|
+
exchangeBackCopyGood: 'kmExchangeBackCopyGood',
|
|
28570
|
+
returnGoodsSysorder: 'kmReturnGoodsSysorder',
|
|
28571
|
+
returnGoodsSysorderBack: 'kmReturnGoodsSysorderBack'
|
|
28572
|
+
}
|
|
28573
|
+
},
|
|
27848
28574
|
JY_REISSUE_GOODS: {
|
|
27849
28575
|
compType: '补发',
|
|
27850
28576
|
key: 'jyReissueGoods',
|
|
@@ -27871,14 +28597,14 @@ var typeMap$2 = {
|
|
|
27871
28597
|
alwaysShowChooseErpGoodsBtn: true,
|
|
27872
28598
|
orderTypeKey: 'orderType',
|
|
27873
28599
|
oIdKey: 'tradeNo',
|
|
27874
|
-
outerOiIdKey: '',
|
|
27875
|
-
goodDetailsKey: '
|
|
28600
|
+
outerOiIdKey: 'sourceSubtradeNo',
|
|
28601
|
+
goodDetailsKey: 'goodsDetail',
|
|
27876
28602
|
isShowSelectTradeGoods: true,
|
|
27877
28603
|
showModeBtn: true
|
|
27878
28604
|
}
|
|
27879
28605
|
};
|
|
27880
28606
|
var PublicReissue = function PublicReissue(props) {
|
|
27881
|
-
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, _typeMap$type53, _value$typeMap$type$s9, _typeMap$
|
|
28607
|
+
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;
|
|
27882
28608
|
var value = props.value,
|
|
27883
28609
|
onChange = props.onChange,
|
|
27884
28610
|
_props$reasonList = props.reasonList,
|
|
@@ -27996,24 +28722,25 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
27996
28722
|
};
|
|
27997
28723
|
var sysItemIdMap = React.useMemo(function () {
|
|
27998
28724
|
var map = {};
|
|
27999
|
-
if (
|
|
28000
|
-
var _value$
|
|
28001
|
-
|
|
28725
|
+
if (['KM_REISSUE_GOODS', 'KM_RETURN_GOODS'].includes(type)) {
|
|
28726
|
+
var _value$goodsKey, _value$goodsKey$filte;
|
|
28727
|
+
var goodsKey = typeMap$2[type].key;
|
|
28728
|
+
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) {
|
|
28002
28729
|
return item === null || item === void 0 ? void 0 : item.sysItemId;
|
|
28003
|
-
})) === null || _value$
|
|
28004
|
-
var key = item.sysSkuId == '-1' ? item.sysItemId : "".concat(item.sysItemId, "-").concat(item.sysSkuId);
|
|
28730
|
+
})) === null || _value$goodsKey$filte === void 0 ? void 0 : _value$goodsKey$filte.forEach(function (item) {
|
|
28731
|
+
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);
|
|
28005
28732
|
map[key] = item;
|
|
28006
28733
|
});
|
|
28007
28734
|
}
|
|
28008
28735
|
return map;
|
|
28009
|
-
}, [value === null || value === void 0 ? void 0 : value.
|
|
28736
|
+
}, [value === null || value === void 0 ? void 0 : value[(_typeMap$type18 = typeMap$2[type]) === null || _typeMap$type18 === void 0 ? void 0 : _typeMap$type18.key]]);
|
|
28010
28737
|
// 用于跟踪已经处理过的 sysItemId,避免重复处理
|
|
28011
28738
|
var processedSysItemIdsRef = React.useRef(new Set());
|
|
28012
28739
|
React.useEffect(function () {
|
|
28013
28740
|
var fetchSupplier = /*#__PURE__*/function () {
|
|
28014
28741
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(sysItemIds) {
|
|
28015
|
-
var _currentValue$
|
|
28016
|
-
var needFetchIds, supplierMap, hasChange, currentValue,
|
|
28742
|
+
var _currentValue$goodsKe;
|
|
28743
|
+
var needFetchIds, supplierMap, hasChange, currentValue, goodsKey, kmGoods;
|
|
28017
28744
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
28018
28745
|
while (1) switch (_context2.prev = _context2.next) {
|
|
28019
28746
|
case 0:
|
|
@@ -28041,8 +28768,10 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28041
28768
|
// 检查是否有实际变化,避免不必要的更新
|
|
28042
28769
|
hasChange = false;
|
|
28043
28770
|
currentValue = valueRef.current;
|
|
28044
|
-
|
|
28045
|
-
|
|
28771
|
+
goodsKey = typeMap$2[type].key;
|
|
28772
|
+
kmGoods = currentValue === null || currentValue === void 0 ? void 0 : (_currentValue$goodsKe = currentValue[goodsKey]) === null || _currentValue$goodsKe === void 0 ? void 0 : _currentValue$goodsKe.map(function (item) {
|
|
28773
|
+
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);
|
|
28774
|
+
var supplierInfo = supplierMap.get(key);
|
|
28046
28775
|
var newSupplierCode = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierCode;
|
|
28047
28776
|
var newSupplierName = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierName;
|
|
28048
28777
|
// 如果供应商信息有变化,标记需要更新
|
|
@@ -28057,12 +28786,10 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28057
28786
|
}
|
|
28058
28787
|
return item;
|
|
28059
28788
|
}); // 只在有实际变化时才更新
|
|
28060
|
-
if (hasChange &&
|
|
28061
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, currentValue), {}, {
|
|
28062
|
-
kmReissueGoods: kmReissueGoods
|
|
28063
|
-
}));
|
|
28789
|
+
if (hasChange && kmGoods) {
|
|
28790
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, currentValue), {}, _defineProperty({}, goodsKey, kmGoods)));
|
|
28064
28791
|
}
|
|
28065
|
-
case
|
|
28792
|
+
case 13:
|
|
28066
28793
|
case "end":
|
|
28067
28794
|
return _context2.stop();
|
|
28068
28795
|
}
|
|
@@ -28078,20 +28805,20 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28078
28805
|
}
|
|
28079
28806
|
}, [sysItemIdMap]);
|
|
28080
28807
|
var getGoodDetails = function getGoodDetails(_ref5) {
|
|
28081
|
-
var _typeMap$
|
|
28808
|
+
var _typeMap$type19, _typeMap$type20, _value$typeMap$type$s6, _typeMap$type21, _typeMap$type22, _typeMap$type23, _typeMap$type24;
|
|
28082
28809
|
var mode = _ref5.mode,
|
|
28083
28810
|
sysOrderNo = _ref5.sysOrderNo,
|
|
28084
28811
|
_ref5$isAllOrders = _ref5.isAllOrders,
|
|
28085
28812
|
isAllOrders = _ref5$isAllOrders === void 0 ? false : _ref5$isAllOrders;
|
|
28086
|
-
var systemOrder = value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
28087
|
-
var systemOrderNo = sysOrderNo !== null && sysOrderNo !== void 0 ? sysOrderNo : value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
28813
|
+
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];
|
|
28814
|
+
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];
|
|
28088
28815
|
var order = systemOrderNo && ((systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orders) || []).find(function (order) {
|
|
28089
28816
|
return order[typeMap$2[type].oIdKey] === systemOrderNo;
|
|
28090
28817
|
});
|
|
28091
28818
|
var orderRest = undefined;
|
|
28092
28819
|
if (['JST_REISSUE_GOODS', 'JST_RETURN_GOODS'].includes(type)) {
|
|
28093
28820
|
orderRest = true;
|
|
28094
|
-
} else if (
|
|
28821
|
+
} else if (['KM_REISSUE_GOODS', 'KM_RETURN_GOODS'].includes(type)) {
|
|
28095
28822
|
orderRest = {
|
|
28096
28823
|
orderBackGoodsLevel: props.orderBackGoodsLevel,
|
|
28097
28824
|
canEdit: true
|
|
@@ -28105,13 +28832,12 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28105
28832
|
canEdit: true
|
|
28106
28833
|
};
|
|
28107
28834
|
}
|
|
28108
|
-
var orders = isAllOrders ? (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s6 = value[(_typeMap$
|
|
28835
|
+
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] : [];
|
|
28109
28836
|
var hasGoodDetails = orders === null || orders === void 0 ? void 0 : orders.some(function (order) {
|
|
28110
28837
|
var _order$typeMap$type$g;
|
|
28111
28838
|
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;
|
|
28112
28839
|
});
|
|
28113
|
-
|
|
28114
|
-
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) : [];
|
|
28840
|
+
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) : [];
|
|
28115
28841
|
var orderNo = systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orderNo;
|
|
28116
28842
|
var list = mode && !isAllOrders ? goodDetails.filter(function (goodItem) {
|
|
28117
28843
|
return !orderNo || goodItem[typeMap$2[type].outerOiIdKey] === orderNo;
|
|
@@ -28238,28 +28964,29 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28238
28964
|
hasSelectedSystemOrder: showChangeBtn,
|
|
28239
28965
|
// showChangeBtn={showChangeBtn || typeMap?.[type]?.isShowSelectTradeGoods}
|
|
28240
28966
|
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,
|
|
28241
|
-
|
|
28967
|
+
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,
|
|
28242
28968
|
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
28243
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28969
|
+
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)],
|
|
28244
28970
|
onChange: function onChange(val) {
|
|
28245
28971
|
return changeGoodHandle(val);
|
|
28246
28972
|
},
|
|
28247
28973
|
onModeChange: handleModeChange,
|
|
28248
|
-
showModeBtn: !!(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28974
|
+
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),
|
|
28249
28975
|
isStrict: isStrict,
|
|
28250
|
-
isShowSelectTradeGoods: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28251
|
-
systemOrders: value === null || value === void 0 ? void 0 : (_value$typeMap$type$s9 = value[(_typeMap$
|
|
28252
|
-
selectedSystemOrders: showChangeBtn ? [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28976
|
+
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,
|
|
28977
|
+
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,
|
|
28978
|
+
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)]] : [],
|
|
28253
28979
|
tradeGoods: {
|
|
28254
28980
|
originDataSource: getGoodDetails({
|
|
28255
28981
|
mode: isStrict,
|
|
28256
|
-
isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28982
|
+
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
|
|
28257
28983
|
}),
|
|
28258
|
-
uniqueKey: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28984
|
+
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',
|
|
28259
28985
|
selectedGoodsChange: selectedGoodsChange
|
|
28260
28986
|
}
|
|
28261
28987
|
})));
|
|
28262
28988
|
};
|
|
28989
|
+
PublicReissue.displayName = 'PublicReissue';
|
|
28263
28990
|
|
|
28264
28991
|
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";
|
|
28265
28992
|
styleInject(css_248z$g);
|