kts-component-invoice-operate 3.2.232 → 3.2.234
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
|
@@ -19256,11 +19256,18 @@ var CardSelect = /*#__PURE__*/function (_React$Component2) {
|
|
|
19256
19256
|
label: "中华人民共和国台湾居民居住证",
|
|
19257
19257
|
value: "238"
|
|
19258
19258
|
}];
|
|
19259
|
+
var getLable = React.useCallback(function (value) {
|
|
19260
|
+
var _option$find;
|
|
19261
|
+
|
|
19262
|
+
return ((_option$find = option.find(function (e) {
|
|
19263
|
+
return e.value === value;
|
|
19264
|
+
})) === null || _option$find === void 0 ? void 0 : _option$find.label) || '';
|
|
19265
|
+
}, []);
|
|
19259
19266
|
|
|
19260
19267
|
if (props.readOnly) {
|
|
19261
19268
|
return /*#__PURE__*/React.createElement("span", {
|
|
19262
19269
|
className: 'digtal-stakeholder-form-text'
|
|
19263
|
-
}, props.value);
|
|
19270
|
+
}, getLable(props.value));
|
|
19264
19271
|
} else {
|
|
19265
19272
|
return /*#__PURE__*/React.createElement(Select$1, _objectSpread2({
|
|
19266
19273
|
style: {
|
|
@@ -20029,11 +20036,18 @@ var NationalSelect = /*#__PURE__*/function (_React$Component3) {
|
|
|
20029
20036
|
value: "A00",
|
|
20030
20037
|
label: "科索沃"
|
|
20031
20038
|
}];
|
|
20039
|
+
var getLable = React.useCallback(function (value) {
|
|
20040
|
+
var _option$find2;
|
|
20041
|
+
|
|
20042
|
+
return ((_option$find2 = option.find(function (e) {
|
|
20043
|
+
return e.value === value;
|
|
20044
|
+
})) === null || _option$find2 === void 0 ? void 0 : _option$find2.label) || '';
|
|
20045
|
+
}, []);
|
|
20032
20046
|
|
|
20033
20047
|
if (props.readOnly) {
|
|
20034
20048
|
return /*#__PURE__*/React.createElement("span", {
|
|
20035
20049
|
className: 'digtal-stakeholder-form-text'
|
|
20036
|
-
}, props.value);
|
|
20050
|
+
}, getLable(props.value));
|
|
20037
20051
|
} else {
|
|
20038
20052
|
return /*#__PURE__*/React.createElement(Select$1, _objectSpread2({
|
|
20039
20053
|
options: option
|
|
@@ -28380,7 +28394,7 @@ var useColumns$3 = (function (form) {
|
|
|
28380
28394
|
|
|
28381
28395
|
case 2:
|
|
28382
28396
|
controller.setEditPay({
|
|
28383
|
-
|
|
28397
|
+
channel: value
|
|
28384
28398
|
});
|
|
28385
28399
|
|
|
28386
28400
|
case 3:
|
package/dist/index.js
CHANGED
|
@@ -19266,11 +19266,18 @@ var CardSelect = /*#__PURE__*/function (_React$Component2) {
|
|
|
19266
19266
|
label: "中华人民共和国台湾居民居住证",
|
|
19267
19267
|
value: "238"
|
|
19268
19268
|
}];
|
|
19269
|
+
var getLable = React__default['default'].useCallback(function (value) {
|
|
19270
|
+
var _option$find;
|
|
19271
|
+
|
|
19272
|
+
return ((_option$find = option.find(function (e) {
|
|
19273
|
+
return e.value === value;
|
|
19274
|
+
})) === null || _option$find === void 0 ? void 0 : _option$find.label) || '';
|
|
19275
|
+
}, []);
|
|
19269
19276
|
|
|
19270
19277
|
if (props.readOnly) {
|
|
19271
19278
|
return /*#__PURE__*/React__default['default'].createElement("span", {
|
|
19272
19279
|
className: 'digtal-stakeholder-form-text'
|
|
19273
|
-
}, props.value);
|
|
19280
|
+
}, getLable(props.value));
|
|
19274
19281
|
} else {
|
|
19275
19282
|
return /*#__PURE__*/React__default['default'].createElement(ktsXui.Select, _objectSpread2({
|
|
19276
19283
|
style: {
|
|
@@ -20039,11 +20046,18 @@ var NationalSelect = /*#__PURE__*/function (_React$Component3) {
|
|
|
20039
20046
|
value: "A00",
|
|
20040
20047
|
label: "科索沃"
|
|
20041
20048
|
}];
|
|
20049
|
+
var getLable = React__default['default'].useCallback(function (value) {
|
|
20050
|
+
var _option$find2;
|
|
20051
|
+
|
|
20052
|
+
return ((_option$find2 = option.find(function (e) {
|
|
20053
|
+
return e.value === value;
|
|
20054
|
+
})) === null || _option$find2 === void 0 ? void 0 : _option$find2.label) || '';
|
|
20055
|
+
}, []);
|
|
20042
20056
|
|
|
20043
20057
|
if (props.readOnly) {
|
|
20044
20058
|
return /*#__PURE__*/React__default['default'].createElement("span", {
|
|
20045
20059
|
className: 'digtal-stakeholder-form-text'
|
|
20046
|
-
}, props.value);
|
|
20060
|
+
}, getLable(props.value));
|
|
20047
20061
|
} else {
|
|
20048
20062
|
return /*#__PURE__*/React__default['default'].createElement(ktsXui.Select, _objectSpread2({
|
|
20049
20063
|
options: option
|
|
@@ -28390,7 +28404,7 @@ var useColumns$3 = (function (form) {
|
|
|
28390
28404
|
|
|
28391
28405
|
case 2:
|
|
28392
28406
|
controller.setEditPay({
|
|
28393
|
-
|
|
28407
|
+
channel: value
|
|
28394
28408
|
});
|
|
28395
28409
|
|
|
28396
28410
|
case 3:
|
package/package.json
CHANGED
|
@@ -82,7 +82,7 @@ export default (form: WrappedFormUtils) => {
|
|
|
82
82
|
getPopupContainer={() => rootElement || document.body}
|
|
83
83
|
onChange={async (value) => {
|
|
84
84
|
await controller.wait()
|
|
85
|
-
controller.setEditPay({
|
|
85
|
+
controller.setEditPay({ channel: value });
|
|
86
86
|
}}
|
|
87
87
|
>
|
|
88
88
|
{(record.vehicleList || vehicleTypeList).map((e, i) => {
|
|
@@ -572,27 +572,32 @@ class CardSelect extends React.Component<any> {
|
|
|
572
572
|
// { label: '出生医学证明', value: '291', },
|
|
573
573
|
// { label: '其他个人证件', value: '299', },
|
|
574
574
|
// ]
|
|
575
|
-
const option= [
|
|
576
|
-
|
|
575
|
+
const option = [
|
|
576
|
+
|
|
577
577
|
{ label: "居民身份证", value: "201" },
|
|
578
578
|
{ label: "外国护照", value: "208" },
|
|
579
579
|
{ label: "港澳同胞回乡证", value: "209" },
|
|
580
580
|
{ label: "港澳居民来往内地通行证", value: "210" },
|
|
581
|
-
|
|
581
|
+
|
|
582
582
|
{ label: "台湾居民来往大陆通行证", value: "213" },
|
|
583
|
-
|
|
583
|
+
|
|
584
584
|
{ label: "中国护照", value: "227" },
|
|
585
|
-
|
|
585
|
+
|
|
586
586
|
{ label: "外国人永久居留身份证", value: "233" },
|
|
587
|
-
|
|
587
|
+
|
|
588
588
|
{ label: "中华人民共和国港澳居民居住证", value: "237" },
|
|
589
589
|
{ label: "中华人民共和国台湾居民居住证", value: "238" },
|
|
590
|
-
|
|
591
|
-
|
|
590
|
+
|
|
591
|
+
];
|
|
592
|
+
const getLable = React.useCallback((value?: string) => {
|
|
593
|
+
|
|
594
|
+
return option.find(e => e.value === value)?.label || '';
|
|
595
|
+
|
|
596
|
+
}, [])
|
|
592
597
|
if (props.readOnly) {
|
|
593
|
-
return <span className='digtal-stakeholder-form-text'>{props.value}</span>
|
|
598
|
+
return <span className='digtal-stakeholder-form-text'>{getLable(props.value)}</span>
|
|
594
599
|
} else {
|
|
595
|
-
return <Select style={{width:200}} options={option} {...props} />
|
|
600
|
+
return <Select style={{ width: 200 }} options={option} {...props} />
|
|
596
601
|
}
|
|
597
602
|
}
|
|
598
603
|
}
|
|
@@ -850,9 +855,13 @@ class NationalSelect extends React.Component<any> {
|
|
|
850
855
|
{ value: "A00", label: "科索沃" }
|
|
851
856
|
];
|
|
852
857
|
|
|
853
|
-
|
|
858
|
+
const getLable = React.useCallback((value?: string) => {
|
|
859
|
+
|
|
860
|
+
return option.find(e => e.value === value)?.label || '';
|
|
861
|
+
|
|
862
|
+
}, [])
|
|
854
863
|
if (props.readOnly) {
|
|
855
|
-
return <span className='digtal-stakeholder-form-text'>{props.value}</span>
|
|
864
|
+
return <span className='digtal-stakeholder-form-text'>{getLable(props.value)}</span>
|
|
856
865
|
} else {
|
|
857
866
|
return <Select options={option} {...props} />
|
|
858
867
|
}
|