@kmkf-fe-packages/basic-components 2.2.13-beta.6 → 2.2.13-beta.62
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 +840 -624
- package/dist/index.js +839 -622
- package/dist/src/bs/SystemOrder/index.d.ts +5 -0
- package/dist/src/bs/component/GoodItem/index.d.ts +1 -0
- package/dist/src/bs/component/model/Columns/Erp/jy.d.ts +7 -1
- package/dist/src/bs/component/model/Columns/Erp/wdt.d.ts +1 -1
- package/dist/src/bs/component/model/GyGoodsList.d.ts +1 -0
- package/dist/src/bs/component/model/JyGoodsModal/GoodsList.d.ts +14 -14
- package/dist/src/bs/component/model/WorkOrderList/index.d.ts +1 -0
- package/dist/src/bs/component/model/WorkOrderList/useDefaultSearchValue.d.ts +10 -0
- package/dist/src/bs/component/model/type.d.ts +3 -0
- package/dist/src/constants/systemOrderColumnsMap.d.ts +68 -0
- package/dist/src/index.d.ts +1 -0
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -9574,7 +9574,7 @@ var renderMap = {
|
|
|
9574
9574
|
return /*#__PURE__*/React__default['default'].createElement(FileRender, {
|
|
9575
9575
|
id: "fileRender",
|
|
9576
9576
|
fileList: value,
|
|
9577
|
-
canDownload: !['ks', 'fxg'].includes(platform || '')
|
|
9577
|
+
canDownload: !['ks', 'fxg', 'xiaozhi'].includes(platform || '')
|
|
9578
9578
|
});
|
|
9579
9579
|
},
|
|
9580
9580
|
CHECKBOX: function CHECKBOX(value) {
|
|
@@ -9677,7 +9677,7 @@ var EditFileRender = function EditFileRender(_ref7) {
|
|
|
9677
9677
|
})), /*#__PURE__*/React__default['default'].createElement(FileRender, {
|
|
9678
9678
|
id: "fileEdit",
|
|
9679
9679
|
fileList: val,
|
|
9680
|
-
canDownload: !['ks', 'fxg'].includes(platform)
|
|
9680
|
+
canDownload: !['ks', 'fxg', 'xiaozhi'].includes(platform)
|
|
9681
9681
|
}));
|
|
9682
9682
|
};
|
|
9683
9683
|
var EditRenderMap = {
|
|
@@ -13845,7 +13845,7 @@ var jstGoods = function jstGoods(props) {
|
|
|
13845
13845
|
onChange: function onChange(val) {
|
|
13846
13846
|
changeInputHandle(val, 'logisticsCompany');
|
|
13847
13847
|
},
|
|
13848
|
-
value:
|
|
13848
|
+
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'],
|
|
13849
13849
|
showSearch: true,
|
|
13850
13850
|
dropdownMatchSelectWidth: false,
|
|
13851
13851
|
filterOption: function filterOption(input, option) {
|
|
@@ -14665,21 +14665,21 @@ var wdtColumns = [{
|
|
|
14665
14665
|
title: '市场价',
|
|
14666
14666
|
width: 140,
|
|
14667
14667
|
render: function render(price) {
|
|
14668
|
-
return Number(price).toFixed(2);
|
|
14668
|
+
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
14669
14669
|
}
|
|
14670
14670
|
}, {
|
|
14671
14671
|
dataIndex: 'retailPrice',
|
|
14672
14672
|
title: '零售价',
|
|
14673
14673
|
width: 140,
|
|
14674
14674
|
render: function render(price) {
|
|
14675
|
-
return Number(price).toFixed(2);
|
|
14675
|
+
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
14676
14676
|
}
|
|
14677
14677
|
}, {
|
|
14678
14678
|
dataIndex: 'memberPrice',
|
|
14679
14679
|
title: '会员价',
|
|
14680
14680
|
width: 140,
|
|
14681
14681
|
render: function render(price) {
|
|
14682
|
-
return Number(price).toFixed(2);
|
|
14682
|
+
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
14683
14683
|
}
|
|
14684
14684
|
}];
|
|
14685
14685
|
|
|
@@ -14905,17 +14905,17 @@ var getYesOrNo$1 = function getYesOrNo(val) {
|
|
|
14905
14905
|
return val ? '是' : '否';
|
|
14906
14906
|
};
|
|
14907
14907
|
var jyColumns = [{
|
|
14908
|
-
dataIndex: '
|
|
14908
|
+
dataIndex: 'goodName',
|
|
14909
14909
|
title: '商品名称',
|
|
14910
14910
|
width: 250,
|
|
14911
14911
|
ellipsis: true
|
|
14912
14912
|
}, {
|
|
14913
|
-
dataIndex: '
|
|
14913
|
+
dataIndex: 'goodNo',
|
|
14914
14914
|
title: '商品编码',
|
|
14915
14915
|
width: 150,
|
|
14916
14916
|
ellipsis: true
|
|
14917
14917
|
}, {
|
|
14918
|
-
dataIndex: '
|
|
14918
|
+
dataIndex: 'goodId',
|
|
14919
14919
|
title: '商品ID',
|
|
14920
14920
|
width: 150,
|
|
14921
14921
|
ellipsis: true
|
|
@@ -14924,22 +14924,22 @@ var jyColumns = [{
|
|
|
14924
14924
|
title: '商品图片',
|
|
14925
14925
|
width: 100,
|
|
14926
14926
|
render: function render(picUrl) {
|
|
14927
|
-
return /*#__PURE__*/React__default['default'].createElement("img", {
|
|
14927
|
+
return picUrl ? /*#__PURE__*/React__default['default'].createElement("img", {
|
|
14928
14928
|
style: {
|
|
14929
14929
|
width: '40px',
|
|
14930
14930
|
height: '40px',
|
|
14931
14931
|
objectFit: 'contain'
|
|
14932
14932
|
},
|
|
14933
14933
|
src: picUrl
|
|
14934
|
-
});
|
|
14934
|
+
}) : null;
|
|
14935
14935
|
}
|
|
14936
14936
|
}, {
|
|
14937
|
-
dataIndex: '
|
|
14937
|
+
dataIndex: 'goodShortName',
|
|
14938
14938
|
title: "\u5546\u54C1\u7B80\u79F0",
|
|
14939
14939
|
ellipsis: true,
|
|
14940
14940
|
width: 150
|
|
14941
14941
|
}, {
|
|
14942
|
-
dataIndex: '
|
|
14942
|
+
dataIndex: 'categoryName',
|
|
14943
14943
|
title: "\u5546\u54C1\u7EC4",
|
|
14944
14944
|
ellipsis: true,
|
|
14945
14945
|
width: 150
|
|
@@ -14949,56 +14949,56 @@ var jyColumns = [{
|
|
|
14949
14949
|
width: 200,
|
|
14950
14950
|
ellipsis: true
|
|
14951
14951
|
}, {
|
|
14952
|
-
dataIndex: '
|
|
14952
|
+
dataIndex: 'specName',
|
|
14953
14953
|
title: '规格名称',
|
|
14954
14954
|
width: 250,
|
|
14955
14955
|
ellipsis: true
|
|
14956
14956
|
}, {
|
|
14957
|
-
dataIndex: '
|
|
14957
|
+
dataIndex: 'specNo',
|
|
14958
14958
|
title: '规格编码',
|
|
14959
14959
|
width: 150,
|
|
14960
14960
|
ellipsis: true
|
|
14961
14961
|
}, {
|
|
14962
|
-
dataIndex: '
|
|
14962
|
+
dataIndex: 'specId',
|
|
14963
14963
|
title: '规格ID',
|
|
14964
14964
|
width: 250,
|
|
14965
14965
|
ellipsis: true
|
|
14966
14966
|
}, {
|
|
14967
|
-
dataIndex: '
|
|
14967
|
+
dataIndex: 'specBarcode',
|
|
14968
14968
|
title: '规格条码',
|
|
14969
14969
|
width: 150,
|
|
14970
14970
|
ellipsis: true
|
|
14971
14971
|
}, {
|
|
14972
|
-
dataIndex: '
|
|
14972
|
+
dataIndex: 'specImgUrl',
|
|
14973
14973
|
title: '规格图片',
|
|
14974
14974
|
width: 100,
|
|
14975
14975
|
render: function render(picUrl) {
|
|
14976
|
-
return /*#__PURE__*/React__default['default'].createElement("img", {
|
|
14976
|
+
return picUrl ? /*#__PURE__*/React__default['default'].createElement("img", {
|
|
14977
14977
|
style: {
|
|
14978
14978
|
width: '40px',
|
|
14979
14979
|
height: '40px',
|
|
14980
14980
|
objectFit: 'contain'
|
|
14981
14981
|
},
|
|
14982
14982
|
src: picUrl
|
|
14983
|
-
});
|
|
14983
|
+
}) : null;
|
|
14984
14984
|
}
|
|
14985
14985
|
}, {
|
|
14986
|
-
dataIndex: '
|
|
14986
|
+
dataIndex: 'colorName',
|
|
14987
14987
|
title: "\u989C\u8272",
|
|
14988
14988
|
ellipsis: true,
|
|
14989
14989
|
width: 100
|
|
14990
14990
|
}, {
|
|
14991
|
-
dataIndex: '
|
|
14991
|
+
dataIndex: 'sizeName',
|
|
14992
14992
|
title: "\u5C3A\u7801",
|
|
14993
14993
|
ellipsis: true,
|
|
14994
14994
|
width: 100
|
|
14995
14995
|
}, {
|
|
14996
|
-
dataIndex: '
|
|
14996
|
+
dataIndex: 'marketPrice',
|
|
14997
14997
|
title: "\u5E02\u573A\u4EF7",
|
|
14998
14998
|
ellipsis: true,
|
|
14999
14999
|
width: 100
|
|
15000
15000
|
}, {
|
|
15001
|
-
dataIndex: '
|
|
15001
|
+
dataIndex: 'retailPrice',
|
|
15002
15002
|
title: "\u96F6\u552E\u4EF7",
|
|
15003
15003
|
ellipsis: true,
|
|
15004
15004
|
width: 100
|
|
@@ -15008,7 +15008,7 @@ var jyColumns = [{
|
|
|
15008
15008
|
ellipsis: true,
|
|
15009
15009
|
width: 100
|
|
15010
15010
|
}, {
|
|
15011
|
-
dataIndex: '
|
|
15011
|
+
dataIndex: 'isGift',
|
|
15012
15012
|
title: "\u662F\u5426\u8D60\u54C1",
|
|
15013
15013
|
ellipsis: true,
|
|
15014
15014
|
width: 150,
|
|
@@ -15016,12 +15016,12 @@ var jyColumns = [{
|
|
|
15016
15016
|
return /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$1(val));
|
|
15017
15017
|
}
|
|
15018
15018
|
}, {
|
|
15019
|
-
dataIndex: '
|
|
15019
|
+
dataIndex: 'skuType',
|
|
15020
15020
|
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
15021
15021
|
ellipsis: true,
|
|
15022
15022
|
width: 150,
|
|
15023
15023
|
render: function render(val) {
|
|
15024
|
-
return /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$1(val));
|
|
15024
|
+
return /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$1(val === 'combine'));
|
|
15025
15025
|
}
|
|
15026
15026
|
}];
|
|
15027
15027
|
|
|
@@ -17308,11 +17308,12 @@ var SearchHeader = function SearchHeader(_ref) {
|
|
|
17308
17308
|
timeOptions = _ref.timeOptions,
|
|
17309
17309
|
ShopList = _ref.ShopList,
|
|
17310
17310
|
onSubmit = _ref.onSubmit;
|
|
17311
|
+
console.log('allFields', allFields);
|
|
17311
17312
|
// const fixedFieldsOptions = useMemo(() => {
|
|
17312
17313
|
// return allFields.filter(item => fixedFields?.includes(item.id));
|
|
17313
17314
|
// }, [fixedFields, allFields]);
|
|
17314
17315
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
17315
|
-
className:
|
|
17316
|
+
className: "search-header-wrap"
|
|
17316
17317
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
17317
17318
|
className: "".concat(status ? 'is-open' : 'not-open')
|
|
17318
17319
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -17469,6 +17470,9 @@ var WorkorderList = function WorkorderList(props, ref) {
|
|
|
17469
17470
|
return selectedList.map(function (workOrderData) {
|
|
17470
17471
|
return goodsSourceFormat.workOrderDataToGoods(workOrderData, props.erp);
|
|
17471
17472
|
});
|
|
17473
|
+
},
|
|
17474
|
+
setDefaultSearchValue: function setDefaultSearchValue(value) {
|
|
17475
|
+
value && form.setFieldsValue(_objectSpread2({}, value));
|
|
17472
17476
|
}
|
|
17473
17477
|
};
|
|
17474
17478
|
});
|
|
@@ -17747,21 +17751,116 @@ var WorkorderList = function WorkorderList(props, ref) {
|
|
|
17747
17751
|
};
|
|
17748
17752
|
var WorkorderList$1 = /*#__PURE__*/React.forwardRef(WorkorderList);
|
|
17749
17753
|
|
|
17750
|
-
|
|
17751
|
-
|
|
17752
|
-
|
|
17753
|
-
|
|
17754
|
-
|
|
17755
|
-
|
|
17756
|
-
|
|
17757
|
-
|
|
17758
|
-
|
|
17754
|
+
var goodClassTransformValue = function goodClassTransformValue(value, config) {
|
|
17755
|
+
var label = '';
|
|
17756
|
+
var options = (config === null || config === void 0 ? void 0 : config.options) || [];
|
|
17757
|
+
var labelList = kmkfUtils.findLabelBySelectValue(value, options);
|
|
17758
|
+
var labelItem = labelList === null || labelList === void 0 ? void 0 : labelList.pop();
|
|
17759
|
+
label = labelItem === null || labelItem === void 0 ? void 0 : labelItem.label;
|
|
17760
|
+
return {
|
|
17761
|
+
type: 'anylike',
|
|
17762
|
+
keywords: label
|
|
17763
|
+
};
|
|
17764
|
+
};
|
|
17765
|
+
var goodTypeTransformValue = function goodTypeTransformValue(value) {
|
|
17766
|
+
return (value === null || value === void 0 ? void 0 : value.value) ? [value === null || value === void 0 ? void 0 : value.value] : '';
|
|
17767
|
+
};
|
|
17768
|
+
var relationComponentUniqueKeyMap = {
|
|
17769
|
+
//小白熊自定义组件
|
|
17770
|
+
PCE2Z5TXEVPL5D26I7KMBKMB: {
|
|
17771
|
+
//补发类型
|
|
17772
|
+
goodType: {
|
|
17773
|
+
relationComponentKey: '6hldjQ9aMz',
|
|
17774
|
+
reflectKey: 'C7M9rWJMjD_radio',
|
|
17775
|
+
transformValue: function transformValue(value) {
|
|
17776
|
+
return goodTypeTransformValue(value);
|
|
17777
|
+
}
|
|
17778
|
+
},
|
|
17779
|
+
// 产品分类
|
|
17780
|
+
goodClass: {
|
|
17781
|
+
relationComponentKey: '8gozpyUFtA',
|
|
17782
|
+
reflectKey: '2h8KRbxMjD_input',
|
|
17783
|
+
transformValue: function transformValue(value, config) {
|
|
17784
|
+
return goodClassTransformValue(value, config);
|
|
17785
|
+
}
|
|
17786
|
+
}
|
|
17787
|
+
},
|
|
17788
|
+
// 测马奔腾
|
|
17789
|
+
SZF4ZGWZSNW6PYXMCIFEWBXT: {
|
|
17790
|
+
goodType: {
|
|
17791
|
+
relationComponentKey: 'abVTwFX34E',
|
|
17792
|
+
reflectKey: 'ipOHnYquYB_radio',
|
|
17793
|
+
transformValue: function transformValue(value) {
|
|
17794
|
+
return goodTypeTransformValue(value);
|
|
17795
|
+
}
|
|
17796
|
+
},
|
|
17797
|
+
goodClass: {
|
|
17798
|
+
relationComponentKey: 'U0es1pIDaE',
|
|
17799
|
+
reflectKey: 'K1puYheEaE_input',
|
|
17800
|
+
transformValue: function transformValue(value, config) {
|
|
17801
|
+
return goodClassTransformValue(value, config);
|
|
17802
|
+
}
|
|
17803
|
+
}
|
|
17804
|
+
}
|
|
17805
|
+
};
|
|
17806
|
+
// 该方法只用于小白熊定制,当管易商品/管易补发/管易退换货组件的数据来源于关联工单数据,且其补发类型自定义组件选了值,根据该值填充到商品库弹框中类型筛选项
|
|
17807
|
+
var useDefaultSearchValue = (function (props) {
|
|
17808
|
+
var _Object$entries;
|
|
17809
|
+
var form = props.form,
|
|
17810
|
+
_props$companyKey = props.companyKey,
|
|
17811
|
+
companyKey = _props$companyKey === void 0 ? '' : _props$companyKey,
|
|
17812
|
+
source = props.source,
|
|
17813
|
+
erp = props.erp,
|
|
17814
|
+
_props$templateDetail = props.templateDetail,
|
|
17815
|
+
templateDetail = _props$templateDetail === void 0 ? {} : _props$templateDetail;
|
|
17816
|
+
if (source !== 'workOrder' || erp !== 'gy') {
|
|
17817
|
+
return '';
|
|
17818
|
+
}
|
|
17819
|
+
var result = {};
|
|
17820
|
+
var relationComponentKeyMap = relationComponentUniqueKeyMap === null || relationComponentUniqueKeyMap === void 0 ? void 0 : relationComponentUniqueKeyMap[companyKey];
|
|
17821
|
+
if (!relationComponentKeyMap) {
|
|
17822
|
+
return '';
|
|
17823
|
+
}
|
|
17824
|
+
(_Object$entries = Object.entries(relationComponentKeyMap || {})) === null || _Object$entries === void 0 ? void 0 : _Object$entries.forEach(function (_ref) {
|
|
17825
|
+
var _templateDetail$compo;
|
|
17826
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
17827
|
+
key = _ref2[0],
|
|
17828
|
+
value = _ref2[1];
|
|
17829
|
+
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) {
|
|
17830
|
+
return item.uniqueKey === value.relationComponentKey;
|
|
17831
|
+
});
|
|
17832
|
+
if (!matchComponent) {
|
|
17833
|
+
return;
|
|
17834
|
+
}
|
|
17835
|
+
var relationComponentValue = form === null || form === void 0 ? void 0 : form.getFieldValue(value.relationComponentKey);
|
|
17836
|
+
if (relationComponentValue) {
|
|
17837
|
+
if ((value === null || value === void 0 ? void 0 : value.transformValue) && typeof (value === null || value === void 0 ? void 0 : value.transformValue) === 'function') {
|
|
17838
|
+
var _value$transformValue;
|
|
17839
|
+
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) || {});
|
|
17840
|
+
if (newValue) {
|
|
17841
|
+
result[value.reflectKey] = newValue;
|
|
17842
|
+
}
|
|
17843
|
+
} else {
|
|
17844
|
+
result[value.reflectKey] = relationComponentValue;
|
|
17845
|
+
}
|
|
17846
|
+
}
|
|
17847
|
+
});
|
|
17848
|
+
return result;
|
|
17849
|
+
});
|
|
17850
|
+
|
|
17759
17851
|
var GyGoodsModal$1 = function GyGoodsModal(props, ref) {
|
|
17760
|
-
var _props$
|
|
17852
|
+
var _props$goodsSource2;
|
|
17761
17853
|
var _useState = React.useState(),
|
|
17762
17854
|
_useState2 = _slicedToArray(_useState, 2),
|
|
17763
17855
|
seletedGooods = _useState2[0],
|
|
17764
17856
|
setSeletedGooods = _useState2[1];
|
|
17857
|
+
var onSubmit = props.onSubmit,
|
|
17858
|
+
width = props.width;
|
|
17859
|
+
var _useState3 = React.useState(false),
|
|
17860
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
17861
|
+
visible = _useState4[0],
|
|
17862
|
+
setVisible = _useState4[1];
|
|
17863
|
+
var goodsListRef = React.useRef(null);
|
|
17765
17864
|
React.useImperativeHandle(ref, function () {
|
|
17766
17865
|
return {
|
|
17767
17866
|
open: function open(shopCode, options) {
|
|
@@ -17770,19 +17869,28 @@ var GyGoodsModal$1 = function GyGoodsModal(props, ref) {
|
|
|
17770
17869
|
}
|
|
17771
17870
|
};
|
|
17772
17871
|
});
|
|
17773
|
-
|
|
17774
|
-
|
|
17775
|
-
|
|
17776
|
-
|
|
17777
|
-
|
|
17778
|
-
|
|
17779
|
-
|
|
17872
|
+
React.useEffect(function () {
|
|
17873
|
+
if (visible && goodsListRef.current) {
|
|
17874
|
+
var _props$goodsSource;
|
|
17875
|
+
var defaultSearchValue = useDefaultSearchValue({
|
|
17876
|
+
form: props === null || props === void 0 ? void 0 : props.form,
|
|
17877
|
+
companyKey: props === null || props === void 0 ? void 0 : props.companyKey,
|
|
17878
|
+
source: (_props$goodsSource = props.goodsSource) === null || _props$goodsSource === void 0 ? void 0 : _props$goodsSource.source,
|
|
17879
|
+
erp: 'gy',
|
|
17880
|
+
templateDetail: props === null || props === void 0 ? void 0 : props.templateDetail
|
|
17881
|
+
});
|
|
17882
|
+
if (defaultSearchValue) {
|
|
17883
|
+
var _goodsListRef$current, _goodsListRef$current2;
|
|
17884
|
+
(_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);
|
|
17885
|
+
}
|
|
17886
|
+
}
|
|
17887
|
+
}, [visible]);
|
|
17780
17888
|
var _onCancel = function onCancel() {
|
|
17781
17889
|
setVisible(false);
|
|
17782
17890
|
};
|
|
17783
17891
|
var onOk = function onOk() {
|
|
17784
|
-
var _goodsListRef$
|
|
17785
|
-
var selectedList = ((_goodsListRef$
|
|
17892
|
+
var _goodsListRef$current3;
|
|
17893
|
+
var selectedList = ((_goodsListRef$current3 = goodsListRef.current) === null || _goodsListRef$current3 === void 0 ? void 0 : _goodsListRef$current3.getSelectGoodList()) || [];
|
|
17786
17894
|
onSubmit(selectedList);
|
|
17787
17895
|
_onCancel();
|
|
17788
17896
|
};
|
|
@@ -17797,7 +17905,7 @@ var GyGoodsModal$1 = function GyGoodsModal(props, ref) {
|
|
|
17797
17905
|
},
|
|
17798
17906
|
onOk: onOk,
|
|
17799
17907
|
wrapClassName: "goodModal"
|
|
17800
|
-
}, ((_props$
|
|
17908
|
+
}, ((_props$goodsSource2 = props.goodsSource) === null || _props$goodsSource2 === void 0 ? void 0 : _props$goodsSource2.source) === 'workOrder' ? /*#__PURE__*/React__default['default'].createElement(WorkorderList$1, {
|
|
17801
17909
|
erp: "gy",
|
|
17802
17910
|
goodsSource: props.goodsSource,
|
|
17803
17911
|
seletedGooods: seletedGooods,
|
|
@@ -17836,10 +17944,12 @@ var getTableData$5 = function getTableData(_ref, formData) {
|
|
|
17836
17944
|
};
|
|
17837
17945
|
var searchFormData$4 = [{
|
|
17838
17946
|
label: '规格名称',
|
|
17839
|
-
name: '
|
|
17947
|
+
name: 'skuName',
|
|
17948
|
+
dataIndex: 'specName'
|
|
17840
17949
|
}, {
|
|
17841
17950
|
label: '规格编码',
|
|
17842
|
-
name: '
|
|
17951
|
+
name: 'skuCode',
|
|
17952
|
+
dataIndex: 'specNo'
|
|
17843
17953
|
}, {
|
|
17844
17954
|
label: '商品名称',
|
|
17845
17955
|
name: 'goodName'
|
|
@@ -17885,29 +17995,29 @@ var GoodList$5 = function GoodList(props, ref) {
|
|
|
17885
17995
|
fixed: true,
|
|
17886
17996
|
onSelect: function onSelect(record, selected) {
|
|
17887
17997
|
if (selected) {
|
|
17888
|
-
setSelectIds([].concat(_toConsumableArray(selectIds), [record.
|
|
17998
|
+
setSelectIds([].concat(_toConsumableArray(selectIds), [record.id]));
|
|
17889
17999
|
setSelect([].concat(_toConsumableArray(selectList), [record]));
|
|
17890
18000
|
} else {
|
|
17891
18001
|
setSelectIds(selectIds.filter(function (t) {
|
|
17892
|
-
return t !== record.
|
|
18002
|
+
return t !== record.id;
|
|
17893
18003
|
}));
|
|
17894
18004
|
setSelect(selectList.filter(function (t) {
|
|
17895
|
-
return t.
|
|
18005
|
+
return t.id !== record.id;
|
|
17896
18006
|
}));
|
|
17897
18007
|
}
|
|
17898
18008
|
},
|
|
17899
18009
|
onSelectAll: function onSelectAll(selected, selectedRows, changeRows) {
|
|
17900
18010
|
if (selected) {
|
|
17901
18011
|
setSelectIds([].concat(_toConsumableArray(selectIds), _toConsumableArray(changeRows.map(function (t) {
|
|
17902
|
-
return t.
|
|
18012
|
+
return t.id;
|
|
17903
18013
|
}))));
|
|
17904
18014
|
setSelect([].concat(_toConsumableArray(selectList), _toConsumableArray(changeRows)));
|
|
17905
18015
|
} else {
|
|
17906
18016
|
setSelectIds(lodash.difference(selectIds, changeRows.map(function (t) {
|
|
17907
|
-
return t.
|
|
18017
|
+
return t.id;
|
|
17908
18018
|
})));
|
|
17909
18019
|
var list = lodash.differenceWith(selectList, changeRows, function (arrVal, othVal) {
|
|
17910
|
-
return arrVal.
|
|
18020
|
+
return arrVal.id !== othVal.id;
|
|
17911
18021
|
});
|
|
17912
18022
|
setSelect(list);
|
|
17913
18023
|
}
|
|
@@ -17915,9 +18025,9 @@ var GoodList$5 = function GoodList(props, ref) {
|
|
|
17915
18025
|
getCheckboxProps: function getCheckboxProps(record) {
|
|
17916
18026
|
var options = {
|
|
17917
18027
|
disabled: (props.selectedRows || []).map(function (row) {
|
|
17918
|
-
return row.
|
|
17919
|
-
}).includes(record.
|
|
17920
|
-
name: record.
|
|
18028
|
+
return row.id || row.specId;
|
|
18029
|
+
}).includes(record.id || record.specId),
|
|
18030
|
+
name: record.id
|
|
17921
18031
|
};
|
|
17922
18032
|
return options;
|
|
17923
18033
|
}
|
|
@@ -17925,10 +18035,10 @@ var GoodList$5 = function GoodList(props, ref) {
|
|
|
17925
18035
|
var showTable = function showTable() {
|
|
17926
18036
|
var handleDelete = function handleDelete(record) {
|
|
17927
18037
|
setSelectIds(selectIds.filter(function (t) {
|
|
17928
|
-
return t !== record.
|
|
18038
|
+
return t !== record.id;
|
|
17929
18039
|
}));
|
|
17930
18040
|
setSelect(selectList.filter(function (t) {
|
|
17931
|
-
return t.
|
|
18041
|
+
return t.id !== record.id;
|
|
17932
18042
|
}));
|
|
17933
18043
|
};
|
|
17934
18044
|
var showColumns = [{
|
|
@@ -17952,7 +18062,7 @@ var GoodList$5 = function GoodList(props, ref) {
|
|
|
17952
18062
|
}
|
|
17953
18063
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Table, {
|
|
17954
18064
|
columns: showColumns,
|
|
17955
|
-
rowKey: '
|
|
18065
|
+
rowKey: 'id',
|
|
17956
18066
|
dataSource: selectList,
|
|
17957
18067
|
scroll: {
|
|
17958
18068
|
x: '100%',
|
|
@@ -17981,7 +18091,7 @@ var GoodList$5 = function GoodList(props, ref) {
|
|
|
17981
18091
|
}
|
|
17982
18092
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Table, _objectSpread2({
|
|
17983
18093
|
rowSelection: rowSelection,
|
|
17984
|
-
rowKey: "
|
|
18094
|
+
rowKey: "id",
|
|
17985
18095
|
columns: columns,
|
|
17986
18096
|
scroll: {
|
|
17987
18097
|
x: '100%',
|
|
@@ -18405,10 +18515,10 @@ var getColumns$1 = function getColumns(_ref) {
|
|
|
18405
18515
|
}
|
|
18406
18516
|
}, {
|
|
18407
18517
|
dataIndex: 'share',
|
|
18408
|
-
title: "\
|
|
18518
|
+
title: "\u5747\u644A\u5355\u4EF7",
|
|
18409
18519
|
align: 'center',
|
|
18410
18520
|
ellipsis: true,
|
|
18411
|
-
width:
|
|
18521
|
+
width: 120
|
|
18412
18522
|
}, {
|
|
18413
18523
|
dataIndex: 'type',
|
|
18414
18524
|
title: "\u8D60\u54C1\u7C7B\u578B",
|
|
@@ -18463,12 +18573,29 @@ var renderFieldMap = {
|
|
|
18463
18573
|
},
|
|
18464
18574
|
giftType: function giftType() {
|
|
18465
18575
|
return renderGiftType;
|
|
18576
|
+
},
|
|
18577
|
+
orderPrice: function orderPrice(_ref2) {
|
|
18578
|
+
var disabled = _ref2.disabled,
|
|
18579
|
+
updateHandle = _ref2.updateHandle;
|
|
18580
|
+
return function (val, record, index) {
|
|
18581
|
+
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
18582
|
+
style: {
|
|
18583
|
+
width: 70
|
|
18584
|
+
},
|
|
18585
|
+
value: val,
|
|
18586
|
+
min: 1,
|
|
18587
|
+
precision: 0,
|
|
18588
|
+
onChange: function onChange(num) {
|
|
18589
|
+
return updateHandle(num, index, 'orderPrice');
|
|
18590
|
+
}
|
|
18591
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, (record.num || record.num === 0) && (val || val === 0) ? Number(val * record.num).toFixed(2) : null);
|
|
18592
|
+
};
|
|
18466
18593
|
}
|
|
18467
18594
|
};
|
|
18468
|
-
var getWdtReissueGoodColumns = function getWdtReissueGoodColumns(
|
|
18469
|
-
var disabled =
|
|
18470
|
-
updateHandle =
|
|
18471
|
-
operate =
|
|
18595
|
+
var getWdtReissueGoodColumns = function getWdtReissueGoodColumns(_ref3) {
|
|
18596
|
+
var disabled = _ref3.disabled,
|
|
18597
|
+
updateHandle = _ref3.updateHandle,
|
|
18598
|
+
operate = _ref3.operate;
|
|
18472
18599
|
return getColumnsMap$1()['WDT_REISSUE_GOODS'].map(function (item) {
|
|
18473
18600
|
var newItem = _objectSpread2({
|
|
18474
18601
|
align: 'center',
|
|
@@ -18486,6 +18613,15 @@ var getWdtReissueGoodColumns = function getWdtReissueGoodColumns(_ref2) {
|
|
|
18486
18613
|
});
|
|
18487
18614
|
};
|
|
18488
18615
|
|
|
18616
|
+
function toNum(value) {
|
|
18617
|
+
if (typeof value === 'string') {
|
|
18618
|
+
return value ? +value : void 0;
|
|
18619
|
+
}
|
|
18620
|
+
if (typeof value === 'number') {
|
|
18621
|
+
return value;
|
|
18622
|
+
}
|
|
18623
|
+
return void 0;
|
|
18624
|
+
}
|
|
18489
18625
|
var getColumns$2 = function getColumns(_ref) {
|
|
18490
18626
|
var _ref$text = _ref.text,
|
|
18491
18627
|
text = _ref$text === void 0 ? '' : _ref$text,
|
|
@@ -18496,7 +18632,7 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
18496
18632
|
WDT_REISSUE_GOODS: [{
|
|
18497
18633
|
dataIndex: 'goodId',
|
|
18498
18634
|
title: "\u5546\u54C1ID",
|
|
18499
|
-
width:
|
|
18635
|
+
width: 250,
|
|
18500
18636
|
align: 'center',
|
|
18501
18637
|
ellipsis: true
|
|
18502
18638
|
}, {
|
|
@@ -18519,12 +18655,14 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
18519
18655
|
dataIndex: 'apiGoodsName',
|
|
18520
18656
|
title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
|
|
18521
18657
|
width: 200,
|
|
18522
|
-
align: 'center'
|
|
18658
|
+
align: 'center',
|
|
18659
|
+
ellipsis: true
|
|
18523
18660
|
}, {
|
|
18524
18661
|
dataIndex: 'platformGoodsId',
|
|
18525
18662
|
title: "\u5E73\u53F0\u5546\u54C1ID",
|
|
18526
18663
|
width: 180,
|
|
18527
|
-
align: 'center'
|
|
18664
|
+
align: 'center',
|
|
18665
|
+
ellipsis: true
|
|
18528
18666
|
}, {
|
|
18529
18667
|
dataIndex: 'specId',
|
|
18530
18668
|
title: "SKUID",
|
|
@@ -18551,23 +18689,47 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
18551
18689
|
dataIndex: 'apiSpecName',
|
|
18552
18690
|
title: "\u5E73\u53F0\u89C4\u683C\u540D\u79F0",
|
|
18553
18691
|
width: 200,
|
|
18554
|
-
align: 'center'
|
|
18692
|
+
align: 'center',
|
|
18693
|
+
ellipsis: true
|
|
18555
18694
|
}, {
|
|
18556
18695
|
dataIndex: 'platformSpecId',
|
|
18557
18696
|
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
18558
18697
|
width: 180,
|
|
18559
|
-
align: 'center'
|
|
18698
|
+
align: 'center',
|
|
18699
|
+
ellipsis: true
|
|
18700
|
+
}, {
|
|
18701
|
+
dataIndex: 'brandName',
|
|
18702
|
+
title: "\u54C1\u724C\u540D\u79F0",
|
|
18703
|
+
width: 180,
|
|
18704
|
+
align: 'center',
|
|
18705
|
+
ellipsis: true
|
|
18560
18706
|
}, {
|
|
18561
18707
|
dataIndex: 'orderPrice',
|
|
18562
|
-
title: "\
|
|
18563
|
-
|
|
18564
|
-
|
|
18565
|
-
|
|
18708
|
+
title: "\u8865\u53D1\u91D1\u989D",
|
|
18709
|
+
align: 'center',
|
|
18710
|
+
// render: (val: number, record: any) => {
|
|
18711
|
+
// return (record.num || record.num === 0) && (val || val === 0)
|
|
18712
|
+
// ? Number(val * record.num).toFixed(2)
|
|
18713
|
+
// : null;
|
|
18714
|
+
// },
|
|
18566
18715
|
width: 200
|
|
18567
18716
|
}, {
|
|
18568
18717
|
dataIndex: 'num',
|
|
18569
18718
|
title: "\u6570\u91CF",
|
|
18570
|
-
width: 100
|
|
18719
|
+
width: 100,
|
|
18720
|
+
validator: function validator(_rule, value) {
|
|
18721
|
+
var goodsName = '';
|
|
18722
|
+
if (((value === null || value === void 0 ? void 0 : value.wdtReissueGoods) || []).some(function (goods) {
|
|
18723
|
+
var num = toNum(goods === null || goods === void 0 ? void 0 : goods.num);
|
|
18724
|
+
var res = typeof num === 'number' ? num < 1 : true;
|
|
18725
|
+
if (res) {
|
|
18726
|
+
goodsName = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
|
|
18727
|
+
}
|
|
18728
|
+
return res;
|
|
18729
|
+
})) {
|
|
18730
|
+
return Promise.reject("".concat(goodsName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
18731
|
+
}
|
|
18732
|
+
}
|
|
18571
18733
|
}, {
|
|
18572
18734
|
dataIndex: 'sharePrice',
|
|
18573
18735
|
title: "\u5206\u644A\u4EF7",
|
|
@@ -18584,7 +18746,7 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
18584
18746
|
title: "\u5546\u54C1ID",
|
|
18585
18747
|
align: 'center',
|
|
18586
18748
|
ellipsis: true,
|
|
18587
|
-
width:
|
|
18749
|
+
width: 250
|
|
18588
18750
|
}, {
|
|
18589
18751
|
dataIndex: 'goodNo',
|
|
18590
18752
|
title: "\u5546\u54C1\u7F16\u7801",
|
|
@@ -18605,12 +18767,14 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
18605
18767
|
dataIndex: 'apiGoodsName',
|
|
18606
18768
|
title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
|
|
18607
18769
|
width: 200,
|
|
18608
|
-
align: 'center'
|
|
18770
|
+
align: 'center',
|
|
18771
|
+
ellipsis: true
|
|
18609
18772
|
}, {
|
|
18610
18773
|
dataIndex: 'platformGoodsId',
|
|
18611
18774
|
title: "\u5E73\u53F0\u5546\u54C1ID",
|
|
18612
18775
|
width: 180,
|
|
18613
|
-
align: 'center'
|
|
18776
|
+
align: 'center',
|
|
18777
|
+
ellipsis: true
|
|
18614
18778
|
}, {
|
|
18615
18779
|
dataIndex: 'specId',
|
|
18616
18780
|
title: "".concat(text, "SKUID"),
|
|
@@ -18637,12 +18801,20 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
18637
18801
|
dataIndex: 'apiSpecName',
|
|
18638
18802
|
title: "\u5E73\u53F0\u89C4\u683C\u540D\u79F0",
|
|
18639
18803
|
width: 200,
|
|
18640
|
-
align: 'center'
|
|
18804
|
+
align: 'center',
|
|
18805
|
+
ellipsis: true
|
|
18641
18806
|
}, {
|
|
18642
18807
|
dataIndex: 'platformSpecId',
|
|
18643
18808
|
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
18644
18809
|
width: 180,
|
|
18645
|
-
align: 'center'
|
|
18810
|
+
align: 'center',
|
|
18811
|
+
ellipsis: true
|
|
18812
|
+
}, {
|
|
18813
|
+
dataIndex: 'brandName',
|
|
18814
|
+
title: "\u54C1\u724C\u540D\u79F0",
|
|
18815
|
+
width: 180,
|
|
18816
|
+
align: 'center',
|
|
18817
|
+
ellipsis: true
|
|
18646
18818
|
}, {
|
|
18647
18819
|
dataIndex: 'orderPrice',
|
|
18648
18820
|
title: "\u6210\u4EA4\u603B\u91D1\u989D",
|
|
@@ -18691,7 +18863,7 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
18691
18863
|
title: "\u5546\u54C1ID",
|
|
18692
18864
|
align: 'center',
|
|
18693
18865
|
ellipsis: true,
|
|
18694
|
-
width:
|
|
18866
|
+
width: 250
|
|
18695
18867
|
}, {
|
|
18696
18868
|
dataIndex: 'goodNo',
|
|
18697
18869
|
title: "\u5546\u54C1\u7F16\u7801",
|
|
@@ -18712,12 +18884,14 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
18712
18884
|
dataIndex: 'apiGoodsName',
|
|
18713
18885
|
title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
|
|
18714
18886
|
width: 200,
|
|
18715
|
-
align: 'center'
|
|
18887
|
+
align: 'center',
|
|
18888
|
+
ellipsis: true
|
|
18716
18889
|
}, {
|
|
18717
18890
|
dataIndex: 'platformGoodsId',
|
|
18718
18891
|
title: "\u5E73\u53F0\u5546\u54C1ID",
|
|
18719
18892
|
width: 180,
|
|
18720
|
-
align: 'center'
|
|
18893
|
+
align: 'center',
|
|
18894
|
+
ellipsis: true
|
|
18721
18895
|
}, {
|
|
18722
18896
|
dataIndex: 'specId',
|
|
18723
18897
|
title: "".concat(text, "SKUID"),
|
|
@@ -18744,12 +18918,20 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
18744
18918
|
dataIndex: 'apiSpecName',
|
|
18745
18919
|
title: "\u5E73\u53F0\u89C4\u683C\u540D\u79F0",
|
|
18746
18920
|
width: 200,
|
|
18747
|
-
align: 'center'
|
|
18921
|
+
align: 'center',
|
|
18922
|
+
ellipsis: true
|
|
18748
18923
|
}, {
|
|
18749
18924
|
dataIndex: 'platformSpecId',
|
|
18750
18925
|
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
18751
18926
|
width: 180,
|
|
18752
|
-
align: 'center'
|
|
18927
|
+
align: 'center',
|
|
18928
|
+
ellipsis: true
|
|
18929
|
+
}, {
|
|
18930
|
+
dataIndex: 'brandName',
|
|
18931
|
+
title: "\u54C1\u724C\u540D\u79F0",
|
|
18932
|
+
width: 180,
|
|
18933
|
+
align: 'center',
|
|
18934
|
+
ellipsis: true
|
|
18753
18935
|
}, {
|
|
18754
18936
|
dataIndex: 'num',
|
|
18755
18937
|
title: "".concat(text, "\u9000\u8D27\u6570\u91CF"),
|
|
@@ -18836,7 +19018,7 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
18836
19018
|
title: "\u5546\u54C1ID",
|
|
18837
19019
|
align: 'center',
|
|
18838
19020
|
ellipsis: true,
|
|
18839
|
-
width:
|
|
19021
|
+
width: 250
|
|
18840
19022
|
}, {
|
|
18841
19023
|
dataIndex: 'goodNo',
|
|
18842
19024
|
title: "\u5546\u54C1\u7F16\u7801",
|
|
@@ -18857,12 +19039,14 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
18857
19039
|
dataIndex: 'apiGoodsName',
|
|
18858
19040
|
title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
|
|
18859
19041
|
width: 200,
|
|
18860
|
-
align: 'center'
|
|
19042
|
+
align: 'center',
|
|
19043
|
+
ellipsis: true
|
|
18861
19044
|
}, {
|
|
18862
19045
|
dataIndex: 'platformGoodsId',
|
|
18863
19046
|
title: "\u5E73\u53F0\u5546\u54C1ID",
|
|
18864
19047
|
width: 180,
|
|
18865
|
-
align: 'center'
|
|
19048
|
+
align: 'center',
|
|
19049
|
+
ellipsis: true
|
|
18866
19050
|
}, {
|
|
18867
19051
|
dataIndex: 'specId',
|
|
18868
19052
|
title: "".concat(text, "SKUID"),
|
|
@@ -18889,12 +19073,20 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
18889
19073
|
dataIndex: 'apiSpecName',
|
|
18890
19074
|
title: "\u5E73\u53F0\u89C4\u683C\u540D\u79F0",
|
|
18891
19075
|
width: 200,
|
|
18892
|
-
align: 'center'
|
|
19076
|
+
align: 'center',
|
|
19077
|
+
ellipsis: true
|
|
18893
19078
|
}, {
|
|
18894
19079
|
dataIndex: 'platformSpecId',
|
|
18895
19080
|
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
18896
19081
|
width: 180,
|
|
18897
|
-
align: 'center'
|
|
19082
|
+
align: 'center',
|
|
19083
|
+
ellipsis: true
|
|
19084
|
+
}, {
|
|
19085
|
+
dataIndex: 'brandName',
|
|
19086
|
+
title: "\u54C1\u724C\u540D\u79F0",
|
|
19087
|
+
width: 180,
|
|
19088
|
+
align: 'center',
|
|
19089
|
+
ellipsis: true
|
|
18898
19090
|
}, {
|
|
18899
19091
|
dataIndex: 'num',
|
|
18900
19092
|
title: "".concat(text, "\u6362\u51FA\u6570\u91CF"),
|
|
@@ -19132,7 +19324,7 @@ var getYesOrNo$3 = function getYesOrNo(val) {
|
|
|
19132
19324
|
if (kmkfUtils.isNull(val)) return null;
|
|
19133
19325
|
return val ? '是' : '否';
|
|
19134
19326
|
};
|
|
19135
|
-
function toNum(value) {
|
|
19327
|
+
function toNum$1(value) {
|
|
19136
19328
|
if (typeof value === 'string') {
|
|
19137
19329
|
return value ? +value : void 0;
|
|
19138
19330
|
}
|
|
@@ -19301,7 +19493,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
19301
19493
|
validator: function validator(_rule, value) {
|
|
19302
19494
|
var goodsName = '';
|
|
19303
19495
|
if (((value === null || value === void 0 ? void 0 : value.gyReissueGoods) || []).some(function (goods) {
|
|
19304
|
-
var qty = toNum(goods === null || goods === void 0 ? void 0 : goods.qty);
|
|
19496
|
+
var qty = toNum$1(goods === null || goods === void 0 ? void 0 : goods.qty);
|
|
19305
19497
|
var res = typeof qty === 'number' ? qty < 1 : true;
|
|
19306
19498
|
if (res) {
|
|
19307
19499
|
goodsName = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
|
|
@@ -19417,7 +19609,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
19417
19609
|
validator: function validator(_rule, value) {
|
|
19418
19610
|
var goodsName = '';
|
|
19419
19611
|
if (((value === null || value === void 0 ? void 0 : value.gyReturnGoods) || []).some(function (goods) {
|
|
19420
|
-
var qty = toNum(goods === null || goods === void 0 ? void 0 : goods.qty);
|
|
19612
|
+
var qty = toNum$1(goods === null || goods === void 0 ? void 0 : goods.qty);
|
|
19421
19613
|
var res = typeof qty === 'number' ? qty < 1 : true;
|
|
19422
19614
|
if (res) {
|
|
19423
19615
|
goodsName = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
|
|
@@ -19518,7 +19710,7 @@ var fillAttrs = function fillAttrs(item) {
|
|
|
19518
19710
|
if (!item.align) item.align = 'center';
|
|
19519
19711
|
return item;
|
|
19520
19712
|
};
|
|
19521
|
-
function toNum$
|
|
19713
|
+
function toNum$2(value) {
|
|
19522
19714
|
if (typeof value === 'string') {
|
|
19523
19715
|
return value ? +value : void 0;
|
|
19524
19716
|
}
|
|
@@ -19710,19 +19902,21 @@ var getColumns$5 = function getColumns() {
|
|
|
19710
19902
|
ellipsis: true,
|
|
19711
19903
|
align: 'center',
|
|
19712
19904
|
width: 120,
|
|
19713
|
-
validator:
|
|
19714
|
-
|
|
19715
|
-
|
|
19716
|
-
|
|
19717
|
-
|
|
19718
|
-
|
|
19719
|
-
|
|
19720
|
-
|
|
19721
|
-
|
|
19722
|
-
|
|
19723
|
-
|
|
19724
|
-
|
|
19725
|
-
}
|
|
19905
|
+
// validator: (_rule: any, value: any) => {
|
|
19906
|
+
// let goodsName = '';
|
|
19907
|
+
// if (
|
|
19908
|
+
// (value?.jstReissueGoods || []).some((goods: any) => {
|
|
19909
|
+
// const v = toNum(goods?.salePrice);
|
|
19910
|
+
// const res = typeof v === 'number' ? v < 0 : true;
|
|
19911
|
+
// if (res) {
|
|
19912
|
+
// goodsName = goods?.name ? `[${goods?.name}]` : '';
|
|
19913
|
+
// }
|
|
19914
|
+
// return res;
|
|
19915
|
+
// })
|
|
19916
|
+
// ) {
|
|
19917
|
+
// return Promise.reject(`${goodsName}单价为大于等于0的数`);
|
|
19918
|
+
// }
|
|
19919
|
+
// },
|
|
19726
19920
|
render: function render(val, record, index) {
|
|
19727
19921
|
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
19728
19922
|
style: {
|
|
@@ -19745,7 +19939,7 @@ var getColumns$5 = function getColumns() {
|
|
|
19745
19939
|
validator: function validator(_rule, value) {
|
|
19746
19940
|
var goodsName = '';
|
|
19747
19941
|
if (((value === null || value === void 0 ? void 0 : value.jstReissueGoods) || []).some(function (goods) {
|
|
19748
|
-
var qty = toNum$
|
|
19942
|
+
var qty = toNum$2(goods === null || goods === void 0 ? void 0 : goods.qty);
|
|
19749
19943
|
var res = typeof qty === 'number' ? qty < 1 : true;
|
|
19750
19944
|
if (res) {
|
|
19751
19945
|
goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
|
|
@@ -19842,7 +20036,7 @@ var getColumns$5 = function getColumns() {
|
|
|
19842
20036
|
validator: function validator(_rule, value) {
|
|
19843
20037
|
var goodsName = '';
|
|
19844
20038
|
if (((value === null || value === void 0 ? void 0 : value.jstReturnGoods) || []).some(function (goods) {
|
|
19845
|
-
var v = toNum$
|
|
20039
|
+
var v = toNum$2(goods === null || goods === void 0 ? void 0 : goods.salePrice);
|
|
19846
20040
|
var res = typeof v === 'number' ? v < 0 : true;
|
|
19847
20041
|
if (res) {
|
|
19848
20042
|
goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
|
|
@@ -19872,7 +20066,7 @@ var getColumns$5 = function getColumns() {
|
|
|
19872
20066
|
validator: function validator(_rule, value) {
|
|
19873
20067
|
var goodsName = '';
|
|
19874
20068
|
if (((value === null || value === void 0 ? void 0 : value.jstReturnGoods) || []).some(function (goods) {
|
|
19875
|
-
var qty = toNum$
|
|
20069
|
+
var qty = toNum$2(goods === null || goods === void 0 ? void 0 : goods.qty);
|
|
19876
20070
|
var res = typeof qty === 'number' ? qty < 1 : true;
|
|
19877
20071
|
if (res) {
|
|
19878
20072
|
goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
|
|
@@ -20047,7 +20241,7 @@ var getColumns$5 = function getColumns() {
|
|
|
20047
20241
|
};
|
|
20048
20242
|
};
|
|
20049
20243
|
|
|
20050
|
-
function toNum$
|
|
20244
|
+
function toNum$3(value) {
|
|
20051
20245
|
if (typeof value === 'string') {
|
|
20052
20246
|
return value ? +value : void 0;
|
|
20053
20247
|
}
|
|
@@ -20193,7 +20387,7 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
20193
20387
|
validator: function validator(_rule, value) {
|
|
20194
20388
|
var title = '';
|
|
20195
20389
|
if (((value === null || value === void 0 ? void 0 : value.kmReissueGoods) || []).some(function (goods) {
|
|
20196
|
-
var realNum = toNum$
|
|
20390
|
+
var realNum = toNum$3(goods === null || goods === void 0 ? void 0 : goods.realNum);
|
|
20197
20391
|
var res = typeof realNum === 'number' ? realNum < 1 : true;
|
|
20198
20392
|
if (res) {
|
|
20199
20393
|
title = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
|
|
@@ -20234,15 +20428,201 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
20234
20428
|
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
20235
20429
|
}
|
|
20236
20430
|
}, {
|
|
20237
|
-
dataIndex: 'price',
|
|
20238
|
-
title: "\u5546\u54C1\u9500\u552E\u4EF7",
|
|
20239
|
-
width: 150,
|
|
20240
|
-
render: function render(val) {
|
|
20241
|
-
return val || val === 0 ? Number(val).toFixed(2) : '';
|
|
20242
|
-
}
|
|
20243
|
-
}, {
|
|
20244
|
-
dataIndex: 'payment',
|
|
20245
|
-
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
20431
|
+
dataIndex: 'price',
|
|
20432
|
+
title: "\u5546\u54C1\u9500\u552E\u4EF7",
|
|
20433
|
+
width: 150,
|
|
20434
|
+
render: function render(val) {
|
|
20435
|
+
return val || val === 0 ? Number(val).toFixed(2) : '';
|
|
20436
|
+
}
|
|
20437
|
+
}, {
|
|
20438
|
+
dataIndex: 'payment',
|
|
20439
|
+
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
20440
|
+
width: 150,
|
|
20441
|
+
render: function render(val, record, index) {
|
|
20442
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
20443
|
+
style: {
|
|
20444
|
+
width: 130
|
|
20445
|
+
},
|
|
20446
|
+
value: val,
|
|
20447
|
+
min: 0,
|
|
20448
|
+
precision: 2,
|
|
20449
|
+
onChange: function onChange(num) {
|
|
20450
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'payment');
|
|
20451
|
+
}
|
|
20452
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
|
|
20453
|
+
}
|
|
20454
|
+
}, {
|
|
20455
|
+
dataIndex: 'type',
|
|
20456
|
+
title: "\u5546\u54C1\u7C7B\u578B",
|
|
20457
|
+
width: 150
|
|
20458
|
+
}, {
|
|
20459
|
+
dataIndex: 'sysPicPath',
|
|
20460
|
+
title: "\u5546\u54C1\u56FE\u7247",
|
|
20461
|
+
width: 100,
|
|
20462
|
+
render: function render(val) {
|
|
20463
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Image, {
|
|
20464
|
+
width: 60,
|
|
20465
|
+
src: val
|
|
20466
|
+
});
|
|
20467
|
+
}
|
|
20468
|
+
}].map(function (item) {
|
|
20469
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
20470
|
+
align: 'center',
|
|
20471
|
+
ellipsis: true
|
|
20472
|
+
});
|
|
20473
|
+
})
|
|
20474
|
+
};
|
|
20475
|
+
};
|
|
20476
|
+
|
|
20477
|
+
var isNumberOrNumberString$1 = function isNumberOrNumberString(value) {
|
|
20478
|
+
if (typeof value === 'number') return true;
|
|
20479
|
+
if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
|
|
20480
|
+
return false;
|
|
20481
|
+
};
|
|
20482
|
+
function toNum$4(value) {
|
|
20483
|
+
if (typeof value === 'string') {
|
|
20484
|
+
return value ? +value : void 0;
|
|
20485
|
+
}
|
|
20486
|
+
if (typeof value === 'number') {
|
|
20487
|
+
return value;
|
|
20488
|
+
}
|
|
20489
|
+
return void 0;
|
|
20490
|
+
}
|
|
20491
|
+
var getColumns$7 = function getColumns(_ref) {
|
|
20492
|
+
var _ref$text = _ref.text,
|
|
20493
|
+
disabled = _ref.disabled,
|
|
20494
|
+
updateHandle = _ref.updateHandle,
|
|
20495
|
+
updateDataHandle = _ref.updateDataHandle;
|
|
20496
|
+
return {
|
|
20497
|
+
//巨益商品信息
|
|
20498
|
+
JY_GOODS: [{
|
|
20499
|
+
dataIndex: 'productName',
|
|
20500
|
+
title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
|
|
20501
|
+
align: 'center',
|
|
20502
|
+
ellipsis: true,
|
|
20503
|
+
width: 150
|
|
20504
|
+
}, {
|
|
20505
|
+
dataIndex: 'productCode',
|
|
20506
|
+
title: "\u7CFB\u7EDF\u5546\u54C1\u7F16\u7801",
|
|
20507
|
+
align: 'center',
|
|
20508
|
+
ellipsis: true,
|
|
20509
|
+
width: 150
|
|
20510
|
+
}, {
|
|
20511
|
+
dataIndex: 'productId',
|
|
20512
|
+
title: "\u7CFB\u7EDF\u5546\u54C1ID",
|
|
20513
|
+
align: 'center',
|
|
20514
|
+
ellipsis: true,
|
|
20515
|
+
width: 150
|
|
20516
|
+
}, {
|
|
20517
|
+
dataIndex: 'skuName',
|
|
20518
|
+
title: "\u7CFB\u7EDF\u89C4\u683C\u540D\u79F0",
|
|
20519
|
+
align: 'center',
|
|
20520
|
+
ellipsis: true,
|
|
20521
|
+
width: 150
|
|
20522
|
+
}, {
|
|
20523
|
+
dataIndex: 'skuCode',
|
|
20524
|
+
title: "\u7CFB\u7EDF\u89C4\u683C\u7F16\u7801",
|
|
20525
|
+
align: 'center',
|
|
20526
|
+
ellipsis: true,
|
|
20527
|
+
width: 150
|
|
20528
|
+
}, {
|
|
20529
|
+
dataIndex: 'specId',
|
|
20530
|
+
title: "\u89C4\u683CID",
|
|
20531
|
+
align: 'center',
|
|
20532
|
+
ellipsis: true,
|
|
20533
|
+
width: 150
|
|
20534
|
+
},
|
|
20535
|
+
// {
|
|
20536
|
+
// dataIndex: 'goodsName',
|
|
20537
|
+
// title: `货品名称`,
|
|
20538
|
+
// width: 250,
|
|
20539
|
+
// },
|
|
20540
|
+
// {
|
|
20541
|
+
// dataIndex: 'goodsCode',
|
|
20542
|
+
// title: `货品编号`,
|
|
20543
|
+
// width: 200,
|
|
20544
|
+
// },
|
|
20545
|
+
// {
|
|
20546
|
+
// dataIndex: 'goodsId',
|
|
20547
|
+
// title: `货品ID`,
|
|
20548
|
+
// width: 150,
|
|
20549
|
+
// },
|
|
20550
|
+
{
|
|
20551
|
+
dataIndex: 'goodsClass',
|
|
20552
|
+
title: "\u8D27\u54C1\u7C7B\u522B",
|
|
20553
|
+
width: 150
|
|
20554
|
+
}, {
|
|
20555
|
+
dataIndex: 'code',
|
|
20556
|
+
title: "\u6761\u7801",
|
|
20557
|
+
width: 150
|
|
20558
|
+
},
|
|
20559
|
+
// {
|
|
20560
|
+
// dataIndex: 'specName',
|
|
20561
|
+
// title: `规格名称`,
|
|
20562
|
+
// align: 'center',
|
|
20563
|
+
// ellipsis: true,
|
|
20564
|
+
// width: 200,
|
|
20565
|
+
// },
|
|
20566
|
+
// {
|
|
20567
|
+
// dataIndex: 'specCode',
|
|
20568
|
+
// title: `规格编号`,
|
|
20569
|
+
// align: 'center',
|
|
20570
|
+
// ellipsis: true,
|
|
20571
|
+
// width: 150,
|
|
20572
|
+
// },
|
|
20573
|
+
{
|
|
20574
|
+
dataIndex: 'mallProductName',
|
|
20575
|
+
title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
|
|
20576
|
+
align: 'center',
|
|
20577
|
+
ellipsis: true,
|
|
20578
|
+
width: 250
|
|
20579
|
+
}, {
|
|
20580
|
+
dataIndex: 'mallProductOutCode',
|
|
20581
|
+
title: "\u5E73\u53F0\u5546\u54C1\u7F16\u7801",
|
|
20582
|
+
align: 'center',
|
|
20583
|
+
ellipsis: true,
|
|
20584
|
+
width: 150
|
|
20585
|
+
}, {
|
|
20586
|
+
dataIndex: 'mallProductId',
|
|
20587
|
+
title: "\u5E73\u53F0\u5546\u54C1ID",
|
|
20588
|
+
align: 'center',
|
|
20589
|
+
ellipsis: true,
|
|
20590
|
+
width: 250
|
|
20591
|
+
}, {
|
|
20592
|
+
dataIndex: 'mallSkuName',
|
|
20593
|
+
title: "\u5E73\u53F0\u89C4\u683C\u540D\u79F0",
|
|
20594
|
+
align: 'center',
|
|
20595
|
+
ellipsis: true,
|
|
20596
|
+
width: 250
|
|
20597
|
+
}, {
|
|
20598
|
+
dataIndex: 'mallSkuId',
|
|
20599
|
+
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
20600
|
+
align: 'center',
|
|
20601
|
+
ellipsis: true,
|
|
20602
|
+
width: 250
|
|
20603
|
+
}, {
|
|
20604
|
+
dataIndex: 'sellCount',
|
|
20605
|
+
title: "\u6570\u91CF",
|
|
20606
|
+
width: 100,
|
|
20607
|
+
render: function render(val, record, index) {
|
|
20608
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
20609
|
+
style: {
|
|
20610
|
+
width: 70
|
|
20611
|
+
},
|
|
20612
|
+
value: val,
|
|
20613
|
+
min: 1,
|
|
20614
|
+
precision: 0,
|
|
20615
|
+
onChange: function onChange(num) {
|
|
20616
|
+
updateDataHandle({
|
|
20617
|
+
sellCount: num,
|
|
20618
|
+
sellTotal: num && isNumberOrNumberString$1(record.sellPrice) ? num * record.sellPrice : null
|
|
20619
|
+
}, index);
|
|
20620
|
+
}
|
|
20621
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
20622
|
+
}
|
|
20623
|
+
}, {
|
|
20624
|
+
dataIndex: 'sellPrice',
|
|
20625
|
+
title: "\u5355\u4EF7",
|
|
20246
20626
|
width: 150,
|
|
20247
20627
|
render: function render(val, record, index) {
|
|
20248
20628
|
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
@@ -20253,88 +20633,95 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
20253
20633
|
min: 0,
|
|
20254
20634
|
precision: 2,
|
|
20255
20635
|
onChange: function onChange(num) {
|
|
20256
|
-
|
|
20636
|
+
updateDataHandle({
|
|
20637
|
+
sellPrice: num,
|
|
20638
|
+
sellTotal: num && isNumberOrNumberString$1(record.sellCount) ? num * record.sellCount : null
|
|
20639
|
+
}, index);
|
|
20257
20640
|
}
|
|
20258
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val
|
|
20641
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
20259
20642
|
}
|
|
20260
20643
|
}, {
|
|
20261
|
-
dataIndex: '
|
|
20262
|
-
title: "\u5546\u54C1\
|
|
20263
|
-
width: 150
|
|
20264
|
-
}, {
|
|
20265
|
-
dataIndex: 'sysPicPath',
|
|
20266
|
-
title: "\u5546\u54C1\u56FE\u7247",
|
|
20267
|
-
width: 100,
|
|
20268
|
-
render: function render(val) {
|
|
20269
|
-
return /*#__PURE__*/React__default['default'].createElement(antd.Image, {
|
|
20270
|
-
width: 60,
|
|
20271
|
-
src: val
|
|
20272
|
-
});
|
|
20273
|
-
}
|
|
20274
|
-
}].map(function (item) {
|
|
20275
|
-
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
20276
|
-
align: 'center',
|
|
20277
|
-
ellipsis: true
|
|
20278
|
-
});
|
|
20279
|
-
})
|
|
20280
|
-
};
|
|
20281
|
-
};
|
|
20282
|
-
|
|
20283
|
-
var isNumberOrNumberString$1 = function isNumberOrNumberString(value) {
|
|
20284
|
-
if (typeof value === 'number') return true;
|
|
20285
|
-
if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
|
|
20286
|
-
return false;
|
|
20287
|
-
};
|
|
20288
|
-
var getYesOrNo$4 = function getYesOrNo(val) {
|
|
20289
|
-
if (kmkfUtils.isNull(val)) return null;
|
|
20290
|
-
return val ? '是' : '否';
|
|
20291
|
-
};
|
|
20292
|
-
var getColumns$7 = function getColumns(_ref) {
|
|
20293
|
-
var _ref$text = _ref.text,
|
|
20294
|
-
disabled = _ref.disabled,
|
|
20295
|
-
updateHandle = _ref.updateHandle,
|
|
20296
|
-
updateDataHandle = _ref.updateDataHandle;
|
|
20297
|
-
return {
|
|
20298
|
-
//巨益商品信息
|
|
20299
|
-
JY_GOODS: [{
|
|
20300
|
-
dataIndex: 'goodsName',
|
|
20301
|
-
title: "\u8D27\u54C1\u540D\u79F0",
|
|
20644
|
+
dataIndex: 'mallSellingPrice',
|
|
20645
|
+
title: "\u5E73\u53F0\u5546\u54C1\u4EF7\u683C",
|
|
20302
20646
|
width: 150
|
|
20303
20647
|
}, {
|
|
20304
|
-
dataIndex: '
|
|
20305
|
-
title: "\
|
|
20306
|
-
width: 200
|
|
20307
|
-
}, {
|
|
20308
|
-
dataIndex: 'goodsId',
|
|
20309
|
-
title: "\u8D27\u54C1ID",
|
|
20648
|
+
dataIndex: 'sellTotal',
|
|
20649
|
+
title: "\u91D1\u989D",
|
|
20310
20650
|
width: 150
|
|
20311
20651
|
}, {
|
|
20312
|
-
dataIndex: '
|
|
20313
|
-
title: "\
|
|
20652
|
+
dataIndex: 'settlementPrice',
|
|
20653
|
+
title: "\u7ED3\u7B97\u4EF7",
|
|
20314
20654
|
width: 150
|
|
20315
20655
|
}, {
|
|
20316
|
-
dataIndex: '
|
|
20317
|
-
title: "\
|
|
20656
|
+
dataIndex: 'divideOrderFee',
|
|
20657
|
+
title: "\u5206\u644A\u5B9E\u4ED8\u91D1\u989D",
|
|
20318
20658
|
width: 150
|
|
20319
20659
|
}, {
|
|
20320
|
-
dataIndex: '
|
|
20321
|
-
title: "\
|
|
20322
|
-
|
|
20323
|
-
|
|
20324
|
-
|
|
20660
|
+
dataIndex: 'bfit',
|
|
20661
|
+
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
20662
|
+
width: 150,
|
|
20663
|
+
render: function render(val, record, index) {
|
|
20664
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
20665
|
+
dropdownStyle: {
|
|
20666
|
+
zIndex: 2000
|
|
20667
|
+
},
|
|
20668
|
+
getPopupContainer: function getPopupContainer() {
|
|
20669
|
+
return document.body;
|
|
20670
|
+
},
|
|
20671
|
+
value: val,
|
|
20672
|
+
onChange: function onChange(value) {
|
|
20673
|
+
updateHandle(value, index, 'bfit');
|
|
20674
|
+
},
|
|
20675
|
+
options: [{
|
|
20676
|
+
label: '是',
|
|
20677
|
+
value: 'True'
|
|
20678
|
+
}, {
|
|
20679
|
+
label: '否',
|
|
20680
|
+
value: 'False'
|
|
20681
|
+
}]
|
|
20682
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val === 'True' ? '是' : '否');
|
|
20683
|
+
}
|
|
20325
20684
|
}, {
|
|
20326
|
-
dataIndex: '
|
|
20327
|
-
title: "\
|
|
20328
|
-
align: 'center',
|
|
20329
|
-
ellipsis: true,
|
|
20685
|
+
dataIndex: 'combinationName',
|
|
20686
|
+
title: "\u7EC4\u5408\u5546\u54C1\u540D\u79F0",
|
|
20330
20687
|
width: 150
|
|
20331
20688
|
}, {
|
|
20332
|
-
dataIndex: '
|
|
20333
|
-
title: "\
|
|
20334
|
-
align: 'center',
|
|
20335
|
-
ellipsis: true,
|
|
20689
|
+
dataIndex: 'combinationCode',
|
|
20690
|
+
title: "\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
|
|
20336
20691
|
width: 150
|
|
20337
20692
|
}, {
|
|
20693
|
+
dataIndex: 'gift',
|
|
20694
|
+
title: "\u662F\u5426\u8D60\u54C1",
|
|
20695
|
+
width: 150,
|
|
20696
|
+
render: function render(val, record, index) {
|
|
20697
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
20698
|
+
dropdownStyle: {
|
|
20699
|
+
zIndex: 2000
|
|
20700
|
+
},
|
|
20701
|
+
getPopupContainer: function getPopupContainer() {
|
|
20702
|
+
return document.body;
|
|
20703
|
+
},
|
|
20704
|
+
value: val,
|
|
20705
|
+
onChange: function onChange(value) {
|
|
20706
|
+
updateHandle(value, index, 'gift');
|
|
20707
|
+
},
|
|
20708
|
+
options: [{
|
|
20709
|
+
label: '是',
|
|
20710
|
+
value: '1'
|
|
20711
|
+
}, {
|
|
20712
|
+
label: '否',
|
|
20713
|
+
value: '0'
|
|
20714
|
+
}]
|
|
20715
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val === '1' ? '是' : '否');
|
|
20716
|
+
}
|
|
20717
|
+
}].map(function (item) {
|
|
20718
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
20719
|
+
align: 'center',
|
|
20720
|
+
ellipsis: true
|
|
20721
|
+
});
|
|
20722
|
+
}),
|
|
20723
|
+
// 巨益补发商品信息
|
|
20724
|
+
JY_REISSUE_GOODS: [{
|
|
20338
20725
|
dataIndex: 'productName',
|
|
20339
20726
|
title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
|
|
20340
20727
|
align: 'center',
|
|
@@ -20364,6 +20751,20 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
20364
20751
|
align: 'center',
|
|
20365
20752
|
ellipsis: true,
|
|
20366
20753
|
width: 150
|
|
20754
|
+
}, {
|
|
20755
|
+
dataIndex: 'specId',
|
|
20756
|
+
title: "\u89C4\u683CID",
|
|
20757
|
+
align: 'center',
|
|
20758
|
+
ellipsis: true,
|
|
20759
|
+
width: 150
|
|
20760
|
+
}, {
|
|
20761
|
+
dataIndex: 'goodsClass',
|
|
20762
|
+
title: "\u8D27\u54C1\u7C7B\u522B",
|
|
20763
|
+
width: 150
|
|
20764
|
+
}, {
|
|
20765
|
+
dataIndex: 'code',
|
|
20766
|
+
title: "\u6761\u7801",
|
|
20767
|
+
width: 150
|
|
20367
20768
|
}, {
|
|
20368
20769
|
dataIndex: 'mallProductName',
|
|
20369
20770
|
title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
|
|
@@ -20398,6 +20799,19 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
20398
20799
|
dataIndex: 'sellCount',
|
|
20399
20800
|
title: "\u6570\u91CF",
|
|
20400
20801
|
width: 100,
|
|
20802
|
+
validator: function validator(_rule, value) {
|
|
20803
|
+
var productName = '';
|
|
20804
|
+
if (((value === null || value === void 0 ? void 0 : value.jyReissueGoods) || []).some(function (goods) {
|
|
20805
|
+
var qty = toNum$4(goods === null || goods === void 0 ? void 0 : goods.sellCount);
|
|
20806
|
+
var res = typeof qty === 'number' ? qty < 1 : true;
|
|
20807
|
+
if (res) {
|
|
20808
|
+
productName = (goods === null || goods === void 0 ? void 0 : goods.productName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.productName, "]") : '';
|
|
20809
|
+
}
|
|
20810
|
+
return res;
|
|
20811
|
+
})) {
|
|
20812
|
+
return Promise.reject("".concat(productName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
20813
|
+
}
|
|
20814
|
+
},
|
|
20401
20815
|
render: function render(val, record, index) {
|
|
20402
20816
|
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
20403
20817
|
style: {
|
|
@@ -20408,9 +20822,8 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
20408
20822
|
precision: 0,
|
|
20409
20823
|
onChange: function onChange(num) {
|
|
20410
20824
|
updateDataHandle({
|
|
20411
|
-
|
|
20412
|
-
|
|
20413
|
-
originAmount: num && isNumberOrNumberString$1(record.originPrice) ? num * record.originPrice : null
|
|
20825
|
+
sellCount: num,
|
|
20826
|
+
sellTotal: num && isNumberOrNumberString$1(record.sellPrice) ? num * record.sellPrice : null
|
|
20414
20827
|
}, index);
|
|
20415
20828
|
}
|
|
20416
20829
|
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
@@ -20429,8 +20842,8 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
20429
20842
|
precision: 2,
|
|
20430
20843
|
onChange: function onChange(num) {
|
|
20431
20844
|
updateDataHandle({
|
|
20432
|
-
|
|
20433
|
-
|
|
20845
|
+
sellPrice: num,
|
|
20846
|
+
sellTotal: num && isNumberOrNumberString$1(record.sellCount) ? num * record.sellCount : null
|
|
20434
20847
|
}, index);
|
|
20435
20848
|
}
|
|
20436
20849
|
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
@@ -20443,32 +20856,30 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
20443
20856
|
dataIndex: 'sellTotal',
|
|
20444
20857
|
title: "\u91D1\u989D",
|
|
20445
20858
|
width: 150
|
|
20446
|
-
}, {
|
|
20447
|
-
dataIndex: 'settlementPrice',
|
|
20448
|
-
title: "\u7ED3\u7B97\u4EF7",
|
|
20449
|
-
width: 150
|
|
20450
|
-
}, {
|
|
20451
|
-
dataIndex: 'divideOrderFee',
|
|
20452
|
-
title: "\u5206\u644A\u5B9E\u4ED8\u91D1\u989D",
|
|
20453
|
-
width: 150
|
|
20454
20859
|
}, {
|
|
20455
20860
|
dataIndex: 'bfit',
|
|
20456
20861
|
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
20457
20862
|
width: 150,
|
|
20458
20863
|
render: function render(val, record, index) {
|
|
20459
20864
|
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
20865
|
+
dropdownStyle: {
|
|
20866
|
+
zIndex: 2000
|
|
20867
|
+
},
|
|
20868
|
+
getPopupContainer: function getPopupContainer() {
|
|
20869
|
+
return document.body;
|
|
20870
|
+
},
|
|
20460
20871
|
value: val,
|
|
20461
20872
|
onChange: function onChange(value) {
|
|
20462
20873
|
updateHandle(value, index, 'bfit');
|
|
20463
20874
|
},
|
|
20464
20875
|
options: [{
|
|
20465
20876
|
label: '是',
|
|
20466
|
-
value:
|
|
20877
|
+
value: 'True'
|
|
20467
20878
|
}, {
|
|
20468
20879
|
label: '否',
|
|
20469
|
-
value:
|
|
20880
|
+
value: 'False'
|
|
20470
20881
|
}]
|
|
20471
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null,
|
|
20882
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val === 'True' ? '是' : '否');
|
|
20472
20883
|
}
|
|
20473
20884
|
}, {
|
|
20474
20885
|
dataIndex: 'combinationName',
|
|
@@ -20484,18 +20895,24 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
20484
20895
|
width: 150,
|
|
20485
20896
|
render: function render(val, record, index) {
|
|
20486
20897
|
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
20898
|
+
dropdownStyle: {
|
|
20899
|
+
zIndex: 2000
|
|
20900
|
+
},
|
|
20901
|
+
getPopupContainer: function getPopupContainer() {
|
|
20902
|
+
return document.body;
|
|
20903
|
+
},
|
|
20487
20904
|
value: val,
|
|
20488
20905
|
onChange: function onChange(value) {
|
|
20489
20906
|
updateHandle(value, index, 'gift');
|
|
20490
20907
|
},
|
|
20491
20908
|
options: [{
|
|
20492
20909
|
label: '是',
|
|
20493
|
-
value: 1
|
|
20910
|
+
value: '1'
|
|
20494
20911
|
}, {
|
|
20495
20912
|
label: '否',
|
|
20496
|
-
value: 0
|
|
20913
|
+
value: '0'
|
|
20497
20914
|
}]
|
|
20498
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null,
|
|
20915
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val === '1' ? '是' : '否');
|
|
20499
20916
|
}
|
|
20500
20917
|
}].map(function (item) {
|
|
20501
20918
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
@@ -20503,300 +20920,6 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
20503
20920
|
ellipsis: true
|
|
20504
20921
|
});
|
|
20505
20922
|
})
|
|
20506
|
-
//巨益补发商品信息
|
|
20507
|
-
// JY_REISSUE_GOODS: [
|
|
20508
|
-
// {
|
|
20509
|
-
// dataIndex: 'goodName',
|
|
20510
|
-
// title: `商品名称`,
|
|
20511
|
-
// width: 150,
|
|
20512
|
-
// },
|
|
20513
|
-
// {
|
|
20514
|
-
// dataIndex: 'goodShortName',
|
|
20515
|
-
// title: `商品简称`,
|
|
20516
|
-
// width: 150,
|
|
20517
|
-
// },
|
|
20518
|
-
// {
|
|
20519
|
-
// dataIndex: 'goodNo',
|
|
20520
|
-
// title: `商品编码`,
|
|
20521
|
-
// width: 200,
|
|
20522
|
-
// },
|
|
20523
|
-
// {
|
|
20524
|
-
// dataIndex: 'specName',
|
|
20525
|
-
// title: `SKU名称`,
|
|
20526
|
-
// align: 'center',
|
|
20527
|
-
// ellipsis: true,
|
|
20528
|
-
// width: 250,
|
|
20529
|
-
// },
|
|
20530
|
-
// {
|
|
20531
|
-
// dataIndex: 'specNo',
|
|
20532
|
-
// title: `SKU编码`,
|
|
20533
|
-
// align: 'center',
|
|
20534
|
-
// ellipsis: true,
|
|
20535
|
-
// width: 150,
|
|
20536
|
-
// },
|
|
20537
|
-
// {
|
|
20538
|
-
// dataIndex: 'qty',
|
|
20539
|
-
// title: `数量`,
|
|
20540
|
-
// width: 100,
|
|
20541
|
-
// validator: (_rule: any, value: any) => {
|
|
20542
|
-
// let goodsName = '';
|
|
20543
|
-
// if (
|
|
20544
|
-
// (value?.gyReissueGoods || []).some((goods: any) => {
|
|
20545
|
-
// const qty = toNum(goods?.qty);
|
|
20546
|
-
// const res = typeof qty === 'number' ? qty < 1 : true;
|
|
20547
|
-
// if (res) {
|
|
20548
|
-
// goodsName = goods?.goodName ? `[${goods?.goodName}]` : '';
|
|
20549
|
-
// }
|
|
20550
|
-
// return res;
|
|
20551
|
-
// })
|
|
20552
|
-
// ) {
|
|
20553
|
-
// return Promise.reject(`${goodsName}数量必须大于0`);
|
|
20554
|
-
// }
|
|
20555
|
-
// },
|
|
20556
|
-
// render: (val: any, record: any, index: number) =>
|
|
20557
|
-
// !disabled ? (
|
|
20558
|
-
// <InputNumber
|
|
20559
|
-
// style={{ width: 70 }}
|
|
20560
|
-
// value={val}
|
|
20561
|
-
// min={1}
|
|
20562
|
-
// precision={0}
|
|
20563
|
-
// onChange={(num) => {
|
|
20564
|
-
// updateDataHandle(
|
|
20565
|
-
// {
|
|
20566
|
-
// qty: num,
|
|
20567
|
-
// amount:
|
|
20568
|
-
// num && isNumberOrNumberString(record.price)
|
|
20569
|
-
// ? num * record.price
|
|
20570
|
-
// : null,
|
|
20571
|
-
// originAmount:
|
|
20572
|
-
// num && isNumberOrNumberString(record.originPrice)
|
|
20573
|
-
// ? num * record.originPrice
|
|
20574
|
-
// : null,
|
|
20575
|
-
// },
|
|
20576
|
-
// index,
|
|
20577
|
-
// );
|
|
20578
|
-
// }}
|
|
20579
|
-
// ></InputNumber>
|
|
20580
|
-
// ) : (
|
|
20581
|
-
// <span>{val}</span>
|
|
20582
|
-
// ),
|
|
20583
|
-
// },
|
|
20584
|
-
// {
|
|
20585
|
-
// dataIndex: 'price',
|
|
20586
|
-
// title: `实际单价`,
|
|
20587
|
-
// width: 150,
|
|
20588
|
-
// render: (val: any, record: any, index: number) =>
|
|
20589
|
-
// !disabled ? (
|
|
20590
|
-
// <InputNumber
|
|
20591
|
-
// style={{ width: 130 }}
|
|
20592
|
-
// value={val}
|
|
20593
|
-
// min={0}
|
|
20594
|
-
// precision={2}
|
|
20595
|
-
// onChange={(num) => {
|
|
20596
|
-
// updateDataHandle(
|
|
20597
|
-
// {
|
|
20598
|
-
// price: num,
|
|
20599
|
-
// amount:
|
|
20600
|
-
// num && isNumberOrNumberString(record.qty)
|
|
20601
|
-
// ? num * record.qty
|
|
20602
|
-
// : null,
|
|
20603
|
-
// },
|
|
20604
|
-
// index,
|
|
20605
|
-
// );
|
|
20606
|
-
// }}
|
|
20607
|
-
// ></InputNumber>
|
|
20608
|
-
// ) : (
|
|
20609
|
-
// <span>{val}</span>
|
|
20610
|
-
// ),
|
|
20611
|
-
// },
|
|
20612
|
-
// {
|
|
20613
|
-
// dataIndex: 'amount',
|
|
20614
|
-
// title: `实际金额`,
|
|
20615
|
-
// width: 150,
|
|
20616
|
-
// },
|
|
20617
|
-
// {
|
|
20618
|
-
// dataIndex: 'originPrice',
|
|
20619
|
-
// title: `标准单价`,
|
|
20620
|
-
// width: 150,
|
|
20621
|
-
// },
|
|
20622
|
-
// {
|
|
20623
|
-
// dataIndex: 'originAmount',
|
|
20624
|
-
// title: `标准金额`,
|
|
20625
|
-
// width: 150,
|
|
20626
|
-
// },
|
|
20627
|
-
// {
|
|
20628
|
-
// dataIndex: 'isGift',
|
|
20629
|
-
// title: `是否赠品`,
|
|
20630
|
-
// width: 150,
|
|
20631
|
-
// render: (val: number, record: any, index: number) =>
|
|
20632
|
-
// record.canEdit && !disabled ? (
|
|
20633
|
-
// <Select
|
|
20634
|
-
// value={val}
|
|
20635
|
-
// onChange={(value) => {
|
|
20636
|
-
// updateHandle(value, index, 'isGift');
|
|
20637
|
-
// }}
|
|
20638
|
-
// options={[
|
|
20639
|
-
// { label: '是', value: 1 },
|
|
20640
|
-
// { label: '否', value: 0 },
|
|
20641
|
-
// ]}
|
|
20642
|
-
// />
|
|
20643
|
-
// ) : (
|
|
20644
|
-
// <span>{getYesOrNo(val)}</span>
|
|
20645
|
-
// ),
|
|
20646
|
-
// },
|
|
20647
|
-
// ].map((item) => ({ ...item, align: 'center', ellipsis: true })),
|
|
20648
|
-
// //巨益退货商品信息
|
|
20649
|
-
// JY_RETURN_GOODS: [
|
|
20650
|
-
// {
|
|
20651
|
-
// dataIndex: 'goodName',
|
|
20652
|
-
// title: `商品名称`,
|
|
20653
|
-
// width: 150,
|
|
20654
|
-
// },
|
|
20655
|
-
// {
|
|
20656
|
-
// dataIndex: 'goodShortName',
|
|
20657
|
-
// title: `商品简称`,
|
|
20658
|
-
// width: 150,
|
|
20659
|
-
// },
|
|
20660
|
-
// {
|
|
20661
|
-
// dataIndex: 'goodNo',
|
|
20662
|
-
// title: `商品编码`,
|
|
20663
|
-
// width: 200,
|
|
20664
|
-
// },
|
|
20665
|
-
// {
|
|
20666
|
-
// dataIndex: 'specName',
|
|
20667
|
-
// title: `SKU名称`,
|
|
20668
|
-
// align: 'center',
|
|
20669
|
-
// ellipsis: true,
|
|
20670
|
-
// width: 250,
|
|
20671
|
-
// },
|
|
20672
|
-
// {
|
|
20673
|
-
// dataIndex: 'specNo',
|
|
20674
|
-
// title: `SKU编码`,
|
|
20675
|
-
// align: 'center',
|
|
20676
|
-
// ellipsis: true,
|
|
20677
|
-
// width: 150,
|
|
20678
|
-
// },
|
|
20679
|
-
// {
|
|
20680
|
-
// dataIndex: 'qty',
|
|
20681
|
-
// title: `数量`,
|
|
20682
|
-
// width: 100,
|
|
20683
|
-
// validator: (_rule: any, value: any) => {
|
|
20684
|
-
// let goodsName = '';
|
|
20685
|
-
// if (
|
|
20686
|
-
// (value?.gyReturnGoods || []).some((goods: any) => {
|
|
20687
|
-
// const qty = toNum(goods?.qty);
|
|
20688
|
-
// const res = typeof qty === 'number' ? qty < 1 : true;
|
|
20689
|
-
// if (res) {
|
|
20690
|
-
// goodsName = goods?.goodName ? `[${goods?.goodName}]` : '';
|
|
20691
|
-
// }
|
|
20692
|
-
// return res;
|
|
20693
|
-
// })
|
|
20694
|
-
// ) {
|
|
20695
|
-
// return Promise.reject(`${goodsName}数量必须大于0`);
|
|
20696
|
-
// }
|
|
20697
|
-
// },
|
|
20698
|
-
// render: (val: any, record: any, index: number) =>
|
|
20699
|
-
// !disabled ? (
|
|
20700
|
-
// <InputNumber
|
|
20701
|
-
// style={{ width: 70 }}
|
|
20702
|
-
// value={val}
|
|
20703
|
-
// min={1}
|
|
20704
|
-
// precision={0}
|
|
20705
|
-
// onChange={(num) => {
|
|
20706
|
-
// updateDataHandle(
|
|
20707
|
-
// {
|
|
20708
|
-
// qty: num,
|
|
20709
|
-
// amount:
|
|
20710
|
-
// num && isNumberOrNumberString(record.price)
|
|
20711
|
-
// ? num * record.price
|
|
20712
|
-
// : null,
|
|
20713
|
-
// originAmount:
|
|
20714
|
-
// num && isNumberOrNumberString(record.originPrice)
|
|
20715
|
-
// ? num * record.originPrice
|
|
20716
|
-
// : null,
|
|
20717
|
-
// },
|
|
20718
|
-
// index,
|
|
20719
|
-
// );
|
|
20720
|
-
// }}
|
|
20721
|
-
// ></InputNumber>
|
|
20722
|
-
// ) : (
|
|
20723
|
-
// <span>{val}</span>
|
|
20724
|
-
// ),
|
|
20725
|
-
// },
|
|
20726
|
-
// {
|
|
20727
|
-
// dataIndex: 'price',
|
|
20728
|
-
// title: `实际单价`,
|
|
20729
|
-
// width: 150,
|
|
20730
|
-
// render: (val: any, record: any, index: number) =>
|
|
20731
|
-
// !disabled ? (
|
|
20732
|
-
// <InputNumber
|
|
20733
|
-
// style={{ width: 130 }}
|
|
20734
|
-
// value={val}
|
|
20735
|
-
// min={0}
|
|
20736
|
-
// precision={2}
|
|
20737
|
-
// onChange={(num) => {
|
|
20738
|
-
// updateDataHandle(
|
|
20739
|
-
// {
|
|
20740
|
-
// price: num,
|
|
20741
|
-
// amount:
|
|
20742
|
-
// num && isNumberOrNumberString(record.qty)
|
|
20743
|
-
// ? num * record.qty
|
|
20744
|
-
// : null,
|
|
20745
|
-
// },
|
|
20746
|
-
// index,
|
|
20747
|
-
// );
|
|
20748
|
-
// }}
|
|
20749
|
-
// ></InputNumber>
|
|
20750
|
-
// ) : (
|
|
20751
|
-
// <span>{val}</span>
|
|
20752
|
-
// ),
|
|
20753
|
-
// },
|
|
20754
|
-
// {
|
|
20755
|
-
// dataIndex: 'amount',
|
|
20756
|
-
// title: `实际金额`,
|
|
20757
|
-
// width: 150,
|
|
20758
|
-
// },
|
|
20759
|
-
// {
|
|
20760
|
-
// dataIndex: 'originPrice',
|
|
20761
|
-
// title: `标准单价`,
|
|
20762
|
-
// width: 150,
|
|
20763
|
-
// },
|
|
20764
|
-
// {
|
|
20765
|
-
// dataIndex: 'originAmount',
|
|
20766
|
-
// title: `标准金额`,
|
|
20767
|
-
// width: 150,
|
|
20768
|
-
// },
|
|
20769
|
-
// {
|
|
20770
|
-
// dataIndex: 'discountFee',
|
|
20771
|
-
// title: `让利金额`,
|
|
20772
|
-
// width: 150,
|
|
20773
|
-
// },
|
|
20774
|
-
// {
|
|
20775
|
-
// dataIndex: 'amountAfter',
|
|
20776
|
-
// title: `让利后金额`,
|
|
20777
|
-
// width: 150,
|
|
20778
|
-
// },
|
|
20779
|
-
// {
|
|
20780
|
-
// dataIndex: 'isGift',
|
|
20781
|
-
// title: `是否赠品`,
|
|
20782
|
-
// width: 150,
|
|
20783
|
-
// render: (val: number, record: any, index: number) =>
|
|
20784
|
-
// record.canEdit && !disabled ? (
|
|
20785
|
-
// <Select
|
|
20786
|
-
// value={val}
|
|
20787
|
-
// onChange={(value) => {
|
|
20788
|
-
// updateHandle(value, index, 'isGift');
|
|
20789
|
-
// }}
|
|
20790
|
-
// options={[
|
|
20791
|
-
// { label: '是', value: 1 },
|
|
20792
|
-
// { label: '否', value: 0 },
|
|
20793
|
-
// ]}
|
|
20794
|
-
// />
|
|
20795
|
-
// ) : (
|
|
20796
|
-
// <span>{getYesOrNo(val)}</span>
|
|
20797
|
-
// ),
|
|
20798
|
-
// },
|
|
20799
|
-
// ].map((item) => ({ ...item, align: 'center', ellipsis: true })),
|
|
20800
20923
|
};
|
|
20801
20924
|
};
|
|
20802
20925
|
|
|
@@ -20987,7 +21110,8 @@ var getColumnsMap$1 = function getColumnsMap(args) {
|
|
|
20987
21110
|
})), getColumns$7({
|
|
20988
21111
|
text: text,
|
|
20989
21112
|
disabled: disabled,
|
|
20990
|
-
updateHandle: updateHandle
|
|
21113
|
+
updateHandle: updateHandle,
|
|
21114
|
+
updateDataHandle: updateDataHandle
|
|
20991
21115
|
})), getColumns$8({
|
|
20992
21116
|
text: text,
|
|
20993
21117
|
disabled: disabled,
|
|
@@ -21206,12 +21330,35 @@ var processJyGoods = function processJyGoods(_ref2) {
|
|
|
21206
21330
|
var list = _ref2.list,
|
|
21207
21331
|
canUpdateNumber = _ref2.canUpdateNumber;
|
|
21208
21332
|
return list.map(function (item) {
|
|
21333
|
+
var goodName = item.goodName,
|
|
21334
|
+
goodNo = item.goodNo,
|
|
21335
|
+
goodId = item.goodId,
|
|
21336
|
+
specName = item.specName,
|
|
21337
|
+
specNo = item.specNo,
|
|
21338
|
+
specBarcode = item.specBarcode,
|
|
21339
|
+
retailPrice = item.retailPrice,
|
|
21340
|
+
isGift = item.isGift,
|
|
21341
|
+
skuType = item.skuType;
|
|
21209
21342
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
21343
|
+
goodsName: goodName,
|
|
21344
|
+
goodsCode: goodNo,
|
|
21345
|
+
goodsId: goodId,
|
|
21346
|
+
code: specBarcode,
|
|
21347
|
+
specCode: specNo,
|
|
21348
|
+
productName: goodName,
|
|
21349
|
+
productCode: goodNo,
|
|
21350
|
+
productId: goodId,
|
|
21351
|
+
skuName: specName,
|
|
21352
|
+
skuCode: specNo,
|
|
21353
|
+
combinationName: goodName,
|
|
21354
|
+
combinationCode: goodNo,
|
|
21355
|
+
gift: isGift ? '1' : '0',
|
|
21356
|
+
bfit: skuType === 'combine' ? 'True' : 'False',
|
|
21210
21357
|
uuid: kmkfUtils.uuid(),
|
|
21211
21358
|
canDelete: true,
|
|
21212
21359
|
sellCount: 1,
|
|
21213
|
-
sellPrice:
|
|
21214
|
-
sellTotal:
|
|
21360
|
+
sellPrice: retailPrice,
|
|
21361
|
+
sellTotal: (retailPrice * 1).toFixed(2),
|
|
21215
21362
|
canEdit: true,
|
|
21216
21363
|
canUpdateNumber: canUpdateNumber
|
|
21217
21364
|
});
|
|
@@ -21402,6 +21549,7 @@ var GoodsModalMap = {
|
|
|
21402
21549
|
KM_GOODS: KmGoodsModal,
|
|
21403
21550
|
KM_REISSUE_GOODS: KmGoodsModal,
|
|
21404
21551
|
JY_GOODS: JyGoodsModal$1,
|
|
21552
|
+
JY_REISSUE_GOODS: JyGoodsModal$1,
|
|
21405
21553
|
OTHER_GOODS: GoodsModal$2
|
|
21406
21554
|
};
|
|
21407
21555
|
var systemOrderNoMap = {
|
|
@@ -21411,7 +21559,8 @@ var systemOrderNoMap = {
|
|
|
21411
21559
|
BS_E3_GOODS: 'orderSn',
|
|
21412
21560
|
JST_GOODS: 'oId',
|
|
21413
21561
|
WLN_GOODS: 'tradeNo',
|
|
21414
|
-
JY_GOODS: 'tradeNo'
|
|
21562
|
+
JY_GOODS: 'tradeNo',
|
|
21563
|
+
JY_REISSUE_GOODS: 'tradeNo'
|
|
21415
21564
|
};
|
|
21416
21565
|
var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
21417
21566
|
var columns = _ref.columns,
|
|
@@ -21469,6 +21618,12 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
21469
21618
|
return item === null || item === void 0 ? void 0 : item[uniqueKey];
|
|
21470
21619
|
}));
|
|
21471
21620
|
var handleChangeSelectedKeys = function handleChangeSelectedKeys(keys) {
|
|
21621
|
+
console.log('handleChangeSelectedKeys', keys, unCurrentTradeOriginGoods);
|
|
21622
|
+
console.log('filterDataSource', filterDataSource === null || filterDataSource === void 0 ? void 0 : filterDataSource.map(function (item) {
|
|
21623
|
+
return item === null || item === void 0 ? void 0 : item[uniqueKey];
|
|
21624
|
+
}));
|
|
21625
|
+
console.log('selectedRowKeys', selectedRowKeys);
|
|
21626
|
+
console.log('currentTradeOriginGoods', currentTradeOriginGoods);
|
|
21472
21627
|
onChangeSelectedKeys(keys.concat(unCurrentTradeOriginGoods));
|
|
21473
21628
|
};
|
|
21474
21629
|
var rowSelection = {
|
|
@@ -21592,13 +21747,15 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
21592
21747
|
tradeGoods = props.tradeGoods,
|
|
21593
21748
|
form = props.form,
|
|
21594
21749
|
systemOrders = props.systemOrders,
|
|
21595
|
-
selectedSystemOrders = props.selectedSystemOrders
|
|
21750
|
+
selectedSystemOrders = props.selectedSystemOrders,
|
|
21751
|
+
_props$templateDetail = props.templateDetail,
|
|
21752
|
+
templateDetail = _props$templateDetail === void 0 ? {} : _props$templateDetail;
|
|
21596
21753
|
var uniqueKey = (tradeGoods === null || tradeGoods === void 0 ? void 0 : tradeGoods.uniqueKey) || 'uuid';
|
|
21597
21754
|
// 监听聚水潭退货商品
|
|
21598
21755
|
var jstReturnGoods = antd.Form === null || antd.Form === void 0 ? void 0 : antd.Form.useWatch('3979edfd6d', form);
|
|
21599
21756
|
var isShowSelectTradeGoods = type !== 'JST_EXCHANGE_GOODS' || (jstReturnGoods === null || jstReturnGoods === void 0 ? void 0 : jstReturnGoods.jstSystemOrderNo);
|
|
21600
21757
|
// 判断是否为商品信息组件
|
|
21601
|
-
var isGoods = type && ['WDT_GOODS', 'BS_E3_GOODS', 'GY_GOODS', 'JST_GOODS', 'WLN_GOODS', 'KM_GOODS', 'JY_GOODS'].includes(type) || false;
|
|
21758
|
+
var isGoods = type && ['WDT_GOODS', 'BS_E3_GOODS', 'GY_GOODS', 'JST_GOODS', 'WLN_GOODS', 'KM_GOODS', 'JY_GOODS', 'JY_REISSUE_GOODS'].includes(type) || false;
|
|
21602
21759
|
var refModal = React.useRef();
|
|
21603
21760
|
console.debug('表格数据', value);
|
|
21604
21761
|
var handleDelete = function handleDelete(record, index) {
|
|
@@ -21686,6 +21843,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
21686
21843
|
case 'KM_GOODS':
|
|
21687
21844
|
case 'KM_REISSUE_GOODS':
|
|
21688
21845
|
case 'JY_GOODS':
|
|
21846
|
+
case 'JY_REISSUE_GOODS':
|
|
21689
21847
|
case 'SKX_GOODS':
|
|
21690
21848
|
case 'SKX_RETURN_GOODS':
|
|
21691
21849
|
{
|
|
@@ -21732,8 +21890,9 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
21732
21890
|
var COLUMNS_INFO = COLUMNS_MAP(text);
|
|
21733
21891
|
return COLUMNS_INFO(type);
|
|
21734
21892
|
};
|
|
21735
|
-
var
|
|
21736
|
-
var
|
|
21893
|
+
var getShowFilterColumns = React.useCallback(function (_ref2) {
|
|
21894
|
+
var showHeader = _ref2.showHeader,
|
|
21895
|
+
initBaseInfoColumns = _ref2.initBaseInfoColumns;
|
|
21737
21896
|
var baseInfoColumns = [];
|
|
21738
21897
|
var isStringArray = Array.isArray(showHeader) && typeof showHeader[0] === 'string';
|
|
21739
21898
|
var isObjectArray = Array.isArray(showHeader) && Object.prototype.toString.call(showHeader[0]) === '[object Object]';
|
|
@@ -21753,6 +21912,14 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
21753
21912
|
return undefined;
|
|
21754
21913
|
}).filter(Boolean);
|
|
21755
21914
|
}
|
|
21915
|
+
return baseInfoColumns;
|
|
21916
|
+
}, [showHeader]);
|
|
21917
|
+
var newColumns = React.useMemo(function () {
|
|
21918
|
+
var initBaseInfoColumns = GOODS_INFO_COLUMNS();
|
|
21919
|
+
var baseInfoColumns = getShowFilterColumns({
|
|
21920
|
+
showHeader: showHeader,
|
|
21921
|
+
initBaseInfoColumns: initBaseInfoColumns
|
|
21922
|
+
});
|
|
21756
21923
|
var columnList = [{
|
|
21757
21924
|
dataIndex: '',
|
|
21758
21925
|
title: '序号',
|
|
@@ -21789,8 +21956,16 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
21789
21956
|
return columnList;
|
|
21790
21957
|
}, [showHeader, value, disabled, hoveredRowIndex]);
|
|
21791
21958
|
var orderModalColumns = React.useMemo(function () {
|
|
21792
|
-
var
|
|
21793
|
-
|
|
21959
|
+
var initBaseInfoColumns = COLUMNS_MAP('', {
|
|
21960
|
+
operate: false,
|
|
21961
|
+
disabled: true
|
|
21962
|
+
})(type);
|
|
21963
|
+
var baseInfoColumns = getShowFilterColumns({
|
|
21964
|
+
showHeader: showHeader,
|
|
21965
|
+
initBaseInfoColumns: initBaseInfoColumns
|
|
21966
|
+
});
|
|
21967
|
+
var list = baseInfoColumns.filter(function (col) {
|
|
21968
|
+
return !['操作'].includes(col.title);
|
|
21794
21969
|
});
|
|
21795
21970
|
return [{
|
|
21796
21971
|
dataIndex: '',
|
|
@@ -21802,7 +21977,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
21802
21977
|
return /*#__PURE__*/React__default['default'].createElement("span", null, index + 1);
|
|
21803
21978
|
}
|
|
21804
21979
|
}].concat(_toConsumableArray(list));
|
|
21805
|
-
}, [
|
|
21980
|
+
}, [showHeader, value, disabled, hoveredRowIndex]);
|
|
21806
21981
|
var orderColumns = React.useMemo(function () {
|
|
21807
21982
|
var columns = COLUMNS_MAP('', {
|
|
21808
21983
|
operate: false,
|
|
@@ -21915,7 +22090,9 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
21915
22090
|
maxLength: maxLength,
|
|
21916
22091
|
companyKey: companyKey,
|
|
21917
22092
|
goodsSource: goodsSource,
|
|
21918
|
-
useGoodsSourceFormat: useGoodsSourceFormat
|
|
22093
|
+
useGoodsSourceFormat: useGoodsSourceFormat,
|
|
22094
|
+
form: form,
|
|
22095
|
+
templateDetail: templateDetail
|
|
21919
22096
|
}));
|
|
21920
22097
|
};
|
|
21921
22098
|
|
|
@@ -22550,7 +22727,7 @@ var getWdtOrderListSingleton = function getWdtOrderListSingleton(orderNo) {
|
|
|
22550
22727
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
22551
22728
|
billNo: item.tradeNo,
|
|
22552
22729
|
billType: kmkfUtils.WDT_ORDER_TYPE_MAP[item.tradeType],
|
|
22553
|
-
billTag: item.tagName,
|
|
22730
|
+
billTag: item.tagName || item.tags,
|
|
22554
22731
|
tradeStatusValue: kmkfUtils.tradeStatusMap === null || kmkfUtils.tradeStatusMap === void 0 ? void 0 : (_tradeStatusMap$data$ = kmkfUtils.tradeStatusMap[data.data.version]) === null || _tradeStatusMap$data$ === void 0 ? void 0 : _tradeStatusMap$data$[item.tradeStatus]
|
|
22555
22732
|
});
|
|
22556
22733
|
});
|
|
@@ -22794,13 +22971,19 @@ var getJyOrderListSingleton = function getJyOrderListSingleton(orderNo) {
|
|
|
22794
22971
|
extendRequest('/qy/gdfw/order/jyOrderDetail', {
|
|
22795
22972
|
method: 'post',
|
|
22796
22973
|
data: {
|
|
22797
|
-
|
|
22974
|
+
billNo: orderNo
|
|
22798
22975
|
}
|
|
22799
22976
|
}).then(function (res) {
|
|
22800
22977
|
if (res === null || res === void 0 ? void 0 : res.success) {
|
|
22801
|
-
var _res$data;
|
|
22802
|
-
if (res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.length) {
|
|
22803
|
-
|
|
22978
|
+
var _res$data, _res$data$tradeOrderD;
|
|
22979
|
+
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) {
|
|
22980
|
+
var _filterJyOrders, _res$data2;
|
|
22981
|
+
res.data.trades = (_filterJyOrders = kmkfUtils.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) {
|
|
22982
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
22983
|
+
tradeType: kmkfUtils.JY_ORDER_TYPE_MAP[item.tradeType],
|
|
22984
|
+
tradeStatus: kmkfUtils.JY_ORDER_STATUS_MAP[item.tradeStatus]
|
|
22985
|
+
});
|
|
22986
|
+
});
|
|
22804
22987
|
}
|
|
22805
22988
|
resolve(res.data);
|
|
22806
22989
|
// 延迟10秒清除,保证订单的时效性
|
|
@@ -22893,7 +23076,9 @@ var index$2 = (function (props) {
|
|
|
22893
23076
|
var value = props.value,
|
|
22894
23077
|
_onChange = props.onChange,
|
|
22895
23078
|
disabled = props.disabled,
|
|
22896
|
-
type = props.type
|
|
23079
|
+
type = props.type,
|
|
23080
|
+
_props$showHeader = props.showHeader,
|
|
23081
|
+
showHeader = _props$showHeader === void 0 ? [] : _props$showHeader;
|
|
22897
23082
|
var onceRef = React.useRef(false);
|
|
22898
23083
|
var valueRef = React.useRef(null);
|
|
22899
23084
|
React.useEffect(function () {
|
|
@@ -22921,8 +23106,12 @@ var index$2 = (function (props) {
|
|
|
22921
23106
|
}
|
|
22922
23107
|
}, [value, type]);
|
|
22923
23108
|
var columns = React.useMemo(function () {
|
|
22924
|
-
|
|
22925
|
-
|
|
23109
|
+
var baseInfoColumns = kmkfUtils.getSystemShowHead({
|
|
23110
|
+
columns: columnsMap[type] || [],
|
|
23111
|
+
showHeader: showHeader
|
|
23112
|
+
});
|
|
23113
|
+
return baseInfoColumns || [];
|
|
23114
|
+
}, [type, showHeader]);
|
|
22926
23115
|
var getOrderList = /*#__PURE__*/function () {
|
|
22927
23116
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(orderNo) {
|
|
22928
23117
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -23002,17 +23191,8 @@ var index$2 = (function (props) {
|
|
|
23002
23191
|
});
|
|
23003
23192
|
_onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, {
|
|
23004
23193
|
orders: trades,
|
|
23005
|
-
showOrderInfo: trades.map(function (
|
|
23006
|
-
|
|
23007
|
-
billType = _ref4.billType,
|
|
23008
|
-
billTag = _ref4.billTag,
|
|
23009
|
-
tradeStatusValue = _ref4.tradeStatusValue;
|
|
23010
|
-
return {
|
|
23011
|
-
billNo: billNo,
|
|
23012
|
-
billType: billType,
|
|
23013
|
-
billTag: billTag,
|
|
23014
|
-
tradeStatusValue: tradeStatusValue
|
|
23015
|
-
};
|
|
23194
|
+
showOrderInfo: trades.map(function (item) {
|
|
23195
|
+
return _objectSpread2({}, item);
|
|
23016
23196
|
})
|
|
23017
23197
|
}));
|
|
23018
23198
|
});
|
|
@@ -23028,7 +23208,7 @@ var index$2 = (function (props) {
|
|
|
23028
23208
|
};
|
|
23029
23209
|
}();
|
|
23030
23210
|
var getBsE3OrderList = /*#__PURE__*/function () {
|
|
23031
|
-
var
|
|
23211
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(orderNo) {
|
|
23032
23212
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
23033
23213
|
while (1) switch (_context4.prev = _context4.next) {
|
|
23034
23214
|
case 0:
|
|
@@ -23049,11 +23229,11 @@ var index$2 = (function (props) {
|
|
|
23049
23229
|
}, _callee4);
|
|
23050
23230
|
}));
|
|
23051
23231
|
return function getBsE3OrderList(_x4) {
|
|
23052
|
-
return
|
|
23232
|
+
return _ref4.apply(this, arguments);
|
|
23053
23233
|
};
|
|
23054
23234
|
}();
|
|
23055
23235
|
var getJstOrderList = /*#__PURE__*/function () {
|
|
23056
|
-
var
|
|
23236
|
+
var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(orderNo) {
|
|
23057
23237
|
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
23058
23238
|
while (1) switch (_context5.prev = _context5.next) {
|
|
23059
23239
|
case 0:
|
|
@@ -23072,21 +23252,21 @@ var index$2 = (function (props) {
|
|
|
23072
23252
|
}, _callee5);
|
|
23073
23253
|
}));
|
|
23074
23254
|
return function getJstOrderList(_x5) {
|
|
23075
|
-
return
|
|
23255
|
+
return _ref5.apply(this, arguments);
|
|
23076
23256
|
};
|
|
23077
23257
|
}();
|
|
23078
23258
|
var getKmOrderList = /*#__PURE__*/function () {
|
|
23079
|
-
var
|
|
23259
|
+
var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(orderNo) {
|
|
23080
23260
|
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
23081
23261
|
while (1) switch (_context6.prev = _context6.next) {
|
|
23082
23262
|
case 0:
|
|
23083
23263
|
kmUtils.getOrderListSingleton(orderNo).then(function (trades) {
|
|
23084
23264
|
_onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, {
|
|
23085
23265
|
orders: trades,
|
|
23086
|
-
showOrderInfo: trades.map(function (
|
|
23087
|
-
var billNo =
|
|
23088
|
-
billType =
|
|
23089
|
-
billTag =
|
|
23266
|
+
showOrderInfo: trades.map(function (_ref7) {
|
|
23267
|
+
var billNo = _ref7.billNo,
|
|
23268
|
+
billType = _ref7.billType,
|
|
23269
|
+
billTag = _ref7.billTag;
|
|
23090
23270
|
return {
|
|
23091
23271
|
billNo: billNo,
|
|
23092
23272
|
billType: billType,
|
|
@@ -23103,11 +23283,11 @@ var index$2 = (function (props) {
|
|
|
23103
23283
|
}, _callee6);
|
|
23104
23284
|
}));
|
|
23105
23285
|
return function getKmOrderList(_x6) {
|
|
23106
|
-
return
|
|
23286
|
+
return _ref6.apply(this, arguments);
|
|
23107
23287
|
};
|
|
23108
23288
|
}();
|
|
23109
23289
|
var getGyOrderList = /*#__PURE__*/function () {
|
|
23110
|
-
var
|
|
23290
|
+
var _ref8 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(orderNo) {
|
|
23111
23291
|
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
|
23112
23292
|
while (1) switch (_context7.prev = _context7.next) {
|
|
23113
23293
|
case 0:
|
|
@@ -23117,16 +23297,16 @@ var index$2 = (function (props) {
|
|
|
23117
23297
|
});
|
|
23118
23298
|
_onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, {
|
|
23119
23299
|
orders: trades,
|
|
23120
|
-
showOrderInfo: trades.map(function (
|
|
23121
|
-
var billNo =
|
|
23122
|
-
billType =
|
|
23123
|
-
billTag =
|
|
23124
|
-
tradeTagName =
|
|
23125
|
-
deliveryState =
|
|
23126
|
-
vipCode =
|
|
23127
|
-
shopCode =
|
|
23128
|
-
cancel =
|
|
23129
|
-
rest = _objectWithoutProperties(
|
|
23300
|
+
showOrderInfo: trades.map(function (_ref9) {
|
|
23301
|
+
var billNo = _ref9.billNo,
|
|
23302
|
+
billType = _ref9.billType,
|
|
23303
|
+
billTag = _ref9.billTag,
|
|
23304
|
+
tradeTagName = _ref9.tradeTagName,
|
|
23305
|
+
deliveryState = _ref9.deliveryState,
|
|
23306
|
+
vipCode = _ref9.vipCode,
|
|
23307
|
+
shopCode = _ref9.shopCode,
|
|
23308
|
+
cancel = _ref9.cancel,
|
|
23309
|
+
rest = _objectWithoutProperties(_ref9, _excluded$k);
|
|
23130
23310
|
return _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
23131
23311
|
billNo: billNo,
|
|
23132
23312
|
billType: billType,
|
|
@@ -23149,11 +23329,11 @@ var index$2 = (function (props) {
|
|
|
23149
23329
|
}, _callee7);
|
|
23150
23330
|
}));
|
|
23151
23331
|
return function getGyOrderList(_x7) {
|
|
23152
|
-
return
|
|
23332
|
+
return _ref8.apply(this, arguments);
|
|
23153
23333
|
};
|
|
23154
23334
|
}();
|
|
23155
23335
|
var getJyOrderList = /*#__PURE__*/function () {
|
|
23156
|
-
var
|
|
23336
|
+
var _ref10 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(orderNo) {
|
|
23157
23337
|
return _regeneratorRuntime().wrap(function _callee8$(_context8) {
|
|
23158
23338
|
while (1) switch (_context8.prev = _context8.next) {
|
|
23159
23339
|
case 0:
|
|
@@ -23163,9 +23343,9 @@ var index$2 = (function (props) {
|
|
|
23163
23343
|
});
|
|
23164
23344
|
_onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, {
|
|
23165
23345
|
orders: trades,
|
|
23166
|
-
showOrderInfo: trades.map(function (
|
|
23167
|
-
var shopCode =
|
|
23168
|
-
rest = _objectWithoutProperties(
|
|
23346
|
+
showOrderInfo: trades.map(function (_ref11) {
|
|
23347
|
+
var shopCode = _ref11.shopCode,
|
|
23348
|
+
rest = _objectWithoutProperties(_ref11, _excluded2);
|
|
23169
23349
|
return _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
23170
23350
|
shopCode: shopCode
|
|
23171
23351
|
});
|
|
@@ -23180,7 +23360,7 @@ var index$2 = (function (props) {
|
|
|
23180
23360
|
}, _callee8);
|
|
23181
23361
|
}));
|
|
23182
23362
|
return function getJyOrderList(_x8) {
|
|
23183
|
-
return
|
|
23363
|
+
return _ref10.apply(this, arguments);
|
|
23184
23364
|
};
|
|
23185
23365
|
}();
|
|
23186
23366
|
var rowSelection = {
|
|
@@ -23224,7 +23404,8 @@ var index$2 = (function (props) {
|
|
|
23224
23404
|
size: "small",
|
|
23225
23405
|
pagination: false,
|
|
23226
23406
|
scroll: {
|
|
23227
|
-
x: '
|
|
23407
|
+
x: '100%',
|
|
23408
|
+
y: 500
|
|
23228
23409
|
},
|
|
23229
23410
|
locale: {
|
|
23230
23411
|
emptyText: '暂无数据'
|
|
@@ -25021,21 +25202,12 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
25021
25202
|
while (1) switch (_context.prev = _context.next) {
|
|
25022
25203
|
case 0:
|
|
25023
25204
|
(_typeMap$type5 = typeMap$1[type]) === null || _typeMap$type5 === void 0 ? void 0 : _typeMap$type5.getOrderList(orderNo).then(function (data) {
|
|
25024
|
-
var _typeMap$type6,
|
|
25205
|
+
var _typeMap$type6, _ref2, _typeMap$type7;
|
|
25025
25206
|
var orders = (data === null || data === void 0 ? void 0 : data.trades) || [];
|
|
25026
|
-
var showOrderInfo = orders.map(function (
|
|
25027
|
-
|
|
25028
|
-
billType = _ref2.billType,
|
|
25029
|
-
billTag = _ref2.billTag,
|
|
25030
|
-
tradeStatusValue = _ref2.tradeStatusValue;
|
|
25031
|
-
return {
|
|
25032
|
-
billNo: billNo,
|
|
25033
|
-
billType: billType,
|
|
25034
|
-
billTag: billTag,
|
|
25035
|
-
tradeStatusValue: tradeStatusValue
|
|
25036
|
-
};
|
|
25207
|
+
var showOrderInfo = orders.map(function (item) {
|
|
25208
|
+
return _objectSpread2({}, item);
|
|
25037
25209
|
});
|
|
25038
|
-
var newValue = _objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, _defineProperty({}, (_typeMap$type6 = typeMap$1[type]) === null || _typeMap$type6 === void 0 ? void 0 : _typeMap$type6.systemOrder, _objectSpread2(_objectSpread2({}, ((
|
|
25210
|
+
var newValue = _objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, _defineProperty({}, (_typeMap$type6 = typeMap$1[type]) === null || _typeMap$type6 === void 0 ? void 0 : _typeMap$type6.systemOrder, _objectSpread2(_objectSpread2({}, ((_ref2 = valueRef.current || {}) === null || _ref2 === void 0 ? void 0 : _ref2[(_typeMap$type7 = typeMap$1[type]) === null || _typeMap$type7 === void 0 ? void 0 : _typeMap$type7.systemOrder]) || {}), {}, {
|
|
25039
25211
|
showOrderInfo: showOrderInfo,
|
|
25040
25212
|
orders: orders
|
|
25041
25213
|
})));
|
|
@@ -25081,10 +25253,10 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
25081
25253
|
mode: mode
|
|
25082
25254
|
}))));
|
|
25083
25255
|
};
|
|
25084
|
-
var getGoodDetails = function getGoodDetails(
|
|
25256
|
+
var getGoodDetails = function getGoodDetails(_ref3) {
|
|
25085
25257
|
var _typeMap$type14, _typeMap$type15, _order$goodDetails;
|
|
25086
|
-
var mode =
|
|
25087
|
-
sysOrderNo =
|
|
25258
|
+
var mode = _ref3.mode,
|
|
25259
|
+
sysOrderNo = _ref3.sysOrderNo;
|
|
25088
25260
|
var systemOrder = value === null || value === void 0 ? void 0 : value[(_typeMap$type14 = typeMap$1[type]) === null || _typeMap$type14 === void 0 ? void 0 : _typeMap$type14.systemOrder];
|
|
25089
25261
|
var systemOrderNo = sysOrderNo !== null && sysOrderNo !== void 0 ? sysOrderNo : value === null || value === void 0 ? void 0 : value[(_typeMap$type15 = typeMap$1[type]) === null || _typeMap$type15 === void 0 ? void 0 : _typeMap$type15.systemOrderNo];
|
|
25090
25262
|
var order = systemOrderNo && ((systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orders) || []).find(function (order) {
|
|
@@ -25138,6 +25310,9 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
25138
25310
|
return !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type25 = typeMap$1[type]) === null || _typeMap$type25 === void 0 ? void 0 : _typeMap$type25.systemOrderNo]);
|
|
25139
25311
|
}, [value === null || value === void 0 ? void 0 : value[(_typeMap$type26 = typeMap$1[type]) === null || _typeMap$type26 === void 0 ? void 0 : _typeMap$type26.systemOrderNo]]);
|
|
25140
25312
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Row, {
|
|
25313
|
+
style: {
|
|
25314
|
+
width: '100%'
|
|
25315
|
+
},
|
|
25141
25316
|
gutter: 8,
|
|
25142
25317
|
wrap: true
|
|
25143
25318
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
@@ -25267,10 +25442,25 @@ var typeMap$2 = {
|
|
|
25267
25442
|
outerOiIdKey: '',
|
|
25268
25443
|
goodDetailsKey: 'subOrders',
|
|
25269
25444
|
uniqueKey: 'id'
|
|
25445
|
+
},
|
|
25446
|
+
JY_REISSUE_GOODS: {
|
|
25447
|
+
compType: '补发',
|
|
25448
|
+
key: 'jyReissueGoods',
|
|
25449
|
+
typeName: 'jyReissueType',
|
|
25450
|
+
systemOrder: 'jySystemOrder',
|
|
25451
|
+
systemOrderNo: 'jySystemOrderNo',
|
|
25452
|
+
getOrderList: jyUtils.getJyOrderListSingleton,
|
|
25453
|
+
updateGoodsHandle: kmkfUtils.updateJyGoodsHandle,
|
|
25454
|
+
alwaysShowChooseErpGoodsBtn: true,
|
|
25455
|
+
orderTypeKey: 'orderType',
|
|
25456
|
+
oIdKey: 'tradeNo',
|
|
25457
|
+
outerOiIdKey: '',
|
|
25458
|
+
goodDetailsKey: 'subOrderDetails',
|
|
25459
|
+
isShowSelectTradeGoods: true
|
|
25270
25460
|
}
|
|
25271
25461
|
};
|
|
25272
25462
|
var PublicReissue = function PublicReissue(props) {
|
|
25273
|
-
var _typeMap$
|
|
25463
|
+
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;
|
|
25274
25464
|
var value = props.value,
|
|
25275
25465
|
onChange = props.onChange,
|
|
25276
25466
|
_props$reasonList = props.reasonList,
|
|
@@ -25387,9 +25577,11 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
25387
25577
|
}))));
|
|
25388
25578
|
};
|
|
25389
25579
|
var getGoodDetails = function getGoodDetails(_ref4) {
|
|
25390
|
-
var _typeMap$type18, _typeMap$type19,
|
|
25580
|
+
var _typeMap$type18, _typeMap$type19, _value$typeMap$type$s6, _typeMap$type20, _typeMap$type21, _typeMap$type22;
|
|
25391
25581
|
var mode = _ref4.mode,
|
|
25392
|
-
sysOrderNo = _ref4.sysOrderNo
|
|
25582
|
+
sysOrderNo = _ref4.sysOrderNo,
|
|
25583
|
+
_ref4$isAllOrders = _ref4.isAllOrders,
|
|
25584
|
+
isAllOrders = _ref4$isAllOrders === void 0 ? false : _ref4$isAllOrders;
|
|
25393
25585
|
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];
|
|
25394
25586
|
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];
|
|
25395
25587
|
var order = systemOrderNo && ((systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orders) || []).find(function (order) {
|
|
@@ -25403,39 +25595,48 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
25403
25595
|
orderBackGoodsLevel: props.orderBackGoodsLevel,
|
|
25404
25596
|
canEdit: true
|
|
25405
25597
|
};
|
|
25598
|
+
} else if (['JY_REISSUE_GOODS', 'JY_RETURN_GOODS'].includes(type)) {
|
|
25599
|
+
orderRest = {
|
|
25600
|
+
canEdit: true
|
|
25601
|
+
};
|
|
25406
25602
|
}
|
|
25407
|
-
var
|
|
25603
|
+
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];
|
|
25604
|
+
var hasGoodDetails = orders === null || orders === void 0 ? void 0 : orders.some(function (order) {
|
|
25605
|
+
var _order$typeMap$type$g;
|
|
25606
|
+
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;
|
|
25607
|
+
});
|
|
25608
|
+
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) : [];
|
|
25408
25609
|
var orderNo = systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orderNo;
|
|
25409
|
-
var list = mode ? goodDetails.filter(function (goodItem) {
|
|
25610
|
+
var list = mode && !isAllOrders ? goodDetails.filter(function (goodItem) {
|
|
25410
25611
|
return !orderNo || goodItem[typeMap$2[type].outerOiIdKey] === orderNo;
|
|
25411
25612
|
}) : goodDetails;
|
|
25412
25613
|
return list;
|
|
25413
25614
|
};
|
|
25414
25615
|
var changeGoodHandle = function changeGoodHandle(val) {
|
|
25415
|
-
var _typeMap$
|
|
25616
|
+
var _typeMap$type23;
|
|
25416
25617
|
var newValue = _objectSpread2({}, value);
|
|
25417
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25618
|
+
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 || [];
|
|
25418
25619
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
25419
25620
|
};
|
|
25420
25621
|
var changeSystemOrderHandle = function changeSystemOrderHandle(val) {
|
|
25421
|
-
var _typeMap$
|
|
25622
|
+
var _typeMap$type24, _typeMap$type25, _value$typeMap$type$t2, _typeMap$type30, _value$typeMap$type$t3, _typeMap$type32;
|
|
25422
25623
|
var newValue = _objectSpread2({}, value);
|
|
25423
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25424
|
-
if (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25425
|
-
var _value$typeMap$type$
|
|
25426
|
-
var orders = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$
|
|
25624
|
+
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;
|
|
25625
|
+
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) {
|
|
25626
|
+
var _value$typeMap$type$s7, _typeMap$type26, _typeMap$type28, _typeMap$type29;
|
|
25627
|
+
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) || [];
|
|
25427
25628
|
var targetOrder = val && orders.find(function (oItem) {
|
|
25428
|
-
var _typeMap$
|
|
25429
|
-
return oItem[(_typeMap$
|
|
25629
|
+
var _typeMap$type27;
|
|
25630
|
+
return oItem[(_typeMap$type27 = typeMap$2[type]) === null || _typeMap$type27 === void 0 ? void 0 : _typeMap$type27.oIdKey] === val;
|
|
25430
25631
|
});
|
|
25431
|
-
newValue[(_typeMap$
|
|
25432
|
-
}
|
|
25433
|
-
if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$
|
|
25434
|
-
var _typeMap$
|
|
25435
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25436
|
-
} else if (['1'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$
|
|
25437
|
-
var _typeMap$
|
|
25438
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25632
|
+
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];
|
|
25633
|
+
}
|
|
25634
|
+
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])) {
|
|
25635
|
+
var _typeMap$type31;
|
|
25636
|
+
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)] = [];
|
|
25637
|
+
} 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])) {
|
|
25638
|
+
var _typeMap$type33;
|
|
25639
|
+
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({
|
|
25439
25640
|
mode: isStrict,
|
|
25440
25641
|
sysOrderNo: val
|
|
25441
25642
|
});
|
|
@@ -25443,26 +25644,27 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
25443
25644
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue, 'systemOrder');
|
|
25444
25645
|
};
|
|
25445
25646
|
//显示选择商品按钮
|
|
25446
|
-
var showChangeBtn = !!(value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
25647
|
+
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]);
|
|
25447
25648
|
var selectedGoodsChange = React.useCallback(function (skuList) {
|
|
25448
|
-
var _typeMap$
|
|
25649
|
+
var _typeMap$type35, _typeMap$type36, _typeMap$type37, _uniqBy, _typeMap$type38;
|
|
25449
25650
|
var newValue = _objectSpread2({}, value);
|
|
25450
25651
|
// 原订单商品
|
|
25451
25652
|
var originTradeGoodList = getGoodDetails({
|
|
25452
|
-
mode: isStrict
|
|
25653
|
+
mode: isStrict,
|
|
25654
|
+
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
|
|
25453
25655
|
}) || [];
|
|
25454
25656
|
// 当前选中的所有商品【包含了原订单+商品库】
|
|
25455
|
-
var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25456
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25457
|
-
var _typeMap$
|
|
25458
|
-
return skuList.includes(item[typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25657
|
+
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)]) || [];
|
|
25658
|
+
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 = lodash.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) {
|
|
25659
|
+
var _typeMap$type39;
|
|
25660
|
+
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']);
|
|
25459
25661
|
});
|
|
25460
25662
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
25461
|
-
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25663
|
+
}, [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]);
|
|
25462
25664
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Row, {
|
|
25463
25665
|
gutter: 8,
|
|
25464
25666
|
wrap: true,
|
|
25465
|
-
id: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25667
|
+
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())
|
|
25466
25668
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
25467
25669
|
className: "gutter-row",
|
|
25468
25670
|
xs: {
|
|
@@ -25478,12 +25680,12 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
25478
25680
|
},
|
|
25479
25681
|
disabled: disabled,
|
|
25480
25682
|
allowClear: false,
|
|
25481
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25683
|
+
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)],
|
|
25482
25684
|
onChange: function onChange(val) {
|
|
25483
25685
|
return changeSystemOrderHandle(val);
|
|
25484
25686
|
},
|
|
25485
|
-
placeholder: "\u9009\u62E9".concat((typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25486
|
-
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$
|
|
25687
|
+
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")
|
|
25688
|
+
}, ((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) {
|
|
25487
25689
|
return /*#__PURE__*/React__default['default'].createElement(antd.Select.Option, {
|
|
25488
25690
|
key: item[typeMap$2[type].oIdKey],
|
|
25489
25691
|
value: item[typeMap$2[type].oIdKey],
|
|
@@ -25505,11 +25707,11 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
25505
25707
|
disabled: isSettingConfig ? !isSettingConfig : disabled,
|
|
25506
25708
|
allowClear: false,
|
|
25507
25709
|
options: reasonList,
|
|
25508
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25710
|
+
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)],
|
|
25509
25711
|
onChange: function onChange(val) {
|
|
25510
25712
|
return changeTypeHandle(val);
|
|
25511
25713
|
}
|
|
25512
|
-
})), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25714
|
+
})), (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__default['default'].createElement(antd.Col, {
|
|
25513
25715
|
className: "gutter-row",
|
|
25514
25716
|
xs: {
|
|
25515
25717
|
span: 11
|
|
@@ -25518,7 +25720,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
25518
25720
|
span: 6
|
|
25519
25721
|
}
|
|
25520
25722
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
25521
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25723
|
+
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)],
|
|
25522
25724
|
disabled: disabled,
|
|
25523
25725
|
readOnly: true
|
|
25524
25726
|
}))), /*#__PURE__*/React__default['default'].createElement(GoodItem$1, _objectSpread2(_objectSpread2({
|
|
@@ -25527,22 +25729,25 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
25527
25729
|
type: type,
|
|
25528
25730
|
disabled: disabled,
|
|
25529
25731
|
canUpdateNumber: showChangeBtn,
|
|
25530
|
-
showChangeBtn: showChangeBtn,
|
|
25531
|
-
alwaysShowChooseErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25532
|
-
showErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25732
|
+
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),
|
|
25733
|
+
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,
|
|
25734
|
+
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,
|
|
25533
25735
|
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
25534
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25736
|
+
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)],
|
|
25535
25737
|
onChange: function onChange(val) {
|
|
25536
25738
|
return changeGoodHandle(val);
|
|
25537
25739
|
},
|
|
25538
25740
|
onModeChange: handleModeChange,
|
|
25539
25741
|
showModeBtn: false,
|
|
25540
25742
|
isStrict: isStrict,
|
|
25743
|
+
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,
|
|
25744
|
+
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,
|
|
25541
25745
|
tradeGoods: {
|
|
25542
25746
|
originDataSource: getGoodDetails({
|
|
25543
|
-
mode: isStrict
|
|
25747
|
+
mode: isStrict,
|
|
25748
|
+
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
|
|
25544
25749
|
}),
|
|
25545
|
-
uniqueKey: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25750
|
+
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',
|
|
25546
25751
|
selectedGoodsChange: selectedGoodsChange
|
|
25547
25752
|
}
|
|
25548
25753
|
})));
|
|
@@ -27803,6 +28008,17 @@ var SkxGoods = function SkxGoods(props) {
|
|
|
27803
28008
|
}));
|
|
27804
28009
|
};
|
|
27805
28010
|
|
|
28011
|
+
var SYSTEM_ORDER_COLUMNS_MAP = {
|
|
28012
|
+
BS_SYSTEM_ORDER: kmkfUtils.BS_SYSTEM_ORDER_CONFIG.columns,
|
|
28013
|
+
KM_SYSTEM_ORDER: kmkfUtils.KM_SYSTEM_ORDER_CONFIG.columns,
|
|
28014
|
+
WLN_SYSTEM_ORDER: kmkfUtils.WLN_SYSTEM_ORDER_CONFIG.columns,
|
|
28015
|
+
WDT_SYSTEM_ORDER: kmkfUtils.WDT_SYSTEM_ORDER_CONFIG.columns,
|
|
28016
|
+
BS_E3_SYSTEM_ORDER: kmkfUtils.BS_E3_SYSTEM_ORDER_CONFIG.columns,
|
|
28017
|
+
GY_SYSTEM_ORDER: kmkfUtils.GY_SYSTEM_ORDER_CONFIG.columns,
|
|
28018
|
+
JST_SYSTEM_ORDER: kmkfUtils.JST_SYSTEM_ORDER_CONFIG.columns,
|
|
28019
|
+
JY_SYSTEM_ORDER: kmkfUtils.JY_SYSTEM_ORDER_CONFIG.columns
|
|
28020
|
+
};
|
|
28021
|
+
|
|
27806
28022
|
exports.Address = ApaasAddress;
|
|
27807
28023
|
exports.AliPay = AliPay;
|
|
27808
28024
|
exports.ApaasAddress = Province;
|
|
@@ -27863,6 +28079,7 @@ exports.Payment = Payment;
|
|
|
27863
28079
|
exports.PublicReissue = PublicReissue;
|
|
27864
28080
|
exports.Remark = RemarkInput;
|
|
27865
28081
|
exports.ReturnLogistics = ExpressLogistics;
|
|
28082
|
+
exports.SYSTEM_ORDER_COLUMNS_MAP = SYSTEM_ORDER_COLUMNS_MAP;
|
|
27866
28083
|
exports.ShopName = ShopNameSelect;
|
|
27867
28084
|
exports.SkxGoods = SkxGoods;
|
|
27868
28085
|
exports.SkxIdInputSelect = IdInputSelect;
|