kts-component-invoice-operate 4.0.5 → 4.0.7
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
|
@@ -24308,7 +24308,7 @@ var RealEstateInfo = decorator(Form.create())(function (props) {
|
|
|
24308
24308
|
var indexRef = React.useRef([]);
|
|
24309
24309
|
useEffect(function () {
|
|
24310
24310
|
var dd = goodsList === null || goodsList === void 0 ? void 0 : goodsList.reduce(function (acc, cur) {
|
|
24311
|
-
if (cur.lineAttribute
|
|
24311
|
+
if (cur.lineAttribute !== 1) {
|
|
24312
24312
|
acc.push(cur.$index);
|
|
24313
24313
|
}
|
|
24314
24314
|
|
|
@@ -24347,10 +24347,11 @@ var RealEstateInfo = decorator(Form.create())(function (props) {
|
|
|
24347
24347
|
}
|
|
24348
24348
|
}
|
|
24349
24349
|
|
|
24350
|
-
console.log(form.getFieldsValue());
|
|
24351
24350
|
console.log('goodsList', goodsList);
|
|
24352
|
-
return goodsList.
|
|
24353
|
-
|
|
24351
|
+
return goodsList.filter(function (item) {
|
|
24352
|
+
return item.lineAttribute !== 1;
|
|
24353
|
+
}).map(function (item, index) {
|
|
24354
|
+
if (item.lineAttribute !== 1) {
|
|
24354
24355
|
return /*#__PURE__*/React.createElement(Row$1, {
|
|
24355
24356
|
gutter: [17, 0]
|
|
24356
24357
|
}, /*#__PURE__*/React.createElement(Col$1, {
|
|
@@ -24579,7 +24580,7 @@ var MyArrMoment = /*#__PURE__*/function (_React$Component3) {
|
|
|
24579
24580
|
color: '#9F603D',
|
|
24580
24581
|
fontWeight: 600
|
|
24581
24582
|
}
|
|
24582
|
-
}, " - "), /*#__PURE__*/React.createElement("span", null, hooks.isMoment(value[1]) && value[
|
|
24583
|
+
}, " - "), /*#__PURE__*/React.createElement("span", null, hooks.isMoment(value[1]) && value[1].format('YYYY-MM-DD')));
|
|
24583
24584
|
}
|
|
24584
24585
|
}]);
|
|
24585
24586
|
|
|
@@ -24632,7 +24633,7 @@ var RealEstateSales = decorator(Form.create())(function (props) {
|
|
|
24632
24633
|
var indexRef = React.useRef([]);
|
|
24633
24634
|
useEffect(function () {
|
|
24634
24635
|
var dd = goodsList === null || goodsList === void 0 ? void 0 : goodsList.reduce(function (acc, cur) {
|
|
24635
|
-
if (cur.lineAttribute
|
|
24636
|
+
if (cur.lineAttribute !== 1) {
|
|
24636
24637
|
acc.push(cur.$index);
|
|
24637
24638
|
}
|
|
24638
24639
|
|
|
@@ -24671,8 +24672,10 @@ var RealEstateSales = decorator(Form.create())(function (props) {
|
|
|
24671
24672
|
}
|
|
24672
24673
|
}
|
|
24673
24674
|
|
|
24674
|
-
return goodsList.
|
|
24675
|
-
|
|
24675
|
+
return goodsList.filter(function (item) {
|
|
24676
|
+
return item.lineAttribute !== 1;
|
|
24677
|
+
}).map(function (item, index) {
|
|
24678
|
+
if (item.lineAttribute !== 1) {
|
|
24676
24679
|
return /*#__PURE__*/React.createElement(Row$1, {
|
|
24677
24680
|
gutter: [17, 0]
|
|
24678
24681
|
}, /*#__PURE__*/React.createElement(Col$1, {
|
|
@@ -24681,7 +24684,7 @@ var RealEstateSales = decorator(Form.create())(function (props) {
|
|
|
24681
24684
|
label: "\u4E0D\u52A8\u4EA7\u5355\u5143\u4EE3\u7801"
|
|
24682
24685
|
}, getFieldDecorator("realEstateDataDto[".concat(index, "].unitCode"), {
|
|
24683
24686
|
rules: readOnly ? [] : []
|
|
24684
|
-
})(readOnly ? /*#__PURE__*/React.createElement(
|
|
24687
|
+
})(readOnly ? /*#__PURE__*/React.createElement(MyDiv$4, null) : /*#__PURE__*/React.createElement(Input$2, {
|
|
24685
24688
|
autoComplete: 'off'
|
|
24686
24689
|
})))), /*#__PURE__*/React.createElement(Col$1, {
|
|
24687
24690
|
span: 6
|
|
@@ -24689,7 +24692,7 @@ var RealEstateSales = decorator(Form.create())(function (props) {
|
|
|
24689
24692
|
label: "\u7F51\u7B7E\u5408\u540C\u5907\u6848\u7F16\u53F7"
|
|
24690
24693
|
}, getFieldDecorator("realEstateDataDto[".concat(index, "].contractNumber"), {
|
|
24691
24694
|
rules: readOnly ? [] : []
|
|
24692
|
-
})(readOnly ? /*#__PURE__*/React.createElement(
|
|
24695
|
+
})(readOnly ? /*#__PURE__*/React.createElement(MyDiv$4, null) : /*#__PURE__*/React.createElement(Input$2, {
|
|
24693
24696
|
autoComplete: 'off'
|
|
24694
24697
|
})))), /*#__PURE__*/React.createElement(Col$1, {
|
|
24695
24698
|
span: 6
|
package/dist/index.js
CHANGED
|
@@ -24318,7 +24318,7 @@ var RealEstateInfo = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(f
|
|
|
24318
24318
|
var indexRef = React__default['default'].useRef([]);
|
|
24319
24319
|
React.useEffect(function () {
|
|
24320
24320
|
var dd = goodsList === null || goodsList === void 0 ? void 0 : goodsList.reduce(function (acc, cur) {
|
|
24321
|
-
if (cur.lineAttribute
|
|
24321
|
+
if (cur.lineAttribute !== 1) {
|
|
24322
24322
|
acc.push(cur.$index);
|
|
24323
24323
|
}
|
|
24324
24324
|
|
|
@@ -24357,10 +24357,11 @@ var RealEstateInfo = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(f
|
|
|
24357
24357
|
}
|
|
24358
24358
|
}
|
|
24359
24359
|
|
|
24360
|
-
console.log(form.getFieldsValue());
|
|
24361
24360
|
console.log('goodsList', goodsList);
|
|
24362
|
-
return goodsList.
|
|
24363
|
-
|
|
24361
|
+
return goodsList.filter(function (item) {
|
|
24362
|
+
return item.lineAttribute !== 1;
|
|
24363
|
+
}).map(function (item, index) {
|
|
24364
|
+
if (item.lineAttribute !== 1) {
|
|
24364
24365
|
return /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Row, {
|
|
24365
24366
|
gutter: [17, 0]
|
|
24366
24367
|
}, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Col, {
|
|
@@ -24589,7 +24590,7 @@ var MyArrMoment = /*#__PURE__*/function (_React$Component3) {
|
|
|
24589
24590
|
color: '#9F603D',
|
|
24590
24591
|
fontWeight: 600
|
|
24591
24592
|
}
|
|
24592
|
-
}, " - "), /*#__PURE__*/React__default['default'].createElement("span", null, hooks.isMoment(value[1]) && value[
|
|
24593
|
+
}, " - "), /*#__PURE__*/React__default['default'].createElement("span", null, hooks.isMoment(value[1]) && value[1].format('YYYY-MM-DD')));
|
|
24593
24594
|
}
|
|
24594
24595
|
}]);
|
|
24595
24596
|
|
|
@@ -24642,7 +24643,7 @@ var RealEstateSales = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(
|
|
|
24642
24643
|
var indexRef = React__default['default'].useRef([]);
|
|
24643
24644
|
React.useEffect(function () {
|
|
24644
24645
|
var dd = goodsList === null || goodsList === void 0 ? void 0 : goodsList.reduce(function (acc, cur) {
|
|
24645
|
-
if (cur.lineAttribute
|
|
24646
|
+
if (cur.lineAttribute !== 1) {
|
|
24646
24647
|
acc.push(cur.$index);
|
|
24647
24648
|
}
|
|
24648
24649
|
|
|
@@ -24681,8 +24682,10 @@ var RealEstateSales = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(
|
|
|
24681
24682
|
}
|
|
24682
24683
|
}
|
|
24683
24684
|
|
|
24684
|
-
return goodsList.
|
|
24685
|
-
|
|
24685
|
+
return goodsList.filter(function (item) {
|
|
24686
|
+
return item.lineAttribute !== 1;
|
|
24687
|
+
}).map(function (item, index) {
|
|
24688
|
+
if (item.lineAttribute !== 1) {
|
|
24686
24689
|
return /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Row, {
|
|
24687
24690
|
gutter: [17, 0]
|
|
24688
24691
|
}, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Col, {
|
|
@@ -24691,7 +24694,7 @@ var RealEstateSales = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(
|
|
|
24691
24694
|
label: "\u4E0D\u52A8\u4EA7\u5355\u5143\u4EE3\u7801"
|
|
24692
24695
|
}, getFieldDecorator("realEstateDataDto[".concat(index, "].unitCode"), {
|
|
24693
24696
|
rules: readOnly ? [] : []
|
|
24694
|
-
})(readOnly ? /*#__PURE__*/React__default['default'].createElement(
|
|
24697
|
+
})(readOnly ? /*#__PURE__*/React__default['default'].createElement(MyDiv$4, null) : /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Input, {
|
|
24695
24698
|
autoComplete: 'off'
|
|
24696
24699
|
})))), /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Col, {
|
|
24697
24700
|
span: 6
|
|
@@ -24699,7 +24702,7 @@ var RealEstateSales = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(
|
|
|
24699
24702
|
label: "\u7F51\u7B7E\u5408\u540C\u5907\u6848\u7F16\u53F7"
|
|
24700
24703
|
}, getFieldDecorator("realEstateDataDto[".concat(index, "].contractNumber"), {
|
|
24701
24704
|
rules: readOnly ? [] : []
|
|
24702
|
-
})(readOnly ? /*#__PURE__*/React__default['default'].createElement(
|
|
24705
|
+
})(readOnly ? /*#__PURE__*/React__default['default'].createElement(MyDiv$4, null) : /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Input, {
|
|
24703
24706
|
autoComplete: 'off'
|
|
24704
24707
|
})))), /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Col, {
|
|
24705
24708
|
span: 6
|
package/package.json
CHANGED
|
@@ -40,7 +40,7 @@ export default decorator<RealEstateInfoProps, FormComponentProps & RealEstateInf
|
|
|
40
40
|
const indexRef = React.useRef<any>([]);
|
|
41
41
|
useEffect(() => {
|
|
42
42
|
const dd = goodsList?.reduce((acc: any, cur: any) => {
|
|
43
|
-
if (cur.lineAttribute
|
|
43
|
+
if (cur.lineAttribute !==1) {
|
|
44
44
|
acc.push(cur.$index)
|
|
45
45
|
}
|
|
46
46
|
return acc
|
|
@@ -70,10 +70,9 @@ export default decorator<RealEstateInfoProps, FormComponentProps & RealEstateInf
|
|
|
70
70
|
});
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
console.log(form.getFieldsValue())
|
|
74
73
|
console.log('goodsList',goodsList)
|
|
75
|
-
return goodsList.map((item, index) => {
|
|
76
|
-
if (item.lineAttribute
|
|
74
|
+
return goodsList.filter(item=>item.lineAttribute !== 1).map((item, index) => {
|
|
75
|
+
if (item.lineAttribute !== 1) {
|
|
77
76
|
return <Row gutter={[17, 0]} >
|
|
78
77
|
<Col span={6} >
|
|
79
78
|
<Form.Item style={{ display: 'none' }}>
|
|
@@ -223,7 +222,7 @@ class MyArrMoment extends React.Component<{ value?: moment.Moment[], style?: Rea
|
|
|
223
222
|
<div style={this.props.style}>
|
|
224
223
|
<span>{moment.isMoment(value[0]) && value[0].format('YYYY-MM-DD')}</span>
|
|
225
224
|
<span style={{ color: '#9F603D', fontWeight: 600 }} > - </span>
|
|
226
|
-
<span>{moment.isMoment(value[1]) && value[
|
|
225
|
+
<span>{moment.isMoment(value[1]) && value[1].format('YYYY-MM-DD')}</span>
|
|
227
226
|
</div>
|
|
228
227
|
)
|
|
229
228
|
}
|
|
@@ -40,7 +40,7 @@ export default decorator<RealEstateInfoProps, FormComponentProps & RealEstateInf
|
|
|
40
40
|
const indexRef = React.useRef<any>([]);
|
|
41
41
|
useEffect(() => {
|
|
42
42
|
const dd = goodsList?.reduce((acc: any, cur: any) => {
|
|
43
|
-
if (cur.lineAttribute
|
|
43
|
+
if (cur.lineAttribute !== 1) {
|
|
44
44
|
acc.push(cur.$index)
|
|
45
45
|
}
|
|
46
46
|
return acc
|
|
@@ -70,8 +70,8 @@ export default decorator<RealEstateInfoProps, FormComponentProps & RealEstateInf
|
|
|
70
70
|
});
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
return goodsList.map((item, index) => {
|
|
74
|
-
if (item.lineAttribute
|
|
73
|
+
return goodsList.filter(item=>item.lineAttribute !== 1).map((item, index) => {
|
|
74
|
+
if (item.lineAttribute !== 1) {
|
|
75
75
|
return <Row gutter={[17, 0]} >
|
|
76
76
|
<Col span={6} >
|
|
77
77
|
<Form.Item label='不动产单元代码' >
|
|
@@ -79,7 +79,7 @@ export default decorator<RealEstateInfoProps, FormComponentProps & RealEstateInf
|
|
|
79
79
|
rules: readOnly ? [] : []
|
|
80
80
|
})(
|
|
81
81
|
readOnly
|
|
82
|
-
? <
|
|
82
|
+
? <MyDiv />
|
|
83
83
|
: <Input autoComplete='off' />
|
|
84
84
|
)}
|
|
85
85
|
</Form.Item>
|
|
@@ -90,7 +90,7 @@ export default decorator<RealEstateInfoProps, FormComponentProps & RealEstateInf
|
|
|
90
90
|
rules: readOnly ? [] : []
|
|
91
91
|
})(
|
|
92
92
|
readOnly
|
|
93
|
-
? <
|
|
93
|
+
? <MyDiv />
|
|
94
94
|
: <Input autoComplete='off' />
|
|
95
95
|
)}
|
|
96
96
|
</Form.Item>
|