kts-component-invoice-operate 3.2.176 → 3.2.177
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.
|
@@ -3,6 +3,11 @@ import './index.less';
|
|
|
3
3
|
export interface IGoodsListProps {
|
|
4
4
|
/** 产品最大数 */
|
|
5
5
|
goodMax?: number;
|
|
6
|
+
addressOptions: any[];
|
|
7
|
+
/**
|
|
8
|
+
* 建筑服务地址数据字段名
|
|
9
|
+
*/
|
|
10
|
+
fieldNames?: any;
|
|
6
11
|
}
|
|
7
12
|
export default class FreightList extends React.Component<IGoodsListProps> {
|
|
8
13
|
render(): JSX.Element;
|
package/dist/index.esm.js
CHANGED
|
@@ -25668,8 +25668,7 @@ var Main$4 = decorator(Form.create())(function (props) {
|
|
|
25668
25668
|
return _ref.apply(this, arguments);
|
|
25669
25669
|
};
|
|
25670
25670
|
}())(props.form);
|
|
25671
|
-
}, [controller, props.form]);
|
|
25672
|
-
|
|
25671
|
+
}, [controller, props.form]);
|
|
25673
25672
|
React.useEffect(function () {
|
|
25674
25673
|
controller.run( /*#__PURE__*/function () {
|
|
25675
25674
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(s) {
|
|
@@ -25677,12 +25676,9 @@ var Main$4 = decorator(Form.create())(function (props) {
|
|
|
25677
25676
|
while (1) {
|
|
25678
25677
|
switch (_context2.prev = _context2.next) {
|
|
25679
25678
|
case 0:
|
|
25680
|
-
s.freightListState.
|
|
25681
|
-
goodsList.forEach(function (e) {
|
|
25682
|
-
s.freightListState.goodsMap.set(e.$index, e);
|
|
25683
|
-
});
|
|
25679
|
+
s.freightListState.addressFieldNames = props.fieldNames;
|
|
25684
25680
|
|
|
25685
|
-
case
|
|
25681
|
+
case 1:
|
|
25686
25682
|
case "end":
|
|
25687
25683
|
return _context2.stop();
|
|
25688
25684
|
}
|
|
@@ -25694,17 +25690,15 @@ var Main$4 = decorator(Form.create())(function (props) {
|
|
|
25694
25690
|
return _ref2.apply(this, arguments);
|
|
25695
25691
|
};
|
|
25696
25692
|
}());
|
|
25697
|
-
}, [
|
|
25698
|
-
/** props 产品最大数 更新 */
|
|
25699
|
-
|
|
25693
|
+
}, [props.fieldNames]);
|
|
25700
25694
|
React.useEffect(function () {
|
|
25701
|
-
controller.
|
|
25695
|
+
controller.run( /*#__PURE__*/function () {
|
|
25702
25696
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(s) {
|
|
25703
25697
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
25704
25698
|
while (1) {
|
|
25705
25699
|
switch (_context3.prev = _context3.next) {
|
|
25706
25700
|
case 0:
|
|
25707
|
-
s.freightListState.
|
|
25701
|
+
s.freightListState.area = props.addressOptions;
|
|
25708
25702
|
|
|
25709
25703
|
case 1:
|
|
25710
25704
|
case "end":
|
|
@@ -25717,6 +25711,56 @@ var Main$4 = decorator(Form.create())(function (props) {
|
|
|
25717
25711
|
return function (_x4) {
|
|
25718
25712
|
return _ref3.apply(this, arguments);
|
|
25719
25713
|
};
|
|
25714
|
+
}());
|
|
25715
|
+
}, [props.addressOptions]); // 跟新 货物
|
|
25716
|
+
|
|
25717
|
+
React.useEffect(function () {
|
|
25718
|
+
controller.run( /*#__PURE__*/function () {
|
|
25719
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(s) {
|
|
25720
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
25721
|
+
while (1) {
|
|
25722
|
+
switch (_context4.prev = _context4.next) {
|
|
25723
|
+
case 0:
|
|
25724
|
+
s.freightListState.goodsMap = new Map();
|
|
25725
|
+
goodsList.forEach(function (e) {
|
|
25726
|
+
s.freightListState.goodsMap.set(e.$index, e);
|
|
25727
|
+
});
|
|
25728
|
+
|
|
25729
|
+
case 2:
|
|
25730
|
+
case "end":
|
|
25731
|
+
return _context4.stop();
|
|
25732
|
+
}
|
|
25733
|
+
}
|
|
25734
|
+
}, _callee4);
|
|
25735
|
+
}));
|
|
25736
|
+
|
|
25737
|
+
return function (_x5) {
|
|
25738
|
+
return _ref4.apply(this, arguments);
|
|
25739
|
+
};
|
|
25740
|
+
}());
|
|
25741
|
+
}, [controller, goodsList]);
|
|
25742
|
+
/** props 产品最大数 更新 */
|
|
25743
|
+
|
|
25744
|
+
React.useEffect(function () {
|
|
25745
|
+
controller.pipeline( /*#__PURE__*/function () {
|
|
25746
|
+
var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(s) {
|
|
25747
|
+
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
25748
|
+
while (1) {
|
|
25749
|
+
switch (_context5.prev = _context5.next) {
|
|
25750
|
+
case 0:
|
|
25751
|
+
s.freightListState.goodMax = props.goodMax;
|
|
25752
|
+
|
|
25753
|
+
case 1:
|
|
25754
|
+
case "end":
|
|
25755
|
+
return _context5.stop();
|
|
25756
|
+
}
|
|
25757
|
+
}
|
|
25758
|
+
}, _callee5);
|
|
25759
|
+
}));
|
|
25760
|
+
|
|
25761
|
+
return function (_x6) {
|
|
25762
|
+
return _ref5.apply(this, arguments);
|
|
25763
|
+
};
|
|
25720
25764
|
}())();
|
|
25721
25765
|
}, [controller, props.goodMax]); // 注册 form
|
|
25722
25766
|
// controller.useForm('freightInfo', form);
|
package/dist/index.js
CHANGED
|
@@ -25678,8 +25678,7 @@ var Main$4 = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(function
|
|
|
25678
25678
|
return _ref.apply(this, arguments);
|
|
25679
25679
|
};
|
|
25680
25680
|
}())(props.form);
|
|
25681
|
-
}, [controller, props.form]);
|
|
25682
|
-
|
|
25681
|
+
}, [controller, props.form]);
|
|
25683
25682
|
React__default['default'].useEffect(function () {
|
|
25684
25683
|
controller.run( /*#__PURE__*/function () {
|
|
25685
25684
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(s) {
|
|
@@ -25687,12 +25686,9 @@ var Main$4 = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(function
|
|
|
25687
25686
|
while (1) {
|
|
25688
25687
|
switch (_context2.prev = _context2.next) {
|
|
25689
25688
|
case 0:
|
|
25690
|
-
s.freightListState.
|
|
25691
|
-
goodsList.forEach(function (e) {
|
|
25692
|
-
s.freightListState.goodsMap.set(e.$index, e);
|
|
25693
|
-
});
|
|
25689
|
+
s.freightListState.addressFieldNames = props.fieldNames;
|
|
25694
25690
|
|
|
25695
|
-
case
|
|
25691
|
+
case 1:
|
|
25696
25692
|
case "end":
|
|
25697
25693
|
return _context2.stop();
|
|
25698
25694
|
}
|
|
@@ -25704,17 +25700,15 @@ var Main$4 = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(function
|
|
|
25704
25700
|
return _ref2.apply(this, arguments);
|
|
25705
25701
|
};
|
|
25706
25702
|
}());
|
|
25707
|
-
}, [
|
|
25708
|
-
/** props 产品最大数 更新 */
|
|
25709
|
-
|
|
25703
|
+
}, [props.fieldNames]);
|
|
25710
25704
|
React__default['default'].useEffect(function () {
|
|
25711
|
-
controller.
|
|
25705
|
+
controller.run( /*#__PURE__*/function () {
|
|
25712
25706
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(s) {
|
|
25713
25707
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
25714
25708
|
while (1) {
|
|
25715
25709
|
switch (_context3.prev = _context3.next) {
|
|
25716
25710
|
case 0:
|
|
25717
|
-
s.freightListState.
|
|
25711
|
+
s.freightListState.area = props.addressOptions;
|
|
25718
25712
|
|
|
25719
25713
|
case 1:
|
|
25720
25714
|
case "end":
|
|
@@ -25727,6 +25721,56 @@ var Main$4 = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(function
|
|
|
25727
25721
|
return function (_x4) {
|
|
25728
25722
|
return _ref3.apply(this, arguments);
|
|
25729
25723
|
};
|
|
25724
|
+
}());
|
|
25725
|
+
}, [props.addressOptions]); // 跟新 货物
|
|
25726
|
+
|
|
25727
|
+
React__default['default'].useEffect(function () {
|
|
25728
|
+
controller.run( /*#__PURE__*/function () {
|
|
25729
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(s) {
|
|
25730
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
25731
|
+
while (1) {
|
|
25732
|
+
switch (_context4.prev = _context4.next) {
|
|
25733
|
+
case 0:
|
|
25734
|
+
s.freightListState.goodsMap = new Map();
|
|
25735
|
+
goodsList.forEach(function (e) {
|
|
25736
|
+
s.freightListState.goodsMap.set(e.$index, e);
|
|
25737
|
+
});
|
|
25738
|
+
|
|
25739
|
+
case 2:
|
|
25740
|
+
case "end":
|
|
25741
|
+
return _context4.stop();
|
|
25742
|
+
}
|
|
25743
|
+
}
|
|
25744
|
+
}, _callee4);
|
|
25745
|
+
}));
|
|
25746
|
+
|
|
25747
|
+
return function (_x5) {
|
|
25748
|
+
return _ref4.apply(this, arguments);
|
|
25749
|
+
};
|
|
25750
|
+
}());
|
|
25751
|
+
}, [controller, goodsList]);
|
|
25752
|
+
/** props 产品最大数 更新 */
|
|
25753
|
+
|
|
25754
|
+
React__default['default'].useEffect(function () {
|
|
25755
|
+
controller.pipeline( /*#__PURE__*/function () {
|
|
25756
|
+
var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(s) {
|
|
25757
|
+
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
25758
|
+
while (1) {
|
|
25759
|
+
switch (_context5.prev = _context5.next) {
|
|
25760
|
+
case 0:
|
|
25761
|
+
s.freightListState.goodMax = props.goodMax;
|
|
25762
|
+
|
|
25763
|
+
case 1:
|
|
25764
|
+
case "end":
|
|
25765
|
+
return _context5.stop();
|
|
25766
|
+
}
|
|
25767
|
+
}
|
|
25768
|
+
}, _callee5);
|
|
25769
|
+
}));
|
|
25770
|
+
|
|
25771
|
+
return function (_x6) {
|
|
25772
|
+
return _ref5.apply(this, arguments);
|
|
25773
|
+
};
|
|
25730
25774
|
}())();
|
|
25731
25775
|
}, [controller, props.goodMax]); // 注册 form
|
|
25732
25776
|
// controller.useForm('freightInfo', form);
|
package/package.json
CHANGED
|
@@ -25,6 +25,13 @@ export interface IGoodsListProps {
|
|
|
25
25
|
/** 产品最大数 */
|
|
26
26
|
goodMax?: number;
|
|
27
27
|
|
|
28
|
+
addressOptions: any[];
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* 建筑服务地址数据字段名
|
|
32
|
+
*/
|
|
33
|
+
fieldNames?: any;
|
|
34
|
+
|
|
28
35
|
}
|
|
29
36
|
|
|
30
37
|
export default class FreightList extends React.Component<IGoodsListProps> {
|
|
@@ -56,7 +63,16 @@ const Main = decorator<IGoodsListProps, FormComponentProps & IGoodsListProps>(Fo
|
|
|
56
63
|
React.useEffect(() => {
|
|
57
64
|
controller.pipeline<WrappedFormUtils>(async (s, form) => { s.freightListState = { ...s.freightListState, form } })(props.form);
|
|
58
65
|
}, [controller, props.form]);
|
|
59
|
-
|
|
66
|
+
React.useEffect(() => {
|
|
67
|
+
controller.run(async (s) => {
|
|
68
|
+
s.freightListState.addressFieldNames = props.fieldNames
|
|
69
|
+
});
|
|
70
|
+
}, [props.fieldNames])
|
|
71
|
+
React.useEffect(() => {
|
|
72
|
+
controller.run(async (s) => {
|
|
73
|
+
s.freightListState.area = props.addressOptions
|
|
74
|
+
});
|
|
75
|
+
}, [props.addressOptions])
|
|
60
76
|
// 跟新 货物
|
|
61
77
|
React.useEffect(() => {
|
|
62
78
|
controller.run(async (s) => {
|
|
@@ -69,7 +85,7 @@ const Main = decorator<IGoodsListProps, FormComponentProps & IGoodsListProps>(Fo
|
|
|
69
85
|
React.useEffect(() => {
|
|
70
86
|
controller.pipeline(async s => { s.freightListState.goodMax = props.goodMax })()
|
|
71
87
|
}, [controller, props.goodMax])
|
|
72
|
-
|
|
88
|
+
// 注册 form
|
|
73
89
|
// controller.useForm('freightInfo', form);
|
|
74
90
|
return (
|
|
75
91
|
<div className="kts-invoice-operate-freight">
|