@kmkf-fe-packages/basic-components 2.6.1-beta.2 → 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'
|
|
@@ -8601,6 +8605,10 @@ var processCallBackStatus = function processCallBackStatus(getValue) {
|
|
|
8601
8605
|
REPAIR_ORDER_STATUS: {
|
|
8602
8606
|
status: 'repairOrderStatusValue',
|
|
8603
8607
|
reason: 'repairOrderStatusReason'
|
|
8608
|
+
},
|
|
8609
|
+
ERP_REMARK: {
|
|
8610
|
+
status: 'erpRemarkStatusValue',
|
|
8611
|
+
reason: 'erpRemarkStatusReason'
|
|
8604
8612
|
}
|
|
8605
8613
|
};
|
|
8606
8614
|
return _defineProperty({}, nex.uniqueKey, {
|
|
@@ -8618,7 +8626,8 @@ var processSceneStatus = function processSceneStatus(getValue) {
|
|
|
8618
8626
|
BS_E3_WAREHOUSING_STATUS: 'bsE3InStockStatusItemList',
|
|
8619
8627
|
MSG_STATUS: 'msgStatusValues',
|
|
8620
8628
|
WDT_WAREHOUSING_STATUS: 'wdtInStockStatusItemList',
|
|
8621
|
-
JKY_WAREHOUSING_STATUS: 'jkyInStockStatusItemList'
|
|
8629
|
+
JKY_WAREHOUSING_STATUS: 'jkyInStockStatusItemList',
|
|
8630
|
+
WLN_WAREHOUSING_STATUS: 'wlnInStockStatusItemList'
|
|
8622
8631
|
};
|
|
8623
8632
|
return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(STATUS_LIST_MAP[nex.workOrderComponentType])), []));
|
|
8624
8633
|
};
|
|
@@ -9446,12 +9455,14 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
|
|
|
9446
9455
|
REISSUE_LOGISTICS: processReissueLogistics,
|
|
9447
9456
|
REISSUE_STATUS: processCallBackStatus,
|
|
9448
9457
|
ADJUST_WORK_ORDER_STATUS: processCallBackStatus,
|
|
9458
|
+
ERP_REMARK: processCallBackStatus,
|
|
9449
9459
|
CREATE_STATUS: processCallBackStatus,
|
|
9450
9460
|
INVOICE_STATUS: processCallBackStatus,
|
|
9451
9461
|
INVOICING_STATUS: processCallBackStatus,
|
|
9452
9462
|
AGREE_REFUND_STATUS: processCallBackStatus,
|
|
9453
9463
|
REJECT_REFUND_STATUS: processCallBackStatus,
|
|
9454
9464
|
ERP_AFTER_SALE_STATUS: processCallBackStatus,
|
|
9465
|
+
ERP_AFTER_SALES_ORDER_REVIEW_STATUS: processCallBackStatus,
|
|
9455
9466
|
AGREE_RETURN_GOODS_STATUS: processCallBackStatus,
|
|
9456
9467
|
REJECT_RETURN_GOODS_STATUS: processCallBackStatus,
|
|
9457
9468
|
RETURN_EXCHANGE_GOODS_REVIEW_STATUS: processCallBackStatus,
|
|
@@ -9462,6 +9473,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
|
|
|
9462
9473
|
BS_E3_WAREHOUSING_STATUS: processSceneStatus,
|
|
9463
9474
|
MSG_STATUS: processSceneStatus,
|
|
9464
9475
|
WDT_WAREHOUSING_STATUS: processSceneStatus,
|
|
9476
|
+
WLN_WAREHOUSING_STATUS: processSceneStatus,
|
|
9465
9477
|
JKY_WAREHOUSING_STATUS: processSceneStatus,
|
|
9466
9478
|
BS_LOGISTICS: processErpLogistics,
|
|
9467
9479
|
WLN_LOGISTICS: processErpLogistics,
|
|
@@ -13158,10 +13170,11 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
13158
13170
|
onJumpPage = props.onJumpPage,
|
|
13159
13171
|
_props$showReason = props.showReason,
|
|
13160
13172
|
showReason = _props$showReason === void 0 ? false : _props$showReason;
|
|
13161
|
-
var _useState = useState(
|
|
13162
|
-
|
|
13163
|
-
|
|
13164
|
-
|
|
13173
|
+
var _useState = useState(function () {
|
|
13174
|
+
return (value === null || value === void 0 ? void 0 : value.interceptCompany) || undefined;
|
|
13175
|
+
}),
|
|
13176
|
+
_useState2 = _slicedToArray(_useState, 1),
|
|
13177
|
+
initCompany = _useState2[0];
|
|
13165
13178
|
var _useState3 = useState([]),
|
|
13166
13179
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
13167
13180
|
typeOptions = _useState4[0],
|
|
@@ -13174,13 +13187,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
13174
13187
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
13175
13188
|
isInterface = _useState8[0],
|
|
13176
13189
|
setIsInterface = _useState8[1];
|
|
13177
|
-
var firstIn = useRef(true);
|
|
13178
13190
|
useEffect(function () {
|
|
13179
|
-
//存入第一次的物流地址,防止非对接物流切换成对接物流后无法编辑
|
|
13180
|
-
if (firstIn.current && (value === null || value === void 0 ? void 0 : value.interceptCompany)) {
|
|
13181
|
-
setInitCompany(value === null || value === void 0 ? void 0 : value.interceptCompany);
|
|
13182
|
-
firstIn.current = false;
|
|
13183
|
-
}
|
|
13184
13191
|
if (!(value === null || value === void 0 ? void 0 : value.interceptCompany)) {
|
|
13185
13192
|
setTypeOptions([]);
|
|
13186
13193
|
setStatusOptions([]);
|
|
@@ -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) {
|
|
@@ -16359,6 +16366,10 @@ var searchFormData = [{
|
|
|
16359
16366
|
label: '款式编码',
|
|
16360
16367
|
name: 'styleCode',
|
|
16361
16368
|
type: 'optionalInput'
|
|
16369
|
+
}, {
|
|
16370
|
+
label: '规格值',
|
|
16371
|
+
name: 'propertiesValue',
|
|
16372
|
+
type: 'optionalInput'
|
|
16362
16373
|
}, {
|
|
16363
16374
|
label: '商品类型',
|
|
16364
16375
|
name: 'skuType',
|
|
@@ -18738,7 +18749,7 @@ var getTableData$5 = function getTableData(_ref, formData) {
|
|
|
18738
18749
|
data: {
|
|
18739
18750
|
pageSize: pageSize,
|
|
18740
18751
|
pageNo: current,
|
|
18741
|
-
platform: '
|
|
18752
|
+
platform: 'WLN_ERP',
|
|
18742
18753
|
conditionList: conditionList
|
|
18743
18754
|
}
|
|
18744
18755
|
}).then(function (res) {
|
|
@@ -18766,10 +18777,10 @@ var searchFormData$4 = [{
|
|
|
18766
18777
|
dataIndex: 'specNo',
|
|
18767
18778
|
type: 'optionalInput'
|
|
18768
18779
|
}, {
|
|
18769
|
-
label: '
|
|
18780
|
+
label: '货品名称',
|
|
18770
18781
|
name: 'goodName'
|
|
18771
18782
|
}, {
|
|
18772
|
-
label: '
|
|
18783
|
+
label: '货品编码',
|
|
18773
18784
|
name: 'goodNo',
|
|
18774
18785
|
type: 'optionalInput'
|
|
18775
18786
|
}];
|
|
@@ -18782,7 +18793,7 @@ var GoodList$5 = function GoodList(props, ref) {
|
|
|
18782
18793
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
18783
18794
|
selectIds = _useState4[0],
|
|
18784
18795
|
setSelectIds = _useState4[1];
|
|
18785
|
-
var _useGetColumns = useGetColumns('
|
|
18796
|
+
var _useGetColumns = useGetColumns('wln'),
|
|
18786
18797
|
_useGetColumns2 = _slicedToArray(_useGetColumns, 3),
|
|
18787
18798
|
columns = _useGetColumns2[0],
|
|
18788
18799
|
showColumnsDataIndexList = _useGetColumns2[1],
|
|
@@ -18841,8 +18852,8 @@ var GoodList$5 = function GoodList(props, ref) {
|
|
|
18841
18852
|
getCheckboxProps: function getCheckboxProps(record) {
|
|
18842
18853
|
var options = {
|
|
18843
18854
|
disabled: (props.selectedRows || []).map(function (row) {
|
|
18844
|
-
return row.
|
|
18845
|
-
}).includes(record.
|
|
18855
|
+
return row.specId || record.id;
|
|
18856
|
+
}).includes(record.specId || record.id),
|
|
18846
18857
|
name: record.id
|
|
18847
18858
|
};
|
|
18848
18859
|
return options;
|
|
@@ -18926,9 +18937,9 @@ var GoodList$5 = function GoodList(props, ref) {
|
|
|
18926
18937
|
type: "text"
|
|
18927
18938
|
}, "\u5DF2\u9009".concat(selectList.length > 99 ? '99+' : selectList.length, "\u4E2A\u5546\u54C1"), /*#__PURE__*/React.createElement(CaretUpOutlined, null))));
|
|
18928
18939
|
};
|
|
18929
|
-
var
|
|
18940
|
+
var WlnGoodsList = /*#__PURE__*/forwardRef(GoodList$5);
|
|
18930
18941
|
|
|
18931
|
-
var
|
|
18942
|
+
var WlnGoodsModal = function WlnGoodsModal(props, ref) {
|
|
18932
18943
|
useImperativeHandle(ref, function () {
|
|
18933
18944
|
return {
|
|
18934
18945
|
open: function open(shopCode) {
|
|
@@ -18948,13 +18959,13 @@ var JyGoodsModal = function JyGoodsModal(props, ref) {
|
|
|
18948
18959
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
18949
18960
|
selectedRows = _useState4[0],
|
|
18950
18961
|
setSelectedRows = _useState4[1];
|
|
18951
|
-
var
|
|
18962
|
+
var jkyGoodsListRef = useRef(null);
|
|
18952
18963
|
var _onCancel = function onCancel() {
|
|
18953
18964
|
setVisible(false);
|
|
18954
18965
|
};
|
|
18955
18966
|
var onOk = function onOk() {
|
|
18956
|
-
var
|
|
18957
|
-
var selectedList = ((
|
|
18967
|
+
var _jkyGoodsListRef$curr;
|
|
18968
|
+
var selectedList = ((_jkyGoodsListRef$curr = jkyGoodsListRef.current) === null || _jkyGoodsListRef$curr === void 0 ? void 0 : _jkyGoodsListRef$curr.getSelectGoodList()) || [];
|
|
18958
18969
|
onSubmit(selectedList);
|
|
18959
18970
|
_onCancel();
|
|
18960
18971
|
};
|
|
@@ -18969,12 +18980,12 @@ var JyGoodsModal = function JyGoodsModal(props, ref) {
|
|
|
18969
18980
|
},
|
|
18970
18981
|
onOk: onOk,
|
|
18971
18982
|
wrapClassName: "goodModal"
|
|
18972
|
-
}, /*#__PURE__*/React.createElement(
|
|
18973
|
-
ref:
|
|
18983
|
+
}, /*#__PURE__*/React.createElement(WlnGoodsList, {
|
|
18984
|
+
ref: jkyGoodsListRef,
|
|
18974
18985
|
selectedRows: selectedRows
|
|
18975
18986
|
})));
|
|
18976
18987
|
};
|
|
18977
|
-
var
|
|
18988
|
+
var WlnGoodsModal$1 = /*#__PURE__*/forwardRef(WlnGoodsModal);
|
|
18978
18989
|
|
|
18979
18990
|
var getTableData$6 = function getTableData(_ref, formData) {
|
|
18980
18991
|
var current = _ref.current,
|
|
@@ -18985,7 +18996,7 @@ var getTableData$6 = function getTableData(_ref, formData) {
|
|
|
18985
18996
|
data: {
|
|
18986
18997
|
pageSize: pageSize,
|
|
18987
18998
|
pageNo: current,
|
|
18988
|
-
platform: '
|
|
18999
|
+
platform: 'JY_ERP',
|
|
18989
19000
|
conditionList: conditionList
|
|
18990
19001
|
}
|
|
18991
19002
|
}).then(function (res) {
|
|
@@ -19013,10 +19024,10 @@ var searchFormData$5 = [{
|
|
|
19013
19024
|
dataIndex: 'specNo',
|
|
19014
19025
|
type: 'optionalInput'
|
|
19015
19026
|
}, {
|
|
19016
|
-
label: '
|
|
19027
|
+
label: '商品名称',
|
|
19017
19028
|
name: 'goodName'
|
|
19018
19029
|
}, {
|
|
19019
|
-
label: '
|
|
19030
|
+
label: '商品编码',
|
|
19020
19031
|
name: 'goodNo',
|
|
19021
19032
|
type: 'optionalInput'
|
|
19022
19033
|
}];
|
|
@@ -19029,7 +19040,7 @@ var GoodList$6 = function GoodList(props, ref) {
|
|
|
19029
19040
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
19030
19041
|
selectIds = _useState4[0],
|
|
19031
19042
|
setSelectIds = _useState4[1];
|
|
19032
|
-
var _useGetColumns = useGetColumns('
|
|
19043
|
+
var _useGetColumns = useGetColumns('jy'),
|
|
19033
19044
|
_useGetColumns2 = _slicedToArray(_useGetColumns, 3),
|
|
19034
19045
|
columns = _useGetColumns2[0],
|
|
19035
19046
|
showColumnsDataIndexList = _useGetColumns2[1],
|
|
@@ -19088,8 +19099,8 @@ var GoodList$6 = function GoodList(props, ref) {
|
|
|
19088
19099
|
getCheckboxProps: function getCheckboxProps(record) {
|
|
19089
19100
|
var options = {
|
|
19090
19101
|
disabled: (props.selectedRows || []).map(function (row) {
|
|
19091
|
-
return row.
|
|
19092
|
-
}).includes(record.
|
|
19102
|
+
return row.id || row.specId;
|
|
19103
|
+
}).includes(record.id || record.specId),
|
|
19093
19104
|
name: record.id
|
|
19094
19105
|
};
|
|
19095
19106
|
return options;
|
|
@@ -19173,9 +19184,9 @@ var GoodList$6 = function GoodList(props, ref) {
|
|
|
19173
19184
|
type: "text"
|
|
19174
19185
|
}, "\u5DF2\u9009".concat(selectList.length > 99 ? '99+' : selectList.length, "\u4E2A\u5546\u54C1"), /*#__PURE__*/React.createElement(CaretUpOutlined, null))));
|
|
19175
19186
|
};
|
|
19176
|
-
var
|
|
19187
|
+
var JyGoodsList = /*#__PURE__*/forwardRef(GoodList$6);
|
|
19177
19188
|
|
|
19178
|
-
var
|
|
19189
|
+
var JyGoodsModal = function JyGoodsModal(props, ref) {
|
|
19179
19190
|
useImperativeHandle(ref, function () {
|
|
19180
19191
|
return {
|
|
19181
19192
|
open: function open(shopCode) {
|
|
@@ -19195,13 +19206,13 @@ var JkyGoodsModal = function JkyGoodsModal(props, ref) {
|
|
|
19195
19206
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
19196
19207
|
selectedRows = _useState4[0],
|
|
19197
19208
|
setSelectedRows = _useState4[1];
|
|
19198
|
-
var
|
|
19209
|
+
var jyGoodsListRef = useRef(null);
|
|
19199
19210
|
var _onCancel = function onCancel() {
|
|
19200
19211
|
setVisible(false);
|
|
19201
19212
|
};
|
|
19202
19213
|
var onOk = function onOk() {
|
|
19203
|
-
var
|
|
19204
|
-
var selectedList = ((
|
|
19214
|
+
var _jyGoodsListRef$curre;
|
|
19215
|
+
var selectedList = ((_jyGoodsListRef$curre = jyGoodsListRef.current) === null || _jyGoodsListRef$curre === void 0 ? void 0 : _jyGoodsListRef$curre.getSelectGoodList()) || [];
|
|
19205
19216
|
onSubmit(selectedList);
|
|
19206
19217
|
_onCancel();
|
|
19207
19218
|
};
|
|
@@ -19216,129 +19227,376 @@ var JkyGoodsModal = function JkyGoodsModal(props, ref) {
|
|
|
19216
19227
|
},
|
|
19217
19228
|
onOk: onOk,
|
|
19218
19229
|
wrapClassName: "goodModal"
|
|
19219
|
-
}, /*#__PURE__*/React.createElement(
|
|
19220
|
-
ref:
|
|
19230
|
+
}, /*#__PURE__*/React.createElement(JyGoodsList, {
|
|
19231
|
+
ref: jyGoodsListRef,
|
|
19221
19232
|
selectedRows: selectedRows
|
|
19222
19233
|
})));
|
|
19223
19234
|
};
|
|
19224
|
-
var
|
|
19235
|
+
var JyGoodsModal$1 = /*#__PURE__*/forwardRef(JyGoodsModal);
|
|
19225
19236
|
|
|
19226
|
-
var
|
|
19227
|
-
var
|
|
19228
|
-
|
|
19229
|
-
|
|
19230
|
-
return {
|
|
19231
|
-
|
|
19232
|
-
|
|
19233
|
-
|
|
19234
|
-
|
|
19235
|
-
|
|
19236
|
-
|
|
19237
|
-
}
|
|
19238
|
-
|
|
19239
|
-
|
|
19240
|
-
|
|
19241
|
-
|
|
19242
|
-
|
|
19243
|
-
|
|
19244
|
-
|
|
19245
|
-
|
|
19246
|
-
|
|
19247
|
-
|
|
19248
|
-
|
|
19249
|
-
|
|
19250
|
-
|
|
19251
|
-
|
|
19252
|
-
|
|
19253
|
-
|
|
19254
|
-
|
|
19255
|
-
|
|
19256
|
-
|
|
19257
|
-
|
|
19258
|
-
|
|
19259
|
-
|
|
19260
|
-
|
|
19237
|
+
var getTableData$7 = function getTableData(_ref, formData) {
|
|
19238
|
+
var current = _ref.current,
|
|
19239
|
+
pageSize = _ref.pageSize;
|
|
19240
|
+
var conditionList = transformFormData(formData);
|
|
19241
|
+
return extendRequest('/qy/gdfw/product/product/page', {
|
|
19242
|
+
method: 'post',
|
|
19243
|
+
data: {
|
|
19244
|
+
pageSize: pageSize,
|
|
19245
|
+
pageNo: current,
|
|
19246
|
+
platform: 'JKY_ERP',
|
|
19247
|
+
conditionList: conditionList
|
|
19248
|
+
}
|
|
19249
|
+
}).then(function (res) {
|
|
19250
|
+
var _res$data = res.data,
|
|
19251
|
+
_res$data$productSkuL = _res$data.productSkuList,
|
|
19252
|
+
productSkuList = _res$data$productSkuL === void 0 ? [] : _res$data$productSkuL,
|
|
19253
|
+
_res$data$total = _res$data.total,
|
|
19254
|
+
total = _res$data$total === void 0 ? 0 : _res$data$total;
|
|
19255
|
+
var newProducts = productSkuList.map(function (item, index) {
|
|
19256
|
+
return _objectSpread2({}, item);
|
|
19257
|
+
});
|
|
19258
|
+
return {
|
|
19259
|
+
total: total,
|
|
19260
|
+
list: newProducts
|
|
19261
|
+
};
|
|
19262
|
+
});
|
|
19263
|
+
};
|
|
19264
|
+
var searchFormData$6 = [{
|
|
19265
|
+
label: '规格名称',
|
|
19266
|
+
name: 'skuName',
|
|
19267
|
+
dataIndex: 'specName'
|
|
19268
|
+
}, {
|
|
19269
|
+
label: '规格编码',
|
|
19270
|
+
name: 'skuCode',
|
|
19271
|
+
dataIndex: 'specNo',
|
|
19272
|
+
type: 'optionalInput'
|
|
19273
|
+
}, {
|
|
19274
|
+
label: '货品名称',
|
|
19275
|
+
name: 'goodName'
|
|
19276
|
+
}, {
|
|
19277
|
+
label: '货品编码',
|
|
19278
|
+
name: 'goodNo',
|
|
19279
|
+
type: 'optionalInput'
|
|
19280
|
+
}];
|
|
19281
|
+
var GoodList$7 = function GoodList(props, ref) {
|
|
19282
|
+
var _useState = useState([]),
|
|
19283
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
19284
|
+
selectList = _useState2[0],
|
|
19285
|
+
setSelect = _useState2[1];
|
|
19286
|
+
var _useState3 = useState([]),
|
|
19287
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
19288
|
+
selectIds = _useState4[0],
|
|
19289
|
+
setSelectIds = _useState4[1];
|
|
19290
|
+
var _useGetColumns = useGetColumns('jky'),
|
|
19291
|
+
_useGetColumns2 = _slicedToArray(_useGetColumns, 3),
|
|
19292
|
+
columns = _useGetColumns2[0],
|
|
19293
|
+
showColumnsDataIndexList = _useGetColumns2[1],
|
|
19294
|
+
loading = _useGetColumns2[2];
|
|
19295
|
+
useImperativeHandle(ref, function () {
|
|
19296
|
+
return {
|
|
19297
|
+
getSelectGoodList: function getSelectGoodList() {
|
|
19298
|
+
return selectList;
|
|
19261
19299
|
}
|
|
19262
|
-
}
|
|
19263
|
-
|
|
19264
|
-
|
|
19265
|
-
|
|
19266
|
-
|
|
19267
|
-
|
|
19268
|
-
|
|
19269
|
-
|
|
19270
|
-
|
|
19271
|
-
|
|
19272
|
-
|
|
19273
|
-
|
|
19274
|
-
|
|
19275
|
-
|
|
19276
|
-
|
|
19277
|
-
|
|
19278
|
-
|
|
19279
|
-
|
|
19280
|
-
|
|
19281
|
-
|
|
19282
|
-
|
|
19283
|
-
|
|
19284
|
-
|
|
19285
|
-
|
|
19286
|
-
|
|
19287
|
-
|
|
19288
|
-
|
|
19289
|
-
|
|
19290
|
-
width: 150,
|
|
19291
|
-
render: renderTextEllipsis
|
|
19292
|
-
}, {
|
|
19293
|
-
dataIndex: 'brandName',
|
|
19294
|
-
title: "\u54C1\u724C\u540D\u79F0",
|
|
19295
|
-
width: 150,
|
|
19296
|
-
render: renderTextEllipsis
|
|
19297
|
-
}, {
|
|
19298
|
-
dataIndex: 'goodsNumber',
|
|
19299
|
-
title: "\u5546\u54C1\u6570\u91CF",
|
|
19300
|
-
width: 150
|
|
19301
|
-
}, {
|
|
19302
|
-
dataIndex: 'goodsPrice',
|
|
19303
|
-
title: "\u5546\u54C1\u5355\u4EF7",
|
|
19304
|
-
width: 150
|
|
19305
|
-
}, {
|
|
19306
|
-
dataIndex: 'shopPrice',
|
|
19307
|
-
title: "\u5546\u54C1\u7F51\u5E97\u552E\u4EF7",
|
|
19308
|
-
width: 150
|
|
19309
|
-
}, {
|
|
19310
|
-
dataIndex: 'isGift',
|
|
19311
|
-
title: "\u662F\u5426\u8D60\u54C1",
|
|
19312
|
-
width: 150,
|
|
19313
|
-
render: function render(val) {
|
|
19314
|
-
return /*#__PURE__*/React.createElement("span", null, +val ? '是' : '否');
|
|
19300
|
+
};
|
|
19301
|
+
});
|
|
19302
|
+
var _Form$useForm = Form.useForm(),
|
|
19303
|
+
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
19304
|
+
form = _Form$useForm2[0];
|
|
19305
|
+
var _useAntdTable = useAntdTable(getTableData$7, {
|
|
19306
|
+
defaultPageSize: 10,
|
|
19307
|
+
form: form
|
|
19308
|
+
}),
|
|
19309
|
+
tableProps = _useAntdTable.tableProps,
|
|
19310
|
+
search = _useAntdTable.search,
|
|
19311
|
+
params = _useAntdTable.params;
|
|
19312
|
+
var submit = search.submit,
|
|
19313
|
+
reset = search.reset;
|
|
19314
|
+
var rowSelection = {
|
|
19315
|
+
selectedRowKeys: selectIds,
|
|
19316
|
+
fixed: true,
|
|
19317
|
+
onSelect: function onSelect(record, selected) {
|
|
19318
|
+
if (selected) {
|
|
19319
|
+
setSelectIds([].concat(_toConsumableArray(selectIds), [record.id]));
|
|
19320
|
+
setSelect([].concat(_toConsumableArray(selectList), [record]));
|
|
19321
|
+
} else {
|
|
19322
|
+
setSelectIds(selectIds.filter(function (t) {
|
|
19323
|
+
return t !== record.id;
|
|
19324
|
+
}));
|
|
19325
|
+
setSelect(selectList.filter(function (t) {
|
|
19326
|
+
return t.id !== record.id;
|
|
19327
|
+
}));
|
|
19315
19328
|
}
|
|
19316
|
-
}
|
|
19317
|
-
|
|
19318
|
-
|
|
19319
|
-
|
|
19320
|
-
|
|
19321
|
-
|
|
19322
|
-
|
|
19323
|
-
|
|
19324
|
-
|
|
19325
|
-
|
|
19326
|
-
|
|
19327
|
-
|
|
19328
|
-
|
|
19329
|
-
|
|
19330
|
-
|
|
19331
|
-
|
|
19332
|
-
},
|
|
19333
|
-
|
|
19334
|
-
|
|
19335
|
-
|
|
19336
|
-
|
|
19337
|
-
|
|
19338
|
-
|
|
19339
|
-
|
|
19340
|
-
|
|
19341
|
-
|
|
19329
|
+
},
|
|
19330
|
+
onSelectAll: function onSelectAll(selected, selectedRows, changeRows) {
|
|
19331
|
+
if (selected) {
|
|
19332
|
+
setSelectIds([].concat(_toConsumableArray(selectIds), _toConsumableArray(changeRows.map(function (t) {
|
|
19333
|
+
return t.id;
|
|
19334
|
+
}))));
|
|
19335
|
+
setSelect([].concat(_toConsumableArray(selectList), _toConsumableArray(changeRows)));
|
|
19336
|
+
} else {
|
|
19337
|
+
setSelectIds(difference(selectIds, changeRows.map(function (t) {
|
|
19338
|
+
return t.id;
|
|
19339
|
+
})));
|
|
19340
|
+
var list = differenceWith(selectList, changeRows, function (arrVal, othVal) {
|
|
19341
|
+
return arrVal.id !== othVal.id;
|
|
19342
|
+
});
|
|
19343
|
+
setSelect(list);
|
|
19344
|
+
}
|
|
19345
|
+
},
|
|
19346
|
+
getCheckboxProps: function getCheckboxProps(record) {
|
|
19347
|
+
var options = {
|
|
19348
|
+
disabled: (props.selectedRows || []).map(function (row) {
|
|
19349
|
+
return row.specId || record.id;
|
|
19350
|
+
}).includes(record.specId || record.id),
|
|
19351
|
+
name: record.id
|
|
19352
|
+
};
|
|
19353
|
+
return options;
|
|
19354
|
+
}
|
|
19355
|
+
};
|
|
19356
|
+
var showTable = function showTable() {
|
|
19357
|
+
var handleDelete = function handleDelete(record) {
|
|
19358
|
+
setSelectIds(selectIds.filter(function (t) {
|
|
19359
|
+
return t !== record.id;
|
|
19360
|
+
}));
|
|
19361
|
+
setSelect(selectList.filter(function (t) {
|
|
19362
|
+
return t.id !== record.id;
|
|
19363
|
+
}));
|
|
19364
|
+
};
|
|
19365
|
+
var showColumns = [{
|
|
19366
|
+
dataIndex: '',
|
|
19367
|
+
title: "\u64CD\u4F5C",
|
|
19368
|
+
ellipsis: true,
|
|
19369
|
+
width: 100,
|
|
19370
|
+
render: function render(val, record) {
|
|
19371
|
+
return /*#__PURE__*/React.createElement(Button, {
|
|
19372
|
+
type: "link",
|
|
19373
|
+
onClick: function onClick() {
|
|
19374
|
+
return handleDelete(record);
|
|
19375
|
+
}
|
|
19376
|
+
}, "\u5220\u9664");
|
|
19377
|
+
}
|
|
19378
|
+
}].concat(takeRight(columns, columns.length - 1));
|
|
19379
|
+
return selectList.length ? /*#__PURE__*/React.createElement("div", {
|
|
19380
|
+
style: {
|
|
19381
|
+
width: '100%',
|
|
19382
|
+
maxWidth: '387px'
|
|
19383
|
+
}
|
|
19384
|
+
}, /*#__PURE__*/React.createElement(Table, {
|
|
19385
|
+
columns: showColumns,
|
|
19386
|
+
rowKey: 'id',
|
|
19387
|
+
dataSource: selectList,
|
|
19388
|
+
scroll: {
|
|
19389
|
+
x: '100%',
|
|
19390
|
+
y: 250
|
|
19391
|
+
},
|
|
19392
|
+
pagination: {
|
|
19393
|
+
size: 'small',
|
|
19394
|
+
total: selectIds.length,
|
|
19395
|
+
pageSize: 10,
|
|
19396
|
+
showSizeChanger: false
|
|
19397
|
+
}
|
|
19398
|
+
})) : null;
|
|
19399
|
+
};
|
|
19400
|
+
return /*#__PURE__*/React.createElement(Skeleton, {
|
|
19401
|
+
active: true,
|
|
19402
|
+
loading: loading
|
|
19403
|
+
}, /*#__PURE__*/React.createElement(SearchForm, {
|
|
19404
|
+
searchFormData: searchFormData$6,
|
|
19405
|
+
form: form,
|
|
19406
|
+
showColumnsDataIndexList: showColumnsDataIndexList,
|
|
19407
|
+
submit: submit,
|
|
19408
|
+
reset: reset
|
|
19409
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
19410
|
+
style: {
|
|
19411
|
+
marginTop: '4px'
|
|
19412
|
+
}
|
|
19413
|
+
}, /*#__PURE__*/React.createElement(Table, _objectSpread2({
|
|
19414
|
+
className: "GoodModalColumns",
|
|
19415
|
+
rowSelection: rowSelection,
|
|
19416
|
+
rowKey: "id",
|
|
19417
|
+
columns: columns,
|
|
19418
|
+
scroll: {
|
|
19419
|
+
x: '100%',
|
|
19420
|
+
y: 250
|
|
19421
|
+
},
|
|
19422
|
+
size: "small"
|
|
19423
|
+
}, tableProps))), /*#__PURE__*/React.createElement(Popover, {
|
|
19424
|
+
getPopupContainer: function getPopupContainer(triggerNode) {
|
|
19425
|
+
return triggerNode.parentElement;
|
|
19426
|
+
},
|
|
19427
|
+
content: showTable(),
|
|
19428
|
+
title: "\u5DF2\u9009\u62E9".concat(selectList.length, "\u4E2A\u5546\u54C1")
|
|
19429
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
19430
|
+
danger: true,
|
|
19431
|
+
type: "text"
|
|
19432
|
+
}, "\u5DF2\u9009".concat(selectList.length > 99 ? '99+' : selectList.length, "\u4E2A\u5546\u54C1"), /*#__PURE__*/React.createElement(CaretUpOutlined, null))));
|
|
19433
|
+
};
|
|
19434
|
+
var JkyGoodsList = /*#__PURE__*/forwardRef(GoodList$7);
|
|
19435
|
+
|
|
19436
|
+
var JkyGoodsModal = function JkyGoodsModal(props, ref) {
|
|
19437
|
+
useImperativeHandle(ref, function () {
|
|
19438
|
+
return {
|
|
19439
|
+
open: function open(shopCode) {
|
|
19440
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
19441
|
+
setVisible(true);
|
|
19442
|
+
setSelectedRows(options.value || []);
|
|
19443
|
+
}
|
|
19444
|
+
};
|
|
19445
|
+
});
|
|
19446
|
+
var onSubmit = props.onSubmit,
|
|
19447
|
+
width = props.width;
|
|
19448
|
+
var _useState = useState(false),
|
|
19449
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
19450
|
+
visible = _useState2[0],
|
|
19451
|
+
setVisible = _useState2[1];
|
|
19452
|
+
var _useState3 = useState([]),
|
|
19453
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
19454
|
+
selectedRows = _useState4[0],
|
|
19455
|
+
setSelectedRows = _useState4[1];
|
|
19456
|
+
var jkyGoodsListRef = useRef(null);
|
|
19457
|
+
var _onCancel = function onCancel() {
|
|
19458
|
+
setVisible(false);
|
|
19459
|
+
};
|
|
19460
|
+
var onOk = function onOk() {
|
|
19461
|
+
var _jkyGoodsListRef$curr;
|
|
19462
|
+
var selectedList = ((_jkyGoodsListRef$curr = jkyGoodsListRef.current) === null || _jkyGoodsListRef$curr === void 0 ? void 0 : _jkyGoodsListRef$curr.getSelectGoodList()) || [];
|
|
19463
|
+
onSubmit(selectedList);
|
|
19464
|
+
_onCancel();
|
|
19465
|
+
};
|
|
19466
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, visible && /*#__PURE__*/React.createElement(Modal, {
|
|
19467
|
+
title: '选择商品',
|
|
19468
|
+
okText: '确认',
|
|
19469
|
+
cancelText: '取消',
|
|
19470
|
+
visible: visible,
|
|
19471
|
+
width: width || 850,
|
|
19472
|
+
onCancel: function onCancel() {
|
|
19473
|
+
_onCancel();
|
|
19474
|
+
},
|
|
19475
|
+
onOk: onOk,
|
|
19476
|
+
wrapClassName: "goodModal"
|
|
19477
|
+
}, /*#__PURE__*/React.createElement(JkyGoodsList, {
|
|
19478
|
+
ref: jkyGoodsListRef,
|
|
19479
|
+
selectedRows: selectedRows
|
|
19480
|
+
})));
|
|
19481
|
+
};
|
|
19482
|
+
var JkyGoodsModal$1 = /*#__PURE__*/forwardRef(JkyGoodsModal);
|
|
19483
|
+
|
|
19484
|
+
var getColumns = function getColumns(_ref) {
|
|
19485
|
+
var _ref$text = _ref.text,
|
|
19486
|
+
disabled = _ref.disabled,
|
|
19487
|
+
updateHandle = _ref.updateHandle;
|
|
19488
|
+
return {
|
|
19489
|
+
//百胜E3补发商品
|
|
19490
|
+
BS_E3_REISSUE_GOODS: [{
|
|
19491
|
+
dataIndex: 'sku',
|
|
19492
|
+
title: "SKU",
|
|
19493
|
+
width: 150,
|
|
19494
|
+
render: renderTextEllipsis
|
|
19495
|
+
}, {
|
|
19496
|
+
dataIndex: 'skuId',
|
|
19497
|
+
title: "SKU ID",
|
|
19498
|
+
width: 150,
|
|
19499
|
+
render: renderTextEllipsis
|
|
19500
|
+
}, {
|
|
19501
|
+
dataIndex: 'goodsName',
|
|
19502
|
+
title: "\u5546\u54C1\u540D\u79F0",
|
|
19503
|
+
width: 150,
|
|
19504
|
+
render: renderTextEllipsis
|
|
19505
|
+
}, {
|
|
19506
|
+
dataIndex: 'goodsShortName',
|
|
19507
|
+
title: "\u5546\u54C1\u7B80\u79F0",
|
|
19508
|
+
width: 150,
|
|
19509
|
+
render: renderTextEllipsis
|
|
19510
|
+
}, {
|
|
19511
|
+
dataIndex: 'picPath',
|
|
19512
|
+
title: "\u5546\u54C1\u56FE\u7247",
|
|
19513
|
+
width: 150,
|
|
19514
|
+
render: function render(val) {
|
|
19515
|
+
return /*#__PURE__*/React.createElement(Image, {
|
|
19516
|
+
width: 30,
|
|
19517
|
+
src: val
|
|
19518
|
+
});
|
|
19519
|
+
}
|
|
19520
|
+
}, {
|
|
19521
|
+
dataIndex: 'goodsSn',
|
|
19522
|
+
title: "\u8D27\u53F7",
|
|
19523
|
+
width: 150,
|
|
19524
|
+
render: renderTextEllipsis
|
|
19525
|
+
}, {
|
|
19526
|
+
dataIndex: 'goodsId',
|
|
19527
|
+
title: "\u8D27\u53F7ID",
|
|
19528
|
+
width: 150,
|
|
19529
|
+
render: renderTextEllipsis
|
|
19530
|
+
}, {
|
|
19531
|
+
dataIndex: 'colorName',
|
|
19532
|
+
title: "\u989C\u8272\u540D\u79F0",
|
|
19533
|
+
width: 150,
|
|
19534
|
+
render: renderTextEllipsis
|
|
19535
|
+
}, {
|
|
19536
|
+
dataIndex: 'colorCode',
|
|
19537
|
+
title: "\u989C\u8272\u4EE3\u7801",
|
|
19538
|
+
width: 150,
|
|
19539
|
+
render: renderTextEllipsis
|
|
19540
|
+
}, {
|
|
19541
|
+
dataIndex: 'sizeName',
|
|
19542
|
+
title: "\u5C3A\u7801\u540D\u79F0",
|
|
19543
|
+
width: 150,
|
|
19544
|
+
render: renderTextEllipsis
|
|
19545
|
+
}, {
|
|
19546
|
+
dataIndex: 'sizeCode',
|
|
19547
|
+
title: "\u5C3A\u7801\u4EE3\u7801",
|
|
19548
|
+
width: 150,
|
|
19549
|
+
render: renderTextEllipsis
|
|
19550
|
+
}, {
|
|
19551
|
+
dataIndex: 'brandName',
|
|
19552
|
+
title: "\u54C1\u724C\u540D\u79F0",
|
|
19553
|
+
width: 150,
|
|
19554
|
+
render: renderTextEllipsis
|
|
19555
|
+
}, {
|
|
19556
|
+
dataIndex: 'goodsNumber',
|
|
19557
|
+
title: "\u5546\u54C1\u6570\u91CF",
|
|
19558
|
+
width: 150
|
|
19559
|
+
}, {
|
|
19560
|
+
dataIndex: 'goodsPrice',
|
|
19561
|
+
title: "\u5546\u54C1\u5355\u4EF7",
|
|
19562
|
+
width: 150
|
|
19563
|
+
}, {
|
|
19564
|
+
dataIndex: 'shopPrice',
|
|
19565
|
+
title: "\u5546\u54C1\u7F51\u5E97\u552E\u4EF7",
|
|
19566
|
+
width: 150
|
|
19567
|
+
}, {
|
|
19568
|
+
dataIndex: 'isGift',
|
|
19569
|
+
title: "\u662F\u5426\u8D60\u54C1",
|
|
19570
|
+
width: 150,
|
|
19571
|
+
render: function render(val) {
|
|
19572
|
+
return /*#__PURE__*/React.createElement("span", null, +val ? '是' : '否');
|
|
19573
|
+
}
|
|
19574
|
+
}],
|
|
19575
|
+
//百胜E3商品信息
|
|
19576
|
+
BS_E3_GOODS: [{
|
|
19577
|
+
dataIndex: 'sku',
|
|
19578
|
+
title: "SKU",
|
|
19579
|
+
align: 'center',
|
|
19580
|
+
ellipsis: true,
|
|
19581
|
+
width: 150,
|
|
19582
|
+
render: renderTextEllipsis
|
|
19583
|
+
}, {
|
|
19584
|
+
dataIndex: 'skuId',
|
|
19585
|
+
title: "SKU ID",
|
|
19586
|
+
align: 'center',
|
|
19587
|
+
ellipsis: true,
|
|
19588
|
+
width: 150,
|
|
19589
|
+
render: renderTextEllipsis
|
|
19590
|
+
}, {
|
|
19591
|
+
dataIndex: 'goodsName',
|
|
19592
|
+
title: "\u5546\u54C1\u540D\u79F0",
|
|
19593
|
+
align: 'center',
|
|
19594
|
+
ellipsis: true,
|
|
19595
|
+
width: 150,
|
|
19596
|
+
render: renderTextEllipsis
|
|
19597
|
+
}, {
|
|
19598
|
+
dataIndex: 'goodsShortName',
|
|
19599
|
+
title: "\u5546\u54C1\u7B80\u79F0",
|
|
19342
19600
|
align: 'center',
|
|
19343
19601
|
ellipsis: true,
|
|
19344
19602
|
width: 100,
|
|
@@ -20441,109 +20699,337 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
20441
20699
|
});
|
|
20442
20700
|
}
|
|
20443
20701
|
}, {
|
|
20444
|
-
dataIndex: 'suiteName',
|
|
20445
|
-
title: "\u7EC4\u5408\u88C5\u540D\u79F0",
|
|
20446
|
-
width: 250,
|
|
20702
|
+
dataIndex: 'suiteName',
|
|
20703
|
+
title: "\u7EC4\u5408\u88C5\u540D\u79F0",
|
|
20704
|
+
width: 250,
|
|
20705
|
+
align: 'center',
|
|
20706
|
+
ellipsis: true,
|
|
20707
|
+
render: function render(text) {
|
|
20708
|
+
return /*#__PURE__*/React.createElement(CopyTextIcon, {
|
|
20709
|
+
val: text
|
|
20710
|
+
});
|
|
20711
|
+
}
|
|
20712
|
+
}, {
|
|
20713
|
+
dataIndex: 'suiteNo',
|
|
20714
|
+
title: "\u7EC4\u5408\u88C5\u7F16\u53F7",
|
|
20715
|
+
width: 150,
|
|
20716
|
+
align: 'center',
|
|
20717
|
+
ellipsis: true,
|
|
20718
|
+
render: renderTextEllipsis
|
|
20719
|
+
}, {
|
|
20720
|
+
dataIndex: 'stockinNum',
|
|
20721
|
+
title: "\u5165\u5E93\u6570\u91CF",
|
|
20722
|
+
width: 150,
|
|
20723
|
+
align: 'center',
|
|
20724
|
+
ellipsis: true,
|
|
20725
|
+
render: renderTextEllipsis
|
|
20726
|
+
}, {
|
|
20727
|
+
dataIndex: 'refundNum',
|
|
20728
|
+
title: "\u9000\u6B3E\u6570\u91CF",
|
|
20729
|
+
width: 150,
|
|
20730
|
+
align: 'center',
|
|
20731
|
+
ellipsis: true,
|
|
20732
|
+
render: renderTextEllipsis
|
|
20733
|
+
}, {
|
|
20734
|
+
dataIndex: 'totalAmount',
|
|
20735
|
+
title: "\u9000\u8D27\u603B\u989D",
|
|
20736
|
+
width: 150,
|
|
20737
|
+
align: 'center',
|
|
20738
|
+
ellipsis: true,
|
|
20739
|
+
render: renderTextEllipsis
|
|
20740
|
+
}, {
|
|
20741
|
+
dataIndex: 'refundAmount',
|
|
20742
|
+
title: "\u5DF2\u9000\u6B3E\u91D1\u989D",
|
|
20743
|
+
width: 150,
|
|
20744
|
+
align: 'center',
|
|
20745
|
+
ellipsis: true,
|
|
20746
|
+
render: renderTextEllipsis
|
|
20747
|
+
}, {
|
|
20748
|
+
dataIndex: 'num',
|
|
20749
|
+
title: "\u5B9E\u9645\u53D1\u51FA\u6570\u91CF",
|
|
20750
|
+
width: 150,
|
|
20751
|
+
align: 'center',
|
|
20752
|
+
ellipsis: true,
|
|
20753
|
+
render: renderTextEllipsis
|
|
20754
|
+
}, {
|
|
20755
|
+
dataIndex: 'price',
|
|
20756
|
+
title: "\u4EF7\u683C",
|
|
20757
|
+
width: 150,
|
|
20758
|
+
align: 'center',
|
|
20759
|
+
ellipsis: true,
|
|
20760
|
+
render: renderTextEllipsis
|
|
20761
|
+
}, {
|
|
20762
|
+
dataIndex: 'originalPrice',
|
|
20763
|
+
title: "\u539F\u4EF7",
|
|
20764
|
+
width: 150,
|
|
20765
|
+
align: 'center',
|
|
20766
|
+
ellipsis: true,
|
|
20767
|
+
render: renderTextEllipsis
|
|
20768
|
+
}, {
|
|
20769
|
+
dataIndex: 'giftTypeDesc',
|
|
20770
|
+
title: "\u8D60\u54C1\u7C7B\u578B",
|
|
20771
|
+
width: 150,
|
|
20772
|
+
align: 'center',
|
|
20773
|
+
ellipsis: true,
|
|
20774
|
+
render: renderTextEllipsis
|
|
20775
|
+
}, {
|
|
20776
|
+
dataIndex: 'unitName',
|
|
20777
|
+
title: "\u57FA\u672C\u5355\u4F4D",
|
|
20778
|
+
ellipsis: true,
|
|
20779
|
+
width: 150,
|
|
20780
|
+
align: 'center',
|
|
20781
|
+
render: renderTextEllipsis
|
|
20782
|
+
}, {
|
|
20783
|
+
dataIndex: 'auxUnitName',
|
|
20784
|
+
title: "\u8F85\u52A9\u5355\u4F4D",
|
|
20785
|
+
ellipsis: true,
|
|
20786
|
+
width: 150,
|
|
20787
|
+
align: 'center',
|
|
20788
|
+
render: renderTextEllipsis
|
|
20789
|
+
}]
|
|
20790
|
+
};
|
|
20791
|
+
};
|
|
20792
|
+
|
|
20793
|
+
var getYesOrNo$3 = function getYesOrNo(val) {
|
|
20794
|
+
if (isNull(val)) return null;
|
|
20795
|
+
return val ? '是' : '否';
|
|
20796
|
+
};
|
|
20797
|
+
var getColumns$3 = function getColumns(_ref) {
|
|
20798
|
+
var _ref$text = _ref.text,
|
|
20799
|
+
text = _ref$text === void 0 ? '' : _ref$text,
|
|
20800
|
+
disabled = _ref.disabled,
|
|
20801
|
+
updateHandle = _ref.updateHandle;
|
|
20802
|
+
return {
|
|
20803
|
+
//万里牛商品信息
|
|
20804
|
+
WLN_GOODS: [{
|
|
20805
|
+
dataIndex: 'wlnItemName',
|
|
20806
|
+
title: "\u5546\u54C1\u540D\u79F0",
|
|
20807
|
+
align: 'center',
|
|
20808
|
+
ellipsis: true,
|
|
20809
|
+
width: 250,
|
|
20810
|
+
render: renderTextEllipsis
|
|
20811
|
+
}, {
|
|
20812
|
+
dataIndex: 'goodsCode',
|
|
20813
|
+
title: "\u5546\u54C1\u7F16\u7801",
|
|
20814
|
+
align: 'center',
|
|
20815
|
+
ellipsis: true,
|
|
20816
|
+
width: 250,
|
|
20817
|
+
render: renderTextEllipsis
|
|
20818
|
+
}, {
|
|
20819
|
+
dataIndex: 'wlnSkuName',
|
|
20820
|
+
title: "sku\u540D\u79F0",
|
|
20821
|
+
align: 'center',
|
|
20822
|
+
ellipsis: true,
|
|
20823
|
+
width: 250,
|
|
20824
|
+
render: renderTextEllipsis
|
|
20825
|
+
}, {
|
|
20826
|
+
dataIndex: 'skuCode',
|
|
20827
|
+
title: "sku\u7F16\u7801",
|
|
20828
|
+
align: 'center',
|
|
20829
|
+
ellipsis: true,
|
|
20830
|
+
width: 250,
|
|
20831
|
+
render: renderTextEllipsis
|
|
20832
|
+
}, {
|
|
20833
|
+
dataIndex: 'skuName',
|
|
20834
|
+
title: "\u7EBF\u4E0Asku\u540D\u79F0",
|
|
20835
|
+
align: 'center',
|
|
20836
|
+
ellipsis: true,
|
|
20837
|
+
width: 250,
|
|
20838
|
+
render: renderTextEllipsis
|
|
20839
|
+
}, {
|
|
20840
|
+
dataIndex: 'olnSkuCode',
|
|
20841
|
+
title: "\u7EBF\u4E0Asku\u7F16\u7801",
|
|
20842
|
+
align: 'center',
|
|
20843
|
+
ellipsis: true,
|
|
20844
|
+
width: 150,
|
|
20845
|
+
render: renderTextEllipsis
|
|
20846
|
+
}, {
|
|
20847
|
+
dataIndex: 'sku',
|
|
20848
|
+
title: "\u7EBF\u4E0Asku id",
|
|
20849
|
+
align: 'center',
|
|
20850
|
+
ellipsis: true,
|
|
20851
|
+
width: 150,
|
|
20852
|
+
render: renderTextEllipsis
|
|
20853
|
+
}, {
|
|
20854
|
+
dataIndex: 'name',
|
|
20855
|
+
title: "\u7EBF\u4E0A\u5546\u54C1\u540D\u79F0",
|
|
20856
|
+
align: 'center',
|
|
20857
|
+
ellipsis: true,
|
|
20858
|
+
width: 250,
|
|
20859
|
+
render: renderTextEllipsis
|
|
20860
|
+
}, {
|
|
20861
|
+
dataIndex: 'pic',
|
|
20862
|
+
title: "\u7EBF\u4E0A\u56FE\u7247",
|
|
20863
|
+
align: 'center',
|
|
20864
|
+
ellipsis: true,
|
|
20865
|
+
width: 100,
|
|
20866
|
+
render: function render(val) {
|
|
20867
|
+
return /*#__PURE__*/React.createElement(Image, {
|
|
20868
|
+
width: 30,
|
|
20869
|
+
src: val
|
|
20870
|
+
});
|
|
20871
|
+
}
|
|
20872
|
+
}, {
|
|
20873
|
+
dataIndex: 'olnItemCOde',
|
|
20874
|
+
title: "\u7EBF\u4E0A\u5546\u54C1\u7F16\u7801",
|
|
20875
|
+
align: 'center',
|
|
20876
|
+
ellipsis: true,
|
|
20877
|
+
width: 150,
|
|
20878
|
+
render: renderTextEllipsis
|
|
20879
|
+
}, {
|
|
20880
|
+
dataIndex: 'code',
|
|
20881
|
+
title: "\u7EBF\u4E0A\u5546\u54C1id",
|
|
20882
|
+
align: 'center',
|
|
20883
|
+
ellipsis: true,
|
|
20884
|
+
width: 150,
|
|
20885
|
+
render: renderTextEllipsis
|
|
20886
|
+
}, {
|
|
20887
|
+
dataIndex: 'barCode',
|
|
20888
|
+
title: "\u5546\u54C1\u6761\u7801",
|
|
20889
|
+
align: 'center',
|
|
20890
|
+
ellipsis: true,
|
|
20891
|
+
width: 150,
|
|
20892
|
+
render: renderTextEllipsis
|
|
20893
|
+
}, {
|
|
20894
|
+
dataIndex: 'money',
|
|
20895
|
+
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
20896
|
+
align: 'center',
|
|
20897
|
+
ellipsis: true,
|
|
20898
|
+
width: 100,
|
|
20899
|
+
render: renderTextEllipsis
|
|
20900
|
+
}, {
|
|
20901
|
+
dataIndex: 'number',
|
|
20902
|
+
title: "".concat(text, "\u6570\u91CF"),
|
|
20903
|
+
align: 'center',
|
|
20904
|
+
ellipsis: true,
|
|
20905
|
+
width: 100,
|
|
20906
|
+
render: function render(val, record, index) {
|
|
20907
|
+
return record.canUpdateNumber && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
20908
|
+
style: {
|
|
20909
|
+
width: 70
|
|
20910
|
+
},
|
|
20911
|
+
value: val,
|
|
20912
|
+
min: 1,
|
|
20913
|
+
precision: 0,
|
|
20914
|
+
onChange: function onChange(num) {
|
|
20915
|
+
return updateHandle(num, index, 'number');
|
|
20916
|
+
}
|
|
20917
|
+
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
20918
|
+
}
|
|
20919
|
+
}, {
|
|
20920
|
+
dataIndex: 'share',
|
|
20921
|
+
title: "\u5E94\u6536\u6B3E",
|
|
20447
20922
|
align: 'center',
|
|
20448
20923
|
ellipsis: true,
|
|
20449
|
-
|
|
20450
|
-
|
|
20451
|
-
val: text
|
|
20452
|
-
});
|
|
20453
|
-
}
|
|
20924
|
+
width: 70,
|
|
20925
|
+
render: renderTextEllipsis
|
|
20454
20926
|
}, {
|
|
20455
|
-
dataIndex: '
|
|
20456
|
-
title: "\
|
|
20457
|
-
width: 150,
|
|
20927
|
+
dataIndex: 'discountedUnitPrice',
|
|
20928
|
+
title: "\u6298\u540E\u5355\u4EF7",
|
|
20458
20929
|
align: 'center',
|
|
20459
20930
|
ellipsis: true,
|
|
20931
|
+
width: 250,
|
|
20460
20932
|
render: renderTextEllipsis
|
|
20461
20933
|
}, {
|
|
20462
|
-
dataIndex: '
|
|
20463
|
-
title: "\
|
|
20464
|
-
width: 150,
|
|
20934
|
+
dataIndex: 'originPrice',
|
|
20935
|
+
title: "\u539F\u4EF7",
|
|
20465
20936
|
align: 'center',
|
|
20466
20937
|
ellipsis: true,
|
|
20938
|
+
width: 250,
|
|
20467
20939
|
render: renderTextEllipsis
|
|
20468
20940
|
}, {
|
|
20469
|
-
dataIndex: '
|
|
20470
|
-
title: "\
|
|
20471
|
-
width: 150,
|
|
20941
|
+
dataIndex: 'price',
|
|
20942
|
+
title: "\u5355\u4EF7",
|
|
20472
20943
|
align: 'center',
|
|
20473
20944
|
ellipsis: true,
|
|
20945
|
+
width: 250,
|
|
20474
20946
|
render: renderTextEllipsis
|
|
20475
20947
|
}, {
|
|
20476
|
-
dataIndex: '
|
|
20477
|
-
title: "\
|
|
20478
|
-
width: 150,
|
|
20948
|
+
dataIndex: 'receivable',
|
|
20949
|
+
title: "\u9500\u552E\u91D1\u989D",
|
|
20479
20950
|
align: 'center',
|
|
20480
20951
|
ellipsis: true,
|
|
20952
|
+
width: 250,
|
|
20481
20953
|
render: renderTextEllipsis
|
|
20482
20954
|
}, {
|
|
20483
|
-
dataIndex: '
|
|
20484
|
-
title: "\
|
|
20485
|
-
width: 150,
|
|
20955
|
+
dataIndex: 'type',
|
|
20956
|
+
title: "\u8D60\u54C1\u7C7B\u578B",
|
|
20486
20957
|
align: 'center',
|
|
20487
20958
|
ellipsis: true,
|
|
20959
|
+
width: 100,
|
|
20488
20960
|
render: renderTextEllipsis
|
|
20489
20961
|
}, {
|
|
20490
|
-
dataIndex: '
|
|
20491
|
-
title: "\
|
|
20492
|
-
width: 150,
|
|
20962
|
+
dataIndex: 'isPackage',
|
|
20963
|
+
title: "\u662F\u5426\u7EC4\u5408\u5546\u54C1",
|
|
20493
20964
|
align: 'center',
|
|
20494
20965
|
ellipsis: true,
|
|
20495
|
-
render:
|
|
20966
|
+
render: function render(val, record, index) {
|
|
20967
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
20968
|
+
value: val,
|
|
20969
|
+
onChange: function onChange(value) {
|
|
20970
|
+
updateHandle(value, index, 'isGift');
|
|
20971
|
+
},
|
|
20972
|
+
options: [{
|
|
20973
|
+
label: '是',
|
|
20974
|
+
value: true
|
|
20975
|
+
}, {
|
|
20976
|
+
label: '否',
|
|
20977
|
+
value: false
|
|
20978
|
+
}]
|
|
20979
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$3(val));
|
|
20980
|
+
},
|
|
20981
|
+
width: 100
|
|
20496
20982
|
}, {
|
|
20497
|
-
dataIndex: '
|
|
20498
|
-
title: "\
|
|
20499
|
-
width: 150,
|
|
20983
|
+
dataIndex: 'hasRefund',
|
|
20984
|
+
title: "\u662F\u5426\u9000\u6B3E",
|
|
20500
20985
|
align: 'center',
|
|
20501
20986
|
ellipsis: true,
|
|
20502
|
-
|
|
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
|
+
}
|
|
20503
21003
|
}, {
|
|
20504
|
-
dataIndex: '
|
|
20505
|
-
title: "\
|
|
20506
|
-
width: 150,
|
|
21004
|
+
dataIndex: 'unit',
|
|
21005
|
+
title: "\u5355\u4F4D",
|
|
20507
21006
|
align: 'center',
|
|
20508
21007
|
ellipsis: true,
|
|
21008
|
+
width: 100,
|
|
20509
21009
|
render: renderTextEllipsis
|
|
20510
21010
|
}, {
|
|
20511
|
-
dataIndex: '
|
|
20512
|
-
title: "\
|
|
20513
|
-
width: 150,
|
|
21011
|
+
dataIndex: 'pkgGoodsName',
|
|
21012
|
+
title: "\u539F\u7EC4\u5408\u5546\u54C1\u540D\u79F0",
|
|
20514
21013
|
align: 'center',
|
|
20515
21014
|
ellipsis: true,
|
|
21015
|
+
width: 200,
|
|
20516
21016
|
render: renderTextEllipsis
|
|
20517
21017
|
}, {
|
|
20518
|
-
dataIndex: '
|
|
20519
|
-
title: "\
|
|
20520
|
-
ellipsis: true,
|
|
20521
|
-
width: 150,
|
|
21018
|
+
dataIndex: 'pkgGoodsCode',
|
|
21019
|
+
title: "\u539F\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
|
|
20522
21020
|
align: 'center',
|
|
21021
|
+
ellipsis: true,
|
|
21022
|
+
width: 200,
|
|
20523
21023
|
render: renderTextEllipsis
|
|
20524
21024
|
}, {
|
|
20525
|
-
dataIndex: '
|
|
20526
|
-
title: "\
|
|
20527
|
-
ellipsis: true,
|
|
20528
|
-
width: 150,
|
|
21025
|
+
dataIndex: 'pkgGoodsId',
|
|
21026
|
+
title: "\u539F\u7EC4\u5408\u5546\u54C1id",
|
|
20529
21027
|
align: 'center',
|
|
21028
|
+
ellipsis: true,
|
|
21029
|
+
width: 200,
|
|
20530
21030
|
render: renderTextEllipsis
|
|
20531
|
-
}]
|
|
20532
|
-
|
|
20533
|
-
};
|
|
20534
|
-
|
|
20535
|
-
var getYesOrNo$3 = function getYesOrNo(val) {
|
|
20536
|
-
if (isNull(val)) return null;
|
|
20537
|
-
return val ? '是' : '否';
|
|
20538
|
-
};
|
|
20539
|
-
var getColumns$3 = function getColumns(_ref) {
|
|
20540
|
-
var _ref$text = _ref.text,
|
|
20541
|
-
text = _ref$text === void 0 ? '' : _ref$text,
|
|
20542
|
-
disabled = _ref.disabled,
|
|
20543
|
-
updateHandle = _ref.updateHandle;
|
|
20544
|
-
return {
|
|
20545
|
-
//万里牛商品信息
|
|
20546
|
-
WLN_GOODS: [{
|
|
21031
|
+
}],
|
|
21032
|
+
WLN_REISSUE_GOODS: [{
|
|
20547
21033
|
dataIndex: 'wlnItemName',
|
|
20548
21034
|
title: "\u5546\u54C1\u540D\u79F0",
|
|
20549
21035
|
align: 'center',
|
|
@@ -20557,6 +21043,13 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
20557
21043
|
ellipsis: true,
|
|
20558
21044
|
width: 250,
|
|
20559
21045
|
render: renderTextEllipsis
|
|
21046
|
+
}, {
|
|
21047
|
+
dataIndex: 'wlnSkuName',
|
|
21048
|
+
title: "sku\u540D\u79F0",
|
|
21049
|
+
align: 'center',
|
|
21050
|
+
ellipsis: true,
|
|
21051
|
+
width: 250,
|
|
21052
|
+
render: renderTextEllipsis
|
|
20560
21053
|
}, {
|
|
20561
21054
|
dataIndex: 'skuCode',
|
|
20562
21055
|
title: "sku\u7F16\u7801",
|
|
@@ -20658,6 +21151,34 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
20658
21151
|
ellipsis: true,
|
|
20659
21152
|
width: 70,
|
|
20660
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
|
|
20661
21182
|
}, {
|
|
20662
21183
|
dataIndex: 'type',
|
|
20663
21184
|
title: "\u8D60\u54C1\u7C7B\u578B",
|
|
@@ -20686,6 +21207,55 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
20686
21207
|
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$3(val));
|
|
20687
21208
|
},
|
|
20688
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
|
|
20689
21259
|
}]
|
|
20690
21260
|
};
|
|
20691
21261
|
};
|
|
@@ -23804,6 +24374,9 @@ var isErpType = {
|
|
|
23804
24374
|
},
|
|
23805
24375
|
isJky: function isJky(type) {
|
|
23806
24376
|
return ['JKY_GOODS', 'JKY_REISSUE_GOODS'].includes(type);
|
|
24377
|
+
},
|
|
24378
|
+
isWln: function isWln(type) {
|
|
24379
|
+
return ['WLN_GOODS', 'WLN_REISSUE_GOODS'].includes(type);
|
|
23807
24380
|
}
|
|
23808
24381
|
};
|
|
23809
24382
|
var processGoods$1 = function processGoods(_ref) {
|
|
@@ -23863,6 +24436,13 @@ var processGoods$1 = function processGoods(_ref) {
|
|
|
23863
24436
|
canUpdateNumber: canUpdateNumber,
|
|
23864
24437
|
source: source
|
|
23865
24438
|
});
|
|
24439
|
+
} else if (isErpType.isWln(type)) {
|
|
24440
|
+
newList = processWlnGoods$1({
|
|
24441
|
+
list: list,
|
|
24442
|
+
type: type,
|
|
24443
|
+
canUpdateNumber: canUpdateNumber,
|
|
24444
|
+
source: source
|
|
24445
|
+
});
|
|
23866
24446
|
} else {
|
|
23867
24447
|
newList = processDefaultGoods({
|
|
23868
24448
|
list: list,
|
|
@@ -23945,11 +24525,47 @@ var processJkyGoods$1 = function processJkyGoods(_ref3) {
|
|
|
23945
24525
|
});
|
|
23946
24526
|
});
|
|
23947
24527
|
};
|
|
23948
|
-
|
|
23949
|
-
var processWdtGoods$1 = function processWdtGoods(_ref4) {
|
|
24528
|
+
var processWlnGoods$1 = function processWlnGoods(_ref4) {
|
|
23950
24529
|
var list = _ref4.list,
|
|
23951
|
-
type = _ref4.type,
|
|
23952
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;
|
|
23953
24569
|
return list.map(function (item) {
|
|
23954
24570
|
var processedItem = _objectSpread2(_objectSpread2({}, item), {}, {
|
|
23955
24571
|
uuid: uuid(),
|
|
@@ -23967,9 +24583,9 @@ var processWdtGoods$1 = function processWdtGoods(_ref4) {
|
|
|
23967
24583
|
return processedItem;
|
|
23968
24584
|
});
|
|
23969
24585
|
};
|
|
23970
|
-
var processBsE3Goods$1 = function processBsE3Goods(
|
|
23971
|
-
var list =
|
|
23972
|
-
canUpdateNumber =
|
|
24586
|
+
var processBsE3Goods$1 = function processBsE3Goods(_ref6) {
|
|
24587
|
+
var list = _ref6.list,
|
|
24588
|
+
canUpdateNumber = _ref6.canUpdateNumber;
|
|
23973
24589
|
return list.map(function (item) {
|
|
23974
24590
|
var specNo = item.specNo,
|
|
23975
24591
|
specId = item.specId,
|
|
@@ -24004,9 +24620,9 @@ var processBsE3Goods$1 = function processBsE3Goods(_ref5) {
|
|
|
24004
24620
|
});
|
|
24005
24621
|
});
|
|
24006
24622
|
};
|
|
24007
|
-
var processGyGoods$1 = function processGyGoods(
|
|
24008
|
-
var list =
|
|
24009
|
-
source =
|
|
24623
|
+
var processGyGoods$1 = function processGyGoods(_ref7) {
|
|
24624
|
+
var list = _ref7.list,
|
|
24625
|
+
source = _ref7.source;
|
|
24010
24626
|
var isFormWorkOrder = source === 'workOrder';
|
|
24011
24627
|
return list.map(function (item) {
|
|
24012
24628
|
var goodName = item.goodName,
|
|
@@ -24033,8 +24649,8 @@ var processGyGoods$1 = function processGyGoods(_ref6) {
|
|
|
24033
24649
|
});
|
|
24034
24650
|
});
|
|
24035
24651
|
};
|
|
24036
|
-
var processJstGoods$1 = function processJstGoods(
|
|
24037
|
-
var list =
|
|
24652
|
+
var processJstGoods$1 = function processJstGoods(_ref8) {
|
|
24653
|
+
var list = _ref8.list;
|
|
24038
24654
|
return list.map(function (item) {
|
|
24039
24655
|
return {
|
|
24040
24656
|
name: item.goodName,
|
|
@@ -24052,9 +24668,9 @@ var processJstGoods$1 = function processJstGoods(_ref7) {
|
|
|
24052
24668
|
};
|
|
24053
24669
|
});
|
|
24054
24670
|
};
|
|
24055
|
-
var processKmGoods$1 = function processKmGoods(
|
|
24056
|
-
var list =
|
|
24057
|
-
type =
|
|
24671
|
+
var processKmGoods$1 = function processKmGoods(_ref9) {
|
|
24672
|
+
var list = _ref9.list,
|
|
24673
|
+
type = _ref9.type;
|
|
24058
24674
|
var initParamsMap = {
|
|
24059
24675
|
KM_GOODS: {
|
|
24060
24676
|
num: 1
|
|
@@ -24076,7 +24692,7 @@ var processKmGoods$1 = function processKmGoods(_ref8) {
|
|
|
24076
24692
|
sysTitle: item.goodName,
|
|
24077
24693
|
title: null,
|
|
24078
24694
|
shortTitle: item.goodShortName,
|
|
24079
|
-
sysOuterId: item.
|
|
24695
|
+
sysOuterId: item.specNo,
|
|
24080
24696
|
outerId: item.goodNo,
|
|
24081
24697
|
skuSysId: item.specId,
|
|
24082
24698
|
sysSkuId: item.specId,
|
|
@@ -24093,9 +24709,9 @@ var processKmGoods$1 = function processKmGoods(_ref8) {
|
|
|
24093
24709
|
}, initParamsMap[type] || {});
|
|
24094
24710
|
});
|
|
24095
24711
|
};
|
|
24096
|
-
var processDefaultGoods = function processDefaultGoods(
|
|
24097
|
-
var list =
|
|
24098
|
-
canUpdateNumber =
|
|
24712
|
+
var processDefaultGoods = function processDefaultGoods(_ref10) {
|
|
24713
|
+
var list = _ref10.list,
|
|
24714
|
+
canUpdateNumber = _ref10.canUpdateNumber;
|
|
24099
24715
|
return list.map(function (item) {
|
|
24100
24716
|
var goodsId = item.goodsId,
|
|
24101
24717
|
name = item.name,
|
|
@@ -24144,6 +24760,7 @@ var GoodsModalMap = {
|
|
|
24144
24760
|
JY_REISSUE_GOODS: JyGoodsModal$1,
|
|
24145
24761
|
JKY_GOODS: JkyGoodsModal$1,
|
|
24146
24762
|
JKY_REISSUE_GOODS: JkyGoodsModal$1,
|
|
24763
|
+
WLN_REISSUE_GOODS: WlnGoodsModal$1,
|
|
24147
24764
|
OTHER_GOODS: GoodsModal$2
|
|
24148
24765
|
};
|
|
24149
24766
|
var systemOrderNoMap = {
|
|
@@ -24158,6 +24775,7 @@ var systemOrderNoMap = {
|
|
|
24158
24775
|
JY_REISSUE_GOODS: 'tradeNo',
|
|
24159
24776
|
JKY_GOODS: 'tradeNo',
|
|
24160
24777
|
JKY_REISSUE_GOODS: 'tradeNo',
|
|
24778
|
+
WLN_REISSUE_GOODS: 'tradeNo',
|
|
24161
24779
|
KM_REISSUE_GOODS: 'sid',
|
|
24162
24780
|
KM_RETURN_GOODS: 'sid',
|
|
24163
24781
|
KM_EXCHANGE_GOODS: 'sid',
|
|
@@ -24415,6 +25033,9 @@ var getButtonText = function getButtonText() {
|
|
|
24415
25033
|
if (['JKY_GOODS', 'JKY_REISSUE_GOODS'].includes(type)) {
|
|
24416
25034
|
return '选择吉客云ERP商品';
|
|
24417
25035
|
}
|
|
25036
|
+
if (['WLN_GOODS', 'WLN_REISSUE_GOODS'].includes(type)) {
|
|
25037
|
+
return '选择万里牛ERP商品';
|
|
25038
|
+
}
|
|
24418
25039
|
return '选择商品';
|
|
24419
25040
|
};
|
|
24420
25041
|
var GoodItem$1 = function GoodItem(props) {
|
|
@@ -24474,8 +25095,8 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
24474
25095
|
var jstReturnGoods = Form === null || Form === void 0 ? void 0 : Form.useWatch('3979edfd6d', form);
|
|
24475
25096
|
var isShowSelectTradeGoods = type !== 'JST_EXCHANGE_GOODS' || (jstReturnGoods === null || jstReturnGoods === void 0 ? void 0 : jstReturnGoods.jstSystemOrderNo);
|
|
24476
25097
|
// 判断是否为是否展示系统单筛选项
|
|
24477
|
-
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;
|
|
24478
|
-
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;
|
|
24479
25100
|
var refModal = useRef();
|
|
24480
25101
|
console.debug('表格数据', value);
|
|
24481
25102
|
var handleDelete = function handleDelete(record, index) {
|
|
@@ -24570,6 +25191,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
24570
25191
|
case 'JY_REISSUE_GOODS':
|
|
24571
25192
|
case 'JKY_GOODS':
|
|
24572
25193
|
case 'JKY_REISSUE_GOODS':
|
|
25194
|
+
case 'WLN_REISSUE_GOODS':
|
|
24573
25195
|
case 'SKX_GOODS':
|
|
24574
25196
|
case 'SKX_RETURN_GOODS':
|
|
24575
25197
|
{
|
|
@@ -26395,11 +27017,46 @@ var index$2 = (function (props) {
|
|
|
26395
27017
|
return _ref13.apply(this, arguments);
|
|
26396
27018
|
};
|
|
26397
27019
|
}();
|
|
26398
|
-
var
|
|
26399
|
-
|
|
27020
|
+
var rowKey = rowKeyMap[type] || 'billNo';
|
|
27021
|
+
var handleRadioChange = function handleRadioChange(record) {
|
|
27022
|
+
var _value$selectIds;
|
|
27023
|
+
if (disabled) return;
|
|
27024
|
+
var currentKey = String(value === null || value === void 0 ? void 0 : (_value$selectIds = value.selectIds) === null || _value$selectIds === void 0 ? void 0 : _value$selectIds[0]);
|
|
27025
|
+
var rowKeyVal = String(record[rowKey]);
|
|
27026
|
+
if (currentKey && currentKey === rowKeyVal) {
|
|
27027
|
+
_onChange(_objectSpread2(_objectSpread2({}, value), {}, {
|
|
27028
|
+
selectIds: [],
|
|
27029
|
+
selectedRows: []
|
|
27030
|
+
}));
|
|
27031
|
+
} else {
|
|
27032
|
+
_onChange(_objectSpread2(_objectSpread2({}, value), {}, {
|
|
27033
|
+
selectIds: [rowKeyVal],
|
|
27034
|
+
selectedRows: [record]
|
|
27035
|
+
}));
|
|
27036
|
+
}
|
|
27037
|
+
};
|
|
27038
|
+
var radioColumn = isRadio ? {
|
|
27039
|
+
width: 50,
|
|
27040
|
+
fixed: true,
|
|
27041
|
+
render: function render(_, record) {
|
|
27042
|
+
var _value$selectIds2;
|
|
27043
|
+
var checked = String(value === null || value === void 0 ? void 0 : (_value$selectIds2 = value.selectIds) === null || _value$selectIds2 === void 0 ? void 0 : _value$selectIds2[0]) === String(record[rowKey]);
|
|
27044
|
+
return /*#__PURE__*/React.createElement(Radio, {
|
|
27045
|
+
checked: checked,
|
|
27046
|
+
onClick: function onClick(e) {
|
|
27047
|
+
e.preventDefault();
|
|
27048
|
+
handleRadioChange(record);
|
|
27049
|
+
},
|
|
27050
|
+
disabled: disabled
|
|
27051
|
+
});
|
|
27052
|
+
}
|
|
27053
|
+
} : null;
|
|
27054
|
+
var displayColumns = isRadio && radioColumn ? [radioColumn].concat(_toConsumableArray(columns)) : columns;
|
|
27055
|
+
var rowSelection = isRadio ? undefined : {
|
|
27056
|
+
type: 'checkbox',
|
|
26400
27057
|
selectedRowKeys: (value === null || value === void 0 ? void 0 : value.selectIds) || [],
|
|
26401
27058
|
fixed: true,
|
|
26402
|
-
onChange: function onChange(selectedRowKeys, selectedRows
|
|
27059
|
+
onChange: function onChange(selectedRowKeys, selectedRows) {
|
|
26403
27060
|
_onChange(_objectSpread2(_objectSpread2({}, value), {}, {
|
|
26404
27061
|
selectIds: selectedRowKeys,
|
|
26405
27062
|
selectedRows: selectedRows
|
|
@@ -26445,9 +27102,9 @@ var index$2 = (function (props) {
|
|
|
26445
27102
|
allowClear: true
|
|
26446
27103
|
})), /*#__PURE__*/React.createElement(Table, {
|
|
26447
27104
|
dataSource: filteredData,
|
|
26448
|
-
columns:
|
|
27105
|
+
columns: displayColumns,
|
|
26449
27106
|
rowSelection: rowSelection,
|
|
26450
|
-
rowKey:
|
|
27107
|
+
rowKey: rowKey,
|
|
26451
27108
|
size: "small",
|
|
26452
27109
|
pagination: false,
|
|
26453
27110
|
scroll: {
|
|
@@ -27630,6 +28287,32 @@ var componentMap$2 = {
|
|
|
27630
28287
|
},
|
|
27631
28288
|
getOrderList: jkyUtils.getJkyOrderListSingleton
|
|
27632
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
|
+
},
|
|
27633
28316
|
WDT_AFTERSALE_GOODS: {
|
|
27634
28317
|
type: 'wdtAftersale',
|
|
27635
28318
|
key: 'wdtAftersaleGoods',
|
|
@@ -28814,6 +29497,22 @@ var typeMap$2 = {
|
|
|
28814
29497
|
goodDetailsKey: 'goodsDetail',
|
|
28815
29498
|
isShowSelectTradeGoods: true,
|
|
28816
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
|
|
28817
29516
|
}
|
|
28818
29517
|
};
|
|
28819
29518
|
var PublicReissue = function PublicReissue(props) {
|
|
@@ -29046,6 +29745,10 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
29046
29745
|
orderRest = {
|
|
29047
29746
|
canEdit: true
|
|
29048
29747
|
};
|
|
29748
|
+
} else if (['WLN_REISSUE_GOODS'].includes(type)) {
|
|
29749
|
+
orderRest = {
|
|
29750
|
+
canEdit: true
|
|
29751
|
+
};
|
|
29049
29752
|
}
|
|
29050
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] : [];
|
|
29051
29754
|
var hasGoodDetails = orders === null || orders === void 0 ? void 0 : orders.some(function (order) {
|