iv-npm 1.2.52 → 1.2.55

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iv-npm",
3
- "version": "1.2.52",
3
+ "version": "1.2.55",
4
4
  "description": "公共通用包",
5
5
  "author": "Mr.Cong",
6
6
  "license": "ISC",
@@ -48,6 +48,9 @@ declare function buildURL(url: string, params: any): string;
48
48
 
49
49
  declare function apiConfiger(config: any): any;
50
50
 
51
+ declare type HostKey = "BASE_URL" | "MRP_URL" | "MRP2_URL";
52
+ declare function hostConfiger(key: HostKey): string;
53
+
51
54
  declare type formatType = {
52
55
  date: string;
53
56
  time: string;
@@ -61,4 +64,4 @@ declare function dateFormat(data: Date | string, format: string): string;
61
64
  declare function yearMonthFormat(data?: Date): string | formatType;
62
65
  declare function yearMonthDayFormat(data?: Date): string | formatType;
63
66
 
64
- export { apiConfiger, arrToTree, assign, buildURL as buildUrl, dateFormat, filterOptionHeadle, findTree, formatType, isDate, isObject, isPlainObject, isURLSearchParams, tranListToTreeData, yearMonthDayFormat, yearMonthFormat };
67
+ export { apiConfiger, arrToTree, assign, buildURL as buildUrl, dateFormat, filterOptionHeadle, findTree, formatType, hostConfiger, isDate, isObject, isPlainObject, isURLSearchParams, tranListToTreeData, yearMonthDayFormat, yearMonthFormat };
@@ -134,6 +134,29 @@ function apiConfiger(config) {
134
134
  return config;
135
135
  }
136
136
 
137
+ // utils/format/hostConfiger.ts
138
+ function hostConfiger(key) {
139
+ const hostname2 = window.location.hostname.split(".");
140
+ const protocol2 = window.location.protocol;
141
+ const devHost = {
142
+ BASE_URL: "https://basis.nacho.cn",
143
+ MRP_URL: "https://mrp.nacho.cn",
144
+ MRP2_URL: "https://mrp2.nacho.cn"
145
+ };
146
+ if (process.env.NODE_ENV == "development")
147
+ return devHost[key];
148
+ switch (key) {
149
+ case "BASE_URL":
150
+ return `${protocol2}//basis.${hostname2[1]}.${hostname2[2]}`;
151
+ case "MRP_URL":
152
+ return `${protocol2}//mrp.${hostname2[1]}.${hostname2[2]}`;
153
+ case "MRP2_URL":
154
+ return `${protocol2}//mrp2.${hostname2[1]}.${hostname2[2]}`;
155
+ default:
156
+ throw new Error("no matching arguments\uFF01");
157
+ }
158
+ }
159
+
137
160
  // utils/format/dateFormat.ts
138
161
  function dateFormat(data, format) {
139
162
  const weekList = [
@@ -200,6 +223,7 @@ export {
200
223
  dateFormat,
201
224
  filterOptionHeadle,
202
225
  findTree,
226
+ hostConfiger,
203
227
  isDate,
204
228
  isObject,
205
229
  isPlainObject,
@@ -1,31 +1,31 @@
1
- {
2
- "name": "@IVNPM/shared",
3
- "version": "1.0.0",
4
- "private": false,
5
- "description": "IVNPM/shared",
6
- "scripts": {
7
- "prepare": "npm run build",
8
- "dev": "tsup --watch",
9
- "build": "tsup"
10
- },
11
- "main": "dist/utils/index.mjs",
12
- "module": "dist/utils/index.mjs",
13
- "types": "dist/utils/index.d.ts",
14
- "files": [
15
- "index.js",
16
- "dist"
17
- ],
18
- "author": "Mr.Cong",
19
- "license": "ISC",
20
- "devDependencies": {
21
- "@types/node": "^18.6.4",
22
- "rollup-plugin-copy": "^3.4.0",
23
- "tsup": "^6.2.1"
24
- },
25
- "peerDependencies": {
26
- "ant-design-vue": "^3.2.5"
27
- },
28
- "dependencies": {
29
- "nanoid": "^4.0.0"
30
- }
31
- }
1
+ {
2
+ "name": "@IVNPM/shared",
3
+ "version": "1.0.0",
4
+ "private": false,
5
+ "description": "IVNPM/shared",
6
+ "scripts": {
7
+ "prepare": "npm run build",
8
+ "dev": "tsup --watch",
9
+ "build": "tsup"
10
+ },
11
+ "main": "dist/utils/index.mjs",
12
+ "module": "dist/utils/index.mjs",
13
+ "types": "dist/utils/index.d.ts",
14
+ "files": [
15
+ "index.js",
16
+ "dist"
17
+ ],
18
+ "author": "Mr.Cong",
19
+ "license": "ISC",
20
+ "devDependencies": {
21
+ "@types/node": "^18.6.4",
22
+ "rollup-plugin-copy": "^3.4.0",
23
+ "tsup": "^6.2.1"
24
+ },
25
+ "peerDependencies": {
26
+ "ant-design-vue": "^3.2.5"
27
+ },
28
+ "dependencies": {
29
+ "nanoid": "^4.0.0"
30
+ }
31
+ }
@@ -14,14 +14,6 @@ declare const _default: import("vue").DefineComponent<{
14
14
  type: ObjectConstructor;
15
15
  required: false;
16
16
  };
17
- fieldNames: {
18
- type: null;
19
- required: false;
20
- default: () => {
21
- label: string;
22
- value: string;
23
- };
24
- };
25
17
  replaceFields: {
26
18
  type: null;
27
19
  required: false;
@@ -91,14 +83,6 @@ declare const _default: import("vue").DefineComponent<{
91
83
  type: ObjectConstructor;
92
84
  required: false;
93
85
  };
94
- fieldNames: {
95
- type: null;
96
- required: false;
97
- default: () => {
98
- label: string;
99
- value: string;
100
- };
101
- };
102
86
  replaceFields: {
103
87
  type: null;
104
88
  required: false;
@@ -157,7 +141,6 @@ declare const _default: import("vue").DefineComponent<{
157
141
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
158
142
  onChange?: ((...args: any[]) => any) | undefined;
159
143
  }, {
160
- fieldNames: any;
161
144
  replaceFields: any;
162
145
  inputStyle: Record<string, any>;
163
146
  isRequired: boolean;
@@ -1295,6 +1295,26 @@ function buildURL(url, params) {
1295
1295
  return url;
1296
1296
  }
1297
1297
  window.location.hostname.split(".");
1298
+ function hostConfiger(key) {
1299
+ var hostname2 = window.location.hostname.split(".");
1300
+ var protocol2 = window.location.protocol;
1301
+ var devHost = {
1302
+ BASE_URL: "https://basis.nacho.cn",
1303
+ MRP_URL: "https://mrp.nacho.cn",
1304
+ MRP2_URL: "https://mrp2.nacho.cn"
1305
+ };
1306
+ if (process.env.NODE_ENV == "development") return devHost[key];
1307
+ switch (key) {
1308
+ case "BASE_URL":
1309
+ return "".concat(protocol2, "//basis.").concat(hostname2[1], ".").concat(hostname2[2]);
1310
+ case "MRP_URL":
1311
+ return "".concat(protocol2, "//mrp.").concat(hostname2[1], ".").concat(hostname2[2]);
1312
+ case "MRP2_URL":
1313
+ return "".concat(protocol2, "//mrp2.").concat(hostname2[1], ".").concat(hostname2[2]);
1314
+ default:
1315
+ throw new Error("no matching arguments\uFF01");
1316
+ }
1317
+ }
1298
1318
  function dateFormat(data, format) {
1299
1319
  var weekList = ["\u661F\u671F\u65E5", "\u661F\u671F\u4E00", "\u661F\u671F\u4E8C", "\u661F\u671F\u4E09", "\u661F\u671F\u56DB", "\u661F\u671F\u4E94", "\u661F\u671F\u516D"];
1300
1320
  var now = data ? new Date(data) : new Date();
@@ -1322,9 +1342,6 @@ function dateFormat(data, format) {
1322
1342
  }
1323
1343
  }
1324
1344
 
1325
- var BASE_URL = "https://basis.nacho.cn";
1326
- var MRP_URL = "https://mrp.nacho.cn";
1327
- var MRP2_URL = "https://mrp2.nacho.cn";
1328
1345
  var DEFIND_OPTION = {
1329
1346
  headers: {
1330
1347
  "Content-Type": "application/json;charset=UTF-8",
@@ -1342,133 +1359,133 @@ var API_OPTION = {
1342
1359
  option: _objectSpread2({
1343
1360
  method: "GET"
1344
1361
  }, DEFIND_OPTION),
1345
- baseUrl: BASE_URL
1362
+ baseUrl: hostConfiger("BASE_URL")
1346
1363
  },
1347
1364
  getIVProdBaseDropdown: {
1348
1365
  url: "/api/basis-management/production-base/all",
1349
1366
  option: _objectSpread2({
1350
1367
  method: "GET"
1351
1368
  }, DEFIND_OPTION),
1352
- baseUrl: BASE_URL
1369
+ baseUrl: hostConfiger("BASE_URL")
1353
1370
  },
1354
1371
  getIVLineDropdown: {
1355
1372
  url: "/api/basis-management/line/all",
1356
1373
  option: _objectSpread2({
1357
1374
  method: "GET"
1358
1375
  }, DEFIND_OPTION),
1359
- baseUrl: BASE_URL
1376
+ baseUrl: hostConfiger("BASE_URL")
1360
1377
  },
1361
1378
  getIVSetofbookDropdown: {
1362
1379
  url: "/api/basis-management/setOfBook/all",
1363
1380
  option: _objectSpread2({
1364
1381
  method: "GET"
1365
1382
  }, DEFIND_OPTION),
1366
- baseUrl: BASE_URL
1383
+ baseUrl: hostConfiger("BASE_URL")
1367
1384
  },
1368
1385
  getIVPostDropdown: {
1369
1386
  url: "/api/identity/users/allPosition",
1370
1387
  option: _objectSpread2({
1371
1388
  method: "GET"
1372
1389
  }, DEFIND_OPTION),
1373
- baseUrl: BASE_URL
1390
+ baseUrl: hostConfiger("BASE_URL")
1374
1391
  },
1375
1392
  getIVUserSelector: {
1376
1393
  url: "/api/identity/users/userList",
1377
1394
  option: _objectSpread2({
1378
1395
  method: "GET"
1379
1396
  }, DEFIND_OPTION),
1380
- baseUrl: BASE_URL
1397
+ baseUrl: hostConfiger("BASE_URL")
1381
1398
  },
1382
1399
  getIVVendorSelector: {
1383
1400
  url: "/api/basis-management/vendor",
1384
1401
  option: _objectSpread2({
1385
1402
  method: "GET"
1386
1403
  }, DEFIND_OPTION),
1387
- baseUrl: BASE_URL
1404
+ baseUrl: hostConfiger("BASE_URL")
1388
1405
  },
1389
1406
  getIVVendorSelector_VendorType: {
1390
1407
  url: "/api/basis-management/vendor-type/all",
1391
1408
  option: _objectSpread2({
1392
1409
  method: "GET"
1393
1410
  }, DEFIND_OPTION),
1394
- baseUrl: BASE_URL
1411
+ baseUrl: hostConfiger("BASE_URL")
1395
1412
  },
1396
1413
  getIVManagDropdown: {
1397
1414
  url: "/api/basis-management/manager-unit/all",
1398
1415
  option: _objectSpread2({
1399
1416
  method: "GET"
1400
1417
  }, DEFIND_OPTION),
1401
- baseUrl: BASE_URL
1418
+ baseUrl: hostConfiger("BASE_URL")
1402
1419
  },
1403
1420
  getIVUnitDropdown: {
1404
1421
  url: "/api/basis-management/measurement-type/allIncludItem",
1405
1422
  option: _objectSpread2({
1406
1423
  method: "GET"
1407
1424
  }, DEFIND_OPTION),
1408
- baseUrl: BASE_URL
1425
+ baseUrl: hostConfiger("BASE_URL")
1409
1426
  },
1410
1427
  getIVMaterialSelector: {
1411
1428
  url: "/api/material-management/material-economic-batch",
1412
1429
  option: _objectSpread2({
1413
1430
  method: "GET"
1414
1431
  }, DEFIND_OPTION),
1415
- baseUrl: MRP_URL
1432
+ baseUrl: hostConfiger("MRP_URL")
1416
1433
  },
1417
1434
  getIVMaterialTypeDropdown: {
1418
1435
  url: "/api/material-management/material-category/tree",
1419
1436
  option: _objectSpread2({
1420
1437
  method: "GET"
1421
1438
  }, DEFIND_OPTION),
1422
- baseUrl: MRP_URL
1439
+ baseUrl: hostConfiger("MRP_URL")
1423
1440
  },
1424
1441
  getIVProjectSelector: {
1425
1442
  url: "/api/contract-management/allocates/produce-project",
1426
1443
  option: _objectSpread2({
1427
1444
  method: "GET"
1428
1445
  }, DEFIND_OPTION),
1429
- baseUrl: MRP2_URL
1446
+ baseUrl: hostConfiger("MRP2_URL")
1430
1447
  },
1431
1448
  getIVProjectSelectorAll: {
1432
1449
  url: "/api/contract-management/allocates/produce-project/all",
1433
1450
  option: _objectSpread2({
1434
1451
  method: "GET"
1435
1452
  }, DEFIND_OPTION),
1436
- baseUrl: MRP2_URL
1453
+ baseUrl: hostConfiger("MRP2_URL")
1437
1454
  },
1438
1455
  getIVContractSelector: {
1439
1456
  url: "/api/contract-management/contract/all-name",
1440
1457
  option: _objectSpread2({
1441
1458
  method: "GET"
1442
1459
  }, DEFIND_OPTION),
1443
- baseUrl: MRP2_URL
1460
+ baseUrl: hostConfiger("MRP2_URL")
1444
1461
  },
1445
1462
  uploadContract: {
1446
1463
  url: "/api/contract-management/upload/contract",
1447
1464
  option: _objectSpread2({
1448
1465
  method: "POST"
1449
1466
  }, DEFIND_OPTION),
1450
- baseUrl: MRP2_URL
1467
+ baseUrl: hostConfiger("MRP2_URL")
1451
1468
  },
1452
1469
  getIVClientSelector: {
1453
1470
  url: "/api/basis-management/client",
1454
1471
  option: _objectSpread2({
1455
1472
  method: "get"
1456
1473
  }, DEFIND_OPTION),
1457
- baseUrl: MRP2_URL
1474
+ baseUrl: hostConfiger("MRP2_URL")
1458
1475
  },
1459
1476
  getIVPaytypeSelector: {
1460
1477
  url: "/api/basis-management/paymentType/all",
1461
1478
  option: _objectSpread2({
1462
1479
  method: "get"
1463
1480
  }, DEFIND_OPTION),
1464
- baseUrl: MRP2_URL
1481
+ baseUrl: hostConfiger("MRP2_URL")
1465
1482
  },
1466
1483
  getPurchaseContract: {
1467
1484
  url: "/api/purchase-management/purchase-contract/all",
1468
1485
  option: _objectSpread2({
1469
1486
  method: "get"
1470
1487
  }, DEFIND_OPTION),
1471
- baseUrl: MRP_URL
1488
+ baseUrl: hostConfiger("MRP_URL")
1472
1489
  }
1473
1490
  };
1474
1491
  var formatHTTP = function formatHTTP(fetch) {
@@ -1511,16 +1528,6 @@ var script$l = /*#__PURE__*/vue.defineComponent({
1511
1528
  type: Object,
1512
1529
  required: false
1513
1530
  },
1514
- fieldNames: {
1515
- type: null,
1516
- required: false,
1517
- "default": function _default() {
1518
- return {
1519
- label: "name",
1520
- value: "id"
1521
- };
1522
- }
1523
- },
1524
1531
  replaceFields: {
1525
1532
  type: null,
1526
1533
  required: false,
@@ -1635,7 +1642,7 @@ var script$l = /*#__PURE__*/vue.defineComponent({
1635
1642
  }
1636
1643
  });
1637
1644
  var filterOption = vue.computed(function () {
1638
- return filterOptionHeadle(props.fieldNames.label);
1645
+ return filterOptionHeadle(props.replaceFields.label);
1639
1646
  });
1640
1647
  /**
1641
1648
  * 侦听器-------------------------------------
@@ -1705,11 +1712,10 @@ var script$l = /*#__PURE__*/vue.defineComponent({
1705
1712
  onChange: _cache[1] || (_cache[1] = function ($event) {
1706
1713
  return _ctx.$emit('change', $event);
1707
1714
  }),
1708
- fieldNames: __props.fieldNames,
1709
1715
  replaceFields: __props.replaceFields
1710
1716
  }), null, 16
1711
1717
  /* FULL_PROPS */
1712
- , ["value", "tree-data", "getPopupContainer", "placeholder", "allowClear", "multiple", "filterOption", "style", "fieldNames", "replaceFields"])];
1718
+ , ["value", "tree-data", "getPopupContainer", "placeholder", "allowClear", "multiple", "filterOption", "style", "replaceFields"])];
1713
1719
  }),
1714
1720
  _: 1
1715
1721
  /* STABLE */
@@ -1291,6 +1291,26 @@ function buildURL(url, params) {
1291
1291
  return url;
1292
1292
  }
1293
1293
  window.location.hostname.split(".");
1294
+ function hostConfiger(key) {
1295
+ var hostname2 = window.location.hostname.split(".");
1296
+ var protocol2 = window.location.protocol;
1297
+ var devHost = {
1298
+ BASE_URL: "https://basis.nacho.cn",
1299
+ MRP_URL: "https://mrp.nacho.cn",
1300
+ MRP2_URL: "https://mrp2.nacho.cn"
1301
+ };
1302
+ if (process.env.NODE_ENV == "development") return devHost[key];
1303
+ switch (key) {
1304
+ case "BASE_URL":
1305
+ return "".concat(protocol2, "//basis.").concat(hostname2[1], ".").concat(hostname2[2]);
1306
+ case "MRP_URL":
1307
+ return "".concat(protocol2, "//mrp.").concat(hostname2[1], ".").concat(hostname2[2]);
1308
+ case "MRP2_URL":
1309
+ return "".concat(protocol2, "//mrp2.").concat(hostname2[1], ".").concat(hostname2[2]);
1310
+ default:
1311
+ throw new Error("no matching arguments\uFF01");
1312
+ }
1313
+ }
1294
1314
  function dateFormat(data, format) {
1295
1315
  var weekList = ["\u661F\u671F\u65E5", "\u661F\u671F\u4E00", "\u661F\u671F\u4E8C", "\u661F\u671F\u4E09", "\u661F\u671F\u56DB", "\u661F\u671F\u4E94", "\u661F\u671F\u516D"];
1296
1316
  var now = data ? new Date(data) : new Date();
@@ -1318,9 +1338,6 @@ function dateFormat(data, format) {
1318
1338
  }
1319
1339
  }
1320
1340
 
1321
- var BASE_URL = "https://basis.nacho.cn";
1322
- var MRP_URL = "https://mrp.nacho.cn";
1323
- var MRP2_URL = "https://mrp2.nacho.cn";
1324
1341
  var DEFIND_OPTION = {
1325
1342
  headers: {
1326
1343
  "Content-Type": "application/json;charset=UTF-8",
@@ -1338,133 +1355,133 @@ var API_OPTION = {
1338
1355
  option: _objectSpread2({
1339
1356
  method: "GET"
1340
1357
  }, DEFIND_OPTION),
1341
- baseUrl: BASE_URL
1358
+ baseUrl: hostConfiger("BASE_URL")
1342
1359
  },
1343
1360
  getIVProdBaseDropdown: {
1344
1361
  url: "/api/basis-management/production-base/all",
1345
1362
  option: _objectSpread2({
1346
1363
  method: "GET"
1347
1364
  }, DEFIND_OPTION),
1348
- baseUrl: BASE_URL
1365
+ baseUrl: hostConfiger("BASE_URL")
1349
1366
  },
1350
1367
  getIVLineDropdown: {
1351
1368
  url: "/api/basis-management/line/all",
1352
1369
  option: _objectSpread2({
1353
1370
  method: "GET"
1354
1371
  }, DEFIND_OPTION),
1355
- baseUrl: BASE_URL
1372
+ baseUrl: hostConfiger("BASE_URL")
1356
1373
  },
1357
1374
  getIVSetofbookDropdown: {
1358
1375
  url: "/api/basis-management/setOfBook/all",
1359
1376
  option: _objectSpread2({
1360
1377
  method: "GET"
1361
1378
  }, DEFIND_OPTION),
1362
- baseUrl: BASE_URL
1379
+ baseUrl: hostConfiger("BASE_URL")
1363
1380
  },
1364
1381
  getIVPostDropdown: {
1365
1382
  url: "/api/identity/users/allPosition",
1366
1383
  option: _objectSpread2({
1367
1384
  method: "GET"
1368
1385
  }, DEFIND_OPTION),
1369
- baseUrl: BASE_URL
1386
+ baseUrl: hostConfiger("BASE_URL")
1370
1387
  },
1371
1388
  getIVUserSelector: {
1372
1389
  url: "/api/identity/users/userList",
1373
1390
  option: _objectSpread2({
1374
1391
  method: "GET"
1375
1392
  }, DEFIND_OPTION),
1376
- baseUrl: BASE_URL
1393
+ baseUrl: hostConfiger("BASE_URL")
1377
1394
  },
1378
1395
  getIVVendorSelector: {
1379
1396
  url: "/api/basis-management/vendor",
1380
1397
  option: _objectSpread2({
1381
1398
  method: "GET"
1382
1399
  }, DEFIND_OPTION),
1383
- baseUrl: BASE_URL
1400
+ baseUrl: hostConfiger("BASE_URL")
1384
1401
  },
1385
1402
  getIVVendorSelector_VendorType: {
1386
1403
  url: "/api/basis-management/vendor-type/all",
1387
1404
  option: _objectSpread2({
1388
1405
  method: "GET"
1389
1406
  }, DEFIND_OPTION),
1390
- baseUrl: BASE_URL
1407
+ baseUrl: hostConfiger("BASE_URL")
1391
1408
  },
1392
1409
  getIVManagDropdown: {
1393
1410
  url: "/api/basis-management/manager-unit/all",
1394
1411
  option: _objectSpread2({
1395
1412
  method: "GET"
1396
1413
  }, DEFIND_OPTION),
1397
- baseUrl: BASE_URL
1414
+ baseUrl: hostConfiger("BASE_URL")
1398
1415
  },
1399
1416
  getIVUnitDropdown: {
1400
1417
  url: "/api/basis-management/measurement-type/allIncludItem",
1401
1418
  option: _objectSpread2({
1402
1419
  method: "GET"
1403
1420
  }, DEFIND_OPTION),
1404
- baseUrl: BASE_URL
1421
+ baseUrl: hostConfiger("BASE_URL")
1405
1422
  },
1406
1423
  getIVMaterialSelector: {
1407
1424
  url: "/api/material-management/material-economic-batch",
1408
1425
  option: _objectSpread2({
1409
1426
  method: "GET"
1410
1427
  }, DEFIND_OPTION),
1411
- baseUrl: MRP_URL
1428
+ baseUrl: hostConfiger("MRP_URL")
1412
1429
  },
1413
1430
  getIVMaterialTypeDropdown: {
1414
1431
  url: "/api/material-management/material-category/tree",
1415
1432
  option: _objectSpread2({
1416
1433
  method: "GET"
1417
1434
  }, DEFIND_OPTION),
1418
- baseUrl: MRP_URL
1435
+ baseUrl: hostConfiger("MRP_URL")
1419
1436
  },
1420
1437
  getIVProjectSelector: {
1421
1438
  url: "/api/contract-management/allocates/produce-project",
1422
1439
  option: _objectSpread2({
1423
1440
  method: "GET"
1424
1441
  }, DEFIND_OPTION),
1425
- baseUrl: MRP2_URL
1442
+ baseUrl: hostConfiger("MRP2_URL")
1426
1443
  },
1427
1444
  getIVProjectSelectorAll: {
1428
1445
  url: "/api/contract-management/allocates/produce-project/all",
1429
1446
  option: _objectSpread2({
1430
1447
  method: "GET"
1431
1448
  }, DEFIND_OPTION),
1432
- baseUrl: MRP2_URL
1449
+ baseUrl: hostConfiger("MRP2_URL")
1433
1450
  },
1434
1451
  getIVContractSelector: {
1435
1452
  url: "/api/contract-management/contract/all-name",
1436
1453
  option: _objectSpread2({
1437
1454
  method: "GET"
1438
1455
  }, DEFIND_OPTION),
1439
- baseUrl: MRP2_URL
1456
+ baseUrl: hostConfiger("MRP2_URL")
1440
1457
  },
1441
1458
  uploadContract: {
1442
1459
  url: "/api/contract-management/upload/contract",
1443
1460
  option: _objectSpread2({
1444
1461
  method: "POST"
1445
1462
  }, DEFIND_OPTION),
1446
- baseUrl: MRP2_URL
1463
+ baseUrl: hostConfiger("MRP2_URL")
1447
1464
  },
1448
1465
  getIVClientSelector: {
1449
1466
  url: "/api/basis-management/client",
1450
1467
  option: _objectSpread2({
1451
1468
  method: "get"
1452
1469
  }, DEFIND_OPTION),
1453
- baseUrl: MRP2_URL
1470
+ baseUrl: hostConfiger("MRP2_URL")
1454
1471
  },
1455
1472
  getIVPaytypeSelector: {
1456
1473
  url: "/api/basis-management/paymentType/all",
1457
1474
  option: _objectSpread2({
1458
1475
  method: "get"
1459
1476
  }, DEFIND_OPTION),
1460
- baseUrl: MRP2_URL
1477
+ baseUrl: hostConfiger("MRP2_URL")
1461
1478
  },
1462
1479
  getPurchaseContract: {
1463
1480
  url: "/api/purchase-management/purchase-contract/all",
1464
1481
  option: _objectSpread2({
1465
1482
  method: "get"
1466
1483
  }, DEFIND_OPTION),
1467
- baseUrl: MRP_URL
1484
+ baseUrl: hostConfiger("MRP_URL")
1468
1485
  }
1469
1486
  };
1470
1487
  var formatHTTP = function formatHTTP(fetch) {
@@ -1507,16 +1524,6 @@ var script$l = /*#__PURE__*/defineComponent({
1507
1524
  type: Object,
1508
1525
  required: false
1509
1526
  },
1510
- fieldNames: {
1511
- type: null,
1512
- required: false,
1513
- "default": function _default() {
1514
- return {
1515
- label: "name",
1516
- value: "id"
1517
- };
1518
- }
1519
- },
1520
1527
  replaceFields: {
1521
1528
  type: null,
1522
1529
  required: false,
@@ -1631,7 +1638,7 @@ var script$l = /*#__PURE__*/defineComponent({
1631
1638
  }
1632
1639
  });
1633
1640
  var filterOption = computed(function () {
1634
- return filterOptionHeadle(props.fieldNames.label);
1641
+ return filterOptionHeadle(props.replaceFields.label);
1635
1642
  });
1636
1643
  /**
1637
1644
  * 侦听器-------------------------------------
@@ -1701,11 +1708,10 @@ var script$l = /*#__PURE__*/defineComponent({
1701
1708
  onChange: _cache[1] || (_cache[1] = function ($event) {
1702
1709
  return _ctx.$emit('change', $event);
1703
1710
  }),
1704
- fieldNames: __props.fieldNames,
1705
1711
  replaceFields: __props.replaceFields
1706
1712
  }), null, 16
1707
1713
  /* FULL_PROPS */
1708
- , ["value", "tree-data", "getPopupContainer", "placeholder", "allowClear", "multiple", "filterOption", "style", "fieldNames", "replaceFields"])];
1714
+ , ["value", "tree-data", "getPopupContainer", "placeholder", "allowClear", "multiple", "filterOption", "style", "replaceFields"])];
1709
1715
  }),
1710
1716
  _: 1
1711
1717
  /* STABLE */