kts-component-invoice-operate 1.2.10 → 1.2.14
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/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/EndowCode.d.ts +1 -1
- package/dist/index.esm.js +58 -64
- package/dist/index.js +58 -64
- package/docs/index.md +1 -1
- package/docs-dist/umi.css +1 -1
- package/docs-dist/umi.js +1 -1
- package/package.json +2 -2
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/EndowCode.tsx +1 -1
- package/src/Invoice/_test/endowCode/index.tsx +3 -3
- package/src/Invoice/ui/EndowCodeDrawer/index.tsx +7 -2
- package/src/Invoice/ui/InvoiceHeader/index.less +2 -2
|
@@ -17,7 +17,7 @@ export default class EndowCode {
|
|
|
17
17
|
* @param val val
|
|
18
18
|
* @returns 税收分类编码树
|
|
19
19
|
*/
|
|
20
|
-
getTaxCategoryCodeTree
|
|
20
|
+
getTaxCategoryCodeTree?: (taxCategoryCode?: string, val?: string) => Promise<{
|
|
21
21
|
id: string;
|
|
22
22
|
pid: string;
|
|
23
23
|
}[]>;
|
package/dist/index.esm.js
CHANGED
|
@@ -586,20 +586,7 @@ var EndowCode = function EndowCode() {
|
|
|
586
586
|
}
|
|
587
587
|
}, _callee);
|
|
588
588
|
}));
|
|
589
|
-
this.getTaxCategoryCodeTree =
|
|
590
|
-
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
591
|
-
while (1) {
|
|
592
|
-
switch (_context2.prev = _context2.next) {
|
|
593
|
-
case 0:
|
|
594
|
-
return _context2.abrupt("return", []);
|
|
595
|
-
|
|
596
|
-
case 1:
|
|
597
|
-
case "end":
|
|
598
|
-
return _context2.stop();
|
|
599
|
-
}
|
|
600
|
-
}
|
|
601
|
-
}, _callee2);
|
|
602
|
-
}));
|
|
589
|
+
this.getTaxCategoryCodeTree = void 0;
|
|
603
590
|
this.getReadOnlyTaxRate = void 0;
|
|
604
591
|
this.getDefaultValue = void 0;
|
|
605
592
|
this.readOnlyTaxRateMap = {
|
|
@@ -1154,7 +1141,7 @@ function SvgAuto(props) {
|
|
|
1154
1141
|
})));
|
|
1155
1142
|
}
|
|
1156
1143
|
|
|
1157
|
-
var css_248z$1 = ".kts-invoice-operate-invoice-header {\n padding: 20px 8px;\n background: #f6f7f9;\n position: relative;\n color: rgba(0, 0, 0, 0.85);\n font-weight: 500;\n}\n.kts-invoice-operate-invoice-header label {\n margin-right: 5px;\n white-space: nowrap;\n}\n.kts-invoice-operate-invoice-header .invoice-header-title {\n top:
|
|
1144
|
+
var css_248z$1 = ".kts-invoice-operate-invoice-header {\n padding: 20px 8px;\n background: #f6f7f9;\n position: relative;\n color: rgba(0, 0, 0, 0.85);\n font-weight: 500;\n}\n.kts-invoice-operate-invoice-header label {\n margin-right: 5px;\n white-space: nowrap;\n}\n.kts-invoice-operate-invoice-header .invoice-header-title {\n top: 20px;\n left: 0;\n position: absolute;\n color: #e28b89;\n font-weight: 500;\n font-size: 22px;\n text-align: center;\n width: 100%;\n pointer-events: none;\n z-index: 1;\n}\n.kts-invoice-operate-invoice-header .invoice-header-no {\n display: flex;\n}\n.kts-invoice-operate-invoice-header .invoice-header-no .ktsAnt3x-tag {\n margin-left: 10px;\n height: 24px;\n}\n.kts-invoice-operate-invoice-header .invoice-header-type {\n flex: 1;\n text-align: right;\n}\n.kts-invoice-operate-invoice-header .invoice-header-property {\n margin: 20px 0 0;\n}\n.kts-invoice-operate-invoice-header .invoice-header-property .ktsAnt3x-col {\n display: flex;\n flex-direction: inherit;\n padding-right: 20px;\n}\n.kts-invoice-operate-invoice-header .invoice-header-property .ktsAnt3x-col span {\n color: #999;\n}\n";
|
|
1158
1145
|
styleInject(css_248z$1);
|
|
1159
1146
|
|
|
1160
1147
|
var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
@@ -5948,6 +5935,9 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
5948
5935
|
var favouredPolicyNameList = controller.useMemo(function (s) {
|
|
5949
5936
|
return s.goodsListState.endowCode.favouredPolicyNameList;
|
|
5950
5937
|
}, []);
|
|
5938
|
+
/** 优惠政策类型列表 */
|
|
5939
|
+
// const getTaxCategoryCodeTree = controller.useMemo(s => s.goodsListState.endowCode.getTaxCategoryCodeTree, []);
|
|
5940
|
+
|
|
5951
5941
|
/** 税率 */
|
|
5952
5942
|
|
|
5953
5943
|
var _React$useState3 = React.useState(0),
|
|
@@ -6191,35 +6181,39 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
6191
6181
|
setVisible(false);
|
|
6192
6182
|
}, [list, actions, readOnlyTaxRate]);
|
|
6193
6183
|
React.useEffect(function () {
|
|
6194
|
-
_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
6195
|
-
|
|
6184
|
+
_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee10() {
|
|
6185
|
+
var fn, list;
|
|
6186
|
+
return regeneratorRuntime.wrap(function _callee10$(_context10) {
|
|
6196
6187
|
while (1) {
|
|
6197
|
-
switch (
|
|
6188
|
+
switch (_context10.prev = _context10.next) {
|
|
6198
6189
|
case 0:
|
|
6199
|
-
|
|
6200
|
-
|
|
6201
|
-
|
|
6202
|
-
|
|
6203
|
-
|
|
6204
|
-
|
|
6205
|
-
|
|
6206
|
-
if (_context9.t1) {
|
|
6207
|
-
_context9.next = 6;
|
|
6208
|
-
break;
|
|
6209
|
-
}
|
|
6190
|
+
fn = controller.state.goodsListState.endowCode.getTaxCategoryCodeTree || /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee9() {
|
|
6191
|
+
return regeneratorRuntime.wrap(function _callee9$(_context9) {
|
|
6192
|
+
while (1) {
|
|
6193
|
+
switch (_context9.prev = _context9.next) {
|
|
6194
|
+
case 0:
|
|
6195
|
+
return _context9.abrupt("return", []);
|
|
6210
6196
|
|
|
6211
|
-
|
|
6197
|
+
case 1:
|
|
6198
|
+
case "end":
|
|
6199
|
+
return _context9.stop();
|
|
6200
|
+
}
|
|
6201
|
+
}
|
|
6202
|
+
}, _callee9);
|
|
6203
|
+
}));
|
|
6204
|
+
_context10.next = 3;
|
|
6205
|
+
return fn(filter === null || filter === void 0 ? void 0 : filter.taxCategoryCode, filter === null || filter === void 0 ? void 0 : filter.val);
|
|
6212
6206
|
|
|
6213
|
-
case
|
|
6214
|
-
|
|
6215
|
-
(
|
|
6207
|
+
case 3:
|
|
6208
|
+
list = _context10.sent;
|
|
6209
|
+
setList(list || []);
|
|
6216
6210
|
|
|
6217
|
-
case
|
|
6211
|
+
case 5:
|
|
6218
6212
|
case "end":
|
|
6219
|
-
return
|
|
6213
|
+
return _context10.stop();
|
|
6220
6214
|
}
|
|
6221
6215
|
}
|
|
6222
|
-
},
|
|
6216
|
+
}, _callee10);
|
|
6223
6217
|
}))();
|
|
6224
6218
|
}, [filter]);
|
|
6225
6219
|
React.useEffect(function () {
|
|
@@ -6281,11 +6275,11 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
6281
6275
|
|
|
6282
6276
|
var onSubmit = React.useCallback(function (values) {
|
|
6283
6277
|
controller.pipeline( /*#__PURE__*/function () {
|
|
6284
|
-
var
|
|
6278
|
+
var _ref11 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee11(s) {
|
|
6285
6279
|
var endowCodeGood;
|
|
6286
|
-
return regeneratorRuntime.wrap(function
|
|
6280
|
+
return regeneratorRuntime.wrap(function _callee11$(_context11) {
|
|
6287
6281
|
while (1) {
|
|
6288
|
-
switch (
|
|
6282
|
+
switch (_context11.prev = _context11.next) {
|
|
6289
6283
|
case 0:
|
|
6290
6284
|
endowCodeGood = s.goodsListState.endowCode.endowcodeGoodIndex.map(function (e) {
|
|
6291
6285
|
return s.goodsListState.goodsMap.get(e);
|
|
@@ -6321,11 +6315,11 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
6321
6315
|
if (!endowCodeGood.some(function (e) {
|
|
6322
6316
|
return bytesLnegth((e === null || e === void 0 ? void 0 : e.itemName) || '') > 92;
|
|
6323
6317
|
})) {
|
|
6324
|
-
|
|
6318
|
+
_context11.next = 5;
|
|
6325
6319
|
break;
|
|
6326
6320
|
}
|
|
6327
6321
|
|
|
6328
|
-
|
|
6322
|
+
_context11.next = 5;
|
|
6329
6323
|
return function () {
|
|
6330
6324
|
return new Promise(function (resolve) {
|
|
6331
6325
|
confirm({
|
|
@@ -6355,14 +6349,14 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
6355
6349
|
|
|
6356
6350
|
case 7:
|
|
6357
6351
|
case "end":
|
|
6358
|
-
return
|
|
6352
|
+
return _context11.stop();
|
|
6359
6353
|
}
|
|
6360
6354
|
}
|
|
6361
|
-
},
|
|
6355
|
+
}, _callee11);
|
|
6362
6356
|
}));
|
|
6363
6357
|
|
|
6364
6358
|
return function (_x9) {
|
|
6365
|
-
return
|
|
6359
|
+
return _ref11.apply(this, arguments);
|
|
6366
6360
|
};
|
|
6367
6361
|
}())();
|
|
6368
6362
|
}, [controller]);
|
|
@@ -6371,23 +6365,23 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
6371
6365
|
FormEffectHooks.onFieldValueChange$('taxRate').subscribe(function (e) {
|
|
6372
6366
|
setTaxRate(e.value);
|
|
6373
6367
|
actions.setFieldState('taxFreeType', /*#__PURE__*/function () {
|
|
6374
|
-
var
|
|
6375
|
-
return regeneratorRuntime.wrap(function
|
|
6368
|
+
var _ref12 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee12(s) {
|
|
6369
|
+
return regeneratorRuntime.wrap(function _callee12$(_context12) {
|
|
6376
6370
|
while (1) {
|
|
6377
|
-
switch (
|
|
6371
|
+
switch (_context12.prev = _context12.next) {
|
|
6378
6372
|
case 0:
|
|
6379
6373
|
if (e.value !== 0) s.value = undefined;
|
|
6380
6374
|
|
|
6381
6375
|
case 1:
|
|
6382
6376
|
case "end":
|
|
6383
|
-
return
|
|
6377
|
+
return _context12.stop();
|
|
6384
6378
|
}
|
|
6385
6379
|
}
|
|
6386
|
-
},
|
|
6380
|
+
}, _callee12);
|
|
6387
6381
|
}));
|
|
6388
6382
|
|
|
6389
6383
|
return function (_x10) {
|
|
6390
|
-
return
|
|
6384
|
+
return _ref12.apply(this, arguments);
|
|
6391
6385
|
};
|
|
6392
6386
|
}());
|
|
6393
6387
|
}); // 是否享受优惠政策
|
|
@@ -6395,23 +6389,23 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
6395
6389
|
FormEffectHooks.onFieldValueChange$('favouredPolicyMark').subscribe(function (e) {
|
|
6396
6390
|
setFavouredPolicyMark(e.value);
|
|
6397
6391
|
actions.setFieldState('favouredPolicyName', /*#__PURE__*/function () {
|
|
6398
|
-
var
|
|
6399
|
-
return regeneratorRuntime.wrap(function
|
|
6392
|
+
var _ref13 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee13(s) {
|
|
6393
|
+
return regeneratorRuntime.wrap(function _callee13$(_context13) {
|
|
6400
6394
|
while (1) {
|
|
6401
|
-
switch (
|
|
6395
|
+
switch (_context13.prev = _context13.next) {
|
|
6402
6396
|
case 0:
|
|
6403
6397
|
if (e.value === 0) s.value = undefined;
|
|
6404
6398
|
|
|
6405
6399
|
case 1:
|
|
6406
6400
|
case "end":
|
|
6407
|
-
return
|
|
6401
|
+
return _context13.stop();
|
|
6408
6402
|
}
|
|
6409
6403
|
}
|
|
6410
|
-
},
|
|
6404
|
+
}, _callee13);
|
|
6411
6405
|
}));
|
|
6412
6406
|
|
|
6413
6407
|
return function (_x11) {
|
|
6414
|
-
return
|
|
6408
|
+
return _ref13.apply(this, arguments);
|
|
6415
6409
|
};
|
|
6416
6410
|
}());
|
|
6417
6411
|
});
|
|
@@ -6423,7 +6417,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
6423
6417
|
return /*#__PURE__*/React.createElement(SchemaForm, {
|
|
6424
6418
|
actions: actions,
|
|
6425
6419
|
components: _objectSpread2(_objectSpread2({}, components), {}, {
|
|
6426
|
-
showSearch: ShowSearch2
|
|
6420
|
+
showSearch: !!controller.state.goodsListState.endowCode.getTaxCategoryCodeTree ? ShowSearch2 : ShowSearch
|
|
6427
6421
|
}),
|
|
6428
6422
|
effects: effects
|
|
6429
6423
|
}, /*#__PURE__*/React.createElement(FormButtonGroup, null, /*#__PURE__*/React.createElement(SchemaMarkupField, {
|
|
@@ -6500,23 +6494,23 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
6500
6494
|
}, "\u786E\u5B9A"), /*#__PURE__*/React.createElement(Button, {
|
|
6501
6495
|
onClick: function onClick() {
|
|
6502
6496
|
controller.pipeline( /*#__PURE__*/function () {
|
|
6503
|
-
var
|
|
6504
|
-
return regeneratorRuntime.wrap(function
|
|
6497
|
+
var _ref14 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee14(s) {
|
|
6498
|
+
return regeneratorRuntime.wrap(function _callee14$(_context14) {
|
|
6505
6499
|
while (1) {
|
|
6506
|
-
switch (
|
|
6500
|
+
switch (_context14.prev = _context14.next) {
|
|
6507
6501
|
case 0:
|
|
6508
|
-
return
|
|
6502
|
+
return _context14.abrupt("return", s.goodsListState.endowCode.endowcodeGoodIndex = []);
|
|
6509
6503
|
|
|
6510
6504
|
case 1:
|
|
6511
6505
|
case "end":
|
|
6512
|
-
return
|
|
6506
|
+
return _context14.stop();
|
|
6513
6507
|
}
|
|
6514
6508
|
}
|
|
6515
|
-
},
|
|
6509
|
+
}, _callee14);
|
|
6516
6510
|
}));
|
|
6517
6511
|
|
|
6518
6512
|
return function (_x12) {
|
|
6519
|
-
return
|
|
6513
|
+
return _ref14.apply(this, arguments);
|
|
6520
6514
|
};
|
|
6521
6515
|
}())();
|
|
6522
6516
|
}
|
package/dist/index.js
CHANGED
|
@@ -596,20 +596,7 @@ var EndowCode = function EndowCode() {
|
|
|
596
596
|
}
|
|
597
597
|
}, _callee);
|
|
598
598
|
}));
|
|
599
|
-
this.getTaxCategoryCodeTree =
|
|
600
|
-
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
601
|
-
while (1) {
|
|
602
|
-
switch (_context2.prev = _context2.next) {
|
|
603
|
-
case 0:
|
|
604
|
-
return _context2.abrupt("return", []);
|
|
605
|
-
|
|
606
|
-
case 1:
|
|
607
|
-
case "end":
|
|
608
|
-
return _context2.stop();
|
|
609
|
-
}
|
|
610
|
-
}
|
|
611
|
-
}, _callee2);
|
|
612
|
-
}));
|
|
599
|
+
this.getTaxCategoryCodeTree = void 0;
|
|
613
600
|
this.getReadOnlyTaxRate = void 0;
|
|
614
601
|
this.getDefaultValue = void 0;
|
|
615
602
|
this.readOnlyTaxRateMap = {
|
|
@@ -1164,7 +1151,7 @@ function SvgAuto(props) {
|
|
|
1164
1151
|
})));
|
|
1165
1152
|
}
|
|
1166
1153
|
|
|
1167
|
-
var css_248z$1 = ".kts-invoice-operate-invoice-header {\n padding: 20px 8px;\n background: #f6f7f9;\n position: relative;\n color: rgba(0, 0, 0, 0.85);\n font-weight: 500;\n}\n.kts-invoice-operate-invoice-header label {\n margin-right: 5px;\n white-space: nowrap;\n}\n.kts-invoice-operate-invoice-header .invoice-header-title {\n top:
|
|
1154
|
+
var css_248z$1 = ".kts-invoice-operate-invoice-header {\n padding: 20px 8px;\n background: #f6f7f9;\n position: relative;\n color: rgba(0, 0, 0, 0.85);\n font-weight: 500;\n}\n.kts-invoice-operate-invoice-header label {\n margin-right: 5px;\n white-space: nowrap;\n}\n.kts-invoice-operate-invoice-header .invoice-header-title {\n top: 20px;\n left: 0;\n position: absolute;\n color: #e28b89;\n font-weight: 500;\n font-size: 22px;\n text-align: center;\n width: 100%;\n pointer-events: none;\n z-index: 1;\n}\n.kts-invoice-operate-invoice-header .invoice-header-no {\n display: flex;\n}\n.kts-invoice-operate-invoice-header .invoice-header-no .ktsAnt3x-tag {\n margin-left: 10px;\n height: 24px;\n}\n.kts-invoice-operate-invoice-header .invoice-header-type {\n flex: 1;\n text-align: right;\n}\n.kts-invoice-operate-invoice-header .invoice-header-property {\n margin: 20px 0 0;\n}\n.kts-invoice-operate-invoice-header .invoice-header-property .ktsAnt3x-col {\n display: flex;\n flex-direction: inherit;\n padding-right: 20px;\n}\n.kts-invoice-operate-invoice-header .invoice-header-property .ktsAnt3x-col span {\n color: #999;\n}\n";
|
|
1168
1155
|
styleInject(css_248z$1);
|
|
1169
1156
|
|
|
1170
1157
|
var InvoiceHeader = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(function (props) {
|
|
@@ -5958,6 +5945,9 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
5958
5945
|
var favouredPolicyNameList = controller.useMemo(function (s) {
|
|
5959
5946
|
return s.goodsListState.endowCode.favouredPolicyNameList;
|
|
5960
5947
|
}, []);
|
|
5948
|
+
/** 优惠政策类型列表 */
|
|
5949
|
+
// const getTaxCategoryCodeTree = controller.useMemo(s => s.goodsListState.endowCode.getTaxCategoryCodeTree, []);
|
|
5950
|
+
|
|
5961
5951
|
/** 税率 */
|
|
5962
5952
|
|
|
5963
5953
|
var _React$useState3 = React__default['default'].useState(0),
|
|
@@ -6201,35 +6191,39 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
6201
6191
|
setVisible(false);
|
|
6202
6192
|
}, [list, actions, readOnlyTaxRate]);
|
|
6203
6193
|
React__default['default'].useEffect(function () {
|
|
6204
|
-
_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
6205
|
-
|
|
6194
|
+
_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee10() {
|
|
6195
|
+
var fn, list;
|
|
6196
|
+
return regeneratorRuntime.wrap(function _callee10$(_context10) {
|
|
6206
6197
|
while (1) {
|
|
6207
|
-
switch (
|
|
6198
|
+
switch (_context10.prev = _context10.next) {
|
|
6208
6199
|
case 0:
|
|
6209
|
-
|
|
6210
|
-
|
|
6211
|
-
|
|
6212
|
-
|
|
6213
|
-
|
|
6214
|
-
|
|
6215
|
-
|
|
6216
|
-
if (_context9.t1) {
|
|
6217
|
-
_context9.next = 6;
|
|
6218
|
-
break;
|
|
6219
|
-
}
|
|
6200
|
+
fn = controller.state.goodsListState.endowCode.getTaxCategoryCodeTree || /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee9() {
|
|
6201
|
+
return regeneratorRuntime.wrap(function _callee9$(_context9) {
|
|
6202
|
+
while (1) {
|
|
6203
|
+
switch (_context9.prev = _context9.next) {
|
|
6204
|
+
case 0:
|
|
6205
|
+
return _context9.abrupt("return", []);
|
|
6220
6206
|
|
|
6221
|
-
|
|
6207
|
+
case 1:
|
|
6208
|
+
case "end":
|
|
6209
|
+
return _context9.stop();
|
|
6210
|
+
}
|
|
6211
|
+
}
|
|
6212
|
+
}, _callee9);
|
|
6213
|
+
}));
|
|
6214
|
+
_context10.next = 3;
|
|
6215
|
+
return fn(filter === null || filter === void 0 ? void 0 : filter.taxCategoryCode, filter === null || filter === void 0 ? void 0 : filter.val);
|
|
6222
6216
|
|
|
6223
|
-
case
|
|
6224
|
-
|
|
6225
|
-
(
|
|
6217
|
+
case 3:
|
|
6218
|
+
list = _context10.sent;
|
|
6219
|
+
setList(list || []);
|
|
6226
6220
|
|
|
6227
|
-
case
|
|
6221
|
+
case 5:
|
|
6228
6222
|
case "end":
|
|
6229
|
-
return
|
|
6223
|
+
return _context10.stop();
|
|
6230
6224
|
}
|
|
6231
6225
|
}
|
|
6232
|
-
},
|
|
6226
|
+
}, _callee10);
|
|
6233
6227
|
}))();
|
|
6234
6228
|
}, [filter]);
|
|
6235
6229
|
React__default['default'].useEffect(function () {
|
|
@@ -6291,11 +6285,11 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
6291
6285
|
|
|
6292
6286
|
var onSubmit = React__default['default'].useCallback(function (values) {
|
|
6293
6287
|
controller.pipeline( /*#__PURE__*/function () {
|
|
6294
|
-
var
|
|
6288
|
+
var _ref11 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee11(s) {
|
|
6295
6289
|
var endowCodeGood;
|
|
6296
|
-
return regeneratorRuntime.wrap(function
|
|
6290
|
+
return regeneratorRuntime.wrap(function _callee11$(_context11) {
|
|
6297
6291
|
while (1) {
|
|
6298
|
-
switch (
|
|
6292
|
+
switch (_context11.prev = _context11.next) {
|
|
6299
6293
|
case 0:
|
|
6300
6294
|
endowCodeGood = s.goodsListState.endowCode.endowcodeGoodIndex.map(function (e) {
|
|
6301
6295
|
return s.goodsListState.goodsMap.get(e);
|
|
@@ -6331,11 +6325,11 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
6331
6325
|
if (!endowCodeGood.some(function (e) {
|
|
6332
6326
|
return bytesLnegth((e === null || e === void 0 ? void 0 : e.itemName) || '') > 92;
|
|
6333
6327
|
})) {
|
|
6334
|
-
|
|
6328
|
+
_context11.next = 5;
|
|
6335
6329
|
break;
|
|
6336
6330
|
}
|
|
6337
6331
|
|
|
6338
|
-
|
|
6332
|
+
_context11.next = 5;
|
|
6339
6333
|
return function () {
|
|
6340
6334
|
return new Promise(function (resolve) {
|
|
6341
6335
|
confirm({
|
|
@@ -6365,14 +6359,14 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
6365
6359
|
|
|
6366
6360
|
case 7:
|
|
6367
6361
|
case "end":
|
|
6368
|
-
return
|
|
6362
|
+
return _context11.stop();
|
|
6369
6363
|
}
|
|
6370
6364
|
}
|
|
6371
|
-
},
|
|
6365
|
+
}, _callee11);
|
|
6372
6366
|
}));
|
|
6373
6367
|
|
|
6374
6368
|
return function (_x9) {
|
|
6375
|
-
return
|
|
6369
|
+
return _ref11.apply(this, arguments);
|
|
6376
6370
|
};
|
|
6377
6371
|
}())();
|
|
6378
6372
|
}, [controller]);
|
|
@@ -6381,23 +6375,23 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
6381
6375
|
antd.FormEffectHooks.onFieldValueChange$('taxRate').subscribe(function (e) {
|
|
6382
6376
|
setTaxRate(e.value);
|
|
6383
6377
|
actions.setFieldState('taxFreeType', /*#__PURE__*/function () {
|
|
6384
|
-
var
|
|
6385
|
-
return regeneratorRuntime.wrap(function
|
|
6378
|
+
var _ref12 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee12(s) {
|
|
6379
|
+
return regeneratorRuntime.wrap(function _callee12$(_context12) {
|
|
6386
6380
|
while (1) {
|
|
6387
|
-
switch (
|
|
6381
|
+
switch (_context12.prev = _context12.next) {
|
|
6388
6382
|
case 0:
|
|
6389
6383
|
if (e.value !== 0) s.value = undefined;
|
|
6390
6384
|
|
|
6391
6385
|
case 1:
|
|
6392
6386
|
case "end":
|
|
6393
|
-
return
|
|
6387
|
+
return _context12.stop();
|
|
6394
6388
|
}
|
|
6395
6389
|
}
|
|
6396
|
-
},
|
|
6390
|
+
}, _callee12);
|
|
6397
6391
|
}));
|
|
6398
6392
|
|
|
6399
6393
|
return function (_x10) {
|
|
6400
|
-
return
|
|
6394
|
+
return _ref12.apply(this, arguments);
|
|
6401
6395
|
};
|
|
6402
6396
|
}());
|
|
6403
6397
|
}); // 是否享受优惠政策
|
|
@@ -6405,23 +6399,23 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
6405
6399
|
antd.FormEffectHooks.onFieldValueChange$('favouredPolicyMark').subscribe(function (e) {
|
|
6406
6400
|
setFavouredPolicyMark(e.value);
|
|
6407
6401
|
actions.setFieldState('favouredPolicyName', /*#__PURE__*/function () {
|
|
6408
|
-
var
|
|
6409
|
-
return regeneratorRuntime.wrap(function
|
|
6402
|
+
var _ref13 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee13(s) {
|
|
6403
|
+
return regeneratorRuntime.wrap(function _callee13$(_context13) {
|
|
6410
6404
|
while (1) {
|
|
6411
|
-
switch (
|
|
6405
|
+
switch (_context13.prev = _context13.next) {
|
|
6412
6406
|
case 0:
|
|
6413
6407
|
if (e.value === 0) s.value = undefined;
|
|
6414
6408
|
|
|
6415
6409
|
case 1:
|
|
6416
6410
|
case "end":
|
|
6417
|
-
return
|
|
6411
|
+
return _context13.stop();
|
|
6418
6412
|
}
|
|
6419
6413
|
}
|
|
6420
|
-
},
|
|
6414
|
+
}, _callee13);
|
|
6421
6415
|
}));
|
|
6422
6416
|
|
|
6423
6417
|
return function (_x11) {
|
|
6424
|
-
return
|
|
6418
|
+
return _ref13.apply(this, arguments);
|
|
6425
6419
|
};
|
|
6426
6420
|
}());
|
|
6427
6421
|
});
|
|
@@ -6433,7 +6427,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
6433
6427
|
return /*#__PURE__*/React__default['default'].createElement(antd.SchemaForm, {
|
|
6434
6428
|
actions: actions,
|
|
6435
6429
|
components: _objectSpread2(_objectSpread2({}, components), {}, {
|
|
6436
|
-
showSearch: ShowSearch2
|
|
6430
|
+
showSearch: !!controller.state.goodsListState.endowCode.getTaxCategoryCodeTree ? ShowSearch2 : ShowSearch
|
|
6437
6431
|
}),
|
|
6438
6432
|
effects: effects
|
|
6439
6433
|
}, /*#__PURE__*/React__default['default'].createElement(antd.FormButtonGroup, null, /*#__PURE__*/React__default['default'].createElement(antd.SchemaMarkupField, {
|
|
@@ -6510,23 +6504,23 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
6510
6504
|
}, "\u786E\u5B9A"), /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Button, {
|
|
6511
6505
|
onClick: function onClick() {
|
|
6512
6506
|
controller.pipeline( /*#__PURE__*/function () {
|
|
6513
|
-
var
|
|
6514
|
-
return regeneratorRuntime.wrap(function
|
|
6507
|
+
var _ref14 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee14(s) {
|
|
6508
|
+
return regeneratorRuntime.wrap(function _callee14$(_context14) {
|
|
6515
6509
|
while (1) {
|
|
6516
|
-
switch (
|
|
6510
|
+
switch (_context14.prev = _context14.next) {
|
|
6517
6511
|
case 0:
|
|
6518
|
-
return
|
|
6512
|
+
return _context14.abrupt("return", s.goodsListState.endowCode.endowcodeGoodIndex = []);
|
|
6519
6513
|
|
|
6520
6514
|
case 1:
|
|
6521
6515
|
case "end":
|
|
6522
|
-
return
|
|
6516
|
+
return _context14.stop();
|
|
6523
6517
|
}
|
|
6524
6518
|
}
|
|
6525
|
-
},
|
|
6519
|
+
}, _callee14);
|
|
6526
6520
|
}));
|
|
6527
6521
|
|
|
6528
6522
|
return function (_x12) {
|
|
6529
|
-
return
|
|
6523
|
+
return _ref14.apply(this, arguments);
|
|
6530
6524
|
};
|
|
6531
6525
|
}())();
|
|
6532
6526
|
}
|
package/docs/index.md
CHANGED