@kmkf-fe-packages/services-components 2.10.13 → 2.10.15
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/esm/Hooks/useColumnsConfig.d.ts +1 -1
- package/dist/esm/Hooks/useColumnsConfig.js +1 -1
- package/dist/esm/commonComponents/GlobalContext/hook/dist/useGetHasErpData.js +49 -0
- package/dist/esm/commonComponents/GlobalContext/hook/useGetHasErpData.d.ts +1 -1
- package/dist/esm/commonComponents/GlobalContext/hook/useGetHasErpData.js +16 -2
- package/dist/esm/commonComponents/GlobalContext/orderQuery/constants.js +6 -2
- package/dist/esm/commonComponents/GlobalContext/orderQuery/dist/useGetErpAddressData.js +180 -0
- package/dist/esm/commonComponents/GlobalContext/orderQuery/dist/useGetErpLogisticsCompany.js +186 -0
- package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpLogisticsCompany.js +13 -12
- package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpSendData.js +14 -10
- package/dist/esm/components/BS/BsGoods/dist/index.js +110 -0
- package/dist/esm/components/BS/BsLogistics/index.js +9 -0
- package/dist/esm/components/BS/BsSystemOrder/index.js +5 -3
- package/dist/esm/components/BS/common/expressCode.js +3 -0
- package/dist/esm/components/BS/common/expressCompany.js +3 -0
- package/dist/esm/components/Common/constants/columnsBaseInfoMap.js +4 -2
- package/dist/esm/components/Common/dist/index.js +1017 -0
- package/dist/esm/components/Common/index.js +5 -3
- package/dist/esm/components/CommonHeaderGood/index.js +69 -35
- package/dist/esm/components/CommonMultiStatus/index.d.ts +4 -1
- package/dist/esm/components/CommonMultiStatus/index.js +34 -6
- package/dist/esm/components/DXD/DxdShopSelect/index.d.ts +40 -0
- package/dist/esm/components/DXD/DxdShopSelect/index.js +120 -0
- package/dist/esm/components/JST/JstSendGood/index.js +9 -1
- package/dist/esm/components/PostIng/index.d.ts +1 -1
- package/dist/esm/components/Public/Goods/index.js +10 -1
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +13 -2
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/service/api.d.ts +1 -0
- package/dist/esm/service/api.js +6 -0
- package/package.json +4 -4
|
@@ -21,7 +21,7 @@ import { CopyToClipboard } from "react-copy-to-clipboard";
|
|
|
21
21
|
import styles from "./index.module.less";
|
|
22
22
|
import defaultImg from "./img/default-img.png";
|
|
23
23
|
import CopyText from "../../commonComponents/CopyText";
|
|
24
|
-
import { KM_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, BS_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, JST_SYSTEM_ORDER_CONFIG, JY_SYSTEM_ORDER_CONFIG, JKY_SYSTEM_ORDER_CONFIG, WDT_RETURN_BILL_NO_CONFIG, PLATFORM_AFTER_SALES_ORDER_CONFIG, msgTypeCh, getMapping, columnsGoodsList } from "@kmkf-fe-packages/kmkf-utils";
|
|
24
|
+
import { KM_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, BS_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, JST_SYSTEM_ORDER_CONFIG, JY_SYSTEM_ORDER_CONFIG, JKY_SYSTEM_ORDER_CONFIG, WDT_RETURN_BILL_NO_CONFIG, PLATFORM_AFTER_SALES_ORDER_CONFIG, DXD_SYSTEM_ORDER_CONFIG, msgTypeCh, getMapping, columnsGoodsList } from "@kmkf-fe-packages/kmkf-utils";
|
|
25
25
|
import { getColumnsMap } from "./constants/columnsBaseInfoMap";
|
|
26
26
|
import { VideoCameraTwoTone } from "@ant-design/icons";
|
|
27
27
|
import { ApaasImage } from "@kmkf-fe-packages/basic-components";
|
|
@@ -787,7 +787,8 @@ export var BsSystemOrderTable = function BsSystemOrderTable(_ref14) {
|
|
|
787
787
|
JY_SYSTEM_ORDER: JY_SYSTEM_ORDER_CONFIG.columns,
|
|
788
788
|
JKY_SYSTEM_ORDER: JKY_SYSTEM_ORDER_CONFIG.columns,
|
|
789
789
|
WDT_RETURN_BILL_NO: WDT_RETURN_BILL_NO_CONFIG.columns,
|
|
790
|
-
PLATFORM_AFTER_SALES_ORDER: PLATFORM_AFTER_SALES_ORDER_CONFIG.columns
|
|
790
|
+
PLATFORM_AFTER_SALES_ORDER: PLATFORM_AFTER_SALES_ORDER_CONFIG.columns,
|
|
791
|
+
DXD_SYSTEM_ORDER: DXD_SYSTEM_ORDER_CONFIG.columns
|
|
791
792
|
};
|
|
792
793
|
var rowKeyMap = {
|
|
793
794
|
BS_SYSTEM_ORDER: "billNo",
|
|
@@ -800,7 +801,8 @@ export var BsSystemOrderTable = function BsSystemOrderTable(_ref14) {
|
|
|
800
801
|
JY_SYSTEM_ORDER: "tradeNo",
|
|
801
802
|
JKY_SYSTEM_ORDER: "tradeNo",
|
|
802
803
|
WDT_RETURN_BILL_NO: "refundNo",
|
|
803
|
-
PLATFORM_AFTER_SALES_ORDER: "afterSaleOrderId"
|
|
804
|
+
PLATFORM_AFTER_SALES_ORDER: "afterSaleOrderId",
|
|
805
|
+
DXD_SYSTEM_ORDER: "orderNo"
|
|
804
806
|
};
|
|
805
807
|
var rowSelection = {
|
|
806
808
|
type: isRadio ? "radio" : "checkbox",
|
|
@@ -19,7 +19,11 @@ import { isNull, BS_E3_BOOLEAN_STATUS_MAP } from "@kmkf-fe-packages/kmkf-utils";
|
|
|
19
19
|
import { BsHeaderPic, BsHeaderChild } from "../BS/common";
|
|
20
20
|
import ReissueGift from "../BsE3/ReissueGift";
|
|
21
21
|
import { erpColumnsMap } from "@kmkf-fe-packages/basic-components";
|
|
22
|
-
import { getJstColumns, getKmColumns } from "@kmkf-fe-packages/basic-components";
|
|
22
|
+
import { getJstColumns, getKmColumns, getDxdColumns } from "@kmkf-fe-packages/basic-components";
|
|
23
|
+
var isNullNotFalse = function isNullNotFalse(val) {
|
|
24
|
+
if (val === false) return false;
|
|
25
|
+
return isNull(val);
|
|
26
|
+
};
|
|
23
27
|
var orderGoodsHeaderComponentMap = {
|
|
24
28
|
pic: BsHeaderPic
|
|
25
29
|
};
|
|
@@ -1188,19 +1192,19 @@ var GoodHeaderMap = {
|
|
|
1188
1192
|
saleBasePrice: {
|
|
1189
1193
|
name: "原价",
|
|
1190
1194
|
transformValue: function transformValue(price) {
|
|
1191
|
-
return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/,
|
|
1195
|
+
return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, "") : "";
|
|
1192
1196
|
},
|
|
1193
1197
|
renderExport: function renderExport(price) {
|
|
1194
|
-
return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/,
|
|
1198
|
+
return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, "") : "";
|
|
1195
1199
|
}
|
|
1196
1200
|
},
|
|
1197
1201
|
salePrice: {
|
|
1198
1202
|
name: "单价",
|
|
1199
1203
|
transformValue: function transformValue(price) {
|
|
1200
|
-
return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/,
|
|
1204
|
+
return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, "") : "";
|
|
1201
1205
|
},
|
|
1202
1206
|
renderExport: function renderExport(price) {
|
|
1203
|
-
return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/,
|
|
1207
|
+
return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, "") : "";
|
|
1204
1208
|
}
|
|
1205
1209
|
},
|
|
1206
1210
|
qty: "数量",
|
|
@@ -1209,12 +1213,12 @@ var GoodHeaderMap = {
|
|
|
1209
1213
|
transformValue: function transformValue(val, record, parentName) {
|
|
1210
1214
|
if (!record) return "--";
|
|
1211
1215
|
var amount = (record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0);
|
|
1212
|
-
return Number(amount).toFixed(4).replace(/\.?0+$/,
|
|
1216
|
+
return Number(amount).toFixed(4).replace(/\.?0+$/, "");
|
|
1213
1217
|
},
|
|
1214
1218
|
renderExport: function renderExport(val, record, parentName) {
|
|
1215
1219
|
if (!record) return "--";
|
|
1216
1220
|
var amount = (record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0);
|
|
1217
|
-
return Number(amount).toFixed(4).replace(/\.?0+$/,
|
|
1221
|
+
return Number(amount).toFixed(4).replace(/\.?0+$/, "");
|
|
1218
1222
|
}
|
|
1219
1223
|
},
|
|
1220
1224
|
batchId: "批次号",
|
|
@@ -1260,19 +1264,19 @@ var GoodHeaderMap = {
|
|
|
1260
1264
|
saleBasePrice: {
|
|
1261
1265
|
name: "原价",
|
|
1262
1266
|
transformValue: function transformValue(price) {
|
|
1263
|
-
return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/,
|
|
1267
|
+
return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, "") : "";
|
|
1264
1268
|
},
|
|
1265
1269
|
renderExport: function renderExport(price) {
|
|
1266
|
-
return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/,
|
|
1270
|
+
return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, "") : "";
|
|
1267
1271
|
}
|
|
1268
1272
|
},
|
|
1269
1273
|
salePrice: {
|
|
1270
1274
|
name: "单价",
|
|
1271
1275
|
transformValue: function transformValue(price) {
|
|
1272
|
-
return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/,
|
|
1276
|
+
return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, "") : "";
|
|
1273
1277
|
},
|
|
1274
1278
|
renderExport: function renderExport(price) {
|
|
1275
|
-
return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/,
|
|
1279
|
+
return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, "") : "";
|
|
1276
1280
|
}
|
|
1277
1281
|
},
|
|
1278
1282
|
qty: "数量",
|
|
@@ -1302,19 +1306,19 @@ var GoodHeaderMap = {
|
|
|
1302
1306
|
saleBasePrice: {
|
|
1303
1307
|
name: "原价",
|
|
1304
1308
|
transformValue: function transformValue(price) {
|
|
1305
|
-
return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/,
|
|
1309
|
+
return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, "") : "";
|
|
1306
1310
|
},
|
|
1307
1311
|
renderExport: function renderExport(price) {
|
|
1308
|
-
return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/,
|
|
1312
|
+
return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, "") : "";
|
|
1309
1313
|
}
|
|
1310
1314
|
},
|
|
1311
1315
|
salePrice: {
|
|
1312
1316
|
name: "单价",
|
|
1313
1317
|
transformValue: function transformValue(price) {
|
|
1314
|
-
return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/,
|
|
1318
|
+
return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, "") : "";
|
|
1315
1319
|
},
|
|
1316
1320
|
renderExport: function renderExport(price) {
|
|
1317
|
-
return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/,
|
|
1321
|
+
return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, "") : "";
|
|
1318
1322
|
}
|
|
1319
1323
|
},
|
|
1320
1324
|
qty: "数量",
|
|
@@ -1323,12 +1327,12 @@ var GoodHeaderMap = {
|
|
|
1323
1327
|
transformValue: function transformValue(val, record, parentName) {
|
|
1324
1328
|
if (!record) return "--";
|
|
1325
1329
|
var amount = (record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0);
|
|
1326
|
-
return Number(amount).toFixed(4).replace(/\.?0+$/,
|
|
1330
|
+
return Number(amount).toFixed(4).replace(/\.?0+$/, "");
|
|
1327
1331
|
},
|
|
1328
1332
|
renderExport: function renderExport(val, record, parentName) {
|
|
1329
1333
|
if (!record) return "--";
|
|
1330
1334
|
var amount = (record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0);
|
|
1331
|
-
return Number(amount).toFixed(4).replace(/\.?0+$/,
|
|
1335
|
+
return Number(amount).toFixed(4).replace(/\.?0+$/, "");
|
|
1332
1336
|
}
|
|
1333
1337
|
},
|
|
1334
1338
|
batchId: "批次号",
|
|
@@ -1359,19 +1363,19 @@ var GoodHeaderMap = {
|
|
|
1359
1363
|
saleBasePrice: {
|
|
1360
1364
|
name: "原价",
|
|
1361
1365
|
transformValue: function transformValue(price) {
|
|
1362
|
-
return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/,
|
|
1366
|
+
return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, "") : "";
|
|
1363
1367
|
},
|
|
1364
1368
|
renderExport: function renderExport(price) {
|
|
1365
|
-
return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/,
|
|
1369
|
+
return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, "") : "";
|
|
1366
1370
|
}
|
|
1367
1371
|
},
|
|
1368
1372
|
salePrice: {
|
|
1369
1373
|
name: "单价",
|
|
1370
1374
|
transformValue: function transformValue(price) {
|
|
1371
|
-
return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/,
|
|
1375
|
+
return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, "") : "";
|
|
1372
1376
|
},
|
|
1373
1377
|
renderExport: function renderExport(price) {
|
|
1374
|
-
return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/,
|
|
1378
|
+
return price || price === 0 ? Number(price).toFixed(4).replace(/\.?0+$/, "") : "";
|
|
1375
1379
|
}
|
|
1376
1380
|
},
|
|
1377
1381
|
qty: "数量",
|
|
@@ -1380,12 +1384,12 @@ var GoodHeaderMap = {
|
|
|
1380
1384
|
transformValue: function transformValue(val, record, parentName) {
|
|
1381
1385
|
if (!record) return "--";
|
|
1382
1386
|
var amount = (record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0);
|
|
1383
|
-
return Number(amount).toFixed(4).replace(/\.?0+$/,
|
|
1387
|
+
return Number(amount).toFixed(4).replace(/\.?0+$/, "");
|
|
1384
1388
|
},
|
|
1385
1389
|
renderExport: function renderExport(val, record, parentName) {
|
|
1386
1390
|
if (!record) return "--";
|
|
1387
1391
|
var amount = (record["".concat(parentName, "_qty")] || 0) * (+record["".concat(parentName, "_salePrice")] || 0);
|
|
1388
|
-
return Number(amount).toFixed(4).replace(/\.?0+$/,
|
|
1392
|
+
return Number(amount).toFixed(4).replace(/\.?0+$/, "");
|
|
1389
1393
|
}
|
|
1390
1394
|
},
|
|
1391
1395
|
isGift: {
|
|
@@ -1473,11 +1477,11 @@ var GoodHeaderMap = {
|
|
|
1473
1477
|
name: "赠品类型",
|
|
1474
1478
|
width: 100,
|
|
1475
1479
|
transformValue: function transformValue(val) {
|
|
1476
|
-
if (
|
|
1480
|
+
if (isNullNotFalse(val)) return "--";
|
|
1477
1481
|
return val ? "赠品" : "非赠品";
|
|
1478
1482
|
},
|
|
1479
1483
|
renderExport: function renderExport(val) {
|
|
1480
|
-
if (
|
|
1484
|
+
if (isNullNotFalse(val)) return "--";
|
|
1481
1485
|
return val ? "赠品" : "非赠品";
|
|
1482
1486
|
}
|
|
1483
1487
|
},
|
|
@@ -1485,11 +1489,11 @@ var GoodHeaderMap = {
|
|
|
1485
1489
|
width: 200,
|
|
1486
1490
|
name: "是否组合商品",
|
|
1487
1491
|
transformValue: function transformValue(val) {
|
|
1488
|
-
if (
|
|
1492
|
+
if (isNullNotFalse(val)) return "--";
|
|
1489
1493
|
return val ? "是" : "否";
|
|
1490
1494
|
},
|
|
1491
1495
|
renderExport: function renderExport(val) {
|
|
1492
|
-
if (
|
|
1496
|
+
if (isNullNotFalse(val)) return "--";
|
|
1493
1497
|
return val ? "是" : "否";
|
|
1494
1498
|
}
|
|
1495
1499
|
},
|
|
@@ -1497,11 +1501,11 @@ var GoodHeaderMap = {
|
|
|
1497
1501
|
width: 100,
|
|
1498
1502
|
name: "是否退款",
|
|
1499
1503
|
transformValue: function transformValue(val) {
|
|
1500
|
-
if (
|
|
1504
|
+
if (isNullNotFalse(val)) return "--";
|
|
1501
1505
|
return val ? "是" : "否";
|
|
1502
1506
|
},
|
|
1503
1507
|
renderExport: function renderExport(val) {
|
|
1504
|
-
if (
|
|
1508
|
+
if (isNullNotFalse(val)) return "--";
|
|
1505
1509
|
return val ? "是" : "否";
|
|
1506
1510
|
}
|
|
1507
1511
|
},
|
|
@@ -1587,11 +1591,11 @@ var GoodHeaderMap = {
|
|
|
1587
1591
|
name: "赠品类型",
|
|
1588
1592
|
width: 100,
|
|
1589
1593
|
transformValue: function transformValue(val) {
|
|
1590
|
-
if (
|
|
1594
|
+
if (isNullNotFalse(val)) return "--";
|
|
1591
1595
|
return val ? "赠品" : "非赠品";
|
|
1592
1596
|
},
|
|
1593
1597
|
renderExport: function renderExport(val) {
|
|
1594
|
-
if (
|
|
1598
|
+
if (isNullNotFalse(val)) return "--";
|
|
1595
1599
|
return val ? "赠品" : "非赠品";
|
|
1596
1600
|
}
|
|
1597
1601
|
},
|
|
@@ -1599,11 +1603,11 @@ var GoodHeaderMap = {
|
|
|
1599
1603
|
width: 200,
|
|
1600
1604
|
name: "是否组合商品",
|
|
1601
1605
|
transformValue: function transformValue(val) {
|
|
1602
|
-
if (
|
|
1606
|
+
if (isNullNotFalse(val)) return "--";
|
|
1603
1607
|
return val ? "是" : "否";
|
|
1604
1608
|
},
|
|
1605
1609
|
renderExport: function renderExport(val) {
|
|
1606
|
-
if (
|
|
1610
|
+
if (isNullNotFalse(val)) return "--";
|
|
1607
1611
|
return val ? "是" : "否";
|
|
1608
1612
|
}
|
|
1609
1613
|
},
|
|
@@ -1611,11 +1615,11 @@ var GoodHeaderMap = {
|
|
|
1611
1615
|
width: 100,
|
|
1612
1616
|
name: "是否退款",
|
|
1613
1617
|
transformValue: function transformValue(val) {
|
|
1614
|
-
if (
|
|
1618
|
+
if (isNullNotFalse(val)) return "--";
|
|
1615
1619
|
return val ? "是" : "否";
|
|
1616
1620
|
},
|
|
1617
1621
|
renderExport: function renderExport(val) {
|
|
1618
|
-
if (
|
|
1622
|
+
if (isNullNotFalse(val)) return "--";
|
|
1619
1623
|
return val ? "是" : "否";
|
|
1620
1624
|
}
|
|
1621
1625
|
},
|
|
@@ -2564,6 +2568,36 @@ var GoodHeaderMap = {
|
|
|
2564
2568
|
},
|
|
2565
2569
|
moneyKey: "sellTotal"
|
|
2566
2570
|
},
|
|
2571
|
+
DXD_GOODS: {
|
|
2572
|
+
headerMap: getDxdColumns()["DXD_GOODS"].reduce(function (acc, item) {
|
|
2573
|
+
acc[item.dataIndex] = _objectSpread(_objectSpread({}, item.headerMapping || {}), {}, {
|
|
2574
|
+
component: orderGoodsHeaderComponentMap[item.headerComponentType] || BsHeaderChild,
|
|
2575
|
+
name: item.title,
|
|
2576
|
+
key: item.dataIndex,
|
|
2577
|
+
width: item.width || 150
|
|
2578
|
+
});
|
|
2579
|
+
return acc;
|
|
2580
|
+
}, {}),
|
|
2581
|
+
itemKey: getDxdColumns()["DXD_GOODS"].reduce(function (acc, item) {
|
|
2582
|
+
acc[item.dataIndex] = item.title;
|
|
2583
|
+
return acc;
|
|
2584
|
+
}, {})
|
|
2585
|
+
},
|
|
2586
|
+
DXD_SUPPLIERS: {
|
|
2587
|
+
headerMap: getDxdColumns()["DXD_SUPPLIERS"].reduce(function (acc, item) {
|
|
2588
|
+
acc[item.dataIndex] = _objectSpread(_objectSpread({}, item.headerMapping || {}), {}, {
|
|
2589
|
+
component: orderGoodsHeaderComponentMap[item.headerComponentType] || BsHeaderChild,
|
|
2590
|
+
name: item.title,
|
|
2591
|
+
key: item.dataIndex,
|
|
2592
|
+
width: item.width || 150
|
|
2593
|
+
});
|
|
2594
|
+
return acc;
|
|
2595
|
+
}, {}),
|
|
2596
|
+
itemKey: getDxdColumns()["DXD_SUPPLIERS"].reduce(function (acc, item) {
|
|
2597
|
+
acc[item.dataIndex] = item.title;
|
|
2598
|
+
return acc;
|
|
2599
|
+
}, {})
|
|
2600
|
+
},
|
|
2567
2601
|
JKY_REISSUE_GOODS: {
|
|
2568
2602
|
headerMap: {
|
|
2569
2603
|
goodsNo: {
|
|
@@ -14,7 +14,10 @@ declare class CommonMultiStatus implements ComponentInterface {
|
|
|
14
14
|
children: ComponentInterface[];
|
|
15
15
|
dataType: ComponentInterface["dataType"];
|
|
16
16
|
isSingleValue: boolean;
|
|
17
|
-
|
|
17
|
+
ext?: {
|
|
18
|
+
[key: string]: any;
|
|
19
|
+
};
|
|
20
|
+
constructor(options: PickOption, ext?: {});
|
|
18
21
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
19
22
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
20
23
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
@@ -134,6 +134,29 @@ var typeMap = {
|
|
|
134
134
|
failValue: "失败",
|
|
135
135
|
dataType: "array_object"
|
|
136
136
|
},
|
|
137
|
+
DXD_WAREHOUSING_STATUS: {
|
|
138
|
+
options: [{
|
|
139
|
+
value: "1",
|
|
140
|
+
label: "已入库",
|
|
141
|
+
color: "#52c41a"
|
|
142
|
+
}, {
|
|
143
|
+
value: "2",
|
|
144
|
+
label: "未入库",
|
|
145
|
+
color: "#ff4d4f"
|
|
146
|
+
}, {
|
|
147
|
+
value: "3",
|
|
148
|
+
label: "查无此单",
|
|
149
|
+
color: "#e7780f"
|
|
150
|
+
}],
|
|
151
|
+
key: "dxdInStockStatusItemList",
|
|
152
|
+
code: "dxdInStockStatusList",
|
|
153
|
+
name: "商品入库状态",
|
|
154
|
+
type: 2,
|
|
155
|
+
valueKey: "status",
|
|
156
|
+
idKey: "systemOrderId",
|
|
157
|
+
failValue: "失败",
|
|
158
|
+
dataType: "array_object"
|
|
159
|
+
},
|
|
137
160
|
WLN_WAREHOUSING_STATUS: {
|
|
138
161
|
options: [{
|
|
139
162
|
value: "1",
|
|
@@ -250,7 +273,9 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
|
|
|
250
273
|
_typeMap$options$type3,
|
|
251
274
|
_typeMap$options$type4,
|
|
252
275
|
_this$componentConfig5,
|
|
253
|
-
_this$componentConfig6
|
|
276
|
+
_this$componentConfig6,
|
|
277
|
+
_this$ext4;
|
|
278
|
+
var ext = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
254
279
|
_classCallCheck(this, CommonMultiStatus);
|
|
255
280
|
_defineProperty(this, "name", void 0);
|
|
256
281
|
_defineProperty(this, "id", void 0);
|
|
@@ -265,6 +290,7 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
|
|
|
265
290
|
_defineProperty(this, "children", void 0);
|
|
266
291
|
_defineProperty(this, "dataType", void 0);
|
|
267
292
|
_defineProperty(this, "isSingleValue", void 0);
|
|
293
|
+
_defineProperty(this, "ext", void 0);
|
|
268
294
|
_defineProperty(this, "renderClient", function (record) {
|
|
269
295
|
var _typeMap$_this$type, _typeMap$_this$type2, _typeMap$_this$type3, _typeMap$_this$type4;
|
|
270
296
|
var isShow = Array.isArray(record === null || record === void 0 ? void 0 : record[_this.id]) ? some(record === null || record === void 0 ? void 0 : record[_this.id], function (item) {
|
|
@@ -343,13 +369,13 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
|
|
|
343
369
|
});
|
|
344
370
|
});
|
|
345
371
|
_defineProperty(this, "filterConfig", function (item) {
|
|
346
|
-
var _typeMap$_this$type21, _item$templateConfig;
|
|
372
|
+
var _this$ext, _typeMap$_this$type21, _this$ext2, _item$templateConfig, _this$ext3;
|
|
347
373
|
return {
|
|
348
|
-
searchDefaultConditions:
|
|
374
|
+
searchDefaultConditions: (_this$ext = _this.ext) !== null && _this$ext !== void 0 && _this$ext.isWarehousingStatus ? SYMBOL.in : SYMBOL.like,
|
|
349
375
|
type: item.type,
|
|
350
376
|
id: "".concat(item.id, "_").concat((_typeMap$_this$type21 = typeMap[_this.type]) === null || _typeMap$_this$type21 === void 0 ? void 0 : _typeMap$_this$type21.code),
|
|
351
377
|
name: "".concat(_this.name),
|
|
352
|
-
filterComponentType:
|
|
378
|
+
filterComponentType: (_this$ext2 = _this.ext) !== null && _this$ext2 !== void 0 && _this$ext2.isWarehousingStatus ? "MultipleSelect" : "SelectInput",
|
|
353
379
|
props: {
|
|
354
380
|
options: item === null || item === void 0 ? void 0 : (_item$templateConfig = item.templateConfig) === null || _item$templateConfig === void 0 ? void 0 : _item$templateConfig.reasonList,
|
|
355
381
|
fieldNames: {
|
|
@@ -364,7 +390,7 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
|
|
|
364
390
|
return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, (_typeMap$_this$type22 = typeMap[_this.type]) === null || _typeMap$_this$type22 === void 0 ? void 0 : _typeMap$_this$type22.code), value);
|
|
365
391
|
};
|
|
366
392
|
},
|
|
367
|
-
formatFilterValue:
|
|
393
|
+
formatFilterValue: (_this$ext3 = _this.ext) !== null && _this$ext3 !== void 0 && _this$ext3.isWarehousingStatus ? null : function (value) {
|
|
368
394
|
if (value.type === "in") {
|
|
369
395
|
return value.keywords;
|
|
370
396
|
} else {
|
|
@@ -384,6 +410,7 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
|
|
|
384
410
|
this.isCombinationComponent = false;
|
|
385
411
|
this.canSort = false;
|
|
386
412
|
this.children = [];
|
|
413
|
+
this.ext = ext;
|
|
387
414
|
this.dataType = (_typeMap$options$type3 = (_typeMap$options$type4 = typeMap[options.type]) === null || _typeMap$options$type4 === void 0 ? void 0 : _typeMap$options$type4.dataType) !== null && _typeMap$options$type3 !== void 0 ? _typeMap$options$type3 : "object";
|
|
388
415
|
this.rules = (_this$componentConfig5 = this.componentConfig) !== null && _this$componentConfig5 !== void 0 && _this$componentConfig5.required ? [{
|
|
389
416
|
required: true,
|
|
@@ -400,6 +427,7 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
|
|
|
400
427
|
}
|
|
401
428
|
}] : [];
|
|
402
429
|
this.align = "left";
|
|
403
|
-
this.
|
|
430
|
+
//优化写法,this.type !== "WAREHOUSING_STATUS"不修改原有逻辑
|
|
431
|
+
this.isSingleValue = ((_this$componentConfig6 = this.componentConfig) === null || _this$componentConfig6 === void 0 ? void 0 : _this$componentConfig6.belongType) === "wdt" || ((_this$ext4 = this.ext) === null || _this$ext4 === void 0 ? void 0 : _this$ext4.isWarehousingStatus) && this.type !== "WAREHOUSING_STATUS";
|
|
404
432
|
});
|
|
405
433
|
export default CommonMultiStatus;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../../type";
|
|
2
|
+
import React from "react";
|
|
3
|
+
declare class DxdShopSelect implements ComponentInterface {
|
|
4
|
+
name: string;
|
|
5
|
+
id: string;
|
|
6
|
+
sortField: string;
|
|
7
|
+
type: string;
|
|
8
|
+
rules: any[];
|
|
9
|
+
componentConfig: ComponentInterface["componentConfig"];
|
|
10
|
+
isCombinationComponent: boolean;
|
|
11
|
+
formField: string;
|
|
12
|
+
canSort: boolean;
|
|
13
|
+
children: ComponentInterface[];
|
|
14
|
+
shopDateInstance: InstanceType<any>;
|
|
15
|
+
dataType: ComponentInterface["dataType"];
|
|
16
|
+
options: ComponentInterface["options"];
|
|
17
|
+
optionsMap: {
|
|
18
|
+
[key: string]: string;
|
|
19
|
+
};
|
|
20
|
+
constructor(options: PickOption);
|
|
21
|
+
editRender: (p: any) => React.JSX.Element;
|
|
22
|
+
getLabel: (record: any) => string;
|
|
23
|
+
renderClient: (record: any) => React.JSX.Element | null;
|
|
24
|
+
renderPc: (value: unknown, record: Record) => string;
|
|
25
|
+
renderLog: (r: Record) => string | null;
|
|
26
|
+
getComponentValue: (r: Record) => string;
|
|
27
|
+
renderExport: (value: string, record: Record) => string;
|
|
28
|
+
filterConfig: (item: ColumnConfig) => {
|
|
29
|
+
searchDefaultConditions: "in";
|
|
30
|
+
type: string;
|
|
31
|
+
id: string;
|
|
32
|
+
name: string;
|
|
33
|
+
filterComponentType: "MultipleSelect";
|
|
34
|
+
props: {
|
|
35
|
+
options: any[] | undefined;
|
|
36
|
+
};
|
|
37
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export default DxdShopSelect;
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
5
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
6
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
7
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
8
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
9
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
10
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
11
|
+
import React from "react";
|
|
12
|
+
import GetFormItem from "../../GetFormItem";
|
|
13
|
+
import ItemView from "../../../commonComponents/ItemView";
|
|
14
|
+
import { isNull, filterFn as _filterFn, DxdShopDataCenter } from "@kmkf-fe-packages/kmkf-utils";
|
|
15
|
+
import { SYMBOL } from "../../../constant";
|
|
16
|
+
import { Select } from "antd";
|
|
17
|
+
var DxdShopSelect = /*#__PURE__*/_createClass(function DxdShopSelect(options) {
|
|
18
|
+
var _this = this,
|
|
19
|
+
_this$options;
|
|
20
|
+
_classCallCheck(this, DxdShopSelect);
|
|
21
|
+
_defineProperty(this, "name", void 0);
|
|
22
|
+
_defineProperty(this, "id", void 0);
|
|
23
|
+
_defineProperty(this, "sortField", void 0);
|
|
24
|
+
_defineProperty(this, "type", void 0);
|
|
25
|
+
_defineProperty(this, "rules", void 0);
|
|
26
|
+
_defineProperty(this, "componentConfig", void 0);
|
|
27
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
28
|
+
_defineProperty(this, "formField", void 0);
|
|
29
|
+
_defineProperty(this, "canSort", void 0);
|
|
30
|
+
_defineProperty(this, "children", void 0);
|
|
31
|
+
_defineProperty(this, "shopDateInstance", void 0);
|
|
32
|
+
_defineProperty(this, "dataType", void 0);
|
|
33
|
+
_defineProperty(this, "options", void 0);
|
|
34
|
+
_defineProperty(this, "optionsMap", void 0);
|
|
35
|
+
_defineProperty(this, "editRender", function (p) {
|
|
36
|
+
var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4;
|
|
37
|
+
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
38
|
+
title: _this.name,
|
|
39
|
+
name: _this.id,
|
|
40
|
+
rules: _this.rules,
|
|
41
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
42
|
+
display: p === null || p === void 0 ? void 0 : p.display,
|
|
43
|
+
required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
|
|
44
|
+
tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : "",
|
|
45
|
+
component: /*#__PURE__*/React.createElement(Select, _extends({}, _this.componentConfig, {
|
|
46
|
+
style: {
|
|
47
|
+
width: 200
|
|
48
|
+
},
|
|
49
|
+
placeholder: "\u8BF7\u9009\u62E9".concat(_this.name),
|
|
50
|
+
options: _this.options,
|
|
51
|
+
showSearch: true,
|
|
52
|
+
filterOption: function filterOption(input, option) {
|
|
53
|
+
return option.label.includes(input);
|
|
54
|
+
}
|
|
55
|
+
}))
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
_defineProperty(this, "getLabel", function (record) {
|
|
59
|
+
var _this$optionsMap;
|
|
60
|
+
return (_this$optionsMap = _this.optionsMap) === null || _this$optionsMap === void 0 ? void 0 : _this$optionsMap[record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_shopCode")]];
|
|
61
|
+
});
|
|
62
|
+
_defineProperty(this, "renderClient", function (record) {
|
|
63
|
+
return !isNull(_this.getLabel(record)) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
64
|
+
id: _this.id,
|
|
65
|
+
label: _this.name,
|
|
66
|
+
value: _this.getLabel(record)
|
|
67
|
+
}) : null;
|
|
68
|
+
});
|
|
69
|
+
_defineProperty(this, "renderPc", function (value, record) {
|
|
70
|
+
return _this.getLabel(record) ? _this.getLabel(record) : "--";
|
|
71
|
+
});
|
|
72
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
73
|
+
if (isNull(_this.getLabel(r))) return null;
|
|
74
|
+
return _this.renderPc(undefined, r);
|
|
75
|
+
});
|
|
76
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
77
|
+
return _this.getLabel(r);
|
|
78
|
+
});
|
|
79
|
+
_defineProperty(this, "renderExport", function (value, record) {
|
|
80
|
+
var _this$getLabel;
|
|
81
|
+
return (_this$getLabel = _this.getLabel(record)) !== null && _this$getLabel !== void 0 ? _this$getLabel : "--";
|
|
82
|
+
});
|
|
83
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
84
|
+
return {
|
|
85
|
+
searchDefaultConditions: SYMBOL.in,
|
|
86
|
+
type: item.type,
|
|
87
|
+
id: "".concat(item.id, "_shopCode"),
|
|
88
|
+
name: item.name,
|
|
89
|
+
filterComponentType: "MultipleSelect",
|
|
90
|
+
props: {
|
|
91
|
+
options: _this.options
|
|
92
|
+
},
|
|
93
|
+
filterFn: function filterFn(value) {
|
|
94
|
+
return function (i) {
|
|
95
|
+
return value === null || value === void 0 ? void 0 : value.includes(_filterFn.filterTableListItemColumnValue(i, item.id, "shopCode"));
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
});
|
|
100
|
+
this.name = options.name;
|
|
101
|
+
this.id = options.id;
|
|
102
|
+
this.sortField = "".concat(options.id, "_shopCode");
|
|
103
|
+
this.formField = "".concat(options.id, "_shopCode");
|
|
104
|
+
this.type = options.type;
|
|
105
|
+
this.rules = [];
|
|
106
|
+
this.isCombinationComponent = false;
|
|
107
|
+
this.canSort = false;
|
|
108
|
+
this.children = [];
|
|
109
|
+
this.shopDateInstance = DxdShopDataCenter.getInstance();
|
|
110
|
+
this.options = this.shopDateInstance.getShopData();
|
|
111
|
+
this.optionsMap = (_this$options = this.options) === null || _this$options === void 0 ? void 0 : _this$options.reduce(function (acc, cur) {
|
|
112
|
+
acc[cur.value] = cur.label;
|
|
113
|
+
return acc;
|
|
114
|
+
}, {});
|
|
115
|
+
this.componentConfig = _objectSpread(_objectSpread({}, options.componentConfig), {}, {
|
|
116
|
+
options: this.options
|
|
117
|
+
});
|
|
118
|
+
this.dataType = "string";
|
|
119
|
+
});
|
|
120
|
+
export default DxdShopSelect;
|
|
@@ -91,6 +91,14 @@ var typeMap = {
|
|
|
91
91
|
sendName: "jkySendName",
|
|
92
92
|
platformType: "jky",
|
|
93
93
|
dataType: "weakenArray"
|
|
94
|
+
},
|
|
95
|
+
DXD_SEND_GOOD: {
|
|
96
|
+
key: "dxdSendGood",
|
|
97
|
+
name: "dxd",
|
|
98
|
+
sendId: "dxdSendId",
|
|
99
|
+
sendName: "dxdSendName",
|
|
100
|
+
platformType: "dxd",
|
|
101
|
+
dataType: "weakenArray"
|
|
94
102
|
}
|
|
95
103
|
};
|
|
96
104
|
var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
|
|
@@ -229,7 +237,7 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
|
|
|
229
237
|
});
|
|
230
238
|
};
|
|
231
239
|
}
|
|
232
|
-
} : ["WDT_SEND_GOOD", "BS_E3_SEND_GOOD", "KM_SEND_GOOD", "GY_SEND_GOOD", "JY_SEND_GOOD", "JKY_SEND_GOOD"].includes(_this.type) ? {
|
|
240
|
+
} : ["WDT_SEND_GOOD", "BS_E3_SEND_GOOD", "KM_SEND_GOOD", "GY_SEND_GOOD", "JY_SEND_GOOD", "JKY_SEND_GOOD", "DXD_SEND_GOOD"].includes(_this.type) ? {
|
|
233
241
|
searchDefaultConditions: SYMBOL.in,
|
|
234
242
|
type: item.type,
|
|
235
243
|
id: "".concat(item.id, "_").concat((_typeMap$_this$type9 = typeMap[_this.type]) === null || _typeMap$_this$type9 === void 0 ? void 0 : _typeMap$_this$type9.sendName),
|
|
@@ -31,7 +31,7 @@ declare class BasicPosting implements ComponentInterface {
|
|
|
31
31
|
sortColumns: SortColumnsField;
|
|
32
32
|
headerProvince: boolean;
|
|
33
33
|
constructor(options: PickOption);
|
|
34
|
-
getChildren: () => (
|
|
34
|
+
getChildren: () => (Province | City | District | Detail | ReceiverName | ReceiverMobile | undefined)[];
|
|
35
35
|
getSortColumns: (sortColumns: string | undefined) => SortColumnsField;
|
|
36
36
|
renderPc: (value: any, record: Record) => React.JSX.Element | null;
|
|
37
37
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
@@ -35,6 +35,14 @@ var CONFIG_MAP = {
|
|
|
35
35
|
name: "吉客云",
|
|
36
36
|
key: "jkyGoods"
|
|
37
37
|
},
|
|
38
|
+
DXD_GOODS: {
|
|
39
|
+
name: "大希地",
|
|
40
|
+
key: "dxdGoods"
|
|
41
|
+
},
|
|
42
|
+
DXD_SUPPLIERS: {
|
|
43
|
+
name: "大希地供应商",
|
|
44
|
+
key: "dxdSuppliers"
|
|
45
|
+
},
|
|
38
46
|
WDT_AFTERSALE_GOODS: {
|
|
39
47
|
name: "旺店通售后",
|
|
40
48
|
key: "wdtAftersaleGoods"
|
|
@@ -78,7 +86,8 @@ var PublicGoods = /*#__PURE__*/_createClass(function PublicGoods(options) {
|
|
|
78
86
|
return {
|
|
79
87
|
name: item.title,
|
|
80
88
|
key: "".concat(_this.id, "_").concat(item.dataIndex),
|
|
81
|
-
dataType: "arrayObject"
|
|
89
|
+
dataType: "arrayObject",
|
|
90
|
+
conditionOptionsSetting: item.conditionOptionsSetting
|
|
82
91
|
};
|
|
83
92
|
});
|
|
84
93
|
});
|
package/dist/esm/factory.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ReissueLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicPicturePro, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, SubForm, CommonDataTime, TradeId, ShopName, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, PrevSubmitter, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsMoreInterception, LogisticsTrajectory, LogisticsMoreTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, GyReissue, AfterSalesOrderId, BsE3Goods, PublicGoods, PublicReissueGoods, PublicExchange, GyGoods, BsE3Reissue, MemberLevel, GyReturn, AsyncSelect, WdtShopSelect, KmVideo, BasicTypeInput, SkxIdInputSelect, SkxGoods, BasicSelectOption, OrderSubForm, FlowOverallStatusSelect, ReturnWarehouse, KmExchange } from "./index";
|
|
1
|
+
import { ReissueLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicPicturePro, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, SubForm, CommonDataTime, TradeId, ShopName, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, PrevSubmitter, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsMoreInterception, LogisticsTrajectory, LogisticsMoreTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, GyReissue, AfterSalesOrderId, BsE3Goods, PublicGoods, PublicReissueGoods, PublicExchange, GyGoods, BsE3Reissue, MemberLevel, GyReturn, AsyncSelect, WdtShopSelect, DxdShopSelect, KmVideo, BasicTypeInput, SkxIdInputSelect, SkxGoods, BasicSelectOption, OrderSubForm, FlowOverallStatusSelect, ReturnWarehouse, KmExchange } from "./index";
|
|
2
2
|
import { PickOption } from "./type";
|
|
3
|
-
export declare const factory: (type: string, options: PickOption) =>
|
|
3
|
+
export declare const factory: (type: string, options: PickOption) => BsExchange | BsGoods | BsLogistics | BsReissue | BsReturn | BsSystemOrder | BsE3Goods | BsE3Reissue | CommonMultiStatus | DxdShopSelect | BasicInput | BasicTypeInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicSelectOption | BasicRadio | BasicTextArea | BasicPicture | BasicPicturePro | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | SubForm | CommonDataTime | TradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | ReissueLogistics | JstItemSelect | JstSendGood | JstSupply | PublicGoods | PublicReissueGoods | PublicExchange | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | Calculation | CommonSystemOrder | NodeDeadLine | HandlerDeadLine | NodeStayDuration | BsPosting | NodeInput | FlowWorkOrderStatus | MsgStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | WdtShopSelect | KmVideo | CommonInput | PaymentVoucherCode | Label | MemberLevel | AfterSalesOrderId | GyReissue | GyReturn | AsyncSelect | SkxIdInputSelect | SkxGoods | OrderSubForm | FlowOverallStatusSelect | ReturnWarehouse | KmExchange | GyGoods;
|