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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iv-npm",
3
- "version": "1.2.33",
3
+ "version": "1.2.36",
4
4
  "description": "公共通用包",
5
5
  "author": "Mr.Cong",
6
6
  "license": "ISC",
@@ -14,6 +14,14 @@ 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
+ };
17
25
  replaceFields: {
18
26
  type: null;
19
27
  required: false;
@@ -83,6 +91,14 @@ declare const _default: import("vue").DefineComponent<{
83
91
  type: ObjectConstructor;
84
92
  required: false;
85
93
  };
94
+ fieldNames: {
95
+ type: null;
96
+ required: false;
97
+ default: () => {
98
+ label: string;
99
+ value: string;
100
+ };
101
+ };
86
102
  replaceFields: {
87
103
  type: null;
88
104
  required: false;
@@ -141,6 +157,7 @@ declare const _default: import("vue").DefineComponent<{
141
157
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
142
158
  onChange?: ((...args: any[]) => any) | undefined;
143
159
  }, {
160
+ fieldNames: any;
144
161
  replaceFields: any;
145
162
  inputStyle: Record<string, any>;
146
163
  isRequired: boolean;
@@ -14,6 +14,14 @@ 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
+ };
17
25
  replaceFields: {
18
26
  type: null;
19
27
  required: false;
@@ -91,6 +99,14 @@ declare const _default: import("vue").DefineComponent<{
91
99
  type: ObjectConstructor;
92
100
  required: false;
93
101
  };
102
+ fieldNames: {
103
+ type: null;
104
+ required: false;
105
+ default: () => {
106
+ label: string;
107
+ value: string;
108
+ };
109
+ };
94
110
  replaceFields: {
95
111
  type: null;
96
112
  required: false;
@@ -157,6 +173,7 @@ declare const _default: import("vue").DefineComponent<{
157
173
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
158
174
  onChange?: ((...args: any[]) => any) | undefined;
159
175
  }, {
176
+ fieldNames: any;
160
177
  replaceFields: any;
161
178
  inputStyle: Record<string, any>;
162
179
  wrapperCol: Record<string, any>;
@@ -1511,6 +1511,16 @@ var script$l = /*#__PURE__*/vue.defineComponent({
1511
1511
  type: Object,
1512
1512
  required: false
1513
1513
  },
1514
+ fieldNames: {
1515
+ type: null,
1516
+ required: false,
1517
+ "default": function _default() {
1518
+ return {
1519
+ label: "name",
1520
+ value: "id"
1521
+ };
1522
+ }
1523
+ },
1514
1524
  replaceFields: {
1515
1525
  type: null,
1516
1526
  required: false,
@@ -1624,6 +1634,9 @@ var script$l = /*#__PURE__*/vue.defineComponent({
1624
1634
  emit("update:value", value);
1625
1635
  }
1626
1636
  });
1637
+ var filterOption = vue.computed(function () {
1638
+ return filterOptionHeadle(props.fieldNames.label);
1639
+ });
1627
1640
  /**
1628
1641
  * 侦听器-------------------------------------
1629
1642
  * */
@@ -1686,16 +1699,17 @@ var script$l = /*#__PURE__*/vue.defineComponent({
1686
1699
  allowClear: !__props.isRequired,
1687
1700
  showSearch: "",
1688
1701
  multiple: __props.multiple,
1689
- "filter-option": vue.unref(filterOptionHeadle),
1702
+ filterOption: vue.unref(filterOption),
1690
1703
  treeDefaultExpandAll: "",
1691
1704
  style: __props.inputStyle,
1692
1705
  onChange: _cache[1] || (_cache[1] = function ($event) {
1693
1706
  return _ctx.$emit('change', $event);
1694
1707
  }),
1708
+ fieldNames: __props.fieldNames,
1695
1709
  replaceFields: __props.replaceFields
1696
1710
  }), null, 16
1697
1711
  /* FULL_PROPS */
1698
- , ["value", "tree-data", "getPopupContainer", "placeholder", "allowClear", "multiple", "filter-option", "style", "replaceFields"])];
1712
+ , ["value", "tree-data", "getPopupContainer", "placeholder", "allowClear", "multiple", "filterOption", "style", "fieldNames", "replaceFields"])];
1699
1713
  }),
1700
1714
  _: 1
1701
1715
  /* STABLE */
@@ -1851,6 +1865,9 @@ var script$k = /*#__PURE__*/vue.defineComponent({
1851
1865
  emit("update:value", value);
1852
1866
  }
1853
1867
  });
1868
+ var filterOption = vue.computed(function () {
1869
+ return filterOptionHeadle(props.fieldNames.label);
1870
+ });
1854
1871
  /**
1855
1872
  * 侦听器-------------------------------------
1856
1873
  * */
@@ -1916,10 +1933,10 @@ var script$k = /*#__PURE__*/vue.defineComponent({
1916
1933
  onChange: _cache[1] || (_cache[1] = function ($event) {
1917
1934
  return _ctx.$emit('change', $event);
1918
1935
  }),
1919
- "filter-option": vue.unref(filterOptionHeadle)
1936
+ filterOption: vue.unref(filterOption)
1920
1937
  }), null, 16
1921
1938
  /* FULL_PROPS */
1922
- , ["value", "getPopupContainer", "style", "placeholder", "options", "mode", "fieldNames", "allowClear", "filter-option"])];
1939
+ , ["value", "getPopupContainer", "style", "placeholder", "options", "mode", "fieldNames", "allowClear", "filterOption"])];
1923
1940
  }),
1924
1941
  _: 1
1925
1942
  /* STABLE */
@@ -2072,6 +2089,9 @@ var script$j = /*#__PURE__*/vue.defineComponent({
2072
2089
  emit("update:value", value);
2073
2090
  }
2074
2091
  });
2092
+ var filterOption = vue.computed(function () {
2093
+ return filterOptionHeadle(props.fieldNames.label);
2094
+ });
2075
2095
  /**
2076
2096
  * 侦听器-------------------------------------
2077
2097
  * */
@@ -2136,10 +2156,10 @@ var script$j = /*#__PURE__*/vue.defineComponent({
2136
2156
  onChange: _cache[1] || (_cache[1] = function ($event) {
2137
2157
  return _ctx.$emit('change', $event);
2138
2158
  }),
2139
- "filter-option": vue.unref(filterOptionHeadle)
2159
+ filterOption: vue.unref(filterOption)
2140
2160
  }), null, 16
2141
2161
  /* FULL_PROPS */
2142
- , ["getPopupContainer", "value", "style", "placeholder", "options", "mode", "fieldNames", "allowClear", "filter-option"])];
2162
+ , ["getPopupContainer", "value", "style", "placeholder", "options", "mode", "fieldNames", "allowClear", "filterOption"])];
2143
2163
  }),
2144
2164
  _: 1
2145
2165
  /* STABLE */
@@ -2179,6 +2199,16 @@ var script$i = /*#__PURE__*/vue.defineComponent({
2179
2199
  type: Object,
2180
2200
  required: false
2181
2201
  },
2202
+ fieldNames: {
2203
+ type: null,
2204
+ required: false,
2205
+ "default": function _default() {
2206
+ return {
2207
+ label: "name",
2208
+ value: "id"
2209
+ };
2210
+ }
2211
+ },
2182
2212
  replaceFields: {
2183
2213
  type: null,
2184
2214
  required: false,
@@ -2302,6 +2332,9 @@ var script$i = /*#__PURE__*/vue.defineComponent({
2302
2332
  emit("update:value", value);
2303
2333
  }
2304
2334
  });
2335
+ var filterOption = vue.computed(function () {
2336
+ return filterOptionHeadle(props.fieldNames.label);
2337
+ });
2305
2338
  /**
2306
2339
  * 侦听器-------------------------------------
2307
2340
  * */
@@ -2364,7 +2397,8 @@ var script$i = /*#__PURE__*/vue.defineComponent({
2364
2397
  showArrow: "",
2365
2398
  showSearch: "",
2366
2399
  allowClear: !__props.isRequired,
2367
- "filter-option": vue.unref(filterOptionHeadle),
2400
+ filterOption: vue.unref(filterOption),
2401
+ fieldNames: __props.fieldNames,
2368
2402
  multiple: __props.multiple,
2369
2403
  treeDefaultExpandAll: "",
2370
2404
  style: __props.inputStyle,
@@ -2374,7 +2408,7 @@ var script$i = /*#__PURE__*/vue.defineComponent({
2374
2408
  replaceFields: __props.replaceFields
2375
2409
  }), null, 16
2376
2410
  /* FULL_PROPS */
2377
- , ["value", "tree-data", "getPopupContainer", "placeholder", "allowClear", "filter-option", "multiple", "style", "replaceFields"]), vue.createElementVNode("span", _hoisted_2$9, [vue.renderSlot(_ctx.$slots, "notes")])];
2411
+ , ["value", "tree-data", "getPopupContainer", "placeholder", "allowClear", "filterOption", "fieldNames", "multiple", "style", "replaceFields"]), vue.createElementVNode("span", _hoisted_2$9, [vue.renderSlot(_ctx.$slots, "notes")])];
2378
2412
  }),
2379
2413
  _: 3
2380
2414
  /* FORWARDED */
@@ -2522,6 +2556,9 @@ var script$h = /*#__PURE__*/vue.defineComponent({
2522
2556
  emit("update:value", value);
2523
2557
  }
2524
2558
  });
2559
+ var filterOption = vue.computed(function () {
2560
+ return filterOptionHeadle(props.fieldNames.label);
2561
+ });
2525
2562
  /**
2526
2563
  * 侦听器-------------------------------------
2527
2564
  * */
@@ -2583,14 +2620,14 @@ var script$h = /*#__PURE__*/vue.defineComponent({
2583
2620
  mode: __props.multiple ? 'multiple' : '',
2584
2621
  showArrow: "",
2585
2622
  options: dataV.value,
2586
- "filter-option": vue.unref(filterOptionHeadle),
2623
+ filterOption: vue.unref(filterOption),
2587
2624
  onChange: _cache[1] || (_cache[1] = function ($event) {
2588
2625
  return _ctx.$emit('change', $event);
2589
2626
  }),
2590
2627
  fieldNames: __props.fieldNames
2591
2628
  }), null, 16
2592
2629
  /* FULL_PROPS */
2593
- , ["value", "getPopupContainer", "allowClear", "style", "placeholder", "mode", "options", "filter-option", "fieldNames"])];
2630
+ , ["value", "getPopupContainer", "allowClear", "style", "placeholder", "mode", "options", "filterOption", "fieldNames"])];
2594
2631
  }),
2595
2632
  _: 1
2596
2633
  /* STABLE */
@@ -2729,6 +2766,9 @@ var script$g = /*#__PURE__*/vue.defineComponent({
2729
2766
  emit("update:value", value);
2730
2767
  }
2731
2768
  });
2769
+ var filterOption = vue.computed(function () {
2770
+ return filterOptionHeadle(props.fieldNames.label);
2771
+ });
2732
2772
  /**
2733
2773
  * 侦听器-------------------------------------
2734
2774
  * */
@@ -2793,10 +2833,10 @@ var script$g = /*#__PURE__*/vue.defineComponent({
2793
2833
  onChange: _cache[1] || (_cache[1] = function ($event) {
2794
2834
  return _ctx.$emit('change', $event);
2795
2835
  }),
2796
- "filter-option": vue.unref(filterOptionHeadle)
2836
+ filterOption: vue.unref(filterOption)
2797
2837
  }), null, 16
2798
2838
  /* FULL_PROPS */
2799
- , ["getPopupContainer", "value", "style", "placeholder", "options", "mode", "fieldNames", "allowClear", "filter-option"])];
2839
+ , ["getPopupContainer", "value", "style", "placeholder", "options", "mode", "fieldNames", "allowClear", "filterOption"])];
2800
2840
  }),
2801
2841
  _: 1
2802
2842
  /* STABLE */
@@ -2868,6 +2908,9 @@ var script$f = /*#__PURE__*/vue.defineComponent({
2868
2908
  emit("update:value", value);
2869
2909
  }
2870
2910
  });
2911
+ var filterOption = vue.computed(function () {
2912
+ return filterOptionHeadle(props.fieldNames.label);
2913
+ });
2871
2914
  return function (_ctx, _cache) {
2872
2915
  var _component_a_select = vue.resolveComponent("a-select");
2873
2916
 
@@ -2883,13 +2926,13 @@ var script$f = /*#__PURE__*/vue.defineComponent({
2883
2926
  bordered: false,
2884
2927
  options: dataV.value,
2885
2928
  fieldNames: __props.fieldNames,
2886
- "filter-option": vue.unref(filterOptionHeadle),
2929
+ filterOption: vue.unref(filterOption),
2887
2930
  onChange: _cache[1] || (_cache[1] = function ($event) {
2888
2931
  return _ctx.$emit('change', $event);
2889
2932
  })
2890
2933
  }), null, 16
2891
2934
  /* FULL_PROPS */
2892
- , ["value", "getPopupContainer", "style", "options", "fieldNames", "filter-option"]);
2935
+ , ["value", "getPopupContainer", "style", "options", "fieldNames", "filterOption"]);
2893
2936
  };
2894
2937
  }
2895
2938
  });
@@ -2985,6 +3028,9 @@ var script$e = /*#__PURE__*/vue.defineComponent({
2985
3028
  emit("update:value", value);
2986
3029
  }
2987
3030
  });
3031
+ var filterOption = vue.computed(function () {
3032
+ return filterOptionHeadle(props.fieldNames.label);
3033
+ });
2988
3034
  /**
2989
3035
  * 侦听器-------------------------------------
2990
3036
  * */
@@ -3024,13 +3070,13 @@ var script$e = /*#__PURE__*/vue.defineComponent({
3024
3070
  bordered: false,
3025
3071
  options: dataV.value,
3026
3072
  fieldNames: __props.fieldNames,
3027
- "filter-option": vue.unref(filterOptionHeadle),
3073
+ filterOption: vue.unref(filterOption),
3028
3074
  onChange: _cache[1] || (_cache[1] = function ($event) {
3029
3075
  return _ctx.$emit('change', $event);
3030
3076
  })
3031
3077
  }), null, 16
3032
3078
  /* FULL_PROPS */
3033
- , ["value", "getPopupContainer", "style", "options", "fieldNames", "filter-option"]);
3079
+ , ["value", "getPopupContainer", "style", "options", "fieldNames", "filterOption"]);
3034
3080
  };
3035
3081
  }
3036
3082
  });
@@ -3242,7 +3288,7 @@ var script$d = /*#__PURE__*/vue.defineComponent({
3242
3288
  maxHeight: '400px',
3243
3289
  overflow: 'auto'
3244
3290
  },
3245
- "filter-option": vue.unref(filterOptionHeadle),
3291
+ filterOption: _ctx.filterOption,
3246
3292
  multiple: __props.multiple,
3247
3293
  treeDefaultExpandAll: "",
3248
3294
  style: __props.inputStyle,
@@ -3252,7 +3298,7 @@ var script$d = /*#__PURE__*/vue.defineComponent({
3252
3298
  replaceFields: __props.replaceFields
3253
3299
  }), null, 16
3254
3300
  /* FULL_PROPS */
3255
- , ["value", "tree-data", "getPopupContainer", "placeholder", "allowClear", "filter-option", "multiple", "style", "replaceFields"])];
3301
+ , ["value", "tree-data", "getPopupContainer", "placeholder", "allowClear", "filterOption", "multiple", "style", "replaceFields"])];
3256
3302
  }),
3257
3303
  _: 1
3258
3304
  /* STABLE */
@@ -3421,8 +3467,6 @@ var script$b = /*#__PURE__*/vue.defineComponent({
3421
3467
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
3422
3468
  var _option,
3423
3469
  _a,
3424
- _yield$formatHTTP,
3425
- items,
3426
3470
  _args = arguments;
3427
3471
 
3428
3472
  return _regeneratorRuntime().wrap(function _callee$(_context) {
@@ -3436,11 +3480,9 @@ var script$b = /*#__PURE__*/vue.defineComponent({
3436
3480
  }, API_OPTION.getPurchaseContract.option)));
3437
3481
 
3438
3482
  case 3:
3439
- _yield$formatHTTP = _context.sent;
3440
- items = _yield$formatHTTP.items;
3441
- contractList.value = items;
3483
+ contractList.value = _context.sent;
3442
3484
 
3443
- case 6:
3485
+ case 4:
3444
3486
  case "end":
3445
3487
  return _context.stop();
3446
3488
  }
@@ -3463,7 +3505,7 @@ var script$b = /*#__PURE__*/vue.defineComponent({
3463
3505
  var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
3464
3506
  var _option,
3465
3507
  _a,
3466
- _yield$formatHTTP2,
3508
+ _yield$formatHTTP,
3467
3509
  items,
3468
3510
  totalCount,
3469
3511
  _args2 = arguments;
@@ -3474,18 +3516,15 @@ var script$b = /*#__PURE__*/vue.defineComponent({
3474
3516
  case 0:
3475
3517
  _option = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
3476
3518
  _context2.next = 3;
3477
- return formatHTTP(fetch(formatUrl(API_OPTION.getIVVendorSelector.baseUrl, API_OPTION.getIVVendorSelector.url, _option.params), assign({
3519
+ return formatHTTP(fetch(formatUrl(API_OPTION.getIVProjectSelector.baseUrl, API_OPTION.getIVProjectSelector.url, _option.params), assign({
3478
3520
  data: (_a = _option.data) !== null && _a !== void 0 ? _a : null
3479
- }, API_OPTION.getIVVendorSelector.option)));
3521
+ }, API_OPTION.getIVProjectSelector.option)));
3480
3522
 
3481
3523
  case 3:
3482
- _yield$formatHTTP2 = _context2.sent;
3483
- items = _yield$formatHTTP2.items;
3484
- totalCount = _yield$formatHTTP2.totalCount;
3485
- dataV.value = items.map(function (item, index) {
3486
- item.creationTime = dateFormat(item.creationTime, "YYYY-MM-DD");
3487
- return item;
3488
- });
3524
+ _yield$formatHTTP = _context2.sent;
3525
+ items = _yield$formatHTTP.items;
3526
+ totalCount = _yield$formatHTTP.totalCount;
3527
+ dataV.value = items;
3489
3528
  totalPages.value = totalCount;
3490
3529
  topPages.value = Math.ceil(totalPages.value / formData.maxResultCount);
3491
3530
 
@@ -3689,7 +3728,7 @@ var script$b = /*#__PURE__*/vue.defineComponent({
3689
3728
  "is-title": false,
3690
3729
  placeholder: "请选择账套",
3691
3730
  "input-style": {
3692
- width: '170px',
3731
+ width: '300px',
3693
3732
  marginRight: '15px'
3694
3733
  },
3695
3734
  "form-item-style": {
@@ -3708,7 +3747,7 @@ var script$b = /*#__PURE__*/vue.defineComponent({
3708
3747
  "show-search": "",
3709
3748
  allowClear: "",
3710
3749
  style: {
3711
- "width": "178px",
3750
+ "width": "300px",
3712
3751
  "margin-right": "15px"
3713
3752
  },
3714
3753
  placeholder: "请选择合同",
@@ -4222,6 +4261,9 @@ var script$9 = /*#__PURE__*/vue.defineComponent({
4222
4261
  emit("update:value", value);
4223
4262
  }
4224
4263
  });
4264
+ var filterOption = vue.computed(function () {
4265
+ return filterOptionHeadle(props.fieldNames.label);
4266
+ });
4225
4267
  /**
4226
4268
  * 侦听器-------------------------------------
4227
4269
  * */
@@ -4289,10 +4331,10 @@ var script$9 = /*#__PURE__*/vue.defineComponent({
4289
4331
  onChange: _cache[1] || (_cache[1] = function ($event) {
4290
4332
  return _ctx.$emit('change', $event);
4291
4333
  }),
4292
- "filter-option": vue.unref(filterOptionHeadle)
4334
+ filterOption: vue.unref(filterOption)
4293
4335
  }), null, 16
4294
4336
  /* FULL_PROPS */
4295
- , ["getPopupContainer", "value", "style", "placeholder", "options", "mode", "fieldNames", "allowClear", "filter-option"])];
4337
+ , ["getPopupContainer", "value", "style", "placeholder", "options", "mode", "fieldNames", "allowClear", "filterOption"])];
4296
4338
  }),
4297
4339
  _: 1
4298
4340
  /* STABLE */
@@ -4441,6 +4483,9 @@ var script$8 = /*#__PURE__*/vue.defineComponent({
4441
4483
  emit("update:value", value);
4442
4484
  }
4443
4485
  });
4486
+ var filterOption = vue.computed(function () {
4487
+ return filterOptionHeadle(props.fieldNames.label);
4488
+ });
4444
4489
  /**
4445
4490
  * 侦听器-------------------------------------
4446
4491
  * */
@@ -4508,10 +4553,10 @@ var script$8 = /*#__PURE__*/vue.defineComponent({
4508
4553
  onChange: _cache[1] || (_cache[1] = function ($event) {
4509
4554
  return _ctx.$emit('change', $event);
4510
4555
  }),
4511
- "filter-option": vue.unref(filterOptionHeadle)
4556
+ filterOption: vue.unref(filterOption)
4512
4557
  }), null, 16
4513
4558
  /* FULL_PROPS */
4514
- , ["getPopupContainer", "value", "style", "placeholder", "options", "mode", "fieldNames", "allowClear", "filter-option"])];
4559
+ , ["getPopupContainer", "value", "style", "placeholder", "options", "mode", "fieldNames", "allowClear", "filterOption"])];
4515
4560
  }),
4516
4561
  _: 1
4517
4562
  /* STABLE */