@kmkf-fe-packages/basic-components 2.2.39-beta.3 → 2.2.39-beta.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +2569 -1060
- package/dist/index.js +2569 -1058
- package/dist/src/apaas/SubForm/index.d.ts +2 -2
- 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',
|
|
@@ -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) {
|
|
@@ -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,35 @@ 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
|
+
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';
|
|
15825
|
+
conditionList.push({
|
|
15826
|
+
leftValue: key,
|
|
15827
|
+
compareSymbol: compareSymbol,
|
|
15828
|
+
rightValue: value
|
|
15829
|
+
});
|
|
15830
|
+
}
|
|
15831
|
+
}
|
|
15832
|
+
return conditionList;
|
|
15833
|
+
};
|
|
15834
|
+
|
|
15428
15835
|
var getTableData = function getTableData(_ref, formData) {
|
|
15429
|
-
var _formData$brandIds;
|
|
15430
15836
|
var current = _ref.current,
|
|
15431
15837
|
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
|
-
};
|
|
15838
|
+
var conditionList = transformFormData(formData);
|
|
15439
15839
|
return extendRequest('/qy/gdfw/product/product/page', {
|
|
15440
15840
|
method: 'post',
|
|
15441
|
-
data:
|
|
15841
|
+
data: {
|
|
15442
15842
|
pageSize: pageSize,
|
|
15443
15843
|
pageNo: current,
|
|
15444
|
-
platform: 'WDT_ERP'
|
|
15445
|
-
|
|
15844
|
+
platform: 'WDT_ERP',
|
|
15845
|
+
conditionList: conditionList
|
|
15846
|
+
}
|
|
15446
15847
|
}).then(function (res) {
|
|
15447
15848
|
var _res$data = res.data,
|
|
15448
15849
|
_res$data$productSkuL = _res$data.productSkuList,
|
|
@@ -15536,13 +15937,15 @@ var GoodList = function GoodList(props, ref) {
|
|
|
15536
15937
|
}, {
|
|
15537
15938
|
label: 'SKU编码',
|
|
15538
15939
|
name: 'skuCode',
|
|
15539
|
-
dataIndex: 'specNo'
|
|
15940
|
+
dataIndex: 'specNo',
|
|
15941
|
+
type: 'optionalInput'
|
|
15540
15942
|
}, {
|
|
15541
15943
|
label: '商品名称',
|
|
15542
15944
|
name: 'goodName'
|
|
15543
15945
|
}, {
|
|
15544
15946
|
label: '商品编码',
|
|
15545
|
-
name: 'goodNo'
|
|
15947
|
+
name: 'goodNo',
|
|
15948
|
+
type: 'optionalInput'
|
|
15546
15949
|
}, {
|
|
15547
15950
|
label: '品牌',
|
|
15548
15951
|
name: 'brandIds',
|
|
@@ -15732,13 +16135,15 @@ var WdtGoodsModal = /*#__PURE__*/React.forwardRef(GoodsModal$3);
|
|
|
15732
16135
|
var getTableData$1 = function getTableData(_ref, formData) {
|
|
15733
16136
|
var current = _ref.current,
|
|
15734
16137
|
pageSize = _ref.pageSize;
|
|
16138
|
+
var conditionList = transformFormData(formData);
|
|
15735
16139
|
return extendRequest('/qy/gdfw/product/product/page', {
|
|
15736
16140
|
method: 'post',
|
|
15737
|
-
data:
|
|
16141
|
+
data: {
|
|
15738
16142
|
pageSize: pageSize,
|
|
15739
16143
|
pageNo: current,
|
|
15740
|
-
platform: 'JST_ERP'
|
|
15741
|
-
|
|
16144
|
+
platform: 'JST_ERP',
|
|
16145
|
+
conditionList: conditionList
|
|
16146
|
+
}
|
|
15742
16147
|
}).then(function (res) {
|
|
15743
16148
|
var _res$data = res.data,
|
|
15744
16149
|
_res$data$productSkuL = _res$data.productSkuList,
|
|
@@ -15759,10 +16164,12 @@ var searchFormData = [{
|
|
|
15759
16164
|
name: 'goodName'
|
|
15760
16165
|
}, {
|
|
15761
16166
|
label: '商品编码',
|
|
15762
|
-
name: 'goodNo'
|
|
16167
|
+
name: 'goodNo',
|
|
16168
|
+
type: 'optionalInput'
|
|
15763
16169
|
}, {
|
|
15764
16170
|
label: '款式编码',
|
|
15765
|
-
name: 'styleCode'
|
|
16171
|
+
name: 'styleCode',
|
|
16172
|
+
type: 'optionalInput'
|
|
15766
16173
|
}, {
|
|
15767
16174
|
label: '商品类型',
|
|
15768
16175
|
name: 'skuType',
|
|
@@ -15983,20 +16390,15 @@ var JstGoodsModal = /*#__PURE__*/React.forwardRef(GyGoodsModal);
|
|
|
15983
16390
|
var getTableData$2 = function getTableData(_ref, formData) {
|
|
15984
16391
|
var current = _ref.current,
|
|
15985
16392
|
pageSize = _ref.pageSize;
|
|
15986
|
-
var
|
|
15987
|
-
goodShortName: formData.goodShortName || null,
|
|
15988
|
-
goodNo: formData.goodNo || null,
|
|
15989
|
-
goodName: formData.goodName || null,
|
|
15990
|
-
skuCode: formData.skuCode || null,
|
|
15991
|
-
skuId: formData.skuId || null
|
|
15992
|
-
};
|
|
16393
|
+
var conditionList = transformFormData(formData);
|
|
15993
16394
|
return extendRequest('/qy/gdfw/product/product/page', {
|
|
15994
16395
|
method: 'post',
|
|
15995
|
-
data:
|
|
16396
|
+
data: {
|
|
15996
16397
|
pageSize: pageSize,
|
|
15997
16398
|
pageNo: current,
|
|
15998
|
-
platform: 'BS_E3_ERP'
|
|
15999
|
-
|
|
16399
|
+
platform: 'BS_E3_ERP',
|
|
16400
|
+
conditionList: conditionList
|
|
16401
|
+
}
|
|
16000
16402
|
}).then(function (res) {
|
|
16001
16403
|
var _res$data = res.data,
|
|
16002
16404
|
_res$data$productSkuL = _res$data.productSkuList,
|
|
@@ -16016,18 +16418,21 @@ var getTableData$2 = function getTableData(_ref, formData) {
|
|
|
16016
16418
|
};
|
|
16017
16419
|
var searchFormData$1 = [{
|
|
16018
16420
|
label: '商品货号',
|
|
16019
|
-
name: 'goodNo'
|
|
16421
|
+
name: 'goodNo',
|
|
16422
|
+
type: 'optionalInput'
|
|
16020
16423
|
}, {
|
|
16021
16424
|
label: '商品名称',
|
|
16022
16425
|
name: 'goodName'
|
|
16023
16426
|
}, {
|
|
16024
16427
|
label: 'SKU',
|
|
16025
16428
|
name: 'skuCode',
|
|
16026
|
-
dataIndex: 'specNo'
|
|
16429
|
+
dataIndex: 'specNo',
|
|
16430
|
+
type: 'optionalInput'
|
|
16027
16431
|
}, {
|
|
16028
16432
|
label: 'SKU ID',
|
|
16029
16433
|
name: 'skuId',
|
|
16030
|
-
dataIndex: 'specId'
|
|
16434
|
+
dataIndex: 'specId',
|
|
16435
|
+
type: 'optionalInput'
|
|
16031
16436
|
}];
|
|
16032
16437
|
var GoodList$2 = function GoodList(props, ref) {
|
|
16033
16438
|
var _useState = React.useState([]),
|
|
@@ -16229,13 +16634,15 @@ var rowCheckKey = 'id';
|
|
|
16229
16634
|
var getTableData$3 = function getTableData(_ref, formData) {
|
|
16230
16635
|
var current = _ref.current,
|
|
16231
16636
|
pageSize = _ref.pageSize;
|
|
16637
|
+
var conditionList = transformFormData(formData);
|
|
16232
16638
|
return extendRequest('/qy/gdfw/product/product/page', {
|
|
16233
16639
|
method: 'post',
|
|
16234
|
-
data:
|
|
16640
|
+
data: {
|
|
16235
16641
|
pageSize: pageSize,
|
|
16236
16642
|
pageNo: current,
|
|
16237
|
-
platform: 'KM_ERP'
|
|
16238
|
-
|
|
16643
|
+
platform: 'KM_ERP',
|
|
16644
|
+
conditionList: conditionList
|
|
16645
|
+
}
|
|
16239
16646
|
}).then(function (res) {
|
|
16240
16647
|
var _res$data = res.data,
|
|
16241
16648
|
_res$data$productSkuL = _res$data.productSkuList,
|
|
@@ -16256,7 +16663,8 @@ var searchFormData$2 = [{
|
|
|
16256
16663
|
name: 'goodName'
|
|
16257
16664
|
}, {
|
|
16258
16665
|
label: '商品编码',
|
|
16259
|
-
name: 'goodNo'
|
|
16666
|
+
name: 'goodNo',
|
|
16667
|
+
type: 'optionalInput'
|
|
16260
16668
|
}, {
|
|
16261
16669
|
label: 'SKU名称',
|
|
16262
16670
|
name: 'skuName',
|
|
@@ -16264,7 +16672,8 @@ var searchFormData$2 = [{
|
|
|
16264
16672
|
}, {
|
|
16265
16673
|
label: 'SKU编码',
|
|
16266
16674
|
name: 'skuCode',
|
|
16267
|
-
dataIndex: 'specNo'
|
|
16675
|
+
dataIndex: 'specNo',
|
|
16676
|
+
type: 'optionalInput'
|
|
16268
16677
|
}];
|
|
16269
16678
|
var GoodList$3 = function GoodList(props, ref) {
|
|
16270
16679
|
var _useState = React.useState([]),
|
|
@@ -16472,20 +16881,15 @@ var KmGoodsModal = /*#__PURE__*/React.forwardRef(ErpGoodsModal);
|
|
|
16472
16881
|
var getTableData$4 = function getTableData(_ref, formData) {
|
|
16473
16882
|
var current = _ref.current,
|
|
16474
16883
|
pageSize = _ref.pageSize;
|
|
16475
|
-
var
|
|
16476
|
-
goodShortName: formData.goodShortName || null,
|
|
16477
|
-
skuName: formData.skuName || null,
|
|
16478
|
-
skuCode: formData.skuCode || null,
|
|
16479
|
-
goodName: formData.goodName || null,
|
|
16480
|
-
goodNo: formData.goodNo || null
|
|
16481
|
-
};
|
|
16884
|
+
var conditionList = transformFormData(formData);
|
|
16482
16885
|
return extendRequest('/qy/gdfw/product/product/page', {
|
|
16483
16886
|
method: 'post',
|
|
16484
|
-
data:
|
|
16887
|
+
data: {
|
|
16485
16888
|
pageSize: pageSize,
|
|
16486
16889
|
pageNo: current,
|
|
16487
|
-
platform: 'GY_ERP'
|
|
16488
|
-
|
|
16890
|
+
platform: 'GY_ERP',
|
|
16891
|
+
conditionList: conditionList
|
|
16892
|
+
}
|
|
16489
16893
|
}).then(function (res) {
|
|
16490
16894
|
var _res$data = res.data,
|
|
16491
16895
|
_res$data$productSkuL = _res$data.productSkuList,
|
|
@@ -16511,13 +16915,15 @@ var searchFormData$3 = [{
|
|
|
16511
16915
|
}, {
|
|
16512
16916
|
label: '商品sku编码',
|
|
16513
16917
|
name: 'skuCode',
|
|
16514
|
-
dataIndex: 'specNo'
|
|
16918
|
+
dataIndex: 'specNo',
|
|
16919
|
+
type: 'optionalInput'
|
|
16515
16920
|
}, {
|
|
16516
16921
|
label: '商品名称',
|
|
16517
16922
|
name: 'goodName'
|
|
16518
16923
|
}, {
|
|
16519
16924
|
label: '商品编码',
|
|
16520
|
-
name: 'goodNo'
|
|
16925
|
+
name: 'goodNo',
|
|
16926
|
+
type: 'optionalInput'
|
|
16521
16927
|
}];
|
|
16522
16928
|
var GoodList$4 = function GoodList(props, ref) {
|
|
16523
16929
|
var _useState = React.useState([]),
|
|
@@ -18137,13 +18543,15 @@ var GyGoodsModal$2 = /*#__PURE__*/React.forwardRef(GyGoodsModal$1);
|
|
|
18137
18543
|
var getTableData$5 = function getTableData(_ref, formData) {
|
|
18138
18544
|
var current = _ref.current,
|
|
18139
18545
|
pageSize = _ref.pageSize;
|
|
18546
|
+
var conditionList = transformFormData(formData);
|
|
18140
18547
|
return extendRequest('/qy/gdfw/product/product/page', {
|
|
18141
18548
|
method: 'post',
|
|
18142
|
-
data:
|
|
18549
|
+
data: {
|
|
18143
18550
|
pageSize: pageSize,
|
|
18144
18551
|
pageNo: current,
|
|
18145
|
-
platform: 'JY_ERP'
|
|
18146
|
-
|
|
18552
|
+
platform: 'JY_ERP',
|
|
18553
|
+
conditionList: conditionList
|
|
18554
|
+
}
|
|
18147
18555
|
}).then(function (res) {
|
|
18148
18556
|
var _res$data = res.data,
|
|
18149
18557
|
_res$data$productSkuL = _res$data.productSkuList,
|
|
@@ -18166,13 +18574,15 @@ var searchFormData$4 = [{
|
|
|
18166
18574
|
}, {
|
|
18167
18575
|
label: '规格编码',
|
|
18168
18576
|
name: 'skuCode',
|
|
18169
|
-
dataIndex: 'specNo'
|
|
18577
|
+
dataIndex: 'specNo',
|
|
18578
|
+
type: 'optionalInput'
|
|
18170
18579
|
}, {
|
|
18171
18580
|
label: '商品名称',
|
|
18172
18581
|
name: 'goodName'
|
|
18173
18582
|
}, {
|
|
18174
18583
|
label: '商品编码',
|
|
18175
|
-
name: 'goodNo'
|
|
18584
|
+
name: 'goodNo',
|
|
18585
|
+
type: 'optionalInput'
|
|
18176
18586
|
}];
|
|
18177
18587
|
var GoodList$5 = function GoodList(props, ref) {
|
|
18178
18588
|
var _useState = React.useState([]),
|
|
@@ -18377,250 +18787,493 @@ var JyGoodsModal = function JyGoodsModal(props, ref) {
|
|
|
18377
18787
|
};
|
|
18378
18788
|
var JyGoodsModal$1 = /*#__PURE__*/React.forwardRef(JyGoodsModal);
|
|
18379
18789
|
|
|
18380
|
-
var
|
|
18381
|
-
var
|
|
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
|
-
|
|
18414
|
-
|
|
18790
|
+
var getTableData$6 = function getTableData(_ref, formData) {
|
|
18791
|
+
var current = _ref.current,
|
|
18792
|
+
pageSize = _ref.pageSize;
|
|
18793
|
+
return extendRequest('/qy/gdfw/product/product/page', {
|
|
18794
|
+
method: 'post',
|
|
18795
|
+
data: _objectSpread2({
|
|
18796
|
+
pageSize: pageSize,
|
|
18797
|
+
pageNo: current,
|
|
18798
|
+
platform: 'JY_ERP'
|
|
18799
|
+
}, formData)
|
|
18800
|
+
}).then(function (res) {
|
|
18801
|
+
var _res$data = res.data,
|
|
18802
|
+
_res$data$productSkuL = _res$data.productSkuList,
|
|
18803
|
+
productSkuList = _res$data$productSkuL === void 0 ? [] : _res$data$productSkuL,
|
|
18804
|
+
_res$data$total = _res$data.total,
|
|
18805
|
+
total = _res$data$total === void 0 ? 0 : _res$data$total;
|
|
18806
|
+
var newProducts = productSkuList.map(function (item, index) {
|
|
18807
|
+
return _objectSpread2({}, item);
|
|
18808
|
+
});
|
|
18809
|
+
return {
|
|
18810
|
+
total: total,
|
|
18811
|
+
list: newProducts
|
|
18812
|
+
};
|
|
18813
|
+
});
|
|
18814
|
+
};
|
|
18815
|
+
var searchFormData$5 = [{
|
|
18816
|
+
label: '规格名称',
|
|
18817
|
+
name: 'skuName',
|
|
18818
|
+
dataIndex: 'specName'
|
|
18819
|
+
}, {
|
|
18820
|
+
label: '规格编码',
|
|
18821
|
+
name: 'skuCode',
|
|
18822
|
+
dataIndex: 'specNo'
|
|
18823
|
+
}, {
|
|
18824
|
+
label: '商品名称',
|
|
18825
|
+
name: 'goodName'
|
|
18826
|
+
}, {
|
|
18827
|
+
label: '商品编码',
|
|
18828
|
+
name: 'goodNo'
|
|
18829
|
+
}];
|
|
18830
|
+
var GoodList$6 = function GoodList(props, ref) {
|
|
18831
|
+
var _useState = React.useState([]),
|
|
18832
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
18833
|
+
selectList = _useState2[0],
|
|
18834
|
+
setSelect = _useState2[1];
|
|
18835
|
+
var _useState3 = React.useState([]),
|
|
18836
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
18837
|
+
selectIds = _useState4[0],
|
|
18838
|
+
setSelectIds = _useState4[1];
|
|
18839
|
+
var _useGetColumns = useGetColumns('jky'),
|
|
18840
|
+
_useGetColumns2 = _slicedToArray(_useGetColumns, 3),
|
|
18841
|
+
columns = _useGetColumns2[0],
|
|
18842
|
+
showColumnsDataIndexList = _useGetColumns2[1],
|
|
18843
|
+
loading = _useGetColumns2[2];
|
|
18844
|
+
React.useImperativeHandle(ref, function () {
|
|
18845
|
+
return {
|
|
18846
|
+
getSelectGoodList: function getSelectGoodList() {
|
|
18847
|
+
return selectList;
|
|
18415
18848
|
}
|
|
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
|
-
|
|
18444
|
-
width: 150,
|
|
18445
|
-
render: renderTextEllipsis
|
|
18446
|
-
}, {
|
|
18447
|
-
dataIndex: 'brandName',
|
|
18448
|
-
title: "\u54C1\u724C\u540D\u79F0",
|
|
18449
|
-
width: 150,
|
|
18450
|
-
render: renderTextEllipsis
|
|
18451
|
-
}, {
|
|
18452
|
-
dataIndex: 'goodsNumber',
|
|
18453
|
-
title: "\u5546\u54C1\u6570\u91CF",
|
|
18454
|
-
width: 150
|
|
18455
|
-
}, {
|
|
18456
|
-
dataIndex: 'goodsPrice',
|
|
18457
|
-
title: "\u5546\u54C1\u5355\u4EF7",
|
|
18458
|
-
width: 150
|
|
18459
|
-
}, {
|
|
18460
|
-
dataIndex: 'shopPrice',
|
|
18461
|
-
title: "\u5546\u54C1\u7F51\u5E97\u552E\u4EF7",
|
|
18462
|
-
width: 150
|
|
18463
|
-
}, {
|
|
18464
|
-
dataIndex: 'isGift',
|
|
18465
|
-
title: "\u662F\u5426\u8D60\u54C1",
|
|
18466
|
-
width: 150,
|
|
18467
|
-
render: function render(val) {
|
|
18468
|
-
return /*#__PURE__*/React__default['default'].createElement("span", null, +val ? '是' : '否');
|
|
18849
|
+
};
|
|
18850
|
+
});
|
|
18851
|
+
var _Form$useForm = antd.Form.useForm(),
|
|
18852
|
+
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
18853
|
+
form = _Form$useForm2[0];
|
|
18854
|
+
var _useAntdTable = ahooks.useAntdTable(getTableData$6, {
|
|
18855
|
+
defaultPageSize: 10,
|
|
18856
|
+
form: form
|
|
18857
|
+
}),
|
|
18858
|
+
tableProps = _useAntdTable.tableProps,
|
|
18859
|
+
search = _useAntdTable.search,
|
|
18860
|
+
params = _useAntdTable.params;
|
|
18861
|
+
var submit = search.submit,
|
|
18862
|
+
reset = search.reset;
|
|
18863
|
+
var rowSelection = {
|
|
18864
|
+
selectedRowKeys: selectIds,
|
|
18865
|
+
fixed: true,
|
|
18866
|
+
onSelect: function onSelect(record, selected) {
|
|
18867
|
+
if (selected) {
|
|
18868
|
+
setSelectIds([].concat(_toConsumableArray(selectIds), [record.id]));
|
|
18869
|
+
setSelect([].concat(_toConsumableArray(selectList), [record]));
|
|
18870
|
+
} else {
|
|
18871
|
+
setSelectIds(selectIds.filter(function (t) {
|
|
18872
|
+
return t !== record.id;
|
|
18873
|
+
}));
|
|
18874
|
+
setSelect(selectList.filter(function (t) {
|
|
18875
|
+
return t.id !== record.id;
|
|
18876
|
+
}));
|
|
18469
18877
|
}
|
|
18470
|
-
}
|
|
18471
|
-
|
|
18472
|
-
|
|
18473
|
-
|
|
18474
|
-
|
|
18475
|
-
|
|
18476
|
-
|
|
18477
|
-
|
|
18478
|
-
|
|
18479
|
-
|
|
18480
|
-
|
|
18481
|
-
|
|
18482
|
-
|
|
18483
|
-
ellipsis: true,
|
|
18484
|
-
width: 150,
|
|
18485
|
-
render: renderTextEllipsis
|
|
18486
|
-
}, {
|
|
18487
|
-
dataIndex: 'goodsName',
|
|
18488
|
-
title: "\u5546\u54C1\u540D\u79F0",
|
|
18489
|
-
align: 'center',
|
|
18490
|
-
ellipsis: true,
|
|
18491
|
-
width: 150,
|
|
18492
|
-
render: renderTextEllipsis
|
|
18493
|
-
}, {
|
|
18494
|
-
dataIndex: 'goodsShortName',
|
|
18495
|
-
title: "\u5546\u54C1\u7B80\u79F0",
|
|
18496
|
-
align: 'center',
|
|
18497
|
-
ellipsis: true,
|
|
18498
|
-
width: 100,
|
|
18499
|
-
render: renderTextEllipsis
|
|
18500
|
-
}, {
|
|
18501
|
-
dataIndex: 'picPath',
|
|
18502
|
-
title: "\u5546\u54C1\u56FE\u7247",
|
|
18503
|
-
align: 'center',
|
|
18504
|
-
ellipsis: true,
|
|
18505
|
-
width: 100,
|
|
18506
|
-
render: function render(val) {
|
|
18507
|
-
return /*#__PURE__*/React__default['default'].createElement(antd.Image, {
|
|
18508
|
-
width: 30,
|
|
18509
|
-
src: val
|
|
18878
|
+
},
|
|
18879
|
+
onSelectAll: function onSelectAll(selected, selectedRows, changeRows) {
|
|
18880
|
+
if (selected) {
|
|
18881
|
+
setSelectIds([].concat(_toConsumableArray(selectIds), _toConsumableArray(changeRows.map(function (t) {
|
|
18882
|
+
return t.id;
|
|
18883
|
+
}))));
|
|
18884
|
+
setSelect([].concat(_toConsumableArray(selectList), _toConsumableArray(changeRows)));
|
|
18885
|
+
} else {
|
|
18886
|
+
setSelectIds(lodash.difference(selectIds, changeRows.map(function (t) {
|
|
18887
|
+
return t.id;
|
|
18888
|
+
})));
|
|
18889
|
+
var list = lodash.differenceWith(selectList, changeRows, function (arrVal, othVal) {
|
|
18890
|
+
return arrVal.id !== othVal.id;
|
|
18510
18891
|
});
|
|
18892
|
+
setSelect(list);
|
|
18511
18893
|
}
|
|
18512
|
-
},
|
|
18513
|
-
|
|
18514
|
-
|
|
18515
|
-
|
|
18894
|
+
},
|
|
18895
|
+
getCheckboxProps: function getCheckboxProps(record) {
|
|
18896
|
+
var options = {
|
|
18897
|
+
disabled: (props.selectedRows || []).map(function (row) {
|
|
18898
|
+
return row.id || row.specId;
|
|
18899
|
+
}).includes(record.id || record.specId),
|
|
18900
|
+
name: record.id
|
|
18901
|
+
};
|
|
18902
|
+
return options;
|
|
18903
|
+
}
|
|
18904
|
+
};
|
|
18905
|
+
var showTable = function showTable() {
|
|
18906
|
+
var handleDelete = function handleDelete(record) {
|
|
18907
|
+
setSelectIds(selectIds.filter(function (t) {
|
|
18908
|
+
return t !== record.id;
|
|
18909
|
+
}));
|
|
18910
|
+
setSelect(selectList.filter(function (t) {
|
|
18911
|
+
return t.id !== record.id;
|
|
18912
|
+
}));
|
|
18913
|
+
};
|
|
18914
|
+
var showColumns = [{
|
|
18915
|
+
dataIndex: '',
|
|
18916
|
+
title: "\u64CD\u4F5C",
|
|
18516
18917
|
ellipsis: true,
|
|
18918
|
+
width: 100,
|
|
18919
|
+
render: function render(val, record) {
|
|
18920
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
18921
|
+
type: "link",
|
|
18922
|
+
onClick: function onClick() {
|
|
18923
|
+
return handleDelete(record);
|
|
18924
|
+
}
|
|
18925
|
+
}, "\u5220\u9664");
|
|
18926
|
+
}
|
|
18927
|
+
}].concat(lodash.takeRight(columns, columns.length - 1));
|
|
18928
|
+
return selectList.length ? /*#__PURE__*/React__default['default'].createElement("div", {
|
|
18929
|
+
style: {
|
|
18930
|
+
width: '100%',
|
|
18931
|
+
maxWidth: '387px'
|
|
18932
|
+
}
|
|
18933
|
+
}, /*#__PURE__*/React__default['default'].createElement(antd.Table, {
|
|
18934
|
+
columns: showColumns,
|
|
18935
|
+
rowKey: 'id',
|
|
18936
|
+
dataSource: selectList,
|
|
18937
|
+
scroll: {
|
|
18938
|
+
x: '100%',
|
|
18939
|
+
y: 250
|
|
18940
|
+
},
|
|
18941
|
+
pagination: {
|
|
18942
|
+
size: 'small',
|
|
18943
|
+
total: selectIds.length,
|
|
18944
|
+
pageSize: 10,
|
|
18945
|
+
showSizeChanger: false
|
|
18946
|
+
}
|
|
18947
|
+
})) : null;
|
|
18948
|
+
};
|
|
18949
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Skeleton, {
|
|
18950
|
+
active: true,
|
|
18951
|
+
loading: loading
|
|
18952
|
+
}, /*#__PURE__*/React__default['default'].createElement(SearchForm, {
|
|
18953
|
+
searchFormData: searchFormData$5,
|
|
18954
|
+
form: form,
|
|
18955
|
+
showColumnsDataIndexList: showColumnsDataIndexList,
|
|
18956
|
+
submit: submit,
|
|
18957
|
+
reset: reset
|
|
18958
|
+
}), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
18959
|
+
style: {
|
|
18960
|
+
marginTop: '4px'
|
|
18961
|
+
}
|
|
18962
|
+
}, /*#__PURE__*/React__default['default'].createElement(antd.Table, _objectSpread2({
|
|
18963
|
+
className: "GoodModalColumns",
|
|
18964
|
+
rowSelection: rowSelection,
|
|
18965
|
+
rowKey: "id",
|
|
18966
|
+
columns: columns,
|
|
18967
|
+
scroll: {
|
|
18968
|
+
x: '100%',
|
|
18969
|
+
y: 250
|
|
18970
|
+
},
|
|
18971
|
+
size: "small"
|
|
18972
|
+
}, tableProps))), /*#__PURE__*/React__default['default'].createElement(antd.Popover, {
|
|
18973
|
+
getPopupContainer: function getPopupContainer(triggerNode) {
|
|
18974
|
+
return triggerNode.parentElement;
|
|
18975
|
+
},
|
|
18976
|
+
content: showTable(),
|
|
18977
|
+
title: "\u5DF2\u9009\u62E9".concat(selectList.length, "\u4E2A\u5546\u54C1")
|
|
18978
|
+
}, /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
18979
|
+
danger: true,
|
|
18980
|
+
type: "text"
|
|
18981
|
+
}, "\u5DF2\u9009".concat(selectList.length > 99 ? '99+' : selectList.length, "\u4E2A\u5546\u54C1"), /*#__PURE__*/React__default['default'].createElement(icons.CaretUpOutlined, null))));
|
|
18982
|
+
};
|
|
18983
|
+
var JkyGoodsList = /*#__PURE__*/React.forwardRef(GoodList$6);
|
|
18984
|
+
|
|
18985
|
+
var JkyGoodsModal = function JkyGoodsModal(props, ref) {
|
|
18986
|
+
React.useImperativeHandle(ref, function () {
|
|
18987
|
+
return {
|
|
18988
|
+
open: function open(shopCode) {
|
|
18989
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
18990
|
+
setVisible(true);
|
|
18991
|
+
setSelectedRows(options.value || []);
|
|
18992
|
+
}
|
|
18993
|
+
};
|
|
18994
|
+
});
|
|
18995
|
+
var onSubmit = props.onSubmit,
|
|
18996
|
+
width = props.width;
|
|
18997
|
+
var _useState = React.useState(false),
|
|
18998
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
18999
|
+
visible = _useState2[0],
|
|
19000
|
+
setVisible = _useState2[1];
|
|
19001
|
+
var _useState3 = React.useState([]),
|
|
19002
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
19003
|
+
selectedRows = _useState4[0],
|
|
19004
|
+
setSelectedRows = _useState4[1];
|
|
19005
|
+
var jkyGoodsListRef = React.useRef(null);
|
|
19006
|
+
var _onCancel = function onCancel() {
|
|
19007
|
+
setVisible(false);
|
|
19008
|
+
};
|
|
19009
|
+
var onOk = function onOk() {
|
|
19010
|
+
var _jkyGoodsListRef$curr;
|
|
19011
|
+
var selectedList = ((_jkyGoodsListRef$curr = jkyGoodsListRef.current) === null || _jkyGoodsListRef$curr === void 0 ? void 0 : _jkyGoodsListRef$curr.getSelectGoodList()) || [];
|
|
19012
|
+
onSubmit(selectedList);
|
|
19013
|
+
_onCancel();
|
|
19014
|
+
};
|
|
19015
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, visible && /*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
19016
|
+
title: '选择商品',
|
|
19017
|
+
okText: '确认',
|
|
19018
|
+
cancelText: '取消',
|
|
19019
|
+
visible: visible,
|
|
19020
|
+
width: width || 850,
|
|
19021
|
+
onCancel: function onCancel() {
|
|
19022
|
+
_onCancel();
|
|
19023
|
+
},
|
|
19024
|
+
onOk: onOk,
|
|
19025
|
+
wrapClassName: "goodModal"
|
|
19026
|
+
}, /*#__PURE__*/React__default['default'].createElement(JkyGoodsList, {
|
|
19027
|
+
ref: jkyGoodsListRef,
|
|
19028
|
+
selectedRows: selectedRows
|
|
19029
|
+
})));
|
|
19030
|
+
};
|
|
19031
|
+
var JkyGoodsModal$1 = /*#__PURE__*/React.forwardRef(JkyGoodsModal);
|
|
19032
|
+
|
|
19033
|
+
var getColumns = function getColumns(_ref) {
|
|
19034
|
+
var _ref$text = _ref.text,
|
|
19035
|
+
disabled = _ref.disabled,
|
|
19036
|
+
updateHandle = _ref.updateHandle;
|
|
19037
|
+
return {
|
|
19038
|
+
//百胜E3补发商品
|
|
19039
|
+
BS_E3_REISSUE_GOODS: [{
|
|
19040
|
+
dataIndex: 'sku',
|
|
19041
|
+
title: "SKU",
|
|
19042
|
+
width: 150,
|
|
19043
|
+
render: renderTextEllipsis
|
|
19044
|
+
}, {
|
|
19045
|
+
dataIndex: 'skuId',
|
|
19046
|
+
title: "SKU ID",
|
|
19047
|
+
width: 150,
|
|
19048
|
+
render: renderTextEllipsis
|
|
19049
|
+
}, {
|
|
19050
|
+
dataIndex: 'goodsName',
|
|
19051
|
+
title: "\u5546\u54C1\u540D\u79F0",
|
|
19052
|
+
width: 150,
|
|
19053
|
+
render: renderTextEllipsis
|
|
19054
|
+
}, {
|
|
19055
|
+
dataIndex: 'goodsShortName',
|
|
19056
|
+
title: "\u5546\u54C1\u7B80\u79F0",
|
|
19057
|
+
width: 150,
|
|
19058
|
+
render: renderTextEllipsis
|
|
19059
|
+
}, {
|
|
19060
|
+
dataIndex: 'picPath',
|
|
19061
|
+
title: "\u5546\u54C1\u56FE\u7247",
|
|
19062
|
+
width: 150,
|
|
19063
|
+
render: function render(val) {
|
|
19064
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Image, {
|
|
19065
|
+
width: 30,
|
|
19066
|
+
src: val
|
|
19067
|
+
});
|
|
19068
|
+
}
|
|
19069
|
+
}, {
|
|
19070
|
+
dataIndex: 'goodsSn',
|
|
19071
|
+
title: "\u8D27\u53F7",
|
|
18517
19072
|
width: 150,
|
|
18518
19073
|
render: renderTextEllipsis
|
|
18519
19074
|
}, {
|
|
18520
19075
|
dataIndex: 'goodsId',
|
|
18521
19076
|
title: "\u8D27\u53F7ID",
|
|
18522
|
-
align: 'center',
|
|
18523
|
-
ellipsis: true,
|
|
18524
19077
|
width: 150,
|
|
18525
19078
|
render: renderTextEllipsis
|
|
18526
19079
|
}, {
|
|
18527
19080
|
dataIndex: 'colorName',
|
|
18528
19081
|
title: "\u989C\u8272\u540D\u79F0",
|
|
18529
|
-
|
|
18530
|
-
ellipsis: true,
|
|
18531
|
-
width: 100,
|
|
19082
|
+
width: 150,
|
|
18532
19083
|
render: renderTextEllipsis
|
|
18533
19084
|
}, {
|
|
18534
19085
|
dataIndex: 'colorCode',
|
|
18535
19086
|
title: "\u989C\u8272\u4EE3\u7801",
|
|
18536
|
-
align: 'center',
|
|
18537
|
-
ellipsis: true,
|
|
18538
19087
|
width: 150,
|
|
18539
19088
|
render: renderTextEllipsis
|
|
18540
19089
|
}, {
|
|
18541
19090
|
dataIndex: 'sizeName',
|
|
18542
19091
|
title: "\u5C3A\u7801\u540D\u79F0",
|
|
18543
|
-
|
|
18544
|
-
ellipsis: true,
|
|
18545
|
-
width: 100,
|
|
19092
|
+
width: 150,
|
|
18546
19093
|
render: renderTextEllipsis
|
|
18547
19094
|
}, {
|
|
18548
19095
|
dataIndex: 'sizeCode',
|
|
18549
19096
|
title: "\u5C3A\u7801\u4EE3\u7801",
|
|
18550
|
-
|
|
18551
|
-
ellipsis: true,
|
|
18552
|
-
width: 100,
|
|
19097
|
+
width: 150,
|
|
18553
19098
|
render: renderTextEllipsis
|
|
18554
19099
|
}, {
|
|
18555
19100
|
dataIndex: 'brandName',
|
|
18556
19101
|
title: "\u54C1\u724C\u540D\u79F0",
|
|
18557
|
-
align: 'center',
|
|
18558
|
-
ellipsis: true,
|
|
18559
19102
|
width: 150,
|
|
18560
19103
|
render: renderTextEllipsis
|
|
18561
19104
|
}, {
|
|
18562
19105
|
dataIndex: 'goodsNumber',
|
|
18563
19106
|
title: "\u5546\u54C1\u6570\u91CF",
|
|
18564
|
-
|
|
18565
|
-
ellipsis: true,
|
|
18566
|
-
width: 100,
|
|
18567
|
-
render: function render(val, record, index) {
|
|
18568
|
-
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
18569
|
-
style: {
|
|
18570
|
-
width: 70
|
|
18571
|
-
},
|
|
18572
|
-
value: val,
|
|
18573
|
-
min: 1,
|
|
18574
|
-
precision: 0,
|
|
18575
|
-
onChange: function onChange(num) {
|
|
18576
|
-
return updateHandle(num, index, 'goodsNumber');
|
|
18577
|
-
}
|
|
18578
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
18579
|
-
}
|
|
19107
|
+
width: 150
|
|
18580
19108
|
}, {
|
|
18581
19109
|
dataIndex: 'goodsPrice',
|
|
18582
19110
|
title: "\u5546\u54C1\u5355\u4EF7",
|
|
18583
|
-
|
|
18584
|
-
ellipsis: true,
|
|
18585
|
-
width: 120,
|
|
18586
|
-
render: function render(val, record, index) {
|
|
18587
|
-
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
18588
|
-
style: {
|
|
18589
|
-
width: 70
|
|
18590
|
-
},
|
|
18591
|
-
value: val,
|
|
18592
|
-
min: 0,
|
|
18593
|
-
precision: 2,
|
|
18594
|
-
onChange: function onChange(num) {
|
|
18595
|
-
return updateHandle(num, index, 'goodsPrice');
|
|
18596
|
-
}
|
|
18597
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
18598
|
-
}
|
|
19111
|
+
width: 150
|
|
18599
19112
|
}, {
|
|
18600
19113
|
dataIndex: 'shopPrice',
|
|
18601
19114
|
title: "\u5546\u54C1\u7F51\u5E97\u552E\u4EF7",
|
|
19115
|
+
width: 150
|
|
19116
|
+
}, {
|
|
19117
|
+
dataIndex: 'isGift',
|
|
19118
|
+
title: "\u662F\u5426\u8D60\u54C1",
|
|
19119
|
+
width: 150,
|
|
19120
|
+
render: function render(val) {
|
|
19121
|
+
return /*#__PURE__*/React__default['default'].createElement("span", null, +val ? '是' : '否');
|
|
19122
|
+
}
|
|
19123
|
+
}],
|
|
19124
|
+
//百胜E3商品信息
|
|
19125
|
+
BS_E3_GOODS: [{
|
|
19126
|
+
dataIndex: 'sku',
|
|
19127
|
+
title: "SKU",
|
|
18602
19128
|
align: 'center',
|
|
18603
19129
|
ellipsis: true,
|
|
18604
|
-
width:
|
|
19130
|
+
width: 150,
|
|
19131
|
+
render: renderTextEllipsis
|
|
18605
19132
|
}, {
|
|
18606
|
-
dataIndex: '
|
|
18607
|
-
title: "
|
|
19133
|
+
dataIndex: 'skuId',
|
|
19134
|
+
title: "SKU ID",
|
|
18608
19135
|
align: 'center',
|
|
18609
19136
|
ellipsis: true,
|
|
18610
|
-
width:
|
|
19137
|
+
width: 150,
|
|
19138
|
+
render: renderTextEllipsis
|
|
18611
19139
|
}, {
|
|
18612
|
-
dataIndex: '
|
|
18613
|
-
title: "\
|
|
19140
|
+
dataIndex: 'goodsName',
|
|
19141
|
+
title: "\u5546\u54C1\u540D\u79F0",
|
|
18614
19142
|
align: 'center',
|
|
18615
19143
|
ellipsis: true,
|
|
18616
|
-
width:
|
|
19144
|
+
width: 150,
|
|
19145
|
+
render: renderTextEllipsis
|
|
18617
19146
|
}, {
|
|
18618
|
-
dataIndex: '
|
|
18619
|
-
title: "\
|
|
19147
|
+
dataIndex: 'goodsShortName',
|
|
19148
|
+
title: "\u5546\u54C1\u7B80\u79F0",
|
|
18620
19149
|
align: 'center',
|
|
18621
19150
|
ellipsis: true,
|
|
18622
|
-
width:
|
|
18623
|
-
render:
|
|
19151
|
+
width: 100,
|
|
19152
|
+
render: renderTextEllipsis
|
|
19153
|
+
}, {
|
|
19154
|
+
dataIndex: 'picPath',
|
|
19155
|
+
title: "\u5546\u54C1\u56FE\u7247",
|
|
19156
|
+
align: 'center',
|
|
19157
|
+
ellipsis: true,
|
|
19158
|
+
width: 100,
|
|
19159
|
+
render: function render(val) {
|
|
19160
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Image, {
|
|
19161
|
+
width: 30,
|
|
19162
|
+
src: val
|
|
19163
|
+
});
|
|
19164
|
+
}
|
|
19165
|
+
}, {
|
|
19166
|
+
dataIndex: 'goodsSn',
|
|
19167
|
+
title: "\u8D27\u53F7",
|
|
19168
|
+
align: 'center',
|
|
19169
|
+
ellipsis: true,
|
|
19170
|
+
width: 150,
|
|
19171
|
+
render: renderTextEllipsis
|
|
19172
|
+
}, {
|
|
19173
|
+
dataIndex: 'goodsId',
|
|
19174
|
+
title: "\u8D27\u53F7ID",
|
|
19175
|
+
align: 'center',
|
|
19176
|
+
ellipsis: true,
|
|
19177
|
+
width: 150,
|
|
19178
|
+
render: renderTextEllipsis
|
|
19179
|
+
}, {
|
|
19180
|
+
dataIndex: 'colorName',
|
|
19181
|
+
title: "\u989C\u8272\u540D\u79F0",
|
|
19182
|
+
align: 'center',
|
|
19183
|
+
ellipsis: true,
|
|
19184
|
+
width: 100,
|
|
19185
|
+
render: renderTextEllipsis
|
|
19186
|
+
}, {
|
|
19187
|
+
dataIndex: 'colorCode',
|
|
19188
|
+
title: "\u989C\u8272\u4EE3\u7801",
|
|
19189
|
+
align: 'center',
|
|
19190
|
+
ellipsis: true,
|
|
19191
|
+
width: 150,
|
|
19192
|
+
render: renderTextEllipsis
|
|
19193
|
+
}, {
|
|
19194
|
+
dataIndex: 'sizeName',
|
|
19195
|
+
title: "\u5C3A\u7801\u540D\u79F0",
|
|
19196
|
+
align: 'center',
|
|
19197
|
+
ellipsis: true,
|
|
19198
|
+
width: 100,
|
|
19199
|
+
render: renderTextEllipsis
|
|
19200
|
+
}, {
|
|
19201
|
+
dataIndex: 'sizeCode',
|
|
19202
|
+
title: "\u5C3A\u7801\u4EE3\u7801",
|
|
19203
|
+
align: 'center',
|
|
19204
|
+
ellipsis: true,
|
|
19205
|
+
width: 100,
|
|
19206
|
+
render: renderTextEllipsis
|
|
19207
|
+
}, {
|
|
19208
|
+
dataIndex: 'brandName',
|
|
19209
|
+
title: "\u54C1\u724C\u540D\u79F0",
|
|
19210
|
+
align: 'center',
|
|
19211
|
+
ellipsis: true,
|
|
19212
|
+
width: 150,
|
|
19213
|
+
render: renderTextEllipsis
|
|
19214
|
+
}, {
|
|
19215
|
+
dataIndex: 'goodsNumber',
|
|
19216
|
+
title: "\u5546\u54C1\u6570\u91CF",
|
|
19217
|
+
align: 'center',
|
|
19218
|
+
ellipsis: true,
|
|
19219
|
+
width: 100,
|
|
19220
|
+
render: function render(val, record, index) {
|
|
19221
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
19222
|
+
style: {
|
|
19223
|
+
width: 70
|
|
19224
|
+
},
|
|
19225
|
+
value: val,
|
|
19226
|
+
min: 1,
|
|
19227
|
+
precision: 0,
|
|
19228
|
+
onChange: function onChange(num) {
|
|
19229
|
+
return updateHandle(num, index, 'goodsNumber');
|
|
19230
|
+
}
|
|
19231
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
19232
|
+
}
|
|
19233
|
+
}, {
|
|
19234
|
+
dataIndex: 'goodsPrice',
|
|
19235
|
+
title: "\u5546\u54C1\u5355\u4EF7",
|
|
19236
|
+
align: 'center',
|
|
19237
|
+
ellipsis: true,
|
|
19238
|
+
width: 120,
|
|
19239
|
+
render: function render(val, record, index) {
|
|
19240
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
19241
|
+
style: {
|
|
19242
|
+
width: 70
|
|
19243
|
+
},
|
|
19244
|
+
value: val,
|
|
19245
|
+
min: 0,
|
|
19246
|
+
precision: 2,
|
|
19247
|
+
onChange: function onChange(num) {
|
|
19248
|
+
return updateHandle(num, index, 'goodsPrice');
|
|
19249
|
+
}
|
|
19250
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
19251
|
+
}
|
|
19252
|
+
}, {
|
|
19253
|
+
dataIndex: 'shopPrice',
|
|
19254
|
+
title: "\u5546\u54C1\u7F51\u5E97\u552E\u4EF7",
|
|
19255
|
+
align: 'center',
|
|
19256
|
+
ellipsis: true,
|
|
19257
|
+
width: 120
|
|
19258
|
+
}, {
|
|
19259
|
+
dataIndex: 'sharePrice',
|
|
19260
|
+
title: "\u5206\u644A\u4EF7",
|
|
19261
|
+
align: 'center',
|
|
19262
|
+
ellipsis: true,
|
|
19263
|
+
width: 120
|
|
19264
|
+
}, {
|
|
19265
|
+
dataIndex: 'sharePayment',
|
|
19266
|
+
title: "\u5206\u644A\u5B9E\u4ED8\u91D1\u989D",
|
|
19267
|
+
align: 'center',
|
|
19268
|
+
ellipsis: true,
|
|
19269
|
+
width: 120
|
|
19270
|
+
}, {
|
|
19271
|
+
dataIndex: 'payment',
|
|
19272
|
+
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
19273
|
+
align: 'center',
|
|
19274
|
+
ellipsis: true,
|
|
19275
|
+
width: 120,
|
|
19276
|
+
render: function render(val, record, index) {
|
|
18624
19277
|
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
18625
19278
|
style: {
|
|
18626
19279
|
width: 70
|
|
@@ -19145,7 +19798,8 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
19145
19798
|
title: "\u8D60\u54C1\u65B9\u5F0F",
|
|
19146
19799
|
align: 'center',
|
|
19147
19800
|
ellipsis: true,
|
|
19148
|
-
width: 100
|
|
19801
|
+
width: 100,
|
|
19802
|
+
render: renderGiftType
|
|
19149
19803
|
}, {
|
|
19150
19804
|
dataIndex: 'unitName',
|
|
19151
19805
|
title: "\u57FA\u672C\u5355\u4F4D",
|
|
@@ -20542,219 +21196,648 @@ var getColumns$5 = function getColumns() {
|
|
|
20542
21196
|
}) : /*#__PURE__*/React__default['default'].createElement("span", null, typeof val !== 'boolean' ? '' : val ? '是' : '否');
|
|
20543
21197
|
}
|
|
20544
21198
|
}, {
|
|
20545
|
-
dataIndex: 'remark',
|
|
20546
|
-
title: '备注',
|
|
21199
|
+
dataIndex: 'remark',
|
|
21200
|
+
title: '备注',
|
|
21201
|
+
width: 150,
|
|
21202
|
+
ellipsis: true,
|
|
21203
|
+
align: 'center',
|
|
21204
|
+
render: function render(val, record, index) {
|
|
21205
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
21206
|
+
style: {
|
|
21207
|
+
width: 70
|
|
21208
|
+
},
|
|
21209
|
+
value: val,
|
|
21210
|
+
onChange: function onChange(e) {
|
|
21211
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(e.target.value, index, 'remark');
|
|
21212
|
+
}
|
|
21213
|
+
}) : renderTextEllipsis(val);
|
|
21214
|
+
}
|
|
21215
|
+
}],
|
|
21216
|
+
JST_RETURN_GOODS: [{
|
|
21217
|
+
dataIndex: 'name',
|
|
21218
|
+
title: '商品名称',
|
|
21219
|
+
render: renderTextEllipsis
|
|
21220
|
+
}, {
|
|
21221
|
+
dataIndex: 'skuId',
|
|
21222
|
+
title: '商品编码',
|
|
21223
|
+
render: renderTextEllipsis
|
|
21224
|
+
}, {
|
|
21225
|
+
dataIndex: 'iId',
|
|
21226
|
+
title: '款式编码',
|
|
21227
|
+
render: renderTextEllipsis
|
|
21228
|
+
}, {
|
|
21229
|
+
dataIndex: 'pic',
|
|
21230
|
+
title: '商品图片',
|
|
21231
|
+
width: 100,
|
|
21232
|
+
render: function render(val) {
|
|
21233
|
+
return /*#__PURE__*/React__default['default'].createElement(ApaasImage, {
|
|
21234
|
+
width: 30,
|
|
21235
|
+
src: val
|
|
21236
|
+
});
|
|
21237
|
+
}
|
|
21238
|
+
}, {
|
|
21239
|
+
dataIndex: 'propertiesValue',
|
|
21240
|
+
title: '规格值',
|
|
21241
|
+
render: renderTextEllipsis
|
|
21242
|
+
}, {
|
|
21243
|
+
dataIndex: 'saleBasePrice',
|
|
21244
|
+
title: '原价',
|
|
21245
|
+
render: function render(price) {
|
|
21246
|
+
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
21247
|
+
}
|
|
21248
|
+
}, {
|
|
21249
|
+
dataIndex: 'salePrice',
|
|
21250
|
+
title: '单价',
|
|
21251
|
+
width: 120,
|
|
21252
|
+
validator: function validator(_rule, value) {
|
|
21253
|
+
var goodsName = '';
|
|
21254
|
+
if (((value === null || value === void 0 ? void 0 : value.jstReturnGoods) || []).some(function (goods) {
|
|
21255
|
+
var v = toNum$2(goods === null || goods === void 0 ? void 0 : goods.salePrice);
|
|
21256
|
+
var res = typeof v === 'number' ? v < 0 : true;
|
|
21257
|
+
if (res) {
|
|
21258
|
+
goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
|
|
21259
|
+
}
|
|
21260
|
+
return res;
|
|
21261
|
+
})) {
|
|
21262
|
+
return Promise.reject("".concat(goodsName, "\u5355\u4EF7\u4E3A\u5927\u4E8E\u7B49\u4E8E0\u7684\u6570"));
|
|
21263
|
+
}
|
|
21264
|
+
},
|
|
21265
|
+
render: function render(val, record, index) {
|
|
21266
|
+
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
21267
|
+
style: {
|
|
21268
|
+
width: 70
|
|
21269
|
+
},
|
|
21270
|
+
value: val,
|
|
21271
|
+
min: 0,
|
|
21272
|
+
precision: 2,
|
|
21273
|
+
onChange: function onChange(num) {
|
|
21274
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'salePrice');
|
|
21275
|
+
}
|
|
21276
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
|
|
21277
|
+
}
|
|
21278
|
+
}, {
|
|
21279
|
+
dataIndex: 'qty',
|
|
21280
|
+
title: '数量',
|
|
21281
|
+
width: 100,
|
|
21282
|
+
validator: function validator(_rule, value) {
|
|
21283
|
+
var goodsName = '';
|
|
21284
|
+
if (((value === null || value === void 0 ? void 0 : value.jstReturnGoods) || []).some(function (goods) {
|
|
21285
|
+
var qty = toNum$2(goods === null || goods === void 0 ? void 0 : goods.qty);
|
|
21286
|
+
var res = typeof qty === 'number' ? qty < 1 : true;
|
|
21287
|
+
if (res) {
|
|
21288
|
+
goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
|
|
21289
|
+
}
|
|
21290
|
+
return res;
|
|
21291
|
+
})) {
|
|
21292
|
+
return Promise.reject("".concat(goodsName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
21293
|
+
}
|
|
21294
|
+
},
|
|
21295
|
+
render: function render(val, record, index) {
|
|
21296
|
+
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
21297
|
+
style: {
|
|
21298
|
+
width: 70
|
|
21299
|
+
},
|
|
21300
|
+
value: val,
|
|
21301
|
+
min: 1,
|
|
21302
|
+
precision: 0,
|
|
21303
|
+
onChange: function onChange(num) {
|
|
21304
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'qty');
|
|
21305
|
+
}
|
|
21306
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
21307
|
+
}
|
|
21308
|
+
}, {
|
|
21309
|
+
dataIndex: 'saleAmount',
|
|
21310
|
+
title: '总金额',
|
|
21311
|
+
render: function render(val, record) {
|
|
21312
|
+
return ((record.qty || 0) * (+record.salePrice || 0)).toFixed(2);
|
|
21313
|
+
}
|
|
21314
|
+
}, {
|
|
21315
|
+
dataIndex: 'batchId',
|
|
21316
|
+
title: '批次号',
|
|
21317
|
+
render: renderTextEllipsis
|
|
21318
|
+
}, {
|
|
21319
|
+
dataIndex: 'isGift',
|
|
21320
|
+
title: '是否赠品',
|
|
21321
|
+
width: 100,
|
|
21322
|
+
render: function render(val, record, index) {
|
|
21323
|
+
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
21324
|
+
value: val,
|
|
21325
|
+
onChange: function onChange(value) {
|
|
21326
|
+
updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(value, index, 'isGift');
|
|
21327
|
+
},
|
|
21328
|
+
options: [{
|
|
21329
|
+
label: '是',
|
|
21330
|
+
value: true
|
|
21331
|
+
}, {
|
|
21332
|
+
label: '否',
|
|
21333
|
+
value: false
|
|
21334
|
+
}]
|
|
21335
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, typeof val !== 'boolean' ? '' : val ? '是' : '否');
|
|
21336
|
+
}
|
|
21337
|
+
}, {
|
|
21338
|
+
dataIndex: 'remark',
|
|
21339
|
+
title: '备注',
|
|
21340
|
+
render: function render(val, record, index) {
|
|
21341
|
+
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
21342
|
+
style: {
|
|
21343
|
+
width: 70
|
|
21344
|
+
},
|
|
21345
|
+
value: val,
|
|
21346
|
+
onChange: function onChange(e) {
|
|
21347
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(e.target.value, index, 'remark');
|
|
21348
|
+
}
|
|
21349
|
+
}) : renderTextEllipsis(val);
|
|
21350
|
+
}
|
|
21351
|
+
}, {
|
|
21352
|
+
dataIndex: 'outerOiId',
|
|
21353
|
+
title: '子订单号',
|
|
21354
|
+
width: 240,
|
|
21355
|
+
render: renderTextEllipsis
|
|
21356
|
+
}].map(fillAttrs),
|
|
21357
|
+
JST_EXCHANGE_GOODS: [{
|
|
21358
|
+
dataIndex: 'name',
|
|
21359
|
+
title: '商品名称',
|
|
21360
|
+
render: renderTextEllipsis
|
|
21361
|
+
}, {
|
|
21362
|
+
dataIndex: 'skuId',
|
|
21363
|
+
title: '商品编码',
|
|
21364
|
+
render: renderTextEllipsis
|
|
21365
|
+
}, {
|
|
21366
|
+
dataIndex: 'iId',
|
|
21367
|
+
title: '款式编码',
|
|
21368
|
+
render: renderTextEllipsis
|
|
21369
|
+
}, {
|
|
21370
|
+
dataIndex: 'pic',
|
|
21371
|
+
title: '商品图片',
|
|
21372
|
+
width: 100,
|
|
21373
|
+
render: function render(val) {
|
|
21374
|
+
return /*#__PURE__*/React__default['default'].createElement(ApaasImage, {
|
|
21375
|
+
width: 30,
|
|
21376
|
+
src: val
|
|
21377
|
+
});
|
|
21378
|
+
}
|
|
21379
|
+
}, {
|
|
21380
|
+
dataIndex: 'propertiesValue',
|
|
21381
|
+
title: '规格值',
|
|
21382
|
+
render: renderTextEllipsis
|
|
21383
|
+
}, {
|
|
21384
|
+
dataIndex: 'saleBasePrice',
|
|
21385
|
+
title: '原价',
|
|
21386
|
+
render: function render(price) {
|
|
21387
|
+
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
21388
|
+
}
|
|
21389
|
+
}, {
|
|
21390
|
+
dataIndex: 'salePrice',
|
|
21391
|
+
title: '单价',
|
|
21392
|
+
width: 120,
|
|
21393
|
+
render: function render(val, record, index) {
|
|
21394
|
+
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
21395
|
+
style: {
|
|
21396
|
+
width: 70
|
|
21397
|
+
},
|
|
21398
|
+
value: val,
|
|
21399
|
+
min: 0,
|
|
21400
|
+
precision: 2,
|
|
21401
|
+
onChange: function onChange(num) {
|
|
21402
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'salePrice');
|
|
21403
|
+
}
|
|
21404
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
|
|
21405
|
+
}
|
|
21406
|
+
}, {
|
|
21407
|
+
dataIndex: 'qty',
|
|
21408
|
+
title: '数量',
|
|
21409
|
+
width: 100,
|
|
21410
|
+
render: function render(val, record, index) {
|
|
21411
|
+
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
21412
|
+
style: {
|
|
21413
|
+
width: 70
|
|
21414
|
+
},
|
|
21415
|
+
value: val,
|
|
21416
|
+
min: 1,
|
|
21417
|
+
precision: 0,
|
|
21418
|
+
onChange: function onChange(num) {
|
|
21419
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'qty');
|
|
21420
|
+
}
|
|
21421
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
21422
|
+
}
|
|
21423
|
+
}, {
|
|
21424
|
+
dataIndex: 'saleAmount',
|
|
21425
|
+
title: '总金额',
|
|
21426
|
+
render: function render(val, record) {
|
|
21427
|
+
return ((record.qty || 0) * (+record.salePrice || 0)).toFixed(2);
|
|
21428
|
+
}
|
|
21429
|
+
}, {
|
|
21430
|
+
dataIndex: 'isGift',
|
|
21431
|
+
title: '是否赠品',
|
|
21432
|
+
width: 100,
|
|
21433
|
+
render: function render(val, record, index) {
|
|
21434
|
+
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
21435
|
+
value: val,
|
|
21436
|
+
onChange: function onChange(value) {
|
|
21437
|
+
updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(value, index, 'isGift');
|
|
21438
|
+
},
|
|
21439
|
+
options: [{
|
|
21440
|
+
label: '是',
|
|
21441
|
+
value: true
|
|
21442
|
+
}, {
|
|
21443
|
+
label: '否',
|
|
21444
|
+
value: false
|
|
21445
|
+
}]
|
|
21446
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, typeof val !== 'boolean' ? '' : val ? '是' : '否');
|
|
21447
|
+
}
|
|
21448
|
+
}, {
|
|
21449
|
+
dataIndex: 'remark',
|
|
21450
|
+
title: '备注',
|
|
21451
|
+
render: function render(val, record, index) {
|
|
21452
|
+
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
21453
|
+
style: {
|
|
21454
|
+
width: 70
|
|
21455
|
+
},
|
|
21456
|
+
value: val,
|
|
21457
|
+
onChange: function onChange(e) {
|
|
21458
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(e.target.value, index, 'remark');
|
|
21459
|
+
}
|
|
21460
|
+
}) : renderTextEllipsis(val);
|
|
21461
|
+
}
|
|
21462
|
+
}].map(fillAttrs),
|
|
21463
|
+
// jst售后商品信息
|
|
21464
|
+
JST_AFTERSALE_GOODS: [{
|
|
21465
|
+
dataIndex: 'asId',
|
|
21466
|
+
title: "\u805A\u6C34\u6F6D\u552E\u540E\u5355\u53F7",
|
|
21467
|
+
width: 200,
|
|
21468
|
+
align: 'center',
|
|
21469
|
+
ellipsis: true,
|
|
21470
|
+
render: renderTextEllipsis
|
|
21471
|
+
}, {
|
|
21472
|
+
dataIndex: 'asiId',
|
|
21473
|
+
title: "\u552E\u540E\u5B50\u5355\u53F7",
|
|
21474
|
+
width: 200,
|
|
21475
|
+
align: 'center',
|
|
21476
|
+
ellipsis: true,
|
|
21477
|
+
render: renderTextEllipsis
|
|
21478
|
+
}, {
|
|
21479
|
+
dataIndex: 'outerOiId',
|
|
21480
|
+
title: "\u5B50\u8BA2\u5355\u53F7",
|
|
21481
|
+
width: 200,
|
|
21482
|
+
align: 'center',
|
|
21483
|
+
ellipsis: true,
|
|
21484
|
+
render: renderTextEllipsis
|
|
21485
|
+
}, {
|
|
21486
|
+
dataIndex: 'pic',
|
|
21487
|
+
title: "\u56FE\u7247",
|
|
21488
|
+
width: 100,
|
|
21489
|
+
align: 'center',
|
|
21490
|
+
render: function render(val) {
|
|
21491
|
+
return /*#__PURE__*/React__default['default'].createElement(ApaasImage, {
|
|
21492
|
+
width: 30,
|
|
21493
|
+
src: val
|
|
21494
|
+
});
|
|
21495
|
+
},
|
|
21496
|
+
headerComponentType: 'pic'
|
|
21497
|
+
}, {
|
|
21498
|
+
dataIndex: 'name',
|
|
21499
|
+
title: "\u5546\u54C1\u540D\u79F0",
|
|
21500
|
+
width: 250,
|
|
21501
|
+
align: 'center',
|
|
21502
|
+
ellipsis: true,
|
|
21503
|
+
render: renderTextEllipsis
|
|
21504
|
+
}, {
|
|
21505
|
+
dataIndex: 'skuId',
|
|
21506
|
+
title: "\u5546\u54C1\u7F16\u7801",
|
|
21507
|
+
width: 200,
|
|
21508
|
+
align: 'center',
|
|
21509
|
+
ellipsis: true,
|
|
21510
|
+
render: renderTextEllipsis
|
|
21511
|
+
}, {
|
|
21512
|
+
dataIndex: 'propertiesValue',
|
|
21513
|
+
title: "\u89C4\u683C\u5C5E\u6027\u503C",
|
|
21514
|
+
width: 200,
|
|
21515
|
+
align: 'center',
|
|
21516
|
+
ellipsis: true,
|
|
21517
|
+
render: renderTextEllipsis
|
|
21518
|
+
}, {
|
|
21519
|
+
dataIndex: 'qty',
|
|
21520
|
+
title: "\u7533\u8BF7\u6570\u91CF",
|
|
21521
|
+
width: 150,
|
|
21522
|
+
align: 'center',
|
|
21523
|
+
ellipsis: true,
|
|
21524
|
+
render: renderTextEllipsis
|
|
21525
|
+
}, {
|
|
21526
|
+
dataIndex: 'rQty',
|
|
21527
|
+
title: "\u5B9E\u6536\u9000\u8D27\u6570\u91CF",
|
|
21528
|
+
width: 150,
|
|
21529
|
+
align: 'center',
|
|
21530
|
+
ellipsis: true,
|
|
21531
|
+
render: renderTextEllipsis
|
|
21532
|
+
}, {
|
|
21533
|
+
dataIndex: 'defectiveQty',
|
|
21534
|
+
title: "\u6B21\u54C1\u6570\u91CF",
|
|
21535
|
+
width: 150,
|
|
21536
|
+
align: 'center',
|
|
21537
|
+
ellipsis: true,
|
|
21538
|
+
render: renderTextEllipsis
|
|
21539
|
+
}, {
|
|
21540
|
+
dataIndex: 'amount',
|
|
21541
|
+
title: "\u7533\u8BF7\u91D1\u989D",
|
|
21542
|
+
width: 150,
|
|
21543
|
+
align: 'center',
|
|
21544
|
+
ellipsis: true,
|
|
21545
|
+
render: renderTextEllipsis
|
|
21546
|
+
}, {
|
|
21547
|
+
dataIndex: 'shopAmount',
|
|
21548
|
+
title: "\u7EBF\u4E0A\u660E\u7EC6\u91D1\u989D",
|
|
21549
|
+
width: 150,
|
|
21550
|
+
align: 'center',
|
|
21551
|
+
ellipsis: true,
|
|
21552
|
+
render: renderTextEllipsis
|
|
21553
|
+
}, {
|
|
21554
|
+
dataIndex: 'price',
|
|
21555
|
+
title: "\u5355\u4EF7",
|
|
21556
|
+
width: 150,
|
|
21557
|
+
align: 'center',
|
|
21558
|
+
ellipsis: true,
|
|
21559
|
+
render: renderTextEllipsis
|
|
21560
|
+
}, {
|
|
21561
|
+
dataIndex: 'combineSkuId',
|
|
21562
|
+
title: "\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
|
|
21563
|
+
width: 250,
|
|
21564
|
+
align: 'center',
|
|
21565
|
+
ellipsis: true,
|
|
21566
|
+
render: renderTextEllipsis
|
|
21567
|
+
}, {
|
|
21568
|
+
dataIndex: 'shopSkuId',
|
|
21569
|
+
title: "\u5E97\u94FA\u5546\u54C1\u7F16\u7801",
|
|
21570
|
+
width: 200,
|
|
21571
|
+
align: 'center',
|
|
21572
|
+
ellipsis: true,
|
|
21573
|
+
render: renderTextEllipsis
|
|
21574
|
+
}, {
|
|
21575
|
+
dataIndex: 'iId',
|
|
21576
|
+
title: "\u6B3E\u5F0F\u7F16\u7801",
|
|
21577
|
+
width: 200,
|
|
21578
|
+
align: 'center',
|
|
21579
|
+
ellipsis: true,
|
|
21580
|
+
render: renderTextEllipsis
|
|
21581
|
+
}, {
|
|
21582
|
+
dataIndex: 'type',
|
|
21583
|
+
title: "\u552E\u540E\u7C7B\u578B",
|
|
21584
|
+
width: 150,
|
|
21585
|
+
align: 'center',
|
|
21586
|
+
ellipsis: true,
|
|
21587
|
+
render: renderTextEllipsis
|
|
21588
|
+
}, {
|
|
21589
|
+
dataIndex: 'skuType',
|
|
21590
|
+
title: "\u5546\u54C1\u7C7B\u578B",
|
|
21591
|
+
width: 150,
|
|
21592
|
+
align: 'center',
|
|
21593
|
+
ellipsis: true,
|
|
21594
|
+
render: renderTextEllipsis
|
|
21595
|
+
}, {
|
|
21596
|
+
dataIndex: 'isGift',
|
|
21597
|
+
title: '是否赠品',
|
|
21598
|
+
width: 100,
|
|
21599
|
+
render: function render(val) {
|
|
21600
|
+
return /*#__PURE__*/React__default['default'].createElement("span", null, typeof val !== 'boolean' ? '' : val ? '是' : '否');
|
|
21601
|
+
},
|
|
21602
|
+
headerMapping: {
|
|
21603
|
+
transformValue: function transformValue(val) {
|
|
21604
|
+
return typeof val !== 'boolean' ? '' : val ? '是' : '否';
|
|
21605
|
+
},
|
|
21606
|
+
renderExport: function renderExport(val) {
|
|
21607
|
+
return typeof val !== 'boolean' ? '' : val ? '是' : '否';
|
|
21608
|
+
}
|
|
21609
|
+
}
|
|
21610
|
+
}, {
|
|
21611
|
+
dataIndex: 'receiveDate',
|
|
21612
|
+
title: "\u5165\u4ED3\u65F6\u95F4",
|
|
21613
|
+
width: 200,
|
|
21614
|
+
align: 'center',
|
|
21615
|
+
ellipsis: true,
|
|
21616
|
+
render: renderTextEllipsis
|
|
21617
|
+
}, {
|
|
21618
|
+
dataIndex: 'remark',
|
|
21619
|
+
title: "\u660E\u7EC6\u5907\u6CE8",
|
|
21620
|
+
width: 200,
|
|
21621
|
+
align: 'center',
|
|
21622
|
+
ellipsis: true,
|
|
21623
|
+
render: renderTextEllipsis
|
|
21624
|
+
}]
|
|
21625
|
+
};
|
|
21626
|
+
};
|
|
21627
|
+
|
|
21628
|
+
function toNum$3(value) {
|
|
21629
|
+
if (typeof value === 'string') {
|
|
21630
|
+
return value ? +value : void 0;
|
|
21631
|
+
}
|
|
21632
|
+
if (typeof value === 'number') {
|
|
21633
|
+
return value;
|
|
21634
|
+
}
|
|
21635
|
+
return void 0;
|
|
21636
|
+
}
|
|
21637
|
+
var getColumns$6 = function getColumns(_ref) {
|
|
21638
|
+
var _ref$text = _ref.text,
|
|
21639
|
+
disabled = _ref.disabled,
|
|
21640
|
+
updateHandle = _ref.updateHandle;
|
|
21641
|
+
return {
|
|
21642
|
+
KM_GOODS: [{
|
|
21643
|
+
dataIndex: 'skuPropertiesName',
|
|
21644
|
+
title: "\u89C4\u683C\u540D\u79F0",
|
|
21645
|
+
width: 250,
|
|
21646
|
+
render: renderTextEllipsis
|
|
21647
|
+
}, {
|
|
21648
|
+
dataIndex: 'sysTitle',
|
|
21649
|
+
title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
|
|
21650
|
+
width: 150,
|
|
21651
|
+
render: renderTextEllipsis
|
|
21652
|
+
}, {
|
|
21653
|
+
dataIndex: 'title',
|
|
21654
|
+
title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
|
|
21655
|
+
width: 150,
|
|
21656
|
+
render: renderTextEllipsis
|
|
21657
|
+
}, {
|
|
21658
|
+
dataIndex: 'shortTitle',
|
|
21659
|
+
title: "\u5546\u54C1\u7B80\u79F0",
|
|
21660
|
+
width: 150,
|
|
21661
|
+
render: renderTextEllipsis
|
|
21662
|
+
}, {
|
|
21663
|
+
dataIndex: 'sysOuterId',
|
|
21664
|
+
title: "\u7CFB\u7EDF\u5546\u5BB6\u7F16\u7801",
|
|
21665
|
+
width: 150,
|
|
21666
|
+
render: renderTextEllipsis
|
|
21667
|
+
}, {
|
|
21668
|
+
dataIndex: 'skuSysId',
|
|
21669
|
+
title: "\u7CFB\u7EDF\u89C4\u683CID",
|
|
20547
21670
|
width: 150,
|
|
20548
|
-
ellipsis: true,
|
|
20549
|
-
align: 'center',
|
|
20550
|
-
render: function render(val, record, index) {
|
|
20551
|
-
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
20552
|
-
style: {
|
|
20553
|
-
width: 70
|
|
20554
|
-
},
|
|
20555
|
-
value: val,
|
|
20556
|
-
onChange: function onChange(e) {
|
|
20557
|
-
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(e.target.value, index, 'remark');
|
|
20558
|
-
}
|
|
20559
|
-
}) : renderTextEllipsis(val);
|
|
20560
|
-
}
|
|
20561
|
-
}],
|
|
20562
|
-
JST_RETURN_GOODS: [{
|
|
20563
|
-
dataIndex: 'name',
|
|
20564
|
-
title: '商品名称',
|
|
20565
21671
|
render: renderTextEllipsis
|
|
20566
21672
|
}, {
|
|
20567
21673
|
dataIndex: 'skuId',
|
|
20568
|
-
title:
|
|
21674
|
+
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
21675
|
+
width: 170,
|
|
20569
21676
|
render: renderTextEllipsis
|
|
20570
21677
|
}, {
|
|
20571
|
-
dataIndex: '
|
|
20572
|
-
title:
|
|
21678
|
+
dataIndex: 'outerSkuId',
|
|
21679
|
+
title: "\u5E73\u53F0\u89C4\u683C\u7F16\u7801",
|
|
21680
|
+
width: 170,
|
|
20573
21681
|
render: renderTextEllipsis
|
|
20574
21682
|
}, {
|
|
20575
|
-
dataIndex: '
|
|
20576
|
-
title:
|
|
21683
|
+
dataIndex: 'itemSysId',
|
|
21684
|
+
title: "\u7CFB\u7EDF\u5546\u54C1ID",
|
|
21685
|
+
width: 150,
|
|
21686
|
+
render: renderTextEllipsis
|
|
21687
|
+
}, {
|
|
21688
|
+
dataIndex: 'sysPicPath',
|
|
21689
|
+
title: "\u5546\u54C1\u56FE\u7247",
|
|
20577
21690
|
width: 100,
|
|
20578
21691
|
render: function render(val) {
|
|
20579
|
-
|
|
21692
|
+
var imgUrl = (val === null || val === void 0 ? void 0 : val.startsWith('http')) ? val : "https://erp.superboss.cc".concat(val);
|
|
21693
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Image, {
|
|
20580
21694
|
width: 30,
|
|
20581
|
-
src:
|
|
21695
|
+
src: imgUrl
|
|
20582
21696
|
});
|
|
20583
21697
|
}
|
|
20584
21698
|
}, {
|
|
20585
|
-
dataIndex: '
|
|
20586
|
-
title:
|
|
20587
|
-
|
|
20588
|
-
}, {
|
|
20589
|
-
dataIndex: 'saleBasePrice',
|
|
20590
|
-
title: '原价',
|
|
20591
|
-
render: function render(price) {
|
|
20592
|
-
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
20593
|
-
}
|
|
20594
|
-
}, {
|
|
20595
|
-
dataIndex: 'salePrice',
|
|
20596
|
-
title: '单价',
|
|
20597
|
-
width: 120,
|
|
20598
|
-
validator: function validator(_rule, value) {
|
|
20599
|
-
var goodsName = '';
|
|
20600
|
-
if (((value === null || value === void 0 ? void 0 : value.jstReturnGoods) || []).some(function (goods) {
|
|
20601
|
-
var v = toNum$2(goods === null || goods === void 0 ? void 0 : goods.salePrice);
|
|
20602
|
-
var res = typeof v === 'number' ? v < 0 : true;
|
|
20603
|
-
if (res) {
|
|
20604
|
-
goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
|
|
20605
|
-
}
|
|
20606
|
-
return res;
|
|
20607
|
-
})) {
|
|
20608
|
-
return Promise.reject("".concat(goodsName, "\u5355\u4EF7\u4E3A\u5927\u4E8E\u7B49\u4E8E0\u7684\u6570"));
|
|
20609
|
-
}
|
|
20610
|
-
},
|
|
21699
|
+
dataIndex: 'num',
|
|
21700
|
+
title: "\u6570\u91CF",
|
|
21701
|
+
width: 100,
|
|
20611
21702
|
render: function render(val, record, index) {
|
|
20612
|
-
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
21703
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
20613
21704
|
style: {
|
|
20614
21705
|
width: 70
|
|
20615
21706
|
},
|
|
20616
21707
|
value: val,
|
|
20617
|
-
min:
|
|
20618
|
-
precision:
|
|
21708
|
+
min: 1,
|
|
21709
|
+
precision: 0,
|
|
20619
21710
|
onChange: function onChange(num) {
|
|
20620
|
-
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, '
|
|
21711
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'num');
|
|
20621
21712
|
}
|
|
20622
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val
|
|
21713
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
20623
21714
|
}
|
|
20624
21715
|
}, {
|
|
20625
|
-
dataIndex: '
|
|
20626
|
-
title:
|
|
20627
|
-
width:
|
|
20628
|
-
validator: function validator(_rule, value) {
|
|
20629
|
-
var goodsName = '';
|
|
20630
|
-
if (((value === null || value === void 0 ? void 0 : value.jstReturnGoods) || []).some(function (goods) {
|
|
20631
|
-
var qty = toNum$2(goods === null || goods === void 0 ? void 0 : goods.qty);
|
|
20632
|
-
var res = typeof qty === 'number' ? qty < 1 : true;
|
|
20633
|
-
if (res) {
|
|
20634
|
-
goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
|
|
20635
|
-
}
|
|
20636
|
-
return res;
|
|
20637
|
-
})) {
|
|
20638
|
-
return Promise.reject("".concat(goodsName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
20639
|
-
}
|
|
20640
|
-
},
|
|
21716
|
+
dataIndex: 'payment',
|
|
21717
|
+
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
21718
|
+
width: 150,
|
|
20641
21719
|
render: function render(val, record, index) {
|
|
20642
|
-
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
21720
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
20643
21721
|
style: {
|
|
20644
|
-
width:
|
|
21722
|
+
width: 130
|
|
20645
21723
|
},
|
|
20646
21724
|
value: val,
|
|
20647
|
-
min:
|
|
20648
|
-
precision:
|
|
21725
|
+
min: 0,
|
|
21726
|
+
precision: 2,
|
|
20649
21727
|
onChange: function onChange(num) {
|
|
20650
|
-
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, '
|
|
21728
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'payment');
|
|
20651
21729
|
}
|
|
20652
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
21730
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
|
|
20653
21731
|
}
|
|
20654
21732
|
}, {
|
|
20655
|
-
dataIndex: '
|
|
20656
|
-
title:
|
|
20657
|
-
|
|
20658
|
-
|
|
21733
|
+
dataIndex: 'price',
|
|
21734
|
+
title: "\u5546\u54C1\u9500\u552E\u4EF7",
|
|
21735
|
+
width: 150,
|
|
21736
|
+
render: function render(val) {
|
|
21737
|
+
return val || val === 0 ? Number(val).toFixed(2) : '';
|
|
20659
21738
|
}
|
|
20660
21739
|
}, {
|
|
20661
|
-
dataIndex: '
|
|
20662
|
-
title:
|
|
21740
|
+
dataIndex: 'type',
|
|
21741
|
+
title: "\u5546\u54C1\u7C7B\u578B",
|
|
21742
|
+
width: 150,
|
|
20663
21743
|
render: renderTextEllipsis
|
|
20664
21744
|
}, {
|
|
20665
|
-
dataIndex: '
|
|
20666
|
-
title:
|
|
20667
|
-
width:
|
|
20668
|
-
render:
|
|
20669
|
-
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
20670
|
-
value: val,
|
|
20671
|
-
onChange: function onChange(value) {
|
|
20672
|
-
updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(value, index, 'isGift');
|
|
20673
|
-
},
|
|
20674
|
-
options: [{
|
|
20675
|
-
label: '是',
|
|
20676
|
-
value: true
|
|
20677
|
-
}, {
|
|
20678
|
-
label: '否',
|
|
20679
|
-
value: false
|
|
20680
|
-
}]
|
|
20681
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, typeof val !== 'boolean' ? '' : val ? '是' : '否');
|
|
20682
|
-
}
|
|
21745
|
+
dataIndex: 'supplierName',
|
|
21746
|
+
title: "\u4F9B\u5E94\u5546\u540D\u79F0",
|
|
21747
|
+
width: 150,
|
|
21748
|
+
render: renderTextEllipsis
|
|
20683
21749
|
}, {
|
|
20684
|
-
dataIndex: '
|
|
20685
|
-
title:
|
|
20686
|
-
|
|
20687
|
-
|
|
20688
|
-
|
|
20689
|
-
|
|
20690
|
-
|
|
20691
|
-
|
|
20692
|
-
|
|
20693
|
-
|
|
20694
|
-
|
|
20695
|
-
|
|
20696
|
-
|
|
21750
|
+
dataIndex: 'supplierCode',
|
|
21751
|
+
title: "\u4F9B\u5E94\u5546\u7F16\u7801",
|
|
21752
|
+
width: 150,
|
|
21753
|
+
render: renderTextEllipsis
|
|
21754
|
+
}].map(function (item) {
|
|
21755
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
21756
|
+
align: 'center',
|
|
21757
|
+
ellipsis: true
|
|
21758
|
+
});
|
|
21759
|
+
}),
|
|
21760
|
+
KM_REISSUE_GOODS: [{
|
|
21761
|
+
dataIndex: 'skuPropertiesName',
|
|
21762
|
+
title: "\u89C4\u683C\u540D\u79F0",
|
|
21763
|
+
width: 250,
|
|
21764
|
+
render: renderTextEllipsis
|
|
20697
21765
|
}, {
|
|
20698
|
-
dataIndex: '
|
|
20699
|
-
title:
|
|
20700
|
-
width:
|
|
21766
|
+
dataIndex: 'sysTitle',
|
|
21767
|
+
title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
|
|
21768
|
+
width: 150,
|
|
20701
21769
|
render: renderTextEllipsis
|
|
20702
|
-
}
|
|
20703
|
-
|
|
20704
|
-
|
|
20705
|
-
|
|
21770
|
+
}, {
|
|
21771
|
+
dataIndex: 'shortTitle',
|
|
21772
|
+
title: "\u5546\u54C1\u7B80\u79F0",
|
|
21773
|
+
width: 150,
|
|
20706
21774
|
render: renderTextEllipsis
|
|
20707
21775
|
}, {
|
|
20708
|
-
dataIndex: '
|
|
20709
|
-
title:
|
|
21776
|
+
dataIndex: 'title',
|
|
21777
|
+
title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
|
|
21778
|
+
width: 150,
|
|
20710
21779
|
render: renderTextEllipsis
|
|
20711
21780
|
}, {
|
|
20712
|
-
dataIndex: '
|
|
20713
|
-
title:
|
|
21781
|
+
dataIndex: 'sysOuterId',
|
|
21782
|
+
title: "\u7CFB\u7EDF\u5546\u5BB6\u7F16\u7801",
|
|
21783
|
+
width: 150,
|
|
20714
21784
|
render: renderTextEllipsis
|
|
20715
21785
|
}, {
|
|
20716
|
-
dataIndex: '
|
|
20717
|
-
title:
|
|
20718
|
-
width:
|
|
20719
|
-
render:
|
|
20720
|
-
return /*#__PURE__*/React__default['default'].createElement(ApaasImage, {
|
|
20721
|
-
width: 30,
|
|
20722
|
-
src: val
|
|
20723
|
-
});
|
|
20724
|
-
}
|
|
21786
|
+
dataIndex: 'itemSysId',
|
|
21787
|
+
title: "\u7CFB\u7EDF\u5546\u54C1ID",
|
|
21788
|
+
width: 150,
|
|
21789
|
+
render: renderTextEllipsis
|
|
20725
21790
|
}, {
|
|
20726
|
-
dataIndex: '
|
|
20727
|
-
title:
|
|
21791
|
+
dataIndex: 'skuSysId',
|
|
21792
|
+
title: "\u7CFB\u7EDF\u89C4\u683CID",
|
|
21793
|
+
width: 150,
|
|
20728
21794
|
render: renderTextEllipsis
|
|
20729
21795
|
}, {
|
|
20730
|
-
dataIndex: '
|
|
20731
|
-
title:
|
|
20732
|
-
|
|
20733
|
-
|
|
20734
|
-
}
|
|
21796
|
+
dataIndex: 'skuId',
|
|
21797
|
+
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
21798
|
+
width: 170,
|
|
21799
|
+
render: renderTextEllipsis
|
|
20735
21800
|
}, {
|
|
20736
|
-
dataIndex: '
|
|
20737
|
-
title:
|
|
20738
|
-
width:
|
|
21801
|
+
dataIndex: 'outerSkuId',
|
|
21802
|
+
title: "\u5E73\u53F0\u89C4\u683C\u7F16\u7801",
|
|
21803
|
+
width: 170,
|
|
21804
|
+
render: renderTextEllipsis
|
|
21805
|
+
}, {
|
|
21806
|
+
dataIndex: 'realNum',
|
|
21807
|
+
title: "\u5B9E\u9645\u8865\u53D1\u6570\u91CF",
|
|
21808
|
+
width: 100,
|
|
21809
|
+
validator: function validator(_rule, value) {
|
|
21810
|
+
var title = '';
|
|
21811
|
+
if (((value === null || value === void 0 ? void 0 : value.kmReissueGoods) || []).some(function (goods) {
|
|
21812
|
+
var realNum = toNum$3(goods === null || goods === void 0 ? void 0 : goods.realNum);
|
|
21813
|
+
var res = typeof realNum === 'number' ? realNum < 1 : true;
|
|
21814
|
+
if (res) {
|
|
21815
|
+
title = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
|
|
21816
|
+
}
|
|
21817
|
+
return res;
|
|
21818
|
+
})) {
|
|
21819
|
+
return Promise.reject("".concat(title, "\u5B9E\u9645\u8865\u53D1\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
21820
|
+
}
|
|
21821
|
+
},
|
|
20739
21822
|
render: function render(val, record, index) {
|
|
20740
|
-
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
21823
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
20741
21824
|
style: {
|
|
20742
21825
|
width: 70
|
|
20743
21826
|
},
|
|
20744
21827
|
value: val,
|
|
20745
|
-
min:
|
|
20746
|
-
precision:
|
|
21828
|
+
min: 1,
|
|
21829
|
+
precision: 0,
|
|
20747
21830
|
onChange: function onChange(num) {
|
|
20748
|
-
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, '
|
|
21831
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'realNum');
|
|
20749
21832
|
}
|
|
20750
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val
|
|
21833
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
20751
21834
|
}
|
|
20752
21835
|
}, {
|
|
20753
|
-
dataIndex: '
|
|
20754
|
-
title:
|
|
21836
|
+
dataIndex: 'desiredNum',
|
|
21837
|
+
title: "\u5E94\u8865\u53D1\u6570\u91CF",
|
|
20755
21838
|
width: 100,
|
|
20756
21839
|
render: function render(val, record, index) {
|
|
20757
|
-
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
21840
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
20758
21841
|
style: {
|
|
20759
21842
|
width: 70
|
|
20760
21843
|
},
|
|
@@ -20762,281 +21845,194 @@ var getColumns$5 = function getColumns() {
|
|
|
20762
21845
|
min: 1,
|
|
20763
21846
|
precision: 0,
|
|
20764
21847
|
onChange: function onChange(num) {
|
|
20765
|
-
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, '
|
|
21848
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'desiredNum');
|
|
20766
21849
|
}
|
|
20767
21850
|
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
20768
21851
|
}
|
|
20769
21852
|
}, {
|
|
20770
|
-
dataIndex: '
|
|
20771
|
-
title:
|
|
20772
|
-
|
|
20773
|
-
|
|
20774
|
-
|
|
20775
|
-
}, {
|
|
20776
|
-
dataIndex: 'isGift',
|
|
20777
|
-
title: '是否赠品',
|
|
20778
|
-
width: 100,
|
|
20779
|
-
render: function render(val, record, index) {
|
|
20780
|
-
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
20781
|
-
value: val,
|
|
20782
|
-
onChange: function onChange(value) {
|
|
20783
|
-
updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(value, index, 'isGift');
|
|
20784
|
-
},
|
|
20785
|
-
options: [{
|
|
20786
|
-
label: '是',
|
|
20787
|
-
value: true
|
|
20788
|
-
}, {
|
|
20789
|
-
label: '否',
|
|
20790
|
-
value: false
|
|
20791
|
-
}]
|
|
20792
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, typeof val !== 'boolean' ? '' : val ? '是' : '否');
|
|
21853
|
+
dataIndex: 'price',
|
|
21854
|
+
title: "\u5546\u54C1\u9500\u552E\u4EF7",
|
|
21855
|
+
width: 150,
|
|
21856
|
+
render: function render(val) {
|
|
21857
|
+
return val || val === 0 ? Number(val).toFixed(2) : '';
|
|
20793
21858
|
}
|
|
20794
21859
|
}, {
|
|
20795
|
-
dataIndex: '
|
|
20796
|
-
title:
|
|
21860
|
+
dataIndex: 'payment',
|
|
21861
|
+
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
21862
|
+
width: 150,
|
|
20797
21863
|
render: function render(val, record, index) {
|
|
20798
|
-
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.
|
|
21864
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
20799
21865
|
style: {
|
|
20800
|
-
width:
|
|
21866
|
+
width: 130
|
|
20801
21867
|
},
|
|
20802
21868
|
value: val,
|
|
20803
|
-
|
|
20804
|
-
|
|
21869
|
+
min: 0,
|
|
21870
|
+
precision: 2,
|
|
21871
|
+
onChange: function onChange(num) {
|
|
21872
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'payment');
|
|
20805
21873
|
}
|
|
20806
|
-
}) :
|
|
21874
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
|
|
20807
21875
|
}
|
|
20808
|
-
}
|
|
20809
|
-
|
|
20810
|
-
|
|
20811
|
-
|
|
20812
|
-
title: "\u805A\u6C34\u6F6D\u552E\u540E\u5355\u53F7",
|
|
20813
|
-
width: 200,
|
|
20814
|
-
align: 'center',
|
|
20815
|
-
ellipsis: true,
|
|
21876
|
+
}, {
|
|
21877
|
+
dataIndex: 'type',
|
|
21878
|
+
title: "\u5546\u54C1\u7C7B\u578B",
|
|
21879
|
+
width: 150,
|
|
20816
21880
|
render: renderTextEllipsis
|
|
20817
21881
|
}, {
|
|
20818
|
-
dataIndex: '
|
|
20819
|
-
title: "\
|
|
20820
|
-
width:
|
|
20821
|
-
align: 'center',
|
|
20822
|
-
ellipsis: true,
|
|
21882
|
+
dataIndex: 'supplierName',
|
|
21883
|
+
title: "\u4F9B\u5E94\u5546\u540D\u79F0",
|
|
21884
|
+
width: 150,
|
|
20823
21885
|
render: renderTextEllipsis
|
|
20824
21886
|
}, {
|
|
20825
|
-
dataIndex: '
|
|
20826
|
-
title: "\
|
|
20827
|
-
width:
|
|
20828
|
-
align: 'center',
|
|
20829
|
-
ellipsis: true,
|
|
21887
|
+
dataIndex: 'supplierCode',
|
|
21888
|
+
title: "\u4F9B\u5E94\u5546\u7F16\u7801",
|
|
21889
|
+
width: 150,
|
|
20830
21890
|
render: renderTextEllipsis
|
|
20831
21891
|
}, {
|
|
20832
|
-
dataIndex: '
|
|
20833
|
-
title: "\u56FE\u7247",
|
|
21892
|
+
dataIndex: 'sysPicPath',
|
|
21893
|
+
title: "\u5546\u54C1\u56FE\u7247",
|
|
20834
21894
|
width: 100,
|
|
20835
|
-
align: 'center',
|
|
20836
21895
|
render: function render(val) {
|
|
20837
|
-
|
|
21896
|
+
var imgUrl = (val === null || val === void 0 ? void 0 : val.startsWith('http')) ? val : "https://erp.superboss.cc".concat(val);
|
|
21897
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Image, {
|
|
20838
21898
|
width: 30,
|
|
20839
|
-
src:
|
|
21899
|
+
src: imgUrl
|
|
20840
21900
|
});
|
|
20841
|
-
}
|
|
20842
|
-
|
|
20843
|
-
|
|
20844
|
-
|
|
20845
|
-
|
|
20846
|
-
|
|
20847
|
-
|
|
20848
|
-
|
|
20849
|
-
|
|
20850
|
-
|
|
20851
|
-
|
|
20852
|
-
|
|
20853
|
-
|
|
20854
|
-
|
|
20855
|
-
|
|
20856
|
-
|
|
20857
|
-
|
|
20858
|
-
|
|
20859
|
-
|
|
20860
|
-
|
|
20861
|
-
|
|
20862
|
-
|
|
20863
|
-
|
|
20864
|
-
|
|
20865
|
-
|
|
20866
|
-
|
|
20867
|
-
|
|
21901
|
+
}
|
|
21902
|
+
}].map(function (item) {
|
|
21903
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
21904
|
+
align: 'center',
|
|
21905
|
+
ellipsis: true
|
|
21906
|
+
});
|
|
21907
|
+
})
|
|
21908
|
+
};
|
|
21909
|
+
};
|
|
21910
|
+
|
|
21911
|
+
var isNumberOrNumberString$2 = function isNumberOrNumberString(value) {
|
|
21912
|
+
if (typeof value === 'number') return true;
|
|
21913
|
+
if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
|
|
21914
|
+
return false;
|
|
21915
|
+
};
|
|
21916
|
+
function toNum$4(value) {
|
|
21917
|
+
if (typeof value === 'string') {
|
|
21918
|
+
return value ? +value : void 0;
|
|
21919
|
+
}
|
|
21920
|
+
if (typeof value === 'number') {
|
|
21921
|
+
return value;
|
|
21922
|
+
}
|
|
21923
|
+
return void 0;
|
|
21924
|
+
}
|
|
21925
|
+
var getColumns$7 = function getColumns(_ref) {
|
|
21926
|
+
var _ref$text = _ref.text,
|
|
21927
|
+
disabled = _ref.disabled,
|
|
21928
|
+
updateHandle = _ref.updateHandle,
|
|
21929
|
+
updateDataHandle = _ref.updateDataHandle;
|
|
21930
|
+
return {
|
|
21931
|
+
//巨益商品信息
|
|
21932
|
+
JY_GOODS: [{
|
|
21933
|
+
dataIndex: 'productName',
|
|
21934
|
+
title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
|
|
20868
21935
|
align: 'center',
|
|
20869
21936
|
ellipsis: true,
|
|
20870
|
-
render: renderTextEllipsis
|
|
20871
|
-
}, {
|
|
20872
|
-
dataIndex: 'rQty',
|
|
20873
|
-
title: "\u5B9E\u6536\u9000\u8D27\u6570\u91CF",
|
|
20874
21937
|
width: 150,
|
|
20875
|
-
align: 'center',
|
|
20876
|
-
ellipsis: true,
|
|
20877
21938
|
render: renderTextEllipsis
|
|
20878
21939
|
}, {
|
|
20879
|
-
dataIndex: '
|
|
20880
|
-
title: "\
|
|
20881
|
-
width: 150,
|
|
21940
|
+
dataIndex: 'productCode',
|
|
21941
|
+
title: "\u7CFB\u7EDF\u5546\u54C1\u7F16\u7801",
|
|
20882
21942
|
align: 'center',
|
|
20883
21943
|
ellipsis: true,
|
|
20884
|
-
render: renderTextEllipsis
|
|
20885
|
-
}, {
|
|
20886
|
-
dataIndex: 'amount',
|
|
20887
|
-
title: "\u7533\u8BF7\u91D1\u989D",
|
|
20888
21944
|
width: 150,
|
|
20889
|
-
align: 'center',
|
|
20890
|
-
ellipsis: true,
|
|
20891
21945
|
render: renderTextEllipsis
|
|
20892
21946
|
}, {
|
|
20893
|
-
dataIndex: '
|
|
20894
|
-
title: "\
|
|
20895
|
-
width: 150,
|
|
21947
|
+
dataIndex: 'productId',
|
|
21948
|
+
title: "\u7CFB\u7EDF\u5546\u54C1ID",
|
|
20896
21949
|
align: 'center',
|
|
20897
21950
|
ellipsis: true,
|
|
20898
|
-
render: renderTextEllipsis
|
|
20899
|
-
}, {
|
|
20900
|
-
dataIndex: 'price',
|
|
20901
|
-
title: "\u5355\u4EF7",
|
|
20902
21951
|
width: 150,
|
|
20903
|
-
align: 'center',
|
|
20904
|
-
ellipsis: true,
|
|
20905
|
-
render: renderTextEllipsis
|
|
20906
|
-
}, {
|
|
20907
|
-
dataIndex: 'combineSkuId',
|
|
20908
|
-
title: "\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
|
|
20909
|
-
width: 250,
|
|
20910
|
-
align: 'center',
|
|
20911
|
-
ellipsis: true,
|
|
20912
|
-
render: renderTextEllipsis
|
|
20913
|
-
}, {
|
|
20914
|
-
dataIndex: 'shopSkuId',
|
|
20915
|
-
title: "\u5E97\u94FA\u5546\u54C1\u7F16\u7801",
|
|
20916
|
-
width: 200,
|
|
20917
|
-
align: 'center',
|
|
20918
|
-
ellipsis: true,
|
|
20919
|
-
render: renderTextEllipsis
|
|
20920
|
-
}, {
|
|
20921
|
-
dataIndex: 'iId',
|
|
20922
|
-
title: "\u6B3E\u5F0F\u7F16\u7801",
|
|
20923
|
-
width: 200,
|
|
20924
|
-
align: 'center',
|
|
20925
|
-
ellipsis: true,
|
|
20926
21952
|
render: renderTextEllipsis
|
|
20927
21953
|
}, {
|
|
20928
|
-
dataIndex: '
|
|
20929
|
-
title: "\
|
|
20930
|
-
width: 150,
|
|
21954
|
+
dataIndex: 'skuName',
|
|
21955
|
+
title: "\u7CFB\u7EDF\u89C4\u683C\u540D\u79F0",
|
|
20931
21956
|
align: 'center',
|
|
20932
21957
|
ellipsis: true,
|
|
20933
|
-
render: renderTextEllipsis
|
|
20934
|
-
}, {
|
|
20935
|
-
dataIndex: 'skuType',
|
|
20936
|
-
title: "\u5546\u54C1\u7C7B\u578B",
|
|
20937
21958
|
width: 150,
|
|
20938
|
-
align: 'center',
|
|
20939
|
-
ellipsis: true,
|
|
20940
21959
|
render: renderTextEllipsis
|
|
20941
21960
|
}, {
|
|
20942
|
-
dataIndex: '
|
|
20943
|
-
title:
|
|
20944
|
-
width: 100,
|
|
20945
|
-
render: function render(val) {
|
|
20946
|
-
return /*#__PURE__*/React__default['default'].createElement("span", null, typeof val !== 'boolean' ? '' : val ? '是' : '否');
|
|
20947
|
-
},
|
|
20948
|
-
headerMapping: {
|
|
20949
|
-
transformValue: function transformValue(val) {
|
|
20950
|
-
return typeof val !== 'boolean' ? '' : val ? '是' : '否';
|
|
20951
|
-
},
|
|
20952
|
-
renderExport: function renderExport(val) {
|
|
20953
|
-
return typeof val !== 'boolean' ? '' : val ? '是' : '否';
|
|
20954
|
-
}
|
|
20955
|
-
}
|
|
20956
|
-
}, {
|
|
20957
|
-
dataIndex: 'receiveDate',
|
|
20958
|
-
title: "\u5165\u4ED3\u65F6\u95F4",
|
|
20959
|
-
width: 200,
|
|
21961
|
+
dataIndex: 'skuCode',
|
|
21962
|
+
title: "\u7CFB\u7EDF\u89C4\u683C\u7F16\u7801",
|
|
20960
21963
|
align: 'center',
|
|
20961
21964
|
ellipsis: true,
|
|
21965
|
+
width: 150,
|
|
20962
21966
|
render: renderTextEllipsis
|
|
20963
21967
|
}, {
|
|
20964
|
-
dataIndex: '
|
|
20965
|
-
title: "\
|
|
20966
|
-
width: 200,
|
|
21968
|
+
dataIndex: 'specId',
|
|
21969
|
+
title: "\u89C4\u683CID",
|
|
20967
21970
|
align: 'center',
|
|
20968
21971
|
ellipsis: true,
|
|
20969
|
-
render: renderTextEllipsis
|
|
20970
|
-
}]
|
|
20971
|
-
};
|
|
20972
|
-
};
|
|
20973
|
-
|
|
20974
|
-
function toNum$3(value) {
|
|
20975
|
-
if (typeof value === 'string') {
|
|
20976
|
-
return value ? +value : void 0;
|
|
20977
|
-
}
|
|
20978
|
-
if (typeof value === 'number') {
|
|
20979
|
-
return value;
|
|
20980
|
-
}
|
|
20981
|
-
return void 0;
|
|
20982
|
-
}
|
|
20983
|
-
var getColumns$6 = function getColumns(_ref) {
|
|
20984
|
-
var _ref$text = _ref.text,
|
|
20985
|
-
disabled = _ref.disabled,
|
|
20986
|
-
updateHandle = _ref.updateHandle;
|
|
20987
|
-
return {
|
|
20988
|
-
KM_GOODS: [{
|
|
20989
|
-
dataIndex: 'skuPropertiesName',
|
|
20990
|
-
title: "\u89C4\u683C\u540D\u79F0",
|
|
20991
|
-
width: 250,
|
|
20992
|
-
render: renderTextEllipsis
|
|
20993
|
-
}, {
|
|
20994
|
-
dataIndex: 'sysTitle',
|
|
20995
|
-
title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
|
|
20996
21972
|
width: 150,
|
|
20997
21973
|
render: renderTextEllipsis
|
|
20998
21974
|
}, {
|
|
20999
|
-
dataIndex: '
|
|
21000
|
-
title: "\
|
|
21975
|
+
dataIndex: 'goodsClass',
|
|
21976
|
+
title: "\u8D27\u54C1\u7C7B\u522B",
|
|
21001
21977
|
width: 150,
|
|
21002
21978
|
render: renderTextEllipsis
|
|
21003
21979
|
}, {
|
|
21004
|
-
dataIndex: '
|
|
21005
|
-
title: "\
|
|
21980
|
+
dataIndex: 'code',
|
|
21981
|
+
title: "\u6761\u7801",
|
|
21006
21982
|
width: 150,
|
|
21007
21983
|
render: renderTextEllipsis
|
|
21008
|
-
},
|
|
21009
|
-
|
|
21010
|
-
|
|
21011
|
-
|
|
21984
|
+
},
|
|
21985
|
+
// {
|
|
21986
|
+
// dataIndex: 'specName',
|
|
21987
|
+
// title: `规格名称`,
|
|
21988
|
+
// align: 'center',
|
|
21989
|
+
// ellipsis: true,
|
|
21990
|
+
// width: 200,
|
|
21991
|
+
// },
|
|
21992
|
+
// {
|
|
21993
|
+
// dataIndex: 'specCode',
|
|
21994
|
+
// title: `规格编号`,
|
|
21995
|
+
// align: 'center',
|
|
21996
|
+
// ellipsis: true,
|
|
21997
|
+
// width: 150,
|
|
21998
|
+
// },
|
|
21999
|
+
{
|
|
22000
|
+
dataIndex: 'mallProductName',
|
|
22001
|
+
title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
|
|
22002
|
+
align: 'center',
|
|
22003
|
+
ellipsis: true,
|
|
22004
|
+
width: 250,
|
|
21012
22005
|
render: renderTextEllipsis
|
|
21013
22006
|
}, {
|
|
21014
|
-
dataIndex: '
|
|
21015
|
-
title: "\
|
|
22007
|
+
dataIndex: 'mallProductOutCode',
|
|
22008
|
+
title: "\u5E73\u53F0\u5546\u54C1\u7F16\u7801",
|
|
22009
|
+
align: 'center',
|
|
22010
|
+
ellipsis: true,
|
|
21016
22011
|
width: 150,
|
|
21017
22012
|
render: renderTextEllipsis
|
|
21018
22013
|
}, {
|
|
21019
|
-
dataIndex: '
|
|
21020
|
-
title: "\u5E73\u53F0\
|
|
21021
|
-
|
|
22014
|
+
dataIndex: 'mallProductId',
|
|
22015
|
+
title: "\u5E73\u53F0\u5546\u54C1ID",
|
|
22016
|
+
align: 'center',
|
|
22017
|
+
ellipsis: true,
|
|
22018
|
+
width: 250,
|
|
21022
22019
|
render: renderTextEllipsis
|
|
21023
22020
|
}, {
|
|
21024
|
-
dataIndex: '
|
|
21025
|
-
title: "\
|
|
21026
|
-
|
|
22021
|
+
dataIndex: 'mallSkuName',
|
|
22022
|
+
title: "\u5E73\u53F0\u89C4\u683C\u540D\u79F0",
|
|
22023
|
+
align: 'center',
|
|
22024
|
+
ellipsis: true,
|
|
22025
|
+
width: 250,
|
|
21027
22026
|
render: renderTextEllipsis
|
|
21028
22027
|
}, {
|
|
21029
|
-
dataIndex: '
|
|
21030
|
-
title: "\
|
|
21031
|
-
|
|
21032
|
-
|
|
21033
|
-
|
|
21034
|
-
|
|
21035
|
-
src: val
|
|
21036
|
-
});
|
|
21037
|
-
}
|
|
22028
|
+
dataIndex: 'mallSkuId',
|
|
22029
|
+
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
22030
|
+
align: 'center',
|
|
22031
|
+
ellipsis: true,
|
|
22032
|
+
width: 250,
|
|
22033
|
+
render: renderTextEllipsis
|
|
21038
22034
|
}, {
|
|
21039
|
-
dataIndex: '
|
|
22035
|
+
dataIndex: 'sellCount',
|
|
21040
22036
|
title: "\u6570\u91CF",
|
|
21041
22037
|
width: 100,
|
|
21042
22038
|
render: function render(val, record, index) {
|
|
@@ -21048,13 +22044,16 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
21048
22044
|
min: 1,
|
|
21049
22045
|
precision: 0,
|
|
21050
22046
|
onChange: function onChange(num) {
|
|
21051
|
-
|
|
22047
|
+
updateDataHandle({
|
|
22048
|
+
sellCount: num,
|
|
22049
|
+
sellTotal: num && isNumberOrNumberString$2(record.sellPrice) ? num * record.sellPrice : null
|
|
22050
|
+
}, index);
|
|
21052
22051
|
}
|
|
21053
22052
|
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
21054
22053
|
}
|
|
21055
22054
|
}, {
|
|
21056
|
-
dataIndex: '
|
|
21057
|
-
title: "\
|
|
22055
|
+
dataIndex: 'sellPrice',
|
|
22056
|
+
title: "\u5355\u4EF7",
|
|
21058
22057
|
width: 150,
|
|
21059
22058
|
render: function render(val, record, index) {
|
|
21060
22059
|
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
@@ -21065,83 +22064,198 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
21065
22064
|
min: 0,
|
|
21066
22065
|
precision: 2,
|
|
21067
22066
|
onChange: function onChange(num) {
|
|
21068
|
-
|
|
22067
|
+
updateDataHandle({
|
|
22068
|
+
sellPrice: num,
|
|
22069
|
+
sellTotal: num && isNumberOrNumberString$2(record.sellCount) ? num * record.sellCount : null
|
|
22070
|
+
}, index);
|
|
21069
22071
|
}
|
|
21070
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val
|
|
22072
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
21071
22073
|
}
|
|
21072
22074
|
}, {
|
|
21073
|
-
dataIndex: '
|
|
21074
|
-
title: "\u5546\u54C1\
|
|
22075
|
+
dataIndex: 'mallSellingPrice',
|
|
22076
|
+
title: "\u5E73\u53F0\u5546\u54C1\u4EF7\u683C",
|
|
22077
|
+
width: 150
|
|
22078
|
+
}, {
|
|
22079
|
+
dataIndex: 'sellTotal',
|
|
22080
|
+
title: "\u91D1\u989D",
|
|
22081
|
+
width: 150
|
|
22082
|
+
}, {
|
|
22083
|
+
dataIndex: 'settlementPrice',
|
|
22084
|
+
title: "\u7ED3\u7B97\u4EF7",
|
|
22085
|
+
width: 150
|
|
22086
|
+
}, {
|
|
22087
|
+
dataIndex: 'divideOrderFee',
|
|
22088
|
+
title: "\u5206\u644A\u5B9E\u4ED8\u91D1\u989D",
|
|
22089
|
+
width: 150
|
|
22090
|
+
}, {
|
|
22091
|
+
dataIndex: 'bfit',
|
|
22092
|
+
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
21075
22093
|
width: 150,
|
|
21076
|
-
render: function render(val) {
|
|
21077
|
-
return
|
|
22094
|
+
render: function render(val, record, index) {
|
|
22095
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
22096
|
+
dropdownStyle: {
|
|
22097
|
+
zIndex: 2000
|
|
22098
|
+
},
|
|
22099
|
+
getPopupContainer: function getPopupContainer() {
|
|
22100
|
+
return document.body;
|
|
22101
|
+
},
|
|
22102
|
+
value: val,
|
|
22103
|
+
onChange: function onChange(value) {
|
|
22104
|
+
updateHandle(value, index, 'bfit');
|
|
22105
|
+
},
|
|
22106
|
+
options: [{
|
|
22107
|
+
label: '是',
|
|
22108
|
+
value: 'True'
|
|
22109
|
+
}, {
|
|
22110
|
+
label: '否',
|
|
22111
|
+
value: 'False'
|
|
22112
|
+
}]
|
|
22113
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val === 'True' ? '是' : '否');
|
|
21078
22114
|
}
|
|
21079
22115
|
}, {
|
|
21080
|
-
dataIndex: '
|
|
21081
|
-
title: "\u5546\u54C1\
|
|
22116
|
+
dataIndex: 'combinationName',
|
|
22117
|
+
title: "\u7EC4\u5408\u5546\u54C1\u540D\u79F0",
|
|
22118
|
+
width: 150,
|
|
22119
|
+
render: renderTextEllipsis
|
|
22120
|
+
}, {
|
|
22121
|
+
dataIndex: 'combinationCode',
|
|
22122
|
+
title: "\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
|
|
21082
22123
|
width: 150,
|
|
21083
22124
|
render: renderTextEllipsis
|
|
22125
|
+
}, {
|
|
22126
|
+
dataIndex: 'gift',
|
|
22127
|
+
title: "\u662F\u5426\u8D60\u54C1",
|
|
22128
|
+
width: 150,
|
|
22129
|
+
render: function render(val, record, index) {
|
|
22130
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
22131
|
+
dropdownStyle: {
|
|
22132
|
+
zIndex: 2000
|
|
22133
|
+
},
|
|
22134
|
+
getPopupContainer: function getPopupContainer() {
|
|
22135
|
+
return document.body;
|
|
22136
|
+
},
|
|
22137
|
+
value: val,
|
|
22138
|
+
onChange: function onChange(value) {
|
|
22139
|
+
updateHandle(value, index, 'gift');
|
|
22140
|
+
},
|
|
22141
|
+
options: [{
|
|
22142
|
+
label: '是',
|
|
22143
|
+
value: '1'
|
|
22144
|
+
}, {
|
|
22145
|
+
label: '否',
|
|
22146
|
+
value: '0'
|
|
22147
|
+
}]
|
|
22148
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val === '1' ? '是' : '否');
|
|
22149
|
+
}
|
|
21084
22150
|
}].map(function (item) {
|
|
21085
22151
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
21086
22152
|
align: 'center',
|
|
21087
22153
|
ellipsis: true
|
|
21088
22154
|
});
|
|
21089
22155
|
}),
|
|
21090
|
-
|
|
21091
|
-
|
|
21092
|
-
|
|
21093
|
-
|
|
22156
|
+
// 巨益补发商品信息
|
|
22157
|
+
JY_REISSUE_GOODS: [{
|
|
22158
|
+
dataIndex: 'productName',
|
|
22159
|
+
title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
|
|
22160
|
+
align: 'center',
|
|
22161
|
+
ellipsis: true,
|
|
22162
|
+
width: 150,
|
|
21094
22163
|
render: renderTextEllipsis
|
|
21095
22164
|
}, {
|
|
21096
|
-
dataIndex: '
|
|
21097
|
-
title: "\u7CFB\u7EDF\u5546\u54C1\
|
|
22165
|
+
dataIndex: 'productCode',
|
|
22166
|
+
title: "\u7CFB\u7EDF\u5546\u54C1\u7F16\u7801",
|
|
22167
|
+
align: 'center',
|
|
22168
|
+
ellipsis: true,
|
|
21098
22169
|
width: 150,
|
|
21099
22170
|
render: renderTextEllipsis
|
|
21100
22171
|
}, {
|
|
21101
|
-
dataIndex: '
|
|
21102
|
-
title: "\
|
|
22172
|
+
dataIndex: 'productId',
|
|
22173
|
+
title: "\u7CFB\u7EDF\u5546\u54C1ID",
|
|
22174
|
+
align: 'center',
|
|
22175
|
+
ellipsis: true,
|
|
21103
22176
|
width: 150,
|
|
21104
22177
|
render: renderTextEllipsis
|
|
21105
22178
|
}, {
|
|
21106
|
-
dataIndex: '
|
|
22179
|
+
dataIndex: 'skuName',
|
|
22180
|
+
title: "\u7CFB\u7EDF\u89C4\u683C\u540D\u79F0",
|
|
22181
|
+
align: 'center',
|
|
22182
|
+
ellipsis: true,
|
|
22183
|
+
width: 150,
|
|
22184
|
+
render: renderTextEllipsis
|
|
22185
|
+
}, {
|
|
22186
|
+
dataIndex: 'skuCode',
|
|
22187
|
+
title: "\u7CFB\u7EDF\u89C4\u683C\u7F16\u7801",
|
|
22188
|
+
align: 'center',
|
|
22189
|
+
ellipsis: true,
|
|
22190
|
+
width: 150,
|
|
22191
|
+
render: renderTextEllipsis
|
|
22192
|
+
}, {
|
|
22193
|
+
dataIndex: 'specId',
|
|
22194
|
+
title: "\u89C4\u683CID",
|
|
22195
|
+
align: 'center',
|
|
22196
|
+
ellipsis: true,
|
|
22197
|
+
width: 150,
|
|
22198
|
+
render: renderTextEllipsis
|
|
22199
|
+
}, {
|
|
22200
|
+
dataIndex: 'goodsClass',
|
|
22201
|
+
title: "\u8D27\u54C1\u7C7B\u522B",
|
|
22202
|
+
width: 150,
|
|
22203
|
+
render: renderTextEllipsis
|
|
22204
|
+
}, {
|
|
22205
|
+
dataIndex: 'code',
|
|
22206
|
+
title: "\u6761\u7801",
|
|
22207
|
+
width: 150,
|
|
22208
|
+
render: renderTextEllipsis
|
|
22209
|
+
}, {
|
|
22210
|
+
dataIndex: 'mallProductName',
|
|
21107
22211
|
title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
|
|
22212
|
+
align: 'center',
|
|
22213
|
+
ellipsis: true,
|
|
21108
22214
|
width: 150,
|
|
21109
22215
|
render: renderTextEllipsis
|
|
21110
22216
|
}, {
|
|
21111
|
-
dataIndex: '
|
|
21112
|
-
title: "\
|
|
22217
|
+
dataIndex: 'mallProductOutCode',
|
|
22218
|
+
title: "\u5E73\u53F0\u5546\u54C1\u7F16\u7801",
|
|
22219
|
+
align: 'center',
|
|
22220
|
+
ellipsis: true,
|
|
21113
22221
|
width: 150,
|
|
21114
22222
|
render: renderTextEllipsis
|
|
21115
22223
|
}, {
|
|
21116
|
-
dataIndex: '
|
|
21117
|
-
title: "\
|
|
22224
|
+
dataIndex: 'mallProductId',
|
|
22225
|
+
title: "\u5E73\u53F0\u5546\u54C1ID",
|
|
22226
|
+
align: 'center',
|
|
22227
|
+
ellipsis: true,
|
|
21118
22228
|
width: 150,
|
|
21119
22229
|
render: renderTextEllipsis
|
|
21120
22230
|
}, {
|
|
21121
|
-
dataIndex: '
|
|
21122
|
-
title: "\
|
|
22231
|
+
dataIndex: 'mallSkuName',
|
|
22232
|
+
title: "\u5E73\u53F0\u89C4\u683C\u540D\u79F0",
|
|
22233
|
+
align: 'center',
|
|
22234
|
+
ellipsis: true,
|
|
21123
22235
|
width: 150,
|
|
21124
22236
|
render: renderTextEllipsis
|
|
21125
22237
|
}, {
|
|
21126
|
-
dataIndex: '
|
|
21127
|
-
title: "\u5E73\u53F0\u89C4\
|
|
21128
|
-
|
|
22238
|
+
dataIndex: 'mallSkuId',
|
|
22239
|
+
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
22240
|
+
align: 'center',
|
|
22241
|
+
ellipsis: true,
|
|
22242
|
+
width: 150,
|
|
21129
22243
|
render: renderTextEllipsis
|
|
21130
22244
|
}, {
|
|
21131
|
-
dataIndex: '
|
|
21132
|
-
title: "\
|
|
22245
|
+
dataIndex: 'sellCount',
|
|
22246
|
+
title: "\u6570\u91CF",
|
|
21133
22247
|
width: 100,
|
|
21134
22248
|
validator: function validator(_rule, value) {
|
|
21135
|
-
var
|
|
21136
|
-
if (((value === null || value === void 0 ? void 0 : value.
|
|
21137
|
-
var
|
|
21138
|
-
var res = typeof
|
|
22249
|
+
var productName = '';
|
|
22250
|
+
if (((value === null || value === void 0 ? void 0 : value.jyReissueGoods) || []).some(function (goods) {
|
|
22251
|
+
var qty = toNum$4(goods === null || goods === void 0 ? void 0 : goods.sellCount);
|
|
22252
|
+
var res = typeof qty === 'number' ? qty < 1 : true;
|
|
21139
22253
|
if (res) {
|
|
21140
|
-
|
|
22254
|
+
productName = (goods === null || goods === void 0 ? void 0 : goods.productName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.productName, "]") : '';
|
|
21141
22255
|
}
|
|
21142
22256
|
return res;
|
|
21143
22257
|
})) {
|
|
21144
|
-
return Promise.reject("".concat(
|
|
22258
|
+
return Promise.reject("".concat(productName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
21145
22259
|
}
|
|
21146
22260
|
},
|
|
21147
22261
|
render: function render(val, record, index) {
|
|
@@ -21153,65 +22267,100 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
21153
22267
|
min: 1,
|
|
21154
22268
|
precision: 0,
|
|
21155
22269
|
onChange: function onChange(num) {
|
|
21156
|
-
|
|
22270
|
+
updateDataHandle({
|
|
22271
|
+
sellCount: num,
|
|
22272
|
+
sellTotal: num && isNumberOrNumberString$2(record.sellPrice) ? num * record.sellPrice : null
|
|
22273
|
+
}, index);
|
|
21157
22274
|
}
|
|
21158
22275
|
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
21159
22276
|
}
|
|
21160
22277
|
}, {
|
|
21161
|
-
dataIndex: '
|
|
21162
|
-
title: "\
|
|
21163
|
-
width:
|
|
22278
|
+
dataIndex: 'sellPrice',
|
|
22279
|
+
title: "\u5355\u4EF7",
|
|
22280
|
+
width: 150,
|
|
21164
22281
|
render: function render(val, record, index) {
|
|
21165
22282
|
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
21166
22283
|
style: {
|
|
21167
|
-
width:
|
|
22284
|
+
width: 130
|
|
21168
22285
|
},
|
|
21169
22286
|
value: val,
|
|
21170
|
-
min:
|
|
21171
|
-
precision:
|
|
22287
|
+
min: 0,
|
|
22288
|
+
precision: 2,
|
|
21172
22289
|
onChange: function onChange(num) {
|
|
21173
|
-
|
|
22290
|
+
updateDataHandle({
|
|
22291
|
+
sellPrice: num,
|
|
22292
|
+
sellTotal: num && isNumberOrNumberString$2(record.sellCount) ? num * record.sellCount : null
|
|
22293
|
+
}, index);
|
|
21174
22294
|
}
|
|
21175
22295
|
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
21176
22296
|
}
|
|
21177
22297
|
}, {
|
|
21178
|
-
dataIndex: '
|
|
21179
|
-
title: "\u5546\u54C1\
|
|
21180
|
-
width: 150
|
|
21181
|
-
render: function render(val) {
|
|
21182
|
-
return val || val === 0 ? Number(val).toFixed(2) : '';
|
|
21183
|
-
}
|
|
22298
|
+
dataIndex: 'mallSellingPrice',
|
|
22299
|
+
title: "\u5E73\u53F0\u5546\u54C1\u4EF7\u683C",
|
|
22300
|
+
width: 150
|
|
21184
22301
|
}, {
|
|
21185
|
-
dataIndex: '
|
|
21186
|
-
title: "\
|
|
22302
|
+
dataIndex: 'sellTotal',
|
|
22303
|
+
title: "\u91D1\u989D",
|
|
22304
|
+
width: 150
|
|
22305
|
+
}, {
|
|
22306
|
+
dataIndex: 'bfit',
|
|
22307
|
+
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
21187
22308
|
width: 150,
|
|
21188
22309
|
render: function render(val, record, index) {
|
|
21189
|
-
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.
|
|
21190
|
-
|
|
21191
|
-
|
|
22310
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
22311
|
+
dropdownStyle: {
|
|
22312
|
+
zIndex: 2000
|
|
22313
|
+
},
|
|
22314
|
+
getPopupContainer: function getPopupContainer() {
|
|
22315
|
+
return document.body;
|
|
21192
22316
|
},
|
|
21193
22317
|
value: val,
|
|
21194
|
-
|
|
21195
|
-
|
|
21196
|
-
|
|
21197
|
-
|
|
21198
|
-
|
|
21199
|
-
|
|
22318
|
+
onChange: function onChange(value) {
|
|
22319
|
+
updateHandle(value, index, 'bfit');
|
|
22320
|
+
},
|
|
22321
|
+
options: [{
|
|
22322
|
+
label: '是',
|
|
22323
|
+
value: 'True'
|
|
22324
|
+
}, {
|
|
22325
|
+
label: '否',
|
|
22326
|
+
value: 'False'
|
|
22327
|
+
}]
|
|
22328
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val === 'True' ? '是' : '否');
|
|
21200
22329
|
}
|
|
21201
22330
|
}, {
|
|
21202
|
-
dataIndex: '
|
|
21203
|
-
title: "\u5546\u54C1\
|
|
22331
|
+
dataIndex: 'combinationName',
|
|
22332
|
+
title: "\u7EC4\u5408\u5546\u54C1\u540D\u79F0",
|
|
21204
22333
|
width: 150,
|
|
21205
22334
|
render: renderTextEllipsis
|
|
21206
22335
|
}, {
|
|
21207
|
-
dataIndex: '
|
|
21208
|
-
title: "\u5546\u54C1\
|
|
21209
|
-
width:
|
|
21210
|
-
render:
|
|
21211
|
-
|
|
21212
|
-
|
|
21213
|
-
|
|
21214
|
-
|
|
22336
|
+
dataIndex: 'combinationCode',
|
|
22337
|
+
title: "\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
|
|
22338
|
+
width: 150,
|
|
22339
|
+
render: renderTextEllipsis
|
|
22340
|
+
}, {
|
|
22341
|
+
dataIndex: 'gift',
|
|
22342
|
+
title: "\u662F\u5426\u8D60\u54C1",
|
|
22343
|
+
width: 150,
|
|
22344
|
+
render: function render(val, record, index) {
|
|
22345
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
22346
|
+
dropdownStyle: {
|
|
22347
|
+
zIndex: 2000
|
|
22348
|
+
},
|
|
22349
|
+
getPopupContainer: function getPopupContainer() {
|
|
22350
|
+
return document.body;
|
|
22351
|
+
},
|
|
22352
|
+
value: val,
|
|
22353
|
+
onChange: function onChange(value) {
|
|
22354
|
+
updateHandle(value, index, 'gift');
|
|
22355
|
+
},
|
|
22356
|
+
options: [{
|
|
22357
|
+
label: '是',
|
|
22358
|
+
value: '1'
|
|
22359
|
+
}, {
|
|
22360
|
+
label: '否',
|
|
22361
|
+
value: '0'
|
|
22362
|
+
}]
|
|
22363
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val === '1' ? '是' : '否');
|
|
21215
22364
|
}
|
|
21216
22365
|
}].map(function (item) {
|
|
21217
22366
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
@@ -21222,12 +22371,54 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
21222
22371
|
};
|
|
21223
22372
|
};
|
|
21224
22373
|
|
|
21225
|
-
var
|
|
22374
|
+
var getColumns$8 = function getColumns(_ref) {
|
|
22375
|
+
var _ref$text = _ref.text,
|
|
22376
|
+
disabled = _ref.disabled,
|
|
22377
|
+
updateHandle = _ref.updateHandle,
|
|
22378
|
+
updateDataHandle = _ref.updateDataHandle;
|
|
22379
|
+
return {
|
|
22380
|
+
//[SKX]商品信息(ON)
|
|
22381
|
+
SKX_GOODS: [{
|
|
22382
|
+
dataIndex: 'skuEcode',
|
|
22383
|
+
title: "[SKX]\u53D1\u8D27\u5355\u660E\u7EC6-skuEcode",
|
|
22384
|
+
width: 250
|
|
22385
|
+
}, {
|
|
22386
|
+
dataIndex: 'subOrderId',
|
|
22387
|
+
title: "[SKX]\u53D1\u8D27\u5355-\u5B50\u8BA2\u5355\u53F7",
|
|
22388
|
+
width: 300
|
|
22389
|
+
}, {
|
|
22390
|
+
dataIndex: 'onBillNo',
|
|
22391
|
+
title: "[SKX]ON\u51FA\u5E93\u901A\u77E5\u5355\u53F7",
|
|
22392
|
+
width: 200
|
|
22393
|
+
}].map(function (item) {
|
|
22394
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
22395
|
+
align: 'center',
|
|
22396
|
+
ellipsis: true
|
|
22397
|
+
});
|
|
22398
|
+
}),
|
|
22399
|
+
//[SKX]退货商品信息(TH)
|
|
22400
|
+
SKX_RETURN_GOODS: [{
|
|
22401
|
+
dataIndex: 'returnSkuEcode',
|
|
22402
|
+
title: "[SKX]\u9000\u8D27\u5355\u660E\u7EC6-returnSkuEcode",
|
|
22403
|
+
width: 300
|
|
22404
|
+
}, {
|
|
22405
|
+
dataIndex: 'returnSubOrderId',
|
|
22406
|
+
title: "[SKX]\u9000\u8D27\u5355-\u5B50\u8BA2\u5355\u53F7",
|
|
22407
|
+
width: 300
|
|
22408
|
+
}, {
|
|
22409
|
+
dataIndex: 'returnBillNo',
|
|
22410
|
+
title: "[SKX]TH\u9000\u6362\u8D27\u5355\u53F7",
|
|
22411
|
+
width: 200
|
|
22412
|
+
}]
|
|
22413
|
+
};
|
|
22414
|
+
};
|
|
22415
|
+
|
|
22416
|
+
var isNumberOrNumberString$3 = function isNumberOrNumberString(value) {
|
|
21226
22417
|
if (typeof value === 'number') return true;
|
|
21227
22418
|
if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
|
|
21228
22419
|
return false;
|
|
21229
22420
|
};
|
|
21230
|
-
function toNum$
|
|
22421
|
+
function toNum$5(value) {
|
|
21231
22422
|
if (typeof value === 'string') {
|
|
21232
22423
|
return value ? +value : void 0;
|
|
21233
22424
|
}
|
|
@@ -21236,44 +22427,44 @@ function toNum$4(value) {
|
|
|
21236
22427
|
}
|
|
21237
22428
|
return void 0;
|
|
21238
22429
|
}
|
|
21239
|
-
var getColumns$
|
|
22430
|
+
var getColumns$9 = function getColumns(_ref) {
|
|
21240
22431
|
var _ref$text = _ref.text,
|
|
21241
22432
|
disabled = _ref.disabled,
|
|
21242
22433
|
updateHandle = _ref.updateHandle,
|
|
21243
22434
|
updateDataHandle = _ref.updateDataHandle;
|
|
21244
22435
|
return {
|
|
21245
22436
|
//巨益商品信息
|
|
21246
|
-
|
|
21247
|
-
dataIndex: '
|
|
21248
|
-
title: "\
|
|
22437
|
+
JKY_GOODS: [{
|
|
22438
|
+
dataIndex: 'goodsNo',
|
|
22439
|
+
title: "\u8D27\u54C1\u7F16\u53F7",
|
|
21249
22440
|
align: 'center',
|
|
21250
22441
|
ellipsis: true,
|
|
21251
22442
|
width: 150,
|
|
21252
22443
|
render: renderTextEllipsis
|
|
21253
22444
|
}, {
|
|
21254
|
-
dataIndex: '
|
|
21255
|
-
title: "\
|
|
22445
|
+
dataIndex: 'goodsName',
|
|
22446
|
+
title: "\u8D27\u54C1\u540D\u79F0",
|
|
21256
22447
|
align: 'center',
|
|
21257
22448
|
ellipsis: true,
|
|
21258
22449
|
width: 150,
|
|
21259
22450
|
render: renderTextEllipsis
|
|
21260
22451
|
}, {
|
|
21261
|
-
dataIndex: '
|
|
21262
|
-
title: "\
|
|
22452
|
+
dataIndex: 'goodsId',
|
|
22453
|
+
title: "\u8D27\u54C1ID",
|
|
21263
22454
|
align: 'center',
|
|
21264
22455
|
ellipsis: true,
|
|
21265
22456
|
width: 150,
|
|
21266
22457
|
render: renderTextEllipsis
|
|
21267
22458
|
}, {
|
|
21268
|
-
dataIndex: '
|
|
21269
|
-
title: "\
|
|
22459
|
+
dataIndex: 'barcode',
|
|
22460
|
+
title: "\u8D27\u54C1\u6761\u7801",
|
|
21270
22461
|
align: 'center',
|
|
21271
22462
|
ellipsis: true,
|
|
21272
22463
|
width: 150,
|
|
21273
22464
|
render: renderTextEllipsis
|
|
21274
22465
|
}, {
|
|
21275
|
-
dataIndex: '
|
|
21276
|
-
title: "\
|
|
22466
|
+
dataIndex: 'specName',
|
|
22467
|
+
title: "\u89C4\u683C\u540D\u79F0",
|
|
21277
22468
|
align: 'center',
|
|
21278
22469
|
ellipsis: true,
|
|
21279
22470
|
width: 150,
|
|
@@ -21285,82 +22476,18 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
21285
22476
|
ellipsis: true,
|
|
21286
22477
|
width: 150,
|
|
21287
22478
|
render: renderTextEllipsis
|
|
21288
|
-
},
|
|
21289
|
-
// {
|
|
21290
|
-
// dataIndex: 'goodsName',
|
|
21291
|
-
// title: `货品名称`,
|
|
21292
|
-
// width: 250,
|
|
21293
|
-
// },
|
|
21294
|
-
// {
|
|
21295
|
-
// dataIndex: 'goodsCode',
|
|
21296
|
-
// title: `货品编号`,
|
|
21297
|
-
// width: 200,
|
|
21298
|
-
// },
|
|
21299
|
-
// {
|
|
21300
|
-
// dataIndex: 'goodsId',
|
|
21301
|
-
// title: `货品ID`,
|
|
21302
|
-
// width: 150,
|
|
21303
|
-
// },
|
|
21304
|
-
{
|
|
21305
|
-
dataIndex: 'goodsClass',
|
|
21306
|
-
title: "\u8D27\u54C1\u7C7B\u522B",
|
|
21307
|
-
width: 150,
|
|
21308
|
-
render: renderTextEllipsis
|
|
21309
|
-
}, {
|
|
21310
|
-
dataIndex: 'code',
|
|
21311
|
-
title: "\u6761\u7801",
|
|
21312
|
-
width: 150,
|
|
21313
|
-
render: renderTextEllipsis
|
|
21314
|
-
},
|
|
21315
|
-
// {
|
|
21316
|
-
// dataIndex: 'specName',
|
|
21317
|
-
// title: `规格名称`,
|
|
21318
|
-
// align: 'center',
|
|
21319
|
-
// ellipsis: true,
|
|
21320
|
-
// width: 200,
|
|
21321
|
-
// },
|
|
21322
|
-
// {
|
|
21323
|
-
// dataIndex: 'specCode',
|
|
21324
|
-
// title: `规格编号`,
|
|
21325
|
-
// align: 'center',
|
|
21326
|
-
// ellipsis: true,
|
|
21327
|
-
// width: 150,
|
|
21328
|
-
// },
|
|
21329
|
-
{
|
|
21330
|
-
dataIndex: 'mallProductName',
|
|
21331
|
-
title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
|
|
21332
|
-
align: 'center',
|
|
21333
|
-
ellipsis: true,
|
|
21334
|
-
width: 250,
|
|
21335
|
-
render: renderTextEllipsis
|
|
21336
22479
|
}, {
|
|
21337
|
-
dataIndex: '
|
|
21338
|
-
title: "\
|
|
22480
|
+
dataIndex: 'skuImgUrl',
|
|
22481
|
+
title: "\u89C4\u683C\u56FE\u7247",
|
|
21339
22482
|
align: 'center',
|
|
21340
22483
|
ellipsis: true,
|
|
21341
22484
|
width: 150,
|
|
21342
|
-
render:
|
|
21343
|
-
|
|
21344
|
-
|
|
21345
|
-
|
|
21346
|
-
|
|
21347
|
-
|
|
21348
|
-
width: 250,
|
|
21349
|
-
render: renderTextEllipsis
|
|
21350
|
-
}, {
|
|
21351
|
-
dataIndex: 'mallSkuName',
|
|
21352
|
-
title: "\u5E73\u53F0\u89C4\u683C\u540D\u79F0",
|
|
21353
|
-
align: 'center',
|
|
21354
|
-
ellipsis: true,
|
|
21355
|
-
width: 250,
|
|
21356
|
-
render: renderTextEllipsis
|
|
21357
|
-
}, {
|
|
21358
|
-
dataIndex: 'mallSkuId',
|
|
21359
|
-
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
21360
|
-
align: 'center',
|
|
21361
|
-
ellipsis: true,
|
|
21362
|
-
width: 250,
|
|
21363
|
-
render: renderTextEllipsis
|
|
22485
|
+
render: function render(val) {
|
|
22486
|
+
return /*#__PURE__*/React__default['default'].createElement(ApaasImage, {
|
|
22487
|
+
width: 30,
|
|
22488
|
+
src: val
|
|
22489
|
+
});
|
|
22490
|
+
}
|
|
21364
22491
|
}, {
|
|
21365
22492
|
dataIndex: 'sellCount',
|
|
21366
22493
|
title: "\u6570\u91CF",
|
|
@@ -21376,11 +22503,16 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
21376
22503
|
onChange: function onChange(num) {
|
|
21377
22504
|
updateDataHandle({
|
|
21378
22505
|
sellCount: num,
|
|
21379
|
-
sellTotal: num && isNumberOrNumberString$
|
|
22506
|
+
sellTotal: num && isNumberOrNumberString$3(record.sellPrice) ? num * record.sellPrice : null
|
|
21380
22507
|
}, index);
|
|
21381
22508
|
}
|
|
21382
22509
|
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
21383
22510
|
}
|
|
22511
|
+
}, {
|
|
22512
|
+
dataIndex: 'actualSendCount',
|
|
22513
|
+
title: "\u5B9E\u53D1\u6570\u91CF",
|
|
22514
|
+
width: 150,
|
|
22515
|
+
render: renderTextEllipsis
|
|
21384
22516
|
}, {
|
|
21385
22517
|
dataIndex: 'sellPrice',
|
|
21386
22518
|
title: "\u5355\u4EF7",
|
|
@@ -21396,30 +22528,42 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
21396
22528
|
onChange: function onChange(num) {
|
|
21397
22529
|
updateDataHandle({
|
|
21398
22530
|
sellPrice: num,
|
|
21399
|
-
sellTotal: num && isNumberOrNumberString$
|
|
22531
|
+
sellTotal: num && isNumberOrNumberString$3(record.sellCount) ? num * record.sellCount : null
|
|
21400
22532
|
}, index);
|
|
21401
22533
|
}
|
|
21402
22534
|
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
21403
22535
|
}
|
|
21404
|
-
}, {
|
|
21405
|
-
dataIndex: 'mallSellingPrice',
|
|
21406
|
-
title: "\u5E73\u53F0\u5546\u54C1\u4EF7\u683C",
|
|
21407
|
-
width: 150
|
|
21408
22536
|
}, {
|
|
21409
22537
|
dataIndex: 'sellTotal',
|
|
21410
22538
|
title: "\u91D1\u989D",
|
|
21411
22539
|
width: 150
|
|
21412
22540
|
}, {
|
|
21413
|
-
dataIndex: '
|
|
21414
|
-
title: "\
|
|
22541
|
+
dataIndex: 'discountTotal',
|
|
22542
|
+
title: "\u62B5\u6263\u91D1\u989D",
|
|
21415
22543
|
width: 150
|
|
21416
22544
|
}, {
|
|
21417
|
-
dataIndex: '
|
|
21418
|
-
title: "\u5206\u644A\
|
|
22545
|
+
dataIndex: 'shareFavourableFee',
|
|
22546
|
+
title: "\u5206\u644A\u91D1\u989D",
|
|
21419
22547
|
width: 150
|
|
21420
22548
|
}, {
|
|
21421
|
-
dataIndex: '
|
|
21422
|
-
title: "\
|
|
22549
|
+
dataIndex: 'shareFavourableAfterFee',
|
|
22550
|
+
title: "\u5206\u644A\u540E\u91D1\u989D",
|
|
22551
|
+
width: 150
|
|
22552
|
+
}, {
|
|
22553
|
+
dataIndex: 'customerPrice',
|
|
22554
|
+
title: "\u7EC8\u7AEF\u9500\u552E\u5355\u4EF7",
|
|
22555
|
+
width: 150
|
|
22556
|
+
}, {
|
|
22557
|
+
dataIndex: 'customerTotal',
|
|
22558
|
+
title: "\u7EC8\u7AEF\u9500\u552E\u91D1\u989D",
|
|
22559
|
+
width: 150
|
|
22560
|
+
}, {
|
|
22561
|
+
dataIndex: 'divideSellTotal',
|
|
22562
|
+
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
22563
|
+
width: 150
|
|
22564
|
+
}, {
|
|
22565
|
+
dataIndex: 'isGift',
|
|
22566
|
+
title: "\u662F\u5426\u8D60\u54C1",
|
|
21423
22567
|
width: 150,
|
|
21424
22568
|
render: function render(val, record, index) {
|
|
21425
22569
|
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
@@ -21431,30 +22575,45 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
21431
22575
|
},
|
|
21432
22576
|
value: val,
|
|
21433
22577
|
onChange: function onChange(value) {
|
|
21434
|
-
updateHandle(value, index, '
|
|
22578
|
+
updateHandle(value, index, 'isGift');
|
|
21435
22579
|
},
|
|
21436
22580
|
options: [{
|
|
21437
22581
|
label: '是',
|
|
21438
|
-
value: '
|
|
22582
|
+
value: '1'
|
|
21439
22583
|
}, {
|
|
21440
22584
|
label: '否',
|
|
21441
|
-
value: '
|
|
22585
|
+
value: '0'
|
|
21442
22586
|
}]
|
|
21443
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val === '
|
|
22587
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val === '1' ? '是' : '否');
|
|
21444
22588
|
}
|
|
21445
22589
|
}, {
|
|
21446
|
-
dataIndex: '
|
|
21447
|
-
title: "\u7EC4\u5408\
|
|
21448
|
-
width: 150,
|
|
21449
|
-
render: renderTextEllipsis
|
|
21450
|
-
}, {
|
|
21451
|
-
dataIndex: 'combinationCode',
|
|
21452
|
-
title: "\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
|
|
22590
|
+
dataIndex: 'isFit',
|
|
22591
|
+
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
21453
22592
|
width: 150,
|
|
21454
|
-
render:
|
|
22593
|
+
render: function render(val, record, index) {
|
|
22594
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
22595
|
+
dropdownStyle: {
|
|
22596
|
+
zIndex: 2000
|
|
22597
|
+
},
|
|
22598
|
+
getPopupContainer: function getPopupContainer() {
|
|
22599
|
+
return document.body;
|
|
22600
|
+
},
|
|
22601
|
+
value: val,
|
|
22602
|
+
onChange: function onChange(value) {
|
|
22603
|
+
updateHandle(value, index, 'isFit');
|
|
22604
|
+
},
|
|
22605
|
+
options: [{
|
|
22606
|
+
label: '是',
|
|
22607
|
+
value: '1'
|
|
22608
|
+
}, {
|
|
22609
|
+
label: '否',
|
|
22610
|
+
value: '0'
|
|
22611
|
+
}]
|
|
22612
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val === '1' ? '是' : '否');
|
|
22613
|
+
}
|
|
21455
22614
|
}, {
|
|
21456
|
-
dataIndex: '
|
|
21457
|
-
title: "\u662F\u5426\
|
|
22615
|
+
dataIndex: 'isPresell',
|
|
22616
|
+
title: "\u662F\u5426\u9884\u552E\u8D27\u54C1",
|
|
21458
22617
|
width: 150,
|
|
21459
22618
|
render: function render(val, record, index) {
|
|
21460
22619
|
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
@@ -21466,7 +22625,7 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
21466
22625
|
},
|
|
21467
22626
|
value: val,
|
|
21468
22627
|
onChange: function onChange(value) {
|
|
21469
|
-
updateHandle(value, index, '
|
|
22628
|
+
updateHandle(value, index, 'isPresell');
|
|
21470
22629
|
},
|
|
21471
22630
|
options: [{
|
|
21472
22631
|
label: '是',
|
|
@@ -21477,115 +22636,169 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
21477
22636
|
}]
|
|
21478
22637
|
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val === '1' ? '是' : '否');
|
|
21479
22638
|
}
|
|
21480
|
-
}
|
|
21481
|
-
|
|
21482
|
-
|
|
21483
|
-
ellipsis: true
|
|
21484
|
-
});
|
|
21485
|
-
}),
|
|
21486
|
-
// 巨益补发商品信息
|
|
21487
|
-
JY_REISSUE_GOODS: [{
|
|
21488
|
-
dataIndex: 'productName',
|
|
21489
|
-
title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
|
|
22639
|
+
}, {
|
|
22640
|
+
dataIndex: 'brandName',
|
|
22641
|
+
title: "\u54C1\u724C",
|
|
21490
22642
|
align: 'center',
|
|
21491
22643
|
ellipsis: true,
|
|
21492
|
-
width:
|
|
22644
|
+
width: 200,
|
|
21493
22645
|
render: renderTextEllipsis
|
|
21494
22646
|
}, {
|
|
21495
|
-
dataIndex: '
|
|
21496
|
-
title: "\
|
|
22647
|
+
dataIndex: 'cateName',
|
|
22648
|
+
title: "\u8D27\u54C1\u7C7B\u522B",
|
|
21497
22649
|
align: 'center',
|
|
21498
22650
|
ellipsis: true,
|
|
21499
22651
|
width: 150,
|
|
21500
22652
|
render: renderTextEllipsis
|
|
21501
22653
|
}, {
|
|
21502
|
-
dataIndex: '
|
|
21503
|
-
title: "\
|
|
22654
|
+
dataIndex: 'goodsTags',
|
|
22655
|
+
title: "\u8D27\u54C1\u6807\u7B7E",
|
|
21504
22656
|
align: 'center',
|
|
21505
22657
|
ellipsis: true,
|
|
21506
|
-
width:
|
|
22658
|
+
width: 250,
|
|
21507
22659
|
render: renderTextEllipsis
|
|
21508
22660
|
}, {
|
|
21509
|
-
dataIndex: '
|
|
21510
|
-
title: "\
|
|
22661
|
+
dataIndex: 'goodsMemo',
|
|
22662
|
+
title: "\u8D27\u54C1\u5907\u6CE8",
|
|
21511
22663
|
align: 'center',
|
|
21512
22664
|
ellipsis: true,
|
|
21513
|
-
width:
|
|
22665
|
+
width: 250,
|
|
21514
22666
|
render: renderTextEllipsis
|
|
21515
22667
|
}, {
|
|
21516
|
-
dataIndex: '
|
|
21517
|
-
title: "\
|
|
22668
|
+
dataIndex: 'tradeGoodsNo',
|
|
22669
|
+
title: "\u4EA4\u6613\u8D27\u54C1\u7F16\u53F7",
|
|
21518
22670
|
align: 'center',
|
|
21519
22671
|
ellipsis: true,
|
|
21520
|
-
width:
|
|
22672
|
+
width: 250,
|
|
21521
22673
|
render: renderTextEllipsis
|
|
21522
22674
|
}, {
|
|
21523
|
-
dataIndex: '
|
|
21524
|
-
title: "\
|
|
21525
|
-
align: 'center',
|
|
22675
|
+
dataIndex: 'tradeGoodsName',
|
|
22676
|
+
title: "\u4EA4\u6613\u8D27\u54C1\u540D\u79F0",
|
|
21526
22677
|
ellipsis: true,
|
|
21527
|
-
width:
|
|
22678
|
+
width: 250,
|
|
21528
22679
|
render: renderTextEllipsis
|
|
21529
22680
|
}, {
|
|
21530
|
-
dataIndex: '
|
|
21531
|
-
title: "\
|
|
21532
|
-
|
|
22681
|
+
dataIndex: 'tradeGoodsSpec',
|
|
22682
|
+
title: "\u4EA4\u6613\u89C4\u683C\u540D\u79F0",
|
|
22683
|
+
ellipsis: true,
|
|
22684
|
+
width: 250,
|
|
21533
22685
|
render: renderTextEllipsis
|
|
21534
22686
|
}, {
|
|
21535
|
-
dataIndex: '
|
|
21536
|
-
title: "\
|
|
22687
|
+
dataIndex: 'sourceSubtradeNo',
|
|
22688
|
+
title: "\u7F51\u5E97\u5B50\u8BA2\u5355\u53F7",
|
|
22689
|
+
ellipsis: true,
|
|
22690
|
+
width: 250,
|
|
22691
|
+
render: renderTextEllipsis
|
|
22692
|
+
}, {
|
|
22693
|
+
dataIndex: 'platGoodsId',
|
|
22694
|
+
title: "\u5E73\u53F0\u5546\u54C1ID",
|
|
22695
|
+
ellipsis: true,
|
|
22696
|
+
width: 250,
|
|
22697
|
+
render: renderTextEllipsis
|
|
22698
|
+
}, {
|
|
22699
|
+
dataIndex: 'subTradeId',
|
|
22700
|
+
title: "\u5546\u54C1\u660E\u7EC6ID",
|
|
22701
|
+
ellipsis: true,
|
|
22702
|
+
width: 250,
|
|
22703
|
+
render: renderTextEllipsis
|
|
22704
|
+
}, {
|
|
22705
|
+
dataIndex: 'batchNo',
|
|
22706
|
+
title: "\u6279\u6B21\u53F7",
|
|
22707
|
+
ellipsis: true,
|
|
22708
|
+
width: 250,
|
|
22709
|
+
render: renderTextEllipsis
|
|
22710
|
+
}, {
|
|
22711
|
+
dataIndex: 'sendCount',
|
|
22712
|
+
title: "\u6279\u6B21\u6570\u91CF",
|
|
22713
|
+
ellipsis: true,
|
|
22714
|
+
width: 250,
|
|
22715
|
+
render: renderTextEllipsis
|
|
22716
|
+
}, {
|
|
22717
|
+
dataIndex: 'productDate',
|
|
22718
|
+
title: "\u751F\u4EA7\u65E5\u671F",
|
|
22719
|
+
ellipsis: true,
|
|
22720
|
+
width: 250,
|
|
22721
|
+
render: renderTextEllipsis
|
|
22722
|
+
}, {
|
|
22723
|
+
dataIndex: 'expireDate',
|
|
22724
|
+
title: "\u5230\u671F\u65E5\u671F",
|
|
22725
|
+
ellipsis: true,
|
|
22726
|
+
width: 250,
|
|
22727
|
+
render: renderTextEllipsis
|
|
22728
|
+
}].map(function (item) {
|
|
22729
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
22730
|
+
align: 'center',
|
|
22731
|
+
ellipsis: true
|
|
22732
|
+
});
|
|
22733
|
+
}),
|
|
22734
|
+
// 巨益补发商品信息
|
|
22735
|
+
JKY_REISSUE_GOODS: [{
|
|
22736
|
+
dataIndex: 'goodsNo',
|
|
22737
|
+
title: "\u8D27\u54C1\u7F16\u53F7",
|
|
22738
|
+
align: 'center',
|
|
22739
|
+
ellipsis: true,
|
|
21537
22740
|
width: 150,
|
|
21538
22741
|
render: renderTextEllipsis
|
|
21539
22742
|
}, {
|
|
21540
|
-
dataIndex: '
|
|
21541
|
-
title: "\
|
|
22743
|
+
dataIndex: 'goodsName',
|
|
22744
|
+
title: "\u8D27\u54C1\u540D\u79F0",
|
|
21542
22745
|
align: 'center',
|
|
21543
22746
|
ellipsis: true,
|
|
21544
22747
|
width: 150,
|
|
21545
22748
|
render: renderTextEllipsis
|
|
21546
22749
|
}, {
|
|
21547
|
-
dataIndex: '
|
|
21548
|
-
title: "\
|
|
22750
|
+
dataIndex: 'goodsId',
|
|
22751
|
+
title: "\u8D27\u54C1ID",
|
|
21549
22752
|
align: 'center',
|
|
21550
22753
|
ellipsis: true,
|
|
21551
22754
|
width: 150,
|
|
21552
22755
|
render: renderTextEllipsis
|
|
21553
22756
|
}, {
|
|
21554
|
-
dataIndex: '
|
|
21555
|
-
title: "\
|
|
22757
|
+
dataIndex: 'barcode',
|
|
22758
|
+
title: "\u8D27\u54C1\u6761\u7801",
|
|
21556
22759
|
align: 'center',
|
|
21557
22760
|
ellipsis: true,
|
|
21558
22761
|
width: 150,
|
|
21559
22762
|
render: renderTextEllipsis
|
|
21560
22763
|
}, {
|
|
21561
|
-
dataIndex: '
|
|
21562
|
-
title: "\
|
|
22764
|
+
dataIndex: 'specName',
|
|
22765
|
+
title: "\u89C4\u683C\u540D\u79F0",
|
|
21563
22766
|
align: 'center',
|
|
21564
22767
|
ellipsis: true,
|
|
21565
22768
|
width: 150,
|
|
21566
22769
|
render: renderTextEllipsis
|
|
21567
22770
|
}, {
|
|
21568
|
-
dataIndex: '
|
|
21569
|
-
title: "\
|
|
22771
|
+
dataIndex: 'specId',
|
|
22772
|
+
title: "\u89C4\u683CID",
|
|
21570
22773
|
align: 'center',
|
|
21571
22774
|
ellipsis: true,
|
|
21572
22775
|
width: 150,
|
|
21573
22776
|
render: renderTextEllipsis
|
|
22777
|
+
}, {
|
|
22778
|
+
dataIndex: 'skuImgUrl',
|
|
22779
|
+
title: "\u89C4\u683C\u56FE\u7247",
|
|
22780
|
+
width: 150,
|
|
22781
|
+
render: function render(val) {
|
|
22782
|
+
return /*#__PURE__*/React__default['default'].createElement(ApaasImage, {
|
|
22783
|
+
width: 30,
|
|
22784
|
+
src: val
|
|
22785
|
+
});
|
|
22786
|
+
}
|
|
21574
22787
|
}, {
|
|
21575
22788
|
dataIndex: 'sellCount',
|
|
21576
|
-
title: "\u6570\u91CF",
|
|
22789
|
+
title: "\u53D1\u8D27\u6570\u91CF",
|
|
21577
22790
|
width: 100,
|
|
21578
22791
|
validator: function validator(_rule, value) {
|
|
21579
|
-
var
|
|
21580
|
-
if (((value === null || value === void 0 ? void 0 : value.
|
|
21581
|
-
var qty = toNum$
|
|
22792
|
+
var goodsName = '';
|
|
22793
|
+
if (((value === null || value === void 0 ? void 0 : value.jkyReissueGoods) || []).some(function (goods) {
|
|
22794
|
+
var qty = toNum$5(goods === null || goods === void 0 ? void 0 : goods.sellCount);
|
|
21582
22795
|
var res = typeof qty === 'number' ? qty < 1 : true;
|
|
21583
22796
|
if (res) {
|
|
21584
|
-
|
|
22797
|
+
goodsName = (goods === null || goods === void 0 ? void 0 : goods.goodsName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodsName, "]") : '';
|
|
21585
22798
|
}
|
|
21586
22799
|
return res;
|
|
21587
22800
|
})) {
|
|
21588
|
-
return Promise.reject("".concat(
|
|
22801
|
+
return Promise.reject("".concat(goodsName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
21589
22802
|
}
|
|
21590
22803
|
},
|
|
21591
22804
|
render: function render(val, record, index) {
|
|
@@ -21599,7 +22812,7 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
21599
22812
|
onChange: function onChange(num) {
|
|
21600
22813
|
updateDataHandle({
|
|
21601
22814
|
sellCount: num,
|
|
21602
|
-
sellTotal: num && isNumberOrNumberString$
|
|
22815
|
+
sellTotal: num && isNumberOrNumberString$3(record.sellPrice) ? num * record.sellPrice : null
|
|
21603
22816
|
}, index);
|
|
21604
22817
|
}
|
|
21605
22818
|
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
@@ -21619,131 +22832,87 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
21619
22832
|
onChange: function onChange(num) {
|
|
21620
22833
|
updateDataHandle({
|
|
21621
22834
|
sellPrice: num,
|
|
21622
|
-
sellTotal: num && isNumberOrNumberString$
|
|
22835
|
+
sellTotal: num && isNumberOrNumberString$3(record.sellCount) ? num * record.sellCount : null
|
|
21623
22836
|
}, index);
|
|
21624
22837
|
}
|
|
21625
22838
|
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
21626
22839
|
}
|
|
21627
|
-
}, {
|
|
21628
|
-
dataIndex: 'mallSellingPrice',
|
|
21629
|
-
title: "\u5E73\u53F0\u5546\u54C1\u4EF7\u683C",
|
|
21630
|
-
width: 150
|
|
21631
22840
|
}, {
|
|
21632
22841
|
dataIndex: 'sellTotal',
|
|
21633
|
-
title: "\u91D1\u989D",
|
|
21634
|
-
width: 150
|
|
22842
|
+
title: "\u603B\u91D1\u989D",
|
|
22843
|
+
width: 150,
|
|
22844
|
+
render: function render(val, record, index) {
|
|
22845
|
+
return record.sellCount * record.sellPrice;
|
|
22846
|
+
}
|
|
21635
22847
|
}, {
|
|
21636
|
-
dataIndex: '
|
|
21637
|
-
title: "\
|
|
22848
|
+
dataIndex: 'reason',
|
|
22849
|
+
title: "\u9000\u6362\u539F\u56E0",
|
|
22850
|
+
width: 250,
|
|
22851
|
+
render: function render(val, record, index) {
|
|
22852
|
+
return /*#__PURE__*/React__default['default'].createElement(ApaasInput, {
|
|
22853
|
+
onChange: function onChange(value) {
|
|
22854
|
+
updateHandle(value, index, 'reason');
|
|
22855
|
+
}
|
|
22856
|
+
});
|
|
22857
|
+
}
|
|
22858
|
+
}, {
|
|
22859
|
+
dataIndex: 'isGift',
|
|
22860
|
+
title: "\u662F\u5426\u8D60\u54C1",
|
|
21638
22861
|
width: 150,
|
|
21639
22862
|
render: function render(val, record, index) {
|
|
21640
22863
|
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
21641
|
-
dropdownStyle: {
|
|
21642
|
-
zIndex: 2000
|
|
21643
|
-
},
|
|
21644
|
-
getPopupContainer: function getPopupContainer() {
|
|
21645
|
-
return document.body;
|
|
21646
|
-
},
|
|
21647
22864
|
value: val,
|
|
21648
22865
|
onChange: function onChange(value) {
|
|
21649
|
-
updateHandle(value, index, '
|
|
22866
|
+
updateHandle(value, index, 'isGift');
|
|
21650
22867
|
},
|
|
21651
22868
|
options: [{
|
|
21652
22869
|
label: '是',
|
|
21653
|
-
value: '
|
|
22870
|
+
value: '1'
|
|
21654
22871
|
}, {
|
|
21655
22872
|
label: '否',
|
|
21656
|
-
value: '
|
|
22873
|
+
value: '0'
|
|
21657
22874
|
}]
|
|
21658
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val === '
|
|
22875
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val === '1' ? '是' : '否');
|
|
21659
22876
|
}
|
|
21660
22877
|
}, {
|
|
21661
|
-
dataIndex: '
|
|
21662
|
-
title: "\u7EC4\u5408\
|
|
21663
|
-
width: 150,
|
|
21664
|
-
render: renderTextEllipsis
|
|
21665
|
-
}, {
|
|
21666
|
-
dataIndex: 'combinationCode',
|
|
21667
|
-
title: "\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
|
|
21668
|
-
width: 150,
|
|
21669
|
-
render: renderTextEllipsis
|
|
21670
|
-
}, {
|
|
21671
|
-
dataIndex: 'gift',
|
|
21672
|
-
title: "\u662F\u5426\u8D60\u54C1",
|
|
22878
|
+
dataIndex: 'isFit',
|
|
22879
|
+
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
21673
22880
|
width: 150,
|
|
21674
22881
|
render: function render(val, record, index) {
|
|
21675
22882
|
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
21676
|
-
dropdownStyle: {
|
|
21677
|
-
zIndex: 2000
|
|
21678
|
-
},
|
|
21679
|
-
getPopupContainer: function getPopupContainer() {
|
|
21680
|
-
return document.body;
|
|
21681
|
-
},
|
|
21682
22883
|
value: val,
|
|
21683
22884
|
onChange: function onChange(value) {
|
|
21684
|
-
updateHandle(value, index, '
|
|
22885
|
+
updateHandle(value, index, 'isFit');
|
|
21685
22886
|
},
|
|
21686
22887
|
options: [{
|
|
21687
22888
|
label: '是',
|
|
21688
|
-
value: '
|
|
21689
|
-
}, {
|
|
21690
|
-
label: '否',
|
|
21691
|
-
value: '
|
|
21692
|
-
}]
|
|
21693
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val === '
|
|
21694
|
-
}
|
|
21695
|
-
}].map(function (item) {
|
|
21696
|
-
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
21697
|
-
align: 'center',
|
|
21698
|
-
ellipsis: true
|
|
21699
|
-
});
|
|
21700
|
-
})
|
|
21701
|
-
};
|
|
21702
|
-
};
|
|
21703
|
-
|
|
21704
|
-
var getColumns$8 = function getColumns(_ref) {
|
|
21705
|
-
var _ref$text = _ref.text,
|
|
21706
|
-
disabled = _ref.disabled,
|
|
21707
|
-
updateHandle = _ref.updateHandle,
|
|
21708
|
-
updateDataHandle = _ref.updateDataHandle;
|
|
21709
|
-
return {
|
|
21710
|
-
//[SKX]商品信息(ON)
|
|
21711
|
-
SKX_GOODS: [{
|
|
21712
|
-
dataIndex: 'skuEcode',
|
|
21713
|
-
title: "[SKX]\u53D1\u8D27\u5355\u660E\u7EC6-skuEcode",
|
|
21714
|
-
width: 250
|
|
22889
|
+
value: 'True'
|
|
22890
|
+
}, {
|
|
22891
|
+
label: '否',
|
|
22892
|
+
value: 'False'
|
|
22893
|
+
}]
|
|
22894
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val === 'True' ? '是' : '否');
|
|
22895
|
+
}
|
|
21715
22896
|
}, {
|
|
21716
|
-
dataIndex: '
|
|
21717
|
-
title: "
|
|
21718
|
-
width:
|
|
22897
|
+
dataIndex: 'brandName',
|
|
22898
|
+
title: "\u54C1\u724C",
|
|
22899
|
+
width: 150,
|
|
22900
|
+
render: renderTextEllipsis
|
|
21719
22901
|
}, {
|
|
21720
|
-
dataIndex: '
|
|
21721
|
-
title: "
|
|
21722
|
-
width:
|
|
22902
|
+
dataIndex: 'cateName',
|
|
22903
|
+
title: "\u8D27\u54C1\u7C7B\u522B",
|
|
22904
|
+
width: 150,
|
|
22905
|
+
render: renderTextEllipsis
|
|
21723
22906
|
}].map(function (item) {
|
|
21724
22907
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
21725
22908
|
align: 'center',
|
|
21726
22909
|
ellipsis: true
|
|
21727
22910
|
});
|
|
21728
|
-
})
|
|
21729
|
-
//[SKX]退货商品信息(TH)
|
|
21730
|
-
SKX_RETURN_GOODS: [{
|
|
21731
|
-
dataIndex: 'returnSkuEcode',
|
|
21732
|
-
title: "[SKX]\u9000\u8D27\u5355\u660E\u7EC6-returnSkuEcode",
|
|
21733
|
-
width: 300
|
|
21734
|
-
}, {
|
|
21735
|
-
dataIndex: 'returnSubOrderId',
|
|
21736
|
-
title: "[SKX]\u9000\u8D27\u5355-\u5B50\u8BA2\u5355\u53F7",
|
|
21737
|
-
width: 300
|
|
21738
|
-
}, {
|
|
21739
|
-
dataIndex: 'returnBillNo',
|
|
21740
|
-
title: "[SKX]TH\u9000\u6362\u8D27\u5355\u53F7",
|
|
21741
|
-
width: 200
|
|
21742
|
-
}]
|
|
22911
|
+
})
|
|
21743
22912
|
};
|
|
21744
22913
|
};
|
|
21745
22914
|
|
|
21746
|
-
var getColumns$
|
|
22915
|
+
var getColumns$a = function getColumns(_ref) {
|
|
21747
22916
|
var _ref$text = _ref.text,
|
|
21748
22917
|
text = _ref$text === void 0 ? '' : _ref$text,
|
|
21749
22918
|
disabled = _ref.disabled,
|
|
@@ -21860,7 +23029,7 @@ var getColumnsMap$1 = function getColumnsMap(args) {
|
|
|
21860
23029
|
disabled = _ref.disabled,
|
|
21861
23030
|
updateHandle = _ref.updateHandle,
|
|
21862
23031
|
updateDataHandle = _ref.updateDataHandle;
|
|
21863
|
-
return _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, getColumns$1({
|
|
23032
|
+
return _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, getColumns$1({
|
|
21864
23033
|
text: text,
|
|
21865
23034
|
disabled: disabled,
|
|
21866
23035
|
updateHandle: updateHandle
|
|
@@ -21898,8 +23067,13 @@ var getColumnsMap$1 = function getColumnsMap(args) {
|
|
|
21898
23067
|
text: text,
|
|
21899
23068
|
disabled: disabled,
|
|
21900
23069
|
updateHandle: updateHandle
|
|
23070
|
+
})), getColumns$9({
|
|
23071
|
+
text: text,
|
|
23072
|
+
disabled: disabled,
|
|
23073
|
+
updateHandle: updateHandle,
|
|
23074
|
+
updateDataHandle: updateDataHandle
|
|
21901
23075
|
})), {}, {
|
|
21902
|
-
default: getColumns$
|
|
23076
|
+
default: getColumns$a({
|
|
21903
23077
|
text: text,
|
|
21904
23078
|
disabled: disabled,
|
|
21905
23079
|
updateHandle: updateHandle
|
|
@@ -22046,6 +23220,9 @@ var isErpType = {
|
|
|
22046
23220
|
},
|
|
22047
23221
|
isJy: function isJy(type) {
|
|
22048
23222
|
return ['JY_GOODS', 'JY_REISSUE_GOODS'].includes(type);
|
|
23223
|
+
},
|
|
23224
|
+
isJky: function isJky(type) {
|
|
23225
|
+
return ['JKY_GOODS', 'JKY_REISSUE_GOODS'].includes(type);
|
|
22049
23226
|
}
|
|
22050
23227
|
};
|
|
22051
23228
|
var processGoods$1 = function processGoods(_ref) {
|
|
@@ -22332,6 +23509,8 @@ var GoodsModalMap = {
|
|
|
22332
23509
|
KM_REISSUE_GOODS: KmGoodsModal,
|
|
22333
23510
|
JY_GOODS: JyGoodsModal$1,
|
|
22334
23511
|
JY_REISSUE_GOODS: JyGoodsModal$1,
|
|
23512
|
+
JKY_GOODS: JkyGoodsModal$1,
|
|
23513
|
+
JKY_REISSUE_GOODS: JkyGoodsModal$1,
|
|
22335
23514
|
OTHER_GOODS: GoodsModal$2
|
|
22336
23515
|
};
|
|
22337
23516
|
var systemOrderNoMap = {
|
|
@@ -22344,6 +23523,8 @@ var systemOrderNoMap = {
|
|
|
22344
23523
|
WLN_GOODS: 'tradeNo',
|
|
22345
23524
|
JY_GOODS: 'tradeNo',
|
|
22346
23525
|
JY_REISSUE_GOODS: 'tradeNo',
|
|
23526
|
+
JKY_GOODS: 'tradeNo',
|
|
23527
|
+
JKY_REISSUE_GOODS: 'tradeNo',
|
|
22347
23528
|
KM_REISSUE_GOODS: 'sid',
|
|
22348
23529
|
JST_REISSUE_GOODS: 'oId',
|
|
22349
23530
|
GY_REISSUE_GOODS: 'code',
|
|
@@ -22379,23 +23560,75 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
22379
23560
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
22380
23561
|
tradeGoodsVisible = _useState4[0],
|
|
22381
23562
|
setTradeGoodsVisible = _useState4[1];
|
|
22382
|
-
var
|
|
22383
|
-
|
|
22384
|
-
|
|
22385
|
-
return
|
|
22386
|
-
|
|
22387
|
-
|
|
22388
|
-
|
|
22389
|
-
|
|
22390
|
-
|
|
22391
|
-
|
|
22392
|
-
|
|
22393
|
-
|
|
22394
|
-
|
|
22395
|
-
|
|
22396
|
-
|
|
22397
|
-
|
|
22398
|
-
|
|
23563
|
+
var getKmSupplier = /*#__PURE__*/function () {
|
|
23564
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(dataSource) {
|
|
23565
|
+
var systemItemIds, supplierMap;
|
|
23566
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
23567
|
+
while (1) switch (_context.prev = _context.next) {
|
|
23568
|
+
case 0:
|
|
23569
|
+
systemItemIds = dataSource === null || dataSource === void 0 ? void 0 : dataSource.map(function (item) {
|
|
23570
|
+
return item.sysItemId;
|
|
23571
|
+
});
|
|
23572
|
+
_context.next = 3;
|
|
23573
|
+
return kmkfUtils.servers.KM.getSupplierSingleton(systemItemIds);
|
|
23574
|
+
case 3:
|
|
23575
|
+
supplierMap = _context.sent;
|
|
23576
|
+
dataSource === null || dataSource === void 0 ? void 0 : dataSource.forEach(function (item) {
|
|
23577
|
+
var supplierInfo = supplierMap.get(item.sysItemId);
|
|
23578
|
+
item.supplierCode = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierCode;
|
|
23579
|
+
item.supplierName = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierName;
|
|
23580
|
+
});
|
|
23581
|
+
case 5:
|
|
23582
|
+
case "end":
|
|
23583
|
+
return _context.stop();
|
|
23584
|
+
}
|
|
23585
|
+
}, _callee);
|
|
23586
|
+
}));
|
|
23587
|
+
return function getKmSupplier(_x) {
|
|
23588
|
+
return _ref2.apply(this, arguments);
|
|
23589
|
+
};
|
|
23590
|
+
}();
|
|
23591
|
+
var openModal = /*#__PURE__*/function () {
|
|
23592
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
23593
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
23594
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
23595
|
+
case 0:
|
|
23596
|
+
if (!validSystemOrder) {
|
|
23597
|
+
_context2.next = 3;
|
|
23598
|
+
break;
|
|
23599
|
+
}
|
|
23600
|
+
antd.message.warning('请选择补发系统单');
|
|
23601
|
+
return _context2.abrupt("return");
|
|
23602
|
+
case 3:
|
|
23603
|
+
if (!(getDataSourceAsync && !(dataSource === null || dataSource === void 0 ? void 0 : dataSource.length))) {
|
|
23604
|
+
_context2.next = 6;
|
|
23605
|
+
break;
|
|
23606
|
+
}
|
|
23607
|
+
_context2.next = 6;
|
|
23608
|
+
return getDataSourceAsync();
|
|
23609
|
+
case 6:
|
|
23610
|
+
if (!['KM_GOODS', 'KM_REISSUE_GOODS'].includes(type)) {
|
|
23611
|
+
_context2.next = 9;
|
|
23612
|
+
break;
|
|
23613
|
+
}
|
|
23614
|
+
_context2.next = 9;
|
|
23615
|
+
return getKmSupplier(dataSource);
|
|
23616
|
+
case 9:
|
|
23617
|
+
setTradeGoodsVisible(true);
|
|
23618
|
+
// 补发直接传入的是systemNo
|
|
23619
|
+
if (isShowSelect && isReissueType) {
|
|
23620
|
+
setSelectSystemNo(selectedSystemOrders || []);
|
|
23621
|
+
}
|
|
23622
|
+
case 11:
|
|
23623
|
+
case "end":
|
|
23624
|
+
return _context2.stop();
|
|
23625
|
+
}
|
|
23626
|
+
}, _callee2);
|
|
23627
|
+
}));
|
|
23628
|
+
return function openModal() {
|
|
23629
|
+
return _ref3.apply(this, arguments);
|
|
23630
|
+
};
|
|
23631
|
+
}();
|
|
22399
23632
|
var closeModal = function closeModal() {
|
|
22400
23633
|
return setTradeGoodsVisible(false);
|
|
22401
23634
|
};
|
|
@@ -22518,6 +23751,9 @@ var getButtonText = function getButtonText() {
|
|
|
22518
23751
|
if (['JY_GOODS', 'JY_REISSUE_GOODS'].includes(type)) {
|
|
22519
23752
|
return '选择巨益ERP商品';
|
|
22520
23753
|
}
|
|
23754
|
+
if (['JKY_GOODS', 'JKY_REISSUE_GOODS'].includes(type)) {
|
|
23755
|
+
return '选择吉客云ERP商品';
|
|
23756
|
+
}
|
|
22521
23757
|
return '选择商品';
|
|
22522
23758
|
};
|
|
22523
23759
|
var GoodItem$1 = function GoodItem(props) {
|
|
@@ -22575,7 +23811,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
22575
23811
|
var jstReturnGoods = antd.Form === null || antd.Form === void 0 ? void 0 : antd.Form.useWatch('3979edfd6d', form);
|
|
22576
23812
|
var isShowSelectTradeGoods = type !== 'JST_EXCHANGE_GOODS' || (jstReturnGoods === null || jstReturnGoods === void 0 ? void 0 : jstReturnGoods.jstSystemOrderNo);
|
|
22577
23813
|
// 判断是否为是否展示系统单筛选项
|
|
22578
|
-
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;
|
|
23814
|
+
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;
|
|
22579
23815
|
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;
|
|
22580
23816
|
var refModal = React.useRef();
|
|
22581
23817
|
console.debug('表格数据', value);
|
|
@@ -22667,6 +23903,8 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
22667
23903
|
case 'KM_REISSUE_GOODS':
|
|
22668
23904
|
case 'JY_GOODS':
|
|
22669
23905
|
case 'JY_REISSUE_GOODS':
|
|
23906
|
+
case 'JKY_GOODS':
|
|
23907
|
+
case 'JKY_REISSUE_GOODS':
|
|
22670
23908
|
case 'SKX_GOODS':
|
|
22671
23909
|
case 'SKX_RETURN_GOODS':
|
|
22672
23910
|
{
|
|
@@ -22714,9 +23952,9 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
22714
23952
|
var COLUMNS_INFO = COLUMNS_MAP(text);
|
|
22715
23953
|
return COLUMNS_INFO(type);
|
|
22716
23954
|
};
|
|
22717
|
-
var getShowFilterColumns = React.useCallback(function (
|
|
22718
|
-
var showHeader =
|
|
22719
|
-
initBaseInfoColumns =
|
|
23955
|
+
var getShowFilterColumns = React.useCallback(function (_ref4) {
|
|
23956
|
+
var showHeader = _ref4.showHeader,
|
|
23957
|
+
initBaseInfoColumns = _ref4.initBaseInfoColumns;
|
|
22720
23958
|
var baseInfoColumns = [];
|
|
22721
23959
|
var isStringArray = Array.isArray(showHeader) && typeof showHeader[0] === 'string';
|
|
22722
23960
|
var isObjectArray = Array.isArray(showHeader) && Object.prototype.toString.call(showHeader[0]) === '[object Object]';
|
|
@@ -23871,7 +25109,7 @@ var jyUtils = {
|
|
|
23871
25109
|
};
|
|
23872
25110
|
|
|
23873
25111
|
var singletonMap$7 = new Map();
|
|
23874
|
-
var
|
|
25112
|
+
var getJkyOrderListSingleton = function getJkyOrderListSingleton(orderNo) {
|
|
23875
25113
|
if (!singletonMap$7.has(orderNo)) {
|
|
23876
25114
|
var p = new Promise(function (resolve, reject) {
|
|
23877
25115
|
var doReject = function doReject(err) {
|
|
@@ -23879,6 +25117,50 @@ var getOrderListSingleton$2 = function getOrderListSingleton(orderNo) {
|
|
|
23879
25117
|
singletonMap$7.delete(orderNo);
|
|
23880
25118
|
reject(err);
|
|
23881
25119
|
};
|
|
25120
|
+
extendRequest('/qy/gdfw/order/jkyOrderDetail', {
|
|
25121
|
+
method: 'post',
|
|
25122
|
+
data: {
|
|
25123
|
+
billNo: orderNo
|
|
25124
|
+
}
|
|
25125
|
+
}).then(function (res) {
|
|
25126
|
+
if (res === null || res === void 0 ? void 0 : res.success) {
|
|
25127
|
+
var _res$data, _res$data$tradeOrderD, _res$data3;
|
|
25128
|
+
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) {
|
|
25129
|
+
var _filterJkyOrders, _res$data2;
|
|
25130
|
+
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) {
|
|
25131
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
25132
|
+
tradeType: kmkfUtils.JKY_ORDER_TYPE_MAP[item.tradeType],
|
|
25133
|
+
tradeStatus: kmkfUtils.JKY_ORDER_STATUS_MAP[item.tradeStatus]
|
|
25134
|
+
});
|
|
25135
|
+
});
|
|
25136
|
+
}
|
|
25137
|
+
resolve(((_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.trades) || []);
|
|
25138
|
+
// 延迟10秒清除,保证订单的时效性
|
|
25139
|
+
setTimeout(function () {
|
|
25140
|
+
singletonMap$7.delete(orderNo);
|
|
25141
|
+
}, 1000 * 10);
|
|
25142
|
+
} else {
|
|
25143
|
+
doReject(res);
|
|
25144
|
+
}
|
|
25145
|
+
}).catch(doReject);
|
|
25146
|
+
});
|
|
25147
|
+
singletonMap$7.set(orderNo, p);
|
|
25148
|
+
}
|
|
25149
|
+
return singletonMap$7.get(orderNo);
|
|
25150
|
+
};
|
|
25151
|
+
var jkyUtils = {
|
|
25152
|
+
getJkyOrderListSingleton: getJkyOrderListSingleton
|
|
25153
|
+
};
|
|
25154
|
+
|
|
25155
|
+
var singletonMap$8 = new Map();
|
|
25156
|
+
var getOrderListSingleton$2 = function getOrderListSingleton(orderNo) {
|
|
25157
|
+
if (!singletonMap$8.has(orderNo)) {
|
|
25158
|
+
var p = new Promise(function (resolve, reject) {
|
|
25159
|
+
var doReject = function doReject(err) {
|
|
25160
|
+
// 清空掉错误的请求记录
|
|
25161
|
+
singletonMap$8.delete(orderNo);
|
|
25162
|
+
reject(err);
|
|
25163
|
+
};
|
|
23882
25164
|
extendRequest('/qy/gdfw/order/kmErpOrderDetail', {
|
|
23883
25165
|
method: 'post',
|
|
23884
25166
|
data: {
|
|
@@ -23902,16 +25184,16 @@ var getOrderListSingleton$2 = function getOrderListSingleton(orderNo) {
|
|
|
23902
25184
|
}
|
|
23903
25185
|
// 延迟10秒清除,保证订单的时效性
|
|
23904
25186
|
setTimeout(function () {
|
|
23905
|
-
singletonMap$
|
|
25187
|
+
singletonMap$8.delete(orderNo);
|
|
23906
25188
|
}, 1000 * 10);
|
|
23907
25189
|
} else {
|
|
23908
25190
|
doReject(data);
|
|
23909
25191
|
}
|
|
23910
25192
|
}).catch(doReject);
|
|
23911
25193
|
});
|
|
23912
|
-
singletonMap$
|
|
25194
|
+
singletonMap$8.set(orderNo, p);
|
|
23913
25195
|
}
|
|
23914
|
-
return singletonMap$
|
|
25196
|
+
return singletonMap$8.get(orderNo);
|
|
23915
25197
|
};
|
|
23916
25198
|
var kmUtils = {
|
|
23917
25199
|
getOrderListSingleton: getOrderListSingleton$2
|
|
@@ -23928,6 +25210,7 @@ var columnsMap = {
|
|
|
23928
25210
|
GY_SYSTEM_ORDER: kmkfUtils.GY_SYSTEM_ORDER_CONFIG.columns,
|
|
23929
25211
|
JST_SYSTEM_ORDER: kmkfUtils.JST_SYSTEM_ORDER_CONFIG.columns,
|
|
23930
25212
|
JY_SYSTEM_ORDER: kmkfUtils.JY_SYSTEM_ORDER_CONFIG.columns,
|
|
25213
|
+
JKY_SYSTEM_ORDER: kmkfUtils.JKY_SYSTEM_ORDER_CONFIG.columns,
|
|
23931
25214
|
WDT_RETURN_BILL_NO: kmkfUtils.WDT_RETURN_BILL_NO_CONFIG.columns
|
|
23932
25215
|
};
|
|
23933
25216
|
var rowKeyMap = {
|
|
@@ -23939,6 +25222,7 @@ var rowKeyMap = {
|
|
|
23939
25222
|
GY_SYSTEM_ORDER: 'billNo',
|
|
23940
25223
|
JST_SYSTEM_ORDER: 'oId',
|
|
23941
25224
|
JY_SYSTEM_ORDER: 'tradeNo',
|
|
25225
|
+
JKY_SYSTEM_ORDER: 'tradeNo',
|
|
23942
25226
|
WDT_RETURN_BILL_NO: 'refundNo'
|
|
23943
25227
|
};
|
|
23944
25228
|
var index$2 = (function (props) {
|
|
@@ -23953,7 +25237,6 @@ var index$2 = (function (props) {
|
|
|
23953
25237
|
React.useEffect(function () {
|
|
23954
25238
|
var _value$orders, _value$showOrderInfo;
|
|
23955
25239
|
valueRef.current = value;
|
|
23956
|
-
console.log('value77777777', value);
|
|
23957
25240
|
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) {
|
|
23958
25241
|
onceRef.current = true;
|
|
23959
25242
|
if (type === 'BS_SYSTEM_ORDER') {
|
|
@@ -23972,6 +25255,8 @@ var index$2 = (function (props) {
|
|
|
23972
25255
|
getJstOrderList(value.orderNo);
|
|
23973
25256
|
} else if (type === 'JY_SYSTEM_ORDER') {
|
|
23974
25257
|
getJyOrderList(value.orderNo);
|
|
25258
|
+
} else if (type === 'JKY_SYSTEM_ORDER') {
|
|
25259
|
+
getJkyOrderList(value.orderNo);
|
|
23975
25260
|
}
|
|
23976
25261
|
}
|
|
23977
25262
|
}, [value, type]);
|
|
@@ -24057,7 +25342,10 @@ var index$2 = (function (props) {
|
|
|
24057
25342
|
case 0:
|
|
24058
25343
|
wdtUtils.getWdtOrderListSingleton(orderNo).then(function (data) {
|
|
24059
25344
|
var trades = ((data === null || data === void 0 ? void 0 : data.trades) || []).filter(function (item) {
|
|
24060
|
-
|
|
25345
|
+
var _split;
|
|
25346
|
+
return (_split = (item.srcTid || '').split(',')) === null || _split === void 0 ? void 0 : _split.some(function (tid) {
|
|
25347
|
+
return tid.indexOf(orderNo) > -1;
|
|
25348
|
+
});
|
|
24061
25349
|
});
|
|
24062
25350
|
_onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, {
|
|
24063
25351
|
orders: trades,
|
|
@@ -24233,6 +25521,31 @@ var index$2 = (function (props) {
|
|
|
24233
25521
|
return _ref10.apply(this, arguments);
|
|
24234
25522
|
};
|
|
24235
25523
|
}();
|
|
25524
|
+
var getJkyOrderList = /*#__PURE__*/function () {
|
|
25525
|
+
var _ref12 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(orderNo) {
|
|
25526
|
+
return _regeneratorRuntime().wrap(function _callee9$(_context9) {
|
|
25527
|
+
while (1) switch (_context9.prev = _context9.next) {
|
|
25528
|
+
case 0:
|
|
25529
|
+
jkyUtils.getJkyOrderListSingleton(orderNo).then(function (data) {
|
|
25530
|
+
var trades = ((data === null || data === void 0 ? void 0 : data.trades) || []).filter(function (item) {
|
|
25531
|
+
return kmkfUtils.getIsPlatformCodesIncludeOrderNos(item.platformCode, orderNo);
|
|
25532
|
+
});
|
|
25533
|
+
_onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, {
|
|
25534
|
+
orders: trades,
|
|
25535
|
+
showOrderInfo: trades
|
|
25536
|
+
}));
|
|
25537
|
+
});
|
|
25538
|
+
onceRef.current = false;
|
|
25539
|
+
case 2:
|
|
25540
|
+
case "end":
|
|
25541
|
+
return _context9.stop();
|
|
25542
|
+
}
|
|
25543
|
+
}, _callee9);
|
|
25544
|
+
}));
|
|
25545
|
+
return function getJkyOrderList(_x9) {
|
|
25546
|
+
return _ref12.apply(this, arguments);
|
|
25547
|
+
};
|
|
25548
|
+
}();
|
|
24236
25549
|
var rowSelection = {
|
|
24237
25550
|
selectedRowKeys: (value === null || value === void 0 ? void 0 : value.selectIds) || [],
|
|
24238
25551
|
fixed: true,
|
|
@@ -24657,16 +25970,16 @@ var orderSubFormConstants = {
|
|
|
24657
25970
|
};
|
|
24658
25971
|
|
|
24659
25972
|
var getSelectWidgetMap$1 = orderSubFormConstants.getSelectWidgetMap;
|
|
24660
|
-
var singletonMap$
|
|
25973
|
+
var singletonMap$9 = new Map();
|
|
24661
25974
|
var getOrderListSingleton$3 = function getOrderListSingleton(parmas) {
|
|
24662
25975
|
var orderNo = parmas.orderNo,
|
|
24663
25976
|
shopId = parmas.shopId;
|
|
24664
25977
|
var key = "".concat(orderNo, "-").concat(shopId);
|
|
24665
|
-
if (!singletonMap$
|
|
25978
|
+
if (!singletonMap$9.has(key)) {
|
|
24666
25979
|
var p = new Promise(function (resolve, reject) {
|
|
24667
25980
|
var doReject = function doReject(err) {
|
|
24668
25981
|
// 清空掉错误的请求记录
|
|
24669
|
-
singletonMap$
|
|
25982
|
+
singletonMap$9.delete(key);
|
|
24670
25983
|
reject(err);
|
|
24671
25984
|
};
|
|
24672
25985
|
extendRequest('/qy/gdfw/order/subOrderItemsDetail', {
|
|
@@ -24682,16 +25995,16 @@ var getOrderListSingleton$3 = function getOrderListSingleton(parmas) {
|
|
|
24682
25995
|
}
|
|
24683
25996
|
// 延迟10秒清除,保证订单的时效性
|
|
24684
25997
|
setTimeout(function () {
|
|
24685
|
-
singletonMap$
|
|
25998
|
+
singletonMap$9.delete(key);
|
|
24686
25999
|
}, 1000 * 10);
|
|
24687
26000
|
} else {
|
|
24688
26001
|
doReject(data);
|
|
24689
26002
|
}
|
|
24690
26003
|
}).catch(doReject);
|
|
24691
26004
|
});
|
|
24692
|
-
singletonMap$
|
|
26005
|
+
singletonMap$9.set(key, p);
|
|
24693
26006
|
}
|
|
24694
|
-
return singletonMap$
|
|
26007
|
+
return singletonMap$9.get(key);
|
|
24695
26008
|
};
|
|
24696
26009
|
var renderEditItem = function renderEditItem(_ref) {
|
|
24697
26010
|
var item = _ref.item,
|
|
@@ -25124,6 +26437,9 @@ var isErpType$1 = {
|
|
|
25124
26437
|
},
|
|
25125
26438
|
isJy: function isJy(type) {
|
|
25126
26439
|
return ['JY_GOODS'].includes(type);
|
|
26440
|
+
},
|
|
26441
|
+
isJky: function isJky(type) {
|
|
26442
|
+
return ['JKY_GOODS'].includes(type);
|
|
25127
26443
|
}
|
|
25128
26444
|
};
|
|
25129
26445
|
var processAllOrders = function processAllOrders(_ref) {
|
|
@@ -25167,7 +26483,10 @@ var processWdtOrders = function processWdtOrders(_ref2) {
|
|
|
25167
26483
|
var data = _ref2.data,
|
|
25168
26484
|
orderNo = _ref2.orderNo;
|
|
25169
26485
|
var trades = ((data === null || data === void 0 ? void 0 : data.trades) || []).filter(function (item) {
|
|
25170
|
-
|
|
26486
|
+
var _split;
|
|
26487
|
+
return (_split = (item.srcTid || '').split(',')) === null || _split === void 0 ? void 0 : _split.some(function (tid) {
|
|
26488
|
+
return tid.indexOf(orderNo) > -1;
|
|
26489
|
+
});
|
|
25171
26490
|
});
|
|
25172
26491
|
return trades;
|
|
25173
26492
|
};
|
|
@@ -25421,6 +26740,32 @@ var componentMap$2 = {
|
|
|
25421
26740
|
},
|
|
25422
26741
|
getOrderList: jyUtils.getJyOrderListSingleton
|
|
25423
26742
|
},
|
|
26743
|
+
JKY_GOODS: {
|
|
26744
|
+
type: 'jky',
|
|
26745
|
+
key: 'jkyGoods',
|
|
26746
|
+
name: '吉客云',
|
|
26747
|
+
orderNo: 'tradeNo',
|
|
26748
|
+
goodDetailOrderNo: 'tradeNo',
|
|
26749
|
+
eventNameMap: {
|
|
26750
|
+
// pubsub 事件
|
|
26751
|
+
type: 'jkyType',
|
|
26752
|
+
updateGoodsHandle: kmkfUtils.updateJkyGoodsHandle,
|
|
26753
|
+
selectListReturn: 'jkySelectListReturn',
|
|
26754
|
+
selectList: 'jkySelectList',
|
|
26755
|
+
reissueSelectList: 'jkyReissueSelectList',
|
|
26756
|
+
reissueSelectListReturn: 'jkyReissueSelectListReturn',
|
|
26757
|
+
reissueDeleteGood: 'jkyReissueDeleteGood',
|
|
26758
|
+
changeShopCode: 'jkyChangeShopCode',
|
|
26759
|
+
reissueType: 'jkyReissueType',
|
|
26760
|
+
returnType: 'jkyReturnType',
|
|
26761
|
+
returnSelectListReturn: 'jkyReturnSelectListReturn',
|
|
26762
|
+
returnSelectList: 'jkyReturnSelectList',
|
|
26763
|
+
deleteGood: 'jkyDeleteGood',
|
|
26764
|
+
returnDeleteGood: 'jkyReturnDeleteGood',
|
|
26765
|
+
exchangeDeleteGood: 'jkyExchangeDeleteGood'
|
|
26766
|
+
},
|
|
26767
|
+
getOrderList: jkyUtils.getJkyOrderListSingleton
|
|
26768
|
+
},
|
|
25424
26769
|
WDT_AFTERSALE_GOODS: {
|
|
25425
26770
|
type: 'wdtAftersale',
|
|
25426
26771
|
key: 'wdtAftersaleGoods',
|
|
@@ -25452,7 +26797,7 @@ var componentMap$2 = {
|
|
|
25452
26797
|
}
|
|
25453
26798
|
};
|
|
25454
26799
|
var CommonGoods = function CommonGoods(props) {
|
|
25455
|
-
var
|
|
26800
|
+
var _withInfo$current3, _withInfo$current4, _componentMap$compTyp6;
|
|
25456
26801
|
var value = props.value,
|
|
25457
26802
|
disabled = props.disabled,
|
|
25458
26803
|
onChange = props.onChange,
|
|
@@ -25468,6 +26813,10 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
25468
26813
|
_useState2 = _slicedToArray(_useState, 2),
|
|
25469
26814
|
tableSelect = _useState2[0],
|
|
25470
26815
|
setTableSelect = _useState2[1];
|
|
26816
|
+
var _useState3 = React.useState([]),
|
|
26817
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
26818
|
+
originDataSource = _useState4[0],
|
|
26819
|
+
setOriginDataSource = _useState4[1];
|
|
25471
26820
|
var withInfo = React.useRef(null);
|
|
25472
26821
|
var valueRef = React.useRef(null);
|
|
25473
26822
|
var tokens = React.useRef([]);
|
|
@@ -25479,10 +26828,90 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
25479
26828
|
compType.indexOf('WDT') > -1 && getWdtOrderList(value === null || value === void 0 ? void 0 : value.orderNo);
|
|
25480
26829
|
}
|
|
25481
26830
|
}, [value]);
|
|
26831
|
+
var sysItemIdMap = React.useMemo(function () {
|
|
26832
|
+
var map = {};
|
|
26833
|
+
if (compType.indexOf('KM') > -1) {
|
|
26834
|
+
var _value$kmGoods;
|
|
26835
|
+
value === null || value === void 0 ? void 0 : (_value$kmGoods = value.kmGoods) === null || _value$kmGoods === void 0 ? void 0 : _value$kmGoods.forEach(function (item) {
|
|
26836
|
+
map[item.sysItemId] = item;
|
|
26837
|
+
});
|
|
26838
|
+
}
|
|
26839
|
+
return map;
|
|
26840
|
+
}, [value === null || value === void 0 ? void 0 : value.kmGoods]);
|
|
26841
|
+
// 用于跟踪已经处理过的 sysItemId,避免重复处理
|
|
26842
|
+
var processedSysItemIdsRef = React.useRef(new Set());
|
|
26843
|
+
React.useEffect(function () {
|
|
26844
|
+
var fetchSupplier = /*#__PURE__*/function () {
|
|
26845
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(sysItemIds) {
|
|
26846
|
+
var _currentValue$kmGoods;
|
|
26847
|
+
var needFetchIds, supplierMap, hasChange, currentValue, kmGoods;
|
|
26848
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
26849
|
+
while (1) switch (_context.prev = _context.next) {
|
|
26850
|
+
case 0:
|
|
26851
|
+
if (sysItemIds.length) {
|
|
26852
|
+
_context.next = 2;
|
|
26853
|
+
break;
|
|
26854
|
+
}
|
|
26855
|
+
return _context.abrupt("return");
|
|
26856
|
+
case 2:
|
|
26857
|
+
// 过滤出还没有供应商信息的 sysItemId
|
|
26858
|
+
needFetchIds = sysItemIds.filter(function (id) {
|
|
26859
|
+
var item = sysItemIdMap[id];
|
|
26860
|
+
return item && (!item.supplierCode || !item.supplierName);
|
|
26861
|
+
});
|
|
26862
|
+
if (needFetchIds.length) {
|
|
26863
|
+
_context.next = 5;
|
|
26864
|
+
break;
|
|
26865
|
+
}
|
|
26866
|
+
return _context.abrupt("return");
|
|
26867
|
+
case 5:
|
|
26868
|
+
_context.next = 7;
|
|
26869
|
+
return kmkfUtils.servers.KM.getSupplierSingleton(needFetchIds);
|
|
26870
|
+
case 7:
|
|
26871
|
+
supplierMap = _context.sent;
|
|
26872
|
+
// 检查是否有实际变化,避免不必要的更新
|
|
26873
|
+
hasChange = false;
|
|
26874
|
+
currentValue = valueRef.current;
|
|
26875
|
+
kmGoods = currentValue === null || currentValue === void 0 ? void 0 : (_currentValue$kmGoods = currentValue.kmGoods) === null || _currentValue$kmGoods === void 0 ? void 0 : _currentValue$kmGoods.map(function (item) {
|
|
26876
|
+
var supplierInfo = supplierMap.get(item.sysItemId);
|
|
26877
|
+
var newSupplierCode = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierCode;
|
|
26878
|
+
var newSupplierName = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierName;
|
|
26879
|
+
// 如果供应商信息有变化,标记需要更新
|
|
26880
|
+
if (newSupplierCode && item.supplierCode !== newSupplierCode || newSupplierName && item.supplierName !== newSupplierName) {
|
|
26881
|
+
hasChange = true;
|
|
26882
|
+
// 标记已处理
|
|
26883
|
+
processedSysItemIdsRef.current.add(item.sysItemId);
|
|
26884
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
26885
|
+
supplierCode: newSupplierCode || item.supplierCode,
|
|
26886
|
+
supplierName: newSupplierName || item.supplierName
|
|
26887
|
+
});
|
|
26888
|
+
}
|
|
26889
|
+
return item;
|
|
26890
|
+
}); // 只在有实际变化时才更新
|
|
26891
|
+
if (hasChange && kmGoods) {
|
|
26892
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, currentValue), {}, {
|
|
26893
|
+
kmGoods: kmGoods
|
|
26894
|
+
}));
|
|
26895
|
+
}
|
|
26896
|
+
case 12:
|
|
26897
|
+
case "end":
|
|
26898
|
+
return _context.stop();
|
|
26899
|
+
}
|
|
26900
|
+
}, _callee);
|
|
26901
|
+
}));
|
|
26902
|
+
return function fetchSupplier(_x) {
|
|
26903
|
+
return _ref.apply(this, arguments);
|
|
26904
|
+
};
|
|
26905
|
+
}();
|
|
26906
|
+
var sysItemIds = Object.keys(sysItemIdMap);
|
|
26907
|
+
if (sysItemIds === null || sysItemIds === void 0 ? void 0 : sysItemIds.length) {
|
|
26908
|
+
fetchSupplier(sysItemIds);
|
|
26909
|
+
}
|
|
26910
|
+
}, [sysItemIdMap]);
|
|
25482
26911
|
var getWdtOrderList = /*#__PURE__*/function () {
|
|
25483
|
-
var
|
|
25484
|
-
return _regeneratorRuntime().wrap(function
|
|
25485
|
-
while (1) switch (
|
|
26912
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(orderNo) {
|
|
26913
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
26914
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
25486
26915
|
case 0:
|
|
25487
26916
|
wdtUtils.getWdtOrderListSingleton(orderNo).then(function (data) {
|
|
25488
26917
|
var orders = ((data === null || data === void 0 ? void 0 : data.trades) || []).filter(function (trade) {
|
|
@@ -25495,12 +26924,12 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
25495
26924
|
});
|
|
25496
26925
|
case 1:
|
|
25497
26926
|
case "end":
|
|
25498
|
-
return
|
|
26927
|
+
return _context2.stop();
|
|
25499
26928
|
}
|
|
25500
|
-
},
|
|
26929
|
+
}, _callee2);
|
|
25501
26930
|
}));
|
|
25502
|
-
return function getWdtOrderList(
|
|
25503
|
-
return
|
|
26931
|
+
return function getWdtOrderList(_x2) {
|
|
26932
|
+
return _ref2.apply(this, arguments);
|
|
25504
26933
|
};
|
|
25505
26934
|
}();
|
|
25506
26935
|
React.useEffect(function () {
|
|
@@ -25606,8 +27035,8 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
25606
27035
|
mode: isStrict
|
|
25607
27036
|
}))));
|
|
25608
27037
|
};
|
|
25609
|
-
var getGoodDetails = function getGoodDetails(
|
|
25610
|
-
var mode =
|
|
27038
|
+
var getGoodDetails = function getGoodDetails(_ref3) {
|
|
27039
|
+
var mode = _ref3.mode;
|
|
25611
27040
|
var updateHandle = componentMap$2[compType].eventNameMap['updateGoodsHandle'];
|
|
25612
27041
|
if (!updateHandle) return [];
|
|
25613
27042
|
var goodDetails = updateHandle((value === null || value === void 0 ? void 0 : value.orders) || [], {
|
|
@@ -25619,45 +27048,126 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
25619
27048
|
return !orderNo || (goodItem === null || goodItem === void 0 ? void 0 : goodItem[(_componentMap$compTyp = componentMap$2[compType]) === null || _componentMap$compTyp === void 0 ? void 0 : _componentMap$compTyp.goodDetailOrderNo]) === orderNo;
|
|
25620
27049
|
}) : goodDetails;
|
|
25621
27050
|
};
|
|
27051
|
+
// const getKmSupplier = async (list: any[]) => {
|
|
27052
|
+
// const systemItemIds = list?.map((item) => item.sysItemId);
|
|
27053
|
+
// const supplierMap = await servers.KM.getSupplierSingleton(systemItemIds);
|
|
27054
|
+
// list?.forEach((item) => {
|
|
27055
|
+
// const supplierInfo = supplierMap.get(item.sysItemId);
|
|
27056
|
+
// item.supplierCode = supplierInfo?.supplierCode;
|
|
27057
|
+
// item.supplierName = supplierInfo?.supplierName;
|
|
27058
|
+
// });
|
|
27059
|
+
// };
|
|
25622
27060
|
// 找到该订单号下所有商品
|
|
25623
|
-
var getAllTradeGoodsDetails = function
|
|
25624
|
-
var
|
|
25625
|
-
|
|
25626
|
-
|
|
25627
|
-
|
|
25628
|
-
|
|
25629
|
-
|
|
25630
|
-
|
|
25631
|
-
|
|
25632
|
-
|
|
25633
|
-
|
|
25634
|
-
|
|
25635
|
-
|
|
25636
|
-
|
|
25637
|
-
|
|
25638
|
-
|
|
25639
|
-
|
|
25640
|
-
|
|
25641
|
-
|
|
25642
|
-
|
|
25643
|
-
|
|
25644
|
-
|
|
25645
|
-
|
|
25646
|
-
|
|
25647
|
-
|
|
25648
|
-
|
|
25649
|
-
|
|
25650
|
-
|
|
25651
|
-
|
|
27061
|
+
var getAllTradeGoodsDetails = /*#__PURE__*/function () {
|
|
27062
|
+
var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref4) {
|
|
27063
|
+
var mode, updateHandle, goodDetails, orderNo;
|
|
27064
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
27065
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
27066
|
+
case 0:
|
|
27067
|
+
mode = _ref4.mode;
|
|
27068
|
+
updateHandle = componentMap$2[compType].eventNameMap['updateGoodsHandle'];
|
|
27069
|
+
if (updateHandle) {
|
|
27070
|
+
_context3.next = 4;
|
|
27071
|
+
break;
|
|
27072
|
+
}
|
|
27073
|
+
return _context3.abrupt("return", []);
|
|
27074
|
+
case 4:
|
|
27075
|
+
goodDetails = updateHandle((value === null || value === void 0 ? void 0 : value.allOrders) || [], {
|
|
27076
|
+
orderBackGoodsLevel: props.orderBackGoodsLevel
|
|
27077
|
+
});
|
|
27078
|
+
orderNo = value === null || value === void 0 ? void 0 : value.orderNo; // if (['KM_GOODS', 'KM_REISSUE_GOODS'].includes(compType)) {
|
|
27079
|
+
// await getKmSupplier(goodDetails);
|
|
27080
|
+
// }
|
|
27081
|
+
return _context3.abrupt("return", mode ? goodDetails.filter(function (goodItem) {
|
|
27082
|
+
var _componentMap$compTyp2;
|
|
27083
|
+
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;
|
|
27084
|
+
}) : goodDetails);
|
|
27085
|
+
case 7:
|
|
27086
|
+
case "end":
|
|
27087
|
+
return _context3.stop();
|
|
27088
|
+
}
|
|
27089
|
+
}, _callee3);
|
|
27090
|
+
}));
|
|
27091
|
+
return function getAllTradeGoodsDetails(_x3) {
|
|
27092
|
+
return _ref5.apply(this, arguments);
|
|
27093
|
+
};
|
|
27094
|
+
}();
|
|
27095
|
+
// 异步获取 originDataSource
|
|
27096
|
+
React.useEffect(function () {
|
|
27097
|
+
var fetchOriginDataSource = /*#__PURE__*/function () {
|
|
27098
|
+
var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
27099
|
+
var data;
|
|
27100
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
27101
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
27102
|
+
case 0:
|
|
27103
|
+
_context4.next = 2;
|
|
27104
|
+
return getAllTradeGoodsDetails({
|
|
27105
|
+
mode: value === null || value === void 0 ? void 0 : value.isStrict
|
|
27106
|
+
});
|
|
27107
|
+
case 2:
|
|
27108
|
+
data = _context4.sent;
|
|
27109
|
+
console.log('fetchOriginDataSource', data);
|
|
27110
|
+
setOriginDataSource(Array.isArray(data) ? data : []);
|
|
27111
|
+
case 5:
|
|
27112
|
+
case "end":
|
|
27113
|
+
return _context4.stop();
|
|
27114
|
+
}
|
|
27115
|
+
}, _callee4);
|
|
27116
|
+
}));
|
|
27117
|
+
return function fetchOriginDataSource() {
|
|
27118
|
+
return _ref6.apply(this, arguments);
|
|
27119
|
+
};
|
|
27120
|
+
}();
|
|
27121
|
+
fetchOriginDataSource();
|
|
27122
|
+
}, [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]);
|
|
27123
|
+
var selectedGoodsChange = /*#__PURE__*/function () {
|
|
27124
|
+
var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(skuList) {
|
|
27125
|
+
var _valueRef$current9, _componentMap$compTyp3, _componentMap$compTyp4, _uniqBy;
|
|
27126
|
+
var newValue, isStrict, originTradeGoodList, currentSelectGoodList;
|
|
27127
|
+
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
27128
|
+
while (1) switch (_context5.prev = _context5.next) {
|
|
27129
|
+
case 0:
|
|
27130
|
+
newValue = _objectSpread2({}, valueRef.current);
|
|
27131
|
+
isStrict = valueRef.current.isStrict; // 原订单商品
|
|
27132
|
+
_context5.next = 4;
|
|
27133
|
+
return getAllTradeGoodsDetails({
|
|
27134
|
+
mode: isStrict
|
|
27135
|
+
});
|
|
27136
|
+
case 4:
|
|
27137
|
+
_context5.t0 = _context5.sent;
|
|
27138
|
+
if (_context5.t0) {
|
|
27139
|
+
_context5.next = 7;
|
|
27140
|
+
break;
|
|
27141
|
+
}
|
|
27142
|
+
_context5.t0 = [];
|
|
27143
|
+
case 7:
|
|
27144
|
+
originTradeGoodList = _context5.t0;
|
|
27145
|
+
// 当前选中的所有商品【包含了原订单+商品库】
|
|
27146
|
+
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)]) || [];
|
|
27147
|
+
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) {
|
|
27148
|
+
return skuList.includes(item.uuid);
|
|
27149
|
+
});
|
|
27150
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
27151
|
+
case 11:
|
|
27152
|
+
case "end":
|
|
27153
|
+
return _context5.stop();
|
|
27154
|
+
}
|
|
27155
|
+
}, _callee5);
|
|
27156
|
+
}));
|
|
27157
|
+
return function selectedGoodsChange(_x4) {
|
|
27158
|
+
return _ref7.apply(this, arguments);
|
|
27159
|
+
};
|
|
27160
|
+
}();
|
|
25652
27161
|
// 商品信息组件暂存后 重新编辑,此时需要重新获取订单下所有系统自订单的商品信息
|
|
25653
27162
|
var getDataSourceAsync = function getDataSourceAsync() {
|
|
25654
|
-
var _componentMap$
|
|
25655
|
-
return (value === null || value === void 0 ? void 0 : value.orderNo) ? (_componentMap$
|
|
27163
|
+
var _componentMap$compTyp5;
|
|
27164
|
+
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) {
|
|
25656
27165
|
var list = processAllOrders({
|
|
25657
27166
|
data: data,
|
|
25658
27167
|
orderNo: value === null || value === void 0 ? void 0 : value.orderNo,
|
|
25659
27168
|
type: compType
|
|
25660
27169
|
});
|
|
27170
|
+
console.log('getDataSourceAsync', list);
|
|
25661
27171
|
onChange(_objectSpread2(_objectSpread2({}, valueRef.current), {}, {
|
|
25662
27172
|
allOrders: list || []
|
|
25663
27173
|
}));
|
|
@@ -25685,11 +27195,9 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
25685
27195
|
isStrict: value === null || value === void 0 ? void 0 : value.isStrict,
|
|
25686
27196
|
systemOrders: value === null || value === void 0 ? void 0 : value.allOrders,
|
|
25687
27197
|
selectedSystemOrders: value === null || value === void 0 ? void 0 : value.orders,
|
|
25688
|
-
showChangeBtn: (_componentMap$
|
|
27198
|
+
showChangeBtn: (_componentMap$compTyp6 = componentMap$2[compType]) === null || _componentMap$compTyp6 === void 0 ? void 0 : _componentMap$compTyp6.showChangeBtn,
|
|
25689
27199
|
tradeGoods: {
|
|
25690
|
-
originDataSource:
|
|
25691
|
-
mode: value === null || value === void 0 ? void 0 : value.isStrict
|
|
25692
|
-
}),
|
|
27200
|
+
originDataSource: originDataSource,
|
|
25693
27201
|
getDataSourceAsync: getDataSourceAsync,
|
|
25694
27202
|
selectedGoodsChange: selectedGoodsChange
|
|
25695
27203
|
}
|
|
@@ -28936,6 +30444,7 @@ var SYSTEM_ORDER_COLUMNS_MAP = {
|
|
|
28936
30444
|
GY_SYSTEM_ORDER: kmkfUtils.GY_SYSTEM_ORDER_CONFIG.columns,
|
|
28937
30445
|
JST_SYSTEM_ORDER: kmkfUtils.JST_SYSTEM_ORDER_CONFIG.columns,
|
|
28938
30446
|
JY_SYSTEM_ORDER: kmkfUtils.JY_SYSTEM_ORDER_CONFIG.columns,
|
|
30447
|
+
JKY_SYSTEM_ORDER: kmkfUtils.JKY_SYSTEM_ORDER_CONFIG.columns,
|
|
28939
30448
|
WDT_RETURN_BILL_NO: kmkfUtils.WDT_RETURN_BILL_NO_CONFIG.columns
|
|
28940
30449
|
};
|
|
28941
30450
|
|
|
@@ -29018,6 +30527,7 @@ exports.erpColumnsMap = erpColumnsMap;
|
|
|
29018
30527
|
exports.erpFormValidator = erpFormValidator;
|
|
29019
30528
|
exports.erpModalColumnsMap = index$1;
|
|
29020
30529
|
exports.getGyColumns = getColumns$4;
|
|
30530
|
+
exports.getJkyColumns = getColumns$9;
|
|
29021
30531
|
exports.getJstColumns = getColumns$5;
|
|
29022
30532
|
exports.getJyColumns = getColumns$7;
|
|
29023
30533
|
exports.getKmColumns = getColumns$6;
|
|
@@ -29026,3 +30536,4 @@ exports.getWdtColumns = getColumns$2;
|
|
|
29026
30536
|
exports.getWlnColumns = getColumns$3;
|
|
29027
30537
|
exports.orderSubFormConstants = orderSubFormConstants;
|
|
29028
30538
|
exports.renderMap = renderMap;
|
|
30539
|
+
exports.renderSplitMap = renderSplitMap;
|