@kmkf-fe-packages/basic-components 2.2.13-beta.8 → 2.2.13-beta.80
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 +1373 -880
- package/dist/index.js +1372 -878
- package/dist/src/bs/SystemOrder/index.d.ts +5 -0
- package/dist/src/bs/component/GoodItem/constants/wdtReissueGoodsColumns.d.ts +2 -1
- package/dist/src/bs/component/GoodItem/index.d.ts +2 -0
- package/dist/src/bs/component/GoodsModal.d.ts +2 -0
- package/dist/src/bs/component/model/BsE3GoodList.d.ts +1 -0
- package/dist/src/bs/component/model/Columns/Erp/bse3.d.ts +2 -0
- package/dist/src/bs/component/model/Columns/Erp/common.d.ts +2 -0
- package/dist/src/bs/component/model/Columns/Erp/gy.d.ts +1 -1
- package/dist/src/bs/component/model/Columns/Erp/jst.d.ts +1 -7
- package/dist/src/bs/component/model/Columns/Erp/jy.d.ts +5 -5
- package/dist/src/bs/component/model/Columns/Erp/km.d.ts +0 -6
- package/dist/src/bs/component/model/Columns/Erp/wdt.d.ts +2 -2
- package/dist/src/bs/component/model/GyGoodsList.d.ts +2 -0
- package/dist/src/bs/component/model/JstGoodsModal/GoodsList.d.ts +1 -0
- package/dist/src/bs/component/model/JyGoodsModal/GoodsList.d.ts +15 -14
- package/dist/src/bs/component/model/KmGoodsModal/GoodsList.d.ts +1 -0
- package/dist/src/bs/component/model/WdtGoodList.d.ts +1 -0
- package/dist/src/bs/component/model/WorkOrderList/index.d.ts +1 -0
- package/dist/src/bs/component/model/WorkOrderList/useDefaultSearchValue.d.ts +10 -0
- package/dist/src/bs/component/model/components/SearchForm/index.d.ts +1 -0
- package/dist/src/bs/component/model/type.d.ts +3 -0
- package/dist/src/constants/systemOrderColumnsMap.d.ts +68 -0
- package/dist/src/index.d.ts +1 -0
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -3,7 +3,7 @@ import { Cascader, DatePicker, InputNumber, Input, Select, Upload, Image, messag
|
|
|
3
3
|
import { EyeOutlined, DeleteOutlined, CloseOutlined, PlusSquareOutlined, MinusCircleFilled, PlusCircleFilled, CopyOutlined, CloseCircleOutlined, CaretUpOutlined, UpOutlined, DownOutlined, PlusOutlined, VideoCameraTwoTone } from '@ant-design/icons';
|
|
4
4
|
import request, { extend as extend$1 } from 'umi-request';
|
|
5
5
|
import { CopyToClipboard } from 'react-copy-to-clipboard';
|
|
6
|
-
import { AddressData, BsAddressData, WdtAddressData, GyAddressData, request as request$1, ExpressData, isNull, imgResize, uuid, servers, columnsGoodsList, LogisticsAddressData, SendDataCenter, hasAddNullComponent, SUBMIT_TIME_ID, UPGRADE_TIME_ID, FINAL_TIME_ID, CUSTOM_TIME_ID, useStatus, finalFormData, transformList, dataSourceTrans, DATA_SPLIT_COMPONENT_FIELDS_MAP, BS_E3_BOOLEAN_STATUS_MAP, filterWdtOrders, WDT_ORDER_TYPE_MAP, tradeStatusMap, filterBsE3Orders, filterGyOrders, GY_DELIVERY_STATE_MAPPING, filterJstOrders, filterJyOrders, filterKmOrders, getIsPlatformCodesIncludeOrderNos, BS_SYSTEM_ORDER_CONFIG, KM_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, JST_SYSTEM_ORDER_CONFIG, JY_SYSTEM_ORDER_CONFIG, updateOrderSubFormGoodsHandle, updateWlnGoodsHandle, updateWdtGoodsHandle, updateBsE3GoodsHandle, updateGyGoodsHandle, updateJstGoodsHandle, updateKmGoodsHandle, updateJyGoodsHandle, jstMergeIdenticalGoods, msgTypeCh, pushGyLog, skxSystemOrderBackValues, skxReturnSystemOrderBackValues, formatTrade, updateSkxGoodsHandle, formatReturnTrade, updateSkxReturnGoodsHandle } from '@kmkf-fe-packages/kmkf-utils';
|
|
6
|
+
import { AddressData, BsAddressData, WdtAddressData, GyAddressData, request as request$1, ExpressData, isNull, imgResize, uuid, servers, columnsGoodsList, LogisticsAddressData, SendDataCenter, hasAddNullComponent, SUBMIT_TIME_ID, UPGRADE_TIME_ID, FINAL_TIME_ID, CUSTOM_TIME_ID, useStatus, finalFormData, transformList, dataSourceTrans, DATA_SPLIT_COMPONENT_FIELDS_MAP, findLabelBySelectValue, BS_E3_BOOLEAN_STATUS_MAP, filterWdtOrders, WDT_ORDER_TYPE_MAP, tradeStatusMap, filterBsE3Orders, filterGyOrders, GY_DELIVERY_STATE_MAPPING, filterJstOrders, filterJyOrders, JY_ORDER_TYPE_MAP, JY_ORDER_STATUS_MAP, filterKmOrders, getSystemShowHead, getIsPlatformCodesIncludeOrderNos, BS_SYSTEM_ORDER_CONFIG, KM_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, JST_SYSTEM_ORDER_CONFIG, JY_SYSTEM_ORDER_CONFIG, updateOrderSubFormGoodsHandle, updateWlnGoodsHandle, updateWdtGoodsHandle, updateBsE3GoodsHandle, updateGyGoodsHandle, updateJstGoodsHandle, updateKmGoodsHandle, updateJyGoodsHandle, jstMergeIdenticalGoods, msgTypeCh, pushGyLog, skxSystemOrderBackValues, skxReturnSystemOrderBackValues, formatTrade, updateSkxGoodsHandle, formatReturnTrade, updateSkxReturnGoodsHandle } from '@kmkf-fe-packages/kmkf-utils';
|
|
7
7
|
import every from 'lodash/every';
|
|
8
8
|
import maxBy from 'lodash/maxBy';
|
|
9
9
|
import { debounce, isNaN as isNaN$1, isNumber as isNumber$1, uniqBy, cloneDeep, difference, differenceWith, isBoolean, isEqual, takeRight, reject as reject$1, intersection, isEmpty } from 'lodash';
|
|
@@ -10416,8 +10416,10 @@ function CopyTextIcon(_ref) {
|
|
|
10416
10416
|
justifyContent: 'center'
|
|
10417
10417
|
}
|
|
10418
10418
|
}, /*#__PURE__*/React.createElement("span", {
|
|
10419
|
+
className: "ellipsis-text-3",
|
|
10419
10420
|
style: {
|
|
10420
10421
|
marginRight: 8,
|
|
10422
|
+
flex: 1,
|
|
10421
10423
|
overflow: 'hidden',
|
|
10422
10424
|
textOverflow: 'ellipsis',
|
|
10423
10425
|
whiteSpace: 'nowrap'
|
|
@@ -13830,7 +13832,7 @@ var jstGoods = function jstGoods(props) {
|
|
|
13830
13832
|
onChange: function onChange(val) {
|
|
13831
13833
|
changeInputHandle(val, 'logisticsCompany');
|
|
13832
13834
|
},
|
|
13833
|
-
value:
|
|
13835
|
+
value: ['gy', 'jy'].includes(platformType) ? (expressDateInstance === null || expressDateInstance === void 0 ? void 0 : expressDateInstance.getExpressNameByCode((_value$changeIndex2 = value[changeIndex]) === null || _value$changeIndex2 === void 0 ? void 0 : _value$changeIndex2['logisticsCompany'], false)) ? (_value$changeIndex3 = value[changeIndex]) === null || _value$changeIndex3 === void 0 ? void 0 : _value$changeIndex3['logisticsCompany'] : (_value$changeIndex4 = value[changeIndex]) === null || _value$changeIndex4 === void 0 ? void 0 : _value$changeIndex4['logisticsCompanyName'] : (_value$changeIndex5 = value[changeIndex]) === null || _value$changeIndex5 === void 0 ? void 0 : _value$changeIndex5['logisticsCompany'],
|
|
13834
13836
|
showSearch: true,
|
|
13835
13837
|
dropdownMatchSelectWidth: false,
|
|
13836
13838
|
filterOption: function filterOption(input, option) {
|
|
@@ -13977,6 +13979,18 @@ var ItemList = function ItemList(props) {
|
|
|
13977
13979
|
}, "\u6682\u4E0D\u652F\u6301\u6DFB\u52A0")) : null);
|
|
13978
13980
|
};
|
|
13979
13981
|
|
|
13982
|
+
var renderTextEllipsis = function renderTextEllipsis(value) {
|
|
13983
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
13984
|
+
className: "ellipsis-text-3"
|
|
13985
|
+
}, value);
|
|
13986
|
+
};
|
|
13987
|
+
|
|
13988
|
+
var css_248z$b = ".GoodModalColumns .ellipsis-text-3 {\n display: -webkit-box;\n overflow: hidden;\n white-space: normal !important;\n text-overflow: ellipsis;\n word-break: break-all;\n overflow-wrap: anywhere;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 3;\n line-clamp: 3;\n}\n";
|
|
13989
|
+
styleInject(css_248z$b);
|
|
13990
|
+
|
|
13991
|
+
var css_248z$c = ".search-form .ant-form-item {\n margin-right: 0px !important;\n margin-bottom: 12px !important;\n padding-right: 10px !important;\n}\n@media (max-width: 600px) {\n .search-form {\n display: flex;\n flex-wrap: wrap;\n }\n .search-form .ant-form-item {\n box-sizing: border-box;\n width: 33.33% !important;\n }\n .search-form .ant-input-affix-wrapper,\n .search-form .ant-select,\n .search-form .ant-select-selector {\n width: 100% !important;\n }\n .search-form .search-form-actions .ant-form-item-control-input-content {\n display: flex;\n flex-wrap: nowrap;\n justify-content: space-between;\n }\n .search-form .search-form-actions .ant-form-item-control-input-content .ant-btn {\n width: calc((100% - 8px) / 2) !important;\n }\n}\n";
|
|
13992
|
+
styleInject(css_248z$c);
|
|
13993
|
+
|
|
13980
13994
|
var _excluded$d = ["shopId"];
|
|
13981
13995
|
var columns = [{
|
|
13982
13996
|
dataIndex: 'index',
|
|
@@ -13991,44 +14005,39 @@ var columns = [{
|
|
|
13991
14005
|
}, {
|
|
13992
14006
|
dataIndex: 'skuName',
|
|
13993
14007
|
title: '商品sku名称',
|
|
13994
|
-
|
|
13995
|
-
ellipsis: true
|
|
14008
|
+
width: 300,
|
|
14009
|
+
ellipsis: true,
|
|
14010
|
+
render: renderTextEllipsis
|
|
13996
14011
|
}, {
|
|
13997
14012
|
dataIndex: 'skuCode',
|
|
13998
14013
|
title: '商品sku编码',
|
|
13999
|
-
|
|
14000
|
-
ellipsis: true
|
|
14014
|
+
width: 200,
|
|
14015
|
+
ellipsis: true,
|
|
14016
|
+
render: renderTextEllipsis
|
|
14001
14017
|
}, {
|
|
14002
14018
|
dataIndex: 'name',
|
|
14003
14019
|
title: '商品名称',
|
|
14004
|
-
|
|
14005
|
-
ellipsis: true
|
|
14020
|
+
width: 200,
|
|
14021
|
+
ellipsis: true,
|
|
14022
|
+
render: renderTextEllipsis
|
|
14006
14023
|
}, {
|
|
14007
14024
|
dataIndex: 'goodsId',
|
|
14008
14025
|
title: '商品id',
|
|
14009
|
-
|
|
14010
|
-
ellipsis: true
|
|
14026
|
+
width: 200,
|
|
14027
|
+
ellipsis: true,
|
|
14028
|
+
render: renderTextEllipsis
|
|
14011
14029
|
}, {
|
|
14012
14030
|
dataIndex: 'code',
|
|
14013
14031
|
title: '商品编码',
|
|
14014
|
-
|
|
14015
|
-
|
|
14016
|
-
|
|
14017
|
-
style: {
|
|
14018
|
-
width: '100px'
|
|
14019
|
-
}
|
|
14020
|
-
}, val);
|
|
14021
|
-
}
|
|
14032
|
+
width: 200,
|
|
14033
|
+
ellipsis: true,
|
|
14034
|
+
render: renderTextEllipsis
|
|
14022
14035
|
}, {
|
|
14023
14036
|
dataIndex: 'marketPrice',
|
|
14024
14037
|
title: '市场价',
|
|
14025
|
-
|
|
14026
|
-
|
|
14027
|
-
|
|
14028
|
-
width: '70px'
|
|
14029
|
-
}
|
|
14030
|
-
}, val);
|
|
14031
|
-
}
|
|
14038
|
+
width: 70,
|
|
14039
|
+
ellipsis: true,
|
|
14040
|
+
render: renderTextEllipsis
|
|
14032
14041
|
}];
|
|
14033
14042
|
var GoodsModal$1 = function GoodsModal(props, ref) {
|
|
14034
14043
|
useImperativeHandle(ref, function () {
|
|
@@ -14297,27 +14306,27 @@ var GoodsModal$1 = function GoodsModal(props, ref) {
|
|
|
14297
14306
|
}, {
|
|
14298
14307
|
dataIndex: 'skuName',
|
|
14299
14308
|
title: '商品sku名称',
|
|
14300
|
-
|
|
14309
|
+
width: 300,
|
|
14301
14310
|
ellipsis: true
|
|
14302
14311
|
}, {
|
|
14303
14312
|
dataIndex: 'skuCode',
|
|
14304
14313
|
title: '商品sku编码',
|
|
14305
|
-
|
|
14314
|
+
width: 200,
|
|
14306
14315
|
ellipsis: true
|
|
14307
14316
|
}, {
|
|
14308
14317
|
dataIndex: 'name',
|
|
14309
14318
|
title: '商品名称',
|
|
14310
|
-
|
|
14319
|
+
width: 200,
|
|
14311
14320
|
ellipsis: true
|
|
14312
14321
|
}, {
|
|
14313
14322
|
dataIndex: 'goodsId',
|
|
14314
14323
|
title: '商品id',
|
|
14315
|
-
|
|
14324
|
+
width: 200,
|
|
14316
14325
|
ellipsis: true
|
|
14317
14326
|
}, {
|
|
14318
14327
|
dataIndex: 'code',
|
|
14319
14328
|
title: '商品编码',
|
|
14320
|
-
|
|
14329
|
+
width: 200,
|
|
14321
14330
|
render: function render(val) {
|
|
14322
14331
|
return /*#__PURE__*/React.createElement("div", {
|
|
14323
14332
|
style: {
|
|
@@ -14346,9 +14355,10 @@ var GoodsModal$1 = function GoodsModal(props, ref) {
|
|
|
14346
14355
|
rowKey: 'skuCode',
|
|
14347
14356
|
dataSource: selectList,
|
|
14348
14357
|
scroll: {
|
|
14349
|
-
x:
|
|
14358
|
+
x: '100%',
|
|
14350
14359
|
y: 250
|
|
14351
14360
|
},
|
|
14361
|
+
size: "small",
|
|
14352
14362
|
pagination: {
|
|
14353
14363
|
size: 'small',
|
|
14354
14364
|
total: selectIds.length,
|
|
@@ -14372,6 +14382,7 @@ var GoodsModal$1 = function GoodsModal(props, ref) {
|
|
|
14372
14382
|
top: 20
|
|
14373
14383
|
}
|
|
14374
14384
|
}, /*#__PURE__*/React.createElement(Form, {
|
|
14385
|
+
className: "search-form",
|
|
14375
14386
|
layout: "inline",
|
|
14376
14387
|
form: form,
|
|
14377
14388
|
onFinish: onFinish,
|
|
@@ -14420,7 +14431,12 @@ var GoodsModal$1 = function GoodsModal(props, ref) {
|
|
|
14420
14431
|
style: {
|
|
14421
14432
|
width: 150
|
|
14422
14433
|
}
|
|
14423
|
-
})), /*#__PURE__*/React.createElement(Form.Item,
|
|
14434
|
+
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
14435
|
+
className: "search-form-actions"
|
|
14436
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
14437
|
+
style: {
|
|
14438
|
+
marginRight: '8px'
|
|
14439
|
+
},
|
|
14424
14440
|
type: "primary",
|
|
14425
14441
|
htmlType: "submit"
|
|
14426
14442
|
}, "\u67E5\u8BE2"), /*#__PURE__*/React.createElement(Button, {
|
|
@@ -14428,14 +14444,17 @@ var GoodsModal$1 = function GoodsModal(props, ref) {
|
|
|
14428
14444
|
}, "\u91CD\u7F6E"))), /*#__PURE__*/React.createElement(Spin, {
|
|
14429
14445
|
spinning: loading
|
|
14430
14446
|
}, /*#__PURE__*/React.createElement(Table, {
|
|
14447
|
+
className: "GoodModalColumns",
|
|
14431
14448
|
rowSelection: rowSelection,
|
|
14432
14449
|
columns: columns,
|
|
14433
14450
|
rowKey: 'skuCode',
|
|
14434
14451
|
dataSource: goodList,
|
|
14452
|
+
tableLayout: "fixed",
|
|
14435
14453
|
scroll: {
|
|
14436
|
-
x:
|
|
14454
|
+
x: 'max-content',
|
|
14437
14455
|
y: 250
|
|
14438
14456
|
},
|
|
14457
|
+
size: "small",
|
|
14439
14458
|
pagination: {
|
|
14440
14459
|
size: 'small',
|
|
14441
14460
|
total: total,
|
|
@@ -14462,27 +14481,32 @@ var gyColumns = [{
|
|
|
14462
14481
|
dataIndex: 'specName',
|
|
14463
14482
|
title: 'SKU名称',
|
|
14464
14483
|
width: 250,
|
|
14465
|
-
ellipsis: true
|
|
14484
|
+
ellipsis: true,
|
|
14485
|
+
render: renderTextEllipsis
|
|
14466
14486
|
}, {
|
|
14467
14487
|
dataIndex: 'specNo',
|
|
14468
14488
|
title: 'SKU编码',
|
|
14469
14489
|
width: 150,
|
|
14470
|
-
ellipsis: true
|
|
14490
|
+
ellipsis: true,
|
|
14491
|
+
render: renderTextEllipsis
|
|
14471
14492
|
}, {
|
|
14472
14493
|
dataIndex: 'goodName',
|
|
14473
14494
|
title: '商品名称',
|
|
14474
14495
|
width: 250,
|
|
14475
|
-
ellipsis: true
|
|
14496
|
+
ellipsis: true,
|
|
14497
|
+
render: renderTextEllipsis
|
|
14476
14498
|
}, {
|
|
14477
14499
|
dataIndex: 'goodShortName',
|
|
14478
14500
|
title: "\u5546\u54C1\u7B80\u79F0",
|
|
14479
14501
|
ellipsis: true,
|
|
14480
|
-
width: 150
|
|
14502
|
+
width: 150,
|
|
14503
|
+
render: renderTextEllipsis
|
|
14481
14504
|
}, {
|
|
14482
14505
|
dataIndex: 'goodNo',
|
|
14483
14506
|
title: '商品编码',
|
|
14484
14507
|
width: 150,
|
|
14485
|
-
ellipsis: true
|
|
14508
|
+
ellipsis: true,
|
|
14509
|
+
render: renderTextEllipsis
|
|
14486
14510
|
}, {
|
|
14487
14511
|
dataIndex: 'goodPicUrl',
|
|
14488
14512
|
title: '商品图片',
|
|
@@ -14490,8 +14514,8 @@ var gyColumns = [{
|
|
|
14490
14514
|
render: function render(picUrl) {
|
|
14491
14515
|
return /*#__PURE__*/React.createElement("img", {
|
|
14492
14516
|
style: {
|
|
14493
|
-
width: '
|
|
14494
|
-
height: '
|
|
14517
|
+
width: '30px',
|
|
14518
|
+
height: '30px',
|
|
14495
14519
|
objectFit: 'contain'
|
|
14496
14520
|
},
|
|
14497
14521
|
src: picUrl
|
|
@@ -14501,39 +14525,46 @@ var gyColumns = [{
|
|
|
14501
14525
|
dataIndex: 'brandName',
|
|
14502
14526
|
title: '品牌名称',
|
|
14503
14527
|
width: 200,
|
|
14504
|
-
ellipsis: true
|
|
14528
|
+
ellipsis: true,
|
|
14529
|
+
render: renderTextEllipsis
|
|
14505
14530
|
}, {
|
|
14506
14531
|
dataIndex: 'retailPrice',
|
|
14507
14532
|
title: "\u6807\u51C6\u552E\u4EF7",
|
|
14508
14533
|
ellipsis: true,
|
|
14509
|
-
width: 100
|
|
14534
|
+
width: 100,
|
|
14535
|
+
render: renderTextEllipsis
|
|
14510
14536
|
}, {
|
|
14511
14537
|
dataIndex: 'costPrice',
|
|
14512
14538
|
title: "\u6210\u672C\u4EF7",
|
|
14513
14539
|
ellipsis: true,
|
|
14514
|
-
width: 100
|
|
14540
|
+
width: 100,
|
|
14541
|
+
render: renderTextEllipsis
|
|
14515
14542
|
}];
|
|
14516
14543
|
|
|
14517
14544
|
var jstColumns = [{
|
|
14518
14545
|
dataIndex: 'goodName',
|
|
14519
14546
|
title: '商品名称',
|
|
14520
14547
|
width: 250,
|
|
14521
|
-
ellipsis: true
|
|
14548
|
+
ellipsis: true,
|
|
14549
|
+
render: renderTextEllipsis
|
|
14522
14550
|
}, {
|
|
14523
14551
|
dataIndex: 'goodNo',
|
|
14524
14552
|
title: '商品编码',
|
|
14525
14553
|
width: 200,
|
|
14526
|
-
ellipsis: true
|
|
14554
|
+
ellipsis: true,
|
|
14555
|
+
render: renderTextEllipsis
|
|
14527
14556
|
}, {
|
|
14528
14557
|
dataIndex: 'styleCode',
|
|
14529
14558
|
title: '款式编码',
|
|
14530
14559
|
width: 200,
|
|
14531
|
-
ellipsis: true
|
|
14560
|
+
ellipsis: true,
|
|
14561
|
+
render: renderTextEllipsis
|
|
14532
14562
|
}, {
|
|
14533
14563
|
dataIndex: 'propertiesValue',
|
|
14534
14564
|
title: '规格值',
|
|
14535
14565
|
width: 200,
|
|
14536
|
-
ellipsis: true
|
|
14566
|
+
ellipsis: true,
|
|
14567
|
+
render: renderTextEllipsis
|
|
14537
14568
|
}, {
|
|
14538
14569
|
dataIndex: 'goodPicUrl',
|
|
14539
14570
|
title: '商品图片',
|
|
@@ -14541,8 +14572,8 @@ var jstColumns = [{
|
|
|
14541
14572
|
render: function render(picUrl) {
|
|
14542
14573
|
return /*#__PURE__*/React.createElement("img", {
|
|
14543
14574
|
style: {
|
|
14544
|
-
width: '
|
|
14545
|
-
height: '
|
|
14575
|
+
width: '30px',
|
|
14576
|
+
height: '30px',
|
|
14546
14577
|
objectFit: 'contain'
|
|
14547
14578
|
},
|
|
14548
14579
|
src: picUrl
|
|
@@ -14552,19 +14583,21 @@ var jstColumns = [{
|
|
|
14552
14583
|
dataIndex: 'goodShortName',
|
|
14553
14584
|
title: "\u5546\u54C1\u7B80\u79F0",
|
|
14554
14585
|
ellipsis: true,
|
|
14555
|
-
width: 250
|
|
14586
|
+
width: 250,
|
|
14587
|
+
render: renderTextEllipsis
|
|
14556
14588
|
}, {
|
|
14557
14589
|
dataIndex: 'brandName',
|
|
14558
14590
|
title: '品牌名称',
|
|
14559
14591
|
width: 200,
|
|
14560
|
-
ellipsis: true
|
|
14592
|
+
ellipsis: true,
|
|
14593
|
+
render: renderTextEllipsis
|
|
14561
14594
|
}, {
|
|
14562
14595
|
dataIndex: 'retailPrice',
|
|
14563
14596
|
title: "\u9500\u552E\u4EF7\u683C",
|
|
14564
14597
|
ellipsis: true,
|
|
14565
14598
|
width: 100,
|
|
14566
14599
|
render: function render(price) {
|
|
14567
|
-
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
14600
|
+
return renderTextEllipsis(price || price === 0 ? Number(price).toFixed(2) : '');
|
|
14568
14601
|
}
|
|
14569
14602
|
}, {
|
|
14570
14603
|
dataIndex: 'marketPrice',
|
|
@@ -14572,7 +14605,7 @@ var jstColumns = [{
|
|
|
14572
14605
|
ellipsis: true,
|
|
14573
14606
|
width: 100,
|
|
14574
14607
|
render: function render(price) {
|
|
14575
|
-
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
14608
|
+
return renderTextEllipsis(price || price === 0 ? Number(price).toFixed(2) : '');
|
|
14576
14609
|
}
|
|
14577
14610
|
}, {
|
|
14578
14611
|
dataIndex: 'costPrice',
|
|
@@ -14580,7 +14613,7 @@ var jstColumns = [{
|
|
|
14580
14613
|
ellipsis: true,
|
|
14581
14614
|
width: 100,
|
|
14582
14615
|
render: function render(price) {
|
|
14583
|
-
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
14616
|
+
return renderTextEllipsis(price || price === 0 ? Number(price).toFixed(2) : '');
|
|
14584
14617
|
}
|
|
14585
14618
|
}, {
|
|
14586
14619
|
dataIndex: 'skuType',
|
|
@@ -14589,10 +14622,10 @@ var jstColumns = [{
|
|
|
14589
14622
|
width: 100,
|
|
14590
14623
|
render: function render() {
|
|
14591
14624
|
var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'normal';
|
|
14592
|
-
return {
|
|
14625
|
+
return renderTextEllipsis({
|
|
14593
14626
|
combine: '组合装商品',
|
|
14594
14627
|
normal: '普通商品'
|
|
14595
|
-
}[type] || type;
|
|
14628
|
+
}[type] || type);
|
|
14596
14629
|
}
|
|
14597
14630
|
}];
|
|
14598
14631
|
|
|
@@ -14600,17 +14633,20 @@ var wdtColumns = [{
|
|
|
14600
14633
|
dataIndex: 'specName',
|
|
14601
14634
|
title: 'SKU名称',
|
|
14602
14635
|
width: 250,
|
|
14603
|
-
ellipsis: true
|
|
14636
|
+
ellipsis: true,
|
|
14637
|
+
render: renderTextEllipsis
|
|
14604
14638
|
}, {
|
|
14605
14639
|
dataIndex: 'specNo',
|
|
14606
14640
|
title: 'SKU编码',
|
|
14607
14641
|
width: 200,
|
|
14608
|
-
ellipsis: true
|
|
14642
|
+
ellipsis: true,
|
|
14643
|
+
render: renderTextEllipsis
|
|
14609
14644
|
}, {
|
|
14610
14645
|
dataIndex: 'specId',
|
|
14611
14646
|
title: 'SKUID',
|
|
14612
14647
|
width: 200,
|
|
14613
|
-
ellipsis: true
|
|
14648
|
+
ellipsis: true,
|
|
14649
|
+
render: renderTextEllipsis
|
|
14614
14650
|
}, {
|
|
14615
14651
|
dataIndex: 'specImgUrl',
|
|
14616
14652
|
title: '商品图片',
|
|
@@ -14618,8 +14654,8 @@ var wdtColumns = [{
|
|
|
14618
14654
|
render: function render(picUrl) {
|
|
14619
14655
|
return /*#__PURE__*/React.createElement("img", {
|
|
14620
14656
|
style: {
|
|
14621
|
-
width: '
|
|
14622
|
-
height: '
|
|
14657
|
+
width: '30px',
|
|
14658
|
+
height: '30px',
|
|
14623
14659
|
objectFit: 'contain'
|
|
14624
14660
|
},
|
|
14625
14661
|
src: picUrl
|
|
@@ -14629,42 +14665,46 @@ var wdtColumns = [{
|
|
|
14629
14665
|
dataIndex: 'goodName',
|
|
14630
14666
|
title: '商品名称',
|
|
14631
14667
|
width: 250,
|
|
14632
|
-
ellipsis: true
|
|
14668
|
+
ellipsis: true,
|
|
14669
|
+
render: renderTextEllipsis
|
|
14633
14670
|
}, {
|
|
14634
14671
|
dataIndex: 'goodNo',
|
|
14635
14672
|
title: '商品编码',
|
|
14636
14673
|
width: 200,
|
|
14637
|
-
ellipsis: true
|
|
14674
|
+
ellipsis: true,
|
|
14675
|
+
render: renderTextEllipsis
|
|
14638
14676
|
}, {
|
|
14639
14677
|
dataIndex: 'goodId',
|
|
14640
14678
|
title: '商品ID',
|
|
14641
14679
|
width: 200,
|
|
14642
|
-
ellipsis: true
|
|
14680
|
+
ellipsis: true,
|
|
14681
|
+
render: renderTextEllipsis
|
|
14643
14682
|
}, {
|
|
14644
14683
|
dataIndex: 'brandName',
|
|
14645
14684
|
title: '品牌名称',
|
|
14646
14685
|
width: 200,
|
|
14647
|
-
ellipsis: true
|
|
14686
|
+
ellipsis: true,
|
|
14687
|
+
render: renderTextEllipsis
|
|
14648
14688
|
}, {
|
|
14649
14689
|
dataIndex: 'marketPrice',
|
|
14650
14690
|
title: '市场价',
|
|
14651
14691
|
width: 140,
|
|
14652
14692
|
render: function render(price) {
|
|
14653
|
-
return Number(price).toFixed(2);
|
|
14693
|
+
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
14654
14694
|
}
|
|
14655
14695
|
}, {
|
|
14656
14696
|
dataIndex: 'retailPrice',
|
|
14657
14697
|
title: '零售价',
|
|
14658
14698
|
width: 140,
|
|
14659
14699
|
render: function render(price) {
|
|
14660
|
-
return Number(price).toFixed(2);
|
|
14700
|
+
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
14661
14701
|
}
|
|
14662
14702
|
}, {
|
|
14663
14703
|
dataIndex: 'memberPrice',
|
|
14664
14704
|
title: '会员价',
|
|
14665
14705
|
width: 140,
|
|
14666
14706
|
render: function render(price) {
|
|
14667
|
-
return Number(price).toFixed(2);
|
|
14707
|
+
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
14668
14708
|
}
|
|
14669
14709
|
}];
|
|
14670
14710
|
|
|
@@ -14672,22 +14712,26 @@ var bse3Columns = [{
|
|
|
14672
14712
|
dataIndex: 'specNo',
|
|
14673
14713
|
title: "SKU",
|
|
14674
14714
|
ellipsis: true,
|
|
14675
|
-
width: 200
|
|
14715
|
+
width: 200,
|
|
14716
|
+
render: renderTextEllipsis
|
|
14676
14717
|
}, {
|
|
14677
14718
|
dataIndex: 'specId',
|
|
14678
14719
|
title: "SKU ID",
|
|
14679
14720
|
ellipsis: true,
|
|
14680
|
-
width: 80
|
|
14721
|
+
width: 80,
|
|
14722
|
+
render: renderTextEllipsis
|
|
14681
14723
|
}, {
|
|
14682
14724
|
dataIndex: 'goodName',
|
|
14683
14725
|
title: "\u5546\u54C1\u540D\u79F0",
|
|
14684
14726
|
ellipsis: true,
|
|
14685
|
-
width: 250
|
|
14727
|
+
width: 250,
|
|
14728
|
+
render: renderTextEllipsis
|
|
14686
14729
|
}, {
|
|
14687
14730
|
dataIndex: 'goodShortName',
|
|
14688
14731
|
title: "\u5546\u54C1\u7B80\u79F0",
|
|
14689
14732
|
ellipsis: true,
|
|
14690
|
-
width: 250
|
|
14733
|
+
width: 250,
|
|
14734
|
+
render: renderTextEllipsis
|
|
14691
14735
|
},
|
|
14692
14736
|
// {
|
|
14693
14737
|
// dataIndex: 'goodPicUrl',
|
|
@@ -14711,47 +14755,56 @@ var bse3Columns = [{
|
|
|
14711
14755
|
dataIndex: 'goodNo',
|
|
14712
14756
|
title: "\u8D27\u53F7",
|
|
14713
14757
|
ellipsis: true,
|
|
14714
|
-
width: 150
|
|
14758
|
+
width: 150,
|
|
14759
|
+
render: renderTextEllipsis
|
|
14715
14760
|
}, {
|
|
14716
14761
|
dataIndex: 'goodId',
|
|
14717
14762
|
title: "\u8D27\u53F7ID",
|
|
14718
14763
|
ellipsis: true,
|
|
14719
|
-
width: 100
|
|
14764
|
+
width: 100,
|
|
14765
|
+
render: renderTextEllipsis
|
|
14720
14766
|
}, {
|
|
14721
14767
|
dataIndex: 'colorName',
|
|
14722
14768
|
title: "\u989C\u8272\u540D\u79F0",
|
|
14723
14769
|
ellipsis: true,
|
|
14724
|
-
width: 100
|
|
14770
|
+
width: 100,
|
|
14771
|
+
render: renderTextEllipsis
|
|
14725
14772
|
}, {
|
|
14726
14773
|
dataIndex: 'colorCode',
|
|
14727
14774
|
title: "\u989C\u8272\u4EE3\u7801",
|
|
14728
14775
|
ellipsis: true,
|
|
14729
|
-
width: 100
|
|
14776
|
+
width: 100,
|
|
14777
|
+
render: renderTextEllipsis
|
|
14730
14778
|
}, {
|
|
14731
14779
|
dataIndex: 'sizeName',
|
|
14732
14780
|
title: "\u5C3A\u7801\u540D\u79F0",
|
|
14733
14781
|
ellipsis: true,
|
|
14734
|
-
width: 100
|
|
14782
|
+
width: 100,
|
|
14783
|
+
render: renderTextEllipsis
|
|
14735
14784
|
}, {
|
|
14736
14785
|
dataIndex: 'sizeCode',
|
|
14737
14786
|
title: "\u5C3A\u7801\u4EE3\u7801",
|
|
14738
14787
|
ellipsis: true,
|
|
14739
|
-
width: 100
|
|
14788
|
+
width: 100,
|
|
14789
|
+
render: renderTextEllipsis
|
|
14740
14790
|
}, {
|
|
14741
14791
|
dataIndex: 'brandName',
|
|
14742
14792
|
title: "\u54C1\u724C\u540D\u79F0",
|
|
14743
14793
|
ellipsis: true,
|
|
14744
|
-
width: 100
|
|
14794
|
+
width: 100,
|
|
14795
|
+
render: renderTextEllipsis
|
|
14745
14796
|
}, {
|
|
14746
14797
|
dataIndex: 'marketPrice',
|
|
14747
14798
|
title: "\u5E02\u573A\u4EF7",
|
|
14748
14799
|
ellipsis: true,
|
|
14749
|
-
width: 100
|
|
14800
|
+
width: 100,
|
|
14801
|
+
render: renderTextEllipsis
|
|
14750
14802
|
}, {
|
|
14751
14803
|
dataIndex: 'retailPrice',
|
|
14752
14804
|
title: "\u552E\u4EF7",
|
|
14753
14805
|
ellipsis: true,
|
|
14754
|
-
width: 100
|
|
14806
|
+
width: 100,
|
|
14807
|
+
render: renderTextEllipsis
|
|
14755
14808
|
}];
|
|
14756
14809
|
|
|
14757
14810
|
var getYesOrNo = function getYesOrNo(val) {
|
|
@@ -14762,24 +14815,27 @@ var kmColumns = [{
|
|
|
14762
14815
|
dataIndex: 'goodName',
|
|
14763
14816
|
title: '商品名称',
|
|
14764
14817
|
width: 250,
|
|
14765
|
-
ellipsis: true
|
|
14818
|
+
ellipsis: true,
|
|
14819
|
+
render: renderTextEllipsis
|
|
14766
14820
|
}, {
|
|
14767
14821
|
dataIndex: 'goodNo',
|
|
14768
14822
|
title: '商品编码',
|
|
14769
14823
|
width: 150,
|
|
14770
|
-
ellipsis: true
|
|
14824
|
+
ellipsis: true,
|
|
14825
|
+
render: renderTextEllipsis
|
|
14771
14826
|
}, {
|
|
14772
14827
|
dataIndex: 'goodId',
|
|
14773
14828
|
title: '商品ID',
|
|
14774
14829
|
width: 200,
|
|
14775
|
-
ellipsis: true
|
|
14830
|
+
ellipsis: true,
|
|
14831
|
+
render: renderTextEllipsis
|
|
14776
14832
|
}, {
|
|
14777
14833
|
dataIndex: 'goodPicUrl',
|
|
14778
14834
|
title: "\u5546\u54C1\u56FE\u7247",
|
|
14779
14835
|
width: 150,
|
|
14780
14836
|
render: function render(val) {
|
|
14781
14837
|
return /*#__PURE__*/React.createElement(Image, {
|
|
14782
|
-
width:
|
|
14838
|
+
width: 30,
|
|
14783
14839
|
src: val
|
|
14784
14840
|
});
|
|
14785
14841
|
}
|
|
@@ -14787,52 +14843,62 @@ var kmColumns = [{
|
|
|
14787
14843
|
dataIndex: 'goodShortName',
|
|
14788
14844
|
title: '商品简称',
|
|
14789
14845
|
width: 200,
|
|
14790
|
-
ellipsis: true
|
|
14846
|
+
ellipsis: true,
|
|
14847
|
+
render: renderTextEllipsis
|
|
14791
14848
|
}, {
|
|
14792
14849
|
dataIndex: 'goodBarcode',
|
|
14793
14850
|
title: '商品条码',
|
|
14794
14851
|
width: 200,
|
|
14795
|
-
ellipsis: true
|
|
14852
|
+
ellipsis: true,
|
|
14853
|
+
render: renderTextEllipsis
|
|
14796
14854
|
}, {
|
|
14797
14855
|
dataIndex: 'brandName',
|
|
14798
14856
|
title: "\u54C1\u724C\u540D\u79F0",
|
|
14799
14857
|
ellipsis: true,
|
|
14800
|
-
width: 150
|
|
14858
|
+
width: 150,
|
|
14859
|
+
render: renderTextEllipsis
|
|
14801
14860
|
}, {
|
|
14802
14861
|
dataIndex: 'skuType',
|
|
14803
14862
|
title: "\u5546\u54C1\u7C7B\u578B",
|
|
14804
14863
|
ellipsis: true,
|
|
14805
|
-
width: 150
|
|
14864
|
+
width: 150,
|
|
14865
|
+
render: renderTextEllipsis
|
|
14806
14866
|
}, {
|
|
14807
14867
|
dataIndex: 'specName',
|
|
14808
14868
|
title: "SKU\u540D\u79F0",
|
|
14809
14869
|
ellipsis: true,
|
|
14810
|
-
width: 150
|
|
14870
|
+
width: 150,
|
|
14871
|
+
render: renderTextEllipsis
|
|
14811
14872
|
}, {
|
|
14812
14873
|
dataIndex: 'specNo',
|
|
14813
14874
|
title: "SKU\u7F16\u7801",
|
|
14814
14875
|
ellipsis: true,
|
|
14815
|
-
width: 150
|
|
14876
|
+
width: 150,
|
|
14877
|
+
render: renderTextEllipsis
|
|
14816
14878
|
}, {
|
|
14817
14879
|
dataIndex: 'specId',
|
|
14818
14880
|
title: "SKU ID",
|
|
14819
14881
|
ellipsis: true,
|
|
14820
|
-
width: 150
|
|
14882
|
+
width: 150,
|
|
14883
|
+
render: renderTextEllipsis
|
|
14821
14884
|
}, {
|
|
14822
14885
|
dataIndex: 'propertiesValue',
|
|
14823
14886
|
title: "\u89C4\u683C\u503C",
|
|
14824
14887
|
ellipsis: true,
|
|
14825
|
-
width: 150
|
|
14888
|
+
width: 150,
|
|
14889
|
+
render: renderTextEllipsis
|
|
14826
14890
|
}, {
|
|
14827
14891
|
dataIndex: 'skuShortTitle',
|
|
14828
14892
|
title: "\u89C4\u683C\u7B80\u79F0",
|
|
14829
14893
|
ellipsis: true,
|
|
14830
|
-
width: 150
|
|
14894
|
+
width: 150,
|
|
14895
|
+
render: renderTextEllipsis
|
|
14831
14896
|
}, {
|
|
14832
14897
|
dataIndex: 'specBarcode',
|
|
14833
14898
|
title: "\u89C4\u683C\u6761\u7801",
|
|
14834
14899
|
ellipsis: true,
|
|
14835
|
-
width: 150
|
|
14900
|
+
width: 150,
|
|
14901
|
+
render: renderTextEllipsis
|
|
14836
14902
|
}, {
|
|
14837
14903
|
dataIndex: 'specImgUrl',
|
|
14838
14904
|
title: "SKU \u56FE\u7247",
|
|
@@ -14840,7 +14906,7 @@ var kmColumns = [{
|
|
|
14840
14906
|
width: 150,
|
|
14841
14907
|
render: function render(val) {
|
|
14842
14908
|
return /*#__PURE__*/React.createElement(Image, {
|
|
14843
|
-
width:
|
|
14909
|
+
width: 30,
|
|
14844
14910
|
src: val
|
|
14845
14911
|
});
|
|
14846
14912
|
}
|
|
@@ -14850,7 +14916,7 @@ var kmColumns = [{
|
|
|
14850
14916
|
ellipsis: true,
|
|
14851
14917
|
width: 150,
|
|
14852
14918
|
render: function render(val) {
|
|
14853
|
-
return
|
|
14919
|
+
return renderTextEllipsis(getYesOrNo(val));
|
|
14854
14920
|
}
|
|
14855
14921
|
}, {
|
|
14856
14922
|
dataIndex: 'isVirtual',
|
|
@@ -14858,7 +14924,7 @@ var kmColumns = [{
|
|
|
14858
14924
|
ellipsis: true,
|
|
14859
14925
|
width: 150,
|
|
14860
14926
|
render: function render(val) {
|
|
14861
|
-
return
|
|
14927
|
+
return renderTextEllipsis(getYesOrNo(val));
|
|
14862
14928
|
}
|
|
14863
14929
|
}, {
|
|
14864
14930
|
dataIndex: 'isSkuItem',
|
|
@@ -14866,23 +14932,26 @@ var kmColumns = [{
|
|
|
14866
14932
|
ellipsis: true,
|
|
14867
14933
|
width: 150,
|
|
14868
14934
|
render: function render(val) {
|
|
14869
|
-
return
|
|
14935
|
+
return renderTextEllipsis(getYesOrNo(val));
|
|
14870
14936
|
}
|
|
14871
14937
|
}, {
|
|
14872
14938
|
dataIndex: 'marketPrice',
|
|
14873
14939
|
title: "\u5E02\u573A\u4EF7",
|
|
14874
14940
|
ellipsis: true,
|
|
14875
|
-
width: 150
|
|
14941
|
+
width: 150,
|
|
14942
|
+
render: renderTextEllipsis
|
|
14876
14943
|
}, {
|
|
14877
14944
|
dataIndex: 'retailPrice',
|
|
14878
14945
|
title: "\u96F6\u552E\u4EF7",
|
|
14879
14946
|
ellipsis: true,
|
|
14880
|
-
width: 150
|
|
14947
|
+
width: 150,
|
|
14948
|
+
render: renderTextEllipsis
|
|
14881
14949
|
}, {
|
|
14882
14950
|
dataIndex: 'costPrice',
|
|
14883
14951
|
title: "\u6210\u672C\u4EF7",
|
|
14884
14952
|
ellipsis: true,
|
|
14885
|
-
width: 150
|
|
14953
|
+
width: 150,
|
|
14954
|
+
render: renderTextEllipsis
|
|
14886
14955
|
}];
|
|
14887
14956
|
|
|
14888
14957
|
var getYesOrNo$1 = function getYesOrNo(val) {
|
|
@@ -14890,123 +14959,138 @@ var getYesOrNo$1 = function getYesOrNo(val) {
|
|
|
14890
14959
|
return val ? '是' : '否';
|
|
14891
14960
|
};
|
|
14892
14961
|
var jyColumns = [{
|
|
14893
|
-
dataIndex: '
|
|
14962
|
+
dataIndex: 'goodName',
|
|
14894
14963
|
title: '商品名称',
|
|
14895
14964
|
width: 250,
|
|
14896
|
-
ellipsis: true
|
|
14965
|
+
ellipsis: true,
|
|
14966
|
+
render: renderTextEllipsis
|
|
14897
14967
|
}, {
|
|
14898
|
-
dataIndex: '
|
|
14968
|
+
dataIndex: 'goodNo',
|
|
14899
14969
|
title: '商品编码',
|
|
14900
14970
|
width: 150,
|
|
14901
|
-
ellipsis: true
|
|
14971
|
+
ellipsis: true,
|
|
14972
|
+
render: renderTextEllipsis
|
|
14902
14973
|
}, {
|
|
14903
|
-
dataIndex: '
|
|
14974
|
+
dataIndex: 'goodId',
|
|
14904
14975
|
title: '商品ID',
|
|
14905
14976
|
width: 150,
|
|
14906
|
-
ellipsis: true
|
|
14977
|
+
ellipsis: true,
|
|
14978
|
+
render: renderTextEllipsis
|
|
14907
14979
|
}, {
|
|
14908
14980
|
dataIndex: 'imageUrl',
|
|
14909
14981
|
title: '商品图片',
|
|
14910
14982
|
width: 100,
|
|
14911
14983
|
render: function render(picUrl) {
|
|
14912
|
-
return /*#__PURE__*/React.createElement("img", {
|
|
14984
|
+
return picUrl ? /*#__PURE__*/React.createElement("img", {
|
|
14913
14985
|
style: {
|
|
14914
|
-
width: '
|
|
14915
|
-
height: '
|
|
14986
|
+
width: '30px',
|
|
14987
|
+
height: '30px',
|
|
14916
14988
|
objectFit: 'contain'
|
|
14917
14989
|
},
|
|
14918
14990
|
src: picUrl
|
|
14919
|
-
});
|
|
14991
|
+
}) : null;
|
|
14920
14992
|
}
|
|
14921
14993
|
}, {
|
|
14922
|
-
dataIndex: '
|
|
14994
|
+
dataIndex: 'goodShortName',
|
|
14923
14995
|
title: "\u5546\u54C1\u7B80\u79F0",
|
|
14924
14996
|
ellipsis: true,
|
|
14925
|
-
width: 150
|
|
14997
|
+
width: 150,
|
|
14998
|
+
render: renderTextEllipsis
|
|
14926
14999
|
}, {
|
|
14927
|
-
dataIndex: '
|
|
15000
|
+
dataIndex: 'categoryName',
|
|
14928
15001
|
title: "\u5546\u54C1\u7EC4",
|
|
14929
15002
|
ellipsis: true,
|
|
14930
|
-
width: 150
|
|
15003
|
+
width: 150,
|
|
15004
|
+
render: renderTextEllipsis
|
|
14931
15005
|
}, {
|
|
14932
15006
|
dataIndex: 'brandName',
|
|
14933
15007
|
title: '品牌名称',
|
|
14934
15008
|
width: 200,
|
|
14935
|
-
ellipsis: true
|
|
15009
|
+
ellipsis: true,
|
|
15010
|
+
render: renderTextEllipsis
|
|
14936
15011
|
}, {
|
|
14937
|
-
dataIndex: '
|
|
15012
|
+
dataIndex: 'specName',
|
|
14938
15013
|
title: '规格名称',
|
|
14939
15014
|
width: 250,
|
|
14940
|
-
ellipsis: true
|
|
15015
|
+
ellipsis: true,
|
|
15016
|
+
render: renderTextEllipsis
|
|
14941
15017
|
}, {
|
|
14942
|
-
dataIndex: '
|
|
15018
|
+
dataIndex: 'specNo',
|
|
14943
15019
|
title: '规格编码',
|
|
14944
15020
|
width: 150,
|
|
14945
|
-
ellipsis: true
|
|
15021
|
+
ellipsis: true,
|
|
15022
|
+
render: renderTextEllipsis
|
|
14946
15023
|
}, {
|
|
14947
|
-
dataIndex: '
|
|
15024
|
+
dataIndex: 'specId',
|
|
14948
15025
|
title: '规格ID',
|
|
14949
15026
|
width: 250,
|
|
14950
|
-
ellipsis: true
|
|
15027
|
+
ellipsis: true,
|
|
15028
|
+
render: renderTextEllipsis
|
|
14951
15029
|
}, {
|
|
14952
|
-
dataIndex: '
|
|
15030
|
+
dataIndex: 'specBarcode',
|
|
14953
15031
|
title: '规格条码',
|
|
14954
15032
|
width: 150,
|
|
14955
|
-
ellipsis: true
|
|
15033
|
+
ellipsis: true,
|
|
15034
|
+
render: renderTextEllipsis
|
|
14956
15035
|
}, {
|
|
14957
|
-
dataIndex: '
|
|
15036
|
+
dataIndex: 'specImgUrl',
|
|
14958
15037
|
title: '规格图片',
|
|
14959
15038
|
width: 100,
|
|
14960
15039
|
render: function render(picUrl) {
|
|
14961
|
-
return /*#__PURE__*/React.createElement("img", {
|
|
15040
|
+
return picUrl ? /*#__PURE__*/React.createElement("img", {
|
|
14962
15041
|
style: {
|
|
14963
|
-
width: '
|
|
14964
|
-
height: '
|
|
15042
|
+
width: '30px',
|
|
15043
|
+
height: '30px',
|
|
14965
15044
|
objectFit: 'contain'
|
|
14966
15045
|
},
|
|
14967
15046
|
src: picUrl
|
|
14968
|
-
});
|
|
15047
|
+
}) : null;
|
|
14969
15048
|
}
|
|
14970
15049
|
}, {
|
|
14971
|
-
dataIndex: '
|
|
15050
|
+
dataIndex: 'colorName',
|
|
14972
15051
|
title: "\u989C\u8272",
|
|
14973
15052
|
ellipsis: true,
|
|
14974
|
-
width: 100
|
|
15053
|
+
width: 100,
|
|
15054
|
+
render: renderTextEllipsis
|
|
14975
15055
|
}, {
|
|
14976
|
-
dataIndex: '
|
|
15056
|
+
dataIndex: 'sizeName',
|
|
14977
15057
|
title: "\u5C3A\u7801",
|
|
14978
15058
|
ellipsis: true,
|
|
14979
|
-
width: 100
|
|
15059
|
+
width: 100,
|
|
15060
|
+
render: renderTextEllipsis
|
|
14980
15061
|
}, {
|
|
14981
|
-
dataIndex: '
|
|
15062
|
+
dataIndex: 'marketPrice',
|
|
14982
15063
|
title: "\u5E02\u573A\u4EF7",
|
|
14983
15064
|
ellipsis: true,
|
|
14984
|
-
width: 100
|
|
15065
|
+
width: 100,
|
|
15066
|
+
render: renderTextEllipsis
|
|
14985
15067
|
}, {
|
|
14986
|
-
dataIndex: '
|
|
15068
|
+
dataIndex: 'retailPrice',
|
|
14987
15069
|
title: "\u96F6\u552E\u4EF7",
|
|
14988
15070
|
ellipsis: true,
|
|
14989
|
-
width: 100
|
|
15071
|
+
width: 100,
|
|
15072
|
+
render: renderTextEllipsis
|
|
14990
15073
|
}, {
|
|
14991
15074
|
dataIndex: 'costPrice',
|
|
14992
15075
|
title: "\u6210\u672C\u4EF7",
|
|
14993
15076
|
ellipsis: true,
|
|
14994
|
-
width: 100
|
|
15077
|
+
width: 100,
|
|
15078
|
+
render: renderTextEllipsis
|
|
14995
15079
|
}, {
|
|
14996
|
-
dataIndex: '
|
|
15080
|
+
dataIndex: 'isGift',
|
|
14997
15081
|
title: "\u662F\u5426\u8D60\u54C1",
|
|
14998
15082
|
ellipsis: true,
|
|
14999
15083
|
width: 150,
|
|
15000
15084
|
render: function render(val) {
|
|
15001
|
-
return
|
|
15085
|
+
return renderTextEllipsis(getYesOrNo$1(val));
|
|
15002
15086
|
}
|
|
15003
15087
|
}, {
|
|
15004
|
-
dataIndex: '
|
|
15088
|
+
dataIndex: 'skuType',
|
|
15005
15089
|
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
15006
15090
|
ellipsis: true,
|
|
15007
15091
|
width: 150,
|
|
15008
15092
|
render: function render(val) {
|
|
15009
|
-
return
|
|
15093
|
+
return renderTextEllipsis(getYesOrNo$1(val === 'combine'));
|
|
15010
15094
|
}
|
|
15011
15095
|
}];
|
|
15012
15096
|
|
|
@@ -15151,7 +15235,8 @@ function SearchForm(_ref) {
|
|
|
15151
15235
|
}();
|
|
15152
15236
|
return /*#__PURE__*/React.createElement(Form, {
|
|
15153
15237
|
layout: "inline",
|
|
15154
|
-
form: form
|
|
15238
|
+
form: form,
|
|
15239
|
+
className: "search-form"
|
|
15155
15240
|
}, searchFormData.map(function (item) {
|
|
15156
15241
|
var label = item.label,
|
|
15157
15242
|
name = item.name,
|
|
@@ -15191,7 +15276,8 @@ function SearchForm(_ref) {
|
|
|
15191
15276
|
}), /*#__PURE__*/React.createElement(Form.Item, {
|
|
15192
15277
|
style: {
|
|
15193
15278
|
marginBottom: '12px'
|
|
15194
|
-
}
|
|
15279
|
+
},
|
|
15280
|
+
className: "search-form-actions"
|
|
15195
15281
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
15196
15282
|
type: "primary",
|
|
15197
15283
|
style: {
|
|
@@ -15435,7 +15521,8 @@ var GoodList = function GoodList(props, ref) {
|
|
|
15435
15521
|
style: {
|
|
15436
15522
|
marginTop: '4px'
|
|
15437
15523
|
}
|
|
15438
|
-
}, /*#__PURE__*/React.createElement(Table, _objectSpread2({
|
|
15524
|
+
}, /*#__PURE__*/React.createElement(Table, _objectSpread2(_objectSpread2({
|
|
15525
|
+
className: "GoodModalColumns",
|
|
15439
15526
|
rowSelection: rowSelection,
|
|
15440
15527
|
rowKey: "specNo",
|
|
15441
15528
|
columns: columns,
|
|
@@ -15443,7 +15530,9 @@ var GoodList = function GoodList(props, ref) {
|
|
|
15443
15530
|
x: '100%',
|
|
15444
15531
|
y: 250
|
|
15445
15532
|
}
|
|
15446
|
-
}, tableProps)
|
|
15533
|
+
}, tableProps), {}, {
|
|
15534
|
+
size: "small"
|
|
15535
|
+
}))), /*#__PURE__*/React.createElement(Popover, {
|
|
15447
15536
|
getPopupContainer: function getPopupContainer(triggerNode) {
|
|
15448
15537
|
return triggerNode.parentElement;
|
|
15449
15538
|
},
|
|
@@ -15687,13 +15776,15 @@ var GoodList$1 = function GoodList(props, ref) {
|
|
|
15687
15776
|
marginTop: '4px'
|
|
15688
15777
|
}
|
|
15689
15778
|
}, /*#__PURE__*/React.createElement(Table, _objectSpread2({
|
|
15779
|
+
className: "GoodModalColumns",
|
|
15690
15780
|
rowSelection: rowSelection,
|
|
15691
15781
|
rowKey: "goodNo",
|
|
15692
15782
|
columns: columns,
|
|
15693
15783
|
scroll: {
|
|
15694
15784
|
x: '100%',
|
|
15695
15785
|
y: 250
|
|
15696
|
-
}
|
|
15786
|
+
},
|
|
15787
|
+
size: "small"
|
|
15697
15788
|
}, tableProps))), /*#__PURE__*/React.createElement(Popover, {
|
|
15698
15789
|
getPopupContainer: function getPopupContainer(triggerNode) {
|
|
15699
15790
|
return triggerNode.parentElement;
|
|
@@ -15928,13 +16019,15 @@ var GoodList$2 = function GoodList(props, ref) {
|
|
|
15928
16019
|
marginTop: '4px'
|
|
15929
16020
|
}
|
|
15930
16021
|
}, /*#__PURE__*/React.createElement(Table, _objectSpread2({
|
|
16022
|
+
className: "GoodModalColumns",
|
|
15931
16023
|
rowSelection: rowSelection,
|
|
15932
16024
|
rowKey: "specNo",
|
|
15933
16025
|
columns: columns,
|
|
15934
16026
|
scroll: {
|
|
15935
16027
|
x: '100%',
|
|
15936
16028
|
y: 250
|
|
15937
|
-
}
|
|
16029
|
+
},
|
|
16030
|
+
size: "small"
|
|
15938
16031
|
}, tableProps))), /*#__PURE__*/React.createElement(Popover, {
|
|
15939
16032
|
getPopupContainer: function getPopupContainer(triggerNode) {
|
|
15940
16033
|
return triggerNode.parentElement;
|
|
@@ -16172,13 +16265,15 @@ var GoodList$3 = function GoodList(props, ref) {
|
|
|
16172
16265
|
marginTop: '4px'
|
|
16173
16266
|
}
|
|
16174
16267
|
}, /*#__PURE__*/React.createElement(Table, _objectSpread2({
|
|
16268
|
+
className: "GoodModalColumns",
|
|
16175
16269
|
rowSelection: rowSelection,
|
|
16176
16270
|
rowKey: rowCheckKey,
|
|
16177
16271
|
columns: columns,
|
|
16178
16272
|
scroll: {
|
|
16179
16273
|
x: '100%',
|
|
16180
16274
|
y: 250
|
|
16181
|
-
}
|
|
16275
|
+
},
|
|
16276
|
+
size: "small"
|
|
16182
16277
|
}, tableProps))), /*#__PURE__*/React.createElement(Popover, {
|
|
16183
16278
|
getPopupContainer: function getPopupContainer(triggerNode) {
|
|
16184
16279
|
return triggerNode.parentElement;
|
|
@@ -16413,7 +16508,8 @@ var GoodList$4 = function GoodList(props, ref) {
|
|
|
16413
16508
|
style: {
|
|
16414
16509
|
marginTop: '4px'
|
|
16415
16510
|
}
|
|
16416
|
-
}, /*#__PURE__*/React.createElement(Table, _objectSpread2({
|
|
16511
|
+
}, /*#__PURE__*/React.createElement(Table, _objectSpread2(_objectSpread2({
|
|
16512
|
+
className: "GoodModalColumns",
|
|
16417
16513
|
rowSelection: rowSelection,
|
|
16418
16514
|
rowKey: "id",
|
|
16419
16515
|
columns: columns,
|
|
@@ -16421,7 +16517,9 @@ var GoodList$4 = function GoodList(props, ref) {
|
|
|
16421
16517
|
x: '100%',
|
|
16422
16518
|
y: 250
|
|
16423
16519
|
}
|
|
16424
|
-
}, tableProps)
|
|
16520
|
+
}, tableProps), {}, {
|
|
16521
|
+
size: "small"
|
|
16522
|
+
}))), /*#__PURE__*/React.createElement(Popover, {
|
|
16425
16523
|
getPopupContainer: function getPopupContainer(triggerNode) {
|
|
16426
16524
|
return triggerNode.parentElement;
|
|
16427
16525
|
},
|
|
@@ -16633,8 +16731,8 @@ function multiSelect() {
|
|
|
16633
16731
|
};
|
|
16634
16732
|
}
|
|
16635
16733
|
|
|
16636
|
-
var css_248z$
|
|
16637
|
-
styleInject(css_248z$
|
|
16734
|
+
var css_248z$d = ".high-performance-table .lock-left {\n background: #FFF !important;\n}\n.high-performance-table .art-empty-wrapper {\n margin-top: 24px;\n}\n.high-performance-table .cell-content {\n height: 48px;\n display: flex;\n align-items: center;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n padding: 8px 12px;\n}\n";
|
|
16735
|
+
styleInject(css_248z$d);
|
|
16638
16736
|
|
|
16639
16737
|
var _excluded$e = ["children"];
|
|
16640
16738
|
var Cell = function Cell(_ref) {
|
|
@@ -16735,8 +16833,8 @@ var HighPerformanceTable = function HighPerformanceTable(_ref2) {
|
|
|
16735
16833
|
})));
|
|
16736
16834
|
};
|
|
16737
16835
|
|
|
16738
|
-
var css_248z$
|
|
16739
|
-
styleInject(css_248z$
|
|
16836
|
+
var css_248z$e = ".search-header-wrap .is-open {\n height: auto;\n}\n.search-header-wrap .not-open {\n max-height: 71px;\n overflow-y: auto;\n}\n#table-resizable .header {\n display: flex;\n align-items: center;\n padding: 8px 16px;\n background-color: #fff;\n}\n#table-resizable .header .operate {\n height: 32px;\n padding: 8px 0;\n cursor: pointer;\n}\n#table-resizable .header .operate .anticon {\n font-size: 16px;\n}\n#table-resizable .header .operate .anticon:hover {\n color: #1b5bf3;\n transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);\n}\n#table-resizable .header .title {\n font-weight: bold;\n}\n#table-resizable .actions-layout {\n display: flex;\n justify-content: space-between;\n}\n#table-resizable .react-resizable {\n position: relative;\n background-clip: padding-box;\n}\n#table-resizable th[colspan] {\n padding: 0px !important;\n overflow: hidden;\n color: #86909c;\n font-weight: normal;\n font-size: 14px;\n font-family: PingFangSC-Regular;\n line-height: 20px;\n white-space: nowrap;\n text-overflow: ellipsis;\n background: #e5e6eb;\n}\n#table-resizable .react-resizable-handle {\n position: absolute;\n right: -5px;\n bottom: 0;\n z-index: 1;\n width: 10px;\n height: 100%;\n cursor: col-resize;\n}\n#table-resizable .fz-12 {\n padding-right: 8px;\n font-size: 12px;\n}\n#table-resizable .tableFooter {\n display: flex;\n align-items: center;\n justify-content: space-between;\n height: 64px;\n padding: 0 36px 0 24px;\n background-color: #fff;\n}\n#table-resizable .tableFooter .total {\n /* 文字色/86909C */\n color: #86909c;\n font-weight: normal;\n font-size: 14px;\n font-family: PingFangSC-Regular;\n line-height: 22px;\n letter-spacing: 0px;\n}\n#table-resizable .ant-table-tbody > tr > td {\n padding: 4px 8px;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n#table-resizable .ant-form-item {\n margin-bottom: 4px;\n margin-right: 0;\n}\n#table-resizable .ant-table-ping-left .ant-table-cell-fix-left-first::after,\n#table-resizable .ant-table-ping-left .ant-table-cell-fix-left-last::after,\n#table-resizable .ant-table-thead > tr > th,\n#table-resizable .ant-table-cell-fix-left-first::after,\n#table-resizable .ant-table .ant-table-container::before,\n#table-resizable .ant-table .ant-table-container::after,\n#table-resizable .ant-table-ping-right:not(.ant-table-has-fix-right) .ant-table-container::after,\n#table-resizable .ant-table-thead > tr > th:not(:last-child):not(.ant-table-selection-column):not(\n .ant-table-row-expand-icon-cell\n ):not([colspan])::before,\n#table-resizable .ant-table-cell-fix-left-last::after {\n box-shadow: none;\n transform: none;\n transition: none;\n}\n#table-resizable .ant-checkbox-checked .ant-checkbox-inner::after {\n transition: none;\n}\n#table-resizable .ant-checkbox-checked::after {\n animation: none;\n}\n#table-resizable .rowSelectClass {\n background-color: #eee;\n}\n#table-resizable .rowSelectClass .ant-table-cell-fix-left {\n background-color: #eee;\n}\n";
|
|
16837
|
+
styleInject(css_248z$e);
|
|
16740
16838
|
|
|
16741
16839
|
var TrimInput = function TrimInput(props) {
|
|
16742
16840
|
var handleBlur = function handleBlur(e) {
|
|
@@ -17293,11 +17391,12 @@ var SearchHeader = function SearchHeader(_ref) {
|
|
|
17293
17391
|
timeOptions = _ref.timeOptions,
|
|
17294
17392
|
ShopList = _ref.ShopList,
|
|
17295
17393
|
onSubmit = _ref.onSubmit;
|
|
17394
|
+
console.log('allFields', allFields);
|
|
17296
17395
|
// const fixedFieldsOptions = useMemo(() => {
|
|
17297
17396
|
// return allFields.filter(item => fixedFields?.includes(item.id));
|
|
17298
17397
|
// }, [fixedFields, allFields]);
|
|
17299
17398
|
return /*#__PURE__*/React.createElement("div", {
|
|
17300
|
-
className:
|
|
17399
|
+
className: "search-header-wrap"
|
|
17301
17400
|
}, /*#__PURE__*/React.createElement("div", {
|
|
17302
17401
|
className: "".concat(status ? 'is-open' : 'not-open')
|
|
17303
17402
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -17454,6 +17553,9 @@ var WorkorderList = function WorkorderList(props, ref) {
|
|
|
17454
17553
|
return selectedList.map(function (workOrderData) {
|
|
17455
17554
|
return goodsSourceFormat.workOrderDataToGoods(workOrderData, props.erp);
|
|
17456
17555
|
});
|
|
17556
|
+
},
|
|
17557
|
+
setDefaultSearchValue: function setDefaultSearchValue(value) {
|
|
17558
|
+
value && form.setFieldsValue(_objectSpread2({}, value));
|
|
17457
17559
|
}
|
|
17458
17560
|
};
|
|
17459
17561
|
});
|
|
@@ -17732,21 +17834,116 @@ var WorkorderList = function WorkorderList(props, ref) {
|
|
|
17732
17834
|
};
|
|
17733
17835
|
var WorkorderList$1 = /*#__PURE__*/forwardRef(WorkorderList);
|
|
17734
17836
|
|
|
17735
|
-
|
|
17736
|
-
|
|
17737
|
-
|
|
17738
|
-
|
|
17739
|
-
|
|
17740
|
-
|
|
17741
|
-
|
|
17742
|
-
|
|
17743
|
-
|
|
17837
|
+
var goodClassTransformValue = function goodClassTransformValue(value, config) {
|
|
17838
|
+
var label = '';
|
|
17839
|
+
var options = (config === null || config === void 0 ? void 0 : config.options) || [];
|
|
17840
|
+
var labelList = findLabelBySelectValue(value, options);
|
|
17841
|
+
var labelItem = labelList === null || labelList === void 0 ? void 0 : labelList.pop();
|
|
17842
|
+
label = labelItem === null || labelItem === void 0 ? void 0 : labelItem.label;
|
|
17843
|
+
return {
|
|
17844
|
+
type: 'anylike',
|
|
17845
|
+
keywords: label
|
|
17846
|
+
};
|
|
17847
|
+
};
|
|
17848
|
+
var goodTypeTransformValue = function goodTypeTransformValue(value) {
|
|
17849
|
+
return (value === null || value === void 0 ? void 0 : value.value) ? [value === null || value === void 0 ? void 0 : value.value] : '';
|
|
17850
|
+
};
|
|
17851
|
+
var relationComponentUniqueKeyMap = {
|
|
17852
|
+
//小白熊自定义组件
|
|
17853
|
+
PCE2Z5TXEVPL5D26I7KMBKMB: {
|
|
17854
|
+
//补发类型
|
|
17855
|
+
goodType: {
|
|
17856
|
+
relationComponentKey: '6hldjQ9aMz',
|
|
17857
|
+
reflectKey: 'C7M9rWJMjD_radio',
|
|
17858
|
+
transformValue: function transformValue(value) {
|
|
17859
|
+
return goodTypeTransformValue(value);
|
|
17860
|
+
}
|
|
17861
|
+
},
|
|
17862
|
+
// 产品分类
|
|
17863
|
+
goodClass: {
|
|
17864
|
+
relationComponentKey: '8gozpyUFtA',
|
|
17865
|
+
reflectKey: '2h8KRbxMjD_input',
|
|
17866
|
+
transformValue: function transformValue(value, config) {
|
|
17867
|
+
return goodClassTransformValue(value, config);
|
|
17868
|
+
}
|
|
17869
|
+
}
|
|
17870
|
+
},
|
|
17871
|
+
// 测马奔腾
|
|
17872
|
+
SZF4ZGWZSNW6PYXMCIFEWBXT: {
|
|
17873
|
+
goodType: {
|
|
17874
|
+
relationComponentKey: 'abVTwFX34E',
|
|
17875
|
+
reflectKey: 'ipOHnYquYB_radio',
|
|
17876
|
+
transformValue: function transformValue(value) {
|
|
17877
|
+
return goodTypeTransformValue(value);
|
|
17878
|
+
}
|
|
17879
|
+
},
|
|
17880
|
+
goodClass: {
|
|
17881
|
+
relationComponentKey: 'U0es1pIDaE',
|
|
17882
|
+
reflectKey: 'K1puYheEaE_input',
|
|
17883
|
+
transformValue: function transformValue(value, config) {
|
|
17884
|
+
return goodClassTransformValue(value, config);
|
|
17885
|
+
}
|
|
17886
|
+
}
|
|
17887
|
+
}
|
|
17888
|
+
};
|
|
17889
|
+
// 该方法只用于小白熊定制,当管易商品/管易补发/管易退换货组件的数据来源于关联工单数据,且其补发类型自定义组件选了值,根据该值填充到商品库弹框中类型筛选项
|
|
17890
|
+
var useDefaultSearchValue = (function (props) {
|
|
17891
|
+
var _Object$entries;
|
|
17892
|
+
var form = props.form,
|
|
17893
|
+
_props$companyKey = props.companyKey,
|
|
17894
|
+
companyKey = _props$companyKey === void 0 ? '' : _props$companyKey,
|
|
17895
|
+
source = props.source,
|
|
17896
|
+
erp = props.erp,
|
|
17897
|
+
_props$templateDetail = props.templateDetail,
|
|
17898
|
+
templateDetail = _props$templateDetail === void 0 ? {} : _props$templateDetail;
|
|
17899
|
+
if (source !== 'workOrder' || erp !== 'gy') {
|
|
17900
|
+
return '';
|
|
17901
|
+
}
|
|
17902
|
+
var result = {};
|
|
17903
|
+
var relationComponentKeyMap = relationComponentUniqueKeyMap === null || relationComponentUniqueKeyMap === void 0 ? void 0 : relationComponentUniqueKeyMap[companyKey];
|
|
17904
|
+
if (!relationComponentKeyMap) {
|
|
17905
|
+
return '';
|
|
17906
|
+
}
|
|
17907
|
+
(_Object$entries = Object.entries(relationComponentKeyMap || {})) === null || _Object$entries === void 0 ? void 0 : _Object$entries.forEach(function (_ref) {
|
|
17908
|
+
var _templateDetail$compo;
|
|
17909
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
17910
|
+
key = _ref2[0],
|
|
17911
|
+
value = _ref2[1];
|
|
17912
|
+
var matchComponent = templateDetail === null || templateDetail === void 0 ? void 0 : (_templateDetail$compo = templateDetail.componentDtoList) === null || _templateDetail$compo === void 0 ? void 0 : _templateDetail$compo.find(function (item) {
|
|
17913
|
+
return item.uniqueKey === value.relationComponentKey;
|
|
17914
|
+
});
|
|
17915
|
+
if (!matchComponent) {
|
|
17916
|
+
return;
|
|
17917
|
+
}
|
|
17918
|
+
var relationComponentValue = form === null || form === void 0 ? void 0 : form.getFieldValue(value.relationComponentKey);
|
|
17919
|
+
if (relationComponentValue) {
|
|
17920
|
+
if ((value === null || value === void 0 ? void 0 : value.transformValue) && typeof (value === null || value === void 0 ? void 0 : value.transformValue) === 'function') {
|
|
17921
|
+
var _value$transformValue;
|
|
17922
|
+
var newValue = value === null || value === void 0 ? void 0 : (_value$transformValue = value.transformValue) === null || _value$transformValue === void 0 ? void 0 : _value$transformValue.call(value, relationComponentValue, (matchComponent === null || matchComponent === void 0 ? void 0 : matchComponent.componentConfig) || {});
|
|
17923
|
+
if (newValue) {
|
|
17924
|
+
result[value.reflectKey] = newValue;
|
|
17925
|
+
}
|
|
17926
|
+
} else {
|
|
17927
|
+
result[value.reflectKey] = relationComponentValue;
|
|
17928
|
+
}
|
|
17929
|
+
}
|
|
17930
|
+
});
|
|
17931
|
+
return result;
|
|
17932
|
+
});
|
|
17933
|
+
|
|
17744
17934
|
var GyGoodsModal$1 = function GyGoodsModal(props, ref) {
|
|
17745
|
-
var _props$
|
|
17935
|
+
var _props$goodsSource2;
|
|
17746
17936
|
var _useState = useState(),
|
|
17747
17937
|
_useState2 = _slicedToArray(_useState, 2),
|
|
17748
17938
|
seletedGooods = _useState2[0],
|
|
17749
17939
|
setSeletedGooods = _useState2[1];
|
|
17940
|
+
var onSubmit = props.onSubmit,
|
|
17941
|
+
width = props.width;
|
|
17942
|
+
var _useState3 = useState(false),
|
|
17943
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
17944
|
+
visible = _useState4[0],
|
|
17945
|
+
setVisible = _useState4[1];
|
|
17946
|
+
var goodsListRef = useRef(null);
|
|
17750
17947
|
useImperativeHandle(ref, function () {
|
|
17751
17948
|
return {
|
|
17752
17949
|
open: function open(shopCode, options) {
|
|
@@ -17755,19 +17952,28 @@ var GyGoodsModal$1 = function GyGoodsModal(props, ref) {
|
|
|
17755
17952
|
}
|
|
17756
17953
|
};
|
|
17757
17954
|
});
|
|
17758
|
-
|
|
17759
|
-
|
|
17760
|
-
|
|
17761
|
-
|
|
17762
|
-
|
|
17763
|
-
|
|
17764
|
-
|
|
17955
|
+
useEffect(function () {
|
|
17956
|
+
if (visible && goodsListRef.current) {
|
|
17957
|
+
var _props$goodsSource;
|
|
17958
|
+
var defaultSearchValue = useDefaultSearchValue({
|
|
17959
|
+
form: props === null || props === void 0 ? void 0 : props.form,
|
|
17960
|
+
companyKey: props === null || props === void 0 ? void 0 : props.companyKey,
|
|
17961
|
+
source: (_props$goodsSource = props.goodsSource) === null || _props$goodsSource === void 0 ? void 0 : _props$goodsSource.source,
|
|
17962
|
+
erp: 'gy',
|
|
17963
|
+
templateDetail: props === null || props === void 0 ? void 0 : props.templateDetail
|
|
17964
|
+
});
|
|
17965
|
+
if (defaultSearchValue) {
|
|
17966
|
+
var _goodsListRef$current, _goodsListRef$current2;
|
|
17967
|
+
(_goodsListRef$current = goodsListRef.current) === null || _goodsListRef$current === void 0 ? void 0 : (_goodsListRef$current2 = _goodsListRef$current.setDefaultSearchValue) === null || _goodsListRef$current2 === void 0 ? void 0 : _goodsListRef$current2.call(_goodsListRef$current, defaultSearchValue);
|
|
17968
|
+
}
|
|
17969
|
+
}
|
|
17970
|
+
}, [visible]);
|
|
17765
17971
|
var _onCancel = function onCancel() {
|
|
17766
17972
|
setVisible(false);
|
|
17767
17973
|
};
|
|
17768
17974
|
var onOk = function onOk() {
|
|
17769
|
-
var _goodsListRef$
|
|
17770
|
-
var selectedList = ((_goodsListRef$
|
|
17975
|
+
var _goodsListRef$current3;
|
|
17976
|
+
var selectedList = ((_goodsListRef$current3 = goodsListRef.current) === null || _goodsListRef$current3 === void 0 ? void 0 : _goodsListRef$current3.getSelectGoodList()) || [];
|
|
17771
17977
|
onSubmit(selectedList);
|
|
17772
17978
|
_onCancel();
|
|
17773
17979
|
};
|
|
@@ -17782,7 +17988,7 @@ var GyGoodsModal$1 = function GyGoodsModal(props, ref) {
|
|
|
17782
17988
|
},
|
|
17783
17989
|
onOk: onOk,
|
|
17784
17990
|
wrapClassName: "goodModal"
|
|
17785
|
-
}, ((_props$
|
|
17991
|
+
}, ((_props$goodsSource2 = props.goodsSource) === null || _props$goodsSource2 === void 0 ? void 0 : _props$goodsSource2.source) === 'workOrder' ? /*#__PURE__*/React.createElement(WorkorderList$1, {
|
|
17786
17992
|
erp: "gy",
|
|
17787
17993
|
goodsSource: props.goodsSource,
|
|
17788
17994
|
seletedGooods: seletedGooods,
|
|
@@ -17821,10 +18027,12 @@ var getTableData$5 = function getTableData(_ref, formData) {
|
|
|
17821
18027
|
};
|
|
17822
18028
|
var searchFormData$4 = [{
|
|
17823
18029
|
label: '规格名称',
|
|
17824
|
-
name: '
|
|
18030
|
+
name: 'skuName',
|
|
18031
|
+
dataIndex: 'specName'
|
|
17825
18032
|
}, {
|
|
17826
18033
|
label: '规格编码',
|
|
17827
|
-
name: '
|
|
18034
|
+
name: 'skuCode',
|
|
18035
|
+
dataIndex: 'specNo'
|
|
17828
18036
|
}, {
|
|
17829
18037
|
label: '商品名称',
|
|
17830
18038
|
name: 'goodName'
|
|
@@ -17870,29 +18078,29 @@ var GoodList$5 = function GoodList(props, ref) {
|
|
|
17870
18078
|
fixed: true,
|
|
17871
18079
|
onSelect: function onSelect(record, selected) {
|
|
17872
18080
|
if (selected) {
|
|
17873
|
-
setSelectIds([].concat(_toConsumableArray(selectIds), [record.
|
|
18081
|
+
setSelectIds([].concat(_toConsumableArray(selectIds), [record.id]));
|
|
17874
18082
|
setSelect([].concat(_toConsumableArray(selectList), [record]));
|
|
17875
18083
|
} else {
|
|
17876
18084
|
setSelectIds(selectIds.filter(function (t) {
|
|
17877
|
-
return t !== record.
|
|
18085
|
+
return t !== record.id;
|
|
17878
18086
|
}));
|
|
17879
18087
|
setSelect(selectList.filter(function (t) {
|
|
17880
|
-
return t.
|
|
18088
|
+
return t.id !== record.id;
|
|
17881
18089
|
}));
|
|
17882
18090
|
}
|
|
17883
18091
|
},
|
|
17884
18092
|
onSelectAll: function onSelectAll(selected, selectedRows, changeRows) {
|
|
17885
18093
|
if (selected) {
|
|
17886
18094
|
setSelectIds([].concat(_toConsumableArray(selectIds), _toConsumableArray(changeRows.map(function (t) {
|
|
17887
|
-
return t.
|
|
18095
|
+
return t.id;
|
|
17888
18096
|
}))));
|
|
17889
18097
|
setSelect([].concat(_toConsumableArray(selectList), _toConsumableArray(changeRows)));
|
|
17890
18098
|
} else {
|
|
17891
18099
|
setSelectIds(difference(selectIds, changeRows.map(function (t) {
|
|
17892
|
-
return t.
|
|
18100
|
+
return t.id;
|
|
17893
18101
|
})));
|
|
17894
18102
|
var list = differenceWith(selectList, changeRows, function (arrVal, othVal) {
|
|
17895
|
-
return arrVal.
|
|
18103
|
+
return arrVal.id !== othVal.id;
|
|
17896
18104
|
});
|
|
17897
18105
|
setSelect(list);
|
|
17898
18106
|
}
|
|
@@ -17900,9 +18108,9 @@ var GoodList$5 = function GoodList(props, ref) {
|
|
|
17900
18108
|
getCheckboxProps: function getCheckboxProps(record) {
|
|
17901
18109
|
var options = {
|
|
17902
18110
|
disabled: (props.selectedRows || []).map(function (row) {
|
|
17903
|
-
return row.
|
|
17904
|
-
}).includes(record.
|
|
17905
|
-
name: record.
|
|
18111
|
+
return row.id || row.specId;
|
|
18112
|
+
}).includes(record.id || record.specId),
|
|
18113
|
+
name: record.id
|
|
17906
18114
|
};
|
|
17907
18115
|
return options;
|
|
17908
18116
|
}
|
|
@@ -17910,10 +18118,10 @@ var GoodList$5 = function GoodList(props, ref) {
|
|
|
17910
18118
|
var showTable = function showTable() {
|
|
17911
18119
|
var handleDelete = function handleDelete(record) {
|
|
17912
18120
|
setSelectIds(selectIds.filter(function (t) {
|
|
17913
|
-
return t !== record.
|
|
18121
|
+
return t !== record.id;
|
|
17914
18122
|
}));
|
|
17915
18123
|
setSelect(selectList.filter(function (t) {
|
|
17916
|
-
return t.
|
|
18124
|
+
return t.id !== record.id;
|
|
17917
18125
|
}));
|
|
17918
18126
|
};
|
|
17919
18127
|
var showColumns = [{
|
|
@@ -17937,7 +18145,7 @@ var GoodList$5 = function GoodList(props, ref) {
|
|
|
17937
18145
|
}
|
|
17938
18146
|
}, /*#__PURE__*/React.createElement(Table, {
|
|
17939
18147
|
columns: showColumns,
|
|
17940
|
-
rowKey: '
|
|
18148
|
+
rowKey: 'id',
|
|
17941
18149
|
dataSource: selectList,
|
|
17942
18150
|
scroll: {
|
|
17943
18151
|
x: '100%',
|
|
@@ -17965,13 +18173,15 @@ var GoodList$5 = function GoodList(props, ref) {
|
|
|
17965
18173
|
marginTop: '4px'
|
|
17966
18174
|
}
|
|
17967
18175
|
}, /*#__PURE__*/React.createElement(Table, _objectSpread2({
|
|
18176
|
+
className: "GoodModalColumns",
|
|
17968
18177
|
rowSelection: rowSelection,
|
|
17969
|
-
rowKey: "
|
|
18178
|
+
rowKey: "id",
|
|
17970
18179
|
columns: columns,
|
|
17971
18180
|
scroll: {
|
|
17972
18181
|
x: '100%',
|
|
17973
18182
|
y: 250
|
|
17974
|
-
}
|
|
18183
|
+
},
|
|
18184
|
+
size: "small"
|
|
17975
18185
|
}, tableProps))), /*#__PURE__*/React.createElement(Popover, {
|
|
17976
18186
|
getPopupContainer: function getPopupContainer(triggerNode) {
|
|
17977
18187
|
return triggerNode.parentElement;
|
|
@@ -18042,57 +18252,68 @@ var getColumns = function getColumns(_ref) {
|
|
|
18042
18252
|
BS_E3_REISSUE_GOODS: [{
|
|
18043
18253
|
dataIndex: 'sku',
|
|
18044
18254
|
title: "SKU",
|
|
18045
|
-
width: 150
|
|
18255
|
+
width: 150,
|
|
18256
|
+
render: renderTextEllipsis
|
|
18046
18257
|
}, {
|
|
18047
18258
|
dataIndex: 'skuId',
|
|
18048
18259
|
title: "SKU ID",
|
|
18049
|
-
width: 150
|
|
18260
|
+
width: 150,
|
|
18261
|
+
render: renderTextEllipsis
|
|
18050
18262
|
}, {
|
|
18051
18263
|
dataIndex: 'goodsName',
|
|
18052
18264
|
title: "\u5546\u54C1\u540D\u79F0",
|
|
18053
|
-
width: 150
|
|
18265
|
+
width: 150,
|
|
18266
|
+
render: renderTextEllipsis
|
|
18054
18267
|
}, {
|
|
18055
18268
|
dataIndex: 'goodsShortName',
|
|
18056
18269
|
title: "\u5546\u54C1\u7B80\u79F0",
|
|
18057
|
-
width: 150
|
|
18270
|
+
width: 150,
|
|
18271
|
+
render: renderTextEllipsis
|
|
18058
18272
|
}, {
|
|
18059
18273
|
dataIndex: 'picPath',
|
|
18060
18274
|
title: "\u5546\u54C1\u56FE\u7247",
|
|
18061
18275
|
width: 150,
|
|
18062
18276
|
render: function render(val) {
|
|
18063
18277
|
return /*#__PURE__*/React.createElement(Image, {
|
|
18064
|
-
width:
|
|
18278
|
+
width: 30,
|
|
18065
18279
|
src: val
|
|
18066
18280
|
});
|
|
18067
18281
|
}
|
|
18068
18282
|
}, {
|
|
18069
18283
|
dataIndex: 'goodsSn',
|
|
18070
18284
|
title: "\u8D27\u53F7",
|
|
18071
|
-
width: 150
|
|
18285
|
+
width: 150,
|
|
18286
|
+
render: renderTextEllipsis
|
|
18072
18287
|
}, {
|
|
18073
18288
|
dataIndex: 'goodsId',
|
|
18074
18289
|
title: "\u8D27\u53F7ID",
|
|
18075
|
-
width: 150
|
|
18290
|
+
width: 150,
|
|
18291
|
+
render: renderTextEllipsis
|
|
18076
18292
|
}, {
|
|
18077
18293
|
dataIndex: 'colorName',
|
|
18078
18294
|
title: "\u989C\u8272\u540D\u79F0",
|
|
18079
|
-
width: 150
|
|
18295
|
+
width: 150,
|
|
18296
|
+
render: renderTextEllipsis
|
|
18080
18297
|
}, {
|
|
18081
18298
|
dataIndex: 'colorCode',
|
|
18082
18299
|
title: "\u989C\u8272\u4EE3\u7801",
|
|
18083
|
-
width: 150
|
|
18300
|
+
width: 150,
|
|
18301
|
+
render: renderTextEllipsis
|
|
18084
18302
|
}, {
|
|
18085
18303
|
dataIndex: 'sizeName',
|
|
18086
18304
|
title: "\u5C3A\u7801\u540D\u79F0",
|
|
18087
|
-
width: 150
|
|
18305
|
+
width: 150,
|
|
18306
|
+
render: renderTextEllipsis
|
|
18088
18307
|
}, {
|
|
18089
18308
|
dataIndex: 'sizeCode',
|
|
18090
18309
|
title: "\u5C3A\u7801\u4EE3\u7801",
|
|
18091
|
-
width: 150
|
|
18310
|
+
width: 150,
|
|
18311
|
+
render: renderTextEllipsis
|
|
18092
18312
|
}, {
|
|
18093
18313
|
dataIndex: 'brandName',
|
|
18094
18314
|
title: "\u54C1\u724C\u540D\u79F0",
|
|
18095
|
-
width: 150
|
|
18315
|
+
width: 150,
|
|
18316
|
+
render: renderTextEllipsis
|
|
18096
18317
|
}, {
|
|
18097
18318
|
dataIndex: 'goodsNumber',
|
|
18098
18319
|
title: "\u5546\u54C1\u6570\u91CF",
|
|
@@ -18119,25 +18340,29 @@ var getColumns = function getColumns(_ref) {
|
|
|
18119
18340
|
title: "SKU",
|
|
18120
18341
|
align: 'center',
|
|
18121
18342
|
ellipsis: true,
|
|
18122
|
-
width: 150
|
|
18343
|
+
width: 150,
|
|
18344
|
+
render: renderTextEllipsis
|
|
18123
18345
|
}, {
|
|
18124
18346
|
dataIndex: 'skuId',
|
|
18125
18347
|
title: "SKU ID",
|
|
18126
18348
|
align: 'center',
|
|
18127
18349
|
ellipsis: true,
|
|
18128
|
-
width: 150
|
|
18350
|
+
width: 150,
|
|
18351
|
+
render: renderTextEllipsis
|
|
18129
18352
|
}, {
|
|
18130
18353
|
dataIndex: 'goodsName',
|
|
18131
18354
|
title: "\u5546\u54C1\u540D\u79F0",
|
|
18132
18355
|
align: 'center',
|
|
18133
18356
|
ellipsis: true,
|
|
18134
|
-
width: 150
|
|
18357
|
+
width: 150,
|
|
18358
|
+
render: renderTextEllipsis
|
|
18135
18359
|
}, {
|
|
18136
18360
|
dataIndex: 'goodsShortName',
|
|
18137
18361
|
title: "\u5546\u54C1\u7B80\u79F0",
|
|
18138
18362
|
align: 'center',
|
|
18139
18363
|
ellipsis: true,
|
|
18140
|
-
width: 100
|
|
18364
|
+
width: 100,
|
|
18365
|
+
render: renderTextEllipsis
|
|
18141
18366
|
}, {
|
|
18142
18367
|
dataIndex: 'picPath',
|
|
18143
18368
|
title: "\u5546\u54C1\u56FE\u7247",
|
|
@@ -18146,7 +18371,7 @@ var getColumns = function getColumns(_ref) {
|
|
|
18146
18371
|
width: 100,
|
|
18147
18372
|
render: function render(val) {
|
|
18148
18373
|
return /*#__PURE__*/React.createElement(Image, {
|
|
18149
|
-
width:
|
|
18374
|
+
width: 30,
|
|
18150
18375
|
src: val
|
|
18151
18376
|
});
|
|
18152
18377
|
}
|
|
@@ -18155,43 +18380,50 @@ var getColumns = function getColumns(_ref) {
|
|
|
18155
18380
|
title: "\u8D27\u53F7",
|
|
18156
18381
|
align: 'center',
|
|
18157
18382
|
ellipsis: true,
|
|
18158
|
-
width: 150
|
|
18383
|
+
width: 150,
|
|
18384
|
+
render: renderTextEllipsis
|
|
18159
18385
|
}, {
|
|
18160
18386
|
dataIndex: 'goodsId',
|
|
18161
18387
|
title: "\u8D27\u53F7ID",
|
|
18162
18388
|
align: 'center',
|
|
18163
18389
|
ellipsis: true,
|
|
18164
|
-
width: 150
|
|
18390
|
+
width: 150,
|
|
18391
|
+
render: renderTextEllipsis
|
|
18165
18392
|
}, {
|
|
18166
18393
|
dataIndex: 'colorName',
|
|
18167
18394
|
title: "\u989C\u8272\u540D\u79F0",
|
|
18168
18395
|
align: 'center',
|
|
18169
18396
|
ellipsis: true,
|
|
18170
|
-
width: 100
|
|
18397
|
+
width: 100,
|
|
18398
|
+
render: renderTextEllipsis
|
|
18171
18399
|
}, {
|
|
18172
18400
|
dataIndex: 'colorCode',
|
|
18173
18401
|
title: "\u989C\u8272\u4EE3\u7801",
|
|
18174
18402
|
align: 'center',
|
|
18175
18403
|
ellipsis: true,
|
|
18176
|
-
width: 150
|
|
18404
|
+
width: 150,
|
|
18405
|
+
render: renderTextEllipsis
|
|
18177
18406
|
}, {
|
|
18178
18407
|
dataIndex: 'sizeName',
|
|
18179
18408
|
title: "\u5C3A\u7801\u540D\u79F0",
|
|
18180
18409
|
align: 'center',
|
|
18181
18410
|
ellipsis: true,
|
|
18182
|
-
width: 100
|
|
18411
|
+
width: 100,
|
|
18412
|
+
render: renderTextEllipsis
|
|
18183
18413
|
}, {
|
|
18184
18414
|
dataIndex: 'sizeCode',
|
|
18185
18415
|
title: "\u5C3A\u7801\u4EE3\u7801",
|
|
18186
18416
|
align: 'center',
|
|
18187
18417
|
ellipsis: true,
|
|
18188
|
-
width: 100
|
|
18418
|
+
width: 100,
|
|
18419
|
+
render: renderTextEllipsis
|
|
18189
18420
|
}, {
|
|
18190
18421
|
dataIndex: 'brandName',
|
|
18191
18422
|
title: "\u54C1\u724C\u540D\u79F0",
|
|
18192
18423
|
align: 'center',
|
|
18193
18424
|
ellipsis: true,
|
|
18194
|
-
width: 150
|
|
18425
|
+
width: 150,
|
|
18426
|
+
render: renderTextEllipsis
|
|
18195
18427
|
}, {
|
|
18196
18428
|
dataIndex: 'goodsNumber',
|
|
18197
18429
|
title: "\u5546\u54C1\u6570\u91CF",
|
|
@@ -18272,7 +18504,8 @@ var getColumns = function getColumns(_ref) {
|
|
|
18272
18504
|
title: "\u5957\u9910SKU",
|
|
18273
18505
|
align: 'center',
|
|
18274
18506
|
ellipsis: true,
|
|
18275
|
-
width: 150
|
|
18507
|
+
width: 150,
|
|
18508
|
+
render: renderTextEllipsis
|
|
18276
18509
|
}, {
|
|
18277
18510
|
dataIndex: 'tcGoodsNumber',
|
|
18278
18511
|
title: "\u5957\u9910\u5957\u6570",
|
|
@@ -18332,19 +18565,22 @@ var getColumns$1 = function getColumns(_ref) {
|
|
|
18332
18565
|
title: "".concat(text, "sku\u540D\u79F0"),
|
|
18333
18566
|
align: 'center',
|
|
18334
18567
|
ellipsis: true,
|
|
18335
|
-
width: 250
|
|
18568
|
+
width: 250,
|
|
18569
|
+
render: renderTextEllipsis
|
|
18336
18570
|
}, {
|
|
18337
18571
|
dataIndex: 'sku',
|
|
18338
18572
|
title: "".concat(text, "sku\u7F16\u7801"),
|
|
18339
18573
|
align: 'center',
|
|
18340
18574
|
ellipsis: true,
|
|
18341
|
-
width: 100
|
|
18575
|
+
width: 100,
|
|
18576
|
+
render: renderTextEllipsis
|
|
18342
18577
|
}, {
|
|
18343
18578
|
dataIndex: 'name',
|
|
18344
18579
|
title: "".concat(text, "\u540D\u79F0"),
|
|
18345
18580
|
align: 'center',
|
|
18346
18581
|
ellipsis: true,
|
|
18347
|
-
width: 250
|
|
18582
|
+
width: 250,
|
|
18583
|
+
render: renderTextEllipsis
|
|
18348
18584
|
}, {
|
|
18349
18585
|
dataIndex: 'pic',
|
|
18350
18586
|
title: "\u56FE\u7247",
|
|
@@ -18353,7 +18589,7 @@ var getColumns$1 = function getColumns(_ref) {
|
|
|
18353
18589
|
width: 100,
|
|
18354
18590
|
render: function render(val) {
|
|
18355
18591
|
return /*#__PURE__*/React.createElement(Image, {
|
|
18356
|
-
width:
|
|
18592
|
+
width: 30,
|
|
18357
18593
|
src: val
|
|
18358
18594
|
});
|
|
18359
18595
|
}
|
|
@@ -18362,7 +18598,8 @@ var getColumns$1 = function getColumns(_ref) {
|
|
|
18362
18598
|
title: "".concat(text, "\u7F16\u7801"),
|
|
18363
18599
|
align: 'center',
|
|
18364
18600
|
ellipsis: true,
|
|
18365
|
-
width: 100
|
|
18601
|
+
width: 100,
|
|
18602
|
+
render: renderTextEllipsis
|
|
18366
18603
|
}, {
|
|
18367
18604
|
dataIndex: 'money',
|
|
18368
18605
|
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
@@ -18390,10 +18627,10 @@ var getColumns$1 = function getColumns(_ref) {
|
|
|
18390
18627
|
}
|
|
18391
18628
|
}, {
|
|
18392
18629
|
dataIndex: 'share',
|
|
18393
|
-
title: "\
|
|
18630
|
+
title: "\u5747\u644A\u5355\u4EF7",
|
|
18394
18631
|
align: 'center',
|
|
18395
18632
|
ellipsis: true,
|
|
18396
|
-
width:
|
|
18633
|
+
width: 120
|
|
18397
18634
|
}, {
|
|
18398
18635
|
dataIndex: 'type',
|
|
18399
18636
|
title: "\u8D60\u54C1\u7C7B\u578B",
|
|
@@ -18405,13 +18642,15 @@ var getColumns$1 = function getColumns(_ref) {
|
|
|
18405
18642
|
title: "\u6279\u6B21\u53F7",
|
|
18406
18643
|
align: 'center',
|
|
18407
18644
|
ellipsis: true,
|
|
18408
|
-
width: 100
|
|
18645
|
+
width: 100,
|
|
18646
|
+
render: renderTextEllipsis
|
|
18409
18647
|
}, {
|
|
18410
18648
|
dataIndex: 'expireDate',
|
|
18411
18649
|
title: "\u6709\u6548\u671F",
|
|
18412
18650
|
align: 'center',
|
|
18413
18651
|
ellipsis: true,
|
|
18414
|
-
width: 100
|
|
18652
|
+
width: 100,
|
|
18653
|
+
render: renderTextEllipsis
|
|
18415
18654
|
}]
|
|
18416
18655
|
};
|
|
18417
18656
|
};
|
|
@@ -18426,12 +18665,17 @@ var renderGiftType = function renderGiftType(val) {
|
|
|
18426
18665
|
6: '天猫优仓赠品',
|
|
18427
18666
|
7: '淘宝CRM会员送赠'
|
|
18428
18667
|
};
|
|
18429
|
-
return
|
|
18668
|
+
return renderTextEllipsis(giftTypeMap[val]);
|
|
18669
|
+
};
|
|
18670
|
+
var isNumberOrNumberString = function isNumberOrNumberString(value) {
|
|
18671
|
+
if (typeof value === 'number') return true;
|
|
18672
|
+
if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
|
|
18673
|
+
return false;
|
|
18430
18674
|
};
|
|
18431
18675
|
var renderFieldMap = {
|
|
18432
18676
|
num: function num(_ref) {
|
|
18433
18677
|
var disabled = _ref.disabled,
|
|
18434
|
-
|
|
18678
|
+
updateDataHandle = _ref.updateDataHandle;
|
|
18435
18679
|
return function (val, record, index) {
|
|
18436
18680
|
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
18437
18681
|
style: {
|
|
@@ -18441,19 +18685,40 @@ var renderFieldMap = {
|
|
|
18441
18685
|
min: 1,
|
|
18442
18686
|
precision: 0,
|
|
18443
18687
|
onChange: function onChange(num) {
|
|
18444
|
-
|
|
18688
|
+
updateDataHandle({
|
|
18689
|
+
num: num,
|
|
18690
|
+
orderPrice: num && isNumberOrNumberString(record.sharePrice) ? num * record.price : null
|
|
18691
|
+
}, index);
|
|
18445
18692
|
}
|
|
18446
18693
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
18447
18694
|
};
|
|
18448
18695
|
},
|
|
18449
18696
|
giftType: function giftType() {
|
|
18450
18697
|
return renderGiftType;
|
|
18698
|
+
},
|
|
18699
|
+
orderPrice: function orderPrice(_ref2) {
|
|
18700
|
+
var disabled = _ref2.disabled,
|
|
18701
|
+
updateHandle = _ref2.updateHandle;
|
|
18702
|
+
return function (val, record, index) {
|
|
18703
|
+
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
18704
|
+
style: {
|
|
18705
|
+
width: 70
|
|
18706
|
+
},
|
|
18707
|
+
value: val,
|
|
18708
|
+
min: 1,
|
|
18709
|
+
precision: 2,
|
|
18710
|
+
onChange: function onChange(num) {
|
|
18711
|
+
return updateHandle(num, index, 'orderPrice');
|
|
18712
|
+
}
|
|
18713
|
+
}) : /*#__PURE__*/React.createElement("span", null, (record.num || record.num === 0) && (val || val === 0) ? Number(val * record.num).toFixed(2) : null);
|
|
18714
|
+
};
|
|
18451
18715
|
}
|
|
18452
18716
|
};
|
|
18453
|
-
var getWdtReissueGoodColumns = function getWdtReissueGoodColumns(
|
|
18454
|
-
var disabled =
|
|
18455
|
-
updateHandle =
|
|
18456
|
-
|
|
18717
|
+
var getWdtReissueGoodColumns = function getWdtReissueGoodColumns(_ref3) {
|
|
18718
|
+
var disabled = _ref3.disabled,
|
|
18719
|
+
updateHandle = _ref3.updateHandle,
|
|
18720
|
+
updateDataHandle = _ref3.updateDataHandle,
|
|
18721
|
+
operate = _ref3.operate;
|
|
18457
18722
|
return getColumnsMap$1()['WDT_REISSUE_GOODS'].map(function (item) {
|
|
18458
18723
|
var newItem = _objectSpread2({
|
|
18459
18724
|
align: 'center',
|
|
@@ -18463,7 +18728,8 @@ var getWdtReissueGoodColumns = function getWdtReissueGoodColumns(_ref2) {
|
|
|
18463
18728
|
return _objectSpread2(_objectSpread2({}, newItem), {}, {
|
|
18464
18729
|
render: renderFieldMap === null || renderFieldMap === void 0 ? void 0 : renderFieldMap[item.dataIndex]({
|
|
18465
18730
|
disabled: disabled,
|
|
18466
|
-
updateHandle: updateHandle
|
|
18731
|
+
updateHandle: updateHandle,
|
|
18732
|
+
updateDataHandle: updateDataHandle
|
|
18467
18733
|
})
|
|
18468
18734
|
});
|
|
18469
18735
|
}
|
|
@@ -18471,25 +18737,37 @@ var getWdtReissueGoodColumns = function getWdtReissueGoodColumns(_ref2) {
|
|
|
18471
18737
|
});
|
|
18472
18738
|
};
|
|
18473
18739
|
|
|
18740
|
+
function toNum(value) {
|
|
18741
|
+
if (typeof value === 'string') {
|
|
18742
|
+
return value ? +value : void 0;
|
|
18743
|
+
}
|
|
18744
|
+
if (typeof value === 'number') {
|
|
18745
|
+
return value;
|
|
18746
|
+
}
|
|
18747
|
+
return void 0;
|
|
18748
|
+
}
|
|
18474
18749
|
var getColumns$2 = function getColumns(_ref) {
|
|
18475
18750
|
var _ref$text = _ref.text,
|
|
18476
18751
|
text = _ref$text === void 0 ? '' : _ref$text,
|
|
18477
18752
|
disabled = _ref.disabled,
|
|
18478
|
-
updateHandle = _ref.updateHandle
|
|
18753
|
+
updateHandle = _ref.updateHandle,
|
|
18754
|
+
updateDataHandle = _ref.updateDataHandle;
|
|
18479
18755
|
return {
|
|
18480
18756
|
//旺店通补发商品信息
|
|
18481
18757
|
WDT_REISSUE_GOODS: [{
|
|
18482
18758
|
dataIndex: 'goodId',
|
|
18483
18759
|
title: "\u5546\u54C1ID",
|
|
18484
|
-
width:
|
|
18760
|
+
width: 250,
|
|
18485
18761
|
align: 'center',
|
|
18486
|
-
ellipsis: true
|
|
18762
|
+
ellipsis: true,
|
|
18763
|
+
render: renderTextEllipsis
|
|
18487
18764
|
}, {
|
|
18488
18765
|
dataIndex: 'goodNo',
|
|
18489
18766
|
title: "\u5546\u54C1\u7F16\u7801",
|
|
18490
18767
|
align: 'center',
|
|
18491
18768
|
ellipsis: true,
|
|
18492
|
-
width: 180
|
|
18769
|
+
width: 180,
|
|
18770
|
+
render: renderTextEllipsis
|
|
18493
18771
|
}, {
|
|
18494
18772
|
dataIndex: 'goodName',
|
|
18495
18773
|
title: "\u5546\u54C1\u540D\u79F0",
|
|
@@ -18504,24 +18782,30 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
18504
18782
|
dataIndex: 'apiGoodsName',
|
|
18505
18783
|
title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
|
|
18506
18784
|
width: 200,
|
|
18507
|
-
align: 'center'
|
|
18785
|
+
align: 'center',
|
|
18786
|
+
ellipsis: true,
|
|
18787
|
+
render: renderTextEllipsis
|
|
18508
18788
|
}, {
|
|
18509
18789
|
dataIndex: 'platformGoodsId',
|
|
18510
18790
|
title: "\u5E73\u53F0\u5546\u54C1ID",
|
|
18511
18791
|
width: 180,
|
|
18512
|
-
align: 'center'
|
|
18792
|
+
align: 'center',
|
|
18793
|
+
ellipsis: true,
|
|
18794
|
+
render: renderTextEllipsis
|
|
18513
18795
|
}, {
|
|
18514
18796
|
dataIndex: 'specId',
|
|
18515
18797
|
title: "SKUID",
|
|
18516
18798
|
align: 'center',
|
|
18517
18799
|
ellipsis: true,
|
|
18518
|
-
width: 150
|
|
18800
|
+
width: 150,
|
|
18801
|
+
render: renderTextEllipsis
|
|
18519
18802
|
}, {
|
|
18520
18803
|
dataIndex: 'specNo',
|
|
18521
18804
|
title: "\u5546\u54C1SKU\u7F16\u7801",
|
|
18522
18805
|
align: 'center',
|
|
18523
18806
|
ellipsis: true,
|
|
18524
|
-
width: 180
|
|
18807
|
+
width: 180,
|
|
18808
|
+
render: renderTextEllipsis
|
|
18525
18809
|
}, {
|
|
18526
18810
|
dataIndex: 'specName',
|
|
18527
18811
|
title: "\u5546\u54C1SKU\u540D\u79F0",
|
|
@@ -18536,23 +18820,50 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
18536
18820
|
dataIndex: 'apiSpecName',
|
|
18537
18821
|
title: "\u5E73\u53F0\u89C4\u683C\u540D\u79F0",
|
|
18538
18822
|
width: 200,
|
|
18539
|
-
align: 'center'
|
|
18823
|
+
align: 'center',
|
|
18824
|
+
ellipsis: true,
|
|
18825
|
+
render: renderTextEllipsis
|
|
18540
18826
|
}, {
|
|
18541
18827
|
dataIndex: 'platformSpecId',
|
|
18542
18828
|
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
18543
18829
|
width: 180,
|
|
18544
|
-
align: 'center'
|
|
18830
|
+
align: 'center',
|
|
18831
|
+
ellipsis: true,
|
|
18832
|
+
render: renderTextEllipsis
|
|
18833
|
+
}, {
|
|
18834
|
+
dataIndex: 'brandName',
|
|
18835
|
+
title: "\u54C1\u724C\u540D\u79F0",
|
|
18836
|
+
width: 180,
|
|
18837
|
+
align: 'center',
|
|
18838
|
+
ellipsis: true,
|
|
18839
|
+
render: renderTextEllipsis
|
|
18545
18840
|
}, {
|
|
18546
18841
|
dataIndex: 'orderPrice',
|
|
18547
|
-
title: "\
|
|
18548
|
-
|
|
18549
|
-
|
|
18550
|
-
|
|
18842
|
+
title: "\u8865\u53D1\u91D1\u989D",
|
|
18843
|
+
align: 'center',
|
|
18844
|
+
// render: (val: number, record: any) => {
|
|
18845
|
+
// return (record.num || record.num === 0) && (val || val === 0)
|
|
18846
|
+
// ? Number(val * record.num).toFixed(2)
|
|
18847
|
+
// : null;
|
|
18848
|
+
// },
|
|
18551
18849
|
width: 200
|
|
18552
18850
|
}, {
|
|
18553
18851
|
dataIndex: 'num',
|
|
18554
18852
|
title: "\u6570\u91CF",
|
|
18555
|
-
width: 100
|
|
18853
|
+
width: 100,
|
|
18854
|
+
validator: function validator(_rule, value) {
|
|
18855
|
+
var goodsName = '';
|
|
18856
|
+
if (((value === null || value === void 0 ? void 0 : value.wdtReissueGoods) || []).some(function (goods) {
|
|
18857
|
+
var num = toNum(goods === null || goods === void 0 ? void 0 : goods.num);
|
|
18858
|
+
var res = typeof num === 'number' ? num < 1 : true;
|
|
18859
|
+
if (res) {
|
|
18860
|
+
goodsName = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
|
|
18861
|
+
}
|
|
18862
|
+
return res;
|
|
18863
|
+
})) {
|
|
18864
|
+
return Promise.reject("".concat(goodsName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
18865
|
+
}
|
|
18866
|
+
}
|
|
18556
18867
|
}, {
|
|
18557
18868
|
dataIndex: 'sharePrice',
|
|
18558
18869
|
title: "\u5206\u644A\u4EF7",
|
|
@@ -18569,13 +18880,15 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
18569
18880
|
title: "\u5546\u54C1ID",
|
|
18570
18881
|
align: 'center',
|
|
18571
18882
|
ellipsis: true,
|
|
18572
|
-
width:
|
|
18883
|
+
width: 250,
|
|
18884
|
+
render: renderTextEllipsis
|
|
18573
18885
|
}, {
|
|
18574
18886
|
dataIndex: 'goodNo',
|
|
18575
18887
|
title: "\u5546\u54C1\u7F16\u7801",
|
|
18576
18888
|
align: 'center',
|
|
18577
18889
|
ellipsis: true,
|
|
18578
|
-
width: 180
|
|
18890
|
+
width: 180,
|
|
18891
|
+
render: renderTextEllipsis
|
|
18579
18892
|
}, {
|
|
18580
18893
|
dataIndex: 'goodName',
|
|
18581
18894
|
title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
|
|
@@ -18590,24 +18903,30 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
18590
18903
|
dataIndex: 'apiGoodsName',
|
|
18591
18904
|
title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
|
|
18592
18905
|
width: 200,
|
|
18593
|
-
align: 'center'
|
|
18906
|
+
align: 'center',
|
|
18907
|
+
ellipsis: true,
|
|
18908
|
+
render: renderTextEllipsis
|
|
18594
18909
|
}, {
|
|
18595
18910
|
dataIndex: 'platformGoodsId',
|
|
18596
18911
|
title: "\u5E73\u53F0\u5546\u54C1ID",
|
|
18597
18912
|
width: 180,
|
|
18598
|
-
align: 'center'
|
|
18913
|
+
align: 'center',
|
|
18914
|
+
ellipsis: true,
|
|
18915
|
+
render: renderTextEllipsis
|
|
18599
18916
|
}, {
|
|
18600
18917
|
dataIndex: 'specId',
|
|
18601
18918
|
title: "".concat(text, "SKUID"),
|
|
18602
18919
|
align: 'center',
|
|
18603
18920
|
ellipsis: true,
|
|
18604
|
-
width:
|
|
18921
|
+
width: 150,
|
|
18922
|
+
render: renderTextEllipsis
|
|
18605
18923
|
}, {
|
|
18606
18924
|
dataIndex: 'specNo',
|
|
18607
18925
|
title: "".concat(text, "\u5546\u54C1SKU\u7F16\u7801"),
|
|
18608
18926
|
align: 'center',
|
|
18609
18927
|
ellipsis: true,
|
|
18610
|
-
width: 180
|
|
18928
|
+
width: 180,
|
|
18929
|
+
render: renderTextEllipsis
|
|
18611
18930
|
}, {
|
|
18612
18931
|
dataIndex: 'specName',
|
|
18613
18932
|
title: "".concat(text, "\u5546\u54C1SKU\u540D\u79F0"),
|
|
@@ -18622,12 +18941,23 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
18622
18941
|
dataIndex: 'apiSpecName',
|
|
18623
18942
|
title: "\u5E73\u53F0\u89C4\u683C\u540D\u79F0",
|
|
18624
18943
|
width: 200,
|
|
18625
|
-
align: 'center'
|
|
18944
|
+
align: 'center',
|
|
18945
|
+
ellipsis: true,
|
|
18946
|
+
render: renderTextEllipsis
|
|
18626
18947
|
}, {
|
|
18627
18948
|
dataIndex: 'platformSpecId',
|
|
18628
18949
|
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
18629
18950
|
width: 180,
|
|
18630
|
-
align: 'center'
|
|
18951
|
+
align: 'center',
|
|
18952
|
+
ellipsis: true,
|
|
18953
|
+
render: renderTextEllipsis
|
|
18954
|
+
}, {
|
|
18955
|
+
dataIndex: 'brandName',
|
|
18956
|
+
title: "\u54C1\u724C\u540D\u79F0",
|
|
18957
|
+
width: 180,
|
|
18958
|
+
align: 'center',
|
|
18959
|
+
ellipsis: true,
|
|
18960
|
+
render: renderTextEllipsis
|
|
18631
18961
|
}, {
|
|
18632
18962
|
dataIndex: 'orderPrice',
|
|
18633
18963
|
title: "\u6210\u4EA4\u603B\u91D1\u989D",
|
|
@@ -18667,8 +18997,7 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
18667
18997
|
title: "\u8D60\u54C1\u65B9\u5F0F",
|
|
18668
18998
|
align: 'center',
|
|
18669
18999
|
ellipsis: true,
|
|
18670
|
-
width: 100
|
|
18671
|
-
render: renderGiftType
|
|
19000
|
+
width: 100
|
|
18672
19001
|
}],
|
|
18673
19002
|
//旺店通退货商品信息
|
|
18674
19003
|
WDT_RETURN_GOODS: [{
|
|
@@ -18676,13 +19005,15 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
18676
19005
|
title: "\u5546\u54C1ID",
|
|
18677
19006
|
align: 'center',
|
|
18678
19007
|
ellipsis: true,
|
|
18679
|
-
width:
|
|
19008
|
+
width: 250,
|
|
19009
|
+
render: renderTextEllipsis
|
|
18680
19010
|
}, {
|
|
18681
19011
|
dataIndex: 'goodNo',
|
|
18682
19012
|
title: "\u5546\u54C1\u7F16\u7801",
|
|
18683
19013
|
align: 'center',
|
|
18684
19014
|
ellipsis: true,
|
|
18685
|
-
width: 180
|
|
19015
|
+
width: 180,
|
|
19016
|
+
render: renderTextEllipsis
|
|
18686
19017
|
}, {
|
|
18687
19018
|
dataIndex: 'goodName',
|
|
18688
19019
|
title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
|
|
@@ -18697,24 +19028,30 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
18697
19028
|
dataIndex: 'apiGoodsName',
|
|
18698
19029
|
title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
|
|
18699
19030
|
width: 200,
|
|
18700
|
-
align: 'center'
|
|
19031
|
+
align: 'center',
|
|
19032
|
+
ellipsis: true,
|
|
19033
|
+
render: renderTextEllipsis
|
|
18701
19034
|
}, {
|
|
18702
19035
|
dataIndex: 'platformGoodsId',
|
|
18703
19036
|
title: "\u5E73\u53F0\u5546\u54C1ID",
|
|
18704
19037
|
width: 180,
|
|
18705
|
-
align: 'center'
|
|
19038
|
+
align: 'center',
|
|
19039
|
+
ellipsis: true,
|
|
19040
|
+
render: renderTextEllipsis
|
|
18706
19041
|
}, {
|
|
18707
19042
|
dataIndex: 'specId',
|
|
18708
19043
|
title: "".concat(text, "SKUID"),
|
|
18709
19044
|
align: 'center',
|
|
18710
19045
|
ellipsis: true,
|
|
18711
|
-
width: 100
|
|
19046
|
+
width: 100,
|
|
19047
|
+
render: renderTextEllipsis
|
|
18712
19048
|
}, {
|
|
18713
19049
|
dataIndex: 'specNo',
|
|
18714
19050
|
title: "".concat(text, "\u5546\u54C1SKU\u7F16\u7801"),
|
|
18715
19051
|
align: 'center',
|
|
18716
19052
|
ellipsis: true,
|
|
18717
|
-
width: 180
|
|
19053
|
+
width: 180,
|
|
19054
|
+
render: renderTextEllipsis
|
|
18718
19055
|
}, {
|
|
18719
19056
|
dataIndex: 'specName',
|
|
18720
19057
|
title: "".concat(text, "\u5546\u54C1SKU\u540D\u79F0"),
|
|
@@ -18729,12 +19066,23 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
18729
19066
|
dataIndex: 'apiSpecName',
|
|
18730
19067
|
title: "\u5E73\u53F0\u89C4\u683C\u540D\u79F0",
|
|
18731
19068
|
width: 200,
|
|
18732
|
-
align: 'center'
|
|
19069
|
+
align: 'center',
|
|
19070
|
+
ellipsis: true,
|
|
19071
|
+
render: renderTextEllipsis
|
|
18733
19072
|
}, {
|
|
18734
19073
|
dataIndex: 'platformSpecId',
|
|
18735
19074
|
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
18736
19075
|
width: 180,
|
|
18737
|
-
align: 'center'
|
|
19076
|
+
align: 'center',
|
|
19077
|
+
ellipsis: true,
|
|
19078
|
+
render: renderTextEllipsis
|
|
19079
|
+
}, {
|
|
19080
|
+
dataIndex: 'brandName',
|
|
19081
|
+
title: "\u54C1\u724C\u540D\u79F0",
|
|
19082
|
+
width: 180,
|
|
19083
|
+
align: 'center',
|
|
19084
|
+
ellipsis: true,
|
|
19085
|
+
render: renderTextEllipsis
|
|
18738
19086
|
}, {
|
|
18739
19087
|
dataIndex: 'num',
|
|
18740
19088
|
title: "".concat(text, "\u9000\u8D27\u6570\u91CF"),
|
|
@@ -18821,13 +19169,15 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
18821
19169
|
title: "\u5546\u54C1ID",
|
|
18822
19170
|
align: 'center',
|
|
18823
19171
|
ellipsis: true,
|
|
18824
|
-
width:
|
|
19172
|
+
width: 250,
|
|
19173
|
+
render: renderTextEllipsis
|
|
18825
19174
|
}, {
|
|
18826
19175
|
dataIndex: 'goodNo',
|
|
18827
19176
|
title: "\u5546\u54C1\u7F16\u7801",
|
|
18828
19177
|
align: 'center',
|
|
18829
19178
|
ellipsis: true,
|
|
18830
|
-
width: 180
|
|
19179
|
+
width: 180,
|
|
19180
|
+
render: renderTextEllipsis
|
|
18831
19181
|
}, {
|
|
18832
19182
|
dataIndex: 'goodName',
|
|
18833
19183
|
title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
|
|
@@ -18842,24 +19192,30 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
18842
19192
|
dataIndex: 'apiGoodsName',
|
|
18843
19193
|
title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
|
|
18844
19194
|
width: 200,
|
|
18845
|
-
align: 'center'
|
|
19195
|
+
align: 'center',
|
|
19196
|
+
ellipsis: true,
|
|
19197
|
+
render: renderTextEllipsis
|
|
18846
19198
|
}, {
|
|
18847
19199
|
dataIndex: 'platformGoodsId',
|
|
18848
19200
|
title: "\u5E73\u53F0\u5546\u54C1ID",
|
|
18849
19201
|
width: 180,
|
|
18850
|
-
align: 'center'
|
|
19202
|
+
align: 'center',
|
|
19203
|
+
ellipsis: true,
|
|
19204
|
+
render: renderTextEllipsis
|
|
18851
19205
|
}, {
|
|
18852
19206
|
dataIndex: 'specId',
|
|
18853
19207
|
title: "".concat(text, "SKUID"),
|
|
18854
19208
|
align: 'center',
|
|
18855
19209
|
ellipsis: true,
|
|
18856
|
-
width: 100
|
|
19210
|
+
width: 100,
|
|
19211
|
+
render: renderTextEllipsis
|
|
18857
19212
|
}, {
|
|
18858
19213
|
dataIndex: 'specNo',
|
|
18859
19214
|
title: "".concat(text, "\u5546\u54C1SKU\u7F16\u7801"),
|
|
18860
19215
|
align: 'center',
|
|
18861
19216
|
ellipsis: true,
|
|
18862
|
-
width: 180
|
|
19217
|
+
width: 180,
|
|
19218
|
+
render: renderTextEllipsis
|
|
18863
19219
|
}, {
|
|
18864
19220
|
dataIndex: 'specName',
|
|
18865
19221
|
title: "".concat(text, "\u5546\u54C1SKU\u540D\u79F0"),
|
|
@@ -18874,12 +19230,23 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
18874
19230
|
dataIndex: 'apiSpecName',
|
|
18875
19231
|
title: "\u5E73\u53F0\u89C4\u683C\u540D\u79F0",
|
|
18876
19232
|
width: 200,
|
|
18877
|
-
align: 'center'
|
|
19233
|
+
align: 'center',
|
|
19234
|
+
ellipsis: true,
|
|
19235
|
+
render: renderTextEllipsis
|
|
18878
19236
|
}, {
|
|
18879
19237
|
dataIndex: 'platformSpecId',
|
|
18880
19238
|
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
18881
19239
|
width: 180,
|
|
18882
|
-
align: 'center'
|
|
19240
|
+
align: 'center',
|
|
19241
|
+
ellipsis: true,
|
|
19242
|
+
render: renderTextEllipsis
|
|
19243
|
+
}, {
|
|
19244
|
+
dataIndex: 'brandName',
|
|
19245
|
+
title: "\u54C1\u724C\u540D\u79F0",
|
|
19246
|
+
width: 180,
|
|
19247
|
+
align: 'center',
|
|
19248
|
+
ellipsis: true,
|
|
19249
|
+
render: renderTextEllipsis
|
|
18883
19250
|
}, {
|
|
18884
19251
|
dataIndex: 'num',
|
|
18885
19252
|
title: "".concat(text, "\u6362\u51FA\u6570\u91CF"),
|
|
@@ -18979,43 +19346,50 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
18979
19346
|
title: "\u5546\u54C1\u540D\u79F0",
|
|
18980
19347
|
align: 'center',
|
|
18981
19348
|
ellipsis: true,
|
|
18982
|
-
width: 250
|
|
19349
|
+
width: 250,
|
|
19350
|
+
render: renderTextEllipsis
|
|
18983
19351
|
}, {
|
|
18984
19352
|
dataIndex: 'goodsCode',
|
|
18985
19353
|
title: "\u5546\u54C1\u7F16\u7801",
|
|
18986
19354
|
align: 'center',
|
|
18987
19355
|
ellipsis: true,
|
|
18988
|
-
width: 250
|
|
19356
|
+
width: 250,
|
|
19357
|
+
render: renderTextEllipsis
|
|
18989
19358
|
}, {
|
|
18990
19359
|
dataIndex: 'skuCode',
|
|
18991
19360
|
title: "sku\u7F16\u7801",
|
|
18992
19361
|
align: 'center',
|
|
18993
19362
|
ellipsis: true,
|
|
18994
|
-
width: 250
|
|
19363
|
+
width: 250,
|
|
19364
|
+
render: renderTextEllipsis
|
|
18995
19365
|
}, {
|
|
18996
19366
|
dataIndex: 'skuName',
|
|
18997
19367
|
title: "\u7EBF\u4E0Asku\u540D\u79F0",
|
|
18998
19368
|
align: 'center',
|
|
18999
19369
|
ellipsis: true,
|
|
19000
|
-
width: 250
|
|
19370
|
+
width: 250,
|
|
19371
|
+
render: renderTextEllipsis
|
|
19001
19372
|
}, {
|
|
19002
19373
|
dataIndex: 'olnSkuCode',
|
|
19003
19374
|
title: "\u7EBF\u4E0Asku\u7F16\u7801",
|
|
19004
19375
|
align: 'center',
|
|
19005
19376
|
ellipsis: true,
|
|
19006
|
-
width: 150
|
|
19377
|
+
width: 150,
|
|
19378
|
+
render: renderTextEllipsis
|
|
19007
19379
|
}, {
|
|
19008
19380
|
dataIndex: 'sku',
|
|
19009
19381
|
title: "\u7EBF\u4E0Asku id",
|
|
19010
19382
|
align: 'center',
|
|
19011
19383
|
ellipsis: true,
|
|
19012
|
-
width: 150
|
|
19384
|
+
width: 150,
|
|
19385
|
+
render: renderTextEllipsis
|
|
19013
19386
|
}, {
|
|
19014
19387
|
dataIndex: 'name',
|
|
19015
19388
|
title: "\u7EBF\u4E0A\u5546\u54C1\u540D\u79F0",
|
|
19016
19389
|
align: 'center',
|
|
19017
19390
|
ellipsis: true,
|
|
19018
|
-
width: 250
|
|
19391
|
+
width: 250,
|
|
19392
|
+
render: renderTextEllipsis
|
|
19019
19393
|
}, {
|
|
19020
19394
|
dataIndex: 'pic',
|
|
19021
19395
|
title: "\u7EBF\u4E0A\u56FE\u7247",
|
|
@@ -19024,7 +19398,7 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
19024
19398
|
width: 100,
|
|
19025
19399
|
render: function render(val) {
|
|
19026
19400
|
return /*#__PURE__*/React.createElement(Image, {
|
|
19027
|
-
width:
|
|
19401
|
+
width: 30,
|
|
19028
19402
|
src: val
|
|
19029
19403
|
});
|
|
19030
19404
|
}
|
|
@@ -19033,25 +19407,29 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
19033
19407
|
title: "\u7EBF\u4E0A\u5546\u54C1\u7F16\u7801",
|
|
19034
19408
|
align: 'center',
|
|
19035
19409
|
ellipsis: true,
|
|
19036
|
-
width: 150
|
|
19410
|
+
width: 150,
|
|
19411
|
+
render: renderTextEllipsis
|
|
19037
19412
|
}, {
|
|
19038
19413
|
dataIndex: 'code',
|
|
19039
19414
|
title: "\u7EBF\u4E0A\u5546\u54C1id",
|
|
19040
19415
|
align: 'center',
|
|
19041
19416
|
ellipsis: true,
|
|
19042
|
-
width: 150
|
|
19417
|
+
width: 150,
|
|
19418
|
+
render: renderTextEllipsis
|
|
19043
19419
|
}, {
|
|
19044
19420
|
dataIndex: 'barCode',
|
|
19045
19421
|
title: "\u5546\u54C1\u6761\u7801",
|
|
19046
19422
|
align: 'center',
|
|
19047
19423
|
ellipsis: true,
|
|
19048
|
-
width: 150
|
|
19424
|
+
width: 150,
|
|
19425
|
+
render: renderTextEllipsis
|
|
19049
19426
|
}, {
|
|
19050
19427
|
dataIndex: 'money',
|
|
19051
19428
|
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
19052
19429
|
align: 'center',
|
|
19053
19430
|
ellipsis: true,
|
|
19054
|
-
width: 100
|
|
19431
|
+
width: 100,
|
|
19432
|
+
render: renderTextEllipsis
|
|
19055
19433
|
}, {
|
|
19056
19434
|
dataIndex: 'number',
|
|
19057
19435
|
title: "".concat(text, "\u6570\u91CF"),
|
|
@@ -19076,13 +19454,15 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
19076
19454
|
title: "\u5E94\u6536\u6B3E",
|
|
19077
19455
|
align: 'center',
|
|
19078
19456
|
ellipsis: true,
|
|
19079
|
-
width: 70
|
|
19457
|
+
width: 70,
|
|
19458
|
+
render: renderTextEllipsis
|
|
19080
19459
|
}, {
|
|
19081
19460
|
dataIndex: 'type',
|
|
19082
19461
|
title: "\u8D60\u54C1\u7C7B\u578B",
|
|
19083
19462
|
align: 'center',
|
|
19084
19463
|
ellipsis: true,
|
|
19085
|
-
width: 100
|
|
19464
|
+
width: 100,
|
|
19465
|
+
render: renderTextEllipsis
|
|
19086
19466
|
}, {
|
|
19087
19467
|
dataIndex: 'isPackage',
|
|
19088
19468
|
title: "\u662F\u5426\u7EC4\u5408\u5546\u54C1",
|
|
@@ -19108,7 +19488,7 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
19108
19488
|
};
|
|
19109
19489
|
};
|
|
19110
19490
|
|
|
19111
|
-
var isNumberOrNumberString = function isNumberOrNumberString(value) {
|
|
19491
|
+
var isNumberOrNumberString$1 = function isNumberOrNumberString(value) {
|
|
19112
19492
|
if (typeof value === 'number') return true;
|
|
19113
19493
|
if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
|
|
19114
19494
|
return false;
|
|
@@ -19117,7 +19497,7 @@ var getYesOrNo$3 = function getYesOrNo(val) {
|
|
|
19117
19497
|
if (isNull(val)) return null;
|
|
19118
19498
|
return val ? '是' : '否';
|
|
19119
19499
|
};
|
|
19120
|
-
function toNum(value) {
|
|
19500
|
+
function toNum$1(value) {
|
|
19121
19501
|
if (typeof value === 'string') {
|
|
19122
19502
|
return value ? +value : void 0;
|
|
19123
19503
|
}
|
|
@@ -19136,27 +19516,32 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
19136
19516
|
GY_GOODS: [{
|
|
19137
19517
|
dataIndex: 'goodName',
|
|
19138
19518
|
title: "\u5546\u54C1\u540D\u79F0",
|
|
19139
|
-
width: 150
|
|
19519
|
+
width: 150,
|
|
19520
|
+
render: renderTextEllipsis
|
|
19140
19521
|
}, {
|
|
19141
19522
|
dataIndex: 'goodShortName',
|
|
19142
19523
|
title: "\u5546\u54C1\u7B80\u79F0",
|
|
19143
|
-
width: 150
|
|
19524
|
+
width: 150,
|
|
19525
|
+
render: renderTextEllipsis
|
|
19144
19526
|
}, {
|
|
19145
19527
|
dataIndex: 'goodNo',
|
|
19146
19528
|
title: "\u5546\u54C1\u7F16\u7801",
|
|
19147
|
-
width: 200
|
|
19529
|
+
width: 200,
|
|
19530
|
+
render: renderTextEllipsis
|
|
19148
19531
|
}, {
|
|
19149
19532
|
dataIndex: 'specName',
|
|
19150
19533
|
title: "SKU\u540D\u79F0",
|
|
19151
19534
|
align: 'center',
|
|
19152
19535
|
ellipsis: true,
|
|
19153
|
-
width: 250
|
|
19536
|
+
width: 250,
|
|
19537
|
+
render: renderTextEllipsis
|
|
19154
19538
|
}, {
|
|
19155
19539
|
dataIndex: 'specNo',
|
|
19156
19540
|
title: "SKU\u7F16\u7801",
|
|
19157
19541
|
align: 'center',
|
|
19158
19542
|
ellipsis: true,
|
|
19159
|
-
width: 150
|
|
19543
|
+
width: 150,
|
|
19544
|
+
render: renderTextEllipsis
|
|
19160
19545
|
}, {
|
|
19161
19546
|
dataIndex: 'qty',
|
|
19162
19547
|
title: "\u6570\u91CF",
|
|
@@ -19172,8 +19557,8 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
19172
19557
|
onChange: function onChange(num) {
|
|
19173
19558
|
updateDataHandle({
|
|
19174
19559
|
qty: num,
|
|
19175
|
-
amount: num && isNumberOrNumberString(record.price) ? num * record.price : null,
|
|
19176
|
-
originAmount: num && isNumberOrNumberString(record.originPrice) ? num * record.originPrice : null
|
|
19560
|
+
amount: num && isNumberOrNumberString$1(record.price) ? num * record.price : null,
|
|
19561
|
+
originAmount: num && isNumberOrNumberString$1(record.originPrice) ? num * record.originPrice : null
|
|
19177
19562
|
}, index);
|
|
19178
19563
|
}
|
|
19179
19564
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
@@ -19193,7 +19578,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
19193
19578
|
onChange: function onChange(num) {
|
|
19194
19579
|
updateDataHandle({
|
|
19195
19580
|
price: num,
|
|
19196
|
-
amount: num && isNumberOrNumberString(record.qty) ? num * record.qty : null
|
|
19581
|
+
amount: num && isNumberOrNumberString$1(record.qty) ? num * record.qty : null
|
|
19197
19582
|
}, index);
|
|
19198
19583
|
}
|
|
19199
19584
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
@@ -19247,7 +19632,8 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
19247
19632
|
}, {
|
|
19248
19633
|
dataIndex: 'skuNote',
|
|
19249
19634
|
title: "\u5546\u54C1\u5907\u6CE8",
|
|
19250
|
-
width: 150
|
|
19635
|
+
width: 150,
|
|
19636
|
+
render: renderTextEllipsis
|
|
19251
19637
|
}].map(function (item) {
|
|
19252
19638
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
19253
19639
|
align: 'center',
|
|
@@ -19258,27 +19644,32 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
19258
19644
|
GY_REISSUE_GOODS: [{
|
|
19259
19645
|
dataIndex: 'goodName',
|
|
19260
19646
|
title: "\u5546\u54C1\u540D\u79F0",
|
|
19261
|
-
width: 150
|
|
19647
|
+
width: 150,
|
|
19648
|
+
render: renderTextEllipsis
|
|
19262
19649
|
}, {
|
|
19263
19650
|
dataIndex: 'goodShortName',
|
|
19264
19651
|
title: "\u5546\u54C1\u7B80\u79F0",
|
|
19265
|
-
width: 150
|
|
19652
|
+
width: 150,
|
|
19653
|
+
render: renderTextEllipsis
|
|
19266
19654
|
}, {
|
|
19267
19655
|
dataIndex: 'goodNo',
|
|
19268
19656
|
title: "\u5546\u54C1\u7F16\u7801",
|
|
19269
|
-
width: 200
|
|
19657
|
+
width: 200,
|
|
19658
|
+
render: renderTextEllipsis
|
|
19270
19659
|
}, {
|
|
19271
19660
|
dataIndex: 'specName',
|
|
19272
19661
|
title: "SKU\u540D\u79F0",
|
|
19273
19662
|
align: 'center',
|
|
19274
19663
|
ellipsis: true,
|
|
19275
|
-
width: 250
|
|
19664
|
+
width: 250,
|
|
19665
|
+
render: renderTextEllipsis
|
|
19276
19666
|
}, {
|
|
19277
19667
|
dataIndex: 'specNo',
|
|
19278
19668
|
title: "SKU\u7F16\u7801",
|
|
19279
19669
|
align: 'center',
|
|
19280
19670
|
ellipsis: true,
|
|
19281
|
-
width: 150
|
|
19671
|
+
width: 150,
|
|
19672
|
+
render: renderTextEllipsis
|
|
19282
19673
|
}, {
|
|
19283
19674
|
dataIndex: 'qty',
|
|
19284
19675
|
title: "\u6570\u91CF",
|
|
@@ -19286,7 +19677,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
19286
19677
|
validator: function validator(_rule, value) {
|
|
19287
19678
|
var goodsName = '';
|
|
19288
19679
|
if (((value === null || value === void 0 ? void 0 : value.gyReissueGoods) || []).some(function (goods) {
|
|
19289
|
-
var qty = toNum(goods === null || goods === void 0 ? void 0 : goods.qty);
|
|
19680
|
+
var qty = toNum$1(goods === null || goods === void 0 ? void 0 : goods.qty);
|
|
19290
19681
|
var res = typeof qty === 'number' ? qty < 1 : true;
|
|
19291
19682
|
if (res) {
|
|
19292
19683
|
goodsName = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
|
|
@@ -19307,8 +19698,8 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
19307
19698
|
onChange: function onChange(num) {
|
|
19308
19699
|
updateDataHandle({
|
|
19309
19700
|
qty: num,
|
|
19310
|
-
amount: num && isNumberOrNumberString(record.price) ? num * record.price : null,
|
|
19311
|
-
originAmount: num && isNumberOrNumberString(record.originPrice) ? num * record.originPrice : null
|
|
19701
|
+
amount: num && isNumberOrNumberString$1(record.price) ? num * record.price : null,
|
|
19702
|
+
originAmount: num && isNumberOrNumberString$1(record.originPrice) ? num * record.originPrice : null
|
|
19312
19703
|
}, index);
|
|
19313
19704
|
}
|
|
19314
19705
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
@@ -19328,7 +19719,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
19328
19719
|
onChange: function onChange(num) {
|
|
19329
19720
|
updateDataHandle({
|
|
19330
19721
|
price: num,
|
|
19331
|
-
amount: num && isNumberOrNumberString(record.qty) ? num * record.qty : null
|
|
19722
|
+
amount: num && isNumberOrNumberString$1(record.qty) ? num * record.qty : null
|
|
19332
19723
|
}, index);
|
|
19333
19724
|
}
|
|
19334
19725
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
@@ -19374,27 +19765,32 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
19374
19765
|
GY_RETURN_GOODS: [{
|
|
19375
19766
|
dataIndex: 'goodName',
|
|
19376
19767
|
title: "\u5546\u54C1\u540D\u79F0",
|
|
19377
|
-
width: 150
|
|
19768
|
+
width: 150,
|
|
19769
|
+
render: renderTextEllipsis
|
|
19378
19770
|
}, {
|
|
19379
19771
|
dataIndex: 'goodShortName',
|
|
19380
19772
|
title: "\u5546\u54C1\u7B80\u79F0",
|
|
19381
|
-
width: 150
|
|
19773
|
+
width: 150,
|
|
19774
|
+
render: renderTextEllipsis
|
|
19382
19775
|
}, {
|
|
19383
19776
|
dataIndex: 'goodNo',
|
|
19384
19777
|
title: "\u5546\u54C1\u7F16\u7801",
|
|
19385
|
-
width: 200
|
|
19778
|
+
width: 200,
|
|
19779
|
+
render: renderTextEllipsis
|
|
19386
19780
|
}, {
|
|
19387
19781
|
dataIndex: 'specName',
|
|
19388
19782
|
title: "SKU\u540D\u79F0",
|
|
19389
19783
|
align: 'center',
|
|
19390
19784
|
ellipsis: true,
|
|
19391
|
-
width: 250
|
|
19785
|
+
width: 250,
|
|
19786
|
+
render: renderTextEllipsis
|
|
19392
19787
|
}, {
|
|
19393
19788
|
dataIndex: 'specNo',
|
|
19394
19789
|
title: "SKU\u7F16\u7801",
|
|
19395
19790
|
align: 'center',
|
|
19396
19791
|
ellipsis: true,
|
|
19397
|
-
width: 150
|
|
19792
|
+
width: 150,
|
|
19793
|
+
render: renderTextEllipsis
|
|
19398
19794
|
}, {
|
|
19399
19795
|
dataIndex: 'qty',
|
|
19400
19796
|
title: "\u6570\u91CF",
|
|
@@ -19402,7 +19798,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
19402
19798
|
validator: function validator(_rule, value) {
|
|
19403
19799
|
var goodsName = '';
|
|
19404
19800
|
if (((value === null || value === void 0 ? void 0 : value.gyReturnGoods) || []).some(function (goods) {
|
|
19405
|
-
var qty = toNum(goods === null || goods === void 0 ? void 0 : goods.qty);
|
|
19801
|
+
var qty = toNum$1(goods === null || goods === void 0 ? void 0 : goods.qty);
|
|
19406
19802
|
var res = typeof qty === 'number' ? qty < 1 : true;
|
|
19407
19803
|
if (res) {
|
|
19408
19804
|
goodsName = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
|
|
@@ -19423,8 +19819,8 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
19423
19819
|
onChange: function onChange(num) {
|
|
19424
19820
|
updateDataHandle({
|
|
19425
19821
|
qty: num,
|
|
19426
|
-
amount: num && isNumberOrNumberString(record.price) ? num * record.price : null,
|
|
19427
|
-
originAmount: num && isNumberOrNumberString(record.originPrice) ? num * record.originPrice : null
|
|
19822
|
+
amount: num && isNumberOrNumberString$1(record.price) ? num * record.price : null,
|
|
19823
|
+
originAmount: num && isNumberOrNumberString$1(record.originPrice) ? num * record.originPrice : null
|
|
19428
19824
|
}, index);
|
|
19429
19825
|
}
|
|
19430
19826
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
@@ -19444,7 +19840,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
19444
19840
|
onChange: function onChange(num) {
|
|
19445
19841
|
updateDataHandle({
|
|
19446
19842
|
price: num,
|
|
19447
|
-
amount: num && isNumberOrNumberString(record.qty) ? num * record.qty : null
|
|
19843
|
+
amount: num && isNumberOrNumberString$1(record.qty) ? num * record.qty : null
|
|
19448
19844
|
}, index);
|
|
19449
19845
|
}
|
|
19450
19846
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
@@ -19503,7 +19899,7 @@ var fillAttrs = function fillAttrs(item) {
|
|
|
19503
19899
|
if (!item.align) item.align = 'center';
|
|
19504
19900
|
return item;
|
|
19505
19901
|
};
|
|
19506
|
-
function toNum$
|
|
19902
|
+
function toNum$2(value) {
|
|
19507
19903
|
if (typeof value === 'string') {
|
|
19508
19904
|
return value ? +value : void 0;
|
|
19509
19905
|
}
|
|
@@ -19523,19 +19919,22 @@ var getColumns$5 = function getColumns() {
|
|
|
19523
19919
|
title: '商品名称',
|
|
19524
19920
|
width: 150,
|
|
19525
19921
|
ellipsis: true,
|
|
19526
|
-
align: 'center'
|
|
19922
|
+
align: 'center',
|
|
19923
|
+
render: renderTextEllipsis
|
|
19527
19924
|
}, {
|
|
19528
19925
|
dataIndex: 'skuId',
|
|
19529
19926
|
title: '商品编码',
|
|
19530
19927
|
width: 150,
|
|
19531
19928
|
ellipsis: true,
|
|
19532
|
-
align: 'center'
|
|
19929
|
+
align: 'center',
|
|
19930
|
+
render: renderTextEllipsis
|
|
19533
19931
|
}, {
|
|
19534
19932
|
dataIndex: 'iId',
|
|
19535
19933
|
title: '款式编码',
|
|
19536
19934
|
width: 150,
|
|
19537
19935
|
ellipsis: true,
|
|
19538
|
-
align: 'center'
|
|
19936
|
+
align: 'center',
|
|
19937
|
+
render: renderTextEllipsis
|
|
19539
19938
|
}, {
|
|
19540
19939
|
dataIndex: 'pic',
|
|
19541
19940
|
title: '商品图片',
|
|
@@ -19544,7 +19943,7 @@ var getColumns$5 = function getColumns() {
|
|
|
19544
19943
|
width: 100,
|
|
19545
19944
|
render: function render(val) {
|
|
19546
19945
|
return /*#__PURE__*/React.createElement(Image, {
|
|
19547
|
-
width:
|
|
19946
|
+
width: 30,
|
|
19548
19947
|
src: val
|
|
19549
19948
|
});
|
|
19550
19949
|
}
|
|
@@ -19553,7 +19952,8 @@ var getColumns$5 = function getColumns() {
|
|
|
19553
19952
|
title: '规格值',
|
|
19554
19953
|
width: 150,
|
|
19555
19954
|
ellipsis: true,
|
|
19556
|
-
align: 'center'
|
|
19955
|
+
align: 'center',
|
|
19956
|
+
render: renderTextEllipsis
|
|
19557
19957
|
}, {
|
|
19558
19958
|
dataIndex: 'saleBasePrice',
|
|
19559
19959
|
title: '原价',
|
|
@@ -19615,7 +20015,8 @@ var getColumns$5 = function getColumns() {
|
|
|
19615
20015
|
title: '批次号',
|
|
19616
20016
|
width: 150,
|
|
19617
20017
|
ellipsis: true,
|
|
19618
|
-
align: 'center'
|
|
20018
|
+
align: 'center',
|
|
20019
|
+
render: renderTextEllipsis
|
|
19619
20020
|
}, {
|
|
19620
20021
|
dataIndex: 'isGift',
|
|
19621
20022
|
title: '是否赠品',
|
|
@@ -19642,26 +20043,30 @@ var getColumns$5 = function getColumns() {
|
|
|
19642
20043
|
title: '子订单号',
|
|
19643
20044
|
width: 240,
|
|
19644
20045
|
ellipsis: true,
|
|
19645
|
-
align: 'center'
|
|
20046
|
+
align: 'center',
|
|
20047
|
+
render: renderTextEllipsis
|
|
19646
20048
|
}],
|
|
19647
20049
|
JST_REISSUE_GOODS: [{
|
|
19648
20050
|
dataIndex: 'name',
|
|
19649
20051
|
title: '商品名称',
|
|
19650
20052
|
width: 150,
|
|
19651
20053
|
ellipsis: true,
|
|
19652
|
-
align: 'center'
|
|
20054
|
+
align: 'center',
|
|
20055
|
+
render: renderTextEllipsis
|
|
19653
20056
|
}, {
|
|
19654
20057
|
dataIndex: 'skuId',
|
|
19655
20058
|
title: '商品编码',
|
|
19656
20059
|
width: 150,
|
|
19657
20060
|
ellipsis: true,
|
|
19658
|
-
align: 'center'
|
|
20061
|
+
align: 'center',
|
|
20062
|
+
render: renderTextEllipsis
|
|
19659
20063
|
}, {
|
|
19660
20064
|
dataIndex: 'iId',
|
|
19661
20065
|
title: '款式编码',
|
|
19662
20066
|
width: 150,
|
|
19663
20067
|
ellipsis: true,
|
|
19664
|
-
align: 'center'
|
|
20068
|
+
align: 'center',
|
|
20069
|
+
render: renderTextEllipsis
|
|
19665
20070
|
}, {
|
|
19666
20071
|
dataIndex: 'pic',
|
|
19667
20072
|
title: '商品图片',
|
|
@@ -19670,7 +20075,7 @@ var getColumns$5 = function getColumns() {
|
|
|
19670
20075
|
width: 100,
|
|
19671
20076
|
render: function render(val) {
|
|
19672
20077
|
return /*#__PURE__*/React.createElement(Image, {
|
|
19673
|
-
width:
|
|
20078
|
+
width: 30,
|
|
19674
20079
|
src: val
|
|
19675
20080
|
});
|
|
19676
20081
|
}
|
|
@@ -19679,7 +20084,8 @@ var getColumns$5 = function getColumns() {
|
|
|
19679
20084
|
title: '规格值',
|
|
19680
20085
|
width: 150,
|
|
19681
20086
|
ellipsis: true,
|
|
19682
|
-
align: 'center'
|
|
20087
|
+
align: 'center',
|
|
20088
|
+
render: renderTextEllipsis
|
|
19683
20089
|
}, {
|
|
19684
20090
|
dataIndex: 'saleBasePrice',
|
|
19685
20091
|
title: '原价',
|
|
@@ -19695,19 +20101,21 @@ var getColumns$5 = function getColumns() {
|
|
|
19695
20101
|
ellipsis: true,
|
|
19696
20102
|
align: 'center',
|
|
19697
20103
|
width: 120,
|
|
19698
|
-
validator:
|
|
19699
|
-
|
|
19700
|
-
|
|
19701
|
-
|
|
19702
|
-
|
|
19703
|
-
|
|
19704
|
-
|
|
19705
|
-
|
|
19706
|
-
|
|
19707
|
-
|
|
19708
|
-
|
|
19709
|
-
|
|
19710
|
-
}
|
|
20104
|
+
// validator: (_rule: any, value: any) => {
|
|
20105
|
+
// let goodsName = '';
|
|
20106
|
+
// if (
|
|
20107
|
+
// (value?.jstReissueGoods || []).some((goods: any) => {
|
|
20108
|
+
// const v = toNum(goods?.salePrice);
|
|
20109
|
+
// const res = typeof v === 'number' ? v < 0 : true;
|
|
20110
|
+
// if (res) {
|
|
20111
|
+
// goodsName = goods?.name ? `[${goods?.name}]` : '';
|
|
20112
|
+
// }
|
|
20113
|
+
// return res;
|
|
20114
|
+
// })
|
|
20115
|
+
// ) {
|
|
20116
|
+
// return Promise.reject(`${goodsName}单价为大于等于0的数`);
|
|
20117
|
+
// }
|
|
20118
|
+
// },
|
|
19711
20119
|
render: function render(val, record, index) {
|
|
19712
20120
|
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
19713
20121
|
style: {
|
|
@@ -19730,7 +20138,7 @@ var getColumns$5 = function getColumns() {
|
|
|
19730
20138
|
validator: function validator(_rule, value) {
|
|
19731
20139
|
var goodsName = '';
|
|
19732
20140
|
if (((value === null || value === void 0 ? void 0 : value.jstReissueGoods) || []).some(function (goods) {
|
|
19733
|
-
var qty = toNum$
|
|
20141
|
+
var qty = toNum$2(goods === null || goods === void 0 ? void 0 : goods.qty);
|
|
19734
20142
|
var res = typeof qty === 'number' ? qty < 1 : true;
|
|
19735
20143
|
if (res) {
|
|
19736
20144
|
goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
|
|
@@ -19789,31 +20197,35 @@ var getColumns$5 = function getColumns() {
|
|
|
19789
20197
|
onChange: function onChange(e) {
|
|
19790
20198
|
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(e.target.value, index, 'remark');
|
|
19791
20199
|
}
|
|
19792
|
-
}) :
|
|
20200
|
+
}) : renderTextEllipsis(val);
|
|
19793
20201
|
}
|
|
19794
20202
|
}],
|
|
19795
20203
|
JST_RETURN_GOODS: [{
|
|
19796
20204
|
dataIndex: 'name',
|
|
19797
|
-
title: '商品名称'
|
|
20205
|
+
title: '商品名称',
|
|
20206
|
+
render: renderTextEllipsis
|
|
19798
20207
|
}, {
|
|
19799
20208
|
dataIndex: 'skuId',
|
|
19800
|
-
title: '商品编码'
|
|
20209
|
+
title: '商品编码',
|
|
20210
|
+
render: renderTextEllipsis
|
|
19801
20211
|
}, {
|
|
19802
20212
|
dataIndex: 'iId',
|
|
19803
|
-
title: '款式编码'
|
|
20213
|
+
title: '款式编码',
|
|
20214
|
+
render: renderTextEllipsis
|
|
19804
20215
|
}, {
|
|
19805
20216
|
dataIndex: 'pic',
|
|
19806
20217
|
title: '商品图片',
|
|
19807
20218
|
width: 100,
|
|
19808
20219
|
render: function render(val) {
|
|
19809
20220
|
return /*#__PURE__*/React.createElement(Image, {
|
|
19810
|
-
width:
|
|
20221
|
+
width: 30,
|
|
19811
20222
|
src: val
|
|
19812
20223
|
});
|
|
19813
20224
|
}
|
|
19814
20225
|
}, {
|
|
19815
20226
|
dataIndex: 'propertiesValue',
|
|
19816
|
-
title: '规格值'
|
|
20227
|
+
title: '规格值',
|
|
20228
|
+
render: renderTextEllipsis
|
|
19817
20229
|
}, {
|
|
19818
20230
|
dataIndex: 'saleBasePrice',
|
|
19819
20231
|
title: '原价',
|
|
@@ -19827,7 +20239,7 @@ var getColumns$5 = function getColumns() {
|
|
|
19827
20239
|
validator: function validator(_rule, value) {
|
|
19828
20240
|
var goodsName = '';
|
|
19829
20241
|
if (((value === null || value === void 0 ? void 0 : value.jstReturnGoods) || []).some(function (goods) {
|
|
19830
|
-
var v = toNum$
|
|
20242
|
+
var v = toNum$2(goods === null || goods === void 0 ? void 0 : goods.salePrice);
|
|
19831
20243
|
var res = typeof v === 'number' ? v < 0 : true;
|
|
19832
20244
|
if (res) {
|
|
19833
20245
|
goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
|
|
@@ -19857,7 +20269,7 @@ var getColumns$5 = function getColumns() {
|
|
|
19857
20269
|
validator: function validator(_rule, value) {
|
|
19858
20270
|
var goodsName = '';
|
|
19859
20271
|
if (((value === null || value === void 0 ? void 0 : value.jstReturnGoods) || []).some(function (goods) {
|
|
19860
|
-
var qty = toNum$
|
|
20272
|
+
var qty = toNum$2(goods === null || goods === void 0 ? void 0 : goods.qty);
|
|
19861
20273
|
var res = typeof qty === 'number' ? qty < 1 : true;
|
|
19862
20274
|
if (res) {
|
|
19863
20275
|
goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
|
|
@@ -19888,7 +20300,8 @@ var getColumns$5 = function getColumns() {
|
|
|
19888
20300
|
}
|
|
19889
20301
|
}, {
|
|
19890
20302
|
dataIndex: 'batchId',
|
|
19891
|
-
title: '批次号'
|
|
20303
|
+
title: '批次号',
|
|
20304
|
+
render: renderTextEllipsis
|
|
19892
20305
|
}, {
|
|
19893
20306
|
dataIndex: 'isGift',
|
|
19894
20307
|
title: '是否赠品',
|
|
@@ -19920,35 +20333,40 @@ var getColumns$5 = function getColumns() {
|
|
|
19920
20333
|
onChange: function onChange(e) {
|
|
19921
20334
|
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(e.target.value, index, 'remark');
|
|
19922
20335
|
}
|
|
19923
|
-
}) :
|
|
20336
|
+
}) : renderTextEllipsis(val);
|
|
19924
20337
|
}
|
|
19925
20338
|
}, {
|
|
19926
20339
|
dataIndex: 'outerOiId',
|
|
19927
20340
|
title: '子订单号',
|
|
19928
|
-
width: 240
|
|
20341
|
+
width: 240,
|
|
20342
|
+
render: renderTextEllipsis
|
|
19929
20343
|
}].map(fillAttrs),
|
|
19930
20344
|
JST_EXCHANGE_GOODS: [{
|
|
19931
20345
|
dataIndex: 'name',
|
|
19932
|
-
title: '商品名称'
|
|
20346
|
+
title: '商品名称',
|
|
20347
|
+
render: renderTextEllipsis
|
|
19933
20348
|
}, {
|
|
19934
20349
|
dataIndex: 'skuId',
|
|
19935
|
-
title: '商品编码'
|
|
20350
|
+
title: '商品编码',
|
|
20351
|
+
render: renderTextEllipsis
|
|
19936
20352
|
}, {
|
|
19937
20353
|
dataIndex: 'iId',
|
|
19938
|
-
title: '款式编码'
|
|
20354
|
+
title: '款式编码',
|
|
20355
|
+
render: renderTextEllipsis
|
|
19939
20356
|
}, {
|
|
19940
20357
|
dataIndex: 'pic',
|
|
19941
20358
|
title: '商品图片',
|
|
19942
20359
|
width: 100,
|
|
19943
20360
|
render: function render(val) {
|
|
19944
20361
|
return /*#__PURE__*/React.createElement(Image, {
|
|
19945
|
-
width:
|
|
20362
|
+
width: 30,
|
|
19946
20363
|
src: val
|
|
19947
20364
|
});
|
|
19948
20365
|
}
|
|
19949
20366
|
}, {
|
|
19950
20367
|
dataIndex: 'propertiesValue',
|
|
19951
|
-
title: '规格值'
|
|
20368
|
+
title: '规格值',
|
|
20369
|
+
render: renderTextEllipsis
|
|
19952
20370
|
}, {
|
|
19953
20371
|
dataIndex: 'saleBasePrice',
|
|
19954
20372
|
title: '原价',
|
|
@@ -20026,13 +20444,13 @@ var getColumns$5 = function getColumns() {
|
|
|
20026
20444
|
onChange: function onChange(e) {
|
|
20027
20445
|
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(e.target.value, index, 'remark');
|
|
20028
20446
|
}
|
|
20029
|
-
}) :
|
|
20447
|
+
}) : renderTextEllipsis(val);
|
|
20030
20448
|
}
|
|
20031
20449
|
}].map(fillAttrs)
|
|
20032
20450
|
};
|
|
20033
20451
|
};
|
|
20034
20452
|
|
|
20035
|
-
function toNum$
|
|
20453
|
+
function toNum$3(value) {
|
|
20036
20454
|
if (typeof value === 'string') {
|
|
20037
20455
|
return value ? +value : void 0;
|
|
20038
20456
|
}
|
|
@@ -20049,42 +20467,50 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
20049
20467
|
KM_GOODS: [{
|
|
20050
20468
|
dataIndex: 'skuPropertiesName',
|
|
20051
20469
|
title: "\u89C4\u683C\u540D\u79F0",
|
|
20052
|
-
width: 250
|
|
20470
|
+
width: 250,
|
|
20471
|
+
render: renderTextEllipsis
|
|
20053
20472
|
}, {
|
|
20054
20473
|
dataIndex: 'sysTitle',
|
|
20055
20474
|
title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
|
|
20056
|
-
width: 150
|
|
20475
|
+
width: 150,
|
|
20476
|
+
render: renderTextEllipsis
|
|
20057
20477
|
}, {
|
|
20058
20478
|
dataIndex: 'title',
|
|
20059
20479
|
title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
|
|
20060
|
-
width: 150
|
|
20480
|
+
width: 150,
|
|
20481
|
+
render: renderTextEllipsis
|
|
20061
20482
|
}, {
|
|
20062
20483
|
dataIndex: 'shortTitle',
|
|
20063
20484
|
title: "\u5546\u54C1\u7B80\u79F0",
|
|
20064
|
-
width: 150
|
|
20485
|
+
width: 150,
|
|
20486
|
+
render: renderTextEllipsis
|
|
20065
20487
|
}, {
|
|
20066
20488
|
dataIndex: 'sysOuterId',
|
|
20067
20489
|
title: "\u7CFB\u7EDF\u5546\u5BB6\u7F16\u7801",
|
|
20068
|
-
width: 150
|
|
20490
|
+
width: 150,
|
|
20491
|
+
render: renderTextEllipsis
|
|
20069
20492
|
}, {
|
|
20070
20493
|
dataIndex: 'skuSysId',
|
|
20071
20494
|
title: "\u7CFB\u7EDF\u89C4\u683CID",
|
|
20072
|
-
width: 150
|
|
20495
|
+
width: 150,
|
|
20496
|
+
render: renderTextEllipsis
|
|
20073
20497
|
}, {
|
|
20074
20498
|
dataIndex: 'skuId',
|
|
20075
20499
|
title: "\u5E73\u53F0\u89C4\u683C\u7F16\u53F7",
|
|
20076
|
-
width: 170
|
|
20500
|
+
width: 170,
|
|
20501
|
+
render: renderTextEllipsis
|
|
20077
20502
|
}, {
|
|
20078
20503
|
dataIndex: 'itemSysId',
|
|
20079
20504
|
title: "\u7CFB\u7EDF\u5546\u54C1ID",
|
|
20080
|
-
width: 150
|
|
20505
|
+
width: 150,
|
|
20506
|
+
render: renderTextEllipsis
|
|
20081
20507
|
}, {
|
|
20082
20508
|
dataIndex: 'sysPicPath',
|
|
20083
20509
|
title: "\u5546\u54C1\u56FE\u7247",
|
|
20084
20510
|
width: 100,
|
|
20085
20511
|
render: function render(val) {
|
|
20086
20512
|
return /*#__PURE__*/React.createElement(Image, {
|
|
20087
|
-
width:
|
|
20513
|
+
width: 30,
|
|
20088
20514
|
src: val
|
|
20089
20515
|
});
|
|
20090
20516
|
}
|
|
@@ -20132,7 +20558,8 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
20132
20558
|
}, {
|
|
20133
20559
|
dataIndex: 'type',
|
|
20134
20560
|
title: "\u5546\u54C1\u7C7B\u578B",
|
|
20135
|
-
width: 150
|
|
20561
|
+
width: 150,
|
|
20562
|
+
render: renderTextEllipsis
|
|
20136
20563
|
}].map(function (item) {
|
|
20137
20564
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
20138
20565
|
align: 'center',
|
|
@@ -20142,35 +20569,43 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
20142
20569
|
KM_REISSUE_GOODS: [{
|
|
20143
20570
|
dataIndex: 'skuPropertiesName',
|
|
20144
20571
|
title: "\u89C4\u683C\u540D\u79F0",
|
|
20145
|
-
width: 250
|
|
20572
|
+
width: 250,
|
|
20573
|
+
render: renderTextEllipsis
|
|
20146
20574
|
}, {
|
|
20147
20575
|
dataIndex: 'sysTitle',
|
|
20148
20576
|
title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
|
|
20149
|
-
width: 150
|
|
20577
|
+
width: 150,
|
|
20578
|
+
render: renderTextEllipsis
|
|
20150
20579
|
}, {
|
|
20151
20580
|
dataIndex: 'shortTitle',
|
|
20152
20581
|
title: "\u5546\u54C1\u7B80\u79F0",
|
|
20153
|
-
width: 150
|
|
20582
|
+
width: 150,
|
|
20583
|
+
render: renderTextEllipsis
|
|
20154
20584
|
}, {
|
|
20155
20585
|
dataIndex: 'title',
|
|
20156
20586
|
title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
|
|
20157
|
-
width: 150
|
|
20587
|
+
width: 150,
|
|
20588
|
+
render: renderTextEllipsis
|
|
20158
20589
|
}, {
|
|
20159
20590
|
dataIndex: 'sysOuterId',
|
|
20160
20591
|
title: "\u7CFB\u7EDF\u5546\u5BB6\u7F16\u7801",
|
|
20161
|
-
width: 150
|
|
20592
|
+
width: 150,
|
|
20593
|
+
render: renderTextEllipsis
|
|
20162
20594
|
}, {
|
|
20163
20595
|
dataIndex: 'itemSysId',
|
|
20164
20596
|
title: "\u7CFB\u7EDF\u5546\u54C1ID",
|
|
20165
|
-
width: 150
|
|
20597
|
+
width: 150,
|
|
20598
|
+
render: renderTextEllipsis
|
|
20166
20599
|
}, {
|
|
20167
20600
|
dataIndex: 'skuSysId',
|
|
20168
20601
|
title: "\u7CFB\u7EDF\u89C4\u683CID",
|
|
20169
|
-
width: 150
|
|
20602
|
+
width: 150,
|
|
20603
|
+
render: renderTextEllipsis
|
|
20170
20604
|
}, {
|
|
20171
20605
|
dataIndex: 'skuId',
|
|
20172
20606
|
title: "\u5E73\u53F0\u89C4\u683C\u7F16\u53F7",
|
|
20173
|
-
width: 170
|
|
20607
|
+
width: 170,
|
|
20608
|
+
render: renderTextEllipsis
|
|
20174
20609
|
}, {
|
|
20175
20610
|
dataIndex: 'realNum',
|
|
20176
20611
|
title: "\u5B9E\u9645\u8865\u53D1\u6570\u91CF",
|
|
@@ -20178,7 +20613,7 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
20178
20613
|
validator: function validator(_rule, value) {
|
|
20179
20614
|
var title = '';
|
|
20180
20615
|
if (((value === null || value === void 0 ? void 0 : value.kmReissueGoods) || []).some(function (goods) {
|
|
20181
|
-
var realNum = toNum$
|
|
20616
|
+
var realNum = toNum$3(goods === null || goods === void 0 ? void 0 : goods.realNum);
|
|
20182
20617
|
var res = typeof realNum === 'number' ? realNum < 1 : true;
|
|
20183
20618
|
if (res) {
|
|
20184
20619
|
title = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
|
|
@@ -20245,14 +20680,15 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
20245
20680
|
}, {
|
|
20246
20681
|
dataIndex: 'type',
|
|
20247
20682
|
title: "\u5546\u54C1\u7C7B\u578B",
|
|
20248
|
-
width: 150
|
|
20683
|
+
width: 150,
|
|
20684
|
+
render: renderTextEllipsis
|
|
20249
20685
|
}, {
|
|
20250
20686
|
dataIndex: 'sysPicPath',
|
|
20251
20687
|
title: "\u5546\u54C1\u56FE\u7247",
|
|
20252
20688
|
width: 100,
|
|
20253
20689
|
render: function render(val) {
|
|
20254
20690
|
return /*#__PURE__*/React.createElement(Image, {
|
|
20255
|
-
width:
|
|
20691
|
+
width: 30,
|
|
20256
20692
|
src: val
|
|
20257
20693
|
});
|
|
20258
20694
|
}
|
|
@@ -20265,15 +20701,20 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
20265
20701
|
};
|
|
20266
20702
|
};
|
|
20267
20703
|
|
|
20268
|
-
var isNumberOrNumberString$
|
|
20704
|
+
var isNumberOrNumberString$2 = function isNumberOrNumberString(value) {
|
|
20269
20705
|
if (typeof value === 'number') return true;
|
|
20270
20706
|
if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
|
|
20271
20707
|
return false;
|
|
20272
20708
|
};
|
|
20273
|
-
|
|
20274
|
-
if (
|
|
20275
|
-
|
|
20276
|
-
}
|
|
20709
|
+
function toNum$4(value) {
|
|
20710
|
+
if (typeof value === 'string') {
|
|
20711
|
+
return value ? +value : void 0;
|
|
20712
|
+
}
|
|
20713
|
+
if (typeof value === 'number') {
|
|
20714
|
+
return value;
|
|
20715
|
+
}
|
|
20716
|
+
return void 0;
|
|
20717
|
+
}
|
|
20277
20718
|
var getColumns$7 = function getColumns(_ref) {
|
|
20278
20719
|
var _ref$text = _ref.text,
|
|
20279
20720
|
disabled = _ref.disabled,
|
|
@@ -20282,107 +20723,350 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
20282
20723
|
return {
|
|
20283
20724
|
//巨益商品信息
|
|
20284
20725
|
JY_GOODS: [{
|
|
20285
|
-
dataIndex: '
|
|
20286
|
-
title: "\
|
|
20287
|
-
|
|
20726
|
+
dataIndex: 'productName',
|
|
20727
|
+
title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
|
|
20728
|
+
align: 'center',
|
|
20729
|
+
ellipsis: true,
|
|
20730
|
+
width: 150,
|
|
20731
|
+
render: renderTextEllipsis
|
|
20732
|
+
}, {
|
|
20733
|
+
dataIndex: 'productCode',
|
|
20734
|
+
title: "\u7CFB\u7EDF\u5546\u54C1\u7F16\u7801",
|
|
20735
|
+
align: 'center',
|
|
20736
|
+
ellipsis: true,
|
|
20737
|
+
width: 150,
|
|
20738
|
+
render: renderTextEllipsis
|
|
20739
|
+
}, {
|
|
20740
|
+
dataIndex: 'productId',
|
|
20741
|
+
title: "\u7CFB\u7EDF\u5546\u54C1ID",
|
|
20742
|
+
align: 'center',
|
|
20743
|
+
ellipsis: true,
|
|
20744
|
+
width: 150,
|
|
20745
|
+
render: renderTextEllipsis
|
|
20746
|
+
}, {
|
|
20747
|
+
dataIndex: 'skuName',
|
|
20748
|
+
title: "\u7CFB\u7EDF\u89C4\u683C\u540D\u79F0",
|
|
20749
|
+
align: 'center',
|
|
20750
|
+
ellipsis: true,
|
|
20751
|
+
width: 150,
|
|
20752
|
+
render: renderTextEllipsis
|
|
20753
|
+
}, {
|
|
20754
|
+
dataIndex: 'skuCode',
|
|
20755
|
+
title: "\u7CFB\u7EDF\u89C4\u683C\u7F16\u7801",
|
|
20756
|
+
align: 'center',
|
|
20757
|
+
ellipsis: true,
|
|
20758
|
+
width: 150,
|
|
20759
|
+
render: renderTextEllipsis
|
|
20760
|
+
}, {
|
|
20761
|
+
dataIndex: 'specId',
|
|
20762
|
+
title: "\u89C4\u683CID",
|
|
20763
|
+
align: 'center',
|
|
20764
|
+
ellipsis: true,
|
|
20765
|
+
width: 150,
|
|
20766
|
+
render: renderTextEllipsis
|
|
20767
|
+
},
|
|
20768
|
+
// {
|
|
20769
|
+
// dataIndex: 'goodsName',
|
|
20770
|
+
// title: `货品名称`,
|
|
20771
|
+
// width: 250,
|
|
20772
|
+
// },
|
|
20773
|
+
// {
|
|
20774
|
+
// dataIndex: 'goodsCode',
|
|
20775
|
+
// title: `货品编号`,
|
|
20776
|
+
// width: 200,
|
|
20777
|
+
// },
|
|
20778
|
+
// {
|
|
20779
|
+
// dataIndex: 'goodsId',
|
|
20780
|
+
// title: `货品ID`,
|
|
20781
|
+
// width: 150,
|
|
20782
|
+
// },
|
|
20783
|
+
{
|
|
20784
|
+
dataIndex: 'goodsClass',
|
|
20785
|
+
title: "\u8D27\u54C1\u7C7B\u522B",
|
|
20786
|
+
width: 150,
|
|
20787
|
+
render: renderTextEllipsis
|
|
20788
|
+
}, {
|
|
20789
|
+
dataIndex: 'code',
|
|
20790
|
+
title: "\u6761\u7801",
|
|
20791
|
+
width: 150,
|
|
20792
|
+
render: renderTextEllipsis
|
|
20793
|
+
},
|
|
20794
|
+
// {
|
|
20795
|
+
// dataIndex: 'specName',
|
|
20796
|
+
// title: `规格名称`,
|
|
20797
|
+
// align: 'center',
|
|
20798
|
+
// ellipsis: true,
|
|
20799
|
+
// width: 200,
|
|
20800
|
+
// },
|
|
20801
|
+
// {
|
|
20802
|
+
// dataIndex: 'specCode',
|
|
20803
|
+
// title: `规格编号`,
|
|
20804
|
+
// align: 'center',
|
|
20805
|
+
// ellipsis: true,
|
|
20806
|
+
// width: 150,
|
|
20807
|
+
// },
|
|
20808
|
+
{
|
|
20809
|
+
dataIndex: 'mallProductName',
|
|
20810
|
+
title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
|
|
20811
|
+
align: 'center',
|
|
20812
|
+
ellipsis: true,
|
|
20813
|
+
width: 250,
|
|
20814
|
+
render: renderTextEllipsis
|
|
20815
|
+
}, {
|
|
20816
|
+
dataIndex: 'mallProductOutCode',
|
|
20817
|
+
title: "\u5E73\u53F0\u5546\u54C1\u7F16\u7801",
|
|
20818
|
+
align: 'center',
|
|
20819
|
+
ellipsis: true,
|
|
20820
|
+
width: 150,
|
|
20821
|
+
render: renderTextEllipsis
|
|
20822
|
+
}, {
|
|
20823
|
+
dataIndex: 'mallProductId',
|
|
20824
|
+
title: "\u5E73\u53F0\u5546\u54C1ID",
|
|
20825
|
+
align: 'center',
|
|
20826
|
+
ellipsis: true,
|
|
20827
|
+
width: 250,
|
|
20828
|
+
render: renderTextEllipsis
|
|
20829
|
+
}, {
|
|
20830
|
+
dataIndex: 'mallSkuName',
|
|
20831
|
+
title: "\u5E73\u53F0\u89C4\u683C\u540D\u79F0",
|
|
20832
|
+
align: 'center',
|
|
20833
|
+
ellipsis: true,
|
|
20834
|
+
width: 250,
|
|
20835
|
+
render: renderTextEllipsis
|
|
20836
|
+
}, {
|
|
20837
|
+
dataIndex: 'mallSkuId',
|
|
20838
|
+
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
20839
|
+
align: 'center',
|
|
20840
|
+
ellipsis: true,
|
|
20841
|
+
width: 250,
|
|
20842
|
+
render: renderTextEllipsis
|
|
20843
|
+
}, {
|
|
20844
|
+
dataIndex: 'sellCount',
|
|
20845
|
+
title: "\u6570\u91CF",
|
|
20846
|
+
width: 100,
|
|
20847
|
+
render: function render(val, record, index) {
|
|
20848
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
20849
|
+
style: {
|
|
20850
|
+
width: 70
|
|
20851
|
+
},
|
|
20852
|
+
value: val,
|
|
20853
|
+
min: 1,
|
|
20854
|
+
precision: 0,
|
|
20855
|
+
onChange: function onChange(num) {
|
|
20856
|
+
updateDataHandle({
|
|
20857
|
+
sellCount: num,
|
|
20858
|
+
sellTotal: num && isNumberOrNumberString$2(record.sellPrice) ? num * record.sellPrice : null
|
|
20859
|
+
}, index);
|
|
20860
|
+
}
|
|
20861
|
+
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
20862
|
+
}
|
|
20863
|
+
}, {
|
|
20864
|
+
dataIndex: 'sellPrice',
|
|
20865
|
+
title: "\u5355\u4EF7",
|
|
20866
|
+
width: 150,
|
|
20867
|
+
render: function render(val, record, index) {
|
|
20868
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
20869
|
+
style: {
|
|
20870
|
+
width: 130
|
|
20871
|
+
},
|
|
20872
|
+
value: val,
|
|
20873
|
+
min: 0,
|
|
20874
|
+
precision: 2,
|
|
20875
|
+
onChange: function onChange(num) {
|
|
20876
|
+
updateDataHandle({
|
|
20877
|
+
sellPrice: num,
|
|
20878
|
+
sellTotal: num && isNumberOrNumberString$2(record.sellCount) ? num * record.sellCount : null
|
|
20879
|
+
}, index);
|
|
20880
|
+
}
|
|
20881
|
+
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
20882
|
+
}
|
|
20288
20883
|
}, {
|
|
20289
|
-
dataIndex: '
|
|
20290
|
-
title: "\
|
|
20291
|
-
width:
|
|
20884
|
+
dataIndex: 'mallSellingPrice',
|
|
20885
|
+
title: "\u5E73\u53F0\u5546\u54C1\u4EF7\u683C",
|
|
20886
|
+
width: 150
|
|
20292
20887
|
}, {
|
|
20293
|
-
dataIndex: '
|
|
20294
|
-
title: "\
|
|
20888
|
+
dataIndex: 'sellTotal',
|
|
20889
|
+
title: "\u91D1\u989D",
|
|
20295
20890
|
width: 150
|
|
20296
20891
|
}, {
|
|
20297
|
-
dataIndex: '
|
|
20298
|
-
title: "\
|
|
20892
|
+
dataIndex: 'settlementPrice',
|
|
20893
|
+
title: "\u7ED3\u7B97\u4EF7",
|
|
20299
20894
|
width: 150
|
|
20300
20895
|
}, {
|
|
20301
|
-
dataIndex: '
|
|
20302
|
-
title: "\
|
|
20896
|
+
dataIndex: 'divideOrderFee',
|
|
20897
|
+
title: "\u5206\u644A\u5B9E\u4ED8\u91D1\u989D",
|
|
20303
20898
|
width: 150
|
|
20304
20899
|
}, {
|
|
20305
|
-
dataIndex: '
|
|
20306
|
-
title: "\
|
|
20307
|
-
|
|
20308
|
-
|
|
20309
|
-
|
|
20900
|
+
dataIndex: 'bfit',
|
|
20901
|
+
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
20902
|
+
width: 150,
|
|
20903
|
+
render: function render(val, record, index) {
|
|
20904
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
20905
|
+
dropdownStyle: {
|
|
20906
|
+
zIndex: 2000
|
|
20907
|
+
},
|
|
20908
|
+
getPopupContainer: function getPopupContainer() {
|
|
20909
|
+
return document.body;
|
|
20910
|
+
},
|
|
20911
|
+
value: val,
|
|
20912
|
+
onChange: function onChange(value) {
|
|
20913
|
+
updateHandle(value, index, 'bfit');
|
|
20914
|
+
},
|
|
20915
|
+
options: [{
|
|
20916
|
+
label: '是',
|
|
20917
|
+
value: 'True'
|
|
20918
|
+
}, {
|
|
20919
|
+
label: '否',
|
|
20920
|
+
value: 'False'
|
|
20921
|
+
}]
|
|
20922
|
+
}) : /*#__PURE__*/React.createElement("span", null, val === 'True' ? '是' : '否');
|
|
20923
|
+
}
|
|
20310
20924
|
}, {
|
|
20311
|
-
dataIndex: '
|
|
20312
|
-
title: "\
|
|
20313
|
-
|
|
20314
|
-
|
|
20315
|
-
width: 150
|
|
20925
|
+
dataIndex: 'combinationName',
|
|
20926
|
+
title: "\u7EC4\u5408\u5546\u54C1\u540D\u79F0",
|
|
20927
|
+
width: 150,
|
|
20928
|
+
render: renderTextEllipsis
|
|
20316
20929
|
}, {
|
|
20317
|
-
dataIndex: '
|
|
20318
|
-
title: "\
|
|
20319
|
-
|
|
20320
|
-
|
|
20321
|
-
width: 150
|
|
20930
|
+
dataIndex: 'combinationCode',
|
|
20931
|
+
title: "\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
|
|
20932
|
+
width: 150,
|
|
20933
|
+
render: renderTextEllipsis
|
|
20322
20934
|
}, {
|
|
20935
|
+
dataIndex: 'gift',
|
|
20936
|
+
title: "\u662F\u5426\u8D60\u54C1",
|
|
20937
|
+
width: 150,
|
|
20938
|
+
render: function render(val, record, index) {
|
|
20939
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
20940
|
+
dropdownStyle: {
|
|
20941
|
+
zIndex: 2000
|
|
20942
|
+
},
|
|
20943
|
+
getPopupContainer: function getPopupContainer() {
|
|
20944
|
+
return document.body;
|
|
20945
|
+
},
|
|
20946
|
+
value: val,
|
|
20947
|
+
onChange: function onChange(value) {
|
|
20948
|
+
updateHandle(value, index, 'gift');
|
|
20949
|
+
},
|
|
20950
|
+
options: [{
|
|
20951
|
+
label: '是',
|
|
20952
|
+
value: '1'
|
|
20953
|
+
}, {
|
|
20954
|
+
label: '否',
|
|
20955
|
+
value: '0'
|
|
20956
|
+
}]
|
|
20957
|
+
}) : /*#__PURE__*/React.createElement("span", null, val === '1' ? '是' : '否');
|
|
20958
|
+
}
|
|
20959
|
+
}].map(function (item) {
|
|
20960
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
20961
|
+
align: 'center',
|
|
20962
|
+
ellipsis: true
|
|
20963
|
+
});
|
|
20964
|
+
}),
|
|
20965
|
+
// 巨益补发商品信息
|
|
20966
|
+
JY_REISSUE_GOODS: [{
|
|
20323
20967
|
dataIndex: 'productName',
|
|
20324
20968
|
title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
|
|
20325
20969
|
align: 'center',
|
|
20326
20970
|
ellipsis: true,
|
|
20327
|
-
width: 150
|
|
20971
|
+
width: 150,
|
|
20972
|
+
render: renderTextEllipsis
|
|
20328
20973
|
}, {
|
|
20329
20974
|
dataIndex: 'productCode',
|
|
20330
20975
|
title: "\u7CFB\u7EDF\u5546\u54C1\u7F16\u7801",
|
|
20331
20976
|
align: 'center',
|
|
20332
20977
|
ellipsis: true,
|
|
20333
|
-
width: 150
|
|
20978
|
+
width: 150,
|
|
20979
|
+
render: renderTextEllipsis
|
|
20334
20980
|
}, {
|
|
20335
20981
|
dataIndex: 'productId',
|
|
20336
20982
|
title: "\u7CFB\u7EDF\u5546\u54C1ID",
|
|
20337
20983
|
align: 'center',
|
|
20338
20984
|
ellipsis: true,
|
|
20339
|
-
width: 150
|
|
20985
|
+
width: 150,
|
|
20986
|
+
render: renderTextEllipsis
|
|
20340
20987
|
}, {
|
|
20341
20988
|
dataIndex: 'skuName',
|
|
20342
20989
|
title: "\u7CFB\u7EDF\u89C4\u683C\u540D\u79F0",
|
|
20343
20990
|
align: 'center',
|
|
20344
20991
|
ellipsis: true,
|
|
20345
|
-
width: 150
|
|
20992
|
+
width: 150,
|
|
20993
|
+
render: renderTextEllipsis
|
|
20346
20994
|
}, {
|
|
20347
20995
|
dataIndex: 'skuCode',
|
|
20348
20996
|
title: "\u7CFB\u7EDF\u89C4\u683C\u7F16\u7801",
|
|
20349
20997
|
align: 'center',
|
|
20350
20998
|
ellipsis: true,
|
|
20351
|
-
width: 150
|
|
20999
|
+
width: 150,
|
|
21000
|
+
render: renderTextEllipsis
|
|
21001
|
+
}, {
|
|
21002
|
+
dataIndex: 'specId',
|
|
21003
|
+
title: "\u89C4\u683CID",
|
|
21004
|
+
align: 'center',
|
|
21005
|
+
ellipsis: true,
|
|
21006
|
+
width: 150,
|
|
21007
|
+
render: renderTextEllipsis
|
|
21008
|
+
}, {
|
|
21009
|
+
dataIndex: 'goodsClass',
|
|
21010
|
+
title: "\u8D27\u54C1\u7C7B\u522B",
|
|
21011
|
+
width: 150,
|
|
21012
|
+
render: renderTextEllipsis
|
|
21013
|
+
}, {
|
|
21014
|
+
dataIndex: 'code',
|
|
21015
|
+
title: "\u6761\u7801",
|
|
21016
|
+
width: 150,
|
|
21017
|
+
render: renderTextEllipsis
|
|
20352
21018
|
}, {
|
|
20353
21019
|
dataIndex: 'mallProductName',
|
|
20354
21020
|
title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
|
|
20355
21021
|
align: 'center',
|
|
20356
21022
|
ellipsis: true,
|
|
20357
|
-
width: 150
|
|
21023
|
+
width: 150,
|
|
21024
|
+
render: renderTextEllipsis
|
|
20358
21025
|
}, {
|
|
20359
21026
|
dataIndex: 'mallProductOutCode',
|
|
20360
21027
|
title: "\u5E73\u53F0\u5546\u54C1\u7F16\u7801",
|
|
20361
21028
|
align: 'center',
|
|
20362
21029
|
ellipsis: true,
|
|
20363
|
-
width: 150
|
|
21030
|
+
width: 150,
|
|
21031
|
+
render: renderTextEllipsis
|
|
20364
21032
|
}, {
|
|
20365
21033
|
dataIndex: 'mallProductId',
|
|
20366
21034
|
title: "\u5E73\u53F0\u5546\u54C1ID",
|
|
20367
21035
|
align: 'center',
|
|
20368
21036
|
ellipsis: true,
|
|
20369
|
-
width: 150
|
|
21037
|
+
width: 150,
|
|
21038
|
+
render: renderTextEllipsis
|
|
20370
21039
|
}, {
|
|
20371
21040
|
dataIndex: 'mallSkuName',
|
|
20372
21041
|
title: "\u5E73\u53F0\u89C4\u683C\u540D\u79F0",
|
|
20373
21042
|
align: 'center',
|
|
20374
21043
|
ellipsis: true,
|
|
20375
|
-
width: 150
|
|
21044
|
+
width: 150,
|
|
21045
|
+
render: renderTextEllipsis
|
|
20376
21046
|
}, {
|
|
20377
21047
|
dataIndex: 'mallSkuId',
|
|
20378
21048
|
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
20379
21049
|
align: 'center',
|
|
20380
21050
|
ellipsis: true,
|
|
20381
|
-
width: 150
|
|
21051
|
+
width: 150,
|
|
21052
|
+
render: renderTextEllipsis
|
|
20382
21053
|
}, {
|
|
20383
21054
|
dataIndex: 'sellCount',
|
|
20384
21055
|
title: "\u6570\u91CF",
|
|
20385
21056
|
width: 100,
|
|
21057
|
+
validator: function validator(_rule, value) {
|
|
21058
|
+
var productName = '';
|
|
21059
|
+
if (((value === null || value === void 0 ? void 0 : value.jyReissueGoods) || []).some(function (goods) {
|
|
21060
|
+
var qty = toNum$4(goods === null || goods === void 0 ? void 0 : goods.sellCount);
|
|
21061
|
+
var res = typeof qty === 'number' ? qty < 1 : true;
|
|
21062
|
+
if (res) {
|
|
21063
|
+
productName = (goods === null || goods === void 0 ? void 0 : goods.productName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.productName, "]") : '';
|
|
21064
|
+
}
|
|
21065
|
+
return res;
|
|
21066
|
+
})) {
|
|
21067
|
+
return Promise.reject("".concat(productName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
21068
|
+
}
|
|
21069
|
+
},
|
|
20386
21070
|
render: function render(val, record, index) {
|
|
20387
21071
|
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
20388
21072
|
style: {
|
|
@@ -20393,9 +21077,8 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
20393
21077
|
precision: 0,
|
|
20394
21078
|
onChange: function onChange(num) {
|
|
20395
21079
|
updateDataHandle({
|
|
20396
|
-
|
|
20397
|
-
|
|
20398
|
-
originAmount: num && isNumberOrNumberString$1(record.originPrice) ? num * record.originPrice : null
|
|
21080
|
+
sellCount: num,
|
|
21081
|
+
sellTotal: num && isNumberOrNumberString$2(record.sellPrice) ? num * record.sellPrice : null
|
|
20399
21082
|
}, index);
|
|
20400
21083
|
}
|
|
20401
21084
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
@@ -20414,8 +21097,8 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
20414
21097
|
precision: 2,
|
|
20415
21098
|
onChange: function onChange(num) {
|
|
20416
21099
|
updateDataHandle({
|
|
20417
|
-
|
|
20418
|
-
|
|
21100
|
+
sellPrice: num,
|
|
21101
|
+
sellTotal: num && isNumberOrNumberString$2(record.sellCount) ? num * record.sellCount : null
|
|
20419
21102
|
}, index);
|
|
20420
21103
|
}
|
|
20421
21104
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
@@ -20428,59 +21111,65 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
20428
21111
|
dataIndex: 'sellTotal',
|
|
20429
21112
|
title: "\u91D1\u989D",
|
|
20430
21113
|
width: 150
|
|
20431
|
-
}, {
|
|
20432
|
-
dataIndex: 'settlementPrice',
|
|
20433
|
-
title: "\u7ED3\u7B97\u4EF7",
|
|
20434
|
-
width: 150
|
|
20435
|
-
}, {
|
|
20436
|
-
dataIndex: 'divideOrderFee',
|
|
20437
|
-
title: "\u5206\u644A\u5B9E\u4ED8\u91D1\u989D",
|
|
20438
|
-
width: 150
|
|
20439
21114
|
}, {
|
|
20440
21115
|
dataIndex: 'bfit',
|
|
20441
21116
|
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
20442
21117
|
width: 150,
|
|
20443
21118
|
render: function render(val, record, index) {
|
|
20444
21119
|
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
21120
|
+
dropdownStyle: {
|
|
21121
|
+
zIndex: 2000
|
|
21122
|
+
},
|
|
21123
|
+
getPopupContainer: function getPopupContainer() {
|
|
21124
|
+
return document.body;
|
|
21125
|
+
},
|
|
20445
21126
|
value: val,
|
|
20446
21127
|
onChange: function onChange(value) {
|
|
20447
21128
|
updateHandle(value, index, 'bfit');
|
|
20448
21129
|
},
|
|
20449
21130
|
options: [{
|
|
20450
21131
|
label: '是',
|
|
20451
|
-
value:
|
|
21132
|
+
value: 'True'
|
|
20452
21133
|
}, {
|
|
20453
21134
|
label: '否',
|
|
20454
|
-
value:
|
|
21135
|
+
value: 'False'
|
|
20455
21136
|
}]
|
|
20456
|
-
}) : /*#__PURE__*/React.createElement("span", null,
|
|
21137
|
+
}) : /*#__PURE__*/React.createElement("span", null, val === 'True' ? '是' : '否');
|
|
20457
21138
|
}
|
|
20458
21139
|
}, {
|
|
20459
21140
|
dataIndex: 'combinationName',
|
|
20460
21141
|
title: "\u7EC4\u5408\u5546\u54C1\u540D\u79F0",
|
|
20461
|
-
width: 150
|
|
21142
|
+
width: 150,
|
|
21143
|
+
render: renderTextEllipsis
|
|
20462
21144
|
}, {
|
|
20463
21145
|
dataIndex: 'combinationCode',
|
|
20464
21146
|
title: "\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
|
|
20465
|
-
width: 150
|
|
21147
|
+
width: 150,
|
|
21148
|
+
render: renderTextEllipsis
|
|
20466
21149
|
}, {
|
|
20467
21150
|
dataIndex: 'gift',
|
|
20468
21151
|
title: "\u662F\u5426\u8D60\u54C1",
|
|
20469
21152
|
width: 150,
|
|
20470
21153
|
render: function render(val, record, index) {
|
|
20471
21154
|
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
21155
|
+
dropdownStyle: {
|
|
21156
|
+
zIndex: 2000
|
|
21157
|
+
},
|
|
21158
|
+
getPopupContainer: function getPopupContainer() {
|
|
21159
|
+
return document.body;
|
|
21160
|
+
},
|
|
20472
21161
|
value: val,
|
|
20473
21162
|
onChange: function onChange(value) {
|
|
20474
21163
|
updateHandle(value, index, 'gift');
|
|
20475
21164
|
},
|
|
20476
21165
|
options: [{
|
|
20477
21166
|
label: '是',
|
|
20478
|
-
value: 1
|
|
21167
|
+
value: '1'
|
|
20479
21168
|
}, {
|
|
20480
21169
|
label: '否',
|
|
20481
|
-
value: 0
|
|
21170
|
+
value: '0'
|
|
20482
21171
|
}]
|
|
20483
|
-
}) : /*#__PURE__*/React.createElement("span", null,
|
|
21172
|
+
}) : /*#__PURE__*/React.createElement("span", null, val === '1' ? '是' : '否');
|
|
20484
21173
|
}
|
|
20485
21174
|
}].map(function (item) {
|
|
20486
21175
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
@@ -20488,300 +21177,6 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
20488
21177
|
ellipsis: true
|
|
20489
21178
|
});
|
|
20490
21179
|
})
|
|
20491
|
-
//巨益补发商品信息
|
|
20492
|
-
// JY_REISSUE_GOODS: [
|
|
20493
|
-
// {
|
|
20494
|
-
// dataIndex: 'goodName',
|
|
20495
|
-
// title: `商品名称`,
|
|
20496
|
-
// width: 150,
|
|
20497
|
-
// },
|
|
20498
|
-
// {
|
|
20499
|
-
// dataIndex: 'goodShortName',
|
|
20500
|
-
// title: `商品简称`,
|
|
20501
|
-
// width: 150,
|
|
20502
|
-
// },
|
|
20503
|
-
// {
|
|
20504
|
-
// dataIndex: 'goodNo',
|
|
20505
|
-
// title: `商品编码`,
|
|
20506
|
-
// width: 200,
|
|
20507
|
-
// },
|
|
20508
|
-
// {
|
|
20509
|
-
// dataIndex: 'specName',
|
|
20510
|
-
// title: `SKU名称`,
|
|
20511
|
-
// align: 'center',
|
|
20512
|
-
// ellipsis: true,
|
|
20513
|
-
// width: 250,
|
|
20514
|
-
// },
|
|
20515
|
-
// {
|
|
20516
|
-
// dataIndex: 'specNo',
|
|
20517
|
-
// title: `SKU编码`,
|
|
20518
|
-
// align: 'center',
|
|
20519
|
-
// ellipsis: true,
|
|
20520
|
-
// width: 150,
|
|
20521
|
-
// },
|
|
20522
|
-
// {
|
|
20523
|
-
// dataIndex: 'qty',
|
|
20524
|
-
// title: `数量`,
|
|
20525
|
-
// width: 100,
|
|
20526
|
-
// validator: (_rule: any, value: any) => {
|
|
20527
|
-
// let goodsName = '';
|
|
20528
|
-
// if (
|
|
20529
|
-
// (value?.gyReissueGoods || []).some((goods: any) => {
|
|
20530
|
-
// const qty = toNum(goods?.qty);
|
|
20531
|
-
// const res = typeof qty === 'number' ? qty < 1 : true;
|
|
20532
|
-
// if (res) {
|
|
20533
|
-
// goodsName = goods?.goodName ? `[${goods?.goodName}]` : '';
|
|
20534
|
-
// }
|
|
20535
|
-
// return res;
|
|
20536
|
-
// })
|
|
20537
|
-
// ) {
|
|
20538
|
-
// return Promise.reject(`${goodsName}数量必须大于0`);
|
|
20539
|
-
// }
|
|
20540
|
-
// },
|
|
20541
|
-
// render: (val: any, record: any, index: number) =>
|
|
20542
|
-
// !disabled ? (
|
|
20543
|
-
// <InputNumber
|
|
20544
|
-
// style={{ width: 70 }}
|
|
20545
|
-
// value={val}
|
|
20546
|
-
// min={1}
|
|
20547
|
-
// precision={0}
|
|
20548
|
-
// onChange={(num) => {
|
|
20549
|
-
// updateDataHandle(
|
|
20550
|
-
// {
|
|
20551
|
-
// qty: num,
|
|
20552
|
-
// amount:
|
|
20553
|
-
// num && isNumberOrNumberString(record.price)
|
|
20554
|
-
// ? num * record.price
|
|
20555
|
-
// : null,
|
|
20556
|
-
// originAmount:
|
|
20557
|
-
// num && isNumberOrNumberString(record.originPrice)
|
|
20558
|
-
// ? num * record.originPrice
|
|
20559
|
-
// : null,
|
|
20560
|
-
// },
|
|
20561
|
-
// index,
|
|
20562
|
-
// );
|
|
20563
|
-
// }}
|
|
20564
|
-
// ></InputNumber>
|
|
20565
|
-
// ) : (
|
|
20566
|
-
// <span>{val}</span>
|
|
20567
|
-
// ),
|
|
20568
|
-
// },
|
|
20569
|
-
// {
|
|
20570
|
-
// dataIndex: 'price',
|
|
20571
|
-
// title: `实际单价`,
|
|
20572
|
-
// width: 150,
|
|
20573
|
-
// render: (val: any, record: any, index: number) =>
|
|
20574
|
-
// !disabled ? (
|
|
20575
|
-
// <InputNumber
|
|
20576
|
-
// style={{ width: 130 }}
|
|
20577
|
-
// value={val}
|
|
20578
|
-
// min={0}
|
|
20579
|
-
// precision={2}
|
|
20580
|
-
// onChange={(num) => {
|
|
20581
|
-
// updateDataHandle(
|
|
20582
|
-
// {
|
|
20583
|
-
// price: num,
|
|
20584
|
-
// amount:
|
|
20585
|
-
// num && isNumberOrNumberString(record.qty)
|
|
20586
|
-
// ? num * record.qty
|
|
20587
|
-
// : null,
|
|
20588
|
-
// },
|
|
20589
|
-
// index,
|
|
20590
|
-
// );
|
|
20591
|
-
// }}
|
|
20592
|
-
// ></InputNumber>
|
|
20593
|
-
// ) : (
|
|
20594
|
-
// <span>{val}</span>
|
|
20595
|
-
// ),
|
|
20596
|
-
// },
|
|
20597
|
-
// {
|
|
20598
|
-
// dataIndex: 'amount',
|
|
20599
|
-
// title: `实际金额`,
|
|
20600
|
-
// width: 150,
|
|
20601
|
-
// },
|
|
20602
|
-
// {
|
|
20603
|
-
// dataIndex: 'originPrice',
|
|
20604
|
-
// title: `标准单价`,
|
|
20605
|
-
// width: 150,
|
|
20606
|
-
// },
|
|
20607
|
-
// {
|
|
20608
|
-
// dataIndex: 'originAmount',
|
|
20609
|
-
// title: `标准金额`,
|
|
20610
|
-
// width: 150,
|
|
20611
|
-
// },
|
|
20612
|
-
// {
|
|
20613
|
-
// dataIndex: 'isGift',
|
|
20614
|
-
// title: `是否赠品`,
|
|
20615
|
-
// width: 150,
|
|
20616
|
-
// render: (val: number, record: any, index: number) =>
|
|
20617
|
-
// record.canEdit && !disabled ? (
|
|
20618
|
-
// <Select
|
|
20619
|
-
// value={val}
|
|
20620
|
-
// onChange={(value) => {
|
|
20621
|
-
// updateHandle(value, index, 'isGift');
|
|
20622
|
-
// }}
|
|
20623
|
-
// options={[
|
|
20624
|
-
// { label: '是', value: 1 },
|
|
20625
|
-
// { label: '否', value: 0 },
|
|
20626
|
-
// ]}
|
|
20627
|
-
// />
|
|
20628
|
-
// ) : (
|
|
20629
|
-
// <span>{getYesOrNo(val)}</span>
|
|
20630
|
-
// ),
|
|
20631
|
-
// },
|
|
20632
|
-
// ].map((item) => ({ ...item, align: 'center', ellipsis: true })),
|
|
20633
|
-
// //巨益退货商品信息
|
|
20634
|
-
// JY_RETURN_GOODS: [
|
|
20635
|
-
// {
|
|
20636
|
-
// dataIndex: 'goodName',
|
|
20637
|
-
// title: `商品名称`,
|
|
20638
|
-
// width: 150,
|
|
20639
|
-
// },
|
|
20640
|
-
// {
|
|
20641
|
-
// dataIndex: 'goodShortName',
|
|
20642
|
-
// title: `商品简称`,
|
|
20643
|
-
// width: 150,
|
|
20644
|
-
// },
|
|
20645
|
-
// {
|
|
20646
|
-
// dataIndex: 'goodNo',
|
|
20647
|
-
// title: `商品编码`,
|
|
20648
|
-
// width: 200,
|
|
20649
|
-
// },
|
|
20650
|
-
// {
|
|
20651
|
-
// dataIndex: 'specName',
|
|
20652
|
-
// title: `SKU名称`,
|
|
20653
|
-
// align: 'center',
|
|
20654
|
-
// ellipsis: true,
|
|
20655
|
-
// width: 250,
|
|
20656
|
-
// },
|
|
20657
|
-
// {
|
|
20658
|
-
// dataIndex: 'specNo',
|
|
20659
|
-
// title: `SKU编码`,
|
|
20660
|
-
// align: 'center',
|
|
20661
|
-
// ellipsis: true,
|
|
20662
|
-
// width: 150,
|
|
20663
|
-
// },
|
|
20664
|
-
// {
|
|
20665
|
-
// dataIndex: 'qty',
|
|
20666
|
-
// title: `数量`,
|
|
20667
|
-
// width: 100,
|
|
20668
|
-
// validator: (_rule: any, value: any) => {
|
|
20669
|
-
// let goodsName = '';
|
|
20670
|
-
// if (
|
|
20671
|
-
// (value?.gyReturnGoods || []).some((goods: any) => {
|
|
20672
|
-
// const qty = toNum(goods?.qty);
|
|
20673
|
-
// const res = typeof qty === 'number' ? qty < 1 : true;
|
|
20674
|
-
// if (res) {
|
|
20675
|
-
// goodsName = goods?.goodName ? `[${goods?.goodName}]` : '';
|
|
20676
|
-
// }
|
|
20677
|
-
// return res;
|
|
20678
|
-
// })
|
|
20679
|
-
// ) {
|
|
20680
|
-
// return Promise.reject(`${goodsName}数量必须大于0`);
|
|
20681
|
-
// }
|
|
20682
|
-
// },
|
|
20683
|
-
// render: (val: any, record: any, index: number) =>
|
|
20684
|
-
// !disabled ? (
|
|
20685
|
-
// <InputNumber
|
|
20686
|
-
// style={{ width: 70 }}
|
|
20687
|
-
// value={val}
|
|
20688
|
-
// min={1}
|
|
20689
|
-
// precision={0}
|
|
20690
|
-
// onChange={(num) => {
|
|
20691
|
-
// updateDataHandle(
|
|
20692
|
-
// {
|
|
20693
|
-
// qty: num,
|
|
20694
|
-
// amount:
|
|
20695
|
-
// num && isNumberOrNumberString(record.price)
|
|
20696
|
-
// ? num * record.price
|
|
20697
|
-
// : null,
|
|
20698
|
-
// originAmount:
|
|
20699
|
-
// num && isNumberOrNumberString(record.originPrice)
|
|
20700
|
-
// ? num * record.originPrice
|
|
20701
|
-
// : null,
|
|
20702
|
-
// },
|
|
20703
|
-
// index,
|
|
20704
|
-
// );
|
|
20705
|
-
// }}
|
|
20706
|
-
// ></InputNumber>
|
|
20707
|
-
// ) : (
|
|
20708
|
-
// <span>{val}</span>
|
|
20709
|
-
// ),
|
|
20710
|
-
// },
|
|
20711
|
-
// {
|
|
20712
|
-
// dataIndex: 'price',
|
|
20713
|
-
// title: `实际单价`,
|
|
20714
|
-
// width: 150,
|
|
20715
|
-
// render: (val: any, record: any, index: number) =>
|
|
20716
|
-
// !disabled ? (
|
|
20717
|
-
// <InputNumber
|
|
20718
|
-
// style={{ width: 130 }}
|
|
20719
|
-
// value={val}
|
|
20720
|
-
// min={0}
|
|
20721
|
-
// precision={2}
|
|
20722
|
-
// onChange={(num) => {
|
|
20723
|
-
// updateDataHandle(
|
|
20724
|
-
// {
|
|
20725
|
-
// price: num,
|
|
20726
|
-
// amount:
|
|
20727
|
-
// num && isNumberOrNumberString(record.qty)
|
|
20728
|
-
// ? num * record.qty
|
|
20729
|
-
// : null,
|
|
20730
|
-
// },
|
|
20731
|
-
// index,
|
|
20732
|
-
// );
|
|
20733
|
-
// }}
|
|
20734
|
-
// ></InputNumber>
|
|
20735
|
-
// ) : (
|
|
20736
|
-
// <span>{val}</span>
|
|
20737
|
-
// ),
|
|
20738
|
-
// },
|
|
20739
|
-
// {
|
|
20740
|
-
// dataIndex: 'amount',
|
|
20741
|
-
// title: `实际金额`,
|
|
20742
|
-
// width: 150,
|
|
20743
|
-
// },
|
|
20744
|
-
// {
|
|
20745
|
-
// dataIndex: 'originPrice',
|
|
20746
|
-
// title: `标准单价`,
|
|
20747
|
-
// width: 150,
|
|
20748
|
-
// },
|
|
20749
|
-
// {
|
|
20750
|
-
// dataIndex: 'originAmount',
|
|
20751
|
-
// title: `标准金额`,
|
|
20752
|
-
// width: 150,
|
|
20753
|
-
// },
|
|
20754
|
-
// {
|
|
20755
|
-
// dataIndex: 'discountFee',
|
|
20756
|
-
// title: `让利金额`,
|
|
20757
|
-
// width: 150,
|
|
20758
|
-
// },
|
|
20759
|
-
// {
|
|
20760
|
-
// dataIndex: 'amountAfter',
|
|
20761
|
-
// title: `让利后金额`,
|
|
20762
|
-
// width: 150,
|
|
20763
|
-
// },
|
|
20764
|
-
// {
|
|
20765
|
-
// dataIndex: 'isGift',
|
|
20766
|
-
// title: `是否赠品`,
|
|
20767
|
-
// width: 150,
|
|
20768
|
-
// render: (val: number, record: any, index: number) =>
|
|
20769
|
-
// record.canEdit && !disabled ? (
|
|
20770
|
-
// <Select
|
|
20771
|
-
// value={val}
|
|
20772
|
-
// onChange={(value) => {
|
|
20773
|
-
// updateHandle(value, index, 'isGift');
|
|
20774
|
-
// }}
|
|
20775
|
-
// options={[
|
|
20776
|
-
// { label: '是', value: 1 },
|
|
20777
|
-
// { label: '否', value: 0 },
|
|
20778
|
-
// ]}
|
|
20779
|
-
// />
|
|
20780
|
-
// ) : (
|
|
20781
|
-
// <span>{getYesOrNo(val)}</span>
|
|
20782
|
-
// ),
|
|
20783
|
-
// },
|
|
20784
|
-
// ].map((item) => ({ ...item, align: 'center', ellipsis: true })),
|
|
20785
21180
|
};
|
|
20786
21181
|
};
|
|
20787
21182
|
|
|
@@ -20861,19 +21256,22 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
20861
21256
|
title: "".concat(text, "sku\u540D\u79F0"),
|
|
20862
21257
|
align: 'center',
|
|
20863
21258
|
ellipsis: true,
|
|
20864
|
-
width: 250
|
|
21259
|
+
width: 250,
|
|
21260
|
+
render: renderTextEllipsis
|
|
20865
21261
|
}, {
|
|
20866
21262
|
dataIndex: 'sku',
|
|
20867
21263
|
title: "".concat(text, "sku\u7F16\u7801"),
|
|
20868
21264
|
align: 'center',
|
|
20869
21265
|
ellipsis: true,
|
|
20870
|
-
width: 100
|
|
21266
|
+
width: 100,
|
|
21267
|
+
render: renderTextEllipsis
|
|
20871
21268
|
}, {
|
|
20872
21269
|
dataIndex: 'name',
|
|
20873
21270
|
title: "".concat(text, "\u540D\u79F0"),
|
|
20874
21271
|
align: 'center',
|
|
20875
21272
|
ellipsis: true,
|
|
20876
|
-
width: 250
|
|
21273
|
+
width: 250,
|
|
21274
|
+
render: renderTextEllipsis
|
|
20877
21275
|
}, {
|
|
20878
21276
|
dataIndex: 'pic',
|
|
20879
21277
|
title: "\u56FE\u7247",
|
|
@@ -20882,7 +21280,7 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
20882
21280
|
width: 100,
|
|
20883
21281
|
render: function render(val) {
|
|
20884
21282
|
return /*#__PURE__*/React.createElement(Image, {
|
|
20885
|
-
width:
|
|
21283
|
+
width: 30,
|
|
20886
21284
|
src: val
|
|
20887
21285
|
});
|
|
20888
21286
|
}
|
|
@@ -20891,7 +21289,8 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
20891
21289
|
title: "".concat(text, "\u7F16\u7801"),
|
|
20892
21290
|
align: 'center',
|
|
20893
21291
|
ellipsis: true,
|
|
20894
|
-
width: 100
|
|
21292
|
+
width: 100,
|
|
21293
|
+
render: renderTextEllipsis
|
|
20895
21294
|
}, {
|
|
20896
21295
|
dataIndex: 'money',
|
|
20897
21296
|
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
@@ -20919,10 +21318,10 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
20919
21318
|
}
|
|
20920
21319
|
}, {
|
|
20921
21320
|
dataIndex: 'share',
|
|
20922
|
-
title: "\
|
|
21321
|
+
title: "\u5747\u644A\u5355\u4EF7",
|
|
20923
21322
|
align: 'center',
|
|
20924
21323
|
ellipsis: true,
|
|
20925
|
-
width:
|
|
21324
|
+
width: 120
|
|
20926
21325
|
}, {
|
|
20927
21326
|
dataIndex: 'type',
|
|
20928
21327
|
title: "\u8D60\u54C1\u7C7B\u578B",
|
|
@@ -20972,7 +21371,8 @@ var getColumnsMap$1 = function getColumnsMap(args) {
|
|
|
20972
21371
|
})), getColumns$7({
|
|
20973
21372
|
text: text,
|
|
20974
21373
|
disabled: disabled,
|
|
20975
|
-
updateHandle: updateHandle
|
|
21374
|
+
updateHandle: updateHandle,
|
|
21375
|
+
updateDataHandle: updateDataHandle
|
|
20976
21376
|
})), getColumns$8({
|
|
20977
21377
|
text: text,
|
|
20978
21378
|
disabled: disabled,
|
|
@@ -21191,12 +21591,35 @@ var processJyGoods = function processJyGoods(_ref2) {
|
|
|
21191
21591
|
var list = _ref2.list,
|
|
21192
21592
|
canUpdateNumber = _ref2.canUpdateNumber;
|
|
21193
21593
|
return list.map(function (item) {
|
|
21594
|
+
var goodName = item.goodName,
|
|
21595
|
+
goodNo = item.goodNo,
|
|
21596
|
+
goodId = item.goodId,
|
|
21597
|
+
specName = item.specName,
|
|
21598
|
+
specNo = item.specNo,
|
|
21599
|
+
specBarcode = item.specBarcode,
|
|
21600
|
+
retailPrice = item.retailPrice,
|
|
21601
|
+
isGift = item.isGift,
|
|
21602
|
+
skuType = item.skuType;
|
|
21194
21603
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
21604
|
+
goodsName: goodName,
|
|
21605
|
+
goodsCode: goodNo,
|
|
21606
|
+
goodsId: goodId,
|
|
21607
|
+
code: specBarcode,
|
|
21608
|
+
specCode: specNo,
|
|
21609
|
+
productName: goodName,
|
|
21610
|
+
productCode: goodNo,
|
|
21611
|
+
productId: goodId,
|
|
21612
|
+
skuName: specName,
|
|
21613
|
+
skuCode: specNo,
|
|
21614
|
+
combinationName: goodName,
|
|
21615
|
+
combinationCode: goodNo,
|
|
21616
|
+
gift: isGift ? '1' : '0',
|
|
21617
|
+
bfit: skuType === 'combine' ? 'True' : 'False',
|
|
21195
21618
|
uuid: uuid(),
|
|
21196
21619
|
canDelete: true,
|
|
21197
21620
|
sellCount: 1,
|
|
21198
|
-
sellPrice:
|
|
21199
|
-
sellTotal:
|
|
21621
|
+
sellPrice: retailPrice,
|
|
21622
|
+
sellTotal: (retailPrice * 1).toFixed(2),
|
|
21200
21623
|
canEdit: true,
|
|
21201
21624
|
canUpdateNumber: canUpdateNumber
|
|
21202
21625
|
});
|
|
@@ -21387,6 +21810,7 @@ var GoodsModalMap = {
|
|
|
21387
21810
|
KM_GOODS: KmGoodsModal,
|
|
21388
21811
|
KM_REISSUE_GOODS: KmGoodsModal,
|
|
21389
21812
|
JY_GOODS: JyGoodsModal$1,
|
|
21813
|
+
JY_REISSUE_GOODS: JyGoodsModal$1,
|
|
21390
21814
|
OTHER_GOODS: GoodsModal$2
|
|
21391
21815
|
};
|
|
21392
21816
|
var systemOrderNoMap = {
|
|
@@ -21396,7 +21820,8 @@ var systemOrderNoMap = {
|
|
|
21396
21820
|
BS_E3_GOODS: 'orderSn',
|
|
21397
21821
|
JST_GOODS: 'oId',
|
|
21398
21822
|
WLN_GOODS: 'tradeNo',
|
|
21399
|
-
JY_GOODS: 'tradeNo'
|
|
21823
|
+
JY_GOODS: 'tradeNo',
|
|
21824
|
+
JY_REISSUE_GOODS: 'tradeNo'
|
|
21400
21825
|
};
|
|
21401
21826
|
var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
21402
21827
|
var columns = _ref.columns,
|
|
@@ -21454,6 +21879,10 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
21454
21879
|
return item === null || item === void 0 ? void 0 : item[uniqueKey];
|
|
21455
21880
|
}));
|
|
21456
21881
|
var handleChangeSelectedKeys = function handleChangeSelectedKeys(keys) {
|
|
21882
|
+
console.log('handleChangeSelectedKeys', keys, unCurrentTradeOriginGoods);
|
|
21883
|
+
console.log('filterDataSource', filterDataSource === null || filterDataSource === void 0 ? void 0 : filterDataSource.map(function (item) {
|
|
21884
|
+
return item === null || item === void 0 ? void 0 : item[uniqueKey];
|
|
21885
|
+
}));
|
|
21457
21886
|
onChangeSelectedKeys(keys.concat(unCurrentTradeOriginGoods));
|
|
21458
21887
|
};
|
|
21459
21888
|
var rowSelection = {
|
|
@@ -21479,7 +21908,7 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
21479
21908
|
}
|
|
21480
21909
|
}, isGoods && /*#__PURE__*/React.createElement(Row, {
|
|
21481
21910
|
style: {
|
|
21482
|
-
marginBottom: '
|
|
21911
|
+
marginBottom: '12px'
|
|
21483
21912
|
}
|
|
21484
21913
|
}, /*#__PURE__*/React.createElement(Col, {
|
|
21485
21914
|
span: 12
|
|
@@ -21500,11 +21929,13 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
21500
21929
|
};
|
|
21501
21930
|
})
|
|
21502
21931
|
}))), /*#__PURE__*/React.createElement(Table, {
|
|
21932
|
+
className: "GoodModalColumns",
|
|
21503
21933
|
rowKey: uniqueKey,
|
|
21504
21934
|
rowSelection: rowSelection,
|
|
21505
21935
|
columns: columns,
|
|
21506
21936
|
dataSource: filterDataSource,
|
|
21507
21937
|
pagination: false,
|
|
21938
|
+
size: "small",
|
|
21508
21939
|
scroll: {
|
|
21509
21940
|
x: 500,
|
|
21510
21941
|
y: 500
|
|
@@ -21577,13 +22008,15 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
21577
22008
|
tradeGoods = props.tradeGoods,
|
|
21578
22009
|
form = props.form,
|
|
21579
22010
|
systemOrders = props.systemOrders,
|
|
21580
|
-
selectedSystemOrders = props.selectedSystemOrders
|
|
22011
|
+
selectedSystemOrders = props.selectedSystemOrders,
|
|
22012
|
+
_props$templateDetail = props.templateDetail,
|
|
22013
|
+
templateDetail = _props$templateDetail === void 0 ? {} : _props$templateDetail;
|
|
21581
22014
|
var uniqueKey = (tradeGoods === null || tradeGoods === void 0 ? void 0 : tradeGoods.uniqueKey) || 'uuid';
|
|
21582
22015
|
// 监听聚水潭退货商品
|
|
21583
22016
|
var jstReturnGoods = Form === null || Form === void 0 ? void 0 : Form.useWatch('3979edfd6d', form);
|
|
21584
22017
|
var isShowSelectTradeGoods = type !== 'JST_EXCHANGE_GOODS' || (jstReturnGoods === null || jstReturnGoods === void 0 ? void 0 : jstReturnGoods.jstSystemOrderNo);
|
|
21585
22018
|
// 判断是否为商品信息组件
|
|
21586
|
-
var isGoods = type && ['WDT_GOODS', 'BS_E3_GOODS', 'GY_GOODS', 'JST_GOODS', 'WLN_GOODS', 'KM_GOODS', 'JY_GOODS'].includes(type) || false;
|
|
22019
|
+
var isGoods = type && ['WDT_GOODS', 'BS_E3_GOODS', 'GY_GOODS', 'JST_GOODS', 'WLN_GOODS', 'KM_GOODS', 'JY_GOODS', 'JY_REISSUE_GOODS'].includes(type) || false;
|
|
21587
22020
|
var refModal = useRef();
|
|
21588
22021
|
console.debug('表格数据', value);
|
|
21589
22022
|
var handleDelete = function handleDelete(record, index) {
|
|
@@ -21671,6 +22104,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
21671
22104
|
case 'KM_GOODS':
|
|
21672
22105
|
case 'KM_REISSUE_GOODS':
|
|
21673
22106
|
case 'JY_GOODS':
|
|
22107
|
+
case 'JY_REISSUE_GOODS':
|
|
21674
22108
|
case 'SKX_GOODS':
|
|
21675
22109
|
case 'SKX_RETURN_GOODS':
|
|
21676
22110
|
{
|
|
@@ -21687,7 +22121,8 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
21687
22121
|
columns = getWdtReissueGoodColumns({
|
|
21688
22122
|
disabled: disabled || columnsOptions.disabled,
|
|
21689
22123
|
updateHandle: updateHandle,
|
|
21690
|
-
operate: columnsOptions.operate
|
|
22124
|
+
operate: columnsOptions.operate,
|
|
22125
|
+
updateDataHandle: updateDataHandle
|
|
21691
22126
|
});
|
|
21692
22127
|
}
|
|
21693
22128
|
break;
|
|
@@ -21717,8 +22152,9 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
21717
22152
|
var COLUMNS_INFO = COLUMNS_MAP(text);
|
|
21718
22153
|
return COLUMNS_INFO(type);
|
|
21719
22154
|
};
|
|
21720
|
-
var
|
|
21721
|
-
var
|
|
22155
|
+
var getShowFilterColumns = useCallback(function (_ref2) {
|
|
22156
|
+
var showHeader = _ref2.showHeader,
|
|
22157
|
+
initBaseInfoColumns = _ref2.initBaseInfoColumns;
|
|
21722
22158
|
var baseInfoColumns = [];
|
|
21723
22159
|
var isStringArray = Array.isArray(showHeader) && typeof showHeader[0] === 'string';
|
|
21724
22160
|
var isObjectArray = Array.isArray(showHeader) && Object.prototype.toString.call(showHeader[0]) === '[object Object]';
|
|
@@ -21738,6 +22174,14 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
21738
22174
|
return undefined;
|
|
21739
22175
|
}).filter(Boolean);
|
|
21740
22176
|
}
|
|
22177
|
+
return baseInfoColumns;
|
|
22178
|
+
}, [showHeader]);
|
|
22179
|
+
var newColumns = useMemo(function () {
|
|
22180
|
+
var initBaseInfoColumns = GOODS_INFO_COLUMNS();
|
|
22181
|
+
var baseInfoColumns = getShowFilterColumns({
|
|
22182
|
+
showHeader: showHeader,
|
|
22183
|
+
initBaseInfoColumns: initBaseInfoColumns
|
|
22184
|
+
});
|
|
21741
22185
|
var columnList = [{
|
|
21742
22186
|
dataIndex: '',
|
|
21743
22187
|
title: '序号',
|
|
@@ -21774,8 +22218,16 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
21774
22218
|
return columnList;
|
|
21775
22219
|
}, [showHeader, value, disabled, hoveredRowIndex]);
|
|
21776
22220
|
var orderModalColumns = useMemo(function () {
|
|
21777
|
-
var
|
|
21778
|
-
|
|
22221
|
+
var initBaseInfoColumns = COLUMNS_MAP('', {
|
|
22222
|
+
operate: false,
|
|
22223
|
+
disabled: true
|
|
22224
|
+
})(type);
|
|
22225
|
+
var baseInfoColumns = getShowFilterColumns({
|
|
22226
|
+
showHeader: showHeader,
|
|
22227
|
+
initBaseInfoColumns: initBaseInfoColumns
|
|
22228
|
+
});
|
|
22229
|
+
var list = baseInfoColumns.filter(function (col) {
|
|
22230
|
+
return !['操作'].includes(col.title);
|
|
21779
22231
|
});
|
|
21780
22232
|
return [{
|
|
21781
22233
|
dataIndex: '',
|
|
@@ -21787,7 +22239,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
21787
22239
|
return /*#__PURE__*/React.createElement("span", null, index + 1);
|
|
21788
22240
|
}
|
|
21789
22241
|
}].concat(_toConsumableArray(list));
|
|
21790
|
-
}, [
|
|
22242
|
+
}, [showHeader, value, disabled, hoveredRowIndex]);
|
|
21791
22243
|
var orderColumns = useMemo(function () {
|
|
21792
22244
|
var columns = COLUMNS_MAP('', {
|
|
21793
22245
|
operate: false,
|
|
@@ -21900,7 +22352,9 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
21900
22352
|
maxLength: maxLength,
|
|
21901
22353
|
companyKey: companyKey,
|
|
21902
22354
|
goodsSource: goodsSource,
|
|
21903
|
-
useGoodsSourceFormat: useGoodsSourceFormat
|
|
22355
|
+
useGoodsSourceFormat: useGoodsSourceFormat,
|
|
22356
|
+
form: form,
|
|
22357
|
+
templateDetail: templateDetail
|
|
21904
22358
|
}));
|
|
21905
22359
|
};
|
|
21906
22360
|
|
|
@@ -22535,7 +22989,7 @@ var getWdtOrderListSingleton = function getWdtOrderListSingleton(orderNo) {
|
|
|
22535
22989
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
22536
22990
|
billNo: item.tradeNo,
|
|
22537
22991
|
billType: WDT_ORDER_TYPE_MAP[item.tradeType],
|
|
22538
|
-
billTag: item.tagName,
|
|
22992
|
+
billTag: item.tagName || item.tags,
|
|
22539
22993
|
tradeStatusValue: tradeStatusMap === null || tradeStatusMap === void 0 ? void 0 : (_tradeStatusMap$data$ = tradeStatusMap[data.data.version]) === null || _tradeStatusMap$data$ === void 0 ? void 0 : _tradeStatusMap$data$[item.tradeStatus]
|
|
22540
22994
|
});
|
|
22541
22995
|
});
|
|
@@ -22779,15 +23233,21 @@ var getJyOrderListSingleton = function getJyOrderListSingleton(orderNo) {
|
|
|
22779
23233
|
extendRequest('/qy/gdfw/order/jyOrderDetail', {
|
|
22780
23234
|
method: 'post',
|
|
22781
23235
|
data: {
|
|
22782
|
-
|
|
23236
|
+
billNo: orderNo
|
|
22783
23237
|
}
|
|
22784
23238
|
}).then(function (res) {
|
|
22785
23239
|
if (res === null || res === void 0 ? void 0 : res.success) {
|
|
22786
|
-
var _res$data;
|
|
22787
|
-
if (res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.length) {
|
|
22788
|
-
|
|
23240
|
+
var _res$data, _res$data$tradeOrderD, _res$data3;
|
|
23241
|
+
if (res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : (_res$data$tradeOrderD = _res$data.tradeOrderDetails) === null || _res$data$tradeOrderD === void 0 ? void 0 : _res$data$tradeOrderD.length) {
|
|
23242
|
+
var _filterJyOrders, _res$data2;
|
|
23243
|
+
res.data.trades = (_filterJyOrders = filterJyOrders(res === null || res === void 0 ? void 0 : (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.tradeOrderDetails, orderNo)) === null || _filterJyOrders === void 0 ? void 0 : _filterJyOrders.map(function (item) {
|
|
23244
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
23245
|
+
tradeType: JY_ORDER_TYPE_MAP[item.tradeType],
|
|
23246
|
+
tradeStatus: JY_ORDER_STATUS_MAP[item.tradeStatus]
|
|
23247
|
+
});
|
|
23248
|
+
});
|
|
22789
23249
|
}
|
|
22790
|
-
resolve(res.data);
|
|
23250
|
+
resolve(((_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.trades) || []);
|
|
22791
23251
|
// 延迟10秒清除,保证订单的时效性
|
|
22792
23252
|
setTimeout(function () {
|
|
22793
23253
|
singletonMap$6.delete(orderNo);
|
|
@@ -22878,7 +23338,9 @@ var index$2 = (function (props) {
|
|
|
22878
23338
|
var value = props.value,
|
|
22879
23339
|
_onChange = props.onChange,
|
|
22880
23340
|
disabled = props.disabled,
|
|
22881
|
-
type = props.type
|
|
23341
|
+
type = props.type,
|
|
23342
|
+
_props$showHeader = props.showHeader,
|
|
23343
|
+
showHeader = _props$showHeader === void 0 ? [] : _props$showHeader;
|
|
22882
23344
|
var onceRef = useRef(false);
|
|
22883
23345
|
var valueRef = useRef(null);
|
|
22884
23346
|
useEffect(function () {
|
|
@@ -22906,8 +23368,12 @@ var index$2 = (function (props) {
|
|
|
22906
23368
|
}
|
|
22907
23369
|
}, [value, type]);
|
|
22908
23370
|
var columns = useMemo(function () {
|
|
22909
|
-
|
|
22910
|
-
|
|
23371
|
+
var baseInfoColumns = getSystemShowHead({
|
|
23372
|
+
columns: columnsMap[type] || [],
|
|
23373
|
+
showHeader: showHeader
|
|
23374
|
+
});
|
|
23375
|
+
return baseInfoColumns || [];
|
|
23376
|
+
}, [type, showHeader]);
|
|
22911
23377
|
var getOrderList = /*#__PURE__*/function () {
|
|
22912
23378
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(orderNo) {
|
|
22913
23379
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -22987,17 +23453,8 @@ var index$2 = (function (props) {
|
|
|
22987
23453
|
});
|
|
22988
23454
|
_onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, {
|
|
22989
23455
|
orders: trades,
|
|
22990
|
-
showOrderInfo: trades.map(function (
|
|
22991
|
-
|
|
22992
|
-
billType = _ref4.billType,
|
|
22993
|
-
billTag = _ref4.billTag,
|
|
22994
|
-
tradeStatusValue = _ref4.tradeStatusValue;
|
|
22995
|
-
return {
|
|
22996
|
-
billNo: billNo,
|
|
22997
|
-
billType: billType,
|
|
22998
|
-
billTag: billTag,
|
|
22999
|
-
tradeStatusValue: tradeStatusValue
|
|
23000
|
-
};
|
|
23456
|
+
showOrderInfo: trades.map(function (item) {
|
|
23457
|
+
return _objectSpread2({}, item);
|
|
23001
23458
|
})
|
|
23002
23459
|
}));
|
|
23003
23460
|
});
|
|
@@ -23013,7 +23470,7 @@ var index$2 = (function (props) {
|
|
|
23013
23470
|
};
|
|
23014
23471
|
}();
|
|
23015
23472
|
var getBsE3OrderList = /*#__PURE__*/function () {
|
|
23016
|
-
var
|
|
23473
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(orderNo) {
|
|
23017
23474
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
23018
23475
|
while (1) switch (_context4.prev = _context4.next) {
|
|
23019
23476
|
case 0:
|
|
@@ -23034,11 +23491,11 @@ var index$2 = (function (props) {
|
|
|
23034
23491
|
}, _callee4);
|
|
23035
23492
|
}));
|
|
23036
23493
|
return function getBsE3OrderList(_x4) {
|
|
23037
|
-
return
|
|
23494
|
+
return _ref4.apply(this, arguments);
|
|
23038
23495
|
};
|
|
23039
23496
|
}();
|
|
23040
23497
|
var getJstOrderList = /*#__PURE__*/function () {
|
|
23041
|
-
var
|
|
23498
|
+
var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(orderNo) {
|
|
23042
23499
|
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
23043
23500
|
while (1) switch (_context5.prev = _context5.next) {
|
|
23044
23501
|
case 0:
|
|
@@ -23057,21 +23514,21 @@ var index$2 = (function (props) {
|
|
|
23057
23514
|
}, _callee5);
|
|
23058
23515
|
}));
|
|
23059
23516
|
return function getJstOrderList(_x5) {
|
|
23060
|
-
return
|
|
23517
|
+
return _ref5.apply(this, arguments);
|
|
23061
23518
|
};
|
|
23062
23519
|
}();
|
|
23063
23520
|
var getKmOrderList = /*#__PURE__*/function () {
|
|
23064
|
-
var
|
|
23521
|
+
var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(orderNo) {
|
|
23065
23522
|
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
23066
23523
|
while (1) switch (_context6.prev = _context6.next) {
|
|
23067
23524
|
case 0:
|
|
23068
23525
|
kmUtils.getOrderListSingleton(orderNo).then(function (trades) {
|
|
23069
23526
|
_onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, {
|
|
23070
23527
|
orders: trades,
|
|
23071
|
-
showOrderInfo: trades.map(function (
|
|
23072
|
-
var billNo =
|
|
23073
|
-
billType =
|
|
23074
|
-
billTag =
|
|
23528
|
+
showOrderInfo: trades.map(function (_ref7) {
|
|
23529
|
+
var billNo = _ref7.billNo,
|
|
23530
|
+
billType = _ref7.billType,
|
|
23531
|
+
billTag = _ref7.billTag;
|
|
23075
23532
|
return {
|
|
23076
23533
|
billNo: billNo,
|
|
23077
23534
|
billType: billType,
|
|
@@ -23088,11 +23545,11 @@ var index$2 = (function (props) {
|
|
|
23088
23545
|
}, _callee6);
|
|
23089
23546
|
}));
|
|
23090
23547
|
return function getKmOrderList(_x6) {
|
|
23091
|
-
return
|
|
23548
|
+
return _ref6.apply(this, arguments);
|
|
23092
23549
|
};
|
|
23093
23550
|
}();
|
|
23094
23551
|
var getGyOrderList = /*#__PURE__*/function () {
|
|
23095
|
-
var
|
|
23552
|
+
var _ref8 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(orderNo) {
|
|
23096
23553
|
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
|
23097
23554
|
while (1) switch (_context7.prev = _context7.next) {
|
|
23098
23555
|
case 0:
|
|
@@ -23102,16 +23559,16 @@ var index$2 = (function (props) {
|
|
|
23102
23559
|
});
|
|
23103
23560
|
_onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, {
|
|
23104
23561
|
orders: trades,
|
|
23105
|
-
showOrderInfo: trades.map(function (
|
|
23106
|
-
var billNo =
|
|
23107
|
-
billType =
|
|
23108
|
-
billTag =
|
|
23109
|
-
tradeTagName =
|
|
23110
|
-
deliveryState =
|
|
23111
|
-
vipCode =
|
|
23112
|
-
shopCode =
|
|
23113
|
-
cancel =
|
|
23114
|
-
rest = _objectWithoutProperties(
|
|
23562
|
+
showOrderInfo: trades.map(function (_ref9) {
|
|
23563
|
+
var billNo = _ref9.billNo,
|
|
23564
|
+
billType = _ref9.billType,
|
|
23565
|
+
billTag = _ref9.billTag,
|
|
23566
|
+
tradeTagName = _ref9.tradeTagName,
|
|
23567
|
+
deliveryState = _ref9.deliveryState,
|
|
23568
|
+
vipCode = _ref9.vipCode,
|
|
23569
|
+
shopCode = _ref9.shopCode,
|
|
23570
|
+
cancel = _ref9.cancel,
|
|
23571
|
+
rest = _objectWithoutProperties(_ref9, _excluded$k);
|
|
23115
23572
|
return _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
23116
23573
|
billNo: billNo,
|
|
23117
23574
|
billType: billType,
|
|
@@ -23134,11 +23591,11 @@ var index$2 = (function (props) {
|
|
|
23134
23591
|
}, _callee7);
|
|
23135
23592
|
}));
|
|
23136
23593
|
return function getGyOrderList(_x7) {
|
|
23137
|
-
return
|
|
23594
|
+
return _ref8.apply(this, arguments);
|
|
23138
23595
|
};
|
|
23139
23596
|
}();
|
|
23140
23597
|
var getJyOrderList = /*#__PURE__*/function () {
|
|
23141
|
-
var
|
|
23598
|
+
var _ref10 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(orderNo) {
|
|
23142
23599
|
return _regeneratorRuntime().wrap(function _callee8$(_context8) {
|
|
23143
23600
|
while (1) switch (_context8.prev = _context8.next) {
|
|
23144
23601
|
case 0:
|
|
@@ -23148,9 +23605,9 @@ var index$2 = (function (props) {
|
|
|
23148
23605
|
});
|
|
23149
23606
|
_onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, {
|
|
23150
23607
|
orders: trades,
|
|
23151
|
-
showOrderInfo: trades.map(function (
|
|
23152
|
-
var shopCode =
|
|
23153
|
-
rest = _objectWithoutProperties(
|
|
23608
|
+
showOrderInfo: trades.map(function (_ref11) {
|
|
23609
|
+
var shopCode = _ref11.shopCode,
|
|
23610
|
+
rest = _objectWithoutProperties(_ref11, _excluded2);
|
|
23154
23611
|
return _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
23155
23612
|
shopCode: shopCode
|
|
23156
23613
|
});
|
|
@@ -23165,7 +23622,7 @@ var index$2 = (function (props) {
|
|
|
23165
23622
|
}, _callee8);
|
|
23166
23623
|
}));
|
|
23167
23624
|
return function getJyOrderList(_x8) {
|
|
23168
|
-
return
|
|
23625
|
+
return _ref10.apply(this, arguments);
|
|
23169
23626
|
};
|
|
23170
23627
|
}();
|
|
23171
23628
|
var rowSelection = {
|
|
@@ -23209,7 +23666,8 @@ var index$2 = (function (props) {
|
|
|
23209
23666
|
size: "small",
|
|
23210
23667
|
pagination: false,
|
|
23211
23668
|
scroll: {
|
|
23212
|
-
x: '
|
|
23669
|
+
x: '100%',
|
|
23670
|
+
y: 500
|
|
23213
23671
|
},
|
|
23214
23672
|
locale: {
|
|
23215
23673
|
emptyText: '暂无数据'
|
|
@@ -23217,9 +23675,9 @@ var index$2 = (function (props) {
|
|
|
23217
23675
|
}));
|
|
23218
23676
|
});
|
|
23219
23677
|
|
|
23220
|
-
var css_248z$
|
|
23678
|
+
var css_248z$f = ".customizeUpload-module_customizeUpload__2tG-4 {\n display: flex;\n flex-wrap: wrap;\n gap: 8px;\n width: 100%;\n}\n.customizeUpload-module_customizeUpload__2tG-4 .customizeUpload-module_addButton__2w8Jj {\n display: flex !important;\n align-items: center;\n justify-content: center;\n width: 24px;\n height: 24px;\n border: 1px solid #d9d9d9;\n border-radius: 6px;\n}\n.customizeUpload-module_customizeUpload__2tG-4 .customizeUpload-module_addButton__2w8Jj:hover:not(:disabled) {\n color: #40a9ff;\n border-color: #40a9ff;\n}\n.customizeUpload-module_customizeUpload__2tG-4 .customizeUpload-module_addButton__2w8Jj:disabled {\n color: #bfbfbf;\n background-color: #f5f5f5;\n border-color: #d9d9d9;\n cursor: not-allowed;\n}\n.customizeUpload-module_customizeUpload__2tG-4 .customizeUpload-module_imageItem__yn6H1 {\n position: relative;\n width: 24px;\n height: 24px;\n overflow: hidden;\n border: 1px solid #d9d9d9;\n border-radius: 6px;\n}\n.customizeUpload-module_customizeUpload__2tG-4 .customizeUpload-module_imageItem__yn6H1 .customizeUpload-module_image__3hOnT {\n width: 100%;\n height: 100%;\n -o-object-fit: cover;\n object-fit: cover;\n}\n.customizeUpload-module_customizeUpload__2tG-4 .customizeUpload-module_imageItem__yn6H1 .customizeUpload-module_deleteBtn__85Jsl {\n position: absolute;\n top: 2px;\n right: 2px;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 16px;\n height: 16px;\n color: white;\n font-size: 10px;\n background-color: rgba(0, 0, 0, 0.6);\n border-radius: 50%;\n cursor: pointer;\n opacity: 0;\n transition: opacity 0.2s;\n}\n.customizeUpload-module_customizeUpload__2tG-4 .customizeUpload-module_imageItem__yn6H1 .customizeUpload-module_deleteBtn__85Jsl:hover {\n background-color: rgba(255, 0, 0, 0.8);\n}\n.customizeUpload-module_customizeUpload__2tG-4 .customizeUpload-module_imageItem__yn6H1:hover .customizeUpload-module_deleteBtn__85Jsl {\n opacity: 1;\n}\n.customizeUpload-module_customizeUpload__2tG-4 .customizeUpload-module_uploadContainer__rUcw7 {\n margin-top: 12px;\n}\n.customizeUpload-module_popoverContent__FrAiq {\n width: 280px;\n}\n.customizeUpload-module_popoverContent__FrAiq .customizeUpload-module_popoverTitle__3Qw2t {\n margin-bottom: 4px;\n color: #262626;\n font-weight: 500;\n font-size: 16px;\n}\n.customizeUpload-module_popoverContent__FrAiq .customizeUpload-module_popoverSubtitle__1NA3m {\n margin-bottom: 16px;\n color: #8c8c8c;\n font-size: 12px;\n}\n.customizeUpload-module_popoverContent__FrAiq .customizeUpload-module_actionButtons__2la0G {\n display: flex;\n gap: 12px;\n}\n.customizeUpload-module_popoverContent__FrAiq .customizeUpload-module_actionButtons__2la0G .customizeUpload-module_actionButton__1Wr1J {\n display: flex;\n flex: 1;\n gap: 6px;\n align-items: center;\n justify-content: center;\n height: 40px;\n background-color: #fafafa;\n border: 1px solid #d9d9d9;\n border-radius: 6px;\n}\n.customizeUpload-module_popoverContent__FrAiq .customizeUpload-module_actionButtons__2la0G .customizeUpload-module_actionButton__1Wr1J:hover:not(:disabled) {\n color: #40a9ff;\n background-color: #f0f8ff;\n border-color: #40a9ff;\n}\n.customizeUpload-module_popoverContent__FrAiq .customizeUpload-module_actionButtons__2la0G .customizeUpload-module_actionButton__1Wr1J:disabled {\n color: #bfbfbf;\n background-color: #f5f5f5;\n border-color: #d9d9d9;\n cursor: not-allowed;\n}\n";
|
|
23221
23679
|
var styles$5 = {"customizeUpload":"customizeUpload-module_customizeUpload__2tG-4","addButton":"customizeUpload-module_addButton__2w8Jj","imageItem":"customizeUpload-module_imageItem__yn6H1","image":"customizeUpload-module_image__3hOnT","deleteBtn":"customizeUpload-module_deleteBtn__85Jsl","uploadContainer":"customizeUpload-module_uploadContainer__rUcw7","popoverContent":"customizeUpload-module_popoverContent__FrAiq","popoverTitle":"customizeUpload-module_popoverTitle__3Qw2t","popoverSubtitle":"customizeUpload-module_popoverSubtitle__1NA3m","actionButtons":"customizeUpload-module_actionButtons__2la0G","actionButton":"customizeUpload-module_actionButton__1Wr1J"};
|
|
23222
|
-
styleInject(css_248z$
|
|
23680
|
+
styleInject(css_248z$f);
|
|
23223
23681
|
|
|
23224
23682
|
var CustomizeUpload = function CustomizeUpload(_ref) {
|
|
23225
23683
|
var _ref$value = _ref.value,
|
|
@@ -25006,21 +25464,12 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
25006
25464
|
while (1) switch (_context.prev = _context.next) {
|
|
25007
25465
|
case 0:
|
|
25008
25466
|
(_typeMap$type5 = typeMap$1[type]) === null || _typeMap$type5 === void 0 ? void 0 : _typeMap$type5.getOrderList(orderNo).then(function (data) {
|
|
25009
|
-
var _typeMap$type6,
|
|
25467
|
+
var _typeMap$type6, _ref2, _typeMap$type7;
|
|
25010
25468
|
var orders = (data === null || data === void 0 ? void 0 : data.trades) || [];
|
|
25011
|
-
var showOrderInfo = orders.map(function (
|
|
25012
|
-
|
|
25013
|
-
billType = _ref2.billType,
|
|
25014
|
-
billTag = _ref2.billTag,
|
|
25015
|
-
tradeStatusValue = _ref2.tradeStatusValue;
|
|
25016
|
-
return {
|
|
25017
|
-
billNo: billNo,
|
|
25018
|
-
billType: billType,
|
|
25019
|
-
billTag: billTag,
|
|
25020
|
-
tradeStatusValue: tradeStatusValue
|
|
25021
|
-
};
|
|
25469
|
+
var showOrderInfo = orders.map(function (item) {
|
|
25470
|
+
return _objectSpread2({}, item);
|
|
25022
25471
|
});
|
|
25023
|
-
var newValue = _objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, _defineProperty({}, (_typeMap$type6 = typeMap$1[type]) === null || _typeMap$type6 === void 0 ? void 0 : _typeMap$type6.systemOrder, _objectSpread2(_objectSpread2({}, ((
|
|
25472
|
+
var newValue = _objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, _defineProperty({}, (_typeMap$type6 = typeMap$1[type]) === null || _typeMap$type6 === void 0 ? void 0 : _typeMap$type6.systemOrder, _objectSpread2(_objectSpread2({}, ((_ref2 = valueRef.current || {}) === null || _ref2 === void 0 ? void 0 : _ref2[(_typeMap$type7 = typeMap$1[type]) === null || _typeMap$type7 === void 0 ? void 0 : _typeMap$type7.systemOrder]) || {}), {}, {
|
|
25024
25473
|
showOrderInfo: showOrderInfo,
|
|
25025
25474
|
orders: orders
|
|
25026
25475
|
})));
|
|
@@ -25066,10 +25515,10 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
25066
25515
|
mode: mode
|
|
25067
25516
|
}))));
|
|
25068
25517
|
};
|
|
25069
|
-
var getGoodDetails = function getGoodDetails(
|
|
25518
|
+
var getGoodDetails = function getGoodDetails(_ref3) {
|
|
25070
25519
|
var _typeMap$type14, _typeMap$type15, _order$goodDetails;
|
|
25071
|
-
var mode =
|
|
25072
|
-
sysOrderNo =
|
|
25520
|
+
var mode = _ref3.mode,
|
|
25521
|
+
sysOrderNo = _ref3.sysOrderNo;
|
|
25073
25522
|
var systemOrder = value === null || value === void 0 ? void 0 : value[(_typeMap$type14 = typeMap$1[type]) === null || _typeMap$type14 === void 0 ? void 0 : _typeMap$type14.systemOrder];
|
|
25074
25523
|
var systemOrderNo = sysOrderNo !== null && sysOrderNo !== void 0 ? sysOrderNo : value === null || value === void 0 ? void 0 : value[(_typeMap$type15 = typeMap$1[type]) === null || _typeMap$type15 === void 0 ? void 0 : _typeMap$type15.systemOrderNo];
|
|
25075
25524
|
var order = systemOrderNo && ((systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orders) || []).find(function (order) {
|
|
@@ -25123,6 +25572,9 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
25123
25572
|
return !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type25 = typeMap$1[type]) === null || _typeMap$type25 === void 0 ? void 0 : _typeMap$type25.systemOrderNo]);
|
|
25124
25573
|
}, [value === null || value === void 0 ? void 0 : value[(_typeMap$type26 = typeMap$1[type]) === null || _typeMap$type26 === void 0 ? void 0 : _typeMap$type26.systemOrderNo]]);
|
|
25125
25574
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
|
|
25575
|
+
style: {
|
|
25576
|
+
width: '100%'
|
|
25577
|
+
},
|
|
25126
25578
|
gutter: 8,
|
|
25127
25579
|
wrap: true
|
|
25128
25580
|
}, /*#__PURE__*/React.createElement(Col, {
|
|
@@ -25252,10 +25704,25 @@ var typeMap$2 = {
|
|
|
25252
25704
|
outerOiIdKey: '',
|
|
25253
25705
|
goodDetailsKey: 'subOrders',
|
|
25254
25706
|
uniqueKey: 'id'
|
|
25707
|
+
},
|
|
25708
|
+
JY_REISSUE_GOODS: {
|
|
25709
|
+
compType: '补发',
|
|
25710
|
+
key: 'jyReissueGoods',
|
|
25711
|
+
typeName: 'jyReissueType',
|
|
25712
|
+
systemOrder: 'jySystemOrder',
|
|
25713
|
+
systemOrderNo: 'jySystemOrderNo',
|
|
25714
|
+
getOrderList: jyUtils.getJyOrderListSingleton,
|
|
25715
|
+
updateGoodsHandle: updateJyGoodsHandle,
|
|
25716
|
+
alwaysShowChooseErpGoodsBtn: true,
|
|
25717
|
+
orderTypeKey: 'orderType',
|
|
25718
|
+
oIdKey: 'tradeNo',
|
|
25719
|
+
outerOiIdKey: '',
|
|
25720
|
+
goodDetailsKey: 'subOrderDetails',
|
|
25721
|
+
isShowSelectTradeGoods: true
|
|
25255
25722
|
}
|
|
25256
25723
|
};
|
|
25257
25724
|
var PublicReissue = function PublicReissue(props) {
|
|
25258
|
-
var _typeMap$
|
|
25725
|
+
var _typeMap$type34, _typeMap$type40, _typeMap$type41, _typeMap$type42, _typeMap$type43, _value$typeMap$type$s8, _typeMap$type44, _typeMap$type45, _typeMap$type46, _typeMap$type47, _typeMap$type48, _typeMap$type49, _typeMap$type50, _typeMap$type51, _typeMap$type52, _value$typeMap$type$s9, _typeMap$type53, _typeMap$type54, _typeMap$type55;
|
|
25259
25726
|
var value = props.value,
|
|
25260
25727
|
onChange = props.onChange,
|
|
25261
25728
|
_props$reasonList = props.reasonList,
|
|
@@ -25312,7 +25779,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
25312
25779
|
(_typeMap$type5 = typeMap$2[type]) === null || _typeMap$type5 === void 0 ? void 0 : _typeMap$type5.getOrderList(orderNo).then(function (data) {
|
|
25313
25780
|
var _valueRef$current3, _typeMap$type6, _typeMap$type7, _typeMap$type11, _ref3, _typeMap$type12;
|
|
25314
25781
|
var orders = data || [];
|
|
25315
|
-
var showOrderInfo = orders.map(function (orderItem) {
|
|
25782
|
+
var showOrderInfo = orders === null || orders === void 0 ? void 0 : orders.map(function (orderItem) {
|
|
25316
25783
|
return _defineProperty({}, typeMap$2[type].oIdKey, orderItem[typeMap$2[type].oIdKey]);
|
|
25317
25784
|
});
|
|
25318
25785
|
var typeObj = {};
|
|
@@ -25372,9 +25839,11 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
25372
25839
|
}))));
|
|
25373
25840
|
};
|
|
25374
25841
|
var getGoodDetails = function getGoodDetails(_ref4) {
|
|
25375
|
-
var _typeMap$type18, _typeMap$type19,
|
|
25842
|
+
var _typeMap$type18, _typeMap$type19, _value$typeMap$type$s6, _typeMap$type20, _typeMap$type21, _typeMap$type22;
|
|
25376
25843
|
var mode = _ref4.mode,
|
|
25377
|
-
sysOrderNo = _ref4.sysOrderNo
|
|
25844
|
+
sysOrderNo = _ref4.sysOrderNo,
|
|
25845
|
+
_ref4$isAllOrders = _ref4.isAllOrders,
|
|
25846
|
+
isAllOrders = _ref4$isAllOrders === void 0 ? false : _ref4$isAllOrders;
|
|
25378
25847
|
var systemOrder = value === null || value === void 0 ? void 0 : value[(_typeMap$type18 = typeMap$2[type]) === null || _typeMap$type18 === void 0 ? void 0 : _typeMap$type18.systemOrder];
|
|
25379
25848
|
var systemOrderNo = sysOrderNo !== null && sysOrderNo !== void 0 ? sysOrderNo : value === null || value === void 0 ? void 0 : value[(_typeMap$type19 = typeMap$2[type]) === null || _typeMap$type19 === void 0 ? void 0 : _typeMap$type19.systemOrderNo];
|
|
25380
25849
|
var order = systemOrderNo && ((systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orders) || []).find(function (order) {
|
|
@@ -25388,39 +25857,48 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
25388
25857
|
orderBackGoodsLevel: props.orderBackGoodsLevel,
|
|
25389
25858
|
canEdit: true
|
|
25390
25859
|
};
|
|
25860
|
+
} else if (['JY_REISSUE_GOODS', 'JY_RETURN_GOODS'].includes(type)) {
|
|
25861
|
+
orderRest = {
|
|
25862
|
+
canEdit: true
|
|
25863
|
+
};
|
|
25391
25864
|
}
|
|
25392
|
-
var
|
|
25865
|
+
var orders = isAllOrders ? (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s6 = value[(_typeMap$type20 = typeMap$2[type]) === null || _typeMap$type20 === void 0 ? void 0 : _typeMap$type20.systemOrder]) === null || _value$typeMap$type$s6 === void 0 ? void 0 : _value$typeMap$type$s6.orders) || [] : [order];
|
|
25866
|
+
var hasGoodDetails = orders === null || orders === void 0 ? void 0 : orders.some(function (order) {
|
|
25867
|
+
var _order$typeMap$type$g;
|
|
25868
|
+
return order === null || order === void 0 ? void 0 : (_order$typeMap$type$g = order[typeMap$2[type].goodDetailsKey]) === null || _order$typeMap$type$g === void 0 ? void 0 : _order$typeMap$type$g.length;
|
|
25869
|
+
});
|
|
25870
|
+
var goodDetails = hasGoodDetails ? typeMap$2[type].mergeIdenticalGoods ? typeMap$2[type].mergeIdenticalGoods((_typeMap$type21 = typeMap$2[type]) === null || _typeMap$type21 === void 0 ? void 0 : _typeMap$type21.updateGoodsHandle(orders, orderRest)) : (_typeMap$type22 = typeMap$2[type]) === null || _typeMap$type22 === void 0 ? void 0 : _typeMap$type22.updateGoodsHandle(orders, orderRest) : [];
|
|
25393
25871
|
var orderNo = systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orderNo;
|
|
25394
|
-
var list = mode ? goodDetails.filter(function (goodItem) {
|
|
25872
|
+
var list = mode && !isAllOrders ? goodDetails.filter(function (goodItem) {
|
|
25395
25873
|
return !orderNo || goodItem[typeMap$2[type].outerOiIdKey] === orderNo;
|
|
25396
25874
|
}) : goodDetails;
|
|
25397
25875
|
return list;
|
|
25398
25876
|
};
|
|
25399
25877
|
var changeGoodHandle = function changeGoodHandle(val) {
|
|
25400
|
-
var _typeMap$
|
|
25878
|
+
var _typeMap$type23;
|
|
25401
25879
|
var newValue = _objectSpread2({}, value);
|
|
25402
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25880
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type23 = typeMap$2[type]) === null || _typeMap$type23 === void 0 ? void 0 : _typeMap$type23.key)] = val || [];
|
|
25403
25881
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
25404
25882
|
};
|
|
25405
25883
|
var changeSystemOrderHandle = function changeSystemOrderHandle(val) {
|
|
25406
|
-
var _typeMap$
|
|
25884
|
+
var _typeMap$type24, _typeMap$type25, _value$typeMap$type$t2, _typeMap$type30, _value$typeMap$type$t3, _typeMap$type32;
|
|
25407
25885
|
var newValue = _objectSpread2({}, value);
|
|
25408
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25409
|
-
if (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25410
|
-
var _value$typeMap$type$
|
|
25411
|
-
var orders = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$
|
|
25886
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type24 = typeMap$2[type]) === null || _typeMap$type24 === void 0 ? void 0 : _typeMap$type24.systemOrderNo)] = val;
|
|
25887
|
+
if (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type25 = typeMap$2[type]) === null || _typeMap$type25 === void 0 ? void 0 : _typeMap$type25.systemOrderBillType) {
|
|
25888
|
+
var _value$typeMap$type$s7, _typeMap$type26, _typeMap$type28, _typeMap$type29;
|
|
25889
|
+
var orders = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s7 = value[(_typeMap$type26 = typeMap$2[type]) === null || _typeMap$type26 === void 0 ? void 0 : _typeMap$type26.systemOrder]) === null || _value$typeMap$type$s7 === void 0 ? void 0 : _value$typeMap$type$s7.orders) || [];
|
|
25412
25890
|
var targetOrder = val && orders.find(function (oItem) {
|
|
25413
|
-
var _typeMap$
|
|
25414
|
-
return oItem[(_typeMap$
|
|
25891
|
+
var _typeMap$type27;
|
|
25892
|
+
return oItem[(_typeMap$type27 = typeMap$2[type]) === null || _typeMap$type27 === void 0 ? void 0 : _typeMap$type27.oIdKey] === val;
|
|
25415
25893
|
});
|
|
25416
|
-
newValue[(_typeMap$
|
|
25417
|
-
}
|
|
25418
|
-
if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$
|
|
25419
|
-
var _typeMap$
|
|
25420
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25421
|
-
} else if (['1'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$
|
|
25422
|
-
var _typeMap$
|
|
25423
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25894
|
+
newValue[(_typeMap$type28 = typeMap$2[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.systemOrderBillType] = targetOrder === null || targetOrder === void 0 ? void 0 : targetOrder[(_typeMap$type29 = typeMap$2[type]) === null || _typeMap$type29 === void 0 ? void 0 : _typeMap$type29.orderTypeKey];
|
|
25895
|
+
}
|
|
25896
|
+
if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$type30 = typeMap$2[type]) === null || _typeMap$type30 === void 0 ? void 0 : _typeMap$type30.typeName]) === null || _value$typeMap$type$t2 === void 0 ? void 0 : _value$typeMap$type$t2[0])) {
|
|
25897
|
+
var _typeMap$type31;
|
|
25898
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type31 = typeMap$2[type]) === null || _typeMap$type31 === void 0 ? void 0 : _typeMap$type31.key)] = [];
|
|
25899
|
+
} else if (['1'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$type32 = typeMap$2[type]) === null || _typeMap$type32 === void 0 ? void 0 : _typeMap$type32.typeName]) === null || _value$typeMap$type$t3 === void 0 ? void 0 : _value$typeMap$type$t3[0])) {
|
|
25900
|
+
var _typeMap$type33;
|
|
25901
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type33 = typeMap$2[type]) === null || _typeMap$type33 === void 0 ? void 0 : _typeMap$type33.key)] = getGoodDetails({
|
|
25424
25902
|
mode: isStrict,
|
|
25425
25903
|
sysOrderNo: val
|
|
25426
25904
|
});
|
|
@@ -25428,26 +25906,27 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
25428
25906
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue, 'systemOrder');
|
|
25429
25907
|
};
|
|
25430
25908
|
//显示选择商品按钮
|
|
25431
|
-
var showChangeBtn = !!(value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
25909
|
+
var showChangeBtn = !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type34 = typeMap$2[type]) === null || _typeMap$type34 === void 0 ? void 0 : _typeMap$type34.systemOrderNo]);
|
|
25432
25910
|
var selectedGoodsChange = useCallback(function (skuList) {
|
|
25433
|
-
var _typeMap$
|
|
25911
|
+
var _typeMap$type35, _typeMap$type36, _typeMap$type37, _uniqBy, _typeMap$type38;
|
|
25434
25912
|
var newValue = _objectSpread2({}, value);
|
|
25435
25913
|
// 原订单商品
|
|
25436
25914
|
var originTradeGoodList = getGoodDetails({
|
|
25437
|
-
mode: isStrict
|
|
25915
|
+
mode: isStrict,
|
|
25916
|
+
isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type35 = typeMap$2[type]) === null || _typeMap$type35 === void 0 ? void 0 : _typeMap$type35.isShowSelectTradeGoods
|
|
25438
25917
|
}) || [];
|
|
25439
25918
|
// 当前选中的所有商品【包含了原订单+商品库】
|
|
25440
|
-
var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25441
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25442
|
-
var _typeMap$
|
|
25443
|
-
return skuList.includes(item[typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25919
|
+
var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type36 = typeMap$2[type]) === null || _typeMap$type36 === void 0 ? void 0 : _typeMap$type36.key)]) || [];
|
|
25920
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type37 = typeMap$2[type]) === null || _typeMap$type37 === void 0 ? void 0 : _typeMap$type37.key)] = (_uniqBy = uniqBy(originTradeGoodList.concat(currentSelectGoodList), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type38 = typeMap$2[type]) === null || _typeMap$type38 === void 0 ? void 0 : _typeMap$type38.uniqueKey) || 'uuid')) === null || _uniqBy === void 0 ? void 0 : _uniqBy.filter(function (item) {
|
|
25921
|
+
var _typeMap$type39;
|
|
25922
|
+
return skuList.includes(item[(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type39 = typeMap$2[type]) === null || _typeMap$type39 === void 0 ? void 0 : _typeMap$type39.uniqueKey) || 'uuid']);
|
|
25444
25923
|
});
|
|
25445
25924
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
25446
|
-
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25925
|
+
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type40 = typeMap$2[type]) === null || _typeMap$type40 === void 0 ? void 0 : _typeMap$type40.key)], isStrict]);
|
|
25447
25926
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
|
|
25448
25927
|
gutter: 8,
|
|
25449
25928
|
wrap: true,
|
|
25450
|
-
id: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25929
|
+
id: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type41 = typeMap$2[type]) === null || _typeMap$type41 === void 0 ? void 0 : _typeMap$type41.key) || "".concat(Date.now())
|
|
25451
25930
|
}, /*#__PURE__*/React.createElement(Col, {
|
|
25452
25931
|
className: "gutter-row",
|
|
25453
25932
|
xs: {
|
|
@@ -25463,12 +25942,12 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
25463
25942
|
},
|
|
25464
25943
|
disabled: disabled,
|
|
25465
25944
|
allowClear: false,
|
|
25466
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25945
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type42 = typeMap$2[type]) === null || _typeMap$type42 === void 0 ? void 0 : _typeMap$type42.systemOrderNo)],
|
|
25467
25946
|
onChange: function onChange(val) {
|
|
25468
25947
|
return changeSystemOrderHandle(val);
|
|
25469
25948
|
},
|
|
25470
|
-
placeholder: "\u9009\u62E9".concat((typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25471
|
-
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$
|
|
25949
|
+
placeholder: "\u9009\u62E9".concat((typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type43 = typeMap$2[type]) === null || _typeMap$type43 === void 0 ? void 0 : _typeMap$type43.compType) || '', "\u7CFB\u7EDF\u5355")
|
|
25950
|
+
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s8 = value[(_typeMap$type44 = typeMap$2[type]) === null || _typeMap$type44 === void 0 ? void 0 : _typeMap$type44.systemOrder]) === null || _value$typeMap$type$s8 === void 0 ? void 0 : _value$typeMap$type$s8.showOrderInfo) || []).map(function (item) {
|
|
25472
25951
|
return /*#__PURE__*/React.createElement(Select.Option, {
|
|
25473
25952
|
key: item[typeMap$2[type].oIdKey],
|
|
25474
25953
|
value: item[typeMap$2[type].oIdKey],
|
|
@@ -25490,11 +25969,11 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
25490
25969
|
disabled: isSettingConfig ? !isSettingConfig : disabled,
|
|
25491
25970
|
allowClear: false,
|
|
25492
25971
|
options: reasonList,
|
|
25493
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25972
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type45 = typeMap$2[type]) === null || _typeMap$type45 === void 0 ? void 0 : _typeMap$type45.typeName)],
|
|
25494
25973
|
onChange: function onChange(val) {
|
|
25495
25974
|
return changeTypeHandle(val);
|
|
25496
25975
|
}
|
|
25497
|
-
})), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25976
|
+
})), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type46 = typeMap$2[type]) === null || _typeMap$type46 === void 0 ? void 0 : _typeMap$type46.systemOrderBillType) && !isSettingConfig && /*#__PURE__*/React.createElement(Col, {
|
|
25498
25977
|
className: "gutter-row",
|
|
25499
25978
|
xs: {
|
|
25500
25979
|
span: 11
|
|
@@ -25503,7 +25982,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
25503
25982
|
span: 6
|
|
25504
25983
|
}
|
|
25505
25984
|
}, /*#__PURE__*/React.createElement(Input, {
|
|
25506
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25985
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type47 = typeMap$2[type]) === null || _typeMap$type47 === void 0 ? void 0 : _typeMap$type47.systemOrderBillType)],
|
|
25507
25986
|
disabled: disabled,
|
|
25508
25987
|
readOnly: true
|
|
25509
25988
|
}))), /*#__PURE__*/React.createElement(GoodItem$1, _objectSpread2(_objectSpread2({
|
|
@@ -25512,29 +25991,32 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
25512
25991
|
type: type,
|
|
25513
25992
|
disabled: disabled,
|
|
25514
25993
|
canUpdateNumber: showChangeBtn,
|
|
25515
|
-
showChangeBtn: showChangeBtn,
|
|
25516
|
-
alwaysShowChooseErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25517
|
-
showErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25994
|
+
showChangeBtn: showChangeBtn || (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type48 = typeMap$2[type]) === null || _typeMap$type48 === void 0 ? void 0 : _typeMap$type48.isShowSelectTradeGoods),
|
|
25995
|
+
alwaysShowChooseErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type49 = typeMap$2[type]) === null || _typeMap$type49 === void 0 ? void 0 : _typeMap$type49.alwaysShowChooseErpGoodsBtn,
|
|
25996
|
+
showErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type50 = typeMap$2[type]) === null || _typeMap$type50 === void 0 ? void 0 : _typeMap$type50.showErpGoodsBtn,
|
|
25518
25997
|
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
25519
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25998
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type51 = typeMap$2[type]) === null || _typeMap$type51 === void 0 ? void 0 : _typeMap$type51.key)],
|
|
25520
25999
|
onChange: function onChange(val) {
|
|
25521
26000
|
return changeGoodHandle(val);
|
|
25522
26001
|
},
|
|
25523
26002
|
onModeChange: handleModeChange,
|
|
25524
26003
|
showModeBtn: false,
|
|
25525
26004
|
isStrict: isStrict,
|
|
26005
|
+
isShowSelectTradeGoods: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type52 = typeMap$2[type]) === null || _typeMap$type52 === void 0 ? void 0 : _typeMap$type52.isShowSelectTradeGoods,
|
|
26006
|
+
systemOrders: value === null || value === void 0 ? void 0 : (_value$typeMap$type$s9 = value[(_typeMap$type53 = typeMap$2[type]) === null || _typeMap$type53 === void 0 ? void 0 : _typeMap$type53.systemOrder]) === null || _value$typeMap$type$s9 === void 0 ? void 0 : _value$typeMap$type$s9.orders,
|
|
25526
26007
|
tradeGoods: {
|
|
25527
26008
|
originDataSource: getGoodDetails({
|
|
25528
|
-
mode: isStrict
|
|
26009
|
+
mode: isStrict,
|
|
26010
|
+
isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type54 = typeMap$2[type]) === null || _typeMap$type54 === void 0 ? void 0 : _typeMap$type54.isShowSelectTradeGoods
|
|
25529
26011
|
}),
|
|
25530
|
-
uniqueKey: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26012
|
+
uniqueKey: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type55 = typeMap$2[type]) === null || _typeMap$type55 === void 0 ? void 0 : _typeMap$type55.uniqueKey) || 'uuid',
|
|
25531
26013
|
selectedGoodsChange: selectedGoodsChange
|
|
25532
26014
|
}
|
|
25533
26015
|
})));
|
|
25534
26016
|
};
|
|
25535
26017
|
|
|
25536
|
-
var css_248z$
|
|
25537
|
-
styleInject(css_248z$
|
|
26018
|
+
var css_248z$g = ".goodsBox {\n display: flex;\n flex-wrap: wrap;\n}\n.goods-imgBox {\n position: relative;\n width: 80px;\n height: 80px;\n border: 1px solid #F2F3F5;\n margin: 0 10px 10px 0;\n text-align: center;\n}\n.icon-close {\n position: absolute;\n top: -5px;\n right: -5px;\n width: 13px;\n height: 13px;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 50%;\n z-index: 3;\n background-color: #fff;\n cursor: pointer;\n}\n.img {\n width: 100%;\n height: 100%;\n -o-object-fit: contain;\n object-fit: contain;\n}\n.goods-title {\n margin: 0 0 10px 5px;\n color: #4E5969;\n}\n.deg90 {\n transform: rotate(90deg);\n}\n.goodMain {\n display: flex;\n flex-wrap: wrap;\n height: 265px;\n overflow-y: auto;\n margin-bottom: 10px;\n}\n.goodMain .goodItem {\n width: 140px;\n height: 175px;\n padding: 11px 10px 0;\n text-align: center;\n display: inline-block;\n vertical-align: top;\n margin-bottom: 10px;\n margin-right: 30px;\n border: 1px solid #e6e6e6;\n cursor: pointer;\n transition: border 0.3s;\n}\n.goodMain .goodItem .goodImg {\n width: 120px;\n height: 120px;\n}\n.goodMain .goodItem .goodText {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.goodMain .goodItem.active {\n border: 1px solid #3089dc;\n}\n.right-context {\n display: flex;\n flex-direction: column;\n}\n";
|
|
26019
|
+
styleInject(css_248z$g);
|
|
25538
26020
|
|
|
25539
26021
|
var TabPane$1 = Tabs.TabPane;
|
|
25540
26022
|
var Option$2 = Select.Option;
|
|
@@ -26550,9 +27032,9 @@ var bsE3Reissue = function bsE3Reissue(props) {
|
|
|
26550
27032
|
})));
|
|
26551
27033
|
};
|
|
26552
27034
|
|
|
26553
|
-
var css_248z$
|
|
27035
|
+
var css_248z$h = ".index-module_systemNoDisabled__1s7aJ.ant-select-item-option-disabled {\n color: #dadada !important;\n}\n";
|
|
26554
27036
|
var styles$6 = {"systemNoDisabled":"index-module_systemNoDisabled__1s7aJ"};
|
|
26555
|
-
styleInject(css_248z$
|
|
27037
|
+
styleInject(css_248z$h);
|
|
26556
27038
|
|
|
26557
27039
|
var _excluded$r = ["value", "onChange", "reasonList", "disabled", "type", "isSettingConfig"],
|
|
26558
27040
|
_excluded2$1 = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode"];
|
|
@@ -27163,9 +27645,9 @@ var GyReturnGoods = function GyReturnGoods(props) {
|
|
|
27163
27645
|
})));
|
|
27164
27646
|
};
|
|
27165
27647
|
|
|
27166
|
-
var css_248z$
|
|
27648
|
+
var css_248z$i = ".index-module_imageBox__1f2AI {\n display: flex;\n flex-wrap: wrap;\n}\n.index-module_imageBox__1f2AI .ant-upload {\n padding: 0;\n height: 80px;\n width: 80px;\n border: none;\n border-radius: 2px;\n background: #F2F3F5;\n text-align: center;\n color: #86909C;\n font-size: 14px;\n}\n.index-module_imageBox__1f2AI .ant-upload .index-module_addBtn__1DY59 {\n color: #86909C;\n font-size: 14px;\n}\n.index-module_imageBox__1f2AI > span {\n max-width: 100%;\n}\n.index-module_tips__1XQjf {\n color: #4E5969;\n font-size: 12px;\n}\n";
|
|
27167
27649
|
var styles$7 = {"imageBox":"index-module_imageBox__1f2AI","addBtn":"index-module_addBtn__1DY59","tips":"index-module_tips__1XQjf"};
|
|
27168
|
-
styleInject(css_248z$
|
|
27650
|
+
styleInject(css_248z$i);
|
|
27169
27651
|
|
|
27170
27652
|
var _excluded$t = ["maxCount", "maxSize", "onChange", "value", "disabled", "hostUrl", "canDownload", "actionUrl"];
|
|
27171
27653
|
var Dragger$1 = Upload.Dragger;
|
|
@@ -27788,4 +28270,15 @@ var SkxGoods = function SkxGoods(props) {
|
|
|
27788
28270
|
}));
|
|
27789
28271
|
};
|
|
27790
28272
|
|
|
27791
|
-
|
|
28273
|
+
var SYSTEM_ORDER_COLUMNS_MAP = {
|
|
28274
|
+
BS_SYSTEM_ORDER: BS_SYSTEM_ORDER_CONFIG.columns,
|
|
28275
|
+
KM_SYSTEM_ORDER: KM_SYSTEM_ORDER_CONFIG.columns,
|
|
28276
|
+
WLN_SYSTEM_ORDER: WLN_SYSTEM_ORDER_CONFIG.columns,
|
|
28277
|
+
WDT_SYSTEM_ORDER: WDT_SYSTEM_ORDER_CONFIG.columns,
|
|
28278
|
+
BS_E3_SYSTEM_ORDER: BS_E3_SYSTEM_ORDER_CONFIG.columns,
|
|
28279
|
+
GY_SYSTEM_ORDER: GY_SYSTEM_ORDER_CONFIG.columns,
|
|
28280
|
+
JST_SYSTEM_ORDER: JST_SYSTEM_ORDER_CONFIG.columns,
|
|
28281
|
+
JY_SYSTEM_ORDER: JY_SYSTEM_ORDER_CONFIG.columns
|
|
28282
|
+
};
|
|
28283
|
+
|
|
28284
|
+
export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, ApaasInput, ApaasInputNumber, ApaasLogistics, ApaasMultipleSelect, ApaasPosting, ApaasRadio, ApaasRate, ApaasSelect, ApaasSlider, ApaasTextArea, ApaasUpload, ApaasUploadAsync$1 as ApaasUploadAsync, ApaasUploadFile, index as ApaasUploadProAsync, AsyncSelect, bsE3Reissue as BsE3Reissue, BsExchange, BsGoods, BsReissue, BsReturnGoods as BsReturn, index$2 as BsSystemOrder, BuyerNick, CalculationInput, ChooseBaby, CommonExchangeGoods, CommonGoods, CommonSystemOrder$1 as CommonMultiStatus, CommonReturnGoods, CommonStatus, CommonSystemOrder, CopyTextIcon, ExpressLogistics, Goods, index$3 as GoodsTable, GyReissue, GyReturnGoods as GyReturn, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, KmVideo, LogisticsInterception, LogisticsMoreInterception, LogisticsMoreTrajectory, LogisticsTrajectory, MsgStatus, OrderSubForm, utils as OrderSubFormUtils, ParseLogistics, Payment, PublicReissue, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, SYSTEM_ORDER_COLUMNS_MAP, ShopNameSelect as ShopName, SkxGoods, IdInputSelect as SkxIdInputSelect, Status, SubForm, Supplier, TBGoodId, TBGoodSerial, TradeId, WdtGoodList, wdtReissue as WdtReissue, WlnGoods, columnsBaseInfoMap, erpColumnsMap, erpFormValidator, index$1 as erpModalColumnsMap, getColumns$4 as getGyColumns, getColumns$5 as getJstColumns, getColumns$7 as getJyColumns, getColumns$6 as getKmColumns, getColumns$8 as getSkxColumns, getColumns$2 as getWdtColumns, getColumns$3 as getWlnColumns, orderSubFormConstants, renderMap };
|