kts-component-invoice-operate 3.2.117 → 3.2.119

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
@@ -10962,7 +10962,7 @@ var TitleText = (function (props) {
10962
10962
  }, "*") : /*#__PURE__*/React.createElement(React.Fragment, null), children);
10963
10963
  });
10964
10964
 
10965
- var css_248z$7 = ".kts-invoice-operate-goods-list-itemName-input {\n display: flex;\n flex: 1;\n padding-left: 10px;\n height: 31px;\n}\n.kts-invoice-operate-goods-list-itemName-input .ktsAntX-select {\n width: 100%;\n}\n.kts-invoice-operate-goods-list-itemName-input .ktsAntX-select .ktsAntX-select-selector {\n height: 100%;\n}\n.has-error .kts-invoice-operate-goods-list-itemName-input {\n border: 1px solid #f5222d;\n}\n";
10965
+ var css_248z$7 = ".kts-invoice-operate-goods-list-itemName-input {\n display: flex;\n flex: 1;\n padding-left: 10px;\n height: 31px;\n}\n.kts-invoice-operate-goods-list-itemName-input .ktsAntX-select {\n width: 100%;\n}\n.kts-invoice-operate-goods-list-itemName-input .ktsAntX-select .ktsAntX-select-selector {\n height: 100%;\n}\n";
10966
10966
  styleInject(css_248z$7);
10967
10967
 
10968
10968
  function ItemNameInput(props) {
@@ -17882,7 +17882,7 @@ var TitleText$1 = (function (props) {
17882
17882
  }, "*") : /*#__PURE__*/React.createElement(React.Fragment, null), children);
17883
17883
  });
17884
17884
 
17885
- var css_248z$m = ".kts-invoice-operate-goods-list-itemName-input {\n display: flex;\n flex: 1;\n padding-left: 0;\n height: 31px;\n}\n.has-error .kts-invoice-operate-goods-list-itemName-input {\n border: 1px solid #f5222d;\n}\n";
17885
+ var css_248z$m = ".kts-invoice-operate-goods-list-itemName-input {\n display: flex;\n flex: 1;\n padding-left: 0;\n height: 31px;\n}\n";
17886
17886
  styleInject(css_248z$m);
17887
17887
 
17888
17888
  function ItemNameInput$1(props) {
@@ -20390,18 +20390,15 @@ var MyItemNameDiv$1 = /*#__PURE__*/function (_React$Component3) {
20390
20390
  return /*#__PURE__*/React.createElement(Tooltip$1, {
20391
20391
  title: valueT
20392
20392
  }, /*#__PURE__*/React.createElement("span", {
20393
- style: {
20394
- padding: '0 10px',
20393
+ style: _objectSpread2(_objectSpread2({}, MyItemNameStyle), {}, {
20395
20394
  color: '#0074ff'
20396
- }
20395
+ })
20397
20396
  }, valueT));
20398
20397
  } else {
20399
20398
  return /*#__PURE__*/React.createElement(Tooltip$1, {
20400
20399
  title: valueF
20401
20400
  }, /*#__PURE__*/React.createElement("span", {
20402
- style: {
20403
- padding: '0 10px'
20404
- }
20401
+ style: MyItemNameStyle
20405
20402
  }, valueF));
20406
20403
  }
20407
20404
  } else {
@@ -20409,18 +20406,16 @@ var MyItemNameDiv$1 = /*#__PURE__*/function (_React$Component3) {
20409
20406
  return /*#__PURE__*/React.createElement(Tooltip$1, {
20410
20407
  title: valueF
20411
20408
  }, /*#__PURE__*/React.createElement("span", {
20412
- style: {
20413
- padding: '0 10px'
20414
- }
20409
+ style: MyItemNameStyle
20415
20410
  }, valueF));
20416
20411
  } else {
20417
20412
  return /*#__PURE__*/React.createElement(Tooltip$1, {
20418
- title: valueT
20413
+ title: valueT,
20414
+ style: MyItemNameStyle
20419
20415
  }, /*#__PURE__*/React.createElement("span", {
20420
- style: {
20421
- padding: '0 10px',
20416
+ style: _objectSpread2(_objectSpread2({}, MyItemNameStyle), {}, {
20422
20417
  color: '#0074ff'
20423
- }
20418
+ })
20424
20419
  }, valueT));
20425
20420
  }
20426
20421
  }
@@ -20462,6 +20457,15 @@ function dcoding$1(v) {
20462
20457
  }).join('');
20463
20458
  }
20464
20459
 
20460
+ var MyItemNameStyle = {
20461
+ padding: '0px 10px',
20462
+ whiteSpace: 'nowrap',
20463
+ overflow: 'hidden',
20464
+ width: "100%",
20465
+ display: 'block',
20466
+ textOverflow: 'ellipsis'
20467
+ };
20468
+
20465
20469
  var useOnRow$1 = (function () {
20466
20470
  /** 控制器 */
20467
20471
  var controller = Invoice.useInvoiceController();
@@ -22800,15 +22804,20 @@ var DrawerBody$3 = function DrawerBody(props) {
22800
22804
  var info = dataSource.filter(function (i) {
22801
22805
  return i.value === value;
22802
22806
  })[0];
22803
- if (!info) return;
22804
- !readOnlyTaxRate && actions.setFieldState('taxRate', /*#__PURE__*/function () {
22807
+ if (!info) return; // !readOnlyTaxRate && actions.setFieldState('taxRate', async s => {
22808
+ // if (info.taxRate || info.taxRate === 0) {
22809
+ // s.value = info.taxRate
22810
+ // }
22811
+ // });
22812
+
22813
+ actions.setFieldState('shorthand', /*#__PURE__*/function () {
22805
22814
  var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(s) {
22806
22815
  return _regeneratorRuntime().wrap(function _callee4$(_context4) {
22807
22816
  while (1) {
22808
22817
  switch (_context4.prev = _context4.next) {
22809
22818
  case 0:
22810
- if (info.taxRate || info.taxRate === 0) {
22811
- s.value = info.taxRate;
22819
+ if (info.shorthand) {
22820
+ s.value = info.shorthand;
22812
22821
  }
22813
22822
 
22814
22823
  case 1:
@@ -22823,28 +22832,6 @@ var DrawerBody$3 = function DrawerBody(props) {
22823
22832
  return _ref4.apply(this, arguments);
22824
22833
  };
22825
22834
  }());
22826
- actions.setFieldState('shorthand', /*#__PURE__*/function () {
22827
- var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(s) {
22828
- return _regeneratorRuntime().wrap(function _callee5$(_context5) {
22829
- while (1) {
22830
- switch (_context5.prev = _context5.next) {
22831
- case 0:
22832
- if (info.shorthand) {
22833
- s.value = info.shorthand;
22834
- }
22835
-
22836
- case 1:
22837
- case "end":
22838
- return _context5.stop();
22839
- }
22840
- }
22841
- }, _callee5);
22842
- }));
22843
-
22844
- return function (_x5) {
22845
- return _ref5.apply(this, arguments);
22846
- };
22847
- }());
22848
22835
  }, [actions, dataSource, readOnlyTaxRate]);
22849
22836
  return /*#__PURE__*/React.createElement(Select, _objectSpread2(_objectSpread2({}, props), {}, {
22850
22837
  showSearch: true,
@@ -22924,34 +22911,17 @@ var DrawerBody$3 = function DrawerBody(props) {
22924
22911
 
22925
22912
  var info = list === null || list === void 0 ? void 0 : list.filter(function (e) {
22926
22913
  return e.id === id;
22927
- })[0];
22928
- !readOnlyTaxRate && actions.setFieldState('taxRate', /*#__PURE__*/function () {
22929
- var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(s) {
22930
- return _regeneratorRuntime().wrap(function _callee6$(_context6) {
22931
- while (1) {
22932
- switch (_context6.prev = _context6.next) {
22933
- case 0:
22934
- if (info.taxRate || info.taxRate === 0) {
22935
- s.value = info.taxRate;
22936
- }
22914
+ })[0]; // !readOnlyTaxRate && actions.setFieldState('taxRate', async s => {
22915
+ // if (info.taxRate || info.taxRate === 0) {
22916
+ // s.value = info.taxRate
22917
+ // }
22918
+ // });
22937
22919
 
22938
- case 1:
22939
- case "end":
22940
- return _context6.stop();
22941
- }
22942
- }
22943
- }, _callee6);
22944
- }));
22945
-
22946
- return function (_x6) {
22947
- return _ref6.apply(this, arguments);
22948
- };
22949
- }());
22950
22920
  actions.setFieldState('taxClassificationCode', /*#__PURE__*/function () {
22951
- var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(s) {
22952
- return _regeneratorRuntime().wrap(function _callee7$(_context7) {
22921
+ var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(s) {
22922
+ return _regeneratorRuntime().wrap(function _callee5$(_context5) {
22953
22923
  while (1) {
22954
- switch (_context7.prev = _context7.next) {
22924
+ switch (_context5.prev = _context5.next) {
22955
22925
  case 0:
22956
22926
  if (info.id) {
22957
22927
  s.value = info.id;
@@ -22959,21 +22929,21 @@ var DrawerBody$3 = function DrawerBody(props) {
22959
22929
 
22960
22930
  case 1:
22961
22931
  case "end":
22962
- return _context7.stop();
22932
+ return _context5.stop();
22963
22933
  }
22964
22934
  }
22965
- }, _callee7);
22935
+ }, _callee5);
22966
22936
  }));
22967
22937
 
22968
- return function (_x7) {
22969
- return _ref7.apply(this, arguments);
22938
+ return function (_x5) {
22939
+ return _ref5.apply(this, arguments);
22970
22940
  };
22971
22941
  }());
22972
22942
  actions.setFieldState('shorthand', /*#__PURE__*/function () {
22973
- var _ref8 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(s) {
22974
- return _regeneratorRuntime().wrap(function _callee8$(_context8) {
22943
+ var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(s) {
22944
+ return _regeneratorRuntime().wrap(function _callee6$(_context6) {
22975
22945
  while (1) {
22976
- switch (_context8.prev = _context8.next) {
22946
+ switch (_context6.prev = _context6.next) {
22977
22947
  case 0:
22978
22948
  if (info.shorthand) {
22979
22949
  s.value = info.shorthand;
@@ -22981,52 +22951,52 @@ var DrawerBody$3 = function DrawerBody(props) {
22981
22951
 
22982
22952
  case 1:
22983
22953
  case "end":
22984
- return _context8.stop();
22954
+ return _context6.stop();
22985
22955
  }
22986
22956
  }
22987
- }, _callee8);
22957
+ }, _callee6);
22988
22958
  }));
22989
22959
 
22990
- return function (_x8) {
22991
- return _ref8.apply(this, arguments);
22960
+ return function (_x6) {
22961
+ return _ref6.apply(this, arguments);
22992
22962
  };
22993
22963
  }());
22994
22964
  setVisible(false);
22995
22965
  }, [list, actions, readOnlyTaxRate]);
22996
22966
  React.useEffect(function () {
22997
- _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10() {
22967
+ _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8() {
22998
22968
  var fn, list;
22999
- return _regeneratorRuntime().wrap(function _callee10$(_context10) {
22969
+ return _regeneratorRuntime().wrap(function _callee8$(_context8) {
23000
22970
  while (1) {
23001
- switch (_context10.prev = _context10.next) {
22971
+ switch (_context8.prev = _context8.next) {
23002
22972
  case 0:
23003
- fn = controller.state.goodsListState.endowCode.getTaxCategoryCodeTree || /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9() {
23004
- return _regeneratorRuntime().wrap(function _callee9$(_context9) {
22973
+ fn = controller.state.goodsListState.endowCode.getTaxCategoryCodeTree || /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7() {
22974
+ return _regeneratorRuntime().wrap(function _callee7$(_context7) {
23005
22975
  while (1) {
23006
- switch (_context9.prev = _context9.next) {
22976
+ switch (_context7.prev = _context7.next) {
23007
22977
  case 0:
23008
- return _context9.abrupt("return", []);
22978
+ return _context7.abrupt("return", []);
23009
22979
 
23010
22980
  case 1:
23011
22981
  case "end":
23012
- return _context9.stop();
22982
+ return _context7.stop();
23013
22983
  }
23014
22984
  }
23015
- }, _callee9);
22985
+ }, _callee7);
23016
22986
  }));
23017
- _context10.next = 3;
22987
+ _context8.next = 3;
23018
22988
  return fn(filter === null || filter === void 0 ? void 0 : filter.taxCategoryCode, filter === null || filter === void 0 ? void 0 : filter.val);
23019
22989
 
23020
22990
  case 3:
23021
- list = _context10.sent;
22991
+ list = _context8.sent;
23022
22992
  setList(list || []);
23023
22993
 
23024
22994
  case 5:
23025
22995
  case "end":
23026
- return _context10.stop();
22996
+ return _context8.stop();
23027
22997
  }
23028
22998
  }
23029
- }, _callee10);
22999
+ }, _callee8);
23030
23000
  }))();
23031
23001
  }, [filter]);
23032
23002
  React.useEffect(function () {
@@ -23092,31 +23062,31 @@ var DrawerBody$3 = function DrawerBody(props) {
23092
23062
  list = _React$useState16[0],
23093
23063
  setList = _React$useState16[1];
23094
23064
 
23095
- var onSearch = React.useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11() {
23065
+ var onSearch = React.useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9() {
23096
23066
  var _value$target;
23097
23067
 
23098
23068
  var value,
23099
23069
  _value$target2,
23100
23070
  arr,
23101
23071
  _list,
23102
- _args11 = arguments;
23072
+ _args9 = arguments;
23103
23073
 
23104
- return _regeneratorRuntime().wrap(function _callee11$(_context11) {
23074
+ return _regeneratorRuntime().wrap(function _callee9$(_context9) {
23105
23075
  while (1) {
23106
- switch (_context11.prev = _context11.next) {
23076
+ switch (_context9.prev = _context9.next) {
23107
23077
  case 0:
23108
- value = _args11.length > 0 && _args11[0] !== undefined ? _args11[0] : null;
23078
+ value = _args9.length > 0 && _args9[0] !== undefined ? _args9[0] : null;
23109
23079
 
23110
23080
  if (!(value === null || value === void 0 ? void 0 : (_value$target = value.target) === null || _value$target === void 0 ? void 0 : _value$target.value)) {
23111
- _context11.next = 9;
23081
+ _context9.next = 9;
23112
23082
  break;
23113
23083
  }
23114
23084
 
23115
- _context11.next = 4;
23085
+ _context9.next = 4;
23116
23086
  return controller.state.goodsListState.endowCode.onSearchTaxClassificationCode(value === null || value === void 0 ? void 0 : (_value$target2 = value.target) === null || _value$target2 === void 0 ? void 0 : _value$target2.value);
23117
23087
 
23118
23088
  case 4:
23119
- arr = _context11.sent;
23089
+ arr = _context9.sent;
23120
23090
  _list = arr.map(function (item) {
23121
23091
  return _objectSpread2(_objectSpread2({}, item), {}, {
23122
23092
  title: "".concat(item.productName, " ").concat(item.taxCategoryCode),
@@ -23125,32 +23095,32 @@ var DrawerBody$3 = function DrawerBody(props) {
23125
23095
  });
23126
23096
  });
23127
23097
  setList(_list);
23128
- _context11.next = 11;
23098
+ _context9.next = 11;
23129
23099
  break;
23130
23100
 
23131
23101
  case 9:
23132
- _context11.next = 11;
23102
+ _context9.next = 11;
23133
23103
  return onLoad();
23134
23104
 
23135
23105
  case 11:
23136
23106
  case "end":
23137
- return _context11.stop();
23107
+ return _context9.stop();
23138
23108
  }
23139
23109
  }
23140
- }, _callee11);
23110
+ }, _callee9);
23141
23111
  })), []);
23142
23112
  var onLoad = React.useCallback( /*#__PURE__*/function () {
23143
- var _ref12 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12(value) {
23113
+ var _ref10 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10(value) {
23144
23114
  var arr, data, treeData;
23145
- return _regeneratorRuntime().wrap(function _callee12$(_context12) {
23115
+ return _regeneratorRuntime().wrap(function _callee10$(_context10) {
23146
23116
  while (1) {
23147
- switch (_context12.prev = _context12.next) {
23117
+ switch (_context10.prev = _context10.next) {
23148
23118
  case 0:
23149
- _context12.next = 2;
23119
+ _context10.next = 2;
23150
23120
  return controller.state.goodsListState.endowCode.onLoadTaxClassificationCode(value === null || value === void 0 ? void 0 : value.taxCategoryCode);
23151
23121
 
23152
23122
  case 2:
23153
- arr = _context12.sent;
23123
+ arr = _context10.sent;
23154
23124
  data = arr.map(function (item) {
23155
23125
  return _objectSpread2(_objectSpread2({}, item), {}, {
23156
23126
  title: "".concat(item.productName, " ").concat(item.taxCategoryCode),
@@ -23167,95 +23137,84 @@ var DrawerBody$3 = function DrawerBody(props) {
23167
23137
  setList(treeData);
23168
23138
  }
23169
23139
 
23170
- return _context12.abrupt("return", []);
23140
+ return _context10.abrupt("return", []);
23171
23141
 
23172
23142
  case 7:
23173
23143
  case "end":
23174
- return _context12.stop();
23144
+ return _context10.stop();
23175
23145
  }
23176
23146
  }
23177
- }, _callee12);
23147
+ }, _callee10);
23178
23148
  }));
23179
23149
 
23180
- return function (_x9) {
23181
- return _ref12.apply(this, arguments);
23150
+ return function (_x7) {
23151
+ return _ref10.apply(this, arguments);
23182
23152
  };
23183
23153
  }(), []);
23184
- var onClick = React.useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13() {
23185
- return _regeneratorRuntime().wrap(function _callee13$(_context13) {
23154
+ var onClick = React.useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11() {
23155
+ return _regeneratorRuntime().wrap(function _callee11$(_context11) {
23186
23156
  while (1) {
23187
- switch (_context13.prev = _context13.next) {
23157
+ switch (_context11.prev = _context11.next) {
23188
23158
  case 0:
23189
23159
  setOpen(true);
23190
- _context13.next = 3;
23160
+ _context11.next = 3;
23191
23161
  return onLoad();
23192
23162
 
23193
23163
  case 3:
23194
23164
  case "end":
23195
- return _context13.stop();
23165
+ return _context11.stop();
23196
23166
  }
23197
23167
  }
23198
- }, _callee13);
23168
+ }, _callee11);
23199
23169
  })), []);
23200
23170
  var onSelect = React.useCallback(function (key, info) {
23171
+ // !readOnlyTaxRate && actions.setFieldState('taxRate', async s => {
23172
+ // if (info.node.taxRate || info.taxRate === 0) {
23173
+ // s.value = info.node.taxRate
23174
+ // }
23175
+ // });
23201
23176
  actions.setFieldState('taxClassificationCode', /*#__PURE__*/function () {
23202
- var _ref14 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee14(s) {
23203
- return _regeneratorRuntime().wrap(function _callee14$(_context14) {
23177
+ var _ref12 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12(s) {
23178
+ return _regeneratorRuntime().wrap(function _callee12$(_context12) {
23204
23179
  while (1) {
23205
- switch (_context14.prev = _context14.next) {
23180
+ switch (_context12.prev = _context12.next) {
23206
23181
  case 0:
23207
- s.value = info.node.taxCategoryCode;
23182
+ if (info.node.taxCategoryCode) {
23183
+ s.value = info.node.taxCategoryCode;
23184
+ }
23208
23185
 
23209
23186
  case 1:
23210
23187
  case "end":
23211
- return _context14.stop();
23188
+ return _context12.stop();
23212
23189
  }
23213
23190
  }
23214
- }, _callee14);
23191
+ }, _callee12);
23215
23192
  }));
23216
23193
 
23217
- return function (_x10) {
23218
- return _ref14.apply(this, arguments);
23194
+ return function (_x8) {
23195
+ return _ref12.apply(this, arguments);
23219
23196
  };
23220
23197
  }());
23221
23198
  actions.setFieldState('shorthand', /*#__PURE__*/function () {
23222
- var _ref15 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee15(s) {
23223
- return _regeneratorRuntime().wrap(function _callee15$(_context15) {
23199
+ var _ref13 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13(s) {
23200
+ return _regeneratorRuntime().wrap(function _callee13$(_context13) {
23224
23201
  while (1) {
23225
- switch (_context15.prev = _context15.next) {
23202
+ switch (_context13.prev = _context13.next) {
23226
23203
  case 0:
23227
- s.value = info.node.shorthand;
23204
+ if (info.node.shorthand) {
23205
+ s.value = info.node.shorthand;
23206
+ }
23228
23207
 
23229
23208
  case 1:
23230
23209
  case "end":
23231
- return _context15.stop();
23210
+ return _context13.stop();
23232
23211
  }
23233
23212
  }
23234
- }, _callee15);
23213
+ }, _callee13);
23235
23214
  }));
23236
23215
 
23237
- return function (_x11) {
23238
- return _ref15.apply(this, arguments);
23239
- };
23240
- }());
23241
- actions.setFieldState('taxRate', /*#__PURE__*/function () {
23242
- var _ref16 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee16(s) {
23243
- return _regeneratorRuntime().wrap(function _callee16$(_context16) {
23244
- while (1) {
23245
- switch (_context16.prev = _context16.next) {
23246
- case 0:
23247
- s.value = info.node.taxRate;
23248
-
23249
- case 1:
23250
- case "end":
23251
- return _context16.stop();
23252
- }
23253
- }
23254
- }, _callee16);
23255
- }));
23256
-
23257
- return function (_x12) {
23258
- return _ref16.apply(this, arguments);
23216
+ return function (_x9) {
23217
+ return _ref13.apply(this, arguments);
23259
23218
  };
23260
23219
  }());
23261
23220
  setOpen(false);
@@ -23314,11 +23273,11 @@ var DrawerBody$3 = function DrawerBody(props) {
23314
23273
 
23315
23274
  var onSubmit = React.useCallback(function (values) {
23316
23275
  controller.pipeline( /*#__PURE__*/function () {
23317
- var _ref17 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee17(s) {
23276
+ var _ref14 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee14(s) {
23318
23277
  var endowCodeGood;
23319
- return _regeneratorRuntime().wrap(function _callee17$(_context17) {
23278
+ return _regeneratorRuntime().wrap(function _callee14$(_context14) {
23320
23279
  while (1) {
23321
- switch (_context17.prev = _context17.next) {
23280
+ switch (_context14.prev = _context14.next) {
23322
23281
  case 0:
23323
23282
  endowCodeGood = s.goodsListState.endowCode.endowcodeGoodIndex.map(function (e) {
23324
23283
  return s.goodsListState.goodsMap.get(e);
@@ -23345,14 +23304,14 @@ var DrawerBody$3 = function DrawerBody(props) {
23345
23304
 
23346
23305
  case 4:
23347
23306
  case "end":
23348
- return _context17.stop();
23307
+ return _context14.stop();
23349
23308
  }
23350
23309
  }
23351
- }, _callee17);
23310
+ }, _callee14);
23352
23311
  }));
23353
23312
 
23354
- return function (_x13) {
23355
- return _ref17.apply(this, arguments);
23313
+ return function (_x10) {
23314
+ return _ref14.apply(this, arguments);
23356
23315
  };
23357
23316
  }())();
23358
23317
  }, [controller]);
@@ -23361,23 +23320,23 @@ var DrawerBody$3 = function DrawerBody(props) {
23361
23320
  FormEffectHooks.onFieldValueChange$('taxRate').subscribe(function (e) {
23362
23321
  setTaxRate(e.value);
23363
23322
  actions.setFieldState('taxFreeType', /*#__PURE__*/function () {
23364
- var _ref18 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee18(s) {
23365
- return _regeneratorRuntime().wrap(function _callee18$(_context18) {
23323
+ var _ref15 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee15(s) {
23324
+ return _regeneratorRuntime().wrap(function _callee15$(_context15) {
23366
23325
  while (1) {
23367
- switch (_context18.prev = _context18.next) {
23326
+ switch (_context15.prev = _context15.next) {
23368
23327
  case 0:
23369
23328
  if (e.value !== 0) s.value = undefined;
23370
23329
 
23371
23330
  case 1:
23372
23331
  case "end":
23373
- return _context18.stop();
23332
+ return _context15.stop();
23374
23333
  }
23375
23334
  }
23376
- }, _callee18);
23335
+ }, _callee15);
23377
23336
  }));
23378
23337
 
23379
- return function (_x14) {
23380
- return _ref18.apply(this, arguments);
23338
+ return function (_x11) {
23339
+ return _ref15.apply(this, arguments);
23381
23340
  };
23382
23341
  }());
23383
23342
  }); // 是否享受优惠政策
@@ -23385,23 +23344,23 @@ var DrawerBody$3 = function DrawerBody(props) {
23385
23344
  FormEffectHooks.onFieldValueChange$('favouredPolicyMark').subscribe(function (e) {
23386
23345
  setFavouredPolicyMark(e.value);
23387
23346
  actions.setFieldState('favouredPolicyName', /*#__PURE__*/function () {
23388
- var _ref19 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee19(s) {
23389
- return _regeneratorRuntime().wrap(function _callee19$(_context19) {
23347
+ var _ref16 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee16(s) {
23348
+ return _regeneratorRuntime().wrap(function _callee16$(_context16) {
23390
23349
  while (1) {
23391
- switch (_context19.prev = _context19.next) {
23350
+ switch (_context16.prev = _context16.next) {
23392
23351
  case 0:
23393
23352
  if (e.value === 0) s.value = undefined;
23394
23353
 
23395
23354
  case 1:
23396
23355
  case "end":
23397
- return _context19.stop();
23356
+ return _context16.stop();
23398
23357
  }
23399
23358
  }
23400
- }, _callee19);
23359
+ }, _callee16);
23401
23360
  }));
23402
23361
 
23403
- return function (_x15) {
23404
- return _ref19.apply(this, arguments);
23362
+ return function (_x12) {
23363
+ return _ref16.apply(this, arguments);
23405
23364
  };
23406
23365
  }());
23407
23366
  });
@@ -23501,23 +23460,23 @@ var DrawerBody$3 = function DrawerBody(props) {
23501
23460
  }, "\u786E\u5B9A"), /*#__PURE__*/React.createElement(Button, {
23502
23461
  onClick: function onClick() {
23503
23462
  controller.pipeline( /*#__PURE__*/function () {
23504
- var _ref20 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee20(s) {
23505
- return _regeneratorRuntime().wrap(function _callee20$(_context20) {
23463
+ var _ref17 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee17(s) {
23464
+ return _regeneratorRuntime().wrap(function _callee17$(_context17) {
23506
23465
  while (1) {
23507
- switch (_context20.prev = _context20.next) {
23466
+ switch (_context17.prev = _context17.next) {
23508
23467
  case 0:
23509
- return _context20.abrupt("return", s.goodsListState.endowCode.endowcodeGoodIndex = []);
23468
+ return _context17.abrupt("return", s.goodsListState.endowCode.endowcodeGoodIndex = []);
23510
23469
 
23511
23470
  case 1:
23512
23471
  case "end":
23513
- return _context20.stop();
23472
+ return _context17.stop();
23514
23473
  }
23515
23474
  }
23516
- }, _callee20);
23475
+ }, _callee17);
23517
23476
  }));
23518
23477
 
23519
- return function (_x16) {
23520
- return _ref20.apply(this, arguments);
23478
+ return function (_x13) {
23479
+ return _ref17.apply(this, arguments);
23521
23480
  };
23522
23481
  }())();
23523
23482
  }