kts-component-invoice-operate 3.2.27 → 3.2.29
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 +365 -105
- package/dist/index.js +365 -105
- 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 +46 -0
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/ItemNameInput/index.tsx +5 -2
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useMergeDetails/index.tsx +4 -4
package/dist/index.esm.js
CHANGED
|
@@ -985,6 +985,14 @@ var ProductComparison = /*#__PURE__*/_createClass(function ProductComparison() {
|
|
|
985
985
|
this.onComply = void 0;
|
|
986
986
|
});
|
|
987
987
|
|
|
988
|
+
/** 商品拖拽数据 */
|
|
989
|
+
var Drag = /*#__PURE__*/_createClass(function Drag() {
|
|
990
|
+
_classCallCheck(this, Drag);
|
|
991
|
+
|
|
992
|
+
this.current = void 0;
|
|
993
|
+
this.container = void 0;
|
|
994
|
+
});
|
|
995
|
+
|
|
988
996
|
var GoodsListState = /*#__PURE__*/_createClass(function GoodsListState() {
|
|
989
997
|
_classCallCheck(this, GoodsListState);
|
|
990
998
|
|
|
@@ -1019,6 +1027,7 @@ var GoodsListState = /*#__PURE__*/_createClass(function GoodsListState() {
|
|
|
1019
1027
|
this.isMergeDetails = false;
|
|
1020
1028
|
this.isMergeDiscount = false;
|
|
1021
1029
|
this.addComparisonIndex = void 0;
|
|
1030
|
+
this.drag = new Drag();
|
|
1022
1031
|
});
|
|
1023
1032
|
|
|
1024
1033
|
var BuyerState = /*#__PURE__*/_createClass(function BuyerState() {
|
|
@@ -1089,6 +1098,7 @@ var AutoComplete = /*#__PURE__*/_createClass(function AutoComplete() {
|
|
|
1089
1098
|
this.onItemNameSearch = void 0;
|
|
1090
1099
|
this.onBuyerNameSearch = void 0;
|
|
1091
1100
|
this.onBuyerTaxIdSearch = void 0;
|
|
1101
|
+
this.onItemCodeSearch = void 0;
|
|
1092
1102
|
});
|
|
1093
1103
|
|
|
1094
1104
|
var InvoiceControllerState = /*#__PURE__*/_createClass(function InvoiceControllerState() {
|
|
@@ -8960,6 +8970,94 @@ var onChangeItemName = /*#__PURE__*/function () {
|
|
|
8960
8970
|
return _ref16.apply(this, arguments);
|
|
8961
8971
|
};
|
|
8962
8972
|
}();
|
|
8973
|
+
/** 修改了 商品编码 */
|
|
8974
|
+
|
|
8975
|
+
var onChangeItemCode = /*#__PURE__*/function () {
|
|
8976
|
+
var _ref18 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee19(controller, form, record) {
|
|
8977
|
+
return _regeneratorRuntime().wrap(function _callee19$(_context19) {
|
|
8978
|
+
while (1) {
|
|
8979
|
+
switch (_context19.prev = _context19.next) {
|
|
8980
|
+
case 0:
|
|
8981
|
+
controller.run( /*#__PURE__*/function () {
|
|
8982
|
+
var _ref19 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee18(s) {
|
|
8983
|
+
var value;
|
|
8984
|
+
return _regeneratorRuntime().wrap(function _callee18$(_context18) {
|
|
8985
|
+
while (1) {
|
|
8986
|
+
switch (_context18.prev = _context18.next) {
|
|
8987
|
+
case 0:
|
|
8988
|
+
value = form.getFieldsValue().itemCode;
|
|
8989
|
+
|
|
8990
|
+
if (!s.goodsListState.isMyShow) {
|
|
8991
|
+
_context18.next = 10;
|
|
8992
|
+
break;
|
|
8993
|
+
}
|
|
8994
|
+
|
|
8995
|
+
_context18.next = 4;
|
|
8996
|
+
return controller.setEditGood({
|
|
8997
|
+
itemCodeSelf: value
|
|
8998
|
+
});
|
|
8999
|
+
|
|
9000
|
+
case 4:
|
|
9001
|
+
_context18.t0 = record.itemCode;
|
|
9002
|
+
|
|
9003
|
+
if (!_context18.t0) {
|
|
9004
|
+
_context18.next = 8;
|
|
9005
|
+
break;
|
|
9006
|
+
}
|
|
9007
|
+
|
|
9008
|
+
_context18.next = 8;
|
|
9009
|
+
return controller.setEditGood({
|
|
9010
|
+
itemCode: record.itemCode
|
|
9011
|
+
});
|
|
9012
|
+
|
|
9013
|
+
case 8:
|
|
9014
|
+
_context18.next = 16;
|
|
9015
|
+
break;
|
|
9016
|
+
|
|
9017
|
+
case 10:
|
|
9018
|
+
_context18.next = 12;
|
|
9019
|
+
return controller.setEditGood({
|
|
9020
|
+
itemCode: value
|
|
9021
|
+
});
|
|
9022
|
+
|
|
9023
|
+
case 12:
|
|
9024
|
+
_context18.t1 = record.itemCodeSelf;
|
|
9025
|
+
|
|
9026
|
+
if (!_context18.t1) {
|
|
9027
|
+
_context18.next = 16;
|
|
9028
|
+
break;
|
|
9029
|
+
}
|
|
9030
|
+
|
|
9031
|
+
_context18.next = 16;
|
|
9032
|
+
return controller.setEditGood({
|
|
9033
|
+
itemCodeSelf: record.itemCodeSelf
|
|
9034
|
+
});
|
|
9035
|
+
|
|
9036
|
+
case 16:
|
|
9037
|
+
case "end":
|
|
9038
|
+
return _context18.stop();
|
|
9039
|
+
}
|
|
9040
|
+
}
|
|
9041
|
+
}, _callee18);
|
|
9042
|
+
}));
|
|
9043
|
+
|
|
9044
|
+
return function (_x37) {
|
|
9045
|
+
return _ref19.apply(this, arguments);
|
|
9046
|
+
};
|
|
9047
|
+
}());
|
|
9048
|
+
|
|
9049
|
+
case 1:
|
|
9050
|
+
case "end":
|
|
9051
|
+
return _context19.stop();
|
|
9052
|
+
}
|
|
9053
|
+
}
|
|
9054
|
+
}, _callee19);
|
|
9055
|
+
}));
|
|
9056
|
+
|
|
9057
|
+
return function onChangeItemCode(_x34, _x35, _x36) {
|
|
9058
|
+
return _ref18.apply(this, arguments);
|
|
9059
|
+
};
|
|
9060
|
+
}();
|
|
8963
9061
|
|
|
8964
9062
|
/**
|
|
8965
9063
|
* 删除一个货物
|
|
@@ -10401,57 +10499,89 @@ function ItemNameInput(props) {
|
|
|
10401
10499
|
return _ref.apply(this, arguments);
|
|
10402
10500
|
};
|
|
10403
10501
|
}(), [autoComplete.onItemNameSearch]);
|
|
10404
|
-
var onChangeAutoComplete = React.useCallback(function (
|
|
10405
|
-
|
|
10406
|
-
|
|
10407
|
-
|
|
10408
|
-
|
|
10409
|
-
|
|
10410
|
-
|
|
10411
|
-
|
|
10412
|
-
|
|
10413
|
-
|
|
10414
|
-
|
|
10415
|
-
|
|
10416
|
-
|
|
10417
|
-
|
|
10418
|
-
|
|
10419
|
-
|
|
10420
|
-
|
|
10421
|
-
|
|
10422
|
-
|
|
10423
|
-
|
|
10424
|
-
|
|
10425
|
-
|
|
10426
|
-
|
|
10427
|
-
|
|
10428
|
-
|
|
10429
|
-
|
|
10430
|
-
|
|
10431
|
-
|
|
10432
|
-
|
|
10433
|
-
|
|
10434
|
-
|
|
10435
|
-
|
|
10436
|
-
|
|
10437
|
-
|
|
10438
|
-
|
|
10439
|
-
|
|
10440
|
-
|
|
10441
|
-
|
|
10442
|
-
|
|
10443
|
-
|
|
10444
|
-
|
|
10445
|
-
|
|
10446
|
-
|
|
10447
|
-
|
|
10448
|
-
|
|
10449
|
-
|
|
10450
|
-
|
|
10451
|
-
|
|
10452
|
-
|
|
10453
|
-
|
|
10454
|
-
|
|
10502
|
+
var onChangeAutoComplete = React.useCallback( /*#__PURE__*/function () {
|
|
10503
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(itemName) {
|
|
10504
|
+
var record;
|
|
10505
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
10506
|
+
while (1) {
|
|
10507
|
+
switch (_context2.prev = _context2.next) {
|
|
10508
|
+
case 0:
|
|
10509
|
+
// const good = options.filter(e=>e.itemName === itemName)[0];
|
|
10510
|
+
// good && controller.state.goodsListState.form?.setFieldsValue(removeNullUndefined(good));
|
|
10511
|
+
record = options.filter(function (e) {
|
|
10512
|
+
return e.itemName === itemName;
|
|
10513
|
+
})[0];
|
|
10514
|
+
|
|
10515
|
+
if (record) {
|
|
10516
|
+
_context2.next = 3;
|
|
10517
|
+
break;
|
|
10518
|
+
}
|
|
10519
|
+
|
|
10520
|
+
return _context2.abrupt("return");
|
|
10521
|
+
|
|
10522
|
+
case 3:
|
|
10523
|
+
_context2.next = 5;
|
|
10524
|
+
return controller.setEditGood({
|
|
10525
|
+
itemName: record.itemName
|
|
10526
|
+
});
|
|
10527
|
+
|
|
10528
|
+
case 5:
|
|
10529
|
+
controller.importGoodsDrawer(record); // controller.run(async s => {
|
|
10530
|
+
// Object.keys(record).filter(e => !record[e] && record[e] !== 0).forEach(e => { delete record[e] });
|
|
10531
|
+
// // 没用 被编辑的货物 和 form 就退出
|
|
10532
|
+
// if (!s.goodsListState.editGood || !s.goodsListState.form) return;
|
|
10533
|
+
// // 导入时清空之前输入的值,使用导入的单价和税率(参考税局系统)
|
|
10534
|
+
// record.quantity = undefined;
|
|
10535
|
+
// record.lineAmountExcludeTax = undefined;
|
|
10536
|
+
// record.lineAmountIncludeTax = undefined;
|
|
10537
|
+
// // 中间数据
|
|
10538
|
+
// const between = { ...record };
|
|
10539
|
+
// between.itemName = record.itemName;
|
|
10540
|
+
// between.itemNameOther = record.itemName;
|
|
10541
|
+
// // 设置编辑货物
|
|
10542
|
+
// const editGood: IGood = s.goodsListState.editGood = { ...s.goodsListState.editGood, ...between };
|
|
10543
|
+
// if (editGood.taxRate) {
|
|
10544
|
+
// editGood.taxRate = dutyFree(controller, editGood.taxRate, s.goodsListState.form, editGood)
|
|
10545
|
+
// }
|
|
10546
|
+
// if (`${editGood.priceIncludeTax}` === '0') {
|
|
10547
|
+
// editGood.priceIncludeTax = undefined;
|
|
10548
|
+
// editGood.priceExcludeTax = undefined;
|
|
10549
|
+
// } else {
|
|
10550
|
+
// editGood.priceExcludeTax = getPriceExcludeTax(editGood, record, s.calculatingDigits) as number;
|
|
10551
|
+
// }
|
|
10552
|
+
// if (editGood.quantity && editGood.priceIncludeTax) {
|
|
10553
|
+
// editGood.lineAmountIncludeTax = countAmountIncludeTax(editGood.quantity, editGood.priceIncludeTax, s.calculatingDigits);
|
|
10554
|
+
// }
|
|
10555
|
+
// // 导入FORM里
|
|
10556
|
+
// if (s.goodsListState.isMyShow) {
|
|
10557
|
+
// s.goodsListState.form.setFieldsValue({
|
|
10558
|
+
// ...editGood,
|
|
10559
|
+
// itemName: editGood.itemNameSelf,
|
|
10560
|
+
// itemModelName: editGood.itemModelNameSelf,
|
|
10561
|
+
// });
|
|
10562
|
+
// } else {
|
|
10563
|
+
// s.goodsListState.form.setFieldsValue({
|
|
10564
|
+
// ...editGood,
|
|
10565
|
+
// });
|
|
10566
|
+
// }
|
|
10567
|
+
// s.goodsListState.importGoods.isVisibleDrawer = false;
|
|
10568
|
+
// s.goodsListState.isTaxIncluded
|
|
10569
|
+
// ? await updateUnitPriceExcludingTax(controller, s.goodsListState.form, record)
|
|
10570
|
+
// : await updateUnitPriceTax(controller, s.goodsListState.form, record)
|
|
10571
|
+
// })
|
|
10572
|
+
|
|
10573
|
+
case 6:
|
|
10574
|
+
case "end":
|
|
10575
|
+
return _context2.stop();
|
|
10576
|
+
}
|
|
10577
|
+
}
|
|
10578
|
+
}, _callee2);
|
|
10579
|
+
}));
|
|
10580
|
+
|
|
10581
|
+
return function (_x2) {
|
|
10582
|
+
return _ref2.apply(this, arguments);
|
|
10583
|
+
};
|
|
10584
|
+
}(), [options, controller]);
|
|
10455
10585
|
return React.createElement("div", {
|
|
10456
10586
|
className: 'kts-invoice-operate-goods-list-itemName-input'
|
|
10457
10587
|
}, props.shorthand && React.createElement("span", {
|
|
@@ -10492,6 +10622,129 @@ function ItemNameInput(props) {
|
|
|
10492
10622
|
// return format15(evaluate(`${record.priceIncludeTax} / (1+${s.taxRate}/100)`), calculatingDigits);
|
|
10493
10623
|
// };
|
|
10494
10624
|
|
|
10625
|
+
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";
|
|
10626
|
+
styleInject(css_248z$7);
|
|
10627
|
+
|
|
10628
|
+
function ItemCodeInput(props) {
|
|
10629
|
+
var controller = Invoice.useInvoiceController();
|
|
10630
|
+
var autoComplete = controller.useMemo(function (s) {
|
|
10631
|
+
return s.autoComplete;
|
|
10632
|
+
}, []);
|
|
10633
|
+
|
|
10634
|
+
var _React$useState = React.useState([]),
|
|
10635
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
10636
|
+
options = _React$useState2[0],
|
|
10637
|
+
setOptions = _React$useState2[1];
|
|
10638
|
+
|
|
10639
|
+
var onChange = React.useCallback(function (e) {
|
|
10640
|
+
var event = _objectSpread2({}, e);
|
|
10641
|
+
|
|
10642
|
+
props.onChange && props.onChange(event);
|
|
10643
|
+
}, []);
|
|
10644
|
+
var onSearch = React.useCallback( /*#__PURE__*/function () {
|
|
10645
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(searchText) {
|
|
10646
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
10647
|
+
while (1) {
|
|
10648
|
+
switch (_context.prev = _context.next) {
|
|
10649
|
+
case 0:
|
|
10650
|
+
_context.prev = 0;
|
|
10651
|
+
|
|
10652
|
+
if (!autoComplete.onItemCodeSearch) {
|
|
10653
|
+
_context.next = 7;
|
|
10654
|
+
break;
|
|
10655
|
+
}
|
|
10656
|
+
|
|
10657
|
+
_context.t0 = setOptions;
|
|
10658
|
+
_context.next = 5;
|
|
10659
|
+
return autoComplete.onItemCodeSearch(searchText);
|
|
10660
|
+
|
|
10661
|
+
case 5:
|
|
10662
|
+
_context.t1 = _context.sent;
|
|
10663
|
+
(0, _context.t0)(_context.t1);
|
|
10664
|
+
|
|
10665
|
+
case 7:
|
|
10666
|
+
_context.next = 13;
|
|
10667
|
+
break;
|
|
10668
|
+
|
|
10669
|
+
case 9:
|
|
10670
|
+
_context.prev = 9;
|
|
10671
|
+
_context.t2 = _context["catch"](0);
|
|
10672
|
+
setOptions([]);
|
|
10673
|
+
throw _context.t2;
|
|
10674
|
+
|
|
10675
|
+
case 13:
|
|
10676
|
+
case "end":
|
|
10677
|
+
return _context.stop();
|
|
10678
|
+
}
|
|
10679
|
+
}
|
|
10680
|
+
}, _callee, null, [[0, 9]]);
|
|
10681
|
+
}));
|
|
10682
|
+
|
|
10683
|
+
return function (_x) {
|
|
10684
|
+
return _ref.apply(this, arguments);
|
|
10685
|
+
};
|
|
10686
|
+
}(), [autoComplete.onItemCodeSearch]);
|
|
10687
|
+
var onChangeAutoComplete = React.useCallback( /*#__PURE__*/function () {
|
|
10688
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(itemName) {
|
|
10689
|
+
var record;
|
|
10690
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
10691
|
+
while (1) {
|
|
10692
|
+
switch (_context2.prev = _context2.next) {
|
|
10693
|
+
case 0:
|
|
10694
|
+
record = options.filter(function (e) {
|
|
10695
|
+
return e.itemCode === itemName;
|
|
10696
|
+
})[0];
|
|
10697
|
+
|
|
10698
|
+
if (record) {
|
|
10699
|
+
_context2.next = 3;
|
|
10700
|
+
break;
|
|
10701
|
+
}
|
|
10702
|
+
|
|
10703
|
+
return _context2.abrupt("return");
|
|
10704
|
+
|
|
10705
|
+
case 3:
|
|
10706
|
+
_context2.next = 5;
|
|
10707
|
+
return controller.setEditGood({
|
|
10708
|
+
itemCode: record.itemCode
|
|
10709
|
+
});
|
|
10710
|
+
|
|
10711
|
+
case 5:
|
|
10712
|
+
case "end":
|
|
10713
|
+
return _context2.stop();
|
|
10714
|
+
}
|
|
10715
|
+
}
|
|
10716
|
+
}, _callee2);
|
|
10717
|
+
}));
|
|
10718
|
+
|
|
10719
|
+
return function (_x2) {
|
|
10720
|
+
return _ref2.apply(this, arguments);
|
|
10721
|
+
};
|
|
10722
|
+
}(), [options, controller]);
|
|
10723
|
+
return React.createElement("div", {
|
|
10724
|
+
className: 'kts-invoice-operate-goods-list-itemCode-input'
|
|
10725
|
+
}, props.shorthand && React.createElement("span", {
|
|
10726
|
+
style: {
|
|
10727
|
+
alignSelf: 'center',
|
|
10728
|
+
fontSize: 12
|
|
10729
|
+
}
|
|
10730
|
+
}, "*", props.shorthand, "*"), React.createElement(AutoComplete$1, {
|
|
10731
|
+
onSearch: onSearch,
|
|
10732
|
+
options: options.map(function (e) {
|
|
10733
|
+
return {
|
|
10734
|
+
value: e.itemCode
|
|
10735
|
+
};
|
|
10736
|
+
}),
|
|
10737
|
+
onChange: onChangeAutoComplete
|
|
10738
|
+
}, React.createElement(Input, {
|
|
10739
|
+
style: {
|
|
10740
|
+
height: '100%',
|
|
10741
|
+
border: 'none'
|
|
10742
|
+
},
|
|
10743
|
+
value: props.value,
|
|
10744
|
+
onChange: onChange
|
|
10745
|
+
})));
|
|
10746
|
+
}
|
|
10747
|
+
|
|
10495
10748
|
/** 拆分全称加简称 */
|
|
10496
10749
|
var getSN = function getSN(value) {
|
|
10497
10750
|
if (!value) return undefined;
|
|
@@ -10626,7 +10879,14 @@ var useColumns = (function (form) {
|
|
|
10626
10879
|
var columns = React.useMemo(function () {
|
|
10627
10880
|
var _columnsReplenish$ite, _columnsReplenish$uni, _columnsReplenish$qua, _columnsReplenish$pri, _columnsReplenish$pri2, _columnsReplenish$tax;
|
|
10628
10881
|
|
|
10629
|
-
return [{
|
|
10882
|
+
return [// {
|
|
10883
|
+
// title: ' ',
|
|
10884
|
+
// key: 'drag',
|
|
10885
|
+
// width: 40,
|
|
10886
|
+
// align: 'center',
|
|
10887
|
+
// render: (_: any, record: IGood) => <Drag record={record} />
|
|
10888
|
+
// },
|
|
10889
|
+
{
|
|
10630
10890
|
title: '序号',
|
|
10631
10891
|
key: 'serialNo',
|
|
10632
10892
|
dataIndex: 'serialNo',
|
|
@@ -10638,6 +10898,24 @@ var useColumns = (function (form) {
|
|
|
10638
10898
|
}
|
|
10639
10899
|
}, e);
|
|
10640
10900
|
}
|
|
10901
|
+
}, {
|
|
10902
|
+
title: '商品编码',
|
|
10903
|
+
key: 'itemCode',
|
|
10904
|
+
width: 119,
|
|
10905
|
+
render: function render(_, record) {
|
|
10906
|
+
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
10907
|
+
return React.createElement(Form.Item, null, getFieldDecorator('itemCode', {
|
|
10908
|
+
initialValue: editGood.itemCode
|
|
10909
|
+
})(React.createElement(ItemCodeInput, {
|
|
10910
|
+
shorthand: editGood.shorthand,
|
|
10911
|
+
onChange: function onChange() {
|
|
10912
|
+
onChangeItemCode(controller, form, record);
|
|
10913
|
+
}
|
|
10914
|
+
})));
|
|
10915
|
+
} else {
|
|
10916
|
+
return record.itemCode;
|
|
10917
|
+
}
|
|
10918
|
+
}
|
|
10641
10919
|
}, {
|
|
10642
10920
|
title: React.createElement(TitleText, {
|
|
10643
10921
|
required: true
|
|
@@ -10739,19 +11017,6 @@ var useColumns = (function (form) {
|
|
|
10739
11017
|
});
|
|
10740
11018
|
}
|
|
10741
11019
|
}
|
|
10742
|
-
}, {
|
|
10743
|
-
title: '商品编码',
|
|
10744
|
-
key: 'itemCode',
|
|
10745
|
-
width: 119,
|
|
10746
|
-
render: function render(_, record) {
|
|
10747
|
-
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
10748
|
-
return React.createElement(Form.Item, null, getFieldDecorator('itemCode', {
|
|
10749
|
-
initialValue: editGood.itemCode
|
|
10750
|
-
})(React.createElement(MyInput, null)));
|
|
10751
|
-
} else {
|
|
10752
|
-
return record.itemCode;
|
|
10753
|
-
}
|
|
10754
|
-
}
|
|
10755
11020
|
}, {
|
|
10756
11021
|
title: React.createElement(TitleText, {
|
|
10757
11022
|
rules: (_columnsReplenish$ite = columnsReplenish['itemModelName']) === null || _columnsReplenish$ite === void 0 ? void 0 : _columnsReplenish$ite.rules
|
|
@@ -11359,12 +11624,7 @@ var useColumns = (function (form) {
|
|
|
11359
11624
|
ellipsis: true
|
|
11360
11625
|
});
|
|
11361
11626
|
});
|
|
11362
|
-
}, [isTaxIncluded, editGood, controller, changeField, deduction, isMyShow, searchValue, model, columnsReplenish, columnshide]);
|
|
11363
|
-
// clearTimeout(t)
|
|
11364
|
-
// const t = setTimeout(() => { setChangeField('') }, 1000);
|
|
11365
|
-
// return () => { clearTimeout(t) }
|
|
11366
|
-
// }, [changeField]);
|
|
11367
|
-
|
|
11627
|
+
}, [isTaxIncluded, editGood, controller, changeField, deduction, isMyShow, searchValue, model, columnsReplenish, columnshide]);
|
|
11368
11628
|
return columns;
|
|
11369
11629
|
});
|
|
11370
11630
|
/** 字段 */
|
|
@@ -12016,8 +12276,8 @@ var useRowSelection = (function () {
|
|
|
12016
12276
|
};
|
|
12017
12277
|
});
|
|
12018
12278
|
|
|
12019
|
-
var css_248z$
|
|
12020
|
-
styleInject(css_248z$
|
|
12279
|
+
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";
|
|
12280
|
+
styleInject(css_248z$8);
|
|
12021
12281
|
|
|
12022
12282
|
var keys$1 = {};
|
|
12023
12283
|
/**
|
|
@@ -12248,8 +12508,8 @@ var lazyFn$1 = (function (fn) {
|
|
|
12248
12508
|
};
|
|
12249
12509
|
});
|
|
12250
12510
|
|
|
12251
|
-
var css_248z$
|
|
12252
|
-
styleInject(css_248z$
|
|
12511
|
+
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";
|
|
12512
|
+
styleInject(css_248z$9);
|
|
12253
12513
|
|
|
12254
12514
|
var Text$3 = Typography.Text;
|
|
12255
12515
|
|
|
@@ -12631,8 +12891,8 @@ var DrawerBody = decorator(Form.create())(function (props) {
|
|
|
12631
12891
|
|
|
12632
12892
|
function useMergeDetails() {
|
|
12633
12893
|
var controller = Invoice.useInvoiceController();
|
|
12634
|
-
var
|
|
12635
|
-
return s.goodsListState.
|
|
12894
|
+
var selectedGoodIndex = controller.useMemo(function (s) {
|
|
12895
|
+
return s.goodsListState.selectedGoodIndex;
|
|
12636
12896
|
}, []);
|
|
12637
12897
|
var isMergeDetails = controller.useMemo(function (s) {
|
|
12638
12898
|
return s.goodsListState.isMergeDetails;
|
|
@@ -12664,9 +12924,9 @@ function useMergeDetails() {
|
|
|
12664
12924
|
if (!isMergeDetails) return React.createElement(React.Fragment, null);
|
|
12665
12925
|
return React.createElement(Button, {
|
|
12666
12926
|
onClick: onClick,
|
|
12667
|
-
disabled:
|
|
12927
|
+
disabled: selectedGoodIndex.length <= 1
|
|
12668
12928
|
}, "\u5408\u5E76\u660E\u7EC6");
|
|
12669
|
-
}, [
|
|
12929
|
+
}, [selectedGoodIndex.length]);
|
|
12670
12930
|
return {
|
|
12671
12931
|
/** 按钮 */
|
|
12672
12932
|
button: button
|
|
@@ -12970,8 +13230,8 @@ var Main = decorator(Form.create())(function (props) {
|
|
|
12970
13230
|
})), React.createElement("div", null, React.createElement(Statistics, null)));
|
|
12971
13231
|
});
|
|
12972
13232
|
|
|
12973
|
-
var css_248z$
|
|
12974
|
-
styleInject(css_248z$
|
|
13233
|
+
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";
|
|
13234
|
+
styleInject(css_248z$a);
|
|
12975
13235
|
|
|
12976
13236
|
var TextArea = Input.TextArea;
|
|
12977
13237
|
|
|
@@ -13389,8 +13649,8 @@ function interval(i, t) {
|
|
|
13389
13649
|
}
|
|
13390
13650
|
}
|
|
13391
13651
|
|
|
13392
|
-
var css_248z$
|
|
13393
|
-
styleInject(css_248z$
|
|
13652
|
+
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";
|
|
13653
|
+
styleInject(css_248z$b);
|
|
13394
13654
|
|
|
13395
13655
|
var Text$4 = Typography.Text;
|
|
13396
13656
|
|
|
@@ -13541,8 +13801,8 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
13541
13801
|
}, React.createElement("label", null, "\u5BC6\u7801\u533A")), React.createElement("div", null))));
|
|
13542
13802
|
});
|
|
13543
13803
|
|
|
13544
|
-
var css_248z$
|
|
13545
|
-
styleInject(css_248z$
|
|
13804
|
+
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";
|
|
13805
|
+
styleInject(css_248z$c);
|
|
13546
13806
|
|
|
13547
13807
|
var Sign = decorator(Form.create())(function (props) {
|
|
13548
13808
|
var form = props.form;
|
|
@@ -13590,8 +13850,8 @@ var formItemLayout = {
|
|
|
13590
13850
|
}
|
|
13591
13851
|
};
|
|
13592
13852
|
|
|
13593
|
-
var css_248z$
|
|
13594
|
-
styleInject(css_248z$
|
|
13853
|
+
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";
|
|
13854
|
+
styleInject(css_248z$d);
|
|
13595
13855
|
|
|
13596
13856
|
var InvoiceHeaderDigtal = decorator(Form.create())(function (props) {
|
|
13597
13857
|
var form = props.form;
|
|
@@ -14811,8 +15071,8 @@ function SvgPlus(props) {
|
|
|
14811
15071
|
})))));
|
|
14812
15072
|
}
|
|
14813
15073
|
|
|
14814
|
-
var css_248z$
|
|
14815
|
-
styleInject(css_248z$
|
|
15074
|
+
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";
|
|
15075
|
+
styleInject(css_248z$e);
|
|
14816
15076
|
|
|
14817
15077
|
var RULES = {
|
|
14818
15078
|
companyName: function companyName(label) {
|
|
@@ -15274,8 +15534,8 @@ Discontinue.start = function () {
|
|
|
15274
15534
|
});
|
|
15275
15535
|
};
|
|
15276
15536
|
|
|
15277
|
-
var css_248z$
|
|
15278
|
-
styleInject(css_248z$
|
|
15537
|
+
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";
|
|
15538
|
+
styleInject(css_248z$f);
|
|
15279
15539
|
|
|
15280
15540
|
var SignDigtal = decorator(Form.create())(function (props) {
|
|
15281
15541
|
var form = props.form;
|
|
@@ -15361,8 +15621,8 @@ var MyDiv$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
15361
15621
|
return MyDiv;
|
|
15362
15622
|
}(React.Component);
|
|
15363
15623
|
|
|
15364
|
-
var css_248z$
|
|
15365
|
-
styleInject(css_248z$
|
|
15624
|
+
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";
|
|
15625
|
+
styleInject(css_248z$g);
|
|
15366
15626
|
|
|
15367
15627
|
function TableVirtual$1 (props) {
|
|
15368
15628
|
var _props$dataSource2;
|
|
@@ -15494,8 +15754,8 @@ function SvgFork(props) {
|
|
|
15494
15754
|
})))));
|
|
15495
15755
|
}
|
|
15496
15756
|
|
|
15497
|
-
var css_248z$
|
|
15498
|
-
styleInject(css_248z$
|
|
15757
|
+
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";
|
|
15758
|
+
styleInject(css_248z$h);
|
|
15499
15759
|
|
|
15500
15760
|
var nzhcn$1 = require('nzh').cn;
|
|
15501
15761
|
|
|
@@ -15860,8 +16120,8 @@ function SvgMagnifier$1(props) {
|
|
|
15860
16120
|
})));
|
|
15861
16121
|
}
|
|
15862
16122
|
|
|
15863
|
-
var css_248z$
|
|
15864
|
-
styleInject(css_248z$
|
|
16123
|
+
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";
|
|
16124
|
+
styleInject(css_248z$i);
|
|
15865
16125
|
|
|
15866
16126
|
function Search$1() {
|
|
15867
16127
|
var controller = Invoice.useInvoiceController();
|
|
@@ -16011,8 +16271,8 @@ var TitleText$1 = (function (props) {
|
|
|
16011
16271
|
}, "*") : React.createElement(React.Fragment, null), children);
|
|
16012
16272
|
});
|
|
16013
16273
|
|
|
16014
|
-
var css_248z$
|
|
16015
|
-
styleInject(css_248z$
|
|
16274
|
+
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";
|
|
16275
|
+
styleInject(css_248z$j);
|
|
16016
16276
|
|
|
16017
16277
|
function ItemNameInput$1(props) {
|
|
16018
16278
|
var controller = Invoice.useInvoiceController();
|
|
@@ -19448,8 +19708,8 @@ var useEmptyRefill = (function () {
|
|
|
19448
19708
|
};
|
|
19449
19709
|
});
|
|
19450
19710
|
|
|
19451
|
-
var css_248z$
|
|
19452
|
-
styleInject(css_248z$
|
|
19711
|
+
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";
|
|
19712
|
+
styleInject(css_248z$k);
|
|
19453
19713
|
|
|
19454
19714
|
function InvoiceTypeModal(props) {
|
|
19455
19715
|
var _props$disableds = props.disableds,
|
|
@@ -19621,8 +19881,8 @@ var useReselectInvoiceType = (function () {
|
|
|
19621
19881
|
};
|
|
19622
19882
|
});
|
|
19623
19883
|
|
|
19624
|
-
var css_248z$
|
|
19625
|
-
styleInject(css_248z$
|
|
19884
|
+
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";
|
|
19885
|
+
styleInject(css_248z$l);
|
|
19626
19886
|
|
|
19627
19887
|
var GoodsList$1 = /*#__PURE__*/function (_React$Component) {
|
|
19628
19888
|
_inherits(GoodsList, _React$Component);
|
|
@@ -20232,8 +20492,8 @@ var getItemNameOther = function getItemNameOther(record, editGood) {
|
|
|
20232
20492
|
return record.itemName;
|
|
20233
20493
|
};
|
|
20234
20494
|
|
|
20235
|
-
var css_248z$
|
|
20236
|
-
styleInject(css_248z$
|
|
20495
|
+
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";
|
|
20496
|
+
styleInject(css_248z$m);
|
|
20237
20497
|
|
|
20238
20498
|
var TreeNode = Tree.TreeNode;
|
|
20239
20499
|
var confirm = Modal$1.confirm;
|