@kmkf-fe-packages/basic-components 2.0.43 → 2.0.44
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 +105 -44
- package/dist/index.js +105 -43
- package/dist/src/constants/index.d.ts +1 -0
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -13789,7 +13789,10 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
13789
13789
|
width: 250
|
|
13790
13790
|
}, {
|
|
13791
13791
|
dataIndex: 'orderPrice',
|
|
13792
|
-
title: "\
|
|
13792
|
+
title: "\u6210\u4EA4\u603B\u91D1\u989D",
|
|
13793
|
+
render: function render(val, record) {
|
|
13794
|
+
return (record.num || record.num === 0) && (val || val === 0) ? val * record.num : null;
|
|
13795
|
+
},
|
|
13793
13796
|
width: 200
|
|
13794
13797
|
}, {
|
|
13795
13798
|
dataIndex: 'num',
|
|
@@ -13844,10 +13847,13 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
13844
13847
|
width: 250
|
|
13845
13848
|
}, {
|
|
13846
13849
|
dataIndex: 'orderPrice',
|
|
13847
|
-
title: "\
|
|
13850
|
+
title: "\u6210\u4EA4\u603B\u91D1\u989D",
|
|
13848
13851
|
align: 'center',
|
|
13849
13852
|
ellipsis: true,
|
|
13850
|
-
width: 100
|
|
13853
|
+
width: 100,
|
|
13854
|
+
render: function render(val, record) {
|
|
13855
|
+
return (record.num || record.num === 0) && (val || val === 0) ? val * record.num : null;
|
|
13856
|
+
}
|
|
13851
13857
|
}, {
|
|
13852
13858
|
dataIndex: 'num',
|
|
13853
13859
|
title: "".concat(text, "\u6570\u91CF"),
|
|
@@ -14143,6 +14149,10 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
14143
14149
|
};
|
|
14144
14150
|
};
|
|
14145
14151
|
|
|
14152
|
+
var getYesOrNo = function getYesOrNo(val) {
|
|
14153
|
+
if (isNull(val)) return null;
|
|
14154
|
+
return val ? '是' : '否';
|
|
14155
|
+
};
|
|
14146
14156
|
var getColumns$3 = function getColumns(_ref) {
|
|
14147
14157
|
var _ref$text = _ref.text,
|
|
14148
14158
|
text = _ref$text === void 0 ? '' : _ref$text,
|
|
@@ -14151,26 +14161,50 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
14151
14161
|
return {
|
|
14152
14162
|
//万里牛商品信息
|
|
14153
14163
|
WLN_GOODS: [{
|
|
14164
|
+
dataIndex: 'wlnItemName',
|
|
14165
|
+
title: "\u5546\u54C1\u540D\u79F0",
|
|
14166
|
+
align: 'center',
|
|
14167
|
+
ellipsis: true,
|
|
14168
|
+
width: 250
|
|
14169
|
+
}, {
|
|
14170
|
+
dataIndex: 'goodsCode',
|
|
14171
|
+
title: "\u5546\u54C1\u7F16\u7801",
|
|
14172
|
+
align: 'center',
|
|
14173
|
+
ellipsis: true,
|
|
14174
|
+
width: 250
|
|
14175
|
+
}, {
|
|
14176
|
+
dataIndex: 'skuCode',
|
|
14177
|
+
title: "sku\u7F16\u7801",
|
|
14178
|
+
align: 'center',
|
|
14179
|
+
ellipsis: true,
|
|
14180
|
+
width: 250
|
|
14181
|
+
}, {
|
|
14154
14182
|
dataIndex: 'skuName',
|
|
14155
|
-
title: "
|
|
14183
|
+
title: "\u7EBF\u4E0Asku\u540D\u79F0",
|
|
14156
14184
|
align: 'center',
|
|
14157
14185
|
ellipsis: true,
|
|
14158
14186
|
width: 250
|
|
14187
|
+
}, {
|
|
14188
|
+
dataIndex: 'olnSkuCode',
|
|
14189
|
+
title: "\u7EBF\u4E0Asku\u7F16\u7801",
|
|
14190
|
+
align: 'center',
|
|
14191
|
+
ellipsis: true,
|
|
14192
|
+
width: 150
|
|
14159
14193
|
}, {
|
|
14160
14194
|
dataIndex: 'sku',
|
|
14161
|
-
title: "
|
|
14195
|
+
title: "\u7EBF\u4E0Asku id",
|
|
14162
14196
|
align: 'center',
|
|
14163
14197
|
ellipsis: true,
|
|
14164
|
-
width:
|
|
14198
|
+
width: 150
|
|
14165
14199
|
}, {
|
|
14166
14200
|
dataIndex: 'name',
|
|
14167
|
-
title: "
|
|
14201
|
+
title: "\u7EBF\u4E0A\u5546\u54C1\u540D\u79F0",
|
|
14168
14202
|
align: 'center',
|
|
14169
14203
|
ellipsis: true,
|
|
14170
14204
|
width: 250
|
|
14171
14205
|
}, {
|
|
14172
14206
|
dataIndex: 'pic',
|
|
14173
|
-
title: "\u56FE\u7247",
|
|
14207
|
+
title: "\u7EBF\u4E0A\u56FE\u7247",
|
|
14174
14208
|
align: 'center',
|
|
14175
14209
|
ellipsis: true,
|
|
14176
14210
|
width: 100,
|
|
@@ -14180,12 +14214,24 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
14180
14214
|
src: val
|
|
14181
14215
|
});
|
|
14182
14216
|
}
|
|
14217
|
+
}, {
|
|
14218
|
+
dataIndex: 'olnItemCOde',
|
|
14219
|
+
title: "\u7EBF\u4E0A\u5546\u54C1\u7F16\u7801",
|
|
14220
|
+
align: 'center',
|
|
14221
|
+
ellipsis: true,
|
|
14222
|
+
width: 150
|
|
14183
14223
|
}, {
|
|
14184
14224
|
dataIndex: 'code',
|
|
14185
|
-
title: "
|
|
14225
|
+
title: "\u7EBF\u4E0A\u5546\u54C1id",
|
|
14186
14226
|
align: 'center',
|
|
14187
14227
|
ellipsis: true,
|
|
14188
|
-
width:
|
|
14228
|
+
width: 150
|
|
14229
|
+
}, {
|
|
14230
|
+
dataIndex: 'barCode',
|
|
14231
|
+
title: "\u5546\u54C1\u6761\u7801",
|
|
14232
|
+
align: 'center',
|
|
14233
|
+
ellipsis: true,
|
|
14234
|
+
width: 150
|
|
14189
14235
|
}, {
|
|
14190
14236
|
dataIndex: 'money',
|
|
14191
14237
|
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
@@ -14213,7 +14259,7 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
14213
14259
|
}
|
|
14214
14260
|
}, {
|
|
14215
14261
|
dataIndex: 'share',
|
|
14216
|
-
title: "\
|
|
14262
|
+
title: "\u5E94\u6536\u6B3E",
|
|
14217
14263
|
align: 'center',
|
|
14218
14264
|
ellipsis: true,
|
|
14219
14265
|
width: 70
|
|
@@ -14223,6 +14269,27 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
14223
14269
|
align: 'center',
|
|
14224
14270
|
ellipsis: true,
|
|
14225
14271
|
width: 100
|
|
14272
|
+
}, {
|
|
14273
|
+
dataIndex: 'isPackage',
|
|
14274
|
+
title: "\u662F\u5426\u7EC4\u5408\u5546\u54C1",
|
|
14275
|
+
align: 'center',
|
|
14276
|
+
ellipsis: true,
|
|
14277
|
+
render: function render(val, record, index) {
|
|
14278
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
14279
|
+
value: val,
|
|
14280
|
+
onChange: function onChange(value) {
|
|
14281
|
+
updateHandle(value, index, 'isGift');
|
|
14282
|
+
},
|
|
14283
|
+
options: [{
|
|
14284
|
+
label: '是',
|
|
14285
|
+
value: true
|
|
14286
|
+
}, {
|
|
14287
|
+
label: '否',
|
|
14288
|
+
value: false
|
|
14289
|
+
}]
|
|
14290
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo(val));
|
|
14291
|
+
},
|
|
14292
|
+
width: 100
|
|
14226
14293
|
}]
|
|
14227
14294
|
};
|
|
14228
14295
|
};
|
|
@@ -14232,7 +14299,7 @@ var isNumberOrNumberString = function isNumberOrNumberString(value) {
|
|
|
14232
14299
|
if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
|
|
14233
14300
|
return false;
|
|
14234
14301
|
};
|
|
14235
|
-
var getYesOrNo = function getYesOrNo(val) {
|
|
14302
|
+
var getYesOrNo$1 = function getYesOrNo(val) {
|
|
14236
14303
|
if (isNull(val)) return null;
|
|
14237
14304
|
return val ? '是' : '否';
|
|
14238
14305
|
};
|
|
@@ -14333,7 +14400,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
14333
14400
|
title: "\u662F\u5426\u53D6\u6D88",
|
|
14334
14401
|
width: 150,
|
|
14335
14402
|
render: function render(val) {
|
|
14336
|
-
return /*#__PURE__*/React.createElement("span", null, getYesOrNo(val));
|
|
14403
|
+
return /*#__PURE__*/React.createElement("span", null, getYesOrNo$1(val));
|
|
14337
14404
|
}
|
|
14338
14405
|
}, {
|
|
14339
14406
|
dataIndex: 'isGift',
|
|
@@ -14352,7 +14419,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
14352
14419
|
label: '否',
|
|
14353
14420
|
value: 0
|
|
14354
14421
|
}]
|
|
14355
|
-
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo(val));
|
|
14422
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$1(val));
|
|
14356
14423
|
}
|
|
14357
14424
|
}, {
|
|
14358
14425
|
dataIndex: 'skuNote',
|
|
@@ -14459,7 +14526,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
14459
14526
|
label: '否',
|
|
14460
14527
|
value: 0
|
|
14461
14528
|
}]
|
|
14462
|
-
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo(val));
|
|
14529
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$1(val));
|
|
14463
14530
|
}
|
|
14464
14531
|
}].map(function (item) {
|
|
14465
14532
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
@@ -14570,7 +14637,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
14570
14637
|
label: '否',
|
|
14571
14638
|
value: 0
|
|
14572
14639
|
}]
|
|
14573
|
-
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo(val));
|
|
14640
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$1(val));
|
|
14574
14641
|
}
|
|
14575
14642
|
}].map(function (item) {
|
|
14576
14643
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
@@ -17644,7 +17711,7 @@ var typeMap$1 = {
|
|
|
17644
17711
|
}
|
|
17645
17712
|
};
|
|
17646
17713
|
var wdtReissue = function wdtReissue(props) {
|
|
17647
|
-
var _value$wdtSystemOrder, _typeMap$
|
|
17714
|
+
var _value$wdtSystemOrder, _typeMap$type24, _typeMap$type26, _typeMap$type27, _value$typeMap$type$s5, _typeMap$type28, _typeMap$type29, _typeMap$type30;
|
|
17648
17715
|
var value = props.value,
|
|
17649
17716
|
onChange = props.onChange,
|
|
17650
17717
|
_props$reasonList = props.reasonList,
|
|
@@ -17781,25 +17848,19 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
17781
17848
|
};
|
|
17782
17849
|
var changeGoodHandle = function changeGoodHandle(val) {
|
|
17783
17850
|
var _typeMap$type15;
|
|
17784
|
-
var newValue = _objectSpread2({}, value);
|
|
17785
|
-
newValue["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type15 = typeMap$1[type]) === null || _typeMap$type15 === void 0 ? void 0 : _typeMap$type15.key)] = (val || []).map(function (item) {
|
|
17786
|
-
var _typeMap$type16, _typeMap$type17;
|
|
17787
|
-
item["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type16 = typeMap$1[type]) === null || _typeMap$type16 === void 0 ? void 0 : _typeMap$type16.formatDefaultField.money)] = 0;
|
|
17788
|
-
item["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type17 = typeMap$1[type]) === null || _typeMap$type17 === void 0 ? void 0 : _typeMap$type17.formatDefaultField.share)] = 0;
|
|
17789
|
-
return item;
|
|
17790
|
-
});
|
|
17851
|
+
var newValue = _objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type15 = typeMap$1[type]) === null || _typeMap$type15 === void 0 ? void 0 : _typeMap$type15.key, val || []));
|
|
17791
17852
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
17792
17853
|
};
|
|
17793
17854
|
var changeSystemOrderHandle = function changeSystemOrderHandle(val) {
|
|
17794
|
-
var _typeMap$
|
|
17855
|
+
var _typeMap$type16, _value$typeMap$type$t3, _typeMap$type17, _value$typeMap$type$t4, _typeMap$type19;
|
|
17795
17856
|
var newValue = _objectSpread2({}, value);
|
|
17796
|
-
newValue["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$
|
|
17797
|
-
if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$
|
|
17857
|
+
newValue["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type16 = typeMap$1[type]) === null || _typeMap$type16 === void 0 ? void 0 : _typeMap$type16.systemOrderNo)] = val;
|
|
17858
|
+
if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$type17 = typeMap$1[type]) === null || _typeMap$type17 === void 0 ? void 0 : _typeMap$type17.typeName]) === null || _value$typeMap$type$t3 === void 0 ? void 0 : _value$typeMap$type$t3[0])) {
|
|
17859
|
+
var _typeMap$type18;
|
|
17860
|
+
newValue["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type18 = typeMap$1[type]) === null || _typeMap$type18 === void 0 ? void 0 : _typeMap$type18.key)] = [];
|
|
17861
|
+
} else if (['1'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t4 = value[(_typeMap$type19 = typeMap$1[type]) === null || _typeMap$type19 === void 0 ? void 0 : _typeMap$type19.typeName]) === null || _value$typeMap$type$t4 === void 0 ? void 0 : _value$typeMap$type$t4[0])) {
|
|
17798
17862
|
var _typeMap$type20;
|
|
17799
|
-
newValue["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type20 = typeMap$1[type]) === null || _typeMap$type20 === void 0 ? void 0 : _typeMap$type20.key)] =
|
|
17800
|
-
} else if (['1'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t4 = value[(_typeMap$type21 = typeMap$1[type]) === null || _typeMap$type21 === void 0 ? void 0 : _typeMap$type21.typeName]) === null || _value$typeMap$type$t4 === void 0 ? void 0 : _value$typeMap$type$t4[0])) {
|
|
17801
|
-
var _typeMap$type22;
|
|
17802
|
-
newValue["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type22 = typeMap$1[type]) === null || _typeMap$type22 === void 0 ? void 0 : _typeMap$type22.key)] = getGoodDetails({
|
|
17863
|
+
newValue["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type20 = typeMap$1[type]) === null || _typeMap$type20 === void 0 ? void 0 : _typeMap$type20.key)] = getGoodDetails({
|
|
17803
17864
|
mode: isStrict,
|
|
17804
17865
|
sysOrderNo: val
|
|
17805
17866
|
});
|
|
@@ -17807,25 +17868,25 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
17807
17868
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
17808
17869
|
};
|
|
17809
17870
|
var selectedGoodsChange = useCallback(function (skuList) {
|
|
17810
|
-
var _typeMap$
|
|
17871
|
+
var _typeMap$type21, _typeMap$type22, _uniqBy, _typeMap$type23;
|
|
17811
17872
|
var newValue = _objectSpread2({}, value);
|
|
17812
17873
|
// 原订单商品
|
|
17813
17874
|
var originTradeGoodList = getGoodDetails({
|
|
17814
17875
|
mode: isStrict
|
|
17815
17876
|
}) || [];
|
|
17816
17877
|
// 当前选中的所有商品【包含了原订单+商品库】
|
|
17817
|
-
var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$
|
|
17818
|
-
newValue["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$
|
|
17878
|
+
var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type21 = typeMap$1[type]) === null || _typeMap$type21 === void 0 ? void 0 : _typeMap$type21.key)]) || [];
|
|
17879
|
+
newValue["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type22 = typeMap$1[type]) === null || _typeMap$type22 === void 0 ? void 0 : _typeMap$type22.key)] = (_uniqBy = uniqBy(originTradeGoodList.concat(currentSelectGoodList), 'uuid')) === null || _uniqBy === void 0 ? void 0 : _uniqBy.filter(function (item) {
|
|
17819
17880
|
return skuList.includes(item.uuid);
|
|
17820
17881
|
});
|
|
17821
|
-
console.log('商品发生变化', newValue["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$
|
|
17882
|
+
console.log('商品发生变化', newValue["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type23 = typeMap$1[type]) === null || _typeMap$type23 === void 0 ? void 0 : _typeMap$type23.key)]);
|
|
17822
17883
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
17823
|
-
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$
|
|
17884
|
+
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type24 = typeMap$1[type]) === null || _typeMap$type24 === void 0 ? void 0 : _typeMap$type24.key)], isStrict]);
|
|
17824
17885
|
//显示选择商品按钮 原单换不显示选择商品
|
|
17825
17886
|
var showChangeBtn = useMemo(function () {
|
|
17826
|
-
var _typeMap$
|
|
17827
|
-
return !!(value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
17828
|
-
}, [value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
17887
|
+
var _typeMap$type25;
|
|
17888
|
+
return !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type25 = typeMap$1[type]) === null || _typeMap$type25 === void 0 ? void 0 : _typeMap$type25.systemOrderNo]);
|
|
17889
|
+
}, [value === null || value === void 0 ? void 0 : value[(_typeMap$type26 = typeMap$1[type]) === null || _typeMap$type26 === void 0 ? void 0 : _typeMap$type26.systemOrderNo]]);
|
|
17829
17890
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
|
|
17830
17891
|
gutter: 8,
|
|
17831
17892
|
wrap: true
|
|
@@ -17843,12 +17904,12 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
17843
17904
|
},
|
|
17844
17905
|
disabled: disabled,
|
|
17845
17906
|
allowClear: false,
|
|
17846
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$
|
|
17907
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type27 = typeMap$1[type]) === null || _typeMap$type27 === void 0 ? void 0 : _typeMap$type27.systemOrderNo)],
|
|
17847
17908
|
onChange: function onChange(val) {
|
|
17848
17909
|
return changeSystemOrderHandle(val);
|
|
17849
17910
|
},
|
|
17850
17911
|
placeholder: "\u9009\u62E9\u8865\u53D1\u7CFB\u7EDF\u5355"
|
|
17851
|
-
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s5 = value[(_typeMap$
|
|
17912
|
+
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s5 = value[(_typeMap$type28 = typeMap$1[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.systemOrder]) === null || _value$typeMap$type$s5 === void 0 ? void 0 : _value$typeMap$type$s5.showOrderInfo) || []).map(function (item) {
|
|
17852
17913
|
return /*#__PURE__*/React.createElement(Select.Option, {
|
|
17853
17914
|
key: item.billNo,
|
|
17854
17915
|
value: item.billNo,
|
|
@@ -17869,7 +17930,7 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
17869
17930
|
disabled: disabled,
|
|
17870
17931
|
allowClear: false,
|
|
17871
17932
|
options: reasonList,
|
|
17872
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$
|
|
17933
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type29 = typeMap$1[type]) === null || _typeMap$type29 === void 0 ? void 0 : _typeMap$type29.typeName)],
|
|
17873
17934
|
onChange: function onChange(val) {
|
|
17874
17935
|
return changeTypeHandle(val);
|
|
17875
17936
|
}
|
|
@@ -17881,7 +17942,7 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
17881
17942
|
canUpdateNumber: showChangeBtn,
|
|
17882
17943
|
showChangeBtn: showChangeBtn,
|
|
17883
17944
|
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
17884
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$
|
|
17945
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type30 = typeMap$1[type]) === null || _typeMap$type30 === void 0 ? void 0 : _typeMap$type30.key)],
|
|
17885
17946
|
onChange: function onChange(val) {
|
|
17886
17947
|
return changeGoodHandle(val);
|
|
17887
17948
|
},
|
|
@@ -19770,4 +19831,4 @@ var GyReturnGoods = function GyReturnGoods(props) {
|
|
|
19770
19831
|
})));
|
|
19771
19832
|
};
|
|
19772
19833
|
|
|
19773
|
-
export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, ApaasInput, ApaasInputNumber, ApaasLogistics, ApaasMultipleSelect, ApaasPosting, ApaasRadio, ApaasRate, ApaasSelect, ApaasSlider, ApaasTextArea, ApaasUpload, index as ApaasUploadAsync, ApaasUploadFile, bsE3Reissue as BsE3Reissue, BsExchange, BsGoods, BsReissue, BsReturnGoods as BsReturn, index$1 as BsSystemOrder, BuyerNick, CalculationInput, ChooseBaby, CommonExchangeGoods, CommonGoods, CommonSystemOrder$1 as CommonMultiStatus, CommonReturnGoods, CommonStatus, CommonSystemOrder, ExpressLogistics, Goods, index$2 as GoodsTable, GyReissue, GyReturnGoods as GyReturn, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, LogisticsInterception, LogisticsMoreInterception, LogisticsMoreTrajectory, LogisticsTrajectory, MsgStatus, ParseLogistics, Payment, PublicReissue, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, ShopNameSelect as ShopName, Status, SubForm, Supplier, TBGoodId, TBGoodSerial, TradeId, WdtGoodList, wdtReissue as WdtReissue, WlnGoods, columnsBaseInfoMap, getColumns$5 as getJstColumns };
|
|
19834
|
+
export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, ApaasInput, ApaasInputNumber, ApaasLogistics, ApaasMultipleSelect, ApaasPosting, ApaasRadio, ApaasRate, ApaasSelect, ApaasSlider, ApaasTextArea, ApaasUpload, index as ApaasUploadAsync, ApaasUploadFile, bsE3Reissue as BsE3Reissue, BsExchange, BsGoods, BsReissue, BsReturnGoods as BsReturn, index$1 as BsSystemOrder, BuyerNick, CalculationInput, ChooseBaby, CommonExchangeGoods, CommonGoods, CommonSystemOrder$1 as CommonMultiStatus, CommonReturnGoods, CommonStatus, CommonSystemOrder, ExpressLogistics, Goods, index$2 as GoodsTable, GyReissue, GyReturnGoods as GyReturn, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, LogisticsInterception, LogisticsMoreInterception, LogisticsMoreTrajectory, LogisticsTrajectory, MsgStatus, ParseLogistics, Payment, PublicReissue, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, ShopNameSelect as ShopName, Status, SubForm, Supplier, TBGoodId, TBGoodSerial, TradeId, WdtGoodList, wdtReissue as WdtReissue, WlnGoods, columnsBaseInfoMap, getColumns$5 as getJstColumns, getColumns$3 as getWlnColumns };
|
package/dist/index.js
CHANGED
|
@@ -13801,7 +13801,10 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
13801
13801
|
width: 250
|
|
13802
13802
|
}, {
|
|
13803
13803
|
dataIndex: 'orderPrice',
|
|
13804
|
-
title: "\
|
|
13804
|
+
title: "\u6210\u4EA4\u603B\u91D1\u989D",
|
|
13805
|
+
render: function render(val, record) {
|
|
13806
|
+
return (record.num || record.num === 0) && (val || val === 0) ? val * record.num : null;
|
|
13807
|
+
},
|
|
13805
13808
|
width: 200
|
|
13806
13809
|
}, {
|
|
13807
13810
|
dataIndex: 'num',
|
|
@@ -13856,10 +13859,13 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
13856
13859
|
width: 250
|
|
13857
13860
|
}, {
|
|
13858
13861
|
dataIndex: 'orderPrice',
|
|
13859
|
-
title: "\
|
|
13862
|
+
title: "\u6210\u4EA4\u603B\u91D1\u989D",
|
|
13860
13863
|
align: 'center',
|
|
13861
13864
|
ellipsis: true,
|
|
13862
|
-
width: 100
|
|
13865
|
+
width: 100,
|
|
13866
|
+
render: function render(val, record) {
|
|
13867
|
+
return (record.num || record.num === 0) && (val || val === 0) ? val * record.num : null;
|
|
13868
|
+
}
|
|
13863
13869
|
}, {
|
|
13864
13870
|
dataIndex: 'num',
|
|
13865
13871
|
title: "".concat(text, "\u6570\u91CF"),
|
|
@@ -14155,6 +14161,10 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
14155
14161
|
};
|
|
14156
14162
|
};
|
|
14157
14163
|
|
|
14164
|
+
var getYesOrNo = function getYesOrNo(val) {
|
|
14165
|
+
if (kmkfUtils.isNull(val)) return null;
|
|
14166
|
+
return val ? '是' : '否';
|
|
14167
|
+
};
|
|
14158
14168
|
var getColumns$3 = function getColumns(_ref) {
|
|
14159
14169
|
var _ref$text = _ref.text,
|
|
14160
14170
|
text = _ref$text === void 0 ? '' : _ref$text,
|
|
@@ -14163,26 +14173,50 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
14163
14173
|
return {
|
|
14164
14174
|
//万里牛商品信息
|
|
14165
14175
|
WLN_GOODS: [{
|
|
14176
|
+
dataIndex: 'wlnItemName',
|
|
14177
|
+
title: "\u5546\u54C1\u540D\u79F0",
|
|
14178
|
+
align: 'center',
|
|
14179
|
+
ellipsis: true,
|
|
14180
|
+
width: 250
|
|
14181
|
+
}, {
|
|
14182
|
+
dataIndex: 'goodsCode',
|
|
14183
|
+
title: "\u5546\u54C1\u7F16\u7801",
|
|
14184
|
+
align: 'center',
|
|
14185
|
+
ellipsis: true,
|
|
14186
|
+
width: 250
|
|
14187
|
+
}, {
|
|
14188
|
+
dataIndex: 'skuCode',
|
|
14189
|
+
title: "sku\u7F16\u7801",
|
|
14190
|
+
align: 'center',
|
|
14191
|
+
ellipsis: true,
|
|
14192
|
+
width: 250
|
|
14193
|
+
}, {
|
|
14166
14194
|
dataIndex: 'skuName',
|
|
14167
|
-
title: "
|
|
14195
|
+
title: "\u7EBF\u4E0Asku\u540D\u79F0",
|
|
14168
14196
|
align: 'center',
|
|
14169
14197
|
ellipsis: true,
|
|
14170
14198
|
width: 250
|
|
14199
|
+
}, {
|
|
14200
|
+
dataIndex: 'olnSkuCode',
|
|
14201
|
+
title: "\u7EBF\u4E0Asku\u7F16\u7801",
|
|
14202
|
+
align: 'center',
|
|
14203
|
+
ellipsis: true,
|
|
14204
|
+
width: 150
|
|
14171
14205
|
}, {
|
|
14172
14206
|
dataIndex: 'sku',
|
|
14173
|
-
title: "
|
|
14207
|
+
title: "\u7EBF\u4E0Asku id",
|
|
14174
14208
|
align: 'center',
|
|
14175
14209
|
ellipsis: true,
|
|
14176
|
-
width:
|
|
14210
|
+
width: 150
|
|
14177
14211
|
}, {
|
|
14178
14212
|
dataIndex: 'name',
|
|
14179
|
-
title: "
|
|
14213
|
+
title: "\u7EBF\u4E0A\u5546\u54C1\u540D\u79F0",
|
|
14180
14214
|
align: 'center',
|
|
14181
14215
|
ellipsis: true,
|
|
14182
14216
|
width: 250
|
|
14183
14217
|
}, {
|
|
14184
14218
|
dataIndex: 'pic',
|
|
14185
|
-
title: "\u56FE\u7247",
|
|
14219
|
+
title: "\u7EBF\u4E0A\u56FE\u7247",
|
|
14186
14220
|
align: 'center',
|
|
14187
14221
|
ellipsis: true,
|
|
14188
14222
|
width: 100,
|
|
@@ -14192,12 +14226,24 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
14192
14226
|
src: val
|
|
14193
14227
|
});
|
|
14194
14228
|
}
|
|
14229
|
+
}, {
|
|
14230
|
+
dataIndex: 'olnItemCOde',
|
|
14231
|
+
title: "\u7EBF\u4E0A\u5546\u54C1\u7F16\u7801",
|
|
14232
|
+
align: 'center',
|
|
14233
|
+
ellipsis: true,
|
|
14234
|
+
width: 150
|
|
14195
14235
|
}, {
|
|
14196
14236
|
dataIndex: 'code',
|
|
14197
|
-
title: "
|
|
14237
|
+
title: "\u7EBF\u4E0A\u5546\u54C1id",
|
|
14198
14238
|
align: 'center',
|
|
14199
14239
|
ellipsis: true,
|
|
14200
|
-
width:
|
|
14240
|
+
width: 150
|
|
14241
|
+
}, {
|
|
14242
|
+
dataIndex: 'barCode',
|
|
14243
|
+
title: "\u5546\u54C1\u6761\u7801",
|
|
14244
|
+
align: 'center',
|
|
14245
|
+
ellipsis: true,
|
|
14246
|
+
width: 150
|
|
14201
14247
|
}, {
|
|
14202
14248
|
dataIndex: 'money',
|
|
14203
14249
|
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
@@ -14225,7 +14271,7 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
14225
14271
|
}
|
|
14226
14272
|
}, {
|
|
14227
14273
|
dataIndex: 'share',
|
|
14228
|
-
title: "\
|
|
14274
|
+
title: "\u5E94\u6536\u6B3E",
|
|
14229
14275
|
align: 'center',
|
|
14230
14276
|
ellipsis: true,
|
|
14231
14277
|
width: 70
|
|
@@ -14235,6 +14281,27 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
14235
14281
|
align: 'center',
|
|
14236
14282
|
ellipsis: true,
|
|
14237
14283
|
width: 100
|
|
14284
|
+
}, {
|
|
14285
|
+
dataIndex: 'isPackage',
|
|
14286
|
+
title: "\u662F\u5426\u7EC4\u5408\u5546\u54C1",
|
|
14287
|
+
align: 'center',
|
|
14288
|
+
ellipsis: true,
|
|
14289
|
+
render: function render(val, record, index) {
|
|
14290
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
14291
|
+
value: val,
|
|
14292
|
+
onChange: function onChange(value) {
|
|
14293
|
+
updateHandle(value, index, 'isGift');
|
|
14294
|
+
},
|
|
14295
|
+
options: [{
|
|
14296
|
+
label: '是',
|
|
14297
|
+
value: true
|
|
14298
|
+
}, {
|
|
14299
|
+
label: '否',
|
|
14300
|
+
value: false
|
|
14301
|
+
}]
|
|
14302
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo(val));
|
|
14303
|
+
},
|
|
14304
|
+
width: 100
|
|
14238
14305
|
}]
|
|
14239
14306
|
};
|
|
14240
14307
|
};
|
|
@@ -14244,7 +14311,7 @@ var isNumberOrNumberString = function isNumberOrNumberString(value) {
|
|
|
14244
14311
|
if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
|
|
14245
14312
|
return false;
|
|
14246
14313
|
};
|
|
14247
|
-
var getYesOrNo = function getYesOrNo(val) {
|
|
14314
|
+
var getYesOrNo$1 = function getYesOrNo(val) {
|
|
14248
14315
|
if (kmkfUtils.isNull(val)) return null;
|
|
14249
14316
|
return val ? '是' : '否';
|
|
14250
14317
|
};
|
|
@@ -14345,7 +14412,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
14345
14412
|
title: "\u662F\u5426\u53D6\u6D88",
|
|
14346
14413
|
width: 150,
|
|
14347
14414
|
render: function render(val) {
|
|
14348
|
-
return /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo(val));
|
|
14415
|
+
return /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$1(val));
|
|
14349
14416
|
}
|
|
14350
14417
|
}, {
|
|
14351
14418
|
dataIndex: 'isGift',
|
|
@@ -14364,7 +14431,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
14364
14431
|
label: '否',
|
|
14365
14432
|
value: 0
|
|
14366
14433
|
}]
|
|
14367
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo(val));
|
|
14434
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$1(val));
|
|
14368
14435
|
}
|
|
14369
14436
|
}, {
|
|
14370
14437
|
dataIndex: 'skuNote',
|
|
@@ -14471,7 +14538,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
14471
14538
|
label: '否',
|
|
14472
14539
|
value: 0
|
|
14473
14540
|
}]
|
|
14474
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo(val));
|
|
14541
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$1(val));
|
|
14475
14542
|
}
|
|
14476
14543
|
}].map(function (item) {
|
|
14477
14544
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
@@ -14582,7 +14649,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
14582
14649
|
label: '否',
|
|
14583
14650
|
value: 0
|
|
14584
14651
|
}]
|
|
14585
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo(val));
|
|
14652
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$1(val));
|
|
14586
14653
|
}
|
|
14587
14654
|
}].map(function (item) {
|
|
14588
14655
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
@@ -17656,7 +17723,7 @@ var typeMap$1 = {
|
|
|
17656
17723
|
}
|
|
17657
17724
|
};
|
|
17658
17725
|
var wdtReissue = function wdtReissue(props) {
|
|
17659
|
-
var _value$wdtSystemOrder, _typeMap$
|
|
17726
|
+
var _value$wdtSystemOrder, _typeMap$type24, _typeMap$type26, _typeMap$type27, _value$typeMap$type$s5, _typeMap$type28, _typeMap$type29, _typeMap$type30;
|
|
17660
17727
|
var value = props.value,
|
|
17661
17728
|
onChange = props.onChange,
|
|
17662
17729
|
_props$reasonList = props.reasonList,
|
|
@@ -17793,25 +17860,19 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
17793
17860
|
};
|
|
17794
17861
|
var changeGoodHandle = function changeGoodHandle(val) {
|
|
17795
17862
|
var _typeMap$type15;
|
|
17796
|
-
var newValue = _objectSpread2({}, value);
|
|
17797
|
-
newValue["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type15 = typeMap$1[type]) === null || _typeMap$type15 === void 0 ? void 0 : _typeMap$type15.key)] = (val || []).map(function (item) {
|
|
17798
|
-
var _typeMap$type16, _typeMap$type17;
|
|
17799
|
-
item["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type16 = typeMap$1[type]) === null || _typeMap$type16 === void 0 ? void 0 : _typeMap$type16.formatDefaultField.money)] = 0;
|
|
17800
|
-
item["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type17 = typeMap$1[type]) === null || _typeMap$type17 === void 0 ? void 0 : _typeMap$type17.formatDefaultField.share)] = 0;
|
|
17801
|
-
return item;
|
|
17802
|
-
});
|
|
17863
|
+
var newValue = _objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type15 = typeMap$1[type]) === null || _typeMap$type15 === void 0 ? void 0 : _typeMap$type15.key, val || []));
|
|
17803
17864
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
17804
17865
|
};
|
|
17805
17866
|
var changeSystemOrderHandle = function changeSystemOrderHandle(val) {
|
|
17806
|
-
var _typeMap$
|
|
17867
|
+
var _typeMap$type16, _value$typeMap$type$t3, _typeMap$type17, _value$typeMap$type$t4, _typeMap$type19;
|
|
17807
17868
|
var newValue = _objectSpread2({}, value);
|
|
17808
|
-
newValue["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$
|
|
17809
|
-
if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$
|
|
17869
|
+
newValue["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type16 = typeMap$1[type]) === null || _typeMap$type16 === void 0 ? void 0 : _typeMap$type16.systemOrderNo)] = val;
|
|
17870
|
+
if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$type17 = typeMap$1[type]) === null || _typeMap$type17 === void 0 ? void 0 : _typeMap$type17.typeName]) === null || _value$typeMap$type$t3 === void 0 ? void 0 : _value$typeMap$type$t3[0])) {
|
|
17871
|
+
var _typeMap$type18;
|
|
17872
|
+
newValue["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type18 = typeMap$1[type]) === null || _typeMap$type18 === void 0 ? void 0 : _typeMap$type18.key)] = [];
|
|
17873
|
+
} else if (['1'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t4 = value[(_typeMap$type19 = typeMap$1[type]) === null || _typeMap$type19 === void 0 ? void 0 : _typeMap$type19.typeName]) === null || _value$typeMap$type$t4 === void 0 ? void 0 : _value$typeMap$type$t4[0])) {
|
|
17810
17874
|
var _typeMap$type20;
|
|
17811
|
-
newValue["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type20 = typeMap$1[type]) === null || _typeMap$type20 === void 0 ? void 0 : _typeMap$type20.key)] =
|
|
17812
|
-
} else if (['1'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t4 = value[(_typeMap$type21 = typeMap$1[type]) === null || _typeMap$type21 === void 0 ? void 0 : _typeMap$type21.typeName]) === null || _value$typeMap$type$t4 === void 0 ? void 0 : _value$typeMap$type$t4[0])) {
|
|
17813
|
-
var _typeMap$type22;
|
|
17814
|
-
newValue["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type22 = typeMap$1[type]) === null || _typeMap$type22 === void 0 ? void 0 : _typeMap$type22.key)] = getGoodDetails({
|
|
17875
|
+
newValue["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type20 = typeMap$1[type]) === null || _typeMap$type20 === void 0 ? void 0 : _typeMap$type20.key)] = getGoodDetails({
|
|
17815
17876
|
mode: isStrict,
|
|
17816
17877
|
sysOrderNo: val
|
|
17817
17878
|
});
|
|
@@ -17819,25 +17880,25 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
17819
17880
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
17820
17881
|
};
|
|
17821
17882
|
var selectedGoodsChange = React.useCallback(function (skuList) {
|
|
17822
|
-
var _typeMap$
|
|
17883
|
+
var _typeMap$type21, _typeMap$type22, _uniqBy, _typeMap$type23;
|
|
17823
17884
|
var newValue = _objectSpread2({}, value);
|
|
17824
17885
|
// 原订单商品
|
|
17825
17886
|
var originTradeGoodList = getGoodDetails({
|
|
17826
17887
|
mode: isStrict
|
|
17827
17888
|
}) || [];
|
|
17828
17889
|
// 当前选中的所有商品【包含了原订单+商品库】
|
|
17829
|
-
var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$
|
|
17830
|
-
newValue["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$
|
|
17890
|
+
var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type21 = typeMap$1[type]) === null || _typeMap$type21 === void 0 ? void 0 : _typeMap$type21.key)]) || [];
|
|
17891
|
+
newValue["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type22 = typeMap$1[type]) === null || _typeMap$type22 === void 0 ? void 0 : _typeMap$type22.key)] = (_uniqBy = lodash.uniqBy(originTradeGoodList.concat(currentSelectGoodList), 'uuid')) === null || _uniqBy === void 0 ? void 0 : _uniqBy.filter(function (item) {
|
|
17831
17892
|
return skuList.includes(item.uuid);
|
|
17832
17893
|
});
|
|
17833
|
-
console.log('商品发生变化', newValue["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$
|
|
17894
|
+
console.log('商品发生变化', newValue["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type23 = typeMap$1[type]) === null || _typeMap$type23 === void 0 ? void 0 : _typeMap$type23.key)]);
|
|
17834
17895
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
17835
|
-
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$
|
|
17896
|
+
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type24 = typeMap$1[type]) === null || _typeMap$type24 === void 0 ? void 0 : _typeMap$type24.key)], isStrict]);
|
|
17836
17897
|
//显示选择商品按钮 原单换不显示选择商品
|
|
17837
17898
|
var showChangeBtn = React.useMemo(function () {
|
|
17838
|
-
var _typeMap$
|
|
17839
|
-
return !!(value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
17840
|
-
}, [value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
17899
|
+
var _typeMap$type25;
|
|
17900
|
+
return !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type25 = typeMap$1[type]) === null || _typeMap$type25 === void 0 ? void 0 : _typeMap$type25.systemOrderNo]);
|
|
17901
|
+
}, [value === null || value === void 0 ? void 0 : value[(_typeMap$type26 = typeMap$1[type]) === null || _typeMap$type26 === void 0 ? void 0 : _typeMap$type26.systemOrderNo]]);
|
|
17841
17902
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Row, {
|
|
17842
17903
|
gutter: 8,
|
|
17843
17904
|
wrap: true
|
|
@@ -17855,12 +17916,12 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
17855
17916
|
},
|
|
17856
17917
|
disabled: disabled,
|
|
17857
17918
|
allowClear: false,
|
|
17858
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$
|
|
17919
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type27 = typeMap$1[type]) === null || _typeMap$type27 === void 0 ? void 0 : _typeMap$type27.systemOrderNo)],
|
|
17859
17920
|
onChange: function onChange(val) {
|
|
17860
17921
|
return changeSystemOrderHandle(val);
|
|
17861
17922
|
},
|
|
17862
17923
|
placeholder: "\u9009\u62E9\u8865\u53D1\u7CFB\u7EDF\u5355"
|
|
17863
|
-
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s5 = value[(_typeMap$
|
|
17924
|
+
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s5 = value[(_typeMap$type28 = typeMap$1[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.systemOrder]) === null || _value$typeMap$type$s5 === void 0 ? void 0 : _value$typeMap$type$s5.showOrderInfo) || []).map(function (item) {
|
|
17864
17925
|
return /*#__PURE__*/React__default['default'].createElement(antd.Select.Option, {
|
|
17865
17926
|
key: item.billNo,
|
|
17866
17927
|
value: item.billNo,
|
|
@@ -17881,7 +17942,7 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
17881
17942
|
disabled: disabled,
|
|
17882
17943
|
allowClear: false,
|
|
17883
17944
|
options: reasonList,
|
|
17884
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$
|
|
17945
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type29 = typeMap$1[type]) === null || _typeMap$type29 === void 0 ? void 0 : _typeMap$type29.typeName)],
|
|
17885
17946
|
onChange: function onChange(val) {
|
|
17886
17947
|
return changeTypeHandle(val);
|
|
17887
17948
|
}
|
|
@@ -17893,7 +17954,7 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
17893
17954
|
canUpdateNumber: showChangeBtn,
|
|
17894
17955
|
showChangeBtn: showChangeBtn,
|
|
17895
17956
|
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
17896
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$
|
|
17957
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type30 = typeMap$1[type]) === null || _typeMap$type30 === void 0 ? void 0 : _typeMap$type30.key)],
|
|
17897
17958
|
onChange: function onChange(val) {
|
|
17898
17959
|
return changeGoodHandle(val);
|
|
17899
17960
|
},
|
|
@@ -19848,3 +19909,4 @@ exports.WdtReissue = wdtReissue;
|
|
|
19848
19909
|
exports.WlnGoods = WlnGoods;
|
|
19849
19910
|
exports.columnsBaseInfoMap = columnsBaseInfoMap;
|
|
19850
19911
|
exports.getJstColumns = getColumns$5;
|
|
19912
|
+
exports.getWlnColumns = getColumns$3;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/basic-components",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.44",
|
|
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.0.
|
|
23
|
+
"@kmkf-fe-packages/kmkf-utils": "2.0.44",
|
|
24
24
|
"ahooks": "^3.7.4",
|
|
25
25
|
"bignumber.js": "^9.1.2",
|
|
26
26
|
"kmkf-monitor": "^0.8.9",
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"publishConfig": {
|
|
66
66
|
"access": "public"
|
|
67
67
|
},
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "20ac9a7a67b69931f4920c1492a43261a080ba3d"
|
|
69
69
|
}
|