kts-component-invoice-operate 3.2.202 → 3.2.203
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
|
@@ -24925,7 +24925,7 @@ function _addGood$2() {
|
|
|
24925
24925
|
_context4.next = 6;
|
|
24926
24926
|
return controller.run( /*#__PURE__*/function () {
|
|
24927
24927
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(s) {
|
|
24928
|
-
var _controller$state$
|
|
24928
|
+
var _controller$state$fre;
|
|
24929
24929
|
|
|
24930
24930
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
24931
24931
|
while (1) {
|
|
@@ -24937,7 +24937,7 @@ function _addGood$2() {
|
|
|
24937
24937
|
}
|
|
24938
24938
|
|
|
24939
24939
|
_context3.next = 3;
|
|
24940
|
-
return (_controller$state$
|
|
24940
|
+
return (_controller$state$fre = controller.state.freightListState.form) === null || _controller$state$fre === void 0 ? void 0 : _controller$state$fre.validateFields( /*#__PURE__*/function () {
|
|
24941
24941
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(err, values) {
|
|
24942
24942
|
var firstError;
|
|
24943
24943
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
package/dist/index.js
CHANGED
|
@@ -24935,7 +24935,7 @@ function _addGood$2() {
|
|
|
24935
24935
|
_context4.next = 6;
|
|
24936
24936
|
return controller.run( /*#__PURE__*/function () {
|
|
24937
24937
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(s) {
|
|
24938
|
-
var _controller$state$
|
|
24938
|
+
var _controller$state$fre;
|
|
24939
24939
|
|
|
24940
24940
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
24941
24941
|
while (1) {
|
|
@@ -24947,7 +24947,7 @@ function _addGood$2() {
|
|
|
24947
24947
|
}
|
|
24948
24948
|
|
|
24949
24949
|
_context3.next = 3;
|
|
24950
|
-
return (_controller$state$
|
|
24950
|
+
return (_controller$state$fre = controller.state.freightListState.form) === null || _controller$state$fre === void 0 ? void 0 : _controller$state$fre.validateFields( /*#__PURE__*/function () {
|
|
24951
24951
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(err, values) {
|
|
24952
24952
|
var firstError;
|
|
24953
24953
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
package/package.json
CHANGED
|
@@ -51,7 +51,7 @@ async function addGood(controller: InvoiceController) {
|
|
|
51
51
|
// key: '你正在编辑一个货物运输行',
|
|
52
52
|
// });
|
|
53
53
|
// return;
|
|
54
|
-
await controller.state.
|
|
54
|
+
await controller.state.freightListState.form?.validateFields(async (err: any, values: any) => {
|
|
55
55
|
if (err) {
|
|
56
56
|
const firstError: any = Object.values(err)[0];
|
|
57
57
|
message.error({
|