@kmkf-fe-packages/basic-components 2.7.3-beta.3 → 2.7.3-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js
CHANGED
|
@@ -15725,6 +15725,122 @@ var jkyColumns = [{
|
|
|
15725
15725
|
}
|
|
15726
15726
|
}];
|
|
15727
15727
|
|
|
15728
|
+
var getYesOrNo$3 = function getYesOrNo(val) {
|
|
15729
|
+
if (!isBoolean(val)) return null;
|
|
15730
|
+
return val ? '是' : '否';
|
|
15731
|
+
};
|
|
15732
|
+
var wlnColumns = [{
|
|
15733
|
+
dataIndex: 'goodName',
|
|
15734
|
+
title: '商品名称',
|
|
15735
|
+
width: 250,
|
|
15736
|
+
ellipsis: true,
|
|
15737
|
+
render: renderTextEllipsis
|
|
15738
|
+
}, {
|
|
15739
|
+
dataIndex: 'goodShortName',
|
|
15740
|
+
title: "\u5546\u54C1\u7B80\u79F0",
|
|
15741
|
+
ellipsis: true,
|
|
15742
|
+
width: 150,
|
|
15743
|
+
render: renderTextEllipsis
|
|
15744
|
+
}, {
|
|
15745
|
+
dataIndex: 'goodNo',
|
|
15746
|
+
title: '商品编码',
|
|
15747
|
+
width: 150,
|
|
15748
|
+
ellipsis: true,
|
|
15749
|
+
render: renderTextEllipsis
|
|
15750
|
+
}, {
|
|
15751
|
+
dataIndex: 'goodId',
|
|
15752
|
+
title: '商品ID',
|
|
15753
|
+
width: 200,
|
|
15754
|
+
ellipsis: true,
|
|
15755
|
+
render: renderTextEllipsis
|
|
15756
|
+
}, {
|
|
15757
|
+
dataIndex: 'goodPicUrl',
|
|
15758
|
+
title: '商品图片',
|
|
15759
|
+
width: 100,
|
|
15760
|
+
render: function render(picUrl) {
|
|
15761
|
+
return /*#__PURE__*/React.createElement("img", {
|
|
15762
|
+
style: {
|
|
15763
|
+
width: '30px',
|
|
15764
|
+
height: '30px',
|
|
15765
|
+
objectFit: 'contain'
|
|
15766
|
+
},
|
|
15767
|
+
src: picUrl
|
|
15768
|
+
});
|
|
15769
|
+
}
|
|
15770
|
+
}, {
|
|
15771
|
+
dataIndex: 'goodBarcode',
|
|
15772
|
+
title: '商品条码',
|
|
15773
|
+
width: 200,
|
|
15774
|
+
ellipsis: true,
|
|
15775
|
+
render: renderTextEllipsis
|
|
15776
|
+
}, {
|
|
15777
|
+
dataIndex: 'propertiesValue',
|
|
15778
|
+
title: '规格值',
|
|
15779
|
+
width: 200,
|
|
15780
|
+
ellipsis: true,
|
|
15781
|
+
render: renderTextEllipsis
|
|
15782
|
+
}, {
|
|
15783
|
+
dataIndex: 'specNo',
|
|
15784
|
+
title: "SKU\u7F16\u7801",
|
|
15785
|
+
ellipsis: true,
|
|
15786
|
+
width: 150,
|
|
15787
|
+
render: renderTextEllipsis
|
|
15788
|
+
}, {
|
|
15789
|
+
dataIndex: 'specId',
|
|
15790
|
+
title: "SKU ID",
|
|
15791
|
+
ellipsis: true,
|
|
15792
|
+
width: 150,
|
|
15793
|
+
render: renderTextEllipsis
|
|
15794
|
+
}, {
|
|
15795
|
+
dataIndex: 'specImgUrl',
|
|
15796
|
+
title: "SKU \u56FE\u7247",
|
|
15797
|
+
ellipsis: true,
|
|
15798
|
+
width: 150,
|
|
15799
|
+
render: function render(val) {
|
|
15800
|
+
return /*#__PURE__*/React.createElement(Image, {
|
|
15801
|
+
width: 30,
|
|
15802
|
+
src: val
|
|
15803
|
+
});
|
|
15804
|
+
}
|
|
15805
|
+
}, {
|
|
15806
|
+
dataIndex: 'specBarcode',
|
|
15807
|
+
title: '规格条码',
|
|
15808
|
+
width: 150,
|
|
15809
|
+
ellipsis: true,
|
|
15810
|
+
render: renderTextEllipsis
|
|
15811
|
+
}, {
|
|
15812
|
+
dataIndex: 'brandName',
|
|
15813
|
+
title: '品牌名称',
|
|
15814
|
+
width: 200,
|
|
15815
|
+
ellipsis: true,
|
|
15816
|
+
render: renderTextEllipsis
|
|
15817
|
+
}, {
|
|
15818
|
+
dataIndex: 'retailPrice',
|
|
15819
|
+
title: "\u96F6\u552E\u4EF7",
|
|
15820
|
+
ellipsis: true,
|
|
15821
|
+
width: 100,
|
|
15822
|
+
render: renderTextEllipsis
|
|
15823
|
+
}, {
|
|
15824
|
+
dataIndex: 'marketPrice',
|
|
15825
|
+
title: "\u5E02\u573A\u4EF7",
|
|
15826
|
+
ellipsis: true,
|
|
15827
|
+
width: 150,
|
|
15828
|
+
render: renderTextEllipsis
|
|
15829
|
+
}, {
|
|
15830
|
+
dataIndex: 'unitName',
|
|
15831
|
+
title: '基本单位',
|
|
15832
|
+
width: 150,
|
|
15833
|
+
render: renderTextEllipsis
|
|
15834
|
+
}, {
|
|
15835
|
+
dataIndex: 'skuType',
|
|
15836
|
+
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
15837
|
+
ellipsis: true,
|
|
15838
|
+
width: 150,
|
|
15839
|
+
render: function render(val) {
|
|
15840
|
+
return renderTextEllipsis(getYesOrNo$3(val === 'combine'));
|
|
15841
|
+
}
|
|
15842
|
+
}];
|
|
15843
|
+
|
|
15728
15844
|
var getColumnsMap = function getColumnsMap() {
|
|
15729
15845
|
return cloneDeep({
|
|
15730
15846
|
gy: gyColumns,
|
|
@@ -15733,7 +15849,8 @@ var getColumnsMap = function getColumnsMap() {
|
|
|
15733
15849
|
bse3: bse3Columns,
|
|
15734
15850
|
km: kmColumns,
|
|
15735
15851
|
jy: jyColumns,
|
|
15736
|
-
jky: jkyColumns
|
|
15852
|
+
jky: jkyColumns,
|
|
15853
|
+
wln: wlnColumns
|
|
15737
15854
|
});
|
|
15738
15855
|
};
|
|
15739
15856
|
var getColumnsBaseInfo = function getColumnsBaseInfo() {
|
|
@@ -17812,6 +17929,27 @@ var componentMap$1 = {
|
|
|
17812
17929
|
onChange: props.handleChange
|
|
17813
17930
|
}));
|
|
17814
17931
|
},
|
|
17932
|
+
TagsSelect: function TagsSelect(props) {
|
|
17933
|
+
return "\u8BF7\u9009\u62E9".concat(props === null || props === void 0 ? void 0 : props.name).length > 10 ? /*#__PURE__*/React.createElement(Tooltip, {
|
|
17934
|
+
title: "\u8BF7\u9009\u62E9".concat(props === null || props === void 0 ? void 0 : props.name)
|
|
17935
|
+
}, /*#__PURE__*/React.createElement(Select, _objectSpread2(_objectSpread2({
|
|
17936
|
+
mode: "tags",
|
|
17937
|
+
placeholder: "\u8BF7\u9009\u62E9".concat(props === null || props === void 0 ? void 0 : props.name),
|
|
17938
|
+
optionFilterProp: "label",
|
|
17939
|
+
allowClear: true,
|
|
17940
|
+
maxTagCount: "responsive"
|
|
17941
|
+
}, props), {}, {
|
|
17942
|
+
onChange: props.handleChange
|
|
17943
|
+
}))) : /*#__PURE__*/React.createElement(Select, _objectSpread2(_objectSpread2({
|
|
17944
|
+
mode: "tags",
|
|
17945
|
+
placeholder: "\u8BF7\u9009\u62E9".concat(props === null || props === void 0 ? void 0 : props.name),
|
|
17946
|
+
optionFilterProp: "label",
|
|
17947
|
+
allowClear: true,
|
|
17948
|
+
maxTagCount: "responsive"
|
|
17949
|
+
}, props), {}, {
|
|
17950
|
+
onChange: props.handleChange
|
|
17951
|
+
}));
|
|
17952
|
+
},
|
|
17815
17953
|
Date: function Date(props) {
|
|
17816
17954
|
return /*#__PURE__*/React.createElement(RangePicker, _objectSpread2(_objectSpread2({
|
|
17817
17955
|
placeholder: ["".concat(props.name, "\u5F00\u59CB\u65F6\u95F4"), "".concat(props.name, "\u7ED3\u675F\u65F6\u95F4")],
|
|
@@ -18803,6 +18941,7 @@ var GoodList$5 = function GoodList(props, ref) {
|
|
|
18803
18941
|
columns = _useGetColumns2[0],
|
|
18804
18942
|
showColumnsDataIndexList = _useGetColumns2[1],
|
|
18805
18943
|
loading = _useGetColumns2[2];
|
|
18944
|
+
console.log("\uD83D\uDE80 ~ GoodsList.tsx:110 ~ GoodList ~ columns:", columns);
|
|
18806
18945
|
useImperativeHandle(ref, function () {
|
|
18807
18946
|
return {
|
|
18808
18947
|
getSelectGoodList: function getSelectGoodList() {
|
|
@@ -20795,7 +20934,7 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
20795
20934
|
};
|
|
20796
20935
|
};
|
|
20797
20936
|
|
|
20798
|
-
var getYesOrNo$
|
|
20937
|
+
var getYesOrNo$4 = function getYesOrNo(val) {
|
|
20799
20938
|
if (isNull(val)) return null;
|
|
20800
20939
|
return val ? '是' : '否';
|
|
20801
20940
|
};
|
|
@@ -20981,7 +21120,7 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
20981
21120
|
label: '否',
|
|
20982
21121
|
value: false
|
|
20983
21122
|
}]
|
|
20984
|
-
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$
|
|
21123
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
|
|
20985
21124
|
},
|
|
20986
21125
|
width: 100
|
|
20987
21126
|
}, {
|
|
@@ -21003,7 +21142,7 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
21003
21142
|
label: '否',
|
|
21004
21143
|
value: 0
|
|
21005
21144
|
}]
|
|
21006
|
-
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$
|
|
21145
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
|
|
21007
21146
|
}
|
|
21008
21147
|
}, {
|
|
21009
21148
|
dataIndex: 'unit',
|
|
@@ -21124,11 +21263,11 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
21124
21263
|
width: 150,
|
|
21125
21264
|
render: renderTextEllipsis
|
|
21126
21265
|
}, {
|
|
21127
|
-
dataIndex: '
|
|
21128
|
-
title: "\
|
|
21266
|
+
dataIndex: 'price',
|
|
21267
|
+
title: "\u5355\u4EF7",
|
|
21129
21268
|
align: 'center',
|
|
21130
21269
|
ellipsis: true,
|
|
21131
|
-
width:
|
|
21270
|
+
width: 250,
|
|
21132
21271
|
render: renderTextEllipsis
|
|
21133
21272
|
}, {
|
|
21134
21273
|
dataIndex: 'number',
|
|
@@ -21150,40 +21289,29 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
21150
21289
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
21151
21290
|
}
|
|
21152
21291
|
}, {
|
|
21153
|
-
dataIndex: '
|
|
21154
|
-
title: "\
|
|
21155
|
-
|
|
21156
|
-
|
|
21157
|
-
|
|
21158
|
-
|
|
21159
|
-
|
|
21160
|
-
|
|
21161
|
-
|
|
21162
|
-
|
|
21163
|
-
|
|
21164
|
-
|
|
21165
|
-
|
|
21166
|
-
|
|
21167
|
-
|
|
21168
|
-
|
|
21169
|
-
|
|
21170
|
-
|
|
21171
|
-
|
|
21172
|
-
|
|
21173
|
-
|
|
21174
|
-
|
|
21175
|
-
|
|
21176
|
-
align: 'center',
|
|
21177
|
-
ellipsis: true,
|
|
21178
|
-
width: 250,
|
|
21179
|
-
render: renderTextEllipsis
|
|
21180
|
-
}, {
|
|
21181
|
-
dataIndex: 'receivable',
|
|
21182
|
-
title: "\u9500\u552E\u91D1\u989D",
|
|
21183
|
-
align: 'center',
|
|
21184
|
-
ellipsis: true,
|
|
21185
|
-
width: 250,
|
|
21186
|
-
render: renderTextEllipsis
|
|
21292
|
+
dataIndex: 'outPrice',
|
|
21293
|
+
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
21294
|
+
width: 150,
|
|
21295
|
+
render: function render(_, record, index) {
|
|
21296
|
+
var value;
|
|
21297
|
+
if ((typeof record.number === 'number' || record.number) && (typeof record.price === 'number' || record.price)) {
|
|
21298
|
+
value = +(record.number * record.price).toFixed(2);
|
|
21299
|
+
}
|
|
21300
|
+
if (record.canUpdateNumber && !disabled) {
|
|
21301
|
+
return /*#__PURE__*/React.createElement(InputNumber, {
|
|
21302
|
+
style: {
|
|
21303
|
+
width: 70
|
|
21304
|
+
},
|
|
21305
|
+
value: value,
|
|
21306
|
+
min: 1,
|
|
21307
|
+
precision: 0,
|
|
21308
|
+
onChange: function onChange(num) {
|
|
21309
|
+
return updateHandle(num, index, 'total');
|
|
21310
|
+
}
|
|
21311
|
+
});
|
|
21312
|
+
}
|
|
21313
|
+
return value || value === 0 ? value : '';
|
|
21314
|
+
}
|
|
21187
21315
|
}, {
|
|
21188
21316
|
dataIndex: 'type',
|
|
21189
21317
|
title: "\u8D60\u54C1\u7C7B\u578B",
|
|
@@ -21209,30 +21337,9 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
21209
21337
|
label: '否',
|
|
21210
21338
|
value: false
|
|
21211
21339
|
}]
|
|
21212
|
-
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$
|
|
21340
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
|
|
21213
21341
|
},
|
|
21214
21342
|
width: 100
|
|
21215
|
-
}, {
|
|
21216
|
-
dataIndex: 'hasRefund',
|
|
21217
|
-
title: "\u662F\u5426\u9000\u6B3E",
|
|
21218
|
-
align: 'center',
|
|
21219
|
-
ellipsis: true,
|
|
21220
|
-
width: 100,
|
|
21221
|
-
render: function render(val, record, index) {
|
|
21222
|
-
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
21223
|
-
value: val,
|
|
21224
|
-
onChange: function onChange(value) {
|
|
21225
|
-
updateHandle(value, index, 'isGift');
|
|
21226
|
-
},
|
|
21227
|
-
options: [{
|
|
21228
|
-
label: '是',
|
|
21229
|
-
value: 1
|
|
21230
|
-
}, {
|
|
21231
|
-
label: '否',
|
|
21232
|
-
value: 0
|
|
21233
|
-
}]
|
|
21234
|
-
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$3(val));
|
|
21235
|
-
}
|
|
21236
21343
|
}, {
|
|
21237
21344
|
dataIndex: 'unit',
|
|
21238
21345
|
title: "\u5355\u4F4D",
|
|
@@ -21270,7 +21377,7 @@ var isNumberOrNumberString$1 = function isNumberOrNumberString(value) {
|
|
|
21270
21377
|
if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
|
|
21271
21378
|
return false;
|
|
21272
21379
|
};
|
|
21273
|
-
var getYesOrNo$
|
|
21380
|
+
var getYesOrNo$5 = function getYesOrNo(val) {
|
|
21274
21381
|
if (isNull(val)) return null;
|
|
21275
21382
|
return val ? '是' : '否';
|
|
21276
21383
|
};
|
|
@@ -21385,7 +21492,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
21385
21492
|
title: "\u662F\u5426\u53D6\u6D88",
|
|
21386
21493
|
width: 150,
|
|
21387
21494
|
render: function render(val) {
|
|
21388
|
-
return /*#__PURE__*/React.createElement("span", null, getYesOrNo$
|
|
21495
|
+
return /*#__PURE__*/React.createElement("span", null, getYesOrNo$5(val));
|
|
21389
21496
|
}
|
|
21390
21497
|
}, {
|
|
21391
21498
|
dataIndex: 'isGift',
|
|
@@ -21404,7 +21511,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
21404
21511
|
label: '否',
|
|
21405
21512
|
value: 0
|
|
21406
21513
|
}]
|
|
21407
|
-
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$
|
|
21514
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$5(val));
|
|
21408
21515
|
}
|
|
21409
21516
|
}, {
|
|
21410
21517
|
dataIndex: 'skuNote',
|
|
@@ -21530,7 +21637,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
21530
21637
|
label: '否',
|
|
21531
21638
|
value: 0
|
|
21532
21639
|
}]
|
|
21533
|
-
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$
|
|
21640
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$5(val));
|
|
21534
21641
|
}
|
|
21535
21642
|
}].map(function (item) {
|
|
21536
21643
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
@@ -21659,7 +21766,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
21659
21766
|
label: '否',
|
|
21660
21767
|
value: 0
|
|
21661
21768
|
}]
|
|
21662
|
-
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$
|
|
21769
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$5(val));
|
|
21663
21770
|
}
|
|
21664
21771
|
}].map(function (item) {
|
|
21665
21772
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
@@ -24534,35 +24641,51 @@ var processWlnGoods$1 = function processWlnGoods(_ref4) {
|
|
|
24534
24641
|
var list = _ref4.list,
|
|
24535
24642
|
canUpdateNumber = _ref4.canUpdateNumber;
|
|
24536
24643
|
return list.map(function (item) {
|
|
24537
|
-
|
|
24538
|
-
|
|
24539
|
-
|
|
24540
|
-
|
|
24541
|
-
|
|
24542
|
-
|
|
24543
|
-
|
|
24544
|
-
|
|
24545
|
-
|
|
24546
|
-
|
|
24547
|
-
|
|
24644
|
+
var goodName = item.goodName,
|
|
24645
|
+
goodShortName = item.goodShortName,
|
|
24646
|
+
goodNo = item.goodNo,
|
|
24647
|
+
goodId = item.goodId,
|
|
24648
|
+
goodBarcode = item.goodBarcode,
|
|
24649
|
+
propertiesValue = item.propertiesValue,
|
|
24650
|
+
specNo = item.specNo,
|
|
24651
|
+
specId = item.specId,
|
|
24652
|
+
specImgUrl = item.specImgUrl,
|
|
24653
|
+
specBarcode = item.specBarcode,
|
|
24654
|
+
brandName = item.brandName,
|
|
24655
|
+
retailPrice = item.retailPrice,
|
|
24656
|
+
marketPrice = item.marketPrice,
|
|
24657
|
+
unitName = item.unitName,
|
|
24658
|
+
skuType = item.skuType;
|
|
24548
24659
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
24549
|
-
|
|
24550
|
-
|
|
24551
|
-
|
|
24552
|
-
|
|
24553
|
-
//
|
|
24554
|
-
//
|
|
24555
|
-
//
|
|
24556
|
-
//
|
|
24557
|
-
//
|
|
24558
|
-
//
|
|
24660
|
+
wlnItemName: goodName,
|
|
24661
|
+
goodsCode: goodNo,
|
|
24662
|
+
wlnSkuName: propertiesValue,
|
|
24663
|
+
skuCode: specNo,
|
|
24664
|
+
// skuName: '', // "线上sku名称",
|
|
24665
|
+
// olnSkuCode: '', // "线上sku编码",
|
|
24666
|
+
// sku: '', // "线上sku id",
|
|
24667
|
+
// name: '', // "线上商品名称",
|
|
24668
|
+
// pic: '', // "线上图片",
|
|
24669
|
+
// olnItemCOde: '', // "线上商品编码",
|
|
24670
|
+
// code: '', // "线上商品id",
|
|
24671
|
+
barCode: goodBarcode,
|
|
24672
|
+
// money: '', // "实付金额",
|
|
24673
|
+
number: 1,
|
|
24674
|
+
share: '',
|
|
24675
|
+
// discountedUnitPrice: '', // "折后单价",
|
|
24676
|
+
originPrice: marketPrice,
|
|
24677
|
+
price: retailPrice,
|
|
24678
|
+
receivable: +((marketPrice || 0) * (retailPrice || 0)).toFixed(2),
|
|
24679
|
+
// type: '', // "赠品类型",
|
|
24680
|
+
isPackage: skuType === 'combine',
|
|
24681
|
+
// hasRefund: '', // 是否退款,
|
|
24682
|
+
unit: unitName,
|
|
24683
|
+
// pkgGoodsName: '', // "原组合商品名称",
|
|
24684
|
+
// pkgGoodsCode: '', // "原组合商品编码",
|
|
24685
|
+
// pkgGoodsId: '', // "原组合商品id",
|
|
24559
24686
|
uuid: uuid(),
|
|
24560
24687
|
canDelete: true,
|
|
24561
|
-
sellCount: 1,
|
|
24562
|
-
// sellPrice: retailPrice,
|
|
24563
|
-
// sellTotal: retailPrice ? (retailPrice * 1).toFixed(2) : '',
|
|
24564
24688
|
canEdit: true
|
|
24565
|
-
// canUpdateNumber,
|
|
24566
24689
|
});
|
|
24567
24690
|
});
|
|
24568
24691
|
};
|
|
@@ -25456,6 +25579,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
25456
25579
|
templateDetail: templateDetail
|
|
25457
25580
|
}));
|
|
25458
25581
|
};
|
|
25582
|
+
GoodItem$1.displayName = 'GoodItem';
|
|
25459
25583
|
|
|
25460
25584
|
var BsGoods = function BsGoods(props) {
|
|
25461
25585
|
var _withInfo$current3, _withInfo$current4;
|
|
@@ -29513,9 +29637,9 @@ var typeMap$2 = {
|
|
|
29513
29637
|
updateGoodsHandle: updateWlnGoodsHandle,
|
|
29514
29638
|
alwaysShowChooseErpGoodsBtn: true,
|
|
29515
29639
|
orderTypeKey: 'orderType',
|
|
29516
|
-
oIdKey: '
|
|
29517
|
-
outerOiIdKey: '
|
|
29518
|
-
goodDetailsKey: '
|
|
29640
|
+
oIdKey: 'billNo',
|
|
29641
|
+
outerOiIdKey: 'tpTid',
|
|
29642
|
+
goodDetailsKey: 'items',
|
|
29519
29643
|
isShowSelectTradeGoods: true,
|
|
29520
29644
|
showModeBtn: true
|
|
29521
29645
|
}
|
|
@@ -29577,7 +29701,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
29577
29701
|
case 0:
|
|
29578
29702
|
(_typeMap$type5 = typeMap$2[type]) === null || _typeMap$type5 === void 0 ? void 0 : _typeMap$type5.getOrderList(orderNo).then(function (data) {
|
|
29579
29703
|
var _valueRef$current3, _typeMap$type6, _typeMap$type7, _typeMap$type11, _ref3, _typeMap$type12;
|
|
29580
|
-
var orders = data || [];
|
|
29704
|
+
var orders = (type === 'WLN_REISSUE_GOODS' ? data === null || data === void 0 ? void 0 : data.orders : data) || [];
|
|
29581
29705
|
var showOrderInfo = orders === null || orders === void 0 ? void 0 : orders.map(function (orderItem) {
|
|
29582
29706
|
return _defineProperty({}, typeMap$2[type].oIdKey, orderItem[typeMap$2[type].oIdKey]);
|
|
29583
29707
|
});
|
|
@@ -29626,6 +29750,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
29626
29750
|
// 切换到非原单,清空列表
|
|
29627
29751
|
newValue[(_typeMap$type15 = typeMap$2[type]) === null || _typeMap$type15 === void 0 ? void 0 : _typeMap$type15.key] = [];
|
|
29628
29752
|
}
|
|
29753
|
+
console.log('**** changeTypeHandle', newValue);
|
|
29629
29754
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
29630
29755
|
};
|
|
29631
29756
|
var handleModeChange = function handleModeChange(mode) {
|
|
@@ -29760,6 +29885,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
29760
29885
|
var _order$typeMap$type$g;
|
|
29761
29886
|
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;
|
|
29762
29887
|
});
|
|
29888
|
+
console.log('***** hasGoodDetails', hasGoodDetails);
|
|
29763
29889
|
var goodDetails = hasGoodDetails ? (!isAllOrders || ((_typeMap$type22 = typeMap$2[type]) === null || _typeMap$type22 === void 0 ? void 0 : _typeMap$type22.isSelectTradeGoodsMerge)) && typeMap$2[type].mergeIdenticalGoods ? typeMap$2[type].mergeIdenticalGoods((_typeMap$type23 = typeMap$2[type]) === null || _typeMap$type23 === void 0 ? void 0 : _typeMap$type23.updateGoodsHandle(orders, orderRest, type)) : (_typeMap$type24 = typeMap$2[type]) === null || _typeMap$type24 === void 0 ? void 0 : _typeMap$type24.updateGoodsHandle(orders, orderRest, type) : [];
|
|
29764
29890
|
var orderNo = systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orderNo;
|
|
29765
29891
|
var list = mode && !isAllOrders ? goodDetails.filter(function (goodItem) {
|
|
@@ -73,5 +73,8 @@ export declare const SelectTradeGoods: {
|
|
|
73
73
|
({ columns, dataSource, getDataSourceAsync, selectedRowKeys, onChangeSelectedKeys, uniqueKey, isShowSelect, systemOrders, selectedSystemOrders, validSystemOrder, type, width, isReissueType, isReloadSelectTable, validSystemOrderFn, }: SelectTradeGoodsProps): React.JSX.Element;
|
|
74
74
|
displayName: string;
|
|
75
75
|
};
|
|
76
|
-
declare const GoodItem:
|
|
76
|
+
declare const GoodItem: {
|
|
77
|
+
(props: MakeRequired<Partial<BsGoodsProps>, 'useGoodsSourceFormat'>): React.JSX.Element;
|
|
78
|
+
displayName: string;
|
|
79
|
+
};
|
|
77
80
|
export default GoodItem;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const _default: ({
|
|
3
|
+
dataIndex: string;
|
|
4
|
+
title: string;
|
|
5
|
+
width: number;
|
|
6
|
+
render: (picUrl: string) => React.JSX.Element;
|
|
7
|
+
ellipsis?: undefined;
|
|
8
|
+
} | {
|
|
9
|
+
dataIndex: string;
|
|
10
|
+
title: string;
|
|
11
|
+
ellipsis: boolean;
|
|
12
|
+
width: number;
|
|
13
|
+
render: (val: string) => React.JSX.Element;
|
|
14
|
+
})[];
|
|
15
|
+
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/basic-components",
|
|
3
|
-
"version": "2.7.3-beta.
|
|
3
|
+
"version": "2.7.3-beta.4",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"homepage": "",
|
|
6
6
|
"license": "ISC",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"watch": "nodemon --ignore dist/ --ignore node_modules/ --watch src/ -C -e ts,tsx,less --debug -x 'yarn async'"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@kmkf-fe-packages/kmkf-utils": "2.7.3-beta.
|
|
23
|
+
"@kmkf-fe-packages/kmkf-utils": "2.7.3-beta.4",
|
|
24
24
|
"ahooks": "^3.7.4",
|
|
25
25
|
"ali-react-table": "2.6.1",
|
|
26
26
|
"bignumber.js": "^9.1.2",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"publishConfig": {
|
|
67
67
|
"access": "public"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "006184824679eeb9a994787da6e31518e6d6f981"
|
|
70
70
|
}
|