@kmkf-fe-packages/basic-components 2.2.39-beta.3 → 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 +184 -94
- package/dist/index.js +184 -93
- 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 +2 -2
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) {
|
|
@@ -28924,4 +29014,4 @@ var SYSTEM_ORDER_COLUMNS_MAP = {
|
|
|
28924
29014
|
WDT_RETURN_BILL_NO: WDT_RETURN_BILL_NO_CONFIG.columns
|
|
28925
29015
|
};
|
|
28926
29016
|
|
|
28927
|
-
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 };
|
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) {
|
|
@@ -29026,3 +29116,4 @@ exports.getWdtColumns = getColumns$2;
|
|
|
29026
29116
|
exports.getWlnColumns = getColumns$3;
|
|
29027
29117
|
exports.orderSubFormConstants = orderSubFormConstants;
|
|
29028
29118
|
exports.renderMap = renderMap;
|
|
29119
|
+
exports.renderSplitMap = renderSplitMap;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { renderMap } from './render';
|
|
2
|
+
import { renderMap, renderSplitMap } from './render';
|
|
3
3
|
type subConfigType = {
|
|
4
4
|
name: string;
|
|
5
5
|
key: string;
|
|
@@ -31,4 +31,4 @@ type SubFormProps = {
|
|
|
31
31
|
};
|
|
32
32
|
declare const SubForm: (props: SubFormProps) => React.JSX.Element;
|
|
33
33
|
export default SubForm;
|
|
34
|
-
export { renderMap };
|
|
34
|
+
export { renderMap, renderSplitMap };
|
|
@@ -9,6 +9,7 @@ export declare const PictureRender: ({ value, width, }: {
|
|
|
9
9
|
export declare const RadioRender: ({ value }: {
|
|
10
10
|
value: any;
|
|
11
11
|
}) => React.JSX.Element;
|
|
12
|
+
export declare const LogisticsCompanyRender: (value: string) => string | number;
|
|
12
13
|
export declare const CheckboxRender: ({ value }: {
|
|
13
14
|
value: any;
|
|
14
15
|
}) => any;
|
|
@@ -16,7 +17,10 @@ export declare const MultipleSelectRender: ({ value }: {
|
|
|
16
17
|
value: any;
|
|
17
18
|
}) => any;
|
|
18
19
|
export declare const renderMap: Record<string, (props: any, platform?: string) => React.ReactNode>;
|
|
20
|
+
export declare const renderSplitMap: Record<string, (props: any) => React.ReactNode>;
|
|
19
21
|
export declare const EditPictureRender: ({ val, index, t, updateHandle, disabled, hostUrl, platform, }: any) => React.JSX.Element;
|
|
20
22
|
export declare const EditFileRender: ({ val, index, t, updateHandle, disabled, hostUrl, platform, }: any) => React.JSX.Element;
|
|
23
|
+
export declare const EditLogisticsCompanyRender: ({ val, index, t, updateHandle, disabled, }: any) => React.JSX.Element;
|
|
21
24
|
export declare const EditRenderMap: Record<string, (props: any) => React.ReactNode>;
|
|
25
|
+
export declare const EditSplitRenderMap: Record<string, (props: any) => React.ReactNode>;
|
|
22
26
|
export {};
|
package/dist/src/index.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ export { default as ApaasAddress } from './apaas/ApaasAddress';
|
|
|
18
18
|
export { default as ApaasPosting } from './apaas/ApaasPosting';
|
|
19
19
|
export { default as ApaasLogistics } from './apaas/ApaasLogistics';
|
|
20
20
|
export { default as ApaasHoc } from './apaas/hoc/withFormItem';
|
|
21
|
-
export { default as SubForm, renderMap } from './apaas/SubForm';
|
|
21
|
+
export { default as SubForm, renderMap, renderSplitMap } from './apaas/SubForm';
|
|
22
22
|
export { default as CopyTextIcon } from './apaas/CopyTextIcon';
|
|
23
23
|
export { default as BuyerNick } from './business/BuyerNick';
|
|
24
24
|
export { default as TradeId } from './business/TradeId';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/basic-components",
|
|
3
|
-
"version": "2.2.39-beta.
|
|
3
|
+
"version": "2.2.39-beta.4",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"homepage": "",
|
|
6
6
|
"license": "ISC",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"publishConfig": {
|
|
67
67
|
"access": "public"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "584cc47ad0fddeef4505105b8245b29e02203353"
|
|
70
70
|
}
|