@kmkf-fe-packages/basic-components 2.2.44-beta.9 → 2.2.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/index.esm.js +183 -1710
- package/dist/index.js +181 -1710
- package/dist/src/apaas/SubForm/index.d.ts +3 -3
- package/dist/src/apaas/SubForm/render.d.ts +0 -3
- package/dist/src/constants/index.d.ts +0 -1
- package/dist/src/constants/systemOrderColumnsMap.d.ts +2 -7
- package/dist/src/index.d.ts +1 -1
- package/package.json +3 -3
- package/dist/src/bs/component/model/Columns/Erp/jky.d.ts +0 -38
- package/dist/src/bs/component/model/JkyGoodsModal/GoodsList.d.ts +0 -32
- package/dist/src/bs/component/model/JkyGoodsModal/index.d.ts +0 -5
- package/dist/src/constants/jky.d.ts +0 -3
- package/dist/src/jky/common/index.d.ts +0 -3
package/dist/index.js
CHANGED
|
@@ -7773,8 +7773,7 @@ var Province = function Province(props) {
|
|
|
7773
7773
|
wdt: kmkfUtils.WdtAddressData.getInstance(),
|
|
7774
7774
|
gy: kmkfUtils.GyAddressData.getInstance(),
|
|
7775
7775
|
km: kmkfUtils.AddressData.getInstance(),
|
|
7776
|
-
jst: kmkfUtils.JstAddressData.getInstance()
|
|
7777
|
-
jky: kmkfUtils.JkyAddressData.getInstance()
|
|
7776
|
+
jst: kmkfUtils.JstAddressData.getInstance()
|
|
7778
7777
|
};
|
|
7779
7778
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Cascader, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
7780
7779
|
options: ((_mapping$type = mapping[type]) === null || _mapping$type === void 0 ? void 0 : _mapping$type.addressOptions) || [],
|
|
@@ -8470,10 +8469,7 @@ var processLogisticsTrajectory = function processLogisticsTrajectory(getValue) {
|
|
|
8470
8469
|
var map = subFields.reduce(function (cur, nxt) {
|
|
8471
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))));
|
|
8472
8471
|
}, {});
|
|
8473
|
-
|
|
8474
|
-
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))));
|
|
8475
|
-
}, {});
|
|
8476
|
-
return _objectSpread2(_defineProperty({}, nex.uniqueKey, map), mapChild);
|
|
8472
|
+
return _defineProperty({}, nex.uniqueKey, map);
|
|
8477
8473
|
};
|
|
8478
8474
|
};
|
|
8479
8475
|
var processLogisticsTrajectoryMore = function processLogisticsTrajectoryMore(getValue) {
|
|
@@ -8497,12 +8493,12 @@ var processItemSelectThird = function processItemSelectThird(getValue) {
|
|
|
8497
8493
|
};
|
|
8498
8494
|
var processEnterPrisePayment = function processEnterPrisePayment(getValue) {
|
|
8499
8495
|
return function (nex, config) {
|
|
8500
|
-
var
|
|
8496
|
+
var _ref34;
|
|
8501
8497
|
var subFields = ['enterprisePaymentAlipayNick', 'enterprisePaymentAlipayNo', 'enterprisePaymentBuyerNick', 'enterprisePaymentBuyerOpenUid', 'enterprisePaymentRefundFee', 'enterprisePaymentStatus', 'enterprisePaymentTid'];
|
|
8502
8498
|
var map = subFields.reduce(function (cur, nxt) {
|
|
8503
8499
|
return _objectSpread2(_objectSpread2({}, cur), {}, _defineProperty({}, nxt, getValue("".concat(nex.uniqueKey, "_").concat(nxt))));
|
|
8504
8500
|
}, {});
|
|
8505
|
-
return
|
|
8501
|
+
return _ref34 = {}, _defineProperty(_ref34, nex.uniqueKey, map), _defineProperty(_ref34, "".concat(nex.uniqueKey, "_enterprisePaymentAlipayNick"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentAlipayNick"))), _defineProperty(_ref34, "".concat(nex.uniqueKey, "_enterprisePaymentAlipayNo"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentAlipayNo"))), _defineProperty(_ref34, "".concat(nex.uniqueKey, "_enterprisePaymentBuyerNick"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentBuyerNick"))), _defineProperty(_ref34, "".concat(nex.uniqueKey, "_enterprisePaymentRefundFee"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentRefundFee"))), _defineProperty(_ref34, "".concat(nex.uniqueKey, "_enterprisePaymentStatus"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentStatus"))), _defineProperty(_ref34, "".concat(nex.uniqueKey, "_enterprisePaymentTime"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentTime"))), _defineProperty(_ref34, "".concat(nex.uniqueKey, "_enterprisePaymentTid"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentTid"))), _ref34;
|
|
8506
8502
|
};
|
|
8507
8503
|
};
|
|
8508
8504
|
var processJstLogistics = function processJstLogistics(getValue) {
|
|
@@ -9265,14 +9261,14 @@ var processJstReturnGoods = function processJstReturnGoods(templateColumns) {
|
|
|
9265
9261
|
};
|
|
9266
9262
|
var processLabel = function processLabel(getValue) {
|
|
9267
9263
|
return function (nex, config) {
|
|
9268
|
-
var
|
|
9269
|
-
return
|
|
9264
|
+
var _ref74;
|
|
9265
|
+
return _ref74 = {}, _defineProperty(_ref74, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _defineProperty(_ref74, "".concat(nex.uniqueKey, "_label"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _ref74;
|
|
9270
9266
|
};
|
|
9271
9267
|
};
|
|
9272
9268
|
var processMemberLevel = function processMemberLevel(getValue) {
|
|
9273
9269
|
return function (nex, config) {
|
|
9274
|
-
var
|
|
9275
|
-
return
|
|
9270
|
+
var _ref75;
|
|
9271
|
+
return _ref75 = {}, _defineProperty(_ref75, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _defineProperty(_ref75, "".concat(nex.uniqueKey, "_memberLevel"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _ref75;
|
|
9276
9272
|
};
|
|
9277
9273
|
};
|
|
9278
9274
|
var processAfterSalesOrderId = function processAfterSalesOrderId(getValue) {
|
|
@@ -9567,6 +9563,7 @@ var FileRender = function FileRender(_ref) {
|
|
|
9567
9563
|
cursor: 'pointer'
|
|
9568
9564
|
},
|
|
9569
9565
|
onClick: function onClick(e) {
|
|
9566
|
+
console.log('onPreview');
|
|
9570
9567
|
e.preventDefault();
|
|
9571
9568
|
onPreview(item);
|
|
9572
9569
|
},
|
|
@@ -9662,9 +9659,6 @@ var PictureRender = function PictureRender(_ref2) {
|
|
|
9662
9659
|
}));
|
|
9663
9660
|
}));
|
|
9664
9661
|
};
|
|
9665
|
-
var LogisticsCompanyRender = function LogisticsCompanyRender(value) {
|
|
9666
|
-
return kmkfUtils.ExpressData.getInstance().getExpressNameByCode(value) || value;
|
|
9667
|
-
};
|
|
9668
9662
|
var MultipleSelectRender = function MultipleSelectRender(_ref5) {
|
|
9669
9663
|
var _ref5$value = _ref5.value,
|
|
9670
9664
|
value = _ref5$value === void 0 ? [] : _ref5$value;
|
|
@@ -9699,16 +9693,6 @@ var renderMap = {
|
|
|
9699
9693
|
});
|
|
9700
9694
|
}
|
|
9701
9695
|
};
|
|
9702
|
-
var renderSplitMap = {
|
|
9703
|
-
//物流轨迹-物流公司
|
|
9704
|
-
jbCFrJV4m7_trajectoryCompany: function jbCFrJV4m7_trajectoryCompany(value) {
|
|
9705
|
-
return LogisticsCompanyRender(value);
|
|
9706
|
-
},
|
|
9707
|
-
//退货物流-物流公司
|
|
9708
|
-
'0qFEv9GEyd_returnLogisticsCompany': function qFEv9GEyd_returnLogisticsCompany(value) {
|
|
9709
|
-
return LogisticsCompanyRender(value);
|
|
9710
|
-
}
|
|
9711
|
-
};
|
|
9712
9696
|
var EditPictureRender = function EditPictureRender(_ref6) {
|
|
9713
9697
|
var _ref6$val = _ref6.val,
|
|
9714
9698
|
val = _ref6$val === void 0 ? [] : _ref6$val,
|
|
@@ -9804,6 +9788,7 @@ var EditFileRender = function EditFileRender(_ref7) {
|
|
|
9804
9788
|
var EditRenderMap = {
|
|
9805
9789
|
INPUT: function INPUT(_ref8) {
|
|
9806
9790
|
var val = _ref8.val,
|
|
9791
|
+
record = _ref8.record,
|
|
9807
9792
|
index = _ref8.index,
|
|
9808
9793
|
t = _ref8.t,
|
|
9809
9794
|
updateHandle = _ref8.updateHandle,
|
|
@@ -9832,6 +9817,7 @@ var EditRenderMap = {
|
|
|
9832
9817
|
},
|
|
9833
9818
|
TEXTAREA: function TEXTAREA(_ref9) {
|
|
9834
9819
|
var val = _ref9.val,
|
|
9820
|
+
record = _ref9.record,
|
|
9835
9821
|
index = _ref9.index,
|
|
9836
9822
|
t = _ref9.t,
|
|
9837
9823
|
updateHandle = _ref9.updateHandle,
|
|
@@ -9860,6 +9846,7 @@ var EditRenderMap = {
|
|
|
9860
9846
|
},
|
|
9861
9847
|
PICTURE: function PICTURE(_ref10) {
|
|
9862
9848
|
var val = _ref10.val,
|
|
9849
|
+
record = _ref10.record,
|
|
9863
9850
|
index = _ref10.index,
|
|
9864
9851
|
t = _ref10.t,
|
|
9865
9852
|
updateHandle = _ref10.updateHandle,
|
|
@@ -9877,6 +9864,7 @@ var EditRenderMap = {
|
|
|
9877
9864
|
},
|
|
9878
9865
|
FILE: function FILE(_ref11) {
|
|
9879
9866
|
var val = _ref11.val,
|
|
9867
|
+
record = _ref11.record,
|
|
9880
9868
|
index = _ref11.index,
|
|
9881
9869
|
t = _ref11.t,
|
|
9882
9870
|
updateHandle = _ref11.updateHandle,
|
|
@@ -9894,6 +9882,7 @@ var EditRenderMap = {
|
|
|
9894
9882
|
},
|
|
9895
9883
|
RADIO: function RADIO(_ref12) {
|
|
9896
9884
|
var val = _ref12.val,
|
|
9885
|
+
record = _ref12.record,
|
|
9897
9886
|
index = _ref12.index,
|
|
9898
9887
|
t = _ref12.t,
|
|
9899
9888
|
updateHandle = _ref12.updateHandle,
|
|
@@ -9916,6 +9905,7 @@ var EditRenderMap = {
|
|
|
9916
9905
|
},
|
|
9917
9906
|
SELECT: function SELECT(_ref13) {
|
|
9918
9907
|
var val = _ref13.val,
|
|
9908
|
+
record = _ref13.record,
|
|
9919
9909
|
index = _ref13.index,
|
|
9920
9910
|
t = _ref13.t,
|
|
9921
9911
|
updateHandle = _ref13.updateHandle,
|
|
@@ -9938,6 +9928,7 @@ var EditRenderMap = {
|
|
|
9938
9928
|
},
|
|
9939
9929
|
CHECKBOX: function CHECKBOX(_ref14) {
|
|
9940
9930
|
var val = _ref14.val,
|
|
9931
|
+
record = _ref14.record,
|
|
9941
9932
|
index = _ref14.index,
|
|
9942
9933
|
t = _ref14.t,
|
|
9943
9934
|
updateHandle = _ref14.updateHandle,
|
|
@@ -9959,6 +9950,7 @@ var EditRenderMap = {
|
|
|
9959
9950
|
},
|
|
9960
9951
|
BASIC_MULT_SELECT: function BASIC_MULT_SELECT(_ref15) {
|
|
9961
9952
|
var val = _ref15.val,
|
|
9953
|
+
record = _ref15.record,
|
|
9962
9954
|
index = _ref15.index,
|
|
9963
9955
|
t = _ref15.t,
|
|
9964
9956
|
updateHandle = _ref15.updateHandle,
|
|
@@ -9977,57 +9969,6 @@ var EditRenderMap = {
|
|
|
9977
9969
|
return updateHandle(e, index, t.key);
|
|
9978
9970
|
}
|
|
9979
9971
|
}));
|
|
9980
|
-
},
|
|
9981
|
-
DEFAULT: function DEFAULT(_ref16) {
|
|
9982
|
-
var val = _ref16.val,
|
|
9983
|
-
index = _ref16.index,
|
|
9984
|
-
t = _ref16.t,
|
|
9985
|
-
updateHandle = _ref16.updateHandle,
|
|
9986
|
-
disabled = _ref16.disabled;
|
|
9987
|
-
return !t.isEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
9988
|
-
allowClear: true,
|
|
9989
|
-
style: {
|
|
9990
|
-
width: '100%'
|
|
9991
|
-
},
|
|
9992
|
-
value: val,
|
|
9993
|
-
onChange: function onChange(e) {
|
|
9994
|
-
var _e$target3;
|
|
9995
|
-
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);
|
|
9996
|
-
}
|
|
9997
|
-
}) : /*#__PURE__*/React__default['default'].createElement("div", null, val);
|
|
9998
|
-
}
|
|
9999
|
-
};
|
|
10000
|
-
var EditSplitRenderMap = {
|
|
10001
|
-
jbCFrJV4m7_trajectoryCompany: function jbCFrJV4m7_trajectoryCompany(_ref17) {
|
|
10002
|
-
var val = _ref17.val,
|
|
10003
|
-
index = _ref17.index,
|
|
10004
|
-
t = _ref17.t,
|
|
10005
|
-
updateHandle = _ref17.updateHandle,
|
|
10006
|
-
disabled = _ref17.disabled;
|
|
10007
|
-
return /*#__PURE__*/React__default['default'].createElement(ApaasLogistics, {
|
|
10008
|
-
value: val,
|
|
10009
|
-
allowClear: true,
|
|
10010
|
-
onChange: function onChange(e) {
|
|
10011
|
-
return updateHandle(e, index, t.key);
|
|
10012
|
-
},
|
|
10013
|
-
disabled: t.isEdit || disabled
|
|
10014
|
-
});
|
|
10015
|
-
},
|
|
10016
|
-
//退货物流-物流公司
|
|
10017
|
-
'0qFEv9GEyd_returnLogisticsCompany': function qFEv9GEyd_returnLogisticsCompany(_ref18) {
|
|
10018
|
-
var val = _ref18.val,
|
|
10019
|
-
index = _ref18.index,
|
|
10020
|
-
t = _ref18.t,
|
|
10021
|
-
updateHandle = _ref18.updateHandle,
|
|
10022
|
-
disabled = _ref18.disabled;
|
|
10023
|
-
return /*#__PURE__*/React__default['default'].createElement(ApaasLogistics, {
|
|
10024
|
-
value: val,
|
|
10025
|
-
allowClear: true,
|
|
10026
|
-
onChange: function onChange(e) {
|
|
10027
|
-
return updateHandle(e, index, t.key);
|
|
10028
|
-
},
|
|
10029
|
-
disabled: t.isEdit || disabled
|
|
10030
|
-
});
|
|
10031
9972
|
}
|
|
10032
9973
|
};
|
|
10033
9974
|
|
|
@@ -10055,7 +9996,6 @@ function HoverTableRowDeleteIcon(_ref) {
|
|
|
10055
9996
|
}
|
|
10056
9997
|
|
|
10057
9998
|
var WidgetMap = {
|
|
10058
|
-
TRADE_ID_INPUT: 'tradeId',
|
|
10059
9999
|
INPUT: 'input',
|
|
10060
10000
|
TEXTAREA: 'textarea',
|
|
10061
10001
|
PICTURE: 'picture',
|
|
@@ -10082,8 +10022,8 @@ var SubForm = function SubForm(props) {
|
|
|
10082
10022
|
tableHeader = props.tableHeader,
|
|
10083
10023
|
disabled = props.disabled,
|
|
10084
10024
|
platform = props.platform,
|
|
10085
|
-
|
|
10086
|
-
|
|
10025
|
+
manual = props.manual,
|
|
10026
|
+
maxCount = props.maxCount;
|
|
10087
10027
|
var ref = React.useRef(null);
|
|
10088
10028
|
var isRequest = React.useRef(false);
|
|
10089
10029
|
var _useState = React.useState(false),
|
|
@@ -10158,6 +10098,7 @@ var SubForm = function SubForm(props) {
|
|
|
10158
10098
|
return deleteHandle(record.uuid);
|
|
10159
10099
|
}
|
|
10160
10100
|
});
|
|
10101
|
+
// return <div style={{ width: 25 }}>{index + 1}</div>;
|
|
10161
10102
|
}
|
|
10162
10103
|
}].concat(_toConsumableArray(newTableHeader.map(function (t) {
|
|
10163
10104
|
return {
|
|
@@ -10170,41 +10111,27 @@ var SubForm = function SubForm(props) {
|
|
|
10170
10111
|
ellipsis: true,
|
|
10171
10112
|
width: t.width,
|
|
10172
10113
|
render: function render(val, record, index) {
|
|
10173
|
-
|
|
10174
|
-
|
|
10175
|
-
|
|
10176
|
-
|
|
10177
|
-
|
|
10178
|
-
|
|
10179
|
-
|
|
10180
|
-
|
|
10181
|
-
|
|
10182
|
-
|
|
10183
|
-
|
|
10184
|
-
|
|
10185
|
-
|
|
10186
|
-
|
|
10187
|
-
|
|
10188
|
-
|
|
10189
|
-
|
|
10190
|
-
|
|
10191
|
-
updateHandle:
|
|
10192
|
-
|
|
10193
|
-
|
|
10194
|
-
} else {
|
|
10195
|
-
return EditRenderMap['DEFAULT']({
|
|
10196
|
-
val: val,
|
|
10197
|
-
record: record,
|
|
10198
|
-
index: index,
|
|
10199
|
-
t: t,
|
|
10200
|
-
updateHandle: updateHandle,
|
|
10201
|
-
disabled: disabled,
|
|
10202
|
-
componentDto: componentDtoList.find(function (item) {
|
|
10203
|
-
return item.uniqueKey === t.key;
|
|
10204
|
-
}),
|
|
10205
|
-
platform: platform
|
|
10206
|
-
});
|
|
10207
|
-
}
|
|
10114
|
+
return EditRenderMap[t.workOrderComponentType] ? EditRenderMap[t.workOrderComponentType]({
|
|
10115
|
+
val: val,
|
|
10116
|
+
record: record,
|
|
10117
|
+
index: index,
|
|
10118
|
+
t: t,
|
|
10119
|
+
updateHandle: updateHandle,
|
|
10120
|
+
disabled: disabled,
|
|
10121
|
+
componentDto: componentDtoList.find(function (item) {
|
|
10122
|
+
return item.uniqueKey === t.key;
|
|
10123
|
+
}),
|
|
10124
|
+
platform: platform
|
|
10125
|
+
}) : /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
10126
|
+
style: {
|
|
10127
|
+
width: '100%'
|
|
10128
|
+
},
|
|
10129
|
+
value: val,
|
|
10130
|
+
onChange: function onChange(e) {
|
|
10131
|
+
var _e$target;
|
|
10132
|
+
return updateHandle(e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.value, index, t.key);
|
|
10133
|
+
}
|
|
10134
|
+
});
|
|
10208
10135
|
}
|
|
10209
10136
|
};
|
|
10210
10137
|
})), [disabled ? {} : {
|
|
@@ -10254,10 +10181,6 @@ var SubForm = function SubForm(props) {
|
|
|
10254
10181
|
item.render = function (val) {
|
|
10255
10182
|
return renderMap[t.workOrderComponentType](val, platform);
|
|
10256
10183
|
};
|
|
10257
|
-
} else if (renderSplitMap[t.key]) {
|
|
10258
|
-
item.render = function (val) {
|
|
10259
|
-
return renderSplitMap[t.key](val);
|
|
10260
|
-
};
|
|
10261
10184
|
}
|
|
10262
10185
|
return item;
|
|
10263
10186
|
})));
|
|
@@ -10272,11 +10195,7 @@ var SubForm = function SubForm(props) {
|
|
|
10272
10195
|
if (['PICTURE', 'FILE', 'BASIC_MULT_SELECT', 'CHECKBOX'].includes(next.workOrderComponentType)) {
|
|
10273
10196
|
item.defaultValue = [];
|
|
10274
10197
|
}
|
|
10275
|
-
|
|
10276
|
-
prv["".concat(next.key, "_").concat(WidgetMap[next.workOrderComponentType])] = item;
|
|
10277
|
-
} else {
|
|
10278
|
-
prv["".concat(next.key)] = item;
|
|
10279
|
-
}
|
|
10198
|
+
prv["".concat(next.key, "_").concat(WidgetMap[next.workOrderComponentType])] = item;
|
|
10280
10199
|
return prv;
|
|
10281
10200
|
}, {});
|
|
10282
10201
|
}, [newTableHeader]);
|
|
@@ -10293,7 +10212,7 @@ var SubForm = function SubForm(props) {
|
|
|
10293
10212
|
}).map(function (item) {
|
|
10294
10213
|
return {
|
|
10295
10214
|
label: item.name,
|
|
10296
|
-
value:
|
|
10215
|
+
value: "".concat(item.key, "_").concat(WidgetMap[item.workOrderComponentType])
|
|
10297
10216
|
};
|
|
10298
10217
|
});
|
|
10299
10218
|
setSelectKey(options === null || options === void 0 ? void 0 : (_options$ = options[0]) === null || _options$ === void 0 ? void 0 : _options$.value);
|
|
@@ -10335,7 +10254,6 @@ var SubForm = function SubForm(props) {
|
|
|
10335
10254
|
_ref2$componentList,
|
|
10336
10255
|
componentList,
|
|
10337
10256
|
params,
|
|
10338
|
-
queryComponents,
|
|
10339
10257
|
res,
|
|
10340
10258
|
data,
|
|
10341
10259
|
success,
|
|
@@ -10368,25 +10286,15 @@ var SubForm = function SubForm(props) {
|
|
|
10368
10286
|
}]
|
|
10369
10287
|
};
|
|
10370
10288
|
if (selectKey && inputValue) {
|
|
10371
|
-
queryComponents = [{
|
|
10289
|
+
params.queryComponents = [{
|
|
10372
10290
|
key: 'flowStatus',
|
|
10373
10291
|
symbol: 'in',
|
|
10374
10292
|
value: flowStatus
|
|
10293
|
+
}, {
|
|
10294
|
+
key: selectKey,
|
|
10295
|
+
symbol: 'in',
|
|
10296
|
+
value: [inputValue]
|
|
10375
10297
|
}];
|
|
10376
|
-
if (['0qFEv9GEyd_returnLogisticsCode', 'jbCFrJV4m7_trajectoryCode'].includes(selectKey)) {
|
|
10377
|
-
queryComponents.push({
|
|
10378
|
-
key: selectKey,
|
|
10379
|
-
symbol: 'like',
|
|
10380
|
-
value: inputValue
|
|
10381
|
-
});
|
|
10382
|
-
} else {
|
|
10383
|
-
queryComponents.push({
|
|
10384
|
-
key: selectKey,
|
|
10385
|
-
symbol: 'in',
|
|
10386
|
-
value: [inputValue]
|
|
10387
|
-
});
|
|
10388
|
-
}
|
|
10389
|
-
params.queryComponents = queryComponents;
|
|
10390
10298
|
}
|
|
10391
10299
|
_context.next = 7;
|
|
10392
10300
|
return extendRequest('/qy/view/workOrderList', {
|
|
@@ -10582,21 +10490,7 @@ var SubForm = function SubForm(props) {
|
|
|
10582
10490
|
placement: "bottom",
|
|
10583
10491
|
visible: open,
|
|
10584
10492
|
onVisibleChange: handleOpenChange
|
|
10585
|
-
},
|
|
10586
|
-
value: undefined,
|
|
10587
|
-
onChange: function onChange(val) {
|
|
10588
|
-
onChangeInput(val);
|
|
10589
|
-
},
|
|
10590
|
-
placeholder: "\u8BF7\u9009\u62E9\u7269\u6D41\u516C\u53F8",
|
|
10591
|
-
showSearch: true,
|
|
10592
|
-
allowClear: true,
|
|
10593
|
-
style: {
|
|
10594
|
-
width: '180px'
|
|
10595
|
-
},
|
|
10596
|
-
filterOption: function filterOption(input, option) {
|
|
10597
|
-
return option.label.includes(input);
|
|
10598
|
-
}
|
|
10599
|
-
}) : /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
10493
|
+
}, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
10600
10494
|
placeholder: "\u8F93\u5165\u5173\u952E\u8BCD\u67E5\u8BE2",
|
|
10601
10495
|
allowClear: true,
|
|
10602
10496
|
onChange: function onChange(e) {
|
|
@@ -13572,7 +13466,7 @@ var LogisticsTrajectory = function LogisticsTrajectory(props) {
|
|
|
13572
13466
|
if (disabled) {
|
|
13573
13467
|
return;
|
|
13574
13468
|
}
|
|
13575
|
-
if (['
|
|
13469
|
+
if (['SF', 'ZTO'].includes(newCompany) && !(newCompany && trajectoryCode && trajectoryPhone)) {
|
|
13576
13470
|
return;
|
|
13577
13471
|
} else if (!(newCompany && trajectoryCode)) {
|
|
13578
13472
|
return;
|
|
@@ -13708,7 +13602,7 @@ var LogisticsTrajectory = function LogisticsTrajectory(props) {
|
|
|
13708
13602
|
value: value === null || value === void 0 ? void 0 : value.trajectorySnapshot
|
|
13709
13603
|
});
|
|
13710
13604
|
};
|
|
13711
|
-
return /*#__PURE__*/React__default['default'].createElement("div", null, LogisticsCompany(), LogisticsCode(), ['SF', 'ZTO'
|
|
13605
|
+
return /*#__PURE__*/React__default['default'].createElement("div", null, LogisticsCompany(), LogisticsCode(), ['SF', 'ZTO'].includes(value === null || value === void 0 ? void 0 : value.trajectoryCompany) ? LogisticsPhone(value === null || value === void 0 ? void 0 : value.trajectoryCompany) : null, trajectoryApiStatus && isSingle && LogisticsApiStatus(), showField && showField.includes('snapshot') ? /*#__PURE__*/React__default['default'].createElement(LogisticsSnapshot, null) : null);
|
|
13712
13606
|
};
|
|
13713
13607
|
|
|
13714
13608
|
var LogisticsMoreTrajectory = function LogisticsMoreTrajectory(props) {
|
|
@@ -13964,7 +13858,7 @@ var jstGoods = function jstGoods(props) {
|
|
|
13964
13858
|
changeIndex = _useState2[0],
|
|
13965
13859
|
setChangeIndex = _useState2[1]; //选中的包裹
|
|
13966
13860
|
var sendOptions = kmkfUtils.SendDataCenter.getInstance(platformType).getSendData();
|
|
13967
|
-
var isSelectName = ['wdt', 'bsE3', 'km', 'gy', 'jst', 'jy'
|
|
13861
|
+
var isSelectName = ['wdt', 'bsE3', 'km', 'gy', 'jst', 'jy'].includes(platformType);
|
|
13968
13862
|
var expressDateInstance = kmkfUtils.ExpressData.getInstance(platformType);
|
|
13969
13863
|
var isSendGoodSavedId = isSelectName && !['jst'].includes(platformType);
|
|
13970
13864
|
React.useEffect(function () {
|
|
@@ -15336,223 +15230,6 @@ var jyColumns = [{
|
|
|
15336
15230
|
}
|
|
15337
15231
|
}];
|
|
15338
15232
|
|
|
15339
|
-
var jkyColumns = [{
|
|
15340
|
-
dataIndex: 'goodsNo',
|
|
15341
|
-
title: "\u8D27\u54C1\u7F16\u53F7",
|
|
15342
|
-
align: 'center',
|
|
15343
|
-
ellipsis: true,
|
|
15344
|
-
width: 150,
|
|
15345
|
-
render: renderTextEllipsis
|
|
15346
|
-
}, {
|
|
15347
|
-
dataIndex: 'goodsName',
|
|
15348
|
-
title: "\u8D27\u54C1\u540D\u79F0",
|
|
15349
|
-
align: 'center',
|
|
15350
|
-
ellipsis: true,
|
|
15351
|
-
width: 150,
|
|
15352
|
-
render: renderTextEllipsis
|
|
15353
|
-
}, {
|
|
15354
|
-
dataIndex: 'goodsId',
|
|
15355
|
-
title: "\u8D27\u54C1ID",
|
|
15356
|
-
align: 'center',
|
|
15357
|
-
ellipsis: true,
|
|
15358
|
-
width: 150,
|
|
15359
|
-
render: renderTextEllipsis
|
|
15360
|
-
}, {
|
|
15361
|
-
dataIndex: 'barcode',
|
|
15362
|
-
title: "\u8D27\u54C1\u6761\u7801",
|
|
15363
|
-
align: 'center',
|
|
15364
|
-
ellipsis: true,
|
|
15365
|
-
width: 150,
|
|
15366
|
-
render: renderTextEllipsis
|
|
15367
|
-
}, {
|
|
15368
|
-
dataIndex: 'specName',
|
|
15369
|
-
title: "\u89C4\u683C\u540D\u79F0",
|
|
15370
|
-
align: 'center',
|
|
15371
|
-
ellipsis: true,
|
|
15372
|
-
width: 150,
|
|
15373
|
-
render: renderTextEllipsis
|
|
15374
|
-
}, {
|
|
15375
|
-
dataIndex: 'specId',
|
|
15376
|
-
title: "\u89C4\u683CID",
|
|
15377
|
-
align: 'center',
|
|
15378
|
-
ellipsis: true,
|
|
15379
|
-
width: 150,
|
|
15380
|
-
render: renderTextEllipsis
|
|
15381
|
-
}, {
|
|
15382
|
-
dataIndex: 'skuImgUrl',
|
|
15383
|
-
title: "\u89C4\u683C\u56FE\u7247",
|
|
15384
|
-
align: 'center',
|
|
15385
|
-
ellipsis: true,
|
|
15386
|
-
width: 150,
|
|
15387
|
-
render: function render(val) {
|
|
15388
|
-
return /*#__PURE__*/React__default['default'].createElement("img", {
|
|
15389
|
-
style: {
|
|
15390
|
-
width: '30px',
|
|
15391
|
-
height: '30px',
|
|
15392
|
-
objectFit: 'contain'
|
|
15393
|
-
},
|
|
15394
|
-
src: val
|
|
15395
|
-
});
|
|
15396
|
-
}
|
|
15397
|
-
}, {
|
|
15398
|
-
dataIndex: 'sellCount',
|
|
15399
|
-
title: "\u6570\u91CF",
|
|
15400
|
-
width: 100,
|
|
15401
|
-
render: function render(val) {
|
|
15402
|
-
return /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
15403
|
-
}
|
|
15404
|
-
}, {
|
|
15405
|
-
dataIndex: 'actualSendCount',
|
|
15406
|
-
title: "\u5B9E\u53D1\u6570\u91CF",
|
|
15407
|
-
width: 150,
|
|
15408
|
-
render: renderTextEllipsis
|
|
15409
|
-
}, {
|
|
15410
|
-
dataIndex: 'sellPrice',
|
|
15411
|
-
title: "\u5355\u4EF7",
|
|
15412
|
-
width: 150,
|
|
15413
|
-
render: function render(val) {
|
|
15414
|
-
return val || val === 0 ? Number(val).toFixed(2) : '';
|
|
15415
|
-
}
|
|
15416
|
-
}, {
|
|
15417
|
-
dataIndex: 'sellTotal',
|
|
15418
|
-
title: "\u91D1\u989D",
|
|
15419
|
-
width: 150
|
|
15420
|
-
}, {
|
|
15421
|
-
dataIndex: 'discountTotal',
|
|
15422
|
-
title: "\u62B5\u6263\u91D1\u989D",
|
|
15423
|
-
width: 150
|
|
15424
|
-
}, {
|
|
15425
|
-
dataIndex: 'shareFavourableFee',
|
|
15426
|
-
title: "\u5206\u644A\u91D1\u989D",
|
|
15427
|
-
width: 150
|
|
15428
|
-
}, {
|
|
15429
|
-
dataIndex: 'shareFavourableAfterFee',
|
|
15430
|
-
title: "\u5206\u644A\u540E\u91D1\u989D",
|
|
15431
|
-
width: 150
|
|
15432
|
-
}, {
|
|
15433
|
-
dataIndex: 'customerPrice',
|
|
15434
|
-
title: "\u7EC8\u7AEF\u9500\u552E\u5355\u4EF7",
|
|
15435
|
-
width: 150
|
|
15436
|
-
}, {
|
|
15437
|
-
dataIndex: 'customerTotal',
|
|
15438
|
-
title: "\u7EC8\u7AEF\u9500\u552E\u91D1\u989D",
|
|
15439
|
-
width: 150
|
|
15440
|
-
}, {
|
|
15441
|
-
dataIndex: 'divideSellTotal',
|
|
15442
|
-
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
15443
|
-
width: 150
|
|
15444
|
-
}, {
|
|
15445
|
-
dataIndex: 'isGift',
|
|
15446
|
-
title: "\u662F\u5426\u8D60\u54C1",
|
|
15447
|
-
width: 150,
|
|
15448
|
-
render: function render(val) {
|
|
15449
|
-
return /*#__PURE__*/React__default['default'].createElement("span", null, val === '1' ? '是' : '否');
|
|
15450
|
-
}
|
|
15451
|
-
}, {
|
|
15452
|
-
dataIndex: 'isFit',
|
|
15453
|
-
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
15454
|
-
width: 150,
|
|
15455
|
-
render: function render(val) {
|
|
15456
|
-
return /*#__PURE__*/React__default['default'].createElement("span", null, val === '1' ? '是' : '否');
|
|
15457
|
-
}
|
|
15458
|
-
}, {
|
|
15459
|
-
dataIndex: 'isPresell',
|
|
15460
|
-
title: "\u662F\u5426\u9884\u552E\u8D27\u54C1",
|
|
15461
|
-
width: 150,
|
|
15462
|
-
render: function render(val) {
|
|
15463
|
-
return /*#__PURE__*/React__default['default'].createElement("span", null, val === '1' ? '是' : '否');
|
|
15464
|
-
}
|
|
15465
|
-
}, {
|
|
15466
|
-
dataIndex: 'brandName',
|
|
15467
|
-
title: "\u54C1\u724C",
|
|
15468
|
-
align: 'center',
|
|
15469
|
-
ellipsis: true,
|
|
15470
|
-
width: 200,
|
|
15471
|
-
render: renderTextEllipsis
|
|
15472
|
-
}, {
|
|
15473
|
-
dataIndex: 'cateName',
|
|
15474
|
-
title: "\u8D27\u54C1\u7C7B\u522B",
|
|
15475
|
-
align: 'center',
|
|
15476
|
-
ellipsis: true,
|
|
15477
|
-
width: 150,
|
|
15478
|
-
render: renderTextEllipsis
|
|
15479
|
-
}, {
|
|
15480
|
-
dataIndex: 'goodsTags',
|
|
15481
|
-
title: "\u8D27\u54C1\u6807\u7B7E",
|
|
15482
|
-
align: 'center',
|
|
15483
|
-
ellipsis: true,
|
|
15484
|
-
width: 250,
|
|
15485
|
-
render: renderTextEllipsis
|
|
15486
|
-
}, {
|
|
15487
|
-
dataIndex: 'goodsMemo',
|
|
15488
|
-
title: "\u8D27\u54C1\u5907\u6CE8",
|
|
15489
|
-
align: 'center',
|
|
15490
|
-
ellipsis: true,
|
|
15491
|
-
width: 250,
|
|
15492
|
-
render: renderTextEllipsis
|
|
15493
|
-
}, {
|
|
15494
|
-
dataIndex: 'tradeGoodsNo',
|
|
15495
|
-
title: "\u4EA4\u6613\u8D27\u54C1\u7F16\u53F7",
|
|
15496
|
-
align: 'center',
|
|
15497
|
-
ellipsis: true,
|
|
15498
|
-
width: 250,
|
|
15499
|
-
render: renderTextEllipsis
|
|
15500
|
-
}, {
|
|
15501
|
-
dataIndex: 'tradeGoodsName',
|
|
15502
|
-
title: "\u4EA4\u6613\u8D27\u54C1\u540D\u79F0",
|
|
15503
|
-
ellipsis: true,
|
|
15504
|
-
width: 250,
|
|
15505
|
-
render: renderTextEllipsis
|
|
15506
|
-
}, {
|
|
15507
|
-
dataIndex: 'tradeGoodsSpec',
|
|
15508
|
-
title: "\u4EA4\u6613\u89C4\u683C\u540D\u79F0",
|
|
15509
|
-
ellipsis: true,
|
|
15510
|
-
width: 250,
|
|
15511
|
-
render: renderTextEllipsis
|
|
15512
|
-
}, {
|
|
15513
|
-
dataIndex: 'sourceSubtradeNo',
|
|
15514
|
-
title: "\u7F51\u5E97\u5B50\u8BA2\u5355\u53F7",
|
|
15515
|
-
ellipsis: true,
|
|
15516
|
-
width: 250,
|
|
15517
|
-
render: renderTextEllipsis
|
|
15518
|
-
}, {
|
|
15519
|
-
dataIndex: 'platGoodsId',
|
|
15520
|
-
title: "\u5E73\u53F0\u5546\u54C1ID",
|
|
15521
|
-
ellipsis: true,
|
|
15522
|
-
width: 250,
|
|
15523
|
-
render: renderTextEllipsis
|
|
15524
|
-
}, {
|
|
15525
|
-
dataIndex: 'subTradeId',
|
|
15526
|
-
title: "\u5546\u54C1\u660E\u7EC6ID",
|
|
15527
|
-
ellipsis: true,
|
|
15528
|
-
width: 250,
|
|
15529
|
-
render: renderTextEllipsis
|
|
15530
|
-
}, {
|
|
15531
|
-
dataIndex: 'batchNo',
|
|
15532
|
-
title: "\u6279\u6B21\u53F7",
|
|
15533
|
-
ellipsis: true,
|
|
15534
|
-
width: 250,
|
|
15535
|
-
render: renderTextEllipsis
|
|
15536
|
-
}, {
|
|
15537
|
-
dataIndex: 'sendCount',
|
|
15538
|
-
title: "\u6279\u6B21\u6570\u91CF",
|
|
15539
|
-
ellipsis: true,
|
|
15540
|
-
width: 250,
|
|
15541
|
-
render: renderTextEllipsis
|
|
15542
|
-
}, {
|
|
15543
|
-
dataIndex: 'productDate',
|
|
15544
|
-
title: "\u751F\u4EA7\u65E5\u671F",
|
|
15545
|
-
ellipsis: true,
|
|
15546
|
-
width: 250,
|
|
15547
|
-
render: renderTextEllipsis
|
|
15548
|
-
}, {
|
|
15549
|
-
dataIndex: 'expireDate',
|
|
15550
|
-
title: "\u5230\u671F\u65E5\u671F",
|
|
15551
|
-
ellipsis: true,
|
|
15552
|
-
width: 250,
|
|
15553
|
-
render: renderTextEllipsis
|
|
15554
|
-
}];
|
|
15555
|
-
|
|
15556
15233
|
var getColumnsMap = function getColumnsMap() {
|
|
15557
15234
|
return lodash.cloneDeep({
|
|
15558
15235
|
gy: gyColumns,
|
|
@@ -15560,8 +15237,7 @@ var getColumnsMap = function getColumnsMap() {
|
|
|
15560
15237
|
wdt: wdtColumns,
|
|
15561
15238
|
bse3: bse3Columns,
|
|
15562
15239
|
km: kmColumns,
|
|
15563
|
-
jy: jyColumns
|
|
15564
|
-
jky: jkyColumns
|
|
15240
|
+
jy: jyColumns
|
|
15565
15241
|
});
|
|
15566
15242
|
};
|
|
15567
15243
|
var getColumnsBaseInfo = function getColumnsBaseInfo() {
|
|
@@ -18790,249 +18466,6 @@ var JyGoodsModal = function JyGoodsModal(props, ref) {
|
|
|
18790
18466
|
};
|
|
18791
18467
|
var JyGoodsModal$1 = /*#__PURE__*/React.forwardRef(JyGoodsModal);
|
|
18792
18468
|
|
|
18793
|
-
var getTableData$6 = function getTableData(_ref, formData) {
|
|
18794
|
-
var current = _ref.current,
|
|
18795
|
-
pageSize = _ref.pageSize;
|
|
18796
|
-
return extendRequest('/qy/gdfw/product/product/page', {
|
|
18797
|
-
method: 'post',
|
|
18798
|
-
data: _objectSpread2({
|
|
18799
|
-
pageSize: pageSize,
|
|
18800
|
-
pageNo: current,
|
|
18801
|
-
platform: 'JY_ERP'
|
|
18802
|
-
}, formData)
|
|
18803
|
-
}).then(function (res) {
|
|
18804
|
-
var _res$data = res.data,
|
|
18805
|
-
_res$data$productSkuL = _res$data.productSkuList,
|
|
18806
|
-
productSkuList = _res$data$productSkuL === void 0 ? [] : _res$data$productSkuL,
|
|
18807
|
-
_res$data$total = _res$data.total,
|
|
18808
|
-
total = _res$data$total === void 0 ? 0 : _res$data$total;
|
|
18809
|
-
var newProducts = productSkuList.map(function (item, index) {
|
|
18810
|
-
return _objectSpread2({}, item);
|
|
18811
|
-
});
|
|
18812
|
-
return {
|
|
18813
|
-
total: total,
|
|
18814
|
-
list: newProducts
|
|
18815
|
-
};
|
|
18816
|
-
});
|
|
18817
|
-
};
|
|
18818
|
-
var searchFormData$5 = [{
|
|
18819
|
-
label: '规格名称',
|
|
18820
|
-
name: 'skuName',
|
|
18821
|
-
dataIndex: 'specName'
|
|
18822
|
-
}, {
|
|
18823
|
-
label: '规格编码',
|
|
18824
|
-
name: 'skuCode',
|
|
18825
|
-
dataIndex: 'specNo'
|
|
18826
|
-
}, {
|
|
18827
|
-
label: '商品名称',
|
|
18828
|
-
name: 'goodName'
|
|
18829
|
-
}, {
|
|
18830
|
-
label: '商品编码',
|
|
18831
|
-
name: 'goodNo'
|
|
18832
|
-
}];
|
|
18833
|
-
var GoodList$6 = function GoodList(props, ref) {
|
|
18834
|
-
var _useState = React.useState([]),
|
|
18835
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
18836
|
-
selectList = _useState2[0],
|
|
18837
|
-
setSelect = _useState2[1];
|
|
18838
|
-
var _useState3 = React.useState([]),
|
|
18839
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
18840
|
-
selectIds = _useState4[0],
|
|
18841
|
-
setSelectIds = _useState4[1];
|
|
18842
|
-
var _useGetColumns = useGetColumns('jky'),
|
|
18843
|
-
_useGetColumns2 = _slicedToArray(_useGetColumns, 3),
|
|
18844
|
-
columns = _useGetColumns2[0],
|
|
18845
|
-
showColumnsDataIndexList = _useGetColumns2[1],
|
|
18846
|
-
loading = _useGetColumns2[2];
|
|
18847
|
-
React.useImperativeHandle(ref, function () {
|
|
18848
|
-
return {
|
|
18849
|
-
getSelectGoodList: function getSelectGoodList() {
|
|
18850
|
-
return selectList;
|
|
18851
|
-
}
|
|
18852
|
-
};
|
|
18853
|
-
});
|
|
18854
|
-
var _Form$useForm = antd.Form.useForm(),
|
|
18855
|
-
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
18856
|
-
form = _Form$useForm2[0];
|
|
18857
|
-
var _useAntdTable = ahooks.useAntdTable(getTableData$6, {
|
|
18858
|
-
defaultPageSize: 10,
|
|
18859
|
-
form: form
|
|
18860
|
-
}),
|
|
18861
|
-
tableProps = _useAntdTable.tableProps,
|
|
18862
|
-
search = _useAntdTable.search,
|
|
18863
|
-
params = _useAntdTable.params;
|
|
18864
|
-
var submit = search.submit,
|
|
18865
|
-
reset = search.reset;
|
|
18866
|
-
var rowSelection = {
|
|
18867
|
-
selectedRowKeys: selectIds,
|
|
18868
|
-
fixed: true,
|
|
18869
|
-
onSelect: function onSelect(record, selected) {
|
|
18870
|
-
if (selected) {
|
|
18871
|
-
setSelectIds([].concat(_toConsumableArray(selectIds), [record.id]));
|
|
18872
|
-
setSelect([].concat(_toConsumableArray(selectList), [record]));
|
|
18873
|
-
} else {
|
|
18874
|
-
setSelectIds(selectIds.filter(function (t) {
|
|
18875
|
-
return t !== record.id;
|
|
18876
|
-
}));
|
|
18877
|
-
setSelect(selectList.filter(function (t) {
|
|
18878
|
-
return t.id !== record.id;
|
|
18879
|
-
}));
|
|
18880
|
-
}
|
|
18881
|
-
},
|
|
18882
|
-
onSelectAll: function onSelectAll(selected, selectedRows, changeRows) {
|
|
18883
|
-
if (selected) {
|
|
18884
|
-
setSelectIds([].concat(_toConsumableArray(selectIds), _toConsumableArray(changeRows.map(function (t) {
|
|
18885
|
-
return t.id;
|
|
18886
|
-
}))));
|
|
18887
|
-
setSelect([].concat(_toConsumableArray(selectList), _toConsumableArray(changeRows)));
|
|
18888
|
-
} else {
|
|
18889
|
-
setSelectIds(lodash.difference(selectIds, changeRows.map(function (t) {
|
|
18890
|
-
return t.id;
|
|
18891
|
-
})));
|
|
18892
|
-
var list = lodash.differenceWith(selectList, changeRows, function (arrVal, othVal) {
|
|
18893
|
-
return arrVal.id !== othVal.id;
|
|
18894
|
-
});
|
|
18895
|
-
setSelect(list);
|
|
18896
|
-
}
|
|
18897
|
-
},
|
|
18898
|
-
getCheckboxProps: function getCheckboxProps(record) {
|
|
18899
|
-
var options = {
|
|
18900
|
-
disabled: (props.selectedRows || []).map(function (row) {
|
|
18901
|
-
return row.id || row.specId;
|
|
18902
|
-
}).includes(record.id || record.specId),
|
|
18903
|
-
name: record.id
|
|
18904
|
-
};
|
|
18905
|
-
return options;
|
|
18906
|
-
}
|
|
18907
|
-
};
|
|
18908
|
-
var showTable = function showTable() {
|
|
18909
|
-
var handleDelete = function handleDelete(record) {
|
|
18910
|
-
setSelectIds(selectIds.filter(function (t) {
|
|
18911
|
-
return t !== record.id;
|
|
18912
|
-
}));
|
|
18913
|
-
setSelect(selectList.filter(function (t) {
|
|
18914
|
-
return t.id !== record.id;
|
|
18915
|
-
}));
|
|
18916
|
-
};
|
|
18917
|
-
var showColumns = [{
|
|
18918
|
-
dataIndex: '',
|
|
18919
|
-
title: "\u64CD\u4F5C",
|
|
18920
|
-
ellipsis: true,
|
|
18921
|
-
width: 100,
|
|
18922
|
-
render: function render(val, record) {
|
|
18923
|
-
return /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
18924
|
-
type: "link",
|
|
18925
|
-
onClick: function onClick() {
|
|
18926
|
-
return handleDelete(record);
|
|
18927
|
-
}
|
|
18928
|
-
}, "\u5220\u9664");
|
|
18929
|
-
}
|
|
18930
|
-
}].concat(lodash.takeRight(columns, columns.length - 1));
|
|
18931
|
-
return selectList.length ? /*#__PURE__*/React__default['default'].createElement("div", {
|
|
18932
|
-
style: {
|
|
18933
|
-
width: '100%',
|
|
18934
|
-
maxWidth: '387px'
|
|
18935
|
-
}
|
|
18936
|
-
}, /*#__PURE__*/React__default['default'].createElement(antd.Table, {
|
|
18937
|
-
columns: showColumns,
|
|
18938
|
-
rowKey: 'id',
|
|
18939
|
-
dataSource: selectList,
|
|
18940
|
-
scroll: {
|
|
18941
|
-
x: '100%',
|
|
18942
|
-
y: 250
|
|
18943
|
-
},
|
|
18944
|
-
pagination: {
|
|
18945
|
-
size: 'small',
|
|
18946
|
-
total: selectIds.length,
|
|
18947
|
-
pageSize: 10,
|
|
18948
|
-
showSizeChanger: false
|
|
18949
|
-
}
|
|
18950
|
-
})) : null;
|
|
18951
|
-
};
|
|
18952
|
-
return /*#__PURE__*/React__default['default'].createElement(antd.Skeleton, {
|
|
18953
|
-
active: true,
|
|
18954
|
-
loading: loading
|
|
18955
|
-
}, /*#__PURE__*/React__default['default'].createElement(SearchForm, {
|
|
18956
|
-
searchFormData: searchFormData$5,
|
|
18957
|
-
form: form,
|
|
18958
|
-
showColumnsDataIndexList: showColumnsDataIndexList,
|
|
18959
|
-
submit: submit,
|
|
18960
|
-
reset: reset
|
|
18961
|
-
}), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
18962
|
-
style: {
|
|
18963
|
-
marginTop: '4px'
|
|
18964
|
-
}
|
|
18965
|
-
}, /*#__PURE__*/React__default['default'].createElement(antd.Table, _objectSpread2({
|
|
18966
|
-
className: "GoodModalColumns",
|
|
18967
|
-
rowSelection: rowSelection,
|
|
18968
|
-
rowKey: "id",
|
|
18969
|
-
columns: columns,
|
|
18970
|
-
scroll: {
|
|
18971
|
-
x: '100%',
|
|
18972
|
-
y: 250
|
|
18973
|
-
},
|
|
18974
|
-
size: "small"
|
|
18975
|
-
}, tableProps))), /*#__PURE__*/React__default['default'].createElement(antd.Popover, {
|
|
18976
|
-
getPopupContainer: function getPopupContainer(triggerNode) {
|
|
18977
|
-
return triggerNode.parentElement;
|
|
18978
|
-
},
|
|
18979
|
-
content: showTable(),
|
|
18980
|
-
title: "\u5DF2\u9009\u62E9".concat(selectList.length, "\u4E2A\u5546\u54C1")
|
|
18981
|
-
}, /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
18982
|
-
danger: true,
|
|
18983
|
-
type: "text"
|
|
18984
|
-
}, "\u5DF2\u9009".concat(selectList.length > 99 ? '99+' : selectList.length, "\u4E2A\u5546\u54C1"), /*#__PURE__*/React__default['default'].createElement(icons.CaretUpOutlined, null))));
|
|
18985
|
-
};
|
|
18986
|
-
var JkyGoodsList = /*#__PURE__*/React.forwardRef(GoodList$6);
|
|
18987
|
-
|
|
18988
|
-
var JkyGoodsModal = function JkyGoodsModal(props, ref) {
|
|
18989
|
-
React.useImperativeHandle(ref, function () {
|
|
18990
|
-
return {
|
|
18991
|
-
open: function open(shopCode) {
|
|
18992
|
-
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
18993
|
-
setVisible(true);
|
|
18994
|
-
setSelectedRows(options.value || []);
|
|
18995
|
-
}
|
|
18996
|
-
};
|
|
18997
|
-
});
|
|
18998
|
-
var onSubmit = props.onSubmit,
|
|
18999
|
-
width = props.width;
|
|
19000
|
-
var _useState = React.useState(false),
|
|
19001
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
19002
|
-
visible = _useState2[0],
|
|
19003
|
-
setVisible = _useState2[1];
|
|
19004
|
-
var _useState3 = React.useState([]),
|
|
19005
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
19006
|
-
selectedRows = _useState4[0],
|
|
19007
|
-
setSelectedRows = _useState4[1];
|
|
19008
|
-
var jkyGoodsListRef = React.useRef(null);
|
|
19009
|
-
var _onCancel = function onCancel() {
|
|
19010
|
-
setVisible(false);
|
|
19011
|
-
};
|
|
19012
|
-
var onOk = function onOk() {
|
|
19013
|
-
var _jkyGoodsListRef$curr;
|
|
19014
|
-
var selectedList = ((_jkyGoodsListRef$curr = jkyGoodsListRef.current) === null || _jkyGoodsListRef$curr === void 0 ? void 0 : _jkyGoodsListRef$curr.getSelectGoodList()) || [];
|
|
19015
|
-
onSubmit(selectedList);
|
|
19016
|
-
_onCancel();
|
|
19017
|
-
};
|
|
19018
|
-
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, visible && /*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
19019
|
-
title: '选择商品',
|
|
19020
|
-
okText: '确认',
|
|
19021
|
-
cancelText: '取消',
|
|
19022
|
-
visible: visible,
|
|
19023
|
-
width: width || 850,
|
|
19024
|
-
onCancel: function onCancel() {
|
|
19025
|
-
_onCancel();
|
|
19026
|
-
},
|
|
19027
|
-
onOk: onOk,
|
|
19028
|
-
wrapClassName: "goodModal"
|
|
19029
|
-
}, /*#__PURE__*/React__default['default'].createElement(JkyGoodsList, {
|
|
19030
|
-
ref: jkyGoodsListRef,
|
|
19031
|
-
selectedRows: selectedRows
|
|
19032
|
-
})));
|
|
19033
|
-
};
|
|
19034
|
-
var JkyGoodsModal$1 = /*#__PURE__*/React.forwardRef(JkyGoodsModal);
|
|
19035
|
-
|
|
19036
18469
|
var getColumns = function getColumns(_ref) {
|
|
19037
18470
|
var _ref$text = _ref.text,
|
|
19038
18471
|
disabled = _ref.disabled,
|
|
@@ -19618,8 +19051,7 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
19618
19051
|
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
19619
19052
|
width: 180,
|
|
19620
19053
|
align: 'center',
|
|
19621
|
-
ellipsis: true
|
|
19622
|
-
render: renderTextEllipsis
|
|
19054
|
+
ellipsis: true
|
|
19623
19055
|
}, {
|
|
19624
19056
|
dataIndex: 'brandName',
|
|
19625
19057
|
title: "\u54C1\u724C\u540D\u79F0",
|
|
@@ -19753,8 +19185,7 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
19753
19185
|
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
19754
19186
|
width: 180,
|
|
19755
19187
|
align: 'center',
|
|
19756
|
-
ellipsis: true
|
|
19757
|
-
render: renderTextEllipsis
|
|
19188
|
+
ellipsis: true
|
|
19758
19189
|
}, {
|
|
19759
19190
|
dataIndex: 'brandName',
|
|
19760
19191
|
title: "\u54C1\u724C\u540D\u79F0",
|
|
@@ -19893,8 +19324,7 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
19893
19324
|
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
19894
19325
|
width: 180,
|
|
19895
19326
|
align: 'center',
|
|
19896
|
-
ellipsis: true
|
|
19897
|
-
render: renderTextEllipsis
|
|
19327
|
+
ellipsis: true
|
|
19898
19328
|
}, {
|
|
19899
19329
|
dataIndex: 'brandName',
|
|
19900
19330
|
title: "\u54C1\u724C\u540D\u79F0",
|
|
@@ -20071,8 +19501,7 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
20071
19501
|
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
20072
19502
|
width: 180,
|
|
20073
19503
|
align: 'center',
|
|
20074
|
-
ellipsis: true
|
|
20075
|
-
render: renderTextEllipsis
|
|
19504
|
+
ellipsis: true
|
|
20076
19505
|
}, {
|
|
20077
19506
|
dataIndex: 'brandName',
|
|
20078
19507
|
title: "\u54C1\u724C\u540D\u79F0",
|
|
@@ -21024,7 +20453,7 @@ var getColumns$5 = function getColumns() {
|
|
|
21024
20453
|
ellipsis: true,
|
|
21025
20454
|
align: 'center',
|
|
21026
20455
|
render: function render(val, record, index) {
|
|
21027
|
-
return (
|
|
20456
|
+
return (record.qty || 0) * (+record.salePrice || 0);
|
|
21028
20457
|
}
|
|
21029
20458
|
}, {
|
|
21030
20459
|
dataIndex: 'batchId',
|
|
@@ -21312,7 +20741,7 @@ var getColumns$5 = function getColumns() {
|
|
|
21312
20741
|
dataIndex: 'saleAmount',
|
|
21313
20742
|
title: '总金额',
|
|
21314
20743
|
render: function render(val, record) {
|
|
21315
|
-
return (
|
|
20744
|
+
return (record.qty || 0) * (+record.salePrice || 0);
|
|
21316
20745
|
}
|
|
21317
20746
|
}, {
|
|
21318
20747
|
dataIndex: 'batchId',
|
|
@@ -21427,7 +20856,7 @@ var getColumns$5 = function getColumns() {
|
|
|
21427
20856
|
dataIndex: 'saleAmount',
|
|
21428
20857
|
title: '总金额',
|
|
21429
20858
|
render: function render(val, record) {
|
|
21430
|
-
return (
|
|
20859
|
+
return (record.qty || 0) * (+record.salePrice || 0);
|
|
21431
20860
|
}
|
|
21432
20861
|
}, {
|
|
21433
20862
|
dataIndex: 'isGift',
|
|
@@ -21692,10 +21121,9 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
21692
21121
|
title: "\u5546\u54C1\u56FE\u7247",
|
|
21693
21122
|
width: 100,
|
|
21694
21123
|
render: function render(val) {
|
|
21695
|
-
var imgUrl = (val === null || val === void 0 ? void 0 : val.startsWith('http')) ? val : "https://erp.superboss.cc".concat(val);
|
|
21696
21124
|
return /*#__PURE__*/React__default['default'].createElement(antd.Image, {
|
|
21697
21125
|
width: 30,
|
|
21698
|
-
src:
|
|
21126
|
+
src: val
|
|
21699
21127
|
});
|
|
21700
21128
|
}
|
|
21701
21129
|
}, {
|
|
@@ -21744,16 +21172,6 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
21744
21172
|
title: "\u5546\u54C1\u7C7B\u578B",
|
|
21745
21173
|
width: 150,
|
|
21746
21174
|
render: renderTextEllipsis
|
|
21747
|
-
}, {
|
|
21748
|
-
dataIndex: 'supplierName',
|
|
21749
|
-
title: "\u4F9B\u5E94\u5546\u540D\u79F0",
|
|
21750
|
-
width: 150,
|
|
21751
|
-
render: renderTextEllipsis
|
|
21752
|
-
}, {
|
|
21753
|
-
dataIndex: 'supplierCode',
|
|
21754
|
-
title: "\u4F9B\u5E94\u5546\u7F16\u7801",
|
|
21755
|
-
width: 150,
|
|
21756
|
-
render: renderTextEllipsis
|
|
21757
21175
|
}].map(function (item) {
|
|
21758
21176
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
21759
21177
|
align: 'center',
|
|
@@ -21881,25 +21299,14 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
21881
21299
|
title: "\u5546\u54C1\u7C7B\u578B",
|
|
21882
21300
|
width: 150,
|
|
21883
21301
|
render: renderTextEllipsis
|
|
21884
|
-
}, {
|
|
21885
|
-
dataIndex: 'supplierName',
|
|
21886
|
-
title: "\u4F9B\u5E94\u5546\u540D\u79F0",
|
|
21887
|
-
width: 150,
|
|
21888
|
-
render: renderTextEllipsis
|
|
21889
|
-
}, {
|
|
21890
|
-
dataIndex: 'supplierCode',
|
|
21891
|
-
title: "\u4F9B\u5E94\u5546\u7F16\u7801",
|
|
21892
|
-
width: 150,
|
|
21893
|
-
render: renderTextEllipsis
|
|
21894
21302
|
}, {
|
|
21895
21303
|
dataIndex: 'sysPicPath',
|
|
21896
21304
|
title: "\u5546\u54C1\u56FE\u7247",
|
|
21897
21305
|
width: 100,
|
|
21898
21306
|
render: function render(val) {
|
|
21899
|
-
var imgUrl = (val === null || val === void 0 ? void 0 : val.startsWith('http')) ? val : "https://erp.superboss.cc".concat(val);
|
|
21900
21307
|
return /*#__PURE__*/React__default['default'].createElement(antd.Image, {
|
|
21901
21308
|
width: 30,
|
|
21902
|
-
src:
|
|
21309
|
+
src: val
|
|
21903
21310
|
});
|
|
21904
21311
|
}
|
|
21905
21312
|
}].map(function (item) {
|
|
@@ -21974,7 +21381,23 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
21974
21381
|
ellipsis: true,
|
|
21975
21382
|
width: 150,
|
|
21976
21383
|
render: renderTextEllipsis
|
|
21977
|
-
},
|
|
21384
|
+
},
|
|
21385
|
+
// {
|
|
21386
|
+
// dataIndex: 'goodsName',
|
|
21387
|
+
// title: `货品名称`,
|
|
21388
|
+
// width: 250,
|
|
21389
|
+
// },
|
|
21390
|
+
// {
|
|
21391
|
+
// dataIndex: 'goodsCode',
|
|
21392
|
+
// title: `货品编号`,
|
|
21393
|
+
// width: 200,
|
|
21394
|
+
// },
|
|
21395
|
+
// {
|
|
21396
|
+
// dataIndex: 'goodsId',
|
|
21397
|
+
// title: `货品ID`,
|
|
21398
|
+
// width: 150,
|
|
21399
|
+
// },
|
|
21400
|
+
{
|
|
21978
21401
|
dataIndex: 'goodsClass',
|
|
21979
21402
|
title: "\u8D27\u54C1\u7C7B\u522B",
|
|
21980
21403
|
width: 150,
|
|
@@ -22311,12 +21734,6 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
22311
21734
|
width: 150,
|
|
22312
21735
|
render: function render(val, record, index) {
|
|
22313
21736
|
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
22314
|
-
dropdownStyle: {
|
|
22315
|
-
zIndex: 2000
|
|
22316
|
-
},
|
|
22317
|
-
getPopupContainer: function getPopupContainer() {
|
|
22318
|
-
return document.body;
|
|
22319
|
-
},
|
|
22320
21737
|
value: val,
|
|
22321
21738
|
onChange: function onChange(value) {
|
|
22322
21739
|
updateHandle(value, index, 'bfit');
|
|
@@ -22346,12 +21763,6 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
22346
21763
|
width: 150,
|
|
22347
21764
|
render: function render(val, record, index) {
|
|
22348
21765
|
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
22349
|
-
dropdownStyle: {
|
|
22350
|
-
zIndex: 2000
|
|
22351
|
-
},
|
|
22352
|
-
getPopupContainer: function getPopupContainer() {
|
|
22353
|
-
return document.body;
|
|
22354
|
-
},
|
|
22355
21766
|
value: val,
|
|
22356
21767
|
onChange: function onChange(value) {
|
|
22357
21768
|
updateHandle(value, index, 'gift');
|
|
@@ -22416,518 +21827,16 @@ var getColumns$8 = function getColumns(_ref) {
|
|
|
22416
21827
|
};
|
|
22417
21828
|
};
|
|
22418
21829
|
|
|
22419
|
-
var isNumberOrNumberString$3 = function isNumberOrNumberString(value) {
|
|
22420
|
-
if (typeof value === 'number') return true;
|
|
22421
|
-
if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
|
|
22422
|
-
return false;
|
|
22423
|
-
};
|
|
22424
|
-
function toNum$5(value) {
|
|
22425
|
-
if (typeof value === 'string') {
|
|
22426
|
-
return value ? +value : void 0;
|
|
22427
|
-
}
|
|
22428
|
-
if (typeof value === 'number') {
|
|
22429
|
-
return value;
|
|
22430
|
-
}
|
|
22431
|
-
return void 0;
|
|
22432
|
-
}
|
|
22433
21830
|
var getColumns$9 = function getColumns(_ref) {
|
|
22434
21831
|
var _ref$text = _ref.text,
|
|
21832
|
+
text = _ref$text === void 0 ? '' : _ref$text,
|
|
22435
21833
|
disabled = _ref.disabled,
|
|
22436
|
-
updateHandle = _ref.updateHandle
|
|
22437
|
-
updateDataHandle = _ref.updateDataHandle;
|
|
21834
|
+
updateHandle = _ref.updateHandle;
|
|
22438
21835
|
return {
|
|
22439
|
-
|
|
22440
|
-
|
|
22441
|
-
dataIndex: '
|
|
22442
|
-
title: "\
|
|
22443
|
-
align: 'center',
|
|
22444
|
-
ellipsis: true,
|
|
22445
|
-
width: 150,
|
|
22446
|
-
render: renderTextEllipsis
|
|
22447
|
-
}, {
|
|
22448
|
-
dataIndex: 'goodsName',
|
|
22449
|
-
title: "\u8D27\u54C1\u540D\u79F0",
|
|
22450
|
-
align: 'center',
|
|
22451
|
-
ellipsis: true,
|
|
22452
|
-
width: 150,
|
|
22453
|
-
render: renderTextEllipsis
|
|
22454
|
-
}, {
|
|
22455
|
-
dataIndex: 'goodsId',
|
|
22456
|
-
title: "\u8D27\u54C1ID",
|
|
22457
|
-
align: 'center',
|
|
22458
|
-
ellipsis: true,
|
|
22459
|
-
width: 150,
|
|
22460
|
-
render: renderTextEllipsis
|
|
22461
|
-
}, {
|
|
22462
|
-
dataIndex: 'barcode',
|
|
22463
|
-
title: "\u8D27\u54C1\u6761\u7801",
|
|
22464
|
-
align: 'center',
|
|
22465
|
-
ellipsis: true,
|
|
22466
|
-
width: 150,
|
|
22467
|
-
render: renderTextEllipsis
|
|
22468
|
-
}, {
|
|
22469
|
-
dataIndex: 'specName',
|
|
22470
|
-
title: "\u89C4\u683C\u540D\u79F0",
|
|
22471
|
-
align: 'center',
|
|
22472
|
-
ellipsis: true,
|
|
22473
|
-
width: 150,
|
|
22474
|
-
render: renderTextEllipsis
|
|
22475
|
-
}, {
|
|
22476
|
-
dataIndex: 'specId',
|
|
22477
|
-
title: "\u89C4\u683CID",
|
|
22478
|
-
align: 'center',
|
|
22479
|
-
ellipsis: true,
|
|
22480
|
-
width: 150,
|
|
22481
|
-
render: renderTextEllipsis
|
|
22482
|
-
}, {
|
|
22483
|
-
dataIndex: 'skuImgUrl',
|
|
22484
|
-
title: "\u89C4\u683C\u56FE\u7247",
|
|
22485
|
-
align: 'center',
|
|
22486
|
-
ellipsis: true,
|
|
22487
|
-
width: 150,
|
|
22488
|
-
render: function render(val) {
|
|
22489
|
-
return /*#__PURE__*/React__default['default'].createElement(ApaasImage, {
|
|
22490
|
-
width: 30,
|
|
22491
|
-
src: val
|
|
22492
|
-
});
|
|
22493
|
-
}
|
|
22494
|
-
}, {
|
|
22495
|
-
dataIndex: 'sellCount',
|
|
22496
|
-
title: "\u6570\u91CF",
|
|
22497
|
-
width: 100,
|
|
22498
|
-
render: function render(val, record, index) {
|
|
22499
|
-
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
22500
|
-
style: {
|
|
22501
|
-
width: 70
|
|
22502
|
-
},
|
|
22503
|
-
value: val,
|
|
22504
|
-
min: 1,
|
|
22505
|
-
precision: 0,
|
|
22506
|
-
onChange: function onChange(num) {
|
|
22507
|
-
updateDataHandle({
|
|
22508
|
-
sellCount: num,
|
|
22509
|
-
sellTotal: num && isNumberOrNumberString$3(record.sellPrice) ? num * record.sellPrice : null
|
|
22510
|
-
}, index);
|
|
22511
|
-
}
|
|
22512
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
22513
|
-
}
|
|
22514
|
-
}, {
|
|
22515
|
-
dataIndex: 'actualSendCount',
|
|
22516
|
-
title: "\u5B9E\u53D1\u6570\u91CF",
|
|
22517
|
-
width: 150,
|
|
22518
|
-
render: renderTextEllipsis
|
|
22519
|
-
}, {
|
|
22520
|
-
dataIndex: 'sellPrice',
|
|
22521
|
-
title: "\u5355\u4EF7",
|
|
22522
|
-
width: 150,
|
|
22523
|
-
render: function render(val, record, index) {
|
|
22524
|
-
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
22525
|
-
style: {
|
|
22526
|
-
width: 130
|
|
22527
|
-
},
|
|
22528
|
-
value: val,
|
|
22529
|
-
min: 0,
|
|
22530
|
-
precision: 2,
|
|
22531
|
-
onChange: function onChange(num) {
|
|
22532
|
-
updateDataHandle({
|
|
22533
|
-
sellPrice: num,
|
|
22534
|
-
sellTotal: num && isNumberOrNumberString$3(record.sellCount) ? num * record.sellCount : null
|
|
22535
|
-
}, index);
|
|
22536
|
-
}
|
|
22537
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
22538
|
-
}
|
|
22539
|
-
}, {
|
|
22540
|
-
dataIndex: 'sellTotal',
|
|
22541
|
-
title: "\u91D1\u989D",
|
|
22542
|
-
width: 150
|
|
22543
|
-
}, {
|
|
22544
|
-
dataIndex: 'discountTotal',
|
|
22545
|
-
title: "\u62B5\u6263\u91D1\u989D",
|
|
22546
|
-
width: 150
|
|
22547
|
-
}, {
|
|
22548
|
-
dataIndex: 'shareFavourableFee',
|
|
22549
|
-
title: "\u5206\u644A\u91D1\u989D",
|
|
22550
|
-
width: 150
|
|
22551
|
-
}, {
|
|
22552
|
-
dataIndex: 'shareFavourableAfterFee',
|
|
22553
|
-
title: "\u5206\u644A\u540E\u91D1\u989D",
|
|
22554
|
-
width: 150
|
|
22555
|
-
}, {
|
|
22556
|
-
dataIndex: 'customerPrice',
|
|
22557
|
-
title: "\u7EC8\u7AEF\u9500\u552E\u5355\u4EF7",
|
|
22558
|
-
width: 150
|
|
22559
|
-
}, {
|
|
22560
|
-
dataIndex: 'customerTotal',
|
|
22561
|
-
title: "\u7EC8\u7AEF\u9500\u552E\u91D1\u989D",
|
|
22562
|
-
width: 150
|
|
22563
|
-
}, {
|
|
22564
|
-
dataIndex: 'divideSellTotal',
|
|
22565
|
-
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
22566
|
-
width: 150
|
|
22567
|
-
}, {
|
|
22568
|
-
dataIndex: 'isGift',
|
|
22569
|
-
title: "\u662F\u5426\u8D60\u54C1",
|
|
22570
|
-
width: 150,
|
|
22571
|
-
render: function render(val, record, index) {
|
|
22572
|
-
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
22573
|
-
dropdownStyle: {
|
|
22574
|
-
zIndex: 2000
|
|
22575
|
-
},
|
|
22576
|
-
getPopupContainer: function getPopupContainer() {
|
|
22577
|
-
return document.body;
|
|
22578
|
-
},
|
|
22579
|
-
value: val,
|
|
22580
|
-
onChange: function onChange(value) {
|
|
22581
|
-
updateHandle(value, index, 'isGift');
|
|
22582
|
-
},
|
|
22583
|
-
options: [{
|
|
22584
|
-
label: '是',
|
|
22585
|
-
value: '1'
|
|
22586
|
-
}, {
|
|
22587
|
-
label: '否',
|
|
22588
|
-
value: '0'
|
|
22589
|
-
}]
|
|
22590
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val === '1' ? '是' : '否');
|
|
22591
|
-
}
|
|
22592
|
-
}, {
|
|
22593
|
-
dataIndex: 'isFit',
|
|
22594
|
-
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
22595
|
-
width: 150,
|
|
22596
|
-
render: function render(val, record, index) {
|
|
22597
|
-
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
22598
|
-
dropdownStyle: {
|
|
22599
|
-
zIndex: 2000
|
|
22600
|
-
},
|
|
22601
|
-
getPopupContainer: function getPopupContainer() {
|
|
22602
|
-
return document.body;
|
|
22603
|
-
},
|
|
22604
|
-
value: val,
|
|
22605
|
-
onChange: function onChange(value) {
|
|
22606
|
-
updateHandle(value, index, 'isFit');
|
|
22607
|
-
},
|
|
22608
|
-
options: [{
|
|
22609
|
-
label: '是',
|
|
22610
|
-
value: '1'
|
|
22611
|
-
}, {
|
|
22612
|
-
label: '否',
|
|
22613
|
-
value: '0'
|
|
22614
|
-
}]
|
|
22615
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val === '1' ? '是' : '否');
|
|
22616
|
-
}
|
|
22617
|
-
}, {
|
|
22618
|
-
dataIndex: 'isPresell',
|
|
22619
|
-
title: "\u662F\u5426\u9884\u552E\u8D27\u54C1",
|
|
22620
|
-
width: 150,
|
|
22621
|
-
render: function render(val, record, index) {
|
|
22622
|
-
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
22623
|
-
dropdownStyle: {
|
|
22624
|
-
zIndex: 2000
|
|
22625
|
-
},
|
|
22626
|
-
getPopupContainer: function getPopupContainer() {
|
|
22627
|
-
return document.body;
|
|
22628
|
-
},
|
|
22629
|
-
value: val,
|
|
22630
|
-
onChange: function onChange(value) {
|
|
22631
|
-
updateHandle(value, index, 'isPresell');
|
|
22632
|
-
},
|
|
22633
|
-
options: [{
|
|
22634
|
-
label: '是',
|
|
22635
|
-
value: '1'
|
|
22636
|
-
}, {
|
|
22637
|
-
label: '否',
|
|
22638
|
-
value: '0'
|
|
22639
|
-
}]
|
|
22640
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val === '1' ? '是' : '否');
|
|
22641
|
-
}
|
|
22642
|
-
}, {
|
|
22643
|
-
dataIndex: 'brandName',
|
|
22644
|
-
title: "\u54C1\u724C",
|
|
22645
|
-
align: 'center',
|
|
22646
|
-
ellipsis: true,
|
|
22647
|
-
width: 200,
|
|
22648
|
-
render: renderTextEllipsis
|
|
22649
|
-
}, {
|
|
22650
|
-
dataIndex: 'cateName',
|
|
22651
|
-
title: "\u8D27\u54C1\u7C7B\u522B",
|
|
22652
|
-
align: 'center',
|
|
22653
|
-
ellipsis: true,
|
|
22654
|
-
width: 150,
|
|
22655
|
-
render: renderTextEllipsis
|
|
22656
|
-
}, {
|
|
22657
|
-
dataIndex: 'goodsTags',
|
|
22658
|
-
title: "\u8D27\u54C1\u6807\u7B7E",
|
|
22659
|
-
align: 'center',
|
|
22660
|
-
ellipsis: true,
|
|
22661
|
-
width: 250,
|
|
22662
|
-
render: renderTextEllipsis
|
|
22663
|
-
}, {
|
|
22664
|
-
dataIndex: 'goodsMemo',
|
|
22665
|
-
title: "\u8D27\u54C1\u5907\u6CE8",
|
|
22666
|
-
align: 'center',
|
|
22667
|
-
ellipsis: true,
|
|
22668
|
-
width: 250,
|
|
22669
|
-
render: renderTextEllipsis
|
|
22670
|
-
}, {
|
|
22671
|
-
dataIndex: 'tradeGoodsNo',
|
|
22672
|
-
title: "\u4EA4\u6613\u8D27\u54C1\u7F16\u53F7",
|
|
22673
|
-
align: 'center',
|
|
22674
|
-
ellipsis: true,
|
|
22675
|
-
width: 250,
|
|
22676
|
-
render: renderTextEllipsis
|
|
22677
|
-
}, {
|
|
22678
|
-
dataIndex: 'tradeGoodsName',
|
|
22679
|
-
title: "\u4EA4\u6613\u8D27\u54C1\u540D\u79F0",
|
|
22680
|
-
ellipsis: true,
|
|
22681
|
-
width: 250,
|
|
22682
|
-
render: renderTextEllipsis
|
|
22683
|
-
}, {
|
|
22684
|
-
dataIndex: 'tradeGoodsSpec',
|
|
22685
|
-
title: "\u4EA4\u6613\u89C4\u683C\u540D\u79F0",
|
|
22686
|
-
ellipsis: true,
|
|
22687
|
-
width: 250,
|
|
22688
|
-
render: renderTextEllipsis
|
|
22689
|
-
}, {
|
|
22690
|
-
dataIndex: 'sourceSubtradeNo',
|
|
22691
|
-
title: "\u7F51\u5E97\u5B50\u8BA2\u5355\u53F7",
|
|
22692
|
-
ellipsis: true,
|
|
22693
|
-
width: 250,
|
|
22694
|
-
render: renderTextEllipsis
|
|
22695
|
-
}, {
|
|
22696
|
-
dataIndex: 'platGoodsId',
|
|
22697
|
-
title: "\u5E73\u53F0\u5546\u54C1ID",
|
|
22698
|
-
ellipsis: true,
|
|
22699
|
-
width: 250,
|
|
22700
|
-
render: renderTextEllipsis
|
|
22701
|
-
}, {
|
|
22702
|
-
dataIndex: 'subTradeId',
|
|
22703
|
-
title: "\u5546\u54C1\u660E\u7EC6ID",
|
|
22704
|
-
ellipsis: true,
|
|
22705
|
-
width: 250,
|
|
22706
|
-
render: renderTextEllipsis
|
|
22707
|
-
}, {
|
|
22708
|
-
dataIndex: 'batchNo',
|
|
22709
|
-
title: "\u6279\u6B21\u53F7",
|
|
22710
|
-
ellipsis: true,
|
|
22711
|
-
width: 250,
|
|
22712
|
-
render: renderTextEllipsis
|
|
22713
|
-
}, {
|
|
22714
|
-
dataIndex: 'sendCount',
|
|
22715
|
-
title: "\u6279\u6B21\u6570\u91CF",
|
|
22716
|
-
ellipsis: true,
|
|
22717
|
-
width: 250,
|
|
22718
|
-
render: renderTextEllipsis
|
|
22719
|
-
}, {
|
|
22720
|
-
dataIndex: 'productDate',
|
|
22721
|
-
title: "\u751F\u4EA7\u65E5\u671F",
|
|
22722
|
-
ellipsis: true,
|
|
22723
|
-
width: 250,
|
|
22724
|
-
render: renderTextEllipsis
|
|
22725
|
-
}, {
|
|
22726
|
-
dataIndex: 'expireDate',
|
|
22727
|
-
title: "\u5230\u671F\u65E5\u671F",
|
|
22728
|
-
ellipsis: true,
|
|
22729
|
-
width: 250,
|
|
22730
|
-
render: renderTextEllipsis
|
|
22731
|
-
}].map(function (item) {
|
|
22732
|
-
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
22733
|
-
align: 'center',
|
|
22734
|
-
ellipsis: true
|
|
22735
|
-
});
|
|
22736
|
-
}),
|
|
22737
|
-
// 吉客云补发商品信息
|
|
22738
|
-
JKY_REISSUE_GOODS: [{
|
|
22739
|
-
dataIndex: 'goodsNo',
|
|
22740
|
-
title: "\u8D27\u54C1\u7F16\u53F7",
|
|
22741
|
-
align: 'center',
|
|
22742
|
-
ellipsis: true,
|
|
22743
|
-
width: 150,
|
|
22744
|
-
render: renderTextEllipsis
|
|
22745
|
-
}, {
|
|
22746
|
-
dataIndex: 'goodsName',
|
|
22747
|
-
title: "\u8D27\u54C1\u540D\u79F0",
|
|
22748
|
-
align: 'center',
|
|
22749
|
-
ellipsis: true,
|
|
22750
|
-
width: 150,
|
|
22751
|
-
render: renderTextEllipsis
|
|
22752
|
-
}, {
|
|
22753
|
-
dataIndex: 'goodsId',
|
|
22754
|
-
title: "\u8D27\u54C1ID",
|
|
22755
|
-
align: 'center',
|
|
22756
|
-
ellipsis: true,
|
|
22757
|
-
width: 150,
|
|
22758
|
-
render: renderTextEllipsis
|
|
22759
|
-
}, {
|
|
22760
|
-
dataIndex: 'barcode',
|
|
22761
|
-
title: "\u8D27\u54C1\u6761\u7801",
|
|
22762
|
-
align: 'center',
|
|
22763
|
-
ellipsis: true,
|
|
22764
|
-
width: 150,
|
|
22765
|
-
render: renderTextEllipsis
|
|
22766
|
-
}, {
|
|
22767
|
-
dataIndex: 'specName',
|
|
22768
|
-
title: "\u89C4\u683C\u540D\u79F0",
|
|
22769
|
-
align: 'center',
|
|
22770
|
-
ellipsis: true,
|
|
22771
|
-
width: 150,
|
|
22772
|
-
render: renderTextEllipsis
|
|
22773
|
-
}, {
|
|
22774
|
-
dataIndex: 'specId',
|
|
22775
|
-
title: "\u89C4\u683CID",
|
|
22776
|
-
align: 'center',
|
|
22777
|
-
ellipsis: true,
|
|
22778
|
-
width: 150,
|
|
22779
|
-
render: renderTextEllipsis
|
|
22780
|
-
}, {
|
|
22781
|
-
dataIndex: 'skuImgUrl',
|
|
22782
|
-
title: "\u89C4\u683C\u56FE\u7247",
|
|
22783
|
-
width: 150,
|
|
22784
|
-
render: function render(val) {
|
|
22785
|
-
return /*#__PURE__*/React__default['default'].createElement(ApaasImage, {
|
|
22786
|
-
width: 30,
|
|
22787
|
-
src: val
|
|
22788
|
-
});
|
|
22789
|
-
}
|
|
22790
|
-
}, {
|
|
22791
|
-
dataIndex: 'sellCount',
|
|
22792
|
-
title: "\u53D1\u8D27\u6570\u91CF",
|
|
22793
|
-
width: 100,
|
|
22794
|
-
validator: function validator(_rule, value) {
|
|
22795
|
-
var goodsName = '';
|
|
22796
|
-
if (((value === null || value === void 0 ? void 0 : value.jkyReissueGoods) || []).some(function (goods) {
|
|
22797
|
-
var qty = toNum$5(goods === null || goods === void 0 ? void 0 : goods.sellCount);
|
|
22798
|
-
var res = typeof qty === 'number' ? qty < 1 : true;
|
|
22799
|
-
if (res) {
|
|
22800
|
-
goodsName = (goods === null || goods === void 0 ? void 0 : goods.goodsName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodsName, "]") : '';
|
|
22801
|
-
}
|
|
22802
|
-
return res;
|
|
22803
|
-
})) {
|
|
22804
|
-
return Promise.reject("".concat(goodsName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
22805
|
-
}
|
|
22806
|
-
},
|
|
22807
|
-
render: function render(val, record, index) {
|
|
22808
|
-
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
22809
|
-
style: {
|
|
22810
|
-
width: 70
|
|
22811
|
-
},
|
|
22812
|
-
value: val,
|
|
22813
|
-
min: 1,
|
|
22814
|
-
precision: 0,
|
|
22815
|
-
onChange: function onChange(num) {
|
|
22816
|
-
updateDataHandle({
|
|
22817
|
-
sellCount: num,
|
|
22818
|
-
sellTotal: num && isNumberOrNumberString$3(record.sellPrice) ? num * record.sellPrice : null
|
|
22819
|
-
}, index);
|
|
22820
|
-
}
|
|
22821
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
22822
|
-
}
|
|
22823
|
-
}, {
|
|
22824
|
-
dataIndex: 'sellPrice',
|
|
22825
|
-
title: "\u5355\u4EF7",
|
|
22826
|
-
width: 150,
|
|
22827
|
-
render: function render(val, record, index) {
|
|
22828
|
-
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
22829
|
-
style: {
|
|
22830
|
-
width: 130
|
|
22831
|
-
},
|
|
22832
|
-
value: val,
|
|
22833
|
-
min: 0,
|
|
22834
|
-
precision: 2,
|
|
22835
|
-
onChange: function onChange(num) {
|
|
22836
|
-
updateDataHandle({
|
|
22837
|
-
sellPrice: num,
|
|
22838
|
-
sellTotal: num && isNumberOrNumberString$3(record.sellCount) ? num * record.sellCount : null
|
|
22839
|
-
}, index);
|
|
22840
|
-
}
|
|
22841
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
22842
|
-
}
|
|
22843
|
-
}, {
|
|
22844
|
-
dataIndex: 'sellTotal',
|
|
22845
|
-
title: "\u603B\u91D1\u989D",
|
|
22846
|
-
width: 150,
|
|
22847
|
-
render: function render(val, record, index) {
|
|
22848
|
-
if ((typeof record.sellCount === 'number' || record.sellCount) && (typeof record.sellPrice === 'number' || record.sellPrice)) {
|
|
22849
|
-
return record.sellCount * record.sellPrice;
|
|
22850
|
-
}
|
|
22851
|
-
return '';
|
|
22852
|
-
}
|
|
22853
|
-
}, {
|
|
22854
|
-
dataIndex: 'reason',
|
|
22855
|
-
title: "\u9000\u6362\u539F\u56E0",
|
|
22856
|
-
width: 250,
|
|
22857
|
-
render: function render(val, record, index) {
|
|
22858
|
-
return !disabled ? /*#__PURE__*/React__default['default'].createElement(ApaasInput, {
|
|
22859
|
-
onChange: function onChange(value) {
|
|
22860
|
-
updateHandle(value, index, 'reason');
|
|
22861
|
-
}
|
|
22862
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
22863
|
-
}
|
|
22864
|
-
}, {
|
|
22865
|
-
dataIndex: 'isGift',
|
|
22866
|
-
title: "\u662F\u5426\u8D60\u54C1",
|
|
22867
|
-
width: 150,
|
|
22868
|
-
render: function render(val, record, index) {
|
|
22869
|
-
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
22870
|
-
value: val,
|
|
22871
|
-
onChange: function onChange(value) {
|
|
22872
|
-
updateHandle(value, index, 'isGift');
|
|
22873
|
-
},
|
|
22874
|
-
options: [{
|
|
22875
|
-
label: '是',
|
|
22876
|
-
value: '1'
|
|
22877
|
-
}, {
|
|
22878
|
-
label: '否',
|
|
22879
|
-
value: '0'
|
|
22880
|
-
}]
|
|
22881
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val === '1' ? '是' : '否');
|
|
22882
|
-
}
|
|
22883
|
-
}, {
|
|
22884
|
-
dataIndex: 'isFit',
|
|
22885
|
-
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
22886
|
-
width: 150,
|
|
22887
|
-
render: function render(val, record, index) {
|
|
22888
|
-
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
22889
|
-
value: val,
|
|
22890
|
-
onChange: function onChange(value) {
|
|
22891
|
-
updateHandle(value, index, 'isFit');
|
|
22892
|
-
},
|
|
22893
|
-
options: [{
|
|
22894
|
-
label: '是',
|
|
22895
|
-
value: 'True'
|
|
22896
|
-
}, {
|
|
22897
|
-
label: '否',
|
|
22898
|
-
value: 'False'
|
|
22899
|
-
}]
|
|
22900
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val === 'True' ? '是' : '否');
|
|
22901
|
-
}
|
|
22902
|
-
}, {
|
|
22903
|
-
dataIndex: 'brandName',
|
|
22904
|
-
title: "\u54C1\u724C",
|
|
22905
|
-
width: 150,
|
|
22906
|
-
render: renderTextEllipsis
|
|
22907
|
-
}, {
|
|
22908
|
-
dataIndex: 'cateName',
|
|
22909
|
-
title: "\u8D27\u54C1\u7C7B\u522B",
|
|
22910
|
-
width: 150,
|
|
22911
|
-
render: renderTextEllipsis
|
|
22912
|
-
}].map(function (item) {
|
|
22913
|
-
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
22914
|
-
align: 'center',
|
|
22915
|
-
ellipsis: true
|
|
22916
|
-
});
|
|
22917
|
-
})
|
|
22918
|
-
};
|
|
22919
|
-
};
|
|
22920
|
-
|
|
22921
|
-
var getColumns$a = function getColumns(_ref) {
|
|
22922
|
-
var _ref$text = _ref.text,
|
|
22923
|
-
text = _ref$text === void 0 ? '' : _ref$text,
|
|
22924
|
-
disabled = _ref.disabled,
|
|
22925
|
-
updateHandle = _ref.updateHandle;
|
|
22926
|
-
return {
|
|
22927
|
-
//bs商品信息
|
|
22928
|
-
default: [{
|
|
22929
|
-
dataIndex: 'mark',
|
|
22930
|
-
title: "\u5546\u54C1\u6807\u8BB0",
|
|
21836
|
+
//bs商品信息
|
|
21837
|
+
default: [{
|
|
21838
|
+
dataIndex: 'mark',
|
|
21839
|
+
title: "\u5546\u54C1\u6807\u8BB0",
|
|
22931
21840
|
align: 'center',
|
|
22932
21841
|
ellipsis: true,
|
|
22933
21842
|
width: 70,
|
|
@@ -23035,7 +21944,7 @@ var getColumnsMap$1 = function getColumnsMap(args) {
|
|
|
23035
21944
|
disabled = _ref.disabled,
|
|
23036
21945
|
updateHandle = _ref.updateHandle,
|
|
23037
21946
|
updateDataHandle = _ref.updateDataHandle;
|
|
23038
|
-
return _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(
|
|
21947
|
+
return _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, getColumns$1({
|
|
23039
21948
|
text: text,
|
|
23040
21949
|
disabled: disabled,
|
|
23041
21950
|
updateHandle: updateHandle
|
|
@@ -23073,13 +21982,8 @@ var getColumnsMap$1 = function getColumnsMap(args) {
|
|
|
23073
21982
|
text: text,
|
|
23074
21983
|
disabled: disabled,
|
|
23075
21984
|
updateHandle: updateHandle
|
|
23076
|
-
})), getColumns$9({
|
|
23077
|
-
text: text,
|
|
23078
|
-
disabled: disabled,
|
|
23079
|
-
updateHandle: updateHandle,
|
|
23080
|
-
updateDataHandle: updateDataHandle
|
|
23081
21985
|
})), {}, {
|
|
23082
|
-
default: getColumns$
|
|
21986
|
+
default: getColumns$9({
|
|
23083
21987
|
text: text,
|
|
23084
21988
|
disabled: disabled,
|
|
23085
21989
|
updateHandle: updateHandle
|
|
@@ -23226,9 +22130,6 @@ var isErpType = {
|
|
|
23226
22130
|
},
|
|
23227
22131
|
isJy: function isJy(type) {
|
|
23228
22132
|
return ['JY_GOODS', 'JY_REISSUE_GOODS'].includes(type);
|
|
23229
|
-
},
|
|
23230
|
-
isJky: function isJky(type) {
|
|
23231
|
-
return ['JKY_GOODS', 'JKY_REISSUE_GOODS'].includes(type);
|
|
23232
22133
|
}
|
|
23233
22134
|
};
|
|
23234
22135
|
var processGoods$1 = function processGoods(_ref) {
|
|
@@ -23515,8 +22416,6 @@ var GoodsModalMap = {
|
|
|
23515
22416
|
KM_REISSUE_GOODS: KmGoodsModal,
|
|
23516
22417
|
JY_GOODS: JyGoodsModal$1,
|
|
23517
22418
|
JY_REISSUE_GOODS: JyGoodsModal$1,
|
|
23518
|
-
JKY_GOODS: JkyGoodsModal$1,
|
|
23519
|
-
JKY_REISSUE_GOODS: JkyGoodsModal$1,
|
|
23520
22419
|
OTHER_GOODS: GoodsModal$2
|
|
23521
22420
|
};
|
|
23522
22421
|
var systemOrderNoMap = {
|
|
@@ -23529,8 +22428,6 @@ var systemOrderNoMap = {
|
|
|
23529
22428
|
WLN_GOODS: 'tradeNo',
|
|
23530
22429
|
JY_GOODS: 'tradeNo',
|
|
23531
22430
|
JY_REISSUE_GOODS: 'tradeNo',
|
|
23532
|
-
JKY_GOODS: 'tradeNo',
|
|
23533
|
-
JKY_REISSUE_GOODS: 'tradeNo',
|
|
23534
22431
|
KM_REISSUE_GOODS: 'sid',
|
|
23535
22432
|
JST_REISSUE_GOODS: 'oId',
|
|
23536
22433
|
GY_REISSUE_GOODS: 'code',
|
|
@@ -23566,81 +22463,23 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
23566
22463
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
23567
22464
|
tradeGoodsVisible = _useState4[0],
|
|
23568
22465
|
setTradeGoodsVisible = _useState4[1];
|
|
23569
|
-
var
|
|
23570
|
-
|
|
23571
|
-
|
|
23572
|
-
|
|
23573
|
-
|
|
23574
|
-
|
|
23575
|
-
|
|
23576
|
-
|
|
23577
|
-
|
|
23578
|
-
|
|
23579
|
-
|
|
23580
|
-
|
|
23581
|
-
|
|
23582
|
-
|
|
23583
|
-
|
|
23584
|
-
|
|
23585
|
-
|
|
23586
|
-
return item === null || item === void 0 ? void 0 : item.sysItemId;
|
|
23587
|
-
})) === null || _dataSource$filter === void 0 ? void 0 : _dataSource$filter.forEach(function (item) {
|
|
23588
|
-
var key = (item === null || item === void 0 ? void 0 : item.sysSkuId) == '-1' ? item === null || item === void 0 ? void 0 : item.sysItemId : "".concat(item === null || item === void 0 ? void 0 : item.sysItemId, "-").concat(item === null || item === void 0 ? void 0 : item.sysSkuId);
|
|
23589
|
-
var supplierInfo = supplierMap.get(key);
|
|
23590
|
-
item.supplierCode = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierCode;
|
|
23591
|
-
item.supplierName = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierName;
|
|
23592
|
-
});
|
|
23593
|
-
case 5:
|
|
23594
|
-
case "end":
|
|
23595
|
-
return _context.stop();
|
|
23596
|
-
}
|
|
23597
|
-
}, _callee);
|
|
23598
|
-
}));
|
|
23599
|
-
return function getKmSupplier(_x) {
|
|
23600
|
-
return _ref2.apply(this, arguments);
|
|
23601
|
-
};
|
|
23602
|
-
}();
|
|
23603
|
-
var openModal = /*#__PURE__*/function () {
|
|
23604
|
-
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
23605
|
-
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
23606
|
-
while (1) switch (_context2.prev = _context2.next) {
|
|
23607
|
-
case 0:
|
|
23608
|
-
if (!validSystemOrder) {
|
|
23609
|
-
_context2.next = 3;
|
|
23610
|
-
break;
|
|
23611
|
-
}
|
|
23612
|
-
antd.message.warning('请选择补发系统单');
|
|
23613
|
-
return _context2.abrupt("return");
|
|
23614
|
-
case 3:
|
|
23615
|
-
if (!(getDataSourceAsync && !(dataSource === null || dataSource === void 0 ? void 0 : dataSource.length))) {
|
|
23616
|
-
_context2.next = 6;
|
|
23617
|
-
break;
|
|
23618
|
-
}
|
|
23619
|
-
_context2.next = 6;
|
|
23620
|
-
return getDataSourceAsync();
|
|
23621
|
-
case 6:
|
|
23622
|
-
if (!['KM_GOODS', 'KM_REISSUE_GOODS'].includes(type)) {
|
|
23623
|
-
_context2.next = 9;
|
|
23624
|
-
break;
|
|
23625
|
-
}
|
|
23626
|
-
_context2.next = 9;
|
|
23627
|
-
return getKmSupplier(dataSource);
|
|
23628
|
-
case 9:
|
|
23629
|
-
setTradeGoodsVisible(true);
|
|
23630
|
-
// 补发直接传入的是systemNo
|
|
23631
|
-
if (isShowSelect && isReissueType) {
|
|
23632
|
-
setSelectSystemNo(selectedSystemOrders || []);
|
|
23633
|
-
}
|
|
23634
|
-
case 11:
|
|
23635
|
-
case "end":
|
|
23636
|
-
return _context2.stop();
|
|
23637
|
-
}
|
|
23638
|
-
}, _callee2);
|
|
23639
|
-
}));
|
|
23640
|
-
return function openModal() {
|
|
23641
|
-
return _ref3.apply(this, arguments);
|
|
23642
|
-
};
|
|
23643
|
-
}();
|
|
22466
|
+
var openModal = function openModal() {
|
|
22467
|
+
if (validSystemOrder) {
|
|
22468
|
+
antd.message.warning('请选择补发系统单');
|
|
22469
|
+
return;
|
|
22470
|
+
}
|
|
22471
|
+
if (getDataSourceAsync && !(dataSource === null || dataSource === void 0 ? void 0 : dataSource.length)) {
|
|
22472
|
+
getDataSourceAsync().then(function () {
|
|
22473
|
+
setTradeGoodsVisible(true);
|
|
22474
|
+
});
|
|
22475
|
+
} else {
|
|
22476
|
+
setTradeGoodsVisible(true);
|
|
22477
|
+
}
|
|
22478
|
+
// 补发直接传入的是systemNo
|
|
22479
|
+
if (isShowSelect && isReissueType) {
|
|
22480
|
+
setSelectSystemNo(selectedSystemOrders || []);
|
|
22481
|
+
}
|
|
22482
|
+
};
|
|
23644
22483
|
var closeModal = function closeModal() {
|
|
23645
22484
|
return setTradeGoodsVisible(false);
|
|
23646
22485
|
};
|
|
@@ -23709,7 +22548,7 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
23709
22548
|
}
|
|
23710
22549
|
}, isShowSelect && /*#__PURE__*/React__default['default'].createElement(antd.Row, {
|
|
23711
22550
|
style: {
|
|
23712
|
-
marginBottom: '
|
|
22551
|
+
marginBottom: '20px'
|
|
23713
22552
|
}
|
|
23714
22553
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
23715
22554
|
span: 12
|
|
@@ -23763,9 +22602,6 @@ var getButtonText = function getButtonText() {
|
|
|
23763
22602
|
if (['JY_GOODS', 'JY_REISSUE_GOODS'].includes(type)) {
|
|
23764
22603
|
return '选择巨益ERP商品';
|
|
23765
22604
|
}
|
|
23766
|
-
if (['JKY_GOODS', 'JKY_REISSUE_GOODS'].includes(type)) {
|
|
23767
|
-
return '选择吉客云ERP商品';
|
|
23768
|
-
}
|
|
23769
22605
|
return '选择商品';
|
|
23770
22606
|
};
|
|
23771
22607
|
var GoodItem$1 = function GoodItem(props) {
|
|
@@ -23823,8 +22659,8 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
23823
22659
|
var jstReturnGoods = antd.Form === null || antd.Form === void 0 ? void 0 : antd.Form.useWatch('3979edfd6d', form);
|
|
23824
22660
|
var isShowSelectTradeGoods = type !== 'JST_EXCHANGE_GOODS' || (jstReturnGoods === null || jstReturnGoods === void 0 ? void 0 : jstReturnGoods.jstSystemOrderNo);
|
|
23825
22661
|
// 判断是否为是否展示系统单筛选项
|
|
23826
|
-
var isShowSelect = type && ['WDT_GOODS', 'BS_E3_GOODS', 'GY_GOODS', 'JST_GOODS', 'WLN_GOODS', 'KM_GOODS', 'JY_GOODS', 'JY_REISSUE_GOODS', '
|
|
23827
|
-
var isReissueType = type && ['GY_REISSUE_GOODS', 'KM_REISSUE_GOODS', 'BS_E3_REISSUE_GOODS', 'WDT_REISSUE_GOODS', 'JST_REISSUE_GOODS', 'JY_REISSUE_GOODS'
|
|
22662
|
+
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;
|
|
22663
|
+
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;
|
|
23828
22664
|
var refModal = React.useRef();
|
|
23829
22665
|
console.debug('表格数据', value);
|
|
23830
22666
|
var handleDelete = function handleDelete(record, index) {
|
|
@@ -23915,8 +22751,6 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
23915
22751
|
case 'KM_REISSUE_GOODS':
|
|
23916
22752
|
case 'JY_GOODS':
|
|
23917
22753
|
case 'JY_REISSUE_GOODS':
|
|
23918
|
-
case 'JKY_GOODS':
|
|
23919
|
-
case 'JKY_REISSUE_GOODS':
|
|
23920
22754
|
case 'SKX_GOODS':
|
|
23921
22755
|
case 'SKX_RETURN_GOODS':
|
|
23922
22756
|
{
|
|
@@ -23964,9 +22798,9 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
23964
22798
|
var COLUMNS_INFO = COLUMNS_MAP(text);
|
|
23965
22799
|
return COLUMNS_INFO(type);
|
|
23966
22800
|
};
|
|
23967
|
-
var getShowFilterColumns = React.useCallback(function (
|
|
23968
|
-
var showHeader =
|
|
23969
|
-
initBaseInfoColumns =
|
|
22801
|
+
var getShowFilterColumns = React.useCallback(function (_ref2) {
|
|
22802
|
+
var showHeader = _ref2.showHeader,
|
|
22803
|
+
initBaseInfoColumns = _ref2.initBaseInfoColumns;
|
|
23970
22804
|
var baseInfoColumns = [];
|
|
23971
22805
|
var isStringArray = Array.isArray(showHeader) && typeof showHeader[0] === 'string';
|
|
23972
22806
|
var isObjectArray = Array.isArray(showHeader) && Object.prototype.toString.call(showHeader[0]) === '[object Object]';
|
|
@@ -25121,7 +23955,7 @@ var jyUtils = {
|
|
|
25121
23955
|
};
|
|
25122
23956
|
|
|
25123
23957
|
var singletonMap$7 = new Map();
|
|
25124
|
-
var
|
|
23958
|
+
var getOrderListSingleton$2 = function getOrderListSingleton(orderNo) {
|
|
25125
23959
|
if (!singletonMap$7.has(orderNo)) {
|
|
25126
23960
|
var p = new Promise(function (resolve, reject) {
|
|
25127
23961
|
var doReject = function doReject(err) {
|
|
@@ -25129,50 +23963,6 @@ var getJkyOrderListSingleton = function getJkyOrderListSingleton(orderNo) {
|
|
|
25129
23963
|
singletonMap$7.delete(orderNo);
|
|
25130
23964
|
reject(err);
|
|
25131
23965
|
};
|
|
25132
|
-
extendRequest('/qy/gdfw/jky/erp/trade/fullInfo', {
|
|
25133
|
-
method: 'post',
|
|
25134
|
-
data: {
|
|
25135
|
-
billNo: orderNo
|
|
25136
|
-
}
|
|
25137
|
-
}).then(function (res) {
|
|
25138
|
-
if (res === null || res === void 0 ? void 0 : res.success) {
|
|
25139
|
-
var _res$data, _res$data$tradeOrderD, _res$data3;
|
|
25140
|
-
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) {
|
|
25141
|
-
var _filterJkyOrders, _res$data2;
|
|
25142
|
-
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) {
|
|
25143
|
-
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
25144
|
-
tradeType: kmkfUtils.JKY_ORDER_TYPE_MAP[item.tradeType],
|
|
25145
|
-
tradeStatus: kmkfUtils.JKY_ORDER_STATUS_MAP[item.tradeStatus]
|
|
25146
|
-
});
|
|
25147
|
-
});
|
|
25148
|
-
}
|
|
25149
|
-
resolve(((_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.trades) || []);
|
|
25150
|
-
// 延迟10秒清除,保证订单的时效性
|
|
25151
|
-
setTimeout(function () {
|
|
25152
|
-
singletonMap$7.delete(orderNo);
|
|
25153
|
-
}, 1000 * 10);
|
|
25154
|
-
} else {
|
|
25155
|
-
doReject(res);
|
|
25156
|
-
}
|
|
25157
|
-
}).catch(doReject);
|
|
25158
|
-
});
|
|
25159
|
-
singletonMap$7.set(orderNo, p);
|
|
25160
|
-
}
|
|
25161
|
-
return singletonMap$7.get(orderNo);
|
|
25162
|
-
};
|
|
25163
|
-
var jkyUtils = {
|
|
25164
|
-
getJkyOrderListSingleton: getJkyOrderListSingleton
|
|
25165
|
-
};
|
|
25166
|
-
|
|
25167
|
-
var singletonMap$8 = new Map();
|
|
25168
|
-
var getOrderListSingleton$2 = function getOrderListSingleton(orderNo) {
|
|
25169
|
-
if (!singletonMap$8.has(orderNo)) {
|
|
25170
|
-
var p = new Promise(function (resolve, reject) {
|
|
25171
|
-
var doReject = function doReject(err) {
|
|
25172
|
-
// 清空掉错误的请求记录
|
|
25173
|
-
singletonMap$8.delete(orderNo);
|
|
25174
|
-
reject(err);
|
|
25175
|
-
};
|
|
25176
23966
|
extendRequest('/qy/gdfw/order/kmErpOrderDetail', {
|
|
25177
23967
|
method: 'post',
|
|
25178
23968
|
data: {
|
|
@@ -25196,16 +23986,16 @@ var getOrderListSingleton$2 = function getOrderListSingleton(orderNo) {
|
|
|
25196
23986
|
}
|
|
25197
23987
|
// 延迟10秒清除,保证订单的时效性
|
|
25198
23988
|
setTimeout(function () {
|
|
25199
|
-
singletonMap$
|
|
23989
|
+
singletonMap$7.delete(orderNo);
|
|
25200
23990
|
}, 1000 * 10);
|
|
25201
23991
|
} else {
|
|
25202
23992
|
doReject(data);
|
|
25203
23993
|
}
|
|
25204
23994
|
}).catch(doReject);
|
|
25205
23995
|
});
|
|
25206
|
-
singletonMap$
|
|
23996
|
+
singletonMap$7.set(orderNo, p);
|
|
25207
23997
|
}
|
|
25208
|
-
return singletonMap$
|
|
23998
|
+
return singletonMap$7.get(orderNo);
|
|
25209
23999
|
};
|
|
25210
24000
|
var kmUtils = {
|
|
25211
24001
|
getOrderListSingleton: getOrderListSingleton$2
|
|
@@ -25222,7 +24012,6 @@ var columnsMap = {
|
|
|
25222
24012
|
GY_SYSTEM_ORDER: kmkfUtils.GY_SYSTEM_ORDER_CONFIG.columns,
|
|
25223
24013
|
JST_SYSTEM_ORDER: kmkfUtils.JST_SYSTEM_ORDER_CONFIG.columns,
|
|
25224
24014
|
JY_SYSTEM_ORDER: kmkfUtils.JY_SYSTEM_ORDER_CONFIG.columns,
|
|
25225
|
-
JKY_SYSTEM_ORDER: kmkfUtils.JKY_SYSTEM_ORDER_CONFIG.columns,
|
|
25226
24015
|
WDT_RETURN_BILL_NO: kmkfUtils.WDT_RETURN_BILL_NO_CONFIG.columns
|
|
25227
24016
|
};
|
|
25228
24017
|
var rowKeyMap = {
|
|
@@ -25234,7 +24023,6 @@ var rowKeyMap = {
|
|
|
25234
24023
|
GY_SYSTEM_ORDER: 'billNo',
|
|
25235
24024
|
JST_SYSTEM_ORDER: 'oId',
|
|
25236
24025
|
JY_SYSTEM_ORDER: 'tradeNo',
|
|
25237
|
-
JKY_SYSTEM_ORDER: 'tradeNo',
|
|
25238
24026
|
WDT_RETURN_BILL_NO: 'refundNo'
|
|
25239
24027
|
};
|
|
25240
24028
|
var index$2 = (function (props) {
|
|
@@ -25249,6 +24037,7 @@ var index$2 = (function (props) {
|
|
|
25249
24037
|
React.useEffect(function () {
|
|
25250
24038
|
var _value$orders, _value$showOrderInfo;
|
|
25251
24039
|
valueRef.current = value;
|
|
24040
|
+
console.log('value77777777', value);
|
|
25252
24041
|
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) {
|
|
25253
24042
|
onceRef.current = true;
|
|
25254
24043
|
if (type === 'BS_SYSTEM_ORDER') {
|
|
@@ -25267,8 +24056,6 @@ var index$2 = (function (props) {
|
|
|
25267
24056
|
getJstOrderList(value.orderNo);
|
|
25268
24057
|
} else if (type === 'JY_SYSTEM_ORDER') {
|
|
25269
24058
|
getJyOrderList(value.orderNo);
|
|
25270
|
-
} else if (type === 'JKY_SYSTEM_ORDER') {
|
|
25271
|
-
getJkyOrderList(value.orderNo);
|
|
25272
24059
|
}
|
|
25273
24060
|
}
|
|
25274
24061
|
}, [value, type]);
|
|
@@ -25533,31 +24320,6 @@ var index$2 = (function (props) {
|
|
|
25533
24320
|
return _ref10.apply(this, arguments);
|
|
25534
24321
|
};
|
|
25535
24322
|
}();
|
|
25536
|
-
var getJkyOrderList = /*#__PURE__*/function () {
|
|
25537
|
-
var _ref12 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(orderNo) {
|
|
25538
|
-
return _regeneratorRuntime().wrap(function _callee9$(_context9) {
|
|
25539
|
-
while (1) switch (_context9.prev = _context9.next) {
|
|
25540
|
-
case 0:
|
|
25541
|
-
jkyUtils.getJkyOrderListSingleton(orderNo).then(function (data) {
|
|
25542
|
-
var trades = ((data === null || data === void 0 ? void 0 : data.trades) || []).filter(function (item) {
|
|
25543
|
-
return kmkfUtils.getIsPlatformCodesIncludeOrderNos(item.platformCode, orderNo);
|
|
25544
|
-
});
|
|
25545
|
-
_onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, {
|
|
25546
|
-
orders: trades,
|
|
25547
|
-
showOrderInfo: trades
|
|
25548
|
-
}));
|
|
25549
|
-
});
|
|
25550
|
-
onceRef.current = false;
|
|
25551
|
-
case 2:
|
|
25552
|
-
case "end":
|
|
25553
|
-
return _context9.stop();
|
|
25554
|
-
}
|
|
25555
|
-
}, _callee9);
|
|
25556
|
-
}));
|
|
25557
|
-
return function getJkyOrderList(_x9) {
|
|
25558
|
-
return _ref12.apply(this, arguments);
|
|
25559
|
-
};
|
|
25560
|
-
}();
|
|
25561
24323
|
var rowSelection = {
|
|
25562
24324
|
selectedRowKeys: (value === null || value === void 0 ? void 0 : value.selectIds) || [],
|
|
25563
24325
|
fixed: true,
|
|
@@ -25982,16 +24744,16 @@ var orderSubFormConstants = {
|
|
|
25982
24744
|
};
|
|
25983
24745
|
|
|
25984
24746
|
var getSelectWidgetMap$1 = orderSubFormConstants.getSelectWidgetMap;
|
|
25985
|
-
var singletonMap$
|
|
24747
|
+
var singletonMap$8 = new Map();
|
|
25986
24748
|
var getOrderListSingleton$3 = function getOrderListSingleton(parmas) {
|
|
25987
24749
|
var orderNo = parmas.orderNo,
|
|
25988
24750
|
shopId = parmas.shopId;
|
|
25989
24751
|
var key = "".concat(orderNo, "-").concat(shopId);
|
|
25990
|
-
if (!singletonMap$
|
|
24752
|
+
if (!singletonMap$8.has(key)) {
|
|
25991
24753
|
var p = new Promise(function (resolve, reject) {
|
|
25992
24754
|
var doReject = function doReject(err) {
|
|
25993
24755
|
// 清空掉错误的请求记录
|
|
25994
|
-
singletonMap$
|
|
24756
|
+
singletonMap$8.delete(key);
|
|
25995
24757
|
reject(err);
|
|
25996
24758
|
};
|
|
25997
24759
|
extendRequest('/qy/gdfw/order/subOrderItemsDetail', {
|
|
@@ -26007,16 +24769,16 @@ var getOrderListSingleton$3 = function getOrderListSingleton(parmas) {
|
|
|
26007
24769
|
}
|
|
26008
24770
|
// 延迟10秒清除,保证订单的时效性
|
|
26009
24771
|
setTimeout(function () {
|
|
26010
|
-
singletonMap$
|
|
24772
|
+
singletonMap$8.delete(key);
|
|
26011
24773
|
}, 1000 * 10);
|
|
26012
24774
|
} else {
|
|
26013
24775
|
doReject(data);
|
|
26014
24776
|
}
|
|
26015
24777
|
}).catch(doReject);
|
|
26016
24778
|
});
|
|
26017
|
-
singletonMap$
|
|
24779
|
+
singletonMap$8.set(key, p);
|
|
26018
24780
|
}
|
|
26019
|
-
return singletonMap$
|
|
24781
|
+
return singletonMap$8.get(key);
|
|
26020
24782
|
};
|
|
26021
24783
|
var renderEditItem = function renderEditItem(_ref) {
|
|
26022
24784
|
var item = _ref.item,
|
|
@@ -26449,9 +25211,6 @@ var isErpType$1 = {
|
|
|
26449
25211
|
},
|
|
26450
25212
|
isJy: function isJy(type) {
|
|
26451
25213
|
return ['JY_GOODS'].includes(type);
|
|
26452
|
-
},
|
|
26453
|
-
isJky: function isJky(type) {
|
|
26454
|
-
return ['JKY_GOODS'].includes(type);
|
|
26455
25214
|
}
|
|
26456
25215
|
};
|
|
26457
25216
|
var processAllOrders = function processAllOrders(_ref) {
|
|
@@ -26752,32 +25511,6 @@ var componentMap$2 = {
|
|
|
26752
25511
|
},
|
|
26753
25512
|
getOrderList: jyUtils.getJyOrderListSingleton
|
|
26754
25513
|
},
|
|
26755
|
-
JKY_GOODS: {
|
|
26756
|
-
type: 'jky',
|
|
26757
|
-
key: 'jkyGoods',
|
|
26758
|
-
name: '吉客云',
|
|
26759
|
-
orderNo: 'tradeNo',
|
|
26760
|
-
goodDetailOrderNo: 'tradeNo',
|
|
26761
|
-
eventNameMap: {
|
|
26762
|
-
// pubsub 事件
|
|
26763
|
-
type: 'jkyType',
|
|
26764
|
-
updateGoodsHandle: kmkfUtils.updateJkyGoodsHandle,
|
|
26765
|
-
selectListReturn: 'jkySelectListReturn',
|
|
26766
|
-
selectList: 'jkySelectList',
|
|
26767
|
-
reissueSelectList: 'jkyReissueSelectList',
|
|
26768
|
-
reissueSelectListReturn: 'jkyReissueSelectListReturn',
|
|
26769
|
-
reissueDeleteGood: 'jkyReissueDeleteGood',
|
|
26770
|
-
changeShopCode: 'jkyChangeShopCode',
|
|
26771
|
-
reissueType: 'jkyReissueType',
|
|
26772
|
-
returnType: 'jkyReturnType',
|
|
26773
|
-
returnSelectListReturn: 'jkyReturnSelectListReturn',
|
|
26774
|
-
returnSelectList: 'jkyReturnSelectList',
|
|
26775
|
-
deleteGood: 'jkyDeleteGood',
|
|
26776
|
-
returnDeleteGood: 'jkyReturnDeleteGood',
|
|
26777
|
-
exchangeDeleteGood: 'jkyExchangeDeleteGood'
|
|
26778
|
-
},
|
|
26779
|
-
getOrderList: jkyUtils.getJkyOrderListSingleton
|
|
26780
|
-
},
|
|
26781
25514
|
WDT_AFTERSALE_GOODS: {
|
|
26782
25515
|
type: 'wdtAftersale',
|
|
26783
25516
|
key: 'wdtAftersaleGoods',
|
|
@@ -26809,7 +25542,7 @@ var componentMap$2 = {
|
|
|
26809
25542
|
}
|
|
26810
25543
|
};
|
|
26811
25544
|
var CommonGoods = function CommonGoods(props) {
|
|
26812
|
-
var _withInfo$current3, _withInfo$current4, _componentMap$
|
|
25545
|
+
var _componentMap$compTyp5, _withInfo$current3, _withInfo$current4, _componentMap$compTyp7;
|
|
26813
25546
|
var value = props.value,
|
|
26814
25547
|
disabled = props.disabled,
|
|
26815
25548
|
onChange = props.onChange,
|
|
@@ -26825,10 +25558,6 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
26825
25558
|
_useState2 = _slicedToArray(_useState, 2),
|
|
26826
25559
|
tableSelect = _useState2[0],
|
|
26827
25560
|
setTableSelect = _useState2[1];
|
|
26828
|
-
var _useState3 = React.useState([]),
|
|
26829
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
26830
|
-
originDataSource = _useState4[0],
|
|
26831
|
-
setOriginDataSource = _useState4[1];
|
|
26832
25561
|
var withInfo = React.useRef(null);
|
|
26833
25562
|
var valueRef = React.useRef(null);
|
|
26834
25563
|
var tokens = React.useRef([]);
|
|
@@ -26840,93 +25569,10 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
26840
25569
|
compType.indexOf('WDT') > -1 && getWdtOrderList(value === null || value === void 0 ? void 0 : value.orderNo);
|
|
26841
25570
|
}
|
|
26842
25571
|
}, [value]);
|
|
26843
|
-
var sysItemIdMap = React.useMemo(function () {
|
|
26844
|
-
var map = {};
|
|
26845
|
-
if (compType.indexOf('KM') > -1) {
|
|
26846
|
-
var _value$kmGoods, _value$kmGoods$filter;
|
|
26847
|
-
value === null || value === void 0 ? void 0 : (_value$kmGoods = value.kmGoods) === null || _value$kmGoods === void 0 ? void 0 : (_value$kmGoods$filter = _value$kmGoods.filter(function (item) {
|
|
26848
|
-
return item === null || item === void 0 ? void 0 : item.sysItemId;
|
|
26849
|
-
})) === null || _value$kmGoods$filter === void 0 ? void 0 : _value$kmGoods$filter.forEach(function (item) {
|
|
26850
|
-
var key = item.sysSkuId == '-1' ? item.sysItemId : "".concat(item.sysItemId, "-").concat(item.sysSkuId);
|
|
26851
|
-
map[key] = item;
|
|
26852
|
-
});
|
|
26853
|
-
}
|
|
26854
|
-
return map;
|
|
26855
|
-
}, [value === null || value === void 0 ? void 0 : value.kmGoods]);
|
|
26856
|
-
// 用于跟踪已经处理过的 sysItemId,避免重复处理
|
|
26857
|
-
var processedSysItemIdsRef = React.useRef(new Set());
|
|
26858
|
-
React.useEffect(function () {
|
|
26859
|
-
var fetchSupplier = /*#__PURE__*/function () {
|
|
26860
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(sysItemIds) {
|
|
26861
|
-
var _currentValue$kmGoods;
|
|
26862
|
-
var needFetchIds, supplierMap, hasChange, currentValue, kmGoods;
|
|
26863
|
-
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
26864
|
-
while (1) switch (_context.prev = _context.next) {
|
|
26865
|
-
case 0:
|
|
26866
|
-
if (sysItemIds.length) {
|
|
26867
|
-
_context.next = 2;
|
|
26868
|
-
break;
|
|
26869
|
-
}
|
|
26870
|
-
return _context.abrupt("return");
|
|
26871
|
-
case 2:
|
|
26872
|
-
// 过滤出还没有供应商信息的 sysItemId
|
|
26873
|
-
needFetchIds = sysItemIds.filter(function (id) {
|
|
26874
|
-
var item = sysItemIdMap[id];
|
|
26875
|
-
return item && (!item.supplierCode || !item.supplierName);
|
|
26876
|
-
});
|
|
26877
|
-
if (needFetchIds.length) {
|
|
26878
|
-
_context.next = 5;
|
|
26879
|
-
break;
|
|
26880
|
-
}
|
|
26881
|
-
return _context.abrupt("return");
|
|
26882
|
-
case 5:
|
|
26883
|
-
_context.next = 7;
|
|
26884
|
-
return kmkfUtils.servers.KM.getSupplierSingleton(needFetchIds);
|
|
26885
|
-
case 7:
|
|
26886
|
-
supplierMap = _context.sent;
|
|
26887
|
-
// 检查是否有实际变化,避免不必要的更新
|
|
26888
|
-
hasChange = false;
|
|
26889
|
-
currentValue = valueRef.current;
|
|
26890
|
-
kmGoods = currentValue === null || currentValue === void 0 ? void 0 : (_currentValue$kmGoods = currentValue.kmGoods) === null || _currentValue$kmGoods === void 0 ? void 0 : _currentValue$kmGoods.map(function (item) {
|
|
26891
|
-
var supplierInfo = supplierMap.get(item.sysItemId);
|
|
26892
|
-
var newSupplierCode = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierCode;
|
|
26893
|
-
var newSupplierName = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierName;
|
|
26894
|
-
// 如果供应商信息有变化,标记需要更新
|
|
26895
|
-
if (newSupplierCode && item.supplierCode !== newSupplierCode || newSupplierName && item.supplierName !== newSupplierName) {
|
|
26896
|
-
hasChange = true;
|
|
26897
|
-
// 标记已处理
|
|
26898
|
-
processedSysItemIdsRef.current.add(item.sysItemId);
|
|
26899
|
-
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
26900
|
-
supplierCode: newSupplierCode || item.supplierCode,
|
|
26901
|
-
supplierName: newSupplierName || item.supplierName
|
|
26902
|
-
});
|
|
26903
|
-
}
|
|
26904
|
-
return item;
|
|
26905
|
-
}); // 只在有实际变化时才更新
|
|
26906
|
-
if (hasChange && kmGoods) {
|
|
26907
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, currentValue), {}, {
|
|
26908
|
-
kmGoods: kmGoods
|
|
26909
|
-
}));
|
|
26910
|
-
}
|
|
26911
|
-
case 12:
|
|
26912
|
-
case "end":
|
|
26913
|
-
return _context.stop();
|
|
26914
|
-
}
|
|
26915
|
-
}, _callee);
|
|
26916
|
-
}));
|
|
26917
|
-
return function fetchSupplier(_x) {
|
|
26918
|
-
return _ref.apply(this, arguments);
|
|
26919
|
-
};
|
|
26920
|
-
}();
|
|
26921
|
-
var sysItemIds = Object.keys(sysItemIdMap);
|
|
26922
|
-
if (sysItemIds === null || sysItemIds === void 0 ? void 0 : sysItemIds.length) {
|
|
26923
|
-
fetchSupplier(sysItemIds);
|
|
26924
|
-
}
|
|
26925
|
-
}, [sysItemIdMap]);
|
|
26926
25572
|
var getWdtOrderList = /*#__PURE__*/function () {
|
|
26927
|
-
var
|
|
26928
|
-
return _regeneratorRuntime().wrap(function
|
|
26929
|
-
while (1) switch (
|
|
25573
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(orderNo) {
|
|
25574
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
25575
|
+
while (1) switch (_context.prev = _context.next) {
|
|
26930
25576
|
case 0:
|
|
26931
25577
|
wdtUtils.getWdtOrderListSingleton(orderNo).then(function (data) {
|
|
26932
25578
|
var orders = ((data === null || data === void 0 ? void 0 : data.trades) || []).filter(function (trade) {
|
|
@@ -26939,12 +25585,12 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
26939
25585
|
});
|
|
26940
25586
|
case 1:
|
|
26941
25587
|
case "end":
|
|
26942
|
-
return
|
|
25588
|
+
return _context.stop();
|
|
26943
25589
|
}
|
|
26944
|
-
},
|
|
25590
|
+
}, _callee);
|
|
26945
25591
|
}));
|
|
26946
|
-
return function getWdtOrderList(
|
|
26947
|
-
return
|
|
25592
|
+
return function getWdtOrderList(_x) {
|
|
25593
|
+
return _ref.apply(this, arguments);
|
|
26948
25594
|
};
|
|
26949
25595
|
}();
|
|
26950
25596
|
React.useEffect(function () {
|
|
@@ -27050,8 +25696,8 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
27050
25696
|
mode: isStrict
|
|
27051
25697
|
}))));
|
|
27052
25698
|
};
|
|
27053
|
-
var getGoodDetails = function getGoodDetails(
|
|
27054
|
-
var mode =
|
|
25699
|
+
var getGoodDetails = function getGoodDetails(_ref2) {
|
|
25700
|
+
var mode = _ref2.mode;
|
|
27055
25701
|
var updateHandle = componentMap$2[compType].eventNameMap['updateGoodsHandle'];
|
|
27056
25702
|
if (!updateHandle) return [];
|
|
27057
25703
|
var goodDetails = updateHandle((value === null || value === void 0 ? void 0 : value.orders) || [], {
|
|
@@ -27064,115 +25710,44 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
27064
25710
|
}) : goodDetails;
|
|
27065
25711
|
};
|
|
27066
25712
|
// 找到该订单号下所有商品
|
|
27067
|
-
var getAllTradeGoodsDetails =
|
|
27068
|
-
var
|
|
27069
|
-
|
|
27070
|
-
|
|
27071
|
-
|
|
27072
|
-
|
|
27073
|
-
|
|
27074
|
-
|
|
27075
|
-
|
|
27076
|
-
|
|
27077
|
-
|
|
27078
|
-
|
|
27079
|
-
|
|
27080
|
-
|
|
27081
|
-
|
|
27082
|
-
|
|
27083
|
-
|
|
27084
|
-
|
|
27085
|
-
|
|
27086
|
-
|
|
27087
|
-
|
|
27088
|
-
|
|
27089
|
-
|
|
27090
|
-
|
|
27091
|
-
|
|
27092
|
-
|
|
27093
|
-
|
|
27094
|
-
|
|
27095
|
-
|
|
27096
|
-
}));
|
|
27097
|
-
return function getAllTradeGoodsDetails(_x3) {
|
|
27098
|
-
return _ref5.apply(this, arguments);
|
|
27099
|
-
};
|
|
27100
|
-
}();
|
|
27101
|
-
// 异步获取 originDataSource
|
|
27102
|
-
React.useEffect(function () {
|
|
27103
|
-
var fetchOriginDataSource = /*#__PURE__*/function () {
|
|
27104
|
-
var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
27105
|
-
var data;
|
|
27106
|
-
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
27107
|
-
while (1) switch (_context4.prev = _context4.next) {
|
|
27108
|
-
case 0:
|
|
27109
|
-
_context4.next = 2;
|
|
27110
|
-
return getAllTradeGoodsDetails({
|
|
27111
|
-
mode: value === null || value === void 0 ? void 0 : value.isStrict
|
|
27112
|
-
});
|
|
27113
|
-
case 2:
|
|
27114
|
-
data = _context4.sent;
|
|
27115
|
-
setOriginDataSource(Array.isArray(data) ? data : []);
|
|
27116
|
-
case 4:
|
|
27117
|
-
case "end":
|
|
27118
|
-
return _context4.stop();
|
|
27119
|
-
}
|
|
27120
|
-
}, _callee4);
|
|
27121
|
-
}));
|
|
27122
|
-
return function fetchOriginDataSource() {
|
|
27123
|
-
return _ref6.apply(this, arguments);
|
|
27124
|
-
};
|
|
27125
|
-
}();
|
|
27126
|
-
fetchOriginDataSource();
|
|
27127
|
-
}, [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]);
|
|
27128
|
-
var selectedGoodsChange = /*#__PURE__*/function () {
|
|
27129
|
-
var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(skuList) {
|
|
27130
|
-
var _valueRef$current9, _componentMap$compTyp3, _componentMap$compTyp4, _uniqBy;
|
|
27131
|
-
var newValue, isStrict, originTradeGoodList, currentSelectGoodList;
|
|
27132
|
-
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
27133
|
-
while (1) switch (_context5.prev = _context5.next) {
|
|
27134
|
-
case 0:
|
|
27135
|
-
newValue = _objectSpread2({}, valueRef.current);
|
|
27136
|
-
isStrict = valueRef.current.isStrict; // 原订单商品
|
|
27137
|
-
_context5.next = 4;
|
|
27138
|
-
return getAllTradeGoodsDetails({
|
|
27139
|
-
mode: isStrict
|
|
27140
|
-
});
|
|
27141
|
-
case 4:
|
|
27142
|
-
_context5.t0 = _context5.sent;
|
|
27143
|
-
if (_context5.t0) {
|
|
27144
|
-
_context5.next = 7;
|
|
27145
|
-
break;
|
|
27146
|
-
}
|
|
27147
|
-
_context5.t0 = [];
|
|
27148
|
-
case 7:
|
|
27149
|
-
originTradeGoodList = _context5.t0;
|
|
27150
|
-
// 当前选中的所有商品【包含了原订单+商品库】
|
|
27151
|
-
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)]) || [];
|
|
27152
|
-
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) {
|
|
27153
|
-
return skuList.includes(item.uuid);
|
|
27154
|
-
});
|
|
27155
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
27156
|
-
case 11:
|
|
27157
|
-
case "end":
|
|
27158
|
-
return _context5.stop();
|
|
27159
|
-
}
|
|
27160
|
-
}, _callee5);
|
|
27161
|
-
}));
|
|
27162
|
-
return function selectedGoodsChange(_x4) {
|
|
27163
|
-
return _ref7.apply(this, arguments);
|
|
27164
|
-
};
|
|
27165
|
-
}();
|
|
25713
|
+
var getAllTradeGoodsDetails = function getAllTradeGoodsDetails(_ref3) {
|
|
25714
|
+
var mode = _ref3.mode;
|
|
25715
|
+
var updateHandle = componentMap$2[compType].eventNameMap['updateGoodsHandle'];
|
|
25716
|
+
console.log('value?.allOrders', value, (value === null || value === void 0 ? void 0 : value.allOrders) || []);
|
|
25717
|
+
if (!updateHandle) return [];
|
|
25718
|
+
var goodDetails = updateHandle((value === null || value === void 0 ? void 0 : value.allOrders) || [], {
|
|
25719
|
+
orderBackGoodsLevel: props.orderBackGoodsLevel
|
|
25720
|
+
});
|
|
25721
|
+
var orderNo = value === null || value === void 0 ? void 0 : value.orderNo;
|
|
25722
|
+
return mode ? goodDetails.filter(function (goodItem) {
|
|
25723
|
+
var _componentMap$compTyp2;
|
|
25724
|
+
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;
|
|
25725
|
+
}) : goodDetails;
|
|
25726
|
+
};
|
|
25727
|
+
var selectedGoodsChange = React.useCallback(function (skuList) {
|
|
25728
|
+
var _componentMap$compTyp3, _componentMap$compTyp4, _uniqBy;
|
|
25729
|
+
var newValue = _objectSpread2({}, value);
|
|
25730
|
+
var isStrict = value.isStrict;
|
|
25731
|
+
// 原订单商品
|
|
25732
|
+
var originTradeGoodList = getAllTradeGoodsDetails({
|
|
25733
|
+
mode: isStrict
|
|
25734
|
+
}) || [];
|
|
25735
|
+
// 当前选中的所有商品【包含了原订单+商品库】
|
|
25736
|
+
var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".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)]) || [];
|
|
25737
|
+
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) {
|
|
25738
|
+
return skuList.includes(item.uuid);
|
|
25739
|
+
});
|
|
25740
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
25741
|
+
}, [value === null || value === void 0 ? void 0 : value["".concat(componentMap$2 === null || componentMap$2 === void 0 ? void 0 : (_componentMap$compTyp5 = componentMap$2[compType]) === null || _componentMap$compTyp5 === void 0 ? void 0 : _componentMap$compTyp5.key)], value === null || value === void 0 ? void 0 : value.isStrict]);
|
|
27166
25742
|
// 商品信息组件暂存后 重新编辑,此时需要重新获取订单下所有系统自订单的商品信息
|
|
27167
25743
|
var getDataSourceAsync = function getDataSourceAsync() {
|
|
27168
|
-
var _componentMap$
|
|
27169
|
-
return (value === null || value === void 0 ? void 0 : value.orderNo) ? (_componentMap$
|
|
25744
|
+
var _componentMap$compTyp6;
|
|
25745
|
+
return (value === null || value === void 0 ? void 0 : value.orderNo) ? (_componentMap$compTyp6 = componentMap$2[compType]) === null || _componentMap$compTyp6 === void 0 ? void 0 : _componentMap$compTyp6.getOrderList(value === null || value === void 0 ? void 0 : value.orderNo).then(function (data) {
|
|
27170
25746
|
var list = processAllOrders({
|
|
27171
25747
|
data: data,
|
|
27172
25748
|
orderNo: value === null || value === void 0 ? void 0 : value.orderNo,
|
|
27173
25749
|
type: compType
|
|
27174
25750
|
});
|
|
27175
|
-
console.log('getDataSourceAsync', list);
|
|
27176
25751
|
onChange(_objectSpread2(_objectSpread2({}, valueRef.current), {}, {
|
|
27177
25752
|
allOrders: list || []
|
|
27178
25753
|
}));
|
|
@@ -27200,9 +25775,11 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
27200
25775
|
isStrict: value === null || value === void 0 ? void 0 : value.isStrict,
|
|
27201
25776
|
systemOrders: value === null || value === void 0 ? void 0 : value.allOrders,
|
|
27202
25777
|
selectedSystemOrders: value === null || value === void 0 ? void 0 : value.orders,
|
|
27203
|
-
showChangeBtn: (_componentMap$
|
|
25778
|
+
showChangeBtn: (_componentMap$compTyp7 = componentMap$2[compType]) === null || _componentMap$compTyp7 === void 0 ? void 0 : _componentMap$compTyp7.showChangeBtn,
|
|
27204
25779
|
tradeGoods: {
|
|
27205
|
-
originDataSource:
|
|
25780
|
+
originDataSource: getAllTradeGoodsDetails({
|
|
25781
|
+
mode: value === null || value === void 0 ? void 0 : value.isStrict
|
|
25782
|
+
}),
|
|
27206
25783
|
getDataSourceAsync: getDataSourceAsync,
|
|
27207
25784
|
selectedGoodsChange: selectedGoodsChange
|
|
27208
25785
|
}
|
|
@@ -27859,26 +26436,10 @@ var typeMap$2 = {
|
|
|
27859
26436
|
outerOiIdKey: '',
|
|
27860
26437
|
goodDetailsKey: 'subOrderDetails',
|
|
27861
26438
|
isShowSelectTradeGoods: true
|
|
27862
|
-
},
|
|
27863
|
-
JKY_REISSUE_GOODS: {
|
|
27864
|
-
compType: '补发',
|
|
27865
|
-
key: 'jkyReissueGoods',
|
|
27866
|
-
typeName: 'jkyReissueType',
|
|
27867
|
-
systemOrder: 'jkySystemOrder',
|
|
27868
|
-
systemOrderNo: 'jkySystemOrderNo',
|
|
27869
|
-
getOrderList: jkyUtils.getJkyOrderListSingleton,
|
|
27870
|
-
updateGoodsHandle: kmkfUtils.updateJkyGoodsHandle,
|
|
27871
|
-
alwaysShowChooseErpGoodsBtn: true,
|
|
27872
|
-
orderTypeKey: 'orderType',
|
|
27873
|
-
oIdKey: 'tradeNo',
|
|
27874
|
-
outerOiIdKey: '',
|
|
27875
|
-
goodDetailsKey: 'subOrderDetails',
|
|
27876
|
-
isShowSelectTradeGoods: true,
|
|
27877
|
-
showModeBtn: true
|
|
27878
26439
|
}
|
|
27879
26440
|
};
|
|
27880
26441
|
var PublicReissue = function PublicReissue(props) {
|
|
27881
|
-
var _typeMap$type36, _typeMap$type42, _typeMap$type43, _typeMap$type44, _typeMap$type45, _value$typeMap$type$s8, _typeMap$type46, _typeMap$type47, _typeMap$type48, _typeMap$type49, _typeMap$type50, _typeMap$type51, _typeMap$type52,
|
|
26442
|
+
var _typeMap$type36, _typeMap$type42, _typeMap$type43, _typeMap$type44, _typeMap$type45, _value$typeMap$type$s8, _typeMap$type46, _typeMap$type47, _typeMap$type48, _typeMap$type49, _typeMap$type50, _typeMap$type51, _typeMap$type52, _value$typeMap$type$s9, _typeMap$type53, _typeMap$type54, _typeMap$type55, _typeMap$type56;
|
|
27882
26443
|
var value = props.value,
|
|
27883
26444
|
onChange = props.onChange,
|
|
27884
26445
|
_props$reasonList = props.reasonList,
|
|
@@ -27994,95 +26555,12 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
27994
26555
|
mode: mode
|
|
27995
26556
|
}))));
|
|
27996
26557
|
};
|
|
27997
|
-
var
|
|
27998
|
-
var map = {};
|
|
27999
|
-
if (type === 'KM_REISSUE_GOODS') {
|
|
28000
|
-
var _value$kmReissueGoods, _value$kmReissueGoods2;
|
|
28001
|
-
value === null || value === void 0 ? void 0 : (_value$kmReissueGoods = value.kmReissueGoods) === null || _value$kmReissueGoods === void 0 ? void 0 : (_value$kmReissueGoods2 = _value$kmReissueGoods.filter(function (item) {
|
|
28002
|
-
return item === null || item === void 0 ? void 0 : item.sysItemId;
|
|
28003
|
-
})) === null || _value$kmReissueGoods2 === void 0 ? void 0 : _value$kmReissueGoods2.forEach(function (item) {
|
|
28004
|
-
var key = item.sysSkuId == '-1' ? item.sysItemId : "".concat(item.sysItemId, "-").concat(item.sysSkuId);
|
|
28005
|
-
map[key] = item;
|
|
28006
|
-
});
|
|
28007
|
-
}
|
|
28008
|
-
return map;
|
|
28009
|
-
}, [value === null || value === void 0 ? void 0 : value.kmReissueGoods]);
|
|
28010
|
-
// 用于跟踪已经处理过的 sysItemId,避免重复处理
|
|
28011
|
-
var processedSysItemIdsRef = React.useRef(new Set());
|
|
28012
|
-
React.useEffect(function () {
|
|
28013
|
-
var fetchSupplier = /*#__PURE__*/function () {
|
|
28014
|
-
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(sysItemIds) {
|
|
28015
|
-
var _currentValue$kmReiss;
|
|
28016
|
-
var needFetchIds, supplierMap, hasChange, currentValue, kmReissueGoods;
|
|
28017
|
-
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
28018
|
-
while (1) switch (_context2.prev = _context2.next) {
|
|
28019
|
-
case 0:
|
|
28020
|
-
if (sysItemIds.length) {
|
|
28021
|
-
_context2.next = 2;
|
|
28022
|
-
break;
|
|
28023
|
-
}
|
|
28024
|
-
return _context2.abrupt("return");
|
|
28025
|
-
case 2:
|
|
28026
|
-
// 过滤出还没有供应商信息的 sysItemId
|
|
28027
|
-
needFetchIds = sysItemIds.filter(function (id) {
|
|
28028
|
-
var item = sysItemIdMap[id];
|
|
28029
|
-
return item && (!item.supplierCode || !item.supplierName);
|
|
28030
|
-
});
|
|
28031
|
-
if (needFetchIds.length) {
|
|
28032
|
-
_context2.next = 5;
|
|
28033
|
-
break;
|
|
28034
|
-
}
|
|
28035
|
-
return _context2.abrupt("return");
|
|
28036
|
-
case 5:
|
|
28037
|
-
_context2.next = 7;
|
|
28038
|
-
return kmkfUtils.servers.KM.getSupplierSingleton(needFetchIds);
|
|
28039
|
-
case 7:
|
|
28040
|
-
supplierMap = _context2.sent;
|
|
28041
|
-
// 检查是否有实际变化,避免不必要的更新
|
|
28042
|
-
hasChange = false;
|
|
28043
|
-
currentValue = valueRef.current;
|
|
28044
|
-
kmReissueGoods = currentValue === null || currentValue === void 0 ? void 0 : (_currentValue$kmReiss = currentValue.kmReissueGoods) === null || _currentValue$kmReiss === void 0 ? void 0 : _currentValue$kmReiss.map(function (item) {
|
|
28045
|
-
var supplierInfo = supplierMap.get(item.sysItemId);
|
|
28046
|
-
var newSupplierCode = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierCode;
|
|
28047
|
-
var newSupplierName = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierName;
|
|
28048
|
-
// 如果供应商信息有变化,标记需要更新
|
|
28049
|
-
if (newSupplierCode && item.supplierCode !== newSupplierCode || newSupplierName && item.supplierName !== newSupplierName) {
|
|
28050
|
-
hasChange = true;
|
|
28051
|
-
// 标记已处理
|
|
28052
|
-
processedSysItemIdsRef.current.add(item.sysItemId);
|
|
28053
|
-
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
28054
|
-
supplierCode: newSupplierCode || item.supplierCode,
|
|
28055
|
-
supplierName: newSupplierName || item.supplierName
|
|
28056
|
-
});
|
|
28057
|
-
}
|
|
28058
|
-
return item;
|
|
28059
|
-
}); // 只在有实际变化时才更新
|
|
28060
|
-
if (hasChange && kmReissueGoods) {
|
|
28061
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, currentValue), {}, {
|
|
28062
|
-
kmReissueGoods: kmReissueGoods
|
|
28063
|
-
}));
|
|
28064
|
-
}
|
|
28065
|
-
case 12:
|
|
28066
|
-
case "end":
|
|
28067
|
-
return _context2.stop();
|
|
28068
|
-
}
|
|
28069
|
-
}, _callee2);
|
|
28070
|
-
}));
|
|
28071
|
-
return function fetchSupplier(_x2) {
|
|
28072
|
-
return _ref4.apply(this, arguments);
|
|
28073
|
-
};
|
|
28074
|
-
}();
|
|
28075
|
-
var sysItemIds = Object.keys(sysItemIdMap);
|
|
28076
|
-
if (sysItemIds === null || sysItemIds === void 0 ? void 0 : sysItemIds.length) {
|
|
28077
|
-
fetchSupplier(sysItemIds);
|
|
28078
|
-
}
|
|
28079
|
-
}, [sysItemIdMap]);
|
|
28080
|
-
var getGoodDetails = function getGoodDetails(_ref5) {
|
|
26558
|
+
var getGoodDetails = function getGoodDetails(_ref4) {
|
|
28081
26559
|
var _typeMap$type18, _typeMap$type19, _value$typeMap$type$s6, _typeMap$type20, _typeMap$type21, _typeMap$type22, _typeMap$type23, _typeMap$type24;
|
|
28082
|
-
var mode =
|
|
28083
|
-
sysOrderNo =
|
|
28084
|
-
|
|
28085
|
-
isAllOrders =
|
|
26560
|
+
var mode = _ref4.mode,
|
|
26561
|
+
sysOrderNo = _ref4.sysOrderNo,
|
|
26562
|
+
_ref4$isAllOrders = _ref4.isAllOrders,
|
|
26563
|
+
isAllOrders = _ref4$isAllOrders === void 0 ? false : _ref4$isAllOrders;
|
|
28086
26564
|
var systemOrder = value === null || value === void 0 ? void 0 : value[(_typeMap$type18 = typeMap$2[type]) === null || _typeMap$type18 === void 0 ? void 0 : _typeMap$type18.systemOrder];
|
|
28087
26565
|
var systemOrderNo = sysOrderNo !== null && sysOrderNo !== void 0 ? sysOrderNo : value === null || value === void 0 ? void 0 : value[(_typeMap$type19 = typeMap$2[type]) === null || _typeMap$type19 === void 0 ? void 0 : _typeMap$type19.systemOrderNo];
|
|
28088
26566
|
var order = systemOrderNo && ((systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orders) || []).find(function (order) {
|
|
@@ -28100,10 +26578,6 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28100
26578
|
orderRest = {
|
|
28101
26579
|
canEdit: true
|
|
28102
26580
|
};
|
|
28103
|
-
} else if (['JKY_REISSUE_GOODS'].includes(type)) {
|
|
28104
|
-
orderRest = {
|
|
28105
|
-
canEdit: true
|
|
28106
|
-
};
|
|
28107
26581
|
}
|
|
28108
26582
|
var orders = isAllOrders ? (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s6 = value[(_typeMap$type20 = typeMap$2[type]) === null || _typeMap$type20 === void 0 ? void 0 : _typeMap$type20.systemOrder]) === null || _value$typeMap$type$s6 === void 0 ? void 0 : _value$typeMap$type$s6.orders) || [] : order ? [order] : [];
|
|
28109
26583
|
var hasGoodDetails = orders === null || orders === void 0 ? void 0 : orders.some(function (order) {
|
|
@@ -28245,17 +26719,17 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28245
26719
|
return changeGoodHandle(val);
|
|
28246
26720
|
},
|
|
28247
26721
|
onModeChange: handleModeChange,
|
|
28248
|
-
showModeBtn:
|
|
26722
|
+
showModeBtn: false,
|
|
28249
26723
|
isStrict: isStrict,
|
|
28250
|
-
isShowSelectTradeGoods: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28251
|
-
systemOrders: value === null || value === void 0 ? void 0 : (_value$typeMap$type$s9 = value[(_typeMap$
|
|
28252
|
-
selectedSystemOrders: showChangeBtn ? [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26724
|
+
isShowSelectTradeGoods: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type52 = typeMap$2[type]) === null || _typeMap$type52 === void 0 ? void 0 : _typeMap$type52.isShowSelectTradeGoods,
|
|
26725
|
+
systemOrders: value === null || value === void 0 ? void 0 : (_value$typeMap$type$s9 = value[(_typeMap$type53 = typeMap$2[type]) === null || _typeMap$type53 === void 0 ? void 0 : _typeMap$type53.systemOrder]) === null || _value$typeMap$type$s9 === void 0 ? void 0 : _value$typeMap$type$s9.orders,
|
|
26726
|
+
selectedSystemOrders: showChangeBtn ? [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type54 = typeMap$2[type]) === null || _typeMap$type54 === void 0 ? void 0 : _typeMap$type54.systemOrderNo)]] : [],
|
|
28253
26727
|
tradeGoods: {
|
|
28254
26728
|
originDataSource: getGoodDetails({
|
|
28255
26729
|
mode: isStrict,
|
|
28256
|
-
isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26730
|
+
isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type55 = typeMap$2[type]) === null || _typeMap$type55 === void 0 ? void 0 : _typeMap$type55.isShowSelectTradeGoods
|
|
28257
26731
|
}),
|
|
28258
|
-
uniqueKey: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26732
|
+
uniqueKey: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type56 = typeMap$2[type]) === null || _typeMap$type56 === void 0 ? void 0 : _typeMap$type56.uniqueKey) || 'uuid',
|
|
28259
26733
|
selectedGoodsChange: selectedGoodsChange
|
|
28260
26734
|
}
|
|
28261
26735
|
})));
|
|
@@ -28998,7 +27472,7 @@ var MsgStatus = function MsgStatus(props) {
|
|
|
28998
27472
|
onClick: function onClick() {
|
|
28999
27473
|
return setChangeIndex(index);
|
|
29000
27474
|
}
|
|
29001
|
-
}, kmkfUtils.msgTypeCh[key]
|
|
27475
|
+
}, kmkfUtils.msgTypeCh[key], item.ruleName);
|
|
29002
27476
|
}))) : null, type === 1 ? /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({}, other), {}, {
|
|
29003
27477
|
showSearch: true,
|
|
29004
27478
|
value: (_value$changeIndex = value[changeIndex]) === null || _value$changeIndex === void 0 ? void 0 : _value$changeIndex.status,
|
|
@@ -29576,7 +28050,7 @@ var GyReissue = function GyReissue(props) {
|
|
|
29576
28050
|
span: 12
|
|
29577
28051
|
},
|
|
29578
28052
|
sm: {
|
|
29579
|
-
span:
|
|
28053
|
+
span: 6
|
|
29580
28054
|
}
|
|
29581
28055
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Cascader, {
|
|
29582
28056
|
style: {
|
|
@@ -29879,7 +28353,7 @@ var GyReturnGoods = function GyReturnGoods(props) {
|
|
|
29879
28353
|
span: 12
|
|
29880
28354
|
},
|
|
29881
28355
|
sm: {
|
|
29882
|
-
span:
|
|
28356
|
+
span: 6
|
|
29883
28357
|
}
|
|
29884
28358
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Cascader, {
|
|
29885
28359
|
style: {
|
|
@@ -30552,7 +29026,6 @@ var SYSTEM_ORDER_COLUMNS_MAP = {
|
|
|
30552
29026
|
GY_SYSTEM_ORDER: kmkfUtils.GY_SYSTEM_ORDER_CONFIG.columns,
|
|
30553
29027
|
JST_SYSTEM_ORDER: kmkfUtils.JST_SYSTEM_ORDER_CONFIG.columns,
|
|
30554
29028
|
JY_SYSTEM_ORDER: kmkfUtils.JY_SYSTEM_ORDER_CONFIG.columns,
|
|
30555
|
-
JKY_SYSTEM_ORDER: kmkfUtils.JKY_SYSTEM_ORDER_CONFIG.columns,
|
|
30556
29029
|
WDT_RETURN_BILL_NO: kmkfUtils.WDT_RETURN_BILL_NO_CONFIG.columns
|
|
30557
29030
|
};
|
|
30558
29031
|
|
|
@@ -30635,7 +29108,6 @@ exports.erpColumnsMap = erpColumnsMap;
|
|
|
30635
29108
|
exports.erpFormValidator = erpFormValidator;
|
|
30636
29109
|
exports.erpModalColumnsMap = index$1;
|
|
30637
29110
|
exports.getGyColumns = getColumns$4;
|
|
30638
|
-
exports.getJkyColumns = getColumns$9;
|
|
30639
29111
|
exports.getJstColumns = getColumns$5;
|
|
30640
29112
|
exports.getJyColumns = getColumns$7;
|
|
30641
29113
|
exports.getKmColumns = getColumns$6;
|
|
@@ -30644,4 +29116,3 @@ exports.getWdtColumns = getColumns$2;
|
|
|
30644
29116
|
exports.getWlnColumns = getColumns$3;
|
|
30645
29117
|
exports.orderSubFormConstants = orderSubFormConstants;
|
|
30646
29118
|
exports.renderMap = renderMap;
|
|
30647
|
-
exports.renderSplitMap = renderSplitMap;
|