iv-npm 1.1.5 → 1.1.6
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/api/api.config.d.ts +4 -0
- package/packages/ui/dist/business-ui/component/IVMrpSetofbookDropdown.d.ts +43 -0
- package/packages/ui/dist/business-ui/index.d.ts +2 -1
- package/packages/ui/dist/index.cjs.js +202 -23
- package/packages/ui/dist/index.d.ts +2 -2
- package/packages/ui/dist/index.esm.js +198 -20
- package/packages/ui/dist/index.umd.js +202 -23
- package/packages/ui/dist/index.umd.js.map +1 -1
package/package.json
CHANGED
|
@@ -12,6 +12,10 @@ declare const API_OPTION: {
|
|
|
12
12
|
url: string;
|
|
13
13
|
option: any;
|
|
14
14
|
};
|
|
15
|
+
getIVMrpSetofbookDropdown: {
|
|
16
|
+
url: string;
|
|
17
|
+
option: any;
|
|
18
|
+
};
|
|
15
19
|
};
|
|
16
20
|
export declare const formatHTTP: (fetch: any) => Promise<any>;
|
|
17
21
|
export declare const formatUrl: (base: string, api: string, params: object) => string;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 组件定义-------------------------------------
|
|
3
|
+
* */
|
|
4
|
+
declare const _default: import("vue").DefineComponent<{
|
|
5
|
+
value: {
|
|
6
|
+
type: null;
|
|
7
|
+
required: true;
|
|
8
|
+
};
|
|
9
|
+
params: {
|
|
10
|
+
type: ObjectConstructor;
|
|
11
|
+
required: false;
|
|
12
|
+
};
|
|
13
|
+
data: {
|
|
14
|
+
type: ObjectConstructor;
|
|
15
|
+
required: false;
|
|
16
|
+
};
|
|
17
|
+
replaceFields: {
|
|
18
|
+
type: null;
|
|
19
|
+
required: false;
|
|
20
|
+
};
|
|
21
|
+
}, (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
22
|
+
[key: string]: any;
|
|
23
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
24
|
+
value: {
|
|
25
|
+
type: null;
|
|
26
|
+
required: true;
|
|
27
|
+
};
|
|
28
|
+
params: {
|
|
29
|
+
type: ObjectConstructor;
|
|
30
|
+
required: false;
|
|
31
|
+
};
|
|
32
|
+
data: {
|
|
33
|
+
type: ObjectConstructor;
|
|
34
|
+
required: false;
|
|
35
|
+
};
|
|
36
|
+
replaceFields: {
|
|
37
|
+
type: null;
|
|
38
|
+
required: false;
|
|
39
|
+
};
|
|
40
|
+
}>> & {
|
|
41
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
42
|
+
}, {}>;
|
|
43
|
+
export default _default;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import IVMrpOrgDropdown from "./component/IVMrpOrgDropdown.vue";
|
|
2
2
|
import IVMrpProdBaseDropdown from "./component/IVMrpProdBaseDropdown.vue";
|
|
3
3
|
import IVMrpLineDropdown from "./component/IVMrpLineDropdown.vue";
|
|
4
|
-
|
|
4
|
+
import IVMrpSetofbookDropdown from "./component/IVMrpSetofbookDropdown.vue";
|
|
5
|
+
export { IVMrpOrgDropdown, IVMrpProdBaseDropdown, IVMrpLineDropdown, IVMrpSetofbookDropdown, };
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var vue = require('vue');
|
|
6
6
|
|
|
7
|
-
var _hoisted_1$
|
|
7
|
+
var _hoisted_1$4 = /*#__PURE__*/vue.createTextVNode("npm包");
|
|
8
8
|
/**
|
|
9
9
|
* show:Boolean 是否显示弹窗 v-model:show="Visible"
|
|
10
10
|
*
|
|
@@ -19,7 +19,7 @@ var _hoisted_1$3 = /*#__PURE__*/vue.createTextVNode("npm包");
|
|
|
19
19
|
*
|
|
20
20
|
* */
|
|
21
21
|
|
|
22
|
-
var script$
|
|
22
|
+
var script$4 = /*#__PURE__*/vue.defineComponent({
|
|
23
23
|
__name: 'IVMrpModal',
|
|
24
24
|
props: {
|
|
25
25
|
show: {
|
|
@@ -59,7 +59,7 @@ var script$3 = /*#__PURE__*/vue.defineComponent({
|
|
|
59
59
|
}, {
|
|
60
60
|
title: vue.withCtx(function () {
|
|
61
61
|
return [vue.renderSlot(_ctx.$slots, "title", {}, function () {
|
|
62
|
-
return [_hoisted_1$
|
|
62
|
+
return [_hoisted_1$4];
|
|
63
63
|
})];
|
|
64
64
|
}),
|
|
65
65
|
closeIcon: vue.withCtx(function () {
|
|
@@ -80,7 +80,7 @@ var script$3 = /*#__PURE__*/vue.defineComponent({
|
|
|
80
80
|
}
|
|
81
81
|
});
|
|
82
82
|
|
|
83
|
-
script$
|
|
83
|
+
script$4.__file = "src/function-ui/component/IVMrpModal.vue";
|
|
84
84
|
|
|
85
85
|
function ownKeys(object, enumerableOnly) {
|
|
86
86
|
var keys = Object.keys(object);
|
|
@@ -569,6 +569,12 @@ var API_OPTION = {
|
|
|
569
569
|
option: _objectSpread2({
|
|
570
570
|
method: "GET"
|
|
571
571
|
}, DEFIND_OPTION)
|
|
572
|
+
},
|
|
573
|
+
getIVMrpSetofbookDropdown: {
|
|
574
|
+
url: "/api/basis-management/setOfBook/all",
|
|
575
|
+
option: _objectSpread2({
|
|
576
|
+
method: "GET"
|
|
577
|
+
}, DEFIND_OPTION)
|
|
572
578
|
}
|
|
573
579
|
};
|
|
574
580
|
var formatHTTP = function formatHTTP(fetch) {
|
|
@@ -596,7 +602,7 @@ var formatUrl = function formatUrl(base, api, params) {
|
|
|
596
602
|
return base + api + "?" + urlTemparr.join("&");
|
|
597
603
|
};
|
|
598
604
|
|
|
599
|
-
var _hoisted_1$
|
|
605
|
+
var _hoisted_1$3 = /*#__PURE__*/vue.createElementVNode("div", {
|
|
600
606
|
"class": "text-[#0000006D] text-[14px]"
|
|
601
607
|
}, "所属组织", -1
|
|
602
608
|
/* HOISTED */
|
|
@@ -605,7 +611,7 @@ var _hoisted_1$2 = /*#__PURE__*/vue.createElementVNode("div", {
|
|
|
605
611
|
* 组件定义-------------------------------------
|
|
606
612
|
* */
|
|
607
613
|
|
|
608
|
-
var script$
|
|
614
|
+
var script$3 = /*#__PURE__*/vue.defineComponent({
|
|
609
615
|
__name: 'IVMrpOrgDropdown',
|
|
610
616
|
props: {
|
|
611
617
|
value: {
|
|
@@ -731,7 +737,7 @@ var script$2 = /*#__PURE__*/vue.defineComponent({
|
|
|
731
737
|
}]
|
|
732
738
|
}, {
|
|
733
739
|
label: vue.withCtx(function () {
|
|
734
|
-
return [_hoisted_1$
|
|
740
|
+
return [_hoisted_1$3];
|
|
735
741
|
}),
|
|
736
742
|
"default": vue.withCtx(function () {
|
|
737
743
|
return [vue.createVNode(_component_a_tree_select, {
|
|
@@ -762,9 +768,9 @@ var script$2 = /*#__PURE__*/vue.defineComponent({
|
|
|
762
768
|
}
|
|
763
769
|
});
|
|
764
770
|
|
|
765
|
-
script$
|
|
771
|
+
script$3.__file = "src/business-ui/component/IVMrpOrgDropdown.vue";
|
|
766
772
|
|
|
767
|
-
var _hoisted_1$
|
|
773
|
+
var _hoisted_1$2 = /*#__PURE__*/vue.createElementVNode("div", {
|
|
768
774
|
"class": "text-[#0000006D] text-[14px]"
|
|
769
775
|
}, "所属基地", -1
|
|
770
776
|
/* HOISTED */
|
|
@@ -773,7 +779,7 @@ var _hoisted_1$1 = /*#__PURE__*/vue.createElementVNode("div", {
|
|
|
773
779
|
* 组件定义-------------------------------------
|
|
774
780
|
* */
|
|
775
781
|
|
|
776
|
-
var script$
|
|
782
|
+
var script$2 = /*#__PURE__*/vue.defineComponent({
|
|
777
783
|
__name: 'IVMrpProdBaseDropdown',
|
|
778
784
|
props: {
|
|
779
785
|
value: {
|
|
@@ -894,7 +900,7 @@ var script$1 = /*#__PURE__*/vue.defineComponent({
|
|
|
894
900
|
}]
|
|
895
901
|
}, {
|
|
896
902
|
label: vue.withCtx(function () {
|
|
897
|
-
return [_hoisted_1$
|
|
903
|
+
return [_hoisted_1$2];
|
|
898
904
|
}),
|
|
899
905
|
"default": vue.withCtx(function () {
|
|
900
906
|
return [vue.createVNode(_component_a_select, {
|
|
@@ -924,9 +930,9 @@ var script$1 = /*#__PURE__*/vue.defineComponent({
|
|
|
924
930
|
}
|
|
925
931
|
});
|
|
926
932
|
|
|
927
|
-
script$
|
|
933
|
+
script$2.__file = "src/business-ui/component/IVMrpProdBaseDropdown.vue";
|
|
928
934
|
|
|
929
|
-
var _hoisted_1 = /*#__PURE__*/vue.createElementVNode("div", {
|
|
935
|
+
var _hoisted_1$1 = /*#__PURE__*/vue.createElementVNode("div", {
|
|
930
936
|
"class": "text-[#0000006D] text-[14px]"
|
|
931
937
|
}, "所属条线", -1
|
|
932
938
|
/* HOISTED */
|
|
@@ -935,7 +941,7 @@ var _hoisted_1 = /*#__PURE__*/vue.createElementVNode("div", {
|
|
|
935
941
|
* 组件定义-------------------------------------
|
|
936
942
|
* */
|
|
937
943
|
|
|
938
|
-
var script = /*#__PURE__*/vue.defineComponent({
|
|
944
|
+
var script$1 = /*#__PURE__*/vue.defineComponent({
|
|
939
945
|
__name: 'IVMrpLineDropdown',
|
|
940
946
|
props: {
|
|
941
947
|
value: {
|
|
@@ -1009,7 +1015,7 @@ var script = /*#__PURE__*/vue.defineComponent({
|
|
|
1009
1015
|
|
|
1010
1016
|
|
|
1011
1017
|
var fieldNames = vue.ref((_a = props.fieldNames) !== null && _a !== void 0 ? _a : {
|
|
1012
|
-
label: "
|
|
1018
|
+
label: "displayName",
|
|
1013
1019
|
value: "id"
|
|
1014
1020
|
});
|
|
1015
1021
|
var inputV = vue.computed({
|
|
@@ -1060,7 +1066,7 @@ var script = /*#__PURE__*/vue.defineComponent({
|
|
|
1060
1066
|
}]
|
|
1061
1067
|
}, {
|
|
1062
1068
|
label: vue.withCtx(function () {
|
|
1063
|
-
return [_hoisted_1];
|
|
1069
|
+
return [_hoisted_1$1];
|
|
1064
1070
|
}),
|
|
1065
1071
|
"default": vue.withCtx(function () {
|
|
1066
1072
|
return [vue.createVNode(_component_a_select, {
|
|
@@ -1090,14 +1096,186 @@ var script = /*#__PURE__*/vue.defineComponent({
|
|
|
1090
1096
|
}
|
|
1091
1097
|
});
|
|
1092
1098
|
|
|
1093
|
-
script.__file = "src/business-ui/component/IVMrpLineDropdown.vue";
|
|
1099
|
+
script$1.__file = "src/business-ui/component/IVMrpLineDropdown.vue";
|
|
1100
|
+
|
|
1101
|
+
var _hoisted_1 = /*#__PURE__*/vue.createElementVNode("div", {
|
|
1102
|
+
"class": "text-[#0000006D] text-[14px]"
|
|
1103
|
+
}, "所属账套", -1
|
|
1104
|
+
/* HOISTED */
|
|
1105
|
+
);
|
|
1106
|
+
/**
|
|
1107
|
+
* 组件定义-------------------------------------
|
|
1108
|
+
* */
|
|
1109
|
+
|
|
1110
|
+
var script = /*#__PURE__*/vue.defineComponent({
|
|
1111
|
+
__name: 'IVMrpSetofbookDropdown',
|
|
1112
|
+
props: {
|
|
1113
|
+
value: {
|
|
1114
|
+
type: null,
|
|
1115
|
+
required: true
|
|
1116
|
+
},
|
|
1117
|
+
params: {
|
|
1118
|
+
type: Object,
|
|
1119
|
+
required: false
|
|
1120
|
+
},
|
|
1121
|
+
data: {
|
|
1122
|
+
type: Object,
|
|
1123
|
+
required: false
|
|
1124
|
+
},
|
|
1125
|
+
replaceFields: {
|
|
1126
|
+
type: null,
|
|
1127
|
+
required: false
|
|
1128
|
+
}
|
|
1129
|
+
},
|
|
1130
|
+
emits: ["update:value"],
|
|
1131
|
+
setup: function setup(__props, _ref) {
|
|
1132
|
+
var emit = _ref.emit;
|
|
1133
|
+
|
|
1134
|
+
var _a;
|
|
1135
|
+
|
|
1136
|
+
var props = __props;
|
|
1137
|
+
/**
|
|
1138
|
+
* 获取数据-------------------------------------
|
|
1139
|
+
* */
|
|
1140
|
+
|
|
1141
|
+
var dataV = vue.ref();
|
|
1142
|
+
|
|
1143
|
+
var getData = /*#__PURE__*/function () {
|
|
1144
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
1145
|
+
var _option,
|
|
1146
|
+
_a,
|
|
1147
|
+
_yield$formatHTTP,
|
|
1148
|
+
items,
|
|
1149
|
+
_args = arguments;
|
|
1150
|
+
|
|
1151
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
1152
|
+
while (1) {
|
|
1153
|
+
switch (_context.prev = _context.next) {
|
|
1154
|
+
case 0:
|
|
1155
|
+
_option = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
|
1156
|
+
_context.next = 3;
|
|
1157
|
+
return formatHTTP(fetch(formatUrl(BASE_URL, API_OPTION.getIVMrpSetofbookDropdown.url, _option.params), assign({
|
|
1158
|
+
data: (_a = _option.data) !== null && _a !== void 0 ? _a : null
|
|
1159
|
+
}, API_OPTION.getIVMrpSetofbookDropdown.option)));
|
|
1160
|
+
|
|
1161
|
+
case 3:
|
|
1162
|
+
_yield$formatHTTP = _context.sent;
|
|
1163
|
+
items = _yield$formatHTTP.items;
|
|
1164
|
+
dataV.value = tranListToTreeData(items);
|
|
1165
|
+
|
|
1166
|
+
case 6:
|
|
1167
|
+
case "end":
|
|
1168
|
+
return _context.stop();
|
|
1169
|
+
}
|
|
1170
|
+
}
|
|
1171
|
+
}, _callee);
|
|
1172
|
+
}));
|
|
1173
|
+
|
|
1174
|
+
return function getData() {
|
|
1175
|
+
return _ref2.apply(this, arguments);
|
|
1176
|
+
};
|
|
1177
|
+
}();
|
|
1178
|
+
/**
|
|
1179
|
+
* 默认参数-------------------------------------
|
|
1180
|
+
* */
|
|
1181
|
+
|
|
1182
|
+
|
|
1183
|
+
var replaceFields = vue.ref((_a = props.replaceFields) !== null && _a !== void 0 ? _a : {
|
|
1184
|
+
children: "children",
|
|
1185
|
+
label: "name",
|
|
1186
|
+
key: "id",
|
|
1187
|
+
value: "id"
|
|
1188
|
+
});
|
|
1189
|
+
var inputV = vue.computed({
|
|
1190
|
+
get: function get() {
|
|
1191
|
+
return props.value;
|
|
1192
|
+
},
|
|
1193
|
+
set: function set(value) {
|
|
1194
|
+
emit("update:value", value);
|
|
1195
|
+
}
|
|
1196
|
+
});
|
|
1197
|
+
/**
|
|
1198
|
+
* 侦听器-------------------------------------
|
|
1199
|
+
* */
|
|
1200
|
+
|
|
1201
|
+
vue.watchEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
1202
|
+
var _a, _b;
|
|
1203
|
+
|
|
1204
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
1205
|
+
while (1) {
|
|
1206
|
+
switch (_context2.prev = _context2.next) {
|
|
1207
|
+
case 0:
|
|
1208
|
+
// 由于打包问题,侦听器一定要在最后,否则找不到getData方法
|
|
1209
|
+
getData({
|
|
1210
|
+
params: assign((_a = props.params) !== null && _a !== void 0 ? _a : {}, {
|
|
1211
|
+
type: 1
|
|
1212
|
+
}),
|
|
1213
|
+
data: (_b = props.data) !== null && _b !== void 0 ? _b : null
|
|
1214
|
+
});
|
|
1215
|
+
|
|
1216
|
+
case 1:
|
|
1217
|
+
case "end":
|
|
1218
|
+
return _context2.stop();
|
|
1219
|
+
}
|
|
1220
|
+
}
|
|
1221
|
+
}, _callee2);
|
|
1222
|
+
})));
|
|
1223
|
+
return function (_ctx, _cache) {
|
|
1224
|
+
var _component_a_tree_select = vue.resolveComponent("a-tree-select");
|
|
1225
|
+
|
|
1226
|
+
var _component_a_form_item = vue.resolveComponent("a-form-item");
|
|
1227
|
+
|
|
1228
|
+
return vue.openBlock(), vue.createBlock(_component_a_form_item, {
|
|
1229
|
+
name: "setOfBookIds",
|
|
1230
|
+
"wrapper-col": {
|
|
1231
|
+
span: 8
|
|
1232
|
+
},
|
|
1233
|
+
rules: [{
|
|
1234
|
+
required: true,
|
|
1235
|
+
message: '请选择所属账套'
|
|
1236
|
+
}]
|
|
1237
|
+
}, {
|
|
1238
|
+
label: vue.withCtx(function () {
|
|
1239
|
+
return [_hoisted_1];
|
|
1240
|
+
}),
|
|
1241
|
+
"default": vue.withCtx(function () {
|
|
1242
|
+
return [vue.createVNode(_component_a_tree_select, {
|
|
1243
|
+
value: vue.unref(inputV),
|
|
1244
|
+
"onUpdate:value": _cache[0] || (_cache[0] = function ($event) {
|
|
1245
|
+
return vue.isRef(inputV) ? inputV.value = $event : null;
|
|
1246
|
+
}),
|
|
1247
|
+
"tree-data": dataV.value,
|
|
1248
|
+
getPopupContainer: function getPopupContainer(triggerNode) {
|
|
1249
|
+
return triggerNode.parentNode;
|
|
1250
|
+
},
|
|
1251
|
+
placeholder: "请选择",
|
|
1252
|
+
showArrow: "",
|
|
1253
|
+
multiple: "",
|
|
1254
|
+
treeDefaultExpandAll: "",
|
|
1255
|
+
style: {
|
|
1256
|
+
"width": "300px"
|
|
1257
|
+
},
|
|
1258
|
+
replaceFields: replaceFields.value
|
|
1259
|
+
}, null, 8
|
|
1260
|
+
/* PROPS */
|
|
1261
|
+
, ["value", "tree-data", "getPopupContainer", "replaceFields"])];
|
|
1262
|
+
}),
|
|
1263
|
+
_: 1
|
|
1264
|
+
/* STABLE */
|
|
1265
|
+
|
|
1266
|
+
});
|
|
1267
|
+
};
|
|
1268
|
+
}
|
|
1269
|
+
});
|
|
1270
|
+
|
|
1271
|
+
script.__file = "src/business-ui/component/IVMrpSetofbookDropdown.vue";
|
|
1094
1272
|
|
|
1095
1273
|
/*
|
|
1096
1274
|
* @Author: Mr.Cong Wei
|
|
1097
1275
|
* @Date: 2022-08-08 18:47:06
|
|
1098
|
-
* @LastEditTime: 2022-08-10 17:
|
|
1276
|
+
* @LastEditTime: 2022-08-10 17:40:13
|
|
1099
1277
|
*/
|
|
1100
|
-
var components = [script$3, script$2, script$1, script];
|
|
1278
|
+
var components = [script$4, script$3, script$2, script$1, script];
|
|
1101
1279
|
installComponents(); // 单独引用
|
|
1102
1280
|
|
|
1103
1281
|
function installComponents() {
|
|
@@ -1119,8 +1297,9 @@ var cAll = {
|
|
|
1119
1297
|
install: install
|
|
1120
1298
|
};
|
|
1121
1299
|
|
|
1122
|
-
exports.IVMrpLineDropdown = script;
|
|
1123
|
-
exports.IVMrpModal = script$
|
|
1124
|
-
exports.IVMrpOrgDropdown = script$
|
|
1125
|
-
exports.IVMrpProdBaseDropdown = script$
|
|
1300
|
+
exports.IVMrpLineDropdown = script$1;
|
|
1301
|
+
exports.IVMrpModal = script$4;
|
|
1302
|
+
exports.IVMrpOrgDropdown = script$3;
|
|
1303
|
+
exports.IVMrpProdBaseDropdown = script$2;
|
|
1304
|
+
exports.IVMrpSetofbookDropdown = script;
|
|
1126
1305
|
exports["default"] = cAll;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { IVMrpModal } from "./function-ui/index";
|
|
2
|
-
import { IVMrpOrgDropdown, IVMrpProdBaseDropdown, IVMrpLineDropdown } from "./business-ui/index";
|
|
2
|
+
import { IVMrpOrgDropdown, IVMrpProdBaseDropdown, IVMrpLineDropdown, IVMrpSetofbookDropdown } from "./business-ui/index";
|
|
3
3
|
import "./index.css";
|
|
4
4
|
declare const cAll: {
|
|
5
5
|
install: (app: any) => void;
|
|
6
6
|
};
|
|
7
|
-
export { IVMrpModal, IVMrpOrgDropdown, IVMrpProdBaseDropdown, IVMrpLineDropdown, };
|
|
7
|
+
export { IVMrpModal, IVMrpOrgDropdown, IVMrpProdBaseDropdown, IVMrpLineDropdown, IVMrpSetofbookDropdown, };
|
|
8
8
|
export default cAll;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, renderSlot, createVNode, createTextVNode, computed, watchEffect, unref, isRef, createElementVNode } from 'vue';
|
|
2
2
|
|
|
3
|
-
var _hoisted_1$
|
|
3
|
+
var _hoisted_1$4 = /*#__PURE__*/createTextVNode("npm包");
|
|
4
4
|
/**
|
|
5
5
|
* show:Boolean 是否显示弹窗 v-model:show="Visible"
|
|
6
6
|
*
|
|
@@ -15,7 +15,7 @@ var _hoisted_1$3 = /*#__PURE__*/createTextVNode("npm包");
|
|
|
15
15
|
*
|
|
16
16
|
* */
|
|
17
17
|
|
|
18
|
-
var script$
|
|
18
|
+
var script$4 = /*#__PURE__*/defineComponent({
|
|
19
19
|
__name: 'IVMrpModal',
|
|
20
20
|
props: {
|
|
21
21
|
show: {
|
|
@@ -55,7 +55,7 @@ var script$3 = /*#__PURE__*/defineComponent({
|
|
|
55
55
|
}, {
|
|
56
56
|
title: withCtx(function () {
|
|
57
57
|
return [renderSlot(_ctx.$slots, "title", {}, function () {
|
|
58
|
-
return [_hoisted_1$
|
|
58
|
+
return [_hoisted_1$4];
|
|
59
59
|
})];
|
|
60
60
|
}),
|
|
61
61
|
closeIcon: withCtx(function () {
|
|
@@ -76,7 +76,7 @@ var script$3 = /*#__PURE__*/defineComponent({
|
|
|
76
76
|
}
|
|
77
77
|
});
|
|
78
78
|
|
|
79
|
-
script$
|
|
79
|
+
script$4.__file = "src/function-ui/component/IVMrpModal.vue";
|
|
80
80
|
|
|
81
81
|
function ownKeys(object, enumerableOnly) {
|
|
82
82
|
var keys = Object.keys(object);
|
|
@@ -565,6 +565,12 @@ var API_OPTION = {
|
|
|
565
565
|
option: _objectSpread2({
|
|
566
566
|
method: "GET"
|
|
567
567
|
}, DEFIND_OPTION)
|
|
568
|
+
},
|
|
569
|
+
getIVMrpSetofbookDropdown: {
|
|
570
|
+
url: "/api/basis-management/setOfBook/all",
|
|
571
|
+
option: _objectSpread2({
|
|
572
|
+
method: "GET"
|
|
573
|
+
}, DEFIND_OPTION)
|
|
568
574
|
}
|
|
569
575
|
};
|
|
570
576
|
var formatHTTP = function formatHTTP(fetch) {
|
|
@@ -592,7 +598,7 @@ var formatUrl = function formatUrl(base, api, params) {
|
|
|
592
598
|
return base + api + "?" + urlTemparr.join("&");
|
|
593
599
|
};
|
|
594
600
|
|
|
595
|
-
var _hoisted_1$
|
|
601
|
+
var _hoisted_1$3 = /*#__PURE__*/createElementVNode("div", {
|
|
596
602
|
"class": "text-[#0000006D] text-[14px]"
|
|
597
603
|
}, "所属组织", -1
|
|
598
604
|
/* HOISTED */
|
|
@@ -601,7 +607,7 @@ var _hoisted_1$2 = /*#__PURE__*/createElementVNode("div", {
|
|
|
601
607
|
* 组件定义-------------------------------------
|
|
602
608
|
* */
|
|
603
609
|
|
|
604
|
-
var script$
|
|
610
|
+
var script$3 = /*#__PURE__*/defineComponent({
|
|
605
611
|
__name: 'IVMrpOrgDropdown',
|
|
606
612
|
props: {
|
|
607
613
|
value: {
|
|
@@ -727,7 +733,7 @@ var script$2 = /*#__PURE__*/defineComponent({
|
|
|
727
733
|
}]
|
|
728
734
|
}, {
|
|
729
735
|
label: withCtx(function () {
|
|
730
|
-
return [_hoisted_1$
|
|
736
|
+
return [_hoisted_1$3];
|
|
731
737
|
}),
|
|
732
738
|
"default": withCtx(function () {
|
|
733
739
|
return [createVNode(_component_a_tree_select, {
|
|
@@ -758,9 +764,9 @@ var script$2 = /*#__PURE__*/defineComponent({
|
|
|
758
764
|
}
|
|
759
765
|
});
|
|
760
766
|
|
|
761
|
-
script$
|
|
767
|
+
script$3.__file = "src/business-ui/component/IVMrpOrgDropdown.vue";
|
|
762
768
|
|
|
763
|
-
var _hoisted_1$
|
|
769
|
+
var _hoisted_1$2 = /*#__PURE__*/createElementVNode("div", {
|
|
764
770
|
"class": "text-[#0000006D] text-[14px]"
|
|
765
771
|
}, "所属基地", -1
|
|
766
772
|
/* HOISTED */
|
|
@@ -769,7 +775,7 @@ var _hoisted_1$1 = /*#__PURE__*/createElementVNode("div", {
|
|
|
769
775
|
* 组件定义-------------------------------------
|
|
770
776
|
* */
|
|
771
777
|
|
|
772
|
-
var script$
|
|
778
|
+
var script$2 = /*#__PURE__*/defineComponent({
|
|
773
779
|
__name: 'IVMrpProdBaseDropdown',
|
|
774
780
|
props: {
|
|
775
781
|
value: {
|
|
@@ -890,7 +896,7 @@ var script$1 = /*#__PURE__*/defineComponent({
|
|
|
890
896
|
}]
|
|
891
897
|
}, {
|
|
892
898
|
label: withCtx(function () {
|
|
893
|
-
return [_hoisted_1$
|
|
899
|
+
return [_hoisted_1$2];
|
|
894
900
|
}),
|
|
895
901
|
"default": withCtx(function () {
|
|
896
902
|
return [createVNode(_component_a_select, {
|
|
@@ -920,9 +926,9 @@ var script$1 = /*#__PURE__*/defineComponent({
|
|
|
920
926
|
}
|
|
921
927
|
});
|
|
922
928
|
|
|
923
|
-
script$
|
|
929
|
+
script$2.__file = "src/business-ui/component/IVMrpProdBaseDropdown.vue";
|
|
924
930
|
|
|
925
|
-
var _hoisted_1 = /*#__PURE__*/createElementVNode("div", {
|
|
931
|
+
var _hoisted_1$1 = /*#__PURE__*/createElementVNode("div", {
|
|
926
932
|
"class": "text-[#0000006D] text-[14px]"
|
|
927
933
|
}, "所属条线", -1
|
|
928
934
|
/* HOISTED */
|
|
@@ -931,7 +937,7 @@ var _hoisted_1 = /*#__PURE__*/createElementVNode("div", {
|
|
|
931
937
|
* 组件定义-------------------------------------
|
|
932
938
|
* */
|
|
933
939
|
|
|
934
|
-
var script = /*#__PURE__*/defineComponent({
|
|
940
|
+
var script$1 = /*#__PURE__*/defineComponent({
|
|
935
941
|
__name: 'IVMrpLineDropdown',
|
|
936
942
|
props: {
|
|
937
943
|
value: {
|
|
@@ -1005,7 +1011,7 @@ var script = /*#__PURE__*/defineComponent({
|
|
|
1005
1011
|
|
|
1006
1012
|
|
|
1007
1013
|
var fieldNames = ref((_a = props.fieldNames) !== null && _a !== void 0 ? _a : {
|
|
1008
|
-
label: "
|
|
1014
|
+
label: "displayName",
|
|
1009
1015
|
value: "id"
|
|
1010
1016
|
});
|
|
1011
1017
|
var inputV = computed({
|
|
@@ -1056,7 +1062,7 @@ var script = /*#__PURE__*/defineComponent({
|
|
|
1056
1062
|
}]
|
|
1057
1063
|
}, {
|
|
1058
1064
|
label: withCtx(function () {
|
|
1059
|
-
return [_hoisted_1];
|
|
1065
|
+
return [_hoisted_1$1];
|
|
1060
1066
|
}),
|
|
1061
1067
|
"default": withCtx(function () {
|
|
1062
1068
|
return [createVNode(_component_a_select, {
|
|
@@ -1086,14 +1092,186 @@ var script = /*#__PURE__*/defineComponent({
|
|
|
1086
1092
|
}
|
|
1087
1093
|
});
|
|
1088
1094
|
|
|
1089
|
-
script.__file = "src/business-ui/component/IVMrpLineDropdown.vue";
|
|
1095
|
+
script$1.__file = "src/business-ui/component/IVMrpLineDropdown.vue";
|
|
1096
|
+
|
|
1097
|
+
var _hoisted_1 = /*#__PURE__*/createElementVNode("div", {
|
|
1098
|
+
"class": "text-[#0000006D] text-[14px]"
|
|
1099
|
+
}, "所属账套", -1
|
|
1100
|
+
/* HOISTED */
|
|
1101
|
+
);
|
|
1102
|
+
/**
|
|
1103
|
+
* 组件定义-------------------------------------
|
|
1104
|
+
* */
|
|
1105
|
+
|
|
1106
|
+
var script = /*#__PURE__*/defineComponent({
|
|
1107
|
+
__name: 'IVMrpSetofbookDropdown',
|
|
1108
|
+
props: {
|
|
1109
|
+
value: {
|
|
1110
|
+
type: null,
|
|
1111
|
+
required: true
|
|
1112
|
+
},
|
|
1113
|
+
params: {
|
|
1114
|
+
type: Object,
|
|
1115
|
+
required: false
|
|
1116
|
+
},
|
|
1117
|
+
data: {
|
|
1118
|
+
type: Object,
|
|
1119
|
+
required: false
|
|
1120
|
+
},
|
|
1121
|
+
replaceFields: {
|
|
1122
|
+
type: null,
|
|
1123
|
+
required: false
|
|
1124
|
+
}
|
|
1125
|
+
},
|
|
1126
|
+
emits: ["update:value"],
|
|
1127
|
+
setup: function setup(__props, _ref) {
|
|
1128
|
+
var emit = _ref.emit;
|
|
1129
|
+
|
|
1130
|
+
var _a;
|
|
1131
|
+
|
|
1132
|
+
var props = __props;
|
|
1133
|
+
/**
|
|
1134
|
+
* 获取数据-------------------------------------
|
|
1135
|
+
* */
|
|
1136
|
+
|
|
1137
|
+
var dataV = ref();
|
|
1138
|
+
|
|
1139
|
+
var getData = /*#__PURE__*/function () {
|
|
1140
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
1141
|
+
var _option,
|
|
1142
|
+
_a,
|
|
1143
|
+
_yield$formatHTTP,
|
|
1144
|
+
items,
|
|
1145
|
+
_args = arguments;
|
|
1146
|
+
|
|
1147
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
1148
|
+
while (1) {
|
|
1149
|
+
switch (_context.prev = _context.next) {
|
|
1150
|
+
case 0:
|
|
1151
|
+
_option = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
|
1152
|
+
_context.next = 3;
|
|
1153
|
+
return formatHTTP(fetch(formatUrl(BASE_URL, API_OPTION.getIVMrpSetofbookDropdown.url, _option.params), assign({
|
|
1154
|
+
data: (_a = _option.data) !== null && _a !== void 0 ? _a : null
|
|
1155
|
+
}, API_OPTION.getIVMrpSetofbookDropdown.option)));
|
|
1156
|
+
|
|
1157
|
+
case 3:
|
|
1158
|
+
_yield$formatHTTP = _context.sent;
|
|
1159
|
+
items = _yield$formatHTTP.items;
|
|
1160
|
+
dataV.value = tranListToTreeData(items);
|
|
1161
|
+
|
|
1162
|
+
case 6:
|
|
1163
|
+
case "end":
|
|
1164
|
+
return _context.stop();
|
|
1165
|
+
}
|
|
1166
|
+
}
|
|
1167
|
+
}, _callee);
|
|
1168
|
+
}));
|
|
1169
|
+
|
|
1170
|
+
return function getData() {
|
|
1171
|
+
return _ref2.apply(this, arguments);
|
|
1172
|
+
};
|
|
1173
|
+
}();
|
|
1174
|
+
/**
|
|
1175
|
+
* 默认参数-------------------------------------
|
|
1176
|
+
* */
|
|
1177
|
+
|
|
1178
|
+
|
|
1179
|
+
var replaceFields = ref((_a = props.replaceFields) !== null && _a !== void 0 ? _a : {
|
|
1180
|
+
children: "children",
|
|
1181
|
+
label: "name",
|
|
1182
|
+
key: "id",
|
|
1183
|
+
value: "id"
|
|
1184
|
+
});
|
|
1185
|
+
var inputV = computed({
|
|
1186
|
+
get: function get() {
|
|
1187
|
+
return props.value;
|
|
1188
|
+
},
|
|
1189
|
+
set: function set(value) {
|
|
1190
|
+
emit("update:value", value);
|
|
1191
|
+
}
|
|
1192
|
+
});
|
|
1193
|
+
/**
|
|
1194
|
+
* 侦听器-------------------------------------
|
|
1195
|
+
* */
|
|
1196
|
+
|
|
1197
|
+
watchEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
1198
|
+
var _a, _b;
|
|
1199
|
+
|
|
1200
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
1201
|
+
while (1) {
|
|
1202
|
+
switch (_context2.prev = _context2.next) {
|
|
1203
|
+
case 0:
|
|
1204
|
+
// 由于打包问题,侦听器一定要在最后,否则找不到getData方法
|
|
1205
|
+
getData({
|
|
1206
|
+
params: assign((_a = props.params) !== null && _a !== void 0 ? _a : {}, {
|
|
1207
|
+
type: 1
|
|
1208
|
+
}),
|
|
1209
|
+
data: (_b = props.data) !== null && _b !== void 0 ? _b : null
|
|
1210
|
+
});
|
|
1211
|
+
|
|
1212
|
+
case 1:
|
|
1213
|
+
case "end":
|
|
1214
|
+
return _context2.stop();
|
|
1215
|
+
}
|
|
1216
|
+
}
|
|
1217
|
+
}, _callee2);
|
|
1218
|
+
})));
|
|
1219
|
+
return function (_ctx, _cache) {
|
|
1220
|
+
var _component_a_tree_select = resolveComponent("a-tree-select");
|
|
1221
|
+
|
|
1222
|
+
var _component_a_form_item = resolveComponent("a-form-item");
|
|
1223
|
+
|
|
1224
|
+
return openBlock(), createBlock(_component_a_form_item, {
|
|
1225
|
+
name: "setOfBookIds",
|
|
1226
|
+
"wrapper-col": {
|
|
1227
|
+
span: 8
|
|
1228
|
+
},
|
|
1229
|
+
rules: [{
|
|
1230
|
+
required: true,
|
|
1231
|
+
message: '请选择所属账套'
|
|
1232
|
+
}]
|
|
1233
|
+
}, {
|
|
1234
|
+
label: withCtx(function () {
|
|
1235
|
+
return [_hoisted_1];
|
|
1236
|
+
}),
|
|
1237
|
+
"default": withCtx(function () {
|
|
1238
|
+
return [createVNode(_component_a_tree_select, {
|
|
1239
|
+
value: unref(inputV),
|
|
1240
|
+
"onUpdate:value": _cache[0] || (_cache[0] = function ($event) {
|
|
1241
|
+
return isRef(inputV) ? inputV.value = $event : null;
|
|
1242
|
+
}),
|
|
1243
|
+
"tree-data": dataV.value,
|
|
1244
|
+
getPopupContainer: function getPopupContainer(triggerNode) {
|
|
1245
|
+
return triggerNode.parentNode;
|
|
1246
|
+
},
|
|
1247
|
+
placeholder: "请选择",
|
|
1248
|
+
showArrow: "",
|
|
1249
|
+
multiple: "",
|
|
1250
|
+
treeDefaultExpandAll: "",
|
|
1251
|
+
style: {
|
|
1252
|
+
"width": "300px"
|
|
1253
|
+
},
|
|
1254
|
+
replaceFields: replaceFields.value
|
|
1255
|
+
}, null, 8
|
|
1256
|
+
/* PROPS */
|
|
1257
|
+
, ["value", "tree-data", "getPopupContainer", "replaceFields"])];
|
|
1258
|
+
}),
|
|
1259
|
+
_: 1
|
|
1260
|
+
/* STABLE */
|
|
1261
|
+
|
|
1262
|
+
});
|
|
1263
|
+
};
|
|
1264
|
+
}
|
|
1265
|
+
});
|
|
1266
|
+
|
|
1267
|
+
script.__file = "src/business-ui/component/IVMrpSetofbookDropdown.vue";
|
|
1090
1268
|
|
|
1091
1269
|
/*
|
|
1092
1270
|
* @Author: Mr.Cong Wei
|
|
1093
1271
|
* @Date: 2022-08-08 18:47:06
|
|
1094
|
-
* @LastEditTime: 2022-08-10 17:
|
|
1272
|
+
* @LastEditTime: 2022-08-10 17:40:13
|
|
1095
1273
|
*/
|
|
1096
|
-
var components = [script$3, script$2, script$1, script];
|
|
1274
|
+
var components = [script$4, script$3, script$2, script$1, script];
|
|
1097
1275
|
installComponents(); // 单独引用
|
|
1098
1276
|
|
|
1099
1277
|
function installComponents() {
|
|
@@ -1115,4 +1293,4 @@ var cAll = {
|
|
|
1115
1293
|
install: install
|
|
1116
1294
|
};
|
|
1117
1295
|
|
|
1118
|
-
export { script as IVMrpLineDropdown, script$
|
|
1296
|
+
export { script$1 as IVMrpLineDropdown, script$4 as IVMrpModal, script$3 as IVMrpOrgDropdown, script$2 as IVMrpProdBaseDropdown, script as IVMrpSetofbookDropdown, cAll as default };
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["@IVNPM/ui"] = {}, global.vue));
|
|
5
5
|
})(this, (function (exports, vue) { 'use strict';
|
|
6
6
|
|
|
7
|
-
var _hoisted_1$
|
|
7
|
+
var _hoisted_1$4 = /*#__PURE__*/vue.createTextVNode("npm包");
|
|
8
8
|
/**
|
|
9
9
|
* show:Boolean 是否显示弹窗 v-model:show="Visible"
|
|
10
10
|
*
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
*
|
|
20
20
|
* */
|
|
21
21
|
|
|
22
|
-
var script$
|
|
22
|
+
var script$4 = /*#__PURE__*/vue.defineComponent({
|
|
23
23
|
__name: 'IVMrpModal',
|
|
24
24
|
props: {
|
|
25
25
|
show: {
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
}, {
|
|
60
60
|
title: vue.withCtx(function () {
|
|
61
61
|
return [vue.renderSlot(_ctx.$slots, "title", {}, function () {
|
|
62
|
-
return [_hoisted_1$
|
|
62
|
+
return [_hoisted_1$4];
|
|
63
63
|
})];
|
|
64
64
|
}),
|
|
65
65
|
closeIcon: vue.withCtx(function () {
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
}
|
|
81
81
|
});
|
|
82
82
|
|
|
83
|
-
script$
|
|
83
|
+
script$4.__file = "src/function-ui/component/IVMrpModal.vue";
|
|
84
84
|
|
|
85
85
|
function ownKeys(object, enumerableOnly) {
|
|
86
86
|
var keys = Object.keys(object);
|
|
@@ -569,6 +569,12 @@
|
|
|
569
569
|
option: _objectSpread2({
|
|
570
570
|
method: "GET"
|
|
571
571
|
}, DEFIND_OPTION)
|
|
572
|
+
},
|
|
573
|
+
getIVMrpSetofbookDropdown: {
|
|
574
|
+
url: "/api/basis-management/setOfBook/all",
|
|
575
|
+
option: _objectSpread2({
|
|
576
|
+
method: "GET"
|
|
577
|
+
}, DEFIND_OPTION)
|
|
572
578
|
}
|
|
573
579
|
};
|
|
574
580
|
var formatHTTP = function formatHTTP(fetch) {
|
|
@@ -596,7 +602,7 @@
|
|
|
596
602
|
return base + api + "?" + urlTemparr.join("&");
|
|
597
603
|
};
|
|
598
604
|
|
|
599
|
-
var _hoisted_1$
|
|
605
|
+
var _hoisted_1$3 = /*#__PURE__*/vue.createElementVNode("div", {
|
|
600
606
|
"class": "text-[#0000006D] text-[14px]"
|
|
601
607
|
}, "所属组织", -1
|
|
602
608
|
/* HOISTED */
|
|
@@ -605,7 +611,7 @@
|
|
|
605
611
|
* 组件定义-------------------------------------
|
|
606
612
|
* */
|
|
607
613
|
|
|
608
|
-
var script$
|
|
614
|
+
var script$3 = /*#__PURE__*/vue.defineComponent({
|
|
609
615
|
__name: 'IVMrpOrgDropdown',
|
|
610
616
|
props: {
|
|
611
617
|
value: {
|
|
@@ -731,7 +737,7 @@
|
|
|
731
737
|
}]
|
|
732
738
|
}, {
|
|
733
739
|
label: vue.withCtx(function () {
|
|
734
|
-
return [_hoisted_1$
|
|
740
|
+
return [_hoisted_1$3];
|
|
735
741
|
}),
|
|
736
742
|
"default": vue.withCtx(function () {
|
|
737
743
|
return [vue.createVNode(_component_a_tree_select, {
|
|
@@ -762,9 +768,9 @@
|
|
|
762
768
|
}
|
|
763
769
|
});
|
|
764
770
|
|
|
765
|
-
script$
|
|
771
|
+
script$3.__file = "src/business-ui/component/IVMrpOrgDropdown.vue";
|
|
766
772
|
|
|
767
|
-
var _hoisted_1$
|
|
773
|
+
var _hoisted_1$2 = /*#__PURE__*/vue.createElementVNode("div", {
|
|
768
774
|
"class": "text-[#0000006D] text-[14px]"
|
|
769
775
|
}, "所属基地", -1
|
|
770
776
|
/* HOISTED */
|
|
@@ -773,7 +779,7 @@
|
|
|
773
779
|
* 组件定义-------------------------------------
|
|
774
780
|
* */
|
|
775
781
|
|
|
776
|
-
var script$
|
|
782
|
+
var script$2 = /*#__PURE__*/vue.defineComponent({
|
|
777
783
|
__name: 'IVMrpProdBaseDropdown',
|
|
778
784
|
props: {
|
|
779
785
|
value: {
|
|
@@ -894,7 +900,7 @@
|
|
|
894
900
|
}]
|
|
895
901
|
}, {
|
|
896
902
|
label: vue.withCtx(function () {
|
|
897
|
-
return [_hoisted_1$
|
|
903
|
+
return [_hoisted_1$2];
|
|
898
904
|
}),
|
|
899
905
|
"default": vue.withCtx(function () {
|
|
900
906
|
return [vue.createVNode(_component_a_select, {
|
|
@@ -924,9 +930,9 @@
|
|
|
924
930
|
}
|
|
925
931
|
});
|
|
926
932
|
|
|
927
|
-
script$
|
|
933
|
+
script$2.__file = "src/business-ui/component/IVMrpProdBaseDropdown.vue";
|
|
928
934
|
|
|
929
|
-
var _hoisted_1 = /*#__PURE__*/vue.createElementVNode("div", {
|
|
935
|
+
var _hoisted_1$1 = /*#__PURE__*/vue.createElementVNode("div", {
|
|
930
936
|
"class": "text-[#0000006D] text-[14px]"
|
|
931
937
|
}, "所属条线", -1
|
|
932
938
|
/* HOISTED */
|
|
@@ -935,7 +941,7 @@
|
|
|
935
941
|
* 组件定义-------------------------------------
|
|
936
942
|
* */
|
|
937
943
|
|
|
938
|
-
var script = /*#__PURE__*/vue.defineComponent({
|
|
944
|
+
var script$1 = /*#__PURE__*/vue.defineComponent({
|
|
939
945
|
__name: 'IVMrpLineDropdown',
|
|
940
946
|
props: {
|
|
941
947
|
value: {
|
|
@@ -1009,7 +1015,7 @@
|
|
|
1009
1015
|
|
|
1010
1016
|
|
|
1011
1017
|
var fieldNames = vue.ref((_a = props.fieldNames) !== null && _a !== void 0 ? _a : {
|
|
1012
|
-
label: "
|
|
1018
|
+
label: "displayName",
|
|
1013
1019
|
value: "id"
|
|
1014
1020
|
});
|
|
1015
1021
|
var inputV = vue.computed({
|
|
@@ -1060,7 +1066,7 @@
|
|
|
1060
1066
|
}]
|
|
1061
1067
|
}, {
|
|
1062
1068
|
label: vue.withCtx(function () {
|
|
1063
|
-
return [_hoisted_1];
|
|
1069
|
+
return [_hoisted_1$1];
|
|
1064
1070
|
}),
|
|
1065
1071
|
"default": vue.withCtx(function () {
|
|
1066
1072
|
return [vue.createVNode(_component_a_select, {
|
|
@@ -1090,14 +1096,186 @@
|
|
|
1090
1096
|
}
|
|
1091
1097
|
});
|
|
1092
1098
|
|
|
1093
|
-
script.__file = "src/business-ui/component/IVMrpLineDropdown.vue";
|
|
1099
|
+
script$1.__file = "src/business-ui/component/IVMrpLineDropdown.vue";
|
|
1100
|
+
|
|
1101
|
+
var _hoisted_1 = /*#__PURE__*/vue.createElementVNode("div", {
|
|
1102
|
+
"class": "text-[#0000006D] text-[14px]"
|
|
1103
|
+
}, "所属账套", -1
|
|
1104
|
+
/* HOISTED */
|
|
1105
|
+
);
|
|
1106
|
+
/**
|
|
1107
|
+
* 组件定义-------------------------------------
|
|
1108
|
+
* */
|
|
1109
|
+
|
|
1110
|
+
var script = /*#__PURE__*/vue.defineComponent({
|
|
1111
|
+
__name: 'IVMrpSetofbookDropdown',
|
|
1112
|
+
props: {
|
|
1113
|
+
value: {
|
|
1114
|
+
type: null,
|
|
1115
|
+
required: true
|
|
1116
|
+
},
|
|
1117
|
+
params: {
|
|
1118
|
+
type: Object,
|
|
1119
|
+
required: false
|
|
1120
|
+
},
|
|
1121
|
+
data: {
|
|
1122
|
+
type: Object,
|
|
1123
|
+
required: false
|
|
1124
|
+
},
|
|
1125
|
+
replaceFields: {
|
|
1126
|
+
type: null,
|
|
1127
|
+
required: false
|
|
1128
|
+
}
|
|
1129
|
+
},
|
|
1130
|
+
emits: ["update:value"],
|
|
1131
|
+
setup: function setup(__props, _ref) {
|
|
1132
|
+
var emit = _ref.emit;
|
|
1133
|
+
|
|
1134
|
+
var _a;
|
|
1135
|
+
|
|
1136
|
+
var props = __props;
|
|
1137
|
+
/**
|
|
1138
|
+
* 获取数据-------------------------------------
|
|
1139
|
+
* */
|
|
1140
|
+
|
|
1141
|
+
var dataV = vue.ref();
|
|
1142
|
+
|
|
1143
|
+
var getData = /*#__PURE__*/function () {
|
|
1144
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
1145
|
+
var _option,
|
|
1146
|
+
_a,
|
|
1147
|
+
_yield$formatHTTP,
|
|
1148
|
+
items,
|
|
1149
|
+
_args = arguments;
|
|
1150
|
+
|
|
1151
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
1152
|
+
while (1) {
|
|
1153
|
+
switch (_context.prev = _context.next) {
|
|
1154
|
+
case 0:
|
|
1155
|
+
_option = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
|
1156
|
+
_context.next = 3;
|
|
1157
|
+
return formatHTTP(fetch(formatUrl(BASE_URL, API_OPTION.getIVMrpSetofbookDropdown.url, _option.params), assign({
|
|
1158
|
+
data: (_a = _option.data) !== null && _a !== void 0 ? _a : null
|
|
1159
|
+
}, API_OPTION.getIVMrpSetofbookDropdown.option)));
|
|
1160
|
+
|
|
1161
|
+
case 3:
|
|
1162
|
+
_yield$formatHTTP = _context.sent;
|
|
1163
|
+
items = _yield$formatHTTP.items;
|
|
1164
|
+
dataV.value = tranListToTreeData(items);
|
|
1165
|
+
|
|
1166
|
+
case 6:
|
|
1167
|
+
case "end":
|
|
1168
|
+
return _context.stop();
|
|
1169
|
+
}
|
|
1170
|
+
}
|
|
1171
|
+
}, _callee);
|
|
1172
|
+
}));
|
|
1173
|
+
|
|
1174
|
+
return function getData() {
|
|
1175
|
+
return _ref2.apply(this, arguments);
|
|
1176
|
+
};
|
|
1177
|
+
}();
|
|
1178
|
+
/**
|
|
1179
|
+
* 默认参数-------------------------------------
|
|
1180
|
+
* */
|
|
1181
|
+
|
|
1182
|
+
|
|
1183
|
+
var replaceFields = vue.ref((_a = props.replaceFields) !== null && _a !== void 0 ? _a : {
|
|
1184
|
+
children: "children",
|
|
1185
|
+
label: "name",
|
|
1186
|
+
key: "id",
|
|
1187
|
+
value: "id"
|
|
1188
|
+
});
|
|
1189
|
+
var inputV = vue.computed({
|
|
1190
|
+
get: function get() {
|
|
1191
|
+
return props.value;
|
|
1192
|
+
},
|
|
1193
|
+
set: function set(value) {
|
|
1194
|
+
emit("update:value", value);
|
|
1195
|
+
}
|
|
1196
|
+
});
|
|
1197
|
+
/**
|
|
1198
|
+
* 侦听器-------------------------------------
|
|
1199
|
+
* */
|
|
1200
|
+
|
|
1201
|
+
vue.watchEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
1202
|
+
var _a, _b;
|
|
1203
|
+
|
|
1204
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
1205
|
+
while (1) {
|
|
1206
|
+
switch (_context2.prev = _context2.next) {
|
|
1207
|
+
case 0:
|
|
1208
|
+
// 由于打包问题,侦听器一定要在最后,否则找不到getData方法
|
|
1209
|
+
getData({
|
|
1210
|
+
params: assign((_a = props.params) !== null && _a !== void 0 ? _a : {}, {
|
|
1211
|
+
type: 1
|
|
1212
|
+
}),
|
|
1213
|
+
data: (_b = props.data) !== null && _b !== void 0 ? _b : null
|
|
1214
|
+
});
|
|
1215
|
+
|
|
1216
|
+
case 1:
|
|
1217
|
+
case "end":
|
|
1218
|
+
return _context2.stop();
|
|
1219
|
+
}
|
|
1220
|
+
}
|
|
1221
|
+
}, _callee2);
|
|
1222
|
+
})));
|
|
1223
|
+
return function (_ctx, _cache) {
|
|
1224
|
+
var _component_a_tree_select = vue.resolveComponent("a-tree-select");
|
|
1225
|
+
|
|
1226
|
+
var _component_a_form_item = vue.resolveComponent("a-form-item");
|
|
1227
|
+
|
|
1228
|
+
return vue.openBlock(), vue.createBlock(_component_a_form_item, {
|
|
1229
|
+
name: "setOfBookIds",
|
|
1230
|
+
"wrapper-col": {
|
|
1231
|
+
span: 8
|
|
1232
|
+
},
|
|
1233
|
+
rules: [{
|
|
1234
|
+
required: true,
|
|
1235
|
+
message: '请选择所属账套'
|
|
1236
|
+
}]
|
|
1237
|
+
}, {
|
|
1238
|
+
label: vue.withCtx(function () {
|
|
1239
|
+
return [_hoisted_1];
|
|
1240
|
+
}),
|
|
1241
|
+
"default": vue.withCtx(function () {
|
|
1242
|
+
return [vue.createVNode(_component_a_tree_select, {
|
|
1243
|
+
value: vue.unref(inputV),
|
|
1244
|
+
"onUpdate:value": _cache[0] || (_cache[0] = function ($event) {
|
|
1245
|
+
return vue.isRef(inputV) ? inputV.value = $event : null;
|
|
1246
|
+
}),
|
|
1247
|
+
"tree-data": dataV.value,
|
|
1248
|
+
getPopupContainer: function getPopupContainer(triggerNode) {
|
|
1249
|
+
return triggerNode.parentNode;
|
|
1250
|
+
},
|
|
1251
|
+
placeholder: "请选择",
|
|
1252
|
+
showArrow: "",
|
|
1253
|
+
multiple: "",
|
|
1254
|
+
treeDefaultExpandAll: "",
|
|
1255
|
+
style: {
|
|
1256
|
+
"width": "300px"
|
|
1257
|
+
},
|
|
1258
|
+
replaceFields: replaceFields.value
|
|
1259
|
+
}, null, 8
|
|
1260
|
+
/* PROPS */
|
|
1261
|
+
, ["value", "tree-data", "getPopupContainer", "replaceFields"])];
|
|
1262
|
+
}),
|
|
1263
|
+
_: 1
|
|
1264
|
+
/* STABLE */
|
|
1265
|
+
|
|
1266
|
+
});
|
|
1267
|
+
};
|
|
1268
|
+
}
|
|
1269
|
+
});
|
|
1270
|
+
|
|
1271
|
+
script.__file = "src/business-ui/component/IVMrpSetofbookDropdown.vue";
|
|
1094
1272
|
|
|
1095
1273
|
/*
|
|
1096
1274
|
* @Author: Mr.Cong Wei
|
|
1097
1275
|
* @Date: 2022-08-08 18:47:06
|
|
1098
|
-
* @LastEditTime: 2022-08-10 17:
|
|
1276
|
+
* @LastEditTime: 2022-08-10 17:40:13
|
|
1099
1277
|
*/
|
|
1100
|
-
var components = [script$3, script$2, script$1, script];
|
|
1278
|
+
var components = [script$4, script$3, script$2, script$1, script];
|
|
1101
1279
|
installComponents(); // 单独引用
|
|
1102
1280
|
|
|
1103
1281
|
function installComponents() {
|
|
@@ -1119,10 +1297,11 @@
|
|
|
1119
1297
|
install: install
|
|
1120
1298
|
};
|
|
1121
1299
|
|
|
1122
|
-
exports.IVMrpLineDropdown = script;
|
|
1123
|
-
exports.IVMrpModal = script$
|
|
1124
|
-
exports.IVMrpOrgDropdown = script$
|
|
1125
|
-
exports.IVMrpProdBaseDropdown = script$
|
|
1300
|
+
exports.IVMrpLineDropdown = script$1;
|
|
1301
|
+
exports.IVMrpModal = script$4;
|
|
1302
|
+
exports.IVMrpOrgDropdown = script$3;
|
|
1303
|
+
exports.IVMrpProdBaseDropdown = script$2;
|
|
1304
|
+
exports.IVMrpSetofbookDropdown = script;
|
|
1126
1305
|
exports["default"] = cAll;
|
|
1127
1306
|
|
|
1128
1307
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.umd.js","sources":["../../shared/dist/utils/index.mjs"],"sourcesContent":["// utils/arr/tree.ts\nfunction arrToTree(list, parentMark, childrenMark) {\n let result = [], temp;\n for (let i = 0; i < list.length; i++) {\n if (!list[i][parentMark]) {\n temp = list.filter(\n (item) => item[parentMark] === list[i][childrenMark]\n );\n if (temp.length > 0) {\n list[i].children = temp;\n }\n result.push(list[i]);\n }\n }\n return result;\n}\nfunction _loadChildren(obj, list) {\n const arr = list.filter((x) => x.parentId == obj.id);\n if (!arr.length)\n return;\n obj.children = arr;\n obj.children.forEach((x) => {\n _loadChildren(x, list);\n });\n return obj;\n}\nfunction tranListToTreeData(list) {\n const results = list.filter((x) => x.parentId == null);\n results.forEach((x) => _loadChildren(x, list));\n return results;\n}\nfunction findTree(id, list, idName) {\n let result;\n if (!list.length)\n return;\n const fn = (id2, list2, idName2) => {\n list2.find((_e) => {\n if (_e[idName2] === id2) {\n result = _e;\n } else if (_e.children && _e.children.length !== 0)\n return fn(id2, _e.children, idName2);\n });\n };\n fn(id, list, idName);\n return result;\n}\n\n// utils/obj/judge.ts\nfunction isPlainObject(obj) {\n let proto, Ctor;\n if (!obj || toString.call(obj) !== \"[object Object]\") {\n return false;\n }\n proto = Object.getPrototypeOf(obj);\n if (!proto) {\n return true;\n }\n Ctor = {}.hasOwnProperty.call(proto, \"constructor\") && proto.constructor;\n return typeof Ctor === \"function\" && {}.hasOwnProperty.toString.call(Ctor) === {}.hasOwnProperty.toString.call(Object);\n}\nvar isObject = (val) => val !== null && typeof val === \"object\";\n\n// utils/obj/cache.ts\nvar assign = Object.assign;\nexport {\n arrToTree,\n assign,\n findTree,\n isObject,\n isPlainObject,\n tranListToTreeData\n};\n"],"names":["_loadChildren","obj","list","arr","filter","x","parentId","id","length","children","forEach","tranListToTreeData","results","isObject","val","assign","Object"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgBA,SAASA,aAAT,CAAuBC,GAAvB,EAA4BC,IAA5B,EAAkC;EAChC,EAAA,IAAMC,GAAG,GAAGD,IAAI,CAACE,MAAL,CAAY,UAACC,CAAD,EAAA;EAAA,IAAA,OAAOA,CAAC,CAACC,QAAF,IAAcL,GAAG,CAACM,EAAzB,CAAA;EAAA,GAAZ,CAAZ,CAAA;EACA,EAAA,IAAI,CAACJ,GAAG,CAACK,MAAT,EACE,OAAA;IACFP,GAAG,CAACQ,QAAJ,GAAeN,GAAf,CAAA;EACAF,EAAAA,GAAG,CAACQ,QAAJ,CAAaC,OAAb,CAAqB,UAACL,CAAD,EAAO;EAC1BL,IAAAA,aAAa,CAACK,CAAD,EAAIH,IAAJ,CAAb,CAAA;KADF,CAAA,CAAA;EAGA,EAAA,OAAOD,GAAP,CAAA;EACD,CAAA;EACD,SAASU,kBAAT,CAA4BT,IAA5B,EAAkC;EAChC,EAAA,IAAMU,OAAO,GAAGV,IAAI,CAACE,MAAL,CAAY,UAACC,CAAD,EAAA;EAAA,IAAA,OAAOA,CAAC,CAACC,QAAF,IAAc,IAArB,CAAA;EAAA,GAAZ,CAAhB,CAAA;EACAM,EAAAA,OAAO,CAACF,OAAR,CAAgB,UAACL,CAAD,EAAA;EAAA,IAAA,OAAOL,aAAa,CAACK,CAAD,EAAIH,IAAJ,CAApB,CAAA;KAAhB,CAAA,CAAA;EACA,EAAA,OAAOU,OAAP,CAAA;EACD,CAAA;EA8BD,IAAIC,QAAQ,GAAG,SAAXA,QAAW,CAACC,GAAD,EAAA;EAAA,EAAA,OAASA,GAAG,KAAK,IAAR,IAAgB,OAAOA,CAAAA,GAAP,MAAe,QAAxC,CAAA;EAAA,CAAf;EAGA,IAAIC,MAAM,GAAGC,MAAM,CAACD,MAApB
|
|
1
|
+
{"version":3,"file":"index.umd.js","sources":["../../shared/dist/utils/index.mjs"],"sourcesContent":["// utils/arr/tree.ts\nfunction arrToTree(list, parentMark, childrenMark) {\n let result = [], temp;\n for (let i = 0; i < list.length; i++) {\n if (!list[i][parentMark]) {\n temp = list.filter(\n (item) => item[parentMark] === list[i][childrenMark]\n );\n if (temp.length > 0) {\n list[i].children = temp;\n }\n result.push(list[i]);\n }\n }\n return result;\n}\nfunction _loadChildren(obj, list) {\n const arr = list.filter((x) => x.parentId == obj.id);\n if (!arr.length)\n return;\n obj.children = arr;\n obj.children.forEach((x) => {\n _loadChildren(x, list);\n });\n return obj;\n}\nfunction tranListToTreeData(list) {\n const results = list.filter((x) => x.parentId == null);\n results.forEach((x) => _loadChildren(x, list));\n return results;\n}\nfunction findTree(id, list, idName) {\n let result;\n if (!list.length)\n return;\n const fn = (id2, list2, idName2) => {\n list2.find((_e) => {\n if (_e[idName2] === id2) {\n result = _e;\n } else if (_e.children && _e.children.length !== 0)\n return fn(id2, _e.children, idName2);\n });\n };\n fn(id, list, idName);\n return result;\n}\n\n// utils/obj/judge.ts\nfunction isPlainObject(obj) {\n let proto, Ctor;\n if (!obj || toString.call(obj) !== \"[object Object]\") {\n return false;\n }\n proto = Object.getPrototypeOf(obj);\n if (!proto) {\n return true;\n }\n Ctor = {}.hasOwnProperty.call(proto, \"constructor\") && proto.constructor;\n return typeof Ctor === \"function\" && {}.hasOwnProperty.toString.call(Ctor) === {}.hasOwnProperty.toString.call(Object);\n}\nvar isObject = (val) => val !== null && typeof val === \"object\";\n\n// utils/obj/cache.ts\nvar assign = Object.assign;\nexport {\n arrToTree,\n assign,\n findTree,\n isObject,\n isPlainObject,\n tranListToTreeData\n};\n"],"names":["_loadChildren","obj","list","arr","filter","x","parentId","id","length","children","forEach","tranListToTreeData","results","isObject","val","assign","Object"],"mappings":"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"}
|