kts-component-invoice-operate 3.2.26 → 3.2.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Invoice/InvoiceController/InvoiceControllerState/AutoComplete/index.d.ts +2 -0
- package/dist/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/Drag/index.d.ts +7 -0
- package/dist/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/index.d.ts +3 -0
- package/dist/Invoice/ui/default/GoodsList/hook/useColumns/autoFillFn/index.d.ts +2 -0
- package/dist/Invoice/ui/default/GoodsList/hook/useColumns/ui/Drag/index.d.ts +7 -0
- package/dist/Invoice/ui/default/GoodsList/hook/useColumns/ui/ItemCodeInput/index.d.ts +7 -0
- package/dist/index.esm.js +255 -69
- package/dist/index.js +255 -69
- package/package.json +1 -1
- package/src/Invoice/InvoiceController/InvoiceControllerState/AutoComplete/index.ts +3 -0
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/Drag/index.ts +10 -0
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/index.ts +4 -0
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/autoFillFn/index.ts +16 -1
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/index.tsx +37 -30
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/Drag/index.less +3 -0
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/Drag/index.tsx +49 -0
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/Drag/svg/I001.svg +1 -0
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/ItemCodeInput/index.less +18 -0
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/ItemCodeInput/index.tsx +45 -0
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useMergeDetails/index.tsx +4 -4
- package/src/Invoice/ui/digtal/Stakeholder/index.tsx +4 -11
package/dist/index.js
CHANGED
|
@@ -995,6 +995,14 @@ var ProductComparison = /*#__PURE__*/_createClass(function ProductComparison() {
|
|
|
995
995
|
this.onComply = void 0;
|
|
996
996
|
});
|
|
997
997
|
|
|
998
|
+
/** 商品拖拽数据 */
|
|
999
|
+
var Drag = /*#__PURE__*/_createClass(function Drag() {
|
|
1000
|
+
_classCallCheck(this, Drag);
|
|
1001
|
+
|
|
1002
|
+
this.current = void 0;
|
|
1003
|
+
this.container = void 0;
|
|
1004
|
+
});
|
|
1005
|
+
|
|
998
1006
|
var GoodsListState = /*#__PURE__*/_createClass(function GoodsListState() {
|
|
999
1007
|
_classCallCheck(this, GoodsListState);
|
|
1000
1008
|
|
|
@@ -1029,6 +1037,7 @@ var GoodsListState = /*#__PURE__*/_createClass(function GoodsListState() {
|
|
|
1029
1037
|
this.isMergeDetails = false;
|
|
1030
1038
|
this.isMergeDiscount = false;
|
|
1031
1039
|
this.addComparisonIndex = void 0;
|
|
1040
|
+
this.drag = new Drag();
|
|
1032
1041
|
});
|
|
1033
1042
|
|
|
1034
1043
|
var BuyerState = /*#__PURE__*/_createClass(function BuyerState() {
|
|
@@ -1099,6 +1108,7 @@ var AutoComplete = /*#__PURE__*/_createClass(function AutoComplete() {
|
|
|
1099
1108
|
this.onItemNameSearch = void 0;
|
|
1100
1109
|
this.onBuyerNameSearch = void 0;
|
|
1101
1110
|
this.onBuyerTaxIdSearch = void 0;
|
|
1111
|
+
this.onItemCodeSearch = void 0;
|
|
1102
1112
|
});
|
|
1103
1113
|
|
|
1104
1114
|
var InvoiceControllerState = /*#__PURE__*/_createClass(function InvoiceControllerState() {
|
|
@@ -8970,6 +8980,94 @@ var onChangeItemName = /*#__PURE__*/function () {
|
|
|
8970
8980
|
return _ref16.apply(this, arguments);
|
|
8971
8981
|
};
|
|
8972
8982
|
}();
|
|
8983
|
+
/** 修改了 商品编码 */
|
|
8984
|
+
|
|
8985
|
+
var onChangeItemCode = /*#__PURE__*/function () {
|
|
8986
|
+
var _ref18 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee19(controller, form, record) {
|
|
8987
|
+
return _regeneratorRuntime().wrap(function _callee19$(_context19) {
|
|
8988
|
+
while (1) {
|
|
8989
|
+
switch (_context19.prev = _context19.next) {
|
|
8990
|
+
case 0:
|
|
8991
|
+
controller.run( /*#__PURE__*/function () {
|
|
8992
|
+
var _ref19 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee18(s) {
|
|
8993
|
+
var value;
|
|
8994
|
+
return _regeneratorRuntime().wrap(function _callee18$(_context18) {
|
|
8995
|
+
while (1) {
|
|
8996
|
+
switch (_context18.prev = _context18.next) {
|
|
8997
|
+
case 0:
|
|
8998
|
+
value = form.getFieldsValue().itemCode;
|
|
8999
|
+
|
|
9000
|
+
if (!s.goodsListState.isMyShow) {
|
|
9001
|
+
_context18.next = 10;
|
|
9002
|
+
break;
|
|
9003
|
+
}
|
|
9004
|
+
|
|
9005
|
+
_context18.next = 4;
|
|
9006
|
+
return controller.setEditGood({
|
|
9007
|
+
itemCodeSelf: value
|
|
9008
|
+
});
|
|
9009
|
+
|
|
9010
|
+
case 4:
|
|
9011
|
+
_context18.t0 = record.itemCode;
|
|
9012
|
+
|
|
9013
|
+
if (!_context18.t0) {
|
|
9014
|
+
_context18.next = 8;
|
|
9015
|
+
break;
|
|
9016
|
+
}
|
|
9017
|
+
|
|
9018
|
+
_context18.next = 8;
|
|
9019
|
+
return controller.setEditGood({
|
|
9020
|
+
itemCode: record.itemCode
|
|
9021
|
+
});
|
|
9022
|
+
|
|
9023
|
+
case 8:
|
|
9024
|
+
_context18.next = 16;
|
|
9025
|
+
break;
|
|
9026
|
+
|
|
9027
|
+
case 10:
|
|
9028
|
+
_context18.next = 12;
|
|
9029
|
+
return controller.setEditGood({
|
|
9030
|
+
itemCode: value
|
|
9031
|
+
});
|
|
9032
|
+
|
|
9033
|
+
case 12:
|
|
9034
|
+
_context18.t1 = record.itemCodeSelf;
|
|
9035
|
+
|
|
9036
|
+
if (!_context18.t1) {
|
|
9037
|
+
_context18.next = 16;
|
|
9038
|
+
break;
|
|
9039
|
+
}
|
|
9040
|
+
|
|
9041
|
+
_context18.next = 16;
|
|
9042
|
+
return controller.setEditGood({
|
|
9043
|
+
itemCodeSelf: record.itemCodeSelf
|
|
9044
|
+
});
|
|
9045
|
+
|
|
9046
|
+
case 16:
|
|
9047
|
+
case "end":
|
|
9048
|
+
return _context18.stop();
|
|
9049
|
+
}
|
|
9050
|
+
}
|
|
9051
|
+
}, _callee18);
|
|
9052
|
+
}));
|
|
9053
|
+
|
|
9054
|
+
return function (_x37) {
|
|
9055
|
+
return _ref19.apply(this, arguments);
|
|
9056
|
+
};
|
|
9057
|
+
}());
|
|
9058
|
+
|
|
9059
|
+
case 1:
|
|
9060
|
+
case "end":
|
|
9061
|
+
return _context19.stop();
|
|
9062
|
+
}
|
|
9063
|
+
}
|
|
9064
|
+
}, _callee19);
|
|
9065
|
+
}));
|
|
9066
|
+
|
|
9067
|
+
return function onChangeItemCode(_x34, _x35, _x36) {
|
|
9068
|
+
return _ref18.apply(this, arguments);
|
|
9069
|
+
};
|
|
9070
|
+
}();
|
|
8973
9071
|
|
|
8974
9072
|
/**
|
|
8975
9073
|
* 删除一个货物
|
|
@@ -10502,6 +10600,99 @@ function ItemNameInput(props) {
|
|
|
10502
10600
|
// return format15(evaluate(`${record.priceIncludeTax} / (1+${s.taxRate}/100)`), calculatingDigits);
|
|
10503
10601
|
// };
|
|
10504
10602
|
|
|
10603
|
+
var css_248z$7 = ".kts-invoice-operate-goods-list-itemCode-input {\n display: flex;\n flex: 1;\n padding-left: 10px;\n height: 31px;\n}\n.kts-invoice-operate-goods-list-itemCode-input .ktsAntX-select {\n width: 100%;\n}\n.kts-invoice-operate-goods-list-itemCode-input .ktsAntX-select .ktsAntX-select-selector {\n height: 100%;\n}\n.has-error .kts-invoice-operate-goods-list-itemCode-input {\n border: 1px solid #f5222d;\n}\n";
|
|
10604
|
+
styleInject(css_248z$7);
|
|
10605
|
+
|
|
10606
|
+
function ItemCodeInput(props) {
|
|
10607
|
+
var controller = Invoice.useInvoiceController();
|
|
10608
|
+
var autoComplete = controller.useMemo(function (s) {
|
|
10609
|
+
return s.autoComplete;
|
|
10610
|
+
}, []);
|
|
10611
|
+
|
|
10612
|
+
var _React$useState = React__default['default'].useState([]),
|
|
10613
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
10614
|
+
options = _React$useState2[0],
|
|
10615
|
+
setOptions = _React$useState2[1];
|
|
10616
|
+
|
|
10617
|
+
var onChange = React__default['default'].useCallback(function (e) {
|
|
10618
|
+
var event = _objectSpread2({}, e);
|
|
10619
|
+
|
|
10620
|
+
props.onChange && props.onChange(event);
|
|
10621
|
+
}, []);
|
|
10622
|
+
var onSearch = React__default['default'].useCallback( /*#__PURE__*/function () {
|
|
10623
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(searchText) {
|
|
10624
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
10625
|
+
while (1) {
|
|
10626
|
+
switch (_context.prev = _context.next) {
|
|
10627
|
+
case 0:
|
|
10628
|
+
_context.prev = 0;
|
|
10629
|
+
|
|
10630
|
+
if (!autoComplete.onItemCodeSearch) {
|
|
10631
|
+
_context.next = 7;
|
|
10632
|
+
break;
|
|
10633
|
+
}
|
|
10634
|
+
|
|
10635
|
+
_context.t0 = setOptions;
|
|
10636
|
+
_context.next = 5;
|
|
10637
|
+
return autoComplete.onItemCodeSearch(searchText);
|
|
10638
|
+
|
|
10639
|
+
case 5:
|
|
10640
|
+
_context.t1 = _context.sent;
|
|
10641
|
+
(0, _context.t0)(_context.t1);
|
|
10642
|
+
|
|
10643
|
+
case 7:
|
|
10644
|
+
_context.next = 13;
|
|
10645
|
+
break;
|
|
10646
|
+
|
|
10647
|
+
case 9:
|
|
10648
|
+
_context.prev = 9;
|
|
10649
|
+
_context.t2 = _context["catch"](0);
|
|
10650
|
+
setOptions([]);
|
|
10651
|
+
throw _context.t2;
|
|
10652
|
+
|
|
10653
|
+
case 13:
|
|
10654
|
+
case "end":
|
|
10655
|
+
return _context.stop();
|
|
10656
|
+
}
|
|
10657
|
+
}
|
|
10658
|
+
}, _callee, null, [[0, 9]]);
|
|
10659
|
+
}));
|
|
10660
|
+
|
|
10661
|
+
return function (_x) {
|
|
10662
|
+
return _ref.apply(this, arguments);
|
|
10663
|
+
};
|
|
10664
|
+
}(), [autoComplete.onItemCodeSearch]);
|
|
10665
|
+
var onChangeAutoComplete = React__default['default'].useCallback(function (itemName) {
|
|
10666
|
+
var record = options.filter(function (e) {
|
|
10667
|
+
return e.itemCode === itemName;
|
|
10668
|
+
})[0];
|
|
10669
|
+
if (!record) return;
|
|
10670
|
+
}, [options, controller]);
|
|
10671
|
+
return React__default['default'].createElement("div", {
|
|
10672
|
+
className: 'kts-invoice-operate-goods-list-itemCode-input'
|
|
10673
|
+
}, props.shorthand && React__default['default'].createElement("span", {
|
|
10674
|
+
style: {
|
|
10675
|
+
alignSelf: 'center',
|
|
10676
|
+
fontSize: 12
|
|
10677
|
+
}
|
|
10678
|
+
}, "*", props.shorthand, "*"), React__default['default'].createElement(ktsXui.AutoComplete, {
|
|
10679
|
+
onSearch: onSearch,
|
|
10680
|
+
options: options.map(function (e) {
|
|
10681
|
+
return {
|
|
10682
|
+
value: e.itemCode
|
|
10683
|
+
};
|
|
10684
|
+
}),
|
|
10685
|
+
onChange: onChangeAutoComplete
|
|
10686
|
+
}, React__default['default'].createElement(ktsComponentsAntdX3.Input, {
|
|
10687
|
+
style: {
|
|
10688
|
+
height: '100%',
|
|
10689
|
+
border: 'none'
|
|
10690
|
+
},
|
|
10691
|
+
value: props.value,
|
|
10692
|
+
onChange: onChange
|
|
10693
|
+
})));
|
|
10694
|
+
}
|
|
10695
|
+
|
|
10505
10696
|
/** 拆分全称加简称 */
|
|
10506
10697
|
var getSN = function getSN(value) {
|
|
10507
10698
|
if (!value) return undefined;
|
|
@@ -10636,7 +10827,14 @@ var useColumns = (function (form) {
|
|
|
10636
10827
|
var columns = React__default['default'].useMemo(function () {
|
|
10637
10828
|
var _columnsReplenish$ite, _columnsReplenish$uni, _columnsReplenish$qua, _columnsReplenish$pri, _columnsReplenish$pri2, _columnsReplenish$tax;
|
|
10638
10829
|
|
|
10639
|
-
return [{
|
|
10830
|
+
return [// {
|
|
10831
|
+
// title: ' ',
|
|
10832
|
+
// key: 'drag',
|
|
10833
|
+
// width: 40,
|
|
10834
|
+
// align: 'center',
|
|
10835
|
+
// render: (_: any, record: IGood) => <Drag record={record} />
|
|
10836
|
+
// },
|
|
10837
|
+
{
|
|
10640
10838
|
title: '序号',
|
|
10641
10839
|
key: 'serialNo',
|
|
10642
10840
|
dataIndex: 'serialNo',
|
|
@@ -10648,6 +10846,24 @@ var useColumns = (function (form) {
|
|
|
10648
10846
|
}
|
|
10649
10847
|
}, e);
|
|
10650
10848
|
}
|
|
10849
|
+
}, {
|
|
10850
|
+
title: '商品编码',
|
|
10851
|
+
key: 'itemCode',
|
|
10852
|
+
width: 119,
|
|
10853
|
+
render: function render(_, record) {
|
|
10854
|
+
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
10855
|
+
return React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, null, getFieldDecorator('itemCode', {
|
|
10856
|
+
initialValue: editGood.itemCode
|
|
10857
|
+
})(React__default['default'].createElement(ItemCodeInput, {
|
|
10858
|
+
shorthand: editGood.shorthand,
|
|
10859
|
+
onChange: function onChange() {
|
|
10860
|
+
onChangeItemCode(controller, form, record);
|
|
10861
|
+
}
|
|
10862
|
+
})));
|
|
10863
|
+
} else {
|
|
10864
|
+
return record.itemCode;
|
|
10865
|
+
}
|
|
10866
|
+
}
|
|
10651
10867
|
}, {
|
|
10652
10868
|
title: React__default['default'].createElement(TitleText, {
|
|
10653
10869
|
required: true
|
|
@@ -10749,19 +10965,6 @@ var useColumns = (function (form) {
|
|
|
10749
10965
|
});
|
|
10750
10966
|
}
|
|
10751
10967
|
}
|
|
10752
|
-
}, {
|
|
10753
|
-
title: '商品编码',
|
|
10754
|
-
key: 'itemCode',
|
|
10755
|
-
width: 119,
|
|
10756
|
-
render: function render(_, record) {
|
|
10757
|
-
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
10758
|
-
return React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, null, getFieldDecorator('itemCode', {
|
|
10759
|
-
initialValue: editGood.itemCode
|
|
10760
|
-
})(React__default['default'].createElement(MyInput, null)));
|
|
10761
|
-
} else {
|
|
10762
|
-
return record.itemCode;
|
|
10763
|
-
}
|
|
10764
|
-
}
|
|
10765
10968
|
}, {
|
|
10766
10969
|
title: React__default['default'].createElement(TitleText, {
|
|
10767
10970
|
rules: (_columnsReplenish$ite = columnsReplenish['itemModelName']) === null || _columnsReplenish$ite === void 0 ? void 0 : _columnsReplenish$ite.rules
|
|
@@ -11369,12 +11572,7 @@ var useColumns = (function (form) {
|
|
|
11369
11572
|
ellipsis: true
|
|
11370
11573
|
});
|
|
11371
11574
|
});
|
|
11372
|
-
}, [isTaxIncluded, editGood, controller, changeField, deduction, isMyShow, searchValue, model, columnsReplenish, columnshide]);
|
|
11373
|
-
// clearTimeout(t)
|
|
11374
|
-
// const t = setTimeout(() => { setChangeField('') }, 1000);
|
|
11375
|
-
// return () => { clearTimeout(t) }
|
|
11376
|
-
// }, [changeField]);
|
|
11377
|
-
|
|
11575
|
+
}, [isTaxIncluded, editGood, controller, changeField, deduction, isMyShow, searchValue, model, columnsReplenish, columnshide]);
|
|
11378
11576
|
return columns;
|
|
11379
11577
|
});
|
|
11380
11578
|
/** 字段 */
|
|
@@ -12026,8 +12224,8 @@ var useRowSelection = (function () {
|
|
|
12026
12224
|
};
|
|
12027
12225
|
});
|
|
12028
12226
|
|
|
12029
|
-
var css_248z$
|
|
12030
|
-
styleInject(css_248z$
|
|
12227
|
+
var css_248z$8 = ".kts-invoice-operate-goods-list .kts-invoice-operate-goods-list-table-tax-rate .ktsAnt3x-select-selection-selected-value {\n float: right;\n}\n.kts-invoice-operate-goods-list .kts-invoice-operate-goods-list-able {\n display: flex;\n padding: 10px;\n border-bottom: 1px solid #dcdcdc;\n}\n.kts-invoice-operate-goods-list .kts-invoice-operate-goods-list-able-list {\n flex: 1;\n display: flex;\n gap: 10px;\n padding-right: 10px;\n}\n.kts-invoice-operate-goods-list .kts-invoice-operate-goods-list-able-list button {\n padding-left: 10px;\n padding-right: 10px;\n border-radius: 12px;\n color: #0074ff;\n border: 1px solid #0074ff;\n height: 24px;\n line-height: 22px;\n cursor: pointer;\n font-size: 12px;\n}\n.kts-invoice-operate-goods-list .kts-invoice-operate-goods-list-able-list button[disabled] {\n color: rgba(0, 0, 0, 0.25);\n border: 1px solid;\n}\n.kts-invoice-operate-goods-list .kts-invoice-operate-goods-list-able-extend {\n flex: none;\n display: flex;\n gap: 5px;\n}\n.kts-invoice-operate-goods-list .ktsAntX-table .ktsAntX-table-row.kts-invoice-operate-goods-be-discount .ktsAntX-table-cell,\n.kts-invoice-operate-goods-list .ktsAntX-table .ktsAntX-table-row.kts-invoice-operate-goods-discount .ktsAntX-table-cell {\n background: #f5f5f5;\n}\n.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-search-protrude {\n background: #ff0;\n color: #000;\n font-weight: bold;\n}\n.kts-invoice-operate-goods-table-virtual .ktsAntX-table .ktsAntX-table-tbody .ktsAnt3x-form-item {\n margin: 0;\n}\n.kts-invoice-operate-goods-table-virtual .ktsAntX-table .ktsAntX-table-tbody .ktsAnt3x-form-item-control {\n line-height: 1;\n}\n.kts-invoice-operate-goods-table-virtual .ktsAntX-table .ktsAntX-table-tbody .ktsAnt3x-input:focus {\n box-shadow: none;\n}\n.kts-invoice-operate-goods-table-virtual .ktsAntX-table .ktsAntX-table-tbody .ktsAnt3x-input,\n.kts-invoice-operate-goods-table-virtual .ktsAntX-table .ktsAntX-table-tbody .ktsAnt3x-select-selection--single {\n border: none;\n border-radius: 0;\n}\n.kts-invoice-operate-goods-table-virtual .ktsAntX-table .ktsAntX-table-tbody .ktsAnt3x-form-explain {\n display: none;\n}\n.kts-invoice-operate-goods-table-virtual .ktsAntX-table .ktsAntX-table-tbody .has-error .ktsAnt3x-input {\n border: #f5222d solid 1px;\n}\n.kts-invoice-operate-goods-table-virtual .ktsAntX-table .ktsAntX-table-tbody .ktsAntX-checkbox-wrapper .ktsAntX-checkbox-checked .ktsAntX-checkbox-inner::after {\n width: 5px;\n height: 10px;\n}\n";
|
|
12228
|
+
styleInject(css_248z$8);
|
|
12031
12229
|
|
|
12032
12230
|
var keys$1 = {};
|
|
12033
12231
|
/**
|
|
@@ -12258,8 +12456,8 @@ var lazyFn$1 = (function (fn) {
|
|
|
12258
12456
|
};
|
|
12259
12457
|
});
|
|
12260
12458
|
|
|
12261
|
-
var css_248z$
|
|
12262
|
-
styleInject(css_248z$
|
|
12459
|
+
var css_248z$9 = ".kts-invoice-operate-goods-list-add-discount-row .ktsAnt3x-drawer-wrapper-body {\n display: flex;\n flex-direction: column;\n}\n.kts-invoice-operate-goods-list-add-discount-row .ktsAnt3x-drawer-wrapper-body .ktsAnt3x-drawer-body {\n flex: 1;\n display: flex;\n flex-direction: column;\n}\n.kts-invoice-operate-goods-list-add-discount-row .ktsAnt3x-drawer-wrapper-body .ktsAnt3x-drawer-body .add-discount-row-body {\n flex: 1;\n overflow: auto;\n}\n.kts-invoice-operate-goods-list-add-discount-row .ktsAnt3x-drawer-wrapper-body .ktsAnt3x-drawer-body .add-discount-row-footer {\n flex: none;\n}\n";
|
|
12460
|
+
styleInject(css_248z$9);
|
|
12263
12461
|
|
|
12264
12462
|
var Text$3 = ktsComponentsAntdX3.Typography.Text;
|
|
12265
12463
|
|
|
@@ -12641,8 +12839,8 @@ var DrawerBody = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(funct
|
|
|
12641
12839
|
|
|
12642
12840
|
function useMergeDetails() {
|
|
12643
12841
|
var controller = Invoice.useInvoiceController();
|
|
12644
|
-
var
|
|
12645
|
-
return s.goodsListState.
|
|
12842
|
+
var selectedGoodIndex = controller.useMemo(function (s) {
|
|
12843
|
+
return s.goodsListState.selectedGoodIndex;
|
|
12646
12844
|
}, []);
|
|
12647
12845
|
var isMergeDetails = controller.useMemo(function (s) {
|
|
12648
12846
|
return s.goodsListState.isMergeDetails;
|
|
@@ -12674,9 +12872,9 @@ function useMergeDetails() {
|
|
|
12674
12872
|
if (!isMergeDetails) return React__default['default'].createElement(React__default['default'].Fragment, null);
|
|
12675
12873
|
return React__default['default'].createElement(ktsComponentsAntdX3.Button, {
|
|
12676
12874
|
onClick: onClick,
|
|
12677
|
-
disabled:
|
|
12875
|
+
disabled: selectedGoodIndex.length <= 1
|
|
12678
12876
|
}, "\u5408\u5E76\u660E\u7EC6");
|
|
12679
|
-
}, [
|
|
12877
|
+
}, [selectedGoodIndex.length]);
|
|
12680
12878
|
return {
|
|
12681
12879
|
/** 按钮 */
|
|
12682
12880
|
button: button
|
|
@@ -12980,8 +13178,8 @@ var Main = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(function (p
|
|
|
12980
13178
|
})), React__default['default'].createElement("div", null, React__default['default'].createElement(Statistics, null)));
|
|
12981
13179
|
});
|
|
12982
13180
|
|
|
12983
|
-
var css_248z$
|
|
12984
|
-
styleInject(css_248z$
|
|
13181
|
+
var css_248z$a = ".kts-invoice-operate-seller {\n display: flex;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message {\n flex: 1;\n display: flex;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message .ktsAnt3x-descriptions-item-label {\n width: 179px;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message .kts-invoice-operate-seller-message-list {\n width: 100%;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message .kts-invoice-operate-seller-message-list .ktsAnt3x-descriptions-view {\n border: none;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message .kts-invoice-operate-seller-message-list .ktsAnt3x-descriptions-item-label {\n padding: 0 10px;\n font-size: 12px;\n background-color: #fff;\n line-height: 30px;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message .kts-invoice-operate-seller-message-list .ktsAnt3x-descriptions-item-label::before {\n content: '*';\n position: relative;\n color: red;\n font-weight: bold;\n margin-right: 2px;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message .kts-invoice-operate-seller-message-list .ktsAnt3x-descriptions-item-content {\n padding: 0;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message .kts-invoice-operate-seller-message-list .ktsAnt3x-descriptions-item-content .ktsAnt3x-input {\n box-shadow: none;\n border-color: #fff;\n border-radius: 0;\n padding: 0 10px;\n font-size: 12px;\n line-height: 30px;\n width: 100%;\n height: 30px;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message .kts-invoice-operate-seller-message-list .ktsAnt3x-descriptions-item-content .ktsAnt3x-input:hover {\n border: 1 solid;\n border-color: #40a9ff;\n border-right-width: 1px !important;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message .kts-invoice-operate-seller-message-list .ktsAnt3x-descriptions-item-content .has-error .ktsAnt3x-input,\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message .kts-invoice-operate-seller-message-list .ktsAnt3x-descriptions-item-content .has-error .ktsAnt3x-input:hover {\n background-color: #fff;\n border: 1 solid;\n border-color: #f5222d;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message .kts-invoice-operate-seller-message-list .ktsAnt3x-form-item {\n margin: 0;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message .kts-invoice-operate-seller-message-list .ktsAnt3x-form-item-control {\n line-height: 0;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message .kts-invoice-operate-seller-message-list .ktsAnt3x-form-explain {\n position: absolute;\n right: 5px;\n top: 6px;\n z-index: 10;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-remarks {\n border-left: 1px solid #dcdcdc;\n display: flex;\n flex: none;\n width: 458px;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-remarks-value {\n flex: 1;\n display: flex;\n flex-direction: column;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-remarks-value textarea {\n flex: 1;\n margin-bottom: 0;\n border: none;\n border-radius: 0;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-title {\n flex: none;\n width: 30px;\n height: 100%;\n text-align: center;\n border-right: 1px solid #dcdcdc;\n display: table;\n padding: 0 5px;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-title label {\n display: table-cell;\n vertical-align: middle;\n}\n";
|
|
13182
|
+
styleInject(css_248z$a);
|
|
12985
13183
|
|
|
12986
13184
|
var TextArea = ktsComponentsAntdX3.Input.TextArea;
|
|
12987
13185
|
|
|
@@ -13399,8 +13597,8 @@ function interval(i, t) {
|
|
|
13399
13597
|
}
|
|
13400
13598
|
}
|
|
13401
13599
|
|
|
13402
|
-
var css_248z$
|
|
13403
|
-
styleInject(css_248z$
|
|
13600
|
+
var css_248z$b = ".kts-invoice-operate-buyer {\n display: flex;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message {\n flex: 1;\n display: flex;\n position: relative;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .ktsAnt3x-descriptions-item-label {\n width: 179px;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list {\n width: 100%;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-descriptions-view {\n border: none;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-descriptions-item-label {\n padding: 0 10px;\n font-size: 12px;\n background-color: #fff;\n line-height: 30px;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-descriptions-item-content {\n padding: 0;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-descriptions-item-content .ktsAnt3x-input {\n box-shadow: none;\n border-color: #fff;\n border-radius: 0;\n padding: 0 10px;\n font-size: 12px;\n line-height: 30px;\n width: 100%;\n height: 100%;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-descriptions-item-content .ktsAnt3x-input:hover {\n border: 1 solid;\n border-color: #40a9ff;\n border-right-width: 1px !important;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-descriptions-item-content .has-error .ktsAnt3x-input,\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-descriptions-item-content .has-error .ktsAnt3x-input:hover {\n background-color: #fff;\n border: 1 solid;\n border-color: #f5222d;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-form-item {\n margin: 0;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-form-item-control {\n line-height: 0;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-form-item-children {\n height: 30px;\n display: block;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-form-item-children .ktsAnt3x-btn {\n line-height: 0;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-form-explain {\n position: absolute;\n left: 5px;\n top: 6px;\n z-index: 10;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-Import {\n position: absolute;\n right: 0px;\n top: 0px;\n z-index: 10;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-password {\n border-left: 1px solid #dcdcdc;\n display: flex;\n flex: none;\n width: 458px;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-title {\n flex: none;\n width: 30px;\n height: 100%;\n text-align: center;\n border-right: 1px solid #dcdcdc;\n display: table;\n padding: 0 5px;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-title label {\n display: table-cell;\n vertical-align: middle;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover {\n padding-top: 0;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .ktsAnt3x-popover-inner-content {\n padding: 6px 0;\n display: flex;\n flex-direction: column;\n overflow-y: auto;\n overflow-x: hidden;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .ktsAnt3x-popover-arrow {\n display: none;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content {\n width: 567px;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content .kts-invoice-operate-buyer-name-content-block {\n padding: 14px 0;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content .kts-invoice-operate-buyer-name-content-block label {\n display: block;\n font-size: 12px;\n color: #666666;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content .kts-invoice-operate-buyer-name-content-recently-issued {\n padding: 0;\n margin: 0;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content .kts-invoice-operate-buyer-name-content-recently-issued li {\n list-style: none;\n width: 50%;\n float: left;\n margin-bottom: 20px;\n padding: 0 10px;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content .kts-invoice-operate-buyer-name-content-recently-issued::after {\n content: \".\";\n display: block;\n height: 0;\n clear: left;\n visibility: hidden;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content .kts-invoice-operate-buyer-name-content-select-company {\n padding: 0;\n margin: 0;\n font-size: 12px;\n padding: 10px;\n font-weight: bold;\n color: #000000;\n cursor: pointer;\n transition: background 0.4s;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content .kts-invoice-operate-buyer-name-content-select-company:hover {\n background: #e6e6e6e6;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content .kts-invoice-operate-buyer-name-content-select-company:last-child {\n margin-bottom: 0;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content .kts-invoice-operate-buyer-name-content-select-company li {\n list-style: none;\n width: 50%;\n float: left;\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n padding-right: 10px;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content .kts-invoice-operate-buyer-name-content-select-company::after {\n content: \".\";\n display: block;\n height: 0;\n clear: left;\n visibility: hidden;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content-tag {\n line-height: 1;\n padding: 4px 12px;\n background: #F3F3F3;\n border-radius: 9999px;\n font-size: 12px;\n font-weight: bold;\n color: #000;\n cursor: pointer;\n transition: background 0.4s;\n display: inline-block;\n max-width: 100%;\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content-tag:hover {\n background: #e6e6e6e6;\n}\n";
|
|
13601
|
+
styleInject(css_248z$b);
|
|
13404
13602
|
|
|
13405
13603
|
var Text$4 = ktsComponentsAntdX3.Typography.Text;
|
|
13406
13604
|
|
|
@@ -13551,8 +13749,8 @@ var Main$2 = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(function
|
|
|
13551
13749
|
}, React__default['default'].createElement("label", null, "\u5BC6\u7801\u533A")), React__default['default'].createElement("div", null))));
|
|
13552
13750
|
});
|
|
13553
13751
|
|
|
13554
|
-
var css_248z$
|
|
13555
|
-
styleInject(css_248z$
|
|
13752
|
+
var css_248z$c = ".kts-invoice-operate-sign form {\n display: flex;\n}\n.kts-invoice-operate-sign form .ktsAnt3x-row.ktsAnt3x-form-item {\n margin: 0;\n}\n.kts-invoice-operate-sign form > div {\n flex: 1;\n text-align: center;\n}\n";
|
|
13753
|
+
styleInject(css_248z$c);
|
|
13556
13754
|
|
|
13557
13755
|
var Sign = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(function (props) {
|
|
13558
13756
|
var form = props.form;
|
|
@@ -13600,8 +13798,8 @@ var formItemLayout = {
|
|
|
13600
13798
|
}
|
|
13601
13799
|
};
|
|
13602
13800
|
|
|
13603
|
-
var css_248z$
|
|
13604
|
-
styleInject(css_248z$
|
|
13801
|
+
var css_248z$d = ".kts-invoice-operate-invoice-digtal-header {\n height: 121px;\n text-align: center;\n position: relative;\n}\n.kts-invoice-operate-invoice-digtal-header .digtal-header-title {\n font-size: 28px;\n color: #9F603D;\n width: 100%;\n position: absolute;\n top: 21px;\n font-weight: 400;\n}\n.kts-invoice-operate-invoice-digtal-header .digtal-header-title::after,\n.kts-invoice-operate-invoice-digtal-header .digtal-header-title::before {\n content: \"\";\n position: absolute;\n width: 330px;\n border-bottom: 2px solid #9F613E;\n left: 50%;\n bottom: -4px;\n transform: translateX(-50%);\n}\n.kts-invoice-operate-invoice-digtal-header .digtal-header-title::after {\n bottom: -8px;\n}\n.kts-invoice-operate-invoice-digtal-header .digtal-header-tag {\n position: absolute;\n top: 47px;\n left: 157px;\n padding: 2px 8px;\n border-radius: 4px;\n border: 1px solid #0074FF;\n color: #0074FF;\n background: rgba(0, 116, 255, 0.2);\n}\n.kts-invoice-operate-invoice-digtal-header .digtal-header-fields {\n display: flex;\n flex-direction: column;\n position: absolute;\n right: 40px;\n top: 23px;\n}\n.kts-invoice-operate-invoice-digtal-header .digtal-header-fields .digtal-header-field {\n display: flex;\n font-weight: bold;\n}\n.kts-invoice-operate-invoice-digtal-header .digtal-header-fields .digtal-header-field .digtal-header-field-title {\n color: #9F613E;\n}\n";
|
|
13802
|
+
styleInject(css_248z$d);
|
|
13605
13803
|
|
|
13606
13804
|
var InvoiceHeaderDigtal = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(function (props) {
|
|
13607
13805
|
var form = props.form;
|
|
@@ -14821,23 +15019,11 @@ function SvgPlus(props) {
|
|
|
14821
15019
|
})))));
|
|
14822
15020
|
}
|
|
14823
15021
|
|
|
14824
|
-
var css_248z$
|
|
14825
|
-
styleInject(css_248z$
|
|
15022
|
+
var css_248z$e = ".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: 20px 10px;\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}\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-wrapper {\n flex: 1;\n}\n";
|
|
15023
|
+
styleInject(css_248z$e);
|
|
14826
15024
|
|
|
14827
15025
|
var RULES = {
|
|
14828
|
-
|
|
14829
|
-
return [{
|
|
14830
|
-
required: true,
|
|
14831
|
-
message: "".concat(label, "\u5FC5\u586B")
|
|
14832
|
-
}, {
|
|
14833
|
-
max: 300,
|
|
14834
|
-
message: "".concat(label, "\u5185\u5BB9\u8D85\u957F")
|
|
14835
|
-
}, {
|
|
14836
|
-
pattern: /^([A-Za-z()\u4e00-\u9fa5])*$/g,
|
|
14837
|
-
message: "".concat(label, "\u4EC5\u80FD\u4E2D\u6587\u3001\u82F1\u6587\u3001\u62EC\u53F7")
|
|
14838
|
-
}];
|
|
14839
|
-
},
|
|
14840
|
-
companyNameByNormal: function companyNameByNormal(label) {
|
|
15026
|
+
companyName: function companyName(label) {
|
|
14841
15027
|
return [{
|
|
14842
15028
|
required: true,
|
|
14843
15029
|
message: "".concat(label, "\u5FC5\u586B")
|
|
@@ -14964,7 +15150,7 @@ var Stakeholder$1 = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(fu
|
|
|
14964
15150
|
label: "\u540D\u79F0",
|
|
14965
15151
|
colon: false
|
|
14966
15152
|
}, getFieldDecorator('buyerName', {
|
|
14967
|
-
rules: getRules('buyerName',
|
|
15153
|
+
rules: getRules('buyerName', RULES.companyName('购买方名称'))
|
|
14968
15154
|
})(React__default['default'].createElement(BuyerNameInput$1, {
|
|
14969
15155
|
myform: form,
|
|
14970
15156
|
fieldName: 'buyerName',
|
|
@@ -15072,7 +15258,7 @@ var Stakeholder$1 = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(fu
|
|
|
15072
15258
|
label: "\u540D\u79F0",
|
|
15073
15259
|
colon: false
|
|
15074
15260
|
}, getFieldDecorator('supplierName', {
|
|
15075
|
-
rules: getRules('supplierName', RULES.
|
|
15261
|
+
rules: getRules('supplierName', RULES.companyName('销售方名称')),
|
|
15076
15262
|
getValueFromEvent: formatCompanyName
|
|
15077
15263
|
})(React__default['default'].createElement(MyInput$1, {
|
|
15078
15264
|
readOnly: isReadOnly('supplierName'),
|
|
@@ -15296,8 +15482,8 @@ Discontinue.start = function () {
|
|
|
15296
15482
|
});
|
|
15297
15483
|
};
|
|
15298
15484
|
|
|
15299
|
-
var css_248z$
|
|
15300
|
-
styleInject(css_248z$
|
|
15485
|
+
var css_248z$f = ".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";
|
|
15486
|
+
styleInject(css_248z$f);
|
|
15301
15487
|
|
|
15302
15488
|
var SignDigtal = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(function (props) {
|
|
15303
15489
|
var form = props.form;
|
|
@@ -15383,8 +15569,8 @@ var MyDiv$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
15383
15569
|
return MyDiv;
|
|
15384
15570
|
}(React__default['default'].Component);
|
|
15385
15571
|
|
|
15386
|
-
var css_248z$
|
|
15387
|
-
styleInject(css_248z$
|
|
15572
|
+
var css_248z$g = ".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";
|
|
15573
|
+
styleInject(css_248z$g);
|
|
15388
15574
|
|
|
15389
15575
|
function TableVirtual$1 (props) {
|
|
15390
15576
|
var _props$dataSource2;
|
|
@@ -15516,8 +15702,8 @@ function SvgFork(props) {
|
|
|
15516
15702
|
})))));
|
|
15517
15703
|
}
|
|
15518
15704
|
|
|
15519
|
-
var css_248z$
|
|
15520
|
-
styleInject(css_248z$
|
|
15705
|
+
var css_248z$h = ".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";
|
|
15706
|
+
styleInject(css_248z$h);
|
|
15521
15707
|
|
|
15522
15708
|
var nzhcn$1 = require('nzh').cn;
|
|
15523
15709
|
|
|
@@ -15882,8 +16068,8 @@ function SvgMagnifier$1(props) {
|
|
|
15882
16068
|
})));
|
|
15883
16069
|
}
|
|
15884
16070
|
|
|
15885
|
-
var css_248z$
|
|
15886
|
-
styleInject(css_248z$
|
|
16071
|
+
var css_248z$i = ".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";
|
|
16072
|
+
styleInject(css_248z$i);
|
|
15887
16073
|
|
|
15888
16074
|
function Search$1() {
|
|
15889
16075
|
var controller = Invoice.useInvoiceController();
|
|
@@ -16033,8 +16219,8 @@ var TitleText$1 = (function (props) {
|
|
|
16033
16219
|
}, "*") : React__default['default'].createElement(React__default['default'].Fragment, null), children);
|
|
16034
16220
|
});
|
|
16035
16221
|
|
|
16036
|
-
var css_248z$
|
|
16037
|
-
styleInject(css_248z$
|
|
16222
|
+
var css_248z$j = ".kts-invoice-operate-goods-list-itemName-input {\n display: flex;\n flex: 1;\n padding-left: 0;\n height: 31px;\n}\n.has-error .kts-invoice-operate-goods-list-itemName-input {\n border: 1px solid #f5222d;\n}\n";
|
|
16223
|
+
styleInject(css_248z$j);
|
|
16038
16224
|
|
|
16039
16225
|
function ItemNameInput$1(props) {
|
|
16040
16226
|
var controller = Invoice.useInvoiceController();
|
|
@@ -19470,8 +19656,8 @@ var useEmptyRefill = (function () {
|
|
|
19470
19656
|
};
|
|
19471
19657
|
});
|
|
19472
19658
|
|
|
19473
|
-
var css_248z$
|
|
19474
|
-
styleInject(css_248z$
|
|
19659
|
+
var css_248z$k = ".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";
|
|
19660
|
+
styleInject(css_248z$k);
|
|
19475
19661
|
|
|
19476
19662
|
function InvoiceTypeModal(props) {
|
|
19477
19663
|
var _props$disableds = props.disableds,
|
|
@@ -19643,8 +19829,8 @@ var useReselectInvoiceType = (function () {
|
|
|
19643
19829
|
};
|
|
19644
19830
|
});
|
|
19645
19831
|
|
|
19646
|
-
var css_248z$
|
|
19647
|
-
styleInject(css_248z$
|
|
19832
|
+
var css_248z$l = ".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";
|
|
19833
|
+
styleInject(css_248z$l);
|
|
19648
19834
|
|
|
19649
19835
|
var GoodsList$1 = /*#__PURE__*/function (_React$Component) {
|
|
19650
19836
|
_inherits(GoodsList, _React$Component);
|
|
@@ -20254,8 +20440,8 @@ var getItemNameOther = function getItemNameOther(record, editGood) {
|
|
|
20254
20440
|
return record.itemName;
|
|
20255
20441
|
};
|
|
20256
20442
|
|
|
20257
|
-
var css_248z$
|
|
20258
|
-
styleInject(css_248z$
|
|
20443
|
+
var css_248z$m = ".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";
|
|
20444
|
+
styleInject(css_248z$m);
|
|
20259
20445
|
|
|
20260
20446
|
var TreeNode = ktsComponentsAntdX3.Tree.TreeNode;
|
|
20261
20447
|
var confirm = ktsComponentsAntdX3.Modal.confirm;
|
package/package.json
CHANGED
|
@@ -5,6 +5,7 @@ import ProductComparison from './ProductComparison';
|
|
|
5
5
|
import { WrappedFormUtils } from 'kts-components-antd-x3/lib/form/Form';
|
|
6
6
|
import InvoiceController from '../..';
|
|
7
7
|
import IColumnsReplenish from './IColumnsReplenish';
|
|
8
|
+
import Drag from './Drag';
|
|
8
9
|
|
|
9
10
|
export default class GoodsListState {
|
|
10
11
|
|
|
@@ -100,4 +101,7 @@ export default class GoodsListState {
|
|
|
100
101
|
|
|
101
102
|
/** 正在 添加商品对照 的货物 */
|
|
102
103
|
addComparisonIndex?: string;
|
|
104
|
+
|
|
105
|
+
/** 商品拖拽数据 */
|
|
106
|
+
drag = new Drag()
|
|
103
107
|
}
|