@kmkf-fe-packages/basic-components 2.0.53 → 2.0.54-beta.1
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/README.md +1 -1
- package/dist/index.esm.js +748 -646
- package/dist/index.js +751 -645
- package/dist/src/bs/component/GoodItem/constants/bsE3ReissueGoodsColumns.d.ts +9 -1
- package/dist/src/bs/component/GoodItem/constants/wdtReissueGoodsColumns.d.ts +17 -1
- package/dist/src/bs/component/model/Columns/Erp/bse3.d.ts +7 -0
- package/dist/src/bs/component/model/Columns/Erp/gy.d.ts +15 -0
- package/dist/src/bs/component/model/Columns/Erp/jst.d.ts +21 -0
- package/dist/src/bs/component/model/Columns/Erp/wdt.d.ts +21 -0
- package/dist/src/bs/component/model/Columns/index.d.ts +5 -0
- package/dist/src/bs/component/model/Columns/useGetColumns.d.ts +11 -0
- package/dist/src/bs/component/model/JstGoodsModal/GoodsList.d.ts +1 -1
- package/dist/src/bs/component/model/components/SearchForm/index.d.ts +18 -0
- package/dist/src/constants/columnsBaseInfoMap.d.ts +10 -2
- package/dist/src/constants/index.d.ts +2 -0
- package/dist/src/index.d.ts +2 -1
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React, { useRef, useState, useEffect, forwardRef, useImperativeHandle, useMemo, useCallback } from 'react';
|
|
2
|
-
import { Cascader, DatePicker, InputNumber, Input, Select, Upload, Image, message, Radio, Space, Spin, Modal, Button, Checkbox, Row, Col, Slider, Rate, Form, Popover, Table, Tabs, ConfigProvider, Pagination, Typography } from 'antd';
|
|
2
|
+
import { Cascader, DatePicker, InputNumber, Input, Select, Upload, Image, message, Radio, Space, Spin, Modal, Button, Checkbox, Row, Col, Slider, Rate, Form, Popover, Table, Tabs, ConfigProvider, Pagination, Typography, Skeleton } from 'antd';
|
|
3
3
|
import { EyeOutlined, DeleteOutlined, CloseOutlined, CopyOutlined, CloseCircleOutlined, CaretUpOutlined, MinusCircleFilled } from '@ant-design/icons';
|
|
4
4
|
import request, { extend as extend$1 } from 'umi-request';
|
|
5
5
|
import { CopyToClipboard } from 'react-copy-to-clipboard';
|
|
6
6
|
import { AddressData, BsAddressData, WdtAddressData, GyAddressData, request as request$1, ExpressData, uuid, columnsGoodsList, LogisticsAddressData, SendDataCenter, BS_E3_BOOLEAN_STATUS_MAP, isNull, filterWdtOrders, WDT_ORDER_TYPE_MAP, filterBsE3Orders, filterGyOrders, GY_DELIVERY_STATE_MAPPING, servers, filterJstOrders, filterKmOrders, getIsPlatformCodesIncludeOrderNos, BS_SYSTEM_ORDER_CONFIG, KM_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, JST_SYSTEM_ORDER_CONFIG, updateWdtGoodsHandle, updateBsE3GoodsHandle, updateGyGoodsHandle, updateJstGoodsHandle, jstMergeIdenticalGoods, msgTypeCh, pushGyLog } from '@kmkf-fe-packages/kmkf-utils';
|
|
7
|
-
import { debounce, isNaN as isNaN$1, isNumber as isNumber$1, cloneDeep, difference, differenceWith, takeRight, reject, isEmpty, intersection, uniqBy } from 'lodash';
|
|
7
|
+
import { debounce, isNaN as isNaN$1, isNumber as isNumber$1, cloneDeep, difference, differenceWith, isEqual, takeRight, reject, isEmpty, intersection, uniqBy } from 'lodash';
|
|
8
8
|
import { useUpdateEffect, useDebounceEffect, useAntdTable } from 'ahooks';
|
|
9
9
|
import zhCN from 'antd/lib/locale/zh_CN';
|
|
10
10
|
import pubsub from 'pubsub-js';
|
|
@@ -12191,53 +12191,145 @@ var GoodsModal$1 = function GoodsModal(props, ref) {
|
|
|
12191
12191
|
};
|
|
12192
12192
|
var GoodsModal$2 = /*#__PURE__*/forwardRef(GoodsModal$1);
|
|
12193
12193
|
|
|
12194
|
-
var
|
|
12195
|
-
|
|
12196
|
-
|
|
12197
|
-
|
|
12198
|
-
|
|
12199
|
-
|
|
12200
|
-
|
|
12201
|
-
|
|
12202
|
-
|
|
12203
|
-
|
|
12204
|
-
|
|
12205
|
-
|
|
12206
|
-
|
|
12207
|
-
|
|
12208
|
-
|
|
12209
|
-
|
|
12210
|
-
|
|
12211
|
-
|
|
12212
|
-
|
|
12213
|
-
|
|
12214
|
-
|
|
12215
|
-
|
|
12216
|
-
|
|
12217
|
-
|
|
12218
|
-
|
|
12219
|
-
|
|
12220
|
-
|
|
12221
|
-
|
|
12222
|
-
|
|
12223
|
-
|
|
12224
|
-
|
|
12225
|
-
list: newProducts
|
|
12226
|
-
};
|
|
12227
|
-
});
|
|
12228
|
-
};
|
|
12229
|
-
var columns$1 = [{
|
|
12230
|
-
dataIndex: 'index',
|
|
12231
|
-
title: 'NO',
|
|
12232
|
-
render: function render(val, record, index) {
|
|
12233
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
12194
|
+
var gyColumns = [{
|
|
12195
|
+
dataIndex: 'specName',
|
|
12196
|
+
title: 'SKU名称',
|
|
12197
|
+
width: 250,
|
|
12198
|
+
ellipsis: true
|
|
12199
|
+
}, {
|
|
12200
|
+
dataIndex: 'specNo',
|
|
12201
|
+
title: 'SKU编码',
|
|
12202
|
+
width: 200,
|
|
12203
|
+
ellipsis: true
|
|
12204
|
+
}, {
|
|
12205
|
+
dataIndex: 'goodName',
|
|
12206
|
+
title: '商品名称',
|
|
12207
|
+
width: 250,
|
|
12208
|
+
ellipsis: true
|
|
12209
|
+
}, {
|
|
12210
|
+
dataIndex: 'goodShortName',
|
|
12211
|
+
title: "\u5546\u54C1\u7B80\u79F0",
|
|
12212
|
+
ellipsis: true,
|
|
12213
|
+
width: 250
|
|
12214
|
+
}, {
|
|
12215
|
+
dataIndex: 'goodNo',
|
|
12216
|
+
title: '商品编码',
|
|
12217
|
+
width: 200,
|
|
12218
|
+
ellipsis: true
|
|
12219
|
+
}, {
|
|
12220
|
+
dataIndex: 'goodPicUrl',
|
|
12221
|
+
title: '商品图片',
|
|
12222
|
+
width: 100,
|
|
12223
|
+
render: function render(picUrl) {
|
|
12224
|
+
return /*#__PURE__*/React.createElement("img", {
|
|
12234
12225
|
style: {
|
|
12235
|
-
width:
|
|
12236
|
-
|
|
12237
|
-
|
|
12238
|
-
|
|
12226
|
+
width: '40px',
|
|
12227
|
+
height: '40px',
|
|
12228
|
+
objectFit: 'contain'
|
|
12229
|
+
},
|
|
12230
|
+
src: picUrl
|
|
12231
|
+
});
|
|
12232
|
+
}
|
|
12233
|
+
}, {
|
|
12234
|
+
dataIndex: 'brandName',
|
|
12235
|
+
title: '品牌名称',
|
|
12236
|
+
width: 200,
|
|
12237
|
+
ellipsis: true
|
|
12238
|
+
}, {
|
|
12239
|
+
dataIndex: 'retailPrice',
|
|
12240
|
+
title: "\u6807\u51C6\u552E\u4EF7",
|
|
12241
|
+
ellipsis: true,
|
|
12242
|
+
width: 100
|
|
12243
|
+
}, {
|
|
12244
|
+
dataIndex: 'costPrice',
|
|
12245
|
+
title: "\u6210\u672C\u4EF7",
|
|
12246
|
+
ellipsis: true,
|
|
12239
12247
|
width: 100
|
|
12248
|
+
}];
|
|
12249
|
+
|
|
12250
|
+
var jstColumns = [{
|
|
12251
|
+
dataIndex: 'goodName',
|
|
12252
|
+
title: '商品名称',
|
|
12253
|
+
width: 250,
|
|
12254
|
+
ellipsis: true
|
|
12255
|
+
}, {
|
|
12256
|
+
dataIndex: 'goodNo',
|
|
12257
|
+
title: '商品编码',
|
|
12258
|
+
width: 200,
|
|
12259
|
+
ellipsis: true
|
|
12240
12260
|
}, {
|
|
12261
|
+
dataIndex: 'styleCode',
|
|
12262
|
+
title: '款式编码',
|
|
12263
|
+
width: 200,
|
|
12264
|
+
ellipsis: true
|
|
12265
|
+
}, {
|
|
12266
|
+
dataIndex: 'propertiesValue',
|
|
12267
|
+
title: '规格值',
|
|
12268
|
+
width: 200,
|
|
12269
|
+
ellipsis: true
|
|
12270
|
+
}, {
|
|
12271
|
+
dataIndex: 'goodPicUrl',
|
|
12272
|
+
title: '商品图片',
|
|
12273
|
+
width: 100,
|
|
12274
|
+
render: function render(picUrl) {
|
|
12275
|
+
return /*#__PURE__*/React.createElement("img", {
|
|
12276
|
+
style: {
|
|
12277
|
+
width: '40px',
|
|
12278
|
+
height: '40px',
|
|
12279
|
+
objectFit: 'contain'
|
|
12280
|
+
},
|
|
12281
|
+
src: picUrl
|
|
12282
|
+
});
|
|
12283
|
+
}
|
|
12284
|
+
}, {
|
|
12285
|
+
dataIndex: 'goodShortName',
|
|
12286
|
+
title: "\u5546\u54C1\u7B80\u79F0",
|
|
12287
|
+
ellipsis: true,
|
|
12288
|
+
width: 250
|
|
12289
|
+
}, {
|
|
12290
|
+
dataIndex: 'brandName',
|
|
12291
|
+
title: '品牌名称',
|
|
12292
|
+
width: 200,
|
|
12293
|
+
ellipsis: true
|
|
12294
|
+
}, {
|
|
12295
|
+
dataIndex: 'retailPrice',
|
|
12296
|
+
title: "\u9500\u552E\u4EF7\u683C",
|
|
12297
|
+
ellipsis: true,
|
|
12298
|
+
width: 100,
|
|
12299
|
+
render: function render(price) {
|
|
12300
|
+
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
12301
|
+
}
|
|
12302
|
+
}, {
|
|
12303
|
+
dataIndex: 'marketPrice',
|
|
12304
|
+
title: "\u5E02\u573A\u4EF7",
|
|
12305
|
+
ellipsis: true,
|
|
12306
|
+
width: 100,
|
|
12307
|
+
render: function render(price) {
|
|
12308
|
+
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
12309
|
+
}
|
|
12310
|
+
}, {
|
|
12311
|
+
dataIndex: 'costPrice',
|
|
12312
|
+
title: "\u6210\u672C\u4EF7",
|
|
12313
|
+
ellipsis: true,
|
|
12314
|
+
width: 100,
|
|
12315
|
+
render: function render(price) {
|
|
12316
|
+
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
12317
|
+
}
|
|
12318
|
+
}, {
|
|
12319
|
+
dataIndex: 'skuType',
|
|
12320
|
+
title: "\u5546\u54C1\u7C7B\u578B",
|
|
12321
|
+
ellipsis: true,
|
|
12322
|
+
width: 100,
|
|
12323
|
+
render: function render() {
|
|
12324
|
+
var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'normal';
|
|
12325
|
+
return {
|
|
12326
|
+
combine: '组合装商品',
|
|
12327
|
+
normal: '普通商品'
|
|
12328
|
+
}[type] || type;
|
|
12329
|
+
}
|
|
12330
|
+
}];
|
|
12331
|
+
|
|
12332
|
+
var wdtColumns = [{
|
|
12241
12333
|
dataIndex: 'specName',
|
|
12242
12334
|
title: 'SKU名称',
|
|
12243
12335
|
width: 250,
|
|
@@ -12308,6 +12400,323 @@ var columns$1 = [{
|
|
|
12308
12400
|
return Number(price).toFixed(2);
|
|
12309
12401
|
}
|
|
12310
12402
|
}];
|
|
12403
|
+
|
|
12404
|
+
var bse3Columns = [{
|
|
12405
|
+
dataIndex: 'specNo',
|
|
12406
|
+
title: "SKU",
|
|
12407
|
+
ellipsis: true,
|
|
12408
|
+
width: 200
|
|
12409
|
+
}, {
|
|
12410
|
+
dataIndex: 'specId',
|
|
12411
|
+
title: "SKU ID",
|
|
12412
|
+
ellipsis: true,
|
|
12413
|
+
width: 80
|
|
12414
|
+
}, {
|
|
12415
|
+
dataIndex: 'goodName',
|
|
12416
|
+
title: "\u5546\u54C1\u540D\u79F0",
|
|
12417
|
+
ellipsis: true,
|
|
12418
|
+
width: 250
|
|
12419
|
+
}, {
|
|
12420
|
+
dataIndex: 'goodShortName',
|
|
12421
|
+
title: "\u5546\u54C1\u7B80\u79F0",
|
|
12422
|
+
ellipsis: true,
|
|
12423
|
+
width: 250
|
|
12424
|
+
},
|
|
12425
|
+
// {
|
|
12426
|
+
// dataIndex: 'goodPicUrl',
|
|
12427
|
+
// title: `商品图片`,
|
|
12428
|
+
// ellipsis: true,
|
|
12429
|
+
// width: 100,
|
|
12430
|
+
// render: (picUrl: string) => {
|
|
12431
|
+
// return (
|
|
12432
|
+
// <img
|
|
12433
|
+
// style={{
|
|
12434
|
+
// width: '40px',
|
|
12435
|
+
// height: '40px',
|
|
12436
|
+
// objectFit: 'contain',
|
|
12437
|
+
// }}
|
|
12438
|
+
// src={picUrl}
|
|
12439
|
+
// ></img>
|
|
12440
|
+
// );
|
|
12441
|
+
// },
|
|
12442
|
+
// },
|
|
12443
|
+
{
|
|
12444
|
+
dataIndex: 'goodNo',
|
|
12445
|
+
title: "\u8D27\u53F7",
|
|
12446
|
+
ellipsis: true,
|
|
12447
|
+
width: 150
|
|
12448
|
+
}, {
|
|
12449
|
+
dataIndex: 'goodId',
|
|
12450
|
+
title: "\u8D27\u53F7ID",
|
|
12451
|
+
ellipsis: true,
|
|
12452
|
+
width: 100
|
|
12453
|
+
}, {
|
|
12454
|
+
dataIndex: 'colorName',
|
|
12455
|
+
title: "\u989C\u8272\u540D\u79F0",
|
|
12456
|
+
ellipsis: true,
|
|
12457
|
+
width: 100
|
|
12458
|
+
}, {
|
|
12459
|
+
dataIndex: 'colorCode',
|
|
12460
|
+
title: "\u989C\u8272\u4EE3\u7801",
|
|
12461
|
+
ellipsis: true,
|
|
12462
|
+
width: 100
|
|
12463
|
+
}, {
|
|
12464
|
+
dataIndex: 'sizeName',
|
|
12465
|
+
title: "\u5C3A\u7801\u540D\u79F0",
|
|
12466
|
+
ellipsis: true,
|
|
12467
|
+
width: 100
|
|
12468
|
+
}, {
|
|
12469
|
+
dataIndex: 'sizeCode',
|
|
12470
|
+
title: "\u5C3A\u7801\u4EE3\u7801",
|
|
12471
|
+
ellipsis: true,
|
|
12472
|
+
width: 100
|
|
12473
|
+
}, {
|
|
12474
|
+
dataIndex: 'brandName',
|
|
12475
|
+
title: "\u54C1\u724C\u540D\u79F0",
|
|
12476
|
+
ellipsis: true,
|
|
12477
|
+
width: 100
|
|
12478
|
+
}, {
|
|
12479
|
+
dataIndex: 'marketPrice',
|
|
12480
|
+
title: "\u5E02\u573A\u4EF7",
|
|
12481
|
+
ellipsis: true,
|
|
12482
|
+
width: 100
|
|
12483
|
+
}, {
|
|
12484
|
+
dataIndex: 'retailPrice',
|
|
12485
|
+
title: "\u552E\u4EF7",
|
|
12486
|
+
ellipsis: true,
|
|
12487
|
+
width: 100
|
|
12488
|
+
}];
|
|
12489
|
+
|
|
12490
|
+
var getColumnsMap = function getColumnsMap() {
|
|
12491
|
+
return cloneDeep({
|
|
12492
|
+
gy: gyColumns,
|
|
12493
|
+
jst: jstColumns,
|
|
12494
|
+
wdt: wdtColumns,
|
|
12495
|
+
bse3: bse3Columns
|
|
12496
|
+
});
|
|
12497
|
+
};
|
|
12498
|
+
var getColumnsBaseInfo = function getColumnsBaseInfo() {
|
|
12499
|
+
var clone_columnsMap = cloneDeep(getColumnsMap());
|
|
12500
|
+
var newColumns = {};
|
|
12501
|
+
Object.keys(clone_columnsMap).forEach(function (key) {
|
|
12502
|
+
newColumns[key] = clone_columnsMap[key].map(function (col) {
|
|
12503
|
+
return {
|
|
12504
|
+
title: col.title,
|
|
12505
|
+
dataIndex: col.dataIndex
|
|
12506
|
+
};
|
|
12507
|
+
});
|
|
12508
|
+
});
|
|
12509
|
+
return newColumns;
|
|
12510
|
+
};
|
|
12511
|
+
var index$2 = getColumnsBaseInfo();
|
|
12512
|
+
|
|
12513
|
+
var initNo = {
|
|
12514
|
+
dataIndex: 'index',
|
|
12515
|
+
title: 'NO',
|
|
12516
|
+
render: function render(val, record, index) {
|
|
12517
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
12518
|
+
style: {
|
|
12519
|
+
width: 25
|
|
12520
|
+
}
|
|
12521
|
+
}, index + 1);
|
|
12522
|
+
},
|
|
12523
|
+
width: 80
|
|
12524
|
+
};
|
|
12525
|
+
var asyncGetData = function asyncGetData(type) {
|
|
12526
|
+
return extendRequest('/qy/condition/list', {
|
|
12527
|
+
method: 'get',
|
|
12528
|
+
params: {
|
|
12529
|
+
typeKey: "erp_select_modal_".concat(type),
|
|
12530
|
+
configScope: 'company' //按企业查询
|
|
12531
|
+
}
|
|
12532
|
+
}).then(function (res) {
|
|
12533
|
+
if (res && res.data && res.data[0] && res.data[0].queryInfo && res.data[0].queryInfo.length > 0) {
|
|
12534
|
+
return JSON.parse(res.data[0].queryInfo);
|
|
12535
|
+
} else {
|
|
12536
|
+
return getColumnsMap()[type];
|
|
12537
|
+
}
|
|
12538
|
+
});
|
|
12539
|
+
};
|
|
12540
|
+
var useGetColumns = (function (type) {
|
|
12541
|
+
var _useState = useState([]),
|
|
12542
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
12543
|
+
columns = _useState2[0],
|
|
12544
|
+
setColumns = _useState2[1];
|
|
12545
|
+
var _useState3 = useState(false),
|
|
12546
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
12547
|
+
loading = _useState4[0],
|
|
12548
|
+
setLoading = _useState4[1];
|
|
12549
|
+
var showColumnsDataIndexList = useMemo(function () {
|
|
12550
|
+
return columns.filter(function (item) {
|
|
12551
|
+
return Object.hasOwn(item, 'dataIndex');
|
|
12552
|
+
}).map(function (item) {
|
|
12553
|
+
return item.dataIndex;
|
|
12554
|
+
});
|
|
12555
|
+
}, [columns]);
|
|
12556
|
+
useEffect(function () {
|
|
12557
|
+
_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
12558
|
+
var initColumns, requestSortColumns, list, initDataIndexList;
|
|
12559
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
12560
|
+
while (1) switch (_context.prev = _context.next) {
|
|
12561
|
+
case 0:
|
|
12562
|
+
initColumns = getColumnsMap()[type];
|
|
12563
|
+
setLoading(true);
|
|
12564
|
+
_context.next = 4;
|
|
12565
|
+
return asyncGetData(type);
|
|
12566
|
+
case 4:
|
|
12567
|
+
requestSortColumns = _context.sent;
|
|
12568
|
+
setLoading(false);
|
|
12569
|
+
list = [initNo];
|
|
12570
|
+
if (requestSortColumns && requestSortColumns.length > 0) {
|
|
12571
|
+
initDataIndexList = initColumns.map(function (item) {
|
|
12572
|
+
return item.dataIndex;
|
|
12573
|
+
});
|
|
12574
|
+
requestSortColumns.forEach(function (item) {
|
|
12575
|
+
var dataIndex = item.dataIndex,
|
|
12576
|
+
show = item.show;
|
|
12577
|
+
if (show !== false && initDataIndexList.includes(dataIndex)) {
|
|
12578
|
+
list.push(initColumns.find(function (item) {
|
|
12579
|
+
return item.dataIndex === dataIndex;
|
|
12580
|
+
}));
|
|
12581
|
+
}
|
|
12582
|
+
});
|
|
12583
|
+
}
|
|
12584
|
+
setColumns(list);
|
|
12585
|
+
case 9:
|
|
12586
|
+
case "end":
|
|
12587
|
+
return _context.stop();
|
|
12588
|
+
}
|
|
12589
|
+
}, _callee);
|
|
12590
|
+
}))();
|
|
12591
|
+
}, []);
|
|
12592
|
+
return [columns, showColumnsDataIndexList, loading];
|
|
12593
|
+
});
|
|
12594
|
+
|
|
12595
|
+
function SearchForm(_ref) {
|
|
12596
|
+
var searchFormData = _ref.searchFormData,
|
|
12597
|
+
form = _ref.form,
|
|
12598
|
+
showColumnsDataIndexList = _ref.showColumnsDataIndexList,
|
|
12599
|
+
submit = _ref.submit,
|
|
12600
|
+
reset = _ref.reset;
|
|
12601
|
+
var _useState = useState({}),
|
|
12602
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
12603
|
+
searchData = _useState2[0],
|
|
12604
|
+
setSearchData = _useState2[1];
|
|
12605
|
+
var submitForm = /*#__PURE__*/function () {
|
|
12606
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(submitBtnClickFlag) {
|
|
12607
|
+
var values;
|
|
12608
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
12609
|
+
while (1) switch (_context.prev = _context.next) {
|
|
12610
|
+
case 0:
|
|
12611
|
+
_context.next = 2;
|
|
12612
|
+
return form.getFieldsValue();
|
|
12613
|
+
case 2:
|
|
12614
|
+
values = _context.sent;
|
|
12615
|
+
if (submitBtnClickFlag || !isEqual(values, searchData)) {
|
|
12616
|
+
setSearchData(values);
|
|
12617
|
+
submit();
|
|
12618
|
+
}
|
|
12619
|
+
case 4:
|
|
12620
|
+
case "end":
|
|
12621
|
+
return _context.stop();
|
|
12622
|
+
}
|
|
12623
|
+
}, _callee);
|
|
12624
|
+
}));
|
|
12625
|
+
return function submitForm(_x) {
|
|
12626
|
+
return _ref2.apply(this, arguments);
|
|
12627
|
+
};
|
|
12628
|
+
}();
|
|
12629
|
+
return /*#__PURE__*/React.createElement(Form, {
|
|
12630
|
+
layout: "inline",
|
|
12631
|
+
form: form
|
|
12632
|
+
}, searchFormData.map(function (item) {
|
|
12633
|
+
var label = item.label,
|
|
12634
|
+
name = item.name,
|
|
12635
|
+
dataIndex = item.dataIndex,
|
|
12636
|
+
type = item.type,
|
|
12637
|
+
_item$formItemProps = item.formItemProps,
|
|
12638
|
+
formItemProps = _item$formItemProps === void 0 ? {} : _item$formItemProps;
|
|
12639
|
+
if (!showColumnsDataIndexList.includes(dataIndex || name)) return;
|
|
12640
|
+
return /*#__PURE__*/React.createElement(Form.Item, {
|
|
12641
|
+
name: name,
|
|
12642
|
+
style: {
|
|
12643
|
+
marginBottom: '12px'
|
|
12644
|
+
}
|
|
12645
|
+
}, type === 'select' ? /*#__PURE__*/React.createElement(Select, _objectSpread2({
|
|
12646
|
+
placeholder: label,
|
|
12647
|
+
showSearch: true,
|
|
12648
|
+
allowClear: true,
|
|
12649
|
+
style: {
|
|
12650
|
+
width: 150
|
|
12651
|
+
},
|
|
12652
|
+
onBlur: function onBlur() {
|
|
12653
|
+
return submitForm();
|
|
12654
|
+
}
|
|
12655
|
+
}, formItemProps)) : /*#__PURE__*/React.createElement(Input, _objectSpread2({
|
|
12656
|
+
placeholder: label,
|
|
12657
|
+
allowClear: true,
|
|
12658
|
+
style: {
|
|
12659
|
+
width: 150
|
|
12660
|
+
},
|
|
12661
|
+
onPressEnter: function onPressEnter() {
|
|
12662
|
+
return submitForm();
|
|
12663
|
+
},
|
|
12664
|
+
onBlur: function onBlur() {
|
|
12665
|
+
return submitForm();
|
|
12666
|
+
}
|
|
12667
|
+
}, formItemProps)));
|
|
12668
|
+
}), /*#__PURE__*/React.createElement(Form.Item, {
|
|
12669
|
+
style: {
|
|
12670
|
+
marginBottom: '12px'
|
|
12671
|
+
}
|
|
12672
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
12673
|
+
type: "primary",
|
|
12674
|
+
style: {
|
|
12675
|
+
marginRight: '8px'
|
|
12676
|
+
},
|
|
12677
|
+
onClick: function onClick() {
|
|
12678
|
+
return submitForm(true);
|
|
12679
|
+
}
|
|
12680
|
+
}, "\u67E5\u8BE2"), /*#__PURE__*/React.createElement(Button, {
|
|
12681
|
+
onClick: reset
|
|
12682
|
+
}, "\u91CD\u7F6E")));
|
|
12683
|
+
}
|
|
12684
|
+
|
|
12685
|
+
var getTableData = function getTableData(_ref, formData) {
|
|
12686
|
+
var _formData$brandIds;
|
|
12687
|
+
var current = _ref.current,
|
|
12688
|
+
pageSize = _ref.pageSize;
|
|
12689
|
+
var data = {
|
|
12690
|
+
brandIds: ((_formData$brandIds = formData.brandIds) === null || _formData$brandIds === void 0 ? void 0 : _formData$brandIds.length) ? formData.brandIds : null,
|
|
12691
|
+
skuCode: formData.skuCode || null,
|
|
12692
|
+
skuName: formData.skuName || null,
|
|
12693
|
+
goodName: formData.goodName || null,
|
|
12694
|
+
goodNo: formData.goodNo || null
|
|
12695
|
+
};
|
|
12696
|
+
return extendRequest('/qy/gdfw/product/product/page', {
|
|
12697
|
+
method: 'post',
|
|
12698
|
+
data: _objectSpread2({
|
|
12699
|
+
pageSize: pageSize,
|
|
12700
|
+
pageNo: current,
|
|
12701
|
+
platform: 'WDT_ERP'
|
|
12702
|
+
}, data)
|
|
12703
|
+
}).then(function (res) {
|
|
12704
|
+
var _res$data = res.data,
|
|
12705
|
+
_res$data$productSkuL = _res$data.productSkuList,
|
|
12706
|
+
productSkuList = _res$data$productSkuL === void 0 ? [] : _res$data$productSkuL,
|
|
12707
|
+
_res$data$total = _res$data.total,
|
|
12708
|
+
total = _res$data$total === void 0 ? 0 : _res$data$total;
|
|
12709
|
+
var newProducts = productSkuList.map(function (item, index) {
|
|
12710
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
12711
|
+
index: index + 1
|
|
12712
|
+
});
|
|
12713
|
+
});
|
|
12714
|
+
return {
|
|
12715
|
+
total: total,
|
|
12716
|
+
list: newProducts
|
|
12717
|
+
};
|
|
12718
|
+
});
|
|
12719
|
+
};
|
|
12311
12720
|
var GoodList = function GoodList(props, ref) {
|
|
12312
12721
|
var _useState = useState([]),
|
|
12313
12722
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -12321,6 +12730,11 @@ var GoodList = function GoodList(props, ref) {
|
|
|
12321
12730
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
12322
12731
|
brandList = _useState6[0],
|
|
12323
12732
|
setBrandList = _useState6[1];
|
|
12733
|
+
var _useGetColumns = useGetColumns('wdt'),
|
|
12734
|
+
_useGetColumns2 = _slicedToArray(_useGetColumns, 3),
|
|
12735
|
+
columns = _useGetColumns2[0],
|
|
12736
|
+
showColumnsDataIndexList = _useGetColumns2[1],
|
|
12737
|
+
loading = _useGetColumns2[2];
|
|
12324
12738
|
useImperativeHandle(ref, function () {
|
|
12325
12739
|
return {
|
|
12326
12740
|
getSelectGoodList: function getSelectGoodList() {
|
|
@@ -12354,110 +12768,60 @@ var GoodList = function GoodList(props, ref) {
|
|
|
12354
12768
|
}).then(function (res) {
|
|
12355
12769
|
var _res$data2;
|
|
12356
12770
|
if (res.success && (res === null || res === void 0 ? void 0 : (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.detailList)) {
|
|
12357
|
-
var _res$data3, _res$data4;
|
|
12358
|
-
list.push.apply(list, _toConsumableArray((res === null || res === void 0 ? void 0 : (_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.detailList) || []));
|
|
12359
|
-
if ((res === null || res === void 0 ? void 0 : (_res$data4 = res.data) === null || _res$data4 === void 0 ? void 0 : _res$data4.detailList.length) === pageSize) {
|
|
12360
|
-
pageNo += 1;
|
|
12361
|
-
getMore();
|
|
12362
|
-
} else {
|
|
12363
|
-
setBrandList(list);
|
|
12364
|
-
}
|
|
12365
|
-
} else {
|
|
12366
|
-
reject(res);
|
|
12367
|
-
}
|
|
12368
|
-
}).catch(console.error);
|
|
12369
|
-
};
|
|
12370
|
-
getMore();
|
|
12371
|
-
};
|
|
12372
|
-
React.useEffect(function () {
|
|
12373
|
-
setGoodBrandList();
|
|
12374
|
-
}, []);
|
|
12375
|
-
var
|
|
12376
|
-
|
|
12377
|
-
|
|
12378
|
-
|
|
12379
|
-
|
|
12380
|
-
|
|
12381
|
-
|
|
12382
|
-
|
|
12383
|
-
},
|
|
12384
|
-
|
|
12385
|
-
|
|
12386
|
-
|
|
12387
|
-
|
|
12388
|
-
|
|
12389
|
-
}
|
|
12390
|
-
|
|
12391
|
-
|
|
12392
|
-
|
|
12393
|
-
|
|
12394
|
-
|
|
12395
|
-
|
|
12396
|
-
|
|
12397
|
-
|
|
12398
|
-
|
|
12399
|
-
|
|
12400
|
-
|
|
12401
|
-
|
|
12402
|
-
|
|
12403
|
-
|
|
12404
|
-
|
|
12405
|
-
|
|
12406
|
-
|
|
12407
|
-
|
|
12408
|
-
|
|
12409
|
-
width: 150
|
|
12410
|
-
}
|
|
12411
|
-
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
12412
|
-
name: "goodNo",
|
|
12413
|
-
style: {
|
|
12414
|
-
marginBottom: '12px'
|
|
12415
|
-
}
|
|
12416
|
-
}, /*#__PURE__*/React.createElement(Input, {
|
|
12417
|
-
placeholder: "\u5546\u54C1\u7F16\u7801",
|
|
12418
|
-
allowClear: true,
|
|
12419
|
-
style: {
|
|
12420
|
-
width: 150
|
|
12421
|
-
}
|
|
12422
|
-
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
12423
|
-
name: "brandIds",
|
|
12424
|
-
style: {
|
|
12425
|
-
marginBottom: '12px'
|
|
12426
|
-
}
|
|
12427
|
-
}, /*#__PURE__*/React.createElement(Select, {
|
|
12428
|
-
mode: "multiple",
|
|
12429
|
-
showSearch: true,
|
|
12430
|
-
allowClear: true,
|
|
12431
|
-
filterOption: function filterOption(input, option) {
|
|
12432
|
-
return option.label.includes(input);
|
|
12433
|
-
},
|
|
12434
|
-
style: {
|
|
12435
|
-
width: 150
|
|
12436
|
-
},
|
|
12437
|
-
placeholder: "\u54C1\u724C",
|
|
12438
|
-
options: brandList.filter(function (item) {
|
|
12439
|
-
return !item.isDisabled;
|
|
12440
|
-
}).map(function (_ref2) {
|
|
12441
|
-
var value = _ref2.brandId,
|
|
12442
|
-
label = _ref2.brandName;
|
|
12443
|
-
return {
|
|
12444
|
-
value: value,
|
|
12445
|
-
label: label
|
|
12446
|
-
};
|
|
12447
|
-
})
|
|
12448
|
-
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
12449
|
-
style: {
|
|
12450
|
-
marginBottom: '12px'
|
|
12771
|
+
var _res$data3, _res$data4;
|
|
12772
|
+
list.push.apply(list, _toConsumableArray((res === null || res === void 0 ? void 0 : (_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.detailList) || []));
|
|
12773
|
+
if ((res === null || res === void 0 ? void 0 : (_res$data4 = res.data) === null || _res$data4 === void 0 ? void 0 : _res$data4.detailList.length) === pageSize) {
|
|
12774
|
+
pageNo += 1;
|
|
12775
|
+
getMore();
|
|
12776
|
+
} else {
|
|
12777
|
+
setBrandList(list);
|
|
12778
|
+
}
|
|
12779
|
+
} else {
|
|
12780
|
+
reject(res);
|
|
12781
|
+
}
|
|
12782
|
+
}).catch(console.error);
|
|
12783
|
+
};
|
|
12784
|
+
getMore();
|
|
12785
|
+
};
|
|
12786
|
+
React.useEffect(function () {
|
|
12787
|
+
setGoodBrandList();
|
|
12788
|
+
}, []);
|
|
12789
|
+
var searchFormData = [{
|
|
12790
|
+
label: 'SKU名称',
|
|
12791
|
+
name: 'skuName',
|
|
12792
|
+
dataIndex: 'specName'
|
|
12793
|
+
}, {
|
|
12794
|
+
label: 'SKU编码',
|
|
12795
|
+
name: 'skuCode',
|
|
12796
|
+
dataIndex: 'specNo'
|
|
12797
|
+
}, {
|
|
12798
|
+
label: '商品名称',
|
|
12799
|
+
name: 'goodName'
|
|
12800
|
+
}, {
|
|
12801
|
+
label: '商品编码',
|
|
12802
|
+
name: 'goodNo'
|
|
12803
|
+
}, {
|
|
12804
|
+
label: '品牌',
|
|
12805
|
+
name: 'brandIds',
|
|
12806
|
+
dataIndex: 'brandName',
|
|
12807
|
+
type: 'select',
|
|
12808
|
+
formItemProps: {
|
|
12809
|
+
mode: 'multiple',
|
|
12810
|
+
filterOption: function filterOption(input, option) {
|
|
12811
|
+
return option.label.includes(input);
|
|
12812
|
+
},
|
|
12813
|
+
options: brandList.filter(function (item) {
|
|
12814
|
+
return !item.isDisabled;
|
|
12815
|
+
}).map(function (_ref2) {
|
|
12816
|
+
var value = _ref2.brandId,
|
|
12817
|
+
label = _ref2.brandName;
|
|
12818
|
+
return {
|
|
12819
|
+
value: value,
|
|
12820
|
+
label: label
|
|
12821
|
+
};
|
|
12822
|
+
})
|
|
12451
12823
|
}
|
|
12452
|
-
}
|
|
12453
|
-
type: "primary",
|
|
12454
|
-
style: {
|
|
12455
|
-
marginRight: '8px'
|
|
12456
|
-
},
|
|
12457
|
-
onClick: submit
|
|
12458
|
-
}, "\u67E5\u8BE2"), /*#__PURE__*/React.createElement(Button, {
|
|
12459
|
-
onClick: reset
|
|
12460
|
-
}, "\u91CD\u7F6E")));
|
|
12824
|
+
}];
|
|
12461
12825
|
var rowSelection = {
|
|
12462
12826
|
selectedRowKeys: selectIds,
|
|
12463
12827
|
fixed: true,
|
|
@@ -12513,7 +12877,7 @@ var GoodList = function GoodList(props, ref) {
|
|
|
12513
12877
|
}
|
|
12514
12878
|
}, "\u5220\u9664");
|
|
12515
12879
|
}
|
|
12516
|
-
}].concat(takeRight(columns
|
|
12880
|
+
}].concat(takeRight(columns, columns.length - 1));
|
|
12517
12881
|
return selectList.length ? /*#__PURE__*/React.createElement("div", {
|
|
12518
12882
|
style: {
|
|
12519
12883
|
width: '100%',
|
|
@@ -12535,14 +12899,23 @@ var GoodList = function GoodList(props, ref) {
|
|
|
12535
12899
|
}
|
|
12536
12900
|
})) : null;
|
|
12537
12901
|
};
|
|
12538
|
-
return /*#__PURE__*/React.createElement(
|
|
12902
|
+
return /*#__PURE__*/React.createElement(Skeleton, {
|
|
12903
|
+
active: true,
|
|
12904
|
+
loading: loading
|
|
12905
|
+
}, /*#__PURE__*/React.createElement(SearchForm, {
|
|
12906
|
+
searchFormData: searchFormData,
|
|
12907
|
+
form: form,
|
|
12908
|
+
showColumnsDataIndexList: showColumnsDataIndexList,
|
|
12909
|
+
submit: submit,
|
|
12910
|
+
reset: reset
|
|
12911
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
12539
12912
|
style: {
|
|
12540
12913
|
marginTop: '4px'
|
|
12541
12914
|
}
|
|
12542
12915
|
}, /*#__PURE__*/React.createElement(Table, _objectSpread2({
|
|
12543
12916
|
rowSelection: rowSelection,
|
|
12544
12917
|
rowKey: "specNo",
|
|
12545
|
-
columns: columns
|
|
12918
|
+
columns: columns,
|
|
12546
12919
|
scroll: {
|
|
12547
12920
|
x: '100%',
|
|
12548
12921
|
y: 250
|
|
@@ -12626,97 +12999,15 @@ var getTableData$1 = function getTableData(_ref, formData) {
|
|
|
12626
12999
|
};
|
|
12627
13000
|
});
|
|
12628
13001
|
};
|
|
12629
|
-
var
|
|
12630
|
-
|
|
12631
|
-
|
|
12632
|
-
render: function render(val, record, index) {
|
|
12633
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
12634
|
-
style: {
|
|
12635
|
-
width: 25
|
|
12636
|
-
}
|
|
12637
|
-
}, index + 1);
|
|
12638
|
-
},
|
|
12639
|
-
width: 80
|
|
12640
|
-
}, {
|
|
12641
|
-
dataIndex: 'goodName',
|
|
12642
|
-
title: '商品名称',
|
|
12643
|
-
width: 250,
|
|
12644
|
-
ellipsis: true
|
|
12645
|
-
}, {
|
|
12646
|
-
dataIndex: 'goodNo',
|
|
12647
|
-
title: '商品编码',
|
|
12648
|
-
width: 200,
|
|
12649
|
-
ellipsis: true
|
|
12650
|
-
}, {
|
|
12651
|
-
dataIndex: 'styleCode',
|
|
12652
|
-
title: '款式编码',
|
|
12653
|
-
width: 200,
|
|
12654
|
-
ellipsis: true
|
|
13002
|
+
var searchFormData = [{
|
|
13003
|
+
label: '商品名称',
|
|
13004
|
+
name: 'goodName'
|
|
12655
13005
|
}, {
|
|
12656
|
-
|
|
12657
|
-
|
|
12658
|
-
width: 200,
|
|
12659
|
-
ellipsis: true
|
|
12660
|
-
}, {
|
|
12661
|
-
dataIndex: 'goodPicUrl',
|
|
12662
|
-
title: '商品图片',
|
|
12663
|
-
width: 100,
|
|
12664
|
-
render: function render(picUrl) {
|
|
12665
|
-
return /*#__PURE__*/React.createElement("img", {
|
|
12666
|
-
style: {
|
|
12667
|
-
width: '40px',
|
|
12668
|
-
height: '40px',
|
|
12669
|
-
objectFit: 'contain'
|
|
12670
|
-
},
|
|
12671
|
-
src: picUrl
|
|
12672
|
-
});
|
|
12673
|
-
}
|
|
12674
|
-
}, {
|
|
12675
|
-
dataIndex: 'goodShortName',
|
|
12676
|
-
title: "\u5546\u54C1\u7B80\u79F0",
|
|
12677
|
-
ellipsis: true,
|
|
12678
|
-
width: 250
|
|
12679
|
-
}, {
|
|
12680
|
-
dataIndex: 'brandName',
|
|
12681
|
-
title: '品牌名称',
|
|
12682
|
-
width: 200,
|
|
12683
|
-
ellipsis: true
|
|
12684
|
-
}, {
|
|
12685
|
-
dataIndex: 'retailPrice',
|
|
12686
|
-
title: "\u9500\u552E\u4EF7\u683C",
|
|
12687
|
-
ellipsis: true,
|
|
12688
|
-
width: 100,
|
|
12689
|
-
render: function render(price) {
|
|
12690
|
-
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
12691
|
-
}
|
|
12692
|
-
}, {
|
|
12693
|
-
dataIndex: 'marketPrice',
|
|
12694
|
-
title: "\u5E02\u573A\u4EF7",
|
|
12695
|
-
ellipsis: true,
|
|
12696
|
-
width: 100,
|
|
12697
|
-
render: function render(price) {
|
|
12698
|
-
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
12699
|
-
}
|
|
12700
|
-
}, {
|
|
12701
|
-
dataIndex: 'costPrice',
|
|
12702
|
-
title: "\u6210\u672C\u4EF7",
|
|
12703
|
-
ellipsis: true,
|
|
12704
|
-
width: 100,
|
|
12705
|
-
render: function render(price) {
|
|
12706
|
-
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
12707
|
-
}
|
|
13006
|
+
label: '商品编码',
|
|
13007
|
+
name: 'goodNo'
|
|
12708
13008
|
}, {
|
|
12709
|
-
|
|
12710
|
-
|
|
12711
|
-
ellipsis: true,
|
|
12712
|
-
width: 100,
|
|
12713
|
-
render: function render() {
|
|
12714
|
-
var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'normal';
|
|
12715
|
-
return {
|
|
12716
|
-
'combine': '组合装商品',
|
|
12717
|
-
'normal': '普通商品'
|
|
12718
|
-
}[type] || type;
|
|
12719
|
-
}
|
|
13009
|
+
label: '款式编码',
|
|
13010
|
+
name: 'styleCode'
|
|
12720
13011
|
}];
|
|
12721
13012
|
var GoodList$1 = function GoodList(props, ref) {
|
|
12722
13013
|
var _useState = useState([]),
|
|
@@ -12727,6 +13018,11 @@ var GoodList$1 = function GoodList(props, ref) {
|
|
|
12727
13018
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
12728
13019
|
selectIds = _useState4[0],
|
|
12729
13020
|
setSelectIds = _useState4[1];
|
|
13021
|
+
var _useGetColumns = useGetColumns('jst'),
|
|
13022
|
+
_useGetColumns2 = _slicedToArray(_useGetColumns, 3),
|
|
13023
|
+
columns = _useGetColumns2[0],
|
|
13024
|
+
showColumnsDataIndexList = _useGetColumns2[1],
|
|
13025
|
+
loading = _useGetColumns2[2];
|
|
12730
13026
|
useImperativeHandle(ref, function () {
|
|
12731
13027
|
return {
|
|
12732
13028
|
getSelectGoodList: function getSelectGoodList() {
|
|
@@ -12746,55 +13042,6 @@ var GoodList$1 = function GoodList(props, ref) {
|
|
|
12746
13042
|
params = _useAntdTable.params;
|
|
12747
13043
|
var submit = search.submit,
|
|
12748
13044
|
reset = search.reset;
|
|
12749
|
-
var advanceSearchForm = /*#__PURE__*/React.createElement(Form, {
|
|
12750
|
-
layout: "inline",
|
|
12751
|
-
form: form
|
|
12752
|
-
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
12753
|
-
name: "goodName",
|
|
12754
|
-
style: {
|
|
12755
|
-
marginBottom: '12px'
|
|
12756
|
-
}
|
|
12757
|
-
}, /*#__PURE__*/React.createElement(Input, {
|
|
12758
|
-
placeholder: "\u5546\u54C1\u540D\u79F0",
|
|
12759
|
-
allowClear: true,
|
|
12760
|
-
style: {
|
|
12761
|
-
width: 150
|
|
12762
|
-
}
|
|
12763
|
-
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
12764
|
-
name: "goodNo",
|
|
12765
|
-
style: {
|
|
12766
|
-
marginBottom: '12px'
|
|
12767
|
-
}
|
|
12768
|
-
}, /*#__PURE__*/React.createElement(Input, {
|
|
12769
|
-
placeholder: "\u5546\u54C1\u7F16\u7801",
|
|
12770
|
-
allowClear: true,
|
|
12771
|
-
style: {
|
|
12772
|
-
width: 150
|
|
12773
|
-
}
|
|
12774
|
-
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
12775
|
-
name: "styleCode",
|
|
12776
|
-
style: {
|
|
12777
|
-
marginBottom: '12px'
|
|
12778
|
-
}
|
|
12779
|
-
}, /*#__PURE__*/React.createElement(Input, {
|
|
12780
|
-
placeholder: "\u6B3E\u5F0F\u7F16\u7801",
|
|
12781
|
-
allowClear: true,
|
|
12782
|
-
style: {
|
|
12783
|
-
width: 150
|
|
12784
|
-
}
|
|
12785
|
-
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
12786
|
-
style: {
|
|
12787
|
-
marginBottom: '12px'
|
|
12788
|
-
}
|
|
12789
|
-
}, /*#__PURE__*/React.createElement(Button, {
|
|
12790
|
-
type: "primary",
|
|
12791
|
-
style: {
|
|
12792
|
-
marginRight: '8px'
|
|
12793
|
-
},
|
|
12794
|
-
onClick: submit
|
|
12795
|
-
}, "\u67E5\u8BE2"), /*#__PURE__*/React.createElement(Button, {
|
|
12796
|
-
onClick: reset
|
|
12797
|
-
}, "\u91CD\u7F6E")));
|
|
12798
13045
|
var rowSelection = {
|
|
12799
13046
|
selectedRowKeys: selectIds,
|
|
12800
13047
|
fixed: true,
|
|
@@ -12859,7 +13106,7 @@ var GoodList$1 = function GoodList(props, ref) {
|
|
|
12859
13106
|
}
|
|
12860
13107
|
}, "\u5220\u9664");
|
|
12861
13108
|
}
|
|
12862
|
-
}].concat(takeRight(columns
|
|
13109
|
+
}].concat(takeRight(columns, columns.length - 1));
|
|
12863
13110
|
return selectList.length ? /*#__PURE__*/React.createElement("div", {
|
|
12864
13111
|
style: {
|
|
12865
13112
|
width: '100%',
|
|
@@ -12881,14 +13128,23 @@ var GoodList$1 = function GoodList(props, ref) {
|
|
|
12881
13128
|
}
|
|
12882
13129
|
})) : null;
|
|
12883
13130
|
};
|
|
12884
|
-
return /*#__PURE__*/React.createElement(
|
|
13131
|
+
return /*#__PURE__*/React.createElement(Skeleton, {
|
|
13132
|
+
active: true,
|
|
13133
|
+
loading: loading
|
|
13134
|
+
}, /*#__PURE__*/React.createElement(SearchForm, {
|
|
13135
|
+
searchFormData: searchFormData,
|
|
13136
|
+
form: form,
|
|
13137
|
+
showColumnsDataIndexList: showColumnsDataIndexList,
|
|
13138
|
+
submit: submit,
|
|
13139
|
+
reset: reset
|
|
13140
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
12885
13141
|
style: {
|
|
12886
13142
|
marginTop: '4px'
|
|
12887
13143
|
}
|
|
12888
13144
|
}, /*#__PURE__*/React.createElement(Table, _objectSpread2({
|
|
12889
13145
|
rowSelection: rowSelection,
|
|
12890
13146
|
rowKey: "goodNo",
|
|
12891
|
-
columns: columns
|
|
13147
|
+
columns: columns,
|
|
12892
13148
|
scroll: {
|
|
12893
13149
|
x: '100%',
|
|
12894
13150
|
y: 250
|
|
@@ -12958,6 +13214,7 @@ var getTableData$2 = function getTableData(_ref, formData) {
|
|
|
12958
13214
|
var current = _ref.current,
|
|
12959
13215
|
pageSize = _ref.pageSize;
|
|
12960
13216
|
var data = {
|
|
13217
|
+
goodShortName: formData.goodShortName || null,
|
|
12961
13218
|
goodNo: formData.goodNo || null,
|
|
12962
13219
|
goodName: formData.goodName || null,
|
|
12963
13220
|
skuCode: formData.skuCode || null,
|
|
@@ -12981,107 +13238,26 @@ var getTableData$2 = function getTableData(_ref, formData) {
|
|
|
12981
13238
|
index: index + 1
|
|
12982
13239
|
});
|
|
12983
13240
|
});
|
|
12984
|
-
return {
|
|
12985
|
-
total: total,
|
|
12986
|
-
list: newProducts
|
|
12987
|
-
};
|
|
12988
|
-
});
|
|
12989
|
-
};
|
|
12990
|
-
var
|
|
12991
|
-
|
|
12992
|
-
|
|
12993
|
-
render: function render(val, record, index) {
|
|
12994
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
12995
|
-
style: {
|
|
12996
|
-
width: 25
|
|
12997
|
-
}
|
|
12998
|
-
}, index + 1);
|
|
12999
|
-
},
|
|
13000
|
-
width: 80
|
|
13001
|
-
}, {
|
|
13002
|
-
dataIndex: 'specNo',
|
|
13003
|
-
title: "SKU",
|
|
13004
|
-
ellipsis: true,
|
|
13005
|
-
width: 200
|
|
13006
|
-
}, {
|
|
13007
|
-
dataIndex: 'specId',
|
|
13008
|
-
title: "SKU ID",
|
|
13009
|
-
ellipsis: true,
|
|
13010
|
-
width: 80
|
|
13011
|
-
}, {
|
|
13012
|
-
dataIndex: 'goodName',
|
|
13013
|
-
title: "\u5546\u54C1\u540D\u79F0",
|
|
13014
|
-
ellipsis: true,
|
|
13015
|
-
width: 250
|
|
13016
|
-
}, {
|
|
13017
|
-
dataIndex: 'goodShortName',
|
|
13018
|
-
title: "\u5546\u54C1\u7B80\u79F0",
|
|
13019
|
-
ellipsis: true,
|
|
13020
|
-
width: 250
|
|
13021
|
-
},
|
|
13022
|
-
// {
|
|
13023
|
-
// dataIndex: 'goodPicUrl',
|
|
13024
|
-
// title: `商品图片`,
|
|
13025
|
-
// ellipsis: true,
|
|
13026
|
-
// width: 100,
|
|
13027
|
-
// render: (picUrl: string) => {
|
|
13028
|
-
// return (
|
|
13029
|
-
// <img
|
|
13030
|
-
// style={{
|
|
13031
|
-
// width: '40px',
|
|
13032
|
-
// height: '40px',
|
|
13033
|
-
// objectFit: 'contain',
|
|
13034
|
-
// }}
|
|
13035
|
-
// src={picUrl}
|
|
13036
|
-
// ></img>
|
|
13037
|
-
// );
|
|
13038
|
-
// },
|
|
13039
|
-
// },
|
|
13040
|
-
{
|
|
13041
|
-
dataIndex: 'goodNo',
|
|
13042
|
-
title: "\u8D27\u53F7",
|
|
13043
|
-
ellipsis: true,
|
|
13044
|
-
width: 150
|
|
13045
|
-
}, {
|
|
13046
|
-
dataIndex: 'goodId',
|
|
13047
|
-
title: "\u8D27\u53F7ID",
|
|
13048
|
-
ellipsis: true,
|
|
13049
|
-
width: 100
|
|
13050
|
-
}, {
|
|
13051
|
-
dataIndex: 'colorName',
|
|
13052
|
-
title: "\u989C\u8272\u540D\u79F0",
|
|
13053
|
-
ellipsis: true,
|
|
13054
|
-
width: 100
|
|
13055
|
-
}, {
|
|
13056
|
-
dataIndex: 'colorCode',
|
|
13057
|
-
title: "\u989C\u8272\u4EE3\u7801",
|
|
13058
|
-
ellipsis: true,
|
|
13059
|
-
width: 100
|
|
13060
|
-
}, {
|
|
13061
|
-
dataIndex: 'sizeName',
|
|
13062
|
-
title: "\u5C3A\u7801\u540D\u79F0",
|
|
13063
|
-
ellipsis: true,
|
|
13064
|
-
width: 100
|
|
13065
|
-
}, {
|
|
13066
|
-
dataIndex: 'sizeCode',
|
|
13067
|
-
title: "\u5C3A\u7801\u4EE3\u7801",
|
|
13068
|
-
ellipsis: true,
|
|
13069
|
-
width: 100
|
|
13241
|
+
return {
|
|
13242
|
+
total: total,
|
|
13243
|
+
list: newProducts
|
|
13244
|
+
};
|
|
13245
|
+
});
|
|
13246
|
+
};
|
|
13247
|
+
var searchFormData$1 = [{
|
|
13248
|
+
label: '商品货号',
|
|
13249
|
+
name: 'goodNo'
|
|
13070
13250
|
}, {
|
|
13071
|
-
|
|
13072
|
-
|
|
13073
|
-
ellipsis: true,
|
|
13074
|
-
width: 100
|
|
13251
|
+
label: '商品名称',
|
|
13252
|
+
name: 'goodName'
|
|
13075
13253
|
}, {
|
|
13076
|
-
|
|
13077
|
-
|
|
13078
|
-
|
|
13079
|
-
width: 100
|
|
13254
|
+
label: 'SKU',
|
|
13255
|
+
name: 'skuCode',
|
|
13256
|
+
dataIndex: 'specNo'
|
|
13080
13257
|
}, {
|
|
13081
|
-
|
|
13082
|
-
|
|
13083
|
-
|
|
13084
|
-
width: 100
|
|
13258
|
+
label: 'SKU ID',
|
|
13259
|
+
name: 'skuId',
|
|
13260
|
+
dataIndex: 'specId'
|
|
13085
13261
|
}];
|
|
13086
13262
|
var GoodList$2 = function GoodList(props, ref) {
|
|
13087
13263
|
var _useState = useState([]),
|
|
@@ -13092,6 +13268,11 @@ var GoodList$2 = function GoodList(props, ref) {
|
|
|
13092
13268
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
13093
13269
|
selectIds = _useState4[0],
|
|
13094
13270
|
setSelectIds = _useState4[1];
|
|
13271
|
+
var _useGetColumns = useGetColumns('bse3'),
|
|
13272
|
+
_useGetColumns2 = _slicedToArray(_useGetColumns, 3),
|
|
13273
|
+
columns = _useGetColumns2[0],
|
|
13274
|
+
showColumnsDataIndexList = _useGetColumns2[1],
|
|
13275
|
+
loading = _useGetColumns2[2];
|
|
13095
13276
|
useImperativeHandle(ref, function () {
|
|
13096
13277
|
return {
|
|
13097
13278
|
getSelectGoodList: function getSelectGoodList() {
|
|
@@ -13111,66 +13292,6 @@ var GoodList$2 = function GoodList(props, ref) {
|
|
|
13111
13292
|
params = _useAntdTable.params;
|
|
13112
13293
|
var submit = search.submit,
|
|
13113
13294
|
reset = search.reset;
|
|
13114
|
-
var advanceSearchForm = /*#__PURE__*/React.createElement(Form, {
|
|
13115
|
-
layout: "inline",
|
|
13116
|
-
form: form
|
|
13117
|
-
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
13118
|
-
name: "goodNo",
|
|
13119
|
-
style: {
|
|
13120
|
-
marginBottom: '12px'
|
|
13121
|
-
}
|
|
13122
|
-
}, /*#__PURE__*/React.createElement(Input, {
|
|
13123
|
-
placeholder: "\u5546\u54C1\u8D27\u53F7",
|
|
13124
|
-
allowClear: true,
|
|
13125
|
-
style: {
|
|
13126
|
-
width: 150
|
|
13127
|
-
}
|
|
13128
|
-
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
13129
|
-
name: "goodName",
|
|
13130
|
-
style: {
|
|
13131
|
-
marginBottom: '12px'
|
|
13132
|
-
}
|
|
13133
|
-
}, /*#__PURE__*/React.createElement(Input, {
|
|
13134
|
-
placeholder: "\u5546\u54C1\u540D\u79F0",
|
|
13135
|
-
allowClear: true,
|
|
13136
|
-
style: {
|
|
13137
|
-
width: 150
|
|
13138
|
-
}
|
|
13139
|
-
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
13140
|
-
name: "skuCode",
|
|
13141
|
-
style: {
|
|
13142
|
-
marginBottom: '12px'
|
|
13143
|
-
}
|
|
13144
|
-
}, /*#__PURE__*/React.createElement(Input, {
|
|
13145
|
-
placeholder: "SKU",
|
|
13146
|
-
allowClear: true,
|
|
13147
|
-
style: {
|
|
13148
|
-
width: 150
|
|
13149
|
-
}
|
|
13150
|
-
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
13151
|
-
name: "skuId",
|
|
13152
|
-
style: {
|
|
13153
|
-
marginBottom: '12px'
|
|
13154
|
-
}
|
|
13155
|
-
}, /*#__PURE__*/React.createElement(Input, {
|
|
13156
|
-
placeholder: "SKU ID",
|
|
13157
|
-
allowClear: true,
|
|
13158
|
-
style: {
|
|
13159
|
-
width: 150
|
|
13160
|
-
}
|
|
13161
|
-
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
13162
|
-
style: {
|
|
13163
|
-
marginBottom: '12px'
|
|
13164
|
-
}
|
|
13165
|
-
}, /*#__PURE__*/React.createElement(Button, {
|
|
13166
|
-
type: "primary",
|
|
13167
|
-
style: {
|
|
13168
|
-
marginRight: '8px'
|
|
13169
|
-
},
|
|
13170
|
-
onClick: submit
|
|
13171
|
-
}, "\u67E5\u8BE2"), /*#__PURE__*/React.createElement(Button, {
|
|
13172
|
-
onClick: reset
|
|
13173
|
-
}, "\u91CD\u7F6E")));
|
|
13174
13295
|
var rowSelection = {
|
|
13175
13296
|
selectedRowKeys: selectIds,
|
|
13176
13297
|
fixed: true,
|
|
@@ -13226,7 +13347,7 @@ var GoodList$2 = function GoodList(props, ref) {
|
|
|
13226
13347
|
}
|
|
13227
13348
|
}, "\u5220\u9664");
|
|
13228
13349
|
}
|
|
13229
|
-
}].concat(takeRight(columns
|
|
13350
|
+
}].concat(takeRight(columns, columns.length - 1));
|
|
13230
13351
|
return selectList.length ? /*#__PURE__*/React.createElement("div", {
|
|
13231
13352
|
style: {
|
|
13232
13353
|
width: '100%',
|
|
@@ -13248,14 +13369,23 @@ var GoodList$2 = function GoodList(props, ref) {
|
|
|
13248
13369
|
}
|
|
13249
13370
|
})) : null;
|
|
13250
13371
|
};
|
|
13251
|
-
return /*#__PURE__*/React.createElement(
|
|
13372
|
+
return /*#__PURE__*/React.createElement(Skeleton, {
|
|
13373
|
+
active: true,
|
|
13374
|
+
loading: loading
|
|
13375
|
+
}, /*#__PURE__*/React.createElement(SearchForm, {
|
|
13376
|
+
searchFormData: searchFormData$1,
|
|
13377
|
+
form: form,
|
|
13378
|
+
showColumnsDataIndexList: showColumnsDataIndexList,
|
|
13379
|
+
submit: submit,
|
|
13380
|
+
reset: reset
|
|
13381
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
13252
13382
|
style: {
|
|
13253
13383
|
marginTop: '4px'
|
|
13254
13384
|
}
|
|
13255
13385
|
}, /*#__PURE__*/React.createElement(Table, _objectSpread2({
|
|
13256
13386
|
rowSelection: rowSelection,
|
|
13257
13387
|
rowKey: "specNo",
|
|
13258
|
-
columns: columns
|
|
13388
|
+
columns: columns,
|
|
13259
13389
|
scroll: {
|
|
13260
13390
|
x: '100%',
|
|
13261
13391
|
y: 250
|
|
@@ -13346,71 +13476,23 @@ var getTableData$3 = function getTableData(_ref, formData) {
|
|
|
13346
13476
|
};
|
|
13347
13477
|
});
|
|
13348
13478
|
};
|
|
13349
|
-
var
|
|
13350
|
-
|
|
13351
|
-
|
|
13352
|
-
render: function render(val, record, index) {
|
|
13353
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
13354
|
-
style: {
|
|
13355
|
-
width: 25
|
|
13356
|
-
}
|
|
13357
|
-
}, index + 1);
|
|
13358
|
-
},
|
|
13359
|
-
width: 80
|
|
13360
|
-
}, {
|
|
13361
|
-
dataIndex: 'specName',
|
|
13362
|
-
title: 'SKU名称',
|
|
13363
|
-
width: 250,
|
|
13364
|
-
ellipsis: true
|
|
13365
|
-
}, {
|
|
13366
|
-
dataIndex: 'specNo',
|
|
13367
|
-
title: 'SKU编码',
|
|
13368
|
-
width: 200,
|
|
13369
|
-
ellipsis: true
|
|
13370
|
-
}, {
|
|
13371
|
-
dataIndex: 'goodName',
|
|
13372
|
-
title: '商品名称',
|
|
13373
|
-
width: 250,
|
|
13374
|
-
ellipsis: true
|
|
13479
|
+
var searchFormData$2 = [{
|
|
13480
|
+
label: '商品简称',
|
|
13481
|
+
name: 'goodShortName'
|
|
13375
13482
|
}, {
|
|
13376
|
-
|
|
13377
|
-
|
|
13378
|
-
|
|
13379
|
-
width: 250
|
|
13380
|
-
}, {
|
|
13381
|
-
dataIndex: 'goodNo',
|
|
13382
|
-
title: '商品编码',
|
|
13383
|
-
width: 200,
|
|
13384
|
-
ellipsis: true
|
|
13385
|
-
}, {
|
|
13386
|
-
dataIndex: 'goodPicUrl',
|
|
13387
|
-
title: '商品图片',
|
|
13388
|
-
width: 100,
|
|
13389
|
-
render: function render(picUrl) {
|
|
13390
|
-
return /*#__PURE__*/React.createElement("img", {
|
|
13391
|
-
style: {
|
|
13392
|
-
width: '40px',
|
|
13393
|
-
height: '40px',
|
|
13394
|
-
objectFit: 'contain'
|
|
13395
|
-
},
|
|
13396
|
-
src: picUrl
|
|
13397
|
-
});
|
|
13398
|
-
}
|
|
13483
|
+
label: '商品sku名称',
|
|
13484
|
+
name: 'skuName',
|
|
13485
|
+
dataIndex: 'specName'
|
|
13399
13486
|
}, {
|
|
13400
|
-
|
|
13401
|
-
|
|
13402
|
-
|
|
13403
|
-
ellipsis: true
|
|
13487
|
+
label: '商品sku编码',
|
|
13488
|
+
name: 'skuCode',
|
|
13489
|
+
dataIndex: 'specNo'
|
|
13404
13490
|
}, {
|
|
13405
|
-
|
|
13406
|
-
|
|
13407
|
-
ellipsis: true,
|
|
13408
|
-
width: 100
|
|
13491
|
+
label: '商品名称',
|
|
13492
|
+
name: 'goodName'
|
|
13409
13493
|
}, {
|
|
13410
|
-
|
|
13411
|
-
|
|
13412
|
-
ellipsis: true,
|
|
13413
|
-
width: 100
|
|
13494
|
+
label: '商品编码',
|
|
13495
|
+
name: 'goodNo'
|
|
13414
13496
|
}];
|
|
13415
13497
|
var GoodList$3 = function GoodList(props, ref) {
|
|
13416
13498
|
var _useState = useState([]),
|
|
@@ -13421,6 +13503,11 @@ var GoodList$3 = function GoodList(props, ref) {
|
|
|
13421
13503
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
13422
13504
|
selectIds = _useState4[0],
|
|
13423
13505
|
setSelectIds = _useState4[1];
|
|
13506
|
+
var _useGetColumns = useGetColumns('gy'),
|
|
13507
|
+
_useGetColumns2 = _slicedToArray(_useGetColumns, 3),
|
|
13508
|
+
columns = _useGetColumns2[0],
|
|
13509
|
+
showColumnsDataIndexList = _useGetColumns2[1],
|
|
13510
|
+
loading = _useGetColumns2[2];
|
|
13424
13511
|
useImperativeHandle(ref, function () {
|
|
13425
13512
|
return {
|
|
13426
13513
|
getSelectGoodList: function getSelectGoodList() {
|
|
@@ -13440,77 +13527,6 @@ var GoodList$3 = function GoodList(props, ref) {
|
|
|
13440
13527
|
params = _useAntdTable.params;
|
|
13441
13528
|
var submit = search.submit,
|
|
13442
13529
|
reset = search.reset;
|
|
13443
|
-
var advanceSearchForm = /*#__PURE__*/React.createElement(Form, {
|
|
13444
|
-
layout: "inline",
|
|
13445
|
-
form: form
|
|
13446
|
-
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
13447
|
-
name: "goodShortName",
|
|
13448
|
-
style: {
|
|
13449
|
-
marginBottom: '12px'
|
|
13450
|
-
}
|
|
13451
|
-
}, /*#__PURE__*/React.createElement(Input, {
|
|
13452
|
-
placeholder: "\u5546\u54C1\u7B80\u79F0",
|
|
13453
|
-
allowClear: true,
|
|
13454
|
-
style: {
|
|
13455
|
-
width: 150
|
|
13456
|
-
}
|
|
13457
|
-
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
13458
|
-
name: "skuName",
|
|
13459
|
-
style: {
|
|
13460
|
-
marginBottom: '12px'
|
|
13461
|
-
}
|
|
13462
|
-
}, /*#__PURE__*/React.createElement(Input, {
|
|
13463
|
-
placeholder: "\u5546\u54C1sku\u540D\u79F0",
|
|
13464
|
-
allowClear: true,
|
|
13465
|
-
style: {
|
|
13466
|
-
width: 150
|
|
13467
|
-
}
|
|
13468
|
-
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
13469
|
-
name: "skuCode",
|
|
13470
|
-
style: {
|
|
13471
|
-
marginBottom: '12px'
|
|
13472
|
-
}
|
|
13473
|
-
}, /*#__PURE__*/React.createElement(Input, {
|
|
13474
|
-
placeholder: "\u5546\u54C1sku\u7F16\u7801",
|
|
13475
|
-
allowClear: true,
|
|
13476
|
-
style: {
|
|
13477
|
-
width: 150
|
|
13478
|
-
}
|
|
13479
|
-
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
13480
|
-
name: "goodName",
|
|
13481
|
-
style: {
|
|
13482
|
-
marginBottom: '12px'
|
|
13483
|
-
}
|
|
13484
|
-
}, /*#__PURE__*/React.createElement(Input, {
|
|
13485
|
-
placeholder: "\u5546\u54C1\u540D\u79F0",
|
|
13486
|
-
allowClear: true,
|
|
13487
|
-
style: {
|
|
13488
|
-
width: 150
|
|
13489
|
-
}
|
|
13490
|
-
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
13491
|
-
name: "goodNo",
|
|
13492
|
-
style: {
|
|
13493
|
-
marginBottom: '12px'
|
|
13494
|
-
}
|
|
13495
|
-
}, /*#__PURE__*/React.createElement(Input, {
|
|
13496
|
-
placeholder: "\u5546\u54C1\u7F16\u7801",
|
|
13497
|
-
allowClear: true,
|
|
13498
|
-
style: {
|
|
13499
|
-
width: 150
|
|
13500
|
-
}
|
|
13501
|
-
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
13502
|
-
style: {
|
|
13503
|
-
marginBottom: '12px'
|
|
13504
|
-
}
|
|
13505
|
-
}, /*#__PURE__*/React.createElement(Button, {
|
|
13506
|
-
type: "primary",
|
|
13507
|
-
style: {
|
|
13508
|
-
marginRight: '8px'
|
|
13509
|
-
},
|
|
13510
|
-
onClick: submit
|
|
13511
|
-
}, "\u67E5\u8BE2"), /*#__PURE__*/React.createElement(Button, {
|
|
13512
|
-
onClick: reset
|
|
13513
|
-
}, "\u91CD\u7F6E")));
|
|
13514
13530
|
var rowSelection = {
|
|
13515
13531
|
selectedRowKeys: selectIds,
|
|
13516
13532
|
fixed: true,
|
|
@@ -13566,7 +13582,7 @@ var GoodList$3 = function GoodList(props, ref) {
|
|
|
13566
13582
|
}
|
|
13567
13583
|
}, "\u5220\u9664");
|
|
13568
13584
|
}
|
|
13569
|
-
}].concat(takeRight(columns
|
|
13585
|
+
}].concat(takeRight(columns, columns.length - 1));
|
|
13570
13586
|
return selectList.length ? /*#__PURE__*/React.createElement("div", {
|
|
13571
13587
|
style: {
|
|
13572
13588
|
width: '100%',
|
|
@@ -13588,14 +13604,23 @@ var GoodList$3 = function GoodList(props, ref) {
|
|
|
13588
13604
|
}
|
|
13589
13605
|
})) : null;
|
|
13590
13606
|
};
|
|
13591
|
-
return /*#__PURE__*/React.createElement(
|
|
13607
|
+
return /*#__PURE__*/React.createElement(Skeleton, {
|
|
13608
|
+
active: true,
|
|
13609
|
+
loading: loading
|
|
13610
|
+
}, /*#__PURE__*/React.createElement(SearchForm, {
|
|
13611
|
+
searchFormData: searchFormData$2,
|
|
13612
|
+
form: form,
|
|
13613
|
+
showColumnsDataIndexList: showColumnsDataIndexList,
|
|
13614
|
+
submit: submit,
|
|
13615
|
+
reset: reset
|
|
13616
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
13592
13617
|
style: {
|
|
13593
13618
|
marginTop: '4px'
|
|
13594
13619
|
}
|
|
13595
13620
|
}, /*#__PURE__*/React.createElement(Table, _objectSpread2({
|
|
13596
13621
|
rowSelection: rowSelection,
|
|
13597
13622
|
rowKey: "id",
|
|
13598
|
-
columns: columns
|
|
13623
|
+
columns: columns,
|
|
13599
13624
|
scroll: {
|
|
13600
13625
|
x: '100%',
|
|
13601
13626
|
y: 250
|
|
@@ -14075,7 +14100,7 @@ var getWdtReissueGoodColumns = function getWdtReissueGoodColumns(_ref2) {
|
|
|
14075
14100
|
var disabled = _ref2.disabled,
|
|
14076
14101
|
updateHandle = _ref2.updateHandle,
|
|
14077
14102
|
operate = _ref2.operate;
|
|
14078
|
-
return getColumnsMap()['WDT_REISSUE_GOODS'].map(function (item) {
|
|
14103
|
+
return getColumnsMap$1()['WDT_REISSUE_GOODS'].map(function (item) {
|
|
14079
14104
|
var newItem = _objectSpread2({
|
|
14080
14105
|
align: 'center',
|
|
14081
14106
|
ellipsis: true
|
|
@@ -14102,15 +14127,20 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
14102
14127
|
WDT_REISSUE_GOODS: [{
|
|
14103
14128
|
dataIndex: 'goodId',
|
|
14104
14129
|
title: "\u5546\u54C1ID",
|
|
14105
|
-
width: 120
|
|
14130
|
+
width: 120,
|
|
14131
|
+
align: 'center',
|
|
14132
|
+
ellipsis: true
|
|
14106
14133
|
}, {
|
|
14107
14134
|
dataIndex: 'goodNo',
|
|
14108
14135
|
title: "\u5546\u54C1\u7F16\u7801",
|
|
14109
|
-
|
|
14136
|
+
align: 'center',
|
|
14137
|
+
ellipsis: true,
|
|
14138
|
+
width: 180
|
|
14110
14139
|
}, {
|
|
14111
14140
|
dataIndex: 'goodName',
|
|
14112
14141
|
title: "\u5546\u54C1\u540D\u79F0",
|
|
14113
14142
|
width: 200,
|
|
14143
|
+
align: 'center',
|
|
14114
14144
|
render: function render(text) {
|
|
14115
14145
|
return /*#__PURE__*/React.createElement(CopyTextIcon, {
|
|
14116
14146
|
val: text
|
|
@@ -14119,14 +14149,19 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
14119
14149
|
}, {
|
|
14120
14150
|
dataIndex: 'specId',
|
|
14121
14151
|
title: "SKUID",
|
|
14152
|
+
align: 'center',
|
|
14153
|
+
ellipsis: true,
|
|
14122
14154
|
width: 150
|
|
14123
14155
|
}, {
|
|
14124
14156
|
dataIndex: 'specNo',
|
|
14125
14157
|
title: "\u5546\u54C1SKU\u7F16\u7801",
|
|
14126
|
-
|
|
14158
|
+
align: 'center',
|
|
14159
|
+
ellipsis: true,
|
|
14160
|
+
width: 180
|
|
14127
14161
|
}, {
|
|
14128
14162
|
dataIndex: 'specName',
|
|
14129
14163
|
title: "\u5546\u54C1SKU\u540D\u79F0",
|
|
14164
|
+
align: 'center',
|
|
14130
14165
|
width: 250,
|
|
14131
14166
|
render: function render(text) {
|
|
14132
14167
|
return /*#__PURE__*/React.createElement(CopyTextIcon, {
|
|
@@ -14239,18 +14274,7 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
14239
14274
|
align: 'center',
|
|
14240
14275
|
ellipsis: true,
|
|
14241
14276
|
width: 100,
|
|
14242
|
-
render:
|
|
14243
|
-
var giftTypeMap = {
|
|
14244
|
-
0: '非赠品',
|
|
14245
|
-
1: '自动赠送',
|
|
14246
|
-
2: '手工赠送',
|
|
14247
|
-
3: '回购自动送赠品',
|
|
14248
|
-
4: '前N有礼送赠品',
|
|
14249
|
-
6: '天猫优仓赠品',
|
|
14250
|
-
7: '淘宝CRM会员送赠'
|
|
14251
|
-
};
|
|
14252
|
-
return /*#__PURE__*/React.createElement("span", null, giftTypeMap[val]);
|
|
14253
|
-
}
|
|
14277
|
+
render: renderGiftType
|
|
14254
14278
|
}],
|
|
14255
14279
|
//旺店通退货商品信息
|
|
14256
14280
|
WDT_RETURN_GOODS: [{
|
|
@@ -14346,18 +14370,7 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
14346
14370
|
align: 'center',
|
|
14347
14371
|
ellipsis: true,
|
|
14348
14372
|
width: 100,
|
|
14349
|
-
render:
|
|
14350
|
-
var giftTypeMap = {
|
|
14351
|
-
0: '非赠品',
|
|
14352
|
-
1: '自动赠送',
|
|
14353
|
-
2: '手工赠送',
|
|
14354
|
-
3: '回购自动送赠品',
|
|
14355
|
-
4: '前N有礼送赠品',
|
|
14356
|
-
6: '天猫优仓赠品',
|
|
14357
|
-
7: '淘宝CRM会员送赠'
|
|
14358
|
-
};
|
|
14359
|
-
return /*#__PURE__*/React.createElement("span", null, giftTypeMap[val]);
|
|
14360
|
-
}
|
|
14373
|
+
render: renderGiftType
|
|
14361
14374
|
}, {
|
|
14362
14375
|
dataIndex: 'type',
|
|
14363
14376
|
title: "".concat(text, "\u5546\u54C1\u7C7B\u578B"),
|
|
@@ -14478,18 +14491,7 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
14478
14491
|
align: 'center',
|
|
14479
14492
|
ellipsis: true,
|
|
14480
14493
|
width: 100,
|
|
14481
|
-
render:
|
|
14482
|
-
var giftTypeMap = {
|
|
14483
|
-
0: '非赠品',
|
|
14484
|
-
1: '自动赠送',
|
|
14485
|
-
2: '手工赠送',
|
|
14486
|
-
3: '回购自动送赠品',
|
|
14487
|
-
4: '前N有礼送赠品',
|
|
14488
|
-
6: '天猫优仓赠品',
|
|
14489
|
-
7: '淘宝CRM会员送赠'
|
|
14490
|
-
};
|
|
14491
|
-
return /*#__PURE__*/React.createElement("span", null, giftTypeMap[val]);
|
|
14492
|
-
}
|
|
14494
|
+
render: renderGiftType
|
|
14493
14495
|
}, {
|
|
14494
14496
|
dataIndex: 'type',
|
|
14495
14497
|
title: "".concat(text, "\u5546\u54C1\u7C7B\u578B"),
|
|
@@ -14673,6 +14675,15 @@ var getYesOrNo$1 = function getYesOrNo(val) {
|
|
|
14673
14675
|
if (isNull(val)) return null;
|
|
14674
14676
|
return val ? '是' : '否';
|
|
14675
14677
|
};
|
|
14678
|
+
function toNum(value) {
|
|
14679
|
+
if (typeof value === 'string') {
|
|
14680
|
+
return value ? +value : void 0;
|
|
14681
|
+
}
|
|
14682
|
+
if (typeof value === 'number') {
|
|
14683
|
+
return value;
|
|
14684
|
+
}
|
|
14685
|
+
return void 0;
|
|
14686
|
+
}
|
|
14676
14687
|
var getColumns$4 = function getColumns(_ref) {
|
|
14677
14688
|
var _ref$text = _ref.text,
|
|
14678
14689
|
disabled = _ref.disabled,
|
|
@@ -14830,6 +14841,19 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
14830
14841
|
dataIndex: 'qty',
|
|
14831
14842
|
title: "\u6570\u91CF",
|
|
14832
14843
|
width: 100,
|
|
14844
|
+
validator: function validator(_rule, value) {
|
|
14845
|
+
var goodsName = '';
|
|
14846
|
+
if (((value === null || value === void 0 ? void 0 : value.gyReissueGoods) || []).some(function (goods) {
|
|
14847
|
+
var qty = toNum(goods === null || goods === void 0 ? void 0 : goods.qty);
|
|
14848
|
+
var res = typeof qty === 'number' ? qty < 1 : true;
|
|
14849
|
+
if (res) {
|
|
14850
|
+
goodsName = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
|
|
14851
|
+
}
|
|
14852
|
+
return res;
|
|
14853
|
+
})) {
|
|
14854
|
+
return Promise.reject("".concat(goodsName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
14855
|
+
}
|
|
14856
|
+
},
|
|
14833
14857
|
render: function render(val, record, index) {
|
|
14834
14858
|
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
14835
14859
|
style: {
|
|
@@ -14933,6 +14957,19 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
14933
14957
|
dataIndex: 'qty',
|
|
14934
14958
|
title: "\u6570\u91CF",
|
|
14935
14959
|
width: 100,
|
|
14960
|
+
validator: function validator(_rule, value) {
|
|
14961
|
+
var goodsName = '';
|
|
14962
|
+
if (((value === null || value === void 0 ? void 0 : value.gyReturnGoods) || []).some(function (goods) {
|
|
14963
|
+
var qty = toNum(goods === null || goods === void 0 ? void 0 : goods.qty);
|
|
14964
|
+
var res = typeof qty === 'number' ? qty < 1 : true;
|
|
14965
|
+
if (res) {
|
|
14966
|
+
goodsName = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
|
|
14967
|
+
}
|
|
14968
|
+
return res;
|
|
14969
|
+
})) {
|
|
14970
|
+
return Promise.reject("".concat(goodsName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
14971
|
+
}
|
|
14972
|
+
},
|
|
14936
14973
|
render: function render(val, record, index) {
|
|
14937
14974
|
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
14938
14975
|
style: {
|
|
@@ -15024,6 +15061,15 @@ var fillAttrs = function fillAttrs(item) {
|
|
|
15024
15061
|
if (!item.align) item.align = 'center';
|
|
15025
15062
|
return item;
|
|
15026
15063
|
};
|
|
15064
|
+
function toNum$1(value) {
|
|
15065
|
+
if (typeof value === 'string') {
|
|
15066
|
+
return value ? +value : void 0;
|
|
15067
|
+
}
|
|
15068
|
+
if (typeof value === 'number') {
|
|
15069
|
+
return value;
|
|
15070
|
+
}
|
|
15071
|
+
return void 0;
|
|
15072
|
+
}
|
|
15027
15073
|
var getColumns$5 = function getColumns() {
|
|
15028
15074
|
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
15029
15075
|
_ref$text = _ref.text,
|
|
@@ -15207,6 +15253,19 @@ var getColumns$5 = function getColumns() {
|
|
|
15207
15253
|
ellipsis: true,
|
|
15208
15254
|
align: 'center',
|
|
15209
15255
|
width: 120,
|
|
15256
|
+
validator: function validator(_rule, value) {
|
|
15257
|
+
var goodsName = '';
|
|
15258
|
+
if (((value === null || value === void 0 ? void 0 : value.jstReissueGoods) || []).some(function (goods) {
|
|
15259
|
+
var v = toNum$1(goods === null || goods === void 0 ? void 0 : goods.salePrice);
|
|
15260
|
+
var res = typeof v === 'number' ? v < 0 : true;
|
|
15261
|
+
if (res) {
|
|
15262
|
+
goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
|
|
15263
|
+
}
|
|
15264
|
+
return res;
|
|
15265
|
+
})) {
|
|
15266
|
+
return Promise.reject("".concat(goodsName, "\u5355\u4EF7\u4E3A\u5927\u4E8E\u7B49\u4E8E0\u7684\u6570"));
|
|
15267
|
+
}
|
|
15268
|
+
},
|
|
15210
15269
|
render: function render(val, record, index) {
|
|
15211
15270
|
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
15212
15271
|
style: {
|
|
@@ -15226,6 +15285,19 @@ var getColumns$5 = function getColumns() {
|
|
|
15226
15285
|
ellipsis: true,
|
|
15227
15286
|
align: 'center',
|
|
15228
15287
|
width: 100,
|
|
15288
|
+
validator: function validator(_rule, value) {
|
|
15289
|
+
var goodsName = '';
|
|
15290
|
+
if (((value === null || value === void 0 ? void 0 : value.jstReissueGoods) || []).some(function (goods) {
|
|
15291
|
+
var qty = toNum$1(goods === null || goods === void 0 ? void 0 : goods.qty);
|
|
15292
|
+
var res = typeof qty === 'number' ? qty < 1 : true;
|
|
15293
|
+
if (res) {
|
|
15294
|
+
goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
|
|
15295
|
+
}
|
|
15296
|
+
return res;
|
|
15297
|
+
})) {
|
|
15298
|
+
return Promise.reject("".concat(goodsName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
15299
|
+
}
|
|
15300
|
+
},
|
|
15229
15301
|
render: function render(val, record, index) {
|
|
15230
15302
|
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
15231
15303
|
style: {
|
|
@@ -15310,6 +15382,19 @@ var getColumns$5 = function getColumns() {
|
|
|
15310
15382
|
dataIndex: 'salePrice',
|
|
15311
15383
|
title: '单价',
|
|
15312
15384
|
width: 120,
|
|
15385
|
+
validator: function validator(_rule, value) {
|
|
15386
|
+
var goodsName = '';
|
|
15387
|
+
if (((value === null || value === void 0 ? void 0 : value.jstReturnGoods) || []).some(function (goods) {
|
|
15388
|
+
var v = toNum$1(goods === null || goods === void 0 ? void 0 : goods.salePrice);
|
|
15389
|
+
var res = typeof v === 'number' ? v < 0 : true;
|
|
15390
|
+
if (res) {
|
|
15391
|
+
goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
|
|
15392
|
+
}
|
|
15393
|
+
return res;
|
|
15394
|
+
})) {
|
|
15395
|
+
return Promise.reject("".concat(goodsName, "\u5355\u4EF7\u4E3A\u5927\u4E8E\u7B49\u4E8E0\u7684\u6570"));
|
|
15396
|
+
}
|
|
15397
|
+
},
|
|
15313
15398
|
render: function render(val, record, index) {
|
|
15314
15399
|
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
15315
15400
|
style: {
|
|
@@ -15327,6 +15412,19 @@ var getColumns$5 = function getColumns() {
|
|
|
15327
15412
|
dataIndex: 'qty',
|
|
15328
15413
|
title: '数量',
|
|
15329
15414
|
width: 100,
|
|
15415
|
+
validator: function validator(_rule, value) {
|
|
15416
|
+
var goodsName = '';
|
|
15417
|
+
if (((value === null || value === void 0 ? void 0 : value.jstReturnGoods) || []).some(function (goods) {
|
|
15418
|
+
var qty = toNum$1(goods === null || goods === void 0 ? void 0 : goods.qty);
|
|
15419
|
+
var res = typeof qty === 'number' ? qty < 1 : true;
|
|
15420
|
+
if (res) {
|
|
15421
|
+
goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
|
|
15422
|
+
}
|
|
15423
|
+
return res;
|
|
15424
|
+
})) {
|
|
15425
|
+
return Promise.reject("".concat(goodsName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
15426
|
+
}
|
|
15427
|
+
},
|
|
15330
15428
|
render: function render(val, record, index) {
|
|
15331
15429
|
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
15332
15430
|
style: {
|
|
@@ -15598,7 +15696,7 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
15598
15696
|
};
|
|
15599
15697
|
};
|
|
15600
15698
|
|
|
15601
|
-
var getColumnsMap = function getColumnsMap(args) {
|
|
15699
|
+
var getColumnsMap$1 = function getColumnsMap(args) {
|
|
15602
15700
|
var _ref = args || {},
|
|
15603
15701
|
_ref$text = _ref.text,
|
|
15604
15702
|
text = _ref$text === void 0 ? '' : _ref$text,
|
|
@@ -15638,20 +15736,22 @@ var getColumnsMap = function getColumnsMap(args) {
|
|
|
15638
15736
|
})['default']
|
|
15639
15737
|
});
|
|
15640
15738
|
};
|
|
15641
|
-
var
|
|
15642
|
-
|
|
15739
|
+
var erpColumnsMap = getColumnsMap$1();
|
|
15740
|
+
var getColumnsBaseInfo$1 = function getColumnsBaseInfo() {
|
|
15741
|
+
var clone_columnsMap = cloneDeep(getColumnsMap$1());
|
|
15643
15742
|
var newColumns = {};
|
|
15644
15743
|
Object.keys(clone_columnsMap).forEach(function (key) {
|
|
15645
15744
|
newColumns[key] = clone_columnsMap[key].map(function (col) {
|
|
15646
15745
|
return {
|
|
15647
15746
|
title: col.title,
|
|
15648
|
-
dataIndex: col.dataIndex
|
|
15747
|
+
dataIndex: col.dataIndex,
|
|
15748
|
+
disabled: !!col.validator
|
|
15649
15749
|
};
|
|
15650
15750
|
});
|
|
15651
15751
|
});
|
|
15652
15752
|
return newColumns;
|
|
15653
15753
|
};
|
|
15654
|
-
var columnsBaseInfoMap = getColumnsBaseInfo();
|
|
15754
|
+
var columnsBaseInfoMap = getColumnsBaseInfo$1();
|
|
15655
15755
|
|
|
15656
15756
|
var renderFieldMap$1 = {
|
|
15657
15757
|
goodsNumber: function goodsNumber(_ref) {
|
|
@@ -15718,7 +15818,7 @@ var getBsE3ReissueGoodColumns = function getBsE3ReissueGoodColumns(_ref4) {
|
|
|
15718
15818
|
var disabled = _ref4.disabled,
|
|
15719
15819
|
updateHandle = _ref4.updateHandle,
|
|
15720
15820
|
operate = _ref4.operate;
|
|
15721
|
-
return getColumnsMap()['BS_E3_REISSUE_GOODS'].map(function (item) {
|
|
15821
|
+
return getColumnsMap$1()['BS_E3_REISSUE_GOODS'].map(function (item) {
|
|
15722
15822
|
var newItem = _objectSpread2({
|
|
15723
15823
|
align: 'center',
|
|
15724
15824
|
ellipsis: true
|
|
@@ -15977,7 +16077,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
15977
16077
|
case 'GY_REISSUE_GOODS':
|
|
15978
16078
|
case 'GY_RETURN_GOODS':
|
|
15979
16079
|
{
|
|
15980
|
-
columns = getColumnsMap({
|
|
16080
|
+
columns = getColumnsMap$1({
|
|
15981
16081
|
text: text,
|
|
15982
16082
|
disabled: disabled || columnsOptions.disabled,
|
|
15983
16083
|
updateHandle: updateHandle,
|
|
@@ -16004,7 +16104,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
16004
16104
|
}
|
|
16005
16105
|
break;
|
|
16006
16106
|
default:
|
|
16007
|
-
columns = getColumnsMap({
|
|
16107
|
+
columns = getColumnsMap$1({
|
|
16008
16108
|
text: text,
|
|
16009
16109
|
disabled: disabled || columnsOptions.disabled,
|
|
16010
16110
|
updateHandle: updateHandle,
|
|
@@ -16027,16 +16127,18 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
16027
16127
|
var isObjectArray = Array.isArray(showHeader) && Object.prototype.toString.call(showHeader[0]) === '[object Object]';
|
|
16028
16128
|
if (isStringArray) {
|
|
16029
16129
|
baseInfoColumns = initBaseInfoColumns.filter(function (col) {
|
|
16030
|
-
return showHeader.includes(col.dataIndex);
|
|
16130
|
+
return showHeader.includes(col.dataIndex) || (col === null || col === void 0 ? void 0 : col.validator);
|
|
16031
16131
|
});
|
|
16032
16132
|
} else if (isObjectArray) {
|
|
16033
|
-
baseInfoColumns = showHeader.
|
|
16034
|
-
return col.show !== false;
|
|
16035
|
-
}).map(function (col) {
|
|
16133
|
+
baseInfoColumns = showHeader.map(function (col) {
|
|
16036
16134
|
var currentCol = initBaseInfoColumns.find(function (item) {
|
|
16037
16135
|
return item.dataIndex === col.dataIndex;
|
|
16038
16136
|
});
|
|
16039
|
-
|
|
16137
|
+
// 如果列应该显示(show不为false)或者有验证器,则返回对应的列配置
|
|
16138
|
+
if (currentCol && (col.show !== false || (currentCol === null || currentCol === void 0 ? void 0 : currentCol.validator))) {
|
|
16139
|
+
return currentCol;
|
|
16140
|
+
}
|
|
16141
|
+
return undefined;
|
|
16040
16142
|
}).filter(Boolean);
|
|
16041
16143
|
}
|
|
16042
16144
|
var columnList = [{
|
|
@@ -17141,7 +17243,7 @@ var rowKeyMap = {
|
|
|
17141
17243
|
GY_SYSTEM_ORDER: 'billNo',
|
|
17142
17244
|
JST_SYSTEM_ORDER: 'oId'
|
|
17143
17245
|
};
|
|
17144
|
-
var index$
|
|
17246
|
+
var index$3 = (function (props) {
|
|
17145
17247
|
var value = props.value,
|
|
17146
17248
|
_onChange = props.onChange,
|
|
17147
17249
|
disabled = props.disabled,
|
|
@@ -19146,7 +19248,7 @@ var Goods$1 = function Goods(props, ref) {
|
|
|
19146
19248
|
userNick: userNick
|
|
19147
19249
|
}));
|
|
19148
19250
|
};
|
|
19149
|
-
var index$
|
|
19251
|
+
var index$4 = /*#__PURE__*/forwardRef(Goods$1);
|
|
19150
19252
|
|
|
19151
19253
|
var _excluded$k = ["onChange", "value", "failValue"];
|
|
19152
19254
|
function CommonStatus(props) {
|
|
@@ -19407,7 +19509,7 @@ var MsgStatus = function MsgStatus(props) {
|
|
|
19407
19509
|
onClick: function onClick() {
|
|
19408
19510
|
return setChangeIndex(index);
|
|
19409
19511
|
}
|
|
19410
|
-
}, msgTypeCh[key], item.ruleName);
|
|
19512
|
+
}, msgTypeCh[key] || key, item.ruleName);
|
|
19411
19513
|
}))) : null, type === 1 ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Select, _objectSpread2(_objectSpread2({}, other), {}, {
|
|
19412
19514
|
showSearch: true,
|
|
19413
19515
|
value: (_value$changeIndex = value[changeIndex]) === null || _value$changeIndex === void 0 ? void 0 : _value$changeIndex.status,
|
|
@@ -20244,4 +20346,4 @@ var GyReturnGoods = function GyReturnGoods(props) {
|
|
|
20244
20346
|
})));
|
|
20245
20347
|
};
|
|
20246
20348
|
|
|
20247
|
-
export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, ApaasInput, ApaasInputNumber, ApaasLogistics, ApaasMultipleSelect, ApaasPosting, ApaasRadio, ApaasRate, ApaasSelect, ApaasSlider, ApaasTextArea, ApaasUpload, index as ApaasUploadAsync, ApaasUploadFile, index$1 as ApaasUploadProAsync, bsE3Reissue as BsE3Reissue, BsExchange, BsGoods, BsReissue, BsReturnGoods as BsReturn, index$
|
|
20349
|
+
export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, ApaasInput, ApaasInputNumber, ApaasLogistics, ApaasMultipleSelect, ApaasPosting, ApaasRadio, ApaasRate, ApaasSelect, ApaasSlider, ApaasTextArea, ApaasUpload, index as ApaasUploadAsync, ApaasUploadFile, index$1 as ApaasUploadProAsync, bsE3Reissue as BsE3Reissue, BsExchange, BsGoods, BsReissue, BsReturnGoods as BsReturn, index$3 as BsSystemOrder, BuyerNick, CalculationInput, ChooseBaby, CommonExchangeGoods, CommonGoods, CommonSystemOrder$1 as CommonMultiStatus, CommonReturnGoods, CommonStatus, CommonSystemOrder, CopyTextIcon, ExpressLogistics, Goods, index$4 as GoodsTable, GyReissue, GyReturnGoods as GyReturn, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, LogisticsInterception, LogisticsMoreInterception, LogisticsMoreTrajectory, LogisticsTrajectory, MsgStatus, ParseLogistics, Payment, PublicReissue, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, ShopNameSelect as ShopName, Status, SubForm, Supplier, TBGoodId, TBGoodSerial, TradeId, WdtGoodList, wdtReissue as WdtReissue, WlnGoods, columnsBaseInfoMap, erpColumnsMap, index$2 as erpModalColumnsMap, getColumns$4 as getGyColumns, getColumns$5 as getJstColumns, getColumns$2 as getWdtColumns, getColumns$3 as getWlnColumns };
|