@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/dist/index.js CHANGED
@@ -12203,53 +12203,145 @@ var GoodsModal$1 = function GoodsModal(props, ref) {
12203
12203
  };
12204
12204
  var GoodsModal$2 = /*#__PURE__*/React.forwardRef(GoodsModal$1);
12205
12205
 
12206
- var getTableData = function getTableData(_ref, formData) {
12207
- var _formData$brandIds;
12208
- var current = _ref.current,
12209
- pageSize = _ref.pageSize;
12210
- var data = {
12211
- brandIds: ((_formData$brandIds = formData.brandIds) === null || _formData$brandIds === void 0 ? void 0 : _formData$brandIds.length) ? formData.brandIds : null,
12212
- skuCode: formData.skuCode || null,
12213
- skuName: formData.skuName || null,
12214
- goodName: formData.goodName || null,
12215
- goodNo: formData.goodNo || null
12216
- };
12217
- return extendRequest('/qy/gdfw/product/product/page', {
12218
- method: 'post',
12219
- data: _objectSpread2({
12220
- pageSize: pageSize,
12221
- pageNo: current,
12222
- platform: 'WDT_ERP'
12223
- }, data)
12224
- }).then(function (res) {
12225
- var _res$data = res.data,
12226
- _res$data$productSkuL = _res$data.productSkuList,
12227
- productSkuList = _res$data$productSkuL === void 0 ? [] : _res$data$productSkuL,
12228
- _res$data$total = _res$data.total,
12229
- total = _res$data$total === void 0 ? 0 : _res$data$total;
12230
- var newProducts = productSkuList.map(function (item, index) {
12231
- return _objectSpread2(_objectSpread2({}, item), {}, {
12232
- index: index + 1
12233
- });
12234
- });
12235
- return {
12236
- total: total,
12237
- list: newProducts
12238
- };
12239
- });
12240
- };
12241
- var columns$1 = [{
12242
- dataIndex: 'index',
12243
- title: 'NO',
12244
- render: function render(val, record, index) {
12245
- return /*#__PURE__*/React__default['default'].createElement("div", {
12206
+ var gyColumns = [{
12207
+ dataIndex: 'specName',
12208
+ title: 'SKU名称',
12209
+ width: 250,
12210
+ ellipsis: true
12211
+ }, {
12212
+ dataIndex: 'specNo',
12213
+ title: 'SKU编码',
12214
+ width: 200,
12215
+ ellipsis: true
12216
+ }, {
12217
+ dataIndex: 'goodName',
12218
+ title: '商品名称',
12219
+ width: 250,
12220
+ ellipsis: true
12221
+ }, {
12222
+ dataIndex: 'goodShortName',
12223
+ title: "\u5546\u54C1\u7B80\u79F0",
12224
+ ellipsis: true,
12225
+ width: 250
12226
+ }, {
12227
+ dataIndex: 'goodNo',
12228
+ title: '商品编码',
12229
+ width: 200,
12230
+ ellipsis: true
12231
+ }, {
12232
+ dataIndex: 'goodPicUrl',
12233
+ title: '商品图片',
12234
+ width: 100,
12235
+ render: function render(picUrl) {
12236
+ return /*#__PURE__*/React__default['default'].createElement("img", {
12246
12237
  style: {
12247
- width: 25
12248
- }
12249
- }, index + 1);
12250
- },
12238
+ width: '40px',
12239
+ height: '40px',
12240
+ objectFit: 'contain'
12241
+ },
12242
+ src: picUrl
12243
+ });
12244
+ }
12245
+ }, {
12246
+ dataIndex: 'brandName',
12247
+ title: '品牌名称',
12248
+ width: 200,
12249
+ ellipsis: true
12250
+ }, {
12251
+ dataIndex: 'retailPrice',
12252
+ title: "\u6807\u51C6\u552E\u4EF7",
12253
+ ellipsis: true,
12254
+ width: 100
12255
+ }, {
12256
+ dataIndex: 'costPrice',
12257
+ title: "\u6210\u672C\u4EF7",
12258
+ ellipsis: true,
12251
12259
  width: 100
12260
+ }];
12261
+
12262
+ var jstColumns = [{
12263
+ dataIndex: 'goodName',
12264
+ title: '商品名称',
12265
+ width: 250,
12266
+ ellipsis: true
12267
+ }, {
12268
+ dataIndex: 'goodNo',
12269
+ title: '商品编码',
12270
+ width: 200,
12271
+ ellipsis: true
12252
12272
  }, {
12273
+ dataIndex: 'styleCode',
12274
+ title: '款式编码',
12275
+ width: 200,
12276
+ ellipsis: true
12277
+ }, {
12278
+ dataIndex: 'propertiesValue',
12279
+ title: '规格值',
12280
+ width: 200,
12281
+ ellipsis: true
12282
+ }, {
12283
+ dataIndex: 'goodPicUrl',
12284
+ title: '商品图片',
12285
+ width: 100,
12286
+ render: function render(picUrl) {
12287
+ return /*#__PURE__*/React__default['default'].createElement("img", {
12288
+ style: {
12289
+ width: '40px',
12290
+ height: '40px',
12291
+ objectFit: 'contain'
12292
+ },
12293
+ src: picUrl
12294
+ });
12295
+ }
12296
+ }, {
12297
+ dataIndex: 'goodShortName',
12298
+ title: "\u5546\u54C1\u7B80\u79F0",
12299
+ ellipsis: true,
12300
+ width: 250
12301
+ }, {
12302
+ dataIndex: 'brandName',
12303
+ title: '品牌名称',
12304
+ width: 200,
12305
+ ellipsis: true
12306
+ }, {
12307
+ dataIndex: 'retailPrice',
12308
+ title: "\u9500\u552E\u4EF7\u683C",
12309
+ ellipsis: true,
12310
+ width: 100,
12311
+ render: function render(price) {
12312
+ return price || price === 0 ? Number(price).toFixed(2) : '';
12313
+ }
12314
+ }, {
12315
+ dataIndex: 'marketPrice',
12316
+ title: "\u5E02\u573A\u4EF7",
12317
+ ellipsis: true,
12318
+ width: 100,
12319
+ render: function render(price) {
12320
+ return price || price === 0 ? Number(price).toFixed(2) : '';
12321
+ }
12322
+ }, {
12323
+ dataIndex: 'costPrice',
12324
+ title: "\u6210\u672C\u4EF7",
12325
+ ellipsis: true,
12326
+ width: 100,
12327
+ render: function render(price) {
12328
+ return price || price === 0 ? Number(price).toFixed(2) : '';
12329
+ }
12330
+ }, {
12331
+ dataIndex: 'skuType',
12332
+ title: "\u5546\u54C1\u7C7B\u578B",
12333
+ ellipsis: true,
12334
+ width: 100,
12335
+ render: function render() {
12336
+ var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'normal';
12337
+ return {
12338
+ combine: '组合装商品',
12339
+ normal: '普通商品'
12340
+ }[type] || type;
12341
+ }
12342
+ }];
12343
+
12344
+ var wdtColumns = [{
12253
12345
  dataIndex: 'specName',
12254
12346
  title: 'SKU名称',
12255
12347
  width: 250,
@@ -12320,6 +12412,323 @@ var columns$1 = [{
12320
12412
  return Number(price).toFixed(2);
12321
12413
  }
12322
12414
  }];
12415
+
12416
+ var bse3Columns = [{
12417
+ dataIndex: 'specNo',
12418
+ title: "SKU",
12419
+ ellipsis: true,
12420
+ width: 200
12421
+ }, {
12422
+ dataIndex: 'specId',
12423
+ title: "SKU ID",
12424
+ ellipsis: true,
12425
+ width: 80
12426
+ }, {
12427
+ dataIndex: 'goodName',
12428
+ title: "\u5546\u54C1\u540D\u79F0",
12429
+ ellipsis: true,
12430
+ width: 250
12431
+ }, {
12432
+ dataIndex: 'goodShortName',
12433
+ title: "\u5546\u54C1\u7B80\u79F0",
12434
+ ellipsis: true,
12435
+ width: 250
12436
+ },
12437
+ // {
12438
+ // dataIndex: 'goodPicUrl',
12439
+ // title: `商品图片`,
12440
+ // ellipsis: true,
12441
+ // width: 100,
12442
+ // render: (picUrl: string) => {
12443
+ // return (
12444
+ // <img
12445
+ // style={{
12446
+ // width: '40px',
12447
+ // height: '40px',
12448
+ // objectFit: 'contain',
12449
+ // }}
12450
+ // src={picUrl}
12451
+ // ></img>
12452
+ // );
12453
+ // },
12454
+ // },
12455
+ {
12456
+ dataIndex: 'goodNo',
12457
+ title: "\u8D27\u53F7",
12458
+ ellipsis: true,
12459
+ width: 150
12460
+ }, {
12461
+ dataIndex: 'goodId',
12462
+ title: "\u8D27\u53F7ID",
12463
+ ellipsis: true,
12464
+ width: 100
12465
+ }, {
12466
+ dataIndex: 'colorName',
12467
+ title: "\u989C\u8272\u540D\u79F0",
12468
+ ellipsis: true,
12469
+ width: 100
12470
+ }, {
12471
+ dataIndex: 'colorCode',
12472
+ title: "\u989C\u8272\u4EE3\u7801",
12473
+ ellipsis: true,
12474
+ width: 100
12475
+ }, {
12476
+ dataIndex: 'sizeName',
12477
+ title: "\u5C3A\u7801\u540D\u79F0",
12478
+ ellipsis: true,
12479
+ width: 100
12480
+ }, {
12481
+ dataIndex: 'sizeCode',
12482
+ title: "\u5C3A\u7801\u4EE3\u7801",
12483
+ ellipsis: true,
12484
+ width: 100
12485
+ }, {
12486
+ dataIndex: 'brandName',
12487
+ title: "\u54C1\u724C\u540D\u79F0",
12488
+ ellipsis: true,
12489
+ width: 100
12490
+ }, {
12491
+ dataIndex: 'marketPrice',
12492
+ title: "\u5E02\u573A\u4EF7",
12493
+ ellipsis: true,
12494
+ width: 100
12495
+ }, {
12496
+ dataIndex: 'retailPrice',
12497
+ title: "\u552E\u4EF7",
12498
+ ellipsis: true,
12499
+ width: 100
12500
+ }];
12501
+
12502
+ var getColumnsMap = function getColumnsMap() {
12503
+ return lodash.cloneDeep({
12504
+ gy: gyColumns,
12505
+ jst: jstColumns,
12506
+ wdt: wdtColumns,
12507
+ bse3: bse3Columns
12508
+ });
12509
+ };
12510
+ var getColumnsBaseInfo = function getColumnsBaseInfo() {
12511
+ var clone_columnsMap = lodash.cloneDeep(getColumnsMap());
12512
+ var newColumns = {};
12513
+ Object.keys(clone_columnsMap).forEach(function (key) {
12514
+ newColumns[key] = clone_columnsMap[key].map(function (col) {
12515
+ return {
12516
+ title: col.title,
12517
+ dataIndex: col.dataIndex
12518
+ };
12519
+ });
12520
+ });
12521
+ return newColumns;
12522
+ };
12523
+ var index$2 = getColumnsBaseInfo();
12524
+
12525
+ var initNo = {
12526
+ dataIndex: 'index',
12527
+ title: 'NO',
12528
+ render: function render(val, record, index) {
12529
+ return /*#__PURE__*/React__default['default'].createElement("div", {
12530
+ style: {
12531
+ width: 25
12532
+ }
12533
+ }, index + 1);
12534
+ },
12535
+ width: 80
12536
+ };
12537
+ var asyncGetData = function asyncGetData(type) {
12538
+ return extendRequest('/qy/condition/list', {
12539
+ method: 'get',
12540
+ params: {
12541
+ typeKey: "erp_select_modal_".concat(type),
12542
+ configScope: 'company' //按企业查询
12543
+ }
12544
+ }).then(function (res) {
12545
+ if (res && res.data && res.data[0] && res.data[0].queryInfo && res.data[0].queryInfo.length > 0) {
12546
+ return JSON.parse(res.data[0].queryInfo);
12547
+ } else {
12548
+ return getColumnsMap()[type];
12549
+ }
12550
+ });
12551
+ };
12552
+ var useGetColumns = (function (type) {
12553
+ var _useState = React.useState([]),
12554
+ _useState2 = _slicedToArray(_useState, 2),
12555
+ columns = _useState2[0],
12556
+ setColumns = _useState2[1];
12557
+ var _useState3 = React.useState(false),
12558
+ _useState4 = _slicedToArray(_useState3, 2),
12559
+ loading = _useState4[0],
12560
+ setLoading = _useState4[1];
12561
+ var showColumnsDataIndexList = React.useMemo(function () {
12562
+ return columns.filter(function (item) {
12563
+ return Object.hasOwn(item, 'dataIndex');
12564
+ }).map(function (item) {
12565
+ return item.dataIndex;
12566
+ });
12567
+ }, [columns]);
12568
+ React.useEffect(function () {
12569
+ _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
12570
+ var initColumns, requestSortColumns, list, initDataIndexList;
12571
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
12572
+ while (1) switch (_context.prev = _context.next) {
12573
+ case 0:
12574
+ initColumns = getColumnsMap()[type];
12575
+ setLoading(true);
12576
+ _context.next = 4;
12577
+ return asyncGetData(type);
12578
+ case 4:
12579
+ requestSortColumns = _context.sent;
12580
+ setLoading(false);
12581
+ list = [initNo];
12582
+ if (requestSortColumns && requestSortColumns.length > 0) {
12583
+ initDataIndexList = initColumns.map(function (item) {
12584
+ return item.dataIndex;
12585
+ });
12586
+ requestSortColumns.forEach(function (item) {
12587
+ var dataIndex = item.dataIndex,
12588
+ show = item.show;
12589
+ if (show !== false && initDataIndexList.includes(dataIndex)) {
12590
+ list.push(initColumns.find(function (item) {
12591
+ return item.dataIndex === dataIndex;
12592
+ }));
12593
+ }
12594
+ });
12595
+ }
12596
+ setColumns(list);
12597
+ case 9:
12598
+ case "end":
12599
+ return _context.stop();
12600
+ }
12601
+ }, _callee);
12602
+ }))();
12603
+ }, []);
12604
+ return [columns, showColumnsDataIndexList, loading];
12605
+ });
12606
+
12607
+ function SearchForm(_ref) {
12608
+ var searchFormData = _ref.searchFormData,
12609
+ form = _ref.form,
12610
+ showColumnsDataIndexList = _ref.showColumnsDataIndexList,
12611
+ submit = _ref.submit,
12612
+ reset = _ref.reset;
12613
+ var _useState = React.useState({}),
12614
+ _useState2 = _slicedToArray(_useState, 2),
12615
+ searchData = _useState2[0],
12616
+ setSearchData = _useState2[1];
12617
+ var submitForm = /*#__PURE__*/function () {
12618
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(submitBtnClickFlag) {
12619
+ var values;
12620
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
12621
+ while (1) switch (_context.prev = _context.next) {
12622
+ case 0:
12623
+ _context.next = 2;
12624
+ return form.getFieldsValue();
12625
+ case 2:
12626
+ values = _context.sent;
12627
+ if (submitBtnClickFlag || !lodash.isEqual(values, searchData)) {
12628
+ setSearchData(values);
12629
+ submit();
12630
+ }
12631
+ case 4:
12632
+ case "end":
12633
+ return _context.stop();
12634
+ }
12635
+ }, _callee);
12636
+ }));
12637
+ return function submitForm(_x) {
12638
+ return _ref2.apply(this, arguments);
12639
+ };
12640
+ }();
12641
+ return /*#__PURE__*/React__default['default'].createElement(antd.Form, {
12642
+ layout: "inline",
12643
+ form: form
12644
+ }, searchFormData.map(function (item) {
12645
+ var label = item.label,
12646
+ name = item.name,
12647
+ dataIndex = item.dataIndex,
12648
+ type = item.type,
12649
+ _item$formItemProps = item.formItemProps,
12650
+ formItemProps = _item$formItemProps === void 0 ? {} : _item$formItemProps;
12651
+ if (!showColumnsDataIndexList.includes(dataIndex || name)) return;
12652
+ return /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
12653
+ name: name,
12654
+ style: {
12655
+ marginBottom: '12px'
12656
+ }
12657
+ }, type === 'select' ? /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2({
12658
+ placeholder: label,
12659
+ showSearch: true,
12660
+ allowClear: true,
12661
+ style: {
12662
+ width: 150
12663
+ },
12664
+ onBlur: function onBlur() {
12665
+ return submitForm();
12666
+ }
12667
+ }, formItemProps)) : /*#__PURE__*/React__default['default'].createElement(antd.Input, _objectSpread2({
12668
+ placeholder: label,
12669
+ allowClear: true,
12670
+ style: {
12671
+ width: 150
12672
+ },
12673
+ onPressEnter: function onPressEnter() {
12674
+ return submitForm();
12675
+ },
12676
+ onBlur: function onBlur() {
12677
+ return submitForm();
12678
+ }
12679
+ }, formItemProps)));
12680
+ }), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
12681
+ style: {
12682
+ marginBottom: '12px'
12683
+ }
12684
+ }, /*#__PURE__*/React__default['default'].createElement(antd.Button, {
12685
+ type: "primary",
12686
+ style: {
12687
+ marginRight: '8px'
12688
+ },
12689
+ onClick: function onClick() {
12690
+ return submitForm(true);
12691
+ }
12692
+ }, "\u67E5\u8BE2"), /*#__PURE__*/React__default['default'].createElement(antd.Button, {
12693
+ onClick: reset
12694
+ }, "\u91CD\u7F6E")));
12695
+ }
12696
+
12697
+ var getTableData = function getTableData(_ref, formData) {
12698
+ var _formData$brandIds;
12699
+ var current = _ref.current,
12700
+ pageSize = _ref.pageSize;
12701
+ var data = {
12702
+ brandIds: ((_formData$brandIds = formData.brandIds) === null || _formData$brandIds === void 0 ? void 0 : _formData$brandIds.length) ? formData.brandIds : null,
12703
+ skuCode: formData.skuCode || null,
12704
+ skuName: formData.skuName || null,
12705
+ goodName: formData.goodName || null,
12706
+ goodNo: formData.goodNo || null
12707
+ };
12708
+ return extendRequest('/qy/gdfw/product/product/page', {
12709
+ method: 'post',
12710
+ data: _objectSpread2({
12711
+ pageSize: pageSize,
12712
+ pageNo: current,
12713
+ platform: 'WDT_ERP'
12714
+ }, data)
12715
+ }).then(function (res) {
12716
+ var _res$data = res.data,
12717
+ _res$data$productSkuL = _res$data.productSkuList,
12718
+ productSkuList = _res$data$productSkuL === void 0 ? [] : _res$data$productSkuL,
12719
+ _res$data$total = _res$data.total,
12720
+ total = _res$data$total === void 0 ? 0 : _res$data$total;
12721
+ var newProducts = productSkuList.map(function (item, index) {
12722
+ return _objectSpread2(_objectSpread2({}, item), {}, {
12723
+ index: index + 1
12724
+ });
12725
+ });
12726
+ return {
12727
+ total: total,
12728
+ list: newProducts
12729
+ };
12730
+ });
12731
+ };
12323
12732
  var GoodList = function GoodList(props, ref) {
12324
12733
  var _useState = React.useState([]),
12325
12734
  _useState2 = _slicedToArray(_useState, 2),
@@ -12333,6 +12742,11 @@ var GoodList = function GoodList(props, ref) {
12333
12742
  _useState6 = _slicedToArray(_useState5, 2),
12334
12743
  brandList = _useState6[0],
12335
12744
  setBrandList = _useState6[1];
12745
+ var _useGetColumns = useGetColumns('wdt'),
12746
+ _useGetColumns2 = _slicedToArray(_useGetColumns, 3),
12747
+ columns = _useGetColumns2[0],
12748
+ showColumnsDataIndexList = _useGetColumns2[1],
12749
+ loading = _useGetColumns2[2];
12336
12750
  React.useImperativeHandle(ref, function () {
12337
12751
  return {
12338
12752
  getSelectGoodList: function getSelectGoodList() {
@@ -12366,110 +12780,60 @@ var GoodList = function GoodList(props, ref) {
12366
12780
  }).then(function (res) {
12367
12781
  var _res$data2;
12368
12782
  if (res.success && (res === null || res === void 0 ? void 0 : (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.detailList)) {
12369
- var _res$data3, _res$data4;
12370
- 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) || []));
12371
- if ((res === null || res === void 0 ? void 0 : (_res$data4 = res.data) === null || _res$data4 === void 0 ? void 0 : _res$data4.detailList.length) === pageSize) {
12372
- pageNo += 1;
12373
- getMore();
12374
- } else {
12375
- setBrandList(list);
12376
- }
12377
- } else {
12378
- lodash.reject(res);
12379
- }
12380
- }).catch(console.error);
12381
- };
12382
- getMore();
12383
- };
12384
- React__default['default'].useEffect(function () {
12385
- setGoodBrandList();
12386
- }, []);
12387
- var advanceSearchForm = /*#__PURE__*/React__default['default'].createElement(antd.Form, {
12388
- layout: "inline",
12389
- form: form
12390
- }, /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
12391
- name: "skuName",
12392
- style: {
12393
- marginBottom: '12px'
12394
- }
12395
- }, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
12396
- placeholder: "SKU\u540D\u79F0",
12397
- allowClear: true,
12398
- style: {
12399
- width: 150
12400
- }
12401
- })), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
12402
- name: "skuCode",
12403
- style: {
12404
- marginBottom: '12px'
12405
- }
12406
- }, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
12407
- placeholder: "SKU\u7F16\u7801",
12408
- allowClear: true,
12409
- style: {
12410
- width: 150
12411
- }
12412
- })), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
12413
- name: "goodName",
12414
- style: {
12415
- marginBottom: '12px'
12416
- }
12417
- }, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
12418
- placeholder: "\u5546\u54C1\u540D\u79F0",
12419
- allowClear: true,
12420
- style: {
12421
- width: 150
12422
- }
12423
- })), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
12424
- name: "goodNo",
12425
- style: {
12426
- marginBottom: '12px'
12427
- }
12428
- }, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
12429
- placeholder: "\u5546\u54C1\u7F16\u7801",
12430
- allowClear: true,
12431
- style: {
12432
- width: 150
12433
- }
12434
- })), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
12435
- name: "brandIds",
12436
- style: {
12437
- marginBottom: '12px'
12438
- }
12439
- }, /*#__PURE__*/React__default['default'].createElement(antd.Select, {
12440
- mode: "multiple",
12441
- showSearch: true,
12442
- allowClear: true,
12443
- filterOption: function filterOption(input, option) {
12444
- return option.label.includes(input);
12445
- },
12446
- style: {
12447
- width: 150
12448
- },
12449
- placeholder: "\u54C1\u724C",
12450
- options: brandList.filter(function (item) {
12451
- return !item.isDisabled;
12452
- }).map(function (_ref2) {
12453
- var value = _ref2.brandId,
12454
- label = _ref2.brandName;
12455
- return {
12456
- value: value,
12457
- label: label
12458
- };
12459
- })
12460
- })), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
12461
- style: {
12462
- marginBottom: '12px'
12783
+ var _res$data3, _res$data4;
12784
+ 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) || []));
12785
+ if ((res === null || res === void 0 ? void 0 : (_res$data4 = res.data) === null || _res$data4 === void 0 ? void 0 : _res$data4.detailList.length) === pageSize) {
12786
+ pageNo += 1;
12787
+ getMore();
12788
+ } else {
12789
+ setBrandList(list);
12790
+ }
12791
+ } else {
12792
+ lodash.reject(res);
12793
+ }
12794
+ }).catch(console.error);
12795
+ };
12796
+ getMore();
12797
+ };
12798
+ React__default['default'].useEffect(function () {
12799
+ setGoodBrandList();
12800
+ }, []);
12801
+ var searchFormData = [{
12802
+ label: 'SKU名称',
12803
+ name: 'skuName',
12804
+ dataIndex: 'specName'
12805
+ }, {
12806
+ label: 'SKU编码',
12807
+ name: 'skuCode',
12808
+ dataIndex: 'specNo'
12809
+ }, {
12810
+ label: '商品名称',
12811
+ name: 'goodName'
12812
+ }, {
12813
+ label: '商品编码',
12814
+ name: 'goodNo'
12815
+ }, {
12816
+ label: '品牌',
12817
+ name: 'brandIds',
12818
+ dataIndex: 'brandName',
12819
+ type: 'select',
12820
+ formItemProps: {
12821
+ mode: 'multiple',
12822
+ filterOption: function filterOption(input, option) {
12823
+ return option.label.includes(input);
12824
+ },
12825
+ options: brandList.filter(function (item) {
12826
+ return !item.isDisabled;
12827
+ }).map(function (_ref2) {
12828
+ var value = _ref2.brandId,
12829
+ label = _ref2.brandName;
12830
+ return {
12831
+ value: value,
12832
+ label: label
12833
+ };
12834
+ })
12463
12835
  }
12464
- }, /*#__PURE__*/React__default['default'].createElement(antd.Button, {
12465
- type: "primary",
12466
- style: {
12467
- marginRight: '8px'
12468
- },
12469
- onClick: submit
12470
- }, "\u67E5\u8BE2"), /*#__PURE__*/React__default['default'].createElement(antd.Button, {
12471
- onClick: reset
12472
- }, "\u91CD\u7F6E")));
12836
+ }];
12473
12837
  var rowSelection = {
12474
12838
  selectedRowKeys: selectIds,
12475
12839
  fixed: true,
@@ -12525,7 +12889,7 @@ var GoodList = function GoodList(props, ref) {
12525
12889
  }
12526
12890
  }, "\u5220\u9664");
12527
12891
  }
12528
- }].concat(lodash.takeRight(columns$1, columns$1.length - 1));
12892
+ }].concat(lodash.takeRight(columns, columns.length - 1));
12529
12893
  return selectList.length ? /*#__PURE__*/React__default['default'].createElement("div", {
12530
12894
  style: {
12531
12895
  width: '100%',
@@ -12547,14 +12911,23 @@ var GoodList = function GoodList(props, ref) {
12547
12911
  }
12548
12912
  })) : null;
12549
12913
  };
12550
- return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, advanceSearchForm, /*#__PURE__*/React__default['default'].createElement("div", {
12914
+ return /*#__PURE__*/React__default['default'].createElement(antd.Skeleton, {
12915
+ active: true,
12916
+ loading: loading
12917
+ }, /*#__PURE__*/React__default['default'].createElement(SearchForm, {
12918
+ searchFormData: searchFormData,
12919
+ form: form,
12920
+ showColumnsDataIndexList: showColumnsDataIndexList,
12921
+ submit: submit,
12922
+ reset: reset
12923
+ }), /*#__PURE__*/React__default['default'].createElement("div", {
12551
12924
  style: {
12552
12925
  marginTop: '4px'
12553
12926
  }
12554
12927
  }, /*#__PURE__*/React__default['default'].createElement(antd.Table, _objectSpread2({
12555
12928
  rowSelection: rowSelection,
12556
12929
  rowKey: "specNo",
12557
- columns: columns$1,
12930
+ columns: columns,
12558
12931
  scroll: {
12559
12932
  x: '100%',
12560
12933
  y: 250
@@ -12638,97 +13011,15 @@ var getTableData$1 = function getTableData(_ref, formData) {
12638
13011
  };
12639
13012
  });
12640
13013
  };
12641
- var columns$2 = [{
12642
- dataIndex: 'index',
12643
- title: 'NO',
12644
- render: function render(val, record, index) {
12645
- return /*#__PURE__*/React__default['default'].createElement("div", {
12646
- style: {
12647
- width: 25
12648
- }
12649
- }, index + 1);
12650
- },
12651
- width: 80
12652
- }, {
12653
- dataIndex: 'goodName',
12654
- title: '商品名称',
12655
- width: 250,
12656
- ellipsis: true
12657
- }, {
12658
- dataIndex: 'goodNo',
12659
- title: '商品编码',
12660
- width: 200,
12661
- ellipsis: true
12662
- }, {
12663
- dataIndex: 'styleCode',
12664
- title: '款式编码',
12665
- width: 200,
12666
- ellipsis: true
13014
+ var searchFormData = [{
13015
+ label: '商品名称',
13016
+ name: 'goodName'
12667
13017
  }, {
12668
- dataIndex: 'propertiesValue',
12669
- title: '规格值',
12670
- width: 200,
12671
- ellipsis: true
12672
- }, {
12673
- dataIndex: 'goodPicUrl',
12674
- title: '商品图片',
12675
- width: 100,
12676
- render: function render(picUrl) {
12677
- return /*#__PURE__*/React__default['default'].createElement("img", {
12678
- style: {
12679
- width: '40px',
12680
- height: '40px',
12681
- objectFit: 'contain'
12682
- },
12683
- src: picUrl
12684
- });
12685
- }
12686
- }, {
12687
- dataIndex: 'goodShortName',
12688
- title: "\u5546\u54C1\u7B80\u79F0",
12689
- ellipsis: true,
12690
- width: 250
12691
- }, {
12692
- dataIndex: 'brandName',
12693
- title: '品牌名称',
12694
- width: 200,
12695
- ellipsis: true
12696
- }, {
12697
- dataIndex: 'retailPrice',
12698
- title: "\u9500\u552E\u4EF7\u683C",
12699
- ellipsis: true,
12700
- width: 100,
12701
- render: function render(price) {
12702
- return price || price === 0 ? Number(price).toFixed(2) : '';
12703
- }
12704
- }, {
12705
- dataIndex: 'marketPrice',
12706
- title: "\u5E02\u573A\u4EF7",
12707
- ellipsis: true,
12708
- width: 100,
12709
- render: function render(price) {
12710
- return price || price === 0 ? Number(price).toFixed(2) : '';
12711
- }
12712
- }, {
12713
- dataIndex: 'costPrice',
12714
- title: "\u6210\u672C\u4EF7",
12715
- ellipsis: true,
12716
- width: 100,
12717
- render: function render(price) {
12718
- return price || price === 0 ? Number(price).toFixed(2) : '';
12719
- }
13018
+ label: '商品编码',
13019
+ name: 'goodNo'
12720
13020
  }, {
12721
- dataIndex: 'skuType',
12722
- title: "\u5546\u54C1\u7C7B\u578B",
12723
- ellipsis: true,
12724
- width: 100,
12725
- render: function render() {
12726
- var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'normal';
12727
- return {
12728
- 'combine': '组合装商品',
12729
- 'normal': '普通商品'
12730
- }[type] || type;
12731
- }
13021
+ label: '款式编码',
13022
+ name: 'styleCode'
12732
13023
  }];
12733
13024
  var GoodList$1 = function GoodList(props, ref) {
12734
13025
  var _useState = React.useState([]),
@@ -12739,6 +13030,11 @@ var GoodList$1 = function GoodList(props, ref) {
12739
13030
  _useState4 = _slicedToArray(_useState3, 2),
12740
13031
  selectIds = _useState4[0],
12741
13032
  setSelectIds = _useState4[1];
13033
+ var _useGetColumns = useGetColumns('jst'),
13034
+ _useGetColumns2 = _slicedToArray(_useGetColumns, 3),
13035
+ columns = _useGetColumns2[0],
13036
+ showColumnsDataIndexList = _useGetColumns2[1],
13037
+ loading = _useGetColumns2[2];
12742
13038
  React.useImperativeHandle(ref, function () {
12743
13039
  return {
12744
13040
  getSelectGoodList: function getSelectGoodList() {
@@ -12758,55 +13054,6 @@ var GoodList$1 = function GoodList(props, ref) {
12758
13054
  params = _useAntdTable.params;
12759
13055
  var submit = search.submit,
12760
13056
  reset = search.reset;
12761
- var advanceSearchForm = /*#__PURE__*/React__default['default'].createElement(antd.Form, {
12762
- layout: "inline",
12763
- form: form
12764
- }, /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
12765
- name: "goodName",
12766
- style: {
12767
- marginBottom: '12px'
12768
- }
12769
- }, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
12770
- placeholder: "\u5546\u54C1\u540D\u79F0",
12771
- allowClear: true,
12772
- style: {
12773
- width: 150
12774
- }
12775
- })), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
12776
- name: "goodNo",
12777
- style: {
12778
- marginBottom: '12px'
12779
- }
12780
- }, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
12781
- placeholder: "\u5546\u54C1\u7F16\u7801",
12782
- allowClear: true,
12783
- style: {
12784
- width: 150
12785
- }
12786
- })), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
12787
- name: "styleCode",
12788
- style: {
12789
- marginBottom: '12px'
12790
- }
12791
- }, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
12792
- placeholder: "\u6B3E\u5F0F\u7F16\u7801",
12793
- allowClear: true,
12794
- style: {
12795
- width: 150
12796
- }
12797
- })), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
12798
- style: {
12799
- marginBottom: '12px'
12800
- }
12801
- }, /*#__PURE__*/React__default['default'].createElement(antd.Button, {
12802
- type: "primary",
12803
- style: {
12804
- marginRight: '8px'
12805
- },
12806
- onClick: submit
12807
- }, "\u67E5\u8BE2"), /*#__PURE__*/React__default['default'].createElement(antd.Button, {
12808
- onClick: reset
12809
- }, "\u91CD\u7F6E")));
12810
13057
  var rowSelection = {
12811
13058
  selectedRowKeys: selectIds,
12812
13059
  fixed: true,
@@ -12871,7 +13118,7 @@ var GoodList$1 = function GoodList(props, ref) {
12871
13118
  }
12872
13119
  }, "\u5220\u9664");
12873
13120
  }
12874
- }].concat(lodash.takeRight(columns$2, columns$2.length - 1));
13121
+ }].concat(lodash.takeRight(columns, columns.length - 1));
12875
13122
  return selectList.length ? /*#__PURE__*/React__default['default'].createElement("div", {
12876
13123
  style: {
12877
13124
  width: '100%',
@@ -12893,14 +13140,23 @@ var GoodList$1 = function GoodList(props, ref) {
12893
13140
  }
12894
13141
  })) : null;
12895
13142
  };
12896
- return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, advanceSearchForm, /*#__PURE__*/React__default['default'].createElement("div", {
13143
+ return /*#__PURE__*/React__default['default'].createElement(antd.Skeleton, {
13144
+ active: true,
13145
+ loading: loading
13146
+ }, /*#__PURE__*/React__default['default'].createElement(SearchForm, {
13147
+ searchFormData: searchFormData,
13148
+ form: form,
13149
+ showColumnsDataIndexList: showColumnsDataIndexList,
13150
+ submit: submit,
13151
+ reset: reset
13152
+ }), /*#__PURE__*/React__default['default'].createElement("div", {
12897
13153
  style: {
12898
13154
  marginTop: '4px'
12899
13155
  }
12900
13156
  }, /*#__PURE__*/React__default['default'].createElement(antd.Table, _objectSpread2({
12901
13157
  rowSelection: rowSelection,
12902
13158
  rowKey: "goodNo",
12903
- columns: columns$2,
13159
+ columns: columns,
12904
13160
  scroll: {
12905
13161
  x: '100%',
12906
13162
  y: 250
@@ -12970,6 +13226,7 @@ var getTableData$2 = function getTableData(_ref, formData) {
12970
13226
  var current = _ref.current,
12971
13227
  pageSize = _ref.pageSize;
12972
13228
  var data = {
13229
+ goodShortName: formData.goodShortName || null,
12973
13230
  goodNo: formData.goodNo || null,
12974
13231
  goodName: formData.goodName || null,
12975
13232
  skuCode: formData.skuCode || null,
@@ -12993,107 +13250,26 @@ var getTableData$2 = function getTableData(_ref, formData) {
12993
13250
  index: index + 1
12994
13251
  });
12995
13252
  });
12996
- return {
12997
- total: total,
12998
- list: newProducts
12999
- };
13000
- });
13001
- };
13002
- var columns$3 = [{
13003
- dataIndex: 'index',
13004
- title: 'NO',
13005
- render: function render(val, record, index) {
13006
- return /*#__PURE__*/React__default['default'].createElement("div", {
13007
- style: {
13008
- width: 25
13009
- }
13010
- }, index + 1);
13011
- },
13012
- width: 80
13013
- }, {
13014
- dataIndex: 'specNo',
13015
- title: "SKU",
13016
- ellipsis: true,
13017
- width: 200
13018
- }, {
13019
- dataIndex: 'specId',
13020
- title: "SKU ID",
13021
- ellipsis: true,
13022
- width: 80
13023
- }, {
13024
- dataIndex: 'goodName',
13025
- title: "\u5546\u54C1\u540D\u79F0",
13026
- ellipsis: true,
13027
- width: 250
13028
- }, {
13029
- dataIndex: 'goodShortName',
13030
- title: "\u5546\u54C1\u7B80\u79F0",
13031
- ellipsis: true,
13032
- width: 250
13033
- },
13034
- // {
13035
- // dataIndex: 'goodPicUrl',
13036
- // title: `商品图片`,
13037
- // ellipsis: true,
13038
- // width: 100,
13039
- // render: (picUrl: string) => {
13040
- // return (
13041
- // <img
13042
- // style={{
13043
- // width: '40px',
13044
- // height: '40px',
13045
- // objectFit: 'contain',
13046
- // }}
13047
- // src={picUrl}
13048
- // ></img>
13049
- // );
13050
- // },
13051
- // },
13052
- {
13053
- dataIndex: 'goodNo',
13054
- title: "\u8D27\u53F7",
13055
- ellipsis: true,
13056
- width: 150
13057
- }, {
13058
- dataIndex: 'goodId',
13059
- title: "\u8D27\u53F7ID",
13060
- ellipsis: true,
13061
- width: 100
13062
- }, {
13063
- dataIndex: 'colorName',
13064
- title: "\u989C\u8272\u540D\u79F0",
13065
- ellipsis: true,
13066
- width: 100
13067
- }, {
13068
- dataIndex: 'colorCode',
13069
- title: "\u989C\u8272\u4EE3\u7801",
13070
- ellipsis: true,
13071
- width: 100
13072
- }, {
13073
- dataIndex: 'sizeName',
13074
- title: "\u5C3A\u7801\u540D\u79F0",
13075
- ellipsis: true,
13076
- width: 100
13077
- }, {
13078
- dataIndex: 'sizeCode',
13079
- title: "\u5C3A\u7801\u4EE3\u7801",
13080
- ellipsis: true,
13081
- width: 100
13253
+ return {
13254
+ total: total,
13255
+ list: newProducts
13256
+ };
13257
+ });
13258
+ };
13259
+ var searchFormData$1 = [{
13260
+ label: '商品货号',
13261
+ name: 'goodNo'
13082
13262
  }, {
13083
- dataIndex: 'brandName',
13084
- title: "\u54C1\u724C\u540D\u79F0",
13085
- ellipsis: true,
13086
- width: 100
13263
+ label: '商品名称',
13264
+ name: 'goodName'
13087
13265
  }, {
13088
- dataIndex: 'marketPrice',
13089
- title: "\u5E02\u573A\u4EF7",
13090
- ellipsis: true,
13091
- width: 100
13266
+ label: 'SKU',
13267
+ name: 'skuCode',
13268
+ dataIndex: 'specNo'
13092
13269
  }, {
13093
- dataIndex: 'retailPrice',
13094
- title: "\u552E\u4EF7",
13095
- ellipsis: true,
13096
- width: 100
13270
+ label: 'SKU ID',
13271
+ name: 'skuId',
13272
+ dataIndex: 'specId'
13097
13273
  }];
13098
13274
  var GoodList$2 = function GoodList(props, ref) {
13099
13275
  var _useState = React.useState([]),
@@ -13104,6 +13280,11 @@ var GoodList$2 = function GoodList(props, ref) {
13104
13280
  _useState4 = _slicedToArray(_useState3, 2),
13105
13281
  selectIds = _useState4[0],
13106
13282
  setSelectIds = _useState4[1];
13283
+ var _useGetColumns = useGetColumns('bse3'),
13284
+ _useGetColumns2 = _slicedToArray(_useGetColumns, 3),
13285
+ columns = _useGetColumns2[0],
13286
+ showColumnsDataIndexList = _useGetColumns2[1],
13287
+ loading = _useGetColumns2[2];
13107
13288
  React.useImperativeHandle(ref, function () {
13108
13289
  return {
13109
13290
  getSelectGoodList: function getSelectGoodList() {
@@ -13123,66 +13304,6 @@ var GoodList$2 = function GoodList(props, ref) {
13123
13304
  params = _useAntdTable.params;
13124
13305
  var submit = search.submit,
13125
13306
  reset = search.reset;
13126
- var advanceSearchForm = /*#__PURE__*/React__default['default'].createElement(antd.Form, {
13127
- layout: "inline",
13128
- form: form
13129
- }, /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
13130
- name: "goodNo",
13131
- style: {
13132
- marginBottom: '12px'
13133
- }
13134
- }, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
13135
- placeholder: "\u5546\u54C1\u8D27\u53F7",
13136
- allowClear: true,
13137
- style: {
13138
- width: 150
13139
- }
13140
- })), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
13141
- name: "goodName",
13142
- style: {
13143
- marginBottom: '12px'
13144
- }
13145
- }, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
13146
- placeholder: "\u5546\u54C1\u540D\u79F0",
13147
- allowClear: true,
13148
- style: {
13149
- width: 150
13150
- }
13151
- })), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
13152
- name: "skuCode",
13153
- style: {
13154
- marginBottom: '12px'
13155
- }
13156
- }, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
13157
- placeholder: "SKU",
13158
- allowClear: true,
13159
- style: {
13160
- width: 150
13161
- }
13162
- })), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
13163
- name: "skuId",
13164
- style: {
13165
- marginBottom: '12px'
13166
- }
13167
- }, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
13168
- placeholder: "SKU ID",
13169
- allowClear: true,
13170
- style: {
13171
- width: 150
13172
- }
13173
- })), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
13174
- style: {
13175
- marginBottom: '12px'
13176
- }
13177
- }, /*#__PURE__*/React__default['default'].createElement(antd.Button, {
13178
- type: "primary",
13179
- style: {
13180
- marginRight: '8px'
13181
- },
13182
- onClick: submit
13183
- }, "\u67E5\u8BE2"), /*#__PURE__*/React__default['default'].createElement(antd.Button, {
13184
- onClick: reset
13185
- }, "\u91CD\u7F6E")));
13186
13307
  var rowSelection = {
13187
13308
  selectedRowKeys: selectIds,
13188
13309
  fixed: true,
@@ -13238,7 +13359,7 @@ var GoodList$2 = function GoodList(props, ref) {
13238
13359
  }
13239
13360
  }, "\u5220\u9664");
13240
13361
  }
13241
- }].concat(lodash.takeRight(columns$3, columns$3.length - 1));
13362
+ }].concat(lodash.takeRight(columns, columns.length - 1));
13242
13363
  return selectList.length ? /*#__PURE__*/React__default['default'].createElement("div", {
13243
13364
  style: {
13244
13365
  width: '100%',
@@ -13260,14 +13381,23 @@ var GoodList$2 = function GoodList(props, ref) {
13260
13381
  }
13261
13382
  })) : null;
13262
13383
  };
13263
- return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, advanceSearchForm, /*#__PURE__*/React__default['default'].createElement("div", {
13384
+ return /*#__PURE__*/React__default['default'].createElement(antd.Skeleton, {
13385
+ active: true,
13386
+ loading: loading
13387
+ }, /*#__PURE__*/React__default['default'].createElement(SearchForm, {
13388
+ searchFormData: searchFormData$1,
13389
+ form: form,
13390
+ showColumnsDataIndexList: showColumnsDataIndexList,
13391
+ submit: submit,
13392
+ reset: reset
13393
+ }), /*#__PURE__*/React__default['default'].createElement("div", {
13264
13394
  style: {
13265
13395
  marginTop: '4px'
13266
13396
  }
13267
13397
  }, /*#__PURE__*/React__default['default'].createElement(antd.Table, _objectSpread2({
13268
13398
  rowSelection: rowSelection,
13269
13399
  rowKey: "specNo",
13270
- columns: columns$3,
13400
+ columns: columns,
13271
13401
  scroll: {
13272
13402
  x: '100%',
13273
13403
  y: 250
@@ -13358,71 +13488,23 @@ var getTableData$3 = function getTableData(_ref, formData) {
13358
13488
  };
13359
13489
  });
13360
13490
  };
13361
- var columns$4 = [{
13362
- dataIndex: 'index',
13363
- title: 'NO',
13364
- render: function render(val, record, index) {
13365
- return /*#__PURE__*/React__default['default'].createElement("div", {
13366
- style: {
13367
- width: 25
13368
- }
13369
- }, index + 1);
13370
- },
13371
- width: 80
13372
- }, {
13373
- dataIndex: 'specName',
13374
- title: 'SKU名称',
13375
- width: 250,
13376
- ellipsis: true
13377
- }, {
13378
- dataIndex: 'specNo',
13379
- title: 'SKU编码',
13380
- width: 200,
13381
- ellipsis: true
13382
- }, {
13383
- dataIndex: 'goodName',
13384
- title: '商品名称',
13385
- width: 250,
13386
- ellipsis: true
13491
+ var searchFormData$2 = [{
13492
+ label: '商品简称',
13493
+ name: 'goodShortName'
13387
13494
  }, {
13388
- dataIndex: 'goodShortName',
13389
- title: "\u5546\u54C1\u7B80\u79F0",
13390
- ellipsis: true,
13391
- width: 250
13392
- }, {
13393
- dataIndex: 'goodNo',
13394
- title: '商品编码',
13395
- width: 200,
13396
- ellipsis: true
13397
- }, {
13398
- dataIndex: 'goodPicUrl',
13399
- title: '商品图片',
13400
- width: 100,
13401
- render: function render(picUrl) {
13402
- return /*#__PURE__*/React__default['default'].createElement("img", {
13403
- style: {
13404
- width: '40px',
13405
- height: '40px',
13406
- objectFit: 'contain'
13407
- },
13408
- src: picUrl
13409
- });
13410
- }
13495
+ label: '商品sku名称',
13496
+ name: 'skuName',
13497
+ dataIndex: 'specName'
13411
13498
  }, {
13412
- dataIndex: 'brandName',
13413
- title: '品牌名称',
13414
- width: 200,
13415
- ellipsis: true
13499
+ label: '商品sku编码',
13500
+ name: 'skuCode',
13501
+ dataIndex: 'specNo'
13416
13502
  }, {
13417
- dataIndex: 'retailPrice',
13418
- title: "\u6807\u51C6\u552E\u4EF7",
13419
- ellipsis: true,
13420
- width: 100
13503
+ label: '商品名称',
13504
+ name: 'goodName'
13421
13505
  }, {
13422
- dataIndex: 'costPrice',
13423
- title: "\u6210\u672C\u4EF7",
13424
- ellipsis: true,
13425
- width: 100
13506
+ label: '商品编码',
13507
+ name: 'goodNo'
13426
13508
  }];
13427
13509
  var GoodList$3 = function GoodList(props, ref) {
13428
13510
  var _useState = React.useState([]),
@@ -13433,6 +13515,11 @@ var GoodList$3 = function GoodList(props, ref) {
13433
13515
  _useState4 = _slicedToArray(_useState3, 2),
13434
13516
  selectIds = _useState4[0],
13435
13517
  setSelectIds = _useState4[1];
13518
+ var _useGetColumns = useGetColumns('gy'),
13519
+ _useGetColumns2 = _slicedToArray(_useGetColumns, 3),
13520
+ columns = _useGetColumns2[0],
13521
+ showColumnsDataIndexList = _useGetColumns2[1],
13522
+ loading = _useGetColumns2[2];
13436
13523
  React.useImperativeHandle(ref, function () {
13437
13524
  return {
13438
13525
  getSelectGoodList: function getSelectGoodList() {
@@ -13452,77 +13539,6 @@ var GoodList$3 = function GoodList(props, ref) {
13452
13539
  params = _useAntdTable.params;
13453
13540
  var submit = search.submit,
13454
13541
  reset = search.reset;
13455
- var advanceSearchForm = /*#__PURE__*/React__default['default'].createElement(antd.Form, {
13456
- layout: "inline",
13457
- form: form
13458
- }, /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
13459
- name: "goodShortName",
13460
- style: {
13461
- marginBottom: '12px'
13462
- }
13463
- }, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
13464
- placeholder: "\u5546\u54C1\u7B80\u79F0",
13465
- allowClear: true,
13466
- style: {
13467
- width: 150
13468
- }
13469
- })), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
13470
- name: "skuName",
13471
- style: {
13472
- marginBottom: '12px'
13473
- }
13474
- }, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
13475
- placeholder: "\u5546\u54C1sku\u540D\u79F0",
13476
- allowClear: true,
13477
- style: {
13478
- width: 150
13479
- }
13480
- })), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
13481
- name: "skuCode",
13482
- style: {
13483
- marginBottom: '12px'
13484
- }
13485
- }, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
13486
- placeholder: "\u5546\u54C1sku\u7F16\u7801",
13487
- allowClear: true,
13488
- style: {
13489
- width: 150
13490
- }
13491
- })), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
13492
- name: "goodName",
13493
- style: {
13494
- marginBottom: '12px'
13495
- }
13496
- }, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
13497
- placeholder: "\u5546\u54C1\u540D\u79F0",
13498
- allowClear: true,
13499
- style: {
13500
- width: 150
13501
- }
13502
- })), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
13503
- name: "goodNo",
13504
- style: {
13505
- marginBottom: '12px'
13506
- }
13507
- }, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
13508
- placeholder: "\u5546\u54C1\u7F16\u7801",
13509
- allowClear: true,
13510
- style: {
13511
- width: 150
13512
- }
13513
- })), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
13514
- style: {
13515
- marginBottom: '12px'
13516
- }
13517
- }, /*#__PURE__*/React__default['default'].createElement(antd.Button, {
13518
- type: "primary",
13519
- style: {
13520
- marginRight: '8px'
13521
- },
13522
- onClick: submit
13523
- }, "\u67E5\u8BE2"), /*#__PURE__*/React__default['default'].createElement(antd.Button, {
13524
- onClick: reset
13525
- }, "\u91CD\u7F6E")));
13526
13542
  var rowSelection = {
13527
13543
  selectedRowKeys: selectIds,
13528
13544
  fixed: true,
@@ -13578,7 +13594,7 @@ var GoodList$3 = function GoodList(props, ref) {
13578
13594
  }
13579
13595
  }, "\u5220\u9664");
13580
13596
  }
13581
- }].concat(lodash.takeRight(columns$4, columns$4.length - 1));
13597
+ }].concat(lodash.takeRight(columns, columns.length - 1));
13582
13598
  return selectList.length ? /*#__PURE__*/React__default['default'].createElement("div", {
13583
13599
  style: {
13584
13600
  width: '100%',
@@ -13600,14 +13616,23 @@ var GoodList$3 = function GoodList(props, ref) {
13600
13616
  }
13601
13617
  })) : null;
13602
13618
  };
13603
- return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, advanceSearchForm, /*#__PURE__*/React__default['default'].createElement("div", {
13619
+ return /*#__PURE__*/React__default['default'].createElement(antd.Skeleton, {
13620
+ active: true,
13621
+ loading: loading
13622
+ }, /*#__PURE__*/React__default['default'].createElement(SearchForm, {
13623
+ searchFormData: searchFormData$2,
13624
+ form: form,
13625
+ showColumnsDataIndexList: showColumnsDataIndexList,
13626
+ submit: submit,
13627
+ reset: reset
13628
+ }), /*#__PURE__*/React__default['default'].createElement("div", {
13604
13629
  style: {
13605
13630
  marginTop: '4px'
13606
13631
  }
13607
13632
  }, /*#__PURE__*/React__default['default'].createElement(antd.Table, _objectSpread2({
13608
13633
  rowSelection: rowSelection,
13609
13634
  rowKey: "id",
13610
- columns: columns$4,
13635
+ columns: columns,
13611
13636
  scroll: {
13612
13637
  x: '100%',
13613
13638
  y: 250
@@ -14087,7 +14112,7 @@ var getWdtReissueGoodColumns = function getWdtReissueGoodColumns(_ref2) {
14087
14112
  var disabled = _ref2.disabled,
14088
14113
  updateHandle = _ref2.updateHandle,
14089
14114
  operate = _ref2.operate;
14090
- return getColumnsMap()['WDT_REISSUE_GOODS'].map(function (item) {
14115
+ return getColumnsMap$1()['WDT_REISSUE_GOODS'].map(function (item) {
14091
14116
  var newItem = _objectSpread2({
14092
14117
  align: 'center',
14093
14118
  ellipsis: true
@@ -14114,15 +14139,20 @@ var getColumns$2 = function getColumns(_ref) {
14114
14139
  WDT_REISSUE_GOODS: [{
14115
14140
  dataIndex: 'goodId',
14116
14141
  title: "\u5546\u54C1ID",
14117
- width: 120
14142
+ width: 120,
14143
+ align: 'center',
14144
+ ellipsis: true
14118
14145
  }, {
14119
14146
  dataIndex: 'goodNo',
14120
14147
  title: "\u5546\u54C1\u7F16\u7801",
14121
- width: 200
14148
+ align: 'center',
14149
+ ellipsis: true,
14150
+ width: 180
14122
14151
  }, {
14123
14152
  dataIndex: 'goodName',
14124
14153
  title: "\u5546\u54C1\u540D\u79F0",
14125
14154
  width: 200,
14155
+ align: 'center',
14126
14156
  render: function render(text) {
14127
14157
  return /*#__PURE__*/React__default['default'].createElement(CopyTextIcon, {
14128
14158
  val: text
@@ -14131,14 +14161,19 @@ var getColumns$2 = function getColumns(_ref) {
14131
14161
  }, {
14132
14162
  dataIndex: 'specId',
14133
14163
  title: "SKUID",
14164
+ align: 'center',
14165
+ ellipsis: true,
14134
14166
  width: 150
14135
14167
  }, {
14136
14168
  dataIndex: 'specNo',
14137
14169
  title: "\u5546\u54C1SKU\u7F16\u7801",
14138
- width: 200
14170
+ align: 'center',
14171
+ ellipsis: true,
14172
+ width: 180
14139
14173
  }, {
14140
14174
  dataIndex: 'specName',
14141
14175
  title: "\u5546\u54C1SKU\u540D\u79F0",
14176
+ align: 'center',
14142
14177
  width: 250,
14143
14178
  render: function render(text) {
14144
14179
  return /*#__PURE__*/React__default['default'].createElement(CopyTextIcon, {
@@ -14251,18 +14286,7 @@ var getColumns$2 = function getColumns(_ref) {
14251
14286
  align: 'center',
14252
14287
  ellipsis: true,
14253
14288
  width: 100,
14254
- render: function render(val) {
14255
- var giftTypeMap = {
14256
- 0: '非赠品',
14257
- 1: '自动赠送',
14258
- 2: '手工赠送',
14259
- 3: '回购自动送赠品',
14260
- 4: '前N有礼送赠品',
14261
- 6: '天猫优仓赠品',
14262
- 7: '淘宝CRM会员送赠'
14263
- };
14264
- return /*#__PURE__*/React__default['default'].createElement("span", null, giftTypeMap[val]);
14265
- }
14289
+ render: renderGiftType
14266
14290
  }],
14267
14291
  //旺店通退货商品信息
14268
14292
  WDT_RETURN_GOODS: [{
@@ -14358,18 +14382,7 @@ var getColumns$2 = function getColumns(_ref) {
14358
14382
  align: 'center',
14359
14383
  ellipsis: true,
14360
14384
  width: 100,
14361
- render: function render(val) {
14362
- var giftTypeMap = {
14363
- 0: '非赠品',
14364
- 1: '自动赠送',
14365
- 2: '手工赠送',
14366
- 3: '回购自动送赠品',
14367
- 4: '前N有礼送赠品',
14368
- 6: '天猫优仓赠品',
14369
- 7: '淘宝CRM会员送赠'
14370
- };
14371
- return /*#__PURE__*/React__default['default'].createElement("span", null, giftTypeMap[val]);
14372
- }
14385
+ render: renderGiftType
14373
14386
  }, {
14374
14387
  dataIndex: 'type',
14375
14388
  title: "".concat(text, "\u5546\u54C1\u7C7B\u578B"),
@@ -14490,18 +14503,7 @@ var getColumns$2 = function getColumns(_ref) {
14490
14503
  align: 'center',
14491
14504
  ellipsis: true,
14492
14505
  width: 100,
14493
- render: function render(val) {
14494
- var giftTypeMap = {
14495
- 0: '非赠品',
14496
- 1: '自动赠送',
14497
- 2: '手工赠送',
14498
- 3: '回购自动送赠品',
14499
- 4: '前N有礼送赠品',
14500
- 6: '天猫优仓赠品',
14501
- 7: '淘宝CRM会员送赠'
14502
- };
14503
- return /*#__PURE__*/React__default['default'].createElement("span", null, giftTypeMap[val]);
14504
- }
14506
+ render: renderGiftType
14505
14507
  }, {
14506
14508
  dataIndex: 'type',
14507
14509
  title: "".concat(text, "\u5546\u54C1\u7C7B\u578B"),
@@ -14685,6 +14687,15 @@ var getYesOrNo$1 = function getYesOrNo(val) {
14685
14687
  if (kmkfUtils.isNull(val)) return null;
14686
14688
  return val ? '是' : '否';
14687
14689
  };
14690
+ function toNum(value) {
14691
+ if (typeof value === 'string') {
14692
+ return value ? +value : void 0;
14693
+ }
14694
+ if (typeof value === 'number') {
14695
+ return value;
14696
+ }
14697
+ return void 0;
14698
+ }
14688
14699
  var getColumns$4 = function getColumns(_ref) {
14689
14700
  var _ref$text = _ref.text,
14690
14701
  disabled = _ref.disabled,
@@ -14842,6 +14853,19 @@ var getColumns$4 = function getColumns(_ref) {
14842
14853
  dataIndex: 'qty',
14843
14854
  title: "\u6570\u91CF",
14844
14855
  width: 100,
14856
+ validator: function validator(_rule, value) {
14857
+ var goodsName = '';
14858
+ if (((value === null || value === void 0 ? void 0 : value.gyReissueGoods) || []).some(function (goods) {
14859
+ var qty = toNum(goods === null || goods === void 0 ? void 0 : goods.qty);
14860
+ var res = typeof qty === 'number' ? qty < 1 : true;
14861
+ if (res) {
14862
+ goodsName = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
14863
+ }
14864
+ return res;
14865
+ })) {
14866
+ return Promise.reject("".concat(goodsName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
14867
+ }
14868
+ },
14845
14869
  render: function render(val, record, index) {
14846
14870
  return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
14847
14871
  style: {
@@ -14945,6 +14969,19 @@ var getColumns$4 = function getColumns(_ref) {
14945
14969
  dataIndex: 'qty',
14946
14970
  title: "\u6570\u91CF",
14947
14971
  width: 100,
14972
+ validator: function validator(_rule, value) {
14973
+ var goodsName = '';
14974
+ if (((value === null || value === void 0 ? void 0 : value.gyReturnGoods) || []).some(function (goods) {
14975
+ var qty = toNum(goods === null || goods === void 0 ? void 0 : goods.qty);
14976
+ var res = typeof qty === 'number' ? qty < 1 : true;
14977
+ if (res) {
14978
+ goodsName = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
14979
+ }
14980
+ return res;
14981
+ })) {
14982
+ return Promise.reject("".concat(goodsName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
14983
+ }
14984
+ },
14948
14985
  render: function render(val, record, index) {
14949
14986
  return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
14950
14987
  style: {
@@ -15036,6 +15073,15 @@ var fillAttrs = function fillAttrs(item) {
15036
15073
  if (!item.align) item.align = 'center';
15037
15074
  return item;
15038
15075
  };
15076
+ function toNum$1(value) {
15077
+ if (typeof value === 'string') {
15078
+ return value ? +value : void 0;
15079
+ }
15080
+ if (typeof value === 'number') {
15081
+ return value;
15082
+ }
15083
+ return void 0;
15084
+ }
15039
15085
  var getColumns$5 = function getColumns() {
15040
15086
  var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
15041
15087
  _ref$text = _ref.text,
@@ -15219,6 +15265,19 @@ var getColumns$5 = function getColumns() {
15219
15265
  ellipsis: true,
15220
15266
  align: 'center',
15221
15267
  width: 120,
15268
+ validator: function validator(_rule, value) {
15269
+ var goodsName = '';
15270
+ if (((value === null || value === void 0 ? void 0 : value.jstReissueGoods) || []).some(function (goods) {
15271
+ var v = toNum$1(goods === null || goods === void 0 ? void 0 : goods.salePrice);
15272
+ var res = typeof v === 'number' ? v < 0 : true;
15273
+ if (res) {
15274
+ goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
15275
+ }
15276
+ return res;
15277
+ })) {
15278
+ return Promise.reject("".concat(goodsName, "\u5355\u4EF7\u4E3A\u5927\u4E8E\u7B49\u4E8E0\u7684\u6570"));
15279
+ }
15280
+ },
15222
15281
  render: function render(val, record, index) {
15223
15282
  return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
15224
15283
  style: {
@@ -15238,6 +15297,19 @@ var getColumns$5 = function getColumns() {
15238
15297
  ellipsis: true,
15239
15298
  align: 'center',
15240
15299
  width: 100,
15300
+ validator: function validator(_rule, value) {
15301
+ var goodsName = '';
15302
+ if (((value === null || value === void 0 ? void 0 : value.jstReissueGoods) || []).some(function (goods) {
15303
+ var qty = toNum$1(goods === null || goods === void 0 ? void 0 : goods.qty);
15304
+ var res = typeof qty === 'number' ? qty < 1 : true;
15305
+ if (res) {
15306
+ goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
15307
+ }
15308
+ return res;
15309
+ })) {
15310
+ return Promise.reject("".concat(goodsName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
15311
+ }
15312
+ },
15241
15313
  render: function render(val, record, index) {
15242
15314
  return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
15243
15315
  style: {
@@ -15322,6 +15394,19 @@ var getColumns$5 = function getColumns() {
15322
15394
  dataIndex: 'salePrice',
15323
15395
  title: '单价',
15324
15396
  width: 120,
15397
+ validator: function validator(_rule, value) {
15398
+ var goodsName = '';
15399
+ if (((value === null || value === void 0 ? void 0 : value.jstReturnGoods) || []).some(function (goods) {
15400
+ var v = toNum$1(goods === null || goods === void 0 ? void 0 : goods.salePrice);
15401
+ var res = typeof v === 'number' ? v < 0 : true;
15402
+ if (res) {
15403
+ goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
15404
+ }
15405
+ return res;
15406
+ })) {
15407
+ return Promise.reject("".concat(goodsName, "\u5355\u4EF7\u4E3A\u5927\u4E8E\u7B49\u4E8E0\u7684\u6570"));
15408
+ }
15409
+ },
15325
15410
  render: function render(val, record, index) {
15326
15411
  return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
15327
15412
  style: {
@@ -15339,6 +15424,19 @@ var getColumns$5 = function getColumns() {
15339
15424
  dataIndex: 'qty',
15340
15425
  title: '数量',
15341
15426
  width: 100,
15427
+ validator: function validator(_rule, value) {
15428
+ var goodsName = '';
15429
+ if (((value === null || value === void 0 ? void 0 : value.jstReturnGoods) || []).some(function (goods) {
15430
+ var qty = toNum$1(goods === null || goods === void 0 ? void 0 : goods.qty);
15431
+ var res = typeof qty === 'number' ? qty < 1 : true;
15432
+ if (res) {
15433
+ goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
15434
+ }
15435
+ return res;
15436
+ })) {
15437
+ return Promise.reject("".concat(goodsName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
15438
+ }
15439
+ },
15342
15440
  render: function render(val, record, index) {
15343
15441
  return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
15344
15442
  style: {
@@ -15610,7 +15708,7 @@ var getColumns$6 = function getColumns(_ref) {
15610
15708
  };
15611
15709
  };
15612
15710
 
15613
- var getColumnsMap = function getColumnsMap(args) {
15711
+ var getColumnsMap$1 = function getColumnsMap(args) {
15614
15712
  var _ref = args || {},
15615
15713
  _ref$text = _ref.text,
15616
15714
  text = _ref$text === void 0 ? '' : _ref$text,
@@ -15650,20 +15748,22 @@ var getColumnsMap = function getColumnsMap(args) {
15650
15748
  })['default']
15651
15749
  });
15652
15750
  };
15653
- var getColumnsBaseInfo = function getColumnsBaseInfo() {
15654
- var clone_columnsMap = lodash.cloneDeep(getColumnsMap());
15751
+ var erpColumnsMap = getColumnsMap$1();
15752
+ var getColumnsBaseInfo$1 = function getColumnsBaseInfo() {
15753
+ var clone_columnsMap = lodash.cloneDeep(getColumnsMap$1());
15655
15754
  var newColumns = {};
15656
15755
  Object.keys(clone_columnsMap).forEach(function (key) {
15657
15756
  newColumns[key] = clone_columnsMap[key].map(function (col) {
15658
15757
  return {
15659
15758
  title: col.title,
15660
- dataIndex: col.dataIndex
15759
+ dataIndex: col.dataIndex,
15760
+ disabled: !!col.validator
15661
15761
  };
15662
15762
  });
15663
15763
  });
15664
15764
  return newColumns;
15665
15765
  };
15666
- var columnsBaseInfoMap = getColumnsBaseInfo();
15766
+ var columnsBaseInfoMap = getColumnsBaseInfo$1();
15667
15767
 
15668
15768
  var renderFieldMap$1 = {
15669
15769
  goodsNumber: function goodsNumber(_ref) {
@@ -15730,7 +15830,7 @@ var getBsE3ReissueGoodColumns = function getBsE3ReissueGoodColumns(_ref4) {
15730
15830
  var disabled = _ref4.disabled,
15731
15831
  updateHandle = _ref4.updateHandle,
15732
15832
  operate = _ref4.operate;
15733
- return getColumnsMap()['BS_E3_REISSUE_GOODS'].map(function (item) {
15833
+ return getColumnsMap$1()['BS_E3_REISSUE_GOODS'].map(function (item) {
15734
15834
  var newItem = _objectSpread2({
15735
15835
  align: 'center',
15736
15836
  ellipsis: true
@@ -15989,7 +16089,7 @@ var GoodItem$1 = function GoodItem(props) {
15989
16089
  case 'GY_REISSUE_GOODS':
15990
16090
  case 'GY_RETURN_GOODS':
15991
16091
  {
15992
- columns = getColumnsMap({
16092
+ columns = getColumnsMap$1({
15993
16093
  text: text,
15994
16094
  disabled: disabled || columnsOptions.disabled,
15995
16095
  updateHandle: updateHandle,
@@ -16016,7 +16116,7 @@ var GoodItem$1 = function GoodItem(props) {
16016
16116
  }
16017
16117
  break;
16018
16118
  default:
16019
- columns = getColumnsMap({
16119
+ columns = getColumnsMap$1({
16020
16120
  text: text,
16021
16121
  disabled: disabled || columnsOptions.disabled,
16022
16122
  updateHandle: updateHandle,
@@ -16039,16 +16139,18 @@ var GoodItem$1 = function GoodItem(props) {
16039
16139
  var isObjectArray = Array.isArray(showHeader) && Object.prototype.toString.call(showHeader[0]) === '[object Object]';
16040
16140
  if (isStringArray) {
16041
16141
  baseInfoColumns = initBaseInfoColumns.filter(function (col) {
16042
- return showHeader.includes(col.dataIndex);
16142
+ return showHeader.includes(col.dataIndex) || (col === null || col === void 0 ? void 0 : col.validator);
16043
16143
  });
16044
16144
  } else if (isObjectArray) {
16045
- baseInfoColumns = showHeader.filter(function (col) {
16046
- return col.show !== false;
16047
- }).map(function (col) {
16145
+ baseInfoColumns = showHeader.map(function (col) {
16048
16146
  var currentCol = initBaseInfoColumns.find(function (item) {
16049
16147
  return item.dataIndex === col.dataIndex;
16050
16148
  });
16051
- return currentCol ? currentCol : undefined;
16149
+ // 如果列应该显示(show不为false)或者有验证器,则返回对应的列配置
16150
+ if (currentCol && (col.show !== false || (currentCol === null || currentCol === void 0 ? void 0 : currentCol.validator))) {
16151
+ return currentCol;
16152
+ }
16153
+ return undefined;
16052
16154
  }).filter(Boolean);
16053
16155
  }
16054
16156
  var columnList = [{
@@ -17153,7 +17255,7 @@ var rowKeyMap = {
17153
17255
  GY_SYSTEM_ORDER: 'billNo',
17154
17256
  JST_SYSTEM_ORDER: 'oId'
17155
17257
  };
17156
- var index$2 = (function (props) {
17258
+ var index$3 = (function (props) {
17157
17259
  var value = props.value,
17158
17260
  _onChange = props.onChange,
17159
17261
  disabled = props.disabled,
@@ -19158,7 +19260,7 @@ var Goods$1 = function Goods(props, ref) {
19158
19260
  userNick: userNick
19159
19261
  }));
19160
19262
  };
19161
- var index$3 = /*#__PURE__*/React.forwardRef(Goods$1);
19263
+ var index$4 = /*#__PURE__*/React.forwardRef(Goods$1);
19162
19264
 
19163
19265
  var _excluded$k = ["onChange", "value", "failValue"];
19164
19266
  function CommonStatus(props) {
@@ -19419,7 +19521,7 @@ var MsgStatus = function MsgStatus(props) {
19419
19521
  onClick: function onClick() {
19420
19522
  return setChangeIndex(index);
19421
19523
  }
19422
- }, kmkfUtils.msgTypeCh[key], item.ruleName);
19524
+ }, kmkfUtils.msgTypeCh[key] || key, item.ruleName);
19423
19525
  }))) : null, type === 1 ? /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({}, other), {}, {
19424
19526
  showSearch: true,
19425
19527
  value: (_value$changeIndex = value[changeIndex]) === null || _value$changeIndex === void 0 ? void 0 : _value$changeIndex.status,
@@ -20282,7 +20384,7 @@ exports.BsExchange = BsExchange;
20282
20384
  exports.BsGoods = BsGoods;
20283
20385
  exports.BsReissue = BsReissue;
20284
20386
  exports.BsReturn = BsReturnGoods;
20285
- exports.BsSystemOrder = index$2;
20387
+ exports.BsSystemOrder = index$3;
20286
20388
  exports.BuyerNick = BuyerNick;
20287
20389
  exports.CalculationInput = CalculationInput;
20288
20390
  exports.ChooseBaby = ChooseBaby;
@@ -20295,7 +20397,7 @@ exports.CommonSystemOrder = CommonSystemOrder;
20295
20397
  exports.CopyTextIcon = CopyTextIcon;
20296
20398
  exports.ExpressLogistics = ExpressLogistics;
20297
20399
  exports.Goods = Goods;
20298
- exports.GoodsTable = index$3;
20400
+ exports.GoodsTable = index$4;
20299
20401
  exports.GyReissue = GyReissue;
20300
20402
  exports.GyReturn = GyReturnGoods;
20301
20403
  exports.IdentifyAddress = IdentifyAddress;
@@ -20323,5 +20425,9 @@ exports.WdtGoodList = WdtGoodList;
20323
20425
  exports.WdtReissue = wdtReissue;
20324
20426
  exports.WlnGoods = WlnGoods;
20325
20427
  exports.columnsBaseInfoMap = columnsBaseInfoMap;
20428
+ exports.erpColumnsMap = erpColumnsMap;
20429
+ exports.erpModalColumnsMap = index$2;
20430
+ exports.getGyColumns = getColumns$4;
20326
20431
  exports.getJstColumns = getColumns$5;
20432
+ exports.getWdtColumns = getColumns$2;
20327
20433
  exports.getWlnColumns = getColumns$3;