@kmkf-fe-packages/basic-components 2.0.19-beta.69 → 2.0.19-beta.70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +727 -714
- package/dist/index.js +727 -713
- 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/index.d.ts +1 -0
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -12190,6 +12190,497 @@ var GoodsModal$1 = function GoodsModal(props, ref) {
|
|
|
12190
12190
|
};
|
|
12191
12191
|
var GoodsModal$2 = /*#__PURE__*/React.forwardRef(GoodsModal$1);
|
|
12192
12192
|
|
|
12193
|
+
var gyColumns = [{
|
|
12194
|
+
dataIndex: 'specName',
|
|
12195
|
+
title: 'SKU名称',
|
|
12196
|
+
width: 250,
|
|
12197
|
+
ellipsis: true
|
|
12198
|
+
}, {
|
|
12199
|
+
dataIndex: 'specNo',
|
|
12200
|
+
title: 'SKU编码',
|
|
12201
|
+
width: 200,
|
|
12202
|
+
ellipsis: true
|
|
12203
|
+
}, {
|
|
12204
|
+
dataIndex: 'goodName',
|
|
12205
|
+
title: '商品名称',
|
|
12206
|
+
width: 250,
|
|
12207
|
+
ellipsis: true
|
|
12208
|
+
}, {
|
|
12209
|
+
dataIndex: 'goodShortName',
|
|
12210
|
+
title: "\u5546\u54C1\u7B80\u79F0",
|
|
12211
|
+
ellipsis: true,
|
|
12212
|
+
width: 250
|
|
12213
|
+
}, {
|
|
12214
|
+
dataIndex: 'goodNo',
|
|
12215
|
+
title: '商品编码',
|
|
12216
|
+
width: 200,
|
|
12217
|
+
ellipsis: true
|
|
12218
|
+
}, {
|
|
12219
|
+
dataIndex: 'goodPicUrl',
|
|
12220
|
+
title: '商品图片',
|
|
12221
|
+
width: 100,
|
|
12222
|
+
render: function render(picUrl) {
|
|
12223
|
+
return /*#__PURE__*/React__default['default'].createElement("img", {
|
|
12224
|
+
style: {
|
|
12225
|
+
width: '40px',
|
|
12226
|
+
height: '40px',
|
|
12227
|
+
objectFit: 'contain'
|
|
12228
|
+
},
|
|
12229
|
+
src: picUrl
|
|
12230
|
+
});
|
|
12231
|
+
}
|
|
12232
|
+
}, {
|
|
12233
|
+
dataIndex: 'brandName',
|
|
12234
|
+
title: '品牌名称',
|
|
12235
|
+
width: 200,
|
|
12236
|
+
ellipsis: true
|
|
12237
|
+
}, {
|
|
12238
|
+
dataIndex: 'retailPrice',
|
|
12239
|
+
title: "\u6807\u51C6\u552E\u4EF7",
|
|
12240
|
+
ellipsis: true,
|
|
12241
|
+
width: 100
|
|
12242
|
+
}, {
|
|
12243
|
+
dataIndex: 'costPrice',
|
|
12244
|
+
title: "\u6210\u672C\u4EF7",
|
|
12245
|
+
ellipsis: true,
|
|
12246
|
+
width: 100
|
|
12247
|
+
}];
|
|
12248
|
+
|
|
12249
|
+
var jstColumns = [{
|
|
12250
|
+
dataIndex: 'goodName',
|
|
12251
|
+
title: '商品名称',
|
|
12252
|
+
width: 250,
|
|
12253
|
+
ellipsis: true
|
|
12254
|
+
}, {
|
|
12255
|
+
dataIndex: 'goodNo',
|
|
12256
|
+
title: '商品编码',
|
|
12257
|
+
width: 200,
|
|
12258
|
+
ellipsis: true
|
|
12259
|
+
}, {
|
|
12260
|
+
dataIndex: 'styleCode',
|
|
12261
|
+
title: '款式编码',
|
|
12262
|
+
width: 200,
|
|
12263
|
+
ellipsis: true
|
|
12264
|
+
}, {
|
|
12265
|
+
dataIndex: 'propertiesValue',
|
|
12266
|
+
title: '规格值',
|
|
12267
|
+
width: 200,
|
|
12268
|
+
ellipsis: true
|
|
12269
|
+
}, {
|
|
12270
|
+
dataIndex: 'goodPicUrl',
|
|
12271
|
+
title: '商品图片',
|
|
12272
|
+
width: 100,
|
|
12273
|
+
render: function render(picUrl) {
|
|
12274
|
+
return /*#__PURE__*/React__default['default'].createElement("img", {
|
|
12275
|
+
style: {
|
|
12276
|
+
width: '40px',
|
|
12277
|
+
height: '40px',
|
|
12278
|
+
objectFit: 'contain'
|
|
12279
|
+
},
|
|
12280
|
+
src: picUrl
|
|
12281
|
+
});
|
|
12282
|
+
}
|
|
12283
|
+
}, {
|
|
12284
|
+
dataIndex: 'goodShortName',
|
|
12285
|
+
title: "\u5546\u54C1\u7B80\u79F0",
|
|
12286
|
+
ellipsis: true,
|
|
12287
|
+
width: 250
|
|
12288
|
+
}, {
|
|
12289
|
+
dataIndex: 'brandName',
|
|
12290
|
+
title: '品牌名称',
|
|
12291
|
+
width: 200,
|
|
12292
|
+
ellipsis: true
|
|
12293
|
+
}, {
|
|
12294
|
+
dataIndex: 'retailPrice',
|
|
12295
|
+
title: "\u9500\u552E\u4EF7\u683C",
|
|
12296
|
+
ellipsis: true,
|
|
12297
|
+
width: 100,
|
|
12298
|
+
render: function render(price) {
|
|
12299
|
+
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
12300
|
+
}
|
|
12301
|
+
}, {
|
|
12302
|
+
dataIndex: 'marketPrice',
|
|
12303
|
+
title: "\u5E02\u573A\u4EF7",
|
|
12304
|
+
ellipsis: true,
|
|
12305
|
+
width: 100,
|
|
12306
|
+
render: function render(price) {
|
|
12307
|
+
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
12308
|
+
}
|
|
12309
|
+
}, {
|
|
12310
|
+
dataIndex: 'costPrice',
|
|
12311
|
+
title: "\u6210\u672C\u4EF7",
|
|
12312
|
+
ellipsis: true,
|
|
12313
|
+
width: 100,
|
|
12314
|
+
render: function render(price) {
|
|
12315
|
+
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
12316
|
+
}
|
|
12317
|
+
}, {
|
|
12318
|
+
dataIndex: 'skuType',
|
|
12319
|
+
title: "\u5546\u54C1\u7C7B\u578B",
|
|
12320
|
+
ellipsis: true,
|
|
12321
|
+
width: 100,
|
|
12322
|
+
render: function render() {
|
|
12323
|
+
var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'normal';
|
|
12324
|
+
return {
|
|
12325
|
+
combine: '组合装商品',
|
|
12326
|
+
normal: '普通商品'
|
|
12327
|
+
}[type] || type;
|
|
12328
|
+
}
|
|
12329
|
+
}];
|
|
12330
|
+
|
|
12331
|
+
var wdtColumns = [{
|
|
12332
|
+
dataIndex: 'specName',
|
|
12333
|
+
title: 'SKU名称',
|
|
12334
|
+
width: 250,
|
|
12335
|
+
ellipsis: true
|
|
12336
|
+
}, {
|
|
12337
|
+
dataIndex: 'specNo',
|
|
12338
|
+
title: 'SKU编码',
|
|
12339
|
+
width: 200,
|
|
12340
|
+
ellipsis: true
|
|
12341
|
+
}, {
|
|
12342
|
+
dataIndex: 'specId',
|
|
12343
|
+
title: 'SKUID',
|
|
12344
|
+
width: 200,
|
|
12345
|
+
ellipsis: true
|
|
12346
|
+
}, {
|
|
12347
|
+
dataIndex: 'specImgUrl',
|
|
12348
|
+
title: '商品图片',
|
|
12349
|
+
width: 100,
|
|
12350
|
+
render: function render(picUrl) {
|
|
12351
|
+
return /*#__PURE__*/React__default['default'].createElement("img", {
|
|
12352
|
+
style: {
|
|
12353
|
+
width: '40px',
|
|
12354
|
+
height: '40px',
|
|
12355
|
+
objectFit: 'contain'
|
|
12356
|
+
},
|
|
12357
|
+
src: picUrl
|
|
12358
|
+
});
|
|
12359
|
+
}
|
|
12360
|
+
}, {
|
|
12361
|
+
dataIndex: 'goodName',
|
|
12362
|
+
title: '商品名称',
|
|
12363
|
+
width: 250,
|
|
12364
|
+
ellipsis: true
|
|
12365
|
+
}, {
|
|
12366
|
+
dataIndex: 'goodNo',
|
|
12367
|
+
title: '商品编码',
|
|
12368
|
+
width: 200,
|
|
12369
|
+
ellipsis: true
|
|
12370
|
+
}, {
|
|
12371
|
+
dataIndex: 'goodId',
|
|
12372
|
+
title: '商品ID',
|
|
12373
|
+
width: 200,
|
|
12374
|
+
ellipsis: true
|
|
12375
|
+
}, {
|
|
12376
|
+
dataIndex: 'brandName',
|
|
12377
|
+
title: '品牌名称',
|
|
12378
|
+
width: 200,
|
|
12379
|
+
ellipsis: true
|
|
12380
|
+
}, {
|
|
12381
|
+
dataIndex: 'marketPrice',
|
|
12382
|
+
title: '市场价',
|
|
12383
|
+
width: 140,
|
|
12384
|
+
render: function render(price) {
|
|
12385
|
+
return Number(price).toFixed(2);
|
|
12386
|
+
}
|
|
12387
|
+
}, {
|
|
12388
|
+
dataIndex: 'retailPrice',
|
|
12389
|
+
title: '零售价',
|
|
12390
|
+
width: 140,
|
|
12391
|
+
render: function render(price) {
|
|
12392
|
+
return Number(price).toFixed(2);
|
|
12393
|
+
}
|
|
12394
|
+
}, {
|
|
12395
|
+
dataIndex: 'memberPrice',
|
|
12396
|
+
title: '会员价',
|
|
12397
|
+
width: 140,
|
|
12398
|
+
render: function render(price) {
|
|
12399
|
+
return Number(price).toFixed(2);
|
|
12400
|
+
}
|
|
12401
|
+
}];
|
|
12402
|
+
|
|
12403
|
+
var bse3Columns = [{
|
|
12404
|
+
dataIndex: 'specNo',
|
|
12405
|
+
title: "SKU",
|
|
12406
|
+
ellipsis: true,
|
|
12407
|
+
width: 200
|
|
12408
|
+
}, {
|
|
12409
|
+
dataIndex: 'specId',
|
|
12410
|
+
title: "SKU ID",
|
|
12411
|
+
ellipsis: true,
|
|
12412
|
+
width: 80
|
|
12413
|
+
}, {
|
|
12414
|
+
dataIndex: 'goodName',
|
|
12415
|
+
title: "\u5546\u54C1\u540D\u79F0",
|
|
12416
|
+
ellipsis: true,
|
|
12417
|
+
width: 250
|
|
12418
|
+
}, {
|
|
12419
|
+
dataIndex: 'goodShortName',
|
|
12420
|
+
title: "\u5546\u54C1\u7B80\u79F0",
|
|
12421
|
+
ellipsis: true,
|
|
12422
|
+
width: 250
|
|
12423
|
+
},
|
|
12424
|
+
// {
|
|
12425
|
+
// dataIndex: 'goodPicUrl',
|
|
12426
|
+
// title: `商品图片`,
|
|
12427
|
+
// ellipsis: true,
|
|
12428
|
+
// width: 100,
|
|
12429
|
+
// render: (picUrl: string) => {
|
|
12430
|
+
// return (
|
|
12431
|
+
// <img
|
|
12432
|
+
// style={{
|
|
12433
|
+
// width: '40px',
|
|
12434
|
+
// height: '40px',
|
|
12435
|
+
// objectFit: 'contain',
|
|
12436
|
+
// }}
|
|
12437
|
+
// src={picUrl}
|
|
12438
|
+
// ></img>
|
|
12439
|
+
// );
|
|
12440
|
+
// },
|
|
12441
|
+
// },
|
|
12442
|
+
{
|
|
12443
|
+
dataIndex: 'goodNo',
|
|
12444
|
+
title: "\u8D27\u53F7",
|
|
12445
|
+
ellipsis: true,
|
|
12446
|
+
width: 150
|
|
12447
|
+
}, {
|
|
12448
|
+
dataIndex: 'goodId',
|
|
12449
|
+
title: "\u8D27\u53F7ID",
|
|
12450
|
+
ellipsis: true,
|
|
12451
|
+
width: 100
|
|
12452
|
+
}, {
|
|
12453
|
+
dataIndex: 'colorName',
|
|
12454
|
+
title: "\u989C\u8272\u540D\u79F0",
|
|
12455
|
+
ellipsis: true,
|
|
12456
|
+
width: 100
|
|
12457
|
+
}, {
|
|
12458
|
+
dataIndex: 'colorCode',
|
|
12459
|
+
title: "\u989C\u8272\u4EE3\u7801",
|
|
12460
|
+
ellipsis: true,
|
|
12461
|
+
width: 100
|
|
12462
|
+
}, {
|
|
12463
|
+
dataIndex: 'sizeName',
|
|
12464
|
+
title: "\u5C3A\u7801\u540D\u79F0",
|
|
12465
|
+
ellipsis: true,
|
|
12466
|
+
width: 100
|
|
12467
|
+
}, {
|
|
12468
|
+
dataIndex: 'sizeCode',
|
|
12469
|
+
title: "\u5C3A\u7801\u4EE3\u7801",
|
|
12470
|
+
ellipsis: true,
|
|
12471
|
+
width: 100
|
|
12472
|
+
}, {
|
|
12473
|
+
dataIndex: 'brandName',
|
|
12474
|
+
title: "\u54C1\u724C\u540D\u79F0",
|
|
12475
|
+
ellipsis: true,
|
|
12476
|
+
width: 100
|
|
12477
|
+
}, {
|
|
12478
|
+
dataIndex: 'marketPrice',
|
|
12479
|
+
title: "\u5E02\u573A\u4EF7",
|
|
12480
|
+
ellipsis: true,
|
|
12481
|
+
width: 100
|
|
12482
|
+
}, {
|
|
12483
|
+
dataIndex: 'retailPrice',
|
|
12484
|
+
title: "\u552E\u4EF7",
|
|
12485
|
+
ellipsis: true,
|
|
12486
|
+
width: 100
|
|
12487
|
+
}];
|
|
12488
|
+
|
|
12489
|
+
var getColumnsMap = function getColumnsMap() {
|
|
12490
|
+
return lodash.cloneDeep({
|
|
12491
|
+
gy: gyColumns,
|
|
12492
|
+
jst: jstColumns,
|
|
12493
|
+
wdt: wdtColumns,
|
|
12494
|
+
bse3: bse3Columns
|
|
12495
|
+
});
|
|
12496
|
+
};
|
|
12497
|
+
var getColumnsBaseInfo = function getColumnsBaseInfo() {
|
|
12498
|
+
var clone_columnsMap = lodash.cloneDeep(getColumnsMap());
|
|
12499
|
+
var newColumns = {};
|
|
12500
|
+
Object.keys(clone_columnsMap).forEach(function (key) {
|
|
12501
|
+
newColumns[key] = clone_columnsMap[key].map(function (col) {
|
|
12502
|
+
return {
|
|
12503
|
+
title: col.title,
|
|
12504
|
+
dataIndex: col.dataIndex
|
|
12505
|
+
};
|
|
12506
|
+
});
|
|
12507
|
+
});
|
|
12508
|
+
return newColumns;
|
|
12509
|
+
};
|
|
12510
|
+
var index$2 = getColumnsBaseInfo();
|
|
12511
|
+
|
|
12512
|
+
var initNo = {
|
|
12513
|
+
dataIndex: 'index',
|
|
12514
|
+
title: 'NO',
|
|
12515
|
+
render: function render(val, record, index) {
|
|
12516
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
12517
|
+
style: {
|
|
12518
|
+
width: 25
|
|
12519
|
+
}
|
|
12520
|
+
}, index + 1);
|
|
12521
|
+
},
|
|
12522
|
+
width: 80
|
|
12523
|
+
};
|
|
12524
|
+
var asyncGetData = function asyncGetData(type) {
|
|
12525
|
+
return extendRequest('/qy/condition/list', {
|
|
12526
|
+
method: 'get',
|
|
12527
|
+
params: {
|
|
12528
|
+
typeKey: "erp_select_modal_".concat(type),
|
|
12529
|
+
configScope: 'company' //按企业查询
|
|
12530
|
+
}
|
|
12531
|
+
}).then(function (res) {
|
|
12532
|
+
if (res && res.data && res.data[0] && res.data[0].queryInfo && res.data[0].queryInfo.length > 0) {
|
|
12533
|
+
return JSON.parse(res.data[0].queryInfo);
|
|
12534
|
+
} else {
|
|
12535
|
+
return getColumnsMap()[type];
|
|
12536
|
+
}
|
|
12537
|
+
});
|
|
12538
|
+
};
|
|
12539
|
+
var useGetColumns = (function (type) {
|
|
12540
|
+
var _useState = React.useState([]),
|
|
12541
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
12542
|
+
columns = _useState2[0],
|
|
12543
|
+
setColumns = _useState2[1];
|
|
12544
|
+
var _useState3 = React.useState(false),
|
|
12545
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
12546
|
+
loading = _useState4[0],
|
|
12547
|
+
setLoading = _useState4[1];
|
|
12548
|
+
var showColumnsDataIndexList = React.useMemo(function () {
|
|
12549
|
+
return columns.filter(function (item) {
|
|
12550
|
+
return Object.hasOwn(item, 'dataIndex');
|
|
12551
|
+
}).map(function (item) {
|
|
12552
|
+
return item.dataIndex;
|
|
12553
|
+
});
|
|
12554
|
+
}, [columns]);
|
|
12555
|
+
React.useEffect(function () {
|
|
12556
|
+
_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
12557
|
+
var initColumns, requestSortColumns, list, initDataIndexList;
|
|
12558
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
12559
|
+
while (1) switch (_context.prev = _context.next) {
|
|
12560
|
+
case 0:
|
|
12561
|
+
initColumns = getColumnsMap()[type];
|
|
12562
|
+
setLoading(true);
|
|
12563
|
+
_context.next = 4;
|
|
12564
|
+
return asyncGetData(type);
|
|
12565
|
+
case 4:
|
|
12566
|
+
requestSortColumns = _context.sent;
|
|
12567
|
+
setLoading(false);
|
|
12568
|
+
list = [initNo];
|
|
12569
|
+
if (requestSortColumns && requestSortColumns.length > 0) {
|
|
12570
|
+
initDataIndexList = initColumns.map(function (item) {
|
|
12571
|
+
return item.dataIndex;
|
|
12572
|
+
});
|
|
12573
|
+
requestSortColumns.forEach(function (item) {
|
|
12574
|
+
var dataIndex = item.dataIndex,
|
|
12575
|
+
show = item.show;
|
|
12576
|
+
if (show !== false && initDataIndexList.includes(dataIndex)) {
|
|
12577
|
+
list.push(initColumns.find(function (item) {
|
|
12578
|
+
return item.dataIndex === dataIndex;
|
|
12579
|
+
}));
|
|
12580
|
+
}
|
|
12581
|
+
});
|
|
12582
|
+
}
|
|
12583
|
+
setColumns(list);
|
|
12584
|
+
case 9:
|
|
12585
|
+
case "end":
|
|
12586
|
+
return _context.stop();
|
|
12587
|
+
}
|
|
12588
|
+
}, _callee);
|
|
12589
|
+
}))();
|
|
12590
|
+
}, []);
|
|
12591
|
+
return [columns, showColumnsDataIndexList, loading];
|
|
12592
|
+
});
|
|
12593
|
+
|
|
12594
|
+
function SearchForm(_ref) {
|
|
12595
|
+
var searchFormData = _ref.searchFormData,
|
|
12596
|
+
form = _ref.form,
|
|
12597
|
+
showColumnsDataIndexList = _ref.showColumnsDataIndexList,
|
|
12598
|
+
submit = _ref.submit,
|
|
12599
|
+
reset = _ref.reset;
|
|
12600
|
+
var _useState = React.useState({}),
|
|
12601
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
12602
|
+
searchData = _useState2[0],
|
|
12603
|
+
setSearchData = _useState2[1];
|
|
12604
|
+
var submitForm = /*#__PURE__*/function () {
|
|
12605
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(submitBtnClickFlag) {
|
|
12606
|
+
var values;
|
|
12607
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
12608
|
+
while (1) switch (_context.prev = _context.next) {
|
|
12609
|
+
case 0:
|
|
12610
|
+
_context.next = 2;
|
|
12611
|
+
return form.getFieldsValue();
|
|
12612
|
+
case 2:
|
|
12613
|
+
values = _context.sent;
|
|
12614
|
+
if (submitBtnClickFlag || !lodash.isEqual(values, searchData)) {
|
|
12615
|
+
setSearchData(values);
|
|
12616
|
+
submit();
|
|
12617
|
+
}
|
|
12618
|
+
case 4:
|
|
12619
|
+
case "end":
|
|
12620
|
+
return _context.stop();
|
|
12621
|
+
}
|
|
12622
|
+
}, _callee);
|
|
12623
|
+
}));
|
|
12624
|
+
return function submitForm(_x) {
|
|
12625
|
+
return _ref2.apply(this, arguments);
|
|
12626
|
+
};
|
|
12627
|
+
}();
|
|
12628
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Form, {
|
|
12629
|
+
layout: "inline",
|
|
12630
|
+
form: form
|
|
12631
|
+
}, searchFormData.map(function (item) {
|
|
12632
|
+
var label = item.label,
|
|
12633
|
+
name = item.name,
|
|
12634
|
+
dataIndex = item.dataIndex,
|
|
12635
|
+
type = item.type,
|
|
12636
|
+
_item$formItemProps = item.formItemProps,
|
|
12637
|
+
formItemProps = _item$formItemProps === void 0 ? {} : _item$formItemProps;
|
|
12638
|
+
if (!showColumnsDataIndexList.includes(dataIndex || name)) return;
|
|
12639
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
|
|
12640
|
+
name: name,
|
|
12641
|
+
style: {
|
|
12642
|
+
marginBottom: '12px'
|
|
12643
|
+
}
|
|
12644
|
+
}, type === 'select' ? /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2({
|
|
12645
|
+
placeholder: label,
|
|
12646
|
+
showSearch: true,
|
|
12647
|
+
allowClear: true,
|
|
12648
|
+
style: {
|
|
12649
|
+
width: 150
|
|
12650
|
+
},
|
|
12651
|
+
onBlur: function onBlur() {
|
|
12652
|
+
return submitForm();
|
|
12653
|
+
}
|
|
12654
|
+
}, formItemProps)) : /*#__PURE__*/React__default['default'].createElement(antd.Input, _objectSpread2({
|
|
12655
|
+
placeholder: label,
|
|
12656
|
+
allowClear: true,
|
|
12657
|
+
style: {
|
|
12658
|
+
width: 150
|
|
12659
|
+
},
|
|
12660
|
+
onPressEnter: function onPressEnter() {
|
|
12661
|
+
return submitForm();
|
|
12662
|
+
},
|
|
12663
|
+
onBlur: function onBlur() {
|
|
12664
|
+
return submitForm();
|
|
12665
|
+
}
|
|
12666
|
+
}, formItemProps)));
|
|
12667
|
+
}), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
|
|
12668
|
+
style: {
|
|
12669
|
+
marginBottom: '12px'
|
|
12670
|
+
}
|
|
12671
|
+
}, /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
12672
|
+
type: "primary",
|
|
12673
|
+
style: {
|
|
12674
|
+
marginRight: '8px'
|
|
12675
|
+
},
|
|
12676
|
+
onClick: function onClick() {
|
|
12677
|
+
return submitForm(true);
|
|
12678
|
+
}
|
|
12679
|
+
}, "\u67E5\u8BE2"), /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
12680
|
+
onClick: reset
|
|
12681
|
+
}, "\u91CD\u7F6E")));
|
|
12682
|
+
}
|
|
12683
|
+
|
|
12193
12684
|
var getTableData = function getTableData(_ref, formData) {
|
|
12194
12685
|
var _formData$brandIds;
|
|
12195
12686
|
var current = _ref.current,
|
|
@@ -12225,88 +12716,6 @@ var getTableData = function getTableData(_ref, formData) {
|
|
|
12225
12716
|
};
|
|
12226
12717
|
});
|
|
12227
12718
|
};
|
|
12228
|
-
var columns$1 = [{
|
|
12229
|
-
dataIndex: 'index',
|
|
12230
|
-
title: 'NO',
|
|
12231
|
-
render: function render(val, record, index) {
|
|
12232
|
-
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
12233
|
-
style: {
|
|
12234
|
-
width: 25
|
|
12235
|
-
}
|
|
12236
|
-
}, index + 1);
|
|
12237
|
-
},
|
|
12238
|
-
width: 100
|
|
12239
|
-
}, {
|
|
12240
|
-
dataIndex: 'specName',
|
|
12241
|
-
title: 'SKU名称',
|
|
12242
|
-
width: 250,
|
|
12243
|
-
ellipsis: true
|
|
12244
|
-
}, {
|
|
12245
|
-
dataIndex: 'specNo',
|
|
12246
|
-
title: 'SKU编码',
|
|
12247
|
-
width: 200,
|
|
12248
|
-
ellipsis: true
|
|
12249
|
-
}, {
|
|
12250
|
-
dataIndex: 'specId',
|
|
12251
|
-
title: 'SKUID',
|
|
12252
|
-
width: 200,
|
|
12253
|
-
ellipsis: true
|
|
12254
|
-
}, {
|
|
12255
|
-
dataIndex: 'specImgUrl',
|
|
12256
|
-
title: '商品图片',
|
|
12257
|
-
width: 100,
|
|
12258
|
-
render: function render(picUrl) {
|
|
12259
|
-
return /*#__PURE__*/React__default['default'].createElement("img", {
|
|
12260
|
-
style: {
|
|
12261
|
-
width: '40px',
|
|
12262
|
-
height: '40px',
|
|
12263
|
-
objectFit: 'contain'
|
|
12264
|
-
},
|
|
12265
|
-
src: picUrl
|
|
12266
|
-
});
|
|
12267
|
-
}
|
|
12268
|
-
}, {
|
|
12269
|
-
dataIndex: 'goodName',
|
|
12270
|
-
title: '商品名称',
|
|
12271
|
-
width: 250,
|
|
12272
|
-
ellipsis: true
|
|
12273
|
-
}, {
|
|
12274
|
-
dataIndex: 'goodNo',
|
|
12275
|
-
title: '商品编码',
|
|
12276
|
-
width: 200,
|
|
12277
|
-
ellipsis: true
|
|
12278
|
-
}, {
|
|
12279
|
-
dataIndex: 'goodId',
|
|
12280
|
-
title: '商品ID',
|
|
12281
|
-
width: 200,
|
|
12282
|
-
ellipsis: true
|
|
12283
|
-
}, {
|
|
12284
|
-
dataIndex: 'brandName',
|
|
12285
|
-
title: '品牌名称',
|
|
12286
|
-
width: 200,
|
|
12287
|
-
ellipsis: true
|
|
12288
|
-
}, {
|
|
12289
|
-
dataIndex: 'marketPrice',
|
|
12290
|
-
title: '市场价',
|
|
12291
|
-
width: 140,
|
|
12292
|
-
render: function render(price) {
|
|
12293
|
-
return Number(price).toFixed(2);
|
|
12294
|
-
}
|
|
12295
|
-
}, {
|
|
12296
|
-
dataIndex: 'retailPrice',
|
|
12297
|
-
title: '零售价',
|
|
12298
|
-
width: 140,
|
|
12299
|
-
render: function render(price) {
|
|
12300
|
-
return Number(price).toFixed(2);
|
|
12301
|
-
}
|
|
12302
|
-
}, {
|
|
12303
|
-
dataIndex: 'memberPrice',
|
|
12304
|
-
title: '会员价',
|
|
12305
|
-
width: 140,
|
|
12306
|
-
render: function render(price) {
|
|
12307
|
-
return Number(price).toFixed(2);
|
|
12308
|
-
}
|
|
12309
|
-
}];
|
|
12310
12719
|
var GoodList = function GoodList(props, ref) {
|
|
12311
12720
|
var _useState = React.useState([]),
|
|
12312
12721
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -12320,6 +12729,11 @@ var GoodList = function GoodList(props, ref) {
|
|
|
12320
12729
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
12321
12730
|
brandList = _useState6[0],
|
|
12322
12731
|
setBrandList = _useState6[1];
|
|
12732
|
+
var _useGetColumns = useGetColumns('wdt'),
|
|
12733
|
+
_useGetColumns2 = _slicedToArray(_useGetColumns, 3),
|
|
12734
|
+
columns = _useGetColumns2[0],
|
|
12735
|
+
showColumnsDataIndexList = _useGetColumns2[1],
|
|
12736
|
+
loading = _useGetColumns2[2];
|
|
12323
12737
|
React.useImperativeHandle(ref, function () {
|
|
12324
12738
|
return {
|
|
12325
12739
|
getSelectGoodList: function getSelectGoodList() {
|
|
@@ -12371,92 +12785,42 @@ var GoodList = function GoodList(props, ref) {
|
|
|
12371
12785
|
React__default['default'].useEffect(function () {
|
|
12372
12786
|
setGoodBrandList();
|
|
12373
12787
|
}, []);
|
|
12374
|
-
var
|
|
12375
|
-
|
|
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
|
-
width: 150
|
|
12409
|
-
}
|
|
12410
|
-
})), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
|
|
12411
|
-
name: "goodNo",
|
|
12412
|
-
style: {
|
|
12413
|
-
marginBottom: '12px'
|
|
12414
|
-
}
|
|
12415
|
-
}, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
12416
|
-
placeholder: "\u5546\u54C1\u7F16\u7801",
|
|
12417
|
-
allowClear: true,
|
|
12418
|
-
style: {
|
|
12419
|
-
width: 150
|
|
12420
|
-
}
|
|
12421
|
-
})), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
|
|
12422
|
-
name: "brandIds",
|
|
12423
|
-
style: {
|
|
12424
|
-
marginBottom: '12px'
|
|
12425
|
-
}
|
|
12426
|
-
}, /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
12427
|
-
mode: "multiple",
|
|
12428
|
-
showSearch: true,
|
|
12429
|
-
allowClear: true,
|
|
12430
|
-
filterOption: function filterOption(input, option) {
|
|
12431
|
-
return option.label.includes(input);
|
|
12432
|
-
},
|
|
12433
|
-
style: {
|
|
12434
|
-
width: 150
|
|
12435
|
-
},
|
|
12436
|
-
placeholder: "\u54C1\u724C",
|
|
12437
|
-
options: brandList.filter(function (item) {
|
|
12438
|
-
return !item.isDisabled;
|
|
12439
|
-
}).map(function (_ref2) {
|
|
12440
|
-
var value = _ref2.brandId,
|
|
12441
|
-
label = _ref2.brandName;
|
|
12442
|
-
return {
|
|
12443
|
-
value: value,
|
|
12444
|
-
label: label
|
|
12445
|
-
};
|
|
12446
|
-
})
|
|
12447
|
-
})), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
|
|
12448
|
-
style: {
|
|
12449
|
-
marginBottom: '12px'
|
|
12788
|
+
var searchFormData = [{
|
|
12789
|
+
label: 'SKU名称',
|
|
12790
|
+
name: 'skuName',
|
|
12791
|
+
dataIndex: 'specName'
|
|
12792
|
+
}, {
|
|
12793
|
+
label: 'SKU编码',
|
|
12794
|
+
name: 'skuCode',
|
|
12795
|
+
dataIndex: 'specNo'
|
|
12796
|
+
}, {
|
|
12797
|
+
label: '商品名称',
|
|
12798
|
+
name: 'goodName'
|
|
12799
|
+
}, {
|
|
12800
|
+
label: '商品编码',
|
|
12801
|
+
name: 'goodNo'
|
|
12802
|
+
}, {
|
|
12803
|
+
label: '品牌',
|
|
12804
|
+
name: 'brandIds',
|
|
12805
|
+
dataIndex: 'brandName',
|
|
12806
|
+
type: 'select',
|
|
12807
|
+
formItemProps: {
|
|
12808
|
+
mode: 'multiple',
|
|
12809
|
+
filterOption: function filterOption(input, option) {
|
|
12810
|
+
return option.label.includes(input);
|
|
12811
|
+
},
|
|
12812
|
+
options: brandList.filter(function (item) {
|
|
12813
|
+
return !item.isDisabled;
|
|
12814
|
+
}).map(function (_ref2) {
|
|
12815
|
+
var value = _ref2.brandId,
|
|
12816
|
+
label = _ref2.brandName;
|
|
12817
|
+
return {
|
|
12818
|
+
value: value,
|
|
12819
|
+
label: label
|
|
12820
|
+
};
|
|
12821
|
+
})
|
|
12450
12822
|
}
|
|
12451
|
-
}
|
|
12452
|
-
type: "primary",
|
|
12453
|
-
style: {
|
|
12454
|
-
marginRight: '8px'
|
|
12455
|
-
},
|
|
12456
|
-
onClick: submit
|
|
12457
|
-
}, "\u67E5\u8BE2"), /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
12458
|
-
onClick: reset
|
|
12459
|
-
}, "\u91CD\u7F6E")));
|
|
12823
|
+
}];
|
|
12460
12824
|
var rowSelection = {
|
|
12461
12825
|
selectedRowKeys: selectIds,
|
|
12462
12826
|
fixed: true,
|
|
@@ -12512,7 +12876,7 @@ var GoodList = function GoodList(props, ref) {
|
|
|
12512
12876
|
}
|
|
12513
12877
|
}, "\u5220\u9664");
|
|
12514
12878
|
}
|
|
12515
|
-
}].concat(lodash.takeRight(columns
|
|
12879
|
+
}].concat(lodash.takeRight(columns, columns.length - 1));
|
|
12516
12880
|
return selectList.length ? /*#__PURE__*/React__default['default'].createElement("div", {
|
|
12517
12881
|
style: {
|
|
12518
12882
|
width: '100%',
|
|
@@ -12534,14 +12898,23 @@ var GoodList = function GoodList(props, ref) {
|
|
|
12534
12898
|
}
|
|
12535
12899
|
})) : null;
|
|
12536
12900
|
};
|
|
12537
|
-
return /*#__PURE__*/React__default['default'].createElement(
|
|
12901
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Skeleton, {
|
|
12902
|
+
active: true,
|
|
12903
|
+
loading: loading
|
|
12904
|
+
}, /*#__PURE__*/React__default['default'].createElement(SearchForm, {
|
|
12905
|
+
searchFormData: searchFormData,
|
|
12906
|
+
form: form,
|
|
12907
|
+
showColumnsDataIndexList: showColumnsDataIndexList,
|
|
12908
|
+
submit: submit,
|
|
12909
|
+
reset: reset
|
|
12910
|
+
}), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
12538
12911
|
style: {
|
|
12539
12912
|
marginTop: '4px'
|
|
12540
12913
|
}
|
|
12541
12914
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Table, _objectSpread2({
|
|
12542
12915
|
rowSelection: rowSelection,
|
|
12543
12916
|
rowKey: "specNo",
|
|
12544
|
-
columns: columns
|
|
12917
|
+
columns: columns,
|
|
12545
12918
|
scroll: {
|
|
12546
12919
|
x: '100%',
|
|
12547
12920
|
y: 250
|
|
@@ -12590,132 +12963,50 @@ var GoodsModal$3 = function GoodsModal(props, ref) {
|
|
|
12590
12963
|
visible: visible,
|
|
12591
12964
|
width: width || 850,
|
|
12592
12965
|
onCancel: function onCancel() {
|
|
12593
|
-
_onCancel();
|
|
12594
|
-
},
|
|
12595
|
-
onOk: onOk,
|
|
12596
|
-
wrapClassName: "goodModal"
|
|
12597
|
-
}, /*#__PURE__*/React__default['default'].createElement(WdtGoodList, {
|
|
12598
|
-
ref: wdtGoodListRef
|
|
12599
|
-
})));
|
|
12600
|
-
};
|
|
12601
|
-
var WdtGoodsModal = /*#__PURE__*/React.forwardRef(GoodsModal$3);
|
|
12602
|
-
|
|
12603
|
-
var getTableData$1 = function getTableData(_ref, formData) {
|
|
12604
|
-
var current = _ref.current,
|
|
12605
|
-
pageSize = _ref.pageSize;
|
|
12606
|
-
return extendRequest('/qy/gdfw/product/product/page', {
|
|
12607
|
-
method: 'post',
|
|
12608
|
-
data: _objectSpread2({
|
|
12609
|
-
pageSize: pageSize,
|
|
12610
|
-
pageNo: current,
|
|
12611
|
-
platform: 'JST_ERP'
|
|
12612
|
-
}, formData)
|
|
12613
|
-
}).then(function (res) {
|
|
12614
|
-
var _res$data = res.data,
|
|
12615
|
-
_res$data$productSkuL = _res$data.productSkuList,
|
|
12616
|
-
productSkuList = _res$data$productSkuL === void 0 ? [] : _res$data$productSkuL,
|
|
12617
|
-
_res$data$total = _res$data.total,
|
|
12618
|
-
total = _res$data$total === void 0 ? 0 : _res$data$total;
|
|
12619
|
-
var newProducts = productSkuList.map(function (item, index) {
|
|
12620
|
-
return _objectSpread2({}, item);
|
|
12621
|
-
});
|
|
12622
|
-
return {
|
|
12623
|
-
total: total,
|
|
12624
|
-
list: newProducts
|
|
12625
|
-
};
|
|
12626
|
-
});
|
|
12627
|
-
};
|
|
12628
|
-
var columns$2 = [{
|
|
12629
|
-
dataIndex: 'index',
|
|
12630
|
-
title: 'NO',
|
|
12631
|
-
render: function render(val, record, index) {
|
|
12632
|
-
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
12633
|
-
style: {
|
|
12634
|
-
width: 25
|
|
12635
|
-
}
|
|
12636
|
-
}, index + 1);
|
|
12637
|
-
},
|
|
12638
|
-
width: 80
|
|
12639
|
-
}, {
|
|
12640
|
-
dataIndex: 'goodName',
|
|
12641
|
-
title: '商品名称',
|
|
12642
|
-
width: 250,
|
|
12643
|
-
ellipsis: true
|
|
12644
|
-
}, {
|
|
12645
|
-
dataIndex: 'goodNo',
|
|
12646
|
-
title: '商品编码',
|
|
12647
|
-
width: 200,
|
|
12648
|
-
ellipsis: true
|
|
12649
|
-
}, {
|
|
12650
|
-
dataIndex: 'styleCode',
|
|
12651
|
-
title: '款式编码',
|
|
12652
|
-
width: 200,
|
|
12653
|
-
ellipsis: true
|
|
12654
|
-
}, {
|
|
12655
|
-
dataIndex: 'propertiesValue',
|
|
12656
|
-
title: '规格值',
|
|
12657
|
-
width: 200,
|
|
12658
|
-
ellipsis: true
|
|
12659
|
-
}, {
|
|
12660
|
-
dataIndex: 'goodPicUrl',
|
|
12661
|
-
title: '商品图片',
|
|
12662
|
-
width: 100,
|
|
12663
|
-
render: function render(picUrl) {
|
|
12664
|
-
return /*#__PURE__*/React__default['default'].createElement("img", {
|
|
12665
|
-
style: {
|
|
12666
|
-
width: '40px',
|
|
12667
|
-
height: '40px',
|
|
12668
|
-
objectFit: 'contain'
|
|
12669
|
-
},
|
|
12670
|
-
src: picUrl
|
|
12966
|
+
_onCancel();
|
|
12967
|
+
},
|
|
12968
|
+
onOk: onOk,
|
|
12969
|
+
wrapClassName: "goodModal"
|
|
12970
|
+
}, /*#__PURE__*/React__default['default'].createElement(WdtGoodList, {
|
|
12971
|
+
ref: wdtGoodListRef
|
|
12972
|
+
})));
|
|
12973
|
+
};
|
|
12974
|
+
var WdtGoodsModal = /*#__PURE__*/React.forwardRef(GoodsModal$3);
|
|
12975
|
+
|
|
12976
|
+
var getTableData$1 = function getTableData(_ref, formData) {
|
|
12977
|
+
var current = _ref.current,
|
|
12978
|
+
pageSize = _ref.pageSize;
|
|
12979
|
+
return extendRequest('/qy/gdfw/product/product/page', {
|
|
12980
|
+
method: 'post',
|
|
12981
|
+
data: _objectSpread2({
|
|
12982
|
+
pageSize: pageSize,
|
|
12983
|
+
pageNo: current,
|
|
12984
|
+
platform: 'JST_ERP'
|
|
12985
|
+
}, formData)
|
|
12986
|
+
}).then(function (res) {
|
|
12987
|
+
var _res$data = res.data,
|
|
12988
|
+
_res$data$productSkuL = _res$data.productSkuList,
|
|
12989
|
+
productSkuList = _res$data$productSkuL === void 0 ? [] : _res$data$productSkuL,
|
|
12990
|
+
_res$data$total = _res$data.total,
|
|
12991
|
+
total = _res$data$total === void 0 ? 0 : _res$data$total;
|
|
12992
|
+
var newProducts = productSkuList.map(function (item, index) {
|
|
12993
|
+
return _objectSpread2({}, item);
|
|
12671
12994
|
});
|
|
12672
|
-
|
|
12673
|
-
|
|
12674
|
-
|
|
12675
|
-
|
|
12676
|
-
|
|
12677
|
-
|
|
12678
|
-
|
|
12679
|
-
|
|
12680
|
-
|
|
12681
|
-
width: 200,
|
|
12682
|
-
ellipsis: true
|
|
12683
|
-
}, {
|
|
12684
|
-
dataIndex: 'retailPrice',
|
|
12685
|
-
title: "\u9500\u552E\u4EF7\u683C",
|
|
12686
|
-
ellipsis: true,
|
|
12687
|
-
width: 100,
|
|
12688
|
-
render: function render(price) {
|
|
12689
|
-
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
12690
|
-
}
|
|
12691
|
-
}, {
|
|
12692
|
-
dataIndex: 'marketPrice',
|
|
12693
|
-
title: "\u5E02\u573A\u4EF7",
|
|
12694
|
-
ellipsis: true,
|
|
12695
|
-
width: 100,
|
|
12696
|
-
render: function render(price) {
|
|
12697
|
-
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
12698
|
-
}
|
|
12995
|
+
return {
|
|
12996
|
+
total: total,
|
|
12997
|
+
list: newProducts
|
|
12998
|
+
};
|
|
12999
|
+
});
|
|
13000
|
+
};
|
|
13001
|
+
var searchFormData = [{
|
|
13002
|
+
label: '商品名称',
|
|
13003
|
+
name: 'goodName'
|
|
12699
13004
|
}, {
|
|
12700
|
-
|
|
12701
|
-
|
|
12702
|
-
ellipsis: true,
|
|
12703
|
-
width: 100,
|
|
12704
|
-
render: function render(price) {
|
|
12705
|
-
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
12706
|
-
}
|
|
13005
|
+
label: '商品编码',
|
|
13006
|
+
name: 'goodNo'
|
|
12707
13007
|
}, {
|
|
12708
|
-
|
|
12709
|
-
|
|
12710
|
-
ellipsis: true,
|
|
12711
|
-
width: 100,
|
|
12712
|
-
render: function render() {
|
|
12713
|
-
var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'normal';
|
|
12714
|
-
return {
|
|
12715
|
-
'combine': '组合装商品',
|
|
12716
|
-
'normal': '普通商品'
|
|
12717
|
-
}[type] || type;
|
|
12718
|
-
}
|
|
13008
|
+
label: '款式编码',
|
|
13009
|
+
name: 'styleCode'
|
|
12719
13010
|
}];
|
|
12720
13011
|
var GoodList$1 = function GoodList(props, ref) {
|
|
12721
13012
|
var _useState = React.useState([]),
|
|
@@ -12726,6 +13017,11 @@ var GoodList$1 = function GoodList(props, ref) {
|
|
|
12726
13017
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
12727
13018
|
selectIds = _useState4[0],
|
|
12728
13019
|
setSelectIds = _useState4[1];
|
|
13020
|
+
var _useGetColumns = useGetColumns('jst'),
|
|
13021
|
+
_useGetColumns2 = _slicedToArray(_useGetColumns, 3),
|
|
13022
|
+
columns = _useGetColumns2[0],
|
|
13023
|
+
showColumnsDataIndexList = _useGetColumns2[1],
|
|
13024
|
+
loading = _useGetColumns2[2];
|
|
12729
13025
|
React.useImperativeHandle(ref, function () {
|
|
12730
13026
|
return {
|
|
12731
13027
|
getSelectGoodList: function getSelectGoodList() {
|
|
@@ -12745,55 +13041,6 @@ var GoodList$1 = function GoodList(props, ref) {
|
|
|
12745
13041
|
params = _useAntdTable.params;
|
|
12746
13042
|
var submit = search.submit,
|
|
12747
13043
|
reset = search.reset;
|
|
12748
|
-
var advanceSearchForm = /*#__PURE__*/React__default['default'].createElement(antd.Form, {
|
|
12749
|
-
layout: "inline",
|
|
12750
|
-
form: form
|
|
12751
|
-
}, /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
|
|
12752
|
-
name: "goodName",
|
|
12753
|
-
style: {
|
|
12754
|
-
marginBottom: '12px'
|
|
12755
|
-
}
|
|
12756
|
-
}, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
12757
|
-
placeholder: "\u5546\u54C1\u540D\u79F0",
|
|
12758
|
-
allowClear: true,
|
|
12759
|
-
style: {
|
|
12760
|
-
width: 150
|
|
12761
|
-
}
|
|
12762
|
-
})), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
|
|
12763
|
-
name: "goodNo",
|
|
12764
|
-
style: {
|
|
12765
|
-
marginBottom: '12px'
|
|
12766
|
-
}
|
|
12767
|
-
}, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
12768
|
-
placeholder: "\u5546\u54C1\u7F16\u7801",
|
|
12769
|
-
allowClear: true,
|
|
12770
|
-
style: {
|
|
12771
|
-
width: 150
|
|
12772
|
-
}
|
|
12773
|
-
})), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
|
|
12774
|
-
name: "styleCode",
|
|
12775
|
-
style: {
|
|
12776
|
-
marginBottom: '12px'
|
|
12777
|
-
}
|
|
12778
|
-
}, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
12779
|
-
placeholder: "\u6B3E\u5F0F\u7F16\u7801",
|
|
12780
|
-
allowClear: true,
|
|
12781
|
-
style: {
|
|
12782
|
-
width: 150
|
|
12783
|
-
}
|
|
12784
|
-
})), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
|
|
12785
|
-
style: {
|
|
12786
|
-
marginBottom: '12px'
|
|
12787
|
-
}
|
|
12788
|
-
}, /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
12789
|
-
type: "primary",
|
|
12790
|
-
style: {
|
|
12791
|
-
marginRight: '8px'
|
|
12792
|
-
},
|
|
12793
|
-
onClick: submit
|
|
12794
|
-
}, "\u67E5\u8BE2"), /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
12795
|
-
onClick: reset
|
|
12796
|
-
}, "\u91CD\u7F6E")));
|
|
12797
13044
|
var rowSelection = {
|
|
12798
13045
|
selectedRowKeys: selectIds,
|
|
12799
13046
|
fixed: true,
|
|
@@ -12858,7 +13105,7 @@ var GoodList$1 = function GoodList(props, ref) {
|
|
|
12858
13105
|
}
|
|
12859
13106
|
}, "\u5220\u9664");
|
|
12860
13107
|
}
|
|
12861
|
-
}].concat(lodash.takeRight(columns
|
|
13108
|
+
}].concat(lodash.takeRight(columns, columns.length - 1));
|
|
12862
13109
|
return selectList.length ? /*#__PURE__*/React__default['default'].createElement("div", {
|
|
12863
13110
|
style: {
|
|
12864
13111
|
width: '100%',
|
|
@@ -12880,14 +13127,23 @@ var GoodList$1 = function GoodList(props, ref) {
|
|
|
12880
13127
|
}
|
|
12881
13128
|
})) : null;
|
|
12882
13129
|
};
|
|
12883
|
-
return /*#__PURE__*/React__default['default'].createElement(
|
|
13130
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Skeleton, {
|
|
13131
|
+
active: true,
|
|
13132
|
+
loading: loading
|
|
13133
|
+
}, /*#__PURE__*/React__default['default'].createElement(SearchForm, {
|
|
13134
|
+
searchFormData: searchFormData,
|
|
13135
|
+
form: form,
|
|
13136
|
+
showColumnsDataIndexList: showColumnsDataIndexList,
|
|
13137
|
+
submit: submit,
|
|
13138
|
+
reset: reset
|
|
13139
|
+
}), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
12884
13140
|
style: {
|
|
12885
13141
|
marginTop: '4px'
|
|
12886
13142
|
}
|
|
12887
13143
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Table, _objectSpread2({
|
|
12888
13144
|
rowSelection: rowSelection,
|
|
12889
13145
|
rowKey: "goodNo",
|
|
12890
|
-
columns: columns
|
|
13146
|
+
columns: columns,
|
|
12891
13147
|
scroll: {
|
|
12892
13148
|
x: '100%',
|
|
12893
13149
|
y: 250
|
|
@@ -12932,156 +13188,75 @@ var GyGoodsModal = function GyGoodsModal(props, ref) {
|
|
|
12932
13188
|
var onOk = function onOk() {
|
|
12933
13189
|
var _gyGoodsListRef$curre;
|
|
12934
13190
|
var selectedList = ((_gyGoodsListRef$curre = gyGoodsListRef.current) === null || _gyGoodsListRef$curre === void 0 ? void 0 : _gyGoodsListRef$curre.getSelectGoodList()) || [];
|
|
12935
|
-
onSubmit(selectedList);
|
|
12936
|
-
_onCancel();
|
|
12937
|
-
};
|
|
12938
|
-
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, visible && /*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
12939
|
-
title: '选择商品',
|
|
12940
|
-
okText: '确认',
|
|
12941
|
-
cancelText: '取消',
|
|
12942
|
-
visible: visible,
|
|
12943
|
-
width: width || 850,
|
|
12944
|
-
onCancel: function onCancel() {
|
|
12945
|
-
_onCancel();
|
|
12946
|
-
},
|
|
12947
|
-
onOk: onOk,
|
|
12948
|
-
wrapClassName: "goodModal"
|
|
12949
|
-
}, /*#__PURE__*/React__default['default'].createElement(GyGoodsList, {
|
|
12950
|
-
ref: gyGoodsListRef,
|
|
12951
|
-
selectedRows: selectedRows
|
|
12952
|
-
})));
|
|
12953
|
-
};
|
|
12954
|
-
var JstGoodsModal = /*#__PURE__*/React.forwardRef(GyGoodsModal);
|
|
12955
|
-
|
|
12956
|
-
var getTableData$2 = function getTableData(_ref, formData) {
|
|
12957
|
-
var current = _ref.current,
|
|
12958
|
-
pageSize = _ref.pageSize;
|
|
12959
|
-
var data = {
|
|
12960
|
-
goodShortName: formData.goodShortName || null,
|
|
12961
|
-
goodNo: formData.goodNo || null,
|
|
12962
|
-
goodName: formData.goodName || null,
|
|
12963
|
-
skuCode: formData.skuCode || null,
|
|
12964
|
-
skuId: formData.skuId || null
|
|
12965
|
-
};
|
|
12966
|
-
return extendRequest('/qy/gdfw/product/product/page', {
|
|
12967
|
-
method: 'post',
|
|
12968
|
-
data: _objectSpread2({
|
|
12969
|
-
pageSize: pageSize,
|
|
12970
|
-
pageNo: current,
|
|
12971
|
-
platform: 'BS_E3_ERP'
|
|
12972
|
-
}, data)
|
|
12973
|
-
}).then(function (res) {
|
|
12974
|
-
var _res$data = res.data,
|
|
12975
|
-
_res$data$productSkuL = _res$data.productSkuList,
|
|
12976
|
-
productSkuList = _res$data$productSkuL === void 0 ? [] : _res$data$productSkuL,
|
|
12977
|
-
_res$data$total = _res$data.total,
|
|
12978
|
-
total = _res$data$total === void 0 ? 0 : _res$data$total;
|
|
12979
|
-
var newProducts = productSkuList.map(function (item, index) {
|
|
12980
|
-
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
12981
|
-
index: index + 1
|
|
12982
|
-
});
|
|
12983
|
-
});
|
|
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__default['default'].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
|
|
13191
|
+
onSubmit(selectedList);
|
|
13192
|
+
_onCancel();
|
|
13193
|
+
};
|
|
13194
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, visible && /*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
13195
|
+
title: '选择商品',
|
|
13196
|
+
okText: '确认',
|
|
13197
|
+
cancelText: '取消',
|
|
13198
|
+
visible: visible,
|
|
13199
|
+
width: width || 850,
|
|
13200
|
+
onCancel: function onCancel() {
|
|
13201
|
+
_onCancel();
|
|
13202
|
+
},
|
|
13203
|
+
onOk: onOk,
|
|
13204
|
+
wrapClassName: "goodModal"
|
|
13205
|
+
}, /*#__PURE__*/React__default['default'].createElement(GyGoodsList, {
|
|
13206
|
+
ref: gyGoodsListRef,
|
|
13207
|
+
selectedRows: selectedRows
|
|
13208
|
+
})));
|
|
13209
|
+
};
|
|
13210
|
+
var JstGoodsModal = /*#__PURE__*/React.forwardRef(GyGoodsModal);
|
|
13211
|
+
|
|
13212
|
+
var getTableData$2 = function getTableData(_ref, formData) {
|
|
13213
|
+
var current = _ref.current,
|
|
13214
|
+
pageSize = _ref.pageSize;
|
|
13215
|
+
var data = {
|
|
13216
|
+
goodShortName: formData.goodShortName || null,
|
|
13217
|
+
goodNo: formData.goodNo || null,
|
|
13218
|
+
goodName: formData.goodName || null,
|
|
13219
|
+
skuCode: formData.skuCode || null,
|
|
13220
|
+
skuId: formData.skuId || null
|
|
13221
|
+
};
|
|
13222
|
+
return extendRequest('/qy/gdfw/product/product/page', {
|
|
13223
|
+
method: 'post',
|
|
13224
|
+
data: _objectSpread2({
|
|
13225
|
+
pageSize: pageSize,
|
|
13226
|
+
pageNo: current,
|
|
13227
|
+
platform: 'BS_E3_ERP'
|
|
13228
|
+
}, data)
|
|
13229
|
+
}).then(function (res) {
|
|
13230
|
+
var _res$data = res.data,
|
|
13231
|
+
_res$data$productSkuL = _res$data.productSkuList,
|
|
13232
|
+
productSkuList = _res$data$productSkuL === void 0 ? [] : _res$data$productSkuL,
|
|
13233
|
+
_res$data$total = _res$data.total,
|
|
13234
|
+
total = _res$data$total === void 0 ? 0 : _res$data$total;
|
|
13235
|
+
var newProducts = productSkuList.map(function (item, index) {
|
|
13236
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
13237
|
+
index: index + 1
|
|
13238
|
+
});
|
|
13239
|
+
});
|
|
13240
|
+
return {
|
|
13241
|
+
total: total,
|
|
13242
|
+
list: newProducts
|
|
13243
|
+
};
|
|
13244
|
+
});
|
|
13245
|
+
};
|
|
13246
|
+
var searchFormData$1 = [{
|
|
13247
|
+
label: '商品货号',
|
|
13248
|
+
name: 'goodNo'
|
|
13070
13249
|
}, {
|
|
13071
|
-
|
|
13072
|
-
|
|
13073
|
-
ellipsis: true,
|
|
13074
|
-
width: 100
|
|
13250
|
+
label: '商品名称',
|
|
13251
|
+
name: 'goodName'
|
|
13075
13252
|
}, {
|
|
13076
|
-
|
|
13077
|
-
|
|
13078
|
-
|
|
13079
|
-
width: 100
|
|
13253
|
+
label: 'SKU',
|
|
13254
|
+
name: 'skuCode',
|
|
13255
|
+
dataIndex: 'specNo'
|
|
13080
13256
|
}, {
|
|
13081
|
-
|
|
13082
|
-
|
|
13083
|
-
|
|
13084
|
-
width: 100
|
|
13257
|
+
label: 'SKU ID',
|
|
13258
|
+
name: 'skuId',
|
|
13259
|
+
dataIndex: 'specId'
|
|
13085
13260
|
}];
|
|
13086
13261
|
var GoodList$2 = function GoodList(props, ref) {
|
|
13087
13262
|
var _useState = React.useState([]),
|
|
@@ -13092,6 +13267,11 @@ var GoodList$2 = function GoodList(props, ref) {
|
|
|
13092
13267
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
13093
13268
|
selectIds = _useState4[0],
|
|
13094
13269
|
setSelectIds = _useState4[1];
|
|
13270
|
+
var _useGetColumns = useGetColumns('bse3'),
|
|
13271
|
+
_useGetColumns2 = _slicedToArray(_useGetColumns, 3),
|
|
13272
|
+
columns = _useGetColumns2[0],
|
|
13273
|
+
showColumnsDataIndexList = _useGetColumns2[1],
|
|
13274
|
+
loading = _useGetColumns2[2];
|
|
13095
13275
|
React.useImperativeHandle(ref, function () {
|
|
13096
13276
|
return {
|
|
13097
13277
|
getSelectGoodList: function getSelectGoodList() {
|
|
@@ -13111,77 +13291,6 @@ var GoodList$2 = function GoodList(props, ref) {
|
|
|
13111
13291
|
params = _useAntdTable.params;
|
|
13112
13292
|
var submit = search.submit,
|
|
13113
13293
|
reset = search.reset;
|
|
13114
|
-
var advanceSearchForm = /*#__PURE__*/React__default['default'].createElement(antd.Form, {
|
|
13115
|
-
layout: "inline",
|
|
13116
|
-
form: form
|
|
13117
|
-
}, /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
|
|
13118
|
-
name: "goodShortName",
|
|
13119
|
-
style: {
|
|
13120
|
-
marginBottom: '12px'
|
|
13121
|
-
}
|
|
13122
|
-
}, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
13123
|
-
placeholder: "\u5546\u54C1\u7B80\u79F0",
|
|
13124
|
-
allowClear: true,
|
|
13125
|
-
style: {
|
|
13126
|
-
width: 150
|
|
13127
|
-
}
|
|
13128
|
-
})), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
|
|
13129
|
-
name: "goodNo",
|
|
13130
|
-
style: {
|
|
13131
|
-
marginBottom: '12px'
|
|
13132
|
-
}
|
|
13133
|
-
}, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
13134
|
-
placeholder: "\u5546\u54C1\u8D27\u53F7",
|
|
13135
|
-
allowClear: true,
|
|
13136
|
-
style: {
|
|
13137
|
-
width: 150
|
|
13138
|
-
}
|
|
13139
|
-
})), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
|
|
13140
|
-
name: "goodName",
|
|
13141
|
-
style: {
|
|
13142
|
-
marginBottom: '12px'
|
|
13143
|
-
}
|
|
13144
|
-
}, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
13145
|
-
placeholder: "\u5546\u54C1\u540D\u79F0",
|
|
13146
|
-
allowClear: true,
|
|
13147
|
-
style: {
|
|
13148
|
-
width: 150
|
|
13149
|
-
}
|
|
13150
|
-
})), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
|
|
13151
|
-
name: "skuCode",
|
|
13152
|
-
style: {
|
|
13153
|
-
marginBottom: '12px'
|
|
13154
|
-
}
|
|
13155
|
-
}, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
13156
|
-
placeholder: "SKU",
|
|
13157
|
-
allowClear: true,
|
|
13158
|
-
style: {
|
|
13159
|
-
width: 150
|
|
13160
|
-
}
|
|
13161
|
-
})), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
|
|
13162
|
-
name: "skuId",
|
|
13163
|
-
style: {
|
|
13164
|
-
marginBottom: '12px'
|
|
13165
|
-
}
|
|
13166
|
-
}, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
13167
|
-
placeholder: "SKU ID",
|
|
13168
|
-
allowClear: true,
|
|
13169
|
-
style: {
|
|
13170
|
-
width: 150
|
|
13171
|
-
}
|
|
13172
|
-
})), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
|
|
13173
|
-
style: {
|
|
13174
|
-
marginBottom: '12px'
|
|
13175
|
-
}
|
|
13176
|
-
}, /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
13177
|
-
type: "primary",
|
|
13178
|
-
style: {
|
|
13179
|
-
marginRight: '8px'
|
|
13180
|
-
},
|
|
13181
|
-
onClick: submit
|
|
13182
|
-
}, "\u67E5\u8BE2"), /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
13183
|
-
onClick: reset
|
|
13184
|
-
}, "\u91CD\u7F6E")));
|
|
13185
13294
|
var rowSelection = {
|
|
13186
13295
|
selectedRowKeys: selectIds,
|
|
13187
13296
|
fixed: true,
|
|
@@ -13237,7 +13346,7 @@ var GoodList$2 = function GoodList(props, ref) {
|
|
|
13237
13346
|
}
|
|
13238
13347
|
}, "\u5220\u9664");
|
|
13239
13348
|
}
|
|
13240
|
-
}].concat(lodash.takeRight(columns
|
|
13349
|
+
}].concat(lodash.takeRight(columns, columns.length - 1));
|
|
13241
13350
|
return selectList.length ? /*#__PURE__*/React__default['default'].createElement("div", {
|
|
13242
13351
|
style: {
|
|
13243
13352
|
width: '100%',
|
|
@@ -13259,14 +13368,23 @@ var GoodList$2 = function GoodList(props, ref) {
|
|
|
13259
13368
|
}
|
|
13260
13369
|
})) : null;
|
|
13261
13370
|
};
|
|
13262
|
-
return /*#__PURE__*/React__default['default'].createElement(
|
|
13371
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Skeleton, {
|
|
13372
|
+
active: true,
|
|
13373
|
+
loading: loading
|
|
13374
|
+
}, /*#__PURE__*/React__default['default'].createElement(SearchForm, {
|
|
13375
|
+
searchFormData: searchFormData$1,
|
|
13376
|
+
form: form,
|
|
13377
|
+
showColumnsDataIndexList: showColumnsDataIndexList,
|
|
13378
|
+
submit: submit,
|
|
13379
|
+
reset: reset
|
|
13380
|
+
}), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
13263
13381
|
style: {
|
|
13264
13382
|
marginTop: '4px'
|
|
13265
13383
|
}
|
|
13266
13384
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Table, _objectSpread2({
|
|
13267
13385
|
rowSelection: rowSelection,
|
|
13268
13386
|
rowKey: "specNo",
|
|
13269
|
-
columns: columns
|
|
13387
|
+
columns: columns,
|
|
13270
13388
|
scroll: {
|
|
13271
13389
|
x: '100%',
|
|
13272
13390
|
y: 250
|
|
@@ -13357,71 +13475,23 @@ var getTableData$3 = function getTableData(_ref, formData) {
|
|
|
13357
13475
|
};
|
|
13358
13476
|
});
|
|
13359
13477
|
};
|
|
13360
|
-
var
|
|
13361
|
-
|
|
13362
|
-
|
|
13363
|
-
render: function render(val, record, index) {
|
|
13364
|
-
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
13365
|
-
style: {
|
|
13366
|
-
width: 25
|
|
13367
|
-
}
|
|
13368
|
-
}, index + 1);
|
|
13369
|
-
},
|
|
13370
|
-
width: 80
|
|
13371
|
-
}, {
|
|
13372
|
-
dataIndex: 'specName',
|
|
13373
|
-
title: 'SKU名称',
|
|
13374
|
-
width: 250,
|
|
13375
|
-
ellipsis: true
|
|
13376
|
-
}, {
|
|
13377
|
-
dataIndex: 'specNo',
|
|
13378
|
-
title: 'SKU编码',
|
|
13379
|
-
width: 200,
|
|
13380
|
-
ellipsis: true
|
|
13381
|
-
}, {
|
|
13382
|
-
dataIndex: 'goodName',
|
|
13383
|
-
title: '商品名称',
|
|
13384
|
-
width: 250,
|
|
13385
|
-
ellipsis: true
|
|
13386
|
-
}, {
|
|
13387
|
-
dataIndex: 'goodShortName',
|
|
13388
|
-
title: "\u5546\u54C1\u7B80\u79F0",
|
|
13389
|
-
ellipsis: true,
|
|
13390
|
-
width: 250
|
|
13391
|
-
}, {
|
|
13392
|
-
dataIndex: 'goodNo',
|
|
13393
|
-
title: '商品编码',
|
|
13394
|
-
width: 200,
|
|
13395
|
-
ellipsis: true
|
|
13478
|
+
var searchFormData$2 = [{
|
|
13479
|
+
label: '商品简称',
|
|
13480
|
+
name: 'goodShortName'
|
|
13396
13481
|
}, {
|
|
13397
|
-
|
|
13398
|
-
|
|
13399
|
-
|
|
13400
|
-
render: function render(picUrl) {
|
|
13401
|
-
return /*#__PURE__*/React__default['default'].createElement("img", {
|
|
13402
|
-
style: {
|
|
13403
|
-
width: '40px',
|
|
13404
|
-
height: '40px',
|
|
13405
|
-
objectFit: 'contain'
|
|
13406
|
-
},
|
|
13407
|
-
src: picUrl
|
|
13408
|
-
});
|
|
13409
|
-
}
|
|
13482
|
+
label: '商品简称',
|
|
13483
|
+
name: 'skuName',
|
|
13484
|
+
dataIndex: 'specName'
|
|
13410
13485
|
}, {
|
|
13411
|
-
|
|
13412
|
-
|
|
13413
|
-
|
|
13414
|
-
ellipsis: true
|
|
13486
|
+
label: '商品sku编码',
|
|
13487
|
+
name: 'skuCode',
|
|
13488
|
+
dataIndex: 'specNo'
|
|
13415
13489
|
}, {
|
|
13416
|
-
|
|
13417
|
-
|
|
13418
|
-
ellipsis: true,
|
|
13419
|
-
width: 100
|
|
13490
|
+
label: '商品名称',
|
|
13491
|
+
name: 'goodName'
|
|
13420
13492
|
}, {
|
|
13421
|
-
|
|
13422
|
-
|
|
13423
|
-
ellipsis: true,
|
|
13424
|
-
width: 100
|
|
13493
|
+
label: '商品编码',
|
|
13494
|
+
name: 'goodNo'
|
|
13425
13495
|
}];
|
|
13426
13496
|
var GoodList$3 = function GoodList(props, ref) {
|
|
13427
13497
|
var _useState = React.useState([]),
|
|
@@ -13432,6 +13502,11 @@ var GoodList$3 = function GoodList(props, ref) {
|
|
|
13432
13502
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
13433
13503
|
selectIds = _useState4[0],
|
|
13434
13504
|
setSelectIds = _useState4[1];
|
|
13505
|
+
var _useGetColumns = useGetColumns('gy'),
|
|
13506
|
+
_useGetColumns2 = _slicedToArray(_useGetColumns, 3),
|
|
13507
|
+
columns = _useGetColumns2[0],
|
|
13508
|
+
showColumnsDataIndexList = _useGetColumns2[1],
|
|
13509
|
+
loading = _useGetColumns2[2];
|
|
13435
13510
|
React.useImperativeHandle(ref, function () {
|
|
13436
13511
|
return {
|
|
13437
13512
|
getSelectGoodList: function getSelectGoodList() {
|
|
@@ -13451,77 +13526,6 @@ var GoodList$3 = function GoodList(props, ref) {
|
|
|
13451
13526
|
params = _useAntdTable.params;
|
|
13452
13527
|
var submit = search.submit,
|
|
13453
13528
|
reset = search.reset;
|
|
13454
|
-
var advanceSearchForm = /*#__PURE__*/React__default['default'].createElement(antd.Form, {
|
|
13455
|
-
layout: "inline",
|
|
13456
|
-
form: form
|
|
13457
|
-
}, /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
|
|
13458
|
-
name: "goodShortName",
|
|
13459
|
-
style: {
|
|
13460
|
-
marginBottom: '12px'
|
|
13461
|
-
}
|
|
13462
|
-
}, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
13463
|
-
placeholder: "\u5546\u54C1\u7B80\u79F0",
|
|
13464
|
-
allowClear: true,
|
|
13465
|
-
style: {
|
|
13466
|
-
width: 150
|
|
13467
|
-
}
|
|
13468
|
-
})), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
|
|
13469
|
-
name: "skuName",
|
|
13470
|
-
style: {
|
|
13471
|
-
marginBottom: '12px'
|
|
13472
|
-
}
|
|
13473
|
-
}, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
13474
|
-
placeholder: "\u5546\u54C1sku\u540D\u79F0",
|
|
13475
|
-
allowClear: true,
|
|
13476
|
-
style: {
|
|
13477
|
-
width: 150
|
|
13478
|
-
}
|
|
13479
|
-
})), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
|
|
13480
|
-
name: "skuCode",
|
|
13481
|
-
style: {
|
|
13482
|
-
marginBottom: '12px'
|
|
13483
|
-
}
|
|
13484
|
-
}, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
13485
|
-
placeholder: "\u5546\u54C1sku\u7F16\u7801",
|
|
13486
|
-
allowClear: true,
|
|
13487
|
-
style: {
|
|
13488
|
-
width: 150
|
|
13489
|
-
}
|
|
13490
|
-
})), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
|
|
13491
|
-
name: "goodName",
|
|
13492
|
-
style: {
|
|
13493
|
-
marginBottom: '12px'
|
|
13494
|
-
}
|
|
13495
|
-
}, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
13496
|
-
placeholder: "\u5546\u54C1\u540D\u79F0",
|
|
13497
|
-
allowClear: true,
|
|
13498
|
-
style: {
|
|
13499
|
-
width: 150
|
|
13500
|
-
}
|
|
13501
|
-
})), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
|
|
13502
|
-
name: "goodNo",
|
|
13503
|
-
style: {
|
|
13504
|
-
marginBottom: '12px'
|
|
13505
|
-
}
|
|
13506
|
-
}, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
13507
|
-
placeholder: "\u5546\u54C1\u7F16\u7801",
|
|
13508
|
-
allowClear: true,
|
|
13509
|
-
style: {
|
|
13510
|
-
width: 150
|
|
13511
|
-
}
|
|
13512
|
-
})), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
|
|
13513
|
-
style: {
|
|
13514
|
-
marginBottom: '12px'
|
|
13515
|
-
}
|
|
13516
|
-
}, /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
13517
|
-
type: "primary",
|
|
13518
|
-
style: {
|
|
13519
|
-
marginRight: '8px'
|
|
13520
|
-
},
|
|
13521
|
-
onClick: submit
|
|
13522
|
-
}, "\u67E5\u8BE2"), /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
13523
|
-
onClick: reset
|
|
13524
|
-
}, "\u91CD\u7F6E")));
|
|
13525
13529
|
var rowSelection = {
|
|
13526
13530
|
selectedRowKeys: selectIds,
|
|
13527
13531
|
fixed: true,
|
|
@@ -13577,7 +13581,7 @@ var GoodList$3 = function GoodList(props, ref) {
|
|
|
13577
13581
|
}
|
|
13578
13582
|
}, "\u5220\u9664");
|
|
13579
13583
|
}
|
|
13580
|
-
}].concat(lodash.takeRight(columns
|
|
13584
|
+
}].concat(lodash.takeRight(columns, columns.length - 1));
|
|
13581
13585
|
return selectList.length ? /*#__PURE__*/React__default['default'].createElement("div", {
|
|
13582
13586
|
style: {
|
|
13583
13587
|
width: '100%',
|
|
@@ -13599,14 +13603,23 @@ var GoodList$3 = function GoodList(props, ref) {
|
|
|
13599
13603
|
}
|
|
13600
13604
|
})) : null;
|
|
13601
13605
|
};
|
|
13602
|
-
return /*#__PURE__*/React__default['default'].createElement(
|
|
13606
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Skeleton, {
|
|
13607
|
+
active: true,
|
|
13608
|
+
loading: loading
|
|
13609
|
+
}, /*#__PURE__*/React__default['default'].createElement(SearchForm, {
|
|
13610
|
+
searchFormData: searchFormData$2,
|
|
13611
|
+
form: form,
|
|
13612
|
+
showColumnsDataIndexList: showColumnsDataIndexList,
|
|
13613
|
+
submit: submit,
|
|
13614
|
+
reset: reset
|
|
13615
|
+
}), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
13603
13616
|
style: {
|
|
13604
13617
|
marginTop: '4px'
|
|
13605
13618
|
}
|
|
13606
13619
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Table, _objectSpread2({
|
|
13607
13620
|
rowSelection: rowSelection,
|
|
13608
13621
|
rowKey: "id",
|
|
13609
|
-
columns: columns
|
|
13622
|
+
columns: columns,
|
|
13610
13623
|
scroll: {
|
|
13611
13624
|
x: '100%',
|
|
13612
13625
|
y: 250
|
|
@@ -14086,7 +14099,7 @@ var getWdtReissueGoodColumns = function getWdtReissueGoodColumns(_ref2) {
|
|
|
14086
14099
|
var disabled = _ref2.disabled,
|
|
14087
14100
|
updateHandle = _ref2.updateHandle,
|
|
14088
14101
|
operate = _ref2.operate;
|
|
14089
|
-
return getColumnsMap()['WDT_REISSUE_GOODS'].map(function (item) {
|
|
14102
|
+
return getColumnsMap$1()['WDT_REISSUE_GOODS'].map(function (item) {
|
|
14090
14103
|
var newItem = _objectSpread2({
|
|
14091
14104
|
align: 'center',
|
|
14092
14105
|
ellipsis: true
|
|
@@ -15609,7 +15622,7 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
15609
15622
|
};
|
|
15610
15623
|
};
|
|
15611
15624
|
|
|
15612
|
-
var getColumnsMap = function getColumnsMap(args) {
|
|
15625
|
+
var getColumnsMap$1 = function getColumnsMap(args) {
|
|
15613
15626
|
var _ref = args || {},
|
|
15614
15627
|
_ref$text = _ref.text,
|
|
15615
15628
|
text = _ref$text === void 0 ? '' : _ref$text,
|
|
@@ -15649,8 +15662,8 @@ var getColumnsMap = function getColumnsMap(args) {
|
|
|
15649
15662
|
})['default']
|
|
15650
15663
|
});
|
|
15651
15664
|
};
|
|
15652
|
-
var getColumnsBaseInfo = function getColumnsBaseInfo() {
|
|
15653
|
-
var clone_columnsMap = lodash.cloneDeep(getColumnsMap());
|
|
15665
|
+
var getColumnsBaseInfo$1 = function getColumnsBaseInfo() {
|
|
15666
|
+
var clone_columnsMap = lodash.cloneDeep(getColumnsMap$1());
|
|
15654
15667
|
var newColumns = {};
|
|
15655
15668
|
Object.keys(clone_columnsMap).forEach(function (key) {
|
|
15656
15669
|
newColumns[key] = clone_columnsMap[key].map(function (col) {
|
|
@@ -15662,7 +15675,7 @@ var getColumnsBaseInfo = function getColumnsBaseInfo() {
|
|
|
15662
15675
|
});
|
|
15663
15676
|
return newColumns;
|
|
15664
15677
|
};
|
|
15665
|
-
var columnsBaseInfoMap = getColumnsBaseInfo();
|
|
15678
|
+
var columnsBaseInfoMap = getColumnsBaseInfo$1();
|
|
15666
15679
|
|
|
15667
15680
|
var renderFieldMap$1 = {
|
|
15668
15681
|
goodsNumber: function goodsNumber(_ref) {
|
|
@@ -15729,7 +15742,7 @@ var getBsE3ReissueGoodColumns = function getBsE3ReissueGoodColumns(_ref4) {
|
|
|
15729
15742
|
var disabled = _ref4.disabled,
|
|
15730
15743
|
updateHandle = _ref4.updateHandle,
|
|
15731
15744
|
operate = _ref4.operate;
|
|
15732
|
-
return getColumnsMap()['BS_E3_REISSUE_GOODS'].map(function (item) {
|
|
15745
|
+
return getColumnsMap$1()['BS_E3_REISSUE_GOODS'].map(function (item) {
|
|
15733
15746
|
var newItem = _objectSpread2({
|
|
15734
15747
|
align: 'center',
|
|
15735
15748
|
ellipsis: true
|
|
@@ -15988,7 +16001,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
15988
16001
|
case 'GY_REISSUE_GOODS':
|
|
15989
16002
|
case 'GY_RETURN_GOODS':
|
|
15990
16003
|
{
|
|
15991
|
-
columns = getColumnsMap({
|
|
16004
|
+
columns = getColumnsMap$1({
|
|
15992
16005
|
text: text,
|
|
15993
16006
|
disabled: disabled || columnsOptions.disabled,
|
|
15994
16007
|
updateHandle: updateHandle,
|
|
@@ -16015,7 +16028,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
16015
16028
|
}
|
|
16016
16029
|
break;
|
|
16017
16030
|
default:
|
|
16018
|
-
columns = getColumnsMap({
|
|
16031
|
+
columns = getColumnsMap$1({
|
|
16019
16032
|
text: text,
|
|
16020
16033
|
disabled: disabled || columnsOptions.disabled,
|
|
16021
16034
|
updateHandle: updateHandle,
|
|
@@ -17152,7 +17165,7 @@ var rowKeyMap = {
|
|
|
17152
17165
|
GY_SYSTEM_ORDER: 'billNo',
|
|
17153
17166
|
JST_SYSTEM_ORDER: 'oId'
|
|
17154
17167
|
};
|
|
17155
|
-
var index$
|
|
17168
|
+
var index$3 = (function (props) {
|
|
17156
17169
|
var value = props.value,
|
|
17157
17170
|
_onChange = props.onChange,
|
|
17158
17171
|
disabled = props.disabled,
|
|
@@ -19157,7 +19170,7 @@ var Goods$1 = function Goods(props, ref) {
|
|
|
19157
19170
|
userNick: userNick
|
|
19158
19171
|
}));
|
|
19159
19172
|
};
|
|
19160
|
-
var index$
|
|
19173
|
+
var index$4 = /*#__PURE__*/React.forwardRef(Goods$1);
|
|
19161
19174
|
|
|
19162
19175
|
var _excluded$k = ["onChange", "value", "failValue"];
|
|
19163
19176
|
function CommonStatus(props) {
|
|
@@ -20281,7 +20294,7 @@ exports.BsExchange = BsExchange;
|
|
|
20281
20294
|
exports.BsGoods = BsGoods;
|
|
20282
20295
|
exports.BsReissue = BsReissue;
|
|
20283
20296
|
exports.BsReturn = BsReturnGoods;
|
|
20284
|
-
exports.BsSystemOrder = index$
|
|
20297
|
+
exports.BsSystemOrder = index$3;
|
|
20285
20298
|
exports.BuyerNick = BuyerNick;
|
|
20286
20299
|
exports.CalculationInput = CalculationInput;
|
|
20287
20300
|
exports.ChooseBaby = ChooseBaby;
|
|
@@ -20294,7 +20307,7 @@ exports.CommonSystemOrder = CommonSystemOrder;
|
|
|
20294
20307
|
exports.CopyTextIcon = CopyTextIcon;
|
|
20295
20308
|
exports.ExpressLogistics = ExpressLogistics;
|
|
20296
20309
|
exports.Goods = Goods;
|
|
20297
|
-
exports.GoodsTable = index$
|
|
20310
|
+
exports.GoodsTable = index$4;
|
|
20298
20311
|
exports.GyReissue = GyReissue;
|
|
20299
20312
|
exports.GyReturn = GyReturnGoods;
|
|
20300
20313
|
exports.IdentifyAddress = IdentifyAddress;
|
|
@@ -20322,5 +20335,6 @@ exports.WdtGoodList = WdtGoodList;
|
|
|
20322
20335
|
exports.WdtReissue = wdtReissue;
|
|
20323
20336
|
exports.WlnGoods = WlnGoods;
|
|
20324
20337
|
exports.columnsBaseInfoMap = columnsBaseInfoMap;
|
|
20338
|
+
exports.erpModalColumnsMap = index$2;
|
|
20325
20339
|
exports.getJstColumns = getColumns$5;
|
|
20326
20340
|
exports.getWlnColumns = getColumns$3;
|