@kmkf-fe-packages/basic-components 2.7.2 → 2.7.3-beta.10
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 +1011 -190
- 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 +2 -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,
|
|
@@ -13367,7 +13375,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
13367
13375
|
}
|
|
13368
13376
|
}
|
|
13369
13377
|
console.log('newValue', newValue);
|
|
13370
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
13378
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(newValue, type);
|
|
13371
13379
|
};
|
|
13372
13380
|
//智能识别回调
|
|
13373
13381
|
var changeIdentify = function changeIdentify(val) {
|
|
@@ -13419,6 +13427,10 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
13419
13427
|
var _e$target$value;
|
|
13420
13428
|
return changeHandle((_e$target$value = e.target.value) === null || _e$target$value === void 0 ? void 0 : _e$target$value.trim(), 'interceptCode');
|
|
13421
13429
|
},
|
|
13430
|
+
onBlur: function onBlur(e) {
|
|
13431
|
+
var _e$target$value2;
|
|
13432
|
+
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');
|
|
13433
|
+
},
|
|
13422
13434
|
value: value === null || value === void 0 ? void 0 : value.interceptCode
|
|
13423
13435
|
}))), /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Item, {
|
|
13424
13436
|
label: /*#__PURE__*/React.createElement("span", null, "\u5BA2\u6237\u7F16\u7801\uFF08K\u7801\uFF09\uFF1A", platform === 'pc' ? /*#__PURE__*/React.createElement(Typography.Link, {
|
|
@@ -13492,8 +13504,8 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
13492
13504
|
disabled: disabled || isEdit,
|
|
13493
13505
|
placeholder: senderMobileLabel,
|
|
13494
13506
|
onChange: function onChange(e) {
|
|
13495
|
-
var _e$target$
|
|
13496
|
-
return changeHandle((_e$target$
|
|
13507
|
+
var _e$target$value3;
|
|
13508
|
+
return changeHandle((_e$target$value3 = e.target.value) === null || _e$target$value3 === void 0 ? void 0 : _e$target$value3.trim(), 'interceptSenderMobile');
|
|
13497
13509
|
}
|
|
13498
13510
|
})), /*#__PURE__*/React.createElement(Item, {
|
|
13499
13511
|
label: '退回地址',
|
|
@@ -13552,8 +13564,8 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
13552
13564
|
},
|
|
13553
13565
|
placeholder: "\u5176\u4ED6",
|
|
13554
13566
|
onChange: function onChange(e) {
|
|
13555
|
-
var _e$target$
|
|
13556
|
-
return changeHandle((_e$target$
|
|
13567
|
+
var _e$target$value4;
|
|
13568
|
+
return changeHandle((_e$target$value4 = e.target.value) === null || _e$target$value4 === void 0 ? void 0 : _e$target$value4.trim(), 'interceptLogisticsStatusOther');
|
|
13557
13569
|
}
|
|
13558
13570
|
})), /*#__PURE__*/React.createElement(Item, {
|
|
13559
13571
|
label: '拦截状态',
|
|
@@ -13607,8 +13619,8 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
13607
13619
|
disabled: true,
|
|
13608
13620
|
placeholder: "\u63A5\u53E3\u72B6\u6001\u539F\u56E0",
|
|
13609
13621
|
onChange: function onChange(e) {
|
|
13610
|
-
var _e$target$
|
|
13611
|
-
return changeHandle((_e$target$
|
|
13622
|
+
var _e$target$value5;
|
|
13623
|
+
return changeHandle((_e$target$value5 = e.target.value) === null || _e$target$value5 === void 0 ? void 0 : _e$target$value5.trim(), 'interceptLogisticsApiStatusReason');
|
|
13612
13624
|
}
|
|
13613
13625
|
})));
|
|
13614
13626
|
};
|
|
@@ -14110,9 +14122,9 @@ var jstGoods = function jstGoods(props) {
|
|
|
14110
14122
|
changeIndex = _useState2[0],
|
|
14111
14123
|
setChangeIndex = _useState2[1]; //选中的包裹
|
|
14112
14124
|
var sendOptions = SendDataCenter.getInstance(platformType).getSendData();
|
|
14113
|
-
var isSelectName = ['wdt', 'bsE3', 'km', 'gy', 'jst', 'jy', 'jky'].includes(platformType);
|
|
14125
|
+
var isSelectName = ['wdt', 'bsE3', 'km', 'gy', 'jst', 'jy', 'jky', 'wln'].includes(platformType);
|
|
14114
14126
|
var expressDateInstance = ExpressData.getInstance(platformType);
|
|
14115
|
-
var isSendGoodSavedId = isSelectName && !['jst'].includes(platformType);
|
|
14127
|
+
var isSendGoodSavedId = isSelectName && !['jst', 'wln'].includes(platformType);
|
|
14116
14128
|
useEffect(function () {
|
|
14117
14129
|
//没有值塞个默认值
|
|
14118
14130
|
if (!(value === null || value === void 0 ? void 0 : value.length) && type !== 1) {
|
|
@@ -15713,6 +15725,122 @@ var jkyColumns = [{
|
|
|
15713
15725
|
}
|
|
15714
15726
|
}];
|
|
15715
15727
|
|
|
15728
|
+
var getYesOrNo$3 = function getYesOrNo(val) {
|
|
15729
|
+
if (!isBoolean(val)) return null;
|
|
15730
|
+
return val ? '是' : '否';
|
|
15731
|
+
};
|
|
15732
|
+
var wlnColumns = [{
|
|
15733
|
+
dataIndex: 'goodName',
|
|
15734
|
+
title: '商品名称',
|
|
15735
|
+
width: 250,
|
|
15736
|
+
ellipsis: true,
|
|
15737
|
+
render: renderTextEllipsis
|
|
15738
|
+
}, {
|
|
15739
|
+
dataIndex: 'goodShortName',
|
|
15740
|
+
title: "\u5546\u54C1\u7B80\u79F0",
|
|
15741
|
+
ellipsis: true,
|
|
15742
|
+
width: 150,
|
|
15743
|
+
render: renderTextEllipsis
|
|
15744
|
+
}, {
|
|
15745
|
+
dataIndex: 'goodNo',
|
|
15746
|
+
title: '商品编码',
|
|
15747
|
+
width: 150,
|
|
15748
|
+
ellipsis: true,
|
|
15749
|
+
render: renderTextEllipsis
|
|
15750
|
+
}, {
|
|
15751
|
+
dataIndex: 'goodId',
|
|
15752
|
+
title: '商品ID',
|
|
15753
|
+
width: 200,
|
|
15754
|
+
ellipsis: true,
|
|
15755
|
+
render: renderTextEllipsis
|
|
15756
|
+
}, {
|
|
15757
|
+
dataIndex: 'goodPicUrl',
|
|
15758
|
+
title: '商品图片',
|
|
15759
|
+
width: 100,
|
|
15760
|
+
render: function render(picUrl) {
|
|
15761
|
+
return /*#__PURE__*/React.createElement("img", {
|
|
15762
|
+
style: {
|
|
15763
|
+
width: '30px',
|
|
15764
|
+
height: '30px',
|
|
15765
|
+
objectFit: 'contain'
|
|
15766
|
+
},
|
|
15767
|
+
src: picUrl
|
|
15768
|
+
});
|
|
15769
|
+
}
|
|
15770
|
+
}, {
|
|
15771
|
+
dataIndex: 'goodBarcode',
|
|
15772
|
+
title: '商品条码',
|
|
15773
|
+
width: 200,
|
|
15774
|
+
ellipsis: true,
|
|
15775
|
+
render: renderTextEllipsis
|
|
15776
|
+
}, {
|
|
15777
|
+
dataIndex: 'propertiesValue',
|
|
15778
|
+
title: '规格值',
|
|
15779
|
+
width: 200,
|
|
15780
|
+
ellipsis: true,
|
|
15781
|
+
render: renderTextEllipsis
|
|
15782
|
+
}, {
|
|
15783
|
+
dataIndex: 'specNo',
|
|
15784
|
+
title: "SKU\u7F16\u7801",
|
|
15785
|
+
ellipsis: true,
|
|
15786
|
+
width: 150,
|
|
15787
|
+
render: renderTextEllipsis
|
|
15788
|
+
}, {
|
|
15789
|
+
dataIndex: 'specId',
|
|
15790
|
+
title: "SKU ID",
|
|
15791
|
+
ellipsis: true,
|
|
15792
|
+
width: 150,
|
|
15793
|
+
render: renderTextEllipsis
|
|
15794
|
+
}, {
|
|
15795
|
+
dataIndex: 'specImgUrl',
|
|
15796
|
+
title: "SKU \u56FE\u7247",
|
|
15797
|
+
ellipsis: true,
|
|
15798
|
+
width: 150,
|
|
15799
|
+
render: function render(val) {
|
|
15800
|
+
return /*#__PURE__*/React.createElement(Image, {
|
|
15801
|
+
width: 30,
|
|
15802
|
+
src: val
|
|
15803
|
+
});
|
|
15804
|
+
}
|
|
15805
|
+
}, {
|
|
15806
|
+
dataIndex: 'specBarcode',
|
|
15807
|
+
title: '规格条码',
|
|
15808
|
+
width: 150,
|
|
15809
|
+
ellipsis: true,
|
|
15810
|
+
render: renderTextEllipsis
|
|
15811
|
+
}, {
|
|
15812
|
+
dataIndex: 'brandName',
|
|
15813
|
+
title: '品牌名称',
|
|
15814
|
+
width: 200,
|
|
15815
|
+
ellipsis: true,
|
|
15816
|
+
render: renderTextEllipsis
|
|
15817
|
+
}, {
|
|
15818
|
+
dataIndex: 'retailPrice',
|
|
15819
|
+
title: "\u96F6\u552E\u4EF7",
|
|
15820
|
+
ellipsis: true,
|
|
15821
|
+
width: 100,
|
|
15822
|
+
render: renderTextEllipsis
|
|
15823
|
+
}, {
|
|
15824
|
+
dataIndex: 'marketPrice',
|
|
15825
|
+
title: "\u5E02\u573A\u4EF7",
|
|
15826
|
+
ellipsis: true,
|
|
15827
|
+
width: 150,
|
|
15828
|
+
render: renderTextEllipsis
|
|
15829
|
+
}, {
|
|
15830
|
+
dataIndex: 'unitName',
|
|
15831
|
+
title: '基本单位',
|
|
15832
|
+
width: 150,
|
|
15833
|
+
render: renderTextEllipsis
|
|
15834
|
+
}, {
|
|
15835
|
+
dataIndex: 'skuType',
|
|
15836
|
+
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
15837
|
+
ellipsis: true,
|
|
15838
|
+
width: 150,
|
|
15839
|
+
render: function render(val) {
|
|
15840
|
+
return renderTextEllipsis(getYesOrNo$3(val === 'combine'));
|
|
15841
|
+
}
|
|
15842
|
+
}];
|
|
15843
|
+
|
|
15716
15844
|
var getColumnsMap = function getColumnsMap() {
|
|
15717
15845
|
return cloneDeep({
|
|
15718
15846
|
gy: gyColumns,
|
|
@@ -15721,7 +15849,8 @@ var getColumnsMap = function getColumnsMap() {
|
|
|
15721
15849
|
bse3: bse3Columns,
|
|
15722
15850
|
km: kmColumns,
|
|
15723
15851
|
jy: jyColumns,
|
|
15724
|
-
jky: jkyColumns
|
|
15852
|
+
jky: jkyColumns,
|
|
15853
|
+
wln: wlnColumns
|
|
15725
15854
|
});
|
|
15726
15855
|
};
|
|
15727
15856
|
var getColumnsBaseInfo = function getColumnsBaseInfo() {
|
|
@@ -16153,30 +16282,33 @@ var GoodList = function GoodList(props, ref) {
|
|
|
16153
16282
|
selectedRowKeys: selectIds,
|
|
16154
16283
|
fixed: true,
|
|
16155
16284
|
onSelect: function onSelect(record, selected) {
|
|
16285
|
+
var uniqueKey = "".concat(record.goodNo, "-").concat(record.specNo);
|
|
16156
16286
|
if (selected) {
|
|
16157
|
-
setSelectIds([].concat(_toConsumableArray(selectIds), [
|
|
16287
|
+
setSelectIds([].concat(_toConsumableArray(selectIds), [uniqueKey]));
|
|
16158
16288
|
setSelect([].concat(_toConsumableArray(selectList), [record]));
|
|
16159
16289
|
} else {
|
|
16160
16290
|
setSelectIds(selectIds.filter(function (t) {
|
|
16161
|
-
return t !==
|
|
16291
|
+
return t !== uniqueKey;
|
|
16162
16292
|
}));
|
|
16163
16293
|
setSelect(selectList.filter(function (t) {
|
|
16164
|
-
return t.specNo !==
|
|
16294
|
+
return "".concat(t.goodNo, "-").concat(t.specNo) !== uniqueKey;
|
|
16165
16295
|
}));
|
|
16166
16296
|
}
|
|
16167
16297
|
},
|
|
16168
16298
|
onSelectAll: function onSelectAll(selected, selectedRows, changeRows) {
|
|
16169
16299
|
if (selected) {
|
|
16170
|
-
|
|
16171
|
-
return t.specNo;
|
|
16172
|
-
})
|
|
16300
|
+
var changeKeys = changeRows.map(function (t) {
|
|
16301
|
+
return "".concat(t.goodNo, "-").concat(t.specNo);
|
|
16302
|
+
});
|
|
16303
|
+
setSelectIds([].concat(_toConsumableArray(selectIds), _toConsumableArray(changeKeys)));
|
|
16173
16304
|
setSelect([].concat(_toConsumableArray(selectList), _toConsumableArray(changeRows)));
|
|
16174
16305
|
} else {
|
|
16175
|
-
|
|
16176
|
-
return t.specNo;
|
|
16177
|
-
})
|
|
16306
|
+
var _changeKeys = changeRows.map(function (t) {
|
|
16307
|
+
return "".concat(t.goodNo, "-").concat(t.specNo);
|
|
16308
|
+
});
|
|
16309
|
+
setSelectIds(difference(selectIds, _changeKeys));
|
|
16178
16310
|
var list = differenceWith(selectList, changeRows, function (arrVal, othVal) {
|
|
16179
|
-
return arrVal.specNo !== othVal.specNo;
|
|
16311
|
+
return "".concat(arrVal.goodNo, "-").concat(arrVal.specNo) !== "".concat(othVal.goodNo, "-").concat(othVal.specNo);
|
|
16180
16312
|
});
|
|
16181
16313
|
setSelect(list);
|
|
16182
16314
|
}
|
|
@@ -16184,11 +16316,12 @@ var GoodList = function GoodList(props, ref) {
|
|
|
16184
16316
|
};
|
|
16185
16317
|
var showTable = function showTable() {
|
|
16186
16318
|
var handleDelete = function handleDelete(record) {
|
|
16319
|
+
var uniqueKey = "".concat(record.goodNo, "-").concat(record.specNo);
|
|
16187
16320
|
setSelectIds(selectIds.filter(function (t) {
|
|
16188
|
-
return t !==
|
|
16321
|
+
return t !== uniqueKey;
|
|
16189
16322
|
}));
|
|
16190
16323
|
setSelect(selectList.filter(function (t) {
|
|
16191
|
-
return t.specNo !==
|
|
16324
|
+
return "".concat(t.goodNo, "-").concat(t.specNo) !== uniqueKey;
|
|
16192
16325
|
}));
|
|
16193
16326
|
};
|
|
16194
16327
|
var showColumns = [{
|
|
@@ -16212,7 +16345,9 @@ var GoodList = function GoodList(props, ref) {
|
|
|
16212
16345
|
}
|
|
16213
16346
|
}, /*#__PURE__*/React.createElement(Table, {
|
|
16214
16347
|
columns: showColumns,
|
|
16215
|
-
rowKey:
|
|
16348
|
+
rowKey: function rowKey(record) {
|
|
16349
|
+
return "".concat(record.goodNo, "-").concat(record.specNo);
|
|
16350
|
+
},
|
|
16216
16351
|
dataSource: selectList,
|
|
16217
16352
|
scroll: {
|
|
16218
16353
|
x: '100%',
|
|
@@ -16242,7 +16377,9 @@ var GoodList = function GoodList(props, ref) {
|
|
|
16242
16377
|
}, /*#__PURE__*/React.createElement(Table, _objectSpread2(_objectSpread2({
|
|
16243
16378
|
className: "GoodModalColumns",
|
|
16244
16379
|
rowSelection: rowSelection,
|
|
16245
|
-
rowKey:
|
|
16380
|
+
rowKey: function rowKey(record) {
|
|
16381
|
+
return "".concat(record.goodNo, "-").concat(record.specNo);
|
|
16382
|
+
},
|
|
16246
16383
|
columns: columns,
|
|
16247
16384
|
scroll: {
|
|
16248
16385
|
x: '100%',
|
|
@@ -17792,6 +17929,27 @@ var componentMap$1 = {
|
|
|
17792
17929
|
onChange: props.handleChange
|
|
17793
17930
|
}));
|
|
17794
17931
|
},
|
|
17932
|
+
TagsSelect: function TagsSelect(props) {
|
|
17933
|
+
return "\u8BF7\u9009\u62E9".concat(props === null || props === void 0 ? void 0 : props.name).length > 10 ? /*#__PURE__*/React.createElement(Tooltip, {
|
|
17934
|
+
title: "\u8BF7\u9009\u62E9".concat(props === null || props === void 0 ? void 0 : props.name)
|
|
17935
|
+
}, /*#__PURE__*/React.createElement(Select, _objectSpread2(_objectSpread2({
|
|
17936
|
+
mode: "tags",
|
|
17937
|
+
placeholder: "\u8BF7\u9009\u62E9".concat(props === null || props === void 0 ? void 0 : props.name),
|
|
17938
|
+
optionFilterProp: "label",
|
|
17939
|
+
allowClear: true,
|
|
17940
|
+
maxTagCount: "responsive"
|
|
17941
|
+
}, props), {}, {
|
|
17942
|
+
onChange: props.handleChange
|
|
17943
|
+
}))) : /*#__PURE__*/React.createElement(Select, _objectSpread2(_objectSpread2({
|
|
17944
|
+
mode: "tags",
|
|
17945
|
+
placeholder: "\u8BF7\u9009\u62E9".concat(props === null || props === void 0 ? void 0 : props.name),
|
|
17946
|
+
optionFilterProp: "label",
|
|
17947
|
+
allowClear: true,
|
|
17948
|
+
maxTagCount: "responsive"
|
|
17949
|
+
}, props), {}, {
|
|
17950
|
+
onChange: props.handleChange
|
|
17951
|
+
}));
|
|
17952
|
+
},
|
|
17795
17953
|
Date: function Date(props) {
|
|
17796
17954
|
return /*#__PURE__*/React.createElement(RangePicker, _objectSpread2(_objectSpread2({
|
|
17797
17955
|
placeholder: ["".concat(props.name, "\u5F00\u59CB\u65F6\u95F4"), "".concat(props.name, "\u7ED3\u675F\u65F6\u95F4")],
|
|
@@ -18734,7 +18892,7 @@ var getTableData$5 = function getTableData(_ref, formData) {
|
|
|
18734
18892
|
data: {
|
|
18735
18893
|
pageSize: pageSize,
|
|
18736
18894
|
pageNo: current,
|
|
18737
|
-
platform: '
|
|
18895
|
+
platform: 'WLN_ERP',
|
|
18738
18896
|
conditionList: conditionList
|
|
18739
18897
|
}
|
|
18740
18898
|
}).then(function (res) {
|
|
@@ -18753,13 +18911,11 @@ var getTableData$5 = function getTableData(_ref, formData) {
|
|
|
18753
18911
|
});
|
|
18754
18912
|
};
|
|
18755
18913
|
var searchFormData$4 = [{
|
|
18756
|
-
label: '
|
|
18757
|
-
name: '
|
|
18758
|
-
dataIndex: 'specName'
|
|
18914
|
+
label: '规格值',
|
|
18915
|
+
name: 'propertiesValue'
|
|
18759
18916
|
}, {
|
|
18760
|
-
label: '
|
|
18761
|
-
name: '
|
|
18762
|
-
dataIndex: 'specNo',
|
|
18917
|
+
label: 'SKU编码',
|
|
18918
|
+
name: 'specNo',
|
|
18763
18919
|
type: 'optionalInput'
|
|
18764
18920
|
}, {
|
|
18765
18921
|
label: '商品名称',
|
|
@@ -18768,6 +18924,23 @@ var searchFormData$4 = [{
|
|
|
18768
18924
|
label: '商品编码',
|
|
18769
18925
|
name: 'goodNo',
|
|
18770
18926
|
type: 'optionalInput'
|
|
18927
|
+
}, {
|
|
18928
|
+
label: '是否组合装',
|
|
18929
|
+
name: 'skuType',
|
|
18930
|
+
type: 'select',
|
|
18931
|
+
formItemProps: {
|
|
18932
|
+
mode: 'multiple',
|
|
18933
|
+
filterOption: function filterOption(input, option) {
|
|
18934
|
+
return option.label.includes(input);
|
|
18935
|
+
},
|
|
18936
|
+
options: [{
|
|
18937
|
+
label: '普通商品',
|
|
18938
|
+
value: 'normal'
|
|
18939
|
+
}, {
|
|
18940
|
+
label: '组合装商品',
|
|
18941
|
+
value: 'combine'
|
|
18942
|
+
}]
|
|
18943
|
+
}
|
|
18771
18944
|
}];
|
|
18772
18945
|
var GoodList$5 = function GoodList(props, ref) {
|
|
18773
18946
|
var _useState = useState([]),
|
|
@@ -18778,7 +18951,7 @@ var GoodList$5 = function GoodList(props, ref) {
|
|
|
18778
18951
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
18779
18952
|
selectIds = _useState4[0],
|
|
18780
18953
|
setSelectIds = _useState4[1];
|
|
18781
|
-
var _useGetColumns = useGetColumns('
|
|
18954
|
+
var _useGetColumns = useGetColumns('wln'),
|
|
18782
18955
|
_useGetColumns2 = _slicedToArray(_useGetColumns, 3),
|
|
18783
18956
|
columns = _useGetColumns2[0],
|
|
18784
18957
|
showColumnsDataIndexList = _useGetColumns2[1],
|
|
@@ -18837,8 +19010,8 @@ var GoodList$5 = function GoodList(props, ref) {
|
|
|
18837
19010
|
getCheckboxProps: function getCheckboxProps(record) {
|
|
18838
19011
|
var options = {
|
|
18839
19012
|
disabled: (props.selectedRows || []).map(function (row) {
|
|
18840
|
-
return row.
|
|
18841
|
-
}).includes(record.
|
|
19013
|
+
return row.specId || record.id;
|
|
19014
|
+
}).includes(record.specId || record.id),
|
|
18842
19015
|
name: record.id
|
|
18843
19016
|
};
|
|
18844
19017
|
return options;
|
|
@@ -18922,9 +19095,9 @@ var GoodList$5 = function GoodList(props, ref) {
|
|
|
18922
19095
|
type: "text"
|
|
18923
19096
|
}, "\u5DF2\u9009".concat(selectList.length > 99 ? '99+' : selectList.length, "\u4E2A\u5546\u54C1"), /*#__PURE__*/React.createElement(CaretUpOutlined, null))));
|
|
18924
19097
|
};
|
|
18925
|
-
var
|
|
19098
|
+
var WlnGoodsList = /*#__PURE__*/forwardRef(GoodList$5);
|
|
18926
19099
|
|
|
18927
|
-
var
|
|
19100
|
+
var WlnGoodsModal = function WlnGoodsModal(props, ref) {
|
|
18928
19101
|
useImperativeHandle(ref, function () {
|
|
18929
19102
|
return {
|
|
18930
19103
|
open: function open(shopCode) {
|
|
@@ -18944,13 +19117,13 @@ var JyGoodsModal = function JyGoodsModal(props, ref) {
|
|
|
18944
19117
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
18945
19118
|
selectedRows = _useState4[0],
|
|
18946
19119
|
setSelectedRows = _useState4[1];
|
|
18947
|
-
var
|
|
19120
|
+
var jkyGoodsListRef = useRef(null);
|
|
18948
19121
|
var _onCancel = function onCancel() {
|
|
18949
19122
|
setVisible(false);
|
|
18950
19123
|
};
|
|
18951
19124
|
var onOk = function onOk() {
|
|
18952
|
-
var
|
|
18953
|
-
var selectedList = ((
|
|
19125
|
+
var _jkyGoodsListRef$curr;
|
|
19126
|
+
var selectedList = ((_jkyGoodsListRef$curr = jkyGoodsListRef.current) === null || _jkyGoodsListRef$curr === void 0 ? void 0 : _jkyGoodsListRef$curr.getSelectGoodList()) || [];
|
|
18954
19127
|
onSubmit(selectedList);
|
|
18955
19128
|
_onCancel();
|
|
18956
19129
|
};
|
|
@@ -18965,12 +19138,12 @@ var JyGoodsModal = function JyGoodsModal(props, ref) {
|
|
|
18965
19138
|
},
|
|
18966
19139
|
onOk: onOk,
|
|
18967
19140
|
wrapClassName: "goodModal"
|
|
18968
|
-
}, /*#__PURE__*/React.createElement(
|
|
18969
|
-
ref:
|
|
19141
|
+
}, /*#__PURE__*/React.createElement(WlnGoodsList, {
|
|
19142
|
+
ref: jkyGoodsListRef,
|
|
18970
19143
|
selectedRows: selectedRows
|
|
18971
19144
|
})));
|
|
18972
19145
|
};
|
|
18973
|
-
var
|
|
19146
|
+
var WlnGoodsModal$1 = /*#__PURE__*/forwardRef(WlnGoodsModal);
|
|
18974
19147
|
|
|
18975
19148
|
var getTableData$6 = function getTableData(_ref, formData) {
|
|
18976
19149
|
var current = _ref.current,
|
|
@@ -18981,7 +19154,7 @@ var getTableData$6 = function getTableData(_ref, formData) {
|
|
|
18981
19154
|
data: {
|
|
18982
19155
|
pageSize: pageSize,
|
|
18983
19156
|
pageNo: current,
|
|
18984
|
-
platform: '
|
|
19157
|
+
platform: 'JY_ERP',
|
|
18985
19158
|
conditionList: conditionList
|
|
18986
19159
|
}
|
|
18987
19160
|
}).then(function (res) {
|
|
@@ -19009,10 +19182,10 @@ var searchFormData$5 = [{
|
|
|
19009
19182
|
dataIndex: 'specNo',
|
|
19010
19183
|
type: 'optionalInput'
|
|
19011
19184
|
}, {
|
|
19012
|
-
label: '
|
|
19185
|
+
label: '商品名称',
|
|
19013
19186
|
name: 'goodName'
|
|
19014
19187
|
}, {
|
|
19015
|
-
label: '
|
|
19188
|
+
label: '商品编码',
|
|
19016
19189
|
name: 'goodNo',
|
|
19017
19190
|
type: 'optionalInput'
|
|
19018
19191
|
}];
|
|
@@ -19025,7 +19198,7 @@ var GoodList$6 = function GoodList(props, ref) {
|
|
|
19025
19198
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
19026
19199
|
selectIds = _useState4[0],
|
|
19027
19200
|
setSelectIds = _useState4[1];
|
|
19028
|
-
var _useGetColumns = useGetColumns('
|
|
19201
|
+
var _useGetColumns = useGetColumns('jy'),
|
|
19029
19202
|
_useGetColumns2 = _slicedToArray(_useGetColumns, 3),
|
|
19030
19203
|
columns = _useGetColumns2[0],
|
|
19031
19204
|
showColumnsDataIndexList = _useGetColumns2[1],
|
|
@@ -19084,8 +19257,8 @@ var GoodList$6 = function GoodList(props, ref) {
|
|
|
19084
19257
|
getCheckboxProps: function getCheckboxProps(record) {
|
|
19085
19258
|
var options = {
|
|
19086
19259
|
disabled: (props.selectedRows || []).map(function (row) {
|
|
19087
|
-
return row.
|
|
19088
|
-
}).includes(record.
|
|
19260
|
+
return row.id || row.specId;
|
|
19261
|
+
}).includes(record.id || record.specId),
|
|
19089
19262
|
name: record.id
|
|
19090
19263
|
};
|
|
19091
19264
|
return options;
|
|
@@ -19169,9 +19342,9 @@ var GoodList$6 = function GoodList(props, ref) {
|
|
|
19169
19342
|
type: "text"
|
|
19170
19343
|
}, "\u5DF2\u9009".concat(selectList.length > 99 ? '99+' : selectList.length, "\u4E2A\u5546\u54C1"), /*#__PURE__*/React.createElement(CaretUpOutlined, null))));
|
|
19171
19344
|
};
|
|
19172
|
-
var
|
|
19345
|
+
var JyGoodsList = /*#__PURE__*/forwardRef(GoodList$6);
|
|
19173
19346
|
|
|
19174
|
-
var
|
|
19347
|
+
var JyGoodsModal = function JyGoodsModal(props, ref) {
|
|
19175
19348
|
useImperativeHandle(ref, function () {
|
|
19176
19349
|
return {
|
|
19177
19350
|
open: function open(shopCode) {
|
|
@@ -19191,13 +19364,13 @@ var JkyGoodsModal = function JkyGoodsModal(props, ref) {
|
|
|
19191
19364
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
19192
19365
|
selectedRows = _useState4[0],
|
|
19193
19366
|
setSelectedRows = _useState4[1];
|
|
19194
|
-
var
|
|
19367
|
+
var jyGoodsListRef = useRef(null);
|
|
19195
19368
|
var _onCancel = function onCancel() {
|
|
19196
19369
|
setVisible(false);
|
|
19197
19370
|
};
|
|
19198
19371
|
var onOk = function onOk() {
|
|
19199
|
-
var
|
|
19200
|
-
var selectedList = ((
|
|
19372
|
+
var _jyGoodsListRef$curre;
|
|
19373
|
+
var selectedList = ((_jyGoodsListRef$curre = jyGoodsListRef.current) === null || _jyGoodsListRef$curre === void 0 ? void 0 : _jyGoodsListRef$curre.getSelectGoodList()) || [];
|
|
19201
19374
|
onSubmit(selectedList);
|
|
19202
19375
|
_onCancel();
|
|
19203
19376
|
};
|
|
@@ -19212,42 +19385,289 @@ var JkyGoodsModal = function JkyGoodsModal(props, ref) {
|
|
|
19212
19385
|
},
|
|
19213
19386
|
onOk: onOk,
|
|
19214
19387
|
wrapClassName: "goodModal"
|
|
19215
|
-
}, /*#__PURE__*/React.createElement(
|
|
19216
|
-
ref:
|
|
19388
|
+
}, /*#__PURE__*/React.createElement(JyGoodsList, {
|
|
19389
|
+
ref: jyGoodsListRef,
|
|
19217
19390
|
selectedRows: selectedRows
|
|
19218
19391
|
})));
|
|
19219
19392
|
};
|
|
19220
|
-
var
|
|
19393
|
+
var JyGoodsModal$1 = /*#__PURE__*/forwardRef(JyGoodsModal);
|
|
19221
19394
|
|
|
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
|
-
|
|
19247
|
-
|
|
19248
|
-
|
|
19249
|
-
|
|
19250
|
-
|
|
19395
|
+
var getTableData$7 = function getTableData(_ref, formData) {
|
|
19396
|
+
var current = _ref.current,
|
|
19397
|
+
pageSize = _ref.pageSize;
|
|
19398
|
+
var conditionList = transformFormData(formData);
|
|
19399
|
+
return extendRequest('/qy/gdfw/product/product/page', {
|
|
19400
|
+
method: 'post',
|
|
19401
|
+
data: {
|
|
19402
|
+
pageSize: pageSize,
|
|
19403
|
+
pageNo: current,
|
|
19404
|
+
platform: 'JKY_ERP',
|
|
19405
|
+
conditionList: conditionList
|
|
19406
|
+
}
|
|
19407
|
+
}).then(function (res) {
|
|
19408
|
+
var _res$data = res.data,
|
|
19409
|
+
_res$data$productSkuL = _res$data.productSkuList,
|
|
19410
|
+
productSkuList = _res$data$productSkuL === void 0 ? [] : _res$data$productSkuL,
|
|
19411
|
+
_res$data$total = _res$data.total,
|
|
19412
|
+
total = _res$data$total === void 0 ? 0 : _res$data$total;
|
|
19413
|
+
var newProducts = productSkuList.map(function (item, index) {
|
|
19414
|
+
return _objectSpread2({}, item);
|
|
19415
|
+
});
|
|
19416
|
+
return {
|
|
19417
|
+
total: total,
|
|
19418
|
+
list: newProducts
|
|
19419
|
+
};
|
|
19420
|
+
});
|
|
19421
|
+
};
|
|
19422
|
+
var searchFormData$6 = [{
|
|
19423
|
+
label: '规格名称',
|
|
19424
|
+
name: 'skuName',
|
|
19425
|
+
dataIndex: 'specName'
|
|
19426
|
+
}, {
|
|
19427
|
+
label: '规格编码',
|
|
19428
|
+
name: 'skuCode',
|
|
19429
|
+
dataIndex: 'specNo',
|
|
19430
|
+
type: 'optionalInput'
|
|
19431
|
+
}, {
|
|
19432
|
+
label: '货品名称',
|
|
19433
|
+
name: 'goodName'
|
|
19434
|
+
}, {
|
|
19435
|
+
label: '货品编码',
|
|
19436
|
+
name: 'goodNo',
|
|
19437
|
+
type: 'optionalInput'
|
|
19438
|
+
}];
|
|
19439
|
+
var GoodList$7 = function GoodList(props, ref) {
|
|
19440
|
+
var _useState = useState([]),
|
|
19441
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
19442
|
+
selectList = _useState2[0],
|
|
19443
|
+
setSelect = _useState2[1];
|
|
19444
|
+
var _useState3 = useState([]),
|
|
19445
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
19446
|
+
selectIds = _useState4[0],
|
|
19447
|
+
setSelectIds = _useState4[1];
|
|
19448
|
+
var _useGetColumns = useGetColumns('jky'),
|
|
19449
|
+
_useGetColumns2 = _slicedToArray(_useGetColumns, 3),
|
|
19450
|
+
columns = _useGetColumns2[0],
|
|
19451
|
+
showColumnsDataIndexList = _useGetColumns2[1],
|
|
19452
|
+
loading = _useGetColumns2[2];
|
|
19453
|
+
useImperativeHandle(ref, function () {
|
|
19454
|
+
return {
|
|
19455
|
+
getSelectGoodList: function getSelectGoodList() {
|
|
19456
|
+
return selectList;
|
|
19457
|
+
}
|
|
19458
|
+
};
|
|
19459
|
+
});
|
|
19460
|
+
var _Form$useForm = Form.useForm(),
|
|
19461
|
+
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
19462
|
+
form = _Form$useForm2[0];
|
|
19463
|
+
var _useAntdTable = useAntdTable(getTableData$7, {
|
|
19464
|
+
defaultPageSize: 10,
|
|
19465
|
+
form: form
|
|
19466
|
+
}),
|
|
19467
|
+
tableProps = _useAntdTable.tableProps,
|
|
19468
|
+
search = _useAntdTable.search,
|
|
19469
|
+
params = _useAntdTable.params;
|
|
19470
|
+
var submit = search.submit,
|
|
19471
|
+
reset = search.reset;
|
|
19472
|
+
var rowSelection = {
|
|
19473
|
+
selectedRowKeys: selectIds,
|
|
19474
|
+
fixed: true,
|
|
19475
|
+
onSelect: function onSelect(record, selected) {
|
|
19476
|
+
if (selected) {
|
|
19477
|
+
setSelectIds([].concat(_toConsumableArray(selectIds), [record.id]));
|
|
19478
|
+
setSelect([].concat(_toConsumableArray(selectList), [record]));
|
|
19479
|
+
} else {
|
|
19480
|
+
setSelectIds(selectIds.filter(function (t) {
|
|
19481
|
+
return t !== record.id;
|
|
19482
|
+
}));
|
|
19483
|
+
setSelect(selectList.filter(function (t) {
|
|
19484
|
+
return t.id !== record.id;
|
|
19485
|
+
}));
|
|
19486
|
+
}
|
|
19487
|
+
},
|
|
19488
|
+
onSelectAll: function onSelectAll(selected, selectedRows, changeRows) {
|
|
19489
|
+
if (selected) {
|
|
19490
|
+
setSelectIds([].concat(_toConsumableArray(selectIds), _toConsumableArray(changeRows.map(function (t) {
|
|
19491
|
+
return t.id;
|
|
19492
|
+
}))));
|
|
19493
|
+
setSelect([].concat(_toConsumableArray(selectList), _toConsumableArray(changeRows)));
|
|
19494
|
+
} else {
|
|
19495
|
+
setSelectIds(difference(selectIds, changeRows.map(function (t) {
|
|
19496
|
+
return t.id;
|
|
19497
|
+
})));
|
|
19498
|
+
var list = differenceWith(selectList, changeRows, function (arrVal, othVal) {
|
|
19499
|
+
return arrVal.id !== othVal.id;
|
|
19500
|
+
});
|
|
19501
|
+
setSelect(list);
|
|
19502
|
+
}
|
|
19503
|
+
},
|
|
19504
|
+
getCheckboxProps: function getCheckboxProps(record) {
|
|
19505
|
+
var options = {
|
|
19506
|
+
disabled: (props.selectedRows || []).map(function (row) {
|
|
19507
|
+
return row.specId || record.id;
|
|
19508
|
+
}).includes(record.specId || record.id),
|
|
19509
|
+
name: record.id
|
|
19510
|
+
};
|
|
19511
|
+
return options;
|
|
19512
|
+
}
|
|
19513
|
+
};
|
|
19514
|
+
var showTable = function showTable() {
|
|
19515
|
+
var handleDelete = function handleDelete(record) {
|
|
19516
|
+
setSelectIds(selectIds.filter(function (t) {
|
|
19517
|
+
return t !== record.id;
|
|
19518
|
+
}));
|
|
19519
|
+
setSelect(selectList.filter(function (t) {
|
|
19520
|
+
return t.id !== record.id;
|
|
19521
|
+
}));
|
|
19522
|
+
};
|
|
19523
|
+
var showColumns = [{
|
|
19524
|
+
dataIndex: '',
|
|
19525
|
+
title: "\u64CD\u4F5C",
|
|
19526
|
+
ellipsis: true,
|
|
19527
|
+
width: 100,
|
|
19528
|
+
render: function render(val, record) {
|
|
19529
|
+
return /*#__PURE__*/React.createElement(Button, {
|
|
19530
|
+
type: "link",
|
|
19531
|
+
onClick: function onClick() {
|
|
19532
|
+
return handleDelete(record);
|
|
19533
|
+
}
|
|
19534
|
+
}, "\u5220\u9664");
|
|
19535
|
+
}
|
|
19536
|
+
}].concat(takeRight(columns, columns.length - 1));
|
|
19537
|
+
return selectList.length ? /*#__PURE__*/React.createElement("div", {
|
|
19538
|
+
style: {
|
|
19539
|
+
width: '100%',
|
|
19540
|
+
maxWidth: '387px'
|
|
19541
|
+
}
|
|
19542
|
+
}, /*#__PURE__*/React.createElement(Table, {
|
|
19543
|
+
columns: showColumns,
|
|
19544
|
+
rowKey: 'id',
|
|
19545
|
+
dataSource: selectList,
|
|
19546
|
+
scroll: {
|
|
19547
|
+
x: '100%',
|
|
19548
|
+
y: 250
|
|
19549
|
+
},
|
|
19550
|
+
pagination: {
|
|
19551
|
+
size: 'small',
|
|
19552
|
+
total: selectIds.length,
|
|
19553
|
+
pageSize: 10,
|
|
19554
|
+
showSizeChanger: false
|
|
19555
|
+
}
|
|
19556
|
+
})) : null;
|
|
19557
|
+
};
|
|
19558
|
+
return /*#__PURE__*/React.createElement(Skeleton, {
|
|
19559
|
+
active: true,
|
|
19560
|
+
loading: loading
|
|
19561
|
+
}, /*#__PURE__*/React.createElement(SearchForm, {
|
|
19562
|
+
searchFormData: searchFormData$6,
|
|
19563
|
+
form: form,
|
|
19564
|
+
showColumnsDataIndexList: showColumnsDataIndexList,
|
|
19565
|
+
submit: submit,
|
|
19566
|
+
reset: reset
|
|
19567
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
19568
|
+
style: {
|
|
19569
|
+
marginTop: '4px'
|
|
19570
|
+
}
|
|
19571
|
+
}, /*#__PURE__*/React.createElement(Table, _objectSpread2({
|
|
19572
|
+
className: "GoodModalColumns",
|
|
19573
|
+
rowSelection: rowSelection,
|
|
19574
|
+
rowKey: "id",
|
|
19575
|
+
columns: columns,
|
|
19576
|
+
scroll: {
|
|
19577
|
+
x: '100%',
|
|
19578
|
+
y: 250
|
|
19579
|
+
},
|
|
19580
|
+
size: "small"
|
|
19581
|
+
}, tableProps))), /*#__PURE__*/React.createElement(Popover, {
|
|
19582
|
+
getPopupContainer: function getPopupContainer(triggerNode) {
|
|
19583
|
+
return triggerNode.parentElement;
|
|
19584
|
+
},
|
|
19585
|
+
content: showTable(),
|
|
19586
|
+
title: "\u5DF2\u9009\u62E9".concat(selectList.length, "\u4E2A\u5546\u54C1")
|
|
19587
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
19588
|
+
danger: true,
|
|
19589
|
+
type: "text"
|
|
19590
|
+
}, "\u5DF2\u9009".concat(selectList.length > 99 ? '99+' : selectList.length, "\u4E2A\u5546\u54C1"), /*#__PURE__*/React.createElement(CaretUpOutlined, null))));
|
|
19591
|
+
};
|
|
19592
|
+
var JkyGoodsList = /*#__PURE__*/forwardRef(GoodList$7);
|
|
19593
|
+
|
|
19594
|
+
var JkyGoodsModal = function JkyGoodsModal(props, ref) {
|
|
19595
|
+
useImperativeHandle(ref, function () {
|
|
19596
|
+
return {
|
|
19597
|
+
open: function open(shopCode) {
|
|
19598
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
19599
|
+
setVisible(true);
|
|
19600
|
+
setSelectedRows(options.value || []);
|
|
19601
|
+
}
|
|
19602
|
+
};
|
|
19603
|
+
});
|
|
19604
|
+
var onSubmit = props.onSubmit,
|
|
19605
|
+
width = props.width;
|
|
19606
|
+
var _useState = useState(false),
|
|
19607
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
19608
|
+
visible = _useState2[0],
|
|
19609
|
+
setVisible = _useState2[1];
|
|
19610
|
+
var _useState3 = useState([]),
|
|
19611
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
19612
|
+
selectedRows = _useState4[0],
|
|
19613
|
+
setSelectedRows = _useState4[1];
|
|
19614
|
+
var jkyGoodsListRef = useRef(null);
|
|
19615
|
+
var _onCancel = function onCancel() {
|
|
19616
|
+
setVisible(false);
|
|
19617
|
+
};
|
|
19618
|
+
var onOk = function onOk() {
|
|
19619
|
+
var _jkyGoodsListRef$curr;
|
|
19620
|
+
var selectedList = ((_jkyGoodsListRef$curr = jkyGoodsListRef.current) === null || _jkyGoodsListRef$curr === void 0 ? void 0 : _jkyGoodsListRef$curr.getSelectGoodList()) || [];
|
|
19621
|
+
onSubmit(selectedList);
|
|
19622
|
+
_onCancel();
|
|
19623
|
+
};
|
|
19624
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, visible && /*#__PURE__*/React.createElement(Modal, {
|
|
19625
|
+
title: '选择商品',
|
|
19626
|
+
okText: '确认',
|
|
19627
|
+
cancelText: '取消',
|
|
19628
|
+
visible: visible,
|
|
19629
|
+
width: width || 850,
|
|
19630
|
+
onCancel: function onCancel() {
|
|
19631
|
+
_onCancel();
|
|
19632
|
+
},
|
|
19633
|
+
onOk: onOk,
|
|
19634
|
+
wrapClassName: "goodModal"
|
|
19635
|
+
}, /*#__PURE__*/React.createElement(JkyGoodsList, {
|
|
19636
|
+
ref: jkyGoodsListRef,
|
|
19637
|
+
selectedRows: selectedRows
|
|
19638
|
+
})));
|
|
19639
|
+
};
|
|
19640
|
+
var JkyGoodsModal$1 = /*#__PURE__*/forwardRef(JkyGoodsModal);
|
|
19641
|
+
|
|
19642
|
+
var getColumns = function getColumns(_ref) {
|
|
19643
|
+
var _ref$text = _ref.text,
|
|
19644
|
+
disabled = _ref.disabled,
|
|
19645
|
+
updateHandle = _ref.updateHandle;
|
|
19646
|
+
return {
|
|
19647
|
+
//百胜E3补发商品
|
|
19648
|
+
BS_E3_REISSUE_GOODS: [{
|
|
19649
|
+
dataIndex: 'sku',
|
|
19650
|
+
title: "SKU",
|
|
19651
|
+
width: 150,
|
|
19652
|
+
render: renderTextEllipsis
|
|
19653
|
+
}, {
|
|
19654
|
+
dataIndex: 'skuId',
|
|
19655
|
+
title: "SKU ID",
|
|
19656
|
+
width: 150,
|
|
19657
|
+
render: renderTextEllipsis
|
|
19658
|
+
}, {
|
|
19659
|
+
dataIndex: 'goodsName',
|
|
19660
|
+
title: "\u5546\u54C1\u540D\u79F0",
|
|
19661
|
+
width: 150,
|
|
19662
|
+
render: renderTextEllipsis
|
|
19663
|
+
}, {
|
|
19664
|
+
dataIndex: 'goodsShortName',
|
|
19665
|
+
title: "\u5546\u54C1\u7B80\u79F0",
|
|
19666
|
+
width: 150,
|
|
19667
|
+
render: renderTextEllipsis
|
|
19668
|
+
}, {
|
|
19669
|
+
dataIndex: 'picPath',
|
|
19670
|
+
title: "\u5546\u54C1\u56FE\u7247",
|
|
19251
19671
|
width: 150,
|
|
19252
19672
|
render: function render(val) {
|
|
19253
19673
|
return /*#__PURE__*/React.createElement(Image, {
|
|
@@ -20426,120 +20846,348 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
20426
20846
|
});
|
|
20427
20847
|
}
|
|
20428
20848
|
}, {
|
|
20429
|
-
dataIndex: 'apiSpecName',
|
|
20430
|
-
title: "\u5E73\u53F0\u89C4\u683C\u540D\u79F0",
|
|
20431
|
-
width: 250,
|
|
20849
|
+
dataIndex: 'apiSpecName',
|
|
20850
|
+
title: "\u5E73\u53F0\u89C4\u683C\u540D\u79F0",
|
|
20851
|
+
width: 250,
|
|
20852
|
+
align: 'center',
|
|
20853
|
+
ellipsis: true,
|
|
20854
|
+
render: function render(text) {
|
|
20855
|
+
return /*#__PURE__*/React.createElement(CopyTextIcon, {
|
|
20856
|
+
val: text
|
|
20857
|
+
});
|
|
20858
|
+
}
|
|
20859
|
+
}, {
|
|
20860
|
+
dataIndex: 'suiteName',
|
|
20861
|
+
title: "\u7EC4\u5408\u88C5\u540D\u79F0",
|
|
20862
|
+
width: 250,
|
|
20863
|
+
align: 'center',
|
|
20864
|
+
ellipsis: true,
|
|
20865
|
+
render: function render(text) {
|
|
20866
|
+
return /*#__PURE__*/React.createElement(CopyTextIcon, {
|
|
20867
|
+
val: text
|
|
20868
|
+
});
|
|
20869
|
+
}
|
|
20870
|
+
}, {
|
|
20871
|
+
dataIndex: 'suiteNo',
|
|
20872
|
+
title: "\u7EC4\u5408\u88C5\u7F16\u53F7",
|
|
20873
|
+
width: 150,
|
|
20874
|
+
align: 'center',
|
|
20875
|
+
ellipsis: true,
|
|
20876
|
+
render: renderTextEllipsis
|
|
20877
|
+
}, {
|
|
20878
|
+
dataIndex: 'stockinNum',
|
|
20879
|
+
title: "\u5165\u5E93\u6570\u91CF",
|
|
20880
|
+
width: 150,
|
|
20881
|
+
align: 'center',
|
|
20882
|
+
ellipsis: true,
|
|
20883
|
+
render: renderTextEllipsis
|
|
20884
|
+
}, {
|
|
20885
|
+
dataIndex: 'refundNum',
|
|
20886
|
+
title: "\u9000\u6B3E\u6570\u91CF",
|
|
20887
|
+
width: 150,
|
|
20888
|
+
align: 'center',
|
|
20889
|
+
ellipsis: true,
|
|
20890
|
+
render: renderTextEllipsis
|
|
20891
|
+
}, {
|
|
20892
|
+
dataIndex: 'totalAmount',
|
|
20893
|
+
title: "\u9000\u8D27\u603B\u989D",
|
|
20894
|
+
width: 150,
|
|
20895
|
+
align: 'center',
|
|
20896
|
+
ellipsis: true,
|
|
20897
|
+
render: renderTextEllipsis
|
|
20898
|
+
}, {
|
|
20899
|
+
dataIndex: 'refundAmount',
|
|
20900
|
+
title: "\u5DF2\u9000\u6B3E\u91D1\u989D",
|
|
20901
|
+
width: 150,
|
|
20902
|
+
align: 'center',
|
|
20903
|
+
ellipsis: true,
|
|
20904
|
+
render: renderTextEllipsis
|
|
20905
|
+
}, {
|
|
20906
|
+
dataIndex: 'num',
|
|
20907
|
+
title: "\u5B9E\u9645\u53D1\u51FA\u6570\u91CF",
|
|
20908
|
+
width: 150,
|
|
20909
|
+
align: 'center',
|
|
20910
|
+
ellipsis: true,
|
|
20911
|
+
render: renderTextEllipsis
|
|
20912
|
+
}, {
|
|
20913
|
+
dataIndex: 'price',
|
|
20914
|
+
title: "\u4EF7\u683C",
|
|
20915
|
+
width: 150,
|
|
20916
|
+
align: 'center',
|
|
20917
|
+
ellipsis: true,
|
|
20918
|
+
render: renderTextEllipsis
|
|
20919
|
+
}, {
|
|
20920
|
+
dataIndex: 'originalPrice',
|
|
20921
|
+
title: "\u539F\u4EF7",
|
|
20922
|
+
width: 150,
|
|
20923
|
+
align: 'center',
|
|
20924
|
+
ellipsis: true,
|
|
20925
|
+
render: renderTextEllipsis
|
|
20926
|
+
}, {
|
|
20927
|
+
dataIndex: 'giftTypeDesc',
|
|
20928
|
+
title: "\u8D60\u54C1\u7C7B\u578B",
|
|
20929
|
+
width: 150,
|
|
20930
|
+
align: 'center',
|
|
20931
|
+
ellipsis: true,
|
|
20932
|
+
render: renderTextEllipsis
|
|
20933
|
+
}, {
|
|
20934
|
+
dataIndex: 'unitName',
|
|
20935
|
+
title: "\u57FA\u672C\u5355\u4F4D",
|
|
20936
|
+
ellipsis: true,
|
|
20937
|
+
width: 150,
|
|
20938
|
+
align: 'center',
|
|
20939
|
+
render: renderTextEllipsis
|
|
20940
|
+
}, {
|
|
20941
|
+
dataIndex: 'auxUnitName',
|
|
20942
|
+
title: "\u8F85\u52A9\u5355\u4F4D",
|
|
20943
|
+
ellipsis: true,
|
|
20944
|
+
width: 150,
|
|
20945
|
+
align: 'center',
|
|
20946
|
+
render: renderTextEllipsis
|
|
20947
|
+
}]
|
|
20948
|
+
};
|
|
20949
|
+
};
|
|
20950
|
+
|
|
20951
|
+
var getYesOrNo$4 = function getYesOrNo(val) {
|
|
20952
|
+
if (isNull(val)) return null;
|
|
20953
|
+
return val ? '是' : '否';
|
|
20954
|
+
};
|
|
20955
|
+
var getColumns$3 = function getColumns(_ref) {
|
|
20956
|
+
var _ref$text = _ref.text,
|
|
20957
|
+
text = _ref$text === void 0 ? '' : _ref$text,
|
|
20958
|
+
disabled = _ref.disabled,
|
|
20959
|
+
updateHandle = _ref.updateHandle;
|
|
20960
|
+
return {
|
|
20961
|
+
//万里牛商品信息
|
|
20962
|
+
WLN_GOODS: [{
|
|
20963
|
+
dataIndex: 'wlnItemName',
|
|
20964
|
+
title: "\u5546\u54C1\u540D\u79F0",
|
|
20965
|
+
align: 'center',
|
|
20966
|
+
ellipsis: true,
|
|
20967
|
+
width: 250,
|
|
20968
|
+
render: renderTextEllipsis
|
|
20969
|
+
}, {
|
|
20970
|
+
dataIndex: 'goodsCode',
|
|
20971
|
+
title: "\u5546\u54C1\u7F16\u7801",
|
|
20972
|
+
align: 'center',
|
|
20973
|
+
ellipsis: true,
|
|
20974
|
+
width: 250,
|
|
20975
|
+
render: renderTextEllipsis
|
|
20976
|
+
}, {
|
|
20977
|
+
dataIndex: 'wlnSkuName',
|
|
20978
|
+
title: "sku\u540D\u79F0",
|
|
20979
|
+
align: 'center',
|
|
20980
|
+
ellipsis: true,
|
|
20981
|
+
width: 250,
|
|
20982
|
+
render: renderTextEllipsis
|
|
20983
|
+
}, {
|
|
20984
|
+
dataIndex: 'skuCode',
|
|
20985
|
+
title: "sku\u7F16\u7801",
|
|
20986
|
+
align: 'center',
|
|
20987
|
+
ellipsis: true,
|
|
20988
|
+
width: 250,
|
|
20989
|
+
render: renderTextEllipsis
|
|
20990
|
+
}, {
|
|
20991
|
+
dataIndex: 'skuName',
|
|
20992
|
+
title: "\u7EBF\u4E0Asku\u540D\u79F0",
|
|
20993
|
+
align: 'center',
|
|
20994
|
+
ellipsis: true,
|
|
20995
|
+
width: 250,
|
|
20996
|
+
render: renderTextEllipsis
|
|
20997
|
+
}, {
|
|
20998
|
+
dataIndex: 'olnSkuCode',
|
|
20999
|
+
title: "\u7EBF\u4E0Asku\u7F16\u7801",
|
|
21000
|
+
align: 'center',
|
|
21001
|
+
ellipsis: true,
|
|
21002
|
+
width: 150,
|
|
21003
|
+
render: renderTextEllipsis
|
|
21004
|
+
}, {
|
|
21005
|
+
dataIndex: 'sku',
|
|
21006
|
+
title: "\u7EBF\u4E0Asku id",
|
|
21007
|
+
align: 'center',
|
|
21008
|
+
ellipsis: true,
|
|
21009
|
+
width: 150,
|
|
21010
|
+
render: renderTextEllipsis
|
|
21011
|
+
}, {
|
|
21012
|
+
dataIndex: 'name',
|
|
21013
|
+
title: "\u7EBF\u4E0A\u5546\u54C1\u540D\u79F0",
|
|
21014
|
+
align: 'center',
|
|
21015
|
+
ellipsis: true,
|
|
21016
|
+
width: 250,
|
|
21017
|
+
render: renderTextEllipsis
|
|
21018
|
+
}, {
|
|
21019
|
+
dataIndex: 'pic',
|
|
21020
|
+
title: "\u7EBF\u4E0A\u56FE\u7247",
|
|
21021
|
+
align: 'center',
|
|
21022
|
+
ellipsis: true,
|
|
21023
|
+
width: 100,
|
|
21024
|
+
render: function render(val) {
|
|
21025
|
+
return /*#__PURE__*/React.createElement(Image, {
|
|
21026
|
+
width: 30,
|
|
21027
|
+
src: val
|
|
21028
|
+
});
|
|
21029
|
+
}
|
|
21030
|
+
}, {
|
|
21031
|
+
dataIndex: 'olnItemCOde',
|
|
21032
|
+
title: "\u7EBF\u4E0A\u5546\u54C1\u7F16\u7801",
|
|
21033
|
+
align: 'center',
|
|
21034
|
+
ellipsis: true,
|
|
21035
|
+
width: 150,
|
|
21036
|
+
render: renderTextEllipsis
|
|
21037
|
+
}, {
|
|
21038
|
+
dataIndex: 'code',
|
|
21039
|
+
title: "\u7EBF\u4E0A\u5546\u54C1id",
|
|
21040
|
+
align: 'center',
|
|
21041
|
+
ellipsis: true,
|
|
21042
|
+
width: 150,
|
|
21043
|
+
render: renderTextEllipsis
|
|
21044
|
+
}, {
|
|
21045
|
+
dataIndex: 'barCode',
|
|
21046
|
+
title: "\u5546\u54C1\u6761\u7801",
|
|
21047
|
+
align: 'center',
|
|
21048
|
+
ellipsis: true,
|
|
21049
|
+
width: 150,
|
|
21050
|
+
render: renderTextEllipsis
|
|
21051
|
+
}, {
|
|
21052
|
+
dataIndex: 'money',
|
|
21053
|
+
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
20432
21054
|
align: 'center',
|
|
20433
21055
|
ellipsis: true,
|
|
20434
|
-
|
|
20435
|
-
|
|
20436
|
-
val: text
|
|
20437
|
-
});
|
|
20438
|
-
}
|
|
21056
|
+
width: 100,
|
|
21057
|
+
render: renderTextEllipsis
|
|
20439
21058
|
}, {
|
|
20440
|
-
dataIndex: '
|
|
20441
|
-
title: "\
|
|
20442
|
-
width: 250,
|
|
21059
|
+
dataIndex: 'number',
|
|
21060
|
+
title: "".concat(text, "\u6570\u91CF"),
|
|
20443
21061
|
align: 'center',
|
|
20444
21062
|
ellipsis: true,
|
|
20445
|
-
|
|
20446
|
-
|
|
20447
|
-
|
|
20448
|
-
|
|
21063
|
+
width: 100,
|
|
21064
|
+
render: function render(val, record, index) {
|
|
21065
|
+
return record.canUpdateNumber && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
21066
|
+
style: {
|
|
21067
|
+
width: 70
|
|
21068
|
+
},
|
|
21069
|
+
value: val,
|
|
21070
|
+
min: 1,
|
|
21071
|
+
precision: 0,
|
|
21072
|
+
onChange: function onChange(num) {
|
|
21073
|
+
return updateHandle(num, index, 'number');
|
|
21074
|
+
}
|
|
21075
|
+
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
20449
21076
|
}
|
|
20450
21077
|
}, {
|
|
20451
|
-
dataIndex: '
|
|
20452
|
-
title: "\
|
|
20453
|
-
width: 150,
|
|
21078
|
+
dataIndex: 'share',
|
|
21079
|
+
title: "\u5E94\u6536\u6B3E",
|
|
20454
21080
|
align: 'center',
|
|
20455
21081
|
ellipsis: true,
|
|
21082
|
+
width: 70,
|
|
20456
21083
|
render: renderTextEllipsis
|
|
20457
21084
|
}, {
|
|
20458
|
-
dataIndex: '
|
|
20459
|
-
title: "\
|
|
20460
|
-
width: 150,
|
|
21085
|
+
dataIndex: 'discountedUnitPrice',
|
|
21086
|
+
title: "\u6298\u540E\u5355\u4EF7",
|
|
20461
21087
|
align: 'center',
|
|
20462
21088
|
ellipsis: true,
|
|
21089
|
+
width: 250,
|
|
20463
21090
|
render: renderTextEllipsis
|
|
20464
21091
|
}, {
|
|
20465
|
-
dataIndex: '
|
|
20466
|
-
title: "\
|
|
20467
|
-
width: 150,
|
|
21092
|
+
dataIndex: 'originPrice',
|
|
21093
|
+
title: "\u539F\u4EF7",
|
|
20468
21094
|
align: 'center',
|
|
20469
21095
|
ellipsis: true,
|
|
21096
|
+
width: 250,
|
|
20470
21097
|
render: renderTextEllipsis
|
|
20471
21098
|
}, {
|
|
20472
|
-
dataIndex: '
|
|
20473
|
-
title: "\
|
|
20474
|
-
width: 150,
|
|
21099
|
+
dataIndex: 'price',
|
|
21100
|
+
title: "\u5355\u4EF7",
|
|
20475
21101
|
align: 'center',
|
|
20476
21102
|
ellipsis: true,
|
|
21103
|
+
width: 250,
|
|
20477
21104
|
render: renderTextEllipsis
|
|
20478
21105
|
}, {
|
|
20479
|
-
dataIndex: '
|
|
20480
|
-
title: "\
|
|
20481
|
-
width: 150,
|
|
21106
|
+
dataIndex: 'receivable',
|
|
21107
|
+
title: "\u9500\u552E\u91D1\u989D",
|
|
20482
21108
|
align: 'center',
|
|
20483
21109
|
ellipsis: true,
|
|
21110
|
+
width: 250,
|
|
20484
21111
|
render: renderTextEllipsis
|
|
20485
21112
|
}, {
|
|
20486
|
-
dataIndex: '
|
|
20487
|
-
title: "\
|
|
20488
|
-
width: 150,
|
|
21113
|
+
dataIndex: 'type',
|
|
21114
|
+
title: "\u8D60\u54C1\u7C7B\u578B",
|
|
20489
21115
|
align: 'center',
|
|
20490
21116
|
ellipsis: true,
|
|
21117
|
+
width: 100,
|
|
20491
21118
|
render: renderTextEllipsis
|
|
20492
21119
|
}, {
|
|
20493
|
-
dataIndex: '
|
|
20494
|
-
title: "\
|
|
20495
|
-
width: 150,
|
|
21120
|
+
dataIndex: 'isPackage',
|
|
21121
|
+
title: "\u662F\u5426\u7EC4\u5408\u5546\u54C1",
|
|
20496
21122
|
align: 'center',
|
|
20497
21123
|
ellipsis: true,
|
|
20498
|
-
render:
|
|
21124
|
+
render: function render(val, record, index) {
|
|
21125
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
21126
|
+
value: val,
|
|
21127
|
+
onChange: function onChange(value) {
|
|
21128
|
+
updateHandle(value, index, 'isGift');
|
|
21129
|
+
},
|
|
21130
|
+
options: [{
|
|
21131
|
+
label: '是',
|
|
21132
|
+
value: true
|
|
21133
|
+
}, {
|
|
21134
|
+
label: '否',
|
|
21135
|
+
value: false
|
|
21136
|
+
}]
|
|
21137
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
|
|
21138
|
+
},
|
|
21139
|
+
width: 200
|
|
20499
21140
|
}, {
|
|
20500
|
-
dataIndex: '
|
|
20501
|
-
title: "\
|
|
20502
|
-
width: 150,
|
|
21141
|
+
dataIndex: 'hasRefund',
|
|
21142
|
+
title: "\u662F\u5426\u9000\u6B3E",
|
|
20503
21143
|
align: 'center',
|
|
20504
21144
|
ellipsis: true,
|
|
20505
|
-
|
|
21145
|
+
width: 100,
|
|
21146
|
+
render: function render(val, record, index) {
|
|
21147
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
21148
|
+
value: val,
|
|
21149
|
+
onChange: function onChange(value) {
|
|
21150
|
+
updateHandle(value, index, 'isGift');
|
|
21151
|
+
},
|
|
21152
|
+
options: [{
|
|
21153
|
+
label: '是',
|
|
21154
|
+
value: 1
|
|
21155
|
+
}, {
|
|
21156
|
+
label: '否',
|
|
21157
|
+
value: 0
|
|
21158
|
+
}]
|
|
21159
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
|
|
21160
|
+
}
|
|
20506
21161
|
}, {
|
|
20507
|
-
dataIndex: '
|
|
20508
|
-
title: "\
|
|
20509
|
-
width: 150,
|
|
21162
|
+
dataIndex: 'unit',
|
|
21163
|
+
title: "\u5355\u4F4D",
|
|
20510
21164
|
align: 'center',
|
|
20511
21165
|
ellipsis: true,
|
|
21166
|
+
width: 100,
|
|
20512
21167
|
render: renderTextEllipsis
|
|
20513
21168
|
}, {
|
|
20514
|
-
dataIndex: '
|
|
20515
|
-
title: "\
|
|
20516
|
-
ellipsis: true,
|
|
20517
|
-
width: 150,
|
|
21169
|
+
dataIndex: 'pkgGoodsName',
|
|
21170
|
+
title: "\u539F\u7EC4\u5408\u5546\u54C1\u540D\u79F0",
|
|
20518
21171
|
align: 'center',
|
|
21172
|
+
ellipsis: true,
|
|
21173
|
+
width: 200,
|
|
20519
21174
|
render: renderTextEllipsis
|
|
20520
21175
|
}, {
|
|
20521
|
-
dataIndex: '
|
|
20522
|
-
title: "\
|
|
21176
|
+
dataIndex: 'pkgGoodsCode',
|
|
21177
|
+
title: "\u539F\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
|
|
21178
|
+
align: 'center',
|
|
20523
21179
|
ellipsis: true,
|
|
20524
|
-
width:
|
|
21180
|
+
width: 200,
|
|
21181
|
+
render: renderTextEllipsis
|
|
21182
|
+
}, {
|
|
21183
|
+
dataIndex: 'pkgGoodsId',
|
|
21184
|
+
title: "\u539F\u7EC4\u5408\u5546\u54C1id",
|
|
20525
21185
|
align: 'center',
|
|
21186
|
+
ellipsis: true,
|
|
21187
|
+
width: 200,
|
|
20526
21188
|
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: [{
|
|
21189
|
+
}],
|
|
21190
|
+
WLN_REISSUE_GOODS: [{
|
|
20543
21191
|
dataIndex: 'wlnItemName',
|
|
20544
21192
|
title: "\u5546\u54C1\u540D\u79F0",
|
|
20545
21193
|
align: 'center',
|
|
@@ -20553,6 +21201,13 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
20553
21201
|
ellipsis: true,
|
|
20554
21202
|
width: 250,
|
|
20555
21203
|
render: renderTextEllipsis
|
|
21204
|
+
}, {
|
|
21205
|
+
dataIndex: 'wlnSkuName',
|
|
21206
|
+
title: "sku\u540D\u79F0",
|
|
21207
|
+
align: 'center',
|
|
21208
|
+
ellipsis: true,
|
|
21209
|
+
width: 250,
|
|
21210
|
+
render: renderTextEllipsis
|
|
20556
21211
|
}, {
|
|
20557
21212
|
dataIndex: 'skuCode',
|
|
20558
21213
|
title: "sku\u7F16\u7801",
|
|
@@ -20622,11 +21277,11 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
20622
21277
|
width: 150,
|
|
20623
21278
|
render: renderTextEllipsis
|
|
20624
21279
|
}, {
|
|
20625
|
-
dataIndex: '
|
|
20626
|
-
title: "\
|
|
21280
|
+
dataIndex: 'price',
|
|
21281
|
+
title: "\u5355\u4EF7",
|
|
20627
21282
|
align: 'center',
|
|
20628
21283
|
ellipsis: true,
|
|
20629
|
-
width:
|
|
21284
|
+
width: 250,
|
|
20630
21285
|
render: renderTextEllipsis
|
|
20631
21286
|
}, {
|
|
20632
21287
|
dataIndex: 'number',
|
|
@@ -20648,12 +21303,29 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
20648
21303
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
20649
21304
|
}
|
|
20650
21305
|
}, {
|
|
20651
|
-
dataIndex: '
|
|
20652
|
-
title: "\
|
|
20653
|
-
|
|
20654
|
-
|
|
20655
|
-
|
|
20656
|
-
|
|
21306
|
+
dataIndex: 'outPrice',
|
|
21307
|
+
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
21308
|
+
width: 150,
|
|
21309
|
+
render: function render(_, record, index) {
|
|
21310
|
+
var value;
|
|
21311
|
+
if ((typeof record.number === 'number' || record.number) && (typeof record.price === 'number' || record.price)) {
|
|
21312
|
+
value = +(record.number * record.price).toFixed(2);
|
|
21313
|
+
}
|
|
21314
|
+
if (record.canUpdateNumber && !disabled) {
|
|
21315
|
+
return /*#__PURE__*/React.createElement(InputNumber, {
|
|
21316
|
+
style: {
|
|
21317
|
+
width: 70
|
|
21318
|
+
},
|
|
21319
|
+
value: value,
|
|
21320
|
+
min: 1,
|
|
21321
|
+
precision: 0,
|
|
21322
|
+
onChange: function onChange(num) {
|
|
21323
|
+
return updateHandle(num, index, 'total');
|
|
21324
|
+
}
|
|
21325
|
+
});
|
|
21326
|
+
}
|
|
21327
|
+
return value || value === 0 ? value : '';
|
|
21328
|
+
}
|
|
20657
21329
|
}, {
|
|
20658
21330
|
dataIndex: 'type',
|
|
20659
21331
|
title: "\u8D60\u54C1\u7C7B\u578B",
|
|
@@ -20679,9 +21351,37 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
20679
21351
|
label: '否',
|
|
20680
21352
|
value: false
|
|
20681
21353
|
}]
|
|
20682
|
-
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$
|
|
21354
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
|
|
20683
21355
|
},
|
|
20684
21356
|
width: 100
|
|
21357
|
+
}, {
|
|
21358
|
+
dataIndex: 'unit',
|
|
21359
|
+
title: "\u5355\u4F4D",
|
|
21360
|
+
align: 'center',
|
|
21361
|
+
ellipsis: true,
|
|
21362
|
+
width: 100,
|
|
21363
|
+
render: renderTextEllipsis
|
|
21364
|
+
}, {
|
|
21365
|
+
dataIndex: 'pkgGoodsName',
|
|
21366
|
+
title: "\u539F\u7EC4\u5408\u5546\u54C1\u540D\u79F0",
|
|
21367
|
+
align: 'center',
|
|
21368
|
+
ellipsis: true,
|
|
21369
|
+
width: 200,
|
|
21370
|
+
render: renderTextEllipsis
|
|
21371
|
+
}, {
|
|
21372
|
+
dataIndex: 'pkgGoodsCode',
|
|
21373
|
+
title: "\u539F\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
|
|
21374
|
+
align: 'center',
|
|
21375
|
+
ellipsis: true,
|
|
21376
|
+
width: 200,
|
|
21377
|
+
render: renderTextEllipsis
|
|
21378
|
+
}, {
|
|
21379
|
+
dataIndex: 'pkgGoodsId',
|
|
21380
|
+
title: "\u539F\u7EC4\u5408\u5546\u54C1id",
|
|
21381
|
+
align: 'center',
|
|
21382
|
+
ellipsis: true,
|
|
21383
|
+
width: 200,
|
|
21384
|
+
render: renderTextEllipsis
|
|
20685
21385
|
}]
|
|
20686
21386
|
};
|
|
20687
21387
|
};
|
|
@@ -20691,7 +21391,7 @@ var isNumberOrNumberString$1 = function isNumberOrNumberString(value) {
|
|
|
20691
21391
|
if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
|
|
20692
21392
|
return false;
|
|
20693
21393
|
};
|
|
20694
|
-
var getYesOrNo$
|
|
21394
|
+
var getYesOrNo$5 = function getYesOrNo(val) {
|
|
20695
21395
|
if (isNull(val)) return null;
|
|
20696
21396
|
return val ? '是' : '否';
|
|
20697
21397
|
};
|
|
@@ -20806,7 +21506,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
20806
21506
|
title: "\u662F\u5426\u53D6\u6D88",
|
|
20807
21507
|
width: 150,
|
|
20808
21508
|
render: function render(val) {
|
|
20809
|
-
return /*#__PURE__*/React.createElement("span", null, getYesOrNo$
|
|
21509
|
+
return /*#__PURE__*/React.createElement("span", null, getYesOrNo$5(val));
|
|
20810
21510
|
}
|
|
20811
21511
|
}, {
|
|
20812
21512
|
dataIndex: 'isGift',
|
|
@@ -20825,7 +21525,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
20825
21525
|
label: '否',
|
|
20826
21526
|
value: 0
|
|
20827
21527
|
}]
|
|
20828
|
-
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$
|
|
21528
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$5(val));
|
|
20829
21529
|
}
|
|
20830
21530
|
}, {
|
|
20831
21531
|
dataIndex: 'skuNote',
|
|
@@ -20951,7 +21651,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
20951
21651
|
label: '否',
|
|
20952
21652
|
value: 0
|
|
20953
21653
|
}]
|
|
20954
|
-
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$
|
|
21654
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$5(val));
|
|
20955
21655
|
}
|
|
20956
21656
|
}].map(function (item) {
|
|
20957
21657
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
@@ -21080,7 +21780,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
21080
21780
|
label: '否',
|
|
21081
21781
|
value: 0
|
|
21082
21782
|
}]
|
|
21083
|
-
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$
|
|
21783
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$5(val));
|
|
21084
21784
|
}
|
|
21085
21785
|
}].map(function (item) {
|
|
21086
21786
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
@@ -23800,6 +24500,9 @@ var isErpType = {
|
|
|
23800
24500
|
},
|
|
23801
24501
|
isJky: function isJky(type) {
|
|
23802
24502
|
return ['JKY_GOODS', 'JKY_REISSUE_GOODS'].includes(type);
|
|
24503
|
+
},
|
|
24504
|
+
isWln: function isWln(type) {
|
|
24505
|
+
return ['WLN_GOODS', 'WLN_REISSUE_GOODS'].includes(type);
|
|
23803
24506
|
}
|
|
23804
24507
|
};
|
|
23805
24508
|
var processGoods$1 = function processGoods(_ref) {
|
|
@@ -23859,6 +24562,13 @@ var processGoods$1 = function processGoods(_ref) {
|
|
|
23859
24562
|
canUpdateNumber: canUpdateNumber,
|
|
23860
24563
|
source: source
|
|
23861
24564
|
});
|
|
24565
|
+
} else if (isErpType.isWln(type)) {
|
|
24566
|
+
newList = processWlnGoods$1({
|
|
24567
|
+
list: list,
|
|
24568
|
+
type: type,
|
|
24569
|
+
canUpdateNumber: canUpdateNumber,
|
|
24570
|
+
source: source
|
|
24571
|
+
});
|
|
23862
24572
|
} else {
|
|
23863
24573
|
newList = processDefaultGoods({
|
|
23864
24574
|
list: list,
|
|
@@ -23941,11 +24651,63 @@ var processJkyGoods$1 = function processJkyGoods(_ref3) {
|
|
|
23941
24651
|
});
|
|
23942
24652
|
});
|
|
23943
24653
|
};
|
|
23944
|
-
|
|
23945
|
-
var processWdtGoods$1 = function processWdtGoods(_ref4) {
|
|
24654
|
+
var processWlnGoods$1 = function processWlnGoods(_ref4) {
|
|
23946
24655
|
var list = _ref4.list,
|
|
23947
|
-
type = _ref4.type,
|
|
23948
24656
|
canUpdateNumber = _ref4.canUpdateNumber;
|
|
24657
|
+
return list.map(function (item) {
|
|
24658
|
+
var goodName = item.goodName,
|
|
24659
|
+
goodShortName = item.goodShortName,
|
|
24660
|
+
goodNo = item.goodNo,
|
|
24661
|
+
goodId = item.goodId,
|
|
24662
|
+
goodBarcode = item.goodBarcode,
|
|
24663
|
+
propertiesValue = item.propertiesValue,
|
|
24664
|
+
specNo = item.specNo,
|
|
24665
|
+
specId = item.specId,
|
|
24666
|
+
specImgUrl = item.specImgUrl,
|
|
24667
|
+
specBarcode = item.specBarcode,
|
|
24668
|
+
brandName = item.brandName,
|
|
24669
|
+
retailPrice = item.retailPrice,
|
|
24670
|
+
marketPrice = item.marketPrice,
|
|
24671
|
+
unitName = item.unitName,
|
|
24672
|
+
skuType = item.skuType;
|
|
24673
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
24674
|
+
wlnItemName: goodName,
|
|
24675
|
+
goodsCode: goodNo,
|
|
24676
|
+
wlnSkuName: propertiesValue,
|
|
24677
|
+
skuCode: specNo,
|
|
24678
|
+
// skuName: '', // "线上sku名称",
|
|
24679
|
+
// olnSkuCode: '', // "线上sku编码",
|
|
24680
|
+
// sku: '', // "线上sku id",
|
|
24681
|
+
// name: '', // "线上商品名称",
|
|
24682
|
+
// pic: '', // "线上图片",
|
|
24683
|
+
// olnItemCOde: '', // "线上商品编码",
|
|
24684
|
+
// code: '', // "线上商品id",
|
|
24685
|
+
barCode: goodBarcode,
|
|
24686
|
+
// money: '', // "实付金额",
|
|
24687
|
+
number: 1,
|
|
24688
|
+
share: '',
|
|
24689
|
+
// discountedUnitPrice: '', // "折后单价",
|
|
24690
|
+
originPrice: marketPrice,
|
|
24691
|
+
price: retailPrice,
|
|
24692
|
+
receivable: +((marketPrice || 0) * (retailPrice || 0)).toFixed(2),
|
|
24693
|
+
// type: '', // "赠品类型",
|
|
24694
|
+
isPackage: skuType === 'combine',
|
|
24695
|
+
// hasRefund: '', // 是否退款,
|
|
24696
|
+
unit: unitName,
|
|
24697
|
+
// pkgGoodsName: '', // "原组合商品名称",
|
|
24698
|
+
// pkgGoodsCode: '', // "原组合商品编码",
|
|
24699
|
+
// pkgGoodsId: '', // "原组合商品id",
|
|
24700
|
+
uuid: uuid(),
|
|
24701
|
+
canDelete: true,
|
|
24702
|
+
canEdit: true
|
|
24703
|
+
});
|
|
24704
|
+
});
|
|
24705
|
+
};
|
|
24706
|
+
// 处理不同类型的商品数据
|
|
24707
|
+
var processWdtGoods$1 = function processWdtGoods(_ref5) {
|
|
24708
|
+
var list = _ref5.list,
|
|
24709
|
+
type = _ref5.type,
|
|
24710
|
+
canUpdateNumber = _ref5.canUpdateNumber;
|
|
23949
24711
|
return list.map(function (item) {
|
|
23950
24712
|
var processedItem = _objectSpread2(_objectSpread2({}, item), {}, {
|
|
23951
24713
|
uuid: uuid(),
|
|
@@ -23963,9 +24725,9 @@ var processWdtGoods$1 = function processWdtGoods(_ref4) {
|
|
|
23963
24725
|
return processedItem;
|
|
23964
24726
|
});
|
|
23965
24727
|
};
|
|
23966
|
-
var processBsE3Goods$1 = function processBsE3Goods(
|
|
23967
|
-
var list =
|
|
23968
|
-
canUpdateNumber =
|
|
24728
|
+
var processBsE3Goods$1 = function processBsE3Goods(_ref6) {
|
|
24729
|
+
var list = _ref6.list,
|
|
24730
|
+
canUpdateNumber = _ref6.canUpdateNumber;
|
|
23969
24731
|
return list.map(function (item) {
|
|
23970
24732
|
var specNo = item.specNo,
|
|
23971
24733
|
specId = item.specId,
|
|
@@ -24000,9 +24762,9 @@ var processBsE3Goods$1 = function processBsE3Goods(_ref5) {
|
|
|
24000
24762
|
});
|
|
24001
24763
|
});
|
|
24002
24764
|
};
|
|
24003
|
-
var processGyGoods$1 = function processGyGoods(
|
|
24004
|
-
var list =
|
|
24005
|
-
source =
|
|
24765
|
+
var processGyGoods$1 = function processGyGoods(_ref7) {
|
|
24766
|
+
var list = _ref7.list,
|
|
24767
|
+
source = _ref7.source;
|
|
24006
24768
|
var isFormWorkOrder = source === 'workOrder';
|
|
24007
24769
|
return list.map(function (item) {
|
|
24008
24770
|
var goodName = item.goodName,
|
|
@@ -24029,8 +24791,8 @@ var processGyGoods$1 = function processGyGoods(_ref6) {
|
|
|
24029
24791
|
});
|
|
24030
24792
|
});
|
|
24031
24793
|
};
|
|
24032
|
-
var processJstGoods$1 = function processJstGoods(
|
|
24033
|
-
var list =
|
|
24794
|
+
var processJstGoods$1 = function processJstGoods(_ref8) {
|
|
24795
|
+
var list = _ref8.list;
|
|
24034
24796
|
return list.map(function (item) {
|
|
24035
24797
|
return {
|
|
24036
24798
|
name: item.goodName,
|
|
@@ -24048,9 +24810,9 @@ var processJstGoods$1 = function processJstGoods(_ref7) {
|
|
|
24048
24810
|
};
|
|
24049
24811
|
});
|
|
24050
24812
|
};
|
|
24051
|
-
var processKmGoods$1 = function processKmGoods(
|
|
24052
|
-
var list =
|
|
24053
|
-
type =
|
|
24813
|
+
var processKmGoods$1 = function processKmGoods(_ref9) {
|
|
24814
|
+
var list = _ref9.list,
|
|
24815
|
+
type = _ref9.type;
|
|
24054
24816
|
var initParamsMap = {
|
|
24055
24817
|
KM_GOODS: {
|
|
24056
24818
|
num: 1
|
|
@@ -24089,9 +24851,9 @@ var processKmGoods$1 = function processKmGoods(_ref8) {
|
|
|
24089
24851
|
}, initParamsMap[type] || {});
|
|
24090
24852
|
});
|
|
24091
24853
|
};
|
|
24092
|
-
var processDefaultGoods = function processDefaultGoods(
|
|
24093
|
-
var list =
|
|
24094
|
-
canUpdateNumber =
|
|
24854
|
+
var processDefaultGoods = function processDefaultGoods(_ref10) {
|
|
24855
|
+
var list = _ref10.list,
|
|
24856
|
+
canUpdateNumber = _ref10.canUpdateNumber;
|
|
24095
24857
|
return list.map(function (item) {
|
|
24096
24858
|
var goodsId = item.goodsId,
|
|
24097
24859
|
name = item.name,
|
|
@@ -24140,6 +24902,8 @@ var GoodsModalMap = {
|
|
|
24140
24902
|
JY_REISSUE_GOODS: JyGoodsModal$1,
|
|
24141
24903
|
JKY_GOODS: JkyGoodsModal$1,
|
|
24142
24904
|
JKY_REISSUE_GOODS: JkyGoodsModal$1,
|
|
24905
|
+
WLN_REISSUE_GOODS: WlnGoodsModal$1,
|
|
24906
|
+
WLN_GOODS: WlnGoodsModal$1,
|
|
24143
24907
|
OTHER_GOODS: GoodsModal$2
|
|
24144
24908
|
};
|
|
24145
24909
|
var systemOrderNoMap = {
|
|
@@ -24154,6 +24918,7 @@ var systemOrderNoMap = {
|
|
|
24154
24918
|
JY_REISSUE_GOODS: 'tradeNo',
|
|
24155
24919
|
JKY_GOODS: 'tradeNo',
|
|
24156
24920
|
JKY_REISSUE_GOODS: 'tradeNo',
|
|
24921
|
+
WLN_REISSUE_GOODS: 'tradeNo',
|
|
24157
24922
|
KM_REISSUE_GOODS: 'sid',
|
|
24158
24923
|
KM_RETURN_GOODS: 'sid',
|
|
24159
24924
|
KM_EXCHANGE_GOODS: 'sid',
|
|
@@ -24411,6 +25176,9 @@ var getButtonText = function getButtonText() {
|
|
|
24411
25176
|
if (['JKY_GOODS', 'JKY_REISSUE_GOODS'].includes(type)) {
|
|
24412
25177
|
return '选择吉客云ERP商品';
|
|
24413
25178
|
}
|
|
25179
|
+
if (['WLN_GOODS', 'WLN_REISSUE_GOODS'].includes(type)) {
|
|
25180
|
+
return '选择万里牛ERP商品';
|
|
25181
|
+
}
|
|
24414
25182
|
return '选择商品';
|
|
24415
25183
|
};
|
|
24416
25184
|
var GoodItem$1 = function GoodItem(props) {
|
|
@@ -24470,8 +25238,8 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
24470
25238
|
var jstReturnGoods = Form === null || Form === void 0 ? void 0 : Form.useWatch('3979edfd6d', form);
|
|
24471
25239
|
var isShowSelectTradeGoods = type !== 'JST_EXCHANGE_GOODS' || (jstReturnGoods === null || jstReturnGoods === void 0 ? void 0 : jstReturnGoods.jstSystemOrderNo);
|
|
24472
25240
|
// 判断是否为是否展示系统单筛选项
|
|
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;
|
|
25241
|
+
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;
|
|
25242
|
+
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
25243
|
var refModal = useRef();
|
|
24476
25244
|
console.debug('表格数据', value);
|
|
24477
25245
|
var handleDelete = function handleDelete(record, index) {
|
|
@@ -24566,6 +25334,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
24566
25334
|
case 'JY_REISSUE_GOODS':
|
|
24567
25335
|
case 'JKY_GOODS':
|
|
24568
25336
|
case 'JKY_REISSUE_GOODS':
|
|
25337
|
+
case 'WLN_REISSUE_GOODS':
|
|
24569
25338
|
case 'SKX_GOODS':
|
|
24570
25339
|
case 'SKX_RETURN_GOODS':
|
|
24571
25340
|
{
|
|
@@ -24825,6 +25594,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
24825
25594
|
templateDetail: templateDetail
|
|
24826
25595
|
}));
|
|
24827
25596
|
};
|
|
25597
|
+
GoodItem$1.displayName = 'GoodItem';
|
|
24828
25598
|
|
|
24829
25599
|
var BsGoods = function BsGoods(props) {
|
|
24830
25600
|
var _withInfo$current3, _withInfo$current4;
|
|
@@ -25676,6 +26446,10 @@ var getOrderListSingleton = function getOrderListSingleton(orderNo) {
|
|
|
25676
26446
|
}
|
|
25677
26447
|
}).then(function (data) {
|
|
25678
26448
|
if (data === null || data === void 0 ? void 0 : data.success) {
|
|
26449
|
+
var _data$data;
|
|
26450
|
+
if ((_data$data = data.data) === null || _data$data === void 0 ? void 0 : _data$data.tradeNo) {
|
|
26451
|
+
data.data.tradeNo = orderNo;
|
|
26452
|
+
}
|
|
25679
26453
|
resolve(data.data);
|
|
25680
26454
|
// 延迟10秒清除,保证订单的时效性
|
|
25681
26455
|
setTimeout(function () {
|
|
@@ -27661,6 +28435,32 @@ var componentMap$2 = {
|
|
|
27661
28435
|
},
|
|
27662
28436
|
getOrderList: jkyUtils.getJkyOrderListSingleton
|
|
27663
28437
|
},
|
|
28438
|
+
WLN_GOODS: {
|
|
28439
|
+
type: 'jky',
|
|
28440
|
+
key: 'wlnGoods',
|
|
28441
|
+
name: '吉客云',
|
|
28442
|
+
orderNo: 'tradeNo',
|
|
28443
|
+
goodDetailOrderNo: 'tradeNo',
|
|
28444
|
+
eventNameMap: {
|
|
28445
|
+
// pubsub 事件
|
|
28446
|
+
type: 'wlnType',
|
|
28447
|
+
updateGoodsHandle: updateWlnGoodsHandle,
|
|
28448
|
+
selectListReturn: 'wlnSelectListReturn',
|
|
28449
|
+
selectList: 'wlnSelectList',
|
|
28450
|
+
reissueSelectList: 'wlnReissueSelectList',
|
|
28451
|
+
reissueSelectListReturn: 'wlnReissueSelectListReturn',
|
|
28452
|
+
reissueDeleteGood: 'wlnReissueDeleteGood',
|
|
28453
|
+
changeShopCode: 'wlnChangeShopCode',
|
|
28454
|
+
reissueType: 'wlnReissueType',
|
|
28455
|
+
returnType: 'wlnReturnType',
|
|
28456
|
+
returnSelectListReturn: 'wlnReturnSelectListReturn',
|
|
28457
|
+
returnSelectList: 'wlnReturnSelectList',
|
|
28458
|
+
deleteGood: 'wlnDeleteGood',
|
|
28459
|
+
returnDeleteGood: 'wlnReturnDeleteGood',
|
|
28460
|
+
exchangeDeleteGood: 'wlnExchangeDeleteGood'
|
|
28461
|
+
},
|
|
28462
|
+
getOrderList: wlnUtils.getOrderListSingleton
|
|
28463
|
+
},
|
|
27664
28464
|
WDT_AFTERSALE_GOODS: {
|
|
27665
28465
|
type: 'wdtAftersale',
|
|
27666
28466
|
key: 'wdtAftersaleGoods',
|
|
@@ -28845,6 +29645,22 @@ var typeMap$2 = {
|
|
|
28845
29645
|
goodDetailsKey: 'goodsDetail',
|
|
28846
29646
|
isShowSelectTradeGoods: true,
|
|
28847
29647
|
showModeBtn: true
|
|
29648
|
+
},
|
|
29649
|
+
WLN_REISSUE_GOODS: {
|
|
29650
|
+
compType: '补发',
|
|
29651
|
+
key: 'wlnReissueGoods',
|
|
29652
|
+
typeName: 'wlnReissueType',
|
|
29653
|
+
systemOrder: 'wlnSystemOrder',
|
|
29654
|
+
systemOrderNo: 'wlnSystemOrderNo',
|
|
29655
|
+
getOrderList: wlnUtils.getOrderListSingleton,
|
|
29656
|
+
updateGoodsHandle: updateWlnGoodsHandle,
|
|
29657
|
+
alwaysShowChooseErpGoodsBtn: true,
|
|
29658
|
+
orderTypeKey: 'orderType',
|
|
29659
|
+
oIdKey: 'billNo',
|
|
29660
|
+
outerOiIdKey: 'tpTid',
|
|
29661
|
+
goodDetailsKey: 'items',
|
|
29662
|
+
isShowSelectTradeGoods: true,
|
|
29663
|
+
showModeBtn: true
|
|
28848
29664
|
}
|
|
28849
29665
|
};
|
|
28850
29666
|
var PublicReissue = function PublicReissue(props) {
|
|
@@ -28904,7 +29720,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28904
29720
|
case 0:
|
|
28905
29721
|
(_typeMap$type5 = typeMap$2[type]) === null || _typeMap$type5 === void 0 ? void 0 : _typeMap$type5.getOrderList(orderNo).then(function (data) {
|
|
28906
29722
|
var _valueRef$current3, _typeMap$type6, _typeMap$type7, _typeMap$type11, _ref3, _typeMap$type12;
|
|
28907
|
-
var orders = data || [];
|
|
29723
|
+
var orders = (type === 'WLN_REISSUE_GOODS' ? data === null || data === void 0 ? void 0 : data.orders : data) || [];
|
|
28908
29724
|
var showOrderInfo = orders === null || orders === void 0 ? void 0 : orders.map(function (orderItem) {
|
|
28909
29725
|
return _defineProperty({}, typeMap$2[type].oIdKey, orderItem[typeMap$2[type].oIdKey]);
|
|
28910
29726
|
});
|
|
@@ -28953,6 +29769,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28953
29769
|
// 切换到非原单,清空列表
|
|
28954
29770
|
newValue[(_typeMap$type15 = typeMap$2[type]) === null || _typeMap$type15 === void 0 ? void 0 : _typeMap$type15.key] = [];
|
|
28955
29771
|
}
|
|
29772
|
+
console.log('**** changeTypeHandle', newValue);
|
|
28956
29773
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
28957
29774
|
};
|
|
28958
29775
|
var handleModeChange = function handleModeChange(mode) {
|
|
@@ -29077,6 +29894,10 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
29077
29894
|
orderRest = {
|
|
29078
29895
|
canEdit: true
|
|
29079
29896
|
};
|
|
29897
|
+
} else if (['WLN_REISSUE_GOODS'].includes(type)) {
|
|
29898
|
+
orderRest = {
|
|
29899
|
+
canEdit: true
|
|
29900
|
+
};
|
|
29080
29901
|
}
|
|
29081
29902
|
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
29903
|
var hasGoodDetails = orders === null || orders === void 0 ? void 0 : orders.some(function (order) {
|
|
@@ -29595,7 +30416,7 @@ var GoodsModal$5 = function GoodsModal(props) {
|
|
|
29595
30416
|
key: item.value
|
|
29596
30417
|
}, item.label);
|
|
29597
30418
|
})), /*#__PURE__*/React.createElement(Search$1, {
|
|
29598
|
-
placeholder: "\u5B9D\u8D1D\
|
|
30419
|
+
placeholder: "\u5B9D\u8D1D\u6807\u9898",
|
|
29599
30420
|
allowClear: true,
|
|
29600
30421
|
enterButton: "\u641C\u7D22",
|
|
29601
30422
|
style: {
|