@kmkf-fe-packages/basic-components 2.2.41 → 2.2.44-beta.0
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/README.md +1 -1
- package/dist/index.esm.js +2640 -1023
- package/dist/index.js +2640 -1021
- package/dist/src/apaas/SubForm/index.d.ts +3 -3
- package/dist/src/apaas/SubForm/render.d.ts +3 -0
- package/dist/src/bs/component/model/Columns/Erp/jky.d.ts +38 -0
- package/dist/src/bs/component/model/JkyGoodsModal/GoodsList.d.ts +32 -0
- package/dist/src/bs/component/model/JkyGoodsModal/index.d.ts +5 -0
- package/dist/src/bs/component/model/components/SearchForm/components.d.ts +2 -0
- package/dist/src/bs/component/model/components/SearchForm/index.d.ts +4 -3
- package/dist/src/bs/component/model/components/SearchForm/utils.d.ts +5 -0
- package/dist/src/constants/index.d.ts +1 -0
- package/dist/src/constants/jky.d.ts +3 -0
- package/dist/src/constants/systemOrderColumnsMap.d.ts +7 -2
- package/dist/src/index.d.ts +1 -1
- package/dist/src/jky/common/index.d.ts +3 -0
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -3,7 +3,7 @@ import { Cascader, DatePicker, Image, InputNumber, Input, Select, Upload, messag
|
|
|
3
3
|
import { EyeOutlined, DeleteOutlined, CloseOutlined, PlusSquareOutlined, MinusCircleFilled, PlusCircleFilled, CopyOutlined, CloseCircleOutlined, CaretUpOutlined, UpOutlined, DownOutlined, PlusOutlined, VideoCameraTwoTone } from '@ant-design/icons';
|
|
4
4
|
import request, { extend as extend$1 } from 'umi-request';
|
|
5
5
|
import { CopyToClipboard } from 'react-copy-to-clipboard';
|
|
6
|
-
import { AddressData, BsAddressData, WdtAddressData, GyAddressData, JstAddressData, request as request$1, ExpressData, isNull, imgResize, uuid, servers, columnsGoodsList, LogisticsAddressData, SendDataCenter, hasAddNullComponent, SUBMIT_TIME_ID, UPGRADE_TIME_ID, FINAL_TIME_ID, CUSTOM_TIME_ID, useStatus, finalFormData, transformList, dataSourceTrans, DATA_SPLIT_COMPONENT_FIELDS_MAP, findLabelBySelectValue, BS_E3_BOOLEAN_STATUS_MAP, filterWdtOrders, WDT_ORDER_TYPE_MAP, tradeStatusMap, filterBsE3Orders, filterGyOrders, GY_DELIVERY_STATE_MAPPING, filterJstOrders, filterJyOrders, JY_ORDER_TYPE_MAP, JY_ORDER_STATUS_MAP, filterKmOrders, getSystemShowHead, getIsPlatformCodesIncludeOrderNos, BS_SYSTEM_ORDER_CONFIG, KM_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, JST_SYSTEM_ORDER_CONFIG, JY_SYSTEM_ORDER_CONFIG, WDT_RETURN_BILL_NO_CONFIG, updateOrderSubFormGoodsHandle, updateWlnGoodsHandle, updateWdtGoodsHandle, updateBsE3GoodsHandle, updateGyGoodsHandle, updateJstGoodsHandle, updateKmGoodsHandle, updateJyGoodsHandle, updateWdtAftersaleGoodsHandle, jstMergeIdenticalGoods, msgTypeCh, pushGyLog, skxSystemOrderBackValues, skxReturnSystemOrderBackValues, formatTrade, updateSkxGoodsHandle, formatReturnTrade, updateSkxReturnGoodsHandle } from '@kmkf-fe-packages/kmkf-utils';
|
|
6
|
+
import { AddressData, BsAddressData, WdtAddressData, GyAddressData, JstAddressData, request as request$1, ExpressData, isNull, imgResize, uuid, servers, columnsGoodsList, LogisticsAddressData, SendDataCenter, hasAddNullComponent, SUBMIT_TIME_ID, UPGRADE_TIME_ID, FINAL_TIME_ID, CUSTOM_TIME_ID, useStatus, finalFormData, transformList, dataSourceTrans, DATA_SPLIT_COMPONENT_FIELDS_MAP, findLabelBySelectValue, BS_E3_BOOLEAN_STATUS_MAP, filterWdtOrders, WDT_ORDER_TYPE_MAP, tradeStatusMap, filterBsE3Orders, filterGyOrders, GY_DELIVERY_STATE_MAPPING, filterJstOrders, filterJyOrders, JY_ORDER_TYPE_MAP, JY_ORDER_STATUS_MAP, filterJkyOrders, JKY_ORDER_TYPE_MAP, JKY_ORDER_STATUS_MAP, filterKmOrders, getSystemShowHead, getIsPlatformCodesIncludeOrderNos, BS_SYSTEM_ORDER_CONFIG, KM_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, JST_SYSTEM_ORDER_CONFIG, JY_SYSTEM_ORDER_CONFIG, JKY_SYSTEM_ORDER_CONFIG, WDT_RETURN_BILL_NO_CONFIG, updateOrderSubFormGoodsHandle, updateWlnGoodsHandle, updateWdtGoodsHandle, updateBsE3GoodsHandle, updateGyGoodsHandle, updateJstGoodsHandle, updateKmGoodsHandle, updateJyGoodsHandle, updateJkyGoodsHandle, updateWdtAftersaleGoodsHandle, jstMergeIdenticalGoods, msgTypeCh, pushGyLog, skxSystemOrderBackValues, skxReturnSystemOrderBackValues, formatTrade, updateSkxGoodsHandle, formatReturnTrade, updateSkxReturnGoodsHandle } from '@kmkf-fe-packages/kmkf-utils';
|
|
7
7
|
import every from 'lodash/every';
|
|
8
8
|
import maxBy from 'lodash/maxBy';
|
|
9
9
|
import { debounce, isNaN as isNaN$1, isNumber as isNumber$1, uniqBy, cloneDeep, difference, differenceWith, isBoolean, isEqual, takeRight, reject as reject$1, intersection, isEmpty } from 'lodash';
|
|
@@ -8101,6 +8101,8 @@ var updateWorkTypeKeys = {
|
|
|
8101
8101
|
BS_DEPOSIT: 'bsDeposit',
|
|
8102
8102
|
NEW_PAYMENT_STATUS: 'newPaymentStatus',
|
|
8103
8103
|
BUSINESS_ORDER_NO: 'businessOrderNo',
|
|
8104
|
+
REPAIR_ORDER_SN: 'repairOrderSn',
|
|
8105
|
+
REPAIR_ORDER_ID: 'repairOrderId',
|
|
8104
8106
|
PAYMENT_VOUCHER_CODE: 'paymentVoucherCode',
|
|
8105
8107
|
ACTUAL_RECEIPT_PAYMENT: 'actualReceiptPayment',
|
|
8106
8108
|
WDT_SHOP: 'shopCode'
|
|
@@ -8452,7 +8454,10 @@ var processLogisticsTrajectory = function processLogisticsTrajectory(getValue) {
|
|
|
8452
8454
|
var map = subFields.reduce(function (cur, nxt) {
|
|
8453
8455
|
return nxt === 'trajectoryApiStatus' ? _objectSpread2(_objectSpread2({}, cur), {}, _defineProperty({}, nxt, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_trajectoryApiStatus")), {}))) : _objectSpread2(_objectSpread2({}, cur), {}, _defineProperty({}, nxt, getValue("".concat(nex.uniqueKey, "_").concat(nxt))));
|
|
8454
8456
|
}, {});
|
|
8455
|
-
|
|
8457
|
+
var mapChild = subFields.reduce(function (cur, nxt) {
|
|
8458
|
+
return nxt === 'trajectoryApiStatus' ? _objectSpread2(_objectSpread2({}, cur), {}, _defineProperty({}, "".concat(nex.uniqueKey, "_trajectoryApiStatus"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_trajectoryApiStatus")), {}))) : _objectSpread2(_objectSpread2({}, cur), {}, _defineProperty({}, "".concat(nex.uniqueKey, "_").concat(nxt), getValue("".concat(nex.uniqueKey, "_").concat(nxt))));
|
|
8459
|
+
}, {});
|
|
8460
|
+
return _objectSpread2(_defineProperty({}, nex.uniqueKey, map), mapChild);
|
|
8456
8461
|
};
|
|
8457
8462
|
};
|
|
8458
8463
|
var processLogisticsTrajectoryMore = function processLogisticsTrajectoryMore(getValue) {
|
|
@@ -8476,12 +8481,12 @@ var processItemSelectThird = function processItemSelectThird(getValue) {
|
|
|
8476
8481
|
};
|
|
8477
8482
|
var processEnterPrisePayment = function processEnterPrisePayment(getValue) {
|
|
8478
8483
|
return function (nex, config) {
|
|
8479
|
-
var
|
|
8484
|
+
var _ref33;
|
|
8480
8485
|
var subFields = ['enterprisePaymentAlipayNick', 'enterprisePaymentAlipayNo', 'enterprisePaymentBuyerNick', 'enterprisePaymentBuyerOpenUid', 'enterprisePaymentRefundFee', 'enterprisePaymentStatus', 'enterprisePaymentTid'];
|
|
8481
8486
|
var map = subFields.reduce(function (cur, nxt) {
|
|
8482
8487
|
return _objectSpread2(_objectSpread2({}, cur), {}, _defineProperty({}, nxt, getValue("".concat(nex.uniqueKey, "_").concat(nxt))));
|
|
8483
8488
|
}, {});
|
|
8484
|
-
return
|
|
8489
|
+
return _ref33 = {}, _defineProperty(_ref33, nex.uniqueKey, map), _defineProperty(_ref33, "".concat(nex.uniqueKey, "_enterprisePaymentAlipayNick"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentAlipayNick"))), _defineProperty(_ref33, "".concat(nex.uniqueKey, "_enterprisePaymentAlipayNo"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentAlipayNo"))), _defineProperty(_ref33, "".concat(nex.uniqueKey, "_enterprisePaymentBuyerNick"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentBuyerNick"))), _defineProperty(_ref33, "".concat(nex.uniqueKey, "_enterprisePaymentRefundFee"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentRefundFee"))), _defineProperty(_ref33, "".concat(nex.uniqueKey, "_enterprisePaymentStatus"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentStatus"))), _defineProperty(_ref33, "".concat(nex.uniqueKey, "_enterprisePaymentTime"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentTime"))), _defineProperty(_ref33, "".concat(nex.uniqueKey, "_enterprisePaymentTid"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentTid"))), _ref33;
|
|
8485
8490
|
};
|
|
8486
8491
|
};
|
|
8487
8492
|
var processJstLogistics = function processJstLogistics(getValue) {
|
|
@@ -8580,6 +8585,10 @@ var processCallBackStatus = function processCallBackStatus(getValue) {
|
|
|
8580
8585
|
RETURN_EXCHANGE_GOODS_REVIEW_STATUS: {
|
|
8581
8586
|
status: 'returnExchangeGoodsReviewStatusValue',
|
|
8582
8587
|
reason: 'returnExchangeGoodsReviewStatusReason'
|
|
8588
|
+
},
|
|
8589
|
+
REPAIR_ORDER_STATUS: {
|
|
8590
|
+
status: 'repairOrderStatusValue',
|
|
8591
|
+
reason: 'repairOrderStatusReason'
|
|
8583
8592
|
}
|
|
8584
8593
|
};
|
|
8585
8594
|
return _defineProperty({}, nex.uniqueKey, {
|
|
@@ -9240,14 +9249,14 @@ var processJstReturnGoods = function processJstReturnGoods(templateColumns) {
|
|
|
9240
9249
|
};
|
|
9241
9250
|
var processLabel = function processLabel(getValue) {
|
|
9242
9251
|
return function (nex, config) {
|
|
9243
|
-
var
|
|
9244
|
-
return
|
|
9252
|
+
var _ref73;
|
|
9253
|
+
return _ref73 = {}, _defineProperty(_ref73, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _defineProperty(_ref73, "".concat(nex.uniqueKey, "_label"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _ref73;
|
|
9245
9254
|
};
|
|
9246
9255
|
};
|
|
9247
9256
|
var processMemberLevel = function processMemberLevel(getValue) {
|
|
9248
9257
|
return function (nex, config) {
|
|
9249
|
-
var
|
|
9250
|
-
return
|
|
9258
|
+
var _ref74;
|
|
9259
|
+
return _ref74 = {}, _defineProperty(_ref74, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _defineProperty(_ref74, "".concat(nex.uniqueKey, "_memberLevel"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _ref74;
|
|
9251
9260
|
};
|
|
9252
9261
|
};
|
|
9253
9262
|
var processAfterSalesOrderId = function processAfterSalesOrderId(getValue) {
|
|
@@ -9344,6 +9353,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
|
|
|
9344
9353
|
AGREE_RETURN_GOODS_STATUS: processCallBackStatus,
|
|
9345
9354
|
REJECT_RETURN_GOODS_STATUS: processCallBackStatus,
|
|
9346
9355
|
RETURN_EXCHANGE_GOODS_REVIEW_STATUS: processCallBackStatus,
|
|
9356
|
+
REPAIR_ORDER_STATUS: processCallBackStatus,
|
|
9347
9357
|
RETURN_GOODS_STATUS: processSceneStatus,
|
|
9348
9358
|
EXCHANGE_STATUS: processSceneStatus,
|
|
9349
9359
|
WAREHOUSING_STATUS: processSceneStatus,
|
|
@@ -9423,6 +9433,8 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
|
|
|
9423
9433
|
BS_DEPOSIT: processSingleField,
|
|
9424
9434
|
NEW_PAYMENT_STATUS: processSingleField,
|
|
9425
9435
|
BUSINESS_ORDER_NO: processSingleField,
|
|
9436
|
+
REPAIR_ORDER_SN: processSingleField,
|
|
9437
|
+
REPAIR_ORDER_ID: processSingleField,
|
|
9426
9438
|
PAYMENT_VOUCHER_CODE: processSingleField,
|
|
9427
9439
|
BS_E3_REISSUE_GOODS: processBsE3ReissueGoods(templateColumns),
|
|
9428
9440
|
ACTUAL_RECEIPT_PAYMENT: processSingleField,
|
|
@@ -9539,7 +9551,6 @@ var FileRender = function FileRender(_ref) {
|
|
|
9539
9551
|
cursor: 'pointer'
|
|
9540
9552
|
},
|
|
9541
9553
|
onClick: function onClick(e) {
|
|
9542
|
-
console.log('onPreview');
|
|
9543
9554
|
e.preventDefault();
|
|
9544
9555
|
onPreview(item);
|
|
9545
9556
|
},
|
|
@@ -9635,6 +9646,9 @@ var PictureRender = function PictureRender(_ref2) {
|
|
|
9635
9646
|
}));
|
|
9636
9647
|
}));
|
|
9637
9648
|
};
|
|
9649
|
+
var LogisticsCompanyRender = function LogisticsCompanyRender(value) {
|
|
9650
|
+
return ExpressData.getInstance().getExpressNameByCode(value) || value;
|
|
9651
|
+
};
|
|
9638
9652
|
var MultipleSelectRender = function MultipleSelectRender(_ref5) {
|
|
9639
9653
|
var _ref5$value = _ref5.value,
|
|
9640
9654
|
value = _ref5$value === void 0 ? [] : _ref5$value;
|
|
@@ -9669,6 +9683,16 @@ var renderMap = {
|
|
|
9669
9683
|
});
|
|
9670
9684
|
}
|
|
9671
9685
|
};
|
|
9686
|
+
var renderSplitMap = {
|
|
9687
|
+
//物流轨迹-物流公司
|
|
9688
|
+
jbCFrJV4m7_trajectoryCompany: function jbCFrJV4m7_trajectoryCompany(value) {
|
|
9689
|
+
return LogisticsCompanyRender(value);
|
|
9690
|
+
},
|
|
9691
|
+
//退货物流-物流公司
|
|
9692
|
+
'0qFEv9GEyd_returnLogisticsCompany': function qFEv9GEyd_returnLogisticsCompany(value) {
|
|
9693
|
+
return LogisticsCompanyRender(value);
|
|
9694
|
+
}
|
|
9695
|
+
};
|
|
9672
9696
|
var EditPictureRender = function EditPictureRender(_ref6) {
|
|
9673
9697
|
var _ref6$val = _ref6.val,
|
|
9674
9698
|
val = _ref6$val === void 0 ? [] : _ref6$val,
|
|
@@ -9764,7 +9788,6 @@ var EditFileRender = function EditFileRender(_ref7) {
|
|
|
9764
9788
|
var EditRenderMap = {
|
|
9765
9789
|
INPUT: function INPUT(_ref8) {
|
|
9766
9790
|
var val = _ref8.val,
|
|
9767
|
-
record = _ref8.record,
|
|
9768
9791
|
index = _ref8.index,
|
|
9769
9792
|
t = _ref8.t,
|
|
9770
9793
|
updateHandle = _ref8.updateHandle,
|
|
@@ -9793,7 +9816,6 @@ var EditRenderMap = {
|
|
|
9793
9816
|
},
|
|
9794
9817
|
TEXTAREA: function TEXTAREA(_ref9) {
|
|
9795
9818
|
var val = _ref9.val,
|
|
9796
|
-
record = _ref9.record,
|
|
9797
9819
|
index = _ref9.index,
|
|
9798
9820
|
t = _ref9.t,
|
|
9799
9821
|
updateHandle = _ref9.updateHandle,
|
|
@@ -9822,7 +9844,6 @@ var EditRenderMap = {
|
|
|
9822
9844
|
},
|
|
9823
9845
|
PICTURE: function PICTURE(_ref10) {
|
|
9824
9846
|
var val = _ref10.val,
|
|
9825
|
-
record = _ref10.record,
|
|
9826
9847
|
index = _ref10.index,
|
|
9827
9848
|
t = _ref10.t,
|
|
9828
9849
|
updateHandle = _ref10.updateHandle,
|
|
@@ -9840,7 +9861,6 @@ var EditRenderMap = {
|
|
|
9840
9861
|
},
|
|
9841
9862
|
FILE: function FILE(_ref11) {
|
|
9842
9863
|
var val = _ref11.val,
|
|
9843
|
-
record = _ref11.record,
|
|
9844
9864
|
index = _ref11.index,
|
|
9845
9865
|
t = _ref11.t,
|
|
9846
9866
|
updateHandle = _ref11.updateHandle,
|
|
@@ -9858,7 +9878,6 @@ var EditRenderMap = {
|
|
|
9858
9878
|
},
|
|
9859
9879
|
RADIO: function RADIO(_ref12) {
|
|
9860
9880
|
var val = _ref12.val,
|
|
9861
|
-
record = _ref12.record,
|
|
9862
9881
|
index = _ref12.index,
|
|
9863
9882
|
t = _ref12.t,
|
|
9864
9883
|
updateHandle = _ref12.updateHandle,
|
|
@@ -9881,7 +9900,6 @@ var EditRenderMap = {
|
|
|
9881
9900
|
},
|
|
9882
9901
|
SELECT: function SELECT(_ref13) {
|
|
9883
9902
|
var val = _ref13.val,
|
|
9884
|
-
record = _ref13.record,
|
|
9885
9903
|
index = _ref13.index,
|
|
9886
9904
|
t = _ref13.t,
|
|
9887
9905
|
updateHandle = _ref13.updateHandle,
|
|
@@ -9904,7 +9922,6 @@ var EditRenderMap = {
|
|
|
9904
9922
|
},
|
|
9905
9923
|
CHECKBOX: function CHECKBOX(_ref14) {
|
|
9906
9924
|
var val = _ref14.val,
|
|
9907
|
-
record = _ref14.record,
|
|
9908
9925
|
index = _ref14.index,
|
|
9909
9926
|
t = _ref14.t,
|
|
9910
9927
|
updateHandle = _ref14.updateHandle,
|
|
@@ -9926,7 +9943,6 @@ var EditRenderMap = {
|
|
|
9926
9943
|
},
|
|
9927
9944
|
BASIC_MULT_SELECT: function BASIC_MULT_SELECT(_ref15) {
|
|
9928
9945
|
var val = _ref15.val,
|
|
9929
|
-
record = _ref15.record,
|
|
9930
9946
|
index = _ref15.index,
|
|
9931
9947
|
t = _ref15.t,
|
|
9932
9948
|
updateHandle = _ref15.updateHandle,
|
|
@@ -9945,6 +9961,57 @@ var EditRenderMap = {
|
|
|
9945
9961
|
return updateHandle(e, index, t.key);
|
|
9946
9962
|
}
|
|
9947
9963
|
}));
|
|
9964
|
+
},
|
|
9965
|
+
DEFAULT: function DEFAULT(_ref16) {
|
|
9966
|
+
var val = _ref16.val,
|
|
9967
|
+
index = _ref16.index,
|
|
9968
|
+
t = _ref16.t,
|
|
9969
|
+
updateHandle = _ref16.updateHandle,
|
|
9970
|
+
disabled = _ref16.disabled;
|
|
9971
|
+
return !t.isEdit && !disabled ? /*#__PURE__*/React.createElement(Input, {
|
|
9972
|
+
allowClear: true,
|
|
9973
|
+
style: {
|
|
9974
|
+
width: '100%'
|
|
9975
|
+
},
|
|
9976
|
+
value: val,
|
|
9977
|
+
onChange: function onChange(e) {
|
|
9978
|
+
var _e$target3;
|
|
9979
|
+
return updateHandle(e === null || e === void 0 ? void 0 : (_e$target3 = e.target) === null || _e$target3 === void 0 ? void 0 : _e$target3.value, index, t.key);
|
|
9980
|
+
}
|
|
9981
|
+
}) : /*#__PURE__*/React.createElement("div", null, val);
|
|
9982
|
+
}
|
|
9983
|
+
};
|
|
9984
|
+
var EditSplitRenderMap = {
|
|
9985
|
+
jbCFrJV4m7_trajectoryCompany: function jbCFrJV4m7_trajectoryCompany(_ref17) {
|
|
9986
|
+
var val = _ref17.val,
|
|
9987
|
+
index = _ref17.index,
|
|
9988
|
+
t = _ref17.t,
|
|
9989
|
+
updateHandle = _ref17.updateHandle,
|
|
9990
|
+
disabled = _ref17.disabled;
|
|
9991
|
+
return /*#__PURE__*/React.createElement(ApaasLogistics, {
|
|
9992
|
+
value: val,
|
|
9993
|
+
allowClear: true,
|
|
9994
|
+
onChange: function onChange(e) {
|
|
9995
|
+
return updateHandle(e, index, t.key);
|
|
9996
|
+
},
|
|
9997
|
+
disabled: t.isEdit || disabled
|
|
9998
|
+
});
|
|
9999
|
+
},
|
|
10000
|
+
//退货物流-物流公司
|
|
10001
|
+
'0qFEv9GEyd_returnLogisticsCompany': function qFEv9GEyd_returnLogisticsCompany(_ref18) {
|
|
10002
|
+
var val = _ref18.val,
|
|
10003
|
+
index = _ref18.index,
|
|
10004
|
+
t = _ref18.t,
|
|
10005
|
+
updateHandle = _ref18.updateHandle,
|
|
10006
|
+
disabled = _ref18.disabled;
|
|
10007
|
+
return /*#__PURE__*/React.createElement(ApaasLogistics, {
|
|
10008
|
+
value: val,
|
|
10009
|
+
allowClear: true,
|
|
10010
|
+
onChange: function onChange(e) {
|
|
10011
|
+
return updateHandle(e, index, t.key);
|
|
10012
|
+
},
|
|
10013
|
+
disabled: t.isEdit || disabled
|
|
10014
|
+
});
|
|
9948
10015
|
}
|
|
9949
10016
|
};
|
|
9950
10017
|
|
|
@@ -9972,6 +10039,7 @@ function HoverTableRowDeleteIcon(_ref) {
|
|
|
9972
10039
|
}
|
|
9973
10040
|
|
|
9974
10041
|
var WidgetMap = {
|
|
10042
|
+
TRADE_ID_INPUT: 'tradeId',
|
|
9975
10043
|
INPUT: 'input',
|
|
9976
10044
|
TEXTAREA: 'textarea',
|
|
9977
10045
|
PICTURE: 'picture',
|
|
@@ -9998,8 +10066,8 @@ var SubForm = function SubForm(props) {
|
|
|
9998
10066
|
tableHeader = props.tableHeader,
|
|
9999
10067
|
disabled = props.disabled,
|
|
10000
10068
|
platform = props.platform,
|
|
10001
|
-
|
|
10002
|
-
|
|
10069
|
+
maxCount = props.maxCount,
|
|
10070
|
+
manual = props.manual;
|
|
10003
10071
|
var ref = useRef(null);
|
|
10004
10072
|
var isRequest = useRef(false);
|
|
10005
10073
|
var _useState = useState(false),
|
|
@@ -10074,7 +10142,6 @@ var SubForm = function SubForm(props) {
|
|
|
10074
10142
|
return deleteHandle(record.uuid);
|
|
10075
10143
|
}
|
|
10076
10144
|
});
|
|
10077
|
-
// return <div style={{ width: 25 }}>{index + 1}</div>;
|
|
10078
10145
|
}
|
|
10079
10146
|
}].concat(_toConsumableArray(newTableHeader.map(function (t) {
|
|
10080
10147
|
return {
|
|
@@ -10087,27 +10154,41 @@ var SubForm = function SubForm(props) {
|
|
|
10087
10154
|
ellipsis: true,
|
|
10088
10155
|
width: t.width,
|
|
10089
10156
|
render: function render(val, record, index) {
|
|
10090
|
-
|
|
10091
|
-
|
|
10092
|
-
|
|
10093
|
-
|
|
10094
|
-
|
|
10095
|
-
|
|
10096
|
-
|
|
10097
|
-
|
|
10098
|
-
|
|
10099
|
-
|
|
10100
|
-
|
|
10101
|
-
|
|
10102
|
-
|
|
10103
|
-
|
|
10104
|
-
|
|
10105
|
-
|
|
10106
|
-
|
|
10107
|
-
|
|
10108
|
-
|
|
10109
|
-
|
|
10110
|
-
|
|
10157
|
+
if (EditRenderMap[t.workOrderComponentType]) {
|
|
10158
|
+
return EditRenderMap[t.workOrderComponentType]({
|
|
10159
|
+
val: val,
|
|
10160
|
+
record: record,
|
|
10161
|
+
index: index,
|
|
10162
|
+
t: t,
|
|
10163
|
+
updateHandle: updateHandle,
|
|
10164
|
+
disabled: disabled,
|
|
10165
|
+
componentDto: componentDtoList.find(function (item) {
|
|
10166
|
+
return item.uniqueKey === t.key;
|
|
10167
|
+
}),
|
|
10168
|
+
platform: platform
|
|
10169
|
+
});
|
|
10170
|
+
} else if (EditSplitRenderMap[t.key]) {
|
|
10171
|
+
return EditSplitRenderMap[t.key]({
|
|
10172
|
+
val: val,
|
|
10173
|
+
index: index,
|
|
10174
|
+
t: t,
|
|
10175
|
+
updateHandle: updateHandle,
|
|
10176
|
+
disabled: disabled
|
|
10177
|
+
});
|
|
10178
|
+
} else {
|
|
10179
|
+
return EditRenderMap['DEFAULT']({
|
|
10180
|
+
val: val,
|
|
10181
|
+
record: record,
|
|
10182
|
+
index: index,
|
|
10183
|
+
t: t,
|
|
10184
|
+
updateHandle: updateHandle,
|
|
10185
|
+
disabled: disabled,
|
|
10186
|
+
componentDto: componentDtoList.find(function (item) {
|
|
10187
|
+
return item.uniqueKey === t.key;
|
|
10188
|
+
}),
|
|
10189
|
+
platform: platform
|
|
10190
|
+
});
|
|
10191
|
+
}
|
|
10111
10192
|
}
|
|
10112
10193
|
};
|
|
10113
10194
|
})), [disabled ? {} : {
|
|
@@ -10157,6 +10238,10 @@ var SubForm = function SubForm(props) {
|
|
|
10157
10238
|
item.render = function (val) {
|
|
10158
10239
|
return renderMap[t.workOrderComponentType](val, platform);
|
|
10159
10240
|
};
|
|
10241
|
+
} else if (renderSplitMap[t.key]) {
|
|
10242
|
+
item.render = function (val) {
|
|
10243
|
+
return renderSplitMap[t.key](val);
|
|
10244
|
+
};
|
|
10160
10245
|
}
|
|
10161
10246
|
return item;
|
|
10162
10247
|
})));
|
|
@@ -10171,7 +10256,11 @@ var SubForm = function SubForm(props) {
|
|
|
10171
10256
|
if (['PICTURE', 'FILE', 'BASIC_MULT_SELECT', 'CHECKBOX'].includes(next.workOrderComponentType)) {
|
|
10172
10257
|
item.defaultValue = [];
|
|
10173
10258
|
}
|
|
10174
|
-
|
|
10259
|
+
if (!['LOGISTICS_TRAJECTORY', 'RETURN_LOGISTICS_SELECT'].includes(next.workOrderComponentType)) {
|
|
10260
|
+
prv["".concat(next.key, "_").concat(WidgetMap[next.workOrderComponentType])] = item;
|
|
10261
|
+
} else {
|
|
10262
|
+
prv["".concat(next.key)] = item;
|
|
10263
|
+
}
|
|
10175
10264
|
return prv;
|
|
10176
10265
|
}, {});
|
|
10177
10266
|
}, [newTableHeader]);
|
|
@@ -10188,7 +10277,7 @@ var SubForm = function SubForm(props) {
|
|
|
10188
10277
|
}).map(function (item) {
|
|
10189
10278
|
return {
|
|
10190
10279
|
label: item.name,
|
|
10191
|
-
value: "".concat(item.key, "_").concat(WidgetMap[item.workOrderComponentType])
|
|
10280
|
+
value: WidgetMap[item.workOrderComponentType] ? "".concat(item.key, "_").concat(WidgetMap[item.workOrderComponentType]) : item.key
|
|
10192
10281
|
};
|
|
10193
10282
|
});
|
|
10194
10283
|
setSelectKey(options === null || options === void 0 ? void 0 : (_options$ = options[0]) === null || _options$ === void 0 ? void 0 : _options$.value);
|
|
@@ -10230,6 +10319,7 @@ var SubForm = function SubForm(props) {
|
|
|
10230
10319
|
_ref2$componentList,
|
|
10231
10320
|
componentList,
|
|
10232
10321
|
params,
|
|
10322
|
+
queryComponents,
|
|
10233
10323
|
res,
|
|
10234
10324
|
data,
|
|
10235
10325
|
success,
|
|
@@ -10262,15 +10352,25 @@ var SubForm = function SubForm(props) {
|
|
|
10262
10352
|
}]
|
|
10263
10353
|
};
|
|
10264
10354
|
if (selectKey && inputValue) {
|
|
10265
|
-
|
|
10355
|
+
queryComponents = [{
|
|
10266
10356
|
key: 'flowStatus',
|
|
10267
10357
|
symbol: 'in',
|
|
10268
10358
|
value: flowStatus
|
|
10269
|
-
}, {
|
|
10270
|
-
key: selectKey,
|
|
10271
|
-
symbol: 'in',
|
|
10272
|
-
value: [inputValue]
|
|
10273
10359
|
}];
|
|
10360
|
+
if (['0qFEv9GEyd_returnLogisticsCode', 'jbCFrJV4m7_trajectoryCode'].includes(selectKey)) {
|
|
10361
|
+
queryComponents.push({
|
|
10362
|
+
key: selectKey,
|
|
10363
|
+
symbol: 'like',
|
|
10364
|
+
value: inputValue
|
|
10365
|
+
});
|
|
10366
|
+
} else {
|
|
10367
|
+
queryComponents.push({
|
|
10368
|
+
key: selectKey,
|
|
10369
|
+
symbol: 'in',
|
|
10370
|
+
value: [inputValue]
|
|
10371
|
+
});
|
|
10372
|
+
}
|
|
10373
|
+
params.queryComponents = queryComponents;
|
|
10274
10374
|
}
|
|
10275
10375
|
_context.next = 7;
|
|
10276
10376
|
return extendRequest('/qy/view/workOrderList', {
|
|
@@ -10466,7 +10566,21 @@ var SubForm = function SubForm(props) {
|
|
|
10466
10566
|
placement: "bottom",
|
|
10467
10567
|
visible: open,
|
|
10468
10568
|
onVisibleChange: handleOpenChange
|
|
10469
|
-
}, /*#__PURE__*/React.createElement(
|
|
10569
|
+
}, ['0qFEv9GEyd_returnLogisticsCompany', 'jbCFrJV4m7_trajectoryCompany'].includes(selectKey) ? /*#__PURE__*/React.createElement(ApaasLogistics, {
|
|
10570
|
+
value: undefined,
|
|
10571
|
+
onChange: function onChange(val) {
|
|
10572
|
+
onChangeInput(val);
|
|
10573
|
+
},
|
|
10574
|
+
placeholder: "\u8BF7\u9009\u62E9\u7269\u6D41\u516C\u53F8",
|
|
10575
|
+
showSearch: true,
|
|
10576
|
+
allowClear: true,
|
|
10577
|
+
style: {
|
|
10578
|
+
width: '180px'
|
|
10579
|
+
},
|
|
10580
|
+
filterOption: function filterOption(input, option) {
|
|
10581
|
+
return option.label.includes(input);
|
|
10582
|
+
}
|
|
10583
|
+
}) : /*#__PURE__*/React.createElement(Input, {
|
|
10470
10584
|
placeholder: "\u8F93\u5165\u5173\u952E\u8BCD\u67E5\u8BE2",
|
|
10471
10585
|
allowClear: true,
|
|
10472
10586
|
onChange: function onChange(e) {
|
|
@@ -13442,7 +13556,7 @@ var LogisticsTrajectory = function LogisticsTrajectory(props) {
|
|
|
13442
13556
|
if (disabled) {
|
|
13443
13557
|
return;
|
|
13444
13558
|
}
|
|
13445
|
-
if (['SF', 'ZTO'].includes(newCompany) && !(newCompany && trajectoryCode && trajectoryPhone)) {
|
|
13559
|
+
if (['KYE', 'SF', 'ZTO'].includes(newCompany) && !(newCompany && trajectoryCode && trajectoryPhone)) {
|
|
13446
13560
|
return;
|
|
13447
13561
|
} else if (!(newCompany && trajectoryCode)) {
|
|
13448
13562
|
return;
|
|
@@ -13578,7 +13692,7 @@ var LogisticsTrajectory = function LogisticsTrajectory(props) {
|
|
|
13578
13692
|
value: value === null || value === void 0 ? void 0 : value.trajectorySnapshot
|
|
13579
13693
|
});
|
|
13580
13694
|
};
|
|
13581
|
-
return /*#__PURE__*/React.createElement("div", null, LogisticsCompany(), LogisticsCode(), ['SF', 'ZTO'].includes(value === null || value === void 0 ? void 0 : value.trajectoryCompany) ? LogisticsPhone(value === null || value === void 0 ? void 0 : value.trajectoryCompany) : null, trajectoryApiStatus && isSingle && LogisticsApiStatus(), showField && showField.includes('snapshot') ? /*#__PURE__*/React.createElement(LogisticsSnapshot, null) : null);
|
|
13695
|
+
return /*#__PURE__*/React.createElement("div", null, LogisticsCompany(), LogisticsCode(), ['SF', 'ZTO', 'KYE'].includes(value === null || value === void 0 ? void 0 : value.trajectoryCompany) ? LogisticsPhone(value === null || value === void 0 ? void 0 : value.trajectoryCompany) : null, trajectoryApiStatus && isSingle && LogisticsApiStatus(), showField && showField.includes('snapshot') ? /*#__PURE__*/React.createElement(LogisticsSnapshot, null) : null);
|
|
13582
13696
|
};
|
|
13583
13697
|
|
|
13584
13698
|
var LogisticsMoreTrajectory = function LogisticsMoreTrajectory(props) {
|
|
@@ -13834,7 +13948,7 @@ var jstGoods = function jstGoods(props) {
|
|
|
13834
13948
|
changeIndex = _useState2[0],
|
|
13835
13949
|
setChangeIndex = _useState2[1]; //选中的包裹
|
|
13836
13950
|
var sendOptions = SendDataCenter.getInstance(platformType).getSendData();
|
|
13837
|
-
var isSelectName = ['wdt', 'bsE3', 'km', 'gy', 'jst', 'jy'].includes(platformType);
|
|
13951
|
+
var isSelectName = ['wdt', 'bsE3', 'km', 'gy', 'jst', 'jy', 'jky'].includes(platformType);
|
|
13838
13952
|
var expressDateInstance = ExpressData.getInstance(platformType);
|
|
13839
13953
|
var isSendGoodSavedId = isSelectName && !['jst'].includes(platformType);
|
|
13840
13954
|
useEffect(function () {
|
|
@@ -14088,7 +14202,7 @@ var renderTextEllipsis = function renderTextEllipsis(value) {
|
|
|
14088
14202
|
var css_248z$b = ".GoodModalColumns .ellipsis-text-3 {\n display: -webkit-box;\n overflow: hidden;\n white-space: normal !important;\n text-overflow: ellipsis;\n word-break: break-all;\n overflow-wrap: anywhere;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 3;\n line-clamp: 3;\n}\n";
|
|
14089
14203
|
styleInject(css_248z$b);
|
|
14090
14204
|
|
|
14091
|
-
var css_248z$c = ".search-form .ant-form-item {\n margin-right: 0px !important;\n margin-bottom: 12px !important;\n padding-right: 10px !important;\n}\n@media (max-width: 600px) {\n .search-form {\n display: flex;\n flex-wrap: wrap;\n }\n .search-form .ant-form-item {\n box-sizing: border-box;\n width:
|
|
14205
|
+
var css_248z$c = ".search-form .ant-form-item {\n margin-right: 0px !important;\n margin-bottom: 12px !important;\n padding-right: 10px !important;\n}\n@media (max-width: 600px) {\n .search-form {\n display: flex;\n flex-wrap: wrap;\n }\n .search-form .ant-form-item {\n box-sizing: border-box;\n width: 50% !important;\n }\n .search-form .ant-input-affix-wrapper,\n .search-form .ant-select,\n .search-form .ant-select-selector {\n width: 100% !important;\n }\n .search-form .optional-input-select {\n width: 70px !important;\n }\n .search-form .search-form-actions .ant-form-item-control-input-content {\n display: flex;\n flex-wrap: nowrap;\n justify-content: space-between;\n }\n .search-form .search-form-actions .ant-form-item-control-input-content .ant-btn {\n width: calc((100% - 8px) / 2) !important;\n padding: 0 !important;\n }\n}\n";
|
|
14092
14206
|
styleInject(css_248z$c);
|
|
14093
14207
|
|
|
14094
14208
|
var _excluded$d = ["shopId"];
|
|
@@ -15204,6 +15318,223 @@ var jyColumns = [{
|
|
|
15204
15318
|
}
|
|
15205
15319
|
}];
|
|
15206
15320
|
|
|
15321
|
+
var jkyColumns = [{
|
|
15322
|
+
dataIndex: 'goodsNo',
|
|
15323
|
+
title: "\u8D27\u54C1\u7F16\u53F7",
|
|
15324
|
+
align: 'center',
|
|
15325
|
+
ellipsis: true,
|
|
15326
|
+
width: 150,
|
|
15327
|
+
render: renderTextEllipsis
|
|
15328
|
+
}, {
|
|
15329
|
+
dataIndex: 'goodsName',
|
|
15330
|
+
title: "\u8D27\u54C1\u540D\u79F0",
|
|
15331
|
+
align: 'center',
|
|
15332
|
+
ellipsis: true,
|
|
15333
|
+
width: 150,
|
|
15334
|
+
render: renderTextEllipsis
|
|
15335
|
+
}, {
|
|
15336
|
+
dataIndex: 'goodsId',
|
|
15337
|
+
title: "\u8D27\u54C1ID",
|
|
15338
|
+
align: 'center',
|
|
15339
|
+
ellipsis: true,
|
|
15340
|
+
width: 150,
|
|
15341
|
+
render: renderTextEllipsis
|
|
15342
|
+
}, {
|
|
15343
|
+
dataIndex: 'barcode',
|
|
15344
|
+
title: "\u8D27\u54C1\u6761\u7801",
|
|
15345
|
+
align: 'center',
|
|
15346
|
+
ellipsis: true,
|
|
15347
|
+
width: 150,
|
|
15348
|
+
render: renderTextEllipsis
|
|
15349
|
+
}, {
|
|
15350
|
+
dataIndex: 'specName',
|
|
15351
|
+
title: "\u89C4\u683C\u540D\u79F0",
|
|
15352
|
+
align: 'center',
|
|
15353
|
+
ellipsis: true,
|
|
15354
|
+
width: 150,
|
|
15355
|
+
render: renderTextEllipsis
|
|
15356
|
+
}, {
|
|
15357
|
+
dataIndex: 'specId',
|
|
15358
|
+
title: "\u89C4\u683CID",
|
|
15359
|
+
align: 'center',
|
|
15360
|
+
ellipsis: true,
|
|
15361
|
+
width: 150,
|
|
15362
|
+
render: renderTextEllipsis
|
|
15363
|
+
}, {
|
|
15364
|
+
dataIndex: 'skuImgUrl',
|
|
15365
|
+
title: "\u89C4\u683C\u56FE\u7247",
|
|
15366
|
+
align: 'center',
|
|
15367
|
+
ellipsis: true,
|
|
15368
|
+
width: 150,
|
|
15369
|
+
render: function render(val) {
|
|
15370
|
+
return /*#__PURE__*/React.createElement("img", {
|
|
15371
|
+
style: {
|
|
15372
|
+
width: '30px',
|
|
15373
|
+
height: '30px',
|
|
15374
|
+
objectFit: 'contain'
|
|
15375
|
+
},
|
|
15376
|
+
src: val
|
|
15377
|
+
});
|
|
15378
|
+
}
|
|
15379
|
+
}, {
|
|
15380
|
+
dataIndex: 'sellCount',
|
|
15381
|
+
title: "\u6570\u91CF",
|
|
15382
|
+
width: 100,
|
|
15383
|
+
render: function render(val) {
|
|
15384
|
+
return /*#__PURE__*/React.createElement("span", null, val);
|
|
15385
|
+
}
|
|
15386
|
+
}, {
|
|
15387
|
+
dataIndex: 'actualSendCount',
|
|
15388
|
+
title: "\u5B9E\u53D1\u6570\u91CF",
|
|
15389
|
+
width: 150,
|
|
15390
|
+
render: renderTextEllipsis
|
|
15391
|
+
}, {
|
|
15392
|
+
dataIndex: 'sellPrice',
|
|
15393
|
+
title: "\u5355\u4EF7",
|
|
15394
|
+
width: 150,
|
|
15395
|
+
render: function render(val) {
|
|
15396
|
+
return val || val === 0 ? Number(val).toFixed(2) : '';
|
|
15397
|
+
}
|
|
15398
|
+
}, {
|
|
15399
|
+
dataIndex: 'sellTotal',
|
|
15400
|
+
title: "\u91D1\u989D",
|
|
15401
|
+
width: 150
|
|
15402
|
+
}, {
|
|
15403
|
+
dataIndex: 'discountTotal',
|
|
15404
|
+
title: "\u62B5\u6263\u91D1\u989D",
|
|
15405
|
+
width: 150
|
|
15406
|
+
}, {
|
|
15407
|
+
dataIndex: 'shareFavourableFee',
|
|
15408
|
+
title: "\u5206\u644A\u91D1\u989D",
|
|
15409
|
+
width: 150
|
|
15410
|
+
}, {
|
|
15411
|
+
dataIndex: 'shareFavourableAfterFee',
|
|
15412
|
+
title: "\u5206\u644A\u540E\u91D1\u989D",
|
|
15413
|
+
width: 150
|
|
15414
|
+
}, {
|
|
15415
|
+
dataIndex: 'customerPrice',
|
|
15416
|
+
title: "\u7EC8\u7AEF\u9500\u552E\u5355\u4EF7",
|
|
15417
|
+
width: 150
|
|
15418
|
+
}, {
|
|
15419
|
+
dataIndex: 'customerTotal',
|
|
15420
|
+
title: "\u7EC8\u7AEF\u9500\u552E\u91D1\u989D",
|
|
15421
|
+
width: 150
|
|
15422
|
+
}, {
|
|
15423
|
+
dataIndex: 'divideSellTotal',
|
|
15424
|
+
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
15425
|
+
width: 150
|
|
15426
|
+
}, {
|
|
15427
|
+
dataIndex: 'isGift',
|
|
15428
|
+
title: "\u662F\u5426\u8D60\u54C1",
|
|
15429
|
+
width: 150,
|
|
15430
|
+
render: function render(val) {
|
|
15431
|
+
return /*#__PURE__*/React.createElement("span", null, val === '1' ? '是' : '否');
|
|
15432
|
+
}
|
|
15433
|
+
}, {
|
|
15434
|
+
dataIndex: 'isFit',
|
|
15435
|
+
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
15436
|
+
width: 150,
|
|
15437
|
+
render: function render(val) {
|
|
15438
|
+
return /*#__PURE__*/React.createElement("span", null, val === '1' ? '是' : '否');
|
|
15439
|
+
}
|
|
15440
|
+
}, {
|
|
15441
|
+
dataIndex: 'isPresell',
|
|
15442
|
+
title: "\u662F\u5426\u9884\u552E\u8D27\u54C1",
|
|
15443
|
+
width: 150,
|
|
15444
|
+
render: function render(val) {
|
|
15445
|
+
return /*#__PURE__*/React.createElement("span", null, val === '1' ? '是' : '否');
|
|
15446
|
+
}
|
|
15447
|
+
}, {
|
|
15448
|
+
dataIndex: 'brandName',
|
|
15449
|
+
title: "\u54C1\u724C",
|
|
15450
|
+
align: 'center',
|
|
15451
|
+
ellipsis: true,
|
|
15452
|
+
width: 200,
|
|
15453
|
+
render: renderTextEllipsis
|
|
15454
|
+
}, {
|
|
15455
|
+
dataIndex: 'cateName',
|
|
15456
|
+
title: "\u8D27\u54C1\u7C7B\u522B",
|
|
15457
|
+
align: 'center',
|
|
15458
|
+
ellipsis: true,
|
|
15459
|
+
width: 150,
|
|
15460
|
+
render: renderTextEllipsis
|
|
15461
|
+
}, {
|
|
15462
|
+
dataIndex: 'goodsTags',
|
|
15463
|
+
title: "\u8D27\u54C1\u6807\u7B7E",
|
|
15464
|
+
align: 'center',
|
|
15465
|
+
ellipsis: true,
|
|
15466
|
+
width: 250,
|
|
15467
|
+
render: renderTextEllipsis
|
|
15468
|
+
}, {
|
|
15469
|
+
dataIndex: 'goodsMemo',
|
|
15470
|
+
title: "\u8D27\u54C1\u5907\u6CE8",
|
|
15471
|
+
align: 'center',
|
|
15472
|
+
ellipsis: true,
|
|
15473
|
+
width: 250,
|
|
15474
|
+
render: renderTextEllipsis
|
|
15475
|
+
}, {
|
|
15476
|
+
dataIndex: 'tradeGoodsNo',
|
|
15477
|
+
title: "\u4EA4\u6613\u8D27\u54C1\u7F16\u53F7",
|
|
15478
|
+
align: 'center',
|
|
15479
|
+
ellipsis: true,
|
|
15480
|
+
width: 250,
|
|
15481
|
+
render: renderTextEllipsis
|
|
15482
|
+
}, {
|
|
15483
|
+
dataIndex: 'tradeGoodsName',
|
|
15484
|
+
title: "\u4EA4\u6613\u8D27\u54C1\u540D\u79F0",
|
|
15485
|
+
ellipsis: true,
|
|
15486
|
+
width: 250,
|
|
15487
|
+
render: renderTextEllipsis
|
|
15488
|
+
}, {
|
|
15489
|
+
dataIndex: 'tradeGoodsSpec',
|
|
15490
|
+
title: "\u4EA4\u6613\u89C4\u683C\u540D\u79F0",
|
|
15491
|
+
ellipsis: true,
|
|
15492
|
+
width: 250,
|
|
15493
|
+
render: renderTextEllipsis
|
|
15494
|
+
}, {
|
|
15495
|
+
dataIndex: 'sourceSubtradeNo',
|
|
15496
|
+
title: "\u7F51\u5E97\u5B50\u8BA2\u5355\u53F7",
|
|
15497
|
+
ellipsis: true,
|
|
15498
|
+
width: 250,
|
|
15499
|
+
render: renderTextEllipsis
|
|
15500
|
+
}, {
|
|
15501
|
+
dataIndex: 'platGoodsId',
|
|
15502
|
+
title: "\u5E73\u53F0\u5546\u54C1ID",
|
|
15503
|
+
ellipsis: true,
|
|
15504
|
+
width: 250,
|
|
15505
|
+
render: renderTextEllipsis
|
|
15506
|
+
}, {
|
|
15507
|
+
dataIndex: 'subTradeId',
|
|
15508
|
+
title: "\u5546\u54C1\u660E\u7EC6ID",
|
|
15509
|
+
ellipsis: true,
|
|
15510
|
+
width: 250,
|
|
15511
|
+
render: renderTextEllipsis
|
|
15512
|
+
}, {
|
|
15513
|
+
dataIndex: 'batchNo',
|
|
15514
|
+
title: "\u6279\u6B21\u53F7",
|
|
15515
|
+
ellipsis: true,
|
|
15516
|
+
width: 250,
|
|
15517
|
+
render: renderTextEllipsis
|
|
15518
|
+
}, {
|
|
15519
|
+
dataIndex: 'sendCount',
|
|
15520
|
+
title: "\u6279\u6B21\u6570\u91CF",
|
|
15521
|
+
ellipsis: true,
|
|
15522
|
+
width: 250,
|
|
15523
|
+
render: renderTextEllipsis
|
|
15524
|
+
}, {
|
|
15525
|
+
dataIndex: 'productDate',
|
|
15526
|
+
title: "\u751F\u4EA7\u65E5\u671F",
|
|
15527
|
+
ellipsis: true,
|
|
15528
|
+
width: 250,
|
|
15529
|
+
render: renderTextEllipsis
|
|
15530
|
+
}, {
|
|
15531
|
+
dataIndex: 'expireDate',
|
|
15532
|
+
title: "\u5230\u671F\u65E5\u671F",
|
|
15533
|
+
ellipsis: true,
|
|
15534
|
+
width: 250,
|
|
15535
|
+
render: renderTextEllipsis
|
|
15536
|
+
}];
|
|
15537
|
+
|
|
15207
15538
|
var getColumnsMap = function getColumnsMap() {
|
|
15208
15539
|
return cloneDeep({
|
|
15209
15540
|
gy: gyColumns,
|
|
@@ -15211,7 +15542,8 @@ var getColumnsMap = function getColumnsMap() {
|
|
|
15211
15542
|
wdt: wdtColumns,
|
|
15212
15543
|
bse3: bse3Columns,
|
|
15213
15544
|
km: kmColumns,
|
|
15214
|
-
jy: jyColumns
|
|
15545
|
+
jy: jyColumns,
|
|
15546
|
+
jky: jkyColumns
|
|
15215
15547
|
});
|
|
15216
15548
|
};
|
|
15217
15549
|
var getColumnsBaseInfo = function getColumnsBaseInfo() {
|
|
@@ -15309,6 +15641,64 @@ var useGetColumns = (function (type) {
|
|
|
15309
15641
|
return [columns, showColumnsDataIndexList, loading];
|
|
15310
15642
|
});
|
|
15311
15643
|
|
|
15644
|
+
var compareSymbolList = [{
|
|
15645
|
+
label: '模糊',
|
|
15646
|
+
value: 'like'
|
|
15647
|
+
}, {
|
|
15648
|
+
label: '精准',
|
|
15649
|
+
value: 'eq'
|
|
15650
|
+
}];
|
|
15651
|
+
var OptionalInput = function OptionalInput(props) {
|
|
15652
|
+
var value = props.value,
|
|
15653
|
+
onChange = props.onChange,
|
|
15654
|
+
_props$placeholder = props.placeholder,
|
|
15655
|
+
placeholder = _props$placeholder === void 0 ? '' : _props$placeholder,
|
|
15656
|
+
onPressEnter = props.onPressEnter,
|
|
15657
|
+
onBlur = props.onBlur,
|
|
15658
|
+
formItemProps = props.formItemProps;
|
|
15659
|
+
var handleSelectChange = function handleSelectChange(compareSymbol) {
|
|
15660
|
+
if (typeof onChange === 'function') {
|
|
15661
|
+
onChange({
|
|
15662
|
+
type: compareSymbol || 'like',
|
|
15663
|
+
inputValue: value === null || value === void 0 ? void 0 : value.inputValue
|
|
15664
|
+
});
|
|
15665
|
+
}
|
|
15666
|
+
};
|
|
15667
|
+
var handleInputChange = function handleInputChange(e) {
|
|
15668
|
+
if (typeof onChange === 'function') {
|
|
15669
|
+
onChange({
|
|
15670
|
+
type: (value === null || value === void 0 ? void 0 : value.type) || 'like',
|
|
15671
|
+
inputValue: e.target.value
|
|
15672
|
+
});
|
|
15673
|
+
}
|
|
15674
|
+
};
|
|
15675
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
15676
|
+
style: {
|
|
15677
|
+
display: 'flex',
|
|
15678
|
+
alignItems: 'center'
|
|
15679
|
+
}
|
|
15680
|
+
}, /*#__PURE__*/React.createElement(Select, {
|
|
15681
|
+
className: "optional-input-select",
|
|
15682
|
+
style: {
|
|
15683
|
+
width: '70px'
|
|
15684
|
+
},
|
|
15685
|
+
options: compareSymbolList,
|
|
15686
|
+
onChange: handleSelectChange,
|
|
15687
|
+
value: (value === null || value === void 0 ? void 0 : value.type) || 'like',
|
|
15688
|
+
onBlur: onBlur
|
|
15689
|
+
}), /*#__PURE__*/React.createElement(Input, _objectSpread2({
|
|
15690
|
+
style: {
|
|
15691
|
+
width: '150px'
|
|
15692
|
+
},
|
|
15693
|
+
allowClear: true,
|
|
15694
|
+
placeholder: placeholder,
|
|
15695
|
+
onChange: handleInputChange,
|
|
15696
|
+
onPressEnter: onPressEnter,
|
|
15697
|
+
onBlur: onBlur,
|
|
15698
|
+
value: value === null || value === void 0 ? void 0 : value.inputValue
|
|
15699
|
+
}, formItemProps)));
|
|
15700
|
+
};
|
|
15701
|
+
|
|
15312
15702
|
function SearchForm(_ref) {
|
|
15313
15703
|
var searchFormData = _ref.searchFormData,
|
|
15314
15704
|
form = _ref.form,
|
|
@@ -15360,7 +15750,16 @@ function SearchForm(_ref) {
|
|
|
15360
15750
|
style: {
|
|
15361
15751
|
marginBottom: '12px'
|
|
15362
15752
|
}
|
|
15363
|
-
}, type === '
|
|
15753
|
+
}, type === 'optionalInput' ? /*#__PURE__*/React.createElement(OptionalInput, {
|
|
15754
|
+
onPressEnter: function onPressEnter() {
|
|
15755
|
+
return submitForm();
|
|
15756
|
+
},
|
|
15757
|
+
onBlur: function onBlur() {
|
|
15758
|
+
return submitForm();
|
|
15759
|
+
},
|
|
15760
|
+
placeholder: label,
|
|
15761
|
+
formItemProps: formItemProps
|
|
15762
|
+
}) : type === 'select' ? /*#__PURE__*/React.createElement(Select, _objectSpread2({
|
|
15364
15763
|
placeholder: label,
|
|
15365
15764
|
showSearch: true,
|
|
15366
15765
|
allowClear: true,
|
|
@@ -15401,24 +15800,42 @@ function SearchForm(_ref) {
|
|
|
15401
15800
|
}, "\u91CD\u7F6E")));
|
|
15402
15801
|
}
|
|
15403
15802
|
|
|
15404
|
-
var
|
|
15405
|
-
var
|
|
15406
|
-
var
|
|
15407
|
-
|
|
15408
|
-
|
|
15409
|
-
|
|
15410
|
-
|
|
15411
|
-
|
|
15412
|
-
|
|
15413
|
-
|
|
15414
|
-
|
|
15415
|
-
|
|
15416
|
-
|
|
15417
|
-
|
|
15803
|
+
var transformFormData = function transformFormData(formData) {
|
|
15804
|
+
var conditionList = [];
|
|
15805
|
+
for (var key in formData) {
|
|
15806
|
+
if (formData[key]) {
|
|
15807
|
+
var _formData$key, _formData$key2, _formData$key3, _formData$key4;
|
|
15808
|
+
var value = ((_formData$key = formData[key]) === null || _formData$key === void 0 ? void 0 : _formData$key.type) ? (_formData$key2 = formData[key]) === null || _formData$key2 === void 0 ? void 0 : _formData$key2.inputValue : formData[key];
|
|
15809
|
+
// 如果 value 是字符串且包含中英文逗号或空格,则拆分成数组
|
|
15810
|
+
if (typeof value === 'string' && (value.includes(',') || value.includes("\uFF0C") || value.includes(' '))) {
|
|
15811
|
+
var _value, _value$replace, _value$replace$split;
|
|
15812
|
+
value = (_value = value) === null || _value === void 0 ? void 0 : (_value$replace = _value.replace(/[,, ]/g, ',')) === null || _value$replace === void 0 ? void 0 : (_value$replace$split = _value$replace.split(',')) === null || _value$replace$split === void 0 ? void 0 : _value$replace$split.filter(function (v) {
|
|
15813
|
+
return v;
|
|
15814
|
+
});
|
|
15815
|
+
}
|
|
15816
|
+
var compareSymbol = ((_formData$key3 = formData[key]) === null || _formData$key3 === void 0 ? void 0 : _formData$key3.type) ? (_formData$key4 = formData[key]) === null || _formData$key4 === void 0 ? void 0 : _formData$key4.type : Array.isArray(value) ? 'include' : 'eq';
|
|
15817
|
+
conditionList.push({
|
|
15818
|
+
leftValue: key,
|
|
15819
|
+
compareSymbol: compareSymbol,
|
|
15820
|
+
rightValue: value
|
|
15821
|
+
});
|
|
15822
|
+
}
|
|
15823
|
+
}
|
|
15824
|
+
return conditionList;
|
|
15825
|
+
};
|
|
15826
|
+
|
|
15827
|
+
var getTableData = function getTableData(_ref, formData) {
|
|
15828
|
+
var current = _ref.current,
|
|
15829
|
+
pageSize = _ref.pageSize;
|
|
15830
|
+
var conditionList = transformFormData(formData);
|
|
15831
|
+
return extendRequest('/qy/gdfw/product/product/page', {
|
|
15832
|
+
method: 'post',
|
|
15833
|
+
data: {
|
|
15418
15834
|
pageSize: pageSize,
|
|
15419
15835
|
pageNo: current,
|
|
15420
|
-
platform: 'WDT_ERP'
|
|
15421
|
-
|
|
15836
|
+
platform: 'WDT_ERP',
|
|
15837
|
+
conditionList: conditionList
|
|
15838
|
+
}
|
|
15422
15839
|
}).then(function (res) {
|
|
15423
15840
|
var _res$data = res.data,
|
|
15424
15841
|
_res$data$productSkuL = _res$data.productSkuList,
|
|
@@ -15512,13 +15929,15 @@ var GoodList = function GoodList(props, ref) {
|
|
|
15512
15929
|
}, {
|
|
15513
15930
|
label: 'SKU编码',
|
|
15514
15931
|
name: 'skuCode',
|
|
15515
|
-
dataIndex: 'specNo'
|
|
15932
|
+
dataIndex: 'specNo',
|
|
15933
|
+
type: 'optionalInput'
|
|
15516
15934
|
}, {
|
|
15517
15935
|
label: '商品名称',
|
|
15518
15936
|
name: 'goodName'
|
|
15519
15937
|
}, {
|
|
15520
15938
|
label: '商品编码',
|
|
15521
|
-
name: 'goodNo'
|
|
15939
|
+
name: 'goodNo',
|
|
15940
|
+
type: 'optionalInput'
|
|
15522
15941
|
}, {
|
|
15523
15942
|
label: '品牌',
|
|
15524
15943
|
name: 'brandIds',
|
|
@@ -15708,13 +16127,15 @@ var WdtGoodsModal = /*#__PURE__*/forwardRef(GoodsModal$3);
|
|
|
15708
16127
|
var getTableData$1 = function getTableData(_ref, formData) {
|
|
15709
16128
|
var current = _ref.current,
|
|
15710
16129
|
pageSize = _ref.pageSize;
|
|
16130
|
+
var conditionList = transformFormData(formData);
|
|
15711
16131
|
return extendRequest('/qy/gdfw/product/product/page', {
|
|
15712
16132
|
method: 'post',
|
|
15713
|
-
data:
|
|
16133
|
+
data: {
|
|
15714
16134
|
pageSize: pageSize,
|
|
15715
16135
|
pageNo: current,
|
|
15716
|
-
platform: 'JST_ERP'
|
|
15717
|
-
|
|
16136
|
+
platform: 'JST_ERP',
|
|
16137
|
+
conditionList: conditionList
|
|
16138
|
+
}
|
|
15718
16139
|
}).then(function (res) {
|
|
15719
16140
|
var _res$data = res.data,
|
|
15720
16141
|
_res$data$productSkuL = _res$data.productSkuList,
|
|
@@ -15735,10 +16156,12 @@ var searchFormData = [{
|
|
|
15735
16156
|
name: 'goodName'
|
|
15736
16157
|
}, {
|
|
15737
16158
|
label: '商品编码',
|
|
15738
|
-
name: 'goodNo'
|
|
16159
|
+
name: 'goodNo',
|
|
16160
|
+
type: 'optionalInput'
|
|
15739
16161
|
}, {
|
|
15740
16162
|
label: '款式编码',
|
|
15741
|
-
name: 'styleCode'
|
|
16163
|
+
name: 'styleCode',
|
|
16164
|
+
type: 'optionalInput'
|
|
15742
16165
|
}, {
|
|
15743
16166
|
label: '商品类型',
|
|
15744
16167
|
name: 'skuType',
|
|
@@ -15959,19 +16382,15 @@ var JstGoodsModal = /*#__PURE__*/forwardRef(GyGoodsModal);
|
|
|
15959
16382
|
var getTableData$2 = function getTableData(_ref, formData) {
|
|
15960
16383
|
var current = _ref.current,
|
|
15961
16384
|
pageSize = _ref.pageSize;
|
|
15962
|
-
var
|
|
15963
|
-
goodNo: formData.goodNo || null,
|
|
15964
|
-
goodName: formData.goodName || null,
|
|
15965
|
-
skuCode: formData.skuCode || null,
|
|
15966
|
-
skuId: formData.skuId || null
|
|
15967
|
-
};
|
|
16385
|
+
var conditionList = transformFormData(formData);
|
|
15968
16386
|
return extendRequest('/qy/gdfw/product/product/page', {
|
|
15969
16387
|
method: 'post',
|
|
15970
|
-
data:
|
|
16388
|
+
data: {
|
|
15971
16389
|
pageSize: pageSize,
|
|
15972
16390
|
pageNo: current,
|
|
15973
|
-
platform: 'BS_E3_ERP'
|
|
15974
|
-
|
|
16391
|
+
platform: 'BS_E3_ERP',
|
|
16392
|
+
conditionList: conditionList
|
|
16393
|
+
}
|
|
15975
16394
|
}).then(function (res) {
|
|
15976
16395
|
var _res$data = res.data,
|
|
15977
16396
|
_res$data$productSkuL = _res$data.productSkuList,
|
|
@@ -15991,18 +16410,21 @@ var getTableData$2 = function getTableData(_ref, formData) {
|
|
|
15991
16410
|
};
|
|
15992
16411
|
var searchFormData$1 = [{
|
|
15993
16412
|
label: '商品货号',
|
|
15994
|
-
name: 'goodNo'
|
|
16413
|
+
name: 'goodNo',
|
|
16414
|
+
type: 'optionalInput'
|
|
15995
16415
|
}, {
|
|
15996
16416
|
label: '商品名称',
|
|
15997
16417
|
name: 'goodName'
|
|
15998
16418
|
}, {
|
|
15999
16419
|
label: 'SKU',
|
|
16000
16420
|
name: 'skuCode',
|
|
16001
|
-
dataIndex: 'specNo'
|
|
16421
|
+
dataIndex: 'specNo',
|
|
16422
|
+
type: 'optionalInput'
|
|
16002
16423
|
}, {
|
|
16003
16424
|
label: 'SKU ID',
|
|
16004
16425
|
name: 'skuId',
|
|
16005
|
-
dataIndex: 'specId'
|
|
16426
|
+
dataIndex: 'specId',
|
|
16427
|
+
type: 'optionalInput'
|
|
16006
16428
|
}];
|
|
16007
16429
|
var GoodList$2 = function GoodList(props, ref) {
|
|
16008
16430
|
var _useState = useState([]),
|
|
@@ -16204,13 +16626,15 @@ var rowCheckKey = 'id';
|
|
|
16204
16626
|
var getTableData$3 = function getTableData(_ref, formData) {
|
|
16205
16627
|
var current = _ref.current,
|
|
16206
16628
|
pageSize = _ref.pageSize;
|
|
16629
|
+
var conditionList = transformFormData(formData);
|
|
16207
16630
|
return extendRequest('/qy/gdfw/product/product/page', {
|
|
16208
16631
|
method: 'post',
|
|
16209
|
-
data:
|
|
16632
|
+
data: {
|
|
16210
16633
|
pageSize: pageSize,
|
|
16211
16634
|
pageNo: current,
|
|
16212
|
-
platform: 'KM_ERP'
|
|
16213
|
-
|
|
16635
|
+
platform: 'KM_ERP',
|
|
16636
|
+
conditionList: conditionList
|
|
16637
|
+
}
|
|
16214
16638
|
}).then(function (res) {
|
|
16215
16639
|
var _res$data = res.data,
|
|
16216
16640
|
_res$data$productSkuL = _res$data.productSkuList,
|
|
@@ -16231,7 +16655,8 @@ var searchFormData$2 = [{
|
|
|
16231
16655
|
name: 'goodName'
|
|
16232
16656
|
}, {
|
|
16233
16657
|
label: '商品编码',
|
|
16234
|
-
name: 'goodNo'
|
|
16658
|
+
name: 'goodNo',
|
|
16659
|
+
type: 'optionalInput'
|
|
16235
16660
|
}, {
|
|
16236
16661
|
label: 'SKU名称',
|
|
16237
16662
|
name: 'skuName',
|
|
@@ -16239,7 +16664,8 @@ var searchFormData$2 = [{
|
|
|
16239
16664
|
}, {
|
|
16240
16665
|
label: 'SKU编码',
|
|
16241
16666
|
name: 'skuCode',
|
|
16242
|
-
dataIndex: 'specNo'
|
|
16667
|
+
dataIndex: 'specNo',
|
|
16668
|
+
type: 'optionalInput'
|
|
16243
16669
|
}];
|
|
16244
16670
|
var GoodList$3 = function GoodList(props, ref) {
|
|
16245
16671
|
var _useState = useState([]),
|
|
@@ -16447,20 +16873,15 @@ var KmGoodsModal = /*#__PURE__*/forwardRef(ErpGoodsModal);
|
|
|
16447
16873
|
var getTableData$4 = function getTableData(_ref, formData) {
|
|
16448
16874
|
var current = _ref.current,
|
|
16449
16875
|
pageSize = _ref.pageSize;
|
|
16450
|
-
var
|
|
16451
|
-
goodShortName: formData.goodShortName || null,
|
|
16452
|
-
skuName: formData.skuName || null,
|
|
16453
|
-
skuCode: formData.skuCode || null,
|
|
16454
|
-
goodName: formData.goodName || null,
|
|
16455
|
-
goodNo: formData.goodNo || null
|
|
16456
|
-
};
|
|
16876
|
+
var conditionList = transformFormData(formData);
|
|
16457
16877
|
return extendRequest('/qy/gdfw/product/product/page', {
|
|
16458
16878
|
method: 'post',
|
|
16459
|
-
data:
|
|
16879
|
+
data: {
|
|
16460
16880
|
pageSize: pageSize,
|
|
16461
16881
|
pageNo: current,
|
|
16462
|
-
platform: 'GY_ERP'
|
|
16463
|
-
|
|
16882
|
+
platform: 'GY_ERP',
|
|
16883
|
+
conditionList: conditionList
|
|
16884
|
+
}
|
|
16464
16885
|
}).then(function (res) {
|
|
16465
16886
|
var _res$data = res.data,
|
|
16466
16887
|
_res$data$productSkuL = _res$data.productSkuList,
|
|
@@ -16486,13 +16907,15 @@ var searchFormData$3 = [{
|
|
|
16486
16907
|
}, {
|
|
16487
16908
|
label: '商品sku编码',
|
|
16488
16909
|
name: 'skuCode',
|
|
16489
|
-
dataIndex: 'specNo'
|
|
16910
|
+
dataIndex: 'specNo',
|
|
16911
|
+
type: 'optionalInput'
|
|
16490
16912
|
}, {
|
|
16491
16913
|
label: '商品名称',
|
|
16492
16914
|
name: 'goodName'
|
|
16493
16915
|
}, {
|
|
16494
16916
|
label: '商品编码',
|
|
16495
|
-
name: 'goodNo'
|
|
16917
|
+
name: 'goodNo',
|
|
16918
|
+
type: 'optionalInput'
|
|
16496
16919
|
}];
|
|
16497
16920
|
var GoodList$4 = function GoodList(props, ref) {
|
|
16498
16921
|
var _useState = useState([]),
|
|
@@ -18112,13 +18535,15 @@ var GyGoodsModal$2 = /*#__PURE__*/forwardRef(GyGoodsModal$1);
|
|
|
18112
18535
|
var getTableData$5 = function getTableData(_ref, formData) {
|
|
18113
18536
|
var current = _ref.current,
|
|
18114
18537
|
pageSize = _ref.pageSize;
|
|
18538
|
+
var conditionList = transformFormData(formData);
|
|
18115
18539
|
return extendRequest('/qy/gdfw/product/product/page', {
|
|
18116
18540
|
method: 'post',
|
|
18117
|
-
data:
|
|
18541
|
+
data: {
|
|
18118
18542
|
pageSize: pageSize,
|
|
18119
18543
|
pageNo: current,
|
|
18120
|
-
platform: 'JY_ERP'
|
|
18121
|
-
|
|
18544
|
+
platform: 'JY_ERP',
|
|
18545
|
+
conditionList: conditionList
|
|
18546
|
+
}
|
|
18122
18547
|
}).then(function (res) {
|
|
18123
18548
|
var _res$data = res.data,
|
|
18124
18549
|
_res$data$productSkuL = _res$data.productSkuList,
|
|
@@ -18141,13 +18566,15 @@ var searchFormData$4 = [{
|
|
|
18141
18566
|
}, {
|
|
18142
18567
|
label: '规格编码',
|
|
18143
18568
|
name: 'skuCode',
|
|
18144
|
-
dataIndex: 'specNo'
|
|
18569
|
+
dataIndex: 'specNo',
|
|
18570
|
+
type: 'optionalInput'
|
|
18145
18571
|
}, {
|
|
18146
18572
|
label: '商品名称',
|
|
18147
18573
|
name: 'goodName'
|
|
18148
18574
|
}, {
|
|
18149
18575
|
label: '商品编码',
|
|
18150
|
-
name: 'goodNo'
|
|
18576
|
+
name: 'goodNo',
|
|
18577
|
+
type: 'optionalInput'
|
|
18151
18578
|
}];
|
|
18152
18579
|
var GoodList$5 = function GoodList(props, ref) {
|
|
18153
18580
|
var _useState = useState([]),
|
|
@@ -18352,139 +18779,382 @@ var JyGoodsModal = function JyGoodsModal(props, ref) {
|
|
|
18352
18779
|
};
|
|
18353
18780
|
var JyGoodsModal$1 = /*#__PURE__*/forwardRef(JyGoodsModal);
|
|
18354
18781
|
|
|
18355
|
-
var
|
|
18356
|
-
var
|
|
18357
|
-
|
|
18358
|
-
|
|
18359
|
-
|
|
18360
|
-
|
|
18361
|
-
|
|
18362
|
-
|
|
18363
|
-
|
|
18364
|
-
|
|
18365
|
-
|
|
18366
|
-
|
|
18367
|
-
|
|
18368
|
-
|
|
18369
|
-
|
|
18370
|
-
|
|
18371
|
-
|
|
18372
|
-
|
|
18373
|
-
|
|
18374
|
-
|
|
18375
|
-
|
|
18376
|
-
|
|
18377
|
-
|
|
18378
|
-
|
|
18379
|
-
|
|
18380
|
-
|
|
18381
|
-
|
|
18382
|
-
|
|
18383
|
-
|
|
18384
|
-
|
|
18385
|
-
|
|
18386
|
-
|
|
18387
|
-
|
|
18388
|
-
|
|
18389
|
-
|
|
18390
|
-
|
|
18391
|
-
|
|
18392
|
-
|
|
18393
|
-
|
|
18394
|
-
|
|
18395
|
-
|
|
18396
|
-
|
|
18397
|
-
|
|
18398
|
-
|
|
18399
|
-
|
|
18400
|
-
|
|
18401
|
-
|
|
18402
|
-
|
|
18403
|
-
|
|
18404
|
-
|
|
18405
|
-
|
|
18406
|
-
|
|
18407
|
-
|
|
18408
|
-
|
|
18409
|
-
|
|
18410
|
-
|
|
18411
|
-
|
|
18412
|
-
|
|
18413
|
-
title: "\u5C3A\u7801\u540D\u79F0",
|
|
18414
|
-
width: 150,
|
|
18415
|
-
render: renderTextEllipsis
|
|
18416
|
-
}, {
|
|
18417
|
-
dataIndex: 'sizeCode',
|
|
18418
|
-
title: "\u5C3A\u7801\u4EE3\u7801",
|
|
18419
|
-
width: 150,
|
|
18420
|
-
render: renderTextEllipsis
|
|
18421
|
-
}, {
|
|
18422
|
-
dataIndex: 'brandName',
|
|
18423
|
-
title: "\u54C1\u724C\u540D\u79F0",
|
|
18424
|
-
width: 150,
|
|
18425
|
-
render: renderTextEllipsis
|
|
18426
|
-
}, {
|
|
18427
|
-
dataIndex: 'goodsNumber',
|
|
18428
|
-
title: "\u5546\u54C1\u6570\u91CF",
|
|
18429
|
-
width: 150
|
|
18430
|
-
}, {
|
|
18431
|
-
dataIndex: 'goodsPrice',
|
|
18432
|
-
title: "\u5546\u54C1\u5355\u4EF7",
|
|
18433
|
-
width: 150
|
|
18434
|
-
}, {
|
|
18435
|
-
dataIndex: 'shopPrice',
|
|
18436
|
-
title: "\u5546\u54C1\u7F51\u5E97\u552E\u4EF7",
|
|
18437
|
-
width: 150
|
|
18438
|
-
}, {
|
|
18439
|
-
dataIndex: 'isGift',
|
|
18440
|
-
title: "\u662F\u5426\u8D60\u54C1",
|
|
18441
|
-
width: 150,
|
|
18442
|
-
render: function render(val) {
|
|
18443
|
-
return /*#__PURE__*/React.createElement("span", null, +val ? '是' : '否');
|
|
18782
|
+
var getTableData$6 = function getTableData(_ref, formData) {
|
|
18783
|
+
var current = _ref.current,
|
|
18784
|
+
pageSize = _ref.pageSize;
|
|
18785
|
+
return extendRequest('/qy/gdfw/product/product/page', {
|
|
18786
|
+
method: 'post',
|
|
18787
|
+
data: _objectSpread2({
|
|
18788
|
+
pageSize: pageSize,
|
|
18789
|
+
pageNo: current,
|
|
18790
|
+
platform: 'JY_ERP'
|
|
18791
|
+
}, formData)
|
|
18792
|
+
}).then(function (res) {
|
|
18793
|
+
var _res$data = res.data,
|
|
18794
|
+
_res$data$productSkuL = _res$data.productSkuList,
|
|
18795
|
+
productSkuList = _res$data$productSkuL === void 0 ? [] : _res$data$productSkuL,
|
|
18796
|
+
_res$data$total = _res$data.total,
|
|
18797
|
+
total = _res$data$total === void 0 ? 0 : _res$data$total;
|
|
18798
|
+
var newProducts = productSkuList.map(function (item, index) {
|
|
18799
|
+
return _objectSpread2({}, item);
|
|
18800
|
+
});
|
|
18801
|
+
return {
|
|
18802
|
+
total: total,
|
|
18803
|
+
list: newProducts
|
|
18804
|
+
};
|
|
18805
|
+
});
|
|
18806
|
+
};
|
|
18807
|
+
var searchFormData$5 = [{
|
|
18808
|
+
label: '规格名称',
|
|
18809
|
+
name: 'skuName',
|
|
18810
|
+
dataIndex: 'specName'
|
|
18811
|
+
}, {
|
|
18812
|
+
label: '规格编码',
|
|
18813
|
+
name: 'skuCode',
|
|
18814
|
+
dataIndex: 'specNo'
|
|
18815
|
+
}, {
|
|
18816
|
+
label: '商品名称',
|
|
18817
|
+
name: 'goodName'
|
|
18818
|
+
}, {
|
|
18819
|
+
label: '商品编码',
|
|
18820
|
+
name: 'goodNo'
|
|
18821
|
+
}];
|
|
18822
|
+
var GoodList$6 = function GoodList(props, ref) {
|
|
18823
|
+
var _useState = useState([]),
|
|
18824
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
18825
|
+
selectList = _useState2[0],
|
|
18826
|
+
setSelect = _useState2[1];
|
|
18827
|
+
var _useState3 = useState([]),
|
|
18828
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
18829
|
+
selectIds = _useState4[0],
|
|
18830
|
+
setSelectIds = _useState4[1];
|
|
18831
|
+
var _useGetColumns = useGetColumns('jky'),
|
|
18832
|
+
_useGetColumns2 = _slicedToArray(_useGetColumns, 3),
|
|
18833
|
+
columns = _useGetColumns2[0],
|
|
18834
|
+
showColumnsDataIndexList = _useGetColumns2[1],
|
|
18835
|
+
loading = _useGetColumns2[2];
|
|
18836
|
+
useImperativeHandle(ref, function () {
|
|
18837
|
+
return {
|
|
18838
|
+
getSelectGoodList: function getSelectGoodList() {
|
|
18839
|
+
return selectList;
|
|
18444
18840
|
}
|
|
18445
|
-
}
|
|
18446
|
-
|
|
18447
|
-
|
|
18448
|
-
|
|
18449
|
-
|
|
18450
|
-
|
|
18451
|
-
|
|
18452
|
-
|
|
18453
|
-
|
|
18454
|
-
|
|
18455
|
-
|
|
18456
|
-
|
|
18457
|
-
|
|
18458
|
-
|
|
18459
|
-
|
|
18460
|
-
|
|
18461
|
-
|
|
18462
|
-
|
|
18463
|
-
|
|
18464
|
-
|
|
18465
|
-
|
|
18466
|
-
|
|
18467
|
-
|
|
18468
|
-
|
|
18469
|
-
|
|
18470
|
-
|
|
18471
|
-
|
|
18472
|
-
|
|
18473
|
-
width: 100,
|
|
18474
|
-
render: renderTextEllipsis
|
|
18475
|
-
}, {
|
|
18476
|
-
dataIndex: 'picPath',
|
|
18477
|
-
title: "\u5546\u54C1\u56FE\u7247",
|
|
18478
|
-
align: 'center',
|
|
18479
|
-
ellipsis: true,
|
|
18480
|
-
width: 100,
|
|
18481
|
-
render: function render(val) {
|
|
18482
|
-
return /*#__PURE__*/React.createElement(Image, {
|
|
18483
|
-
width: 30,
|
|
18484
|
-
src: val
|
|
18485
|
-
});
|
|
18841
|
+
};
|
|
18842
|
+
});
|
|
18843
|
+
var _Form$useForm = Form.useForm(),
|
|
18844
|
+
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
18845
|
+
form = _Form$useForm2[0];
|
|
18846
|
+
var _useAntdTable = useAntdTable(getTableData$6, {
|
|
18847
|
+
defaultPageSize: 10,
|
|
18848
|
+
form: form
|
|
18849
|
+
}),
|
|
18850
|
+
tableProps = _useAntdTable.tableProps,
|
|
18851
|
+
search = _useAntdTable.search,
|
|
18852
|
+
params = _useAntdTable.params;
|
|
18853
|
+
var submit = search.submit,
|
|
18854
|
+
reset = search.reset;
|
|
18855
|
+
var rowSelection = {
|
|
18856
|
+
selectedRowKeys: selectIds,
|
|
18857
|
+
fixed: true,
|
|
18858
|
+
onSelect: function onSelect(record, selected) {
|
|
18859
|
+
if (selected) {
|
|
18860
|
+
setSelectIds([].concat(_toConsumableArray(selectIds), [record.id]));
|
|
18861
|
+
setSelect([].concat(_toConsumableArray(selectList), [record]));
|
|
18862
|
+
} else {
|
|
18863
|
+
setSelectIds(selectIds.filter(function (t) {
|
|
18864
|
+
return t !== record.id;
|
|
18865
|
+
}));
|
|
18866
|
+
setSelect(selectList.filter(function (t) {
|
|
18867
|
+
return t.id !== record.id;
|
|
18868
|
+
}));
|
|
18486
18869
|
}
|
|
18487
|
-
},
|
|
18870
|
+
},
|
|
18871
|
+
onSelectAll: function onSelectAll(selected, selectedRows, changeRows) {
|
|
18872
|
+
if (selected) {
|
|
18873
|
+
setSelectIds([].concat(_toConsumableArray(selectIds), _toConsumableArray(changeRows.map(function (t) {
|
|
18874
|
+
return t.id;
|
|
18875
|
+
}))));
|
|
18876
|
+
setSelect([].concat(_toConsumableArray(selectList), _toConsumableArray(changeRows)));
|
|
18877
|
+
} else {
|
|
18878
|
+
setSelectIds(difference(selectIds, changeRows.map(function (t) {
|
|
18879
|
+
return t.id;
|
|
18880
|
+
})));
|
|
18881
|
+
var list = differenceWith(selectList, changeRows, function (arrVal, othVal) {
|
|
18882
|
+
return arrVal.id !== othVal.id;
|
|
18883
|
+
});
|
|
18884
|
+
setSelect(list);
|
|
18885
|
+
}
|
|
18886
|
+
},
|
|
18887
|
+
getCheckboxProps: function getCheckboxProps(record) {
|
|
18888
|
+
var options = {
|
|
18889
|
+
disabled: (props.selectedRows || []).map(function (row) {
|
|
18890
|
+
return row.id || row.specId;
|
|
18891
|
+
}).includes(record.id || record.specId),
|
|
18892
|
+
name: record.id
|
|
18893
|
+
};
|
|
18894
|
+
return options;
|
|
18895
|
+
}
|
|
18896
|
+
};
|
|
18897
|
+
var showTable = function showTable() {
|
|
18898
|
+
var handleDelete = function handleDelete(record) {
|
|
18899
|
+
setSelectIds(selectIds.filter(function (t) {
|
|
18900
|
+
return t !== record.id;
|
|
18901
|
+
}));
|
|
18902
|
+
setSelect(selectList.filter(function (t) {
|
|
18903
|
+
return t.id !== record.id;
|
|
18904
|
+
}));
|
|
18905
|
+
};
|
|
18906
|
+
var showColumns = [{
|
|
18907
|
+
dataIndex: '',
|
|
18908
|
+
title: "\u64CD\u4F5C",
|
|
18909
|
+
ellipsis: true,
|
|
18910
|
+
width: 100,
|
|
18911
|
+
render: function render(val, record) {
|
|
18912
|
+
return /*#__PURE__*/React.createElement(Button, {
|
|
18913
|
+
type: "link",
|
|
18914
|
+
onClick: function onClick() {
|
|
18915
|
+
return handleDelete(record);
|
|
18916
|
+
}
|
|
18917
|
+
}, "\u5220\u9664");
|
|
18918
|
+
}
|
|
18919
|
+
}].concat(takeRight(columns, columns.length - 1));
|
|
18920
|
+
return selectList.length ? /*#__PURE__*/React.createElement("div", {
|
|
18921
|
+
style: {
|
|
18922
|
+
width: '100%',
|
|
18923
|
+
maxWidth: '387px'
|
|
18924
|
+
}
|
|
18925
|
+
}, /*#__PURE__*/React.createElement(Table, {
|
|
18926
|
+
columns: showColumns,
|
|
18927
|
+
rowKey: 'id',
|
|
18928
|
+
dataSource: selectList,
|
|
18929
|
+
scroll: {
|
|
18930
|
+
x: '100%',
|
|
18931
|
+
y: 250
|
|
18932
|
+
},
|
|
18933
|
+
pagination: {
|
|
18934
|
+
size: 'small',
|
|
18935
|
+
total: selectIds.length,
|
|
18936
|
+
pageSize: 10,
|
|
18937
|
+
showSizeChanger: false
|
|
18938
|
+
}
|
|
18939
|
+
})) : null;
|
|
18940
|
+
};
|
|
18941
|
+
return /*#__PURE__*/React.createElement(Skeleton, {
|
|
18942
|
+
active: true,
|
|
18943
|
+
loading: loading
|
|
18944
|
+
}, /*#__PURE__*/React.createElement(SearchForm, {
|
|
18945
|
+
searchFormData: searchFormData$5,
|
|
18946
|
+
form: form,
|
|
18947
|
+
showColumnsDataIndexList: showColumnsDataIndexList,
|
|
18948
|
+
submit: submit,
|
|
18949
|
+
reset: reset
|
|
18950
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
18951
|
+
style: {
|
|
18952
|
+
marginTop: '4px'
|
|
18953
|
+
}
|
|
18954
|
+
}, /*#__PURE__*/React.createElement(Table, _objectSpread2({
|
|
18955
|
+
className: "GoodModalColumns",
|
|
18956
|
+
rowSelection: rowSelection,
|
|
18957
|
+
rowKey: "id",
|
|
18958
|
+
columns: columns,
|
|
18959
|
+
scroll: {
|
|
18960
|
+
x: '100%',
|
|
18961
|
+
y: 250
|
|
18962
|
+
},
|
|
18963
|
+
size: "small"
|
|
18964
|
+
}, tableProps))), /*#__PURE__*/React.createElement(Popover, {
|
|
18965
|
+
getPopupContainer: function getPopupContainer(triggerNode) {
|
|
18966
|
+
return triggerNode.parentElement;
|
|
18967
|
+
},
|
|
18968
|
+
content: showTable(),
|
|
18969
|
+
title: "\u5DF2\u9009\u62E9".concat(selectList.length, "\u4E2A\u5546\u54C1")
|
|
18970
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
18971
|
+
danger: true,
|
|
18972
|
+
type: "text"
|
|
18973
|
+
}, "\u5DF2\u9009".concat(selectList.length > 99 ? '99+' : selectList.length, "\u4E2A\u5546\u54C1"), /*#__PURE__*/React.createElement(CaretUpOutlined, null))));
|
|
18974
|
+
};
|
|
18975
|
+
var JkyGoodsList = /*#__PURE__*/forwardRef(GoodList$6);
|
|
18976
|
+
|
|
18977
|
+
var JkyGoodsModal = function JkyGoodsModal(props, ref) {
|
|
18978
|
+
useImperativeHandle(ref, function () {
|
|
18979
|
+
return {
|
|
18980
|
+
open: function open(shopCode) {
|
|
18981
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
18982
|
+
setVisible(true);
|
|
18983
|
+
setSelectedRows(options.value || []);
|
|
18984
|
+
}
|
|
18985
|
+
};
|
|
18986
|
+
});
|
|
18987
|
+
var onSubmit = props.onSubmit,
|
|
18988
|
+
width = props.width;
|
|
18989
|
+
var _useState = useState(false),
|
|
18990
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
18991
|
+
visible = _useState2[0],
|
|
18992
|
+
setVisible = _useState2[1];
|
|
18993
|
+
var _useState3 = useState([]),
|
|
18994
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
18995
|
+
selectedRows = _useState4[0],
|
|
18996
|
+
setSelectedRows = _useState4[1];
|
|
18997
|
+
var jkyGoodsListRef = useRef(null);
|
|
18998
|
+
var _onCancel = function onCancel() {
|
|
18999
|
+
setVisible(false);
|
|
19000
|
+
};
|
|
19001
|
+
var onOk = function onOk() {
|
|
19002
|
+
var _jkyGoodsListRef$curr;
|
|
19003
|
+
var selectedList = ((_jkyGoodsListRef$curr = jkyGoodsListRef.current) === null || _jkyGoodsListRef$curr === void 0 ? void 0 : _jkyGoodsListRef$curr.getSelectGoodList()) || [];
|
|
19004
|
+
onSubmit(selectedList);
|
|
19005
|
+
_onCancel();
|
|
19006
|
+
};
|
|
19007
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, visible && /*#__PURE__*/React.createElement(Modal, {
|
|
19008
|
+
title: '选择商品',
|
|
19009
|
+
okText: '确认',
|
|
19010
|
+
cancelText: '取消',
|
|
19011
|
+
visible: visible,
|
|
19012
|
+
width: width || 850,
|
|
19013
|
+
onCancel: function onCancel() {
|
|
19014
|
+
_onCancel();
|
|
19015
|
+
},
|
|
19016
|
+
onOk: onOk,
|
|
19017
|
+
wrapClassName: "goodModal"
|
|
19018
|
+
}, /*#__PURE__*/React.createElement(JkyGoodsList, {
|
|
19019
|
+
ref: jkyGoodsListRef,
|
|
19020
|
+
selectedRows: selectedRows
|
|
19021
|
+
})));
|
|
19022
|
+
};
|
|
19023
|
+
var JkyGoodsModal$1 = /*#__PURE__*/forwardRef(JkyGoodsModal);
|
|
19024
|
+
|
|
19025
|
+
var getColumns = function getColumns(_ref) {
|
|
19026
|
+
var _ref$text = _ref.text,
|
|
19027
|
+
disabled = _ref.disabled,
|
|
19028
|
+
updateHandle = _ref.updateHandle;
|
|
19029
|
+
return {
|
|
19030
|
+
//百胜E3补发商品
|
|
19031
|
+
BS_E3_REISSUE_GOODS: [{
|
|
19032
|
+
dataIndex: 'sku',
|
|
19033
|
+
title: "SKU",
|
|
19034
|
+
width: 150,
|
|
19035
|
+
render: renderTextEllipsis
|
|
19036
|
+
}, {
|
|
19037
|
+
dataIndex: 'skuId',
|
|
19038
|
+
title: "SKU ID",
|
|
19039
|
+
width: 150,
|
|
19040
|
+
render: renderTextEllipsis
|
|
19041
|
+
}, {
|
|
19042
|
+
dataIndex: 'goodsName',
|
|
19043
|
+
title: "\u5546\u54C1\u540D\u79F0",
|
|
19044
|
+
width: 150,
|
|
19045
|
+
render: renderTextEllipsis
|
|
19046
|
+
}, {
|
|
19047
|
+
dataIndex: 'goodsShortName',
|
|
19048
|
+
title: "\u5546\u54C1\u7B80\u79F0",
|
|
19049
|
+
width: 150,
|
|
19050
|
+
render: renderTextEllipsis
|
|
19051
|
+
}, {
|
|
19052
|
+
dataIndex: 'picPath',
|
|
19053
|
+
title: "\u5546\u54C1\u56FE\u7247",
|
|
19054
|
+
width: 150,
|
|
19055
|
+
render: function render(val) {
|
|
19056
|
+
return /*#__PURE__*/React.createElement(Image, {
|
|
19057
|
+
width: 30,
|
|
19058
|
+
src: val
|
|
19059
|
+
});
|
|
19060
|
+
}
|
|
19061
|
+
}, {
|
|
19062
|
+
dataIndex: 'goodsSn',
|
|
19063
|
+
title: "\u8D27\u53F7",
|
|
19064
|
+
width: 150,
|
|
19065
|
+
render: renderTextEllipsis
|
|
19066
|
+
}, {
|
|
19067
|
+
dataIndex: 'goodsId',
|
|
19068
|
+
title: "\u8D27\u53F7ID",
|
|
19069
|
+
width: 150,
|
|
19070
|
+
render: renderTextEllipsis
|
|
19071
|
+
}, {
|
|
19072
|
+
dataIndex: 'colorName',
|
|
19073
|
+
title: "\u989C\u8272\u540D\u79F0",
|
|
19074
|
+
width: 150,
|
|
19075
|
+
render: renderTextEllipsis
|
|
19076
|
+
}, {
|
|
19077
|
+
dataIndex: 'colorCode',
|
|
19078
|
+
title: "\u989C\u8272\u4EE3\u7801",
|
|
19079
|
+
width: 150,
|
|
19080
|
+
render: renderTextEllipsis
|
|
19081
|
+
}, {
|
|
19082
|
+
dataIndex: 'sizeName',
|
|
19083
|
+
title: "\u5C3A\u7801\u540D\u79F0",
|
|
19084
|
+
width: 150,
|
|
19085
|
+
render: renderTextEllipsis
|
|
19086
|
+
}, {
|
|
19087
|
+
dataIndex: 'sizeCode',
|
|
19088
|
+
title: "\u5C3A\u7801\u4EE3\u7801",
|
|
19089
|
+
width: 150,
|
|
19090
|
+
render: renderTextEllipsis
|
|
19091
|
+
}, {
|
|
19092
|
+
dataIndex: 'brandName',
|
|
19093
|
+
title: "\u54C1\u724C\u540D\u79F0",
|
|
19094
|
+
width: 150,
|
|
19095
|
+
render: renderTextEllipsis
|
|
19096
|
+
}, {
|
|
19097
|
+
dataIndex: 'goodsNumber',
|
|
19098
|
+
title: "\u5546\u54C1\u6570\u91CF",
|
|
19099
|
+
width: 150
|
|
19100
|
+
}, {
|
|
19101
|
+
dataIndex: 'goodsPrice',
|
|
19102
|
+
title: "\u5546\u54C1\u5355\u4EF7",
|
|
19103
|
+
width: 150
|
|
19104
|
+
}, {
|
|
19105
|
+
dataIndex: 'shopPrice',
|
|
19106
|
+
title: "\u5546\u54C1\u7F51\u5E97\u552E\u4EF7",
|
|
19107
|
+
width: 150
|
|
19108
|
+
}, {
|
|
19109
|
+
dataIndex: 'isGift',
|
|
19110
|
+
title: "\u662F\u5426\u8D60\u54C1",
|
|
19111
|
+
width: 150,
|
|
19112
|
+
render: function render(val) {
|
|
19113
|
+
return /*#__PURE__*/React.createElement("span", null, +val ? '是' : '否');
|
|
19114
|
+
}
|
|
19115
|
+
}],
|
|
19116
|
+
//百胜E3商品信息
|
|
19117
|
+
BS_E3_GOODS: [{
|
|
19118
|
+
dataIndex: 'sku',
|
|
19119
|
+
title: "SKU",
|
|
19120
|
+
align: 'center',
|
|
19121
|
+
ellipsis: true,
|
|
19122
|
+
width: 150,
|
|
19123
|
+
render: renderTextEllipsis
|
|
19124
|
+
}, {
|
|
19125
|
+
dataIndex: 'skuId',
|
|
19126
|
+
title: "SKU ID",
|
|
19127
|
+
align: 'center',
|
|
19128
|
+
ellipsis: true,
|
|
19129
|
+
width: 150,
|
|
19130
|
+
render: renderTextEllipsis
|
|
19131
|
+
}, {
|
|
19132
|
+
dataIndex: 'goodsName',
|
|
19133
|
+
title: "\u5546\u54C1\u540D\u79F0",
|
|
19134
|
+
align: 'center',
|
|
19135
|
+
ellipsis: true,
|
|
19136
|
+
width: 150,
|
|
19137
|
+
render: renderTextEllipsis
|
|
19138
|
+
}, {
|
|
19139
|
+
dataIndex: 'goodsShortName',
|
|
19140
|
+
title: "\u5546\u54C1\u7B80\u79F0",
|
|
19141
|
+
align: 'center',
|
|
19142
|
+
ellipsis: true,
|
|
19143
|
+
width: 100,
|
|
19144
|
+
render: renderTextEllipsis
|
|
19145
|
+
}, {
|
|
19146
|
+
dataIndex: 'picPath',
|
|
19147
|
+
title: "\u5546\u54C1\u56FE\u7247",
|
|
19148
|
+
align: 'center',
|
|
19149
|
+
ellipsis: true,
|
|
19150
|
+
width: 100,
|
|
19151
|
+
render: function render(val) {
|
|
19152
|
+
return /*#__PURE__*/React.createElement(Image, {
|
|
19153
|
+
width: 30,
|
|
19154
|
+
src: val
|
|
19155
|
+
});
|
|
19156
|
+
}
|
|
19157
|
+
}, {
|
|
18488
19158
|
dataIndex: 'goodsSn',
|
|
18489
19159
|
title: "\u8D27\u53F7",
|
|
18490
19160
|
align: 'center',
|
|
@@ -18937,7 +19607,8 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
18937
19607
|
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
18938
19608
|
width: 180,
|
|
18939
19609
|
align: 'center',
|
|
18940
|
-
ellipsis: true
|
|
19610
|
+
ellipsis: true,
|
|
19611
|
+
render: renderTextEllipsis
|
|
18941
19612
|
}, {
|
|
18942
19613
|
dataIndex: 'brandName',
|
|
18943
19614
|
title: "\u54C1\u724C\u540D\u79F0",
|
|
@@ -19071,7 +19742,8 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
19071
19742
|
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
19072
19743
|
width: 180,
|
|
19073
19744
|
align: 'center',
|
|
19074
|
-
ellipsis: true
|
|
19745
|
+
ellipsis: true,
|
|
19746
|
+
render: renderTextEllipsis
|
|
19075
19747
|
}, {
|
|
19076
19748
|
dataIndex: 'brandName',
|
|
19077
19749
|
title: "\u54C1\u724C\u540D\u79F0",
|
|
@@ -19210,7 +19882,8 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
19210
19882
|
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
19211
19883
|
width: 180,
|
|
19212
19884
|
align: 'center',
|
|
19213
|
-
ellipsis: true
|
|
19885
|
+
ellipsis: true,
|
|
19886
|
+
render: renderTextEllipsis
|
|
19214
19887
|
}, {
|
|
19215
19888
|
dataIndex: 'brandName',
|
|
19216
19889
|
title: "\u54C1\u724C\u540D\u79F0",
|
|
@@ -19387,7 +20060,8 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
19387
20060
|
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
19388
20061
|
width: 180,
|
|
19389
20062
|
align: 'center',
|
|
19390
|
-
ellipsis: true
|
|
20063
|
+
ellipsis: true,
|
|
20064
|
+
render: renderTextEllipsis
|
|
19391
20065
|
}, {
|
|
19392
20066
|
dataIndex: 'brandName',
|
|
19393
20067
|
title: "\u54C1\u724C\u540D\u79F0",
|
|
@@ -20339,7 +21013,7 @@ var getColumns$5 = function getColumns() {
|
|
|
20339
21013
|
ellipsis: true,
|
|
20340
21014
|
align: 'center',
|
|
20341
21015
|
render: function render(val, record, index) {
|
|
20342
|
-
return (record.qty || 0) * (+record.salePrice || 0);
|
|
21016
|
+
return ((record.qty || 0) * (+record.salePrice || 0)).toFixed(2);
|
|
20343
21017
|
}
|
|
20344
21018
|
}, {
|
|
20345
21019
|
dataIndex: 'batchId',
|
|
@@ -20448,7 +21122,268 @@ var getColumns$5 = function getColumns() {
|
|
|
20448
21122
|
// }
|
|
20449
21123
|
// },
|
|
20450
21124
|
render: function render(val, record, index) {
|
|
20451
|
-
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
21125
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
21126
|
+
style: {
|
|
21127
|
+
width: 70
|
|
21128
|
+
},
|
|
21129
|
+
value: val,
|
|
21130
|
+
min: 0,
|
|
21131
|
+
precision: 2,
|
|
21132
|
+
onChange: function onChange(num) {
|
|
21133
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'salePrice');
|
|
21134
|
+
}
|
|
21135
|
+
}) : /*#__PURE__*/React.createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
|
|
21136
|
+
}
|
|
21137
|
+
}, {
|
|
21138
|
+
dataIndex: 'qty',
|
|
21139
|
+
title: '数量',
|
|
21140
|
+
ellipsis: true,
|
|
21141
|
+
align: 'center',
|
|
21142
|
+
width: 100,
|
|
21143
|
+
validator: function validator(_rule, value) {
|
|
21144
|
+
var goodsName = '';
|
|
21145
|
+
if (((value === null || value === void 0 ? void 0 : value.jstReissueGoods) || []).some(function (goods) {
|
|
21146
|
+
var qty = toNum$2(goods === null || goods === void 0 ? void 0 : goods.qty);
|
|
21147
|
+
var res = typeof qty === 'number' ? qty < 1 : true;
|
|
21148
|
+
if (res) {
|
|
21149
|
+
goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
|
|
21150
|
+
}
|
|
21151
|
+
return res;
|
|
21152
|
+
})) {
|
|
21153
|
+
return Promise.reject("".concat(goodsName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
21154
|
+
}
|
|
21155
|
+
},
|
|
21156
|
+
render: function render(val, record, index) {
|
|
21157
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
21158
|
+
style: {
|
|
21159
|
+
width: 70
|
|
21160
|
+
},
|
|
21161
|
+
value: val,
|
|
21162
|
+
min: 1,
|
|
21163
|
+
precision: 0,
|
|
21164
|
+
onChange: function onChange(num) {
|
|
21165
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'qty');
|
|
21166
|
+
}
|
|
21167
|
+
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
21168
|
+
}
|
|
21169
|
+
}, {
|
|
21170
|
+
dataIndex: 'isGift',
|
|
21171
|
+
title: '是否赠品',
|
|
21172
|
+
ellipsis: true,
|
|
21173
|
+
align: 'center',
|
|
21174
|
+
width: 100,
|
|
21175
|
+
render: function render(val, record, index) {
|
|
21176
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
21177
|
+
value: val,
|
|
21178
|
+
onChange: function onChange(value) {
|
|
21179
|
+
updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(value, index, 'isGift');
|
|
21180
|
+
},
|
|
21181
|
+
options: [{
|
|
21182
|
+
label: '是',
|
|
21183
|
+
value: true
|
|
21184
|
+
}, {
|
|
21185
|
+
label: '否',
|
|
21186
|
+
value: false
|
|
21187
|
+
}]
|
|
21188
|
+
}) : /*#__PURE__*/React.createElement("span", null, typeof val !== 'boolean' ? '' : val ? '是' : '否');
|
|
21189
|
+
}
|
|
21190
|
+
}, {
|
|
21191
|
+
dataIndex: 'remark',
|
|
21192
|
+
title: '备注',
|
|
21193
|
+
width: 150,
|
|
21194
|
+
ellipsis: true,
|
|
21195
|
+
align: 'center',
|
|
21196
|
+
render: function render(val, record, index) {
|
|
21197
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Input, {
|
|
21198
|
+
style: {
|
|
21199
|
+
width: 70
|
|
21200
|
+
},
|
|
21201
|
+
value: val,
|
|
21202
|
+
onChange: function onChange(e) {
|
|
21203
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(e.target.value, index, 'remark');
|
|
21204
|
+
}
|
|
21205
|
+
}) : renderTextEllipsis(val);
|
|
21206
|
+
}
|
|
21207
|
+
}],
|
|
21208
|
+
JST_RETURN_GOODS: [{
|
|
21209
|
+
dataIndex: 'name',
|
|
21210
|
+
title: '商品名称',
|
|
21211
|
+
render: renderTextEllipsis
|
|
21212
|
+
}, {
|
|
21213
|
+
dataIndex: 'skuId',
|
|
21214
|
+
title: '商品编码',
|
|
21215
|
+
render: renderTextEllipsis
|
|
21216
|
+
}, {
|
|
21217
|
+
dataIndex: 'iId',
|
|
21218
|
+
title: '款式编码',
|
|
21219
|
+
render: renderTextEllipsis
|
|
21220
|
+
}, {
|
|
21221
|
+
dataIndex: 'pic',
|
|
21222
|
+
title: '商品图片',
|
|
21223
|
+
width: 100,
|
|
21224
|
+
render: function render(val) {
|
|
21225
|
+
return /*#__PURE__*/React.createElement(ApaasImage, {
|
|
21226
|
+
width: 30,
|
|
21227
|
+
src: val
|
|
21228
|
+
});
|
|
21229
|
+
}
|
|
21230
|
+
}, {
|
|
21231
|
+
dataIndex: 'propertiesValue',
|
|
21232
|
+
title: '规格值',
|
|
21233
|
+
render: renderTextEllipsis
|
|
21234
|
+
}, {
|
|
21235
|
+
dataIndex: 'saleBasePrice',
|
|
21236
|
+
title: '原价',
|
|
21237
|
+
render: function render(price) {
|
|
21238
|
+
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
21239
|
+
}
|
|
21240
|
+
}, {
|
|
21241
|
+
dataIndex: 'salePrice',
|
|
21242
|
+
title: '单价',
|
|
21243
|
+
width: 120,
|
|
21244
|
+
validator: function validator(_rule, value) {
|
|
21245
|
+
var goodsName = '';
|
|
21246
|
+
if (((value === null || value === void 0 ? void 0 : value.jstReturnGoods) || []).some(function (goods) {
|
|
21247
|
+
var v = toNum$2(goods === null || goods === void 0 ? void 0 : goods.salePrice);
|
|
21248
|
+
var res = typeof v === 'number' ? v < 0 : true;
|
|
21249
|
+
if (res) {
|
|
21250
|
+
goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
|
|
21251
|
+
}
|
|
21252
|
+
return res;
|
|
21253
|
+
})) {
|
|
21254
|
+
return Promise.reject("".concat(goodsName, "\u5355\u4EF7\u4E3A\u5927\u4E8E\u7B49\u4E8E0\u7684\u6570"));
|
|
21255
|
+
}
|
|
21256
|
+
},
|
|
21257
|
+
render: function render(val, record, index) {
|
|
21258
|
+
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
21259
|
+
style: {
|
|
21260
|
+
width: 70
|
|
21261
|
+
},
|
|
21262
|
+
value: val,
|
|
21263
|
+
min: 0,
|
|
21264
|
+
precision: 2,
|
|
21265
|
+
onChange: function onChange(num) {
|
|
21266
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'salePrice');
|
|
21267
|
+
}
|
|
21268
|
+
}) : /*#__PURE__*/React.createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
|
|
21269
|
+
}
|
|
21270
|
+
}, {
|
|
21271
|
+
dataIndex: 'qty',
|
|
21272
|
+
title: '数量',
|
|
21273
|
+
width: 100,
|
|
21274
|
+
validator: function validator(_rule, value) {
|
|
21275
|
+
var goodsName = '';
|
|
21276
|
+
if (((value === null || value === void 0 ? void 0 : value.jstReturnGoods) || []).some(function (goods) {
|
|
21277
|
+
var qty = toNum$2(goods === null || goods === void 0 ? void 0 : goods.qty);
|
|
21278
|
+
var res = typeof qty === 'number' ? qty < 1 : true;
|
|
21279
|
+
if (res) {
|
|
21280
|
+
goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
|
|
21281
|
+
}
|
|
21282
|
+
return res;
|
|
21283
|
+
})) {
|
|
21284
|
+
return Promise.reject("".concat(goodsName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
21285
|
+
}
|
|
21286
|
+
},
|
|
21287
|
+
render: function render(val, record, index) {
|
|
21288
|
+
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
21289
|
+
style: {
|
|
21290
|
+
width: 70
|
|
21291
|
+
},
|
|
21292
|
+
value: val,
|
|
21293
|
+
min: 1,
|
|
21294
|
+
precision: 0,
|
|
21295
|
+
onChange: function onChange(num) {
|
|
21296
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'qty');
|
|
21297
|
+
}
|
|
21298
|
+
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
21299
|
+
}
|
|
21300
|
+
}, {
|
|
21301
|
+
dataIndex: 'saleAmount',
|
|
21302
|
+
title: '总金额',
|
|
21303
|
+
render: function render(val, record) {
|
|
21304
|
+
return ((record.qty || 0) * (+record.salePrice || 0)).toFixed(2);
|
|
21305
|
+
}
|
|
21306
|
+
}, {
|
|
21307
|
+
dataIndex: 'batchId',
|
|
21308
|
+
title: '批次号',
|
|
21309
|
+
render: renderTextEllipsis
|
|
21310
|
+
}, {
|
|
21311
|
+
dataIndex: 'isGift',
|
|
21312
|
+
title: '是否赠品',
|
|
21313
|
+
width: 100,
|
|
21314
|
+
render: function render(val, record, index) {
|
|
21315
|
+
return !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
21316
|
+
value: val,
|
|
21317
|
+
onChange: function onChange(value) {
|
|
21318
|
+
updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(value, index, 'isGift');
|
|
21319
|
+
},
|
|
21320
|
+
options: [{
|
|
21321
|
+
label: '是',
|
|
21322
|
+
value: true
|
|
21323
|
+
}, {
|
|
21324
|
+
label: '否',
|
|
21325
|
+
value: false
|
|
21326
|
+
}]
|
|
21327
|
+
}) : /*#__PURE__*/React.createElement("span", null, typeof val !== 'boolean' ? '' : val ? '是' : '否');
|
|
21328
|
+
}
|
|
21329
|
+
}, {
|
|
21330
|
+
dataIndex: 'remark',
|
|
21331
|
+
title: '备注',
|
|
21332
|
+
render: function render(val, record, index) {
|
|
21333
|
+
return !disabled ? /*#__PURE__*/React.createElement(Input, {
|
|
21334
|
+
style: {
|
|
21335
|
+
width: 70
|
|
21336
|
+
},
|
|
21337
|
+
value: val,
|
|
21338
|
+
onChange: function onChange(e) {
|
|
21339
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(e.target.value, index, 'remark');
|
|
21340
|
+
}
|
|
21341
|
+
}) : renderTextEllipsis(val);
|
|
21342
|
+
}
|
|
21343
|
+
}, {
|
|
21344
|
+
dataIndex: 'outerOiId',
|
|
21345
|
+
title: '子订单号',
|
|
21346
|
+
width: 240,
|
|
21347
|
+
render: renderTextEllipsis
|
|
21348
|
+
}].map(fillAttrs),
|
|
21349
|
+
JST_EXCHANGE_GOODS: [{
|
|
21350
|
+
dataIndex: 'name',
|
|
21351
|
+
title: '商品名称',
|
|
21352
|
+
render: renderTextEllipsis
|
|
21353
|
+
}, {
|
|
21354
|
+
dataIndex: 'skuId',
|
|
21355
|
+
title: '商品编码',
|
|
21356
|
+
render: renderTextEllipsis
|
|
21357
|
+
}, {
|
|
21358
|
+
dataIndex: 'iId',
|
|
21359
|
+
title: '款式编码',
|
|
21360
|
+
render: renderTextEllipsis
|
|
21361
|
+
}, {
|
|
21362
|
+
dataIndex: 'pic',
|
|
21363
|
+
title: '商品图片',
|
|
21364
|
+
width: 100,
|
|
21365
|
+
render: function render(val) {
|
|
21366
|
+
return /*#__PURE__*/React.createElement(ApaasImage, {
|
|
21367
|
+
width: 30,
|
|
21368
|
+
src: val
|
|
21369
|
+
});
|
|
21370
|
+
}
|
|
21371
|
+
}, {
|
|
21372
|
+
dataIndex: 'propertiesValue',
|
|
21373
|
+
title: '规格值',
|
|
21374
|
+
render: renderTextEllipsis
|
|
21375
|
+
}, {
|
|
21376
|
+
dataIndex: 'saleBasePrice',
|
|
21377
|
+
title: '原价',
|
|
21378
|
+
render: function render(price) {
|
|
21379
|
+
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
21380
|
+
}
|
|
21381
|
+
}, {
|
|
21382
|
+
dataIndex: 'salePrice',
|
|
21383
|
+
title: '单价',
|
|
21384
|
+
width: 120,
|
|
21385
|
+
render: function render(val, record, index) {
|
|
21386
|
+
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
20452
21387
|
style: {
|
|
20453
21388
|
width: 70
|
|
20454
21389
|
},
|
|
@@ -20463,24 +21398,9 @@ var getColumns$5 = function getColumns() {
|
|
|
20463
21398
|
}, {
|
|
20464
21399
|
dataIndex: 'qty',
|
|
20465
21400
|
title: '数量',
|
|
20466
|
-
ellipsis: true,
|
|
20467
|
-
align: 'center',
|
|
20468
21401
|
width: 100,
|
|
20469
|
-
validator: function validator(_rule, value) {
|
|
20470
|
-
var goodsName = '';
|
|
20471
|
-
if (((value === null || value === void 0 ? void 0 : value.jstReissueGoods) || []).some(function (goods) {
|
|
20472
|
-
var qty = toNum$2(goods === null || goods === void 0 ? void 0 : goods.qty);
|
|
20473
|
-
var res = typeof qty === 'number' ? qty < 1 : true;
|
|
20474
|
-
if (res) {
|
|
20475
|
-
goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
|
|
20476
|
-
}
|
|
20477
|
-
return res;
|
|
20478
|
-
})) {
|
|
20479
|
-
return Promise.reject("".concat(goodsName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
20480
|
-
}
|
|
20481
|
-
},
|
|
20482
21402
|
render: function render(val, record, index) {
|
|
20483
|
-
return
|
|
21403
|
+
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
20484
21404
|
style: {
|
|
20485
21405
|
width: 70
|
|
20486
21406
|
},
|
|
@@ -20492,14 +21412,18 @@ var getColumns$5 = function getColumns() {
|
|
|
20492
21412
|
}
|
|
20493
21413
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
20494
21414
|
}
|
|
21415
|
+
}, {
|
|
21416
|
+
dataIndex: 'saleAmount',
|
|
21417
|
+
title: '总金额',
|
|
21418
|
+
render: function render(val, record) {
|
|
21419
|
+
return ((record.qty || 0) * (+record.salePrice || 0)).toFixed(2);
|
|
21420
|
+
}
|
|
20495
21421
|
}, {
|
|
20496
21422
|
dataIndex: 'isGift',
|
|
20497
21423
|
title: '是否赠品',
|
|
20498
|
-
ellipsis: true,
|
|
20499
|
-
align: 'center',
|
|
20500
21424
|
width: 100,
|
|
20501
21425
|
render: function render(val, record, index) {
|
|
20502
|
-
return
|
|
21426
|
+
return !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
20503
21427
|
value: val,
|
|
20504
21428
|
onChange: function onChange(value) {
|
|
20505
21429
|
updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(value, index, 'isGift');
|
|
@@ -20516,11 +21440,8 @@ var getColumns$5 = function getColumns() {
|
|
|
20516
21440
|
}, {
|
|
20517
21441
|
dataIndex: 'remark',
|
|
20518
21442
|
title: '备注',
|
|
20519
|
-
width: 150,
|
|
20520
|
-
ellipsis: true,
|
|
20521
|
-
align: 'center',
|
|
20522
21443
|
render: function render(val, record, index) {
|
|
20523
|
-
return
|
|
21444
|
+
return !disabled ? /*#__PURE__*/React.createElement(Input, {
|
|
20524
21445
|
style: {
|
|
20525
21446
|
width: 70
|
|
20526
21447
|
},
|
|
@@ -20530,203 +21451,385 @@ var getColumns$5 = function getColumns() {
|
|
|
20530
21451
|
}
|
|
20531
21452
|
}) : renderTextEllipsis(val);
|
|
20532
21453
|
}
|
|
20533
|
-
}],
|
|
20534
|
-
|
|
20535
|
-
|
|
20536
|
-
|
|
21454
|
+
}].map(fillAttrs),
|
|
21455
|
+
// jst售后商品信息
|
|
21456
|
+
JST_AFTERSALE_GOODS: [{
|
|
21457
|
+
dataIndex: 'asId',
|
|
21458
|
+
title: "\u805A\u6C34\u6F6D\u552E\u540E\u5355\u53F7",
|
|
21459
|
+
width: 200,
|
|
21460
|
+
align: 'center',
|
|
21461
|
+
ellipsis: true,
|
|
20537
21462
|
render: renderTextEllipsis
|
|
20538
21463
|
}, {
|
|
20539
|
-
dataIndex: '
|
|
20540
|
-
title:
|
|
21464
|
+
dataIndex: 'asiId',
|
|
21465
|
+
title: "\u552E\u540E\u5B50\u5355\u53F7",
|
|
21466
|
+
width: 200,
|
|
21467
|
+
align: 'center',
|
|
21468
|
+
ellipsis: true,
|
|
20541
21469
|
render: renderTextEllipsis
|
|
20542
21470
|
}, {
|
|
20543
|
-
dataIndex: '
|
|
20544
|
-
title:
|
|
21471
|
+
dataIndex: 'outerOiId',
|
|
21472
|
+
title: "\u5B50\u8BA2\u5355\u53F7",
|
|
21473
|
+
width: 200,
|
|
21474
|
+
align: 'center',
|
|
21475
|
+
ellipsis: true,
|
|
20545
21476
|
render: renderTextEllipsis
|
|
20546
21477
|
}, {
|
|
20547
21478
|
dataIndex: 'pic',
|
|
20548
|
-
title:
|
|
21479
|
+
title: "\u56FE\u7247",
|
|
20549
21480
|
width: 100,
|
|
21481
|
+
align: 'center',
|
|
20550
21482
|
render: function render(val) {
|
|
20551
21483
|
return /*#__PURE__*/React.createElement(ApaasImage, {
|
|
20552
21484
|
width: 30,
|
|
20553
21485
|
src: val
|
|
20554
21486
|
});
|
|
20555
|
-
}
|
|
21487
|
+
},
|
|
21488
|
+
headerComponentType: 'pic'
|
|
21489
|
+
}, {
|
|
21490
|
+
dataIndex: 'name',
|
|
21491
|
+
title: "\u5546\u54C1\u540D\u79F0",
|
|
21492
|
+
width: 250,
|
|
21493
|
+
align: 'center',
|
|
21494
|
+
ellipsis: true,
|
|
21495
|
+
render: renderTextEllipsis
|
|
21496
|
+
}, {
|
|
21497
|
+
dataIndex: 'skuId',
|
|
21498
|
+
title: "\u5546\u54C1\u7F16\u7801",
|
|
21499
|
+
width: 200,
|
|
21500
|
+
align: 'center',
|
|
21501
|
+
ellipsis: true,
|
|
21502
|
+
render: renderTextEllipsis
|
|
20556
21503
|
}, {
|
|
20557
21504
|
dataIndex: 'propertiesValue',
|
|
20558
|
-
title:
|
|
21505
|
+
title: "\u89C4\u683C\u5C5E\u6027\u503C",
|
|
21506
|
+
width: 200,
|
|
21507
|
+
align: 'center',
|
|
21508
|
+
ellipsis: true,
|
|
21509
|
+
render: renderTextEllipsis
|
|
21510
|
+
}, {
|
|
21511
|
+
dataIndex: 'qty',
|
|
21512
|
+
title: "\u7533\u8BF7\u6570\u91CF",
|
|
21513
|
+
width: 150,
|
|
21514
|
+
align: 'center',
|
|
21515
|
+
ellipsis: true,
|
|
21516
|
+
render: renderTextEllipsis
|
|
21517
|
+
}, {
|
|
21518
|
+
dataIndex: 'rQty',
|
|
21519
|
+
title: "\u5B9E\u6536\u9000\u8D27\u6570\u91CF",
|
|
21520
|
+
width: 150,
|
|
21521
|
+
align: 'center',
|
|
21522
|
+
ellipsis: true,
|
|
21523
|
+
render: renderTextEllipsis
|
|
21524
|
+
}, {
|
|
21525
|
+
dataIndex: 'defectiveQty',
|
|
21526
|
+
title: "\u6B21\u54C1\u6570\u91CF",
|
|
21527
|
+
width: 150,
|
|
21528
|
+
align: 'center',
|
|
21529
|
+
ellipsis: true,
|
|
21530
|
+
render: renderTextEllipsis
|
|
21531
|
+
}, {
|
|
21532
|
+
dataIndex: 'amount',
|
|
21533
|
+
title: "\u7533\u8BF7\u91D1\u989D",
|
|
21534
|
+
width: 150,
|
|
21535
|
+
align: 'center',
|
|
21536
|
+
ellipsis: true,
|
|
21537
|
+
render: renderTextEllipsis
|
|
21538
|
+
}, {
|
|
21539
|
+
dataIndex: 'shopAmount',
|
|
21540
|
+
title: "\u7EBF\u4E0A\u660E\u7EC6\u91D1\u989D",
|
|
21541
|
+
width: 150,
|
|
21542
|
+
align: 'center',
|
|
21543
|
+
ellipsis: true,
|
|
21544
|
+
render: renderTextEllipsis
|
|
21545
|
+
}, {
|
|
21546
|
+
dataIndex: 'price',
|
|
21547
|
+
title: "\u5355\u4EF7",
|
|
21548
|
+
width: 150,
|
|
21549
|
+
align: 'center',
|
|
21550
|
+
ellipsis: true,
|
|
21551
|
+
render: renderTextEllipsis
|
|
21552
|
+
}, {
|
|
21553
|
+
dataIndex: 'combineSkuId',
|
|
21554
|
+
title: "\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
|
|
21555
|
+
width: 250,
|
|
21556
|
+
align: 'center',
|
|
21557
|
+
ellipsis: true,
|
|
21558
|
+
render: renderTextEllipsis
|
|
21559
|
+
}, {
|
|
21560
|
+
dataIndex: 'shopSkuId',
|
|
21561
|
+
title: "\u5E97\u94FA\u5546\u54C1\u7F16\u7801",
|
|
21562
|
+
width: 200,
|
|
21563
|
+
align: 'center',
|
|
21564
|
+
ellipsis: true,
|
|
21565
|
+
render: renderTextEllipsis
|
|
21566
|
+
}, {
|
|
21567
|
+
dataIndex: 'iId',
|
|
21568
|
+
title: "\u6B3E\u5F0F\u7F16\u7801",
|
|
21569
|
+
width: 200,
|
|
21570
|
+
align: 'center',
|
|
21571
|
+
ellipsis: true,
|
|
21572
|
+
render: renderTextEllipsis
|
|
21573
|
+
}, {
|
|
21574
|
+
dataIndex: 'type',
|
|
21575
|
+
title: "\u552E\u540E\u7C7B\u578B",
|
|
21576
|
+
width: 150,
|
|
21577
|
+
align: 'center',
|
|
21578
|
+
ellipsis: true,
|
|
21579
|
+
render: renderTextEllipsis
|
|
21580
|
+
}, {
|
|
21581
|
+
dataIndex: 'skuType',
|
|
21582
|
+
title: "\u5546\u54C1\u7C7B\u578B",
|
|
21583
|
+
width: 150,
|
|
21584
|
+
align: 'center',
|
|
21585
|
+
ellipsis: true,
|
|
21586
|
+
render: renderTextEllipsis
|
|
21587
|
+
}, {
|
|
21588
|
+
dataIndex: 'isGift',
|
|
21589
|
+
title: '是否赠品',
|
|
21590
|
+
width: 100,
|
|
21591
|
+
render: function render(val) {
|
|
21592
|
+
return /*#__PURE__*/React.createElement("span", null, typeof val !== 'boolean' ? '' : val ? '是' : '否');
|
|
21593
|
+
},
|
|
21594
|
+
headerMapping: {
|
|
21595
|
+
transformValue: function transformValue(val) {
|
|
21596
|
+
return typeof val !== 'boolean' ? '' : val ? '是' : '否';
|
|
21597
|
+
},
|
|
21598
|
+
renderExport: function renderExport(val) {
|
|
21599
|
+
return typeof val !== 'boolean' ? '' : val ? '是' : '否';
|
|
21600
|
+
}
|
|
21601
|
+
}
|
|
21602
|
+
}, {
|
|
21603
|
+
dataIndex: 'receiveDate',
|
|
21604
|
+
title: "\u5165\u4ED3\u65F6\u95F4",
|
|
21605
|
+
width: 200,
|
|
21606
|
+
align: 'center',
|
|
21607
|
+
ellipsis: true,
|
|
21608
|
+
render: renderTextEllipsis
|
|
21609
|
+
}, {
|
|
21610
|
+
dataIndex: 'remark',
|
|
21611
|
+
title: "\u660E\u7EC6\u5907\u6CE8",
|
|
21612
|
+
width: 200,
|
|
21613
|
+
align: 'center',
|
|
21614
|
+
ellipsis: true,
|
|
21615
|
+
render: renderTextEllipsis
|
|
21616
|
+
}]
|
|
21617
|
+
};
|
|
21618
|
+
};
|
|
21619
|
+
|
|
21620
|
+
function toNum$3(value) {
|
|
21621
|
+
if (typeof value === 'string') {
|
|
21622
|
+
return value ? +value : void 0;
|
|
21623
|
+
}
|
|
21624
|
+
if (typeof value === 'number') {
|
|
21625
|
+
return value;
|
|
21626
|
+
}
|
|
21627
|
+
return void 0;
|
|
21628
|
+
}
|
|
21629
|
+
var getColumns$6 = function getColumns(_ref) {
|
|
21630
|
+
var _ref$text = _ref.text,
|
|
21631
|
+
disabled = _ref.disabled,
|
|
21632
|
+
updateHandle = _ref.updateHandle;
|
|
21633
|
+
return {
|
|
21634
|
+
KM_GOODS: [{
|
|
21635
|
+
dataIndex: 'skuPropertiesName',
|
|
21636
|
+
title: "\u89C4\u683C\u540D\u79F0",
|
|
21637
|
+
width: 250,
|
|
21638
|
+
render: renderTextEllipsis
|
|
21639
|
+
}, {
|
|
21640
|
+
dataIndex: 'sysTitle',
|
|
21641
|
+
title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
|
|
21642
|
+
width: 150,
|
|
21643
|
+
render: renderTextEllipsis
|
|
21644
|
+
}, {
|
|
21645
|
+
dataIndex: 'title',
|
|
21646
|
+
title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
|
|
21647
|
+
width: 150,
|
|
21648
|
+
render: renderTextEllipsis
|
|
21649
|
+
}, {
|
|
21650
|
+
dataIndex: 'shortTitle',
|
|
21651
|
+
title: "\u5546\u54C1\u7B80\u79F0",
|
|
21652
|
+
width: 150,
|
|
21653
|
+
render: renderTextEllipsis
|
|
21654
|
+
}, {
|
|
21655
|
+
dataIndex: 'sysOuterId',
|
|
21656
|
+
title: "\u7CFB\u7EDF\u5546\u5BB6\u7F16\u7801",
|
|
21657
|
+
width: 150,
|
|
21658
|
+
render: renderTextEllipsis
|
|
21659
|
+
}, {
|
|
21660
|
+
dataIndex: 'skuSysId',
|
|
21661
|
+
title: "\u7CFB\u7EDF\u89C4\u683CID",
|
|
21662
|
+
width: 150,
|
|
21663
|
+
render: renderTextEllipsis
|
|
21664
|
+
}, {
|
|
21665
|
+
dataIndex: 'skuId',
|
|
21666
|
+
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
21667
|
+
width: 170,
|
|
21668
|
+
render: renderTextEllipsis
|
|
21669
|
+
}, {
|
|
21670
|
+
dataIndex: 'outerSkuId',
|
|
21671
|
+
title: "\u5E73\u53F0\u89C4\u683C\u7F16\u7801",
|
|
21672
|
+
width: 170,
|
|
21673
|
+
render: renderTextEllipsis
|
|
21674
|
+
}, {
|
|
21675
|
+
dataIndex: 'itemSysId',
|
|
21676
|
+
title: "\u7CFB\u7EDF\u5546\u54C1ID",
|
|
21677
|
+
width: 150,
|
|
20559
21678
|
render: renderTextEllipsis
|
|
20560
21679
|
}, {
|
|
20561
|
-
dataIndex: '
|
|
20562
|
-
title:
|
|
20563
|
-
|
|
20564
|
-
|
|
21680
|
+
dataIndex: 'sysPicPath',
|
|
21681
|
+
title: "\u5546\u54C1\u56FE\u7247",
|
|
21682
|
+
width: 100,
|
|
21683
|
+
render: function render(val) {
|
|
21684
|
+
var imgUrl = (val === null || val === void 0 ? void 0 : val.startsWith('http')) ? val : "https://erp.superboss.cc".concat(val);
|
|
21685
|
+
return /*#__PURE__*/React.createElement(Image, {
|
|
21686
|
+
width: 30,
|
|
21687
|
+
src: imgUrl
|
|
21688
|
+
});
|
|
20565
21689
|
}
|
|
20566
21690
|
}, {
|
|
20567
|
-
dataIndex: '
|
|
20568
|
-
title:
|
|
20569
|
-
width:
|
|
20570
|
-
validator: function validator(_rule, value) {
|
|
20571
|
-
var goodsName = '';
|
|
20572
|
-
if (((value === null || value === void 0 ? void 0 : value.jstReturnGoods) || []).some(function (goods) {
|
|
20573
|
-
var v = toNum$2(goods === null || goods === void 0 ? void 0 : goods.salePrice);
|
|
20574
|
-
var res = typeof v === 'number' ? v < 0 : true;
|
|
20575
|
-
if (res) {
|
|
20576
|
-
goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
|
|
20577
|
-
}
|
|
20578
|
-
return res;
|
|
20579
|
-
})) {
|
|
20580
|
-
return Promise.reject("".concat(goodsName, "\u5355\u4EF7\u4E3A\u5927\u4E8E\u7B49\u4E8E0\u7684\u6570"));
|
|
20581
|
-
}
|
|
20582
|
-
},
|
|
21691
|
+
dataIndex: 'num',
|
|
21692
|
+
title: "\u6570\u91CF",
|
|
21693
|
+
width: 100,
|
|
20583
21694
|
render: function render(val, record, index) {
|
|
20584
|
-
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
21695
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
20585
21696
|
style: {
|
|
20586
21697
|
width: 70
|
|
20587
21698
|
},
|
|
20588
21699
|
value: val,
|
|
20589
|
-
min:
|
|
20590
|
-
precision:
|
|
21700
|
+
min: 1,
|
|
21701
|
+
precision: 0,
|
|
20591
21702
|
onChange: function onChange(num) {
|
|
20592
|
-
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, '
|
|
21703
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'num');
|
|
20593
21704
|
}
|
|
20594
|
-
}) : /*#__PURE__*/React.createElement("span", null, val
|
|
21705
|
+
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
20595
21706
|
}
|
|
20596
21707
|
}, {
|
|
20597
|
-
dataIndex: '
|
|
20598
|
-
title:
|
|
20599
|
-
width:
|
|
20600
|
-
validator: function validator(_rule, value) {
|
|
20601
|
-
var goodsName = '';
|
|
20602
|
-
if (((value === null || value === void 0 ? void 0 : value.jstReturnGoods) || []).some(function (goods) {
|
|
20603
|
-
var qty = toNum$2(goods === null || goods === void 0 ? void 0 : goods.qty);
|
|
20604
|
-
var res = typeof qty === 'number' ? qty < 1 : true;
|
|
20605
|
-
if (res) {
|
|
20606
|
-
goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
|
|
20607
|
-
}
|
|
20608
|
-
return res;
|
|
20609
|
-
})) {
|
|
20610
|
-
return Promise.reject("".concat(goodsName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
20611
|
-
}
|
|
20612
|
-
},
|
|
21708
|
+
dataIndex: 'payment',
|
|
21709
|
+
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
21710
|
+
width: 150,
|
|
20613
21711
|
render: function render(val, record, index) {
|
|
20614
|
-
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
21712
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
20615
21713
|
style: {
|
|
20616
|
-
width:
|
|
21714
|
+
width: 130
|
|
20617
21715
|
},
|
|
20618
21716
|
value: val,
|
|
20619
|
-
min:
|
|
20620
|
-
precision:
|
|
21717
|
+
min: 0,
|
|
21718
|
+
precision: 2,
|
|
20621
21719
|
onChange: function onChange(num) {
|
|
20622
|
-
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, '
|
|
21720
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'payment');
|
|
20623
21721
|
}
|
|
20624
|
-
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
21722
|
+
}) : /*#__PURE__*/React.createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
|
|
20625
21723
|
}
|
|
20626
21724
|
}, {
|
|
20627
|
-
dataIndex: '
|
|
20628
|
-
title:
|
|
20629
|
-
|
|
20630
|
-
|
|
21725
|
+
dataIndex: 'price',
|
|
21726
|
+
title: "\u5546\u54C1\u9500\u552E\u4EF7",
|
|
21727
|
+
width: 150,
|
|
21728
|
+
render: function render(val) {
|
|
21729
|
+
return val || val === 0 ? Number(val).toFixed(2) : '';
|
|
20631
21730
|
}
|
|
20632
21731
|
}, {
|
|
20633
|
-
dataIndex: '
|
|
20634
|
-
title:
|
|
21732
|
+
dataIndex: 'type',
|
|
21733
|
+
title: "\u5546\u54C1\u7C7B\u578B",
|
|
21734
|
+
width: 150,
|
|
20635
21735
|
render: renderTextEllipsis
|
|
20636
21736
|
}, {
|
|
20637
|
-
dataIndex: '
|
|
20638
|
-
title:
|
|
20639
|
-
width:
|
|
20640
|
-
render:
|
|
20641
|
-
return !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
20642
|
-
value: val,
|
|
20643
|
-
onChange: function onChange(value) {
|
|
20644
|
-
updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(value, index, 'isGift');
|
|
20645
|
-
},
|
|
20646
|
-
options: [{
|
|
20647
|
-
label: '是',
|
|
20648
|
-
value: true
|
|
20649
|
-
}, {
|
|
20650
|
-
label: '否',
|
|
20651
|
-
value: false
|
|
20652
|
-
}]
|
|
20653
|
-
}) : /*#__PURE__*/React.createElement("span", null, typeof val !== 'boolean' ? '' : val ? '是' : '否');
|
|
20654
|
-
}
|
|
21737
|
+
dataIndex: 'supplierName',
|
|
21738
|
+
title: "\u4F9B\u5E94\u5546\u540D\u79F0",
|
|
21739
|
+
width: 150,
|
|
21740
|
+
render: renderTextEllipsis
|
|
20655
21741
|
}, {
|
|
20656
|
-
dataIndex: '
|
|
20657
|
-
title:
|
|
20658
|
-
|
|
20659
|
-
|
|
20660
|
-
|
|
20661
|
-
|
|
20662
|
-
|
|
20663
|
-
|
|
20664
|
-
|
|
20665
|
-
|
|
20666
|
-
|
|
20667
|
-
|
|
20668
|
-
|
|
21742
|
+
dataIndex: 'supplierCode',
|
|
21743
|
+
title: "\u4F9B\u5E94\u5546\u7F16\u7801",
|
|
21744
|
+
width: 150,
|
|
21745
|
+
render: renderTextEllipsis
|
|
21746
|
+
}].map(function (item) {
|
|
21747
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
21748
|
+
align: 'center',
|
|
21749
|
+
ellipsis: true
|
|
21750
|
+
});
|
|
21751
|
+
}),
|
|
21752
|
+
KM_REISSUE_GOODS: [{
|
|
21753
|
+
dataIndex: 'skuPropertiesName',
|
|
21754
|
+
title: "\u89C4\u683C\u540D\u79F0",
|
|
21755
|
+
width: 250,
|
|
21756
|
+
render: renderTextEllipsis
|
|
20669
21757
|
}, {
|
|
20670
|
-
dataIndex: '
|
|
20671
|
-
title:
|
|
20672
|
-
width:
|
|
21758
|
+
dataIndex: 'sysTitle',
|
|
21759
|
+
title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
|
|
21760
|
+
width: 150,
|
|
20673
21761
|
render: renderTextEllipsis
|
|
20674
|
-
}
|
|
20675
|
-
|
|
20676
|
-
|
|
20677
|
-
|
|
21762
|
+
}, {
|
|
21763
|
+
dataIndex: 'shortTitle',
|
|
21764
|
+
title: "\u5546\u54C1\u7B80\u79F0",
|
|
21765
|
+
width: 150,
|
|
20678
21766
|
render: renderTextEllipsis
|
|
20679
21767
|
}, {
|
|
20680
|
-
dataIndex: '
|
|
20681
|
-
title:
|
|
21768
|
+
dataIndex: 'title',
|
|
21769
|
+
title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
|
|
21770
|
+
width: 150,
|
|
20682
21771
|
render: renderTextEllipsis
|
|
20683
21772
|
}, {
|
|
20684
|
-
dataIndex: '
|
|
20685
|
-
title:
|
|
21773
|
+
dataIndex: 'sysOuterId',
|
|
21774
|
+
title: "\u7CFB\u7EDF\u5546\u5BB6\u7F16\u7801",
|
|
21775
|
+
width: 150,
|
|
20686
21776
|
render: renderTextEllipsis
|
|
20687
21777
|
}, {
|
|
20688
|
-
dataIndex: '
|
|
20689
|
-
title:
|
|
20690
|
-
width:
|
|
20691
|
-
render:
|
|
20692
|
-
return /*#__PURE__*/React.createElement(ApaasImage, {
|
|
20693
|
-
width: 30,
|
|
20694
|
-
src: val
|
|
20695
|
-
});
|
|
20696
|
-
}
|
|
21778
|
+
dataIndex: 'itemSysId',
|
|
21779
|
+
title: "\u7CFB\u7EDF\u5546\u54C1ID",
|
|
21780
|
+
width: 150,
|
|
21781
|
+
render: renderTextEllipsis
|
|
20697
21782
|
}, {
|
|
20698
|
-
dataIndex: '
|
|
20699
|
-
title:
|
|
21783
|
+
dataIndex: 'skuSysId',
|
|
21784
|
+
title: "\u7CFB\u7EDF\u89C4\u683CID",
|
|
21785
|
+
width: 150,
|
|
20700
21786
|
render: renderTextEllipsis
|
|
20701
21787
|
}, {
|
|
20702
|
-
dataIndex: '
|
|
20703
|
-
title:
|
|
20704
|
-
|
|
20705
|
-
|
|
20706
|
-
}
|
|
21788
|
+
dataIndex: 'skuId',
|
|
21789
|
+
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
21790
|
+
width: 170,
|
|
21791
|
+
render: renderTextEllipsis
|
|
20707
21792
|
}, {
|
|
20708
|
-
dataIndex: '
|
|
20709
|
-
title:
|
|
20710
|
-
width:
|
|
21793
|
+
dataIndex: 'outerSkuId',
|
|
21794
|
+
title: "\u5E73\u53F0\u89C4\u683C\u7F16\u7801",
|
|
21795
|
+
width: 170,
|
|
21796
|
+
render: renderTextEllipsis
|
|
21797
|
+
}, {
|
|
21798
|
+
dataIndex: 'realNum',
|
|
21799
|
+
title: "\u5B9E\u9645\u8865\u53D1\u6570\u91CF",
|
|
21800
|
+
width: 100,
|
|
21801
|
+
validator: function validator(_rule, value) {
|
|
21802
|
+
var title = '';
|
|
21803
|
+
if (((value === null || value === void 0 ? void 0 : value.kmReissueGoods) || []).some(function (goods) {
|
|
21804
|
+
var realNum = toNum$3(goods === null || goods === void 0 ? void 0 : goods.realNum);
|
|
21805
|
+
var res = typeof realNum === 'number' ? realNum < 1 : true;
|
|
21806
|
+
if (res) {
|
|
21807
|
+
title = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
|
|
21808
|
+
}
|
|
21809
|
+
return res;
|
|
21810
|
+
})) {
|
|
21811
|
+
return Promise.reject("".concat(title, "\u5B9E\u9645\u8865\u53D1\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
21812
|
+
}
|
|
21813
|
+
},
|
|
20711
21814
|
render: function render(val, record, index) {
|
|
20712
|
-
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
21815
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
20713
21816
|
style: {
|
|
20714
21817
|
width: 70
|
|
20715
21818
|
},
|
|
20716
21819
|
value: val,
|
|
20717
|
-
min:
|
|
20718
|
-
precision:
|
|
21820
|
+
min: 1,
|
|
21821
|
+
precision: 0,
|
|
20719
21822
|
onChange: function onChange(num) {
|
|
20720
|
-
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, '
|
|
21823
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'realNum');
|
|
20721
21824
|
}
|
|
20722
|
-
}) : /*#__PURE__*/React.createElement("span", null, val
|
|
21825
|
+
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
20723
21826
|
}
|
|
20724
21827
|
}, {
|
|
20725
|
-
dataIndex: '
|
|
20726
|
-
title:
|
|
21828
|
+
dataIndex: 'desiredNum',
|
|
21829
|
+
title: "\u5E94\u8865\u53D1\u6570\u91CF",
|
|
20727
21830
|
width: 100,
|
|
20728
21831
|
render: function render(val, record, index) {
|
|
20729
|
-
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
21832
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
20730
21833
|
style: {
|
|
20731
21834
|
width: 70
|
|
20732
21835
|
},
|
|
@@ -20734,281 +21837,194 @@ var getColumns$5 = function getColumns() {
|
|
|
20734
21837
|
min: 1,
|
|
20735
21838
|
precision: 0,
|
|
20736
21839
|
onChange: function onChange(num) {
|
|
20737
|
-
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, '
|
|
21840
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'desiredNum');
|
|
20738
21841
|
}
|
|
20739
21842
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
20740
21843
|
}
|
|
20741
21844
|
}, {
|
|
20742
|
-
dataIndex: '
|
|
20743
|
-
title:
|
|
20744
|
-
|
|
20745
|
-
|
|
20746
|
-
|
|
20747
|
-
}, {
|
|
20748
|
-
dataIndex: 'isGift',
|
|
20749
|
-
title: '是否赠品',
|
|
20750
|
-
width: 100,
|
|
20751
|
-
render: function render(val, record, index) {
|
|
20752
|
-
return !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
20753
|
-
value: val,
|
|
20754
|
-
onChange: function onChange(value) {
|
|
20755
|
-
updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(value, index, 'isGift');
|
|
20756
|
-
},
|
|
20757
|
-
options: [{
|
|
20758
|
-
label: '是',
|
|
20759
|
-
value: true
|
|
20760
|
-
}, {
|
|
20761
|
-
label: '否',
|
|
20762
|
-
value: false
|
|
20763
|
-
}]
|
|
20764
|
-
}) : /*#__PURE__*/React.createElement("span", null, typeof val !== 'boolean' ? '' : val ? '是' : '否');
|
|
21845
|
+
dataIndex: 'price',
|
|
21846
|
+
title: "\u5546\u54C1\u9500\u552E\u4EF7",
|
|
21847
|
+
width: 150,
|
|
21848
|
+
render: function render(val) {
|
|
21849
|
+
return val || val === 0 ? Number(val).toFixed(2) : '';
|
|
20765
21850
|
}
|
|
20766
21851
|
}, {
|
|
20767
|
-
dataIndex: '
|
|
20768
|
-
title:
|
|
21852
|
+
dataIndex: 'payment',
|
|
21853
|
+
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
21854
|
+
width: 150,
|
|
20769
21855
|
render: function render(val, record, index) {
|
|
20770
|
-
return !disabled ? /*#__PURE__*/React.createElement(
|
|
21856
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
20771
21857
|
style: {
|
|
20772
|
-
width:
|
|
21858
|
+
width: 130
|
|
20773
21859
|
},
|
|
20774
21860
|
value: val,
|
|
20775
|
-
|
|
20776
|
-
|
|
21861
|
+
min: 0,
|
|
21862
|
+
precision: 2,
|
|
21863
|
+
onChange: function onChange(num) {
|
|
21864
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'payment');
|
|
20777
21865
|
}
|
|
20778
|
-
}) :
|
|
21866
|
+
}) : /*#__PURE__*/React.createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
|
|
20779
21867
|
}
|
|
20780
|
-
}
|
|
20781
|
-
|
|
20782
|
-
|
|
20783
|
-
|
|
20784
|
-
title: "\u805A\u6C34\u6F6D\u552E\u540E\u5355\u53F7",
|
|
20785
|
-
width: 200,
|
|
20786
|
-
align: 'center',
|
|
20787
|
-
ellipsis: true,
|
|
21868
|
+
}, {
|
|
21869
|
+
dataIndex: 'type',
|
|
21870
|
+
title: "\u5546\u54C1\u7C7B\u578B",
|
|
21871
|
+
width: 150,
|
|
20788
21872
|
render: renderTextEllipsis
|
|
20789
21873
|
}, {
|
|
20790
|
-
dataIndex: '
|
|
20791
|
-
title: "\
|
|
20792
|
-
width:
|
|
20793
|
-
align: 'center',
|
|
20794
|
-
ellipsis: true,
|
|
21874
|
+
dataIndex: 'supplierName',
|
|
21875
|
+
title: "\u4F9B\u5E94\u5546\u540D\u79F0",
|
|
21876
|
+
width: 150,
|
|
20795
21877
|
render: renderTextEllipsis
|
|
20796
21878
|
}, {
|
|
20797
|
-
dataIndex: '
|
|
20798
|
-
title: "\
|
|
20799
|
-
width:
|
|
20800
|
-
align: 'center',
|
|
20801
|
-
ellipsis: true,
|
|
21879
|
+
dataIndex: 'supplierCode',
|
|
21880
|
+
title: "\u4F9B\u5E94\u5546\u7F16\u7801",
|
|
21881
|
+
width: 150,
|
|
20802
21882
|
render: renderTextEllipsis
|
|
20803
21883
|
}, {
|
|
20804
|
-
dataIndex: '
|
|
20805
|
-
title: "\u56FE\u7247",
|
|
21884
|
+
dataIndex: 'sysPicPath',
|
|
21885
|
+
title: "\u5546\u54C1\u56FE\u7247",
|
|
20806
21886
|
width: 100,
|
|
20807
|
-
align: 'center',
|
|
20808
21887
|
render: function render(val) {
|
|
20809
|
-
|
|
21888
|
+
var imgUrl = (val === null || val === void 0 ? void 0 : val.startsWith('http')) ? val : "https://erp.superboss.cc".concat(val);
|
|
21889
|
+
return /*#__PURE__*/React.createElement(Image, {
|
|
20810
21890
|
width: 30,
|
|
20811
|
-
src:
|
|
21891
|
+
src: imgUrl
|
|
20812
21892
|
});
|
|
20813
|
-
}
|
|
20814
|
-
|
|
20815
|
-
|
|
20816
|
-
|
|
20817
|
-
|
|
20818
|
-
|
|
20819
|
-
|
|
20820
|
-
|
|
20821
|
-
|
|
20822
|
-
|
|
20823
|
-
|
|
20824
|
-
|
|
20825
|
-
|
|
20826
|
-
|
|
20827
|
-
|
|
20828
|
-
|
|
20829
|
-
|
|
20830
|
-
|
|
20831
|
-
|
|
20832
|
-
|
|
20833
|
-
|
|
20834
|
-
|
|
20835
|
-
|
|
20836
|
-
|
|
20837
|
-
|
|
20838
|
-
|
|
20839
|
-
|
|
21893
|
+
}
|
|
21894
|
+
}].map(function (item) {
|
|
21895
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
21896
|
+
align: 'center',
|
|
21897
|
+
ellipsis: true
|
|
21898
|
+
});
|
|
21899
|
+
})
|
|
21900
|
+
};
|
|
21901
|
+
};
|
|
21902
|
+
|
|
21903
|
+
var isNumberOrNumberString$2 = function isNumberOrNumberString(value) {
|
|
21904
|
+
if (typeof value === 'number') return true;
|
|
21905
|
+
if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
|
|
21906
|
+
return false;
|
|
21907
|
+
};
|
|
21908
|
+
function toNum$4(value) {
|
|
21909
|
+
if (typeof value === 'string') {
|
|
21910
|
+
return value ? +value : void 0;
|
|
21911
|
+
}
|
|
21912
|
+
if (typeof value === 'number') {
|
|
21913
|
+
return value;
|
|
21914
|
+
}
|
|
21915
|
+
return void 0;
|
|
21916
|
+
}
|
|
21917
|
+
var getColumns$7 = function getColumns(_ref) {
|
|
21918
|
+
var _ref$text = _ref.text,
|
|
21919
|
+
disabled = _ref.disabled,
|
|
21920
|
+
updateHandle = _ref.updateHandle,
|
|
21921
|
+
updateDataHandle = _ref.updateDataHandle;
|
|
21922
|
+
return {
|
|
21923
|
+
//巨益商品信息
|
|
21924
|
+
JY_GOODS: [{
|
|
21925
|
+
dataIndex: 'productName',
|
|
21926
|
+
title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
|
|
20840
21927
|
align: 'center',
|
|
20841
21928
|
ellipsis: true,
|
|
20842
|
-
render: renderTextEllipsis
|
|
20843
|
-
}, {
|
|
20844
|
-
dataIndex: 'rQty',
|
|
20845
|
-
title: "\u5B9E\u6536\u9000\u8D27\u6570\u91CF",
|
|
20846
21929
|
width: 150,
|
|
20847
|
-
align: 'center',
|
|
20848
|
-
ellipsis: true,
|
|
20849
21930
|
render: renderTextEllipsis
|
|
20850
21931
|
}, {
|
|
20851
|
-
dataIndex: '
|
|
20852
|
-
title: "\
|
|
20853
|
-
width: 150,
|
|
21932
|
+
dataIndex: 'productCode',
|
|
21933
|
+
title: "\u7CFB\u7EDF\u5546\u54C1\u7F16\u7801",
|
|
20854
21934
|
align: 'center',
|
|
20855
21935
|
ellipsis: true,
|
|
20856
|
-
render: renderTextEllipsis
|
|
20857
|
-
}, {
|
|
20858
|
-
dataIndex: 'amount',
|
|
20859
|
-
title: "\u7533\u8BF7\u91D1\u989D",
|
|
20860
21936
|
width: 150,
|
|
20861
|
-
align: 'center',
|
|
20862
|
-
ellipsis: true,
|
|
20863
21937
|
render: renderTextEllipsis
|
|
20864
21938
|
}, {
|
|
20865
|
-
dataIndex: '
|
|
20866
|
-
title: "\
|
|
20867
|
-
width: 150,
|
|
21939
|
+
dataIndex: 'productId',
|
|
21940
|
+
title: "\u7CFB\u7EDF\u5546\u54C1ID",
|
|
20868
21941
|
align: 'center',
|
|
20869
21942
|
ellipsis: true,
|
|
20870
|
-
render: renderTextEllipsis
|
|
20871
|
-
}, {
|
|
20872
|
-
dataIndex: 'price',
|
|
20873
|
-
title: "\u5355\u4EF7",
|
|
20874
21943
|
width: 150,
|
|
20875
|
-
align: 'center',
|
|
20876
|
-
ellipsis: true,
|
|
20877
21944
|
render: renderTextEllipsis
|
|
20878
21945
|
}, {
|
|
20879
|
-
dataIndex: '
|
|
20880
|
-
title: "\
|
|
20881
|
-
width: 250,
|
|
21946
|
+
dataIndex: 'skuName',
|
|
21947
|
+
title: "\u7CFB\u7EDF\u89C4\u683C\u540D\u79F0",
|
|
20882
21948
|
align: 'center',
|
|
20883
21949
|
ellipsis: true,
|
|
21950
|
+
width: 150,
|
|
20884
21951
|
render: renderTextEllipsis
|
|
20885
21952
|
}, {
|
|
20886
|
-
dataIndex: '
|
|
20887
|
-
title: "\
|
|
20888
|
-
width: 200,
|
|
21953
|
+
dataIndex: 'skuCode',
|
|
21954
|
+
title: "\u7CFB\u7EDF\u89C4\u683C\u7F16\u7801",
|
|
20889
21955
|
align: 'center',
|
|
20890
21956
|
ellipsis: true,
|
|
21957
|
+
width: 150,
|
|
20891
21958
|
render: renderTextEllipsis
|
|
20892
21959
|
}, {
|
|
20893
|
-
dataIndex: '
|
|
20894
|
-
title: "\
|
|
20895
|
-
width: 200,
|
|
21960
|
+
dataIndex: 'specId',
|
|
21961
|
+
title: "\u89C4\u683CID",
|
|
20896
21962
|
align: 'center',
|
|
20897
21963
|
ellipsis: true,
|
|
21964
|
+
width: 150,
|
|
20898
21965
|
render: renderTextEllipsis
|
|
20899
21966
|
}, {
|
|
20900
|
-
dataIndex: '
|
|
20901
|
-
title: "\
|
|
21967
|
+
dataIndex: 'goodsClass',
|
|
21968
|
+
title: "\u8D27\u54C1\u7C7B\u522B",
|
|
20902
21969
|
width: 150,
|
|
20903
|
-
align: 'center',
|
|
20904
|
-
ellipsis: true,
|
|
20905
21970
|
render: renderTextEllipsis
|
|
20906
21971
|
}, {
|
|
20907
|
-
dataIndex: '
|
|
20908
|
-
title: "\
|
|
21972
|
+
dataIndex: 'code',
|
|
21973
|
+
title: "\u6761\u7801",
|
|
20909
21974
|
width: 150,
|
|
21975
|
+
render: renderTextEllipsis
|
|
21976
|
+
},
|
|
21977
|
+
// {
|
|
21978
|
+
// dataIndex: 'specName',
|
|
21979
|
+
// title: `规格名称`,
|
|
21980
|
+
// align: 'center',
|
|
21981
|
+
// ellipsis: true,
|
|
21982
|
+
// width: 200,
|
|
21983
|
+
// },
|
|
21984
|
+
// {
|
|
21985
|
+
// dataIndex: 'specCode',
|
|
21986
|
+
// title: `规格编号`,
|
|
21987
|
+
// align: 'center',
|
|
21988
|
+
// ellipsis: true,
|
|
21989
|
+
// width: 150,
|
|
21990
|
+
// },
|
|
21991
|
+
{
|
|
21992
|
+
dataIndex: 'mallProductName',
|
|
21993
|
+
title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
|
|
20910
21994
|
align: 'center',
|
|
20911
21995
|
ellipsis: true,
|
|
21996
|
+
width: 250,
|
|
20912
21997
|
render: renderTextEllipsis
|
|
20913
21998
|
}, {
|
|
20914
|
-
dataIndex: '
|
|
20915
|
-
title:
|
|
20916
|
-
width: 100,
|
|
20917
|
-
render: function render(val) {
|
|
20918
|
-
return /*#__PURE__*/React.createElement("span", null, typeof val !== 'boolean' ? '' : val ? '是' : '否');
|
|
20919
|
-
},
|
|
20920
|
-
headerMapping: {
|
|
20921
|
-
transformValue: function transformValue(val) {
|
|
20922
|
-
return typeof val !== 'boolean' ? '' : val ? '是' : '否';
|
|
20923
|
-
},
|
|
20924
|
-
renderExport: function renderExport(val) {
|
|
20925
|
-
return typeof val !== 'boolean' ? '' : val ? '是' : '否';
|
|
20926
|
-
}
|
|
20927
|
-
}
|
|
20928
|
-
}, {
|
|
20929
|
-
dataIndex: 'receiveDate',
|
|
20930
|
-
title: "\u5165\u4ED3\u65F6\u95F4",
|
|
20931
|
-
width: 200,
|
|
21999
|
+
dataIndex: 'mallProductOutCode',
|
|
22000
|
+
title: "\u5E73\u53F0\u5546\u54C1\u7F16\u7801",
|
|
20932
22001
|
align: 'center',
|
|
20933
22002
|
ellipsis: true,
|
|
22003
|
+
width: 150,
|
|
20934
22004
|
render: renderTextEllipsis
|
|
20935
22005
|
}, {
|
|
20936
|
-
dataIndex: '
|
|
20937
|
-
title: "\
|
|
20938
|
-
width: 200,
|
|
22006
|
+
dataIndex: 'mallProductId',
|
|
22007
|
+
title: "\u5E73\u53F0\u5546\u54C1ID",
|
|
20939
22008
|
align: 'center',
|
|
20940
22009
|
ellipsis: true,
|
|
20941
|
-
render: renderTextEllipsis
|
|
20942
|
-
}]
|
|
20943
|
-
};
|
|
20944
|
-
};
|
|
20945
|
-
|
|
20946
|
-
function toNum$3(value) {
|
|
20947
|
-
if (typeof value === 'string') {
|
|
20948
|
-
return value ? +value : void 0;
|
|
20949
|
-
}
|
|
20950
|
-
if (typeof value === 'number') {
|
|
20951
|
-
return value;
|
|
20952
|
-
}
|
|
20953
|
-
return void 0;
|
|
20954
|
-
}
|
|
20955
|
-
var getColumns$6 = function getColumns(_ref) {
|
|
20956
|
-
var _ref$text = _ref.text,
|
|
20957
|
-
disabled = _ref.disabled,
|
|
20958
|
-
updateHandle = _ref.updateHandle;
|
|
20959
|
-
return {
|
|
20960
|
-
KM_GOODS: [{
|
|
20961
|
-
dataIndex: 'skuPropertiesName',
|
|
20962
|
-
title: "\u89C4\u683C\u540D\u79F0",
|
|
20963
22010
|
width: 250,
|
|
20964
22011
|
render: renderTextEllipsis
|
|
20965
22012
|
}, {
|
|
20966
|
-
dataIndex: '
|
|
20967
|
-
title: "\
|
|
20968
|
-
|
|
20969
|
-
|
|
20970
|
-
|
|
20971
|
-
dataIndex: 'title',
|
|
20972
|
-
title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
|
|
20973
|
-
width: 150,
|
|
20974
|
-
render: renderTextEllipsis
|
|
20975
|
-
}, {
|
|
20976
|
-
dataIndex: 'shortTitle',
|
|
20977
|
-
title: "\u5546\u54C1\u7B80\u79F0",
|
|
20978
|
-
width: 150,
|
|
20979
|
-
render: renderTextEllipsis
|
|
20980
|
-
}, {
|
|
20981
|
-
dataIndex: 'sysOuterId',
|
|
20982
|
-
title: "\u7CFB\u7EDF\u5546\u5BB6\u7F16\u7801",
|
|
20983
|
-
width: 150,
|
|
20984
|
-
render: renderTextEllipsis
|
|
20985
|
-
}, {
|
|
20986
|
-
dataIndex: 'skuSysId',
|
|
20987
|
-
title: "\u7CFB\u7EDF\u89C4\u683CID",
|
|
20988
|
-
width: 150,
|
|
20989
|
-
render: renderTextEllipsis
|
|
20990
|
-
}, {
|
|
20991
|
-
dataIndex: 'skuId',
|
|
20992
|
-
title: "\u5E73\u53F0\u89C4\u683C\u7F16\u53F7",
|
|
20993
|
-
width: 170,
|
|
22013
|
+
dataIndex: 'mallSkuName',
|
|
22014
|
+
title: "\u5E73\u53F0\u89C4\u683C\u540D\u79F0",
|
|
22015
|
+
align: 'center',
|
|
22016
|
+
ellipsis: true,
|
|
22017
|
+
width: 250,
|
|
20994
22018
|
render: renderTextEllipsis
|
|
20995
22019
|
}, {
|
|
20996
|
-
dataIndex: '
|
|
20997
|
-
title: "\
|
|
20998
|
-
|
|
22020
|
+
dataIndex: 'mallSkuId',
|
|
22021
|
+
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
22022
|
+
align: 'center',
|
|
22023
|
+
ellipsis: true,
|
|
22024
|
+
width: 250,
|
|
20999
22025
|
render: renderTextEllipsis
|
|
21000
22026
|
}, {
|
|
21001
|
-
dataIndex: '
|
|
21002
|
-
title: "\u5546\u54C1\u56FE\u7247",
|
|
21003
|
-
width: 100,
|
|
21004
|
-
render: function render(val) {
|
|
21005
|
-
return /*#__PURE__*/React.createElement(Image, {
|
|
21006
|
-
width: 30,
|
|
21007
|
-
src: val
|
|
21008
|
-
});
|
|
21009
|
-
}
|
|
21010
|
-
}, {
|
|
21011
|
-
dataIndex: 'num',
|
|
22027
|
+
dataIndex: 'sellCount',
|
|
21012
22028
|
title: "\u6570\u91CF",
|
|
21013
22029
|
width: 100,
|
|
21014
22030
|
render: function render(val, record, index) {
|
|
@@ -21020,13 +22036,16 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
21020
22036
|
min: 1,
|
|
21021
22037
|
precision: 0,
|
|
21022
22038
|
onChange: function onChange(num) {
|
|
21023
|
-
|
|
22039
|
+
updateDataHandle({
|
|
22040
|
+
sellCount: num,
|
|
22041
|
+
sellTotal: num && isNumberOrNumberString$2(record.sellPrice) ? num * record.sellPrice : null
|
|
22042
|
+
}, index);
|
|
21024
22043
|
}
|
|
21025
22044
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
21026
22045
|
}
|
|
21027
22046
|
}, {
|
|
21028
|
-
dataIndex: '
|
|
21029
|
-
title: "\
|
|
22047
|
+
dataIndex: 'sellPrice',
|
|
22048
|
+
title: "\u5355\u4EF7",
|
|
21030
22049
|
width: 150,
|
|
21031
22050
|
render: function render(val, record, index) {
|
|
21032
22051
|
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
@@ -21037,83 +22056,198 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
21037
22056
|
min: 0,
|
|
21038
22057
|
precision: 2,
|
|
21039
22058
|
onChange: function onChange(num) {
|
|
21040
|
-
|
|
22059
|
+
updateDataHandle({
|
|
22060
|
+
sellPrice: num,
|
|
22061
|
+
sellTotal: num && isNumberOrNumberString$2(record.sellCount) ? num * record.sellCount : null
|
|
22062
|
+
}, index);
|
|
21041
22063
|
}
|
|
21042
|
-
}) : /*#__PURE__*/React.createElement("span", null, val
|
|
22064
|
+
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
21043
22065
|
}
|
|
21044
22066
|
}, {
|
|
21045
|
-
dataIndex: '
|
|
21046
|
-
title: "\u5546\u54C1\
|
|
22067
|
+
dataIndex: 'mallSellingPrice',
|
|
22068
|
+
title: "\u5E73\u53F0\u5546\u54C1\u4EF7\u683C",
|
|
22069
|
+
width: 150
|
|
22070
|
+
}, {
|
|
22071
|
+
dataIndex: 'sellTotal',
|
|
22072
|
+
title: "\u91D1\u989D",
|
|
22073
|
+
width: 150
|
|
22074
|
+
}, {
|
|
22075
|
+
dataIndex: 'settlementPrice',
|
|
22076
|
+
title: "\u7ED3\u7B97\u4EF7",
|
|
22077
|
+
width: 150
|
|
22078
|
+
}, {
|
|
22079
|
+
dataIndex: 'divideOrderFee',
|
|
22080
|
+
title: "\u5206\u644A\u5B9E\u4ED8\u91D1\u989D",
|
|
22081
|
+
width: 150
|
|
22082
|
+
}, {
|
|
22083
|
+
dataIndex: 'bfit',
|
|
22084
|
+
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
21047
22085
|
width: 150,
|
|
21048
|
-
render: function render(val) {
|
|
21049
|
-
return
|
|
22086
|
+
render: function render(val, record, index) {
|
|
22087
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
22088
|
+
dropdownStyle: {
|
|
22089
|
+
zIndex: 2000
|
|
22090
|
+
},
|
|
22091
|
+
getPopupContainer: function getPopupContainer() {
|
|
22092
|
+
return document.body;
|
|
22093
|
+
},
|
|
22094
|
+
value: val,
|
|
22095
|
+
onChange: function onChange(value) {
|
|
22096
|
+
updateHandle(value, index, 'bfit');
|
|
22097
|
+
},
|
|
22098
|
+
options: [{
|
|
22099
|
+
label: '是',
|
|
22100
|
+
value: 'True'
|
|
22101
|
+
}, {
|
|
22102
|
+
label: '否',
|
|
22103
|
+
value: 'False'
|
|
22104
|
+
}]
|
|
22105
|
+
}) : /*#__PURE__*/React.createElement("span", null, val === 'True' ? '是' : '否');
|
|
21050
22106
|
}
|
|
21051
22107
|
}, {
|
|
21052
|
-
dataIndex: '
|
|
21053
|
-
title: "\u5546\u54C1\
|
|
22108
|
+
dataIndex: 'combinationName',
|
|
22109
|
+
title: "\u7EC4\u5408\u5546\u54C1\u540D\u79F0",
|
|
22110
|
+
width: 150,
|
|
22111
|
+
render: renderTextEllipsis
|
|
22112
|
+
}, {
|
|
22113
|
+
dataIndex: 'combinationCode',
|
|
22114
|
+
title: "\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
|
|
21054
22115
|
width: 150,
|
|
21055
22116
|
render: renderTextEllipsis
|
|
22117
|
+
}, {
|
|
22118
|
+
dataIndex: 'gift',
|
|
22119
|
+
title: "\u662F\u5426\u8D60\u54C1",
|
|
22120
|
+
width: 150,
|
|
22121
|
+
render: function render(val, record, index) {
|
|
22122
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
22123
|
+
dropdownStyle: {
|
|
22124
|
+
zIndex: 2000
|
|
22125
|
+
},
|
|
22126
|
+
getPopupContainer: function getPopupContainer() {
|
|
22127
|
+
return document.body;
|
|
22128
|
+
},
|
|
22129
|
+
value: val,
|
|
22130
|
+
onChange: function onChange(value) {
|
|
22131
|
+
updateHandle(value, index, 'gift');
|
|
22132
|
+
},
|
|
22133
|
+
options: [{
|
|
22134
|
+
label: '是',
|
|
22135
|
+
value: '1'
|
|
22136
|
+
}, {
|
|
22137
|
+
label: '否',
|
|
22138
|
+
value: '0'
|
|
22139
|
+
}]
|
|
22140
|
+
}) : /*#__PURE__*/React.createElement("span", null, val === '1' ? '是' : '否');
|
|
22141
|
+
}
|
|
21056
22142
|
}].map(function (item) {
|
|
21057
22143
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
21058
22144
|
align: 'center',
|
|
21059
22145
|
ellipsis: true
|
|
21060
22146
|
});
|
|
21061
22147
|
}),
|
|
21062
|
-
|
|
21063
|
-
|
|
21064
|
-
|
|
21065
|
-
|
|
22148
|
+
// 巨益补发商品信息
|
|
22149
|
+
JY_REISSUE_GOODS: [{
|
|
22150
|
+
dataIndex: 'productName',
|
|
22151
|
+
title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
|
|
22152
|
+
align: 'center',
|
|
22153
|
+
ellipsis: true,
|
|
22154
|
+
width: 150,
|
|
21066
22155
|
render: renderTextEllipsis
|
|
21067
22156
|
}, {
|
|
21068
|
-
dataIndex: '
|
|
21069
|
-
title: "\u7CFB\u7EDF\u5546\u54C1\
|
|
22157
|
+
dataIndex: 'productCode',
|
|
22158
|
+
title: "\u7CFB\u7EDF\u5546\u54C1\u7F16\u7801",
|
|
22159
|
+
align: 'center',
|
|
22160
|
+
ellipsis: true,
|
|
21070
22161
|
width: 150,
|
|
21071
22162
|
render: renderTextEllipsis
|
|
21072
22163
|
}, {
|
|
21073
|
-
dataIndex: '
|
|
21074
|
-
title: "\
|
|
22164
|
+
dataIndex: 'productId',
|
|
22165
|
+
title: "\u7CFB\u7EDF\u5546\u54C1ID",
|
|
22166
|
+
align: 'center',
|
|
22167
|
+
ellipsis: true,
|
|
21075
22168
|
width: 150,
|
|
21076
22169
|
render: renderTextEllipsis
|
|
21077
22170
|
}, {
|
|
21078
|
-
dataIndex: '
|
|
22171
|
+
dataIndex: 'skuName',
|
|
22172
|
+
title: "\u7CFB\u7EDF\u89C4\u683C\u540D\u79F0",
|
|
22173
|
+
align: 'center',
|
|
22174
|
+
ellipsis: true,
|
|
22175
|
+
width: 150,
|
|
22176
|
+
render: renderTextEllipsis
|
|
22177
|
+
}, {
|
|
22178
|
+
dataIndex: 'skuCode',
|
|
22179
|
+
title: "\u7CFB\u7EDF\u89C4\u683C\u7F16\u7801",
|
|
22180
|
+
align: 'center',
|
|
22181
|
+
ellipsis: true,
|
|
22182
|
+
width: 150,
|
|
22183
|
+
render: renderTextEllipsis
|
|
22184
|
+
}, {
|
|
22185
|
+
dataIndex: 'specId',
|
|
22186
|
+
title: "\u89C4\u683CID",
|
|
22187
|
+
align: 'center',
|
|
22188
|
+
ellipsis: true,
|
|
22189
|
+
width: 150,
|
|
22190
|
+
render: renderTextEllipsis
|
|
22191
|
+
}, {
|
|
22192
|
+
dataIndex: 'goodsClass',
|
|
22193
|
+
title: "\u8D27\u54C1\u7C7B\u522B",
|
|
22194
|
+
width: 150,
|
|
22195
|
+
render: renderTextEllipsis
|
|
22196
|
+
}, {
|
|
22197
|
+
dataIndex: 'code',
|
|
22198
|
+
title: "\u6761\u7801",
|
|
22199
|
+
width: 150,
|
|
22200
|
+
render: renderTextEllipsis
|
|
22201
|
+
}, {
|
|
22202
|
+
dataIndex: 'mallProductName',
|
|
21079
22203
|
title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
|
|
22204
|
+
align: 'center',
|
|
22205
|
+
ellipsis: true,
|
|
21080
22206
|
width: 150,
|
|
21081
22207
|
render: renderTextEllipsis
|
|
21082
22208
|
}, {
|
|
21083
|
-
dataIndex: '
|
|
21084
|
-
title: "\
|
|
22209
|
+
dataIndex: 'mallProductOutCode',
|
|
22210
|
+
title: "\u5E73\u53F0\u5546\u54C1\u7F16\u7801",
|
|
22211
|
+
align: 'center',
|
|
22212
|
+
ellipsis: true,
|
|
21085
22213
|
width: 150,
|
|
21086
22214
|
render: renderTextEllipsis
|
|
21087
22215
|
}, {
|
|
21088
|
-
dataIndex: '
|
|
21089
|
-
title: "\
|
|
22216
|
+
dataIndex: 'mallProductId',
|
|
22217
|
+
title: "\u5E73\u53F0\u5546\u54C1ID",
|
|
22218
|
+
align: 'center',
|
|
22219
|
+
ellipsis: true,
|
|
21090
22220
|
width: 150,
|
|
21091
22221
|
render: renderTextEllipsis
|
|
21092
22222
|
}, {
|
|
21093
|
-
dataIndex: '
|
|
21094
|
-
title: "\
|
|
22223
|
+
dataIndex: 'mallSkuName',
|
|
22224
|
+
title: "\u5E73\u53F0\u89C4\u683C\u540D\u79F0",
|
|
22225
|
+
align: 'center',
|
|
22226
|
+
ellipsis: true,
|
|
21095
22227
|
width: 150,
|
|
21096
22228
|
render: renderTextEllipsis
|
|
21097
22229
|
}, {
|
|
21098
|
-
dataIndex: '
|
|
21099
|
-
title: "\u5E73\u53F0\u89C4\
|
|
21100
|
-
|
|
22230
|
+
dataIndex: 'mallSkuId',
|
|
22231
|
+
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
22232
|
+
align: 'center',
|
|
22233
|
+
ellipsis: true,
|
|
22234
|
+
width: 150,
|
|
21101
22235
|
render: renderTextEllipsis
|
|
21102
22236
|
}, {
|
|
21103
|
-
dataIndex: '
|
|
21104
|
-
title: "\
|
|
22237
|
+
dataIndex: 'sellCount',
|
|
22238
|
+
title: "\u6570\u91CF",
|
|
21105
22239
|
width: 100,
|
|
21106
22240
|
validator: function validator(_rule, value) {
|
|
21107
|
-
var
|
|
21108
|
-
if (((value === null || value === void 0 ? void 0 : value.
|
|
21109
|
-
var
|
|
21110
|
-
var res = typeof
|
|
22241
|
+
var productName = '';
|
|
22242
|
+
if (((value === null || value === void 0 ? void 0 : value.jyReissueGoods) || []).some(function (goods) {
|
|
22243
|
+
var qty = toNum$4(goods === null || goods === void 0 ? void 0 : goods.sellCount);
|
|
22244
|
+
var res = typeof qty === 'number' ? qty < 1 : true;
|
|
21111
22245
|
if (res) {
|
|
21112
|
-
|
|
22246
|
+
productName = (goods === null || goods === void 0 ? void 0 : goods.productName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.productName, "]") : '';
|
|
21113
22247
|
}
|
|
21114
22248
|
return res;
|
|
21115
22249
|
})) {
|
|
21116
|
-
return Promise.reject("".concat(
|
|
22250
|
+
return Promise.reject("".concat(productName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
21117
22251
|
}
|
|
21118
22252
|
},
|
|
21119
22253
|
render: function render(val, record, index) {
|
|
@@ -21125,81 +22259,158 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
21125
22259
|
min: 1,
|
|
21126
22260
|
precision: 0,
|
|
21127
22261
|
onChange: function onChange(num) {
|
|
21128
|
-
|
|
22262
|
+
updateDataHandle({
|
|
22263
|
+
sellCount: num,
|
|
22264
|
+
sellTotal: num && isNumberOrNumberString$2(record.sellPrice) ? num * record.sellPrice : null
|
|
22265
|
+
}, index);
|
|
21129
22266
|
}
|
|
21130
22267
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
21131
22268
|
}
|
|
21132
22269
|
}, {
|
|
21133
|
-
dataIndex: '
|
|
21134
|
-
title: "\
|
|
21135
|
-
width:
|
|
22270
|
+
dataIndex: 'sellPrice',
|
|
22271
|
+
title: "\u5355\u4EF7",
|
|
22272
|
+
width: 150,
|
|
21136
22273
|
render: function render(val, record, index) {
|
|
21137
22274
|
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
21138
22275
|
style: {
|
|
21139
|
-
width:
|
|
22276
|
+
width: 130
|
|
22277
|
+
},
|
|
22278
|
+
value: val,
|
|
22279
|
+
min: 0,
|
|
22280
|
+
precision: 2,
|
|
22281
|
+
onChange: function onChange(num) {
|
|
22282
|
+
updateDataHandle({
|
|
22283
|
+
sellPrice: num,
|
|
22284
|
+
sellTotal: num && isNumberOrNumberString$2(record.sellCount) ? num * record.sellCount : null
|
|
22285
|
+
}, index);
|
|
22286
|
+
}
|
|
22287
|
+
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
22288
|
+
}
|
|
22289
|
+
}, {
|
|
22290
|
+
dataIndex: 'mallSellingPrice',
|
|
22291
|
+
title: "\u5E73\u53F0\u5546\u54C1\u4EF7\u683C",
|
|
22292
|
+
width: 150
|
|
22293
|
+
}, {
|
|
22294
|
+
dataIndex: 'sellTotal',
|
|
22295
|
+
title: "\u91D1\u989D",
|
|
22296
|
+
width: 150
|
|
22297
|
+
}, {
|
|
22298
|
+
dataIndex: 'bfit',
|
|
22299
|
+
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
22300
|
+
width: 150,
|
|
22301
|
+
render: function render(val, record, index) {
|
|
22302
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
22303
|
+
dropdownStyle: {
|
|
22304
|
+
zIndex: 2000
|
|
22305
|
+
},
|
|
22306
|
+
getPopupContainer: function getPopupContainer() {
|
|
22307
|
+
return document.body;
|
|
21140
22308
|
},
|
|
21141
22309
|
value: val,
|
|
21142
|
-
|
|
21143
|
-
|
|
21144
|
-
|
|
21145
|
-
|
|
21146
|
-
|
|
21147
|
-
|
|
22310
|
+
onChange: function onChange(value) {
|
|
22311
|
+
updateHandle(value, index, 'bfit');
|
|
22312
|
+
},
|
|
22313
|
+
options: [{
|
|
22314
|
+
label: '是',
|
|
22315
|
+
value: 'True'
|
|
22316
|
+
}, {
|
|
22317
|
+
label: '否',
|
|
22318
|
+
value: 'False'
|
|
22319
|
+
}]
|
|
22320
|
+
}) : /*#__PURE__*/React.createElement("span", null, val === 'True' ? '是' : '否');
|
|
21148
22321
|
}
|
|
21149
22322
|
}, {
|
|
21150
|
-
dataIndex: '
|
|
21151
|
-
title: "\u5546\u54C1\
|
|
22323
|
+
dataIndex: 'combinationName',
|
|
22324
|
+
title: "\u7EC4\u5408\u5546\u54C1\u540D\u79F0",
|
|
21152
22325
|
width: 150,
|
|
21153
|
-
render:
|
|
21154
|
-
return val || val === 0 ? Number(val).toFixed(2) : '';
|
|
21155
|
-
}
|
|
22326
|
+
render: renderTextEllipsis
|
|
21156
22327
|
}, {
|
|
21157
|
-
dataIndex: '
|
|
21158
|
-
title: "\
|
|
22328
|
+
dataIndex: 'combinationCode',
|
|
22329
|
+
title: "\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
|
|
22330
|
+
width: 150,
|
|
22331
|
+
render: renderTextEllipsis
|
|
22332
|
+
}, {
|
|
22333
|
+
dataIndex: 'gift',
|
|
22334
|
+
title: "\u662F\u5426\u8D60\u54C1",
|
|
21159
22335
|
width: 150,
|
|
21160
22336
|
render: function render(val, record, index) {
|
|
21161
|
-
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(
|
|
21162
|
-
|
|
21163
|
-
|
|
22337
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
22338
|
+
dropdownStyle: {
|
|
22339
|
+
zIndex: 2000
|
|
22340
|
+
},
|
|
22341
|
+
getPopupContainer: function getPopupContainer() {
|
|
22342
|
+
return document.body;
|
|
21164
22343
|
},
|
|
21165
22344
|
value: val,
|
|
21166
|
-
|
|
21167
|
-
|
|
21168
|
-
|
|
21169
|
-
|
|
21170
|
-
|
|
21171
|
-
|
|
22345
|
+
onChange: function onChange(value) {
|
|
22346
|
+
updateHandle(value, index, 'gift');
|
|
22347
|
+
},
|
|
22348
|
+
options: [{
|
|
22349
|
+
label: '是',
|
|
22350
|
+
value: '1'
|
|
22351
|
+
}, {
|
|
22352
|
+
label: '否',
|
|
22353
|
+
value: '0'
|
|
22354
|
+
}]
|
|
22355
|
+
}) : /*#__PURE__*/React.createElement("span", null, val === '1' ? '是' : '否');
|
|
21172
22356
|
}
|
|
22357
|
+
}].map(function (item) {
|
|
22358
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
22359
|
+
align: 'center',
|
|
22360
|
+
ellipsis: true
|
|
22361
|
+
});
|
|
22362
|
+
})
|
|
22363
|
+
};
|
|
22364
|
+
};
|
|
22365
|
+
|
|
22366
|
+
var getColumns$8 = function getColumns(_ref) {
|
|
22367
|
+
var _ref$text = _ref.text,
|
|
22368
|
+
disabled = _ref.disabled,
|
|
22369
|
+
updateHandle = _ref.updateHandle,
|
|
22370
|
+
updateDataHandle = _ref.updateDataHandle;
|
|
22371
|
+
return {
|
|
22372
|
+
//[SKX]商品信息(ON)
|
|
22373
|
+
SKX_GOODS: [{
|
|
22374
|
+
dataIndex: 'skuEcode',
|
|
22375
|
+
title: "[SKX]\u53D1\u8D27\u5355\u660E\u7EC6-skuEcode",
|
|
22376
|
+
width: 250
|
|
21173
22377
|
}, {
|
|
21174
|
-
dataIndex: '
|
|
21175
|
-
title: "\
|
|
21176
|
-
width:
|
|
21177
|
-
render: renderTextEllipsis
|
|
22378
|
+
dataIndex: 'subOrderId',
|
|
22379
|
+
title: "[SKX]\u53D1\u8D27\u5355-\u5B50\u8BA2\u5355\u53F7",
|
|
22380
|
+
width: 300
|
|
21178
22381
|
}, {
|
|
21179
|
-
dataIndex: '
|
|
21180
|
-
title: "\
|
|
21181
|
-
width:
|
|
21182
|
-
render: function render(val) {
|
|
21183
|
-
return /*#__PURE__*/React.createElement(Image, {
|
|
21184
|
-
width: 30,
|
|
21185
|
-
src: val
|
|
21186
|
-
});
|
|
21187
|
-
}
|
|
22382
|
+
dataIndex: 'onBillNo',
|
|
22383
|
+
title: "[SKX]ON\u51FA\u5E93\u901A\u77E5\u5355\u53F7",
|
|
22384
|
+
width: 200
|
|
21188
22385
|
}].map(function (item) {
|
|
21189
22386
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
21190
22387
|
align: 'center',
|
|
21191
22388
|
ellipsis: true
|
|
21192
22389
|
});
|
|
21193
|
-
})
|
|
22390
|
+
}),
|
|
22391
|
+
//[SKX]退货商品信息(TH)
|
|
22392
|
+
SKX_RETURN_GOODS: [{
|
|
22393
|
+
dataIndex: 'returnSkuEcode',
|
|
22394
|
+
title: "[SKX]\u9000\u8D27\u5355\u660E\u7EC6-returnSkuEcode",
|
|
22395
|
+
width: 300
|
|
22396
|
+
}, {
|
|
22397
|
+
dataIndex: 'returnSubOrderId',
|
|
22398
|
+
title: "[SKX]\u9000\u8D27\u5355-\u5B50\u8BA2\u5355\u53F7",
|
|
22399
|
+
width: 300
|
|
22400
|
+
}, {
|
|
22401
|
+
dataIndex: 'returnBillNo',
|
|
22402
|
+
title: "[SKX]TH\u9000\u6362\u8D27\u5355\u53F7",
|
|
22403
|
+
width: 200
|
|
22404
|
+
}]
|
|
21194
22405
|
};
|
|
21195
22406
|
};
|
|
21196
22407
|
|
|
21197
|
-
var isNumberOrNumberString$
|
|
22408
|
+
var isNumberOrNumberString$3 = function isNumberOrNumberString(value) {
|
|
21198
22409
|
if (typeof value === 'number') return true;
|
|
21199
22410
|
if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
|
|
21200
22411
|
return false;
|
|
21201
22412
|
};
|
|
21202
|
-
function toNum$
|
|
22413
|
+
function toNum$5(value) {
|
|
21203
22414
|
if (typeof value === 'string') {
|
|
21204
22415
|
return value ? +value : void 0;
|
|
21205
22416
|
}
|
|
@@ -21208,44 +22419,44 @@ function toNum$4(value) {
|
|
|
21208
22419
|
}
|
|
21209
22420
|
return void 0;
|
|
21210
22421
|
}
|
|
21211
|
-
var getColumns$
|
|
22422
|
+
var getColumns$9 = function getColumns(_ref) {
|
|
21212
22423
|
var _ref$text = _ref.text,
|
|
21213
22424
|
disabled = _ref.disabled,
|
|
21214
22425
|
updateHandle = _ref.updateHandle,
|
|
21215
22426
|
updateDataHandle = _ref.updateDataHandle;
|
|
21216
22427
|
return {
|
|
21217
22428
|
//巨益商品信息
|
|
21218
|
-
|
|
21219
|
-
dataIndex: '
|
|
21220
|
-
title: "\
|
|
22429
|
+
JKY_GOODS: [{
|
|
22430
|
+
dataIndex: 'goodsNo',
|
|
22431
|
+
title: "\u8D27\u54C1\u7F16\u53F7",
|
|
21221
22432
|
align: 'center',
|
|
21222
22433
|
ellipsis: true,
|
|
21223
22434
|
width: 150,
|
|
21224
22435
|
render: renderTextEllipsis
|
|
21225
22436
|
}, {
|
|
21226
|
-
dataIndex: '
|
|
21227
|
-
title: "\
|
|
22437
|
+
dataIndex: 'goodsName',
|
|
22438
|
+
title: "\u8D27\u54C1\u540D\u79F0",
|
|
21228
22439
|
align: 'center',
|
|
21229
22440
|
ellipsis: true,
|
|
21230
22441
|
width: 150,
|
|
21231
22442
|
render: renderTextEllipsis
|
|
21232
22443
|
}, {
|
|
21233
|
-
dataIndex: '
|
|
21234
|
-
title: "\
|
|
22444
|
+
dataIndex: 'goodsId',
|
|
22445
|
+
title: "\u8D27\u54C1ID",
|
|
21235
22446
|
align: 'center',
|
|
21236
22447
|
ellipsis: true,
|
|
21237
22448
|
width: 150,
|
|
21238
22449
|
render: renderTextEllipsis
|
|
21239
22450
|
}, {
|
|
21240
|
-
dataIndex: '
|
|
21241
|
-
title: "\
|
|
22451
|
+
dataIndex: 'barcode',
|
|
22452
|
+
title: "\u8D27\u54C1\u6761\u7801",
|
|
21242
22453
|
align: 'center',
|
|
21243
22454
|
ellipsis: true,
|
|
21244
22455
|
width: 150,
|
|
21245
22456
|
render: renderTextEllipsis
|
|
21246
22457
|
}, {
|
|
21247
|
-
dataIndex: '
|
|
21248
|
-
title: "\
|
|
22458
|
+
dataIndex: 'specName',
|
|
22459
|
+
title: "\u89C4\u683C\u540D\u79F0",
|
|
21249
22460
|
align: 'center',
|
|
21250
22461
|
ellipsis: true,
|
|
21251
22462
|
width: 150,
|
|
@@ -21257,82 +22468,18 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
21257
22468
|
ellipsis: true,
|
|
21258
22469
|
width: 150,
|
|
21259
22470
|
render: renderTextEllipsis
|
|
21260
|
-
},
|
|
21261
|
-
// {
|
|
21262
|
-
// dataIndex: 'goodsName',
|
|
21263
|
-
// title: `货品名称`,
|
|
21264
|
-
// width: 250,
|
|
21265
|
-
// },
|
|
21266
|
-
// {
|
|
21267
|
-
// dataIndex: 'goodsCode',
|
|
21268
|
-
// title: `货品编号`,
|
|
21269
|
-
// width: 200,
|
|
21270
|
-
// },
|
|
21271
|
-
// {
|
|
21272
|
-
// dataIndex: 'goodsId',
|
|
21273
|
-
// title: `货品ID`,
|
|
21274
|
-
// width: 150,
|
|
21275
|
-
// },
|
|
21276
|
-
{
|
|
21277
|
-
dataIndex: 'goodsClass',
|
|
21278
|
-
title: "\u8D27\u54C1\u7C7B\u522B",
|
|
21279
|
-
width: 150,
|
|
21280
|
-
render: renderTextEllipsis
|
|
21281
|
-
}, {
|
|
21282
|
-
dataIndex: 'code',
|
|
21283
|
-
title: "\u6761\u7801",
|
|
21284
|
-
width: 150,
|
|
21285
|
-
render: renderTextEllipsis
|
|
21286
|
-
},
|
|
21287
|
-
// {
|
|
21288
|
-
// dataIndex: 'specName',
|
|
21289
|
-
// title: `规格名称`,
|
|
21290
|
-
// align: 'center',
|
|
21291
|
-
// ellipsis: true,
|
|
21292
|
-
// width: 200,
|
|
21293
|
-
// },
|
|
21294
|
-
// {
|
|
21295
|
-
// dataIndex: 'specCode',
|
|
21296
|
-
// title: `规格编号`,
|
|
21297
|
-
// align: 'center',
|
|
21298
|
-
// ellipsis: true,
|
|
21299
|
-
// width: 150,
|
|
21300
|
-
// },
|
|
21301
|
-
{
|
|
21302
|
-
dataIndex: 'mallProductName',
|
|
21303
|
-
title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
|
|
21304
|
-
align: 'center',
|
|
21305
|
-
ellipsis: true,
|
|
21306
|
-
width: 250,
|
|
21307
|
-
render: renderTextEllipsis
|
|
21308
22471
|
}, {
|
|
21309
|
-
dataIndex: '
|
|
21310
|
-
title: "\
|
|
22472
|
+
dataIndex: 'skuImgUrl',
|
|
22473
|
+
title: "\u89C4\u683C\u56FE\u7247",
|
|
21311
22474
|
align: 'center',
|
|
21312
22475
|
ellipsis: true,
|
|
21313
22476
|
width: 150,
|
|
21314
|
-
render:
|
|
21315
|
-
|
|
21316
|
-
|
|
21317
|
-
|
|
21318
|
-
|
|
21319
|
-
|
|
21320
|
-
width: 250,
|
|
21321
|
-
render: renderTextEllipsis
|
|
21322
|
-
}, {
|
|
21323
|
-
dataIndex: 'mallSkuName',
|
|
21324
|
-
title: "\u5E73\u53F0\u89C4\u683C\u540D\u79F0",
|
|
21325
|
-
align: 'center',
|
|
21326
|
-
ellipsis: true,
|
|
21327
|
-
width: 250,
|
|
21328
|
-
render: renderTextEllipsis
|
|
21329
|
-
}, {
|
|
21330
|
-
dataIndex: 'mallSkuId',
|
|
21331
|
-
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
21332
|
-
align: 'center',
|
|
21333
|
-
ellipsis: true,
|
|
21334
|
-
width: 250,
|
|
21335
|
-
render: renderTextEllipsis
|
|
22477
|
+
render: function render(val) {
|
|
22478
|
+
return /*#__PURE__*/React.createElement(ApaasImage, {
|
|
22479
|
+
width: 30,
|
|
22480
|
+
src: val
|
|
22481
|
+
});
|
|
22482
|
+
}
|
|
21336
22483
|
}, {
|
|
21337
22484
|
dataIndex: 'sellCount',
|
|
21338
22485
|
title: "\u6570\u91CF",
|
|
@@ -21348,11 +22495,16 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
21348
22495
|
onChange: function onChange(num) {
|
|
21349
22496
|
updateDataHandle({
|
|
21350
22497
|
sellCount: num,
|
|
21351
|
-
sellTotal: num && isNumberOrNumberString$
|
|
22498
|
+
sellTotal: num && isNumberOrNumberString$3(record.sellPrice) ? num * record.sellPrice : null
|
|
21352
22499
|
}, index);
|
|
21353
22500
|
}
|
|
21354
22501
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
21355
22502
|
}
|
|
22503
|
+
}, {
|
|
22504
|
+
dataIndex: 'actualSendCount',
|
|
22505
|
+
title: "\u5B9E\u53D1\u6570\u91CF",
|
|
22506
|
+
width: 150,
|
|
22507
|
+
render: renderTextEllipsis
|
|
21356
22508
|
}, {
|
|
21357
22509
|
dataIndex: 'sellPrice',
|
|
21358
22510
|
title: "\u5355\u4EF7",
|
|
@@ -21368,29 +22520,66 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
21368
22520
|
onChange: function onChange(num) {
|
|
21369
22521
|
updateDataHandle({
|
|
21370
22522
|
sellPrice: num,
|
|
21371
|
-
sellTotal: num && isNumberOrNumberString$
|
|
22523
|
+
sellTotal: num && isNumberOrNumberString$3(record.sellCount) ? num * record.sellCount : null
|
|
21372
22524
|
}, index);
|
|
21373
22525
|
}
|
|
21374
22526
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
21375
22527
|
}
|
|
21376
22528
|
}, {
|
|
21377
|
-
dataIndex: '
|
|
21378
|
-
title: "\
|
|
21379
|
-
width: 150
|
|
21380
|
-
}, {
|
|
21381
|
-
dataIndex: '
|
|
21382
|
-
title: "\u91D1\u989D",
|
|
21383
|
-
width: 150
|
|
21384
|
-
}, {
|
|
21385
|
-
dataIndex: '
|
|
21386
|
-
title: "\
|
|
21387
|
-
width: 150
|
|
21388
|
-
}, {
|
|
21389
|
-
dataIndex: '
|
|
21390
|
-
title: "\u5206\u644A\
|
|
21391
|
-
width: 150
|
|
21392
|
-
}, {
|
|
21393
|
-
dataIndex: '
|
|
22529
|
+
dataIndex: 'sellTotal',
|
|
22530
|
+
title: "\u91D1\u989D",
|
|
22531
|
+
width: 150
|
|
22532
|
+
}, {
|
|
22533
|
+
dataIndex: 'discountTotal',
|
|
22534
|
+
title: "\u62B5\u6263\u91D1\u989D",
|
|
22535
|
+
width: 150
|
|
22536
|
+
}, {
|
|
22537
|
+
dataIndex: 'shareFavourableFee',
|
|
22538
|
+
title: "\u5206\u644A\u91D1\u989D",
|
|
22539
|
+
width: 150
|
|
22540
|
+
}, {
|
|
22541
|
+
dataIndex: 'shareFavourableAfterFee',
|
|
22542
|
+
title: "\u5206\u644A\u540E\u91D1\u989D",
|
|
22543
|
+
width: 150
|
|
22544
|
+
}, {
|
|
22545
|
+
dataIndex: 'customerPrice',
|
|
22546
|
+
title: "\u7EC8\u7AEF\u9500\u552E\u5355\u4EF7",
|
|
22547
|
+
width: 150
|
|
22548
|
+
}, {
|
|
22549
|
+
dataIndex: 'customerTotal',
|
|
22550
|
+
title: "\u7EC8\u7AEF\u9500\u552E\u91D1\u989D",
|
|
22551
|
+
width: 150
|
|
22552
|
+
}, {
|
|
22553
|
+
dataIndex: 'divideSellTotal',
|
|
22554
|
+
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
22555
|
+
width: 150
|
|
22556
|
+
}, {
|
|
22557
|
+
dataIndex: 'isGift',
|
|
22558
|
+
title: "\u662F\u5426\u8D60\u54C1",
|
|
22559
|
+
width: 150,
|
|
22560
|
+
render: function render(val, record, index) {
|
|
22561
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
22562
|
+
dropdownStyle: {
|
|
22563
|
+
zIndex: 2000
|
|
22564
|
+
},
|
|
22565
|
+
getPopupContainer: function getPopupContainer() {
|
|
22566
|
+
return document.body;
|
|
22567
|
+
},
|
|
22568
|
+
value: val,
|
|
22569
|
+
onChange: function onChange(value) {
|
|
22570
|
+
updateHandle(value, index, 'isGift');
|
|
22571
|
+
},
|
|
22572
|
+
options: [{
|
|
22573
|
+
label: '是',
|
|
22574
|
+
value: '1'
|
|
22575
|
+
}, {
|
|
22576
|
+
label: '否',
|
|
22577
|
+
value: '0'
|
|
22578
|
+
}]
|
|
22579
|
+
}) : /*#__PURE__*/React.createElement("span", null, val === '1' ? '是' : '否');
|
|
22580
|
+
}
|
|
22581
|
+
}, {
|
|
22582
|
+
dataIndex: 'isFit',
|
|
21394
22583
|
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
21395
22584
|
width: 150,
|
|
21396
22585
|
render: function render(val, record, index) {
|
|
@@ -21403,30 +22592,20 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
21403
22592
|
},
|
|
21404
22593
|
value: val,
|
|
21405
22594
|
onChange: function onChange(value) {
|
|
21406
|
-
updateHandle(value, index, '
|
|
22595
|
+
updateHandle(value, index, 'isFit');
|
|
21407
22596
|
},
|
|
21408
22597
|
options: [{
|
|
21409
22598
|
label: '是',
|
|
21410
|
-
value: '
|
|
22599
|
+
value: '1'
|
|
21411
22600
|
}, {
|
|
21412
22601
|
label: '否',
|
|
21413
|
-
value: '
|
|
22602
|
+
value: '0'
|
|
21414
22603
|
}]
|
|
21415
|
-
}) : /*#__PURE__*/React.createElement("span", null, val === '
|
|
22604
|
+
}) : /*#__PURE__*/React.createElement("span", null, val === '1' ? '是' : '否');
|
|
21416
22605
|
}
|
|
21417
22606
|
}, {
|
|
21418
|
-
dataIndex: '
|
|
21419
|
-
title: "\
|
|
21420
|
-
width: 150,
|
|
21421
|
-
render: renderTextEllipsis
|
|
21422
|
-
}, {
|
|
21423
|
-
dataIndex: 'combinationCode',
|
|
21424
|
-
title: "\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
|
|
21425
|
-
width: 150,
|
|
21426
|
-
render: renderTextEllipsis
|
|
21427
|
-
}, {
|
|
21428
|
-
dataIndex: 'gift',
|
|
21429
|
-
title: "\u662F\u5426\u8D60\u54C1",
|
|
22607
|
+
dataIndex: 'isPresell',
|
|
22608
|
+
title: "\u662F\u5426\u9884\u552E\u8D27\u54C1",
|
|
21430
22609
|
width: 150,
|
|
21431
22610
|
render: function render(val, record, index) {
|
|
21432
22611
|
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
@@ -21438,7 +22617,7 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
21438
22617
|
},
|
|
21439
22618
|
value: val,
|
|
21440
22619
|
onChange: function onChange(value) {
|
|
21441
|
-
updateHandle(value, index, '
|
|
22620
|
+
updateHandle(value, index, 'isPresell');
|
|
21442
22621
|
},
|
|
21443
22622
|
options: [{
|
|
21444
22623
|
label: '是',
|
|
@@ -21449,115 +22628,169 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
21449
22628
|
}]
|
|
21450
22629
|
}) : /*#__PURE__*/React.createElement("span", null, val === '1' ? '是' : '否');
|
|
21451
22630
|
}
|
|
21452
|
-
}
|
|
21453
|
-
|
|
21454
|
-
|
|
21455
|
-
ellipsis: true
|
|
21456
|
-
});
|
|
21457
|
-
}),
|
|
21458
|
-
// 巨益补发商品信息
|
|
21459
|
-
JY_REISSUE_GOODS: [{
|
|
21460
|
-
dataIndex: 'productName',
|
|
21461
|
-
title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
|
|
22631
|
+
}, {
|
|
22632
|
+
dataIndex: 'brandName',
|
|
22633
|
+
title: "\u54C1\u724C",
|
|
21462
22634
|
align: 'center',
|
|
21463
22635
|
ellipsis: true,
|
|
21464
|
-
width:
|
|
22636
|
+
width: 200,
|
|
21465
22637
|
render: renderTextEllipsis
|
|
21466
22638
|
}, {
|
|
21467
|
-
dataIndex: '
|
|
21468
|
-
title: "\
|
|
22639
|
+
dataIndex: 'cateName',
|
|
22640
|
+
title: "\u8D27\u54C1\u7C7B\u522B",
|
|
21469
22641
|
align: 'center',
|
|
21470
22642
|
ellipsis: true,
|
|
21471
22643
|
width: 150,
|
|
21472
22644
|
render: renderTextEllipsis
|
|
21473
22645
|
}, {
|
|
21474
|
-
dataIndex: '
|
|
21475
|
-
title: "\
|
|
22646
|
+
dataIndex: 'goodsTags',
|
|
22647
|
+
title: "\u8D27\u54C1\u6807\u7B7E",
|
|
21476
22648
|
align: 'center',
|
|
21477
22649
|
ellipsis: true,
|
|
21478
|
-
width:
|
|
22650
|
+
width: 250,
|
|
21479
22651
|
render: renderTextEllipsis
|
|
21480
22652
|
}, {
|
|
21481
|
-
dataIndex: '
|
|
21482
|
-
title: "\
|
|
22653
|
+
dataIndex: 'goodsMemo',
|
|
22654
|
+
title: "\u8D27\u54C1\u5907\u6CE8",
|
|
21483
22655
|
align: 'center',
|
|
21484
22656
|
ellipsis: true,
|
|
21485
|
-
width:
|
|
22657
|
+
width: 250,
|
|
21486
22658
|
render: renderTextEllipsis
|
|
21487
22659
|
}, {
|
|
21488
|
-
dataIndex: '
|
|
21489
|
-
title: "\
|
|
22660
|
+
dataIndex: 'tradeGoodsNo',
|
|
22661
|
+
title: "\u4EA4\u6613\u8D27\u54C1\u7F16\u53F7",
|
|
21490
22662
|
align: 'center',
|
|
21491
22663
|
ellipsis: true,
|
|
21492
|
-
width:
|
|
22664
|
+
width: 250,
|
|
21493
22665
|
render: renderTextEllipsis
|
|
21494
22666
|
}, {
|
|
21495
|
-
dataIndex: '
|
|
21496
|
-
title: "\
|
|
21497
|
-
align: 'center',
|
|
22667
|
+
dataIndex: 'tradeGoodsName',
|
|
22668
|
+
title: "\u4EA4\u6613\u8D27\u54C1\u540D\u79F0",
|
|
21498
22669
|
ellipsis: true,
|
|
21499
|
-
width:
|
|
22670
|
+
width: 250,
|
|
21500
22671
|
render: renderTextEllipsis
|
|
21501
22672
|
}, {
|
|
21502
|
-
dataIndex: '
|
|
21503
|
-
title: "\
|
|
21504
|
-
|
|
22673
|
+
dataIndex: 'tradeGoodsSpec',
|
|
22674
|
+
title: "\u4EA4\u6613\u89C4\u683C\u540D\u79F0",
|
|
22675
|
+
ellipsis: true,
|
|
22676
|
+
width: 250,
|
|
21505
22677
|
render: renderTextEllipsis
|
|
21506
22678
|
}, {
|
|
21507
|
-
dataIndex: '
|
|
21508
|
-
title: "\
|
|
22679
|
+
dataIndex: 'sourceSubtradeNo',
|
|
22680
|
+
title: "\u7F51\u5E97\u5B50\u8BA2\u5355\u53F7",
|
|
22681
|
+
ellipsis: true,
|
|
22682
|
+
width: 250,
|
|
22683
|
+
render: renderTextEllipsis
|
|
22684
|
+
}, {
|
|
22685
|
+
dataIndex: 'platGoodsId',
|
|
22686
|
+
title: "\u5E73\u53F0\u5546\u54C1ID",
|
|
22687
|
+
ellipsis: true,
|
|
22688
|
+
width: 250,
|
|
22689
|
+
render: renderTextEllipsis
|
|
22690
|
+
}, {
|
|
22691
|
+
dataIndex: 'subTradeId',
|
|
22692
|
+
title: "\u5546\u54C1\u660E\u7EC6ID",
|
|
22693
|
+
ellipsis: true,
|
|
22694
|
+
width: 250,
|
|
22695
|
+
render: renderTextEllipsis
|
|
22696
|
+
}, {
|
|
22697
|
+
dataIndex: 'batchNo',
|
|
22698
|
+
title: "\u6279\u6B21\u53F7",
|
|
22699
|
+
ellipsis: true,
|
|
22700
|
+
width: 250,
|
|
22701
|
+
render: renderTextEllipsis
|
|
22702
|
+
}, {
|
|
22703
|
+
dataIndex: 'sendCount',
|
|
22704
|
+
title: "\u6279\u6B21\u6570\u91CF",
|
|
22705
|
+
ellipsis: true,
|
|
22706
|
+
width: 250,
|
|
22707
|
+
render: renderTextEllipsis
|
|
22708
|
+
}, {
|
|
22709
|
+
dataIndex: 'productDate',
|
|
22710
|
+
title: "\u751F\u4EA7\u65E5\u671F",
|
|
22711
|
+
ellipsis: true,
|
|
22712
|
+
width: 250,
|
|
22713
|
+
render: renderTextEllipsis
|
|
22714
|
+
}, {
|
|
22715
|
+
dataIndex: 'expireDate',
|
|
22716
|
+
title: "\u5230\u671F\u65E5\u671F",
|
|
22717
|
+
ellipsis: true,
|
|
22718
|
+
width: 250,
|
|
22719
|
+
render: renderTextEllipsis
|
|
22720
|
+
}].map(function (item) {
|
|
22721
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
22722
|
+
align: 'center',
|
|
22723
|
+
ellipsis: true
|
|
22724
|
+
});
|
|
22725
|
+
}),
|
|
22726
|
+
// 巨益补发商品信息
|
|
22727
|
+
JKY_REISSUE_GOODS: [{
|
|
22728
|
+
dataIndex: 'goodsNo',
|
|
22729
|
+
title: "\u8D27\u54C1\u7F16\u53F7",
|
|
22730
|
+
align: 'center',
|
|
22731
|
+
ellipsis: true,
|
|
21509
22732
|
width: 150,
|
|
21510
22733
|
render: renderTextEllipsis
|
|
21511
22734
|
}, {
|
|
21512
|
-
dataIndex: '
|
|
21513
|
-
title: "\
|
|
22735
|
+
dataIndex: 'goodsName',
|
|
22736
|
+
title: "\u8D27\u54C1\u540D\u79F0",
|
|
21514
22737
|
align: 'center',
|
|
21515
22738
|
ellipsis: true,
|
|
21516
22739
|
width: 150,
|
|
21517
22740
|
render: renderTextEllipsis
|
|
21518
22741
|
}, {
|
|
21519
|
-
dataIndex: '
|
|
21520
|
-
title: "\
|
|
22742
|
+
dataIndex: 'goodsId',
|
|
22743
|
+
title: "\u8D27\u54C1ID",
|
|
21521
22744
|
align: 'center',
|
|
21522
22745
|
ellipsis: true,
|
|
21523
22746
|
width: 150,
|
|
21524
22747
|
render: renderTextEllipsis
|
|
21525
22748
|
}, {
|
|
21526
|
-
dataIndex: '
|
|
21527
|
-
title: "\
|
|
22749
|
+
dataIndex: 'barcode',
|
|
22750
|
+
title: "\u8D27\u54C1\u6761\u7801",
|
|
21528
22751
|
align: 'center',
|
|
21529
22752
|
ellipsis: true,
|
|
21530
22753
|
width: 150,
|
|
21531
22754
|
render: renderTextEllipsis
|
|
21532
22755
|
}, {
|
|
21533
|
-
dataIndex: '
|
|
21534
|
-
title: "\
|
|
22756
|
+
dataIndex: 'specName',
|
|
22757
|
+
title: "\u89C4\u683C\u540D\u79F0",
|
|
21535
22758
|
align: 'center',
|
|
21536
22759
|
ellipsis: true,
|
|
21537
22760
|
width: 150,
|
|
21538
22761
|
render: renderTextEllipsis
|
|
21539
22762
|
}, {
|
|
21540
|
-
dataIndex: '
|
|
21541
|
-
title: "\
|
|
22763
|
+
dataIndex: 'specId',
|
|
22764
|
+
title: "\u89C4\u683CID",
|
|
21542
22765
|
align: 'center',
|
|
21543
22766
|
ellipsis: true,
|
|
21544
22767
|
width: 150,
|
|
21545
22768
|
render: renderTextEllipsis
|
|
22769
|
+
}, {
|
|
22770
|
+
dataIndex: 'skuImgUrl',
|
|
22771
|
+
title: "\u89C4\u683C\u56FE\u7247",
|
|
22772
|
+
width: 150,
|
|
22773
|
+
render: function render(val) {
|
|
22774
|
+
return /*#__PURE__*/React.createElement(ApaasImage, {
|
|
22775
|
+
width: 30,
|
|
22776
|
+
src: val
|
|
22777
|
+
});
|
|
22778
|
+
}
|
|
21546
22779
|
}, {
|
|
21547
22780
|
dataIndex: 'sellCount',
|
|
21548
|
-
title: "\u6570\u91CF",
|
|
22781
|
+
title: "\u53D1\u8D27\u6570\u91CF",
|
|
21549
22782
|
width: 100,
|
|
21550
22783
|
validator: function validator(_rule, value) {
|
|
21551
|
-
var
|
|
21552
|
-
if (((value === null || value === void 0 ? void 0 : value.
|
|
21553
|
-
var qty = toNum$
|
|
22784
|
+
var goodsName = '';
|
|
22785
|
+
if (((value === null || value === void 0 ? void 0 : value.jkyReissueGoods) || []).some(function (goods) {
|
|
22786
|
+
var qty = toNum$5(goods === null || goods === void 0 ? void 0 : goods.sellCount);
|
|
21554
22787
|
var res = typeof qty === 'number' ? qty < 1 : true;
|
|
21555
22788
|
if (res) {
|
|
21556
|
-
|
|
22789
|
+
goodsName = (goods === null || goods === void 0 ? void 0 : goods.goodsName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodsName, "]") : '';
|
|
21557
22790
|
}
|
|
21558
22791
|
return res;
|
|
21559
22792
|
})) {
|
|
21560
|
-
return Promise.reject("".concat(
|
|
22793
|
+
return Promise.reject("".concat(goodsName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
21561
22794
|
}
|
|
21562
22795
|
},
|
|
21563
22796
|
render: function render(val, record, index) {
|
|
@@ -21571,7 +22804,7 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
21571
22804
|
onChange: function onChange(num) {
|
|
21572
22805
|
updateDataHandle({
|
|
21573
22806
|
sellCount: num,
|
|
21574
|
-
sellTotal: num && isNumberOrNumberString$
|
|
22807
|
+
sellTotal: num && isNumberOrNumberString$3(record.sellPrice) ? num * record.sellPrice : null
|
|
21575
22808
|
}, index);
|
|
21576
22809
|
}
|
|
21577
22810
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
@@ -21591,119 +22824,87 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
21591
22824
|
onChange: function onChange(num) {
|
|
21592
22825
|
updateDataHandle({
|
|
21593
22826
|
sellPrice: num,
|
|
21594
|
-
sellTotal: num && isNumberOrNumberString$
|
|
22827
|
+
sellTotal: num && isNumberOrNumberString$3(record.sellCount) ? num * record.sellCount : null
|
|
21595
22828
|
}, index);
|
|
21596
22829
|
}
|
|
21597
22830
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
21598
22831
|
}
|
|
21599
|
-
}, {
|
|
21600
|
-
dataIndex: 'mallSellingPrice',
|
|
21601
|
-
title: "\u5E73\u53F0\u5546\u54C1\u4EF7\u683C",
|
|
21602
|
-
width: 150
|
|
21603
22832
|
}, {
|
|
21604
22833
|
dataIndex: 'sellTotal',
|
|
21605
|
-
title: "\u91D1\u989D",
|
|
21606
|
-
width: 150
|
|
22834
|
+
title: "\u603B\u91D1\u989D",
|
|
22835
|
+
width: 150,
|
|
22836
|
+
render: function render(val, record, index) {
|
|
22837
|
+
return record.sellCount * record.sellPrice;
|
|
22838
|
+
}
|
|
21607
22839
|
}, {
|
|
21608
|
-
dataIndex: '
|
|
21609
|
-
title: "\
|
|
22840
|
+
dataIndex: 'reason',
|
|
22841
|
+
title: "\u9000\u6362\u539F\u56E0",
|
|
22842
|
+
width: 250,
|
|
22843
|
+
render: function render(val, record, index) {
|
|
22844
|
+
return /*#__PURE__*/React.createElement(ApaasInput, {
|
|
22845
|
+
onChange: function onChange(value) {
|
|
22846
|
+
updateHandle(value, index, 'reason');
|
|
22847
|
+
}
|
|
22848
|
+
});
|
|
22849
|
+
}
|
|
22850
|
+
}, {
|
|
22851
|
+
dataIndex: 'isGift',
|
|
22852
|
+
title: "\u662F\u5426\u8D60\u54C1",
|
|
21610
22853
|
width: 150,
|
|
21611
22854
|
render: function render(val, record, index) {
|
|
21612
22855
|
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
21613
22856
|
value: val,
|
|
21614
22857
|
onChange: function onChange(value) {
|
|
21615
|
-
updateHandle(value, index, '
|
|
22858
|
+
updateHandle(value, index, 'isGift');
|
|
21616
22859
|
},
|
|
21617
22860
|
options: [{
|
|
21618
22861
|
label: '是',
|
|
21619
|
-
value: '
|
|
22862
|
+
value: '1'
|
|
21620
22863
|
}, {
|
|
21621
22864
|
label: '否',
|
|
21622
|
-
value: '
|
|
22865
|
+
value: '0'
|
|
21623
22866
|
}]
|
|
21624
|
-
}) : /*#__PURE__*/React.createElement("span", null, val === '
|
|
22867
|
+
}) : /*#__PURE__*/React.createElement("span", null, val === '1' ? '是' : '否');
|
|
21625
22868
|
}
|
|
21626
22869
|
}, {
|
|
21627
|
-
dataIndex: '
|
|
21628
|
-
title: "\u7EC4\u5408\
|
|
21629
|
-
width: 150,
|
|
21630
|
-
render: renderTextEllipsis
|
|
21631
|
-
}, {
|
|
21632
|
-
dataIndex: 'combinationCode',
|
|
21633
|
-
title: "\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
|
|
21634
|
-
width: 150,
|
|
21635
|
-
render: renderTextEllipsis
|
|
21636
|
-
}, {
|
|
21637
|
-
dataIndex: 'gift',
|
|
21638
|
-
title: "\u662F\u5426\u8D60\u54C1",
|
|
22870
|
+
dataIndex: 'isFit',
|
|
22871
|
+
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
21639
22872
|
width: 150,
|
|
21640
22873
|
render: function render(val, record, index) {
|
|
21641
22874
|
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
21642
22875
|
value: val,
|
|
21643
22876
|
onChange: function onChange(value) {
|
|
21644
|
-
updateHandle(value, index, '
|
|
22877
|
+
updateHandle(value, index, 'isFit');
|
|
21645
22878
|
},
|
|
21646
22879
|
options: [{
|
|
21647
22880
|
label: '是',
|
|
21648
|
-
value: '
|
|
22881
|
+
value: 'True'
|
|
21649
22882
|
}, {
|
|
21650
22883
|
label: '否',
|
|
21651
|
-
value: '
|
|
22884
|
+
value: 'False'
|
|
21652
22885
|
}]
|
|
21653
|
-
}) : /*#__PURE__*/React.createElement("span", null, val === '
|
|
22886
|
+
}) : /*#__PURE__*/React.createElement("span", null, val === 'True' ? '是' : '否');
|
|
21654
22887
|
}
|
|
21655
|
-
}].map(function (item) {
|
|
21656
|
-
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
21657
|
-
align: 'center',
|
|
21658
|
-
ellipsis: true
|
|
21659
|
-
});
|
|
21660
|
-
})
|
|
21661
|
-
};
|
|
21662
|
-
};
|
|
21663
|
-
|
|
21664
|
-
var getColumns$8 = function getColumns(_ref) {
|
|
21665
|
-
var _ref$text = _ref.text,
|
|
21666
|
-
disabled = _ref.disabled,
|
|
21667
|
-
updateHandle = _ref.updateHandle,
|
|
21668
|
-
updateDataHandle = _ref.updateDataHandle;
|
|
21669
|
-
return {
|
|
21670
|
-
//[SKX]商品信息(ON)
|
|
21671
|
-
SKX_GOODS: [{
|
|
21672
|
-
dataIndex: 'skuEcode',
|
|
21673
|
-
title: "[SKX]\u53D1\u8D27\u5355\u660E\u7EC6-skuEcode",
|
|
21674
|
-
width: 250
|
|
21675
22888
|
}, {
|
|
21676
|
-
dataIndex: '
|
|
21677
|
-
title: "
|
|
21678
|
-
width:
|
|
21679
|
-
|
|
21680
|
-
dataIndex: 'onBillNo',
|
|
21681
|
-
title: "[SKX]ON\u51FA\u5E93\u901A\u77E5\u5355\u53F7",
|
|
21682
|
-
width: 200
|
|
21683
|
-
}].map(function (item) {
|
|
21684
|
-
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
21685
|
-
align: 'center',
|
|
21686
|
-
ellipsis: true
|
|
21687
|
-
});
|
|
21688
|
-
}),
|
|
21689
|
-
//[SKX]退货商品信息(TH)
|
|
21690
|
-
SKX_RETURN_GOODS: [{
|
|
21691
|
-
dataIndex: 'returnSkuEcode',
|
|
21692
|
-
title: "[SKX]\u9000\u8D27\u5355\u660E\u7EC6-returnSkuEcode",
|
|
21693
|
-
width: 300
|
|
21694
|
-
}, {
|
|
21695
|
-
dataIndex: 'returnSubOrderId',
|
|
21696
|
-
title: "[SKX]\u9000\u8D27\u5355-\u5B50\u8BA2\u5355\u53F7",
|
|
21697
|
-
width: 300
|
|
22889
|
+
dataIndex: 'brandName',
|
|
22890
|
+
title: "\u54C1\u724C",
|
|
22891
|
+
width: 150,
|
|
22892
|
+
render: renderTextEllipsis
|
|
21698
22893
|
}, {
|
|
21699
|
-
dataIndex: '
|
|
21700
|
-
title: "
|
|
21701
|
-
width:
|
|
21702
|
-
|
|
22894
|
+
dataIndex: 'cateName',
|
|
22895
|
+
title: "\u8D27\u54C1\u7C7B\u522B",
|
|
22896
|
+
width: 150,
|
|
22897
|
+
render: renderTextEllipsis
|
|
22898
|
+
}].map(function (item) {
|
|
22899
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
22900
|
+
align: 'center',
|
|
22901
|
+
ellipsis: true
|
|
22902
|
+
});
|
|
22903
|
+
})
|
|
21703
22904
|
};
|
|
21704
22905
|
};
|
|
21705
22906
|
|
|
21706
|
-
var getColumns$
|
|
22907
|
+
var getColumns$a = function getColumns(_ref) {
|
|
21707
22908
|
var _ref$text = _ref.text,
|
|
21708
22909
|
text = _ref$text === void 0 ? '' : _ref$text,
|
|
21709
22910
|
disabled = _ref.disabled,
|
|
@@ -21820,7 +23021,7 @@ var getColumnsMap$1 = function getColumnsMap(args) {
|
|
|
21820
23021
|
disabled = _ref.disabled,
|
|
21821
23022
|
updateHandle = _ref.updateHandle,
|
|
21822
23023
|
updateDataHandle = _ref.updateDataHandle;
|
|
21823
|
-
return _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, getColumns$1({
|
|
23024
|
+
return _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, getColumns$1({
|
|
21824
23025
|
text: text,
|
|
21825
23026
|
disabled: disabled,
|
|
21826
23027
|
updateHandle: updateHandle
|
|
@@ -21858,8 +23059,13 @@ var getColumnsMap$1 = function getColumnsMap(args) {
|
|
|
21858
23059
|
text: text,
|
|
21859
23060
|
disabled: disabled,
|
|
21860
23061
|
updateHandle: updateHandle
|
|
23062
|
+
})), getColumns$9({
|
|
23063
|
+
text: text,
|
|
23064
|
+
disabled: disabled,
|
|
23065
|
+
updateHandle: updateHandle,
|
|
23066
|
+
updateDataHandle: updateDataHandle
|
|
21861
23067
|
})), {}, {
|
|
21862
|
-
default: getColumns$
|
|
23068
|
+
default: getColumns$a({
|
|
21863
23069
|
text: text,
|
|
21864
23070
|
disabled: disabled,
|
|
21865
23071
|
updateHandle: updateHandle
|
|
@@ -22006,6 +23212,9 @@ var isErpType = {
|
|
|
22006
23212
|
},
|
|
22007
23213
|
isJy: function isJy(type) {
|
|
22008
23214
|
return ['JY_GOODS', 'JY_REISSUE_GOODS'].includes(type);
|
|
23215
|
+
},
|
|
23216
|
+
isJky: function isJky(type) {
|
|
23217
|
+
return ['JKY_GOODS', 'JKY_REISSUE_GOODS'].includes(type);
|
|
22009
23218
|
}
|
|
22010
23219
|
};
|
|
22011
23220
|
var processGoods$1 = function processGoods(_ref) {
|
|
@@ -22292,6 +23501,8 @@ var GoodsModalMap = {
|
|
|
22292
23501
|
KM_REISSUE_GOODS: KmGoodsModal,
|
|
22293
23502
|
JY_GOODS: JyGoodsModal$1,
|
|
22294
23503
|
JY_REISSUE_GOODS: JyGoodsModal$1,
|
|
23504
|
+
JKY_GOODS: JkyGoodsModal$1,
|
|
23505
|
+
JKY_REISSUE_GOODS: JkyGoodsModal$1,
|
|
22295
23506
|
OTHER_GOODS: GoodsModal$2
|
|
22296
23507
|
};
|
|
22297
23508
|
var systemOrderNoMap = {
|
|
@@ -22304,6 +23515,8 @@ var systemOrderNoMap = {
|
|
|
22304
23515
|
WLN_GOODS: 'tradeNo',
|
|
22305
23516
|
JY_GOODS: 'tradeNo',
|
|
22306
23517
|
JY_REISSUE_GOODS: 'tradeNo',
|
|
23518
|
+
JKY_GOODS: 'tradeNo',
|
|
23519
|
+
JKY_REISSUE_GOODS: 'tradeNo',
|
|
22307
23520
|
KM_REISSUE_GOODS: 'sid',
|
|
22308
23521
|
JST_REISSUE_GOODS: 'oId',
|
|
22309
23522
|
GY_REISSUE_GOODS: 'code',
|
|
@@ -22339,23 +23552,81 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
22339
23552
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
22340
23553
|
tradeGoodsVisible = _useState4[0],
|
|
22341
23554
|
setTradeGoodsVisible = _useState4[1];
|
|
22342
|
-
var
|
|
22343
|
-
|
|
22344
|
-
|
|
22345
|
-
|
|
22346
|
-
|
|
22347
|
-
|
|
22348
|
-
|
|
22349
|
-
|
|
22350
|
-
|
|
22351
|
-
|
|
22352
|
-
|
|
22353
|
-
|
|
22354
|
-
|
|
22355
|
-
|
|
22356
|
-
|
|
22357
|
-
|
|
22358
|
-
|
|
23555
|
+
var getKmSupplier = /*#__PURE__*/function () {
|
|
23556
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(dataSource) {
|
|
23557
|
+
var _dataSource$filter;
|
|
23558
|
+
var systemItemIds, supplierMap;
|
|
23559
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
23560
|
+
while (1) switch (_context.prev = _context.next) {
|
|
23561
|
+
case 0:
|
|
23562
|
+
systemItemIds = dataSource === null || dataSource === void 0 ? void 0 : dataSource.filter(function (item) {
|
|
23563
|
+
return item === null || item === void 0 ? void 0 : item.sysItemId;
|
|
23564
|
+
}).map(function (item) {
|
|
23565
|
+
return (item === null || item === void 0 ? void 0 : item.sysSkuId) == '-1' ? item === null || item === void 0 ? void 0 : item.sysItemId : "".concat(item === null || item === void 0 ? void 0 : item.sysItemId, "-").concat(item === null || item === void 0 ? void 0 : item.sysSkuId);
|
|
23566
|
+
});
|
|
23567
|
+
_context.next = 3;
|
|
23568
|
+
return servers.KM.getSupplierSingleton(systemItemIds);
|
|
23569
|
+
case 3:
|
|
23570
|
+
supplierMap = _context.sent;
|
|
23571
|
+
dataSource === null || dataSource === void 0 ? void 0 : (_dataSource$filter = dataSource.filter(function (item) {
|
|
23572
|
+
return item === null || item === void 0 ? void 0 : item.sysItemId;
|
|
23573
|
+
})) === null || _dataSource$filter === void 0 ? void 0 : _dataSource$filter.forEach(function (item) {
|
|
23574
|
+
var key = (item === null || item === void 0 ? void 0 : item.sysSkuId) == '-1' ? item === null || item === void 0 ? void 0 : item.sysItemId : "".concat(item === null || item === void 0 ? void 0 : item.sysItemId, "-").concat(item === null || item === void 0 ? void 0 : item.sysSkuId);
|
|
23575
|
+
var supplierInfo = supplierMap.get(key);
|
|
23576
|
+
item.supplierCode = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierCode;
|
|
23577
|
+
item.supplierName = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierName;
|
|
23578
|
+
});
|
|
23579
|
+
case 5:
|
|
23580
|
+
case "end":
|
|
23581
|
+
return _context.stop();
|
|
23582
|
+
}
|
|
23583
|
+
}, _callee);
|
|
23584
|
+
}));
|
|
23585
|
+
return function getKmSupplier(_x) {
|
|
23586
|
+
return _ref2.apply(this, arguments);
|
|
23587
|
+
};
|
|
23588
|
+
}();
|
|
23589
|
+
var openModal = /*#__PURE__*/function () {
|
|
23590
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
23591
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
23592
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
23593
|
+
case 0:
|
|
23594
|
+
if (!validSystemOrder) {
|
|
23595
|
+
_context2.next = 3;
|
|
23596
|
+
break;
|
|
23597
|
+
}
|
|
23598
|
+
message.warning('请选择补发系统单');
|
|
23599
|
+
return _context2.abrupt("return");
|
|
23600
|
+
case 3:
|
|
23601
|
+
if (!(getDataSourceAsync && !(dataSource === null || dataSource === void 0 ? void 0 : dataSource.length))) {
|
|
23602
|
+
_context2.next = 6;
|
|
23603
|
+
break;
|
|
23604
|
+
}
|
|
23605
|
+
_context2.next = 6;
|
|
23606
|
+
return getDataSourceAsync();
|
|
23607
|
+
case 6:
|
|
23608
|
+
if (!['KM_GOODS', 'KM_REISSUE_GOODS'].includes(type)) {
|
|
23609
|
+
_context2.next = 9;
|
|
23610
|
+
break;
|
|
23611
|
+
}
|
|
23612
|
+
_context2.next = 9;
|
|
23613
|
+
return getKmSupplier(dataSource);
|
|
23614
|
+
case 9:
|
|
23615
|
+
setTradeGoodsVisible(true);
|
|
23616
|
+
// 补发直接传入的是systemNo
|
|
23617
|
+
if (isShowSelect && isReissueType) {
|
|
23618
|
+
setSelectSystemNo(selectedSystemOrders || []);
|
|
23619
|
+
}
|
|
23620
|
+
case 11:
|
|
23621
|
+
case "end":
|
|
23622
|
+
return _context2.stop();
|
|
23623
|
+
}
|
|
23624
|
+
}, _callee2);
|
|
23625
|
+
}));
|
|
23626
|
+
return function openModal() {
|
|
23627
|
+
return _ref3.apply(this, arguments);
|
|
23628
|
+
};
|
|
23629
|
+
}();
|
|
22359
23630
|
var closeModal = function closeModal() {
|
|
22360
23631
|
return setTradeGoodsVisible(false);
|
|
22361
23632
|
};
|
|
@@ -22424,7 +23695,7 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
22424
23695
|
}
|
|
22425
23696
|
}, isShowSelect && /*#__PURE__*/React.createElement(Row, {
|
|
22426
23697
|
style: {
|
|
22427
|
-
marginBottom: '
|
|
23698
|
+
marginBottom: '12px'
|
|
22428
23699
|
}
|
|
22429
23700
|
}, /*#__PURE__*/React.createElement(Col, {
|
|
22430
23701
|
span: 12
|
|
@@ -22478,6 +23749,9 @@ var getButtonText = function getButtonText() {
|
|
|
22478
23749
|
if (['JY_GOODS', 'JY_REISSUE_GOODS'].includes(type)) {
|
|
22479
23750
|
return '选择巨益ERP商品';
|
|
22480
23751
|
}
|
|
23752
|
+
if (['JKY_GOODS', 'JKY_REISSUE_GOODS'].includes(type)) {
|
|
23753
|
+
return '选择吉客云ERP商品';
|
|
23754
|
+
}
|
|
22481
23755
|
return '选择商品';
|
|
22482
23756
|
};
|
|
22483
23757
|
var GoodItem$1 = function GoodItem(props) {
|
|
@@ -22535,7 +23809,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
22535
23809
|
var jstReturnGoods = Form === null || Form === void 0 ? void 0 : Form.useWatch('3979edfd6d', form);
|
|
22536
23810
|
var isShowSelectTradeGoods = type !== 'JST_EXCHANGE_GOODS' || (jstReturnGoods === null || jstReturnGoods === void 0 ? void 0 : jstReturnGoods.jstSystemOrderNo);
|
|
22537
23811
|
// 判断是否为是否展示系统单筛选项
|
|
22538
|
-
var isShowSelect = type && ['WDT_GOODS', 'BS_E3_GOODS', 'GY_GOODS', 'JST_GOODS', 'WLN_GOODS', 'KM_GOODS', 'JY_GOODS', 'JY_REISSUE_GOODS', 'GY_REISSUE_GOODS', 'KM_REISSUE_GOODS', 'BS_E3_REISSUE_GOODS', 'WDT_REISSUE_GOODS', 'JST_REISSUE_GOODS'].includes(type) || false;
|
|
23812
|
+
var isShowSelect = type && ['WDT_GOODS', 'BS_E3_GOODS', 'GY_GOODS', 'JST_GOODS', 'WLN_GOODS', 'KM_GOODS', 'JY_GOODS', 'JY_REISSUE_GOODS', 'JKY_GOODS', 'JKY_REISSUE_GOODS', 'GY_REISSUE_GOODS', 'KM_REISSUE_GOODS', 'BS_E3_REISSUE_GOODS', 'WDT_REISSUE_GOODS', 'JST_REISSUE_GOODS'].includes(type) || false;
|
|
22539
23813
|
var isReissueType = type && ['GY_REISSUE_GOODS', 'KM_REISSUE_GOODS', 'BS_E3_REISSUE_GOODS', 'WDT_REISSUE_GOODS', 'JST_REISSUE_GOODS', 'JY_REISSUE_GOODS'].includes(type) || false;
|
|
22540
23814
|
var refModal = useRef();
|
|
22541
23815
|
console.debug('表格数据', value);
|
|
@@ -22627,6 +23901,8 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
22627
23901
|
case 'KM_REISSUE_GOODS':
|
|
22628
23902
|
case 'JY_GOODS':
|
|
22629
23903
|
case 'JY_REISSUE_GOODS':
|
|
23904
|
+
case 'JKY_GOODS':
|
|
23905
|
+
case 'JKY_REISSUE_GOODS':
|
|
22630
23906
|
case 'SKX_GOODS':
|
|
22631
23907
|
case 'SKX_RETURN_GOODS':
|
|
22632
23908
|
{
|
|
@@ -22674,9 +23950,9 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
22674
23950
|
var COLUMNS_INFO = COLUMNS_MAP(text);
|
|
22675
23951
|
return COLUMNS_INFO(type);
|
|
22676
23952
|
};
|
|
22677
|
-
var getShowFilterColumns = useCallback(function (
|
|
22678
|
-
var showHeader =
|
|
22679
|
-
initBaseInfoColumns =
|
|
23953
|
+
var getShowFilterColumns = useCallback(function (_ref4) {
|
|
23954
|
+
var showHeader = _ref4.showHeader,
|
|
23955
|
+
initBaseInfoColumns = _ref4.initBaseInfoColumns;
|
|
22680
23956
|
var baseInfoColumns = [];
|
|
22681
23957
|
var isStringArray = Array.isArray(showHeader) && typeof showHeader[0] === 'string';
|
|
22682
23958
|
var isObjectArray = Array.isArray(showHeader) && Object.prototype.toString.call(showHeader[0]) === '[object Object]';
|
|
@@ -23831,7 +25107,7 @@ var jyUtils = {
|
|
|
23831
25107
|
};
|
|
23832
25108
|
|
|
23833
25109
|
var singletonMap$7 = new Map();
|
|
23834
|
-
var
|
|
25110
|
+
var getJkyOrderListSingleton = function getJkyOrderListSingleton(orderNo) {
|
|
23835
25111
|
if (!singletonMap$7.has(orderNo)) {
|
|
23836
25112
|
var p = new Promise(function (resolve, reject) {
|
|
23837
25113
|
var doReject = function doReject(err) {
|
|
@@ -23839,6 +25115,50 @@ var getOrderListSingleton$2 = function getOrderListSingleton(orderNo) {
|
|
|
23839
25115
|
singletonMap$7.delete(orderNo);
|
|
23840
25116
|
reject(err);
|
|
23841
25117
|
};
|
|
25118
|
+
extendRequest('/qy/gdfw/order/jkyOrderDetail', {
|
|
25119
|
+
method: 'post',
|
|
25120
|
+
data: {
|
|
25121
|
+
billNo: orderNo
|
|
25122
|
+
}
|
|
25123
|
+
}).then(function (res) {
|
|
25124
|
+
if (res === null || res === void 0 ? void 0 : res.success) {
|
|
25125
|
+
var _res$data, _res$data$tradeOrderD, _res$data3;
|
|
25126
|
+
if (res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : (_res$data$tradeOrderD = _res$data.tradeOrderDetails) === null || _res$data$tradeOrderD === void 0 ? void 0 : _res$data$tradeOrderD.length) {
|
|
25127
|
+
var _filterJkyOrders, _res$data2;
|
|
25128
|
+
res.data.trades = (_filterJkyOrders = filterJkyOrders(res === null || res === void 0 ? void 0 : (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.tradeOrderDetails, orderNo)) === null || _filterJkyOrders === void 0 ? void 0 : _filterJkyOrders.map(function (item) {
|
|
25129
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
25130
|
+
tradeType: JKY_ORDER_TYPE_MAP[item.tradeType],
|
|
25131
|
+
tradeStatus: JKY_ORDER_STATUS_MAP[item.tradeStatus]
|
|
25132
|
+
});
|
|
25133
|
+
});
|
|
25134
|
+
}
|
|
25135
|
+
resolve(((_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.trades) || []);
|
|
25136
|
+
// 延迟10秒清除,保证订单的时效性
|
|
25137
|
+
setTimeout(function () {
|
|
25138
|
+
singletonMap$7.delete(orderNo);
|
|
25139
|
+
}, 1000 * 10);
|
|
25140
|
+
} else {
|
|
25141
|
+
doReject(res);
|
|
25142
|
+
}
|
|
25143
|
+
}).catch(doReject);
|
|
25144
|
+
});
|
|
25145
|
+
singletonMap$7.set(orderNo, p);
|
|
25146
|
+
}
|
|
25147
|
+
return singletonMap$7.get(orderNo);
|
|
25148
|
+
};
|
|
25149
|
+
var jkyUtils = {
|
|
25150
|
+
getJkyOrderListSingleton: getJkyOrderListSingleton
|
|
25151
|
+
};
|
|
25152
|
+
|
|
25153
|
+
var singletonMap$8 = new Map();
|
|
25154
|
+
var getOrderListSingleton$2 = function getOrderListSingleton(orderNo) {
|
|
25155
|
+
if (!singletonMap$8.has(orderNo)) {
|
|
25156
|
+
var p = new Promise(function (resolve, reject) {
|
|
25157
|
+
var doReject = function doReject(err) {
|
|
25158
|
+
// 清空掉错误的请求记录
|
|
25159
|
+
singletonMap$8.delete(orderNo);
|
|
25160
|
+
reject(err);
|
|
25161
|
+
};
|
|
23842
25162
|
extendRequest('/qy/gdfw/order/kmErpOrderDetail', {
|
|
23843
25163
|
method: 'post',
|
|
23844
25164
|
data: {
|
|
@@ -23862,16 +25182,16 @@ var getOrderListSingleton$2 = function getOrderListSingleton(orderNo) {
|
|
|
23862
25182
|
}
|
|
23863
25183
|
// 延迟10秒清除,保证订单的时效性
|
|
23864
25184
|
setTimeout(function () {
|
|
23865
|
-
singletonMap$
|
|
25185
|
+
singletonMap$8.delete(orderNo);
|
|
23866
25186
|
}, 1000 * 10);
|
|
23867
25187
|
} else {
|
|
23868
25188
|
doReject(data);
|
|
23869
25189
|
}
|
|
23870
25190
|
}).catch(doReject);
|
|
23871
25191
|
});
|
|
23872
|
-
singletonMap$
|
|
25192
|
+
singletonMap$8.set(orderNo, p);
|
|
23873
25193
|
}
|
|
23874
|
-
return singletonMap$
|
|
25194
|
+
return singletonMap$8.get(orderNo);
|
|
23875
25195
|
};
|
|
23876
25196
|
var kmUtils = {
|
|
23877
25197
|
getOrderListSingleton: getOrderListSingleton$2
|
|
@@ -23888,6 +25208,7 @@ var columnsMap = {
|
|
|
23888
25208
|
GY_SYSTEM_ORDER: GY_SYSTEM_ORDER_CONFIG.columns,
|
|
23889
25209
|
JST_SYSTEM_ORDER: JST_SYSTEM_ORDER_CONFIG.columns,
|
|
23890
25210
|
JY_SYSTEM_ORDER: JY_SYSTEM_ORDER_CONFIG.columns,
|
|
25211
|
+
JKY_SYSTEM_ORDER: JKY_SYSTEM_ORDER_CONFIG.columns,
|
|
23891
25212
|
WDT_RETURN_BILL_NO: WDT_RETURN_BILL_NO_CONFIG.columns
|
|
23892
25213
|
};
|
|
23893
25214
|
var rowKeyMap = {
|
|
@@ -23899,6 +25220,7 @@ var rowKeyMap = {
|
|
|
23899
25220
|
GY_SYSTEM_ORDER: 'billNo',
|
|
23900
25221
|
JST_SYSTEM_ORDER: 'oId',
|
|
23901
25222
|
JY_SYSTEM_ORDER: 'tradeNo',
|
|
25223
|
+
JKY_SYSTEM_ORDER: 'tradeNo',
|
|
23902
25224
|
WDT_RETURN_BILL_NO: 'refundNo'
|
|
23903
25225
|
};
|
|
23904
25226
|
var index$2 = (function (props) {
|
|
@@ -23913,7 +25235,6 @@ var index$2 = (function (props) {
|
|
|
23913
25235
|
useEffect(function () {
|
|
23914
25236
|
var _value$orders, _value$showOrderInfo;
|
|
23915
25237
|
valueRef.current = value;
|
|
23916
|
-
console.log('value77777777', value);
|
|
23917
25238
|
if (!(value === null || value === void 0 ? void 0 : (_value$orders = value.orders) === null || _value$orders === void 0 ? void 0 : _value$orders.length) && (value === null || value === void 0 ? void 0 : value.orderNo) && (value === null || value === void 0 ? void 0 : (_value$showOrderInfo = value.showOrderInfo) === null || _value$showOrderInfo === void 0 ? void 0 : _value$showOrderInfo.length) && !onceRef.current) {
|
|
23918
25239
|
onceRef.current = true;
|
|
23919
25240
|
if (type === 'BS_SYSTEM_ORDER') {
|
|
@@ -23932,6 +25253,8 @@ var index$2 = (function (props) {
|
|
|
23932
25253
|
getJstOrderList(value.orderNo);
|
|
23933
25254
|
} else if (type === 'JY_SYSTEM_ORDER') {
|
|
23934
25255
|
getJyOrderList(value.orderNo);
|
|
25256
|
+
} else if (type === 'JKY_SYSTEM_ORDER') {
|
|
25257
|
+
getJkyOrderList(value.orderNo);
|
|
23935
25258
|
}
|
|
23936
25259
|
}
|
|
23937
25260
|
}, [value, type]);
|
|
@@ -24196,6 +25519,31 @@ var index$2 = (function (props) {
|
|
|
24196
25519
|
return _ref10.apply(this, arguments);
|
|
24197
25520
|
};
|
|
24198
25521
|
}();
|
|
25522
|
+
var getJkyOrderList = /*#__PURE__*/function () {
|
|
25523
|
+
var _ref12 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(orderNo) {
|
|
25524
|
+
return _regeneratorRuntime().wrap(function _callee9$(_context9) {
|
|
25525
|
+
while (1) switch (_context9.prev = _context9.next) {
|
|
25526
|
+
case 0:
|
|
25527
|
+
jkyUtils.getJkyOrderListSingleton(orderNo).then(function (data) {
|
|
25528
|
+
var trades = ((data === null || data === void 0 ? void 0 : data.trades) || []).filter(function (item) {
|
|
25529
|
+
return getIsPlatformCodesIncludeOrderNos(item.platformCode, orderNo);
|
|
25530
|
+
});
|
|
25531
|
+
_onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, {
|
|
25532
|
+
orders: trades,
|
|
25533
|
+
showOrderInfo: trades
|
|
25534
|
+
}));
|
|
25535
|
+
});
|
|
25536
|
+
onceRef.current = false;
|
|
25537
|
+
case 2:
|
|
25538
|
+
case "end":
|
|
25539
|
+
return _context9.stop();
|
|
25540
|
+
}
|
|
25541
|
+
}, _callee9);
|
|
25542
|
+
}));
|
|
25543
|
+
return function getJkyOrderList(_x9) {
|
|
25544
|
+
return _ref12.apply(this, arguments);
|
|
25545
|
+
};
|
|
25546
|
+
}();
|
|
24199
25547
|
var rowSelection = {
|
|
24200
25548
|
selectedRowKeys: (value === null || value === void 0 ? void 0 : value.selectIds) || [],
|
|
24201
25549
|
fixed: true,
|
|
@@ -24620,16 +25968,16 @@ var orderSubFormConstants = {
|
|
|
24620
25968
|
};
|
|
24621
25969
|
|
|
24622
25970
|
var getSelectWidgetMap$1 = orderSubFormConstants.getSelectWidgetMap;
|
|
24623
|
-
var singletonMap$
|
|
25971
|
+
var singletonMap$9 = new Map();
|
|
24624
25972
|
var getOrderListSingleton$3 = function getOrderListSingleton(parmas) {
|
|
24625
25973
|
var orderNo = parmas.orderNo,
|
|
24626
25974
|
shopId = parmas.shopId;
|
|
24627
25975
|
var key = "".concat(orderNo, "-").concat(shopId);
|
|
24628
|
-
if (!singletonMap$
|
|
25976
|
+
if (!singletonMap$9.has(key)) {
|
|
24629
25977
|
var p = new Promise(function (resolve, reject) {
|
|
24630
25978
|
var doReject = function doReject(err) {
|
|
24631
25979
|
// 清空掉错误的请求记录
|
|
24632
|
-
singletonMap$
|
|
25980
|
+
singletonMap$9.delete(key);
|
|
24633
25981
|
reject(err);
|
|
24634
25982
|
};
|
|
24635
25983
|
extendRequest('/qy/gdfw/order/subOrderItemsDetail', {
|
|
@@ -24645,16 +25993,16 @@ var getOrderListSingleton$3 = function getOrderListSingleton(parmas) {
|
|
|
24645
25993
|
}
|
|
24646
25994
|
// 延迟10秒清除,保证订单的时效性
|
|
24647
25995
|
setTimeout(function () {
|
|
24648
|
-
singletonMap$
|
|
25996
|
+
singletonMap$9.delete(key);
|
|
24649
25997
|
}, 1000 * 10);
|
|
24650
25998
|
} else {
|
|
24651
25999
|
doReject(data);
|
|
24652
26000
|
}
|
|
24653
26001
|
}).catch(doReject);
|
|
24654
26002
|
});
|
|
24655
|
-
singletonMap$
|
|
26003
|
+
singletonMap$9.set(key, p);
|
|
24656
26004
|
}
|
|
24657
|
-
return singletonMap$
|
|
26005
|
+
return singletonMap$9.get(key);
|
|
24658
26006
|
};
|
|
24659
26007
|
var renderEditItem = function renderEditItem(_ref) {
|
|
24660
26008
|
var item = _ref.item,
|
|
@@ -25087,6 +26435,9 @@ var isErpType$1 = {
|
|
|
25087
26435
|
},
|
|
25088
26436
|
isJy: function isJy(type) {
|
|
25089
26437
|
return ['JY_GOODS'].includes(type);
|
|
26438
|
+
},
|
|
26439
|
+
isJky: function isJky(type) {
|
|
26440
|
+
return ['JKY_GOODS'].includes(type);
|
|
25090
26441
|
}
|
|
25091
26442
|
};
|
|
25092
26443
|
var processAllOrders = function processAllOrders(_ref) {
|
|
@@ -25387,6 +26738,32 @@ var componentMap$2 = {
|
|
|
25387
26738
|
},
|
|
25388
26739
|
getOrderList: jyUtils.getJyOrderListSingleton
|
|
25389
26740
|
},
|
|
26741
|
+
JKY_GOODS: {
|
|
26742
|
+
type: 'jky',
|
|
26743
|
+
key: 'jkyGoods',
|
|
26744
|
+
name: '吉客云',
|
|
26745
|
+
orderNo: 'tradeNo',
|
|
26746
|
+
goodDetailOrderNo: 'tradeNo',
|
|
26747
|
+
eventNameMap: {
|
|
26748
|
+
// pubsub 事件
|
|
26749
|
+
type: 'jkyType',
|
|
26750
|
+
updateGoodsHandle: updateJkyGoodsHandle,
|
|
26751
|
+
selectListReturn: 'jkySelectListReturn',
|
|
26752
|
+
selectList: 'jkySelectList',
|
|
26753
|
+
reissueSelectList: 'jkyReissueSelectList',
|
|
26754
|
+
reissueSelectListReturn: 'jkyReissueSelectListReturn',
|
|
26755
|
+
reissueDeleteGood: 'jkyReissueDeleteGood',
|
|
26756
|
+
changeShopCode: 'jkyChangeShopCode',
|
|
26757
|
+
reissueType: 'jkyReissueType',
|
|
26758
|
+
returnType: 'jkyReturnType',
|
|
26759
|
+
returnSelectListReturn: 'jkyReturnSelectListReturn',
|
|
26760
|
+
returnSelectList: 'jkyReturnSelectList',
|
|
26761
|
+
deleteGood: 'jkyDeleteGood',
|
|
26762
|
+
returnDeleteGood: 'jkyReturnDeleteGood',
|
|
26763
|
+
exchangeDeleteGood: 'jkyExchangeDeleteGood'
|
|
26764
|
+
},
|
|
26765
|
+
getOrderList: jkyUtils.getJkyOrderListSingleton
|
|
26766
|
+
},
|
|
25390
26767
|
WDT_AFTERSALE_GOODS: {
|
|
25391
26768
|
type: 'wdtAftersale',
|
|
25392
26769
|
key: 'wdtAftersaleGoods',
|
|
@@ -25418,7 +26795,7 @@ var componentMap$2 = {
|
|
|
25418
26795
|
}
|
|
25419
26796
|
};
|
|
25420
26797
|
var CommonGoods = function CommonGoods(props) {
|
|
25421
|
-
var
|
|
26798
|
+
var _withInfo$current3, _withInfo$current4, _componentMap$compTyp6;
|
|
25422
26799
|
var value = props.value,
|
|
25423
26800
|
disabled = props.disabled,
|
|
25424
26801
|
onChange = props.onChange,
|
|
@@ -25434,6 +26811,10 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
25434
26811
|
_useState2 = _slicedToArray(_useState, 2),
|
|
25435
26812
|
tableSelect = _useState2[0],
|
|
25436
26813
|
setTableSelect = _useState2[1];
|
|
26814
|
+
var _useState3 = useState([]),
|
|
26815
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
26816
|
+
originDataSource = _useState4[0],
|
|
26817
|
+
setOriginDataSource = _useState4[1];
|
|
25437
26818
|
var withInfo = useRef(null);
|
|
25438
26819
|
var valueRef = useRef(null);
|
|
25439
26820
|
var tokens = useRef([]);
|
|
@@ -25445,10 +26826,93 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
25445
26826
|
compType.indexOf('WDT') > -1 && getWdtOrderList(value === null || value === void 0 ? void 0 : value.orderNo);
|
|
25446
26827
|
}
|
|
25447
26828
|
}, [value]);
|
|
26829
|
+
var sysItemIdMap = useMemo(function () {
|
|
26830
|
+
var map = {};
|
|
26831
|
+
if (compType.indexOf('KM') > -1) {
|
|
26832
|
+
var _value$kmGoods, _value$kmGoods$filter;
|
|
26833
|
+
value === null || value === void 0 ? void 0 : (_value$kmGoods = value.kmGoods) === null || _value$kmGoods === void 0 ? void 0 : (_value$kmGoods$filter = _value$kmGoods.filter(function (item) {
|
|
26834
|
+
return item === null || item === void 0 ? void 0 : item.sysItemId;
|
|
26835
|
+
})) === null || _value$kmGoods$filter === void 0 ? void 0 : _value$kmGoods$filter.forEach(function (item) {
|
|
26836
|
+
var key = item.sysSkuId == '-1' ? item.sysItemId : "".concat(item.sysItemId, "-").concat(item.sysSkuId);
|
|
26837
|
+
map[key] = item;
|
|
26838
|
+
});
|
|
26839
|
+
}
|
|
26840
|
+
return map;
|
|
26841
|
+
}, [value === null || value === void 0 ? void 0 : value.kmGoods]);
|
|
26842
|
+
// 用于跟踪已经处理过的 sysItemId,避免重复处理
|
|
26843
|
+
var processedSysItemIdsRef = useRef(new Set());
|
|
26844
|
+
useEffect(function () {
|
|
26845
|
+
var fetchSupplier = /*#__PURE__*/function () {
|
|
26846
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(sysItemIds) {
|
|
26847
|
+
var _currentValue$kmGoods;
|
|
26848
|
+
var needFetchIds, supplierMap, hasChange, currentValue, kmGoods;
|
|
26849
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
26850
|
+
while (1) switch (_context.prev = _context.next) {
|
|
26851
|
+
case 0:
|
|
26852
|
+
if (sysItemIds.length) {
|
|
26853
|
+
_context.next = 2;
|
|
26854
|
+
break;
|
|
26855
|
+
}
|
|
26856
|
+
return _context.abrupt("return");
|
|
26857
|
+
case 2:
|
|
26858
|
+
// 过滤出还没有供应商信息的 sysItemId
|
|
26859
|
+
needFetchIds = sysItemIds.filter(function (id) {
|
|
26860
|
+
var item = sysItemIdMap[id];
|
|
26861
|
+
return item && (!item.supplierCode || !item.supplierName);
|
|
26862
|
+
});
|
|
26863
|
+
if (needFetchIds.length) {
|
|
26864
|
+
_context.next = 5;
|
|
26865
|
+
break;
|
|
26866
|
+
}
|
|
26867
|
+
return _context.abrupt("return");
|
|
26868
|
+
case 5:
|
|
26869
|
+
_context.next = 7;
|
|
26870
|
+
return servers.KM.getSupplierSingleton(needFetchIds);
|
|
26871
|
+
case 7:
|
|
26872
|
+
supplierMap = _context.sent;
|
|
26873
|
+
// 检查是否有实际变化,避免不必要的更新
|
|
26874
|
+
hasChange = false;
|
|
26875
|
+
currentValue = valueRef.current;
|
|
26876
|
+
kmGoods = currentValue === null || currentValue === void 0 ? void 0 : (_currentValue$kmGoods = currentValue.kmGoods) === null || _currentValue$kmGoods === void 0 ? void 0 : _currentValue$kmGoods.map(function (item) {
|
|
26877
|
+
var supplierInfo = supplierMap.get(item.sysItemId);
|
|
26878
|
+
var newSupplierCode = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierCode;
|
|
26879
|
+
var newSupplierName = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierName;
|
|
26880
|
+
// 如果供应商信息有变化,标记需要更新
|
|
26881
|
+
if (newSupplierCode && item.supplierCode !== newSupplierCode || newSupplierName && item.supplierName !== newSupplierName) {
|
|
26882
|
+
hasChange = true;
|
|
26883
|
+
// 标记已处理
|
|
26884
|
+
processedSysItemIdsRef.current.add(item.sysItemId);
|
|
26885
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
26886
|
+
supplierCode: newSupplierCode || item.supplierCode,
|
|
26887
|
+
supplierName: newSupplierName || item.supplierName
|
|
26888
|
+
});
|
|
26889
|
+
}
|
|
26890
|
+
return item;
|
|
26891
|
+
}); // 只在有实际变化时才更新
|
|
26892
|
+
if (hasChange && kmGoods) {
|
|
26893
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, currentValue), {}, {
|
|
26894
|
+
kmGoods: kmGoods
|
|
26895
|
+
}));
|
|
26896
|
+
}
|
|
26897
|
+
case 12:
|
|
26898
|
+
case "end":
|
|
26899
|
+
return _context.stop();
|
|
26900
|
+
}
|
|
26901
|
+
}, _callee);
|
|
26902
|
+
}));
|
|
26903
|
+
return function fetchSupplier(_x) {
|
|
26904
|
+
return _ref.apply(this, arguments);
|
|
26905
|
+
};
|
|
26906
|
+
}();
|
|
26907
|
+
var sysItemIds = Object.keys(sysItemIdMap);
|
|
26908
|
+
if (sysItemIds === null || sysItemIds === void 0 ? void 0 : sysItemIds.length) {
|
|
26909
|
+
fetchSupplier(sysItemIds);
|
|
26910
|
+
}
|
|
26911
|
+
}, [sysItemIdMap]);
|
|
25448
26912
|
var getWdtOrderList = /*#__PURE__*/function () {
|
|
25449
|
-
var
|
|
25450
|
-
return _regeneratorRuntime().wrap(function
|
|
25451
|
-
while (1) switch (
|
|
26913
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(orderNo) {
|
|
26914
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
26915
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
25452
26916
|
case 0:
|
|
25453
26917
|
wdtUtils.getWdtOrderListSingleton(orderNo).then(function (data) {
|
|
25454
26918
|
var orders = ((data === null || data === void 0 ? void 0 : data.trades) || []).filter(function (trade) {
|
|
@@ -25461,12 +26925,12 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
25461
26925
|
});
|
|
25462
26926
|
case 1:
|
|
25463
26927
|
case "end":
|
|
25464
|
-
return
|
|
26928
|
+
return _context2.stop();
|
|
25465
26929
|
}
|
|
25466
|
-
},
|
|
26930
|
+
}, _callee2);
|
|
25467
26931
|
}));
|
|
25468
|
-
return function getWdtOrderList(
|
|
25469
|
-
return
|
|
26932
|
+
return function getWdtOrderList(_x2) {
|
|
26933
|
+
return _ref2.apply(this, arguments);
|
|
25470
26934
|
};
|
|
25471
26935
|
}();
|
|
25472
26936
|
useEffect(function () {
|
|
@@ -25572,8 +27036,8 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
25572
27036
|
mode: isStrict
|
|
25573
27037
|
}))));
|
|
25574
27038
|
};
|
|
25575
|
-
var getGoodDetails = function getGoodDetails(
|
|
25576
|
-
var mode =
|
|
27039
|
+
var getGoodDetails = function getGoodDetails(_ref3) {
|
|
27040
|
+
var mode = _ref3.mode;
|
|
25577
27041
|
var updateHandle = componentMap$2[compType].eventNameMap['updateGoodsHandle'];
|
|
25578
27042
|
if (!updateHandle) return [];
|
|
25579
27043
|
var goodDetails = updateHandle((value === null || value === void 0 ? void 0 : value.orders) || [], {
|
|
@@ -25586,44 +27050,115 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
25586
27050
|
}) : goodDetails;
|
|
25587
27051
|
};
|
|
25588
27052
|
// 找到该订单号下所有商品
|
|
25589
|
-
var getAllTradeGoodsDetails = function
|
|
25590
|
-
var
|
|
25591
|
-
|
|
25592
|
-
|
|
25593
|
-
|
|
25594
|
-
|
|
25595
|
-
|
|
25596
|
-
|
|
25597
|
-
|
|
25598
|
-
|
|
25599
|
-
|
|
25600
|
-
|
|
25601
|
-
|
|
25602
|
-
|
|
25603
|
-
|
|
25604
|
-
|
|
25605
|
-
|
|
25606
|
-
|
|
25607
|
-
|
|
25608
|
-
|
|
25609
|
-
|
|
25610
|
-
|
|
25611
|
-
|
|
25612
|
-
|
|
25613
|
-
|
|
25614
|
-
|
|
25615
|
-
|
|
25616
|
-
|
|
25617
|
-
|
|
27053
|
+
var getAllTradeGoodsDetails = /*#__PURE__*/function () {
|
|
27054
|
+
var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref4) {
|
|
27055
|
+
var mode, updateHandle, goodDetails, orderNo;
|
|
27056
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
27057
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
27058
|
+
case 0:
|
|
27059
|
+
mode = _ref4.mode;
|
|
27060
|
+
updateHandle = componentMap$2[compType].eventNameMap['updateGoodsHandle'];
|
|
27061
|
+
if (updateHandle) {
|
|
27062
|
+
_context3.next = 4;
|
|
27063
|
+
break;
|
|
27064
|
+
}
|
|
27065
|
+
return _context3.abrupt("return", []);
|
|
27066
|
+
case 4:
|
|
27067
|
+
goodDetails = updateHandle((value === null || value === void 0 ? void 0 : value.allOrders) || [], {
|
|
27068
|
+
orderBackGoodsLevel: props.orderBackGoodsLevel
|
|
27069
|
+
});
|
|
27070
|
+
orderNo = value === null || value === void 0 ? void 0 : value.orderNo; // if (['KM_GOODS', 'KM_REISSUE_GOODS'].includes(compType)) {
|
|
27071
|
+
// await getKmSupplier(goodDetails);
|
|
27072
|
+
// }
|
|
27073
|
+
return _context3.abrupt("return", mode ? goodDetails.filter(function (goodItem) {
|
|
27074
|
+
var _componentMap$compTyp2;
|
|
27075
|
+
return !orderNo || (goodItem === null || goodItem === void 0 ? void 0 : goodItem[(_componentMap$compTyp2 = componentMap$2[compType]) === null || _componentMap$compTyp2 === void 0 ? void 0 : _componentMap$compTyp2.goodDetailOrderNo]) === orderNo;
|
|
27076
|
+
}) : goodDetails);
|
|
27077
|
+
case 7:
|
|
27078
|
+
case "end":
|
|
27079
|
+
return _context3.stop();
|
|
27080
|
+
}
|
|
27081
|
+
}, _callee3);
|
|
27082
|
+
}));
|
|
27083
|
+
return function getAllTradeGoodsDetails(_x3) {
|
|
27084
|
+
return _ref5.apply(this, arguments);
|
|
27085
|
+
};
|
|
27086
|
+
}();
|
|
27087
|
+
// 异步获取 originDataSource
|
|
27088
|
+
useEffect(function () {
|
|
27089
|
+
var fetchOriginDataSource = /*#__PURE__*/function () {
|
|
27090
|
+
var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
27091
|
+
var data;
|
|
27092
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
27093
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
27094
|
+
case 0:
|
|
27095
|
+
_context4.next = 2;
|
|
27096
|
+
return getAllTradeGoodsDetails({
|
|
27097
|
+
mode: value === null || value === void 0 ? void 0 : value.isStrict
|
|
27098
|
+
});
|
|
27099
|
+
case 2:
|
|
27100
|
+
data = _context4.sent;
|
|
27101
|
+
setOriginDataSource(Array.isArray(data) ? data : []);
|
|
27102
|
+
case 4:
|
|
27103
|
+
case "end":
|
|
27104
|
+
return _context4.stop();
|
|
27105
|
+
}
|
|
27106
|
+
}, _callee4);
|
|
27107
|
+
}));
|
|
27108
|
+
return function fetchOriginDataSource() {
|
|
27109
|
+
return _ref6.apply(this, arguments);
|
|
27110
|
+
};
|
|
27111
|
+
}();
|
|
27112
|
+
fetchOriginDataSource();
|
|
27113
|
+
}, [value === null || value === void 0 ? void 0 : value.allOrders, value === null || value === void 0 ? void 0 : value.isStrict, value === null || value === void 0 ? void 0 : value.orderNo, compType]);
|
|
27114
|
+
var selectedGoodsChange = /*#__PURE__*/function () {
|
|
27115
|
+
var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(skuList) {
|
|
27116
|
+
var _valueRef$current9, _componentMap$compTyp3, _componentMap$compTyp4, _uniqBy;
|
|
27117
|
+
var newValue, isStrict, originTradeGoodList, currentSelectGoodList;
|
|
27118
|
+
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
27119
|
+
while (1) switch (_context5.prev = _context5.next) {
|
|
27120
|
+
case 0:
|
|
27121
|
+
newValue = _objectSpread2({}, valueRef.current);
|
|
27122
|
+
isStrict = valueRef.current.isStrict; // 原订单商品
|
|
27123
|
+
_context5.next = 4;
|
|
27124
|
+
return getAllTradeGoodsDetails({
|
|
27125
|
+
mode: isStrict
|
|
27126
|
+
});
|
|
27127
|
+
case 4:
|
|
27128
|
+
_context5.t0 = _context5.sent;
|
|
27129
|
+
if (_context5.t0) {
|
|
27130
|
+
_context5.next = 7;
|
|
27131
|
+
break;
|
|
27132
|
+
}
|
|
27133
|
+
_context5.t0 = [];
|
|
27134
|
+
case 7:
|
|
27135
|
+
originTradeGoodList = _context5.t0;
|
|
27136
|
+
// 当前选中的所有商品【包含了原订单+商品库】
|
|
27137
|
+
currentSelectGoodList = ((_valueRef$current9 = valueRef.current) === null || _valueRef$current9 === void 0 ? void 0 : _valueRef$current9["".concat(componentMap$2 === null || componentMap$2 === void 0 ? void 0 : (_componentMap$compTyp3 = componentMap$2[compType]) === null || _componentMap$compTyp3 === void 0 ? void 0 : _componentMap$compTyp3.key)]) || [];
|
|
27138
|
+
newValue["".concat(componentMap$2 === null || componentMap$2 === void 0 ? void 0 : (_componentMap$compTyp4 = componentMap$2[compType]) === null || _componentMap$compTyp4 === void 0 ? void 0 : _componentMap$compTyp4.key)] = (_uniqBy = uniqBy(originTradeGoodList.concat(currentSelectGoodList), 'uuid')) === null || _uniqBy === void 0 ? void 0 : _uniqBy.filter(function (item) {
|
|
27139
|
+
return skuList.includes(item.uuid);
|
|
27140
|
+
});
|
|
27141
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
27142
|
+
case 11:
|
|
27143
|
+
case "end":
|
|
27144
|
+
return _context5.stop();
|
|
27145
|
+
}
|
|
27146
|
+
}, _callee5);
|
|
27147
|
+
}));
|
|
27148
|
+
return function selectedGoodsChange(_x4) {
|
|
27149
|
+
return _ref7.apply(this, arguments);
|
|
27150
|
+
};
|
|
27151
|
+
}();
|
|
25618
27152
|
// 商品信息组件暂存后 重新编辑,此时需要重新获取订单下所有系统自订单的商品信息
|
|
25619
27153
|
var getDataSourceAsync = function getDataSourceAsync() {
|
|
25620
|
-
var _componentMap$
|
|
25621
|
-
return (value === null || value === void 0 ? void 0 : value.orderNo) ? (_componentMap$
|
|
27154
|
+
var _componentMap$compTyp5;
|
|
27155
|
+
return (value === null || value === void 0 ? void 0 : value.orderNo) ? (_componentMap$compTyp5 = componentMap$2[compType]) === null || _componentMap$compTyp5 === void 0 ? void 0 : _componentMap$compTyp5.getOrderList(value === null || value === void 0 ? void 0 : value.orderNo).then(function (data) {
|
|
25622
27156
|
var list = processAllOrders({
|
|
25623
27157
|
data: data,
|
|
25624
27158
|
orderNo: value === null || value === void 0 ? void 0 : value.orderNo,
|
|
25625
27159
|
type: compType
|
|
25626
27160
|
});
|
|
27161
|
+
console.log('getDataSourceAsync', list);
|
|
25627
27162
|
onChange(_objectSpread2(_objectSpread2({}, valueRef.current), {}, {
|
|
25628
27163
|
allOrders: list || []
|
|
25629
27164
|
}));
|
|
@@ -25651,11 +27186,9 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
25651
27186
|
isStrict: value === null || value === void 0 ? void 0 : value.isStrict,
|
|
25652
27187
|
systemOrders: value === null || value === void 0 ? void 0 : value.allOrders,
|
|
25653
27188
|
selectedSystemOrders: value === null || value === void 0 ? void 0 : value.orders,
|
|
25654
|
-
showChangeBtn: (_componentMap$
|
|
27189
|
+
showChangeBtn: (_componentMap$compTyp6 = componentMap$2[compType]) === null || _componentMap$compTyp6 === void 0 ? void 0 : _componentMap$compTyp6.showChangeBtn,
|
|
25655
27190
|
tradeGoods: {
|
|
25656
|
-
originDataSource:
|
|
25657
|
-
mode: value === null || value === void 0 ? void 0 : value.isStrict
|
|
25658
|
-
}),
|
|
27191
|
+
originDataSource: originDataSource,
|
|
25659
27192
|
getDataSourceAsync: getDataSourceAsync,
|
|
25660
27193
|
selectedGoodsChange: selectedGoodsChange
|
|
25661
27194
|
}
|
|
@@ -26431,12 +27964,95 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
26431
27964
|
mode: mode
|
|
26432
27965
|
}))));
|
|
26433
27966
|
};
|
|
26434
|
-
var
|
|
27967
|
+
var sysItemIdMap = useMemo(function () {
|
|
27968
|
+
var map = {};
|
|
27969
|
+
if (type === 'KM_REISSUE_GOODS') {
|
|
27970
|
+
var _value$kmReissueGoods, _value$kmReissueGoods2;
|
|
27971
|
+
value === null || value === void 0 ? void 0 : (_value$kmReissueGoods = value.kmReissueGoods) === null || _value$kmReissueGoods === void 0 ? void 0 : (_value$kmReissueGoods2 = _value$kmReissueGoods.filter(function (item) {
|
|
27972
|
+
return item === null || item === void 0 ? void 0 : item.sysItemId;
|
|
27973
|
+
})) === null || _value$kmReissueGoods2 === void 0 ? void 0 : _value$kmReissueGoods2.forEach(function (item) {
|
|
27974
|
+
var key = item.sysSkuId == '-1' ? item.sysItemId : "".concat(item.sysItemId, "-").concat(item.sysSkuId);
|
|
27975
|
+
map[key] = item;
|
|
27976
|
+
});
|
|
27977
|
+
}
|
|
27978
|
+
return map;
|
|
27979
|
+
}, [value === null || value === void 0 ? void 0 : value.kmReissueGoods]);
|
|
27980
|
+
// 用于跟踪已经处理过的 sysItemId,避免重复处理
|
|
27981
|
+
var processedSysItemIdsRef = useRef(new Set());
|
|
27982
|
+
useEffect(function () {
|
|
27983
|
+
var fetchSupplier = /*#__PURE__*/function () {
|
|
27984
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(sysItemIds) {
|
|
27985
|
+
var _currentValue$kmReiss;
|
|
27986
|
+
var needFetchIds, supplierMap, hasChange, currentValue, kmReissueGoods;
|
|
27987
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
27988
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
27989
|
+
case 0:
|
|
27990
|
+
if (sysItemIds.length) {
|
|
27991
|
+
_context2.next = 2;
|
|
27992
|
+
break;
|
|
27993
|
+
}
|
|
27994
|
+
return _context2.abrupt("return");
|
|
27995
|
+
case 2:
|
|
27996
|
+
// 过滤出还没有供应商信息的 sysItemId
|
|
27997
|
+
needFetchIds = sysItemIds.filter(function (id) {
|
|
27998
|
+
var item = sysItemIdMap[id];
|
|
27999
|
+
return item && (!item.supplierCode || !item.supplierName);
|
|
28000
|
+
});
|
|
28001
|
+
if (needFetchIds.length) {
|
|
28002
|
+
_context2.next = 5;
|
|
28003
|
+
break;
|
|
28004
|
+
}
|
|
28005
|
+
return _context2.abrupt("return");
|
|
28006
|
+
case 5:
|
|
28007
|
+
_context2.next = 7;
|
|
28008
|
+
return servers.KM.getSupplierSingleton(needFetchIds);
|
|
28009
|
+
case 7:
|
|
28010
|
+
supplierMap = _context2.sent;
|
|
28011
|
+
// 检查是否有实际变化,避免不必要的更新
|
|
28012
|
+
hasChange = false;
|
|
28013
|
+
currentValue = valueRef.current;
|
|
28014
|
+
kmReissueGoods = currentValue === null || currentValue === void 0 ? void 0 : (_currentValue$kmReiss = currentValue.kmReissueGoods) === null || _currentValue$kmReiss === void 0 ? void 0 : _currentValue$kmReiss.map(function (item) {
|
|
28015
|
+
var supplierInfo = supplierMap.get(item.sysItemId);
|
|
28016
|
+
var newSupplierCode = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierCode;
|
|
28017
|
+
var newSupplierName = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierName;
|
|
28018
|
+
// 如果供应商信息有变化,标记需要更新
|
|
28019
|
+
if (newSupplierCode && item.supplierCode !== newSupplierCode || newSupplierName && item.supplierName !== newSupplierName) {
|
|
28020
|
+
hasChange = true;
|
|
28021
|
+
// 标记已处理
|
|
28022
|
+
processedSysItemIdsRef.current.add(item.sysItemId);
|
|
28023
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
28024
|
+
supplierCode: newSupplierCode || item.supplierCode,
|
|
28025
|
+
supplierName: newSupplierName || item.supplierName
|
|
28026
|
+
});
|
|
28027
|
+
}
|
|
28028
|
+
return item;
|
|
28029
|
+
}); // 只在有实际变化时才更新
|
|
28030
|
+
if (hasChange && kmReissueGoods) {
|
|
28031
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, currentValue), {}, {
|
|
28032
|
+
kmReissueGoods: kmReissueGoods
|
|
28033
|
+
}));
|
|
28034
|
+
}
|
|
28035
|
+
case 12:
|
|
28036
|
+
case "end":
|
|
28037
|
+
return _context2.stop();
|
|
28038
|
+
}
|
|
28039
|
+
}, _callee2);
|
|
28040
|
+
}));
|
|
28041
|
+
return function fetchSupplier(_x2) {
|
|
28042
|
+
return _ref4.apply(this, arguments);
|
|
28043
|
+
};
|
|
28044
|
+
}();
|
|
28045
|
+
var sysItemIds = Object.keys(sysItemIdMap);
|
|
28046
|
+
if (sysItemIds === null || sysItemIds === void 0 ? void 0 : sysItemIds.length) {
|
|
28047
|
+
fetchSupplier(sysItemIds);
|
|
28048
|
+
}
|
|
28049
|
+
}, [sysItemIdMap]);
|
|
28050
|
+
var getGoodDetails = function getGoodDetails(_ref5) {
|
|
26435
28051
|
var _typeMap$type18, _typeMap$type19, _value$typeMap$type$s6, _typeMap$type20, _typeMap$type21, _typeMap$type22, _typeMap$type23, _typeMap$type24;
|
|
26436
|
-
var mode =
|
|
26437
|
-
sysOrderNo =
|
|
26438
|
-
|
|
26439
|
-
isAllOrders =
|
|
28052
|
+
var mode = _ref5.mode,
|
|
28053
|
+
sysOrderNo = _ref5.sysOrderNo,
|
|
28054
|
+
_ref5$isAllOrders = _ref5.isAllOrders,
|
|
28055
|
+
isAllOrders = _ref5$isAllOrders === void 0 ? false : _ref5$isAllOrders;
|
|
26440
28056
|
var systemOrder = value === null || value === void 0 ? void 0 : value[(_typeMap$type18 = typeMap$2[type]) === null || _typeMap$type18 === void 0 ? void 0 : _typeMap$type18.systemOrder];
|
|
26441
28057
|
var systemOrderNo = sysOrderNo !== null && sysOrderNo !== void 0 ? sysOrderNo : value === null || value === void 0 ? void 0 : value[(_typeMap$type19 = typeMap$2[type]) === null || _typeMap$type19 === void 0 ? void 0 : _typeMap$type19.systemOrderNo];
|
|
26442
28058
|
var order = systemOrderNo && ((systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orders) || []).find(function (order) {
|
|
@@ -27348,7 +28964,7 @@ var MsgStatus = function MsgStatus(props) {
|
|
|
27348
28964
|
onClick: function onClick() {
|
|
27349
28965
|
return setChangeIndex(index);
|
|
27350
28966
|
}
|
|
27351
|
-
}, msgTypeCh[key], item.ruleName);
|
|
28967
|
+
}, msgTypeCh[key] || key, item.ruleName);
|
|
27352
28968
|
}))) : null, type === 1 ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Select, _objectSpread2(_objectSpread2({}, other), {}, {
|
|
27353
28969
|
showSearch: true,
|
|
27354
28970
|
value: (_value$changeIndex = value[changeIndex]) === null || _value$changeIndex === void 0 ? void 0 : _value$changeIndex.status,
|
|
@@ -27926,7 +29542,7 @@ var GyReissue = function GyReissue(props) {
|
|
|
27926
29542
|
span: 12
|
|
27927
29543
|
},
|
|
27928
29544
|
sm: {
|
|
27929
|
-
span:
|
|
29545
|
+
span: 4
|
|
27930
29546
|
}
|
|
27931
29547
|
}, /*#__PURE__*/React.createElement(Cascader, {
|
|
27932
29548
|
style: {
|
|
@@ -28229,7 +29845,7 @@ var GyReturnGoods = function GyReturnGoods(props) {
|
|
|
28229
29845
|
span: 12
|
|
28230
29846
|
},
|
|
28231
29847
|
sm: {
|
|
28232
|
-
span:
|
|
29848
|
+
span: 4
|
|
28233
29849
|
}
|
|
28234
29850
|
}, /*#__PURE__*/React.createElement(Cascader, {
|
|
28235
29851
|
style: {
|
|
@@ -28902,7 +30518,8 @@ var SYSTEM_ORDER_COLUMNS_MAP = {
|
|
|
28902
30518
|
GY_SYSTEM_ORDER: GY_SYSTEM_ORDER_CONFIG.columns,
|
|
28903
30519
|
JST_SYSTEM_ORDER: JST_SYSTEM_ORDER_CONFIG.columns,
|
|
28904
30520
|
JY_SYSTEM_ORDER: JY_SYSTEM_ORDER_CONFIG.columns,
|
|
30521
|
+
JKY_SYSTEM_ORDER: JKY_SYSTEM_ORDER_CONFIG.columns,
|
|
28905
30522
|
WDT_RETURN_BILL_NO: WDT_RETURN_BILL_NO_CONFIG.columns
|
|
28906
30523
|
};
|
|
28907
30524
|
|
|
28908
|
-
export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, ApaasImage, ApaasInput, ApaasInputNumber, ApaasLogistics, ApaasMultipleSelect, ApaasPosting, ApaasRadio, ApaasRate, ApaasSelect, ApaasSlider, ApaasTextArea, ApaasUpload, ApaasUploadAsync$1 as ApaasUploadAsync, ApaasUploadFile, index as ApaasUploadProAsync, AsyncSelect, bsE3Reissue as BsE3Reissue, BsExchange, BsGoods, BsReissue, BsReturnGoods as BsReturn, index$2 as BsSystemOrder, BuyerNick, CalculationInput, ChooseBaby, CommonExchangeGoods, CommonGoods, CommonSystemOrder$1 as CommonMultiStatus, CommonReturnGoods, CommonStatus, CommonSystemOrder, CopyTextIcon, ExpressLogistics, Goods, index$3 as GoodsTable, GyReissue, GyReturnGoods as GyReturn, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, KmVideo, LogisticsInterception, LogisticsMoreInterception, LogisticsMoreTrajectory, LogisticsTrajectory, MsgStatus, OrderSubForm, utils as OrderSubFormUtils, ParseLogistics, Payment, PublicReissue, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, SYSTEM_ORDER_COLUMNS_MAP, ShopNameSelect as ShopName, SkxGoods, IdInputSelect as SkxIdInputSelect, Status, SubForm, Supplier, TBGoodId, TBGoodSerial, TradeId, WdtGoodList, wdtReissue as WdtReissue, WlnGoods, columnsBaseInfoMap, erpColumnsMap, erpFormValidator, index$1 as erpModalColumnsMap, getColumns$4 as getGyColumns, getColumns$5 as getJstColumns, getColumns$7 as getJyColumns, getColumns$6 as getKmColumns, getColumns$8 as getSkxColumns, getColumns$2 as getWdtColumns, getColumns$3 as getWlnColumns, orderSubFormConstants, renderMap };
|
|
30525
|
+
export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, ApaasImage, ApaasInput, ApaasInputNumber, ApaasLogistics, ApaasMultipleSelect, ApaasPosting, ApaasRadio, ApaasRate, ApaasSelect, ApaasSlider, ApaasTextArea, ApaasUpload, ApaasUploadAsync$1 as ApaasUploadAsync, ApaasUploadFile, index as ApaasUploadProAsync, AsyncSelect, bsE3Reissue as BsE3Reissue, BsExchange, BsGoods, BsReissue, BsReturnGoods as BsReturn, index$2 as BsSystemOrder, BuyerNick, CalculationInput, ChooseBaby, CommonExchangeGoods, CommonGoods, CommonSystemOrder$1 as CommonMultiStatus, CommonReturnGoods, CommonStatus, CommonSystemOrder, CopyTextIcon, ExpressLogistics, Goods, index$3 as GoodsTable, GyReissue, GyReturnGoods as GyReturn, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, KmVideo, LogisticsInterception, LogisticsMoreInterception, LogisticsMoreTrajectory, LogisticsTrajectory, MsgStatus, OrderSubForm, utils as OrderSubFormUtils, ParseLogistics, Payment, PublicReissue, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, SYSTEM_ORDER_COLUMNS_MAP, ShopNameSelect as ShopName, SkxGoods, IdInputSelect as SkxIdInputSelect, Status, SubForm, Supplier, TBGoodId, TBGoodSerial, TradeId, WdtGoodList, wdtReissue as WdtReissue, WlnGoods, columnsBaseInfoMap, erpColumnsMap, erpFormValidator, index$1 as erpModalColumnsMap, getColumns$4 as getGyColumns, getColumns$9 as getJkyColumns, getColumns$5 as getJstColumns, getColumns$7 as getJyColumns, getColumns$6 as getKmColumns, getColumns$8 as getSkxColumns, getColumns$2 as getWdtColumns, getColumns$3 as getWlnColumns, orderSubFormConstants, renderMap, renderSplitMap };
|