iv-npm 1.2.33 → 1.2.36
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 +1 -1
- package/packages/ui/dist/business-ui/component/IVOrgDropdown.d.ts +17 -0
- package/packages/ui/dist/business-ui/component/IVSetofbookDropdown.d.ts +17 -0
- package/packages/ui/dist/index.cjs.js +85 -40
- package/packages/ui/dist/index.esm.js +85 -40
- package/packages/ui/dist/index.umd.js +85 -40
- package/packages/ui/dist/index.umd.js.map +1 -1
|
@@ -1507,6 +1507,16 @@ var script$l = /*#__PURE__*/defineComponent({
|
|
|
1507
1507
|
type: Object,
|
|
1508
1508
|
required: false
|
|
1509
1509
|
},
|
|
1510
|
+
fieldNames: {
|
|
1511
|
+
type: null,
|
|
1512
|
+
required: false,
|
|
1513
|
+
"default": function _default() {
|
|
1514
|
+
return {
|
|
1515
|
+
label: "name",
|
|
1516
|
+
value: "id"
|
|
1517
|
+
};
|
|
1518
|
+
}
|
|
1519
|
+
},
|
|
1510
1520
|
replaceFields: {
|
|
1511
1521
|
type: null,
|
|
1512
1522
|
required: false,
|
|
@@ -1620,6 +1630,9 @@ var script$l = /*#__PURE__*/defineComponent({
|
|
|
1620
1630
|
emit("update:value", value);
|
|
1621
1631
|
}
|
|
1622
1632
|
});
|
|
1633
|
+
var filterOption = computed(function () {
|
|
1634
|
+
return filterOptionHeadle(props.fieldNames.label);
|
|
1635
|
+
});
|
|
1623
1636
|
/**
|
|
1624
1637
|
* 侦听器-------------------------------------
|
|
1625
1638
|
* */
|
|
@@ -1682,16 +1695,17 @@ var script$l = /*#__PURE__*/defineComponent({
|
|
|
1682
1695
|
allowClear: !__props.isRequired,
|
|
1683
1696
|
showSearch: "",
|
|
1684
1697
|
multiple: __props.multiple,
|
|
1685
|
-
|
|
1698
|
+
filterOption: unref(filterOption),
|
|
1686
1699
|
treeDefaultExpandAll: "",
|
|
1687
1700
|
style: __props.inputStyle,
|
|
1688
1701
|
onChange: _cache[1] || (_cache[1] = function ($event) {
|
|
1689
1702
|
return _ctx.$emit('change', $event);
|
|
1690
1703
|
}),
|
|
1704
|
+
fieldNames: __props.fieldNames,
|
|
1691
1705
|
replaceFields: __props.replaceFields
|
|
1692
1706
|
}), null, 16
|
|
1693
1707
|
/* FULL_PROPS */
|
|
1694
|
-
, ["value", "tree-data", "getPopupContainer", "placeholder", "allowClear", "multiple", "
|
|
1708
|
+
, ["value", "tree-data", "getPopupContainer", "placeholder", "allowClear", "multiple", "filterOption", "style", "fieldNames", "replaceFields"])];
|
|
1695
1709
|
}),
|
|
1696
1710
|
_: 1
|
|
1697
1711
|
/* STABLE */
|
|
@@ -1847,6 +1861,9 @@ var script$k = /*#__PURE__*/defineComponent({
|
|
|
1847
1861
|
emit("update:value", value);
|
|
1848
1862
|
}
|
|
1849
1863
|
});
|
|
1864
|
+
var filterOption = computed(function () {
|
|
1865
|
+
return filterOptionHeadle(props.fieldNames.label);
|
|
1866
|
+
});
|
|
1850
1867
|
/**
|
|
1851
1868
|
* 侦听器-------------------------------------
|
|
1852
1869
|
* */
|
|
@@ -1912,10 +1929,10 @@ var script$k = /*#__PURE__*/defineComponent({
|
|
|
1912
1929
|
onChange: _cache[1] || (_cache[1] = function ($event) {
|
|
1913
1930
|
return _ctx.$emit('change', $event);
|
|
1914
1931
|
}),
|
|
1915
|
-
|
|
1932
|
+
filterOption: unref(filterOption)
|
|
1916
1933
|
}), null, 16
|
|
1917
1934
|
/* FULL_PROPS */
|
|
1918
|
-
, ["value", "getPopupContainer", "style", "placeholder", "options", "mode", "fieldNames", "allowClear", "
|
|
1935
|
+
, ["value", "getPopupContainer", "style", "placeholder", "options", "mode", "fieldNames", "allowClear", "filterOption"])];
|
|
1919
1936
|
}),
|
|
1920
1937
|
_: 1
|
|
1921
1938
|
/* STABLE */
|
|
@@ -2068,6 +2085,9 @@ var script$j = /*#__PURE__*/defineComponent({
|
|
|
2068
2085
|
emit("update:value", value);
|
|
2069
2086
|
}
|
|
2070
2087
|
});
|
|
2088
|
+
var filterOption = computed(function () {
|
|
2089
|
+
return filterOptionHeadle(props.fieldNames.label);
|
|
2090
|
+
});
|
|
2071
2091
|
/**
|
|
2072
2092
|
* 侦听器-------------------------------------
|
|
2073
2093
|
* */
|
|
@@ -2132,10 +2152,10 @@ var script$j = /*#__PURE__*/defineComponent({
|
|
|
2132
2152
|
onChange: _cache[1] || (_cache[1] = function ($event) {
|
|
2133
2153
|
return _ctx.$emit('change', $event);
|
|
2134
2154
|
}),
|
|
2135
|
-
|
|
2155
|
+
filterOption: unref(filterOption)
|
|
2136
2156
|
}), null, 16
|
|
2137
2157
|
/* FULL_PROPS */
|
|
2138
|
-
, ["getPopupContainer", "value", "style", "placeholder", "options", "mode", "fieldNames", "allowClear", "
|
|
2158
|
+
, ["getPopupContainer", "value", "style", "placeholder", "options", "mode", "fieldNames", "allowClear", "filterOption"])];
|
|
2139
2159
|
}),
|
|
2140
2160
|
_: 1
|
|
2141
2161
|
/* STABLE */
|
|
@@ -2175,6 +2195,16 @@ var script$i = /*#__PURE__*/defineComponent({
|
|
|
2175
2195
|
type: Object,
|
|
2176
2196
|
required: false
|
|
2177
2197
|
},
|
|
2198
|
+
fieldNames: {
|
|
2199
|
+
type: null,
|
|
2200
|
+
required: false,
|
|
2201
|
+
"default": function _default() {
|
|
2202
|
+
return {
|
|
2203
|
+
label: "name",
|
|
2204
|
+
value: "id"
|
|
2205
|
+
};
|
|
2206
|
+
}
|
|
2207
|
+
},
|
|
2178
2208
|
replaceFields: {
|
|
2179
2209
|
type: null,
|
|
2180
2210
|
required: false,
|
|
@@ -2298,6 +2328,9 @@ var script$i = /*#__PURE__*/defineComponent({
|
|
|
2298
2328
|
emit("update:value", value);
|
|
2299
2329
|
}
|
|
2300
2330
|
});
|
|
2331
|
+
var filterOption = computed(function () {
|
|
2332
|
+
return filterOptionHeadle(props.fieldNames.label);
|
|
2333
|
+
});
|
|
2301
2334
|
/**
|
|
2302
2335
|
* 侦听器-------------------------------------
|
|
2303
2336
|
* */
|
|
@@ -2360,7 +2393,8 @@ var script$i = /*#__PURE__*/defineComponent({
|
|
|
2360
2393
|
showArrow: "",
|
|
2361
2394
|
showSearch: "",
|
|
2362
2395
|
allowClear: !__props.isRequired,
|
|
2363
|
-
|
|
2396
|
+
filterOption: unref(filterOption),
|
|
2397
|
+
fieldNames: __props.fieldNames,
|
|
2364
2398
|
multiple: __props.multiple,
|
|
2365
2399
|
treeDefaultExpandAll: "",
|
|
2366
2400
|
style: __props.inputStyle,
|
|
@@ -2370,7 +2404,7 @@ var script$i = /*#__PURE__*/defineComponent({
|
|
|
2370
2404
|
replaceFields: __props.replaceFields
|
|
2371
2405
|
}), null, 16
|
|
2372
2406
|
/* FULL_PROPS */
|
|
2373
|
-
, ["value", "tree-data", "getPopupContainer", "placeholder", "allowClear", "
|
|
2407
|
+
, ["value", "tree-data", "getPopupContainer", "placeholder", "allowClear", "filterOption", "fieldNames", "multiple", "style", "replaceFields"]), createElementVNode("span", _hoisted_2$9, [renderSlot(_ctx.$slots, "notes")])];
|
|
2374
2408
|
}),
|
|
2375
2409
|
_: 3
|
|
2376
2410
|
/* FORWARDED */
|
|
@@ -2518,6 +2552,9 @@ var script$h = /*#__PURE__*/defineComponent({
|
|
|
2518
2552
|
emit("update:value", value);
|
|
2519
2553
|
}
|
|
2520
2554
|
});
|
|
2555
|
+
var filterOption = computed(function () {
|
|
2556
|
+
return filterOptionHeadle(props.fieldNames.label);
|
|
2557
|
+
});
|
|
2521
2558
|
/**
|
|
2522
2559
|
* 侦听器-------------------------------------
|
|
2523
2560
|
* */
|
|
@@ -2579,14 +2616,14 @@ var script$h = /*#__PURE__*/defineComponent({
|
|
|
2579
2616
|
mode: __props.multiple ? 'multiple' : '',
|
|
2580
2617
|
showArrow: "",
|
|
2581
2618
|
options: dataV.value,
|
|
2582
|
-
|
|
2619
|
+
filterOption: unref(filterOption),
|
|
2583
2620
|
onChange: _cache[1] || (_cache[1] = function ($event) {
|
|
2584
2621
|
return _ctx.$emit('change', $event);
|
|
2585
2622
|
}),
|
|
2586
2623
|
fieldNames: __props.fieldNames
|
|
2587
2624
|
}), null, 16
|
|
2588
2625
|
/* FULL_PROPS */
|
|
2589
|
-
, ["value", "getPopupContainer", "allowClear", "style", "placeholder", "mode", "options", "
|
|
2626
|
+
, ["value", "getPopupContainer", "allowClear", "style", "placeholder", "mode", "options", "filterOption", "fieldNames"])];
|
|
2590
2627
|
}),
|
|
2591
2628
|
_: 1
|
|
2592
2629
|
/* STABLE */
|
|
@@ -2725,6 +2762,9 @@ var script$g = /*#__PURE__*/defineComponent({
|
|
|
2725
2762
|
emit("update:value", value);
|
|
2726
2763
|
}
|
|
2727
2764
|
});
|
|
2765
|
+
var filterOption = computed(function () {
|
|
2766
|
+
return filterOptionHeadle(props.fieldNames.label);
|
|
2767
|
+
});
|
|
2728
2768
|
/**
|
|
2729
2769
|
* 侦听器-------------------------------------
|
|
2730
2770
|
* */
|
|
@@ -2789,10 +2829,10 @@ var script$g = /*#__PURE__*/defineComponent({
|
|
|
2789
2829
|
onChange: _cache[1] || (_cache[1] = function ($event) {
|
|
2790
2830
|
return _ctx.$emit('change', $event);
|
|
2791
2831
|
}),
|
|
2792
|
-
|
|
2832
|
+
filterOption: unref(filterOption)
|
|
2793
2833
|
}), null, 16
|
|
2794
2834
|
/* FULL_PROPS */
|
|
2795
|
-
, ["getPopupContainer", "value", "style", "placeholder", "options", "mode", "fieldNames", "allowClear", "
|
|
2835
|
+
, ["getPopupContainer", "value", "style", "placeholder", "options", "mode", "fieldNames", "allowClear", "filterOption"])];
|
|
2796
2836
|
}),
|
|
2797
2837
|
_: 1
|
|
2798
2838
|
/* STABLE */
|
|
@@ -2864,6 +2904,9 @@ var script$f = /*#__PURE__*/defineComponent({
|
|
|
2864
2904
|
emit("update:value", value);
|
|
2865
2905
|
}
|
|
2866
2906
|
});
|
|
2907
|
+
var filterOption = computed(function () {
|
|
2908
|
+
return filterOptionHeadle(props.fieldNames.label);
|
|
2909
|
+
});
|
|
2867
2910
|
return function (_ctx, _cache) {
|
|
2868
2911
|
var _component_a_select = resolveComponent("a-select");
|
|
2869
2912
|
|
|
@@ -2879,13 +2922,13 @@ var script$f = /*#__PURE__*/defineComponent({
|
|
|
2879
2922
|
bordered: false,
|
|
2880
2923
|
options: dataV.value,
|
|
2881
2924
|
fieldNames: __props.fieldNames,
|
|
2882
|
-
|
|
2925
|
+
filterOption: unref(filterOption),
|
|
2883
2926
|
onChange: _cache[1] || (_cache[1] = function ($event) {
|
|
2884
2927
|
return _ctx.$emit('change', $event);
|
|
2885
2928
|
})
|
|
2886
2929
|
}), null, 16
|
|
2887
2930
|
/* FULL_PROPS */
|
|
2888
|
-
, ["value", "getPopupContainer", "style", "options", "fieldNames", "
|
|
2931
|
+
, ["value", "getPopupContainer", "style", "options", "fieldNames", "filterOption"]);
|
|
2889
2932
|
};
|
|
2890
2933
|
}
|
|
2891
2934
|
});
|
|
@@ -2981,6 +3024,9 @@ var script$e = /*#__PURE__*/defineComponent({
|
|
|
2981
3024
|
emit("update:value", value);
|
|
2982
3025
|
}
|
|
2983
3026
|
});
|
|
3027
|
+
var filterOption = computed(function () {
|
|
3028
|
+
return filterOptionHeadle(props.fieldNames.label);
|
|
3029
|
+
});
|
|
2984
3030
|
/**
|
|
2985
3031
|
* 侦听器-------------------------------------
|
|
2986
3032
|
* */
|
|
@@ -3020,13 +3066,13 @@ var script$e = /*#__PURE__*/defineComponent({
|
|
|
3020
3066
|
bordered: false,
|
|
3021
3067
|
options: dataV.value,
|
|
3022
3068
|
fieldNames: __props.fieldNames,
|
|
3023
|
-
|
|
3069
|
+
filterOption: unref(filterOption),
|
|
3024
3070
|
onChange: _cache[1] || (_cache[1] = function ($event) {
|
|
3025
3071
|
return _ctx.$emit('change', $event);
|
|
3026
3072
|
})
|
|
3027
3073
|
}), null, 16
|
|
3028
3074
|
/* FULL_PROPS */
|
|
3029
|
-
, ["value", "getPopupContainer", "style", "options", "fieldNames", "
|
|
3075
|
+
, ["value", "getPopupContainer", "style", "options", "fieldNames", "filterOption"]);
|
|
3030
3076
|
};
|
|
3031
3077
|
}
|
|
3032
3078
|
});
|
|
@@ -3238,7 +3284,7 @@ var script$d = /*#__PURE__*/defineComponent({
|
|
|
3238
3284
|
maxHeight: '400px',
|
|
3239
3285
|
overflow: 'auto'
|
|
3240
3286
|
},
|
|
3241
|
-
|
|
3287
|
+
filterOption: _ctx.filterOption,
|
|
3242
3288
|
multiple: __props.multiple,
|
|
3243
3289
|
treeDefaultExpandAll: "",
|
|
3244
3290
|
style: __props.inputStyle,
|
|
@@ -3248,7 +3294,7 @@ var script$d = /*#__PURE__*/defineComponent({
|
|
|
3248
3294
|
replaceFields: __props.replaceFields
|
|
3249
3295
|
}), null, 16
|
|
3250
3296
|
/* FULL_PROPS */
|
|
3251
|
-
, ["value", "tree-data", "getPopupContainer", "placeholder", "allowClear", "
|
|
3297
|
+
, ["value", "tree-data", "getPopupContainer", "placeholder", "allowClear", "filterOption", "multiple", "style", "replaceFields"])];
|
|
3252
3298
|
}),
|
|
3253
3299
|
_: 1
|
|
3254
3300
|
/* STABLE */
|
|
@@ -3417,8 +3463,6 @@ var script$b = /*#__PURE__*/defineComponent({
|
|
|
3417
3463
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
3418
3464
|
var _option,
|
|
3419
3465
|
_a,
|
|
3420
|
-
_yield$formatHTTP,
|
|
3421
|
-
items,
|
|
3422
3466
|
_args = arguments;
|
|
3423
3467
|
|
|
3424
3468
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -3432,11 +3476,9 @@ var script$b = /*#__PURE__*/defineComponent({
|
|
|
3432
3476
|
}, API_OPTION.getPurchaseContract.option)));
|
|
3433
3477
|
|
|
3434
3478
|
case 3:
|
|
3435
|
-
|
|
3436
|
-
items = _yield$formatHTTP.items;
|
|
3437
|
-
contractList.value = items;
|
|
3479
|
+
contractList.value = _context.sent;
|
|
3438
3480
|
|
|
3439
|
-
case
|
|
3481
|
+
case 4:
|
|
3440
3482
|
case "end":
|
|
3441
3483
|
return _context.stop();
|
|
3442
3484
|
}
|
|
@@ -3459,7 +3501,7 @@ var script$b = /*#__PURE__*/defineComponent({
|
|
|
3459
3501
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
3460
3502
|
var _option,
|
|
3461
3503
|
_a,
|
|
3462
|
-
_yield$
|
|
3504
|
+
_yield$formatHTTP,
|
|
3463
3505
|
items,
|
|
3464
3506
|
totalCount,
|
|
3465
3507
|
_args2 = arguments;
|
|
@@ -3470,18 +3512,15 @@ var script$b = /*#__PURE__*/defineComponent({
|
|
|
3470
3512
|
case 0:
|
|
3471
3513
|
_option = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
|
|
3472
3514
|
_context2.next = 3;
|
|
3473
|
-
return formatHTTP(fetch(formatUrl(API_OPTION.
|
|
3515
|
+
return formatHTTP(fetch(formatUrl(API_OPTION.getIVProjectSelector.baseUrl, API_OPTION.getIVProjectSelector.url, _option.params), assign({
|
|
3474
3516
|
data: (_a = _option.data) !== null && _a !== void 0 ? _a : null
|
|
3475
|
-
}, API_OPTION.
|
|
3517
|
+
}, API_OPTION.getIVProjectSelector.option)));
|
|
3476
3518
|
|
|
3477
3519
|
case 3:
|
|
3478
|
-
_yield$
|
|
3479
|
-
items = _yield$
|
|
3480
|
-
totalCount = _yield$
|
|
3481
|
-
dataV.value = items
|
|
3482
|
-
item.creationTime = dateFormat(item.creationTime, "YYYY-MM-DD");
|
|
3483
|
-
return item;
|
|
3484
|
-
});
|
|
3520
|
+
_yield$formatHTTP = _context2.sent;
|
|
3521
|
+
items = _yield$formatHTTP.items;
|
|
3522
|
+
totalCount = _yield$formatHTTP.totalCount;
|
|
3523
|
+
dataV.value = items;
|
|
3485
3524
|
totalPages.value = totalCount;
|
|
3486
3525
|
topPages.value = Math.ceil(totalPages.value / formData.maxResultCount);
|
|
3487
3526
|
|
|
@@ -3685,7 +3724,7 @@ var script$b = /*#__PURE__*/defineComponent({
|
|
|
3685
3724
|
"is-title": false,
|
|
3686
3725
|
placeholder: "请选择账套",
|
|
3687
3726
|
"input-style": {
|
|
3688
|
-
width: '
|
|
3727
|
+
width: '300px',
|
|
3689
3728
|
marginRight: '15px'
|
|
3690
3729
|
},
|
|
3691
3730
|
"form-item-style": {
|
|
@@ -3704,7 +3743,7 @@ var script$b = /*#__PURE__*/defineComponent({
|
|
|
3704
3743
|
"show-search": "",
|
|
3705
3744
|
allowClear: "",
|
|
3706
3745
|
style: {
|
|
3707
|
-
"width": "
|
|
3746
|
+
"width": "300px",
|
|
3708
3747
|
"margin-right": "15px"
|
|
3709
3748
|
},
|
|
3710
3749
|
placeholder: "请选择合同",
|
|
@@ -4218,6 +4257,9 @@ var script$9 = /*#__PURE__*/defineComponent({
|
|
|
4218
4257
|
emit("update:value", value);
|
|
4219
4258
|
}
|
|
4220
4259
|
});
|
|
4260
|
+
var filterOption = computed(function () {
|
|
4261
|
+
return filterOptionHeadle(props.fieldNames.label);
|
|
4262
|
+
});
|
|
4221
4263
|
/**
|
|
4222
4264
|
* 侦听器-------------------------------------
|
|
4223
4265
|
* */
|
|
@@ -4285,10 +4327,10 @@ var script$9 = /*#__PURE__*/defineComponent({
|
|
|
4285
4327
|
onChange: _cache[1] || (_cache[1] = function ($event) {
|
|
4286
4328
|
return _ctx.$emit('change', $event);
|
|
4287
4329
|
}),
|
|
4288
|
-
|
|
4330
|
+
filterOption: unref(filterOption)
|
|
4289
4331
|
}), null, 16
|
|
4290
4332
|
/* FULL_PROPS */
|
|
4291
|
-
, ["getPopupContainer", "value", "style", "placeholder", "options", "mode", "fieldNames", "allowClear", "
|
|
4333
|
+
, ["getPopupContainer", "value", "style", "placeholder", "options", "mode", "fieldNames", "allowClear", "filterOption"])];
|
|
4292
4334
|
}),
|
|
4293
4335
|
_: 1
|
|
4294
4336
|
/* STABLE */
|
|
@@ -4437,6 +4479,9 @@ var script$8 = /*#__PURE__*/defineComponent({
|
|
|
4437
4479
|
emit("update:value", value);
|
|
4438
4480
|
}
|
|
4439
4481
|
});
|
|
4482
|
+
var filterOption = computed(function () {
|
|
4483
|
+
return filterOptionHeadle(props.fieldNames.label);
|
|
4484
|
+
});
|
|
4440
4485
|
/**
|
|
4441
4486
|
* 侦听器-------------------------------------
|
|
4442
4487
|
* */
|
|
@@ -4504,10 +4549,10 @@ var script$8 = /*#__PURE__*/defineComponent({
|
|
|
4504
4549
|
onChange: _cache[1] || (_cache[1] = function ($event) {
|
|
4505
4550
|
return _ctx.$emit('change', $event);
|
|
4506
4551
|
}),
|
|
4507
|
-
|
|
4552
|
+
filterOption: unref(filterOption)
|
|
4508
4553
|
}), null, 16
|
|
4509
4554
|
/* FULL_PROPS */
|
|
4510
|
-
, ["getPopupContainer", "value", "style", "placeholder", "options", "mode", "fieldNames", "allowClear", "
|
|
4555
|
+
, ["getPopupContainer", "value", "style", "placeholder", "options", "mode", "fieldNames", "allowClear", "filterOption"])];
|
|
4511
4556
|
}),
|
|
4512
4557
|
_: 1
|
|
4513
4558
|
/* STABLE */
|