@kmkf-fe-packages/basic-components 2.2.39-beta.1 → 2.2.39-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +257 -137
- package/dist/index.js +257 -136
- package/dist/src/apaas/SubForm/index.d.ts +2 -2
- package/dist/src/apaas/SubForm/render.d.ts +4 -0
- package/dist/src/index.d.ts +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -8469,7 +8469,10 @@ var processLogisticsTrajectory = function processLogisticsTrajectory(getValue) {
|
|
|
8469
8469
|
var map = subFields.reduce(function (cur, nxt) {
|
|
8470
8470
|
return nxt === 'trajectoryApiStatus' ? _objectSpread2(_objectSpread2({}, cur), {}, _defineProperty({}, nxt, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_trajectoryApiStatus")), {}))) : _objectSpread2(_objectSpread2({}, cur), {}, _defineProperty({}, nxt, getValue("".concat(nex.uniqueKey, "_").concat(nxt))));
|
|
8471
8471
|
}, {});
|
|
8472
|
-
|
|
8472
|
+
var mapChild = subFields.reduce(function (cur, nxt) {
|
|
8473
|
+
return nxt === 'trajectoryApiStatus' ? _objectSpread2(_objectSpread2({}, cur), {}, _defineProperty({}, "".concat(nex.uniqueKey, "_trajectoryApiStatus"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_trajectoryApiStatus")), {}))) : _objectSpread2(_objectSpread2({}, cur), {}, _defineProperty({}, "".concat(nex.uniqueKey, "_").concat(nxt), getValue("".concat(nex.uniqueKey, "_").concat(nxt))));
|
|
8474
|
+
}, {});
|
|
8475
|
+
return _objectSpread2(_defineProperty({}, nex.uniqueKey, map), mapChild);
|
|
8473
8476
|
};
|
|
8474
8477
|
};
|
|
8475
8478
|
var processLogisticsTrajectoryMore = function processLogisticsTrajectoryMore(getValue) {
|
|
@@ -8493,12 +8496,12 @@ var processItemSelectThird = function processItemSelectThird(getValue) {
|
|
|
8493
8496
|
};
|
|
8494
8497
|
var processEnterPrisePayment = function processEnterPrisePayment(getValue) {
|
|
8495
8498
|
return function (nex, config) {
|
|
8496
|
-
var
|
|
8499
|
+
var _ref33;
|
|
8497
8500
|
var subFields = ['enterprisePaymentAlipayNick', 'enterprisePaymentAlipayNo', 'enterprisePaymentBuyerNick', 'enterprisePaymentBuyerOpenUid', 'enterprisePaymentRefundFee', 'enterprisePaymentStatus', 'enterprisePaymentTid'];
|
|
8498
8501
|
var map = subFields.reduce(function (cur, nxt) {
|
|
8499
8502
|
return _objectSpread2(_objectSpread2({}, cur), {}, _defineProperty({}, nxt, getValue("".concat(nex.uniqueKey, "_").concat(nxt))));
|
|
8500
8503
|
}, {});
|
|
8501
|
-
return
|
|
8504
|
+
return _ref33 = {}, _defineProperty(_ref33, nex.uniqueKey, map), _defineProperty(_ref33, "".concat(nex.uniqueKey, "_enterprisePaymentAlipayNick"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentAlipayNick"))), _defineProperty(_ref33, "".concat(nex.uniqueKey, "_enterprisePaymentAlipayNo"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentAlipayNo"))), _defineProperty(_ref33, "".concat(nex.uniqueKey, "_enterprisePaymentBuyerNick"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentBuyerNick"))), _defineProperty(_ref33, "".concat(nex.uniqueKey, "_enterprisePaymentRefundFee"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentRefundFee"))), _defineProperty(_ref33, "".concat(nex.uniqueKey, "_enterprisePaymentStatus"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentStatus"))), _defineProperty(_ref33, "".concat(nex.uniqueKey, "_enterprisePaymentTime"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentTime"))), _defineProperty(_ref33, "".concat(nex.uniqueKey, "_enterprisePaymentTid"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentTid"))), _ref33;
|
|
8502
8505
|
};
|
|
8503
8506
|
};
|
|
8504
8507
|
var processJstLogistics = function processJstLogistics(getValue) {
|
|
@@ -9261,14 +9264,14 @@ var processJstReturnGoods = function processJstReturnGoods(templateColumns) {
|
|
|
9261
9264
|
};
|
|
9262
9265
|
var processLabel = function processLabel(getValue) {
|
|
9263
9266
|
return function (nex, config) {
|
|
9264
|
-
var
|
|
9265
|
-
return
|
|
9267
|
+
var _ref73;
|
|
9268
|
+
return _ref73 = {}, _defineProperty(_ref73, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _defineProperty(_ref73, "".concat(nex.uniqueKey, "_label"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _ref73;
|
|
9266
9269
|
};
|
|
9267
9270
|
};
|
|
9268
9271
|
var processMemberLevel = function processMemberLevel(getValue) {
|
|
9269
9272
|
return function (nex, config) {
|
|
9270
|
-
var
|
|
9271
|
-
return
|
|
9273
|
+
var _ref74;
|
|
9274
|
+
return _ref74 = {}, _defineProperty(_ref74, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _defineProperty(_ref74, "".concat(nex.uniqueKey, "_memberLevel"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _ref74;
|
|
9272
9275
|
};
|
|
9273
9276
|
};
|
|
9274
9277
|
var processAfterSalesOrderId = function processAfterSalesOrderId(getValue) {
|
|
@@ -9563,7 +9566,6 @@ var FileRender = function FileRender(_ref) {
|
|
|
9563
9566
|
cursor: 'pointer'
|
|
9564
9567
|
},
|
|
9565
9568
|
onClick: function onClick(e) {
|
|
9566
|
-
console.log('onPreview');
|
|
9567
9569
|
e.preventDefault();
|
|
9568
9570
|
onPreview(item);
|
|
9569
9571
|
},
|
|
@@ -9659,6 +9661,9 @@ var PictureRender = function PictureRender(_ref2) {
|
|
|
9659
9661
|
}));
|
|
9660
9662
|
}));
|
|
9661
9663
|
};
|
|
9664
|
+
var LogisticsCompanyRender = function LogisticsCompanyRender(value) {
|
|
9665
|
+
return kmkfUtils.ExpressData.getInstance().getExpressNameByCode(value) || value;
|
|
9666
|
+
};
|
|
9662
9667
|
var MultipleSelectRender = function MultipleSelectRender(_ref5) {
|
|
9663
9668
|
var _ref5$value = _ref5.value,
|
|
9664
9669
|
value = _ref5$value === void 0 ? [] : _ref5$value;
|
|
@@ -9693,6 +9698,16 @@ var renderMap = {
|
|
|
9693
9698
|
});
|
|
9694
9699
|
}
|
|
9695
9700
|
};
|
|
9701
|
+
var renderSplitMap = {
|
|
9702
|
+
//物流轨迹-物流公司
|
|
9703
|
+
jbCFrJV4m7_trajectoryCompany: function jbCFrJV4m7_trajectoryCompany(value) {
|
|
9704
|
+
return LogisticsCompanyRender(value);
|
|
9705
|
+
},
|
|
9706
|
+
//退货物流-物流公司
|
|
9707
|
+
'0qFEv9GEyd_returnLogisticsCompany': function qFEv9GEyd_returnLogisticsCompany(value) {
|
|
9708
|
+
return LogisticsCompanyRender(value);
|
|
9709
|
+
}
|
|
9710
|
+
};
|
|
9696
9711
|
var EditPictureRender = function EditPictureRender(_ref6) {
|
|
9697
9712
|
var _ref6$val = _ref6.val,
|
|
9698
9713
|
val = _ref6$val === void 0 ? [] : _ref6$val,
|
|
@@ -9786,13 +9801,13 @@ var EditFileRender = function EditFileRender(_ref7) {
|
|
|
9786
9801
|
}));
|
|
9787
9802
|
};
|
|
9788
9803
|
var EditRenderMap = {
|
|
9789
|
-
INPUT: function INPUT(
|
|
9790
|
-
var val =
|
|
9791
|
-
record =
|
|
9792
|
-
index =
|
|
9793
|
-
t =
|
|
9794
|
-
updateHandle =
|
|
9795
|
-
disabled =
|
|
9804
|
+
INPUT: function INPUT(_ref9) {
|
|
9805
|
+
var val = _ref9.val,
|
|
9806
|
+
record = _ref9.record,
|
|
9807
|
+
index = _ref9.index,
|
|
9808
|
+
t = _ref9.t,
|
|
9809
|
+
updateHandle = _ref9.updateHandle,
|
|
9810
|
+
disabled = _ref9.disabled;
|
|
9796
9811
|
var precisionValue = t.precision === 'nolimit' ? undefined : t.precision;
|
|
9797
9812
|
return !t.isEdit && !disabled ? t.isNumber ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
9798
9813
|
style: {
|
|
@@ -9815,13 +9830,13 @@ var EditRenderMap = {
|
|
|
9815
9830
|
}
|
|
9816
9831
|
}) : /*#__PURE__*/React__default['default'].createElement("div", null, val);
|
|
9817
9832
|
},
|
|
9818
|
-
TEXTAREA: function TEXTAREA(
|
|
9819
|
-
var val =
|
|
9820
|
-
record =
|
|
9821
|
-
index =
|
|
9822
|
-
t =
|
|
9823
|
-
updateHandle =
|
|
9824
|
-
disabled =
|
|
9833
|
+
TEXTAREA: function TEXTAREA(_ref10) {
|
|
9834
|
+
var val = _ref10.val,
|
|
9835
|
+
record = _ref10.record,
|
|
9836
|
+
index = _ref10.index,
|
|
9837
|
+
t = _ref10.t,
|
|
9838
|
+
updateHandle = _ref10.updateHandle,
|
|
9839
|
+
disabled = _ref10.disabled;
|
|
9825
9840
|
var precisionValue = t.precision === 'nolimit' ? undefined : t.precision;
|
|
9826
9841
|
return !t.isEdit && !disabled ? t.isNumber ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
9827
9842
|
style: {
|
|
@@ -9844,25 +9859,7 @@ var EditRenderMap = {
|
|
|
9844
9859
|
}
|
|
9845
9860
|
}) : /*#__PURE__*/React__default['default'].createElement("div", null, val);
|
|
9846
9861
|
},
|
|
9847
|
-
PICTURE: function PICTURE(
|
|
9848
|
-
var val = _ref10.val,
|
|
9849
|
-
record = _ref10.record,
|
|
9850
|
-
index = _ref10.index,
|
|
9851
|
-
t = _ref10.t,
|
|
9852
|
-
updateHandle = _ref10.updateHandle,
|
|
9853
|
-
disabled = _ref10.disabled,
|
|
9854
|
-
platform = _ref10.platform;
|
|
9855
|
-
return /*#__PURE__*/React__default['default'].createElement(EditPictureRender, {
|
|
9856
|
-
val: val,
|
|
9857
|
-
t: t,
|
|
9858
|
-
disabled: disabled,
|
|
9859
|
-
index: index,
|
|
9860
|
-
updateHandle: updateHandle,
|
|
9861
|
-
hostUrl: hostUrl,
|
|
9862
|
-
platform: platform
|
|
9863
|
-
});
|
|
9864
|
-
},
|
|
9865
|
-
FILE: function FILE(_ref11) {
|
|
9862
|
+
PICTURE: function PICTURE(_ref11) {
|
|
9866
9863
|
var val = _ref11.val,
|
|
9867
9864
|
record = _ref11.record,
|
|
9868
9865
|
index = _ref11.index,
|
|
@@ -9870,7 +9867,7 @@ var EditRenderMap = {
|
|
|
9870
9867
|
updateHandle = _ref11.updateHandle,
|
|
9871
9868
|
disabled = _ref11.disabled,
|
|
9872
9869
|
platform = _ref11.platform;
|
|
9873
|
-
return /*#__PURE__*/React__default['default'].createElement(
|
|
9870
|
+
return /*#__PURE__*/React__default['default'].createElement(EditPictureRender, {
|
|
9874
9871
|
val: val,
|
|
9875
9872
|
t: t,
|
|
9876
9873
|
disabled: disabled,
|
|
@@ -9880,30 +9877,25 @@ var EditRenderMap = {
|
|
|
9880
9877
|
platform: platform
|
|
9881
9878
|
});
|
|
9882
9879
|
},
|
|
9883
|
-
|
|
9880
|
+
FILE: function FILE(_ref12) {
|
|
9884
9881
|
var val = _ref12.val,
|
|
9885
9882
|
record = _ref12.record,
|
|
9886
9883
|
index = _ref12.index,
|
|
9887
9884
|
t = _ref12.t,
|
|
9888
9885
|
updateHandle = _ref12.updateHandle,
|
|
9889
9886
|
disabled = _ref12.disabled,
|
|
9890
|
-
|
|
9891
|
-
return /*#__PURE__*/React__default['default'].createElement(
|
|
9892
|
-
|
|
9893
|
-
|
|
9894
|
-
|
|
9895
|
-
|
|
9896
|
-
|
|
9897
|
-
|
|
9898
|
-
|
|
9899
|
-
|
|
9900
|
-
listHeight: 120,
|
|
9901
|
-
onChange: function onChange(e) {
|
|
9902
|
-
return updateHandle(e, index, t.key);
|
|
9903
|
-
}
|
|
9904
|
-
}));
|
|
9887
|
+
platform = _ref12.platform;
|
|
9888
|
+
return /*#__PURE__*/React__default['default'].createElement(EditFileRender, {
|
|
9889
|
+
val: val,
|
|
9890
|
+
t: t,
|
|
9891
|
+
disabled: disabled,
|
|
9892
|
+
index: index,
|
|
9893
|
+
updateHandle: updateHandle,
|
|
9894
|
+
hostUrl: hostUrl,
|
|
9895
|
+
platform: platform
|
|
9896
|
+
});
|
|
9905
9897
|
},
|
|
9906
|
-
|
|
9898
|
+
RADIO: function RADIO(_ref13) {
|
|
9907
9899
|
var val = _ref13.val,
|
|
9908
9900
|
record = _ref13.record,
|
|
9909
9901
|
index = _ref13.index,
|
|
@@ -9926,7 +9918,7 @@ var EditRenderMap = {
|
|
|
9926
9918
|
}
|
|
9927
9919
|
}));
|
|
9928
9920
|
},
|
|
9929
|
-
|
|
9921
|
+
SELECT: function SELECT(_ref14) {
|
|
9930
9922
|
var val = _ref14.val,
|
|
9931
9923
|
record = _ref14.record,
|
|
9932
9924
|
index = _ref14.index,
|
|
@@ -9934,21 +9926,22 @@ var EditRenderMap = {
|
|
|
9934
9926
|
updateHandle = _ref14.updateHandle,
|
|
9935
9927
|
disabled = _ref14.disabled,
|
|
9936
9928
|
componentDto = _ref14.componentDto;
|
|
9937
|
-
return /*#__PURE__*/React__default['default'].createElement(
|
|
9929
|
+
return /*#__PURE__*/React__default['default'].createElement(ApaasSelect, _objectSpread2(_objectSpread2({
|
|
9938
9930
|
getPopupContainer: function getPopupContainer() {
|
|
9939
9931
|
return document.getElementById('subform');
|
|
9940
9932
|
}
|
|
9941
9933
|
}, componentDto === null || componentDto === void 0 ? void 0 : componentDto.componentConfig), {}, {
|
|
9942
9934
|
value: val,
|
|
9935
|
+
disabled: t.isEdit || disabled,
|
|
9936
|
+
allowClear: true,
|
|
9943
9937
|
placement: "topLeft",
|
|
9944
9938
|
listHeight: 120,
|
|
9945
|
-
disabled: t.isEdit || disabled,
|
|
9946
9939
|
onChange: function onChange(e) {
|
|
9947
9940
|
return updateHandle(e, index, t.key);
|
|
9948
9941
|
}
|
|
9949
9942
|
}));
|
|
9950
9943
|
},
|
|
9951
|
-
|
|
9944
|
+
CHECKBOX: function CHECKBOX(_ref15) {
|
|
9952
9945
|
var val = _ref15.val,
|
|
9953
9946
|
record = _ref15.record,
|
|
9954
9947
|
index = _ref15.index,
|
|
@@ -9969,6 +9962,59 @@ var EditRenderMap = {
|
|
|
9969
9962
|
return updateHandle(e, index, t.key);
|
|
9970
9963
|
}
|
|
9971
9964
|
}));
|
|
9965
|
+
},
|
|
9966
|
+
BASIC_MULT_SELECT: function BASIC_MULT_SELECT(_ref16) {
|
|
9967
|
+
var val = _ref16.val,
|
|
9968
|
+
record = _ref16.record,
|
|
9969
|
+
index = _ref16.index,
|
|
9970
|
+
t = _ref16.t,
|
|
9971
|
+
updateHandle = _ref16.updateHandle,
|
|
9972
|
+
disabled = _ref16.disabled,
|
|
9973
|
+
componentDto = _ref16.componentDto;
|
|
9974
|
+
return /*#__PURE__*/React__default['default'].createElement(ApaasMultipleSelect, _objectSpread2(_objectSpread2({
|
|
9975
|
+
getPopupContainer: function getPopupContainer() {
|
|
9976
|
+
return document.getElementById('subform');
|
|
9977
|
+
}
|
|
9978
|
+
}, componentDto === null || componentDto === void 0 ? void 0 : componentDto.componentConfig), {}, {
|
|
9979
|
+
value: val,
|
|
9980
|
+
placement: "topLeft",
|
|
9981
|
+
listHeight: 120,
|
|
9982
|
+
disabled: t.isEdit || disabled,
|
|
9983
|
+
onChange: function onChange(e) {
|
|
9984
|
+
return updateHandle(e, index, t.key);
|
|
9985
|
+
}
|
|
9986
|
+
}));
|
|
9987
|
+
}
|
|
9988
|
+
};
|
|
9989
|
+
var EditSplitRenderMap = {
|
|
9990
|
+
jbCFrJV4m7_trajectoryCompany: function jbCFrJV4m7_trajectoryCompany(_ref17) {
|
|
9991
|
+
var val = _ref17.val,
|
|
9992
|
+
index = _ref17.index,
|
|
9993
|
+
t = _ref17.t,
|
|
9994
|
+
updateHandle = _ref17.updateHandle,
|
|
9995
|
+
disabled = _ref17.disabled;
|
|
9996
|
+
return /*#__PURE__*/React__default['default'].createElement(ApaasLogistics, {
|
|
9997
|
+
value: val,
|
|
9998
|
+
onChange: function onChange(e) {
|
|
9999
|
+
return updateHandle(e, index, t.key);
|
|
10000
|
+
},
|
|
10001
|
+
disabled: disabled
|
|
10002
|
+
});
|
|
10003
|
+
},
|
|
10004
|
+
//退货物流-物流公司
|
|
10005
|
+
'0qFEv9GEyd_returnLogisticsCompany': function qFEv9GEyd_returnLogisticsCompany(_ref18) {
|
|
10006
|
+
var val = _ref18.val,
|
|
10007
|
+
index = _ref18.index,
|
|
10008
|
+
t = _ref18.t,
|
|
10009
|
+
updateHandle = _ref18.updateHandle,
|
|
10010
|
+
disabled = _ref18.disabled;
|
|
10011
|
+
return /*#__PURE__*/React__default['default'].createElement(ApaasLogistics, {
|
|
10012
|
+
value: val,
|
|
10013
|
+
onChange: function onChange(e) {
|
|
10014
|
+
return updateHandle(e, index, t.key);
|
|
10015
|
+
},
|
|
10016
|
+
disabled: disabled
|
|
10017
|
+
});
|
|
9972
10018
|
}
|
|
9973
10019
|
};
|
|
9974
10020
|
|
|
@@ -10098,7 +10144,6 @@ var SubForm = function SubForm(props) {
|
|
|
10098
10144
|
return deleteHandle(record.uuid);
|
|
10099
10145
|
}
|
|
10100
10146
|
});
|
|
10101
|
-
// return <div style={{ width: 25 }}>{index + 1}</div>;
|
|
10102
10147
|
}
|
|
10103
10148
|
}].concat(_toConsumableArray(newTableHeader.map(function (t) {
|
|
10104
10149
|
return {
|
|
@@ -10111,27 +10156,39 @@ var SubForm = function SubForm(props) {
|
|
|
10111
10156
|
ellipsis: true,
|
|
10112
10157
|
width: t.width,
|
|
10113
10158
|
render: function render(val, record, index) {
|
|
10114
|
-
|
|
10115
|
-
|
|
10116
|
-
|
|
10117
|
-
|
|
10118
|
-
|
|
10119
|
-
|
|
10120
|
-
|
|
10121
|
-
|
|
10122
|
-
|
|
10123
|
-
|
|
10124
|
-
|
|
10125
|
-
|
|
10126
|
-
|
|
10127
|
-
|
|
10128
|
-
|
|
10129
|
-
|
|
10130
|
-
|
|
10131
|
-
|
|
10132
|
-
|
|
10133
|
-
|
|
10134
|
-
|
|
10159
|
+
if (EditRenderMap[t.workOrderComponentType]) {
|
|
10160
|
+
return EditRenderMap[t.workOrderComponentType]({
|
|
10161
|
+
val: val,
|
|
10162
|
+
record: record,
|
|
10163
|
+
index: index,
|
|
10164
|
+
t: t,
|
|
10165
|
+
updateHandle: updateHandle,
|
|
10166
|
+
disabled: disabled,
|
|
10167
|
+
componentDto: componentDtoList.find(function (item) {
|
|
10168
|
+
return item.uniqueKey === t.key;
|
|
10169
|
+
}),
|
|
10170
|
+
platform: platform
|
|
10171
|
+
});
|
|
10172
|
+
} else if (EditSplitRenderMap[t.key]) {
|
|
10173
|
+
return EditSplitRenderMap[t.key]({
|
|
10174
|
+
val: val,
|
|
10175
|
+
index: index,
|
|
10176
|
+
t: t,
|
|
10177
|
+
updateHandle: updateHandle,
|
|
10178
|
+
disabled: disabled
|
|
10179
|
+
});
|
|
10180
|
+
} else {
|
|
10181
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
10182
|
+
style: {
|
|
10183
|
+
width: '100%'
|
|
10184
|
+
},
|
|
10185
|
+
value: val,
|
|
10186
|
+
onChange: function onChange(e) {
|
|
10187
|
+
var _e$target;
|
|
10188
|
+
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);
|
|
10189
|
+
}
|
|
10190
|
+
});
|
|
10191
|
+
}
|
|
10135
10192
|
}
|
|
10136
10193
|
};
|
|
10137
10194
|
})), [disabled ? {} : {
|
|
@@ -10181,6 +10238,10 @@ var SubForm = function SubForm(props) {
|
|
|
10181
10238
|
item.render = function (val) {
|
|
10182
10239
|
return renderMap[t.workOrderComponentType](val, platform);
|
|
10183
10240
|
};
|
|
10241
|
+
} else if (renderSplitMap[t.key]) {
|
|
10242
|
+
item.render = function (val) {
|
|
10243
|
+
return renderSplitMap[t.key](val);
|
|
10244
|
+
};
|
|
10184
10245
|
}
|
|
10185
10246
|
return item;
|
|
10186
10247
|
})));
|
|
@@ -10195,7 +10256,11 @@ var SubForm = function SubForm(props) {
|
|
|
10195
10256
|
if (['PICTURE', 'FILE', 'BASIC_MULT_SELECT', 'CHECKBOX'].includes(next.workOrderComponentType)) {
|
|
10196
10257
|
item.defaultValue = [];
|
|
10197
10258
|
}
|
|
10198
|
-
|
|
10259
|
+
if (!['LOGISTICS_TRAJECTORY', 'RETURN_LOGISTICS_SELECT'].includes(next.workOrderComponentType)) {
|
|
10260
|
+
prv["".concat(next.key, "_").concat(WidgetMap[next.workOrderComponentType])] = item;
|
|
10261
|
+
} else {
|
|
10262
|
+
prv["".concat(next.key)] = item;
|
|
10263
|
+
}
|
|
10199
10264
|
return prv;
|
|
10200
10265
|
}, {});
|
|
10201
10266
|
}, [newTableHeader]);
|
|
@@ -10212,7 +10277,7 @@ var SubForm = function SubForm(props) {
|
|
|
10212
10277
|
}).map(function (item) {
|
|
10213
10278
|
return {
|
|
10214
10279
|
label: item.name,
|
|
10215
|
-
value: "".concat(item.key, "_").concat(WidgetMap[item.workOrderComponentType])
|
|
10280
|
+
value: WidgetMap[item.workOrderComponentType] ? "".concat(item.key, "_").concat(WidgetMap[item.workOrderComponentType]) : item.key
|
|
10216
10281
|
};
|
|
10217
10282
|
});
|
|
10218
10283
|
setSelectKey(options === null || options === void 0 ? void 0 : (_options$ = options[0]) === null || _options$ === void 0 ? void 0 : _options$.value);
|
|
@@ -10254,6 +10319,7 @@ var SubForm = function SubForm(props) {
|
|
|
10254
10319
|
_ref2$componentList,
|
|
10255
10320
|
componentList,
|
|
10256
10321
|
params,
|
|
10322
|
+
queryComponents,
|
|
10257
10323
|
res,
|
|
10258
10324
|
data,
|
|
10259
10325
|
success,
|
|
@@ -10286,15 +10352,25 @@ var SubForm = function SubForm(props) {
|
|
|
10286
10352
|
}]
|
|
10287
10353
|
};
|
|
10288
10354
|
if (selectKey && inputValue) {
|
|
10289
|
-
|
|
10355
|
+
queryComponents = [{
|
|
10290
10356
|
key: 'flowStatus',
|
|
10291
10357
|
symbol: 'in',
|
|
10292
10358
|
value: flowStatus
|
|
10293
|
-
}, {
|
|
10294
|
-
key: selectKey,
|
|
10295
|
-
symbol: 'in',
|
|
10296
|
-
value: [inputValue]
|
|
10297
10359
|
}];
|
|
10360
|
+
if (['0qFEv9GEyd_returnLogisticsCode', 'jbCFrJV4m7_trajectoryCode'].includes(selectKey)) {
|
|
10361
|
+
queryComponents.push({
|
|
10362
|
+
key: selectKey,
|
|
10363
|
+
symbol: 'like',
|
|
10364
|
+
value: inputValue
|
|
10365
|
+
});
|
|
10366
|
+
} else {
|
|
10367
|
+
queryComponents.push({
|
|
10368
|
+
key: selectKey,
|
|
10369
|
+
symbol: 'in',
|
|
10370
|
+
value: [inputValue]
|
|
10371
|
+
});
|
|
10372
|
+
}
|
|
10373
|
+
params.queryComponents = queryComponents;
|
|
10298
10374
|
}
|
|
10299
10375
|
_context.next = 7;
|
|
10300
10376
|
return extendRequest('/qy/view/workOrderList', {
|
|
@@ -10490,7 +10566,21 @@ var SubForm = function SubForm(props) {
|
|
|
10490
10566
|
placement: "bottom",
|
|
10491
10567
|
visible: open,
|
|
10492
10568
|
onVisibleChange: handleOpenChange
|
|
10493
|
-
}, /*#__PURE__*/React__default['default'].createElement(
|
|
10569
|
+
}, ['0qFEv9GEyd_returnLogisticsCompany', 'jbCFrJV4m7_trajectoryCompany'].includes(selectKey) ? /*#__PURE__*/React__default['default'].createElement(ApaasLogistics, {
|
|
10570
|
+
value: undefined,
|
|
10571
|
+
onChange: function onChange(val) {
|
|
10572
|
+
onChangeInput(val);
|
|
10573
|
+
},
|
|
10574
|
+
placeholder: "\u8BF7\u9009\u62E9\u7269\u6D41\u516C\u53F8",
|
|
10575
|
+
showSearch: true,
|
|
10576
|
+
allowClear: true,
|
|
10577
|
+
style: {
|
|
10578
|
+
width: '180px'
|
|
10579
|
+
},
|
|
10580
|
+
filterOption: function filterOption(input, option) {
|
|
10581
|
+
return option.label.includes(input);
|
|
10582
|
+
}
|
|
10583
|
+
}) : /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
10494
10584
|
placeholder: "\u8F93\u5165\u5173\u952E\u8BCD\u67E5\u8BE2",
|
|
10495
10585
|
allowClear: true,
|
|
10496
10586
|
onChange: function onChange(e) {
|
|
@@ -22413,11 +22503,38 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
22413
22503
|
var handleChangeSelectedKeys = function handleChangeSelectedKeys(keys) {
|
|
22414
22504
|
onChangeSelectedKeys(keys.concat(unCurrentTradeOriginGoods));
|
|
22415
22505
|
};
|
|
22416
|
-
var rowSelection = {
|
|
22506
|
+
var rowSelection = _objectSpread2({
|
|
22417
22507
|
selectedRowKeys: selectedRowKeys,
|
|
22418
22508
|
fixed: true,
|
|
22419
22509
|
onChange: handleChangeSelectedKeys
|
|
22420
|
-
}
|
|
22510
|
+
}, type === 'JST_REISSUE_GOODS' ? {
|
|
22511
|
+
getCheckboxProps: function getCheckboxProps(record) {
|
|
22512
|
+
var allSelectedGoodsSukIdList = dataSource === null || dataSource === void 0 ? void 0 : dataSource.filter(function (item) {
|
|
22513
|
+
return selectedRowKeys === null || selectedRowKeys === void 0 ? void 0 : selectedRowKeys.includes(item === null || item === void 0 ? void 0 : item[uniqueKey]);
|
|
22514
|
+
}).map(function (item) {
|
|
22515
|
+
return item === null || item === void 0 ? void 0 : item.skuId;
|
|
22516
|
+
});
|
|
22517
|
+
var isDisabled = allSelectedGoodsSukIdList.includes(record === null || record === void 0 ? void 0 : record.skuId) && !selectedRowKeys.includes(record === null || record === void 0 ? void 0 : record[uniqueKey]);
|
|
22518
|
+
return {
|
|
22519
|
+
disabled: isDisabled
|
|
22520
|
+
};
|
|
22521
|
+
},
|
|
22522
|
+
renderCell: function renderCell(_, record, __, originNode) {
|
|
22523
|
+
var allSelectedGoodsSukIdList = dataSource === null || dataSource === void 0 ? void 0 : dataSource.filter(function (item) {
|
|
22524
|
+
return selectedRowKeys === null || selectedRowKeys === void 0 ? void 0 : selectedRowKeys.includes(item === null || item === void 0 ? void 0 : item[uniqueKey]);
|
|
22525
|
+
}).map(function (item) {
|
|
22526
|
+
return item === null || item === void 0 ? void 0 : item.skuId;
|
|
22527
|
+
});
|
|
22528
|
+
var isDisabled = allSelectedGoodsSukIdList.includes(record === null || record === void 0 ? void 0 : record.skuId) && !selectedRowKeys.includes(record === null || record === void 0 ? void 0 : record[uniqueKey]);
|
|
22529
|
+
if (isDisabled) {
|
|
22530
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
22531
|
+
title: "\u5DF2\u6DFB\u52A0\u5728\u7EC4\u4EF6\u4E2D\uFF0C\u76F8\u540C\u5546\u54C1\u4E0D\u80FD\u91CD\u590D\u9009\u62E9"
|
|
22532
|
+
}, originNode);
|
|
22533
|
+
} else {
|
|
22534
|
+
return originNode;
|
|
22535
|
+
}
|
|
22536
|
+
}
|
|
22537
|
+
} : {});
|
|
22421
22538
|
var buttonTextMapping = {
|
|
22422
22539
|
SKX_GOODS: '选择发货单商品',
|
|
22423
22540
|
SKX_RETURN_GOODS: '选择退货单商品'
|
|
@@ -26261,8 +26378,10 @@ var typeMap$2 = {
|
|
|
26261
26378
|
goodDetailsKey: 'items',
|
|
26262
26379
|
mergeIdenticalGoods: kmkfUtils.jstMergeIdenticalGoods,
|
|
26263
26380
|
uniqueKey: 'uuid',
|
|
26264
|
-
isShowSelectTradeGoods: true
|
|
26381
|
+
isShowSelectTradeGoods: true,
|
|
26382
|
+
isSelectTradeGoodsMerge: true //为true时,选择订单商品时,合并相同商品
|
|
26265
26383
|
},
|
|
26384
|
+
|
|
26266
26385
|
JST_RETURN_GOODS: {
|
|
26267
26386
|
compType: '退货',
|
|
26268
26387
|
key: 'jstReturnGoods',
|
|
@@ -26320,7 +26439,7 @@ var typeMap$2 = {
|
|
|
26320
26439
|
}
|
|
26321
26440
|
};
|
|
26322
26441
|
var PublicReissue = function PublicReissue(props) {
|
|
26323
|
-
var _typeMap$
|
|
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;
|
|
26324
26443
|
var value = props.value,
|
|
26325
26444
|
onChange = props.onChange,
|
|
26326
26445
|
_props$reasonList = props.reasonList,
|
|
@@ -26437,7 +26556,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
26437
26556
|
}))));
|
|
26438
26557
|
};
|
|
26439
26558
|
var getGoodDetails = function getGoodDetails(_ref4) {
|
|
26440
|
-
var _typeMap$type18, _typeMap$type19, _value$typeMap$type$s6, _typeMap$type20, _typeMap$type21, _typeMap$type22;
|
|
26559
|
+
var _typeMap$type18, _typeMap$type19, _value$typeMap$type$s6, _typeMap$type20, _typeMap$type21, _typeMap$type22, _typeMap$type23, _typeMap$type24;
|
|
26441
26560
|
var mode = _ref4.mode,
|
|
26442
26561
|
sysOrderNo = _ref4.sysOrderNo,
|
|
26443
26562
|
_ref4$isAllOrders = _ref4.isAllOrders,
|
|
@@ -26465,7 +26584,8 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
26465
26584
|
var _order$typeMap$type$g;
|
|
26466
26585
|
return order === null || order === void 0 ? void 0 : (_order$typeMap$type$g = order[typeMap$2[type].goodDetailsKey]) === null || _order$typeMap$type$g === void 0 ? void 0 : _order$typeMap$type$g.length;
|
|
26467
26586
|
});
|
|
26468
|
-
|
|
26587
|
+
console.log(type, orders, (_typeMap$type21 = typeMap$2[type]) === null || _typeMap$type21 === void 0 ? void 0 : _typeMap$type21.updateGoodsHandle(orders, orderRest));
|
|
26588
|
+
var goodDetails = hasGoodDetails ? (!isAllOrders || ((_typeMap$type22 = typeMap$2[type]) === null || _typeMap$type22 === void 0 ? void 0 : _typeMap$type22.isSelectTradeGoodsMerge)) && typeMap$2[type].mergeIdenticalGoods ? typeMap$2[type].mergeIdenticalGoods((_typeMap$type23 = typeMap$2[type]) === null || _typeMap$type23 === void 0 ? void 0 : _typeMap$type23.updateGoodsHandle(orders, orderRest)) : (_typeMap$type24 = typeMap$2[type]) === null || _typeMap$type24 === void 0 ? void 0 : _typeMap$type24.updateGoodsHandle(orders, orderRest) : [];
|
|
26469
26589
|
var orderNo = systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orderNo;
|
|
26470
26590
|
var list = mode && !isAllOrders ? goodDetails.filter(function (goodItem) {
|
|
26471
26591
|
return !orderNo || goodItem[typeMap$2[type].outerOiIdKey] === orderNo;
|
|
@@ -26473,30 +26593,30 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
26473
26593
|
return list;
|
|
26474
26594
|
};
|
|
26475
26595
|
var changeGoodHandle = function changeGoodHandle(val) {
|
|
26476
|
-
var _typeMap$
|
|
26596
|
+
var _typeMap$type25;
|
|
26477
26597
|
var newValue = _objectSpread2({}, value);
|
|
26478
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26598
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type25 = typeMap$2[type]) === null || _typeMap$type25 === void 0 ? void 0 : _typeMap$type25.key)] = val || [];
|
|
26479
26599
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
26480
26600
|
};
|
|
26481
26601
|
var changeSystemOrderHandle = function changeSystemOrderHandle(val) {
|
|
26482
|
-
var _typeMap$
|
|
26602
|
+
var _typeMap$type26, _typeMap$type27, _value$typeMap$type$t2, _typeMap$type32, _value$typeMap$type$t3, _typeMap$type34;
|
|
26483
26603
|
var newValue = _objectSpread2({}, value);
|
|
26484
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26485
|
-
if (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26486
|
-
var _value$typeMap$type$s7, _typeMap$
|
|
26487
|
-
var orders = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s7 = value[(_typeMap$
|
|
26604
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type26 = typeMap$2[type]) === null || _typeMap$type26 === void 0 ? void 0 : _typeMap$type26.systemOrderNo)] = val;
|
|
26605
|
+
if (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type27 = typeMap$2[type]) === null || _typeMap$type27 === void 0 ? void 0 : _typeMap$type27.systemOrderBillType) {
|
|
26606
|
+
var _value$typeMap$type$s7, _typeMap$type28, _typeMap$type30, _typeMap$type31;
|
|
26607
|
+
var orders = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s7 = value[(_typeMap$type28 = typeMap$2[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.systemOrder]) === null || _value$typeMap$type$s7 === void 0 ? void 0 : _value$typeMap$type$s7.orders) || [];
|
|
26488
26608
|
var targetOrder = val && orders.find(function (oItem) {
|
|
26489
|
-
var _typeMap$
|
|
26490
|
-
return oItem[(_typeMap$
|
|
26609
|
+
var _typeMap$type29;
|
|
26610
|
+
return oItem[(_typeMap$type29 = typeMap$2[type]) === null || _typeMap$type29 === void 0 ? void 0 : _typeMap$type29.oIdKey] === val;
|
|
26491
26611
|
});
|
|
26492
|
-
newValue[(_typeMap$
|
|
26612
|
+
newValue[(_typeMap$type30 = typeMap$2[type]) === null || _typeMap$type30 === void 0 ? void 0 : _typeMap$type30.systemOrderBillType] = targetOrder === null || targetOrder === void 0 ? void 0 : targetOrder[(_typeMap$type31 = typeMap$2[type]) === null || _typeMap$type31 === void 0 ? void 0 : _typeMap$type31.orderTypeKey];
|
|
26493
26613
|
}
|
|
26494
|
-
if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$
|
|
26495
|
-
var _typeMap$type31;
|
|
26496
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type31 = typeMap$2[type]) === null || _typeMap$type31 === void 0 ? void 0 : _typeMap$type31.key)] = [];
|
|
26497
|
-
} else if (['1'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$type32 = typeMap$2[type]) === null || _typeMap$type32 === void 0 ? void 0 : _typeMap$type32.typeName]) === null || _value$typeMap$type$t3 === void 0 ? void 0 : _value$typeMap$type$t3[0])) {
|
|
26614
|
+
if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$type32 = typeMap$2[type]) === null || _typeMap$type32 === void 0 ? void 0 : _typeMap$type32.typeName]) === null || _value$typeMap$type$t2 === void 0 ? void 0 : _value$typeMap$type$t2[0])) {
|
|
26498
26615
|
var _typeMap$type33;
|
|
26499
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type33 = typeMap$2[type]) === null || _typeMap$type33 === void 0 ? void 0 : _typeMap$type33.key)] =
|
|
26616
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type33 = typeMap$2[type]) === null || _typeMap$type33 === void 0 ? void 0 : _typeMap$type33.key)] = [];
|
|
26617
|
+
} else if (['1'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$type34 = typeMap$2[type]) === null || _typeMap$type34 === void 0 ? void 0 : _typeMap$type34.typeName]) === null || _value$typeMap$type$t3 === void 0 ? void 0 : _value$typeMap$type$t3[0])) {
|
|
26618
|
+
var _typeMap$type35;
|
|
26619
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type35 = typeMap$2[type]) === null || _typeMap$type35 === void 0 ? void 0 : _typeMap$type35.key)] = getGoodDetails({
|
|
26500
26620
|
mode: isStrict,
|
|
26501
26621
|
sysOrderNo: val
|
|
26502
26622
|
});
|
|
@@ -26504,27 +26624,27 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
26504
26624
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue, 'systemOrder');
|
|
26505
26625
|
};
|
|
26506
26626
|
//显示选择商品按钮
|
|
26507
|
-
var showChangeBtn = !!(value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
26627
|
+
var showChangeBtn = !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type36 = typeMap$2[type]) === null || _typeMap$type36 === void 0 ? void 0 : _typeMap$type36.systemOrderNo]);
|
|
26508
26628
|
var selectedGoodsChange = React.useCallback(function (skuList) {
|
|
26509
|
-
var _typeMap$
|
|
26629
|
+
var _typeMap$type37, _typeMap$type38, _typeMap$type39, _uniqBy, _typeMap$type40;
|
|
26510
26630
|
var newValue = _objectSpread2({}, value);
|
|
26511
26631
|
// 原订单商品
|
|
26512
26632
|
var originTradeGoodList = getGoodDetails({
|
|
26513
26633
|
mode: isStrict,
|
|
26514
|
-
isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26634
|
+
isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type37 = typeMap$2[type]) === null || _typeMap$type37 === void 0 ? void 0 : _typeMap$type37.isShowSelectTradeGoods
|
|
26515
26635
|
}) || [];
|
|
26516
26636
|
// 当前选中的所有商品【包含了原订单+商品库】
|
|
26517
|
-
var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26518
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26519
|
-
var _typeMap$
|
|
26520
|
-
return skuList.includes(item[(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26637
|
+
var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type38 = typeMap$2[type]) === null || _typeMap$type38 === void 0 ? void 0 : _typeMap$type38.key)]) || [];
|
|
26638
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type39 = typeMap$2[type]) === null || _typeMap$type39 === void 0 ? void 0 : _typeMap$type39.key)] = (_uniqBy = lodash.uniqBy(originTradeGoodList.concat(currentSelectGoodList), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type40 = typeMap$2[type]) === null || _typeMap$type40 === void 0 ? void 0 : _typeMap$type40.uniqueKey) || 'uuid')) === null || _uniqBy === void 0 ? void 0 : _uniqBy.filter(function (item) {
|
|
26639
|
+
var _typeMap$type41;
|
|
26640
|
+
return skuList.includes(item[(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type41 = typeMap$2[type]) === null || _typeMap$type41 === void 0 ? void 0 : _typeMap$type41.uniqueKey) || 'uuid']);
|
|
26521
26641
|
});
|
|
26522
26642
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
26523
|
-
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26643
|
+
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type42 = typeMap$2[type]) === null || _typeMap$type42 === void 0 ? void 0 : _typeMap$type42.key)], isStrict]);
|
|
26524
26644
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Row, {
|
|
26525
26645
|
gutter: 8,
|
|
26526
26646
|
wrap: true,
|
|
26527
|
-
id: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26647
|
+
id: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type43 = typeMap$2[type]) === null || _typeMap$type43 === void 0 ? void 0 : _typeMap$type43.key) || "".concat(Date.now())
|
|
26528
26648
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
26529
26649
|
className: "gutter-row",
|
|
26530
26650
|
xs: {
|
|
@@ -26540,12 +26660,12 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
26540
26660
|
},
|
|
26541
26661
|
disabled: disabled,
|
|
26542
26662
|
allowClear: false,
|
|
26543
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26663
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type44 = typeMap$2[type]) === null || _typeMap$type44 === void 0 ? void 0 : _typeMap$type44.systemOrderNo)],
|
|
26544
26664
|
onChange: function onChange(val) {
|
|
26545
26665
|
return changeSystemOrderHandle(val);
|
|
26546
26666
|
},
|
|
26547
|
-
placeholder: "\u9009\u62E9".concat((typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26548
|
-
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s8 = value[(_typeMap$
|
|
26667
|
+
placeholder: "\u9009\u62E9".concat((typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type45 = typeMap$2[type]) === null || _typeMap$type45 === void 0 ? void 0 : _typeMap$type45.compType) || '', "\u7CFB\u7EDF\u5355")
|
|
26668
|
+
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s8 = value[(_typeMap$type46 = typeMap$2[type]) === null || _typeMap$type46 === void 0 ? void 0 : _typeMap$type46.systemOrder]) === null || _value$typeMap$type$s8 === void 0 ? void 0 : _value$typeMap$type$s8.showOrderInfo) || []).map(function (item) {
|
|
26549
26669
|
return /*#__PURE__*/React__default['default'].createElement(antd.Select.Option, {
|
|
26550
26670
|
key: item[typeMap$2[type].oIdKey],
|
|
26551
26671
|
value: item[typeMap$2[type].oIdKey],
|
|
@@ -26567,11 +26687,11 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
26567
26687
|
disabled: isSettingConfig ? !isSettingConfig : disabled,
|
|
26568
26688
|
allowClear: false,
|
|
26569
26689
|
options: reasonList,
|
|
26570
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26690
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type47 = typeMap$2[type]) === null || _typeMap$type47 === void 0 ? void 0 : _typeMap$type47.typeName)],
|
|
26571
26691
|
onChange: function onChange(val) {
|
|
26572
26692
|
return changeTypeHandle(val);
|
|
26573
26693
|
}
|
|
26574
|
-
})), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26694
|
+
})), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type48 = typeMap$2[type]) === null || _typeMap$type48 === void 0 ? void 0 : _typeMap$type48.systemOrderBillType) && !isSettingConfig && /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
26575
26695
|
className: "gutter-row",
|
|
26576
26696
|
xs: {
|
|
26577
26697
|
span: 11
|
|
@@ -26580,7 +26700,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
26580
26700
|
span: 6
|
|
26581
26701
|
}
|
|
26582
26702
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
26583
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26703
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type49 = typeMap$2[type]) === null || _typeMap$type49 === void 0 ? void 0 : _typeMap$type49.systemOrderBillType)],
|
|
26584
26704
|
disabled: disabled,
|
|
26585
26705
|
readOnly: true
|
|
26586
26706
|
}))), /*#__PURE__*/React__default['default'].createElement(GoodItem$1, _objectSpread2(_objectSpread2({
|
|
@@ -26591,25 +26711,25 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
26591
26711
|
canUpdateNumber: showChangeBtn,
|
|
26592
26712
|
hasSelectedSystemOrder: showChangeBtn,
|
|
26593
26713
|
// showChangeBtn={showChangeBtn || typeMap?.[type]?.isShowSelectTradeGoods}
|
|
26594
|
-
alwaysShowChooseErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26714
|
+
alwaysShowChooseErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type50 = typeMap$2[type]) === null || _typeMap$type50 === void 0 ? void 0 : _typeMap$type50.alwaysShowChooseErpGoodsBtn,
|
|
26595
26715
|
// showErpGoodsBtn={typeMap?.[type]?.showErpGoodsBtn}
|
|
26596
26716
|
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
26597
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26717
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type51 = typeMap$2[type]) === null || _typeMap$type51 === void 0 ? void 0 : _typeMap$type51.key)],
|
|
26598
26718
|
onChange: function onChange(val) {
|
|
26599
26719
|
return changeGoodHandle(val);
|
|
26600
26720
|
},
|
|
26601
26721
|
onModeChange: handleModeChange,
|
|
26602
26722
|
showModeBtn: false,
|
|
26603
26723
|
isStrict: isStrict,
|
|
26604
|
-
isShowSelectTradeGoods: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26605
|
-
systemOrders: value === null || value === void 0 ? void 0 : (_value$typeMap$type$s9 = value[(_typeMap$
|
|
26606
|
-
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)]] : [],
|
|
26607
26727
|
tradeGoods: {
|
|
26608
26728
|
originDataSource: getGoodDetails({
|
|
26609
26729
|
mode: isStrict,
|
|
26610
|
-
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
|
|
26611
26731
|
}),
|
|
26612
|
-
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',
|
|
26613
26733
|
selectedGoodsChange: selectedGoodsChange
|
|
26614
26734
|
}
|
|
26615
26735
|
})));
|
|
@@ -28996,3 +29116,4 @@ exports.getWdtColumns = getColumns$2;
|
|
|
28996
29116
|
exports.getWlnColumns = getColumns$3;
|
|
28997
29117
|
exports.orderSubFormConstants = orderSubFormConstants;
|
|
28998
29118
|
exports.renderMap = renderMap;
|
|
29119
|
+
exports.renderSplitMap = renderSplitMap;
|