@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.js
CHANGED
|
@@ -8469,7 +8469,10 @@ var processLogisticsTrajectory = function processLogisticsTrajectory(getValue) {
|
|
|
8469
8469
|
var map = subFields.reduce(function (cur, nxt) {
|
|
8470
8470
|
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))));
|
|
8471
8471
|
}, {});
|
|
8472
|
-
|
|
8472
|
+
var mapChild = subFields.reduce(function (cur, nxt) {
|
|
8473
|
+
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))));
|
|
8474
|
+
}, {});
|
|
8475
|
+
return _objectSpread2(_defineProperty({}, nex.uniqueKey, map), mapChild);
|
|
8473
8476
|
};
|
|
8474
8477
|
};
|
|
8475
8478
|
var processLogisticsTrajectoryMore = function processLogisticsTrajectoryMore(getValue) {
|
|
@@ -8493,12 +8496,12 @@ var processItemSelectThird = function processItemSelectThird(getValue) {
|
|
|
8493
8496
|
};
|
|
8494
8497
|
var processEnterPrisePayment = function processEnterPrisePayment(getValue) {
|
|
8495
8498
|
return function (nex, config) {
|
|
8496
|
-
var
|
|
8499
|
+
var _ref33;
|
|
8497
8500
|
var subFields = ['enterprisePaymentAlipayNick', 'enterprisePaymentAlipayNo', 'enterprisePaymentBuyerNick', 'enterprisePaymentBuyerOpenUid', 'enterprisePaymentRefundFee', 'enterprisePaymentStatus', 'enterprisePaymentTid'];
|
|
8498
8501
|
var map = subFields.reduce(function (cur, nxt) {
|
|
8499
8502
|
return _objectSpread2(_objectSpread2({}, cur), {}, _defineProperty({}, nxt, getValue("".concat(nex.uniqueKey, "_").concat(nxt))));
|
|
8500
8503
|
}, {});
|
|
8501
|
-
return
|
|
8504
|
+
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;
|
|
8502
8505
|
};
|
|
8503
8506
|
};
|
|
8504
8507
|
var processJstLogistics = function processJstLogistics(getValue) {
|
|
@@ -9261,14 +9264,14 @@ var processJstReturnGoods = function processJstReturnGoods(templateColumns) {
|
|
|
9261
9264
|
};
|
|
9262
9265
|
var processLabel = function processLabel(getValue) {
|
|
9263
9266
|
return function (nex, config) {
|
|
9264
|
-
var
|
|
9265
|
-
return
|
|
9267
|
+
var _ref73;
|
|
9268
|
+
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;
|
|
9266
9269
|
};
|
|
9267
9270
|
};
|
|
9268
9271
|
var processMemberLevel = function processMemberLevel(getValue) {
|
|
9269
9272
|
return function (nex, config) {
|
|
9270
|
-
var
|
|
9271
|
-
return
|
|
9273
|
+
var _ref74;
|
|
9274
|
+
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;
|
|
9272
9275
|
};
|
|
9273
9276
|
};
|
|
9274
9277
|
var processAfterSalesOrderId = function processAfterSalesOrderId(getValue) {
|
|
@@ -9563,7 +9566,6 @@ var FileRender = function FileRender(_ref) {
|
|
|
9563
9566
|
cursor: 'pointer'
|
|
9564
9567
|
},
|
|
9565
9568
|
onClick: function onClick(e) {
|
|
9566
|
-
console.log('onPreview');
|
|
9567
9569
|
e.preventDefault();
|
|
9568
9570
|
onPreview(item);
|
|
9569
9571
|
},
|
|
@@ -9659,6 +9661,9 @@ var PictureRender = function PictureRender(_ref2) {
|
|
|
9659
9661
|
}));
|
|
9660
9662
|
}));
|
|
9661
9663
|
};
|
|
9664
|
+
var LogisticsCompanyRender = function LogisticsCompanyRender(value) {
|
|
9665
|
+
return kmkfUtils.ExpressData.getInstance().getExpressNameByCode(value) || value;
|
|
9666
|
+
};
|
|
9662
9667
|
var MultipleSelectRender = function MultipleSelectRender(_ref5) {
|
|
9663
9668
|
var _ref5$value = _ref5.value,
|
|
9664
9669
|
value = _ref5$value === void 0 ? [] : _ref5$value;
|
|
@@ -9693,6 +9698,16 @@ var renderMap = {
|
|
|
9693
9698
|
});
|
|
9694
9699
|
}
|
|
9695
9700
|
};
|
|
9701
|
+
var renderSplitMap = {
|
|
9702
|
+
//物流轨迹-物流公司
|
|
9703
|
+
jbCFrJV4m7_trajectoryCompany: function jbCFrJV4m7_trajectoryCompany(value) {
|
|
9704
|
+
return LogisticsCompanyRender(value);
|
|
9705
|
+
},
|
|
9706
|
+
//退货物流-物流公司
|
|
9707
|
+
'0qFEv9GEyd_returnLogisticsCompany': function qFEv9GEyd_returnLogisticsCompany(value) {
|
|
9708
|
+
return LogisticsCompanyRender(value);
|
|
9709
|
+
}
|
|
9710
|
+
};
|
|
9696
9711
|
var EditPictureRender = function EditPictureRender(_ref6) {
|
|
9697
9712
|
var _ref6$val = _ref6.val,
|
|
9698
9713
|
val = _ref6$val === void 0 ? [] : _ref6$val,
|
|
@@ -9788,7 +9803,6 @@ var EditFileRender = function EditFileRender(_ref7) {
|
|
|
9788
9803
|
var EditRenderMap = {
|
|
9789
9804
|
INPUT: function INPUT(_ref8) {
|
|
9790
9805
|
var val = _ref8.val,
|
|
9791
|
-
record = _ref8.record,
|
|
9792
9806
|
index = _ref8.index,
|
|
9793
9807
|
t = _ref8.t,
|
|
9794
9808
|
updateHandle = _ref8.updateHandle,
|
|
@@ -9817,7 +9831,6 @@ var EditRenderMap = {
|
|
|
9817
9831
|
},
|
|
9818
9832
|
TEXTAREA: function TEXTAREA(_ref9) {
|
|
9819
9833
|
var val = _ref9.val,
|
|
9820
|
-
record = _ref9.record,
|
|
9821
9834
|
index = _ref9.index,
|
|
9822
9835
|
t = _ref9.t,
|
|
9823
9836
|
updateHandle = _ref9.updateHandle,
|
|
@@ -9846,7 +9859,6 @@ var EditRenderMap = {
|
|
|
9846
9859
|
},
|
|
9847
9860
|
PICTURE: function PICTURE(_ref10) {
|
|
9848
9861
|
var val = _ref10.val,
|
|
9849
|
-
record = _ref10.record,
|
|
9850
9862
|
index = _ref10.index,
|
|
9851
9863
|
t = _ref10.t,
|
|
9852
9864
|
updateHandle = _ref10.updateHandle,
|
|
@@ -9864,7 +9876,6 @@ var EditRenderMap = {
|
|
|
9864
9876
|
},
|
|
9865
9877
|
FILE: function FILE(_ref11) {
|
|
9866
9878
|
var val = _ref11.val,
|
|
9867
|
-
record = _ref11.record,
|
|
9868
9879
|
index = _ref11.index,
|
|
9869
9880
|
t = _ref11.t,
|
|
9870
9881
|
updateHandle = _ref11.updateHandle,
|
|
@@ -9882,7 +9893,6 @@ var EditRenderMap = {
|
|
|
9882
9893
|
},
|
|
9883
9894
|
RADIO: function RADIO(_ref12) {
|
|
9884
9895
|
var val = _ref12.val,
|
|
9885
|
-
record = _ref12.record,
|
|
9886
9896
|
index = _ref12.index,
|
|
9887
9897
|
t = _ref12.t,
|
|
9888
9898
|
updateHandle = _ref12.updateHandle,
|
|
@@ -9905,7 +9915,6 @@ var EditRenderMap = {
|
|
|
9905
9915
|
},
|
|
9906
9916
|
SELECT: function SELECT(_ref13) {
|
|
9907
9917
|
var val = _ref13.val,
|
|
9908
|
-
record = _ref13.record,
|
|
9909
9918
|
index = _ref13.index,
|
|
9910
9919
|
t = _ref13.t,
|
|
9911
9920
|
updateHandle = _ref13.updateHandle,
|
|
@@ -9928,7 +9937,6 @@ var EditRenderMap = {
|
|
|
9928
9937
|
},
|
|
9929
9938
|
CHECKBOX: function CHECKBOX(_ref14) {
|
|
9930
9939
|
var val = _ref14.val,
|
|
9931
|
-
record = _ref14.record,
|
|
9932
9940
|
index = _ref14.index,
|
|
9933
9941
|
t = _ref14.t,
|
|
9934
9942
|
updateHandle = _ref14.updateHandle,
|
|
@@ -9950,7 +9958,6 @@ var EditRenderMap = {
|
|
|
9950
9958
|
},
|
|
9951
9959
|
BASIC_MULT_SELECT: function BASIC_MULT_SELECT(_ref15) {
|
|
9952
9960
|
var val = _ref15.val,
|
|
9953
|
-
record = _ref15.record,
|
|
9954
9961
|
index = _ref15.index,
|
|
9955
9962
|
t = _ref15.t,
|
|
9956
9963
|
updateHandle = _ref15.updateHandle,
|
|
@@ -9969,6 +9976,57 @@ var EditRenderMap = {
|
|
|
9969
9976
|
return updateHandle(e, index, t.key);
|
|
9970
9977
|
}
|
|
9971
9978
|
}));
|
|
9979
|
+
},
|
|
9980
|
+
DEFAULT: function DEFAULT(_ref16) {
|
|
9981
|
+
var val = _ref16.val,
|
|
9982
|
+
index = _ref16.index,
|
|
9983
|
+
t = _ref16.t,
|
|
9984
|
+
updateHandle = _ref16.updateHandle,
|
|
9985
|
+
disabled = _ref16.disabled;
|
|
9986
|
+
return !t.isEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
9987
|
+
allowClear: true,
|
|
9988
|
+
style: {
|
|
9989
|
+
width: '100%'
|
|
9990
|
+
},
|
|
9991
|
+
value: val,
|
|
9992
|
+
onChange: function onChange(e) {
|
|
9993
|
+
var _e$target3;
|
|
9994
|
+
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);
|
|
9995
|
+
}
|
|
9996
|
+
}) : /*#__PURE__*/React__default['default'].createElement("div", null, val);
|
|
9997
|
+
}
|
|
9998
|
+
};
|
|
9999
|
+
var EditSplitRenderMap = {
|
|
10000
|
+
jbCFrJV4m7_trajectoryCompany: function jbCFrJV4m7_trajectoryCompany(_ref17) {
|
|
10001
|
+
var val = _ref17.val,
|
|
10002
|
+
index = _ref17.index,
|
|
10003
|
+
t = _ref17.t,
|
|
10004
|
+
updateHandle = _ref17.updateHandle,
|
|
10005
|
+
disabled = _ref17.disabled;
|
|
10006
|
+
return /*#__PURE__*/React__default['default'].createElement(ApaasLogistics, {
|
|
10007
|
+
value: val,
|
|
10008
|
+
allowClear: true,
|
|
10009
|
+
onChange: function onChange(e) {
|
|
10010
|
+
return updateHandle(e, index, t.key);
|
|
10011
|
+
},
|
|
10012
|
+
disabled: t.isEdit || disabled
|
|
10013
|
+
});
|
|
10014
|
+
},
|
|
10015
|
+
//退货物流-物流公司
|
|
10016
|
+
'0qFEv9GEyd_returnLogisticsCompany': function qFEv9GEyd_returnLogisticsCompany(_ref18) {
|
|
10017
|
+
var val = _ref18.val,
|
|
10018
|
+
index = _ref18.index,
|
|
10019
|
+
t = _ref18.t,
|
|
10020
|
+
updateHandle = _ref18.updateHandle,
|
|
10021
|
+
disabled = _ref18.disabled;
|
|
10022
|
+
return /*#__PURE__*/React__default['default'].createElement(ApaasLogistics, {
|
|
10023
|
+
value: val,
|
|
10024
|
+
allowClear: true,
|
|
10025
|
+
onChange: function onChange(e) {
|
|
10026
|
+
return updateHandle(e, index, t.key);
|
|
10027
|
+
},
|
|
10028
|
+
disabled: t.isEdit || disabled
|
|
10029
|
+
});
|
|
9972
10030
|
}
|
|
9973
10031
|
};
|
|
9974
10032
|
|
|
@@ -9996,6 +10054,7 @@ function HoverTableRowDeleteIcon(_ref) {
|
|
|
9996
10054
|
}
|
|
9997
10055
|
|
|
9998
10056
|
var WidgetMap = {
|
|
10057
|
+
TRADE_ID_INPUT: 'tradeId',
|
|
9999
10058
|
INPUT: 'input',
|
|
10000
10059
|
TEXTAREA: 'textarea',
|
|
10001
10060
|
PICTURE: 'picture',
|
|
@@ -10022,8 +10081,8 @@ var SubForm = function SubForm(props) {
|
|
|
10022
10081
|
tableHeader = props.tableHeader,
|
|
10023
10082
|
disabled = props.disabled,
|
|
10024
10083
|
platform = props.platform,
|
|
10025
|
-
|
|
10026
|
-
|
|
10084
|
+
maxCount = props.maxCount,
|
|
10085
|
+
manual = props.manual;
|
|
10027
10086
|
var ref = React.useRef(null);
|
|
10028
10087
|
var isRequest = React.useRef(false);
|
|
10029
10088
|
var _useState = React.useState(false),
|
|
@@ -10098,7 +10157,6 @@ var SubForm = function SubForm(props) {
|
|
|
10098
10157
|
return deleteHandle(record.uuid);
|
|
10099
10158
|
}
|
|
10100
10159
|
});
|
|
10101
|
-
// return <div style={{ width: 25 }}>{index + 1}</div>;
|
|
10102
10160
|
}
|
|
10103
10161
|
}].concat(_toConsumableArray(newTableHeader.map(function (t) {
|
|
10104
10162
|
return {
|
|
@@ -10111,27 +10169,41 @@ var SubForm = function SubForm(props) {
|
|
|
10111
10169
|
ellipsis: true,
|
|
10112
10170
|
width: t.width,
|
|
10113
10171
|
render: function render(val, record, index) {
|
|
10114
|
-
|
|
10115
|
-
|
|
10116
|
-
|
|
10117
|
-
|
|
10118
|
-
|
|
10119
|
-
|
|
10120
|
-
|
|
10121
|
-
|
|
10122
|
-
|
|
10123
|
-
|
|
10124
|
-
|
|
10125
|
-
|
|
10126
|
-
|
|
10127
|
-
|
|
10128
|
-
|
|
10129
|
-
|
|
10130
|
-
|
|
10131
|
-
|
|
10132
|
-
|
|
10133
|
-
|
|
10134
|
-
|
|
10172
|
+
if (EditRenderMap[t.workOrderComponentType]) {
|
|
10173
|
+
return EditRenderMap[t.workOrderComponentType]({
|
|
10174
|
+
val: val,
|
|
10175
|
+
record: record,
|
|
10176
|
+
index: index,
|
|
10177
|
+
t: t,
|
|
10178
|
+
updateHandle: updateHandle,
|
|
10179
|
+
disabled: disabled,
|
|
10180
|
+
componentDto: componentDtoList.find(function (item) {
|
|
10181
|
+
return item.uniqueKey === t.key;
|
|
10182
|
+
}),
|
|
10183
|
+
platform: platform
|
|
10184
|
+
});
|
|
10185
|
+
} else if (EditSplitRenderMap[t.key]) {
|
|
10186
|
+
return EditSplitRenderMap[t.key]({
|
|
10187
|
+
val: val,
|
|
10188
|
+
index: index,
|
|
10189
|
+
t: t,
|
|
10190
|
+
updateHandle: updateHandle,
|
|
10191
|
+
disabled: disabled
|
|
10192
|
+
});
|
|
10193
|
+
} else {
|
|
10194
|
+
return EditRenderMap['DEFAULT']({
|
|
10195
|
+
val: val,
|
|
10196
|
+
record: record,
|
|
10197
|
+
index: index,
|
|
10198
|
+
t: t,
|
|
10199
|
+
updateHandle: updateHandle,
|
|
10200
|
+
disabled: disabled,
|
|
10201
|
+
componentDto: componentDtoList.find(function (item) {
|
|
10202
|
+
return item.uniqueKey === t.key;
|
|
10203
|
+
}),
|
|
10204
|
+
platform: platform
|
|
10205
|
+
});
|
|
10206
|
+
}
|
|
10135
10207
|
}
|
|
10136
10208
|
};
|
|
10137
10209
|
})), [disabled ? {} : {
|
|
@@ -10181,6 +10253,10 @@ var SubForm = function SubForm(props) {
|
|
|
10181
10253
|
item.render = function (val) {
|
|
10182
10254
|
return renderMap[t.workOrderComponentType](val, platform);
|
|
10183
10255
|
};
|
|
10256
|
+
} else if (renderSplitMap[t.key]) {
|
|
10257
|
+
item.render = function (val) {
|
|
10258
|
+
return renderSplitMap[t.key](val);
|
|
10259
|
+
};
|
|
10184
10260
|
}
|
|
10185
10261
|
return item;
|
|
10186
10262
|
})));
|
|
@@ -10195,7 +10271,11 @@ var SubForm = function SubForm(props) {
|
|
|
10195
10271
|
if (['PICTURE', 'FILE', 'BASIC_MULT_SELECT', 'CHECKBOX'].includes(next.workOrderComponentType)) {
|
|
10196
10272
|
item.defaultValue = [];
|
|
10197
10273
|
}
|
|
10198
|
-
|
|
10274
|
+
if (!['LOGISTICS_TRAJECTORY', 'RETURN_LOGISTICS_SELECT'].includes(next.workOrderComponentType)) {
|
|
10275
|
+
prv["".concat(next.key, "_").concat(WidgetMap[next.workOrderComponentType])] = item;
|
|
10276
|
+
} else {
|
|
10277
|
+
prv["".concat(next.key)] = item;
|
|
10278
|
+
}
|
|
10199
10279
|
return prv;
|
|
10200
10280
|
}, {});
|
|
10201
10281
|
}, [newTableHeader]);
|
|
@@ -10212,7 +10292,7 @@ var SubForm = function SubForm(props) {
|
|
|
10212
10292
|
}).map(function (item) {
|
|
10213
10293
|
return {
|
|
10214
10294
|
label: item.name,
|
|
10215
|
-
value: "".concat(item.key, "_").concat(WidgetMap[item.workOrderComponentType])
|
|
10295
|
+
value: WidgetMap[item.workOrderComponentType] ? "".concat(item.key, "_").concat(WidgetMap[item.workOrderComponentType]) : item.key
|
|
10216
10296
|
};
|
|
10217
10297
|
});
|
|
10218
10298
|
setSelectKey(options === null || options === void 0 ? void 0 : (_options$ = options[0]) === null || _options$ === void 0 ? void 0 : _options$.value);
|
|
@@ -10254,6 +10334,7 @@ var SubForm = function SubForm(props) {
|
|
|
10254
10334
|
_ref2$componentList,
|
|
10255
10335
|
componentList,
|
|
10256
10336
|
params,
|
|
10337
|
+
queryComponents,
|
|
10257
10338
|
res,
|
|
10258
10339
|
data,
|
|
10259
10340
|
success,
|
|
@@ -10286,15 +10367,25 @@ var SubForm = function SubForm(props) {
|
|
|
10286
10367
|
}]
|
|
10287
10368
|
};
|
|
10288
10369
|
if (selectKey && inputValue) {
|
|
10289
|
-
|
|
10370
|
+
queryComponents = [{
|
|
10290
10371
|
key: 'flowStatus',
|
|
10291
10372
|
symbol: 'in',
|
|
10292
10373
|
value: flowStatus
|
|
10293
|
-
}, {
|
|
10294
|
-
key: selectKey,
|
|
10295
|
-
symbol: 'in',
|
|
10296
|
-
value: [inputValue]
|
|
10297
10374
|
}];
|
|
10375
|
+
if (['0qFEv9GEyd_returnLogisticsCode', 'jbCFrJV4m7_trajectoryCode'].includes(selectKey)) {
|
|
10376
|
+
queryComponents.push({
|
|
10377
|
+
key: selectKey,
|
|
10378
|
+
symbol: 'like',
|
|
10379
|
+
value: inputValue
|
|
10380
|
+
});
|
|
10381
|
+
} else {
|
|
10382
|
+
queryComponents.push({
|
|
10383
|
+
key: selectKey,
|
|
10384
|
+
symbol: 'in',
|
|
10385
|
+
value: [inputValue]
|
|
10386
|
+
});
|
|
10387
|
+
}
|
|
10388
|
+
params.queryComponents = queryComponents;
|
|
10298
10389
|
}
|
|
10299
10390
|
_context.next = 7;
|
|
10300
10391
|
return extendRequest('/qy/view/workOrderList', {
|
|
@@ -10490,7 +10581,21 @@ var SubForm = function SubForm(props) {
|
|
|
10490
10581
|
placement: "bottom",
|
|
10491
10582
|
visible: open,
|
|
10492
10583
|
onVisibleChange: handleOpenChange
|
|
10493
|
-
}, /*#__PURE__*/React__default['default'].createElement(
|
|
10584
|
+
}, ['0qFEv9GEyd_returnLogisticsCompany', 'jbCFrJV4m7_trajectoryCompany'].includes(selectKey) ? /*#__PURE__*/React__default['default'].createElement(ApaasLogistics, {
|
|
10585
|
+
value: undefined,
|
|
10586
|
+
onChange: function onChange(val) {
|
|
10587
|
+
onChangeInput(val);
|
|
10588
|
+
},
|
|
10589
|
+
placeholder: "\u8BF7\u9009\u62E9\u7269\u6D41\u516C\u53F8",
|
|
10590
|
+
showSearch: true,
|
|
10591
|
+
allowClear: true,
|
|
10592
|
+
style: {
|
|
10593
|
+
width: '180px'
|
|
10594
|
+
},
|
|
10595
|
+
filterOption: function filterOption(input, option) {
|
|
10596
|
+
return option.label.includes(input);
|
|
10597
|
+
}
|
|
10598
|
+
}) : /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
10494
10599
|
placeholder: "\u8F93\u5165\u5173\u952E\u8BCD\u67E5\u8BE2",
|
|
10495
10600
|
allowClear: true,
|
|
10496
10601
|
onChange: function onChange(e) {
|
|
@@ -13466,7 +13571,7 @@ var LogisticsTrajectory = function LogisticsTrajectory(props) {
|
|
|
13466
13571
|
if (disabled) {
|
|
13467
13572
|
return;
|
|
13468
13573
|
}
|
|
13469
|
-
if (['SF', 'ZTO'].includes(newCompany) && !(newCompany && trajectoryCode && trajectoryPhone)) {
|
|
13574
|
+
if (['KYE', 'SF', 'ZTO'].includes(newCompany) && !(newCompany && trajectoryCode && trajectoryPhone)) {
|
|
13470
13575
|
return;
|
|
13471
13576
|
} else if (!(newCompany && trajectoryCode)) {
|
|
13472
13577
|
return;
|
|
@@ -13602,7 +13707,7 @@ var LogisticsTrajectory = function LogisticsTrajectory(props) {
|
|
|
13602
13707
|
value: value === null || value === void 0 ? void 0 : value.trajectorySnapshot
|
|
13603
13708
|
});
|
|
13604
13709
|
};
|
|
13605
|
-
return /*#__PURE__*/React__default['default'].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__default['default'].createElement(LogisticsSnapshot, null) : null);
|
|
13710
|
+
return /*#__PURE__*/React__default['default'].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__default['default'].createElement(LogisticsSnapshot, null) : null);
|
|
13606
13711
|
};
|
|
13607
13712
|
|
|
13608
13713
|
var LogisticsMoreTrajectory = function LogisticsMoreTrajectory(props) {
|
|
@@ -13858,7 +13963,7 @@ var jstGoods = function jstGoods(props) {
|
|
|
13858
13963
|
changeIndex = _useState2[0],
|
|
13859
13964
|
setChangeIndex = _useState2[1]; //选中的包裹
|
|
13860
13965
|
var sendOptions = kmkfUtils.SendDataCenter.getInstance(platformType).getSendData();
|
|
13861
|
-
var isSelectName = ['wdt', 'bsE3', 'km', 'gy', 'jst', 'jy'].includes(platformType);
|
|
13966
|
+
var isSelectName = ['wdt', 'bsE3', 'km', 'gy', 'jst', 'jy', 'jky'].includes(platformType);
|
|
13862
13967
|
var expressDateInstance = kmkfUtils.ExpressData.getInstance(platformType);
|
|
13863
13968
|
var isSendGoodSavedId = isSelectName && !['jst'].includes(platformType);
|
|
13864
13969
|
React.useEffect(function () {
|
|
@@ -14112,7 +14217,7 @@ var renderTextEllipsis = function renderTextEllipsis(value) {
|
|
|
14112
14217
|
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";
|
|
14113
14218
|
styleInject(css_248z$b);
|
|
14114
14219
|
|
|
14115
|
-
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:
|
|
14220
|
+
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";
|
|
14116
14221
|
styleInject(css_248z$c);
|
|
14117
14222
|
|
|
14118
14223
|
var _excluded$d = ["shopId"];
|
|
@@ -15228,6 +15333,223 @@ var jyColumns = [{
|
|
|
15228
15333
|
}
|
|
15229
15334
|
}];
|
|
15230
15335
|
|
|
15336
|
+
var jkyColumns = [{
|
|
15337
|
+
dataIndex: 'goodsNo',
|
|
15338
|
+
title: "\u8D27\u54C1\u7F16\u53F7",
|
|
15339
|
+
align: 'center',
|
|
15340
|
+
ellipsis: true,
|
|
15341
|
+
width: 150,
|
|
15342
|
+
render: renderTextEllipsis
|
|
15343
|
+
}, {
|
|
15344
|
+
dataIndex: 'goodsName',
|
|
15345
|
+
title: "\u8D27\u54C1\u540D\u79F0",
|
|
15346
|
+
align: 'center',
|
|
15347
|
+
ellipsis: true,
|
|
15348
|
+
width: 150,
|
|
15349
|
+
render: renderTextEllipsis
|
|
15350
|
+
}, {
|
|
15351
|
+
dataIndex: 'goodsId',
|
|
15352
|
+
title: "\u8D27\u54C1ID",
|
|
15353
|
+
align: 'center',
|
|
15354
|
+
ellipsis: true,
|
|
15355
|
+
width: 150,
|
|
15356
|
+
render: renderTextEllipsis
|
|
15357
|
+
}, {
|
|
15358
|
+
dataIndex: 'barcode',
|
|
15359
|
+
title: "\u8D27\u54C1\u6761\u7801",
|
|
15360
|
+
align: 'center',
|
|
15361
|
+
ellipsis: true,
|
|
15362
|
+
width: 150,
|
|
15363
|
+
render: renderTextEllipsis
|
|
15364
|
+
}, {
|
|
15365
|
+
dataIndex: 'specName',
|
|
15366
|
+
title: "\u89C4\u683C\u540D\u79F0",
|
|
15367
|
+
align: 'center',
|
|
15368
|
+
ellipsis: true,
|
|
15369
|
+
width: 150,
|
|
15370
|
+
render: renderTextEllipsis
|
|
15371
|
+
}, {
|
|
15372
|
+
dataIndex: 'specId',
|
|
15373
|
+
title: "\u89C4\u683CID",
|
|
15374
|
+
align: 'center',
|
|
15375
|
+
ellipsis: true,
|
|
15376
|
+
width: 150,
|
|
15377
|
+
render: renderTextEllipsis
|
|
15378
|
+
}, {
|
|
15379
|
+
dataIndex: 'skuImgUrl',
|
|
15380
|
+
title: "\u89C4\u683C\u56FE\u7247",
|
|
15381
|
+
align: 'center',
|
|
15382
|
+
ellipsis: true,
|
|
15383
|
+
width: 150,
|
|
15384
|
+
render: function render(val) {
|
|
15385
|
+
return /*#__PURE__*/React__default['default'].createElement("img", {
|
|
15386
|
+
style: {
|
|
15387
|
+
width: '30px',
|
|
15388
|
+
height: '30px',
|
|
15389
|
+
objectFit: 'contain'
|
|
15390
|
+
},
|
|
15391
|
+
src: val
|
|
15392
|
+
});
|
|
15393
|
+
}
|
|
15394
|
+
}, {
|
|
15395
|
+
dataIndex: 'sellCount',
|
|
15396
|
+
title: "\u6570\u91CF",
|
|
15397
|
+
width: 100,
|
|
15398
|
+
render: function render(val) {
|
|
15399
|
+
return /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
15400
|
+
}
|
|
15401
|
+
}, {
|
|
15402
|
+
dataIndex: 'actualSendCount',
|
|
15403
|
+
title: "\u5B9E\u53D1\u6570\u91CF",
|
|
15404
|
+
width: 150,
|
|
15405
|
+
render: renderTextEllipsis
|
|
15406
|
+
}, {
|
|
15407
|
+
dataIndex: 'sellPrice',
|
|
15408
|
+
title: "\u5355\u4EF7",
|
|
15409
|
+
width: 150,
|
|
15410
|
+
render: function render(val) {
|
|
15411
|
+
return val || val === 0 ? Number(val).toFixed(2) : '';
|
|
15412
|
+
}
|
|
15413
|
+
}, {
|
|
15414
|
+
dataIndex: 'sellTotal',
|
|
15415
|
+
title: "\u91D1\u989D",
|
|
15416
|
+
width: 150
|
|
15417
|
+
}, {
|
|
15418
|
+
dataIndex: 'discountTotal',
|
|
15419
|
+
title: "\u62B5\u6263\u91D1\u989D",
|
|
15420
|
+
width: 150
|
|
15421
|
+
}, {
|
|
15422
|
+
dataIndex: 'shareFavourableFee',
|
|
15423
|
+
title: "\u5206\u644A\u91D1\u989D",
|
|
15424
|
+
width: 150
|
|
15425
|
+
}, {
|
|
15426
|
+
dataIndex: 'shareFavourableAfterFee',
|
|
15427
|
+
title: "\u5206\u644A\u540E\u91D1\u989D",
|
|
15428
|
+
width: 150
|
|
15429
|
+
}, {
|
|
15430
|
+
dataIndex: 'customerPrice',
|
|
15431
|
+
title: "\u7EC8\u7AEF\u9500\u552E\u5355\u4EF7",
|
|
15432
|
+
width: 150
|
|
15433
|
+
}, {
|
|
15434
|
+
dataIndex: 'customerTotal',
|
|
15435
|
+
title: "\u7EC8\u7AEF\u9500\u552E\u91D1\u989D",
|
|
15436
|
+
width: 150
|
|
15437
|
+
}, {
|
|
15438
|
+
dataIndex: 'divideSellTotal',
|
|
15439
|
+
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
15440
|
+
width: 150
|
|
15441
|
+
}, {
|
|
15442
|
+
dataIndex: 'isGift',
|
|
15443
|
+
title: "\u662F\u5426\u8D60\u54C1",
|
|
15444
|
+
width: 150,
|
|
15445
|
+
render: function render(val) {
|
|
15446
|
+
return /*#__PURE__*/React__default['default'].createElement("span", null, val === '1' ? '是' : '否');
|
|
15447
|
+
}
|
|
15448
|
+
}, {
|
|
15449
|
+
dataIndex: 'isFit',
|
|
15450
|
+
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
15451
|
+
width: 150,
|
|
15452
|
+
render: function render(val) {
|
|
15453
|
+
return /*#__PURE__*/React__default['default'].createElement("span", null, val === '1' ? '是' : '否');
|
|
15454
|
+
}
|
|
15455
|
+
}, {
|
|
15456
|
+
dataIndex: 'isPresell',
|
|
15457
|
+
title: "\u662F\u5426\u9884\u552E\u8D27\u54C1",
|
|
15458
|
+
width: 150,
|
|
15459
|
+
render: function render(val) {
|
|
15460
|
+
return /*#__PURE__*/React__default['default'].createElement("span", null, val === '1' ? '是' : '否');
|
|
15461
|
+
}
|
|
15462
|
+
}, {
|
|
15463
|
+
dataIndex: 'brandName',
|
|
15464
|
+
title: "\u54C1\u724C",
|
|
15465
|
+
align: 'center',
|
|
15466
|
+
ellipsis: true,
|
|
15467
|
+
width: 200,
|
|
15468
|
+
render: renderTextEllipsis
|
|
15469
|
+
}, {
|
|
15470
|
+
dataIndex: 'cateName',
|
|
15471
|
+
title: "\u8D27\u54C1\u7C7B\u522B",
|
|
15472
|
+
align: 'center',
|
|
15473
|
+
ellipsis: true,
|
|
15474
|
+
width: 150,
|
|
15475
|
+
render: renderTextEllipsis
|
|
15476
|
+
}, {
|
|
15477
|
+
dataIndex: 'goodsTags',
|
|
15478
|
+
title: "\u8D27\u54C1\u6807\u7B7E",
|
|
15479
|
+
align: 'center',
|
|
15480
|
+
ellipsis: true,
|
|
15481
|
+
width: 250,
|
|
15482
|
+
render: renderTextEllipsis
|
|
15483
|
+
}, {
|
|
15484
|
+
dataIndex: 'goodsMemo',
|
|
15485
|
+
title: "\u8D27\u54C1\u5907\u6CE8",
|
|
15486
|
+
align: 'center',
|
|
15487
|
+
ellipsis: true,
|
|
15488
|
+
width: 250,
|
|
15489
|
+
render: renderTextEllipsis
|
|
15490
|
+
}, {
|
|
15491
|
+
dataIndex: 'tradeGoodsNo',
|
|
15492
|
+
title: "\u4EA4\u6613\u8D27\u54C1\u7F16\u53F7",
|
|
15493
|
+
align: 'center',
|
|
15494
|
+
ellipsis: true,
|
|
15495
|
+
width: 250,
|
|
15496
|
+
render: renderTextEllipsis
|
|
15497
|
+
}, {
|
|
15498
|
+
dataIndex: 'tradeGoodsName',
|
|
15499
|
+
title: "\u4EA4\u6613\u8D27\u54C1\u540D\u79F0",
|
|
15500
|
+
ellipsis: true,
|
|
15501
|
+
width: 250,
|
|
15502
|
+
render: renderTextEllipsis
|
|
15503
|
+
}, {
|
|
15504
|
+
dataIndex: 'tradeGoodsSpec',
|
|
15505
|
+
title: "\u4EA4\u6613\u89C4\u683C\u540D\u79F0",
|
|
15506
|
+
ellipsis: true,
|
|
15507
|
+
width: 250,
|
|
15508
|
+
render: renderTextEllipsis
|
|
15509
|
+
}, {
|
|
15510
|
+
dataIndex: 'sourceSubtradeNo',
|
|
15511
|
+
title: "\u7F51\u5E97\u5B50\u8BA2\u5355\u53F7",
|
|
15512
|
+
ellipsis: true,
|
|
15513
|
+
width: 250,
|
|
15514
|
+
render: renderTextEllipsis
|
|
15515
|
+
}, {
|
|
15516
|
+
dataIndex: 'platGoodsId',
|
|
15517
|
+
title: "\u5E73\u53F0\u5546\u54C1ID",
|
|
15518
|
+
ellipsis: true,
|
|
15519
|
+
width: 250,
|
|
15520
|
+
render: renderTextEllipsis
|
|
15521
|
+
}, {
|
|
15522
|
+
dataIndex: 'subTradeId',
|
|
15523
|
+
title: "\u5546\u54C1\u660E\u7EC6ID",
|
|
15524
|
+
ellipsis: true,
|
|
15525
|
+
width: 250,
|
|
15526
|
+
render: renderTextEllipsis
|
|
15527
|
+
}, {
|
|
15528
|
+
dataIndex: 'batchNo',
|
|
15529
|
+
title: "\u6279\u6B21\u53F7",
|
|
15530
|
+
ellipsis: true,
|
|
15531
|
+
width: 250,
|
|
15532
|
+
render: renderTextEllipsis
|
|
15533
|
+
}, {
|
|
15534
|
+
dataIndex: 'sendCount',
|
|
15535
|
+
title: "\u6279\u6B21\u6570\u91CF",
|
|
15536
|
+
ellipsis: true,
|
|
15537
|
+
width: 250,
|
|
15538
|
+
render: renderTextEllipsis
|
|
15539
|
+
}, {
|
|
15540
|
+
dataIndex: 'productDate',
|
|
15541
|
+
title: "\u751F\u4EA7\u65E5\u671F",
|
|
15542
|
+
ellipsis: true,
|
|
15543
|
+
width: 250,
|
|
15544
|
+
render: renderTextEllipsis
|
|
15545
|
+
}, {
|
|
15546
|
+
dataIndex: 'expireDate',
|
|
15547
|
+
title: "\u5230\u671F\u65E5\u671F",
|
|
15548
|
+
ellipsis: true,
|
|
15549
|
+
width: 250,
|
|
15550
|
+
render: renderTextEllipsis
|
|
15551
|
+
}];
|
|
15552
|
+
|
|
15231
15553
|
var getColumnsMap = function getColumnsMap() {
|
|
15232
15554
|
return lodash.cloneDeep({
|
|
15233
15555
|
gy: gyColumns,
|
|
@@ -15235,7 +15557,8 @@ var getColumnsMap = function getColumnsMap() {
|
|
|
15235
15557
|
wdt: wdtColumns,
|
|
15236
15558
|
bse3: bse3Columns,
|
|
15237
15559
|
km: kmColumns,
|
|
15238
|
-
jy: jyColumns
|
|
15560
|
+
jy: jyColumns,
|
|
15561
|
+
jky: jkyColumns
|
|
15239
15562
|
});
|
|
15240
15563
|
};
|
|
15241
15564
|
var getColumnsBaseInfo = function getColumnsBaseInfo() {
|
|
@@ -15333,6 +15656,64 @@ var useGetColumns = (function (type) {
|
|
|
15333
15656
|
return [columns, showColumnsDataIndexList, loading];
|
|
15334
15657
|
});
|
|
15335
15658
|
|
|
15659
|
+
var compareSymbolList = [{
|
|
15660
|
+
label: '模糊',
|
|
15661
|
+
value: 'like'
|
|
15662
|
+
}, {
|
|
15663
|
+
label: '精准',
|
|
15664
|
+
value: 'eq'
|
|
15665
|
+
}];
|
|
15666
|
+
var OptionalInput = function OptionalInput(props) {
|
|
15667
|
+
var value = props.value,
|
|
15668
|
+
onChange = props.onChange,
|
|
15669
|
+
_props$placeholder = props.placeholder,
|
|
15670
|
+
placeholder = _props$placeholder === void 0 ? '' : _props$placeholder,
|
|
15671
|
+
onPressEnter = props.onPressEnter,
|
|
15672
|
+
onBlur = props.onBlur,
|
|
15673
|
+
formItemProps = props.formItemProps;
|
|
15674
|
+
var handleSelectChange = function handleSelectChange(compareSymbol) {
|
|
15675
|
+
if (typeof onChange === 'function') {
|
|
15676
|
+
onChange({
|
|
15677
|
+
type: compareSymbol || 'like',
|
|
15678
|
+
inputValue: value === null || value === void 0 ? void 0 : value.inputValue
|
|
15679
|
+
});
|
|
15680
|
+
}
|
|
15681
|
+
};
|
|
15682
|
+
var handleInputChange = function handleInputChange(e) {
|
|
15683
|
+
if (typeof onChange === 'function') {
|
|
15684
|
+
onChange({
|
|
15685
|
+
type: (value === null || value === void 0 ? void 0 : value.type) || 'like',
|
|
15686
|
+
inputValue: e.target.value
|
|
15687
|
+
});
|
|
15688
|
+
}
|
|
15689
|
+
};
|
|
15690
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15691
|
+
style: {
|
|
15692
|
+
display: 'flex',
|
|
15693
|
+
alignItems: 'center'
|
|
15694
|
+
}
|
|
15695
|
+
}, /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
15696
|
+
className: "optional-input-select",
|
|
15697
|
+
style: {
|
|
15698
|
+
width: '70px'
|
|
15699
|
+
},
|
|
15700
|
+
options: compareSymbolList,
|
|
15701
|
+
onChange: handleSelectChange,
|
|
15702
|
+
value: (value === null || value === void 0 ? void 0 : value.type) || 'like',
|
|
15703
|
+
onBlur: onBlur
|
|
15704
|
+
}), /*#__PURE__*/React__default['default'].createElement(antd.Input, _objectSpread2({
|
|
15705
|
+
style: {
|
|
15706
|
+
width: '150px'
|
|
15707
|
+
},
|
|
15708
|
+
allowClear: true,
|
|
15709
|
+
placeholder: placeholder,
|
|
15710
|
+
onChange: handleInputChange,
|
|
15711
|
+
onPressEnter: onPressEnter,
|
|
15712
|
+
onBlur: onBlur,
|
|
15713
|
+
value: value === null || value === void 0 ? void 0 : value.inputValue
|
|
15714
|
+
}, formItemProps)));
|
|
15715
|
+
};
|
|
15716
|
+
|
|
15336
15717
|
function SearchForm(_ref) {
|
|
15337
15718
|
var searchFormData = _ref.searchFormData,
|
|
15338
15719
|
form = _ref.form,
|
|
@@ -15384,7 +15765,16 @@ function SearchForm(_ref) {
|
|
|
15384
15765
|
style: {
|
|
15385
15766
|
marginBottom: '12px'
|
|
15386
15767
|
}
|
|
15387
|
-
}, type === '
|
|
15768
|
+
}, type === 'optionalInput' ? /*#__PURE__*/React__default['default'].createElement(OptionalInput, {
|
|
15769
|
+
onPressEnter: function onPressEnter() {
|
|
15770
|
+
return submitForm();
|
|
15771
|
+
},
|
|
15772
|
+
onBlur: function onBlur() {
|
|
15773
|
+
return submitForm();
|
|
15774
|
+
},
|
|
15775
|
+
placeholder: label,
|
|
15776
|
+
formItemProps: formItemProps
|
|
15777
|
+
}) : type === 'select' ? /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2({
|
|
15388
15778
|
placeholder: label,
|
|
15389
15779
|
showSearch: true,
|
|
15390
15780
|
allowClear: true,
|
|
@@ -15425,24 +15815,42 @@ function SearchForm(_ref) {
|
|
|
15425
15815
|
}, "\u91CD\u7F6E")));
|
|
15426
15816
|
}
|
|
15427
15817
|
|
|
15818
|
+
var transformFormData = function transformFormData(formData) {
|
|
15819
|
+
var conditionList = [];
|
|
15820
|
+
for (var key in formData) {
|
|
15821
|
+
if (formData[key]) {
|
|
15822
|
+
var _formData$key, _formData$key2, _formData$key3, _formData$key4;
|
|
15823
|
+
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];
|
|
15824
|
+
// 如果 value 是字符串且包含中英文逗号或空格,则拆分成数组
|
|
15825
|
+
if (typeof value === 'string' && (value.includes(',') || value.includes("\uFF0C") || value.includes(' '))) {
|
|
15826
|
+
var _value, _value$replace, _value$replace$split;
|
|
15827
|
+
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) {
|
|
15828
|
+
return v;
|
|
15829
|
+
});
|
|
15830
|
+
}
|
|
15831
|
+
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';
|
|
15832
|
+
conditionList.push({
|
|
15833
|
+
leftValue: key,
|
|
15834
|
+
compareSymbol: compareSymbol,
|
|
15835
|
+
rightValue: value
|
|
15836
|
+
});
|
|
15837
|
+
}
|
|
15838
|
+
}
|
|
15839
|
+
return conditionList;
|
|
15840
|
+
};
|
|
15841
|
+
|
|
15428
15842
|
var getTableData = function getTableData(_ref, formData) {
|
|
15429
|
-
var _formData$brandIds;
|
|
15430
15843
|
var current = _ref.current,
|
|
15431
15844
|
pageSize = _ref.pageSize;
|
|
15432
|
-
var
|
|
15433
|
-
brandIds: ((_formData$brandIds = formData.brandIds) === null || _formData$brandIds === void 0 ? void 0 : _formData$brandIds.length) ? formData.brandIds : null,
|
|
15434
|
-
skuCode: formData.skuCode || null,
|
|
15435
|
-
skuName: formData.skuName || null,
|
|
15436
|
-
goodName: formData.goodName || null,
|
|
15437
|
-
goodNo: formData.goodNo || null
|
|
15438
|
-
};
|
|
15845
|
+
var conditionList = transformFormData(formData);
|
|
15439
15846
|
return extendRequest('/qy/gdfw/product/product/page', {
|
|
15440
15847
|
method: 'post',
|
|
15441
|
-
data:
|
|
15848
|
+
data: {
|
|
15442
15849
|
pageSize: pageSize,
|
|
15443
15850
|
pageNo: current,
|
|
15444
|
-
platform: 'WDT_ERP'
|
|
15445
|
-
|
|
15851
|
+
platform: 'WDT_ERP',
|
|
15852
|
+
conditionList: conditionList
|
|
15853
|
+
}
|
|
15446
15854
|
}).then(function (res) {
|
|
15447
15855
|
var _res$data = res.data,
|
|
15448
15856
|
_res$data$productSkuL = _res$data.productSkuList,
|
|
@@ -15536,13 +15944,15 @@ var GoodList = function GoodList(props, ref) {
|
|
|
15536
15944
|
}, {
|
|
15537
15945
|
label: 'SKU编码',
|
|
15538
15946
|
name: 'skuCode',
|
|
15539
|
-
dataIndex: 'specNo'
|
|
15947
|
+
dataIndex: 'specNo',
|
|
15948
|
+
type: 'optionalInput'
|
|
15540
15949
|
}, {
|
|
15541
15950
|
label: '商品名称',
|
|
15542
15951
|
name: 'goodName'
|
|
15543
15952
|
}, {
|
|
15544
15953
|
label: '商品编码',
|
|
15545
|
-
name: 'goodNo'
|
|
15954
|
+
name: 'goodNo',
|
|
15955
|
+
type: 'optionalInput'
|
|
15546
15956
|
}, {
|
|
15547
15957
|
label: '品牌',
|
|
15548
15958
|
name: 'brandIds',
|
|
@@ -15732,13 +16142,15 @@ var WdtGoodsModal = /*#__PURE__*/React.forwardRef(GoodsModal$3);
|
|
|
15732
16142
|
var getTableData$1 = function getTableData(_ref, formData) {
|
|
15733
16143
|
var current = _ref.current,
|
|
15734
16144
|
pageSize = _ref.pageSize;
|
|
16145
|
+
var conditionList = transformFormData(formData);
|
|
15735
16146
|
return extendRequest('/qy/gdfw/product/product/page', {
|
|
15736
16147
|
method: 'post',
|
|
15737
|
-
data:
|
|
16148
|
+
data: {
|
|
15738
16149
|
pageSize: pageSize,
|
|
15739
16150
|
pageNo: current,
|
|
15740
|
-
platform: 'JST_ERP'
|
|
15741
|
-
|
|
16151
|
+
platform: 'JST_ERP',
|
|
16152
|
+
conditionList: conditionList
|
|
16153
|
+
}
|
|
15742
16154
|
}).then(function (res) {
|
|
15743
16155
|
var _res$data = res.data,
|
|
15744
16156
|
_res$data$productSkuL = _res$data.productSkuList,
|
|
@@ -15759,10 +16171,12 @@ var searchFormData = [{
|
|
|
15759
16171
|
name: 'goodName'
|
|
15760
16172
|
}, {
|
|
15761
16173
|
label: '商品编码',
|
|
15762
|
-
name: 'goodNo'
|
|
16174
|
+
name: 'goodNo',
|
|
16175
|
+
type: 'optionalInput'
|
|
15763
16176
|
}, {
|
|
15764
16177
|
label: '款式编码',
|
|
15765
|
-
name: 'styleCode'
|
|
16178
|
+
name: 'styleCode',
|
|
16179
|
+
type: 'optionalInput'
|
|
15766
16180
|
}, {
|
|
15767
16181
|
label: '商品类型',
|
|
15768
16182
|
name: 'skuType',
|
|
@@ -15983,19 +16397,15 @@ var JstGoodsModal = /*#__PURE__*/React.forwardRef(GyGoodsModal);
|
|
|
15983
16397
|
var getTableData$2 = function getTableData(_ref, formData) {
|
|
15984
16398
|
var current = _ref.current,
|
|
15985
16399
|
pageSize = _ref.pageSize;
|
|
15986
|
-
var
|
|
15987
|
-
goodNo: formData.goodNo || null,
|
|
15988
|
-
goodName: formData.goodName || null,
|
|
15989
|
-
skuCode: formData.skuCode || null,
|
|
15990
|
-
skuId: formData.skuId || null
|
|
15991
|
-
};
|
|
16400
|
+
var conditionList = transformFormData(formData);
|
|
15992
16401
|
return extendRequest('/qy/gdfw/product/product/page', {
|
|
15993
16402
|
method: 'post',
|
|
15994
|
-
data:
|
|
16403
|
+
data: {
|
|
15995
16404
|
pageSize: pageSize,
|
|
15996
16405
|
pageNo: current,
|
|
15997
|
-
platform: 'BS_E3_ERP'
|
|
15998
|
-
|
|
16406
|
+
platform: 'BS_E3_ERP',
|
|
16407
|
+
conditionList: conditionList
|
|
16408
|
+
}
|
|
15999
16409
|
}).then(function (res) {
|
|
16000
16410
|
var _res$data = res.data,
|
|
16001
16411
|
_res$data$productSkuL = _res$data.productSkuList,
|
|
@@ -16015,18 +16425,21 @@ var getTableData$2 = function getTableData(_ref, formData) {
|
|
|
16015
16425
|
};
|
|
16016
16426
|
var searchFormData$1 = [{
|
|
16017
16427
|
label: '商品货号',
|
|
16018
|
-
name: 'goodNo'
|
|
16428
|
+
name: 'goodNo',
|
|
16429
|
+
type: 'optionalInput'
|
|
16019
16430
|
}, {
|
|
16020
16431
|
label: '商品名称',
|
|
16021
16432
|
name: 'goodName'
|
|
16022
16433
|
}, {
|
|
16023
16434
|
label: 'SKU',
|
|
16024
16435
|
name: 'skuCode',
|
|
16025
|
-
dataIndex: 'specNo'
|
|
16436
|
+
dataIndex: 'specNo',
|
|
16437
|
+
type: 'optionalInput'
|
|
16026
16438
|
}, {
|
|
16027
16439
|
label: 'SKU ID',
|
|
16028
16440
|
name: 'skuId',
|
|
16029
|
-
dataIndex: 'specId'
|
|
16441
|
+
dataIndex: 'specId',
|
|
16442
|
+
type: 'optionalInput'
|
|
16030
16443
|
}];
|
|
16031
16444
|
var GoodList$2 = function GoodList(props, ref) {
|
|
16032
16445
|
var _useState = React.useState([]),
|
|
@@ -16228,13 +16641,15 @@ var rowCheckKey = 'id';
|
|
|
16228
16641
|
var getTableData$3 = function getTableData(_ref, formData) {
|
|
16229
16642
|
var current = _ref.current,
|
|
16230
16643
|
pageSize = _ref.pageSize;
|
|
16644
|
+
var conditionList = transformFormData(formData);
|
|
16231
16645
|
return extendRequest('/qy/gdfw/product/product/page', {
|
|
16232
16646
|
method: 'post',
|
|
16233
|
-
data:
|
|
16647
|
+
data: {
|
|
16234
16648
|
pageSize: pageSize,
|
|
16235
16649
|
pageNo: current,
|
|
16236
|
-
platform: 'KM_ERP'
|
|
16237
|
-
|
|
16650
|
+
platform: 'KM_ERP',
|
|
16651
|
+
conditionList: conditionList
|
|
16652
|
+
}
|
|
16238
16653
|
}).then(function (res) {
|
|
16239
16654
|
var _res$data = res.data,
|
|
16240
16655
|
_res$data$productSkuL = _res$data.productSkuList,
|
|
@@ -16255,7 +16670,8 @@ var searchFormData$2 = [{
|
|
|
16255
16670
|
name: 'goodName'
|
|
16256
16671
|
}, {
|
|
16257
16672
|
label: '商品编码',
|
|
16258
|
-
name: 'goodNo'
|
|
16673
|
+
name: 'goodNo',
|
|
16674
|
+
type: 'optionalInput'
|
|
16259
16675
|
}, {
|
|
16260
16676
|
label: 'SKU名称',
|
|
16261
16677
|
name: 'skuName',
|
|
@@ -16263,7 +16679,8 @@ var searchFormData$2 = [{
|
|
|
16263
16679
|
}, {
|
|
16264
16680
|
label: 'SKU编码',
|
|
16265
16681
|
name: 'skuCode',
|
|
16266
|
-
dataIndex: 'specNo'
|
|
16682
|
+
dataIndex: 'specNo',
|
|
16683
|
+
type: 'optionalInput'
|
|
16267
16684
|
}];
|
|
16268
16685
|
var GoodList$3 = function GoodList(props, ref) {
|
|
16269
16686
|
var _useState = React.useState([]),
|
|
@@ -16471,20 +16888,15 @@ var KmGoodsModal = /*#__PURE__*/React.forwardRef(ErpGoodsModal);
|
|
|
16471
16888
|
var getTableData$4 = function getTableData(_ref, formData) {
|
|
16472
16889
|
var current = _ref.current,
|
|
16473
16890
|
pageSize = _ref.pageSize;
|
|
16474
|
-
var
|
|
16475
|
-
goodShortName: formData.goodShortName || null,
|
|
16476
|
-
skuName: formData.skuName || null,
|
|
16477
|
-
skuCode: formData.skuCode || null,
|
|
16478
|
-
goodName: formData.goodName || null,
|
|
16479
|
-
goodNo: formData.goodNo || null
|
|
16480
|
-
};
|
|
16891
|
+
var conditionList = transformFormData(formData);
|
|
16481
16892
|
return extendRequest('/qy/gdfw/product/product/page', {
|
|
16482
16893
|
method: 'post',
|
|
16483
|
-
data:
|
|
16894
|
+
data: {
|
|
16484
16895
|
pageSize: pageSize,
|
|
16485
16896
|
pageNo: current,
|
|
16486
|
-
platform: 'GY_ERP'
|
|
16487
|
-
|
|
16897
|
+
platform: 'GY_ERP',
|
|
16898
|
+
conditionList: conditionList
|
|
16899
|
+
}
|
|
16488
16900
|
}).then(function (res) {
|
|
16489
16901
|
var _res$data = res.data,
|
|
16490
16902
|
_res$data$productSkuL = _res$data.productSkuList,
|
|
@@ -16510,13 +16922,15 @@ var searchFormData$3 = [{
|
|
|
16510
16922
|
}, {
|
|
16511
16923
|
label: '商品sku编码',
|
|
16512
16924
|
name: 'skuCode',
|
|
16513
|
-
dataIndex: 'specNo'
|
|
16925
|
+
dataIndex: 'specNo',
|
|
16926
|
+
type: 'optionalInput'
|
|
16514
16927
|
}, {
|
|
16515
16928
|
label: '商品名称',
|
|
16516
16929
|
name: 'goodName'
|
|
16517
16930
|
}, {
|
|
16518
16931
|
label: '商品编码',
|
|
16519
|
-
name: 'goodNo'
|
|
16932
|
+
name: 'goodNo',
|
|
16933
|
+
type: 'optionalInput'
|
|
16520
16934
|
}];
|
|
16521
16935
|
var GoodList$4 = function GoodList(props, ref) {
|
|
16522
16936
|
var _useState = React.useState([]),
|
|
@@ -18136,13 +18550,15 @@ var GyGoodsModal$2 = /*#__PURE__*/React.forwardRef(GyGoodsModal$1);
|
|
|
18136
18550
|
var getTableData$5 = function getTableData(_ref, formData) {
|
|
18137
18551
|
var current = _ref.current,
|
|
18138
18552
|
pageSize = _ref.pageSize;
|
|
18553
|
+
var conditionList = transformFormData(formData);
|
|
18139
18554
|
return extendRequest('/qy/gdfw/product/product/page', {
|
|
18140
18555
|
method: 'post',
|
|
18141
|
-
data:
|
|
18556
|
+
data: {
|
|
18142
18557
|
pageSize: pageSize,
|
|
18143
18558
|
pageNo: current,
|
|
18144
|
-
platform: 'JY_ERP'
|
|
18145
|
-
|
|
18559
|
+
platform: 'JY_ERP',
|
|
18560
|
+
conditionList: conditionList
|
|
18561
|
+
}
|
|
18146
18562
|
}).then(function (res) {
|
|
18147
18563
|
var _res$data = res.data,
|
|
18148
18564
|
_res$data$productSkuL = _res$data.productSkuList,
|
|
@@ -18165,13 +18581,15 @@ var searchFormData$4 = [{
|
|
|
18165
18581
|
}, {
|
|
18166
18582
|
label: '规格编码',
|
|
18167
18583
|
name: 'skuCode',
|
|
18168
|
-
dataIndex: 'specNo'
|
|
18584
|
+
dataIndex: 'specNo',
|
|
18585
|
+
type: 'optionalInput'
|
|
18169
18586
|
}, {
|
|
18170
18587
|
label: '商品名称',
|
|
18171
18588
|
name: 'goodName'
|
|
18172
18589
|
}, {
|
|
18173
18590
|
label: '商品编码',
|
|
18174
|
-
name: 'goodNo'
|
|
18591
|
+
name: 'goodNo',
|
|
18592
|
+
type: 'optionalInput'
|
|
18175
18593
|
}];
|
|
18176
18594
|
var GoodList$5 = function GoodList(props, ref) {
|
|
18177
18595
|
var _useState = React.useState([]),
|
|
@@ -18376,136 +18794,379 @@ var JyGoodsModal = function JyGoodsModal(props, ref) {
|
|
|
18376
18794
|
};
|
|
18377
18795
|
var JyGoodsModal$1 = /*#__PURE__*/React.forwardRef(JyGoodsModal);
|
|
18378
18796
|
|
|
18379
|
-
var
|
|
18380
|
-
var
|
|
18381
|
-
|
|
18382
|
-
|
|
18383
|
-
|
|
18384
|
-
|
|
18385
|
-
|
|
18386
|
-
|
|
18387
|
-
|
|
18388
|
-
|
|
18389
|
-
|
|
18390
|
-
|
|
18391
|
-
|
|
18392
|
-
|
|
18393
|
-
|
|
18394
|
-
|
|
18395
|
-
|
|
18396
|
-
|
|
18397
|
-
|
|
18398
|
-
|
|
18399
|
-
|
|
18400
|
-
|
|
18401
|
-
|
|
18402
|
-
|
|
18403
|
-
|
|
18404
|
-
|
|
18405
|
-
|
|
18406
|
-
|
|
18407
|
-
|
|
18408
|
-
|
|
18409
|
-
|
|
18410
|
-
|
|
18411
|
-
|
|
18412
|
-
|
|
18413
|
-
|
|
18797
|
+
var getTableData$6 = function getTableData(_ref, formData) {
|
|
18798
|
+
var current = _ref.current,
|
|
18799
|
+
pageSize = _ref.pageSize;
|
|
18800
|
+
return extendRequest('/qy/gdfw/product/product/page', {
|
|
18801
|
+
method: 'post',
|
|
18802
|
+
data: _objectSpread2({
|
|
18803
|
+
pageSize: pageSize,
|
|
18804
|
+
pageNo: current,
|
|
18805
|
+
platform: 'JY_ERP'
|
|
18806
|
+
}, formData)
|
|
18807
|
+
}).then(function (res) {
|
|
18808
|
+
var _res$data = res.data,
|
|
18809
|
+
_res$data$productSkuL = _res$data.productSkuList,
|
|
18810
|
+
productSkuList = _res$data$productSkuL === void 0 ? [] : _res$data$productSkuL,
|
|
18811
|
+
_res$data$total = _res$data.total,
|
|
18812
|
+
total = _res$data$total === void 0 ? 0 : _res$data$total;
|
|
18813
|
+
var newProducts = productSkuList.map(function (item, index) {
|
|
18814
|
+
return _objectSpread2({}, item);
|
|
18815
|
+
});
|
|
18816
|
+
return {
|
|
18817
|
+
total: total,
|
|
18818
|
+
list: newProducts
|
|
18819
|
+
};
|
|
18820
|
+
});
|
|
18821
|
+
};
|
|
18822
|
+
var searchFormData$5 = [{
|
|
18823
|
+
label: '规格名称',
|
|
18824
|
+
name: 'skuName',
|
|
18825
|
+
dataIndex: 'specName'
|
|
18826
|
+
}, {
|
|
18827
|
+
label: '规格编码',
|
|
18828
|
+
name: 'skuCode',
|
|
18829
|
+
dataIndex: 'specNo'
|
|
18830
|
+
}, {
|
|
18831
|
+
label: '商品名称',
|
|
18832
|
+
name: 'goodName'
|
|
18833
|
+
}, {
|
|
18834
|
+
label: '商品编码',
|
|
18835
|
+
name: 'goodNo'
|
|
18836
|
+
}];
|
|
18837
|
+
var GoodList$6 = function GoodList(props, ref) {
|
|
18838
|
+
var _useState = React.useState([]),
|
|
18839
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
18840
|
+
selectList = _useState2[0],
|
|
18841
|
+
setSelect = _useState2[1];
|
|
18842
|
+
var _useState3 = React.useState([]),
|
|
18843
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
18844
|
+
selectIds = _useState4[0],
|
|
18845
|
+
setSelectIds = _useState4[1];
|
|
18846
|
+
var _useGetColumns = useGetColumns('jky'),
|
|
18847
|
+
_useGetColumns2 = _slicedToArray(_useGetColumns, 3),
|
|
18848
|
+
columns = _useGetColumns2[0],
|
|
18849
|
+
showColumnsDataIndexList = _useGetColumns2[1],
|
|
18850
|
+
loading = _useGetColumns2[2];
|
|
18851
|
+
React.useImperativeHandle(ref, function () {
|
|
18852
|
+
return {
|
|
18853
|
+
getSelectGoodList: function getSelectGoodList() {
|
|
18854
|
+
return selectList;
|
|
18414
18855
|
}
|
|
18415
|
-
}
|
|
18416
|
-
|
|
18417
|
-
|
|
18418
|
-
|
|
18419
|
-
|
|
18420
|
-
|
|
18421
|
-
|
|
18422
|
-
|
|
18423
|
-
|
|
18424
|
-
|
|
18425
|
-
|
|
18426
|
-
|
|
18427
|
-
|
|
18428
|
-
|
|
18429
|
-
|
|
18430
|
-
|
|
18431
|
-
|
|
18432
|
-
|
|
18433
|
-
|
|
18434
|
-
|
|
18435
|
-
|
|
18436
|
-
|
|
18437
|
-
|
|
18438
|
-
|
|
18439
|
-
|
|
18440
|
-
|
|
18441
|
-
|
|
18442
|
-
|
|
18443
|
-
width: 150,
|
|
18444
|
-
render: renderTextEllipsis
|
|
18445
|
-
}, {
|
|
18446
|
-
dataIndex: 'brandName',
|
|
18447
|
-
title: "\u54C1\u724C\u540D\u79F0",
|
|
18448
|
-
width: 150,
|
|
18449
|
-
render: renderTextEllipsis
|
|
18450
|
-
}, {
|
|
18451
|
-
dataIndex: 'goodsNumber',
|
|
18452
|
-
title: "\u5546\u54C1\u6570\u91CF",
|
|
18453
|
-
width: 150
|
|
18454
|
-
}, {
|
|
18455
|
-
dataIndex: 'goodsPrice',
|
|
18456
|
-
title: "\u5546\u54C1\u5355\u4EF7",
|
|
18457
|
-
width: 150
|
|
18458
|
-
}, {
|
|
18459
|
-
dataIndex: 'shopPrice',
|
|
18460
|
-
title: "\u5546\u54C1\u7F51\u5E97\u552E\u4EF7",
|
|
18461
|
-
width: 150
|
|
18462
|
-
}, {
|
|
18463
|
-
dataIndex: 'isGift',
|
|
18464
|
-
title: "\u662F\u5426\u8D60\u54C1",
|
|
18465
|
-
width: 150,
|
|
18466
|
-
render: function render(val) {
|
|
18467
|
-
return /*#__PURE__*/React__default['default'].createElement("span", null, +val ? '是' : '否');
|
|
18856
|
+
};
|
|
18857
|
+
});
|
|
18858
|
+
var _Form$useForm = antd.Form.useForm(),
|
|
18859
|
+
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
18860
|
+
form = _Form$useForm2[0];
|
|
18861
|
+
var _useAntdTable = ahooks.useAntdTable(getTableData$6, {
|
|
18862
|
+
defaultPageSize: 10,
|
|
18863
|
+
form: form
|
|
18864
|
+
}),
|
|
18865
|
+
tableProps = _useAntdTable.tableProps,
|
|
18866
|
+
search = _useAntdTable.search,
|
|
18867
|
+
params = _useAntdTable.params;
|
|
18868
|
+
var submit = search.submit,
|
|
18869
|
+
reset = search.reset;
|
|
18870
|
+
var rowSelection = {
|
|
18871
|
+
selectedRowKeys: selectIds,
|
|
18872
|
+
fixed: true,
|
|
18873
|
+
onSelect: function onSelect(record, selected) {
|
|
18874
|
+
if (selected) {
|
|
18875
|
+
setSelectIds([].concat(_toConsumableArray(selectIds), [record.id]));
|
|
18876
|
+
setSelect([].concat(_toConsumableArray(selectList), [record]));
|
|
18877
|
+
} else {
|
|
18878
|
+
setSelectIds(selectIds.filter(function (t) {
|
|
18879
|
+
return t !== record.id;
|
|
18880
|
+
}));
|
|
18881
|
+
setSelect(selectList.filter(function (t) {
|
|
18882
|
+
return t.id !== record.id;
|
|
18883
|
+
}));
|
|
18468
18884
|
}
|
|
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
|
-
|
|
18494
|
-
|
|
18495
|
-
|
|
18496
|
-
|
|
18497
|
-
|
|
18498
|
-
|
|
18499
|
-
|
|
18500
|
-
|
|
18501
|
-
|
|
18502
|
-
|
|
18503
|
-
|
|
18504
|
-
|
|
18505
|
-
|
|
18506
|
-
|
|
18507
|
-
|
|
18508
|
-
|
|
18885
|
+
},
|
|
18886
|
+
onSelectAll: function onSelectAll(selected, selectedRows, changeRows) {
|
|
18887
|
+
if (selected) {
|
|
18888
|
+
setSelectIds([].concat(_toConsumableArray(selectIds), _toConsumableArray(changeRows.map(function (t) {
|
|
18889
|
+
return t.id;
|
|
18890
|
+
}))));
|
|
18891
|
+
setSelect([].concat(_toConsumableArray(selectList), _toConsumableArray(changeRows)));
|
|
18892
|
+
} else {
|
|
18893
|
+
setSelectIds(lodash.difference(selectIds, changeRows.map(function (t) {
|
|
18894
|
+
return t.id;
|
|
18895
|
+
})));
|
|
18896
|
+
var list = lodash.differenceWith(selectList, changeRows, function (arrVal, othVal) {
|
|
18897
|
+
return arrVal.id !== othVal.id;
|
|
18898
|
+
});
|
|
18899
|
+
setSelect(list);
|
|
18900
|
+
}
|
|
18901
|
+
},
|
|
18902
|
+
getCheckboxProps: function getCheckboxProps(record) {
|
|
18903
|
+
var options = {
|
|
18904
|
+
disabled: (props.selectedRows || []).map(function (row) {
|
|
18905
|
+
return row.id || row.specId;
|
|
18906
|
+
}).includes(record.id || record.specId),
|
|
18907
|
+
name: record.id
|
|
18908
|
+
};
|
|
18909
|
+
return options;
|
|
18910
|
+
}
|
|
18911
|
+
};
|
|
18912
|
+
var showTable = function showTable() {
|
|
18913
|
+
var handleDelete = function handleDelete(record) {
|
|
18914
|
+
setSelectIds(selectIds.filter(function (t) {
|
|
18915
|
+
return t !== record.id;
|
|
18916
|
+
}));
|
|
18917
|
+
setSelect(selectList.filter(function (t) {
|
|
18918
|
+
return t.id !== record.id;
|
|
18919
|
+
}));
|
|
18920
|
+
};
|
|
18921
|
+
var showColumns = [{
|
|
18922
|
+
dataIndex: '',
|
|
18923
|
+
title: "\u64CD\u4F5C",
|
|
18924
|
+
ellipsis: true,
|
|
18925
|
+
width: 100,
|
|
18926
|
+
render: function render(val, record) {
|
|
18927
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
18928
|
+
type: "link",
|
|
18929
|
+
onClick: function onClick() {
|
|
18930
|
+
return handleDelete(record);
|
|
18931
|
+
}
|
|
18932
|
+
}, "\u5220\u9664");
|
|
18933
|
+
}
|
|
18934
|
+
}].concat(lodash.takeRight(columns, columns.length - 1));
|
|
18935
|
+
return selectList.length ? /*#__PURE__*/React__default['default'].createElement("div", {
|
|
18936
|
+
style: {
|
|
18937
|
+
width: '100%',
|
|
18938
|
+
maxWidth: '387px'
|
|
18939
|
+
}
|
|
18940
|
+
}, /*#__PURE__*/React__default['default'].createElement(antd.Table, {
|
|
18941
|
+
columns: showColumns,
|
|
18942
|
+
rowKey: 'id',
|
|
18943
|
+
dataSource: selectList,
|
|
18944
|
+
scroll: {
|
|
18945
|
+
x: '100%',
|
|
18946
|
+
y: 250
|
|
18947
|
+
},
|
|
18948
|
+
pagination: {
|
|
18949
|
+
size: 'small',
|
|
18950
|
+
total: selectIds.length,
|
|
18951
|
+
pageSize: 10,
|
|
18952
|
+
showSizeChanger: false
|
|
18953
|
+
}
|
|
18954
|
+
})) : null;
|
|
18955
|
+
};
|
|
18956
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Skeleton, {
|
|
18957
|
+
active: true,
|
|
18958
|
+
loading: loading
|
|
18959
|
+
}, /*#__PURE__*/React__default['default'].createElement(SearchForm, {
|
|
18960
|
+
searchFormData: searchFormData$5,
|
|
18961
|
+
form: form,
|
|
18962
|
+
showColumnsDataIndexList: showColumnsDataIndexList,
|
|
18963
|
+
submit: submit,
|
|
18964
|
+
reset: reset
|
|
18965
|
+
}), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
18966
|
+
style: {
|
|
18967
|
+
marginTop: '4px'
|
|
18968
|
+
}
|
|
18969
|
+
}, /*#__PURE__*/React__default['default'].createElement(antd.Table, _objectSpread2({
|
|
18970
|
+
className: "GoodModalColumns",
|
|
18971
|
+
rowSelection: rowSelection,
|
|
18972
|
+
rowKey: "id",
|
|
18973
|
+
columns: columns,
|
|
18974
|
+
scroll: {
|
|
18975
|
+
x: '100%',
|
|
18976
|
+
y: 250
|
|
18977
|
+
},
|
|
18978
|
+
size: "small"
|
|
18979
|
+
}, tableProps))), /*#__PURE__*/React__default['default'].createElement(antd.Popover, {
|
|
18980
|
+
getPopupContainer: function getPopupContainer(triggerNode) {
|
|
18981
|
+
return triggerNode.parentElement;
|
|
18982
|
+
},
|
|
18983
|
+
content: showTable(),
|
|
18984
|
+
title: "\u5DF2\u9009\u62E9".concat(selectList.length, "\u4E2A\u5546\u54C1")
|
|
18985
|
+
}, /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
18986
|
+
danger: true,
|
|
18987
|
+
type: "text"
|
|
18988
|
+
}, "\u5DF2\u9009".concat(selectList.length > 99 ? '99+' : selectList.length, "\u4E2A\u5546\u54C1"), /*#__PURE__*/React__default['default'].createElement(icons.CaretUpOutlined, null))));
|
|
18989
|
+
};
|
|
18990
|
+
var JkyGoodsList = /*#__PURE__*/React.forwardRef(GoodList$6);
|
|
18991
|
+
|
|
18992
|
+
var JkyGoodsModal = function JkyGoodsModal(props, ref) {
|
|
18993
|
+
React.useImperativeHandle(ref, function () {
|
|
18994
|
+
return {
|
|
18995
|
+
open: function open(shopCode) {
|
|
18996
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
18997
|
+
setVisible(true);
|
|
18998
|
+
setSelectedRows(options.value || []);
|
|
18999
|
+
}
|
|
19000
|
+
};
|
|
19001
|
+
});
|
|
19002
|
+
var onSubmit = props.onSubmit,
|
|
19003
|
+
width = props.width;
|
|
19004
|
+
var _useState = React.useState(false),
|
|
19005
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
19006
|
+
visible = _useState2[0],
|
|
19007
|
+
setVisible = _useState2[1];
|
|
19008
|
+
var _useState3 = React.useState([]),
|
|
19009
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
19010
|
+
selectedRows = _useState4[0],
|
|
19011
|
+
setSelectedRows = _useState4[1];
|
|
19012
|
+
var jkyGoodsListRef = React.useRef(null);
|
|
19013
|
+
var _onCancel = function onCancel() {
|
|
19014
|
+
setVisible(false);
|
|
19015
|
+
};
|
|
19016
|
+
var onOk = function onOk() {
|
|
19017
|
+
var _jkyGoodsListRef$curr;
|
|
19018
|
+
var selectedList = ((_jkyGoodsListRef$curr = jkyGoodsListRef.current) === null || _jkyGoodsListRef$curr === void 0 ? void 0 : _jkyGoodsListRef$curr.getSelectGoodList()) || [];
|
|
19019
|
+
onSubmit(selectedList);
|
|
19020
|
+
_onCancel();
|
|
19021
|
+
};
|
|
19022
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, visible && /*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
19023
|
+
title: '选择商品',
|
|
19024
|
+
okText: '确认',
|
|
19025
|
+
cancelText: '取消',
|
|
19026
|
+
visible: visible,
|
|
19027
|
+
width: width || 850,
|
|
19028
|
+
onCancel: function onCancel() {
|
|
19029
|
+
_onCancel();
|
|
19030
|
+
},
|
|
19031
|
+
onOk: onOk,
|
|
19032
|
+
wrapClassName: "goodModal"
|
|
19033
|
+
}, /*#__PURE__*/React__default['default'].createElement(JkyGoodsList, {
|
|
19034
|
+
ref: jkyGoodsListRef,
|
|
19035
|
+
selectedRows: selectedRows
|
|
19036
|
+
})));
|
|
19037
|
+
};
|
|
19038
|
+
var JkyGoodsModal$1 = /*#__PURE__*/React.forwardRef(JkyGoodsModal);
|
|
19039
|
+
|
|
19040
|
+
var getColumns = function getColumns(_ref) {
|
|
19041
|
+
var _ref$text = _ref.text,
|
|
19042
|
+
disabled = _ref.disabled,
|
|
19043
|
+
updateHandle = _ref.updateHandle;
|
|
19044
|
+
return {
|
|
19045
|
+
//百胜E3补发商品
|
|
19046
|
+
BS_E3_REISSUE_GOODS: [{
|
|
19047
|
+
dataIndex: 'sku',
|
|
19048
|
+
title: "SKU",
|
|
19049
|
+
width: 150,
|
|
19050
|
+
render: renderTextEllipsis
|
|
19051
|
+
}, {
|
|
19052
|
+
dataIndex: 'skuId',
|
|
19053
|
+
title: "SKU ID",
|
|
19054
|
+
width: 150,
|
|
19055
|
+
render: renderTextEllipsis
|
|
19056
|
+
}, {
|
|
19057
|
+
dataIndex: 'goodsName',
|
|
19058
|
+
title: "\u5546\u54C1\u540D\u79F0",
|
|
19059
|
+
width: 150,
|
|
19060
|
+
render: renderTextEllipsis
|
|
19061
|
+
}, {
|
|
19062
|
+
dataIndex: 'goodsShortName',
|
|
19063
|
+
title: "\u5546\u54C1\u7B80\u79F0",
|
|
19064
|
+
width: 150,
|
|
19065
|
+
render: renderTextEllipsis
|
|
19066
|
+
}, {
|
|
19067
|
+
dataIndex: 'picPath',
|
|
19068
|
+
title: "\u5546\u54C1\u56FE\u7247",
|
|
19069
|
+
width: 150,
|
|
19070
|
+
render: function render(val) {
|
|
19071
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Image, {
|
|
19072
|
+
width: 30,
|
|
19073
|
+
src: val
|
|
19074
|
+
});
|
|
19075
|
+
}
|
|
19076
|
+
}, {
|
|
19077
|
+
dataIndex: 'goodsSn',
|
|
19078
|
+
title: "\u8D27\u53F7",
|
|
19079
|
+
width: 150,
|
|
19080
|
+
render: renderTextEllipsis
|
|
19081
|
+
}, {
|
|
19082
|
+
dataIndex: 'goodsId',
|
|
19083
|
+
title: "\u8D27\u53F7ID",
|
|
19084
|
+
width: 150,
|
|
19085
|
+
render: renderTextEllipsis
|
|
19086
|
+
}, {
|
|
19087
|
+
dataIndex: 'colorName',
|
|
19088
|
+
title: "\u989C\u8272\u540D\u79F0",
|
|
19089
|
+
width: 150,
|
|
19090
|
+
render: renderTextEllipsis
|
|
19091
|
+
}, {
|
|
19092
|
+
dataIndex: 'colorCode',
|
|
19093
|
+
title: "\u989C\u8272\u4EE3\u7801",
|
|
19094
|
+
width: 150,
|
|
19095
|
+
render: renderTextEllipsis
|
|
19096
|
+
}, {
|
|
19097
|
+
dataIndex: 'sizeName',
|
|
19098
|
+
title: "\u5C3A\u7801\u540D\u79F0",
|
|
19099
|
+
width: 150,
|
|
19100
|
+
render: renderTextEllipsis
|
|
19101
|
+
}, {
|
|
19102
|
+
dataIndex: 'sizeCode',
|
|
19103
|
+
title: "\u5C3A\u7801\u4EE3\u7801",
|
|
19104
|
+
width: 150,
|
|
19105
|
+
render: renderTextEllipsis
|
|
19106
|
+
}, {
|
|
19107
|
+
dataIndex: 'brandName',
|
|
19108
|
+
title: "\u54C1\u724C\u540D\u79F0",
|
|
19109
|
+
width: 150,
|
|
19110
|
+
render: renderTextEllipsis
|
|
19111
|
+
}, {
|
|
19112
|
+
dataIndex: 'goodsNumber',
|
|
19113
|
+
title: "\u5546\u54C1\u6570\u91CF",
|
|
19114
|
+
width: 150
|
|
19115
|
+
}, {
|
|
19116
|
+
dataIndex: 'goodsPrice',
|
|
19117
|
+
title: "\u5546\u54C1\u5355\u4EF7",
|
|
19118
|
+
width: 150
|
|
19119
|
+
}, {
|
|
19120
|
+
dataIndex: 'shopPrice',
|
|
19121
|
+
title: "\u5546\u54C1\u7F51\u5E97\u552E\u4EF7",
|
|
19122
|
+
width: 150
|
|
19123
|
+
}, {
|
|
19124
|
+
dataIndex: 'isGift',
|
|
19125
|
+
title: "\u662F\u5426\u8D60\u54C1",
|
|
19126
|
+
width: 150,
|
|
19127
|
+
render: function render(val) {
|
|
19128
|
+
return /*#__PURE__*/React__default['default'].createElement("span", null, +val ? '是' : '否');
|
|
19129
|
+
}
|
|
19130
|
+
}],
|
|
19131
|
+
//百胜E3商品信息
|
|
19132
|
+
BS_E3_GOODS: [{
|
|
19133
|
+
dataIndex: 'sku',
|
|
19134
|
+
title: "SKU",
|
|
19135
|
+
align: 'center',
|
|
19136
|
+
ellipsis: true,
|
|
19137
|
+
width: 150,
|
|
19138
|
+
render: renderTextEllipsis
|
|
19139
|
+
}, {
|
|
19140
|
+
dataIndex: 'skuId',
|
|
19141
|
+
title: "SKU ID",
|
|
19142
|
+
align: 'center',
|
|
19143
|
+
ellipsis: true,
|
|
19144
|
+
width: 150,
|
|
19145
|
+
render: renderTextEllipsis
|
|
19146
|
+
}, {
|
|
19147
|
+
dataIndex: 'goodsName',
|
|
19148
|
+
title: "\u5546\u54C1\u540D\u79F0",
|
|
19149
|
+
align: 'center',
|
|
19150
|
+
ellipsis: true,
|
|
19151
|
+
width: 150,
|
|
19152
|
+
render: renderTextEllipsis
|
|
19153
|
+
}, {
|
|
19154
|
+
dataIndex: 'goodsShortName',
|
|
19155
|
+
title: "\u5546\u54C1\u7B80\u79F0",
|
|
19156
|
+
align: 'center',
|
|
19157
|
+
ellipsis: true,
|
|
19158
|
+
width: 100,
|
|
19159
|
+
render: renderTextEllipsis
|
|
19160
|
+
}, {
|
|
19161
|
+
dataIndex: 'picPath',
|
|
19162
|
+
title: "\u5546\u54C1\u56FE\u7247",
|
|
19163
|
+
align: 'center',
|
|
19164
|
+
ellipsis: true,
|
|
19165
|
+
width: 100,
|
|
19166
|
+
render: function render(val) {
|
|
19167
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Image, {
|
|
19168
|
+
width: 30,
|
|
19169
|
+
src: val
|
|
18509
19170
|
});
|
|
18510
19171
|
}
|
|
18511
19172
|
}, {
|
|
@@ -18961,7 +19622,8 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
18961
19622
|
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
18962
19623
|
width: 180,
|
|
18963
19624
|
align: 'center',
|
|
18964
|
-
ellipsis: true
|
|
19625
|
+
ellipsis: true,
|
|
19626
|
+
render: renderTextEllipsis
|
|
18965
19627
|
}, {
|
|
18966
19628
|
dataIndex: 'brandName',
|
|
18967
19629
|
title: "\u54C1\u724C\u540D\u79F0",
|
|
@@ -19095,7 +19757,8 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
19095
19757
|
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
19096
19758
|
width: 180,
|
|
19097
19759
|
align: 'center',
|
|
19098
|
-
ellipsis: true
|
|
19760
|
+
ellipsis: true,
|
|
19761
|
+
render: renderTextEllipsis
|
|
19099
19762
|
}, {
|
|
19100
19763
|
dataIndex: 'brandName',
|
|
19101
19764
|
title: "\u54C1\u724C\u540D\u79F0",
|
|
@@ -19234,7 +19897,8 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
19234
19897
|
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
19235
19898
|
width: 180,
|
|
19236
19899
|
align: 'center',
|
|
19237
|
-
ellipsis: true
|
|
19900
|
+
ellipsis: true,
|
|
19901
|
+
render: renderTextEllipsis
|
|
19238
19902
|
}, {
|
|
19239
19903
|
dataIndex: 'brandName',
|
|
19240
19904
|
title: "\u54C1\u724C\u540D\u79F0",
|
|
@@ -19411,7 +20075,8 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
19411
20075
|
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
19412
20076
|
width: 180,
|
|
19413
20077
|
align: 'center',
|
|
19414
|
-
ellipsis: true
|
|
20078
|
+
ellipsis: true,
|
|
20079
|
+
render: renderTextEllipsis
|
|
19415
20080
|
}, {
|
|
19416
20081
|
dataIndex: 'brandName',
|
|
19417
20082
|
title: "\u54C1\u724C\u540D\u79F0",
|
|
@@ -20363,7 +21028,7 @@ var getColumns$5 = function getColumns() {
|
|
|
20363
21028
|
ellipsis: true,
|
|
20364
21029
|
align: 'center',
|
|
20365
21030
|
render: function render(val, record, index) {
|
|
20366
|
-
return (record.qty || 0) * (+record.salePrice || 0);
|
|
21031
|
+
return ((record.qty || 0) * (+record.salePrice || 0)).toFixed(2);
|
|
20367
21032
|
}
|
|
20368
21033
|
}, {
|
|
20369
21034
|
dataIndex: 'batchId',
|
|
@@ -20472,7 +21137,268 @@ var getColumns$5 = function getColumns() {
|
|
|
20472
21137
|
// }
|
|
20473
21138
|
// },
|
|
20474
21139
|
render: function render(val, record, index) {
|
|
20475
|
-
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
21140
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
21141
|
+
style: {
|
|
21142
|
+
width: 70
|
|
21143
|
+
},
|
|
21144
|
+
value: val,
|
|
21145
|
+
min: 0,
|
|
21146
|
+
precision: 2,
|
|
21147
|
+
onChange: function onChange(num) {
|
|
21148
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'salePrice');
|
|
21149
|
+
}
|
|
21150
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
|
|
21151
|
+
}
|
|
21152
|
+
}, {
|
|
21153
|
+
dataIndex: 'qty',
|
|
21154
|
+
title: '数量',
|
|
21155
|
+
ellipsis: true,
|
|
21156
|
+
align: 'center',
|
|
21157
|
+
width: 100,
|
|
21158
|
+
validator: function validator(_rule, value) {
|
|
21159
|
+
var goodsName = '';
|
|
21160
|
+
if (((value === null || value === void 0 ? void 0 : value.jstReissueGoods) || []).some(function (goods) {
|
|
21161
|
+
var qty = toNum$2(goods === null || goods === void 0 ? void 0 : goods.qty);
|
|
21162
|
+
var res = typeof qty === 'number' ? qty < 1 : true;
|
|
21163
|
+
if (res) {
|
|
21164
|
+
goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
|
|
21165
|
+
}
|
|
21166
|
+
return res;
|
|
21167
|
+
})) {
|
|
21168
|
+
return Promise.reject("".concat(goodsName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
21169
|
+
}
|
|
21170
|
+
},
|
|
21171
|
+
render: function render(val, record, index) {
|
|
21172
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
21173
|
+
style: {
|
|
21174
|
+
width: 70
|
|
21175
|
+
},
|
|
21176
|
+
value: val,
|
|
21177
|
+
min: 1,
|
|
21178
|
+
precision: 0,
|
|
21179
|
+
onChange: function onChange(num) {
|
|
21180
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'qty');
|
|
21181
|
+
}
|
|
21182
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
21183
|
+
}
|
|
21184
|
+
}, {
|
|
21185
|
+
dataIndex: 'isGift',
|
|
21186
|
+
title: '是否赠品',
|
|
21187
|
+
ellipsis: true,
|
|
21188
|
+
align: 'center',
|
|
21189
|
+
width: 100,
|
|
21190
|
+
render: function render(val, record, index) {
|
|
21191
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
21192
|
+
value: val,
|
|
21193
|
+
onChange: function onChange(value) {
|
|
21194
|
+
updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(value, index, 'isGift');
|
|
21195
|
+
},
|
|
21196
|
+
options: [{
|
|
21197
|
+
label: '是',
|
|
21198
|
+
value: true
|
|
21199
|
+
}, {
|
|
21200
|
+
label: '否',
|
|
21201
|
+
value: false
|
|
21202
|
+
}]
|
|
21203
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, typeof val !== 'boolean' ? '' : val ? '是' : '否');
|
|
21204
|
+
}
|
|
21205
|
+
}, {
|
|
21206
|
+
dataIndex: 'remark',
|
|
21207
|
+
title: '备注',
|
|
21208
|
+
width: 150,
|
|
21209
|
+
ellipsis: true,
|
|
21210
|
+
align: 'center',
|
|
21211
|
+
render: function render(val, record, index) {
|
|
21212
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
21213
|
+
style: {
|
|
21214
|
+
width: 70
|
|
21215
|
+
},
|
|
21216
|
+
value: val,
|
|
21217
|
+
onChange: function onChange(e) {
|
|
21218
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(e.target.value, index, 'remark');
|
|
21219
|
+
}
|
|
21220
|
+
}) : renderTextEllipsis(val);
|
|
21221
|
+
}
|
|
21222
|
+
}],
|
|
21223
|
+
JST_RETURN_GOODS: [{
|
|
21224
|
+
dataIndex: 'name',
|
|
21225
|
+
title: '商品名称',
|
|
21226
|
+
render: renderTextEllipsis
|
|
21227
|
+
}, {
|
|
21228
|
+
dataIndex: 'skuId',
|
|
21229
|
+
title: '商品编码',
|
|
21230
|
+
render: renderTextEllipsis
|
|
21231
|
+
}, {
|
|
21232
|
+
dataIndex: 'iId',
|
|
21233
|
+
title: '款式编码',
|
|
21234
|
+
render: renderTextEllipsis
|
|
21235
|
+
}, {
|
|
21236
|
+
dataIndex: 'pic',
|
|
21237
|
+
title: '商品图片',
|
|
21238
|
+
width: 100,
|
|
21239
|
+
render: function render(val) {
|
|
21240
|
+
return /*#__PURE__*/React__default['default'].createElement(ApaasImage, {
|
|
21241
|
+
width: 30,
|
|
21242
|
+
src: val
|
|
21243
|
+
});
|
|
21244
|
+
}
|
|
21245
|
+
}, {
|
|
21246
|
+
dataIndex: 'propertiesValue',
|
|
21247
|
+
title: '规格值',
|
|
21248
|
+
render: renderTextEllipsis
|
|
21249
|
+
}, {
|
|
21250
|
+
dataIndex: 'saleBasePrice',
|
|
21251
|
+
title: '原价',
|
|
21252
|
+
render: function render(price) {
|
|
21253
|
+
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
21254
|
+
}
|
|
21255
|
+
}, {
|
|
21256
|
+
dataIndex: 'salePrice',
|
|
21257
|
+
title: '单价',
|
|
21258
|
+
width: 120,
|
|
21259
|
+
validator: function validator(_rule, value) {
|
|
21260
|
+
var goodsName = '';
|
|
21261
|
+
if (((value === null || value === void 0 ? void 0 : value.jstReturnGoods) || []).some(function (goods) {
|
|
21262
|
+
var v = toNum$2(goods === null || goods === void 0 ? void 0 : goods.salePrice);
|
|
21263
|
+
var res = typeof v === 'number' ? v < 0 : true;
|
|
21264
|
+
if (res) {
|
|
21265
|
+
goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
|
|
21266
|
+
}
|
|
21267
|
+
return res;
|
|
21268
|
+
})) {
|
|
21269
|
+
return Promise.reject("".concat(goodsName, "\u5355\u4EF7\u4E3A\u5927\u4E8E\u7B49\u4E8E0\u7684\u6570"));
|
|
21270
|
+
}
|
|
21271
|
+
},
|
|
21272
|
+
render: function render(val, record, index) {
|
|
21273
|
+
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
21274
|
+
style: {
|
|
21275
|
+
width: 70
|
|
21276
|
+
},
|
|
21277
|
+
value: val,
|
|
21278
|
+
min: 0,
|
|
21279
|
+
precision: 2,
|
|
21280
|
+
onChange: function onChange(num) {
|
|
21281
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'salePrice');
|
|
21282
|
+
}
|
|
21283
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
|
|
21284
|
+
}
|
|
21285
|
+
}, {
|
|
21286
|
+
dataIndex: 'qty',
|
|
21287
|
+
title: '数量',
|
|
21288
|
+
width: 100,
|
|
21289
|
+
validator: function validator(_rule, value) {
|
|
21290
|
+
var goodsName = '';
|
|
21291
|
+
if (((value === null || value === void 0 ? void 0 : value.jstReturnGoods) || []).some(function (goods) {
|
|
21292
|
+
var qty = toNum$2(goods === null || goods === void 0 ? void 0 : goods.qty);
|
|
21293
|
+
var res = typeof qty === 'number' ? qty < 1 : true;
|
|
21294
|
+
if (res) {
|
|
21295
|
+
goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
|
|
21296
|
+
}
|
|
21297
|
+
return res;
|
|
21298
|
+
})) {
|
|
21299
|
+
return Promise.reject("".concat(goodsName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
21300
|
+
}
|
|
21301
|
+
},
|
|
21302
|
+
render: function render(val, record, index) {
|
|
21303
|
+
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
21304
|
+
style: {
|
|
21305
|
+
width: 70
|
|
21306
|
+
},
|
|
21307
|
+
value: val,
|
|
21308
|
+
min: 1,
|
|
21309
|
+
precision: 0,
|
|
21310
|
+
onChange: function onChange(num) {
|
|
21311
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'qty');
|
|
21312
|
+
}
|
|
21313
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
21314
|
+
}
|
|
21315
|
+
}, {
|
|
21316
|
+
dataIndex: 'saleAmount',
|
|
21317
|
+
title: '总金额',
|
|
21318
|
+
render: function render(val, record) {
|
|
21319
|
+
return ((record.qty || 0) * (+record.salePrice || 0)).toFixed(2);
|
|
21320
|
+
}
|
|
21321
|
+
}, {
|
|
21322
|
+
dataIndex: 'batchId',
|
|
21323
|
+
title: '批次号',
|
|
21324
|
+
render: renderTextEllipsis
|
|
21325
|
+
}, {
|
|
21326
|
+
dataIndex: 'isGift',
|
|
21327
|
+
title: '是否赠品',
|
|
21328
|
+
width: 100,
|
|
21329
|
+
render: function render(val, record, index) {
|
|
21330
|
+
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
21331
|
+
value: val,
|
|
21332
|
+
onChange: function onChange(value) {
|
|
21333
|
+
updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(value, index, 'isGift');
|
|
21334
|
+
},
|
|
21335
|
+
options: [{
|
|
21336
|
+
label: '是',
|
|
21337
|
+
value: true
|
|
21338
|
+
}, {
|
|
21339
|
+
label: '否',
|
|
21340
|
+
value: false
|
|
21341
|
+
}]
|
|
21342
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, typeof val !== 'boolean' ? '' : val ? '是' : '否');
|
|
21343
|
+
}
|
|
21344
|
+
}, {
|
|
21345
|
+
dataIndex: 'remark',
|
|
21346
|
+
title: '备注',
|
|
21347
|
+
render: function render(val, record, index) {
|
|
21348
|
+
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
21349
|
+
style: {
|
|
21350
|
+
width: 70
|
|
21351
|
+
},
|
|
21352
|
+
value: val,
|
|
21353
|
+
onChange: function onChange(e) {
|
|
21354
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(e.target.value, index, 'remark');
|
|
21355
|
+
}
|
|
21356
|
+
}) : renderTextEllipsis(val);
|
|
21357
|
+
}
|
|
21358
|
+
}, {
|
|
21359
|
+
dataIndex: 'outerOiId',
|
|
21360
|
+
title: '子订单号',
|
|
21361
|
+
width: 240,
|
|
21362
|
+
render: renderTextEllipsis
|
|
21363
|
+
}].map(fillAttrs),
|
|
21364
|
+
JST_EXCHANGE_GOODS: [{
|
|
21365
|
+
dataIndex: 'name',
|
|
21366
|
+
title: '商品名称',
|
|
21367
|
+
render: renderTextEllipsis
|
|
21368
|
+
}, {
|
|
21369
|
+
dataIndex: 'skuId',
|
|
21370
|
+
title: '商品编码',
|
|
21371
|
+
render: renderTextEllipsis
|
|
21372
|
+
}, {
|
|
21373
|
+
dataIndex: 'iId',
|
|
21374
|
+
title: '款式编码',
|
|
21375
|
+
render: renderTextEllipsis
|
|
21376
|
+
}, {
|
|
21377
|
+
dataIndex: 'pic',
|
|
21378
|
+
title: '商品图片',
|
|
21379
|
+
width: 100,
|
|
21380
|
+
render: function render(val) {
|
|
21381
|
+
return /*#__PURE__*/React__default['default'].createElement(ApaasImage, {
|
|
21382
|
+
width: 30,
|
|
21383
|
+
src: val
|
|
21384
|
+
});
|
|
21385
|
+
}
|
|
21386
|
+
}, {
|
|
21387
|
+
dataIndex: 'propertiesValue',
|
|
21388
|
+
title: '规格值',
|
|
21389
|
+
render: renderTextEllipsis
|
|
21390
|
+
}, {
|
|
21391
|
+
dataIndex: 'saleBasePrice',
|
|
21392
|
+
title: '原价',
|
|
21393
|
+
render: function render(price) {
|
|
21394
|
+
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
21395
|
+
}
|
|
21396
|
+
}, {
|
|
21397
|
+
dataIndex: 'salePrice',
|
|
21398
|
+
title: '单价',
|
|
21399
|
+
width: 120,
|
|
21400
|
+
render: function render(val, record, index) {
|
|
21401
|
+
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
20476
21402
|
style: {
|
|
20477
21403
|
width: 70
|
|
20478
21404
|
},
|
|
@@ -20487,24 +21413,9 @@ var getColumns$5 = function getColumns() {
|
|
|
20487
21413
|
}, {
|
|
20488
21414
|
dataIndex: 'qty',
|
|
20489
21415
|
title: '数量',
|
|
20490
|
-
ellipsis: true,
|
|
20491
|
-
align: 'center',
|
|
20492
21416
|
width: 100,
|
|
20493
|
-
validator: function validator(_rule, value) {
|
|
20494
|
-
var goodsName = '';
|
|
20495
|
-
if (((value === null || value === void 0 ? void 0 : value.jstReissueGoods) || []).some(function (goods) {
|
|
20496
|
-
var qty = toNum$2(goods === null || goods === void 0 ? void 0 : goods.qty);
|
|
20497
|
-
var res = typeof qty === 'number' ? qty < 1 : true;
|
|
20498
|
-
if (res) {
|
|
20499
|
-
goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
|
|
20500
|
-
}
|
|
20501
|
-
return res;
|
|
20502
|
-
})) {
|
|
20503
|
-
return Promise.reject("".concat(goodsName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
20504
|
-
}
|
|
20505
|
-
},
|
|
20506
21417
|
render: function render(val, record, index) {
|
|
20507
|
-
return
|
|
21418
|
+
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
20508
21419
|
style: {
|
|
20509
21420
|
width: 70
|
|
20510
21421
|
},
|
|
@@ -20516,14 +21427,18 @@ var getColumns$5 = function getColumns() {
|
|
|
20516
21427
|
}
|
|
20517
21428
|
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
20518
21429
|
}
|
|
21430
|
+
}, {
|
|
21431
|
+
dataIndex: 'saleAmount',
|
|
21432
|
+
title: '总金额',
|
|
21433
|
+
render: function render(val, record) {
|
|
21434
|
+
return ((record.qty || 0) * (+record.salePrice || 0)).toFixed(2);
|
|
21435
|
+
}
|
|
20519
21436
|
}, {
|
|
20520
21437
|
dataIndex: 'isGift',
|
|
20521
21438
|
title: '是否赠品',
|
|
20522
|
-
ellipsis: true,
|
|
20523
|
-
align: 'center',
|
|
20524
21439
|
width: 100,
|
|
20525
21440
|
render: function render(val, record, index) {
|
|
20526
|
-
return
|
|
21441
|
+
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
20527
21442
|
value: val,
|
|
20528
21443
|
onChange: function onChange(value) {
|
|
20529
21444
|
updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(value, index, 'isGift');
|
|
@@ -20540,11 +21455,8 @@ var getColumns$5 = function getColumns() {
|
|
|
20540
21455
|
}, {
|
|
20541
21456
|
dataIndex: 'remark',
|
|
20542
21457
|
title: '备注',
|
|
20543
|
-
width: 150,
|
|
20544
|
-
ellipsis: true,
|
|
20545
|
-
align: 'center',
|
|
20546
21458
|
render: function render(val, record, index) {
|
|
20547
|
-
return
|
|
21459
|
+
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
20548
21460
|
style: {
|
|
20549
21461
|
width: 70
|
|
20550
21462
|
},
|
|
@@ -20554,203 +21466,385 @@ var getColumns$5 = function getColumns() {
|
|
|
20554
21466
|
}
|
|
20555
21467
|
}) : renderTextEllipsis(val);
|
|
20556
21468
|
}
|
|
20557
|
-
}],
|
|
20558
|
-
|
|
20559
|
-
|
|
20560
|
-
|
|
21469
|
+
}].map(fillAttrs),
|
|
21470
|
+
// jst售后商品信息
|
|
21471
|
+
JST_AFTERSALE_GOODS: [{
|
|
21472
|
+
dataIndex: 'asId',
|
|
21473
|
+
title: "\u805A\u6C34\u6F6D\u552E\u540E\u5355\u53F7",
|
|
21474
|
+
width: 200,
|
|
21475
|
+
align: 'center',
|
|
21476
|
+
ellipsis: true,
|
|
20561
21477
|
render: renderTextEllipsis
|
|
20562
21478
|
}, {
|
|
20563
|
-
dataIndex: '
|
|
20564
|
-
title:
|
|
21479
|
+
dataIndex: 'asiId',
|
|
21480
|
+
title: "\u552E\u540E\u5B50\u5355\u53F7",
|
|
21481
|
+
width: 200,
|
|
21482
|
+
align: 'center',
|
|
21483
|
+
ellipsis: true,
|
|
20565
21484
|
render: renderTextEllipsis
|
|
20566
21485
|
}, {
|
|
20567
|
-
dataIndex: '
|
|
20568
|
-
title:
|
|
21486
|
+
dataIndex: 'outerOiId',
|
|
21487
|
+
title: "\u5B50\u8BA2\u5355\u53F7",
|
|
21488
|
+
width: 200,
|
|
21489
|
+
align: 'center',
|
|
21490
|
+
ellipsis: true,
|
|
20569
21491
|
render: renderTextEllipsis
|
|
20570
21492
|
}, {
|
|
20571
21493
|
dataIndex: 'pic',
|
|
20572
|
-
title:
|
|
21494
|
+
title: "\u56FE\u7247",
|
|
20573
21495
|
width: 100,
|
|
21496
|
+
align: 'center',
|
|
20574
21497
|
render: function render(val) {
|
|
20575
21498
|
return /*#__PURE__*/React__default['default'].createElement(ApaasImage, {
|
|
20576
21499
|
width: 30,
|
|
20577
21500
|
src: val
|
|
20578
21501
|
});
|
|
20579
|
-
}
|
|
21502
|
+
},
|
|
21503
|
+
headerComponentType: 'pic'
|
|
21504
|
+
}, {
|
|
21505
|
+
dataIndex: 'name',
|
|
21506
|
+
title: "\u5546\u54C1\u540D\u79F0",
|
|
21507
|
+
width: 250,
|
|
21508
|
+
align: 'center',
|
|
21509
|
+
ellipsis: true,
|
|
21510
|
+
render: renderTextEllipsis
|
|
21511
|
+
}, {
|
|
21512
|
+
dataIndex: 'skuId',
|
|
21513
|
+
title: "\u5546\u54C1\u7F16\u7801",
|
|
21514
|
+
width: 200,
|
|
21515
|
+
align: 'center',
|
|
21516
|
+
ellipsis: true,
|
|
21517
|
+
render: renderTextEllipsis
|
|
20580
21518
|
}, {
|
|
20581
21519
|
dataIndex: 'propertiesValue',
|
|
20582
|
-
title:
|
|
21520
|
+
title: "\u89C4\u683C\u5C5E\u6027\u503C",
|
|
21521
|
+
width: 200,
|
|
21522
|
+
align: 'center',
|
|
21523
|
+
ellipsis: true,
|
|
21524
|
+
render: renderTextEllipsis
|
|
21525
|
+
}, {
|
|
21526
|
+
dataIndex: 'qty',
|
|
21527
|
+
title: "\u7533\u8BF7\u6570\u91CF",
|
|
21528
|
+
width: 150,
|
|
21529
|
+
align: 'center',
|
|
21530
|
+
ellipsis: true,
|
|
21531
|
+
render: renderTextEllipsis
|
|
21532
|
+
}, {
|
|
21533
|
+
dataIndex: 'rQty',
|
|
21534
|
+
title: "\u5B9E\u6536\u9000\u8D27\u6570\u91CF",
|
|
21535
|
+
width: 150,
|
|
21536
|
+
align: 'center',
|
|
21537
|
+
ellipsis: true,
|
|
21538
|
+
render: renderTextEllipsis
|
|
21539
|
+
}, {
|
|
21540
|
+
dataIndex: 'defectiveQty',
|
|
21541
|
+
title: "\u6B21\u54C1\u6570\u91CF",
|
|
21542
|
+
width: 150,
|
|
21543
|
+
align: 'center',
|
|
21544
|
+
ellipsis: true,
|
|
21545
|
+
render: renderTextEllipsis
|
|
21546
|
+
}, {
|
|
21547
|
+
dataIndex: 'amount',
|
|
21548
|
+
title: "\u7533\u8BF7\u91D1\u989D",
|
|
21549
|
+
width: 150,
|
|
21550
|
+
align: 'center',
|
|
21551
|
+
ellipsis: true,
|
|
21552
|
+
render: renderTextEllipsis
|
|
21553
|
+
}, {
|
|
21554
|
+
dataIndex: 'shopAmount',
|
|
21555
|
+
title: "\u7EBF\u4E0A\u660E\u7EC6\u91D1\u989D",
|
|
21556
|
+
width: 150,
|
|
21557
|
+
align: 'center',
|
|
21558
|
+
ellipsis: true,
|
|
21559
|
+
render: renderTextEllipsis
|
|
21560
|
+
}, {
|
|
21561
|
+
dataIndex: 'price',
|
|
21562
|
+
title: "\u5355\u4EF7",
|
|
21563
|
+
width: 150,
|
|
21564
|
+
align: 'center',
|
|
21565
|
+
ellipsis: true,
|
|
21566
|
+
render: renderTextEllipsis
|
|
21567
|
+
}, {
|
|
21568
|
+
dataIndex: 'combineSkuId',
|
|
21569
|
+
title: "\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
|
|
21570
|
+
width: 250,
|
|
21571
|
+
align: 'center',
|
|
21572
|
+
ellipsis: true,
|
|
21573
|
+
render: renderTextEllipsis
|
|
21574
|
+
}, {
|
|
21575
|
+
dataIndex: 'shopSkuId',
|
|
21576
|
+
title: "\u5E97\u94FA\u5546\u54C1\u7F16\u7801",
|
|
21577
|
+
width: 200,
|
|
21578
|
+
align: 'center',
|
|
21579
|
+
ellipsis: true,
|
|
21580
|
+
render: renderTextEllipsis
|
|
21581
|
+
}, {
|
|
21582
|
+
dataIndex: 'iId',
|
|
21583
|
+
title: "\u6B3E\u5F0F\u7F16\u7801",
|
|
21584
|
+
width: 200,
|
|
21585
|
+
align: 'center',
|
|
21586
|
+
ellipsis: true,
|
|
21587
|
+
render: renderTextEllipsis
|
|
21588
|
+
}, {
|
|
21589
|
+
dataIndex: 'type',
|
|
21590
|
+
title: "\u552E\u540E\u7C7B\u578B",
|
|
21591
|
+
width: 150,
|
|
21592
|
+
align: 'center',
|
|
21593
|
+
ellipsis: true,
|
|
21594
|
+
render: renderTextEllipsis
|
|
21595
|
+
}, {
|
|
21596
|
+
dataIndex: 'skuType',
|
|
21597
|
+
title: "\u5546\u54C1\u7C7B\u578B",
|
|
21598
|
+
width: 150,
|
|
21599
|
+
align: 'center',
|
|
21600
|
+
ellipsis: true,
|
|
21601
|
+
render: renderTextEllipsis
|
|
21602
|
+
}, {
|
|
21603
|
+
dataIndex: 'isGift',
|
|
21604
|
+
title: '是否赠品',
|
|
21605
|
+
width: 100,
|
|
21606
|
+
render: function render(val) {
|
|
21607
|
+
return /*#__PURE__*/React__default['default'].createElement("span", null, typeof val !== 'boolean' ? '' : val ? '是' : '否');
|
|
21608
|
+
},
|
|
21609
|
+
headerMapping: {
|
|
21610
|
+
transformValue: function transformValue(val) {
|
|
21611
|
+
return typeof val !== 'boolean' ? '' : val ? '是' : '否';
|
|
21612
|
+
},
|
|
21613
|
+
renderExport: function renderExport(val) {
|
|
21614
|
+
return typeof val !== 'boolean' ? '' : val ? '是' : '否';
|
|
21615
|
+
}
|
|
21616
|
+
}
|
|
21617
|
+
}, {
|
|
21618
|
+
dataIndex: 'receiveDate',
|
|
21619
|
+
title: "\u5165\u4ED3\u65F6\u95F4",
|
|
21620
|
+
width: 200,
|
|
21621
|
+
align: 'center',
|
|
21622
|
+
ellipsis: true,
|
|
21623
|
+
render: renderTextEllipsis
|
|
21624
|
+
}, {
|
|
21625
|
+
dataIndex: 'remark',
|
|
21626
|
+
title: "\u660E\u7EC6\u5907\u6CE8",
|
|
21627
|
+
width: 200,
|
|
21628
|
+
align: 'center',
|
|
21629
|
+
ellipsis: true,
|
|
21630
|
+
render: renderTextEllipsis
|
|
21631
|
+
}]
|
|
21632
|
+
};
|
|
21633
|
+
};
|
|
21634
|
+
|
|
21635
|
+
function toNum$3(value) {
|
|
21636
|
+
if (typeof value === 'string') {
|
|
21637
|
+
return value ? +value : void 0;
|
|
21638
|
+
}
|
|
21639
|
+
if (typeof value === 'number') {
|
|
21640
|
+
return value;
|
|
21641
|
+
}
|
|
21642
|
+
return void 0;
|
|
21643
|
+
}
|
|
21644
|
+
var getColumns$6 = function getColumns(_ref) {
|
|
21645
|
+
var _ref$text = _ref.text,
|
|
21646
|
+
disabled = _ref.disabled,
|
|
21647
|
+
updateHandle = _ref.updateHandle;
|
|
21648
|
+
return {
|
|
21649
|
+
KM_GOODS: [{
|
|
21650
|
+
dataIndex: 'skuPropertiesName',
|
|
21651
|
+
title: "\u89C4\u683C\u540D\u79F0",
|
|
21652
|
+
width: 250,
|
|
21653
|
+
render: renderTextEllipsis
|
|
21654
|
+
}, {
|
|
21655
|
+
dataIndex: 'sysTitle',
|
|
21656
|
+
title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
|
|
21657
|
+
width: 150,
|
|
21658
|
+
render: renderTextEllipsis
|
|
21659
|
+
}, {
|
|
21660
|
+
dataIndex: 'title',
|
|
21661
|
+
title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
|
|
21662
|
+
width: 150,
|
|
21663
|
+
render: renderTextEllipsis
|
|
21664
|
+
}, {
|
|
21665
|
+
dataIndex: 'shortTitle',
|
|
21666
|
+
title: "\u5546\u54C1\u7B80\u79F0",
|
|
21667
|
+
width: 150,
|
|
21668
|
+
render: renderTextEllipsis
|
|
21669
|
+
}, {
|
|
21670
|
+
dataIndex: 'sysOuterId',
|
|
21671
|
+
title: "\u7CFB\u7EDF\u5546\u5BB6\u7F16\u7801",
|
|
21672
|
+
width: 150,
|
|
21673
|
+
render: renderTextEllipsis
|
|
21674
|
+
}, {
|
|
21675
|
+
dataIndex: 'skuSysId',
|
|
21676
|
+
title: "\u7CFB\u7EDF\u89C4\u683CID",
|
|
21677
|
+
width: 150,
|
|
21678
|
+
render: renderTextEllipsis
|
|
21679
|
+
}, {
|
|
21680
|
+
dataIndex: 'skuId',
|
|
21681
|
+
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
21682
|
+
width: 170,
|
|
21683
|
+
render: renderTextEllipsis
|
|
21684
|
+
}, {
|
|
21685
|
+
dataIndex: 'outerSkuId',
|
|
21686
|
+
title: "\u5E73\u53F0\u89C4\u683C\u7F16\u7801",
|
|
21687
|
+
width: 170,
|
|
21688
|
+
render: renderTextEllipsis
|
|
21689
|
+
}, {
|
|
21690
|
+
dataIndex: 'itemSysId',
|
|
21691
|
+
title: "\u7CFB\u7EDF\u5546\u54C1ID",
|
|
21692
|
+
width: 150,
|
|
20583
21693
|
render: renderTextEllipsis
|
|
20584
21694
|
}, {
|
|
20585
|
-
dataIndex: '
|
|
20586
|
-
title:
|
|
20587
|
-
|
|
20588
|
-
|
|
21695
|
+
dataIndex: 'sysPicPath',
|
|
21696
|
+
title: "\u5546\u54C1\u56FE\u7247",
|
|
21697
|
+
width: 100,
|
|
21698
|
+
render: function render(val) {
|
|
21699
|
+
var imgUrl = (val === null || val === void 0 ? void 0 : val.startsWith('http')) ? val : "https://erp.superboss.cc".concat(val);
|
|
21700
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Image, {
|
|
21701
|
+
width: 30,
|
|
21702
|
+
src: imgUrl
|
|
21703
|
+
});
|
|
20589
21704
|
}
|
|
20590
21705
|
}, {
|
|
20591
|
-
dataIndex: '
|
|
20592
|
-
title:
|
|
20593
|
-
width:
|
|
20594
|
-
validator: function validator(_rule, value) {
|
|
20595
|
-
var goodsName = '';
|
|
20596
|
-
if (((value === null || value === void 0 ? void 0 : value.jstReturnGoods) || []).some(function (goods) {
|
|
20597
|
-
var v = toNum$2(goods === null || goods === void 0 ? void 0 : goods.salePrice);
|
|
20598
|
-
var res = typeof v === 'number' ? v < 0 : true;
|
|
20599
|
-
if (res) {
|
|
20600
|
-
goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
|
|
20601
|
-
}
|
|
20602
|
-
return res;
|
|
20603
|
-
})) {
|
|
20604
|
-
return Promise.reject("".concat(goodsName, "\u5355\u4EF7\u4E3A\u5927\u4E8E\u7B49\u4E8E0\u7684\u6570"));
|
|
20605
|
-
}
|
|
20606
|
-
},
|
|
21706
|
+
dataIndex: 'num',
|
|
21707
|
+
title: "\u6570\u91CF",
|
|
21708
|
+
width: 100,
|
|
20607
21709
|
render: function render(val, record, index) {
|
|
20608
|
-
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
21710
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
20609
21711
|
style: {
|
|
20610
21712
|
width: 70
|
|
20611
21713
|
},
|
|
20612
21714
|
value: val,
|
|
20613
|
-
min:
|
|
20614
|
-
precision:
|
|
21715
|
+
min: 1,
|
|
21716
|
+
precision: 0,
|
|
20615
21717
|
onChange: function onChange(num) {
|
|
20616
|
-
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, '
|
|
21718
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'num');
|
|
20617
21719
|
}
|
|
20618
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val
|
|
21720
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
20619
21721
|
}
|
|
20620
21722
|
}, {
|
|
20621
|
-
dataIndex: '
|
|
20622
|
-
title:
|
|
20623
|
-
width:
|
|
20624
|
-
validator: function validator(_rule, value) {
|
|
20625
|
-
var goodsName = '';
|
|
20626
|
-
if (((value === null || value === void 0 ? void 0 : value.jstReturnGoods) || []).some(function (goods) {
|
|
20627
|
-
var qty = toNum$2(goods === null || goods === void 0 ? void 0 : goods.qty);
|
|
20628
|
-
var res = typeof qty === 'number' ? qty < 1 : true;
|
|
20629
|
-
if (res) {
|
|
20630
|
-
goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
|
|
20631
|
-
}
|
|
20632
|
-
return res;
|
|
20633
|
-
})) {
|
|
20634
|
-
return Promise.reject("".concat(goodsName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
20635
|
-
}
|
|
20636
|
-
},
|
|
21723
|
+
dataIndex: 'payment',
|
|
21724
|
+
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
21725
|
+
width: 150,
|
|
20637
21726
|
render: function render(val, record, index) {
|
|
20638
|
-
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
21727
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
20639
21728
|
style: {
|
|
20640
|
-
width:
|
|
21729
|
+
width: 130
|
|
20641
21730
|
},
|
|
20642
21731
|
value: val,
|
|
20643
|
-
min:
|
|
20644
|
-
precision:
|
|
21732
|
+
min: 0,
|
|
21733
|
+
precision: 2,
|
|
20645
21734
|
onChange: function onChange(num) {
|
|
20646
|
-
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, '
|
|
21735
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'payment');
|
|
20647
21736
|
}
|
|
20648
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
21737
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
|
|
20649
21738
|
}
|
|
20650
21739
|
}, {
|
|
20651
|
-
dataIndex: '
|
|
20652
|
-
title:
|
|
20653
|
-
|
|
20654
|
-
|
|
21740
|
+
dataIndex: 'price',
|
|
21741
|
+
title: "\u5546\u54C1\u9500\u552E\u4EF7",
|
|
21742
|
+
width: 150,
|
|
21743
|
+
render: function render(val) {
|
|
21744
|
+
return val || val === 0 ? Number(val).toFixed(2) : '';
|
|
20655
21745
|
}
|
|
20656
21746
|
}, {
|
|
20657
|
-
dataIndex: '
|
|
20658
|
-
title:
|
|
21747
|
+
dataIndex: 'type',
|
|
21748
|
+
title: "\u5546\u54C1\u7C7B\u578B",
|
|
21749
|
+
width: 150,
|
|
20659
21750
|
render: renderTextEllipsis
|
|
20660
21751
|
}, {
|
|
20661
|
-
dataIndex: '
|
|
20662
|
-
title:
|
|
20663
|
-
width:
|
|
20664
|
-
render:
|
|
20665
|
-
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
20666
|
-
value: val,
|
|
20667
|
-
onChange: function onChange(value) {
|
|
20668
|
-
updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(value, index, 'isGift');
|
|
20669
|
-
},
|
|
20670
|
-
options: [{
|
|
20671
|
-
label: '是',
|
|
20672
|
-
value: true
|
|
20673
|
-
}, {
|
|
20674
|
-
label: '否',
|
|
20675
|
-
value: false
|
|
20676
|
-
}]
|
|
20677
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, typeof val !== 'boolean' ? '' : val ? '是' : '否');
|
|
20678
|
-
}
|
|
21752
|
+
dataIndex: 'supplierName',
|
|
21753
|
+
title: "\u4F9B\u5E94\u5546\u540D\u79F0",
|
|
21754
|
+
width: 150,
|
|
21755
|
+
render: renderTextEllipsis
|
|
20679
21756
|
}, {
|
|
20680
|
-
dataIndex: '
|
|
20681
|
-
title:
|
|
20682
|
-
|
|
20683
|
-
|
|
20684
|
-
|
|
20685
|
-
|
|
20686
|
-
|
|
20687
|
-
|
|
20688
|
-
|
|
20689
|
-
|
|
20690
|
-
|
|
20691
|
-
|
|
20692
|
-
|
|
21757
|
+
dataIndex: 'supplierCode',
|
|
21758
|
+
title: "\u4F9B\u5E94\u5546\u7F16\u7801",
|
|
21759
|
+
width: 150,
|
|
21760
|
+
render: renderTextEllipsis
|
|
21761
|
+
}].map(function (item) {
|
|
21762
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
21763
|
+
align: 'center',
|
|
21764
|
+
ellipsis: true
|
|
21765
|
+
});
|
|
21766
|
+
}),
|
|
21767
|
+
KM_REISSUE_GOODS: [{
|
|
21768
|
+
dataIndex: 'skuPropertiesName',
|
|
21769
|
+
title: "\u89C4\u683C\u540D\u79F0",
|
|
21770
|
+
width: 250,
|
|
21771
|
+
render: renderTextEllipsis
|
|
20693
21772
|
}, {
|
|
20694
|
-
dataIndex: '
|
|
20695
|
-
title:
|
|
20696
|
-
width:
|
|
21773
|
+
dataIndex: 'sysTitle',
|
|
21774
|
+
title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
|
|
21775
|
+
width: 150,
|
|
20697
21776
|
render: renderTextEllipsis
|
|
20698
|
-
}
|
|
20699
|
-
|
|
20700
|
-
|
|
20701
|
-
|
|
21777
|
+
}, {
|
|
21778
|
+
dataIndex: 'shortTitle',
|
|
21779
|
+
title: "\u5546\u54C1\u7B80\u79F0",
|
|
21780
|
+
width: 150,
|
|
20702
21781
|
render: renderTextEllipsis
|
|
20703
21782
|
}, {
|
|
20704
|
-
dataIndex: '
|
|
20705
|
-
title:
|
|
21783
|
+
dataIndex: 'title',
|
|
21784
|
+
title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
|
|
21785
|
+
width: 150,
|
|
20706
21786
|
render: renderTextEllipsis
|
|
20707
21787
|
}, {
|
|
20708
|
-
dataIndex: '
|
|
20709
|
-
title:
|
|
21788
|
+
dataIndex: 'sysOuterId',
|
|
21789
|
+
title: "\u7CFB\u7EDF\u5546\u5BB6\u7F16\u7801",
|
|
21790
|
+
width: 150,
|
|
20710
21791
|
render: renderTextEllipsis
|
|
20711
21792
|
}, {
|
|
20712
|
-
dataIndex: '
|
|
20713
|
-
title:
|
|
20714
|
-
width:
|
|
20715
|
-
render:
|
|
20716
|
-
return /*#__PURE__*/React__default['default'].createElement(ApaasImage, {
|
|
20717
|
-
width: 30,
|
|
20718
|
-
src: val
|
|
20719
|
-
});
|
|
20720
|
-
}
|
|
21793
|
+
dataIndex: 'itemSysId',
|
|
21794
|
+
title: "\u7CFB\u7EDF\u5546\u54C1ID",
|
|
21795
|
+
width: 150,
|
|
21796
|
+
render: renderTextEllipsis
|
|
20721
21797
|
}, {
|
|
20722
|
-
dataIndex: '
|
|
20723
|
-
title:
|
|
21798
|
+
dataIndex: 'skuSysId',
|
|
21799
|
+
title: "\u7CFB\u7EDF\u89C4\u683CID",
|
|
21800
|
+
width: 150,
|
|
20724
21801
|
render: renderTextEllipsis
|
|
20725
21802
|
}, {
|
|
20726
|
-
dataIndex: '
|
|
20727
|
-
title:
|
|
20728
|
-
|
|
20729
|
-
|
|
20730
|
-
}
|
|
21803
|
+
dataIndex: 'skuId',
|
|
21804
|
+
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
21805
|
+
width: 170,
|
|
21806
|
+
render: renderTextEllipsis
|
|
20731
21807
|
}, {
|
|
20732
|
-
dataIndex: '
|
|
20733
|
-
title:
|
|
20734
|
-
width:
|
|
21808
|
+
dataIndex: 'outerSkuId',
|
|
21809
|
+
title: "\u5E73\u53F0\u89C4\u683C\u7F16\u7801",
|
|
21810
|
+
width: 170,
|
|
21811
|
+
render: renderTextEllipsis
|
|
21812
|
+
}, {
|
|
21813
|
+
dataIndex: 'realNum',
|
|
21814
|
+
title: "\u5B9E\u9645\u8865\u53D1\u6570\u91CF",
|
|
21815
|
+
width: 100,
|
|
21816
|
+
validator: function validator(_rule, value) {
|
|
21817
|
+
var title = '';
|
|
21818
|
+
if (((value === null || value === void 0 ? void 0 : value.kmReissueGoods) || []).some(function (goods) {
|
|
21819
|
+
var realNum = toNum$3(goods === null || goods === void 0 ? void 0 : goods.realNum);
|
|
21820
|
+
var res = typeof realNum === 'number' ? realNum < 1 : true;
|
|
21821
|
+
if (res) {
|
|
21822
|
+
title = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
|
|
21823
|
+
}
|
|
21824
|
+
return res;
|
|
21825
|
+
})) {
|
|
21826
|
+
return Promise.reject("".concat(title, "\u5B9E\u9645\u8865\u53D1\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
21827
|
+
}
|
|
21828
|
+
},
|
|
20735
21829
|
render: function render(val, record, index) {
|
|
20736
|
-
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
21830
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
20737
21831
|
style: {
|
|
20738
21832
|
width: 70
|
|
20739
21833
|
},
|
|
20740
21834
|
value: val,
|
|
20741
|
-
min:
|
|
20742
|
-
precision:
|
|
21835
|
+
min: 1,
|
|
21836
|
+
precision: 0,
|
|
20743
21837
|
onChange: function onChange(num) {
|
|
20744
|
-
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, '
|
|
21838
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'realNum');
|
|
20745
21839
|
}
|
|
20746
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val
|
|
21840
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
20747
21841
|
}
|
|
20748
21842
|
}, {
|
|
20749
|
-
dataIndex: '
|
|
20750
|
-
title:
|
|
21843
|
+
dataIndex: 'desiredNum',
|
|
21844
|
+
title: "\u5E94\u8865\u53D1\u6570\u91CF",
|
|
20751
21845
|
width: 100,
|
|
20752
21846
|
render: function render(val, record, index) {
|
|
20753
|
-
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
21847
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
20754
21848
|
style: {
|
|
20755
21849
|
width: 70
|
|
20756
21850
|
},
|
|
@@ -20758,281 +21852,194 @@ var getColumns$5 = function getColumns() {
|
|
|
20758
21852
|
min: 1,
|
|
20759
21853
|
precision: 0,
|
|
20760
21854
|
onChange: function onChange(num) {
|
|
20761
|
-
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, '
|
|
21855
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'desiredNum');
|
|
20762
21856
|
}
|
|
20763
21857
|
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
20764
21858
|
}
|
|
20765
21859
|
}, {
|
|
20766
|
-
dataIndex: '
|
|
20767
|
-
title:
|
|
20768
|
-
|
|
20769
|
-
|
|
20770
|
-
|
|
20771
|
-
}, {
|
|
20772
|
-
dataIndex: 'isGift',
|
|
20773
|
-
title: '是否赠品',
|
|
20774
|
-
width: 100,
|
|
20775
|
-
render: function render(val, record, index) {
|
|
20776
|
-
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
20777
|
-
value: val,
|
|
20778
|
-
onChange: function onChange(value) {
|
|
20779
|
-
updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(value, index, 'isGift');
|
|
20780
|
-
},
|
|
20781
|
-
options: [{
|
|
20782
|
-
label: '是',
|
|
20783
|
-
value: true
|
|
20784
|
-
}, {
|
|
20785
|
-
label: '否',
|
|
20786
|
-
value: false
|
|
20787
|
-
}]
|
|
20788
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, typeof val !== 'boolean' ? '' : val ? '是' : '否');
|
|
21860
|
+
dataIndex: 'price',
|
|
21861
|
+
title: "\u5546\u54C1\u9500\u552E\u4EF7",
|
|
21862
|
+
width: 150,
|
|
21863
|
+
render: function render(val) {
|
|
21864
|
+
return val || val === 0 ? Number(val).toFixed(2) : '';
|
|
20789
21865
|
}
|
|
20790
21866
|
}, {
|
|
20791
|
-
dataIndex: '
|
|
20792
|
-
title:
|
|
21867
|
+
dataIndex: 'payment',
|
|
21868
|
+
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
21869
|
+
width: 150,
|
|
20793
21870
|
render: function render(val, record, index) {
|
|
20794
|
-
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.
|
|
21871
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
20795
21872
|
style: {
|
|
20796
|
-
width:
|
|
21873
|
+
width: 130
|
|
20797
21874
|
},
|
|
20798
21875
|
value: val,
|
|
20799
|
-
|
|
20800
|
-
|
|
21876
|
+
min: 0,
|
|
21877
|
+
precision: 2,
|
|
21878
|
+
onChange: function onChange(num) {
|
|
21879
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'payment');
|
|
20801
21880
|
}
|
|
20802
|
-
}) :
|
|
21881
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
|
|
20803
21882
|
}
|
|
20804
|
-
}
|
|
20805
|
-
|
|
20806
|
-
|
|
20807
|
-
|
|
20808
|
-
title: "\u805A\u6C34\u6F6D\u552E\u540E\u5355\u53F7",
|
|
20809
|
-
width: 200,
|
|
20810
|
-
align: 'center',
|
|
20811
|
-
ellipsis: true,
|
|
21883
|
+
}, {
|
|
21884
|
+
dataIndex: 'type',
|
|
21885
|
+
title: "\u5546\u54C1\u7C7B\u578B",
|
|
21886
|
+
width: 150,
|
|
20812
21887
|
render: renderTextEllipsis
|
|
20813
21888
|
}, {
|
|
20814
|
-
dataIndex: '
|
|
20815
|
-
title: "\
|
|
20816
|
-
width:
|
|
20817
|
-
align: 'center',
|
|
20818
|
-
ellipsis: true,
|
|
21889
|
+
dataIndex: 'supplierName',
|
|
21890
|
+
title: "\u4F9B\u5E94\u5546\u540D\u79F0",
|
|
21891
|
+
width: 150,
|
|
20819
21892
|
render: renderTextEllipsis
|
|
20820
21893
|
}, {
|
|
20821
|
-
dataIndex: '
|
|
20822
|
-
title: "\
|
|
20823
|
-
width:
|
|
20824
|
-
align: 'center',
|
|
20825
|
-
ellipsis: true,
|
|
21894
|
+
dataIndex: 'supplierCode',
|
|
21895
|
+
title: "\u4F9B\u5E94\u5546\u7F16\u7801",
|
|
21896
|
+
width: 150,
|
|
20826
21897
|
render: renderTextEllipsis
|
|
20827
21898
|
}, {
|
|
20828
|
-
dataIndex: '
|
|
20829
|
-
title: "\u56FE\u7247",
|
|
21899
|
+
dataIndex: 'sysPicPath',
|
|
21900
|
+
title: "\u5546\u54C1\u56FE\u7247",
|
|
20830
21901
|
width: 100,
|
|
20831
|
-
align: 'center',
|
|
20832
21902
|
render: function render(val) {
|
|
20833
|
-
|
|
21903
|
+
var imgUrl = (val === null || val === void 0 ? void 0 : val.startsWith('http')) ? val : "https://erp.superboss.cc".concat(val);
|
|
21904
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Image, {
|
|
20834
21905
|
width: 30,
|
|
20835
|
-
src:
|
|
21906
|
+
src: imgUrl
|
|
20836
21907
|
});
|
|
20837
|
-
}
|
|
20838
|
-
|
|
20839
|
-
|
|
20840
|
-
|
|
20841
|
-
|
|
20842
|
-
|
|
20843
|
-
|
|
20844
|
-
|
|
20845
|
-
|
|
20846
|
-
|
|
20847
|
-
|
|
20848
|
-
|
|
20849
|
-
|
|
20850
|
-
|
|
20851
|
-
|
|
20852
|
-
|
|
20853
|
-
|
|
20854
|
-
|
|
20855
|
-
|
|
20856
|
-
|
|
20857
|
-
|
|
20858
|
-
|
|
20859
|
-
|
|
20860
|
-
|
|
20861
|
-
|
|
20862
|
-
|
|
20863
|
-
|
|
21908
|
+
}
|
|
21909
|
+
}].map(function (item) {
|
|
21910
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
21911
|
+
align: 'center',
|
|
21912
|
+
ellipsis: true
|
|
21913
|
+
});
|
|
21914
|
+
})
|
|
21915
|
+
};
|
|
21916
|
+
};
|
|
21917
|
+
|
|
21918
|
+
var isNumberOrNumberString$2 = function isNumberOrNumberString(value) {
|
|
21919
|
+
if (typeof value === 'number') return true;
|
|
21920
|
+
if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
|
|
21921
|
+
return false;
|
|
21922
|
+
};
|
|
21923
|
+
function toNum$4(value) {
|
|
21924
|
+
if (typeof value === 'string') {
|
|
21925
|
+
return value ? +value : void 0;
|
|
21926
|
+
}
|
|
21927
|
+
if (typeof value === 'number') {
|
|
21928
|
+
return value;
|
|
21929
|
+
}
|
|
21930
|
+
return void 0;
|
|
21931
|
+
}
|
|
21932
|
+
var getColumns$7 = function getColumns(_ref) {
|
|
21933
|
+
var _ref$text = _ref.text,
|
|
21934
|
+
disabled = _ref.disabled,
|
|
21935
|
+
updateHandle = _ref.updateHandle,
|
|
21936
|
+
updateDataHandle = _ref.updateDataHandle;
|
|
21937
|
+
return {
|
|
21938
|
+
//巨益商品信息
|
|
21939
|
+
JY_GOODS: [{
|
|
21940
|
+
dataIndex: 'productName',
|
|
21941
|
+
title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
|
|
20864
21942
|
align: 'center',
|
|
20865
21943
|
ellipsis: true,
|
|
20866
|
-
render: renderTextEllipsis
|
|
20867
|
-
}, {
|
|
20868
|
-
dataIndex: 'rQty',
|
|
20869
|
-
title: "\u5B9E\u6536\u9000\u8D27\u6570\u91CF",
|
|
20870
21944
|
width: 150,
|
|
20871
|
-
align: 'center',
|
|
20872
|
-
ellipsis: true,
|
|
20873
21945
|
render: renderTextEllipsis
|
|
20874
21946
|
}, {
|
|
20875
|
-
dataIndex: '
|
|
20876
|
-
title: "\
|
|
20877
|
-
width: 150,
|
|
21947
|
+
dataIndex: 'productCode',
|
|
21948
|
+
title: "\u7CFB\u7EDF\u5546\u54C1\u7F16\u7801",
|
|
20878
21949
|
align: 'center',
|
|
20879
21950
|
ellipsis: true,
|
|
20880
|
-
render: renderTextEllipsis
|
|
20881
|
-
}, {
|
|
20882
|
-
dataIndex: 'amount',
|
|
20883
|
-
title: "\u7533\u8BF7\u91D1\u989D",
|
|
20884
21951
|
width: 150,
|
|
20885
|
-
align: 'center',
|
|
20886
|
-
ellipsis: true,
|
|
20887
21952
|
render: renderTextEllipsis
|
|
20888
21953
|
}, {
|
|
20889
|
-
dataIndex: '
|
|
20890
|
-
title: "\
|
|
20891
|
-
width: 150,
|
|
21954
|
+
dataIndex: 'productId',
|
|
21955
|
+
title: "\u7CFB\u7EDF\u5546\u54C1ID",
|
|
20892
21956
|
align: 'center',
|
|
20893
21957
|
ellipsis: true,
|
|
20894
|
-
render: renderTextEllipsis
|
|
20895
|
-
}, {
|
|
20896
|
-
dataIndex: 'price',
|
|
20897
|
-
title: "\u5355\u4EF7",
|
|
20898
21958
|
width: 150,
|
|
20899
|
-
align: 'center',
|
|
20900
|
-
ellipsis: true,
|
|
20901
21959
|
render: renderTextEllipsis
|
|
20902
21960
|
}, {
|
|
20903
|
-
dataIndex: '
|
|
20904
|
-
title: "\
|
|
20905
|
-
width: 250,
|
|
21961
|
+
dataIndex: 'skuName',
|
|
21962
|
+
title: "\u7CFB\u7EDF\u89C4\u683C\u540D\u79F0",
|
|
20906
21963
|
align: 'center',
|
|
20907
21964
|
ellipsis: true,
|
|
21965
|
+
width: 150,
|
|
20908
21966
|
render: renderTextEllipsis
|
|
20909
21967
|
}, {
|
|
20910
|
-
dataIndex: '
|
|
20911
|
-
title: "\
|
|
20912
|
-
width: 200,
|
|
21968
|
+
dataIndex: 'skuCode',
|
|
21969
|
+
title: "\u7CFB\u7EDF\u89C4\u683C\u7F16\u7801",
|
|
20913
21970
|
align: 'center',
|
|
20914
21971
|
ellipsis: true,
|
|
21972
|
+
width: 150,
|
|
20915
21973
|
render: renderTextEllipsis
|
|
20916
21974
|
}, {
|
|
20917
|
-
dataIndex: '
|
|
20918
|
-
title: "\
|
|
20919
|
-
width: 200,
|
|
21975
|
+
dataIndex: 'specId',
|
|
21976
|
+
title: "\u89C4\u683CID",
|
|
20920
21977
|
align: 'center',
|
|
20921
21978
|
ellipsis: true,
|
|
21979
|
+
width: 150,
|
|
20922
21980
|
render: renderTextEllipsis
|
|
20923
21981
|
}, {
|
|
20924
|
-
dataIndex: '
|
|
20925
|
-
title: "\
|
|
21982
|
+
dataIndex: 'goodsClass',
|
|
21983
|
+
title: "\u8D27\u54C1\u7C7B\u522B",
|
|
20926
21984
|
width: 150,
|
|
20927
|
-
align: 'center',
|
|
20928
|
-
ellipsis: true,
|
|
20929
21985
|
render: renderTextEllipsis
|
|
20930
21986
|
}, {
|
|
20931
|
-
dataIndex: '
|
|
20932
|
-
title: "\
|
|
21987
|
+
dataIndex: 'code',
|
|
21988
|
+
title: "\u6761\u7801",
|
|
20933
21989
|
width: 150,
|
|
21990
|
+
render: renderTextEllipsis
|
|
21991
|
+
},
|
|
21992
|
+
// {
|
|
21993
|
+
// dataIndex: 'specName',
|
|
21994
|
+
// title: `规格名称`,
|
|
21995
|
+
// align: 'center',
|
|
21996
|
+
// ellipsis: true,
|
|
21997
|
+
// width: 200,
|
|
21998
|
+
// },
|
|
21999
|
+
// {
|
|
22000
|
+
// dataIndex: 'specCode',
|
|
22001
|
+
// title: `规格编号`,
|
|
22002
|
+
// align: 'center',
|
|
22003
|
+
// ellipsis: true,
|
|
22004
|
+
// width: 150,
|
|
22005
|
+
// },
|
|
22006
|
+
{
|
|
22007
|
+
dataIndex: 'mallProductName',
|
|
22008
|
+
title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
|
|
20934
22009
|
align: 'center',
|
|
20935
22010
|
ellipsis: true,
|
|
22011
|
+
width: 250,
|
|
20936
22012
|
render: renderTextEllipsis
|
|
20937
22013
|
}, {
|
|
20938
|
-
dataIndex: '
|
|
20939
|
-
title:
|
|
20940
|
-
width: 100,
|
|
20941
|
-
render: function render(val) {
|
|
20942
|
-
return /*#__PURE__*/React__default['default'].createElement("span", null, typeof val !== 'boolean' ? '' : val ? '是' : '否');
|
|
20943
|
-
},
|
|
20944
|
-
headerMapping: {
|
|
20945
|
-
transformValue: function transformValue(val) {
|
|
20946
|
-
return typeof val !== 'boolean' ? '' : val ? '是' : '否';
|
|
20947
|
-
},
|
|
20948
|
-
renderExport: function renderExport(val) {
|
|
20949
|
-
return typeof val !== 'boolean' ? '' : val ? '是' : '否';
|
|
20950
|
-
}
|
|
20951
|
-
}
|
|
20952
|
-
}, {
|
|
20953
|
-
dataIndex: 'receiveDate',
|
|
20954
|
-
title: "\u5165\u4ED3\u65F6\u95F4",
|
|
20955
|
-
width: 200,
|
|
22014
|
+
dataIndex: 'mallProductOutCode',
|
|
22015
|
+
title: "\u5E73\u53F0\u5546\u54C1\u7F16\u7801",
|
|
20956
22016
|
align: 'center',
|
|
20957
22017
|
ellipsis: true,
|
|
22018
|
+
width: 150,
|
|
20958
22019
|
render: renderTextEllipsis
|
|
20959
22020
|
}, {
|
|
20960
|
-
dataIndex: '
|
|
20961
|
-
title: "\
|
|
20962
|
-
width: 200,
|
|
22021
|
+
dataIndex: 'mallProductId',
|
|
22022
|
+
title: "\u5E73\u53F0\u5546\u54C1ID",
|
|
20963
22023
|
align: 'center',
|
|
20964
22024
|
ellipsis: true,
|
|
20965
|
-
render: renderTextEllipsis
|
|
20966
|
-
}]
|
|
20967
|
-
};
|
|
20968
|
-
};
|
|
20969
|
-
|
|
20970
|
-
function toNum$3(value) {
|
|
20971
|
-
if (typeof value === 'string') {
|
|
20972
|
-
return value ? +value : void 0;
|
|
20973
|
-
}
|
|
20974
|
-
if (typeof value === 'number') {
|
|
20975
|
-
return value;
|
|
20976
|
-
}
|
|
20977
|
-
return void 0;
|
|
20978
|
-
}
|
|
20979
|
-
var getColumns$6 = function getColumns(_ref) {
|
|
20980
|
-
var _ref$text = _ref.text,
|
|
20981
|
-
disabled = _ref.disabled,
|
|
20982
|
-
updateHandle = _ref.updateHandle;
|
|
20983
|
-
return {
|
|
20984
|
-
KM_GOODS: [{
|
|
20985
|
-
dataIndex: 'skuPropertiesName',
|
|
20986
|
-
title: "\u89C4\u683C\u540D\u79F0",
|
|
20987
22025
|
width: 250,
|
|
20988
22026
|
render: renderTextEllipsis
|
|
20989
22027
|
}, {
|
|
20990
|
-
dataIndex: '
|
|
20991
|
-
title: "\
|
|
20992
|
-
|
|
20993
|
-
|
|
20994
|
-
|
|
20995
|
-
dataIndex: 'title',
|
|
20996
|
-
title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
|
|
20997
|
-
width: 150,
|
|
20998
|
-
render: renderTextEllipsis
|
|
20999
|
-
}, {
|
|
21000
|
-
dataIndex: 'shortTitle',
|
|
21001
|
-
title: "\u5546\u54C1\u7B80\u79F0",
|
|
21002
|
-
width: 150,
|
|
21003
|
-
render: renderTextEllipsis
|
|
21004
|
-
}, {
|
|
21005
|
-
dataIndex: 'sysOuterId',
|
|
21006
|
-
title: "\u7CFB\u7EDF\u5546\u5BB6\u7F16\u7801",
|
|
21007
|
-
width: 150,
|
|
21008
|
-
render: renderTextEllipsis
|
|
21009
|
-
}, {
|
|
21010
|
-
dataIndex: 'skuSysId',
|
|
21011
|
-
title: "\u7CFB\u7EDF\u89C4\u683CID",
|
|
21012
|
-
width: 150,
|
|
21013
|
-
render: renderTextEllipsis
|
|
21014
|
-
}, {
|
|
21015
|
-
dataIndex: 'skuId',
|
|
21016
|
-
title: "\u5E73\u53F0\u89C4\u683C\u7F16\u53F7",
|
|
21017
|
-
width: 170,
|
|
22028
|
+
dataIndex: 'mallSkuName',
|
|
22029
|
+
title: "\u5E73\u53F0\u89C4\u683C\u540D\u79F0",
|
|
22030
|
+
align: 'center',
|
|
22031
|
+
ellipsis: true,
|
|
22032
|
+
width: 250,
|
|
21018
22033
|
render: renderTextEllipsis
|
|
21019
22034
|
}, {
|
|
21020
|
-
dataIndex: '
|
|
21021
|
-
title: "\
|
|
21022
|
-
|
|
22035
|
+
dataIndex: 'mallSkuId',
|
|
22036
|
+
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
22037
|
+
align: 'center',
|
|
22038
|
+
ellipsis: true,
|
|
22039
|
+
width: 250,
|
|
21023
22040
|
render: renderTextEllipsis
|
|
21024
22041
|
}, {
|
|
21025
|
-
dataIndex: '
|
|
21026
|
-
title: "\u5546\u54C1\u56FE\u7247",
|
|
21027
|
-
width: 100,
|
|
21028
|
-
render: function render(val) {
|
|
21029
|
-
return /*#__PURE__*/React__default['default'].createElement(antd.Image, {
|
|
21030
|
-
width: 30,
|
|
21031
|
-
src: val
|
|
21032
|
-
});
|
|
21033
|
-
}
|
|
21034
|
-
}, {
|
|
21035
|
-
dataIndex: 'num',
|
|
22042
|
+
dataIndex: 'sellCount',
|
|
21036
22043
|
title: "\u6570\u91CF",
|
|
21037
22044
|
width: 100,
|
|
21038
22045
|
render: function render(val, record, index) {
|
|
@@ -21044,13 +22051,16 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
21044
22051
|
min: 1,
|
|
21045
22052
|
precision: 0,
|
|
21046
22053
|
onChange: function onChange(num) {
|
|
21047
|
-
|
|
22054
|
+
updateDataHandle({
|
|
22055
|
+
sellCount: num,
|
|
22056
|
+
sellTotal: num && isNumberOrNumberString$2(record.sellPrice) ? num * record.sellPrice : null
|
|
22057
|
+
}, index);
|
|
21048
22058
|
}
|
|
21049
22059
|
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
21050
22060
|
}
|
|
21051
22061
|
}, {
|
|
21052
|
-
dataIndex: '
|
|
21053
|
-
title: "\
|
|
22062
|
+
dataIndex: 'sellPrice',
|
|
22063
|
+
title: "\u5355\u4EF7",
|
|
21054
22064
|
width: 150,
|
|
21055
22065
|
render: function render(val, record, index) {
|
|
21056
22066
|
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
@@ -21061,83 +22071,198 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
21061
22071
|
min: 0,
|
|
21062
22072
|
precision: 2,
|
|
21063
22073
|
onChange: function onChange(num) {
|
|
21064
|
-
|
|
22074
|
+
updateDataHandle({
|
|
22075
|
+
sellPrice: num,
|
|
22076
|
+
sellTotal: num && isNumberOrNumberString$2(record.sellCount) ? num * record.sellCount : null
|
|
22077
|
+
}, index);
|
|
21065
22078
|
}
|
|
21066
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val
|
|
22079
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
21067
22080
|
}
|
|
21068
22081
|
}, {
|
|
21069
|
-
dataIndex: '
|
|
21070
|
-
title: "\u5546\u54C1\
|
|
22082
|
+
dataIndex: 'mallSellingPrice',
|
|
22083
|
+
title: "\u5E73\u53F0\u5546\u54C1\u4EF7\u683C",
|
|
22084
|
+
width: 150
|
|
22085
|
+
}, {
|
|
22086
|
+
dataIndex: 'sellTotal',
|
|
22087
|
+
title: "\u91D1\u989D",
|
|
22088
|
+
width: 150
|
|
22089
|
+
}, {
|
|
22090
|
+
dataIndex: 'settlementPrice',
|
|
22091
|
+
title: "\u7ED3\u7B97\u4EF7",
|
|
22092
|
+
width: 150
|
|
22093
|
+
}, {
|
|
22094
|
+
dataIndex: 'divideOrderFee',
|
|
22095
|
+
title: "\u5206\u644A\u5B9E\u4ED8\u91D1\u989D",
|
|
22096
|
+
width: 150
|
|
22097
|
+
}, {
|
|
22098
|
+
dataIndex: 'bfit',
|
|
22099
|
+
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
21071
22100
|
width: 150,
|
|
21072
|
-
render: function render(val) {
|
|
21073
|
-
return
|
|
22101
|
+
render: function render(val, record, index) {
|
|
22102
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
22103
|
+
dropdownStyle: {
|
|
22104
|
+
zIndex: 2000
|
|
22105
|
+
},
|
|
22106
|
+
getPopupContainer: function getPopupContainer() {
|
|
22107
|
+
return document.body;
|
|
22108
|
+
},
|
|
22109
|
+
value: val,
|
|
22110
|
+
onChange: function onChange(value) {
|
|
22111
|
+
updateHandle(value, index, 'bfit');
|
|
22112
|
+
},
|
|
22113
|
+
options: [{
|
|
22114
|
+
label: '是',
|
|
22115
|
+
value: 'True'
|
|
22116
|
+
}, {
|
|
22117
|
+
label: '否',
|
|
22118
|
+
value: 'False'
|
|
22119
|
+
}]
|
|
22120
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val === 'True' ? '是' : '否');
|
|
21074
22121
|
}
|
|
21075
22122
|
}, {
|
|
21076
|
-
dataIndex: '
|
|
21077
|
-
title: "\u5546\u54C1\
|
|
22123
|
+
dataIndex: 'combinationName',
|
|
22124
|
+
title: "\u7EC4\u5408\u5546\u54C1\u540D\u79F0",
|
|
22125
|
+
width: 150,
|
|
22126
|
+
render: renderTextEllipsis
|
|
22127
|
+
}, {
|
|
22128
|
+
dataIndex: 'combinationCode',
|
|
22129
|
+
title: "\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
|
|
21078
22130
|
width: 150,
|
|
21079
22131
|
render: renderTextEllipsis
|
|
22132
|
+
}, {
|
|
22133
|
+
dataIndex: 'gift',
|
|
22134
|
+
title: "\u662F\u5426\u8D60\u54C1",
|
|
22135
|
+
width: 150,
|
|
22136
|
+
render: function render(val, record, index) {
|
|
22137
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
22138
|
+
dropdownStyle: {
|
|
22139
|
+
zIndex: 2000
|
|
22140
|
+
},
|
|
22141
|
+
getPopupContainer: function getPopupContainer() {
|
|
22142
|
+
return document.body;
|
|
22143
|
+
},
|
|
22144
|
+
value: val,
|
|
22145
|
+
onChange: function onChange(value) {
|
|
22146
|
+
updateHandle(value, index, 'gift');
|
|
22147
|
+
},
|
|
22148
|
+
options: [{
|
|
22149
|
+
label: '是',
|
|
22150
|
+
value: '1'
|
|
22151
|
+
}, {
|
|
22152
|
+
label: '否',
|
|
22153
|
+
value: '0'
|
|
22154
|
+
}]
|
|
22155
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val === '1' ? '是' : '否');
|
|
22156
|
+
}
|
|
21080
22157
|
}].map(function (item) {
|
|
21081
22158
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
21082
22159
|
align: 'center',
|
|
21083
22160
|
ellipsis: true
|
|
21084
22161
|
});
|
|
21085
22162
|
}),
|
|
21086
|
-
|
|
21087
|
-
|
|
21088
|
-
|
|
21089
|
-
|
|
22163
|
+
// 巨益补发商品信息
|
|
22164
|
+
JY_REISSUE_GOODS: [{
|
|
22165
|
+
dataIndex: 'productName',
|
|
22166
|
+
title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
|
|
22167
|
+
align: 'center',
|
|
22168
|
+
ellipsis: true,
|
|
22169
|
+
width: 150,
|
|
21090
22170
|
render: renderTextEllipsis
|
|
21091
22171
|
}, {
|
|
21092
|
-
dataIndex: '
|
|
21093
|
-
title: "\u7CFB\u7EDF\u5546\u54C1\
|
|
22172
|
+
dataIndex: 'productCode',
|
|
22173
|
+
title: "\u7CFB\u7EDF\u5546\u54C1\u7F16\u7801",
|
|
22174
|
+
align: 'center',
|
|
22175
|
+
ellipsis: true,
|
|
21094
22176
|
width: 150,
|
|
21095
22177
|
render: renderTextEllipsis
|
|
21096
22178
|
}, {
|
|
21097
|
-
dataIndex: '
|
|
21098
|
-
title: "\
|
|
22179
|
+
dataIndex: 'productId',
|
|
22180
|
+
title: "\u7CFB\u7EDF\u5546\u54C1ID",
|
|
22181
|
+
align: 'center',
|
|
22182
|
+
ellipsis: true,
|
|
21099
22183
|
width: 150,
|
|
21100
22184
|
render: renderTextEllipsis
|
|
21101
22185
|
}, {
|
|
21102
|
-
dataIndex: '
|
|
22186
|
+
dataIndex: 'skuName',
|
|
22187
|
+
title: "\u7CFB\u7EDF\u89C4\u683C\u540D\u79F0",
|
|
22188
|
+
align: 'center',
|
|
22189
|
+
ellipsis: true,
|
|
22190
|
+
width: 150,
|
|
22191
|
+
render: renderTextEllipsis
|
|
22192
|
+
}, {
|
|
22193
|
+
dataIndex: 'skuCode',
|
|
22194
|
+
title: "\u7CFB\u7EDF\u89C4\u683C\u7F16\u7801",
|
|
22195
|
+
align: 'center',
|
|
22196
|
+
ellipsis: true,
|
|
22197
|
+
width: 150,
|
|
22198
|
+
render: renderTextEllipsis
|
|
22199
|
+
}, {
|
|
22200
|
+
dataIndex: 'specId',
|
|
22201
|
+
title: "\u89C4\u683CID",
|
|
22202
|
+
align: 'center',
|
|
22203
|
+
ellipsis: true,
|
|
22204
|
+
width: 150,
|
|
22205
|
+
render: renderTextEllipsis
|
|
22206
|
+
}, {
|
|
22207
|
+
dataIndex: 'goodsClass',
|
|
22208
|
+
title: "\u8D27\u54C1\u7C7B\u522B",
|
|
22209
|
+
width: 150,
|
|
22210
|
+
render: renderTextEllipsis
|
|
22211
|
+
}, {
|
|
22212
|
+
dataIndex: 'code',
|
|
22213
|
+
title: "\u6761\u7801",
|
|
22214
|
+
width: 150,
|
|
22215
|
+
render: renderTextEllipsis
|
|
22216
|
+
}, {
|
|
22217
|
+
dataIndex: 'mallProductName',
|
|
21103
22218
|
title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
|
|
22219
|
+
align: 'center',
|
|
22220
|
+
ellipsis: true,
|
|
21104
22221
|
width: 150,
|
|
21105
22222
|
render: renderTextEllipsis
|
|
21106
22223
|
}, {
|
|
21107
|
-
dataIndex: '
|
|
21108
|
-
title: "\
|
|
22224
|
+
dataIndex: 'mallProductOutCode',
|
|
22225
|
+
title: "\u5E73\u53F0\u5546\u54C1\u7F16\u7801",
|
|
22226
|
+
align: 'center',
|
|
22227
|
+
ellipsis: true,
|
|
21109
22228
|
width: 150,
|
|
21110
22229
|
render: renderTextEllipsis
|
|
21111
22230
|
}, {
|
|
21112
|
-
dataIndex: '
|
|
21113
|
-
title: "\
|
|
22231
|
+
dataIndex: 'mallProductId',
|
|
22232
|
+
title: "\u5E73\u53F0\u5546\u54C1ID",
|
|
22233
|
+
align: 'center',
|
|
22234
|
+
ellipsis: true,
|
|
21114
22235
|
width: 150,
|
|
21115
22236
|
render: renderTextEllipsis
|
|
21116
22237
|
}, {
|
|
21117
|
-
dataIndex: '
|
|
21118
|
-
title: "\
|
|
22238
|
+
dataIndex: 'mallSkuName',
|
|
22239
|
+
title: "\u5E73\u53F0\u89C4\u683C\u540D\u79F0",
|
|
22240
|
+
align: 'center',
|
|
22241
|
+
ellipsis: true,
|
|
21119
22242
|
width: 150,
|
|
21120
22243
|
render: renderTextEllipsis
|
|
21121
22244
|
}, {
|
|
21122
|
-
dataIndex: '
|
|
21123
|
-
title: "\u5E73\u53F0\u89C4\
|
|
21124
|
-
|
|
22245
|
+
dataIndex: 'mallSkuId',
|
|
22246
|
+
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
22247
|
+
align: 'center',
|
|
22248
|
+
ellipsis: true,
|
|
22249
|
+
width: 150,
|
|
21125
22250
|
render: renderTextEllipsis
|
|
21126
22251
|
}, {
|
|
21127
|
-
dataIndex: '
|
|
21128
|
-
title: "\
|
|
22252
|
+
dataIndex: 'sellCount',
|
|
22253
|
+
title: "\u6570\u91CF",
|
|
21129
22254
|
width: 100,
|
|
21130
22255
|
validator: function validator(_rule, value) {
|
|
21131
|
-
var
|
|
21132
|
-
if (((value === null || value === void 0 ? void 0 : value.
|
|
21133
|
-
var
|
|
21134
|
-
var res = typeof
|
|
22256
|
+
var productName = '';
|
|
22257
|
+
if (((value === null || value === void 0 ? void 0 : value.jyReissueGoods) || []).some(function (goods) {
|
|
22258
|
+
var qty = toNum$4(goods === null || goods === void 0 ? void 0 : goods.sellCount);
|
|
22259
|
+
var res = typeof qty === 'number' ? qty < 1 : true;
|
|
21135
22260
|
if (res) {
|
|
21136
|
-
|
|
22261
|
+
productName = (goods === null || goods === void 0 ? void 0 : goods.productName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.productName, "]") : '';
|
|
21137
22262
|
}
|
|
21138
22263
|
return res;
|
|
21139
22264
|
})) {
|
|
21140
|
-
return Promise.reject("".concat(
|
|
22265
|
+
return Promise.reject("".concat(productName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
21141
22266
|
}
|
|
21142
22267
|
},
|
|
21143
22268
|
render: function render(val, record, index) {
|
|
@@ -21149,81 +22274,158 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
21149
22274
|
min: 1,
|
|
21150
22275
|
precision: 0,
|
|
21151
22276
|
onChange: function onChange(num) {
|
|
21152
|
-
|
|
22277
|
+
updateDataHandle({
|
|
22278
|
+
sellCount: num,
|
|
22279
|
+
sellTotal: num && isNumberOrNumberString$2(record.sellPrice) ? num * record.sellPrice : null
|
|
22280
|
+
}, index);
|
|
21153
22281
|
}
|
|
21154
22282
|
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
21155
22283
|
}
|
|
21156
22284
|
}, {
|
|
21157
|
-
dataIndex: '
|
|
21158
|
-
title: "\
|
|
21159
|
-
width:
|
|
22285
|
+
dataIndex: 'sellPrice',
|
|
22286
|
+
title: "\u5355\u4EF7",
|
|
22287
|
+
width: 150,
|
|
21160
22288
|
render: function render(val, record, index) {
|
|
21161
22289
|
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
21162
22290
|
style: {
|
|
21163
|
-
width:
|
|
22291
|
+
width: 130
|
|
22292
|
+
},
|
|
22293
|
+
value: val,
|
|
22294
|
+
min: 0,
|
|
22295
|
+
precision: 2,
|
|
22296
|
+
onChange: function onChange(num) {
|
|
22297
|
+
updateDataHandle({
|
|
22298
|
+
sellPrice: num,
|
|
22299
|
+
sellTotal: num && isNumberOrNumberString$2(record.sellCount) ? num * record.sellCount : null
|
|
22300
|
+
}, index);
|
|
22301
|
+
}
|
|
22302
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
22303
|
+
}
|
|
22304
|
+
}, {
|
|
22305
|
+
dataIndex: 'mallSellingPrice',
|
|
22306
|
+
title: "\u5E73\u53F0\u5546\u54C1\u4EF7\u683C",
|
|
22307
|
+
width: 150
|
|
22308
|
+
}, {
|
|
22309
|
+
dataIndex: 'sellTotal',
|
|
22310
|
+
title: "\u91D1\u989D",
|
|
22311
|
+
width: 150
|
|
22312
|
+
}, {
|
|
22313
|
+
dataIndex: 'bfit',
|
|
22314
|
+
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
22315
|
+
width: 150,
|
|
22316
|
+
render: function render(val, record, index) {
|
|
22317
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
22318
|
+
dropdownStyle: {
|
|
22319
|
+
zIndex: 2000
|
|
22320
|
+
},
|
|
22321
|
+
getPopupContainer: function getPopupContainer() {
|
|
22322
|
+
return document.body;
|
|
21164
22323
|
},
|
|
21165
22324
|
value: val,
|
|
21166
|
-
|
|
21167
|
-
|
|
21168
|
-
|
|
21169
|
-
|
|
21170
|
-
|
|
21171
|
-
|
|
22325
|
+
onChange: function onChange(value) {
|
|
22326
|
+
updateHandle(value, index, 'bfit');
|
|
22327
|
+
},
|
|
22328
|
+
options: [{
|
|
22329
|
+
label: '是',
|
|
22330
|
+
value: 'True'
|
|
22331
|
+
}, {
|
|
22332
|
+
label: '否',
|
|
22333
|
+
value: 'False'
|
|
22334
|
+
}]
|
|
22335
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val === 'True' ? '是' : '否');
|
|
21172
22336
|
}
|
|
21173
22337
|
}, {
|
|
21174
|
-
dataIndex: '
|
|
21175
|
-
title: "\u5546\u54C1\
|
|
22338
|
+
dataIndex: 'combinationName',
|
|
22339
|
+
title: "\u7EC4\u5408\u5546\u54C1\u540D\u79F0",
|
|
21176
22340
|
width: 150,
|
|
21177
|
-
render:
|
|
21178
|
-
return val || val === 0 ? Number(val).toFixed(2) : '';
|
|
21179
|
-
}
|
|
22341
|
+
render: renderTextEllipsis
|
|
21180
22342
|
}, {
|
|
21181
|
-
dataIndex: '
|
|
21182
|
-
title: "\
|
|
22343
|
+
dataIndex: 'combinationCode',
|
|
22344
|
+
title: "\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
|
|
22345
|
+
width: 150,
|
|
22346
|
+
render: renderTextEllipsis
|
|
22347
|
+
}, {
|
|
22348
|
+
dataIndex: 'gift',
|
|
22349
|
+
title: "\u662F\u5426\u8D60\u54C1",
|
|
21183
22350
|
width: 150,
|
|
21184
22351
|
render: function render(val, record, index) {
|
|
21185
|
-
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.
|
|
21186
|
-
|
|
21187
|
-
|
|
22352
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
22353
|
+
dropdownStyle: {
|
|
22354
|
+
zIndex: 2000
|
|
22355
|
+
},
|
|
22356
|
+
getPopupContainer: function getPopupContainer() {
|
|
22357
|
+
return document.body;
|
|
21188
22358
|
},
|
|
21189
22359
|
value: val,
|
|
21190
|
-
|
|
21191
|
-
|
|
21192
|
-
|
|
21193
|
-
|
|
21194
|
-
|
|
21195
|
-
|
|
22360
|
+
onChange: function onChange(value) {
|
|
22361
|
+
updateHandle(value, index, 'gift');
|
|
22362
|
+
},
|
|
22363
|
+
options: [{
|
|
22364
|
+
label: '是',
|
|
22365
|
+
value: '1'
|
|
22366
|
+
}, {
|
|
22367
|
+
label: '否',
|
|
22368
|
+
value: '0'
|
|
22369
|
+
}]
|
|
22370
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val === '1' ? '是' : '否');
|
|
21196
22371
|
}
|
|
22372
|
+
}].map(function (item) {
|
|
22373
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
22374
|
+
align: 'center',
|
|
22375
|
+
ellipsis: true
|
|
22376
|
+
});
|
|
22377
|
+
})
|
|
22378
|
+
};
|
|
22379
|
+
};
|
|
22380
|
+
|
|
22381
|
+
var getColumns$8 = function getColumns(_ref) {
|
|
22382
|
+
var _ref$text = _ref.text,
|
|
22383
|
+
disabled = _ref.disabled,
|
|
22384
|
+
updateHandle = _ref.updateHandle,
|
|
22385
|
+
updateDataHandle = _ref.updateDataHandle;
|
|
22386
|
+
return {
|
|
22387
|
+
//[SKX]商品信息(ON)
|
|
22388
|
+
SKX_GOODS: [{
|
|
22389
|
+
dataIndex: 'skuEcode',
|
|
22390
|
+
title: "[SKX]\u53D1\u8D27\u5355\u660E\u7EC6-skuEcode",
|
|
22391
|
+
width: 250
|
|
21197
22392
|
}, {
|
|
21198
|
-
dataIndex: '
|
|
21199
|
-
title: "\
|
|
21200
|
-
width:
|
|
21201
|
-
render: renderTextEllipsis
|
|
22393
|
+
dataIndex: 'subOrderId',
|
|
22394
|
+
title: "[SKX]\u53D1\u8D27\u5355-\u5B50\u8BA2\u5355\u53F7",
|
|
22395
|
+
width: 300
|
|
21202
22396
|
}, {
|
|
21203
|
-
dataIndex: '
|
|
21204
|
-
title: "\
|
|
21205
|
-
width:
|
|
21206
|
-
render: function render(val) {
|
|
21207
|
-
return /*#__PURE__*/React__default['default'].createElement(antd.Image, {
|
|
21208
|
-
width: 30,
|
|
21209
|
-
src: val
|
|
21210
|
-
});
|
|
21211
|
-
}
|
|
22397
|
+
dataIndex: 'onBillNo',
|
|
22398
|
+
title: "[SKX]ON\u51FA\u5E93\u901A\u77E5\u5355\u53F7",
|
|
22399
|
+
width: 200
|
|
21212
22400
|
}].map(function (item) {
|
|
21213
22401
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
21214
22402
|
align: 'center',
|
|
21215
22403
|
ellipsis: true
|
|
21216
22404
|
});
|
|
21217
|
-
})
|
|
22405
|
+
}),
|
|
22406
|
+
//[SKX]退货商品信息(TH)
|
|
22407
|
+
SKX_RETURN_GOODS: [{
|
|
22408
|
+
dataIndex: 'returnSkuEcode',
|
|
22409
|
+
title: "[SKX]\u9000\u8D27\u5355\u660E\u7EC6-returnSkuEcode",
|
|
22410
|
+
width: 300
|
|
22411
|
+
}, {
|
|
22412
|
+
dataIndex: 'returnSubOrderId',
|
|
22413
|
+
title: "[SKX]\u9000\u8D27\u5355-\u5B50\u8BA2\u5355\u53F7",
|
|
22414
|
+
width: 300
|
|
22415
|
+
}, {
|
|
22416
|
+
dataIndex: 'returnBillNo',
|
|
22417
|
+
title: "[SKX]TH\u9000\u6362\u8D27\u5355\u53F7",
|
|
22418
|
+
width: 200
|
|
22419
|
+
}]
|
|
21218
22420
|
};
|
|
21219
22421
|
};
|
|
21220
22422
|
|
|
21221
|
-
var isNumberOrNumberString$
|
|
22423
|
+
var isNumberOrNumberString$3 = function isNumberOrNumberString(value) {
|
|
21222
22424
|
if (typeof value === 'number') return true;
|
|
21223
22425
|
if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
|
|
21224
22426
|
return false;
|
|
21225
22427
|
};
|
|
21226
|
-
function toNum$
|
|
22428
|
+
function toNum$5(value) {
|
|
21227
22429
|
if (typeof value === 'string') {
|
|
21228
22430
|
return value ? +value : void 0;
|
|
21229
22431
|
}
|
|
@@ -21232,44 +22434,44 @@ function toNum$4(value) {
|
|
|
21232
22434
|
}
|
|
21233
22435
|
return void 0;
|
|
21234
22436
|
}
|
|
21235
|
-
var getColumns$
|
|
22437
|
+
var getColumns$9 = function getColumns(_ref) {
|
|
21236
22438
|
var _ref$text = _ref.text,
|
|
21237
22439
|
disabled = _ref.disabled,
|
|
21238
22440
|
updateHandle = _ref.updateHandle,
|
|
21239
22441
|
updateDataHandle = _ref.updateDataHandle;
|
|
21240
22442
|
return {
|
|
21241
22443
|
//巨益商品信息
|
|
21242
|
-
|
|
21243
|
-
dataIndex: '
|
|
21244
|
-
title: "\
|
|
22444
|
+
JKY_GOODS: [{
|
|
22445
|
+
dataIndex: 'goodsNo',
|
|
22446
|
+
title: "\u8D27\u54C1\u7F16\u53F7",
|
|
21245
22447
|
align: 'center',
|
|
21246
22448
|
ellipsis: true,
|
|
21247
22449
|
width: 150,
|
|
21248
22450
|
render: renderTextEllipsis
|
|
21249
22451
|
}, {
|
|
21250
|
-
dataIndex: '
|
|
21251
|
-
title: "\
|
|
22452
|
+
dataIndex: 'goodsName',
|
|
22453
|
+
title: "\u8D27\u54C1\u540D\u79F0",
|
|
21252
22454
|
align: 'center',
|
|
21253
22455
|
ellipsis: true,
|
|
21254
22456
|
width: 150,
|
|
21255
22457
|
render: renderTextEllipsis
|
|
21256
22458
|
}, {
|
|
21257
|
-
dataIndex: '
|
|
21258
|
-
title: "\
|
|
22459
|
+
dataIndex: 'goodsId',
|
|
22460
|
+
title: "\u8D27\u54C1ID",
|
|
21259
22461
|
align: 'center',
|
|
21260
22462
|
ellipsis: true,
|
|
21261
22463
|
width: 150,
|
|
21262
22464
|
render: renderTextEllipsis
|
|
21263
22465
|
}, {
|
|
21264
|
-
dataIndex: '
|
|
21265
|
-
title: "\
|
|
22466
|
+
dataIndex: 'barcode',
|
|
22467
|
+
title: "\u8D27\u54C1\u6761\u7801",
|
|
21266
22468
|
align: 'center',
|
|
21267
22469
|
ellipsis: true,
|
|
21268
22470
|
width: 150,
|
|
21269
22471
|
render: renderTextEllipsis
|
|
21270
22472
|
}, {
|
|
21271
|
-
dataIndex: '
|
|
21272
|
-
title: "\
|
|
22473
|
+
dataIndex: 'specName',
|
|
22474
|
+
title: "\u89C4\u683C\u540D\u79F0",
|
|
21273
22475
|
align: 'center',
|
|
21274
22476
|
ellipsis: true,
|
|
21275
22477
|
width: 150,
|
|
@@ -21281,82 +22483,18 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
21281
22483
|
ellipsis: true,
|
|
21282
22484
|
width: 150,
|
|
21283
22485
|
render: renderTextEllipsis
|
|
21284
|
-
},
|
|
21285
|
-
// {
|
|
21286
|
-
// dataIndex: 'goodsName',
|
|
21287
|
-
// title: `货品名称`,
|
|
21288
|
-
// width: 250,
|
|
21289
|
-
// },
|
|
21290
|
-
// {
|
|
21291
|
-
// dataIndex: 'goodsCode',
|
|
21292
|
-
// title: `货品编号`,
|
|
21293
|
-
// width: 200,
|
|
21294
|
-
// },
|
|
21295
|
-
// {
|
|
21296
|
-
// dataIndex: 'goodsId',
|
|
21297
|
-
// title: `货品ID`,
|
|
21298
|
-
// width: 150,
|
|
21299
|
-
// },
|
|
21300
|
-
{
|
|
21301
|
-
dataIndex: 'goodsClass',
|
|
21302
|
-
title: "\u8D27\u54C1\u7C7B\u522B",
|
|
21303
|
-
width: 150,
|
|
21304
|
-
render: renderTextEllipsis
|
|
21305
|
-
}, {
|
|
21306
|
-
dataIndex: 'code',
|
|
21307
|
-
title: "\u6761\u7801",
|
|
21308
|
-
width: 150,
|
|
21309
|
-
render: renderTextEllipsis
|
|
21310
|
-
},
|
|
21311
|
-
// {
|
|
21312
|
-
// dataIndex: 'specName',
|
|
21313
|
-
// title: `规格名称`,
|
|
21314
|
-
// align: 'center',
|
|
21315
|
-
// ellipsis: true,
|
|
21316
|
-
// width: 200,
|
|
21317
|
-
// },
|
|
21318
|
-
// {
|
|
21319
|
-
// dataIndex: 'specCode',
|
|
21320
|
-
// title: `规格编号`,
|
|
21321
|
-
// align: 'center',
|
|
21322
|
-
// ellipsis: true,
|
|
21323
|
-
// width: 150,
|
|
21324
|
-
// },
|
|
21325
|
-
{
|
|
21326
|
-
dataIndex: 'mallProductName',
|
|
21327
|
-
title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
|
|
21328
|
-
align: 'center',
|
|
21329
|
-
ellipsis: true,
|
|
21330
|
-
width: 250,
|
|
21331
|
-
render: renderTextEllipsis
|
|
21332
22486
|
}, {
|
|
21333
|
-
dataIndex: '
|
|
21334
|
-
title: "\
|
|
22487
|
+
dataIndex: 'skuImgUrl',
|
|
22488
|
+
title: "\u89C4\u683C\u56FE\u7247",
|
|
21335
22489
|
align: 'center',
|
|
21336
22490
|
ellipsis: true,
|
|
21337
22491
|
width: 150,
|
|
21338
|
-
render:
|
|
21339
|
-
|
|
21340
|
-
|
|
21341
|
-
|
|
21342
|
-
|
|
21343
|
-
|
|
21344
|
-
width: 250,
|
|
21345
|
-
render: renderTextEllipsis
|
|
21346
|
-
}, {
|
|
21347
|
-
dataIndex: 'mallSkuName',
|
|
21348
|
-
title: "\u5E73\u53F0\u89C4\u683C\u540D\u79F0",
|
|
21349
|
-
align: 'center',
|
|
21350
|
-
ellipsis: true,
|
|
21351
|
-
width: 250,
|
|
21352
|
-
render: renderTextEllipsis
|
|
21353
|
-
}, {
|
|
21354
|
-
dataIndex: 'mallSkuId',
|
|
21355
|
-
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
21356
|
-
align: 'center',
|
|
21357
|
-
ellipsis: true,
|
|
21358
|
-
width: 250,
|
|
21359
|
-
render: renderTextEllipsis
|
|
22492
|
+
render: function render(val) {
|
|
22493
|
+
return /*#__PURE__*/React__default['default'].createElement(ApaasImage, {
|
|
22494
|
+
width: 30,
|
|
22495
|
+
src: val
|
|
22496
|
+
});
|
|
22497
|
+
}
|
|
21360
22498
|
}, {
|
|
21361
22499
|
dataIndex: 'sellCount',
|
|
21362
22500
|
title: "\u6570\u91CF",
|
|
@@ -21372,11 +22510,16 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
21372
22510
|
onChange: function onChange(num) {
|
|
21373
22511
|
updateDataHandle({
|
|
21374
22512
|
sellCount: num,
|
|
21375
|
-
sellTotal: num && isNumberOrNumberString$
|
|
22513
|
+
sellTotal: num && isNumberOrNumberString$3(record.sellPrice) ? num * record.sellPrice : null
|
|
21376
22514
|
}, index);
|
|
21377
22515
|
}
|
|
21378
22516
|
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
21379
22517
|
}
|
|
22518
|
+
}, {
|
|
22519
|
+
dataIndex: 'actualSendCount',
|
|
22520
|
+
title: "\u5B9E\u53D1\u6570\u91CF",
|
|
22521
|
+
width: 150,
|
|
22522
|
+
render: renderTextEllipsis
|
|
21380
22523
|
}, {
|
|
21381
22524
|
dataIndex: 'sellPrice',
|
|
21382
22525
|
title: "\u5355\u4EF7",
|
|
@@ -21392,29 +22535,66 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
21392
22535
|
onChange: function onChange(num) {
|
|
21393
22536
|
updateDataHandle({
|
|
21394
22537
|
sellPrice: num,
|
|
21395
|
-
sellTotal: num && isNumberOrNumberString$
|
|
22538
|
+
sellTotal: num && isNumberOrNumberString$3(record.sellCount) ? num * record.sellCount : null
|
|
21396
22539
|
}, index);
|
|
21397
22540
|
}
|
|
21398
22541
|
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
21399
22542
|
}
|
|
21400
22543
|
}, {
|
|
21401
|
-
dataIndex: '
|
|
21402
|
-
title: "\
|
|
21403
|
-
width: 150
|
|
21404
|
-
}, {
|
|
21405
|
-
dataIndex: '
|
|
21406
|
-
title: "\u91D1\u989D",
|
|
21407
|
-
width: 150
|
|
21408
|
-
}, {
|
|
21409
|
-
dataIndex: '
|
|
21410
|
-
title: "\
|
|
21411
|
-
width: 150
|
|
21412
|
-
}, {
|
|
21413
|
-
dataIndex: '
|
|
21414
|
-
title: "\u5206\u644A\
|
|
21415
|
-
width: 150
|
|
21416
|
-
}, {
|
|
21417
|
-
dataIndex: '
|
|
22544
|
+
dataIndex: 'sellTotal',
|
|
22545
|
+
title: "\u91D1\u989D",
|
|
22546
|
+
width: 150
|
|
22547
|
+
}, {
|
|
22548
|
+
dataIndex: 'discountTotal',
|
|
22549
|
+
title: "\u62B5\u6263\u91D1\u989D",
|
|
22550
|
+
width: 150
|
|
22551
|
+
}, {
|
|
22552
|
+
dataIndex: 'shareFavourableFee',
|
|
22553
|
+
title: "\u5206\u644A\u91D1\u989D",
|
|
22554
|
+
width: 150
|
|
22555
|
+
}, {
|
|
22556
|
+
dataIndex: 'shareFavourableAfterFee',
|
|
22557
|
+
title: "\u5206\u644A\u540E\u91D1\u989D",
|
|
22558
|
+
width: 150
|
|
22559
|
+
}, {
|
|
22560
|
+
dataIndex: 'customerPrice',
|
|
22561
|
+
title: "\u7EC8\u7AEF\u9500\u552E\u5355\u4EF7",
|
|
22562
|
+
width: 150
|
|
22563
|
+
}, {
|
|
22564
|
+
dataIndex: 'customerTotal',
|
|
22565
|
+
title: "\u7EC8\u7AEF\u9500\u552E\u91D1\u989D",
|
|
22566
|
+
width: 150
|
|
22567
|
+
}, {
|
|
22568
|
+
dataIndex: 'divideSellTotal',
|
|
22569
|
+
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
22570
|
+
width: 150
|
|
22571
|
+
}, {
|
|
22572
|
+
dataIndex: 'isGift',
|
|
22573
|
+
title: "\u662F\u5426\u8D60\u54C1",
|
|
22574
|
+
width: 150,
|
|
22575
|
+
render: function render(val, record, index) {
|
|
22576
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
22577
|
+
dropdownStyle: {
|
|
22578
|
+
zIndex: 2000
|
|
22579
|
+
},
|
|
22580
|
+
getPopupContainer: function getPopupContainer() {
|
|
22581
|
+
return document.body;
|
|
22582
|
+
},
|
|
22583
|
+
value: val,
|
|
22584
|
+
onChange: function onChange(value) {
|
|
22585
|
+
updateHandle(value, index, 'isGift');
|
|
22586
|
+
},
|
|
22587
|
+
options: [{
|
|
22588
|
+
label: '是',
|
|
22589
|
+
value: '1'
|
|
22590
|
+
}, {
|
|
22591
|
+
label: '否',
|
|
22592
|
+
value: '0'
|
|
22593
|
+
}]
|
|
22594
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val === '1' ? '是' : '否');
|
|
22595
|
+
}
|
|
22596
|
+
}, {
|
|
22597
|
+
dataIndex: 'isFit',
|
|
21418
22598
|
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
21419
22599
|
width: 150,
|
|
21420
22600
|
render: function render(val, record, index) {
|
|
@@ -21427,30 +22607,20 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
21427
22607
|
},
|
|
21428
22608
|
value: val,
|
|
21429
22609
|
onChange: function onChange(value) {
|
|
21430
|
-
updateHandle(value, index, '
|
|
22610
|
+
updateHandle(value, index, 'isFit');
|
|
21431
22611
|
},
|
|
21432
22612
|
options: [{
|
|
21433
22613
|
label: '是',
|
|
21434
|
-
value: '
|
|
22614
|
+
value: '1'
|
|
21435
22615
|
}, {
|
|
21436
22616
|
label: '否',
|
|
21437
|
-
value: '
|
|
22617
|
+
value: '0'
|
|
21438
22618
|
}]
|
|
21439
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val === '
|
|
22619
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val === '1' ? '是' : '否');
|
|
21440
22620
|
}
|
|
21441
22621
|
}, {
|
|
21442
|
-
dataIndex: '
|
|
21443
|
-
title: "\
|
|
21444
|
-
width: 150,
|
|
21445
|
-
render: renderTextEllipsis
|
|
21446
|
-
}, {
|
|
21447
|
-
dataIndex: 'combinationCode',
|
|
21448
|
-
title: "\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
|
|
21449
|
-
width: 150,
|
|
21450
|
-
render: renderTextEllipsis
|
|
21451
|
-
}, {
|
|
21452
|
-
dataIndex: 'gift',
|
|
21453
|
-
title: "\u662F\u5426\u8D60\u54C1",
|
|
22622
|
+
dataIndex: 'isPresell',
|
|
22623
|
+
title: "\u662F\u5426\u9884\u552E\u8D27\u54C1",
|
|
21454
22624
|
width: 150,
|
|
21455
22625
|
render: function render(val, record, index) {
|
|
21456
22626
|
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
@@ -21462,7 +22632,7 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
21462
22632
|
},
|
|
21463
22633
|
value: val,
|
|
21464
22634
|
onChange: function onChange(value) {
|
|
21465
|
-
updateHandle(value, index, '
|
|
22635
|
+
updateHandle(value, index, 'isPresell');
|
|
21466
22636
|
},
|
|
21467
22637
|
options: [{
|
|
21468
22638
|
label: '是',
|
|
@@ -21473,115 +22643,169 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
21473
22643
|
}]
|
|
21474
22644
|
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val === '1' ? '是' : '否');
|
|
21475
22645
|
}
|
|
21476
|
-
}
|
|
21477
|
-
|
|
21478
|
-
|
|
21479
|
-
ellipsis: true
|
|
21480
|
-
});
|
|
21481
|
-
}),
|
|
21482
|
-
// 巨益补发商品信息
|
|
21483
|
-
JY_REISSUE_GOODS: [{
|
|
21484
|
-
dataIndex: 'productName',
|
|
21485
|
-
title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
|
|
22646
|
+
}, {
|
|
22647
|
+
dataIndex: 'brandName',
|
|
22648
|
+
title: "\u54C1\u724C",
|
|
21486
22649
|
align: 'center',
|
|
21487
22650
|
ellipsis: true,
|
|
21488
|
-
width:
|
|
22651
|
+
width: 200,
|
|
21489
22652
|
render: renderTextEllipsis
|
|
21490
22653
|
}, {
|
|
21491
|
-
dataIndex: '
|
|
21492
|
-
title: "\
|
|
22654
|
+
dataIndex: 'cateName',
|
|
22655
|
+
title: "\u8D27\u54C1\u7C7B\u522B",
|
|
21493
22656
|
align: 'center',
|
|
21494
22657
|
ellipsis: true,
|
|
21495
22658
|
width: 150,
|
|
21496
22659
|
render: renderTextEllipsis
|
|
21497
22660
|
}, {
|
|
21498
|
-
dataIndex: '
|
|
21499
|
-
title: "\
|
|
22661
|
+
dataIndex: 'goodsTags',
|
|
22662
|
+
title: "\u8D27\u54C1\u6807\u7B7E",
|
|
21500
22663
|
align: 'center',
|
|
21501
22664
|
ellipsis: true,
|
|
21502
|
-
width:
|
|
22665
|
+
width: 250,
|
|
21503
22666
|
render: renderTextEllipsis
|
|
21504
22667
|
}, {
|
|
21505
|
-
dataIndex: '
|
|
21506
|
-
title: "\
|
|
22668
|
+
dataIndex: 'goodsMemo',
|
|
22669
|
+
title: "\u8D27\u54C1\u5907\u6CE8",
|
|
21507
22670
|
align: 'center',
|
|
21508
22671
|
ellipsis: true,
|
|
21509
|
-
width:
|
|
22672
|
+
width: 250,
|
|
21510
22673
|
render: renderTextEllipsis
|
|
21511
22674
|
}, {
|
|
21512
|
-
dataIndex: '
|
|
21513
|
-
title: "\
|
|
22675
|
+
dataIndex: 'tradeGoodsNo',
|
|
22676
|
+
title: "\u4EA4\u6613\u8D27\u54C1\u7F16\u53F7",
|
|
21514
22677
|
align: 'center',
|
|
21515
22678
|
ellipsis: true,
|
|
21516
|
-
width:
|
|
22679
|
+
width: 250,
|
|
21517
22680
|
render: renderTextEllipsis
|
|
21518
22681
|
}, {
|
|
21519
|
-
dataIndex: '
|
|
21520
|
-
title: "\
|
|
21521
|
-
align: 'center',
|
|
22682
|
+
dataIndex: 'tradeGoodsName',
|
|
22683
|
+
title: "\u4EA4\u6613\u8D27\u54C1\u540D\u79F0",
|
|
21522
22684
|
ellipsis: true,
|
|
21523
|
-
width:
|
|
22685
|
+
width: 250,
|
|
21524
22686
|
render: renderTextEllipsis
|
|
21525
22687
|
}, {
|
|
21526
|
-
dataIndex: '
|
|
21527
|
-
title: "\
|
|
21528
|
-
|
|
22688
|
+
dataIndex: 'tradeGoodsSpec',
|
|
22689
|
+
title: "\u4EA4\u6613\u89C4\u683C\u540D\u79F0",
|
|
22690
|
+
ellipsis: true,
|
|
22691
|
+
width: 250,
|
|
21529
22692
|
render: renderTextEllipsis
|
|
21530
22693
|
}, {
|
|
21531
|
-
dataIndex: '
|
|
21532
|
-
title: "\
|
|
22694
|
+
dataIndex: 'sourceSubtradeNo',
|
|
22695
|
+
title: "\u7F51\u5E97\u5B50\u8BA2\u5355\u53F7",
|
|
22696
|
+
ellipsis: true,
|
|
22697
|
+
width: 250,
|
|
22698
|
+
render: renderTextEllipsis
|
|
22699
|
+
}, {
|
|
22700
|
+
dataIndex: 'platGoodsId',
|
|
22701
|
+
title: "\u5E73\u53F0\u5546\u54C1ID",
|
|
22702
|
+
ellipsis: true,
|
|
22703
|
+
width: 250,
|
|
22704
|
+
render: renderTextEllipsis
|
|
22705
|
+
}, {
|
|
22706
|
+
dataIndex: 'subTradeId',
|
|
22707
|
+
title: "\u5546\u54C1\u660E\u7EC6ID",
|
|
22708
|
+
ellipsis: true,
|
|
22709
|
+
width: 250,
|
|
22710
|
+
render: renderTextEllipsis
|
|
22711
|
+
}, {
|
|
22712
|
+
dataIndex: 'batchNo',
|
|
22713
|
+
title: "\u6279\u6B21\u53F7",
|
|
22714
|
+
ellipsis: true,
|
|
22715
|
+
width: 250,
|
|
22716
|
+
render: renderTextEllipsis
|
|
22717
|
+
}, {
|
|
22718
|
+
dataIndex: 'sendCount',
|
|
22719
|
+
title: "\u6279\u6B21\u6570\u91CF",
|
|
22720
|
+
ellipsis: true,
|
|
22721
|
+
width: 250,
|
|
22722
|
+
render: renderTextEllipsis
|
|
22723
|
+
}, {
|
|
22724
|
+
dataIndex: 'productDate',
|
|
22725
|
+
title: "\u751F\u4EA7\u65E5\u671F",
|
|
22726
|
+
ellipsis: true,
|
|
22727
|
+
width: 250,
|
|
22728
|
+
render: renderTextEllipsis
|
|
22729
|
+
}, {
|
|
22730
|
+
dataIndex: 'expireDate',
|
|
22731
|
+
title: "\u5230\u671F\u65E5\u671F",
|
|
22732
|
+
ellipsis: true,
|
|
22733
|
+
width: 250,
|
|
22734
|
+
render: renderTextEllipsis
|
|
22735
|
+
}].map(function (item) {
|
|
22736
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
22737
|
+
align: 'center',
|
|
22738
|
+
ellipsis: true
|
|
22739
|
+
});
|
|
22740
|
+
}),
|
|
22741
|
+
// 巨益补发商品信息
|
|
22742
|
+
JKY_REISSUE_GOODS: [{
|
|
22743
|
+
dataIndex: 'goodsNo',
|
|
22744
|
+
title: "\u8D27\u54C1\u7F16\u53F7",
|
|
22745
|
+
align: 'center',
|
|
22746
|
+
ellipsis: true,
|
|
21533
22747
|
width: 150,
|
|
21534
22748
|
render: renderTextEllipsis
|
|
21535
22749
|
}, {
|
|
21536
|
-
dataIndex: '
|
|
21537
|
-
title: "\
|
|
22750
|
+
dataIndex: 'goodsName',
|
|
22751
|
+
title: "\u8D27\u54C1\u540D\u79F0",
|
|
21538
22752
|
align: 'center',
|
|
21539
22753
|
ellipsis: true,
|
|
21540
22754
|
width: 150,
|
|
21541
22755
|
render: renderTextEllipsis
|
|
21542
22756
|
}, {
|
|
21543
|
-
dataIndex: '
|
|
21544
|
-
title: "\
|
|
22757
|
+
dataIndex: 'goodsId',
|
|
22758
|
+
title: "\u8D27\u54C1ID",
|
|
21545
22759
|
align: 'center',
|
|
21546
22760
|
ellipsis: true,
|
|
21547
22761
|
width: 150,
|
|
21548
22762
|
render: renderTextEllipsis
|
|
21549
22763
|
}, {
|
|
21550
|
-
dataIndex: '
|
|
21551
|
-
title: "\
|
|
22764
|
+
dataIndex: 'barcode',
|
|
22765
|
+
title: "\u8D27\u54C1\u6761\u7801",
|
|
21552
22766
|
align: 'center',
|
|
21553
22767
|
ellipsis: true,
|
|
21554
22768
|
width: 150,
|
|
21555
22769
|
render: renderTextEllipsis
|
|
21556
22770
|
}, {
|
|
21557
|
-
dataIndex: '
|
|
21558
|
-
title: "\
|
|
22771
|
+
dataIndex: 'specName',
|
|
22772
|
+
title: "\u89C4\u683C\u540D\u79F0",
|
|
21559
22773
|
align: 'center',
|
|
21560
22774
|
ellipsis: true,
|
|
21561
22775
|
width: 150,
|
|
21562
22776
|
render: renderTextEllipsis
|
|
21563
22777
|
}, {
|
|
21564
|
-
dataIndex: '
|
|
21565
|
-
title: "\
|
|
22778
|
+
dataIndex: 'specId',
|
|
22779
|
+
title: "\u89C4\u683CID",
|
|
21566
22780
|
align: 'center',
|
|
21567
22781
|
ellipsis: true,
|
|
21568
22782
|
width: 150,
|
|
21569
22783
|
render: renderTextEllipsis
|
|
22784
|
+
}, {
|
|
22785
|
+
dataIndex: 'skuImgUrl',
|
|
22786
|
+
title: "\u89C4\u683C\u56FE\u7247",
|
|
22787
|
+
width: 150,
|
|
22788
|
+
render: function render(val) {
|
|
22789
|
+
return /*#__PURE__*/React__default['default'].createElement(ApaasImage, {
|
|
22790
|
+
width: 30,
|
|
22791
|
+
src: val
|
|
22792
|
+
});
|
|
22793
|
+
}
|
|
21570
22794
|
}, {
|
|
21571
22795
|
dataIndex: 'sellCount',
|
|
21572
|
-
title: "\u6570\u91CF",
|
|
22796
|
+
title: "\u53D1\u8D27\u6570\u91CF",
|
|
21573
22797
|
width: 100,
|
|
21574
22798
|
validator: function validator(_rule, value) {
|
|
21575
|
-
var
|
|
21576
|
-
if (((value === null || value === void 0 ? void 0 : value.
|
|
21577
|
-
var qty = toNum$
|
|
22799
|
+
var goodsName = '';
|
|
22800
|
+
if (((value === null || value === void 0 ? void 0 : value.jkyReissueGoods) || []).some(function (goods) {
|
|
22801
|
+
var qty = toNum$5(goods === null || goods === void 0 ? void 0 : goods.sellCount);
|
|
21578
22802
|
var res = typeof qty === 'number' ? qty < 1 : true;
|
|
21579
22803
|
if (res) {
|
|
21580
|
-
|
|
22804
|
+
goodsName = (goods === null || goods === void 0 ? void 0 : goods.goodsName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodsName, "]") : '';
|
|
21581
22805
|
}
|
|
21582
22806
|
return res;
|
|
21583
22807
|
})) {
|
|
21584
|
-
return Promise.reject("".concat(
|
|
22808
|
+
return Promise.reject("".concat(goodsName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
21585
22809
|
}
|
|
21586
22810
|
},
|
|
21587
22811
|
render: function render(val, record, index) {
|
|
@@ -21595,7 +22819,7 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
21595
22819
|
onChange: function onChange(num) {
|
|
21596
22820
|
updateDataHandle({
|
|
21597
22821
|
sellCount: num,
|
|
21598
|
-
sellTotal: num && isNumberOrNumberString$
|
|
22822
|
+
sellTotal: num && isNumberOrNumberString$3(record.sellPrice) ? num * record.sellPrice : null
|
|
21599
22823
|
}, index);
|
|
21600
22824
|
}
|
|
21601
22825
|
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
@@ -21615,119 +22839,87 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
21615
22839
|
onChange: function onChange(num) {
|
|
21616
22840
|
updateDataHandle({
|
|
21617
22841
|
sellPrice: num,
|
|
21618
|
-
sellTotal: num && isNumberOrNumberString$
|
|
22842
|
+
sellTotal: num && isNumberOrNumberString$3(record.sellCount) ? num * record.sellCount : null
|
|
21619
22843
|
}, index);
|
|
21620
22844
|
}
|
|
21621
22845
|
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
21622
22846
|
}
|
|
21623
|
-
}, {
|
|
21624
|
-
dataIndex: 'mallSellingPrice',
|
|
21625
|
-
title: "\u5E73\u53F0\u5546\u54C1\u4EF7\u683C",
|
|
21626
|
-
width: 150
|
|
21627
22847
|
}, {
|
|
21628
22848
|
dataIndex: 'sellTotal',
|
|
21629
|
-
title: "\u91D1\u989D",
|
|
21630
|
-
width: 150
|
|
22849
|
+
title: "\u603B\u91D1\u989D",
|
|
22850
|
+
width: 150,
|
|
22851
|
+
render: function render(val, record, index) {
|
|
22852
|
+
return record.sellCount * record.sellPrice;
|
|
22853
|
+
}
|
|
21631
22854
|
}, {
|
|
21632
|
-
dataIndex: '
|
|
21633
|
-
title: "\
|
|
22855
|
+
dataIndex: 'reason',
|
|
22856
|
+
title: "\u9000\u6362\u539F\u56E0",
|
|
22857
|
+
width: 250,
|
|
22858
|
+
render: function render(val, record, index) {
|
|
22859
|
+
return /*#__PURE__*/React__default['default'].createElement(ApaasInput, {
|
|
22860
|
+
onChange: function onChange(value) {
|
|
22861
|
+
updateHandle(value, index, 'reason');
|
|
22862
|
+
}
|
|
22863
|
+
});
|
|
22864
|
+
}
|
|
22865
|
+
}, {
|
|
22866
|
+
dataIndex: 'isGift',
|
|
22867
|
+
title: "\u662F\u5426\u8D60\u54C1",
|
|
21634
22868
|
width: 150,
|
|
21635
22869
|
render: function render(val, record, index) {
|
|
21636
22870
|
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
21637
22871
|
value: val,
|
|
21638
22872
|
onChange: function onChange(value) {
|
|
21639
|
-
updateHandle(value, index, '
|
|
22873
|
+
updateHandle(value, index, 'isGift');
|
|
21640
22874
|
},
|
|
21641
22875
|
options: [{
|
|
21642
22876
|
label: '是',
|
|
21643
|
-
value: '
|
|
22877
|
+
value: '1'
|
|
21644
22878
|
}, {
|
|
21645
22879
|
label: '否',
|
|
21646
|
-
value: '
|
|
22880
|
+
value: '0'
|
|
21647
22881
|
}]
|
|
21648
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val === '
|
|
22882
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val === '1' ? '是' : '否');
|
|
21649
22883
|
}
|
|
21650
22884
|
}, {
|
|
21651
|
-
dataIndex: '
|
|
21652
|
-
title: "\u7EC4\u5408\
|
|
21653
|
-
width: 150,
|
|
21654
|
-
render: renderTextEllipsis
|
|
21655
|
-
}, {
|
|
21656
|
-
dataIndex: 'combinationCode',
|
|
21657
|
-
title: "\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
|
|
21658
|
-
width: 150,
|
|
21659
|
-
render: renderTextEllipsis
|
|
21660
|
-
}, {
|
|
21661
|
-
dataIndex: 'gift',
|
|
21662
|
-
title: "\u662F\u5426\u8D60\u54C1",
|
|
22885
|
+
dataIndex: 'isFit',
|
|
22886
|
+
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
21663
22887
|
width: 150,
|
|
21664
22888
|
render: function render(val, record, index) {
|
|
21665
22889
|
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
21666
22890
|
value: val,
|
|
21667
22891
|
onChange: function onChange(value) {
|
|
21668
|
-
updateHandle(value, index, '
|
|
22892
|
+
updateHandle(value, index, 'isFit');
|
|
21669
22893
|
},
|
|
21670
22894
|
options: [{
|
|
21671
22895
|
label: '是',
|
|
21672
|
-
value: '
|
|
22896
|
+
value: 'True'
|
|
21673
22897
|
}, {
|
|
21674
22898
|
label: '否',
|
|
21675
|
-
value: '
|
|
22899
|
+
value: 'False'
|
|
21676
22900
|
}]
|
|
21677
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val === '
|
|
22901
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val === 'True' ? '是' : '否');
|
|
21678
22902
|
}
|
|
21679
|
-
}].map(function (item) {
|
|
21680
|
-
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
21681
|
-
align: 'center',
|
|
21682
|
-
ellipsis: true
|
|
21683
|
-
});
|
|
21684
|
-
})
|
|
21685
|
-
};
|
|
21686
|
-
};
|
|
21687
|
-
|
|
21688
|
-
var getColumns$8 = function getColumns(_ref) {
|
|
21689
|
-
var _ref$text = _ref.text,
|
|
21690
|
-
disabled = _ref.disabled,
|
|
21691
|
-
updateHandle = _ref.updateHandle,
|
|
21692
|
-
updateDataHandle = _ref.updateDataHandle;
|
|
21693
|
-
return {
|
|
21694
|
-
//[SKX]商品信息(ON)
|
|
21695
|
-
SKX_GOODS: [{
|
|
21696
|
-
dataIndex: 'skuEcode',
|
|
21697
|
-
title: "[SKX]\u53D1\u8D27\u5355\u660E\u7EC6-skuEcode",
|
|
21698
|
-
width: 250
|
|
21699
22903
|
}, {
|
|
21700
|
-
dataIndex: '
|
|
21701
|
-
title: "
|
|
21702
|
-
width:
|
|
21703
|
-
|
|
21704
|
-
dataIndex: 'onBillNo',
|
|
21705
|
-
title: "[SKX]ON\u51FA\u5E93\u901A\u77E5\u5355\u53F7",
|
|
21706
|
-
width: 200
|
|
21707
|
-
}].map(function (item) {
|
|
21708
|
-
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
21709
|
-
align: 'center',
|
|
21710
|
-
ellipsis: true
|
|
21711
|
-
});
|
|
21712
|
-
}),
|
|
21713
|
-
//[SKX]退货商品信息(TH)
|
|
21714
|
-
SKX_RETURN_GOODS: [{
|
|
21715
|
-
dataIndex: 'returnSkuEcode',
|
|
21716
|
-
title: "[SKX]\u9000\u8D27\u5355\u660E\u7EC6-returnSkuEcode",
|
|
21717
|
-
width: 300
|
|
21718
|
-
}, {
|
|
21719
|
-
dataIndex: 'returnSubOrderId',
|
|
21720
|
-
title: "[SKX]\u9000\u8D27\u5355-\u5B50\u8BA2\u5355\u53F7",
|
|
21721
|
-
width: 300
|
|
22904
|
+
dataIndex: 'brandName',
|
|
22905
|
+
title: "\u54C1\u724C",
|
|
22906
|
+
width: 150,
|
|
22907
|
+
render: renderTextEllipsis
|
|
21722
22908
|
}, {
|
|
21723
|
-
dataIndex: '
|
|
21724
|
-
title: "
|
|
21725
|
-
width:
|
|
21726
|
-
|
|
22909
|
+
dataIndex: 'cateName',
|
|
22910
|
+
title: "\u8D27\u54C1\u7C7B\u522B",
|
|
22911
|
+
width: 150,
|
|
22912
|
+
render: renderTextEllipsis
|
|
22913
|
+
}].map(function (item) {
|
|
22914
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
22915
|
+
align: 'center',
|
|
22916
|
+
ellipsis: true
|
|
22917
|
+
});
|
|
22918
|
+
})
|
|
21727
22919
|
};
|
|
21728
22920
|
};
|
|
21729
22921
|
|
|
21730
|
-
var getColumns$
|
|
22922
|
+
var getColumns$a = function getColumns(_ref) {
|
|
21731
22923
|
var _ref$text = _ref.text,
|
|
21732
22924
|
text = _ref$text === void 0 ? '' : _ref$text,
|
|
21733
22925
|
disabled = _ref.disabled,
|
|
@@ -21844,7 +23036,7 @@ var getColumnsMap$1 = function getColumnsMap(args) {
|
|
|
21844
23036
|
disabled = _ref.disabled,
|
|
21845
23037
|
updateHandle = _ref.updateHandle,
|
|
21846
23038
|
updateDataHandle = _ref.updateDataHandle;
|
|
21847
|
-
return _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, getColumns$1({
|
|
23039
|
+
return _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, getColumns$1({
|
|
21848
23040
|
text: text,
|
|
21849
23041
|
disabled: disabled,
|
|
21850
23042
|
updateHandle: updateHandle
|
|
@@ -21882,8 +23074,13 @@ var getColumnsMap$1 = function getColumnsMap(args) {
|
|
|
21882
23074
|
text: text,
|
|
21883
23075
|
disabled: disabled,
|
|
21884
23076
|
updateHandle: updateHandle
|
|
23077
|
+
})), getColumns$9({
|
|
23078
|
+
text: text,
|
|
23079
|
+
disabled: disabled,
|
|
23080
|
+
updateHandle: updateHandle,
|
|
23081
|
+
updateDataHandle: updateDataHandle
|
|
21885
23082
|
})), {}, {
|
|
21886
|
-
default: getColumns$
|
|
23083
|
+
default: getColumns$a({
|
|
21887
23084
|
text: text,
|
|
21888
23085
|
disabled: disabled,
|
|
21889
23086
|
updateHandle: updateHandle
|
|
@@ -22030,6 +23227,9 @@ var isErpType = {
|
|
|
22030
23227
|
},
|
|
22031
23228
|
isJy: function isJy(type) {
|
|
22032
23229
|
return ['JY_GOODS', 'JY_REISSUE_GOODS'].includes(type);
|
|
23230
|
+
},
|
|
23231
|
+
isJky: function isJky(type) {
|
|
23232
|
+
return ['JKY_GOODS', 'JKY_REISSUE_GOODS'].includes(type);
|
|
22033
23233
|
}
|
|
22034
23234
|
};
|
|
22035
23235
|
var processGoods$1 = function processGoods(_ref) {
|
|
@@ -22316,6 +23516,8 @@ var GoodsModalMap = {
|
|
|
22316
23516
|
KM_REISSUE_GOODS: KmGoodsModal,
|
|
22317
23517
|
JY_GOODS: JyGoodsModal$1,
|
|
22318
23518
|
JY_REISSUE_GOODS: JyGoodsModal$1,
|
|
23519
|
+
JKY_GOODS: JkyGoodsModal$1,
|
|
23520
|
+
JKY_REISSUE_GOODS: JkyGoodsModal$1,
|
|
22319
23521
|
OTHER_GOODS: GoodsModal$2
|
|
22320
23522
|
};
|
|
22321
23523
|
var systemOrderNoMap = {
|
|
@@ -22328,6 +23530,8 @@ var systemOrderNoMap = {
|
|
|
22328
23530
|
WLN_GOODS: 'tradeNo',
|
|
22329
23531
|
JY_GOODS: 'tradeNo',
|
|
22330
23532
|
JY_REISSUE_GOODS: 'tradeNo',
|
|
23533
|
+
JKY_GOODS: 'tradeNo',
|
|
23534
|
+
JKY_REISSUE_GOODS: 'tradeNo',
|
|
22331
23535
|
KM_REISSUE_GOODS: 'sid',
|
|
22332
23536
|
JST_REISSUE_GOODS: 'oId',
|
|
22333
23537
|
GY_REISSUE_GOODS: 'code',
|
|
@@ -22363,23 +23567,81 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
22363
23567
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
22364
23568
|
tradeGoodsVisible = _useState4[0],
|
|
22365
23569
|
setTradeGoodsVisible = _useState4[1];
|
|
22366
|
-
var
|
|
22367
|
-
|
|
22368
|
-
|
|
22369
|
-
|
|
22370
|
-
|
|
22371
|
-
|
|
22372
|
-
|
|
22373
|
-
|
|
22374
|
-
|
|
22375
|
-
|
|
22376
|
-
|
|
22377
|
-
|
|
22378
|
-
|
|
22379
|
-
|
|
22380
|
-
|
|
22381
|
-
|
|
22382
|
-
|
|
23570
|
+
var getKmSupplier = /*#__PURE__*/function () {
|
|
23571
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(dataSource) {
|
|
23572
|
+
var _dataSource$filter;
|
|
23573
|
+
var systemItemIds, supplierMap;
|
|
23574
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
23575
|
+
while (1) switch (_context.prev = _context.next) {
|
|
23576
|
+
case 0:
|
|
23577
|
+
systemItemIds = dataSource === null || dataSource === void 0 ? void 0 : dataSource.filter(function (item) {
|
|
23578
|
+
return item === null || item === void 0 ? void 0 : item.sysItemId;
|
|
23579
|
+
}).map(function (item) {
|
|
23580
|
+
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);
|
|
23581
|
+
});
|
|
23582
|
+
_context.next = 3;
|
|
23583
|
+
return kmkfUtils.servers.KM.getSupplierSingleton(systemItemIds);
|
|
23584
|
+
case 3:
|
|
23585
|
+
supplierMap = _context.sent;
|
|
23586
|
+
dataSource === null || dataSource === void 0 ? void 0 : (_dataSource$filter = dataSource.filter(function (item) {
|
|
23587
|
+
return item === null || item === void 0 ? void 0 : item.sysItemId;
|
|
23588
|
+
})) === null || _dataSource$filter === void 0 ? void 0 : _dataSource$filter.forEach(function (item) {
|
|
23589
|
+
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);
|
|
23590
|
+
var supplierInfo = supplierMap.get(key);
|
|
23591
|
+
item.supplierCode = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierCode;
|
|
23592
|
+
item.supplierName = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierName;
|
|
23593
|
+
});
|
|
23594
|
+
case 5:
|
|
23595
|
+
case "end":
|
|
23596
|
+
return _context.stop();
|
|
23597
|
+
}
|
|
23598
|
+
}, _callee);
|
|
23599
|
+
}));
|
|
23600
|
+
return function getKmSupplier(_x) {
|
|
23601
|
+
return _ref2.apply(this, arguments);
|
|
23602
|
+
};
|
|
23603
|
+
}();
|
|
23604
|
+
var openModal = /*#__PURE__*/function () {
|
|
23605
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
23606
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
23607
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
23608
|
+
case 0:
|
|
23609
|
+
if (!validSystemOrder) {
|
|
23610
|
+
_context2.next = 3;
|
|
23611
|
+
break;
|
|
23612
|
+
}
|
|
23613
|
+
antd.message.warning('请选择补发系统单');
|
|
23614
|
+
return _context2.abrupt("return");
|
|
23615
|
+
case 3:
|
|
23616
|
+
if (!(getDataSourceAsync && !(dataSource === null || dataSource === void 0 ? void 0 : dataSource.length))) {
|
|
23617
|
+
_context2.next = 6;
|
|
23618
|
+
break;
|
|
23619
|
+
}
|
|
23620
|
+
_context2.next = 6;
|
|
23621
|
+
return getDataSourceAsync();
|
|
23622
|
+
case 6:
|
|
23623
|
+
if (!['KM_GOODS', 'KM_REISSUE_GOODS'].includes(type)) {
|
|
23624
|
+
_context2.next = 9;
|
|
23625
|
+
break;
|
|
23626
|
+
}
|
|
23627
|
+
_context2.next = 9;
|
|
23628
|
+
return getKmSupplier(dataSource);
|
|
23629
|
+
case 9:
|
|
23630
|
+
setTradeGoodsVisible(true);
|
|
23631
|
+
// 补发直接传入的是systemNo
|
|
23632
|
+
if (isShowSelect && isReissueType) {
|
|
23633
|
+
setSelectSystemNo(selectedSystemOrders || []);
|
|
23634
|
+
}
|
|
23635
|
+
case 11:
|
|
23636
|
+
case "end":
|
|
23637
|
+
return _context2.stop();
|
|
23638
|
+
}
|
|
23639
|
+
}, _callee2);
|
|
23640
|
+
}));
|
|
23641
|
+
return function openModal() {
|
|
23642
|
+
return _ref3.apply(this, arguments);
|
|
23643
|
+
};
|
|
23644
|
+
}();
|
|
22383
23645
|
var closeModal = function closeModal() {
|
|
22384
23646
|
return setTradeGoodsVisible(false);
|
|
22385
23647
|
};
|
|
@@ -22448,7 +23710,7 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
22448
23710
|
}
|
|
22449
23711
|
}, isShowSelect && /*#__PURE__*/React__default['default'].createElement(antd.Row, {
|
|
22450
23712
|
style: {
|
|
22451
|
-
marginBottom: '
|
|
23713
|
+
marginBottom: '12px'
|
|
22452
23714
|
}
|
|
22453
23715
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
22454
23716
|
span: 12
|
|
@@ -22502,6 +23764,9 @@ var getButtonText = function getButtonText() {
|
|
|
22502
23764
|
if (['JY_GOODS', 'JY_REISSUE_GOODS'].includes(type)) {
|
|
22503
23765
|
return '选择巨益ERP商品';
|
|
22504
23766
|
}
|
|
23767
|
+
if (['JKY_GOODS', 'JKY_REISSUE_GOODS'].includes(type)) {
|
|
23768
|
+
return '选择吉客云ERP商品';
|
|
23769
|
+
}
|
|
22505
23770
|
return '选择商品';
|
|
22506
23771
|
};
|
|
22507
23772
|
var GoodItem$1 = function GoodItem(props) {
|
|
@@ -22559,7 +23824,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
22559
23824
|
var jstReturnGoods = antd.Form === null || antd.Form === void 0 ? void 0 : antd.Form.useWatch('3979edfd6d', form);
|
|
22560
23825
|
var isShowSelectTradeGoods = type !== 'JST_EXCHANGE_GOODS' || (jstReturnGoods === null || jstReturnGoods === void 0 ? void 0 : jstReturnGoods.jstSystemOrderNo);
|
|
22561
23826
|
// 判断是否为是否展示系统单筛选项
|
|
22562
|
-
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;
|
|
23827
|
+
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;
|
|
22563
23828
|
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;
|
|
22564
23829
|
var refModal = React.useRef();
|
|
22565
23830
|
console.debug('表格数据', value);
|
|
@@ -22651,6 +23916,8 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
22651
23916
|
case 'KM_REISSUE_GOODS':
|
|
22652
23917
|
case 'JY_GOODS':
|
|
22653
23918
|
case 'JY_REISSUE_GOODS':
|
|
23919
|
+
case 'JKY_GOODS':
|
|
23920
|
+
case 'JKY_REISSUE_GOODS':
|
|
22654
23921
|
case 'SKX_GOODS':
|
|
22655
23922
|
case 'SKX_RETURN_GOODS':
|
|
22656
23923
|
{
|
|
@@ -22698,9 +23965,9 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
22698
23965
|
var COLUMNS_INFO = COLUMNS_MAP(text);
|
|
22699
23966
|
return COLUMNS_INFO(type);
|
|
22700
23967
|
};
|
|
22701
|
-
var getShowFilterColumns = React.useCallback(function (
|
|
22702
|
-
var showHeader =
|
|
22703
|
-
initBaseInfoColumns =
|
|
23968
|
+
var getShowFilterColumns = React.useCallback(function (_ref4) {
|
|
23969
|
+
var showHeader = _ref4.showHeader,
|
|
23970
|
+
initBaseInfoColumns = _ref4.initBaseInfoColumns;
|
|
22704
23971
|
var baseInfoColumns = [];
|
|
22705
23972
|
var isStringArray = Array.isArray(showHeader) && typeof showHeader[0] === 'string';
|
|
22706
23973
|
var isObjectArray = Array.isArray(showHeader) && Object.prototype.toString.call(showHeader[0]) === '[object Object]';
|
|
@@ -23855,7 +25122,7 @@ var jyUtils = {
|
|
|
23855
25122
|
};
|
|
23856
25123
|
|
|
23857
25124
|
var singletonMap$7 = new Map();
|
|
23858
|
-
var
|
|
25125
|
+
var getJkyOrderListSingleton = function getJkyOrderListSingleton(orderNo) {
|
|
23859
25126
|
if (!singletonMap$7.has(orderNo)) {
|
|
23860
25127
|
var p = new Promise(function (resolve, reject) {
|
|
23861
25128
|
var doReject = function doReject(err) {
|
|
@@ -23863,6 +25130,50 @@ var getOrderListSingleton$2 = function getOrderListSingleton(orderNo) {
|
|
|
23863
25130
|
singletonMap$7.delete(orderNo);
|
|
23864
25131
|
reject(err);
|
|
23865
25132
|
};
|
|
25133
|
+
extendRequest('/qy/gdfw/order/jkyOrderDetail', {
|
|
25134
|
+
method: 'post',
|
|
25135
|
+
data: {
|
|
25136
|
+
billNo: orderNo
|
|
25137
|
+
}
|
|
25138
|
+
}).then(function (res) {
|
|
25139
|
+
if (res === null || res === void 0 ? void 0 : res.success) {
|
|
25140
|
+
var _res$data, _res$data$tradeOrderD, _res$data3;
|
|
25141
|
+
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) {
|
|
25142
|
+
var _filterJkyOrders, _res$data2;
|
|
25143
|
+
res.data.trades = (_filterJkyOrders = kmkfUtils.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) {
|
|
25144
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
25145
|
+
tradeType: kmkfUtils.JKY_ORDER_TYPE_MAP[item.tradeType],
|
|
25146
|
+
tradeStatus: kmkfUtils.JKY_ORDER_STATUS_MAP[item.tradeStatus]
|
|
25147
|
+
});
|
|
25148
|
+
});
|
|
25149
|
+
}
|
|
25150
|
+
resolve(((_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.trades) || []);
|
|
25151
|
+
// 延迟10秒清除,保证订单的时效性
|
|
25152
|
+
setTimeout(function () {
|
|
25153
|
+
singletonMap$7.delete(orderNo);
|
|
25154
|
+
}, 1000 * 10);
|
|
25155
|
+
} else {
|
|
25156
|
+
doReject(res);
|
|
25157
|
+
}
|
|
25158
|
+
}).catch(doReject);
|
|
25159
|
+
});
|
|
25160
|
+
singletonMap$7.set(orderNo, p);
|
|
25161
|
+
}
|
|
25162
|
+
return singletonMap$7.get(orderNo);
|
|
25163
|
+
};
|
|
25164
|
+
var jkyUtils = {
|
|
25165
|
+
getJkyOrderListSingleton: getJkyOrderListSingleton
|
|
25166
|
+
};
|
|
25167
|
+
|
|
25168
|
+
var singletonMap$8 = new Map();
|
|
25169
|
+
var getOrderListSingleton$2 = function getOrderListSingleton(orderNo) {
|
|
25170
|
+
if (!singletonMap$8.has(orderNo)) {
|
|
25171
|
+
var p = new Promise(function (resolve, reject) {
|
|
25172
|
+
var doReject = function doReject(err) {
|
|
25173
|
+
// 清空掉错误的请求记录
|
|
25174
|
+
singletonMap$8.delete(orderNo);
|
|
25175
|
+
reject(err);
|
|
25176
|
+
};
|
|
23866
25177
|
extendRequest('/qy/gdfw/order/kmErpOrderDetail', {
|
|
23867
25178
|
method: 'post',
|
|
23868
25179
|
data: {
|
|
@@ -23886,16 +25197,16 @@ var getOrderListSingleton$2 = function getOrderListSingleton(orderNo) {
|
|
|
23886
25197
|
}
|
|
23887
25198
|
// 延迟10秒清除,保证订单的时效性
|
|
23888
25199
|
setTimeout(function () {
|
|
23889
|
-
singletonMap$
|
|
25200
|
+
singletonMap$8.delete(orderNo);
|
|
23890
25201
|
}, 1000 * 10);
|
|
23891
25202
|
} else {
|
|
23892
25203
|
doReject(data);
|
|
23893
25204
|
}
|
|
23894
25205
|
}).catch(doReject);
|
|
23895
25206
|
});
|
|
23896
|
-
singletonMap$
|
|
25207
|
+
singletonMap$8.set(orderNo, p);
|
|
23897
25208
|
}
|
|
23898
|
-
return singletonMap$
|
|
25209
|
+
return singletonMap$8.get(orderNo);
|
|
23899
25210
|
};
|
|
23900
25211
|
var kmUtils = {
|
|
23901
25212
|
getOrderListSingleton: getOrderListSingleton$2
|
|
@@ -23912,6 +25223,7 @@ var columnsMap = {
|
|
|
23912
25223
|
GY_SYSTEM_ORDER: kmkfUtils.GY_SYSTEM_ORDER_CONFIG.columns,
|
|
23913
25224
|
JST_SYSTEM_ORDER: kmkfUtils.JST_SYSTEM_ORDER_CONFIG.columns,
|
|
23914
25225
|
JY_SYSTEM_ORDER: kmkfUtils.JY_SYSTEM_ORDER_CONFIG.columns,
|
|
25226
|
+
JKY_SYSTEM_ORDER: kmkfUtils.JKY_SYSTEM_ORDER_CONFIG.columns,
|
|
23915
25227
|
WDT_RETURN_BILL_NO: kmkfUtils.WDT_RETURN_BILL_NO_CONFIG.columns
|
|
23916
25228
|
};
|
|
23917
25229
|
var rowKeyMap = {
|
|
@@ -23923,6 +25235,7 @@ var rowKeyMap = {
|
|
|
23923
25235
|
GY_SYSTEM_ORDER: 'billNo',
|
|
23924
25236
|
JST_SYSTEM_ORDER: 'oId',
|
|
23925
25237
|
JY_SYSTEM_ORDER: 'tradeNo',
|
|
25238
|
+
JKY_SYSTEM_ORDER: 'tradeNo',
|
|
23926
25239
|
WDT_RETURN_BILL_NO: 'refundNo'
|
|
23927
25240
|
};
|
|
23928
25241
|
var index$2 = (function (props) {
|
|
@@ -23937,7 +25250,6 @@ var index$2 = (function (props) {
|
|
|
23937
25250
|
React.useEffect(function () {
|
|
23938
25251
|
var _value$orders, _value$showOrderInfo;
|
|
23939
25252
|
valueRef.current = value;
|
|
23940
|
-
console.log('value77777777', value);
|
|
23941
25253
|
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) {
|
|
23942
25254
|
onceRef.current = true;
|
|
23943
25255
|
if (type === 'BS_SYSTEM_ORDER') {
|
|
@@ -23956,6 +25268,8 @@ var index$2 = (function (props) {
|
|
|
23956
25268
|
getJstOrderList(value.orderNo);
|
|
23957
25269
|
} else if (type === 'JY_SYSTEM_ORDER') {
|
|
23958
25270
|
getJyOrderList(value.orderNo);
|
|
25271
|
+
} else if (type === 'JKY_SYSTEM_ORDER') {
|
|
25272
|
+
getJkyOrderList(value.orderNo);
|
|
23959
25273
|
}
|
|
23960
25274
|
}
|
|
23961
25275
|
}, [value, type]);
|
|
@@ -24220,6 +25534,31 @@ var index$2 = (function (props) {
|
|
|
24220
25534
|
return _ref10.apply(this, arguments);
|
|
24221
25535
|
};
|
|
24222
25536
|
}();
|
|
25537
|
+
var getJkyOrderList = /*#__PURE__*/function () {
|
|
25538
|
+
var _ref12 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(orderNo) {
|
|
25539
|
+
return _regeneratorRuntime().wrap(function _callee9$(_context9) {
|
|
25540
|
+
while (1) switch (_context9.prev = _context9.next) {
|
|
25541
|
+
case 0:
|
|
25542
|
+
jkyUtils.getJkyOrderListSingleton(orderNo).then(function (data) {
|
|
25543
|
+
var trades = ((data === null || data === void 0 ? void 0 : data.trades) || []).filter(function (item) {
|
|
25544
|
+
return kmkfUtils.getIsPlatformCodesIncludeOrderNos(item.platformCode, orderNo);
|
|
25545
|
+
});
|
|
25546
|
+
_onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, {
|
|
25547
|
+
orders: trades,
|
|
25548
|
+
showOrderInfo: trades
|
|
25549
|
+
}));
|
|
25550
|
+
});
|
|
25551
|
+
onceRef.current = false;
|
|
25552
|
+
case 2:
|
|
25553
|
+
case "end":
|
|
25554
|
+
return _context9.stop();
|
|
25555
|
+
}
|
|
25556
|
+
}, _callee9);
|
|
25557
|
+
}));
|
|
25558
|
+
return function getJkyOrderList(_x9) {
|
|
25559
|
+
return _ref12.apply(this, arguments);
|
|
25560
|
+
};
|
|
25561
|
+
}();
|
|
24223
25562
|
var rowSelection = {
|
|
24224
25563
|
selectedRowKeys: (value === null || value === void 0 ? void 0 : value.selectIds) || [],
|
|
24225
25564
|
fixed: true,
|
|
@@ -24644,16 +25983,16 @@ var orderSubFormConstants = {
|
|
|
24644
25983
|
};
|
|
24645
25984
|
|
|
24646
25985
|
var getSelectWidgetMap$1 = orderSubFormConstants.getSelectWidgetMap;
|
|
24647
|
-
var singletonMap$
|
|
25986
|
+
var singletonMap$9 = new Map();
|
|
24648
25987
|
var getOrderListSingleton$3 = function getOrderListSingleton(parmas) {
|
|
24649
25988
|
var orderNo = parmas.orderNo,
|
|
24650
25989
|
shopId = parmas.shopId;
|
|
24651
25990
|
var key = "".concat(orderNo, "-").concat(shopId);
|
|
24652
|
-
if (!singletonMap$
|
|
25991
|
+
if (!singletonMap$9.has(key)) {
|
|
24653
25992
|
var p = new Promise(function (resolve, reject) {
|
|
24654
25993
|
var doReject = function doReject(err) {
|
|
24655
25994
|
// 清空掉错误的请求记录
|
|
24656
|
-
singletonMap$
|
|
25995
|
+
singletonMap$9.delete(key);
|
|
24657
25996
|
reject(err);
|
|
24658
25997
|
};
|
|
24659
25998
|
extendRequest('/qy/gdfw/order/subOrderItemsDetail', {
|
|
@@ -24669,16 +26008,16 @@ var getOrderListSingleton$3 = function getOrderListSingleton(parmas) {
|
|
|
24669
26008
|
}
|
|
24670
26009
|
// 延迟10秒清除,保证订单的时效性
|
|
24671
26010
|
setTimeout(function () {
|
|
24672
|
-
singletonMap$
|
|
26011
|
+
singletonMap$9.delete(key);
|
|
24673
26012
|
}, 1000 * 10);
|
|
24674
26013
|
} else {
|
|
24675
26014
|
doReject(data);
|
|
24676
26015
|
}
|
|
24677
26016
|
}).catch(doReject);
|
|
24678
26017
|
});
|
|
24679
|
-
singletonMap$
|
|
26018
|
+
singletonMap$9.set(key, p);
|
|
24680
26019
|
}
|
|
24681
|
-
return singletonMap$
|
|
26020
|
+
return singletonMap$9.get(key);
|
|
24682
26021
|
};
|
|
24683
26022
|
var renderEditItem = function renderEditItem(_ref) {
|
|
24684
26023
|
var item = _ref.item,
|
|
@@ -25111,6 +26450,9 @@ var isErpType$1 = {
|
|
|
25111
26450
|
},
|
|
25112
26451
|
isJy: function isJy(type) {
|
|
25113
26452
|
return ['JY_GOODS'].includes(type);
|
|
26453
|
+
},
|
|
26454
|
+
isJky: function isJky(type) {
|
|
26455
|
+
return ['JKY_GOODS'].includes(type);
|
|
25114
26456
|
}
|
|
25115
26457
|
};
|
|
25116
26458
|
var processAllOrders = function processAllOrders(_ref) {
|
|
@@ -25411,6 +26753,32 @@ var componentMap$2 = {
|
|
|
25411
26753
|
},
|
|
25412
26754
|
getOrderList: jyUtils.getJyOrderListSingleton
|
|
25413
26755
|
},
|
|
26756
|
+
JKY_GOODS: {
|
|
26757
|
+
type: 'jky',
|
|
26758
|
+
key: 'jkyGoods',
|
|
26759
|
+
name: '吉客云',
|
|
26760
|
+
orderNo: 'tradeNo',
|
|
26761
|
+
goodDetailOrderNo: 'tradeNo',
|
|
26762
|
+
eventNameMap: {
|
|
26763
|
+
// pubsub 事件
|
|
26764
|
+
type: 'jkyType',
|
|
26765
|
+
updateGoodsHandle: kmkfUtils.updateJkyGoodsHandle,
|
|
26766
|
+
selectListReturn: 'jkySelectListReturn',
|
|
26767
|
+
selectList: 'jkySelectList',
|
|
26768
|
+
reissueSelectList: 'jkyReissueSelectList',
|
|
26769
|
+
reissueSelectListReturn: 'jkyReissueSelectListReturn',
|
|
26770
|
+
reissueDeleteGood: 'jkyReissueDeleteGood',
|
|
26771
|
+
changeShopCode: 'jkyChangeShopCode',
|
|
26772
|
+
reissueType: 'jkyReissueType',
|
|
26773
|
+
returnType: 'jkyReturnType',
|
|
26774
|
+
returnSelectListReturn: 'jkyReturnSelectListReturn',
|
|
26775
|
+
returnSelectList: 'jkyReturnSelectList',
|
|
26776
|
+
deleteGood: 'jkyDeleteGood',
|
|
26777
|
+
returnDeleteGood: 'jkyReturnDeleteGood',
|
|
26778
|
+
exchangeDeleteGood: 'jkyExchangeDeleteGood'
|
|
26779
|
+
},
|
|
26780
|
+
getOrderList: jkyUtils.getJkyOrderListSingleton
|
|
26781
|
+
},
|
|
25414
26782
|
WDT_AFTERSALE_GOODS: {
|
|
25415
26783
|
type: 'wdtAftersale',
|
|
25416
26784
|
key: 'wdtAftersaleGoods',
|
|
@@ -25442,7 +26810,7 @@ var componentMap$2 = {
|
|
|
25442
26810
|
}
|
|
25443
26811
|
};
|
|
25444
26812
|
var CommonGoods = function CommonGoods(props) {
|
|
25445
|
-
var
|
|
26813
|
+
var _withInfo$current3, _withInfo$current4, _componentMap$compTyp6;
|
|
25446
26814
|
var value = props.value,
|
|
25447
26815
|
disabled = props.disabled,
|
|
25448
26816
|
onChange = props.onChange,
|
|
@@ -25458,6 +26826,10 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
25458
26826
|
_useState2 = _slicedToArray(_useState, 2),
|
|
25459
26827
|
tableSelect = _useState2[0],
|
|
25460
26828
|
setTableSelect = _useState2[1];
|
|
26829
|
+
var _useState3 = React.useState([]),
|
|
26830
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
26831
|
+
originDataSource = _useState4[0],
|
|
26832
|
+
setOriginDataSource = _useState4[1];
|
|
25461
26833
|
var withInfo = React.useRef(null);
|
|
25462
26834
|
var valueRef = React.useRef(null);
|
|
25463
26835
|
var tokens = React.useRef([]);
|
|
@@ -25469,10 +26841,93 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
25469
26841
|
compType.indexOf('WDT') > -1 && getWdtOrderList(value === null || value === void 0 ? void 0 : value.orderNo);
|
|
25470
26842
|
}
|
|
25471
26843
|
}, [value]);
|
|
26844
|
+
var sysItemIdMap = React.useMemo(function () {
|
|
26845
|
+
var map = {};
|
|
26846
|
+
if (compType.indexOf('KM') > -1) {
|
|
26847
|
+
var _value$kmGoods, _value$kmGoods$filter;
|
|
26848
|
+
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) {
|
|
26849
|
+
return item === null || item === void 0 ? void 0 : item.sysItemId;
|
|
26850
|
+
})) === null || _value$kmGoods$filter === void 0 ? void 0 : _value$kmGoods$filter.forEach(function (item) {
|
|
26851
|
+
var key = item.sysSkuId == '-1' ? item.sysItemId : "".concat(item.sysItemId, "-").concat(item.sysSkuId);
|
|
26852
|
+
map[key] = item;
|
|
26853
|
+
});
|
|
26854
|
+
}
|
|
26855
|
+
return map;
|
|
26856
|
+
}, [value === null || value === void 0 ? void 0 : value.kmGoods]);
|
|
26857
|
+
// 用于跟踪已经处理过的 sysItemId,避免重复处理
|
|
26858
|
+
var processedSysItemIdsRef = React.useRef(new Set());
|
|
26859
|
+
React.useEffect(function () {
|
|
26860
|
+
var fetchSupplier = /*#__PURE__*/function () {
|
|
26861
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(sysItemIds) {
|
|
26862
|
+
var _currentValue$kmGoods;
|
|
26863
|
+
var needFetchIds, supplierMap, hasChange, currentValue, kmGoods;
|
|
26864
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
26865
|
+
while (1) switch (_context.prev = _context.next) {
|
|
26866
|
+
case 0:
|
|
26867
|
+
if (sysItemIds.length) {
|
|
26868
|
+
_context.next = 2;
|
|
26869
|
+
break;
|
|
26870
|
+
}
|
|
26871
|
+
return _context.abrupt("return");
|
|
26872
|
+
case 2:
|
|
26873
|
+
// 过滤出还没有供应商信息的 sysItemId
|
|
26874
|
+
needFetchIds = sysItemIds.filter(function (id) {
|
|
26875
|
+
var item = sysItemIdMap[id];
|
|
26876
|
+
return item && (!item.supplierCode || !item.supplierName);
|
|
26877
|
+
});
|
|
26878
|
+
if (needFetchIds.length) {
|
|
26879
|
+
_context.next = 5;
|
|
26880
|
+
break;
|
|
26881
|
+
}
|
|
26882
|
+
return _context.abrupt("return");
|
|
26883
|
+
case 5:
|
|
26884
|
+
_context.next = 7;
|
|
26885
|
+
return kmkfUtils.servers.KM.getSupplierSingleton(needFetchIds);
|
|
26886
|
+
case 7:
|
|
26887
|
+
supplierMap = _context.sent;
|
|
26888
|
+
// 检查是否有实际变化,避免不必要的更新
|
|
26889
|
+
hasChange = false;
|
|
26890
|
+
currentValue = valueRef.current;
|
|
26891
|
+
kmGoods = currentValue === null || currentValue === void 0 ? void 0 : (_currentValue$kmGoods = currentValue.kmGoods) === null || _currentValue$kmGoods === void 0 ? void 0 : _currentValue$kmGoods.map(function (item) {
|
|
26892
|
+
var supplierInfo = supplierMap.get(item.sysItemId);
|
|
26893
|
+
var newSupplierCode = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierCode;
|
|
26894
|
+
var newSupplierName = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierName;
|
|
26895
|
+
// 如果供应商信息有变化,标记需要更新
|
|
26896
|
+
if (newSupplierCode && item.supplierCode !== newSupplierCode || newSupplierName && item.supplierName !== newSupplierName) {
|
|
26897
|
+
hasChange = true;
|
|
26898
|
+
// 标记已处理
|
|
26899
|
+
processedSysItemIdsRef.current.add(item.sysItemId);
|
|
26900
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
26901
|
+
supplierCode: newSupplierCode || item.supplierCode,
|
|
26902
|
+
supplierName: newSupplierName || item.supplierName
|
|
26903
|
+
});
|
|
26904
|
+
}
|
|
26905
|
+
return item;
|
|
26906
|
+
}); // 只在有实际变化时才更新
|
|
26907
|
+
if (hasChange && kmGoods) {
|
|
26908
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, currentValue), {}, {
|
|
26909
|
+
kmGoods: kmGoods
|
|
26910
|
+
}));
|
|
26911
|
+
}
|
|
26912
|
+
case 12:
|
|
26913
|
+
case "end":
|
|
26914
|
+
return _context.stop();
|
|
26915
|
+
}
|
|
26916
|
+
}, _callee);
|
|
26917
|
+
}));
|
|
26918
|
+
return function fetchSupplier(_x) {
|
|
26919
|
+
return _ref.apply(this, arguments);
|
|
26920
|
+
};
|
|
26921
|
+
}();
|
|
26922
|
+
var sysItemIds = Object.keys(sysItemIdMap);
|
|
26923
|
+
if (sysItemIds === null || sysItemIds === void 0 ? void 0 : sysItemIds.length) {
|
|
26924
|
+
fetchSupplier(sysItemIds);
|
|
26925
|
+
}
|
|
26926
|
+
}, [sysItemIdMap]);
|
|
25472
26927
|
var getWdtOrderList = /*#__PURE__*/function () {
|
|
25473
|
-
var
|
|
25474
|
-
return _regeneratorRuntime().wrap(function
|
|
25475
|
-
while (1) switch (
|
|
26928
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(orderNo) {
|
|
26929
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
26930
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
25476
26931
|
case 0:
|
|
25477
26932
|
wdtUtils.getWdtOrderListSingleton(orderNo).then(function (data) {
|
|
25478
26933
|
var orders = ((data === null || data === void 0 ? void 0 : data.trades) || []).filter(function (trade) {
|
|
@@ -25485,12 +26940,12 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
25485
26940
|
});
|
|
25486
26941
|
case 1:
|
|
25487
26942
|
case "end":
|
|
25488
|
-
return
|
|
26943
|
+
return _context2.stop();
|
|
25489
26944
|
}
|
|
25490
|
-
},
|
|
26945
|
+
}, _callee2);
|
|
25491
26946
|
}));
|
|
25492
|
-
return function getWdtOrderList(
|
|
25493
|
-
return
|
|
26947
|
+
return function getWdtOrderList(_x2) {
|
|
26948
|
+
return _ref2.apply(this, arguments);
|
|
25494
26949
|
};
|
|
25495
26950
|
}();
|
|
25496
26951
|
React.useEffect(function () {
|
|
@@ -25596,8 +27051,8 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
25596
27051
|
mode: isStrict
|
|
25597
27052
|
}))));
|
|
25598
27053
|
};
|
|
25599
|
-
var getGoodDetails = function getGoodDetails(
|
|
25600
|
-
var mode =
|
|
27054
|
+
var getGoodDetails = function getGoodDetails(_ref3) {
|
|
27055
|
+
var mode = _ref3.mode;
|
|
25601
27056
|
var updateHandle = componentMap$2[compType].eventNameMap['updateGoodsHandle'];
|
|
25602
27057
|
if (!updateHandle) return [];
|
|
25603
27058
|
var goodDetails = updateHandle((value === null || value === void 0 ? void 0 : value.orders) || [], {
|
|
@@ -25610,44 +27065,115 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
25610
27065
|
}) : goodDetails;
|
|
25611
27066
|
};
|
|
25612
27067
|
// 找到该订单号下所有商品
|
|
25613
|
-
var getAllTradeGoodsDetails = function
|
|
25614
|
-
var
|
|
25615
|
-
|
|
25616
|
-
|
|
25617
|
-
|
|
25618
|
-
|
|
25619
|
-
|
|
25620
|
-
|
|
25621
|
-
|
|
25622
|
-
|
|
25623
|
-
|
|
25624
|
-
|
|
25625
|
-
|
|
25626
|
-
|
|
25627
|
-
|
|
25628
|
-
|
|
25629
|
-
|
|
25630
|
-
|
|
25631
|
-
|
|
25632
|
-
|
|
25633
|
-
|
|
25634
|
-
|
|
25635
|
-
|
|
25636
|
-
|
|
25637
|
-
|
|
25638
|
-
|
|
25639
|
-
|
|
25640
|
-
|
|
25641
|
-
|
|
27068
|
+
var getAllTradeGoodsDetails = /*#__PURE__*/function () {
|
|
27069
|
+
var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref4) {
|
|
27070
|
+
var mode, updateHandle, goodDetails, orderNo;
|
|
27071
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
27072
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
27073
|
+
case 0:
|
|
27074
|
+
mode = _ref4.mode;
|
|
27075
|
+
updateHandle = componentMap$2[compType].eventNameMap['updateGoodsHandle'];
|
|
27076
|
+
if (updateHandle) {
|
|
27077
|
+
_context3.next = 4;
|
|
27078
|
+
break;
|
|
27079
|
+
}
|
|
27080
|
+
return _context3.abrupt("return", []);
|
|
27081
|
+
case 4:
|
|
27082
|
+
goodDetails = updateHandle((value === null || value === void 0 ? void 0 : value.allOrders) || [], {
|
|
27083
|
+
orderBackGoodsLevel: props.orderBackGoodsLevel
|
|
27084
|
+
});
|
|
27085
|
+
orderNo = value === null || value === void 0 ? void 0 : value.orderNo; // if (['KM_GOODS', 'KM_REISSUE_GOODS'].includes(compType)) {
|
|
27086
|
+
// await getKmSupplier(goodDetails);
|
|
27087
|
+
// }
|
|
27088
|
+
return _context3.abrupt("return", mode ? goodDetails.filter(function (goodItem) {
|
|
27089
|
+
var _componentMap$compTyp2;
|
|
27090
|
+
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;
|
|
27091
|
+
}) : goodDetails);
|
|
27092
|
+
case 7:
|
|
27093
|
+
case "end":
|
|
27094
|
+
return _context3.stop();
|
|
27095
|
+
}
|
|
27096
|
+
}, _callee3);
|
|
27097
|
+
}));
|
|
27098
|
+
return function getAllTradeGoodsDetails(_x3) {
|
|
27099
|
+
return _ref5.apply(this, arguments);
|
|
27100
|
+
};
|
|
27101
|
+
}();
|
|
27102
|
+
// 异步获取 originDataSource
|
|
27103
|
+
React.useEffect(function () {
|
|
27104
|
+
var fetchOriginDataSource = /*#__PURE__*/function () {
|
|
27105
|
+
var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
27106
|
+
var data;
|
|
27107
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
27108
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
27109
|
+
case 0:
|
|
27110
|
+
_context4.next = 2;
|
|
27111
|
+
return getAllTradeGoodsDetails({
|
|
27112
|
+
mode: value === null || value === void 0 ? void 0 : value.isStrict
|
|
27113
|
+
});
|
|
27114
|
+
case 2:
|
|
27115
|
+
data = _context4.sent;
|
|
27116
|
+
setOriginDataSource(Array.isArray(data) ? data : []);
|
|
27117
|
+
case 4:
|
|
27118
|
+
case "end":
|
|
27119
|
+
return _context4.stop();
|
|
27120
|
+
}
|
|
27121
|
+
}, _callee4);
|
|
27122
|
+
}));
|
|
27123
|
+
return function fetchOriginDataSource() {
|
|
27124
|
+
return _ref6.apply(this, arguments);
|
|
27125
|
+
};
|
|
27126
|
+
}();
|
|
27127
|
+
fetchOriginDataSource();
|
|
27128
|
+
}, [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]);
|
|
27129
|
+
var selectedGoodsChange = /*#__PURE__*/function () {
|
|
27130
|
+
var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(skuList) {
|
|
27131
|
+
var _valueRef$current9, _componentMap$compTyp3, _componentMap$compTyp4, _uniqBy;
|
|
27132
|
+
var newValue, isStrict, originTradeGoodList, currentSelectGoodList;
|
|
27133
|
+
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
27134
|
+
while (1) switch (_context5.prev = _context5.next) {
|
|
27135
|
+
case 0:
|
|
27136
|
+
newValue = _objectSpread2({}, valueRef.current);
|
|
27137
|
+
isStrict = valueRef.current.isStrict; // 原订单商品
|
|
27138
|
+
_context5.next = 4;
|
|
27139
|
+
return getAllTradeGoodsDetails({
|
|
27140
|
+
mode: isStrict
|
|
27141
|
+
});
|
|
27142
|
+
case 4:
|
|
27143
|
+
_context5.t0 = _context5.sent;
|
|
27144
|
+
if (_context5.t0) {
|
|
27145
|
+
_context5.next = 7;
|
|
27146
|
+
break;
|
|
27147
|
+
}
|
|
27148
|
+
_context5.t0 = [];
|
|
27149
|
+
case 7:
|
|
27150
|
+
originTradeGoodList = _context5.t0;
|
|
27151
|
+
// 当前选中的所有商品【包含了原订单+商品库】
|
|
27152
|
+
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)]) || [];
|
|
27153
|
+
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 = lodash.uniqBy(originTradeGoodList.concat(currentSelectGoodList), 'uuid')) === null || _uniqBy === void 0 ? void 0 : _uniqBy.filter(function (item) {
|
|
27154
|
+
return skuList.includes(item.uuid);
|
|
27155
|
+
});
|
|
27156
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
27157
|
+
case 11:
|
|
27158
|
+
case "end":
|
|
27159
|
+
return _context5.stop();
|
|
27160
|
+
}
|
|
27161
|
+
}, _callee5);
|
|
27162
|
+
}));
|
|
27163
|
+
return function selectedGoodsChange(_x4) {
|
|
27164
|
+
return _ref7.apply(this, arguments);
|
|
27165
|
+
};
|
|
27166
|
+
}();
|
|
25642
27167
|
// 商品信息组件暂存后 重新编辑,此时需要重新获取订单下所有系统自订单的商品信息
|
|
25643
27168
|
var getDataSourceAsync = function getDataSourceAsync() {
|
|
25644
|
-
var _componentMap$
|
|
25645
|
-
return (value === null || value === void 0 ? void 0 : value.orderNo) ? (_componentMap$
|
|
27169
|
+
var _componentMap$compTyp5;
|
|
27170
|
+
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) {
|
|
25646
27171
|
var list = processAllOrders({
|
|
25647
27172
|
data: data,
|
|
25648
27173
|
orderNo: value === null || value === void 0 ? void 0 : value.orderNo,
|
|
25649
27174
|
type: compType
|
|
25650
27175
|
});
|
|
27176
|
+
console.log('getDataSourceAsync', list);
|
|
25651
27177
|
onChange(_objectSpread2(_objectSpread2({}, valueRef.current), {}, {
|
|
25652
27178
|
allOrders: list || []
|
|
25653
27179
|
}));
|
|
@@ -25675,11 +27201,9 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
25675
27201
|
isStrict: value === null || value === void 0 ? void 0 : value.isStrict,
|
|
25676
27202
|
systemOrders: value === null || value === void 0 ? void 0 : value.allOrders,
|
|
25677
27203
|
selectedSystemOrders: value === null || value === void 0 ? void 0 : value.orders,
|
|
25678
|
-
showChangeBtn: (_componentMap$
|
|
27204
|
+
showChangeBtn: (_componentMap$compTyp6 = componentMap$2[compType]) === null || _componentMap$compTyp6 === void 0 ? void 0 : _componentMap$compTyp6.showChangeBtn,
|
|
25679
27205
|
tradeGoods: {
|
|
25680
|
-
originDataSource:
|
|
25681
|
-
mode: value === null || value === void 0 ? void 0 : value.isStrict
|
|
25682
|
-
}),
|
|
27206
|
+
originDataSource: originDataSource,
|
|
25683
27207
|
getDataSourceAsync: getDataSourceAsync,
|
|
25684
27208
|
selectedGoodsChange: selectedGoodsChange
|
|
25685
27209
|
}
|
|
@@ -26455,12 +27979,95 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
26455
27979
|
mode: mode
|
|
26456
27980
|
}))));
|
|
26457
27981
|
};
|
|
26458
|
-
var
|
|
27982
|
+
var sysItemIdMap = React.useMemo(function () {
|
|
27983
|
+
var map = {};
|
|
27984
|
+
if (type === 'KM_REISSUE_GOODS') {
|
|
27985
|
+
var _value$kmReissueGoods, _value$kmReissueGoods2;
|
|
27986
|
+
value === null || value === void 0 ? void 0 : (_value$kmReissueGoods = value.kmReissueGoods) === null || _value$kmReissueGoods === void 0 ? void 0 : (_value$kmReissueGoods2 = _value$kmReissueGoods.filter(function (item) {
|
|
27987
|
+
return item === null || item === void 0 ? void 0 : item.sysItemId;
|
|
27988
|
+
})) === null || _value$kmReissueGoods2 === void 0 ? void 0 : _value$kmReissueGoods2.forEach(function (item) {
|
|
27989
|
+
var key = item.sysSkuId == '-1' ? item.sysItemId : "".concat(item.sysItemId, "-").concat(item.sysSkuId);
|
|
27990
|
+
map[key] = item;
|
|
27991
|
+
});
|
|
27992
|
+
}
|
|
27993
|
+
return map;
|
|
27994
|
+
}, [value === null || value === void 0 ? void 0 : value.kmReissueGoods]);
|
|
27995
|
+
// 用于跟踪已经处理过的 sysItemId,避免重复处理
|
|
27996
|
+
var processedSysItemIdsRef = React.useRef(new Set());
|
|
27997
|
+
React.useEffect(function () {
|
|
27998
|
+
var fetchSupplier = /*#__PURE__*/function () {
|
|
27999
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(sysItemIds) {
|
|
28000
|
+
var _currentValue$kmReiss;
|
|
28001
|
+
var needFetchIds, supplierMap, hasChange, currentValue, kmReissueGoods;
|
|
28002
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
28003
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
28004
|
+
case 0:
|
|
28005
|
+
if (sysItemIds.length) {
|
|
28006
|
+
_context2.next = 2;
|
|
28007
|
+
break;
|
|
28008
|
+
}
|
|
28009
|
+
return _context2.abrupt("return");
|
|
28010
|
+
case 2:
|
|
28011
|
+
// 过滤出还没有供应商信息的 sysItemId
|
|
28012
|
+
needFetchIds = sysItemIds.filter(function (id) {
|
|
28013
|
+
var item = sysItemIdMap[id];
|
|
28014
|
+
return item && (!item.supplierCode || !item.supplierName);
|
|
28015
|
+
});
|
|
28016
|
+
if (needFetchIds.length) {
|
|
28017
|
+
_context2.next = 5;
|
|
28018
|
+
break;
|
|
28019
|
+
}
|
|
28020
|
+
return _context2.abrupt("return");
|
|
28021
|
+
case 5:
|
|
28022
|
+
_context2.next = 7;
|
|
28023
|
+
return kmkfUtils.servers.KM.getSupplierSingleton(needFetchIds);
|
|
28024
|
+
case 7:
|
|
28025
|
+
supplierMap = _context2.sent;
|
|
28026
|
+
// 检查是否有实际变化,避免不必要的更新
|
|
28027
|
+
hasChange = false;
|
|
28028
|
+
currentValue = valueRef.current;
|
|
28029
|
+
kmReissueGoods = currentValue === null || currentValue === void 0 ? void 0 : (_currentValue$kmReiss = currentValue.kmReissueGoods) === null || _currentValue$kmReiss === void 0 ? void 0 : _currentValue$kmReiss.map(function (item) {
|
|
28030
|
+
var supplierInfo = supplierMap.get(item.sysItemId);
|
|
28031
|
+
var newSupplierCode = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierCode;
|
|
28032
|
+
var newSupplierName = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierName;
|
|
28033
|
+
// 如果供应商信息有变化,标记需要更新
|
|
28034
|
+
if (newSupplierCode && item.supplierCode !== newSupplierCode || newSupplierName && item.supplierName !== newSupplierName) {
|
|
28035
|
+
hasChange = true;
|
|
28036
|
+
// 标记已处理
|
|
28037
|
+
processedSysItemIdsRef.current.add(item.sysItemId);
|
|
28038
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
28039
|
+
supplierCode: newSupplierCode || item.supplierCode,
|
|
28040
|
+
supplierName: newSupplierName || item.supplierName
|
|
28041
|
+
});
|
|
28042
|
+
}
|
|
28043
|
+
return item;
|
|
28044
|
+
}); // 只在有实际变化时才更新
|
|
28045
|
+
if (hasChange && kmReissueGoods) {
|
|
28046
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, currentValue), {}, {
|
|
28047
|
+
kmReissueGoods: kmReissueGoods
|
|
28048
|
+
}));
|
|
28049
|
+
}
|
|
28050
|
+
case 12:
|
|
28051
|
+
case "end":
|
|
28052
|
+
return _context2.stop();
|
|
28053
|
+
}
|
|
28054
|
+
}, _callee2);
|
|
28055
|
+
}));
|
|
28056
|
+
return function fetchSupplier(_x2) {
|
|
28057
|
+
return _ref4.apply(this, arguments);
|
|
28058
|
+
};
|
|
28059
|
+
}();
|
|
28060
|
+
var sysItemIds = Object.keys(sysItemIdMap);
|
|
28061
|
+
if (sysItemIds === null || sysItemIds === void 0 ? void 0 : sysItemIds.length) {
|
|
28062
|
+
fetchSupplier(sysItemIds);
|
|
28063
|
+
}
|
|
28064
|
+
}, [sysItemIdMap]);
|
|
28065
|
+
var getGoodDetails = function getGoodDetails(_ref5) {
|
|
26459
28066
|
var _typeMap$type18, _typeMap$type19, _value$typeMap$type$s6, _typeMap$type20, _typeMap$type21, _typeMap$type22, _typeMap$type23, _typeMap$type24;
|
|
26460
|
-
var mode =
|
|
26461
|
-
sysOrderNo =
|
|
26462
|
-
|
|
26463
|
-
isAllOrders =
|
|
28067
|
+
var mode = _ref5.mode,
|
|
28068
|
+
sysOrderNo = _ref5.sysOrderNo,
|
|
28069
|
+
_ref5$isAllOrders = _ref5.isAllOrders,
|
|
28070
|
+
isAllOrders = _ref5$isAllOrders === void 0 ? false : _ref5$isAllOrders;
|
|
26464
28071
|
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];
|
|
26465
28072
|
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];
|
|
26466
28073
|
var order = systemOrderNo && ((systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orders) || []).find(function (order) {
|
|
@@ -27372,7 +28979,7 @@ var MsgStatus = function MsgStatus(props) {
|
|
|
27372
28979
|
onClick: function onClick() {
|
|
27373
28980
|
return setChangeIndex(index);
|
|
27374
28981
|
}
|
|
27375
|
-
}, kmkfUtils.msgTypeCh[key], item.ruleName);
|
|
28982
|
+
}, kmkfUtils.msgTypeCh[key] || key, item.ruleName);
|
|
27376
28983
|
}))) : null, type === 1 ? /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({}, other), {}, {
|
|
27377
28984
|
showSearch: true,
|
|
27378
28985
|
value: (_value$changeIndex = value[changeIndex]) === null || _value$changeIndex === void 0 ? void 0 : _value$changeIndex.status,
|
|
@@ -27950,7 +29557,7 @@ var GyReissue = function GyReissue(props) {
|
|
|
27950
29557
|
span: 12
|
|
27951
29558
|
},
|
|
27952
29559
|
sm: {
|
|
27953
|
-
span:
|
|
29560
|
+
span: 4
|
|
27954
29561
|
}
|
|
27955
29562
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Cascader, {
|
|
27956
29563
|
style: {
|
|
@@ -28253,7 +29860,7 @@ var GyReturnGoods = function GyReturnGoods(props) {
|
|
|
28253
29860
|
span: 12
|
|
28254
29861
|
},
|
|
28255
29862
|
sm: {
|
|
28256
|
-
span:
|
|
29863
|
+
span: 4
|
|
28257
29864
|
}
|
|
28258
29865
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Cascader, {
|
|
28259
29866
|
style: {
|
|
@@ -28926,6 +30533,7 @@ var SYSTEM_ORDER_COLUMNS_MAP = {
|
|
|
28926
30533
|
GY_SYSTEM_ORDER: kmkfUtils.GY_SYSTEM_ORDER_CONFIG.columns,
|
|
28927
30534
|
JST_SYSTEM_ORDER: kmkfUtils.JST_SYSTEM_ORDER_CONFIG.columns,
|
|
28928
30535
|
JY_SYSTEM_ORDER: kmkfUtils.JY_SYSTEM_ORDER_CONFIG.columns,
|
|
30536
|
+
JKY_SYSTEM_ORDER: kmkfUtils.JKY_SYSTEM_ORDER_CONFIG.columns,
|
|
28929
30537
|
WDT_RETURN_BILL_NO: kmkfUtils.WDT_RETURN_BILL_NO_CONFIG.columns
|
|
28930
30538
|
};
|
|
28931
30539
|
|
|
@@ -29008,6 +30616,7 @@ exports.erpColumnsMap = erpColumnsMap;
|
|
|
29008
30616
|
exports.erpFormValidator = erpFormValidator;
|
|
29009
30617
|
exports.erpModalColumnsMap = index$1;
|
|
29010
30618
|
exports.getGyColumns = getColumns$4;
|
|
30619
|
+
exports.getJkyColumns = getColumns$9;
|
|
29011
30620
|
exports.getJstColumns = getColumns$5;
|
|
29012
30621
|
exports.getJyColumns = getColumns$7;
|
|
29013
30622
|
exports.getKmColumns = getColumns$6;
|
|
@@ -29016,3 +30625,4 @@ exports.getWdtColumns = getColumns$2;
|
|
|
29016
30625
|
exports.getWlnColumns = getColumns$3;
|
|
29017
30626
|
exports.orderSubFormConstants = orderSubFormConstants;
|
|
29018
30627
|
exports.renderMap = renderMap;
|
|
30628
|
+
exports.renderSplitMap = renderSplitMap;
|