kts-component-invoice-operate 3.2.217 → 3.2.218
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 +75 -42
- package/dist/index.js +75 -42
- package/package.json +1 -1
- package/src/Invoice/Invoice-digtal/_test/realEstateInfo/index.tsx +16 -7
- 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/GoodsList/ui/AddRowButton/index.tsx +8 -0
- package/src/Invoice/ui/digtal/RealEstateInfo/index.tsx +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -19144,43 +19144,76 @@ function addGood$2(_x) {
|
|
|
19144
19144
|
|
|
19145
19145
|
|
|
19146
19146
|
function _addGood$1() {
|
|
19147
|
-
_addGood$1 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
19148
|
-
|
|
19147
|
+
_addGood$1 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(controller) {
|
|
19148
|
+
var _controller$formList$;
|
|
19149
|
+
|
|
19150
|
+
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
19149
19151
|
while (1) {
|
|
19150
|
-
switch (
|
|
19152
|
+
switch (_context5.prev = _context5.next) {
|
|
19151
19153
|
case 0:
|
|
19152
|
-
|
|
19153
|
-
return controller.
|
|
19154
|
+
_context5.next = 2;
|
|
19155
|
+
return (_controller$formList$ = controller.formList.get('realEstateInfo')) === null || _controller$formList$ === void 0 ? void 0 : _controller$formList$.validateFields( /*#__PURE__*/function () {
|
|
19156
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(err, values) {
|
|
19157
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
19158
|
+
while (1) {
|
|
19159
|
+
switch (_context2.prev = _context2.next) {
|
|
19160
|
+
case 0:
|
|
19161
|
+
console.log(err, values);
|
|
19162
|
+
|
|
19163
|
+
if (!err) {
|
|
19164
|
+
_context2.next = 4;
|
|
19165
|
+
break;
|
|
19166
|
+
}
|
|
19167
|
+
|
|
19168
|
+
message$1.error('请先填写发票行信息,再添加新的行');
|
|
19169
|
+
return _context2.abrupt("return");
|
|
19170
|
+
|
|
19171
|
+
case 4:
|
|
19172
|
+
case "end":
|
|
19173
|
+
return _context2.stop();
|
|
19174
|
+
}
|
|
19175
|
+
}
|
|
19176
|
+
}, _callee2);
|
|
19177
|
+
}));
|
|
19178
|
+
|
|
19179
|
+
return function (_x4, _x5) {
|
|
19180
|
+
return _ref2.apply(this, arguments);
|
|
19181
|
+
};
|
|
19182
|
+
}());
|
|
19154
19183
|
|
|
19155
19184
|
case 2:
|
|
19156
|
-
|
|
19157
|
-
return controller.
|
|
19185
|
+
_context5.next = 4;
|
|
19186
|
+
return controller.saveEditGood();
|
|
19158
19187
|
|
|
19159
19188
|
case 4:
|
|
19160
|
-
|
|
19189
|
+
_context5.next = 6;
|
|
19190
|
+
return controller.wait();
|
|
19191
|
+
|
|
19192
|
+
case 6:
|
|
19193
|
+
_context5.next = 8;
|
|
19161
19194
|
return controller.run( /*#__PURE__*/function () {
|
|
19162
|
-
var
|
|
19195
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(s) {
|
|
19163
19196
|
var _controller$state$goo;
|
|
19164
19197
|
|
|
19165
|
-
return _regeneratorRuntime().wrap(function
|
|
19198
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
19166
19199
|
while (1) {
|
|
19167
|
-
switch (
|
|
19200
|
+
switch (_context4.prev = _context4.next) {
|
|
19168
19201
|
case 0:
|
|
19169
19202
|
if (!s.goodsListState.editGood) {
|
|
19170
|
-
|
|
19203
|
+
_context4.next = 3;
|
|
19171
19204
|
break;
|
|
19172
19205
|
}
|
|
19173
19206
|
|
|
19174
|
-
|
|
19207
|
+
_context4.next = 3;
|
|
19175
19208
|
return (_controller$state$goo = controller.state.goodsListState.form) === null || _controller$state$goo === void 0 ? void 0 : _controller$state$goo.validateFields( /*#__PURE__*/function () {
|
|
19176
|
-
var
|
|
19209
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(err, values) {
|
|
19177
19210
|
var firstError;
|
|
19178
|
-
return _regeneratorRuntime().wrap(function
|
|
19211
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
19179
19212
|
while (1) {
|
|
19180
|
-
switch (
|
|
19213
|
+
switch (_context3.prev = _context3.next) {
|
|
19181
19214
|
case 0:
|
|
19182
19215
|
if (!err) {
|
|
19183
|
-
|
|
19216
|
+
_context3.next = 4;
|
|
19184
19217
|
break;
|
|
19185
19218
|
}
|
|
19186
19219
|
|
|
@@ -19189,50 +19222,50 @@ function _addGood$1() {
|
|
|
19189
19222
|
content: firstError.errors[0].message,
|
|
19190
19223
|
key: '你正在编辑一个货物'
|
|
19191
19224
|
});
|
|
19192
|
-
return
|
|
19225
|
+
return _context3.abrupt("return");
|
|
19193
19226
|
|
|
19194
19227
|
case 4:
|
|
19195
19228
|
case "end":
|
|
19196
|
-
return
|
|
19229
|
+
return _context3.stop();
|
|
19197
19230
|
}
|
|
19198
19231
|
}
|
|
19199
|
-
},
|
|
19232
|
+
}, _callee3);
|
|
19200
19233
|
}));
|
|
19201
19234
|
|
|
19202
|
-
return function (
|
|
19203
|
-
return
|
|
19235
|
+
return function (_x7, _x8) {
|
|
19236
|
+
return _ref4.apply(this, arguments);
|
|
19204
19237
|
};
|
|
19205
19238
|
}());
|
|
19206
19239
|
|
|
19207
19240
|
case 3:
|
|
19208
|
-
|
|
19241
|
+
_context4.next = 5;
|
|
19209
19242
|
return controller.addGood({
|
|
19210
19243
|
taxRate: s.goodsListState.defaultRate,
|
|
19211
19244
|
lineAttribute: LineAttributeType$1.正常
|
|
19212
19245
|
});
|
|
19213
19246
|
|
|
19214
19247
|
case 5:
|
|
19215
|
-
s.goodsListState.editGood =
|
|
19248
|
+
s.goodsListState.editGood = _context4.sent;
|
|
19216
19249
|
|
|
19217
19250
|
case 6:
|
|
19218
19251
|
case "end":
|
|
19219
|
-
return
|
|
19252
|
+
return _context4.stop();
|
|
19220
19253
|
}
|
|
19221
19254
|
}
|
|
19222
|
-
},
|
|
19255
|
+
}, _callee4);
|
|
19223
19256
|
}));
|
|
19224
19257
|
|
|
19225
|
-
return function (
|
|
19226
|
-
return
|
|
19258
|
+
return function (_x6) {
|
|
19259
|
+
return _ref3.apply(this, arguments);
|
|
19227
19260
|
};
|
|
19228
19261
|
}());
|
|
19229
19262
|
|
|
19230
|
-
case
|
|
19263
|
+
case 8:
|
|
19231
19264
|
case "end":
|
|
19232
|
-
return
|
|
19265
|
+
return _context5.stop();
|
|
19233
19266
|
}
|
|
19234
19267
|
}
|
|
19235
|
-
},
|
|
19268
|
+
}, _callee5);
|
|
19236
19269
|
}));
|
|
19237
19270
|
return _addGood$1.apply(this, arguments);
|
|
19238
19271
|
}
|
|
@@ -19242,34 +19275,34 @@ function rollBottom$1(_x2, _x3) {
|
|
|
19242
19275
|
}
|
|
19243
19276
|
|
|
19244
19277
|
function _rollBottom$1() {
|
|
19245
|
-
_rollBottom$1 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
19278
|
+
_rollBottom$1 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(controller, rootElement) {
|
|
19246
19279
|
var cont;
|
|
19247
|
-
return _regeneratorRuntime().wrap(function
|
|
19280
|
+
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
19248
19281
|
while (1) {
|
|
19249
|
-
switch (
|
|
19282
|
+
switch (_context6.prev = _context6.next) {
|
|
19250
19283
|
case 0:
|
|
19251
|
-
|
|
19284
|
+
_context6.next = 2;
|
|
19252
19285
|
return controller.wait();
|
|
19253
19286
|
|
|
19254
19287
|
case 2:
|
|
19255
19288
|
cont = rootElement === null || rootElement === void 0 ? void 0 : rootElement.querySelector('.ktsAntX-table-body');
|
|
19256
19289
|
|
|
19257
19290
|
if (cont) {
|
|
19258
|
-
|
|
19291
|
+
_context6.next = 5;
|
|
19259
19292
|
break;
|
|
19260
19293
|
}
|
|
19261
19294
|
|
|
19262
|
-
return
|
|
19295
|
+
return _context6.abrupt("return");
|
|
19263
19296
|
|
|
19264
19297
|
case 5:
|
|
19265
19298
|
cont.scrollTop = cont.scrollHeight;
|
|
19266
19299
|
|
|
19267
19300
|
case 6:
|
|
19268
19301
|
case "end":
|
|
19269
|
-
return
|
|
19302
|
+
return _context6.stop();
|
|
19270
19303
|
}
|
|
19271
19304
|
}
|
|
19272
|
-
},
|
|
19305
|
+
}, _callee6);
|
|
19273
19306
|
}));
|
|
19274
19307
|
return _rollBottom$1.apply(this, arguments);
|
|
19275
19308
|
}
|
|
@@ -24528,7 +24561,7 @@ var RealEstateInfo = decorator(Form.create())(function (props) {
|
|
|
24528
24561
|
className: "kts-invoice-operate-real-estate-info-digtal"
|
|
24529
24562
|
}, /*#__PURE__*/React.createElement("div", {
|
|
24530
24563
|
className: 'real-estate-info-digtal-label'
|
|
24531
|
-
}, "\u7279\
|
|
24564
|
+
}, "\u7279\u5B9A\u4FE1\u606F-\u4E0D\u52A8\u4EA7\u7ECF\u8425\u79DF\u8D41\u670D\u52A1"), getList());
|
|
24532
24565
|
});
|
|
24533
24566
|
|
|
24534
24567
|
var MyDiv$3 = /*#__PURE__*/function (_React$Component) {
|
|
@@ -24656,7 +24689,7 @@ var Architecture = decorator(Form.create())(function (props) {
|
|
|
24656
24689
|
className: "kts-invoice-operate-real-estate-info-digtal"
|
|
24657
24690
|
}, /*#__PURE__*/React.createElement("div", {
|
|
24658
24691
|
className: 'real-estate-info-digtal-label'
|
|
24659
|
-
}, "\u7279\
|
|
24692
|
+
}, "\u7279\u5B9A\u4FE1\u606F-\u5EFA\u7B51\u670D\u52A1"), /*#__PURE__*/React.createElement(Row$1, {
|
|
24660
24693
|
gutter: [17, 0]
|
|
24661
24694
|
}, /*#__PURE__*/React.createElement(Col$1, {
|
|
24662
24695
|
span: 6
|
|
@@ -26262,7 +26295,7 @@ var Main$4 = decorator(Form.create())(function (props) {
|
|
|
26262
26295
|
className: "kts-invoice-operate-freight"
|
|
26263
26296
|
}, /*#__PURE__*/React.createElement("div", {
|
|
26264
26297
|
className: 'real-estate-info-digtal-label'
|
|
26265
|
-
}, "\u7279\
|
|
26298
|
+
}, "\u7279\u5B9A\u4FE1\u606F-\u8D27\u7269\u8FD0\u8F93"), /*#__PURE__*/React.createElement("div", {
|
|
26266
26299
|
className: "kts-invoice-operate-goods-list-digtal",
|
|
26267
26300
|
onClick: function onClick(e) {
|
|
26268
26301
|
e.stopPropagation();
|
package/dist/index.js
CHANGED
|
@@ -19154,43 +19154,76 @@ function addGood$2(_x) {
|
|
|
19154
19154
|
|
|
19155
19155
|
|
|
19156
19156
|
function _addGood$1() {
|
|
19157
|
-
_addGood$1 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
19158
|
-
|
|
19157
|
+
_addGood$1 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(controller) {
|
|
19158
|
+
var _controller$formList$;
|
|
19159
|
+
|
|
19160
|
+
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
19159
19161
|
while (1) {
|
|
19160
|
-
switch (
|
|
19162
|
+
switch (_context5.prev = _context5.next) {
|
|
19161
19163
|
case 0:
|
|
19162
|
-
|
|
19163
|
-
return controller.
|
|
19164
|
+
_context5.next = 2;
|
|
19165
|
+
return (_controller$formList$ = controller.formList.get('realEstateInfo')) === null || _controller$formList$ === void 0 ? void 0 : _controller$formList$.validateFields( /*#__PURE__*/function () {
|
|
19166
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(err, values) {
|
|
19167
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
19168
|
+
while (1) {
|
|
19169
|
+
switch (_context2.prev = _context2.next) {
|
|
19170
|
+
case 0:
|
|
19171
|
+
console.log(err, values);
|
|
19172
|
+
|
|
19173
|
+
if (!err) {
|
|
19174
|
+
_context2.next = 4;
|
|
19175
|
+
break;
|
|
19176
|
+
}
|
|
19177
|
+
|
|
19178
|
+
ktsXui.message.error('请先填写发票行信息,再添加新的行');
|
|
19179
|
+
return _context2.abrupt("return");
|
|
19180
|
+
|
|
19181
|
+
case 4:
|
|
19182
|
+
case "end":
|
|
19183
|
+
return _context2.stop();
|
|
19184
|
+
}
|
|
19185
|
+
}
|
|
19186
|
+
}, _callee2);
|
|
19187
|
+
}));
|
|
19188
|
+
|
|
19189
|
+
return function (_x4, _x5) {
|
|
19190
|
+
return _ref2.apply(this, arguments);
|
|
19191
|
+
};
|
|
19192
|
+
}());
|
|
19164
19193
|
|
|
19165
19194
|
case 2:
|
|
19166
|
-
|
|
19167
|
-
return controller.
|
|
19195
|
+
_context5.next = 4;
|
|
19196
|
+
return controller.saveEditGood();
|
|
19168
19197
|
|
|
19169
19198
|
case 4:
|
|
19170
|
-
|
|
19199
|
+
_context5.next = 6;
|
|
19200
|
+
return controller.wait();
|
|
19201
|
+
|
|
19202
|
+
case 6:
|
|
19203
|
+
_context5.next = 8;
|
|
19171
19204
|
return controller.run( /*#__PURE__*/function () {
|
|
19172
|
-
var
|
|
19205
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(s) {
|
|
19173
19206
|
var _controller$state$goo;
|
|
19174
19207
|
|
|
19175
|
-
return _regeneratorRuntime().wrap(function
|
|
19208
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
19176
19209
|
while (1) {
|
|
19177
|
-
switch (
|
|
19210
|
+
switch (_context4.prev = _context4.next) {
|
|
19178
19211
|
case 0:
|
|
19179
19212
|
if (!s.goodsListState.editGood) {
|
|
19180
|
-
|
|
19213
|
+
_context4.next = 3;
|
|
19181
19214
|
break;
|
|
19182
19215
|
}
|
|
19183
19216
|
|
|
19184
|
-
|
|
19217
|
+
_context4.next = 3;
|
|
19185
19218
|
return (_controller$state$goo = controller.state.goodsListState.form) === null || _controller$state$goo === void 0 ? void 0 : _controller$state$goo.validateFields( /*#__PURE__*/function () {
|
|
19186
|
-
var
|
|
19219
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(err, values) {
|
|
19187
19220
|
var firstError;
|
|
19188
|
-
return _regeneratorRuntime().wrap(function
|
|
19221
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
19189
19222
|
while (1) {
|
|
19190
|
-
switch (
|
|
19223
|
+
switch (_context3.prev = _context3.next) {
|
|
19191
19224
|
case 0:
|
|
19192
19225
|
if (!err) {
|
|
19193
|
-
|
|
19226
|
+
_context3.next = 4;
|
|
19194
19227
|
break;
|
|
19195
19228
|
}
|
|
19196
19229
|
|
|
@@ -19199,50 +19232,50 @@ function _addGood$1() {
|
|
|
19199
19232
|
content: firstError.errors[0].message,
|
|
19200
19233
|
key: '你正在编辑一个货物'
|
|
19201
19234
|
});
|
|
19202
|
-
return
|
|
19235
|
+
return _context3.abrupt("return");
|
|
19203
19236
|
|
|
19204
19237
|
case 4:
|
|
19205
19238
|
case "end":
|
|
19206
|
-
return
|
|
19239
|
+
return _context3.stop();
|
|
19207
19240
|
}
|
|
19208
19241
|
}
|
|
19209
|
-
},
|
|
19242
|
+
}, _callee3);
|
|
19210
19243
|
}));
|
|
19211
19244
|
|
|
19212
|
-
return function (
|
|
19213
|
-
return
|
|
19245
|
+
return function (_x7, _x8) {
|
|
19246
|
+
return _ref4.apply(this, arguments);
|
|
19214
19247
|
};
|
|
19215
19248
|
}());
|
|
19216
19249
|
|
|
19217
19250
|
case 3:
|
|
19218
|
-
|
|
19251
|
+
_context4.next = 5;
|
|
19219
19252
|
return controller.addGood({
|
|
19220
19253
|
taxRate: s.goodsListState.defaultRate,
|
|
19221
19254
|
lineAttribute: LineAttributeType$1.正常
|
|
19222
19255
|
});
|
|
19223
19256
|
|
|
19224
19257
|
case 5:
|
|
19225
|
-
s.goodsListState.editGood =
|
|
19258
|
+
s.goodsListState.editGood = _context4.sent;
|
|
19226
19259
|
|
|
19227
19260
|
case 6:
|
|
19228
19261
|
case "end":
|
|
19229
|
-
return
|
|
19262
|
+
return _context4.stop();
|
|
19230
19263
|
}
|
|
19231
19264
|
}
|
|
19232
|
-
},
|
|
19265
|
+
}, _callee4);
|
|
19233
19266
|
}));
|
|
19234
19267
|
|
|
19235
|
-
return function (
|
|
19236
|
-
return
|
|
19268
|
+
return function (_x6) {
|
|
19269
|
+
return _ref3.apply(this, arguments);
|
|
19237
19270
|
};
|
|
19238
19271
|
}());
|
|
19239
19272
|
|
|
19240
|
-
case
|
|
19273
|
+
case 8:
|
|
19241
19274
|
case "end":
|
|
19242
|
-
return
|
|
19275
|
+
return _context5.stop();
|
|
19243
19276
|
}
|
|
19244
19277
|
}
|
|
19245
|
-
},
|
|
19278
|
+
}, _callee5);
|
|
19246
19279
|
}));
|
|
19247
19280
|
return _addGood$1.apply(this, arguments);
|
|
19248
19281
|
}
|
|
@@ -19252,34 +19285,34 @@ function rollBottom$1(_x2, _x3) {
|
|
|
19252
19285
|
}
|
|
19253
19286
|
|
|
19254
19287
|
function _rollBottom$1() {
|
|
19255
|
-
_rollBottom$1 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
19288
|
+
_rollBottom$1 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(controller, rootElement) {
|
|
19256
19289
|
var cont;
|
|
19257
|
-
return _regeneratorRuntime().wrap(function
|
|
19290
|
+
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
19258
19291
|
while (1) {
|
|
19259
|
-
switch (
|
|
19292
|
+
switch (_context6.prev = _context6.next) {
|
|
19260
19293
|
case 0:
|
|
19261
|
-
|
|
19294
|
+
_context6.next = 2;
|
|
19262
19295
|
return controller.wait();
|
|
19263
19296
|
|
|
19264
19297
|
case 2:
|
|
19265
19298
|
cont = rootElement === null || rootElement === void 0 ? void 0 : rootElement.querySelector('.ktsAntX-table-body');
|
|
19266
19299
|
|
|
19267
19300
|
if (cont) {
|
|
19268
|
-
|
|
19301
|
+
_context6.next = 5;
|
|
19269
19302
|
break;
|
|
19270
19303
|
}
|
|
19271
19304
|
|
|
19272
|
-
return
|
|
19305
|
+
return _context6.abrupt("return");
|
|
19273
19306
|
|
|
19274
19307
|
case 5:
|
|
19275
19308
|
cont.scrollTop = cont.scrollHeight;
|
|
19276
19309
|
|
|
19277
19310
|
case 6:
|
|
19278
19311
|
case "end":
|
|
19279
|
-
return
|
|
19312
|
+
return _context6.stop();
|
|
19280
19313
|
}
|
|
19281
19314
|
}
|
|
19282
|
-
},
|
|
19315
|
+
}, _callee6);
|
|
19283
19316
|
}));
|
|
19284
19317
|
return _rollBottom$1.apply(this, arguments);
|
|
19285
19318
|
}
|
|
@@ -24538,7 +24571,7 @@ var RealEstateInfo = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(f
|
|
|
24538
24571
|
className: "kts-invoice-operate-real-estate-info-digtal"
|
|
24539
24572
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
24540
24573
|
className: 'real-estate-info-digtal-label'
|
|
24541
|
-
}, "\u7279\
|
|
24574
|
+
}, "\u7279\u5B9A\u4FE1\u606F-\u4E0D\u52A8\u4EA7\u7ECF\u8425\u79DF\u8D41\u670D\u52A1"), getList());
|
|
24542
24575
|
});
|
|
24543
24576
|
|
|
24544
24577
|
var MyDiv$3 = /*#__PURE__*/function (_React$Component) {
|
|
@@ -24666,7 +24699,7 @@ var Architecture = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(fun
|
|
|
24666
24699
|
className: "kts-invoice-operate-real-estate-info-digtal"
|
|
24667
24700
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
24668
24701
|
className: 'real-estate-info-digtal-label'
|
|
24669
|
-
}, "\u7279\
|
|
24702
|
+
}, "\u7279\u5B9A\u4FE1\u606F-\u5EFA\u7B51\u670D\u52A1"), /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Row, {
|
|
24670
24703
|
gutter: [17, 0]
|
|
24671
24704
|
}, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Col, {
|
|
24672
24705
|
span: 6
|
|
@@ -26272,7 +26305,7 @@ var Main$4 = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(function
|
|
|
26272
26305
|
className: "kts-invoice-operate-freight"
|
|
26273
26306
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
26274
26307
|
className: 'real-estate-info-digtal-label'
|
|
26275
|
-
}, "\u7279\
|
|
26308
|
+
}, "\u7279\u5B9A\u4FE1\u606F-\u8D27\u7269\u8FD0\u8F93"), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
26276
26309
|
className: "kts-invoice-operate-goods-list-digtal",
|
|
26277
26310
|
onClick: function onClick(e) {
|
|
26278
26311
|
e.stopPropagation();
|
package/package.json
CHANGED
|
@@ -11,18 +11,27 @@ export default () => {
|
|
|
11
11
|
controller.run(async s => {
|
|
12
12
|
})
|
|
13
13
|
}, [])
|
|
14
|
-
const onSave =async ()=>{
|
|
14
|
+
const onSave = async () => {
|
|
15
15
|
const formValues = await controller.validateFields();
|
|
16
16
|
console.log(formValues)
|
|
17
17
|
}
|
|
18
18
|
return (
|
|
19
19
|
<>
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
20
|
+
<Button onClick={onSave}>输出表单内容</Button>
|
|
21
|
+
<Invoice
|
|
22
|
+
invoiceType='digtal'
|
|
23
|
+
controller={controller}
|
|
24
|
+
specialInfor={<Invoice.RealEstateInfo realEstateAddressOptions={[
|
|
25
|
+
{
|
|
26
|
+
"code": "11",
|
|
27
|
+
"name": "北京市"
|
|
28
|
+
}] || []}
|
|
29
|
+
realEstateAddressFieldNames={{
|
|
30
|
+
label: 'name',
|
|
31
|
+
value: 'name',
|
|
32
|
+
children: 'children'
|
|
33
|
+
}} />}
|
|
34
|
+
/>
|
|
26
35
|
</>
|
|
27
36
|
)
|
|
28
37
|
};
|
|
@@ -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
|
{/* 添加行 */}
|
|
@@ -45,6 +45,13 @@ export default () => {
|
|
|
45
45
|
|
|
46
46
|
/** 添加一个空货物 */
|
|
47
47
|
async function addGood(controller: InvoiceController) {
|
|
48
|
+
await controller.formList.get('realEstateInfo')?.validateFields(async (err: any, values: any) => {
|
|
49
|
+
console.log(err, values)
|
|
50
|
+
if (err) {
|
|
51
|
+
message.error('请先填写发票行信息,再添加新的行');
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
});
|
|
48
55
|
await controller.saveEditGood();
|
|
49
56
|
await controller.wait();
|
|
50
57
|
await controller.run(async (s) => {
|
|
@@ -64,6 +71,7 @@ async function addGood(controller: InvoiceController) {
|
|
|
64
71
|
return;
|
|
65
72
|
}
|
|
66
73
|
});
|
|
74
|
+
|
|
67
75
|
}
|
|
68
76
|
s.goodsListState.editGood = await controller.addGood({ taxRate: s.goodsListState.defaultRate, lineAttribute: LineAttributeType.正常 });
|
|
69
77
|
});
|
|
@@ -187,7 +187,7 @@ export default decorator<RealEstateInfoProps, FormComponentProps & RealEstateInf
|
|
|
187
187
|
}
|
|
188
188
|
return (
|
|
189
189
|
<div className="kts-invoice-operate-real-estate-info-digtal">
|
|
190
|
-
<div className='real-estate-info-digtal-label'
|
|
190
|
+
<div className='real-estate-info-digtal-label' >特定信息-不动产经营租赁服务</div>
|
|
191
191
|
{getList()}
|
|
192
192
|
|
|
193
193
|
</div>
|