@kmkf-fe-packages/basic-components 2.7.6 → 2.7.7-beta.0
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 +1014 -194
- package/dist/src/bs/component/GoodItem/index.d.ts +4 -1
- package/dist/src/bs/component/model/Columns/Erp/wln.d.ts +15 -0
- package/dist/src/bs/component/model/WlnGoodsModal/GoodsList.d.ts +32 -0
- package/dist/src/bs/component/model/WlnGoodsModal/index.d.ts +5 -0
- package/dist/src/business/LogisticsInterception/index.d.ts +1 -0
- package/dist/src/constants/systemOrderColumnsMap.d.ts +10 -2
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -8594,6 +8594,10 @@ var processCallBackStatus = function processCallBackStatus(getValue) {
|
|
|
8594
8594
|
status: 'erpAfterSaleStatusValue',
|
|
8595
8595
|
reason: 'erpAfterSaleStatusReason'
|
|
8596
8596
|
},
|
|
8597
|
+
ERP_AFTER_SALES_ORDER_REVIEW_STATUS: {
|
|
8598
|
+
status: 'erpAfterSalesOrderReviewStatusValue',
|
|
8599
|
+
reason: 'erpAfterSalesOrderReviewStatusReason'
|
|
8600
|
+
},
|
|
8597
8601
|
RETURN_EXCHANGE_GOODS_REVIEW_STATUS: {
|
|
8598
8602
|
status: 'returnExchangeGoodsReviewStatusValue',
|
|
8599
8603
|
reason: 'returnExchangeGoodsReviewStatusReason'
|
|
@@ -8622,7 +8626,8 @@ var processSceneStatus = function processSceneStatus(getValue) {
|
|
|
8622
8626
|
BS_E3_WAREHOUSING_STATUS: 'bsE3InStockStatusItemList',
|
|
8623
8627
|
MSG_STATUS: 'msgStatusValues',
|
|
8624
8628
|
WDT_WAREHOUSING_STATUS: 'wdtInStockStatusItemList',
|
|
8625
|
-
JKY_WAREHOUSING_STATUS: 'jkyInStockStatusItemList'
|
|
8629
|
+
JKY_WAREHOUSING_STATUS: 'jkyInStockStatusItemList',
|
|
8630
|
+
WLN_WAREHOUSING_STATUS: 'wlnInStockStatusItemList'
|
|
8626
8631
|
};
|
|
8627
8632
|
return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(STATUS_LIST_MAP[nex.workOrderComponentType])), []));
|
|
8628
8633
|
};
|
|
@@ -9457,6 +9462,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
|
|
|
9457
9462
|
AGREE_REFUND_STATUS: processCallBackStatus,
|
|
9458
9463
|
REJECT_REFUND_STATUS: processCallBackStatus,
|
|
9459
9464
|
ERP_AFTER_SALE_STATUS: processCallBackStatus,
|
|
9465
|
+
ERP_AFTER_SALES_ORDER_REVIEW_STATUS: processCallBackStatus,
|
|
9460
9466
|
AGREE_RETURN_GOODS_STATUS: processCallBackStatus,
|
|
9461
9467
|
REJECT_RETURN_GOODS_STATUS: processCallBackStatus,
|
|
9462
9468
|
RETURN_EXCHANGE_GOODS_REVIEW_STATUS: processCallBackStatus,
|
|
@@ -9467,6 +9473,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
|
|
|
9467
9473
|
BS_E3_WAREHOUSING_STATUS: processSceneStatus,
|
|
9468
9474
|
MSG_STATUS: processSceneStatus,
|
|
9469
9475
|
WDT_WAREHOUSING_STATUS: processSceneStatus,
|
|
9476
|
+
WLN_WAREHOUSING_STATUS: processSceneStatus,
|
|
9470
9477
|
JKY_WAREHOUSING_STATUS: processSceneStatus,
|
|
9471
9478
|
BS_LOGISTICS: processErpLogistics,
|
|
9472
9479
|
WLN_LOGISTICS: processErpLogistics,
|
|
@@ -11648,7 +11655,7 @@ var GoodsModal = function GoodsModal(props) {
|
|
|
11648
11655
|
key: item.value
|
|
11649
11656
|
}, item.label);
|
|
11650
11657
|
})), /*#__PURE__*/React.createElement(Search, {
|
|
11651
|
-
placeholder: searchParams.type !== 'orderProduct' ? platform === 'taobao' ? '
|
|
11658
|
+
placeholder: searchParams.type !== 'orderProduct' ? platform === 'taobao' ? '宝贝标题' : '商品ID' : '宝贝标题',
|
|
11652
11659
|
// enterButton="搜索"
|
|
11653
11660
|
className: "search",
|
|
11654
11661
|
value: platform === 'taobao' ? searchParams.title : searchParams.numIids,
|
|
@@ -13163,7 +13170,9 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
13163
13170
|
platform = _props$platform === void 0 ? '' : _props$platform,
|
|
13164
13171
|
onJumpPage = props.onJumpPage,
|
|
13165
13172
|
_props$showReason = props.showReason,
|
|
13166
|
-
showReason = _props$showReason === void 0 ? false : _props$showReason
|
|
13173
|
+
showReason = _props$showReason === void 0 ? false : _props$showReason,
|
|
13174
|
+
_props$preCreateAndNo = props.preCreateAndNotModified,
|
|
13175
|
+
preCreateAndNotModified = _props$preCreateAndNo === void 0 ? false : _props$preCreateAndNo;
|
|
13167
13176
|
var _useState = useState(function () {
|
|
13168
13177
|
return (value === null || value === void 0 ? void 0 : value.interceptCompany) || undefined;
|
|
13169
13178
|
}),
|
|
@@ -13264,6 +13273,8 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
13264
13273
|
});
|
|
13265
13274
|
return isEditing && !!(company === null || company === void 0 ? void 0 : company.isInterface);
|
|
13266
13275
|
}, [isEditing, initCompany]);
|
|
13276
|
+
var canEditPreCreateBaseFields = preCreateAndNotModified;
|
|
13277
|
+
var baseFieldDisabled = disabled || isEdit && !canEditPreCreateBaseFields;
|
|
13267
13278
|
//退回地址列表
|
|
13268
13279
|
var logisticsAddressOptions = useMemo(function () {
|
|
13269
13280
|
return LogisticsAddressOptions === null || LogisticsAddressOptions === void 0 ? void 0 : LogisticsAddressOptions.filter(function (item) {
|
|
@@ -13400,7 +13411,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
13400
13411
|
required: required,
|
|
13401
13412
|
key: 'logistics'
|
|
13402
13413
|
}, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(ApaasLogistics, {
|
|
13403
|
-
disabled:
|
|
13414
|
+
disabled: baseFieldDisabled,
|
|
13404
13415
|
placeholder: "\u7269\u6D41\u516C\u53F8",
|
|
13405
13416
|
style: {
|
|
13406
13417
|
width: '150px'
|
|
@@ -13414,7 +13425,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
13414
13425
|
return option.label.includes(input);
|
|
13415
13426
|
}
|
|
13416
13427
|
}), /*#__PURE__*/React.createElement(Input, {
|
|
13417
|
-
disabled:
|
|
13428
|
+
disabled: baseFieldDisabled,
|
|
13418
13429
|
placeholder: "\u7269\u6D41\u5355\u53F7",
|
|
13419
13430
|
onChange: function onChange(e) {
|
|
13420
13431
|
var _e$target$value;
|
|
@@ -13439,7 +13450,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
13439
13450
|
key: 'interceptLogisticsUserKCode',
|
|
13440
13451
|
hidden: !showKcode
|
|
13441
13452
|
}, /*#__PURE__*/React.createElement(Select, {
|
|
13442
|
-
disabled:
|
|
13453
|
+
disabled: baseFieldDisabled,
|
|
13443
13454
|
placeholder: "\u9009\u62E9K\u7801",
|
|
13444
13455
|
showSearch: true,
|
|
13445
13456
|
style: {
|
|
@@ -13473,7 +13484,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
13473
13484
|
required: required,
|
|
13474
13485
|
key: 'interceptType'
|
|
13475
13486
|
}, /*#__PURE__*/React.createElement(Select, {
|
|
13476
|
-
disabled:
|
|
13487
|
+
disabled: baseFieldDisabled,
|
|
13477
13488
|
style: {
|
|
13478
13489
|
width: '200px'
|
|
13479
13490
|
},
|
|
@@ -14115,9 +14126,9 @@ var jstGoods = function jstGoods(props) {
|
|
|
14115
14126
|
changeIndex = _useState2[0],
|
|
14116
14127
|
setChangeIndex = _useState2[1]; //选中的包裹
|
|
14117
14128
|
var sendOptions = SendDataCenter.getInstance(platformType).getSendData();
|
|
14118
|
-
var isSelectName = ['wdt', 'bsE3', 'km', 'gy', 'jst', 'jy', 'jky'].includes(platformType);
|
|
14129
|
+
var isSelectName = ['wdt', 'bsE3', 'km', 'gy', 'jst', 'jy', 'jky', 'wln'].includes(platformType);
|
|
14119
14130
|
var expressDateInstance = ExpressData.getInstance(platformType);
|
|
14120
|
-
var isSendGoodSavedId = isSelectName && !['jst'].includes(platformType);
|
|
14131
|
+
var isSendGoodSavedId = isSelectName && !['jst', 'wln'].includes(platformType);
|
|
14121
14132
|
useEffect(function () {
|
|
14122
14133
|
//没有值塞个默认值
|
|
14123
14134
|
if (!(value === null || value === void 0 ? void 0 : value.length) && type !== 1) {
|
|
@@ -15718,6 +15729,122 @@ var jkyColumns = [{
|
|
|
15718
15729
|
}
|
|
15719
15730
|
}];
|
|
15720
15731
|
|
|
15732
|
+
var getYesOrNo$3 = function getYesOrNo(val) {
|
|
15733
|
+
if (!isBoolean(val)) return null;
|
|
15734
|
+
return val ? '是' : '否';
|
|
15735
|
+
};
|
|
15736
|
+
var wlnColumns = [{
|
|
15737
|
+
dataIndex: 'goodName',
|
|
15738
|
+
title: '商品名称',
|
|
15739
|
+
width: 250,
|
|
15740
|
+
ellipsis: true,
|
|
15741
|
+
render: renderTextEllipsis
|
|
15742
|
+
}, {
|
|
15743
|
+
dataIndex: 'goodShortName',
|
|
15744
|
+
title: "\u5546\u54C1\u7B80\u79F0",
|
|
15745
|
+
ellipsis: true,
|
|
15746
|
+
width: 150,
|
|
15747
|
+
render: renderTextEllipsis
|
|
15748
|
+
}, {
|
|
15749
|
+
dataIndex: 'goodNo',
|
|
15750
|
+
title: '商品编码',
|
|
15751
|
+
width: 150,
|
|
15752
|
+
ellipsis: true,
|
|
15753
|
+
render: renderTextEllipsis
|
|
15754
|
+
}, {
|
|
15755
|
+
dataIndex: 'goodId',
|
|
15756
|
+
title: '商品ID',
|
|
15757
|
+
width: 200,
|
|
15758
|
+
ellipsis: true,
|
|
15759
|
+
render: renderTextEllipsis
|
|
15760
|
+
}, {
|
|
15761
|
+
dataIndex: 'goodPicUrl',
|
|
15762
|
+
title: '商品图片',
|
|
15763
|
+
width: 100,
|
|
15764
|
+
render: function render(picUrl) {
|
|
15765
|
+
return /*#__PURE__*/React.createElement("img", {
|
|
15766
|
+
style: {
|
|
15767
|
+
width: '30px',
|
|
15768
|
+
height: '30px',
|
|
15769
|
+
objectFit: 'contain'
|
|
15770
|
+
},
|
|
15771
|
+
src: picUrl
|
|
15772
|
+
});
|
|
15773
|
+
}
|
|
15774
|
+
}, {
|
|
15775
|
+
dataIndex: 'goodBarcode',
|
|
15776
|
+
title: '商品条码',
|
|
15777
|
+
width: 200,
|
|
15778
|
+
ellipsis: true,
|
|
15779
|
+
render: renderTextEllipsis
|
|
15780
|
+
}, {
|
|
15781
|
+
dataIndex: 'propertiesValue',
|
|
15782
|
+
title: '规格值',
|
|
15783
|
+
width: 200,
|
|
15784
|
+
ellipsis: true,
|
|
15785
|
+
render: renderTextEllipsis
|
|
15786
|
+
}, {
|
|
15787
|
+
dataIndex: 'specNo',
|
|
15788
|
+
title: "SKU\u7F16\u7801",
|
|
15789
|
+
ellipsis: true,
|
|
15790
|
+
width: 150,
|
|
15791
|
+
render: renderTextEllipsis
|
|
15792
|
+
}, {
|
|
15793
|
+
dataIndex: 'specId',
|
|
15794
|
+
title: "SKU ID",
|
|
15795
|
+
ellipsis: true,
|
|
15796
|
+
width: 150,
|
|
15797
|
+
render: renderTextEllipsis
|
|
15798
|
+
}, {
|
|
15799
|
+
dataIndex: 'specImgUrl',
|
|
15800
|
+
title: "SKU \u56FE\u7247",
|
|
15801
|
+
ellipsis: true,
|
|
15802
|
+
width: 150,
|
|
15803
|
+
render: function render(val) {
|
|
15804
|
+
return /*#__PURE__*/React.createElement(Image, {
|
|
15805
|
+
width: 30,
|
|
15806
|
+
src: val
|
|
15807
|
+
});
|
|
15808
|
+
}
|
|
15809
|
+
}, {
|
|
15810
|
+
dataIndex: 'specBarcode',
|
|
15811
|
+
title: '规格条码',
|
|
15812
|
+
width: 150,
|
|
15813
|
+
ellipsis: true,
|
|
15814
|
+
render: renderTextEllipsis
|
|
15815
|
+
}, {
|
|
15816
|
+
dataIndex: 'brandName',
|
|
15817
|
+
title: '品牌名称',
|
|
15818
|
+
width: 200,
|
|
15819
|
+
ellipsis: true,
|
|
15820
|
+
render: renderTextEllipsis
|
|
15821
|
+
}, {
|
|
15822
|
+
dataIndex: 'retailPrice',
|
|
15823
|
+
title: "\u96F6\u552E\u4EF7",
|
|
15824
|
+
ellipsis: true,
|
|
15825
|
+
width: 100,
|
|
15826
|
+
render: renderTextEllipsis
|
|
15827
|
+
}, {
|
|
15828
|
+
dataIndex: 'marketPrice',
|
|
15829
|
+
title: "\u5E02\u573A\u4EF7",
|
|
15830
|
+
ellipsis: true,
|
|
15831
|
+
width: 150,
|
|
15832
|
+
render: renderTextEllipsis
|
|
15833
|
+
}, {
|
|
15834
|
+
dataIndex: 'unitName',
|
|
15835
|
+
title: '基本单位',
|
|
15836
|
+
width: 150,
|
|
15837
|
+
render: renderTextEllipsis
|
|
15838
|
+
}, {
|
|
15839
|
+
dataIndex: 'skuType',
|
|
15840
|
+
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
15841
|
+
ellipsis: true,
|
|
15842
|
+
width: 150,
|
|
15843
|
+
render: function render(val) {
|
|
15844
|
+
return renderTextEllipsis(getYesOrNo$3(val === 'combine'));
|
|
15845
|
+
}
|
|
15846
|
+
}];
|
|
15847
|
+
|
|
15721
15848
|
var getColumnsMap = function getColumnsMap() {
|
|
15722
15849
|
return cloneDeep({
|
|
15723
15850
|
gy: gyColumns,
|
|
@@ -15726,7 +15853,8 @@ var getColumnsMap = function getColumnsMap() {
|
|
|
15726
15853
|
bse3: bse3Columns,
|
|
15727
15854
|
km: kmColumns,
|
|
15728
15855
|
jy: jyColumns,
|
|
15729
|
-
jky: jkyColumns
|
|
15856
|
+
jky: jkyColumns,
|
|
15857
|
+
wln: wlnColumns
|
|
15730
15858
|
});
|
|
15731
15859
|
};
|
|
15732
15860
|
var getColumnsBaseInfo = function getColumnsBaseInfo() {
|
|
@@ -16158,30 +16286,33 @@ var GoodList = function GoodList(props, ref) {
|
|
|
16158
16286
|
selectedRowKeys: selectIds,
|
|
16159
16287
|
fixed: true,
|
|
16160
16288
|
onSelect: function onSelect(record, selected) {
|
|
16289
|
+
var uniqueKey = "".concat(record.goodNo, "-").concat(record.specNo);
|
|
16161
16290
|
if (selected) {
|
|
16162
|
-
setSelectIds([].concat(_toConsumableArray(selectIds), [
|
|
16291
|
+
setSelectIds([].concat(_toConsumableArray(selectIds), [uniqueKey]));
|
|
16163
16292
|
setSelect([].concat(_toConsumableArray(selectList), [record]));
|
|
16164
16293
|
} else {
|
|
16165
16294
|
setSelectIds(selectIds.filter(function (t) {
|
|
16166
|
-
return t !==
|
|
16295
|
+
return t !== uniqueKey;
|
|
16167
16296
|
}));
|
|
16168
16297
|
setSelect(selectList.filter(function (t) {
|
|
16169
|
-
return t.specNo !==
|
|
16298
|
+
return "".concat(t.goodNo, "-").concat(t.specNo) !== uniqueKey;
|
|
16170
16299
|
}));
|
|
16171
16300
|
}
|
|
16172
16301
|
},
|
|
16173
16302
|
onSelectAll: function onSelectAll(selected, selectedRows, changeRows) {
|
|
16174
16303
|
if (selected) {
|
|
16175
|
-
|
|
16176
|
-
return t.specNo;
|
|
16177
|
-
})
|
|
16304
|
+
var changeKeys = changeRows.map(function (t) {
|
|
16305
|
+
return "".concat(t.goodNo, "-").concat(t.specNo);
|
|
16306
|
+
});
|
|
16307
|
+
setSelectIds([].concat(_toConsumableArray(selectIds), _toConsumableArray(changeKeys)));
|
|
16178
16308
|
setSelect([].concat(_toConsumableArray(selectList), _toConsumableArray(changeRows)));
|
|
16179
16309
|
} else {
|
|
16180
|
-
|
|
16181
|
-
return t.specNo;
|
|
16182
|
-
})
|
|
16310
|
+
var _changeKeys = changeRows.map(function (t) {
|
|
16311
|
+
return "".concat(t.goodNo, "-").concat(t.specNo);
|
|
16312
|
+
});
|
|
16313
|
+
setSelectIds(difference(selectIds, _changeKeys));
|
|
16183
16314
|
var list = differenceWith(selectList, changeRows, function (arrVal, othVal) {
|
|
16184
|
-
return arrVal.specNo !== othVal.specNo;
|
|
16315
|
+
return "".concat(arrVal.goodNo, "-").concat(arrVal.specNo) !== "".concat(othVal.goodNo, "-").concat(othVal.specNo);
|
|
16185
16316
|
});
|
|
16186
16317
|
setSelect(list);
|
|
16187
16318
|
}
|
|
@@ -16189,11 +16320,12 @@ var GoodList = function GoodList(props, ref) {
|
|
|
16189
16320
|
};
|
|
16190
16321
|
var showTable = function showTable() {
|
|
16191
16322
|
var handleDelete = function handleDelete(record) {
|
|
16323
|
+
var uniqueKey = "".concat(record.goodNo, "-").concat(record.specNo);
|
|
16192
16324
|
setSelectIds(selectIds.filter(function (t) {
|
|
16193
|
-
return t !==
|
|
16325
|
+
return t !== uniqueKey;
|
|
16194
16326
|
}));
|
|
16195
16327
|
setSelect(selectList.filter(function (t) {
|
|
16196
|
-
return t.specNo !==
|
|
16328
|
+
return "".concat(t.goodNo, "-").concat(t.specNo) !== uniqueKey;
|
|
16197
16329
|
}));
|
|
16198
16330
|
};
|
|
16199
16331
|
var showColumns = [{
|
|
@@ -16217,7 +16349,9 @@ var GoodList = function GoodList(props, ref) {
|
|
|
16217
16349
|
}
|
|
16218
16350
|
}, /*#__PURE__*/React.createElement(Table, {
|
|
16219
16351
|
columns: showColumns,
|
|
16220
|
-
rowKey:
|
|
16352
|
+
rowKey: function rowKey(record) {
|
|
16353
|
+
return "".concat(record.goodNo, "-").concat(record.specNo);
|
|
16354
|
+
},
|
|
16221
16355
|
dataSource: selectList,
|
|
16222
16356
|
scroll: {
|
|
16223
16357
|
x: '100%',
|
|
@@ -16247,7 +16381,9 @@ var GoodList = function GoodList(props, ref) {
|
|
|
16247
16381
|
}, /*#__PURE__*/React.createElement(Table, _objectSpread2(_objectSpread2({
|
|
16248
16382
|
className: "GoodModalColumns",
|
|
16249
16383
|
rowSelection: rowSelection,
|
|
16250
|
-
rowKey:
|
|
16384
|
+
rowKey: function rowKey(record) {
|
|
16385
|
+
return "".concat(record.goodNo, "-").concat(record.specNo);
|
|
16386
|
+
},
|
|
16251
16387
|
columns: columns,
|
|
16252
16388
|
scroll: {
|
|
16253
16389
|
x: '100%',
|
|
@@ -17797,6 +17933,27 @@ var componentMap$1 = {
|
|
|
17797
17933
|
onChange: props.handleChange
|
|
17798
17934
|
}));
|
|
17799
17935
|
},
|
|
17936
|
+
TagsSelect: function TagsSelect(props) {
|
|
17937
|
+
return "\u8BF7\u9009\u62E9".concat(props === null || props === void 0 ? void 0 : props.name).length > 10 ? /*#__PURE__*/React.createElement(Tooltip, {
|
|
17938
|
+
title: "\u8BF7\u9009\u62E9".concat(props === null || props === void 0 ? void 0 : props.name)
|
|
17939
|
+
}, /*#__PURE__*/React.createElement(Select, _objectSpread2(_objectSpread2({
|
|
17940
|
+
mode: "tags",
|
|
17941
|
+
placeholder: "\u8BF7\u9009\u62E9".concat(props === null || props === void 0 ? void 0 : props.name),
|
|
17942
|
+
optionFilterProp: "label",
|
|
17943
|
+
allowClear: true,
|
|
17944
|
+
maxTagCount: "responsive"
|
|
17945
|
+
}, props), {}, {
|
|
17946
|
+
onChange: props.handleChange
|
|
17947
|
+
}))) : /*#__PURE__*/React.createElement(Select, _objectSpread2(_objectSpread2({
|
|
17948
|
+
mode: "tags",
|
|
17949
|
+
placeholder: "\u8BF7\u9009\u62E9".concat(props === null || props === void 0 ? void 0 : props.name),
|
|
17950
|
+
optionFilterProp: "label",
|
|
17951
|
+
allowClear: true,
|
|
17952
|
+
maxTagCount: "responsive"
|
|
17953
|
+
}, props), {}, {
|
|
17954
|
+
onChange: props.handleChange
|
|
17955
|
+
}));
|
|
17956
|
+
},
|
|
17800
17957
|
Date: function Date(props) {
|
|
17801
17958
|
return /*#__PURE__*/React.createElement(RangePicker, _objectSpread2(_objectSpread2({
|
|
17802
17959
|
placeholder: ["".concat(props.name, "\u5F00\u59CB\u65F6\u95F4"), "".concat(props.name, "\u7ED3\u675F\u65F6\u95F4")],
|
|
@@ -18739,7 +18896,7 @@ var getTableData$5 = function getTableData(_ref, formData) {
|
|
|
18739
18896
|
data: {
|
|
18740
18897
|
pageSize: pageSize,
|
|
18741
18898
|
pageNo: current,
|
|
18742
|
-
platform: '
|
|
18899
|
+
platform: 'WLN_ERP',
|
|
18743
18900
|
conditionList: conditionList
|
|
18744
18901
|
}
|
|
18745
18902
|
}).then(function (res) {
|
|
@@ -18758,13 +18915,11 @@ var getTableData$5 = function getTableData(_ref, formData) {
|
|
|
18758
18915
|
});
|
|
18759
18916
|
};
|
|
18760
18917
|
var searchFormData$4 = [{
|
|
18761
|
-
label: '
|
|
18762
|
-
name: '
|
|
18763
|
-
dataIndex: 'specName'
|
|
18918
|
+
label: '规格值',
|
|
18919
|
+
name: 'propertiesValue'
|
|
18764
18920
|
}, {
|
|
18765
|
-
label: '
|
|
18766
|
-
name: '
|
|
18767
|
-
dataIndex: 'specNo',
|
|
18921
|
+
label: 'SKU编码',
|
|
18922
|
+
name: 'specNo',
|
|
18768
18923
|
type: 'optionalInput'
|
|
18769
18924
|
}, {
|
|
18770
18925
|
label: '商品名称',
|
|
@@ -18773,6 +18928,23 @@ var searchFormData$4 = [{
|
|
|
18773
18928
|
label: '商品编码',
|
|
18774
18929
|
name: 'goodNo',
|
|
18775
18930
|
type: 'optionalInput'
|
|
18931
|
+
}, {
|
|
18932
|
+
label: '是否组合装',
|
|
18933
|
+
name: 'skuType',
|
|
18934
|
+
type: 'select',
|
|
18935
|
+
formItemProps: {
|
|
18936
|
+
mode: 'multiple',
|
|
18937
|
+
filterOption: function filterOption(input, option) {
|
|
18938
|
+
return option.label.includes(input);
|
|
18939
|
+
},
|
|
18940
|
+
options: [{
|
|
18941
|
+
label: '普通商品',
|
|
18942
|
+
value: 'normal'
|
|
18943
|
+
}, {
|
|
18944
|
+
label: '组合装商品',
|
|
18945
|
+
value: 'combine'
|
|
18946
|
+
}]
|
|
18947
|
+
}
|
|
18776
18948
|
}];
|
|
18777
18949
|
var GoodList$5 = function GoodList(props, ref) {
|
|
18778
18950
|
var _useState = useState([]),
|
|
@@ -18783,7 +18955,7 @@ var GoodList$5 = function GoodList(props, ref) {
|
|
|
18783
18955
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
18784
18956
|
selectIds = _useState4[0],
|
|
18785
18957
|
setSelectIds = _useState4[1];
|
|
18786
|
-
var _useGetColumns = useGetColumns('
|
|
18958
|
+
var _useGetColumns = useGetColumns('wln'),
|
|
18787
18959
|
_useGetColumns2 = _slicedToArray(_useGetColumns, 3),
|
|
18788
18960
|
columns = _useGetColumns2[0],
|
|
18789
18961
|
showColumnsDataIndexList = _useGetColumns2[1],
|
|
@@ -18842,8 +19014,8 @@ var GoodList$5 = function GoodList(props, ref) {
|
|
|
18842
19014
|
getCheckboxProps: function getCheckboxProps(record) {
|
|
18843
19015
|
var options = {
|
|
18844
19016
|
disabled: (props.selectedRows || []).map(function (row) {
|
|
18845
|
-
return row.
|
|
18846
|
-
}).includes(record.
|
|
19017
|
+
return row.specId || record.id;
|
|
19018
|
+
}).includes(record.specId || record.id),
|
|
18847
19019
|
name: record.id
|
|
18848
19020
|
};
|
|
18849
19021
|
return options;
|
|
@@ -18927,9 +19099,9 @@ var GoodList$5 = function GoodList(props, ref) {
|
|
|
18927
19099
|
type: "text"
|
|
18928
19100
|
}, "\u5DF2\u9009".concat(selectList.length > 99 ? '99+' : selectList.length, "\u4E2A\u5546\u54C1"), /*#__PURE__*/React.createElement(CaretUpOutlined, null))));
|
|
18929
19101
|
};
|
|
18930
|
-
var
|
|
19102
|
+
var WlnGoodsList = /*#__PURE__*/forwardRef(GoodList$5);
|
|
18931
19103
|
|
|
18932
|
-
var
|
|
19104
|
+
var WlnGoodsModal = function WlnGoodsModal(props, ref) {
|
|
18933
19105
|
useImperativeHandle(ref, function () {
|
|
18934
19106
|
return {
|
|
18935
19107
|
open: function open(shopCode) {
|
|
@@ -18949,13 +19121,13 @@ var JyGoodsModal = function JyGoodsModal(props, ref) {
|
|
|
18949
19121
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
18950
19122
|
selectedRows = _useState4[0],
|
|
18951
19123
|
setSelectedRows = _useState4[1];
|
|
18952
|
-
var
|
|
19124
|
+
var jkyGoodsListRef = useRef(null);
|
|
18953
19125
|
var _onCancel = function onCancel() {
|
|
18954
19126
|
setVisible(false);
|
|
18955
19127
|
};
|
|
18956
19128
|
var onOk = function onOk() {
|
|
18957
|
-
var
|
|
18958
|
-
var selectedList = ((
|
|
19129
|
+
var _jkyGoodsListRef$curr;
|
|
19130
|
+
var selectedList = ((_jkyGoodsListRef$curr = jkyGoodsListRef.current) === null || _jkyGoodsListRef$curr === void 0 ? void 0 : _jkyGoodsListRef$curr.getSelectGoodList()) || [];
|
|
18959
19131
|
onSubmit(selectedList);
|
|
18960
19132
|
_onCancel();
|
|
18961
19133
|
};
|
|
@@ -18970,12 +19142,12 @@ var JyGoodsModal = function JyGoodsModal(props, ref) {
|
|
|
18970
19142
|
},
|
|
18971
19143
|
onOk: onOk,
|
|
18972
19144
|
wrapClassName: "goodModal"
|
|
18973
|
-
}, /*#__PURE__*/React.createElement(
|
|
18974
|
-
ref:
|
|
19145
|
+
}, /*#__PURE__*/React.createElement(WlnGoodsList, {
|
|
19146
|
+
ref: jkyGoodsListRef,
|
|
18975
19147
|
selectedRows: selectedRows
|
|
18976
19148
|
})));
|
|
18977
19149
|
};
|
|
18978
|
-
var
|
|
19150
|
+
var WlnGoodsModal$1 = /*#__PURE__*/forwardRef(WlnGoodsModal);
|
|
18979
19151
|
|
|
18980
19152
|
var getTableData$6 = function getTableData(_ref, formData) {
|
|
18981
19153
|
var current = _ref.current,
|
|
@@ -18986,7 +19158,7 @@ var getTableData$6 = function getTableData(_ref, formData) {
|
|
|
18986
19158
|
data: {
|
|
18987
19159
|
pageSize: pageSize,
|
|
18988
19160
|
pageNo: current,
|
|
18989
|
-
platform: '
|
|
19161
|
+
platform: 'JY_ERP',
|
|
18990
19162
|
conditionList: conditionList
|
|
18991
19163
|
}
|
|
18992
19164
|
}).then(function (res) {
|
|
@@ -19014,10 +19186,10 @@ var searchFormData$5 = [{
|
|
|
19014
19186
|
dataIndex: 'specNo',
|
|
19015
19187
|
type: 'optionalInput'
|
|
19016
19188
|
}, {
|
|
19017
|
-
label: '
|
|
19189
|
+
label: '商品名称',
|
|
19018
19190
|
name: 'goodName'
|
|
19019
19191
|
}, {
|
|
19020
|
-
label: '
|
|
19192
|
+
label: '商品编码',
|
|
19021
19193
|
name: 'goodNo',
|
|
19022
19194
|
type: 'optionalInput'
|
|
19023
19195
|
}];
|
|
@@ -19030,7 +19202,7 @@ var GoodList$6 = function GoodList(props, ref) {
|
|
|
19030
19202
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
19031
19203
|
selectIds = _useState4[0],
|
|
19032
19204
|
setSelectIds = _useState4[1];
|
|
19033
|
-
var _useGetColumns = useGetColumns('
|
|
19205
|
+
var _useGetColumns = useGetColumns('jy'),
|
|
19034
19206
|
_useGetColumns2 = _slicedToArray(_useGetColumns, 3),
|
|
19035
19207
|
columns = _useGetColumns2[0],
|
|
19036
19208
|
showColumnsDataIndexList = _useGetColumns2[1],
|
|
@@ -19089,8 +19261,8 @@ var GoodList$6 = function GoodList(props, ref) {
|
|
|
19089
19261
|
getCheckboxProps: function getCheckboxProps(record) {
|
|
19090
19262
|
var options = {
|
|
19091
19263
|
disabled: (props.selectedRows || []).map(function (row) {
|
|
19092
|
-
return row.
|
|
19093
|
-
}).includes(record.
|
|
19264
|
+
return row.id || row.specId;
|
|
19265
|
+
}).includes(record.id || record.specId),
|
|
19094
19266
|
name: record.id
|
|
19095
19267
|
};
|
|
19096
19268
|
return options;
|
|
@@ -19174,9 +19346,9 @@ var GoodList$6 = function GoodList(props, ref) {
|
|
|
19174
19346
|
type: "text"
|
|
19175
19347
|
}, "\u5DF2\u9009".concat(selectList.length > 99 ? '99+' : selectList.length, "\u4E2A\u5546\u54C1"), /*#__PURE__*/React.createElement(CaretUpOutlined, null))));
|
|
19176
19348
|
};
|
|
19177
|
-
var
|
|
19349
|
+
var JyGoodsList = /*#__PURE__*/forwardRef(GoodList$6);
|
|
19178
19350
|
|
|
19179
|
-
var
|
|
19351
|
+
var JyGoodsModal = function JyGoodsModal(props, ref) {
|
|
19180
19352
|
useImperativeHandle(ref, function () {
|
|
19181
19353
|
return {
|
|
19182
19354
|
open: function open(shopCode) {
|
|
@@ -19196,13 +19368,13 @@ var JkyGoodsModal = function JkyGoodsModal(props, ref) {
|
|
|
19196
19368
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
19197
19369
|
selectedRows = _useState4[0],
|
|
19198
19370
|
setSelectedRows = _useState4[1];
|
|
19199
|
-
var
|
|
19371
|
+
var jyGoodsListRef = useRef(null);
|
|
19200
19372
|
var _onCancel = function onCancel() {
|
|
19201
19373
|
setVisible(false);
|
|
19202
19374
|
};
|
|
19203
19375
|
var onOk = function onOk() {
|
|
19204
|
-
var
|
|
19205
|
-
var selectedList = ((
|
|
19376
|
+
var _jyGoodsListRef$curre;
|
|
19377
|
+
var selectedList = ((_jyGoodsListRef$curre = jyGoodsListRef.current) === null || _jyGoodsListRef$curre === void 0 ? void 0 : _jyGoodsListRef$curre.getSelectGoodList()) || [];
|
|
19206
19378
|
onSubmit(selectedList);
|
|
19207
19379
|
_onCancel();
|
|
19208
19380
|
};
|
|
@@ -19217,48 +19389,295 @@ var JkyGoodsModal = function JkyGoodsModal(props, ref) {
|
|
|
19217
19389
|
},
|
|
19218
19390
|
onOk: onOk,
|
|
19219
19391
|
wrapClassName: "goodModal"
|
|
19220
|
-
}, /*#__PURE__*/React.createElement(
|
|
19221
|
-
ref:
|
|
19392
|
+
}, /*#__PURE__*/React.createElement(JyGoodsList, {
|
|
19393
|
+
ref: jyGoodsListRef,
|
|
19222
19394
|
selectedRows: selectedRows
|
|
19223
19395
|
})));
|
|
19224
19396
|
};
|
|
19225
|
-
var
|
|
19397
|
+
var JyGoodsModal$1 = /*#__PURE__*/forwardRef(JyGoodsModal);
|
|
19226
19398
|
|
|
19227
|
-
var
|
|
19228
|
-
var
|
|
19229
|
-
|
|
19230
|
-
|
|
19231
|
-
return {
|
|
19232
|
-
|
|
19233
|
-
|
|
19234
|
-
|
|
19235
|
-
|
|
19236
|
-
|
|
19237
|
-
|
|
19238
|
-
}
|
|
19239
|
-
|
|
19240
|
-
|
|
19241
|
-
|
|
19242
|
-
|
|
19243
|
-
|
|
19244
|
-
|
|
19245
|
-
|
|
19246
|
-
|
|
19247
|
-
|
|
19248
|
-
|
|
19249
|
-
|
|
19250
|
-
|
|
19251
|
-
|
|
19252
|
-
|
|
19253
|
-
|
|
19254
|
-
|
|
19255
|
-
|
|
19256
|
-
|
|
19257
|
-
|
|
19258
|
-
|
|
19259
|
-
|
|
19260
|
-
|
|
19261
|
-
|
|
19399
|
+
var getTableData$7 = function getTableData(_ref, formData) {
|
|
19400
|
+
var current = _ref.current,
|
|
19401
|
+
pageSize = _ref.pageSize;
|
|
19402
|
+
var conditionList = transformFormData(formData);
|
|
19403
|
+
return extendRequest('/qy/gdfw/product/product/page', {
|
|
19404
|
+
method: 'post',
|
|
19405
|
+
data: {
|
|
19406
|
+
pageSize: pageSize,
|
|
19407
|
+
pageNo: current,
|
|
19408
|
+
platform: 'JKY_ERP',
|
|
19409
|
+
conditionList: conditionList
|
|
19410
|
+
}
|
|
19411
|
+
}).then(function (res) {
|
|
19412
|
+
var _res$data = res.data,
|
|
19413
|
+
_res$data$productSkuL = _res$data.productSkuList,
|
|
19414
|
+
productSkuList = _res$data$productSkuL === void 0 ? [] : _res$data$productSkuL,
|
|
19415
|
+
_res$data$total = _res$data.total,
|
|
19416
|
+
total = _res$data$total === void 0 ? 0 : _res$data$total;
|
|
19417
|
+
var newProducts = productSkuList.map(function (item, index) {
|
|
19418
|
+
return _objectSpread2({}, item);
|
|
19419
|
+
});
|
|
19420
|
+
return {
|
|
19421
|
+
total: total,
|
|
19422
|
+
list: newProducts
|
|
19423
|
+
};
|
|
19424
|
+
});
|
|
19425
|
+
};
|
|
19426
|
+
var searchFormData$6 = [{
|
|
19427
|
+
label: '规格名称',
|
|
19428
|
+
name: 'skuName',
|
|
19429
|
+
dataIndex: 'specName'
|
|
19430
|
+
}, {
|
|
19431
|
+
label: '规格编码',
|
|
19432
|
+
name: 'skuCode',
|
|
19433
|
+
dataIndex: 'specNo',
|
|
19434
|
+
type: 'optionalInput'
|
|
19435
|
+
}, {
|
|
19436
|
+
label: '货品名称',
|
|
19437
|
+
name: 'goodName'
|
|
19438
|
+
}, {
|
|
19439
|
+
label: '货品编码',
|
|
19440
|
+
name: 'goodNo',
|
|
19441
|
+
type: 'optionalInput'
|
|
19442
|
+
}];
|
|
19443
|
+
var GoodList$7 = function GoodList(props, ref) {
|
|
19444
|
+
var _useState = useState([]),
|
|
19445
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
19446
|
+
selectList = _useState2[0],
|
|
19447
|
+
setSelect = _useState2[1];
|
|
19448
|
+
var _useState3 = useState([]),
|
|
19449
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
19450
|
+
selectIds = _useState4[0],
|
|
19451
|
+
setSelectIds = _useState4[1];
|
|
19452
|
+
var _useGetColumns = useGetColumns('jky'),
|
|
19453
|
+
_useGetColumns2 = _slicedToArray(_useGetColumns, 3),
|
|
19454
|
+
columns = _useGetColumns2[0],
|
|
19455
|
+
showColumnsDataIndexList = _useGetColumns2[1],
|
|
19456
|
+
loading = _useGetColumns2[2];
|
|
19457
|
+
useImperativeHandle(ref, function () {
|
|
19458
|
+
return {
|
|
19459
|
+
getSelectGoodList: function getSelectGoodList() {
|
|
19460
|
+
return selectList;
|
|
19461
|
+
}
|
|
19462
|
+
};
|
|
19463
|
+
});
|
|
19464
|
+
var _Form$useForm = Form.useForm(),
|
|
19465
|
+
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
19466
|
+
form = _Form$useForm2[0];
|
|
19467
|
+
var _useAntdTable = useAntdTable(getTableData$7, {
|
|
19468
|
+
defaultPageSize: 10,
|
|
19469
|
+
form: form
|
|
19470
|
+
}),
|
|
19471
|
+
tableProps = _useAntdTable.tableProps,
|
|
19472
|
+
search = _useAntdTable.search,
|
|
19473
|
+
params = _useAntdTable.params;
|
|
19474
|
+
var submit = search.submit,
|
|
19475
|
+
reset = search.reset;
|
|
19476
|
+
var rowSelection = {
|
|
19477
|
+
selectedRowKeys: selectIds,
|
|
19478
|
+
fixed: true,
|
|
19479
|
+
onSelect: function onSelect(record, selected) {
|
|
19480
|
+
if (selected) {
|
|
19481
|
+
setSelectIds([].concat(_toConsumableArray(selectIds), [record.id]));
|
|
19482
|
+
setSelect([].concat(_toConsumableArray(selectList), [record]));
|
|
19483
|
+
} else {
|
|
19484
|
+
setSelectIds(selectIds.filter(function (t) {
|
|
19485
|
+
return t !== record.id;
|
|
19486
|
+
}));
|
|
19487
|
+
setSelect(selectList.filter(function (t) {
|
|
19488
|
+
return t.id !== record.id;
|
|
19489
|
+
}));
|
|
19490
|
+
}
|
|
19491
|
+
},
|
|
19492
|
+
onSelectAll: function onSelectAll(selected, selectedRows, changeRows) {
|
|
19493
|
+
if (selected) {
|
|
19494
|
+
setSelectIds([].concat(_toConsumableArray(selectIds), _toConsumableArray(changeRows.map(function (t) {
|
|
19495
|
+
return t.id;
|
|
19496
|
+
}))));
|
|
19497
|
+
setSelect([].concat(_toConsumableArray(selectList), _toConsumableArray(changeRows)));
|
|
19498
|
+
} else {
|
|
19499
|
+
setSelectIds(difference(selectIds, changeRows.map(function (t) {
|
|
19500
|
+
return t.id;
|
|
19501
|
+
})));
|
|
19502
|
+
var list = differenceWith(selectList, changeRows, function (arrVal, othVal) {
|
|
19503
|
+
return arrVal.id !== othVal.id;
|
|
19504
|
+
});
|
|
19505
|
+
setSelect(list);
|
|
19506
|
+
}
|
|
19507
|
+
},
|
|
19508
|
+
getCheckboxProps: function getCheckboxProps(record) {
|
|
19509
|
+
var options = {
|
|
19510
|
+
disabled: (props.selectedRows || []).map(function (row) {
|
|
19511
|
+
return row.specId || record.id;
|
|
19512
|
+
}).includes(record.specId || record.id),
|
|
19513
|
+
name: record.id
|
|
19514
|
+
};
|
|
19515
|
+
return options;
|
|
19516
|
+
}
|
|
19517
|
+
};
|
|
19518
|
+
var showTable = function showTable() {
|
|
19519
|
+
var handleDelete = function handleDelete(record) {
|
|
19520
|
+
setSelectIds(selectIds.filter(function (t) {
|
|
19521
|
+
return t !== record.id;
|
|
19522
|
+
}));
|
|
19523
|
+
setSelect(selectList.filter(function (t) {
|
|
19524
|
+
return t.id !== record.id;
|
|
19525
|
+
}));
|
|
19526
|
+
};
|
|
19527
|
+
var showColumns = [{
|
|
19528
|
+
dataIndex: '',
|
|
19529
|
+
title: "\u64CD\u4F5C",
|
|
19530
|
+
ellipsis: true,
|
|
19531
|
+
width: 100,
|
|
19532
|
+
render: function render(val, record) {
|
|
19533
|
+
return /*#__PURE__*/React.createElement(Button, {
|
|
19534
|
+
type: "link",
|
|
19535
|
+
onClick: function onClick() {
|
|
19536
|
+
return handleDelete(record);
|
|
19537
|
+
}
|
|
19538
|
+
}, "\u5220\u9664");
|
|
19539
|
+
}
|
|
19540
|
+
}].concat(takeRight(columns, columns.length - 1));
|
|
19541
|
+
return selectList.length ? /*#__PURE__*/React.createElement("div", {
|
|
19542
|
+
style: {
|
|
19543
|
+
width: '100%',
|
|
19544
|
+
maxWidth: '387px'
|
|
19545
|
+
}
|
|
19546
|
+
}, /*#__PURE__*/React.createElement(Table, {
|
|
19547
|
+
columns: showColumns,
|
|
19548
|
+
rowKey: 'id',
|
|
19549
|
+
dataSource: selectList,
|
|
19550
|
+
scroll: {
|
|
19551
|
+
x: '100%',
|
|
19552
|
+
y: 250
|
|
19553
|
+
},
|
|
19554
|
+
pagination: {
|
|
19555
|
+
size: 'small',
|
|
19556
|
+
total: selectIds.length,
|
|
19557
|
+
pageSize: 10,
|
|
19558
|
+
showSizeChanger: false
|
|
19559
|
+
}
|
|
19560
|
+
})) : null;
|
|
19561
|
+
};
|
|
19562
|
+
return /*#__PURE__*/React.createElement(Skeleton, {
|
|
19563
|
+
active: true,
|
|
19564
|
+
loading: loading
|
|
19565
|
+
}, /*#__PURE__*/React.createElement(SearchForm, {
|
|
19566
|
+
searchFormData: searchFormData$6,
|
|
19567
|
+
form: form,
|
|
19568
|
+
showColumnsDataIndexList: showColumnsDataIndexList,
|
|
19569
|
+
submit: submit,
|
|
19570
|
+
reset: reset
|
|
19571
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
19572
|
+
style: {
|
|
19573
|
+
marginTop: '4px'
|
|
19574
|
+
}
|
|
19575
|
+
}, /*#__PURE__*/React.createElement(Table, _objectSpread2({
|
|
19576
|
+
className: "GoodModalColumns",
|
|
19577
|
+
rowSelection: rowSelection,
|
|
19578
|
+
rowKey: "id",
|
|
19579
|
+
columns: columns,
|
|
19580
|
+
scroll: {
|
|
19581
|
+
x: '100%',
|
|
19582
|
+
y: 250
|
|
19583
|
+
},
|
|
19584
|
+
size: "small"
|
|
19585
|
+
}, tableProps))), /*#__PURE__*/React.createElement(Popover, {
|
|
19586
|
+
getPopupContainer: function getPopupContainer(triggerNode) {
|
|
19587
|
+
return triggerNode.parentElement;
|
|
19588
|
+
},
|
|
19589
|
+
content: showTable(),
|
|
19590
|
+
title: "\u5DF2\u9009\u62E9".concat(selectList.length, "\u4E2A\u5546\u54C1")
|
|
19591
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
19592
|
+
danger: true,
|
|
19593
|
+
type: "text"
|
|
19594
|
+
}, "\u5DF2\u9009".concat(selectList.length > 99 ? '99+' : selectList.length, "\u4E2A\u5546\u54C1"), /*#__PURE__*/React.createElement(CaretUpOutlined, null))));
|
|
19595
|
+
};
|
|
19596
|
+
var JkyGoodsList = /*#__PURE__*/forwardRef(GoodList$7);
|
|
19597
|
+
|
|
19598
|
+
var JkyGoodsModal = function JkyGoodsModal(props, ref) {
|
|
19599
|
+
useImperativeHandle(ref, function () {
|
|
19600
|
+
return {
|
|
19601
|
+
open: function open(shopCode) {
|
|
19602
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
19603
|
+
setVisible(true);
|
|
19604
|
+
setSelectedRows(options.value || []);
|
|
19605
|
+
}
|
|
19606
|
+
};
|
|
19607
|
+
});
|
|
19608
|
+
var onSubmit = props.onSubmit,
|
|
19609
|
+
width = props.width;
|
|
19610
|
+
var _useState = useState(false),
|
|
19611
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
19612
|
+
visible = _useState2[0],
|
|
19613
|
+
setVisible = _useState2[1];
|
|
19614
|
+
var _useState3 = useState([]),
|
|
19615
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
19616
|
+
selectedRows = _useState4[0],
|
|
19617
|
+
setSelectedRows = _useState4[1];
|
|
19618
|
+
var jkyGoodsListRef = useRef(null);
|
|
19619
|
+
var _onCancel = function onCancel() {
|
|
19620
|
+
setVisible(false);
|
|
19621
|
+
};
|
|
19622
|
+
var onOk = function onOk() {
|
|
19623
|
+
var _jkyGoodsListRef$curr;
|
|
19624
|
+
var selectedList = ((_jkyGoodsListRef$curr = jkyGoodsListRef.current) === null || _jkyGoodsListRef$curr === void 0 ? void 0 : _jkyGoodsListRef$curr.getSelectGoodList()) || [];
|
|
19625
|
+
onSubmit(selectedList);
|
|
19626
|
+
_onCancel();
|
|
19627
|
+
};
|
|
19628
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, visible && /*#__PURE__*/React.createElement(Modal, {
|
|
19629
|
+
title: '选择商品',
|
|
19630
|
+
okText: '确认',
|
|
19631
|
+
cancelText: '取消',
|
|
19632
|
+
visible: visible,
|
|
19633
|
+
width: width || 850,
|
|
19634
|
+
onCancel: function onCancel() {
|
|
19635
|
+
_onCancel();
|
|
19636
|
+
},
|
|
19637
|
+
onOk: onOk,
|
|
19638
|
+
wrapClassName: "goodModal"
|
|
19639
|
+
}, /*#__PURE__*/React.createElement(JkyGoodsList, {
|
|
19640
|
+
ref: jkyGoodsListRef,
|
|
19641
|
+
selectedRows: selectedRows
|
|
19642
|
+
})));
|
|
19643
|
+
};
|
|
19644
|
+
var JkyGoodsModal$1 = /*#__PURE__*/forwardRef(JkyGoodsModal);
|
|
19645
|
+
|
|
19646
|
+
var getColumns = function getColumns(_ref) {
|
|
19647
|
+
var _ref$text = _ref.text,
|
|
19648
|
+
disabled = _ref.disabled,
|
|
19649
|
+
updateHandle = _ref.updateHandle;
|
|
19650
|
+
return {
|
|
19651
|
+
//百胜E3补发商品
|
|
19652
|
+
BS_E3_REISSUE_GOODS: [{
|
|
19653
|
+
dataIndex: 'sku',
|
|
19654
|
+
title: "SKU",
|
|
19655
|
+
width: 150,
|
|
19656
|
+
render: renderTextEllipsis
|
|
19657
|
+
}, {
|
|
19658
|
+
dataIndex: 'skuId',
|
|
19659
|
+
title: "SKU ID",
|
|
19660
|
+
width: 150,
|
|
19661
|
+
render: renderTextEllipsis
|
|
19662
|
+
}, {
|
|
19663
|
+
dataIndex: 'goodsName',
|
|
19664
|
+
title: "\u5546\u54C1\u540D\u79F0",
|
|
19665
|
+
width: 150,
|
|
19666
|
+
render: renderTextEllipsis
|
|
19667
|
+
}, {
|
|
19668
|
+
dataIndex: 'goodsShortName',
|
|
19669
|
+
title: "\u5546\u54C1\u7B80\u79F0",
|
|
19670
|
+
width: 150,
|
|
19671
|
+
render: renderTextEllipsis
|
|
19672
|
+
}, {
|
|
19673
|
+
dataIndex: 'picPath',
|
|
19674
|
+
title: "\u5546\u54C1\u56FE\u7247",
|
|
19675
|
+
width: 150,
|
|
19676
|
+
render: function render(val) {
|
|
19677
|
+
return /*#__PURE__*/React.createElement(Image, {
|
|
19678
|
+
width: 30,
|
|
19679
|
+
src: val
|
|
19680
|
+
});
|
|
19262
19681
|
}
|
|
19263
19682
|
}, {
|
|
19264
19683
|
dataIndex: 'goodsSn',
|
|
@@ -20431,120 +20850,348 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
20431
20850
|
});
|
|
20432
20851
|
}
|
|
20433
20852
|
}, {
|
|
20434
|
-
dataIndex: 'apiSpecName',
|
|
20435
|
-
title: "\u5E73\u53F0\u89C4\u683C\u540D\u79F0",
|
|
20436
|
-
width: 250,
|
|
20853
|
+
dataIndex: 'apiSpecName',
|
|
20854
|
+
title: "\u5E73\u53F0\u89C4\u683C\u540D\u79F0",
|
|
20855
|
+
width: 250,
|
|
20856
|
+
align: 'center',
|
|
20857
|
+
ellipsis: true,
|
|
20858
|
+
render: function render(text) {
|
|
20859
|
+
return /*#__PURE__*/React.createElement(CopyTextIcon, {
|
|
20860
|
+
val: text
|
|
20861
|
+
});
|
|
20862
|
+
}
|
|
20863
|
+
}, {
|
|
20864
|
+
dataIndex: 'suiteName',
|
|
20865
|
+
title: "\u7EC4\u5408\u88C5\u540D\u79F0",
|
|
20866
|
+
width: 250,
|
|
20867
|
+
align: 'center',
|
|
20868
|
+
ellipsis: true,
|
|
20869
|
+
render: function render(text) {
|
|
20870
|
+
return /*#__PURE__*/React.createElement(CopyTextIcon, {
|
|
20871
|
+
val: text
|
|
20872
|
+
});
|
|
20873
|
+
}
|
|
20874
|
+
}, {
|
|
20875
|
+
dataIndex: 'suiteNo',
|
|
20876
|
+
title: "\u7EC4\u5408\u88C5\u7F16\u53F7",
|
|
20877
|
+
width: 150,
|
|
20878
|
+
align: 'center',
|
|
20879
|
+
ellipsis: true,
|
|
20880
|
+
render: renderTextEllipsis
|
|
20881
|
+
}, {
|
|
20882
|
+
dataIndex: 'stockinNum',
|
|
20883
|
+
title: "\u5165\u5E93\u6570\u91CF",
|
|
20884
|
+
width: 150,
|
|
20885
|
+
align: 'center',
|
|
20886
|
+
ellipsis: true,
|
|
20887
|
+
render: renderTextEllipsis
|
|
20888
|
+
}, {
|
|
20889
|
+
dataIndex: 'refundNum',
|
|
20890
|
+
title: "\u9000\u6B3E\u6570\u91CF",
|
|
20891
|
+
width: 150,
|
|
20892
|
+
align: 'center',
|
|
20893
|
+
ellipsis: true,
|
|
20894
|
+
render: renderTextEllipsis
|
|
20895
|
+
}, {
|
|
20896
|
+
dataIndex: 'totalAmount',
|
|
20897
|
+
title: "\u9000\u8D27\u603B\u989D",
|
|
20898
|
+
width: 150,
|
|
20899
|
+
align: 'center',
|
|
20900
|
+
ellipsis: true,
|
|
20901
|
+
render: renderTextEllipsis
|
|
20902
|
+
}, {
|
|
20903
|
+
dataIndex: 'refundAmount',
|
|
20904
|
+
title: "\u5DF2\u9000\u6B3E\u91D1\u989D",
|
|
20905
|
+
width: 150,
|
|
20906
|
+
align: 'center',
|
|
20907
|
+
ellipsis: true,
|
|
20908
|
+
render: renderTextEllipsis
|
|
20909
|
+
}, {
|
|
20910
|
+
dataIndex: 'num',
|
|
20911
|
+
title: "\u5B9E\u9645\u53D1\u51FA\u6570\u91CF",
|
|
20912
|
+
width: 150,
|
|
20913
|
+
align: 'center',
|
|
20914
|
+
ellipsis: true,
|
|
20915
|
+
render: renderTextEllipsis
|
|
20916
|
+
}, {
|
|
20917
|
+
dataIndex: 'price',
|
|
20918
|
+
title: "\u4EF7\u683C",
|
|
20919
|
+
width: 150,
|
|
20920
|
+
align: 'center',
|
|
20921
|
+
ellipsis: true,
|
|
20922
|
+
render: renderTextEllipsis
|
|
20923
|
+
}, {
|
|
20924
|
+
dataIndex: 'originalPrice',
|
|
20925
|
+
title: "\u539F\u4EF7",
|
|
20926
|
+
width: 150,
|
|
20927
|
+
align: 'center',
|
|
20928
|
+
ellipsis: true,
|
|
20929
|
+
render: renderTextEllipsis
|
|
20930
|
+
}, {
|
|
20931
|
+
dataIndex: 'giftTypeDesc',
|
|
20932
|
+
title: "\u8D60\u54C1\u7C7B\u578B",
|
|
20933
|
+
width: 150,
|
|
20934
|
+
align: 'center',
|
|
20935
|
+
ellipsis: true,
|
|
20936
|
+
render: renderTextEllipsis
|
|
20937
|
+
}, {
|
|
20938
|
+
dataIndex: 'unitName',
|
|
20939
|
+
title: "\u57FA\u672C\u5355\u4F4D",
|
|
20940
|
+
ellipsis: true,
|
|
20941
|
+
width: 150,
|
|
20942
|
+
align: 'center',
|
|
20943
|
+
render: renderTextEllipsis
|
|
20944
|
+
}, {
|
|
20945
|
+
dataIndex: 'auxUnitName',
|
|
20946
|
+
title: "\u8F85\u52A9\u5355\u4F4D",
|
|
20947
|
+
ellipsis: true,
|
|
20948
|
+
width: 150,
|
|
20949
|
+
align: 'center',
|
|
20950
|
+
render: renderTextEllipsis
|
|
20951
|
+
}]
|
|
20952
|
+
};
|
|
20953
|
+
};
|
|
20954
|
+
|
|
20955
|
+
var getYesOrNo$4 = function getYesOrNo(val) {
|
|
20956
|
+
if (isNull(val)) return null;
|
|
20957
|
+
return val ? '是' : '否';
|
|
20958
|
+
};
|
|
20959
|
+
var getColumns$3 = function getColumns(_ref) {
|
|
20960
|
+
var _ref$text = _ref.text,
|
|
20961
|
+
text = _ref$text === void 0 ? '' : _ref$text,
|
|
20962
|
+
disabled = _ref.disabled,
|
|
20963
|
+
updateHandle = _ref.updateHandle;
|
|
20964
|
+
return {
|
|
20965
|
+
//万里牛商品信息
|
|
20966
|
+
WLN_GOODS: [{
|
|
20967
|
+
dataIndex: 'wlnItemName',
|
|
20968
|
+
title: "\u5546\u54C1\u540D\u79F0",
|
|
20969
|
+
align: 'center',
|
|
20970
|
+
ellipsis: true,
|
|
20971
|
+
width: 250,
|
|
20972
|
+
render: renderTextEllipsis
|
|
20973
|
+
}, {
|
|
20974
|
+
dataIndex: 'goodsCode',
|
|
20975
|
+
title: "\u5546\u54C1\u7F16\u7801",
|
|
20976
|
+
align: 'center',
|
|
20977
|
+
ellipsis: true,
|
|
20978
|
+
width: 250,
|
|
20979
|
+
render: renderTextEllipsis
|
|
20980
|
+
}, {
|
|
20981
|
+
dataIndex: 'wlnSkuName',
|
|
20982
|
+
title: "sku\u540D\u79F0",
|
|
20983
|
+
align: 'center',
|
|
20984
|
+
ellipsis: true,
|
|
20985
|
+
width: 250,
|
|
20986
|
+
render: renderTextEllipsis
|
|
20987
|
+
}, {
|
|
20988
|
+
dataIndex: 'skuCode',
|
|
20989
|
+
title: "sku\u7F16\u7801",
|
|
20990
|
+
align: 'center',
|
|
20991
|
+
ellipsis: true,
|
|
20992
|
+
width: 250,
|
|
20993
|
+
render: renderTextEllipsis
|
|
20994
|
+
}, {
|
|
20995
|
+
dataIndex: 'skuName',
|
|
20996
|
+
title: "\u7EBF\u4E0Asku\u540D\u79F0",
|
|
20997
|
+
align: 'center',
|
|
20998
|
+
ellipsis: true,
|
|
20999
|
+
width: 250,
|
|
21000
|
+
render: renderTextEllipsis
|
|
21001
|
+
}, {
|
|
21002
|
+
dataIndex: 'olnSkuCode',
|
|
21003
|
+
title: "\u7EBF\u4E0Asku\u7F16\u7801",
|
|
21004
|
+
align: 'center',
|
|
21005
|
+
ellipsis: true,
|
|
21006
|
+
width: 150,
|
|
21007
|
+
render: renderTextEllipsis
|
|
21008
|
+
}, {
|
|
21009
|
+
dataIndex: 'sku',
|
|
21010
|
+
title: "\u7EBF\u4E0Asku id",
|
|
21011
|
+
align: 'center',
|
|
21012
|
+
ellipsis: true,
|
|
21013
|
+
width: 150,
|
|
21014
|
+
render: renderTextEllipsis
|
|
21015
|
+
}, {
|
|
21016
|
+
dataIndex: 'name',
|
|
21017
|
+
title: "\u7EBF\u4E0A\u5546\u54C1\u540D\u79F0",
|
|
21018
|
+
align: 'center',
|
|
21019
|
+
ellipsis: true,
|
|
21020
|
+
width: 250,
|
|
21021
|
+
render: renderTextEllipsis
|
|
21022
|
+
}, {
|
|
21023
|
+
dataIndex: 'pic',
|
|
21024
|
+
title: "\u7EBF\u4E0A\u56FE\u7247",
|
|
21025
|
+
align: 'center',
|
|
21026
|
+
ellipsis: true,
|
|
21027
|
+
width: 100,
|
|
21028
|
+
render: function render(val) {
|
|
21029
|
+
return /*#__PURE__*/React.createElement(Image, {
|
|
21030
|
+
width: 30,
|
|
21031
|
+
src: val
|
|
21032
|
+
});
|
|
21033
|
+
}
|
|
21034
|
+
}, {
|
|
21035
|
+
dataIndex: 'olnItemCOde',
|
|
21036
|
+
title: "\u7EBF\u4E0A\u5546\u54C1\u7F16\u7801",
|
|
21037
|
+
align: 'center',
|
|
21038
|
+
ellipsis: true,
|
|
21039
|
+
width: 150,
|
|
21040
|
+
render: renderTextEllipsis
|
|
21041
|
+
}, {
|
|
21042
|
+
dataIndex: 'code',
|
|
21043
|
+
title: "\u7EBF\u4E0A\u5546\u54C1id",
|
|
21044
|
+
align: 'center',
|
|
21045
|
+
ellipsis: true,
|
|
21046
|
+
width: 150,
|
|
21047
|
+
render: renderTextEllipsis
|
|
21048
|
+
}, {
|
|
21049
|
+
dataIndex: 'barCode',
|
|
21050
|
+
title: "\u5546\u54C1\u6761\u7801",
|
|
21051
|
+
align: 'center',
|
|
21052
|
+
ellipsis: true,
|
|
21053
|
+
width: 150,
|
|
21054
|
+
render: renderTextEllipsis
|
|
21055
|
+
}, {
|
|
21056
|
+
dataIndex: 'money',
|
|
21057
|
+
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
20437
21058
|
align: 'center',
|
|
20438
21059
|
ellipsis: true,
|
|
20439
|
-
|
|
20440
|
-
|
|
20441
|
-
val: text
|
|
20442
|
-
});
|
|
20443
|
-
}
|
|
21060
|
+
width: 100,
|
|
21061
|
+
render: renderTextEllipsis
|
|
20444
21062
|
}, {
|
|
20445
|
-
dataIndex: '
|
|
20446
|
-
title: "\
|
|
20447
|
-
width: 250,
|
|
21063
|
+
dataIndex: 'number',
|
|
21064
|
+
title: "".concat(text, "\u6570\u91CF"),
|
|
20448
21065
|
align: 'center',
|
|
20449
21066
|
ellipsis: true,
|
|
20450
|
-
|
|
20451
|
-
|
|
20452
|
-
|
|
20453
|
-
|
|
21067
|
+
width: 100,
|
|
21068
|
+
render: function render(val, record, index) {
|
|
21069
|
+
return record.canUpdateNumber && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
21070
|
+
style: {
|
|
21071
|
+
width: 70
|
|
21072
|
+
},
|
|
21073
|
+
value: val,
|
|
21074
|
+
min: 1,
|
|
21075
|
+
precision: 0,
|
|
21076
|
+
onChange: function onChange(num) {
|
|
21077
|
+
return updateHandle(num, index, 'number');
|
|
21078
|
+
}
|
|
21079
|
+
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
20454
21080
|
}
|
|
20455
21081
|
}, {
|
|
20456
|
-
dataIndex: '
|
|
20457
|
-
title: "\
|
|
20458
|
-
width: 150,
|
|
21082
|
+
dataIndex: 'share',
|
|
21083
|
+
title: "\u5E94\u6536\u6B3E",
|
|
20459
21084
|
align: 'center',
|
|
20460
21085
|
ellipsis: true,
|
|
21086
|
+
width: 70,
|
|
20461
21087
|
render: renderTextEllipsis
|
|
20462
21088
|
}, {
|
|
20463
|
-
dataIndex: '
|
|
20464
|
-
title: "\
|
|
20465
|
-
width: 150,
|
|
21089
|
+
dataIndex: 'discountedUnitPrice',
|
|
21090
|
+
title: "\u6298\u540E\u5355\u4EF7",
|
|
20466
21091
|
align: 'center',
|
|
20467
21092
|
ellipsis: true,
|
|
21093
|
+
width: 250,
|
|
20468
21094
|
render: renderTextEllipsis
|
|
20469
21095
|
}, {
|
|
20470
|
-
dataIndex: '
|
|
20471
|
-
title: "\
|
|
20472
|
-
width: 150,
|
|
21096
|
+
dataIndex: 'originPrice',
|
|
21097
|
+
title: "\u539F\u4EF7",
|
|
20473
21098
|
align: 'center',
|
|
20474
21099
|
ellipsis: true,
|
|
21100
|
+
width: 250,
|
|
20475
21101
|
render: renderTextEllipsis
|
|
20476
21102
|
}, {
|
|
20477
|
-
dataIndex: '
|
|
20478
|
-
title: "\
|
|
20479
|
-
width: 150,
|
|
21103
|
+
dataIndex: 'price',
|
|
21104
|
+
title: "\u5355\u4EF7",
|
|
20480
21105
|
align: 'center',
|
|
20481
21106
|
ellipsis: true,
|
|
21107
|
+
width: 250,
|
|
20482
21108
|
render: renderTextEllipsis
|
|
20483
21109
|
}, {
|
|
20484
|
-
dataIndex: '
|
|
20485
|
-
title: "\
|
|
20486
|
-
width: 150,
|
|
21110
|
+
dataIndex: 'receivable',
|
|
21111
|
+
title: "\u9500\u552E\u91D1\u989D",
|
|
20487
21112
|
align: 'center',
|
|
20488
21113
|
ellipsis: true,
|
|
21114
|
+
width: 250,
|
|
20489
21115
|
render: renderTextEllipsis
|
|
20490
21116
|
}, {
|
|
20491
|
-
dataIndex: '
|
|
20492
|
-
title: "\
|
|
20493
|
-
width: 150,
|
|
21117
|
+
dataIndex: 'type',
|
|
21118
|
+
title: "\u8D60\u54C1\u7C7B\u578B",
|
|
20494
21119
|
align: 'center',
|
|
20495
21120
|
ellipsis: true,
|
|
21121
|
+
width: 100,
|
|
20496
21122
|
render: renderTextEllipsis
|
|
20497
21123
|
}, {
|
|
20498
|
-
dataIndex: '
|
|
20499
|
-
title: "\
|
|
20500
|
-
width: 150,
|
|
21124
|
+
dataIndex: 'isPackage',
|
|
21125
|
+
title: "\u662F\u5426\u7EC4\u5408\u5546\u54C1",
|
|
20501
21126
|
align: 'center',
|
|
20502
21127
|
ellipsis: true,
|
|
20503
|
-
render:
|
|
21128
|
+
render: function render(val, record, index) {
|
|
21129
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
21130
|
+
value: val,
|
|
21131
|
+
onChange: function onChange(value) {
|
|
21132
|
+
updateHandle(value, index, 'isGift');
|
|
21133
|
+
},
|
|
21134
|
+
options: [{
|
|
21135
|
+
label: '是',
|
|
21136
|
+
value: true
|
|
21137
|
+
}, {
|
|
21138
|
+
label: '否',
|
|
21139
|
+
value: false
|
|
21140
|
+
}]
|
|
21141
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
|
|
21142
|
+
},
|
|
21143
|
+
width: 200
|
|
20504
21144
|
}, {
|
|
20505
|
-
dataIndex: '
|
|
20506
|
-
title: "\
|
|
20507
|
-
width: 150,
|
|
21145
|
+
dataIndex: 'hasRefund',
|
|
21146
|
+
title: "\u662F\u5426\u9000\u6B3E",
|
|
20508
21147
|
align: 'center',
|
|
20509
21148
|
ellipsis: true,
|
|
20510
|
-
|
|
21149
|
+
width: 100,
|
|
21150
|
+
render: function render(val, record, index) {
|
|
21151
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
21152
|
+
value: val,
|
|
21153
|
+
onChange: function onChange(value) {
|
|
21154
|
+
updateHandle(value, index, 'isGift');
|
|
21155
|
+
},
|
|
21156
|
+
options: [{
|
|
21157
|
+
label: '是',
|
|
21158
|
+
value: 1
|
|
21159
|
+
}, {
|
|
21160
|
+
label: '否',
|
|
21161
|
+
value: 0
|
|
21162
|
+
}]
|
|
21163
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
|
|
21164
|
+
}
|
|
20511
21165
|
}, {
|
|
20512
|
-
dataIndex: '
|
|
20513
|
-
title: "\
|
|
20514
|
-
width: 150,
|
|
21166
|
+
dataIndex: 'unit',
|
|
21167
|
+
title: "\u5355\u4F4D",
|
|
20515
21168
|
align: 'center',
|
|
20516
21169
|
ellipsis: true,
|
|
21170
|
+
width: 100,
|
|
20517
21171
|
render: renderTextEllipsis
|
|
20518
21172
|
}, {
|
|
20519
|
-
dataIndex: '
|
|
20520
|
-
title: "\
|
|
20521
|
-
ellipsis: true,
|
|
20522
|
-
width: 150,
|
|
21173
|
+
dataIndex: 'pkgGoodsName',
|
|
21174
|
+
title: "\u539F\u7EC4\u5408\u5546\u54C1\u540D\u79F0",
|
|
20523
21175
|
align: 'center',
|
|
21176
|
+
ellipsis: true,
|
|
21177
|
+
width: 200,
|
|
20524
21178
|
render: renderTextEllipsis
|
|
20525
21179
|
}, {
|
|
20526
|
-
dataIndex: '
|
|
20527
|
-
title: "\
|
|
21180
|
+
dataIndex: 'pkgGoodsCode',
|
|
21181
|
+
title: "\u539F\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
|
|
21182
|
+
align: 'center',
|
|
20528
21183
|
ellipsis: true,
|
|
20529
|
-
width:
|
|
21184
|
+
width: 200,
|
|
21185
|
+
render: renderTextEllipsis
|
|
21186
|
+
}, {
|
|
21187
|
+
dataIndex: 'pkgGoodsId',
|
|
21188
|
+
title: "\u539F\u7EC4\u5408\u5546\u54C1id",
|
|
20530
21189
|
align: 'center',
|
|
21190
|
+
ellipsis: true,
|
|
21191
|
+
width: 200,
|
|
20531
21192
|
render: renderTextEllipsis
|
|
20532
|
-
}]
|
|
20533
|
-
|
|
20534
|
-
};
|
|
20535
|
-
|
|
20536
|
-
var getYesOrNo$3 = function getYesOrNo(val) {
|
|
20537
|
-
if (isNull(val)) return null;
|
|
20538
|
-
return val ? '是' : '否';
|
|
20539
|
-
};
|
|
20540
|
-
var getColumns$3 = function getColumns(_ref) {
|
|
20541
|
-
var _ref$text = _ref.text,
|
|
20542
|
-
text = _ref$text === void 0 ? '' : _ref$text,
|
|
20543
|
-
disabled = _ref.disabled,
|
|
20544
|
-
updateHandle = _ref.updateHandle;
|
|
20545
|
-
return {
|
|
20546
|
-
//万里牛商品信息
|
|
20547
|
-
WLN_GOODS: [{
|
|
21193
|
+
}],
|
|
21194
|
+
WLN_REISSUE_GOODS: [{
|
|
20548
21195
|
dataIndex: 'wlnItemName',
|
|
20549
21196
|
title: "\u5546\u54C1\u540D\u79F0",
|
|
20550
21197
|
align: 'center',
|
|
@@ -20558,6 +21205,13 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
20558
21205
|
ellipsis: true,
|
|
20559
21206
|
width: 250,
|
|
20560
21207
|
render: renderTextEllipsis
|
|
21208
|
+
}, {
|
|
21209
|
+
dataIndex: 'wlnSkuName',
|
|
21210
|
+
title: "sku\u540D\u79F0",
|
|
21211
|
+
align: 'center',
|
|
21212
|
+
ellipsis: true,
|
|
21213
|
+
width: 250,
|
|
21214
|
+
render: renderTextEllipsis
|
|
20561
21215
|
}, {
|
|
20562
21216
|
dataIndex: 'skuCode',
|
|
20563
21217
|
title: "sku\u7F16\u7801",
|
|
@@ -20627,11 +21281,11 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
20627
21281
|
width: 150,
|
|
20628
21282
|
render: renderTextEllipsis
|
|
20629
21283
|
}, {
|
|
20630
|
-
dataIndex: '
|
|
20631
|
-
title: "\
|
|
21284
|
+
dataIndex: 'price',
|
|
21285
|
+
title: "\u5355\u4EF7",
|
|
20632
21286
|
align: 'center',
|
|
20633
21287
|
ellipsis: true,
|
|
20634
|
-
width:
|
|
21288
|
+
width: 250,
|
|
20635
21289
|
render: renderTextEllipsis
|
|
20636
21290
|
}, {
|
|
20637
21291
|
dataIndex: 'number',
|
|
@@ -20653,12 +21307,29 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
20653
21307
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
20654
21308
|
}
|
|
20655
21309
|
}, {
|
|
20656
|
-
dataIndex: '
|
|
20657
|
-
title: "\
|
|
20658
|
-
|
|
20659
|
-
|
|
20660
|
-
|
|
20661
|
-
|
|
21310
|
+
dataIndex: 'outPrice',
|
|
21311
|
+
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
21312
|
+
width: 150,
|
|
21313
|
+
render: function render(_, record, index) {
|
|
21314
|
+
var value;
|
|
21315
|
+
if ((typeof record.number === 'number' || record.number) && (typeof record.price === 'number' || record.price)) {
|
|
21316
|
+
value = +(record.number * record.price).toFixed(2);
|
|
21317
|
+
}
|
|
21318
|
+
if (record.canUpdateNumber && !disabled) {
|
|
21319
|
+
return /*#__PURE__*/React.createElement(InputNumber, {
|
|
21320
|
+
style: {
|
|
21321
|
+
width: 70
|
|
21322
|
+
},
|
|
21323
|
+
value: value,
|
|
21324
|
+
min: 1,
|
|
21325
|
+
precision: 0,
|
|
21326
|
+
onChange: function onChange(num) {
|
|
21327
|
+
return updateHandle(num, index, 'total');
|
|
21328
|
+
}
|
|
21329
|
+
});
|
|
21330
|
+
}
|
|
21331
|
+
return value || value === 0 ? value : '';
|
|
21332
|
+
}
|
|
20662
21333
|
}, {
|
|
20663
21334
|
dataIndex: 'type',
|
|
20664
21335
|
title: "\u8D60\u54C1\u7C7B\u578B",
|
|
@@ -20684,9 +21355,37 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
20684
21355
|
label: '否',
|
|
20685
21356
|
value: false
|
|
20686
21357
|
}]
|
|
20687
|
-
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$
|
|
21358
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
|
|
20688
21359
|
},
|
|
20689
21360
|
width: 100
|
|
21361
|
+
}, {
|
|
21362
|
+
dataIndex: 'unit',
|
|
21363
|
+
title: "\u5355\u4F4D",
|
|
21364
|
+
align: 'center',
|
|
21365
|
+
ellipsis: true,
|
|
21366
|
+
width: 100,
|
|
21367
|
+
render: renderTextEllipsis
|
|
21368
|
+
}, {
|
|
21369
|
+
dataIndex: 'pkgGoodsName',
|
|
21370
|
+
title: "\u539F\u7EC4\u5408\u5546\u54C1\u540D\u79F0",
|
|
21371
|
+
align: 'center',
|
|
21372
|
+
ellipsis: true,
|
|
21373
|
+
width: 200,
|
|
21374
|
+
render: renderTextEllipsis
|
|
21375
|
+
}, {
|
|
21376
|
+
dataIndex: 'pkgGoodsCode',
|
|
21377
|
+
title: "\u539F\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
|
|
21378
|
+
align: 'center',
|
|
21379
|
+
ellipsis: true,
|
|
21380
|
+
width: 200,
|
|
21381
|
+
render: renderTextEllipsis
|
|
21382
|
+
}, {
|
|
21383
|
+
dataIndex: 'pkgGoodsId',
|
|
21384
|
+
title: "\u539F\u7EC4\u5408\u5546\u54C1id",
|
|
21385
|
+
align: 'center',
|
|
21386
|
+
ellipsis: true,
|
|
21387
|
+
width: 200,
|
|
21388
|
+
render: renderTextEllipsis
|
|
20690
21389
|
}]
|
|
20691
21390
|
};
|
|
20692
21391
|
};
|
|
@@ -20696,7 +21395,7 @@ var isNumberOrNumberString$1 = function isNumberOrNumberString(value) {
|
|
|
20696
21395
|
if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
|
|
20697
21396
|
return false;
|
|
20698
21397
|
};
|
|
20699
|
-
var getYesOrNo$
|
|
21398
|
+
var getYesOrNo$5 = function getYesOrNo(val) {
|
|
20700
21399
|
if (isNull(val)) return null;
|
|
20701
21400
|
return val ? '是' : '否';
|
|
20702
21401
|
};
|
|
@@ -20811,7 +21510,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
20811
21510
|
title: "\u662F\u5426\u53D6\u6D88",
|
|
20812
21511
|
width: 150,
|
|
20813
21512
|
render: function render(val) {
|
|
20814
|
-
return /*#__PURE__*/React.createElement("span", null, getYesOrNo$
|
|
21513
|
+
return /*#__PURE__*/React.createElement("span", null, getYesOrNo$5(val));
|
|
20815
21514
|
}
|
|
20816
21515
|
}, {
|
|
20817
21516
|
dataIndex: 'isGift',
|
|
@@ -20830,7 +21529,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
20830
21529
|
label: '否',
|
|
20831
21530
|
value: 0
|
|
20832
21531
|
}]
|
|
20833
|
-
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$
|
|
21532
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$5(val));
|
|
20834
21533
|
}
|
|
20835
21534
|
}, {
|
|
20836
21535
|
dataIndex: 'skuNote',
|
|
@@ -20956,7 +21655,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
20956
21655
|
label: '否',
|
|
20957
21656
|
value: 0
|
|
20958
21657
|
}]
|
|
20959
|
-
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$
|
|
21658
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$5(val));
|
|
20960
21659
|
}
|
|
20961
21660
|
}].map(function (item) {
|
|
20962
21661
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
@@ -21085,7 +21784,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
21085
21784
|
label: '否',
|
|
21086
21785
|
value: 0
|
|
21087
21786
|
}]
|
|
21088
|
-
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$
|
|
21787
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$5(val));
|
|
21089
21788
|
}
|
|
21090
21789
|
}].map(function (item) {
|
|
21091
21790
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
@@ -23805,6 +24504,9 @@ var isErpType = {
|
|
|
23805
24504
|
},
|
|
23806
24505
|
isJky: function isJky(type) {
|
|
23807
24506
|
return ['JKY_GOODS', 'JKY_REISSUE_GOODS'].includes(type);
|
|
24507
|
+
},
|
|
24508
|
+
isWln: function isWln(type) {
|
|
24509
|
+
return ['WLN_GOODS', 'WLN_REISSUE_GOODS'].includes(type);
|
|
23808
24510
|
}
|
|
23809
24511
|
};
|
|
23810
24512
|
var processGoods$1 = function processGoods(_ref) {
|
|
@@ -23864,6 +24566,13 @@ var processGoods$1 = function processGoods(_ref) {
|
|
|
23864
24566
|
canUpdateNumber: canUpdateNumber,
|
|
23865
24567
|
source: source
|
|
23866
24568
|
});
|
|
24569
|
+
} else if (isErpType.isWln(type)) {
|
|
24570
|
+
newList = processWlnGoods$1({
|
|
24571
|
+
list: list,
|
|
24572
|
+
type: type,
|
|
24573
|
+
canUpdateNumber: canUpdateNumber,
|
|
24574
|
+
source: source
|
|
24575
|
+
});
|
|
23867
24576
|
} else {
|
|
23868
24577
|
newList = processDefaultGoods({
|
|
23869
24578
|
list: list,
|
|
@@ -23946,11 +24655,63 @@ var processJkyGoods$1 = function processJkyGoods(_ref3) {
|
|
|
23946
24655
|
});
|
|
23947
24656
|
});
|
|
23948
24657
|
};
|
|
23949
|
-
|
|
23950
|
-
var processWdtGoods$1 = function processWdtGoods(_ref4) {
|
|
24658
|
+
var processWlnGoods$1 = function processWlnGoods(_ref4) {
|
|
23951
24659
|
var list = _ref4.list,
|
|
23952
|
-
type = _ref4.type,
|
|
23953
24660
|
canUpdateNumber = _ref4.canUpdateNumber;
|
|
24661
|
+
return list.map(function (item) {
|
|
24662
|
+
var goodName = item.goodName,
|
|
24663
|
+
goodShortName = item.goodShortName,
|
|
24664
|
+
goodNo = item.goodNo,
|
|
24665
|
+
goodId = item.goodId,
|
|
24666
|
+
goodBarcode = item.goodBarcode,
|
|
24667
|
+
propertiesValue = item.propertiesValue,
|
|
24668
|
+
specNo = item.specNo,
|
|
24669
|
+
specId = item.specId,
|
|
24670
|
+
specImgUrl = item.specImgUrl,
|
|
24671
|
+
specBarcode = item.specBarcode,
|
|
24672
|
+
brandName = item.brandName,
|
|
24673
|
+
retailPrice = item.retailPrice,
|
|
24674
|
+
marketPrice = item.marketPrice,
|
|
24675
|
+
unitName = item.unitName,
|
|
24676
|
+
skuType = item.skuType;
|
|
24677
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
24678
|
+
wlnItemName: goodName,
|
|
24679
|
+
goodsCode: goodNo,
|
|
24680
|
+
wlnSkuName: propertiesValue,
|
|
24681
|
+
skuCode: specNo,
|
|
24682
|
+
// skuName: '', // "线上sku名称",
|
|
24683
|
+
// olnSkuCode: '', // "线上sku编码",
|
|
24684
|
+
// sku: '', // "线上sku id",
|
|
24685
|
+
// name: '', // "线上商品名称",
|
|
24686
|
+
// pic: '', // "线上图片",
|
|
24687
|
+
// olnItemCOde: '', // "线上商品编码",
|
|
24688
|
+
// code: '', // "线上商品id",
|
|
24689
|
+
barCode: goodBarcode,
|
|
24690
|
+
// money: '', // "实付金额",
|
|
24691
|
+
number: 1,
|
|
24692
|
+
share: '',
|
|
24693
|
+
// discountedUnitPrice: '', // "折后单价",
|
|
24694
|
+
originPrice: marketPrice,
|
|
24695
|
+
price: retailPrice,
|
|
24696
|
+
receivable: +((marketPrice || 0) * (retailPrice || 0)).toFixed(2),
|
|
24697
|
+
// type: '', // "赠品类型",
|
|
24698
|
+
isPackage: skuType === 'combine',
|
|
24699
|
+
// hasRefund: '', // 是否退款,
|
|
24700
|
+
unit: unitName,
|
|
24701
|
+
// pkgGoodsName: '', // "原组合商品名称",
|
|
24702
|
+
// pkgGoodsCode: '', // "原组合商品编码",
|
|
24703
|
+
// pkgGoodsId: '', // "原组合商品id",
|
|
24704
|
+
uuid: uuid(),
|
|
24705
|
+
canDelete: true,
|
|
24706
|
+
canEdit: true
|
|
24707
|
+
});
|
|
24708
|
+
});
|
|
24709
|
+
};
|
|
24710
|
+
// 处理不同类型的商品数据
|
|
24711
|
+
var processWdtGoods$1 = function processWdtGoods(_ref5) {
|
|
24712
|
+
var list = _ref5.list,
|
|
24713
|
+
type = _ref5.type,
|
|
24714
|
+
canUpdateNumber = _ref5.canUpdateNumber;
|
|
23954
24715
|
return list.map(function (item) {
|
|
23955
24716
|
var processedItem = _objectSpread2(_objectSpread2({}, item), {}, {
|
|
23956
24717
|
uuid: uuid(),
|
|
@@ -23968,9 +24729,9 @@ var processWdtGoods$1 = function processWdtGoods(_ref4) {
|
|
|
23968
24729
|
return processedItem;
|
|
23969
24730
|
});
|
|
23970
24731
|
};
|
|
23971
|
-
var processBsE3Goods$1 = function processBsE3Goods(
|
|
23972
|
-
var list =
|
|
23973
|
-
canUpdateNumber =
|
|
24732
|
+
var processBsE3Goods$1 = function processBsE3Goods(_ref6) {
|
|
24733
|
+
var list = _ref6.list,
|
|
24734
|
+
canUpdateNumber = _ref6.canUpdateNumber;
|
|
23974
24735
|
return list.map(function (item) {
|
|
23975
24736
|
var specNo = item.specNo,
|
|
23976
24737
|
specId = item.specId,
|
|
@@ -24005,9 +24766,9 @@ var processBsE3Goods$1 = function processBsE3Goods(_ref5) {
|
|
|
24005
24766
|
});
|
|
24006
24767
|
});
|
|
24007
24768
|
};
|
|
24008
|
-
var processGyGoods$1 = function processGyGoods(
|
|
24009
|
-
var list =
|
|
24010
|
-
source =
|
|
24769
|
+
var processGyGoods$1 = function processGyGoods(_ref7) {
|
|
24770
|
+
var list = _ref7.list,
|
|
24771
|
+
source = _ref7.source;
|
|
24011
24772
|
var isFormWorkOrder = source === 'workOrder';
|
|
24012
24773
|
return list.map(function (item) {
|
|
24013
24774
|
var goodName = item.goodName,
|
|
@@ -24034,8 +24795,8 @@ var processGyGoods$1 = function processGyGoods(_ref6) {
|
|
|
24034
24795
|
});
|
|
24035
24796
|
});
|
|
24036
24797
|
};
|
|
24037
|
-
var processJstGoods$1 = function processJstGoods(
|
|
24038
|
-
var list =
|
|
24798
|
+
var processJstGoods$1 = function processJstGoods(_ref8) {
|
|
24799
|
+
var list = _ref8.list;
|
|
24039
24800
|
return list.map(function (item) {
|
|
24040
24801
|
return {
|
|
24041
24802
|
name: item.goodName,
|
|
@@ -24053,9 +24814,9 @@ var processJstGoods$1 = function processJstGoods(_ref7) {
|
|
|
24053
24814
|
};
|
|
24054
24815
|
});
|
|
24055
24816
|
};
|
|
24056
|
-
var processKmGoods$1 = function processKmGoods(
|
|
24057
|
-
var list =
|
|
24058
|
-
type =
|
|
24817
|
+
var processKmGoods$1 = function processKmGoods(_ref9) {
|
|
24818
|
+
var list = _ref9.list,
|
|
24819
|
+
type = _ref9.type;
|
|
24059
24820
|
var initParamsMap = {
|
|
24060
24821
|
KM_GOODS: {
|
|
24061
24822
|
num: 1
|
|
@@ -24094,9 +24855,9 @@ var processKmGoods$1 = function processKmGoods(_ref8) {
|
|
|
24094
24855
|
}, initParamsMap[type] || {});
|
|
24095
24856
|
});
|
|
24096
24857
|
};
|
|
24097
|
-
var processDefaultGoods = function processDefaultGoods(
|
|
24098
|
-
var list =
|
|
24099
|
-
canUpdateNumber =
|
|
24858
|
+
var processDefaultGoods = function processDefaultGoods(_ref10) {
|
|
24859
|
+
var list = _ref10.list,
|
|
24860
|
+
canUpdateNumber = _ref10.canUpdateNumber;
|
|
24100
24861
|
return list.map(function (item) {
|
|
24101
24862
|
var goodsId = item.goodsId,
|
|
24102
24863
|
name = item.name,
|
|
@@ -24145,6 +24906,8 @@ var GoodsModalMap = {
|
|
|
24145
24906
|
JY_REISSUE_GOODS: JyGoodsModal$1,
|
|
24146
24907
|
JKY_GOODS: JkyGoodsModal$1,
|
|
24147
24908
|
JKY_REISSUE_GOODS: JkyGoodsModal$1,
|
|
24909
|
+
WLN_REISSUE_GOODS: WlnGoodsModal$1,
|
|
24910
|
+
WLN_GOODS: WlnGoodsModal$1,
|
|
24148
24911
|
OTHER_GOODS: GoodsModal$2
|
|
24149
24912
|
};
|
|
24150
24913
|
var systemOrderNoMap = {
|
|
@@ -24159,6 +24922,7 @@ var systemOrderNoMap = {
|
|
|
24159
24922
|
JY_REISSUE_GOODS: 'tradeNo',
|
|
24160
24923
|
JKY_GOODS: 'tradeNo',
|
|
24161
24924
|
JKY_REISSUE_GOODS: 'tradeNo',
|
|
24925
|
+
WLN_REISSUE_GOODS: 'tradeNo',
|
|
24162
24926
|
KM_REISSUE_GOODS: 'sid',
|
|
24163
24927
|
KM_RETURN_GOODS: 'sid',
|
|
24164
24928
|
KM_EXCHANGE_GOODS: 'sid',
|
|
@@ -24416,6 +25180,9 @@ var getButtonText = function getButtonText() {
|
|
|
24416
25180
|
if (['JKY_GOODS', 'JKY_REISSUE_GOODS'].includes(type)) {
|
|
24417
25181
|
return '选择吉客云ERP商品';
|
|
24418
25182
|
}
|
|
25183
|
+
if (['WLN_GOODS', 'WLN_REISSUE_GOODS'].includes(type)) {
|
|
25184
|
+
return '选择万里牛ERP商品';
|
|
25185
|
+
}
|
|
24419
25186
|
return '选择商品';
|
|
24420
25187
|
};
|
|
24421
25188
|
var GoodItem$1 = function GoodItem(props) {
|
|
@@ -24475,8 +25242,8 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
24475
25242
|
var jstReturnGoods = Form === null || Form === void 0 ? void 0 : Form.useWatch('3979edfd6d', form);
|
|
24476
25243
|
var isShowSelectTradeGoods = type !== 'JST_EXCHANGE_GOODS' || (jstReturnGoods === null || jstReturnGoods === void 0 ? void 0 : jstReturnGoods.jstSystemOrderNo);
|
|
24477
25244
|
// 判断是否为是否展示系统单筛选项
|
|
24478
|
-
var isShowSelect = type && ['WDT_GOODS', 'BS_E3_GOODS', 'GY_GOODS', 'JST_GOODS', 'WLN_GOODS', 'KM_GOODS', 'JY_GOODS', 'JY_REISSUE_GOODS', 'JKY_GOODS', 'JKY_REISSUE_GOODS', 'GY_REISSUE_GOODS', 'KM_REISSUE_GOODS', 'KM_RETURN_GOODS', 'BS_E3_REISSUE_GOODS', 'WDT_REISSUE_GOODS', 'JST_REISSUE_GOODS'].includes(type) || false;
|
|
24479
|
-
var isReissueType = type && ['GY_REISSUE_GOODS', 'KM_REISSUE_GOODS', 'BS_E3_REISSUE_GOODS', 'WDT_REISSUE_GOODS', 'JST_REISSUE_GOODS', 'JY_REISSUE_GOODS', 'JKY_REISSUE_GOODS'].includes(type) || false;
|
|
25245
|
+
var isShowSelect = type && ['WDT_GOODS', 'BS_E3_GOODS', 'GY_GOODS', 'JST_GOODS', 'WLN_GOODS', 'KM_GOODS', 'JY_GOODS', 'JY_REISSUE_GOODS', 'JKY_GOODS', 'JKY_REISSUE_GOODS', 'WLN_REISSUE_GOODS', 'GY_REISSUE_GOODS', 'KM_REISSUE_GOODS', 'KM_RETURN_GOODS', 'BS_E3_REISSUE_GOODS', 'WDT_REISSUE_GOODS', 'JST_REISSUE_GOODS'].includes(type) || false;
|
|
25246
|
+
var isReissueType = type && ['GY_REISSUE_GOODS', 'KM_REISSUE_GOODS', 'BS_E3_REISSUE_GOODS', 'WDT_REISSUE_GOODS', 'JST_REISSUE_GOODS', 'JY_REISSUE_GOODS', 'JKY_REISSUE_GOODS', 'WLN_REISSUE_GOODS'].includes(type) || false;
|
|
24480
25247
|
var refModal = useRef();
|
|
24481
25248
|
console.debug('表格数据', value);
|
|
24482
25249
|
var handleDelete = function handleDelete(record, index) {
|
|
@@ -24571,6 +25338,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
24571
25338
|
case 'JY_REISSUE_GOODS':
|
|
24572
25339
|
case 'JKY_GOODS':
|
|
24573
25340
|
case 'JKY_REISSUE_GOODS':
|
|
25341
|
+
case 'WLN_REISSUE_GOODS':
|
|
24574
25342
|
case 'SKX_GOODS':
|
|
24575
25343
|
case 'SKX_RETURN_GOODS':
|
|
24576
25344
|
{
|
|
@@ -24830,6 +25598,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
24830
25598
|
templateDetail: templateDetail
|
|
24831
25599
|
}));
|
|
24832
25600
|
};
|
|
25601
|
+
GoodItem$1.displayName = 'GoodItem';
|
|
24833
25602
|
|
|
24834
25603
|
var BsGoods = function BsGoods(props) {
|
|
24835
25604
|
var _withInfo$current3, _withInfo$current4;
|
|
@@ -25681,6 +26450,10 @@ var getOrderListSingleton = function getOrderListSingleton(orderNo) {
|
|
|
25681
26450
|
}
|
|
25682
26451
|
}).then(function (data) {
|
|
25683
26452
|
if (data === null || data === void 0 ? void 0 : data.success) {
|
|
26453
|
+
var _data$data;
|
|
26454
|
+
if ((_data$data = data.data) === null || _data$data === void 0 ? void 0 : _data$data.tradeNo) {
|
|
26455
|
+
data.data.tradeNo = orderNo;
|
|
26456
|
+
}
|
|
25684
26457
|
resolve(data.data);
|
|
25685
26458
|
// 延迟10秒清除,保证订单的时效性
|
|
25686
26459
|
setTimeout(function () {
|
|
@@ -27666,6 +28439,32 @@ var componentMap$2 = {
|
|
|
27666
28439
|
},
|
|
27667
28440
|
getOrderList: jkyUtils.getJkyOrderListSingleton
|
|
27668
28441
|
},
|
|
28442
|
+
WLN_GOODS: {
|
|
28443
|
+
type: 'jky',
|
|
28444
|
+
key: 'wlnGoods',
|
|
28445
|
+
name: '吉客云',
|
|
28446
|
+
orderNo: 'tradeNo',
|
|
28447
|
+
goodDetailOrderNo: 'tradeNo',
|
|
28448
|
+
eventNameMap: {
|
|
28449
|
+
// pubsub 事件
|
|
28450
|
+
type: 'wlnType',
|
|
28451
|
+
updateGoodsHandle: updateWlnGoodsHandle,
|
|
28452
|
+
selectListReturn: 'wlnSelectListReturn',
|
|
28453
|
+
selectList: 'wlnSelectList',
|
|
28454
|
+
reissueSelectList: 'wlnReissueSelectList',
|
|
28455
|
+
reissueSelectListReturn: 'wlnReissueSelectListReturn',
|
|
28456
|
+
reissueDeleteGood: 'wlnReissueDeleteGood',
|
|
28457
|
+
changeShopCode: 'wlnChangeShopCode',
|
|
28458
|
+
reissueType: 'wlnReissueType',
|
|
28459
|
+
returnType: 'wlnReturnType',
|
|
28460
|
+
returnSelectListReturn: 'wlnReturnSelectListReturn',
|
|
28461
|
+
returnSelectList: 'wlnReturnSelectList',
|
|
28462
|
+
deleteGood: 'wlnDeleteGood',
|
|
28463
|
+
returnDeleteGood: 'wlnReturnDeleteGood',
|
|
28464
|
+
exchangeDeleteGood: 'wlnExchangeDeleteGood'
|
|
28465
|
+
},
|
|
28466
|
+
getOrderList: wlnUtils.getOrderListSingleton
|
|
28467
|
+
},
|
|
27669
28468
|
WDT_AFTERSALE_GOODS: {
|
|
27670
28469
|
type: 'wdtAftersale',
|
|
27671
28470
|
key: 'wdtAftersaleGoods',
|
|
@@ -28850,6 +29649,22 @@ var typeMap$2 = {
|
|
|
28850
29649
|
goodDetailsKey: 'goodsDetail',
|
|
28851
29650
|
isShowSelectTradeGoods: true,
|
|
28852
29651
|
showModeBtn: true
|
|
29652
|
+
},
|
|
29653
|
+
WLN_REISSUE_GOODS: {
|
|
29654
|
+
compType: '补发',
|
|
29655
|
+
key: 'wlnReissueGoods',
|
|
29656
|
+
typeName: 'wlnReissueType',
|
|
29657
|
+
systemOrder: 'wlnSystemOrder',
|
|
29658
|
+
systemOrderNo: 'wlnSystemOrderNo',
|
|
29659
|
+
getOrderList: wlnUtils.getOrderListSingleton,
|
|
29660
|
+
updateGoodsHandle: updateWlnGoodsHandle,
|
|
29661
|
+
alwaysShowChooseErpGoodsBtn: true,
|
|
29662
|
+
orderTypeKey: 'orderType',
|
|
29663
|
+
oIdKey: 'billNo',
|
|
29664
|
+
outerOiIdKey: 'tpTid',
|
|
29665
|
+
goodDetailsKey: 'items',
|
|
29666
|
+
isShowSelectTradeGoods: true,
|
|
29667
|
+
showModeBtn: true
|
|
28853
29668
|
}
|
|
28854
29669
|
};
|
|
28855
29670
|
var PublicReissue = function PublicReissue(props) {
|
|
@@ -28909,7 +29724,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28909
29724
|
case 0:
|
|
28910
29725
|
(_typeMap$type5 = typeMap$2[type]) === null || _typeMap$type5 === void 0 ? void 0 : _typeMap$type5.getOrderList(orderNo).then(function (data) {
|
|
28911
29726
|
var _valueRef$current3, _typeMap$type6, _typeMap$type7, _typeMap$type11, _ref3, _typeMap$type12;
|
|
28912
|
-
var orders = data || [];
|
|
29727
|
+
var orders = (type === 'WLN_REISSUE_GOODS' ? data === null || data === void 0 ? void 0 : data.orders : data) || [];
|
|
28913
29728
|
var showOrderInfo = orders === null || orders === void 0 ? void 0 : orders.map(function (orderItem) {
|
|
28914
29729
|
return _defineProperty({}, typeMap$2[type].oIdKey, orderItem[typeMap$2[type].oIdKey]);
|
|
28915
29730
|
});
|
|
@@ -28958,6 +29773,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28958
29773
|
// 切换到非原单,清空列表
|
|
28959
29774
|
newValue[(_typeMap$type15 = typeMap$2[type]) === null || _typeMap$type15 === void 0 ? void 0 : _typeMap$type15.key] = [];
|
|
28960
29775
|
}
|
|
29776
|
+
console.log('**** changeTypeHandle', newValue);
|
|
28961
29777
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
28962
29778
|
};
|
|
28963
29779
|
var handleModeChange = function handleModeChange(mode) {
|
|
@@ -29082,6 +29898,10 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
29082
29898
|
orderRest = {
|
|
29083
29899
|
canEdit: true
|
|
29084
29900
|
};
|
|
29901
|
+
} else if (['WLN_REISSUE_GOODS'].includes(type)) {
|
|
29902
|
+
orderRest = {
|
|
29903
|
+
canEdit: true
|
|
29904
|
+
};
|
|
29085
29905
|
}
|
|
29086
29906
|
var orders = isAllOrders ? (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s6 = value[(_typeMap$type21 = typeMap$2[type]) === null || _typeMap$type21 === void 0 ? void 0 : _typeMap$type21.systemOrder]) === null || _value$typeMap$type$s6 === void 0 ? void 0 : _value$typeMap$type$s6.orders) || [] : order ? [order] : [];
|
|
29087
29907
|
var hasGoodDetails = orders === null || orders === void 0 ? void 0 : orders.some(function (order) {
|
|
@@ -29600,7 +30420,7 @@ var GoodsModal$5 = function GoodsModal(props) {
|
|
|
29600
30420
|
key: item.value
|
|
29601
30421
|
}, item.label);
|
|
29602
30422
|
})), /*#__PURE__*/React.createElement(Search$1, {
|
|
29603
|
-
placeholder: "\u5B9D\u8D1D\
|
|
30423
|
+
placeholder: "\u5B9D\u8D1D\u6807\u9898",
|
|
29604
30424
|
allowClear: true,
|
|
29605
30425
|
enterButton: "\u641C\u7D22",
|
|
29606
30426
|
style: {
|