@kmkf-fe-packages/basic-components 1.19.8-beta.2 → 1.19.9
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 +132 -573
- package/dist/index.js +130 -572
- package/dist/src/bs/component/GoodItem/index.d.ts +0 -4
- package/dist/src/bs/component/model/BsE3GoodList.d.ts +0 -4
- package/dist/src/index.d.ts +0 -1
- package/package.json +3 -3
- package/dist/src/bs/component/GoodItem/bsE3ReissueGoodsColumns.d.ts +0 -21
- package/dist/src/e3/Reissue/index.d.ts +0 -3
package/dist/index.esm.js
CHANGED
|
@@ -4,7 +4,7 @@ import { EyeOutlined, DeleteOutlined, CloseCircleOutlined, CaretUpOutlined } fro
|
|
|
4
4
|
import request, { extend as extend$1 } from 'umi-request';
|
|
5
5
|
import { CopyToClipboard } from 'react-copy-to-clipboard';
|
|
6
6
|
import { AddressData, BsAddressData, WdtAddressData, request as request$1, ExpressData, uuid, LogisticsAddressData, WdtSendData, filterWdtOrders, WDT_ORDER_TYPE_MAP, filterBsE3Orders, BS_E3_ORDER_STATUS_MAP, BS_E3_BOOLEAN_STATUS_MAP, updateWdtGoodsHandle, updateBsE3GoodsHandle } from '@kmkf-fe-packages/kmkf-utils';
|
|
7
|
-
import { debounce, isNaN as isNaN$1, isNumber as isNumber$1, cloneDeep, difference, differenceWith, takeRight, reject
|
|
7
|
+
import { debounce, isNaN as isNaN$1, isNumber as isNumber$1, cloneDeep, difference, differenceWith, takeRight, reject } from 'lodash';
|
|
8
8
|
import { useUpdateEffect, useDebounceEffect, useAntdTable } from 'ahooks';
|
|
9
9
|
import zhCN from 'antd/lib/locale/zh_CN';
|
|
10
10
|
import pubsub from 'pubsub-js';
|
|
@@ -12093,7 +12093,7 @@ var getTableData$1 = function getTableData(_ref, formData) {
|
|
|
12093
12093
|
data: _objectSpread2({
|
|
12094
12094
|
pageSize: pageSize,
|
|
12095
12095
|
pageNo: current,
|
|
12096
|
-
platform: '
|
|
12096
|
+
platform: 'WDT_ERP'
|
|
12097
12097
|
}, data)
|
|
12098
12098
|
}).then(function (res) {
|
|
12099
12099
|
var _res$data = res.data,
|
|
@@ -12124,85 +12124,125 @@ var columns$2 = [{
|
|
|
12124
12124
|
},
|
|
12125
12125
|
width: 100
|
|
12126
12126
|
}, {
|
|
12127
|
-
dataIndex: '
|
|
12127
|
+
dataIndex: 'sku',
|
|
12128
12128
|
title: "SKU",
|
|
12129
12129
|
ellipsis: true,
|
|
12130
|
-
width:
|
|
12130
|
+
width: 70
|
|
12131
12131
|
}, {
|
|
12132
|
-
dataIndex: '
|
|
12132
|
+
dataIndex: 'skuId',
|
|
12133
12133
|
title: "SKU ID",
|
|
12134
12134
|
ellipsis: true,
|
|
12135
|
-
width:
|
|
12135
|
+
width: 70
|
|
12136
12136
|
}, {
|
|
12137
|
-
dataIndex: '
|
|
12137
|
+
dataIndex: 'goodsName',
|
|
12138
12138
|
title: "\u5546\u54C1\u540D\u79F0",
|
|
12139
12139
|
ellipsis: true,
|
|
12140
|
-
width:
|
|
12140
|
+
width: 70
|
|
12141
12141
|
}, {
|
|
12142
|
-
dataIndex: '
|
|
12142
|
+
dataIndex: 'goodsShortName',
|
|
12143
12143
|
title: "\u5546\u54C1\u7B80\u79F0",
|
|
12144
12144
|
ellipsis: true,
|
|
12145
|
-
width:
|
|
12145
|
+
width: 70
|
|
12146
12146
|
}, {
|
|
12147
|
-
dataIndex: '
|
|
12147
|
+
dataIndex: 'picPath',
|
|
12148
12148
|
title: "\u5546\u54C1\u56FE\u7247",
|
|
12149
12149
|
ellipsis: true,
|
|
12150
12150
|
width: 100,
|
|
12151
12151
|
render: function render(picUrl) {
|
|
12152
12152
|
return /*#__PURE__*/React.createElement("img", {
|
|
12153
12153
|
style: {
|
|
12154
|
-
width: '
|
|
12155
|
-
height: '
|
|
12154
|
+
width: '60px',
|
|
12155
|
+
height: '60px',
|
|
12156
12156
|
objectFit: 'contain'
|
|
12157
12157
|
},
|
|
12158
12158
|
src: picUrl
|
|
12159
12159
|
});
|
|
12160
12160
|
}
|
|
12161
12161
|
}, {
|
|
12162
|
-
dataIndex: '
|
|
12162
|
+
dataIndex: 'goodsSn',
|
|
12163
12163
|
title: "\u8D27\u53F7",
|
|
12164
12164
|
ellipsis: true,
|
|
12165
|
-
width:
|
|
12165
|
+
width: 70
|
|
12166
12166
|
}, {
|
|
12167
|
-
dataIndex: '
|
|
12167
|
+
dataIndex: 'goodsId',
|
|
12168
12168
|
title: "\u8D27\u53F7ID",
|
|
12169
12169
|
ellipsis: true,
|
|
12170
|
-
width:
|
|
12170
|
+
width: 70
|
|
12171
12171
|
}, {
|
|
12172
12172
|
dataIndex: 'colorName',
|
|
12173
12173
|
title: "\u989C\u8272\u540D\u79F0",
|
|
12174
12174
|
ellipsis: true,
|
|
12175
|
-
width:
|
|
12175
|
+
width: 70
|
|
12176
12176
|
}, {
|
|
12177
12177
|
dataIndex: 'colorCode',
|
|
12178
12178
|
title: "\u989C\u8272\u4EE3\u7801",
|
|
12179
12179
|
ellipsis: true,
|
|
12180
|
-
width:
|
|
12180
|
+
width: 70
|
|
12181
12181
|
}, {
|
|
12182
12182
|
dataIndex: 'sizeName',
|
|
12183
12183
|
title: "\u5C3A\u7801\u540D\u79F0",
|
|
12184
12184
|
ellipsis: true,
|
|
12185
|
-
width:
|
|
12185
|
+
width: 70
|
|
12186
12186
|
}, {
|
|
12187
12187
|
dataIndex: 'sizeCode',
|
|
12188
12188
|
title: "\u5C3A\u7801\u4EE3\u7801",
|
|
12189
12189
|
ellipsis: true,
|
|
12190
|
-
width:
|
|
12190
|
+
width: 70
|
|
12191
12191
|
}, {
|
|
12192
12192
|
dataIndex: 'brandName',
|
|
12193
12193
|
title: "\u54C1\u724C\u540D\u79F0",
|
|
12194
12194
|
ellipsis: true,
|
|
12195
|
-
width:
|
|
12195
|
+
width: 70
|
|
12196
12196
|
}, {
|
|
12197
|
-
dataIndex: '
|
|
12198
|
-
title: "\
|
|
12197
|
+
dataIndex: 'goodsNumber',
|
|
12198
|
+
title: "\u5546\u54C1\u6570\u91CF",
|
|
12199
12199
|
ellipsis: true,
|
|
12200
|
-
width:
|
|
12200
|
+
width: 70
|
|
12201
12201
|
}, {
|
|
12202
|
-
dataIndex: '
|
|
12203
|
-
title: "\
|
|
12202
|
+
dataIndex: 'goodsPrice',
|
|
12203
|
+
title: "\u5546\u54C1\u5355\u4EF7",
|
|
12204
12204
|
ellipsis: true,
|
|
12205
|
-
width:
|
|
12205
|
+
width: 70
|
|
12206
|
+
}, {
|
|
12207
|
+
dataIndex: 'shopPrice',
|
|
12208
|
+
title: "\u5546\u54C1\u7F51\u5E97\u552E\u4EF7",
|
|
12209
|
+
ellipsis: true,
|
|
12210
|
+
width: 70
|
|
12211
|
+
}, {
|
|
12212
|
+
dataIndex: 'sharePrice',
|
|
12213
|
+
title: "\u5206\u644A\u4EF7",
|
|
12214
|
+
ellipsis: true,
|
|
12215
|
+
width: 70
|
|
12216
|
+
}, {
|
|
12217
|
+
dataIndex: 'sharePayment',
|
|
12218
|
+
title: "\u5206\u644A\u5B9E\u4ED8\u91D1\u989D",
|
|
12219
|
+
ellipsis: true,
|
|
12220
|
+
width: 70
|
|
12221
|
+
}, {
|
|
12222
|
+
dataIndex: 'payment',
|
|
12223
|
+
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
12224
|
+
ellipsis: true,
|
|
12225
|
+
width: 70
|
|
12226
|
+
}, {
|
|
12227
|
+
dataIndex: 'tcSku',
|
|
12228
|
+
title: "\u5957\u9910SKU",
|
|
12229
|
+
ellipsis: true,
|
|
12230
|
+
width: 70
|
|
12231
|
+
}, {
|
|
12232
|
+
dataIndex: 'tcGoodsNumber',
|
|
12233
|
+
title: "\u5957\u9910\u5957\u6570",
|
|
12234
|
+
ellipsis: true,
|
|
12235
|
+
width: 70
|
|
12236
|
+
}, {
|
|
12237
|
+
dataIndex: 'taoCanSingleSl',
|
|
12238
|
+
title: "\u5355\u4E2A\u5957\u9910\u6570\u91CF",
|
|
12239
|
+
ellipsis: true,
|
|
12240
|
+
width: 70
|
|
12241
|
+
}, {
|
|
12242
|
+
dataIndex: 'isGift',
|
|
12243
|
+
title: "\u662F\u5426\u8D60\u54C1",
|
|
12244
|
+
ellipsis: true,
|
|
12245
|
+
width: 70
|
|
12206
12246
|
}];
|
|
12207
12247
|
var GoodList$1 = function GoodList(props, ref) {
|
|
12208
12248
|
var _useState = useState([]),
|
|
@@ -12236,7 +12276,7 @@ var GoodList$1 = function GoodList(props, ref) {
|
|
|
12236
12276
|
layout: "inline",
|
|
12237
12277
|
form: form
|
|
12238
12278
|
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
12239
|
-
name: "
|
|
12279
|
+
name: "goodsSn",
|
|
12240
12280
|
style: {
|
|
12241
12281
|
marginBottom: '12px'
|
|
12242
12282
|
}
|
|
@@ -12247,7 +12287,7 @@ var GoodList$1 = function GoodList(props, ref) {
|
|
|
12247
12287
|
width: 150
|
|
12248
12288
|
}
|
|
12249
12289
|
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
12250
|
-
name: "
|
|
12290
|
+
name: "goodsName",
|
|
12251
12291
|
style: {
|
|
12252
12292
|
marginBottom: '12px'
|
|
12253
12293
|
}
|
|
@@ -12258,7 +12298,7 @@ var GoodList$1 = function GoodList(props, ref) {
|
|
|
12258
12298
|
width: 150
|
|
12259
12299
|
}
|
|
12260
12300
|
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
12261
|
-
name: "
|
|
12301
|
+
name: "sku",
|
|
12262
12302
|
style: {
|
|
12263
12303
|
marginBottom: '12px'
|
|
12264
12304
|
}
|
|
@@ -12375,7 +12415,7 @@ var GoodList$1 = function GoodList(props, ref) {
|
|
|
12375
12415
|
}
|
|
12376
12416
|
}, /*#__PURE__*/React.createElement(Table, _objectSpread2({
|
|
12377
12417
|
rowSelection: rowSelection,
|
|
12378
|
-
rowKey: "
|
|
12418
|
+
rowKey: "goodsId",
|
|
12379
12419
|
columns: columns$2,
|
|
12380
12420
|
scroll: {
|
|
12381
12421
|
x: '100%',
|
|
@@ -12435,191 +12475,15 @@ var GoodsModal$4 = function GoodsModal(props, ref) {
|
|
|
12435
12475
|
};
|
|
12436
12476
|
var BsE3GoodsModal = /*#__PURE__*/forwardRef(GoodsModal$4);
|
|
12437
12477
|
|
|
12438
|
-
|
|
12439
|
-
|
|
12440
|
-
|
|
12441
|
-
|
|
12442
|
-
|
|
12443
|
-
|
|
12444
|
-
|
|
12445
|
-
width: 150
|
|
12446
|
-
}, {
|
|
12447
|
-
dataIndex: 'goodsName',
|
|
12448
|
-
title: "\u5546\u54C1\u540D\u79F0",
|
|
12449
|
-
width: 150
|
|
12450
|
-
}, {
|
|
12451
|
-
dataIndex: 'goodsShortName',
|
|
12452
|
-
title: "\u5546\u54C1\u7B80\u4ECB",
|
|
12453
|
-
width: 150
|
|
12454
|
-
}, {
|
|
12455
|
-
dataIndex: 'picPath',
|
|
12456
|
-
title: "\u5546\u54C1\u56FE\u7247",
|
|
12457
|
-
width: 150
|
|
12458
|
-
}, {
|
|
12459
|
-
dataIndex: 'goodsSn',
|
|
12460
|
-
title: "\u8D27\u53F7",
|
|
12461
|
-
width: 150
|
|
12462
|
-
}, {
|
|
12463
|
-
dataIndex: 'goodsId',
|
|
12464
|
-
title: "\u8D27\u53F7ID",
|
|
12465
|
-
width: 150
|
|
12466
|
-
}, {
|
|
12467
|
-
dataIndex: 'colorName',
|
|
12468
|
-
title: "\u989C\u8272\u540D\u79F0",
|
|
12469
|
-
width: 150
|
|
12470
|
-
}, {
|
|
12471
|
-
dataIndex: 'colorCode',
|
|
12472
|
-
title: "\u989C\u8272\u4EE3\u7801",
|
|
12473
|
-
width: 150
|
|
12474
|
-
}, {
|
|
12475
|
-
dataIndex: 'sizeName',
|
|
12476
|
-
title: "\u5C3A\u5BF8\u540D\u79F0",
|
|
12477
|
-
width: 150
|
|
12478
|
-
}, {
|
|
12479
|
-
dataIndex: 'sizeCode',
|
|
12480
|
-
title: "\u5C3A\u5BF8\u4EE3\u7801",
|
|
12481
|
-
width: 150
|
|
12482
|
-
}, {
|
|
12483
|
-
dataIndex: 'brandName',
|
|
12484
|
-
title: "\u54C1\u724C\u540D\u79F0",
|
|
12485
|
-
width: 150
|
|
12486
|
-
}, {
|
|
12487
|
-
dataIndex: 'shopPrice',
|
|
12488
|
-
title: "\u5546\u54C1\u7F51\u5E97\u552E\u4EF7",
|
|
12489
|
-
width: 150
|
|
12490
|
-
}, {
|
|
12491
|
-
dataIndex: 'goodsNumber',
|
|
12492
|
-
title: "\u5546\u54C1\u6570\u91CF",
|
|
12493
|
-
width: 150
|
|
12494
|
-
}, {
|
|
12495
|
-
dataIndex: 'goodsPrice',
|
|
12496
|
-
title: "\u5546\u54C1\u5355\u4EF7",
|
|
12497
|
-
width: 150
|
|
12498
|
-
}, {
|
|
12499
|
-
dataIndex: 'isGift',
|
|
12500
|
-
title: "\u662F\u5426\u8D60\u54C1",
|
|
12501
|
-
width: 150
|
|
12502
|
-
}];
|
|
12503
|
-
var renderFieldMap = {
|
|
12504
|
-
goodsNumber: function goodsNumber(_ref) {
|
|
12505
|
-
var disabled = _ref.disabled,
|
|
12506
|
-
updateHandle = _ref.updateHandle;
|
|
12507
|
-
return function (val, record, index) {
|
|
12508
|
-
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
12509
|
-
style: {
|
|
12510
|
-
width: 70
|
|
12511
|
-
},
|
|
12512
|
-
value: val,
|
|
12513
|
-
min: 1,
|
|
12514
|
-
precision: 0,
|
|
12515
|
-
onChange: function onChange(num) {
|
|
12516
|
-
return updateHandle(num, index, 'goodsNumber');
|
|
12517
|
-
}
|
|
12518
|
-
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
12519
|
-
};
|
|
12520
|
-
},
|
|
12521
|
-
goodsPrice: function goodsPrice(_ref2) {
|
|
12522
|
-
var disabled = _ref2.disabled,
|
|
12523
|
-
updateHandle = _ref2.updateHandle;
|
|
12524
|
-
return function (val, record, index) {
|
|
12525
|
-
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
12526
|
-
style: {
|
|
12527
|
-
width: 70
|
|
12528
|
-
},
|
|
12529
|
-
value: val,
|
|
12530
|
-
min: 0,
|
|
12531
|
-
onChange: function onChange(value) {
|
|
12532
|
-
return updateHandle(value, index, 'goodsPrice');
|
|
12533
|
-
}
|
|
12534
|
-
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
12535
|
-
};
|
|
12536
|
-
},
|
|
12537
|
-
isGift: function isGift(_ref3) {
|
|
12538
|
-
var disabled = _ref3.disabled,
|
|
12539
|
-
updateHandle = _ref3.updateHandle;
|
|
12540
|
-
return function (val, record, index) {
|
|
12541
|
-
var options = [{
|
|
12542
|
-
label: '是',
|
|
12543
|
-
value: '赠品'
|
|
12544
|
-
}, {
|
|
12545
|
-
label: '否',
|
|
12546
|
-
value: '非赠品'
|
|
12547
|
-
}];
|
|
12548
|
-
return !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
12549
|
-
style: {
|
|
12550
|
-
width: 70
|
|
12551
|
-
},
|
|
12552
|
-
options: options,
|
|
12553
|
-
value: val,
|
|
12554
|
-
onChange: function onChange(value) {
|
|
12555
|
-
return updateHandle(value, index, 'isGift');
|
|
12556
|
-
}
|
|
12557
|
-
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
12558
|
-
};
|
|
12559
|
-
}
|
|
12560
|
-
};
|
|
12561
|
-
var getBsE3ReissueGoodColumns = function getBsE3ReissueGoodColumns(_ref4) {
|
|
12562
|
-
var disabled = _ref4.disabled,
|
|
12563
|
-
updateHandle = _ref4.updateHandle,
|
|
12564
|
-
operate = _ref4.operate;
|
|
12565
|
-
return columns$3.map(function (item) {
|
|
12566
|
-
var newItem = _objectSpread2({
|
|
12567
|
-
align: 'center',
|
|
12568
|
-
ellipsis: true
|
|
12569
|
-
}, item);
|
|
12570
|
-
if (operate && (renderFieldMap === null || renderFieldMap === void 0 ? void 0 : renderFieldMap[item.dataIndex])) {
|
|
12571
|
-
return _objectSpread2(_objectSpread2({}, newItem), {}, {
|
|
12572
|
-
render: renderFieldMap === null || renderFieldMap === void 0 ? void 0 : renderFieldMap[item.dataIndex]({
|
|
12573
|
-
disabled: disabled,
|
|
12574
|
-
updateHandle: updateHandle
|
|
12575
|
-
})
|
|
12576
|
-
});
|
|
12577
|
-
}
|
|
12578
|
-
return newItem;
|
|
12579
|
-
});
|
|
12580
|
-
};
|
|
12581
|
-
|
|
12582
|
-
var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
12583
|
-
var columns = _ref.columns,
|
|
12584
|
-
dataSource = _ref.dataSource,
|
|
12585
|
-
selectedRowKeys = _ref.selectedRowKeys,
|
|
12586
|
-
onChangeSelectedKeys = _ref.onChangeSelectedKeys;
|
|
12587
|
-
var _useState = useState(false),
|
|
12588
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
12589
|
-
tradeGoodsVisible = _useState2[0],
|
|
12590
|
-
setTradeGoodsVisible = _useState2[1];
|
|
12591
|
-
var openModal = function openModal() {
|
|
12592
|
-
return setTradeGoodsVisible(true);
|
|
12593
|
-
};
|
|
12594
|
-
var closeModal = function closeModal() {
|
|
12595
|
-
return setTradeGoodsVisible(false);
|
|
12596
|
-
};
|
|
12597
|
-
var rowSelection = {
|
|
12598
|
-
selectedRowKeys: selectedRowKeys,
|
|
12599
|
-
onChange: onChangeSelectedKeys
|
|
12600
|
-
};
|
|
12601
|
-
console.debug('选择订单商品-dataSource', dataSource, selectedRowKeys);
|
|
12602
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Button, {
|
|
12603
|
-
type: "link",
|
|
12604
|
-
onClick: openModal
|
|
12605
|
-
}, "\u9009\u62E9\u8BA2\u5355\u5546\u54C1"), /*#__PURE__*/React.createElement(Modal, {
|
|
12606
|
-
title: "\u8BA2\u5355\u5546\u54C1",
|
|
12607
|
-
visible: tradeGoodsVisible,
|
|
12608
|
-
footer: null,
|
|
12609
|
-
onCancel: closeModal
|
|
12610
|
-
}, /*#__PURE__*/React.createElement(Table, {
|
|
12611
|
-
rowKey: "sku",
|
|
12612
|
-
rowSelection: rowSelection,
|
|
12613
|
-
columns: columns,
|
|
12614
|
-
dataSource: dataSource,
|
|
12615
|
-
pagination: false,
|
|
12616
|
-
scroll: {
|
|
12617
|
-
x: 500,
|
|
12618
|
-
y: 500
|
|
12619
|
-
}
|
|
12620
|
-
}), /*#__PURE__*/React.createElement("span", null, "\u4EE5\u9009\u62E9(", selectedRowKeys === null || selectedRowKeys === void 0 ? void 0 : selectedRowKeys.length, "/", dataSource === null || dataSource === void 0 ? void 0 : dataSource.length, ")")));
|
|
12621
|
-
};
|
|
12478
|
+
// interface GoodsItem {
|
|
12479
|
+
// title: string;
|
|
12480
|
+
// pic: string;
|
|
12481
|
+
// platform: string;
|
|
12482
|
+
// skuId: string;
|
|
12483
|
+
// styleId: string;
|
|
12484
|
+
// }
|
|
12622
12485
|
var GoodItem$1 = function GoodItem(props) {
|
|
12486
|
+
var _ref;
|
|
12623
12487
|
var _props$value = props.value,
|
|
12624
12488
|
value = _props$value === void 0 ? [] : _props$value,
|
|
12625
12489
|
type = props.type,
|
|
@@ -12653,10 +12517,8 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
12653
12517
|
companyKey = _props$companyKey === void 0 ? '' : _props$companyKey,
|
|
12654
12518
|
onSelect = props.onSelect,
|
|
12655
12519
|
onDelete = props.onDelete,
|
|
12656
|
-
onModeChange = props.onModeChange
|
|
12657
|
-
tradeGoods = props.tradeGoods;
|
|
12520
|
+
onModeChange = props.onModeChange;
|
|
12658
12521
|
var refModal = useRef();
|
|
12659
|
-
console.debug('表格数据', value);
|
|
12660
12522
|
var handleDelete = function handleDelete(record, index) {
|
|
12661
12523
|
onDelete === null || onDelete === void 0 ? void 0 : onDelete(value[index]);
|
|
12662
12524
|
var newList = _toConsumableArray(value).filter(function (item, i) {
|
|
@@ -12664,19 +12526,13 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
12664
12526
|
});
|
|
12665
12527
|
onChange === null || onChange === void 0 ? void 0 : onChange(_toConsumableArray(newList));
|
|
12666
12528
|
};
|
|
12667
|
-
var
|
|
12668
|
-
|
|
12669
|
-
selectedRowKeys =
|
|
12670
|
-
setSelectedRowKeys =
|
|
12529
|
+
var _useState = useState([]),
|
|
12530
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
12531
|
+
selectedRowKeys = _useState2[0],
|
|
12532
|
+
setSelectedRowKeys = _useState2[1];
|
|
12671
12533
|
useEffect(function () {
|
|
12672
12534
|
setSelectedRowKeys([]);
|
|
12673
12535
|
}, [tableSelect, selectType]);
|
|
12674
|
-
// TODO: 商品订单中以选中商品
|
|
12675
|
-
var selectedGoods = useMemo(function () {
|
|
12676
|
-
return value === null || value === void 0 ? void 0 : value.map(function (v) {
|
|
12677
|
-
return v.sku;
|
|
12678
|
-
});
|
|
12679
|
-
}, [value]);
|
|
12680
12536
|
var updateHandle = function updateHandle(val, index, columnType) {
|
|
12681
12537
|
if (value === null || value === void 0 ? void 0 : value.length) {
|
|
12682
12538
|
value[index][columnType] = val;
|
|
@@ -12710,7 +12566,6 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
12710
12566
|
};
|
|
12711
12567
|
var COLUMNS_MAP = function COLUMNS_MAP() {
|
|
12712
12568
|
var text = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
12713
|
-
var operate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
12714
12569
|
return function (type) {
|
|
12715
12570
|
var columns = [];
|
|
12716
12571
|
switch (type) {
|
|
@@ -13208,15 +13063,6 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
13208
13063
|
}];
|
|
13209
13064
|
}
|
|
13210
13065
|
break;
|
|
13211
|
-
case 'BS_E3_REISSUE_GOODS':
|
|
13212
|
-
{
|
|
13213
|
-
columns = getBsE3ReissueGoodColumns({
|
|
13214
|
-
disabled: disabled,
|
|
13215
|
-
updateHandle: updateHandle,
|
|
13216
|
-
operate: operate
|
|
13217
|
-
});
|
|
13218
|
-
}
|
|
13219
|
-
break;
|
|
13220
13066
|
default:
|
|
13221
13067
|
columns = [{
|
|
13222
13068
|
dataIndex: 'mark',
|
|
@@ -13356,19 +13202,6 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
13356
13202
|
}
|
|
13357
13203
|
return columnList;
|
|
13358
13204
|
}, [showHeader, value, disabled]);
|
|
13359
|
-
var orderColumns = useMemo(function () {
|
|
13360
|
-
var columns = COLUMNS_MAP('', false)(type);
|
|
13361
|
-
return [{
|
|
13362
|
-
dataIndex: '',
|
|
13363
|
-
title: '序号',
|
|
13364
|
-
align: 'center',
|
|
13365
|
-
ellipsis: true,
|
|
13366
|
-
width: 50,
|
|
13367
|
-
render: function render(val, record, index) {
|
|
13368
|
-
return /*#__PURE__*/React.createElement("span", null, index + 1);
|
|
13369
|
-
}
|
|
13370
|
-
}].concat(_toConsumableArray(columns));
|
|
13371
|
-
}, []);
|
|
13372
13205
|
var onSubmit = function onSubmit(list) {
|
|
13373
13206
|
var newList = [];
|
|
13374
13207
|
if (['WDT_REISSUE_GOODS', 'WDT_GOODS', 'WDT_EXCHANGE_GOODS'].includes(type)) {
|
|
@@ -13387,36 +13220,12 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
13387
13220
|
});
|
|
13388
13221
|
} else if (['BS_E3_GOODS', 'BS_E3_REISSUE_GOODS', 'BS_E3_EXCHANGE_GOODS'].includes(type)) {
|
|
13389
13222
|
newList = list.map(function (item) {
|
|
13390
|
-
|
|
13391
|
-
|
|
13392
|
-
|
|
13393
|
-
|
|
13394
|
-
|
|
13395
|
-
|
|
13396
|
-
goodId = item.goodId,
|
|
13397
|
-
retailPrice = item.retailPrice;
|
|
13398
|
-
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
13399
|
-
sku: specNo,
|
|
13400
|
-
skuId: specId,
|
|
13401
|
-
goodsName: goodName,
|
|
13402
|
-
goodsShortName: goodShortName,
|
|
13403
|
-
picPath: goodPicUrl,
|
|
13404
|
-
goodsSn: goodNo,
|
|
13405
|
-
goodsId: goodId,
|
|
13406
|
-
goodsPrice: retailPrice,
|
|
13407
|
-
shopPrice: retailPrice,
|
|
13408
|
-
sharePayment: '',
|
|
13409
|
-
sharePrice: '',
|
|
13410
|
-
payment: '',
|
|
13411
|
-
tcSku: '',
|
|
13412
|
-
tcGoodsNumber: '',
|
|
13413
|
-
taoCanSingleSl: '',
|
|
13414
|
-
isGift: '',
|
|
13415
|
-
uuid: uuid(),
|
|
13416
|
-
canDelete: true,
|
|
13417
|
-
goodsNumber: 1,
|
|
13418
|
-
canUpdateNumber: canUpdateNumber
|
|
13419
|
-
});
|
|
13223
|
+
item.uuid = uuid();
|
|
13224
|
+
item.canDelete = true;
|
|
13225
|
+
item.goodsNumber = 1;
|
|
13226
|
+
item.goodsPrice = 0;
|
|
13227
|
+
item.canUpdateNumber = canUpdateNumber;
|
|
13228
|
+
return item;
|
|
13420
13229
|
});
|
|
13421
13230
|
} else {
|
|
13422
13231
|
newList = list.map(function (item) {
|
|
@@ -13477,12 +13286,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
13477
13286
|
}, showModeBtn && /*#__PURE__*/React.createElement(Checkbox, {
|
|
13478
13287
|
checked: isStrict,
|
|
13479
13288
|
onChange: handleCheckboxChange
|
|
13480
|
-
}, "\u5408\u5E76\u5355\uFF0C\u52FE\u9009\u540E\u53EA\u5C55\u793A\u5F53\u524D\u5E73\u53F0\u8BA2\u5355\u5546\u54C1"), !
|
|
13481
|
-
columns: orderColumns,
|
|
13482
|
-
dataSource: tradeGoods.originDataSource,
|
|
13483
|
-
selectedRowKeys: selectedGoods,
|
|
13484
|
-
onChangeSelectedKeys: tradeGoods.selectedGoodsChange
|
|
13485
|
-
}), /*#__PURE__*/React.createElement(Button, {
|
|
13289
|
+
}, "\u5408\u5E76\u5355\uFF0C\u52FE\u9009\u540E\u53EA\u5C55\u793A\u5F53\u524D\u5E73\u53F0\u8BA2\u5355\u5546\u54C1"), !((_ref = ['BS_E3_GOODS']) === null || _ref === void 0 ? void 0 : _ref.includes(type)) && /*#__PURE__*/React.createElement(Button, {
|
|
13486
13290
|
type: "link",
|
|
13487
13291
|
onClick: handleChangeGoods
|
|
13488
13292
|
}, "\u9009\u62E9\u5546\u54C1"), otherOperations), /*#__PURE__*/React.createElement(Table, _objectSpread2(_objectSpread2({}, tableConfig), {}, {
|
|
@@ -15055,12 +14859,11 @@ var typeMap$1 = {
|
|
|
15055
14859
|
formatDefaultField: {
|
|
15056
14860
|
money: 'orderPrice',
|
|
15057
14861
|
share: 'sharePrice'
|
|
15058
|
-
}
|
|
15059
|
-
getOrderList: wdtUtils.getWdtOrderListSingleton
|
|
14862
|
+
}
|
|
15060
14863
|
}
|
|
15061
14864
|
};
|
|
15062
14865
|
var wdtReissue = function wdtReissue(props) {
|
|
15063
|
-
var _value$wdtSystemOrder, _typeMap$type7, _typeMap$
|
|
14866
|
+
var _value$wdtSystemOrder, _typeMap$type7, _typeMap$type25, _typeMap$type26, _value$typeMap$type$s5, _typeMap$type27, _typeMap$type28, _typeMap$type29;
|
|
15064
14867
|
var value = props.value,
|
|
15065
14868
|
onChange = props.onChange,
|
|
15066
14869
|
_props$reasonList = props.reasonList,
|
|
@@ -15082,7 +14885,7 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
15082
14885
|
if (!getOrderFlag.current && !(value === null || value === void 0 ? void 0 : (_value$typeMap$type$s = value[(_typeMap$type = typeMap$1[type]) === null || _typeMap$type === void 0 ? void 0 : _typeMap$type.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$type2 = typeMap$1[type]) === null || _typeMap$type2 === void 0 ? void 0 : _typeMap$type2.systemOrder]) === null || _value$typeMap$type$s3 === void 0 ? void 0 : _value$typeMap$type$s3.orderNo)) {
|
|
15083
14886
|
var _value$typeMap$type$s4, _typeMap$type3;
|
|
15084
14887
|
getOrderFlag.current = true;
|
|
15085
|
-
|
|
14888
|
+
getWdtOrderList(value === null || value === void 0 ? void 0 : (_value$typeMap$type$s4 = value[(_typeMap$type3 = typeMap$1[type]) === null || _typeMap$type3 === void 0 ? void 0 : _typeMap$type3.systemOrder]) === null || _value$typeMap$type$s4 === void 0 ? void 0 : _value$typeMap$type$s4.orderNo);
|
|
15086
14889
|
}
|
|
15087
14890
|
return;
|
|
15088
14891
|
}, [value]);
|
|
@@ -15100,30 +14903,13 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
15100
14903
|
}
|
|
15101
14904
|
return;
|
|
15102
14905
|
}, [value === null || value === void 0 ? void 0 : value[(_typeMap$type7 = typeMap$1[type]) === null || _typeMap$type7 === void 0 ? void 0 : _typeMap$type7.systemOrderNo]]);
|
|
15103
|
-
|
|
15104
|
-
// wdtUtils.getWdtOrderListSingleton(orderNo).then(data => {
|
|
15105
|
-
// const orders = data?.trades || [];
|
|
15106
|
-
// const showOrderInfo = orders.map(({ billNo, billType, billTag }: any) => {
|
|
15107
|
-
// return { billNo, billType, billTag }
|
|
15108
|
-
// });
|
|
15109
|
-
// onChange({
|
|
15110
|
-
// ...value,
|
|
15111
|
-
// [typeMap[type]?.systemOrder]: {
|
|
15112
|
-
// ...value[typeMap[type]?.systemOrder],
|
|
15113
|
-
// showOrderInfo,
|
|
15114
|
-
// orders,
|
|
15115
|
-
// },
|
|
15116
|
-
// });
|
|
15117
|
-
// })
|
|
15118
|
-
// };
|
|
15119
|
-
var getOrderList = /*#__PURE__*/function () {
|
|
14906
|
+
var getWdtOrderList = /*#__PURE__*/function () {
|
|
15120
14907
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(orderNo) {
|
|
15121
|
-
var _typeMap$type8;
|
|
15122
14908
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
15123
14909
|
while (1) switch (_context.prev = _context.next) {
|
|
15124
14910
|
case 0:
|
|
15125
|
-
|
|
15126
|
-
var _typeMap$
|
|
14911
|
+
wdtUtils.getWdtOrderListSingleton(orderNo).then(function (data) {
|
|
14912
|
+
var _typeMap$type8, _typeMap$type9;
|
|
15127
14913
|
var orders = (data === null || data === void 0 ? void 0 : data.trades) || [];
|
|
15128
14914
|
var showOrderInfo = orders.map(function (_ref2) {
|
|
15129
14915
|
var billNo = _ref2.billNo,
|
|
@@ -15135,7 +14921,7 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
15135
14921
|
billTag: billTag
|
|
15136
14922
|
};
|
|
15137
14923
|
});
|
|
15138
|
-
onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, (_typeMap$
|
|
14924
|
+
onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, (_typeMap$type8 = typeMap$1[type]) === null || _typeMap$type8 === void 0 ? void 0 : _typeMap$type8.systemOrder, _objectSpread2(_objectSpread2({}, value[(_typeMap$type9 = typeMap$1[type]) === null || _typeMap$type9 === void 0 ? void 0 : _typeMap$type9.systemOrder]), {}, {
|
|
15139
14925
|
showOrderInfo: showOrderInfo,
|
|
15140
14926
|
orders: orders
|
|
15141
14927
|
}))));
|
|
@@ -15146,43 +14932,43 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
15146
14932
|
}
|
|
15147
14933
|
}, _callee);
|
|
15148
14934
|
}));
|
|
15149
|
-
return function
|
|
14935
|
+
return function getWdtOrderList(_x) {
|
|
15150
14936
|
return _ref.apply(this, arguments);
|
|
15151
14937
|
};
|
|
15152
14938
|
}();
|
|
15153
14939
|
var changeTypeHandle = function changeTypeHandle(val) {
|
|
15154
|
-
var _value$typeMap$type$t2, _typeMap$
|
|
14940
|
+
var _value$typeMap$type$t2, _typeMap$type10, _typeMap$type11;
|
|
15155
14941
|
var typeName = val === null || val === void 0 ? void 0 : val[0];
|
|
15156
|
-
if (typeName === (value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$
|
|
14942
|
+
if (typeName === (value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$type10 = typeMap$1[type]) === null || _typeMap$type10 === void 0 ? void 0 : _typeMap$type10.typeName]) === null || _value$typeMap$type$t2 === void 0 ? void 0 : _value$typeMap$type$t2[0])) return;
|
|
15157
14943
|
// const systemOrderNo = value?.[typeMap[type]?.systemOrderNo];
|
|
15158
14944
|
var newValue = _objectSpread2({}, value);
|
|
15159
|
-
newValue[(_typeMap$
|
|
14945
|
+
newValue[(_typeMap$type11 = typeMap$1[type]) === null || _typeMap$type11 === void 0 ? void 0 : _typeMap$type11.typeName] = val;
|
|
15160
14946
|
if (typeName === '1') {
|
|
15161
|
-
var _typeMap$
|
|
15162
|
-
newValue[(_typeMap$
|
|
14947
|
+
var _typeMap$type12;
|
|
14948
|
+
newValue[(_typeMap$type12 = typeMap$1[type]) === null || _typeMap$type12 === void 0 ? void 0 : _typeMap$type12.key] = getGoodDetails({
|
|
15163
14949
|
mode: isStrict
|
|
15164
14950
|
});
|
|
15165
14951
|
} else if (typeName === '2') {
|
|
15166
|
-
var _typeMap$
|
|
14952
|
+
var _typeMap$type13;
|
|
15167
14953
|
// 切换到非原单,清空列表
|
|
15168
|
-
newValue[(_typeMap$
|
|
14954
|
+
newValue[(_typeMap$type13 = typeMap$1[type]) === null || _typeMap$type13 === void 0 ? void 0 : _typeMap$type13.key] = [];
|
|
15169
14955
|
}
|
|
15170
14956
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
15171
14957
|
};
|
|
15172
14958
|
var handleModeChange = function handleModeChange(mode) {
|
|
15173
|
-
var _value$typeMap$type$t3, _typeMap$
|
|
15174
|
-
var isOriginalOrder = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$
|
|
14959
|
+
var _value$typeMap$type$t3, _typeMap$type14, _typeMap$type15;
|
|
14960
|
+
var isOriginalOrder = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$type14 = typeMap$1[type]) === null || _typeMap$type14 === void 0 ? void 0 : _typeMap$type14.typeName]) === null || _value$typeMap$type$t3 === void 0 ? void 0 : _value$typeMap$type$t3[0]) === '1';
|
|
15175
14961
|
setIsStrict(mode);
|
|
15176
14962
|
if (!isOriginalOrder) return;
|
|
15177
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, (_typeMap$
|
|
14963
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, (_typeMap$type15 = typeMap$1[type]) === null || _typeMap$type15 === void 0 ? void 0 : _typeMap$type15.key, getGoodDetails({
|
|
15178
14964
|
mode: mode
|
|
15179
14965
|
}))));
|
|
15180
14966
|
};
|
|
15181
14967
|
var getGoodDetails = function getGoodDetails(_ref3) {
|
|
15182
|
-
var _typeMap$
|
|
14968
|
+
var _typeMap$type16, _typeMap$type17, _order$goodDetails;
|
|
15183
14969
|
var mode = _ref3.mode;
|
|
15184
|
-
var systemOrder = value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
15185
|
-
var systemOrderNo = value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
14970
|
+
var systemOrder = value === null || value === void 0 ? void 0 : value[(_typeMap$type16 = typeMap$1[type]) === null || _typeMap$type16 === void 0 ? void 0 : _typeMap$type16.systemOrder];
|
|
14971
|
+
var systemOrderNo = value === null || value === void 0 ? void 0 : value[(_typeMap$type17 = typeMap$1[type]) === null || _typeMap$type17 === void 0 ? void 0 : _typeMap$type17.systemOrderNo];
|
|
15186
14972
|
var order = systemOrderNo && ((systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orders) || []).find(function (order) {
|
|
15187
14973
|
return order.tradeNo === systemOrderNo;
|
|
15188
14974
|
});
|
|
@@ -15193,31 +14979,31 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
15193
14979
|
}) : goodDetails;
|
|
15194
14980
|
};
|
|
15195
14981
|
var changeGoodHandle = function changeGoodHandle(val) {
|
|
15196
|
-
var _typeMap$
|
|
14982
|
+
var _typeMap$type18;
|
|
15197
14983
|
var newValue = _objectSpread2({}, value);
|
|
15198
|
-
newValue["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$
|
|
15199
|
-
var _typeMap$
|
|
15200
|
-
item["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$
|
|
15201
|
-
item["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$
|
|
14984
|
+
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)] = (val || []).map(function (item) {
|
|
14985
|
+
var _typeMap$type19, _typeMap$type20;
|
|
14986
|
+
item["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type19 = typeMap$1[type]) === null || _typeMap$type19 === void 0 ? void 0 : _typeMap$type19.formatDefaultField.money)] = 0;
|
|
14987
|
+
item["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type20 = typeMap$1[type]) === null || _typeMap$type20 === void 0 ? void 0 : _typeMap$type20.formatDefaultField.share)] = 0;
|
|
15202
14988
|
return item;
|
|
15203
14989
|
});
|
|
15204
14990
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
15205
14991
|
};
|
|
15206
14992
|
var changeSystemOrderHandle = function changeSystemOrderHandle(val) {
|
|
15207
|
-
var _typeMap$
|
|
14993
|
+
var _typeMap$type21, _value$typeMap$type$t4, _typeMap$type22;
|
|
15208
14994
|
var newValue = _objectSpread2({}, value);
|
|
15209
|
-
newValue["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$
|
|
15210
|
-
if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t4 = value[(_typeMap$
|
|
15211
|
-
var _typeMap$
|
|
15212
|
-
newValue["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$
|
|
14995
|
+
newValue["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type21 = typeMap$1[type]) === null || _typeMap$type21 === void 0 ? void 0 : _typeMap$type21.systemOrderNo)] = val;
|
|
14996
|
+
if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t4 = value[(_typeMap$type22 = typeMap$1[type]) === null || _typeMap$type22 === void 0 ? void 0 : _typeMap$type22.typeName]) === null || _value$typeMap$type$t4 === void 0 ? void 0 : _value$typeMap$type$t4[0])) {
|
|
14997
|
+
var _typeMap$type23;
|
|
14998
|
+
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)] = [];
|
|
15213
14999
|
}
|
|
15214
15000
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
15215
15001
|
};
|
|
15216
15002
|
//显示选择商品按钮 原单换不显示选择商品
|
|
15217
15003
|
var showChangeBtn = useMemo(function () {
|
|
15218
|
-
var _typeMap$
|
|
15219
|
-
return !!(value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
15220
|
-
}, [value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
15004
|
+
var _typeMap$type24;
|
|
15005
|
+
return !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type24 = typeMap$1[type]) === null || _typeMap$type24 === void 0 ? void 0 : _typeMap$type24.systemOrderNo]);
|
|
15006
|
+
}, [value === null || value === void 0 ? void 0 : value[(_typeMap$type25 = typeMap$1[type]) === null || _typeMap$type25 === void 0 ? void 0 : _typeMap$type25.systemOrderNo]]);
|
|
15221
15007
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
|
|
15222
15008
|
gutter: 8,
|
|
15223
15009
|
wrap: true
|
|
@@ -15235,12 +15021,12 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
15235
15021
|
},
|
|
15236
15022
|
disabled: disabled,
|
|
15237
15023
|
allowClear: false,
|
|
15238
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$
|
|
15024
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type26 = typeMap$1[type]) === null || _typeMap$type26 === void 0 ? void 0 : _typeMap$type26.systemOrderNo)],
|
|
15239
15025
|
onChange: function onChange(val) {
|
|
15240
15026
|
return changeSystemOrderHandle(val);
|
|
15241
15027
|
},
|
|
15242
15028
|
placeholder: "\u9009\u62E9\u8865\u53D1\u7CFB\u7EDF\u5355"
|
|
15243
|
-
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s5 = value[(_typeMap$
|
|
15029
|
+
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s5 = value[(_typeMap$type27 = typeMap$1[type]) === null || _typeMap$type27 === void 0 ? void 0 : _typeMap$type27.systemOrder]) === null || _value$typeMap$type$s5 === void 0 ? void 0 : _value$typeMap$type$s5.showOrderInfo) || []).map(function (item) {
|
|
15244
15030
|
return /*#__PURE__*/React.createElement(Select.Option, {
|
|
15245
15031
|
key: item.billNo,
|
|
15246
15032
|
value: item.billNo,
|
|
@@ -15261,7 +15047,7 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
15261
15047
|
disabled: disabled,
|
|
15262
15048
|
allowClear: false,
|
|
15263
15049
|
options: reasonList,
|
|
15264
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$
|
|
15050
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type28 = typeMap$1[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.typeName)],
|
|
15265
15051
|
onChange: function onChange(val) {
|
|
15266
15052
|
return changeTypeHandle(val);
|
|
15267
15053
|
}
|
|
@@ -15273,7 +15059,7 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
15273
15059
|
canUpdateNumber: showChangeBtn,
|
|
15274
15060
|
showChangeBtn: showChangeBtn,
|
|
15275
15061
|
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
15276
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$
|
|
15062
|
+
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.key)],
|
|
15277
15063
|
onChange: function onChange(val) {
|
|
15278
15064
|
return changeGoodHandle(val);
|
|
15279
15065
|
},
|
|
@@ -15967,7 +15753,6 @@ var CommonSystemOrder$1 = function CommonSystemOrder(props) {
|
|
|
15967
15753
|
|
|
15968
15754
|
var _excluded$j = ["value", "onChange", "disabled", "failValue", "type"];
|
|
15969
15755
|
var msgTypeCh = {
|
|
15970
|
-
pdd: '拼多多',
|
|
15971
15756
|
ding: '钉钉',
|
|
15972
15757
|
wechat: '微信',
|
|
15973
15758
|
qq: 'QQ',
|
|
@@ -16016,7 +15801,7 @@ var MsgStatus = function MsgStatus(props) {
|
|
|
16016
15801
|
onClick: function onClick() {
|
|
16017
15802
|
return setChangeIndex(index);
|
|
16018
15803
|
}
|
|
16019
|
-
}, msgTypeCh[key]
|
|
15804
|
+
}, msgTypeCh[key], item.ruleName);
|
|
16020
15805
|
}))) : null, type === 1 ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Select, _objectSpread2(_objectSpread2({}, other), {}, {
|
|
16021
15806
|
showSearch: true,
|
|
16022
15807
|
value: (_value$changeIndex = value[changeIndex]) === null || _value$changeIndex === void 0 ? void 0 : _value$changeIndex.status,
|
|
@@ -16054,230 +15839,4 @@ var CalculationInput = function CalculationInput(props) {
|
|
|
16054
15839
|
}, config === null || config === void 0 ? void 0 : config.unit));
|
|
16055
15840
|
};
|
|
16056
15841
|
|
|
16057
|
-
|
|
16058
|
-
var typeMap$2 = {
|
|
16059
|
-
BS_E3_REISSUE_GOODS: {
|
|
16060
|
-
key: 'bsE3ReissueGoods',
|
|
16061
|
-
typeName: 'bsE3ReissueType',
|
|
16062
|
-
systemOrder: 'bsE3SystemOrder',
|
|
16063
|
-
systemOrderNo: 'bsE3SystemOrderNo',
|
|
16064
|
-
getOrderList: bsE3Utils.getBsE3OrderListSingleton
|
|
16065
|
-
}
|
|
16066
|
-
};
|
|
16067
|
-
var bsE3Reissue = function bsE3Reissue(props) {
|
|
16068
|
-
var _typeMap$type7, _typeMap$type23, _typeMap$type25, _typeMap$type26, _value$typeMap$type$s5, _typeMap$type27, _typeMap$type28, _typeMap$type29;
|
|
16069
|
-
var value = props.value,
|
|
16070
|
-
onChange = props.onChange,
|
|
16071
|
-
_props$reasonList = props.reasonList,
|
|
16072
|
-
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
16073
|
-
disabled = props.disabled,
|
|
16074
|
-
type = props.type,
|
|
16075
|
-
other = _objectWithoutProperties(props, _excluded$k);
|
|
16076
|
-
var getOrderFlag = useRef(false);
|
|
16077
|
-
var _useState = useState(false),
|
|
16078
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
16079
|
-
isStrict = _useState2[0],
|
|
16080
|
-
setIsStrict = _useState2[1];
|
|
16081
|
-
console.debug('bsE3Reissue', value);
|
|
16082
|
-
useEffect(function () {
|
|
16083
|
-
var _value$typeMap$type$s, _value$typeMap$type$s2, _typeMap$type, _value$typeMap$type$s3, _typeMap$type2;
|
|
16084
|
-
if (!getOrderFlag.current && !(value === null || value === void 0 ? void 0 : (_value$typeMap$type$s = value[(_typeMap$type = typeMap$2[type]) === null || _typeMap$type === void 0 ? void 0 : _typeMap$type.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$type2 = typeMap$2[type]) === null || _typeMap$type2 === void 0 ? void 0 : _typeMap$type2.systemOrder]) === null || _value$typeMap$type$s3 === void 0 ? void 0 : _value$typeMap$type$s3.orderNo)) {
|
|
16085
|
-
var _value$typeMap$type$s4, _typeMap$type3;
|
|
16086
|
-
getOrderFlag.current = true;
|
|
16087
|
-
getOrderList(value === null || value === void 0 ? void 0 : (_value$typeMap$type$s4 = value[(_typeMap$type3 = typeMap$2[type]) === null || _typeMap$type3 === void 0 ? void 0 : _typeMap$type3.systemOrder]) === null || _value$typeMap$type$s4 === void 0 ? void 0 : _value$typeMap$type$s4.orderNo);
|
|
16088
|
-
}
|
|
16089
|
-
return;
|
|
16090
|
-
}, [value]);
|
|
16091
|
-
useEffect(function () {
|
|
16092
|
-
var _typeMap$type4;
|
|
16093
|
-
var systemOrderNo = value === null || value === void 0 ? void 0 : value[(_typeMap$type4 = typeMap$2[type]) === null || _typeMap$type4 === void 0 ? void 0 : _typeMap$type4.systemOrderNo];
|
|
16094
|
-
if (systemOrderNo) {
|
|
16095
|
-
var _value$typeMap$type$t, _typeMap$type5;
|
|
16096
|
-
if (['1'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t = value[(_typeMap$type5 = typeMap$2[type]) === null || _typeMap$type5 === void 0 ? void 0 : _typeMap$type5.typeName]) === null || _value$typeMap$type$t === void 0 ? void 0 : _value$typeMap$type$t[0])) {
|
|
16097
|
-
var _typeMap$type6;
|
|
16098
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, (_typeMap$type6 = typeMap$2[type]) === null || _typeMap$type6 === void 0 ? void 0 : _typeMap$type6.key, getGoodDetails({
|
|
16099
|
-
mode: isStrict
|
|
16100
|
-
}))));
|
|
16101
|
-
}
|
|
16102
|
-
}
|
|
16103
|
-
return;
|
|
16104
|
-
}, [value === null || value === void 0 ? void 0 : value[(_typeMap$type7 = typeMap$2[type]) === null || _typeMap$type7 === void 0 ? void 0 : _typeMap$type7.systemOrderNo]]);
|
|
16105
|
-
var getOrderList = /*#__PURE__*/function () {
|
|
16106
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(orderNo) {
|
|
16107
|
-
var _typeMap$type8;
|
|
16108
|
-
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
16109
|
-
while (1) switch (_context.prev = _context.next) {
|
|
16110
|
-
case 0:
|
|
16111
|
-
(_typeMap$type8 = typeMap$2[type]) === null || _typeMap$type8 === void 0 ? void 0 : _typeMap$type8.getOrderList(orderNo).then(function (data) {
|
|
16112
|
-
var _typeMap$type9, _typeMap$type10;
|
|
16113
|
-
var orders = (data === null || data === void 0 ? void 0 : data.trades) || [];
|
|
16114
|
-
var showOrderInfo = orders.map(function (_ref2) {
|
|
16115
|
-
var billNo = _ref2.billNo,
|
|
16116
|
-
billType = _ref2.billType,
|
|
16117
|
-
billTag = _ref2.billTag;
|
|
16118
|
-
return {
|
|
16119
|
-
billNo: billNo,
|
|
16120
|
-
billType: billType,
|
|
16121
|
-
billTag: billTag
|
|
16122
|
-
};
|
|
16123
|
-
});
|
|
16124
|
-
onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, (_typeMap$type9 = typeMap$2[type]) === null || _typeMap$type9 === void 0 ? void 0 : _typeMap$type9.systemOrder, _objectSpread2(_objectSpread2({}, value[(_typeMap$type10 = typeMap$2[type]) === null || _typeMap$type10 === void 0 ? void 0 : _typeMap$type10.systemOrder]), {}, {
|
|
16125
|
-
showOrderInfo: showOrderInfo,
|
|
16126
|
-
orders: orders
|
|
16127
|
-
}))));
|
|
16128
|
-
});
|
|
16129
|
-
case 1:
|
|
16130
|
-
case "end":
|
|
16131
|
-
return _context.stop();
|
|
16132
|
-
}
|
|
16133
|
-
}, _callee);
|
|
16134
|
-
}));
|
|
16135
|
-
return function getOrderList(_x) {
|
|
16136
|
-
return _ref.apply(this, arguments);
|
|
16137
|
-
};
|
|
16138
|
-
}();
|
|
16139
|
-
var changeTypeHandle = function changeTypeHandle(val) {
|
|
16140
|
-
var _typeMap$type11;
|
|
16141
|
-
var typeName = val === null || val === void 0 ? void 0 : val[0];
|
|
16142
|
-
// if (typeName === value?.[typeMap[type]?.typeName]?.[0]) return
|
|
16143
|
-
// const systemOrderNo = value?.[typeMap[type]?.systemOrderNo];
|
|
16144
|
-
var newValue = _objectSpread2({}, value);
|
|
16145
|
-
newValue[(_typeMap$type11 = typeMap$2[type]) === null || _typeMap$type11 === void 0 ? void 0 : _typeMap$type11.typeName] = val;
|
|
16146
|
-
if (typeName === '1') {
|
|
16147
|
-
var _typeMap$type12;
|
|
16148
|
-
newValue[(_typeMap$type12 = typeMap$2[type]) === null || _typeMap$type12 === void 0 ? void 0 : _typeMap$type12.key] = getGoodDetails({
|
|
16149
|
-
mode: isStrict
|
|
16150
|
-
});
|
|
16151
|
-
} else if (typeName === '2') {
|
|
16152
|
-
var _typeMap$type13;
|
|
16153
|
-
// 切换到非原单,清空列表
|
|
16154
|
-
newValue[(_typeMap$type13 = typeMap$2[type]) === null || _typeMap$type13 === void 0 ? void 0 : _typeMap$type13.key] = [];
|
|
16155
|
-
}
|
|
16156
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
16157
|
-
};
|
|
16158
|
-
var handleModeChange = function handleModeChange(mode) {
|
|
16159
|
-
var _value$typeMap$type$t2, _typeMap$type14, _typeMap$type15;
|
|
16160
|
-
var isOriginalOrder = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$type14 = typeMap$2[type]) === null || _typeMap$type14 === void 0 ? void 0 : _typeMap$type14.typeName]) === null || _value$typeMap$type$t2 === void 0 ? void 0 : _value$typeMap$type$t2[0]) === '1';
|
|
16161
|
-
setIsStrict(mode);
|
|
16162
|
-
if (!isOriginalOrder) return;
|
|
16163
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, (_typeMap$type15 = typeMap$2[type]) === null || _typeMap$type15 === void 0 ? void 0 : _typeMap$type15.key, getGoodDetails({
|
|
16164
|
-
mode: mode
|
|
16165
|
-
}))));
|
|
16166
|
-
};
|
|
16167
|
-
var getGoodDetails = function getGoodDetails(_ref3) {
|
|
16168
|
-
var _typeMap$type16, _typeMap$type17, _order$orderDetailGet;
|
|
16169
|
-
var mode = _ref3.mode;
|
|
16170
|
-
var systemOrder = value === null || value === void 0 ? void 0 : value[(_typeMap$type16 = typeMap$2[type]) === null || _typeMap$type16 === void 0 ? void 0 : _typeMap$type16.systemOrder];
|
|
16171
|
-
var systemOrderNo = value === null || value === void 0 ? void 0 : value[(_typeMap$type17 = typeMap$2[type]) === null || _typeMap$type17 === void 0 ? void 0 : _typeMap$type17.systemOrderNo];
|
|
16172
|
-
var order = systemOrderNo && ((systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orders) || []).find(function (order) {
|
|
16173
|
-
return order.orderSn === systemOrderNo;
|
|
16174
|
-
});
|
|
16175
|
-
var goodDetails = (order === null || order === void 0 ? void 0 : (_order$orderDetailGet = order.orderDetailGets) === null || _order$orderDetailGet === void 0 ? void 0 : _order$orderDetailGet.length) ? updateBsE3GoodsHandle([order]) : [];
|
|
16176
|
-
var orderNo = systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orderNo;
|
|
16177
|
-
return mode ? goodDetails.filter(function (goodItem) {
|
|
16178
|
-
return !orderNo || goodItem.originalOrderSn === orderNo;
|
|
16179
|
-
}) : goodDetails;
|
|
16180
|
-
};
|
|
16181
|
-
var changeGoodHandle = function changeGoodHandle(val) {
|
|
16182
|
-
var _typeMap$type18;
|
|
16183
|
-
var newValue = _objectSpread2({}, value);
|
|
16184
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type18 = typeMap$2[type]) === null || _typeMap$type18 === void 0 ? void 0 : _typeMap$type18.key)] = val || [];
|
|
16185
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
16186
|
-
};
|
|
16187
|
-
var changeSystemOrderHandle = function changeSystemOrderHandle(val) {
|
|
16188
|
-
var _typeMap$type19, _value$typeMap$type$t3, _typeMap$type20;
|
|
16189
|
-
var newValue = _objectSpread2({}, value);
|
|
16190
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type19 = typeMap$2[type]) === null || _typeMap$type19 === void 0 ? void 0 : _typeMap$type19.systemOrderNo)] = val;
|
|
16191
|
-
if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$type20 = typeMap$2[type]) === null || _typeMap$type20 === void 0 ? void 0 : _typeMap$type20.typeName]) === null || _value$typeMap$type$t3 === void 0 ? void 0 : _value$typeMap$type$t3[0])) {
|
|
16192
|
-
var _typeMap$type21;
|
|
16193
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type21 = typeMap$2[type]) === null || _typeMap$type21 === void 0 ? void 0 : _typeMap$type21.key)] = [];
|
|
16194
|
-
}
|
|
16195
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
16196
|
-
};
|
|
16197
|
-
//显示选择商品按钮 原单换不显示选择商品
|
|
16198
|
-
var showChangeBtn = useMemo(function () {
|
|
16199
|
-
var _typeMap$type22;
|
|
16200
|
-
return !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type22 = typeMap$2[type]) === null || _typeMap$type22 === void 0 ? void 0 : _typeMap$type22.systemOrderNo]);
|
|
16201
|
-
}, [value === null || value === void 0 ? void 0 : value[(_typeMap$type23 = typeMap$2[type]) === null || _typeMap$type23 === void 0 ? void 0 : _typeMap$type23.systemOrderNo]]);
|
|
16202
|
-
var selectedGoodsChange = useCallback(function (skuList) {
|
|
16203
|
-
var _typeMap$type24, _getGoodDetails;
|
|
16204
|
-
var newValue = _objectSpread2({}, value);
|
|
16205
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type24 = typeMap$2[type]) === null || _typeMap$type24 === void 0 ? void 0 : _typeMap$type24.key)] = (_getGoodDetails = getGoodDetails({
|
|
16206
|
-
mode: isStrict
|
|
16207
|
-
})) === null || _getGoodDetails === void 0 ? void 0 : _getGoodDetails.filter(function (item) {
|
|
16208
|
-
return skuList.includes(item.sku);
|
|
16209
|
-
});
|
|
16210
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
16211
|
-
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type25 = typeMap$2[type]) === null || _typeMap$type25 === void 0 ? void 0 : _typeMap$type25.key)], isStrict]);
|
|
16212
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
|
|
16213
|
-
gutter: 8,
|
|
16214
|
-
wrap: true
|
|
16215
|
-
}, /*#__PURE__*/React.createElement(Col, {
|
|
16216
|
-
className: "gutter-row",
|
|
16217
|
-
xs: {
|
|
16218
|
-
span: 11
|
|
16219
|
-
},
|
|
16220
|
-
sm: {
|
|
16221
|
-
span: 6
|
|
16222
|
-
}
|
|
16223
|
-
}, /*#__PURE__*/React.createElement(Select, {
|
|
16224
|
-
style: {
|
|
16225
|
-
marginBottom: '8px'
|
|
16226
|
-
},
|
|
16227
|
-
disabled: disabled,
|
|
16228
|
-
allowClear: false,
|
|
16229
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type26 = typeMap$2[type]) === null || _typeMap$type26 === void 0 ? void 0 : _typeMap$type26.systemOrderNo)],
|
|
16230
|
-
onChange: function onChange(val) {
|
|
16231
|
-
return changeSystemOrderHandle(val);
|
|
16232
|
-
},
|
|
16233
|
-
placeholder: "\u9009\u62E9\u8865\u53D1\u7CFB\u7EDF\u5355"
|
|
16234
|
-
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s5 = value[(_typeMap$type27 = typeMap$2[type]) === null || _typeMap$type27 === void 0 ? void 0 : _typeMap$type27.systemOrder]) === null || _value$typeMap$type$s5 === void 0 ? void 0 : _value$typeMap$type$s5.showOrderInfo) || []).map(function (item) {
|
|
16235
|
-
return /*#__PURE__*/React.createElement(Select.Option, {
|
|
16236
|
-
key: item.billNo,
|
|
16237
|
-
value: item.billNo,
|
|
16238
|
-
label: item.billNo
|
|
16239
|
-
}, item.billNo);
|
|
16240
|
-
}))), /*#__PURE__*/React.createElement(Col, {
|
|
16241
|
-
className: "gutter-row",
|
|
16242
|
-
xs: {
|
|
16243
|
-
span: 11
|
|
16244
|
-
},
|
|
16245
|
-
sm: {
|
|
16246
|
-
span: 6
|
|
16247
|
-
}
|
|
16248
|
-
}, /*#__PURE__*/React.createElement(Cascader, {
|
|
16249
|
-
style: {
|
|
16250
|
-
marginBottom: '8px'
|
|
16251
|
-
},
|
|
16252
|
-
disabled: disabled,
|
|
16253
|
-
allowClear: false,
|
|
16254
|
-
options: reasonList,
|
|
16255
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type28 = typeMap$2[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.typeName)],
|
|
16256
|
-
onChange: function onChange(val) {
|
|
16257
|
-
return changeTypeHandle(val);
|
|
16258
|
-
}
|
|
16259
|
-
}))), /*#__PURE__*/React.createElement(GoodItem$1, _objectSpread2(_objectSpread2({
|
|
16260
|
-
key: 'reissueGoods'
|
|
16261
|
-
}, other), {}, {
|
|
16262
|
-
type: type,
|
|
16263
|
-
disabled: disabled,
|
|
16264
|
-
canUpdateNumber: showChangeBtn,
|
|
16265
|
-
showChangeBtn: showChangeBtn,
|
|
16266
|
-
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
16267
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type29 = typeMap$2[type]) === null || _typeMap$type29 === void 0 ? void 0 : _typeMap$type29.key)],
|
|
16268
|
-
onChange: function onChange(val) {
|
|
16269
|
-
return changeGoodHandle(val);
|
|
16270
|
-
},
|
|
16271
|
-
onModeChange: handleModeChange,
|
|
16272
|
-
showModeBtn: false,
|
|
16273
|
-
isStrict: isStrict,
|
|
16274
|
-
tradeGoods: {
|
|
16275
|
-
originDataSource: getGoodDetails({
|
|
16276
|
-
mode: isStrict
|
|
16277
|
-
}),
|
|
16278
|
-
selectedGoodsChange: selectedGoodsChange
|
|
16279
|
-
}
|
|
16280
|
-
})));
|
|
16281
|
-
};
|
|
16282
|
-
|
|
16283
|
-
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, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, LogisticsInterception, LogisticsMoreInterception, LogisticsMoreTrajectory, LogisticsTrajectory, MsgStatus, ParseLogistics, Payment, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, ShopNameSelect as ShopName, Status, SubForm, Supplier, TBGoodId, TBGoodSerial, TradeId, WdtGoodList, wdtReissue as WdtReissue, WlnGoods };
|
|
15842
|
+
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, 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, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, LogisticsInterception, LogisticsMoreInterception, LogisticsMoreTrajectory, LogisticsTrajectory, MsgStatus, ParseLogistics, Payment, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, ShopNameSelect as ShopName, Status, SubForm, Supplier, TBGoodId, TBGoodSerial, TradeId, WdtGoodList, wdtReissue as WdtReissue, WlnGoods };
|