@kmkf-fe-packages/basic-components 2.2.14 → 2.2.16
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 +1375 -229
- package/dist/index.js +1375 -228
- package/dist/src/bs/component/GoodItem/index.d.ts +1 -0
- package/dist/src/bs/component/model/Columns/Erp/jy.d.ts +27 -0
- package/dist/src/bs/component/model/GyGoodsList.d.ts +1 -0
- package/dist/src/bs/component/model/JyGoodsModal/GoodsList.d.ts +31 -0
- package/dist/src/bs/component/model/JyGoodsModal/index.d.ts +5 -0
- 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/index.d.ts +1 -0
- package/dist/src/constants/jy.d.ts +3 -0
- package/dist/src/jy/common/index.d.ts +3 -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, 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, updateOrderSubFormGoodsHandle, updateWlnGoodsHandle, updateWdtGoodsHandle, updateBsE3GoodsHandle, updateGyGoodsHandle, updateJstGoodsHandle, updateKmGoodsHandle, 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, 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';
|
|
@@ -13732,7 +13732,7 @@ var jstGoods = function jstGoods(props) {
|
|
|
13732
13732
|
changeIndex = _useState2[0],
|
|
13733
13733
|
setChangeIndex = _useState2[1]; //选中的包裹
|
|
13734
13734
|
var sendOptions = SendDataCenter.getInstance(platformType).getSendData();
|
|
13735
|
-
var isSelectName = ['wdt', 'bsE3', 'km', 'gy', 'jst'].includes(platformType);
|
|
13735
|
+
var isSelectName = ['wdt', 'bsE3', 'km', 'gy', 'jst', 'jy'].includes(platformType);
|
|
13736
13736
|
var expressDateInstance = ExpressData.getInstance(platformType);
|
|
13737
13737
|
var isSendGoodSavedId = isSelectName && !['jst'].includes(platformType);
|
|
13738
13738
|
useEffect(function () {
|
|
@@ -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) {
|
|
@@ -14885,13 +14885,139 @@ var kmColumns = [{
|
|
|
14885
14885
|
width: 150
|
|
14886
14886
|
}];
|
|
14887
14887
|
|
|
14888
|
+
var getYesOrNo$1 = function getYesOrNo(val) {
|
|
14889
|
+
if (!isBoolean(val)) return null;
|
|
14890
|
+
return val ? '是' : '否';
|
|
14891
|
+
};
|
|
14892
|
+
var jyColumns = [{
|
|
14893
|
+
dataIndex: 'goodName',
|
|
14894
|
+
title: '商品名称',
|
|
14895
|
+
width: 250,
|
|
14896
|
+
ellipsis: true
|
|
14897
|
+
}, {
|
|
14898
|
+
dataIndex: 'goodNo',
|
|
14899
|
+
title: '商品编码',
|
|
14900
|
+
width: 150,
|
|
14901
|
+
ellipsis: true
|
|
14902
|
+
}, {
|
|
14903
|
+
dataIndex: 'goodId',
|
|
14904
|
+
title: '商品ID',
|
|
14905
|
+
width: 150,
|
|
14906
|
+
ellipsis: true
|
|
14907
|
+
}, {
|
|
14908
|
+
dataIndex: 'imageUrl',
|
|
14909
|
+
title: '商品图片',
|
|
14910
|
+
width: 100,
|
|
14911
|
+
render: function render(picUrl) {
|
|
14912
|
+
return picUrl ? /*#__PURE__*/React.createElement("img", {
|
|
14913
|
+
style: {
|
|
14914
|
+
width: '40px',
|
|
14915
|
+
height: '40px',
|
|
14916
|
+
objectFit: 'contain'
|
|
14917
|
+
},
|
|
14918
|
+
src: picUrl
|
|
14919
|
+
}) : null;
|
|
14920
|
+
}
|
|
14921
|
+
}, {
|
|
14922
|
+
dataIndex: 'goodShortName',
|
|
14923
|
+
title: "\u5546\u54C1\u7B80\u79F0",
|
|
14924
|
+
ellipsis: true,
|
|
14925
|
+
width: 150
|
|
14926
|
+
}, {
|
|
14927
|
+
dataIndex: 'categoryName',
|
|
14928
|
+
title: "\u5546\u54C1\u7EC4",
|
|
14929
|
+
ellipsis: true,
|
|
14930
|
+
width: 150
|
|
14931
|
+
}, {
|
|
14932
|
+
dataIndex: 'brandName',
|
|
14933
|
+
title: '品牌名称',
|
|
14934
|
+
width: 200,
|
|
14935
|
+
ellipsis: true
|
|
14936
|
+
}, {
|
|
14937
|
+
dataIndex: 'specName',
|
|
14938
|
+
title: '规格名称',
|
|
14939
|
+
width: 250,
|
|
14940
|
+
ellipsis: true
|
|
14941
|
+
}, {
|
|
14942
|
+
dataIndex: 'specNo',
|
|
14943
|
+
title: '规格编码',
|
|
14944
|
+
width: 150,
|
|
14945
|
+
ellipsis: true
|
|
14946
|
+
}, {
|
|
14947
|
+
dataIndex: 'specId',
|
|
14948
|
+
title: '规格ID',
|
|
14949
|
+
width: 250,
|
|
14950
|
+
ellipsis: true
|
|
14951
|
+
}, {
|
|
14952
|
+
dataIndex: 'specBarcode',
|
|
14953
|
+
title: '规格条码',
|
|
14954
|
+
width: 150,
|
|
14955
|
+
ellipsis: true
|
|
14956
|
+
}, {
|
|
14957
|
+
dataIndex: 'specImgUrl',
|
|
14958
|
+
title: '规格图片',
|
|
14959
|
+
width: 100,
|
|
14960
|
+
render: function render(picUrl) {
|
|
14961
|
+
return picUrl ? /*#__PURE__*/React.createElement("img", {
|
|
14962
|
+
style: {
|
|
14963
|
+
width: '40px',
|
|
14964
|
+
height: '40px',
|
|
14965
|
+
objectFit: 'contain'
|
|
14966
|
+
},
|
|
14967
|
+
src: picUrl
|
|
14968
|
+
}) : null;
|
|
14969
|
+
}
|
|
14970
|
+
}, {
|
|
14971
|
+
dataIndex: 'colorName',
|
|
14972
|
+
title: "\u989C\u8272",
|
|
14973
|
+
ellipsis: true,
|
|
14974
|
+
width: 100
|
|
14975
|
+
}, {
|
|
14976
|
+
dataIndex: 'sizeName',
|
|
14977
|
+
title: "\u5C3A\u7801",
|
|
14978
|
+
ellipsis: true,
|
|
14979
|
+
width: 100
|
|
14980
|
+
}, {
|
|
14981
|
+
dataIndex: 'marketPrice',
|
|
14982
|
+
title: "\u5E02\u573A\u4EF7",
|
|
14983
|
+
ellipsis: true,
|
|
14984
|
+
width: 100
|
|
14985
|
+
}, {
|
|
14986
|
+
dataIndex: 'retailPrice',
|
|
14987
|
+
title: "\u96F6\u552E\u4EF7",
|
|
14988
|
+
ellipsis: true,
|
|
14989
|
+
width: 100
|
|
14990
|
+
}, {
|
|
14991
|
+
dataIndex: 'costPrice',
|
|
14992
|
+
title: "\u6210\u672C\u4EF7",
|
|
14993
|
+
ellipsis: true,
|
|
14994
|
+
width: 100
|
|
14995
|
+
}, {
|
|
14996
|
+
dataIndex: 'isGift',
|
|
14997
|
+
title: "\u662F\u5426\u8D60\u54C1",
|
|
14998
|
+
ellipsis: true,
|
|
14999
|
+
width: 150,
|
|
15000
|
+
render: function render(val) {
|
|
15001
|
+
return /*#__PURE__*/React.createElement("span", null, getYesOrNo$1(val));
|
|
15002
|
+
}
|
|
15003
|
+
}, {
|
|
15004
|
+
dataIndex: 'skuType',
|
|
15005
|
+
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
15006
|
+
ellipsis: true,
|
|
15007
|
+
width: 150,
|
|
15008
|
+
render: function render(val) {
|
|
15009
|
+
return /*#__PURE__*/React.createElement("span", null, getYesOrNo$1(val === 'combine'));
|
|
15010
|
+
}
|
|
15011
|
+
}];
|
|
15012
|
+
|
|
14888
15013
|
var getColumnsMap = function getColumnsMap() {
|
|
14889
15014
|
return cloneDeep({
|
|
14890
15015
|
gy: gyColumns,
|
|
14891
15016
|
jst: jstColumns,
|
|
14892
15017
|
wdt: wdtColumns,
|
|
14893
15018
|
bse3: bse3Columns,
|
|
14894
|
-
km: kmColumns
|
|
15019
|
+
km: kmColumns,
|
|
15020
|
+
jy: jyColumns
|
|
14895
15021
|
});
|
|
14896
15022
|
};
|
|
14897
15023
|
var getColumnsBaseInfo = function getColumnsBaseInfo() {
|
|
@@ -17166,11 +17292,12 @@ var SearchHeader = function SearchHeader(_ref) {
|
|
|
17166
17292
|
timeOptions = _ref.timeOptions,
|
|
17167
17293
|
ShopList = _ref.ShopList,
|
|
17168
17294
|
onSubmit = _ref.onSubmit;
|
|
17295
|
+
console.log('allFields', allFields);
|
|
17169
17296
|
// const fixedFieldsOptions = useMemo(() => {
|
|
17170
17297
|
// return allFields.filter(item => fixedFields?.includes(item.id));
|
|
17171
17298
|
// }, [fixedFields, allFields]);
|
|
17172
17299
|
return /*#__PURE__*/React.createElement("div", {
|
|
17173
|
-
className:
|
|
17300
|
+
className: "search-header-wrap"
|
|
17174
17301
|
}, /*#__PURE__*/React.createElement("div", {
|
|
17175
17302
|
className: "".concat(status ? 'is-open' : 'not-open')
|
|
17176
17303
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -17327,6 +17454,9 @@ var WorkorderList = function WorkorderList(props, ref) {
|
|
|
17327
17454
|
return selectedList.map(function (workOrderData) {
|
|
17328
17455
|
return goodsSourceFormat.workOrderDataToGoods(workOrderData, props.erp);
|
|
17329
17456
|
});
|
|
17457
|
+
},
|
|
17458
|
+
setDefaultSearchValue: function setDefaultSearchValue(value) {
|
|
17459
|
+
value && form.setFieldsValue(_objectSpread2({}, value));
|
|
17330
17460
|
}
|
|
17331
17461
|
};
|
|
17332
17462
|
});
|
|
@@ -17605,21 +17735,112 @@ var WorkorderList = function WorkorderList(props, ref) {
|
|
|
17605
17735
|
};
|
|
17606
17736
|
var WorkorderList$1 = /*#__PURE__*/forwardRef(WorkorderList);
|
|
17607
17737
|
|
|
17608
|
-
|
|
17609
|
-
|
|
17610
|
-
|
|
17611
|
-
|
|
17612
|
-
|
|
17613
|
-
|
|
17614
|
-
|
|
17615
|
-
|
|
17616
|
-
|
|
17738
|
+
var goodClassTransformValue = function goodClassTransformValue(value, config) {
|
|
17739
|
+
var label = '';
|
|
17740
|
+
var options = (config === null || config === void 0 ? void 0 : config.options) || [];
|
|
17741
|
+
var labelList = findLabelBySelectValue(value, options);
|
|
17742
|
+
var labelItem = labelList === null || labelList === void 0 ? void 0 : labelList.pop();
|
|
17743
|
+
label = labelItem === null || labelItem === void 0 ? void 0 : labelItem.label;
|
|
17744
|
+
return {
|
|
17745
|
+
type: 'anylike',
|
|
17746
|
+
keywords: label
|
|
17747
|
+
};
|
|
17748
|
+
};
|
|
17749
|
+
var goodTypeTransformValue = function goodTypeTransformValue(value) {
|
|
17750
|
+
return (value === null || value === void 0 ? void 0 : value.value) ? [value === null || value === void 0 ? void 0 : value.value] : '';
|
|
17751
|
+
};
|
|
17752
|
+
var relationComponentUniqueKeyMap = {
|
|
17753
|
+
//小白熊自定义组件
|
|
17754
|
+
PCE2Z5TXEVPL5D26I7KMBKMB: {
|
|
17755
|
+
//补发类型
|
|
17756
|
+
goodType: {
|
|
17757
|
+
relationComponentKey: '6hldjQ9aMz',
|
|
17758
|
+
reflectKey: 'C7M9rWJMjD_radio',
|
|
17759
|
+
transformValue: function transformValue(value) {
|
|
17760
|
+
return goodTypeTransformValue(value);
|
|
17761
|
+
}
|
|
17762
|
+
},
|
|
17763
|
+
// 产品分类
|
|
17764
|
+
goodClass: {
|
|
17765
|
+
relationComponentKey: '8gozpyUFtA',
|
|
17766
|
+
reflectKey: 'c66dt8s48A_input',
|
|
17767
|
+
transformValue: function transformValue(value, config) {
|
|
17768
|
+
return goodClassTransformValue(value, config);
|
|
17769
|
+
}
|
|
17770
|
+
}
|
|
17771
|
+
},
|
|
17772
|
+
// 测马奔腾
|
|
17773
|
+
SZF4ZGWZSNW6PYXMCIFEWBXT: {
|
|
17774
|
+
goodType: {
|
|
17775
|
+
relationComponentKey: 'abVTwFX34E',
|
|
17776
|
+
reflectKey: 'ipOHnYquYB_radio',
|
|
17777
|
+
transformValue: function transformValue(value) {
|
|
17778
|
+
return goodTypeTransformValue(value);
|
|
17779
|
+
}
|
|
17780
|
+
},
|
|
17781
|
+
goodClass: {
|
|
17782
|
+
relationComponentKey: 'U0es1pIDaE',
|
|
17783
|
+
reflectKey: 'K1puYheEaE_input',
|
|
17784
|
+
transformValue: function transformValue(value, config) {
|
|
17785
|
+
return goodClassTransformValue(value, config);
|
|
17786
|
+
}
|
|
17787
|
+
}
|
|
17788
|
+
}
|
|
17789
|
+
};
|
|
17790
|
+
// 该方法只用于小白熊定制,当管易商品/管易补发/管易退换货组件的数据来源于关联工单数据,且其补发类型自定义组件选了值,根据该值填充到商品库弹框中类型筛选项
|
|
17791
|
+
var useDefaultSearchValue = (function (props) {
|
|
17792
|
+
var form = props.form,
|
|
17793
|
+
_props$companyKey = props.companyKey,
|
|
17794
|
+
companyKey = _props$companyKey === void 0 ? '' : _props$companyKey,
|
|
17795
|
+
source = props.source,
|
|
17796
|
+
erp = props.erp,
|
|
17797
|
+
_props$templateDetail = props.templateDetail,
|
|
17798
|
+
templateDetail = _props$templateDetail === void 0 ? {} : _props$templateDetail;
|
|
17799
|
+
if (source !== 'workOrder' || erp !== 'gy') {
|
|
17800
|
+
return '';
|
|
17801
|
+
}
|
|
17802
|
+
var result = {};
|
|
17803
|
+
var relationComponentKeyMap = relationComponentUniqueKeyMap === null || relationComponentUniqueKeyMap === void 0 ? void 0 : relationComponentUniqueKeyMap[companyKey];
|
|
17804
|
+
Object.entries(relationComponentKeyMap).forEach(function (_ref) {
|
|
17805
|
+
var _templateDetail$compo;
|
|
17806
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
17807
|
+
key = _ref2[0],
|
|
17808
|
+
value = _ref2[1];
|
|
17809
|
+
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) {
|
|
17810
|
+
return item.uniqueKey === value.relationComponentKey;
|
|
17811
|
+
});
|
|
17812
|
+
if (!matchComponent) {
|
|
17813
|
+
return;
|
|
17814
|
+
}
|
|
17815
|
+
var relationComponentValue = form === null || form === void 0 ? void 0 : form.getFieldValue(value.relationComponentKey);
|
|
17816
|
+
if (relationComponentValue) {
|
|
17817
|
+
if ((value === null || value === void 0 ? void 0 : value.transformValue) && typeof (value === null || value === void 0 ? void 0 : value.transformValue) === 'function') {
|
|
17818
|
+
var _value$transformValue;
|
|
17819
|
+
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) || {});
|
|
17820
|
+
if (newValue) {
|
|
17821
|
+
result[value.reflectKey] = newValue;
|
|
17822
|
+
}
|
|
17823
|
+
} else {
|
|
17824
|
+
result[value.reflectKey] = relationComponentValue;
|
|
17825
|
+
}
|
|
17826
|
+
}
|
|
17827
|
+
});
|
|
17828
|
+
return result;
|
|
17829
|
+
});
|
|
17830
|
+
|
|
17617
17831
|
var GyGoodsModal$1 = function GyGoodsModal(props, ref) {
|
|
17618
|
-
var _props$
|
|
17832
|
+
var _props$goodsSource2;
|
|
17619
17833
|
var _useState = useState(),
|
|
17620
17834
|
_useState2 = _slicedToArray(_useState, 2),
|
|
17621
17835
|
seletedGooods = _useState2[0],
|
|
17622
17836
|
setSeletedGooods = _useState2[1];
|
|
17837
|
+
var onSubmit = props.onSubmit,
|
|
17838
|
+
width = props.width;
|
|
17839
|
+
var _useState3 = useState(false),
|
|
17840
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
17841
|
+
visible = _useState4[0],
|
|
17842
|
+
setVisible = _useState4[1];
|
|
17843
|
+
var goodsListRef = useRef(null);
|
|
17623
17844
|
useImperativeHandle(ref, function () {
|
|
17624
17845
|
return {
|
|
17625
17846
|
open: function open(shopCode, options) {
|
|
@@ -17628,19 +17849,28 @@ var GyGoodsModal$1 = function GyGoodsModal(props, ref) {
|
|
|
17628
17849
|
}
|
|
17629
17850
|
};
|
|
17630
17851
|
});
|
|
17631
|
-
|
|
17632
|
-
|
|
17633
|
-
|
|
17634
|
-
|
|
17635
|
-
|
|
17636
|
-
|
|
17637
|
-
|
|
17852
|
+
useEffect(function () {
|
|
17853
|
+
if (visible && goodsListRef.current) {
|
|
17854
|
+
var _props$goodsSource;
|
|
17855
|
+
var defaultSearchValue = useDefaultSearchValue({
|
|
17856
|
+
form: props === null || props === void 0 ? void 0 : props.form,
|
|
17857
|
+
companyKey: props === null || props === void 0 ? void 0 : props.companyKey,
|
|
17858
|
+
source: (_props$goodsSource = props.goodsSource) === null || _props$goodsSource === void 0 ? void 0 : _props$goodsSource.source,
|
|
17859
|
+
erp: 'gy',
|
|
17860
|
+
templateDetail: props === null || props === void 0 ? void 0 : props.templateDetail
|
|
17861
|
+
});
|
|
17862
|
+
if (defaultSearchValue) {
|
|
17863
|
+
var _goodsListRef$current, _goodsListRef$current2;
|
|
17864
|
+
(_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);
|
|
17865
|
+
}
|
|
17866
|
+
}
|
|
17867
|
+
}, [visible]);
|
|
17638
17868
|
var _onCancel = function onCancel() {
|
|
17639
17869
|
setVisible(false);
|
|
17640
17870
|
};
|
|
17641
17871
|
var onOk = function onOk() {
|
|
17642
|
-
var _goodsListRef$
|
|
17643
|
-
var selectedList = ((_goodsListRef$
|
|
17872
|
+
var _goodsListRef$current3;
|
|
17873
|
+
var selectedList = ((_goodsListRef$current3 = goodsListRef.current) === null || _goodsListRef$current3 === void 0 ? void 0 : _goodsListRef$current3.getSelectGoodList()) || [];
|
|
17644
17874
|
onSubmit(selectedList);
|
|
17645
17875
|
_onCancel();
|
|
17646
17876
|
};
|
|
@@ -17655,7 +17885,7 @@ var GyGoodsModal$1 = function GyGoodsModal(props, ref) {
|
|
|
17655
17885
|
},
|
|
17656
17886
|
onOk: onOk,
|
|
17657
17887
|
wrapClassName: "goodModal"
|
|
17658
|
-
}, ((_props$
|
|
17888
|
+
}, ((_props$goodsSource2 = props.goodsSource) === null || _props$goodsSource2 === void 0 ? void 0 : _props$goodsSource2.source) === 'workOrder' ? /*#__PURE__*/React.createElement(WorkorderList$1, {
|
|
17659
17889
|
erp: "gy",
|
|
17660
17890
|
goodsSource: props.goodsSource,
|
|
17661
17891
|
seletedGooods: seletedGooods,
|
|
@@ -17667,45 +17897,286 @@ var GyGoodsModal$1 = function GyGoodsModal(props, ref) {
|
|
|
17667
17897
|
};
|
|
17668
17898
|
var GyGoodsModal$2 = /*#__PURE__*/forwardRef(GyGoodsModal$1);
|
|
17669
17899
|
|
|
17670
|
-
var
|
|
17671
|
-
var
|
|
17672
|
-
|
|
17673
|
-
|
|
17674
|
-
|
|
17675
|
-
|
|
17676
|
-
|
|
17677
|
-
|
|
17678
|
-
|
|
17679
|
-
|
|
17680
|
-
|
|
17681
|
-
|
|
17682
|
-
|
|
17683
|
-
|
|
17684
|
-
|
|
17685
|
-
|
|
17686
|
-
|
|
17687
|
-
|
|
17688
|
-
}
|
|
17689
|
-
|
|
17690
|
-
|
|
17691
|
-
|
|
17692
|
-
}
|
|
17693
|
-
|
|
17694
|
-
|
|
17695
|
-
|
|
17696
|
-
|
|
17697
|
-
|
|
17698
|
-
|
|
17699
|
-
|
|
17700
|
-
|
|
17900
|
+
var getTableData$5 = function getTableData(_ref, formData) {
|
|
17901
|
+
var current = _ref.current,
|
|
17902
|
+
pageSize = _ref.pageSize;
|
|
17903
|
+
return extendRequest('/qy/gdfw/product/product/page', {
|
|
17904
|
+
method: 'post',
|
|
17905
|
+
data: _objectSpread2({
|
|
17906
|
+
pageSize: pageSize,
|
|
17907
|
+
pageNo: current,
|
|
17908
|
+
platform: 'JY_ERP'
|
|
17909
|
+
}, formData)
|
|
17910
|
+
}).then(function (res) {
|
|
17911
|
+
var _res$data = res.data,
|
|
17912
|
+
_res$data$productSkuL = _res$data.productSkuList,
|
|
17913
|
+
productSkuList = _res$data$productSkuL === void 0 ? [] : _res$data$productSkuL,
|
|
17914
|
+
_res$data$total = _res$data.total,
|
|
17915
|
+
total = _res$data$total === void 0 ? 0 : _res$data$total;
|
|
17916
|
+
var newProducts = productSkuList.map(function (item, index) {
|
|
17917
|
+
return _objectSpread2({}, item);
|
|
17918
|
+
});
|
|
17919
|
+
return {
|
|
17920
|
+
total: total,
|
|
17921
|
+
list: newProducts
|
|
17922
|
+
};
|
|
17923
|
+
});
|
|
17924
|
+
};
|
|
17925
|
+
var searchFormData$4 = [{
|
|
17926
|
+
label: '规格名称',
|
|
17927
|
+
name: 'skuName',
|
|
17928
|
+
dataIndex: 'specName'
|
|
17929
|
+
}, {
|
|
17930
|
+
label: '规格编码',
|
|
17931
|
+
name: 'skuCode',
|
|
17932
|
+
dataIndex: 'specNo'
|
|
17933
|
+
}, {
|
|
17934
|
+
label: '商品名称',
|
|
17935
|
+
name: 'goodName'
|
|
17936
|
+
}, {
|
|
17937
|
+
label: '商品编码',
|
|
17938
|
+
name: 'goodNo'
|
|
17939
|
+
}];
|
|
17940
|
+
var GoodList$5 = function GoodList(props, ref) {
|
|
17941
|
+
var _useState = useState([]),
|
|
17942
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
17943
|
+
selectList = _useState2[0],
|
|
17944
|
+
setSelect = _useState2[1];
|
|
17945
|
+
var _useState3 = useState([]),
|
|
17946
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
17947
|
+
selectIds = _useState4[0],
|
|
17948
|
+
setSelectIds = _useState4[1];
|
|
17949
|
+
var _useGetColumns = useGetColumns('jy'),
|
|
17950
|
+
_useGetColumns2 = _slicedToArray(_useGetColumns, 3),
|
|
17951
|
+
columns = _useGetColumns2[0],
|
|
17952
|
+
showColumnsDataIndexList = _useGetColumns2[1],
|
|
17953
|
+
loading = _useGetColumns2[2];
|
|
17954
|
+
useImperativeHandle(ref, function () {
|
|
17955
|
+
return {
|
|
17956
|
+
getSelectGoodList: function getSelectGoodList() {
|
|
17957
|
+
return selectList;
|
|
17701
17958
|
}
|
|
17702
|
-
}
|
|
17703
|
-
|
|
17704
|
-
|
|
17705
|
-
|
|
17706
|
-
|
|
17707
|
-
|
|
17708
|
-
|
|
17959
|
+
};
|
|
17960
|
+
});
|
|
17961
|
+
var _Form$useForm = Form.useForm(),
|
|
17962
|
+
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
17963
|
+
form = _Form$useForm2[0];
|
|
17964
|
+
var _useAntdTable = useAntdTable(getTableData$5, {
|
|
17965
|
+
defaultPageSize: 10,
|
|
17966
|
+
form: form
|
|
17967
|
+
}),
|
|
17968
|
+
tableProps = _useAntdTable.tableProps,
|
|
17969
|
+
search = _useAntdTable.search,
|
|
17970
|
+
params = _useAntdTable.params;
|
|
17971
|
+
var submit = search.submit,
|
|
17972
|
+
reset = search.reset;
|
|
17973
|
+
var rowSelection = {
|
|
17974
|
+
selectedRowKeys: selectIds,
|
|
17975
|
+
fixed: true,
|
|
17976
|
+
onSelect: function onSelect(record, selected) {
|
|
17977
|
+
if (selected) {
|
|
17978
|
+
setSelectIds([].concat(_toConsumableArray(selectIds), [record.id]));
|
|
17979
|
+
setSelect([].concat(_toConsumableArray(selectList), [record]));
|
|
17980
|
+
} else {
|
|
17981
|
+
setSelectIds(selectIds.filter(function (t) {
|
|
17982
|
+
return t !== record.id;
|
|
17983
|
+
}));
|
|
17984
|
+
setSelect(selectList.filter(function (t) {
|
|
17985
|
+
return t.id !== record.id;
|
|
17986
|
+
}));
|
|
17987
|
+
}
|
|
17988
|
+
},
|
|
17989
|
+
onSelectAll: function onSelectAll(selected, selectedRows, changeRows) {
|
|
17990
|
+
if (selected) {
|
|
17991
|
+
setSelectIds([].concat(_toConsumableArray(selectIds), _toConsumableArray(changeRows.map(function (t) {
|
|
17992
|
+
return t.id;
|
|
17993
|
+
}))));
|
|
17994
|
+
setSelect([].concat(_toConsumableArray(selectList), _toConsumableArray(changeRows)));
|
|
17995
|
+
} else {
|
|
17996
|
+
setSelectIds(difference(selectIds, changeRows.map(function (t) {
|
|
17997
|
+
return t.id;
|
|
17998
|
+
})));
|
|
17999
|
+
var list = differenceWith(selectList, changeRows, function (arrVal, othVal) {
|
|
18000
|
+
return arrVal.id !== othVal.id;
|
|
18001
|
+
});
|
|
18002
|
+
setSelect(list);
|
|
18003
|
+
}
|
|
18004
|
+
},
|
|
18005
|
+
getCheckboxProps: function getCheckboxProps(record) {
|
|
18006
|
+
var options = {
|
|
18007
|
+
disabled: (props.selectedRows || []).map(function (row) {
|
|
18008
|
+
return row.id || row.specId;
|
|
18009
|
+
}).includes(record.id || record.specId),
|
|
18010
|
+
name: record.id
|
|
18011
|
+
};
|
|
18012
|
+
return options;
|
|
18013
|
+
}
|
|
18014
|
+
};
|
|
18015
|
+
var showTable = function showTable() {
|
|
18016
|
+
var handleDelete = function handleDelete(record) {
|
|
18017
|
+
setSelectIds(selectIds.filter(function (t) {
|
|
18018
|
+
return t !== record.id;
|
|
18019
|
+
}));
|
|
18020
|
+
setSelect(selectList.filter(function (t) {
|
|
18021
|
+
return t.id !== record.id;
|
|
18022
|
+
}));
|
|
18023
|
+
};
|
|
18024
|
+
var showColumns = [{
|
|
18025
|
+
dataIndex: '',
|
|
18026
|
+
title: "\u64CD\u4F5C",
|
|
18027
|
+
ellipsis: true,
|
|
18028
|
+
width: 100,
|
|
18029
|
+
render: function render(val, record) {
|
|
18030
|
+
return /*#__PURE__*/React.createElement(Button, {
|
|
18031
|
+
type: "link",
|
|
18032
|
+
onClick: function onClick() {
|
|
18033
|
+
return handleDelete(record);
|
|
18034
|
+
}
|
|
18035
|
+
}, "\u5220\u9664");
|
|
18036
|
+
}
|
|
18037
|
+
}].concat(takeRight(columns, columns.length - 1));
|
|
18038
|
+
return selectList.length ? /*#__PURE__*/React.createElement("div", {
|
|
18039
|
+
style: {
|
|
18040
|
+
width: '100%',
|
|
18041
|
+
maxWidth: '387px'
|
|
18042
|
+
}
|
|
18043
|
+
}, /*#__PURE__*/React.createElement(Table, {
|
|
18044
|
+
columns: showColumns,
|
|
18045
|
+
rowKey: 'id',
|
|
18046
|
+
dataSource: selectList,
|
|
18047
|
+
scroll: {
|
|
18048
|
+
x: '100%',
|
|
18049
|
+
y: 250
|
|
18050
|
+
},
|
|
18051
|
+
pagination: {
|
|
18052
|
+
size: 'small',
|
|
18053
|
+
total: selectIds.length,
|
|
18054
|
+
pageSize: 10,
|
|
18055
|
+
showSizeChanger: false
|
|
18056
|
+
}
|
|
18057
|
+
})) : null;
|
|
18058
|
+
};
|
|
18059
|
+
return /*#__PURE__*/React.createElement(Skeleton, {
|
|
18060
|
+
active: true,
|
|
18061
|
+
loading: loading
|
|
18062
|
+
}, /*#__PURE__*/React.createElement(SearchForm, {
|
|
18063
|
+
searchFormData: searchFormData$4,
|
|
18064
|
+
form: form,
|
|
18065
|
+
showColumnsDataIndexList: showColumnsDataIndexList,
|
|
18066
|
+
submit: submit,
|
|
18067
|
+
reset: reset
|
|
18068
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
18069
|
+
style: {
|
|
18070
|
+
marginTop: '4px'
|
|
18071
|
+
}
|
|
18072
|
+
}, /*#__PURE__*/React.createElement(Table, _objectSpread2({
|
|
18073
|
+
rowSelection: rowSelection,
|
|
18074
|
+
rowKey: "id",
|
|
18075
|
+
columns: columns,
|
|
18076
|
+
scroll: {
|
|
18077
|
+
x: '100%',
|
|
18078
|
+
y: 250
|
|
18079
|
+
}
|
|
18080
|
+
}, tableProps))), /*#__PURE__*/React.createElement(Popover, {
|
|
18081
|
+
getPopupContainer: function getPopupContainer(triggerNode) {
|
|
18082
|
+
return triggerNode.parentElement;
|
|
18083
|
+
},
|
|
18084
|
+
content: showTable(),
|
|
18085
|
+
title: "\u5DF2\u9009\u62E9".concat(selectList.length, "\u4E2A\u5546\u54C1")
|
|
18086
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
18087
|
+
danger: true,
|
|
18088
|
+
type: "text"
|
|
18089
|
+
}, "\u5DF2\u9009".concat(selectList.length > 99 ? '99+' : selectList.length, "\u4E2A\u5546\u54C1"), /*#__PURE__*/React.createElement(CaretUpOutlined, null))));
|
|
18090
|
+
};
|
|
18091
|
+
var JyGoodsList = /*#__PURE__*/forwardRef(GoodList$5);
|
|
18092
|
+
|
|
18093
|
+
var JyGoodsModal = function JyGoodsModal(props, ref) {
|
|
18094
|
+
useImperativeHandle(ref, function () {
|
|
18095
|
+
return {
|
|
18096
|
+
open: function open(shopCode) {
|
|
18097
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
18098
|
+
setVisible(true);
|
|
18099
|
+
setSelectedRows(options.value || []);
|
|
18100
|
+
}
|
|
18101
|
+
};
|
|
18102
|
+
});
|
|
18103
|
+
var onSubmit = props.onSubmit,
|
|
18104
|
+
width = props.width;
|
|
18105
|
+
var _useState = useState(false),
|
|
18106
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
18107
|
+
visible = _useState2[0],
|
|
18108
|
+
setVisible = _useState2[1];
|
|
18109
|
+
var _useState3 = useState([]),
|
|
18110
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
18111
|
+
selectedRows = _useState4[0],
|
|
18112
|
+
setSelectedRows = _useState4[1];
|
|
18113
|
+
var jyGoodsListRef = useRef(null);
|
|
18114
|
+
var _onCancel = function onCancel() {
|
|
18115
|
+
setVisible(false);
|
|
18116
|
+
};
|
|
18117
|
+
var onOk = function onOk() {
|
|
18118
|
+
var _jyGoodsListRef$curre;
|
|
18119
|
+
var selectedList = ((_jyGoodsListRef$curre = jyGoodsListRef.current) === null || _jyGoodsListRef$curre === void 0 ? void 0 : _jyGoodsListRef$curre.getSelectGoodList()) || [];
|
|
18120
|
+
onSubmit(selectedList);
|
|
18121
|
+
_onCancel();
|
|
18122
|
+
};
|
|
18123
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, visible && /*#__PURE__*/React.createElement(Modal, {
|
|
18124
|
+
title: '选择商品',
|
|
18125
|
+
okText: '确认',
|
|
18126
|
+
cancelText: '取消',
|
|
18127
|
+
visible: visible,
|
|
18128
|
+
width: width || 850,
|
|
18129
|
+
onCancel: function onCancel() {
|
|
18130
|
+
_onCancel();
|
|
18131
|
+
},
|
|
18132
|
+
onOk: onOk,
|
|
18133
|
+
wrapClassName: "goodModal"
|
|
18134
|
+
}, /*#__PURE__*/React.createElement(JyGoodsList, {
|
|
18135
|
+
ref: jyGoodsListRef,
|
|
18136
|
+
selectedRows: selectedRows
|
|
18137
|
+
})));
|
|
18138
|
+
};
|
|
18139
|
+
var JyGoodsModal$1 = /*#__PURE__*/forwardRef(JyGoodsModal);
|
|
18140
|
+
|
|
18141
|
+
var getColumns = function getColumns(_ref) {
|
|
18142
|
+
var _ref$text = _ref.text,
|
|
18143
|
+
disabled = _ref.disabled,
|
|
18144
|
+
updateHandle = _ref.updateHandle;
|
|
18145
|
+
return {
|
|
18146
|
+
//百胜E3补发商品
|
|
18147
|
+
BS_E3_REISSUE_GOODS: [{
|
|
18148
|
+
dataIndex: 'sku',
|
|
18149
|
+
title: "SKU",
|
|
18150
|
+
width: 150
|
|
18151
|
+
}, {
|
|
18152
|
+
dataIndex: 'skuId',
|
|
18153
|
+
title: "SKU ID",
|
|
18154
|
+
width: 150
|
|
18155
|
+
}, {
|
|
18156
|
+
dataIndex: 'goodsName',
|
|
18157
|
+
title: "\u5546\u54C1\u540D\u79F0",
|
|
18158
|
+
width: 150
|
|
18159
|
+
}, {
|
|
18160
|
+
dataIndex: 'goodsShortName',
|
|
18161
|
+
title: "\u5546\u54C1\u7B80\u79F0",
|
|
18162
|
+
width: 150
|
|
18163
|
+
}, {
|
|
18164
|
+
dataIndex: 'picPath',
|
|
18165
|
+
title: "\u5546\u54C1\u56FE\u7247",
|
|
18166
|
+
width: 150,
|
|
18167
|
+
render: function render(val) {
|
|
18168
|
+
return /*#__PURE__*/React.createElement(Image, {
|
|
18169
|
+
width: 60,
|
|
18170
|
+
src: val
|
|
18171
|
+
});
|
|
18172
|
+
}
|
|
18173
|
+
}, {
|
|
18174
|
+
dataIndex: 'goodsSn',
|
|
18175
|
+
title: "\u8D27\u53F7",
|
|
18176
|
+
width: 150
|
|
18177
|
+
}, {
|
|
18178
|
+
dataIndex: 'goodsId',
|
|
18179
|
+
title: "\u8D27\u53F7ID",
|
|
17709
18180
|
width: 150
|
|
17710
18181
|
}, {
|
|
17711
18182
|
dataIndex: 'colorName',
|
|
@@ -18597,7 +19068,7 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
18597
19068
|
};
|
|
18598
19069
|
};
|
|
18599
19070
|
|
|
18600
|
-
var getYesOrNo$
|
|
19071
|
+
var getYesOrNo$2 = function getYesOrNo(val) {
|
|
18601
19072
|
if (isNull(val)) return null;
|
|
18602
19073
|
return val ? '是' : '否';
|
|
18603
19074
|
};
|
|
@@ -18735,7 +19206,7 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
18735
19206
|
label: '否',
|
|
18736
19207
|
value: false
|
|
18737
19208
|
}]
|
|
18738
|
-
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$
|
|
19209
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$2(val));
|
|
18739
19210
|
},
|
|
18740
19211
|
width: 100
|
|
18741
19212
|
}]
|
|
@@ -18747,7 +19218,7 @@ var isNumberOrNumberString = function isNumberOrNumberString(value) {
|
|
|
18747
19218
|
if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
|
|
18748
19219
|
return false;
|
|
18749
19220
|
};
|
|
18750
|
-
var getYesOrNo$
|
|
19221
|
+
var getYesOrNo$3 = function getYesOrNo(val) {
|
|
18751
19222
|
if (isNull(val)) return null;
|
|
18752
19223
|
return val ? '是' : '否';
|
|
18753
19224
|
};
|
|
@@ -18857,7 +19328,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
18857
19328
|
title: "\u662F\u5426\u53D6\u6D88",
|
|
18858
19329
|
width: 150,
|
|
18859
19330
|
render: function render(val) {
|
|
18860
|
-
return /*#__PURE__*/React.createElement("span", null, getYesOrNo$
|
|
19331
|
+
return /*#__PURE__*/React.createElement("span", null, getYesOrNo$3(val));
|
|
18861
19332
|
}
|
|
18862
19333
|
}, {
|
|
18863
19334
|
dataIndex: 'isGift',
|
|
@@ -18876,7 +19347,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
18876
19347
|
label: '否',
|
|
18877
19348
|
value: 0
|
|
18878
19349
|
}]
|
|
18879
|
-
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$
|
|
19350
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$3(val));
|
|
18880
19351
|
}
|
|
18881
19352
|
}, {
|
|
18882
19353
|
dataIndex: 'skuNote',
|
|
@@ -18996,7 +19467,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
18996
19467
|
label: '否',
|
|
18997
19468
|
value: 0
|
|
18998
19469
|
}]
|
|
18999
|
-
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$
|
|
19470
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$3(val));
|
|
19000
19471
|
}
|
|
19001
19472
|
}].map(function (item) {
|
|
19002
19473
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
@@ -19120,7 +19591,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
19120
19591
|
label: '否',
|
|
19121
19592
|
value: 0
|
|
19122
19593
|
}]
|
|
19123
|
-
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$
|
|
19594
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$3(val));
|
|
19124
19595
|
}
|
|
19125
19596
|
}].map(function (item) {
|
|
19126
19597
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
@@ -19767,59 +20238,487 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
19767
20238
|
dataIndex: 'type',
|
|
19768
20239
|
title: "\u5546\u54C1\u7C7B\u578B",
|
|
19769
20240
|
width: 150
|
|
19770
|
-
}].map(function (item) {
|
|
19771
|
-
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
19772
|
-
align: 'center',
|
|
19773
|
-
ellipsis: true
|
|
19774
|
-
});
|
|
19775
|
-
}),
|
|
19776
|
-
KM_REISSUE_GOODS: [{
|
|
19777
|
-
dataIndex: 'skuPropertiesName',
|
|
19778
|
-
title: "\u89C4\u683C\u540D\u79F0",
|
|
19779
|
-
width: 250
|
|
20241
|
+
}].map(function (item) {
|
|
20242
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
20243
|
+
align: 'center',
|
|
20244
|
+
ellipsis: true
|
|
20245
|
+
});
|
|
20246
|
+
}),
|
|
20247
|
+
KM_REISSUE_GOODS: [{
|
|
20248
|
+
dataIndex: 'skuPropertiesName',
|
|
20249
|
+
title: "\u89C4\u683C\u540D\u79F0",
|
|
20250
|
+
width: 250
|
|
20251
|
+
}, {
|
|
20252
|
+
dataIndex: 'sysTitle',
|
|
20253
|
+
title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
|
|
20254
|
+
width: 150
|
|
20255
|
+
}, {
|
|
20256
|
+
dataIndex: 'shortTitle',
|
|
20257
|
+
title: "\u5546\u54C1\u7B80\u79F0",
|
|
20258
|
+
width: 150
|
|
20259
|
+
}, {
|
|
20260
|
+
dataIndex: 'title',
|
|
20261
|
+
title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
|
|
20262
|
+
width: 150
|
|
20263
|
+
}, {
|
|
20264
|
+
dataIndex: 'sysOuterId',
|
|
20265
|
+
title: "\u7CFB\u7EDF\u5546\u5BB6\u7F16\u7801",
|
|
20266
|
+
width: 150
|
|
20267
|
+
}, {
|
|
20268
|
+
dataIndex: 'itemSysId',
|
|
20269
|
+
title: "\u7CFB\u7EDF\u5546\u54C1ID",
|
|
20270
|
+
width: 150
|
|
20271
|
+
}, {
|
|
20272
|
+
dataIndex: 'skuSysId',
|
|
20273
|
+
title: "\u7CFB\u7EDF\u89C4\u683CID",
|
|
20274
|
+
width: 150
|
|
20275
|
+
}, {
|
|
20276
|
+
dataIndex: 'skuId',
|
|
20277
|
+
title: "\u5E73\u53F0\u89C4\u683C\u7F16\u53F7",
|
|
20278
|
+
width: 170
|
|
20279
|
+
}, {
|
|
20280
|
+
dataIndex: 'realNum',
|
|
20281
|
+
title: "\u5B9E\u9645\u8865\u53D1\u6570\u91CF",
|
|
20282
|
+
width: 100,
|
|
20283
|
+
validator: function validator(_rule, value) {
|
|
20284
|
+
var title = '';
|
|
20285
|
+
if (((value === null || value === void 0 ? void 0 : value.kmReissueGoods) || []).some(function (goods) {
|
|
20286
|
+
var realNum = toNum$2(goods === null || goods === void 0 ? void 0 : goods.realNum);
|
|
20287
|
+
var res = typeof realNum === 'number' ? realNum < 1 : true;
|
|
20288
|
+
if (res) {
|
|
20289
|
+
title = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
|
|
20290
|
+
}
|
|
20291
|
+
return res;
|
|
20292
|
+
})) {
|
|
20293
|
+
return Promise.reject("".concat(title, "\u5B9E\u9645\u8865\u53D1\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
20294
|
+
}
|
|
20295
|
+
},
|
|
20296
|
+
render: function render(val, record, index) {
|
|
20297
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
20298
|
+
style: {
|
|
20299
|
+
width: 70
|
|
20300
|
+
},
|
|
20301
|
+
value: val,
|
|
20302
|
+
min: 1,
|
|
20303
|
+
precision: 0,
|
|
20304
|
+
onChange: function onChange(num) {
|
|
20305
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'realNum');
|
|
20306
|
+
}
|
|
20307
|
+
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
20308
|
+
}
|
|
20309
|
+
}, {
|
|
20310
|
+
dataIndex: 'desiredNum',
|
|
20311
|
+
title: "\u5E94\u8865\u53D1\u6570\u91CF",
|
|
20312
|
+
width: 100,
|
|
20313
|
+
render: function render(val, record, index) {
|
|
20314
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
20315
|
+
style: {
|
|
20316
|
+
width: 70
|
|
20317
|
+
},
|
|
20318
|
+
value: val,
|
|
20319
|
+
min: 1,
|
|
20320
|
+
precision: 0,
|
|
20321
|
+
onChange: function onChange(num) {
|
|
20322
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'desiredNum');
|
|
20323
|
+
}
|
|
20324
|
+
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
20325
|
+
}
|
|
20326
|
+
}, {
|
|
20327
|
+
dataIndex: 'price',
|
|
20328
|
+
title: "\u5546\u54C1\u9500\u552E\u4EF7",
|
|
20329
|
+
width: 150,
|
|
20330
|
+
render: function render(val) {
|
|
20331
|
+
return val || val === 0 ? Number(val).toFixed(2) : '';
|
|
20332
|
+
}
|
|
20333
|
+
}, {
|
|
20334
|
+
dataIndex: 'payment',
|
|
20335
|
+
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
20336
|
+
width: 150,
|
|
20337
|
+
render: function render(val, record, index) {
|
|
20338
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
20339
|
+
style: {
|
|
20340
|
+
width: 130
|
|
20341
|
+
},
|
|
20342
|
+
value: val,
|
|
20343
|
+
min: 0,
|
|
20344
|
+
precision: 2,
|
|
20345
|
+
onChange: function onChange(num) {
|
|
20346
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'payment');
|
|
20347
|
+
}
|
|
20348
|
+
}) : /*#__PURE__*/React.createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
|
|
20349
|
+
}
|
|
20350
|
+
}, {
|
|
20351
|
+
dataIndex: 'type',
|
|
20352
|
+
title: "\u5546\u54C1\u7C7B\u578B",
|
|
20353
|
+
width: 150
|
|
20354
|
+
}, {
|
|
20355
|
+
dataIndex: 'sysPicPath',
|
|
20356
|
+
title: "\u5546\u54C1\u56FE\u7247",
|
|
20357
|
+
width: 100,
|
|
20358
|
+
render: function render(val) {
|
|
20359
|
+
return /*#__PURE__*/React.createElement(Image, {
|
|
20360
|
+
width: 60,
|
|
20361
|
+
src: val
|
|
20362
|
+
});
|
|
20363
|
+
}
|
|
20364
|
+
}].map(function (item) {
|
|
20365
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
20366
|
+
align: 'center',
|
|
20367
|
+
ellipsis: true
|
|
20368
|
+
});
|
|
20369
|
+
})
|
|
20370
|
+
};
|
|
20371
|
+
};
|
|
20372
|
+
|
|
20373
|
+
var isNumberOrNumberString$1 = function isNumberOrNumberString(value) {
|
|
20374
|
+
if (typeof value === 'number') return true;
|
|
20375
|
+
if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
|
|
20376
|
+
return false;
|
|
20377
|
+
};
|
|
20378
|
+
function toNum$3(value) {
|
|
20379
|
+
if (typeof value === 'string') {
|
|
20380
|
+
return value ? +value : void 0;
|
|
20381
|
+
}
|
|
20382
|
+
if (typeof value === 'number') {
|
|
20383
|
+
return value;
|
|
20384
|
+
}
|
|
20385
|
+
return void 0;
|
|
20386
|
+
}
|
|
20387
|
+
var getColumns$7 = function getColumns(_ref) {
|
|
20388
|
+
var _ref$text = _ref.text,
|
|
20389
|
+
disabled = _ref.disabled,
|
|
20390
|
+
updateHandle = _ref.updateHandle,
|
|
20391
|
+
updateDataHandle = _ref.updateDataHandle;
|
|
20392
|
+
return {
|
|
20393
|
+
//巨益商品信息
|
|
20394
|
+
JY_GOODS: [{
|
|
20395
|
+
dataIndex: 'productName',
|
|
20396
|
+
title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
|
|
20397
|
+
align: 'center',
|
|
20398
|
+
ellipsis: true,
|
|
20399
|
+
width: 150
|
|
20400
|
+
}, {
|
|
20401
|
+
dataIndex: 'productCode',
|
|
20402
|
+
title: "\u7CFB\u7EDF\u5546\u54C1\u7F16\u7801",
|
|
20403
|
+
align: 'center',
|
|
20404
|
+
ellipsis: true,
|
|
20405
|
+
width: 150
|
|
20406
|
+
}, {
|
|
20407
|
+
dataIndex: 'productId',
|
|
20408
|
+
title: "\u7CFB\u7EDF\u5546\u54C1ID",
|
|
20409
|
+
align: 'center',
|
|
20410
|
+
ellipsis: true,
|
|
20411
|
+
width: 150
|
|
20412
|
+
}, {
|
|
20413
|
+
dataIndex: 'skuName',
|
|
20414
|
+
title: "\u7CFB\u7EDF\u89C4\u683C\u540D\u79F0",
|
|
20415
|
+
align: 'center',
|
|
20416
|
+
ellipsis: true,
|
|
20417
|
+
width: 150
|
|
20418
|
+
}, {
|
|
20419
|
+
dataIndex: 'skuCode',
|
|
20420
|
+
title: "\u7CFB\u7EDF\u89C4\u683C\u7F16\u7801",
|
|
20421
|
+
align: 'center',
|
|
20422
|
+
ellipsis: true,
|
|
20423
|
+
width: 150
|
|
20424
|
+
}, {
|
|
20425
|
+
dataIndex: 'specId',
|
|
20426
|
+
title: "\u89C4\u683CID",
|
|
20427
|
+
align: 'center',
|
|
20428
|
+
ellipsis: true,
|
|
20429
|
+
width: 150
|
|
20430
|
+
},
|
|
20431
|
+
// {
|
|
20432
|
+
// dataIndex: 'goodsName',
|
|
20433
|
+
// title: `货品名称`,
|
|
20434
|
+
// width: 250,
|
|
20435
|
+
// },
|
|
20436
|
+
// {
|
|
20437
|
+
// dataIndex: 'goodsCode',
|
|
20438
|
+
// title: `货品编号`,
|
|
20439
|
+
// width: 200,
|
|
20440
|
+
// },
|
|
20441
|
+
// {
|
|
20442
|
+
// dataIndex: 'goodsId',
|
|
20443
|
+
// title: `货品ID`,
|
|
20444
|
+
// width: 150,
|
|
20445
|
+
// },
|
|
20446
|
+
{
|
|
20447
|
+
dataIndex: 'goodsClass',
|
|
20448
|
+
title: "\u8D27\u54C1\u7C7B\u522B",
|
|
20449
|
+
width: 150
|
|
20450
|
+
}, {
|
|
20451
|
+
dataIndex: 'code',
|
|
20452
|
+
title: "\u6761\u7801",
|
|
20453
|
+
width: 150
|
|
20454
|
+
},
|
|
20455
|
+
// {
|
|
20456
|
+
// dataIndex: 'specName',
|
|
20457
|
+
// title: `规格名称`,
|
|
20458
|
+
// align: 'center',
|
|
20459
|
+
// ellipsis: true,
|
|
20460
|
+
// width: 200,
|
|
20461
|
+
// },
|
|
20462
|
+
// {
|
|
20463
|
+
// dataIndex: 'specCode',
|
|
20464
|
+
// title: `规格编号`,
|
|
20465
|
+
// align: 'center',
|
|
20466
|
+
// ellipsis: true,
|
|
20467
|
+
// width: 150,
|
|
20468
|
+
// },
|
|
20469
|
+
{
|
|
20470
|
+
dataIndex: 'mallProductName',
|
|
20471
|
+
title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
|
|
20472
|
+
align: 'center',
|
|
20473
|
+
ellipsis: true,
|
|
20474
|
+
width: 250
|
|
20475
|
+
}, {
|
|
20476
|
+
dataIndex: 'mallProductOutCode',
|
|
20477
|
+
title: "\u5E73\u53F0\u5546\u54C1\u7F16\u7801",
|
|
20478
|
+
align: 'center',
|
|
20479
|
+
ellipsis: true,
|
|
20480
|
+
width: 150
|
|
20481
|
+
}, {
|
|
20482
|
+
dataIndex: 'mallProductId',
|
|
20483
|
+
title: "\u5E73\u53F0\u5546\u54C1ID",
|
|
20484
|
+
align: 'center',
|
|
20485
|
+
ellipsis: true,
|
|
20486
|
+
width: 250
|
|
20487
|
+
}, {
|
|
20488
|
+
dataIndex: 'mallSkuName',
|
|
20489
|
+
title: "\u5E73\u53F0\u89C4\u683C\u540D\u79F0",
|
|
20490
|
+
align: 'center',
|
|
20491
|
+
ellipsis: true,
|
|
20492
|
+
width: 250
|
|
20493
|
+
}, {
|
|
20494
|
+
dataIndex: 'mallSkuId',
|
|
20495
|
+
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
20496
|
+
align: 'center',
|
|
20497
|
+
ellipsis: true,
|
|
20498
|
+
width: 250
|
|
20499
|
+
}, {
|
|
20500
|
+
dataIndex: 'sellCount',
|
|
20501
|
+
title: "\u6570\u91CF",
|
|
20502
|
+
width: 100,
|
|
20503
|
+
validator: function validator(_rule, value) {
|
|
20504
|
+
var productName = '';
|
|
20505
|
+
if (((value === null || value === void 0 ? void 0 : value.jyGoods) || []).some(function (goods) {
|
|
20506
|
+
var qty = toNum$3(goods === null || goods === void 0 ? void 0 : goods.sellCount);
|
|
20507
|
+
var res = typeof qty === 'number' ? qty < 1 : true;
|
|
20508
|
+
if (res) {
|
|
20509
|
+
productName = (goods === null || goods === void 0 ? void 0 : goods.productName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.productName, "]") : '';
|
|
20510
|
+
}
|
|
20511
|
+
return res;
|
|
20512
|
+
})) {
|
|
20513
|
+
return Promise.reject("".concat(productName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
20514
|
+
}
|
|
20515
|
+
},
|
|
20516
|
+
render: function render(val, record, index) {
|
|
20517
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
20518
|
+
style: {
|
|
20519
|
+
width: 70
|
|
20520
|
+
},
|
|
20521
|
+
value: val,
|
|
20522
|
+
min: 1,
|
|
20523
|
+
precision: 0,
|
|
20524
|
+
onChange: function onChange(num) {
|
|
20525
|
+
updateDataHandle({
|
|
20526
|
+
sellCount: num,
|
|
20527
|
+
sellTotal: num && isNumberOrNumberString$1(record.sellPrice) ? num * record.sellPrice : null
|
|
20528
|
+
}, index);
|
|
20529
|
+
}
|
|
20530
|
+
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
20531
|
+
}
|
|
20532
|
+
}, {
|
|
20533
|
+
dataIndex: 'sellPrice',
|
|
20534
|
+
title: "\u5355\u4EF7",
|
|
20535
|
+
width: 150,
|
|
20536
|
+
render: function render(val, record, index) {
|
|
20537
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
20538
|
+
style: {
|
|
20539
|
+
width: 130
|
|
20540
|
+
},
|
|
20541
|
+
value: val,
|
|
20542
|
+
min: 0,
|
|
20543
|
+
precision: 2,
|
|
20544
|
+
onChange: function onChange(num) {
|
|
20545
|
+
updateDataHandle({
|
|
20546
|
+
sellPrice: num,
|
|
20547
|
+
sellTotal: num && isNumberOrNumberString$1(record.sellCount) ? num * record.sellCount : null
|
|
20548
|
+
}, index);
|
|
20549
|
+
}
|
|
20550
|
+
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
20551
|
+
}
|
|
20552
|
+
}, {
|
|
20553
|
+
dataIndex: 'mallSellingPrice',
|
|
20554
|
+
title: "\u5E73\u53F0\u5546\u54C1\u4EF7\u683C",
|
|
20555
|
+
width: 150
|
|
20556
|
+
}, {
|
|
20557
|
+
dataIndex: 'sellTotal',
|
|
20558
|
+
title: "\u91D1\u989D",
|
|
20559
|
+
width: 150
|
|
20560
|
+
}, {
|
|
20561
|
+
dataIndex: 'settlementPrice',
|
|
20562
|
+
title: "\u7ED3\u7B97\u4EF7",
|
|
20563
|
+
width: 150
|
|
20564
|
+
}, {
|
|
20565
|
+
dataIndex: 'divideOrderFee',
|
|
20566
|
+
title: "\u5206\u644A\u5B9E\u4ED8\u91D1\u989D",
|
|
20567
|
+
width: 150
|
|
20568
|
+
}, {
|
|
20569
|
+
dataIndex: 'bfit',
|
|
20570
|
+
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
20571
|
+
width: 150,
|
|
20572
|
+
render: function render(val, record, index) {
|
|
20573
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
20574
|
+
dropdownStyle: {
|
|
20575
|
+
zIndex: 2000
|
|
20576
|
+
},
|
|
20577
|
+
getPopupContainer: function getPopupContainer() {
|
|
20578
|
+
return document.body;
|
|
20579
|
+
},
|
|
20580
|
+
value: val,
|
|
20581
|
+
onChange: function onChange(value) {
|
|
20582
|
+
updateHandle(value, index, 'bfit');
|
|
20583
|
+
},
|
|
20584
|
+
options: [{
|
|
20585
|
+
label: '是',
|
|
20586
|
+
value: 'True'
|
|
20587
|
+
}, {
|
|
20588
|
+
label: '否',
|
|
20589
|
+
value: 'False'
|
|
20590
|
+
}]
|
|
20591
|
+
}) : /*#__PURE__*/React.createElement("span", null, val === 'True' ? '是' : '否');
|
|
20592
|
+
}
|
|
20593
|
+
}, {
|
|
20594
|
+
dataIndex: 'combinationName',
|
|
20595
|
+
title: "\u7EC4\u5408\u5546\u54C1\u540D\u79F0",
|
|
20596
|
+
width: 150
|
|
20597
|
+
}, {
|
|
20598
|
+
dataIndex: 'combinationCode',
|
|
20599
|
+
title: "\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
|
|
20600
|
+
width: 150
|
|
20601
|
+
}, {
|
|
20602
|
+
dataIndex: 'gift',
|
|
20603
|
+
title: "\u662F\u5426\u8D60\u54C1",
|
|
20604
|
+
width: 150,
|
|
20605
|
+
render: function render(val, record, index) {
|
|
20606
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
20607
|
+
dropdownStyle: {
|
|
20608
|
+
zIndex: 2000
|
|
20609
|
+
},
|
|
20610
|
+
getPopupContainer: function getPopupContainer() {
|
|
20611
|
+
return document.body;
|
|
20612
|
+
},
|
|
20613
|
+
value: val,
|
|
20614
|
+
onChange: function onChange(value) {
|
|
20615
|
+
updateHandle(value, index, 'gift');
|
|
20616
|
+
},
|
|
20617
|
+
options: [{
|
|
20618
|
+
label: '是',
|
|
20619
|
+
value: '1'
|
|
20620
|
+
}, {
|
|
20621
|
+
label: '否',
|
|
20622
|
+
value: '0'
|
|
20623
|
+
}]
|
|
20624
|
+
}) : /*#__PURE__*/React.createElement("span", null, val === '1' ? '是' : '否');
|
|
20625
|
+
}
|
|
20626
|
+
}].map(function (item) {
|
|
20627
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
20628
|
+
align: 'center',
|
|
20629
|
+
ellipsis: true
|
|
20630
|
+
});
|
|
20631
|
+
}),
|
|
20632
|
+
// 巨益补发商品信息
|
|
20633
|
+
JY_REISSUE_GOODS: [{
|
|
20634
|
+
dataIndex: 'productName',
|
|
20635
|
+
title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
|
|
20636
|
+
align: 'center',
|
|
20637
|
+
ellipsis: true,
|
|
20638
|
+
width: 150
|
|
20639
|
+
}, {
|
|
20640
|
+
dataIndex: 'productCode',
|
|
20641
|
+
title: "\u7CFB\u7EDF\u5546\u54C1\u7F16\u7801",
|
|
20642
|
+
align: 'center',
|
|
20643
|
+
ellipsis: true,
|
|
20644
|
+
width: 150
|
|
20645
|
+
}, {
|
|
20646
|
+
dataIndex: 'productId',
|
|
20647
|
+
title: "\u7CFB\u7EDF\u5546\u54C1ID",
|
|
20648
|
+
align: 'center',
|
|
20649
|
+
ellipsis: true,
|
|
20650
|
+
width: 150
|
|
20651
|
+
}, {
|
|
20652
|
+
dataIndex: 'skuName',
|
|
20653
|
+
title: "\u7CFB\u7EDF\u89C4\u683C\u540D\u79F0",
|
|
20654
|
+
align: 'center',
|
|
20655
|
+
ellipsis: true,
|
|
20656
|
+
width: 150
|
|
20657
|
+
}, {
|
|
20658
|
+
dataIndex: 'skuCode',
|
|
20659
|
+
title: "\u7CFB\u7EDF\u89C4\u683C\u7F16\u7801",
|
|
20660
|
+
align: 'center',
|
|
20661
|
+
ellipsis: true,
|
|
20662
|
+
width: 150
|
|
20663
|
+
}, {
|
|
20664
|
+
dataIndex: 'specId',
|
|
20665
|
+
title: "\u89C4\u683CID",
|
|
20666
|
+
align: 'center',
|
|
20667
|
+
ellipsis: true,
|
|
20668
|
+
width: 150
|
|
19780
20669
|
}, {
|
|
19781
|
-
dataIndex: '
|
|
19782
|
-
title: "\
|
|
20670
|
+
dataIndex: 'goodsClass',
|
|
20671
|
+
title: "\u8D27\u54C1\u7C7B\u522B",
|
|
19783
20672
|
width: 150
|
|
19784
20673
|
}, {
|
|
19785
|
-
dataIndex: '
|
|
19786
|
-
title: "\
|
|
20674
|
+
dataIndex: 'code',
|
|
20675
|
+
title: "\u6761\u7801",
|
|
19787
20676
|
width: 150
|
|
19788
20677
|
}, {
|
|
19789
|
-
dataIndex: '
|
|
20678
|
+
dataIndex: 'mallProductName',
|
|
19790
20679
|
title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
|
|
20680
|
+
align: 'center',
|
|
20681
|
+
ellipsis: true,
|
|
19791
20682
|
width: 150
|
|
19792
20683
|
}, {
|
|
19793
|
-
dataIndex: '
|
|
19794
|
-
title: "\
|
|
20684
|
+
dataIndex: 'mallProductOutCode',
|
|
20685
|
+
title: "\u5E73\u53F0\u5546\u54C1\u7F16\u7801",
|
|
20686
|
+
align: 'center',
|
|
20687
|
+
ellipsis: true,
|
|
19795
20688
|
width: 150
|
|
19796
20689
|
}, {
|
|
19797
|
-
dataIndex: '
|
|
19798
|
-
title: "\
|
|
20690
|
+
dataIndex: 'mallProductId',
|
|
20691
|
+
title: "\u5E73\u53F0\u5546\u54C1ID",
|
|
20692
|
+
align: 'center',
|
|
20693
|
+
ellipsis: true,
|
|
19799
20694
|
width: 150
|
|
19800
20695
|
}, {
|
|
19801
|
-
dataIndex: '
|
|
19802
|
-
title: "\
|
|
20696
|
+
dataIndex: 'mallSkuName',
|
|
20697
|
+
title: "\u5E73\u53F0\u89C4\u683C\u540D\u79F0",
|
|
20698
|
+
align: 'center',
|
|
20699
|
+
ellipsis: true,
|
|
19803
20700
|
width: 150
|
|
19804
20701
|
}, {
|
|
19805
|
-
dataIndex: '
|
|
19806
|
-
title: "\u5E73\u53F0\u89C4\
|
|
19807
|
-
|
|
20702
|
+
dataIndex: 'mallSkuId',
|
|
20703
|
+
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
20704
|
+
align: 'center',
|
|
20705
|
+
ellipsis: true,
|
|
20706
|
+
width: 150
|
|
19808
20707
|
}, {
|
|
19809
|
-
dataIndex: '
|
|
19810
|
-
title: "\
|
|
20708
|
+
dataIndex: 'sellCount',
|
|
20709
|
+
title: "\u6570\u91CF",
|
|
19811
20710
|
width: 100,
|
|
19812
20711
|
validator: function validator(_rule, value) {
|
|
19813
|
-
var
|
|
19814
|
-
if (((value === null || value === void 0 ? void 0 : value.
|
|
19815
|
-
var
|
|
19816
|
-
var res = typeof
|
|
20712
|
+
var productName = '';
|
|
20713
|
+
if (((value === null || value === void 0 ? void 0 : value.jyReissueGoods) || []).some(function (goods) {
|
|
20714
|
+
var qty = toNum$3(goods === null || goods === void 0 ? void 0 : goods.sellCount);
|
|
20715
|
+
var res = typeof qty === 'number' ? qty < 1 : true;
|
|
19817
20716
|
if (res) {
|
|
19818
|
-
|
|
20717
|
+
productName = (goods === null || goods === void 0 ? void 0 : goods.productName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.productName, "]") : '';
|
|
19819
20718
|
}
|
|
19820
20719
|
return res;
|
|
19821
20720
|
})) {
|
|
19822
|
-
return Promise.reject("".concat(
|
|
20721
|
+
return Promise.reject("".concat(productName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
19823
20722
|
}
|
|
19824
20723
|
},
|
|
19825
20724
|
render: function render(val, record, index) {
|
|
@@ -19831,64 +20730,86 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
19831
20730
|
min: 1,
|
|
19832
20731
|
precision: 0,
|
|
19833
20732
|
onChange: function onChange(num) {
|
|
19834
|
-
|
|
20733
|
+
updateDataHandle({
|
|
20734
|
+
sellCount: num,
|
|
20735
|
+
sellTotal: num && isNumberOrNumberString$1(record.sellPrice) ? num * record.sellPrice : null
|
|
20736
|
+
}, index);
|
|
19835
20737
|
}
|
|
19836
20738
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
19837
20739
|
}
|
|
19838
20740
|
}, {
|
|
19839
|
-
dataIndex: '
|
|
19840
|
-
title: "\
|
|
19841
|
-
width:
|
|
20741
|
+
dataIndex: 'sellPrice',
|
|
20742
|
+
title: "\u5355\u4EF7",
|
|
20743
|
+
width: 150,
|
|
19842
20744
|
render: function render(val, record, index) {
|
|
19843
20745
|
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
19844
20746
|
style: {
|
|
19845
|
-
width:
|
|
20747
|
+
width: 130
|
|
19846
20748
|
},
|
|
19847
20749
|
value: val,
|
|
19848
|
-
min:
|
|
19849
|
-
precision:
|
|
20750
|
+
min: 0,
|
|
20751
|
+
precision: 2,
|
|
19850
20752
|
onChange: function onChange(num) {
|
|
19851
|
-
|
|
20753
|
+
updateDataHandle({
|
|
20754
|
+
sellPrice: num,
|
|
20755
|
+
sellTotal: num && isNumberOrNumberString$1(record.sellCount) ? num * record.sellCount : null
|
|
20756
|
+
}, index);
|
|
19852
20757
|
}
|
|
19853
20758
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
19854
20759
|
}
|
|
19855
20760
|
}, {
|
|
19856
|
-
dataIndex: '
|
|
19857
|
-
title: "\u5546\u54C1\
|
|
19858
|
-
width: 150
|
|
19859
|
-
render: function render(val) {
|
|
19860
|
-
return val || val === 0 ? Number(val).toFixed(2) : '';
|
|
19861
|
-
}
|
|
20761
|
+
dataIndex: 'mallSellingPrice',
|
|
20762
|
+
title: "\u5E73\u53F0\u5546\u54C1\u4EF7\u683C",
|
|
20763
|
+
width: 150
|
|
19862
20764
|
}, {
|
|
19863
|
-
dataIndex: '
|
|
19864
|
-
title: "\
|
|
20765
|
+
dataIndex: 'sellTotal',
|
|
20766
|
+
title: "\u91D1\u989D",
|
|
20767
|
+
width: 150
|
|
20768
|
+
}, {
|
|
20769
|
+
dataIndex: 'bfit',
|
|
20770
|
+
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
19865
20771
|
width: 150,
|
|
19866
20772
|
render: function render(val, record, index) {
|
|
19867
|
-
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(
|
|
19868
|
-
style: {
|
|
19869
|
-
width: 130
|
|
19870
|
-
},
|
|
20773
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
19871
20774
|
value: val,
|
|
19872
|
-
|
|
19873
|
-
|
|
19874
|
-
|
|
19875
|
-
|
|
19876
|
-
|
|
19877
|
-
|
|
20775
|
+
onChange: function onChange(value) {
|
|
20776
|
+
updateHandle(value, index, 'bfit');
|
|
20777
|
+
},
|
|
20778
|
+
options: [{
|
|
20779
|
+
label: '是',
|
|
20780
|
+
value: 'True'
|
|
20781
|
+
}, {
|
|
20782
|
+
label: '否',
|
|
20783
|
+
value: 'False'
|
|
20784
|
+
}]
|
|
20785
|
+
}) : /*#__PURE__*/React.createElement("span", null, val === 'True' ? '是' : '否');
|
|
19878
20786
|
}
|
|
19879
20787
|
}, {
|
|
19880
|
-
dataIndex: '
|
|
19881
|
-
title: "\u5546\u54C1\
|
|
20788
|
+
dataIndex: 'combinationName',
|
|
20789
|
+
title: "\u7EC4\u5408\u5546\u54C1\u540D\u79F0",
|
|
19882
20790
|
width: 150
|
|
19883
20791
|
}, {
|
|
19884
|
-
dataIndex: '
|
|
19885
|
-
title: "\u5546\u54C1\
|
|
19886
|
-
width:
|
|
19887
|
-
|
|
19888
|
-
|
|
19889
|
-
|
|
19890
|
-
|
|
19891
|
-
|
|
20792
|
+
dataIndex: 'combinationCode',
|
|
20793
|
+
title: "\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
|
|
20794
|
+
width: 150
|
|
20795
|
+
}, {
|
|
20796
|
+
dataIndex: 'gift',
|
|
20797
|
+
title: "\u662F\u5426\u8D60\u54C1",
|
|
20798
|
+
width: 150,
|
|
20799
|
+
render: function render(val, record, index) {
|
|
20800
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
20801
|
+
value: val,
|
|
20802
|
+
onChange: function onChange(value) {
|
|
20803
|
+
updateHandle(value, index, 'gift');
|
|
20804
|
+
},
|
|
20805
|
+
options: [{
|
|
20806
|
+
label: '是',
|
|
20807
|
+
value: '1'
|
|
20808
|
+
}, {
|
|
20809
|
+
label: '否',
|
|
20810
|
+
value: '0'
|
|
20811
|
+
}]
|
|
20812
|
+
}) : /*#__PURE__*/React.createElement("span", null, val === '1' ? '是' : '否');
|
|
19892
20813
|
}
|
|
19893
20814
|
}].map(function (item) {
|
|
19894
20815
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
@@ -19899,7 +20820,7 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
19899
20820
|
};
|
|
19900
20821
|
};
|
|
19901
20822
|
|
|
19902
|
-
var getColumns$
|
|
20823
|
+
var getColumns$8 = function getColumns(_ref) {
|
|
19903
20824
|
var _ref$text = _ref.text,
|
|
19904
20825
|
disabled = _ref.disabled,
|
|
19905
20826
|
updateHandle = _ref.updateHandle,
|
|
@@ -19941,7 +20862,7 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
19941
20862
|
};
|
|
19942
20863
|
};
|
|
19943
20864
|
|
|
19944
|
-
var getColumns$
|
|
20865
|
+
var getColumns$9 = function getColumns(_ref) {
|
|
19945
20866
|
var _ref$text = _ref.text,
|
|
19946
20867
|
text = _ref$text === void 0 ? '' : _ref$text,
|
|
19947
20868
|
disabled = _ref.disabled,
|
|
@@ -20054,7 +20975,7 @@ var getColumnsMap$1 = function getColumnsMap(args) {
|
|
|
20054
20975
|
disabled = _ref.disabled,
|
|
20055
20976
|
updateHandle = _ref.updateHandle,
|
|
20056
20977
|
updateDataHandle = _ref.updateDataHandle;
|
|
20057
|
-
return _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, getColumns$1({
|
|
20978
|
+
return _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, getColumns$1({
|
|
20058
20979
|
text: text,
|
|
20059
20980
|
disabled: disabled,
|
|
20060
20981
|
updateHandle: updateHandle
|
|
@@ -20084,11 +21005,16 @@ var getColumnsMap$1 = function getColumnsMap(args) {
|
|
|
20084
21005
|
disabled: disabled,
|
|
20085
21006
|
updateHandle: updateHandle
|
|
20086
21007
|
})), getColumns$7({
|
|
21008
|
+
text: text,
|
|
21009
|
+
disabled: disabled,
|
|
21010
|
+
updateHandle: updateHandle,
|
|
21011
|
+
updateDataHandle: updateDataHandle
|
|
21012
|
+
})), getColumns$8({
|
|
20087
21013
|
text: text,
|
|
20088
21014
|
disabled: disabled,
|
|
20089
21015
|
updateHandle: updateHandle
|
|
20090
21016
|
})), {}, {
|
|
20091
|
-
default: getColumns$
|
|
21017
|
+
default: getColumns$9({
|
|
20092
21018
|
text: text,
|
|
20093
21019
|
disabled: disabled,
|
|
20094
21020
|
updateHandle: updateHandle
|
|
@@ -20232,6 +21158,9 @@ var isErpType = {
|
|
|
20232
21158
|
},
|
|
20233
21159
|
isKm: function isKm(type) {
|
|
20234
21160
|
return ['KM_GOODS', 'KM_REISSUE_GOODS'].includes(type);
|
|
21161
|
+
},
|
|
21162
|
+
isJy: function isJy(type) {
|
|
21163
|
+
return ['JY_GOODS', 'JY_REISSUE_GOODS'].includes(type);
|
|
20235
21164
|
}
|
|
20236
21165
|
};
|
|
20237
21166
|
var processGoods$1 = function processGoods(_ref) {
|
|
@@ -20277,6 +21206,13 @@ var processGoods$1 = function processGoods(_ref) {
|
|
|
20277
21206
|
canUpdateNumber: canUpdateNumber,
|
|
20278
21207
|
source: source
|
|
20279
21208
|
});
|
|
21209
|
+
} else if (isErpType.isJy(type)) {
|
|
21210
|
+
newList = processJyGoods({
|
|
21211
|
+
list: list,
|
|
21212
|
+
type: type,
|
|
21213
|
+
canUpdateNumber: canUpdateNumber,
|
|
21214
|
+
source: source
|
|
21215
|
+
});
|
|
20280
21216
|
} else {
|
|
20281
21217
|
newList = processDefaultGoods({
|
|
20282
21218
|
list: list,
|
|
@@ -20287,11 +21223,49 @@ var processGoods$1 = function processGoods(_ref) {
|
|
|
20287
21223
|
}
|
|
20288
21224
|
return newList;
|
|
20289
21225
|
};
|
|
20290
|
-
|
|
20291
|
-
var processWdtGoods$1 = function processWdtGoods(_ref2) {
|
|
21226
|
+
var processJyGoods = function processJyGoods(_ref2) {
|
|
20292
21227
|
var list = _ref2.list,
|
|
20293
|
-
type = _ref2.type,
|
|
20294
21228
|
canUpdateNumber = _ref2.canUpdateNumber;
|
|
21229
|
+
return list.map(function (item) {
|
|
21230
|
+
var goodName = item.goodName,
|
|
21231
|
+
goodNo = item.goodNo,
|
|
21232
|
+
goodId = item.goodId,
|
|
21233
|
+
specName = item.specName,
|
|
21234
|
+
specNo = item.specNo,
|
|
21235
|
+
specBarcode = item.specBarcode,
|
|
21236
|
+
retailPrice = item.retailPrice,
|
|
21237
|
+
isGift = item.isGift,
|
|
21238
|
+
skuType = item.skuType;
|
|
21239
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
21240
|
+
goodsName: goodName,
|
|
21241
|
+
goodsCode: goodNo,
|
|
21242
|
+
goodsId: goodId,
|
|
21243
|
+
code: specBarcode,
|
|
21244
|
+
specCode: specNo,
|
|
21245
|
+
productName: goodName,
|
|
21246
|
+
productCode: goodNo,
|
|
21247
|
+
productId: goodId,
|
|
21248
|
+
skuName: specName,
|
|
21249
|
+
skuCode: specNo,
|
|
21250
|
+
combinationName: goodName,
|
|
21251
|
+
combinationCode: goodNo,
|
|
21252
|
+
gift: isGift ? '1' : '0',
|
|
21253
|
+
bfit: skuType === 'combine' ? 'True' : 'False',
|
|
21254
|
+
uuid: uuid(),
|
|
21255
|
+
canDelete: true,
|
|
21256
|
+
sellCount: 1,
|
|
21257
|
+
sellPrice: retailPrice,
|
|
21258
|
+
sellTotal: (retailPrice * 1).toFixed(2),
|
|
21259
|
+
canEdit: true,
|
|
21260
|
+
canUpdateNumber: canUpdateNumber
|
|
21261
|
+
});
|
|
21262
|
+
});
|
|
21263
|
+
};
|
|
21264
|
+
// 处理不同类型的商品数据
|
|
21265
|
+
var processWdtGoods$1 = function processWdtGoods(_ref3) {
|
|
21266
|
+
var list = _ref3.list,
|
|
21267
|
+
type = _ref3.type,
|
|
21268
|
+
canUpdateNumber = _ref3.canUpdateNumber;
|
|
20295
21269
|
return list.map(function (item) {
|
|
20296
21270
|
var processedItem = _objectSpread2(_objectSpread2({}, item), {}, {
|
|
20297
21271
|
uuid: uuid(),
|
|
@@ -20309,9 +21283,9 @@ var processWdtGoods$1 = function processWdtGoods(_ref2) {
|
|
|
20309
21283
|
return processedItem;
|
|
20310
21284
|
});
|
|
20311
21285
|
};
|
|
20312
|
-
var processBsE3Goods$1 = function processBsE3Goods(
|
|
20313
|
-
var list =
|
|
20314
|
-
canUpdateNumber =
|
|
21286
|
+
var processBsE3Goods$1 = function processBsE3Goods(_ref4) {
|
|
21287
|
+
var list = _ref4.list,
|
|
21288
|
+
canUpdateNumber = _ref4.canUpdateNumber;
|
|
20315
21289
|
return list.map(function (item) {
|
|
20316
21290
|
var specNo = item.specNo,
|
|
20317
21291
|
specId = item.specId,
|
|
@@ -20346,9 +21320,9 @@ var processBsE3Goods$1 = function processBsE3Goods(_ref3) {
|
|
|
20346
21320
|
});
|
|
20347
21321
|
});
|
|
20348
21322
|
};
|
|
20349
|
-
var processGyGoods$1 = function processGyGoods(
|
|
20350
|
-
var list =
|
|
20351
|
-
source =
|
|
21323
|
+
var processGyGoods$1 = function processGyGoods(_ref5) {
|
|
21324
|
+
var list = _ref5.list,
|
|
21325
|
+
source = _ref5.source;
|
|
20352
21326
|
var isFormWorkOrder = source === 'workOrder';
|
|
20353
21327
|
return list.map(function (item) {
|
|
20354
21328
|
var goodName = item.goodName,
|
|
@@ -20375,8 +21349,8 @@ var processGyGoods$1 = function processGyGoods(_ref4) {
|
|
|
20375
21349
|
});
|
|
20376
21350
|
});
|
|
20377
21351
|
};
|
|
20378
|
-
var processJstGoods$1 = function processJstGoods(
|
|
20379
|
-
var list =
|
|
21352
|
+
var processJstGoods$1 = function processJstGoods(_ref6) {
|
|
21353
|
+
var list = _ref6.list;
|
|
20380
21354
|
return list.map(function (item) {
|
|
20381
21355
|
return {
|
|
20382
21356
|
name: item.goodName,
|
|
@@ -20394,9 +21368,9 @@ var processJstGoods$1 = function processJstGoods(_ref5) {
|
|
|
20394
21368
|
};
|
|
20395
21369
|
});
|
|
20396
21370
|
};
|
|
20397
|
-
var processKmGoods$1 = function processKmGoods(
|
|
20398
|
-
var list =
|
|
20399
|
-
type =
|
|
21371
|
+
var processKmGoods$1 = function processKmGoods(_ref7) {
|
|
21372
|
+
var list = _ref7.list,
|
|
21373
|
+
type = _ref7.type;
|
|
20400
21374
|
var initParamsMap = {
|
|
20401
21375
|
KM_GOODS: {
|
|
20402
21376
|
num: 1
|
|
@@ -20426,9 +21400,9 @@ var processKmGoods$1 = function processKmGoods(_ref6) {
|
|
|
20426
21400
|
}, initParamsMap[type] || {});
|
|
20427
21401
|
});
|
|
20428
21402
|
};
|
|
20429
|
-
var processDefaultGoods = function processDefaultGoods(
|
|
20430
|
-
var list =
|
|
20431
|
-
canUpdateNumber =
|
|
21403
|
+
var processDefaultGoods = function processDefaultGoods(_ref8) {
|
|
21404
|
+
var list = _ref8.list,
|
|
21405
|
+
canUpdateNumber = _ref8.canUpdateNumber;
|
|
20432
21406
|
return list.map(function (item) {
|
|
20433
21407
|
var goodsId = item.goodsId,
|
|
20434
21408
|
name = item.name,
|
|
@@ -20471,6 +21445,8 @@ var GoodsModalMap = {
|
|
|
20471
21445
|
JST_EXCHANGE_GOODS: JstGoodsModal,
|
|
20472
21446
|
KM_GOODS: KmGoodsModal,
|
|
20473
21447
|
KM_REISSUE_GOODS: KmGoodsModal,
|
|
21448
|
+
JY_GOODS: JyGoodsModal$1,
|
|
21449
|
+
JY_REISSUE_GOODS: JyGoodsModal$1,
|
|
20474
21450
|
OTHER_GOODS: GoodsModal$2
|
|
20475
21451
|
};
|
|
20476
21452
|
var systemOrderNoMap = {
|
|
@@ -20479,7 +21455,9 @@ var systemOrderNoMap = {
|
|
|
20479
21455
|
WDT_GOODS: 'tradeNo',
|
|
20480
21456
|
BS_E3_GOODS: 'orderSn',
|
|
20481
21457
|
JST_GOODS: 'oId',
|
|
20482
|
-
WLN_GOODS: 'tradeNo'
|
|
21458
|
+
WLN_GOODS: 'tradeNo',
|
|
21459
|
+
JY_GOODS: 'tradeNo',
|
|
21460
|
+
JY_REISSUE_GOODS: 'tradeNo'
|
|
20483
21461
|
};
|
|
20484
21462
|
var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
20485
21463
|
var columns = _ref.columns,
|
|
@@ -20537,6 +21515,12 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
20537
21515
|
return item === null || item === void 0 ? void 0 : item[uniqueKey];
|
|
20538
21516
|
}));
|
|
20539
21517
|
var handleChangeSelectedKeys = function handleChangeSelectedKeys(keys) {
|
|
21518
|
+
console.log('handleChangeSelectedKeys', keys, unCurrentTradeOriginGoods);
|
|
21519
|
+
console.log('filterDataSource', filterDataSource === null || filterDataSource === void 0 ? void 0 : filterDataSource.map(function (item) {
|
|
21520
|
+
return item === null || item === void 0 ? void 0 : item[uniqueKey];
|
|
21521
|
+
}));
|
|
21522
|
+
console.log('selectedRowKeys', selectedRowKeys);
|
|
21523
|
+
console.log('currentTradeOriginGoods', currentTradeOriginGoods);
|
|
20540
21524
|
onChangeSelectedKeys(keys.concat(unCurrentTradeOriginGoods));
|
|
20541
21525
|
};
|
|
20542
21526
|
var rowSelection = {
|
|
@@ -20611,6 +21595,9 @@ var getButtonText = function getButtonText() {
|
|
|
20611
21595
|
if (['JST_GOODS', 'JST_REISSUE_GOODS', 'JST_RETURN_GOODS', 'JST_EXCHANGE_GOODS'].includes(type)) {
|
|
20612
21596
|
return '选择聚水潭ERP商品';
|
|
20613
21597
|
}
|
|
21598
|
+
if (['JY_GOODS', 'JY_REISSUE_GOODS'].includes(type)) {
|
|
21599
|
+
return '选择巨益ERP商品';
|
|
21600
|
+
}
|
|
20614
21601
|
return '选择商品';
|
|
20615
21602
|
};
|
|
20616
21603
|
var GoodItem$1 = function GoodItem(props) {
|
|
@@ -20657,13 +21644,15 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
20657
21644
|
tradeGoods = props.tradeGoods,
|
|
20658
21645
|
form = props.form,
|
|
20659
21646
|
systemOrders = props.systemOrders,
|
|
20660
|
-
selectedSystemOrders = props.selectedSystemOrders
|
|
21647
|
+
selectedSystemOrders = props.selectedSystemOrders,
|
|
21648
|
+
_props$templateDetail = props.templateDetail,
|
|
21649
|
+
templateDetail = _props$templateDetail === void 0 ? {} : _props$templateDetail;
|
|
20661
21650
|
var uniqueKey = (tradeGoods === null || tradeGoods === void 0 ? void 0 : tradeGoods.uniqueKey) || 'uuid';
|
|
20662
21651
|
// 监听聚水潭退货商品
|
|
20663
21652
|
var jstReturnGoods = Form === null || Form === void 0 ? void 0 : Form.useWatch('3979edfd6d', form);
|
|
20664
21653
|
var isShowSelectTradeGoods = type !== 'JST_EXCHANGE_GOODS' || (jstReturnGoods === null || jstReturnGoods === void 0 ? void 0 : jstReturnGoods.jstSystemOrderNo);
|
|
20665
21654
|
// 判断是否为商品信息组件
|
|
20666
|
-
var isGoods = type && ['WDT_GOODS', 'BS_E3_GOODS', 'GY_GOODS', 'JST_GOODS', 'WLN_GOODS', 'KM_GOODS'].includes(type) || false;
|
|
21655
|
+
var isGoods = type && ['WDT_GOODS', 'BS_E3_GOODS', 'GY_GOODS', 'JST_GOODS', 'WLN_GOODS', 'KM_GOODS', 'JY_GOODS', 'JY_REISSUE_GOODS'].includes(type) || false;
|
|
20667
21656
|
var refModal = useRef();
|
|
20668
21657
|
console.debug('表格数据', value);
|
|
20669
21658
|
var handleDelete = function handleDelete(record, index) {
|
|
@@ -20750,6 +21739,8 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
20750
21739
|
case 'GY_RETURN_GOODS':
|
|
20751
21740
|
case 'KM_GOODS':
|
|
20752
21741
|
case 'KM_REISSUE_GOODS':
|
|
21742
|
+
case 'JY_GOODS':
|
|
21743
|
+
case 'JY_REISSUE_GOODS':
|
|
20753
21744
|
case 'SKX_GOODS':
|
|
20754
21745
|
case 'SKX_RETURN_GOODS':
|
|
20755
21746
|
{
|
|
@@ -20979,7 +21970,9 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
20979
21970
|
maxLength: maxLength,
|
|
20980
21971
|
companyKey: companyKey,
|
|
20981
21972
|
goodsSource: goodsSource,
|
|
20982
|
-
useGoodsSourceFormat: useGoodsSourceFormat
|
|
21973
|
+
useGoodsSourceFormat: useGoodsSourceFormat,
|
|
21974
|
+
form: form,
|
|
21975
|
+
templateDetail: templateDetail
|
|
20983
21976
|
}));
|
|
20984
21977
|
};
|
|
20985
21978
|
|
|
@@ -21847,7 +22840,7 @@ var bsUtils = {
|
|
|
21847
22840
|
};
|
|
21848
22841
|
|
|
21849
22842
|
var singletonMap$6 = new Map();
|
|
21850
|
-
var
|
|
22843
|
+
var getJyOrderListSingleton = function getJyOrderListSingleton(orderNo) {
|
|
21851
22844
|
if (!singletonMap$6.has(orderNo)) {
|
|
21852
22845
|
var p = new Promise(function (resolve, reject) {
|
|
21853
22846
|
var doReject = function doReject(err) {
|
|
@@ -21855,6 +22848,50 @@ var getOrderListSingleton$2 = function getOrderListSingleton(orderNo) {
|
|
|
21855
22848
|
singletonMap$6.delete(orderNo);
|
|
21856
22849
|
reject(err);
|
|
21857
22850
|
};
|
|
22851
|
+
extendRequest('/qy/gdfw/order/jyOrderDetail', {
|
|
22852
|
+
method: 'post',
|
|
22853
|
+
data: {
|
|
22854
|
+
billNo: orderNo
|
|
22855
|
+
}
|
|
22856
|
+
}).then(function (res) {
|
|
22857
|
+
if (res === null || res === void 0 ? void 0 : res.success) {
|
|
22858
|
+
var _res$data, _res$data$tradeOrderD;
|
|
22859
|
+
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) {
|
|
22860
|
+
var _filterJyOrders, _res$data2;
|
|
22861
|
+
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) {
|
|
22862
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
22863
|
+
tradeType: JY_ORDER_TYPE_MAP[item.tradeType],
|
|
22864
|
+
tradeStatus: JY_ORDER_STATUS_MAP[item.tradeStatus]
|
|
22865
|
+
});
|
|
22866
|
+
});
|
|
22867
|
+
}
|
|
22868
|
+
resolve(res.data);
|
|
22869
|
+
// 延迟10秒清除,保证订单的时效性
|
|
22870
|
+
setTimeout(function () {
|
|
22871
|
+
singletonMap$6.delete(orderNo);
|
|
22872
|
+
}, 1000 * 10);
|
|
22873
|
+
} else {
|
|
22874
|
+
doReject(res);
|
|
22875
|
+
}
|
|
22876
|
+
}).catch(doReject);
|
|
22877
|
+
});
|
|
22878
|
+
singletonMap$6.set(orderNo, p);
|
|
22879
|
+
}
|
|
22880
|
+
return singletonMap$6.get(orderNo);
|
|
22881
|
+
};
|
|
22882
|
+
var jyUtils = {
|
|
22883
|
+
getJyOrderListSingleton: getJyOrderListSingleton
|
|
22884
|
+
};
|
|
22885
|
+
|
|
22886
|
+
var singletonMap$7 = new Map();
|
|
22887
|
+
var getOrderListSingleton$2 = function getOrderListSingleton(orderNo) {
|
|
22888
|
+
if (!singletonMap$7.has(orderNo)) {
|
|
22889
|
+
var p = new Promise(function (resolve, reject) {
|
|
22890
|
+
var doReject = function doReject(err) {
|
|
22891
|
+
// 清空掉错误的请求记录
|
|
22892
|
+
singletonMap$7.delete(orderNo);
|
|
22893
|
+
reject(err);
|
|
22894
|
+
};
|
|
21858
22895
|
extendRequest('/qy/gdfw/order/kmErpOrderDetail', {
|
|
21859
22896
|
method: 'post',
|
|
21860
22897
|
data: {
|
|
@@ -21878,22 +22915,23 @@ var getOrderListSingleton$2 = function getOrderListSingleton(orderNo) {
|
|
|
21878
22915
|
}
|
|
21879
22916
|
// 延迟10秒清除,保证订单的时效性
|
|
21880
22917
|
setTimeout(function () {
|
|
21881
|
-
singletonMap$
|
|
22918
|
+
singletonMap$7.delete(orderNo);
|
|
21882
22919
|
}, 1000 * 10);
|
|
21883
22920
|
} else {
|
|
21884
22921
|
doReject(data);
|
|
21885
22922
|
}
|
|
21886
22923
|
}).catch(doReject);
|
|
21887
22924
|
});
|
|
21888
|
-
singletonMap$
|
|
22925
|
+
singletonMap$7.set(orderNo, p);
|
|
21889
22926
|
}
|
|
21890
|
-
return singletonMap$
|
|
22927
|
+
return singletonMap$7.get(orderNo);
|
|
21891
22928
|
};
|
|
21892
22929
|
var kmUtils = {
|
|
21893
22930
|
getOrderListSingleton: getOrderListSingleton$2
|
|
21894
22931
|
};
|
|
21895
22932
|
|
|
21896
|
-
var _excluded$k = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode", "cancel"]
|
|
22933
|
+
var _excluded$k = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode", "cancel"],
|
|
22934
|
+
_excluded2 = ["shopCode"];
|
|
21897
22935
|
var columnsMap = {
|
|
21898
22936
|
BS_SYSTEM_ORDER: BS_SYSTEM_ORDER_CONFIG.columns,
|
|
21899
22937
|
KM_SYSTEM_ORDER: KM_SYSTEM_ORDER_CONFIG.columns,
|
|
@@ -21901,7 +22939,8 @@ var columnsMap = {
|
|
|
21901
22939
|
WDT_SYSTEM_ORDER: WDT_SYSTEM_ORDER_CONFIG.columns,
|
|
21902
22940
|
BS_E3_SYSTEM_ORDER: BS_E3_SYSTEM_ORDER_CONFIG.columns,
|
|
21903
22941
|
GY_SYSTEM_ORDER: GY_SYSTEM_ORDER_CONFIG.columns,
|
|
21904
|
-
JST_SYSTEM_ORDER: JST_SYSTEM_ORDER_CONFIG.columns
|
|
22942
|
+
JST_SYSTEM_ORDER: JST_SYSTEM_ORDER_CONFIG.columns,
|
|
22943
|
+
JY_SYSTEM_ORDER: JY_SYSTEM_ORDER_CONFIG.columns
|
|
21905
22944
|
};
|
|
21906
22945
|
var rowKeyMap = {
|
|
21907
22946
|
BS_SYSTEM_ORDER: 'billNo',
|
|
@@ -21910,7 +22949,8 @@ var rowKeyMap = {
|
|
|
21910
22949
|
WDT_SYSTEM_ORDER: 'billNo',
|
|
21911
22950
|
BS_E3_SYSTEM_ORDER: 'orderSn',
|
|
21912
22951
|
GY_SYSTEM_ORDER: 'billNo',
|
|
21913
|
-
JST_SYSTEM_ORDER: 'oId'
|
|
22952
|
+
JST_SYSTEM_ORDER: 'oId',
|
|
22953
|
+
JY_SYSTEM_ORDER: 'tradeNo'
|
|
21914
22954
|
};
|
|
21915
22955
|
var index$2 = (function (props) {
|
|
21916
22956
|
var value = props.value,
|
|
@@ -21938,6 +22978,8 @@ var index$2 = (function (props) {
|
|
|
21938
22978
|
getGyOrderList(value.orderNo);
|
|
21939
22979
|
} else if (type === 'JST_SYSTEM_ORDER') {
|
|
21940
22980
|
getJstOrderList(value.orderNo);
|
|
22981
|
+
} else if (type === 'JY_SYSTEM_ORDER') {
|
|
22982
|
+
getJyOrderList(value.orderNo);
|
|
21941
22983
|
}
|
|
21942
22984
|
}
|
|
21943
22985
|
}, [value, type]);
|
|
@@ -22173,6 +23215,37 @@ var index$2 = (function (props) {
|
|
|
22173
23215
|
return _ref9.apply(this, arguments);
|
|
22174
23216
|
};
|
|
22175
23217
|
}();
|
|
23218
|
+
var getJyOrderList = /*#__PURE__*/function () {
|
|
23219
|
+
var _ref11 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(orderNo) {
|
|
23220
|
+
return _regeneratorRuntime().wrap(function _callee8$(_context8) {
|
|
23221
|
+
while (1) switch (_context8.prev = _context8.next) {
|
|
23222
|
+
case 0:
|
|
23223
|
+
jyUtils.getJyOrderListSingleton(orderNo).then(function (data) {
|
|
23224
|
+
var trades = ((data === null || data === void 0 ? void 0 : data.trades) || []).filter(function (item) {
|
|
23225
|
+
return getIsPlatformCodesIncludeOrderNos(item.platformCode, orderNo);
|
|
23226
|
+
});
|
|
23227
|
+
_onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, {
|
|
23228
|
+
orders: trades,
|
|
23229
|
+
showOrderInfo: trades.map(function (_ref12) {
|
|
23230
|
+
var shopCode = _ref12.shopCode,
|
|
23231
|
+
rest = _objectWithoutProperties(_ref12, _excluded2);
|
|
23232
|
+
return _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
23233
|
+
shopCode: shopCode
|
|
23234
|
+
});
|
|
23235
|
+
})
|
|
23236
|
+
}));
|
|
23237
|
+
});
|
|
23238
|
+
onceRef.current = false;
|
|
23239
|
+
case 2:
|
|
23240
|
+
case "end":
|
|
23241
|
+
return _context8.stop();
|
|
23242
|
+
}
|
|
23243
|
+
}, _callee8);
|
|
23244
|
+
}));
|
|
23245
|
+
return function getJyOrderList(_x8) {
|
|
23246
|
+
return _ref11.apply(this, arguments);
|
|
23247
|
+
};
|
|
23248
|
+
}();
|
|
22176
23249
|
var rowSelection = {
|
|
22177
23250
|
selectedRowKeys: (value === null || value === void 0 ? void 0 : value.selectIds) || [],
|
|
22178
23251
|
fixed: true,
|
|
@@ -22214,7 +23287,8 @@ var index$2 = (function (props) {
|
|
|
22214
23287
|
size: "small",
|
|
22215
23288
|
pagination: false,
|
|
22216
23289
|
scroll: {
|
|
22217
|
-
x: 'max-content'
|
|
23290
|
+
x: 'max-content',
|
|
23291
|
+
y: 500
|
|
22218
23292
|
},
|
|
22219
23293
|
locale: {
|
|
22220
23294
|
emptyText: '暂无数据'
|
|
@@ -22596,16 +23670,16 @@ var orderSubFormConstants = {
|
|
|
22596
23670
|
};
|
|
22597
23671
|
|
|
22598
23672
|
var getSelectWidgetMap$1 = orderSubFormConstants.getSelectWidgetMap;
|
|
22599
|
-
var singletonMap$
|
|
23673
|
+
var singletonMap$8 = new Map();
|
|
22600
23674
|
var getOrderListSingleton$3 = function getOrderListSingleton(parmas) {
|
|
22601
23675
|
var orderNo = parmas.orderNo,
|
|
22602
23676
|
shopId = parmas.shopId;
|
|
22603
23677
|
var key = "".concat(orderNo, "-").concat(shopId);
|
|
22604
|
-
if (!singletonMap$
|
|
23678
|
+
if (!singletonMap$8.has(key)) {
|
|
22605
23679
|
var p = new Promise(function (resolve, reject) {
|
|
22606
23680
|
var doReject = function doReject(err) {
|
|
22607
23681
|
// 清空掉错误的请求记录
|
|
22608
|
-
singletonMap$
|
|
23682
|
+
singletonMap$8.delete(key);
|
|
22609
23683
|
reject(err);
|
|
22610
23684
|
};
|
|
22611
23685
|
extendRequest('/qy/gdfw/order/subOrderItemsDetail', {
|
|
@@ -22621,16 +23695,16 @@ var getOrderListSingleton$3 = function getOrderListSingleton(parmas) {
|
|
|
22621
23695
|
}
|
|
22622
23696
|
// 延迟10秒清除,保证订单的时效性
|
|
22623
23697
|
setTimeout(function () {
|
|
22624
|
-
singletonMap$
|
|
23698
|
+
singletonMap$8.delete(key);
|
|
22625
23699
|
}, 1000 * 10);
|
|
22626
23700
|
} else {
|
|
22627
23701
|
doReject(data);
|
|
22628
23702
|
}
|
|
22629
23703
|
}).catch(doReject);
|
|
22630
23704
|
});
|
|
22631
|
-
singletonMap$
|
|
23705
|
+
singletonMap$8.set(key, p);
|
|
22632
23706
|
}
|
|
22633
|
-
return singletonMap$
|
|
23707
|
+
return singletonMap$8.get(key);
|
|
22634
23708
|
};
|
|
22635
23709
|
var renderEditItem = function renderEditItem(_ref) {
|
|
22636
23710
|
var item = _ref.item,
|
|
@@ -23060,6 +24134,9 @@ var isErpType$1 = {
|
|
|
23060
24134
|
},
|
|
23061
24135
|
isWln: function isWln(type) {
|
|
23062
24136
|
return ['WLN_GOODS'].includes(type);
|
|
24137
|
+
},
|
|
24138
|
+
isJy: function isJy(type) {
|
|
24139
|
+
return ['JY_GOODS'].includes(type);
|
|
23063
24140
|
}
|
|
23064
24141
|
};
|
|
23065
24142
|
var processAllOrders = function processAllOrders(_ref) {
|
|
@@ -23087,6 +24164,11 @@ var processAllOrders = function processAllOrders(_ref) {
|
|
|
23087
24164
|
newList = processWlnOrders({
|
|
23088
24165
|
data: data
|
|
23089
24166
|
});
|
|
24167
|
+
} else if (isErpType$1.isJy(type)) {
|
|
24168
|
+
newList = processJyOrders({
|
|
24169
|
+
data: data,
|
|
24170
|
+
orderNo: orderNo
|
|
24171
|
+
});
|
|
23090
24172
|
} else {
|
|
23091
24173
|
newList = processDefaultOrders({
|
|
23092
24174
|
data: data
|
|
@@ -23118,12 +24200,20 @@ var processGyOrders = function processGyOrders(_ref4) {
|
|
|
23118
24200
|
});
|
|
23119
24201
|
return trades;
|
|
23120
24202
|
};
|
|
23121
|
-
var
|
|
23122
|
-
var data = _ref5.data
|
|
23123
|
-
|
|
24203
|
+
var processJyOrders = function processJyOrders(_ref5) {
|
|
24204
|
+
var data = _ref5.data,
|
|
24205
|
+
orderNo = _ref5.orderNo;
|
|
24206
|
+
var trades = ((data === null || data === void 0 ? void 0 : data.trades) || []).filter(function (item) {
|
|
24207
|
+
return getIsPlatformCodesIncludeOrderNos(item.platformCode, orderNo);
|
|
24208
|
+
});
|
|
24209
|
+
return trades;
|
|
23124
24210
|
};
|
|
23125
|
-
var
|
|
24211
|
+
var processWlnOrders = function processWlnOrders(_ref6) {
|
|
23126
24212
|
var data = _ref6.data;
|
|
24213
|
+
return (data === null || data === void 0 ? void 0 : data.orders) || [];
|
|
24214
|
+
};
|
|
24215
|
+
var processDefaultOrders = function processDefaultOrders(_ref7) {
|
|
24216
|
+
var data = _ref7.data;
|
|
23127
24217
|
return data || [];
|
|
23128
24218
|
};
|
|
23129
24219
|
|
|
@@ -23317,6 +24407,32 @@ var componentMap$2 = {
|
|
|
23317
24407
|
exchangeDeleteGood: 'kmExchangeDeleteGood'
|
|
23318
24408
|
},
|
|
23319
24409
|
getOrderList: kmUtils.getOrderListSingleton
|
|
24410
|
+
},
|
|
24411
|
+
JY_GOODS: {
|
|
24412
|
+
type: 'jy',
|
|
24413
|
+
key: 'jyGoods',
|
|
24414
|
+
name: '巨益',
|
|
24415
|
+
orderNo: 'tid',
|
|
24416
|
+
goodDetailOrderNo: 'originalDealCode',
|
|
24417
|
+
eventNameMap: {
|
|
24418
|
+
// pubsub 事件
|
|
24419
|
+
type: 'jyType',
|
|
24420
|
+
updateGoodsHandle: updateJyGoodsHandle,
|
|
24421
|
+
selectListReturn: 'jySelectListReturn',
|
|
24422
|
+
selectList: 'jySelectList',
|
|
24423
|
+
reissueSelectList: 'jyReissueSelectList',
|
|
24424
|
+
reissueSelectListReturn: 'jyReissueSelectListReturn',
|
|
24425
|
+
reissueDeleteGood: 'jyReissueDeleteGood',
|
|
24426
|
+
changeShopCode: 'jyChangeShopCode',
|
|
24427
|
+
reissueType: 'jyReissueType',
|
|
24428
|
+
returnType: 'jyReturnType',
|
|
24429
|
+
returnSelectListReturn: 'jyReturnSelectListReturn',
|
|
24430
|
+
returnSelectList: 'jyReturnSelectList',
|
|
24431
|
+
deleteGood: 'jyDeleteGood',
|
|
24432
|
+
returnDeleteGood: 'jyReturnDeleteGood',
|
|
24433
|
+
exchangeDeleteGood: 'jyExchangeDeleteGood'
|
|
24434
|
+
},
|
|
24435
|
+
getOrderList: jyUtils.getJyOrderListSingleton
|
|
23320
24436
|
}
|
|
23321
24437
|
};
|
|
23322
24438
|
var CommonGoods = function CommonGoods(props) {
|
|
@@ -24215,10 +25331,25 @@ var typeMap$2 = {
|
|
|
24215
25331
|
outerOiIdKey: '',
|
|
24216
25332
|
goodDetailsKey: 'subOrders',
|
|
24217
25333
|
uniqueKey: 'id'
|
|
25334
|
+
},
|
|
25335
|
+
JY_REISSUE_GOODS: {
|
|
25336
|
+
compType: '补发',
|
|
25337
|
+
key: 'jyReissueGoods',
|
|
25338
|
+
typeName: 'jyReissueType',
|
|
25339
|
+
systemOrder: 'jySystemOrder',
|
|
25340
|
+
systemOrderNo: 'jySystemOrderNo',
|
|
25341
|
+
getOrderList: jyUtils.getJyOrderListSingleton,
|
|
25342
|
+
updateGoodsHandle: updateJyGoodsHandle,
|
|
25343
|
+
alwaysShowChooseErpGoodsBtn: true,
|
|
25344
|
+
orderTypeKey: 'orderType',
|
|
25345
|
+
oIdKey: 'tradeNo',
|
|
25346
|
+
outerOiIdKey: '',
|
|
25347
|
+
goodDetailsKey: 'subOrderDetails',
|
|
25348
|
+
isShowSelectTradeGoods: true
|
|
24218
25349
|
}
|
|
24219
25350
|
};
|
|
24220
25351
|
var PublicReissue = function PublicReissue(props) {
|
|
24221
|
-
var _typeMap$
|
|
25352
|
+
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;
|
|
24222
25353
|
var value = props.value,
|
|
24223
25354
|
onChange = props.onChange,
|
|
24224
25355
|
_props$reasonList = props.reasonList,
|
|
@@ -24335,9 +25466,11 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
24335
25466
|
}))));
|
|
24336
25467
|
};
|
|
24337
25468
|
var getGoodDetails = function getGoodDetails(_ref4) {
|
|
24338
|
-
var _typeMap$type18, _typeMap$type19,
|
|
25469
|
+
var _typeMap$type18, _typeMap$type19, _value$typeMap$type$s6, _typeMap$type20, _typeMap$type21, _typeMap$type22;
|
|
24339
25470
|
var mode = _ref4.mode,
|
|
24340
|
-
sysOrderNo = _ref4.sysOrderNo
|
|
25471
|
+
sysOrderNo = _ref4.sysOrderNo,
|
|
25472
|
+
_ref4$isAllOrders = _ref4.isAllOrders,
|
|
25473
|
+
isAllOrders = _ref4$isAllOrders === void 0 ? false : _ref4$isAllOrders;
|
|
24341
25474
|
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];
|
|
24342
25475
|
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];
|
|
24343
25476
|
var order = systemOrderNo && ((systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orders) || []).find(function (order) {
|
|
@@ -24351,39 +25484,48 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
24351
25484
|
orderBackGoodsLevel: props.orderBackGoodsLevel,
|
|
24352
25485
|
canEdit: true
|
|
24353
25486
|
};
|
|
25487
|
+
} else if (['JY_REISSUE_GOODS', 'JY_RETURN_GOODS'].includes(type)) {
|
|
25488
|
+
orderRest = {
|
|
25489
|
+
canEdit: true
|
|
25490
|
+
};
|
|
24354
25491
|
}
|
|
24355
|
-
var
|
|
25492
|
+
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];
|
|
25493
|
+
var hasGoodDetails = orders === null || orders === void 0 ? void 0 : orders.some(function (order) {
|
|
25494
|
+
var _order$typeMap$type$g;
|
|
25495
|
+
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;
|
|
25496
|
+
});
|
|
25497
|
+
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) : [];
|
|
24356
25498
|
var orderNo = systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orderNo;
|
|
24357
|
-
var list = mode ? goodDetails.filter(function (goodItem) {
|
|
25499
|
+
var list = mode && !isAllOrders ? goodDetails.filter(function (goodItem) {
|
|
24358
25500
|
return !orderNo || goodItem[typeMap$2[type].outerOiIdKey] === orderNo;
|
|
24359
25501
|
}) : goodDetails;
|
|
24360
25502
|
return list;
|
|
24361
25503
|
};
|
|
24362
25504
|
var changeGoodHandle = function changeGoodHandle(val) {
|
|
24363
|
-
var _typeMap$
|
|
25505
|
+
var _typeMap$type23;
|
|
24364
25506
|
var newValue = _objectSpread2({}, value);
|
|
24365
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25507
|
+
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 || [];
|
|
24366
25508
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
24367
25509
|
};
|
|
24368
25510
|
var changeSystemOrderHandle = function changeSystemOrderHandle(val) {
|
|
24369
|
-
var _typeMap$
|
|
25511
|
+
var _typeMap$type24, _typeMap$type25, _value$typeMap$type$t2, _typeMap$type30, _value$typeMap$type$t3, _typeMap$type32;
|
|
24370
25512
|
var newValue = _objectSpread2({}, value);
|
|
24371
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
24372
|
-
if (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
24373
|
-
var _value$typeMap$type$
|
|
24374
|
-
var orders = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$
|
|
25513
|
+
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;
|
|
25514
|
+
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) {
|
|
25515
|
+
var _value$typeMap$type$s7, _typeMap$type26, _typeMap$type28, _typeMap$type29;
|
|
25516
|
+
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) || [];
|
|
24375
25517
|
var targetOrder = val && orders.find(function (oItem) {
|
|
24376
|
-
var _typeMap$
|
|
24377
|
-
return oItem[(_typeMap$
|
|
25518
|
+
var _typeMap$type27;
|
|
25519
|
+
return oItem[(_typeMap$type27 = typeMap$2[type]) === null || _typeMap$type27 === void 0 ? void 0 : _typeMap$type27.oIdKey] === val;
|
|
24378
25520
|
});
|
|
24379
|
-
newValue[(_typeMap$
|
|
24380
|
-
}
|
|
24381
|
-
if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$
|
|
24382
|
-
var _typeMap$
|
|
24383
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
24384
|
-
} else if (['1'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$
|
|
24385
|
-
var _typeMap$
|
|
24386
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25521
|
+
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];
|
|
25522
|
+
}
|
|
25523
|
+
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])) {
|
|
25524
|
+
var _typeMap$type31;
|
|
25525
|
+
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)] = [];
|
|
25526
|
+
} 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])) {
|
|
25527
|
+
var _typeMap$type33;
|
|
25528
|
+
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({
|
|
24387
25529
|
mode: isStrict,
|
|
24388
25530
|
sysOrderNo: val
|
|
24389
25531
|
});
|
|
@@ -24391,26 +25533,27 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
24391
25533
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue, 'systemOrder');
|
|
24392
25534
|
};
|
|
24393
25535
|
//显示选择商品按钮
|
|
24394
|
-
var showChangeBtn = !!(value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
25536
|
+
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]);
|
|
24395
25537
|
var selectedGoodsChange = useCallback(function (skuList) {
|
|
24396
|
-
var _typeMap$
|
|
25538
|
+
var _typeMap$type35, _typeMap$type36, _typeMap$type37, _uniqBy, _typeMap$type38;
|
|
24397
25539
|
var newValue = _objectSpread2({}, value);
|
|
24398
25540
|
// 原订单商品
|
|
24399
25541
|
var originTradeGoodList = getGoodDetails({
|
|
24400
|
-
mode: isStrict
|
|
25542
|
+
mode: isStrict,
|
|
25543
|
+
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
|
|
24401
25544
|
}) || [];
|
|
24402
25545
|
// 当前选中的所有商品【包含了原订单+商品库】
|
|
24403
|
-
var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
24404
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
24405
|
-
var _typeMap$
|
|
24406
|
-
return skuList.includes(item[typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25546
|
+
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)]) || [];
|
|
25547
|
+
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) {
|
|
25548
|
+
var _typeMap$type39;
|
|
25549
|
+
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']);
|
|
24407
25550
|
});
|
|
24408
25551
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
24409
|
-
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25552
|
+
}, [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]);
|
|
24410
25553
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
|
|
24411
25554
|
gutter: 8,
|
|
24412
25555
|
wrap: true,
|
|
24413
|
-
id: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25556
|
+
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())
|
|
24414
25557
|
}, /*#__PURE__*/React.createElement(Col, {
|
|
24415
25558
|
className: "gutter-row",
|
|
24416
25559
|
xs: {
|
|
@@ -24426,12 +25569,12 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
24426
25569
|
},
|
|
24427
25570
|
disabled: disabled,
|
|
24428
25571
|
allowClear: false,
|
|
24429
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25572
|
+
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)],
|
|
24430
25573
|
onChange: function onChange(val) {
|
|
24431
25574
|
return changeSystemOrderHandle(val);
|
|
24432
25575
|
},
|
|
24433
|
-
placeholder: "\u9009\u62E9".concat((typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
24434
|
-
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$
|
|
25576
|
+
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")
|
|
25577
|
+
}, ((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) {
|
|
24435
25578
|
return /*#__PURE__*/React.createElement(Select.Option, {
|
|
24436
25579
|
key: item[typeMap$2[type].oIdKey],
|
|
24437
25580
|
value: item[typeMap$2[type].oIdKey],
|
|
@@ -24453,11 +25596,11 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
24453
25596
|
disabled: isSettingConfig ? !isSettingConfig : disabled,
|
|
24454
25597
|
allowClear: false,
|
|
24455
25598
|
options: reasonList,
|
|
24456
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25599
|
+
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)],
|
|
24457
25600
|
onChange: function onChange(val) {
|
|
24458
25601
|
return changeTypeHandle(val);
|
|
24459
25602
|
}
|
|
24460
|
-
})), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25603
|
+
})), (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, {
|
|
24461
25604
|
className: "gutter-row",
|
|
24462
25605
|
xs: {
|
|
24463
25606
|
span: 11
|
|
@@ -24466,7 +25609,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
24466
25609
|
span: 6
|
|
24467
25610
|
}
|
|
24468
25611
|
}, /*#__PURE__*/React.createElement(Input, {
|
|
24469
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25612
|
+
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)],
|
|
24470
25613
|
disabled: disabled,
|
|
24471
25614
|
readOnly: true
|
|
24472
25615
|
}))), /*#__PURE__*/React.createElement(GoodItem$1, _objectSpread2(_objectSpread2({
|
|
@@ -24475,22 +25618,25 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
24475
25618
|
type: type,
|
|
24476
25619
|
disabled: disabled,
|
|
24477
25620
|
canUpdateNumber: showChangeBtn,
|
|
24478
|
-
showChangeBtn: showChangeBtn,
|
|
24479
|
-
alwaysShowChooseErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
24480
|
-
showErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25621
|
+
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),
|
|
25622
|
+
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,
|
|
25623
|
+
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,
|
|
24481
25624
|
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
24482
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25625
|
+
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)],
|
|
24483
25626
|
onChange: function onChange(val) {
|
|
24484
25627
|
return changeGoodHandle(val);
|
|
24485
25628
|
},
|
|
24486
25629
|
onModeChange: handleModeChange,
|
|
24487
25630
|
showModeBtn: false,
|
|
24488
25631
|
isStrict: isStrict,
|
|
25632
|
+
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,
|
|
25633
|
+
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,
|
|
24489
25634
|
tradeGoods: {
|
|
24490
25635
|
originDataSource: getGoodDetails({
|
|
24491
|
-
mode: isStrict
|
|
25636
|
+
mode: isStrict,
|
|
25637
|
+
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
|
|
24492
25638
|
}),
|
|
24493
|
-
uniqueKey: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25639
|
+
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',
|
|
24494
25640
|
selectedGoodsChange: selectedGoodsChange
|
|
24495
25641
|
}
|
|
24496
25642
|
})));
|
|
@@ -25518,7 +26664,7 @@ var styles$6 = {"systemNoDisabled":"index-module_systemNoDisabled__1s7aJ"};
|
|
|
25518
26664
|
styleInject(css_248z$f);
|
|
25519
26665
|
|
|
25520
26666
|
var _excluded$r = ["value", "onChange", "reasonList", "disabled", "type", "isSettingConfig"],
|
|
25521
|
-
_excluded2 = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode"];
|
|
26667
|
+
_excluded2$1 = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode"];
|
|
25522
26668
|
var typeMap$4 = {
|
|
25523
26669
|
GY_REISSUE_GOODS: {
|
|
25524
26670
|
key: 'gyReissueGoods',
|
|
@@ -25589,7 +26735,7 @@ var GyReissue = function GyReissue(props) {
|
|
|
25589
26735
|
deliveryState = _ref2.deliveryState,
|
|
25590
26736
|
vipCode = _ref2.vipCode,
|
|
25591
26737
|
shopCode = _ref2.shopCode,
|
|
25592
|
-
rest = _objectWithoutProperties(_ref2, _excluded2);
|
|
26738
|
+
rest = _objectWithoutProperties(_ref2, _excluded2$1);
|
|
25593
26739
|
return _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
25594
26740
|
billNo: billNo,
|
|
25595
26741
|
billType: billType,
|
|
@@ -25829,7 +26975,7 @@ var GyReissue = function GyReissue(props) {
|
|
|
25829
26975
|
};
|
|
25830
26976
|
|
|
25831
26977
|
var _excluded$s = ["value", "onChange", "reasonList", "disabled", "type", "isSettingConfig"],
|
|
25832
|
-
_excluded2$
|
|
26978
|
+
_excluded2$2 = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode"];
|
|
25833
26979
|
var typeMap$5 = {
|
|
25834
26980
|
GY_RETURN_GOODS: {
|
|
25835
26981
|
key: 'gyReturnGoods',
|
|
@@ -25931,7 +27077,7 @@ var GyReturnGoods = function GyReturnGoods(props) {
|
|
|
25931
27077
|
deliveryState = _ref2.deliveryState,
|
|
25932
27078
|
vipCode = _ref2.vipCode,
|
|
25933
27079
|
shopCode = _ref2.shopCode,
|
|
25934
|
-
rest = _objectWithoutProperties(_ref2, _excluded2$
|
|
27080
|
+
rest = _objectWithoutProperties(_ref2, _excluded2$2);
|
|
25935
27081
|
return _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
25936
27082
|
billNo: billNo,
|
|
25937
27083
|
billType: billType,
|
|
@@ -26751,4 +27897,4 @@ var SkxGoods = function SkxGoods(props) {
|
|
|
26751
27897
|
}));
|
|
26752
27898
|
};
|
|
26753
27899
|
|
|
26754
|
-
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, 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$6 as getKmColumns, getColumns$
|
|
27900
|
+
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, 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 };
|