@kmkf-fe-packages/basic-components 2.6.1-beta.12 → 2.6.1-beta.22
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
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,
|
|
@@ -14110,9 +14117,9 @@ var jstGoods = function jstGoods(props) {
|
|
|
14110
14117
|
changeIndex = _useState2[0],
|
|
14111
14118
|
setChangeIndex = _useState2[1]; //选中的包裹
|
|
14112
14119
|
var sendOptions = SendDataCenter.getInstance(platformType).getSendData();
|
|
14113
|
-
var isSelectName = ['wdt', 'bsE3', 'km', 'gy', 'jst', 'jy', 'jky'].includes(platformType);
|
|
14120
|
+
var isSelectName = ['wdt', 'bsE3', 'km', 'gy', 'jst', 'jy', 'jky', 'wln'].includes(platformType);
|
|
14114
14121
|
var expressDateInstance = ExpressData.getInstance(platformType);
|
|
14115
|
-
var isSendGoodSavedId = isSelectName && !['jst'].includes(platformType);
|
|
14122
|
+
var isSendGoodSavedId = isSelectName && !['jst', 'wln'].includes(platformType);
|
|
14116
14123
|
useEffect(function () {
|
|
14117
14124
|
//没有值塞个默认值
|
|
14118
14125
|
if (!(value === null || value === void 0 ? void 0 : value.length) && type !== 1) {
|
|
@@ -18742,7 +18749,7 @@ var getTableData$5 = function getTableData(_ref, formData) {
|
|
|
18742
18749
|
data: {
|
|
18743
18750
|
pageSize: pageSize,
|
|
18744
18751
|
pageNo: current,
|
|
18745
|
-
platform: '
|
|
18752
|
+
platform: 'WLN_ERP',
|
|
18746
18753
|
conditionList: conditionList
|
|
18747
18754
|
}
|
|
18748
18755
|
}).then(function (res) {
|
|
@@ -18769,6 +18776,253 @@ var searchFormData$4 = [{
|
|
|
18769
18776
|
name: 'skuCode',
|
|
18770
18777
|
dataIndex: 'specNo',
|
|
18771
18778
|
type: 'optionalInput'
|
|
18779
|
+
}, {
|
|
18780
|
+
label: '货品名称',
|
|
18781
|
+
name: 'goodName'
|
|
18782
|
+
}, {
|
|
18783
|
+
label: '货品编码',
|
|
18784
|
+
name: 'goodNo',
|
|
18785
|
+
type: 'optionalInput'
|
|
18786
|
+
}];
|
|
18787
|
+
var GoodList$5 = function GoodList(props, ref) {
|
|
18788
|
+
var _useState = useState([]),
|
|
18789
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
18790
|
+
selectList = _useState2[0],
|
|
18791
|
+
setSelect = _useState2[1];
|
|
18792
|
+
var _useState3 = useState([]),
|
|
18793
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
18794
|
+
selectIds = _useState4[0],
|
|
18795
|
+
setSelectIds = _useState4[1];
|
|
18796
|
+
var _useGetColumns = useGetColumns('wln'),
|
|
18797
|
+
_useGetColumns2 = _slicedToArray(_useGetColumns, 3),
|
|
18798
|
+
columns = _useGetColumns2[0],
|
|
18799
|
+
showColumnsDataIndexList = _useGetColumns2[1],
|
|
18800
|
+
loading = _useGetColumns2[2];
|
|
18801
|
+
useImperativeHandle(ref, function () {
|
|
18802
|
+
return {
|
|
18803
|
+
getSelectGoodList: function getSelectGoodList() {
|
|
18804
|
+
return selectList;
|
|
18805
|
+
}
|
|
18806
|
+
};
|
|
18807
|
+
});
|
|
18808
|
+
var _Form$useForm = Form.useForm(),
|
|
18809
|
+
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
18810
|
+
form = _Form$useForm2[0];
|
|
18811
|
+
var _useAntdTable = useAntdTable(getTableData$5, {
|
|
18812
|
+
defaultPageSize: 10,
|
|
18813
|
+
form: form
|
|
18814
|
+
}),
|
|
18815
|
+
tableProps = _useAntdTable.tableProps,
|
|
18816
|
+
search = _useAntdTable.search,
|
|
18817
|
+
params = _useAntdTable.params;
|
|
18818
|
+
var submit = search.submit,
|
|
18819
|
+
reset = search.reset;
|
|
18820
|
+
var rowSelection = {
|
|
18821
|
+
selectedRowKeys: selectIds,
|
|
18822
|
+
fixed: true,
|
|
18823
|
+
onSelect: function onSelect(record, selected) {
|
|
18824
|
+
if (selected) {
|
|
18825
|
+
setSelectIds([].concat(_toConsumableArray(selectIds), [record.id]));
|
|
18826
|
+
setSelect([].concat(_toConsumableArray(selectList), [record]));
|
|
18827
|
+
} else {
|
|
18828
|
+
setSelectIds(selectIds.filter(function (t) {
|
|
18829
|
+
return t !== record.id;
|
|
18830
|
+
}));
|
|
18831
|
+
setSelect(selectList.filter(function (t) {
|
|
18832
|
+
return t.id !== record.id;
|
|
18833
|
+
}));
|
|
18834
|
+
}
|
|
18835
|
+
},
|
|
18836
|
+
onSelectAll: function onSelectAll(selected, selectedRows, changeRows) {
|
|
18837
|
+
if (selected) {
|
|
18838
|
+
setSelectIds([].concat(_toConsumableArray(selectIds), _toConsumableArray(changeRows.map(function (t) {
|
|
18839
|
+
return t.id;
|
|
18840
|
+
}))));
|
|
18841
|
+
setSelect([].concat(_toConsumableArray(selectList), _toConsumableArray(changeRows)));
|
|
18842
|
+
} else {
|
|
18843
|
+
setSelectIds(difference(selectIds, changeRows.map(function (t) {
|
|
18844
|
+
return t.id;
|
|
18845
|
+
})));
|
|
18846
|
+
var list = differenceWith(selectList, changeRows, function (arrVal, othVal) {
|
|
18847
|
+
return arrVal.id !== othVal.id;
|
|
18848
|
+
});
|
|
18849
|
+
setSelect(list);
|
|
18850
|
+
}
|
|
18851
|
+
},
|
|
18852
|
+
getCheckboxProps: function getCheckboxProps(record) {
|
|
18853
|
+
var options = {
|
|
18854
|
+
disabled: (props.selectedRows || []).map(function (row) {
|
|
18855
|
+
return row.specId || record.id;
|
|
18856
|
+
}).includes(record.specId || record.id),
|
|
18857
|
+
name: record.id
|
|
18858
|
+
};
|
|
18859
|
+
return options;
|
|
18860
|
+
}
|
|
18861
|
+
};
|
|
18862
|
+
var showTable = function showTable() {
|
|
18863
|
+
var handleDelete = function handleDelete(record) {
|
|
18864
|
+
setSelectIds(selectIds.filter(function (t) {
|
|
18865
|
+
return t !== record.id;
|
|
18866
|
+
}));
|
|
18867
|
+
setSelect(selectList.filter(function (t) {
|
|
18868
|
+
return t.id !== record.id;
|
|
18869
|
+
}));
|
|
18870
|
+
};
|
|
18871
|
+
var showColumns = [{
|
|
18872
|
+
dataIndex: '',
|
|
18873
|
+
title: "\u64CD\u4F5C",
|
|
18874
|
+
ellipsis: true,
|
|
18875
|
+
width: 100,
|
|
18876
|
+
render: function render(val, record) {
|
|
18877
|
+
return /*#__PURE__*/React.createElement(Button, {
|
|
18878
|
+
type: "link",
|
|
18879
|
+
onClick: function onClick() {
|
|
18880
|
+
return handleDelete(record);
|
|
18881
|
+
}
|
|
18882
|
+
}, "\u5220\u9664");
|
|
18883
|
+
}
|
|
18884
|
+
}].concat(takeRight(columns, columns.length - 1));
|
|
18885
|
+
return selectList.length ? /*#__PURE__*/React.createElement("div", {
|
|
18886
|
+
style: {
|
|
18887
|
+
width: '100%',
|
|
18888
|
+
maxWidth: '387px'
|
|
18889
|
+
}
|
|
18890
|
+
}, /*#__PURE__*/React.createElement(Table, {
|
|
18891
|
+
columns: showColumns,
|
|
18892
|
+
rowKey: 'id',
|
|
18893
|
+
dataSource: selectList,
|
|
18894
|
+
scroll: {
|
|
18895
|
+
x: '100%',
|
|
18896
|
+
y: 250
|
|
18897
|
+
},
|
|
18898
|
+
pagination: {
|
|
18899
|
+
size: 'small',
|
|
18900
|
+
total: selectIds.length,
|
|
18901
|
+
pageSize: 10,
|
|
18902
|
+
showSizeChanger: false
|
|
18903
|
+
}
|
|
18904
|
+
})) : null;
|
|
18905
|
+
};
|
|
18906
|
+
return /*#__PURE__*/React.createElement(Skeleton, {
|
|
18907
|
+
active: true,
|
|
18908
|
+
loading: loading
|
|
18909
|
+
}, /*#__PURE__*/React.createElement(SearchForm, {
|
|
18910
|
+
searchFormData: searchFormData$4,
|
|
18911
|
+
form: form,
|
|
18912
|
+
showColumnsDataIndexList: showColumnsDataIndexList,
|
|
18913
|
+
submit: submit,
|
|
18914
|
+
reset: reset
|
|
18915
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
18916
|
+
style: {
|
|
18917
|
+
marginTop: '4px'
|
|
18918
|
+
}
|
|
18919
|
+
}, /*#__PURE__*/React.createElement(Table, _objectSpread2({
|
|
18920
|
+
className: "GoodModalColumns",
|
|
18921
|
+
rowSelection: rowSelection,
|
|
18922
|
+
rowKey: "id",
|
|
18923
|
+
columns: columns,
|
|
18924
|
+
scroll: {
|
|
18925
|
+
x: '100%',
|
|
18926
|
+
y: 250
|
|
18927
|
+
},
|
|
18928
|
+
size: "small"
|
|
18929
|
+
}, tableProps))), /*#__PURE__*/React.createElement(Popover, {
|
|
18930
|
+
getPopupContainer: function getPopupContainer(triggerNode) {
|
|
18931
|
+
return triggerNode.parentElement;
|
|
18932
|
+
},
|
|
18933
|
+
content: showTable(),
|
|
18934
|
+
title: "\u5DF2\u9009\u62E9".concat(selectList.length, "\u4E2A\u5546\u54C1")
|
|
18935
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
18936
|
+
danger: true,
|
|
18937
|
+
type: "text"
|
|
18938
|
+
}, "\u5DF2\u9009".concat(selectList.length > 99 ? '99+' : selectList.length, "\u4E2A\u5546\u54C1"), /*#__PURE__*/React.createElement(CaretUpOutlined, null))));
|
|
18939
|
+
};
|
|
18940
|
+
var WlnGoodsList = /*#__PURE__*/forwardRef(GoodList$5);
|
|
18941
|
+
|
|
18942
|
+
var WlnGoodsModal = function WlnGoodsModal(props, ref) {
|
|
18943
|
+
useImperativeHandle(ref, function () {
|
|
18944
|
+
return {
|
|
18945
|
+
open: function open(shopCode) {
|
|
18946
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
18947
|
+
setVisible(true);
|
|
18948
|
+
setSelectedRows(options.value || []);
|
|
18949
|
+
}
|
|
18950
|
+
};
|
|
18951
|
+
});
|
|
18952
|
+
var onSubmit = props.onSubmit,
|
|
18953
|
+
width = props.width;
|
|
18954
|
+
var _useState = useState(false),
|
|
18955
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
18956
|
+
visible = _useState2[0],
|
|
18957
|
+
setVisible = _useState2[1];
|
|
18958
|
+
var _useState3 = useState([]),
|
|
18959
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
18960
|
+
selectedRows = _useState4[0],
|
|
18961
|
+
setSelectedRows = _useState4[1];
|
|
18962
|
+
var jkyGoodsListRef = useRef(null);
|
|
18963
|
+
var _onCancel = function onCancel() {
|
|
18964
|
+
setVisible(false);
|
|
18965
|
+
};
|
|
18966
|
+
var onOk = function onOk() {
|
|
18967
|
+
var _jkyGoodsListRef$curr;
|
|
18968
|
+
var selectedList = ((_jkyGoodsListRef$curr = jkyGoodsListRef.current) === null || _jkyGoodsListRef$curr === void 0 ? void 0 : _jkyGoodsListRef$curr.getSelectGoodList()) || [];
|
|
18969
|
+
onSubmit(selectedList);
|
|
18970
|
+
_onCancel();
|
|
18971
|
+
};
|
|
18972
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, visible && /*#__PURE__*/React.createElement(Modal, {
|
|
18973
|
+
title: '选择商品',
|
|
18974
|
+
okText: '确认',
|
|
18975
|
+
cancelText: '取消',
|
|
18976
|
+
visible: visible,
|
|
18977
|
+
width: width || 850,
|
|
18978
|
+
onCancel: function onCancel() {
|
|
18979
|
+
_onCancel();
|
|
18980
|
+
},
|
|
18981
|
+
onOk: onOk,
|
|
18982
|
+
wrapClassName: "goodModal"
|
|
18983
|
+
}, /*#__PURE__*/React.createElement(WlnGoodsList, {
|
|
18984
|
+
ref: jkyGoodsListRef,
|
|
18985
|
+
selectedRows: selectedRows
|
|
18986
|
+
})));
|
|
18987
|
+
};
|
|
18988
|
+
var WlnGoodsModal$1 = /*#__PURE__*/forwardRef(WlnGoodsModal);
|
|
18989
|
+
|
|
18990
|
+
var getTableData$6 = function getTableData(_ref, formData) {
|
|
18991
|
+
var current = _ref.current,
|
|
18992
|
+
pageSize = _ref.pageSize;
|
|
18993
|
+
var conditionList = transformFormData(formData);
|
|
18994
|
+
return extendRequest('/qy/gdfw/product/product/page', {
|
|
18995
|
+
method: 'post',
|
|
18996
|
+
data: {
|
|
18997
|
+
pageSize: pageSize,
|
|
18998
|
+
pageNo: current,
|
|
18999
|
+
platform: 'JY_ERP',
|
|
19000
|
+
conditionList: conditionList
|
|
19001
|
+
}
|
|
19002
|
+
}).then(function (res) {
|
|
19003
|
+
var _res$data = res.data,
|
|
19004
|
+
_res$data$productSkuL = _res$data.productSkuList,
|
|
19005
|
+
productSkuList = _res$data$productSkuL === void 0 ? [] : _res$data$productSkuL,
|
|
19006
|
+
_res$data$total = _res$data.total,
|
|
19007
|
+
total = _res$data$total === void 0 ? 0 : _res$data$total;
|
|
19008
|
+
var newProducts = productSkuList.map(function (item, index) {
|
|
19009
|
+
return _objectSpread2({}, item);
|
|
19010
|
+
});
|
|
19011
|
+
return {
|
|
19012
|
+
total: total,
|
|
19013
|
+
list: newProducts
|
|
19014
|
+
};
|
|
19015
|
+
});
|
|
19016
|
+
};
|
|
19017
|
+
var searchFormData$5 = [{
|
|
19018
|
+
label: '规格名称',
|
|
19019
|
+
name: 'skuName',
|
|
19020
|
+
dataIndex: 'specName'
|
|
19021
|
+
}, {
|
|
19022
|
+
label: '规格编码',
|
|
19023
|
+
name: 'skuCode',
|
|
19024
|
+
dataIndex: 'specNo',
|
|
19025
|
+
type: 'optionalInput'
|
|
18772
19026
|
}, {
|
|
18773
19027
|
label: '商品名称',
|
|
18774
19028
|
name: 'goodName'
|
|
@@ -18777,7 +19031,7 @@ var searchFormData$4 = [{
|
|
|
18777
19031
|
name: 'goodNo',
|
|
18778
19032
|
type: 'optionalInput'
|
|
18779
19033
|
}];
|
|
18780
|
-
var GoodList$
|
|
19034
|
+
var GoodList$6 = function GoodList(props, ref) {
|
|
18781
19035
|
var _useState = useState([]),
|
|
18782
19036
|
_useState2 = _slicedToArray(_useState, 2),
|
|
18783
19037
|
selectList = _useState2[0],
|
|
@@ -18801,7 +19055,7 @@ var GoodList$5 = function GoodList(props, ref) {
|
|
|
18801
19055
|
var _Form$useForm = Form.useForm(),
|
|
18802
19056
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
18803
19057
|
form = _Form$useForm2[0];
|
|
18804
|
-
var _useAntdTable = useAntdTable(getTableData$
|
|
19058
|
+
var _useAntdTable = useAntdTable(getTableData$6, {
|
|
18805
19059
|
defaultPageSize: 10,
|
|
18806
19060
|
form: form
|
|
18807
19061
|
}),
|
|
@@ -18900,7 +19154,7 @@ var GoodList$5 = function GoodList(props, ref) {
|
|
|
18900
19154
|
active: true,
|
|
18901
19155
|
loading: loading
|
|
18902
19156
|
}, /*#__PURE__*/React.createElement(SearchForm, {
|
|
18903
|
-
searchFormData: searchFormData$
|
|
19157
|
+
searchFormData: searchFormData$5,
|
|
18904
19158
|
form: form,
|
|
18905
19159
|
showColumnsDataIndexList: showColumnsDataIndexList,
|
|
18906
19160
|
submit: submit,
|
|
@@ -18930,7 +19184,7 @@ var GoodList$5 = function GoodList(props, ref) {
|
|
|
18930
19184
|
type: "text"
|
|
18931
19185
|
}, "\u5DF2\u9009".concat(selectList.length > 99 ? '99+' : selectList.length, "\u4E2A\u5546\u54C1"), /*#__PURE__*/React.createElement(CaretUpOutlined, null))));
|
|
18932
19186
|
};
|
|
18933
|
-
var JyGoodsList = /*#__PURE__*/forwardRef(GoodList$
|
|
19187
|
+
var JyGoodsList = /*#__PURE__*/forwardRef(GoodList$6);
|
|
18934
19188
|
|
|
18935
19189
|
var JyGoodsModal = function JyGoodsModal(props, ref) {
|
|
18936
19190
|
useImperativeHandle(ref, function () {
|
|
@@ -18980,7 +19234,7 @@ var JyGoodsModal = function JyGoodsModal(props, ref) {
|
|
|
18980
19234
|
};
|
|
18981
19235
|
var JyGoodsModal$1 = /*#__PURE__*/forwardRef(JyGoodsModal);
|
|
18982
19236
|
|
|
18983
|
-
var getTableData$
|
|
19237
|
+
var getTableData$7 = function getTableData(_ref, formData) {
|
|
18984
19238
|
var current = _ref.current,
|
|
18985
19239
|
pageSize = _ref.pageSize;
|
|
18986
19240
|
var conditionList = transformFormData(formData);
|
|
@@ -19007,7 +19261,7 @@ var getTableData$6 = function getTableData(_ref, formData) {
|
|
|
19007
19261
|
};
|
|
19008
19262
|
});
|
|
19009
19263
|
};
|
|
19010
|
-
var searchFormData$
|
|
19264
|
+
var searchFormData$6 = [{
|
|
19011
19265
|
label: '规格名称',
|
|
19012
19266
|
name: 'skuName',
|
|
19013
19267
|
dataIndex: 'specName'
|
|
@@ -19024,7 +19278,7 @@ var searchFormData$5 = [{
|
|
|
19024
19278
|
name: 'goodNo',
|
|
19025
19279
|
type: 'optionalInput'
|
|
19026
19280
|
}];
|
|
19027
|
-
var GoodList$
|
|
19281
|
+
var GoodList$7 = function GoodList(props, ref) {
|
|
19028
19282
|
var _useState = useState([]),
|
|
19029
19283
|
_useState2 = _slicedToArray(_useState, 2),
|
|
19030
19284
|
selectList = _useState2[0],
|
|
@@ -19048,7 +19302,7 @@ var GoodList$6 = function GoodList(props, ref) {
|
|
|
19048
19302
|
var _Form$useForm = Form.useForm(),
|
|
19049
19303
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
19050
19304
|
form = _Form$useForm2[0];
|
|
19051
|
-
var _useAntdTable = useAntdTable(getTableData$
|
|
19305
|
+
var _useAntdTable = useAntdTable(getTableData$7, {
|
|
19052
19306
|
defaultPageSize: 10,
|
|
19053
19307
|
form: form
|
|
19054
19308
|
}),
|
|
@@ -19147,7 +19401,7 @@ var GoodList$6 = function GoodList(props, ref) {
|
|
|
19147
19401
|
active: true,
|
|
19148
19402
|
loading: loading
|
|
19149
19403
|
}, /*#__PURE__*/React.createElement(SearchForm, {
|
|
19150
|
-
searchFormData: searchFormData$
|
|
19404
|
+
searchFormData: searchFormData$6,
|
|
19151
19405
|
form: form,
|
|
19152
19406
|
showColumnsDataIndexList: showColumnsDataIndexList,
|
|
19153
19407
|
submit: submit,
|
|
@@ -19177,7 +19431,7 @@ var GoodList$6 = function GoodList(props, ref) {
|
|
|
19177
19431
|
type: "text"
|
|
19178
19432
|
}, "\u5DF2\u9009".concat(selectList.length > 99 ? '99+' : selectList.length, "\u4E2A\u5546\u54C1"), /*#__PURE__*/React.createElement(CaretUpOutlined, null))));
|
|
19179
19433
|
};
|
|
19180
|
-
var JkyGoodsList = /*#__PURE__*/forwardRef(GoodList$
|
|
19434
|
+
var JkyGoodsList = /*#__PURE__*/forwardRef(GoodList$7);
|
|
19181
19435
|
|
|
19182
19436
|
var JkyGoodsModal = function JkyGoodsModal(props, ref) {
|
|
19183
19437
|
useImperativeHandle(ref, function () {
|
|
@@ -20562,7 +20816,14 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
20562
20816
|
width: 250,
|
|
20563
20817
|
render: renderTextEllipsis
|
|
20564
20818
|
}, {
|
|
20565
|
-
dataIndex: '
|
|
20819
|
+
dataIndex: 'wlnSkuName',
|
|
20820
|
+
title: "sku\u540D\u79F0",
|
|
20821
|
+
align: 'center',
|
|
20822
|
+
ellipsis: true,
|
|
20823
|
+
width: 250,
|
|
20824
|
+
render: renderTextEllipsis
|
|
20825
|
+
}, {
|
|
20826
|
+
dataIndex: 'skuCode',
|
|
20566
20827
|
title: "sku\u7F16\u7801",
|
|
20567
20828
|
align: 'center',
|
|
20568
20829
|
ellipsis: true,
|
|
@@ -20662,6 +20923,34 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
20662
20923
|
ellipsis: true,
|
|
20663
20924
|
width: 70,
|
|
20664
20925
|
render: renderTextEllipsis
|
|
20926
|
+
}, {
|
|
20927
|
+
dataIndex: 'discountedUnitPrice',
|
|
20928
|
+
title: "\u6298\u540E\u5355\u4EF7",
|
|
20929
|
+
align: 'center',
|
|
20930
|
+
ellipsis: true,
|
|
20931
|
+
width: 250,
|
|
20932
|
+
render: renderTextEllipsis
|
|
20933
|
+
}, {
|
|
20934
|
+
dataIndex: 'originPrice',
|
|
20935
|
+
title: "\u539F\u4EF7",
|
|
20936
|
+
align: 'center',
|
|
20937
|
+
ellipsis: true,
|
|
20938
|
+
width: 250,
|
|
20939
|
+
render: renderTextEllipsis
|
|
20940
|
+
}, {
|
|
20941
|
+
dataIndex: 'price',
|
|
20942
|
+
title: "\u5355\u4EF7",
|
|
20943
|
+
align: 'center',
|
|
20944
|
+
ellipsis: true,
|
|
20945
|
+
width: 250,
|
|
20946
|
+
render: renderTextEllipsis
|
|
20947
|
+
}, {
|
|
20948
|
+
dataIndex: 'receivable',
|
|
20949
|
+
title: "\u9500\u552E\u91D1\u989D",
|
|
20950
|
+
align: 'center',
|
|
20951
|
+
ellipsis: true,
|
|
20952
|
+
width: 250,
|
|
20953
|
+
render: renderTextEllipsis
|
|
20665
20954
|
}, {
|
|
20666
20955
|
dataIndex: 'type',
|
|
20667
20956
|
title: "\u8D60\u54C1\u7C7B\u578B",
|
|
@@ -20690,6 +20979,283 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
20690
20979
|
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$3(val));
|
|
20691
20980
|
},
|
|
20692
20981
|
width: 100
|
|
20982
|
+
}, {
|
|
20983
|
+
dataIndex: 'hasRefund',
|
|
20984
|
+
title: "\u662F\u5426\u9000\u6B3E",
|
|
20985
|
+
align: 'center',
|
|
20986
|
+
ellipsis: true,
|
|
20987
|
+
width: 100,
|
|
20988
|
+
render: function render(val, record, index) {
|
|
20989
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
20990
|
+
value: val,
|
|
20991
|
+
onChange: function onChange(value) {
|
|
20992
|
+
updateHandle(value, index, 'isGift');
|
|
20993
|
+
},
|
|
20994
|
+
options: [{
|
|
20995
|
+
label: '是',
|
|
20996
|
+
value: 1
|
|
20997
|
+
}, {
|
|
20998
|
+
label: '否',
|
|
20999
|
+
value: 0
|
|
21000
|
+
}]
|
|
21001
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$3(val));
|
|
21002
|
+
}
|
|
21003
|
+
}, {
|
|
21004
|
+
dataIndex: 'unit',
|
|
21005
|
+
title: "\u5355\u4F4D",
|
|
21006
|
+
align: 'center',
|
|
21007
|
+
ellipsis: true,
|
|
21008
|
+
width: 100,
|
|
21009
|
+
render: renderTextEllipsis
|
|
21010
|
+
}, {
|
|
21011
|
+
dataIndex: 'pkgGoodsName',
|
|
21012
|
+
title: "\u539F\u7EC4\u5408\u5546\u54C1\u540D\u79F0",
|
|
21013
|
+
align: 'center',
|
|
21014
|
+
ellipsis: true,
|
|
21015
|
+
width: 200,
|
|
21016
|
+
render: renderTextEllipsis
|
|
21017
|
+
}, {
|
|
21018
|
+
dataIndex: 'pkgGoodsCode',
|
|
21019
|
+
title: "\u539F\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
|
|
21020
|
+
align: 'center',
|
|
21021
|
+
ellipsis: true,
|
|
21022
|
+
width: 200,
|
|
21023
|
+
render: renderTextEllipsis
|
|
21024
|
+
}, {
|
|
21025
|
+
dataIndex: 'pkgGoodsId',
|
|
21026
|
+
title: "\u539F\u7EC4\u5408\u5546\u54C1id",
|
|
21027
|
+
align: 'center',
|
|
21028
|
+
ellipsis: true,
|
|
21029
|
+
width: 200,
|
|
21030
|
+
render: renderTextEllipsis
|
|
21031
|
+
}],
|
|
21032
|
+
WLN_REISSUE_GOODS: [{
|
|
21033
|
+
dataIndex: 'wlnItemName',
|
|
21034
|
+
title: "\u5546\u54C1\u540D\u79F0",
|
|
21035
|
+
align: 'center',
|
|
21036
|
+
ellipsis: true,
|
|
21037
|
+
width: 250,
|
|
21038
|
+
render: renderTextEllipsis
|
|
21039
|
+
}, {
|
|
21040
|
+
dataIndex: 'goodsCode',
|
|
21041
|
+
title: "\u5546\u54C1\u7F16\u7801",
|
|
21042
|
+
align: 'center',
|
|
21043
|
+
ellipsis: true,
|
|
21044
|
+
width: 250,
|
|
21045
|
+
render: renderTextEllipsis
|
|
21046
|
+
}, {
|
|
21047
|
+
dataIndex: 'wlnSkuName',
|
|
21048
|
+
title: "sku\u540D\u79F0",
|
|
21049
|
+
align: 'center',
|
|
21050
|
+
ellipsis: true,
|
|
21051
|
+
width: 250,
|
|
21052
|
+
render: renderTextEllipsis
|
|
21053
|
+
}, {
|
|
21054
|
+
dataIndex: 'skuCode',
|
|
21055
|
+
title: "sku\u7F16\u7801",
|
|
21056
|
+
align: 'center',
|
|
21057
|
+
ellipsis: true,
|
|
21058
|
+
width: 250,
|
|
21059
|
+
render: renderTextEllipsis
|
|
21060
|
+
}, {
|
|
21061
|
+
dataIndex: 'skuName',
|
|
21062
|
+
title: "\u7EBF\u4E0Asku\u540D\u79F0",
|
|
21063
|
+
align: 'center',
|
|
21064
|
+
ellipsis: true,
|
|
21065
|
+
width: 250,
|
|
21066
|
+
render: renderTextEllipsis
|
|
21067
|
+
}, {
|
|
21068
|
+
dataIndex: 'olnSkuCode',
|
|
21069
|
+
title: "\u7EBF\u4E0Asku\u7F16\u7801",
|
|
21070
|
+
align: 'center',
|
|
21071
|
+
ellipsis: true,
|
|
21072
|
+
width: 150,
|
|
21073
|
+
render: renderTextEllipsis
|
|
21074
|
+
}, {
|
|
21075
|
+
dataIndex: 'sku',
|
|
21076
|
+
title: "\u7EBF\u4E0Asku id",
|
|
21077
|
+
align: 'center',
|
|
21078
|
+
ellipsis: true,
|
|
21079
|
+
width: 150,
|
|
21080
|
+
render: renderTextEllipsis
|
|
21081
|
+
}, {
|
|
21082
|
+
dataIndex: 'name',
|
|
21083
|
+
title: "\u7EBF\u4E0A\u5546\u54C1\u540D\u79F0",
|
|
21084
|
+
align: 'center',
|
|
21085
|
+
ellipsis: true,
|
|
21086
|
+
width: 250,
|
|
21087
|
+
render: renderTextEllipsis
|
|
21088
|
+
}, {
|
|
21089
|
+
dataIndex: 'pic',
|
|
21090
|
+
title: "\u7EBF\u4E0A\u56FE\u7247",
|
|
21091
|
+
align: 'center',
|
|
21092
|
+
ellipsis: true,
|
|
21093
|
+
width: 100,
|
|
21094
|
+
render: function render(val) {
|
|
21095
|
+
return /*#__PURE__*/React.createElement(Image, {
|
|
21096
|
+
width: 30,
|
|
21097
|
+
src: val
|
|
21098
|
+
});
|
|
21099
|
+
}
|
|
21100
|
+
}, {
|
|
21101
|
+
dataIndex: 'olnItemCOde',
|
|
21102
|
+
title: "\u7EBF\u4E0A\u5546\u54C1\u7F16\u7801",
|
|
21103
|
+
align: 'center',
|
|
21104
|
+
ellipsis: true,
|
|
21105
|
+
width: 150,
|
|
21106
|
+
render: renderTextEllipsis
|
|
21107
|
+
}, {
|
|
21108
|
+
dataIndex: 'code',
|
|
21109
|
+
title: "\u7EBF\u4E0A\u5546\u54C1id",
|
|
21110
|
+
align: 'center',
|
|
21111
|
+
ellipsis: true,
|
|
21112
|
+
width: 150,
|
|
21113
|
+
render: renderTextEllipsis
|
|
21114
|
+
}, {
|
|
21115
|
+
dataIndex: 'barCode',
|
|
21116
|
+
title: "\u5546\u54C1\u6761\u7801",
|
|
21117
|
+
align: 'center',
|
|
21118
|
+
ellipsis: true,
|
|
21119
|
+
width: 150,
|
|
21120
|
+
render: renderTextEllipsis
|
|
21121
|
+
}, {
|
|
21122
|
+
dataIndex: 'money',
|
|
21123
|
+
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
21124
|
+
align: 'center',
|
|
21125
|
+
ellipsis: true,
|
|
21126
|
+
width: 100,
|
|
21127
|
+
render: renderTextEllipsis
|
|
21128
|
+
}, {
|
|
21129
|
+
dataIndex: 'number',
|
|
21130
|
+
title: "".concat(text, "\u6570\u91CF"),
|
|
21131
|
+
align: 'center',
|
|
21132
|
+
ellipsis: true,
|
|
21133
|
+
width: 100,
|
|
21134
|
+
render: function render(val, record, index) {
|
|
21135
|
+
return record.canUpdateNumber && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
21136
|
+
style: {
|
|
21137
|
+
width: 70
|
|
21138
|
+
},
|
|
21139
|
+
value: val,
|
|
21140
|
+
min: 1,
|
|
21141
|
+
precision: 0,
|
|
21142
|
+
onChange: function onChange(num) {
|
|
21143
|
+
return updateHandle(num, index, 'number');
|
|
21144
|
+
}
|
|
21145
|
+
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
21146
|
+
}
|
|
21147
|
+
}, {
|
|
21148
|
+
dataIndex: 'share',
|
|
21149
|
+
title: "\u5E94\u6536\u6B3E",
|
|
21150
|
+
align: 'center',
|
|
21151
|
+
ellipsis: true,
|
|
21152
|
+
width: 70,
|
|
21153
|
+
render: renderTextEllipsis
|
|
21154
|
+
}, {
|
|
21155
|
+
dataIndex: 'discountedUnitPrice',
|
|
21156
|
+
title: "\u6298\u540E\u5355\u4EF7",
|
|
21157
|
+
align: 'center',
|
|
21158
|
+
ellipsis: true,
|
|
21159
|
+
width: 250,
|
|
21160
|
+
render: renderTextEllipsis
|
|
21161
|
+
}, {
|
|
21162
|
+
dataIndex: 'originPrice',
|
|
21163
|
+
title: "\u539F\u4EF7",
|
|
21164
|
+
align: 'center',
|
|
21165
|
+
ellipsis: true,
|
|
21166
|
+
width: 250,
|
|
21167
|
+
render: renderTextEllipsis
|
|
21168
|
+
}, {
|
|
21169
|
+
dataIndex: 'price',
|
|
21170
|
+
title: "\u5355\u4EF7",
|
|
21171
|
+
align: 'center',
|
|
21172
|
+
ellipsis: true,
|
|
21173
|
+
width: 250,
|
|
21174
|
+
render: renderTextEllipsis
|
|
21175
|
+
}, {
|
|
21176
|
+
dataIndex: 'receivable',
|
|
21177
|
+
title: "\u9500\u552E\u91D1\u989D",
|
|
21178
|
+
align: 'center',
|
|
21179
|
+
ellipsis: true,
|
|
21180
|
+
width: 250,
|
|
21181
|
+
render: renderTextEllipsis
|
|
21182
|
+
}, {
|
|
21183
|
+
dataIndex: 'type',
|
|
21184
|
+
title: "\u8D60\u54C1\u7C7B\u578B",
|
|
21185
|
+
align: 'center',
|
|
21186
|
+
ellipsis: true,
|
|
21187
|
+
width: 100,
|
|
21188
|
+
render: renderTextEllipsis
|
|
21189
|
+
}, {
|
|
21190
|
+
dataIndex: 'isPackage',
|
|
21191
|
+
title: "\u662F\u5426\u7EC4\u5408\u5546\u54C1",
|
|
21192
|
+
align: 'center',
|
|
21193
|
+
ellipsis: true,
|
|
21194
|
+
render: function render(val, record, index) {
|
|
21195
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
21196
|
+
value: val,
|
|
21197
|
+
onChange: function onChange(value) {
|
|
21198
|
+
updateHandle(value, index, 'isGift');
|
|
21199
|
+
},
|
|
21200
|
+
options: [{
|
|
21201
|
+
label: '是',
|
|
21202
|
+
value: true
|
|
21203
|
+
}, {
|
|
21204
|
+
label: '否',
|
|
21205
|
+
value: false
|
|
21206
|
+
}]
|
|
21207
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$3(val));
|
|
21208
|
+
},
|
|
21209
|
+
width: 100
|
|
21210
|
+
}, {
|
|
21211
|
+
dataIndex: 'hasRefund',
|
|
21212
|
+
title: "\u662F\u5426\u9000\u6B3E",
|
|
21213
|
+
align: 'center',
|
|
21214
|
+
ellipsis: true,
|
|
21215
|
+
width: 100,
|
|
21216
|
+
render: function render(val, record, index) {
|
|
21217
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
21218
|
+
value: val,
|
|
21219
|
+
onChange: function onChange(value) {
|
|
21220
|
+
updateHandle(value, index, 'isGift');
|
|
21221
|
+
},
|
|
21222
|
+
options: [{
|
|
21223
|
+
label: '是',
|
|
21224
|
+
value: 1
|
|
21225
|
+
}, {
|
|
21226
|
+
label: '否',
|
|
21227
|
+
value: 0
|
|
21228
|
+
}]
|
|
21229
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$3(val));
|
|
21230
|
+
}
|
|
21231
|
+
}, {
|
|
21232
|
+
dataIndex: 'unit',
|
|
21233
|
+
title: "\u5355\u4F4D",
|
|
21234
|
+
align: 'center',
|
|
21235
|
+
ellipsis: true,
|
|
21236
|
+
width: 100,
|
|
21237
|
+
render: renderTextEllipsis
|
|
21238
|
+
}, {
|
|
21239
|
+
dataIndex: 'pkgGoodsName',
|
|
21240
|
+
title: "\u539F\u7EC4\u5408\u5546\u54C1\u540D\u79F0",
|
|
21241
|
+
align: 'center',
|
|
21242
|
+
ellipsis: true,
|
|
21243
|
+
width: 200,
|
|
21244
|
+
render: renderTextEllipsis
|
|
21245
|
+
}, {
|
|
21246
|
+
dataIndex: 'pkgGoodsCode',
|
|
21247
|
+
title: "\u539F\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
|
|
21248
|
+
align: 'center',
|
|
21249
|
+
ellipsis: true,
|
|
21250
|
+
width: 200,
|
|
21251
|
+
render: renderTextEllipsis
|
|
21252
|
+
}, {
|
|
21253
|
+
dataIndex: 'pkgGoodsId',
|
|
21254
|
+
title: "\u539F\u7EC4\u5408\u5546\u54C1id",
|
|
21255
|
+
align: 'center',
|
|
21256
|
+
ellipsis: true,
|
|
21257
|
+
width: 200,
|
|
21258
|
+
render: renderTextEllipsis
|
|
20693
21259
|
}]
|
|
20694
21260
|
};
|
|
20695
21261
|
};
|
|
@@ -23808,6 +24374,9 @@ var isErpType = {
|
|
|
23808
24374
|
},
|
|
23809
24375
|
isJky: function isJky(type) {
|
|
23810
24376
|
return ['JKY_GOODS', 'JKY_REISSUE_GOODS'].includes(type);
|
|
24377
|
+
},
|
|
24378
|
+
isWln: function isWln(type) {
|
|
24379
|
+
return ['WLN_GOODS', 'WLN_REISSUE_GOODS'].includes(type);
|
|
23811
24380
|
}
|
|
23812
24381
|
};
|
|
23813
24382
|
var processGoods$1 = function processGoods(_ref) {
|
|
@@ -23867,6 +24436,13 @@ var processGoods$1 = function processGoods(_ref) {
|
|
|
23867
24436
|
canUpdateNumber: canUpdateNumber,
|
|
23868
24437
|
source: source
|
|
23869
24438
|
});
|
|
24439
|
+
} else if (isErpType.isWln(type)) {
|
|
24440
|
+
newList = processWlnGoods$1({
|
|
24441
|
+
list: list,
|
|
24442
|
+
type: type,
|
|
24443
|
+
canUpdateNumber: canUpdateNumber,
|
|
24444
|
+
source: source
|
|
24445
|
+
});
|
|
23870
24446
|
} else {
|
|
23871
24447
|
newList = processDefaultGoods({
|
|
23872
24448
|
list: list,
|
|
@@ -23949,11 +24525,47 @@ var processJkyGoods$1 = function processJkyGoods(_ref3) {
|
|
|
23949
24525
|
});
|
|
23950
24526
|
});
|
|
23951
24527
|
};
|
|
23952
|
-
|
|
23953
|
-
var processWdtGoods$1 = function processWdtGoods(_ref4) {
|
|
24528
|
+
var processWlnGoods$1 = function processWlnGoods(_ref4) {
|
|
23954
24529
|
var list = _ref4.list,
|
|
23955
|
-
type = _ref4.type,
|
|
23956
24530
|
canUpdateNumber = _ref4.canUpdateNumber;
|
|
24531
|
+
return list.map(function (item) {
|
|
24532
|
+
// const {
|
|
24533
|
+
// goodName, // 商品名称
|
|
24534
|
+
// goodNo, // 商品编码
|
|
24535
|
+
// goodId, // 商品ID
|
|
24536
|
+
// specBarcode, // 规格条码
|
|
24537
|
+
// retailPrice, // 零售价
|
|
24538
|
+
// isGift, // 是否赠品
|
|
24539
|
+
// skuType,
|
|
24540
|
+
// specImgUrl, // 规格图片
|
|
24541
|
+
// categoryName, //货品分类
|
|
24542
|
+
// } = item;
|
|
24543
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
24544
|
+
// cateName: categoryName,
|
|
24545
|
+
// goodsName: goodName,
|
|
24546
|
+
// goodsNo: goodNo,
|
|
24547
|
+
// goodsId: goodId,
|
|
24548
|
+
// barcode: specBarcode,
|
|
24549
|
+
// skuImgUrl: specImgUrl,
|
|
24550
|
+
// combinationName: goodName,
|
|
24551
|
+
// combinationCode: goodNo,
|
|
24552
|
+
// isGift: isGift ? 1 : 0,
|
|
24553
|
+
// isFit: skuType === 'combine' ? 1 : 0,
|
|
24554
|
+
uuid: uuid(),
|
|
24555
|
+
canDelete: true,
|
|
24556
|
+
sellCount: 1,
|
|
24557
|
+
// sellPrice: retailPrice,
|
|
24558
|
+
// sellTotal: retailPrice ? (retailPrice * 1).toFixed(2) : '',
|
|
24559
|
+
canEdit: true
|
|
24560
|
+
// canUpdateNumber,
|
|
24561
|
+
});
|
|
24562
|
+
});
|
|
24563
|
+
};
|
|
24564
|
+
// 处理不同类型的商品数据
|
|
24565
|
+
var processWdtGoods$1 = function processWdtGoods(_ref5) {
|
|
24566
|
+
var list = _ref5.list,
|
|
24567
|
+
type = _ref5.type,
|
|
24568
|
+
canUpdateNumber = _ref5.canUpdateNumber;
|
|
23957
24569
|
return list.map(function (item) {
|
|
23958
24570
|
var processedItem = _objectSpread2(_objectSpread2({}, item), {}, {
|
|
23959
24571
|
uuid: uuid(),
|
|
@@ -23971,9 +24583,9 @@ var processWdtGoods$1 = function processWdtGoods(_ref4) {
|
|
|
23971
24583
|
return processedItem;
|
|
23972
24584
|
});
|
|
23973
24585
|
};
|
|
23974
|
-
var processBsE3Goods$1 = function processBsE3Goods(
|
|
23975
|
-
var list =
|
|
23976
|
-
canUpdateNumber =
|
|
24586
|
+
var processBsE3Goods$1 = function processBsE3Goods(_ref6) {
|
|
24587
|
+
var list = _ref6.list,
|
|
24588
|
+
canUpdateNumber = _ref6.canUpdateNumber;
|
|
23977
24589
|
return list.map(function (item) {
|
|
23978
24590
|
var specNo = item.specNo,
|
|
23979
24591
|
specId = item.specId,
|
|
@@ -24008,9 +24620,9 @@ var processBsE3Goods$1 = function processBsE3Goods(_ref5) {
|
|
|
24008
24620
|
});
|
|
24009
24621
|
});
|
|
24010
24622
|
};
|
|
24011
|
-
var processGyGoods$1 = function processGyGoods(
|
|
24012
|
-
var list =
|
|
24013
|
-
source =
|
|
24623
|
+
var processGyGoods$1 = function processGyGoods(_ref7) {
|
|
24624
|
+
var list = _ref7.list,
|
|
24625
|
+
source = _ref7.source;
|
|
24014
24626
|
var isFormWorkOrder = source === 'workOrder';
|
|
24015
24627
|
return list.map(function (item) {
|
|
24016
24628
|
var goodName = item.goodName,
|
|
@@ -24037,8 +24649,8 @@ var processGyGoods$1 = function processGyGoods(_ref6) {
|
|
|
24037
24649
|
});
|
|
24038
24650
|
});
|
|
24039
24651
|
};
|
|
24040
|
-
var processJstGoods$1 = function processJstGoods(
|
|
24041
|
-
var list =
|
|
24652
|
+
var processJstGoods$1 = function processJstGoods(_ref8) {
|
|
24653
|
+
var list = _ref8.list;
|
|
24042
24654
|
return list.map(function (item) {
|
|
24043
24655
|
return {
|
|
24044
24656
|
name: item.goodName,
|
|
@@ -24056,9 +24668,9 @@ var processJstGoods$1 = function processJstGoods(_ref7) {
|
|
|
24056
24668
|
};
|
|
24057
24669
|
});
|
|
24058
24670
|
};
|
|
24059
|
-
var processKmGoods$1 = function processKmGoods(
|
|
24060
|
-
var list =
|
|
24061
|
-
type =
|
|
24671
|
+
var processKmGoods$1 = function processKmGoods(_ref9) {
|
|
24672
|
+
var list = _ref9.list,
|
|
24673
|
+
type = _ref9.type;
|
|
24062
24674
|
var initParamsMap = {
|
|
24063
24675
|
KM_GOODS: {
|
|
24064
24676
|
num: 1
|
|
@@ -24097,9 +24709,9 @@ var processKmGoods$1 = function processKmGoods(_ref8) {
|
|
|
24097
24709
|
}, initParamsMap[type] || {});
|
|
24098
24710
|
});
|
|
24099
24711
|
};
|
|
24100
|
-
var processDefaultGoods = function processDefaultGoods(
|
|
24101
|
-
var list =
|
|
24102
|
-
canUpdateNumber =
|
|
24712
|
+
var processDefaultGoods = function processDefaultGoods(_ref10) {
|
|
24713
|
+
var list = _ref10.list,
|
|
24714
|
+
canUpdateNumber = _ref10.canUpdateNumber;
|
|
24103
24715
|
return list.map(function (item) {
|
|
24104
24716
|
var goodsId = item.goodsId,
|
|
24105
24717
|
name = item.name,
|
|
@@ -24148,6 +24760,7 @@ var GoodsModalMap = {
|
|
|
24148
24760
|
JY_REISSUE_GOODS: JyGoodsModal$1,
|
|
24149
24761
|
JKY_GOODS: JkyGoodsModal$1,
|
|
24150
24762
|
JKY_REISSUE_GOODS: JkyGoodsModal$1,
|
|
24763
|
+
WLN_REISSUE_GOODS: WlnGoodsModal$1,
|
|
24151
24764
|
OTHER_GOODS: GoodsModal$2
|
|
24152
24765
|
};
|
|
24153
24766
|
var systemOrderNoMap = {
|
|
@@ -24162,6 +24775,7 @@ var systemOrderNoMap = {
|
|
|
24162
24775
|
JY_REISSUE_GOODS: 'tradeNo',
|
|
24163
24776
|
JKY_GOODS: 'tradeNo',
|
|
24164
24777
|
JKY_REISSUE_GOODS: 'tradeNo',
|
|
24778
|
+
WLN_REISSUE_GOODS: 'tradeNo',
|
|
24165
24779
|
KM_REISSUE_GOODS: 'sid',
|
|
24166
24780
|
KM_RETURN_GOODS: 'sid',
|
|
24167
24781
|
KM_EXCHANGE_GOODS: 'sid',
|
|
@@ -24419,6 +25033,9 @@ var getButtonText = function getButtonText() {
|
|
|
24419
25033
|
if (['JKY_GOODS', 'JKY_REISSUE_GOODS'].includes(type)) {
|
|
24420
25034
|
return '选择吉客云ERP商品';
|
|
24421
25035
|
}
|
|
25036
|
+
if (['WLN_GOODS', 'WLN_REISSUE_GOODS'].includes(type)) {
|
|
25037
|
+
return '选择万里牛ERP商品';
|
|
25038
|
+
}
|
|
24422
25039
|
return '选择商品';
|
|
24423
25040
|
};
|
|
24424
25041
|
var GoodItem$1 = function GoodItem(props) {
|
|
@@ -24478,8 +25095,8 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
24478
25095
|
var jstReturnGoods = Form === null || Form === void 0 ? void 0 : Form.useWatch('3979edfd6d', form);
|
|
24479
25096
|
var isShowSelectTradeGoods = type !== 'JST_EXCHANGE_GOODS' || (jstReturnGoods === null || jstReturnGoods === void 0 ? void 0 : jstReturnGoods.jstSystemOrderNo);
|
|
24480
25097
|
// 判断是否为是否展示系统单筛选项
|
|
24481
|
-
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;
|
|
24482
|
-
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;
|
|
25098
|
+
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;
|
|
25099
|
+
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;
|
|
24483
25100
|
var refModal = useRef();
|
|
24484
25101
|
console.debug('表格数据', value);
|
|
24485
25102
|
var handleDelete = function handleDelete(record, index) {
|
|
@@ -24574,6 +25191,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
24574
25191
|
case 'JY_REISSUE_GOODS':
|
|
24575
25192
|
case 'JKY_GOODS':
|
|
24576
25193
|
case 'JKY_REISSUE_GOODS':
|
|
25194
|
+
case 'WLN_REISSUE_GOODS':
|
|
24577
25195
|
case 'SKX_GOODS':
|
|
24578
25196
|
case 'SKX_RETURN_GOODS':
|
|
24579
25197
|
{
|
|
@@ -27669,6 +28287,32 @@ var componentMap$2 = {
|
|
|
27669
28287
|
},
|
|
27670
28288
|
getOrderList: jkyUtils.getJkyOrderListSingleton
|
|
27671
28289
|
},
|
|
28290
|
+
WLN_GOODS: {
|
|
28291
|
+
type: 'jky',
|
|
28292
|
+
key: 'wlnGoods',
|
|
28293
|
+
name: '吉客云',
|
|
28294
|
+
orderNo: 'tradeNo',
|
|
28295
|
+
goodDetailOrderNo: 'tradeNo',
|
|
28296
|
+
eventNameMap: {
|
|
28297
|
+
// pubsub 事件
|
|
28298
|
+
type: 'wlnType',
|
|
28299
|
+
updateGoodsHandle: updateWlnGoodsHandle,
|
|
28300
|
+
selectListReturn: 'wlnSelectListReturn',
|
|
28301
|
+
selectList: 'wlnSelectList',
|
|
28302
|
+
reissueSelectList: 'wlnReissueSelectList',
|
|
28303
|
+
reissueSelectListReturn: 'wlnReissueSelectListReturn',
|
|
28304
|
+
reissueDeleteGood: 'wlnReissueDeleteGood',
|
|
28305
|
+
changeShopCode: 'wlnChangeShopCode',
|
|
28306
|
+
reissueType: 'wlnReissueType',
|
|
28307
|
+
returnType: 'wlnReturnType',
|
|
28308
|
+
returnSelectListReturn: 'wlnReturnSelectListReturn',
|
|
28309
|
+
returnSelectList: 'wlnReturnSelectList',
|
|
28310
|
+
deleteGood: 'wlnDeleteGood',
|
|
28311
|
+
returnDeleteGood: 'wlnReturnDeleteGood',
|
|
28312
|
+
exchangeDeleteGood: 'wlnExchangeDeleteGood'
|
|
28313
|
+
},
|
|
28314
|
+
getOrderList: wlnUtils.getOrderListSingleton
|
|
28315
|
+
},
|
|
27672
28316
|
WDT_AFTERSALE_GOODS: {
|
|
27673
28317
|
type: 'wdtAftersale',
|
|
27674
28318
|
key: 'wdtAftersaleGoods',
|
|
@@ -28853,6 +29497,22 @@ var typeMap$2 = {
|
|
|
28853
29497
|
goodDetailsKey: 'goodsDetail',
|
|
28854
29498
|
isShowSelectTradeGoods: true,
|
|
28855
29499
|
showModeBtn: true
|
|
29500
|
+
},
|
|
29501
|
+
WLN_REISSUE_GOODS: {
|
|
29502
|
+
compType: '补发',
|
|
29503
|
+
key: 'wlnReissueGoods',
|
|
29504
|
+
typeName: 'wlnReissueType',
|
|
29505
|
+
systemOrder: 'wlnSystemOrder',
|
|
29506
|
+
systemOrderNo: 'wlnSystemOrderNo',
|
|
29507
|
+
getOrderList: wlnUtils.getOrderListSingleton,
|
|
29508
|
+
updateGoodsHandle: updateWlnGoodsHandle,
|
|
29509
|
+
alwaysShowChooseErpGoodsBtn: true,
|
|
29510
|
+
orderTypeKey: 'orderType',
|
|
29511
|
+
oIdKey: 'tradeNo',
|
|
29512
|
+
outerOiIdKey: 'sourceSubtradeNo',
|
|
29513
|
+
goodDetailsKey: 'goodsDetail',
|
|
29514
|
+
isShowSelectTradeGoods: true,
|
|
29515
|
+
showModeBtn: true
|
|
28856
29516
|
}
|
|
28857
29517
|
};
|
|
28858
29518
|
var PublicReissue = function PublicReissue(props) {
|
|
@@ -29085,6 +29745,10 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
29085
29745
|
orderRest = {
|
|
29086
29746
|
canEdit: true
|
|
29087
29747
|
};
|
|
29748
|
+
} else if (['WLN_REISSUE_GOODS'].includes(type)) {
|
|
29749
|
+
orderRest = {
|
|
29750
|
+
canEdit: true
|
|
29751
|
+
};
|
|
29088
29752
|
}
|
|
29089
29753
|
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] : [];
|
|
29090
29754
|
var hasGoodDetails = orders === null || orders === void 0 ? void 0 : orders.some(function (order) {
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import '../Columns/columns.less';
|
|
3
|
+
export declare namespace WlnGoods {
|
|
4
|
+
interface GoodsInfo {
|
|
5
|
+
companyKey: string;
|
|
6
|
+
id: number;
|
|
7
|
+
platform: 'WLN_ERP';
|
|
8
|
+
goodNo: string;
|
|
9
|
+
goodName: string;
|
|
10
|
+
imageUrl: string;
|
|
11
|
+
goodShortName: string;
|
|
12
|
+
categoryName: string;
|
|
13
|
+
productType: string;
|
|
14
|
+
brandName: string;
|
|
15
|
+
specName: string;
|
|
16
|
+
specNo: string;
|
|
17
|
+
specBarcode: string;
|
|
18
|
+
specImgUrl: string;
|
|
19
|
+
colorName: string;
|
|
20
|
+
sizeName: string;
|
|
21
|
+
marketPrice: string;
|
|
22
|
+
retailPrice: string;
|
|
23
|
+
costPrice: string;
|
|
24
|
+
isGift: boolean;
|
|
25
|
+
skuType: string;
|
|
26
|
+
}
|
|
27
|
+
interface SelectDrawerRefObject {
|
|
28
|
+
getSelectGoodList: () => WlnGoods.GoodsInfo[];
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<WlnGoods.SelectDrawerRefObject>>;
|
|
32
|
+
export default _default;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { WlnGoods } from './GoodsList';
|
|
3
|
+
import type { ErpGoodModelProps } from '../type';
|
|
4
|
+
declare const _default: React.ForwardRefExoticComponent<ErpGoodModelProps<WlnGoods.GoodsInfo[]> & React.RefAttributes<unknown>>;
|
|
5
|
+
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/basic-components",
|
|
3
|
-
"version": "2.6.1-beta.
|
|
3
|
+
"version": "2.6.1-beta.22",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"homepage": "",
|
|
6
6
|
"license": "ISC",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"watch": "nodemon --ignore dist/ --ignore node_modules/ --watch src/ -C -e ts,tsx,less --debug -x 'yarn async'"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@kmkf-fe-packages/kmkf-utils": "2.6.1-beta.
|
|
23
|
+
"@kmkf-fe-packages/kmkf-utils": "2.6.1-beta.22",
|
|
24
24
|
"ahooks": "^3.7.4",
|
|
25
25
|
"ali-react-table": "2.6.1",
|
|
26
26
|
"bignumber.js": "^9.1.2",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"publishConfig": {
|
|
67
67
|
"access": "public"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "77e8e600a10ec474924ee10c1b21c8414eb07710"
|
|
70
70
|
}
|