kts-component-invoice-operate 4.0.6 → 4.0.8
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 +15 -12
- package/dist/index.js +15 -12
- package/package.json +1 -1
- package/src/Invoice/ui/digtal/Architecture/index.tsx +1 -1
- package/src/Invoice/ui/digtal/FreightList/index.tsx +1 -1
- package/src/Invoice/ui/digtal/RealEstateInfo/index.tsx +5 -6
- package/src/Invoice/ui/digtal/RealEstateSales/index.tsx +4 -4
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, {
|
|
@@ -24503,7 +24504,7 @@ var RealEstateInfo = decorator(Form.create())(function (props) {
|
|
|
24503
24504
|
className: "kts-invoice-operate-real-estate-info-digtal"
|
|
24504
24505
|
}, /*#__PURE__*/React.createElement("div", {
|
|
24505
24506
|
className: 'real-estate-info-digtal-label'
|
|
24506
|
-
}, "\u7279\
|
|
24507
|
+
}, "\u7279\u5B9A\u4FE1\u606F-\u4E0D\u52A8\u4EA7\u7ECF\u8425\u79DF\u8D41\u670D\u52A1"), getList());
|
|
24507
24508
|
});
|
|
24508
24509
|
|
|
24509
24510
|
var MyDiv$3 = /*#__PURE__*/function (_React$Component) {
|
|
@@ -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, {
|
|
@@ -24850,7 +24853,7 @@ var RealEstateSales = decorator(Form.create())(function (props) {
|
|
|
24850
24853
|
className: "kts-invoice-operate-real-estate-info-digtal"
|
|
24851
24854
|
}, /*#__PURE__*/React.createElement("div", {
|
|
24852
24855
|
className: 'real-estate-info-digtal-label'
|
|
24853
|
-
}, "\u7279\
|
|
24856
|
+
}, "\u7279\u5B9A\u4FE1\u606F-\u4E0D\u52A8\u4EA7\u9500\u552E"), getList());
|
|
24854
24857
|
});
|
|
24855
24858
|
|
|
24856
24859
|
var MyDiv$4 = /*#__PURE__*/function (_React$Component) {
|
|
@@ -24978,7 +24981,7 @@ var Architecture = decorator(Form.create())(function (props) {
|
|
|
24978
24981
|
className: "kts-invoice-operate-real-estate-info-digtal"
|
|
24979
24982
|
}, /*#__PURE__*/React.createElement("div", {
|
|
24980
24983
|
className: 'real-estate-info-digtal-label'
|
|
24981
|
-
}, "\u7279\
|
|
24984
|
+
}, "\u7279\u5B9A\u4FE1\u606F-\u5EFA\u7B51\u670D\u52A1"), /*#__PURE__*/React.createElement(Row$1, {
|
|
24982
24985
|
gutter: [17, 0]
|
|
24983
24986
|
}, /*#__PURE__*/React.createElement(Col$1, {
|
|
24984
24987
|
span: 6
|
|
@@ -26584,7 +26587,7 @@ var Main$4 = decorator(Form.create())(function (props) {
|
|
|
26584
26587
|
className: "kts-invoice-operate-freight"
|
|
26585
26588
|
}, /*#__PURE__*/React.createElement("div", {
|
|
26586
26589
|
className: 'real-estate-info-digtal-label'
|
|
26587
|
-
}, "\u7279\
|
|
26590
|
+
}, "\u7279\u5B9A\u4FE1\u606F-\u8D27\u7269\u8FD0\u8F93"), /*#__PURE__*/React.createElement("div", {
|
|
26588
26591
|
className: "kts-invoice-operate-goods-list-digtal",
|
|
26589
26592
|
onClick: function onClick(e) {
|
|
26590
26593
|
e.stopPropagation();
|
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, {
|
|
@@ -24513,7 +24514,7 @@ var RealEstateInfo = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(f
|
|
|
24513
24514
|
className: "kts-invoice-operate-real-estate-info-digtal"
|
|
24514
24515
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
24515
24516
|
className: 'real-estate-info-digtal-label'
|
|
24516
|
-
}, "\u7279\
|
|
24517
|
+
}, "\u7279\u5B9A\u4FE1\u606F-\u4E0D\u52A8\u4EA7\u7ECF\u8425\u79DF\u8D41\u670D\u52A1"), getList());
|
|
24517
24518
|
});
|
|
24518
24519
|
|
|
24519
24520
|
var MyDiv$3 = /*#__PURE__*/function (_React$Component) {
|
|
@@ -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, {
|
|
@@ -24860,7 +24863,7 @@ var RealEstateSales = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(
|
|
|
24860
24863
|
className: "kts-invoice-operate-real-estate-info-digtal"
|
|
24861
24864
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
24862
24865
|
className: 'real-estate-info-digtal-label'
|
|
24863
|
-
}, "\u7279\
|
|
24866
|
+
}, "\u7279\u5B9A\u4FE1\u606F-\u4E0D\u52A8\u4EA7\u9500\u552E"), getList());
|
|
24864
24867
|
});
|
|
24865
24868
|
|
|
24866
24869
|
var MyDiv$4 = /*#__PURE__*/function (_React$Component) {
|
|
@@ -24988,7 +24991,7 @@ var Architecture = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(fun
|
|
|
24988
24991
|
className: "kts-invoice-operate-real-estate-info-digtal"
|
|
24989
24992
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
24990
24993
|
className: 'real-estate-info-digtal-label'
|
|
24991
|
-
}, "\u7279\
|
|
24994
|
+
}, "\u7279\u5B9A\u4FE1\u606F-\u5EFA\u7B51\u670D\u52A1"), /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Row, {
|
|
24992
24995
|
gutter: [17, 0]
|
|
24993
24996
|
}, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Col, {
|
|
24994
24997
|
span: 6
|
|
@@ -26594,7 +26597,7 @@ var Main$4 = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(function
|
|
|
26594
26597
|
className: "kts-invoice-operate-freight"
|
|
26595
26598
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
26596
26599
|
className: 'real-estate-info-digtal-label'
|
|
26597
|
-
}, "\u7279\
|
|
26600
|
+
}, "\u7279\u5B9A\u4FE1\u606F-\u8D27\u7269\u8FD0\u8F93"), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
26598
26601
|
className: "kts-invoice-operate-goods-list-digtal",
|
|
26599
26602
|
onClick: function onClick(e) {
|
|
26600
26603
|
e.stopPropagation();
|
package/package.json
CHANGED
|
@@ -40,7 +40,7 @@ export default decorator<RealEstateInfoProps, FormComponentProps & RealEstateInf
|
|
|
40
40
|
|
|
41
41
|
return (
|
|
42
42
|
<div className="kts-invoice-operate-real-estate-info-digtal">
|
|
43
|
-
<div className='real-estate-info-digtal-label'
|
|
43
|
+
<div className='real-estate-info-digtal-label' >特定信息-建筑服务</div>
|
|
44
44
|
<Row gutter={[17, 0]}>
|
|
45
45
|
<Col span={6} >
|
|
46
46
|
<Form.Item label='土地增值税项目编号' >
|
|
@@ -94,7 +94,7 @@ const Main = decorator<IGoodsListProps, FormComponentProps & IGoodsListProps>(Fo
|
|
|
94
94
|
// controller.useForm('freightInfo', form);
|
|
95
95
|
return (
|
|
96
96
|
<div className="kts-invoice-operate-freight">
|
|
97
|
-
<div className='real-estate-info-digtal-label'
|
|
97
|
+
<div className='real-estate-info-digtal-label' >特定信息-货物运输</div>
|
|
98
98
|
<div className="kts-invoice-operate-goods-list-digtal" onClick={(e) => { e.stopPropagation() }} >
|
|
99
99
|
<div className="kts-invoice-operate-freight-list-able">
|
|
100
100
|
{/* 添加行 */}
|
|
@@ -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' }}>
|
|
@@ -188,7 +187,7 @@ export default decorator<RealEstateInfoProps, FormComponentProps & RealEstateInf
|
|
|
188
187
|
}
|
|
189
188
|
return (
|
|
190
189
|
<div className="kts-invoice-operate-real-estate-info-digtal">
|
|
191
|
-
<div className='real-estate-info-digtal-label'
|
|
190
|
+
<div className='real-estate-info-digtal-label' >特定信息-不动产经营租赁服务</div>
|
|
192
191
|
{getList()}
|
|
193
192
|
|
|
194
193
|
</div>
|
|
@@ -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='不动产单元代码' >
|
|
@@ -246,7 +246,7 @@ export default decorator<RealEstateInfoProps, FormComponentProps & RealEstateInf
|
|
|
246
246
|
}
|
|
247
247
|
return (
|
|
248
248
|
<div className="kts-invoice-operate-real-estate-info-digtal">
|
|
249
|
-
<div className='real-estate-info-digtal-label'
|
|
249
|
+
<div className='real-estate-info-digtal-label' >特定信息-不动产销售</div>
|
|
250
250
|
{getList()}
|
|
251
251
|
|
|
252
252
|
</div>
|