@kmkf-fe-packages/basic-components 2.2.43 → 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 +2623 -1015
- package/dist/index.js +2623 -1013
- 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';
|
|
@@ -8454,7 +8454,10 @@ var processLogisticsTrajectory = function processLogisticsTrajectory(getValue) {
|
|
|
8454
8454
|
var map = subFields.reduce(function (cur, nxt) {
|
|
8455
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))));
|
|
8456
8456
|
}, {});
|
|
8457
|
-
|
|
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);
|
|
8458
8461
|
};
|
|
8459
8462
|
};
|
|
8460
8463
|
var processLogisticsTrajectoryMore = function processLogisticsTrajectoryMore(getValue) {
|
|
@@ -8478,12 +8481,12 @@ var processItemSelectThird = function processItemSelectThird(getValue) {
|
|
|
8478
8481
|
};
|
|
8479
8482
|
var processEnterPrisePayment = function processEnterPrisePayment(getValue) {
|
|
8480
8483
|
return function (nex, config) {
|
|
8481
|
-
var
|
|
8484
|
+
var _ref33;
|
|
8482
8485
|
var subFields = ['enterprisePaymentAlipayNick', 'enterprisePaymentAlipayNo', 'enterprisePaymentBuyerNick', 'enterprisePaymentBuyerOpenUid', 'enterprisePaymentRefundFee', 'enterprisePaymentStatus', 'enterprisePaymentTid'];
|
|
8483
8486
|
var map = subFields.reduce(function (cur, nxt) {
|
|
8484
8487
|
return _objectSpread2(_objectSpread2({}, cur), {}, _defineProperty({}, nxt, getValue("".concat(nex.uniqueKey, "_").concat(nxt))));
|
|
8485
8488
|
}, {});
|
|
8486
|
-
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;
|
|
8487
8490
|
};
|
|
8488
8491
|
};
|
|
8489
8492
|
var processJstLogistics = function processJstLogistics(getValue) {
|
|
@@ -9246,14 +9249,14 @@ var processJstReturnGoods = function processJstReturnGoods(templateColumns) {
|
|
|
9246
9249
|
};
|
|
9247
9250
|
var processLabel = function processLabel(getValue) {
|
|
9248
9251
|
return function (nex, config) {
|
|
9249
|
-
var
|
|
9250
|
-
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;
|
|
9251
9254
|
};
|
|
9252
9255
|
};
|
|
9253
9256
|
var processMemberLevel = function processMemberLevel(getValue) {
|
|
9254
9257
|
return function (nex, config) {
|
|
9255
|
-
var
|
|
9256
|
-
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;
|
|
9257
9260
|
};
|
|
9258
9261
|
};
|
|
9259
9262
|
var processAfterSalesOrderId = function processAfterSalesOrderId(getValue) {
|
|
@@ -9548,7 +9551,6 @@ var FileRender = function FileRender(_ref) {
|
|
|
9548
9551
|
cursor: 'pointer'
|
|
9549
9552
|
},
|
|
9550
9553
|
onClick: function onClick(e) {
|
|
9551
|
-
console.log('onPreview');
|
|
9552
9554
|
e.preventDefault();
|
|
9553
9555
|
onPreview(item);
|
|
9554
9556
|
},
|
|
@@ -9644,6 +9646,9 @@ var PictureRender = function PictureRender(_ref2) {
|
|
|
9644
9646
|
}));
|
|
9645
9647
|
}));
|
|
9646
9648
|
};
|
|
9649
|
+
var LogisticsCompanyRender = function LogisticsCompanyRender(value) {
|
|
9650
|
+
return ExpressData.getInstance().getExpressNameByCode(value) || value;
|
|
9651
|
+
};
|
|
9647
9652
|
var MultipleSelectRender = function MultipleSelectRender(_ref5) {
|
|
9648
9653
|
var _ref5$value = _ref5.value,
|
|
9649
9654
|
value = _ref5$value === void 0 ? [] : _ref5$value;
|
|
@@ -9678,6 +9683,16 @@ var renderMap = {
|
|
|
9678
9683
|
});
|
|
9679
9684
|
}
|
|
9680
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
|
+
};
|
|
9681
9696
|
var EditPictureRender = function EditPictureRender(_ref6) {
|
|
9682
9697
|
var _ref6$val = _ref6.val,
|
|
9683
9698
|
val = _ref6$val === void 0 ? [] : _ref6$val,
|
|
@@ -9773,7 +9788,6 @@ var EditFileRender = function EditFileRender(_ref7) {
|
|
|
9773
9788
|
var EditRenderMap = {
|
|
9774
9789
|
INPUT: function INPUT(_ref8) {
|
|
9775
9790
|
var val = _ref8.val,
|
|
9776
|
-
record = _ref8.record,
|
|
9777
9791
|
index = _ref8.index,
|
|
9778
9792
|
t = _ref8.t,
|
|
9779
9793
|
updateHandle = _ref8.updateHandle,
|
|
@@ -9802,7 +9816,6 @@ var EditRenderMap = {
|
|
|
9802
9816
|
},
|
|
9803
9817
|
TEXTAREA: function TEXTAREA(_ref9) {
|
|
9804
9818
|
var val = _ref9.val,
|
|
9805
|
-
record = _ref9.record,
|
|
9806
9819
|
index = _ref9.index,
|
|
9807
9820
|
t = _ref9.t,
|
|
9808
9821
|
updateHandle = _ref9.updateHandle,
|
|
@@ -9831,7 +9844,6 @@ var EditRenderMap = {
|
|
|
9831
9844
|
},
|
|
9832
9845
|
PICTURE: function PICTURE(_ref10) {
|
|
9833
9846
|
var val = _ref10.val,
|
|
9834
|
-
record = _ref10.record,
|
|
9835
9847
|
index = _ref10.index,
|
|
9836
9848
|
t = _ref10.t,
|
|
9837
9849
|
updateHandle = _ref10.updateHandle,
|
|
@@ -9849,7 +9861,6 @@ var EditRenderMap = {
|
|
|
9849
9861
|
},
|
|
9850
9862
|
FILE: function FILE(_ref11) {
|
|
9851
9863
|
var val = _ref11.val,
|
|
9852
|
-
record = _ref11.record,
|
|
9853
9864
|
index = _ref11.index,
|
|
9854
9865
|
t = _ref11.t,
|
|
9855
9866
|
updateHandle = _ref11.updateHandle,
|
|
@@ -9867,7 +9878,6 @@ var EditRenderMap = {
|
|
|
9867
9878
|
},
|
|
9868
9879
|
RADIO: function RADIO(_ref12) {
|
|
9869
9880
|
var val = _ref12.val,
|
|
9870
|
-
record = _ref12.record,
|
|
9871
9881
|
index = _ref12.index,
|
|
9872
9882
|
t = _ref12.t,
|
|
9873
9883
|
updateHandle = _ref12.updateHandle,
|
|
@@ -9890,7 +9900,6 @@ var EditRenderMap = {
|
|
|
9890
9900
|
},
|
|
9891
9901
|
SELECT: function SELECT(_ref13) {
|
|
9892
9902
|
var val = _ref13.val,
|
|
9893
|
-
record = _ref13.record,
|
|
9894
9903
|
index = _ref13.index,
|
|
9895
9904
|
t = _ref13.t,
|
|
9896
9905
|
updateHandle = _ref13.updateHandle,
|
|
@@ -9913,7 +9922,6 @@ var EditRenderMap = {
|
|
|
9913
9922
|
},
|
|
9914
9923
|
CHECKBOX: function CHECKBOX(_ref14) {
|
|
9915
9924
|
var val = _ref14.val,
|
|
9916
|
-
record = _ref14.record,
|
|
9917
9925
|
index = _ref14.index,
|
|
9918
9926
|
t = _ref14.t,
|
|
9919
9927
|
updateHandle = _ref14.updateHandle,
|
|
@@ -9935,7 +9943,6 @@ var EditRenderMap = {
|
|
|
9935
9943
|
},
|
|
9936
9944
|
BASIC_MULT_SELECT: function BASIC_MULT_SELECT(_ref15) {
|
|
9937
9945
|
var val = _ref15.val,
|
|
9938
|
-
record = _ref15.record,
|
|
9939
9946
|
index = _ref15.index,
|
|
9940
9947
|
t = _ref15.t,
|
|
9941
9948
|
updateHandle = _ref15.updateHandle,
|
|
@@ -9954,6 +9961,57 @@ var EditRenderMap = {
|
|
|
9954
9961
|
return updateHandle(e, index, t.key);
|
|
9955
9962
|
}
|
|
9956
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
|
+
});
|
|
9957
10015
|
}
|
|
9958
10016
|
};
|
|
9959
10017
|
|
|
@@ -9981,6 +10039,7 @@ function HoverTableRowDeleteIcon(_ref) {
|
|
|
9981
10039
|
}
|
|
9982
10040
|
|
|
9983
10041
|
var WidgetMap = {
|
|
10042
|
+
TRADE_ID_INPUT: 'tradeId',
|
|
9984
10043
|
INPUT: 'input',
|
|
9985
10044
|
TEXTAREA: 'textarea',
|
|
9986
10045
|
PICTURE: 'picture',
|
|
@@ -10007,8 +10066,8 @@ var SubForm = function SubForm(props) {
|
|
|
10007
10066
|
tableHeader = props.tableHeader,
|
|
10008
10067
|
disabled = props.disabled,
|
|
10009
10068
|
platform = props.platform,
|
|
10010
|
-
|
|
10011
|
-
|
|
10069
|
+
maxCount = props.maxCount,
|
|
10070
|
+
manual = props.manual;
|
|
10012
10071
|
var ref = useRef(null);
|
|
10013
10072
|
var isRequest = useRef(false);
|
|
10014
10073
|
var _useState = useState(false),
|
|
@@ -10083,7 +10142,6 @@ var SubForm = function SubForm(props) {
|
|
|
10083
10142
|
return deleteHandle(record.uuid);
|
|
10084
10143
|
}
|
|
10085
10144
|
});
|
|
10086
|
-
// return <div style={{ width: 25 }}>{index + 1}</div>;
|
|
10087
10145
|
}
|
|
10088
10146
|
}].concat(_toConsumableArray(newTableHeader.map(function (t) {
|
|
10089
10147
|
return {
|
|
@@ -10096,27 +10154,41 @@ var SubForm = function SubForm(props) {
|
|
|
10096
10154
|
ellipsis: true,
|
|
10097
10155
|
width: t.width,
|
|
10098
10156
|
render: function render(val, record, index) {
|
|
10099
|
-
|
|
10100
|
-
|
|
10101
|
-
|
|
10102
|
-
|
|
10103
|
-
|
|
10104
|
-
|
|
10105
|
-
|
|
10106
|
-
|
|
10107
|
-
|
|
10108
|
-
|
|
10109
|
-
|
|
10110
|
-
|
|
10111
|
-
|
|
10112
|
-
|
|
10113
|
-
|
|
10114
|
-
|
|
10115
|
-
|
|
10116
|
-
|
|
10117
|
-
|
|
10118
|
-
|
|
10119
|
-
|
|
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
|
+
}
|
|
10120
10192
|
}
|
|
10121
10193
|
};
|
|
10122
10194
|
})), [disabled ? {} : {
|
|
@@ -10166,6 +10238,10 @@ var SubForm = function SubForm(props) {
|
|
|
10166
10238
|
item.render = function (val) {
|
|
10167
10239
|
return renderMap[t.workOrderComponentType](val, platform);
|
|
10168
10240
|
};
|
|
10241
|
+
} else if (renderSplitMap[t.key]) {
|
|
10242
|
+
item.render = function (val) {
|
|
10243
|
+
return renderSplitMap[t.key](val);
|
|
10244
|
+
};
|
|
10169
10245
|
}
|
|
10170
10246
|
return item;
|
|
10171
10247
|
})));
|
|
@@ -10180,7 +10256,11 @@ var SubForm = function SubForm(props) {
|
|
|
10180
10256
|
if (['PICTURE', 'FILE', 'BASIC_MULT_SELECT', 'CHECKBOX'].includes(next.workOrderComponentType)) {
|
|
10181
10257
|
item.defaultValue = [];
|
|
10182
10258
|
}
|
|
10183
|
-
|
|
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
|
+
}
|
|
10184
10264
|
return prv;
|
|
10185
10265
|
}, {});
|
|
10186
10266
|
}, [newTableHeader]);
|
|
@@ -10197,7 +10277,7 @@ var SubForm = function SubForm(props) {
|
|
|
10197
10277
|
}).map(function (item) {
|
|
10198
10278
|
return {
|
|
10199
10279
|
label: item.name,
|
|
10200
|
-
value: "".concat(item.key, "_").concat(WidgetMap[item.workOrderComponentType])
|
|
10280
|
+
value: WidgetMap[item.workOrderComponentType] ? "".concat(item.key, "_").concat(WidgetMap[item.workOrderComponentType]) : item.key
|
|
10201
10281
|
};
|
|
10202
10282
|
});
|
|
10203
10283
|
setSelectKey(options === null || options === void 0 ? void 0 : (_options$ = options[0]) === null || _options$ === void 0 ? void 0 : _options$.value);
|
|
@@ -10239,6 +10319,7 @@ var SubForm = function SubForm(props) {
|
|
|
10239
10319
|
_ref2$componentList,
|
|
10240
10320
|
componentList,
|
|
10241
10321
|
params,
|
|
10322
|
+
queryComponents,
|
|
10242
10323
|
res,
|
|
10243
10324
|
data,
|
|
10244
10325
|
success,
|
|
@@ -10271,15 +10352,25 @@ var SubForm = function SubForm(props) {
|
|
|
10271
10352
|
}]
|
|
10272
10353
|
};
|
|
10273
10354
|
if (selectKey && inputValue) {
|
|
10274
|
-
|
|
10355
|
+
queryComponents = [{
|
|
10275
10356
|
key: 'flowStatus',
|
|
10276
10357
|
symbol: 'in',
|
|
10277
10358
|
value: flowStatus
|
|
10278
|
-
}, {
|
|
10279
|
-
key: selectKey,
|
|
10280
|
-
symbol: 'in',
|
|
10281
|
-
value: [inputValue]
|
|
10282
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;
|
|
10283
10374
|
}
|
|
10284
10375
|
_context.next = 7;
|
|
10285
10376
|
return extendRequest('/qy/view/workOrderList', {
|
|
@@ -10475,7 +10566,21 @@ var SubForm = function SubForm(props) {
|
|
|
10475
10566
|
placement: "bottom",
|
|
10476
10567
|
visible: open,
|
|
10477
10568
|
onVisibleChange: handleOpenChange
|
|
10478
|
-
}, /*#__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, {
|
|
10479
10584
|
placeholder: "\u8F93\u5165\u5173\u952E\u8BCD\u67E5\u8BE2",
|
|
10480
10585
|
allowClear: true,
|
|
10481
10586
|
onChange: function onChange(e) {
|
|
@@ -13451,7 +13556,7 @@ var LogisticsTrajectory = function LogisticsTrajectory(props) {
|
|
|
13451
13556
|
if (disabled) {
|
|
13452
13557
|
return;
|
|
13453
13558
|
}
|
|
13454
|
-
if (['SF', 'ZTO'].includes(newCompany) && !(newCompany && trajectoryCode && trajectoryPhone)) {
|
|
13559
|
+
if (['KYE', 'SF', 'ZTO'].includes(newCompany) && !(newCompany && trajectoryCode && trajectoryPhone)) {
|
|
13455
13560
|
return;
|
|
13456
13561
|
} else if (!(newCompany && trajectoryCode)) {
|
|
13457
13562
|
return;
|
|
@@ -13587,7 +13692,7 @@ var LogisticsTrajectory = function LogisticsTrajectory(props) {
|
|
|
13587
13692
|
value: value === null || value === void 0 ? void 0 : value.trajectorySnapshot
|
|
13588
13693
|
});
|
|
13589
13694
|
};
|
|
13590
|
-
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);
|
|
13591
13696
|
};
|
|
13592
13697
|
|
|
13593
13698
|
var LogisticsMoreTrajectory = function LogisticsMoreTrajectory(props) {
|
|
@@ -13843,7 +13948,7 @@ var jstGoods = function jstGoods(props) {
|
|
|
13843
13948
|
changeIndex = _useState2[0],
|
|
13844
13949
|
setChangeIndex = _useState2[1]; //选中的包裹
|
|
13845
13950
|
var sendOptions = SendDataCenter.getInstance(platformType).getSendData();
|
|
13846
|
-
var isSelectName = ['wdt', 'bsE3', 'km', 'gy', 'jst', 'jy'].includes(platformType);
|
|
13951
|
+
var isSelectName = ['wdt', 'bsE3', 'km', 'gy', 'jst', 'jy', 'jky'].includes(platformType);
|
|
13847
13952
|
var expressDateInstance = ExpressData.getInstance(platformType);
|
|
13848
13953
|
var isSendGoodSavedId = isSelectName && !['jst'].includes(platformType);
|
|
13849
13954
|
useEffect(function () {
|
|
@@ -14097,7 +14202,7 @@ var renderTextEllipsis = function renderTextEllipsis(value) {
|
|
|
14097
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";
|
|
14098
14203
|
styleInject(css_248z$b);
|
|
14099
14204
|
|
|
14100
|
-
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";
|
|
14101
14206
|
styleInject(css_248z$c);
|
|
14102
14207
|
|
|
14103
14208
|
var _excluded$d = ["shopId"];
|
|
@@ -15213,6 +15318,223 @@ var jyColumns = [{
|
|
|
15213
15318
|
}
|
|
15214
15319
|
}];
|
|
15215
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
|
+
|
|
15216
15538
|
var getColumnsMap = function getColumnsMap() {
|
|
15217
15539
|
return cloneDeep({
|
|
15218
15540
|
gy: gyColumns,
|
|
@@ -15220,7 +15542,8 @@ var getColumnsMap = function getColumnsMap() {
|
|
|
15220
15542
|
wdt: wdtColumns,
|
|
15221
15543
|
bse3: bse3Columns,
|
|
15222
15544
|
km: kmColumns,
|
|
15223
|
-
jy: jyColumns
|
|
15545
|
+
jy: jyColumns,
|
|
15546
|
+
jky: jkyColumns
|
|
15224
15547
|
});
|
|
15225
15548
|
};
|
|
15226
15549
|
var getColumnsBaseInfo = function getColumnsBaseInfo() {
|
|
@@ -15318,6 +15641,64 @@ var useGetColumns = (function (type) {
|
|
|
15318
15641
|
return [columns, showColumnsDataIndexList, loading];
|
|
15319
15642
|
});
|
|
15320
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
|
+
|
|
15321
15702
|
function SearchForm(_ref) {
|
|
15322
15703
|
var searchFormData = _ref.searchFormData,
|
|
15323
15704
|
form = _ref.form,
|
|
@@ -15369,7 +15750,16 @@ function SearchForm(_ref) {
|
|
|
15369
15750
|
style: {
|
|
15370
15751
|
marginBottom: '12px'
|
|
15371
15752
|
}
|
|
15372
|
-
}, 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({
|
|
15373
15763
|
placeholder: label,
|
|
15374
15764
|
showSearch: true,
|
|
15375
15765
|
allowClear: true,
|
|
@@ -15410,24 +15800,42 @@ function SearchForm(_ref) {
|
|
|
15410
15800
|
}, "\u91CD\u7F6E")));
|
|
15411
15801
|
}
|
|
15412
15802
|
|
|
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
|
+
|
|
15413
15827
|
var getTableData = function getTableData(_ref, formData) {
|
|
15414
|
-
var _formData$brandIds;
|
|
15415
15828
|
var current = _ref.current,
|
|
15416
15829
|
pageSize = _ref.pageSize;
|
|
15417
|
-
var
|
|
15418
|
-
brandIds: ((_formData$brandIds = formData.brandIds) === null || _formData$brandIds === void 0 ? void 0 : _formData$brandIds.length) ? formData.brandIds : null,
|
|
15419
|
-
skuCode: formData.skuCode || null,
|
|
15420
|
-
skuName: formData.skuName || null,
|
|
15421
|
-
goodName: formData.goodName || null,
|
|
15422
|
-
goodNo: formData.goodNo || null
|
|
15423
|
-
};
|
|
15830
|
+
var conditionList = transformFormData(formData);
|
|
15424
15831
|
return extendRequest('/qy/gdfw/product/product/page', {
|
|
15425
15832
|
method: 'post',
|
|
15426
|
-
data:
|
|
15833
|
+
data: {
|
|
15427
15834
|
pageSize: pageSize,
|
|
15428
15835
|
pageNo: current,
|
|
15429
|
-
platform: 'WDT_ERP'
|
|
15430
|
-
|
|
15836
|
+
platform: 'WDT_ERP',
|
|
15837
|
+
conditionList: conditionList
|
|
15838
|
+
}
|
|
15431
15839
|
}).then(function (res) {
|
|
15432
15840
|
var _res$data = res.data,
|
|
15433
15841
|
_res$data$productSkuL = _res$data.productSkuList,
|
|
@@ -15521,13 +15929,15 @@ var GoodList = function GoodList(props, ref) {
|
|
|
15521
15929
|
}, {
|
|
15522
15930
|
label: 'SKU编码',
|
|
15523
15931
|
name: 'skuCode',
|
|
15524
|
-
dataIndex: 'specNo'
|
|
15932
|
+
dataIndex: 'specNo',
|
|
15933
|
+
type: 'optionalInput'
|
|
15525
15934
|
}, {
|
|
15526
15935
|
label: '商品名称',
|
|
15527
15936
|
name: 'goodName'
|
|
15528
15937
|
}, {
|
|
15529
15938
|
label: '商品编码',
|
|
15530
|
-
name: 'goodNo'
|
|
15939
|
+
name: 'goodNo',
|
|
15940
|
+
type: 'optionalInput'
|
|
15531
15941
|
}, {
|
|
15532
15942
|
label: '品牌',
|
|
15533
15943
|
name: 'brandIds',
|
|
@@ -15717,13 +16127,15 @@ var WdtGoodsModal = /*#__PURE__*/forwardRef(GoodsModal$3);
|
|
|
15717
16127
|
var getTableData$1 = function getTableData(_ref, formData) {
|
|
15718
16128
|
var current = _ref.current,
|
|
15719
16129
|
pageSize = _ref.pageSize;
|
|
16130
|
+
var conditionList = transformFormData(formData);
|
|
15720
16131
|
return extendRequest('/qy/gdfw/product/product/page', {
|
|
15721
16132
|
method: 'post',
|
|
15722
|
-
data:
|
|
16133
|
+
data: {
|
|
15723
16134
|
pageSize: pageSize,
|
|
15724
16135
|
pageNo: current,
|
|
15725
|
-
platform: 'JST_ERP'
|
|
15726
|
-
|
|
16136
|
+
platform: 'JST_ERP',
|
|
16137
|
+
conditionList: conditionList
|
|
16138
|
+
}
|
|
15727
16139
|
}).then(function (res) {
|
|
15728
16140
|
var _res$data = res.data,
|
|
15729
16141
|
_res$data$productSkuL = _res$data.productSkuList,
|
|
@@ -15744,10 +16156,12 @@ var searchFormData = [{
|
|
|
15744
16156
|
name: 'goodName'
|
|
15745
16157
|
}, {
|
|
15746
16158
|
label: '商品编码',
|
|
15747
|
-
name: 'goodNo'
|
|
16159
|
+
name: 'goodNo',
|
|
16160
|
+
type: 'optionalInput'
|
|
15748
16161
|
}, {
|
|
15749
16162
|
label: '款式编码',
|
|
15750
|
-
name: 'styleCode'
|
|
16163
|
+
name: 'styleCode',
|
|
16164
|
+
type: 'optionalInput'
|
|
15751
16165
|
}, {
|
|
15752
16166
|
label: '商品类型',
|
|
15753
16167
|
name: 'skuType',
|
|
@@ -15968,19 +16382,15 @@ var JstGoodsModal = /*#__PURE__*/forwardRef(GyGoodsModal);
|
|
|
15968
16382
|
var getTableData$2 = function getTableData(_ref, formData) {
|
|
15969
16383
|
var current = _ref.current,
|
|
15970
16384
|
pageSize = _ref.pageSize;
|
|
15971
|
-
var
|
|
15972
|
-
goodNo: formData.goodNo || null,
|
|
15973
|
-
goodName: formData.goodName || null,
|
|
15974
|
-
skuCode: formData.skuCode || null,
|
|
15975
|
-
skuId: formData.skuId || null
|
|
15976
|
-
};
|
|
16385
|
+
var conditionList = transformFormData(formData);
|
|
15977
16386
|
return extendRequest('/qy/gdfw/product/product/page', {
|
|
15978
16387
|
method: 'post',
|
|
15979
|
-
data:
|
|
16388
|
+
data: {
|
|
15980
16389
|
pageSize: pageSize,
|
|
15981
16390
|
pageNo: current,
|
|
15982
|
-
platform: 'BS_E3_ERP'
|
|
15983
|
-
|
|
16391
|
+
platform: 'BS_E3_ERP',
|
|
16392
|
+
conditionList: conditionList
|
|
16393
|
+
}
|
|
15984
16394
|
}).then(function (res) {
|
|
15985
16395
|
var _res$data = res.data,
|
|
15986
16396
|
_res$data$productSkuL = _res$data.productSkuList,
|
|
@@ -16000,18 +16410,21 @@ var getTableData$2 = function getTableData(_ref, formData) {
|
|
|
16000
16410
|
};
|
|
16001
16411
|
var searchFormData$1 = [{
|
|
16002
16412
|
label: '商品货号',
|
|
16003
|
-
name: 'goodNo'
|
|
16413
|
+
name: 'goodNo',
|
|
16414
|
+
type: 'optionalInput'
|
|
16004
16415
|
}, {
|
|
16005
16416
|
label: '商品名称',
|
|
16006
16417
|
name: 'goodName'
|
|
16007
16418
|
}, {
|
|
16008
16419
|
label: 'SKU',
|
|
16009
16420
|
name: 'skuCode',
|
|
16010
|
-
dataIndex: 'specNo'
|
|
16421
|
+
dataIndex: 'specNo',
|
|
16422
|
+
type: 'optionalInput'
|
|
16011
16423
|
}, {
|
|
16012
16424
|
label: 'SKU ID',
|
|
16013
16425
|
name: 'skuId',
|
|
16014
|
-
dataIndex: 'specId'
|
|
16426
|
+
dataIndex: 'specId',
|
|
16427
|
+
type: 'optionalInput'
|
|
16015
16428
|
}];
|
|
16016
16429
|
var GoodList$2 = function GoodList(props, ref) {
|
|
16017
16430
|
var _useState = useState([]),
|
|
@@ -16213,13 +16626,15 @@ var rowCheckKey = 'id';
|
|
|
16213
16626
|
var getTableData$3 = function getTableData(_ref, formData) {
|
|
16214
16627
|
var current = _ref.current,
|
|
16215
16628
|
pageSize = _ref.pageSize;
|
|
16629
|
+
var conditionList = transformFormData(formData);
|
|
16216
16630
|
return extendRequest('/qy/gdfw/product/product/page', {
|
|
16217
16631
|
method: 'post',
|
|
16218
|
-
data:
|
|
16632
|
+
data: {
|
|
16219
16633
|
pageSize: pageSize,
|
|
16220
16634
|
pageNo: current,
|
|
16221
|
-
platform: 'KM_ERP'
|
|
16222
|
-
|
|
16635
|
+
platform: 'KM_ERP',
|
|
16636
|
+
conditionList: conditionList
|
|
16637
|
+
}
|
|
16223
16638
|
}).then(function (res) {
|
|
16224
16639
|
var _res$data = res.data,
|
|
16225
16640
|
_res$data$productSkuL = _res$data.productSkuList,
|
|
@@ -16240,7 +16655,8 @@ var searchFormData$2 = [{
|
|
|
16240
16655
|
name: 'goodName'
|
|
16241
16656
|
}, {
|
|
16242
16657
|
label: '商品编码',
|
|
16243
|
-
name: 'goodNo'
|
|
16658
|
+
name: 'goodNo',
|
|
16659
|
+
type: 'optionalInput'
|
|
16244
16660
|
}, {
|
|
16245
16661
|
label: 'SKU名称',
|
|
16246
16662
|
name: 'skuName',
|
|
@@ -16248,7 +16664,8 @@ var searchFormData$2 = [{
|
|
|
16248
16664
|
}, {
|
|
16249
16665
|
label: 'SKU编码',
|
|
16250
16666
|
name: 'skuCode',
|
|
16251
|
-
dataIndex: 'specNo'
|
|
16667
|
+
dataIndex: 'specNo',
|
|
16668
|
+
type: 'optionalInput'
|
|
16252
16669
|
}];
|
|
16253
16670
|
var GoodList$3 = function GoodList(props, ref) {
|
|
16254
16671
|
var _useState = useState([]),
|
|
@@ -16456,20 +16873,15 @@ var KmGoodsModal = /*#__PURE__*/forwardRef(ErpGoodsModal);
|
|
|
16456
16873
|
var getTableData$4 = function getTableData(_ref, formData) {
|
|
16457
16874
|
var current = _ref.current,
|
|
16458
16875
|
pageSize = _ref.pageSize;
|
|
16459
|
-
var
|
|
16460
|
-
goodShortName: formData.goodShortName || null,
|
|
16461
|
-
skuName: formData.skuName || null,
|
|
16462
|
-
skuCode: formData.skuCode || null,
|
|
16463
|
-
goodName: formData.goodName || null,
|
|
16464
|
-
goodNo: formData.goodNo || null
|
|
16465
|
-
};
|
|
16876
|
+
var conditionList = transformFormData(formData);
|
|
16466
16877
|
return extendRequest('/qy/gdfw/product/product/page', {
|
|
16467
16878
|
method: 'post',
|
|
16468
|
-
data:
|
|
16879
|
+
data: {
|
|
16469
16880
|
pageSize: pageSize,
|
|
16470
16881
|
pageNo: current,
|
|
16471
|
-
platform: 'GY_ERP'
|
|
16472
|
-
|
|
16882
|
+
platform: 'GY_ERP',
|
|
16883
|
+
conditionList: conditionList
|
|
16884
|
+
}
|
|
16473
16885
|
}).then(function (res) {
|
|
16474
16886
|
var _res$data = res.data,
|
|
16475
16887
|
_res$data$productSkuL = _res$data.productSkuList,
|
|
@@ -16495,13 +16907,15 @@ var searchFormData$3 = [{
|
|
|
16495
16907
|
}, {
|
|
16496
16908
|
label: '商品sku编码',
|
|
16497
16909
|
name: 'skuCode',
|
|
16498
|
-
dataIndex: 'specNo'
|
|
16910
|
+
dataIndex: 'specNo',
|
|
16911
|
+
type: 'optionalInput'
|
|
16499
16912
|
}, {
|
|
16500
16913
|
label: '商品名称',
|
|
16501
16914
|
name: 'goodName'
|
|
16502
16915
|
}, {
|
|
16503
16916
|
label: '商品编码',
|
|
16504
|
-
name: 'goodNo'
|
|
16917
|
+
name: 'goodNo',
|
|
16918
|
+
type: 'optionalInput'
|
|
16505
16919
|
}];
|
|
16506
16920
|
var GoodList$4 = function GoodList(props, ref) {
|
|
16507
16921
|
var _useState = useState([]),
|
|
@@ -18121,13 +18535,15 @@ var GyGoodsModal$2 = /*#__PURE__*/forwardRef(GyGoodsModal$1);
|
|
|
18121
18535
|
var getTableData$5 = function getTableData(_ref, formData) {
|
|
18122
18536
|
var current = _ref.current,
|
|
18123
18537
|
pageSize = _ref.pageSize;
|
|
18538
|
+
var conditionList = transformFormData(formData);
|
|
18124
18539
|
return extendRequest('/qy/gdfw/product/product/page', {
|
|
18125
18540
|
method: 'post',
|
|
18126
|
-
data:
|
|
18541
|
+
data: {
|
|
18127
18542
|
pageSize: pageSize,
|
|
18128
18543
|
pageNo: current,
|
|
18129
|
-
platform: 'JY_ERP'
|
|
18130
|
-
|
|
18544
|
+
platform: 'JY_ERP',
|
|
18545
|
+
conditionList: conditionList
|
|
18546
|
+
}
|
|
18131
18547
|
}).then(function (res) {
|
|
18132
18548
|
var _res$data = res.data,
|
|
18133
18549
|
_res$data$productSkuL = _res$data.productSkuList,
|
|
@@ -18150,13 +18566,15 @@ var searchFormData$4 = [{
|
|
|
18150
18566
|
}, {
|
|
18151
18567
|
label: '规格编码',
|
|
18152
18568
|
name: 'skuCode',
|
|
18153
|
-
dataIndex: 'specNo'
|
|
18569
|
+
dataIndex: 'specNo',
|
|
18570
|
+
type: 'optionalInput'
|
|
18154
18571
|
}, {
|
|
18155
18572
|
label: '商品名称',
|
|
18156
18573
|
name: 'goodName'
|
|
18157
18574
|
}, {
|
|
18158
18575
|
label: '商品编码',
|
|
18159
|
-
name: 'goodNo'
|
|
18576
|
+
name: 'goodNo',
|
|
18577
|
+
type: 'optionalInput'
|
|
18160
18578
|
}];
|
|
18161
18579
|
var GoodList$5 = function GoodList(props, ref) {
|
|
18162
18580
|
var _useState = useState([]),
|
|
@@ -18361,136 +18779,379 @@ var JyGoodsModal = function JyGoodsModal(props, ref) {
|
|
|
18361
18779
|
};
|
|
18362
18780
|
var JyGoodsModal$1 = /*#__PURE__*/forwardRef(JyGoodsModal);
|
|
18363
18781
|
|
|
18364
|
-
var
|
|
18365
|
-
var
|
|
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
|
-
|
|
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;
|
|
18399
18840
|
}
|
|
18400
|
-
}
|
|
18401
|
-
|
|
18402
|
-
|
|
18403
|
-
|
|
18404
|
-
|
|
18405
|
-
|
|
18406
|
-
|
|
18407
|
-
|
|
18408
|
-
|
|
18409
|
-
|
|
18410
|
-
|
|
18411
|
-
|
|
18412
|
-
|
|
18413
|
-
|
|
18414
|
-
|
|
18415
|
-
|
|
18416
|
-
|
|
18417
|
-
|
|
18418
|
-
|
|
18419
|
-
|
|
18420
|
-
|
|
18421
|
-
|
|
18422
|
-
|
|
18423
|
-
|
|
18424
|
-
|
|
18425
|
-
|
|
18426
|
-
|
|
18427
|
-
|
|
18428
|
-
width: 150,
|
|
18429
|
-
render: renderTextEllipsis
|
|
18430
|
-
}, {
|
|
18431
|
-
dataIndex: 'brandName',
|
|
18432
|
-
title: "\u54C1\u724C\u540D\u79F0",
|
|
18433
|
-
width: 150,
|
|
18434
|
-
render: renderTextEllipsis
|
|
18435
|
-
}, {
|
|
18436
|
-
dataIndex: 'goodsNumber',
|
|
18437
|
-
title: "\u5546\u54C1\u6570\u91CF",
|
|
18438
|
-
width: 150
|
|
18439
|
-
}, {
|
|
18440
|
-
dataIndex: 'goodsPrice',
|
|
18441
|
-
title: "\u5546\u54C1\u5355\u4EF7",
|
|
18442
|
-
width: 150
|
|
18443
|
-
}, {
|
|
18444
|
-
dataIndex: 'shopPrice',
|
|
18445
|
-
title: "\u5546\u54C1\u7F51\u5E97\u552E\u4EF7",
|
|
18446
|
-
width: 150
|
|
18447
|
-
}, {
|
|
18448
|
-
dataIndex: 'isGift',
|
|
18449
|
-
title: "\u662F\u5426\u8D60\u54C1",
|
|
18450
|
-
width: 150,
|
|
18451
|
-
render: function render(val) {
|
|
18452
|
-
return /*#__PURE__*/React.createElement("span", null, +val ? '是' : '否');
|
|
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
|
+
}));
|
|
18453
18869
|
}
|
|
18454
|
-
}
|
|
18455
|
-
|
|
18456
|
-
|
|
18457
|
-
|
|
18458
|
-
|
|
18459
|
-
|
|
18460
|
-
|
|
18461
|
-
|
|
18462
|
-
|
|
18463
|
-
|
|
18464
|
-
|
|
18465
|
-
|
|
18466
|
-
|
|
18467
|
-
|
|
18468
|
-
|
|
18469
|
-
|
|
18470
|
-
},
|
|
18471
|
-
|
|
18472
|
-
|
|
18473
|
-
|
|
18474
|
-
|
|
18475
|
-
|
|
18476
|
-
|
|
18477
|
-
|
|
18478
|
-
|
|
18479
|
-
|
|
18480
|
-
|
|
18481
|
-
|
|
18482
|
-
|
|
18483
|
-
|
|
18484
|
-
|
|
18485
|
-
|
|
18486
|
-
|
|
18487
|
-
|
|
18488
|
-
|
|
18489
|
-
|
|
18490
|
-
|
|
18491
|
-
|
|
18492
|
-
|
|
18493
|
-
|
|
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
|
|
18494
19155
|
});
|
|
18495
19156
|
}
|
|
18496
19157
|
}, {
|
|
@@ -18946,7 +19607,8 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
18946
19607
|
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
18947
19608
|
width: 180,
|
|
18948
19609
|
align: 'center',
|
|
18949
|
-
ellipsis: true
|
|
19610
|
+
ellipsis: true,
|
|
19611
|
+
render: renderTextEllipsis
|
|
18950
19612
|
}, {
|
|
18951
19613
|
dataIndex: 'brandName',
|
|
18952
19614
|
title: "\u54C1\u724C\u540D\u79F0",
|
|
@@ -19080,7 +19742,8 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
19080
19742
|
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
19081
19743
|
width: 180,
|
|
19082
19744
|
align: 'center',
|
|
19083
|
-
ellipsis: true
|
|
19745
|
+
ellipsis: true,
|
|
19746
|
+
render: renderTextEllipsis
|
|
19084
19747
|
}, {
|
|
19085
19748
|
dataIndex: 'brandName',
|
|
19086
19749
|
title: "\u54C1\u724C\u540D\u79F0",
|
|
@@ -19219,7 +19882,8 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
19219
19882
|
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
19220
19883
|
width: 180,
|
|
19221
19884
|
align: 'center',
|
|
19222
|
-
ellipsis: true
|
|
19885
|
+
ellipsis: true,
|
|
19886
|
+
render: renderTextEllipsis
|
|
19223
19887
|
}, {
|
|
19224
19888
|
dataIndex: 'brandName',
|
|
19225
19889
|
title: "\u54C1\u724C\u540D\u79F0",
|
|
@@ -19396,7 +20060,8 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
19396
20060
|
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
19397
20061
|
width: 180,
|
|
19398
20062
|
align: 'center',
|
|
19399
|
-
ellipsis: true
|
|
20063
|
+
ellipsis: true,
|
|
20064
|
+
render: renderTextEllipsis
|
|
19400
20065
|
}, {
|
|
19401
20066
|
dataIndex: 'brandName',
|
|
19402
20067
|
title: "\u54C1\u724C\u540D\u79F0",
|
|
@@ -20348,7 +21013,7 @@ var getColumns$5 = function getColumns() {
|
|
|
20348
21013
|
ellipsis: true,
|
|
20349
21014
|
align: 'center',
|
|
20350
21015
|
render: function render(val, record, index) {
|
|
20351
|
-
return (record.qty || 0) * (+record.salePrice || 0);
|
|
21016
|
+
return ((record.qty || 0) * (+record.salePrice || 0)).toFixed(2);
|
|
20352
21017
|
}
|
|
20353
21018
|
}, {
|
|
20354
21019
|
dataIndex: 'batchId',
|
|
@@ -20457,7 +21122,268 @@ var getColumns$5 = function getColumns() {
|
|
|
20457
21122
|
// }
|
|
20458
21123
|
// },
|
|
20459
21124
|
render: function render(val, record, index) {
|
|
20460
|
-
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, {
|
|
20461
21387
|
style: {
|
|
20462
21388
|
width: 70
|
|
20463
21389
|
},
|
|
@@ -20472,24 +21398,9 @@ var getColumns$5 = function getColumns() {
|
|
|
20472
21398
|
}, {
|
|
20473
21399
|
dataIndex: 'qty',
|
|
20474
21400
|
title: '数量',
|
|
20475
|
-
ellipsis: true,
|
|
20476
|
-
align: 'center',
|
|
20477
21401
|
width: 100,
|
|
20478
|
-
validator: function validator(_rule, value) {
|
|
20479
|
-
var goodsName = '';
|
|
20480
|
-
if (((value === null || value === void 0 ? void 0 : value.jstReissueGoods) || []).some(function (goods) {
|
|
20481
|
-
var qty = toNum$2(goods === null || goods === void 0 ? void 0 : goods.qty);
|
|
20482
|
-
var res = typeof qty === 'number' ? qty < 1 : true;
|
|
20483
|
-
if (res) {
|
|
20484
|
-
goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
|
|
20485
|
-
}
|
|
20486
|
-
return res;
|
|
20487
|
-
})) {
|
|
20488
|
-
return Promise.reject("".concat(goodsName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
20489
|
-
}
|
|
20490
|
-
},
|
|
20491
21402
|
render: function render(val, record, index) {
|
|
20492
|
-
return
|
|
21403
|
+
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
20493
21404
|
style: {
|
|
20494
21405
|
width: 70
|
|
20495
21406
|
},
|
|
@@ -20501,14 +21412,18 @@ var getColumns$5 = function getColumns() {
|
|
|
20501
21412
|
}
|
|
20502
21413
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
20503
21414
|
}
|
|
21415
|
+
}, {
|
|
21416
|
+
dataIndex: 'saleAmount',
|
|
21417
|
+
title: '总金额',
|
|
21418
|
+
render: function render(val, record) {
|
|
21419
|
+
return ((record.qty || 0) * (+record.salePrice || 0)).toFixed(2);
|
|
21420
|
+
}
|
|
20504
21421
|
}, {
|
|
20505
21422
|
dataIndex: 'isGift',
|
|
20506
21423
|
title: '是否赠品',
|
|
20507
|
-
ellipsis: true,
|
|
20508
|
-
align: 'center',
|
|
20509
21424
|
width: 100,
|
|
20510
21425
|
render: function render(val, record, index) {
|
|
20511
|
-
return
|
|
21426
|
+
return !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
20512
21427
|
value: val,
|
|
20513
21428
|
onChange: function onChange(value) {
|
|
20514
21429
|
updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(value, index, 'isGift');
|
|
@@ -20525,11 +21440,8 @@ var getColumns$5 = function getColumns() {
|
|
|
20525
21440
|
}, {
|
|
20526
21441
|
dataIndex: 'remark',
|
|
20527
21442
|
title: '备注',
|
|
20528
|
-
width: 150,
|
|
20529
|
-
ellipsis: true,
|
|
20530
|
-
align: 'center',
|
|
20531
21443
|
render: function render(val, record, index) {
|
|
20532
|
-
return
|
|
21444
|
+
return !disabled ? /*#__PURE__*/React.createElement(Input, {
|
|
20533
21445
|
style: {
|
|
20534
21446
|
width: 70
|
|
20535
21447
|
},
|
|
@@ -20539,203 +21451,385 @@ var getColumns$5 = function getColumns() {
|
|
|
20539
21451
|
}
|
|
20540
21452
|
}) : renderTextEllipsis(val);
|
|
20541
21453
|
}
|
|
20542
|
-
}],
|
|
20543
|
-
|
|
20544
|
-
|
|
20545
|
-
|
|
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,
|
|
20546
21462
|
render: renderTextEllipsis
|
|
20547
21463
|
}, {
|
|
20548
|
-
dataIndex: '
|
|
20549
|
-
title:
|
|
21464
|
+
dataIndex: 'asiId',
|
|
21465
|
+
title: "\u552E\u540E\u5B50\u5355\u53F7",
|
|
21466
|
+
width: 200,
|
|
21467
|
+
align: 'center',
|
|
21468
|
+
ellipsis: true,
|
|
20550
21469
|
render: renderTextEllipsis
|
|
20551
21470
|
}, {
|
|
20552
|
-
dataIndex: '
|
|
20553
|
-
title:
|
|
21471
|
+
dataIndex: 'outerOiId',
|
|
21472
|
+
title: "\u5B50\u8BA2\u5355\u53F7",
|
|
21473
|
+
width: 200,
|
|
21474
|
+
align: 'center',
|
|
21475
|
+
ellipsis: true,
|
|
20554
21476
|
render: renderTextEllipsis
|
|
20555
21477
|
}, {
|
|
20556
21478
|
dataIndex: 'pic',
|
|
20557
|
-
title:
|
|
21479
|
+
title: "\u56FE\u7247",
|
|
20558
21480
|
width: 100,
|
|
21481
|
+
align: 'center',
|
|
20559
21482
|
render: function render(val) {
|
|
20560
21483
|
return /*#__PURE__*/React.createElement(ApaasImage, {
|
|
20561
21484
|
width: 30,
|
|
20562
21485
|
src: val
|
|
20563
21486
|
});
|
|
20564
|
-
}
|
|
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
|
|
20565
21503
|
}, {
|
|
20566
21504
|
dataIndex: 'propertiesValue',
|
|
20567
|
-
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,
|
|
20568
21678
|
render: renderTextEllipsis
|
|
20569
21679
|
}, {
|
|
20570
|
-
dataIndex: '
|
|
20571
|
-
title:
|
|
20572
|
-
|
|
20573
|
-
|
|
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
|
+
});
|
|
20574
21689
|
}
|
|
20575
21690
|
}, {
|
|
20576
|
-
dataIndex: '
|
|
20577
|
-
title:
|
|
20578
|
-
width:
|
|
20579
|
-
validator: function validator(_rule, value) {
|
|
20580
|
-
var goodsName = '';
|
|
20581
|
-
if (((value === null || value === void 0 ? void 0 : value.jstReturnGoods) || []).some(function (goods) {
|
|
20582
|
-
var v = toNum$2(goods === null || goods === void 0 ? void 0 : goods.salePrice);
|
|
20583
|
-
var res = typeof v === 'number' ? v < 0 : true;
|
|
20584
|
-
if (res) {
|
|
20585
|
-
goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
|
|
20586
|
-
}
|
|
20587
|
-
return res;
|
|
20588
|
-
})) {
|
|
20589
|
-
return Promise.reject("".concat(goodsName, "\u5355\u4EF7\u4E3A\u5927\u4E8E\u7B49\u4E8E0\u7684\u6570"));
|
|
20590
|
-
}
|
|
20591
|
-
},
|
|
21691
|
+
dataIndex: 'num',
|
|
21692
|
+
title: "\u6570\u91CF",
|
|
21693
|
+
width: 100,
|
|
20592
21694
|
render: function render(val, record, index) {
|
|
20593
|
-
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
21695
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
20594
21696
|
style: {
|
|
20595
21697
|
width: 70
|
|
20596
21698
|
},
|
|
20597
21699
|
value: val,
|
|
20598
|
-
min:
|
|
20599
|
-
precision:
|
|
21700
|
+
min: 1,
|
|
21701
|
+
precision: 0,
|
|
20600
21702
|
onChange: function onChange(num) {
|
|
20601
|
-
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, '
|
|
21703
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'num');
|
|
20602
21704
|
}
|
|
20603
|
-
}) : /*#__PURE__*/React.createElement("span", null, val
|
|
21705
|
+
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
20604
21706
|
}
|
|
20605
21707
|
}, {
|
|
20606
|
-
dataIndex: '
|
|
20607
|
-
title:
|
|
20608
|
-
width:
|
|
20609
|
-
validator: function validator(_rule, value) {
|
|
20610
|
-
var goodsName = '';
|
|
20611
|
-
if (((value === null || value === void 0 ? void 0 : value.jstReturnGoods) || []).some(function (goods) {
|
|
20612
|
-
var qty = toNum$2(goods === null || goods === void 0 ? void 0 : goods.qty);
|
|
20613
|
-
var res = typeof qty === 'number' ? qty < 1 : true;
|
|
20614
|
-
if (res) {
|
|
20615
|
-
goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
|
|
20616
|
-
}
|
|
20617
|
-
return res;
|
|
20618
|
-
})) {
|
|
20619
|
-
return Promise.reject("".concat(goodsName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
20620
|
-
}
|
|
20621
|
-
},
|
|
21708
|
+
dataIndex: 'payment',
|
|
21709
|
+
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
21710
|
+
width: 150,
|
|
20622
21711
|
render: function render(val, record, index) {
|
|
20623
|
-
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
21712
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
20624
21713
|
style: {
|
|
20625
|
-
width:
|
|
21714
|
+
width: 130
|
|
20626
21715
|
},
|
|
20627
21716
|
value: val,
|
|
20628
|
-
min:
|
|
20629
|
-
precision:
|
|
21717
|
+
min: 0,
|
|
21718
|
+
precision: 2,
|
|
20630
21719
|
onChange: function onChange(num) {
|
|
20631
|
-
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, '
|
|
21720
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'payment');
|
|
20632
21721
|
}
|
|
20633
|
-
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
21722
|
+
}) : /*#__PURE__*/React.createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
|
|
20634
21723
|
}
|
|
20635
21724
|
}, {
|
|
20636
|
-
dataIndex: '
|
|
20637
|
-
title:
|
|
20638
|
-
|
|
20639
|
-
|
|
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) : '';
|
|
20640
21730
|
}
|
|
20641
21731
|
}, {
|
|
20642
|
-
dataIndex: '
|
|
20643
|
-
title:
|
|
21732
|
+
dataIndex: 'type',
|
|
21733
|
+
title: "\u5546\u54C1\u7C7B\u578B",
|
|
21734
|
+
width: 150,
|
|
20644
21735
|
render: renderTextEllipsis
|
|
20645
21736
|
}, {
|
|
20646
|
-
dataIndex: '
|
|
20647
|
-
title:
|
|
20648
|
-
width:
|
|
20649
|
-
render:
|
|
20650
|
-
return !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
20651
|
-
value: val,
|
|
20652
|
-
onChange: function onChange(value) {
|
|
20653
|
-
updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(value, index, 'isGift');
|
|
20654
|
-
},
|
|
20655
|
-
options: [{
|
|
20656
|
-
label: '是',
|
|
20657
|
-
value: true
|
|
20658
|
-
}, {
|
|
20659
|
-
label: '否',
|
|
20660
|
-
value: false
|
|
20661
|
-
}]
|
|
20662
|
-
}) : /*#__PURE__*/React.createElement("span", null, typeof val !== 'boolean' ? '' : val ? '是' : '否');
|
|
20663
|
-
}
|
|
21737
|
+
dataIndex: 'supplierName',
|
|
21738
|
+
title: "\u4F9B\u5E94\u5546\u540D\u79F0",
|
|
21739
|
+
width: 150,
|
|
21740
|
+
render: renderTextEllipsis
|
|
20664
21741
|
}, {
|
|
20665
|
-
dataIndex: '
|
|
20666
|
-
title:
|
|
20667
|
-
|
|
20668
|
-
|
|
20669
|
-
|
|
20670
|
-
|
|
20671
|
-
|
|
20672
|
-
|
|
20673
|
-
|
|
20674
|
-
|
|
20675
|
-
|
|
20676
|
-
|
|
20677
|
-
|
|
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
|
|
20678
21757
|
}, {
|
|
20679
|
-
dataIndex: '
|
|
20680
|
-
title:
|
|
20681
|
-
width:
|
|
21758
|
+
dataIndex: 'sysTitle',
|
|
21759
|
+
title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
|
|
21760
|
+
width: 150,
|
|
20682
21761
|
render: renderTextEllipsis
|
|
20683
|
-
}
|
|
20684
|
-
|
|
20685
|
-
|
|
20686
|
-
|
|
21762
|
+
}, {
|
|
21763
|
+
dataIndex: 'shortTitle',
|
|
21764
|
+
title: "\u5546\u54C1\u7B80\u79F0",
|
|
21765
|
+
width: 150,
|
|
20687
21766
|
render: renderTextEllipsis
|
|
20688
21767
|
}, {
|
|
20689
|
-
dataIndex: '
|
|
20690
|
-
title:
|
|
21768
|
+
dataIndex: 'title',
|
|
21769
|
+
title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
|
|
21770
|
+
width: 150,
|
|
20691
21771
|
render: renderTextEllipsis
|
|
20692
21772
|
}, {
|
|
20693
|
-
dataIndex: '
|
|
20694
|
-
title:
|
|
21773
|
+
dataIndex: 'sysOuterId',
|
|
21774
|
+
title: "\u7CFB\u7EDF\u5546\u5BB6\u7F16\u7801",
|
|
21775
|
+
width: 150,
|
|
20695
21776
|
render: renderTextEllipsis
|
|
20696
21777
|
}, {
|
|
20697
|
-
dataIndex: '
|
|
20698
|
-
title:
|
|
20699
|
-
width:
|
|
20700
|
-
render:
|
|
20701
|
-
return /*#__PURE__*/React.createElement(ApaasImage, {
|
|
20702
|
-
width: 30,
|
|
20703
|
-
src: val
|
|
20704
|
-
});
|
|
20705
|
-
}
|
|
21778
|
+
dataIndex: 'itemSysId',
|
|
21779
|
+
title: "\u7CFB\u7EDF\u5546\u54C1ID",
|
|
21780
|
+
width: 150,
|
|
21781
|
+
render: renderTextEllipsis
|
|
20706
21782
|
}, {
|
|
20707
|
-
dataIndex: '
|
|
20708
|
-
title:
|
|
21783
|
+
dataIndex: 'skuSysId',
|
|
21784
|
+
title: "\u7CFB\u7EDF\u89C4\u683CID",
|
|
21785
|
+
width: 150,
|
|
20709
21786
|
render: renderTextEllipsis
|
|
20710
21787
|
}, {
|
|
20711
|
-
dataIndex: '
|
|
20712
|
-
title:
|
|
20713
|
-
|
|
20714
|
-
|
|
20715
|
-
}
|
|
21788
|
+
dataIndex: 'skuId',
|
|
21789
|
+
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
21790
|
+
width: 170,
|
|
21791
|
+
render: renderTextEllipsis
|
|
20716
21792
|
}, {
|
|
20717
|
-
dataIndex: '
|
|
20718
|
-
title:
|
|
20719
|
-
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
|
+
},
|
|
20720
21814
|
render: function render(val, record, index) {
|
|
20721
|
-
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
21815
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
20722
21816
|
style: {
|
|
20723
21817
|
width: 70
|
|
20724
21818
|
},
|
|
20725
21819
|
value: val,
|
|
20726
|
-
min:
|
|
20727
|
-
precision:
|
|
21820
|
+
min: 1,
|
|
21821
|
+
precision: 0,
|
|
20728
21822
|
onChange: function onChange(num) {
|
|
20729
|
-
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, '
|
|
21823
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'realNum');
|
|
20730
21824
|
}
|
|
20731
|
-
}) : /*#__PURE__*/React.createElement("span", null, val
|
|
21825
|
+
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
20732
21826
|
}
|
|
20733
21827
|
}, {
|
|
20734
|
-
dataIndex: '
|
|
20735
|
-
title:
|
|
21828
|
+
dataIndex: 'desiredNum',
|
|
21829
|
+
title: "\u5E94\u8865\u53D1\u6570\u91CF",
|
|
20736
21830
|
width: 100,
|
|
20737
21831
|
render: function render(val, record, index) {
|
|
20738
|
-
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
21832
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
20739
21833
|
style: {
|
|
20740
21834
|
width: 70
|
|
20741
21835
|
},
|
|
@@ -20743,281 +21837,194 @@ var getColumns$5 = function getColumns() {
|
|
|
20743
21837
|
min: 1,
|
|
20744
21838
|
precision: 0,
|
|
20745
21839
|
onChange: function onChange(num) {
|
|
20746
|
-
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, '
|
|
21840
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'desiredNum');
|
|
20747
21841
|
}
|
|
20748
21842
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
20749
21843
|
}
|
|
20750
21844
|
}, {
|
|
20751
|
-
dataIndex: '
|
|
20752
|
-
title:
|
|
20753
|
-
|
|
20754
|
-
|
|
20755
|
-
|
|
20756
|
-
}, {
|
|
20757
|
-
dataIndex: 'isGift',
|
|
20758
|
-
title: '是否赠品',
|
|
20759
|
-
width: 100,
|
|
20760
|
-
render: function render(val, record, index) {
|
|
20761
|
-
return !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
20762
|
-
value: val,
|
|
20763
|
-
onChange: function onChange(value) {
|
|
20764
|
-
updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(value, index, 'isGift');
|
|
20765
|
-
},
|
|
20766
|
-
options: [{
|
|
20767
|
-
label: '是',
|
|
20768
|
-
value: true
|
|
20769
|
-
}, {
|
|
20770
|
-
label: '否',
|
|
20771
|
-
value: false
|
|
20772
|
-
}]
|
|
20773
|
-
}) : /*#__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) : '';
|
|
20774
21850
|
}
|
|
20775
21851
|
}, {
|
|
20776
|
-
dataIndex: '
|
|
20777
|
-
title:
|
|
21852
|
+
dataIndex: 'payment',
|
|
21853
|
+
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
21854
|
+
width: 150,
|
|
20778
21855
|
render: function render(val, record, index) {
|
|
20779
|
-
return !disabled ? /*#__PURE__*/React.createElement(
|
|
21856
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
20780
21857
|
style: {
|
|
20781
|
-
width:
|
|
21858
|
+
width: 130
|
|
20782
21859
|
},
|
|
20783
21860
|
value: val,
|
|
20784
|
-
|
|
20785
|
-
|
|
21861
|
+
min: 0,
|
|
21862
|
+
precision: 2,
|
|
21863
|
+
onChange: function onChange(num) {
|
|
21864
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'payment');
|
|
20786
21865
|
}
|
|
20787
|
-
}) :
|
|
21866
|
+
}) : /*#__PURE__*/React.createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
|
|
20788
21867
|
}
|
|
20789
|
-
}
|
|
20790
|
-
|
|
20791
|
-
|
|
20792
|
-
|
|
20793
|
-
title: "\u805A\u6C34\u6F6D\u552E\u540E\u5355\u53F7",
|
|
20794
|
-
width: 200,
|
|
20795
|
-
align: 'center',
|
|
20796
|
-
ellipsis: true,
|
|
21868
|
+
}, {
|
|
21869
|
+
dataIndex: 'type',
|
|
21870
|
+
title: "\u5546\u54C1\u7C7B\u578B",
|
|
21871
|
+
width: 150,
|
|
20797
21872
|
render: renderTextEllipsis
|
|
20798
21873
|
}, {
|
|
20799
|
-
dataIndex: '
|
|
20800
|
-
title: "\
|
|
20801
|
-
width:
|
|
20802
|
-
align: 'center',
|
|
20803
|
-
ellipsis: true,
|
|
21874
|
+
dataIndex: 'supplierName',
|
|
21875
|
+
title: "\u4F9B\u5E94\u5546\u540D\u79F0",
|
|
21876
|
+
width: 150,
|
|
20804
21877
|
render: renderTextEllipsis
|
|
20805
21878
|
}, {
|
|
20806
|
-
dataIndex: '
|
|
20807
|
-
title: "\
|
|
20808
|
-
width:
|
|
20809
|
-
align: 'center',
|
|
20810
|
-
ellipsis: true,
|
|
21879
|
+
dataIndex: 'supplierCode',
|
|
21880
|
+
title: "\u4F9B\u5E94\u5546\u7F16\u7801",
|
|
21881
|
+
width: 150,
|
|
20811
21882
|
render: renderTextEllipsis
|
|
20812
21883
|
}, {
|
|
20813
|
-
dataIndex: '
|
|
20814
|
-
title: "\u56FE\u7247",
|
|
21884
|
+
dataIndex: 'sysPicPath',
|
|
21885
|
+
title: "\u5546\u54C1\u56FE\u7247",
|
|
20815
21886
|
width: 100,
|
|
20816
|
-
align: 'center',
|
|
20817
21887
|
render: function render(val) {
|
|
20818
|
-
|
|
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, {
|
|
20819
21890
|
width: 30,
|
|
20820
|
-
src:
|
|
21891
|
+
src: imgUrl
|
|
20821
21892
|
});
|
|
20822
|
-
}
|
|
20823
|
-
|
|
20824
|
-
|
|
20825
|
-
|
|
20826
|
-
|
|
20827
|
-
|
|
20828
|
-
|
|
20829
|
-
|
|
20830
|
-
|
|
20831
|
-
|
|
20832
|
-
|
|
20833
|
-
|
|
20834
|
-
|
|
20835
|
-
|
|
20836
|
-
|
|
20837
|
-
|
|
20838
|
-
|
|
20839
|
-
|
|
20840
|
-
|
|
20841
|
-
|
|
20842
|
-
|
|
20843
|
-
|
|
20844
|
-
|
|
20845
|
-
|
|
20846
|
-
|
|
20847
|
-
|
|
20848
|
-
|
|
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",
|
|
20849
21927
|
align: 'center',
|
|
20850
21928
|
ellipsis: true,
|
|
20851
|
-
render: renderTextEllipsis
|
|
20852
|
-
}, {
|
|
20853
|
-
dataIndex: 'rQty',
|
|
20854
|
-
title: "\u5B9E\u6536\u9000\u8D27\u6570\u91CF",
|
|
20855
21929
|
width: 150,
|
|
20856
|
-
align: 'center',
|
|
20857
|
-
ellipsis: true,
|
|
20858
21930
|
render: renderTextEllipsis
|
|
20859
21931
|
}, {
|
|
20860
|
-
dataIndex: '
|
|
20861
|
-
title: "\
|
|
20862
|
-
width: 150,
|
|
21932
|
+
dataIndex: 'productCode',
|
|
21933
|
+
title: "\u7CFB\u7EDF\u5546\u54C1\u7F16\u7801",
|
|
20863
21934
|
align: 'center',
|
|
20864
21935
|
ellipsis: true,
|
|
20865
|
-
render: renderTextEllipsis
|
|
20866
|
-
}, {
|
|
20867
|
-
dataIndex: 'amount',
|
|
20868
|
-
title: "\u7533\u8BF7\u91D1\u989D",
|
|
20869
21936
|
width: 150,
|
|
20870
|
-
align: 'center',
|
|
20871
|
-
ellipsis: true,
|
|
20872
21937
|
render: renderTextEllipsis
|
|
20873
21938
|
}, {
|
|
20874
|
-
dataIndex: '
|
|
20875
|
-
title: "\
|
|
20876
|
-
width: 150,
|
|
21939
|
+
dataIndex: 'productId',
|
|
21940
|
+
title: "\u7CFB\u7EDF\u5546\u54C1ID",
|
|
20877
21941
|
align: 'center',
|
|
20878
21942
|
ellipsis: true,
|
|
20879
|
-
render: renderTextEllipsis
|
|
20880
|
-
}, {
|
|
20881
|
-
dataIndex: 'price',
|
|
20882
|
-
title: "\u5355\u4EF7",
|
|
20883
21943
|
width: 150,
|
|
20884
|
-
align: 'center',
|
|
20885
|
-
ellipsis: true,
|
|
20886
21944
|
render: renderTextEllipsis
|
|
20887
21945
|
}, {
|
|
20888
|
-
dataIndex: '
|
|
20889
|
-
title: "\
|
|
20890
|
-
width: 250,
|
|
21946
|
+
dataIndex: 'skuName',
|
|
21947
|
+
title: "\u7CFB\u7EDF\u89C4\u683C\u540D\u79F0",
|
|
20891
21948
|
align: 'center',
|
|
20892
21949
|
ellipsis: true,
|
|
21950
|
+
width: 150,
|
|
20893
21951
|
render: renderTextEllipsis
|
|
20894
21952
|
}, {
|
|
20895
|
-
dataIndex: '
|
|
20896
|
-
title: "\
|
|
20897
|
-
width: 200,
|
|
21953
|
+
dataIndex: 'skuCode',
|
|
21954
|
+
title: "\u7CFB\u7EDF\u89C4\u683C\u7F16\u7801",
|
|
20898
21955
|
align: 'center',
|
|
20899
21956
|
ellipsis: true,
|
|
21957
|
+
width: 150,
|
|
20900
21958
|
render: renderTextEllipsis
|
|
20901
21959
|
}, {
|
|
20902
|
-
dataIndex: '
|
|
20903
|
-
title: "\
|
|
20904
|
-
width: 200,
|
|
21960
|
+
dataIndex: 'specId',
|
|
21961
|
+
title: "\u89C4\u683CID",
|
|
20905
21962
|
align: 'center',
|
|
20906
21963
|
ellipsis: true,
|
|
21964
|
+
width: 150,
|
|
20907
21965
|
render: renderTextEllipsis
|
|
20908
21966
|
}, {
|
|
20909
|
-
dataIndex: '
|
|
20910
|
-
title: "\
|
|
21967
|
+
dataIndex: 'goodsClass',
|
|
21968
|
+
title: "\u8D27\u54C1\u7C7B\u522B",
|
|
20911
21969
|
width: 150,
|
|
20912
|
-
align: 'center',
|
|
20913
|
-
ellipsis: true,
|
|
20914
21970
|
render: renderTextEllipsis
|
|
20915
21971
|
}, {
|
|
20916
|
-
dataIndex: '
|
|
20917
|
-
title: "\
|
|
21972
|
+
dataIndex: 'code',
|
|
21973
|
+
title: "\u6761\u7801",
|
|
20918
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",
|
|
20919
21994
|
align: 'center',
|
|
20920
21995
|
ellipsis: true,
|
|
21996
|
+
width: 250,
|
|
20921
21997
|
render: renderTextEllipsis
|
|
20922
21998
|
}, {
|
|
20923
|
-
dataIndex: '
|
|
20924
|
-
title:
|
|
20925
|
-
width: 100,
|
|
20926
|
-
render: function render(val) {
|
|
20927
|
-
return /*#__PURE__*/React.createElement("span", null, typeof val !== 'boolean' ? '' : val ? '是' : '否');
|
|
20928
|
-
},
|
|
20929
|
-
headerMapping: {
|
|
20930
|
-
transformValue: function transformValue(val) {
|
|
20931
|
-
return typeof val !== 'boolean' ? '' : val ? '是' : '否';
|
|
20932
|
-
},
|
|
20933
|
-
renderExport: function renderExport(val) {
|
|
20934
|
-
return typeof val !== 'boolean' ? '' : val ? '是' : '否';
|
|
20935
|
-
}
|
|
20936
|
-
}
|
|
20937
|
-
}, {
|
|
20938
|
-
dataIndex: 'receiveDate',
|
|
20939
|
-
title: "\u5165\u4ED3\u65F6\u95F4",
|
|
20940
|
-
width: 200,
|
|
21999
|
+
dataIndex: 'mallProductOutCode',
|
|
22000
|
+
title: "\u5E73\u53F0\u5546\u54C1\u7F16\u7801",
|
|
20941
22001
|
align: 'center',
|
|
20942
22002
|
ellipsis: true,
|
|
22003
|
+
width: 150,
|
|
20943
22004
|
render: renderTextEllipsis
|
|
20944
22005
|
}, {
|
|
20945
|
-
dataIndex: '
|
|
20946
|
-
title: "\
|
|
20947
|
-
width: 200,
|
|
22006
|
+
dataIndex: 'mallProductId',
|
|
22007
|
+
title: "\u5E73\u53F0\u5546\u54C1ID",
|
|
20948
22008
|
align: 'center',
|
|
20949
22009
|
ellipsis: true,
|
|
20950
|
-
render: renderTextEllipsis
|
|
20951
|
-
}]
|
|
20952
|
-
};
|
|
20953
|
-
};
|
|
20954
|
-
|
|
20955
|
-
function toNum$3(value) {
|
|
20956
|
-
if (typeof value === 'string') {
|
|
20957
|
-
return value ? +value : void 0;
|
|
20958
|
-
}
|
|
20959
|
-
if (typeof value === 'number') {
|
|
20960
|
-
return value;
|
|
20961
|
-
}
|
|
20962
|
-
return void 0;
|
|
20963
|
-
}
|
|
20964
|
-
var getColumns$6 = function getColumns(_ref) {
|
|
20965
|
-
var _ref$text = _ref.text,
|
|
20966
|
-
disabled = _ref.disabled,
|
|
20967
|
-
updateHandle = _ref.updateHandle;
|
|
20968
|
-
return {
|
|
20969
|
-
KM_GOODS: [{
|
|
20970
|
-
dataIndex: 'skuPropertiesName',
|
|
20971
|
-
title: "\u89C4\u683C\u540D\u79F0",
|
|
20972
22010
|
width: 250,
|
|
20973
22011
|
render: renderTextEllipsis
|
|
20974
22012
|
}, {
|
|
20975
|
-
dataIndex: '
|
|
20976
|
-
title: "\
|
|
20977
|
-
|
|
20978
|
-
|
|
20979
|
-
|
|
20980
|
-
dataIndex: 'title',
|
|
20981
|
-
title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
|
|
20982
|
-
width: 150,
|
|
20983
|
-
render: renderTextEllipsis
|
|
20984
|
-
}, {
|
|
20985
|
-
dataIndex: 'shortTitle',
|
|
20986
|
-
title: "\u5546\u54C1\u7B80\u79F0",
|
|
20987
|
-
width: 150,
|
|
20988
|
-
render: renderTextEllipsis
|
|
20989
|
-
}, {
|
|
20990
|
-
dataIndex: 'sysOuterId',
|
|
20991
|
-
title: "\u7CFB\u7EDF\u5546\u5BB6\u7F16\u7801",
|
|
20992
|
-
width: 150,
|
|
20993
|
-
render: renderTextEllipsis
|
|
20994
|
-
}, {
|
|
20995
|
-
dataIndex: 'skuSysId',
|
|
20996
|
-
title: "\u7CFB\u7EDF\u89C4\u683CID",
|
|
20997
|
-
width: 150,
|
|
20998
|
-
render: renderTextEllipsis
|
|
20999
|
-
}, {
|
|
21000
|
-
dataIndex: 'skuId',
|
|
21001
|
-
title: "\u5E73\u53F0\u89C4\u683C\u7F16\u53F7",
|
|
21002
|
-
width: 170,
|
|
22013
|
+
dataIndex: 'mallSkuName',
|
|
22014
|
+
title: "\u5E73\u53F0\u89C4\u683C\u540D\u79F0",
|
|
22015
|
+
align: 'center',
|
|
22016
|
+
ellipsis: true,
|
|
22017
|
+
width: 250,
|
|
21003
22018
|
render: renderTextEllipsis
|
|
21004
22019
|
}, {
|
|
21005
|
-
dataIndex: '
|
|
21006
|
-
title: "\
|
|
21007
|
-
|
|
22020
|
+
dataIndex: 'mallSkuId',
|
|
22021
|
+
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
22022
|
+
align: 'center',
|
|
22023
|
+
ellipsis: true,
|
|
22024
|
+
width: 250,
|
|
21008
22025
|
render: renderTextEllipsis
|
|
21009
22026
|
}, {
|
|
21010
|
-
dataIndex: '
|
|
21011
|
-
title: "\u5546\u54C1\u56FE\u7247",
|
|
21012
|
-
width: 100,
|
|
21013
|
-
render: function render(val) {
|
|
21014
|
-
return /*#__PURE__*/React.createElement(Image, {
|
|
21015
|
-
width: 30,
|
|
21016
|
-
src: val
|
|
21017
|
-
});
|
|
21018
|
-
}
|
|
21019
|
-
}, {
|
|
21020
|
-
dataIndex: 'num',
|
|
22027
|
+
dataIndex: 'sellCount',
|
|
21021
22028
|
title: "\u6570\u91CF",
|
|
21022
22029
|
width: 100,
|
|
21023
22030
|
render: function render(val, record, index) {
|
|
@@ -21029,13 +22036,16 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
21029
22036
|
min: 1,
|
|
21030
22037
|
precision: 0,
|
|
21031
22038
|
onChange: function onChange(num) {
|
|
21032
|
-
|
|
22039
|
+
updateDataHandle({
|
|
22040
|
+
sellCount: num,
|
|
22041
|
+
sellTotal: num && isNumberOrNumberString$2(record.sellPrice) ? num * record.sellPrice : null
|
|
22042
|
+
}, index);
|
|
21033
22043
|
}
|
|
21034
22044
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
21035
22045
|
}
|
|
21036
22046
|
}, {
|
|
21037
|
-
dataIndex: '
|
|
21038
|
-
title: "\
|
|
22047
|
+
dataIndex: 'sellPrice',
|
|
22048
|
+
title: "\u5355\u4EF7",
|
|
21039
22049
|
width: 150,
|
|
21040
22050
|
render: function render(val, record, index) {
|
|
21041
22051
|
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
@@ -21046,83 +22056,198 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
21046
22056
|
min: 0,
|
|
21047
22057
|
precision: 2,
|
|
21048
22058
|
onChange: function onChange(num) {
|
|
21049
|
-
|
|
22059
|
+
updateDataHandle({
|
|
22060
|
+
sellPrice: num,
|
|
22061
|
+
sellTotal: num && isNumberOrNumberString$2(record.sellCount) ? num * record.sellCount : null
|
|
22062
|
+
}, index);
|
|
21050
22063
|
}
|
|
21051
|
-
}) : /*#__PURE__*/React.createElement("span", null, val
|
|
22064
|
+
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
21052
22065
|
}
|
|
21053
22066
|
}, {
|
|
21054
|
-
dataIndex: '
|
|
21055
|
-
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",
|
|
21056
22085
|
width: 150,
|
|
21057
|
-
render: function render(val) {
|
|
21058
|
-
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' ? '是' : '否');
|
|
21059
22106
|
}
|
|
21060
22107
|
}, {
|
|
21061
|
-
dataIndex: '
|
|
21062
|
-
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",
|
|
21063
22115
|
width: 150,
|
|
21064
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
|
+
}
|
|
21065
22142
|
}].map(function (item) {
|
|
21066
22143
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
21067
22144
|
align: 'center',
|
|
21068
22145
|
ellipsis: true
|
|
21069
22146
|
});
|
|
21070
22147
|
}),
|
|
21071
|
-
|
|
21072
|
-
|
|
21073
|
-
|
|
21074
|
-
|
|
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,
|
|
21075
22155
|
render: renderTextEllipsis
|
|
21076
22156
|
}, {
|
|
21077
|
-
dataIndex: '
|
|
21078
|
-
title: "\u7CFB\u7EDF\u5546\u54C1\
|
|
22157
|
+
dataIndex: 'productCode',
|
|
22158
|
+
title: "\u7CFB\u7EDF\u5546\u54C1\u7F16\u7801",
|
|
22159
|
+
align: 'center',
|
|
22160
|
+
ellipsis: true,
|
|
21079
22161
|
width: 150,
|
|
21080
22162
|
render: renderTextEllipsis
|
|
21081
22163
|
}, {
|
|
21082
|
-
dataIndex: '
|
|
21083
|
-
title: "\
|
|
22164
|
+
dataIndex: 'productId',
|
|
22165
|
+
title: "\u7CFB\u7EDF\u5546\u54C1ID",
|
|
22166
|
+
align: 'center',
|
|
22167
|
+
ellipsis: true,
|
|
21084
22168
|
width: 150,
|
|
21085
22169
|
render: renderTextEllipsis
|
|
21086
22170
|
}, {
|
|
21087
|
-
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',
|
|
21088
22203
|
title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
|
|
22204
|
+
align: 'center',
|
|
22205
|
+
ellipsis: true,
|
|
21089
22206
|
width: 150,
|
|
21090
22207
|
render: renderTextEllipsis
|
|
21091
22208
|
}, {
|
|
21092
|
-
dataIndex: '
|
|
21093
|
-
title: "\
|
|
22209
|
+
dataIndex: 'mallProductOutCode',
|
|
22210
|
+
title: "\u5E73\u53F0\u5546\u54C1\u7F16\u7801",
|
|
22211
|
+
align: 'center',
|
|
22212
|
+
ellipsis: true,
|
|
21094
22213
|
width: 150,
|
|
21095
22214
|
render: renderTextEllipsis
|
|
21096
22215
|
}, {
|
|
21097
|
-
dataIndex: '
|
|
21098
|
-
title: "\
|
|
22216
|
+
dataIndex: 'mallProductId',
|
|
22217
|
+
title: "\u5E73\u53F0\u5546\u54C1ID",
|
|
22218
|
+
align: 'center',
|
|
22219
|
+
ellipsis: true,
|
|
21099
22220
|
width: 150,
|
|
21100
22221
|
render: renderTextEllipsis
|
|
21101
22222
|
}, {
|
|
21102
|
-
dataIndex: '
|
|
21103
|
-
title: "\
|
|
22223
|
+
dataIndex: 'mallSkuName',
|
|
22224
|
+
title: "\u5E73\u53F0\u89C4\u683C\u540D\u79F0",
|
|
22225
|
+
align: 'center',
|
|
22226
|
+
ellipsis: true,
|
|
21104
22227
|
width: 150,
|
|
21105
22228
|
render: renderTextEllipsis
|
|
21106
22229
|
}, {
|
|
21107
|
-
dataIndex: '
|
|
21108
|
-
title: "\u5E73\u53F0\u89C4\
|
|
21109
|
-
|
|
22230
|
+
dataIndex: 'mallSkuId',
|
|
22231
|
+
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
22232
|
+
align: 'center',
|
|
22233
|
+
ellipsis: true,
|
|
22234
|
+
width: 150,
|
|
21110
22235
|
render: renderTextEllipsis
|
|
21111
22236
|
}, {
|
|
21112
|
-
dataIndex: '
|
|
21113
|
-
title: "\
|
|
22237
|
+
dataIndex: 'sellCount',
|
|
22238
|
+
title: "\u6570\u91CF",
|
|
21114
22239
|
width: 100,
|
|
21115
22240
|
validator: function validator(_rule, value) {
|
|
21116
|
-
var
|
|
21117
|
-
if (((value === null || value === void 0 ? void 0 : value.
|
|
21118
|
-
var
|
|
21119
|
-
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;
|
|
21120
22245
|
if (res) {
|
|
21121
|
-
|
|
22246
|
+
productName = (goods === null || goods === void 0 ? void 0 : goods.productName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.productName, "]") : '';
|
|
21122
22247
|
}
|
|
21123
22248
|
return res;
|
|
21124
22249
|
})) {
|
|
21125
|
-
return Promise.reject("".concat(
|
|
22250
|
+
return Promise.reject("".concat(productName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
21126
22251
|
}
|
|
21127
22252
|
},
|
|
21128
22253
|
render: function render(val, record, index) {
|
|
@@ -21134,81 +22259,158 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
21134
22259
|
min: 1,
|
|
21135
22260
|
precision: 0,
|
|
21136
22261
|
onChange: function onChange(num) {
|
|
21137
|
-
|
|
22262
|
+
updateDataHandle({
|
|
22263
|
+
sellCount: num,
|
|
22264
|
+
sellTotal: num && isNumberOrNumberString$2(record.sellPrice) ? num * record.sellPrice : null
|
|
22265
|
+
}, index);
|
|
21138
22266
|
}
|
|
21139
22267
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
21140
22268
|
}
|
|
21141
22269
|
}, {
|
|
21142
|
-
dataIndex: '
|
|
21143
|
-
title: "\
|
|
21144
|
-
width:
|
|
22270
|
+
dataIndex: 'sellPrice',
|
|
22271
|
+
title: "\u5355\u4EF7",
|
|
22272
|
+
width: 150,
|
|
21145
22273
|
render: function render(val, record, index) {
|
|
21146
22274
|
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
21147
22275
|
style: {
|
|
21148
|
-
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;
|
|
21149
22308
|
},
|
|
21150
22309
|
value: val,
|
|
21151
|
-
|
|
21152
|
-
|
|
21153
|
-
|
|
21154
|
-
|
|
21155
|
-
|
|
21156
|
-
|
|
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' ? '是' : '否');
|
|
21157
22321
|
}
|
|
21158
22322
|
}, {
|
|
21159
|
-
dataIndex: '
|
|
21160
|
-
title: "\u5546\u54C1\
|
|
22323
|
+
dataIndex: 'combinationName',
|
|
22324
|
+
title: "\u7EC4\u5408\u5546\u54C1\u540D\u79F0",
|
|
21161
22325
|
width: 150,
|
|
21162
|
-
render:
|
|
21163
|
-
return val || val === 0 ? Number(val).toFixed(2) : '';
|
|
21164
|
-
}
|
|
22326
|
+
render: renderTextEllipsis
|
|
21165
22327
|
}, {
|
|
21166
|
-
dataIndex: '
|
|
21167
|
-
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",
|
|
21168
22335
|
width: 150,
|
|
21169
22336
|
render: function render(val, record, index) {
|
|
21170
|
-
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(
|
|
21171
|
-
|
|
21172
|
-
|
|
22337
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
22338
|
+
dropdownStyle: {
|
|
22339
|
+
zIndex: 2000
|
|
22340
|
+
},
|
|
22341
|
+
getPopupContainer: function getPopupContainer() {
|
|
22342
|
+
return document.body;
|
|
21173
22343
|
},
|
|
21174
22344
|
value: val,
|
|
21175
|
-
|
|
21176
|
-
|
|
21177
|
-
|
|
21178
|
-
|
|
21179
|
-
|
|
21180
|
-
|
|
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' ? '是' : '否');
|
|
21181
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
|
|
21182
22377
|
}, {
|
|
21183
|
-
dataIndex: '
|
|
21184
|
-
title: "\
|
|
21185
|
-
width:
|
|
21186
|
-
render: renderTextEllipsis
|
|
22378
|
+
dataIndex: 'subOrderId',
|
|
22379
|
+
title: "[SKX]\u53D1\u8D27\u5355-\u5B50\u8BA2\u5355\u53F7",
|
|
22380
|
+
width: 300
|
|
21187
22381
|
}, {
|
|
21188
|
-
dataIndex: '
|
|
21189
|
-
title: "\
|
|
21190
|
-
width:
|
|
21191
|
-
render: function render(val) {
|
|
21192
|
-
return /*#__PURE__*/React.createElement(Image, {
|
|
21193
|
-
width: 30,
|
|
21194
|
-
src: val
|
|
21195
|
-
});
|
|
21196
|
-
}
|
|
22382
|
+
dataIndex: 'onBillNo',
|
|
22383
|
+
title: "[SKX]ON\u51FA\u5E93\u901A\u77E5\u5355\u53F7",
|
|
22384
|
+
width: 200
|
|
21197
22385
|
}].map(function (item) {
|
|
21198
22386
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
21199
22387
|
align: 'center',
|
|
21200
22388
|
ellipsis: true
|
|
21201
22389
|
});
|
|
21202
|
-
})
|
|
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
|
+
}]
|
|
21203
22405
|
};
|
|
21204
22406
|
};
|
|
21205
22407
|
|
|
21206
|
-
var isNumberOrNumberString$
|
|
22408
|
+
var isNumberOrNumberString$3 = function isNumberOrNumberString(value) {
|
|
21207
22409
|
if (typeof value === 'number') return true;
|
|
21208
22410
|
if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
|
|
21209
22411
|
return false;
|
|
21210
22412
|
};
|
|
21211
|
-
function toNum$
|
|
22413
|
+
function toNum$5(value) {
|
|
21212
22414
|
if (typeof value === 'string') {
|
|
21213
22415
|
return value ? +value : void 0;
|
|
21214
22416
|
}
|
|
@@ -21217,44 +22419,44 @@ function toNum$4(value) {
|
|
|
21217
22419
|
}
|
|
21218
22420
|
return void 0;
|
|
21219
22421
|
}
|
|
21220
|
-
var getColumns$
|
|
22422
|
+
var getColumns$9 = function getColumns(_ref) {
|
|
21221
22423
|
var _ref$text = _ref.text,
|
|
21222
22424
|
disabled = _ref.disabled,
|
|
21223
22425
|
updateHandle = _ref.updateHandle,
|
|
21224
22426
|
updateDataHandle = _ref.updateDataHandle;
|
|
21225
22427
|
return {
|
|
21226
22428
|
//巨益商品信息
|
|
21227
|
-
|
|
21228
|
-
dataIndex: '
|
|
21229
|
-
title: "\
|
|
22429
|
+
JKY_GOODS: [{
|
|
22430
|
+
dataIndex: 'goodsNo',
|
|
22431
|
+
title: "\u8D27\u54C1\u7F16\u53F7",
|
|
21230
22432
|
align: 'center',
|
|
21231
22433
|
ellipsis: true,
|
|
21232
22434
|
width: 150,
|
|
21233
22435
|
render: renderTextEllipsis
|
|
21234
22436
|
}, {
|
|
21235
|
-
dataIndex: '
|
|
21236
|
-
title: "\
|
|
22437
|
+
dataIndex: 'goodsName',
|
|
22438
|
+
title: "\u8D27\u54C1\u540D\u79F0",
|
|
21237
22439
|
align: 'center',
|
|
21238
22440
|
ellipsis: true,
|
|
21239
22441
|
width: 150,
|
|
21240
22442
|
render: renderTextEllipsis
|
|
21241
22443
|
}, {
|
|
21242
|
-
dataIndex: '
|
|
21243
|
-
title: "\
|
|
22444
|
+
dataIndex: 'goodsId',
|
|
22445
|
+
title: "\u8D27\u54C1ID",
|
|
21244
22446
|
align: 'center',
|
|
21245
22447
|
ellipsis: true,
|
|
21246
22448
|
width: 150,
|
|
21247
22449
|
render: renderTextEllipsis
|
|
21248
22450
|
}, {
|
|
21249
|
-
dataIndex: '
|
|
21250
|
-
title: "\
|
|
22451
|
+
dataIndex: 'barcode',
|
|
22452
|
+
title: "\u8D27\u54C1\u6761\u7801",
|
|
21251
22453
|
align: 'center',
|
|
21252
22454
|
ellipsis: true,
|
|
21253
22455
|
width: 150,
|
|
21254
22456
|
render: renderTextEllipsis
|
|
21255
22457
|
}, {
|
|
21256
|
-
dataIndex: '
|
|
21257
|
-
title: "\
|
|
22458
|
+
dataIndex: 'specName',
|
|
22459
|
+
title: "\u89C4\u683C\u540D\u79F0",
|
|
21258
22460
|
align: 'center',
|
|
21259
22461
|
ellipsis: true,
|
|
21260
22462
|
width: 150,
|
|
@@ -21266,82 +22468,18 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
21266
22468
|
ellipsis: true,
|
|
21267
22469
|
width: 150,
|
|
21268
22470
|
render: renderTextEllipsis
|
|
21269
|
-
},
|
|
21270
|
-
// {
|
|
21271
|
-
// dataIndex: 'goodsName',
|
|
21272
|
-
// title: `货品名称`,
|
|
21273
|
-
// width: 250,
|
|
21274
|
-
// },
|
|
21275
|
-
// {
|
|
21276
|
-
// dataIndex: 'goodsCode',
|
|
21277
|
-
// title: `货品编号`,
|
|
21278
|
-
// width: 200,
|
|
21279
|
-
// },
|
|
21280
|
-
// {
|
|
21281
|
-
// dataIndex: 'goodsId',
|
|
21282
|
-
// title: `货品ID`,
|
|
21283
|
-
// width: 150,
|
|
21284
|
-
// },
|
|
21285
|
-
{
|
|
21286
|
-
dataIndex: 'goodsClass',
|
|
21287
|
-
title: "\u8D27\u54C1\u7C7B\u522B",
|
|
21288
|
-
width: 150,
|
|
21289
|
-
render: renderTextEllipsis
|
|
21290
|
-
}, {
|
|
21291
|
-
dataIndex: 'code',
|
|
21292
|
-
title: "\u6761\u7801",
|
|
21293
|
-
width: 150,
|
|
21294
|
-
render: renderTextEllipsis
|
|
21295
|
-
},
|
|
21296
|
-
// {
|
|
21297
|
-
// dataIndex: 'specName',
|
|
21298
|
-
// title: `规格名称`,
|
|
21299
|
-
// align: 'center',
|
|
21300
|
-
// ellipsis: true,
|
|
21301
|
-
// width: 200,
|
|
21302
|
-
// },
|
|
21303
|
-
// {
|
|
21304
|
-
// dataIndex: 'specCode',
|
|
21305
|
-
// title: `规格编号`,
|
|
21306
|
-
// align: 'center',
|
|
21307
|
-
// ellipsis: true,
|
|
21308
|
-
// width: 150,
|
|
21309
|
-
// },
|
|
21310
|
-
{
|
|
21311
|
-
dataIndex: 'mallProductName',
|
|
21312
|
-
title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
|
|
21313
|
-
align: 'center',
|
|
21314
|
-
ellipsis: true,
|
|
21315
|
-
width: 250,
|
|
21316
|
-
render: renderTextEllipsis
|
|
21317
22471
|
}, {
|
|
21318
|
-
dataIndex: '
|
|
21319
|
-
title: "\
|
|
22472
|
+
dataIndex: 'skuImgUrl',
|
|
22473
|
+
title: "\u89C4\u683C\u56FE\u7247",
|
|
21320
22474
|
align: 'center',
|
|
21321
22475
|
ellipsis: true,
|
|
21322
22476
|
width: 150,
|
|
21323
|
-
render:
|
|
21324
|
-
|
|
21325
|
-
|
|
21326
|
-
|
|
21327
|
-
|
|
21328
|
-
|
|
21329
|
-
width: 250,
|
|
21330
|
-
render: renderTextEllipsis
|
|
21331
|
-
}, {
|
|
21332
|
-
dataIndex: 'mallSkuName',
|
|
21333
|
-
title: "\u5E73\u53F0\u89C4\u683C\u540D\u79F0",
|
|
21334
|
-
align: 'center',
|
|
21335
|
-
ellipsis: true,
|
|
21336
|
-
width: 250,
|
|
21337
|
-
render: renderTextEllipsis
|
|
21338
|
-
}, {
|
|
21339
|
-
dataIndex: 'mallSkuId',
|
|
21340
|
-
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
21341
|
-
align: 'center',
|
|
21342
|
-
ellipsis: true,
|
|
21343
|
-
width: 250,
|
|
21344
|
-
render: renderTextEllipsis
|
|
22477
|
+
render: function render(val) {
|
|
22478
|
+
return /*#__PURE__*/React.createElement(ApaasImage, {
|
|
22479
|
+
width: 30,
|
|
22480
|
+
src: val
|
|
22481
|
+
});
|
|
22482
|
+
}
|
|
21345
22483
|
}, {
|
|
21346
22484
|
dataIndex: 'sellCount',
|
|
21347
22485
|
title: "\u6570\u91CF",
|
|
@@ -21357,11 +22495,16 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
21357
22495
|
onChange: function onChange(num) {
|
|
21358
22496
|
updateDataHandle({
|
|
21359
22497
|
sellCount: num,
|
|
21360
|
-
sellTotal: num && isNumberOrNumberString$
|
|
22498
|
+
sellTotal: num && isNumberOrNumberString$3(record.sellPrice) ? num * record.sellPrice : null
|
|
21361
22499
|
}, index);
|
|
21362
22500
|
}
|
|
21363
22501
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
21364
22502
|
}
|
|
22503
|
+
}, {
|
|
22504
|
+
dataIndex: 'actualSendCount',
|
|
22505
|
+
title: "\u5B9E\u53D1\u6570\u91CF",
|
|
22506
|
+
width: 150,
|
|
22507
|
+
render: renderTextEllipsis
|
|
21365
22508
|
}, {
|
|
21366
22509
|
dataIndex: 'sellPrice',
|
|
21367
22510
|
title: "\u5355\u4EF7",
|
|
@@ -21377,29 +22520,66 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
21377
22520
|
onChange: function onChange(num) {
|
|
21378
22521
|
updateDataHandle({
|
|
21379
22522
|
sellPrice: num,
|
|
21380
|
-
sellTotal: num && isNumberOrNumberString$
|
|
22523
|
+
sellTotal: num && isNumberOrNumberString$3(record.sellCount) ? num * record.sellCount : null
|
|
21381
22524
|
}, index);
|
|
21382
22525
|
}
|
|
21383
22526
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
21384
22527
|
}
|
|
21385
22528
|
}, {
|
|
21386
|
-
dataIndex: '
|
|
21387
|
-
title: "\
|
|
21388
|
-
width: 150
|
|
21389
|
-
}, {
|
|
21390
|
-
dataIndex: '
|
|
21391
|
-
title: "\u91D1\u989D",
|
|
21392
|
-
width: 150
|
|
21393
|
-
}, {
|
|
21394
|
-
dataIndex: '
|
|
21395
|
-
title: "\
|
|
21396
|
-
width: 150
|
|
21397
|
-
}, {
|
|
21398
|
-
dataIndex: '
|
|
21399
|
-
title: "\u5206\u644A\
|
|
21400
|
-
width: 150
|
|
21401
|
-
}, {
|
|
21402
|
-
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',
|
|
21403
22583
|
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
21404
22584
|
width: 150,
|
|
21405
22585
|
render: function render(val, record, index) {
|
|
@@ -21412,30 +22592,20 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
21412
22592
|
},
|
|
21413
22593
|
value: val,
|
|
21414
22594
|
onChange: function onChange(value) {
|
|
21415
|
-
updateHandle(value, index, '
|
|
22595
|
+
updateHandle(value, index, 'isFit');
|
|
21416
22596
|
},
|
|
21417
22597
|
options: [{
|
|
21418
22598
|
label: '是',
|
|
21419
|
-
value: '
|
|
22599
|
+
value: '1'
|
|
21420
22600
|
}, {
|
|
21421
22601
|
label: '否',
|
|
21422
|
-
value: '
|
|
22602
|
+
value: '0'
|
|
21423
22603
|
}]
|
|
21424
|
-
}) : /*#__PURE__*/React.createElement("span", null, val === '
|
|
22604
|
+
}) : /*#__PURE__*/React.createElement("span", null, val === '1' ? '是' : '否');
|
|
21425
22605
|
}
|
|
21426
22606
|
}, {
|
|
21427
|
-
dataIndex: '
|
|
21428
|
-
title: "\
|
|
21429
|
-
width: 150,
|
|
21430
|
-
render: renderTextEllipsis
|
|
21431
|
-
}, {
|
|
21432
|
-
dataIndex: 'combinationCode',
|
|
21433
|
-
title: "\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
|
|
21434
|
-
width: 150,
|
|
21435
|
-
render: renderTextEllipsis
|
|
21436
|
-
}, {
|
|
21437
|
-
dataIndex: 'gift',
|
|
21438
|
-
title: "\u662F\u5426\u8D60\u54C1",
|
|
22607
|
+
dataIndex: 'isPresell',
|
|
22608
|
+
title: "\u662F\u5426\u9884\u552E\u8D27\u54C1",
|
|
21439
22609
|
width: 150,
|
|
21440
22610
|
render: function render(val, record, index) {
|
|
21441
22611
|
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
@@ -21447,7 +22617,7 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
21447
22617
|
},
|
|
21448
22618
|
value: val,
|
|
21449
22619
|
onChange: function onChange(value) {
|
|
21450
|
-
updateHandle(value, index, '
|
|
22620
|
+
updateHandle(value, index, 'isPresell');
|
|
21451
22621
|
},
|
|
21452
22622
|
options: [{
|
|
21453
22623
|
label: '是',
|
|
@@ -21458,115 +22628,169 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
21458
22628
|
}]
|
|
21459
22629
|
}) : /*#__PURE__*/React.createElement("span", null, val === '1' ? '是' : '否');
|
|
21460
22630
|
}
|
|
21461
|
-
}
|
|
21462
|
-
|
|
21463
|
-
|
|
21464
|
-
ellipsis: true
|
|
21465
|
-
});
|
|
21466
|
-
}),
|
|
21467
|
-
// 巨益补发商品信息
|
|
21468
|
-
JY_REISSUE_GOODS: [{
|
|
21469
|
-
dataIndex: 'productName',
|
|
21470
|
-
title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
|
|
22631
|
+
}, {
|
|
22632
|
+
dataIndex: 'brandName',
|
|
22633
|
+
title: "\u54C1\u724C",
|
|
21471
22634
|
align: 'center',
|
|
21472
22635
|
ellipsis: true,
|
|
21473
|
-
width:
|
|
22636
|
+
width: 200,
|
|
21474
22637
|
render: renderTextEllipsis
|
|
21475
22638
|
}, {
|
|
21476
|
-
dataIndex: '
|
|
21477
|
-
title: "\
|
|
22639
|
+
dataIndex: 'cateName',
|
|
22640
|
+
title: "\u8D27\u54C1\u7C7B\u522B",
|
|
21478
22641
|
align: 'center',
|
|
21479
22642
|
ellipsis: true,
|
|
21480
22643
|
width: 150,
|
|
21481
22644
|
render: renderTextEllipsis
|
|
21482
22645
|
}, {
|
|
21483
|
-
dataIndex: '
|
|
21484
|
-
title: "\
|
|
22646
|
+
dataIndex: 'goodsTags',
|
|
22647
|
+
title: "\u8D27\u54C1\u6807\u7B7E",
|
|
21485
22648
|
align: 'center',
|
|
21486
22649
|
ellipsis: true,
|
|
21487
|
-
width:
|
|
22650
|
+
width: 250,
|
|
21488
22651
|
render: renderTextEllipsis
|
|
21489
22652
|
}, {
|
|
21490
|
-
dataIndex: '
|
|
21491
|
-
title: "\
|
|
22653
|
+
dataIndex: 'goodsMemo',
|
|
22654
|
+
title: "\u8D27\u54C1\u5907\u6CE8",
|
|
21492
22655
|
align: 'center',
|
|
21493
22656
|
ellipsis: true,
|
|
21494
|
-
width:
|
|
22657
|
+
width: 250,
|
|
21495
22658
|
render: renderTextEllipsis
|
|
21496
22659
|
}, {
|
|
21497
|
-
dataIndex: '
|
|
21498
|
-
title: "\
|
|
22660
|
+
dataIndex: 'tradeGoodsNo',
|
|
22661
|
+
title: "\u4EA4\u6613\u8D27\u54C1\u7F16\u53F7",
|
|
21499
22662
|
align: 'center',
|
|
21500
22663
|
ellipsis: true,
|
|
21501
|
-
width:
|
|
22664
|
+
width: 250,
|
|
21502
22665
|
render: renderTextEllipsis
|
|
21503
22666
|
}, {
|
|
21504
|
-
dataIndex: '
|
|
21505
|
-
title: "\
|
|
21506
|
-
align: 'center',
|
|
22667
|
+
dataIndex: 'tradeGoodsName',
|
|
22668
|
+
title: "\u4EA4\u6613\u8D27\u54C1\u540D\u79F0",
|
|
21507
22669
|
ellipsis: true,
|
|
21508
|
-
width:
|
|
22670
|
+
width: 250,
|
|
21509
22671
|
render: renderTextEllipsis
|
|
21510
22672
|
}, {
|
|
21511
|
-
dataIndex: '
|
|
21512
|
-
title: "\
|
|
21513
|
-
|
|
22673
|
+
dataIndex: 'tradeGoodsSpec',
|
|
22674
|
+
title: "\u4EA4\u6613\u89C4\u683C\u540D\u79F0",
|
|
22675
|
+
ellipsis: true,
|
|
22676
|
+
width: 250,
|
|
21514
22677
|
render: renderTextEllipsis
|
|
21515
22678
|
}, {
|
|
21516
|
-
dataIndex: '
|
|
21517
|
-
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,
|
|
21518
22732
|
width: 150,
|
|
21519
22733
|
render: renderTextEllipsis
|
|
21520
22734
|
}, {
|
|
21521
|
-
dataIndex: '
|
|
21522
|
-
title: "\
|
|
22735
|
+
dataIndex: 'goodsName',
|
|
22736
|
+
title: "\u8D27\u54C1\u540D\u79F0",
|
|
21523
22737
|
align: 'center',
|
|
21524
22738
|
ellipsis: true,
|
|
21525
22739
|
width: 150,
|
|
21526
22740
|
render: renderTextEllipsis
|
|
21527
22741
|
}, {
|
|
21528
|
-
dataIndex: '
|
|
21529
|
-
title: "\
|
|
22742
|
+
dataIndex: 'goodsId',
|
|
22743
|
+
title: "\u8D27\u54C1ID",
|
|
21530
22744
|
align: 'center',
|
|
21531
22745
|
ellipsis: true,
|
|
21532
22746
|
width: 150,
|
|
21533
22747
|
render: renderTextEllipsis
|
|
21534
22748
|
}, {
|
|
21535
|
-
dataIndex: '
|
|
21536
|
-
title: "\
|
|
22749
|
+
dataIndex: 'barcode',
|
|
22750
|
+
title: "\u8D27\u54C1\u6761\u7801",
|
|
21537
22751
|
align: 'center',
|
|
21538
22752
|
ellipsis: true,
|
|
21539
22753
|
width: 150,
|
|
21540
22754
|
render: renderTextEllipsis
|
|
21541
22755
|
}, {
|
|
21542
|
-
dataIndex: '
|
|
21543
|
-
title: "\
|
|
22756
|
+
dataIndex: 'specName',
|
|
22757
|
+
title: "\u89C4\u683C\u540D\u79F0",
|
|
21544
22758
|
align: 'center',
|
|
21545
22759
|
ellipsis: true,
|
|
21546
22760
|
width: 150,
|
|
21547
22761
|
render: renderTextEllipsis
|
|
21548
22762
|
}, {
|
|
21549
|
-
dataIndex: '
|
|
21550
|
-
title: "\
|
|
22763
|
+
dataIndex: 'specId',
|
|
22764
|
+
title: "\u89C4\u683CID",
|
|
21551
22765
|
align: 'center',
|
|
21552
22766
|
ellipsis: true,
|
|
21553
22767
|
width: 150,
|
|
21554
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
|
+
}
|
|
21555
22779
|
}, {
|
|
21556
22780
|
dataIndex: 'sellCount',
|
|
21557
|
-
title: "\u6570\u91CF",
|
|
22781
|
+
title: "\u53D1\u8D27\u6570\u91CF",
|
|
21558
22782
|
width: 100,
|
|
21559
22783
|
validator: function validator(_rule, value) {
|
|
21560
|
-
var
|
|
21561
|
-
if (((value === null || value === void 0 ? void 0 : value.
|
|
21562
|
-
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);
|
|
21563
22787
|
var res = typeof qty === 'number' ? qty < 1 : true;
|
|
21564
22788
|
if (res) {
|
|
21565
|
-
|
|
22789
|
+
goodsName = (goods === null || goods === void 0 ? void 0 : goods.goodsName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodsName, "]") : '';
|
|
21566
22790
|
}
|
|
21567
22791
|
return res;
|
|
21568
22792
|
})) {
|
|
21569
|
-
return Promise.reject("".concat(
|
|
22793
|
+
return Promise.reject("".concat(goodsName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
21570
22794
|
}
|
|
21571
22795
|
},
|
|
21572
22796
|
render: function render(val, record, index) {
|
|
@@ -21580,7 +22804,7 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
21580
22804
|
onChange: function onChange(num) {
|
|
21581
22805
|
updateDataHandle({
|
|
21582
22806
|
sellCount: num,
|
|
21583
|
-
sellTotal: num && isNumberOrNumberString$
|
|
22807
|
+
sellTotal: num && isNumberOrNumberString$3(record.sellPrice) ? num * record.sellPrice : null
|
|
21584
22808
|
}, index);
|
|
21585
22809
|
}
|
|
21586
22810
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
@@ -21600,119 +22824,87 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
21600
22824
|
onChange: function onChange(num) {
|
|
21601
22825
|
updateDataHandle({
|
|
21602
22826
|
sellPrice: num,
|
|
21603
|
-
sellTotal: num && isNumberOrNumberString$
|
|
22827
|
+
sellTotal: num && isNumberOrNumberString$3(record.sellCount) ? num * record.sellCount : null
|
|
21604
22828
|
}, index);
|
|
21605
22829
|
}
|
|
21606
22830
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
21607
22831
|
}
|
|
21608
|
-
}, {
|
|
21609
|
-
dataIndex: 'mallSellingPrice',
|
|
21610
|
-
title: "\u5E73\u53F0\u5546\u54C1\u4EF7\u683C",
|
|
21611
|
-
width: 150
|
|
21612
22832
|
}, {
|
|
21613
22833
|
dataIndex: 'sellTotal',
|
|
21614
|
-
title: "\u91D1\u989D",
|
|
21615
|
-
width: 150
|
|
22834
|
+
title: "\u603B\u91D1\u989D",
|
|
22835
|
+
width: 150,
|
|
22836
|
+
render: function render(val, record, index) {
|
|
22837
|
+
return record.sellCount * record.sellPrice;
|
|
22838
|
+
}
|
|
21616
22839
|
}, {
|
|
21617
|
-
dataIndex: '
|
|
21618
|
-
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",
|
|
21619
22853
|
width: 150,
|
|
21620
22854
|
render: function render(val, record, index) {
|
|
21621
22855
|
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
21622
22856
|
value: val,
|
|
21623
22857
|
onChange: function onChange(value) {
|
|
21624
|
-
updateHandle(value, index, '
|
|
22858
|
+
updateHandle(value, index, 'isGift');
|
|
21625
22859
|
},
|
|
21626
22860
|
options: [{
|
|
21627
22861
|
label: '是',
|
|
21628
|
-
value: '
|
|
22862
|
+
value: '1'
|
|
21629
22863
|
}, {
|
|
21630
22864
|
label: '否',
|
|
21631
|
-
value: '
|
|
22865
|
+
value: '0'
|
|
21632
22866
|
}]
|
|
21633
|
-
}) : /*#__PURE__*/React.createElement("span", null, val === '
|
|
22867
|
+
}) : /*#__PURE__*/React.createElement("span", null, val === '1' ? '是' : '否');
|
|
21634
22868
|
}
|
|
21635
22869
|
}, {
|
|
21636
|
-
dataIndex: '
|
|
21637
|
-
title: "\u7EC4\u5408\
|
|
21638
|
-
width: 150,
|
|
21639
|
-
render: renderTextEllipsis
|
|
21640
|
-
}, {
|
|
21641
|
-
dataIndex: 'combinationCode',
|
|
21642
|
-
title: "\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
|
|
21643
|
-
width: 150,
|
|
21644
|
-
render: renderTextEllipsis
|
|
21645
|
-
}, {
|
|
21646
|
-
dataIndex: 'gift',
|
|
21647
|
-
title: "\u662F\u5426\u8D60\u54C1",
|
|
22870
|
+
dataIndex: 'isFit',
|
|
22871
|
+
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
21648
22872
|
width: 150,
|
|
21649
22873
|
render: function render(val, record, index) {
|
|
21650
22874
|
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
21651
22875
|
value: val,
|
|
21652
22876
|
onChange: function onChange(value) {
|
|
21653
|
-
updateHandle(value, index, '
|
|
22877
|
+
updateHandle(value, index, 'isFit');
|
|
21654
22878
|
},
|
|
21655
22879
|
options: [{
|
|
21656
22880
|
label: '是',
|
|
21657
|
-
value: '
|
|
22881
|
+
value: 'True'
|
|
21658
22882
|
}, {
|
|
21659
22883
|
label: '否',
|
|
21660
|
-
value: '
|
|
22884
|
+
value: 'False'
|
|
21661
22885
|
}]
|
|
21662
|
-
}) : /*#__PURE__*/React.createElement("span", null, val === '
|
|
22886
|
+
}) : /*#__PURE__*/React.createElement("span", null, val === 'True' ? '是' : '否');
|
|
21663
22887
|
}
|
|
21664
|
-
}].map(function (item) {
|
|
21665
|
-
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
21666
|
-
align: 'center',
|
|
21667
|
-
ellipsis: true
|
|
21668
|
-
});
|
|
21669
|
-
})
|
|
21670
|
-
};
|
|
21671
|
-
};
|
|
21672
|
-
|
|
21673
|
-
var getColumns$8 = function getColumns(_ref) {
|
|
21674
|
-
var _ref$text = _ref.text,
|
|
21675
|
-
disabled = _ref.disabled,
|
|
21676
|
-
updateHandle = _ref.updateHandle,
|
|
21677
|
-
updateDataHandle = _ref.updateDataHandle;
|
|
21678
|
-
return {
|
|
21679
|
-
//[SKX]商品信息(ON)
|
|
21680
|
-
SKX_GOODS: [{
|
|
21681
|
-
dataIndex: 'skuEcode',
|
|
21682
|
-
title: "[SKX]\u53D1\u8D27\u5355\u660E\u7EC6-skuEcode",
|
|
21683
|
-
width: 250
|
|
21684
22888
|
}, {
|
|
21685
|
-
dataIndex: '
|
|
21686
|
-
title: "
|
|
21687
|
-
width:
|
|
21688
|
-
|
|
21689
|
-
dataIndex: 'onBillNo',
|
|
21690
|
-
title: "[SKX]ON\u51FA\u5E93\u901A\u77E5\u5355\u53F7",
|
|
21691
|
-
width: 200
|
|
21692
|
-
}].map(function (item) {
|
|
21693
|
-
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
21694
|
-
align: 'center',
|
|
21695
|
-
ellipsis: true
|
|
21696
|
-
});
|
|
21697
|
-
}),
|
|
21698
|
-
//[SKX]退货商品信息(TH)
|
|
21699
|
-
SKX_RETURN_GOODS: [{
|
|
21700
|
-
dataIndex: 'returnSkuEcode',
|
|
21701
|
-
title: "[SKX]\u9000\u8D27\u5355\u660E\u7EC6-returnSkuEcode",
|
|
21702
|
-
width: 300
|
|
21703
|
-
}, {
|
|
21704
|
-
dataIndex: 'returnSubOrderId',
|
|
21705
|
-
title: "[SKX]\u9000\u8D27\u5355-\u5B50\u8BA2\u5355\u53F7",
|
|
21706
|
-
width: 300
|
|
22889
|
+
dataIndex: 'brandName',
|
|
22890
|
+
title: "\u54C1\u724C",
|
|
22891
|
+
width: 150,
|
|
22892
|
+
render: renderTextEllipsis
|
|
21707
22893
|
}, {
|
|
21708
|
-
dataIndex: '
|
|
21709
|
-
title: "
|
|
21710
|
-
width:
|
|
21711
|
-
|
|
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
|
+
})
|
|
21712
22904
|
};
|
|
21713
22905
|
};
|
|
21714
22906
|
|
|
21715
|
-
var getColumns$
|
|
22907
|
+
var getColumns$a = function getColumns(_ref) {
|
|
21716
22908
|
var _ref$text = _ref.text,
|
|
21717
22909
|
text = _ref$text === void 0 ? '' : _ref$text,
|
|
21718
22910
|
disabled = _ref.disabled,
|
|
@@ -21829,7 +23021,7 @@ var getColumnsMap$1 = function getColumnsMap(args) {
|
|
|
21829
23021
|
disabled = _ref.disabled,
|
|
21830
23022
|
updateHandle = _ref.updateHandle,
|
|
21831
23023
|
updateDataHandle = _ref.updateDataHandle;
|
|
21832
|
-
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({
|
|
21833
23025
|
text: text,
|
|
21834
23026
|
disabled: disabled,
|
|
21835
23027
|
updateHandle: updateHandle
|
|
@@ -21867,8 +23059,13 @@ var getColumnsMap$1 = function getColumnsMap(args) {
|
|
|
21867
23059
|
text: text,
|
|
21868
23060
|
disabled: disabled,
|
|
21869
23061
|
updateHandle: updateHandle
|
|
23062
|
+
})), getColumns$9({
|
|
23063
|
+
text: text,
|
|
23064
|
+
disabled: disabled,
|
|
23065
|
+
updateHandle: updateHandle,
|
|
23066
|
+
updateDataHandle: updateDataHandle
|
|
21870
23067
|
})), {}, {
|
|
21871
|
-
default: getColumns$
|
|
23068
|
+
default: getColumns$a({
|
|
21872
23069
|
text: text,
|
|
21873
23070
|
disabled: disabled,
|
|
21874
23071
|
updateHandle: updateHandle
|
|
@@ -22015,6 +23212,9 @@ var isErpType = {
|
|
|
22015
23212
|
},
|
|
22016
23213
|
isJy: function isJy(type) {
|
|
22017
23214
|
return ['JY_GOODS', 'JY_REISSUE_GOODS'].includes(type);
|
|
23215
|
+
},
|
|
23216
|
+
isJky: function isJky(type) {
|
|
23217
|
+
return ['JKY_GOODS', 'JKY_REISSUE_GOODS'].includes(type);
|
|
22018
23218
|
}
|
|
22019
23219
|
};
|
|
22020
23220
|
var processGoods$1 = function processGoods(_ref) {
|
|
@@ -22301,6 +23501,8 @@ var GoodsModalMap = {
|
|
|
22301
23501
|
KM_REISSUE_GOODS: KmGoodsModal,
|
|
22302
23502
|
JY_GOODS: JyGoodsModal$1,
|
|
22303
23503
|
JY_REISSUE_GOODS: JyGoodsModal$1,
|
|
23504
|
+
JKY_GOODS: JkyGoodsModal$1,
|
|
23505
|
+
JKY_REISSUE_GOODS: JkyGoodsModal$1,
|
|
22304
23506
|
OTHER_GOODS: GoodsModal$2
|
|
22305
23507
|
};
|
|
22306
23508
|
var systemOrderNoMap = {
|
|
@@ -22313,6 +23515,8 @@ var systemOrderNoMap = {
|
|
|
22313
23515
|
WLN_GOODS: 'tradeNo',
|
|
22314
23516
|
JY_GOODS: 'tradeNo',
|
|
22315
23517
|
JY_REISSUE_GOODS: 'tradeNo',
|
|
23518
|
+
JKY_GOODS: 'tradeNo',
|
|
23519
|
+
JKY_REISSUE_GOODS: 'tradeNo',
|
|
22316
23520
|
KM_REISSUE_GOODS: 'sid',
|
|
22317
23521
|
JST_REISSUE_GOODS: 'oId',
|
|
22318
23522
|
GY_REISSUE_GOODS: 'code',
|
|
@@ -22348,23 +23552,81 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
22348
23552
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
22349
23553
|
tradeGoodsVisible = _useState4[0],
|
|
22350
23554
|
setTradeGoodsVisible = _useState4[1];
|
|
22351
|
-
var
|
|
22352
|
-
|
|
22353
|
-
|
|
22354
|
-
|
|
22355
|
-
|
|
22356
|
-
|
|
22357
|
-
|
|
22358
|
-
|
|
22359
|
-
|
|
22360
|
-
|
|
22361
|
-
|
|
22362
|
-
|
|
22363
|
-
|
|
22364
|
-
|
|
22365
|
-
|
|
22366
|
-
|
|
22367
|
-
|
|
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
|
+
}();
|
|
22368
23630
|
var closeModal = function closeModal() {
|
|
22369
23631
|
return setTradeGoodsVisible(false);
|
|
22370
23632
|
};
|
|
@@ -22433,7 +23695,7 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
22433
23695
|
}
|
|
22434
23696
|
}, isShowSelect && /*#__PURE__*/React.createElement(Row, {
|
|
22435
23697
|
style: {
|
|
22436
|
-
marginBottom: '
|
|
23698
|
+
marginBottom: '12px'
|
|
22437
23699
|
}
|
|
22438
23700
|
}, /*#__PURE__*/React.createElement(Col, {
|
|
22439
23701
|
span: 12
|
|
@@ -22487,6 +23749,9 @@ var getButtonText = function getButtonText() {
|
|
|
22487
23749
|
if (['JY_GOODS', 'JY_REISSUE_GOODS'].includes(type)) {
|
|
22488
23750
|
return '选择巨益ERP商品';
|
|
22489
23751
|
}
|
|
23752
|
+
if (['JKY_GOODS', 'JKY_REISSUE_GOODS'].includes(type)) {
|
|
23753
|
+
return '选择吉客云ERP商品';
|
|
23754
|
+
}
|
|
22490
23755
|
return '选择商品';
|
|
22491
23756
|
};
|
|
22492
23757
|
var GoodItem$1 = function GoodItem(props) {
|
|
@@ -22544,7 +23809,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
22544
23809
|
var jstReturnGoods = Form === null || Form === void 0 ? void 0 : Form.useWatch('3979edfd6d', form);
|
|
22545
23810
|
var isShowSelectTradeGoods = type !== 'JST_EXCHANGE_GOODS' || (jstReturnGoods === null || jstReturnGoods === void 0 ? void 0 : jstReturnGoods.jstSystemOrderNo);
|
|
22546
23811
|
// 判断是否为是否展示系统单筛选项
|
|
22547
|
-
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;
|
|
22548
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;
|
|
22549
23814
|
var refModal = useRef();
|
|
22550
23815
|
console.debug('表格数据', value);
|
|
@@ -22636,6 +23901,8 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
22636
23901
|
case 'KM_REISSUE_GOODS':
|
|
22637
23902
|
case 'JY_GOODS':
|
|
22638
23903
|
case 'JY_REISSUE_GOODS':
|
|
23904
|
+
case 'JKY_GOODS':
|
|
23905
|
+
case 'JKY_REISSUE_GOODS':
|
|
22639
23906
|
case 'SKX_GOODS':
|
|
22640
23907
|
case 'SKX_RETURN_GOODS':
|
|
22641
23908
|
{
|
|
@@ -22683,9 +23950,9 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
22683
23950
|
var COLUMNS_INFO = COLUMNS_MAP(text);
|
|
22684
23951
|
return COLUMNS_INFO(type);
|
|
22685
23952
|
};
|
|
22686
|
-
var getShowFilterColumns = useCallback(function (
|
|
22687
|
-
var showHeader =
|
|
22688
|
-
initBaseInfoColumns =
|
|
23953
|
+
var getShowFilterColumns = useCallback(function (_ref4) {
|
|
23954
|
+
var showHeader = _ref4.showHeader,
|
|
23955
|
+
initBaseInfoColumns = _ref4.initBaseInfoColumns;
|
|
22689
23956
|
var baseInfoColumns = [];
|
|
22690
23957
|
var isStringArray = Array.isArray(showHeader) && typeof showHeader[0] === 'string';
|
|
22691
23958
|
var isObjectArray = Array.isArray(showHeader) && Object.prototype.toString.call(showHeader[0]) === '[object Object]';
|
|
@@ -23840,7 +25107,7 @@ var jyUtils = {
|
|
|
23840
25107
|
};
|
|
23841
25108
|
|
|
23842
25109
|
var singletonMap$7 = new Map();
|
|
23843
|
-
var
|
|
25110
|
+
var getJkyOrderListSingleton = function getJkyOrderListSingleton(orderNo) {
|
|
23844
25111
|
if (!singletonMap$7.has(orderNo)) {
|
|
23845
25112
|
var p = new Promise(function (resolve, reject) {
|
|
23846
25113
|
var doReject = function doReject(err) {
|
|
@@ -23848,6 +25115,50 @@ var getOrderListSingleton$2 = function getOrderListSingleton(orderNo) {
|
|
|
23848
25115
|
singletonMap$7.delete(orderNo);
|
|
23849
25116
|
reject(err);
|
|
23850
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
|
+
};
|
|
23851
25162
|
extendRequest('/qy/gdfw/order/kmErpOrderDetail', {
|
|
23852
25163
|
method: 'post',
|
|
23853
25164
|
data: {
|
|
@@ -23871,16 +25182,16 @@ var getOrderListSingleton$2 = function getOrderListSingleton(orderNo) {
|
|
|
23871
25182
|
}
|
|
23872
25183
|
// 延迟10秒清除,保证订单的时效性
|
|
23873
25184
|
setTimeout(function () {
|
|
23874
|
-
singletonMap$
|
|
25185
|
+
singletonMap$8.delete(orderNo);
|
|
23875
25186
|
}, 1000 * 10);
|
|
23876
25187
|
} else {
|
|
23877
25188
|
doReject(data);
|
|
23878
25189
|
}
|
|
23879
25190
|
}).catch(doReject);
|
|
23880
25191
|
});
|
|
23881
|
-
singletonMap$
|
|
25192
|
+
singletonMap$8.set(orderNo, p);
|
|
23882
25193
|
}
|
|
23883
|
-
return singletonMap$
|
|
25194
|
+
return singletonMap$8.get(orderNo);
|
|
23884
25195
|
};
|
|
23885
25196
|
var kmUtils = {
|
|
23886
25197
|
getOrderListSingleton: getOrderListSingleton$2
|
|
@@ -23897,6 +25208,7 @@ var columnsMap = {
|
|
|
23897
25208
|
GY_SYSTEM_ORDER: GY_SYSTEM_ORDER_CONFIG.columns,
|
|
23898
25209
|
JST_SYSTEM_ORDER: JST_SYSTEM_ORDER_CONFIG.columns,
|
|
23899
25210
|
JY_SYSTEM_ORDER: JY_SYSTEM_ORDER_CONFIG.columns,
|
|
25211
|
+
JKY_SYSTEM_ORDER: JKY_SYSTEM_ORDER_CONFIG.columns,
|
|
23900
25212
|
WDT_RETURN_BILL_NO: WDT_RETURN_BILL_NO_CONFIG.columns
|
|
23901
25213
|
};
|
|
23902
25214
|
var rowKeyMap = {
|
|
@@ -23908,6 +25220,7 @@ var rowKeyMap = {
|
|
|
23908
25220
|
GY_SYSTEM_ORDER: 'billNo',
|
|
23909
25221
|
JST_SYSTEM_ORDER: 'oId',
|
|
23910
25222
|
JY_SYSTEM_ORDER: 'tradeNo',
|
|
25223
|
+
JKY_SYSTEM_ORDER: 'tradeNo',
|
|
23911
25224
|
WDT_RETURN_BILL_NO: 'refundNo'
|
|
23912
25225
|
};
|
|
23913
25226
|
var index$2 = (function (props) {
|
|
@@ -23922,7 +25235,6 @@ var index$2 = (function (props) {
|
|
|
23922
25235
|
useEffect(function () {
|
|
23923
25236
|
var _value$orders, _value$showOrderInfo;
|
|
23924
25237
|
valueRef.current = value;
|
|
23925
|
-
console.log('value77777777', value);
|
|
23926
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) {
|
|
23927
25239
|
onceRef.current = true;
|
|
23928
25240
|
if (type === 'BS_SYSTEM_ORDER') {
|
|
@@ -23941,6 +25253,8 @@ var index$2 = (function (props) {
|
|
|
23941
25253
|
getJstOrderList(value.orderNo);
|
|
23942
25254
|
} else if (type === 'JY_SYSTEM_ORDER') {
|
|
23943
25255
|
getJyOrderList(value.orderNo);
|
|
25256
|
+
} else if (type === 'JKY_SYSTEM_ORDER') {
|
|
25257
|
+
getJkyOrderList(value.orderNo);
|
|
23944
25258
|
}
|
|
23945
25259
|
}
|
|
23946
25260
|
}, [value, type]);
|
|
@@ -24205,6 +25519,31 @@ var index$2 = (function (props) {
|
|
|
24205
25519
|
return _ref10.apply(this, arguments);
|
|
24206
25520
|
};
|
|
24207
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
|
+
}();
|
|
24208
25547
|
var rowSelection = {
|
|
24209
25548
|
selectedRowKeys: (value === null || value === void 0 ? void 0 : value.selectIds) || [],
|
|
24210
25549
|
fixed: true,
|
|
@@ -24629,16 +25968,16 @@ var orderSubFormConstants = {
|
|
|
24629
25968
|
};
|
|
24630
25969
|
|
|
24631
25970
|
var getSelectWidgetMap$1 = orderSubFormConstants.getSelectWidgetMap;
|
|
24632
|
-
var singletonMap$
|
|
25971
|
+
var singletonMap$9 = new Map();
|
|
24633
25972
|
var getOrderListSingleton$3 = function getOrderListSingleton(parmas) {
|
|
24634
25973
|
var orderNo = parmas.orderNo,
|
|
24635
25974
|
shopId = parmas.shopId;
|
|
24636
25975
|
var key = "".concat(orderNo, "-").concat(shopId);
|
|
24637
|
-
if (!singletonMap$
|
|
25976
|
+
if (!singletonMap$9.has(key)) {
|
|
24638
25977
|
var p = new Promise(function (resolve, reject) {
|
|
24639
25978
|
var doReject = function doReject(err) {
|
|
24640
25979
|
// 清空掉错误的请求记录
|
|
24641
|
-
singletonMap$
|
|
25980
|
+
singletonMap$9.delete(key);
|
|
24642
25981
|
reject(err);
|
|
24643
25982
|
};
|
|
24644
25983
|
extendRequest('/qy/gdfw/order/subOrderItemsDetail', {
|
|
@@ -24654,16 +25993,16 @@ var getOrderListSingleton$3 = function getOrderListSingleton(parmas) {
|
|
|
24654
25993
|
}
|
|
24655
25994
|
// 延迟10秒清除,保证订单的时效性
|
|
24656
25995
|
setTimeout(function () {
|
|
24657
|
-
singletonMap$
|
|
25996
|
+
singletonMap$9.delete(key);
|
|
24658
25997
|
}, 1000 * 10);
|
|
24659
25998
|
} else {
|
|
24660
25999
|
doReject(data);
|
|
24661
26000
|
}
|
|
24662
26001
|
}).catch(doReject);
|
|
24663
26002
|
});
|
|
24664
|
-
singletonMap$
|
|
26003
|
+
singletonMap$9.set(key, p);
|
|
24665
26004
|
}
|
|
24666
|
-
return singletonMap$
|
|
26005
|
+
return singletonMap$9.get(key);
|
|
24667
26006
|
};
|
|
24668
26007
|
var renderEditItem = function renderEditItem(_ref) {
|
|
24669
26008
|
var item = _ref.item,
|
|
@@ -25096,6 +26435,9 @@ var isErpType$1 = {
|
|
|
25096
26435
|
},
|
|
25097
26436
|
isJy: function isJy(type) {
|
|
25098
26437
|
return ['JY_GOODS'].includes(type);
|
|
26438
|
+
},
|
|
26439
|
+
isJky: function isJky(type) {
|
|
26440
|
+
return ['JKY_GOODS'].includes(type);
|
|
25099
26441
|
}
|
|
25100
26442
|
};
|
|
25101
26443
|
var processAllOrders = function processAllOrders(_ref) {
|
|
@@ -25396,6 +26738,32 @@ var componentMap$2 = {
|
|
|
25396
26738
|
},
|
|
25397
26739
|
getOrderList: jyUtils.getJyOrderListSingleton
|
|
25398
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
|
+
},
|
|
25399
26767
|
WDT_AFTERSALE_GOODS: {
|
|
25400
26768
|
type: 'wdtAftersale',
|
|
25401
26769
|
key: 'wdtAftersaleGoods',
|
|
@@ -25427,7 +26795,7 @@ var componentMap$2 = {
|
|
|
25427
26795
|
}
|
|
25428
26796
|
};
|
|
25429
26797
|
var CommonGoods = function CommonGoods(props) {
|
|
25430
|
-
var
|
|
26798
|
+
var _withInfo$current3, _withInfo$current4, _componentMap$compTyp6;
|
|
25431
26799
|
var value = props.value,
|
|
25432
26800
|
disabled = props.disabled,
|
|
25433
26801
|
onChange = props.onChange,
|
|
@@ -25443,6 +26811,10 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
25443
26811
|
_useState2 = _slicedToArray(_useState, 2),
|
|
25444
26812
|
tableSelect = _useState2[0],
|
|
25445
26813
|
setTableSelect = _useState2[1];
|
|
26814
|
+
var _useState3 = useState([]),
|
|
26815
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
26816
|
+
originDataSource = _useState4[0],
|
|
26817
|
+
setOriginDataSource = _useState4[1];
|
|
25446
26818
|
var withInfo = useRef(null);
|
|
25447
26819
|
var valueRef = useRef(null);
|
|
25448
26820
|
var tokens = useRef([]);
|
|
@@ -25454,10 +26826,93 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
25454
26826
|
compType.indexOf('WDT') > -1 && getWdtOrderList(value === null || value === void 0 ? void 0 : value.orderNo);
|
|
25455
26827
|
}
|
|
25456
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]);
|
|
25457
26912
|
var getWdtOrderList = /*#__PURE__*/function () {
|
|
25458
|
-
var
|
|
25459
|
-
return _regeneratorRuntime().wrap(function
|
|
25460
|
-
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) {
|
|
25461
26916
|
case 0:
|
|
25462
26917
|
wdtUtils.getWdtOrderListSingleton(orderNo).then(function (data) {
|
|
25463
26918
|
var orders = ((data === null || data === void 0 ? void 0 : data.trades) || []).filter(function (trade) {
|
|
@@ -25470,12 +26925,12 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
25470
26925
|
});
|
|
25471
26926
|
case 1:
|
|
25472
26927
|
case "end":
|
|
25473
|
-
return
|
|
26928
|
+
return _context2.stop();
|
|
25474
26929
|
}
|
|
25475
|
-
},
|
|
26930
|
+
}, _callee2);
|
|
25476
26931
|
}));
|
|
25477
|
-
return function getWdtOrderList(
|
|
25478
|
-
return
|
|
26932
|
+
return function getWdtOrderList(_x2) {
|
|
26933
|
+
return _ref2.apply(this, arguments);
|
|
25479
26934
|
};
|
|
25480
26935
|
}();
|
|
25481
26936
|
useEffect(function () {
|
|
@@ -25581,8 +27036,8 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
25581
27036
|
mode: isStrict
|
|
25582
27037
|
}))));
|
|
25583
27038
|
};
|
|
25584
|
-
var getGoodDetails = function getGoodDetails(
|
|
25585
|
-
var mode =
|
|
27039
|
+
var getGoodDetails = function getGoodDetails(_ref3) {
|
|
27040
|
+
var mode = _ref3.mode;
|
|
25586
27041
|
var updateHandle = componentMap$2[compType].eventNameMap['updateGoodsHandle'];
|
|
25587
27042
|
if (!updateHandle) return [];
|
|
25588
27043
|
var goodDetails = updateHandle((value === null || value === void 0 ? void 0 : value.orders) || [], {
|
|
@@ -25595,44 +27050,115 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
25595
27050
|
}) : goodDetails;
|
|
25596
27051
|
};
|
|
25597
27052
|
// 找到该订单号下所有商品
|
|
25598
|
-
var getAllTradeGoodsDetails = function
|
|
25599
|
-
var
|
|
25600
|
-
|
|
25601
|
-
|
|
25602
|
-
|
|
25603
|
-
|
|
25604
|
-
|
|
25605
|
-
|
|
25606
|
-
|
|
25607
|
-
|
|
25608
|
-
|
|
25609
|
-
|
|
25610
|
-
|
|
25611
|
-
|
|
25612
|
-
|
|
25613
|
-
|
|
25614
|
-
|
|
25615
|
-
|
|
25616
|
-
|
|
25617
|
-
|
|
25618
|
-
|
|
25619
|
-
|
|
25620
|
-
|
|
25621
|
-
|
|
25622
|
-
|
|
25623
|
-
|
|
25624
|
-
|
|
25625
|
-
|
|
25626
|
-
|
|
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
|
+
}();
|
|
25627
27152
|
// 商品信息组件暂存后 重新编辑,此时需要重新获取订单下所有系统自订单的商品信息
|
|
25628
27153
|
var getDataSourceAsync = function getDataSourceAsync() {
|
|
25629
|
-
var _componentMap$
|
|
25630
|
-
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) {
|
|
25631
27156
|
var list = processAllOrders({
|
|
25632
27157
|
data: data,
|
|
25633
27158
|
orderNo: value === null || value === void 0 ? void 0 : value.orderNo,
|
|
25634
27159
|
type: compType
|
|
25635
27160
|
});
|
|
27161
|
+
console.log('getDataSourceAsync', list);
|
|
25636
27162
|
onChange(_objectSpread2(_objectSpread2({}, valueRef.current), {}, {
|
|
25637
27163
|
allOrders: list || []
|
|
25638
27164
|
}));
|
|
@@ -25660,11 +27186,9 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
25660
27186
|
isStrict: value === null || value === void 0 ? void 0 : value.isStrict,
|
|
25661
27187
|
systemOrders: value === null || value === void 0 ? void 0 : value.allOrders,
|
|
25662
27188
|
selectedSystemOrders: value === null || value === void 0 ? void 0 : value.orders,
|
|
25663
|
-
showChangeBtn: (_componentMap$
|
|
27189
|
+
showChangeBtn: (_componentMap$compTyp6 = componentMap$2[compType]) === null || _componentMap$compTyp6 === void 0 ? void 0 : _componentMap$compTyp6.showChangeBtn,
|
|
25664
27190
|
tradeGoods: {
|
|
25665
|
-
originDataSource:
|
|
25666
|
-
mode: value === null || value === void 0 ? void 0 : value.isStrict
|
|
25667
|
-
}),
|
|
27191
|
+
originDataSource: originDataSource,
|
|
25668
27192
|
getDataSourceAsync: getDataSourceAsync,
|
|
25669
27193
|
selectedGoodsChange: selectedGoodsChange
|
|
25670
27194
|
}
|
|
@@ -26440,12 +27964,95 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
26440
27964
|
mode: mode
|
|
26441
27965
|
}))));
|
|
26442
27966
|
};
|
|
26443
|
-
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) {
|
|
26444
28051
|
var _typeMap$type18, _typeMap$type19, _value$typeMap$type$s6, _typeMap$type20, _typeMap$type21, _typeMap$type22, _typeMap$type23, _typeMap$type24;
|
|
26445
|
-
var mode =
|
|
26446
|
-
sysOrderNo =
|
|
26447
|
-
|
|
26448
|
-
isAllOrders =
|
|
28052
|
+
var mode = _ref5.mode,
|
|
28053
|
+
sysOrderNo = _ref5.sysOrderNo,
|
|
28054
|
+
_ref5$isAllOrders = _ref5.isAllOrders,
|
|
28055
|
+
isAllOrders = _ref5$isAllOrders === void 0 ? false : _ref5$isAllOrders;
|
|
26449
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];
|
|
26450
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];
|
|
26451
28058
|
var order = systemOrderNo && ((systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orders) || []).find(function (order) {
|
|
@@ -27357,7 +28964,7 @@ var MsgStatus = function MsgStatus(props) {
|
|
|
27357
28964
|
onClick: function onClick() {
|
|
27358
28965
|
return setChangeIndex(index);
|
|
27359
28966
|
}
|
|
27360
|
-
}, msgTypeCh[key], item.ruleName);
|
|
28967
|
+
}, msgTypeCh[key] || key, item.ruleName);
|
|
27361
28968
|
}))) : null, type === 1 ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Select, _objectSpread2(_objectSpread2({}, other), {}, {
|
|
27362
28969
|
showSearch: true,
|
|
27363
28970
|
value: (_value$changeIndex = value[changeIndex]) === null || _value$changeIndex === void 0 ? void 0 : _value$changeIndex.status,
|
|
@@ -27935,7 +29542,7 @@ var GyReissue = function GyReissue(props) {
|
|
|
27935
29542
|
span: 12
|
|
27936
29543
|
},
|
|
27937
29544
|
sm: {
|
|
27938
|
-
span:
|
|
29545
|
+
span: 4
|
|
27939
29546
|
}
|
|
27940
29547
|
}, /*#__PURE__*/React.createElement(Cascader, {
|
|
27941
29548
|
style: {
|
|
@@ -28238,7 +29845,7 @@ var GyReturnGoods = function GyReturnGoods(props) {
|
|
|
28238
29845
|
span: 12
|
|
28239
29846
|
},
|
|
28240
29847
|
sm: {
|
|
28241
|
-
span:
|
|
29848
|
+
span: 4
|
|
28242
29849
|
}
|
|
28243
29850
|
}, /*#__PURE__*/React.createElement(Cascader, {
|
|
28244
29851
|
style: {
|
|
@@ -28911,7 +30518,8 @@ var SYSTEM_ORDER_COLUMNS_MAP = {
|
|
|
28911
30518
|
GY_SYSTEM_ORDER: GY_SYSTEM_ORDER_CONFIG.columns,
|
|
28912
30519
|
JST_SYSTEM_ORDER: JST_SYSTEM_ORDER_CONFIG.columns,
|
|
28913
30520
|
JY_SYSTEM_ORDER: JY_SYSTEM_ORDER_CONFIG.columns,
|
|
30521
|
+
JKY_SYSTEM_ORDER: JKY_SYSTEM_ORDER_CONFIG.columns,
|
|
28914
30522
|
WDT_RETURN_BILL_NO: WDT_RETURN_BILL_NO_CONFIG.columns
|
|
28915
30523
|
};
|
|
28916
30524
|
|
|
28917
|
-
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 };
|