kts-component-invoice-operate 4.0.2 → 4.0.3
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/Invoice-digtal/_test/realEstateSales/index.d.ts +4 -0
- package/dist/Invoice/index.d.ts +2 -0
- package/dist/Invoice/ui/digtal/RealEstateSales/index.d.ts +15 -0
- package/dist/index.esm.js +372 -21
- package/dist/index.js +372 -21
- package/package.json +1 -1
- package/src/Invoice/Invoice-digtal/_test/realEstateInfo/index.tsx +58 -8
- package/src/Invoice/Invoice-digtal/_test/realEstateSales/index.tsx +77 -0
- package/src/Invoice/Invoice-digtal/index.md +6 -2
- package/src/Invoice/index.tsx +4 -0
- package/src/Invoice/ui/digtal/RealEstateInfo/index.tsx +3 -1
- package/src/Invoice/ui/digtal/RealEstateSales/index.less +22 -0
- package/src/Invoice/ui/digtal/RealEstateSales/index.tsx +301 -0
package/dist/index.js
CHANGED
|
@@ -24357,7 +24357,8 @@ var RealEstateInfo = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(f
|
|
|
24357
24357
|
}
|
|
24358
24358
|
}
|
|
24359
24359
|
|
|
24360
|
-
console.log(
|
|
24360
|
+
console.log(form.getFieldsValue());
|
|
24361
|
+
console.log('goodsList', goodsList);
|
|
24361
24362
|
return goodsList.map(function (item, index) {
|
|
24362
24363
|
if (item.lineAttribute === 0) {
|
|
24363
24364
|
return /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Row, {
|
|
@@ -24618,9 +24619,356 @@ var MyNY = /*#__PURE__*/function (_React$Component4) {
|
|
|
24618
24619
|
return MyNY;
|
|
24619
24620
|
}(React__default['default'].Component);
|
|
24620
24621
|
|
|
24621
|
-
var css_248z$s = ".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.kts-invoice-operate-real-estate-info-digtal .
|
|
24622
|
+
var css_248z$s = ".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.kts-invoice-operate-real-estate-info-digtal .ktsAntX-row {\n border-bottom: 1px dashed #9F613E;\n}\n.kts-invoice-operate-real-estate-info-digtal .ktsAntX-row:last-child {\n border-bottom: none;\n}\n";
|
|
24622
24623
|
styleInject(css_248z$s);
|
|
24623
24624
|
|
|
24625
|
+
var RangePicker$1 = ktsComponentsAntdX4.DatePicker.RangePicker;
|
|
24626
|
+
/** 特殊信息-不动产销售 */
|
|
24627
|
+
|
|
24628
|
+
var RealEstateSales = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(function (props) {
|
|
24629
|
+
/** 控制器 */
|
|
24630
|
+
var controller = Invoice.useInvoiceController();
|
|
24631
|
+
var form = props.form;
|
|
24632
|
+
var getFieldDecorator = form.getFieldDecorator;
|
|
24633
|
+
var model = controller.useMemo(function (s) {
|
|
24634
|
+
return s.model;
|
|
24635
|
+
}, []);
|
|
24636
|
+
var readOnly = React__default['default'].useMemo(function () {
|
|
24637
|
+
return model === 'readOnly';
|
|
24638
|
+
}, [model]);
|
|
24639
|
+
var goodsList = controller.useMemo(function (s) {
|
|
24640
|
+
return s.goodsListState.goodsList;
|
|
24641
|
+
}, []);
|
|
24642
|
+
var indexRef = React__default['default'].useRef([]);
|
|
24643
|
+
React.useEffect(function () {
|
|
24644
|
+
var dd = goodsList === null || goodsList === void 0 ? void 0 : goodsList.reduce(function (acc, cur) {
|
|
24645
|
+
if (cur.lineAttribute === 0) {
|
|
24646
|
+
acc.push(cur.$index);
|
|
24647
|
+
}
|
|
24648
|
+
|
|
24649
|
+
return acc;
|
|
24650
|
+
}, []);
|
|
24651
|
+
indexRef.current = dd;
|
|
24652
|
+
}, [goodsList, indexRef]); // 注册 form
|
|
24653
|
+
|
|
24654
|
+
controller.useForm('realEstateSales', form);
|
|
24655
|
+
|
|
24656
|
+
var getList = function getList() {
|
|
24657
|
+
var decrease = indexRef.current.length > goodsList.length;
|
|
24658
|
+
|
|
24659
|
+
if (decrease) {
|
|
24660
|
+
//已删行列表
|
|
24661
|
+
var diff = indexRef.current.filter(function (item) {
|
|
24662
|
+
return !goodsList.find(function (i) {
|
|
24663
|
+
return i.$index === item;
|
|
24664
|
+
});
|
|
24665
|
+
});
|
|
24666
|
+
var formData = form.getFieldValue('realEstateDataDto');
|
|
24667
|
+
|
|
24668
|
+
if (Array.isArray(formData) && diff.length > 0) {
|
|
24669
|
+
var newForm = formData === null || formData === void 0 ? void 0 : formData.filter(function (item) {
|
|
24670
|
+
return !diff.find(function (i) {
|
|
24671
|
+
return i === item.$index;
|
|
24672
|
+
});
|
|
24673
|
+
});
|
|
24674
|
+
form.setFieldsValue({
|
|
24675
|
+
realEstateDataDto: newForm
|
|
24676
|
+
});
|
|
24677
|
+
} else {
|
|
24678
|
+
form.setFieldsValue({
|
|
24679
|
+
realEstateDataDto: undefined
|
|
24680
|
+
});
|
|
24681
|
+
}
|
|
24682
|
+
}
|
|
24683
|
+
|
|
24684
|
+
return goodsList.map(function (item, index) {
|
|
24685
|
+
if (item.lineAttribute === 0) {
|
|
24686
|
+
return /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Row, {
|
|
24687
|
+
gutter: [17, 0]
|
|
24688
|
+
}, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Col, {
|
|
24689
|
+
span: 6
|
|
24690
|
+
}, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, {
|
|
24691
|
+
label: "\u4E0D\u52A8\u4EA7\u5355\u5143\u4EE3\u7801"
|
|
24692
|
+
}, getFieldDecorator("realEstateDataDto[".concat(index, "].unitCode"), {
|
|
24693
|
+
rules: readOnly ? [] : []
|
|
24694
|
+
})(readOnly ? /*#__PURE__*/React__default['default'].createElement(MyNY$1, null) : /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Input, {
|
|
24695
|
+
autoComplete: 'off'
|
|
24696
|
+
})))), /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Col, {
|
|
24697
|
+
span: 6
|
|
24698
|
+
}, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, {
|
|
24699
|
+
label: "\u7F51\u7B7E\u5408\u540C\u5907\u6848\u7F16\u53F7"
|
|
24700
|
+
}, getFieldDecorator("realEstateDataDto[".concat(index, "].contractNumber"), {
|
|
24701
|
+
rules: readOnly ? [] : []
|
|
24702
|
+
})(readOnly ? /*#__PURE__*/React__default['default'].createElement(MyNY$1, null) : /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Input, {
|
|
24703
|
+
autoComplete: 'off'
|
|
24704
|
+
})))), /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Col, {
|
|
24705
|
+
span: 6
|
|
24706
|
+
}, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, {
|
|
24707
|
+
style: {
|
|
24708
|
+
display: 'none'
|
|
24709
|
+
}
|
|
24710
|
+
}, getFieldDecorator("realEstateDataDto[".concat(index, "].$index"), {
|
|
24711
|
+
initialValue: item.$index
|
|
24712
|
+
})( /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Input, null))), /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, {
|
|
24713
|
+
label: "\u4E0D\u52A8\u4EA7\u5730\u5740"
|
|
24714
|
+
}, getFieldDecorator("realEstateDataDto[".concat(index, "].realEstateAddress"), {
|
|
24715
|
+
rules: readOnly ? [] : [{
|
|
24716
|
+
required: true,
|
|
24717
|
+
message: '请选择不动产地址'
|
|
24718
|
+
}]
|
|
24719
|
+
})(readOnly ? /*#__PURE__*/React__default['default'].createElement(MyArrString$1, null) : /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Cascader, {
|
|
24720
|
+
style: {
|
|
24721
|
+
width: '100%'
|
|
24722
|
+
},
|
|
24723
|
+
options: props.realEstateAddressOptions,
|
|
24724
|
+
fieldNames: props.realEstateAddressFieldNames,
|
|
24725
|
+
placeholder: "\u8BF7\u9009\u62E9\u7701\u5E02\u533A\u53BF"
|
|
24726
|
+
})))), /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Col, {
|
|
24727
|
+
span: 6
|
|
24728
|
+
}, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, {
|
|
24729
|
+
label: "\u8BE6\u7EC6\u5730\u5740"
|
|
24730
|
+
}, getFieldDecorator("realEstateDataDto[".concat(index, "].realEstateDetailedAddress"), {
|
|
24731
|
+
rules: readOnly ? [] : [{
|
|
24732
|
+
required: true,
|
|
24733
|
+
message: '请输入详细地址'
|
|
24734
|
+
}, {
|
|
24735
|
+
max: 120,
|
|
24736
|
+
message: '详细地址最多120个字符'
|
|
24737
|
+
}, {
|
|
24738
|
+
validator: function () {
|
|
24739
|
+
var _validator = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_, value, callback) {
|
|
24740
|
+
var pattern;
|
|
24741
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
24742
|
+
while (1) {
|
|
24743
|
+
switch (_context.prev = _context.next) {
|
|
24744
|
+
case 0:
|
|
24745
|
+
pattern = /街|路|村|乡|镇|道|巷|号/;
|
|
24746
|
+
|
|
24747
|
+
if (pattern.test(value)) {
|
|
24748
|
+
callback();
|
|
24749
|
+
} else {
|
|
24750
|
+
callback('地址必须包含“街”、“路”、“村”、“乡”、“镇”、“道”、“巷”、“号”等任意一个关键词');
|
|
24751
|
+
}
|
|
24752
|
+
|
|
24753
|
+
case 2:
|
|
24754
|
+
case "end":
|
|
24755
|
+
return _context.stop();
|
|
24756
|
+
}
|
|
24757
|
+
}
|
|
24758
|
+
}, _callee);
|
|
24759
|
+
}));
|
|
24760
|
+
|
|
24761
|
+
function validator(_x, _x2, _x3) {
|
|
24762
|
+
return _validator.apply(this, arguments);
|
|
24763
|
+
}
|
|
24764
|
+
|
|
24765
|
+
return validator;
|
|
24766
|
+
}()
|
|
24767
|
+
}]
|
|
24768
|
+
})(readOnly ? /*#__PURE__*/React__default['default'].createElement(MyDiv$4, null) : /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Input, {
|
|
24769
|
+
autoComplete: 'off',
|
|
24770
|
+
placeholder: "\u8BF7\u8F93\u5165\u8BE6\u7EC6\u5730\u5740"
|
|
24771
|
+
})))), /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Col, {
|
|
24772
|
+
span: 6
|
|
24773
|
+
}, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, {
|
|
24774
|
+
label: "\u8DE8\u5730\uFF08\u5E02\uFF09\u6807\u5FD7"
|
|
24775
|
+
}, getFieldDecorator("realEstateDataDto[".concat(index, "].crossCitiesSign"), {
|
|
24776
|
+
rules: readOnly ? [] : [{
|
|
24777
|
+
required: true,
|
|
24778
|
+
message: '请选择跨地(市)标志'
|
|
24779
|
+
}]
|
|
24780
|
+
})(readOnly ? /*#__PURE__*/React__default['default'].createElement(MyNY$1, null) : /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Select, {
|
|
24781
|
+
placeholder: "\u8BF7\u9009\u62E9",
|
|
24782
|
+
style: {
|
|
24783
|
+
width: '100%'
|
|
24784
|
+
}
|
|
24785
|
+
}, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Select.Option, {
|
|
24786
|
+
value: 'Y'
|
|
24787
|
+
}, "\u662F"), /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Select.Option, {
|
|
24788
|
+
value: 'N'
|
|
24789
|
+
}, "\u5426"))))), /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Col, {
|
|
24790
|
+
span: 6
|
|
24791
|
+
}, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, {
|
|
24792
|
+
label: "\u571F\u5730\u589E\u503C\u7A0E\u9879\u76EE\u7F16\u53F7"
|
|
24793
|
+
}, getFieldDecorator("realEstateDataDto[".concat(index, "].landTaxProjNo"), {
|
|
24794
|
+
rules: readOnly ? [] : []
|
|
24795
|
+
})(readOnly ? /*#__PURE__*/React__default['default'].createElement(MyArrMoment$1, null) : /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Input, {
|
|
24796
|
+
autoComplete: 'off'
|
|
24797
|
+
})))), /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Col, {
|
|
24798
|
+
span: 6
|
|
24799
|
+
}, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, {
|
|
24800
|
+
label: "\u6838\u5B9A\u8BA1\u7A0E\u4EF7\u683C"
|
|
24801
|
+
}, getFieldDecorator("realEstateDataDto[".concat(index, "].approvedTaxableAmount"), {
|
|
24802
|
+
rules: readOnly ? [] : []
|
|
24803
|
+
})(readOnly ? /*#__PURE__*/React__default['default'].createElement(MyArrMoment$1, null) : /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Input, {
|
|
24804
|
+
autoComplete: 'off',
|
|
24805
|
+
type: "number"
|
|
24806
|
+
})))), /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Col, {
|
|
24807
|
+
span: 6
|
|
24808
|
+
}, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, {
|
|
24809
|
+
label: "\u5B9E\u9645\u6210\u4EA4\u542B\u7A0E\u91D1\u989D"
|
|
24810
|
+
}, getFieldDecorator("realEstateDataDto[".concat(index, "].tradedIncludeAmount"), {
|
|
24811
|
+
rules: readOnly ? [] : []
|
|
24812
|
+
})(readOnly ? /*#__PURE__*/React__default['default'].createElement(MyArrMoment$1, null) : /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Input, {
|
|
24813
|
+
autoComplete: 'off',
|
|
24814
|
+
type: "number"
|
|
24815
|
+
})))), /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Col, {
|
|
24816
|
+
span: 6
|
|
24817
|
+
}, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, {
|
|
24818
|
+
label: "\u623F\u5C4B\u4EA7\u6743\u8BC1\u4E66/\u4E0D\u52A8\u4EA7\u6743\u8BC1\u53F7"
|
|
24819
|
+
}, getFieldDecorator("realEstateDataDto[".concat(index, "].realEstateNumber"), {
|
|
24820
|
+
rules: readOnly ? [] : [{
|
|
24821
|
+
max: 40,
|
|
24822
|
+
message: '证书编号最多40个字符'
|
|
24823
|
+
}]
|
|
24824
|
+
})(readOnly ? /*#__PURE__*/React__default['default'].createElement(MyDiv$4, null) : /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Input, {
|
|
24825
|
+
autoComplete: 'off'
|
|
24826
|
+
})))), /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Col, {
|
|
24827
|
+
span: 6
|
|
24828
|
+
}, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, {
|
|
24829
|
+
label: "\u9762\u79EF\u5355\u4F4D"
|
|
24830
|
+
}, getFieldDecorator("realEstateDataDto[".concat(index, "].realEstateUnit"), {
|
|
24831
|
+
rules: readOnly ? [] : [{
|
|
24832
|
+
required: true,
|
|
24833
|
+
message: '请选择面积单位'
|
|
24834
|
+
}]
|
|
24835
|
+
})(readOnly ? /*#__PURE__*/React__default['default'].createElement(MyDiv$4, null) : /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Select, {
|
|
24836
|
+
placeholder: "\u8BF7\u9009\u62E9",
|
|
24837
|
+
style: {
|
|
24838
|
+
width: '100%'
|
|
24839
|
+
}
|
|
24840
|
+
}, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Select.Option, {
|
|
24841
|
+
value: "\u5E73\u65B9\u5343\u7C73"
|
|
24842
|
+
}, "\u5E73\u65B9\u5343\u7C73"), /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Select.Option, {
|
|
24843
|
+
value: "\u5E73\u65B9\u7C73"
|
|
24844
|
+
}, "\u5E73\u65B9\u7C73"), /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Select.Option, {
|
|
24845
|
+
value: "\u516C\u9877"
|
|
24846
|
+
}, "\u516C\u9877"), /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Select.Option, {
|
|
24847
|
+
value: "\u4EA9"
|
|
24848
|
+
}, "\u4EA9"), /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Select.Option, {
|
|
24849
|
+
value: "h\u33A1"
|
|
24850
|
+
}, "h\u33A1"), /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Select.Option, {
|
|
24851
|
+
value: "k\u33A1"
|
|
24852
|
+
}, "k\u33A1"), /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Select.Option, {
|
|
24853
|
+
value: "\u33A1"
|
|
24854
|
+
}, "\u33A1"))))));
|
|
24855
|
+
}
|
|
24856
|
+
});
|
|
24857
|
+
};
|
|
24858
|
+
|
|
24859
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
24860
|
+
className: "kts-invoice-operate-real-estate-info-digtal"
|
|
24861
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
24862
|
+
className: 'real-estate-info-digtal-label'
|
|
24863
|
+
}, "\u7279\u6B8A\u4FE1\u606F-\u4E0D\u52A8\u4EA7\u9500\u552E"), getList());
|
|
24864
|
+
});
|
|
24865
|
+
|
|
24866
|
+
var MyDiv$4 = /*#__PURE__*/function (_React$Component) {
|
|
24867
|
+
_inherits(MyDiv, _React$Component);
|
|
24868
|
+
|
|
24869
|
+
var _super = _createSuper(MyDiv);
|
|
24870
|
+
|
|
24871
|
+
function MyDiv() {
|
|
24872
|
+
_classCallCheck(this, MyDiv);
|
|
24873
|
+
|
|
24874
|
+
return _super.apply(this, arguments);
|
|
24875
|
+
}
|
|
24876
|
+
|
|
24877
|
+
_createClass(MyDiv, [{
|
|
24878
|
+
key: "render",
|
|
24879
|
+
value: function render() {
|
|
24880
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
24881
|
+
style: this.props.style
|
|
24882
|
+
}, this.props.value);
|
|
24883
|
+
}
|
|
24884
|
+
}]);
|
|
24885
|
+
|
|
24886
|
+
return MyDiv;
|
|
24887
|
+
}(React__default['default'].Component);
|
|
24888
|
+
|
|
24889
|
+
var MyArrString$1 = /*#__PURE__*/function (_React$Component2) {
|
|
24890
|
+
_inherits(MyArrString, _React$Component2);
|
|
24891
|
+
|
|
24892
|
+
var _super2 = _createSuper(MyArrString);
|
|
24893
|
+
|
|
24894
|
+
function MyArrString() {
|
|
24895
|
+
_classCallCheck(this, MyArrString);
|
|
24896
|
+
|
|
24897
|
+
return _super2.apply(this, arguments);
|
|
24898
|
+
}
|
|
24899
|
+
|
|
24900
|
+
_createClass(MyArrString, [{
|
|
24901
|
+
key: "render",
|
|
24902
|
+
value: function render() {
|
|
24903
|
+
var _this$props$value;
|
|
24904
|
+
|
|
24905
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
24906
|
+
style: this.props.style
|
|
24907
|
+
}, (_this$props$value = this.props.value) === null || _this$props$value === void 0 ? void 0 : _this$props$value.filter(function (e) {
|
|
24908
|
+
return !!e;
|
|
24909
|
+
}).join(','));
|
|
24910
|
+
}
|
|
24911
|
+
}]);
|
|
24912
|
+
|
|
24913
|
+
return MyArrString;
|
|
24914
|
+
}(React__default['default'].Component);
|
|
24915
|
+
|
|
24916
|
+
var MyArrMoment$1 = /*#__PURE__*/function (_React$Component3) {
|
|
24917
|
+
_inherits(MyArrMoment, _React$Component3);
|
|
24918
|
+
|
|
24919
|
+
var _super3 = _createSuper(MyArrMoment);
|
|
24920
|
+
|
|
24921
|
+
function MyArrMoment() {
|
|
24922
|
+
_classCallCheck(this, MyArrMoment);
|
|
24923
|
+
|
|
24924
|
+
return _super3.apply(this, arguments);
|
|
24925
|
+
}
|
|
24926
|
+
|
|
24927
|
+
_createClass(MyArrMoment, [{
|
|
24928
|
+
key: "render",
|
|
24929
|
+
value: function render() {
|
|
24930
|
+
var _this$props$value2 = this.props.value,
|
|
24931
|
+
value = _this$props$value2 === void 0 ? [] : _this$props$value2;
|
|
24932
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
24933
|
+
style: this.props.style
|
|
24934
|
+
}, /*#__PURE__*/React__default['default'].createElement("span", null, hooks.isMoment(value[0]) && value[0].format('YYYY-MM-DD')), /*#__PURE__*/React__default['default'].createElement("span", {
|
|
24935
|
+
style: {
|
|
24936
|
+
color: '#9F603D',
|
|
24937
|
+
fontWeight: 600
|
|
24938
|
+
}
|
|
24939
|
+
}, " - "), /*#__PURE__*/React__default['default'].createElement("span", null, hooks.isMoment(value[1]) && value[0].format('YYYY-MM-DD')));
|
|
24940
|
+
}
|
|
24941
|
+
}]);
|
|
24942
|
+
|
|
24943
|
+
return MyArrMoment;
|
|
24944
|
+
}(React__default['default'].Component);
|
|
24945
|
+
|
|
24946
|
+
var MyNY$1 = /*#__PURE__*/function (_React$Component4) {
|
|
24947
|
+
_inherits(MyNY, _React$Component4);
|
|
24948
|
+
|
|
24949
|
+
var _super4 = _createSuper(MyNY);
|
|
24950
|
+
|
|
24951
|
+
function MyNY() {
|
|
24952
|
+
_classCallCheck(this, MyNY);
|
|
24953
|
+
|
|
24954
|
+
return _super4.apply(this, arguments);
|
|
24955
|
+
}
|
|
24956
|
+
|
|
24957
|
+
_createClass(MyNY, [{
|
|
24958
|
+
key: "render",
|
|
24959
|
+
value: function render() {
|
|
24960
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
24961
|
+
style: this.props.style
|
|
24962
|
+
}, this.props.value === 'Y' ? '是' : '否');
|
|
24963
|
+
}
|
|
24964
|
+
}]);
|
|
24965
|
+
|
|
24966
|
+
return MyNY;
|
|
24967
|
+
}(React__default['default'].Component);
|
|
24968
|
+
|
|
24969
|
+
var css_248z$t = ".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.kts-invoice-operate-real-estate-info-digtal .break-word {\n word-break: break-word;\n}\n";
|
|
24970
|
+
styleInject(css_248z$t);
|
|
24971
|
+
|
|
24624
24972
|
/** 特殊信息-建筑服务 */
|
|
24625
24973
|
|
|
24626
24974
|
var Architecture = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(function (props) {
|
|
@@ -24651,7 +24999,7 @@ var Architecture = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(fun
|
|
|
24651
24999
|
max: 16,
|
|
24652
25000
|
message: '最多16个字符'
|
|
24653
25001
|
}]
|
|
24654
|
-
})(readOnly ? /*#__PURE__*/React__default['default'].createElement(MyDiv$
|
|
25002
|
+
})(readOnly ? /*#__PURE__*/React__default['default'].createElement(MyDiv$5, null) : /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Input, {
|
|
24655
25003
|
maxLength: 16,
|
|
24656
25004
|
autoComplete: 'off',
|
|
24657
25005
|
placeholder: "\u8BF7\u8F93\u5165"
|
|
@@ -24664,7 +25012,7 @@ var Architecture = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(fun
|
|
|
24664
25012
|
required: true,
|
|
24665
25013
|
message: '请选择省市区县'
|
|
24666
25014
|
}]
|
|
24667
|
-
})(readOnly ? /*#__PURE__*/React__default['default'].createElement(MyArrString$
|
|
25015
|
+
})(readOnly ? /*#__PURE__*/React__default['default'].createElement(MyArrString$2, null) : /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Cascader, {
|
|
24668
25016
|
style: {
|
|
24669
25017
|
width: '100%'
|
|
24670
25018
|
},
|
|
@@ -24689,7 +25037,7 @@ var Architecture = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(fun
|
|
|
24689
25037
|
return pattern.test(value) ? Promise.resolve() : Promise.reject('地址必须包含“街”、“路”、“村”、“乡”、“镇”、“道”、“巷”、“号”等任意一个关键词');
|
|
24690
25038
|
}
|
|
24691
25039
|
}]
|
|
24692
|
-
})(readOnly ? /*#__PURE__*/React__default['default'].createElement(MyDiv$
|
|
25040
|
+
})(readOnly ? /*#__PURE__*/React__default['default'].createElement(MyDiv$5, null) : /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Input, {
|
|
24693
25041
|
autoComplete: 'off',
|
|
24694
25042
|
placeholder: "\u8BF7\u8F93\u5165\u8BE6\u7EC6\u5730\u5740"
|
|
24695
25043
|
})))), /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Col, {
|
|
@@ -24701,7 +25049,7 @@ var Architecture = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(fun
|
|
|
24701
25049
|
required: true,
|
|
24702
25050
|
message: '请选择跨地(市)标志'
|
|
24703
25051
|
}]
|
|
24704
|
-
})(readOnly ? /*#__PURE__*/React__default['default'].createElement(MyNY$
|
|
25052
|
+
})(readOnly ? /*#__PURE__*/React__default['default'].createElement(MyNY$2, null) : /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Select, {
|
|
24705
25053
|
placeholder: "\u8BF7\u9009\u62E9",
|
|
24706
25054
|
style: {
|
|
24707
25055
|
width: '100%'
|
|
@@ -24722,13 +25070,13 @@ var Architecture = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(fun
|
|
|
24722
25070
|
max: 200,
|
|
24723
25071
|
message: '建筑项目名称最多200个字符'
|
|
24724
25072
|
}]
|
|
24725
|
-
})(readOnly ? /*#__PURE__*/React__default['default'].createElement(MyDiv$
|
|
25073
|
+
})(readOnly ? /*#__PURE__*/React__default['default'].createElement(MyDiv$5, null) : /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Input, {
|
|
24726
25074
|
autoComplete: 'off',
|
|
24727
25075
|
placeholder: "\u8BF7\u8F93\u5165"
|
|
24728
25076
|
}))))));
|
|
24729
25077
|
});
|
|
24730
25078
|
|
|
24731
|
-
var MyDiv$
|
|
25079
|
+
var MyDiv$5 = /*#__PURE__*/function (_React$Component) {
|
|
24732
25080
|
_inherits(MyDiv, _React$Component);
|
|
24733
25081
|
|
|
24734
25082
|
var _super = _createSuper(MyDiv);
|
|
@@ -24751,7 +25099,7 @@ var MyDiv$4 = /*#__PURE__*/function (_React$Component) {
|
|
|
24751
25099
|
return MyDiv;
|
|
24752
25100
|
}(React__default['default'].Component);
|
|
24753
25101
|
|
|
24754
|
-
var MyArrString$
|
|
25102
|
+
var MyArrString$2 = /*#__PURE__*/function (_React$Component2) {
|
|
24755
25103
|
_inherits(MyArrString, _React$Component2);
|
|
24756
25104
|
|
|
24757
25105
|
var _super2 = _createSuper(MyArrString);
|
|
@@ -24778,7 +25126,7 @@ var MyArrString$1 = /*#__PURE__*/function (_React$Component2) {
|
|
|
24778
25126
|
return MyArrString;
|
|
24779
25127
|
}(React__default['default'].Component);
|
|
24780
25128
|
|
|
24781
|
-
var MyArrMoment$
|
|
25129
|
+
var MyArrMoment$2 = /*#__PURE__*/function (_React$Component3) {
|
|
24782
25130
|
_inherits(MyArrMoment, _React$Component3);
|
|
24783
25131
|
|
|
24784
25132
|
var _super3 = _createSuper(MyArrMoment);
|
|
@@ -24808,7 +25156,7 @@ var MyArrMoment$1 = /*#__PURE__*/function (_React$Component3) {
|
|
|
24808
25156
|
return MyArrMoment;
|
|
24809
25157
|
}(React__default['default'].Component);
|
|
24810
25158
|
|
|
24811
|
-
var MyNY$
|
|
25159
|
+
var MyNY$2 = /*#__PURE__*/function (_React$Component4) {
|
|
24812
25160
|
_inherits(MyNY, _React$Component4);
|
|
24813
25161
|
|
|
24814
25162
|
var _super4 = _createSuper(MyNY);
|
|
@@ -24831,8 +25179,8 @@ var MyNY$1 = /*#__PURE__*/function (_React$Component4) {
|
|
|
24831
25179
|
return MyNY;
|
|
24832
25180
|
}(React__default['default'].Component);
|
|
24833
25181
|
|
|
24834
|
-
var css_248z$
|
|
24835
|
-
styleInject(css_248z$
|
|
25182
|
+
var css_248z$u = ".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";
|
|
25183
|
+
styleInject(css_248z$u);
|
|
24836
25184
|
|
|
24837
25185
|
function TableVirtual$2 (props) {
|
|
24838
25186
|
var _props$dataSource2;
|
|
@@ -25130,8 +25478,8 @@ function _rollBottom$2() {
|
|
|
25130
25478
|
return _rollBottom$2.apply(this, arguments);
|
|
25131
25479
|
}
|
|
25132
25480
|
|
|
25133
|
-
var css_248z$
|
|
25134
|
-
styleInject(css_248z$
|
|
25481
|
+
var css_248z$v = ".kts-invoice-operate-goods-list-itemName-drag-container-u {\n position: relative;\n}\n.kts-invoice-operate-goods-list-itemName-drag-container-u::after {\n content: \" \";\n width: 100%;\n height: 2px;\n background: #0074ff;\n position: absolute;\n left: 0;\n top: 0;\n z-index: 9999;\n}\n.kts-invoice-operate-goods-list-itemName-drag-container-d {\n position: relative;\n}\n.kts-invoice-operate-goods-list-itemName-drag-container-d::after {\n content: \" \";\n width: 100%;\n height: 2px;\n background: #0074ff;\n position: absolute;\n left: 0;\n bottom: 0;\n z-index: 9999;\n}\n";
|
|
25482
|
+
styleInject(css_248z$v);
|
|
25135
25483
|
|
|
25136
25484
|
function TableRow$2(props) {
|
|
25137
25485
|
var rowKey = props['data-row-key'];
|
|
@@ -26053,8 +26401,8 @@ var useDelRowButton$2 = (function () {
|
|
|
26053
26401
|
};
|
|
26054
26402
|
});
|
|
26055
26403
|
|
|
26056
|
-
var css_248z$
|
|
26057
|
-
styleInject(css_248z$
|
|
26404
|
+
var css_248z$w = ".kts-invoice-operate-freight {\n border-bottom: 2px solid #9F613E;\n border-left: 2px solid #9F613E;\n border-right: 2px solid #9F613E;\n}\n.kts-invoice-operate-freight .real-estate-info-digtal-label {\n padding: 20px 20px 0;\n color: #9F613E;\n font-weight: bold;\n}\n.kts-invoice-operate-freight .ktsAnt3x-row.ktsAnt3x-form-item {\n margin-bottom: 0;\n}\n.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-freight-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-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";
|
|
26405
|
+
styleInject(css_248z$w);
|
|
26058
26406
|
|
|
26059
26407
|
var FreightList = /*#__PURE__*/function (_React$Component) {
|
|
26060
26408
|
_inherits(FreightList, _React$Component);
|
|
@@ -26660,8 +27008,8 @@ var getItemCode = function getItemCode(record, editGood) {
|
|
|
26660
27008
|
return record.productCode;
|
|
26661
27009
|
};
|
|
26662
27010
|
|
|
26663
|
-
var css_248z$
|
|
26664
|
-
styleInject(css_248z$
|
|
27011
|
+
var css_248z$x = ".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";
|
|
27012
|
+
styleInject(css_248z$x);
|
|
26665
27013
|
|
|
26666
27014
|
var TreeNode = ktsComponentsAntdX3.Tree.TreeNode;
|
|
26667
27015
|
var confirm = ktsComponentsAntdX3.Modal.confirm;
|
|
@@ -27909,6 +28257,8 @@ var Invoice = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
27909
28257
|
|
|
27910
28258
|
/** 特殊信息-不动产经营租赁服务(数电) */
|
|
27911
28259
|
|
|
28260
|
+
/** 特殊信息-不动产销售(数电) */
|
|
28261
|
+
|
|
27912
28262
|
/** 特殊信息-建筑服务(数电) */
|
|
27913
28263
|
|
|
27914
28264
|
/** 货物列表(数电) */
|
|
@@ -27945,6 +28295,7 @@ Invoice.Stakeholder = Stakeholder$1;
|
|
|
27945
28295
|
Invoice.StakeFarmerholder = StakeFarmerholder;
|
|
27946
28296
|
Invoice.SignDigtal = SignDigtal;
|
|
27947
28297
|
Invoice.RealEstateInfo = RealEstateInfo;
|
|
28298
|
+
Invoice.RealEstateSales = RealEstateSales;
|
|
27948
28299
|
Invoice.Architecture = Architecture;
|
|
27949
28300
|
Invoice.FreightList = FreightList;
|
|
27950
28301
|
Invoice.GoodsListDigtal = GoodsList$1;
|
|
@@ -28064,8 +28415,8 @@ var Digtal = function Digtal(props) {
|
|
|
28064
28415
|
), /*#__PURE__*/React__default['default'].createElement(ImportGoodsDrawer, null), /*#__PURE__*/React__default['default'].createElement(EndowCodeDrawer, null));
|
|
28065
28416
|
};
|
|
28066
28417
|
|
|
28067
|
-
var css_248z$
|
|
28068
|
-
styleInject(css_248z$
|
|
28418
|
+
var css_248z$y = ".taxdetailsbox {\n display: flex;\n justify-content: flex-start;\n flex-direction: row;\n}\n.taxdetailsbox .taxrightbox {\n width: 340px;\n position: absolute;\n right: 30px;\n top: 79px;\n bottom: 50px;\n min-height: 300px;\n}\n.taxdetailsbox .taxrightbox .taxdesc {\n height: calc(100vh - 323px);\n min-height: 105px;\n overflow: auto;\n}\n";
|
|
28419
|
+
styleInject(css_248z$y);
|
|
28069
28420
|
|
|
28070
28421
|
function TaxClassificationModal(props) {
|
|
28071
28422
|
var _props$info6;
|
package/package.json
CHANGED
|
@@ -3,26 +3,76 @@ import Invoice from '../../..';
|
|
|
3
3
|
import moment from 'moment';
|
|
4
4
|
import 'antd/dist/antd.css';
|
|
5
5
|
import { Button } from 'kts-components-antd-x3';
|
|
6
|
+
import idGenerator from '../../../../Invoice/tools/idGenerator';
|
|
6
7
|
export default () => {
|
|
7
8
|
|
|
8
9
|
const controller = React.useMemo(() => new Invoice.InvoiceController(), []);
|
|
9
|
-
|
|
10
|
+
const a = [
|
|
11
|
+
{
|
|
12
|
+
"lineNumber": 1,
|
|
13
|
+
"realEstateAddress": [
|
|
14
|
+
"安徽省合肥市庐江县"
|
|
15
|
+
],
|
|
16
|
+
"realEstateDetailedAddress": "安徽省合肥市庐江县周瑜大道1号",
|
|
17
|
+
leaseTerm: [moment('20250205'), moment('20250228')],
|
|
18
|
+
"leaseTermStart": "20250205",
|
|
19
|
+
"leaseTermEnd": "20250228",
|
|
20
|
+
"crossCitiesSign": "N",
|
|
21
|
+
"realEstateNumber": "BDCZL100001",
|
|
22
|
+
"unit": "平方米",
|
|
23
|
+
"$index": 0,
|
|
24
|
+
"realEstateUnit": "平方米"
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
const b: any = [
|
|
28
|
+
{
|
|
29
|
+
$index: idGenerator(),
|
|
30
|
+
"serialNumber": "1886972176113950720",
|
|
31
|
+
"lineNumber": 1,
|
|
32
|
+
"taxCode": "3040501030000000000",
|
|
33
|
+
"taxName": "融资租赁",
|
|
34
|
+
"specification": "",
|
|
35
|
+
"itemName": "不动产租赁服务",
|
|
36
|
+
"unit": "幢",
|
|
37
|
+
"quantity": "1",
|
|
38
|
+
"taxRate": 0.09,
|
|
39
|
+
"priceExcludeTax": "9174.31",
|
|
40
|
+
"priceIncludeTax": "10000",
|
|
41
|
+
"amountTax": 825.69,
|
|
42
|
+
"amountExcludeTax": 9174.31,
|
|
43
|
+
"amountIncludeTax": 10000,
|
|
44
|
+
"lineAttribute": 0,
|
|
45
|
+
"favouredPolicyMark": false,
|
|
46
|
+
"ticketLineNumber": "1"
|
|
47
|
+
}
|
|
48
|
+
]
|
|
10
49
|
React.useEffect(() => {
|
|
11
50
|
controller.run(async s => {
|
|
51
|
+
s.goodsListState.goodsList = b;
|
|
52
|
+
|
|
53
|
+
})
|
|
54
|
+
controller.run(async s => {
|
|
55
|
+
// console.log(111, s.goodsListState.goodsList)
|
|
56
|
+
window.setTimeout(() => {
|
|
57
|
+
controller.formList.get('realEstateInfo')?.setFieldsValue({
|
|
58
|
+
realEstateDataDto: a
|
|
59
|
+
})
|
|
60
|
+
}, 1000)
|
|
61
|
+
|
|
12
62
|
})
|
|
13
63
|
}, [])
|
|
14
|
-
const onSave =async ()=>{
|
|
64
|
+
const onSave = async () => {
|
|
15
65
|
const formValues = await controller.validateFields();
|
|
16
66
|
console.log(formValues)
|
|
17
67
|
}
|
|
18
68
|
return (
|
|
19
69
|
<>
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
70
|
+
<Button onClick={onSave}>输出表单内容</Button>
|
|
71
|
+
<Invoice
|
|
72
|
+
invoiceType='digtal'
|
|
73
|
+
controller={controller}
|
|
74
|
+
specialInfor={<Invoice.RealEstateInfo />}
|
|
75
|
+
/>
|
|
26
76
|
</>
|
|
27
77
|
)
|
|
28
78
|
};
|