kts-component-invoice-operate 4.0.6 → 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 === 0) {
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.map(function (item, index) {
24353
- if (item.lineAttribute === 0) {
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[0].format('YYYY-MM-DD')));
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 === 0) {
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.map(function (item, index) {
24675
- if (item.lineAttribute === 0) {
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, {
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 === 0) {
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.map(function (item, index) {
24363
- if (item.lineAttribute === 0) {
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[0].format('YYYY-MM-DD')));
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 === 0) {
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.map(function (item, index) {
24685
- if (item.lineAttribute === 0) {
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, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kts-component-invoice-operate",
3
- "version": "4.0.6",
3
+ "version": "4.0.7",
4
4
  "scripts": {
5
5
  "dev": "dumi dev --max-old-space-size=6096",
6
6
  "start": "dumi dev",
@@ -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 === 0) {
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 === 0) {
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[0].format('YYYY-MM-DD')}</span>
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 === 0) {
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 === 0) {
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='不动产单元代码' >