kts-component-invoice-operate 3.2.155 → 3.2.157
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/index.d.ts +2 -0
- package/dist/Invoice/index.d.ts +2 -0
- package/dist/Invoice/ui/digtal/StakeFarmerholder/index.d.ts +20 -0
- package/dist/index.esm.js +806 -226
- package/dist/index.js +806 -226
- package/docs-dist/umi.css +1 -1
- package/docs-dist/umi.js +1 -1
- package/package.json +1 -1
- package/src/Invoice/Invoice-digtal/_test/easiest/index.tsx +1 -0
- package/src/Invoice/InvoiceController/index.ts +2 -0
- package/src/Invoice/_test/children/index.tsx +12 -0
- package/src/Invoice/index.tsx +4 -0
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/index.tsx +3 -2
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/Expand/index.tsx +10 -6
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/hook/useDelItem/dist/index.js +32 -0
- package/src/Invoice/ui/default/GoodsList/ui/TableRow/index.less +12 -1
- package/src/Invoice/ui/default/GoodsList/ui/TableRow/index.tsx +19 -5
- package/src/Invoice/ui/default/GoodsList/ui/TableVirtual/index.tsx +0 -1
- package/src/Invoice/ui/digtal/RealEstateInfo/index.tsx +6 -8
- package/src/Invoice/ui/digtal/StakeFarmerholder/index.less +100 -0
- package/src/Invoice/ui/digtal/StakeFarmerholder/index.tsx +398 -0
- package/src/Invoice/ui/digtal/StakeFarmerholder/svg/arrowDown.svg +3 -0
- package/src/Invoice/ui/digtal/StakeFarmerholder/svg/arrowUp.svg +3 -0
- package/src/Invoice/ui/digtal/StakeFarmerholder/svg/plus.svg +12 -0
- package/docs-dist/static/I001.4ff48f20.svg +0 -1
- package/docs-dist/static/I002.38b94da1.svg +0 -1
- /package/docs-dist/static/{arrowDown.22c7885c.svg → arrowDown.a1cbf0d8.svg} +0 -0
- /package/docs-dist/static/{arrowUp.d707a3e4.svg → arrowUp.4c482054.svg} +0 -0
- /package/docs-dist/static/{fork.43eb4ffa.svg → fork.5431267d.svg} +0 -0
- /package/docs-dist/static/{plus.384f41d9.svg → plus.44013ce3.svg} +0 -0
- /package/docs-dist/static/{plus.0e60e9ea.svg → plus.4fd1af30.svg} +0 -0
package/dist/index.js
CHANGED
|
@@ -9751,6 +9751,7 @@ var InvoiceController = /*#__PURE__*/function (_InvoiceControllerFor) {
|
|
|
9751
9751
|
_this.getTaxCategoryCodeList = void 0;
|
|
9752
9752
|
_this.getGoodsSearch = getGoodsSearch;
|
|
9753
9753
|
_this.getGoodsTaxRateList = void 0;
|
|
9754
|
+
_this.setColumnsConfig = void 0;
|
|
9754
9755
|
return _this;
|
|
9755
9756
|
} // ----------------- 发票头 模块相关 -----------------
|
|
9756
9757
|
|
|
@@ -10686,7 +10687,7 @@ function Search() {
|
|
|
10686
10687
|
});
|
|
10687
10688
|
}
|
|
10688
10689
|
|
|
10689
|
-
var css_248z$5 = ".kts-invoice-operate-goods-list-itemName-drag-container-u {\n position: relative;\n}\n.kts-invoice-operate-goods-list-itemName-drag-container-u::after {\n content: \" \";\n width: 100%;\n height: 2px;\n background: #0074ff;\n position: absolute;\n left: 0;\n top: 0;\n z-index: 9999;\n}\n.kts-invoice-operate-goods-list-itemName-drag-container-d {\n position: relative;\n}\n.kts-invoice-operate-goods-list-itemName-drag-container-d::after {\n content: \" \";\n width: 100%;\n height: 2px;\n background: #0074ff;\n position: absolute;\n left: 0;\n bottom: 0;\n z-index: 9999;\n}\n";
|
|
10690
|
+
var css_248z$5 = ".kts-invoice-operate-goods-list-itemName-drag-container-u {\n position: relative;\n}\n.kts-invoice-operate-goods-list-itemName-drag-container-u::after {\n content: \" \";\n width: 100%;\n height: 2px;\n background: #0074ff;\n position: absolute;\n left: 0;\n top: 0;\n z-index: 9999;\n}\n.kts-invoice-operate-goods-list-itemName-drag-container-d {\n position: relative;\n}\n.kts-invoice-operate-goods-list-itemName-drag-container-d::after {\n content: \" \";\n width: 100%;\n height: 2px;\n background: #0074ff;\n position: absolute;\n left: 0;\n bottom: 0;\n z-index: 9999;\n}\n.ktsAntX-table .ktsAntX-table-row.ktsAntX-table-row-level-0.kts-invoice-operate-goods-expanded .ktsAntX-table-cell-ellipsis,\n.ktsAntX-table .ktsAntX-table-row.ktsAntX-table-row-level-0.kts-invoice-operate-goods-expanded {\n background: #f0f0f0;\n}\n.ktsAntX-table .ktsAntX-table-row.ktsAntX-table-row-level-0.kts-invoice-operate-goods-expanded-level-1 .ktsAntX-table-cell-ellipsis,\n.ktsAntX-table .ktsAntX-table-row.ktsAntX-table-row-level-0.kts-invoice-operate-goods-expanded-level-1 {\n background: #f6f6f6;\n}\n";
|
|
10690
10691
|
styleInject(css_248z$5);
|
|
10691
10692
|
|
|
10692
10693
|
function TableRow(props) {
|
|
@@ -10695,6 +10696,11 @@ function TableRow(props) {
|
|
|
10695
10696
|
var goodsMap = controller.useMemo(function (s) {
|
|
10696
10697
|
return s.goodsListState.goodsMap;
|
|
10697
10698
|
}, []);
|
|
10699
|
+
/** 子级展开的货物 */
|
|
10700
|
+
|
|
10701
|
+
var expandedRowKeys = controller.useMemo(function (s) {
|
|
10702
|
+
return s.goodsListState.expandedRowKeys;
|
|
10703
|
+
}, []);
|
|
10698
10704
|
/** 当前拖动中的货品索引 */
|
|
10699
10705
|
|
|
10700
10706
|
var current = controller.useMemo(function (s) {
|
|
@@ -10725,6 +10731,19 @@ function TableRow(props) {
|
|
|
10725
10731
|
return undefined;
|
|
10726
10732
|
}
|
|
10727
10733
|
}, [good, goodsMap]);
|
|
10734
|
+
/** 扩展行样式 */
|
|
10735
|
+
|
|
10736
|
+
var expandedRow = React__default['default'].useMemo(function () {
|
|
10737
|
+
if (expandedRowKeys.indexOf(rowKey) > -1) return 'kts-invoice-operate-goods-expanded';
|
|
10738
|
+
if (expandedRowKeys.map(function (e) {
|
|
10739
|
+
return goodsMap.get(e);
|
|
10740
|
+
}).map(function (e) {
|
|
10741
|
+
return e === null || e === void 0 ? void 0 : e.children;
|
|
10742
|
+
}).flat(1).map(function (e) {
|
|
10743
|
+
return e === null || e === void 0 ? void 0 : e.$index;
|
|
10744
|
+
}).indexOf(rowKey) > -1) return 'kts-invoice-operate-goods-expanded-level-1';
|
|
10745
|
+
return undefined;
|
|
10746
|
+
}, [rowKey, expandedRowKeys, good]);
|
|
10728
10747
|
return rowKey === current && current ? /*#__PURE__*/React__default['default'].createElement("tr", {
|
|
10729
10748
|
style: {
|
|
10730
10749
|
height: 32.67,
|
|
@@ -10740,7 +10759,7 @@ function TableRow(props) {
|
|
|
10740
10759
|
bottom: 0
|
|
10741
10760
|
}
|
|
10742
10761
|
})) : /*#__PURE__*/React__default['default'].createElement("tr", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
10743
|
-
className: classNames__default['default'](props.className, discount, rowKey === container && current ? 'kts-invoice-operate-goods-list-itemName-drag-container-' + site : undefined)
|
|
10762
|
+
className: classNames__default['default'](props.className, discount, expandedRow, rowKey === container && current ? 'kts-invoice-operate-goods-list-itemName-drag-container-' + site : undefined)
|
|
10744
10763
|
}));
|
|
10745
10764
|
}
|
|
10746
10765
|
|
|
@@ -13054,44 +13073,6 @@ function DragDiv(props) {
|
|
|
13054
13073
|
}, /*#__PURE__*/React__default['default'].createElement("span", null, props.itemName), /*#__PURE__*/React__default['default'].createElement("span", null, props.itemModelName), /*#__PURE__*/React__default['default'].createElement("span", null, props.unit));
|
|
13055
13074
|
}
|
|
13056
13075
|
|
|
13057
|
-
var _path$4, _path2$1, _path3$1;
|
|
13058
|
-
|
|
13059
|
-
function _extends$4() { _extends$4 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$4.apply(this, arguments); }
|
|
13060
|
-
|
|
13061
|
-
function SvgI001$1(props) {
|
|
13062
|
-
return /*#__PURE__*/React.createElement("svg", _extends$4({
|
|
13063
|
-
className: "I001_svg__icon",
|
|
13064
|
-
viewBox: "0 0 1024 1024",
|
|
13065
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
13066
|
-
width: 200,
|
|
13067
|
-
height: 200
|
|
13068
|
-
}, props), _path$4 || (_path$4 = /*#__PURE__*/React.createElement("path", {
|
|
13069
|
-
d: "M879.973 997.088H146.455c-67.235 0-122.213-54.978-122.213-122.213V141.236c0-67.235 54.978-122.212 122.213-122.212h733.639c67.235 0 122.212 54.977 122.212 122.212v733.64c0 67.113-54.977 122.212-122.333 122.212zM146.455 80.069c-36.652 0-61.167 24.394-61.167 61.167v733.64c0 36.65 24.394 61.166 61.167 61.166h733.639c36.651 0 61.167-24.394 61.167-61.167V141.236c0-36.651-24.394-61.167-61.167-61.167h-733.64zm0 0"
|
|
13070
|
-
})), _path2$1 || (_path2$1 = /*#__PURE__*/React.createElement("path", {
|
|
13071
|
-
d: "M757.76 538.578H268.667c-18.326 0-30.583-12.257-30.583-30.583s12.257-30.583 30.583-30.583H757.76c18.326 0 30.583 12.257 30.583 30.583s-12.257 30.583-30.583 30.583zm0 0"
|
|
13072
|
-
})), _path3$1 || (_path3$1 = /*#__PURE__*/React.createElement("path", {
|
|
13073
|
-
d: "M513.214 783.125c-18.326 0-30.584-12.258-30.584-30.584V263.45c0-18.326 12.258-30.584 30.584-30.584s30.583 12.258 30.583 30.584V752.54c0 18.326-12.258 30.584-30.583 30.584zm0 0"
|
|
13074
|
-
})));
|
|
13075
|
-
}
|
|
13076
|
-
|
|
13077
|
-
var _path$5, _path2$2;
|
|
13078
|
-
|
|
13079
|
-
function _extends$5() { _extends$5 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$5.apply(this, arguments); }
|
|
13080
|
-
|
|
13081
|
-
function SvgI002(props) {
|
|
13082
|
-
return /*#__PURE__*/React.createElement("svg", _extends$5({
|
|
13083
|
-
className: "I002_svg__icon",
|
|
13084
|
-
viewBox: "0 0 1024 1024",
|
|
13085
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
13086
|
-
width: 200,
|
|
13087
|
-
height: 200
|
|
13088
|
-
}, props), _path$5 || (_path$5 = /*#__PURE__*/React.createElement("path", {
|
|
13089
|
-
d: "M879.973 997.088H146.455c-67.235 0-122.213-54.978-122.213-122.213V141.236c0-67.235 54.978-122.212 122.213-122.212h733.639c67.235 0 122.212 54.977 122.212 122.212v733.64c0 67.113-54.977 122.212-122.333 122.212zM146.455 80.069c-36.652 0-61.167 24.394-61.167 61.167v733.64c0 36.65 24.394 61.166 61.167 61.166h733.639c36.651 0 61.167-24.394 61.167-61.167V141.236c0-36.651-24.394-61.167-61.167-61.167h-733.64zm0 0"
|
|
13090
|
-
})), _path2$2 || (_path2$2 = /*#__PURE__*/React.createElement("path", {
|
|
13091
|
-
d: "M757.76 538.578H268.667c-18.326 0-30.583-12.257-30.583-30.583s12.257-30.583 30.583-30.583H757.76c18.326 0 30.583 12.257 30.583 30.583s-12.257 30.583-30.583 30.583zm0 0"
|
|
13092
|
-
})));
|
|
13093
|
-
}
|
|
13094
|
-
|
|
13095
13076
|
function Expand(props) {
|
|
13096
13077
|
var _goodsMap$get;
|
|
13097
13078
|
|
|
@@ -13110,11 +13091,10 @@ function Expand(props) {
|
|
|
13110
13091
|
type: 'text',
|
|
13111
13092
|
style: {
|
|
13112
13093
|
width: 'auto',
|
|
13113
|
-
color: "#0074ff"
|
|
13094
|
+
color: "#0074ff",
|
|
13095
|
+
padding: 0
|
|
13114
13096
|
},
|
|
13115
|
-
icon
|
|
13116
|
-
component: SvgI002
|
|
13117
|
-
}),
|
|
13097
|
+
// icon={<Icon component={I002Svg} />}
|
|
13118
13098
|
onClick: controller.pipeline( /*#__PURE__*/function () {
|
|
13119
13099
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(s, e) {
|
|
13120
13100
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -13138,17 +13118,16 @@ function Expand(props) {
|
|
|
13138
13118
|
return _ref.apply(this, arguments);
|
|
13139
13119
|
};
|
|
13140
13120
|
}())
|
|
13141
|
-
});
|
|
13121
|
+
}, "\u6536\u8D77");
|
|
13142
13122
|
} else {
|
|
13143
13123
|
return /*#__PURE__*/React__default['default'].createElement(ktsXui.Button, {
|
|
13144
13124
|
type: 'text',
|
|
13145
13125
|
style: {
|
|
13146
13126
|
width: 'auto',
|
|
13147
|
-
color: "#0074ff"
|
|
13127
|
+
color: "#0074ff",
|
|
13128
|
+
padding: 0
|
|
13148
13129
|
},
|
|
13149
|
-
icon
|
|
13150
|
-
component: SvgI001$1
|
|
13151
|
-
}),
|
|
13130
|
+
// icon={<Icon component={I001Svg} />}
|
|
13152
13131
|
onClick: controller.pipeline( /*#__PURE__*/function () {
|
|
13153
13132
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(s, e) {
|
|
13154
13133
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
@@ -13170,7 +13149,7 @@ function Expand(props) {
|
|
|
13170
13149
|
return _ref2.apply(this, arguments);
|
|
13171
13150
|
};
|
|
13172
13151
|
}())
|
|
13173
|
-
});
|
|
13152
|
+
}, "\u5C55\u5F00");
|
|
13174
13153
|
}
|
|
13175
13154
|
} else {
|
|
13176
13155
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null);
|
|
@@ -13315,7 +13294,7 @@ var useColumns = (function (form) {
|
|
|
13315
13294
|
}, {
|
|
13316
13295
|
title: ' ',
|
|
13317
13296
|
key: 'expand',
|
|
13318
|
-
width:
|
|
13297
|
+
width: 50,
|
|
13319
13298
|
align: 'center',
|
|
13320
13299
|
render: function render(_, record) {
|
|
13321
13300
|
return /*#__PURE__*/React__default['default'].createElement(Expand, {
|
|
@@ -14150,7 +14129,7 @@ var useColumns = (function (form) {
|
|
|
14150
14129
|
});
|
|
14151
14130
|
});
|
|
14152
14131
|
}, [isTaxIncluded, editGood, goodsList, controller, changeField, deduction, isMyShow, searchValue, model, columnsReplenish, columnshide, isStart]);
|
|
14153
|
-
return columns;
|
|
14132
|
+
return controller.setColumnsConfig ? controller.setColumnsConfig(columns) : columns;
|
|
14154
14133
|
});
|
|
14155
14134
|
/** 字段 */
|
|
14156
14135
|
|
|
@@ -17047,12 +17026,610 @@ var Tag = /*#__PURE__*/function (_React$Component2) {
|
|
|
17047
17026
|
return Tag;
|
|
17048
17027
|
}(React__default['default'].Component);
|
|
17049
17028
|
|
|
17050
|
-
var _path$
|
|
17029
|
+
var _path$4;
|
|
17030
|
+
|
|
17031
|
+
function _extends$4() { _extends$4 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$4.apply(this, arguments); }
|
|
17032
|
+
|
|
17033
|
+
function SvgArrowUp(props) {
|
|
17034
|
+
return /*#__PURE__*/React.createElement("svg", _extends$4({
|
|
17035
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
17036
|
+
width: 13,
|
|
17037
|
+
height: 13,
|
|
17038
|
+
fill: "none"
|
|
17039
|
+
}, props), _path$4 || (_path$4 = /*#__PURE__*/React.createElement("path", {
|
|
17040
|
+
d: "M9.557 8.573a.338.338 0 01-.252-.114L6.508 5.367 3.711 8.46a.333.333 0 01-.497.005.404.404 0 01-.005-.538l3.048-3.37a.339.339 0 01.251-.114c.095 0 .185.041.252.114l3.048 3.37a.404.404 0 01-.005.538.337.337 0 01-.246.11z"
|
|
17041
|
+
})));
|
|
17042
|
+
}
|
|
17043
|
+
|
|
17044
|
+
var _path$5;
|
|
17045
|
+
|
|
17046
|
+
function _extends$5() { _extends$5 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$5.apply(this, arguments); }
|
|
17047
|
+
|
|
17048
|
+
function SvgArrowDown(props) {
|
|
17049
|
+
return /*#__PURE__*/React.createElement("svg", _extends$5({
|
|
17050
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
17051
|
+
width: 12,
|
|
17052
|
+
height: 13,
|
|
17053
|
+
fill: "none"
|
|
17054
|
+
}, props), _path$5 || (_path$5 = /*#__PURE__*/React.createElement("path", {
|
|
17055
|
+
d: "M2.943 4.427c.092 0 .183.038.252.114l2.797 3.092L8.789 4.54a.333.333 0 01.497-.005.404.404 0 01.005.538l-3.048 3.37a.339.339 0 01-.251.114.339.339 0 01-.252-.114l-3.048-3.37a.404.404 0 01.005-.538.337.337 0 01.246-.11z"
|
|
17056
|
+
})));
|
|
17057
|
+
}
|
|
17058
|
+
|
|
17059
|
+
var _g, _defs$2;
|
|
17051
17060
|
|
|
17052
17061
|
function _extends$6() { _extends$6 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$6.apply(this, arguments); }
|
|
17053
17062
|
|
|
17054
|
-
function
|
|
17055
|
-
return /*#__PURE__*/React.createElement("svg", _extends$6({
|
|
17063
|
+
function SvgPlus(props) {
|
|
17064
|
+
return /*#__PURE__*/React.createElement("svg", _extends$6({
|
|
17065
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
17066
|
+
width: 16,
|
|
17067
|
+
height: 15,
|
|
17068
|
+
fill: "none"
|
|
17069
|
+
}, props), _g || (_g = /*#__PURE__*/React.createElement("g", {
|
|
17070
|
+
clipPath: "url(#plus_svg__clip0_715_360)"
|
|
17071
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
17072
|
+
d: "M8 14.531A7.031 7.031 0 118 .468a7.031 7.031 0 010 14.063zm0-.937A6.094 6.094 0 108 1.406a6.094 6.094 0 000 12.188z"
|
|
17073
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
17074
|
+
d: "M4.25 7.969a.469.469 0 010-.938h7.5a.47.47 0 010 .938h-7.5z"
|
|
17075
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
17076
|
+
d: "M7.531 3.75a.469.469 0 01.938 0v7.5a.47.47 0 01-.938 0v-7.5z"
|
|
17077
|
+
}))), _defs$2 || (_defs$2 = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
|
|
17078
|
+
id: "plus_svg__clip0_715_360"
|
|
17079
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
17080
|
+
transform: "translate(.5)",
|
|
17081
|
+
d: "M0 0h15v15H0z"
|
|
17082
|
+
})))));
|
|
17083
|
+
}
|
|
17084
|
+
|
|
17085
|
+
var css_248z$g = ".kts-invoice-operate-invoice-digtal-stakeholder {\n display: flex;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-expand-button {\n cursor: pointer;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder > div {\n border-right: 2px solid #9F613E;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder > div:nth-child(even) {\n flex: 1;\n display: flex;\n flex-direction: column;\n justify-content: end;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder > div:nth-child(odd) {\n flex: none;\n text-align: center;\n color: #9F613E;\n display: flex;\n flex-direction: column;\n justify-content: center;\n justify-items: center;\n padding: 0 4px;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder > div:last-child {\n border-right: none;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form {\n padding: 12px 10px 5px;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form .ktsAntX-col {\n margin-bottom: 15px;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form .ktsAnt3x-row.ktsAnt3x-form-item {\n display: flex;\n margin-bottom: 0;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form .ktsAnt3x-row.ktsAnt3x-form-item .ktsAnt3x-form-item-label {\n flex: none;\n font-weight: 500;\n line-height: 29px;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form .ktsAnt3x-row.ktsAnt3x-form-item .ktsAnt3x-form-item-label label {\n color: #9F603D;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form .ktsAnt3x-row.ktsAnt3x-form-item .ktsAnt3x-form-item-control {\n line-height: 1.4;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form .ktsAnt3x-row.ktsAnt3x-form-item .ktsAnt3x-form-item-control .digtal-stakeholder-form-text {\n word-break: break-all;\n line-height: 29px;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form .ktsAnt3x-row.ktsAnt3x-form-item .ktsAnt3x-form-item-control-wrapper {\n flex: 1;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .natural-person-flag {\n padding: 0 8px;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .natural-person-flag .ktsAnt3x-form-item-control {\n line-height: 32px;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .natural-person-flag .ktsAnt3x-row.ktsAnt3x-form-item {\n margin-bottom: 0;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder.readOnly > div:nth-child(even) {\n justify-content: start;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder.readOnly .digtal-stakeholder-form .ktsAnt3x-row.ktsAnt3x-form-item .ktsAnt3x-form-item-label {\n line-height: 1.4;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder.readOnly .digtal-stakeholder-form .ktsAnt3x-row.ktsAnt3x-form-item .ktsAnt3x-form-item-control .digtal-stakeholder-form-text {\n line-height: 1.4;\n}\n";
|
|
17086
|
+
styleInject(css_248z$g);
|
|
17087
|
+
|
|
17088
|
+
var RULES = {
|
|
17089
|
+
companyName: function companyName(label) {
|
|
17090
|
+
return [{
|
|
17091
|
+
required: true,
|
|
17092
|
+
message: "".concat(label, "\u5FC5\u586B")
|
|
17093
|
+
}, {
|
|
17094
|
+
max: 100,
|
|
17095
|
+
message: "".concat(label, "\u5185\u5BB9\u8D85\u957F")
|
|
17096
|
+
}];
|
|
17097
|
+
},
|
|
17098
|
+
taxId: function taxId(label) {
|
|
17099
|
+
return [{
|
|
17100
|
+
max: 20,
|
|
17101
|
+
message: "".concat(label, "\u5185\u5BB9\u8D85\u957F")
|
|
17102
|
+
}, {
|
|
17103
|
+
pattern: /^([a-zA-Z0-9])*$/g,
|
|
17104
|
+
message: "".concat(label, "\u4EC5\u80FD\u6570\u5B57\u3001\u82F1\u6587")
|
|
17105
|
+
}];
|
|
17106
|
+
},
|
|
17107
|
+
buyerTelPhone: function buyerTelPhone(label) {
|
|
17108
|
+
return [{
|
|
17109
|
+
max: 100,
|
|
17110
|
+
message: "".concat(label, "\u5185\u5BB9\u8D85\u957F")
|
|
17111
|
+
}, {
|
|
17112
|
+
pattern: /^[0-9\s\-\+]+$/g,
|
|
17113
|
+
message: "".concat(label, "\u4EC5\u80FD\u6570\u5B57\u3001\u7A7A\u683C\u3001-\u3001+")
|
|
17114
|
+
}];
|
|
17115
|
+
},
|
|
17116
|
+
sellerTelPhone: function sellerTelPhone(label) {
|
|
17117
|
+
return [{
|
|
17118
|
+
required: true,
|
|
17119
|
+
message: "".concat(label, "\u5FC5\u586B")
|
|
17120
|
+
}, {
|
|
17121
|
+
max: 100,
|
|
17122
|
+
message: "".concat(label, "\u5185\u5BB9\u8D85\u957F")
|
|
17123
|
+
}, {
|
|
17124
|
+
pattern: /^[0-9\s\-\+]+$/g,
|
|
17125
|
+
message: "".concat(label, "\u4EC5\u80FD\u6570\u5B57\u3001\u7A7A\u683C\u3001-\u3001+")
|
|
17126
|
+
}];
|
|
17127
|
+
},
|
|
17128
|
+
bankName: function bankName(label) {
|
|
17129
|
+
return [{
|
|
17130
|
+
max: 100,
|
|
17131
|
+
message: "".concat(label, "\u5185\u5BB9\u8D85\u957F")
|
|
17132
|
+
}];
|
|
17133
|
+
},
|
|
17134
|
+
bankAccount: function bankAccount(label) {
|
|
17135
|
+
return [{
|
|
17136
|
+
max: 100,
|
|
17137
|
+
message: "".concat(label, "\u5185\u5BB9\u8D85\u957F")
|
|
17138
|
+
}, {
|
|
17139
|
+
pattern: /^([0-9a-zA-Z-\s])*$/g,
|
|
17140
|
+
message: "".concat(label, "\u4EC5\u80FD\u6570\u5B57\u3001\u5B57\u6BCD\u3001-\u3001\u7A7A\u683C")
|
|
17141
|
+
}];
|
|
17142
|
+
}
|
|
17143
|
+
};
|
|
17144
|
+
|
|
17145
|
+
var formatCompanyName = function formatCompanyName(e) {
|
|
17146
|
+
var _e$target;
|
|
17147
|
+
|
|
17148
|
+
var value = e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.value;
|
|
17149
|
+
|
|
17150
|
+
if (value) {
|
|
17151
|
+
return value.replace('(', '(').replace(')', ')').replace(' ', '');
|
|
17152
|
+
}
|
|
17153
|
+
};
|
|
17154
|
+
/** 干系人 */
|
|
17155
|
+
|
|
17156
|
+
|
|
17157
|
+
var Stakeholder$1 = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(function (props) {
|
|
17158
|
+
var form = props.form,
|
|
17159
|
+
isShowImportButton = props.isShowImportButton,
|
|
17160
|
+
onClickImportButton = props.onClickImportButton,
|
|
17161
|
+
_props$isVatNormal = props.isVatNormal,
|
|
17162
|
+
isVatNormal = _props$isVatNormal === void 0 ? false : _props$isVatNormal;
|
|
17163
|
+
|
|
17164
|
+
var _React$useState = React__default['default'].useState(typeof props.isExpand === 'boolean' ? props.isExpand : true),
|
|
17165
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
17166
|
+
isExpand = _React$useState2[0],
|
|
17167
|
+
setExpand = _React$useState2[1];
|
|
17168
|
+
|
|
17169
|
+
var getFieldDecorator = form.getFieldDecorator;
|
|
17170
|
+
var controller = Invoice.useInvoiceController();
|
|
17171
|
+
var model = controller.useMemo(function (s) {
|
|
17172
|
+
return s.model;
|
|
17173
|
+
}, []);
|
|
17174
|
+
var disableds = controller.useMemo(function (s) {
|
|
17175
|
+
return s.stakeholder.disableds || [];
|
|
17176
|
+
}, []);
|
|
17177
|
+
var rulesMap = controller.useMemo(function (s) {
|
|
17178
|
+
return s.stakeholder.rulesMap || {};
|
|
17179
|
+
}, []);
|
|
17180
|
+
var readOnly = React__default['default'].useMemo(function () {
|
|
17181
|
+
if (model === 'readOnly') return true;
|
|
17182
|
+
if (model === 'prefab') return true;
|
|
17183
|
+
return false;
|
|
17184
|
+
}, [model]);
|
|
17185
|
+
var onExpand = React__default['default'].useCallback(function () {
|
|
17186
|
+
setExpand(function (e) {
|
|
17187
|
+
return !e;
|
|
17188
|
+
});
|
|
17189
|
+
}, []);
|
|
17190
|
+
var isReadOnly = React__default['default'].useCallback(function (field) {
|
|
17191
|
+
return readOnly || disableds.indexOf(field) >= 0;
|
|
17192
|
+
}, [disableds, readOnly]);
|
|
17193
|
+
var getRules = React__default['default'].useCallback(function (field, defaultRules) {
|
|
17194
|
+
if (isReadOnly(field)) return [];
|
|
17195
|
+
return rulesMap[field] || defaultRules;
|
|
17196
|
+
}, [rulesMap, isReadOnly, isReadOnly]);
|
|
17197
|
+
controller.useForm('stakeholder', form); // props.isExpand 变化的时候更新
|
|
17198
|
+
|
|
17199
|
+
React__default['default'].useEffect(function () {
|
|
17200
|
+
setExpand(typeof props.isExpand === 'boolean' ? props.isExpand : true);
|
|
17201
|
+
}, [props.isExpand]);
|
|
17202
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
17203
|
+
className: classNames__default['default']("kts-invoice-operate-invoice-digtal-stakeholder", {
|
|
17204
|
+
readOnly: readOnly
|
|
17205
|
+
})
|
|
17206
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", null, '购买方信息'.split('').map(function (e) {
|
|
17207
|
+
return /*#__PURE__*/React__default['default'].createElement("span", null, e);
|
|
17208
|
+
}), !readOnly && /*#__PURE__*/React__default['default'].createElement(Icon, {
|
|
17209
|
+
className: "digtal-stakeholder-expand-button",
|
|
17210
|
+
component: isExpand ? SvgArrowUp : SvgArrowDown,
|
|
17211
|
+
onClick: onExpand
|
|
17212
|
+
})), /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
17213
|
+
style: {
|
|
17214
|
+
marginTop: 20
|
|
17215
|
+
},
|
|
17216
|
+
className: 'natural-person-flag'
|
|
17217
|
+
}, props.isNaturalPerson === true && /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, {
|
|
17218
|
+
colon: false
|
|
17219
|
+
}, getFieldDecorator('naturalPersonFlag', {})( /*#__PURE__*/React__default['default'].createElement(NaturalPersonFlag, {
|
|
17220
|
+
readOnly: isReadOnly('naturalPersonFlag')
|
|
17221
|
+
})))), /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Form, {
|
|
17222
|
+
className: "digtal-stakeholder-form"
|
|
17223
|
+
}, /*#__PURE__*/React__default['default'].createElement(ktsXui.Row, {
|
|
17224
|
+
gutter: [16, 0]
|
|
17225
|
+
}, /*#__PURE__*/React__default['default'].createElement(ktsXui.Col, {
|
|
17226
|
+
span: 24
|
|
17227
|
+
}, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, {
|
|
17228
|
+
label: "\u540D\u79F0",
|
|
17229
|
+
colon: false
|
|
17230
|
+
}, getFieldDecorator('buyerName', {
|
|
17231
|
+
rules: getRules('buyerName', RULES.companyName('购买方名称'))
|
|
17232
|
+
})( /*#__PURE__*/React__default['default'].createElement(BuyerNameInput$1, {
|
|
17233
|
+
myform: form,
|
|
17234
|
+
fieldName: 'buyerName',
|
|
17235
|
+
readOnly: isReadOnly('buyerName'),
|
|
17236
|
+
placeholder: "\u8BF7\u8F93\u5165\u540D\u79F0",
|
|
17237
|
+
autoComplete: "off",
|
|
17238
|
+
suffix: isShowImportButton === true && /*#__PURE__*/React__default['default'].createElement(ktsXui.Button, {
|
|
17239
|
+
type: 'link',
|
|
17240
|
+
style: {
|
|
17241
|
+
padding: 0,
|
|
17242
|
+
width: 20,
|
|
17243
|
+
height: '100%'
|
|
17244
|
+
},
|
|
17245
|
+
icon: /*#__PURE__*/React__default['default'].createElement(Icon, {
|
|
17246
|
+
component: SvgPlus
|
|
17247
|
+
}),
|
|
17248
|
+
onClick: function onClick() {
|
|
17249
|
+
onClickImportButton && onClickImportButton(controller);
|
|
17250
|
+
}
|
|
17251
|
+
})
|
|
17252
|
+
})))), /*#__PURE__*/React__default['default'].createElement(ktsXui.Col, {
|
|
17253
|
+
span: 24
|
|
17254
|
+
}, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, {
|
|
17255
|
+
label: "\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
17256
|
+
colon: false
|
|
17257
|
+
}, getFieldDecorator('buyerTaxId', {
|
|
17258
|
+
rules: getRules('buyerTaxId', [{
|
|
17259
|
+
required: !isVatNormal,
|
|
17260
|
+
message: '购买方纳税人识别号必填'
|
|
17261
|
+
}].concat(_toConsumableArray(RULES.taxId('购买方纳税人识别号'))))
|
|
17262
|
+
})( /*#__PURE__*/React__default['default'].createElement(BuyerNameInput$1, {
|
|
17263
|
+
myform: form,
|
|
17264
|
+
fieldName: 'buyerTaxId',
|
|
17265
|
+
readOnly: isReadOnly('buyerTaxId'),
|
|
17266
|
+
placeholder: "\u8BF7\u8F93\u5165\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
17267
|
+
autoComplete: "off"
|
|
17268
|
+
})))), /*#__PURE__*/React__default['default'].createElement(ktsXui.Col, {
|
|
17269
|
+
span: 14,
|
|
17270
|
+
style: {
|
|
17271
|
+
display: isExpand ? undefined : 'none'
|
|
17272
|
+
}
|
|
17273
|
+
}, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, {
|
|
17274
|
+
label: "\u8D2D\u4E70\u65B9\u5730\u5740",
|
|
17275
|
+
colon: false
|
|
17276
|
+
}, getFieldDecorator('buyerAddress', {
|
|
17277
|
+
rules: getRules('buyerAddress', [{
|
|
17278
|
+
max: 100,
|
|
17279
|
+
message: '购买方地址内容超长'
|
|
17280
|
+
}])
|
|
17281
|
+
})( /*#__PURE__*/React__default['default'].createElement(MyInput$1, {
|
|
17282
|
+
readOnly: isReadOnly('buyerAddress'),
|
|
17283
|
+
placeholder: "\u8BF7\u8F93\u5165\u8D2D\u4E70\u65B9\u5730\u5740",
|
|
17284
|
+
autoComplete: "off"
|
|
17285
|
+
})))), /*#__PURE__*/React__default['default'].createElement(ktsXui.Col, {
|
|
17286
|
+
span: 10,
|
|
17287
|
+
style: {
|
|
17288
|
+
display: isExpand ? undefined : 'none'
|
|
17289
|
+
}
|
|
17290
|
+
}, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, {
|
|
17291
|
+
label: "\u7535\u8BDD",
|
|
17292
|
+
colon: false,
|
|
17293
|
+
className: 'telephone'
|
|
17294
|
+
}, getFieldDecorator('buyerPhone', {
|
|
17295
|
+
rules: getRules('buyerPhone', RULES.buyerTelPhone('购买方电话'))
|
|
17296
|
+
})( /*#__PURE__*/React__default['default'].createElement(MyInput$1, {
|
|
17297
|
+
readOnly: isReadOnly('buyerPhone'),
|
|
17298
|
+
placeholder: "\u8BF7\u8F93\u5165\u7535\u8BDD",
|
|
17299
|
+
autoComplete: "off"
|
|
17300
|
+
})))), /*#__PURE__*/React__default['default'].createElement(ktsXui.Col, {
|
|
17301
|
+
span: 14,
|
|
17302
|
+
style: {
|
|
17303
|
+
display: isExpand ? undefined : 'none'
|
|
17304
|
+
}
|
|
17305
|
+
}, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, {
|
|
17306
|
+
label: "\u8D2D\u4E70\u65B9\u5F00\u6237\u94F6\u884C",
|
|
17307
|
+
colon: false
|
|
17308
|
+
}, getFieldDecorator('buyerBank', {
|
|
17309
|
+
rules: getRules('buyerBank', RULES.bankName('购买方开户银行'))
|
|
17310
|
+
})( /*#__PURE__*/React__default['default'].createElement(MyInput$1, {
|
|
17311
|
+
readOnly: isReadOnly('buyerBank'),
|
|
17312
|
+
placeholder: "\u8BF7\u8F93\u5165\u8D2D\u4E70\u65B9\u5F00\u6237\u94F6\u884C",
|
|
17313
|
+
autoComplete: "off"
|
|
17314
|
+
})))), /*#__PURE__*/React__default['default'].createElement(ktsXui.Col, {
|
|
17315
|
+
span: 10,
|
|
17316
|
+
style: {
|
|
17317
|
+
display: isExpand ? undefined : 'none'
|
|
17318
|
+
}
|
|
17319
|
+
}, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, {
|
|
17320
|
+
label: "\u94F6\u884C\u8D26\u53F7",
|
|
17321
|
+
colon: false
|
|
17322
|
+
}, getFieldDecorator('buyerAccount', {
|
|
17323
|
+
rules: getRules('buyerAccount', RULES.bankAccount('购买方银行账号'))
|
|
17324
|
+
})( /*#__PURE__*/React__default['default'].createElement(MyInput$1, {
|
|
17325
|
+
readOnly: isReadOnly('buyerAccount'),
|
|
17326
|
+
placeholder: "\u8BF7\u8F93\u5165\u94F6\u884C\u8D26\u53F7",
|
|
17327
|
+
autoComplete: "off"
|
|
17328
|
+
}))))))), /*#__PURE__*/React__default['default'].createElement("div", null, '销售方信息'.split('').map(function (e) {
|
|
17329
|
+
return /*#__PURE__*/React__default['default'].createElement("span", null, e);
|
|
17330
|
+
}), !readOnly && /*#__PURE__*/React__default['default'].createElement(Icon, {
|
|
17331
|
+
className: "digtal-stakeholder-expand-button",
|
|
17332
|
+
component: isExpand ? SvgArrowUp : SvgArrowDown,
|
|
17333
|
+
onClick: onExpand
|
|
17334
|
+
})), /*#__PURE__*/React__default['default'].createElement("div", null, !readOnly && props.lineCredit && /*#__PURE__*/React__default['default'].createElement("div", {
|
|
17335
|
+
style: {
|
|
17336
|
+
marginTop: 20
|
|
17337
|
+
}
|
|
17338
|
+
}, /*#__PURE__*/React__default['default'].createElement(ktsXui.Tooltip, {
|
|
17339
|
+
trigger: "click",
|
|
17340
|
+
title: props.lineCredit
|
|
17341
|
+
}, /*#__PURE__*/React__default['default'].createElement(ktsXui.Button, {
|
|
17342
|
+
type: "link",
|
|
17343
|
+
style: {
|
|
17344
|
+
padding: "0px 8px"
|
|
17345
|
+
}
|
|
17346
|
+
}, "\u67E5\u770B\u5F53\u524D\u53EF\u7528\u6388\u4FE1\u989D\u5EA6"))), /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Form, {
|
|
17347
|
+
className: "digtal-stakeholder-form"
|
|
17348
|
+
}, /*#__PURE__*/React__default['default'].createElement(ktsXui.Row, {
|
|
17349
|
+
gutter: [16, 0]
|
|
17350
|
+
}, /*#__PURE__*/React__default['default'].createElement(ktsXui.Col, {
|
|
17351
|
+
span: 24
|
|
17352
|
+
}, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, {
|
|
17353
|
+
label: "\u540D\u79F0",
|
|
17354
|
+
colon: false
|
|
17355
|
+
}, getFieldDecorator('supplierName', {
|
|
17356
|
+
rules: getRules('supplierName', RULES.companyName('销售方名称')),
|
|
17357
|
+
getValueFromEvent: formatCompanyName
|
|
17358
|
+
})( /*#__PURE__*/React__default['default'].createElement(MyInput$1, {
|
|
17359
|
+
readOnly: isReadOnly('supplierName'),
|
|
17360
|
+
placeholder: "\u8BF7\u8F93\u5165\u540D\u79F0",
|
|
17361
|
+
autoComplete: "off"
|
|
17362
|
+
})))), /*#__PURE__*/React__default['default'].createElement(ktsXui.Col, {
|
|
17363
|
+
span: 24
|
|
17364
|
+
}, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, {
|
|
17365
|
+
label: "\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
17366
|
+
colon: false
|
|
17367
|
+
}, getFieldDecorator('supplierTaxId', {
|
|
17368
|
+
rules: getRules('supplierTaxId', [{
|
|
17369
|
+
required: true,
|
|
17370
|
+
message: '销售方纳税人识别号必填'
|
|
17371
|
+
}].concat(_toConsumableArray(RULES.taxId('销售方纳税人识别号'))))
|
|
17372
|
+
})( /*#__PURE__*/React__default['default'].createElement(MyInput$1, {
|
|
17373
|
+
readOnly: isReadOnly('supplierTaxId'),
|
|
17374
|
+
placeholder: "\u8BF7\u8F93\u5165\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
17375
|
+
autoComplete: "off"
|
|
17376
|
+
})))), /*#__PURE__*/React__default['default'].createElement(ktsXui.Col, {
|
|
17377
|
+
span: 12,
|
|
17378
|
+
style: {
|
|
17379
|
+
display: isExpand ? undefined : 'none'
|
|
17380
|
+
}
|
|
17381
|
+
}, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, {
|
|
17382
|
+
label: "\u9500\u552E\u65B9\u5730\u5740",
|
|
17383
|
+
colon: false
|
|
17384
|
+
}, getFieldDecorator('sellerAddress', {
|
|
17385
|
+
rules: getRules('sellerAddress', [{
|
|
17386
|
+
max: 300,
|
|
17387
|
+
message: '销售方地址内容超长'
|
|
17388
|
+
}])
|
|
17389
|
+
})( /*#__PURE__*/React__default['default'].createElement(MyInput$1, {
|
|
17390
|
+
readOnly: isReadOnly('sellerAddress'),
|
|
17391
|
+
placeholder: "\u8BF7\u8F93\u5165\u9500\u552E\u65B9\u5730\u5740",
|
|
17392
|
+
autoComplete: "off"
|
|
17393
|
+
})))), /*#__PURE__*/React__default['default'].createElement(ktsXui.Col, {
|
|
17394
|
+
span: 12,
|
|
17395
|
+
style: {
|
|
17396
|
+
display: isExpand ? undefined : 'none'
|
|
17397
|
+
}
|
|
17398
|
+
}, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, {
|
|
17399
|
+
label: "\u7535\u8BDD",
|
|
17400
|
+
colon: false,
|
|
17401
|
+
className: 'telephone'
|
|
17402
|
+
}, getFieldDecorator('sellerPhone', {
|
|
17403
|
+
rules: getRules('sellerPhone', RULES.sellerTelPhone('销售方电话'))
|
|
17404
|
+
})( /*#__PURE__*/React__default['default'].createElement(MyInput$1, {
|
|
17405
|
+
readOnly: isReadOnly('sellerPhone'),
|
|
17406
|
+
placeholder: "\u8BF7\u8F93\u5165\u7535\u8BDD",
|
|
17407
|
+
autoComplete: "off"
|
|
17408
|
+
})))), /*#__PURE__*/React__default['default'].createElement(ktsXui.Col, {
|
|
17409
|
+
span: 12,
|
|
17410
|
+
style: {
|
|
17411
|
+
display: isExpand ? undefined : 'none'
|
|
17412
|
+
}
|
|
17413
|
+
}, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, {
|
|
17414
|
+
label: "\u9500\u552E\u65B9\u5F00\u6237\u94F6\u884C",
|
|
17415
|
+
colon: false
|
|
17416
|
+
}, getFieldDecorator('sellerBank', {
|
|
17417
|
+
rules: getRules('sellerBank', RULES.bankName('销售方开户银行'))
|
|
17418
|
+
})( /*#__PURE__*/React__default['default'].createElement(MyInput$1, {
|
|
17419
|
+
readOnly: isReadOnly('sellerBank'),
|
|
17420
|
+
placeholder: "\u8BF7\u8F93\u5165\u9500\u552E\u65B9\u5F00\u6237\u94F6\u884C",
|
|
17421
|
+
autoComplete: "off"
|
|
17422
|
+
})))), /*#__PURE__*/React__default['default'].createElement(ktsXui.Col, {
|
|
17423
|
+
span: 12,
|
|
17424
|
+
style: {
|
|
17425
|
+
display: isExpand ? undefined : 'none'
|
|
17426
|
+
}
|
|
17427
|
+
}, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, {
|
|
17428
|
+
label: "\u94F6\u884C\u8D26\u53F7",
|
|
17429
|
+
colon: false
|
|
17430
|
+
}, getFieldDecorator('sellerAccount', {
|
|
17431
|
+
rules: getRules('sellerAccount', RULES.bankAccount('销售方银行账号'))
|
|
17432
|
+
})( /*#__PURE__*/React__default['default'].createElement(MyInput$1, {
|
|
17433
|
+
readOnly: isReadOnly('sellerAccount'),
|
|
17434
|
+
placeholder: "\u8BF7\u8F93\u5165\u94F6\u884C\u8D26\u53F7",
|
|
17435
|
+
autoComplete: "off"
|
|
17436
|
+
}))))))));
|
|
17437
|
+
});
|
|
17438
|
+
|
|
17439
|
+
function NaturalPersonFlag(props) {
|
|
17440
|
+
var _React$useState3 = React__default['default'].useState(props.value || 'COMPANY'),
|
|
17441
|
+
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
17442
|
+
value = _React$useState4[0],
|
|
17443
|
+
setValue = _React$useState4[1];
|
|
17444
|
+
|
|
17445
|
+
var onChange = React__default['default'].useCallback(function (e) {
|
|
17446
|
+
if (props.readOnly) return;
|
|
17447
|
+
setValue(e.target.checked ? 'NATURAL' : 'COMPANY');
|
|
17448
|
+
props.onChange && props.onChange(e.target.checked ? 'NATURAL' : 'COMPANY');
|
|
17449
|
+
}, [props.onChange, props.readOnly]);
|
|
17450
|
+
React__default['default'].useEffect(function () {
|
|
17451
|
+
setValue(props.value || 'COMPANY');
|
|
17452
|
+
}, [props.value]);
|
|
17453
|
+
return /*#__PURE__*/React__default['default'].createElement(ktsXui.Checkbox, {
|
|
17454
|
+
disabled: props.readOnly,
|
|
17455
|
+
checked: value === 'NATURAL',
|
|
17456
|
+
onChange: onChange
|
|
17457
|
+
}, "\u662F\u5426\u5F00\u7968\u7ED9\u81EA\u7136\u4EBA");
|
|
17458
|
+
}
|
|
17459
|
+
|
|
17460
|
+
function BuyerNameInput$1(props) {
|
|
17461
|
+
var fieldName = props.fieldName,
|
|
17462
|
+
form = props.myform;
|
|
17463
|
+
var controller = Invoice.useInvoiceController();
|
|
17464
|
+
var rootElement = controller.useMemo(function (s) {
|
|
17465
|
+
return s.rootElement;
|
|
17466
|
+
}, []);
|
|
17467
|
+
var autoComplete = controller.useMemo(function (s) {
|
|
17468
|
+
return s.autoComplete;
|
|
17469
|
+
}, []);
|
|
17470
|
+
|
|
17471
|
+
var _React$useState5 = React__default['default'].useState([]),
|
|
17472
|
+
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
17473
|
+
options = _React$useState6[0],
|
|
17474
|
+
setOptions = _React$useState6[1];
|
|
17475
|
+
|
|
17476
|
+
var onChangeAutoComplete = React__default['default'].useCallback(function (value) {
|
|
17477
|
+
var record = options.filter(function (e) {
|
|
17478
|
+
return e[fieldName] === value;
|
|
17479
|
+
})[0];
|
|
17480
|
+
if (!record || !form) return;
|
|
17481
|
+
form.setFieldsValue(record);
|
|
17482
|
+
setOptions([]);
|
|
17483
|
+
}, [options, fieldName, form]);
|
|
17484
|
+
var onSearch = React__default['default'].useCallback( /*#__PURE__*/function () {
|
|
17485
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(searchText) {
|
|
17486
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
17487
|
+
while (1) {
|
|
17488
|
+
switch (_context.prev = _context.next) {
|
|
17489
|
+
case 0:
|
|
17490
|
+
_context.next = 2;
|
|
17491
|
+
return Discontinue.start();
|
|
17492
|
+
|
|
17493
|
+
case 2:
|
|
17494
|
+
_context.prev = 2;
|
|
17495
|
+
|
|
17496
|
+
if (!(fieldName === 'buyerName')) {
|
|
17497
|
+
_context.next = 12;
|
|
17498
|
+
break;
|
|
17499
|
+
}
|
|
17500
|
+
|
|
17501
|
+
if (!autoComplete.onBuyerNameSearch) {
|
|
17502
|
+
_context.next = 10;
|
|
17503
|
+
break;
|
|
17504
|
+
}
|
|
17505
|
+
|
|
17506
|
+
_context.t0 = setOptions;
|
|
17507
|
+
_context.next = 8;
|
|
17508
|
+
return autoComplete.onBuyerNameSearch(searchText);
|
|
17509
|
+
|
|
17510
|
+
case 8:
|
|
17511
|
+
_context.t1 = _context.sent;
|
|
17512
|
+
(0, _context.t0)(_context.t1);
|
|
17513
|
+
|
|
17514
|
+
case 10:
|
|
17515
|
+
_context.next = 19;
|
|
17516
|
+
break;
|
|
17517
|
+
|
|
17518
|
+
case 12:
|
|
17519
|
+
if (!(fieldName === 'buyerTaxId')) {
|
|
17520
|
+
_context.next = 19;
|
|
17521
|
+
break;
|
|
17522
|
+
}
|
|
17523
|
+
|
|
17524
|
+
if (!autoComplete.onBuyerTaxIdSearch) {
|
|
17525
|
+
_context.next = 19;
|
|
17526
|
+
break;
|
|
17527
|
+
}
|
|
17528
|
+
|
|
17529
|
+
_context.t2 = setOptions;
|
|
17530
|
+
_context.next = 17;
|
|
17531
|
+
return autoComplete.onBuyerTaxIdSearch(searchText);
|
|
17532
|
+
|
|
17533
|
+
case 17:
|
|
17534
|
+
_context.t3 = _context.sent;
|
|
17535
|
+
(0, _context.t2)(_context.t3);
|
|
17536
|
+
|
|
17537
|
+
case 19:
|
|
17538
|
+
_context.next = 25;
|
|
17539
|
+
break;
|
|
17540
|
+
|
|
17541
|
+
case 21:
|
|
17542
|
+
_context.prev = 21;
|
|
17543
|
+
_context.t4 = _context["catch"](2);
|
|
17544
|
+
setOptions([]);
|
|
17545
|
+
throw _context.t4;
|
|
17546
|
+
|
|
17547
|
+
case 25:
|
|
17548
|
+
case "end":
|
|
17549
|
+
return _context.stop();
|
|
17550
|
+
}
|
|
17551
|
+
}
|
|
17552
|
+
}, _callee, null, [[2, 21]]);
|
|
17553
|
+
}));
|
|
17554
|
+
|
|
17555
|
+
return function (_x) {
|
|
17556
|
+
return _ref.apply(this, arguments);
|
|
17557
|
+
};
|
|
17558
|
+
}(), [autoComplete.onBuyerNameSearch, fieldName]);
|
|
17559
|
+
if (props.readOnly) return /*#__PURE__*/React__default['default'].createElement("span", {
|
|
17560
|
+
className: 'digtal-stakeholder-form-text'
|
|
17561
|
+
}, props.value);
|
|
17562
|
+
return /*#__PURE__*/React__default['default'].createElement(ktsXui.AutoComplete, {
|
|
17563
|
+
onSearch: onSearch,
|
|
17564
|
+
options: options.map(function (e) {
|
|
17565
|
+
return {
|
|
17566
|
+
value: e[fieldName]
|
|
17567
|
+
};
|
|
17568
|
+
}),
|
|
17569
|
+
onChange: onChangeAutoComplete,
|
|
17570
|
+
value: props.value,
|
|
17571
|
+
getPopupContainer: function getPopupContainer() {
|
|
17572
|
+
return rootElement || document.body;
|
|
17573
|
+
},
|
|
17574
|
+
style: {
|
|
17575
|
+
width: '100%'
|
|
17576
|
+
}
|
|
17577
|
+
}, /*#__PURE__*/React__default['default'].createElement(ktsXui.Input, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
17578
|
+
style: _objectSpread2({
|
|
17579
|
+
width: '100%'
|
|
17580
|
+
}, props.style)
|
|
17581
|
+
})));
|
|
17582
|
+
}
|
|
17583
|
+
|
|
17584
|
+
var MyInput$1 = /*#__PURE__*/function (_React$Component) {
|
|
17585
|
+
_inherits(MyInput, _React$Component);
|
|
17586
|
+
|
|
17587
|
+
var _super = _createSuper(MyInput);
|
|
17588
|
+
|
|
17589
|
+
function MyInput() {
|
|
17590
|
+
_classCallCheck(this, MyInput);
|
|
17591
|
+
|
|
17592
|
+
return _super.apply(this, arguments);
|
|
17593
|
+
}
|
|
17594
|
+
|
|
17595
|
+
_createClass(MyInput, [{
|
|
17596
|
+
key: "render",
|
|
17597
|
+
value: function render() {
|
|
17598
|
+
var props = this.props;
|
|
17599
|
+
|
|
17600
|
+
if (props.readOnly) {
|
|
17601
|
+
return /*#__PURE__*/React__default['default'].createElement("span", {
|
|
17602
|
+
className: 'digtal-stakeholder-form-text'
|
|
17603
|
+
}, props.value);
|
|
17604
|
+
} else {
|
|
17605
|
+
return /*#__PURE__*/React__default['default'].createElement(ktsXui.Input, _objectSpread2({}, props));
|
|
17606
|
+
}
|
|
17607
|
+
}
|
|
17608
|
+
}]);
|
|
17609
|
+
|
|
17610
|
+
return MyInput;
|
|
17611
|
+
}(React__default['default'].Component);
|
|
17612
|
+
|
|
17613
|
+
var Discontinue = /*#__PURE__*/_createClass(function Discontinue() {
|
|
17614
|
+
_classCallCheck(this, Discontinue);
|
|
17615
|
+
});
|
|
17616
|
+
|
|
17617
|
+
Discontinue.timer = void 0;
|
|
17618
|
+
|
|
17619
|
+
Discontinue.start = function () {
|
|
17620
|
+
var interval = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 200;
|
|
17621
|
+
return new Promise(function (resolve) {
|
|
17622
|
+
clearTimeout(Discontinue.timer);
|
|
17623
|
+
Discontinue.timer = setTimeout(resolve, interval);
|
|
17624
|
+
});
|
|
17625
|
+
};
|
|
17626
|
+
|
|
17627
|
+
var _path$6;
|
|
17628
|
+
|
|
17629
|
+
function _extends$7() { _extends$7 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$7.apply(this, arguments); }
|
|
17630
|
+
|
|
17631
|
+
function SvgArrowUp$1(props) {
|
|
17632
|
+
return /*#__PURE__*/React.createElement("svg", _extends$7({
|
|
17056
17633
|
xmlns: "http://www.w3.org/2000/svg",
|
|
17057
17634
|
width: 13,
|
|
17058
17635
|
height: 13,
|
|
@@ -17064,10 +17641,10 @@ function SvgArrowUp(props) {
|
|
|
17064
17641
|
|
|
17065
17642
|
var _path$7;
|
|
17066
17643
|
|
|
17067
|
-
function _extends$
|
|
17644
|
+
function _extends$8() { _extends$8 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$8.apply(this, arguments); }
|
|
17068
17645
|
|
|
17069
|
-
function SvgArrowDown(props) {
|
|
17070
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
17646
|
+
function SvgArrowDown$1(props) {
|
|
17647
|
+
return /*#__PURE__*/React.createElement("svg", _extends$8({
|
|
17071
17648
|
xmlns: "http://www.w3.org/2000/svg",
|
|
17072
17649
|
width: 12,
|
|
17073
17650
|
height: 13,
|
|
@@ -17077,17 +17654,17 @@ function SvgArrowDown(props) {
|
|
|
17077
17654
|
})));
|
|
17078
17655
|
}
|
|
17079
17656
|
|
|
17080
|
-
var _g, _defs$
|
|
17657
|
+
var _g$1, _defs$3;
|
|
17081
17658
|
|
|
17082
|
-
function _extends$
|
|
17659
|
+
function _extends$9() { _extends$9 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$9.apply(this, arguments); }
|
|
17083
17660
|
|
|
17084
|
-
function SvgPlus(props) {
|
|
17085
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
17661
|
+
function SvgPlus$1(props) {
|
|
17662
|
+
return /*#__PURE__*/React.createElement("svg", _extends$9({
|
|
17086
17663
|
xmlns: "http://www.w3.org/2000/svg",
|
|
17087
17664
|
width: 16,
|
|
17088
17665
|
height: 15,
|
|
17089
17666
|
fill: "none"
|
|
17090
|
-
}, props), _g || (_g = /*#__PURE__*/React.createElement("g", {
|
|
17667
|
+
}, props), _g$1 || (_g$1 = /*#__PURE__*/React.createElement("g", {
|
|
17091
17668
|
clipPath: "url(#plus_svg__clip0_715_360)"
|
|
17092
17669
|
}, /*#__PURE__*/React.createElement("path", {
|
|
17093
17670
|
d: "M8 14.531A7.031 7.031 0 118 .468a7.031 7.031 0 010 14.063zm0-.937A6.094 6.094 0 108 1.406a6.094 6.094 0 000 12.188z"
|
|
@@ -17095,7 +17672,7 @@ function SvgPlus(props) {
|
|
|
17095
17672
|
d: "M4.25 7.969a.469.469 0 010-.938h7.5a.47.47 0 010 .938h-7.5z"
|
|
17096
17673
|
}), /*#__PURE__*/React.createElement("path", {
|
|
17097
17674
|
d: "M7.531 3.75a.469.469 0 01.938 0v7.5a.47.47 0 01-.938 0v-7.5z"
|
|
17098
|
-
}))), _defs$
|
|
17675
|
+
}))), _defs$3 || (_defs$3 = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
|
|
17099
17676
|
id: "plus_svg__clip0_715_360"
|
|
17100
17677
|
}, /*#__PURE__*/React.createElement("path", {
|
|
17101
17678
|
transform: "translate(.5)",
|
|
@@ -17103,10 +17680,10 @@ function SvgPlus(props) {
|
|
|
17103
17680
|
})))));
|
|
17104
17681
|
}
|
|
17105
17682
|
|
|
17106
|
-
var css_248z$
|
|
17107
|
-
styleInject(css_248z$
|
|
17683
|
+
var css_248z$h = ".kts-invoice-operate-invoice-digtal-stakeholder {\n display: flex;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-expand-button {\n cursor: pointer;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder > div {\n border-right: 2px solid #9F613E;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder > div:nth-child(even) {\n flex: 1;\n display: flex;\n flex-direction: column;\n justify-content: end;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder > div:nth-child(odd) {\n flex: none;\n text-align: center;\n color: #9F613E;\n display: flex;\n flex-direction: column;\n justify-content: center;\n justify-items: center;\n padding: 0 4px;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder > div:last-child {\n border-right: none;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form {\n padding: 12px 10px 5px;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form .ktsAntX-col {\n margin-bottom: 15px;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form .ktsAnt3x-row.ktsAnt3x-form-item {\n display: flex;\n margin-bottom: 0;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form .ktsAnt3x-row.ktsAnt3x-form-item .ktsAnt3x-form-item-label {\n flex: none;\n font-weight: 500;\n line-height: 29px;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form .ktsAnt3x-row.ktsAnt3x-form-item .ktsAnt3x-form-item-label label {\n color: #9F603D;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form .ktsAnt3x-row.ktsAnt3x-form-item .ktsAnt3x-form-item-control {\n line-height: 1.4;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form .ktsAnt3x-row.ktsAnt3x-form-item .ktsAnt3x-form-item-control .digtal-stakeholder-form-text {\n word-break: break-all;\n line-height: 29px;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form .ktsAnt3x-row.ktsAnt3x-form-item .ktsAnt3x-form-item-control-wrapper {\n flex: 1;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .natural-person-flag {\n padding: 0 8px;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .natural-person-flag .ktsAnt3x-form-item-control {\n line-height: 32px;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .natural-person-flag .ktsAnt3x-row.ktsAnt3x-form-item {\n margin-bottom: 0;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder.readOnly > div:nth-child(even) {\n justify-content: start;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder.readOnly .digtal-stakeholder-form .ktsAnt3x-row.ktsAnt3x-form-item .ktsAnt3x-form-item-label {\n line-height: 1.4;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder.readOnly .digtal-stakeholder-form .ktsAnt3x-row.ktsAnt3x-form-item .ktsAnt3x-form-item-control .digtal-stakeholder-form-text {\n line-height: 1.4;\n}\n";
|
|
17684
|
+
styleInject(css_248z$h);
|
|
17108
17685
|
|
|
17109
|
-
var RULES = {
|
|
17686
|
+
var RULES$1 = {
|
|
17110
17687
|
companyName: function companyName(label) {
|
|
17111
17688
|
return [{
|
|
17112
17689
|
required: true,
|
|
@@ -17163,7 +17740,7 @@ var RULES = {
|
|
|
17163
17740
|
}
|
|
17164
17741
|
};
|
|
17165
17742
|
|
|
17166
|
-
var formatCompanyName = function formatCompanyName(e) {
|
|
17743
|
+
var formatCompanyName$1 = function formatCompanyName(e) {
|
|
17167
17744
|
var _e$target;
|
|
17168
17745
|
|
|
17169
17746
|
var value = e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.value;
|
|
@@ -17172,10 +17749,10 @@ var formatCompanyName = function formatCompanyName(e) {
|
|
|
17172
17749
|
return value.replace('(', '(').replace(')', ')').replace(' ', '');
|
|
17173
17750
|
}
|
|
17174
17751
|
};
|
|
17175
|
-
/**
|
|
17752
|
+
/** 农产品干系人 */
|
|
17176
17753
|
|
|
17177
17754
|
|
|
17178
|
-
var
|
|
17755
|
+
var StakeFarmerholder = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(function (props) {
|
|
17179
17756
|
var form = props.form,
|
|
17180
17757
|
isShowImportButton = props.isShowImportButton,
|
|
17181
17758
|
onClickImportButton = props.onClickImportButton,
|
|
@@ -17224,11 +17801,11 @@ var Stakeholder$1 = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(fu
|
|
|
17224
17801
|
className: classNames__default['default']("kts-invoice-operate-invoice-digtal-stakeholder", {
|
|
17225
17802
|
readOnly: readOnly
|
|
17226
17803
|
})
|
|
17227
|
-
}, /*#__PURE__*/React__default['default'].createElement("div", null, '
|
|
17804
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", null, '销售方信息'.split('').map(function (e) {
|
|
17228
17805
|
return /*#__PURE__*/React__default['default'].createElement("span", null, e);
|
|
17229
17806
|
}), !readOnly && /*#__PURE__*/React__default['default'].createElement(Icon, {
|
|
17230
17807
|
className: "digtal-stakeholder-expand-button",
|
|
17231
|
-
component: isExpand ? SvgArrowUp : SvgArrowDown,
|
|
17808
|
+
component: isExpand ? SvgArrowUp$1 : SvgArrowDown$1,
|
|
17232
17809
|
onClick: onExpand
|
|
17233
17810
|
})), /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
17234
17811
|
style: {
|
|
@@ -17237,7 +17814,7 @@ var Stakeholder$1 = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(fu
|
|
|
17237
17814
|
className: 'natural-person-flag'
|
|
17238
17815
|
}, props.isNaturalPerson === true && /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, {
|
|
17239
17816
|
colon: false
|
|
17240
|
-
}, getFieldDecorator('naturalPersonFlag', {})( /*#__PURE__*/React__default['default'].createElement(NaturalPersonFlag, {
|
|
17817
|
+
}, getFieldDecorator('naturalPersonFlag', {})( /*#__PURE__*/React__default['default'].createElement(NaturalPersonFlag$1, {
|
|
17241
17818
|
readOnly: isReadOnly('naturalPersonFlag')
|
|
17242
17819
|
})))), /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Form, {
|
|
17243
17820
|
className: "digtal-stakeholder-form"
|
|
@@ -17248,63 +17825,46 @@ var Stakeholder$1 = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(fu
|
|
|
17248
17825
|
}, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, {
|
|
17249
17826
|
label: "\u540D\u79F0",
|
|
17250
17827
|
colon: false
|
|
17251
|
-
}, getFieldDecorator('
|
|
17252
|
-
rules: getRules('
|
|
17253
|
-
|
|
17254
|
-
|
|
17255
|
-
|
|
17256
|
-
readOnly: isReadOnly('buyerName'),
|
|
17828
|
+
}, getFieldDecorator('supplierName', {
|
|
17829
|
+
rules: getRules('supplierName', RULES$1.companyName('销售方名称')),
|
|
17830
|
+
getValueFromEvent: formatCompanyName$1
|
|
17831
|
+
})( /*#__PURE__*/React__default['default'].createElement(MyInput$2, {
|
|
17832
|
+
readOnly: isReadOnly('supplierName'),
|
|
17257
17833
|
placeholder: "\u8BF7\u8F93\u5165\u540D\u79F0",
|
|
17258
|
-
autoComplete: "off"
|
|
17259
|
-
suffix: isShowImportButton === true && /*#__PURE__*/React__default['default'].createElement(ktsXui.Button, {
|
|
17260
|
-
type: 'link',
|
|
17261
|
-
style: {
|
|
17262
|
-
padding: 0,
|
|
17263
|
-
width: 20,
|
|
17264
|
-
height: '100%'
|
|
17265
|
-
},
|
|
17266
|
-
icon: /*#__PURE__*/React__default['default'].createElement(Icon, {
|
|
17267
|
-
component: SvgPlus
|
|
17268
|
-
}),
|
|
17269
|
-
onClick: function onClick() {
|
|
17270
|
-
onClickImportButton && onClickImportButton(controller);
|
|
17271
|
-
}
|
|
17272
|
-
})
|
|
17834
|
+
autoComplete: "off"
|
|
17273
17835
|
})))), /*#__PURE__*/React__default['default'].createElement(ktsXui.Col, {
|
|
17274
17836
|
span: 24
|
|
17275
17837
|
}, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, {
|
|
17276
17838
|
label: "\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
17277
17839
|
colon: false
|
|
17278
|
-
}, getFieldDecorator('
|
|
17279
|
-
rules: getRules('
|
|
17280
|
-
required:
|
|
17281
|
-
message: '
|
|
17282
|
-
}].concat(_toConsumableArray(RULES.taxId('
|
|
17283
|
-
})( /*#__PURE__*/React__default['default'].createElement(
|
|
17284
|
-
|
|
17285
|
-
fieldName: 'buyerTaxId',
|
|
17286
|
-
readOnly: isReadOnly('buyerTaxId'),
|
|
17840
|
+
}, getFieldDecorator('supplierTaxId', {
|
|
17841
|
+
rules: getRules('supplierTaxId', [{
|
|
17842
|
+
required: true,
|
|
17843
|
+
message: '销售方纳税人识别号必填'
|
|
17844
|
+
}].concat(_toConsumableArray(RULES$1.taxId('销售方纳税人识别号'))))
|
|
17845
|
+
})( /*#__PURE__*/React__default['default'].createElement(MyInput$2, {
|
|
17846
|
+
readOnly: isReadOnly('supplierTaxId'),
|
|
17287
17847
|
placeholder: "\u8BF7\u8F93\u5165\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
17288
17848
|
autoComplete: "off"
|
|
17289
17849
|
})))), /*#__PURE__*/React__default['default'].createElement(ktsXui.Col, {
|
|
17290
|
-
span:
|
|
17850
|
+
span: 12,
|
|
17291
17851
|
style: {
|
|
17292
17852
|
display: isExpand ? undefined : 'none'
|
|
17293
17853
|
}
|
|
17294
17854
|
}, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, {
|
|
17295
|
-
label: "\
|
|
17855
|
+
label: "\u9500\u552E\u65B9\u5730\u5740",
|
|
17296
17856
|
colon: false
|
|
17297
|
-
}, getFieldDecorator('
|
|
17298
|
-
rules: getRules('
|
|
17299
|
-
max:
|
|
17300
|
-
message: '
|
|
17857
|
+
}, getFieldDecorator('sellerAddress', {
|
|
17858
|
+
rules: getRules('sellerAddress', [{
|
|
17859
|
+
max: 300,
|
|
17860
|
+
message: '销售方地址内容超长'
|
|
17301
17861
|
}])
|
|
17302
|
-
})( /*#__PURE__*/React__default['default'].createElement(MyInput$
|
|
17303
|
-
readOnly: isReadOnly('
|
|
17304
|
-
placeholder: "\u8BF7\u8F93\u5165\
|
|
17862
|
+
})( /*#__PURE__*/React__default['default'].createElement(MyInput$2, {
|
|
17863
|
+
readOnly: isReadOnly('sellerAddress'),
|
|
17864
|
+
placeholder: "\u8BF7\u8F93\u5165\u9500\u552E\u65B9\u5730\u5740",
|
|
17305
17865
|
autoComplete: "off"
|
|
17306
17866
|
})))), /*#__PURE__*/React__default['default'].createElement(ktsXui.Col, {
|
|
17307
|
-
span:
|
|
17867
|
+
span: 12,
|
|
17308
17868
|
style: {
|
|
17309
17869
|
display: isExpand ? undefined : 'none'
|
|
17310
17870
|
}
|
|
@@ -17312,45 +17872,45 @@ var Stakeholder$1 = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(fu
|
|
|
17312
17872
|
label: "\u7535\u8BDD",
|
|
17313
17873
|
colon: false,
|
|
17314
17874
|
className: 'telephone'
|
|
17315
|
-
}, getFieldDecorator('
|
|
17316
|
-
rules: getRules('
|
|
17317
|
-
})( /*#__PURE__*/React__default['default'].createElement(MyInput$
|
|
17318
|
-
readOnly: isReadOnly('
|
|
17875
|
+
}, getFieldDecorator('sellerPhone', {
|
|
17876
|
+
rules: getRules('sellerPhone', RULES$1.sellerTelPhone('销售方电话'))
|
|
17877
|
+
})( /*#__PURE__*/React__default['default'].createElement(MyInput$2, {
|
|
17878
|
+
readOnly: isReadOnly('sellerPhone'),
|
|
17319
17879
|
placeholder: "\u8BF7\u8F93\u5165\u7535\u8BDD",
|
|
17320
17880
|
autoComplete: "off"
|
|
17321
17881
|
})))), /*#__PURE__*/React__default['default'].createElement(ktsXui.Col, {
|
|
17322
|
-
span:
|
|
17882
|
+
span: 12,
|
|
17323
17883
|
style: {
|
|
17324
17884
|
display: isExpand ? undefined : 'none'
|
|
17325
17885
|
}
|
|
17326
17886
|
}, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, {
|
|
17327
|
-
label: "\
|
|
17887
|
+
label: "\u9500\u552E\u65B9\u5F00\u6237\u94F6\u884C",
|
|
17328
17888
|
colon: false
|
|
17329
|
-
}, getFieldDecorator('
|
|
17330
|
-
rules: getRules('
|
|
17331
|
-
})( /*#__PURE__*/React__default['default'].createElement(MyInput$
|
|
17332
|
-
readOnly: isReadOnly('
|
|
17333
|
-
placeholder: "\u8BF7\u8F93\u5165\
|
|
17889
|
+
}, getFieldDecorator('sellerBank', {
|
|
17890
|
+
rules: getRules('sellerBank', RULES$1.bankName('销售方开户银行'))
|
|
17891
|
+
})( /*#__PURE__*/React__default['default'].createElement(MyInput$2, {
|
|
17892
|
+
readOnly: isReadOnly('sellerBank'),
|
|
17893
|
+
placeholder: "\u8BF7\u8F93\u5165\u9500\u552E\u65B9\u5F00\u6237\u94F6\u884C",
|
|
17334
17894
|
autoComplete: "off"
|
|
17335
17895
|
})))), /*#__PURE__*/React__default['default'].createElement(ktsXui.Col, {
|
|
17336
|
-
span:
|
|
17896
|
+
span: 12,
|
|
17337
17897
|
style: {
|
|
17338
17898
|
display: isExpand ? undefined : 'none'
|
|
17339
17899
|
}
|
|
17340
17900
|
}, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, {
|
|
17341
17901
|
label: "\u94F6\u884C\u8D26\u53F7",
|
|
17342
17902
|
colon: false
|
|
17343
|
-
}, getFieldDecorator('
|
|
17344
|
-
rules: getRules('
|
|
17345
|
-
})( /*#__PURE__*/React__default['default'].createElement(MyInput$
|
|
17346
|
-
readOnly: isReadOnly('
|
|
17903
|
+
}, getFieldDecorator('sellerAccount', {
|
|
17904
|
+
rules: getRules('sellerAccount', RULES$1.bankAccount('销售方银行账号'))
|
|
17905
|
+
})( /*#__PURE__*/React__default['default'].createElement(MyInput$2, {
|
|
17906
|
+
readOnly: isReadOnly('sellerAccount'),
|
|
17347
17907
|
placeholder: "\u8BF7\u8F93\u5165\u94F6\u884C\u8D26\u53F7",
|
|
17348
17908
|
autoComplete: "off"
|
|
17349
|
-
}))))))), /*#__PURE__*/React__default['default'].createElement("div", null, '
|
|
17909
|
+
}))))))), /*#__PURE__*/React__default['default'].createElement("div", null, '购买方信息'.split('').map(function (e) {
|
|
17350
17910
|
return /*#__PURE__*/React__default['default'].createElement("span", null, e);
|
|
17351
17911
|
}), !readOnly && /*#__PURE__*/React__default['default'].createElement(Icon, {
|
|
17352
17912
|
className: "digtal-stakeholder-expand-button",
|
|
17353
|
-
component: isExpand ? SvgArrowUp : SvgArrowDown,
|
|
17913
|
+
component: isExpand ? SvgArrowUp$1 : SvgArrowDown$1,
|
|
17354
17914
|
onClick: onExpand
|
|
17355
17915
|
})), /*#__PURE__*/React__default['default'].createElement("div", null, !readOnly && props.lineCredit && /*#__PURE__*/React__default['default'].createElement("div", {
|
|
17356
17916
|
style: {
|
|
@@ -17373,46 +17933,63 @@ var Stakeholder$1 = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(fu
|
|
|
17373
17933
|
}, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, {
|
|
17374
17934
|
label: "\u540D\u79F0",
|
|
17375
17935
|
colon: false
|
|
17376
|
-
}, getFieldDecorator('
|
|
17377
|
-
rules: getRules('
|
|
17378
|
-
|
|
17379
|
-
|
|
17380
|
-
|
|
17936
|
+
}, getFieldDecorator('buyerName', {
|
|
17937
|
+
rules: getRules('buyerName', RULES$1.companyName('购买方名称'))
|
|
17938
|
+
})( /*#__PURE__*/React__default['default'].createElement(BuyerNameInput$2, {
|
|
17939
|
+
myform: form,
|
|
17940
|
+
fieldName: 'buyerName',
|
|
17941
|
+
readOnly: isReadOnly('buyerName'),
|
|
17381
17942
|
placeholder: "\u8BF7\u8F93\u5165\u540D\u79F0",
|
|
17382
|
-
autoComplete: "off"
|
|
17943
|
+
autoComplete: "off",
|
|
17944
|
+
suffix: isShowImportButton === true && /*#__PURE__*/React__default['default'].createElement(ktsXui.Button, {
|
|
17945
|
+
type: 'link',
|
|
17946
|
+
style: {
|
|
17947
|
+
padding: 0,
|
|
17948
|
+
width: 20,
|
|
17949
|
+
height: '100%'
|
|
17950
|
+
},
|
|
17951
|
+
icon: /*#__PURE__*/React__default['default'].createElement(Icon, {
|
|
17952
|
+
component: SvgPlus$1
|
|
17953
|
+
}),
|
|
17954
|
+
onClick: function onClick() {
|
|
17955
|
+
onClickImportButton && onClickImportButton(controller);
|
|
17956
|
+
}
|
|
17957
|
+
})
|
|
17383
17958
|
})))), /*#__PURE__*/React__default['default'].createElement(ktsXui.Col, {
|
|
17384
17959
|
span: 24
|
|
17385
17960
|
}, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, {
|
|
17386
17961
|
label: "\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
17387
17962
|
colon: false
|
|
17388
|
-
}, getFieldDecorator('
|
|
17389
|
-
rules: getRules('
|
|
17390
|
-
required:
|
|
17391
|
-
message: '
|
|
17392
|
-
}].concat(_toConsumableArray(RULES.taxId('
|
|
17393
|
-
})( /*#__PURE__*/React__default['default'].createElement(
|
|
17394
|
-
|
|
17963
|
+
}, getFieldDecorator('buyerTaxId', {
|
|
17964
|
+
rules: getRules('buyerTaxId', [{
|
|
17965
|
+
required: !isVatNormal,
|
|
17966
|
+
message: '购买方纳税人识别号必填'
|
|
17967
|
+
}].concat(_toConsumableArray(RULES$1.taxId('购买方纳税人识别号'))))
|
|
17968
|
+
})( /*#__PURE__*/React__default['default'].createElement(BuyerNameInput$2, {
|
|
17969
|
+
myform: form,
|
|
17970
|
+
fieldName: 'buyerTaxId',
|
|
17971
|
+
readOnly: isReadOnly('buyerTaxId'),
|
|
17395
17972
|
placeholder: "\u8BF7\u8F93\u5165\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
17396
17973
|
autoComplete: "off"
|
|
17397
17974
|
})))), /*#__PURE__*/React__default['default'].createElement(ktsXui.Col, {
|
|
17398
|
-
span:
|
|
17975
|
+
span: 14,
|
|
17399
17976
|
style: {
|
|
17400
17977
|
display: isExpand ? undefined : 'none'
|
|
17401
17978
|
}
|
|
17402
17979
|
}, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, {
|
|
17403
|
-
label: "\
|
|
17980
|
+
label: "\u8D2D\u4E70\u65B9\u5730\u5740",
|
|
17404
17981
|
colon: false
|
|
17405
|
-
}, getFieldDecorator('
|
|
17406
|
-
rules: getRules('
|
|
17407
|
-
max:
|
|
17408
|
-
message: '
|
|
17982
|
+
}, getFieldDecorator('buyerAddress', {
|
|
17983
|
+
rules: getRules('buyerAddress', [{
|
|
17984
|
+
max: 100,
|
|
17985
|
+
message: '购买方地址内容超长'
|
|
17409
17986
|
}])
|
|
17410
|
-
})( /*#__PURE__*/React__default['default'].createElement(MyInput$
|
|
17411
|
-
readOnly: isReadOnly('
|
|
17412
|
-
placeholder: "\u8BF7\u8F93\u5165\
|
|
17987
|
+
})( /*#__PURE__*/React__default['default'].createElement(MyInput$2, {
|
|
17988
|
+
readOnly: isReadOnly('buyerAddress'),
|
|
17989
|
+
placeholder: "\u8BF7\u8F93\u5165\u8D2D\u4E70\u65B9\u5730\u5740",
|
|
17413
17990
|
autoComplete: "off"
|
|
17414
17991
|
})))), /*#__PURE__*/React__default['default'].createElement(ktsXui.Col, {
|
|
17415
|
-
span:
|
|
17992
|
+
span: 10,
|
|
17416
17993
|
style: {
|
|
17417
17994
|
display: isExpand ? undefined : 'none'
|
|
17418
17995
|
}
|
|
@@ -17420,44 +17997,44 @@ var Stakeholder$1 = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(fu
|
|
|
17420
17997
|
label: "\u7535\u8BDD",
|
|
17421
17998
|
colon: false,
|
|
17422
17999
|
className: 'telephone'
|
|
17423
|
-
}, getFieldDecorator('
|
|
17424
|
-
rules: getRules('
|
|
17425
|
-
})( /*#__PURE__*/React__default['default'].createElement(MyInput$
|
|
17426
|
-
readOnly: isReadOnly('
|
|
18000
|
+
}, getFieldDecorator('buyerPhone', {
|
|
18001
|
+
rules: getRules('buyerPhone', RULES$1.buyerTelPhone('购买方电话'))
|
|
18002
|
+
})( /*#__PURE__*/React__default['default'].createElement(MyInput$2, {
|
|
18003
|
+
readOnly: isReadOnly('buyerPhone'),
|
|
17427
18004
|
placeholder: "\u8BF7\u8F93\u5165\u7535\u8BDD",
|
|
17428
18005
|
autoComplete: "off"
|
|
17429
18006
|
})))), /*#__PURE__*/React__default['default'].createElement(ktsXui.Col, {
|
|
17430
|
-
span:
|
|
18007
|
+
span: 14,
|
|
17431
18008
|
style: {
|
|
17432
18009
|
display: isExpand ? undefined : 'none'
|
|
17433
18010
|
}
|
|
17434
18011
|
}, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, {
|
|
17435
|
-
label: "\
|
|
18012
|
+
label: "\u8D2D\u4E70\u65B9\u5F00\u6237\u94F6\u884C",
|
|
17436
18013
|
colon: false
|
|
17437
|
-
}, getFieldDecorator('
|
|
17438
|
-
rules: getRules('
|
|
17439
|
-
})( /*#__PURE__*/React__default['default'].createElement(MyInput$
|
|
17440
|
-
readOnly: isReadOnly('
|
|
17441
|
-
placeholder: "\u8BF7\u8F93\u5165\
|
|
18014
|
+
}, getFieldDecorator('buyerBank', {
|
|
18015
|
+
rules: getRules('buyerBank', RULES$1.bankName('购买方开户银行'))
|
|
18016
|
+
})( /*#__PURE__*/React__default['default'].createElement(MyInput$2, {
|
|
18017
|
+
readOnly: isReadOnly('buyerBank'),
|
|
18018
|
+
placeholder: "\u8BF7\u8F93\u5165\u8D2D\u4E70\u65B9\u5F00\u6237\u94F6\u884C",
|
|
17442
18019
|
autoComplete: "off"
|
|
17443
18020
|
})))), /*#__PURE__*/React__default['default'].createElement(ktsXui.Col, {
|
|
17444
|
-
span:
|
|
18021
|
+
span: 10,
|
|
17445
18022
|
style: {
|
|
17446
18023
|
display: isExpand ? undefined : 'none'
|
|
17447
18024
|
}
|
|
17448
18025
|
}, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, {
|
|
17449
18026
|
label: "\u94F6\u884C\u8D26\u53F7",
|
|
17450
18027
|
colon: false
|
|
17451
|
-
}, getFieldDecorator('
|
|
17452
|
-
rules: getRules('
|
|
17453
|
-
})( /*#__PURE__*/React__default['default'].createElement(MyInput$
|
|
17454
|
-
readOnly: isReadOnly('
|
|
18028
|
+
}, getFieldDecorator('buyerAccount', {
|
|
18029
|
+
rules: getRules('buyerAccount', RULES$1.bankAccount('购买方银行账号'))
|
|
18030
|
+
})( /*#__PURE__*/React__default['default'].createElement(MyInput$2, {
|
|
18031
|
+
readOnly: isReadOnly('buyerAccount'),
|
|
17455
18032
|
placeholder: "\u8BF7\u8F93\u5165\u94F6\u884C\u8D26\u53F7",
|
|
17456
18033
|
autoComplete: "off"
|
|
17457
18034
|
}))))))));
|
|
17458
18035
|
});
|
|
17459
18036
|
|
|
17460
|
-
function NaturalPersonFlag(props) {
|
|
18037
|
+
function NaturalPersonFlag$1(props) {
|
|
17461
18038
|
var _React$useState3 = React__default['default'].useState(props.value || 'COMPANY'),
|
|
17462
18039
|
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
17463
18040
|
value = _React$useState4[0],
|
|
@@ -17478,7 +18055,7 @@ function NaturalPersonFlag(props) {
|
|
|
17478
18055
|
}, "\u662F\u5426\u5F00\u7968\u7ED9\u81EA\u7136\u4EBA");
|
|
17479
18056
|
}
|
|
17480
18057
|
|
|
17481
|
-
function BuyerNameInput$
|
|
18058
|
+
function BuyerNameInput$2(props) {
|
|
17482
18059
|
var fieldName = props.fieldName,
|
|
17483
18060
|
form = props.myform;
|
|
17484
18061
|
var controller = Invoice.useInvoiceController();
|
|
@@ -17509,7 +18086,7 @@ function BuyerNameInput$1(props) {
|
|
|
17509
18086
|
switch (_context.prev = _context.next) {
|
|
17510
18087
|
case 0:
|
|
17511
18088
|
_context.next = 2;
|
|
17512
|
-
return Discontinue.start();
|
|
18089
|
+
return Discontinue$1.start();
|
|
17513
18090
|
|
|
17514
18091
|
case 2:
|
|
17515
18092
|
_context.prev = 2;
|
|
@@ -17602,7 +18179,7 @@ function BuyerNameInput$1(props) {
|
|
|
17602
18179
|
})));
|
|
17603
18180
|
}
|
|
17604
18181
|
|
|
17605
|
-
var MyInput$
|
|
18182
|
+
var MyInput$2 = /*#__PURE__*/function (_React$Component) {
|
|
17606
18183
|
_inherits(MyInput, _React$Component);
|
|
17607
18184
|
|
|
17608
18185
|
var _super = _createSuper(MyInput);
|
|
@@ -17631,22 +18208,22 @@ var MyInput$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
17631
18208
|
return MyInput;
|
|
17632
18209
|
}(React__default['default'].Component);
|
|
17633
18210
|
|
|
17634
|
-
var Discontinue = /*#__PURE__*/_createClass(function Discontinue() {
|
|
18211
|
+
var Discontinue$1 = /*#__PURE__*/_createClass(function Discontinue() {
|
|
17635
18212
|
_classCallCheck(this, Discontinue);
|
|
17636
18213
|
});
|
|
17637
18214
|
|
|
17638
|
-
Discontinue.timer = void 0;
|
|
18215
|
+
Discontinue$1.timer = void 0;
|
|
17639
18216
|
|
|
17640
|
-
Discontinue.start = function () {
|
|
18217
|
+
Discontinue$1.start = function () {
|
|
17641
18218
|
var interval = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 200;
|
|
17642
18219
|
return new Promise(function (resolve) {
|
|
17643
|
-
clearTimeout(Discontinue.timer);
|
|
17644
|
-
Discontinue.timer = setTimeout(resolve, interval);
|
|
18220
|
+
clearTimeout(Discontinue$1.timer);
|
|
18221
|
+
Discontinue$1.timer = setTimeout(resolve, interval);
|
|
17645
18222
|
});
|
|
17646
18223
|
};
|
|
17647
18224
|
|
|
17648
|
-
var css_248z$
|
|
17649
|
-
styleInject(css_248z$
|
|
18225
|
+
var css_248z$i = ".kts-invoice-operate-sign-digtal {\n padding: 20px 20px 0;\n border-bottom: 2px solid #9F613E;\n border-left: 2px solid #9F613E;\n border-right: 2px solid #9F613E;\n}\n.kts-invoice-operate-sign-digtal .sign-digtal-label {\n color: #9F613E;\n font-weight: bold;\n}\n.kts-invoice-operate-sign-digtal-readOnly .sign-digtal-readOnly-cont {\n border-bottom: 2px solid #9F613E;\n border-left: 2px solid #9F613E;\n border-right: 2px solid #9F613E;\n display: flex;\n}\n.kts-invoice-operate-sign-digtal-readOnly .sign-digtal-readOnly-cont > div:nth-child(even) {\n flex: 1;\n display: flex;\n flex-direction: column;\n padding: 10px;\n min-height: 189px;\n}\n.kts-invoice-operate-sign-digtal-readOnly .sign-digtal-readOnly-cont > div:nth-child(odd) {\n flex: none;\n text-align: center;\n color: #9F613E;\n display: flex;\n flex-direction: column;\n justify-content: center;\n justify-items: center;\n padding: 0 4px;\n border-right: 2px solid #9F613E;\n}\n.kts-invoice-operate-sign-digtal-readOnly .digtal-readOnly-form {\n padding-left: 30px;\n}\n.kts-invoice-operate-sign-digtal-readOnly .digtal-readOnly-form .ktsAnt3x-form-item-label label {\n color: #9F613E;\n font-weight: bold;\n}\n";
|
|
18226
|
+
styleInject(css_248z$i);
|
|
17650
18227
|
|
|
17651
18228
|
var SignDigtal = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(function (props) {
|
|
17652
18229
|
var form = props.form;
|
|
@@ -17754,8 +18331,8 @@ var MyDiv$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
17754
18331
|
return MyDiv;
|
|
17755
18332
|
}(React__default['default'].Component);
|
|
17756
18333
|
|
|
17757
|
-
var css_248z$
|
|
17758
|
-
styleInject(css_248z$
|
|
18334
|
+
var css_248z$j = ".kts-invoice-operate-goods-table-virtual .ktsAntX-table-body {\n height: 280px;\n}\n.kts-invoice-operate-goods-table-virtual .ktsAntX-table.ktsAntX-table-bordered > .ktsAntX-table-container > .ktsAntX-table-header > table > thead > tr > th {\n padding: 0 10px;\n height: 32px;\n background: #f4f4f4;\n}\n.kts-invoice-operate-goods-table-virtual .ktsAntX-table.ktsAntX-table-bordered > .ktsAntX-table-container > .ktsAntX-table-body > table > tbody > tr > td {\n padding: 0;\n height: 32px;\n}\n.kts-invoice-operate-goods-table-virtual .ktsAntX-table .ktsAntX-table-body {\n position: relative;\n}\n.kts-invoice-operate-goods-table-virtual .ktsAntX-table .ktsAntX-table-body > table {\n position: absolute;\n left: 0;\n top: 0;\n}\n.kts-invoice-operate-goods-table-virtual .ktsAntX-table .ktsAntX-table-tbody {\n position: relative;\n}\n.kts-invoice-operate-goods-table-virtual .ktsAntX-checkbox-wrapper .ktsAntX-checkbox-inner {\n width: 16px;\n height: 16px;\n border: 1px solid #d9d9d9;\n border-radius: 2px;\n top: 1px;\n}\n";
|
|
18335
|
+
styleInject(css_248z$j);
|
|
17759
18336
|
|
|
17760
18337
|
function TableVirtual$1 (props) {
|
|
17761
18338
|
var _props$dataSource2;
|
|
@@ -17860,17 +18437,17 @@ function TableVirtual$1 (props) {
|
|
|
17860
18437
|
})));
|
|
17861
18438
|
}
|
|
17862
18439
|
|
|
17863
|
-
var _g$
|
|
18440
|
+
var _g$2, _defs$4;
|
|
17864
18441
|
|
|
17865
|
-
function _extends$
|
|
18442
|
+
function _extends$a() { _extends$a = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$a.apply(this, arguments); }
|
|
17866
18443
|
|
|
17867
18444
|
function SvgFork(props) {
|
|
17868
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
18445
|
+
return /*#__PURE__*/React.createElement("svg", _extends$a({
|
|
17869
18446
|
xmlns: "http://www.w3.org/2000/svg",
|
|
17870
18447
|
width: 16,
|
|
17871
18448
|
height: 16,
|
|
17872
18449
|
fill: "none"
|
|
17873
|
-
}, props), _g$
|
|
18450
|
+
}, props), _g$2 || (_g$2 = /*#__PURE__*/React.createElement("g", {
|
|
17874
18451
|
clipPath: "url(#fork_svg__clip0_695_1221)",
|
|
17875
18452
|
fill: "#333"
|
|
17876
18453
|
}, /*#__PURE__*/React.createElement("path", {
|
|
@@ -17879,7 +18456,7 @@ function SvgFork(props) {
|
|
|
17879
18456
|
d: "M10.702 11.329l-5.973-5.97.629-.63 5.971 5.971-.627.629z"
|
|
17880
18457
|
}), /*#__PURE__*/React.createElement("path", {
|
|
17881
18458
|
d: "M4.669 10.702l5.97-5.971.63.628-5.972 5.972-.628-.629z"
|
|
17882
|
-
}))), _defs$
|
|
18459
|
+
}))), _defs$4 || (_defs$4 = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
|
|
17883
18460
|
id: "fork_svg__clip0_695_1221"
|
|
17884
18461
|
}, /*#__PURE__*/React.createElement("path", {
|
|
17885
18462
|
fill: "#fff",
|
|
@@ -17887,8 +18464,8 @@ function SvgFork(props) {
|
|
|
17887
18464
|
})))));
|
|
17888
18465
|
}
|
|
17889
18466
|
|
|
17890
|
-
var css_248z$
|
|
17891
|
-
styleInject(css_248z$
|
|
18467
|
+
var css_248z$k = ".kts-invoice-operate-goods-list-statistics-digtal {\n overflow-y: scroll;\n /* 设置滚动条滑块颜色 */\n}\n.kts-invoice-operate-goods-list-statistics-digtal::-webkit-scrollbar-track {\n background-color: #f1f1f1;\n}\n.kts-invoice-operate-goods-list-statistics-digtal .statistics-digtal-total-tax,\n.kts-invoice-operate-goods-list-statistics-digtal .statistics-digtal-total {\n height: 42px;\n display: flex;\n align-items: center;\n}\n.kts-invoice-operate-goods-list-statistics-digtal .statistics-digtal-total-tax > div:first-child,\n.kts-invoice-operate-goods-list-statistics-digtal .statistics-digtal-total > div:first-child {\n width: 225px;\n color: #9F613E;\n font-family: PingFang SC;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.kts-invoice-operate-goods-list-statistics-digtal .statistics-digtal-total-tax {\n border-top: 2px solid #9F613E;\n}\n.kts-invoice-operate-goods-list-statistics-digtal .statistics-digtal-total-tax > div:first-child {\n border-right: 2px solid #9F613E;\n}\n";
|
|
18468
|
+
styleInject(css_248z$k);
|
|
17892
18469
|
|
|
17893
18470
|
var Statistics$1 = (function () {
|
|
17894
18471
|
var controller = Invoice.useInvoiceController();
|
|
@@ -19471,10 +20048,10 @@ var TaxIncludedSwitch$1 = (function () {
|
|
|
19471
20048
|
|
|
19472
20049
|
var _path$8;
|
|
19473
20050
|
|
|
19474
|
-
function _extends$
|
|
20051
|
+
function _extends$b() { _extends$b = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$b.apply(this, arguments); }
|
|
19475
20052
|
|
|
19476
20053
|
function SvgMagnifier$1(props) {
|
|
19477
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
20054
|
+
return /*#__PURE__*/React.createElement("svg", _extends$b({
|
|
19478
20055
|
className: "magnifier_svg__icon",
|
|
19479
20056
|
viewBox: "0 0 1024 1024",
|
|
19480
20057
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -19485,8 +20062,8 @@ function SvgMagnifier$1(props) {
|
|
|
19485
20062
|
})));
|
|
19486
20063
|
}
|
|
19487
20064
|
|
|
19488
|
-
var css_248z$
|
|
19489
|
-
styleInject(css_248z$
|
|
20065
|
+
var css_248z$l = ".kts-invoice-operate-goods-list-able .kts-invoice-operate-goods-list-search {\n width: 350px;\n border-radius: 999px;\n}\n.kts-invoice-operate-goods-list-able .kts-invoice-operate-goods-list-search input {\n border-radius: 999px;\n border-color: #b8b8b8;\n font-size: 12px;\n}\n";
|
|
20066
|
+
styleInject(css_248z$l);
|
|
19490
20067
|
|
|
19491
20068
|
function Search$1() {
|
|
19492
20069
|
var controller = Invoice.useInvoiceController();
|
|
@@ -19575,8 +20152,8 @@ function Search$1() {
|
|
|
19575
20152
|
});
|
|
19576
20153
|
}
|
|
19577
20154
|
|
|
19578
|
-
var css_248z$
|
|
19579
|
-
styleInject(css_248z$
|
|
20155
|
+
var css_248z$m = ".kts-invoice-operate-goods-list-itemName-drag-container-u {\n position: relative;\n}\n.kts-invoice-operate-goods-list-itemName-drag-container-u::after {\n content: \" \";\n width: 100%;\n height: 2px;\n background: #0074ff;\n position: absolute;\n left: 0;\n top: 0;\n z-index: 9999;\n}\n.kts-invoice-operate-goods-list-itemName-drag-container-d {\n position: relative;\n}\n.kts-invoice-operate-goods-list-itemName-drag-container-d::after {\n content: \" \";\n width: 100%;\n height: 2px;\n background: #0074ff;\n position: absolute;\n left: 0;\n bottom: 0;\n z-index: 9999;\n}\n";
|
|
20156
|
+
styleInject(css_248z$m);
|
|
19580
20157
|
|
|
19581
20158
|
function TableRow$1(props) {
|
|
19582
20159
|
var rowKey = props['data-row-key'];
|
|
@@ -19628,16 +20205,16 @@ function TableRow$1(props) {
|
|
|
19628
20205
|
}));
|
|
19629
20206
|
}
|
|
19630
20207
|
|
|
19631
|
-
var _g$
|
|
20208
|
+
var _g$3, _defs$5;
|
|
19632
20209
|
|
|
19633
|
-
function _extends$
|
|
20210
|
+
function _extends$c() { _extends$c = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$c.apply(this, arguments); }
|
|
19634
20211
|
|
|
19635
|
-
function SvgPlus$
|
|
19636
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
20212
|
+
function SvgPlus$2(props) {
|
|
20213
|
+
return /*#__PURE__*/React.createElement("svg", _extends$c({
|
|
19637
20214
|
xmlns: "http://www.w3.org/2000/svg",
|
|
19638
20215
|
width: 16,
|
|
19639
20216
|
height: 15
|
|
19640
|
-
}, props), _g$
|
|
20217
|
+
}, props), _g$3 || (_g$3 = /*#__PURE__*/React.createElement("g", {
|
|
19641
20218
|
clipPath: "url(#plus_svg__clip0_715_360)"
|
|
19642
20219
|
}, /*#__PURE__*/React.createElement("path", {
|
|
19643
20220
|
d: "M8 14.531A7.031 7.031 0 118 .468a7.031 7.031 0 010 14.063zm0-.937A6.094 6.094 0 108 1.406a6.094 6.094 0 000 12.188z"
|
|
@@ -19645,7 +20222,7 @@ function SvgPlus$1(props) {
|
|
|
19645
20222
|
d: "M4.25 7.969a.469.469 0 010-.938h7.5a.47.47 0 010 .938h-7.5z"
|
|
19646
20223
|
}), /*#__PURE__*/React.createElement("path", {
|
|
19647
20224
|
d: "M7.531 3.75a.469.469 0 01.938 0v7.5a.47.47 0 01-.938 0v-7.5z"
|
|
19648
|
-
}))), _defs$
|
|
20225
|
+
}))), _defs$5 || (_defs$5 = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
|
|
19649
20226
|
id: "plus_svg__clip0_715_360"
|
|
19650
20227
|
}, /*#__PURE__*/React.createElement("path", {
|
|
19651
20228
|
transform: "translate(.5)",
|
|
@@ -19667,8 +20244,8 @@ var TitleText$1 = (function (props) {
|
|
|
19667
20244
|
}, "*") : /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null), children);
|
|
19668
20245
|
});
|
|
19669
20246
|
|
|
19670
|
-
var css_248z$
|
|
19671
|
-
styleInject(css_248z$
|
|
20247
|
+
var css_248z$n = ".kts-invoice-operate-goods-list-itemName-input {\n display: flex;\n flex: 1;\n padding-left: 0;\n height: 31px;\n}\n";
|
|
20248
|
+
styleInject(css_248z$n);
|
|
19672
20249
|
|
|
19673
20250
|
function ItemNameInput$1(props) {
|
|
19674
20251
|
var controller = Invoice.useInvoiceController();
|
|
@@ -19880,10 +20457,10 @@ function ItemNameInput$1(props) {
|
|
|
19880
20457
|
|
|
19881
20458
|
var _path$9;
|
|
19882
20459
|
|
|
19883
|
-
function _extends$
|
|
20460
|
+
function _extends$d() { _extends$d = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$d.apply(this, arguments); }
|
|
19884
20461
|
|
|
19885
|
-
function SvgI001$
|
|
19886
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
20462
|
+
function SvgI001$1(props) {
|
|
20463
|
+
return /*#__PURE__*/React.createElement("svg", _extends$d({
|
|
19887
20464
|
className: "I001_svg__icon",
|
|
19888
20465
|
viewBox: "0 0 1024 1024",
|
|
19889
20466
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -19894,8 +20471,8 @@ function SvgI001$2(props) {
|
|
|
19894
20471
|
})));
|
|
19895
20472
|
}
|
|
19896
20473
|
|
|
19897
|
-
var css_248z$
|
|
19898
|
-
styleInject(css_248z$
|
|
20474
|
+
var css_248z$o = ".kts-invoice-operate-goods-list-itemName-drag {\n cursor: all-scroll;\n}\n.kts-invoice-operate-goods-list-itemName-drag-div {\n z-index: 999;\n border: 1px solid #E6E6E6;\n width: 400px;\n height: 50px;\n display: flex;\n gap: 10px;\n align-items: center;\n position: fixed;\n padding: 0 20px;\n top: 100px;\n background: #fff;\n pointer-events: none;\n opacity: 0.4;\n}\n";
|
|
20475
|
+
styleInject(css_248z$o);
|
|
19899
20476
|
|
|
19900
20477
|
function Drag$2(props) {
|
|
19901
20478
|
var record = props.record;
|
|
@@ -20190,7 +20767,7 @@ function Drag$2(props) {
|
|
|
20190
20767
|
className: "kts-invoice-operate-goods-list-itemName-drag",
|
|
20191
20768
|
onMouseOver: controller.saveEditGood
|
|
20192
20769
|
}, /*#__PURE__*/React__default['default'].createElement(Icon, {
|
|
20193
|
-
component: SvgI001$
|
|
20770
|
+
component: SvgI001$1
|
|
20194
20771
|
}));
|
|
20195
20772
|
}, [onMouseDown, controller]);
|
|
20196
20773
|
|
|
@@ -20453,7 +21030,7 @@ var useColumns$1 = (function (form) {
|
|
|
20453
21030
|
fontSize: 20,
|
|
20454
21031
|
fill: '#0074ff'
|
|
20455
21032
|
},
|
|
20456
|
-
icon: /*#__PURE__*/React__default['default'].createElement(SvgPlus$
|
|
21033
|
+
icon: /*#__PURE__*/React__default['default'].createElement(SvgPlus$2, null),
|
|
20457
21034
|
onClick: controller.pipeline( /*#__PURE__*/function () {
|
|
20458
21035
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(s) {
|
|
20459
21036
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
@@ -20506,7 +21083,7 @@ var useColumns$1 = (function (form) {
|
|
|
20506
21083
|
return /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, null, getFieldDecorator('itemModelName', {
|
|
20507
21084
|
initialValue: isMyShow ? editGood.itemModelNameSelf : editGood.itemModelName,
|
|
20508
21085
|
rules: getReplenishRules('itemModelName')
|
|
20509
|
-
})( /*#__PURE__*/React__default['default'].createElement(MyInput$
|
|
21086
|
+
})( /*#__PURE__*/React__default['default'].createElement(MyInput$3, {
|
|
20510
21087
|
onChange: function () {
|
|
20511
21088
|
var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
20512
21089
|
var key, value;
|
|
@@ -20658,7 +21235,7 @@ var useColumns$1 = (function (form) {
|
|
|
20658
21235
|
return validator;
|
|
20659
21236
|
}()
|
|
20660
21237
|
}])
|
|
20661
|
-
})( /*#__PURE__*/React__default['default'].createElement(MyInput$
|
|
21238
|
+
})( /*#__PURE__*/React__default['default'].createElement(MyInput$3, {
|
|
20662
21239
|
style: {
|
|
20663
21240
|
textAlign: 'right'
|
|
20664
21241
|
},
|
|
@@ -20753,7 +21330,7 @@ var useColumns$1 = (function (form) {
|
|
|
20753
21330
|
return validator;
|
|
20754
21331
|
}()
|
|
20755
21332
|
}])
|
|
20756
|
-
})( /*#__PURE__*/React__default['default'].createElement(MyInput$
|
|
21333
|
+
})( /*#__PURE__*/React__default['default'].createElement(MyInput$3, {
|
|
20757
21334
|
style: {
|
|
20758
21335
|
textAlign: 'right'
|
|
20759
21336
|
},
|
|
@@ -20828,7 +21405,7 @@ var useColumns$1 = (function (form) {
|
|
|
20828
21405
|
return validator;
|
|
20829
21406
|
}()
|
|
20830
21407
|
}])
|
|
20831
|
-
})( /*#__PURE__*/React__default['default'].createElement(MyInput$
|
|
21408
|
+
})( /*#__PURE__*/React__default['default'].createElement(MyInput$3, {
|
|
20832
21409
|
style: {
|
|
20833
21410
|
textAlign: 'right'
|
|
20834
21411
|
},
|
|
@@ -20917,7 +21494,7 @@ var useColumns$1 = (function (form) {
|
|
|
20917
21494
|
return validator;
|
|
20918
21495
|
}()
|
|
20919
21496
|
}])
|
|
20920
|
-
})( /*#__PURE__*/React__default['default'].createElement(MyInput$
|
|
21497
|
+
})( /*#__PURE__*/React__default['default'].createElement(MyInput$3, {
|
|
20921
21498
|
style: {
|
|
20922
21499
|
textAlign: 'right'
|
|
20923
21500
|
},
|
|
@@ -20980,7 +21557,7 @@ var useColumns$1 = (function (form) {
|
|
|
20980
21557
|
return validator;
|
|
20981
21558
|
}()
|
|
20982
21559
|
}])
|
|
20983
|
-
})( /*#__PURE__*/React__default['default'].createElement(MyInput$
|
|
21560
|
+
})( /*#__PURE__*/React__default['default'].createElement(MyInput$3, {
|
|
20984
21561
|
style: {
|
|
20985
21562
|
textAlign: 'right'
|
|
20986
21563
|
},
|
|
@@ -21114,7 +21691,7 @@ function isCipher$1(name, field) {
|
|
|
21114
21691
|
return name !== field;
|
|
21115
21692
|
}
|
|
21116
21693
|
|
|
21117
|
-
var MyInput$
|
|
21694
|
+
var MyInput$3 = /*#__PURE__*/function (_React$Component) {
|
|
21118
21695
|
_inherits(MyInput, _React$Component);
|
|
21119
21696
|
|
|
21120
21697
|
var _super = _createSuper(MyInput);
|
|
@@ -22613,8 +23190,8 @@ var useEmptyRefill = (function () {
|
|
|
22613
23190
|
};
|
|
22614
23191
|
});
|
|
22615
23192
|
|
|
22616
|
-
var css_248z$
|
|
22617
|
-
styleInject(css_248z$
|
|
23193
|
+
var css_248z$p = ".goods-list-digtal-reselect-invoice-typeModal-radio {\n width: 100%;\n display: flex !important;\n}\n.goods-list-digtal-reselect-invoice-typeModal-radio > label {\n flex: 1;\n}\n";
|
|
23194
|
+
styleInject(css_248z$p);
|
|
22618
23195
|
|
|
22619
23196
|
function InvoiceTypeModal(props) {
|
|
22620
23197
|
var _props$disableds = props.disableds,
|
|
@@ -22786,8 +23363,8 @@ var useReselectInvoiceType = (function () {
|
|
|
22786
23363
|
};
|
|
22787
23364
|
});
|
|
22788
23365
|
|
|
22789
|
-
var css_248z$
|
|
22790
|
-
styleInject(css_248z$
|
|
23366
|
+
var css_248z$q = ".kts-invoice-operate-goods-list-digtal .goods-list-digtal-discount-tag {\n display: inline-block;\n height: 20px;\n line-height: 20px;\n border: 1px solid;\n padding: 0 5px;\n border-radius: 4px;\n}\n.kts-invoice-operate-goods-list-digtal .kts-invoice-operate-goods-list-table-tax-rate .ktsAnt3x-select-selection-selected-value {\n float: right;\n}\n.kts-invoice-operate-goods-list-digtal .kts-invoice-operate-goods-list-able {\n display: flex;\n padding: 10px;\n border-bottom: 2px solid #9F613E;\n gap: 10px;\n align-items: center;\n height: 48px;\n}\n.kts-invoice-operate-goods-list-digtal .ktsAntX-table .ktsAntX-table-row.kts-invoice-operate-goods-be-discount .ktsAntX-table-cell {\n color: #f00;\n}\n.kts-invoice-operate-goods-list-table-digtal .ktsAnt3x-form-item-control.has-error {\n border: 1px solid #f00;\n}\n.kts-invoice-operate-goods-list-table-digtal .kts-invoice-operate-goods-list-table.kts-invoice-operate-prefab .ktsAnt3x-table-row {\n color: rgba(0, 0, 0, 0.25);\n background: #f5f5f5;\n}\n.kts-invoice-operate-goods-list-table-digtal .kts-invoice-operate-goods-list-table-search-protrude {\n background: #ff0;\n color: #000;\n font-weight: bold;\n}\n";
|
|
23367
|
+
styleInject(css_248z$q);
|
|
22791
23368
|
|
|
22792
23369
|
var GoodsList$1 = /*#__PURE__*/function (_React$Component) {
|
|
22793
23370
|
_inherits(GoodsList, _React$Component);
|
|
@@ -23042,8 +23619,8 @@ var Main$3 = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(function
|
|
|
23042
23619
|
})), /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(Statistics$1, null)));
|
|
23043
23620
|
});
|
|
23044
23621
|
|
|
23045
|
-
var css_248z$
|
|
23046
|
-
styleInject(css_248z$
|
|
23622
|
+
var css_248z$r = ".kts-invoice-operate-real-estate-info-digtal {\n padding: 20px;\n border-bottom: 2px solid #9F613E;\n border-left: 2px solid #9F613E;\n border-right: 2px solid #9F613E;\n}\n.kts-invoice-operate-real-estate-info-digtal .real-estate-info-digtal-label {\n color: #9F613E;\n font-weight: bold;\n}\n.kts-invoice-operate-real-estate-info-digtal .ktsAnt3x-row.ktsAnt3x-form-item {\n margin-bottom: 0;\n}\n";
|
|
23623
|
+
styleInject(css_248z$r);
|
|
23047
23624
|
|
|
23048
23625
|
var RangePicker = ktsComponentsAntdX4.DatePicker.RangePicker;
|
|
23049
23626
|
/** 特殊信息-不动产经营租赁服务 */
|
|
@@ -23659,8 +24236,8 @@ var getItemCode = function getItemCode(record, editGood) {
|
|
|
23659
24236
|
return record.productCode;
|
|
23660
24237
|
};
|
|
23661
24238
|
|
|
23662
|
-
var css_248z$
|
|
23663
|
-
styleInject(css_248z$
|
|
24239
|
+
var css_248z$s = ".kts-invoice-operate-goods-endow-code-button-list {\n display: flex;\n flex-direction: column;\n}\n.kts-invoice-operate-goods-endow-code-button-list > button {\n margin-bottom: 10px;\n}\n";
|
|
24240
|
+
styleInject(css_248z$s);
|
|
23664
24241
|
|
|
23665
24242
|
var TreeNode = ktsComponentsAntdX3.Tree.TreeNode;
|
|
23666
24243
|
var confirm = ktsComponentsAntdX3.Modal.confirm;
|
|
@@ -24861,6 +25438,8 @@ var Invoice = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
24861
25438
|
|
|
24862
25439
|
/** 干系人(数电) */
|
|
24863
25440
|
|
|
25441
|
+
/** 农产品干系人(数电) */
|
|
25442
|
+
|
|
24864
25443
|
/** 落款(数电) */
|
|
24865
25444
|
|
|
24866
25445
|
/** 特殊信息-不动产经营租赁服务(数电) */
|
|
@@ -24896,6 +25475,7 @@ Invoice.Sign = Sign;
|
|
|
24896
25475
|
Invoice.Buyer = Buyer$1;
|
|
24897
25476
|
Invoice.InvoiceHeaderDigtal = InvoiceHeaderDigtal;
|
|
24898
25477
|
Invoice.Stakeholder = Stakeholder$1;
|
|
25478
|
+
Invoice.StakeFarmerholder = StakeFarmerholder;
|
|
24899
25479
|
Invoice.SignDigtal = SignDigtal;
|
|
24900
25480
|
Invoice.RealEstateInfo = RealEstateInfo;
|
|
24901
25481
|
Invoice.GoodsListDigtal = GoodsList$1;
|