kts-component-invoice-operate 3.2.249 → 3.2.251

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.js CHANGED
@@ -873,42 +873,42 @@ var InvoiceControllerForm = /*#__PURE__*/function (_GreyReactBox) {
873
873
  _errors.set('payList', _context.t2.errors);
874
874
 
875
875
  case 47:
876
- _values.set('payList', this.state.payListState.goodsList.slice()); // 金额(含税)
876
+ _values.set('payList', this.state.payListState.goodsList.slice()); // 金额(不含税)
877
877
 
878
878
 
879
- _values.set('lineAmountIncludeTax', function () {
879
+ _values.set('lineAmountExcludeTax', function () {
880
880
  var sum = mathjs.chain(mathjs.bignumber(0));
881
881
 
882
882
  _this3.state.goodsListState.goodsList.forEach(function (e) {
883
883
  if (!e || e.lineAttribute === LineAttributeType$1.赠品行) return;
884
- sum = sum.add(mathjs.bignumber(e.lineAmountIncludeTax || 0));
884
+ sum = sum.add(mathjs.bignumber(e.lineAmountExcludeTax || 0));
885
885
  });
886
886
 
887
887
  return sum.done().toNumber();
888
- }()); // 金额(不含税)
888
+ }()); // 税额
889
889
 
890
890
 
891
- _values.set('lineAmountExcludeTax', function () {
891
+ _values.set('taxAmount', function () {
892
892
  var sum = mathjs.chain(mathjs.bignumber(0));
893
893
 
894
894
  _this3.state.goodsListState.goodsList.forEach(function (e) {
895
895
  if (!e || e.lineAttribute === LineAttributeType$1.赠品行) return;
896
- sum = sum.add(mathjs.bignumber(e.lineAmountExcludeTax || 0));
896
+ sum = sum.add(mathjs.bignumber(e.taxAmount || 0));
897
897
  });
898
898
 
899
899
  return sum.done().toNumber();
900
- }()); // 税额
900
+ }()); // 金额(含税)
901
901
 
902
902
 
903
- _values.set('taxAmount', function () {
903
+ _values.set('lineAmountIncludeTax', function () {
904
904
  var sum = mathjs.chain(mathjs.bignumber(0));
905
905
 
906
906
  _this3.state.goodsListState.goodsList.forEach(function (e) {
907
907
  if (!e || e.lineAttribute === LineAttributeType$1.赠品行) return;
908
- sum = sum.add(mathjs.bignumber(e.taxAmount || 0));
908
+ sum = sum.add(mathjs.bignumber(e.lineAmountIncludeTax || 0));
909
909
  });
910
910
 
911
- return sum.done().toNumber();
911
+ return sum.done().toNumber(); // return chain(bignumber(_values.get('lineAmountExcludeTax'))).add(bignumber(_values.get('taxAmount'))).done().toNumber();
912
912
  }()); // 含税标记
913
913
 
914
914
 
@@ -9693,8 +9693,10 @@ var updateUnitPriceTax = /*#__PURE__*/function () {
9693
9693
  });
9694
9694
 
9695
9695
  case 11:
9696
- // 税额 = 金额(含税)-金额(不含税)
9697
- taxAmount = evaluate("".concat(lineAmountIncludeTax, " - ").concat(lineAmountExcludeTax));
9696
+ // 税额 = 金额(含税)-金额(不含税) (老逻辑)
9697
+ // const taxAmount = evaluate(`${lineAmountIncludeTax} - ${lineAmountExcludeTax}`);
9698
+ // 税额 = 金额(含税)-金额(不含税)(新逻辑)
9699
+ taxAmount = evaluate("".concat(lineAmountExcludeTax, " * ").concat(values.taxRate, "/100"));
9698
9700
  form.setFieldsValue({
9699
9701
  taxAmount: taxAmount
9700
9702
  });
@@ -10418,7 +10420,8 @@ var itemBlur = /*#__PURE__*/(function () {
10418
10420
  // 中间数据
10419
10421
  between = _objectSpread2({}, record);
10420
10422
  between.taxClassificationCode = record.taxClassificationCode;
10421
- between.shorthand = record.shorthand; // 设置编辑货物
10423
+ between.shorthand = record.shorthand;
10424
+ between.mtzlDm = undefined; // 设置编辑货物
10422
10425
 
10423
10426
  editGood = s.goodsListState.editGood = _objectSpread2(_objectSpread2({}, s.goodsListState.editGood), between); // 导入FORM里
10424
10427
 
@@ -10432,22 +10435,41 @@ var itemBlur = /*#__PURE__*/(function () {
10432
10435
  }
10433
10436
 
10434
10437
  if (!s.goodsListState.isTaxIncluded) {
10435
- _context.next = 13;
10438
+ _context.next = 14;
10436
10439
  break;
10437
10440
  }
10438
10441
 
10439
- _context.next = 11;
10442
+ _context.next = 12;
10440
10443
  return updateUnitPriceExcludingTax(controller, s.goodsListState.form, record);
10441
10444
 
10442
- case 11:
10443
- _context.next = 15;
10445
+ case 12:
10446
+ _context.next = 16;
10444
10447
  break;
10445
10448
 
10446
- case 13:
10447
- _context.next = 15;
10449
+ case 14:
10450
+ _context.next = 16;
10448
10451
  return updateUnitPriceTax(controller, s.goodsListState.form, record);
10449
10452
 
10450
- case 15:
10453
+ case 16:
10454
+ if (!s.goodsListState.isValidateMeiTan) {
10455
+ _context.next = 22;
10456
+ break;
10457
+ }
10458
+
10459
+ _context.next = 19;
10460
+ return s.goodsListState.verifyMeiTanFn(record);
10461
+
10462
+ case 19:
10463
+ _context.t0 = _context.sent;
10464
+
10465
+ if (!(_context.t0 === true)) {
10466
+ _context.next = 22;
10467
+ break;
10468
+ }
10469
+
10470
+ s.goodsListState.meiTanGoodIndex = [editGood.$index];
10471
+
10472
+ case 22:
10451
10473
  case "end":
10452
10474
  return _context.stop();
10453
10475
  }
@@ -14872,9 +14894,8 @@ var useColumns = (function (form) {
14872
14894
  textAlign: 'right'
14873
14895
  },
14874
14896
  loading: isCipher(changeField, 'taxAmount'),
14875
- onChange: function onChange() {
14876
- setChangeField('taxAmount');
14877
- onChangeTaxAmount(controller, form, record);
14897
+ onChange: function onChange() {// setChangeField('taxAmount');
14898
+ // onChangeTaxAmount(controller, form, record);
14878
14899
  }
14879
14900
  }) : /*#__PURE__*/React__default['default'].createElement(MyDiv, {
14880
14901
  loading: isCipher(changeField, 'taxAmount')
@@ -20764,13 +20785,13 @@ var Statistics$1 = (function () {
20764
20785
  var isTaxIncluded = controller.useMemo(function (s) {
20765
20786
  return s.goodsListState.isTaxIncluded;
20766
20787
  }, []);
20767
- /** 金额(含税) */
20788
+ /** 金额(不含税) */
20768
20789
 
20769
- var lineAmountIncludeTax = controller.useMemo(function (s) {
20790
+ var lineAmountExcludeTax = controller.useMemo(function (s) {
20770
20791
  var _s$goodsListState$for, _s$goodsListState$for2;
20771
20792
 
20772
- if (typeof s.goodsListState.amountIncludeTax === 'number') {
20773
- return s.goodsListState.amountIncludeTax;
20793
+ if (typeof s.goodsListState.amountExcludeTax === 'number') {
20794
+ return s.goodsListState.amountExcludeTax;
20774
20795
  }
20775
20796
 
20776
20797
  var sum = mathjs.chain(mathjs.bignumber(0));
@@ -20779,54 +20800,54 @@ var Statistics$1 = (function () {
20779
20800
  var err = (_s$goodsListState$for = (_s$goodsListState$for2 = s.goodsListState.form) === null || _s$goodsListState$for2 === void 0 ? void 0 : _s$goodsListState$for2.getFieldsError()) !== null && _s$goodsListState$for !== void 0 ? _s$goodsListState$for : {};
20780
20801
  s.goodsListState.goodsList.forEach(function (e) {
20781
20802
  if (e.$index === (editGood === null || editGood === void 0 ? void 0 : editGood.$index)) {
20782
- if (!err.lineAmountIncludeTax) {
20783
- sum = sum.add(mathjs.bignumber(editGood.lineAmountIncludeTax || 0));
20803
+ if (!err.lineAmountExcludeTax) {
20804
+ sum = sum.add(mathjs.bignumber(editGood.lineAmountExcludeTax || 0));
20784
20805
  }
20785
20806
  } else {
20786
- sum = sum.add(mathjs.bignumber(e.lineAmountIncludeTax || 0));
20807
+ sum = sum.add(mathjs.bignumber(e.lineAmountExcludeTax || 0));
20787
20808
  }
20788
20809
  });
20789
20810
  return sum.done().toNumber();
20790
20811
  }, []);
20791
- /** 金额(不含税) */
20792
-
20793
- var lineAmountExcludeTax = controller.useMemo(function (s) {
20794
- var _s$goodsListState$for3, _s$goodsListState$for4;
20812
+ /** 税额 */
20795
20813
 
20796
- if (typeof s.goodsListState.amountExcludeTax === 'number') {
20797
- return s.goodsListState.amountExcludeTax;
20814
+ var taxAmount = controller.useMemo(function (s) {
20815
+ if (typeof s.goodsListState.amountTax === 'number') {
20816
+ return s.goodsListState.amountTax;
20798
20817
  }
20799
20818
 
20800
20819
  var sum = mathjs.chain(mathjs.bignumber(0));
20801
20820
  var editGood = s.goodsListState.editGood; // 正在编辑的货物
20802
20821
 
20803
- var err = (_s$goodsListState$for3 = (_s$goodsListState$for4 = s.goodsListState.form) === null || _s$goodsListState$for4 === void 0 ? void 0 : _s$goodsListState$for4.getFieldsError()) !== null && _s$goodsListState$for3 !== void 0 ? _s$goodsListState$for3 : {};
20804
20822
  s.goodsListState.goodsList.forEach(function (e) {
20805
20823
  if (e.$index === (editGood === null || editGood === void 0 ? void 0 : editGood.$index)) {
20806
- if (!err.lineAmountExcludeTax) {
20807
- sum = sum.add(mathjs.bignumber(editGood.lineAmountExcludeTax || 0));
20808
- }
20824
+ sum = sum.add(mathjs.bignumber(editGood.taxAmount || 0));
20809
20825
  } else {
20810
- sum = sum.add(mathjs.bignumber(e.lineAmountExcludeTax || 0));
20826
+ sum = sum.add(mathjs.bignumber(e.taxAmount || 0));
20811
20827
  }
20812
20828
  });
20813
20829
  return sum.done().toNumber();
20814
20830
  }, []);
20815
- /** 税额 */
20831
+ /** 金额(含税) */
20816
20832
 
20817
- var taxAmount = controller.useMemo(function (s) {
20818
- if (typeof s.goodsListState.amountTax === 'number') {
20819
- return s.goodsListState.amountTax;
20833
+ var lineAmountIncludeTax = controller.useMemo(function (s) {
20834
+ var _s$goodsListState$for3, _s$goodsListState$for4;
20835
+
20836
+ if (typeof s.goodsListState.amountIncludeTax === 'number') {
20837
+ return s.goodsListState.amountIncludeTax;
20820
20838
  }
20821
20839
 
20822
20840
  var sum = mathjs.chain(mathjs.bignumber(0));
20823
20841
  var editGood = s.goodsListState.editGood; // 正在编辑的货物
20824
20842
 
20843
+ var err = (_s$goodsListState$for3 = (_s$goodsListState$for4 = s.goodsListState.form) === null || _s$goodsListState$for4 === void 0 ? void 0 : _s$goodsListState$for4.getFieldsError()) !== null && _s$goodsListState$for3 !== void 0 ? _s$goodsListState$for3 : {};
20825
20844
  s.goodsListState.goodsList.forEach(function (e) {
20826
20845
  if (e.$index === (editGood === null || editGood === void 0 ? void 0 : editGood.$index)) {
20827
- sum = sum.add(mathjs.bignumber(editGood.taxAmount || 0));
20846
+ if (!err.lineAmountIncludeTax) {
20847
+ sum = sum.add(mathjs.bignumber(editGood.lineAmountIncludeTax || 0));
20848
+ }
20828
20849
  } else {
20829
- sum = sum.add(mathjs.bignumber(e.taxAmount || 0));
20850
+ sum = sum.add(mathjs.bignumber(e.lineAmountIncludeTax || 0));
20830
20851
  }
20831
20852
  });
20832
20853
  return sum.done().toNumber();
@@ -20869,7 +20890,7 @@ var Statistics$1 = (function () {
20869
20890
  fontWeight: 'bold',
20870
20891
  marginLeft: 4
20871
20892
  }
20872
- }, toStringChinese(lineAmountIncludeTax))), /*#__PURE__*/React__default['default'].createElement("div", {
20893
+ }, toStringChinese(lineAmountExcludeTax + taxAmount))), /*#__PURE__*/React__default['default'].createElement("div", {
20873
20894
  style: {
20874
20895
  flex: 1
20875
20896
  }
@@ -20883,7 +20904,7 @@ var Statistics$1 = (function () {
20883
20904
  minWidth: 119,
20884
20905
  maxWidth: 300
20885
20906
  }
20886
- }, "\xA5", parseFloat(lineAmountIncludeTax).toFixed(2))));
20907
+ }, "\xA5", parseFloat(lineAmountExcludeTax + taxAmount).toFixed(2))));
20887
20908
  });
20888
20909
 
20889
20910
  var AddRowButton$1 = (function () {
@@ -21907,11 +21928,9 @@ var onChangeTaxRate$1 = lazyFn$2(function (controller, form, record) {
21907
21928
  /** 税额 */
21908
21929
 
21909
21930
  var onChangeTaxAmount$1 = lazyFn$2(function (controller, form, record) {
21910
- /** 金额(不含税) */
21911
- var lineAmountExcludeTax;
21912
21931
  form.validateFields( /*#__PURE__*/function () {
21913
21932
  var _ref9 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(err, values) {
21914
- var record, priceExcludeTax;
21933
+ var record, lineAmountIncludeTax;
21915
21934
  return _regeneratorRuntime().wrap(function _callee9$(_context9) {
21916
21935
  while (1) {
21917
21936
  switch (_context9.prev = _context9.next) {
@@ -21932,27 +21951,27 @@ var onChangeTaxAmount$1 = lazyFn$2(function (controller, form, record) {
21932
21951
 
21933
21952
  case 6:
21934
21953
  // 计数不含税金额
21935
- lineAmountExcludeTax = countAmountExcludeTax((record === null || record === void 0 ? void 0 : record.lineAmountIncludeTax) || 0, values.taxAmount);
21954
+ // lineAmountExcludeTax = countAmountExcludeTax(record?.lineAmountIncludeTax || 0, values.taxAmount);
21955
+ // form.setFieldsValue({ lineAmountExcludeTax });
21956
+ // const priceExcludeTax: any = countPrice(lineAmountExcludeTax || '', record?.quantity || '', controller.state.calculatingDigits);
21957
+ // await controller.setEditGood({ lineAmountExcludeTax, taxAmount: values.taxAmount, priceExcludeTax });
21958
+ // form.setFieldsValue({ priceExcludeTax });
21959
+ // 计算含税金额
21960
+ lineAmountIncludeTax = mathjs.chain(mathjs.bignumber((record === null || record === void 0 ? void 0 : record.lineAmountExcludeTax) || 0)).add(mathjs.bignumber(values.taxAmount || 0)).done().toNumber();
21936
21961
  form.setFieldsValue({
21937
- lineAmountExcludeTax: lineAmountExcludeTax
21962
+ lineAmountIncludeTax: lineAmountIncludeTax
21938
21963
  });
21939
- priceExcludeTax = countPrice(lineAmountExcludeTax || '', (record === null || record === void 0 ? void 0 : record.quantity) || '', controller.state.calculatingDigits);
21940
- _context9.next = 11;
21964
+ _context9.next = 10;
21941
21965
  return controller.setEditGood({
21942
- lineAmountExcludeTax: lineAmountExcludeTax,
21943
21966
  taxAmount: values.taxAmount,
21944
- priceExcludeTax: priceExcludeTax
21967
+ lineAmountIncludeTax: lineAmountIncludeTax
21945
21968
  });
21946
21969
 
21947
- case 11:
21948
- form.setFieldsValue({
21949
- priceExcludeTax: priceExcludeTax
21950
- }); // 清楚 计算中启动字段
21951
-
21952
- _context9.next = 14;
21970
+ case 10:
21971
+ _context9.next = 12;
21953
21972
  return clearCalculatingField$1(controller);
21954
21973
 
21955
- case 14:
21974
+ case 12:
21956
21975
  case "end":
21957
21976
  return _context9.stop();
21958
21977
  }
@@ -22103,7 +22122,8 @@ var updateUnitPriceTax$1 = /*#__PURE__*/function () {
22103
22122
 
22104
22123
  case 12:
22105
22124
  // 税额 = 金额(含税)-金额(不含税)
22106
- taxAmount = evaluate("".concat(lineAmountIncludeTax, " - ").concat(lineAmountExcludeTax));
22125
+ // const taxAmount = evaluate(`${lineAmountIncludeTax} - ${lineAmountExcludeTax}`);
22126
+ taxAmount = format2(evaluate("".concat(lineAmountExcludeTax, " * ").concat(values.taxRate, "/100")));
22107
22127
  form.setFieldsValue({
22108
22128
  taxAmount: taxAmount
22109
22129
  });
@@ -24156,21 +24176,22 @@ var useColumns$1 = (function (form) {
24156
24176
  message: '税额不能为空'
24157
24177
  }, {
24158
24178
  validator: function validator(rule, value, callback) {
24159
- //含税金额
24179
+ //含税金额(lineAmountExcludeTax)
24160
24180
  var lineAmountIncludeTax = (editGood === null || editGood === void 0 ? void 0 : editGood.lineAmountIncludeTax) || 0; //不含税金额
24161
24181
  // const lineAmountExcludeTax = lineAmountIncludeTax-value;
24162
24182
 
24163
- var lineAmountExcludeTax = mathjs.chain(mathjs.bignumber(lineAmountIncludeTax || 0)).subtract(mathjs.bignumber(value || 0));
24183
+ var lineAmountExcludeTax = (editGood === null || editGood === void 0 ? void 0 : editGood.lineAmountExcludeTax) || 0;
24164
24184
  var taxRate = editGood === null || editGood === void 0 ? void 0 : editGood.taxRate;
24185
+ console.log('taxRate ===>', taxRate);
24165
24186
 
24166
- if (lineAmountExcludeTax && taxRate && lineAmountIncludeTax) {
24187
+ if (lineAmountExcludeTax && (taxRate || taxRate === 0) && lineAmountIncludeTax) {
24167
24188
  // const total = bignumber(lineAmountExcludeTax * taxRate / 100);
24168
- var total = lineAmountExcludeTax.multiply(mathjs.bignumber(taxRate || 0)).divide(mathjs.bignumber(100)); // if (Number(Math.abs(Number(total) - Number(value)).toFixed(4)) <= 0.01) {
24189
+ var total = mathjs.chain(mathjs.bignumber(lineAmountExcludeTax)).multiply(mathjs.bignumber(taxRate || 0)).divide(mathjs.bignumber(100)); // if (Number(Math.abs(Number(total) - Number(value)).toFixed(4)) <= 0.01) {
24169
24190
 
24170
- if (Math.abs(total.subtract(mathjs.bignumber(value || 0)).done().toNumber()) <= 0.01) {
24191
+ if (Math.abs(total.subtract(mathjs.bignumber(value || 0)).done().toNumber()) <= 0.06) {
24171
24192
  callback();
24172
24193
  } else {
24173
- callback('税额填写错误,请重新输入');
24194
+ callback('' + record.serialNo + '行税额校验不通过!');
24174
24195
  }
24175
24196
  } else {
24176
24197
  callback();
@@ -26728,9 +26749,25 @@ var LicensePlateNumber = function LicensePlateNumber(props) {
26728
26749
  // )
26729
26750
  // }
26730
26751
 
26731
- 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 .break-word {\n word-break: break-word;\n}\n";
26752
+ 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 .ktsAnt3x-row.ktsAnt3x-form-item .ktsAnt3x-form-item-control {\n line-height: normal;\n}\n.kts-invoice-operate-real-estate-info-digtal .break-word {\n word-break: break-word;\n}\n";
26732
26753
  styleInject(css_248z$s);
26733
26754
 
26755
+ var _path$a;
26756
+
26757
+ function _extends$e() { _extends$e = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$e.apply(this, arguments); }
26758
+
26759
+ function SvgPlus$3(props) {
26760
+ return /*#__PURE__*/React.createElement("svg", _extends$e({
26761
+ className: "plus_svg__icon",
26762
+ viewBox: "0 0 1024 1024",
26763
+ xmlns: "http://www.w3.org/2000/svg",
26764
+ width: 200,
26765
+ height: 200
26766
+ }, props), _path$a || (_path$a = /*#__PURE__*/React.createElement("path", {
26767
+ d: "M644.879 886.426c0-71.304-56.367-129.106-125.887-129.106-69.511 0-125.898 57.802-125.898 129.106 0 71.323 56.388 129.124 125.898 129.124 69.52 0 125.887-57.803 125.887-129.124zm0-387.336c0-71.303-56.367-129.124-125.887-129.124-69.511 0-125.898 57.822-125.898 129.124 0 71.303 56.388 129.106 125.898 129.106 69.52 0 125.887-57.803 125.887-129.106zm0-361.515c0-71.324-56.367-129.125-125.887-129.125-69.511 0-125.898 57.801-125.898 129.125 0 71.304 56.388 129.105 125.898 129.105 69.52-.001 125.887-57.802 125.887-129.105z"
26768
+ })));
26769
+ }
26770
+
26734
26771
  /** 特殊信息-建筑服务 */
26735
26772
 
26736
26773
  var Architecture = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(function (props) {
@@ -26745,7 +26782,18 @@ var Architecture = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(fun
26745
26782
  return model === 'readOnly';
26746
26783
  }, [model]); // 注册 form
26747
26784
 
26748
- controller.useForm('serviceDataDtoInfo', form);
26785
+ controller.useForm('serviceDataDtoInfo', form); // 监听 crossCitiesSign 字段值变化
26786
+
26787
+ var _React$useState = React__default['default'].useState(form.getFieldValue('crossCitiesSign')),
26788
+ _React$useState2 = _slicedToArray(_React$useState, 2),
26789
+ crossCitiesSign = _React$useState2[0],
26790
+ setCrossCitiesSign = _React$useState2[1]; // 同步表单初始值和外部更新
26791
+
26792
+
26793
+ React__default['default'].useEffect(function () {
26794
+ var currentValue = form.getFieldValue('crossCitiesSign');
26795
+ setCrossCitiesSign(currentValue);
26796
+ }, [form]);
26749
26797
  return /*#__PURE__*/React__default['default'].createElement("div", {
26750
26798
  className: "kts-invoice-operate-real-estate-info-digtal"
26751
26799
  }, /*#__PURE__*/React__default['default'].createElement("div", {
@@ -26815,6 +26863,9 @@ var Architecture = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(fun
26815
26863
  placeholder: "\u8BF7\u9009\u62E9",
26816
26864
  style: {
26817
26865
  width: '100%'
26866
+ },
26867
+ onChange: function onChange(value) {
26868
+ return setCrossCitiesSign(value);
26818
26869
  }
26819
26870
  }, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Select.Option, {
26820
26871
  value: 'Y'
@@ -26822,6 +26873,62 @@ var Architecture = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(fun
26822
26873
  value: 'N'
26823
26874
  }, "\u5426"))))), /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Col, {
26824
26875
  span: 6
26876
+ }, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, {
26877
+ label: "\u8DE8\u533A\u57DF\u6D89\u7A0E\u4E8B\u9879\u62A5\u9A8C\u7BA1\u7406\u7F16\u53F7"
26878
+ }, getFieldDecorator('crossRegionTaxReportNo', {
26879
+ rules: [{
26880
+ required: crossCitiesSign === 'Y',
26881
+ message: '请输入跨区域涉税事项报验管理编号'
26882
+ }]
26883
+ })( /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Input, {
26884
+ readOnly: true,
26885
+ autoComplete: 'off',
26886
+ addonAfter: props.showGetCrossRegionTaxReportNoButton && /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Button, {
26887
+ style: {
26888
+ height: 0,
26889
+ padding: 0,
26890
+ width: "auto"
26891
+ },
26892
+ type: "link",
26893
+ icon: /*#__PURE__*/React__default['default'].createElement(Icon, {
26894
+ component: SvgPlus$3
26895
+ }),
26896
+ disabled: readOnly || crossCitiesSign !== 'Y',
26897
+ onClick: function () {
26898
+ var _onClick = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
26899
+ var _props$getCrossRegion;
26900
+
26901
+ var no;
26902
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
26903
+ while (1) {
26904
+ switch (_context.prev = _context.next) {
26905
+ case 0:
26906
+ _context.next = 2;
26907
+ return (_props$getCrossRegion = props.getCrossRegionTaxReportNo) === null || _props$getCrossRegion === void 0 ? void 0 : _props$getCrossRegion.call(props);
26908
+
26909
+ case 2:
26910
+ no = _context.sent;
26911
+ form.setFieldsValue({
26912
+ crossRegionTaxReportNo: no
26913
+ });
26914
+
26915
+ case 4:
26916
+ case "end":
26917
+ return _context.stop();
26918
+ }
26919
+ }
26920
+ }, _callee);
26921
+ }));
26922
+
26923
+ function onClick() {
26924
+ return _onClick.apply(this, arguments);
26925
+ }
26926
+
26927
+ return onClick;
26928
+ }()
26929
+ })
26930
+ })))), /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Col, {
26931
+ span: 6
26825
26932
  }, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, {
26826
26933
  label: "\u5EFA\u7B51\u9879\u76EE\u540D\u79F0"
26827
26934
  }, getFieldDecorator('constructName', {
@@ -31620,7 +31727,11 @@ var Main$6 = function Main(props) {
31620
31727
  useToGenerateId(controller);
31621
31728
  React__default['default'].useEffect(function () {
31622
31729
  setKey(key + 1);
31623
- }, [controller]);
31730
+ }, [controller]); // React.useEffect(() => {
31731
+ // setKey(key + 1)
31732
+ // controller.state.stakeholder.enables = ['taxAmount']
31733
+ // }, [controller]);
31734
+
31624
31735
  return /*#__PURE__*/React__default['default'].createElement(InvoiceContext.Provider, {
31625
31736
  key: key,
31626
31737
  value: controller
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kts-component-invoice-operate",
3
- "version": "3.2.249",
3
+ "version": "3.2.251",
4
4
  "scripts": {
5
5
  "dev": "dumi dev --max-old-space-size=6096",
6
6
  "start": "dumi dev",
@@ -40,36 +40,91 @@ class MyInvoiceController extends InvoiceController {
40
40
  console.log(value, 'onBuyerNameBlur - Blur');
41
41
 
42
42
  return [
43
+ // {
44
+ // "taxCategoryCode": "1030206030000000000",
45
+ // "productName": "醋及醋代用品",
46
+ // "shorthand": "调味品",
47
+ // "id": null,
48
+ // "specification": null,
49
+ // "createTime": null,
50
+ // "status": 1,
51
+ // "versionCode": "48.0",
52
+ // "version": "32.0",
53
+ // "startTime": "20190401",
54
+ // "endTime": null,
55
+ // "cargo": null,
56
+ // "desc": null,
57
+ // "taxRate": "13%",
58
+ // "keyword": "食醋、米醋、酒醋、啤酒醋、麦芽醋、酒精醋、水果醋、醋精",
59
+ // "summarizedItem": "N",
60
+ // "countCode": null,
61
+ // "customsItem": null,
62
+ // "updateTime": null,
63
+ // "hzx": null,
64
+ // "children": null,
65
+ // "vatspecialManagement": "",
66
+ // "pid": "1030206000000000000",
67
+ // "vatpolicyBasis": null,
68
+ // "vatspecialManagementCode": "",
69
+ // "gstpolicyBasisCode": null,
70
+ // "gstspecialManagement": null,
71
+ // "gstpolicyBasis": null
72
+ // },
43
73
  {
44
- "taxCategoryCode": "1030206030000000000",
45
- "productName": "醋及醋代用品",
46
- "shorthand": "调味品",
47
- "id": null,
74
+ "attributeVOList": null,
75
+ "productName": '原煤',
76
+ "name": null,
77
+ "productCode": "0003",
78
+ "shorthand": "小型起重设备",
79
+ "id": "10881474649024102400167947617243",
48
80
  "specification": null,
49
- "createTime": null,
81
+ "categoryId": "10688389540499947520167487266471",
82
+ "categoryName": "水果",
83
+ "internalNumber": null,
84
+ "taxCategoryName": "轻小型起重设备配套件",
85
+ "referenceAmount": null,
86
+ "priceAmount": 200.000,
87
+ "taxId": null,
88
+ "taxRate": null,
89
+ "brandName": null,
90
+ "buyGroupCode": null,
91
+ "buyGroupId": null,
92
+ "buyGroupName": null,
93
+ "categoryId": 2073,
94
+ "categoryName": "通用",
95
+ "companyId": "41daec4c-baa2-451f-b756-e26067b8657c",
96
+ "createTime": "2021-09-10 15:45:43.0",
97
+ "enjoyPreferentialPolicies": 0,
98
+ "factoryCode": null,
99
+ "factoryId": null,
100
+ "factoryName": null,
101
+ "id": 146200,
102
+ "internalNumber": "发动机盖",
103
+ "isUalityInspection": null,
104
+ "name": "原煤",
105
+ "preferentialPoliciesType": null,
106
+ "priceAmount": 50,
107
+ "procurementCycle": 0,
108
+ "shorthand": "煤炭",
109
+ "specification": "abc",
110
+ "spuCode": "6000001738252675",
50
111
  "status": 1,
51
- "versionCode": "48.0",
52
- "version": "32.0",
53
- "startTime": "20190401",
54
- "endTime": null,
55
- "cargo": null,
56
- "desc": null,
57
- "taxRate": "13%",
58
- "keyword": "食醋、米醋、酒醋、啤酒醋、麦芽醋、酒精醋、水果醋、醋精",
59
- "summarizedItem": "N",
60
- "countCode": null,
61
- "customsItem": null,
62
- "updateTime": null,
63
- "hzx": null,
64
- "children": null,
65
- "vatspecialManagement": "",
66
- "pid": "1030206000000000000",
67
- "vatpolicyBasis": null,
68
- "vatspecialManagementCode": "",
69
- "gstpolicyBasisCode": null,
70
- "gstspecialManagement": null,
71
- "gstpolicyBasis": null
72
- }
112
+ "taxCategoryCode": "1020101000000000000",
113
+ "taxExemptionType": "",
114
+ "taxId": 11,
115
+ "taxRate": null,
116
+ "unitId": 30,
117
+ "unitName": "件",
118
+ "itemType": "通用",
119
+ "itemNo": "6000001738252675",
120
+ "itemName": "原煤",
121
+ "itemCode": "123123",
122
+ "itemModelName": "abc",
123
+ "unit": "件",
124
+ "priceIncludeTax": 50,
125
+ "priceExcludeTax": 50,
126
+ "taxClassificationCode": "1020101000000000000"
127
+ },
73
128
  ]
74
129
  };
75
130
 
@@ -14581,18 +14581,26 @@ export default () => {
14581
14581
  title='农产品'
14582
14582
  />
14583
14583
  }
14584
- specialInfor={<Invoice.PayList
14585
- vehicleTypeList={[
14586
- { label: '现金', value: '001' },
14587
- { label: '银行转账', value: '002' },
14588
- ]}
14584
+ specialInfor={<Invoice.Architecture
14585
+ addressOptions={[]}
14589
14586
  fieldNames={{
14590
14587
  label: 'name',
14591
14588
  value: 'name',
14592
14589
  children: 'children'
14593
14590
  }}
14594
- />
14595
- }
14591
+ />}
14592
+ // specialInfor={<Invoice.PayList
14593
+ // vehicleTypeList={[
14594
+ // { label: '现金', value: '001' },
14595
+ // { label: '银行转账', value: '002' },
14596
+ // ]}
14597
+ // fieldNames={{
14598
+ // label: 'name',
14599
+ // value: 'name',
14600
+ // children: 'children'
14601
+ // }}
14602
+ // />
14603
+ // }
14596
14604
  stakeholder={
14597
14605
  <Invoice.StakeFarmerholder
14598
14606
  isExpand={false}