kts-component-invoice-operate 2.0.17 → 2.0.19
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 +25 -22
- package/dist/index.js +25 -22
- package/docs-dist/umi.js +1 -1
- package/package.json +1 -1
- package/src/Invoice/ui/EndowCodeDrawer/index.tsx +3 -2
- package/src/Invoice/ui/GoodsList/hook/useColumns/index.tsx +1 -1
- package/src/Invoice/ui/GoodsList/hook/useColumns/ui/RowMenu/hook/useEndowCode/index.tsx +10 -4
- package/src/Invoice/ui/GoodsList/hook/useColumns/ui/RowMenu/index.tsx +16 -11
package/dist/index.esm.js
CHANGED
|
@@ -9850,7 +9850,6 @@ var onChangeItemName = /*#__PURE__*/function () {
|
|
|
9850
9850
|
};
|
|
9851
9851
|
}();
|
|
9852
9852
|
|
|
9853
|
-
var Text$3 = Typography.Text;
|
|
9854
9853
|
var useEndowCode = (function (goods) {
|
|
9855
9854
|
var controller = Invoice.useInvoiceController();
|
|
9856
9855
|
var onClick = React.useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
@@ -9866,18 +9865,22 @@ var useEndowCode = (function (goods) {
|
|
|
9866
9865
|
}
|
|
9867
9866
|
}
|
|
9868
9867
|
}, _callee);
|
|
9869
|
-
})), [controller, goods]);
|
|
9868
|
+
})), [controller, goods]); // return React.useMemo(() => {
|
|
9869
|
+
// return (
|
|
9870
|
+
// <Menu.Item key="endowCode" onClick={onClick} ><Text strong>赋码</Text></Menu.Item>
|
|
9871
|
+
// );
|
|
9872
|
+
// }, [goods.lineAttribute, onClick])
|
|
9873
|
+
|
|
9870
9874
|
return React.useMemo(function () {
|
|
9871
|
-
return React.createElement(
|
|
9875
|
+
return React.createElement(Button, {
|
|
9872
9876
|
key: "endowCode",
|
|
9877
|
+
type: "link",
|
|
9873
9878
|
onClick: onClick
|
|
9874
|
-
},
|
|
9875
|
-
strong: true
|
|
9876
|
-
}, "\u8D4B\u7801"));
|
|
9879
|
+
}, "\u8D4B\u7801");
|
|
9877
9880
|
}, [goods.lineAttribute, onClick]);
|
|
9878
9881
|
});
|
|
9879
9882
|
|
|
9880
|
-
var Text$
|
|
9883
|
+
var Text$3 = Typography.Text;
|
|
9881
9884
|
var useAddComparison = (function (goods) {
|
|
9882
9885
|
var controller = Invoice.useInvoiceController();
|
|
9883
9886
|
var productComparison = controller.useMemo(function (s) {
|
|
@@ -9959,7 +9962,7 @@ var useAddComparison = (function (goods) {
|
|
|
9959
9962
|
return React.createElement(Menu.Item, {
|
|
9960
9963
|
key: "delItem",
|
|
9961
9964
|
onClick: onClick
|
|
9962
|
-
}, React.createElement(Text$
|
|
9965
|
+
}, React.createElement(Text$3, {
|
|
9963
9966
|
strong: true
|
|
9964
9967
|
}, "\u6DFB\u52A0\u5546\u54C1\u5BF9\u7167"));
|
|
9965
9968
|
} else {
|
|
@@ -9993,8 +9996,7 @@ var RowMenu = (function (props) {
|
|
|
9993
9996
|
model !== 'prefab' && isAddDiscount !== false && addDiscount && arr.push(addDiscount); // 添加折扣行
|
|
9994
9997
|
|
|
9995
9998
|
arr.push(addComparison); // 添加商品对照
|
|
9996
|
-
|
|
9997
|
-
endowCode && arr.push(endowCode); // 赋码
|
|
9999
|
+
// endowCode && arr.push(endowCode); // 赋码
|
|
9998
10000
|
|
|
9999
10001
|
model !== 'prefab' && delItem && arr.push(delItem); // 删除
|
|
10000
10002
|
|
|
@@ -10015,7 +10017,7 @@ var RowMenu = (function (props) {
|
|
|
10015
10017
|
return React.createElement(React.Fragment, null);
|
|
10016
10018
|
}
|
|
10017
10019
|
|
|
10018
|
-
return React.createElement(Dropdown, {
|
|
10020
|
+
return React.createElement("span", null, endowCode, React.createElement(Dropdown, {
|
|
10019
10021
|
overlay: React.createElement(Menu, null, itemList),
|
|
10020
10022
|
trigger: ['click']
|
|
10021
10023
|
}, React.createElement(Button, {
|
|
@@ -10023,10 +10025,10 @@ var RowMenu = (function (props) {
|
|
|
10023
10025
|
type: "link"
|
|
10024
10026
|
}, React.createElement(Icon, {
|
|
10025
10027
|
component: SvgSpot
|
|
10026
|
-
})));
|
|
10028
|
+
}))));
|
|
10027
10029
|
});
|
|
10028
10030
|
|
|
10029
|
-
var Text$
|
|
10031
|
+
var Text$4 = Typography.Text;
|
|
10030
10032
|
var useColumns = (function (form) {
|
|
10031
10033
|
var getFieldDecorator = form.getFieldDecorator,
|
|
10032
10034
|
getFieldValue = form.getFieldValue;
|
|
@@ -10077,7 +10079,7 @@ var useColumns = (function (form) {
|
|
|
10077
10079
|
|
|
10078
10080
|
var columns = React.useMemo(function () {
|
|
10079
10081
|
return [{
|
|
10080
|
-
title: React.createElement(React.Fragment, null, React.createElement(Text$
|
|
10082
|
+
title: React.createElement(React.Fragment, null, React.createElement(Text$4, {
|
|
10081
10083
|
type: "danger"
|
|
10082
10084
|
}, "*"), "\u8D27\u7269\u540D\u79F0"),
|
|
10083
10085
|
key: 'itemName',
|
|
@@ -10495,7 +10497,7 @@ var useColumns = (function (form) {
|
|
|
10495
10497
|
}
|
|
10496
10498
|
}
|
|
10497
10499
|
}, {
|
|
10498
|
-
title: React.createElement(React.Fragment, null, React.createElement(Text$
|
|
10500
|
+
title: React.createElement(React.Fragment, null, React.createElement(Text$4, {
|
|
10499
10501
|
type: "danger"
|
|
10500
10502
|
}, "*"), "\u91D1\u989D(\u542B\u7A0E)"),
|
|
10501
10503
|
dataIndex: 'lineAmountIncludeTax',
|
|
@@ -10582,7 +10584,7 @@ var useColumns = (function (form) {
|
|
|
10582
10584
|
}
|
|
10583
10585
|
}
|
|
10584
10586
|
}, {
|
|
10585
|
-
title: React.createElement(React.Fragment, null, React.createElement(Text$
|
|
10587
|
+
title: React.createElement(React.Fragment, null, React.createElement(Text$4, {
|
|
10586
10588
|
type: "danger"
|
|
10587
10589
|
}, "*"), "\u91D1\u989D(\u4E0D\u542B\u7A0E)"),
|
|
10588
10590
|
dataIndex: 'lineAmountExcludeTax',
|
|
@@ -10644,7 +10646,7 @@ var useColumns = (function (form) {
|
|
|
10644
10646
|
}
|
|
10645
10647
|
}
|
|
10646
10648
|
}, {
|
|
10647
|
-
title: React.createElement(React.Fragment, null, React.createElement(Text$
|
|
10649
|
+
title: React.createElement(React.Fragment, null, React.createElement(Text$4, {
|
|
10648
10650
|
type: "danger"
|
|
10649
10651
|
}, "*"), "\u7A0E\u7387"),
|
|
10650
10652
|
dataIndex: 'taxRate',
|
|
@@ -10714,7 +10716,7 @@ var useColumns = (function (form) {
|
|
|
10714
10716
|
title: '操作',
|
|
10715
10717
|
dataIndex: 'operating',
|
|
10716
10718
|
key: 'operating',
|
|
10717
|
-
width:
|
|
10719
|
+
width: 120,
|
|
10718
10720
|
align: 'center',
|
|
10719
10721
|
render: function render(_value, record) {
|
|
10720
10722
|
return React.createElement(RowMenu, {
|
|
@@ -12196,7 +12198,7 @@ function interval(i, t) {
|
|
|
12196
12198
|
var css_248z$a = ".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";
|
|
12197
12199
|
styleInject(css_248z$a);
|
|
12198
12200
|
|
|
12199
|
-
var Text$
|
|
12201
|
+
var Text$5 = Typography.Text;
|
|
12200
12202
|
|
|
12201
12203
|
var Buyer$1 = /*#__PURE__*/function (_React$Component) {
|
|
12202
12204
|
_inherits(Buyer, _React$Component);
|
|
@@ -12310,7 +12312,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
12310
12312
|
if (e.options.rules.some(function (e) {
|
|
12311
12313
|
return e.required;
|
|
12312
12314
|
})) {
|
|
12313
|
-
return React.createElement(React.Fragment, null, React.createElement(Text$
|
|
12315
|
+
return React.createElement(React.Fragment, null, React.createElement(Text$5, {
|
|
12314
12316
|
type: "danger"
|
|
12315
12317
|
}, "*"), e.label);
|
|
12316
12318
|
} else {
|
|
@@ -13342,6 +13344,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
13342
13344
|
}), React.createElement(SchemaMarkupField, {
|
|
13343
13345
|
name: "shorthand",
|
|
13344
13346
|
type: "string",
|
|
13347
|
+
readOnly: true,
|
|
13345
13348
|
default: getShorthand(defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.itemName),
|
|
13346
13349
|
title: "\u5546\u54C1\u548C\u670D\u52A1\u5206\u7C7B\u7B80\u79F0"
|
|
13347
13350
|
}), React.createElement(SchemaMarkupField, {
|
|
@@ -13433,13 +13436,13 @@ var components = {
|
|
|
13433
13436
|
/** 提取简称 */
|
|
13434
13437
|
|
|
13435
13438
|
var getShorthand = function getShorthand(value) {
|
|
13436
|
-
if (!value) return
|
|
13439
|
+
if (!value) return ' ';
|
|
13437
13440
|
var arr = value.match(/\*[^*]+\*/);
|
|
13438
13441
|
|
|
13439
13442
|
if (arr) {
|
|
13440
13443
|
return arr[0].split('*')[1];
|
|
13441
13444
|
} else {
|
|
13442
|
-
return
|
|
13445
|
+
return ' ';
|
|
13443
13446
|
}
|
|
13444
13447
|
};
|
|
13445
13448
|
|
package/dist/index.js
CHANGED
|
@@ -9860,7 +9860,6 @@ var onChangeItemName = /*#__PURE__*/function () {
|
|
|
9860
9860
|
};
|
|
9861
9861
|
}();
|
|
9862
9862
|
|
|
9863
|
-
var Text$3 = ktsComponentsAntdX3.Typography.Text;
|
|
9864
9863
|
var useEndowCode = (function (goods) {
|
|
9865
9864
|
var controller = Invoice.useInvoiceController();
|
|
9866
9865
|
var onClick = React__default['default'].useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
@@ -9876,18 +9875,22 @@ var useEndowCode = (function (goods) {
|
|
|
9876
9875
|
}
|
|
9877
9876
|
}
|
|
9878
9877
|
}, _callee);
|
|
9879
|
-
})), [controller, goods]);
|
|
9878
|
+
})), [controller, goods]); // return React.useMemo(() => {
|
|
9879
|
+
// return (
|
|
9880
|
+
// <Menu.Item key="endowCode" onClick={onClick} ><Text strong>赋码</Text></Menu.Item>
|
|
9881
|
+
// );
|
|
9882
|
+
// }, [goods.lineAttribute, onClick])
|
|
9883
|
+
|
|
9880
9884
|
return React__default['default'].useMemo(function () {
|
|
9881
|
-
return React__default['default'].createElement(ktsComponentsAntdX3.
|
|
9885
|
+
return React__default['default'].createElement(ktsComponentsAntdX3.Button, {
|
|
9882
9886
|
key: "endowCode",
|
|
9887
|
+
type: "link",
|
|
9883
9888
|
onClick: onClick
|
|
9884
|
-
},
|
|
9885
|
-
strong: true
|
|
9886
|
-
}, "\u8D4B\u7801"));
|
|
9889
|
+
}, "\u8D4B\u7801");
|
|
9887
9890
|
}, [goods.lineAttribute, onClick]);
|
|
9888
9891
|
});
|
|
9889
9892
|
|
|
9890
|
-
var Text$
|
|
9893
|
+
var Text$3 = ktsComponentsAntdX3.Typography.Text;
|
|
9891
9894
|
var useAddComparison = (function (goods) {
|
|
9892
9895
|
var controller = Invoice.useInvoiceController();
|
|
9893
9896
|
var productComparison = controller.useMemo(function (s) {
|
|
@@ -9969,7 +9972,7 @@ var useAddComparison = (function (goods) {
|
|
|
9969
9972
|
return React__default['default'].createElement(ktsComponentsAntdX3.Menu.Item, {
|
|
9970
9973
|
key: "delItem",
|
|
9971
9974
|
onClick: onClick
|
|
9972
|
-
}, React__default['default'].createElement(Text$
|
|
9975
|
+
}, React__default['default'].createElement(Text$3, {
|
|
9973
9976
|
strong: true
|
|
9974
9977
|
}, "\u6DFB\u52A0\u5546\u54C1\u5BF9\u7167"));
|
|
9975
9978
|
} else {
|
|
@@ -10003,8 +10006,7 @@ var RowMenu = (function (props) {
|
|
|
10003
10006
|
model !== 'prefab' && isAddDiscount !== false && addDiscount && arr.push(addDiscount); // 添加折扣行
|
|
10004
10007
|
|
|
10005
10008
|
arr.push(addComparison); // 添加商品对照
|
|
10006
|
-
|
|
10007
|
-
endowCode && arr.push(endowCode); // 赋码
|
|
10009
|
+
// endowCode && arr.push(endowCode); // 赋码
|
|
10008
10010
|
|
|
10009
10011
|
model !== 'prefab' && delItem && arr.push(delItem); // 删除
|
|
10010
10012
|
|
|
@@ -10025,7 +10027,7 @@ var RowMenu = (function (props) {
|
|
|
10025
10027
|
return React__default['default'].createElement(React__default['default'].Fragment, null);
|
|
10026
10028
|
}
|
|
10027
10029
|
|
|
10028
|
-
return React__default['default'].createElement(ktsComponentsAntdX3.Dropdown, {
|
|
10030
|
+
return React__default['default'].createElement("span", null, endowCode, React__default['default'].createElement(ktsComponentsAntdX3.Dropdown, {
|
|
10029
10031
|
overlay: React__default['default'].createElement(ktsComponentsAntdX3.Menu, null, itemList),
|
|
10030
10032
|
trigger: ['click']
|
|
10031
10033
|
}, React__default['default'].createElement(ktsComponentsAntdX3.Button, {
|
|
@@ -10033,10 +10035,10 @@ var RowMenu = (function (props) {
|
|
|
10033
10035
|
type: "link"
|
|
10034
10036
|
}, React__default['default'].createElement(ktsComponentsAntdX3.Icon, {
|
|
10035
10037
|
component: SvgSpot
|
|
10036
|
-
})));
|
|
10038
|
+
}))));
|
|
10037
10039
|
});
|
|
10038
10040
|
|
|
10039
|
-
var Text$
|
|
10041
|
+
var Text$4 = ktsComponentsAntdX3.Typography.Text;
|
|
10040
10042
|
var useColumns = (function (form) {
|
|
10041
10043
|
var getFieldDecorator = form.getFieldDecorator,
|
|
10042
10044
|
getFieldValue = form.getFieldValue;
|
|
@@ -10087,7 +10089,7 @@ var useColumns = (function (form) {
|
|
|
10087
10089
|
|
|
10088
10090
|
var columns = React__default['default'].useMemo(function () {
|
|
10089
10091
|
return [{
|
|
10090
|
-
title: React__default['default'].createElement(React__default['default'].Fragment, null, React__default['default'].createElement(Text$
|
|
10092
|
+
title: React__default['default'].createElement(React__default['default'].Fragment, null, React__default['default'].createElement(Text$4, {
|
|
10091
10093
|
type: "danger"
|
|
10092
10094
|
}, "*"), "\u8D27\u7269\u540D\u79F0"),
|
|
10093
10095
|
key: 'itemName',
|
|
@@ -10505,7 +10507,7 @@ var useColumns = (function (form) {
|
|
|
10505
10507
|
}
|
|
10506
10508
|
}
|
|
10507
10509
|
}, {
|
|
10508
|
-
title: React__default['default'].createElement(React__default['default'].Fragment, null, React__default['default'].createElement(Text$
|
|
10510
|
+
title: React__default['default'].createElement(React__default['default'].Fragment, null, React__default['default'].createElement(Text$4, {
|
|
10509
10511
|
type: "danger"
|
|
10510
10512
|
}, "*"), "\u91D1\u989D(\u542B\u7A0E)"),
|
|
10511
10513
|
dataIndex: 'lineAmountIncludeTax',
|
|
@@ -10592,7 +10594,7 @@ var useColumns = (function (form) {
|
|
|
10592
10594
|
}
|
|
10593
10595
|
}
|
|
10594
10596
|
}, {
|
|
10595
|
-
title: React__default['default'].createElement(React__default['default'].Fragment, null, React__default['default'].createElement(Text$
|
|
10597
|
+
title: React__default['default'].createElement(React__default['default'].Fragment, null, React__default['default'].createElement(Text$4, {
|
|
10596
10598
|
type: "danger"
|
|
10597
10599
|
}, "*"), "\u91D1\u989D(\u4E0D\u542B\u7A0E)"),
|
|
10598
10600
|
dataIndex: 'lineAmountExcludeTax',
|
|
@@ -10654,7 +10656,7 @@ var useColumns = (function (form) {
|
|
|
10654
10656
|
}
|
|
10655
10657
|
}
|
|
10656
10658
|
}, {
|
|
10657
|
-
title: React__default['default'].createElement(React__default['default'].Fragment, null, React__default['default'].createElement(Text$
|
|
10659
|
+
title: React__default['default'].createElement(React__default['default'].Fragment, null, React__default['default'].createElement(Text$4, {
|
|
10658
10660
|
type: "danger"
|
|
10659
10661
|
}, "*"), "\u7A0E\u7387"),
|
|
10660
10662
|
dataIndex: 'taxRate',
|
|
@@ -10724,7 +10726,7 @@ var useColumns = (function (form) {
|
|
|
10724
10726
|
title: '操作',
|
|
10725
10727
|
dataIndex: 'operating',
|
|
10726
10728
|
key: 'operating',
|
|
10727
|
-
width:
|
|
10729
|
+
width: 120,
|
|
10728
10730
|
align: 'center',
|
|
10729
10731
|
render: function render(_value, record) {
|
|
10730
10732
|
return React__default['default'].createElement(RowMenu, {
|
|
@@ -12206,7 +12208,7 @@ function interval(i, t) {
|
|
|
12206
12208
|
var css_248z$a = ".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";
|
|
12207
12209
|
styleInject(css_248z$a);
|
|
12208
12210
|
|
|
12209
|
-
var Text$
|
|
12211
|
+
var Text$5 = ktsComponentsAntdX3.Typography.Text;
|
|
12210
12212
|
|
|
12211
12213
|
var Buyer$1 = /*#__PURE__*/function (_React$Component) {
|
|
12212
12214
|
_inherits(Buyer, _React$Component);
|
|
@@ -12320,7 +12322,7 @@ var Main$2 = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(function
|
|
|
12320
12322
|
if (e.options.rules.some(function (e) {
|
|
12321
12323
|
return e.required;
|
|
12322
12324
|
})) {
|
|
12323
|
-
return React__default['default'].createElement(React__default['default'].Fragment, null, React__default['default'].createElement(Text$
|
|
12325
|
+
return React__default['default'].createElement(React__default['default'].Fragment, null, React__default['default'].createElement(Text$5, {
|
|
12324
12326
|
type: "danger"
|
|
12325
12327
|
}, "*"), e.label);
|
|
12326
12328
|
} else {
|
|
@@ -13352,6 +13354,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
13352
13354
|
}), React__default['default'].createElement(antd.SchemaMarkupField, {
|
|
13353
13355
|
name: "shorthand",
|
|
13354
13356
|
type: "string",
|
|
13357
|
+
readOnly: true,
|
|
13355
13358
|
default: getShorthand(defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.itemName),
|
|
13356
13359
|
title: "\u5546\u54C1\u548C\u670D\u52A1\u5206\u7C7B\u7B80\u79F0"
|
|
13357
13360
|
}), React__default['default'].createElement(antd.SchemaMarkupField, {
|
|
@@ -13443,13 +13446,13 @@ var components = {
|
|
|
13443
13446
|
/** 提取简称 */
|
|
13444
13447
|
|
|
13445
13448
|
var getShorthand = function getShorthand(value) {
|
|
13446
|
-
if (!value) return
|
|
13449
|
+
if (!value) return ' ';
|
|
13447
13450
|
var arr = value.match(/\*[^*]+\*/);
|
|
13448
13451
|
|
|
13449
13452
|
if (arr) {
|
|
13450
13453
|
return arr[0].split('*')[1];
|
|
13451
13454
|
} else {
|
|
13452
|
-
return
|
|
13455
|
+
return ' ';
|
|
13453
13456
|
}
|
|
13454
13457
|
};
|
|
13455
13458
|
|