kts-component-invoice-operate 3.2.217 → 3.2.219-chinaship
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/README.md +0 -4
- package/dist/index.esm.js +171 -215
- package/dist/index.js +170 -214
- package/package.json +1 -1
- package/src/Invoice/Invoice-digtal/_test/realEstateInfo/index.tsx +2 -8
- package/src/Invoice/Invoice-digtal/index.md +8 -10
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/index.tsx +16 -12
- package/src/Invoice/ui/digtal/RealEstateInfo/index.less +0 -7
- package/src/Invoice/ui/digtal/RealEstateInfo/index.tsx +101 -151
- package/src/Invoice/ui/digtal/Stakeholder/index.tsx +22 -4
package/README.md
CHANGED
package/dist/index.esm.js
CHANGED
|
@@ -8,7 +8,7 @@ import { message as message$1, TableManual, Switch, AutoComplete as AutoComplete
|
|
|
8
8
|
import classnames from 'classnames';
|
|
9
9
|
import { Table } from 'kts-components-antd-x4-v4';
|
|
10
10
|
import { render } from 'react-dom';
|
|
11
|
-
import { DatePicker, Row as Row$1, Col as Col$1, Input as Input$2,
|
|
11
|
+
import { DatePicker, Row as Row$1, Col as Col$1, Cascader, Input as Input$2, Select as Select$2 } from 'kts-components-antd-x4';
|
|
12
12
|
import { Input as Input$3, NumberPicker } from '@formily/antd-components';
|
|
13
13
|
import { createAsyncFormActions, FormEffectHooks, SchemaForm, FormButtonGroup, SchemaMarkupField } from '@formily/antd';
|
|
14
14
|
|
|
@@ -17607,7 +17607,7 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17607
17607
|
placeholder: "\u8BF7\u8F93\u5165\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
17608
17608
|
autoComplete: "off"
|
|
17609
17609
|
})))), /*#__PURE__*/React.createElement(Col, {
|
|
17610
|
-
span: 10 +
|
|
17610
|
+
span: 10 + leqispanW,
|
|
17611
17611
|
style: {
|
|
17612
17612
|
display: isExpand ? undefined : 'none'
|
|
17613
17613
|
}
|
|
@@ -17624,7 +17624,7 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17624
17624
|
placeholder: "\u8BF7\u8F93\u5165\u8D2D\u4E70\u65B9\u5730\u5740",
|
|
17625
17625
|
autoComplete: "off"
|
|
17626
17626
|
})))), /*#__PURE__*/React.createElement(Col, {
|
|
17627
|
-
span: 10 +
|
|
17627
|
+
span: 10 + leqispanW,
|
|
17628
17628
|
style: {
|
|
17629
17629
|
display: isExpand ? undefined : 'none'
|
|
17630
17630
|
}
|
|
@@ -17638,7 +17638,22 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17638
17638
|
readOnly: isReadOnly('buyerPhone'),
|
|
17639
17639
|
placeholder: "\u8BF7\u8F93\u5165\u7535\u8BDD",
|
|
17640
17640
|
autoComplete: "off"
|
|
17641
|
-
})))), /*#__PURE__*/React.createElement(Col, {
|
|
17641
|
+
})))), props.leqi && /*#__PURE__*/React.createElement(Col, {
|
|
17642
|
+
span: 4,
|
|
17643
|
+
style: {
|
|
17644
|
+
display: isExpand ? undefined : 'none'
|
|
17645
|
+
}
|
|
17646
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
17647
|
+
colon: false
|
|
17648
|
+
}, getFieldDecorator('buyerAddressPhoneFlag', {
|
|
17649
|
+
valuePropName: 'checked'
|
|
17650
|
+
})( /*#__PURE__*/React.createElement(Checkbox$1, {
|
|
17651
|
+
onChange: props === null || props === void 0 ? void 0 : props.invoiceMarkCallback,
|
|
17652
|
+
disabled: isReadOnly('buyerAddressPhoneFlag'),
|
|
17653
|
+
style: {
|
|
17654
|
+
whiteSpace: 'nowrap'
|
|
17655
|
+
}
|
|
17656
|
+
}, "\u662F\u5426\u5C55\u793A")))), /*#__PURE__*/React.createElement(Col, {
|
|
17642
17657
|
span: 10 + leqispanW,
|
|
17643
17658
|
style: {
|
|
17644
17659
|
display: isExpand ? undefined : 'none'
|
|
@@ -17730,7 +17745,7 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17730
17745
|
placeholder: "\u8BF7\u8F93\u5165\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
17731
17746
|
autoComplete: "off"
|
|
17732
17747
|
})))), /*#__PURE__*/React.createElement(Col, {
|
|
17733
|
-
span: 10 +
|
|
17748
|
+
span: 10 + leqispanW,
|
|
17734
17749
|
style: {
|
|
17735
17750
|
display: isExpand ? undefined : 'none'
|
|
17736
17751
|
}
|
|
@@ -17747,7 +17762,7 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17747
17762
|
placeholder: "\u8BF7\u8F93\u5165\u9500\u552E\u65B9\u5730\u5740",
|
|
17748
17763
|
autoComplete: "off"
|
|
17749
17764
|
})))), /*#__PURE__*/React.createElement(Col, {
|
|
17750
|
-
span: 10 +
|
|
17765
|
+
span: 10 + leqispanW,
|
|
17751
17766
|
style: {
|
|
17752
17767
|
display: isExpand ? undefined : 'none'
|
|
17753
17768
|
}
|
|
@@ -17761,7 +17776,22 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17761
17776
|
readOnly: isReadOnly('sellerPhone'),
|
|
17762
17777
|
placeholder: "\u8BF7\u8F93\u5165\u7535\u8BDD",
|
|
17763
17778
|
autoComplete: "off"
|
|
17764
|
-
})))), /*#__PURE__*/React.createElement(Col, {
|
|
17779
|
+
})))), props.leqi && /*#__PURE__*/React.createElement(Col, {
|
|
17780
|
+
span: 4,
|
|
17781
|
+
style: {
|
|
17782
|
+
display: isExpand ? undefined : 'none'
|
|
17783
|
+
}
|
|
17784
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
17785
|
+
colon: false
|
|
17786
|
+
}, getFieldDecorator('sellerAddressPhoneFlag', {
|
|
17787
|
+
valuePropName: 'checked'
|
|
17788
|
+
})( /*#__PURE__*/React.createElement(Checkbox$1, {
|
|
17789
|
+
onChange: props === null || props === void 0 ? void 0 : props.invoiceMarkCallback,
|
|
17790
|
+
disabled: isReadOnly('sellerAddressPhoneFlag'),
|
|
17791
|
+
style: {
|
|
17792
|
+
whiteSpace: 'nowrap'
|
|
17793
|
+
}
|
|
17794
|
+
}, "\u662F\u5426\u5C55\u793A")))), /*#__PURE__*/React.createElement(Col, {
|
|
17765
17795
|
span: 10 + leqispanW,
|
|
17766
17796
|
style: {
|
|
17767
17797
|
display: isExpand ? undefined : 'none'
|
|
@@ -21850,24 +21880,34 @@ var useColumns$1 = (function (form) {
|
|
|
21850
21880
|
while (1) {
|
|
21851
21881
|
switch (_context6.prev = _context6.next) {
|
|
21852
21882
|
case 0:
|
|
21853
|
-
|
|
21883
|
+
if (!isValidateGood) {
|
|
21884
|
+
_context6.next = 10;
|
|
21885
|
+
break;
|
|
21886
|
+
}
|
|
21887
|
+
|
|
21888
|
+
_context6.next = 3;
|
|
21854
21889
|
return controller.wait();
|
|
21855
21890
|
|
|
21856
|
-
case
|
|
21891
|
+
case 3:
|
|
21857
21892
|
isvalue = !!value || value === 0;
|
|
21858
21893
|
isPrice = !!getFieldValue(isTaxIncluded ? 'priceIncludeTax' : 'priceExcludeTax') || getFieldValue(isTaxIncluded ? 'priceIncludeTax' : 'priceExcludeTax') === 0;
|
|
21859
21894
|
|
|
21860
21895
|
if (!(isvalue || isPrice === isvalue)) {
|
|
21861
|
-
_context6.next =
|
|
21896
|
+
_context6.next = 7;
|
|
21862
21897
|
break;
|
|
21863
21898
|
}
|
|
21864
21899
|
|
|
21865
21900
|
return _context6.abrupt("return");
|
|
21866
21901
|
|
|
21867
|
-
case
|
|
21902
|
+
case 7:
|
|
21868
21903
|
callback('请输入数量');
|
|
21904
|
+
_context6.next = 11;
|
|
21905
|
+
break;
|
|
21869
21906
|
|
|
21870
|
-
case
|
|
21907
|
+
case 10:
|
|
21908
|
+
callback();
|
|
21909
|
+
|
|
21910
|
+
case 11:
|
|
21871
21911
|
case "end":
|
|
21872
21912
|
return _context6.stop();
|
|
21873
21913
|
}
|
|
@@ -22156,7 +22196,7 @@ var useColumns$1 = (function (form) {
|
|
|
22156
22196
|
style: {
|
|
22157
22197
|
padding: '0 10px'
|
|
22158
22198
|
}
|
|
22159
|
-
}, formatSearch$1(parseFloat(value).toFixed(2), searchValue));
|
|
22199
|
+
}, value && formatSearch$1(parseFloat(value).toFixed(2), searchValue));
|
|
22160
22200
|
}
|
|
22161
22201
|
}
|
|
22162
22202
|
}, {
|
|
@@ -22219,7 +22259,7 @@ var useColumns$1 = (function (form) {
|
|
|
22219
22259
|
style: {
|
|
22220
22260
|
padding: '0 10px'
|
|
22221
22261
|
}
|
|
22222
|
-
}, formatSearch$1(parseFloat(value).toFixed(2), searchValue));
|
|
22262
|
+
}, value && formatSearch$1(parseFloat(value).toFixed(2), searchValue));
|
|
22223
22263
|
}
|
|
22224
22264
|
}
|
|
22225
22265
|
}, {
|
|
@@ -22331,7 +22371,7 @@ var useColumns$1 = (function (form) {
|
|
|
22331
22371
|
style: {
|
|
22332
22372
|
padding: '0 10px'
|
|
22333
22373
|
}
|
|
22334
|
-
}, isDutyFree$1(record) ? '***' : parseFloat(value).toFixed(2));
|
|
22374
|
+
}, isDutyFree$1(record) ? '***' : value && parseFloat(value).toFixed(2));
|
|
22335
22375
|
}
|
|
22336
22376
|
}
|
|
22337
22377
|
}] // 含税不含税
|
|
@@ -24309,7 +24349,7 @@ var Main$3 = decorator(Form.create())(function (props) {
|
|
|
24309
24349
|
})), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Statistics$1, null)));
|
|
24310
24350
|
});
|
|
24311
24351
|
|
|
24312
|
-
var css_248z$r = ".kts-invoice-operate-real-estate-info-digtal {\n padding: 20px;\n border-bottom: 2px solid #9F613E;\n border-left: 2px solid #9F613E;\n border-right: 2px solid #9F613E;\n}\n.kts-invoice-operate-real-estate-info-digtal .real-estate-info-digtal-label {\n color: #9F613E;\n font-weight: bold;\n}\n.kts-invoice-operate-real-estate-info-digtal .ktsAnt3x-row.ktsAnt3x-form-item {\n margin-bottom: 0;\n}\n
|
|
24352
|
+
var css_248z$r = ".kts-invoice-operate-real-estate-info-digtal {\n padding: 20px;\n border-bottom: 2px solid #9F613E;\n border-left: 2px solid #9F613E;\n border-right: 2px solid #9F613E;\n}\n.kts-invoice-operate-real-estate-info-digtal .real-estate-info-digtal-label {\n color: #9F613E;\n font-weight: bold;\n}\n.kts-invoice-operate-real-estate-info-digtal .ktsAnt3x-row.ktsAnt3x-form-item {\n margin-bottom: 0;\n}\n";
|
|
24313
24353
|
styleInject(css_248z$r);
|
|
24314
24354
|
|
|
24315
24355
|
var RangePicker = DatePicker.RangePicker;
|
|
@@ -24325,210 +24365,126 @@ var RealEstateInfo = decorator(Form.create())(function (props) {
|
|
|
24325
24365
|
}, []);
|
|
24326
24366
|
var readOnly = React.useMemo(function () {
|
|
24327
24367
|
return model === 'readOnly';
|
|
24328
|
-
}, [model]);
|
|
24329
|
-
var goodsList = controller.useMemo(function (s) {
|
|
24330
|
-
return s.goodsListState.goodsList;
|
|
24331
|
-
}, []);
|
|
24332
|
-
var indexRef = React.useRef([]);
|
|
24333
|
-
useEffect(function () {
|
|
24334
|
-
var dd = goodsList === null || goodsList === void 0 ? void 0 : goodsList.reduce(function (acc, cur) {
|
|
24335
|
-
if (cur.lineAttribute !== 1) {
|
|
24336
|
-
acc.push(cur.$index);
|
|
24337
|
-
}
|
|
24338
|
-
|
|
24339
|
-
return acc;
|
|
24340
|
-
}, []);
|
|
24341
|
-
indexRef.current = dd;
|
|
24342
|
-
}, [goodsList, indexRef]); // 注册 form
|
|
24368
|
+
}, [model]); // 注册 form
|
|
24343
24369
|
|
|
24344
24370
|
controller.useForm('realEstateInfo', form);
|
|
24345
|
-
|
|
24346
|
-
var getList = function getList() {
|
|
24347
|
-
var decrease = indexRef.current.length > goodsList.length;
|
|
24348
|
-
|
|
24349
|
-
if (decrease) {
|
|
24350
|
-
//已删行列表
|
|
24351
|
-
var diff = indexRef.current.filter(function (item) {
|
|
24352
|
-
return !goodsList.find(function (i) {
|
|
24353
|
-
return i.$index === item;
|
|
24354
|
-
});
|
|
24355
|
-
});
|
|
24356
|
-
var formData = form.getFieldValue('realEstateDataDto');
|
|
24357
|
-
|
|
24358
|
-
if (Array.isArray(formData) && diff.length > 0) {
|
|
24359
|
-
var newForm = formData === null || formData === void 0 ? void 0 : formData.filter(function (item) {
|
|
24360
|
-
return !diff.find(function (i) {
|
|
24361
|
-
return i === item.$index;
|
|
24362
|
-
});
|
|
24363
|
-
});
|
|
24364
|
-
form.setFieldsValue({
|
|
24365
|
-
realEstateDataDto: newForm
|
|
24366
|
-
});
|
|
24367
|
-
} else {
|
|
24368
|
-
form.setFieldsValue({
|
|
24369
|
-
realEstateDataDto: undefined
|
|
24370
|
-
});
|
|
24371
|
-
}
|
|
24372
|
-
}
|
|
24373
|
-
|
|
24374
|
-
console.log('goodsList', goodsList);
|
|
24375
|
-
return goodsList.filter(function (item) {
|
|
24376
|
-
return item.lineAttribute !== 1;
|
|
24377
|
-
}).map(function (item, index) {
|
|
24378
|
-
if (item.lineAttribute !== 1) {
|
|
24379
|
-
return /*#__PURE__*/React.createElement(Row$1, {
|
|
24380
|
-
gutter: [17, 0]
|
|
24381
|
-
}, /*#__PURE__*/React.createElement(Col$1, {
|
|
24382
|
-
span: 6
|
|
24383
|
-
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
24384
|
-
style: {
|
|
24385
|
-
display: 'none'
|
|
24386
|
-
}
|
|
24387
|
-
}, getFieldDecorator("realEstateDataDto[".concat(index, "].$index"), {
|
|
24388
|
-
initialValue: item.$index
|
|
24389
|
-
})( /*#__PURE__*/React.createElement(Input$2, null))), /*#__PURE__*/React.createElement(Form.Item, {
|
|
24390
|
-
label: "\u4E0D\u52A8\u4EA7\u5730\u5740"
|
|
24391
|
-
}, getFieldDecorator("realEstateDataDto[".concat(index, "].realEstateAddress"), {
|
|
24392
|
-
rules: readOnly ? [] : [{
|
|
24393
|
-
required: true,
|
|
24394
|
-
message: '请选择不动产地址'
|
|
24395
|
-
}]
|
|
24396
|
-
})(readOnly ? /*#__PURE__*/React.createElement(MyArrString, null) : /*#__PURE__*/React.createElement(Cascader, {
|
|
24397
|
-
style: {
|
|
24398
|
-
width: '100%'
|
|
24399
|
-
},
|
|
24400
|
-
options: props.realEstateAddressOptions,
|
|
24401
|
-
fieldNames: props.realEstateAddressFieldNames,
|
|
24402
|
-
placeholder: "\u8BF7\u9009\u62E9\u7701\u5E02\u533A\u53BF"
|
|
24403
|
-
})))), /*#__PURE__*/React.createElement(Col$1, {
|
|
24404
|
-
span: 6
|
|
24405
|
-
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
24406
|
-
label: "\u8BE6\u7EC6\u5730\u5740"
|
|
24407
|
-
}, getFieldDecorator("realEstateDataDto[".concat(index, "].realEstateDetailedAddress"), {
|
|
24408
|
-
rules: readOnly ? [] : [{
|
|
24409
|
-
required: true,
|
|
24410
|
-
message: '请输入详细地址'
|
|
24411
|
-
}, {
|
|
24412
|
-
max: 120,
|
|
24413
|
-
message: '详细地址最多120个字符'
|
|
24414
|
-
}, {
|
|
24415
|
-
validator: function () {
|
|
24416
|
-
var _validator = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_, value, callback) {
|
|
24417
|
-
var pattern;
|
|
24418
|
-
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
24419
|
-
while (1) {
|
|
24420
|
-
switch (_context.prev = _context.next) {
|
|
24421
|
-
case 0:
|
|
24422
|
-
pattern = /街|路|村|乡|镇|道|巷|号/;
|
|
24423
|
-
|
|
24424
|
-
if (pattern.test(value)) {
|
|
24425
|
-
callback();
|
|
24426
|
-
} else {
|
|
24427
|
-
callback('地址必须包含“街”、“路”、“村”、“乡”、“镇”、“道”、“巷”、“号”等任意一个关键词');
|
|
24428
|
-
}
|
|
24429
|
-
|
|
24430
|
-
case 2:
|
|
24431
|
-
case "end":
|
|
24432
|
-
return _context.stop();
|
|
24433
|
-
}
|
|
24434
|
-
}
|
|
24435
|
-
}, _callee);
|
|
24436
|
-
}));
|
|
24437
|
-
|
|
24438
|
-
function validator(_x, _x2, _x3) {
|
|
24439
|
-
return _validator.apply(this, arguments);
|
|
24440
|
-
}
|
|
24441
|
-
|
|
24442
|
-
return validator;
|
|
24443
|
-
}()
|
|
24444
|
-
}]
|
|
24445
|
-
})(readOnly ? /*#__PURE__*/React.createElement(MyDiv$3, null) : /*#__PURE__*/React.createElement(Input$2, {
|
|
24446
|
-
autoComplete: 'off',
|
|
24447
|
-
placeholder: "\u8BF7\u8F93\u5165\u8BE6\u7EC6\u5730\u5740"
|
|
24448
|
-
})))), /*#__PURE__*/React.createElement(Col$1, {
|
|
24449
|
-
span: 6
|
|
24450
|
-
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
24451
|
-
label: "\u79DF\u8D41\u671F\u8D77\u6B62"
|
|
24452
|
-
}, getFieldDecorator("realEstateDataDto[".concat(index, "].leaseTerm"), {
|
|
24453
|
-
rules: readOnly ? [] : [{
|
|
24454
|
-
required: true,
|
|
24455
|
-
message: '请输入租赁期'
|
|
24456
|
-
}]
|
|
24457
|
-
})(readOnly ? /*#__PURE__*/React.createElement(MyArrMoment, null) : /*#__PURE__*/React.createElement(RangePicker, {
|
|
24458
|
-
style: {
|
|
24459
|
-
width: '100%'
|
|
24460
|
-
}
|
|
24461
|
-
})))), /*#__PURE__*/React.createElement(Col$1, {
|
|
24462
|
-
span: 6
|
|
24463
|
-
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
24464
|
-
label: "\u8DE8\u5730\uFF08\u5E02\uFF09\u6807\u5FD7"
|
|
24465
|
-
}, getFieldDecorator("realEstateDataDto[".concat(index, "].crossCitiesSign"), {
|
|
24466
|
-
rules: readOnly ? [] : [{
|
|
24467
|
-
required: true,
|
|
24468
|
-
message: '请选择跨地(市)标志'
|
|
24469
|
-
}]
|
|
24470
|
-
})(readOnly ? /*#__PURE__*/React.createElement(MyNY, null) : /*#__PURE__*/React.createElement(Select$2, {
|
|
24471
|
-
placeholder: "\u8BF7\u9009\u62E9",
|
|
24472
|
-
style: {
|
|
24473
|
-
width: '100%'
|
|
24474
|
-
}
|
|
24475
|
-
}, /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
24476
|
-
value: 'Y'
|
|
24477
|
-
}, "\u662F"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
24478
|
-
value: 'N'
|
|
24479
|
-
}, "\u5426"))))), /*#__PURE__*/React.createElement(Col$1, {
|
|
24480
|
-
span: 6
|
|
24481
|
-
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
24482
|
-
label: "\u4EA7\u6743\u8BC1\u4E66/\u4E0D\u52A8\u4EA7\u6743\u8BC1\u53F7"
|
|
24483
|
-
}, getFieldDecorator("realEstateDataDto[".concat(index, "].realEstateNumber"), {
|
|
24484
|
-
rules: readOnly ? [] : [{
|
|
24485
|
-
required: true,
|
|
24486
|
-
message: '请输入证书编号,若没有证书填写“无”'
|
|
24487
|
-
}, {
|
|
24488
|
-
max: 40,
|
|
24489
|
-
message: '证书编号最多40个字符'
|
|
24490
|
-
}]
|
|
24491
|
-
})(readOnly ? /*#__PURE__*/React.createElement(MyDiv$3, null) : /*#__PURE__*/React.createElement(Input$2, {
|
|
24492
|
-
autoComplete: 'off',
|
|
24493
|
-
placeholder: "\u8BF7\u8F93\u5165\u8BC1\u4E66\u7F16\u53F7\uFF0C\u82E5\u6CA1\u6709\u8BC1\u4E66\u586B\u5199\u201C\u65E0\u201D"
|
|
24494
|
-
})))), /*#__PURE__*/React.createElement(Col$1, {
|
|
24495
|
-
span: 6
|
|
24496
|
-
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
24497
|
-
label: "\u9762\u79EF\u5355\u4F4D"
|
|
24498
|
-
}, getFieldDecorator("realEstateDataDto[".concat(index, "].realEstateUnit"), {
|
|
24499
|
-
rules: readOnly ? [] : [{
|
|
24500
|
-
required: true,
|
|
24501
|
-
message: '请选择面积单位'
|
|
24502
|
-
}]
|
|
24503
|
-
})(readOnly ? /*#__PURE__*/React.createElement(MyDiv$3, null) : /*#__PURE__*/React.createElement(Select$2, {
|
|
24504
|
-
placeholder: "\u8BF7\u9009\u62E9",
|
|
24505
|
-
style: {
|
|
24506
|
-
width: '100%'
|
|
24507
|
-
}
|
|
24508
|
-
}, /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
24509
|
-
value: "\u5E73\u65B9\u5343\u7C73"
|
|
24510
|
-
}, "\u5E73\u65B9\u5343\u7C73"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
24511
|
-
value: "\u5E73\u65B9\u7C73"
|
|
24512
|
-
}, "\u5E73\u65B9\u7C73"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
24513
|
-
value: "\u516C\u9877"
|
|
24514
|
-
}, "\u516C\u9877"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
24515
|
-
value: "\u4EA9"
|
|
24516
|
-
}, "\u4EA9"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
24517
|
-
value: "h\u33A1"
|
|
24518
|
-
}, "h\u33A1"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
24519
|
-
value: "k\u33A1"
|
|
24520
|
-
}, "k\u33A1"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
24521
|
-
value: "\u33A1"
|
|
24522
|
-
}, "\u33A1"))))));
|
|
24523
|
-
}
|
|
24524
|
-
});
|
|
24525
|
-
};
|
|
24526
|
-
|
|
24527
24371
|
return /*#__PURE__*/React.createElement("div", {
|
|
24528
24372
|
className: "kts-invoice-operate-real-estate-info-digtal"
|
|
24529
24373
|
}, /*#__PURE__*/React.createElement("div", {
|
|
24530
24374
|
className: 'real-estate-info-digtal-label'
|
|
24531
|
-
}, "\u7279\u6B8A\u4FE1\u606F-\u4E0D\u52A8\u4EA7\u7ECF\u8425\u79DF\u8D41\u670D\u52A1"),
|
|
24375
|
+
}, "\u7279\u6B8A\u4FE1\u606F-\u4E0D\u52A8\u4EA7\u7ECF\u8425\u79DF\u8D41\u670D\u52A1"), /*#__PURE__*/React.createElement(Row$1, {
|
|
24376
|
+
gutter: [17, 0]
|
|
24377
|
+
}, /*#__PURE__*/React.createElement(Col$1, {
|
|
24378
|
+
span: 6
|
|
24379
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
24380
|
+
label: "\u4E0D\u52A8\u4EA7\u5730\u5740"
|
|
24381
|
+
}, getFieldDecorator('realEstateAddress', {
|
|
24382
|
+
rules: readOnly ? [] : [{
|
|
24383
|
+
required: true,
|
|
24384
|
+
message: '请选择不动产地址'
|
|
24385
|
+
}]
|
|
24386
|
+
})(readOnly ? /*#__PURE__*/React.createElement(MyArrString, null) : /*#__PURE__*/React.createElement(Cascader, {
|
|
24387
|
+
style: {
|
|
24388
|
+
width: '100%'
|
|
24389
|
+
},
|
|
24390
|
+
options: props.realEstateAddressOptions,
|
|
24391
|
+
fieldNames: props.realEstateAddressFieldNames,
|
|
24392
|
+
placeholder: "\u8BF7\u9009\u62E9\u7701\u5E02\u533A\u53BF"
|
|
24393
|
+
})))), /*#__PURE__*/React.createElement(Col$1, {
|
|
24394
|
+
span: 6
|
|
24395
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
24396
|
+
label: "\u8BE6\u7EC6\u5730\u5740"
|
|
24397
|
+
}, getFieldDecorator('realEstateDetailedAddress', {
|
|
24398
|
+
rules: readOnly ? [] : [{
|
|
24399
|
+
required: true,
|
|
24400
|
+
message: '请输入详细地址'
|
|
24401
|
+
}, {
|
|
24402
|
+
max: 120,
|
|
24403
|
+
message: '详细地址最多120个字符'
|
|
24404
|
+
}, {
|
|
24405
|
+
validator: function validator(_, value) {
|
|
24406
|
+
var pattern = /街|路|村|乡|镇|道|巷|号/;
|
|
24407
|
+
return pattern.test(value) ? Promise.resolve() : Promise.reject('地址必须包含“街”、“路”、“村”、“乡”、“镇”、“道”、“巷”、“号”等任意一个关键词');
|
|
24408
|
+
}
|
|
24409
|
+
}]
|
|
24410
|
+
})(readOnly ? /*#__PURE__*/React.createElement(MyDiv$3, null) : /*#__PURE__*/React.createElement(Input$2, {
|
|
24411
|
+
autoComplete: 'off',
|
|
24412
|
+
placeholder: "\u8BF7\u8F93\u5165\u8BE6\u7EC6\u5730\u5740"
|
|
24413
|
+
})))), /*#__PURE__*/React.createElement(Col$1, {
|
|
24414
|
+
span: 6
|
|
24415
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
24416
|
+
label: "\u79DF\u8D41\u671F\u8D77\u6B62"
|
|
24417
|
+
}, getFieldDecorator('leaseTerm', {
|
|
24418
|
+
rules: readOnly ? [] : [{
|
|
24419
|
+
required: true,
|
|
24420
|
+
message: '请输入租赁期'
|
|
24421
|
+
}]
|
|
24422
|
+
})(readOnly ? /*#__PURE__*/React.createElement(MyArrMoment, null) : /*#__PURE__*/React.createElement(RangePicker, {
|
|
24423
|
+
style: {
|
|
24424
|
+
width: '100%'
|
|
24425
|
+
}
|
|
24426
|
+
})))), /*#__PURE__*/React.createElement(Col$1, {
|
|
24427
|
+
span: 6
|
|
24428
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
24429
|
+
label: "\u8DE8\u5730\uFF08\u5E02\uFF09\u6807\u5FD7"
|
|
24430
|
+
}, getFieldDecorator('crossCitiesSign', {
|
|
24431
|
+
rules: readOnly ? [] : [{
|
|
24432
|
+
required: true,
|
|
24433
|
+
message: '请选择跨地(市)标志'
|
|
24434
|
+
}]
|
|
24435
|
+
})(readOnly ? /*#__PURE__*/React.createElement(MyNY, null) : /*#__PURE__*/React.createElement(Select$2, {
|
|
24436
|
+
placeholder: "\u8BF7\u9009\u62E9",
|
|
24437
|
+
style: {
|
|
24438
|
+
width: '100%'
|
|
24439
|
+
}
|
|
24440
|
+
}, /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
24441
|
+
value: 'Y'
|
|
24442
|
+
}, "\u662F"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
24443
|
+
value: 'N'
|
|
24444
|
+
}, "\u5426"))))), /*#__PURE__*/React.createElement(Col$1, {
|
|
24445
|
+
span: 6
|
|
24446
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
24447
|
+
label: "\u4EA7\u6743\u8BC1\u4E66/\u4E0D\u52A8\u4EA7\u6743\u8BC1\u53F7"
|
|
24448
|
+
}, getFieldDecorator('realEstateNumber', {
|
|
24449
|
+
rules: readOnly ? [] : [{
|
|
24450
|
+
required: true,
|
|
24451
|
+
message: '请输入证书编号,若没有证书填写“无”'
|
|
24452
|
+
}, {
|
|
24453
|
+
max: 40,
|
|
24454
|
+
message: '证书编号最多40个字符'
|
|
24455
|
+
}]
|
|
24456
|
+
})(readOnly ? /*#__PURE__*/React.createElement(MyDiv$3, null) : /*#__PURE__*/React.createElement(Input$2, {
|
|
24457
|
+
autoComplete: 'off',
|
|
24458
|
+
placeholder: "\u8BF7\u8F93\u5165\u8BC1\u4E66\u7F16\u53F7\uFF0C\u82E5\u6CA1\u6709\u8BC1\u4E66\u586B\u5199\u201C\u65E0\u201D"
|
|
24459
|
+
})))), /*#__PURE__*/React.createElement(Col$1, {
|
|
24460
|
+
span: 6
|
|
24461
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
24462
|
+
label: "\u9762\u79EF\u5355\u4F4D"
|
|
24463
|
+
}, getFieldDecorator('realEstateUnit', {
|
|
24464
|
+
rules: readOnly ? [] : [{
|
|
24465
|
+
required: true,
|
|
24466
|
+
message: '请选择面积单位'
|
|
24467
|
+
}]
|
|
24468
|
+
})(readOnly ? /*#__PURE__*/React.createElement(MyDiv$3, null) : /*#__PURE__*/React.createElement(Select$2, {
|
|
24469
|
+
placeholder: "\u8BF7\u9009\u62E9",
|
|
24470
|
+
style: {
|
|
24471
|
+
width: '100%'
|
|
24472
|
+
}
|
|
24473
|
+
}, /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
24474
|
+
value: "\u5E73\u65B9\u5343\u7C73"
|
|
24475
|
+
}, "\u5E73\u65B9\u5343\u7C73"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
24476
|
+
value: "\u5E73\u65B9\u7C73"
|
|
24477
|
+
}, "\u5E73\u65B9\u7C73"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
24478
|
+
value: "\u516C\u9877"
|
|
24479
|
+
}, "\u516C\u9877"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
24480
|
+
value: "\u4EA9"
|
|
24481
|
+
}, "\u4EA9"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
24482
|
+
value: "h\u33A1"
|
|
24483
|
+
}, "h\u33A1"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
24484
|
+
value: "k\u33A1"
|
|
24485
|
+
}, "k\u33A1"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
24486
|
+
value: "\u33A1"
|
|
24487
|
+
}, "\u33A1")))))));
|
|
24532
24488
|
});
|
|
24533
24489
|
|
|
24534
24490
|
var MyDiv$3 = /*#__PURE__*/function (_React$Component) {
|
|
@@ -24604,7 +24560,7 @@ var MyArrMoment = /*#__PURE__*/function (_React$Component3) {
|
|
|
24604
24560
|
color: '#9F603D',
|
|
24605
24561
|
fontWeight: 600
|
|
24606
24562
|
}
|
|
24607
|
-
}, " - "), /*#__PURE__*/React.createElement("span", null, hooks.isMoment(value[1]) && value[
|
|
24563
|
+
}, " - "), /*#__PURE__*/React.createElement("span", null, hooks.isMoment(value[1]) && value[0].format('YYYY-MM-DD')));
|
|
24608
24564
|
}
|
|
24609
24565
|
}]);
|
|
24610
24566
|
|