@kmkf-fe-packages/basic-components 2.2.39-beta.9 → 2.2.40-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/index.esm.js +111 -238
- package/dist/index.js +110 -238
- package/dist/src/apaas/SubForm/index.d.ts +3 -3
- package/dist/src/apaas/SubForm/render.d.ts +0 -4
- package/dist/src/index.d.ts +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -8116,8 +8116,6 @@ var updateWorkTypeKeys = {
|
|
|
8116
8116
|
BS_DEPOSIT: 'bsDeposit',
|
|
8117
8117
|
NEW_PAYMENT_STATUS: 'newPaymentStatus',
|
|
8118
8118
|
BUSINESS_ORDER_NO: 'businessOrderNo',
|
|
8119
|
-
REPAIR_ORDER_SN: 'repairOrderSn',
|
|
8120
|
-
REPAIR_ORDER_ID: 'repairOrderId',
|
|
8121
8119
|
PAYMENT_VOUCHER_CODE: 'paymentVoucherCode',
|
|
8122
8120
|
ACTUAL_RECEIPT_PAYMENT: 'actualReceiptPayment',
|
|
8123
8121
|
WDT_SHOP: 'shopCode'
|
|
@@ -8469,10 +8467,7 @@ var processLogisticsTrajectory = function processLogisticsTrajectory(getValue) {
|
|
|
8469
8467
|
var map = subFields.reduce(function (cur, nxt) {
|
|
8470
8468
|
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
8469
|
}, {});
|
|
8472
|
-
|
|
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);
|
|
8470
|
+
return _defineProperty({}, nex.uniqueKey, map);
|
|
8476
8471
|
};
|
|
8477
8472
|
};
|
|
8478
8473
|
var processLogisticsTrajectoryMore = function processLogisticsTrajectoryMore(getValue) {
|
|
@@ -8496,12 +8491,12 @@ var processItemSelectThird = function processItemSelectThird(getValue) {
|
|
|
8496
8491
|
};
|
|
8497
8492
|
var processEnterPrisePayment = function processEnterPrisePayment(getValue) {
|
|
8498
8493
|
return function (nex, config) {
|
|
8499
|
-
var
|
|
8494
|
+
var _ref34;
|
|
8500
8495
|
var subFields = ['enterprisePaymentAlipayNick', 'enterprisePaymentAlipayNo', 'enterprisePaymentBuyerNick', 'enterprisePaymentBuyerOpenUid', 'enterprisePaymentRefundFee', 'enterprisePaymentStatus', 'enterprisePaymentTid'];
|
|
8501
8496
|
var map = subFields.reduce(function (cur, nxt) {
|
|
8502
8497
|
return _objectSpread2(_objectSpread2({}, cur), {}, _defineProperty({}, nxt, getValue("".concat(nex.uniqueKey, "_").concat(nxt))));
|
|
8503
8498
|
}, {});
|
|
8504
|
-
return
|
|
8499
|
+
return _ref34 = {}, _defineProperty(_ref34, nex.uniqueKey, map), _defineProperty(_ref34, "".concat(nex.uniqueKey, "_enterprisePaymentAlipayNick"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentAlipayNick"))), _defineProperty(_ref34, "".concat(nex.uniqueKey, "_enterprisePaymentAlipayNo"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentAlipayNo"))), _defineProperty(_ref34, "".concat(nex.uniqueKey, "_enterprisePaymentBuyerNick"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentBuyerNick"))), _defineProperty(_ref34, "".concat(nex.uniqueKey, "_enterprisePaymentRefundFee"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentRefundFee"))), _defineProperty(_ref34, "".concat(nex.uniqueKey, "_enterprisePaymentStatus"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentStatus"))), _defineProperty(_ref34, "".concat(nex.uniqueKey, "_enterprisePaymentTime"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentTime"))), _defineProperty(_ref34, "".concat(nex.uniqueKey, "_enterprisePaymentTid"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentTid"))), _ref34;
|
|
8505
8500
|
};
|
|
8506
8501
|
};
|
|
8507
8502
|
var processJstLogistics = function processJstLogistics(getValue) {
|
|
@@ -8600,10 +8595,6 @@ var processCallBackStatus = function processCallBackStatus(getValue) {
|
|
|
8600
8595
|
RETURN_EXCHANGE_GOODS_REVIEW_STATUS: {
|
|
8601
8596
|
status: 'returnExchangeGoodsReviewStatusValue',
|
|
8602
8597
|
reason: 'returnExchangeGoodsReviewStatusReason'
|
|
8603
|
-
},
|
|
8604
|
-
REPAIR_ORDER_STATUS: {
|
|
8605
|
-
status: 'repairOrderStatusValue',
|
|
8606
|
-
reason: 'repairOrderStatusReason'
|
|
8607
8598
|
}
|
|
8608
8599
|
};
|
|
8609
8600
|
return _defineProperty({}, nex.uniqueKey, {
|
|
@@ -9264,14 +9255,14 @@ var processJstReturnGoods = function processJstReturnGoods(templateColumns) {
|
|
|
9264
9255
|
};
|
|
9265
9256
|
var processLabel = function processLabel(getValue) {
|
|
9266
9257
|
return function (nex, config) {
|
|
9267
|
-
var
|
|
9268
|
-
return
|
|
9258
|
+
var _ref74;
|
|
9259
|
+
return _ref74 = {}, _defineProperty(_ref74, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _defineProperty(_ref74, "".concat(nex.uniqueKey, "_label"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _ref74;
|
|
9269
9260
|
};
|
|
9270
9261
|
};
|
|
9271
9262
|
var processMemberLevel = function processMemberLevel(getValue) {
|
|
9272
9263
|
return function (nex, config) {
|
|
9273
|
-
var
|
|
9274
|
-
return
|
|
9264
|
+
var _ref75;
|
|
9265
|
+
return _ref75 = {}, _defineProperty(_ref75, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _defineProperty(_ref75, "".concat(nex.uniqueKey, "_memberLevel"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _ref75;
|
|
9275
9266
|
};
|
|
9276
9267
|
};
|
|
9277
9268
|
var processAfterSalesOrderId = function processAfterSalesOrderId(getValue) {
|
|
@@ -9368,7 +9359,6 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
|
|
|
9368
9359
|
AGREE_RETURN_GOODS_STATUS: processCallBackStatus,
|
|
9369
9360
|
REJECT_RETURN_GOODS_STATUS: processCallBackStatus,
|
|
9370
9361
|
RETURN_EXCHANGE_GOODS_REVIEW_STATUS: processCallBackStatus,
|
|
9371
|
-
REPAIR_ORDER_STATUS: processCallBackStatus,
|
|
9372
9362
|
RETURN_GOODS_STATUS: processSceneStatus,
|
|
9373
9363
|
EXCHANGE_STATUS: processSceneStatus,
|
|
9374
9364
|
WAREHOUSING_STATUS: processSceneStatus,
|
|
@@ -9448,8 +9438,6 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
|
|
|
9448
9438
|
BS_DEPOSIT: processSingleField,
|
|
9449
9439
|
NEW_PAYMENT_STATUS: processSingleField,
|
|
9450
9440
|
BUSINESS_ORDER_NO: processSingleField,
|
|
9451
|
-
REPAIR_ORDER_SN: processSingleField,
|
|
9452
|
-
REPAIR_ORDER_ID: processSingleField,
|
|
9453
9441
|
PAYMENT_VOUCHER_CODE: processSingleField,
|
|
9454
9442
|
BS_E3_REISSUE_GOODS: processBsE3ReissueGoods(templateColumns),
|
|
9455
9443
|
ACTUAL_RECEIPT_PAYMENT: processSingleField,
|
|
@@ -9566,6 +9554,7 @@ var FileRender = function FileRender(_ref) {
|
|
|
9566
9554
|
cursor: 'pointer'
|
|
9567
9555
|
},
|
|
9568
9556
|
onClick: function onClick(e) {
|
|
9557
|
+
console.log('onPreview');
|
|
9569
9558
|
e.preventDefault();
|
|
9570
9559
|
onPreview(item);
|
|
9571
9560
|
},
|
|
@@ -9661,9 +9650,6 @@ var PictureRender = function PictureRender(_ref2) {
|
|
|
9661
9650
|
}));
|
|
9662
9651
|
}));
|
|
9663
9652
|
};
|
|
9664
|
-
var LogisticsCompanyRender = function LogisticsCompanyRender(value) {
|
|
9665
|
-
return kmkfUtils.ExpressData.getInstance().getExpressNameByCode(value) || value;
|
|
9666
|
-
};
|
|
9667
9653
|
var MultipleSelectRender = function MultipleSelectRender(_ref5) {
|
|
9668
9654
|
var _ref5$value = _ref5.value,
|
|
9669
9655
|
value = _ref5$value === void 0 ? [] : _ref5$value;
|
|
@@ -9698,16 +9684,6 @@ var renderMap = {
|
|
|
9698
9684
|
});
|
|
9699
9685
|
}
|
|
9700
9686
|
};
|
|
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
|
-
};
|
|
9711
9687
|
var EditPictureRender = function EditPictureRender(_ref6) {
|
|
9712
9688
|
var _ref6$val = _ref6.val,
|
|
9713
9689
|
val = _ref6$val === void 0 ? [] : _ref6$val,
|
|
@@ -9801,13 +9777,13 @@ var EditFileRender = function EditFileRender(_ref7) {
|
|
|
9801
9777
|
}));
|
|
9802
9778
|
};
|
|
9803
9779
|
var EditRenderMap = {
|
|
9804
|
-
INPUT: function INPUT(
|
|
9805
|
-
var val =
|
|
9806
|
-
record =
|
|
9807
|
-
index =
|
|
9808
|
-
t =
|
|
9809
|
-
updateHandle =
|
|
9810
|
-
disabled =
|
|
9780
|
+
INPUT: function INPUT(_ref8) {
|
|
9781
|
+
var val = _ref8.val,
|
|
9782
|
+
record = _ref8.record,
|
|
9783
|
+
index = _ref8.index,
|
|
9784
|
+
t = _ref8.t,
|
|
9785
|
+
updateHandle = _ref8.updateHandle,
|
|
9786
|
+
disabled = _ref8.disabled;
|
|
9811
9787
|
var precisionValue = t.precision === 'nolimit' ? undefined : t.precision;
|
|
9812
9788
|
return !t.isEdit && !disabled ? t.isNumber ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
9813
9789
|
style: {
|
|
@@ -9830,13 +9806,13 @@ var EditRenderMap = {
|
|
|
9830
9806
|
}
|
|
9831
9807
|
}) : /*#__PURE__*/React__default['default'].createElement("div", null, val);
|
|
9832
9808
|
},
|
|
9833
|
-
TEXTAREA: function TEXTAREA(
|
|
9834
|
-
var val =
|
|
9835
|
-
record =
|
|
9836
|
-
index =
|
|
9837
|
-
t =
|
|
9838
|
-
updateHandle =
|
|
9839
|
-
disabled =
|
|
9809
|
+
TEXTAREA: function TEXTAREA(_ref9) {
|
|
9810
|
+
var val = _ref9.val,
|
|
9811
|
+
record = _ref9.record,
|
|
9812
|
+
index = _ref9.index,
|
|
9813
|
+
t = _ref9.t,
|
|
9814
|
+
updateHandle = _ref9.updateHandle,
|
|
9815
|
+
disabled = _ref9.disabled;
|
|
9840
9816
|
var precisionValue = t.precision === 'nolimit' ? undefined : t.precision;
|
|
9841
9817
|
return !t.isEdit && !disabled ? t.isNumber ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
9842
9818
|
style: {
|
|
@@ -9859,7 +9835,25 @@ var EditRenderMap = {
|
|
|
9859
9835
|
}
|
|
9860
9836
|
}) : /*#__PURE__*/React__default['default'].createElement("div", null, val);
|
|
9861
9837
|
},
|
|
9862
|
-
PICTURE: function PICTURE(
|
|
9838
|
+
PICTURE: function PICTURE(_ref10) {
|
|
9839
|
+
var val = _ref10.val,
|
|
9840
|
+
record = _ref10.record,
|
|
9841
|
+
index = _ref10.index,
|
|
9842
|
+
t = _ref10.t,
|
|
9843
|
+
updateHandle = _ref10.updateHandle,
|
|
9844
|
+
disabled = _ref10.disabled,
|
|
9845
|
+
platform = _ref10.platform;
|
|
9846
|
+
return /*#__PURE__*/React__default['default'].createElement(EditPictureRender, {
|
|
9847
|
+
val: val,
|
|
9848
|
+
t: t,
|
|
9849
|
+
disabled: disabled,
|
|
9850
|
+
index: index,
|
|
9851
|
+
updateHandle: updateHandle,
|
|
9852
|
+
hostUrl: hostUrl,
|
|
9853
|
+
platform: platform
|
|
9854
|
+
});
|
|
9855
|
+
},
|
|
9856
|
+
FILE: function FILE(_ref11) {
|
|
9863
9857
|
var val = _ref11.val,
|
|
9864
9858
|
record = _ref11.record,
|
|
9865
9859
|
index = _ref11.index,
|
|
@@ -9867,7 +9861,7 @@ var EditRenderMap = {
|
|
|
9867
9861
|
updateHandle = _ref11.updateHandle,
|
|
9868
9862
|
disabled = _ref11.disabled,
|
|
9869
9863
|
platform = _ref11.platform;
|
|
9870
|
-
return /*#__PURE__*/React__default['default'].createElement(
|
|
9864
|
+
return /*#__PURE__*/React__default['default'].createElement(EditFileRender, {
|
|
9871
9865
|
val: val,
|
|
9872
9866
|
t: t,
|
|
9873
9867
|
disabled: disabled,
|
|
@@ -9877,25 +9871,30 @@ var EditRenderMap = {
|
|
|
9877
9871
|
platform: platform
|
|
9878
9872
|
});
|
|
9879
9873
|
},
|
|
9880
|
-
|
|
9874
|
+
RADIO: function RADIO(_ref12) {
|
|
9881
9875
|
var val = _ref12.val,
|
|
9882
9876
|
record = _ref12.record,
|
|
9883
9877
|
index = _ref12.index,
|
|
9884
9878
|
t = _ref12.t,
|
|
9885
9879
|
updateHandle = _ref12.updateHandle,
|
|
9886
9880
|
disabled = _ref12.disabled,
|
|
9887
|
-
|
|
9888
|
-
return /*#__PURE__*/React__default['default'].createElement(
|
|
9889
|
-
|
|
9890
|
-
|
|
9891
|
-
|
|
9892
|
-
|
|
9893
|
-
|
|
9894
|
-
|
|
9895
|
-
|
|
9896
|
-
|
|
9881
|
+
componentDto = _ref12.componentDto;
|
|
9882
|
+
return /*#__PURE__*/React__default['default'].createElement(ApaasSelect, _objectSpread2(_objectSpread2({
|
|
9883
|
+
getPopupContainer: function getPopupContainer() {
|
|
9884
|
+
return document.getElementById('subform');
|
|
9885
|
+
}
|
|
9886
|
+
}, componentDto === null || componentDto === void 0 ? void 0 : componentDto.componentConfig), {}, {
|
|
9887
|
+
value: val,
|
|
9888
|
+
disabled: t.isEdit || disabled,
|
|
9889
|
+
allowClear: true,
|
|
9890
|
+
placement: "topLeft",
|
|
9891
|
+
listHeight: 120,
|
|
9892
|
+
onChange: function onChange(e) {
|
|
9893
|
+
return updateHandle(e, index, t.key);
|
|
9894
|
+
}
|
|
9895
|
+
}));
|
|
9897
9896
|
},
|
|
9898
|
-
|
|
9897
|
+
SELECT: function SELECT(_ref13) {
|
|
9899
9898
|
var val = _ref13.val,
|
|
9900
9899
|
record = _ref13.record,
|
|
9901
9900
|
index = _ref13.index,
|
|
@@ -9918,7 +9917,7 @@ var EditRenderMap = {
|
|
|
9918
9917
|
}
|
|
9919
9918
|
}));
|
|
9920
9919
|
},
|
|
9921
|
-
|
|
9920
|
+
CHECKBOX: function CHECKBOX(_ref14) {
|
|
9922
9921
|
var val = _ref14.val,
|
|
9923
9922
|
record = _ref14.record,
|
|
9924
9923
|
index = _ref14.index,
|
|
@@ -9926,22 +9925,21 @@ var EditRenderMap = {
|
|
|
9926
9925
|
updateHandle = _ref14.updateHandle,
|
|
9927
9926
|
disabled = _ref14.disabled,
|
|
9928
9927
|
componentDto = _ref14.componentDto;
|
|
9929
|
-
return /*#__PURE__*/React__default['default'].createElement(
|
|
9928
|
+
return /*#__PURE__*/React__default['default'].createElement(ApaasMultipleSelect, _objectSpread2(_objectSpread2({
|
|
9930
9929
|
getPopupContainer: function getPopupContainer() {
|
|
9931
9930
|
return document.getElementById('subform');
|
|
9932
9931
|
}
|
|
9933
9932
|
}, componentDto === null || componentDto === void 0 ? void 0 : componentDto.componentConfig), {}, {
|
|
9934
9933
|
value: val,
|
|
9935
|
-
disabled: t.isEdit || disabled,
|
|
9936
|
-
allowClear: true,
|
|
9937
9934
|
placement: "topLeft",
|
|
9938
9935
|
listHeight: 120,
|
|
9936
|
+
disabled: t.isEdit || disabled,
|
|
9939
9937
|
onChange: function onChange(e) {
|
|
9940
9938
|
return updateHandle(e, index, t.key);
|
|
9941
9939
|
}
|
|
9942
9940
|
}));
|
|
9943
9941
|
},
|
|
9944
|
-
|
|
9942
|
+
BASIC_MULT_SELECT: function BASIC_MULT_SELECT(_ref15) {
|
|
9945
9943
|
var val = _ref15.val,
|
|
9946
9944
|
record = _ref15.record,
|
|
9947
9945
|
index = _ref15.index,
|
|
@@ -9962,59 +9960,6 @@ var EditRenderMap = {
|
|
|
9962
9960
|
return updateHandle(e, index, t.key);
|
|
9963
9961
|
}
|
|
9964
9962
|
}));
|
|
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
|
-
});
|
|
10018
9963
|
}
|
|
10019
9964
|
};
|
|
10020
9965
|
|
|
@@ -10042,7 +9987,6 @@ function HoverTableRowDeleteIcon(_ref) {
|
|
|
10042
9987
|
}
|
|
10043
9988
|
|
|
10044
9989
|
var WidgetMap = {
|
|
10045
|
-
TRADE_ID_INPUT: 'tradeId',
|
|
10046
9990
|
INPUT: 'input',
|
|
10047
9991
|
TEXTAREA: 'textarea',
|
|
10048
9992
|
PICTURE: 'picture',
|
|
@@ -10069,8 +10013,8 @@ var SubForm = function SubForm(props) {
|
|
|
10069
10013
|
tableHeader = props.tableHeader,
|
|
10070
10014
|
disabled = props.disabled,
|
|
10071
10015
|
platform = props.platform,
|
|
10072
|
-
|
|
10073
|
-
|
|
10016
|
+
manual = props.manual,
|
|
10017
|
+
maxCount = props.maxCount;
|
|
10074
10018
|
var ref = React.useRef(null);
|
|
10075
10019
|
var isRequest = React.useRef(false);
|
|
10076
10020
|
var _useState = React.useState(false),
|
|
@@ -10145,6 +10089,7 @@ var SubForm = function SubForm(props) {
|
|
|
10145
10089
|
return deleteHandle(record.uuid);
|
|
10146
10090
|
}
|
|
10147
10091
|
});
|
|
10092
|
+
// return <div style={{ width: 25 }}>{index + 1}</div>;
|
|
10148
10093
|
}
|
|
10149
10094
|
}].concat(_toConsumableArray(newTableHeader.map(function (t) {
|
|
10150
10095
|
return {
|
|
@@ -10157,39 +10102,27 @@ var SubForm = function SubForm(props) {
|
|
|
10157
10102
|
ellipsis: true,
|
|
10158
10103
|
width: t.width,
|
|
10159
10104
|
render: function render(val, record, index) {
|
|
10160
|
-
|
|
10161
|
-
|
|
10162
|
-
|
|
10163
|
-
|
|
10164
|
-
|
|
10165
|
-
|
|
10166
|
-
|
|
10167
|
-
|
|
10168
|
-
|
|
10169
|
-
|
|
10170
|
-
|
|
10171
|
-
|
|
10172
|
-
|
|
10173
|
-
|
|
10174
|
-
|
|
10175
|
-
|
|
10176
|
-
|
|
10177
|
-
|
|
10178
|
-
updateHandle:
|
|
10179
|
-
|
|
10180
|
-
|
|
10181
|
-
} else {
|
|
10182
|
-
return /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
10183
|
-
style: {
|
|
10184
|
-
width: '100%'
|
|
10185
|
-
},
|
|
10186
|
-
value: val,
|
|
10187
|
-
onChange: function onChange(e) {
|
|
10188
|
-
var _e$target;
|
|
10189
|
-
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);
|
|
10190
|
-
}
|
|
10191
|
-
});
|
|
10192
|
-
}
|
|
10105
|
+
return EditRenderMap[t.workOrderComponentType] ? EditRenderMap[t.workOrderComponentType]({
|
|
10106
|
+
val: val,
|
|
10107
|
+
record: record,
|
|
10108
|
+
index: index,
|
|
10109
|
+
t: t,
|
|
10110
|
+
updateHandle: updateHandle,
|
|
10111
|
+
disabled: disabled,
|
|
10112
|
+
componentDto: componentDtoList.find(function (item) {
|
|
10113
|
+
return item.uniqueKey === t.key;
|
|
10114
|
+
}),
|
|
10115
|
+
platform: platform
|
|
10116
|
+
}) : /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
10117
|
+
style: {
|
|
10118
|
+
width: '100%'
|
|
10119
|
+
},
|
|
10120
|
+
value: val,
|
|
10121
|
+
onChange: function onChange(e) {
|
|
10122
|
+
var _e$target;
|
|
10123
|
+
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);
|
|
10124
|
+
}
|
|
10125
|
+
});
|
|
10193
10126
|
}
|
|
10194
10127
|
};
|
|
10195
10128
|
})), [disabled ? {} : {
|
|
@@ -10239,10 +10172,6 @@ var SubForm = function SubForm(props) {
|
|
|
10239
10172
|
item.render = function (val) {
|
|
10240
10173
|
return renderMap[t.workOrderComponentType](val, platform);
|
|
10241
10174
|
};
|
|
10242
|
-
} else if (renderSplitMap[t.key]) {
|
|
10243
|
-
item.render = function (val) {
|
|
10244
|
-
return renderSplitMap[t.key](val);
|
|
10245
|
-
};
|
|
10246
10175
|
}
|
|
10247
10176
|
return item;
|
|
10248
10177
|
})));
|
|
@@ -10257,11 +10186,7 @@ var SubForm = function SubForm(props) {
|
|
|
10257
10186
|
if (['PICTURE', 'FILE', 'BASIC_MULT_SELECT', 'CHECKBOX'].includes(next.workOrderComponentType)) {
|
|
10258
10187
|
item.defaultValue = [];
|
|
10259
10188
|
}
|
|
10260
|
-
|
|
10261
|
-
prv["".concat(next.key, "_").concat(WidgetMap[next.workOrderComponentType])] = item;
|
|
10262
|
-
} else {
|
|
10263
|
-
prv["".concat(next.key)] = item;
|
|
10264
|
-
}
|
|
10189
|
+
prv["".concat(next.key, "_").concat(WidgetMap[next.workOrderComponentType])] = item;
|
|
10265
10190
|
return prv;
|
|
10266
10191
|
}, {});
|
|
10267
10192
|
}, [newTableHeader]);
|
|
@@ -10278,7 +10203,7 @@ var SubForm = function SubForm(props) {
|
|
|
10278
10203
|
}).map(function (item) {
|
|
10279
10204
|
return {
|
|
10280
10205
|
label: item.name,
|
|
10281
|
-
value:
|
|
10206
|
+
value: "".concat(item.key, "_").concat(WidgetMap[item.workOrderComponentType])
|
|
10282
10207
|
};
|
|
10283
10208
|
});
|
|
10284
10209
|
setSelectKey(options === null || options === void 0 ? void 0 : (_options$ = options[0]) === null || _options$ === void 0 ? void 0 : _options$.value);
|
|
@@ -10320,7 +10245,6 @@ var SubForm = function SubForm(props) {
|
|
|
10320
10245
|
_ref2$componentList,
|
|
10321
10246
|
componentList,
|
|
10322
10247
|
params,
|
|
10323
|
-
queryComponents,
|
|
10324
10248
|
res,
|
|
10325
10249
|
data,
|
|
10326
10250
|
success,
|
|
@@ -10353,25 +10277,15 @@ var SubForm = function SubForm(props) {
|
|
|
10353
10277
|
}]
|
|
10354
10278
|
};
|
|
10355
10279
|
if (selectKey && inputValue) {
|
|
10356
|
-
queryComponents = [{
|
|
10280
|
+
params.queryComponents = [{
|
|
10357
10281
|
key: 'flowStatus',
|
|
10358
10282
|
symbol: 'in',
|
|
10359
10283
|
value: flowStatus
|
|
10284
|
+
}, {
|
|
10285
|
+
key: selectKey,
|
|
10286
|
+
symbol: 'in',
|
|
10287
|
+
value: [inputValue]
|
|
10360
10288
|
}];
|
|
10361
|
-
if (['0qFEv9GEyd_returnLogisticsCode', 'jbCFrJV4m7_trajectoryCode'].includes(selectKey)) {
|
|
10362
|
-
queryComponents.push({
|
|
10363
|
-
key: selectKey,
|
|
10364
|
-
symbol: 'like',
|
|
10365
|
-
value: inputValue
|
|
10366
|
-
});
|
|
10367
|
-
} else {
|
|
10368
|
-
queryComponents.push({
|
|
10369
|
-
key: selectKey,
|
|
10370
|
-
symbol: 'in',
|
|
10371
|
-
value: [inputValue]
|
|
10372
|
-
});
|
|
10373
|
-
}
|
|
10374
|
-
params.queryComponents = queryComponents;
|
|
10375
10289
|
}
|
|
10376
10290
|
_context.next = 7;
|
|
10377
10291
|
return extendRequest('/qy/view/workOrderList', {
|
|
@@ -10567,21 +10481,7 @@ var SubForm = function SubForm(props) {
|
|
|
10567
10481
|
placement: "bottom",
|
|
10568
10482
|
visible: open,
|
|
10569
10483
|
onVisibleChange: handleOpenChange
|
|
10570
|
-
},
|
|
10571
|
-
value: undefined,
|
|
10572
|
-
onChange: function onChange(val) {
|
|
10573
|
-
onChangeInput(val);
|
|
10574
|
-
},
|
|
10575
|
-
placeholder: "\u8BF7\u9009\u62E9\u7269\u6D41\u516C\u53F8",
|
|
10576
|
-
showSearch: true,
|
|
10577
|
-
allowClear: true,
|
|
10578
|
-
style: {
|
|
10579
|
-
width: '180px'
|
|
10580
|
-
},
|
|
10581
|
-
filterOption: function filterOption(input, option) {
|
|
10582
|
-
return option.label.includes(input);
|
|
10583
|
-
}
|
|
10584
|
-
}) : /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
10484
|
+
}, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
10585
10485
|
placeholder: "\u8F93\u5165\u5173\u952E\u8BCD\u67E5\u8BE2",
|
|
10586
10486
|
allowClear: true,
|
|
10587
10487
|
onChange: function onChange(e) {
|
|
@@ -13557,7 +13457,7 @@ var LogisticsTrajectory = function LogisticsTrajectory(props) {
|
|
|
13557
13457
|
if (disabled) {
|
|
13558
13458
|
return;
|
|
13559
13459
|
}
|
|
13560
|
-
if (['
|
|
13460
|
+
if (['SF', 'ZTO'].includes(newCompany) && !(newCompany && trajectoryCode && trajectoryPhone)) {
|
|
13561
13461
|
return;
|
|
13562
13462
|
} else if (!(newCompany && trajectoryCode)) {
|
|
13563
13463
|
return;
|
|
@@ -13693,7 +13593,7 @@ var LogisticsTrajectory = function LogisticsTrajectory(props) {
|
|
|
13693
13593
|
value: value === null || value === void 0 ? void 0 : value.trajectorySnapshot
|
|
13694
13594
|
});
|
|
13695
13595
|
};
|
|
13696
|
-
return /*#__PURE__*/React__default['default'].createElement("div", null, LogisticsCompany(), LogisticsCode(), ['SF', 'ZTO'
|
|
13596
|
+
return /*#__PURE__*/React__default['default'].createElement("div", null, LogisticsCompany(), LogisticsCode(), ['SF', 'ZTO'].includes(value === null || value === void 0 ? void 0 : value.trajectoryCompany) ? LogisticsPhone(value === null || value === void 0 ? void 0 : value.trajectoryCompany) : null, trajectoryApiStatus && isSingle && LogisticsApiStatus(), showField && showField.includes('snapshot') ? /*#__PURE__*/React__default['default'].createElement(LogisticsSnapshot, null) : null);
|
|
13697
13597
|
};
|
|
13698
13598
|
|
|
13699
13599
|
var LogisticsMoreTrajectory = function LogisticsMoreTrajectory(props) {
|
|
@@ -16075,7 +15975,6 @@ var getTableData$2 = function getTableData(_ref, formData) {
|
|
|
16075
15975
|
var current = _ref.current,
|
|
16076
15976
|
pageSize = _ref.pageSize;
|
|
16077
15977
|
var data = {
|
|
16078
|
-
goodShortName: formData.goodShortName || null,
|
|
16079
15978
|
goodNo: formData.goodNo || null,
|
|
16080
15979
|
goodName: formData.goodName || null,
|
|
16081
15980
|
skuCode: formData.skuCode || null,
|
|
@@ -19053,8 +18952,7 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
19053
18952
|
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
19054
18953
|
width: 180,
|
|
19055
18954
|
align: 'center',
|
|
19056
|
-
ellipsis: true
|
|
19057
|
-
render: renderTextEllipsis
|
|
18955
|
+
ellipsis: true
|
|
19058
18956
|
}, {
|
|
19059
18957
|
dataIndex: 'brandName',
|
|
19060
18958
|
title: "\u54C1\u724C\u540D\u79F0",
|
|
@@ -19188,8 +19086,7 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
19188
19086
|
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
19189
19087
|
width: 180,
|
|
19190
19088
|
align: 'center',
|
|
19191
|
-
ellipsis: true
|
|
19192
|
-
render: renderTextEllipsis
|
|
19089
|
+
ellipsis: true
|
|
19193
19090
|
}, {
|
|
19194
19091
|
dataIndex: 'brandName',
|
|
19195
19092
|
title: "\u54C1\u724C\u540D\u79F0",
|
|
@@ -19328,8 +19225,7 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
19328
19225
|
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
19329
19226
|
width: 180,
|
|
19330
19227
|
align: 'center',
|
|
19331
|
-
ellipsis: true
|
|
19332
|
-
render: renderTextEllipsis
|
|
19228
|
+
ellipsis: true
|
|
19333
19229
|
}, {
|
|
19334
19230
|
dataIndex: 'brandName',
|
|
19335
19231
|
title: "\u54C1\u724C\u540D\u79F0",
|
|
@@ -19506,8 +19402,7 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
19506
19402
|
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
19507
19403
|
width: 180,
|
|
19508
19404
|
align: 'center',
|
|
19509
|
-
ellipsis: true
|
|
19510
|
-
render: renderTextEllipsis
|
|
19405
|
+
ellipsis: true
|
|
19511
19406
|
}, {
|
|
19512
19407
|
dataIndex: 'brandName',
|
|
19513
19408
|
title: "\u54C1\u724C\u540D\u79F0",
|
|
@@ -20459,7 +20354,7 @@ var getColumns$5 = function getColumns() {
|
|
|
20459
20354
|
ellipsis: true,
|
|
20460
20355
|
align: 'center',
|
|
20461
20356
|
render: function render(val, record, index) {
|
|
20462
|
-
return (
|
|
20357
|
+
return (record.qty || 0) * (+record.salePrice || 0);
|
|
20463
20358
|
}
|
|
20464
20359
|
}, {
|
|
20465
20360
|
dataIndex: 'batchId',
|
|
@@ -20747,7 +20642,7 @@ var getColumns$5 = function getColumns() {
|
|
|
20747
20642
|
dataIndex: 'saleAmount',
|
|
20748
20643
|
title: '总金额',
|
|
20749
20644
|
render: function render(val, record) {
|
|
20750
|
-
return (
|
|
20645
|
+
return (record.qty || 0) * (+record.salePrice || 0);
|
|
20751
20646
|
}
|
|
20752
20647
|
}, {
|
|
20753
20648
|
dataIndex: 'batchId',
|
|
@@ -20862,7 +20757,7 @@ var getColumns$5 = function getColumns() {
|
|
|
20862
20757
|
dataIndex: 'saleAmount',
|
|
20863
20758
|
title: '总金额',
|
|
20864
20759
|
render: function render(val, record) {
|
|
20865
|
-
return (
|
|
20760
|
+
return (record.qty || 0) * (+record.salePrice || 0);
|
|
20866
20761
|
}
|
|
20867
20762
|
}, {
|
|
20868
20763
|
dataIndex: 'isGift',
|
|
@@ -21109,12 +21004,7 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
21109
21004
|
render: renderTextEllipsis
|
|
21110
21005
|
}, {
|
|
21111
21006
|
dataIndex: 'skuId',
|
|
21112
|
-
title: "\u5E73\u53F0\u89C4\
|
|
21113
|
-
width: 170,
|
|
21114
|
-
render: renderTextEllipsis
|
|
21115
|
-
}, {
|
|
21116
|
-
dataIndex: 'outerSkuId',
|
|
21117
|
-
title: "\u5E73\u53F0\u89C4\u683C\u7F16\u7801",
|
|
21007
|
+
title: "\u5E73\u53F0\u89C4\u683C\u7F16\u53F7",
|
|
21118
21008
|
width: 170,
|
|
21119
21009
|
render: renderTextEllipsis
|
|
21120
21010
|
}, {
|
|
@@ -21221,12 +21111,7 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
21221
21111
|
render: renderTextEllipsis
|
|
21222
21112
|
}, {
|
|
21223
21113
|
dataIndex: 'skuId',
|
|
21224
|
-
title: "\u5E73\u53F0\u89C4\
|
|
21225
|
-
width: 170,
|
|
21226
|
-
render: renderTextEllipsis
|
|
21227
|
-
}, {
|
|
21228
|
-
dataIndex: 'outerSkuId',
|
|
21229
|
-
title: "\u5E73\u53F0\u89C4\u683C\u7F16\u7801",
|
|
21114
|
+
title: "\u5E73\u53F0\u89C4\u683C\u7F16\u53F7",
|
|
21230
21115
|
width: 170,
|
|
21231
21116
|
render: renderTextEllipsis
|
|
21232
21117
|
}, {
|
|
@@ -21740,12 +21625,6 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
21740
21625
|
width: 150,
|
|
21741
21626
|
render: function render(val, record, index) {
|
|
21742
21627
|
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
21743
|
-
dropdownStyle: {
|
|
21744
|
-
zIndex: 2000
|
|
21745
|
-
},
|
|
21746
|
-
getPopupContainer: function getPopupContainer() {
|
|
21747
|
-
return document.body;
|
|
21748
|
-
},
|
|
21749
21628
|
value: val,
|
|
21750
21629
|
onChange: function onChange(value) {
|
|
21751
21630
|
updateHandle(value, index, 'bfit');
|
|
@@ -21775,12 +21654,6 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
21775
21654
|
width: 150,
|
|
21776
21655
|
render: function render(val, record, index) {
|
|
21777
21656
|
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
21778
|
-
dropdownStyle: {
|
|
21779
|
-
zIndex: 2000
|
|
21780
|
-
},
|
|
21781
|
-
getPopupContainer: function getPopupContainer() {
|
|
21782
|
-
return document.body;
|
|
21783
|
-
},
|
|
21784
21657
|
value: val,
|
|
21785
21658
|
onChange: function onChange(value) {
|
|
21786
21659
|
updateHandle(value, index, 'gift');
|
|
@@ -22566,7 +22439,7 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
22566
22439
|
}
|
|
22567
22440
|
}, isShowSelect && /*#__PURE__*/React__default['default'].createElement(antd.Row, {
|
|
22568
22441
|
style: {
|
|
22569
|
-
marginBottom: '
|
|
22442
|
+
marginBottom: '20px'
|
|
22570
22443
|
}
|
|
22571
22444
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
22572
22445
|
span: 12
|
|
@@ -27490,7 +27363,7 @@ var MsgStatus = function MsgStatus(props) {
|
|
|
27490
27363
|
onClick: function onClick() {
|
|
27491
27364
|
return setChangeIndex(index);
|
|
27492
27365
|
}
|
|
27493
|
-
}, kmkfUtils.msgTypeCh[key]
|
|
27366
|
+
}, kmkfUtils.msgTypeCh[key], item.ruleName);
|
|
27494
27367
|
}))) : null, type === 1 ? /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({}, other), {}, {
|
|
27495
27368
|
showSearch: true,
|
|
27496
27369
|
value: (_value$changeIndex = value[changeIndex]) === null || _value$changeIndex === void 0 ? void 0 : _value$changeIndex.status,
|
|
@@ -28068,7 +27941,7 @@ var GyReissue = function GyReissue(props) {
|
|
|
28068
27941
|
span: 12
|
|
28069
27942
|
},
|
|
28070
27943
|
sm: {
|
|
28071
|
-
span:
|
|
27944
|
+
span: 6
|
|
28072
27945
|
}
|
|
28073
27946
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Cascader, {
|
|
28074
27947
|
style: {
|
|
@@ -28371,7 +28244,7 @@ var GyReturnGoods = function GyReturnGoods(props) {
|
|
|
28371
28244
|
span: 12
|
|
28372
28245
|
},
|
|
28373
28246
|
sm: {
|
|
28374
|
-
span:
|
|
28247
|
+
span: 6
|
|
28375
28248
|
}
|
|
28376
28249
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Cascader, {
|
|
28377
28250
|
style: {
|
|
@@ -29134,4 +29007,3 @@ exports.getWdtColumns = getColumns$2;
|
|
|
29134
29007
|
exports.getWlnColumns = getColumns$3;
|
|
29135
29008
|
exports.orderSubFormConstants = orderSubFormConstants;
|
|
29136
29009
|
exports.renderMap = renderMap;
|
|
29137
|
-
exports.renderSplitMap = renderSplitMap;
|