@kmkf-fe-packages/basic-components 2.7.7-beta.3 → 2.7.7-beta.5
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
|
@@ -14246,8 +14246,7 @@ var jstGoods = function jstGoods(props) {
|
|
|
14246
14246
|
return option.label.includes(input);
|
|
14247
14247
|
},
|
|
14248
14248
|
style: {
|
|
14249
|
-
|
|
14250
|
-
maxWidth: '180px'
|
|
14249
|
+
width: '180px'
|
|
14251
14250
|
},
|
|
14252
14251
|
platformType: platformType
|
|
14253
14252
|
})) : null, !showField || showField === 'logisticsCode' ? /*#__PURE__*/React.createElement(Input, {
|
|
@@ -20956,6 +20955,15 @@ var getYesOrNo$4 = function getYesOrNo(val) {
|
|
|
20956
20955
|
if (isNull(val)) return null;
|
|
20957
20956
|
return val ? '是' : '否';
|
|
20958
20957
|
};
|
|
20958
|
+
function toNum$1(value) {
|
|
20959
|
+
if (typeof value === 'string') {
|
|
20960
|
+
return value ? +value : void 0;
|
|
20961
|
+
}
|
|
20962
|
+
if (typeof value === 'number') {
|
|
20963
|
+
return value;
|
|
20964
|
+
}
|
|
20965
|
+
return void 0;
|
|
20966
|
+
}
|
|
20959
20967
|
var getColumns$3 = function getColumns(_ref) {
|
|
20960
20968
|
var _ref$text = _ref.text,
|
|
20961
20969
|
text = _ref$text === void 0 ? '' : _ref$text,
|
|
@@ -20970,13 +20978,6 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
20970
20978
|
ellipsis: true,
|
|
20971
20979
|
width: 250,
|
|
20972
20980
|
render: renderTextEllipsis
|
|
20973
|
-
}, {
|
|
20974
|
-
dataIndex: 'goodsCode',
|
|
20975
|
-
title: "\u5546\u54C1\u7F16\u7801",
|
|
20976
|
-
align: 'center',
|
|
20977
|
-
ellipsis: true,
|
|
20978
|
-
width: 250,
|
|
20979
|
-
render: renderTextEllipsis
|
|
20980
20981
|
}, {
|
|
20981
20982
|
dataIndex: 'wlnSkuName',
|
|
20982
20983
|
title: "sku\u540D\u79F0",
|
|
@@ -21032,7 +21033,7 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
21032
21033
|
});
|
|
21033
21034
|
}
|
|
21034
21035
|
}, {
|
|
21035
|
-
dataIndex: '
|
|
21036
|
+
dataIndex: 'olnItemCode',
|
|
21036
21037
|
title: "\u7EBF\u4E0A\u5546\u54C1\u7F16\u7801",
|
|
21037
21038
|
align: 'center',
|
|
21038
21039
|
ellipsis: true,
|
|
@@ -21066,7 +21067,7 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
21066
21067
|
ellipsis: true,
|
|
21067
21068
|
width: 100,
|
|
21068
21069
|
render: function render(val, record, index) {
|
|
21069
|
-
return record.
|
|
21070
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
21070
21071
|
style: {
|
|
21071
21072
|
width: 70
|
|
21072
21073
|
},
|
|
@@ -21092,44 +21093,76 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
21092
21093
|
ellipsis: true,
|
|
21093
21094
|
width: 250,
|
|
21094
21095
|
render: renderTextEllipsis
|
|
21095
|
-
}, {
|
|
21096
|
-
dataIndex: 'originPrice',
|
|
21097
|
-
title: "\u539F\u4EF7",
|
|
21098
|
-
align: 'center',
|
|
21099
|
-
ellipsis: true,
|
|
21100
|
-
width: 250,
|
|
21101
|
-
render: renderTextEllipsis
|
|
21102
21096
|
}, {
|
|
21103
21097
|
dataIndex: 'price',
|
|
21104
21098
|
title: "\u5355\u4EF7",
|
|
21105
21099
|
align: 'center',
|
|
21106
21100
|
ellipsis: true,
|
|
21107
21101
|
width: 250,
|
|
21108
|
-
render:
|
|
21102
|
+
render: function render(val, record, index) {
|
|
21103
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
21104
|
+
style: {
|
|
21105
|
+
width: 70
|
|
21106
|
+
},
|
|
21107
|
+
value: val,
|
|
21108
|
+
min: 0,
|
|
21109
|
+
precision: 2,
|
|
21110
|
+
onChange: function onChange(num) {
|
|
21111
|
+
return updateHandle(num, index, 'price');
|
|
21112
|
+
}
|
|
21113
|
+
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
21114
|
+
}
|
|
21109
21115
|
}, {
|
|
21110
21116
|
dataIndex: 'receivable',
|
|
21111
21117
|
title: "\u9500\u552E\u91D1\u989D",
|
|
21112
21118
|
align: 'center',
|
|
21113
21119
|
ellipsis: true,
|
|
21114
21120
|
width: 250,
|
|
21115
|
-
render:
|
|
21121
|
+
render: function render(val, record, index) {
|
|
21122
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
21123
|
+
style: {
|
|
21124
|
+
width: 70
|
|
21125
|
+
},
|
|
21126
|
+
value: val,
|
|
21127
|
+
min: 0,
|
|
21128
|
+
precision: 2,
|
|
21129
|
+
onChange: function onChange(num) {
|
|
21130
|
+
return updateHandle(num, index, 'receivable');
|
|
21131
|
+
}
|
|
21132
|
+
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
21133
|
+
}
|
|
21116
21134
|
}, {
|
|
21117
21135
|
dataIndex: 'type',
|
|
21118
21136
|
title: "\u8D60\u54C1\u7C7B\u578B",
|
|
21119
21137
|
align: 'center',
|
|
21120
21138
|
ellipsis: true,
|
|
21121
21139
|
width: 100,
|
|
21122
|
-
render:
|
|
21140
|
+
render: function render(val, record, index) {
|
|
21141
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
21142
|
+
value: val,
|
|
21143
|
+
onChange: function onChange(value) {
|
|
21144
|
+
updateHandle(value, index, 'type');
|
|
21145
|
+
},
|
|
21146
|
+
options: [{
|
|
21147
|
+
label: '赠品',
|
|
21148
|
+
value: 1
|
|
21149
|
+
}, {
|
|
21150
|
+
label: '非赠品',
|
|
21151
|
+
value: 0
|
|
21152
|
+
}]
|
|
21153
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
|
|
21154
|
+
}
|
|
21123
21155
|
}, {
|
|
21124
21156
|
dataIndex: 'isPackage',
|
|
21125
21157
|
title: "\u662F\u5426\u7EC4\u5408\u5546\u54C1",
|
|
21126
21158
|
align: 'center',
|
|
21127
21159
|
ellipsis: true,
|
|
21160
|
+
width: 200,
|
|
21128
21161
|
render: function render(val, record, index) {
|
|
21129
21162
|
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
21130
21163
|
value: val,
|
|
21131
21164
|
onChange: function onChange(value) {
|
|
21132
|
-
updateHandle(value, index, '
|
|
21165
|
+
updateHandle(value, index, 'isPackage');
|
|
21133
21166
|
},
|
|
21134
21167
|
options: [{
|
|
21135
21168
|
label: '是',
|
|
@@ -21139,28 +21172,15 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
21139
21172
|
value: false
|
|
21140
21173
|
}]
|
|
21141
21174
|
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
|
|
21142
|
-
}
|
|
21143
|
-
width: 200
|
|
21175
|
+
}
|
|
21144
21176
|
}, {
|
|
21145
21177
|
dataIndex: 'hasRefund',
|
|
21146
21178
|
title: "\u662F\u5426\u9000\u6B3E",
|
|
21147
21179
|
align: 'center',
|
|
21148
21180
|
ellipsis: true,
|
|
21149
21181
|
width: 100,
|
|
21150
|
-
render: function render(val
|
|
21151
|
-
return
|
|
21152
|
-
value: val,
|
|
21153
|
-
onChange: function onChange(value) {
|
|
21154
|
-
updateHandle(value, index, 'isGift');
|
|
21155
|
-
},
|
|
21156
|
-
options: [{
|
|
21157
|
-
label: '是',
|
|
21158
|
-
value: 1
|
|
21159
|
-
}, {
|
|
21160
|
-
label: '否',
|
|
21161
|
-
value: 0
|
|
21162
|
-
}]
|
|
21163
|
-
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
|
|
21182
|
+
render: function render(val) {
|
|
21183
|
+
return getYesOrNo$4(val);
|
|
21164
21184
|
}
|
|
21165
21185
|
}, {
|
|
21166
21186
|
dataIndex: 'unit',
|
|
@@ -21198,13 +21218,6 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
21198
21218
|
ellipsis: true,
|
|
21199
21219
|
width: 250,
|
|
21200
21220
|
render: renderTextEllipsis
|
|
21201
|
-
}, {
|
|
21202
|
-
dataIndex: 'goodsCode',
|
|
21203
|
-
title: "\u5546\u54C1\u7F16\u7801",
|
|
21204
|
-
align: 'center',
|
|
21205
|
-
ellipsis: true,
|
|
21206
|
-
width: 250,
|
|
21207
|
-
render: renderTextEllipsis
|
|
21208
21221
|
}, {
|
|
21209
21222
|
dataIndex: 'wlnSkuName',
|
|
21210
21223
|
title: "sku\u540D\u79F0",
|
|
@@ -21260,7 +21273,7 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
21260
21273
|
});
|
|
21261
21274
|
}
|
|
21262
21275
|
}, {
|
|
21263
|
-
dataIndex: '
|
|
21276
|
+
dataIndex: 'olnItemCode',
|
|
21264
21277
|
title: "\u7EBF\u4E0A\u5546\u54C1\u7F16\u7801",
|
|
21265
21278
|
align: 'center',
|
|
21266
21279
|
ellipsis: true,
|
|
@@ -21286,15 +21299,40 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
21286
21299
|
align: 'center',
|
|
21287
21300
|
ellipsis: true,
|
|
21288
21301
|
width: 250,
|
|
21289
|
-
render:
|
|
21302
|
+
render: function render(val, record, index) {
|
|
21303
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
21304
|
+
style: {
|
|
21305
|
+
width: 70
|
|
21306
|
+
},
|
|
21307
|
+
value: val,
|
|
21308
|
+
min: 0,
|
|
21309
|
+
precision: 2,
|
|
21310
|
+
onChange: function onChange(num) {
|
|
21311
|
+
return updateHandle(num, index, 'price');
|
|
21312
|
+
}
|
|
21313
|
+
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
21314
|
+
}
|
|
21290
21315
|
}, {
|
|
21291
21316
|
dataIndex: 'number',
|
|
21292
21317
|
title: "".concat(text, "\u6570\u91CF"),
|
|
21293
21318
|
align: 'center',
|
|
21294
21319
|
ellipsis: true,
|
|
21295
21320
|
width: 100,
|
|
21321
|
+
validator: function validator(_rule, value) {
|
|
21322
|
+
var productName = '';
|
|
21323
|
+
if (((value === null || value === void 0 ? void 0 : value.wlnReissueGoods) || []).some(function (goods) {
|
|
21324
|
+
var qty = toNum$1(goods === null || goods === void 0 ? void 0 : goods.number);
|
|
21325
|
+
var res = typeof qty === 'number' ? qty < 1 : true;
|
|
21326
|
+
if (res) {
|
|
21327
|
+
productName = (goods === null || goods === void 0 ? void 0 : goods.wlnItemName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.wlnItemName, "]") : '';
|
|
21328
|
+
}
|
|
21329
|
+
return res;
|
|
21330
|
+
})) {
|
|
21331
|
+
return Promise.reject("".concat(productName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
21332
|
+
}
|
|
21333
|
+
},
|
|
21296
21334
|
render: function render(val, record, index) {
|
|
21297
|
-
return record.
|
|
21335
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
21298
21336
|
style: {
|
|
21299
21337
|
width: 70
|
|
21300
21338
|
},
|
|
@@ -21307,28 +21345,21 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
21307
21345
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
21308
21346
|
}
|
|
21309
21347
|
}, {
|
|
21310
|
-
dataIndex: '
|
|
21348
|
+
dataIndex: 'money',
|
|
21311
21349
|
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
21312
21350
|
width: 150,
|
|
21313
|
-
render: function render(
|
|
21314
|
-
|
|
21315
|
-
|
|
21316
|
-
|
|
21317
|
-
|
|
21318
|
-
|
|
21319
|
-
|
|
21320
|
-
|
|
21321
|
-
|
|
21322
|
-
|
|
21323
|
-
|
|
21324
|
-
|
|
21325
|
-
precision: 0,
|
|
21326
|
-
onChange: function onChange(num) {
|
|
21327
|
-
return updateHandle(num, index, 'total');
|
|
21328
|
-
}
|
|
21329
|
-
});
|
|
21330
|
-
}
|
|
21331
|
-
return value || value === 0 ? value : '';
|
|
21351
|
+
render: function render(val, record, index) {
|
|
21352
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
21353
|
+
style: {
|
|
21354
|
+
width: 130
|
|
21355
|
+
},
|
|
21356
|
+
value: val,
|
|
21357
|
+
min: 0,
|
|
21358
|
+
precision: 2,
|
|
21359
|
+
onChange: function onChange(num) {
|
|
21360
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'money');
|
|
21361
|
+
}
|
|
21362
|
+
}) : /*#__PURE__*/React.createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
|
|
21332
21363
|
}
|
|
21333
21364
|
}, {
|
|
21334
21365
|
dataIndex: 'type',
|
|
@@ -21336,17 +21367,32 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
21336
21367
|
align: 'center',
|
|
21337
21368
|
ellipsis: true,
|
|
21338
21369
|
width: 100,
|
|
21339
|
-
render:
|
|
21370
|
+
render: function render(val, record, index) {
|
|
21371
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
21372
|
+
value: val,
|
|
21373
|
+
onChange: function onChange(value) {
|
|
21374
|
+
updateHandle(value, index, 'type');
|
|
21375
|
+
},
|
|
21376
|
+
options: [{
|
|
21377
|
+
label: '赠品',
|
|
21378
|
+
value: 1
|
|
21379
|
+
}, {
|
|
21380
|
+
label: '非赠品',
|
|
21381
|
+
value: 0
|
|
21382
|
+
}]
|
|
21383
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
|
|
21384
|
+
}
|
|
21340
21385
|
}, {
|
|
21341
21386
|
dataIndex: 'isPackage',
|
|
21342
21387
|
title: "\u662F\u5426\u7EC4\u5408\u5546\u54C1",
|
|
21343
21388
|
align: 'center',
|
|
21344
21389
|
ellipsis: true,
|
|
21390
|
+
width: 200,
|
|
21345
21391
|
render: function render(val, record, index) {
|
|
21346
21392
|
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
21347
21393
|
value: val,
|
|
21348
21394
|
onChange: function onChange(value) {
|
|
21349
|
-
updateHandle(value, index, '
|
|
21395
|
+
updateHandle(value, index, 'isPackage');
|
|
21350
21396
|
},
|
|
21351
21397
|
options: [{
|
|
21352
21398
|
label: '是',
|
|
@@ -21356,8 +21402,7 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
21356
21402
|
value: false
|
|
21357
21403
|
}]
|
|
21358
21404
|
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
|
|
21359
|
-
}
|
|
21360
|
-
width: 100
|
|
21405
|
+
}
|
|
21361
21406
|
}, {
|
|
21362
21407
|
dataIndex: 'unit',
|
|
21363
21408
|
title: "\u5355\u4F4D",
|
|
@@ -21399,7 +21444,7 @@ var getYesOrNo$5 = function getYesOrNo(val) {
|
|
|
21399
21444
|
if (isNull(val)) return null;
|
|
21400
21445
|
return val ? '是' : '否';
|
|
21401
21446
|
};
|
|
21402
|
-
function toNum$
|
|
21447
|
+
function toNum$2(value) {
|
|
21403
21448
|
if (typeof value === 'string') {
|
|
21404
21449
|
return value ? +value : void 0;
|
|
21405
21450
|
}
|
|
@@ -21579,7 +21624,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
21579
21624
|
validator: function validator(_rule, value) {
|
|
21580
21625
|
var goodsName = '';
|
|
21581
21626
|
if (((value === null || value === void 0 ? void 0 : value.gyReissueGoods) || []).some(function (goods) {
|
|
21582
|
-
var qty = toNum$
|
|
21627
|
+
var qty = toNum$2(goods === null || goods === void 0 ? void 0 : goods.qty);
|
|
21583
21628
|
var res = typeof qty === 'number' ? qty < 1 : true;
|
|
21584
21629
|
if (res) {
|
|
21585
21630
|
goodsName = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
|
|
@@ -21700,7 +21745,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
21700
21745
|
validator: function validator(_rule, value) {
|
|
21701
21746
|
var goodsName = '';
|
|
21702
21747
|
if (((value === null || value === void 0 ? void 0 : value.gyReturnGoods) || []).some(function (goods) {
|
|
21703
|
-
var qty = toNum$
|
|
21748
|
+
var qty = toNum$2(goods === null || goods === void 0 ? void 0 : goods.qty);
|
|
21704
21749
|
var res = typeof qty === 'number' ? qty < 1 : true;
|
|
21705
21750
|
if (res) {
|
|
21706
21751
|
goodsName = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
|
|
@@ -21801,7 +21846,7 @@ var fillAttrs = function fillAttrs(item) {
|
|
|
21801
21846
|
if (!item.align) item.align = 'center';
|
|
21802
21847
|
return item;
|
|
21803
21848
|
};
|
|
21804
|
-
function toNum$
|
|
21849
|
+
function toNum$3(value) {
|
|
21805
21850
|
if (typeof value === 'string') {
|
|
21806
21851
|
return value ? +value : void 0;
|
|
21807
21852
|
}
|
|
@@ -22041,7 +22086,7 @@ var getColumns$5 = function getColumns() {
|
|
|
22041
22086
|
validator: function validator(_rule, value) {
|
|
22042
22087
|
var goodsName = '';
|
|
22043
22088
|
if (((value === null || value === void 0 ? void 0 : value.jstReissueGoods) || []).some(function (goods) {
|
|
22044
|
-
var qty = toNum$
|
|
22089
|
+
var qty = toNum$3(goods === null || goods === void 0 ? void 0 : goods.qty);
|
|
22045
22090
|
var res = typeof qty === 'number' ? qty < 1 : true;
|
|
22046
22091
|
if (res) {
|
|
22047
22092
|
goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
|
|
@@ -22142,7 +22187,7 @@ var getColumns$5 = function getColumns() {
|
|
|
22142
22187
|
validator: function validator(_rule, value) {
|
|
22143
22188
|
var goodsName = '';
|
|
22144
22189
|
if (((value === null || value === void 0 ? void 0 : value.jstReturnGoods) || []).some(function (goods) {
|
|
22145
|
-
var v = toNum$
|
|
22190
|
+
var v = toNum$3(goods === null || goods === void 0 ? void 0 : goods.salePrice);
|
|
22146
22191
|
var res = typeof v === 'number' ? v < 0 : true;
|
|
22147
22192
|
if (res) {
|
|
22148
22193
|
goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
|
|
@@ -22172,7 +22217,7 @@ var getColumns$5 = function getColumns() {
|
|
|
22172
22217
|
validator: function validator(_rule, value) {
|
|
22173
22218
|
var goodsName = '';
|
|
22174
22219
|
if (((value === null || value === void 0 ? void 0 : value.jstReturnGoods) || []).some(function (goods) {
|
|
22175
|
-
var qty = toNum$
|
|
22220
|
+
var qty = toNum$3(goods === null || goods === void 0 ? void 0 : goods.qty);
|
|
22176
22221
|
var res = typeof qty === 'number' ? qty < 1 : true;
|
|
22177
22222
|
if (res) {
|
|
22178
22223
|
goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
|
|
@@ -22517,7 +22562,7 @@ var getColumns$5 = function getColumns() {
|
|
|
22517
22562
|
};
|
|
22518
22563
|
};
|
|
22519
22564
|
|
|
22520
|
-
function toNum$
|
|
22565
|
+
function toNum$4(value) {
|
|
22521
22566
|
if (typeof value === 'string') {
|
|
22522
22567
|
return value ? +value : void 0;
|
|
22523
22568
|
}
|
|
@@ -22735,7 +22780,7 @@ var getColumns$6 = function getColumns() {
|
|
|
22735
22780
|
if (!(extraParams === null || extraParams === void 0 ? void 0 : extraParams.quantityVerify)) return undefined;
|
|
22736
22781
|
var title = '';
|
|
22737
22782
|
if (((value === null || value === void 0 ? void 0 : value.kmReissueGoods) || []).some(function (goods) {
|
|
22738
|
-
var realNum = toNum$
|
|
22783
|
+
var realNum = toNum$4(goods === null || goods === void 0 ? void 0 : goods.realNum);
|
|
22739
22784
|
var res = typeof realNum === 'number' ? realNum < 1 : true;
|
|
22740
22785
|
if (res) {
|
|
22741
22786
|
title = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
|
|
@@ -22765,7 +22810,7 @@ var getColumns$6 = function getColumns() {
|
|
|
22765
22810
|
validator: function validator(_rule, value) {
|
|
22766
22811
|
var title = '';
|
|
22767
22812
|
if (((value === null || value === void 0 ? void 0 : value.kmReissueGoods) || []).some(function (goods) {
|
|
22768
|
-
var desiredNum = toNum$
|
|
22813
|
+
var desiredNum = toNum$4(goods === null || goods === void 0 ? void 0 : goods.desiredNum);
|
|
22769
22814
|
var res = typeof desiredNum === 'number' ? desiredNum < 1 : true;
|
|
22770
22815
|
if (res) {
|
|
22771
22816
|
title = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
|
|
@@ -22926,7 +22971,7 @@ var getColumns$6 = function getColumns() {
|
|
|
22926
22971
|
validator: function validator(_rule, value) {
|
|
22927
22972
|
var title = '';
|
|
22928
22973
|
if (((value === null || value === void 0 ? void 0 : value.kmReturnGoods) || []).some(function (goods) {
|
|
22929
|
-
var desiredNum = toNum$
|
|
22974
|
+
var desiredNum = toNum$4(goods === null || goods === void 0 ? void 0 : goods.desiredNum);
|
|
22930
22975
|
var res = typeof desiredNum === 'number' ? desiredNum < 1 : true;
|
|
22931
22976
|
if (res) {
|
|
22932
22977
|
title = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
|
|
@@ -23093,7 +23138,7 @@ var getColumns$6 = function getColumns() {
|
|
|
23093
23138
|
if (!(extraParams === null || extraParams === void 0 ? void 0 : extraParams.quantityVerify)) return undefined;
|
|
23094
23139
|
var title = '';
|
|
23095
23140
|
if (((value === null || value === void 0 ? void 0 : value.kmExchangeGoods) || []).some(function (goods) {
|
|
23096
|
-
var realNum = toNum$
|
|
23141
|
+
var realNum = toNum$4(goods === null || goods === void 0 ? void 0 : goods.realNum);
|
|
23097
23142
|
var res = typeof realNum === 'number' ? realNum < 1 : true;
|
|
23098
23143
|
if (res) {
|
|
23099
23144
|
title = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
|
|
@@ -23126,7 +23171,7 @@ var getColumns$6 = function getColumns() {
|
|
|
23126
23171
|
validator: function validator(_rule, value) {
|
|
23127
23172
|
var title = '';
|
|
23128
23173
|
if (((value === null || value === void 0 ? void 0 : value.kmExchangeGoods) || []).some(function (goods) {
|
|
23129
|
-
var desiredNum = toNum$
|
|
23174
|
+
var desiredNum = toNum$4(goods === null || goods === void 0 ? void 0 : goods.desiredNum);
|
|
23130
23175
|
var res = typeof desiredNum === 'number' ? desiredNum < 1 : true;
|
|
23131
23176
|
if (res) {
|
|
23132
23177
|
title = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
|
|
@@ -23187,7 +23232,7 @@ var isNumberOrNumberString$3 = function isNumberOrNumberString(value) {
|
|
|
23187
23232
|
if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
|
|
23188
23233
|
return false;
|
|
23189
23234
|
};
|
|
23190
|
-
function toNum$
|
|
23235
|
+
function toNum$5(value) {
|
|
23191
23236
|
if (typeof value === 'string') {
|
|
23192
23237
|
return value ? +value : void 0;
|
|
23193
23238
|
}
|
|
@@ -23522,7 +23567,7 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
23522
23567
|
validator: function validator(_rule, value) {
|
|
23523
23568
|
var productName = '';
|
|
23524
23569
|
if (((value === null || value === void 0 ? void 0 : value.jyReissueGoods) || []).some(function (goods) {
|
|
23525
|
-
var qty = toNum$
|
|
23570
|
+
var qty = toNum$5(goods === null || goods === void 0 ? void 0 : goods.sellCount);
|
|
23526
23571
|
var res = typeof qty === 'number' ? qty < 1 : true;
|
|
23527
23572
|
if (res) {
|
|
23528
23573
|
productName = (goods === null || goods === void 0 ? void 0 : goods.productName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.productName, "]") : '';
|
|
@@ -23680,7 +23725,7 @@ var isNumberOrNumberString$4 = function isNumberOrNumberString(value) {
|
|
|
23680
23725
|
if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
|
|
23681
23726
|
return false;
|
|
23682
23727
|
};
|
|
23683
|
-
function toNum$
|
|
23728
|
+
function toNum$6(value) {
|
|
23684
23729
|
if (typeof value === 'string') {
|
|
23685
23730
|
return value ? +value : void 0;
|
|
23686
23731
|
}
|
|
@@ -24068,7 +24113,7 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
24068
24113
|
validator: function validator(_rule, value) {
|
|
24069
24114
|
var goodsName = '';
|
|
24070
24115
|
if (((value === null || value === void 0 ? void 0 : value.jkyReissueGoods) || []).some(function (goods) {
|
|
24071
|
-
var qty = toNum$
|
|
24116
|
+
var qty = toNum$6(goods === null || goods === void 0 ? void 0 : goods.sellCount);
|
|
24072
24117
|
var res = typeof qty === 'number' ? qty < 1 : true;
|
|
24073
24118
|
if (res) {
|
|
24074
24119
|
goodsName = (goods === null || goods === void 0 ? void 0 : goods.goodsName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodsName, "]") : '';
|
|
@@ -26436,6 +26481,7 @@ var jstUtils = {
|
|
|
26436
26481
|
|
|
26437
26482
|
var singletonMap$4 = new Map();
|
|
26438
26483
|
var getOrderListSingleton = function getOrderListSingleton(orderNo) {
|
|
26484
|
+
var isSplit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
26439
26485
|
if (!singletonMap$4.has(orderNo)) {
|
|
26440
26486
|
var p = new Promise(function (resolve, reject) {
|
|
26441
26487
|
var doReject = function doReject(err) {
|
|
@@ -26446,7 +26492,8 @@ var getOrderListSingleton = function getOrderListSingleton(orderNo) {
|
|
|
26446
26492
|
extendRequest('/qy/gdfw/order/wlnOrderList', {
|
|
26447
26493
|
method: 'post',
|
|
26448
26494
|
data: {
|
|
26449
|
-
billCode: orderNo
|
|
26495
|
+
billCode: orderNo,
|
|
26496
|
+
isSplit: isSplit
|
|
26450
26497
|
}
|
|
26451
26498
|
}).then(function (data) {
|
|
26452
26499
|
if (data === null || data === void 0 ? void 0 : data.success) {
|
|
@@ -28444,7 +28491,7 @@ var componentMap$2 = {
|
|
|
28444
28491
|
key: 'wlnGoods',
|
|
28445
28492
|
name: '吉客云',
|
|
28446
28493
|
orderNo: 'tradeNo',
|
|
28447
|
-
goodDetailOrderNo: '
|
|
28494
|
+
goodDetailOrderNo: 'tpTid',
|
|
28448
28495
|
eventNameMap: {
|
|
28449
28496
|
// pubsub 事件
|
|
28450
28497
|
type: 'wlnType',
|
|
@@ -28463,7 +28510,13 @@ var componentMap$2 = {
|
|
|
28463
28510
|
returnDeleteGood: 'wlnReturnDeleteGood',
|
|
28464
28511
|
exchangeDeleteGood: 'wlnExchangeDeleteGood'
|
|
28465
28512
|
},
|
|
28466
|
-
getOrderList: wlnUtils.getOrderListSingleton
|
|
28513
|
+
getOrderList: wlnUtils.getOrderListSingleton,
|
|
28514
|
+
checkShowModeBtn: function checkShowModeBtn(value) {
|
|
28515
|
+
var _value$allOrders;
|
|
28516
|
+
return value === null || value === void 0 ? void 0 : (_value$allOrders = value.allOrders) === null || _value$allOrders === void 0 ? void 0 : _value$allOrders.some(function (order) {
|
|
28517
|
+
return order === null || order === void 0 ? void 0 : order.tpTid.includes('|');
|
|
28518
|
+
});
|
|
28519
|
+
}
|
|
28467
28520
|
},
|
|
28468
28521
|
WDT_AFTERSALE_GOODS: {
|
|
28469
28522
|
type: 'wdtAftersale',
|
|
@@ -28496,14 +28549,14 @@ var componentMap$2 = {
|
|
|
28496
28549
|
}
|
|
28497
28550
|
};
|
|
28498
28551
|
var CommonGoods = function CommonGoods(props) {
|
|
28499
|
-
var _withInfo$current3, _withInfo$current4, _componentMap$
|
|
28552
|
+
var _componentMap$compTyp, _withInfo$current3, _withInfo$current4, _componentMap$compTyp7;
|
|
28500
28553
|
var value = props.value,
|
|
28501
28554
|
disabled = props.disabled,
|
|
28502
28555
|
onChange = props.onChange,
|
|
28503
28556
|
compType = props.type;
|
|
28504
28557
|
// console.log('value?.orders', value?.orders);
|
|
28505
28558
|
// 合并单订单会包含","
|
|
28506
|
-
var showModeBtn = !['BS_E3_GOODS'].includes(compType) && ((value === null || value === void 0 ? void 0 : value.orders) || []).some(function (order) {
|
|
28559
|
+
var showModeBtn = ((_componentMap$compTyp = componentMap$2[compType]) === null || _componentMap$compTyp === void 0 ? void 0 : _componentMap$compTyp.checkShowModeBtn) ? componentMap$2[compType].checkShowModeBtn(value) : !['BS_E3_GOODS'].includes(compType) && ((value === null || value === void 0 ? void 0 : value.orders) || []).some(function (order) {
|
|
28507
28560
|
var _order$componentMap$c;
|
|
28508
28561
|
return order === null || order === void 0 ? void 0 : (_order$componentMap$c = order[componentMap$2[compType].orderNo]) === null || _order$componentMap$c === void 0 ? void 0 : _order$componentMap$c.includes(',');
|
|
28509
28562
|
});
|
|
@@ -28747,8 +28800,8 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
28747
28800
|
});
|
|
28748
28801
|
var orderNo = value === null || value === void 0 ? void 0 : value.orderNo;
|
|
28749
28802
|
return mode ? goodDetails.filter(function (goodItem) {
|
|
28750
|
-
var _componentMap$
|
|
28751
|
-
return !orderNo || (goodItem === null || goodItem === void 0 ? void 0 : goodItem[(_componentMap$
|
|
28803
|
+
var _componentMap$compTyp2;
|
|
28804
|
+
return !orderNo || (goodItem === null || goodItem === void 0 ? void 0 : goodItem[(_componentMap$compTyp2 = componentMap$2[compType]) === null || _componentMap$compTyp2 === void 0 ? void 0 : _componentMap$compTyp2.goodDetailOrderNo]) === orderNo;
|
|
28752
28805
|
}) : goodDetails;
|
|
28753
28806
|
};
|
|
28754
28807
|
// 找到该订单号下所有商品
|
|
@@ -28773,8 +28826,8 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
28773
28826
|
// await getKmSupplier(goodDetails);
|
|
28774
28827
|
// }
|
|
28775
28828
|
return _context3.abrupt("return", mode ? goodDetails.filter(function (goodItem) {
|
|
28776
|
-
var _componentMap$
|
|
28777
|
-
return !orderNo || (goodItem === null || goodItem === void 0 ? void 0 : goodItem[(_componentMap$
|
|
28829
|
+
var _componentMap$compTyp3;
|
|
28830
|
+
return !orderNo || (goodItem === null || goodItem === void 0 ? void 0 : goodItem[(_componentMap$compTyp3 = componentMap$2[compType]) === null || _componentMap$compTyp3 === void 0 ? void 0 : _componentMap$compTyp3.goodDetailOrderNo]) === orderNo;
|
|
28778
28831
|
}) : goodDetails);
|
|
28779
28832
|
case 7:
|
|
28780
28833
|
case "end":
|
|
@@ -28815,7 +28868,7 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
28815
28868
|
}, [value === null || value === void 0 ? void 0 : value.allOrders, value === null || value === void 0 ? void 0 : value.isStrict, value === null || value === void 0 ? void 0 : value.orderNo, compType]);
|
|
28816
28869
|
var selectedGoodsChange = /*#__PURE__*/function () {
|
|
28817
28870
|
var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(skuList) {
|
|
28818
|
-
var _valueRef$current9, _componentMap$
|
|
28871
|
+
var _valueRef$current9, _componentMap$compTyp4, _componentMap$compTyp5, _uniqBy;
|
|
28819
28872
|
var newValue, isStrict, originTradeGoodList, currentSelectGoodList;
|
|
28820
28873
|
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
28821
28874
|
while (1) switch (_context5.prev = _context5.next) {
|
|
@@ -28836,8 +28889,8 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
28836
28889
|
case 7:
|
|
28837
28890
|
originTradeGoodList = _context5.t0;
|
|
28838
28891
|
// 当前选中的所有商品【包含了原订单+商品库】
|
|
28839
|
-
currentSelectGoodList = ((_valueRef$current9 = valueRef.current) === null || _valueRef$current9 === void 0 ? void 0 : _valueRef$current9["".concat(componentMap$2 === null || componentMap$2 === void 0 ? void 0 : (_componentMap$
|
|
28840
|
-
newValue["".concat(componentMap$2 === null || componentMap$2 === void 0 ? void 0 : (_componentMap$
|
|
28892
|
+
currentSelectGoodList = ((_valueRef$current9 = valueRef.current) === null || _valueRef$current9 === void 0 ? void 0 : _valueRef$current9["".concat(componentMap$2 === null || componentMap$2 === void 0 ? void 0 : (_componentMap$compTyp4 = componentMap$2[compType]) === null || _componentMap$compTyp4 === void 0 ? void 0 : _componentMap$compTyp4.key)]) || [];
|
|
28893
|
+
newValue["".concat(componentMap$2 === null || componentMap$2 === void 0 ? void 0 : (_componentMap$compTyp5 = componentMap$2[compType]) === null || _componentMap$compTyp5 === void 0 ? void 0 : _componentMap$compTyp5.key)] = (_uniqBy = uniqBy(originTradeGoodList.concat(currentSelectGoodList), 'uuid')) === null || _uniqBy === void 0 ? void 0 : _uniqBy.filter(function (item) {
|
|
28841
28894
|
return skuList.includes(item.uuid);
|
|
28842
28895
|
});
|
|
28843
28896
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
@@ -28853,8 +28906,8 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
28853
28906
|
}();
|
|
28854
28907
|
// 商品信息组件暂存后 重新编辑,此时需要重新获取订单下所有系统自订单的商品信息
|
|
28855
28908
|
var getDataSourceAsync = function getDataSourceAsync() {
|
|
28856
|
-
var _componentMap$
|
|
28857
|
-
return (value === null || value === void 0 ? void 0 : value.orderNo) ? (_componentMap$
|
|
28909
|
+
var _componentMap$compTyp6;
|
|
28910
|
+
return (value === null || value === void 0 ? void 0 : value.orderNo) ? (_componentMap$compTyp6 = componentMap$2[compType]) === null || _componentMap$compTyp6 === void 0 ? void 0 : _componentMap$compTyp6.getOrderList(value === null || value === void 0 ? void 0 : value.orderNo).then(function (data) {
|
|
28858
28911
|
var list = processAllOrders({
|
|
28859
28912
|
data: data,
|
|
28860
28913
|
orderNo: value === null || value === void 0 ? void 0 : value.orderNo,
|
|
@@ -28887,7 +28940,7 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
28887
28940
|
isStrict: value === null || value === void 0 ? void 0 : value.isStrict,
|
|
28888
28941
|
systemOrders: value === null || value === void 0 ? void 0 : value.allOrders,
|
|
28889
28942
|
selectedSystemOrders: value === null || value === void 0 ? void 0 : value.orders,
|
|
28890
|
-
showChangeBtn: (_componentMap$
|
|
28943
|
+
showChangeBtn: (_componentMap$compTyp7 = componentMap$2[compType]) === null || _componentMap$compTyp7 === void 0 ? void 0 : _componentMap$compTyp7.showChangeBtn,
|
|
28891
28944
|
tradeGoods: {
|
|
28892
28945
|
originDataSource: originDataSource,
|
|
28893
28946
|
getDataSourceAsync: getDataSourceAsync,
|
|
@@ -29660,15 +29713,21 @@ var typeMap$2 = {
|
|
|
29660
29713
|
updateGoodsHandle: updateWlnGoodsHandle,
|
|
29661
29714
|
alwaysShowChooseErpGoodsBtn: true,
|
|
29662
29715
|
orderTypeKey: 'orderType',
|
|
29663
|
-
oIdKey: '
|
|
29716
|
+
oIdKey: 'tradeNo',
|
|
29664
29717
|
outerOiIdKey: 'tpTid',
|
|
29665
29718
|
goodDetailsKey: 'items',
|
|
29666
29719
|
isShowSelectTradeGoods: true,
|
|
29667
|
-
|
|
29720
|
+
checkShowModeBtn: function checkShowModeBtn(value) {
|
|
29721
|
+
var _value$wlnSystemOrder, _value$wlnSystemOrder2;
|
|
29722
|
+
var selectOrder = (value === null || value === void 0 ? void 0 : value.wlnSystemOrderNo) && (value === null || value === void 0 ? void 0 : (_value$wlnSystemOrder = value.wlnSystemOrder) === null || _value$wlnSystemOrder === void 0 ? void 0 : (_value$wlnSystemOrder2 = _value$wlnSystemOrder.orders) === null || _value$wlnSystemOrder2 === void 0 ? void 0 : _value$wlnSystemOrder2.find(function (order) {
|
|
29723
|
+
return (value === null || value === void 0 ? void 0 : value.wlnSystemOrderNo) === (order === null || order === void 0 ? void 0 : order.billNo);
|
|
29724
|
+
}));
|
|
29725
|
+
return (selectOrder === null || selectOrder === void 0 ? void 0 : selectOrder.tpTid.includes('|')) || (selectOrder === null || selectOrder === void 0 ? void 0 : selectOrder.tid.includes('|'));
|
|
29726
|
+
}
|
|
29668
29727
|
}
|
|
29669
29728
|
};
|
|
29670
29729
|
var PublicReissue = function PublicReissue(props) {
|
|
29671
|
-
var _typeMap$
|
|
29730
|
+
var _typeMap$type, _typeMap$type2, _typeMap$type20, _typeMap$type38, _typeMap$type44, _typeMap$type45, _typeMap$type46, _typeMap$type47, _value$typeMap$type$s8, _typeMap$type48, _typeMap$type49, _typeMap$type50, _typeMap$type51, _typeMap$type52, _typeMap$type53, _typeMap$type54, _typeMap$type55, _value$typeMap$type$s9, _typeMap$type56, _typeMap$type57, _typeMap$type58, _typeMap$type59;
|
|
29672
29731
|
var value = props.value,
|
|
29673
29732
|
onChange = props.onChange,
|
|
29674
29733
|
_props$reasonList = props.reasonList,
|
|
@@ -29677,6 +29736,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
29677
29736
|
type = props.type,
|
|
29678
29737
|
isSettingConfig = props.isSettingConfig,
|
|
29679
29738
|
other = _objectWithoutProperties(props, _excluded$m);
|
|
29739
|
+
var showModeBtn = ((_typeMap$type = typeMap$2[type]) === null || _typeMap$type === void 0 ? void 0 : _typeMap$type.checkShowModeBtn) ? typeMap$2[type].checkShowModeBtn(value) : !!((_typeMap$type2 = typeMap$2[type]) === null || _typeMap$type2 === void 0 ? void 0 : _typeMap$type2.showModeBtn) || false;
|
|
29680
29740
|
var getOrderFlag = useRef(false);
|
|
29681
29741
|
var _useState = useState(false),
|
|
29682
29742
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -29684,11 +29744,11 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
29684
29744
|
setIsStrict = _useState2[1];
|
|
29685
29745
|
// TODO: 在修改场景下手动获取一次订单详情中数据
|
|
29686
29746
|
useEffect(function () {
|
|
29687
|
-
var _value$typeMap$type$s, _value$typeMap$type$s2, _typeMap$
|
|
29688
|
-
if (!getOrderFlag.current && !(value === null || value === void 0 ? void 0 : (_value$typeMap$type$s = value[(_typeMap$
|
|
29689
|
-
var _value$typeMap$type$s5, _typeMap$
|
|
29747
|
+
var _value$typeMap$type$s, _value$typeMap$type$s2, _typeMap$type3, _value$typeMap$type$s3, _typeMap$type4, _value$typeMap$type$s4, _typeMap$type5;
|
|
29748
|
+
if (!getOrderFlag.current && !(value === null || value === void 0 ? void 0 : (_value$typeMap$type$s = value[(_typeMap$type3 = typeMap$2[type]) === null || _typeMap$type3 === void 0 ? void 0 : _typeMap$type3.systemOrder]) === null || _value$typeMap$type$s === void 0 ? void 0 : (_value$typeMap$type$s2 = _value$typeMap$type$s.orders) === null || _value$typeMap$type$s2 === void 0 ? void 0 : _value$typeMap$type$s2.length) && (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s3 = value[(_typeMap$type4 = typeMap$2[type]) === null || _typeMap$type4 === void 0 ? void 0 : _typeMap$type4.systemOrder]) === null || _value$typeMap$type$s3 === void 0 ? void 0 : _value$typeMap$type$s3.orderNo) && !(value === null || value === void 0 ? void 0 : (_value$typeMap$type$s4 = value[(_typeMap$type5 = typeMap$2[type]) === null || _typeMap$type5 === void 0 ? void 0 : _typeMap$type5.systemOrder]) === null || _value$typeMap$type$s4 === void 0 ? void 0 : _value$typeMap$type$s4.isRequest)) {
|
|
29749
|
+
var _value$typeMap$type$s5, _typeMap$type6;
|
|
29690
29750
|
getOrderFlag.current = true;
|
|
29691
|
-
getOrderList(value === null || value === void 0 ? void 0 : (_value$typeMap$type$s5 = value[(_typeMap$
|
|
29751
|
+
getOrderList(value === null || value === void 0 ? void 0 : (_value$typeMap$type$s5 = value[(_typeMap$type6 = typeMap$2[type]) === null || _typeMap$type6 === void 0 ? void 0 : _typeMap$type6.systemOrder]) === null || _value$typeMap$type$s5 === void 0 ? void 0 : _value$typeMap$type$s5.orderNo, type === 'WLN_REISSUE_GOODS' ? props.orderBackGoodsLevel !== '2' : void 0);
|
|
29692
29752
|
}
|
|
29693
29753
|
return;
|
|
29694
29754
|
}, [value]);
|
|
@@ -29718,27 +29778,30 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
29718
29778
|
}, []);
|
|
29719
29779
|
var getOrderList = /*#__PURE__*/function () {
|
|
29720
29780
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(orderNo) {
|
|
29721
|
-
var _typeMap$
|
|
29781
|
+
var _typeMap$type7;
|
|
29782
|
+
var isSplit,
|
|
29783
|
+
_args = arguments;
|
|
29722
29784
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
29723
29785
|
while (1) switch (_context.prev = _context.next) {
|
|
29724
29786
|
case 0:
|
|
29725
|
-
|
|
29726
|
-
|
|
29787
|
+
isSplit = _args.length > 1 && _args[1] !== undefined ? _args[1] : false;
|
|
29788
|
+
(_typeMap$type7 = typeMap$2[type]) === null || _typeMap$type7 === void 0 ? void 0 : _typeMap$type7.getOrderList(orderNo, isSplit).then(function (data) {
|
|
29789
|
+
var _valueRef$current3, _typeMap$type8, _typeMap$type9, _typeMap$type13, _ref3, _typeMap$type14;
|
|
29727
29790
|
var orders = (type === 'WLN_REISSUE_GOODS' ? data === null || data === void 0 ? void 0 : data.orders : data) || [];
|
|
29728
29791
|
var showOrderInfo = orders === null || orders === void 0 ? void 0 : orders.map(function (orderItem) {
|
|
29729
29792
|
return _defineProperty({}, typeMap$2[type].oIdKey, orderItem[typeMap$2[type].oIdKey]);
|
|
29730
29793
|
});
|
|
29731
29794
|
var typeObj = {};
|
|
29732
|
-
var systemOrderNo = valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$current3 = valueRef.current) === null || _valueRef$current3 === void 0 ? void 0 : _valueRef$current3[(_typeMap$
|
|
29733
|
-
if (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
29734
|
-
var _typeMap$
|
|
29795
|
+
var systemOrderNo = valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$current3 = valueRef.current) === null || _valueRef$current3 === void 0 ? void 0 : _valueRef$current3[(_typeMap$type8 = typeMap$2[type]) === null || _typeMap$type8 === void 0 ? void 0 : _typeMap$type8.systemOrderNo];
|
|
29796
|
+
if (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type9 = typeMap$2[type]) === null || _typeMap$type9 === void 0 ? void 0 : _typeMap$type9.systemOrderBillType) {
|
|
29797
|
+
var _typeMap$type11, _typeMap$type12;
|
|
29735
29798
|
var targetOrder = orders.find(function (oItem) {
|
|
29736
|
-
var _typeMap$
|
|
29737
|
-
return oItem[(_typeMap$
|
|
29799
|
+
var _typeMap$type10;
|
|
29800
|
+
return oItem[(_typeMap$type10 = typeMap$2[type]) === null || _typeMap$type10 === void 0 ? void 0 : _typeMap$type10.oIdKey] === systemOrderNo;
|
|
29738
29801
|
});
|
|
29739
|
-
typeObj[(_typeMap$
|
|
29802
|
+
typeObj[(_typeMap$type11 = typeMap$2[type]) === null || _typeMap$type11 === void 0 ? void 0 : _typeMap$type11.systemOrderBillType] = targetOrder === null || targetOrder === void 0 ? void 0 : targetOrder[(_typeMap$type12 = typeMap$2[type]) === null || _typeMap$type12 === void 0 ? void 0 : _typeMap$type12.orderTypeKey];
|
|
29740
29803
|
}
|
|
29741
|
-
var newValue = _objectSpread2(_objectSpread2(_objectSpread2({}, valueRef.current || {}), typeObj), {}, _defineProperty({}, (_typeMap$
|
|
29804
|
+
var newValue = _objectSpread2(_objectSpread2(_objectSpread2({}, valueRef.current || {}), typeObj), {}, _defineProperty({}, (_typeMap$type13 = typeMap$2[type]) === null || _typeMap$type13 === void 0 ? void 0 : _typeMap$type13.systemOrder, _objectSpread2(_objectSpread2({}, ((_ref3 = valueRef.current || {}) === null || _ref3 === void 0 ? void 0 : _ref3[(_typeMap$type14 = typeMap$2[type]) === null || _typeMap$type14 === void 0 ? void 0 : _typeMap$type14.systemOrder]) || {}), {}, {
|
|
29742
29805
|
showOrderInfo: showOrderInfo,
|
|
29743
29806
|
orders: orders
|
|
29744
29807
|
})));
|
|
@@ -29746,7 +29809,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
29746
29809
|
onChange(newValue);
|
|
29747
29810
|
}
|
|
29748
29811
|
});
|
|
29749
|
-
case
|
|
29812
|
+
case 2:
|
|
29750
29813
|
case "end":
|
|
29751
29814
|
return _context.stop();
|
|
29752
29815
|
}
|
|
@@ -29757,31 +29820,30 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
29757
29820
|
};
|
|
29758
29821
|
}();
|
|
29759
29822
|
var changeTypeHandle = function changeTypeHandle(val) {
|
|
29760
|
-
var _typeMap$
|
|
29823
|
+
var _typeMap$type15;
|
|
29761
29824
|
var typeName = val === null || val === void 0 ? void 0 : val[0];
|
|
29762
29825
|
// if (typeName === value?.[typeMap[type]?.typeName]?.[0]) return
|
|
29763
29826
|
// const systemOrderNo = value?.[typeMap[type]?.systemOrderNo];
|
|
29764
29827
|
var newValue = _objectSpread2({}, value);
|
|
29765
|
-
newValue[(_typeMap$
|
|
29828
|
+
newValue[(_typeMap$type15 = typeMap$2[type]) === null || _typeMap$type15 === void 0 ? void 0 : _typeMap$type15.typeName] = val;
|
|
29766
29829
|
if (typeName === '1') {
|
|
29767
|
-
var _typeMap$
|
|
29768
|
-
newValue[(_typeMap$
|
|
29830
|
+
var _typeMap$type16;
|
|
29831
|
+
newValue[(_typeMap$type16 = typeMap$2[type]) === null || _typeMap$type16 === void 0 ? void 0 : _typeMap$type16.key] = getGoodDetails({
|
|
29769
29832
|
mode: isStrict
|
|
29770
29833
|
});
|
|
29771
29834
|
} else if (typeName === '2') {
|
|
29772
|
-
var _typeMap$
|
|
29835
|
+
var _typeMap$type17;
|
|
29773
29836
|
// 切换到非原单,清空列表
|
|
29774
|
-
newValue[(_typeMap$
|
|
29837
|
+
newValue[(_typeMap$type17 = typeMap$2[type]) === null || _typeMap$type17 === void 0 ? void 0 : _typeMap$type17.key] = [];
|
|
29775
29838
|
}
|
|
29776
|
-
console.log('**** changeTypeHandle', newValue);
|
|
29777
29839
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
29778
29840
|
};
|
|
29779
29841
|
var handleModeChange = function handleModeChange(mode) {
|
|
29780
|
-
var _value$typeMap$type$t, _typeMap$
|
|
29781
|
-
var isOriginalOrder = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$t = value[(_typeMap$
|
|
29842
|
+
var _value$typeMap$type$t, _typeMap$type18, _typeMap$type19;
|
|
29843
|
+
var isOriginalOrder = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$t = value[(_typeMap$type18 = typeMap$2[type]) === null || _typeMap$type18 === void 0 ? void 0 : _typeMap$type18.typeName]) === null || _value$typeMap$type$t === void 0 ? void 0 : _value$typeMap$type$t[0]) === '1';
|
|
29782
29844
|
setIsStrict(mode);
|
|
29783
29845
|
if (!isOriginalOrder) return;
|
|
29784
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, (_typeMap$
|
|
29846
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, (_typeMap$type19 = typeMap$2[type]) === null || _typeMap$type19 === void 0 ? void 0 : _typeMap$type19.key, getGoodDetails({
|
|
29785
29847
|
mode: mode
|
|
29786
29848
|
}))));
|
|
29787
29849
|
};
|
|
@@ -29798,7 +29860,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
29798
29860
|
});
|
|
29799
29861
|
}
|
|
29800
29862
|
return map;
|
|
29801
|
-
}, [value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
29863
|
+
}, [value === null || value === void 0 ? void 0 : value[(_typeMap$type20 = typeMap$2[type]) === null || _typeMap$type20 === void 0 ? void 0 : _typeMap$type20.key]]);
|
|
29802
29864
|
// 用于跟踪已经处理过的 sysItemId,避免重复处理
|
|
29803
29865
|
var processedSysItemIdsRef = useRef(new Set());
|
|
29804
29866
|
useEffect(function () {
|
|
@@ -29870,13 +29932,13 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
29870
29932
|
}
|
|
29871
29933
|
}, [sysItemIdMap]);
|
|
29872
29934
|
var getGoodDetails = function getGoodDetails(_ref5) {
|
|
29873
|
-
var _typeMap$
|
|
29935
|
+
var _typeMap$type21, _typeMap$type22, _value$typeMap$type$s6, _typeMap$type23, _typeMap$type24, _typeMap$type25, _typeMap$type26;
|
|
29874
29936
|
var mode = _ref5.mode,
|
|
29875
29937
|
sysOrderNo = _ref5.sysOrderNo,
|
|
29876
29938
|
_ref5$isAllOrders = _ref5.isAllOrders,
|
|
29877
29939
|
isAllOrders = _ref5$isAllOrders === void 0 ? false : _ref5$isAllOrders;
|
|
29878
|
-
var systemOrder = value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
29879
|
-
var systemOrderNo = sysOrderNo !== null && sysOrderNo !== void 0 ? sysOrderNo : value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
29940
|
+
var systemOrder = value === null || value === void 0 ? void 0 : value[(_typeMap$type21 = typeMap$2[type]) === null || _typeMap$type21 === void 0 ? void 0 : _typeMap$type21.systemOrder];
|
|
29941
|
+
var systemOrderNo = sysOrderNo !== null && sysOrderNo !== void 0 ? sysOrderNo : value === null || value === void 0 ? void 0 : value[(_typeMap$type22 = typeMap$2[type]) === null || _typeMap$type22 === void 0 ? void 0 : _typeMap$type22.systemOrderNo];
|
|
29880
29942
|
var order = systemOrderNo && ((systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orders) || []).find(function (order) {
|
|
29881
29943
|
return order[typeMap$2[type].oIdKey] === systemOrderNo;
|
|
29882
29944
|
});
|
|
@@ -29903,12 +29965,12 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
29903
29965
|
canEdit: true
|
|
29904
29966
|
};
|
|
29905
29967
|
}
|
|
29906
|
-
var orders = isAllOrders ? (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s6 = value[(_typeMap$
|
|
29968
|
+
var orders = isAllOrders ? (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s6 = value[(_typeMap$type23 = typeMap$2[type]) === null || _typeMap$type23 === void 0 ? void 0 : _typeMap$type23.systemOrder]) === null || _value$typeMap$type$s6 === void 0 ? void 0 : _value$typeMap$type$s6.orders) || [] : order ? [order] : [];
|
|
29907
29969
|
var hasGoodDetails = orders === null || orders === void 0 ? void 0 : orders.some(function (order) {
|
|
29908
29970
|
var _order$typeMap$type$g;
|
|
29909
29971
|
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;
|
|
29910
29972
|
});
|
|
29911
|
-
var goodDetails = hasGoodDetails ? (!isAllOrders || ((_typeMap$
|
|
29973
|
+
var goodDetails = hasGoodDetails ? (!isAllOrders || ((_typeMap$type24 = typeMap$2[type]) === null || _typeMap$type24 === void 0 ? void 0 : _typeMap$type24.isSelectTradeGoodsMerge)) && typeMap$2[type].mergeIdenticalGoods ? typeMap$2[type].mergeIdenticalGoods((_typeMap$type25 = typeMap$2[type]) === null || _typeMap$type25 === void 0 ? void 0 : _typeMap$type25.updateGoodsHandle(orders, orderRest, type)) : (_typeMap$type26 = typeMap$2[type]) === null || _typeMap$type26 === void 0 ? void 0 : _typeMap$type26.updateGoodsHandle(orders, orderRest, type) : [];
|
|
29912
29974
|
var orderNo = systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orderNo;
|
|
29913
29975
|
var list = mode && !isAllOrders ? goodDetails.filter(function (goodItem) {
|
|
29914
29976
|
return !orderNo || goodItem[typeMap$2[type].outerOiIdKey] === orderNo;
|
|
@@ -29916,30 +29978,30 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
29916
29978
|
return list;
|
|
29917
29979
|
};
|
|
29918
29980
|
var changeGoodHandle = function changeGoodHandle(val) {
|
|
29919
|
-
var _typeMap$
|
|
29981
|
+
var _typeMap$type27;
|
|
29920
29982
|
var newValue = _objectSpread2({}, value);
|
|
29921
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
29983
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type27 = typeMap$2[type]) === null || _typeMap$type27 === void 0 ? void 0 : _typeMap$type27.key)] = val || [];
|
|
29922
29984
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
29923
29985
|
};
|
|
29924
29986
|
var changeSystemOrderHandle = function changeSystemOrderHandle(val) {
|
|
29925
|
-
var _typeMap$
|
|
29987
|
+
var _typeMap$type28, _typeMap$type29, _value$typeMap$type$t2, _typeMap$type34, _value$typeMap$type$t3, _typeMap$type36;
|
|
29926
29988
|
var newValue = _objectSpread2({}, value);
|
|
29927
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
29928
|
-
if (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
29929
|
-
var _value$typeMap$type$s7, _typeMap$
|
|
29930
|
-
var orders = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s7 = value[(_typeMap$
|
|
29989
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type28 = typeMap$2[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.systemOrderNo)] = val;
|
|
29990
|
+
if (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type29 = typeMap$2[type]) === null || _typeMap$type29 === void 0 ? void 0 : _typeMap$type29.systemOrderBillType) {
|
|
29991
|
+
var _value$typeMap$type$s7, _typeMap$type30, _typeMap$type32, _typeMap$type33;
|
|
29992
|
+
var orders = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s7 = value[(_typeMap$type30 = typeMap$2[type]) === null || _typeMap$type30 === void 0 ? void 0 : _typeMap$type30.systemOrder]) === null || _value$typeMap$type$s7 === void 0 ? void 0 : _value$typeMap$type$s7.orders) || [];
|
|
29931
29993
|
var targetOrder = val && orders.find(function (oItem) {
|
|
29932
|
-
var _typeMap$
|
|
29933
|
-
return oItem[(_typeMap$
|
|
29994
|
+
var _typeMap$type31;
|
|
29995
|
+
return oItem[(_typeMap$type31 = typeMap$2[type]) === null || _typeMap$type31 === void 0 ? void 0 : _typeMap$type31.oIdKey] === val;
|
|
29934
29996
|
});
|
|
29935
|
-
newValue[(_typeMap$
|
|
29997
|
+
newValue[(_typeMap$type32 = typeMap$2[type]) === null || _typeMap$type32 === void 0 ? void 0 : _typeMap$type32.systemOrderBillType] = targetOrder === null || targetOrder === void 0 ? void 0 : targetOrder[(_typeMap$type33 = typeMap$2[type]) === null || _typeMap$type33 === void 0 ? void 0 : _typeMap$type33.orderTypeKey];
|
|
29936
29998
|
}
|
|
29937
|
-
if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$
|
|
29938
|
-
var _typeMap$type33;
|
|
29939
|
-
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)] = [];
|
|
29940
|
-
} else if (['1'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$type34 = typeMap$2[type]) === null || _typeMap$type34 === void 0 ? void 0 : _typeMap$type34.typeName]) === null || _value$typeMap$type$t3 === void 0 ? void 0 : _value$typeMap$type$t3[0])) {
|
|
29999
|
+
if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$type34 = typeMap$2[type]) === null || _typeMap$type34 === void 0 ? void 0 : _typeMap$type34.typeName]) === null || _value$typeMap$type$t2 === void 0 ? void 0 : _value$typeMap$type$t2[0])) {
|
|
29941
30000
|
var _typeMap$type35;
|
|
29942
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type35 = typeMap$2[type]) === null || _typeMap$type35 === void 0 ? void 0 : _typeMap$type35.key)] =
|
|
30001
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type35 = typeMap$2[type]) === null || _typeMap$type35 === void 0 ? void 0 : _typeMap$type35.key)] = [];
|
|
30002
|
+
} else if (['1'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$type36 = typeMap$2[type]) === null || _typeMap$type36 === void 0 ? void 0 : _typeMap$type36.typeName]) === null || _value$typeMap$type$t3 === void 0 ? void 0 : _value$typeMap$type$t3[0])) {
|
|
30003
|
+
var _typeMap$type37;
|
|
30004
|
+
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)] = getGoodDetails({
|
|
29943
30005
|
mode: isStrict,
|
|
29944
30006
|
sysOrderNo: val
|
|
29945
30007
|
});
|
|
@@ -29947,27 +30009,27 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
29947
30009
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue, 'systemOrder');
|
|
29948
30010
|
};
|
|
29949
30011
|
//显示选择商品按钮
|
|
29950
|
-
var showChangeBtn = !!(value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
30012
|
+
var showChangeBtn = !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type38 = typeMap$2[type]) === null || _typeMap$type38 === void 0 ? void 0 : _typeMap$type38.systemOrderNo]);
|
|
29951
30013
|
var selectedGoodsChange = useCallback(function (skuList) {
|
|
29952
|
-
var _typeMap$
|
|
30014
|
+
var _typeMap$type39, _typeMap$type40, _typeMap$type41, _uniqBy, _typeMap$type42;
|
|
29953
30015
|
var newValue = _objectSpread2({}, value);
|
|
29954
30016
|
// 原订单商品
|
|
29955
30017
|
var originTradeGoodList = getGoodDetails({
|
|
29956
30018
|
mode: isStrict,
|
|
29957
|
-
isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
30019
|
+
isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type39 = typeMap$2[type]) === null || _typeMap$type39 === void 0 ? void 0 : _typeMap$type39.isShowSelectTradeGoods
|
|
29958
30020
|
}) || [];
|
|
29959
30021
|
// 当前选中的所有商品【包含了原订单+商品库】
|
|
29960
|
-
var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
29961
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
29962
|
-
var _typeMap$
|
|
29963
|
-
return skuList.includes(item[(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
30022
|
+
var currentSelectGoodList = (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)]) || [];
|
|
30023
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type41 = typeMap$2[type]) === null || _typeMap$type41 === void 0 ? void 0 : _typeMap$type41.key)] = (_uniqBy = uniqBy(originTradeGoodList.concat(currentSelectGoodList), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type42 = typeMap$2[type]) === null || _typeMap$type42 === void 0 ? void 0 : _typeMap$type42.uniqueKey) || 'uuid')) === null || _uniqBy === void 0 ? void 0 : _uniqBy.filter(function (item) {
|
|
30024
|
+
var _typeMap$type43;
|
|
30025
|
+
return skuList.includes(item[(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type43 = typeMap$2[type]) === null || _typeMap$type43 === void 0 ? void 0 : _typeMap$type43.uniqueKey) || 'uuid']);
|
|
29964
30026
|
});
|
|
29965
30027
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
29966
|
-
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
30028
|
+
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type44 = typeMap$2[type]) === null || _typeMap$type44 === void 0 ? void 0 : _typeMap$type44.key)], isStrict]);
|
|
29967
30029
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
|
|
29968
30030
|
gutter: 8,
|
|
29969
30031
|
wrap: true,
|
|
29970
|
-
id: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
30032
|
+
id: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type45 = typeMap$2[type]) === null || _typeMap$type45 === void 0 ? void 0 : _typeMap$type45.key) || "".concat(Date.now())
|
|
29971
30033
|
}, /*#__PURE__*/React.createElement(Col, {
|
|
29972
30034
|
className: "gutter-row",
|
|
29973
30035
|
xs: {
|
|
@@ -29983,12 +30045,12 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
29983
30045
|
},
|
|
29984
30046
|
disabled: disabled,
|
|
29985
30047
|
allowClear: false,
|
|
29986
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
30048
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type46 = typeMap$2[type]) === null || _typeMap$type46 === void 0 ? void 0 : _typeMap$type46.systemOrderNo)],
|
|
29987
30049
|
onChange: function onChange(val) {
|
|
29988
30050
|
return changeSystemOrderHandle(val);
|
|
29989
30051
|
},
|
|
29990
|
-
placeholder: "\u9009\u62E9".concat((typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
29991
|
-
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s8 = value[(_typeMap$
|
|
30052
|
+
placeholder: "\u9009\u62E9".concat((typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type47 = typeMap$2[type]) === null || _typeMap$type47 === void 0 ? void 0 : _typeMap$type47.compType) || '', "\u7CFB\u7EDF\u5355")
|
|
30053
|
+
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s8 = value[(_typeMap$type48 = typeMap$2[type]) === null || _typeMap$type48 === void 0 ? void 0 : _typeMap$type48.systemOrder]) === null || _value$typeMap$type$s8 === void 0 ? void 0 : _value$typeMap$type$s8.showOrderInfo) || []).map(function (item) {
|
|
29992
30054
|
return /*#__PURE__*/React.createElement(Select.Option, {
|
|
29993
30055
|
key: item[typeMap$2[type].oIdKey],
|
|
29994
30056
|
value: item[typeMap$2[type].oIdKey],
|
|
@@ -30010,11 +30072,11 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
30010
30072
|
disabled: isSettingConfig ? !isSettingConfig : disabled,
|
|
30011
30073
|
allowClear: false,
|
|
30012
30074
|
options: reasonList,
|
|
30013
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
30075
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type49 = typeMap$2[type]) === null || _typeMap$type49 === void 0 ? void 0 : _typeMap$type49.typeName)],
|
|
30014
30076
|
onChange: function onChange(val) {
|
|
30015
30077
|
return changeTypeHandle(val);
|
|
30016
30078
|
}
|
|
30017
|
-
})), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
30079
|
+
})), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type50 = typeMap$2[type]) === null || _typeMap$type50 === void 0 ? void 0 : _typeMap$type50.systemOrderBillType) && !isSettingConfig && /*#__PURE__*/React.createElement(Col, {
|
|
30018
30080
|
className: "gutter-row",
|
|
30019
30081
|
xs: {
|
|
30020
30082
|
span: 11
|
|
@@ -30023,7 +30085,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
30023
30085
|
span: 6
|
|
30024
30086
|
}
|
|
30025
30087
|
}, /*#__PURE__*/React.createElement(Input, {
|
|
30026
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
30088
|
+
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.systemOrderBillType)],
|
|
30027
30089
|
disabled: disabled,
|
|
30028
30090
|
readOnly: true
|
|
30029
30091
|
}))), /*#__PURE__*/React.createElement(GoodItem$1, _objectSpread2(_objectSpread2({
|
|
@@ -30034,25 +30096,25 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
30034
30096
|
canUpdateNumber: showChangeBtn,
|
|
30035
30097
|
hasSelectedSystemOrder: showChangeBtn,
|
|
30036
30098
|
// showChangeBtn={showChangeBtn || typeMap?.[type]?.isShowSelectTradeGoods}
|
|
30037
|
-
alwaysShowChooseErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
30038
|
-
showErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
30099
|
+
alwaysShowChooseErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type52 = typeMap$2[type]) === null || _typeMap$type52 === void 0 ? void 0 : _typeMap$type52.alwaysShowChooseErpGoodsBtn,
|
|
30100
|
+
showErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type53 = typeMap$2[type]) === null || _typeMap$type53 === void 0 ? void 0 : _typeMap$type53.showErpGoodsBtn,
|
|
30039
30101
|
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
30040
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
30102
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type54 = typeMap$2[type]) === null || _typeMap$type54 === void 0 ? void 0 : _typeMap$type54.key)],
|
|
30041
30103
|
onChange: function onChange(val) {
|
|
30042
30104
|
return changeGoodHandle(val);
|
|
30043
30105
|
},
|
|
30044
30106
|
onModeChange: handleModeChange,
|
|
30045
|
-
showModeBtn:
|
|
30107
|
+
showModeBtn: showModeBtn,
|
|
30046
30108
|
isStrict: isStrict,
|
|
30047
|
-
isShowSelectTradeGoods: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
30048
|
-
systemOrders: value === null || value === void 0 ? void 0 : (_value$typeMap$type$s9 = value[(_typeMap$
|
|
30049
|
-
selectedSystemOrders: showChangeBtn ? [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
30109
|
+
isShowSelectTradeGoods: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type55 = typeMap$2[type]) === null || _typeMap$type55 === void 0 ? void 0 : _typeMap$type55.isShowSelectTradeGoods,
|
|
30110
|
+
systemOrders: value === null || value === void 0 ? void 0 : (_value$typeMap$type$s9 = value[(_typeMap$type56 = typeMap$2[type]) === null || _typeMap$type56 === void 0 ? void 0 : _typeMap$type56.systemOrder]) === null || _value$typeMap$type$s9 === void 0 ? void 0 : _value$typeMap$type$s9.orders,
|
|
30111
|
+
selectedSystemOrders: showChangeBtn ? [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type57 = typeMap$2[type]) === null || _typeMap$type57 === void 0 ? void 0 : _typeMap$type57.systemOrderNo)]] : [],
|
|
30050
30112
|
tradeGoods: {
|
|
30051
30113
|
originDataSource: getGoodDetails({
|
|
30052
30114
|
mode: isStrict,
|
|
30053
|
-
isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
30115
|
+
isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type58 = typeMap$2[type]) === null || _typeMap$type58 === void 0 ? void 0 : _typeMap$type58.isShowSelectTradeGoods
|
|
30054
30116
|
}),
|
|
30055
|
-
uniqueKey: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
30117
|
+
uniqueKey: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type59 = typeMap$2[type]) === null || _typeMap$type59 === void 0 ? void 0 : _typeMap$type59.uniqueKey) || 'uuid',
|
|
30056
30118
|
selectedGoodsChange: selectedGoodsChange
|
|
30057
30119
|
}
|
|
30058
30120
|
})));
|
|
@@ -29,6 +29,18 @@ declare const SYSTEM_ORDER_COLUMNS_MAP: {
|
|
|
29
29
|
width: number;
|
|
30
30
|
render?: undefined;
|
|
31
31
|
renderExport?: undefined;
|
|
32
|
+
} | {
|
|
33
|
+
title: string;
|
|
34
|
+
dataIndex: string;
|
|
35
|
+
width: number;
|
|
36
|
+
render: (val: boolean) => "否" | "是";
|
|
37
|
+
renderExport: (val: boolean) => "否" | "是";
|
|
38
|
+
} | {
|
|
39
|
+
title: string;
|
|
40
|
+
dataIndex: string;
|
|
41
|
+
width: number;
|
|
42
|
+
render: (val: string[]) => string;
|
|
43
|
+
renderExport: (val: string[]) => string;
|
|
32
44
|
} | {
|
|
33
45
|
title: string;
|
|
34
46
|
dataIndex: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/basic-components",
|
|
3
|
-
"version": "2.7.7-beta.
|
|
3
|
+
"version": "2.7.7-beta.5",
|
|
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.7-beta.
|
|
23
|
+
"@kmkf-fe-packages/kmkf-utils": "2.7.7-beta.5",
|
|
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": "b68d296af7547c620b22856aa2025aac3858b684"
|
|
70
70
|
}
|