@kmkf-fe-packages/basic-components 2.2.39-beta.9 → 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/dist/index.esm.js CHANGED
@@ -8101,8 +8101,6 @@ var updateWorkTypeKeys = {
8101
8101
  BS_DEPOSIT: 'bsDeposit',
8102
8102
  NEW_PAYMENT_STATUS: 'newPaymentStatus',
8103
8103
  BUSINESS_ORDER_NO: 'businessOrderNo',
8104
- REPAIR_ORDER_SN: 'repairOrderSn',
8105
- REPAIR_ORDER_ID: 'repairOrderId',
8106
8104
  PAYMENT_VOUCHER_CODE: 'paymentVoucherCode',
8107
8105
  ACTUAL_RECEIPT_PAYMENT: 'actualReceiptPayment',
8108
8106
  WDT_SHOP: 'shopCode'
@@ -8454,10 +8452,7 @@ var processLogisticsTrajectory = function processLogisticsTrajectory(getValue) {
8454
8452
  var map = subFields.reduce(function (cur, nxt) {
8455
8453
  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
8454
  }, {});
8457
- var mapChild = subFields.reduce(function (cur, nxt) {
8458
- return nxt === 'trajectoryApiStatus' ? _objectSpread2(_objectSpread2({}, cur), {}, _defineProperty({}, "".concat(nex.uniqueKey, "_trajectoryApiStatus"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_trajectoryApiStatus")), {}))) : _objectSpread2(_objectSpread2({}, cur), {}, _defineProperty({}, "".concat(nex.uniqueKey, "_").concat(nxt), getValue("".concat(nex.uniqueKey, "_").concat(nxt))));
8459
- }, {});
8460
- return _objectSpread2(_defineProperty({}, nex.uniqueKey, map), mapChild);
8455
+ return _defineProperty({}, nex.uniqueKey, map);
8461
8456
  };
8462
8457
  };
8463
8458
  var processLogisticsTrajectoryMore = function processLogisticsTrajectoryMore(getValue) {
@@ -8481,12 +8476,12 @@ var processItemSelectThird = function processItemSelectThird(getValue) {
8481
8476
  };
8482
8477
  var processEnterPrisePayment = function processEnterPrisePayment(getValue) {
8483
8478
  return function (nex, config) {
8484
- var _ref33;
8479
+ var _ref34;
8485
8480
  var subFields = ['enterprisePaymentAlipayNick', 'enterprisePaymentAlipayNo', 'enterprisePaymentBuyerNick', 'enterprisePaymentBuyerOpenUid', 'enterprisePaymentRefundFee', 'enterprisePaymentStatus', 'enterprisePaymentTid'];
8486
8481
  var map = subFields.reduce(function (cur, nxt) {
8487
8482
  return _objectSpread2(_objectSpread2({}, cur), {}, _defineProperty({}, nxt, getValue("".concat(nex.uniqueKey, "_").concat(nxt))));
8488
8483
  }, {});
8489
- return _ref33 = {}, _defineProperty(_ref33, nex.uniqueKey, map), _defineProperty(_ref33, "".concat(nex.uniqueKey, "_enterprisePaymentAlipayNick"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentAlipayNick"))), _defineProperty(_ref33, "".concat(nex.uniqueKey, "_enterprisePaymentAlipayNo"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentAlipayNo"))), _defineProperty(_ref33, "".concat(nex.uniqueKey, "_enterprisePaymentBuyerNick"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentBuyerNick"))), _defineProperty(_ref33, "".concat(nex.uniqueKey, "_enterprisePaymentRefundFee"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentRefundFee"))), _defineProperty(_ref33, "".concat(nex.uniqueKey, "_enterprisePaymentStatus"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentStatus"))), _defineProperty(_ref33, "".concat(nex.uniqueKey, "_enterprisePaymentTime"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentTime"))), _defineProperty(_ref33, "".concat(nex.uniqueKey, "_enterprisePaymentTid"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentTid"))), _ref33;
8484
+ 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;
8490
8485
  };
8491
8486
  };
8492
8487
  var processJstLogistics = function processJstLogistics(getValue) {
@@ -8585,10 +8580,6 @@ var processCallBackStatus = function processCallBackStatus(getValue) {
8585
8580
  RETURN_EXCHANGE_GOODS_REVIEW_STATUS: {
8586
8581
  status: 'returnExchangeGoodsReviewStatusValue',
8587
8582
  reason: 'returnExchangeGoodsReviewStatusReason'
8588
- },
8589
- REPAIR_ORDER_STATUS: {
8590
- status: 'repairOrderStatusValue',
8591
- reason: 'repairOrderStatusReason'
8592
8583
  }
8593
8584
  };
8594
8585
  return _defineProperty({}, nex.uniqueKey, {
@@ -9249,14 +9240,14 @@ var processJstReturnGoods = function processJstReturnGoods(templateColumns) {
9249
9240
  };
9250
9241
  var processLabel = function processLabel(getValue) {
9251
9242
  return function (nex, config) {
9252
- var _ref73;
9253
- return _ref73 = {}, _defineProperty(_ref73, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _defineProperty(_ref73, "".concat(nex.uniqueKey, "_label"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _ref73;
9243
+ var _ref74;
9244
+ 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;
9254
9245
  };
9255
9246
  };
9256
9247
  var processMemberLevel = function processMemberLevel(getValue) {
9257
9248
  return function (nex, config) {
9258
- var _ref74;
9259
- return _ref74 = {}, _defineProperty(_ref74, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _defineProperty(_ref74, "".concat(nex.uniqueKey, "_memberLevel"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _ref74;
9249
+ var _ref75;
9250
+ 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;
9260
9251
  };
9261
9252
  };
9262
9253
  var processAfterSalesOrderId = function processAfterSalesOrderId(getValue) {
@@ -9353,7 +9344,6 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
9353
9344
  AGREE_RETURN_GOODS_STATUS: processCallBackStatus,
9354
9345
  REJECT_RETURN_GOODS_STATUS: processCallBackStatus,
9355
9346
  RETURN_EXCHANGE_GOODS_REVIEW_STATUS: processCallBackStatus,
9356
- REPAIR_ORDER_STATUS: processCallBackStatus,
9357
9347
  RETURN_GOODS_STATUS: processSceneStatus,
9358
9348
  EXCHANGE_STATUS: processSceneStatus,
9359
9349
  WAREHOUSING_STATUS: processSceneStatus,
@@ -9433,8 +9423,6 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
9433
9423
  BS_DEPOSIT: processSingleField,
9434
9424
  NEW_PAYMENT_STATUS: processSingleField,
9435
9425
  BUSINESS_ORDER_NO: processSingleField,
9436
- REPAIR_ORDER_SN: processSingleField,
9437
- REPAIR_ORDER_ID: processSingleField,
9438
9426
  PAYMENT_VOUCHER_CODE: processSingleField,
9439
9427
  BS_E3_REISSUE_GOODS: processBsE3ReissueGoods(templateColumns),
9440
9428
  ACTUAL_RECEIPT_PAYMENT: processSingleField,
@@ -9551,6 +9539,7 @@ var FileRender = function FileRender(_ref) {
9551
9539
  cursor: 'pointer'
9552
9540
  },
9553
9541
  onClick: function onClick(e) {
9542
+ console.log('onPreview');
9554
9543
  e.preventDefault();
9555
9544
  onPreview(item);
9556
9545
  },
@@ -9646,9 +9635,6 @@ var PictureRender = function PictureRender(_ref2) {
9646
9635
  }));
9647
9636
  }));
9648
9637
  };
9649
- var LogisticsCompanyRender = function LogisticsCompanyRender(value) {
9650
- return ExpressData.getInstance().getExpressNameByCode(value) || value;
9651
- };
9652
9638
  var MultipleSelectRender = function MultipleSelectRender(_ref5) {
9653
9639
  var _ref5$value = _ref5.value,
9654
9640
  value = _ref5$value === void 0 ? [] : _ref5$value;
@@ -9683,16 +9669,6 @@ var renderMap = {
9683
9669
  });
9684
9670
  }
9685
9671
  };
9686
- var renderSplitMap = {
9687
- //物流轨迹-物流公司
9688
- jbCFrJV4m7_trajectoryCompany: function jbCFrJV4m7_trajectoryCompany(value) {
9689
- return LogisticsCompanyRender(value);
9690
- },
9691
- //退货物流-物流公司
9692
- '0qFEv9GEyd_returnLogisticsCompany': function qFEv9GEyd_returnLogisticsCompany(value) {
9693
- return LogisticsCompanyRender(value);
9694
- }
9695
- };
9696
9672
  var EditPictureRender = function EditPictureRender(_ref6) {
9697
9673
  var _ref6$val = _ref6.val,
9698
9674
  val = _ref6$val === void 0 ? [] : _ref6$val,
@@ -9786,13 +9762,13 @@ var EditFileRender = function EditFileRender(_ref7) {
9786
9762
  }));
9787
9763
  };
9788
9764
  var EditRenderMap = {
9789
- INPUT: function INPUT(_ref9) {
9790
- var val = _ref9.val,
9791
- record = _ref9.record,
9792
- index = _ref9.index,
9793
- t = _ref9.t,
9794
- updateHandle = _ref9.updateHandle,
9795
- disabled = _ref9.disabled;
9765
+ INPUT: function INPUT(_ref8) {
9766
+ var val = _ref8.val,
9767
+ record = _ref8.record,
9768
+ index = _ref8.index,
9769
+ t = _ref8.t,
9770
+ updateHandle = _ref8.updateHandle,
9771
+ disabled = _ref8.disabled;
9796
9772
  var precisionValue = t.precision === 'nolimit' ? undefined : t.precision;
9797
9773
  return !t.isEdit && !disabled ? t.isNumber ? /*#__PURE__*/React.createElement(InputNumber, {
9798
9774
  style: {
@@ -9815,13 +9791,13 @@ var EditRenderMap = {
9815
9791
  }
9816
9792
  }) : /*#__PURE__*/React.createElement("div", null, val);
9817
9793
  },
9818
- TEXTAREA: function TEXTAREA(_ref10) {
9819
- var val = _ref10.val,
9820
- record = _ref10.record,
9821
- index = _ref10.index,
9822
- t = _ref10.t,
9823
- updateHandle = _ref10.updateHandle,
9824
- disabled = _ref10.disabled;
9794
+ TEXTAREA: function TEXTAREA(_ref9) {
9795
+ var val = _ref9.val,
9796
+ record = _ref9.record,
9797
+ index = _ref9.index,
9798
+ t = _ref9.t,
9799
+ updateHandle = _ref9.updateHandle,
9800
+ disabled = _ref9.disabled;
9825
9801
  var precisionValue = t.precision === 'nolimit' ? undefined : t.precision;
9826
9802
  return !t.isEdit && !disabled ? t.isNumber ? /*#__PURE__*/React.createElement(InputNumber, {
9827
9803
  style: {
@@ -9844,7 +9820,25 @@ var EditRenderMap = {
9844
9820
  }
9845
9821
  }) : /*#__PURE__*/React.createElement("div", null, val);
9846
9822
  },
9847
- PICTURE: function PICTURE(_ref11) {
9823
+ PICTURE: function PICTURE(_ref10) {
9824
+ var val = _ref10.val,
9825
+ record = _ref10.record,
9826
+ index = _ref10.index,
9827
+ t = _ref10.t,
9828
+ updateHandle = _ref10.updateHandle,
9829
+ disabled = _ref10.disabled,
9830
+ platform = _ref10.platform;
9831
+ return /*#__PURE__*/React.createElement(EditPictureRender, {
9832
+ val: val,
9833
+ t: t,
9834
+ disabled: disabled,
9835
+ index: index,
9836
+ updateHandle: updateHandle,
9837
+ hostUrl: hostUrl,
9838
+ platform: platform
9839
+ });
9840
+ },
9841
+ FILE: function FILE(_ref11) {
9848
9842
  var val = _ref11.val,
9849
9843
  record = _ref11.record,
9850
9844
  index = _ref11.index,
@@ -9852,7 +9846,7 @@ var EditRenderMap = {
9852
9846
  updateHandle = _ref11.updateHandle,
9853
9847
  disabled = _ref11.disabled,
9854
9848
  platform = _ref11.platform;
9855
- return /*#__PURE__*/React.createElement(EditPictureRender, {
9849
+ return /*#__PURE__*/React.createElement(EditFileRender, {
9856
9850
  val: val,
9857
9851
  t: t,
9858
9852
  disabled: disabled,
@@ -9862,25 +9856,30 @@ var EditRenderMap = {
9862
9856
  platform: platform
9863
9857
  });
9864
9858
  },
9865
- FILE: function FILE(_ref12) {
9859
+ RADIO: function RADIO(_ref12) {
9866
9860
  var val = _ref12.val,
9867
9861
  record = _ref12.record,
9868
9862
  index = _ref12.index,
9869
9863
  t = _ref12.t,
9870
9864
  updateHandle = _ref12.updateHandle,
9871
9865
  disabled = _ref12.disabled,
9872
- platform = _ref12.platform;
9873
- return /*#__PURE__*/React.createElement(EditFileRender, {
9874
- val: val,
9875
- t: t,
9876
- disabled: disabled,
9877
- index: index,
9878
- updateHandle: updateHandle,
9879
- hostUrl: hostUrl,
9880
- platform: platform
9881
- });
9866
+ componentDto = _ref12.componentDto;
9867
+ return /*#__PURE__*/React.createElement(ApaasSelect, _objectSpread2(_objectSpread2({
9868
+ getPopupContainer: function getPopupContainer() {
9869
+ return document.getElementById('subform');
9870
+ }
9871
+ }, componentDto === null || componentDto === void 0 ? void 0 : componentDto.componentConfig), {}, {
9872
+ value: val,
9873
+ disabled: t.isEdit || disabled,
9874
+ allowClear: true,
9875
+ placement: "topLeft",
9876
+ listHeight: 120,
9877
+ onChange: function onChange(e) {
9878
+ return updateHandle(e, index, t.key);
9879
+ }
9880
+ }));
9882
9881
  },
9883
- RADIO: function RADIO(_ref13) {
9882
+ SELECT: function SELECT(_ref13) {
9884
9883
  var val = _ref13.val,
9885
9884
  record = _ref13.record,
9886
9885
  index = _ref13.index,
@@ -9903,7 +9902,7 @@ var EditRenderMap = {
9903
9902
  }
9904
9903
  }));
9905
9904
  },
9906
- SELECT: function SELECT(_ref14) {
9905
+ CHECKBOX: function CHECKBOX(_ref14) {
9907
9906
  var val = _ref14.val,
9908
9907
  record = _ref14.record,
9909
9908
  index = _ref14.index,
@@ -9911,22 +9910,21 @@ var EditRenderMap = {
9911
9910
  updateHandle = _ref14.updateHandle,
9912
9911
  disabled = _ref14.disabled,
9913
9912
  componentDto = _ref14.componentDto;
9914
- return /*#__PURE__*/React.createElement(ApaasSelect, _objectSpread2(_objectSpread2({
9913
+ return /*#__PURE__*/React.createElement(ApaasMultipleSelect, _objectSpread2(_objectSpread2({
9915
9914
  getPopupContainer: function getPopupContainer() {
9916
9915
  return document.getElementById('subform');
9917
9916
  }
9918
9917
  }, componentDto === null || componentDto === void 0 ? void 0 : componentDto.componentConfig), {}, {
9919
9918
  value: val,
9920
- disabled: t.isEdit || disabled,
9921
- allowClear: true,
9922
9919
  placement: "topLeft",
9923
9920
  listHeight: 120,
9921
+ disabled: t.isEdit || disabled,
9924
9922
  onChange: function onChange(e) {
9925
9923
  return updateHandle(e, index, t.key);
9926
9924
  }
9927
9925
  }));
9928
9926
  },
9929
- CHECKBOX: function CHECKBOX(_ref15) {
9927
+ BASIC_MULT_SELECT: function BASIC_MULT_SELECT(_ref15) {
9930
9928
  var val = _ref15.val,
9931
9929
  record = _ref15.record,
9932
9930
  index = _ref15.index,
@@ -9947,59 +9945,6 @@ var EditRenderMap = {
9947
9945
  return updateHandle(e, index, t.key);
9948
9946
  }
9949
9947
  }));
9950
- },
9951
- BASIC_MULT_SELECT: function BASIC_MULT_SELECT(_ref16) {
9952
- var val = _ref16.val,
9953
- record = _ref16.record,
9954
- index = _ref16.index,
9955
- t = _ref16.t,
9956
- updateHandle = _ref16.updateHandle,
9957
- disabled = _ref16.disabled,
9958
- componentDto = _ref16.componentDto;
9959
- return /*#__PURE__*/React.createElement(ApaasMultipleSelect, _objectSpread2(_objectSpread2({
9960
- getPopupContainer: function getPopupContainer() {
9961
- return document.getElementById('subform');
9962
- }
9963
- }, componentDto === null || componentDto === void 0 ? void 0 : componentDto.componentConfig), {}, {
9964
- value: val,
9965
- placement: "topLeft",
9966
- listHeight: 120,
9967
- disabled: t.isEdit || disabled,
9968
- onChange: function onChange(e) {
9969
- return updateHandle(e, index, t.key);
9970
- }
9971
- }));
9972
- }
9973
- };
9974
- var EditSplitRenderMap = {
9975
- jbCFrJV4m7_trajectoryCompany: function jbCFrJV4m7_trajectoryCompany(_ref17) {
9976
- var val = _ref17.val,
9977
- index = _ref17.index,
9978
- t = _ref17.t,
9979
- updateHandle = _ref17.updateHandle,
9980
- disabled = _ref17.disabled;
9981
- return /*#__PURE__*/React.createElement(ApaasLogistics, {
9982
- value: val,
9983
- onChange: function onChange(e) {
9984
- return updateHandle(e, index, t.key);
9985
- },
9986
- disabled: disabled
9987
- });
9988
- },
9989
- //退货物流-物流公司
9990
- '0qFEv9GEyd_returnLogisticsCompany': function qFEv9GEyd_returnLogisticsCompany(_ref18) {
9991
- var val = _ref18.val,
9992
- index = _ref18.index,
9993
- t = _ref18.t,
9994
- updateHandle = _ref18.updateHandle,
9995
- disabled = _ref18.disabled;
9996
- return /*#__PURE__*/React.createElement(ApaasLogistics, {
9997
- value: val,
9998
- onChange: function onChange(e) {
9999
- return updateHandle(e, index, t.key);
10000
- },
10001
- disabled: disabled
10002
- });
10003
9948
  }
10004
9949
  };
10005
9950
 
@@ -10027,7 +9972,6 @@ function HoverTableRowDeleteIcon(_ref) {
10027
9972
  }
10028
9973
 
10029
9974
  var WidgetMap = {
10030
- TRADE_ID_INPUT: 'tradeId',
10031
9975
  INPUT: 'input',
10032
9976
  TEXTAREA: 'textarea',
10033
9977
  PICTURE: 'picture',
@@ -10054,8 +9998,8 @@ var SubForm = function SubForm(props) {
10054
9998
  tableHeader = props.tableHeader,
10055
9999
  disabled = props.disabled,
10056
10000
  platform = props.platform,
10057
- maxCount = props.maxCount,
10058
- manual = props.manual;
10001
+ manual = props.manual,
10002
+ maxCount = props.maxCount;
10059
10003
  var ref = useRef(null);
10060
10004
  var isRequest = useRef(false);
10061
10005
  var _useState = useState(false),
@@ -10130,6 +10074,7 @@ var SubForm = function SubForm(props) {
10130
10074
  return deleteHandle(record.uuid);
10131
10075
  }
10132
10076
  });
10077
+ // return <div style={{ width: 25 }}>{index + 1}</div>;
10133
10078
  }
10134
10079
  }].concat(_toConsumableArray(newTableHeader.map(function (t) {
10135
10080
  return {
@@ -10142,39 +10087,27 @@ var SubForm = function SubForm(props) {
10142
10087
  ellipsis: true,
10143
10088
  width: t.width,
10144
10089
  render: function render(val, record, index) {
10145
- if (EditRenderMap[t.workOrderComponentType]) {
10146
- return EditRenderMap[t.workOrderComponentType]({
10147
- val: val,
10148
- record: record,
10149
- index: index,
10150
- t: t,
10151
- updateHandle: updateHandle,
10152
- disabled: disabled,
10153
- componentDto: componentDtoList.find(function (item) {
10154
- return item.uniqueKey === t.key;
10155
- }),
10156
- platform: platform
10157
- });
10158
- } else if (EditSplitRenderMap[t.key]) {
10159
- return EditSplitRenderMap[t.key]({
10160
- val: val,
10161
- index: index,
10162
- t: t,
10163
- updateHandle: updateHandle,
10164
- disabled: disabled
10165
- });
10166
- } else {
10167
- return /*#__PURE__*/React.createElement(Input, {
10168
- style: {
10169
- width: '100%'
10170
- },
10171
- value: val,
10172
- onChange: function onChange(e) {
10173
- var _e$target;
10174
- 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);
10175
- }
10176
- });
10177
- }
10090
+ return EditRenderMap[t.workOrderComponentType] ? EditRenderMap[t.workOrderComponentType]({
10091
+ val: val,
10092
+ record: record,
10093
+ index: index,
10094
+ t: t,
10095
+ updateHandle: updateHandle,
10096
+ disabled: disabled,
10097
+ componentDto: componentDtoList.find(function (item) {
10098
+ return item.uniqueKey === t.key;
10099
+ }),
10100
+ platform: platform
10101
+ }) : /*#__PURE__*/React.createElement(Input, {
10102
+ style: {
10103
+ width: '100%'
10104
+ },
10105
+ value: val,
10106
+ onChange: function onChange(e) {
10107
+ var _e$target;
10108
+ 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);
10109
+ }
10110
+ });
10178
10111
  }
10179
10112
  };
10180
10113
  })), [disabled ? {} : {
@@ -10224,10 +10157,6 @@ var SubForm = function SubForm(props) {
10224
10157
  item.render = function (val) {
10225
10158
  return renderMap[t.workOrderComponentType](val, platform);
10226
10159
  };
10227
- } else if (renderSplitMap[t.key]) {
10228
- item.render = function (val) {
10229
- return renderSplitMap[t.key](val);
10230
- };
10231
10160
  }
10232
10161
  return item;
10233
10162
  })));
@@ -10242,11 +10171,7 @@ var SubForm = function SubForm(props) {
10242
10171
  if (['PICTURE', 'FILE', 'BASIC_MULT_SELECT', 'CHECKBOX'].includes(next.workOrderComponentType)) {
10243
10172
  item.defaultValue = [];
10244
10173
  }
10245
- if (!['LOGISTICS_TRAJECTORY', 'RETURN_LOGISTICS_SELECT'].includes(next.workOrderComponentType)) {
10246
- prv["".concat(next.key, "_").concat(WidgetMap[next.workOrderComponentType])] = item;
10247
- } else {
10248
- prv["".concat(next.key)] = item;
10249
- }
10174
+ prv["".concat(next.key, "_").concat(WidgetMap[next.workOrderComponentType])] = item;
10250
10175
  return prv;
10251
10176
  }, {});
10252
10177
  }, [newTableHeader]);
@@ -10263,7 +10188,7 @@ var SubForm = function SubForm(props) {
10263
10188
  }).map(function (item) {
10264
10189
  return {
10265
10190
  label: item.name,
10266
- value: WidgetMap[item.workOrderComponentType] ? "".concat(item.key, "_").concat(WidgetMap[item.workOrderComponentType]) : item.key
10191
+ value: "".concat(item.key, "_").concat(WidgetMap[item.workOrderComponentType])
10267
10192
  };
10268
10193
  });
10269
10194
  setSelectKey(options === null || options === void 0 ? void 0 : (_options$ = options[0]) === null || _options$ === void 0 ? void 0 : _options$.value);
@@ -10305,7 +10230,6 @@ var SubForm = function SubForm(props) {
10305
10230
  _ref2$componentList,
10306
10231
  componentList,
10307
10232
  params,
10308
- queryComponents,
10309
10233
  res,
10310
10234
  data,
10311
10235
  success,
@@ -10338,25 +10262,15 @@ var SubForm = function SubForm(props) {
10338
10262
  }]
10339
10263
  };
10340
10264
  if (selectKey && inputValue) {
10341
- queryComponents = [{
10265
+ params.queryComponents = [{
10342
10266
  key: 'flowStatus',
10343
10267
  symbol: 'in',
10344
10268
  value: flowStatus
10269
+ }, {
10270
+ key: selectKey,
10271
+ symbol: 'in',
10272
+ value: [inputValue]
10345
10273
  }];
10346
- if (['0qFEv9GEyd_returnLogisticsCode', 'jbCFrJV4m7_trajectoryCode'].includes(selectKey)) {
10347
- queryComponents.push({
10348
- key: selectKey,
10349
- symbol: 'like',
10350
- value: inputValue
10351
- });
10352
- } else {
10353
- queryComponents.push({
10354
- key: selectKey,
10355
- symbol: 'in',
10356
- value: [inputValue]
10357
- });
10358
- }
10359
- params.queryComponents = queryComponents;
10360
10274
  }
10361
10275
  _context.next = 7;
10362
10276
  return extendRequest('/qy/view/workOrderList', {
@@ -10552,21 +10466,7 @@ var SubForm = function SubForm(props) {
10552
10466
  placement: "bottom",
10553
10467
  visible: open,
10554
10468
  onVisibleChange: handleOpenChange
10555
- }, ['0qFEv9GEyd_returnLogisticsCompany', 'jbCFrJV4m7_trajectoryCompany'].includes(selectKey) ? /*#__PURE__*/React.createElement(ApaasLogistics, {
10556
- value: undefined,
10557
- onChange: function onChange(val) {
10558
- onChangeInput(val);
10559
- },
10560
- placeholder: "\u8BF7\u9009\u62E9\u7269\u6D41\u516C\u53F8",
10561
- showSearch: true,
10562
- allowClear: true,
10563
- style: {
10564
- width: '180px'
10565
- },
10566
- filterOption: function filterOption(input, option) {
10567
- return option.label.includes(input);
10568
- }
10569
- }) : /*#__PURE__*/React.createElement(Input, {
10469
+ }, /*#__PURE__*/React.createElement(Input, {
10570
10470
  placeholder: "\u8F93\u5165\u5173\u952E\u8BCD\u67E5\u8BE2",
10571
10471
  allowClear: true,
10572
10472
  onChange: function onChange(e) {
@@ -13542,7 +13442,7 @@ var LogisticsTrajectory = function LogisticsTrajectory(props) {
13542
13442
  if (disabled) {
13543
13443
  return;
13544
13444
  }
13545
- if (['KYE', 'SF', 'ZTO'].includes(newCompany) && !(newCompany && trajectoryCode && trajectoryPhone)) {
13445
+ if (['SF', 'ZTO'].includes(newCompany) && !(newCompany && trajectoryCode && trajectoryPhone)) {
13546
13446
  return;
13547
13447
  } else if (!(newCompany && trajectoryCode)) {
13548
13448
  return;
@@ -13678,7 +13578,7 @@ var LogisticsTrajectory = function LogisticsTrajectory(props) {
13678
13578
  value: value === null || value === void 0 ? void 0 : value.trajectorySnapshot
13679
13579
  });
13680
13580
  };
13681
- return /*#__PURE__*/React.createElement("div", null, LogisticsCompany(), LogisticsCode(), ['SF', 'ZTO', 'KYE'].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.createElement(LogisticsSnapshot, null) : null);
13581
+ return /*#__PURE__*/React.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.createElement(LogisticsSnapshot, null) : null);
13682
13582
  };
13683
13583
 
13684
13584
  var LogisticsMoreTrajectory = function LogisticsMoreTrajectory(props) {
@@ -16060,7 +15960,6 @@ var getTableData$2 = function getTableData(_ref, formData) {
16060
15960
  var current = _ref.current,
16061
15961
  pageSize = _ref.pageSize;
16062
15962
  var data = {
16063
- goodShortName: formData.goodShortName || null,
16064
15963
  goodNo: formData.goodNo || null,
16065
15964
  goodName: formData.goodName || null,
16066
15965
  skuCode: formData.skuCode || null,
@@ -19038,8 +18937,7 @@ var getColumns$2 = function getColumns(_ref) {
19038
18937
  title: "\u5E73\u53F0\u89C4\u683CID",
19039
18938
  width: 180,
19040
18939
  align: 'center',
19041
- ellipsis: true,
19042
- render: renderTextEllipsis
18940
+ ellipsis: true
19043
18941
  }, {
19044
18942
  dataIndex: 'brandName',
19045
18943
  title: "\u54C1\u724C\u540D\u79F0",
@@ -19173,8 +19071,7 @@ var getColumns$2 = function getColumns(_ref) {
19173
19071
  title: "\u5E73\u53F0\u89C4\u683CID",
19174
19072
  width: 180,
19175
19073
  align: 'center',
19176
- ellipsis: true,
19177
- render: renderTextEllipsis
19074
+ ellipsis: true
19178
19075
  }, {
19179
19076
  dataIndex: 'brandName',
19180
19077
  title: "\u54C1\u724C\u540D\u79F0",
@@ -19313,8 +19210,7 @@ var getColumns$2 = function getColumns(_ref) {
19313
19210
  title: "\u5E73\u53F0\u89C4\u683CID",
19314
19211
  width: 180,
19315
19212
  align: 'center',
19316
- ellipsis: true,
19317
- render: renderTextEllipsis
19213
+ ellipsis: true
19318
19214
  }, {
19319
19215
  dataIndex: 'brandName',
19320
19216
  title: "\u54C1\u724C\u540D\u79F0",
@@ -19491,8 +19387,7 @@ var getColumns$2 = function getColumns(_ref) {
19491
19387
  title: "\u5E73\u53F0\u89C4\u683CID",
19492
19388
  width: 180,
19493
19389
  align: 'center',
19494
- ellipsis: true,
19495
- render: renderTextEllipsis
19390
+ ellipsis: true
19496
19391
  }, {
19497
19392
  dataIndex: 'brandName',
19498
19393
  title: "\u54C1\u724C\u540D\u79F0",
@@ -20444,7 +20339,7 @@ var getColumns$5 = function getColumns() {
20444
20339
  ellipsis: true,
20445
20340
  align: 'center',
20446
20341
  render: function render(val, record, index) {
20447
- return ((record.qty || 0) * (+record.salePrice || 0)).toFixed(2);
20342
+ return (record.qty || 0) * (+record.salePrice || 0);
20448
20343
  }
20449
20344
  }, {
20450
20345
  dataIndex: 'batchId',
@@ -20732,7 +20627,7 @@ var getColumns$5 = function getColumns() {
20732
20627
  dataIndex: 'saleAmount',
20733
20628
  title: '总金额',
20734
20629
  render: function render(val, record) {
20735
- return ((record.qty || 0) * (+record.salePrice || 0)).toFixed(2);
20630
+ return (record.qty || 0) * (+record.salePrice || 0);
20736
20631
  }
20737
20632
  }, {
20738
20633
  dataIndex: 'batchId',
@@ -20847,7 +20742,7 @@ var getColumns$5 = function getColumns() {
20847
20742
  dataIndex: 'saleAmount',
20848
20743
  title: '总金额',
20849
20744
  render: function render(val, record) {
20850
- return ((record.qty || 0) * (+record.salePrice || 0)).toFixed(2);
20745
+ return (record.qty || 0) * (+record.salePrice || 0);
20851
20746
  }
20852
20747
  }, {
20853
20748
  dataIndex: 'isGift',
@@ -21094,12 +20989,7 @@ var getColumns$6 = function getColumns(_ref) {
21094
20989
  render: renderTextEllipsis
21095
20990
  }, {
21096
20991
  dataIndex: 'skuId',
21097
- title: "\u5E73\u53F0\u89C4\u683CID",
21098
- width: 170,
21099
- render: renderTextEllipsis
21100
- }, {
21101
- dataIndex: 'outerSkuId',
21102
- title: "\u5E73\u53F0\u89C4\u683C\u7F16\u7801",
20992
+ title: "\u5E73\u53F0\u89C4\u683C\u7F16\u53F7",
21103
20993
  width: 170,
21104
20994
  render: renderTextEllipsis
21105
20995
  }, {
@@ -21206,12 +21096,7 @@ var getColumns$6 = function getColumns(_ref) {
21206
21096
  render: renderTextEllipsis
21207
21097
  }, {
21208
21098
  dataIndex: 'skuId',
21209
- title: "\u5E73\u53F0\u89C4\u683CID",
21210
- width: 170,
21211
- render: renderTextEllipsis
21212
- }, {
21213
- dataIndex: 'outerSkuId',
21214
- title: "\u5E73\u53F0\u89C4\u683C\u7F16\u7801",
21099
+ title: "\u5E73\u53F0\u89C4\u683C\u7F16\u53F7",
21215
21100
  width: 170,
21216
21101
  render: renderTextEllipsis
21217
21102
  }, {
@@ -21725,12 +21610,6 @@ var getColumns$7 = function getColumns(_ref) {
21725
21610
  width: 150,
21726
21611
  render: function render(val, record, index) {
21727
21612
  return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
21728
- dropdownStyle: {
21729
- zIndex: 2000
21730
- },
21731
- getPopupContainer: function getPopupContainer() {
21732
- return document.body;
21733
- },
21734
21613
  value: val,
21735
21614
  onChange: function onChange(value) {
21736
21615
  updateHandle(value, index, 'bfit');
@@ -21760,12 +21639,6 @@ var getColumns$7 = function getColumns(_ref) {
21760
21639
  width: 150,
21761
21640
  render: function render(val, record, index) {
21762
21641
  return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
21763
- dropdownStyle: {
21764
- zIndex: 2000
21765
- },
21766
- getPopupContainer: function getPopupContainer() {
21767
- return document.body;
21768
- },
21769
21642
  value: val,
21770
21643
  onChange: function onChange(value) {
21771
21644
  updateHandle(value, index, 'gift');
@@ -22551,7 +22424,7 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
22551
22424
  }
22552
22425
  }, isShowSelect && /*#__PURE__*/React.createElement(Row, {
22553
22426
  style: {
22554
- marginBottom: '12px'
22427
+ marginBottom: '20px'
22555
22428
  }
22556
22429
  }, /*#__PURE__*/React.createElement(Col, {
22557
22430
  span: 12
@@ -27475,7 +27348,7 @@ var MsgStatus = function MsgStatus(props) {
27475
27348
  onClick: function onClick() {
27476
27349
  return setChangeIndex(index);
27477
27350
  }
27478
- }, msgTypeCh[key] || key, item.ruleName);
27351
+ }, msgTypeCh[key], item.ruleName);
27479
27352
  }))) : null, type === 1 ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Select, _objectSpread2(_objectSpread2({}, other), {}, {
27480
27353
  showSearch: true,
27481
27354
  value: (_value$changeIndex = value[changeIndex]) === null || _value$changeIndex === void 0 ? void 0 : _value$changeIndex.status,
@@ -28053,7 +27926,7 @@ var GyReissue = function GyReissue(props) {
28053
27926
  span: 12
28054
27927
  },
28055
27928
  sm: {
28056
- span: 4
27929
+ span: 6
28057
27930
  }
28058
27931
  }, /*#__PURE__*/React.createElement(Cascader, {
28059
27932
  style: {
@@ -28356,7 +28229,7 @@ var GyReturnGoods = function GyReturnGoods(props) {
28356
28229
  span: 12
28357
28230
  },
28358
28231
  sm: {
28359
- span: 4
28232
+ span: 6
28360
28233
  }
28361
28234
  }, /*#__PURE__*/React.createElement(Cascader, {
28362
28235
  style: {
@@ -29032,4 +28905,4 @@ var SYSTEM_ORDER_COLUMNS_MAP = {
29032
28905
  WDT_RETURN_BILL_NO: WDT_RETURN_BILL_NO_CONFIG.columns
29033
28906
  };
29034
28907
 
29035
- 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 };
28908
+ 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 };