@kmkf-fe-packages/basic-components 2.7.4 → 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 +1016 -191
- 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 +3 -1
- 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,
|
|
@@ -13154,6 +13161,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
13154
13161
|
_props$required = props.required,
|
|
13155
13162
|
required = _props$required === void 0 ? false : _props$required,
|
|
13156
13163
|
onChange = props.onChange,
|
|
13164
|
+
_onBlur = props.onBlur,
|
|
13157
13165
|
_props$disabled = props.disabled,
|
|
13158
13166
|
disabled = _props$disabled === void 0 ? false : _props$disabled,
|
|
13159
13167
|
_props$isEditing = props.isEditing,
|
|
@@ -13162,7 +13170,9 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
13162
13170
|
platform = _props$platform === void 0 ? '' : _props$platform,
|
|
13163
13171
|
onJumpPage = props.onJumpPage,
|
|
13164
13172
|
_props$showReason = props.showReason,
|
|
13165
|
-
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;
|
|
13166
13176
|
var _useState = useState(function () {
|
|
13167
13177
|
return (value === null || value === void 0 ? void 0 : value.interceptCompany) || undefined;
|
|
13168
13178
|
}),
|
|
@@ -13263,6 +13273,8 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
13263
13273
|
});
|
|
13264
13274
|
return isEditing && !!(company === null || company === void 0 ? void 0 : company.isInterface);
|
|
13265
13275
|
}, [isEditing, initCompany]);
|
|
13276
|
+
var canEditPreCreateBaseFields = preCreateAndNotModified;
|
|
13277
|
+
var baseFieldDisabled = disabled || isEdit && !canEditPreCreateBaseFields;
|
|
13266
13278
|
//退回地址列表
|
|
13267
13279
|
var logisticsAddressOptions = useMemo(function () {
|
|
13268
13280
|
return LogisticsAddressOptions === null || LogisticsAddressOptions === void 0 ? void 0 : LogisticsAddressOptions.filter(function (item) {
|
|
@@ -13367,7 +13379,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
13367
13379
|
}
|
|
13368
13380
|
}
|
|
13369
13381
|
console.log('newValue', newValue);
|
|
13370
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
13382
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(newValue, type);
|
|
13371
13383
|
};
|
|
13372
13384
|
//智能识别回调
|
|
13373
13385
|
var changeIdentify = function changeIdentify(val) {
|
|
@@ -13399,7 +13411,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
13399
13411
|
required: required,
|
|
13400
13412
|
key: 'logistics'
|
|
13401
13413
|
}, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(ApaasLogistics, {
|
|
13402
|
-
disabled:
|
|
13414
|
+
disabled: baseFieldDisabled,
|
|
13403
13415
|
placeholder: "\u7269\u6D41\u516C\u53F8",
|
|
13404
13416
|
style: {
|
|
13405
13417
|
width: '150px'
|
|
@@ -13413,12 +13425,16 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
13413
13425
|
return option.label.includes(input);
|
|
13414
13426
|
}
|
|
13415
13427
|
}), /*#__PURE__*/React.createElement(Input, {
|
|
13416
|
-
disabled:
|
|
13428
|
+
disabled: baseFieldDisabled,
|
|
13417
13429
|
placeholder: "\u7269\u6D41\u5355\u53F7",
|
|
13418
13430
|
onChange: function onChange(e) {
|
|
13419
13431
|
var _e$target$value;
|
|
13420
13432
|
return changeHandle((_e$target$value = e.target.value) === null || _e$target$value === void 0 ? void 0 : _e$target$value.trim(), 'interceptCode');
|
|
13421
13433
|
},
|
|
13434
|
+
onBlur: function onBlur(e) {
|
|
13435
|
+
var _e$target$value2;
|
|
13436
|
+
return _onBlur === null || _onBlur === void 0 ? void 0 : _onBlur((_e$target$value2 = e.target.value) === null || _e$target$value2 === void 0 ? void 0 : _e$target$value2.trim(), 'interceptCode');
|
|
13437
|
+
},
|
|
13422
13438
|
value: value === null || value === void 0 ? void 0 : value.interceptCode
|
|
13423
13439
|
}))), /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Item, {
|
|
13424
13440
|
label: /*#__PURE__*/React.createElement("span", null, "\u5BA2\u6237\u7F16\u7801\uFF08K\u7801\uFF09\uFF1A", platform === 'pc' ? /*#__PURE__*/React.createElement(Typography.Link, {
|
|
@@ -13434,7 +13450,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
13434
13450
|
key: 'interceptLogisticsUserKCode',
|
|
13435
13451
|
hidden: !showKcode
|
|
13436
13452
|
}, /*#__PURE__*/React.createElement(Select, {
|
|
13437
|
-
disabled:
|
|
13453
|
+
disabled: baseFieldDisabled,
|
|
13438
13454
|
placeholder: "\u9009\u62E9K\u7801",
|
|
13439
13455
|
showSearch: true,
|
|
13440
13456
|
style: {
|
|
@@ -13468,7 +13484,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
13468
13484
|
required: required,
|
|
13469
13485
|
key: 'interceptType'
|
|
13470
13486
|
}, /*#__PURE__*/React.createElement(Select, {
|
|
13471
|
-
disabled:
|
|
13487
|
+
disabled: baseFieldDisabled,
|
|
13472
13488
|
style: {
|
|
13473
13489
|
width: '200px'
|
|
13474
13490
|
},
|
|
@@ -13492,8 +13508,8 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
13492
13508
|
disabled: disabled || isEdit,
|
|
13493
13509
|
placeholder: senderMobileLabel,
|
|
13494
13510
|
onChange: function onChange(e) {
|
|
13495
|
-
var _e$target$
|
|
13496
|
-
return changeHandle((_e$target$
|
|
13511
|
+
var _e$target$value3;
|
|
13512
|
+
return changeHandle((_e$target$value3 = e.target.value) === null || _e$target$value3 === void 0 ? void 0 : _e$target$value3.trim(), 'interceptSenderMobile');
|
|
13497
13513
|
}
|
|
13498
13514
|
})), /*#__PURE__*/React.createElement(Item, {
|
|
13499
13515
|
label: '退回地址',
|
|
@@ -13552,8 +13568,8 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
13552
13568
|
},
|
|
13553
13569
|
placeholder: "\u5176\u4ED6",
|
|
13554
13570
|
onChange: function onChange(e) {
|
|
13555
|
-
var _e$target$
|
|
13556
|
-
return changeHandle((_e$target$
|
|
13571
|
+
var _e$target$value4;
|
|
13572
|
+
return changeHandle((_e$target$value4 = e.target.value) === null || _e$target$value4 === void 0 ? void 0 : _e$target$value4.trim(), 'interceptLogisticsStatusOther');
|
|
13557
13573
|
}
|
|
13558
13574
|
})), /*#__PURE__*/React.createElement(Item, {
|
|
13559
13575
|
label: '拦截状态',
|
|
@@ -13607,8 +13623,8 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
13607
13623
|
disabled: true,
|
|
13608
13624
|
placeholder: "\u63A5\u53E3\u72B6\u6001\u539F\u56E0",
|
|
13609
13625
|
onChange: function onChange(e) {
|
|
13610
|
-
var _e$target$
|
|
13611
|
-
return changeHandle((_e$target$
|
|
13626
|
+
var _e$target$value5;
|
|
13627
|
+
return changeHandle((_e$target$value5 = e.target.value) === null || _e$target$value5 === void 0 ? void 0 : _e$target$value5.trim(), 'interceptLogisticsApiStatusReason');
|
|
13612
13628
|
}
|
|
13613
13629
|
})));
|
|
13614
13630
|
};
|
|
@@ -14110,9 +14126,9 @@ var jstGoods = function jstGoods(props) {
|
|
|
14110
14126
|
changeIndex = _useState2[0],
|
|
14111
14127
|
setChangeIndex = _useState2[1]; //选中的包裹
|
|
14112
14128
|
var sendOptions = SendDataCenter.getInstance(platformType).getSendData();
|
|
14113
|
-
var isSelectName = ['wdt', 'bsE3', 'km', 'gy', 'jst', 'jy', 'jky'].includes(platformType);
|
|
14129
|
+
var isSelectName = ['wdt', 'bsE3', 'km', 'gy', 'jst', 'jy', 'jky', 'wln'].includes(platformType);
|
|
14114
14130
|
var expressDateInstance = ExpressData.getInstance(platformType);
|
|
14115
|
-
var isSendGoodSavedId = isSelectName && !['jst'].includes(platformType);
|
|
14131
|
+
var isSendGoodSavedId = isSelectName && !['jst', 'wln'].includes(platformType);
|
|
14116
14132
|
useEffect(function () {
|
|
14117
14133
|
//没有值塞个默认值
|
|
14118
14134
|
if (!(value === null || value === void 0 ? void 0 : value.length) && type !== 1) {
|
|
@@ -15713,6 +15729,122 @@ var jkyColumns = [{
|
|
|
15713
15729
|
}
|
|
15714
15730
|
}];
|
|
15715
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
|
+
|
|
15716
15848
|
var getColumnsMap = function getColumnsMap() {
|
|
15717
15849
|
return cloneDeep({
|
|
15718
15850
|
gy: gyColumns,
|
|
@@ -15721,7 +15853,8 @@ var getColumnsMap = function getColumnsMap() {
|
|
|
15721
15853
|
bse3: bse3Columns,
|
|
15722
15854
|
km: kmColumns,
|
|
15723
15855
|
jy: jyColumns,
|
|
15724
|
-
jky: jkyColumns
|
|
15856
|
+
jky: jkyColumns,
|
|
15857
|
+
wln: wlnColumns
|
|
15725
15858
|
});
|
|
15726
15859
|
};
|
|
15727
15860
|
var getColumnsBaseInfo = function getColumnsBaseInfo() {
|
|
@@ -16153,30 +16286,33 @@ var GoodList = function GoodList(props, ref) {
|
|
|
16153
16286
|
selectedRowKeys: selectIds,
|
|
16154
16287
|
fixed: true,
|
|
16155
16288
|
onSelect: function onSelect(record, selected) {
|
|
16289
|
+
var uniqueKey = "".concat(record.goodNo, "-").concat(record.specNo);
|
|
16156
16290
|
if (selected) {
|
|
16157
|
-
setSelectIds([].concat(_toConsumableArray(selectIds), [
|
|
16291
|
+
setSelectIds([].concat(_toConsumableArray(selectIds), [uniqueKey]));
|
|
16158
16292
|
setSelect([].concat(_toConsumableArray(selectList), [record]));
|
|
16159
16293
|
} else {
|
|
16160
16294
|
setSelectIds(selectIds.filter(function (t) {
|
|
16161
|
-
return t !==
|
|
16295
|
+
return t !== uniqueKey;
|
|
16162
16296
|
}));
|
|
16163
16297
|
setSelect(selectList.filter(function (t) {
|
|
16164
|
-
return t.specNo !==
|
|
16298
|
+
return "".concat(t.goodNo, "-").concat(t.specNo) !== uniqueKey;
|
|
16165
16299
|
}));
|
|
16166
16300
|
}
|
|
16167
16301
|
},
|
|
16168
16302
|
onSelectAll: function onSelectAll(selected, selectedRows, changeRows) {
|
|
16169
16303
|
if (selected) {
|
|
16170
|
-
|
|
16171
|
-
return t.specNo;
|
|
16172
|
-
})
|
|
16304
|
+
var changeKeys = changeRows.map(function (t) {
|
|
16305
|
+
return "".concat(t.goodNo, "-").concat(t.specNo);
|
|
16306
|
+
});
|
|
16307
|
+
setSelectIds([].concat(_toConsumableArray(selectIds), _toConsumableArray(changeKeys)));
|
|
16173
16308
|
setSelect([].concat(_toConsumableArray(selectList), _toConsumableArray(changeRows)));
|
|
16174
16309
|
} else {
|
|
16175
|
-
|
|
16176
|
-
return t.specNo;
|
|
16177
|
-
})
|
|
16310
|
+
var _changeKeys = changeRows.map(function (t) {
|
|
16311
|
+
return "".concat(t.goodNo, "-").concat(t.specNo);
|
|
16312
|
+
});
|
|
16313
|
+
setSelectIds(difference(selectIds, _changeKeys));
|
|
16178
16314
|
var list = differenceWith(selectList, changeRows, function (arrVal, othVal) {
|
|
16179
|
-
return arrVal.specNo !== othVal.specNo;
|
|
16315
|
+
return "".concat(arrVal.goodNo, "-").concat(arrVal.specNo) !== "".concat(othVal.goodNo, "-").concat(othVal.specNo);
|
|
16180
16316
|
});
|
|
16181
16317
|
setSelect(list);
|
|
16182
16318
|
}
|
|
@@ -16184,11 +16320,12 @@ var GoodList = function GoodList(props, ref) {
|
|
|
16184
16320
|
};
|
|
16185
16321
|
var showTable = function showTable() {
|
|
16186
16322
|
var handleDelete = function handleDelete(record) {
|
|
16323
|
+
var uniqueKey = "".concat(record.goodNo, "-").concat(record.specNo);
|
|
16187
16324
|
setSelectIds(selectIds.filter(function (t) {
|
|
16188
|
-
return t !==
|
|
16325
|
+
return t !== uniqueKey;
|
|
16189
16326
|
}));
|
|
16190
16327
|
setSelect(selectList.filter(function (t) {
|
|
16191
|
-
return t.specNo !==
|
|
16328
|
+
return "".concat(t.goodNo, "-").concat(t.specNo) !== uniqueKey;
|
|
16192
16329
|
}));
|
|
16193
16330
|
};
|
|
16194
16331
|
var showColumns = [{
|
|
@@ -16212,7 +16349,9 @@ var GoodList = function GoodList(props, ref) {
|
|
|
16212
16349
|
}
|
|
16213
16350
|
}, /*#__PURE__*/React.createElement(Table, {
|
|
16214
16351
|
columns: showColumns,
|
|
16215
|
-
rowKey:
|
|
16352
|
+
rowKey: function rowKey(record) {
|
|
16353
|
+
return "".concat(record.goodNo, "-").concat(record.specNo);
|
|
16354
|
+
},
|
|
16216
16355
|
dataSource: selectList,
|
|
16217
16356
|
scroll: {
|
|
16218
16357
|
x: '100%',
|
|
@@ -16242,7 +16381,9 @@ var GoodList = function GoodList(props, ref) {
|
|
|
16242
16381
|
}, /*#__PURE__*/React.createElement(Table, _objectSpread2(_objectSpread2({
|
|
16243
16382
|
className: "GoodModalColumns",
|
|
16244
16383
|
rowSelection: rowSelection,
|
|
16245
|
-
rowKey:
|
|
16384
|
+
rowKey: function rowKey(record) {
|
|
16385
|
+
return "".concat(record.goodNo, "-").concat(record.specNo);
|
|
16386
|
+
},
|
|
16246
16387
|
columns: columns,
|
|
16247
16388
|
scroll: {
|
|
16248
16389
|
x: '100%',
|
|
@@ -17792,6 +17933,27 @@ var componentMap$1 = {
|
|
|
17792
17933
|
onChange: props.handleChange
|
|
17793
17934
|
}));
|
|
17794
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
|
+
},
|
|
17795
17957
|
Date: function Date(props) {
|
|
17796
17958
|
return /*#__PURE__*/React.createElement(RangePicker, _objectSpread2(_objectSpread2({
|
|
17797
17959
|
placeholder: ["".concat(props.name, "\u5F00\u59CB\u65F6\u95F4"), "".concat(props.name, "\u7ED3\u675F\u65F6\u95F4")],
|
|
@@ -18734,7 +18896,7 @@ var getTableData$5 = function getTableData(_ref, formData) {
|
|
|
18734
18896
|
data: {
|
|
18735
18897
|
pageSize: pageSize,
|
|
18736
18898
|
pageNo: current,
|
|
18737
|
-
platform: '
|
|
18899
|
+
platform: 'WLN_ERP',
|
|
18738
18900
|
conditionList: conditionList
|
|
18739
18901
|
}
|
|
18740
18902
|
}).then(function (res) {
|
|
@@ -18753,13 +18915,11 @@ var getTableData$5 = function getTableData(_ref, formData) {
|
|
|
18753
18915
|
});
|
|
18754
18916
|
};
|
|
18755
18917
|
var searchFormData$4 = [{
|
|
18756
|
-
label: '
|
|
18757
|
-
name: '
|
|
18758
|
-
dataIndex: 'specName'
|
|
18918
|
+
label: '规格值',
|
|
18919
|
+
name: 'propertiesValue'
|
|
18759
18920
|
}, {
|
|
18760
|
-
label: '
|
|
18761
|
-
name: '
|
|
18762
|
-
dataIndex: 'specNo',
|
|
18921
|
+
label: 'SKU编码',
|
|
18922
|
+
name: 'specNo',
|
|
18763
18923
|
type: 'optionalInput'
|
|
18764
18924
|
}, {
|
|
18765
18925
|
label: '商品名称',
|
|
@@ -18768,6 +18928,23 @@ var searchFormData$4 = [{
|
|
|
18768
18928
|
label: '商品编码',
|
|
18769
18929
|
name: 'goodNo',
|
|
18770
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
|
+
}
|
|
18771
18948
|
}];
|
|
18772
18949
|
var GoodList$5 = function GoodList(props, ref) {
|
|
18773
18950
|
var _useState = useState([]),
|
|
@@ -18778,7 +18955,7 @@ var GoodList$5 = function GoodList(props, ref) {
|
|
|
18778
18955
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
18779
18956
|
selectIds = _useState4[0],
|
|
18780
18957
|
setSelectIds = _useState4[1];
|
|
18781
|
-
var _useGetColumns = useGetColumns('
|
|
18958
|
+
var _useGetColumns = useGetColumns('wln'),
|
|
18782
18959
|
_useGetColumns2 = _slicedToArray(_useGetColumns, 3),
|
|
18783
18960
|
columns = _useGetColumns2[0],
|
|
18784
18961
|
showColumnsDataIndexList = _useGetColumns2[1],
|
|
@@ -18837,8 +19014,8 @@ var GoodList$5 = function GoodList(props, ref) {
|
|
|
18837
19014
|
getCheckboxProps: function getCheckboxProps(record) {
|
|
18838
19015
|
var options = {
|
|
18839
19016
|
disabled: (props.selectedRows || []).map(function (row) {
|
|
18840
|
-
return row.
|
|
18841
|
-
}).includes(record.
|
|
19017
|
+
return row.specId || record.id;
|
|
19018
|
+
}).includes(record.specId || record.id),
|
|
18842
19019
|
name: record.id
|
|
18843
19020
|
};
|
|
18844
19021
|
return options;
|
|
@@ -18922,9 +19099,9 @@ var GoodList$5 = function GoodList(props, ref) {
|
|
|
18922
19099
|
type: "text"
|
|
18923
19100
|
}, "\u5DF2\u9009".concat(selectList.length > 99 ? '99+' : selectList.length, "\u4E2A\u5546\u54C1"), /*#__PURE__*/React.createElement(CaretUpOutlined, null))));
|
|
18924
19101
|
};
|
|
18925
|
-
var
|
|
19102
|
+
var WlnGoodsList = /*#__PURE__*/forwardRef(GoodList$5);
|
|
18926
19103
|
|
|
18927
|
-
var
|
|
19104
|
+
var WlnGoodsModal = function WlnGoodsModal(props, ref) {
|
|
18928
19105
|
useImperativeHandle(ref, function () {
|
|
18929
19106
|
return {
|
|
18930
19107
|
open: function open(shopCode) {
|
|
@@ -18944,13 +19121,13 @@ var JyGoodsModal = function JyGoodsModal(props, ref) {
|
|
|
18944
19121
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
18945
19122
|
selectedRows = _useState4[0],
|
|
18946
19123
|
setSelectedRows = _useState4[1];
|
|
18947
|
-
var
|
|
19124
|
+
var jkyGoodsListRef = useRef(null);
|
|
18948
19125
|
var _onCancel = function onCancel() {
|
|
18949
19126
|
setVisible(false);
|
|
18950
19127
|
};
|
|
18951
19128
|
var onOk = function onOk() {
|
|
18952
|
-
var
|
|
18953
|
-
var selectedList = ((
|
|
19129
|
+
var _jkyGoodsListRef$curr;
|
|
19130
|
+
var selectedList = ((_jkyGoodsListRef$curr = jkyGoodsListRef.current) === null || _jkyGoodsListRef$curr === void 0 ? void 0 : _jkyGoodsListRef$curr.getSelectGoodList()) || [];
|
|
18954
19131
|
onSubmit(selectedList);
|
|
18955
19132
|
_onCancel();
|
|
18956
19133
|
};
|
|
@@ -18965,12 +19142,12 @@ var JyGoodsModal = function JyGoodsModal(props, ref) {
|
|
|
18965
19142
|
},
|
|
18966
19143
|
onOk: onOk,
|
|
18967
19144
|
wrapClassName: "goodModal"
|
|
18968
|
-
}, /*#__PURE__*/React.createElement(
|
|
18969
|
-
ref:
|
|
19145
|
+
}, /*#__PURE__*/React.createElement(WlnGoodsList, {
|
|
19146
|
+
ref: jkyGoodsListRef,
|
|
18970
19147
|
selectedRows: selectedRows
|
|
18971
19148
|
})));
|
|
18972
19149
|
};
|
|
18973
|
-
var
|
|
19150
|
+
var WlnGoodsModal$1 = /*#__PURE__*/forwardRef(WlnGoodsModal);
|
|
18974
19151
|
|
|
18975
19152
|
var getTableData$6 = function getTableData(_ref, formData) {
|
|
18976
19153
|
var current = _ref.current,
|
|
@@ -18981,7 +19158,7 @@ var getTableData$6 = function getTableData(_ref, formData) {
|
|
|
18981
19158
|
data: {
|
|
18982
19159
|
pageSize: pageSize,
|
|
18983
19160
|
pageNo: current,
|
|
18984
|
-
platform: '
|
|
19161
|
+
platform: 'JY_ERP',
|
|
18985
19162
|
conditionList: conditionList
|
|
18986
19163
|
}
|
|
18987
19164
|
}).then(function (res) {
|
|
@@ -19009,10 +19186,10 @@ var searchFormData$5 = [{
|
|
|
19009
19186
|
dataIndex: 'specNo',
|
|
19010
19187
|
type: 'optionalInput'
|
|
19011
19188
|
}, {
|
|
19012
|
-
label: '
|
|
19189
|
+
label: '商品名称',
|
|
19013
19190
|
name: 'goodName'
|
|
19014
19191
|
}, {
|
|
19015
|
-
label: '
|
|
19192
|
+
label: '商品编码',
|
|
19016
19193
|
name: 'goodNo',
|
|
19017
19194
|
type: 'optionalInput'
|
|
19018
19195
|
}];
|
|
@@ -19025,7 +19202,7 @@ var GoodList$6 = function GoodList(props, ref) {
|
|
|
19025
19202
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
19026
19203
|
selectIds = _useState4[0],
|
|
19027
19204
|
setSelectIds = _useState4[1];
|
|
19028
|
-
var _useGetColumns = useGetColumns('
|
|
19205
|
+
var _useGetColumns = useGetColumns('jy'),
|
|
19029
19206
|
_useGetColumns2 = _slicedToArray(_useGetColumns, 3),
|
|
19030
19207
|
columns = _useGetColumns2[0],
|
|
19031
19208
|
showColumnsDataIndexList = _useGetColumns2[1],
|
|
@@ -19084,8 +19261,8 @@ var GoodList$6 = function GoodList(props, ref) {
|
|
|
19084
19261
|
getCheckboxProps: function getCheckboxProps(record) {
|
|
19085
19262
|
var options = {
|
|
19086
19263
|
disabled: (props.selectedRows || []).map(function (row) {
|
|
19087
|
-
return row.
|
|
19088
|
-
}).includes(record.
|
|
19264
|
+
return row.id || row.specId;
|
|
19265
|
+
}).includes(record.id || record.specId),
|
|
19089
19266
|
name: record.id
|
|
19090
19267
|
};
|
|
19091
19268
|
return options;
|
|
@@ -19169,9 +19346,9 @@ var GoodList$6 = function GoodList(props, ref) {
|
|
|
19169
19346
|
type: "text"
|
|
19170
19347
|
}, "\u5DF2\u9009".concat(selectList.length > 99 ? '99+' : selectList.length, "\u4E2A\u5546\u54C1"), /*#__PURE__*/React.createElement(CaretUpOutlined, null))));
|
|
19171
19348
|
};
|
|
19172
|
-
var
|
|
19349
|
+
var JyGoodsList = /*#__PURE__*/forwardRef(GoodList$6);
|
|
19173
19350
|
|
|
19174
|
-
var
|
|
19351
|
+
var JyGoodsModal = function JyGoodsModal(props, ref) {
|
|
19175
19352
|
useImperativeHandle(ref, function () {
|
|
19176
19353
|
return {
|
|
19177
19354
|
open: function open(shopCode) {
|
|
@@ -19191,13 +19368,13 @@ var JkyGoodsModal = function JkyGoodsModal(props, ref) {
|
|
|
19191
19368
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
19192
19369
|
selectedRows = _useState4[0],
|
|
19193
19370
|
setSelectedRows = _useState4[1];
|
|
19194
|
-
var
|
|
19371
|
+
var jyGoodsListRef = useRef(null);
|
|
19195
19372
|
var _onCancel = function onCancel() {
|
|
19196
19373
|
setVisible(false);
|
|
19197
19374
|
};
|
|
19198
19375
|
var onOk = function onOk() {
|
|
19199
|
-
var
|
|
19200
|
-
var selectedList = ((
|
|
19376
|
+
var _jyGoodsListRef$curre;
|
|
19377
|
+
var selectedList = ((_jyGoodsListRef$curre = jyGoodsListRef.current) === null || _jyGoodsListRef$curre === void 0 ? void 0 : _jyGoodsListRef$curre.getSelectGoodList()) || [];
|
|
19201
19378
|
onSubmit(selectedList);
|
|
19202
19379
|
_onCancel();
|
|
19203
19380
|
};
|
|
@@ -19212,38 +19389,285 @@ var JkyGoodsModal = function JkyGoodsModal(props, ref) {
|
|
|
19212
19389
|
},
|
|
19213
19390
|
onOk: onOk,
|
|
19214
19391
|
wrapClassName: "goodModal"
|
|
19215
|
-
}, /*#__PURE__*/React.createElement(
|
|
19216
|
-
ref:
|
|
19392
|
+
}, /*#__PURE__*/React.createElement(JyGoodsList, {
|
|
19393
|
+
ref: jyGoodsListRef,
|
|
19217
19394
|
selectedRows: selectedRows
|
|
19218
19395
|
})));
|
|
19219
19396
|
};
|
|
19220
|
-
var
|
|
19397
|
+
var JyGoodsModal$1 = /*#__PURE__*/forwardRef(JyGoodsModal);
|
|
19221
19398
|
|
|
19222
|
-
var
|
|
19223
|
-
var
|
|
19224
|
-
|
|
19225
|
-
|
|
19226
|
-
return {
|
|
19227
|
-
|
|
19228
|
-
|
|
19229
|
-
|
|
19230
|
-
|
|
19231
|
-
|
|
19232
|
-
|
|
19233
|
-
}
|
|
19234
|
-
|
|
19235
|
-
|
|
19236
|
-
|
|
19237
|
-
|
|
19238
|
-
|
|
19239
|
-
|
|
19240
|
-
|
|
19241
|
-
|
|
19242
|
-
|
|
19243
|
-
|
|
19244
|
-
|
|
19245
|
-
|
|
19246
|
-
|
|
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,
|
|
19247
19671
|
render: renderTextEllipsis
|
|
19248
19672
|
}, {
|
|
19249
19673
|
dataIndex: 'picPath',
|
|
@@ -20426,120 +20850,348 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
20426
20850
|
});
|
|
20427
20851
|
}
|
|
20428
20852
|
}, {
|
|
20429
|
-
dataIndex: 'apiSpecName',
|
|
20430
|
-
title: "\u5E73\u53F0\u89C4\u683C\u540D\u79F0",
|
|
20431
|
-
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",
|
|
20432
21058
|
align: 'center',
|
|
20433
21059
|
ellipsis: true,
|
|
20434
|
-
|
|
20435
|
-
|
|
20436
|
-
val: text
|
|
20437
|
-
});
|
|
20438
|
-
}
|
|
21060
|
+
width: 100,
|
|
21061
|
+
render: renderTextEllipsis
|
|
20439
21062
|
}, {
|
|
20440
|
-
dataIndex: '
|
|
20441
|
-
title: "\
|
|
20442
|
-
width: 250,
|
|
21063
|
+
dataIndex: 'number',
|
|
21064
|
+
title: "".concat(text, "\u6570\u91CF"),
|
|
20443
21065
|
align: 'center',
|
|
20444
21066
|
ellipsis: true,
|
|
20445
|
-
|
|
20446
|
-
|
|
20447
|
-
|
|
20448
|
-
|
|
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);
|
|
20449
21080
|
}
|
|
20450
21081
|
}, {
|
|
20451
|
-
dataIndex: '
|
|
20452
|
-
title: "\
|
|
20453
|
-
width: 150,
|
|
21082
|
+
dataIndex: 'share',
|
|
21083
|
+
title: "\u5E94\u6536\u6B3E",
|
|
20454
21084
|
align: 'center',
|
|
20455
21085
|
ellipsis: true,
|
|
21086
|
+
width: 70,
|
|
20456
21087
|
render: renderTextEllipsis
|
|
20457
21088
|
}, {
|
|
20458
|
-
dataIndex: '
|
|
20459
|
-
title: "\
|
|
20460
|
-
width: 150,
|
|
21089
|
+
dataIndex: 'discountedUnitPrice',
|
|
21090
|
+
title: "\u6298\u540E\u5355\u4EF7",
|
|
20461
21091
|
align: 'center',
|
|
20462
21092
|
ellipsis: true,
|
|
21093
|
+
width: 250,
|
|
20463
21094
|
render: renderTextEllipsis
|
|
20464
21095
|
}, {
|
|
20465
|
-
dataIndex: '
|
|
20466
|
-
title: "\
|
|
20467
|
-
width: 150,
|
|
21096
|
+
dataIndex: 'originPrice',
|
|
21097
|
+
title: "\u539F\u4EF7",
|
|
20468
21098
|
align: 'center',
|
|
20469
21099
|
ellipsis: true,
|
|
21100
|
+
width: 250,
|
|
20470
21101
|
render: renderTextEllipsis
|
|
20471
21102
|
}, {
|
|
20472
|
-
dataIndex: '
|
|
20473
|
-
title: "\
|
|
20474
|
-
width: 150,
|
|
21103
|
+
dataIndex: 'price',
|
|
21104
|
+
title: "\u5355\u4EF7",
|
|
20475
21105
|
align: 'center',
|
|
20476
21106
|
ellipsis: true,
|
|
21107
|
+
width: 250,
|
|
20477
21108
|
render: renderTextEllipsis
|
|
20478
21109
|
}, {
|
|
20479
|
-
dataIndex: '
|
|
20480
|
-
title: "\
|
|
20481
|
-
width: 150,
|
|
21110
|
+
dataIndex: 'receivable',
|
|
21111
|
+
title: "\u9500\u552E\u91D1\u989D",
|
|
20482
21112
|
align: 'center',
|
|
20483
21113
|
ellipsis: true,
|
|
21114
|
+
width: 250,
|
|
20484
21115
|
render: renderTextEllipsis
|
|
20485
21116
|
}, {
|
|
20486
|
-
dataIndex: '
|
|
20487
|
-
title: "\
|
|
20488
|
-
width: 150,
|
|
21117
|
+
dataIndex: 'type',
|
|
21118
|
+
title: "\u8D60\u54C1\u7C7B\u578B",
|
|
20489
21119
|
align: 'center',
|
|
20490
21120
|
ellipsis: true,
|
|
21121
|
+
width: 100,
|
|
20491
21122
|
render: renderTextEllipsis
|
|
20492
21123
|
}, {
|
|
20493
|
-
dataIndex: '
|
|
20494
|
-
title: "\
|
|
20495
|
-
width: 150,
|
|
21124
|
+
dataIndex: 'isPackage',
|
|
21125
|
+
title: "\u662F\u5426\u7EC4\u5408\u5546\u54C1",
|
|
20496
21126
|
align: 'center',
|
|
20497
21127
|
ellipsis: true,
|
|
20498
|
-
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
|
|
20499
21144
|
}, {
|
|
20500
|
-
dataIndex: '
|
|
20501
|
-
title: "\
|
|
20502
|
-
width: 150,
|
|
21145
|
+
dataIndex: 'hasRefund',
|
|
21146
|
+
title: "\u662F\u5426\u9000\u6B3E",
|
|
20503
21147
|
align: 'center',
|
|
20504
21148
|
ellipsis: true,
|
|
20505
|
-
|
|
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
|
+
}
|
|
20506
21165
|
}, {
|
|
20507
|
-
dataIndex: '
|
|
20508
|
-
title: "\
|
|
20509
|
-
width: 150,
|
|
21166
|
+
dataIndex: 'unit',
|
|
21167
|
+
title: "\u5355\u4F4D",
|
|
20510
21168
|
align: 'center',
|
|
20511
21169
|
ellipsis: true,
|
|
21170
|
+
width: 100,
|
|
20512
21171
|
render: renderTextEllipsis
|
|
20513
21172
|
}, {
|
|
20514
|
-
dataIndex: '
|
|
20515
|
-
title: "\
|
|
20516
|
-
ellipsis: true,
|
|
20517
|
-
width: 150,
|
|
21173
|
+
dataIndex: 'pkgGoodsName',
|
|
21174
|
+
title: "\u539F\u7EC4\u5408\u5546\u54C1\u540D\u79F0",
|
|
20518
21175
|
align: 'center',
|
|
21176
|
+
ellipsis: true,
|
|
21177
|
+
width: 200,
|
|
20519
21178
|
render: renderTextEllipsis
|
|
20520
21179
|
}, {
|
|
20521
|
-
dataIndex: '
|
|
20522
|
-
title: "\
|
|
21180
|
+
dataIndex: 'pkgGoodsCode',
|
|
21181
|
+
title: "\u539F\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
|
|
21182
|
+
align: 'center',
|
|
20523
21183
|
ellipsis: true,
|
|
20524
|
-
width:
|
|
21184
|
+
width: 200,
|
|
21185
|
+
render: renderTextEllipsis
|
|
21186
|
+
}, {
|
|
21187
|
+
dataIndex: 'pkgGoodsId',
|
|
21188
|
+
title: "\u539F\u7EC4\u5408\u5546\u54C1id",
|
|
20525
21189
|
align: 'center',
|
|
21190
|
+
ellipsis: true,
|
|
21191
|
+
width: 200,
|
|
20526
21192
|
render: renderTextEllipsis
|
|
20527
|
-
}]
|
|
20528
|
-
|
|
20529
|
-
};
|
|
20530
|
-
|
|
20531
|
-
var getYesOrNo$3 = function getYesOrNo(val) {
|
|
20532
|
-
if (isNull(val)) return null;
|
|
20533
|
-
return val ? '是' : '否';
|
|
20534
|
-
};
|
|
20535
|
-
var getColumns$3 = function getColumns(_ref) {
|
|
20536
|
-
var _ref$text = _ref.text,
|
|
20537
|
-
text = _ref$text === void 0 ? '' : _ref$text,
|
|
20538
|
-
disabled = _ref.disabled,
|
|
20539
|
-
updateHandle = _ref.updateHandle;
|
|
20540
|
-
return {
|
|
20541
|
-
//万里牛商品信息
|
|
20542
|
-
WLN_GOODS: [{
|
|
21193
|
+
}],
|
|
21194
|
+
WLN_REISSUE_GOODS: [{
|
|
20543
21195
|
dataIndex: 'wlnItemName',
|
|
20544
21196
|
title: "\u5546\u54C1\u540D\u79F0",
|
|
20545
21197
|
align: 'center',
|
|
@@ -20553,6 +21205,13 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
20553
21205
|
ellipsis: true,
|
|
20554
21206
|
width: 250,
|
|
20555
21207
|
render: renderTextEllipsis
|
|
21208
|
+
}, {
|
|
21209
|
+
dataIndex: 'wlnSkuName',
|
|
21210
|
+
title: "sku\u540D\u79F0",
|
|
21211
|
+
align: 'center',
|
|
21212
|
+
ellipsis: true,
|
|
21213
|
+
width: 250,
|
|
21214
|
+
render: renderTextEllipsis
|
|
20556
21215
|
}, {
|
|
20557
21216
|
dataIndex: 'skuCode',
|
|
20558
21217
|
title: "sku\u7F16\u7801",
|
|
@@ -20622,11 +21281,11 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
20622
21281
|
width: 150,
|
|
20623
21282
|
render: renderTextEllipsis
|
|
20624
21283
|
}, {
|
|
20625
|
-
dataIndex: '
|
|
20626
|
-
title: "\
|
|
21284
|
+
dataIndex: 'price',
|
|
21285
|
+
title: "\u5355\u4EF7",
|
|
20627
21286
|
align: 'center',
|
|
20628
21287
|
ellipsis: true,
|
|
20629
|
-
width:
|
|
21288
|
+
width: 250,
|
|
20630
21289
|
render: renderTextEllipsis
|
|
20631
21290
|
}, {
|
|
20632
21291
|
dataIndex: 'number',
|
|
@@ -20648,12 +21307,29 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
20648
21307
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
20649
21308
|
}
|
|
20650
21309
|
}, {
|
|
20651
|
-
dataIndex: '
|
|
20652
|
-
title: "\
|
|
20653
|
-
|
|
20654
|
-
|
|
20655
|
-
|
|
20656
|
-
|
|
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
|
+
}
|
|
20657
21333
|
}, {
|
|
20658
21334
|
dataIndex: 'type',
|
|
20659
21335
|
title: "\u8D60\u54C1\u7C7B\u578B",
|
|
@@ -20679,9 +21355,37 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
20679
21355
|
label: '否',
|
|
20680
21356
|
value: false
|
|
20681
21357
|
}]
|
|
20682
|
-
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$
|
|
21358
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
|
|
20683
21359
|
},
|
|
20684
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
|
|
20685
21389
|
}]
|
|
20686
21390
|
};
|
|
20687
21391
|
};
|
|
@@ -20691,7 +21395,7 @@ var isNumberOrNumberString$1 = function isNumberOrNumberString(value) {
|
|
|
20691
21395
|
if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
|
|
20692
21396
|
return false;
|
|
20693
21397
|
};
|
|
20694
|
-
var getYesOrNo$
|
|
21398
|
+
var getYesOrNo$5 = function getYesOrNo(val) {
|
|
20695
21399
|
if (isNull(val)) return null;
|
|
20696
21400
|
return val ? '是' : '否';
|
|
20697
21401
|
};
|
|
@@ -20806,7 +21510,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
20806
21510
|
title: "\u662F\u5426\u53D6\u6D88",
|
|
20807
21511
|
width: 150,
|
|
20808
21512
|
render: function render(val) {
|
|
20809
|
-
return /*#__PURE__*/React.createElement("span", null, getYesOrNo$
|
|
21513
|
+
return /*#__PURE__*/React.createElement("span", null, getYesOrNo$5(val));
|
|
20810
21514
|
}
|
|
20811
21515
|
}, {
|
|
20812
21516
|
dataIndex: 'isGift',
|
|
@@ -20825,7 +21529,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
20825
21529
|
label: '否',
|
|
20826
21530
|
value: 0
|
|
20827
21531
|
}]
|
|
20828
|
-
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$
|
|
21532
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$5(val));
|
|
20829
21533
|
}
|
|
20830
21534
|
}, {
|
|
20831
21535
|
dataIndex: 'skuNote',
|
|
@@ -20951,7 +21655,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
20951
21655
|
label: '否',
|
|
20952
21656
|
value: 0
|
|
20953
21657
|
}]
|
|
20954
|
-
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$
|
|
21658
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$5(val));
|
|
20955
21659
|
}
|
|
20956
21660
|
}].map(function (item) {
|
|
20957
21661
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
@@ -21080,7 +21784,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
21080
21784
|
label: '否',
|
|
21081
21785
|
value: 0
|
|
21082
21786
|
}]
|
|
21083
|
-
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$
|
|
21787
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$5(val));
|
|
21084
21788
|
}
|
|
21085
21789
|
}].map(function (item) {
|
|
21086
21790
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
@@ -23800,6 +24504,9 @@ var isErpType = {
|
|
|
23800
24504
|
},
|
|
23801
24505
|
isJky: function isJky(type) {
|
|
23802
24506
|
return ['JKY_GOODS', 'JKY_REISSUE_GOODS'].includes(type);
|
|
24507
|
+
},
|
|
24508
|
+
isWln: function isWln(type) {
|
|
24509
|
+
return ['WLN_GOODS', 'WLN_REISSUE_GOODS'].includes(type);
|
|
23803
24510
|
}
|
|
23804
24511
|
};
|
|
23805
24512
|
var processGoods$1 = function processGoods(_ref) {
|
|
@@ -23859,6 +24566,13 @@ var processGoods$1 = function processGoods(_ref) {
|
|
|
23859
24566
|
canUpdateNumber: canUpdateNumber,
|
|
23860
24567
|
source: source
|
|
23861
24568
|
});
|
|
24569
|
+
} else if (isErpType.isWln(type)) {
|
|
24570
|
+
newList = processWlnGoods$1({
|
|
24571
|
+
list: list,
|
|
24572
|
+
type: type,
|
|
24573
|
+
canUpdateNumber: canUpdateNumber,
|
|
24574
|
+
source: source
|
|
24575
|
+
});
|
|
23862
24576
|
} else {
|
|
23863
24577
|
newList = processDefaultGoods({
|
|
23864
24578
|
list: list,
|
|
@@ -23941,11 +24655,63 @@ var processJkyGoods$1 = function processJkyGoods(_ref3) {
|
|
|
23941
24655
|
});
|
|
23942
24656
|
});
|
|
23943
24657
|
};
|
|
23944
|
-
|
|
23945
|
-
var processWdtGoods$1 = function processWdtGoods(_ref4) {
|
|
24658
|
+
var processWlnGoods$1 = function processWlnGoods(_ref4) {
|
|
23946
24659
|
var list = _ref4.list,
|
|
23947
|
-
type = _ref4.type,
|
|
23948
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;
|
|
23949
24715
|
return list.map(function (item) {
|
|
23950
24716
|
var processedItem = _objectSpread2(_objectSpread2({}, item), {}, {
|
|
23951
24717
|
uuid: uuid(),
|
|
@@ -23963,9 +24729,9 @@ var processWdtGoods$1 = function processWdtGoods(_ref4) {
|
|
|
23963
24729
|
return processedItem;
|
|
23964
24730
|
});
|
|
23965
24731
|
};
|
|
23966
|
-
var processBsE3Goods$1 = function processBsE3Goods(
|
|
23967
|
-
var list =
|
|
23968
|
-
canUpdateNumber =
|
|
24732
|
+
var processBsE3Goods$1 = function processBsE3Goods(_ref6) {
|
|
24733
|
+
var list = _ref6.list,
|
|
24734
|
+
canUpdateNumber = _ref6.canUpdateNumber;
|
|
23969
24735
|
return list.map(function (item) {
|
|
23970
24736
|
var specNo = item.specNo,
|
|
23971
24737
|
specId = item.specId,
|
|
@@ -24000,9 +24766,9 @@ var processBsE3Goods$1 = function processBsE3Goods(_ref5) {
|
|
|
24000
24766
|
});
|
|
24001
24767
|
});
|
|
24002
24768
|
};
|
|
24003
|
-
var processGyGoods$1 = function processGyGoods(
|
|
24004
|
-
var list =
|
|
24005
|
-
source =
|
|
24769
|
+
var processGyGoods$1 = function processGyGoods(_ref7) {
|
|
24770
|
+
var list = _ref7.list,
|
|
24771
|
+
source = _ref7.source;
|
|
24006
24772
|
var isFormWorkOrder = source === 'workOrder';
|
|
24007
24773
|
return list.map(function (item) {
|
|
24008
24774
|
var goodName = item.goodName,
|
|
@@ -24029,8 +24795,8 @@ var processGyGoods$1 = function processGyGoods(_ref6) {
|
|
|
24029
24795
|
});
|
|
24030
24796
|
});
|
|
24031
24797
|
};
|
|
24032
|
-
var processJstGoods$1 = function processJstGoods(
|
|
24033
|
-
var list =
|
|
24798
|
+
var processJstGoods$1 = function processJstGoods(_ref8) {
|
|
24799
|
+
var list = _ref8.list;
|
|
24034
24800
|
return list.map(function (item) {
|
|
24035
24801
|
return {
|
|
24036
24802
|
name: item.goodName,
|
|
@@ -24048,9 +24814,9 @@ var processJstGoods$1 = function processJstGoods(_ref7) {
|
|
|
24048
24814
|
};
|
|
24049
24815
|
});
|
|
24050
24816
|
};
|
|
24051
|
-
var processKmGoods$1 = function processKmGoods(
|
|
24052
|
-
var list =
|
|
24053
|
-
type =
|
|
24817
|
+
var processKmGoods$1 = function processKmGoods(_ref9) {
|
|
24818
|
+
var list = _ref9.list,
|
|
24819
|
+
type = _ref9.type;
|
|
24054
24820
|
var initParamsMap = {
|
|
24055
24821
|
KM_GOODS: {
|
|
24056
24822
|
num: 1
|
|
@@ -24089,9 +24855,9 @@ var processKmGoods$1 = function processKmGoods(_ref8) {
|
|
|
24089
24855
|
}, initParamsMap[type] || {});
|
|
24090
24856
|
});
|
|
24091
24857
|
};
|
|
24092
|
-
var processDefaultGoods = function processDefaultGoods(
|
|
24093
|
-
var list =
|
|
24094
|
-
canUpdateNumber =
|
|
24858
|
+
var processDefaultGoods = function processDefaultGoods(_ref10) {
|
|
24859
|
+
var list = _ref10.list,
|
|
24860
|
+
canUpdateNumber = _ref10.canUpdateNumber;
|
|
24095
24861
|
return list.map(function (item) {
|
|
24096
24862
|
var goodsId = item.goodsId,
|
|
24097
24863
|
name = item.name,
|
|
@@ -24140,6 +24906,8 @@ var GoodsModalMap = {
|
|
|
24140
24906
|
JY_REISSUE_GOODS: JyGoodsModal$1,
|
|
24141
24907
|
JKY_GOODS: JkyGoodsModal$1,
|
|
24142
24908
|
JKY_REISSUE_GOODS: JkyGoodsModal$1,
|
|
24909
|
+
WLN_REISSUE_GOODS: WlnGoodsModal$1,
|
|
24910
|
+
WLN_GOODS: WlnGoodsModal$1,
|
|
24143
24911
|
OTHER_GOODS: GoodsModal$2
|
|
24144
24912
|
};
|
|
24145
24913
|
var systemOrderNoMap = {
|
|
@@ -24154,6 +24922,7 @@ var systemOrderNoMap = {
|
|
|
24154
24922
|
JY_REISSUE_GOODS: 'tradeNo',
|
|
24155
24923
|
JKY_GOODS: 'tradeNo',
|
|
24156
24924
|
JKY_REISSUE_GOODS: 'tradeNo',
|
|
24925
|
+
WLN_REISSUE_GOODS: 'tradeNo',
|
|
24157
24926
|
KM_REISSUE_GOODS: 'sid',
|
|
24158
24927
|
KM_RETURN_GOODS: 'sid',
|
|
24159
24928
|
KM_EXCHANGE_GOODS: 'sid',
|
|
@@ -24411,6 +25180,9 @@ var getButtonText = function getButtonText() {
|
|
|
24411
25180
|
if (['JKY_GOODS', 'JKY_REISSUE_GOODS'].includes(type)) {
|
|
24412
25181
|
return '选择吉客云ERP商品';
|
|
24413
25182
|
}
|
|
25183
|
+
if (['WLN_GOODS', 'WLN_REISSUE_GOODS'].includes(type)) {
|
|
25184
|
+
return '选择万里牛ERP商品';
|
|
25185
|
+
}
|
|
24414
25186
|
return '选择商品';
|
|
24415
25187
|
};
|
|
24416
25188
|
var GoodItem$1 = function GoodItem(props) {
|
|
@@ -24470,8 +25242,8 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
24470
25242
|
var jstReturnGoods = Form === null || Form === void 0 ? void 0 : Form.useWatch('3979edfd6d', form);
|
|
24471
25243
|
var isShowSelectTradeGoods = type !== 'JST_EXCHANGE_GOODS' || (jstReturnGoods === null || jstReturnGoods === void 0 ? void 0 : jstReturnGoods.jstSystemOrderNo);
|
|
24472
25244
|
// 判断是否为是否展示系统单筛选项
|
|
24473
|
-
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;
|
|
24474
|
-
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;
|
|
24475
25247
|
var refModal = useRef();
|
|
24476
25248
|
console.debug('表格数据', value);
|
|
24477
25249
|
var handleDelete = function handleDelete(record, index) {
|
|
@@ -24566,6 +25338,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
24566
25338
|
case 'JY_REISSUE_GOODS':
|
|
24567
25339
|
case 'JKY_GOODS':
|
|
24568
25340
|
case 'JKY_REISSUE_GOODS':
|
|
25341
|
+
case 'WLN_REISSUE_GOODS':
|
|
24569
25342
|
case 'SKX_GOODS':
|
|
24570
25343
|
case 'SKX_RETURN_GOODS':
|
|
24571
25344
|
{
|
|
@@ -24825,6 +25598,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
24825
25598
|
templateDetail: templateDetail
|
|
24826
25599
|
}));
|
|
24827
25600
|
};
|
|
25601
|
+
GoodItem$1.displayName = 'GoodItem';
|
|
24828
25602
|
|
|
24829
25603
|
var BsGoods = function BsGoods(props) {
|
|
24830
25604
|
var _withInfo$current3, _withInfo$current4;
|
|
@@ -25676,6 +26450,10 @@ var getOrderListSingleton = function getOrderListSingleton(orderNo) {
|
|
|
25676
26450
|
}
|
|
25677
26451
|
}).then(function (data) {
|
|
25678
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
|
+
}
|
|
25679
26457
|
resolve(data.data);
|
|
25680
26458
|
// 延迟10秒清除,保证订单的时效性
|
|
25681
26459
|
setTimeout(function () {
|
|
@@ -27661,6 +28439,32 @@ var componentMap$2 = {
|
|
|
27661
28439
|
},
|
|
27662
28440
|
getOrderList: jkyUtils.getJkyOrderListSingleton
|
|
27663
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
|
+
},
|
|
27664
28468
|
WDT_AFTERSALE_GOODS: {
|
|
27665
28469
|
type: 'wdtAftersale',
|
|
27666
28470
|
key: 'wdtAftersaleGoods',
|
|
@@ -28845,6 +29649,22 @@ var typeMap$2 = {
|
|
|
28845
29649
|
goodDetailsKey: 'goodsDetail',
|
|
28846
29650
|
isShowSelectTradeGoods: true,
|
|
28847
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
|
|
28848
29668
|
}
|
|
28849
29669
|
};
|
|
28850
29670
|
var PublicReissue = function PublicReissue(props) {
|
|
@@ -28904,7 +29724,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28904
29724
|
case 0:
|
|
28905
29725
|
(_typeMap$type5 = typeMap$2[type]) === null || _typeMap$type5 === void 0 ? void 0 : _typeMap$type5.getOrderList(orderNo).then(function (data) {
|
|
28906
29726
|
var _valueRef$current3, _typeMap$type6, _typeMap$type7, _typeMap$type11, _ref3, _typeMap$type12;
|
|
28907
|
-
var orders = data || [];
|
|
29727
|
+
var orders = (type === 'WLN_REISSUE_GOODS' ? data === null || data === void 0 ? void 0 : data.orders : data) || [];
|
|
28908
29728
|
var showOrderInfo = orders === null || orders === void 0 ? void 0 : orders.map(function (orderItem) {
|
|
28909
29729
|
return _defineProperty({}, typeMap$2[type].oIdKey, orderItem[typeMap$2[type].oIdKey]);
|
|
28910
29730
|
});
|
|
@@ -28953,6 +29773,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28953
29773
|
// 切换到非原单,清空列表
|
|
28954
29774
|
newValue[(_typeMap$type15 = typeMap$2[type]) === null || _typeMap$type15 === void 0 ? void 0 : _typeMap$type15.key] = [];
|
|
28955
29775
|
}
|
|
29776
|
+
console.log('**** changeTypeHandle', newValue);
|
|
28956
29777
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
28957
29778
|
};
|
|
28958
29779
|
var handleModeChange = function handleModeChange(mode) {
|
|
@@ -29077,6 +29898,10 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
29077
29898
|
orderRest = {
|
|
29078
29899
|
canEdit: true
|
|
29079
29900
|
};
|
|
29901
|
+
} else if (['WLN_REISSUE_GOODS'].includes(type)) {
|
|
29902
|
+
orderRest = {
|
|
29903
|
+
canEdit: true
|
|
29904
|
+
};
|
|
29080
29905
|
}
|
|
29081
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] : [];
|
|
29082
29907
|
var hasGoodDetails = orders === null || orders === void 0 ? void 0 : orders.some(function (order) {
|
|
@@ -29595,7 +30420,7 @@ var GoodsModal$5 = function GoodsModal(props) {
|
|
|
29595
30420
|
key: item.value
|
|
29596
30421
|
}, item.label);
|
|
29597
30422
|
})), /*#__PURE__*/React.createElement(Search$1, {
|
|
29598
|
-
placeholder: "\u5B9D\u8D1D\
|
|
30423
|
+
placeholder: "\u5B9D\u8D1D\u6807\u9898",
|
|
29599
30424
|
allowClear: true,
|
|
29600
30425
|
enterButton: "\u641C\u7D22",
|
|
29601
30426
|
style: {
|