@kmkf-fe-packages/basic-components 2.2.13-beta.6 → 2.2.13-beta.61
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 +745 -552
- package/dist/index.js +744 -550
- package/dist/src/bs/SystemOrder/index.d.ts +5 -0
- package/dist/src/bs/component/GoodItem/index.d.ts +1 -0
- package/dist/src/bs/component/model/Columns/Erp/jy.d.ts +7 -1
- package/dist/src/bs/component/model/Columns/Erp/wdt.d.ts +1 -1
- package/dist/src/bs/component/model/GyGoodsList.d.ts +1 -0
- package/dist/src/bs/component/model/JyGoodsModal/GoodsList.d.ts +14 -14
- package/dist/src/bs/component/model/WorkOrderList/index.d.ts +1 -0
- package/dist/src/bs/component/model/WorkOrderList/useDefaultSearchValue.d.ts +10 -0
- package/dist/src/bs/component/model/type.d.ts +3 -0
- package/dist/src/constants/systemOrderColumnsMap.d.ts +68 -0
- package/dist/src/index.d.ts +1 -0
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -3,7 +3,7 @@ import { Cascader, DatePicker, InputNumber, Input, Select, Upload, Image, messag
|
|
|
3
3
|
import { EyeOutlined, DeleteOutlined, CloseOutlined, PlusSquareOutlined, MinusCircleFilled, PlusCircleFilled, CopyOutlined, CloseCircleOutlined, CaretUpOutlined, UpOutlined, DownOutlined, PlusOutlined, VideoCameraTwoTone } from '@ant-design/icons';
|
|
4
4
|
import request, { extend as extend$1 } from 'umi-request';
|
|
5
5
|
import { CopyToClipboard } from 'react-copy-to-clipboard';
|
|
6
|
-
import { AddressData, BsAddressData, WdtAddressData, GyAddressData, request as request$1, ExpressData, isNull, imgResize, uuid, servers, columnsGoodsList, LogisticsAddressData, SendDataCenter, hasAddNullComponent, SUBMIT_TIME_ID, UPGRADE_TIME_ID, FINAL_TIME_ID, CUSTOM_TIME_ID, useStatus, finalFormData, transformList, dataSourceTrans, DATA_SPLIT_COMPONENT_FIELDS_MAP, BS_E3_BOOLEAN_STATUS_MAP, filterWdtOrders, WDT_ORDER_TYPE_MAP, tradeStatusMap, filterBsE3Orders, filterGyOrders, GY_DELIVERY_STATE_MAPPING, filterJstOrders, filterJyOrders, filterKmOrders, getIsPlatformCodesIncludeOrderNos, BS_SYSTEM_ORDER_CONFIG, KM_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, JST_SYSTEM_ORDER_CONFIG, JY_SYSTEM_ORDER_CONFIG, updateOrderSubFormGoodsHandle, updateWlnGoodsHandle, updateWdtGoodsHandle, updateBsE3GoodsHandle, updateGyGoodsHandle, updateJstGoodsHandle, updateKmGoodsHandle, updateJyGoodsHandle, jstMergeIdenticalGoods, msgTypeCh, pushGyLog, skxSystemOrderBackValues, skxReturnSystemOrderBackValues, formatTrade, updateSkxGoodsHandle, formatReturnTrade, updateSkxReturnGoodsHandle } from '@kmkf-fe-packages/kmkf-utils';
|
|
6
|
+
import { AddressData, BsAddressData, WdtAddressData, GyAddressData, request as request$1, ExpressData, isNull, imgResize, uuid, servers, columnsGoodsList, LogisticsAddressData, SendDataCenter, hasAddNullComponent, SUBMIT_TIME_ID, UPGRADE_TIME_ID, FINAL_TIME_ID, CUSTOM_TIME_ID, useStatus, finalFormData, transformList, dataSourceTrans, DATA_SPLIT_COMPONENT_FIELDS_MAP, findLabelBySelectValue, BS_E3_BOOLEAN_STATUS_MAP, filterWdtOrders, WDT_ORDER_TYPE_MAP, tradeStatusMap, filterBsE3Orders, filterGyOrders, GY_DELIVERY_STATE_MAPPING, filterJstOrders, filterJyOrders, JY_ORDER_TYPE_MAP, JY_ORDER_STATUS_MAP, filterKmOrders, getSystemShowHead, getIsPlatformCodesIncludeOrderNos, BS_SYSTEM_ORDER_CONFIG, KM_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, JST_SYSTEM_ORDER_CONFIG, JY_SYSTEM_ORDER_CONFIG, updateOrderSubFormGoodsHandle, updateWlnGoodsHandle, updateWdtGoodsHandle, updateBsE3GoodsHandle, updateGyGoodsHandle, updateJstGoodsHandle, updateKmGoodsHandle, updateJyGoodsHandle, jstMergeIdenticalGoods, msgTypeCh, pushGyLog, skxSystemOrderBackValues, skxReturnSystemOrderBackValues, formatTrade, updateSkxGoodsHandle, formatReturnTrade, updateSkxReturnGoodsHandle } from '@kmkf-fe-packages/kmkf-utils';
|
|
7
7
|
import every from 'lodash/every';
|
|
8
8
|
import maxBy from 'lodash/maxBy';
|
|
9
9
|
import { debounce, isNaN as isNaN$1, isNumber as isNumber$1, uniqBy, cloneDeep, difference, differenceWith, isBoolean, isEqual, takeRight, reject as reject$1, intersection, isEmpty } from 'lodash';
|
|
@@ -9559,7 +9559,7 @@ var renderMap = {
|
|
|
9559
9559
|
return /*#__PURE__*/React.createElement(FileRender, {
|
|
9560
9560
|
id: "fileRender",
|
|
9561
9561
|
fileList: value,
|
|
9562
|
-
canDownload: !['ks', 'fxg'].includes(platform || '')
|
|
9562
|
+
canDownload: !['ks', 'fxg', 'xiaozhi'].includes(platform || '')
|
|
9563
9563
|
});
|
|
9564
9564
|
},
|
|
9565
9565
|
CHECKBOX: function CHECKBOX(value) {
|
|
@@ -9662,7 +9662,7 @@ var EditFileRender = function EditFileRender(_ref7) {
|
|
|
9662
9662
|
})), /*#__PURE__*/React.createElement(FileRender, {
|
|
9663
9663
|
id: "fileEdit",
|
|
9664
9664
|
fileList: val,
|
|
9665
|
-
canDownload: !['ks', 'fxg'].includes(platform)
|
|
9665
|
+
canDownload: !['ks', 'fxg', 'xiaozhi'].includes(platform)
|
|
9666
9666
|
}));
|
|
9667
9667
|
};
|
|
9668
9668
|
var EditRenderMap = {
|
|
@@ -13830,7 +13830,7 @@ var jstGoods = function jstGoods(props) {
|
|
|
13830
13830
|
onChange: function onChange(val) {
|
|
13831
13831
|
changeInputHandle(val, 'logisticsCompany');
|
|
13832
13832
|
},
|
|
13833
|
-
value:
|
|
13833
|
+
value: ['gy', 'jy'].includes(platformType) ? (expressDateInstance === null || expressDateInstance === void 0 ? void 0 : expressDateInstance.getExpressNameByCode((_value$changeIndex2 = value[changeIndex]) === null || _value$changeIndex2 === void 0 ? void 0 : _value$changeIndex2['logisticsCompany'], false)) ? (_value$changeIndex3 = value[changeIndex]) === null || _value$changeIndex3 === void 0 ? void 0 : _value$changeIndex3['logisticsCompany'] : (_value$changeIndex4 = value[changeIndex]) === null || _value$changeIndex4 === void 0 ? void 0 : _value$changeIndex4['logisticsCompanyName'] : (_value$changeIndex5 = value[changeIndex]) === null || _value$changeIndex5 === void 0 ? void 0 : _value$changeIndex5['logisticsCompany'],
|
|
13834
13834
|
showSearch: true,
|
|
13835
13835
|
dropdownMatchSelectWidth: false,
|
|
13836
13836
|
filterOption: function filterOption(input, option) {
|
|
@@ -14650,21 +14650,21 @@ var wdtColumns = [{
|
|
|
14650
14650
|
title: '市场价',
|
|
14651
14651
|
width: 140,
|
|
14652
14652
|
render: function render(price) {
|
|
14653
|
-
return Number(price).toFixed(2);
|
|
14653
|
+
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
14654
14654
|
}
|
|
14655
14655
|
}, {
|
|
14656
14656
|
dataIndex: 'retailPrice',
|
|
14657
14657
|
title: '零售价',
|
|
14658
14658
|
width: 140,
|
|
14659
14659
|
render: function render(price) {
|
|
14660
|
-
return Number(price).toFixed(2);
|
|
14660
|
+
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
14661
14661
|
}
|
|
14662
14662
|
}, {
|
|
14663
14663
|
dataIndex: 'memberPrice',
|
|
14664
14664
|
title: '会员价',
|
|
14665
14665
|
width: 140,
|
|
14666
14666
|
render: function render(price) {
|
|
14667
|
-
return Number(price).toFixed(2);
|
|
14667
|
+
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
14668
14668
|
}
|
|
14669
14669
|
}];
|
|
14670
14670
|
|
|
@@ -14890,17 +14890,17 @@ var getYesOrNo$1 = function getYesOrNo(val) {
|
|
|
14890
14890
|
return val ? '是' : '否';
|
|
14891
14891
|
};
|
|
14892
14892
|
var jyColumns = [{
|
|
14893
|
-
dataIndex: '
|
|
14893
|
+
dataIndex: 'goodName',
|
|
14894
14894
|
title: '商品名称',
|
|
14895
14895
|
width: 250,
|
|
14896
14896
|
ellipsis: true
|
|
14897
14897
|
}, {
|
|
14898
|
-
dataIndex: '
|
|
14898
|
+
dataIndex: 'goodNo',
|
|
14899
14899
|
title: '商品编码',
|
|
14900
14900
|
width: 150,
|
|
14901
14901
|
ellipsis: true
|
|
14902
14902
|
}, {
|
|
14903
|
-
dataIndex: '
|
|
14903
|
+
dataIndex: 'goodId',
|
|
14904
14904
|
title: '商品ID',
|
|
14905
14905
|
width: 150,
|
|
14906
14906
|
ellipsis: true
|
|
@@ -14909,22 +14909,22 @@ var jyColumns = [{
|
|
|
14909
14909
|
title: '商品图片',
|
|
14910
14910
|
width: 100,
|
|
14911
14911
|
render: function render(picUrl) {
|
|
14912
|
-
return /*#__PURE__*/React.createElement("img", {
|
|
14912
|
+
return picUrl ? /*#__PURE__*/React.createElement("img", {
|
|
14913
14913
|
style: {
|
|
14914
14914
|
width: '40px',
|
|
14915
14915
|
height: '40px',
|
|
14916
14916
|
objectFit: 'contain'
|
|
14917
14917
|
},
|
|
14918
14918
|
src: picUrl
|
|
14919
|
-
});
|
|
14919
|
+
}) : null;
|
|
14920
14920
|
}
|
|
14921
14921
|
}, {
|
|
14922
|
-
dataIndex: '
|
|
14922
|
+
dataIndex: 'goodShortName',
|
|
14923
14923
|
title: "\u5546\u54C1\u7B80\u79F0",
|
|
14924
14924
|
ellipsis: true,
|
|
14925
14925
|
width: 150
|
|
14926
14926
|
}, {
|
|
14927
|
-
dataIndex: '
|
|
14927
|
+
dataIndex: 'categoryName',
|
|
14928
14928
|
title: "\u5546\u54C1\u7EC4",
|
|
14929
14929
|
ellipsis: true,
|
|
14930
14930
|
width: 150
|
|
@@ -14934,56 +14934,56 @@ var jyColumns = [{
|
|
|
14934
14934
|
width: 200,
|
|
14935
14935
|
ellipsis: true
|
|
14936
14936
|
}, {
|
|
14937
|
-
dataIndex: '
|
|
14937
|
+
dataIndex: 'specName',
|
|
14938
14938
|
title: '规格名称',
|
|
14939
14939
|
width: 250,
|
|
14940
14940
|
ellipsis: true
|
|
14941
14941
|
}, {
|
|
14942
|
-
dataIndex: '
|
|
14942
|
+
dataIndex: 'specNo',
|
|
14943
14943
|
title: '规格编码',
|
|
14944
14944
|
width: 150,
|
|
14945
14945
|
ellipsis: true
|
|
14946
14946
|
}, {
|
|
14947
|
-
dataIndex: '
|
|
14947
|
+
dataIndex: 'specId',
|
|
14948
14948
|
title: '规格ID',
|
|
14949
14949
|
width: 250,
|
|
14950
14950
|
ellipsis: true
|
|
14951
14951
|
}, {
|
|
14952
|
-
dataIndex: '
|
|
14952
|
+
dataIndex: 'specBarcode',
|
|
14953
14953
|
title: '规格条码',
|
|
14954
14954
|
width: 150,
|
|
14955
14955
|
ellipsis: true
|
|
14956
14956
|
}, {
|
|
14957
|
-
dataIndex: '
|
|
14957
|
+
dataIndex: 'specImgUrl',
|
|
14958
14958
|
title: '规格图片',
|
|
14959
14959
|
width: 100,
|
|
14960
14960
|
render: function render(picUrl) {
|
|
14961
|
-
return /*#__PURE__*/React.createElement("img", {
|
|
14961
|
+
return picUrl ? /*#__PURE__*/React.createElement("img", {
|
|
14962
14962
|
style: {
|
|
14963
14963
|
width: '40px',
|
|
14964
14964
|
height: '40px',
|
|
14965
14965
|
objectFit: 'contain'
|
|
14966
14966
|
},
|
|
14967
14967
|
src: picUrl
|
|
14968
|
-
});
|
|
14968
|
+
}) : null;
|
|
14969
14969
|
}
|
|
14970
14970
|
}, {
|
|
14971
|
-
dataIndex: '
|
|
14971
|
+
dataIndex: 'colorName',
|
|
14972
14972
|
title: "\u989C\u8272",
|
|
14973
14973
|
ellipsis: true,
|
|
14974
14974
|
width: 100
|
|
14975
14975
|
}, {
|
|
14976
|
-
dataIndex: '
|
|
14976
|
+
dataIndex: 'sizeName',
|
|
14977
14977
|
title: "\u5C3A\u7801",
|
|
14978
14978
|
ellipsis: true,
|
|
14979
14979
|
width: 100
|
|
14980
14980
|
}, {
|
|
14981
|
-
dataIndex: '
|
|
14981
|
+
dataIndex: 'marketPrice',
|
|
14982
14982
|
title: "\u5E02\u573A\u4EF7",
|
|
14983
14983
|
ellipsis: true,
|
|
14984
14984
|
width: 100
|
|
14985
14985
|
}, {
|
|
14986
|
-
dataIndex: '
|
|
14986
|
+
dataIndex: 'retailPrice',
|
|
14987
14987
|
title: "\u96F6\u552E\u4EF7",
|
|
14988
14988
|
ellipsis: true,
|
|
14989
14989
|
width: 100
|
|
@@ -14993,7 +14993,7 @@ var jyColumns = [{
|
|
|
14993
14993
|
ellipsis: true,
|
|
14994
14994
|
width: 100
|
|
14995
14995
|
}, {
|
|
14996
|
-
dataIndex: '
|
|
14996
|
+
dataIndex: 'isGift',
|
|
14997
14997
|
title: "\u662F\u5426\u8D60\u54C1",
|
|
14998
14998
|
ellipsis: true,
|
|
14999
14999
|
width: 150,
|
|
@@ -15001,12 +15001,12 @@ var jyColumns = [{
|
|
|
15001
15001
|
return /*#__PURE__*/React.createElement("span", null, getYesOrNo$1(val));
|
|
15002
15002
|
}
|
|
15003
15003
|
}, {
|
|
15004
|
-
dataIndex: '
|
|
15004
|
+
dataIndex: 'skuType',
|
|
15005
15005
|
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
15006
15006
|
ellipsis: true,
|
|
15007
15007
|
width: 150,
|
|
15008
15008
|
render: function render(val) {
|
|
15009
|
-
return /*#__PURE__*/React.createElement("span", null, getYesOrNo$1(val));
|
|
15009
|
+
return /*#__PURE__*/React.createElement("span", null, getYesOrNo$1(val === 'combine'));
|
|
15010
15010
|
}
|
|
15011
15011
|
}];
|
|
15012
15012
|
|
|
@@ -17293,11 +17293,12 @@ var SearchHeader = function SearchHeader(_ref) {
|
|
|
17293
17293
|
timeOptions = _ref.timeOptions,
|
|
17294
17294
|
ShopList = _ref.ShopList,
|
|
17295
17295
|
onSubmit = _ref.onSubmit;
|
|
17296
|
+
console.log('allFields', allFields);
|
|
17296
17297
|
// const fixedFieldsOptions = useMemo(() => {
|
|
17297
17298
|
// return allFields.filter(item => fixedFields?.includes(item.id));
|
|
17298
17299
|
// }, [fixedFields, allFields]);
|
|
17299
17300
|
return /*#__PURE__*/React.createElement("div", {
|
|
17300
|
-
className:
|
|
17301
|
+
className: "search-header-wrap"
|
|
17301
17302
|
}, /*#__PURE__*/React.createElement("div", {
|
|
17302
17303
|
className: "".concat(status ? 'is-open' : 'not-open')
|
|
17303
17304
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -17454,6 +17455,9 @@ var WorkorderList = function WorkorderList(props, ref) {
|
|
|
17454
17455
|
return selectedList.map(function (workOrderData) {
|
|
17455
17456
|
return goodsSourceFormat.workOrderDataToGoods(workOrderData, props.erp);
|
|
17456
17457
|
});
|
|
17458
|
+
},
|
|
17459
|
+
setDefaultSearchValue: function setDefaultSearchValue(value) {
|
|
17460
|
+
value && form.setFieldsValue(_objectSpread2({}, value));
|
|
17457
17461
|
}
|
|
17458
17462
|
};
|
|
17459
17463
|
});
|
|
@@ -17732,21 +17736,116 @@ var WorkorderList = function WorkorderList(props, ref) {
|
|
|
17732
17736
|
};
|
|
17733
17737
|
var WorkorderList$1 = /*#__PURE__*/forwardRef(WorkorderList);
|
|
17734
17738
|
|
|
17735
|
-
|
|
17736
|
-
|
|
17737
|
-
|
|
17738
|
-
|
|
17739
|
-
|
|
17740
|
-
|
|
17741
|
-
|
|
17742
|
-
|
|
17743
|
-
|
|
17739
|
+
var goodClassTransformValue = function goodClassTransformValue(value, config) {
|
|
17740
|
+
var label = '';
|
|
17741
|
+
var options = (config === null || config === void 0 ? void 0 : config.options) || [];
|
|
17742
|
+
var labelList = findLabelBySelectValue(value, options);
|
|
17743
|
+
var labelItem = labelList === null || labelList === void 0 ? void 0 : labelList.pop();
|
|
17744
|
+
label = labelItem === null || labelItem === void 0 ? void 0 : labelItem.label;
|
|
17745
|
+
return {
|
|
17746
|
+
type: 'anylike',
|
|
17747
|
+
keywords: label
|
|
17748
|
+
};
|
|
17749
|
+
};
|
|
17750
|
+
var goodTypeTransformValue = function goodTypeTransformValue(value) {
|
|
17751
|
+
return (value === null || value === void 0 ? void 0 : value.value) ? [value === null || value === void 0 ? void 0 : value.value] : '';
|
|
17752
|
+
};
|
|
17753
|
+
var relationComponentUniqueKeyMap = {
|
|
17754
|
+
//小白熊自定义组件
|
|
17755
|
+
PCE2Z5TXEVPL5D26I7KMBKMB: {
|
|
17756
|
+
//补发类型
|
|
17757
|
+
goodType: {
|
|
17758
|
+
relationComponentKey: '6hldjQ9aMz',
|
|
17759
|
+
reflectKey: 'C7M9rWJMjD_radio',
|
|
17760
|
+
transformValue: function transformValue(value) {
|
|
17761
|
+
return goodTypeTransformValue(value);
|
|
17762
|
+
}
|
|
17763
|
+
},
|
|
17764
|
+
// 产品分类
|
|
17765
|
+
goodClass: {
|
|
17766
|
+
relationComponentKey: '8gozpyUFtA',
|
|
17767
|
+
reflectKey: '2h8KRbxMjD_input',
|
|
17768
|
+
transformValue: function transformValue(value, config) {
|
|
17769
|
+
return goodClassTransformValue(value, config);
|
|
17770
|
+
}
|
|
17771
|
+
}
|
|
17772
|
+
},
|
|
17773
|
+
// 测马奔腾
|
|
17774
|
+
SZF4ZGWZSNW6PYXMCIFEWBXT: {
|
|
17775
|
+
goodType: {
|
|
17776
|
+
relationComponentKey: 'abVTwFX34E',
|
|
17777
|
+
reflectKey: 'ipOHnYquYB_radio',
|
|
17778
|
+
transformValue: function transformValue(value) {
|
|
17779
|
+
return goodTypeTransformValue(value);
|
|
17780
|
+
}
|
|
17781
|
+
},
|
|
17782
|
+
goodClass: {
|
|
17783
|
+
relationComponentKey: 'U0es1pIDaE',
|
|
17784
|
+
reflectKey: 'K1puYheEaE_input',
|
|
17785
|
+
transformValue: function transformValue(value, config) {
|
|
17786
|
+
return goodClassTransformValue(value, config);
|
|
17787
|
+
}
|
|
17788
|
+
}
|
|
17789
|
+
}
|
|
17790
|
+
};
|
|
17791
|
+
// 该方法只用于小白熊定制,当管易商品/管易补发/管易退换货组件的数据来源于关联工单数据,且其补发类型自定义组件选了值,根据该值填充到商品库弹框中类型筛选项
|
|
17792
|
+
var useDefaultSearchValue = (function (props) {
|
|
17793
|
+
var _Object$entries;
|
|
17794
|
+
var form = props.form,
|
|
17795
|
+
_props$companyKey = props.companyKey,
|
|
17796
|
+
companyKey = _props$companyKey === void 0 ? '' : _props$companyKey,
|
|
17797
|
+
source = props.source,
|
|
17798
|
+
erp = props.erp,
|
|
17799
|
+
_props$templateDetail = props.templateDetail,
|
|
17800
|
+
templateDetail = _props$templateDetail === void 0 ? {} : _props$templateDetail;
|
|
17801
|
+
if (source !== 'workOrder' || erp !== 'gy') {
|
|
17802
|
+
return '';
|
|
17803
|
+
}
|
|
17804
|
+
var result = {};
|
|
17805
|
+
var relationComponentKeyMap = relationComponentUniqueKeyMap === null || relationComponentUniqueKeyMap === void 0 ? void 0 : relationComponentUniqueKeyMap[companyKey];
|
|
17806
|
+
if (!relationComponentKeyMap) {
|
|
17807
|
+
return '';
|
|
17808
|
+
}
|
|
17809
|
+
(_Object$entries = Object.entries(relationComponentKeyMap || {})) === null || _Object$entries === void 0 ? void 0 : _Object$entries.forEach(function (_ref) {
|
|
17810
|
+
var _templateDetail$compo;
|
|
17811
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
17812
|
+
key = _ref2[0],
|
|
17813
|
+
value = _ref2[1];
|
|
17814
|
+
var matchComponent = templateDetail === null || templateDetail === void 0 ? void 0 : (_templateDetail$compo = templateDetail.componentDtoList) === null || _templateDetail$compo === void 0 ? void 0 : _templateDetail$compo.find(function (item) {
|
|
17815
|
+
return item.uniqueKey === value.relationComponentKey;
|
|
17816
|
+
});
|
|
17817
|
+
if (!matchComponent) {
|
|
17818
|
+
return;
|
|
17819
|
+
}
|
|
17820
|
+
var relationComponentValue = form === null || form === void 0 ? void 0 : form.getFieldValue(value.relationComponentKey);
|
|
17821
|
+
if (relationComponentValue) {
|
|
17822
|
+
if ((value === null || value === void 0 ? void 0 : value.transformValue) && typeof (value === null || value === void 0 ? void 0 : value.transformValue) === 'function') {
|
|
17823
|
+
var _value$transformValue;
|
|
17824
|
+
var newValue = value === null || value === void 0 ? void 0 : (_value$transformValue = value.transformValue) === null || _value$transformValue === void 0 ? void 0 : _value$transformValue.call(value, relationComponentValue, (matchComponent === null || matchComponent === void 0 ? void 0 : matchComponent.componentConfig) || {});
|
|
17825
|
+
if (newValue) {
|
|
17826
|
+
result[value.reflectKey] = newValue;
|
|
17827
|
+
}
|
|
17828
|
+
} else {
|
|
17829
|
+
result[value.reflectKey] = relationComponentValue;
|
|
17830
|
+
}
|
|
17831
|
+
}
|
|
17832
|
+
});
|
|
17833
|
+
return result;
|
|
17834
|
+
});
|
|
17835
|
+
|
|
17744
17836
|
var GyGoodsModal$1 = function GyGoodsModal(props, ref) {
|
|
17745
|
-
var _props$
|
|
17837
|
+
var _props$goodsSource2;
|
|
17746
17838
|
var _useState = useState(),
|
|
17747
17839
|
_useState2 = _slicedToArray(_useState, 2),
|
|
17748
17840
|
seletedGooods = _useState2[0],
|
|
17749
17841
|
setSeletedGooods = _useState2[1];
|
|
17842
|
+
var onSubmit = props.onSubmit,
|
|
17843
|
+
width = props.width;
|
|
17844
|
+
var _useState3 = useState(false),
|
|
17845
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
17846
|
+
visible = _useState4[0],
|
|
17847
|
+
setVisible = _useState4[1];
|
|
17848
|
+
var goodsListRef = useRef(null);
|
|
17750
17849
|
useImperativeHandle(ref, function () {
|
|
17751
17850
|
return {
|
|
17752
17851
|
open: function open(shopCode, options) {
|
|
@@ -17755,19 +17854,28 @@ var GyGoodsModal$1 = function GyGoodsModal(props, ref) {
|
|
|
17755
17854
|
}
|
|
17756
17855
|
};
|
|
17757
17856
|
});
|
|
17758
|
-
|
|
17759
|
-
|
|
17760
|
-
|
|
17761
|
-
|
|
17762
|
-
|
|
17763
|
-
|
|
17764
|
-
|
|
17857
|
+
useEffect(function () {
|
|
17858
|
+
if (visible && goodsListRef.current) {
|
|
17859
|
+
var _props$goodsSource;
|
|
17860
|
+
var defaultSearchValue = useDefaultSearchValue({
|
|
17861
|
+
form: props === null || props === void 0 ? void 0 : props.form,
|
|
17862
|
+
companyKey: props === null || props === void 0 ? void 0 : props.companyKey,
|
|
17863
|
+
source: (_props$goodsSource = props.goodsSource) === null || _props$goodsSource === void 0 ? void 0 : _props$goodsSource.source,
|
|
17864
|
+
erp: 'gy',
|
|
17865
|
+
templateDetail: props === null || props === void 0 ? void 0 : props.templateDetail
|
|
17866
|
+
});
|
|
17867
|
+
if (defaultSearchValue) {
|
|
17868
|
+
var _goodsListRef$current, _goodsListRef$current2;
|
|
17869
|
+
(_goodsListRef$current = goodsListRef.current) === null || _goodsListRef$current === void 0 ? void 0 : (_goodsListRef$current2 = _goodsListRef$current.setDefaultSearchValue) === null || _goodsListRef$current2 === void 0 ? void 0 : _goodsListRef$current2.call(_goodsListRef$current, defaultSearchValue);
|
|
17870
|
+
}
|
|
17871
|
+
}
|
|
17872
|
+
}, [visible]);
|
|
17765
17873
|
var _onCancel = function onCancel() {
|
|
17766
17874
|
setVisible(false);
|
|
17767
17875
|
};
|
|
17768
17876
|
var onOk = function onOk() {
|
|
17769
|
-
var _goodsListRef$
|
|
17770
|
-
var selectedList = ((_goodsListRef$
|
|
17877
|
+
var _goodsListRef$current3;
|
|
17878
|
+
var selectedList = ((_goodsListRef$current3 = goodsListRef.current) === null || _goodsListRef$current3 === void 0 ? void 0 : _goodsListRef$current3.getSelectGoodList()) || [];
|
|
17771
17879
|
onSubmit(selectedList);
|
|
17772
17880
|
_onCancel();
|
|
17773
17881
|
};
|
|
@@ -17782,7 +17890,7 @@ var GyGoodsModal$1 = function GyGoodsModal(props, ref) {
|
|
|
17782
17890
|
},
|
|
17783
17891
|
onOk: onOk,
|
|
17784
17892
|
wrapClassName: "goodModal"
|
|
17785
|
-
}, ((_props$
|
|
17893
|
+
}, ((_props$goodsSource2 = props.goodsSource) === null || _props$goodsSource2 === void 0 ? void 0 : _props$goodsSource2.source) === 'workOrder' ? /*#__PURE__*/React.createElement(WorkorderList$1, {
|
|
17786
17894
|
erp: "gy",
|
|
17787
17895
|
goodsSource: props.goodsSource,
|
|
17788
17896
|
seletedGooods: seletedGooods,
|
|
@@ -17821,10 +17929,12 @@ var getTableData$5 = function getTableData(_ref, formData) {
|
|
|
17821
17929
|
};
|
|
17822
17930
|
var searchFormData$4 = [{
|
|
17823
17931
|
label: '规格名称',
|
|
17824
|
-
name: '
|
|
17932
|
+
name: 'skuName',
|
|
17933
|
+
dataIndex: 'specName'
|
|
17825
17934
|
}, {
|
|
17826
17935
|
label: '规格编码',
|
|
17827
|
-
name: '
|
|
17936
|
+
name: 'skuCode',
|
|
17937
|
+
dataIndex: 'specNo'
|
|
17828
17938
|
}, {
|
|
17829
17939
|
label: '商品名称',
|
|
17830
17940
|
name: 'goodName'
|
|
@@ -17870,29 +17980,29 @@ var GoodList$5 = function GoodList(props, ref) {
|
|
|
17870
17980
|
fixed: true,
|
|
17871
17981
|
onSelect: function onSelect(record, selected) {
|
|
17872
17982
|
if (selected) {
|
|
17873
|
-
setSelectIds([].concat(_toConsumableArray(selectIds), [record.
|
|
17983
|
+
setSelectIds([].concat(_toConsumableArray(selectIds), [record.id]));
|
|
17874
17984
|
setSelect([].concat(_toConsumableArray(selectList), [record]));
|
|
17875
17985
|
} else {
|
|
17876
17986
|
setSelectIds(selectIds.filter(function (t) {
|
|
17877
|
-
return t !== record.
|
|
17987
|
+
return t !== record.id;
|
|
17878
17988
|
}));
|
|
17879
17989
|
setSelect(selectList.filter(function (t) {
|
|
17880
|
-
return t.
|
|
17990
|
+
return t.id !== record.id;
|
|
17881
17991
|
}));
|
|
17882
17992
|
}
|
|
17883
17993
|
},
|
|
17884
17994
|
onSelectAll: function onSelectAll(selected, selectedRows, changeRows) {
|
|
17885
17995
|
if (selected) {
|
|
17886
17996
|
setSelectIds([].concat(_toConsumableArray(selectIds), _toConsumableArray(changeRows.map(function (t) {
|
|
17887
|
-
return t.
|
|
17997
|
+
return t.id;
|
|
17888
17998
|
}))));
|
|
17889
17999
|
setSelect([].concat(_toConsumableArray(selectList), _toConsumableArray(changeRows)));
|
|
17890
18000
|
} else {
|
|
17891
18001
|
setSelectIds(difference(selectIds, changeRows.map(function (t) {
|
|
17892
|
-
return t.
|
|
18002
|
+
return t.id;
|
|
17893
18003
|
})));
|
|
17894
18004
|
var list = differenceWith(selectList, changeRows, function (arrVal, othVal) {
|
|
17895
|
-
return arrVal.
|
|
18005
|
+
return arrVal.id !== othVal.id;
|
|
17896
18006
|
});
|
|
17897
18007
|
setSelect(list);
|
|
17898
18008
|
}
|
|
@@ -17900,9 +18010,9 @@ var GoodList$5 = function GoodList(props, ref) {
|
|
|
17900
18010
|
getCheckboxProps: function getCheckboxProps(record) {
|
|
17901
18011
|
var options = {
|
|
17902
18012
|
disabled: (props.selectedRows || []).map(function (row) {
|
|
17903
|
-
return row.
|
|
17904
|
-
}).includes(record.
|
|
17905
|
-
name: record.
|
|
18013
|
+
return row.id || row.specId;
|
|
18014
|
+
}).includes(record.id || record.specId),
|
|
18015
|
+
name: record.id
|
|
17906
18016
|
};
|
|
17907
18017
|
return options;
|
|
17908
18018
|
}
|
|
@@ -17910,10 +18020,10 @@ var GoodList$5 = function GoodList(props, ref) {
|
|
|
17910
18020
|
var showTable = function showTable() {
|
|
17911
18021
|
var handleDelete = function handleDelete(record) {
|
|
17912
18022
|
setSelectIds(selectIds.filter(function (t) {
|
|
17913
|
-
return t !== record.
|
|
18023
|
+
return t !== record.id;
|
|
17914
18024
|
}));
|
|
17915
18025
|
setSelect(selectList.filter(function (t) {
|
|
17916
|
-
return t.
|
|
18026
|
+
return t.id !== record.id;
|
|
17917
18027
|
}));
|
|
17918
18028
|
};
|
|
17919
18029
|
var showColumns = [{
|
|
@@ -17937,7 +18047,7 @@ var GoodList$5 = function GoodList(props, ref) {
|
|
|
17937
18047
|
}
|
|
17938
18048
|
}, /*#__PURE__*/React.createElement(Table, {
|
|
17939
18049
|
columns: showColumns,
|
|
17940
|
-
rowKey: '
|
|
18050
|
+
rowKey: 'id',
|
|
17941
18051
|
dataSource: selectList,
|
|
17942
18052
|
scroll: {
|
|
17943
18053
|
x: '100%',
|
|
@@ -17966,7 +18076,7 @@ var GoodList$5 = function GoodList(props, ref) {
|
|
|
17966
18076
|
}
|
|
17967
18077
|
}, /*#__PURE__*/React.createElement(Table, _objectSpread2({
|
|
17968
18078
|
rowSelection: rowSelection,
|
|
17969
|
-
rowKey: "
|
|
18079
|
+
rowKey: "id",
|
|
17970
18080
|
columns: columns,
|
|
17971
18081
|
scroll: {
|
|
17972
18082
|
x: '100%',
|
|
@@ -18390,10 +18500,10 @@ var getColumns$1 = function getColumns(_ref) {
|
|
|
18390
18500
|
}
|
|
18391
18501
|
}, {
|
|
18392
18502
|
dataIndex: 'share',
|
|
18393
|
-
title: "\
|
|
18503
|
+
title: "\u5747\u644A\u5355\u4EF7",
|
|
18394
18504
|
align: 'center',
|
|
18395
18505
|
ellipsis: true,
|
|
18396
|
-
width:
|
|
18506
|
+
width: 120
|
|
18397
18507
|
}, {
|
|
18398
18508
|
dataIndex: 'type',
|
|
18399
18509
|
title: "\u8D60\u54C1\u7C7B\u578B",
|
|
@@ -18448,12 +18558,29 @@ var renderFieldMap = {
|
|
|
18448
18558
|
},
|
|
18449
18559
|
giftType: function giftType() {
|
|
18450
18560
|
return renderGiftType;
|
|
18561
|
+
},
|
|
18562
|
+
orderPrice: function orderPrice(_ref2) {
|
|
18563
|
+
var disabled = _ref2.disabled,
|
|
18564
|
+
updateHandle = _ref2.updateHandle;
|
|
18565
|
+
return function (val, record, index) {
|
|
18566
|
+
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
18567
|
+
style: {
|
|
18568
|
+
width: 70
|
|
18569
|
+
},
|
|
18570
|
+
value: val,
|
|
18571
|
+
min: 1,
|
|
18572
|
+
precision: 0,
|
|
18573
|
+
onChange: function onChange(num) {
|
|
18574
|
+
return updateHandle(num, index, 'orderPrice');
|
|
18575
|
+
}
|
|
18576
|
+
}) : /*#__PURE__*/React.createElement("span", null, (record.num || record.num === 0) && (val || val === 0) ? Number(val * record.num).toFixed(2) : null);
|
|
18577
|
+
};
|
|
18451
18578
|
}
|
|
18452
18579
|
};
|
|
18453
|
-
var getWdtReissueGoodColumns = function getWdtReissueGoodColumns(
|
|
18454
|
-
var disabled =
|
|
18455
|
-
updateHandle =
|
|
18456
|
-
operate =
|
|
18580
|
+
var getWdtReissueGoodColumns = function getWdtReissueGoodColumns(_ref3) {
|
|
18581
|
+
var disabled = _ref3.disabled,
|
|
18582
|
+
updateHandle = _ref3.updateHandle,
|
|
18583
|
+
operate = _ref3.operate;
|
|
18457
18584
|
return getColumnsMap$1()['WDT_REISSUE_GOODS'].map(function (item) {
|
|
18458
18585
|
var newItem = _objectSpread2({
|
|
18459
18586
|
align: 'center',
|
|
@@ -18471,6 +18598,15 @@ var getWdtReissueGoodColumns = function getWdtReissueGoodColumns(_ref2) {
|
|
|
18471
18598
|
});
|
|
18472
18599
|
};
|
|
18473
18600
|
|
|
18601
|
+
function toNum(value) {
|
|
18602
|
+
if (typeof value === 'string') {
|
|
18603
|
+
return value ? +value : void 0;
|
|
18604
|
+
}
|
|
18605
|
+
if (typeof value === 'number') {
|
|
18606
|
+
return value;
|
|
18607
|
+
}
|
|
18608
|
+
return void 0;
|
|
18609
|
+
}
|
|
18474
18610
|
var getColumns$2 = function getColumns(_ref) {
|
|
18475
18611
|
var _ref$text = _ref.text,
|
|
18476
18612
|
text = _ref$text === void 0 ? '' : _ref$text,
|
|
@@ -18481,7 +18617,7 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
18481
18617
|
WDT_REISSUE_GOODS: [{
|
|
18482
18618
|
dataIndex: 'goodId',
|
|
18483
18619
|
title: "\u5546\u54C1ID",
|
|
18484
|
-
width:
|
|
18620
|
+
width: 250,
|
|
18485
18621
|
align: 'center',
|
|
18486
18622
|
ellipsis: true
|
|
18487
18623
|
}, {
|
|
@@ -18542,17 +18678,38 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
18542
18678
|
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
18543
18679
|
width: 180,
|
|
18544
18680
|
align: 'center'
|
|
18681
|
+
}, {
|
|
18682
|
+
dataIndex: 'brandName',
|
|
18683
|
+
title: "\u54C1\u724C\u540D\u79F0",
|
|
18684
|
+
width: 180,
|
|
18685
|
+
align: 'center'
|
|
18545
18686
|
}, {
|
|
18546
18687
|
dataIndex: 'orderPrice',
|
|
18547
|
-
title: "\
|
|
18548
|
-
|
|
18549
|
-
|
|
18550
|
-
|
|
18688
|
+
title: "\u8865\u53D1\u91D1\u989D",
|
|
18689
|
+
align: 'center',
|
|
18690
|
+
// render: (val: number, record: any) => {
|
|
18691
|
+
// return (record.num || record.num === 0) && (val || val === 0)
|
|
18692
|
+
// ? Number(val * record.num).toFixed(2)
|
|
18693
|
+
// : null;
|
|
18694
|
+
// },
|
|
18551
18695
|
width: 200
|
|
18552
18696
|
}, {
|
|
18553
18697
|
dataIndex: 'num',
|
|
18554
18698
|
title: "\u6570\u91CF",
|
|
18555
|
-
width: 100
|
|
18699
|
+
width: 100,
|
|
18700
|
+
validator: function validator(_rule, value) {
|
|
18701
|
+
var goodsName = '';
|
|
18702
|
+
if (((value === null || value === void 0 ? void 0 : value.wdtReissueGoods) || []).some(function (goods) {
|
|
18703
|
+
var num = toNum(goods === null || goods === void 0 ? void 0 : goods.num);
|
|
18704
|
+
var res = typeof num === 'number' ? num < 1 : true;
|
|
18705
|
+
if (res) {
|
|
18706
|
+
goodsName = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
|
|
18707
|
+
}
|
|
18708
|
+
return res;
|
|
18709
|
+
})) {
|
|
18710
|
+
return Promise.reject("".concat(goodsName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
18711
|
+
}
|
|
18712
|
+
}
|
|
18556
18713
|
}, {
|
|
18557
18714
|
dataIndex: 'sharePrice',
|
|
18558
18715
|
title: "\u5206\u644A\u4EF7",
|
|
@@ -18569,7 +18726,7 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
18569
18726
|
title: "\u5546\u54C1ID",
|
|
18570
18727
|
align: 'center',
|
|
18571
18728
|
ellipsis: true,
|
|
18572
|
-
width:
|
|
18729
|
+
width: 250
|
|
18573
18730
|
}, {
|
|
18574
18731
|
dataIndex: 'goodNo',
|
|
18575
18732
|
title: "\u5546\u54C1\u7F16\u7801",
|
|
@@ -18628,6 +18785,11 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
18628
18785
|
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
18629
18786
|
width: 180,
|
|
18630
18787
|
align: 'center'
|
|
18788
|
+
}, {
|
|
18789
|
+
dataIndex: 'brandName',
|
|
18790
|
+
title: "\u54C1\u724C\u540D\u79F0",
|
|
18791
|
+
width: 180,
|
|
18792
|
+
align: 'center'
|
|
18631
18793
|
}, {
|
|
18632
18794
|
dataIndex: 'orderPrice',
|
|
18633
18795
|
title: "\u6210\u4EA4\u603B\u91D1\u989D",
|
|
@@ -18676,7 +18838,7 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
18676
18838
|
title: "\u5546\u54C1ID",
|
|
18677
18839
|
align: 'center',
|
|
18678
18840
|
ellipsis: true,
|
|
18679
|
-
width:
|
|
18841
|
+
width: 250
|
|
18680
18842
|
}, {
|
|
18681
18843
|
dataIndex: 'goodNo',
|
|
18682
18844
|
title: "\u5546\u54C1\u7F16\u7801",
|
|
@@ -18735,6 +18897,11 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
18735
18897
|
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
18736
18898
|
width: 180,
|
|
18737
18899
|
align: 'center'
|
|
18900
|
+
}, {
|
|
18901
|
+
dataIndex: 'brandName',
|
|
18902
|
+
title: "\u54C1\u724C\u540D\u79F0",
|
|
18903
|
+
width: 180,
|
|
18904
|
+
align: 'center'
|
|
18738
18905
|
}, {
|
|
18739
18906
|
dataIndex: 'num',
|
|
18740
18907
|
title: "".concat(text, "\u9000\u8D27\u6570\u91CF"),
|
|
@@ -18821,7 +18988,7 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
18821
18988
|
title: "\u5546\u54C1ID",
|
|
18822
18989
|
align: 'center',
|
|
18823
18990
|
ellipsis: true,
|
|
18824
|
-
width:
|
|
18991
|
+
width: 250
|
|
18825
18992
|
}, {
|
|
18826
18993
|
dataIndex: 'goodNo',
|
|
18827
18994
|
title: "\u5546\u54C1\u7F16\u7801",
|
|
@@ -18880,6 +19047,11 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
18880
19047
|
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
18881
19048
|
width: 180,
|
|
18882
19049
|
align: 'center'
|
|
19050
|
+
}, {
|
|
19051
|
+
dataIndex: 'brandName',
|
|
19052
|
+
title: "\u54C1\u724C\u540D\u79F0",
|
|
19053
|
+
width: 180,
|
|
19054
|
+
align: 'center'
|
|
18883
19055
|
}, {
|
|
18884
19056
|
dataIndex: 'num',
|
|
18885
19057
|
title: "".concat(text, "\u6362\u51FA\u6570\u91CF"),
|
|
@@ -19117,7 +19289,7 @@ var getYesOrNo$3 = function getYesOrNo(val) {
|
|
|
19117
19289
|
if (isNull(val)) return null;
|
|
19118
19290
|
return val ? '是' : '否';
|
|
19119
19291
|
};
|
|
19120
|
-
function toNum(value) {
|
|
19292
|
+
function toNum$1(value) {
|
|
19121
19293
|
if (typeof value === 'string') {
|
|
19122
19294
|
return value ? +value : void 0;
|
|
19123
19295
|
}
|
|
@@ -19286,7 +19458,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
19286
19458
|
validator: function validator(_rule, value) {
|
|
19287
19459
|
var goodsName = '';
|
|
19288
19460
|
if (((value === null || value === void 0 ? void 0 : value.gyReissueGoods) || []).some(function (goods) {
|
|
19289
|
-
var qty = toNum(goods === null || goods === void 0 ? void 0 : goods.qty);
|
|
19461
|
+
var qty = toNum$1(goods === null || goods === void 0 ? void 0 : goods.qty);
|
|
19290
19462
|
var res = typeof qty === 'number' ? qty < 1 : true;
|
|
19291
19463
|
if (res) {
|
|
19292
19464
|
goodsName = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
|
|
@@ -19402,7 +19574,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
19402
19574
|
validator: function validator(_rule, value) {
|
|
19403
19575
|
var goodsName = '';
|
|
19404
19576
|
if (((value === null || value === void 0 ? void 0 : value.gyReturnGoods) || []).some(function (goods) {
|
|
19405
|
-
var qty = toNum(goods === null || goods === void 0 ? void 0 : goods.qty);
|
|
19577
|
+
var qty = toNum$1(goods === null || goods === void 0 ? void 0 : goods.qty);
|
|
19406
19578
|
var res = typeof qty === 'number' ? qty < 1 : true;
|
|
19407
19579
|
if (res) {
|
|
19408
19580
|
goodsName = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
|
|
@@ -19503,7 +19675,7 @@ var fillAttrs = function fillAttrs(item) {
|
|
|
19503
19675
|
if (!item.align) item.align = 'center';
|
|
19504
19676
|
return item;
|
|
19505
19677
|
};
|
|
19506
|
-
function toNum$
|
|
19678
|
+
function toNum$2(value) {
|
|
19507
19679
|
if (typeof value === 'string') {
|
|
19508
19680
|
return value ? +value : void 0;
|
|
19509
19681
|
}
|
|
@@ -19695,19 +19867,21 @@ var getColumns$5 = function getColumns() {
|
|
|
19695
19867
|
ellipsis: true,
|
|
19696
19868
|
align: 'center',
|
|
19697
19869
|
width: 120,
|
|
19698
|
-
validator:
|
|
19699
|
-
|
|
19700
|
-
|
|
19701
|
-
|
|
19702
|
-
|
|
19703
|
-
|
|
19704
|
-
|
|
19705
|
-
|
|
19706
|
-
|
|
19707
|
-
|
|
19708
|
-
|
|
19709
|
-
|
|
19710
|
-
}
|
|
19870
|
+
// validator: (_rule: any, value: any) => {
|
|
19871
|
+
// let goodsName = '';
|
|
19872
|
+
// if (
|
|
19873
|
+
// (value?.jstReissueGoods || []).some((goods: any) => {
|
|
19874
|
+
// const v = toNum(goods?.salePrice);
|
|
19875
|
+
// const res = typeof v === 'number' ? v < 0 : true;
|
|
19876
|
+
// if (res) {
|
|
19877
|
+
// goodsName = goods?.name ? `[${goods?.name}]` : '';
|
|
19878
|
+
// }
|
|
19879
|
+
// return res;
|
|
19880
|
+
// })
|
|
19881
|
+
// ) {
|
|
19882
|
+
// return Promise.reject(`${goodsName}单价为大于等于0的数`);
|
|
19883
|
+
// }
|
|
19884
|
+
// },
|
|
19711
19885
|
render: function render(val, record, index) {
|
|
19712
19886
|
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
19713
19887
|
style: {
|
|
@@ -19730,7 +19904,7 @@ var getColumns$5 = function getColumns() {
|
|
|
19730
19904
|
validator: function validator(_rule, value) {
|
|
19731
19905
|
var goodsName = '';
|
|
19732
19906
|
if (((value === null || value === void 0 ? void 0 : value.jstReissueGoods) || []).some(function (goods) {
|
|
19733
|
-
var qty = toNum$
|
|
19907
|
+
var qty = toNum$2(goods === null || goods === void 0 ? void 0 : goods.qty);
|
|
19734
19908
|
var res = typeof qty === 'number' ? qty < 1 : true;
|
|
19735
19909
|
if (res) {
|
|
19736
19910
|
goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
|
|
@@ -19827,7 +20001,7 @@ var getColumns$5 = function getColumns() {
|
|
|
19827
20001
|
validator: function validator(_rule, value) {
|
|
19828
20002
|
var goodsName = '';
|
|
19829
20003
|
if (((value === null || value === void 0 ? void 0 : value.jstReturnGoods) || []).some(function (goods) {
|
|
19830
|
-
var v = toNum$
|
|
20004
|
+
var v = toNum$2(goods === null || goods === void 0 ? void 0 : goods.salePrice);
|
|
19831
20005
|
var res = typeof v === 'number' ? v < 0 : true;
|
|
19832
20006
|
if (res) {
|
|
19833
20007
|
goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
|
|
@@ -19857,7 +20031,7 @@ var getColumns$5 = function getColumns() {
|
|
|
19857
20031
|
validator: function validator(_rule, value) {
|
|
19858
20032
|
var goodsName = '';
|
|
19859
20033
|
if (((value === null || value === void 0 ? void 0 : value.jstReturnGoods) || []).some(function (goods) {
|
|
19860
|
-
var qty = toNum$
|
|
20034
|
+
var qty = toNum$2(goods === null || goods === void 0 ? void 0 : goods.qty);
|
|
19861
20035
|
var res = typeof qty === 'number' ? qty < 1 : true;
|
|
19862
20036
|
if (res) {
|
|
19863
20037
|
goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
|
|
@@ -20032,7 +20206,7 @@ var getColumns$5 = function getColumns() {
|
|
|
20032
20206
|
};
|
|
20033
20207
|
};
|
|
20034
20208
|
|
|
20035
|
-
function toNum$
|
|
20209
|
+
function toNum$3(value) {
|
|
20036
20210
|
if (typeof value === 'string') {
|
|
20037
20211
|
return value ? +value : void 0;
|
|
20038
20212
|
}
|
|
@@ -20178,7 +20352,7 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
20178
20352
|
validator: function validator(_rule, value) {
|
|
20179
20353
|
var title = '';
|
|
20180
20354
|
if (((value === null || value === void 0 ? void 0 : value.kmReissueGoods) || []).some(function (goods) {
|
|
20181
|
-
var realNum = toNum$
|
|
20355
|
+
var realNum = toNum$3(goods === null || goods === void 0 ? void 0 : goods.realNum);
|
|
20182
20356
|
var res = typeof realNum === 'number' ? realNum < 1 : true;
|
|
20183
20357
|
if (res) {
|
|
20184
20358
|
title = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
|
|
@@ -20270,10 +20444,15 @@ var isNumberOrNumberString$1 = function isNumberOrNumberString(value) {
|
|
|
20270
20444
|
if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
|
|
20271
20445
|
return false;
|
|
20272
20446
|
};
|
|
20273
|
-
|
|
20274
|
-
if (
|
|
20275
|
-
|
|
20276
|
-
}
|
|
20447
|
+
function toNum$4(value) {
|
|
20448
|
+
if (typeof value === 'string') {
|
|
20449
|
+
return value ? +value : void 0;
|
|
20450
|
+
}
|
|
20451
|
+
if (typeof value === 'number') {
|
|
20452
|
+
return value;
|
|
20453
|
+
}
|
|
20454
|
+
return void 0;
|
|
20455
|
+
}
|
|
20277
20456
|
var getColumns$7 = function getColumns(_ref) {
|
|
20278
20457
|
var _ref$text = _ref.text,
|
|
20279
20458
|
disabled = _ref.disabled,
|
|
@@ -20282,18 +20461,58 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
20282
20461
|
return {
|
|
20283
20462
|
//巨益商品信息
|
|
20284
20463
|
JY_GOODS: [{
|
|
20285
|
-
dataIndex: '
|
|
20286
|
-
title: "\
|
|
20464
|
+
dataIndex: 'productName',
|
|
20465
|
+
title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
|
|
20466
|
+
align: 'center',
|
|
20467
|
+
ellipsis: true,
|
|
20287
20468
|
width: 150
|
|
20288
20469
|
}, {
|
|
20289
|
-
dataIndex: '
|
|
20290
|
-
title: "\
|
|
20291
|
-
|
|
20470
|
+
dataIndex: 'productCode',
|
|
20471
|
+
title: "\u7CFB\u7EDF\u5546\u54C1\u7F16\u7801",
|
|
20472
|
+
align: 'center',
|
|
20473
|
+
ellipsis: true,
|
|
20474
|
+
width: 150
|
|
20292
20475
|
}, {
|
|
20293
|
-
dataIndex: '
|
|
20294
|
-
title: "\
|
|
20476
|
+
dataIndex: 'productId',
|
|
20477
|
+
title: "\u7CFB\u7EDF\u5546\u54C1ID",
|
|
20478
|
+
align: 'center',
|
|
20479
|
+
ellipsis: true,
|
|
20295
20480
|
width: 150
|
|
20296
20481
|
}, {
|
|
20482
|
+
dataIndex: 'skuName',
|
|
20483
|
+
title: "\u7CFB\u7EDF\u89C4\u683C\u540D\u79F0",
|
|
20484
|
+
align: 'center',
|
|
20485
|
+
ellipsis: true,
|
|
20486
|
+
width: 150
|
|
20487
|
+
}, {
|
|
20488
|
+
dataIndex: 'skuCode',
|
|
20489
|
+
title: "\u7CFB\u7EDF\u89C4\u683C\u7F16\u7801",
|
|
20490
|
+
align: 'center',
|
|
20491
|
+
ellipsis: true,
|
|
20492
|
+
width: 150
|
|
20493
|
+
}, {
|
|
20494
|
+
dataIndex: 'specId',
|
|
20495
|
+
title: "\u89C4\u683CID",
|
|
20496
|
+
align: 'center',
|
|
20497
|
+
ellipsis: true,
|
|
20498
|
+
width: 150
|
|
20499
|
+
},
|
|
20500
|
+
// {
|
|
20501
|
+
// dataIndex: 'goodsName',
|
|
20502
|
+
// title: `货品名称`,
|
|
20503
|
+
// width: 250,
|
|
20504
|
+
// },
|
|
20505
|
+
// {
|
|
20506
|
+
// dataIndex: 'goodsCode',
|
|
20507
|
+
// title: `货品编号`,
|
|
20508
|
+
// width: 200,
|
|
20509
|
+
// },
|
|
20510
|
+
// {
|
|
20511
|
+
// dataIndex: 'goodsId',
|
|
20512
|
+
// title: `货品ID`,
|
|
20513
|
+
// width: 150,
|
|
20514
|
+
// },
|
|
20515
|
+
{
|
|
20297
20516
|
dataIndex: 'goodsClass',
|
|
20298
20517
|
title: "\u8D27\u54C1\u7C7B\u522B",
|
|
20299
20518
|
width: 150
|
|
@@ -20301,25 +20520,173 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
20301
20520
|
dataIndex: 'code',
|
|
20302
20521
|
title: "\u6761\u7801",
|
|
20303
20522
|
width: 150
|
|
20304
|
-
},
|
|
20305
|
-
|
|
20306
|
-
|
|
20523
|
+
},
|
|
20524
|
+
// {
|
|
20525
|
+
// dataIndex: 'specName',
|
|
20526
|
+
// title: `规格名称`,
|
|
20527
|
+
// align: 'center',
|
|
20528
|
+
// ellipsis: true,
|
|
20529
|
+
// width: 200,
|
|
20530
|
+
// },
|
|
20531
|
+
// {
|
|
20532
|
+
// dataIndex: 'specCode',
|
|
20533
|
+
// title: `规格编号`,
|
|
20534
|
+
// align: 'center',
|
|
20535
|
+
// ellipsis: true,
|
|
20536
|
+
// width: 150,
|
|
20537
|
+
// },
|
|
20538
|
+
{
|
|
20539
|
+
dataIndex: 'mallProductName',
|
|
20540
|
+
title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
|
|
20307
20541
|
align: 'center',
|
|
20308
20542
|
ellipsis: true,
|
|
20309
|
-
width:
|
|
20543
|
+
width: 250
|
|
20310
20544
|
}, {
|
|
20311
|
-
dataIndex: '
|
|
20312
|
-
title: "\
|
|
20545
|
+
dataIndex: 'mallProductOutCode',
|
|
20546
|
+
title: "\u5E73\u53F0\u5546\u54C1\u7F16\u7801",
|
|
20313
20547
|
align: 'center',
|
|
20314
20548
|
ellipsis: true,
|
|
20315
20549
|
width: 150
|
|
20316
20550
|
}, {
|
|
20317
|
-
dataIndex: '
|
|
20318
|
-
title: "\
|
|
20551
|
+
dataIndex: 'mallProductId',
|
|
20552
|
+
title: "\u5E73\u53F0\u5546\u54C1ID",
|
|
20553
|
+
align: 'center',
|
|
20554
|
+
ellipsis: true,
|
|
20555
|
+
width: 250
|
|
20556
|
+
}, {
|
|
20557
|
+
dataIndex: 'mallSkuName',
|
|
20558
|
+
title: "\u5E73\u53F0\u89C4\u683C\u540D\u79F0",
|
|
20559
|
+
align: 'center',
|
|
20560
|
+
ellipsis: true,
|
|
20561
|
+
width: 250
|
|
20562
|
+
}, {
|
|
20563
|
+
dataIndex: 'mallSkuId',
|
|
20564
|
+
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
20319
20565
|
align: 'center',
|
|
20320
20566
|
ellipsis: true,
|
|
20567
|
+
width: 250
|
|
20568
|
+
}, {
|
|
20569
|
+
dataIndex: 'sellCount',
|
|
20570
|
+
title: "\u6570\u91CF",
|
|
20571
|
+
width: 100,
|
|
20572
|
+
render: function render(val, record, index) {
|
|
20573
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
20574
|
+
style: {
|
|
20575
|
+
width: 70
|
|
20576
|
+
},
|
|
20577
|
+
value: val,
|
|
20578
|
+
min: 1,
|
|
20579
|
+
precision: 0,
|
|
20580
|
+
onChange: function onChange(num) {
|
|
20581
|
+
updateDataHandle({
|
|
20582
|
+
sellCount: num,
|
|
20583
|
+
sellTotal: num && isNumberOrNumberString$1(record.sellPrice) ? num * record.sellPrice : null
|
|
20584
|
+
}, index);
|
|
20585
|
+
}
|
|
20586
|
+
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
20587
|
+
}
|
|
20588
|
+
}, {
|
|
20589
|
+
dataIndex: 'sellPrice',
|
|
20590
|
+
title: "\u5355\u4EF7",
|
|
20591
|
+
width: 150,
|
|
20592
|
+
render: function render(val, record, index) {
|
|
20593
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
20594
|
+
style: {
|
|
20595
|
+
width: 130
|
|
20596
|
+
},
|
|
20597
|
+
value: val,
|
|
20598
|
+
min: 0,
|
|
20599
|
+
precision: 2,
|
|
20600
|
+
onChange: function onChange(num) {
|
|
20601
|
+
updateDataHandle({
|
|
20602
|
+
sellPrice: num,
|
|
20603
|
+
sellTotal: num && isNumberOrNumberString$1(record.sellCount) ? num * record.sellCount : null
|
|
20604
|
+
}, index);
|
|
20605
|
+
}
|
|
20606
|
+
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
20607
|
+
}
|
|
20608
|
+
}, {
|
|
20609
|
+
dataIndex: 'mallSellingPrice',
|
|
20610
|
+
title: "\u5E73\u53F0\u5546\u54C1\u4EF7\u683C",
|
|
20611
|
+
width: 150
|
|
20612
|
+
}, {
|
|
20613
|
+
dataIndex: 'sellTotal',
|
|
20614
|
+
title: "\u91D1\u989D",
|
|
20615
|
+
width: 150
|
|
20616
|
+
}, {
|
|
20617
|
+
dataIndex: 'settlementPrice',
|
|
20618
|
+
title: "\u7ED3\u7B97\u4EF7",
|
|
20619
|
+
width: 150
|
|
20620
|
+
}, {
|
|
20621
|
+
dataIndex: 'divideOrderFee',
|
|
20622
|
+
title: "\u5206\u644A\u5B9E\u4ED8\u91D1\u989D",
|
|
20321
20623
|
width: 150
|
|
20322
20624
|
}, {
|
|
20625
|
+
dataIndex: 'bfit',
|
|
20626
|
+
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
20627
|
+
width: 150,
|
|
20628
|
+
render: function render(val, record, index) {
|
|
20629
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
20630
|
+
dropdownStyle: {
|
|
20631
|
+
zIndex: 2000
|
|
20632
|
+
},
|
|
20633
|
+
getPopupContainer: function getPopupContainer() {
|
|
20634
|
+
return document.body;
|
|
20635
|
+
},
|
|
20636
|
+
value: val,
|
|
20637
|
+
onChange: function onChange(value) {
|
|
20638
|
+
updateHandle(value, index, 'bfit');
|
|
20639
|
+
},
|
|
20640
|
+
options: [{
|
|
20641
|
+
label: '是',
|
|
20642
|
+
value: 'True'
|
|
20643
|
+
}, {
|
|
20644
|
+
label: '否',
|
|
20645
|
+
value: 'False'
|
|
20646
|
+
}]
|
|
20647
|
+
}) : /*#__PURE__*/React.createElement("span", null, val === 'True' ? '是' : '否');
|
|
20648
|
+
}
|
|
20649
|
+
}, {
|
|
20650
|
+
dataIndex: 'combinationName',
|
|
20651
|
+
title: "\u7EC4\u5408\u5546\u54C1\u540D\u79F0",
|
|
20652
|
+
width: 150
|
|
20653
|
+
}, {
|
|
20654
|
+
dataIndex: 'combinationCode',
|
|
20655
|
+
title: "\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
|
|
20656
|
+
width: 150
|
|
20657
|
+
}, {
|
|
20658
|
+
dataIndex: 'gift',
|
|
20659
|
+
title: "\u662F\u5426\u8D60\u54C1",
|
|
20660
|
+
width: 150,
|
|
20661
|
+
render: function render(val, record, index) {
|
|
20662
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
20663
|
+
dropdownStyle: {
|
|
20664
|
+
zIndex: 2000
|
|
20665
|
+
},
|
|
20666
|
+
getPopupContainer: function getPopupContainer() {
|
|
20667
|
+
return document.body;
|
|
20668
|
+
},
|
|
20669
|
+
value: val,
|
|
20670
|
+
onChange: function onChange(value) {
|
|
20671
|
+
updateHandle(value, index, 'gift');
|
|
20672
|
+
},
|
|
20673
|
+
options: [{
|
|
20674
|
+
label: '是',
|
|
20675
|
+
value: '1'
|
|
20676
|
+
}, {
|
|
20677
|
+
label: '否',
|
|
20678
|
+
value: '0'
|
|
20679
|
+
}]
|
|
20680
|
+
}) : /*#__PURE__*/React.createElement("span", null, val === '1' ? '是' : '否');
|
|
20681
|
+
}
|
|
20682
|
+
}].map(function (item) {
|
|
20683
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
20684
|
+
align: 'center',
|
|
20685
|
+
ellipsis: true
|
|
20686
|
+
});
|
|
20687
|
+
}),
|
|
20688
|
+
// 巨益补发商品信息
|
|
20689
|
+
JY_REISSUE_GOODS: [{
|
|
20323
20690
|
dataIndex: 'productName',
|
|
20324
20691
|
title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
|
|
20325
20692
|
align: 'center',
|
|
@@ -20349,6 +20716,20 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
20349
20716
|
align: 'center',
|
|
20350
20717
|
ellipsis: true,
|
|
20351
20718
|
width: 150
|
|
20719
|
+
}, {
|
|
20720
|
+
dataIndex: 'specId',
|
|
20721
|
+
title: "\u89C4\u683CID",
|
|
20722
|
+
align: 'center',
|
|
20723
|
+
ellipsis: true,
|
|
20724
|
+
width: 150
|
|
20725
|
+
}, {
|
|
20726
|
+
dataIndex: 'goodsClass',
|
|
20727
|
+
title: "\u8D27\u54C1\u7C7B\u522B",
|
|
20728
|
+
width: 150
|
|
20729
|
+
}, {
|
|
20730
|
+
dataIndex: 'code',
|
|
20731
|
+
title: "\u6761\u7801",
|
|
20732
|
+
width: 150
|
|
20352
20733
|
}, {
|
|
20353
20734
|
dataIndex: 'mallProductName',
|
|
20354
20735
|
title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
|
|
@@ -20383,6 +20764,19 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
20383
20764
|
dataIndex: 'sellCount',
|
|
20384
20765
|
title: "\u6570\u91CF",
|
|
20385
20766
|
width: 100,
|
|
20767
|
+
validator: function validator(_rule, value) {
|
|
20768
|
+
var productName = '';
|
|
20769
|
+
if (((value === null || value === void 0 ? void 0 : value.jyReissueGoods) || []).some(function (goods) {
|
|
20770
|
+
var qty = toNum$4(goods === null || goods === void 0 ? void 0 : goods.sellCount);
|
|
20771
|
+
var res = typeof qty === 'number' ? qty < 1 : true;
|
|
20772
|
+
if (res) {
|
|
20773
|
+
productName = (goods === null || goods === void 0 ? void 0 : goods.productName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.productName, "]") : '';
|
|
20774
|
+
}
|
|
20775
|
+
return res;
|
|
20776
|
+
})) {
|
|
20777
|
+
return Promise.reject("".concat(productName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
20778
|
+
}
|
|
20779
|
+
},
|
|
20386
20780
|
render: function render(val, record, index) {
|
|
20387
20781
|
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
20388
20782
|
style: {
|
|
@@ -20393,9 +20787,8 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
20393
20787
|
precision: 0,
|
|
20394
20788
|
onChange: function onChange(num) {
|
|
20395
20789
|
updateDataHandle({
|
|
20396
|
-
|
|
20397
|
-
|
|
20398
|
-
originAmount: num && isNumberOrNumberString$1(record.originPrice) ? num * record.originPrice : null
|
|
20790
|
+
sellCount: num,
|
|
20791
|
+
sellTotal: num && isNumberOrNumberString$1(record.sellPrice) ? num * record.sellPrice : null
|
|
20399
20792
|
}, index);
|
|
20400
20793
|
}
|
|
20401
20794
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
@@ -20414,8 +20807,8 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
20414
20807
|
precision: 2,
|
|
20415
20808
|
onChange: function onChange(num) {
|
|
20416
20809
|
updateDataHandle({
|
|
20417
|
-
|
|
20418
|
-
|
|
20810
|
+
sellPrice: num,
|
|
20811
|
+
sellTotal: num && isNumberOrNumberString$1(record.sellCount) ? num * record.sellCount : null
|
|
20419
20812
|
}, index);
|
|
20420
20813
|
}
|
|
20421
20814
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
@@ -20428,32 +20821,30 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
20428
20821
|
dataIndex: 'sellTotal',
|
|
20429
20822
|
title: "\u91D1\u989D",
|
|
20430
20823
|
width: 150
|
|
20431
|
-
}, {
|
|
20432
|
-
dataIndex: 'settlementPrice',
|
|
20433
|
-
title: "\u7ED3\u7B97\u4EF7",
|
|
20434
|
-
width: 150
|
|
20435
|
-
}, {
|
|
20436
|
-
dataIndex: 'divideOrderFee',
|
|
20437
|
-
title: "\u5206\u644A\u5B9E\u4ED8\u91D1\u989D",
|
|
20438
|
-
width: 150
|
|
20439
20824
|
}, {
|
|
20440
20825
|
dataIndex: 'bfit',
|
|
20441
20826
|
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
20442
20827
|
width: 150,
|
|
20443
20828
|
render: function render(val, record, index) {
|
|
20444
20829
|
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
20830
|
+
dropdownStyle: {
|
|
20831
|
+
zIndex: 2000
|
|
20832
|
+
},
|
|
20833
|
+
getPopupContainer: function getPopupContainer() {
|
|
20834
|
+
return document.body;
|
|
20835
|
+
},
|
|
20445
20836
|
value: val,
|
|
20446
20837
|
onChange: function onChange(value) {
|
|
20447
20838
|
updateHandle(value, index, 'bfit');
|
|
20448
20839
|
},
|
|
20449
20840
|
options: [{
|
|
20450
20841
|
label: '是',
|
|
20451
|
-
value:
|
|
20842
|
+
value: 'True'
|
|
20452
20843
|
}, {
|
|
20453
20844
|
label: '否',
|
|
20454
|
-
value:
|
|
20845
|
+
value: 'False'
|
|
20455
20846
|
}]
|
|
20456
|
-
}) : /*#__PURE__*/React.createElement("span", null,
|
|
20847
|
+
}) : /*#__PURE__*/React.createElement("span", null, val === 'True' ? '是' : '否');
|
|
20457
20848
|
}
|
|
20458
20849
|
}, {
|
|
20459
20850
|
dataIndex: 'combinationName',
|
|
@@ -20469,18 +20860,24 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
20469
20860
|
width: 150,
|
|
20470
20861
|
render: function render(val, record, index) {
|
|
20471
20862
|
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
20863
|
+
dropdownStyle: {
|
|
20864
|
+
zIndex: 2000
|
|
20865
|
+
},
|
|
20866
|
+
getPopupContainer: function getPopupContainer() {
|
|
20867
|
+
return document.body;
|
|
20868
|
+
},
|
|
20472
20869
|
value: val,
|
|
20473
20870
|
onChange: function onChange(value) {
|
|
20474
20871
|
updateHandle(value, index, 'gift');
|
|
20475
20872
|
},
|
|
20476
20873
|
options: [{
|
|
20477
20874
|
label: '是',
|
|
20478
|
-
value: 1
|
|
20875
|
+
value: '1'
|
|
20479
20876
|
}, {
|
|
20480
20877
|
label: '否',
|
|
20481
|
-
value: 0
|
|
20878
|
+
value: '0'
|
|
20482
20879
|
}]
|
|
20483
|
-
}) : /*#__PURE__*/React.createElement("span", null,
|
|
20880
|
+
}) : /*#__PURE__*/React.createElement("span", null, val === '1' ? '是' : '否');
|
|
20484
20881
|
}
|
|
20485
20882
|
}].map(function (item) {
|
|
20486
20883
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
@@ -20488,300 +20885,6 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
20488
20885
|
ellipsis: true
|
|
20489
20886
|
});
|
|
20490
20887
|
})
|
|
20491
|
-
//巨益补发商品信息
|
|
20492
|
-
// JY_REISSUE_GOODS: [
|
|
20493
|
-
// {
|
|
20494
|
-
// dataIndex: 'goodName',
|
|
20495
|
-
// title: `商品名称`,
|
|
20496
|
-
// width: 150,
|
|
20497
|
-
// },
|
|
20498
|
-
// {
|
|
20499
|
-
// dataIndex: 'goodShortName',
|
|
20500
|
-
// title: `商品简称`,
|
|
20501
|
-
// width: 150,
|
|
20502
|
-
// },
|
|
20503
|
-
// {
|
|
20504
|
-
// dataIndex: 'goodNo',
|
|
20505
|
-
// title: `商品编码`,
|
|
20506
|
-
// width: 200,
|
|
20507
|
-
// },
|
|
20508
|
-
// {
|
|
20509
|
-
// dataIndex: 'specName',
|
|
20510
|
-
// title: `SKU名称`,
|
|
20511
|
-
// align: 'center',
|
|
20512
|
-
// ellipsis: true,
|
|
20513
|
-
// width: 250,
|
|
20514
|
-
// },
|
|
20515
|
-
// {
|
|
20516
|
-
// dataIndex: 'specNo',
|
|
20517
|
-
// title: `SKU编码`,
|
|
20518
|
-
// align: 'center',
|
|
20519
|
-
// ellipsis: true,
|
|
20520
|
-
// width: 150,
|
|
20521
|
-
// },
|
|
20522
|
-
// {
|
|
20523
|
-
// dataIndex: 'qty',
|
|
20524
|
-
// title: `数量`,
|
|
20525
|
-
// width: 100,
|
|
20526
|
-
// validator: (_rule: any, value: any) => {
|
|
20527
|
-
// let goodsName = '';
|
|
20528
|
-
// if (
|
|
20529
|
-
// (value?.gyReissueGoods || []).some((goods: any) => {
|
|
20530
|
-
// const qty = toNum(goods?.qty);
|
|
20531
|
-
// const res = typeof qty === 'number' ? qty < 1 : true;
|
|
20532
|
-
// if (res) {
|
|
20533
|
-
// goodsName = goods?.goodName ? `[${goods?.goodName}]` : '';
|
|
20534
|
-
// }
|
|
20535
|
-
// return res;
|
|
20536
|
-
// })
|
|
20537
|
-
// ) {
|
|
20538
|
-
// return Promise.reject(`${goodsName}数量必须大于0`);
|
|
20539
|
-
// }
|
|
20540
|
-
// },
|
|
20541
|
-
// render: (val: any, record: any, index: number) =>
|
|
20542
|
-
// !disabled ? (
|
|
20543
|
-
// <InputNumber
|
|
20544
|
-
// style={{ width: 70 }}
|
|
20545
|
-
// value={val}
|
|
20546
|
-
// min={1}
|
|
20547
|
-
// precision={0}
|
|
20548
|
-
// onChange={(num) => {
|
|
20549
|
-
// updateDataHandle(
|
|
20550
|
-
// {
|
|
20551
|
-
// qty: num,
|
|
20552
|
-
// amount:
|
|
20553
|
-
// num && isNumberOrNumberString(record.price)
|
|
20554
|
-
// ? num * record.price
|
|
20555
|
-
// : null,
|
|
20556
|
-
// originAmount:
|
|
20557
|
-
// num && isNumberOrNumberString(record.originPrice)
|
|
20558
|
-
// ? num * record.originPrice
|
|
20559
|
-
// : null,
|
|
20560
|
-
// },
|
|
20561
|
-
// index,
|
|
20562
|
-
// );
|
|
20563
|
-
// }}
|
|
20564
|
-
// ></InputNumber>
|
|
20565
|
-
// ) : (
|
|
20566
|
-
// <span>{val}</span>
|
|
20567
|
-
// ),
|
|
20568
|
-
// },
|
|
20569
|
-
// {
|
|
20570
|
-
// dataIndex: 'price',
|
|
20571
|
-
// title: `实际单价`,
|
|
20572
|
-
// width: 150,
|
|
20573
|
-
// render: (val: any, record: any, index: number) =>
|
|
20574
|
-
// !disabled ? (
|
|
20575
|
-
// <InputNumber
|
|
20576
|
-
// style={{ width: 130 }}
|
|
20577
|
-
// value={val}
|
|
20578
|
-
// min={0}
|
|
20579
|
-
// precision={2}
|
|
20580
|
-
// onChange={(num) => {
|
|
20581
|
-
// updateDataHandle(
|
|
20582
|
-
// {
|
|
20583
|
-
// price: num,
|
|
20584
|
-
// amount:
|
|
20585
|
-
// num && isNumberOrNumberString(record.qty)
|
|
20586
|
-
// ? num * record.qty
|
|
20587
|
-
// : null,
|
|
20588
|
-
// },
|
|
20589
|
-
// index,
|
|
20590
|
-
// );
|
|
20591
|
-
// }}
|
|
20592
|
-
// ></InputNumber>
|
|
20593
|
-
// ) : (
|
|
20594
|
-
// <span>{val}</span>
|
|
20595
|
-
// ),
|
|
20596
|
-
// },
|
|
20597
|
-
// {
|
|
20598
|
-
// dataIndex: 'amount',
|
|
20599
|
-
// title: `实际金额`,
|
|
20600
|
-
// width: 150,
|
|
20601
|
-
// },
|
|
20602
|
-
// {
|
|
20603
|
-
// dataIndex: 'originPrice',
|
|
20604
|
-
// title: `标准单价`,
|
|
20605
|
-
// width: 150,
|
|
20606
|
-
// },
|
|
20607
|
-
// {
|
|
20608
|
-
// dataIndex: 'originAmount',
|
|
20609
|
-
// title: `标准金额`,
|
|
20610
|
-
// width: 150,
|
|
20611
|
-
// },
|
|
20612
|
-
// {
|
|
20613
|
-
// dataIndex: 'isGift',
|
|
20614
|
-
// title: `是否赠品`,
|
|
20615
|
-
// width: 150,
|
|
20616
|
-
// render: (val: number, record: any, index: number) =>
|
|
20617
|
-
// record.canEdit && !disabled ? (
|
|
20618
|
-
// <Select
|
|
20619
|
-
// value={val}
|
|
20620
|
-
// onChange={(value) => {
|
|
20621
|
-
// updateHandle(value, index, 'isGift');
|
|
20622
|
-
// }}
|
|
20623
|
-
// options={[
|
|
20624
|
-
// { label: '是', value: 1 },
|
|
20625
|
-
// { label: '否', value: 0 },
|
|
20626
|
-
// ]}
|
|
20627
|
-
// />
|
|
20628
|
-
// ) : (
|
|
20629
|
-
// <span>{getYesOrNo(val)}</span>
|
|
20630
|
-
// ),
|
|
20631
|
-
// },
|
|
20632
|
-
// ].map((item) => ({ ...item, align: 'center', ellipsis: true })),
|
|
20633
|
-
// //巨益退货商品信息
|
|
20634
|
-
// JY_RETURN_GOODS: [
|
|
20635
|
-
// {
|
|
20636
|
-
// dataIndex: 'goodName',
|
|
20637
|
-
// title: `商品名称`,
|
|
20638
|
-
// width: 150,
|
|
20639
|
-
// },
|
|
20640
|
-
// {
|
|
20641
|
-
// dataIndex: 'goodShortName',
|
|
20642
|
-
// title: `商品简称`,
|
|
20643
|
-
// width: 150,
|
|
20644
|
-
// },
|
|
20645
|
-
// {
|
|
20646
|
-
// dataIndex: 'goodNo',
|
|
20647
|
-
// title: `商品编码`,
|
|
20648
|
-
// width: 200,
|
|
20649
|
-
// },
|
|
20650
|
-
// {
|
|
20651
|
-
// dataIndex: 'specName',
|
|
20652
|
-
// title: `SKU名称`,
|
|
20653
|
-
// align: 'center',
|
|
20654
|
-
// ellipsis: true,
|
|
20655
|
-
// width: 250,
|
|
20656
|
-
// },
|
|
20657
|
-
// {
|
|
20658
|
-
// dataIndex: 'specNo',
|
|
20659
|
-
// title: `SKU编码`,
|
|
20660
|
-
// align: 'center',
|
|
20661
|
-
// ellipsis: true,
|
|
20662
|
-
// width: 150,
|
|
20663
|
-
// },
|
|
20664
|
-
// {
|
|
20665
|
-
// dataIndex: 'qty',
|
|
20666
|
-
// title: `数量`,
|
|
20667
|
-
// width: 100,
|
|
20668
|
-
// validator: (_rule: any, value: any) => {
|
|
20669
|
-
// let goodsName = '';
|
|
20670
|
-
// if (
|
|
20671
|
-
// (value?.gyReturnGoods || []).some((goods: any) => {
|
|
20672
|
-
// const qty = toNum(goods?.qty);
|
|
20673
|
-
// const res = typeof qty === 'number' ? qty < 1 : true;
|
|
20674
|
-
// if (res) {
|
|
20675
|
-
// goodsName = goods?.goodName ? `[${goods?.goodName}]` : '';
|
|
20676
|
-
// }
|
|
20677
|
-
// return res;
|
|
20678
|
-
// })
|
|
20679
|
-
// ) {
|
|
20680
|
-
// return Promise.reject(`${goodsName}数量必须大于0`);
|
|
20681
|
-
// }
|
|
20682
|
-
// },
|
|
20683
|
-
// render: (val: any, record: any, index: number) =>
|
|
20684
|
-
// !disabled ? (
|
|
20685
|
-
// <InputNumber
|
|
20686
|
-
// style={{ width: 70 }}
|
|
20687
|
-
// value={val}
|
|
20688
|
-
// min={1}
|
|
20689
|
-
// precision={0}
|
|
20690
|
-
// onChange={(num) => {
|
|
20691
|
-
// updateDataHandle(
|
|
20692
|
-
// {
|
|
20693
|
-
// qty: num,
|
|
20694
|
-
// amount:
|
|
20695
|
-
// num && isNumberOrNumberString(record.price)
|
|
20696
|
-
// ? num * record.price
|
|
20697
|
-
// : null,
|
|
20698
|
-
// originAmount:
|
|
20699
|
-
// num && isNumberOrNumberString(record.originPrice)
|
|
20700
|
-
// ? num * record.originPrice
|
|
20701
|
-
// : null,
|
|
20702
|
-
// },
|
|
20703
|
-
// index,
|
|
20704
|
-
// );
|
|
20705
|
-
// }}
|
|
20706
|
-
// ></InputNumber>
|
|
20707
|
-
// ) : (
|
|
20708
|
-
// <span>{val}</span>
|
|
20709
|
-
// ),
|
|
20710
|
-
// },
|
|
20711
|
-
// {
|
|
20712
|
-
// dataIndex: 'price',
|
|
20713
|
-
// title: `实际单价`,
|
|
20714
|
-
// width: 150,
|
|
20715
|
-
// render: (val: any, record: any, index: number) =>
|
|
20716
|
-
// !disabled ? (
|
|
20717
|
-
// <InputNumber
|
|
20718
|
-
// style={{ width: 130 }}
|
|
20719
|
-
// value={val}
|
|
20720
|
-
// min={0}
|
|
20721
|
-
// precision={2}
|
|
20722
|
-
// onChange={(num) => {
|
|
20723
|
-
// updateDataHandle(
|
|
20724
|
-
// {
|
|
20725
|
-
// price: num,
|
|
20726
|
-
// amount:
|
|
20727
|
-
// num && isNumberOrNumberString(record.qty)
|
|
20728
|
-
// ? num * record.qty
|
|
20729
|
-
// : null,
|
|
20730
|
-
// },
|
|
20731
|
-
// index,
|
|
20732
|
-
// );
|
|
20733
|
-
// }}
|
|
20734
|
-
// ></InputNumber>
|
|
20735
|
-
// ) : (
|
|
20736
|
-
// <span>{val}</span>
|
|
20737
|
-
// ),
|
|
20738
|
-
// },
|
|
20739
|
-
// {
|
|
20740
|
-
// dataIndex: 'amount',
|
|
20741
|
-
// title: `实际金额`,
|
|
20742
|
-
// width: 150,
|
|
20743
|
-
// },
|
|
20744
|
-
// {
|
|
20745
|
-
// dataIndex: 'originPrice',
|
|
20746
|
-
// title: `标准单价`,
|
|
20747
|
-
// width: 150,
|
|
20748
|
-
// },
|
|
20749
|
-
// {
|
|
20750
|
-
// dataIndex: 'originAmount',
|
|
20751
|
-
// title: `标准金额`,
|
|
20752
|
-
// width: 150,
|
|
20753
|
-
// },
|
|
20754
|
-
// {
|
|
20755
|
-
// dataIndex: 'discountFee',
|
|
20756
|
-
// title: `让利金额`,
|
|
20757
|
-
// width: 150,
|
|
20758
|
-
// },
|
|
20759
|
-
// {
|
|
20760
|
-
// dataIndex: 'amountAfter',
|
|
20761
|
-
// title: `让利后金额`,
|
|
20762
|
-
// width: 150,
|
|
20763
|
-
// },
|
|
20764
|
-
// {
|
|
20765
|
-
// dataIndex: 'isGift',
|
|
20766
|
-
// title: `是否赠品`,
|
|
20767
|
-
// width: 150,
|
|
20768
|
-
// render: (val: number, record: any, index: number) =>
|
|
20769
|
-
// record.canEdit && !disabled ? (
|
|
20770
|
-
// <Select
|
|
20771
|
-
// value={val}
|
|
20772
|
-
// onChange={(value) => {
|
|
20773
|
-
// updateHandle(value, index, 'isGift');
|
|
20774
|
-
// }}
|
|
20775
|
-
// options={[
|
|
20776
|
-
// { label: '是', value: 1 },
|
|
20777
|
-
// { label: '否', value: 0 },
|
|
20778
|
-
// ]}
|
|
20779
|
-
// />
|
|
20780
|
-
// ) : (
|
|
20781
|
-
// <span>{getYesOrNo(val)}</span>
|
|
20782
|
-
// ),
|
|
20783
|
-
// },
|
|
20784
|
-
// ].map((item) => ({ ...item, align: 'center', ellipsis: true })),
|
|
20785
20888
|
};
|
|
20786
20889
|
};
|
|
20787
20890
|
|
|
@@ -20972,7 +21075,8 @@ var getColumnsMap$1 = function getColumnsMap(args) {
|
|
|
20972
21075
|
})), getColumns$7({
|
|
20973
21076
|
text: text,
|
|
20974
21077
|
disabled: disabled,
|
|
20975
|
-
updateHandle: updateHandle
|
|
21078
|
+
updateHandle: updateHandle,
|
|
21079
|
+
updateDataHandle: updateDataHandle
|
|
20976
21080
|
})), getColumns$8({
|
|
20977
21081
|
text: text,
|
|
20978
21082
|
disabled: disabled,
|
|
@@ -21191,12 +21295,35 @@ var processJyGoods = function processJyGoods(_ref2) {
|
|
|
21191
21295
|
var list = _ref2.list,
|
|
21192
21296
|
canUpdateNumber = _ref2.canUpdateNumber;
|
|
21193
21297
|
return list.map(function (item) {
|
|
21298
|
+
var goodName = item.goodName,
|
|
21299
|
+
goodNo = item.goodNo,
|
|
21300
|
+
goodId = item.goodId,
|
|
21301
|
+
specName = item.specName,
|
|
21302
|
+
specNo = item.specNo,
|
|
21303
|
+
specBarcode = item.specBarcode,
|
|
21304
|
+
retailPrice = item.retailPrice,
|
|
21305
|
+
isGift = item.isGift,
|
|
21306
|
+
skuType = item.skuType;
|
|
21194
21307
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
21308
|
+
goodsName: goodName,
|
|
21309
|
+
goodsCode: goodNo,
|
|
21310
|
+
goodsId: goodId,
|
|
21311
|
+
code: specBarcode,
|
|
21312
|
+
specCode: specNo,
|
|
21313
|
+
productName: goodName,
|
|
21314
|
+
productCode: goodNo,
|
|
21315
|
+
productId: goodId,
|
|
21316
|
+
skuName: specName,
|
|
21317
|
+
skuCode: specNo,
|
|
21318
|
+
combinationName: goodName,
|
|
21319
|
+
combinationCode: goodNo,
|
|
21320
|
+
gift: isGift ? '1' : '0',
|
|
21321
|
+
bfit: skuType === 'combine' ? 'True' : 'False',
|
|
21195
21322
|
uuid: uuid(),
|
|
21196
21323
|
canDelete: true,
|
|
21197
21324
|
sellCount: 1,
|
|
21198
|
-
sellPrice:
|
|
21199
|
-
sellTotal:
|
|
21325
|
+
sellPrice: retailPrice,
|
|
21326
|
+
sellTotal: (retailPrice * 1).toFixed(2),
|
|
21200
21327
|
canEdit: true,
|
|
21201
21328
|
canUpdateNumber: canUpdateNumber
|
|
21202
21329
|
});
|
|
@@ -21387,6 +21514,7 @@ var GoodsModalMap = {
|
|
|
21387
21514
|
KM_GOODS: KmGoodsModal,
|
|
21388
21515
|
KM_REISSUE_GOODS: KmGoodsModal,
|
|
21389
21516
|
JY_GOODS: JyGoodsModal$1,
|
|
21517
|
+
JY_REISSUE_GOODS: JyGoodsModal$1,
|
|
21390
21518
|
OTHER_GOODS: GoodsModal$2
|
|
21391
21519
|
};
|
|
21392
21520
|
var systemOrderNoMap = {
|
|
@@ -21396,7 +21524,8 @@ var systemOrderNoMap = {
|
|
|
21396
21524
|
BS_E3_GOODS: 'orderSn',
|
|
21397
21525
|
JST_GOODS: 'oId',
|
|
21398
21526
|
WLN_GOODS: 'tradeNo',
|
|
21399
|
-
JY_GOODS: 'tradeNo'
|
|
21527
|
+
JY_GOODS: 'tradeNo',
|
|
21528
|
+
JY_REISSUE_GOODS: 'tradeNo'
|
|
21400
21529
|
};
|
|
21401
21530
|
var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
21402
21531
|
var columns = _ref.columns,
|
|
@@ -21454,6 +21583,12 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
21454
21583
|
return item === null || item === void 0 ? void 0 : item[uniqueKey];
|
|
21455
21584
|
}));
|
|
21456
21585
|
var handleChangeSelectedKeys = function handleChangeSelectedKeys(keys) {
|
|
21586
|
+
console.log('handleChangeSelectedKeys', keys, unCurrentTradeOriginGoods);
|
|
21587
|
+
console.log('filterDataSource', filterDataSource === null || filterDataSource === void 0 ? void 0 : filterDataSource.map(function (item) {
|
|
21588
|
+
return item === null || item === void 0 ? void 0 : item[uniqueKey];
|
|
21589
|
+
}));
|
|
21590
|
+
console.log('selectedRowKeys', selectedRowKeys);
|
|
21591
|
+
console.log('currentTradeOriginGoods', currentTradeOriginGoods);
|
|
21457
21592
|
onChangeSelectedKeys(keys.concat(unCurrentTradeOriginGoods));
|
|
21458
21593
|
};
|
|
21459
21594
|
var rowSelection = {
|
|
@@ -21577,13 +21712,15 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
21577
21712
|
tradeGoods = props.tradeGoods,
|
|
21578
21713
|
form = props.form,
|
|
21579
21714
|
systemOrders = props.systemOrders,
|
|
21580
|
-
selectedSystemOrders = props.selectedSystemOrders
|
|
21715
|
+
selectedSystemOrders = props.selectedSystemOrders,
|
|
21716
|
+
_props$templateDetail = props.templateDetail,
|
|
21717
|
+
templateDetail = _props$templateDetail === void 0 ? {} : _props$templateDetail;
|
|
21581
21718
|
var uniqueKey = (tradeGoods === null || tradeGoods === void 0 ? void 0 : tradeGoods.uniqueKey) || 'uuid';
|
|
21582
21719
|
// 监听聚水潭退货商品
|
|
21583
21720
|
var jstReturnGoods = Form === null || Form === void 0 ? void 0 : Form.useWatch('3979edfd6d', form);
|
|
21584
21721
|
var isShowSelectTradeGoods = type !== 'JST_EXCHANGE_GOODS' || (jstReturnGoods === null || jstReturnGoods === void 0 ? void 0 : jstReturnGoods.jstSystemOrderNo);
|
|
21585
21722
|
// 判断是否为商品信息组件
|
|
21586
|
-
var isGoods = type && ['WDT_GOODS', 'BS_E3_GOODS', 'GY_GOODS', 'JST_GOODS', 'WLN_GOODS', 'KM_GOODS', 'JY_GOODS'].includes(type) || false;
|
|
21723
|
+
var isGoods = type && ['WDT_GOODS', 'BS_E3_GOODS', 'GY_GOODS', 'JST_GOODS', 'WLN_GOODS', 'KM_GOODS', 'JY_GOODS', 'JY_REISSUE_GOODS'].includes(type) || false;
|
|
21587
21724
|
var refModal = useRef();
|
|
21588
21725
|
console.debug('表格数据', value);
|
|
21589
21726
|
var handleDelete = function handleDelete(record, index) {
|
|
@@ -21671,6 +21808,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
21671
21808
|
case 'KM_GOODS':
|
|
21672
21809
|
case 'KM_REISSUE_GOODS':
|
|
21673
21810
|
case 'JY_GOODS':
|
|
21811
|
+
case 'JY_REISSUE_GOODS':
|
|
21674
21812
|
case 'SKX_GOODS':
|
|
21675
21813
|
case 'SKX_RETURN_GOODS':
|
|
21676
21814
|
{
|
|
@@ -21717,8 +21855,9 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
21717
21855
|
var COLUMNS_INFO = COLUMNS_MAP(text);
|
|
21718
21856
|
return COLUMNS_INFO(type);
|
|
21719
21857
|
};
|
|
21720
|
-
var
|
|
21721
|
-
var
|
|
21858
|
+
var getShowFilterColumns = useCallback(function (_ref2) {
|
|
21859
|
+
var showHeader = _ref2.showHeader,
|
|
21860
|
+
initBaseInfoColumns = _ref2.initBaseInfoColumns;
|
|
21722
21861
|
var baseInfoColumns = [];
|
|
21723
21862
|
var isStringArray = Array.isArray(showHeader) && typeof showHeader[0] === 'string';
|
|
21724
21863
|
var isObjectArray = Array.isArray(showHeader) && Object.prototype.toString.call(showHeader[0]) === '[object Object]';
|
|
@@ -21738,6 +21877,14 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
21738
21877
|
return undefined;
|
|
21739
21878
|
}).filter(Boolean);
|
|
21740
21879
|
}
|
|
21880
|
+
return baseInfoColumns;
|
|
21881
|
+
}, [showHeader]);
|
|
21882
|
+
var newColumns = useMemo(function () {
|
|
21883
|
+
var initBaseInfoColumns = GOODS_INFO_COLUMNS();
|
|
21884
|
+
var baseInfoColumns = getShowFilterColumns({
|
|
21885
|
+
showHeader: showHeader,
|
|
21886
|
+
initBaseInfoColumns: initBaseInfoColumns
|
|
21887
|
+
});
|
|
21741
21888
|
var columnList = [{
|
|
21742
21889
|
dataIndex: '',
|
|
21743
21890
|
title: '序号',
|
|
@@ -21774,8 +21921,16 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
21774
21921
|
return columnList;
|
|
21775
21922
|
}, [showHeader, value, disabled, hoveredRowIndex]);
|
|
21776
21923
|
var orderModalColumns = useMemo(function () {
|
|
21777
|
-
var
|
|
21778
|
-
|
|
21924
|
+
var initBaseInfoColumns = COLUMNS_MAP('', {
|
|
21925
|
+
operate: false,
|
|
21926
|
+
disabled: true
|
|
21927
|
+
})(type);
|
|
21928
|
+
var baseInfoColumns = getShowFilterColumns({
|
|
21929
|
+
showHeader: showHeader,
|
|
21930
|
+
initBaseInfoColumns: initBaseInfoColumns
|
|
21931
|
+
});
|
|
21932
|
+
var list = baseInfoColumns.filter(function (col) {
|
|
21933
|
+
return !['操作'].includes(col.title);
|
|
21779
21934
|
});
|
|
21780
21935
|
return [{
|
|
21781
21936
|
dataIndex: '',
|
|
@@ -21787,7 +21942,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
21787
21942
|
return /*#__PURE__*/React.createElement("span", null, index + 1);
|
|
21788
21943
|
}
|
|
21789
21944
|
}].concat(_toConsumableArray(list));
|
|
21790
|
-
}, [
|
|
21945
|
+
}, [showHeader, value, disabled, hoveredRowIndex]);
|
|
21791
21946
|
var orderColumns = useMemo(function () {
|
|
21792
21947
|
var columns = COLUMNS_MAP('', {
|
|
21793
21948
|
operate: false,
|
|
@@ -21900,7 +22055,9 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
21900
22055
|
maxLength: maxLength,
|
|
21901
22056
|
companyKey: companyKey,
|
|
21902
22057
|
goodsSource: goodsSource,
|
|
21903
|
-
useGoodsSourceFormat: useGoodsSourceFormat
|
|
22058
|
+
useGoodsSourceFormat: useGoodsSourceFormat,
|
|
22059
|
+
form: form,
|
|
22060
|
+
templateDetail: templateDetail
|
|
21904
22061
|
}));
|
|
21905
22062
|
};
|
|
21906
22063
|
|
|
@@ -22535,7 +22692,7 @@ var getWdtOrderListSingleton = function getWdtOrderListSingleton(orderNo) {
|
|
|
22535
22692
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
22536
22693
|
billNo: item.tradeNo,
|
|
22537
22694
|
billType: WDT_ORDER_TYPE_MAP[item.tradeType],
|
|
22538
|
-
billTag: item.tagName,
|
|
22695
|
+
billTag: item.tagName || item.tags,
|
|
22539
22696
|
tradeStatusValue: tradeStatusMap === null || tradeStatusMap === void 0 ? void 0 : (_tradeStatusMap$data$ = tradeStatusMap[data.data.version]) === null || _tradeStatusMap$data$ === void 0 ? void 0 : _tradeStatusMap$data$[item.tradeStatus]
|
|
22540
22697
|
});
|
|
22541
22698
|
});
|
|
@@ -22779,13 +22936,19 @@ var getJyOrderListSingleton = function getJyOrderListSingleton(orderNo) {
|
|
|
22779
22936
|
extendRequest('/qy/gdfw/order/jyOrderDetail', {
|
|
22780
22937
|
method: 'post',
|
|
22781
22938
|
data: {
|
|
22782
|
-
|
|
22939
|
+
billNo: orderNo
|
|
22783
22940
|
}
|
|
22784
22941
|
}).then(function (res) {
|
|
22785
22942
|
if (res === null || res === void 0 ? void 0 : res.success) {
|
|
22786
|
-
var _res$data;
|
|
22787
|
-
if (res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.length) {
|
|
22788
|
-
|
|
22943
|
+
var _res$data, _res$data$tradeOrderD;
|
|
22944
|
+
if (res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : (_res$data$tradeOrderD = _res$data.tradeOrderDetails) === null || _res$data$tradeOrderD === void 0 ? void 0 : _res$data$tradeOrderD.length) {
|
|
22945
|
+
var _filterJyOrders, _res$data2;
|
|
22946
|
+
res.data.trades = (_filterJyOrders = filterJyOrders(res === null || res === void 0 ? void 0 : (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.tradeOrderDetails, orderNo)) === null || _filterJyOrders === void 0 ? void 0 : _filterJyOrders.map(function (item) {
|
|
22947
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
22948
|
+
tradeType: JY_ORDER_TYPE_MAP[item.tradeType],
|
|
22949
|
+
tradeStatus: JY_ORDER_STATUS_MAP[item.tradeStatus]
|
|
22950
|
+
});
|
|
22951
|
+
});
|
|
22789
22952
|
}
|
|
22790
22953
|
resolve(res.data);
|
|
22791
22954
|
// 延迟10秒清除,保证订单的时效性
|
|
@@ -22878,7 +23041,9 @@ var index$2 = (function (props) {
|
|
|
22878
23041
|
var value = props.value,
|
|
22879
23042
|
_onChange = props.onChange,
|
|
22880
23043
|
disabled = props.disabled,
|
|
22881
|
-
type = props.type
|
|
23044
|
+
type = props.type,
|
|
23045
|
+
_props$showHeader = props.showHeader,
|
|
23046
|
+
showHeader = _props$showHeader === void 0 ? [] : _props$showHeader;
|
|
22882
23047
|
var onceRef = useRef(false);
|
|
22883
23048
|
var valueRef = useRef(null);
|
|
22884
23049
|
useEffect(function () {
|
|
@@ -22906,8 +23071,12 @@ var index$2 = (function (props) {
|
|
|
22906
23071
|
}
|
|
22907
23072
|
}, [value, type]);
|
|
22908
23073
|
var columns = useMemo(function () {
|
|
22909
|
-
|
|
22910
|
-
|
|
23074
|
+
var baseInfoColumns = getSystemShowHead({
|
|
23075
|
+
columns: columnsMap[type] || [],
|
|
23076
|
+
showHeader: showHeader
|
|
23077
|
+
});
|
|
23078
|
+
return baseInfoColumns || [];
|
|
23079
|
+
}, [type, showHeader]);
|
|
22911
23080
|
var getOrderList = /*#__PURE__*/function () {
|
|
22912
23081
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(orderNo) {
|
|
22913
23082
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -22987,17 +23156,8 @@ var index$2 = (function (props) {
|
|
|
22987
23156
|
});
|
|
22988
23157
|
_onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, {
|
|
22989
23158
|
orders: trades,
|
|
22990
|
-
showOrderInfo: trades.map(function (
|
|
22991
|
-
|
|
22992
|
-
billType = _ref4.billType,
|
|
22993
|
-
billTag = _ref4.billTag,
|
|
22994
|
-
tradeStatusValue = _ref4.tradeStatusValue;
|
|
22995
|
-
return {
|
|
22996
|
-
billNo: billNo,
|
|
22997
|
-
billType: billType,
|
|
22998
|
-
billTag: billTag,
|
|
22999
|
-
tradeStatusValue: tradeStatusValue
|
|
23000
|
-
};
|
|
23159
|
+
showOrderInfo: trades.map(function (item) {
|
|
23160
|
+
return _objectSpread2({}, item);
|
|
23001
23161
|
})
|
|
23002
23162
|
}));
|
|
23003
23163
|
});
|
|
@@ -23013,7 +23173,7 @@ var index$2 = (function (props) {
|
|
|
23013
23173
|
};
|
|
23014
23174
|
}();
|
|
23015
23175
|
var getBsE3OrderList = /*#__PURE__*/function () {
|
|
23016
|
-
var
|
|
23176
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(orderNo) {
|
|
23017
23177
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
23018
23178
|
while (1) switch (_context4.prev = _context4.next) {
|
|
23019
23179
|
case 0:
|
|
@@ -23034,11 +23194,11 @@ var index$2 = (function (props) {
|
|
|
23034
23194
|
}, _callee4);
|
|
23035
23195
|
}));
|
|
23036
23196
|
return function getBsE3OrderList(_x4) {
|
|
23037
|
-
return
|
|
23197
|
+
return _ref4.apply(this, arguments);
|
|
23038
23198
|
};
|
|
23039
23199
|
}();
|
|
23040
23200
|
var getJstOrderList = /*#__PURE__*/function () {
|
|
23041
|
-
var
|
|
23201
|
+
var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(orderNo) {
|
|
23042
23202
|
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
23043
23203
|
while (1) switch (_context5.prev = _context5.next) {
|
|
23044
23204
|
case 0:
|
|
@@ -23057,21 +23217,21 @@ var index$2 = (function (props) {
|
|
|
23057
23217
|
}, _callee5);
|
|
23058
23218
|
}));
|
|
23059
23219
|
return function getJstOrderList(_x5) {
|
|
23060
|
-
return
|
|
23220
|
+
return _ref5.apply(this, arguments);
|
|
23061
23221
|
};
|
|
23062
23222
|
}();
|
|
23063
23223
|
var getKmOrderList = /*#__PURE__*/function () {
|
|
23064
|
-
var
|
|
23224
|
+
var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(orderNo) {
|
|
23065
23225
|
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
23066
23226
|
while (1) switch (_context6.prev = _context6.next) {
|
|
23067
23227
|
case 0:
|
|
23068
23228
|
kmUtils.getOrderListSingleton(orderNo).then(function (trades) {
|
|
23069
23229
|
_onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, {
|
|
23070
23230
|
orders: trades,
|
|
23071
|
-
showOrderInfo: trades.map(function (
|
|
23072
|
-
var billNo =
|
|
23073
|
-
billType =
|
|
23074
|
-
billTag =
|
|
23231
|
+
showOrderInfo: trades.map(function (_ref7) {
|
|
23232
|
+
var billNo = _ref7.billNo,
|
|
23233
|
+
billType = _ref7.billType,
|
|
23234
|
+
billTag = _ref7.billTag;
|
|
23075
23235
|
return {
|
|
23076
23236
|
billNo: billNo,
|
|
23077
23237
|
billType: billType,
|
|
@@ -23088,11 +23248,11 @@ var index$2 = (function (props) {
|
|
|
23088
23248
|
}, _callee6);
|
|
23089
23249
|
}));
|
|
23090
23250
|
return function getKmOrderList(_x6) {
|
|
23091
|
-
return
|
|
23251
|
+
return _ref6.apply(this, arguments);
|
|
23092
23252
|
};
|
|
23093
23253
|
}();
|
|
23094
23254
|
var getGyOrderList = /*#__PURE__*/function () {
|
|
23095
|
-
var
|
|
23255
|
+
var _ref8 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(orderNo) {
|
|
23096
23256
|
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
|
23097
23257
|
while (1) switch (_context7.prev = _context7.next) {
|
|
23098
23258
|
case 0:
|
|
@@ -23102,16 +23262,16 @@ var index$2 = (function (props) {
|
|
|
23102
23262
|
});
|
|
23103
23263
|
_onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, {
|
|
23104
23264
|
orders: trades,
|
|
23105
|
-
showOrderInfo: trades.map(function (
|
|
23106
|
-
var billNo =
|
|
23107
|
-
billType =
|
|
23108
|
-
billTag =
|
|
23109
|
-
tradeTagName =
|
|
23110
|
-
deliveryState =
|
|
23111
|
-
vipCode =
|
|
23112
|
-
shopCode =
|
|
23113
|
-
cancel =
|
|
23114
|
-
rest = _objectWithoutProperties(
|
|
23265
|
+
showOrderInfo: trades.map(function (_ref9) {
|
|
23266
|
+
var billNo = _ref9.billNo,
|
|
23267
|
+
billType = _ref9.billType,
|
|
23268
|
+
billTag = _ref9.billTag,
|
|
23269
|
+
tradeTagName = _ref9.tradeTagName,
|
|
23270
|
+
deliveryState = _ref9.deliveryState,
|
|
23271
|
+
vipCode = _ref9.vipCode,
|
|
23272
|
+
shopCode = _ref9.shopCode,
|
|
23273
|
+
cancel = _ref9.cancel,
|
|
23274
|
+
rest = _objectWithoutProperties(_ref9, _excluded$k);
|
|
23115
23275
|
return _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
23116
23276
|
billNo: billNo,
|
|
23117
23277
|
billType: billType,
|
|
@@ -23134,11 +23294,11 @@ var index$2 = (function (props) {
|
|
|
23134
23294
|
}, _callee7);
|
|
23135
23295
|
}));
|
|
23136
23296
|
return function getGyOrderList(_x7) {
|
|
23137
|
-
return
|
|
23297
|
+
return _ref8.apply(this, arguments);
|
|
23138
23298
|
};
|
|
23139
23299
|
}();
|
|
23140
23300
|
var getJyOrderList = /*#__PURE__*/function () {
|
|
23141
|
-
var
|
|
23301
|
+
var _ref10 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(orderNo) {
|
|
23142
23302
|
return _regeneratorRuntime().wrap(function _callee8$(_context8) {
|
|
23143
23303
|
while (1) switch (_context8.prev = _context8.next) {
|
|
23144
23304
|
case 0:
|
|
@@ -23148,9 +23308,9 @@ var index$2 = (function (props) {
|
|
|
23148
23308
|
});
|
|
23149
23309
|
_onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, {
|
|
23150
23310
|
orders: trades,
|
|
23151
|
-
showOrderInfo: trades.map(function (
|
|
23152
|
-
var shopCode =
|
|
23153
|
-
rest = _objectWithoutProperties(
|
|
23311
|
+
showOrderInfo: trades.map(function (_ref11) {
|
|
23312
|
+
var shopCode = _ref11.shopCode,
|
|
23313
|
+
rest = _objectWithoutProperties(_ref11, _excluded2);
|
|
23154
23314
|
return _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
23155
23315
|
shopCode: shopCode
|
|
23156
23316
|
});
|
|
@@ -23165,7 +23325,7 @@ var index$2 = (function (props) {
|
|
|
23165
23325
|
}, _callee8);
|
|
23166
23326
|
}));
|
|
23167
23327
|
return function getJyOrderList(_x8) {
|
|
23168
|
-
return
|
|
23328
|
+
return _ref10.apply(this, arguments);
|
|
23169
23329
|
};
|
|
23170
23330
|
}();
|
|
23171
23331
|
var rowSelection = {
|
|
@@ -23209,7 +23369,8 @@ var index$2 = (function (props) {
|
|
|
23209
23369
|
size: "small",
|
|
23210
23370
|
pagination: false,
|
|
23211
23371
|
scroll: {
|
|
23212
|
-
x: '
|
|
23372
|
+
x: '100%',
|
|
23373
|
+
y: 500
|
|
23213
23374
|
},
|
|
23214
23375
|
locale: {
|
|
23215
23376
|
emptyText: '暂无数据'
|
|
@@ -25006,21 +25167,12 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
25006
25167
|
while (1) switch (_context.prev = _context.next) {
|
|
25007
25168
|
case 0:
|
|
25008
25169
|
(_typeMap$type5 = typeMap$1[type]) === null || _typeMap$type5 === void 0 ? void 0 : _typeMap$type5.getOrderList(orderNo).then(function (data) {
|
|
25009
|
-
var _typeMap$type6,
|
|
25170
|
+
var _typeMap$type6, _ref2, _typeMap$type7;
|
|
25010
25171
|
var orders = (data === null || data === void 0 ? void 0 : data.trades) || [];
|
|
25011
|
-
var showOrderInfo = orders.map(function (
|
|
25012
|
-
|
|
25013
|
-
billType = _ref2.billType,
|
|
25014
|
-
billTag = _ref2.billTag,
|
|
25015
|
-
tradeStatusValue = _ref2.tradeStatusValue;
|
|
25016
|
-
return {
|
|
25017
|
-
billNo: billNo,
|
|
25018
|
-
billType: billType,
|
|
25019
|
-
billTag: billTag,
|
|
25020
|
-
tradeStatusValue: tradeStatusValue
|
|
25021
|
-
};
|
|
25172
|
+
var showOrderInfo = orders.map(function (item) {
|
|
25173
|
+
return _objectSpread2({}, item);
|
|
25022
25174
|
});
|
|
25023
|
-
var newValue = _objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, _defineProperty({}, (_typeMap$type6 = typeMap$1[type]) === null || _typeMap$type6 === void 0 ? void 0 : _typeMap$type6.systemOrder, _objectSpread2(_objectSpread2({}, ((
|
|
25175
|
+
var newValue = _objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, _defineProperty({}, (_typeMap$type6 = typeMap$1[type]) === null || _typeMap$type6 === void 0 ? void 0 : _typeMap$type6.systemOrder, _objectSpread2(_objectSpread2({}, ((_ref2 = valueRef.current || {}) === null || _ref2 === void 0 ? void 0 : _ref2[(_typeMap$type7 = typeMap$1[type]) === null || _typeMap$type7 === void 0 ? void 0 : _typeMap$type7.systemOrder]) || {}), {}, {
|
|
25024
25176
|
showOrderInfo: showOrderInfo,
|
|
25025
25177
|
orders: orders
|
|
25026
25178
|
})));
|
|
@@ -25066,10 +25218,10 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
25066
25218
|
mode: mode
|
|
25067
25219
|
}))));
|
|
25068
25220
|
};
|
|
25069
|
-
var getGoodDetails = function getGoodDetails(
|
|
25221
|
+
var getGoodDetails = function getGoodDetails(_ref3) {
|
|
25070
25222
|
var _typeMap$type14, _typeMap$type15, _order$goodDetails;
|
|
25071
|
-
var mode =
|
|
25072
|
-
sysOrderNo =
|
|
25223
|
+
var mode = _ref3.mode,
|
|
25224
|
+
sysOrderNo = _ref3.sysOrderNo;
|
|
25073
25225
|
var systemOrder = value === null || value === void 0 ? void 0 : value[(_typeMap$type14 = typeMap$1[type]) === null || _typeMap$type14 === void 0 ? void 0 : _typeMap$type14.systemOrder];
|
|
25074
25226
|
var systemOrderNo = sysOrderNo !== null && sysOrderNo !== void 0 ? sysOrderNo : value === null || value === void 0 ? void 0 : value[(_typeMap$type15 = typeMap$1[type]) === null || _typeMap$type15 === void 0 ? void 0 : _typeMap$type15.systemOrderNo];
|
|
25075
25227
|
var order = systemOrderNo && ((systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orders) || []).find(function (order) {
|
|
@@ -25252,10 +25404,25 @@ var typeMap$2 = {
|
|
|
25252
25404
|
outerOiIdKey: '',
|
|
25253
25405
|
goodDetailsKey: 'subOrders',
|
|
25254
25406
|
uniqueKey: 'id'
|
|
25407
|
+
},
|
|
25408
|
+
JY_REISSUE_GOODS: {
|
|
25409
|
+
compType: '补发',
|
|
25410
|
+
key: 'jyReissueGoods',
|
|
25411
|
+
typeName: 'jyReissueType',
|
|
25412
|
+
systemOrder: 'jySystemOrder',
|
|
25413
|
+
systemOrderNo: 'jySystemOrderNo',
|
|
25414
|
+
getOrderList: jyUtils.getJyOrderListSingleton,
|
|
25415
|
+
updateGoodsHandle: updateJyGoodsHandle,
|
|
25416
|
+
alwaysShowChooseErpGoodsBtn: true,
|
|
25417
|
+
orderTypeKey: 'orderType',
|
|
25418
|
+
oIdKey: 'tradeNo',
|
|
25419
|
+
outerOiIdKey: '',
|
|
25420
|
+
goodDetailsKey: 'subOrderDetails',
|
|
25421
|
+
isShowSelectTradeGoods: true
|
|
25255
25422
|
}
|
|
25256
25423
|
};
|
|
25257
25424
|
var PublicReissue = function PublicReissue(props) {
|
|
25258
|
-
var _typeMap$
|
|
25425
|
+
var _typeMap$type34, _typeMap$type40, _typeMap$type41, _typeMap$type42, _typeMap$type43, _value$typeMap$type$s8, _typeMap$type44, _typeMap$type45, _typeMap$type46, _typeMap$type47, _typeMap$type48, _typeMap$type49, _typeMap$type50, _typeMap$type51, _typeMap$type52, _value$typeMap$type$s9, _typeMap$type53, _typeMap$type54, _typeMap$type55;
|
|
25259
25426
|
var value = props.value,
|
|
25260
25427
|
onChange = props.onChange,
|
|
25261
25428
|
_props$reasonList = props.reasonList,
|
|
@@ -25372,9 +25539,11 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
25372
25539
|
}))));
|
|
25373
25540
|
};
|
|
25374
25541
|
var getGoodDetails = function getGoodDetails(_ref4) {
|
|
25375
|
-
var _typeMap$type18, _typeMap$type19,
|
|
25542
|
+
var _typeMap$type18, _typeMap$type19, _value$typeMap$type$s6, _typeMap$type20, _typeMap$type21, _typeMap$type22;
|
|
25376
25543
|
var mode = _ref4.mode,
|
|
25377
|
-
sysOrderNo = _ref4.sysOrderNo
|
|
25544
|
+
sysOrderNo = _ref4.sysOrderNo,
|
|
25545
|
+
_ref4$isAllOrders = _ref4.isAllOrders,
|
|
25546
|
+
isAllOrders = _ref4$isAllOrders === void 0 ? false : _ref4$isAllOrders;
|
|
25378
25547
|
var systemOrder = value === null || value === void 0 ? void 0 : value[(_typeMap$type18 = typeMap$2[type]) === null || _typeMap$type18 === void 0 ? void 0 : _typeMap$type18.systemOrder];
|
|
25379
25548
|
var systemOrderNo = sysOrderNo !== null && sysOrderNo !== void 0 ? sysOrderNo : value === null || value === void 0 ? void 0 : value[(_typeMap$type19 = typeMap$2[type]) === null || _typeMap$type19 === void 0 ? void 0 : _typeMap$type19.systemOrderNo];
|
|
25380
25549
|
var order = systemOrderNo && ((systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orders) || []).find(function (order) {
|
|
@@ -25388,39 +25557,48 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
25388
25557
|
orderBackGoodsLevel: props.orderBackGoodsLevel,
|
|
25389
25558
|
canEdit: true
|
|
25390
25559
|
};
|
|
25560
|
+
} else if (['JY_REISSUE_GOODS', 'JY_RETURN_GOODS'].includes(type)) {
|
|
25561
|
+
orderRest = {
|
|
25562
|
+
canEdit: true
|
|
25563
|
+
};
|
|
25391
25564
|
}
|
|
25392
|
-
var
|
|
25565
|
+
var orders = isAllOrders ? (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s6 = value[(_typeMap$type20 = typeMap$2[type]) === null || _typeMap$type20 === void 0 ? void 0 : _typeMap$type20.systemOrder]) === null || _value$typeMap$type$s6 === void 0 ? void 0 : _value$typeMap$type$s6.orders) || [] : [order];
|
|
25566
|
+
var hasGoodDetails = orders === null || orders === void 0 ? void 0 : orders.some(function (order) {
|
|
25567
|
+
var _order$typeMap$type$g;
|
|
25568
|
+
return order === null || order === void 0 ? void 0 : (_order$typeMap$type$g = order[typeMap$2[type].goodDetailsKey]) === null || _order$typeMap$type$g === void 0 ? void 0 : _order$typeMap$type$g.length;
|
|
25569
|
+
});
|
|
25570
|
+
var goodDetails = hasGoodDetails ? typeMap$2[type].mergeIdenticalGoods ? typeMap$2[type].mergeIdenticalGoods((_typeMap$type21 = typeMap$2[type]) === null || _typeMap$type21 === void 0 ? void 0 : _typeMap$type21.updateGoodsHandle(orders, orderRest)) : (_typeMap$type22 = typeMap$2[type]) === null || _typeMap$type22 === void 0 ? void 0 : _typeMap$type22.updateGoodsHandle(orders, orderRest) : [];
|
|
25393
25571
|
var orderNo = systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orderNo;
|
|
25394
|
-
var list = mode ? goodDetails.filter(function (goodItem) {
|
|
25572
|
+
var list = mode && !isAllOrders ? goodDetails.filter(function (goodItem) {
|
|
25395
25573
|
return !orderNo || goodItem[typeMap$2[type].outerOiIdKey] === orderNo;
|
|
25396
25574
|
}) : goodDetails;
|
|
25397
25575
|
return list;
|
|
25398
25576
|
};
|
|
25399
25577
|
var changeGoodHandle = function changeGoodHandle(val) {
|
|
25400
|
-
var _typeMap$
|
|
25578
|
+
var _typeMap$type23;
|
|
25401
25579
|
var newValue = _objectSpread2({}, value);
|
|
25402
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25580
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type23 = typeMap$2[type]) === null || _typeMap$type23 === void 0 ? void 0 : _typeMap$type23.key)] = val || [];
|
|
25403
25581
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
25404
25582
|
};
|
|
25405
25583
|
var changeSystemOrderHandle = function changeSystemOrderHandle(val) {
|
|
25406
|
-
var _typeMap$
|
|
25584
|
+
var _typeMap$type24, _typeMap$type25, _value$typeMap$type$t2, _typeMap$type30, _value$typeMap$type$t3, _typeMap$type32;
|
|
25407
25585
|
var newValue = _objectSpread2({}, value);
|
|
25408
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25409
|
-
if (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25410
|
-
var _value$typeMap$type$
|
|
25411
|
-
var orders = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$
|
|
25586
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type24 = typeMap$2[type]) === null || _typeMap$type24 === void 0 ? void 0 : _typeMap$type24.systemOrderNo)] = val;
|
|
25587
|
+
if (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type25 = typeMap$2[type]) === null || _typeMap$type25 === void 0 ? void 0 : _typeMap$type25.systemOrderBillType) {
|
|
25588
|
+
var _value$typeMap$type$s7, _typeMap$type26, _typeMap$type28, _typeMap$type29;
|
|
25589
|
+
var orders = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s7 = value[(_typeMap$type26 = typeMap$2[type]) === null || _typeMap$type26 === void 0 ? void 0 : _typeMap$type26.systemOrder]) === null || _value$typeMap$type$s7 === void 0 ? void 0 : _value$typeMap$type$s7.orders) || [];
|
|
25412
25590
|
var targetOrder = val && orders.find(function (oItem) {
|
|
25413
|
-
var _typeMap$
|
|
25414
|
-
return oItem[(_typeMap$
|
|
25591
|
+
var _typeMap$type27;
|
|
25592
|
+
return oItem[(_typeMap$type27 = typeMap$2[type]) === null || _typeMap$type27 === void 0 ? void 0 : _typeMap$type27.oIdKey] === val;
|
|
25415
25593
|
});
|
|
25416
|
-
newValue[(_typeMap$
|
|
25417
|
-
}
|
|
25418
|
-
if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$
|
|
25419
|
-
var _typeMap$
|
|
25420
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25421
|
-
} else if (['1'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$
|
|
25422
|
-
var _typeMap$
|
|
25423
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25594
|
+
newValue[(_typeMap$type28 = typeMap$2[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.systemOrderBillType] = targetOrder === null || targetOrder === void 0 ? void 0 : targetOrder[(_typeMap$type29 = typeMap$2[type]) === null || _typeMap$type29 === void 0 ? void 0 : _typeMap$type29.orderTypeKey];
|
|
25595
|
+
}
|
|
25596
|
+
if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$type30 = typeMap$2[type]) === null || _typeMap$type30 === void 0 ? void 0 : _typeMap$type30.typeName]) === null || _value$typeMap$type$t2 === void 0 ? void 0 : _value$typeMap$type$t2[0])) {
|
|
25597
|
+
var _typeMap$type31;
|
|
25598
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type31 = typeMap$2[type]) === null || _typeMap$type31 === void 0 ? void 0 : _typeMap$type31.key)] = [];
|
|
25599
|
+
} else if (['1'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$type32 = typeMap$2[type]) === null || _typeMap$type32 === void 0 ? void 0 : _typeMap$type32.typeName]) === null || _value$typeMap$type$t3 === void 0 ? void 0 : _value$typeMap$type$t3[0])) {
|
|
25600
|
+
var _typeMap$type33;
|
|
25601
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type33 = typeMap$2[type]) === null || _typeMap$type33 === void 0 ? void 0 : _typeMap$type33.key)] = getGoodDetails({
|
|
25424
25602
|
mode: isStrict,
|
|
25425
25603
|
sysOrderNo: val
|
|
25426
25604
|
});
|
|
@@ -25428,26 +25606,27 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
25428
25606
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue, 'systemOrder');
|
|
25429
25607
|
};
|
|
25430
25608
|
//显示选择商品按钮
|
|
25431
|
-
var showChangeBtn = !!(value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
25609
|
+
var showChangeBtn = !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type34 = typeMap$2[type]) === null || _typeMap$type34 === void 0 ? void 0 : _typeMap$type34.systemOrderNo]);
|
|
25432
25610
|
var selectedGoodsChange = useCallback(function (skuList) {
|
|
25433
|
-
var _typeMap$
|
|
25611
|
+
var _typeMap$type35, _typeMap$type36, _typeMap$type37, _uniqBy, _typeMap$type38;
|
|
25434
25612
|
var newValue = _objectSpread2({}, value);
|
|
25435
25613
|
// 原订单商品
|
|
25436
25614
|
var originTradeGoodList = getGoodDetails({
|
|
25437
|
-
mode: isStrict
|
|
25615
|
+
mode: isStrict,
|
|
25616
|
+
isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type35 = typeMap$2[type]) === null || _typeMap$type35 === void 0 ? void 0 : _typeMap$type35.isShowSelectTradeGoods
|
|
25438
25617
|
}) || [];
|
|
25439
25618
|
// 当前选中的所有商品【包含了原订单+商品库】
|
|
25440
|
-
var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25441
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25442
|
-
var _typeMap$
|
|
25443
|
-
return skuList.includes(item[typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25619
|
+
var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type36 = typeMap$2[type]) === null || _typeMap$type36 === void 0 ? void 0 : _typeMap$type36.key)]) || [];
|
|
25620
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type37 = typeMap$2[type]) === null || _typeMap$type37 === void 0 ? void 0 : _typeMap$type37.key)] = (_uniqBy = uniqBy(originTradeGoodList.concat(currentSelectGoodList), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type38 = typeMap$2[type]) === null || _typeMap$type38 === void 0 ? void 0 : _typeMap$type38.uniqueKey) || 'uuid')) === null || _uniqBy === void 0 ? void 0 : _uniqBy.filter(function (item) {
|
|
25621
|
+
var _typeMap$type39;
|
|
25622
|
+
return skuList.includes(item[(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type39 = typeMap$2[type]) === null || _typeMap$type39 === void 0 ? void 0 : _typeMap$type39.uniqueKey) || 'uuid']);
|
|
25444
25623
|
});
|
|
25445
25624
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
25446
|
-
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25625
|
+
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type40 = typeMap$2[type]) === null || _typeMap$type40 === void 0 ? void 0 : _typeMap$type40.key)], isStrict]);
|
|
25447
25626
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
|
|
25448
25627
|
gutter: 8,
|
|
25449
25628
|
wrap: true,
|
|
25450
|
-
id: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25629
|
+
id: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type41 = typeMap$2[type]) === null || _typeMap$type41 === void 0 ? void 0 : _typeMap$type41.key) || "".concat(Date.now())
|
|
25451
25630
|
}, /*#__PURE__*/React.createElement(Col, {
|
|
25452
25631
|
className: "gutter-row",
|
|
25453
25632
|
xs: {
|
|
@@ -25463,12 +25642,12 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
25463
25642
|
},
|
|
25464
25643
|
disabled: disabled,
|
|
25465
25644
|
allowClear: false,
|
|
25466
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25645
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type42 = typeMap$2[type]) === null || _typeMap$type42 === void 0 ? void 0 : _typeMap$type42.systemOrderNo)],
|
|
25467
25646
|
onChange: function onChange(val) {
|
|
25468
25647
|
return changeSystemOrderHandle(val);
|
|
25469
25648
|
},
|
|
25470
|
-
placeholder: "\u9009\u62E9".concat((typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25471
|
-
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$
|
|
25649
|
+
placeholder: "\u9009\u62E9".concat((typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type43 = typeMap$2[type]) === null || _typeMap$type43 === void 0 ? void 0 : _typeMap$type43.compType) || '', "\u7CFB\u7EDF\u5355")
|
|
25650
|
+
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s8 = value[(_typeMap$type44 = typeMap$2[type]) === null || _typeMap$type44 === void 0 ? void 0 : _typeMap$type44.systemOrder]) === null || _value$typeMap$type$s8 === void 0 ? void 0 : _value$typeMap$type$s8.showOrderInfo) || []).map(function (item) {
|
|
25472
25651
|
return /*#__PURE__*/React.createElement(Select.Option, {
|
|
25473
25652
|
key: item[typeMap$2[type].oIdKey],
|
|
25474
25653
|
value: item[typeMap$2[type].oIdKey],
|
|
@@ -25490,11 +25669,11 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
25490
25669
|
disabled: isSettingConfig ? !isSettingConfig : disabled,
|
|
25491
25670
|
allowClear: false,
|
|
25492
25671
|
options: reasonList,
|
|
25493
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25672
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type45 = typeMap$2[type]) === null || _typeMap$type45 === void 0 ? void 0 : _typeMap$type45.typeName)],
|
|
25494
25673
|
onChange: function onChange(val) {
|
|
25495
25674
|
return changeTypeHandle(val);
|
|
25496
25675
|
}
|
|
25497
|
-
})), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25676
|
+
})), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type46 = typeMap$2[type]) === null || _typeMap$type46 === void 0 ? void 0 : _typeMap$type46.systemOrderBillType) && !isSettingConfig && /*#__PURE__*/React.createElement(Col, {
|
|
25498
25677
|
className: "gutter-row",
|
|
25499
25678
|
xs: {
|
|
25500
25679
|
span: 11
|
|
@@ -25503,7 +25682,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
25503
25682
|
span: 6
|
|
25504
25683
|
}
|
|
25505
25684
|
}, /*#__PURE__*/React.createElement(Input, {
|
|
25506
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25685
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type47 = typeMap$2[type]) === null || _typeMap$type47 === void 0 ? void 0 : _typeMap$type47.systemOrderBillType)],
|
|
25507
25686
|
disabled: disabled,
|
|
25508
25687
|
readOnly: true
|
|
25509
25688
|
}))), /*#__PURE__*/React.createElement(GoodItem$1, _objectSpread2(_objectSpread2({
|
|
@@ -25512,22 +25691,25 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
25512
25691
|
type: type,
|
|
25513
25692
|
disabled: disabled,
|
|
25514
25693
|
canUpdateNumber: showChangeBtn,
|
|
25515
|
-
showChangeBtn: showChangeBtn,
|
|
25516
|
-
alwaysShowChooseErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25517
|
-
showErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25694
|
+
showChangeBtn: showChangeBtn || (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type48 = typeMap$2[type]) === null || _typeMap$type48 === void 0 ? void 0 : _typeMap$type48.isShowSelectTradeGoods),
|
|
25695
|
+
alwaysShowChooseErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type49 = typeMap$2[type]) === null || _typeMap$type49 === void 0 ? void 0 : _typeMap$type49.alwaysShowChooseErpGoodsBtn,
|
|
25696
|
+
showErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type50 = typeMap$2[type]) === null || _typeMap$type50 === void 0 ? void 0 : _typeMap$type50.showErpGoodsBtn,
|
|
25518
25697
|
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
25519
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25698
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type51 = typeMap$2[type]) === null || _typeMap$type51 === void 0 ? void 0 : _typeMap$type51.key)],
|
|
25520
25699
|
onChange: function onChange(val) {
|
|
25521
25700
|
return changeGoodHandle(val);
|
|
25522
25701
|
},
|
|
25523
25702
|
onModeChange: handleModeChange,
|
|
25524
25703
|
showModeBtn: false,
|
|
25525
25704
|
isStrict: isStrict,
|
|
25705
|
+
isShowSelectTradeGoods: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type52 = typeMap$2[type]) === null || _typeMap$type52 === void 0 ? void 0 : _typeMap$type52.isShowSelectTradeGoods,
|
|
25706
|
+
systemOrders: value === null || value === void 0 ? void 0 : (_value$typeMap$type$s9 = value[(_typeMap$type53 = typeMap$2[type]) === null || _typeMap$type53 === void 0 ? void 0 : _typeMap$type53.systemOrder]) === null || _value$typeMap$type$s9 === void 0 ? void 0 : _value$typeMap$type$s9.orders,
|
|
25526
25707
|
tradeGoods: {
|
|
25527
25708
|
originDataSource: getGoodDetails({
|
|
25528
|
-
mode: isStrict
|
|
25709
|
+
mode: isStrict,
|
|
25710
|
+
isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type54 = typeMap$2[type]) === null || _typeMap$type54 === void 0 ? void 0 : _typeMap$type54.isShowSelectTradeGoods
|
|
25529
25711
|
}),
|
|
25530
|
-
uniqueKey: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25712
|
+
uniqueKey: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type55 = typeMap$2[type]) === null || _typeMap$type55 === void 0 ? void 0 : _typeMap$type55.uniqueKey) || 'uuid',
|
|
25531
25713
|
selectedGoodsChange: selectedGoodsChange
|
|
25532
25714
|
}
|
|
25533
25715
|
})));
|
|
@@ -27788,4 +27970,15 @@ var SkxGoods = function SkxGoods(props) {
|
|
|
27788
27970
|
}));
|
|
27789
27971
|
};
|
|
27790
27972
|
|
|
27791
|
-
|
|
27973
|
+
var SYSTEM_ORDER_COLUMNS_MAP = {
|
|
27974
|
+
BS_SYSTEM_ORDER: BS_SYSTEM_ORDER_CONFIG.columns,
|
|
27975
|
+
KM_SYSTEM_ORDER: KM_SYSTEM_ORDER_CONFIG.columns,
|
|
27976
|
+
WLN_SYSTEM_ORDER: WLN_SYSTEM_ORDER_CONFIG.columns,
|
|
27977
|
+
WDT_SYSTEM_ORDER: WDT_SYSTEM_ORDER_CONFIG.columns,
|
|
27978
|
+
BS_E3_SYSTEM_ORDER: BS_E3_SYSTEM_ORDER_CONFIG.columns,
|
|
27979
|
+
GY_SYSTEM_ORDER: GY_SYSTEM_ORDER_CONFIG.columns,
|
|
27980
|
+
JST_SYSTEM_ORDER: JST_SYSTEM_ORDER_CONFIG.columns,
|
|
27981
|
+
JY_SYSTEM_ORDER: JY_SYSTEM_ORDER_CONFIG.columns
|
|
27982
|
+
};
|
|
27983
|
+
|
|
27984
|
+
export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, ApaasInput, ApaasInputNumber, ApaasLogistics, ApaasMultipleSelect, ApaasPosting, ApaasRadio, ApaasRate, ApaasSelect, ApaasSlider, ApaasTextArea, ApaasUpload, ApaasUploadAsync$1 as ApaasUploadAsync, ApaasUploadFile, index as ApaasUploadProAsync, AsyncSelect, bsE3Reissue as BsE3Reissue, BsExchange, BsGoods, BsReissue, BsReturnGoods as BsReturn, index$2 as BsSystemOrder, BuyerNick, CalculationInput, ChooseBaby, CommonExchangeGoods, CommonGoods, CommonSystemOrder$1 as CommonMultiStatus, CommonReturnGoods, CommonStatus, CommonSystemOrder, CopyTextIcon, ExpressLogistics, Goods, index$3 as GoodsTable, GyReissue, GyReturnGoods as GyReturn, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, KmVideo, LogisticsInterception, LogisticsMoreInterception, LogisticsMoreTrajectory, LogisticsTrajectory, MsgStatus, OrderSubForm, utils as OrderSubFormUtils, ParseLogistics, Payment, PublicReissue, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, SYSTEM_ORDER_COLUMNS_MAP, ShopNameSelect as ShopName, SkxGoods, IdInputSelect as SkxIdInputSelect, Status, SubForm, Supplier, TBGoodId, TBGoodSerial, TradeId, WdtGoodList, wdtReissue as WdtReissue, WlnGoods, columnsBaseInfoMap, erpColumnsMap, erpFormValidator, index$1 as erpModalColumnsMap, getColumns$4 as getGyColumns, getColumns$5 as getJstColumns, getColumns$7 as getJyColumns, getColumns$6 as getKmColumns, getColumns$8 as getSkxColumns, getColumns$2 as getWdtColumns, getColumns$3 as getWlnColumns, orderSubFormConstants, renderMap };
|