kts-component-invoice-operate 3.2.262 → 3.2.263
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/ui/components/CustomCascader/index.d.ts +1 -0
- package/dist/index.esm.js +21 -23
- package/dist/index.js +21 -23
- package/package.json +1 -1
- package/src/Invoice/Invoice-digtal/_test/passenger/index.tsx +27 -7
- package/src/Invoice/ui/components/CustomCascader/index.tsx +3 -0
- package/src/Invoice/ui/default/ImportPassengerDrawer/index.tsx +0 -6
- package/src/Invoice/ui/digtal/PassengerList/hook/useColumns/index.tsx +3 -2
- package/src/Invoice/ui/digtal/PassengerList/index.less +8 -4
- package/src/Invoice/ui/digtal/PassengerList/index.tsx +8 -9
|
@@ -12,6 +12,7 @@ export interface CustomCascaderProps extends Omit<CascaderProps<CustomCascaderOp
|
|
|
12
12
|
options?: CustomCascaderOption[];
|
|
13
13
|
fieldNames?: CustomCascaderFieldNames;
|
|
14
14
|
placeholder?: string;
|
|
15
|
+
maxLength?: number;
|
|
15
16
|
onChange?: (value: (string | number)[] | undefined, selectedOptions?: CustomCascaderOption[]) => void;
|
|
16
17
|
value?: (string | number)[];
|
|
17
18
|
onBlur?: (e: React.FocusEvent) => void;
|
package/dist/index.esm.js
CHANGED
|
@@ -32799,13 +32799,6 @@ var DrawerBody$3 = function DrawerBody() {
|
|
|
32799
32799
|
};
|
|
32800
32800
|
}(); // 3. 处理文件选择状态(更新左侧 Input 显示的文件名)
|
|
32801
32801
|
|
|
32802
|
-
React.useEffect(function () {
|
|
32803
|
-
controller.getBuyerList && controller.getBuyerList({
|
|
32804
|
-
pagination: {
|
|
32805
|
-
current: 1
|
|
32806
|
-
}
|
|
32807
|
-
});
|
|
32808
|
-
}, [controller]);
|
|
32809
32802
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Alert, {
|
|
32810
32803
|
type: "info",
|
|
32811
32804
|
showIcon: true,
|
|
@@ -34645,7 +34638,7 @@ var TitleText$4 = (function (props) {
|
|
|
34645
34638
|
}, "*") : /*#__PURE__*/React.createElement(React.Fragment, null), children);
|
|
34646
34639
|
});
|
|
34647
34640
|
|
|
34648
|
-
var _excluded$3 = ["options", "fieldNames", "placeholder", "onChange", "value", "className", "style", "onBlur"];
|
|
34641
|
+
var _excluded$3 = ["options", "fieldNames", "placeholder", "maxLength", "onChange", "value", "className", "style", "onBlur"];
|
|
34649
34642
|
var DROPDOWN_CLASS = 'custom-cascader-dropdown';
|
|
34650
34643
|
var ARROW_CLASS = 'custom-cascader-arrow';
|
|
34651
34644
|
var CLEAR_CLASS = 'custom-cascader-clear';
|
|
@@ -34660,6 +34653,8 @@ var CustomCascader = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
34660
34653
|
} : _ref$fieldNames,
|
|
34661
34654
|
_ref$placeholder = _ref.placeholder,
|
|
34662
34655
|
placeholder = _ref$placeholder === void 0 ? '请选择或输入地址' : _ref$placeholder,
|
|
34656
|
+
_ref$maxLength = _ref.maxLength,
|
|
34657
|
+
maxLength = _ref$maxLength === void 0 ? 80 : _ref$maxLength,
|
|
34663
34658
|
onChange = _ref.onChange,
|
|
34664
34659
|
externalValue = _ref.value,
|
|
34665
34660
|
_ref$className = _ref.className,
|
|
@@ -34970,6 +34965,7 @@ var CustomCascader = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
34970
34965
|
ref: inputRef,
|
|
34971
34966
|
placeholder: placeholder,
|
|
34972
34967
|
value: inputText,
|
|
34968
|
+
maxLength: maxLength,
|
|
34973
34969
|
onChange: handleInputChange,
|
|
34974
34970
|
onCompositionStart: handleCompositionStart,
|
|
34975
34971
|
onCompositionEnd: handleCompositionEnd,
|
|
@@ -35520,11 +35516,16 @@ var useColumns$4 = (function (form, isRequired) {
|
|
|
35520
35516
|
return controller.wait();
|
|
35521
35517
|
|
|
35522
35518
|
case 2:
|
|
35523
|
-
|
|
35524
|
-
|
|
35519
|
+
form.setFieldsValue({
|
|
35520
|
+
'zwdj': undefined
|
|
35521
|
+
});
|
|
35522
|
+
_context7.next = 5;
|
|
35523
|
+
return controller.setEditPassenger({
|
|
35524
|
+
jtgjlxDm: value,
|
|
35525
|
+
zwdj: ''
|
|
35525
35526
|
});
|
|
35526
35527
|
|
|
35527
|
-
case
|
|
35528
|
+
case 5:
|
|
35528
35529
|
case "end":
|
|
35529
35530
|
return _context7.stop();
|
|
35530
35531
|
}
|
|
@@ -36208,7 +36209,7 @@ var useDelRowButton$4 = (function () {
|
|
|
36208
36209
|
};
|
|
36209
36210
|
});
|
|
36210
36211
|
|
|
36211
|
-
var css_248z$E = ".kts-invoice-operate-
|
|
36212
|
+
var css_248z$E = ".kts-invoice-operate-passenger {\n border-bottom: 2px solid #9F613E;\n border-left: 2px solid #9F613E;\n border-right: 2px solid #9F613E;\n}\n.kts-invoice-operate-passenger .real-estate-info-digtal-label {\n padding: 20px 20px 0;\n color: #9F613E;\n font-weight: bold;\n}\n.kts-invoice-operate-passenger .ktsAnt3x-row.ktsAnt3x-form-item {\n margin-bottom: 0;\n}\n.kts-invoice-operate-passenger-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-passenger-list-digtal .kts-invoice-operate-goods-list-table-tax-rate .ktsAnt3x-select-selection-selected-value {\n float: right;\n}\n.kts-invoice-operate-passenger-list-digtal .kts-invoice-operate-passenger-list-able {\n display: flex;\n padding: 10px;\n border-bottom: 2px solid #9F613E;\n gap: 10px;\n align-items: center;\n}\n.kts-invoice-operate-passenger-list-digtal .ktsAntX-table .ktsAntX-table-row.kts-invoice-operate-goods-be-discount .ktsAntX-table-cell {\n color: #f00;\n}\n.kts-invoice-operate-passenger-list-digtal .ktsAntX-table input,\n.kts-invoice-operate-passenger-list-digtal .ktsAntX-table .ktsAntX-select-selection-item {\n font-size: 12px;\n}\n.kts-invoice-operate-passenger-list-table-digtal .ktsAnt3x-form-item-control.has-error {\n border: 1px solid #f00;\n}\n.kts-invoice-operate-passenger-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-passenger-list-table-digtal .kts-invoice-operate-goods-list-table-search-protrude {\n background: #ff0;\n color: #000;\n font-weight: bold;\n}\n";
|
|
36212
36213
|
styleInject(css_248z$E);
|
|
36213
36214
|
|
|
36214
36215
|
var BatchImportButton = (function () {
|
|
@@ -36431,11 +36432,6 @@ var Main$6 = decorator(Form.create())(function (props) {
|
|
|
36431
36432
|
var goodsList = controller.useMemo(function (s) {
|
|
36432
36433
|
return s.passengerListState.goodsList;
|
|
36433
36434
|
}, []);
|
|
36434
|
-
/** 货物列表 */
|
|
36435
|
-
|
|
36436
|
-
var dataSource = controller.useMemo(function (s) {
|
|
36437
|
-
return s.passengerListState.goodsList;
|
|
36438
|
-
}, []);
|
|
36439
36435
|
/** 表格行事件 */
|
|
36440
36436
|
|
|
36441
36437
|
var _onRow = useOnRow$4();
|
|
@@ -36478,7 +36474,9 @@ var Main$6 = decorator(Form.create())(function (props) {
|
|
|
36478
36474
|
while (1) {
|
|
36479
36475
|
switch (_context2.prev = _context2.next) {
|
|
36480
36476
|
case 0:
|
|
36481
|
-
|
|
36477
|
+
if (props.fieldNames) {
|
|
36478
|
+
s.passengerListState.addressFieldNames = props.fieldNames;
|
|
36479
|
+
}
|
|
36482
36480
|
|
|
36483
36481
|
case 1:
|
|
36484
36482
|
case "end":
|
|
@@ -36596,22 +36594,22 @@ var Main$6 = decorator(Form.create())(function (props) {
|
|
|
36596
36594
|
// controller.useForm('freightInfo', form);
|
|
36597
36595
|
|
|
36598
36596
|
return /*#__PURE__*/React.createElement("div", {
|
|
36599
|
-
className: "kts-invoice-operate-
|
|
36597
|
+
className: "kts-invoice-operate-passenger"
|
|
36600
36598
|
}, /*#__PURE__*/React.createElement("div", {
|
|
36601
36599
|
className: 'real-estate-info-digtal-label'
|
|
36602
36600
|
}, "\u7279\u5B9A\u4FE1\u606F-\u65C5\u5BA2\u8FD0\u8F93\u670D\u52A1"), /*#__PURE__*/React.createElement("div", {
|
|
36603
|
-
className: "kts-invoice-operate-
|
|
36601
|
+
className: "kts-invoice-operate-passenger-list-digtal",
|
|
36604
36602
|
onClick: function onClick(e) {
|
|
36605
36603
|
e.stopPropagation();
|
|
36606
36604
|
}
|
|
36607
36605
|
}, /*#__PURE__*/React.createElement("div", {
|
|
36608
|
-
className: "kts-invoice-operate-
|
|
36606
|
+
className: "kts-invoice-operate-passenger-list-able"
|
|
36609
36607
|
}, /*#__PURE__*/React.createElement(AddRowButton$4, null), delRowButton.button, /*#__PURE__*/React.createElement(BatchImportButton, null), /*#__PURE__*/React.createElement("div", {
|
|
36610
36608
|
style: {
|
|
36611
36609
|
flex: 1
|
|
36612
36610
|
}
|
|
36613
36611
|
})), /*#__PURE__*/React.createElement("div", {
|
|
36614
|
-
className: classnames('kts-invoice-operate-
|
|
36612
|
+
className: classnames('kts-invoice-operate-passenger-list-table-digtal')
|
|
36615
36613
|
}, /*#__PURE__*/React.createElement(TableVirtual$4, {
|
|
36616
36614
|
size: "small",
|
|
36617
36615
|
rowKey: "$index",
|
|
@@ -36624,7 +36622,7 @@ var Main$6 = decorator(Form.create())(function (props) {
|
|
|
36624
36622
|
row: TableRow$4
|
|
36625
36623
|
}
|
|
36626
36624
|
},
|
|
36627
|
-
dataSource:
|
|
36625
|
+
dataSource: goodsList,
|
|
36628
36626
|
columns: useColumns$4(props.form, isRequired),
|
|
36629
36627
|
rowSelection: useRowSelection$4(),
|
|
36630
36628
|
onRow: function onRow(record) {
|
package/dist/index.js
CHANGED
|
@@ -32809,13 +32809,6 @@ var DrawerBody$3 = function DrawerBody() {
|
|
|
32809
32809
|
};
|
|
32810
32810
|
}(); // 3. 处理文件选择状态(更新左侧 Input 显示的文件名)
|
|
32811
32811
|
|
|
32812
|
-
React__default['default'].useEffect(function () {
|
|
32813
|
-
controller.getBuyerList && controller.getBuyerList({
|
|
32814
|
-
pagination: {
|
|
32815
|
-
current: 1
|
|
32816
|
-
}
|
|
32817
|
-
});
|
|
32818
|
-
}, [controller]);
|
|
32819
32812
|
return /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Alert, {
|
|
32820
32813
|
type: "info",
|
|
32821
32814
|
showIcon: true,
|
|
@@ -34655,7 +34648,7 @@ var TitleText$4 = (function (props) {
|
|
|
34655
34648
|
}, "*") : /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null), children);
|
|
34656
34649
|
});
|
|
34657
34650
|
|
|
34658
|
-
var _excluded$3 = ["options", "fieldNames", "placeholder", "onChange", "value", "className", "style", "onBlur"];
|
|
34651
|
+
var _excluded$3 = ["options", "fieldNames", "placeholder", "maxLength", "onChange", "value", "className", "style", "onBlur"];
|
|
34659
34652
|
var DROPDOWN_CLASS = 'custom-cascader-dropdown';
|
|
34660
34653
|
var ARROW_CLASS = 'custom-cascader-arrow';
|
|
34661
34654
|
var CLEAR_CLASS = 'custom-cascader-clear';
|
|
@@ -34670,6 +34663,8 @@ var CustomCascader = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
34670
34663
|
} : _ref$fieldNames,
|
|
34671
34664
|
_ref$placeholder = _ref.placeholder,
|
|
34672
34665
|
placeholder = _ref$placeholder === void 0 ? '请选择或输入地址' : _ref$placeholder,
|
|
34666
|
+
_ref$maxLength = _ref.maxLength,
|
|
34667
|
+
maxLength = _ref$maxLength === void 0 ? 80 : _ref$maxLength,
|
|
34673
34668
|
onChange = _ref.onChange,
|
|
34674
34669
|
externalValue = _ref.value,
|
|
34675
34670
|
_ref$className = _ref.className,
|
|
@@ -34980,6 +34975,7 @@ var CustomCascader = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
34980
34975
|
ref: inputRef,
|
|
34981
34976
|
placeholder: placeholder,
|
|
34982
34977
|
value: inputText,
|
|
34978
|
+
maxLength: maxLength,
|
|
34983
34979
|
onChange: handleInputChange,
|
|
34984
34980
|
onCompositionStart: handleCompositionStart,
|
|
34985
34981
|
onCompositionEnd: handleCompositionEnd,
|
|
@@ -35530,11 +35526,16 @@ var useColumns$4 = (function (form, isRequired) {
|
|
|
35530
35526
|
return controller.wait();
|
|
35531
35527
|
|
|
35532
35528
|
case 2:
|
|
35533
|
-
|
|
35534
|
-
|
|
35529
|
+
form.setFieldsValue({
|
|
35530
|
+
'zwdj': undefined
|
|
35531
|
+
});
|
|
35532
|
+
_context7.next = 5;
|
|
35533
|
+
return controller.setEditPassenger({
|
|
35534
|
+
jtgjlxDm: value,
|
|
35535
|
+
zwdj: ''
|
|
35535
35536
|
});
|
|
35536
35537
|
|
|
35537
|
-
case
|
|
35538
|
+
case 5:
|
|
35538
35539
|
case "end":
|
|
35539
35540
|
return _context7.stop();
|
|
35540
35541
|
}
|
|
@@ -36218,7 +36219,7 @@ var useDelRowButton$4 = (function () {
|
|
|
36218
36219
|
};
|
|
36219
36220
|
});
|
|
36220
36221
|
|
|
36221
|
-
var css_248z$E = ".kts-invoice-operate-
|
|
36222
|
+
var css_248z$E = ".kts-invoice-operate-passenger {\n border-bottom: 2px solid #9F613E;\n border-left: 2px solid #9F613E;\n border-right: 2px solid #9F613E;\n}\n.kts-invoice-operate-passenger .real-estate-info-digtal-label {\n padding: 20px 20px 0;\n color: #9F613E;\n font-weight: bold;\n}\n.kts-invoice-operate-passenger .ktsAnt3x-row.ktsAnt3x-form-item {\n margin-bottom: 0;\n}\n.kts-invoice-operate-passenger-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-passenger-list-digtal .kts-invoice-operate-goods-list-table-tax-rate .ktsAnt3x-select-selection-selected-value {\n float: right;\n}\n.kts-invoice-operate-passenger-list-digtal .kts-invoice-operate-passenger-list-able {\n display: flex;\n padding: 10px;\n border-bottom: 2px solid #9F613E;\n gap: 10px;\n align-items: center;\n}\n.kts-invoice-operate-passenger-list-digtal .ktsAntX-table .ktsAntX-table-row.kts-invoice-operate-goods-be-discount .ktsAntX-table-cell {\n color: #f00;\n}\n.kts-invoice-operate-passenger-list-digtal .ktsAntX-table input,\n.kts-invoice-operate-passenger-list-digtal .ktsAntX-table .ktsAntX-select-selection-item {\n font-size: 12px;\n}\n.kts-invoice-operate-passenger-list-table-digtal .ktsAnt3x-form-item-control.has-error {\n border: 1px solid #f00;\n}\n.kts-invoice-operate-passenger-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-passenger-list-table-digtal .kts-invoice-operate-goods-list-table-search-protrude {\n background: #ff0;\n color: #000;\n font-weight: bold;\n}\n";
|
|
36222
36223
|
styleInject(css_248z$E);
|
|
36223
36224
|
|
|
36224
36225
|
var BatchImportButton = (function () {
|
|
@@ -36441,11 +36442,6 @@ var Main$6 = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(function
|
|
|
36441
36442
|
var goodsList = controller.useMemo(function (s) {
|
|
36442
36443
|
return s.passengerListState.goodsList;
|
|
36443
36444
|
}, []);
|
|
36444
|
-
/** 货物列表 */
|
|
36445
|
-
|
|
36446
|
-
var dataSource = controller.useMemo(function (s) {
|
|
36447
|
-
return s.passengerListState.goodsList;
|
|
36448
|
-
}, []);
|
|
36449
36445
|
/** 表格行事件 */
|
|
36450
36446
|
|
|
36451
36447
|
var _onRow = useOnRow$4();
|
|
@@ -36488,7 +36484,9 @@ var Main$6 = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(function
|
|
|
36488
36484
|
while (1) {
|
|
36489
36485
|
switch (_context2.prev = _context2.next) {
|
|
36490
36486
|
case 0:
|
|
36491
|
-
|
|
36487
|
+
if (props.fieldNames) {
|
|
36488
|
+
s.passengerListState.addressFieldNames = props.fieldNames;
|
|
36489
|
+
}
|
|
36492
36490
|
|
|
36493
36491
|
case 1:
|
|
36494
36492
|
case "end":
|
|
@@ -36606,22 +36604,22 @@ var Main$6 = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(function
|
|
|
36606
36604
|
// controller.useForm('freightInfo', form);
|
|
36607
36605
|
|
|
36608
36606
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
36609
|
-
className: "kts-invoice-operate-
|
|
36607
|
+
className: "kts-invoice-operate-passenger"
|
|
36610
36608
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
36611
36609
|
className: 'real-estate-info-digtal-label'
|
|
36612
36610
|
}, "\u7279\u5B9A\u4FE1\u606F-\u65C5\u5BA2\u8FD0\u8F93\u670D\u52A1"), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
36613
|
-
className: "kts-invoice-operate-
|
|
36611
|
+
className: "kts-invoice-operate-passenger-list-digtal",
|
|
36614
36612
|
onClick: function onClick(e) {
|
|
36615
36613
|
e.stopPropagation();
|
|
36616
36614
|
}
|
|
36617
36615
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
36618
|
-
className: "kts-invoice-operate-
|
|
36616
|
+
className: "kts-invoice-operate-passenger-list-able"
|
|
36619
36617
|
}, /*#__PURE__*/React__default['default'].createElement(AddRowButton$4, null), delRowButton.button, /*#__PURE__*/React__default['default'].createElement(BatchImportButton, null), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
36620
36618
|
style: {
|
|
36621
36619
|
flex: 1
|
|
36622
36620
|
}
|
|
36623
36621
|
})), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
36624
|
-
className: classnames__default['default']('kts-invoice-operate-
|
|
36622
|
+
className: classnames__default['default']('kts-invoice-operate-passenger-list-table-digtal')
|
|
36625
36623
|
}, /*#__PURE__*/React__default['default'].createElement(TableVirtual$4, {
|
|
36626
36624
|
size: "small",
|
|
36627
36625
|
rowKey: "$index",
|
|
@@ -36634,7 +36632,7 @@ var Main$6 = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(function
|
|
|
36634
36632
|
row: TableRow$4
|
|
36635
36633
|
}
|
|
36636
36634
|
},
|
|
36637
|
-
dataSource:
|
|
36635
|
+
dataSource: goodsList,
|
|
36638
36636
|
columns: useColumns$4(props.form, isRequired),
|
|
36639
36637
|
rowSelection: useRowSelection$4(),
|
|
36640
36638
|
onRow: function onRow(record) {
|
package/package.json
CHANGED
|
@@ -14544,13 +14544,33 @@ export default () => {
|
|
|
14544
14544
|
], []);
|
|
14545
14545
|
React.useEffect(() => {
|
|
14546
14546
|
controller.run(async s => {
|
|
14547
|
-
|
|
14548
|
-
|
|
14549
|
-
|
|
14550
|
-
|
|
14551
|
-
|
|
14552
|
-
|
|
14553
|
-
|
|
14547
|
+
const data = [{
|
|
14548
|
+
"destination": "北京市,市辖区,西城区",
|
|
14549
|
+
"idCard": "123456",
|
|
14550
|
+
"identityType": "COMPANY",
|
|
14551
|
+
"name": "李四",
|
|
14552
|
+
"origin": "北京市,市辖区,东城区",
|
|
14553
|
+
"sortNumber": 1,
|
|
14554
|
+
"travelDate": "2026-09-15",
|
|
14555
|
+
"travelLevel": null,
|
|
14556
|
+
"travelType": "PUBLIC_TRANSPORT"
|
|
14557
|
+
}]
|
|
14558
|
+
const cargoTransportDataList:Array<any> = data.map((item, index) => {
|
|
14559
|
+
return {
|
|
14560
|
+
// ...item,
|
|
14561
|
+
$index: Invoice.idGenerator(),
|
|
14562
|
+
sortNumber: item.sortNumber,
|
|
14563
|
+
cxr: item.name,
|
|
14564
|
+
chuxrq: item.travelDate,
|
|
14565
|
+
cxrzjlxDm: item.identityType,
|
|
14566
|
+
sfzjhm: item.idCard,
|
|
14567
|
+
jtgjlxDm: item.travelType,
|
|
14568
|
+
zwdj: item.travelLevel,
|
|
14569
|
+
cfd: item.origin?.split(','),
|
|
14570
|
+
ddd: item.destination?.split(','),
|
|
14571
|
+
}
|
|
14572
|
+
})
|
|
14573
|
+
controller.state.passengerListState.goodsList = cargoTransportDataList;
|
|
14554
14574
|
})
|
|
14555
14575
|
}, [])
|
|
14556
14576
|
const onSave = async () => {
|
|
@@ -28,6 +28,7 @@ export interface CustomCascaderProps
|
|
|
28
28
|
options?: CustomCascaderOption[];
|
|
29
29
|
fieldNames?: CustomCascaderFieldNames;
|
|
30
30
|
placeholder?: string;
|
|
31
|
+
maxLength?: number;
|
|
31
32
|
onChange?: (value: (string | number)[] | undefined, selectedOptions?: CustomCascaderOption[]) => void;
|
|
32
33
|
value?: (string | number)[];
|
|
33
34
|
onBlur?: (e: React.FocusEvent) => void;
|
|
@@ -43,6 +44,7 @@ const CustomCascader = forwardRef<any, CustomCascaderProps>(
|
|
|
43
44
|
options = [],
|
|
44
45
|
fieldNames = { label: 'label', value: 'value', children: 'children' },
|
|
45
46
|
placeholder = '请选择或输入地址',
|
|
47
|
+
maxLength = 80,
|
|
46
48
|
onChange,
|
|
47
49
|
value: externalValue,
|
|
48
50
|
className = '',
|
|
@@ -291,6 +293,7 @@ const CustomCascader = forwardRef<any, CustomCascaderProps>(
|
|
|
291
293
|
ref={inputRef}
|
|
292
294
|
placeholder={placeholder}
|
|
293
295
|
value={inputText}
|
|
296
|
+
maxLength={maxLength}
|
|
294
297
|
onChange={handleInputChange}
|
|
295
298
|
onCompositionStart={handleCompositionStart}
|
|
296
299
|
onCompositionEnd={handleCompositionEnd}
|
|
@@ -314,7 +314,8 @@ export default (form: WrappedFormUtils, isRequired?: boolean) => {
|
|
|
314
314
|
getPopupContainer={() => rootElement || document.body}
|
|
315
315
|
onChange={async (value) => {
|
|
316
316
|
await controller.wait()
|
|
317
|
-
|
|
317
|
+
form.setFieldsValue({'zwdj': undefined})
|
|
318
|
+
await controller.setEditPassenger({ jtgjlxDm: value, zwdj: '' });
|
|
318
319
|
}}
|
|
319
320
|
>
|
|
320
321
|
{(vehicleTypeList).map((e, i) => {
|
|
@@ -367,7 +368,7 @@ export default (form: WrappedFormUtils, isRequired?: boolean) => {
|
|
|
367
368
|
controller.setEditPassenger({ zwdj: value });
|
|
368
369
|
}}
|
|
369
370
|
>
|
|
370
|
-
{(levelOptions).map((e:any, i:any) => {
|
|
371
|
+
{(levelOptions).map((e: any, i: any) => {
|
|
371
372
|
return (
|
|
372
373
|
<Select.Option key={i} value={e.value}>
|
|
373
374
|
{e.label}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.kts-invoice-operate-
|
|
1
|
+
.kts-invoice-operate-passenger{
|
|
2
2
|
// padding : 20px;
|
|
3
3
|
border-bottom: 2px solid #9F613E;
|
|
4
4
|
border-left: 2px solid #9F613E;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
.kts-invoice-operate-
|
|
18
|
+
.kts-invoice-operate-passenger-list-digtal {
|
|
19
19
|
|
|
20
20
|
.goods-list-digtal-discount-tag {
|
|
21
21
|
display: inline-block;
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
.kts-invoice-operate-
|
|
35
|
+
.kts-invoice-operate-passenger-list-able {
|
|
36
36
|
display: flex;
|
|
37
37
|
padding: 10px;
|
|
38
38
|
border-bottom: 2px solid #9F613E;
|
|
@@ -46,13 +46,17 @@
|
|
|
46
46
|
color: #f00;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
+
input, .ktsAntX-select-selection-item {
|
|
50
|
+
font-size: 12px;
|
|
51
|
+
}
|
|
52
|
+
|
|
49
53
|
// .ktsAntX-table-row.kts-invoice-operate-goods-discount .ktsAntX-table-cell {
|
|
50
54
|
// background: #f5f5f5;
|
|
51
55
|
// }
|
|
52
56
|
}
|
|
53
57
|
}
|
|
54
58
|
|
|
55
|
-
.kts-invoice-operate-
|
|
59
|
+
.kts-invoice-operate-passenger-list-table-digtal {
|
|
56
60
|
|
|
57
61
|
.ktsAnt3x-form-item-control.has-error {
|
|
58
62
|
border: 1px solid #f00;
|
|
@@ -57,9 +57,6 @@ const Main = decorator<IGoodsListProps, FormComponentProps & IGoodsListProps>(Fo
|
|
|
57
57
|
|
|
58
58
|
const goodsList = controller.useMemo(s => s.passengerListState.goodsList, []);
|
|
59
59
|
|
|
60
|
-
/** 货物列表 */
|
|
61
|
-
const dataSource = controller.useMemo(s => s.passengerListState.goodsList, [])
|
|
62
|
-
|
|
63
60
|
/** 表格行事件 */
|
|
64
61
|
const onRow = useOnRow();
|
|
65
62
|
|
|
@@ -76,7 +73,9 @@ const Main = decorator<IGoodsListProps, FormComponentProps & IGoodsListProps>(Fo
|
|
|
76
73
|
|
|
77
74
|
React.useEffect(() => {
|
|
78
75
|
controller.run(async (s) => {
|
|
79
|
-
|
|
76
|
+
if (props.fieldNames) {
|
|
77
|
+
s.passengerListState.addressFieldNames = props.fieldNames
|
|
78
|
+
}
|
|
80
79
|
});
|
|
81
80
|
}, [props.fieldNames])
|
|
82
81
|
|
|
@@ -114,10 +113,10 @@ const Main = decorator<IGoodsListProps, FormComponentProps & IGoodsListProps>(Fo
|
|
|
114
113
|
// 注册 form
|
|
115
114
|
// controller.useForm('freightInfo', form);
|
|
116
115
|
return (
|
|
117
|
-
<div className="kts-invoice-operate-
|
|
116
|
+
<div className="kts-invoice-operate-passenger">
|
|
118
117
|
<div className='real-estate-info-digtal-label' >特定信息-旅客运输服务</div>
|
|
119
|
-
<div className="kts-invoice-operate-
|
|
120
|
-
<div className="kts-invoice-operate-
|
|
118
|
+
<div className="kts-invoice-operate-passenger-list-digtal" onClick={(e) => { e.stopPropagation() }} >
|
|
119
|
+
<div className="kts-invoice-operate-passenger-list-able">
|
|
121
120
|
{/* 添加行 */}
|
|
122
121
|
<AddRowButton />
|
|
123
122
|
|
|
@@ -129,14 +128,14 @@ const Main = decorator<IGoodsListProps, FormComponentProps & IGoodsListProps>(Fo
|
|
|
129
128
|
<div style={{ flex: 1 }} />
|
|
130
129
|
|
|
131
130
|
</div>
|
|
132
|
-
<div className={classnames('kts-invoice-operate-
|
|
131
|
+
<div className={classnames('kts-invoice-operate-passenger-list-table-digtal')}>
|
|
133
132
|
<TableVirtual
|
|
134
133
|
size="small"
|
|
135
134
|
rowKey="$index"
|
|
136
135
|
pagination={false}
|
|
137
136
|
scroll={{ y: 280 }}
|
|
138
137
|
components={{ body: { row: TableRow } }}
|
|
139
|
-
dataSource={
|
|
138
|
+
dataSource={goodsList}
|
|
140
139
|
columns={useColumns(props.form, isRequired)}
|
|
141
140
|
rowSelection={useRowSelection()}
|
|
142
141
|
onRow={record => ({
|