@kmkf-fe-packages/basic-components 2.7.2 → 2.7.3-beta.3
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,
|
|
@@ -11648,7 +11655,7 @@ var GoodsModal = function GoodsModal(props) {
|
|
|
11648
11655
|
key: item.value
|
|
11649
11656
|
}, item.label);
|
|
11650
11657
|
})), /*#__PURE__*/React.createElement(Search, {
|
|
11651
|
-
placeholder: searchParams.type !== 'orderProduct' ? platform === 'taobao' ? '
|
|
11658
|
+
placeholder: searchParams.type !== 'orderProduct' ? platform === 'taobao' ? '宝贝标题' : '商品ID' : '宝贝标题',
|
|
11652
11659
|
// enterButton="搜索"
|
|
11653
11660
|
className: "search",
|
|
11654
11661
|
value: platform === 'taobao' ? searchParams.title : searchParams.numIids,
|
|
@@ -13154,6 +13161,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
13154
13161
|
_props$required = props.required,
|
|
13155
13162
|
required = _props$required === void 0 ? false : _props$required,
|
|
13156
13163
|
onChange = props.onChange,
|
|
13164
|
+
_onBlur = props.onBlur,
|
|
13157
13165
|
_props$disabled = props.disabled,
|
|
13158
13166
|
disabled = _props$disabled === void 0 ? false : _props$disabled,
|
|
13159
13167
|
_props$isEditing = props.isEditing,
|
|
@@ -13367,7 +13375,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
13367
13375
|
}
|
|
13368
13376
|
}
|
|
13369
13377
|
console.log('newValue', newValue);
|
|
13370
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
13378
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(newValue, type);
|
|
13371
13379
|
};
|
|
13372
13380
|
//智能识别回调
|
|
13373
13381
|
var changeIdentify = function changeIdentify(val) {
|
|
@@ -13419,6 +13427,10 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
13419
13427
|
var _e$target$value;
|
|
13420
13428
|
return changeHandle((_e$target$value = e.target.value) === null || _e$target$value === void 0 ? void 0 : _e$target$value.trim(), 'interceptCode');
|
|
13421
13429
|
},
|
|
13430
|
+
onBlur: function onBlur(e) {
|
|
13431
|
+
var _e$target$value2;
|
|
13432
|
+
return _onBlur === null || _onBlur === void 0 ? void 0 : _onBlur((_e$target$value2 = e.target.value) === null || _e$target$value2 === void 0 ? void 0 : _e$target$value2.trim(), 'interceptCode');
|
|
13433
|
+
},
|
|
13422
13434
|
value: value === null || value === void 0 ? void 0 : value.interceptCode
|
|
13423
13435
|
}))), /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Item, {
|
|
13424
13436
|
label: /*#__PURE__*/React.createElement("span", null, "\u5BA2\u6237\u7F16\u7801\uFF08K\u7801\uFF09\uFF1A", platform === 'pc' ? /*#__PURE__*/React.createElement(Typography.Link, {
|
|
@@ -13492,8 +13504,8 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
13492
13504
|
disabled: disabled || isEdit,
|
|
13493
13505
|
placeholder: senderMobileLabel,
|
|
13494
13506
|
onChange: function onChange(e) {
|
|
13495
|
-
var _e$target$
|
|
13496
|
-
return changeHandle((_e$target$
|
|
13507
|
+
var _e$target$value3;
|
|
13508
|
+
return changeHandle((_e$target$value3 = e.target.value) === null || _e$target$value3 === void 0 ? void 0 : _e$target$value3.trim(), 'interceptSenderMobile');
|
|
13497
13509
|
}
|
|
13498
13510
|
})), /*#__PURE__*/React.createElement(Item, {
|
|
13499
13511
|
label: '退回地址',
|
|
@@ -13552,8 +13564,8 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
13552
13564
|
},
|
|
13553
13565
|
placeholder: "\u5176\u4ED6",
|
|
13554
13566
|
onChange: function onChange(e) {
|
|
13555
|
-
var _e$target$
|
|
13556
|
-
return changeHandle((_e$target$
|
|
13567
|
+
var _e$target$value4;
|
|
13568
|
+
return changeHandle((_e$target$value4 = e.target.value) === null || _e$target$value4 === void 0 ? void 0 : _e$target$value4.trim(), 'interceptLogisticsStatusOther');
|
|
13557
13569
|
}
|
|
13558
13570
|
})), /*#__PURE__*/React.createElement(Item, {
|
|
13559
13571
|
label: '拦截状态',
|
|
@@ -13607,8 +13619,8 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
13607
13619
|
disabled: true,
|
|
13608
13620
|
placeholder: "\u63A5\u53E3\u72B6\u6001\u539F\u56E0",
|
|
13609
13621
|
onChange: function onChange(e) {
|
|
13610
|
-
var _e$target$
|
|
13611
|
-
return changeHandle((_e$target$
|
|
13622
|
+
var _e$target$value5;
|
|
13623
|
+
return changeHandle((_e$target$value5 = e.target.value) === null || _e$target$value5 === void 0 ? void 0 : _e$target$value5.trim(), 'interceptLogisticsApiStatusReason');
|
|
13612
13624
|
}
|
|
13613
13625
|
})));
|
|
13614
13626
|
};
|
|
@@ -14110,9 +14122,9 @@ var jstGoods = function jstGoods(props) {
|
|
|
14110
14122
|
changeIndex = _useState2[0],
|
|
14111
14123
|
setChangeIndex = _useState2[1]; //选中的包裹
|
|
14112
14124
|
var sendOptions = SendDataCenter.getInstance(platformType).getSendData();
|
|
14113
|
-
var isSelectName = ['wdt', 'bsE3', 'km', 'gy', 'jst', 'jy', 'jky'].includes(platformType);
|
|
14125
|
+
var isSelectName = ['wdt', 'bsE3', 'km', 'gy', 'jst', 'jy', 'jky', 'wln'].includes(platformType);
|
|
14114
14126
|
var expressDateInstance = ExpressData.getInstance(platformType);
|
|
14115
|
-
var isSendGoodSavedId = isSelectName && !['jst'].includes(platformType);
|
|
14127
|
+
var isSendGoodSavedId = isSelectName && !['jst', 'wln'].includes(platformType);
|
|
14116
14128
|
useEffect(function () {
|
|
14117
14129
|
//没有值塞个默认值
|
|
14118
14130
|
if (!(value === null || value === void 0 ? void 0 : value.length) && type !== 1) {
|
|
@@ -16153,30 +16165,33 @@ var GoodList = function GoodList(props, ref) {
|
|
|
16153
16165
|
selectedRowKeys: selectIds,
|
|
16154
16166
|
fixed: true,
|
|
16155
16167
|
onSelect: function onSelect(record, selected) {
|
|
16168
|
+
var uniqueKey = "".concat(record.goodNo, "-").concat(record.specNo);
|
|
16156
16169
|
if (selected) {
|
|
16157
|
-
setSelectIds([].concat(_toConsumableArray(selectIds), [
|
|
16170
|
+
setSelectIds([].concat(_toConsumableArray(selectIds), [uniqueKey]));
|
|
16158
16171
|
setSelect([].concat(_toConsumableArray(selectList), [record]));
|
|
16159
16172
|
} else {
|
|
16160
16173
|
setSelectIds(selectIds.filter(function (t) {
|
|
16161
|
-
return t !==
|
|
16174
|
+
return t !== uniqueKey;
|
|
16162
16175
|
}));
|
|
16163
16176
|
setSelect(selectList.filter(function (t) {
|
|
16164
|
-
return t.specNo !==
|
|
16177
|
+
return "".concat(t.goodNo, "-").concat(t.specNo) !== uniqueKey;
|
|
16165
16178
|
}));
|
|
16166
16179
|
}
|
|
16167
16180
|
},
|
|
16168
16181
|
onSelectAll: function onSelectAll(selected, selectedRows, changeRows) {
|
|
16169
16182
|
if (selected) {
|
|
16170
|
-
|
|
16171
|
-
return t.specNo;
|
|
16172
|
-
})
|
|
16183
|
+
var changeKeys = changeRows.map(function (t) {
|
|
16184
|
+
return "".concat(t.goodNo, "-").concat(t.specNo);
|
|
16185
|
+
});
|
|
16186
|
+
setSelectIds([].concat(_toConsumableArray(selectIds), _toConsumableArray(changeKeys)));
|
|
16173
16187
|
setSelect([].concat(_toConsumableArray(selectList), _toConsumableArray(changeRows)));
|
|
16174
16188
|
} else {
|
|
16175
|
-
|
|
16176
|
-
return t.specNo;
|
|
16177
|
-
})
|
|
16189
|
+
var _changeKeys = changeRows.map(function (t) {
|
|
16190
|
+
return "".concat(t.goodNo, "-").concat(t.specNo);
|
|
16191
|
+
});
|
|
16192
|
+
setSelectIds(difference(selectIds, _changeKeys));
|
|
16178
16193
|
var list = differenceWith(selectList, changeRows, function (arrVal, othVal) {
|
|
16179
|
-
return arrVal.specNo !== othVal.specNo;
|
|
16194
|
+
return "".concat(arrVal.goodNo, "-").concat(arrVal.specNo) !== "".concat(othVal.goodNo, "-").concat(othVal.specNo);
|
|
16180
16195
|
});
|
|
16181
16196
|
setSelect(list);
|
|
16182
16197
|
}
|
|
@@ -16184,11 +16199,12 @@ var GoodList = function GoodList(props, ref) {
|
|
|
16184
16199
|
};
|
|
16185
16200
|
var showTable = function showTable() {
|
|
16186
16201
|
var handleDelete = function handleDelete(record) {
|
|
16202
|
+
var uniqueKey = "".concat(record.goodNo, "-").concat(record.specNo);
|
|
16187
16203
|
setSelectIds(selectIds.filter(function (t) {
|
|
16188
|
-
return t !==
|
|
16204
|
+
return t !== uniqueKey;
|
|
16189
16205
|
}));
|
|
16190
16206
|
setSelect(selectList.filter(function (t) {
|
|
16191
|
-
return t.specNo !==
|
|
16207
|
+
return "".concat(t.goodNo, "-").concat(t.specNo) !== uniqueKey;
|
|
16192
16208
|
}));
|
|
16193
16209
|
};
|
|
16194
16210
|
var showColumns = [{
|
|
@@ -16212,7 +16228,9 @@ var GoodList = function GoodList(props, ref) {
|
|
|
16212
16228
|
}
|
|
16213
16229
|
}, /*#__PURE__*/React.createElement(Table, {
|
|
16214
16230
|
columns: showColumns,
|
|
16215
|
-
rowKey:
|
|
16231
|
+
rowKey: function rowKey(record) {
|
|
16232
|
+
return "".concat(record.goodNo, "-").concat(record.specNo);
|
|
16233
|
+
},
|
|
16216
16234
|
dataSource: selectList,
|
|
16217
16235
|
scroll: {
|
|
16218
16236
|
x: '100%',
|
|
@@ -16242,7 +16260,9 @@ var GoodList = function GoodList(props, ref) {
|
|
|
16242
16260
|
}, /*#__PURE__*/React.createElement(Table, _objectSpread2(_objectSpread2({
|
|
16243
16261
|
className: "GoodModalColumns",
|
|
16244
16262
|
rowSelection: rowSelection,
|
|
16245
|
-
rowKey:
|
|
16263
|
+
rowKey: function rowKey(record) {
|
|
16264
|
+
return "".concat(record.goodNo, "-").concat(record.specNo);
|
|
16265
|
+
},
|
|
16246
16266
|
columns: columns,
|
|
16247
16267
|
scroll: {
|
|
16248
16268
|
x: '100%',
|
|
@@ -18734,7 +18754,7 @@ var getTableData$5 = function getTableData(_ref, formData) {
|
|
|
18734
18754
|
data: {
|
|
18735
18755
|
pageSize: pageSize,
|
|
18736
18756
|
pageNo: current,
|
|
18737
|
-
platform: '
|
|
18757
|
+
platform: 'WLN_ERP',
|
|
18738
18758
|
conditionList: conditionList
|
|
18739
18759
|
}
|
|
18740
18760
|
}).then(function (res) {
|
|
@@ -18762,10 +18782,10 @@ var searchFormData$4 = [{
|
|
|
18762
18782
|
dataIndex: 'specNo',
|
|
18763
18783
|
type: 'optionalInput'
|
|
18764
18784
|
}, {
|
|
18765
|
-
label: '
|
|
18785
|
+
label: '货品名称',
|
|
18766
18786
|
name: 'goodName'
|
|
18767
18787
|
}, {
|
|
18768
|
-
label: '
|
|
18788
|
+
label: '货品编码',
|
|
18769
18789
|
name: 'goodNo',
|
|
18770
18790
|
type: 'optionalInput'
|
|
18771
18791
|
}];
|
|
@@ -18778,7 +18798,7 @@ var GoodList$5 = function GoodList(props, ref) {
|
|
|
18778
18798
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
18779
18799
|
selectIds = _useState4[0],
|
|
18780
18800
|
setSelectIds = _useState4[1];
|
|
18781
|
-
var _useGetColumns = useGetColumns('
|
|
18801
|
+
var _useGetColumns = useGetColumns('wln'),
|
|
18782
18802
|
_useGetColumns2 = _slicedToArray(_useGetColumns, 3),
|
|
18783
18803
|
columns = _useGetColumns2[0],
|
|
18784
18804
|
showColumnsDataIndexList = _useGetColumns2[1],
|
|
@@ -18837,8 +18857,8 @@ var GoodList$5 = function GoodList(props, ref) {
|
|
|
18837
18857
|
getCheckboxProps: function getCheckboxProps(record) {
|
|
18838
18858
|
var options = {
|
|
18839
18859
|
disabled: (props.selectedRows || []).map(function (row) {
|
|
18840
|
-
return row.
|
|
18841
|
-
}).includes(record.
|
|
18860
|
+
return row.specId || record.id;
|
|
18861
|
+
}).includes(record.specId || record.id),
|
|
18842
18862
|
name: record.id
|
|
18843
18863
|
};
|
|
18844
18864
|
return options;
|
|
@@ -18922,9 +18942,9 @@ var GoodList$5 = function GoodList(props, ref) {
|
|
|
18922
18942
|
type: "text"
|
|
18923
18943
|
}, "\u5DF2\u9009".concat(selectList.length > 99 ? '99+' : selectList.length, "\u4E2A\u5546\u54C1"), /*#__PURE__*/React.createElement(CaretUpOutlined, null))));
|
|
18924
18944
|
};
|
|
18925
|
-
var
|
|
18945
|
+
var WlnGoodsList = /*#__PURE__*/forwardRef(GoodList$5);
|
|
18926
18946
|
|
|
18927
|
-
var
|
|
18947
|
+
var WlnGoodsModal = function WlnGoodsModal(props, ref) {
|
|
18928
18948
|
useImperativeHandle(ref, function () {
|
|
18929
18949
|
return {
|
|
18930
18950
|
open: function open(shopCode) {
|
|
@@ -18944,13 +18964,13 @@ var JyGoodsModal = function JyGoodsModal(props, ref) {
|
|
|
18944
18964
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
18945
18965
|
selectedRows = _useState4[0],
|
|
18946
18966
|
setSelectedRows = _useState4[1];
|
|
18947
|
-
var
|
|
18967
|
+
var jkyGoodsListRef = useRef(null);
|
|
18948
18968
|
var _onCancel = function onCancel() {
|
|
18949
18969
|
setVisible(false);
|
|
18950
18970
|
};
|
|
18951
18971
|
var onOk = function onOk() {
|
|
18952
|
-
var
|
|
18953
|
-
var selectedList = ((
|
|
18972
|
+
var _jkyGoodsListRef$curr;
|
|
18973
|
+
var selectedList = ((_jkyGoodsListRef$curr = jkyGoodsListRef.current) === null || _jkyGoodsListRef$curr === void 0 ? void 0 : _jkyGoodsListRef$curr.getSelectGoodList()) || [];
|
|
18954
18974
|
onSubmit(selectedList);
|
|
18955
18975
|
_onCancel();
|
|
18956
18976
|
};
|
|
@@ -18965,12 +18985,12 @@ var JyGoodsModal = function JyGoodsModal(props, ref) {
|
|
|
18965
18985
|
},
|
|
18966
18986
|
onOk: onOk,
|
|
18967
18987
|
wrapClassName: "goodModal"
|
|
18968
|
-
}, /*#__PURE__*/React.createElement(
|
|
18969
|
-
ref:
|
|
18988
|
+
}, /*#__PURE__*/React.createElement(WlnGoodsList, {
|
|
18989
|
+
ref: jkyGoodsListRef,
|
|
18970
18990
|
selectedRows: selectedRows
|
|
18971
18991
|
})));
|
|
18972
18992
|
};
|
|
18973
|
-
var
|
|
18993
|
+
var WlnGoodsModal$1 = /*#__PURE__*/forwardRef(WlnGoodsModal);
|
|
18974
18994
|
|
|
18975
18995
|
var getTableData$6 = function getTableData(_ref, formData) {
|
|
18976
18996
|
var current = _ref.current,
|
|
@@ -18981,7 +19001,7 @@ var getTableData$6 = function getTableData(_ref, formData) {
|
|
|
18981
19001
|
data: {
|
|
18982
19002
|
pageSize: pageSize,
|
|
18983
19003
|
pageNo: current,
|
|
18984
|
-
platform: '
|
|
19004
|
+
platform: 'JY_ERP',
|
|
18985
19005
|
conditionList: conditionList
|
|
18986
19006
|
}
|
|
18987
19007
|
}).then(function (res) {
|
|
@@ -19009,10 +19029,10 @@ var searchFormData$5 = [{
|
|
|
19009
19029
|
dataIndex: 'specNo',
|
|
19010
19030
|
type: 'optionalInput'
|
|
19011
19031
|
}, {
|
|
19012
|
-
label: '
|
|
19032
|
+
label: '商品名称',
|
|
19013
19033
|
name: 'goodName'
|
|
19014
19034
|
}, {
|
|
19015
|
-
label: '
|
|
19035
|
+
label: '商品编码',
|
|
19016
19036
|
name: 'goodNo',
|
|
19017
19037
|
type: 'optionalInput'
|
|
19018
19038
|
}];
|
|
@@ -19025,7 +19045,7 @@ var GoodList$6 = function GoodList(props, ref) {
|
|
|
19025
19045
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
19026
19046
|
selectIds = _useState4[0],
|
|
19027
19047
|
setSelectIds = _useState4[1];
|
|
19028
|
-
var _useGetColumns = useGetColumns('
|
|
19048
|
+
var _useGetColumns = useGetColumns('jy'),
|
|
19029
19049
|
_useGetColumns2 = _slicedToArray(_useGetColumns, 3),
|
|
19030
19050
|
columns = _useGetColumns2[0],
|
|
19031
19051
|
showColumnsDataIndexList = _useGetColumns2[1],
|
|
@@ -19084,8 +19104,8 @@ var GoodList$6 = function GoodList(props, ref) {
|
|
|
19084
19104
|
getCheckboxProps: function getCheckboxProps(record) {
|
|
19085
19105
|
var options = {
|
|
19086
19106
|
disabled: (props.selectedRows || []).map(function (row) {
|
|
19087
|
-
return row.
|
|
19088
|
-
}).includes(record.
|
|
19107
|
+
return row.id || row.specId;
|
|
19108
|
+
}).includes(record.id || record.specId),
|
|
19089
19109
|
name: record.id
|
|
19090
19110
|
};
|
|
19091
19111
|
return options;
|
|
@@ -19169,9 +19189,9 @@ var GoodList$6 = function GoodList(props, ref) {
|
|
|
19169
19189
|
type: "text"
|
|
19170
19190
|
}, "\u5DF2\u9009".concat(selectList.length > 99 ? '99+' : selectList.length, "\u4E2A\u5546\u54C1"), /*#__PURE__*/React.createElement(CaretUpOutlined, null))));
|
|
19171
19191
|
};
|
|
19172
|
-
var
|
|
19192
|
+
var JyGoodsList = /*#__PURE__*/forwardRef(GoodList$6);
|
|
19173
19193
|
|
|
19174
|
-
var
|
|
19194
|
+
var JyGoodsModal = function JyGoodsModal(props, ref) {
|
|
19175
19195
|
useImperativeHandle(ref, function () {
|
|
19176
19196
|
return {
|
|
19177
19197
|
open: function open(shopCode) {
|
|
@@ -19191,13 +19211,13 @@ var JkyGoodsModal = function JkyGoodsModal(props, ref) {
|
|
|
19191
19211
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
19192
19212
|
selectedRows = _useState4[0],
|
|
19193
19213
|
setSelectedRows = _useState4[1];
|
|
19194
|
-
var
|
|
19214
|
+
var jyGoodsListRef = useRef(null);
|
|
19195
19215
|
var _onCancel = function onCancel() {
|
|
19196
19216
|
setVisible(false);
|
|
19197
19217
|
};
|
|
19198
19218
|
var onOk = function onOk() {
|
|
19199
|
-
var
|
|
19200
|
-
var selectedList = ((
|
|
19219
|
+
var _jyGoodsListRef$curre;
|
|
19220
|
+
var selectedList = ((_jyGoodsListRef$curre = jyGoodsListRef.current) === null || _jyGoodsListRef$curre === void 0 ? void 0 : _jyGoodsListRef$curre.getSelectGoodList()) || [];
|
|
19201
19221
|
onSubmit(selectedList);
|
|
19202
19222
|
_onCancel();
|
|
19203
19223
|
};
|
|
@@ -19212,109 +19232,356 @@ var JkyGoodsModal = function JkyGoodsModal(props, ref) {
|
|
|
19212
19232
|
},
|
|
19213
19233
|
onOk: onOk,
|
|
19214
19234
|
wrapClassName: "goodModal"
|
|
19215
|
-
}, /*#__PURE__*/React.createElement(
|
|
19216
|
-
ref:
|
|
19235
|
+
}, /*#__PURE__*/React.createElement(JyGoodsList, {
|
|
19236
|
+
ref: jyGoodsListRef,
|
|
19217
19237
|
selectedRows: selectedRows
|
|
19218
19238
|
})));
|
|
19219
19239
|
};
|
|
19220
|
-
var
|
|
19240
|
+
var JyGoodsModal$1 = /*#__PURE__*/forwardRef(JyGoodsModal);
|
|
19221
19241
|
|
|
19222
|
-
var
|
|
19223
|
-
var
|
|
19224
|
-
|
|
19225
|
-
|
|
19226
|
-
return {
|
|
19227
|
-
|
|
19228
|
-
|
|
19229
|
-
|
|
19230
|
-
|
|
19231
|
-
|
|
19232
|
-
|
|
19233
|
-
}
|
|
19234
|
-
|
|
19235
|
-
|
|
19236
|
-
|
|
19237
|
-
|
|
19238
|
-
|
|
19239
|
-
|
|
19240
|
-
|
|
19241
|
-
|
|
19242
|
-
|
|
19243
|
-
|
|
19244
|
-
|
|
19245
|
-
|
|
19246
|
-
|
|
19247
|
-
|
|
19248
|
-
|
|
19249
|
-
|
|
19250
|
-
|
|
19251
|
-
|
|
19252
|
-
|
|
19253
|
-
|
|
19254
|
-
|
|
19255
|
-
|
|
19256
|
-
|
|
19242
|
+
var getTableData$7 = function getTableData(_ref, formData) {
|
|
19243
|
+
var current = _ref.current,
|
|
19244
|
+
pageSize = _ref.pageSize;
|
|
19245
|
+
var conditionList = transformFormData(formData);
|
|
19246
|
+
return extendRequest('/qy/gdfw/product/product/page', {
|
|
19247
|
+
method: 'post',
|
|
19248
|
+
data: {
|
|
19249
|
+
pageSize: pageSize,
|
|
19250
|
+
pageNo: current,
|
|
19251
|
+
platform: 'JKY_ERP',
|
|
19252
|
+
conditionList: conditionList
|
|
19253
|
+
}
|
|
19254
|
+
}).then(function (res) {
|
|
19255
|
+
var _res$data = res.data,
|
|
19256
|
+
_res$data$productSkuL = _res$data.productSkuList,
|
|
19257
|
+
productSkuList = _res$data$productSkuL === void 0 ? [] : _res$data$productSkuL,
|
|
19258
|
+
_res$data$total = _res$data.total,
|
|
19259
|
+
total = _res$data$total === void 0 ? 0 : _res$data$total;
|
|
19260
|
+
var newProducts = productSkuList.map(function (item, index) {
|
|
19261
|
+
return _objectSpread2({}, item);
|
|
19262
|
+
});
|
|
19263
|
+
return {
|
|
19264
|
+
total: total,
|
|
19265
|
+
list: newProducts
|
|
19266
|
+
};
|
|
19267
|
+
});
|
|
19268
|
+
};
|
|
19269
|
+
var searchFormData$6 = [{
|
|
19270
|
+
label: '规格名称',
|
|
19271
|
+
name: 'skuName',
|
|
19272
|
+
dataIndex: 'specName'
|
|
19273
|
+
}, {
|
|
19274
|
+
label: '规格编码',
|
|
19275
|
+
name: 'skuCode',
|
|
19276
|
+
dataIndex: 'specNo',
|
|
19277
|
+
type: 'optionalInput'
|
|
19278
|
+
}, {
|
|
19279
|
+
label: '货品名称',
|
|
19280
|
+
name: 'goodName'
|
|
19281
|
+
}, {
|
|
19282
|
+
label: '货品编码',
|
|
19283
|
+
name: 'goodNo',
|
|
19284
|
+
type: 'optionalInput'
|
|
19285
|
+
}];
|
|
19286
|
+
var GoodList$7 = function GoodList(props, ref) {
|
|
19287
|
+
var _useState = useState([]),
|
|
19288
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
19289
|
+
selectList = _useState2[0],
|
|
19290
|
+
setSelect = _useState2[1];
|
|
19291
|
+
var _useState3 = useState([]),
|
|
19292
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
19293
|
+
selectIds = _useState4[0],
|
|
19294
|
+
setSelectIds = _useState4[1];
|
|
19295
|
+
var _useGetColumns = useGetColumns('jky'),
|
|
19296
|
+
_useGetColumns2 = _slicedToArray(_useGetColumns, 3),
|
|
19297
|
+
columns = _useGetColumns2[0],
|
|
19298
|
+
showColumnsDataIndexList = _useGetColumns2[1],
|
|
19299
|
+
loading = _useGetColumns2[2];
|
|
19300
|
+
useImperativeHandle(ref, function () {
|
|
19301
|
+
return {
|
|
19302
|
+
getSelectGoodList: function getSelectGoodList() {
|
|
19303
|
+
return selectList;
|
|
19257
19304
|
}
|
|
19258
|
-
}
|
|
19259
|
-
|
|
19260
|
-
|
|
19261
|
-
|
|
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
|
-
width: 150,
|
|
19287
|
-
render: renderTextEllipsis
|
|
19288
|
-
}, {
|
|
19289
|
-
dataIndex: 'brandName',
|
|
19290
|
-
title: "\u54C1\u724C\u540D\u79F0",
|
|
19291
|
-
width: 150,
|
|
19292
|
-
render: renderTextEllipsis
|
|
19293
|
-
}, {
|
|
19294
|
-
dataIndex: 'goodsNumber',
|
|
19295
|
-
title: "\u5546\u54C1\u6570\u91CF",
|
|
19296
|
-
width: 150
|
|
19297
|
-
}, {
|
|
19298
|
-
dataIndex: 'goodsPrice',
|
|
19299
|
-
title: "\u5546\u54C1\u5355\u4EF7",
|
|
19300
|
-
width: 150
|
|
19301
|
-
}, {
|
|
19302
|
-
dataIndex: 'shopPrice',
|
|
19303
|
-
title: "\u5546\u54C1\u7F51\u5E97\u552E\u4EF7",
|
|
19304
|
-
width: 150
|
|
19305
|
-
}, {
|
|
19306
|
-
dataIndex: 'isGift',
|
|
19307
|
-
title: "\u662F\u5426\u8D60\u54C1",
|
|
19308
|
-
width: 150,
|
|
19309
|
-
render: function render(val) {
|
|
19310
|
-
return /*#__PURE__*/React.createElement("span", null, +val ? '是' : '否');
|
|
19305
|
+
};
|
|
19306
|
+
});
|
|
19307
|
+
var _Form$useForm = Form.useForm(),
|
|
19308
|
+
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
19309
|
+
form = _Form$useForm2[0];
|
|
19310
|
+
var _useAntdTable = useAntdTable(getTableData$7, {
|
|
19311
|
+
defaultPageSize: 10,
|
|
19312
|
+
form: form
|
|
19313
|
+
}),
|
|
19314
|
+
tableProps = _useAntdTable.tableProps,
|
|
19315
|
+
search = _useAntdTable.search,
|
|
19316
|
+
params = _useAntdTable.params;
|
|
19317
|
+
var submit = search.submit,
|
|
19318
|
+
reset = search.reset;
|
|
19319
|
+
var rowSelection = {
|
|
19320
|
+
selectedRowKeys: selectIds,
|
|
19321
|
+
fixed: true,
|
|
19322
|
+
onSelect: function onSelect(record, selected) {
|
|
19323
|
+
if (selected) {
|
|
19324
|
+
setSelectIds([].concat(_toConsumableArray(selectIds), [record.id]));
|
|
19325
|
+
setSelect([].concat(_toConsumableArray(selectList), [record]));
|
|
19326
|
+
} else {
|
|
19327
|
+
setSelectIds(selectIds.filter(function (t) {
|
|
19328
|
+
return t !== record.id;
|
|
19329
|
+
}));
|
|
19330
|
+
setSelect(selectList.filter(function (t) {
|
|
19331
|
+
return t.id !== record.id;
|
|
19332
|
+
}));
|
|
19311
19333
|
}
|
|
19312
|
-
}
|
|
19313
|
-
|
|
19314
|
-
|
|
19315
|
-
|
|
19316
|
-
|
|
19317
|
-
|
|
19334
|
+
},
|
|
19335
|
+
onSelectAll: function onSelectAll(selected, selectedRows, changeRows) {
|
|
19336
|
+
if (selected) {
|
|
19337
|
+
setSelectIds([].concat(_toConsumableArray(selectIds), _toConsumableArray(changeRows.map(function (t) {
|
|
19338
|
+
return t.id;
|
|
19339
|
+
}))));
|
|
19340
|
+
setSelect([].concat(_toConsumableArray(selectList), _toConsumableArray(changeRows)));
|
|
19341
|
+
} else {
|
|
19342
|
+
setSelectIds(difference(selectIds, changeRows.map(function (t) {
|
|
19343
|
+
return t.id;
|
|
19344
|
+
})));
|
|
19345
|
+
var list = differenceWith(selectList, changeRows, function (arrVal, othVal) {
|
|
19346
|
+
return arrVal.id !== othVal.id;
|
|
19347
|
+
});
|
|
19348
|
+
setSelect(list);
|
|
19349
|
+
}
|
|
19350
|
+
},
|
|
19351
|
+
getCheckboxProps: function getCheckboxProps(record) {
|
|
19352
|
+
var options = {
|
|
19353
|
+
disabled: (props.selectedRows || []).map(function (row) {
|
|
19354
|
+
return row.specId || record.id;
|
|
19355
|
+
}).includes(record.specId || record.id),
|
|
19356
|
+
name: record.id
|
|
19357
|
+
};
|
|
19358
|
+
return options;
|
|
19359
|
+
}
|
|
19360
|
+
};
|
|
19361
|
+
var showTable = function showTable() {
|
|
19362
|
+
var handleDelete = function handleDelete(record) {
|
|
19363
|
+
setSelectIds(selectIds.filter(function (t) {
|
|
19364
|
+
return t !== record.id;
|
|
19365
|
+
}));
|
|
19366
|
+
setSelect(selectList.filter(function (t) {
|
|
19367
|
+
return t.id !== record.id;
|
|
19368
|
+
}));
|
|
19369
|
+
};
|
|
19370
|
+
var showColumns = [{
|
|
19371
|
+
dataIndex: '',
|
|
19372
|
+
title: "\u64CD\u4F5C",
|
|
19373
|
+
ellipsis: true,
|
|
19374
|
+
width: 100,
|
|
19375
|
+
render: function render(val, record) {
|
|
19376
|
+
return /*#__PURE__*/React.createElement(Button, {
|
|
19377
|
+
type: "link",
|
|
19378
|
+
onClick: function onClick() {
|
|
19379
|
+
return handleDelete(record);
|
|
19380
|
+
}
|
|
19381
|
+
}, "\u5220\u9664");
|
|
19382
|
+
}
|
|
19383
|
+
}].concat(takeRight(columns, columns.length - 1));
|
|
19384
|
+
return selectList.length ? /*#__PURE__*/React.createElement("div", {
|
|
19385
|
+
style: {
|
|
19386
|
+
width: '100%',
|
|
19387
|
+
maxWidth: '387px'
|
|
19388
|
+
}
|
|
19389
|
+
}, /*#__PURE__*/React.createElement(Table, {
|
|
19390
|
+
columns: showColumns,
|
|
19391
|
+
rowKey: 'id',
|
|
19392
|
+
dataSource: selectList,
|
|
19393
|
+
scroll: {
|
|
19394
|
+
x: '100%',
|
|
19395
|
+
y: 250
|
|
19396
|
+
},
|
|
19397
|
+
pagination: {
|
|
19398
|
+
size: 'small',
|
|
19399
|
+
total: selectIds.length,
|
|
19400
|
+
pageSize: 10,
|
|
19401
|
+
showSizeChanger: false
|
|
19402
|
+
}
|
|
19403
|
+
})) : null;
|
|
19404
|
+
};
|
|
19405
|
+
return /*#__PURE__*/React.createElement(Skeleton, {
|
|
19406
|
+
active: true,
|
|
19407
|
+
loading: loading
|
|
19408
|
+
}, /*#__PURE__*/React.createElement(SearchForm, {
|
|
19409
|
+
searchFormData: searchFormData$6,
|
|
19410
|
+
form: form,
|
|
19411
|
+
showColumnsDataIndexList: showColumnsDataIndexList,
|
|
19412
|
+
submit: submit,
|
|
19413
|
+
reset: reset
|
|
19414
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
19415
|
+
style: {
|
|
19416
|
+
marginTop: '4px'
|
|
19417
|
+
}
|
|
19418
|
+
}, /*#__PURE__*/React.createElement(Table, _objectSpread2({
|
|
19419
|
+
className: "GoodModalColumns",
|
|
19420
|
+
rowSelection: rowSelection,
|
|
19421
|
+
rowKey: "id",
|
|
19422
|
+
columns: columns,
|
|
19423
|
+
scroll: {
|
|
19424
|
+
x: '100%',
|
|
19425
|
+
y: 250
|
|
19426
|
+
},
|
|
19427
|
+
size: "small"
|
|
19428
|
+
}, tableProps))), /*#__PURE__*/React.createElement(Popover, {
|
|
19429
|
+
getPopupContainer: function getPopupContainer(triggerNode) {
|
|
19430
|
+
return triggerNode.parentElement;
|
|
19431
|
+
},
|
|
19432
|
+
content: showTable(),
|
|
19433
|
+
title: "\u5DF2\u9009\u62E9".concat(selectList.length, "\u4E2A\u5546\u54C1")
|
|
19434
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
19435
|
+
danger: true,
|
|
19436
|
+
type: "text"
|
|
19437
|
+
}, "\u5DF2\u9009".concat(selectList.length > 99 ? '99+' : selectList.length, "\u4E2A\u5546\u54C1"), /*#__PURE__*/React.createElement(CaretUpOutlined, null))));
|
|
19438
|
+
};
|
|
19439
|
+
var JkyGoodsList = /*#__PURE__*/forwardRef(GoodList$7);
|
|
19440
|
+
|
|
19441
|
+
var JkyGoodsModal = function JkyGoodsModal(props, ref) {
|
|
19442
|
+
useImperativeHandle(ref, function () {
|
|
19443
|
+
return {
|
|
19444
|
+
open: function open(shopCode) {
|
|
19445
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
19446
|
+
setVisible(true);
|
|
19447
|
+
setSelectedRows(options.value || []);
|
|
19448
|
+
}
|
|
19449
|
+
};
|
|
19450
|
+
});
|
|
19451
|
+
var onSubmit = props.onSubmit,
|
|
19452
|
+
width = props.width;
|
|
19453
|
+
var _useState = useState(false),
|
|
19454
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
19455
|
+
visible = _useState2[0],
|
|
19456
|
+
setVisible = _useState2[1];
|
|
19457
|
+
var _useState3 = useState([]),
|
|
19458
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
19459
|
+
selectedRows = _useState4[0],
|
|
19460
|
+
setSelectedRows = _useState4[1];
|
|
19461
|
+
var jkyGoodsListRef = useRef(null);
|
|
19462
|
+
var _onCancel = function onCancel() {
|
|
19463
|
+
setVisible(false);
|
|
19464
|
+
};
|
|
19465
|
+
var onOk = function onOk() {
|
|
19466
|
+
var _jkyGoodsListRef$curr;
|
|
19467
|
+
var selectedList = ((_jkyGoodsListRef$curr = jkyGoodsListRef.current) === null || _jkyGoodsListRef$curr === void 0 ? void 0 : _jkyGoodsListRef$curr.getSelectGoodList()) || [];
|
|
19468
|
+
onSubmit(selectedList);
|
|
19469
|
+
_onCancel();
|
|
19470
|
+
};
|
|
19471
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, visible && /*#__PURE__*/React.createElement(Modal, {
|
|
19472
|
+
title: '选择商品',
|
|
19473
|
+
okText: '确认',
|
|
19474
|
+
cancelText: '取消',
|
|
19475
|
+
visible: visible,
|
|
19476
|
+
width: width || 850,
|
|
19477
|
+
onCancel: function onCancel() {
|
|
19478
|
+
_onCancel();
|
|
19479
|
+
},
|
|
19480
|
+
onOk: onOk,
|
|
19481
|
+
wrapClassName: "goodModal"
|
|
19482
|
+
}, /*#__PURE__*/React.createElement(JkyGoodsList, {
|
|
19483
|
+
ref: jkyGoodsListRef,
|
|
19484
|
+
selectedRows: selectedRows
|
|
19485
|
+
})));
|
|
19486
|
+
};
|
|
19487
|
+
var JkyGoodsModal$1 = /*#__PURE__*/forwardRef(JkyGoodsModal);
|
|
19488
|
+
|
|
19489
|
+
var getColumns = function getColumns(_ref) {
|
|
19490
|
+
var _ref$text = _ref.text,
|
|
19491
|
+
disabled = _ref.disabled,
|
|
19492
|
+
updateHandle = _ref.updateHandle;
|
|
19493
|
+
return {
|
|
19494
|
+
//百胜E3补发商品
|
|
19495
|
+
BS_E3_REISSUE_GOODS: [{
|
|
19496
|
+
dataIndex: 'sku',
|
|
19497
|
+
title: "SKU",
|
|
19498
|
+
width: 150,
|
|
19499
|
+
render: renderTextEllipsis
|
|
19500
|
+
}, {
|
|
19501
|
+
dataIndex: 'skuId',
|
|
19502
|
+
title: "SKU ID",
|
|
19503
|
+
width: 150,
|
|
19504
|
+
render: renderTextEllipsis
|
|
19505
|
+
}, {
|
|
19506
|
+
dataIndex: 'goodsName',
|
|
19507
|
+
title: "\u5546\u54C1\u540D\u79F0",
|
|
19508
|
+
width: 150,
|
|
19509
|
+
render: renderTextEllipsis
|
|
19510
|
+
}, {
|
|
19511
|
+
dataIndex: 'goodsShortName',
|
|
19512
|
+
title: "\u5546\u54C1\u7B80\u79F0",
|
|
19513
|
+
width: 150,
|
|
19514
|
+
render: renderTextEllipsis
|
|
19515
|
+
}, {
|
|
19516
|
+
dataIndex: 'picPath',
|
|
19517
|
+
title: "\u5546\u54C1\u56FE\u7247",
|
|
19518
|
+
width: 150,
|
|
19519
|
+
render: function render(val) {
|
|
19520
|
+
return /*#__PURE__*/React.createElement(Image, {
|
|
19521
|
+
width: 30,
|
|
19522
|
+
src: val
|
|
19523
|
+
});
|
|
19524
|
+
}
|
|
19525
|
+
}, {
|
|
19526
|
+
dataIndex: 'goodsSn',
|
|
19527
|
+
title: "\u8D27\u53F7",
|
|
19528
|
+
width: 150,
|
|
19529
|
+
render: renderTextEllipsis
|
|
19530
|
+
}, {
|
|
19531
|
+
dataIndex: 'goodsId',
|
|
19532
|
+
title: "\u8D27\u53F7ID",
|
|
19533
|
+
width: 150,
|
|
19534
|
+
render: renderTextEllipsis
|
|
19535
|
+
}, {
|
|
19536
|
+
dataIndex: 'colorName',
|
|
19537
|
+
title: "\u989C\u8272\u540D\u79F0",
|
|
19538
|
+
width: 150,
|
|
19539
|
+
render: renderTextEllipsis
|
|
19540
|
+
}, {
|
|
19541
|
+
dataIndex: 'colorCode',
|
|
19542
|
+
title: "\u989C\u8272\u4EE3\u7801",
|
|
19543
|
+
width: 150,
|
|
19544
|
+
render: renderTextEllipsis
|
|
19545
|
+
}, {
|
|
19546
|
+
dataIndex: 'sizeName',
|
|
19547
|
+
title: "\u5C3A\u7801\u540D\u79F0",
|
|
19548
|
+
width: 150,
|
|
19549
|
+
render: renderTextEllipsis
|
|
19550
|
+
}, {
|
|
19551
|
+
dataIndex: 'sizeCode',
|
|
19552
|
+
title: "\u5C3A\u7801\u4EE3\u7801",
|
|
19553
|
+
width: 150,
|
|
19554
|
+
render: renderTextEllipsis
|
|
19555
|
+
}, {
|
|
19556
|
+
dataIndex: 'brandName',
|
|
19557
|
+
title: "\u54C1\u724C\u540D\u79F0",
|
|
19558
|
+
width: 150,
|
|
19559
|
+
render: renderTextEllipsis
|
|
19560
|
+
}, {
|
|
19561
|
+
dataIndex: 'goodsNumber',
|
|
19562
|
+
title: "\u5546\u54C1\u6570\u91CF",
|
|
19563
|
+
width: 150
|
|
19564
|
+
}, {
|
|
19565
|
+
dataIndex: 'goodsPrice',
|
|
19566
|
+
title: "\u5546\u54C1\u5355\u4EF7",
|
|
19567
|
+
width: 150
|
|
19568
|
+
}, {
|
|
19569
|
+
dataIndex: 'shopPrice',
|
|
19570
|
+
title: "\u5546\u54C1\u7F51\u5E97\u552E\u4EF7",
|
|
19571
|
+
width: 150
|
|
19572
|
+
}, {
|
|
19573
|
+
dataIndex: 'isGift',
|
|
19574
|
+
title: "\u662F\u5426\u8D60\u54C1",
|
|
19575
|
+
width: 150,
|
|
19576
|
+
render: function render(val) {
|
|
19577
|
+
return /*#__PURE__*/React.createElement("span", null, +val ? '是' : '否');
|
|
19578
|
+
}
|
|
19579
|
+
}],
|
|
19580
|
+
//百胜E3商品信息
|
|
19581
|
+
BS_E3_GOODS: [{
|
|
19582
|
+
dataIndex: 'sku',
|
|
19583
|
+
title: "SKU",
|
|
19584
|
+
align: 'center',
|
|
19318
19585
|
ellipsis: true,
|
|
19319
19586
|
width: 150,
|
|
19320
19587
|
render: renderTextEllipsis
|
|
@@ -20431,115 +20698,343 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
20431
20698
|
width: 250,
|
|
20432
20699
|
align: 'center',
|
|
20433
20700
|
ellipsis: true,
|
|
20434
|
-
render: function render(text) {
|
|
20435
|
-
return /*#__PURE__*/React.createElement(CopyTextIcon, {
|
|
20436
|
-
val: text
|
|
20437
|
-
});
|
|
20438
|
-
}
|
|
20701
|
+
render: function render(text) {
|
|
20702
|
+
return /*#__PURE__*/React.createElement(CopyTextIcon, {
|
|
20703
|
+
val: text
|
|
20704
|
+
});
|
|
20705
|
+
}
|
|
20706
|
+
}, {
|
|
20707
|
+
dataIndex: 'suiteName',
|
|
20708
|
+
title: "\u7EC4\u5408\u88C5\u540D\u79F0",
|
|
20709
|
+
width: 250,
|
|
20710
|
+
align: 'center',
|
|
20711
|
+
ellipsis: true,
|
|
20712
|
+
render: function render(text) {
|
|
20713
|
+
return /*#__PURE__*/React.createElement(CopyTextIcon, {
|
|
20714
|
+
val: text
|
|
20715
|
+
});
|
|
20716
|
+
}
|
|
20717
|
+
}, {
|
|
20718
|
+
dataIndex: 'suiteNo',
|
|
20719
|
+
title: "\u7EC4\u5408\u88C5\u7F16\u53F7",
|
|
20720
|
+
width: 150,
|
|
20721
|
+
align: 'center',
|
|
20722
|
+
ellipsis: true,
|
|
20723
|
+
render: renderTextEllipsis
|
|
20724
|
+
}, {
|
|
20725
|
+
dataIndex: 'stockinNum',
|
|
20726
|
+
title: "\u5165\u5E93\u6570\u91CF",
|
|
20727
|
+
width: 150,
|
|
20728
|
+
align: 'center',
|
|
20729
|
+
ellipsis: true,
|
|
20730
|
+
render: renderTextEllipsis
|
|
20731
|
+
}, {
|
|
20732
|
+
dataIndex: 'refundNum',
|
|
20733
|
+
title: "\u9000\u6B3E\u6570\u91CF",
|
|
20734
|
+
width: 150,
|
|
20735
|
+
align: 'center',
|
|
20736
|
+
ellipsis: true,
|
|
20737
|
+
render: renderTextEllipsis
|
|
20738
|
+
}, {
|
|
20739
|
+
dataIndex: 'totalAmount',
|
|
20740
|
+
title: "\u9000\u8D27\u603B\u989D",
|
|
20741
|
+
width: 150,
|
|
20742
|
+
align: 'center',
|
|
20743
|
+
ellipsis: true,
|
|
20744
|
+
render: renderTextEllipsis
|
|
20745
|
+
}, {
|
|
20746
|
+
dataIndex: 'refundAmount',
|
|
20747
|
+
title: "\u5DF2\u9000\u6B3E\u91D1\u989D",
|
|
20748
|
+
width: 150,
|
|
20749
|
+
align: 'center',
|
|
20750
|
+
ellipsis: true,
|
|
20751
|
+
render: renderTextEllipsis
|
|
20752
|
+
}, {
|
|
20753
|
+
dataIndex: 'num',
|
|
20754
|
+
title: "\u5B9E\u9645\u53D1\u51FA\u6570\u91CF",
|
|
20755
|
+
width: 150,
|
|
20756
|
+
align: 'center',
|
|
20757
|
+
ellipsis: true,
|
|
20758
|
+
render: renderTextEllipsis
|
|
20759
|
+
}, {
|
|
20760
|
+
dataIndex: 'price',
|
|
20761
|
+
title: "\u4EF7\u683C",
|
|
20762
|
+
width: 150,
|
|
20763
|
+
align: 'center',
|
|
20764
|
+
ellipsis: true,
|
|
20765
|
+
render: renderTextEllipsis
|
|
20766
|
+
}, {
|
|
20767
|
+
dataIndex: 'originalPrice',
|
|
20768
|
+
title: "\u539F\u4EF7",
|
|
20769
|
+
width: 150,
|
|
20770
|
+
align: 'center',
|
|
20771
|
+
ellipsis: true,
|
|
20772
|
+
render: renderTextEllipsis
|
|
20773
|
+
}, {
|
|
20774
|
+
dataIndex: 'giftTypeDesc',
|
|
20775
|
+
title: "\u8D60\u54C1\u7C7B\u578B",
|
|
20776
|
+
width: 150,
|
|
20777
|
+
align: 'center',
|
|
20778
|
+
ellipsis: true,
|
|
20779
|
+
render: renderTextEllipsis
|
|
20780
|
+
}, {
|
|
20781
|
+
dataIndex: 'unitName',
|
|
20782
|
+
title: "\u57FA\u672C\u5355\u4F4D",
|
|
20783
|
+
ellipsis: true,
|
|
20784
|
+
width: 150,
|
|
20785
|
+
align: 'center',
|
|
20786
|
+
render: renderTextEllipsis
|
|
20787
|
+
}, {
|
|
20788
|
+
dataIndex: 'auxUnitName',
|
|
20789
|
+
title: "\u8F85\u52A9\u5355\u4F4D",
|
|
20790
|
+
ellipsis: true,
|
|
20791
|
+
width: 150,
|
|
20792
|
+
align: 'center',
|
|
20793
|
+
render: renderTextEllipsis
|
|
20794
|
+
}]
|
|
20795
|
+
};
|
|
20796
|
+
};
|
|
20797
|
+
|
|
20798
|
+
var getYesOrNo$3 = function getYesOrNo(val) {
|
|
20799
|
+
if (isNull(val)) return null;
|
|
20800
|
+
return val ? '是' : '否';
|
|
20801
|
+
};
|
|
20802
|
+
var getColumns$3 = function getColumns(_ref) {
|
|
20803
|
+
var _ref$text = _ref.text,
|
|
20804
|
+
text = _ref$text === void 0 ? '' : _ref$text,
|
|
20805
|
+
disabled = _ref.disabled,
|
|
20806
|
+
updateHandle = _ref.updateHandle;
|
|
20807
|
+
return {
|
|
20808
|
+
//万里牛商品信息
|
|
20809
|
+
WLN_GOODS: [{
|
|
20810
|
+
dataIndex: 'wlnItemName',
|
|
20811
|
+
title: "\u5546\u54C1\u540D\u79F0",
|
|
20812
|
+
align: 'center',
|
|
20813
|
+
ellipsis: true,
|
|
20814
|
+
width: 250,
|
|
20815
|
+
render: renderTextEllipsis
|
|
20816
|
+
}, {
|
|
20817
|
+
dataIndex: 'goodsCode',
|
|
20818
|
+
title: "\u5546\u54C1\u7F16\u7801",
|
|
20819
|
+
align: 'center',
|
|
20820
|
+
ellipsis: true,
|
|
20821
|
+
width: 250,
|
|
20822
|
+
render: renderTextEllipsis
|
|
20823
|
+
}, {
|
|
20824
|
+
dataIndex: 'wlnSkuName',
|
|
20825
|
+
title: "sku\u540D\u79F0",
|
|
20826
|
+
align: 'center',
|
|
20827
|
+
ellipsis: true,
|
|
20828
|
+
width: 250,
|
|
20829
|
+
render: renderTextEllipsis
|
|
20830
|
+
}, {
|
|
20831
|
+
dataIndex: 'skuCode',
|
|
20832
|
+
title: "sku\u7F16\u7801",
|
|
20833
|
+
align: 'center',
|
|
20834
|
+
ellipsis: true,
|
|
20835
|
+
width: 250,
|
|
20836
|
+
render: renderTextEllipsis
|
|
20837
|
+
}, {
|
|
20838
|
+
dataIndex: 'skuName',
|
|
20839
|
+
title: "\u7EBF\u4E0Asku\u540D\u79F0",
|
|
20840
|
+
align: 'center',
|
|
20841
|
+
ellipsis: true,
|
|
20842
|
+
width: 250,
|
|
20843
|
+
render: renderTextEllipsis
|
|
20844
|
+
}, {
|
|
20845
|
+
dataIndex: 'olnSkuCode',
|
|
20846
|
+
title: "\u7EBF\u4E0Asku\u7F16\u7801",
|
|
20847
|
+
align: 'center',
|
|
20848
|
+
ellipsis: true,
|
|
20849
|
+
width: 150,
|
|
20850
|
+
render: renderTextEllipsis
|
|
20851
|
+
}, {
|
|
20852
|
+
dataIndex: 'sku',
|
|
20853
|
+
title: "\u7EBF\u4E0Asku id",
|
|
20854
|
+
align: 'center',
|
|
20855
|
+
ellipsis: true,
|
|
20856
|
+
width: 150,
|
|
20857
|
+
render: renderTextEllipsis
|
|
20858
|
+
}, {
|
|
20859
|
+
dataIndex: 'name',
|
|
20860
|
+
title: "\u7EBF\u4E0A\u5546\u54C1\u540D\u79F0",
|
|
20861
|
+
align: 'center',
|
|
20862
|
+
ellipsis: true,
|
|
20863
|
+
width: 250,
|
|
20864
|
+
render: renderTextEllipsis
|
|
20865
|
+
}, {
|
|
20866
|
+
dataIndex: 'pic',
|
|
20867
|
+
title: "\u7EBF\u4E0A\u56FE\u7247",
|
|
20868
|
+
align: 'center',
|
|
20869
|
+
ellipsis: true,
|
|
20870
|
+
width: 100,
|
|
20871
|
+
render: function render(val) {
|
|
20872
|
+
return /*#__PURE__*/React.createElement(Image, {
|
|
20873
|
+
width: 30,
|
|
20874
|
+
src: val
|
|
20875
|
+
});
|
|
20876
|
+
}
|
|
20877
|
+
}, {
|
|
20878
|
+
dataIndex: 'olnItemCOde',
|
|
20879
|
+
title: "\u7EBF\u4E0A\u5546\u54C1\u7F16\u7801",
|
|
20880
|
+
align: 'center',
|
|
20881
|
+
ellipsis: true,
|
|
20882
|
+
width: 150,
|
|
20883
|
+
render: renderTextEllipsis
|
|
20884
|
+
}, {
|
|
20885
|
+
dataIndex: 'code',
|
|
20886
|
+
title: "\u7EBF\u4E0A\u5546\u54C1id",
|
|
20887
|
+
align: 'center',
|
|
20888
|
+
ellipsis: true,
|
|
20889
|
+
width: 150,
|
|
20890
|
+
render: renderTextEllipsis
|
|
20891
|
+
}, {
|
|
20892
|
+
dataIndex: 'barCode',
|
|
20893
|
+
title: "\u5546\u54C1\u6761\u7801",
|
|
20894
|
+
align: 'center',
|
|
20895
|
+
ellipsis: true,
|
|
20896
|
+
width: 150,
|
|
20897
|
+
render: renderTextEllipsis
|
|
20898
|
+
}, {
|
|
20899
|
+
dataIndex: 'money',
|
|
20900
|
+
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
20901
|
+
align: 'center',
|
|
20902
|
+
ellipsis: true,
|
|
20903
|
+
width: 100,
|
|
20904
|
+
render: renderTextEllipsis
|
|
20439
20905
|
}, {
|
|
20440
|
-
dataIndex: '
|
|
20441
|
-
title: "\
|
|
20442
|
-
width: 250,
|
|
20906
|
+
dataIndex: 'number',
|
|
20907
|
+
title: "".concat(text, "\u6570\u91CF"),
|
|
20443
20908
|
align: 'center',
|
|
20444
20909
|
ellipsis: true,
|
|
20445
|
-
|
|
20446
|
-
|
|
20447
|
-
|
|
20448
|
-
|
|
20910
|
+
width: 100,
|
|
20911
|
+
render: function render(val, record, index) {
|
|
20912
|
+
return record.canUpdateNumber && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
20913
|
+
style: {
|
|
20914
|
+
width: 70
|
|
20915
|
+
},
|
|
20916
|
+
value: val,
|
|
20917
|
+
min: 1,
|
|
20918
|
+
precision: 0,
|
|
20919
|
+
onChange: function onChange(num) {
|
|
20920
|
+
return updateHandle(num, index, 'number');
|
|
20921
|
+
}
|
|
20922
|
+
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
20449
20923
|
}
|
|
20450
20924
|
}, {
|
|
20451
|
-
dataIndex: '
|
|
20452
|
-
title: "\
|
|
20453
|
-
width: 150,
|
|
20925
|
+
dataIndex: 'share',
|
|
20926
|
+
title: "\u5E94\u6536\u6B3E",
|
|
20454
20927
|
align: 'center',
|
|
20455
20928
|
ellipsis: true,
|
|
20929
|
+
width: 70,
|
|
20456
20930
|
render: renderTextEllipsis
|
|
20457
20931
|
}, {
|
|
20458
|
-
dataIndex: '
|
|
20459
|
-
title: "\
|
|
20460
|
-
width: 150,
|
|
20932
|
+
dataIndex: 'discountedUnitPrice',
|
|
20933
|
+
title: "\u6298\u540E\u5355\u4EF7",
|
|
20461
20934
|
align: 'center',
|
|
20462
20935
|
ellipsis: true,
|
|
20936
|
+
width: 250,
|
|
20463
20937
|
render: renderTextEllipsis
|
|
20464
20938
|
}, {
|
|
20465
|
-
dataIndex: '
|
|
20466
|
-
title: "\
|
|
20467
|
-
width: 150,
|
|
20939
|
+
dataIndex: 'originPrice',
|
|
20940
|
+
title: "\u539F\u4EF7",
|
|
20468
20941
|
align: 'center',
|
|
20469
20942
|
ellipsis: true,
|
|
20943
|
+
width: 250,
|
|
20470
20944
|
render: renderTextEllipsis
|
|
20471
20945
|
}, {
|
|
20472
|
-
dataIndex: '
|
|
20473
|
-
title: "\
|
|
20474
|
-
width: 150,
|
|
20946
|
+
dataIndex: 'price',
|
|
20947
|
+
title: "\u5355\u4EF7",
|
|
20475
20948
|
align: 'center',
|
|
20476
20949
|
ellipsis: true,
|
|
20950
|
+
width: 250,
|
|
20477
20951
|
render: renderTextEllipsis
|
|
20478
20952
|
}, {
|
|
20479
|
-
dataIndex: '
|
|
20480
|
-
title: "\
|
|
20481
|
-
width: 150,
|
|
20953
|
+
dataIndex: 'receivable',
|
|
20954
|
+
title: "\u9500\u552E\u91D1\u989D",
|
|
20482
20955
|
align: 'center',
|
|
20483
20956
|
ellipsis: true,
|
|
20957
|
+
width: 250,
|
|
20484
20958
|
render: renderTextEllipsis
|
|
20485
20959
|
}, {
|
|
20486
|
-
dataIndex: '
|
|
20487
|
-
title: "\
|
|
20488
|
-
width: 150,
|
|
20960
|
+
dataIndex: 'type',
|
|
20961
|
+
title: "\u8D60\u54C1\u7C7B\u578B",
|
|
20489
20962
|
align: 'center',
|
|
20490
20963
|
ellipsis: true,
|
|
20964
|
+
width: 100,
|
|
20491
20965
|
render: renderTextEllipsis
|
|
20492
20966
|
}, {
|
|
20493
|
-
dataIndex: '
|
|
20494
|
-
title: "\
|
|
20495
|
-
width: 150,
|
|
20967
|
+
dataIndex: 'isPackage',
|
|
20968
|
+
title: "\u662F\u5426\u7EC4\u5408\u5546\u54C1",
|
|
20496
20969
|
align: 'center',
|
|
20497
20970
|
ellipsis: true,
|
|
20498
|
-
render:
|
|
20971
|
+
render: function render(val, record, index) {
|
|
20972
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
20973
|
+
value: val,
|
|
20974
|
+
onChange: function onChange(value) {
|
|
20975
|
+
updateHandle(value, index, 'isGift');
|
|
20976
|
+
},
|
|
20977
|
+
options: [{
|
|
20978
|
+
label: '是',
|
|
20979
|
+
value: true
|
|
20980
|
+
}, {
|
|
20981
|
+
label: '否',
|
|
20982
|
+
value: false
|
|
20983
|
+
}]
|
|
20984
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$3(val));
|
|
20985
|
+
},
|
|
20986
|
+
width: 100
|
|
20499
20987
|
}, {
|
|
20500
|
-
dataIndex: '
|
|
20501
|
-
title: "\
|
|
20502
|
-
width: 150,
|
|
20988
|
+
dataIndex: 'hasRefund',
|
|
20989
|
+
title: "\u662F\u5426\u9000\u6B3E",
|
|
20503
20990
|
align: 'center',
|
|
20504
20991
|
ellipsis: true,
|
|
20505
|
-
|
|
20992
|
+
width: 100,
|
|
20993
|
+
render: function render(val, record, index) {
|
|
20994
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
20995
|
+
value: val,
|
|
20996
|
+
onChange: function onChange(value) {
|
|
20997
|
+
updateHandle(value, index, 'isGift');
|
|
20998
|
+
},
|
|
20999
|
+
options: [{
|
|
21000
|
+
label: '是',
|
|
21001
|
+
value: 1
|
|
21002
|
+
}, {
|
|
21003
|
+
label: '否',
|
|
21004
|
+
value: 0
|
|
21005
|
+
}]
|
|
21006
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$3(val));
|
|
21007
|
+
}
|
|
20506
21008
|
}, {
|
|
20507
|
-
dataIndex: '
|
|
20508
|
-
title: "\
|
|
20509
|
-
width: 150,
|
|
21009
|
+
dataIndex: 'unit',
|
|
21010
|
+
title: "\u5355\u4F4D",
|
|
20510
21011
|
align: 'center',
|
|
20511
21012
|
ellipsis: true,
|
|
21013
|
+
width: 100,
|
|
20512
21014
|
render: renderTextEllipsis
|
|
20513
21015
|
}, {
|
|
20514
|
-
dataIndex: '
|
|
20515
|
-
title: "\
|
|
20516
|
-
ellipsis: true,
|
|
20517
|
-
width: 150,
|
|
21016
|
+
dataIndex: 'pkgGoodsName',
|
|
21017
|
+
title: "\u539F\u7EC4\u5408\u5546\u54C1\u540D\u79F0",
|
|
20518
21018
|
align: 'center',
|
|
21019
|
+
ellipsis: true,
|
|
21020
|
+
width: 200,
|
|
20519
21021
|
render: renderTextEllipsis
|
|
20520
21022
|
}, {
|
|
20521
|
-
dataIndex: '
|
|
20522
|
-
title: "\
|
|
21023
|
+
dataIndex: 'pkgGoodsCode',
|
|
21024
|
+
title: "\u539F\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
|
|
21025
|
+
align: 'center',
|
|
20523
21026
|
ellipsis: true,
|
|
20524
|
-
width:
|
|
21027
|
+
width: 200,
|
|
21028
|
+
render: renderTextEllipsis
|
|
21029
|
+
}, {
|
|
21030
|
+
dataIndex: 'pkgGoodsId',
|
|
21031
|
+
title: "\u539F\u7EC4\u5408\u5546\u54C1id",
|
|
20525
21032
|
align: 'center',
|
|
21033
|
+
ellipsis: true,
|
|
21034
|
+
width: 200,
|
|
20526
21035
|
render: renderTextEllipsis
|
|
20527
|
-
}]
|
|
20528
|
-
|
|
20529
|
-
};
|
|
20530
|
-
|
|
20531
|
-
var getYesOrNo$3 = function getYesOrNo(val) {
|
|
20532
|
-
if (isNull(val)) return null;
|
|
20533
|
-
return val ? '是' : '否';
|
|
20534
|
-
};
|
|
20535
|
-
var getColumns$3 = function getColumns(_ref) {
|
|
20536
|
-
var _ref$text = _ref.text,
|
|
20537
|
-
text = _ref$text === void 0 ? '' : _ref$text,
|
|
20538
|
-
disabled = _ref.disabled,
|
|
20539
|
-
updateHandle = _ref.updateHandle;
|
|
20540
|
-
return {
|
|
20541
|
-
//万里牛商品信息
|
|
20542
|
-
WLN_GOODS: [{
|
|
21036
|
+
}],
|
|
21037
|
+
WLN_REISSUE_GOODS: [{
|
|
20543
21038
|
dataIndex: 'wlnItemName',
|
|
20544
21039
|
title: "\u5546\u54C1\u540D\u79F0",
|
|
20545
21040
|
align: 'center',
|
|
@@ -20553,6 +21048,13 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
20553
21048
|
ellipsis: true,
|
|
20554
21049
|
width: 250,
|
|
20555
21050
|
render: renderTextEllipsis
|
|
21051
|
+
}, {
|
|
21052
|
+
dataIndex: 'wlnSkuName',
|
|
21053
|
+
title: "sku\u540D\u79F0",
|
|
21054
|
+
align: 'center',
|
|
21055
|
+
ellipsis: true,
|
|
21056
|
+
width: 250,
|
|
21057
|
+
render: renderTextEllipsis
|
|
20556
21058
|
}, {
|
|
20557
21059
|
dataIndex: 'skuCode',
|
|
20558
21060
|
title: "sku\u7F16\u7801",
|
|
@@ -20654,6 +21156,34 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
20654
21156
|
ellipsis: true,
|
|
20655
21157
|
width: 70,
|
|
20656
21158
|
render: renderTextEllipsis
|
|
21159
|
+
}, {
|
|
21160
|
+
dataIndex: 'discountedUnitPrice',
|
|
21161
|
+
title: "\u6298\u540E\u5355\u4EF7",
|
|
21162
|
+
align: 'center',
|
|
21163
|
+
ellipsis: true,
|
|
21164
|
+
width: 250,
|
|
21165
|
+
render: renderTextEllipsis
|
|
21166
|
+
}, {
|
|
21167
|
+
dataIndex: 'originPrice',
|
|
21168
|
+
title: "\u539F\u4EF7",
|
|
21169
|
+
align: 'center',
|
|
21170
|
+
ellipsis: true,
|
|
21171
|
+
width: 250,
|
|
21172
|
+
render: renderTextEllipsis
|
|
21173
|
+
}, {
|
|
21174
|
+
dataIndex: 'price',
|
|
21175
|
+
title: "\u5355\u4EF7",
|
|
21176
|
+
align: 'center',
|
|
21177
|
+
ellipsis: true,
|
|
21178
|
+
width: 250,
|
|
21179
|
+
render: renderTextEllipsis
|
|
21180
|
+
}, {
|
|
21181
|
+
dataIndex: 'receivable',
|
|
21182
|
+
title: "\u9500\u552E\u91D1\u989D",
|
|
21183
|
+
align: 'center',
|
|
21184
|
+
ellipsis: true,
|
|
21185
|
+
width: 250,
|
|
21186
|
+
render: renderTextEllipsis
|
|
20657
21187
|
}, {
|
|
20658
21188
|
dataIndex: 'type',
|
|
20659
21189
|
title: "\u8D60\u54C1\u7C7B\u578B",
|
|
@@ -20682,6 +21212,55 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
20682
21212
|
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$3(val));
|
|
20683
21213
|
},
|
|
20684
21214
|
width: 100
|
|
21215
|
+
}, {
|
|
21216
|
+
dataIndex: 'hasRefund',
|
|
21217
|
+
title: "\u662F\u5426\u9000\u6B3E",
|
|
21218
|
+
align: 'center',
|
|
21219
|
+
ellipsis: true,
|
|
21220
|
+
width: 100,
|
|
21221
|
+
render: function render(val, record, index) {
|
|
21222
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
21223
|
+
value: val,
|
|
21224
|
+
onChange: function onChange(value) {
|
|
21225
|
+
updateHandle(value, index, 'isGift');
|
|
21226
|
+
},
|
|
21227
|
+
options: [{
|
|
21228
|
+
label: '是',
|
|
21229
|
+
value: 1
|
|
21230
|
+
}, {
|
|
21231
|
+
label: '否',
|
|
21232
|
+
value: 0
|
|
21233
|
+
}]
|
|
21234
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$3(val));
|
|
21235
|
+
}
|
|
21236
|
+
}, {
|
|
21237
|
+
dataIndex: 'unit',
|
|
21238
|
+
title: "\u5355\u4F4D",
|
|
21239
|
+
align: 'center',
|
|
21240
|
+
ellipsis: true,
|
|
21241
|
+
width: 100,
|
|
21242
|
+
render: renderTextEllipsis
|
|
21243
|
+
}, {
|
|
21244
|
+
dataIndex: 'pkgGoodsName',
|
|
21245
|
+
title: "\u539F\u7EC4\u5408\u5546\u54C1\u540D\u79F0",
|
|
21246
|
+
align: 'center',
|
|
21247
|
+
ellipsis: true,
|
|
21248
|
+
width: 200,
|
|
21249
|
+
render: renderTextEllipsis
|
|
21250
|
+
}, {
|
|
21251
|
+
dataIndex: 'pkgGoodsCode',
|
|
21252
|
+
title: "\u539F\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
|
|
21253
|
+
align: 'center',
|
|
21254
|
+
ellipsis: true,
|
|
21255
|
+
width: 200,
|
|
21256
|
+
render: renderTextEllipsis
|
|
21257
|
+
}, {
|
|
21258
|
+
dataIndex: 'pkgGoodsId',
|
|
21259
|
+
title: "\u539F\u7EC4\u5408\u5546\u54C1id",
|
|
21260
|
+
align: 'center',
|
|
21261
|
+
ellipsis: true,
|
|
21262
|
+
width: 200,
|
|
21263
|
+
render: renderTextEllipsis
|
|
20685
21264
|
}]
|
|
20686
21265
|
};
|
|
20687
21266
|
};
|
|
@@ -23800,6 +24379,9 @@ var isErpType = {
|
|
|
23800
24379
|
},
|
|
23801
24380
|
isJky: function isJky(type) {
|
|
23802
24381
|
return ['JKY_GOODS', 'JKY_REISSUE_GOODS'].includes(type);
|
|
24382
|
+
},
|
|
24383
|
+
isWln: function isWln(type) {
|
|
24384
|
+
return ['WLN_GOODS', 'WLN_REISSUE_GOODS'].includes(type);
|
|
23803
24385
|
}
|
|
23804
24386
|
};
|
|
23805
24387
|
var processGoods$1 = function processGoods(_ref) {
|
|
@@ -23859,6 +24441,13 @@ var processGoods$1 = function processGoods(_ref) {
|
|
|
23859
24441
|
canUpdateNumber: canUpdateNumber,
|
|
23860
24442
|
source: source
|
|
23861
24443
|
});
|
|
24444
|
+
} else if (isErpType.isWln(type)) {
|
|
24445
|
+
newList = processWlnGoods$1({
|
|
24446
|
+
list: list,
|
|
24447
|
+
type: type,
|
|
24448
|
+
canUpdateNumber: canUpdateNumber,
|
|
24449
|
+
source: source
|
|
24450
|
+
});
|
|
23862
24451
|
} else {
|
|
23863
24452
|
newList = processDefaultGoods({
|
|
23864
24453
|
list: list,
|
|
@@ -23941,11 +24530,47 @@ var processJkyGoods$1 = function processJkyGoods(_ref3) {
|
|
|
23941
24530
|
});
|
|
23942
24531
|
});
|
|
23943
24532
|
};
|
|
23944
|
-
|
|
23945
|
-
var processWdtGoods$1 = function processWdtGoods(_ref4) {
|
|
24533
|
+
var processWlnGoods$1 = function processWlnGoods(_ref4) {
|
|
23946
24534
|
var list = _ref4.list,
|
|
23947
|
-
type = _ref4.type,
|
|
23948
24535
|
canUpdateNumber = _ref4.canUpdateNumber;
|
|
24536
|
+
return list.map(function (item) {
|
|
24537
|
+
// const {
|
|
24538
|
+
// goodName, // 商品名称
|
|
24539
|
+
// goodNo, // 商品编码
|
|
24540
|
+
// goodId, // 商品ID
|
|
24541
|
+
// specBarcode, // 规格条码
|
|
24542
|
+
// retailPrice, // 零售价
|
|
24543
|
+
// isGift, // 是否赠品
|
|
24544
|
+
// skuType,
|
|
24545
|
+
// specImgUrl, // 规格图片
|
|
24546
|
+
// categoryName, //货品分类
|
|
24547
|
+
// } = item;
|
|
24548
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
24549
|
+
// cateName: categoryName,
|
|
24550
|
+
// goodsName: goodName,
|
|
24551
|
+
// goodsNo: goodNo,
|
|
24552
|
+
// goodsId: goodId,
|
|
24553
|
+
// barcode: specBarcode,
|
|
24554
|
+
// skuImgUrl: specImgUrl,
|
|
24555
|
+
// combinationName: goodName,
|
|
24556
|
+
// combinationCode: goodNo,
|
|
24557
|
+
// isGift: isGift ? 1 : 0,
|
|
24558
|
+
// isFit: skuType === 'combine' ? 1 : 0,
|
|
24559
|
+
uuid: uuid(),
|
|
24560
|
+
canDelete: true,
|
|
24561
|
+
sellCount: 1,
|
|
24562
|
+
// sellPrice: retailPrice,
|
|
24563
|
+
// sellTotal: retailPrice ? (retailPrice * 1).toFixed(2) : '',
|
|
24564
|
+
canEdit: true
|
|
24565
|
+
// canUpdateNumber,
|
|
24566
|
+
});
|
|
24567
|
+
});
|
|
24568
|
+
};
|
|
24569
|
+
// 处理不同类型的商品数据
|
|
24570
|
+
var processWdtGoods$1 = function processWdtGoods(_ref5) {
|
|
24571
|
+
var list = _ref5.list,
|
|
24572
|
+
type = _ref5.type,
|
|
24573
|
+
canUpdateNumber = _ref5.canUpdateNumber;
|
|
23949
24574
|
return list.map(function (item) {
|
|
23950
24575
|
var processedItem = _objectSpread2(_objectSpread2({}, item), {}, {
|
|
23951
24576
|
uuid: uuid(),
|
|
@@ -23963,9 +24588,9 @@ var processWdtGoods$1 = function processWdtGoods(_ref4) {
|
|
|
23963
24588
|
return processedItem;
|
|
23964
24589
|
});
|
|
23965
24590
|
};
|
|
23966
|
-
var processBsE3Goods$1 = function processBsE3Goods(
|
|
23967
|
-
var list =
|
|
23968
|
-
canUpdateNumber =
|
|
24591
|
+
var processBsE3Goods$1 = function processBsE3Goods(_ref6) {
|
|
24592
|
+
var list = _ref6.list,
|
|
24593
|
+
canUpdateNumber = _ref6.canUpdateNumber;
|
|
23969
24594
|
return list.map(function (item) {
|
|
23970
24595
|
var specNo = item.specNo,
|
|
23971
24596
|
specId = item.specId,
|
|
@@ -24000,9 +24625,9 @@ var processBsE3Goods$1 = function processBsE3Goods(_ref5) {
|
|
|
24000
24625
|
});
|
|
24001
24626
|
});
|
|
24002
24627
|
};
|
|
24003
|
-
var processGyGoods$1 = function processGyGoods(
|
|
24004
|
-
var list =
|
|
24005
|
-
source =
|
|
24628
|
+
var processGyGoods$1 = function processGyGoods(_ref7) {
|
|
24629
|
+
var list = _ref7.list,
|
|
24630
|
+
source = _ref7.source;
|
|
24006
24631
|
var isFormWorkOrder = source === 'workOrder';
|
|
24007
24632
|
return list.map(function (item) {
|
|
24008
24633
|
var goodName = item.goodName,
|
|
@@ -24029,8 +24654,8 @@ var processGyGoods$1 = function processGyGoods(_ref6) {
|
|
|
24029
24654
|
});
|
|
24030
24655
|
});
|
|
24031
24656
|
};
|
|
24032
|
-
var processJstGoods$1 = function processJstGoods(
|
|
24033
|
-
var list =
|
|
24657
|
+
var processJstGoods$1 = function processJstGoods(_ref8) {
|
|
24658
|
+
var list = _ref8.list;
|
|
24034
24659
|
return list.map(function (item) {
|
|
24035
24660
|
return {
|
|
24036
24661
|
name: item.goodName,
|
|
@@ -24048,9 +24673,9 @@ var processJstGoods$1 = function processJstGoods(_ref7) {
|
|
|
24048
24673
|
};
|
|
24049
24674
|
});
|
|
24050
24675
|
};
|
|
24051
|
-
var processKmGoods$1 = function processKmGoods(
|
|
24052
|
-
var list =
|
|
24053
|
-
type =
|
|
24676
|
+
var processKmGoods$1 = function processKmGoods(_ref9) {
|
|
24677
|
+
var list = _ref9.list,
|
|
24678
|
+
type = _ref9.type;
|
|
24054
24679
|
var initParamsMap = {
|
|
24055
24680
|
KM_GOODS: {
|
|
24056
24681
|
num: 1
|
|
@@ -24089,9 +24714,9 @@ var processKmGoods$1 = function processKmGoods(_ref8) {
|
|
|
24089
24714
|
}, initParamsMap[type] || {});
|
|
24090
24715
|
});
|
|
24091
24716
|
};
|
|
24092
|
-
var processDefaultGoods = function processDefaultGoods(
|
|
24093
|
-
var list =
|
|
24094
|
-
canUpdateNumber =
|
|
24717
|
+
var processDefaultGoods = function processDefaultGoods(_ref10) {
|
|
24718
|
+
var list = _ref10.list,
|
|
24719
|
+
canUpdateNumber = _ref10.canUpdateNumber;
|
|
24095
24720
|
return list.map(function (item) {
|
|
24096
24721
|
var goodsId = item.goodsId,
|
|
24097
24722
|
name = item.name,
|
|
@@ -24140,6 +24765,7 @@ var GoodsModalMap = {
|
|
|
24140
24765
|
JY_REISSUE_GOODS: JyGoodsModal$1,
|
|
24141
24766
|
JKY_GOODS: JkyGoodsModal$1,
|
|
24142
24767
|
JKY_REISSUE_GOODS: JkyGoodsModal$1,
|
|
24768
|
+
WLN_REISSUE_GOODS: WlnGoodsModal$1,
|
|
24143
24769
|
OTHER_GOODS: GoodsModal$2
|
|
24144
24770
|
};
|
|
24145
24771
|
var systemOrderNoMap = {
|
|
@@ -24154,6 +24780,7 @@ var systemOrderNoMap = {
|
|
|
24154
24780
|
JY_REISSUE_GOODS: 'tradeNo',
|
|
24155
24781
|
JKY_GOODS: 'tradeNo',
|
|
24156
24782
|
JKY_REISSUE_GOODS: 'tradeNo',
|
|
24783
|
+
WLN_REISSUE_GOODS: 'tradeNo',
|
|
24157
24784
|
KM_REISSUE_GOODS: 'sid',
|
|
24158
24785
|
KM_RETURN_GOODS: 'sid',
|
|
24159
24786
|
KM_EXCHANGE_GOODS: 'sid',
|
|
@@ -24411,6 +25038,9 @@ var getButtonText = function getButtonText() {
|
|
|
24411
25038
|
if (['JKY_GOODS', 'JKY_REISSUE_GOODS'].includes(type)) {
|
|
24412
25039
|
return '选择吉客云ERP商品';
|
|
24413
25040
|
}
|
|
25041
|
+
if (['WLN_GOODS', 'WLN_REISSUE_GOODS'].includes(type)) {
|
|
25042
|
+
return '选择万里牛ERP商品';
|
|
25043
|
+
}
|
|
24414
25044
|
return '选择商品';
|
|
24415
25045
|
};
|
|
24416
25046
|
var GoodItem$1 = function GoodItem(props) {
|
|
@@ -24470,8 +25100,8 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
24470
25100
|
var jstReturnGoods = Form === null || Form === void 0 ? void 0 : Form.useWatch('3979edfd6d', form);
|
|
24471
25101
|
var isShowSelectTradeGoods = type !== 'JST_EXCHANGE_GOODS' || (jstReturnGoods === null || jstReturnGoods === void 0 ? void 0 : jstReturnGoods.jstSystemOrderNo);
|
|
24472
25102
|
// 判断是否为是否展示系统单筛选项
|
|
24473
|
-
var isShowSelect = type && ['WDT_GOODS', 'BS_E3_GOODS', 'GY_GOODS', 'JST_GOODS', 'WLN_GOODS', 'KM_GOODS', 'JY_GOODS', 'JY_REISSUE_GOODS', 'JKY_GOODS', 'JKY_REISSUE_GOODS', 'GY_REISSUE_GOODS', 'KM_REISSUE_GOODS', 'KM_RETURN_GOODS', 'BS_E3_REISSUE_GOODS', 'WDT_REISSUE_GOODS', 'JST_REISSUE_GOODS'].includes(type) || false;
|
|
24474
|
-
var isReissueType = type && ['GY_REISSUE_GOODS', 'KM_REISSUE_GOODS', 'BS_E3_REISSUE_GOODS', 'WDT_REISSUE_GOODS', 'JST_REISSUE_GOODS', 'JY_REISSUE_GOODS', 'JKY_REISSUE_GOODS'].includes(type) || false;
|
|
25103
|
+
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;
|
|
25104
|
+
var isReissueType = type && ['GY_REISSUE_GOODS', 'KM_REISSUE_GOODS', 'BS_E3_REISSUE_GOODS', 'WDT_REISSUE_GOODS', 'JST_REISSUE_GOODS', 'JY_REISSUE_GOODS', 'JKY_REISSUE_GOODS', 'WLN_REISSUE_GOODS'].includes(type) || false;
|
|
24475
25105
|
var refModal = useRef();
|
|
24476
25106
|
console.debug('表格数据', value);
|
|
24477
25107
|
var handleDelete = function handleDelete(record, index) {
|
|
@@ -24566,6 +25196,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
24566
25196
|
case 'JY_REISSUE_GOODS':
|
|
24567
25197
|
case 'JKY_GOODS':
|
|
24568
25198
|
case 'JKY_REISSUE_GOODS':
|
|
25199
|
+
case 'WLN_REISSUE_GOODS':
|
|
24569
25200
|
case 'SKX_GOODS':
|
|
24570
25201
|
case 'SKX_RETURN_GOODS':
|
|
24571
25202
|
{
|
|
@@ -27661,6 +28292,32 @@ var componentMap$2 = {
|
|
|
27661
28292
|
},
|
|
27662
28293
|
getOrderList: jkyUtils.getJkyOrderListSingleton
|
|
27663
28294
|
},
|
|
28295
|
+
WLN_GOODS: {
|
|
28296
|
+
type: 'jky',
|
|
28297
|
+
key: 'wlnGoods',
|
|
28298
|
+
name: '吉客云',
|
|
28299
|
+
orderNo: 'tradeNo',
|
|
28300
|
+
goodDetailOrderNo: 'tradeNo',
|
|
28301
|
+
eventNameMap: {
|
|
28302
|
+
// pubsub 事件
|
|
28303
|
+
type: 'wlnType',
|
|
28304
|
+
updateGoodsHandle: updateWlnGoodsHandle,
|
|
28305
|
+
selectListReturn: 'wlnSelectListReturn',
|
|
28306
|
+
selectList: 'wlnSelectList',
|
|
28307
|
+
reissueSelectList: 'wlnReissueSelectList',
|
|
28308
|
+
reissueSelectListReturn: 'wlnReissueSelectListReturn',
|
|
28309
|
+
reissueDeleteGood: 'wlnReissueDeleteGood',
|
|
28310
|
+
changeShopCode: 'wlnChangeShopCode',
|
|
28311
|
+
reissueType: 'wlnReissueType',
|
|
28312
|
+
returnType: 'wlnReturnType',
|
|
28313
|
+
returnSelectListReturn: 'wlnReturnSelectListReturn',
|
|
28314
|
+
returnSelectList: 'wlnReturnSelectList',
|
|
28315
|
+
deleteGood: 'wlnDeleteGood',
|
|
28316
|
+
returnDeleteGood: 'wlnReturnDeleteGood',
|
|
28317
|
+
exchangeDeleteGood: 'wlnExchangeDeleteGood'
|
|
28318
|
+
},
|
|
28319
|
+
getOrderList: wlnUtils.getOrderListSingleton
|
|
28320
|
+
},
|
|
27664
28321
|
WDT_AFTERSALE_GOODS: {
|
|
27665
28322
|
type: 'wdtAftersale',
|
|
27666
28323
|
key: 'wdtAftersaleGoods',
|
|
@@ -28845,6 +29502,22 @@ var typeMap$2 = {
|
|
|
28845
29502
|
goodDetailsKey: 'goodsDetail',
|
|
28846
29503
|
isShowSelectTradeGoods: true,
|
|
28847
29504
|
showModeBtn: true
|
|
29505
|
+
},
|
|
29506
|
+
WLN_REISSUE_GOODS: {
|
|
29507
|
+
compType: '补发',
|
|
29508
|
+
key: 'wlnReissueGoods',
|
|
29509
|
+
typeName: 'wlnReissueType',
|
|
29510
|
+
systemOrder: 'wlnSystemOrder',
|
|
29511
|
+
systemOrderNo: 'wlnSystemOrderNo',
|
|
29512
|
+
getOrderList: wlnUtils.getOrderListSingleton,
|
|
29513
|
+
updateGoodsHandle: updateWlnGoodsHandle,
|
|
29514
|
+
alwaysShowChooseErpGoodsBtn: true,
|
|
29515
|
+
orderTypeKey: 'orderType',
|
|
29516
|
+
oIdKey: 'tradeNo',
|
|
29517
|
+
outerOiIdKey: 'sourceSubtradeNo',
|
|
29518
|
+
goodDetailsKey: 'goodsDetail',
|
|
29519
|
+
isShowSelectTradeGoods: true,
|
|
29520
|
+
showModeBtn: true
|
|
28848
29521
|
}
|
|
28849
29522
|
};
|
|
28850
29523
|
var PublicReissue = function PublicReissue(props) {
|
|
@@ -29077,6 +29750,10 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
29077
29750
|
orderRest = {
|
|
29078
29751
|
canEdit: true
|
|
29079
29752
|
};
|
|
29753
|
+
} else if (['WLN_REISSUE_GOODS'].includes(type)) {
|
|
29754
|
+
orderRest = {
|
|
29755
|
+
canEdit: true
|
|
29756
|
+
};
|
|
29080
29757
|
}
|
|
29081
29758
|
var orders = isAllOrders ? (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s6 = value[(_typeMap$type21 = typeMap$2[type]) === null || _typeMap$type21 === void 0 ? void 0 : _typeMap$type21.systemOrder]) === null || _value$typeMap$type$s6 === void 0 ? void 0 : _value$typeMap$type$s6.orders) || [] : order ? [order] : [];
|
|
29082
29759
|
var hasGoodDetails = orders === null || orders === void 0 ? void 0 : orders.some(function (order) {
|
|
@@ -29595,7 +30272,7 @@ var GoodsModal$5 = function GoodsModal(props) {
|
|
|
29595
30272
|
key: item.value
|
|
29596
30273
|
}, item.label);
|
|
29597
30274
|
})), /*#__PURE__*/React.createElement(Search$1, {
|
|
29598
|
-
placeholder: "\u5B9D\u8D1D\
|
|
30275
|
+
placeholder: "\u5B9D\u8D1D\u6807\u9898",
|
|
29599
30276
|
allowClear: true,
|
|
29600
30277
|
enterButton: "\u641C\u7D22",
|
|
29601
30278
|
style: {
|