kts-component-invoice-operate 3.2.259 → 3.2.260
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js
CHANGED
|
@@ -1603,11 +1603,7 @@ var PassengerListState = /*#__PURE__*/_createClass(function PassengerListState()
|
|
|
1603
1603
|
}, {
|
|
1604
1604
|
title: '出行人证件类型',
|
|
1605
1605
|
dataIndex: 'cxrzjlxDm',
|
|
1606
|
-
key: 'cxrzjlxDm'
|
|
1607
|
-
}, {
|
|
1608
|
-
title: '出行人证件号码',
|
|
1609
|
-
dataIndex: 'sfzjhm',
|
|
1610
|
-
key: 'sfzjhm',
|
|
1606
|
+
key: 'cxrzjlxDm',
|
|
1611
1607
|
render: function render(text) {
|
|
1612
1608
|
var _CertificateTypeList$;
|
|
1613
1609
|
|
|
@@ -1615,6 +1611,10 @@ var PassengerListState = /*#__PURE__*/_createClass(function PassengerListState()
|
|
|
1615
1611
|
return e.value === text;
|
|
1616
1612
|
})) === null || _CertificateTypeList$ === void 0 ? void 0 : _CertificateTypeList$.label) || '';
|
|
1617
1613
|
}
|
|
1614
|
+
}, {
|
|
1615
|
+
title: '出行人证件号码',
|
|
1616
|
+
dataIndex: 'sfzjhm',
|
|
1617
|
+
key: 'sfzjhm'
|
|
1618
1618
|
}, {
|
|
1619
1619
|
title: '出发点',
|
|
1620
1620
|
dataIndex: 'cfd',
|
|
@@ -31397,8 +31397,9 @@ var ImportPassengerDrawer = (function () {
|
|
|
31397
31397
|
switch (_context.prev = _context.next) {
|
|
31398
31398
|
case 0:
|
|
31399
31399
|
s.passengerListState.isVisibleDrawer = false;
|
|
31400
|
+
s.passengerListState.dataSource = [];
|
|
31400
31401
|
|
|
31401
|
-
case
|
|
31402
|
+
case 2:
|
|
31402
31403
|
case "end":
|
|
31403
31404
|
return _context.stop();
|
|
31404
31405
|
}
|
|
@@ -31506,16 +31507,6 @@ var DrawerBody$3 = function DrawerBody() {
|
|
|
31506
31507
|
percent = _React$useState6[0],
|
|
31507
31508
|
setPercent = _React$useState6[1];
|
|
31508
31509
|
|
|
31509
|
-
var _React$useState7 = React.useState([]),
|
|
31510
|
-
_React$useState8 = _slicedToArray(_React$useState7, 2),
|
|
31511
|
-
fileData = _React$useState8[0],
|
|
31512
|
-
setFileData = _React$useState8[1];
|
|
31513
|
-
|
|
31514
|
-
var _React$useState9 = React.useState(false),
|
|
31515
|
-
_React$useState10 = _slicedToArray(_React$useState9, 2),
|
|
31516
|
-
success = _React$useState10[0],
|
|
31517
|
-
setSuccess = _React$useState10[1];
|
|
31518
|
-
|
|
31519
31510
|
var columns = controller.useMemo(function (s) {
|
|
31520
31511
|
return s.passengerListState.columns;
|
|
31521
31512
|
}, []);
|
|
@@ -31644,7 +31635,7 @@ var DrawerBody$3 = function DrawerBody() {
|
|
|
31644
31635
|
color: '#1890ff',
|
|
31645
31636
|
borderColor: '#1890ff'
|
|
31646
31637
|
} : undefined
|
|
31647
|
-
}, fileName ? '重新选择' : "选择文件"))),
|
|
31638
|
+
}, fileName ? '重新选择' : "选择文件"))), dataSource && dataSource.length && /*#__PURE__*/React.createElement("div", {
|
|
31648
31639
|
style: {
|
|
31649
31640
|
marginBottom: 20,
|
|
31650
31641
|
marginTop: 20
|
package/dist/index.js
CHANGED
|
@@ -1613,11 +1613,7 @@ var PassengerListState = /*#__PURE__*/_createClass(function PassengerListState()
|
|
|
1613
1613
|
}, {
|
|
1614
1614
|
title: '出行人证件类型',
|
|
1615
1615
|
dataIndex: 'cxrzjlxDm',
|
|
1616
|
-
key: 'cxrzjlxDm'
|
|
1617
|
-
}, {
|
|
1618
|
-
title: '出行人证件号码',
|
|
1619
|
-
dataIndex: 'sfzjhm',
|
|
1620
|
-
key: 'sfzjhm',
|
|
1616
|
+
key: 'cxrzjlxDm',
|
|
1621
1617
|
render: function render(text) {
|
|
1622
1618
|
var _CertificateTypeList$;
|
|
1623
1619
|
|
|
@@ -1625,6 +1621,10 @@ var PassengerListState = /*#__PURE__*/_createClass(function PassengerListState()
|
|
|
1625
1621
|
return e.value === text;
|
|
1626
1622
|
})) === null || _CertificateTypeList$ === void 0 ? void 0 : _CertificateTypeList$.label) || '';
|
|
1627
1623
|
}
|
|
1624
|
+
}, {
|
|
1625
|
+
title: '出行人证件号码',
|
|
1626
|
+
dataIndex: 'sfzjhm',
|
|
1627
|
+
key: 'sfzjhm'
|
|
1628
1628
|
}, {
|
|
1629
1629
|
title: '出发点',
|
|
1630
1630
|
dataIndex: 'cfd',
|
|
@@ -31407,8 +31407,9 @@ var ImportPassengerDrawer = (function () {
|
|
|
31407
31407
|
switch (_context.prev = _context.next) {
|
|
31408
31408
|
case 0:
|
|
31409
31409
|
s.passengerListState.isVisibleDrawer = false;
|
|
31410
|
+
s.passengerListState.dataSource = [];
|
|
31410
31411
|
|
|
31411
|
-
case
|
|
31412
|
+
case 2:
|
|
31412
31413
|
case "end":
|
|
31413
31414
|
return _context.stop();
|
|
31414
31415
|
}
|
|
@@ -31516,16 +31517,6 @@ var DrawerBody$3 = function DrawerBody() {
|
|
|
31516
31517
|
percent = _React$useState6[0],
|
|
31517
31518
|
setPercent = _React$useState6[1];
|
|
31518
31519
|
|
|
31519
|
-
var _React$useState7 = React__default['default'].useState([]),
|
|
31520
|
-
_React$useState8 = _slicedToArray(_React$useState7, 2),
|
|
31521
|
-
fileData = _React$useState8[0],
|
|
31522
|
-
setFileData = _React$useState8[1];
|
|
31523
|
-
|
|
31524
|
-
var _React$useState9 = React__default['default'].useState(false),
|
|
31525
|
-
_React$useState10 = _slicedToArray(_React$useState9, 2),
|
|
31526
|
-
success = _React$useState10[0],
|
|
31527
|
-
setSuccess = _React$useState10[1];
|
|
31528
|
-
|
|
31529
31520
|
var columns = controller.useMemo(function (s) {
|
|
31530
31521
|
return s.passengerListState.columns;
|
|
31531
31522
|
}, []);
|
|
@@ -31654,7 +31645,7 @@ var DrawerBody$3 = function DrawerBody() {
|
|
|
31654
31645
|
color: '#1890ff',
|
|
31655
31646
|
borderColor: '#1890ff'
|
|
31656
31647
|
} : undefined
|
|
31657
|
-
}, fileName ? '重新选择' : "选择文件"))),
|
|
31648
|
+
}, fileName ? '重新选择' : "选择文件"))), dataSource && dataSource.length && /*#__PURE__*/React__default['default'].createElement("div", {
|
|
31658
31649
|
style: {
|
|
31659
31650
|
marginBottom: 20,
|
|
31660
31651
|
marginTop: 20
|
package/package.json
CHANGED
|
@@ -140,14 +140,14 @@ export default class PassengerListState {
|
|
|
140
140
|
title: '出行人证件类型',
|
|
141
141
|
dataIndex: 'cxrzjlxDm',
|
|
142
142
|
key: 'cxrzjlxDm',
|
|
143
|
+
render: (text: any) => {
|
|
144
|
+
return CertificateTypeList.find(e => e.value === text)?.label || '';
|
|
145
|
+
}
|
|
143
146
|
},
|
|
144
147
|
{
|
|
145
148
|
title: '出行人证件号码',
|
|
146
149
|
dataIndex: 'sfzjhm',
|
|
147
150
|
key: 'sfzjhm',
|
|
148
|
-
render: (text: any) => {
|
|
149
|
-
return CertificateTypeList.find(e => e.value === text)?.label || '';
|
|
150
|
-
}
|
|
151
151
|
},
|
|
152
152
|
{
|
|
153
153
|
title: '出发点',
|
|
@@ -31,6 +31,7 @@ export default () => {
|
|
|
31
31
|
const onClose = React.useCallback(() => {
|
|
32
32
|
controller.pipeline(async s => {
|
|
33
33
|
s.passengerListState.isVisibleDrawer = false;
|
|
34
|
+
s.passengerListState.dataSource = [];
|
|
34
35
|
})();
|
|
35
36
|
}, [controller]);
|
|
36
37
|
|
|
@@ -82,8 +83,6 @@ const DrawerBody = () => {
|
|
|
82
83
|
const [fileName, setFileName] = React.useState('');
|
|
83
84
|
const [status, setStatus] = React.useState<'idle' | 'uploading' | 'done' | 'error'>('idle');
|
|
84
85
|
const [percent, setPercent] = React.useState(0);
|
|
85
|
-
const [fileData, setFileData] = React.useState<any[]>([]);
|
|
86
|
-
const [success, setSuccess] = React.useState(false);
|
|
87
86
|
|
|
88
87
|
const columns = controller.useMemo(s => s.passengerListState.columns, []);
|
|
89
88
|
|
|
@@ -190,7 +189,7 @@ const DrawerBody = () => {
|
|
|
190
189
|
</Button>
|
|
191
190
|
</Upload>
|
|
192
191
|
</div>
|
|
193
|
-
{
|
|
192
|
+
{dataSource && dataSource.length && <div style={{ marginBottom: 20, marginTop: 20 }}>
|
|
194
193
|
<Alert type="success" showIcon message={
|
|
195
194
|
<span>
|
|
196
195
|
文件导入成功,处理旅客运输服务特定信息记录{dataSource.length}条,处理成功{dataSource.length}条。
|