@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.esm.js
CHANGED
|
@@ -8454,7 +8454,10 @@ var processLogisticsTrajectory = function processLogisticsTrajectory(getValue) {
|
|
|
8454
8454
|
var map = subFields.reduce(function (cur, nxt) {
|
|
8455
8455
|
return nxt === 'trajectoryApiStatus' ? _objectSpread2(_objectSpread2({}, cur), {}, _defineProperty({}, nxt, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_trajectoryApiStatus")), {}))) : _objectSpread2(_objectSpread2({}, cur), {}, _defineProperty({}, nxt, getValue("".concat(nex.uniqueKey, "_").concat(nxt))));
|
|
8456
8456
|
}, {});
|
|
8457
|
-
|
|
8457
|
+
var mapChild = subFields.reduce(function (cur, nxt) {
|
|
8458
|
+
return nxt === 'trajectoryApiStatus' ? _objectSpread2(_objectSpread2({}, cur), {}, _defineProperty({}, "".concat(nex.uniqueKey, "_trajectoryApiStatus"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_trajectoryApiStatus")), {}))) : _objectSpread2(_objectSpread2({}, cur), {}, _defineProperty({}, "".concat(nex.uniqueKey, "_").concat(nxt), getValue("".concat(nex.uniqueKey, "_").concat(nxt))));
|
|
8459
|
+
}, {});
|
|
8460
|
+
return _objectSpread2(_defineProperty({}, nex.uniqueKey, map), mapChild);
|
|
8458
8461
|
};
|
|
8459
8462
|
};
|
|
8460
8463
|
var processLogisticsTrajectoryMore = function processLogisticsTrajectoryMore(getValue) {
|
|
@@ -8478,12 +8481,12 @@ var processItemSelectThird = function processItemSelectThird(getValue) {
|
|
|
8478
8481
|
};
|
|
8479
8482
|
var processEnterPrisePayment = function processEnterPrisePayment(getValue) {
|
|
8480
8483
|
return function (nex, config) {
|
|
8481
|
-
var
|
|
8484
|
+
var _ref33;
|
|
8482
8485
|
var subFields = ['enterprisePaymentAlipayNick', 'enterprisePaymentAlipayNo', 'enterprisePaymentBuyerNick', 'enterprisePaymentBuyerOpenUid', 'enterprisePaymentRefundFee', 'enterprisePaymentStatus', 'enterprisePaymentTid'];
|
|
8483
8486
|
var map = subFields.reduce(function (cur, nxt) {
|
|
8484
8487
|
return _objectSpread2(_objectSpread2({}, cur), {}, _defineProperty({}, nxt, getValue("".concat(nex.uniqueKey, "_").concat(nxt))));
|
|
8485
8488
|
}, {});
|
|
8486
|
-
return
|
|
8489
|
+
return _ref33 = {}, _defineProperty(_ref33, nex.uniqueKey, map), _defineProperty(_ref33, "".concat(nex.uniqueKey, "_enterprisePaymentAlipayNick"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentAlipayNick"))), _defineProperty(_ref33, "".concat(nex.uniqueKey, "_enterprisePaymentAlipayNo"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentAlipayNo"))), _defineProperty(_ref33, "".concat(nex.uniqueKey, "_enterprisePaymentBuyerNick"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentBuyerNick"))), _defineProperty(_ref33, "".concat(nex.uniqueKey, "_enterprisePaymentRefundFee"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentRefundFee"))), _defineProperty(_ref33, "".concat(nex.uniqueKey, "_enterprisePaymentStatus"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentStatus"))), _defineProperty(_ref33, "".concat(nex.uniqueKey, "_enterprisePaymentTime"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentTime"))), _defineProperty(_ref33, "".concat(nex.uniqueKey, "_enterprisePaymentTid"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentTid"))), _ref33;
|
|
8487
8490
|
};
|
|
8488
8491
|
};
|
|
8489
8492
|
var processJstLogistics = function processJstLogistics(getValue) {
|
|
@@ -9246,14 +9249,14 @@ var processJstReturnGoods = function processJstReturnGoods(templateColumns) {
|
|
|
9246
9249
|
};
|
|
9247
9250
|
var processLabel = function processLabel(getValue) {
|
|
9248
9251
|
return function (nex, config) {
|
|
9249
|
-
var
|
|
9250
|
-
return
|
|
9252
|
+
var _ref73;
|
|
9253
|
+
return _ref73 = {}, _defineProperty(_ref73, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _defineProperty(_ref73, "".concat(nex.uniqueKey, "_label"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _ref73;
|
|
9251
9254
|
};
|
|
9252
9255
|
};
|
|
9253
9256
|
var processMemberLevel = function processMemberLevel(getValue) {
|
|
9254
9257
|
return function (nex, config) {
|
|
9255
|
-
var
|
|
9256
|
-
return
|
|
9258
|
+
var _ref74;
|
|
9259
|
+
return _ref74 = {}, _defineProperty(_ref74, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _defineProperty(_ref74, "".concat(nex.uniqueKey, "_memberLevel"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _ref74;
|
|
9257
9260
|
};
|
|
9258
9261
|
};
|
|
9259
9262
|
var processAfterSalesOrderId = function processAfterSalesOrderId(getValue) {
|
|
@@ -9548,7 +9551,6 @@ var FileRender = function FileRender(_ref) {
|
|
|
9548
9551
|
cursor: 'pointer'
|
|
9549
9552
|
},
|
|
9550
9553
|
onClick: function onClick(e) {
|
|
9551
|
-
console.log('onPreview');
|
|
9552
9554
|
e.preventDefault();
|
|
9553
9555
|
onPreview(item);
|
|
9554
9556
|
},
|
|
@@ -9644,6 +9646,9 @@ var PictureRender = function PictureRender(_ref2) {
|
|
|
9644
9646
|
}));
|
|
9645
9647
|
}));
|
|
9646
9648
|
};
|
|
9649
|
+
var LogisticsCompanyRender = function LogisticsCompanyRender(value) {
|
|
9650
|
+
return ExpressData.getInstance().getExpressNameByCode(value) || value;
|
|
9651
|
+
};
|
|
9647
9652
|
var MultipleSelectRender = function MultipleSelectRender(_ref5) {
|
|
9648
9653
|
var _ref5$value = _ref5.value,
|
|
9649
9654
|
value = _ref5$value === void 0 ? [] : _ref5$value;
|
|
@@ -9678,6 +9683,16 @@ var renderMap = {
|
|
|
9678
9683
|
});
|
|
9679
9684
|
}
|
|
9680
9685
|
};
|
|
9686
|
+
var renderSplitMap = {
|
|
9687
|
+
//物流轨迹-物流公司
|
|
9688
|
+
jbCFrJV4m7_trajectoryCompany: function jbCFrJV4m7_trajectoryCompany(value) {
|
|
9689
|
+
return LogisticsCompanyRender(value);
|
|
9690
|
+
},
|
|
9691
|
+
//退货物流-物流公司
|
|
9692
|
+
'0qFEv9GEyd_returnLogisticsCompany': function qFEv9GEyd_returnLogisticsCompany(value) {
|
|
9693
|
+
return LogisticsCompanyRender(value);
|
|
9694
|
+
}
|
|
9695
|
+
};
|
|
9681
9696
|
var EditPictureRender = function EditPictureRender(_ref6) {
|
|
9682
9697
|
var _ref6$val = _ref6.val,
|
|
9683
9698
|
val = _ref6$val === void 0 ? [] : _ref6$val,
|
|
@@ -9771,13 +9786,13 @@ var EditFileRender = function EditFileRender(_ref7) {
|
|
|
9771
9786
|
}));
|
|
9772
9787
|
};
|
|
9773
9788
|
var EditRenderMap = {
|
|
9774
|
-
INPUT: function INPUT(
|
|
9775
|
-
var val =
|
|
9776
|
-
record =
|
|
9777
|
-
index =
|
|
9778
|
-
t =
|
|
9779
|
-
updateHandle =
|
|
9780
|
-
disabled =
|
|
9789
|
+
INPUT: function INPUT(_ref9) {
|
|
9790
|
+
var val = _ref9.val,
|
|
9791
|
+
record = _ref9.record,
|
|
9792
|
+
index = _ref9.index,
|
|
9793
|
+
t = _ref9.t,
|
|
9794
|
+
updateHandle = _ref9.updateHandle,
|
|
9795
|
+
disabled = _ref9.disabled;
|
|
9781
9796
|
var precisionValue = t.precision === 'nolimit' ? undefined : t.precision;
|
|
9782
9797
|
return !t.isEdit && !disabled ? t.isNumber ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
9783
9798
|
style: {
|
|
@@ -9800,13 +9815,13 @@ var EditRenderMap = {
|
|
|
9800
9815
|
}
|
|
9801
9816
|
}) : /*#__PURE__*/React.createElement("div", null, val);
|
|
9802
9817
|
},
|
|
9803
|
-
TEXTAREA: function TEXTAREA(
|
|
9804
|
-
var val =
|
|
9805
|
-
record =
|
|
9806
|
-
index =
|
|
9807
|
-
t =
|
|
9808
|
-
updateHandle =
|
|
9809
|
-
disabled =
|
|
9818
|
+
TEXTAREA: function TEXTAREA(_ref10) {
|
|
9819
|
+
var val = _ref10.val,
|
|
9820
|
+
record = _ref10.record,
|
|
9821
|
+
index = _ref10.index,
|
|
9822
|
+
t = _ref10.t,
|
|
9823
|
+
updateHandle = _ref10.updateHandle,
|
|
9824
|
+
disabled = _ref10.disabled;
|
|
9810
9825
|
var precisionValue = t.precision === 'nolimit' ? undefined : t.precision;
|
|
9811
9826
|
return !t.isEdit && !disabled ? t.isNumber ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
9812
9827
|
style: {
|
|
@@ -9829,25 +9844,7 @@ var EditRenderMap = {
|
|
|
9829
9844
|
}
|
|
9830
9845
|
}) : /*#__PURE__*/React.createElement("div", null, val);
|
|
9831
9846
|
},
|
|
9832
|
-
PICTURE: function PICTURE(
|
|
9833
|
-
var val = _ref10.val,
|
|
9834
|
-
record = _ref10.record,
|
|
9835
|
-
index = _ref10.index,
|
|
9836
|
-
t = _ref10.t,
|
|
9837
|
-
updateHandle = _ref10.updateHandle,
|
|
9838
|
-
disabled = _ref10.disabled,
|
|
9839
|
-
platform = _ref10.platform;
|
|
9840
|
-
return /*#__PURE__*/React.createElement(EditPictureRender, {
|
|
9841
|
-
val: val,
|
|
9842
|
-
t: t,
|
|
9843
|
-
disabled: disabled,
|
|
9844
|
-
index: index,
|
|
9845
|
-
updateHandle: updateHandle,
|
|
9846
|
-
hostUrl: hostUrl,
|
|
9847
|
-
platform: platform
|
|
9848
|
-
});
|
|
9849
|
-
},
|
|
9850
|
-
FILE: function FILE(_ref11) {
|
|
9847
|
+
PICTURE: function PICTURE(_ref11) {
|
|
9851
9848
|
var val = _ref11.val,
|
|
9852
9849
|
record = _ref11.record,
|
|
9853
9850
|
index = _ref11.index,
|
|
@@ -9855,7 +9852,7 @@ var EditRenderMap = {
|
|
|
9855
9852
|
updateHandle = _ref11.updateHandle,
|
|
9856
9853
|
disabled = _ref11.disabled,
|
|
9857
9854
|
platform = _ref11.platform;
|
|
9858
|
-
return /*#__PURE__*/React.createElement(
|
|
9855
|
+
return /*#__PURE__*/React.createElement(EditPictureRender, {
|
|
9859
9856
|
val: val,
|
|
9860
9857
|
t: t,
|
|
9861
9858
|
disabled: disabled,
|
|
@@ -9865,30 +9862,25 @@ var EditRenderMap = {
|
|
|
9865
9862
|
platform: platform
|
|
9866
9863
|
});
|
|
9867
9864
|
},
|
|
9868
|
-
|
|
9865
|
+
FILE: function FILE(_ref12) {
|
|
9869
9866
|
var val = _ref12.val,
|
|
9870
9867
|
record = _ref12.record,
|
|
9871
9868
|
index = _ref12.index,
|
|
9872
9869
|
t = _ref12.t,
|
|
9873
9870
|
updateHandle = _ref12.updateHandle,
|
|
9874
9871
|
disabled = _ref12.disabled,
|
|
9875
|
-
|
|
9876
|
-
return /*#__PURE__*/React.createElement(
|
|
9877
|
-
|
|
9878
|
-
|
|
9879
|
-
|
|
9880
|
-
|
|
9881
|
-
|
|
9882
|
-
|
|
9883
|
-
|
|
9884
|
-
|
|
9885
|
-
listHeight: 120,
|
|
9886
|
-
onChange: function onChange(e) {
|
|
9887
|
-
return updateHandle(e, index, t.key);
|
|
9888
|
-
}
|
|
9889
|
-
}));
|
|
9872
|
+
platform = _ref12.platform;
|
|
9873
|
+
return /*#__PURE__*/React.createElement(EditFileRender, {
|
|
9874
|
+
val: val,
|
|
9875
|
+
t: t,
|
|
9876
|
+
disabled: disabled,
|
|
9877
|
+
index: index,
|
|
9878
|
+
updateHandle: updateHandle,
|
|
9879
|
+
hostUrl: hostUrl,
|
|
9880
|
+
platform: platform
|
|
9881
|
+
});
|
|
9890
9882
|
},
|
|
9891
|
-
|
|
9883
|
+
RADIO: function RADIO(_ref13) {
|
|
9892
9884
|
var val = _ref13.val,
|
|
9893
9885
|
record = _ref13.record,
|
|
9894
9886
|
index = _ref13.index,
|
|
@@ -9911,7 +9903,7 @@ var EditRenderMap = {
|
|
|
9911
9903
|
}
|
|
9912
9904
|
}));
|
|
9913
9905
|
},
|
|
9914
|
-
|
|
9906
|
+
SELECT: function SELECT(_ref14) {
|
|
9915
9907
|
var val = _ref14.val,
|
|
9916
9908
|
record = _ref14.record,
|
|
9917
9909
|
index = _ref14.index,
|
|
@@ -9919,21 +9911,22 @@ var EditRenderMap = {
|
|
|
9919
9911
|
updateHandle = _ref14.updateHandle,
|
|
9920
9912
|
disabled = _ref14.disabled,
|
|
9921
9913
|
componentDto = _ref14.componentDto;
|
|
9922
|
-
return /*#__PURE__*/React.createElement(
|
|
9914
|
+
return /*#__PURE__*/React.createElement(ApaasSelect, _objectSpread2(_objectSpread2({
|
|
9923
9915
|
getPopupContainer: function getPopupContainer() {
|
|
9924
9916
|
return document.getElementById('subform');
|
|
9925
9917
|
}
|
|
9926
9918
|
}, componentDto === null || componentDto === void 0 ? void 0 : componentDto.componentConfig), {}, {
|
|
9927
9919
|
value: val,
|
|
9920
|
+
disabled: t.isEdit || disabled,
|
|
9921
|
+
allowClear: true,
|
|
9928
9922
|
placement: "topLeft",
|
|
9929
9923
|
listHeight: 120,
|
|
9930
|
-
disabled: t.isEdit || disabled,
|
|
9931
9924
|
onChange: function onChange(e) {
|
|
9932
9925
|
return updateHandle(e, index, t.key);
|
|
9933
9926
|
}
|
|
9934
9927
|
}));
|
|
9935
9928
|
},
|
|
9936
|
-
|
|
9929
|
+
CHECKBOX: function CHECKBOX(_ref15) {
|
|
9937
9930
|
var val = _ref15.val,
|
|
9938
9931
|
record = _ref15.record,
|
|
9939
9932
|
index = _ref15.index,
|
|
@@ -9954,6 +9947,59 @@ var EditRenderMap = {
|
|
|
9954
9947
|
return updateHandle(e, index, t.key);
|
|
9955
9948
|
}
|
|
9956
9949
|
}));
|
|
9950
|
+
},
|
|
9951
|
+
BASIC_MULT_SELECT: function BASIC_MULT_SELECT(_ref16) {
|
|
9952
|
+
var val = _ref16.val,
|
|
9953
|
+
record = _ref16.record,
|
|
9954
|
+
index = _ref16.index,
|
|
9955
|
+
t = _ref16.t,
|
|
9956
|
+
updateHandle = _ref16.updateHandle,
|
|
9957
|
+
disabled = _ref16.disabled,
|
|
9958
|
+
componentDto = _ref16.componentDto;
|
|
9959
|
+
return /*#__PURE__*/React.createElement(ApaasMultipleSelect, _objectSpread2(_objectSpread2({
|
|
9960
|
+
getPopupContainer: function getPopupContainer() {
|
|
9961
|
+
return document.getElementById('subform');
|
|
9962
|
+
}
|
|
9963
|
+
}, componentDto === null || componentDto === void 0 ? void 0 : componentDto.componentConfig), {}, {
|
|
9964
|
+
value: val,
|
|
9965
|
+
placement: "topLeft",
|
|
9966
|
+
listHeight: 120,
|
|
9967
|
+
disabled: t.isEdit || disabled,
|
|
9968
|
+
onChange: function onChange(e) {
|
|
9969
|
+
return updateHandle(e, index, t.key);
|
|
9970
|
+
}
|
|
9971
|
+
}));
|
|
9972
|
+
}
|
|
9973
|
+
};
|
|
9974
|
+
var EditSplitRenderMap = {
|
|
9975
|
+
jbCFrJV4m7_trajectoryCompany: function jbCFrJV4m7_trajectoryCompany(_ref17) {
|
|
9976
|
+
var val = _ref17.val,
|
|
9977
|
+
index = _ref17.index,
|
|
9978
|
+
t = _ref17.t,
|
|
9979
|
+
updateHandle = _ref17.updateHandle,
|
|
9980
|
+
disabled = _ref17.disabled;
|
|
9981
|
+
return /*#__PURE__*/React.createElement(ApaasLogistics, {
|
|
9982
|
+
value: val,
|
|
9983
|
+
onChange: function onChange(e) {
|
|
9984
|
+
return updateHandle(e, index, t.key);
|
|
9985
|
+
},
|
|
9986
|
+
disabled: disabled
|
|
9987
|
+
});
|
|
9988
|
+
},
|
|
9989
|
+
//退货物流-物流公司
|
|
9990
|
+
'0qFEv9GEyd_returnLogisticsCompany': function qFEv9GEyd_returnLogisticsCompany(_ref18) {
|
|
9991
|
+
var val = _ref18.val,
|
|
9992
|
+
index = _ref18.index,
|
|
9993
|
+
t = _ref18.t,
|
|
9994
|
+
updateHandle = _ref18.updateHandle,
|
|
9995
|
+
disabled = _ref18.disabled;
|
|
9996
|
+
return /*#__PURE__*/React.createElement(ApaasLogistics, {
|
|
9997
|
+
value: val,
|
|
9998
|
+
onChange: function onChange(e) {
|
|
9999
|
+
return updateHandle(e, index, t.key);
|
|
10000
|
+
},
|
|
10001
|
+
disabled: disabled
|
|
10002
|
+
});
|
|
9957
10003
|
}
|
|
9958
10004
|
};
|
|
9959
10005
|
|
|
@@ -10083,7 +10129,6 @@ var SubForm = function SubForm(props) {
|
|
|
10083
10129
|
return deleteHandle(record.uuid);
|
|
10084
10130
|
}
|
|
10085
10131
|
});
|
|
10086
|
-
// return <div style={{ width: 25 }}>{index + 1}</div>;
|
|
10087
10132
|
}
|
|
10088
10133
|
}].concat(_toConsumableArray(newTableHeader.map(function (t) {
|
|
10089
10134
|
return {
|
|
@@ -10096,27 +10141,39 @@ var SubForm = function SubForm(props) {
|
|
|
10096
10141
|
ellipsis: true,
|
|
10097
10142
|
width: t.width,
|
|
10098
10143
|
render: function render(val, record, index) {
|
|
10099
|
-
|
|
10100
|
-
|
|
10101
|
-
|
|
10102
|
-
|
|
10103
|
-
|
|
10104
|
-
|
|
10105
|
-
|
|
10106
|
-
|
|
10107
|
-
|
|
10108
|
-
|
|
10109
|
-
|
|
10110
|
-
|
|
10111
|
-
|
|
10112
|
-
|
|
10113
|
-
|
|
10114
|
-
|
|
10115
|
-
|
|
10116
|
-
|
|
10117
|
-
|
|
10118
|
-
|
|
10119
|
-
|
|
10144
|
+
if (EditRenderMap[t.workOrderComponentType]) {
|
|
10145
|
+
return EditRenderMap[t.workOrderComponentType]({
|
|
10146
|
+
val: val,
|
|
10147
|
+
record: record,
|
|
10148
|
+
index: index,
|
|
10149
|
+
t: t,
|
|
10150
|
+
updateHandle: updateHandle,
|
|
10151
|
+
disabled: disabled,
|
|
10152
|
+
componentDto: componentDtoList.find(function (item) {
|
|
10153
|
+
return item.uniqueKey === t.key;
|
|
10154
|
+
}),
|
|
10155
|
+
platform: platform
|
|
10156
|
+
});
|
|
10157
|
+
} else if (EditSplitRenderMap[t.key]) {
|
|
10158
|
+
return EditSplitRenderMap[t.key]({
|
|
10159
|
+
val: val,
|
|
10160
|
+
index: index,
|
|
10161
|
+
t: t,
|
|
10162
|
+
updateHandle: updateHandle,
|
|
10163
|
+
disabled: disabled
|
|
10164
|
+
});
|
|
10165
|
+
} else {
|
|
10166
|
+
return /*#__PURE__*/React.createElement(Input, {
|
|
10167
|
+
style: {
|
|
10168
|
+
width: '100%'
|
|
10169
|
+
},
|
|
10170
|
+
value: val,
|
|
10171
|
+
onChange: function onChange(e) {
|
|
10172
|
+
var _e$target;
|
|
10173
|
+
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);
|
|
10174
|
+
}
|
|
10175
|
+
});
|
|
10176
|
+
}
|
|
10120
10177
|
}
|
|
10121
10178
|
};
|
|
10122
10179
|
})), [disabled ? {} : {
|
|
@@ -10166,6 +10223,10 @@ var SubForm = function SubForm(props) {
|
|
|
10166
10223
|
item.render = function (val) {
|
|
10167
10224
|
return renderMap[t.workOrderComponentType](val, platform);
|
|
10168
10225
|
};
|
|
10226
|
+
} else if (renderSplitMap[t.key]) {
|
|
10227
|
+
item.render = function (val) {
|
|
10228
|
+
return renderSplitMap[t.key](val);
|
|
10229
|
+
};
|
|
10169
10230
|
}
|
|
10170
10231
|
return item;
|
|
10171
10232
|
})));
|
|
@@ -10180,7 +10241,11 @@ var SubForm = function SubForm(props) {
|
|
|
10180
10241
|
if (['PICTURE', 'FILE', 'BASIC_MULT_SELECT', 'CHECKBOX'].includes(next.workOrderComponentType)) {
|
|
10181
10242
|
item.defaultValue = [];
|
|
10182
10243
|
}
|
|
10183
|
-
|
|
10244
|
+
if (!['LOGISTICS_TRAJECTORY', 'RETURN_LOGISTICS_SELECT'].includes(next.workOrderComponentType)) {
|
|
10245
|
+
prv["".concat(next.key, "_").concat(WidgetMap[next.workOrderComponentType])] = item;
|
|
10246
|
+
} else {
|
|
10247
|
+
prv["".concat(next.key)] = item;
|
|
10248
|
+
}
|
|
10184
10249
|
return prv;
|
|
10185
10250
|
}, {});
|
|
10186
10251
|
}, [newTableHeader]);
|
|
@@ -10197,7 +10262,7 @@ var SubForm = function SubForm(props) {
|
|
|
10197
10262
|
}).map(function (item) {
|
|
10198
10263
|
return {
|
|
10199
10264
|
label: item.name,
|
|
10200
|
-
value: "".concat(item.key, "_").concat(WidgetMap[item.workOrderComponentType])
|
|
10265
|
+
value: WidgetMap[item.workOrderComponentType] ? "".concat(item.key, "_").concat(WidgetMap[item.workOrderComponentType]) : item.key
|
|
10201
10266
|
};
|
|
10202
10267
|
});
|
|
10203
10268
|
setSelectKey(options === null || options === void 0 ? void 0 : (_options$ = options[0]) === null || _options$ === void 0 ? void 0 : _options$.value);
|
|
@@ -10239,6 +10304,7 @@ var SubForm = function SubForm(props) {
|
|
|
10239
10304
|
_ref2$componentList,
|
|
10240
10305
|
componentList,
|
|
10241
10306
|
params,
|
|
10307
|
+
queryComponents,
|
|
10242
10308
|
res,
|
|
10243
10309
|
data,
|
|
10244
10310
|
success,
|
|
@@ -10271,15 +10337,25 @@ var SubForm = function SubForm(props) {
|
|
|
10271
10337
|
}]
|
|
10272
10338
|
};
|
|
10273
10339
|
if (selectKey && inputValue) {
|
|
10274
|
-
|
|
10340
|
+
queryComponents = [{
|
|
10275
10341
|
key: 'flowStatus',
|
|
10276
10342
|
symbol: 'in',
|
|
10277
10343
|
value: flowStatus
|
|
10278
|
-
}, {
|
|
10279
|
-
key: selectKey,
|
|
10280
|
-
symbol: 'in',
|
|
10281
|
-
value: [inputValue]
|
|
10282
10344
|
}];
|
|
10345
|
+
if (['0qFEv9GEyd_returnLogisticsCode', 'jbCFrJV4m7_trajectoryCode'].includes(selectKey)) {
|
|
10346
|
+
queryComponents.push({
|
|
10347
|
+
key: selectKey,
|
|
10348
|
+
symbol: 'like',
|
|
10349
|
+
value: inputValue
|
|
10350
|
+
});
|
|
10351
|
+
} else {
|
|
10352
|
+
queryComponents.push({
|
|
10353
|
+
key: selectKey,
|
|
10354
|
+
symbol: 'in',
|
|
10355
|
+
value: [inputValue]
|
|
10356
|
+
});
|
|
10357
|
+
}
|
|
10358
|
+
params.queryComponents = queryComponents;
|
|
10283
10359
|
}
|
|
10284
10360
|
_context.next = 7;
|
|
10285
10361
|
return extendRequest('/qy/view/workOrderList', {
|
|
@@ -10475,7 +10551,21 @@ var SubForm = function SubForm(props) {
|
|
|
10475
10551
|
placement: "bottom",
|
|
10476
10552
|
visible: open,
|
|
10477
10553
|
onVisibleChange: handleOpenChange
|
|
10478
|
-
}, /*#__PURE__*/React.createElement(
|
|
10554
|
+
}, ['0qFEv9GEyd_returnLogisticsCompany', 'jbCFrJV4m7_trajectoryCompany'].includes(selectKey) ? /*#__PURE__*/React.createElement(ApaasLogistics, {
|
|
10555
|
+
value: undefined,
|
|
10556
|
+
onChange: function onChange(val) {
|
|
10557
|
+
onChangeInput(val);
|
|
10558
|
+
},
|
|
10559
|
+
placeholder: "\u8BF7\u9009\u62E9\u7269\u6D41\u516C\u53F8",
|
|
10560
|
+
showSearch: true,
|
|
10561
|
+
allowClear: true,
|
|
10562
|
+
style: {
|
|
10563
|
+
width: '180px'
|
|
10564
|
+
},
|
|
10565
|
+
filterOption: function filterOption(input, option) {
|
|
10566
|
+
return option.label.includes(input);
|
|
10567
|
+
}
|
|
10568
|
+
}) : /*#__PURE__*/React.createElement(Input, {
|
|
10479
10569
|
placeholder: "\u8F93\u5165\u5173\u952E\u8BCD\u67E5\u8BE2",
|
|
10480
10570
|
allowClear: true,
|
|
10481
10571
|
onChange: function onChange(e) {
|
|
@@ -22398,11 +22488,38 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
22398
22488
|
var handleChangeSelectedKeys = function handleChangeSelectedKeys(keys) {
|
|
22399
22489
|
onChangeSelectedKeys(keys.concat(unCurrentTradeOriginGoods));
|
|
22400
22490
|
};
|
|
22401
|
-
var rowSelection = {
|
|
22491
|
+
var rowSelection = _objectSpread2({
|
|
22402
22492
|
selectedRowKeys: selectedRowKeys,
|
|
22403
22493
|
fixed: true,
|
|
22404
22494
|
onChange: handleChangeSelectedKeys
|
|
22405
|
-
}
|
|
22495
|
+
}, type === 'JST_REISSUE_GOODS' ? {
|
|
22496
|
+
getCheckboxProps: function getCheckboxProps(record) {
|
|
22497
|
+
var allSelectedGoodsSukIdList = dataSource === null || dataSource === void 0 ? void 0 : dataSource.filter(function (item) {
|
|
22498
|
+
return selectedRowKeys === null || selectedRowKeys === void 0 ? void 0 : selectedRowKeys.includes(item === null || item === void 0 ? void 0 : item[uniqueKey]);
|
|
22499
|
+
}).map(function (item) {
|
|
22500
|
+
return item === null || item === void 0 ? void 0 : item.skuId;
|
|
22501
|
+
});
|
|
22502
|
+
var isDisabled = allSelectedGoodsSukIdList.includes(record === null || record === void 0 ? void 0 : record.skuId) && !selectedRowKeys.includes(record === null || record === void 0 ? void 0 : record[uniqueKey]);
|
|
22503
|
+
return {
|
|
22504
|
+
disabled: isDisabled
|
|
22505
|
+
};
|
|
22506
|
+
},
|
|
22507
|
+
renderCell: function renderCell(_, record, __, originNode) {
|
|
22508
|
+
var allSelectedGoodsSukIdList = dataSource === null || dataSource === void 0 ? void 0 : dataSource.filter(function (item) {
|
|
22509
|
+
return selectedRowKeys === null || selectedRowKeys === void 0 ? void 0 : selectedRowKeys.includes(item === null || item === void 0 ? void 0 : item[uniqueKey]);
|
|
22510
|
+
}).map(function (item) {
|
|
22511
|
+
return item === null || item === void 0 ? void 0 : item.skuId;
|
|
22512
|
+
});
|
|
22513
|
+
var isDisabled = allSelectedGoodsSukIdList.includes(record === null || record === void 0 ? void 0 : record.skuId) && !selectedRowKeys.includes(record === null || record === void 0 ? void 0 : record[uniqueKey]);
|
|
22514
|
+
if (isDisabled) {
|
|
22515
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
22516
|
+
title: "\u5DF2\u6DFB\u52A0\u5728\u7EC4\u4EF6\u4E2D\uFF0C\u76F8\u540C\u5546\u54C1\u4E0D\u80FD\u91CD\u590D\u9009\u62E9"
|
|
22517
|
+
}, originNode);
|
|
22518
|
+
} else {
|
|
22519
|
+
return originNode;
|
|
22520
|
+
}
|
|
22521
|
+
}
|
|
22522
|
+
} : {});
|
|
22406
22523
|
var buttonTextMapping = {
|
|
22407
22524
|
SKX_GOODS: '选择发货单商品',
|
|
22408
22525
|
SKX_RETURN_GOODS: '选择退货单商品'
|
|
@@ -26246,8 +26363,10 @@ var typeMap$2 = {
|
|
|
26246
26363
|
goodDetailsKey: 'items',
|
|
26247
26364
|
mergeIdenticalGoods: jstMergeIdenticalGoods,
|
|
26248
26365
|
uniqueKey: 'uuid',
|
|
26249
|
-
isShowSelectTradeGoods: true
|
|
26366
|
+
isShowSelectTradeGoods: true,
|
|
26367
|
+
isSelectTradeGoodsMerge: true //为true时,选择订单商品时,合并相同商品
|
|
26250
26368
|
},
|
|
26369
|
+
|
|
26251
26370
|
JST_RETURN_GOODS: {
|
|
26252
26371
|
compType: '退货',
|
|
26253
26372
|
key: 'jstReturnGoods',
|
|
@@ -26305,7 +26424,7 @@ var typeMap$2 = {
|
|
|
26305
26424
|
}
|
|
26306
26425
|
};
|
|
26307
26426
|
var PublicReissue = function PublicReissue(props) {
|
|
26308
|
-
var _typeMap$
|
|
26427
|
+
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;
|
|
26309
26428
|
var value = props.value,
|
|
26310
26429
|
onChange = props.onChange,
|
|
26311
26430
|
_props$reasonList = props.reasonList,
|
|
@@ -26422,7 +26541,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
26422
26541
|
}))));
|
|
26423
26542
|
};
|
|
26424
26543
|
var getGoodDetails = function getGoodDetails(_ref4) {
|
|
26425
|
-
var _typeMap$type18, _typeMap$type19, _value$typeMap$type$s6, _typeMap$type20, _typeMap$type21, _typeMap$type22;
|
|
26544
|
+
var _typeMap$type18, _typeMap$type19, _value$typeMap$type$s6, _typeMap$type20, _typeMap$type21, _typeMap$type22, _typeMap$type23, _typeMap$type24;
|
|
26426
26545
|
var mode = _ref4.mode,
|
|
26427
26546
|
sysOrderNo = _ref4.sysOrderNo,
|
|
26428
26547
|
_ref4$isAllOrders = _ref4.isAllOrders,
|
|
@@ -26450,7 +26569,8 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
26450
26569
|
var _order$typeMap$type$g;
|
|
26451
26570
|
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;
|
|
26452
26571
|
});
|
|
26453
|
-
|
|
26572
|
+
console.log(type, orders, (_typeMap$type21 = typeMap$2[type]) === null || _typeMap$type21 === void 0 ? void 0 : _typeMap$type21.updateGoodsHandle(orders, orderRest));
|
|
26573
|
+
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) : [];
|
|
26454
26574
|
var orderNo = systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orderNo;
|
|
26455
26575
|
var list = mode && !isAllOrders ? goodDetails.filter(function (goodItem) {
|
|
26456
26576
|
return !orderNo || goodItem[typeMap$2[type].outerOiIdKey] === orderNo;
|
|
@@ -26458,30 +26578,30 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
26458
26578
|
return list;
|
|
26459
26579
|
};
|
|
26460
26580
|
var changeGoodHandle = function changeGoodHandle(val) {
|
|
26461
|
-
var _typeMap$
|
|
26581
|
+
var _typeMap$type25;
|
|
26462
26582
|
var newValue = _objectSpread2({}, value);
|
|
26463
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26583
|
+
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 || [];
|
|
26464
26584
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
26465
26585
|
};
|
|
26466
26586
|
var changeSystemOrderHandle = function changeSystemOrderHandle(val) {
|
|
26467
|
-
var _typeMap$
|
|
26587
|
+
var _typeMap$type26, _typeMap$type27, _value$typeMap$type$t2, _typeMap$type32, _value$typeMap$type$t3, _typeMap$type34;
|
|
26468
26588
|
var newValue = _objectSpread2({}, value);
|
|
26469
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26470
|
-
if (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26471
|
-
var _value$typeMap$type$s7, _typeMap$
|
|
26472
|
-
var orders = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s7 = value[(_typeMap$
|
|
26589
|
+
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;
|
|
26590
|
+
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) {
|
|
26591
|
+
var _value$typeMap$type$s7, _typeMap$type28, _typeMap$type30, _typeMap$type31;
|
|
26592
|
+
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) || [];
|
|
26473
26593
|
var targetOrder = val && orders.find(function (oItem) {
|
|
26474
|
-
var _typeMap$
|
|
26475
|
-
return oItem[(_typeMap$
|
|
26594
|
+
var _typeMap$type29;
|
|
26595
|
+
return oItem[(_typeMap$type29 = typeMap$2[type]) === null || _typeMap$type29 === void 0 ? void 0 : _typeMap$type29.oIdKey] === val;
|
|
26476
26596
|
});
|
|
26477
|
-
newValue[(_typeMap$
|
|
26597
|
+
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];
|
|
26478
26598
|
}
|
|
26479
|
-
if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$
|
|
26480
|
-
var _typeMap$type31;
|
|
26481
|
-
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)] = [];
|
|
26482
|
-
} 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])) {
|
|
26599
|
+
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])) {
|
|
26483
26600
|
var _typeMap$type33;
|
|
26484
|
-
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)] =
|
|
26601
|
+
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)] = [];
|
|
26602
|
+
} 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])) {
|
|
26603
|
+
var _typeMap$type35;
|
|
26604
|
+
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({
|
|
26485
26605
|
mode: isStrict,
|
|
26486
26606
|
sysOrderNo: val
|
|
26487
26607
|
});
|
|
@@ -26489,27 +26609,27 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
26489
26609
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue, 'systemOrder');
|
|
26490
26610
|
};
|
|
26491
26611
|
//显示选择商品按钮
|
|
26492
|
-
var showChangeBtn = !!(value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
26612
|
+
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]);
|
|
26493
26613
|
var selectedGoodsChange = useCallback(function (skuList) {
|
|
26494
|
-
var _typeMap$
|
|
26614
|
+
var _typeMap$type37, _typeMap$type38, _typeMap$type39, _uniqBy, _typeMap$type40;
|
|
26495
26615
|
var newValue = _objectSpread2({}, value);
|
|
26496
26616
|
// 原订单商品
|
|
26497
26617
|
var originTradeGoodList = getGoodDetails({
|
|
26498
26618
|
mode: isStrict,
|
|
26499
|
-
isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26619
|
+
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
|
|
26500
26620
|
}) || [];
|
|
26501
26621
|
// 当前选中的所有商品【包含了原订单+商品库】
|
|
26502
|
-
var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26503
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26504
|
-
var _typeMap$
|
|
26505
|
-
return skuList.includes(item[(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26622
|
+
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)]) || [];
|
|
26623
|
+
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 = 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) {
|
|
26624
|
+
var _typeMap$type41;
|
|
26625
|
+
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']);
|
|
26506
26626
|
});
|
|
26507
26627
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
26508
|
-
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26628
|
+
}, [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]);
|
|
26509
26629
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
|
|
26510
26630
|
gutter: 8,
|
|
26511
26631
|
wrap: true,
|
|
26512
|
-
id: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26632
|
+
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())
|
|
26513
26633
|
}, /*#__PURE__*/React.createElement(Col, {
|
|
26514
26634
|
className: "gutter-row",
|
|
26515
26635
|
xs: {
|
|
@@ -26525,12 +26645,12 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
26525
26645
|
},
|
|
26526
26646
|
disabled: disabled,
|
|
26527
26647
|
allowClear: false,
|
|
26528
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26648
|
+
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)],
|
|
26529
26649
|
onChange: function onChange(val) {
|
|
26530
26650
|
return changeSystemOrderHandle(val);
|
|
26531
26651
|
},
|
|
26532
|
-
placeholder: "\u9009\u62E9".concat((typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26533
|
-
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s8 = value[(_typeMap$
|
|
26652
|
+
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")
|
|
26653
|
+
}, ((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) {
|
|
26534
26654
|
return /*#__PURE__*/React.createElement(Select.Option, {
|
|
26535
26655
|
key: item[typeMap$2[type].oIdKey],
|
|
26536
26656
|
value: item[typeMap$2[type].oIdKey],
|
|
@@ -26552,11 +26672,11 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
26552
26672
|
disabled: isSettingConfig ? !isSettingConfig : disabled,
|
|
26553
26673
|
allowClear: false,
|
|
26554
26674
|
options: reasonList,
|
|
26555
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26675
|
+
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)],
|
|
26556
26676
|
onChange: function onChange(val) {
|
|
26557
26677
|
return changeTypeHandle(val);
|
|
26558
26678
|
}
|
|
26559
|
-
})), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26679
|
+
})), (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.createElement(Col, {
|
|
26560
26680
|
className: "gutter-row",
|
|
26561
26681
|
xs: {
|
|
26562
26682
|
span: 11
|
|
@@ -26565,7 +26685,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
26565
26685
|
span: 6
|
|
26566
26686
|
}
|
|
26567
26687
|
}, /*#__PURE__*/React.createElement(Input, {
|
|
26568
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26688
|
+
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)],
|
|
26569
26689
|
disabled: disabled,
|
|
26570
26690
|
readOnly: true
|
|
26571
26691
|
}))), /*#__PURE__*/React.createElement(GoodItem$1, _objectSpread2(_objectSpread2({
|
|
@@ -26576,25 +26696,25 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
26576
26696
|
canUpdateNumber: showChangeBtn,
|
|
26577
26697
|
hasSelectedSystemOrder: showChangeBtn,
|
|
26578
26698
|
// showChangeBtn={showChangeBtn || typeMap?.[type]?.isShowSelectTradeGoods}
|
|
26579
|
-
alwaysShowChooseErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26699
|
+
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,
|
|
26580
26700
|
// showErpGoodsBtn={typeMap?.[type]?.showErpGoodsBtn}
|
|
26581
26701
|
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
26582
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26702
|
+
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)],
|
|
26583
26703
|
onChange: function onChange(val) {
|
|
26584
26704
|
return changeGoodHandle(val);
|
|
26585
26705
|
},
|
|
26586
26706
|
onModeChange: handleModeChange,
|
|
26587
26707
|
showModeBtn: false,
|
|
26588
26708
|
isStrict: isStrict,
|
|
26589
|
-
isShowSelectTradeGoods: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26590
|
-
systemOrders: value === null || value === void 0 ? void 0 : (_value$typeMap$type$s9 = value[(_typeMap$
|
|
26591
|
-
selectedSystemOrders: showChangeBtn ? [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26709
|
+
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,
|
|
26710
|
+
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,
|
|
26711
|
+
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)]] : [],
|
|
26592
26712
|
tradeGoods: {
|
|
26593
26713
|
originDataSource: getGoodDetails({
|
|
26594
26714
|
mode: isStrict,
|
|
26595
|
-
isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26715
|
+
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
|
|
26596
26716
|
}),
|
|
26597
|
-
uniqueKey: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26717
|
+
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',
|
|
26598
26718
|
selectedGoodsChange: selectedGoodsChange
|
|
26599
26719
|
}
|
|
26600
26720
|
})));
|
|
@@ -28894,4 +29014,4 @@ var SYSTEM_ORDER_COLUMNS_MAP = {
|
|
|
28894
29014
|
WDT_RETURN_BILL_NO: WDT_RETURN_BILL_NO_CONFIG.columns
|
|
28895
29015
|
};
|
|
28896
29016
|
|
|
28897
|
-
export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, ApaasImage, ApaasInput, ApaasInputNumber, ApaasLogistics, ApaasMultipleSelect, ApaasPosting, ApaasRadio, ApaasRate, ApaasSelect, ApaasSlider, ApaasTextArea, ApaasUpload, ApaasUploadAsync$1 as ApaasUploadAsync, ApaasUploadFile, index as ApaasUploadProAsync, AsyncSelect, bsE3Reissue as BsE3Reissue, BsExchange, BsGoods, BsReissue, BsReturnGoods as BsReturn, index$2 as BsSystemOrder, BuyerNick, CalculationInput, ChooseBaby, CommonExchangeGoods, CommonGoods, CommonSystemOrder$1 as CommonMultiStatus, CommonReturnGoods, CommonStatus, CommonSystemOrder, CopyTextIcon, ExpressLogistics, Goods, index$3 as GoodsTable, GyReissue, GyReturnGoods as GyReturn, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, KmVideo, LogisticsInterception, LogisticsMoreInterception, LogisticsMoreTrajectory, LogisticsTrajectory, MsgStatus, OrderSubForm, utils as OrderSubFormUtils, ParseLogistics, Payment, PublicReissue, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, SYSTEM_ORDER_COLUMNS_MAP, ShopNameSelect as ShopName, SkxGoods, IdInputSelect as SkxIdInputSelect, Status, SubForm, Supplier, TBGoodId, TBGoodSerial, TradeId, WdtGoodList, wdtReissue as WdtReissue, WlnGoods, columnsBaseInfoMap, erpColumnsMap, erpFormValidator, index$1 as erpModalColumnsMap, getColumns$4 as getGyColumns, getColumns$5 as getJstColumns, getColumns$7 as getJyColumns, getColumns$6 as getKmColumns, getColumns$8 as getSkxColumns, getColumns$2 as getWdtColumns, getColumns$3 as getWlnColumns, orderSubFormConstants, renderMap };
|
|
29017
|
+
export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, ApaasImage, ApaasInput, ApaasInputNumber, ApaasLogistics, ApaasMultipleSelect, ApaasPosting, ApaasRadio, ApaasRate, ApaasSelect, ApaasSlider, ApaasTextArea, ApaasUpload, ApaasUploadAsync$1 as ApaasUploadAsync, ApaasUploadFile, index as ApaasUploadProAsync, AsyncSelect, bsE3Reissue as BsE3Reissue, BsExchange, BsGoods, BsReissue, BsReturnGoods as BsReturn, index$2 as BsSystemOrder, BuyerNick, CalculationInput, ChooseBaby, CommonExchangeGoods, CommonGoods, CommonSystemOrder$1 as CommonMultiStatus, CommonReturnGoods, CommonStatus, CommonSystemOrder, CopyTextIcon, ExpressLogistics, Goods, index$3 as GoodsTable, GyReissue, GyReturnGoods as GyReturn, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, KmVideo, LogisticsInterception, LogisticsMoreInterception, LogisticsMoreTrajectory, LogisticsTrajectory, MsgStatus, OrderSubForm, utils as OrderSubFormUtils, ParseLogistics, Payment, PublicReissue, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, SYSTEM_ORDER_COLUMNS_MAP, ShopNameSelect as ShopName, SkxGoods, IdInputSelect as SkxIdInputSelect, Status, SubForm, Supplier, TBGoodId, TBGoodSerial, TradeId, WdtGoodList, wdtReissue as WdtReissue, WlnGoods, columnsBaseInfoMap, erpColumnsMap, erpFormValidator, index$1 as erpModalColumnsMap, getColumns$4 as getGyColumns, getColumns$5 as getJstColumns, getColumns$7 as getJyColumns, getColumns$6 as getKmColumns, getColumns$8 as getSkxColumns, getColumns$2 as getWdtColumns, getColumns$3 as getWlnColumns, orderSubFormConstants, renderMap, renderSplitMap };
|