@kmkf-fe-packages/basic-components 2.2.39-beta.8 → 2.2.39
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 -237
- package/dist/index.js +110 -237
- 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
|
|
|
@@ -10068,8 +10013,8 @@ var SubForm = function SubForm(props) {
|
|
|
10068
10013
|
tableHeader = props.tableHeader,
|
|
10069
10014
|
disabled = props.disabled,
|
|
10070
10015
|
platform = props.platform,
|
|
10071
|
-
|
|
10072
|
-
|
|
10016
|
+
manual = props.manual,
|
|
10017
|
+
maxCount = props.maxCount;
|
|
10073
10018
|
var ref = React.useRef(null);
|
|
10074
10019
|
var isRequest = React.useRef(false);
|
|
10075
10020
|
var _useState = React.useState(false),
|
|
@@ -10144,6 +10089,7 @@ var SubForm = function SubForm(props) {
|
|
|
10144
10089
|
return deleteHandle(record.uuid);
|
|
10145
10090
|
}
|
|
10146
10091
|
});
|
|
10092
|
+
// return <div style={{ width: 25 }}>{index + 1}</div>;
|
|
10147
10093
|
}
|
|
10148
10094
|
}].concat(_toConsumableArray(newTableHeader.map(function (t) {
|
|
10149
10095
|
return {
|
|
@@ -10156,39 +10102,27 @@ var SubForm = function SubForm(props) {
|
|
|
10156
10102
|
ellipsis: true,
|
|
10157
10103
|
width: t.width,
|
|
10158
10104
|
render: function render(val, record, index) {
|
|
10159
|
-
|
|
10160
|
-
|
|
10161
|
-
|
|
10162
|
-
|
|
10163
|
-
|
|
10164
|
-
|
|
10165
|
-
|
|
10166
|
-
|
|
10167
|
-
|
|
10168
|
-
|
|
10169
|
-
|
|
10170
|
-
|
|
10171
|
-
|
|
10172
|
-
|
|
10173
|
-
|
|
10174
|
-
|
|
10175
|
-
|
|
10176
|
-
|
|
10177
|
-
updateHandle:
|
|
10178
|
-
|
|
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
|
-
}
|
|
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
|
+
});
|
|
10192
10126
|
}
|
|
10193
10127
|
};
|
|
10194
10128
|
})), [disabled ? {} : {
|
|
@@ -10238,10 +10172,6 @@ var SubForm = function SubForm(props) {
|
|
|
10238
10172
|
item.render = function (val) {
|
|
10239
10173
|
return renderMap[t.workOrderComponentType](val, platform);
|
|
10240
10174
|
};
|
|
10241
|
-
} else if (renderSplitMap[t.key]) {
|
|
10242
|
-
item.render = function (val) {
|
|
10243
|
-
return renderSplitMap[t.key](val);
|
|
10244
|
-
};
|
|
10245
10175
|
}
|
|
10246
10176
|
return item;
|
|
10247
10177
|
})));
|
|
@@ -10256,11 +10186,7 @@ var SubForm = function SubForm(props) {
|
|
|
10256
10186
|
if (['PICTURE', 'FILE', 'BASIC_MULT_SELECT', 'CHECKBOX'].includes(next.workOrderComponentType)) {
|
|
10257
10187
|
item.defaultValue = [];
|
|
10258
10188
|
}
|
|
10259
|
-
|
|
10260
|
-
prv["".concat(next.key, "_").concat(WidgetMap[next.workOrderComponentType])] = item;
|
|
10261
|
-
} else {
|
|
10262
|
-
prv["".concat(next.key)] = item;
|
|
10263
|
-
}
|
|
10189
|
+
prv["".concat(next.key, "_").concat(WidgetMap[next.workOrderComponentType])] = item;
|
|
10264
10190
|
return prv;
|
|
10265
10191
|
}, {});
|
|
10266
10192
|
}, [newTableHeader]);
|
|
@@ -10277,7 +10203,7 @@ var SubForm = function SubForm(props) {
|
|
|
10277
10203
|
}).map(function (item) {
|
|
10278
10204
|
return {
|
|
10279
10205
|
label: item.name,
|
|
10280
|
-
value:
|
|
10206
|
+
value: "".concat(item.key, "_").concat(WidgetMap[item.workOrderComponentType])
|
|
10281
10207
|
};
|
|
10282
10208
|
});
|
|
10283
10209
|
setSelectKey(options === null || options === void 0 ? void 0 : (_options$ = options[0]) === null || _options$ === void 0 ? void 0 : _options$.value);
|
|
@@ -10319,7 +10245,6 @@ var SubForm = function SubForm(props) {
|
|
|
10319
10245
|
_ref2$componentList,
|
|
10320
10246
|
componentList,
|
|
10321
10247
|
params,
|
|
10322
|
-
queryComponents,
|
|
10323
10248
|
res,
|
|
10324
10249
|
data,
|
|
10325
10250
|
success,
|
|
@@ -10352,25 +10277,15 @@ var SubForm = function SubForm(props) {
|
|
|
10352
10277
|
}]
|
|
10353
10278
|
};
|
|
10354
10279
|
if (selectKey && inputValue) {
|
|
10355
|
-
queryComponents = [{
|
|
10280
|
+
params.queryComponents = [{
|
|
10356
10281
|
key: 'flowStatus',
|
|
10357
10282
|
symbol: 'in',
|
|
10358
10283
|
value: flowStatus
|
|
10284
|
+
}, {
|
|
10285
|
+
key: selectKey,
|
|
10286
|
+
symbol: 'in',
|
|
10287
|
+
value: [inputValue]
|
|
10359
10288
|
}];
|
|
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;
|
|
10374
10289
|
}
|
|
10375
10290
|
_context.next = 7;
|
|
10376
10291
|
return extendRequest('/qy/view/workOrderList', {
|
|
@@ -10566,21 +10481,7 @@ var SubForm = function SubForm(props) {
|
|
|
10566
10481
|
placement: "bottom",
|
|
10567
10482
|
visible: open,
|
|
10568
10483
|
onVisibleChange: handleOpenChange
|
|
10569
|
-
},
|
|
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, {
|
|
10484
|
+
}, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
10584
10485
|
placeholder: "\u8F93\u5165\u5173\u952E\u8BCD\u67E5\u8BE2",
|
|
10585
10486
|
allowClear: true,
|
|
10586
10487
|
onChange: function onChange(e) {
|
|
@@ -13556,7 +13457,7 @@ var LogisticsTrajectory = function LogisticsTrajectory(props) {
|
|
|
13556
13457
|
if (disabled) {
|
|
13557
13458
|
return;
|
|
13558
13459
|
}
|
|
13559
|
-
if (['
|
|
13460
|
+
if (['SF', 'ZTO'].includes(newCompany) && !(newCompany && trajectoryCode && trajectoryPhone)) {
|
|
13560
13461
|
return;
|
|
13561
13462
|
} else if (!(newCompany && trajectoryCode)) {
|
|
13562
13463
|
return;
|
|
@@ -13692,7 +13593,7 @@ var LogisticsTrajectory = function LogisticsTrajectory(props) {
|
|
|
13692
13593
|
value: value === null || value === void 0 ? void 0 : value.trajectorySnapshot
|
|
13693
13594
|
});
|
|
13694
13595
|
};
|
|
13695
|
-
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);
|
|
13696
13597
|
};
|
|
13697
13598
|
|
|
13698
13599
|
var LogisticsMoreTrajectory = function LogisticsMoreTrajectory(props) {
|
|
@@ -16074,7 +15975,6 @@ var getTableData$2 = function getTableData(_ref, formData) {
|
|
|
16074
15975
|
var current = _ref.current,
|
|
16075
15976
|
pageSize = _ref.pageSize;
|
|
16076
15977
|
var data = {
|
|
16077
|
-
goodShortName: formData.goodShortName || null,
|
|
16078
15978
|
goodNo: formData.goodNo || null,
|
|
16079
15979
|
goodName: formData.goodName || null,
|
|
16080
15980
|
skuCode: formData.skuCode || null,
|
|
@@ -19052,8 +18952,7 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
19052
18952
|
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
19053
18953
|
width: 180,
|
|
19054
18954
|
align: 'center',
|
|
19055
|
-
ellipsis: true
|
|
19056
|
-
render: renderTextEllipsis
|
|
18955
|
+
ellipsis: true
|
|
19057
18956
|
}, {
|
|
19058
18957
|
dataIndex: 'brandName',
|
|
19059
18958
|
title: "\u54C1\u724C\u540D\u79F0",
|
|
@@ -19187,8 +19086,7 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
19187
19086
|
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
19188
19087
|
width: 180,
|
|
19189
19088
|
align: 'center',
|
|
19190
|
-
ellipsis: true
|
|
19191
|
-
render: renderTextEllipsis
|
|
19089
|
+
ellipsis: true
|
|
19192
19090
|
}, {
|
|
19193
19091
|
dataIndex: 'brandName',
|
|
19194
19092
|
title: "\u54C1\u724C\u540D\u79F0",
|
|
@@ -19327,8 +19225,7 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
19327
19225
|
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
19328
19226
|
width: 180,
|
|
19329
19227
|
align: 'center',
|
|
19330
|
-
ellipsis: true
|
|
19331
|
-
render: renderTextEllipsis
|
|
19228
|
+
ellipsis: true
|
|
19332
19229
|
}, {
|
|
19333
19230
|
dataIndex: 'brandName',
|
|
19334
19231
|
title: "\u54C1\u724C\u540D\u79F0",
|
|
@@ -19505,8 +19402,7 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
19505
19402
|
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
19506
19403
|
width: 180,
|
|
19507
19404
|
align: 'center',
|
|
19508
|
-
ellipsis: true
|
|
19509
|
-
render: renderTextEllipsis
|
|
19405
|
+
ellipsis: true
|
|
19510
19406
|
}, {
|
|
19511
19407
|
dataIndex: 'brandName',
|
|
19512
19408
|
title: "\u54C1\u724C\u540D\u79F0",
|
|
@@ -20458,7 +20354,7 @@ var getColumns$5 = function getColumns() {
|
|
|
20458
20354
|
ellipsis: true,
|
|
20459
20355
|
align: 'center',
|
|
20460
20356
|
render: function render(val, record, index) {
|
|
20461
|
-
return (
|
|
20357
|
+
return (record.qty || 0) * (+record.salePrice || 0);
|
|
20462
20358
|
}
|
|
20463
20359
|
}, {
|
|
20464
20360
|
dataIndex: 'batchId',
|
|
@@ -20746,7 +20642,7 @@ var getColumns$5 = function getColumns() {
|
|
|
20746
20642
|
dataIndex: 'saleAmount',
|
|
20747
20643
|
title: '总金额',
|
|
20748
20644
|
render: function render(val, record) {
|
|
20749
|
-
return (
|
|
20645
|
+
return (record.qty || 0) * (+record.salePrice || 0);
|
|
20750
20646
|
}
|
|
20751
20647
|
}, {
|
|
20752
20648
|
dataIndex: 'batchId',
|
|
@@ -20861,7 +20757,7 @@ var getColumns$5 = function getColumns() {
|
|
|
20861
20757
|
dataIndex: 'saleAmount',
|
|
20862
20758
|
title: '总金额',
|
|
20863
20759
|
render: function render(val, record) {
|
|
20864
|
-
return (
|
|
20760
|
+
return (record.qty || 0) * (+record.salePrice || 0);
|
|
20865
20761
|
}
|
|
20866
20762
|
}, {
|
|
20867
20763
|
dataIndex: 'isGift',
|
|
@@ -21108,12 +21004,7 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
21108
21004
|
render: renderTextEllipsis
|
|
21109
21005
|
}, {
|
|
21110
21006
|
dataIndex: 'skuId',
|
|
21111
|
-
title: "\u5E73\u53F0\u89C4\
|
|
21112
|
-
width: 170,
|
|
21113
|
-
render: renderTextEllipsis
|
|
21114
|
-
}, {
|
|
21115
|
-
dataIndex: 'outerSkuId',
|
|
21116
|
-
title: "\u5E73\u53F0\u89C4\u683C\u7F16\u7801",
|
|
21007
|
+
title: "\u5E73\u53F0\u89C4\u683C\u7F16\u53F7",
|
|
21117
21008
|
width: 170,
|
|
21118
21009
|
render: renderTextEllipsis
|
|
21119
21010
|
}, {
|
|
@@ -21220,12 +21111,7 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
21220
21111
|
render: renderTextEllipsis
|
|
21221
21112
|
}, {
|
|
21222
21113
|
dataIndex: 'skuId',
|
|
21223
|
-
title: "\u5E73\u53F0\u89C4\
|
|
21224
|
-
width: 170,
|
|
21225
|
-
render: renderTextEllipsis
|
|
21226
|
-
}, {
|
|
21227
|
-
dataIndex: 'outerSkuId',
|
|
21228
|
-
title: "\u5E73\u53F0\u89C4\u683C\u7F16\u7801",
|
|
21114
|
+
title: "\u5E73\u53F0\u89C4\u683C\u7F16\u53F7",
|
|
21229
21115
|
width: 170,
|
|
21230
21116
|
render: renderTextEllipsis
|
|
21231
21117
|
}, {
|
|
@@ -21739,12 +21625,6 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
21739
21625
|
width: 150,
|
|
21740
21626
|
render: function render(val, record, index) {
|
|
21741
21627
|
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
21742
|
-
dropdownStyle: {
|
|
21743
|
-
zIndex: 2000
|
|
21744
|
-
},
|
|
21745
|
-
getPopupContainer: function getPopupContainer() {
|
|
21746
|
-
return document.body;
|
|
21747
|
-
},
|
|
21748
21628
|
value: val,
|
|
21749
21629
|
onChange: function onChange(value) {
|
|
21750
21630
|
updateHandle(value, index, 'bfit');
|
|
@@ -21774,12 +21654,6 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
21774
21654
|
width: 150,
|
|
21775
21655
|
render: function render(val, record, index) {
|
|
21776
21656
|
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
21777
|
-
dropdownStyle: {
|
|
21778
|
-
zIndex: 2000
|
|
21779
|
-
},
|
|
21780
|
-
getPopupContainer: function getPopupContainer() {
|
|
21781
|
-
return document.body;
|
|
21782
|
-
},
|
|
21783
21657
|
value: val,
|
|
21784
21658
|
onChange: function onChange(value) {
|
|
21785
21659
|
updateHandle(value, index, 'gift');
|
|
@@ -22565,7 +22439,7 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
22565
22439
|
}
|
|
22566
22440
|
}, isShowSelect && /*#__PURE__*/React__default['default'].createElement(antd.Row, {
|
|
22567
22441
|
style: {
|
|
22568
|
-
marginBottom: '
|
|
22442
|
+
marginBottom: '20px'
|
|
22569
22443
|
}
|
|
22570
22444
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
22571
22445
|
span: 12
|
|
@@ -27489,7 +27363,7 @@ var MsgStatus = function MsgStatus(props) {
|
|
|
27489
27363
|
onClick: function onClick() {
|
|
27490
27364
|
return setChangeIndex(index);
|
|
27491
27365
|
}
|
|
27492
|
-
}, kmkfUtils.msgTypeCh[key]
|
|
27366
|
+
}, kmkfUtils.msgTypeCh[key], item.ruleName);
|
|
27493
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), {}, {
|
|
27494
27368
|
showSearch: true,
|
|
27495
27369
|
value: (_value$changeIndex = value[changeIndex]) === null || _value$changeIndex === void 0 ? void 0 : _value$changeIndex.status,
|
|
@@ -28067,7 +27941,7 @@ var GyReissue = function GyReissue(props) {
|
|
|
28067
27941
|
span: 12
|
|
28068
27942
|
},
|
|
28069
27943
|
sm: {
|
|
28070
|
-
span:
|
|
27944
|
+
span: 6
|
|
28071
27945
|
}
|
|
28072
27946
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Cascader, {
|
|
28073
27947
|
style: {
|
|
@@ -28370,7 +28244,7 @@ var GyReturnGoods = function GyReturnGoods(props) {
|
|
|
28370
28244
|
span: 12
|
|
28371
28245
|
},
|
|
28372
28246
|
sm: {
|
|
28373
|
-
span:
|
|
28247
|
+
span: 6
|
|
28374
28248
|
}
|
|
28375
28249
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Cascader, {
|
|
28376
28250
|
style: {
|
|
@@ -29133,4 +29007,3 @@ exports.getWdtColumns = getColumns$2;
|
|
|
29133
29007
|
exports.getWlnColumns = getColumns$3;
|
|
29134
29008
|
exports.orderSubFormConstants = orderSubFormConstants;
|
|
29135
29009
|
exports.renderMap = renderMap;
|
|
29136
|
-
exports.renderSplitMap = renderSplitMap;
|