@bit-sun/business-component 2.4.25 → 2.4.26-beta01
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
|
@@ -9555,7 +9555,7 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
|
|
|
9555
9555
|
'ctl-withAuth': true
|
|
9556
9556
|
},
|
|
9557
9557
|
resType: 'list',
|
|
9558
|
-
resPosition: isNoUseItemBarcode ?
|
|
9558
|
+
resPosition: isNoUseItemBarcode ? 3 : 4,
|
|
9559
9559
|
resKeyValue: ['id', 'name']
|
|
9560
9560
|
}, {
|
|
9561
9561
|
url: "/items/category/queryCategoryTree",
|
|
@@ -9564,7 +9564,7 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
|
|
|
9564
9564
|
currentPage: 1
|
|
9565
9565
|
},
|
|
9566
9566
|
resType: 'treeList',
|
|
9567
|
-
resPosition: isNoUseItemBarcode ?
|
|
9567
|
+
resPosition: isNoUseItemBarcode ? 4 : 5
|
|
9568
9568
|
}];
|
|
9569
9569
|
var mTpPromiseLoadList = handleFormSearchSourceLoad(initialPromiseLoadList, parProps);
|
|
9570
9570
|
var props = {
|
|
@@ -10252,7 +10252,9 @@ var CommodityEntry = function CommodityEntry(props) {
|
|
|
10252
10252
|
_props$isBrandAuth = props.isBrandAuth,
|
|
10253
10253
|
isBrandAuth = _props$isBrandAuth === void 0 ? true : _props$isBrandAuth,
|
|
10254
10254
|
_props$isCheckStockNu = props.isCheckStockNum,
|
|
10255
|
-
isCheckStockNum = _props$isCheckStockNu === void 0 ? true : _props$isCheckStockNu
|
|
10255
|
+
isCheckStockNum = _props$isCheckStockNu === void 0 ? true : _props$isCheckStockNu,
|
|
10256
|
+
_props$otherModalProp = props.otherModalProps,
|
|
10257
|
+
otherModalProps = _props$otherModalProp === void 0 ? {} : _props$otherModalProp;
|
|
10256
10258
|
var _useState = useState({
|
|
10257
10259
|
maskClosable: false,
|
|
10258
10260
|
width: 800,
|
|
@@ -10302,7 +10304,7 @@ var CommodityEntry = function CommodityEntry(props) {
|
|
|
10302
10304
|
onCancel: handleCancel,
|
|
10303
10305
|
destroyOnClose: true,
|
|
10304
10306
|
zIndex: 15
|
|
10305
|
-
}), /*#__PURE__*/React.createElement(DataValidation, {
|
|
10307
|
+
}, otherModalProps), /*#__PURE__*/React.createElement(DataValidation, {
|
|
10306
10308
|
onRef: function onRef(ref) {
|
|
10307
10309
|
dataValidationRef = ref;
|
|
10308
10310
|
},
|
package/dist/index.js
CHANGED
|
@@ -9575,7 +9575,7 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
|
|
|
9575
9575
|
'ctl-withAuth': true
|
|
9576
9576
|
},
|
|
9577
9577
|
resType: 'list',
|
|
9578
|
-
resPosition: isNoUseItemBarcode ?
|
|
9578
|
+
resPosition: isNoUseItemBarcode ? 3 : 4,
|
|
9579
9579
|
resKeyValue: ['id', 'name']
|
|
9580
9580
|
}, {
|
|
9581
9581
|
url: "/items/category/queryCategoryTree",
|
|
@@ -9584,7 +9584,7 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
|
|
|
9584
9584
|
currentPage: 1
|
|
9585
9585
|
},
|
|
9586
9586
|
resType: 'treeList',
|
|
9587
|
-
resPosition: isNoUseItemBarcode ?
|
|
9587
|
+
resPosition: isNoUseItemBarcode ? 4 : 5
|
|
9588
9588
|
}];
|
|
9589
9589
|
var mTpPromiseLoadList = handleFormSearchSourceLoad(initialPromiseLoadList, parProps);
|
|
9590
9590
|
var props = {
|
|
@@ -10272,7 +10272,9 @@ var CommodityEntry = function CommodityEntry(props) {
|
|
|
10272
10272
|
_props$isBrandAuth = props.isBrandAuth,
|
|
10273
10273
|
isBrandAuth = _props$isBrandAuth === void 0 ? true : _props$isBrandAuth,
|
|
10274
10274
|
_props$isCheckStockNu = props.isCheckStockNum,
|
|
10275
|
-
isCheckStockNum = _props$isCheckStockNu === void 0 ? true : _props$isCheckStockNu
|
|
10275
|
+
isCheckStockNum = _props$isCheckStockNu === void 0 ? true : _props$isCheckStockNu,
|
|
10276
|
+
_props$otherModalProp = props.otherModalProps,
|
|
10277
|
+
otherModalProps = _props$otherModalProp === void 0 ? {} : _props$otherModalProp;
|
|
10276
10278
|
var _useState = React.useState({
|
|
10277
10279
|
maskClosable: false,
|
|
10278
10280
|
width: 800,
|
|
@@ -10322,7 +10324,7 @@ var CommodityEntry = function CommodityEntry(props) {
|
|
|
10322
10324
|
onCancel: handleCancel,
|
|
10323
10325
|
destroyOnClose: true,
|
|
10324
10326
|
zIndex: 15
|
|
10325
|
-
}), /*#__PURE__*/React__default['default'].createElement(DataValidation, {
|
|
10327
|
+
}, otherModalProps), /*#__PURE__*/React__default['default'].createElement(DataValidation, {
|
|
10326
10328
|
onRef: function onRef(ref) {
|
|
10327
10329
|
dataValidationRef = ref;
|
|
10328
10330
|
},
|
package/package.json
CHANGED
|
@@ -389,7 +389,7 @@ export const AddSkuSelect = (parProps: any) => {
|
|
|
389
389
|
'ctl-withAuth': true
|
|
390
390
|
},
|
|
391
391
|
resType: 'list',
|
|
392
|
-
resPosition: isNoUseItemBarcode ?
|
|
392
|
+
resPosition: isNoUseItemBarcode ? 3 : 4,
|
|
393
393
|
resKeyValue: ['id','name']
|
|
394
394
|
},
|
|
395
395
|
{
|
|
@@ -399,7 +399,7 @@ export const AddSkuSelect = (parProps: any) => {
|
|
|
399
399
|
currentPage: 1,
|
|
400
400
|
},
|
|
401
401
|
resType: 'treeList',
|
|
402
|
-
resPosition: isNoUseItemBarcode ?
|
|
402
|
+
resPosition: isNoUseItemBarcode ? 4 : 5
|
|
403
403
|
},
|
|
404
404
|
]
|
|
405
405
|
const mTpPromiseLoadList = handleFormSearchSourceLoad(initialPromiseLoadList, parProps);
|
|
@@ -15,7 +15,8 @@ const CommodityEntry = (props: any) => {
|
|
|
15
15
|
columns=["skuCode", "quantity", "price"],
|
|
16
16
|
validDataUrl="/items/sku/import/check",
|
|
17
17
|
isBrandAuth = true, // 默认做品牌过滤
|
|
18
|
-
isCheckStockNum = true
|
|
18
|
+
isCheckStockNum = true,
|
|
19
|
+
otherModalProps = {},
|
|
19
20
|
} = props;
|
|
20
21
|
|
|
21
22
|
const [modalProps, setModalProps]: any = useState({
|
|
@@ -63,7 +64,7 @@ const CommodityEntry = (props: any) => {
|
|
|
63
64
|
<div>
|
|
64
65
|
<Button onClick={handleShowModal} {...buttonProps}>{buttonName}</Button>
|
|
65
66
|
{modalProps.visible && (
|
|
66
|
-
<Modal {...modalProps} onOk={handleOk} onCancel={handleCancel} destroyOnClose={true} zIndex={15}>
|
|
67
|
+
<Modal {...modalProps} onOk={handleOk} onCancel={handleCancel} destroyOnClose={true} zIndex={15} {...otherModalProps} >
|
|
67
68
|
<DataValidation
|
|
68
69
|
onRef={(ref) => { dataValidationRef = ref }}
|
|
69
70
|
columns={columns}
|