@kmkf-fe-packages/basic-components 2.3.1 → 2.3.2
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 +186 -52
- package/dist/index.js +186 -51
- package/dist/src/apaas/SubForm/index.d.ts +2 -2
- package/dist/src/apaas/SubForm/render.d.ts +3 -0
- package/dist/src/index.d.ts +1 -1
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -7995,13 +7995,14 @@ function ApaasPosting(props) {
|
|
|
7995
7995
|
});
|
|
7996
7996
|
}
|
|
7997
7997
|
|
|
7998
|
-
var _excluded$b = ["value", "onChange", "platformType", "type"];
|
|
7998
|
+
var _excluded$b = ["value", "onChange", "platformType", "type", "placement"];
|
|
7999
7999
|
function ApaasLogistics(props) {
|
|
8000
8000
|
var value = props.value,
|
|
8001
8001
|
onChange = props.onChange,
|
|
8002
8002
|
platformType = props.platformType,
|
|
8003
8003
|
_props$type = props.type,
|
|
8004
8004
|
type = _props$type === void 0 ? 'select' : _props$type,
|
|
8005
|
+
placement = props.placement,
|
|
8005
8006
|
other = _objectWithoutProperties(props, _excluded$b);
|
|
8006
8007
|
var _useState = useState([]),
|
|
8007
8008
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -8039,12 +8040,13 @@ function ApaasLogistics(props) {
|
|
|
8039
8040
|
return type === 'input' ? /*#__PURE__*/React.createElement(Input, _objectSpread2(_objectSpread2({}, other), {}, {
|
|
8040
8041
|
value: value,
|
|
8041
8042
|
onChange: handleInputChange
|
|
8042
|
-
})) : /*#__PURE__*/React.createElement(Select, _objectSpread2(
|
|
8043
|
+
})) : /*#__PURE__*/React.createElement(Select, _objectSpread2({
|
|
8043
8044
|
value: value,
|
|
8044
8045
|
onChange: onChange,
|
|
8045
8046
|
options: option,
|
|
8046
|
-
virtual: true
|
|
8047
|
-
|
|
8047
|
+
virtual: true,
|
|
8048
|
+
placement: placement
|
|
8049
|
+
}, other));
|
|
8048
8050
|
}
|
|
8049
8051
|
|
|
8050
8052
|
var _excluded$c = ["label", "name", "extra", "required", "rules", "initialValue"];
|
|
@@ -8454,7 +8456,10 @@ var processLogisticsTrajectory = function processLogisticsTrajectory(getValue) {
|
|
|
8454
8456
|
var map = subFields.reduce(function (cur, nxt) {
|
|
8455
8457
|
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
8458
|
}, {});
|
|
8457
|
-
|
|
8459
|
+
var mapChild = subFields.reduce(function (cur, nxt) {
|
|
8460
|
+
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))));
|
|
8461
|
+
}, {});
|
|
8462
|
+
return _objectSpread2(_defineProperty({}, nex.uniqueKey, map), mapChild);
|
|
8458
8463
|
};
|
|
8459
8464
|
};
|
|
8460
8465
|
var processLogisticsTrajectoryMore = function processLogisticsTrajectoryMore(getValue) {
|
|
@@ -8478,12 +8483,12 @@ var processItemSelectThird = function processItemSelectThird(getValue) {
|
|
|
8478
8483
|
};
|
|
8479
8484
|
var processEnterPrisePayment = function processEnterPrisePayment(getValue) {
|
|
8480
8485
|
return function (nex, config) {
|
|
8481
|
-
var
|
|
8486
|
+
var _ref33;
|
|
8482
8487
|
var subFields = ['enterprisePaymentAlipayNick', 'enterprisePaymentAlipayNo', 'enterprisePaymentBuyerNick', 'enterprisePaymentBuyerOpenUid', 'enterprisePaymentRefundFee', 'enterprisePaymentStatus', 'enterprisePaymentTid'];
|
|
8483
8488
|
var map = subFields.reduce(function (cur, nxt) {
|
|
8484
8489
|
return _objectSpread2(_objectSpread2({}, cur), {}, _defineProperty({}, nxt, getValue("".concat(nex.uniqueKey, "_").concat(nxt))));
|
|
8485
8490
|
}, {});
|
|
8486
|
-
return
|
|
8491
|
+
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
8492
|
};
|
|
8488
8493
|
};
|
|
8489
8494
|
var processJstLogistics = function processJstLogistics(getValue) {
|
|
@@ -9246,14 +9251,14 @@ var processJstReturnGoods = function processJstReturnGoods(templateColumns) {
|
|
|
9246
9251
|
};
|
|
9247
9252
|
var processLabel = function processLabel(getValue) {
|
|
9248
9253
|
return function (nex, config) {
|
|
9249
|
-
var
|
|
9250
|
-
return
|
|
9254
|
+
var _ref73;
|
|
9255
|
+
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
9256
|
};
|
|
9252
9257
|
};
|
|
9253
9258
|
var processMemberLevel = function processMemberLevel(getValue) {
|
|
9254
9259
|
return function (nex, config) {
|
|
9255
|
-
var
|
|
9256
|
-
return
|
|
9260
|
+
var _ref74;
|
|
9261
|
+
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
9262
|
};
|
|
9258
9263
|
};
|
|
9259
9264
|
var processAfterSalesOrderId = function processAfterSalesOrderId(getValue) {
|
|
@@ -9548,7 +9553,6 @@ var FileRender = function FileRender(_ref) {
|
|
|
9548
9553
|
cursor: 'pointer'
|
|
9549
9554
|
},
|
|
9550
9555
|
onClick: function onClick(e) {
|
|
9551
|
-
console.log('onPreview');
|
|
9552
9556
|
e.preventDefault();
|
|
9553
9557
|
onPreview(item);
|
|
9554
9558
|
},
|
|
@@ -9644,6 +9648,9 @@ var PictureRender = function PictureRender(_ref2) {
|
|
|
9644
9648
|
}));
|
|
9645
9649
|
}));
|
|
9646
9650
|
};
|
|
9651
|
+
var LogisticsCompanyRender = function LogisticsCompanyRender(value) {
|
|
9652
|
+
return ExpressData.getInstance().getExpressNameByCode(value) || value;
|
|
9653
|
+
};
|
|
9647
9654
|
var MultipleSelectRender = function MultipleSelectRender(_ref5) {
|
|
9648
9655
|
var _ref5$value = _ref5.value,
|
|
9649
9656
|
value = _ref5$value === void 0 ? [] : _ref5$value;
|
|
@@ -9678,6 +9685,16 @@ var renderMap = {
|
|
|
9678
9685
|
});
|
|
9679
9686
|
}
|
|
9680
9687
|
};
|
|
9688
|
+
var renderSplitMap = {
|
|
9689
|
+
//物流轨迹-物流公司
|
|
9690
|
+
jbCFrJV4m7_trajectoryCompany: function jbCFrJV4m7_trajectoryCompany(value) {
|
|
9691
|
+
return LogisticsCompanyRender(value);
|
|
9692
|
+
},
|
|
9693
|
+
//退货物流-物流公司
|
|
9694
|
+
'0qFEv9GEyd_returnLogisticsCompany': function qFEv9GEyd_returnLogisticsCompany(value) {
|
|
9695
|
+
return LogisticsCompanyRender(value);
|
|
9696
|
+
}
|
|
9697
|
+
};
|
|
9681
9698
|
var EditPictureRender = function EditPictureRender(_ref6) {
|
|
9682
9699
|
var _ref6$val = _ref6.val,
|
|
9683
9700
|
val = _ref6$val === void 0 ? [] : _ref6$val,
|
|
@@ -9773,7 +9790,6 @@ var EditFileRender = function EditFileRender(_ref7) {
|
|
|
9773
9790
|
var EditRenderMap = {
|
|
9774
9791
|
INPUT: function INPUT(_ref8) {
|
|
9775
9792
|
var val = _ref8.val,
|
|
9776
|
-
record = _ref8.record,
|
|
9777
9793
|
index = _ref8.index,
|
|
9778
9794
|
t = _ref8.t,
|
|
9779
9795
|
updateHandle = _ref8.updateHandle,
|
|
@@ -9802,7 +9818,6 @@ var EditRenderMap = {
|
|
|
9802
9818
|
},
|
|
9803
9819
|
TEXTAREA: function TEXTAREA(_ref9) {
|
|
9804
9820
|
var val = _ref9.val,
|
|
9805
|
-
record = _ref9.record,
|
|
9806
9821
|
index = _ref9.index,
|
|
9807
9822
|
t = _ref9.t,
|
|
9808
9823
|
updateHandle = _ref9.updateHandle,
|
|
@@ -9831,7 +9846,6 @@ var EditRenderMap = {
|
|
|
9831
9846
|
},
|
|
9832
9847
|
PICTURE: function PICTURE(_ref10) {
|
|
9833
9848
|
var val = _ref10.val,
|
|
9834
|
-
record = _ref10.record,
|
|
9835
9849
|
index = _ref10.index,
|
|
9836
9850
|
t = _ref10.t,
|
|
9837
9851
|
updateHandle = _ref10.updateHandle,
|
|
@@ -9849,7 +9863,6 @@ var EditRenderMap = {
|
|
|
9849
9863
|
},
|
|
9850
9864
|
FILE: function FILE(_ref11) {
|
|
9851
9865
|
var val = _ref11.val,
|
|
9852
|
-
record = _ref11.record,
|
|
9853
9866
|
index = _ref11.index,
|
|
9854
9867
|
t = _ref11.t,
|
|
9855
9868
|
updateHandle = _ref11.updateHandle,
|
|
@@ -9867,7 +9880,6 @@ var EditRenderMap = {
|
|
|
9867
9880
|
},
|
|
9868
9881
|
RADIO: function RADIO(_ref12) {
|
|
9869
9882
|
var val = _ref12.val,
|
|
9870
|
-
record = _ref12.record,
|
|
9871
9883
|
index = _ref12.index,
|
|
9872
9884
|
t = _ref12.t,
|
|
9873
9885
|
updateHandle = _ref12.updateHandle,
|
|
@@ -9890,7 +9902,6 @@ var EditRenderMap = {
|
|
|
9890
9902
|
},
|
|
9891
9903
|
SELECT: function SELECT(_ref13) {
|
|
9892
9904
|
var val = _ref13.val,
|
|
9893
|
-
record = _ref13.record,
|
|
9894
9905
|
index = _ref13.index,
|
|
9895
9906
|
t = _ref13.t,
|
|
9896
9907
|
updateHandle = _ref13.updateHandle,
|
|
@@ -9913,7 +9924,6 @@ var EditRenderMap = {
|
|
|
9913
9924
|
},
|
|
9914
9925
|
CHECKBOX: function CHECKBOX(_ref14) {
|
|
9915
9926
|
var val = _ref14.val,
|
|
9916
|
-
record = _ref14.record,
|
|
9917
9927
|
index = _ref14.index,
|
|
9918
9928
|
t = _ref14.t,
|
|
9919
9929
|
updateHandle = _ref14.updateHandle,
|
|
@@ -9935,7 +9945,6 @@ var EditRenderMap = {
|
|
|
9935
9945
|
},
|
|
9936
9946
|
BASIC_MULT_SELECT: function BASIC_MULT_SELECT(_ref15) {
|
|
9937
9947
|
var val = _ref15.val,
|
|
9938
|
-
record = _ref15.record,
|
|
9939
9948
|
index = _ref15.index,
|
|
9940
9949
|
t = _ref15.t,
|
|
9941
9950
|
updateHandle = _ref15.updateHandle,
|
|
@@ -9954,6 +9963,75 @@ var EditRenderMap = {
|
|
|
9954
9963
|
return updateHandle(e, index, t.key);
|
|
9955
9964
|
}
|
|
9956
9965
|
}));
|
|
9966
|
+
},
|
|
9967
|
+
DEFAULT: function DEFAULT(_ref16) {
|
|
9968
|
+
var val = _ref16.val,
|
|
9969
|
+
index = _ref16.index,
|
|
9970
|
+
t = _ref16.t,
|
|
9971
|
+
updateHandle = _ref16.updateHandle,
|
|
9972
|
+
disabled = _ref16.disabled;
|
|
9973
|
+
return !t.isEdit && !disabled ? /*#__PURE__*/React.createElement(Input, {
|
|
9974
|
+
allowClear: true,
|
|
9975
|
+
style: {
|
|
9976
|
+
width: '100%'
|
|
9977
|
+
},
|
|
9978
|
+
value: val,
|
|
9979
|
+
onChange: function onChange(e) {
|
|
9980
|
+
var _e$target3;
|
|
9981
|
+
return updateHandle(e === null || e === void 0 ? void 0 : (_e$target3 = e.target) === null || _e$target3 === void 0 ? void 0 : _e$target3.value, index, t.key);
|
|
9982
|
+
}
|
|
9983
|
+
}) : /*#__PURE__*/React.createElement("div", null, val);
|
|
9984
|
+
}
|
|
9985
|
+
};
|
|
9986
|
+
var EditSplitRenderMap = {
|
|
9987
|
+
jbCFrJV4m7_trajectoryCompany: function jbCFrJV4m7_trajectoryCompany(_ref17) {
|
|
9988
|
+
var val = _ref17.val,
|
|
9989
|
+
index = _ref17.index,
|
|
9990
|
+
t = _ref17.t,
|
|
9991
|
+
updateHandle = _ref17.updateHandle,
|
|
9992
|
+
disabled = _ref17.disabled;
|
|
9993
|
+
return /*#__PURE__*/React.createElement(ApaasLogistics, {
|
|
9994
|
+
getPopupContainer: function getPopupContainer() {
|
|
9995
|
+
return document.getElementById('subform');
|
|
9996
|
+
},
|
|
9997
|
+
value: val,
|
|
9998
|
+
allowClear: true,
|
|
9999
|
+
showSearch: true,
|
|
10000
|
+
onChange: function onChange(e) {
|
|
10001
|
+
return updateHandle(e, index, t.key);
|
|
10002
|
+
},
|
|
10003
|
+
disabled: t.isEdit || disabled,
|
|
10004
|
+
filterOption: function filterOption(input, option) {
|
|
10005
|
+
return option.label.includes(input);
|
|
10006
|
+
},
|
|
10007
|
+
placement: "topLeft",
|
|
10008
|
+
listHeight: 120
|
|
10009
|
+
});
|
|
10010
|
+
},
|
|
10011
|
+
//退货物流-物流公司
|
|
10012
|
+
'0qFEv9GEyd_returnLogisticsCompany': function qFEv9GEyd_returnLogisticsCompany(_ref18) {
|
|
10013
|
+
var val = _ref18.val,
|
|
10014
|
+
index = _ref18.index,
|
|
10015
|
+
t = _ref18.t,
|
|
10016
|
+
updateHandle = _ref18.updateHandle,
|
|
10017
|
+
disabled = _ref18.disabled;
|
|
10018
|
+
return /*#__PURE__*/React.createElement(ApaasLogistics, {
|
|
10019
|
+
getPopupContainer: function getPopupContainer() {
|
|
10020
|
+
return document.getElementById('subform');
|
|
10021
|
+
},
|
|
10022
|
+
value: val,
|
|
10023
|
+
allowClear: true,
|
|
10024
|
+
showSearch: true,
|
|
10025
|
+
onChange: function onChange(e) {
|
|
10026
|
+
return updateHandle(e, index, t.key);
|
|
10027
|
+
},
|
|
10028
|
+
disabled: t.isEdit || disabled,
|
|
10029
|
+
filterOption: function filterOption(input, option) {
|
|
10030
|
+
return option.label.includes(input);
|
|
10031
|
+
},
|
|
10032
|
+
placement: "topLeft",
|
|
10033
|
+
listHeight: 120
|
|
10034
|
+
});
|
|
9957
10035
|
}
|
|
9958
10036
|
};
|
|
9959
10037
|
|
|
@@ -9981,6 +10059,7 @@ function HoverTableRowDeleteIcon(_ref) {
|
|
|
9981
10059
|
}
|
|
9982
10060
|
|
|
9983
10061
|
var WidgetMap = {
|
|
10062
|
+
TRADE_ID_INPUT: 'tradeId',
|
|
9984
10063
|
INPUT: 'input',
|
|
9985
10064
|
TEXTAREA: 'textarea',
|
|
9986
10065
|
PICTURE: 'picture',
|
|
@@ -10083,7 +10162,6 @@ var SubForm = function SubForm(props) {
|
|
|
10083
10162
|
return deleteHandle(record.uuid);
|
|
10084
10163
|
}
|
|
10085
10164
|
});
|
|
10086
|
-
// return <div style={{ width: 25 }}>{index + 1}</div>;
|
|
10087
10165
|
}
|
|
10088
10166
|
}].concat(_toConsumableArray(newTableHeader.map(function (t) {
|
|
10089
10167
|
return {
|
|
@@ -10096,27 +10174,41 @@ var SubForm = function SubForm(props) {
|
|
|
10096
10174
|
ellipsis: true,
|
|
10097
10175
|
width: t.width,
|
|
10098
10176
|
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
|
-
|
|
10177
|
+
if (EditRenderMap[t.workOrderComponentType]) {
|
|
10178
|
+
return EditRenderMap[t.workOrderComponentType]({
|
|
10179
|
+
val: val,
|
|
10180
|
+
record: record,
|
|
10181
|
+
index: index,
|
|
10182
|
+
t: t,
|
|
10183
|
+
updateHandle: updateHandle,
|
|
10184
|
+
disabled: disabled,
|
|
10185
|
+
componentDto: componentDtoList.find(function (item) {
|
|
10186
|
+
return item.uniqueKey === t.key;
|
|
10187
|
+
}),
|
|
10188
|
+
platform: platform
|
|
10189
|
+
});
|
|
10190
|
+
} else if (EditSplitRenderMap[t.key]) {
|
|
10191
|
+
return EditSplitRenderMap[t.key]({
|
|
10192
|
+
val: val,
|
|
10193
|
+
index: index,
|
|
10194
|
+
t: t,
|
|
10195
|
+
updateHandle: updateHandle,
|
|
10196
|
+
disabled: disabled
|
|
10197
|
+
});
|
|
10198
|
+
} else {
|
|
10199
|
+
return EditRenderMap['DEFAULT']({
|
|
10200
|
+
val: val,
|
|
10201
|
+
record: record,
|
|
10202
|
+
index: index,
|
|
10203
|
+
t: t,
|
|
10204
|
+
updateHandle: updateHandle,
|
|
10205
|
+
disabled: disabled,
|
|
10206
|
+
componentDto: componentDtoList.find(function (item) {
|
|
10207
|
+
return item.uniqueKey === t.key;
|
|
10208
|
+
}),
|
|
10209
|
+
platform: platform
|
|
10210
|
+
});
|
|
10211
|
+
}
|
|
10120
10212
|
}
|
|
10121
10213
|
};
|
|
10122
10214
|
})), [disabled ? {} : {
|
|
@@ -10166,6 +10258,10 @@ var SubForm = function SubForm(props) {
|
|
|
10166
10258
|
item.render = function (val) {
|
|
10167
10259
|
return renderMap[t.workOrderComponentType](val, platform);
|
|
10168
10260
|
};
|
|
10261
|
+
} else if (renderSplitMap[t.key]) {
|
|
10262
|
+
item.render = function (val) {
|
|
10263
|
+
return renderSplitMap[t.key](val);
|
|
10264
|
+
};
|
|
10169
10265
|
}
|
|
10170
10266
|
return item;
|
|
10171
10267
|
})));
|
|
@@ -10180,7 +10276,11 @@ var SubForm = function SubForm(props) {
|
|
|
10180
10276
|
if (['PICTURE', 'FILE', 'BASIC_MULT_SELECT', 'CHECKBOX'].includes(next.workOrderComponentType)) {
|
|
10181
10277
|
item.defaultValue = [];
|
|
10182
10278
|
}
|
|
10183
|
-
|
|
10279
|
+
if (!['LOGISTICS_TRAJECTORY', 'RETURN_LOGISTICS_SELECT'].includes(next.workOrderComponentType)) {
|
|
10280
|
+
prv["".concat(next.key, "_").concat(WidgetMap[next.workOrderComponentType])] = item;
|
|
10281
|
+
} else {
|
|
10282
|
+
prv["".concat(next.key)] = item;
|
|
10283
|
+
}
|
|
10184
10284
|
return prv;
|
|
10185
10285
|
}, {});
|
|
10186
10286
|
}, [newTableHeader]);
|
|
@@ -10197,7 +10297,7 @@ var SubForm = function SubForm(props) {
|
|
|
10197
10297
|
}).map(function (item) {
|
|
10198
10298
|
return {
|
|
10199
10299
|
label: item.name,
|
|
10200
|
-
value: "".concat(item.key, "_").concat(WidgetMap[item.workOrderComponentType])
|
|
10300
|
+
value: WidgetMap[item.workOrderComponentType] ? "".concat(item.key, "_").concat(WidgetMap[item.workOrderComponentType]) : item.key
|
|
10201
10301
|
};
|
|
10202
10302
|
});
|
|
10203
10303
|
setSelectKey(options === null || options === void 0 ? void 0 : (_options$ = options[0]) === null || _options$ === void 0 ? void 0 : _options$.value);
|
|
@@ -10239,6 +10339,7 @@ var SubForm = function SubForm(props) {
|
|
|
10239
10339
|
_ref2$componentList,
|
|
10240
10340
|
componentList,
|
|
10241
10341
|
params,
|
|
10342
|
+
queryComponents,
|
|
10242
10343
|
res,
|
|
10243
10344
|
data,
|
|
10244
10345
|
success,
|
|
@@ -10271,15 +10372,25 @@ var SubForm = function SubForm(props) {
|
|
|
10271
10372
|
}]
|
|
10272
10373
|
};
|
|
10273
10374
|
if (selectKey && inputValue) {
|
|
10274
|
-
|
|
10375
|
+
queryComponents = [{
|
|
10275
10376
|
key: 'flowStatus',
|
|
10276
10377
|
symbol: 'in',
|
|
10277
10378
|
value: flowStatus
|
|
10278
|
-
}, {
|
|
10279
|
-
key: selectKey,
|
|
10280
|
-
symbol: 'in',
|
|
10281
|
-
value: [inputValue]
|
|
10282
10379
|
}];
|
|
10380
|
+
if (['0qFEv9GEyd_returnLogisticsCode', 'jbCFrJV4m7_trajectoryCode'].includes(selectKey)) {
|
|
10381
|
+
queryComponents.push({
|
|
10382
|
+
key: selectKey,
|
|
10383
|
+
symbol: 'like',
|
|
10384
|
+
value: inputValue
|
|
10385
|
+
});
|
|
10386
|
+
} else {
|
|
10387
|
+
queryComponents.push({
|
|
10388
|
+
key: selectKey,
|
|
10389
|
+
symbol: 'in',
|
|
10390
|
+
value: [inputValue]
|
|
10391
|
+
});
|
|
10392
|
+
}
|
|
10393
|
+
params.queryComponents = queryComponents;
|
|
10283
10394
|
}
|
|
10284
10395
|
_context.next = 7;
|
|
10285
10396
|
return extendRequest('/qy/view/workOrderList', {
|
|
@@ -10388,7 +10499,11 @@ var SubForm = function SubForm(props) {
|
|
|
10388
10499
|
});
|
|
10389
10500
|
}, [inputValue]);
|
|
10390
10501
|
var handleOpenChange = function handleOpenChange(newOpen) {
|
|
10391
|
-
|
|
10502
|
+
if (!['jbCFrJV4m7_trajectoryCompany', '0qFEv9GEyd_returnLogisticsCompany'].includes(selectKey)) {
|
|
10503
|
+
setOpen(newOpen);
|
|
10504
|
+
} else {
|
|
10505
|
+
setOpen(false);
|
|
10506
|
+
}
|
|
10392
10507
|
};
|
|
10393
10508
|
var onChangeInput = useCallback(debounce(function (val) {
|
|
10394
10509
|
setInputValue(val);
|
|
@@ -10475,7 +10590,26 @@ var SubForm = function SubForm(props) {
|
|
|
10475
10590
|
placement: "bottom",
|
|
10476
10591
|
visible: open,
|
|
10477
10592
|
onVisibleChange: handleOpenChange
|
|
10478
|
-
}, /*#__PURE__*/React.createElement(
|
|
10593
|
+
}, ['0qFEv9GEyd_returnLogisticsCompany', 'jbCFrJV4m7_trajectoryCompany'].includes(selectKey) ? /*#__PURE__*/React.createElement(ApaasLogistics, {
|
|
10594
|
+
getPopupContainer: function getPopupContainer() {
|
|
10595
|
+
return document.getElementById('subform');
|
|
10596
|
+
},
|
|
10597
|
+
value: undefined,
|
|
10598
|
+
onChange: function onChange(val) {
|
|
10599
|
+
onChangeInput(val);
|
|
10600
|
+
},
|
|
10601
|
+
placeholder: "\u8BF7\u9009\u62E9\u7269\u6D41\u516C\u53F8",
|
|
10602
|
+
showSearch: true,
|
|
10603
|
+
allowClear: true,
|
|
10604
|
+
style: {
|
|
10605
|
+
width: '180px'
|
|
10606
|
+
},
|
|
10607
|
+
filterOption: function filterOption(input, option) {
|
|
10608
|
+
return option.label.includes(input);
|
|
10609
|
+
},
|
|
10610
|
+
placement: "topLeft",
|
|
10611
|
+
listHeight: 120
|
|
10612
|
+
}) : /*#__PURE__*/React.createElement(Input, {
|
|
10479
10613
|
placeholder: "\u8F93\u5165\u5173\u952E\u8BCD\u67E5\u8BE2",
|
|
10480
10614
|
allowClear: true,
|
|
10481
10615
|
onChange: function onChange(e) {
|
|
@@ -29336,4 +29470,4 @@ var SYSTEM_ORDER_COLUMNS_MAP = {
|
|
|
29336
29470
|
WDT_RETURN_BILL_NO: WDT_RETURN_BILL_NO_CONFIG.columns
|
|
29337
29471
|
};
|
|
29338
29472
|
|
|
29339
|
-
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 };
|
|
29473
|
+
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
|
@@ -8010,13 +8010,14 @@ function ApaasPosting(props) {
|
|
|
8010
8010
|
});
|
|
8011
8011
|
}
|
|
8012
8012
|
|
|
8013
|
-
var _excluded$b = ["value", "onChange", "platformType", "type"];
|
|
8013
|
+
var _excluded$b = ["value", "onChange", "platformType", "type", "placement"];
|
|
8014
8014
|
function ApaasLogistics(props) {
|
|
8015
8015
|
var value = props.value,
|
|
8016
8016
|
onChange = props.onChange,
|
|
8017
8017
|
platformType = props.platformType,
|
|
8018
8018
|
_props$type = props.type,
|
|
8019
8019
|
type = _props$type === void 0 ? 'select' : _props$type,
|
|
8020
|
+
placement = props.placement,
|
|
8020
8021
|
other = _objectWithoutProperties(props, _excluded$b);
|
|
8021
8022
|
var _useState = React.useState([]),
|
|
8022
8023
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -8054,12 +8055,13 @@ function ApaasLogistics(props) {
|
|
|
8054
8055
|
return type === 'input' ? /*#__PURE__*/React__default['default'].createElement(antd.Input, _objectSpread2(_objectSpread2({}, other), {}, {
|
|
8055
8056
|
value: value,
|
|
8056
8057
|
onChange: handleInputChange
|
|
8057
|
-
})) : /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(
|
|
8058
|
+
})) : /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2({
|
|
8058
8059
|
value: value,
|
|
8059
8060
|
onChange: onChange,
|
|
8060
8061
|
options: option,
|
|
8061
|
-
virtual: true
|
|
8062
|
-
|
|
8062
|
+
virtual: true,
|
|
8063
|
+
placement: placement
|
|
8064
|
+
}, other));
|
|
8063
8065
|
}
|
|
8064
8066
|
|
|
8065
8067
|
var _excluded$c = ["label", "name", "extra", "required", "rules", "initialValue"];
|
|
@@ -8469,7 +8471,10 @@ var processLogisticsTrajectory = function processLogisticsTrajectory(getValue) {
|
|
|
8469
8471
|
var map = subFields.reduce(function (cur, nxt) {
|
|
8470
8472
|
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
8473
|
}, {});
|
|
8472
|
-
|
|
8474
|
+
var mapChild = subFields.reduce(function (cur, nxt) {
|
|
8475
|
+
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))));
|
|
8476
|
+
}, {});
|
|
8477
|
+
return _objectSpread2(_defineProperty({}, nex.uniqueKey, map), mapChild);
|
|
8473
8478
|
};
|
|
8474
8479
|
};
|
|
8475
8480
|
var processLogisticsTrajectoryMore = function processLogisticsTrajectoryMore(getValue) {
|
|
@@ -8493,12 +8498,12 @@ var processItemSelectThird = function processItemSelectThird(getValue) {
|
|
|
8493
8498
|
};
|
|
8494
8499
|
var processEnterPrisePayment = function processEnterPrisePayment(getValue) {
|
|
8495
8500
|
return function (nex, config) {
|
|
8496
|
-
var
|
|
8501
|
+
var _ref33;
|
|
8497
8502
|
var subFields = ['enterprisePaymentAlipayNick', 'enterprisePaymentAlipayNo', 'enterprisePaymentBuyerNick', 'enterprisePaymentBuyerOpenUid', 'enterprisePaymentRefundFee', 'enterprisePaymentStatus', 'enterprisePaymentTid'];
|
|
8498
8503
|
var map = subFields.reduce(function (cur, nxt) {
|
|
8499
8504
|
return _objectSpread2(_objectSpread2({}, cur), {}, _defineProperty({}, nxt, getValue("".concat(nex.uniqueKey, "_").concat(nxt))));
|
|
8500
8505
|
}, {});
|
|
8501
|
-
return
|
|
8506
|
+
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
8507
|
};
|
|
8503
8508
|
};
|
|
8504
8509
|
var processJstLogistics = function processJstLogistics(getValue) {
|
|
@@ -9261,14 +9266,14 @@ var processJstReturnGoods = function processJstReturnGoods(templateColumns) {
|
|
|
9261
9266
|
};
|
|
9262
9267
|
var processLabel = function processLabel(getValue) {
|
|
9263
9268
|
return function (nex, config) {
|
|
9264
|
-
var
|
|
9265
|
-
return
|
|
9269
|
+
var _ref73;
|
|
9270
|
+
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
9271
|
};
|
|
9267
9272
|
};
|
|
9268
9273
|
var processMemberLevel = function processMemberLevel(getValue) {
|
|
9269
9274
|
return function (nex, config) {
|
|
9270
|
-
var
|
|
9271
|
-
return
|
|
9275
|
+
var _ref74;
|
|
9276
|
+
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
9277
|
};
|
|
9273
9278
|
};
|
|
9274
9279
|
var processAfterSalesOrderId = function processAfterSalesOrderId(getValue) {
|
|
@@ -9563,7 +9568,6 @@ var FileRender = function FileRender(_ref) {
|
|
|
9563
9568
|
cursor: 'pointer'
|
|
9564
9569
|
},
|
|
9565
9570
|
onClick: function onClick(e) {
|
|
9566
|
-
console.log('onPreview');
|
|
9567
9571
|
e.preventDefault();
|
|
9568
9572
|
onPreview(item);
|
|
9569
9573
|
},
|
|
@@ -9659,6 +9663,9 @@ var PictureRender = function PictureRender(_ref2) {
|
|
|
9659
9663
|
}));
|
|
9660
9664
|
}));
|
|
9661
9665
|
};
|
|
9666
|
+
var LogisticsCompanyRender = function LogisticsCompanyRender(value) {
|
|
9667
|
+
return kmkfUtils.ExpressData.getInstance().getExpressNameByCode(value) || value;
|
|
9668
|
+
};
|
|
9662
9669
|
var MultipleSelectRender = function MultipleSelectRender(_ref5) {
|
|
9663
9670
|
var _ref5$value = _ref5.value,
|
|
9664
9671
|
value = _ref5$value === void 0 ? [] : _ref5$value;
|
|
@@ -9693,6 +9700,16 @@ var renderMap = {
|
|
|
9693
9700
|
});
|
|
9694
9701
|
}
|
|
9695
9702
|
};
|
|
9703
|
+
var renderSplitMap = {
|
|
9704
|
+
//物流轨迹-物流公司
|
|
9705
|
+
jbCFrJV4m7_trajectoryCompany: function jbCFrJV4m7_trajectoryCompany(value) {
|
|
9706
|
+
return LogisticsCompanyRender(value);
|
|
9707
|
+
},
|
|
9708
|
+
//退货物流-物流公司
|
|
9709
|
+
'0qFEv9GEyd_returnLogisticsCompany': function qFEv9GEyd_returnLogisticsCompany(value) {
|
|
9710
|
+
return LogisticsCompanyRender(value);
|
|
9711
|
+
}
|
|
9712
|
+
};
|
|
9696
9713
|
var EditPictureRender = function EditPictureRender(_ref6) {
|
|
9697
9714
|
var _ref6$val = _ref6.val,
|
|
9698
9715
|
val = _ref6$val === void 0 ? [] : _ref6$val,
|
|
@@ -9788,7 +9805,6 @@ var EditFileRender = function EditFileRender(_ref7) {
|
|
|
9788
9805
|
var EditRenderMap = {
|
|
9789
9806
|
INPUT: function INPUT(_ref8) {
|
|
9790
9807
|
var val = _ref8.val,
|
|
9791
|
-
record = _ref8.record,
|
|
9792
9808
|
index = _ref8.index,
|
|
9793
9809
|
t = _ref8.t,
|
|
9794
9810
|
updateHandle = _ref8.updateHandle,
|
|
@@ -9817,7 +9833,6 @@ var EditRenderMap = {
|
|
|
9817
9833
|
},
|
|
9818
9834
|
TEXTAREA: function TEXTAREA(_ref9) {
|
|
9819
9835
|
var val = _ref9.val,
|
|
9820
|
-
record = _ref9.record,
|
|
9821
9836
|
index = _ref9.index,
|
|
9822
9837
|
t = _ref9.t,
|
|
9823
9838
|
updateHandle = _ref9.updateHandle,
|
|
@@ -9846,7 +9861,6 @@ var EditRenderMap = {
|
|
|
9846
9861
|
},
|
|
9847
9862
|
PICTURE: function PICTURE(_ref10) {
|
|
9848
9863
|
var val = _ref10.val,
|
|
9849
|
-
record = _ref10.record,
|
|
9850
9864
|
index = _ref10.index,
|
|
9851
9865
|
t = _ref10.t,
|
|
9852
9866
|
updateHandle = _ref10.updateHandle,
|
|
@@ -9864,7 +9878,6 @@ var EditRenderMap = {
|
|
|
9864
9878
|
},
|
|
9865
9879
|
FILE: function FILE(_ref11) {
|
|
9866
9880
|
var val = _ref11.val,
|
|
9867
|
-
record = _ref11.record,
|
|
9868
9881
|
index = _ref11.index,
|
|
9869
9882
|
t = _ref11.t,
|
|
9870
9883
|
updateHandle = _ref11.updateHandle,
|
|
@@ -9882,7 +9895,6 @@ var EditRenderMap = {
|
|
|
9882
9895
|
},
|
|
9883
9896
|
RADIO: function RADIO(_ref12) {
|
|
9884
9897
|
var val = _ref12.val,
|
|
9885
|
-
record = _ref12.record,
|
|
9886
9898
|
index = _ref12.index,
|
|
9887
9899
|
t = _ref12.t,
|
|
9888
9900
|
updateHandle = _ref12.updateHandle,
|
|
@@ -9905,7 +9917,6 @@ var EditRenderMap = {
|
|
|
9905
9917
|
},
|
|
9906
9918
|
SELECT: function SELECT(_ref13) {
|
|
9907
9919
|
var val = _ref13.val,
|
|
9908
|
-
record = _ref13.record,
|
|
9909
9920
|
index = _ref13.index,
|
|
9910
9921
|
t = _ref13.t,
|
|
9911
9922
|
updateHandle = _ref13.updateHandle,
|
|
@@ -9928,7 +9939,6 @@ var EditRenderMap = {
|
|
|
9928
9939
|
},
|
|
9929
9940
|
CHECKBOX: function CHECKBOX(_ref14) {
|
|
9930
9941
|
var val = _ref14.val,
|
|
9931
|
-
record = _ref14.record,
|
|
9932
9942
|
index = _ref14.index,
|
|
9933
9943
|
t = _ref14.t,
|
|
9934
9944
|
updateHandle = _ref14.updateHandle,
|
|
@@ -9950,7 +9960,6 @@ var EditRenderMap = {
|
|
|
9950
9960
|
},
|
|
9951
9961
|
BASIC_MULT_SELECT: function BASIC_MULT_SELECT(_ref15) {
|
|
9952
9962
|
var val = _ref15.val,
|
|
9953
|
-
record = _ref15.record,
|
|
9954
9963
|
index = _ref15.index,
|
|
9955
9964
|
t = _ref15.t,
|
|
9956
9965
|
updateHandle = _ref15.updateHandle,
|
|
@@ -9969,6 +9978,75 @@ var EditRenderMap = {
|
|
|
9969
9978
|
return updateHandle(e, index, t.key);
|
|
9970
9979
|
}
|
|
9971
9980
|
}));
|
|
9981
|
+
},
|
|
9982
|
+
DEFAULT: function DEFAULT(_ref16) {
|
|
9983
|
+
var val = _ref16.val,
|
|
9984
|
+
index = _ref16.index,
|
|
9985
|
+
t = _ref16.t,
|
|
9986
|
+
updateHandle = _ref16.updateHandle,
|
|
9987
|
+
disabled = _ref16.disabled;
|
|
9988
|
+
return !t.isEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
9989
|
+
allowClear: true,
|
|
9990
|
+
style: {
|
|
9991
|
+
width: '100%'
|
|
9992
|
+
},
|
|
9993
|
+
value: val,
|
|
9994
|
+
onChange: function onChange(e) {
|
|
9995
|
+
var _e$target3;
|
|
9996
|
+
return updateHandle(e === null || e === void 0 ? void 0 : (_e$target3 = e.target) === null || _e$target3 === void 0 ? void 0 : _e$target3.value, index, t.key);
|
|
9997
|
+
}
|
|
9998
|
+
}) : /*#__PURE__*/React__default['default'].createElement("div", null, val);
|
|
9999
|
+
}
|
|
10000
|
+
};
|
|
10001
|
+
var EditSplitRenderMap = {
|
|
10002
|
+
jbCFrJV4m7_trajectoryCompany: function jbCFrJV4m7_trajectoryCompany(_ref17) {
|
|
10003
|
+
var val = _ref17.val,
|
|
10004
|
+
index = _ref17.index,
|
|
10005
|
+
t = _ref17.t,
|
|
10006
|
+
updateHandle = _ref17.updateHandle,
|
|
10007
|
+
disabled = _ref17.disabled;
|
|
10008
|
+
return /*#__PURE__*/React__default['default'].createElement(ApaasLogistics, {
|
|
10009
|
+
getPopupContainer: function getPopupContainer() {
|
|
10010
|
+
return document.getElementById('subform');
|
|
10011
|
+
},
|
|
10012
|
+
value: val,
|
|
10013
|
+
allowClear: true,
|
|
10014
|
+
showSearch: true,
|
|
10015
|
+
onChange: function onChange(e) {
|
|
10016
|
+
return updateHandle(e, index, t.key);
|
|
10017
|
+
},
|
|
10018
|
+
disabled: t.isEdit || disabled,
|
|
10019
|
+
filterOption: function filterOption(input, option) {
|
|
10020
|
+
return option.label.includes(input);
|
|
10021
|
+
},
|
|
10022
|
+
placement: "topLeft",
|
|
10023
|
+
listHeight: 120
|
|
10024
|
+
});
|
|
10025
|
+
},
|
|
10026
|
+
//退货物流-物流公司
|
|
10027
|
+
'0qFEv9GEyd_returnLogisticsCompany': function qFEv9GEyd_returnLogisticsCompany(_ref18) {
|
|
10028
|
+
var val = _ref18.val,
|
|
10029
|
+
index = _ref18.index,
|
|
10030
|
+
t = _ref18.t,
|
|
10031
|
+
updateHandle = _ref18.updateHandle,
|
|
10032
|
+
disabled = _ref18.disabled;
|
|
10033
|
+
return /*#__PURE__*/React__default['default'].createElement(ApaasLogistics, {
|
|
10034
|
+
getPopupContainer: function getPopupContainer() {
|
|
10035
|
+
return document.getElementById('subform');
|
|
10036
|
+
},
|
|
10037
|
+
value: val,
|
|
10038
|
+
allowClear: true,
|
|
10039
|
+
showSearch: true,
|
|
10040
|
+
onChange: function onChange(e) {
|
|
10041
|
+
return updateHandle(e, index, t.key);
|
|
10042
|
+
},
|
|
10043
|
+
disabled: t.isEdit || disabled,
|
|
10044
|
+
filterOption: function filterOption(input, option) {
|
|
10045
|
+
return option.label.includes(input);
|
|
10046
|
+
},
|
|
10047
|
+
placement: "topLeft",
|
|
10048
|
+
listHeight: 120
|
|
10049
|
+
});
|
|
9972
10050
|
}
|
|
9973
10051
|
};
|
|
9974
10052
|
|
|
@@ -9996,6 +10074,7 @@ function HoverTableRowDeleteIcon(_ref) {
|
|
|
9996
10074
|
}
|
|
9997
10075
|
|
|
9998
10076
|
var WidgetMap = {
|
|
10077
|
+
TRADE_ID_INPUT: 'tradeId',
|
|
9999
10078
|
INPUT: 'input',
|
|
10000
10079
|
TEXTAREA: 'textarea',
|
|
10001
10080
|
PICTURE: 'picture',
|
|
@@ -10098,7 +10177,6 @@ var SubForm = function SubForm(props) {
|
|
|
10098
10177
|
return deleteHandle(record.uuid);
|
|
10099
10178
|
}
|
|
10100
10179
|
});
|
|
10101
|
-
// return <div style={{ width: 25 }}>{index + 1}</div>;
|
|
10102
10180
|
}
|
|
10103
10181
|
}].concat(_toConsumableArray(newTableHeader.map(function (t) {
|
|
10104
10182
|
return {
|
|
@@ -10111,27 +10189,41 @@ var SubForm = function SubForm(props) {
|
|
|
10111
10189
|
ellipsis: true,
|
|
10112
10190
|
width: t.width,
|
|
10113
10191
|
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
|
-
|
|
10192
|
+
if (EditRenderMap[t.workOrderComponentType]) {
|
|
10193
|
+
return EditRenderMap[t.workOrderComponentType]({
|
|
10194
|
+
val: val,
|
|
10195
|
+
record: record,
|
|
10196
|
+
index: index,
|
|
10197
|
+
t: t,
|
|
10198
|
+
updateHandle: updateHandle,
|
|
10199
|
+
disabled: disabled,
|
|
10200
|
+
componentDto: componentDtoList.find(function (item) {
|
|
10201
|
+
return item.uniqueKey === t.key;
|
|
10202
|
+
}),
|
|
10203
|
+
platform: platform
|
|
10204
|
+
});
|
|
10205
|
+
} else if (EditSplitRenderMap[t.key]) {
|
|
10206
|
+
return EditSplitRenderMap[t.key]({
|
|
10207
|
+
val: val,
|
|
10208
|
+
index: index,
|
|
10209
|
+
t: t,
|
|
10210
|
+
updateHandle: updateHandle,
|
|
10211
|
+
disabled: disabled
|
|
10212
|
+
});
|
|
10213
|
+
} else {
|
|
10214
|
+
return EditRenderMap['DEFAULT']({
|
|
10215
|
+
val: val,
|
|
10216
|
+
record: record,
|
|
10217
|
+
index: index,
|
|
10218
|
+
t: t,
|
|
10219
|
+
updateHandle: updateHandle,
|
|
10220
|
+
disabled: disabled,
|
|
10221
|
+
componentDto: componentDtoList.find(function (item) {
|
|
10222
|
+
return item.uniqueKey === t.key;
|
|
10223
|
+
}),
|
|
10224
|
+
platform: platform
|
|
10225
|
+
});
|
|
10226
|
+
}
|
|
10135
10227
|
}
|
|
10136
10228
|
};
|
|
10137
10229
|
})), [disabled ? {} : {
|
|
@@ -10181,6 +10273,10 @@ var SubForm = function SubForm(props) {
|
|
|
10181
10273
|
item.render = function (val) {
|
|
10182
10274
|
return renderMap[t.workOrderComponentType](val, platform);
|
|
10183
10275
|
};
|
|
10276
|
+
} else if (renderSplitMap[t.key]) {
|
|
10277
|
+
item.render = function (val) {
|
|
10278
|
+
return renderSplitMap[t.key](val);
|
|
10279
|
+
};
|
|
10184
10280
|
}
|
|
10185
10281
|
return item;
|
|
10186
10282
|
})));
|
|
@@ -10195,7 +10291,11 @@ var SubForm = function SubForm(props) {
|
|
|
10195
10291
|
if (['PICTURE', 'FILE', 'BASIC_MULT_SELECT', 'CHECKBOX'].includes(next.workOrderComponentType)) {
|
|
10196
10292
|
item.defaultValue = [];
|
|
10197
10293
|
}
|
|
10198
|
-
|
|
10294
|
+
if (!['LOGISTICS_TRAJECTORY', 'RETURN_LOGISTICS_SELECT'].includes(next.workOrderComponentType)) {
|
|
10295
|
+
prv["".concat(next.key, "_").concat(WidgetMap[next.workOrderComponentType])] = item;
|
|
10296
|
+
} else {
|
|
10297
|
+
prv["".concat(next.key)] = item;
|
|
10298
|
+
}
|
|
10199
10299
|
return prv;
|
|
10200
10300
|
}, {});
|
|
10201
10301
|
}, [newTableHeader]);
|
|
@@ -10212,7 +10312,7 @@ var SubForm = function SubForm(props) {
|
|
|
10212
10312
|
}).map(function (item) {
|
|
10213
10313
|
return {
|
|
10214
10314
|
label: item.name,
|
|
10215
|
-
value: "".concat(item.key, "_").concat(WidgetMap[item.workOrderComponentType])
|
|
10315
|
+
value: WidgetMap[item.workOrderComponentType] ? "".concat(item.key, "_").concat(WidgetMap[item.workOrderComponentType]) : item.key
|
|
10216
10316
|
};
|
|
10217
10317
|
});
|
|
10218
10318
|
setSelectKey(options === null || options === void 0 ? void 0 : (_options$ = options[0]) === null || _options$ === void 0 ? void 0 : _options$.value);
|
|
@@ -10254,6 +10354,7 @@ var SubForm = function SubForm(props) {
|
|
|
10254
10354
|
_ref2$componentList,
|
|
10255
10355
|
componentList,
|
|
10256
10356
|
params,
|
|
10357
|
+
queryComponents,
|
|
10257
10358
|
res,
|
|
10258
10359
|
data,
|
|
10259
10360
|
success,
|
|
@@ -10286,15 +10387,25 @@ var SubForm = function SubForm(props) {
|
|
|
10286
10387
|
}]
|
|
10287
10388
|
};
|
|
10288
10389
|
if (selectKey && inputValue) {
|
|
10289
|
-
|
|
10390
|
+
queryComponents = [{
|
|
10290
10391
|
key: 'flowStatus',
|
|
10291
10392
|
symbol: 'in',
|
|
10292
10393
|
value: flowStatus
|
|
10293
|
-
}, {
|
|
10294
|
-
key: selectKey,
|
|
10295
|
-
symbol: 'in',
|
|
10296
|
-
value: [inputValue]
|
|
10297
10394
|
}];
|
|
10395
|
+
if (['0qFEv9GEyd_returnLogisticsCode', 'jbCFrJV4m7_trajectoryCode'].includes(selectKey)) {
|
|
10396
|
+
queryComponents.push({
|
|
10397
|
+
key: selectKey,
|
|
10398
|
+
symbol: 'like',
|
|
10399
|
+
value: inputValue
|
|
10400
|
+
});
|
|
10401
|
+
} else {
|
|
10402
|
+
queryComponents.push({
|
|
10403
|
+
key: selectKey,
|
|
10404
|
+
symbol: 'in',
|
|
10405
|
+
value: [inputValue]
|
|
10406
|
+
});
|
|
10407
|
+
}
|
|
10408
|
+
params.queryComponents = queryComponents;
|
|
10298
10409
|
}
|
|
10299
10410
|
_context.next = 7;
|
|
10300
10411
|
return extendRequest('/qy/view/workOrderList', {
|
|
@@ -10403,7 +10514,11 @@ var SubForm = function SubForm(props) {
|
|
|
10403
10514
|
});
|
|
10404
10515
|
}, [inputValue]);
|
|
10405
10516
|
var handleOpenChange = function handleOpenChange(newOpen) {
|
|
10406
|
-
|
|
10517
|
+
if (!['jbCFrJV4m7_trajectoryCompany', '0qFEv9GEyd_returnLogisticsCompany'].includes(selectKey)) {
|
|
10518
|
+
setOpen(newOpen);
|
|
10519
|
+
} else {
|
|
10520
|
+
setOpen(false);
|
|
10521
|
+
}
|
|
10407
10522
|
};
|
|
10408
10523
|
var onChangeInput = React.useCallback(lodash.debounce(function (val) {
|
|
10409
10524
|
setInputValue(val);
|
|
@@ -10490,7 +10605,26 @@ var SubForm = function SubForm(props) {
|
|
|
10490
10605
|
placement: "bottom",
|
|
10491
10606
|
visible: open,
|
|
10492
10607
|
onVisibleChange: handleOpenChange
|
|
10493
|
-
}, /*#__PURE__*/React__default['default'].createElement(
|
|
10608
|
+
}, ['0qFEv9GEyd_returnLogisticsCompany', 'jbCFrJV4m7_trajectoryCompany'].includes(selectKey) ? /*#__PURE__*/React__default['default'].createElement(ApaasLogistics, {
|
|
10609
|
+
getPopupContainer: function getPopupContainer() {
|
|
10610
|
+
return document.getElementById('subform');
|
|
10611
|
+
},
|
|
10612
|
+
value: undefined,
|
|
10613
|
+
onChange: function onChange(val) {
|
|
10614
|
+
onChangeInput(val);
|
|
10615
|
+
},
|
|
10616
|
+
placeholder: "\u8BF7\u9009\u62E9\u7269\u6D41\u516C\u53F8",
|
|
10617
|
+
showSearch: true,
|
|
10618
|
+
allowClear: true,
|
|
10619
|
+
style: {
|
|
10620
|
+
width: '180px'
|
|
10621
|
+
},
|
|
10622
|
+
filterOption: function filterOption(input, option) {
|
|
10623
|
+
return option.label.includes(input);
|
|
10624
|
+
},
|
|
10625
|
+
placement: "topLeft",
|
|
10626
|
+
listHeight: 120
|
|
10627
|
+
}) : /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
10494
10628
|
placeholder: "\u8F93\u5165\u5173\u952E\u8BCD\u67E5\u8BE2",
|
|
10495
10629
|
allowClear: true,
|
|
10496
10630
|
onChange: function onChange(e) {
|
|
@@ -29438,3 +29572,4 @@ exports.getWdtColumns = getColumns$2;
|
|
|
29438
29572
|
exports.getWlnColumns = getColumns$3;
|
|
29439
29573
|
exports.orderSubFormConstants = orderSubFormConstants;
|
|
29440
29574
|
exports.renderMap = renderMap;
|
|
29575
|
+
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,9 @@ 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;
|
|
21
23
|
export declare const EditRenderMap: Record<string, (props: any) => React.ReactNode>;
|
|
24
|
+
export declare const EditSplitRenderMap: Record<string, (props: any) => React.ReactNode>;
|
|
22
25
|
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.3.
|
|
3
|
+
"version": "2.3.2",
|
|
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": "6db37a878558212d358a2be5253d4d2a6aa3f7d5"
|
|
70
70
|
}
|