kts-component-invoice-operate 1.2.9 → 1.2.13
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 +60 -65
- package/dist/index.js +60 -65
- 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/buyerNameSearch/index.tsx +1 -0
- package/src/Invoice/_test/endowCode/index.tsx +3 -3
- package/src/Invoice/ui/Buyer/index.less +7 -0
- package/src/Invoice/ui/Buyer/ui/BuyerNameInput/index.tsx +2 -2
- package/src/Invoice/ui/EndowCodeDrawer/index.tsx +7 -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 = {
|
|
@@ -5273,7 +5260,8 @@ function useDataSource() {
|
|
|
5273
5260
|
|
|
5274
5261
|
function MyTag(props) {
|
|
5275
5262
|
return /*#__PURE__*/React.createElement("span", {
|
|
5276
|
-
className: 'kts-invoice-operate-buyer-name-content-tag'
|
|
5263
|
+
className: 'kts-invoice-operate-buyer-name-content-tag',
|
|
5264
|
+
title: props.children
|
|
5277
5265
|
}, props.children);
|
|
5278
5266
|
}
|
|
5279
5267
|
|
|
@@ -5285,7 +5273,7 @@ function interval(i, t) {
|
|
|
5285
5273
|
}
|
|
5286
5274
|
}
|
|
5287
5275
|
|
|
5288
|
-
var css_248z$9 = ".kts-invoice-operate-buyer {\n display: flex;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message {\n flex: 1;\n display: flex;\n position: relative;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .ktsAnt3x-descriptions-item-label {\n width: 179px;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list {\n width: 100%;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-descriptions-view {\n border: none;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-descriptions-item-label {\n padding: 0 10px;\n font-size: 12px;\n background-color: #fff;\n line-height: 30px;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-descriptions-item-content {\n padding: 0;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-descriptions-item-content .ktsAnt3x-input {\n box-shadow: none;\n border-color: #fff;\n border-radius: 0;\n padding: 0 10px;\n font-size: 12px;\n line-height: 30px;\n width: 100%;\n height: 100%;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-descriptions-item-content .ktsAnt3x-input:hover {\n border: 1 solid;\n border-color: #40a9ff;\n border-right-width: 1px !important;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-descriptions-item-content .has-error .ktsAnt3x-input,\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-descriptions-item-content .has-error .ktsAnt3x-input:hover {\n background-color: #fff;\n border: 1 solid;\n border-color: #f5222d;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-form-item {\n margin: 0;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-form-item-control {\n line-height: 0;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-form-item-children {\n height: 30px;\n display: block;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-form-item-children .ktsAnt3x-btn {\n line-height: 0;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-form-explain {\n position: absolute;\n left: 5px;\n top: 6px;\n z-index: 10;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-Import {\n position: absolute;\n right: 0px;\n top: 0px;\n z-index: 10;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-password {\n border-left: 1px solid #dcdcdc;\n display: flex;\n flex: none;\n width: 458px;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-title {\n flex: none;\n width: 30px;\n height: 100%;\n text-align: center;\n border-right: 1px solid #dcdcdc;\n display: table;\n padding: 0 5px;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-title label {\n display: table-cell;\n vertical-align: middle;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover {\n padding-top: 0;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .ktsAnt3x-popover-inner-content {\n padding: 6px 0;\n display: flex;\n flex-direction: column;\n overflow-y: auto;\n overflow-x: hidden;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .ktsAnt3x-popover-arrow {\n display: none;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content {\n width: 567px;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content .kts-invoice-operate-buyer-name-content-block {\n padding: 14px 0;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content .kts-invoice-operate-buyer-name-content-block label {\n display: block;\n font-size: 12px;\n color: #666666;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content .kts-invoice-operate-buyer-name-content-recently-issued {\n padding: 0;\n margin: 0;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content .kts-invoice-operate-buyer-name-content-recently-issued li {\n list-style: none;\n width: 50%;\n float: left;\n margin-bottom: 20px;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content .kts-invoice-operate-buyer-name-content-recently-issued::after {\n content: \".\";\n display: block;\n height: 0;\n clear: left;\n visibility: hidden;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content .kts-invoice-operate-buyer-name-content-select-company {\n padding: 0;\n margin: 0;\n font-size: 12px;\n padding: 10px;\n font-weight: bold;\n color: #000000;\n cursor: pointer;\n transition: background 0.4s;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content .kts-invoice-operate-buyer-name-content-select-company:hover {\n background: #e6e6e6e6;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content .kts-invoice-operate-buyer-name-content-select-company:last-child {\n margin-bottom: 0;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content .kts-invoice-operate-buyer-name-content-select-company li {\n list-style: none;\n width: 50%;\n float: left;\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n padding-right: 10px;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content .kts-invoice-operate-buyer-name-content-select-company::after {\n content: \".\";\n display: block;\n height: 0;\n clear: left;\n visibility: hidden;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content-tag {\n line-height: 1;\n padding: 4px 12px;\n background: #F3F3F3;\n border-radius: 9999px;\n font-size: 12px;\n font-weight: bold;\n color: #000;\n cursor: pointer;\n transition: background 0.4s;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content-tag:hover {\n background: #e6e6e6e6;\n}\n";
|
|
5276
|
+
var css_248z$9 = ".kts-invoice-operate-buyer {\n display: flex;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message {\n flex: 1;\n display: flex;\n position: relative;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .ktsAnt3x-descriptions-item-label {\n width: 179px;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list {\n width: 100%;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-descriptions-view {\n border: none;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-descriptions-item-label {\n padding: 0 10px;\n font-size: 12px;\n background-color: #fff;\n line-height: 30px;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-descriptions-item-content {\n padding: 0;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-descriptions-item-content .ktsAnt3x-input {\n box-shadow: none;\n border-color: #fff;\n border-radius: 0;\n padding: 0 10px;\n font-size: 12px;\n line-height: 30px;\n width: 100%;\n height: 100%;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-descriptions-item-content .ktsAnt3x-input:hover {\n border: 1 solid;\n border-color: #40a9ff;\n border-right-width: 1px !important;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-descriptions-item-content .has-error .ktsAnt3x-input,\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-descriptions-item-content .has-error .ktsAnt3x-input:hover {\n background-color: #fff;\n border: 1 solid;\n border-color: #f5222d;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-form-item {\n margin: 0;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-form-item-control {\n line-height: 0;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-form-item-children {\n height: 30px;\n display: block;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-form-item-children .ktsAnt3x-btn {\n line-height: 0;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-form-explain {\n position: absolute;\n left: 5px;\n top: 6px;\n z-index: 10;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-Import {\n position: absolute;\n right: 0px;\n top: 0px;\n z-index: 10;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-password {\n border-left: 1px solid #dcdcdc;\n display: flex;\n flex: none;\n width: 458px;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-title {\n flex: none;\n width: 30px;\n height: 100%;\n text-align: center;\n border-right: 1px solid #dcdcdc;\n display: table;\n padding: 0 5px;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-title label {\n display: table-cell;\n vertical-align: middle;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover {\n padding-top: 0;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .ktsAnt3x-popover-inner-content {\n padding: 6px 0;\n display: flex;\n flex-direction: column;\n overflow-y: auto;\n overflow-x: hidden;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .ktsAnt3x-popover-arrow {\n display: none;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content {\n width: 567px;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content .kts-invoice-operate-buyer-name-content-block {\n padding: 14px 0;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content .kts-invoice-operate-buyer-name-content-block label {\n display: block;\n font-size: 12px;\n color: #666666;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content .kts-invoice-operate-buyer-name-content-recently-issued {\n padding: 0;\n margin: 0;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content .kts-invoice-operate-buyer-name-content-recently-issued li {\n list-style: none;\n width: 50%;\n float: left;\n margin-bottom: 20px;\n padding: 0 10px;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content .kts-invoice-operate-buyer-name-content-recently-issued::after {\n content: \".\";\n display: block;\n height: 0;\n clear: left;\n visibility: hidden;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content .kts-invoice-operate-buyer-name-content-select-company {\n padding: 0;\n margin: 0;\n font-size: 12px;\n padding: 10px;\n font-weight: bold;\n color: #000000;\n cursor: pointer;\n transition: background 0.4s;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content .kts-invoice-operate-buyer-name-content-select-company:hover {\n background: #e6e6e6e6;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content .kts-invoice-operate-buyer-name-content-select-company:last-child {\n margin-bottom: 0;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content .kts-invoice-operate-buyer-name-content-select-company li {\n list-style: none;\n width: 50%;\n float: left;\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n padding-right: 10px;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content .kts-invoice-operate-buyer-name-content-select-company::after {\n content: \".\";\n display: block;\n height: 0;\n clear: left;\n visibility: hidden;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content-tag {\n line-height: 1;\n padding: 4px 12px;\n background: #F3F3F3;\n border-radius: 9999px;\n font-size: 12px;\n font-weight: bold;\n color: #000;\n cursor: pointer;\n transition: background 0.4s;\n display: inline-block;\n max-width: 100%;\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content-tag:hover {\n background: #e6e6e6e6;\n}\n";
|
|
5289
5277
|
styleInject(css_248z$9);
|
|
5290
5278
|
|
|
5291
5279
|
var Text$5 = Typography.Text;
|
|
@@ -5947,6 +5935,9 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
5947
5935
|
var favouredPolicyNameList = controller.useMemo(function (s) {
|
|
5948
5936
|
return s.goodsListState.endowCode.favouredPolicyNameList;
|
|
5949
5937
|
}, []);
|
|
5938
|
+
/** 优惠政策类型列表 */
|
|
5939
|
+
// const getTaxCategoryCodeTree = controller.useMemo(s => s.goodsListState.endowCode.getTaxCategoryCodeTree, []);
|
|
5940
|
+
|
|
5950
5941
|
/** 税率 */
|
|
5951
5942
|
|
|
5952
5943
|
var _React$useState3 = React.useState(0),
|
|
@@ -6190,35 +6181,39 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
6190
6181
|
setVisible(false);
|
|
6191
6182
|
}, [list, actions, readOnlyTaxRate]);
|
|
6192
6183
|
React.useEffect(function () {
|
|
6193
|
-
_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
6194
|
-
|
|
6184
|
+
_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee10() {
|
|
6185
|
+
var fn, list;
|
|
6186
|
+
return regeneratorRuntime.wrap(function _callee10$(_context10) {
|
|
6195
6187
|
while (1) {
|
|
6196
|
-
switch (
|
|
6188
|
+
switch (_context10.prev = _context10.next) {
|
|
6197
6189
|
case 0:
|
|
6198
|
-
|
|
6199
|
-
|
|
6200
|
-
|
|
6201
|
-
|
|
6202
|
-
|
|
6203
|
-
|
|
6204
|
-
|
|
6205
|
-
if (_context9.t1) {
|
|
6206
|
-
_context9.next = 6;
|
|
6207
|
-
break;
|
|
6208
|
-
}
|
|
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", []);
|
|
6209
6196
|
|
|
6210
|
-
|
|
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);
|
|
6211
6206
|
|
|
6212
|
-
case
|
|
6213
|
-
|
|
6214
|
-
(
|
|
6207
|
+
case 3:
|
|
6208
|
+
list = _context10.sent;
|
|
6209
|
+
setList(list || []);
|
|
6215
6210
|
|
|
6216
|
-
case
|
|
6211
|
+
case 5:
|
|
6217
6212
|
case "end":
|
|
6218
|
-
return
|
|
6213
|
+
return _context10.stop();
|
|
6219
6214
|
}
|
|
6220
6215
|
}
|
|
6221
|
-
},
|
|
6216
|
+
}, _callee10);
|
|
6222
6217
|
}))();
|
|
6223
6218
|
}, [filter]);
|
|
6224
6219
|
React.useEffect(function () {
|
|
@@ -6280,11 +6275,11 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
6280
6275
|
|
|
6281
6276
|
var onSubmit = React.useCallback(function (values) {
|
|
6282
6277
|
controller.pipeline( /*#__PURE__*/function () {
|
|
6283
|
-
var
|
|
6278
|
+
var _ref11 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee11(s) {
|
|
6284
6279
|
var endowCodeGood;
|
|
6285
|
-
return regeneratorRuntime.wrap(function
|
|
6280
|
+
return regeneratorRuntime.wrap(function _callee11$(_context11) {
|
|
6286
6281
|
while (1) {
|
|
6287
|
-
switch (
|
|
6282
|
+
switch (_context11.prev = _context11.next) {
|
|
6288
6283
|
case 0:
|
|
6289
6284
|
endowCodeGood = s.goodsListState.endowCode.endowcodeGoodIndex.map(function (e) {
|
|
6290
6285
|
return s.goodsListState.goodsMap.get(e);
|
|
@@ -6320,11 +6315,11 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
6320
6315
|
if (!endowCodeGood.some(function (e) {
|
|
6321
6316
|
return bytesLnegth((e === null || e === void 0 ? void 0 : e.itemName) || '') > 92;
|
|
6322
6317
|
})) {
|
|
6323
|
-
|
|
6318
|
+
_context11.next = 5;
|
|
6324
6319
|
break;
|
|
6325
6320
|
}
|
|
6326
6321
|
|
|
6327
|
-
|
|
6322
|
+
_context11.next = 5;
|
|
6328
6323
|
return function () {
|
|
6329
6324
|
return new Promise(function (resolve) {
|
|
6330
6325
|
confirm({
|
|
@@ -6354,14 +6349,14 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
6354
6349
|
|
|
6355
6350
|
case 7:
|
|
6356
6351
|
case "end":
|
|
6357
|
-
return
|
|
6352
|
+
return _context11.stop();
|
|
6358
6353
|
}
|
|
6359
6354
|
}
|
|
6360
|
-
},
|
|
6355
|
+
}, _callee11);
|
|
6361
6356
|
}));
|
|
6362
6357
|
|
|
6363
6358
|
return function (_x9) {
|
|
6364
|
-
return
|
|
6359
|
+
return _ref11.apply(this, arguments);
|
|
6365
6360
|
};
|
|
6366
6361
|
}())();
|
|
6367
6362
|
}, [controller]);
|
|
@@ -6370,23 +6365,23 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
6370
6365
|
FormEffectHooks.onFieldValueChange$('taxRate').subscribe(function (e) {
|
|
6371
6366
|
setTaxRate(e.value);
|
|
6372
6367
|
actions.setFieldState('taxFreeType', /*#__PURE__*/function () {
|
|
6373
|
-
var
|
|
6374
|
-
return regeneratorRuntime.wrap(function
|
|
6368
|
+
var _ref12 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee12(s) {
|
|
6369
|
+
return regeneratorRuntime.wrap(function _callee12$(_context12) {
|
|
6375
6370
|
while (1) {
|
|
6376
|
-
switch (
|
|
6371
|
+
switch (_context12.prev = _context12.next) {
|
|
6377
6372
|
case 0:
|
|
6378
6373
|
if (e.value !== 0) s.value = undefined;
|
|
6379
6374
|
|
|
6380
6375
|
case 1:
|
|
6381
6376
|
case "end":
|
|
6382
|
-
return
|
|
6377
|
+
return _context12.stop();
|
|
6383
6378
|
}
|
|
6384
6379
|
}
|
|
6385
|
-
},
|
|
6380
|
+
}, _callee12);
|
|
6386
6381
|
}));
|
|
6387
6382
|
|
|
6388
6383
|
return function (_x10) {
|
|
6389
|
-
return
|
|
6384
|
+
return _ref12.apply(this, arguments);
|
|
6390
6385
|
};
|
|
6391
6386
|
}());
|
|
6392
6387
|
}); // 是否享受优惠政策
|
|
@@ -6394,23 +6389,23 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
6394
6389
|
FormEffectHooks.onFieldValueChange$('favouredPolicyMark').subscribe(function (e) {
|
|
6395
6390
|
setFavouredPolicyMark(e.value);
|
|
6396
6391
|
actions.setFieldState('favouredPolicyName', /*#__PURE__*/function () {
|
|
6397
|
-
var
|
|
6398
|
-
return regeneratorRuntime.wrap(function
|
|
6392
|
+
var _ref13 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee13(s) {
|
|
6393
|
+
return regeneratorRuntime.wrap(function _callee13$(_context13) {
|
|
6399
6394
|
while (1) {
|
|
6400
|
-
switch (
|
|
6395
|
+
switch (_context13.prev = _context13.next) {
|
|
6401
6396
|
case 0:
|
|
6402
6397
|
if (e.value === 0) s.value = undefined;
|
|
6403
6398
|
|
|
6404
6399
|
case 1:
|
|
6405
6400
|
case "end":
|
|
6406
|
-
return
|
|
6401
|
+
return _context13.stop();
|
|
6407
6402
|
}
|
|
6408
6403
|
}
|
|
6409
|
-
},
|
|
6404
|
+
}, _callee13);
|
|
6410
6405
|
}));
|
|
6411
6406
|
|
|
6412
6407
|
return function (_x11) {
|
|
6413
|
-
return
|
|
6408
|
+
return _ref13.apply(this, arguments);
|
|
6414
6409
|
};
|
|
6415
6410
|
}());
|
|
6416
6411
|
});
|
|
@@ -6422,7 +6417,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
6422
6417
|
return /*#__PURE__*/React.createElement(SchemaForm, {
|
|
6423
6418
|
actions: actions,
|
|
6424
6419
|
components: _objectSpread2(_objectSpread2({}, components), {}, {
|
|
6425
|
-
showSearch: ShowSearch2
|
|
6420
|
+
showSearch: !!controller.state.goodsListState.endowCode.getTaxCategoryCodeTree ? ShowSearch2 : ShowSearch
|
|
6426
6421
|
}),
|
|
6427
6422
|
effects: effects
|
|
6428
6423
|
}, /*#__PURE__*/React.createElement(FormButtonGroup, null, /*#__PURE__*/React.createElement(SchemaMarkupField, {
|
|
@@ -6499,23 +6494,23 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
6499
6494
|
}, "\u786E\u5B9A"), /*#__PURE__*/React.createElement(Button, {
|
|
6500
6495
|
onClick: function onClick() {
|
|
6501
6496
|
controller.pipeline( /*#__PURE__*/function () {
|
|
6502
|
-
var
|
|
6503
|
-
return regeneratorRuntime.wrap(function
|
|
6497
|
+
var _ref14 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee14(s) {
|
|
6498
|
+
return regeneratorRuntime.wrap(function _callee14$(_context14) {
|
|
6504
6499
|
while (1) {
|
|
6505
|
-
switch (
|
|
6500
|
+
switch (_context14.prev = _context14.next) {
|
|
6506
6501
|
case 0:
|
|
6507
|
-
return
|
|
6502
|
+
return _context14.abrupt("return", s.goodsListState.endowCode.endowcodeGoodIndex = []);
|
|
6508
6503
|
|
|
6509
6504
|
case 1:
|
|
6510
6505
|
case "end":
|
|
6511
|
-
return
|
|
6506
|
+
return _context14.stop();
|
|
6512
6507
|
}
|
|
6513
6508
|
}
|
|
6514
|
-
},
|
|
6509
|
+
}, _callee14);
|
|
6515
6510
|
}));
|
|
6516
6511
|
|
|
6517
6512
|
return function (_x12) {
|
|
6518
|
-
return
|
|
6513
|
+
return _ref14.apply(this, arguments);
|
|
6519
6514
|
};
|
|
6520
6515
|
}())();
|
|
6521
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 = {
|
|
@@ -5283,7 +5270,8 @@ function useDataSource() {
|
|
|
5283
5270
|
|
|
5284
5271
|
function MyTag(props) {
|
|
5285
5272
|
return /*#__PURE__*/React__default['default'].createElement("span", {
|
|
5286
|
-
className: 'kts-invoice-operate-buyer-name-content-tag'
|
|
5273
|
+
className: 'kts-invoice-operate-buyer-name-content-tag',
|
|
5274
|
+
title: props.children
|
|
5287
5275
|
}, props.children);
|
|
5288
5276
|
}
|
|
5289
5277
|
|
|
@@ -5295,7 +5283,7 @@ function interval(i, t) {
|
|
|
5295
5283
|
}
|
|
5296
5284
|
}
|
|
5297
5285
|
|
|
5298
|
-
var css_248z$9 = ".kts-invoice-operate-buyer {\n display: flex;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message {\n flex: 1;\n display: flex;\n position: relative;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .ktsAnt3x-descriptions-item-label {\n width: 179px;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list {\n width: 100%;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-descriptions-view {\n border: none;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-descriptions-item-label {\n padding: 0 10px;\n font-size: 12px;\n background-color: #fff;\n line-height: 30px;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-descriptions-item-content {\n padding: 0;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-descriptions-item-content .ktsAnt3x-input {\n box-shadow: none;\n border-color: #fff;\n border-radius: 0;\n padding: 0 10px;\n font-size: 12px;\n line-height: 30px;\n width: 100%;\n height: 100%;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-descriptions-item-content .ktsAnt3x-input:hover {\n border: 1 solid;\n border-color: #40a9ff;\n border-right-width: 1px !important;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-descriptions-item-content .has-error .ktsAnt3x-input,\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-descriptions-item-content .has-error .ktsAnt3x-input:hover {\n background-color: #fff;\n border: 1 solid;\n border-color: #f5222d;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-form-item {\n margin: 0;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-form-item-control {\n line-height: 0;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-form-item-children {\n height: 30px;\n display: block;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-form-item-children .ktsAnt3x-btn {\n line-height: 0;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-form-explain {\n position: absolute;\n left: 5px;\n top: 6px;\n z-index: 10;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-Import {\n position: absolute;\n right: 0px;\n top: 0px;\n z-index: 10;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-password {\n border-left: 1px solid #dcdcdc;\n display: flex;\n flex: none;\n width: 458px;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-title {\n flex: none;\n width: 30px;\n height: 100%;\n text-align: center;\n border-right: 1px solid #dcdcdc;\n display: table;\n padding: 0 5px;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-title label {\n display: table-cell;\n vertical-align: middle;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover {\n padding-top: 0;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .ktsAnt3x-popover-inner-content {\n padding: 6px 0;\n display: flex;\n flex-direction: column;\n overflow-y: auto;\n overflow-x: hidden;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .ktsAnt3x-popover-arrow {\n display: none;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content {\n width: 567px;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content .kts-invoice-operate-buyer-name-content-block {\n padding: 14px 0;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content .kts-invoice-operate-buyer-name-content-block label {\n display: block;\n font-size: 12px;\n color: #666666;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content .kts-invoice-operate-buyer-name-content-recently-issued {\n padding: 0;\n margin: 0;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content .kts-invoice-operate-buyer-name-content-recently-issued li {\n list-style: none;\n width: 50%;\n float: left;\n margin-bottom: 20px;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content .kts-invoice-operate-buyer-name-content-recently-issued::after {\n content: \".\";\n display: block;\n height: 0;\n clear: left;\n visibility: hidden;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content .kts-invoice-operate-buyer-name-content-select-company {\n padding: 0;\n margin: 0;\n font-size: 12px;\n padding: 10px;\n font-weight: bold;\n color: #000000;\n cursor: pointer;\n transition: background 0.4s;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content .kts-invoice-operate-buyer-name-content-select-company:hover {\n background: #e6e6e6e6;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content .kts-invoice-operate-buyer-name-content-select-company:last-child {\n margin-bottom: 0;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content .kts-invoice-operate-buyer-name-content-select-company li {\n list-style: none;\n width: 50%;\n float: left;\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n padding-right: 10px;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content .kts-invoice-operate-buyer-name-content-select-company::after {\n content: \".\";\n display: block;\n height: 0;\n clear: left;\n visibility: hidden;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content-tag {\n line-height: 1;\n padding: 4px 12px;\n background: #F3F3F3;\n border-radius: 9999px;\n font-size: 12px;\n font-weight: bold;\n color: #000;\n cursor: pointer;\n transition: background 0.4s;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content-tag:hover {\n background: #e6e6e6e6;\n}\n";
|
|
5286
|
+
var css_248z$9 = ".kts-invoice-operate-buyer {\n display: flex;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message {\n flex: 1;\n display: flex;\n position: relative;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .ktsAnt3x-descriptions-item-label {\n width: 179px;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list {\n width: 100%;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-descriptions-view {\n border: none;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-descriptions-item-label {\n padding: 0 10px;\n font-size: 12px;\n background-color: #fff;\n line-height: 30px;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-descriptions-item-content {\n padding: 0;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-descriptions-item-content .ktsAnt3x-input {\n box-shadow: none;\n border-color: #fff;\n border-radius: 0;\n padding: 0 10px;\n font-size: 12px;\n line-height: 30px;\n width: 100%;\n height: 100%;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-descriptions-item-content .ktsAnt3x-input:hover {\n border: 1 solid;\n border-color: #40a9ff;\n border-right-width: 1px !important;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-descriptions-item-content .has-error .ktsAnt3x-input,\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-descriptions-item-content .has-error .ktsAnt3x-input:hover {\n background-color: #fff;\n border: 1 solid;\n border-color: #f5222d;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-form-item {\n margin: 0;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-form-item-control {\n line-height: 0;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-form-item-children {\n height: 30px;\n display: block;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-form-item-children .ktsAnt3x-btn {\n line-height: 0;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-form-explain {\n position: absolute;\n left: 5px;\n top: 6px;\n z-index: 10;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-Import {\n position: absolute;\n right: 0px;\n top: 0px;\n z-index: 10;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-password {\n border-left: 1px solid #dcdcdc;\n display: flex;\n flex: none;\n width: 458px;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-title {\n flex: none;\n width: 30px;\n height: 100%;\n text-align: center;\n border-right: 1px solid #dcdcdc;\n display: table;\n padding: 0 5px;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-title label {\n display: table-cell;\n vertical-align: middle;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover {\n padding-top: 0;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .ktsAnt3x-popover-inner-content {\n padding: 6px 0;\n display: flex;\n flex-direction: column;\n overflow-y: auto;\n overflow-x: hidden;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .ktsAnt3x-popover-arrow {\n display: none;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content {\n width: 567px;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content .kts-invoice-operate-buyer-name-content-block {\n padding: 14px 0;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content .kts-invoice-operate-buyer-name-content-block label {\n display: block;\n font-size: 12px;\n color: #666666;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content .kts-invoice-operate-buyer-name-content-recently-issued {\n padding: 0;\n margin: 0;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content .kts-invoice-operate-buyer-name-content-recently-issued li {\n list-style: none;\n width: 50%;\n float: left;\n margin-bottom: 20px;\n padding: 0 10px;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content .kts-invoice-operate-buyer-name-content-recently-issued::after {\n content: \".\";\n display: block;\n height: 0;\n clear: left;\n visibility: hidden;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content .kts-invoice-operate-buyer-name-content-select-company {\n padding: 0;\n margin: 0;\n font-size: 12px;\n padding: 10px;\n font-weight: bold;\n color: #000000;\n cursor: pointer;\n transition: background 0.4s;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content .kts-invoice-operate-buyer-name-content-select-company:hover {\n background: #e6e6e6e6;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content .kts-invoice-operate-buyer-name-content-select-company:last-child {\n margin-bottom: 0;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content .kts-invoice-operate-buyer-name-content-select-company li {\n list-style: none;\n width: 50%;\n float: left;\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n padding-right: 10px;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content .kts-invoice-operate-buyer-name-content-select-company::after {\n content: \".\";\n display: block;\n height: 0;\n clear: left;\n visibility: hidden;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content-tag {\n line-height: 1;\n padding: 4px 12px;\n background: #F3F3F3;\n border-radius: 9999px;\n font-size: 12px;\n font-weight: bold;\n color: #000;\n cursor: pointer;\n transition: background 0.4s;\n display: inline-block;\n max-width: 100%;\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content-tag:hover {\n background: #e6e6e6e6;\n}\n";
|
|
5299
5287
|
styleInject(css_248z$9);
|
|
5300
5288
|
|
|
5301
5289
|
var Text$5 = ktsComponentsAntdX3.Typography.Text;
|
|
@@ -5957,6 +5945,9 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
5957
5945
|
var favouredPolicyNameList = controller.useMemo(function (s) {
|
|
5958
5946
|
return s.goodsListState.endowCode.favouredPolicyNameList;
|
|
5959
5947
|
}, []);
|
|
5948
|
+
/** 优惠政策类型列表 */
|
|
5949
|
+
// const getTaxCategoryCodeTree = controller.useMemo(s => s.goodsListState.endowCode.getTaxCategoryCodeTree, []);
|
|
5950
|
+
|
|
5960
5951
|
/** 税率 */
|
|
5961
5952
|
|
|
5962
5953
|
var _React$useState3 = React__default['default'].useState(0),
|
|
@@ -6200,35 +6191,39 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
6200
6191
|
setVisible(false);
|
|
6201
6192
|
}, [list, actions, readOnlyTaxRate]);
|
|
6202
6193
|
React__default['default'].useEffect(function () {
|
|
6203
|
-
_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
6204
|
-
|
|
6194
|
+
_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee10() {
|
|
6195
|
+
var fn, list;
|
|
6196
|
+
return regeneratorRuntime.wrap(function _callee10$(_context10) {
|
|
6205
6197
|
while (1) {
|
|
6206
|
-
switch (
|
|
6198
|
+
switch (_context10.prev = _context10.next) {
|
|
6207
6199
|
case 0:
|
|
6208
|
-
|
|
6209
|
-
|
|
6210
|
-
|
|
6211
|
-
|
|
6212
|
-
|
|
6213
|
-
|
|
6214
|
-
|
|
6215
|
-
if (_context9.t1) {
|
|
6216
|
-
_context9.next = 6;
|
|
6217
|
-
break;
|
|
6218
|
-
}
|
|
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", []);
|
|
6219
6206
|
|
|
6220
|
-
|
|
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);
|
|
6221
6216
|
|
|
6222
|
-
case
|
|
6223
|
-
|
|
6224
|
-
(
|
|
6217
|
+
case 3:
|
|
6218
|
+
list = _context10.sent;
|
|
6219
|
+
setList(list || []);
|
|
6225
6220
|
|
|
6226
|
-
case
|
|
6221
|
+
case 5:
|
|
6227
6222
|
case "end":
|
|
6228
|
-
return
|
|
6223
|
+
return _context10.stop();
|
|
6229
6224
|
}
|
|
6230
6225
|
}
|
|
6231
|
-
},
|
|
6226
|
+
}, _callee10);
|
|
6232
6227
|
}))();
|
|
6233
6228
|
}, [filter]);
|
|
6234
6229
|
React__default['default'].useEffect(function () {
|
|
@@ -6290,11 +6285,11 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
6290
6285
|
|
|
6291
6286
|
var onSubmit = React__default['default'].useCallback(function (values) {
|
|
6292
6287
|
controller.pipeline( /*#__PURE__*/function () {
|
|
6293
|
-
var
|
|
6288
|
+
var _ref11 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee11(s) {
|
|
6294
6289
|
var endowCodeGood;
|
|
6295
|
-
return regeneratorRuntime.wrap(function
|
|
6290
|
+
return regeneratorRuntime.wrap(function _callee11$(_context11) {
|
|
6296
6291
|
while (1) {
|
|
6297
|
-
switch (
|
|
6292
|
+
switch (_context11.prev = _context11.next) {
|
|
6298
6293
|
case 0:
|
|
6299
6294
|
endowCodeGood = s.goodsListState.endowCode.endowcodeGoodIndex.map(function (e) {
|
|
6300
6295
|
return s.goodsListState.goodsMap.get(e);
|
|
@@ -6330,11 +6325,11 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
6330
6325
|
if (!endowCodeGood.some(function (e) {
|
|
6331
6326
|
return bytesLnegth((e === null || e === void 0 ? void 0 : e.itemName) || '') > 92;
|
|
6332
6327
|
})) {
|
|
6333
|
-
|
|
6328
|
+
_context11.next = 5;
|
|
6334
6329
|
break;
|
|
6335
6330
|
}
|
|
6336
6331
|
|
|
6337
|
-
|
|
6332
|
+
_context11.next = 5;
|
|
6338
6333
|
return function () {
|
|
6339
6334
|
return new Promise(function (resolve) {
|
|
6340
6335
|
confirm({
|
|
@@ -6364,14 +6359,14 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
6364
6359
|
|
|
6365
6360
|
case 7:
|
|
6366
6361
|
case "end":
|
|
6367
|
-
return
|
|
6362
|
+
return _context11.stop();
|
|
6368
6363
|
}
|
|
6369
6364
|
}
|
|
6370
|
-
},
|
|
6365
|
+
}, _callee11);
|
|
6371
6366
|
}));
|
|
6372
6367
|
|
|
6373
6368
|
return function (_x9) {
|
|
6374
|
-
return
|
|
6369
|
+
return _ref11.apply(this, arguments);
|
|
6375
6370
|
};
|
|
6376
6371
|
}())();
|
|
6377
6372
|
}, [controller]);
|
|
@@ -6380,23 +6375,23 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
6380
6375
|
antd.FormEffectHooks.onFieldValueChange$('taxRate').subscribe(function (e) {
|
|
6381
6376
|
setTaxRate(e.value);
|
|
6382
6377
|
actions.setFieldState('taxFreeType', /*#__PURE__*/function () {
|
|
6383
|
-
var
|
|
6384
|
-
return regeneratorRuntime.wrap(function
|
|
6378
|
+
var _ref12 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee12(s) {
|
|
6379
|
+
return regeneratorRuntime.wrap(function _callee12$(_context12) {
|
|
6385
6380
|
while (1) {
|
|
6386
|
-
switch (
|
|
6381
|
+
switch (_context12.prev = _context12.next) {
|
|
6387
6382
|
case 0:
|
|
6388
6383
|
if (e.value !== 0) s.value = undefined;
|
|
6389
6384
|
|
|
6390
6385
|
case 1:
|
|
6391
6386
|
case "end":
|
|
6392
|
-
return
|
|
6387
|
+
return _context12.stop();
|
|
6393
6388
|
}
|
|
6394
6389
|
}
|
|
6395
|
-
},
|
|
6390
|
+
}, _callee12);
|
|
6396
6391
|
}));
|
|
6397
6392
|
|
|
6398
6393
|
return function (_x10) {
|
|
6399
|
-
return
|
|
6394
|
+
return _ref12.apply(this, arguments);
|
|
6400
6395
|
};
|
|
6401
6396
|
}());
|
|
6402
6397
|
}); // 是否享受优惠政策
|
|
@@ -6404,23 +6399,23 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
6404
6399
|
antd.FormEffectHooks.onFieldValueChange$('favouredPolicyMark').subscribe(function (e) {
|
|
6405
6400
|
setFavouredPolicyMark(e.value);
|
|
6406
6401
|
actions.setFieldState('favouredPolicyName', /*#__PURE__*/function () {
|
|
6407
|
-
var
|
|
6408
|
-
return regeneratorRuntime.wrap(function
|
|
6402
|
+
var _ref13 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee13(s) {
|
|
6403
|
+
return regeneratorRuntime.wrap(function _callee13$(_context13) {
|
|
6409
6404
|
while (1) {
|
|
6410
|
-
switch (
|
|
6405
|
+
switch (_context13.prev = _context13.next) {
|
|
6411
6406
|
case 0:
|
|
6412
6407
|
if (e.value === 0) s.value = undefined;
|
|
6413
6408
|
|
|
6414
6409
|
case 1:
|
|
6415
6410
|
case "end":
|
|
6416
|
-
return
|
|
6411
|
+
return _context13.stop();
|
|
6417
6412
|
}
|
|
6418
6413
|
}
|
|
6419
|
-
},
|
|
6414
|
+
}, _callee13);
|
|
6420
6415
|
}));
|
|
6421
6416
|
|
|
6422
6417
|
return function (_x11) {
|
|
6423
|
-
return
|
|
6418
|
+
return _ref13.apply(this, arguments);
|
|
6424
6419
|
};
|
|
6425
6420
|
}());
|
|
6426
6421
|
});
|
|
@@ -6432,7 +6427,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
6432
6427
|
return /*#__PURE__*/React__default['default'].createElement(antd.SchemaForm, {
|
|
6433
6428
|
actions: actions,
|
|
6434
6429
|
components: _objectSpread2(_objectSpread2({}, components), {}, {
|
|
6435
|
-
showSearch: ShowSearch2
|
|
6430
|
+
showSearch: !!controller.state.goodsListState.endowCode.getTaxCategoryCodeTree ? ShowSearch2 : ShowSearch
|
|
6436
6431
|
}),
|
|
6437
6432
|
effects: effects
|
|
6438
6433
|
}, /*#__PURE__*/React__default['default'].createElement(antd.FormButtonGroup, null, /*#__PURE__*/React__default['default'].createElement(antd.SchemaMarkupField, {
|
|
@@ -6509,23 +6504,23 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
6509
6504
|
}, "\u786E\u5B9A"), /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Button, {
|
|
6510
6505
|
onClick: function onClick() {
|
|
6511
6506
|
controller.pipeline( /*#__PURE__*/function () {
|
|
6512
|
-
var
|
|
6513
|
-
return regeneratorRuntime.wrap(function
|
|
6507
|
+
var _ref14 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee14(s) {
|
|
6508
|
+
return regeneratorRuntime.wrap(function _callee14$(_context14) {
|
|
6514
6509
|
while (1) {
|
|
6515
|
-
switch (
|
|
6510
|
+
switch (_context14.prev = _context14.next) {
|
|
6516
6511
|
case 0:
|
|
6517
|
-
return
|
|
6512
|
+
return _context14.abrupt("return", s.goodsListState.endowCode.endowcodeGoodIndex = []);
|
|
6518
6513
|
|
|
6519
6514
|
case 1:
|
|
6520
6515
|
case "end":
|
|
6521
|
-
return
|
|
6516
|
+
return _context14.stop();
|
|
6522
6517
|
}
|
|
6523
6518
|
}
|
|
6524
|
-
},
|
|
6519
|
+
}, _callee14);
|
|
6525
6520
|
}));
|
|
6526
6521
|
|
|
6527
6522
|
return function (_x12) {
|
|
6528
|
-
return
|
|
6523
|
+
return _ref14.apply(this, arguments);
|
|
6529
6524
|
};
|
|
6530
6525
|
}())();
|
|
6531
6526
|
}
|
package/docs/index.md
CHANGED