@kmkf-fe-packages/basic-components 2.7.7-beta.0 → 2.8.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 +79 -895
- package/dist/src/bs/component/GoodItem/index.d.ts +1 -4
- package/dist/src/constants/systemOrderColumnsMap.d.ts +2 -10
- package/package.json +3 -3
- package/dist/src/bs/component/model/Columns/Erp/wln.d.ts +0 -15
- package/dist/src/bs/component/model/WlnGoodsModal/GoodsList.d.ts +0 -32
- package/dist/src/bs/component/model/WlnGoodsModal/index.d.ts +0 -5
package/dist/index.esm.js
CHANGED
|
@@ -8594,10 +8594,6 @@ 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
|
-
},
|
|
8601
8597
|
RETURN_EXCHANGE_GOODS_REVIEW_STATUS: {
|
|
8602
8598
|
status: 'returnExchangeGoodsReviewStatusValue',
|
|
8603
8599
|
reason: 'returnExchangeGoodsReviewStatusReason'
|
|
@@ -8626,8 +8622,7 @@ var processSceneStatus = function processSceneStatus(getValue) {
|
|
|
8626
8622
|
BS_E3_WAREHOUSING_STATUS: 'bsE3InStockStatusItemList',
|
|
8627
8623
|
MSG_STATUS: 'msgStatusValues',
|
|
8628
8624
|
WDT_WAREHOUSING_STATUS: 'wdtInStockStatusItemList',
|
|
8629
|
-
JKY_WAREHOUSING_STATUS: 'jkyInStockStatusItemList'
|
|
8630
|
-
WLN_WAREHOUSING_STATUS: 'wlnInStockStatusItemList'
|
|
8625
|
+
JKY_WAREHOUSING_STATUS: 'jkyInStockStatusItemList'
|
|
8631
8626
|
};
|
|
8632
8627
|
return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(STATUS_LIST_MAP[nex.workOrderComponentType])), []));
|
|
8633
8628
|
};
|
|
@@ -9462,7 +9457,6 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
|
|
|
9462
9457
|
AGREE_REFUND_STATUS: processCallBackStatus,
|
|
9463
9458
|
REJECT_REFUND_STATUS: processCallBackStatus,
|
|
9464
9459
|
ERP_AFTER_SALE_STATUS: processCallBackStatus,
|
|
9465
|
-
ERP_AFTER_SALES_ORDER_REVIEW_STATUS: processCallBackStatus,
|
|
9466
9460
|
AGREE_RETURN_GOODS_STATUS: processCallBackStatus,
|
|
9467
9461
|
REJECT_RETURN_GOODS_STATUS: processCallBackStatus,
|
|
9468
9462
|
RETURN_EXCHANGE_GOODS_REVIEW_STATUS: processCallBackStatus,
|
|
@@ -9473,7 +9467,6 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
|
|
|
9473
9467
|
BS_E3_WAREHOUSING_STATUS: processSceneStatus,
|
|
9474
9468
|
MSG_STATUS: processSceneStatus,
|
|
9475
9469
|
WDT_WAREHOUSING_STATUS: processSceneStatus,
|
|
9476
|
-
WLN_WAREHOUSING_STATUS: processSceneStatus,
|
|
9477
9470
|
JKY_WAREHOUSING_STATUS: processSceneStatus,
|
|
9478
9471
|
BS_LOGISTICS: processErpLogistics,
|
|
9479
9472
|
WLN_LOGISTICS: processErpLogistics,
|
|
@@ -11655,7 +11648,7 @@ var GoodsModal = function GoodsModal(props) {
|
|
|
11655
11648
|
key: item.value
|
|
11656
11649
|
}, item.label);
|
|
11657
11650
|
})), /*#__PURE__*/React.createElement(Search, {
|
|
11658
|
-
placeholder: searchParams.type !== 'orderProduct' ? platform === 'taobao' ? '
|
|
11651
|
+
placeholder: searchParams.type !== 'orderProduct' ? platform === 'taobao' ? '宝贝链接,标题' : '商品ID' : '宝贝标题',
|
|
11659
11652
|
// enterButton="搜索"
|
|
11660
11653
|
className: "search",
|
|
11661
11654
|
value: platform === 'taobao' ? searchParams.title : searchParams.numIids,
|
|
@@ -14126,9 +14119,9 @@ var jstGoods = function jstGoods(props) {
|
|
|
14126
14119
|
changeIndex = _useState2[0],
|
|
14127
14120
|
setChangeIndex = _useState2[1]; //选中的包裹
|
|
14128
14121
|
var sendOptions = SendDataCenter.getInstance(platformType).getSendData();
|
|
14129
|
-
var isSelectName = ['wdt', 'bsE3', 'km', 'gy', 'jst', 'jy', 'jky'
|
|
14122
|
+
var isSelectName = ['wdt', 'bsE3', 'km', 'gy', 'jst', 'jy', 'jky'].includes(platformType);
|
|
14130
14123
|
var expressDateInstance = ExpressData.getInstance(platformType);
|
|
14131
|
-
var isSendGoodSavedId = isSelectName && !['jst'
|
|
14124
|
+
var isSendGoodSavedId = isSelectName && !['jst'].includes(platformType);
|
|
14132
14125
|
useEffect(function () {
|
|
14133
14126
|
//没有值塞个默认值
|
|
14134
14127
|
if (!(value === null || value === void 0 ? void 0 : value.length) && type !== 1) {
|
|
@@ -15729,122 +15722,6 @@ var jkyColumns = [{
|
|
|
15729
15722
|
}
|
|
15730
15723
|
}];
|
|
15731
15724
|
|
|
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
|
-
|
|
15848
15725
|
var getColumnsMap = function getColumnsMap() {
|
|
15849
15726
|
return cloneDeep({
|
|
15850
15727
|
gy: gyColumns,
|
|
@@ -15853,8 +15730,7 @@ var getColumnsMap = function getColumnsMap() {
|
|
|
15853
15730
|
bse3: bse3Columns,
|
|
15854
15731
|
km: kmColumns,
|
|
15855
15732
|
jy: jyColumns,
|
|
15856
|
-
jky: jkyColumns
|
|
15857
|
-
wln: wlnColumns
|
|
15733
|
+
jky: jkyColumns
|
|
15858
15734
|
});
|
|
15859
15735
|
};
|
|
15860
15736
|
var getColumnsBaseInfo = function getColumnsBaseInfo() {
|
|
@@ -16286,33 +16162,30 @@ var GoodList = function GoodList(props, ref) {
|
|
|
16286
16162
|
selectedRowKeys: selectIds,
|
|
16287
16163
|
fixed: true,
|
|
16288
16164
|
onSelect: function onSelect(record, selected) {
|
|
16289
|
-
var uniqueKey = "".concat(record.goodNo, "-").concat(record.specNo);
|
|
16290
16165
|
if (selected) {
|
|
16291
|
-
setSelectIds([].concat(_toConsumableArray(selectIds), [
|
|
16166
|
+
setSelectIds([].concat(_toConsumableArray(selectIds), [record.specNo]));
|
|
16292
16167
|
setSelect([].concat(_toConsumableArray(selectList), [record]));
|
|
16293
16168
|
} else {
|
|
16294
16169
|
setSelectIds(selectIds.filter(function (t) {
|
|
16295
|
-
return t !==
|
|
16170
|
+
return t !== record.specNo;
|
|
16296
16171
|
}));
|
|
16297
16172
|
setSelect(selectList.filter(function (t) {
|
|
16298
|
-
return
|
|
16173
|
+
return t.specNo !== record.specNo;
|
|
16299
16174
|
}));
|
|
16300
16175
|
}
|
|
16301
16176
|
},
|
|
16302
16177
|
onSelectAll: function onSelectAll(selected, selectedRows, changeRows) {
|
|
16303
16178
|
if (selected) {
|
|
16304
|
-
|
|
16305
|
-
return
|
|
16306
|
-
});
|
|
16307
|
-
setSelectIds([].concat(_toConsumableArray(selectIds), _toConsumableArray(changeKeys)));
|
|
16179
|
+
setSelectIds([].concat(_toConsumableArray(selectIds), _toConsumableArray(changeRows.map(function (t) {
|
|
16180
|
+
return t.specNo;
|
|
16181
|
+
}))));
|
|
16308
16182
|
setSelect([].concat(_toConsumableArray(selectList), _toConsumableArray(changeRows)));
|
|
16309
16183
|
} else {
|
|
16310
|
-
|
|
16311
|
-
return
|
|
16312
|
-
});
|
|
16313
|
-
setSelectIds(difference(selectIds, _changeKeys));
|
|
16184
|
+
setSelectIds(difference(selectIds, changeRows.map(function (t) {
|
|
16185
|
+
return t.specNo;
|
|
16186
|
+
})));
|
|
16314
16187
|
var list = differenceWith(selectList, changeRows, function (arrVal, othVal) {
|
|
16315
|
-
return
|
|
16188
|
+
return arrVal.specNo !== othVal.specNo;
|
|
16316
16189
|
});
|
|
16317
16190
|
setSelect(list);
|
|
16318
16191
|
}
|
|
@@ -16320,12 +16193,11 @@ var GoodList = function GoodList(props, ref) {
|
|
|
16320
16193
|
};
|
|
16321
16194
|
var showTable = function showTable() {
|
|
16322
16195
|
var handleDelete = function handleDelete(record) {
|
|
16323
|
-
var uniqueKey = "".concat(record.goodNo, "-").concat(record.specNo);
|
|
16324
16196
|
setSelectIds(selectIds.filter(function (t) {
|
|
16325
|
-
return t !==
|
|
16197
|
+
return t !== record.specNo;
|
|
16326
16198
|
}));
|
|
16327
16199
|
setSelect(selectList.filter(function (t) {
|
|
16328
|
-
return
|
|
16200
|
+
return t.specNo !== record.specNo;
|
|
16329
16201
|
}));
|
|
16330
16202
|
};
|
|
16331
16203
|
var showColumns = [{
|
|
@@ -16349,9 +16221,7 @@ var GoodList = function GoodList(props, ref) {
|
|
|
16349
16221
|
}
|
|
16350
16222
|
}, /*#__PURE__*/React.createElement(Table, {
|
|
16351
16223
|
columns: showColumns,
|
|
16352
|
-
rowKey:
|
|
16353
|
-
return "".concat(record.goodNo, "-").concat(record.specNo);
|
|
16354
|
-
},
|
|
16224
|
+
rowKey: 'specNo',
|
|
16355
16225
|
dataSource: selectList,
|
|
16356
16226
|
scroll: {
|
|
16357
16227
|
x: '100%',
|
|
@@ -16381,9 +16251,7 @@ var GoodList = function GoodList(props, ref) {
|
|
|
16381
16251
|
}, /*#__PURE__*/React.createElement(Table, _objectSpread2(_objectSpread2({
|
|
16382
16252
|
className: "GoodModalColumns",
|
|
16383
16253
|
rowSelection: rowSelection,
|
|
16384
|
-
rowKey:
|
|
16385
|
-
return "".concat(record.goodNo, "-").concat(record.specNo);
|
|
16386
|
-
},
|
|
16254
|
+
rowKey: "specNo",
|
|
16387
16255
|
columns: columns,
|
|
16388
16256
|
scroll: {
|
|
16389
16257
|
x: '100%',
|
|
@@ -17933,27 +17801,6 @@ var componentMap$1 = {
|
|
|
17933
17801
|
onChange: props.handleChange
|
|
17934
17802
|
}));
|
|
17935
17803
|
},
|
|
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
|
-
},
|
|
17957
17804
|
Date: function Date(props) {
|
|
17958
17805
|
return /*#__PURE__*/React.createElement(RangePicker, _objectSpread2(_objectSpread2({
|
|
17959
17806
|
placeholder: ["".concat(props.name, "\u5F00\u59CB\u65F6\u95F4"), "".concat(props.name, "\u7ED3\u675F\u65F6\u95F4")],
|
|
@@ -18896,7 +18743,7 @@ var getTableData$5 = function getTableData(_ref, formData) {
|
|
|
18896
18743
|
data: {
|
|
18897
18744
|
pageSize: pageSize,
|
|
18898
18745
|
pageNo: current,
|
|
18899
|
-
platform: '
|
|
18746
|
+
platform: 'JY_ERP',
|
|
18900
18747
|
conditionList: conditionList
|
|
18901
18748
|
}
|
|
18902
18749
|
}).then(function (res) {
|
|
@@ -18915,11 +18762,13 @@ var getTableData$5 = function getTableData(_ref, formData) {
|
|
|
18915
18762
|
});
|
|
18916
18763
|
};
|
|
18917
18764
|
var searchFormData$4 = [{
|
|
18918
|
-
label: '
|
|
18919
|
-
name: '
|
|
18765
|
+
label: '规格名称',
|
|
18766
|
+
name: 'skuName',
|
|
18767
|
+
dataIndex: 'specName'
|
|
18920
18768
|
}, {
|
|
18921
|
-
label: '
|
|
18922
|
-
name: '
|
|
18769
|
+
label: '规格编码',
|
|
18770
|
+
name: 'skuCode',
|
|
18771
|
+
dataIndex: 'specNo',
|
|
18923
18772
|
type: 'optionalInput'
|
|
18924
18773
|
}, {
|
|
18925
18774
|
label: '商品名称',
|
|
@@ -18928,23 +18777,6 @@ var searchFormData$4 = [{
|
|
|
18928
18777
|
label: '商品编码',
|
|
18929
18778
|
name: 'goodNo',
|
|
18930
18779
|
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
|
-
}
|
|
18948
18780
|
}];
|
|
18949
18781
|
var GoodList$5 = function GoodList(props, ref) {
|
|
18950
18782
|
var _useState = useState([]),
|
|
@@ -18955,7 +18787,7 @@ var GoodList$5 = function GoodList(props, ref) {
|
|
|
18955
18787
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
18956
18788
|
selectIds = _useState4[0],
|
|
18957
18789
|
setSelectIds = _useState4[1];
|
|
18958
|
-
var _useGetColumns = useGetColumns('
|
|
18790
|
+
var _useGetColumns = useGetColumns('jy'),
|
|
18959
18791
|
_useGetColumns2 = _slicedToArray(_useGetColumns, 3),
|
|
18960
18792
|
columns = _useGetColumns2[0],
|
|
18961
18793
|
showColumnsDataIndexList = _useGetColumns2[1],
|
|
@@ -19014,8 +18846,8 @@ var GoodList$5 = function GoodList(props, ref) {
|
|
|
19014
18846
|
getCheckboxProps: function getCheckboxProps(record) {
|
|
19015
18847
|
var options = {
|
|
19016
18848
|
disabled: (props.selectedRows || []).map(function (row) {
|
|
19017
|
-
return row.
|
|
19018
|
-
}).includes(record.
|
|
18849
|
+
return row.id || row.specId;
|
|
18850
|
+
}).includes(record.id || record.specId),
|
|
19019
18851
|
name: record.id
|
|
19020
18852
|
};
|
|
19021
18853
|
return options;
|
|
@@ -19099,9 +18931,9 @@ var GoodList$5 = function GoodList(props, ref) {
|
|
|
19099
18931
|
type: "text"
|
|
19100
18932
|
}, "\u5DF2\u9009".concat(selectList.length > 99 ? '99+' : selectList.length, "\u4E2A\u5546\u54C1"), /*#__PURE__*/React.createElement(CaretUpOutlined, null))));
|
|
19101
18933
|
};
|
|
19102
|
-
var
|
|
18934
|
+
var JyGoodsList = /*#__PURE__*/forwardRef(GoodList$5);
|
|
19103
18935
|
|
|
19104
|
-
var
|
|
18936
|
+
var JyGoodsModal = function JyGoodsModal(props, ref) {
|
|
19105
18937
|
useImperativeHandle(ref, function () {
|
|
19106
18938
|
return {
|
|
19107
18939
|
open: function open(shopCode) {
|
|
@@ -19121,13 +18953,13 @@ var WlnGoodsModal = function WlnGoodsModal(props, ref) {
|
|
|
19121
18953
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
19122
18954
|
selectedRows = _useState4[0],
|
|
19123
18955
|
setSelectedRows = _useState4[1];
|
|
19124
|
-
var
|
|
18956
|
+
var jyGoodsListRef = useRef(null);
|
|
19125
18957
|
var _onCancel = function onCancel() {
|
|
19126
18958
|
setVisible(false);
|
|
19127
18959
|
};
|
|
19128
18960
|
var onOk = function onOk() {
|
|
19129
|
-
var
|
|
19130
|
-
var selectedList = ((
|
|
18961
|
+
var _jyGoodsListRef$curre;
|
|
18962
|
+
var selectedList = ((_jyGoodsListRef$curre = jyGoodsListRef.current) === null || _jyGoodsListRef$curre === void 0 ? void 0 : _jyGoodsListRef$curre.getSelectGoodList()) || [];
|
|
19131
18963
|
onSubmit(selectedList);
|
|
19132
18964
|
_onCancel();
|
|
19133
18965
|
};
|
|
@@ -19142,12 +18974,12 @@ var WlnGoodsModal = function WlnGoodsModal(props, ref) {
|
|
|
19142
18974
|
},
|
|
19143
18975
|
onOk: onOk,
|
|
19144
18976
|
wrapClassName: "goodModal"
|
|
19145
|
-
}, /*#__PURE__*/React.createElement(
|
|
19146
|
-
ref:
|
|
18977
|
+
}, /*#__PURE__*/React.createElement(JyGoodsList, {
|
|
18978
|
+
ref: jyGoodsListRef,
|
|
19147
18979
|
selectedRows: selectedRows
|
|
19148
18980
|
})));
|
|
19149
18981
|
};
|
|
19150
|
-
var
|
|
18982
|
+
var JyGoodsModal$1 = /*#__PURE__*/forwardRef(JyGoodsModal);
|
|
19151
18983
|
|
|
19152
18984
|
var getTableData$6 = function getTableData(_ref, formData) {
|
|
19153
18985
|
var current = _ref.current,
|
|
@@ -19158,7 +18990,7 @@ var getTableData$6 = function getTableData(_ref, formData) {
|
|
|
19158
18990
|
data: {
|
|
19159
18991
|
pageSize: pageSize,
|
|
19160
18992
|
pageNo: current,
|
|
19161
|
-
platform: '
|
|
18993
|
+
platform: 'JKY_ERP',
|
|
19162
18994
|
conditionList: conditionList
|
|
19163
18995
|
}
|
|
19164
18996
|
}).then(function (res) {
|
|
@@ -19186,10 +19018,10 @@ var searchFormData$5 = [{
|
|
|
19186
19018
|
dataIndex: 'specNo',
|
|
19187
19019
|
type: 'optionalInput'
|
|
19188
19020
|
}, {
|
|
19189
|
-
label: '
|
|
19021
|
+
label: '货品名称',
|
|
19190
19022
|
name: 'goodName'
|
|
19191
19023
|
}, {
|
|
19192
|
-
label: '
|
|
19024
|
+
label: '货品编码',
|
|
19193
19025
|
name: 'goodNo',
|
|
19194
19026
|
type: 'optionalInput'
|
|
19195
19027
|
}];
|
|
@@ -19202,7 +19034,7 @@ var GoodList$6 = function GoodList(props, ref) {
|
|
|
19202
19034
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
19203
19035
|
selectIds = _useState4[0],
|
|
19204
19036
|
setSelectIds = _useState4[1];
|
|
19205
|
-
var _useGetColumns = useGetColumns('
|
|
19037
|
+
var _useGetColumns = useGetColumns('jky'),
|
|
19206
19038
|
_useGetColumns2 = _slicedToArray(_useGetColumns, 3),
|
|
19207
19039
|
columns = _useGetColumns2[0],
|
|
19208
19040
|
showColumnsDataIndexList = _useGetColumns2[1],
|
|
@@ -19261,8 +19093,8 @@ var GoodList$6 = function GoodList(props, ref) {
|
|
|
19261
19093
|
getCheckboxProps: function getCheckboxProps(record) {
|
|
19262
19094
|
var options = {
|
|
19263
19095
|
disabled: (props.selectedRows || []).map(function (row) {
|
|
19264
|
-
return row.
|
|
19265
|
-
}).includes(record.
|
|
19096
|
+
return row.specId || record.id;
|
|
19097
|
+
}).includes(record.specId || record.id),
|
|
19266
19098
|
name: record.id
|
|
19267
19099
|
};
|
|
19268
19100
|
return options;
|
|
@@ -19346,9 +19178,9 @@ var GoodList$6 = function GoodList(props, ref) {
|
|
|
19346
19178
|
type: "text"
|
|
19347
19179
|
}, "\u5DF2\u9009".concat(selectList.length > 99 ? '99+' : selectList.length, "\u4E2A\u5546\u54C1"), /*#__PURE__*/React.createElement(CaretUpOutlined, null))));
|
|
19348
19180
|
};
|
|
19349
|
-
var
|
|
19181
|
+
var JkyGoodsList = /*#__PURE__*/forwardRef(GoodList$6);
|
|
19350
19182
|
|
|
19351
|
-
var
|
|
19183
|
+
var JkyGoodsModal = function JkyGoodsModal(props, ref) {
|
|
19352
19184
|
useImperativeHandle(ref, function () {
|
|
19353
19185
|
return {
|
|
19354
19186
|
open: function open(shopCode) {
|
|
@@ -19368,13 +19200,13 @@ var JyGoodsModal = function JyGoodsModal(props, ref) {
|
|
|
19368
19200
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
19369
19201
|
selectedRows = _useState4[0],
|
|
19370
19202
|
setSelectedRows = _useState4[1];
|
|
19371
|
-
var
|
|
19203
|
+
var jkyGoodsListRef = useRef(null);
|
|
19372
19204
|
var _onCancel = function onCancel() {
|
|
19373
19205
|
setVisible(false);
|
|
19374
19206
|
};
|
|
19375
19207
|
var onOk = function onOk() {
|
|
19376
|
-
var
|
|
19377
|
-
var selectedList = ((
|
|
19208
|
+
var _jkyGoodsListRef$curr;
|
|
19209
|
+
var selectedList = ((_jkyGoodsListRef$curr = jkyGoodsListRef.current) === null || _jkyGoodsListRef$curr === void 0 ? void 0 : _jkyGoodsListRef$curr.getSelectGoodList()) || [];
|
|
19378
19210
|
onSubmit(selectedList);
|
|
19379
19211
|
_onCancel();
|
|
19380
19212
|
};
|
|
@@ -19389,259 +19221,12 @@ var JyGoodsModal = function JyGoodsModal(props, ref) {
|
|
|
19389
19221
|
},
|
|
19390
19222
|
onOk: onOk,
|
|
19391
19223
|
wrapClassName: "goodModal"
|
|
19392
|
-
}, /*#__PURE__*/React.createElement(
|
|
19393
|
-
ref:
|
|
19224
|
+
}, /*#__PURE__*/React.createElement(JkyGoodsList, {
|
|
19225
|
+
ref: jkyGoodsListRef,
|
|
19394
19226
|
selectedRows: selectedRows
|
|
19395
19227
|
})));
|
|
19396
19228
|
};
|
|
19397
|
-
var
|
|
19398
|
-
|
|
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);
|
|
19229
|
+
var JkyGoodsModal$1 = /*#__PURE__*/forwardRef(JkyGoodsModal);
|
|
19645
19230
|
|
|
19646
19231
|
var getColumns = function getColumns(_ref) {
|
|
19647
19232
|
var _ref$text = _ref.text,
|
|
@@ -20952,7 +20537,7 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
20952
20537
|
};
|
|
20953
20538
|
};
|
|
20954
20539
|
|
|
20955
|
-
var getYesOrNo$
|
|
20540
|
+
var getYesOrNo$3 = function getYesOrNo(val) {
|
|
20956
20541
|
if (isNull(val)) return null;
|
|
20957
20542
|
return val ? '是' : '否';
|
|
20958
20543
|
};
|
|
@@ -20977,13 +20562,6 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
20977
20562
|
ellipsis: true,
|
|
20978
20563
|
width: 250,
|
|
20979
20564
|
render: renderTextEllipsis
|
|
20980
|
-
}, {
|
|
20981
|
-
dataIndex: 'wlnSkuName',
|
|
20982
|
-
title: "sku\u540D\u79F0",
|
|
20983
|
-
align: 'center',
|
|
20984
|
-
ellipsis: true,
|
|
20985
|
-
width: 250,
|
|
20986
|
-
render: renderTextEllipsis
|
|
20987
20565
|
}, {
|
|
20988
20566
|
dataIndex: 'skuCode',
|
|
20989
20567
|
title: "sku\u7F16\u7801",
|
|
@@ -21085,34 +20663,6 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
21085
20663
|
ellipsis: true,
|
|
21086
20664
|
width: 70,
|
|
21087
20665
|
render: renderTextEllipsis
|
|
21088
|
-
}, {
|
|
21089
|
-
dataIndex: 'discountedUnitPrice',
|
|
21090
|
-
title: "\u6298\u540E\u5355\u4EF7",
|
|
21091
|
-
align: 'center',
|
|
21092
|
-
ellipsis: true,
|
|
21093
|
-
width: 250,
|
|
21094
|
-
render: renderTextEllipsis
|
|
21095
|
-
}, {
|
|
21096
|
-
dataIndex: 'originPrice',
|
|
21097
|
-
title: "\u539F\u4EF7",
|
|
21098
|
-
align: 'center',
|
|
21099
|
-
ellipsis: true,
|
|
21100
|
-
width: 250,
|
|
21101
|
-
render: renderTextEllipsis
|
|
21102
|
-
}, {
|
|
21103
|
-
dataIndex: 'price',
|
|
21104
|
-
title: "\u5355\u4EF7",
|
|
21105
|
-
align: 'center',
|
|
21106
|
-
ellipsis: true,
|
|
21107
|
-
width: 250,
|
|
21108
|
-
render: renderTextEllipsis
|
|
21109
|
-
}, {
|
|
21110
|
-
dataIndex: 'receivable',
|
|
21111
|
-
title: "\u9500\u552E\u91D1\u989D",
|
|
21112
|
-
align: 'center',
|
|
21113
|
-
ellipsis: true,
|
|
21114
|
-
width: 250,
|
|
21115
|
-
render: renderTextEllipsis
|
|
21116
20666
|
}, {
|
|
21117
20667
|
dataIndex: 'type',
|
|
21118
20668
|
title: "\u8D60\u54C1\u7C7B\u578B",
|
|
@@ -21138,254 +20688,9 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
21138
20688
|
label: '否',
|
|
21139
20689
|
value: false
|
|
21140
20690
|
}]
|
|
21141
|
-
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$
|
|
21142
|
-
},
|
|
21143
|
-
width: 200
|
|
21144
|
-
}, {
|
|
21145
|
-
dataIndex: 'hasRefund',
|
|
21146
|
-
title: "\u662F\u5426\u9000\u6B3E",
|
|
21147
|
-
align: 'center',
|
|
21148
|
-
ellipsis: true,
|
|
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
|
-
}
|
|
21165
|
-
}, {
|
|
21166
|
-
dataIndex: 'unit',
|
|
21167
|
-
title: "\u5355\u4F4D",
|
|
21168
|
-
align: 'center',
|
|
21169
|
-
ellipsis: true,
|
|
21170
|
-
width: 100,
|
|
21171
|
-
render: renderTextEllipsis
|
|
21172
|
-
}, {
|
|
21173
|
-
dataIndex: 'pkgGoodsName',
|
|
21174
|
-
title: "\u539F\u7EC4\u5408\u5546\u54C1\u540D\u79F0",
|
|
21175
|
-
align: 'center',
|
|
21176
|
-
ellipsis: true,
|
|
21177
|
-
width: 200,
|
|
21178
|
-
render: renderTextEllipsis
|
|
21179
|
-
}, {
|
|
21180
|
-
dataIndex: 'pkgGoodsCode',
|
|
21181
|
-
title: "\u539F\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
|
|
21182
|
-
align: 'center',
|
|
21183
|
-
ellipsis: true,
|
|
21184
|
-
width: 200,
|
|
21185
|
-
render: renderTextEllipsis
|
|
21186
|
-
}, {
|
|
21187
|
-
dataIndex: 'pkgGoodsId',
|
|
21188
|
-
title: "\u539F\u7EC4\u5408\u5546\u54C1id",
|
|
21189
|
-
align: 'center',
|
|
21190
|
-
ellipsis: true,
|
|
21191
|
-
width: 200,
|
|
21192
|
-
render: renderTextEllipsis
|
|
21193
|
-
}],
|
|
21194
|
-
WLN_REISSUE_GOODS: [{
|
|
21195
|
-
dataIndex: 'wlnItemName',
|
|
21196
|
-
title: "\u5546\u54C1\u540D\u79F0",
|
|
21197
|
-
align: 'center',
|
|
21198
|
-
ellipsis: true,
|
|
21199
|
-
width: 250,
|
|
21200
|
-
render: renderTextEllipsis
|
|
21201
|
-
}, {
|
|
21202
|
-
dataIndex: 'goodsCode',
|
|
21203
|
-
title: "\u5546\u54C1\u7F16\u7801",
|
|
21204
|
-
align: 'center',
|
|
21205
|
-
ellipsis: true,
|
|
21206
|
-
width: 250,
|
|
21207
|
-
render: renderTextEllipsis
|
|
21208
|
-
}, {
|
|
21209
|
-
dataIndex: 'wlnSkuName',
|
|
21210
|
-
title: "sku\u540D\u79F0",
|
|
21211
|
-
align: 'center',
|
|
21212
|
-
ellipsis: true,
|
|
21213
|
-
width: 250,
|
|
21214
|
-
render: renderTextEllipsis
|
|
21215
|
-
}, {
|
|
21216
|
-
dataIndex: 'skuCode',
|
|
21217
|
-
title: "sku\u7F16\u7801",
|
|
21218
|
-
align: 'center',
|
|
21219
|
-
ellipsis: true,
|
|
21220
|
-
width: 250,
|
|
21221
|
-
render: renderTextEllipsis
|
|
21222
|
-
}, {
|
|
21223
|
-
dataIndex: 'skuName',
|
|
21224
|
-
title: "\u7EBF\u4E0Asku\u540D\u79F0",
|
|
21225
|
-
align: 'center',
|
|
21226
|
-
ellipsis: true,
|
|
21227
|
-
width: 250,
|
|
21228
|
-
render: renderTextEllipsis
|
|
21229
|
-
}, {
|
|
21230
|
-
dataIndex: 'olnSkuCode',
|
|
21231
|
-
title: "\u7EBF\u4E0Asku\u7F16\u7801",
|
|
21232
|
-
align: 'center',
|
|
21233
|
-
ellipsis: true,
|
|
21234
|
-
width: 150,
|
|
21235
|
-
render: renderTextEllipsis
|
|
21236
|
-
}, {
|
|
21237
|
-
dataIndex: 'sku',
|
|
21238
|
-
title: "\u7EBF\u4E0Asku id",
|
|
21239
|
-
align: 'center',
|
|
21240
|
-
ellipsis: true,
|
|
21241
|
-
width: 150,
|
|
21242
|
-
render: renderTextEllipsis
|
|
21243
|
-
}, {
|
|
21244
|
-
dataIndex: 'name',
|
|
21245
|
-
title: "\u7EBF\u4E0A\u5546\u54C1\u540D\u79F0",
|
|
21246
|
-
align: 'center',
|
|
21247
|
-
ellipsis: true,
|
|
21248
|
-
width: 250,
|
|
21249
|
-
render: renderTextEllipsis
|
|
21250
|
-
}, {
|
|
21251
|
-
dataIndex: 'pic',
|
|
21252
|
-
title: "\u7EBF\u4E0A\u56FE\u7247",
|
|
21253
|
-
align: 'center',
|
|
21254
|
-
ellipsis: true,
|
|
21255
|
-
width: 100,
|
|
21256
|
-
render: function render(val) {
|
|
21257
|
-
return /*#__PURE__*/React.createElement(Image, {
|
|
21258
|
-
width: 30,
|
|
21259
|
-
src: val
|
|
21260
|
-
});
|
|
21261
|
-
}
|
|
21262
|
-
}, {
|
|
21263
|
-
dataIndex: 'olnItemCOde',
|
|
21264
|
-
title: "\u7EBF\u4E0A\u5546\u54C1\u7F16\u7801",
|
|
21265
|
-
align: 'center',
|
|
21266
|
-
ellipsis: true,
|
|
21267
|
-
width: 150,
|
|
21268
|
-
render: renderTextEllipsis
|
|
21269
|
-
}, {
|
|
21270
|
-
dataIndex: 'code',
|
|
21271
|
-
title: "\u7EBF\u4E0A\u5546\u54C1id",
|
|
21272
|
-
align: 'center',
|
|
21273
|
-
ellipsis: true,
|
|
21274
|
-
width: 150,
|
|
21275
|
-
render: renderTextEllipsis
|
|
21276
|
-
}, {
|
|
21277
|
-
dataIndex: 'barCode',
|
|
21278
|
-
title: "\u5546\u54C1\u6761\u7801",
|
|
21279
|
-
align: 'center',
|
|
21280
|
-
ellipsis: true,
|
|
21281
|
-
width: 150,
|
|
21282
|
-
render: renderTextEllipsis
|
|
21283
|
-
}, {
|
|
21284
|
-
dataIndex: 'price',
|
|
21285
|
-
title: "\u5355\u4EF7",
|
|
21286
|
-
align: 'center',
|
|
21287
|
-
ellipsis: true,
|
|
21288
|
-
width: 250,
|
|
21289
|
-
render: renderTextEllipsis
|
|
21290
|
-
}, {
|
|
21291
|
-
dataIndex: 'number',
|
|
21292
|
-
title: "".concat(text, "\u6570\u91CF"),
|
|
21293
|
-
align: 'center',
|
|
21294
|
-
ellipsis: true,
|
|
21295
|
-
width: 100,
|
|
21296
|
-
render: function render(val, record, index) {
|
|
21297
|
-
return record.canUpdateNumber && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
21298
|
-
style: {
|
|
21299
|
-
width: 70
|
|
21300
|
-
},
|
|
21301
|
-
value: val,
|
|
21302
|
-
min: 1,
|
|
21303
|
-
precision: 0,
|
|
21304
|
-
onChange: function onChange(num) {
|
|
21305
|
-
return updateHandle(num, index, 'number');
|
|
21306
|
-
}
|
|
21307
|
-
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
21308
|
-
}
|
|
21309
|
-
}, {
|
|
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
|
-
}
|
|
21333
|
-
}, {
|
|
21334
|
-
dataIndex: 'type',
|
|
21335
|
-
title: "\u8D60\u54C1\u7C7B\u578B",
|
|
21336
|
-
align: 'center',
|
|
21337
|
-
ellipsis: true,
|
|
21338
|
-
width: 100,
|
|
21339
|
-
render: renderTextEllipsis
|
|
21340
|
-
}, {
|
|
21341
|
-
dataIndex: 'isPackage',
|
|
21342
|
-
title: "\u662F\u5426\u7EC4\u5408\u5546\u54C1",
|
|
21343
|
-
align: 'center',
|
|
21344
|
-
ellipsis: true,
|
|
21345
|
-
render: function render(val, record, index) {
|
|
21346
|
-
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
21347
|
-
value: val,
|
|
21348
|
-
onChange: function onChange(value) {
|
|
21349
|
-
updateHandle(value, index, 'isGift');
|
|
21350
|
-
},
|
|
21351
|
-
options: [{
|
|
21352
|
-
label: '是',
|
|
21353
|
-
value: true
|
|
21354
|
-
}, {
|
|
21355
|
-
label: '否',
|
|
21356
|
-
value: false
|
|
21357
|
-
}]
|
|
21358
|
-
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
|
|
20691
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$3(val));
|
|
21359
20692
|
},
|
|
21360
20693
|
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
|
|
21389
20694
|
}]
|
|
21390
20695
|
};
|
|
21391
20696
|
};
|
|
@@ -21395,7 +20700,7 @@ var isNumberOrNumberString$1 = function isNumberOrNumberString(value) {
|
|
|
21395
20700
|
if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
|
|
21396
20701
|
return false;
|
|
21397
20702
|
};
|
|
21398
|
-
var getYesOrNo$
|
|
20703
|
+
var getYesOrNo$4 = function getYesOrNo(val) {
|
|
21399
20704
|
if (isNull(val)) return null;
|
|
21400
20705
|
return val ? '是' : '否';
|
|
21401
20706
|
};
|
|
@@ -21510,7 +20815,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
21510
20815
|
title: "\u662F\u5426\u53D6\u6D88",
|
|
21511
20816
|
width: 150,
|
|
21512
20817
|
render: function render(val) {
|
|
21513
|
-
return /*#__PURE__*/React.createElement("span", null, getYesOrNo$
|
|
20818
|
+
return /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
|
|
21514
20819
|
}
|
|
21515
20820
|
}, {
|
|
21516
20821
|
dataIndex: 'isGift',
|
|
@@ -21529,7 +20834,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
21529
20834
|
label: '否',
|
|
21530
20835
|
value: 0
|
|
21531
20836
|
}]
|
|
21532
|
-
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$
|
|
20837
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
|
|
21533
20838
|
}
|
|
21534
20839
|
}, {
|
|
21535
20840
|
dataIndex: 'skuNote',
|
|
@@ -21655,7 +20960,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
21655
20960
|
label: '否',
|
|
21656
20961
|
value: 0
|
|
21657
20962
|
}]
|
|
21658
|
-
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$
|
|
20963
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
|
|
21659
20964
|
}
|
|
21660
20965
|
}].map(function (item) {
|
|
21661
20966
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
@@ -21784,7 +21089,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
21784
21089
|
label: '否',
|
|
21785
21090
|
value: 0
|
|
21786
21091
|
}]
|
|
21787
|
-
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$
|
|
21092
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
|
|
21788
21093
|
}
|
|
21789
21094
|
}].map(function (item) {
|
|
21790
21095
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
@@ -24504,9 +23809,6 @@ var isErpType = {
|
|
|
24504
23809
|
},
|
|
24505
23810
|
isJky: function isJky(type) {
|
|
24506
23811
|
return ['JKY_GOODS', 'JKY_REISSUE_GOODS'].includes(type);
|
|
24507
|
-
},
|
|
24508
|
-
isWln: function isWln(type) {
|
|
24509
|
-
return ['WLN_GOODS', 'WLN_REISSUE_GOODS'].includes(type);
|
|
24510
23812
|
}
|
|
24511
23813
|
};
|
|
24512
23814
|
var processGoods$1 = function processGoods(_ref) {
|
|
@@ -24566,13 +23868,6 @@ var processGoods$1 = function processGoods(_ref) {
|
|
|
24566
23868
|
canUpdateNumber: canUpdateNumber,
|
|
24567
23869
|
source: source
|
|
24568
23870
|
});
|
|
24569
|
-
} else if (isErpType.isWln(type)) {
|
|
24570
|
-
newList = processWlnGoods$1({
|
|
24571
|
-
list: list,
|
|
24572
|
-
type: type,
|
|
24573
|
-
canUpdateNumber: canUpdateNumber,
|
|
24574
|
-
source: source
|
|
24575
|
-
});
|
|
24576
23871
|
} else {
|
|
24577
23872
|
newList = processDefaultGoods({
|
|
24578
23873
|
list: list,
|
|
@@ -24655,63 +23950,11 @@ var processJkyGoods$1 = function processJkyGoods(_ref3) {
|
|
|
24655
23950
|
});
|
|
24656
23951
|
});
|
|
24657
23952
|
};
|
|
24658
|
-
|
|
23953
|
+
// 处理不同类型的商品数据
|
|
23954
|
+
var processWdtGoods$1 = function processWdtGoods(_ref4) {
|
|
24659
23955
|
var list = _ref4.list,
|
|
23956
|
+
type = _ref4.type,
|
|
24660
23957
|
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;
|
|
24715
23958
|
return list.map(function (item) {
|
|
24716
23959
|
var processedItem = _objectSpread2(_objectSpread2({}, item), {}, {
|
|
24717
23960
|
uuid: uuid(),
|
|
@@ -24729,9 +23972,9 @@ var processWdtGoods$1 = function processWdtGoods(_ref5) {
|
|
|
24729
23972
|
return processedItem;
|
|
24730
23973
|
});
|
|
24731
23974
|
};
|
|
24732
|
-
var processBsE3Goods$1 = function processBsE3Goods(
|
|
24733
|
-
var list =
|
|
24734
|
-
canUpdateNumber =
|
|
23975
|
+
var processBsE3Goods$1 = function processBsE3Goods(_ref5) {
|
|
23976
|
+
var list = _ref5.list,
|
|
23977
|
+
canUpdateNumber = _ref5.canUpdateNumber;
|
|
24735
23978
|
return list.map(function (item) {
|
|
24736
23979
|
var specNo = item.specNo,
|
|
24737
23980
|
specId = item.specId,
|
|
@@ -24766,9 +24009,9 @@ var processBsE3Goods$1 = function processBsE3Goods(_ref6) {
|
|
|
24766
24009
|
});
|
|
24767
24010
|
});
|
|
24768
24011
|
};
|
|
24769
|
-
var processGyGoods$1 = function processGyGoods(
|
|
24770
|
-
var list =
|
|
24771
|
-
source =
|
|
24012
|
+
var processGyGoods$1 = function processGyGoods(_ref6) {
|
|
24013
|
+
var list = _ref6.list,
|
|
24014
|
+
source = _ref6.source;
|
|
24772
24015
|
var isFormWorkOrder = source === 'workOrder';
|
|
24773
24016
|
return list.map(function (item) {
|
|
24774
24017
|
var goodName = item.goodName,
|
|
@@ -24795,8 +24038,8 @@ var processGyGoods$1 = function processGyGoods(_ref7) {
|
|
|
24795
24038
|
});
|
|
24796
24039
|
});
|
|
24797
24040
|
};
|
|
24798
|
-
var processJstGoods$1 = function processJstGoods(
|
|
24799
|
-
var list =
|
|
24041
|
+
var processJstGoods$1 = function processJstGoods(_ref7) {
|
|
24042
|
+
var list = _ref7.list;
|
|
24800
24043
|
return list.map(function (item) {
|
|
24801
24044
|
return {
|
|
24802
24045
|
name: item.goodName,
|
|
@@ -24814,9 +24057,9 @@ var processJstGoods$1 = function processJstGoods(_ref8) {
|
|
|
24814
24057
|
};
|
|
24815
24058
|
});
|
|
24816
24059
|
};
|
|
24817
|
-
var processKmGoods$1 = function processKmGoods(
|
|
24818
|
-
var list =
|
|
24819
|
-
type =
|
|
24060
|
+
var processKmGoods$1 = function processKmGoods(_ref8) {
|
|
24061
|
+
var list = _ref8.list,
|
|
24062
|
+
type = _ref8.type;
|
|
24820
24063
|
var initParamsMap = {
|
|
24821
24064
|
KM_GOODS: {
|
|
24822
24065
|
num: 1
|
|
@@ -24855,9 +24098,9 @@ var processKmGoods$1 = function processKmGoods(_ref9) {
|
|
|
24855
24098
|
}, initParamsMap[type] || {});
|
|
24856
24099
|
});
|
|
24857
24100
|
};
|
|
24858
|
-
var processDefaultGoods = function processDefaultGoods(
|
|
24859
|
-
var list =
|
|
24860
|
-
canUpdateNumber =
|
|
24101
|
+
var processDefaultGoods = function processDefaultGoods(_ref9) {
|
|
24102
|
+
var list = _ref9.list,
|
|
24103
|
+
canUpdateNumber = _ref9.canUpdateNumber;
|
|
24861
24104
|
return list.map(function (item) {
|
|
24862
24105
|
var goodsId = item.goodsId,
|
|
24863
24106
|
name = item.name,
|
|
@@ -24906,8 +24149,6 @@ var GoodsModalMap = {
|
|
|
24906
24149
|
JY_REISSUE_GOODS: JyGoodsModal$1,
|
|
24907
24150
|
JKY_GOODS: JkyGoodsModal$1,
|
|
24908
24151
|
JKY_REISSUE_GOODS: JkyGoodsModal$1,
|
|
24909
|
-
WLN_REISSUE_GOODS: WlnGoodsModal$1,
|
|
24910
|
-
WLN_GOODS: WlnGoodsModal$1,
|
|
24911
24152
|
OTHER_GOODS: GoodsModal$2
|
|
24912
24153
|
};
|
|
24913
24154
|
var systemOrderNoMap = {
|
|
@@ -24922,7 +24163,6 @@ var systemOrderNoMap = {
|
|
|
24922
24163
|
JY_REISSUE_GOODS: 'tradeNo',
|
|
24923
24164
|
JKY_GOODS: 'tradeNo',
|
|
24924
24165
|
JKY_REISSUE_GOODS: 'tradeNo',
|
|
24925
|
-
WLN_REISSUE_GOODS: 'tradeNo',
|
|
24926
24166
|
KM_REISSUE_GOODS: 'sid',
|
|
24927
24167
|
KM_RETURN_GOODS: 'sid',
|
|
24928
24168
|
KM_EXCHANGE_GOODS: 'sid',
|
|
@@ -25180,9 +24420,6 @@ var getButtonText = function getButtonText() {
|
|
|
25180
24420
|
if (['JKY_GOODS', 'JKY_REISSUE_GOODS'].includes(type)) {
|
|
25181
24421
|
return '选择吉客云ERP商品';
|
|
25182
24422
|
}
|
|
25183
|
-
if (['WLN_GOODS', 'WLN_REISSUE_GOODS'].includes(type)) {
|
|
25184
|
-
return '选择万里牛ERP商品';
|
|
25185
|
-
}
|
|
25186
24423
|
return '选择商品';
|
|
25187
24424
|
};
|
|
25188
24425
|
var GoodItem$1 = function GoodItem(props) {
|
|
@@ -25242,8 +24479,8 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
25242
24479
|
var jstReturnGoods = Form === null || Form === void 0 ? void 0 : Form.useWatch('3979edfd6d', form);
|
|
25243
24480
|
var isShowSelectTradeGoods = type !== 'JST_EXCHANGE_GOODS' || (jstReturnGoods === null || jstReturnGoods === void 0 ? void 0 : jstReturnGoods.jstSystemOrderNo);
|
|
25244
24481
|
// 判断是否为是否展示系统单筛选项
|
|
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', '
|
|
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'
|
|
24482
|
+
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;
|
|
24483
|
+
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;
|
|
25247
24484
|
var refModal = useRef();
|
|
25248
24485
|
console.debug('表格数据', value);
|
|
25249
24486
|
var handleDelete = function handleDelete(record, index) {
|
|
@@ -25338,7 +24575,6 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
25338
24575
|
case 'JY_REISSUE_GOODS':
|
|
25339
24576
|
case 'JKY_GOODS':
|
|
25340
24577
|
case 'JKY_REISSUE_GOODS':
|
|
25341
|
-
case 'WLN_REISSUE_GOODS':
|
|
25342
24578
|
case 'SKX_GOODS':
|
|
25343
24579
|
case 'SKX_RETURN_GOODS':
|
|
25344
24580
|
{
|
|
@@ -25598,7 +24834,6 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
25598
24834
|
templateDetail: templateDetail
|
|
25599
24835
|
}));
|
|
25600
24836
|
};
|
|
25601
|
-
GoodItem$1.displayName = 'GoodItem';
|
|
25602
24837
|
|
|
25603
24838
|
var BsGoods = function BsGoods(props) {
|
|
25604
24839
|
var _withInfo$current3, _withInfo$current4;
|
|
@@ -26450,10 +25685,6 @@ var getOrderListSingleton = function getOrderListSingleton(orderNo) {
|
|
|
26450
25685
|
}
|
|
26451
25686
|
}).then(function (data) {
|
|
26452
25687
|
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
|
-
}
|
|
26457
25688
|
resolve(data.data);
|
|
26458
25689
|
// 延迟10秒清除,保证订单的时效性
|
|
26459
25690
|
setTimeout(function () {
|
|
@@ -28439,32 +27670,6 @@ var componentMap$2 = {
|
|
|
28439
27670
|
},
|
|
28440
27671
|
getOrderList: jkyUtils.getJkyOrderListSingleton
|
|
28441
27672
|
},
|
|
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
|
-
},
|
|
28468
27673
|
WDT_AFTERSALE_GOODS: {
|
|
28469
27674
|
type: 'wdtAftersale',
|
|
28470
27675
|
key: 'wdtAftersaleGoods',
|
|
@@ -29649,22 +28854,6 @@ var typeMap$2 = {
|
|
|
29649
28854
|
goodDetailsKey: 'goodsDetail',
|
|
29650
28855
|
isShowSelectTradeGoods: true,
|
|
29651
28856
|
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
|
|
29668
28857
|
}
|
|
29669
28858
|
};
|
|
29670
28859
|
var PublicReissue = function PublicReissue(props) {
|
|
@@ -29724,7 +28913,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
29724
28913
|
case 0:
|
|
29725
28914
|
(_typeMap$type5 = typeMap$2[type]) === null || _typeMap$type5 === void 0 ? void 0 : _typeMap$type5.getOrderList(orderNo).then(function (data) {
|
|
29726
28915
|
var _valueRef$current3, _typeMap$type6, _typeMap$type7, _typeMap$type11, _ref3, _typeMap$type12;
|
|
29727
|
-
var orders =
|
|
28916
|
+
var orders = data || [];
|
|
29728
28917
|
var showOrderInfo = orders === null || orders === void 0 ? void 0 : orders.map(function (orderItem) {
|
|
29729
28918
|
return _defineProperty({}, typeMap$2[type].oIdKey, orderItem[typeMap$2[type].oIdKey]);
|
|
29730
28919
|
});
|
|
@@ -29773,7 +28962,6 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
29773
28962
|
// 切换到非原单,清空列表
|
|
29774
28963
|
newValue[(_typeMap$type15 = typeMap$2[type]) === null || _typeMap$type15 === void 0 ? void 0 : _typeMap$type15.key] = [];
|
|
29775
28964
|
}
|
|
29776
|
-
console.log('**** changeTypeHandle', newValue);
|
|
29777
28965
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
29778
28966
|
};
|
|
29779
28967
|
var handleModeChange = function handleModeChange(mode) {
|
|
@@ -29898,10 +29086,6 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
29898
29086
|
orderRest = {
|
|
29899
29087
|
canEdit: true
|
|
29900
29088
|
};
|
|
29901
|
-
} else if (['WLN_REISSUE_GOODS'].includes(type)) {
|
|
29902
|
-
orderRest = {
|
|
29903
|
-
canEdit: true
|
|
29904
|
-
};
|
|
29905
29089
|
}
|
|
29906
29090
|
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] : [];
|
|
29907
29091
|
var hasGoodDetails = orders === null || orders === void 0 ? void 0 : orders.some(function (order) {
|
|
@@ -30420,7 +29604,7 @@ var GoodsModal$5 = function GoodsModal(props) {
|
|
|
30420
29604
|
key: item.value
|
|
30421
29605
|
}, item.label);
|
|
30422
29606
|
})), /*#__PURE__*/React.createElement(Search$1, {
|
|
30423
|
-
placeholder: "\u5B9D\u8D1D\u6807\u9898",
|
|
29607
|
+
placeholder: "\u5B9D\u8D1D\u94FE\u63A5\uFF0C\u6807\u9898",
|
|
30424
29608
|
allowClear: true,
|
|
30425
29609
|
enterButton: "\u641C\u7D22",
|
|
30426
29610
|
style: {
|