xyvcard-asset 0.0.8 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (152) hide show
  1. package/README.md +52 -52
  2. package/dist/assign-DzQUNp-Y.mjs +1626 -0
  3. package/dist/{edit-zFZfd8e1.mjs → edit-CCrekeeb.mjs} +1 -1
  4. package/dist/{edit-CE3u81Q0.mjs → edit-DdzPtYyH.mjs} +1 -1
  5. package/dist/edit-Dn-QMuy6.mjs +4 -0
  6. package/dist/edit-FdqpKRgF.mjs +294 -0
  7. package/dist/{edit.vue_vue_type_script_setup_true_lang-BdkCgqqE.mjs → edit.vue_vue_type_script_setup_true_lang-BP4-GiBE.mjs} +152 -145
  8. package/dist/edit.vue_vue_type_script_setup_true_lang-CkBAP9Bk.mjs +547 -0
  9. package/dist/edit.vue_vue_type_script_setup_true_lang-IWUY0BmY.mjs +278 -0
  10. package/dist/index copy-CxTCJcvX.mjs +75 -0
  11. package/dist/index-B4vUTwSW.mjs +171 -0
  12. package/dist/index-BK24yagy.mjs +1663 -0
  13. package/dist/index-BW-5IuVN.mjs +91 -0
  14. package/dist/index-BWwU9hSp.mjs +320 -0
  15. package/dist/index-BvKWLFdr.mjs +345 -0
  16. package/dist/index-BwbnYpa1.mjs +29 -0
  17. package/dist/index-C5_f5Lce.mjs +213 -0
  18. package/dist/index-CSMEsPcN.mjs +432 -0
  19. package/dist/index-CgAq70-p.mjs +314 -0
  20. package/dist/index-CugJCeed.mjs +373 -0
  21. package/dist/index-DElPNxc7.mjs +398 -0
  22. package/dist/index-De4u-LEl.mjs +325 -0
  23. package/dist/index-Dyo7je0Z.mjs +38 -0
  24. package/dist/index-FUnFB7nG.mjs +61 -0
  25. package/dist/index-GhvyIwc3.mjs +4 -0
  26. package/dist/index-axEqTssj.mjs +378 -0
  27. package/dist/index-jOcS7tqC.mjs +311 -0
  28. package/dist/index-pfeu6d82.mjs +4 -0
  29. package/dist/index.mjs +2753 -35
  30. package/dist/index.vue_vue_type_script_setup_true_lang-BhVtd4iX.mjs +110 -0
  31. package/dist/index.vue_vue_type_script_setup_true_lang-Dh1DZzIU.mjs +54 -0
  32. package/dist/index/345/244/207/344/273/275-BfKo5eBT.mjs +323 -0
  33. package/dist/style.css +1 -1
  34. package/dts/api/asset/asset-asset/index.d.ts +10 -5
  35. package/dts/api/asset/asset-asset/types.d.ts +39 -23
  36. package/dts/api/asset/asset-asset-detail/index.d.ts +12 -0
  37. package/dts/api/asset/asset-asset-detail/types.d.ts +56 -0
  38. package/dts/api/asset/asset-depreciation-record/index.d.ts +11 -0
  39. package/dts/api/asset/asset-depreciation-record/types.d.ts +38 -0
  40. package/dts/api/asset/asset-inventory-record/index.d.ts +10 -0
  41. package/dts/api/asset/asset-inventory-record/types.d.ts +62 -0
  42. package/dts/api/asset/asset-service-appt-member/index.d.ts +1 -12
  43. package/dts/api/asset/asset-service-appt-member/types.d.ts +1 -44
  44. package/dts/api/asset/asset-service-appt-record/index.d.ts +1 -12
  45. package/dts/api/asset/asset-service-appt-record/types.d.ts +7 -68
  46. package/dts/api/asset/asset-site/index.d.ts +1 -2
  47. package/dts/api/asset/asset-site/types.d.ts +4 -14
  48. package/dts/api/asset/asset-site-service/index.d.ts +1 -2
  49. package/dts/api/asset/asset-site-service/types.d.ts +1 -0
  50. package/dts/api/asset/text/index.d.ts +140 -0
  51. package/dts/api/asset/text/types.d.ts +179 -0
  52. package/dts/api/dict.d.ts +1 -4
  53. package/dts/api/index.d.ts +2 -0
  54. package/dts/components/{TMaps → PeopleSelectAsset}/index.vue.d.ts +5 -7
  55. package/dts/components/Upload/ImageUpload.vue.d.ts +1 -1
  56. package/dts/components/deptPeopleSelectAsset/index.vue.d.ts +14 -0
  57. package/dts/constant.d.ts +4 -1
  58. package/dts/index.d.ts +3 -1
  59. package/dts/lang/asset/zh-cn.d.ts +60 -1
  60. package/dts/router/page.d.ts +6 -0
  61. package/dts/src/api/asset/asset-asset/index.d.ts +10 -5
  62. package/dts/src/api/asset/asset-asset/types.d.ts +39 -23
  63. package/dts/src/api/asset/asset-asset-detail/index.d.ts +12 -0
  64. package/dts/src/api/asset/asset-asset-detail/types.d.ts +56 -0
  65. package/dts/src/api/asset/asset-depreciation-record/index.d.ts +11 -0
  66. package/dts/src/api/asset/asset-depreciation-record/types.d.ts +38 -0
  67. package/dts/src/api/asset/asset-inventory-record/index.d.ts +10 -0
  68. package/dts/src/api/asset/asset-inventory-record/types.d.ts +62 -0
  69. package/dts/src/api/asset/asset-service-appt-member/index.d.ts +1 -12
  70. package/dts/src/api/asset/asset-service-appt-member/types.d.ts +1 -44
  71. package/dts/src/api/asset/asset-service-appt-record/index.d.ts +1 -12
  72. package/dts/src/api/asset/asset-service-appt-record/types.d.ts +7 -68
  73. package/dts/src/api/asset/asset-site/index.d.ts +1 -2
  74. package/dts/src/api/asset/asset-site/types.d.ts +4 -14
  75. package/dts/src/api/asset/asset-site-service/index.d.ts +1 -2
  76. package/dts/src/api/asset/asset-site-service/types.d.ts +1 -0
  77. package/dts/src/api/asset/text/index.d.ts +0 -0
  78. package/dts/src/api/asset/text/types.d.ts +0 -0
  79. package/dts/src/api/dict.d.ts +1 -4
  80. package/dts/src/api/index.d.ts +2 -0
  81. package/dts/src/components/PeopleSelect/index.vue.d.ts +18 -0
  82. package/dts/src/components/Upload/ImageUpload.vue.d.ts +1 -1
  83. package/dts/src/components copy/PeopleSelect/index.vue.d.ts +18 -0
  84. package/dts/src/components copy/PeopleSelect//345/244/207/344/273/275/index copy 2.vue.d.ts" +34 -0
  85. package/dts/src/components copy/PeopleSelect//345/244/207/344/273/275/index copy 22.vue.d.ts" +18 -0
  86. package/dts/src/components copy/PeopleSelect//345/244/207/344/273/275/index copy.vue.d.ts" +34 -0
  87. package/dts/src/components copy/PeopleSelect//345/244/207/344/273/275/index/345/215/225/351/200/211/346/241/206/346/234/200/346/226/260.vue.d.ts" +34 -0
  88. package/dts/src/components copy/PeopleSelect//345/244/207/344/273/275/tree/351/200/211/346/213/251/346/241/206/344/270/215/345/261/225/347/244/272/346/225/260/346/215/256,/344/270/213/346/226/271/351/242/204/350/247/210/346/225/260/346/215/256.vue.d.ts" +18 -0
  89. package/dts/src/components copy/PeopleSelect//345/244/207/344/273/275//345/217/214/351/200/211/346/213/251.vue.d.ts" +42 -0
  90. package/dts/src/components copy/PeopleSelect//345/244/207/344/273/275//351/200/211/346/213/251/344/272/272/345/221/230/index.vue.d.ts" +34 -0
  91. package/dts/src/components copy/Upload/ImageUpload.vue.d.ts +38 -0
  92. package/dts/src/components copy/Upload/MultiUpload.vue.d.ts +24 -0
  93. package/dts/src/constant.d.ts +4 -1
  94. package/dts/src/index.d.ts +3 -1
  95. package/dts/src/lang/asset/zh-cn.d.ts +59 -1
  96. package/dts/src/router/page.d.ts +4 -0
  97. package/dts/src/utils/momentPlugin.d.ts +5 -0
  98. package/dts/{views/asset/asset-service-appt-member/edit.vue.d.ts → src/views/asset/asset-asset/assign.vue.d.ts} +14 -7
  99. package/dts/src/views/asset/asset-asset/info/index.vue.d.ts +2 -0
  100. package/dts/src/views/asset/{asset-service-appt-member → asset-asset-detail}/edit.vue.d.ts +5 -7
  101. package/dts/src/views/asset/asset-asset-detail/index.vue.d.ts +2 -0
  102. package/dts/src/views/asset/asset-depreciation-record/index.vue.d.ts +2 -0
  103. package/dts/src/views/asset/asset-depreciation-record/info/index.vue.d.ts +2 -0
  104. package/dts/src/views/asset/asset-inventory-record/dialogSelect/index.vue.d.ts +6 -0
  105. package/dts/src/views/asset/asset-inventory-record/index.vue.d.ts +2 -0
  106. package/dts/src/views/asset/asset-inventory-record/index/345/244/207/344/273/275.vue.d.ts +2 -0
  107. package/dts/src/views/asset/asset-inventory-record/info/index.vue.d.ts +2 -0
  108. package/dts/src/views/asset/asset-inventory-record/text/index copy.vue.d.ts +2 -0
  109. package/dts/src/views/asset/asset-inventory-record/text/index.vue.d.ts +2 -0
  110. package/dts/tsconfig.tsbuildinfo +1 -1
  111. package/dts/utils/momentPlugin.d.ts +5 -0
  112. package/dts/views/asset/{asset-service-appt-record/edit.vue.d.ts → asset-asset/assign.vue.d.ts} +14 -7
  113. package/dts/views/asset/asset-asset/info/index.vue.d.ts +2 -0
  114. package/dts/{src/views/asset/asset-service-appt-record → views/asset/asset-asset-detail}/edit.vue.d.ts +5 -7
  115. package/dts/views/asset/asset-asset-detail/index.vue.d.ts +2 -0
  116. package/dts/views/asset/asset-depreciation-record/index.vue.d.ts +2 -0
  117. package/dts/views/asset/asset-depreciation-record/info/index.vue.d.ts +2 -0
  118. package/dts/views/asset/asset-inventory-record/dialogSelect/index.vue.d.ts +6 -0
  119. package/dts/views/asset/asset-inventory-record/index.vue.d.ts +2 -0
  120. package/dts/views/asset/asset-inventory-record/indexOld.vue.d.ts +2 -0
  121. package/dts/views/asset/asset-inventory-record/index/345/244/207/344/273/275.vue.d.ts +2 -0
  122. package/dts/views/asset/asset-inventory-record/info/index.vue.d.ts +2 -0
  123. package/dts/views/asset/asset-inventory-record/text/index copy.vue.d.ts +2 -0
  124. package/dts/views/asset/asset-inventory-record/text/index.vue.d.ts +2 -0
  125. package/package.json +7 -6
  126. package/dist/edit-Bo9bnbUP.mjs +0 -492
  127. package/dist/edit-DJFxVmvv.mjs +0 -624
  128. package/dist/edit-qp_2xtTZ.mjs +0 -242
  129. package/dist/edit.vue_vue_type_script_setup_true_lang-CekLyjO-.mjs +0 -322
  130. package/dist/edit.vue_vue_type_style_index_0_scoped_198fdb2f_lang-l0sNRNKZ.mjs +0 -1
  131. package/dist/index-Bf5U4Ucl.mjs +0 -369
  132. package/dist/index-Bh2imlN_.mjs +0 -149
  133. package/dist/index-CHNiaFZk.mjs +0 -291
  134. package/dist/index-CmlP_Rro.mjs +0 -332
  135. package/dist/index-Cqw_E8lr.mjs +0 -1269
  136. package/dist/index-DA_FS24d.mjs +0 -146
  137. package/dist/index-DKmGNvQl.mjs +0 -370
  138. package/dist/index-DLxpE9s5.mjs +0 -305
  139. package/dist/index-DWaL87j5.mjs +0 -89
  140. package/dist/index-jOnQLJaB.mjs +0 -416
  141. package/dist/index-pyyjj1xa.mjs +0 -187
  142. package/dist/index.vue_vue_type_script_setup_true_lang-C_itMCoU.mjs +0 -37
  143. package/dts/api/org/union-org/index.d.ts +0 -14
  144. package/dts/api/org/union-org/types.d.ts +0 -49
  145. package/dts/components/EnumRadio/index.vue.d.ts +0 -18
  146. package/dts/components/EnumSelect/index.vue.d.ts +0 -18
  147. package/dts/src/api/org/union-org/index.d.ts +0 -14
  148. package/dts/src/api/org/union-org/types.d.ts +0 -49
  149. package/dts/src/components/EnumRadio/index.vue.d.ts +0 -18
  150. package/dts/src/components/EnumSelect/index.vue.d.ts +0 -18
  151. /package/dts/{views/asset/asset-service-appt-member → src/components/deptPeopleSelect}/index.vue.d.ts +0 -0
  152. /package/dts/src/{views/asset/asset-service-appt-member → components copy/deptPeopleSelect}/index.vue.d.ts +0 -0
@@ -0,0 +1,110 @@
1
+ import { defineComponent as x, ref as a, reactive as u, resolveComponent as p, openBlock as C, createBlock as w, unref as l, isRef as D, withCtx as d, createVNode as r, createElementVNode as i, toDisplayString as R } from "vue";
2
+ const j = /* @__PURE__ */ x({
3
+ __name: "index",
4
+ setup(S) {
5
+ const c = a(), m = a([]);
6
+ console.log("父组件的selectPeoples---", m.value);
7
+ function f(t) {
8
+ console.log("子组件的getValue---", t), n.selectPeoples = t;
9
+ }
10
+ const n = u({
11
+ selectPeoples: []
12
+ }), _ = u({
13
+ people: [
14
+ {
15
+ required: !0,
16
+ message: "请选择人员",
17
+ trigger: "blur"
18
+ }
19
+ ]
20
+ }), v = u({
21
+ label: "选择人员",
22
+ prop: "people",
23
+ // 模糊查询人员
24
+ peopleTableData: [
25
+ {
26
+ key: "1",
27
+ value: "张三",
28
+ label: "张三",
29
+ deep: "测试",
30
+ position: "测试工程师"
31
+ },
32
+ {
33
+ key: "2",
34
+ value: "里斯",
35
+ label: "里斯",
36
+ deep: "前端部",
37
+ position: "前端工程师"
38
+ },
39
+ {
40
+ key: "6",
41
+ value: "里斯",
42
+ label: "里斯",
43
+ deep: "前端部",
44
+ position: "前端工程师"
45
+ },
46
+ {
47
+ key: "3",
48
+ value: "王五",
49
+ label: "王五",
50
+ deep: "java",
51
+ position: "实习"
52
+ }
53
+ ],
54
+ deptId: "1"
55
+ });
56
+ function g() {
57
+ var t;
58
+ (t = c.value) == null || t.validate((e) => {
59
+ console.log(e), e && (o.value = !1);
60
+ });
61
+ }
62
+ const o = a(!0);
63
+ function b() {
64
+ o.value && (o.value = !1);
65
+ }
66
+ return (t, e) => {
67
+ const P = p("PeopleSelect"), V = p("el-form-item"), k = p("el-form"), y = p("el-dialog");
68
+ return C(), w(y, {
69
+ modelValue: l(o),
70
+ "onUpdate:modelValue": e[1] || (e[1] = (s) => D(o) ? o.value = s : null),
71
+ onClose: b
72
+ }, {
73
+ default: d(() => [
74
+ r(k, {
75
+ ref_key: "FormRef",
76
+ ref: c,
77
+ model: l(n),
78
+ "label-width": "120px",
79
+ rules: l(_)
80
+ }, {
81
+ default: d(() => [
82
+ r(V, {
83
+ label: "选择人员",
84
+ prop: "people"
85
+ }, {
86
+ default: d(() => [
87
+ r(P, {
88
+ modelValue: l(n).selectPeoples,
89
+ "onUpdate:modelValue": e[0] || (e[0] = (s) => l(n).selectPeoples = s),
90
+ "dept-id": l(v).deptId,
91
+ style: { width: "500px" },
92
+ onUpdatePeoples: f
93
+ }, null, 8, ["modelValue", "dept-id"]),
94
+ i("span", null, "子组件值--" + R(l(n).selectPeoples), 1)
95
+ ]),
96
+ _: 1
97
+ })
98
+ ]),
99
+ _: 1
100
+ }, 8, ["model", "rules"]),
101
+ i("button", { onClick: g }, "弹框按钮触发组件提交事件")
102
+ ]),
103
+ _: 1
104
+ }, 8, ["modelValue"]);
105
+ };
106
+ }
107
+ });
108
+ export {
109
+ j as _
110
+ };
@@ -0,0 +1,54 @@
1
+ import { defineComponent as v, reactive as t, useModel as V, resolveComponent as o, openBlock as g, createBlock as x, withCtx as n, createVNode as a, unref as r, createElementVNode as C } from "vue";
2
+ const B = /* @__PURE__ */ v({
3
+ __name: "index",
4
+ props: {
5
+ modelValue: { type: Boolean },
6
+ modelModifiers: {}
7
+ },
8
+ emits: ["update:modelValue"],
9
+ setup(u) {
10
+ const d = t({}), e = V(u, "modelValue"), s = t({
11
+ people: [
12
+ {
13
+ required: !0,
14
+ message: "请选择人员",
15
+ trigger: "blur"
16
+ }
17
+ ]
18
+ });
19
+ function m() {
20
+ e.value = !1;
21
+ }
22
+ function p() {
23
+ e.value && (e.value = !1);
24
+ }
25
+ return (b, l) => {
26
+ const c = o("dept-people-select"), i = o("el-form"), f = o("el-dialog");
27
+ return g(), x(f, {
28
+ modelValue: e.value,
29
+ "onUpdate:modelValue": l[0] || (l[0] = (_) => e.value = _),
30
+ title: "选择人员",
31
+ onClose: p
32
+ }, {
33
+ default: n(() => [
34
+ a(i, {
35
+ ref: "FormRef",
36
+ model: r(d),
37
+ "label-width": "120px",
38
+ rules: r(s)
39
+ }, {
40
+ default: n(() => [
41
+ a(c)
42
+ ]),
43
+ _: 1
44
+ }, 8, ["model", "rules"]),
45
+ C("button", { onClick: m }, "弹框按钮触发组件提交事件")
46
+ ]),
47
+ _: 1
48
+ }, 8, ["modelValue"]);
49
+ };
50
+ }
51
+ });
52
+ export {
53
+ B as _
54
+ };
@@ -0,0 +1,323 @@
1
+ import { defineComponent as x, ref as m, getCurrentInstance as ee, resolveComponent as i, resolveDirective as te, openBlock as f, createElementBlock as oe, createElementVNode as u, createVNode as n, withCtx as l, unref as r, withKeys as R, createTextVNode as w, toDisplayString as d, isRef as $, createBlock as V, createCommentVNode as N, withDirectives as le } from "vue";
2
+ import { _ as ne } from "./index.vue_vue_type_script_setup_true_lang-BhVtd4iX.mjs";
3
+ import { _ as ae } from "./index.vue_vue_type_script_setup_true_lang-Dh1DZzIU.mjs";
4
+ import { useTableHooks as re } from "jmash-core";
5
+ import { useI18n as ie } from "vue-i18n";
6
+ import { c as C } from "./common-kbgEWG-E.mjs";
7
+ import { i as se } from "./index-Dyo7je0Z.mjs";
8
+ import { D as b } from "./index-BK24yagy.mjs";
9
+ import { useRouter as ue } from "vue-router";
10
+ const de = { class: "app-container" }, me = { class: "search-container" }, we = /* @__PURE__ */ x({
11
+ __name: "index备份",
12
+ setup(pe) {
13
+ const h = m([
14
+ "72ca779c-4463-411c-866c-98fdedfb5d36",
15
+ "933f2a2d-078b-415d-8610-657084466c1f"
16
+ ]), p = m(!1);
17
+ function D(o) {
18
+ console.log("ceshi", o), p.value = !1, s.getList();
19
+ }
20
+ const g = m(!1), { proxy: T } = ee(), I = ue(), { t: P } = ie();
21
+ b.unionOrgBizLayDict.useValues();
22
+ const a = m({}), {
23
+ tableHooks: s,
24
+ multipleTableRef: U,
25
+ queryFormRef: j,
26
+ listLoading: z,
27
+ tableData: A,
28
+ total: _
29
+ } = re(P, se, a);
30
+ let v = m([
31
+ // 所属工会
32
+ {
33
+ label: "inventoryRecord.orgId",
34
+ prop: "orgId",
35
+ sortable: "custom",
36
+ isColumn: !0,
37
+ slotName: "orgId",
38
+ columnType: "slot"
39
+ },
40
+ // 场地名称
41
+ {
42
+ label: "inventoryRecord.siteName",
43
+ prop: "siteName",
44
+ sortable: "custom",
45
+ isColumn: !0
46
+ },
47
+ // 盘点时间
48
+ {
49
+ label: "inventoryRecord.inventoryTime",
50
+ prop: "inventoryTime",
51
+ sortable: "custom",
52
+ isColumn: !0,
53
+ slotName: "inventoryTime",
54
+ columnType: "slot"
55
+ },
56
+ // 盘点人
57
+ {
58
+ label: "inventoryRecord.userName",
59
+ prop: "userName",
60
+ width: "150",
61
+ sortable: "custom",
62
+ isColumn: !0
63
+ },
64
+ // 盘点结果
65
+ {
66
+ label: "inventoryRecord.inventoryStatus",
67
+ prop: "inventoryStatus",
68
+ sortable: "custom",
69
+ isColumn: !0,
70
+ slotName: "inventoryStatus",
71
+ columnType: "slot"
72
+ },
73
+ {
74
+ label: "common.operate",
75
+ width: "100",
76
+ slotName: "operation",
77
+ columnType: "slot",
78
+ fixed: "right",
79
+ isColumn: !0
80
+ }
81
+ ]);
82
+ const c = m([]);
83
+ function B(o) {
84
+ if (o) {
85
+ if (c.value = o, c.value.length !== 2) return;
86
+ a.value.inventoryStartTime = C(
87
+ o[0]
88
+ ).getFullDate(), a.value.inventoryEndTime = C(o[1]).getFullDate(), s.handleQuery();
89
+ } else
90
+ S();
91
+ }
92
+ function L(o) {
93
+ s.selectionRows.value = o;
94
+ }
95
+ function S() {
96
+ c.value = [], a.value.inventoryStartTime = "", a.value.inventoryEndTime = "", s.resetQuery();
97
+ }
98
+ function Y(o) {
99
+ I.push({
100
+ path: "/asset/asset-inventory-record/inventoryInfo",
101
+ query: { inventoryId: o.inventoryId }
102
+ });
103
+ }
104
+ return s.getList(), (o, t) => {
105
+ const Q = i("el-tree-select"), y = i("el-form-item"), E = i("el-input"), q = i("jmash-select"), F = i("el-date-picker"), k = i("el-button"), H = i("el-form"), K = i("jmash-column-select"), M = i("el-col"), O = i("el-row"), G = i("jmash-table"), J = i("jmash-pagination"), W = i("el-card"), X = i("PeopleSelect"), Z = te("hasPerm");
106
+ return f(), oe("div", de, [
107
+ u("div", me, [
108
+ n(H, {
109
+ ref_key: "queryFormRef",
110
+ ref: j,
111
+ model: a.value,
112
+ inline: !0
113
+ }, {
114
+ default: l(() => [
115
+ n(y, {
116
+ label: o.$t("inventoryRecord.orgId"),
117
+ prop: "orgId"
118
+ }, {
119
+ default: l(() => [
120
+ n(Q, {
121
+ modelValue: a.value.orgId,
122
+ "onUpdate:modelValue": t[0] || (t[0] = (e) => a.value.orgId = e),
123
+ data: r(b).unionOrgBizLayDict.values,
124
+ filterable: "",
125
+ clearable: "",
126
+ "check-strictly": "",
127
+ "render-after-expand": !1,
128
+ placeholder: o.$t("inventoryRecord.orgIdPlaceholder"),
129
+ class: "!w-[203px]",
130
+ onKeyup: t[1] || (t[1] = R((e) => r(s).handleQuery(), ["enter"]))
131
+ }, null, 8, ["modelValue", "data", "placeholder"])
132
+ ]),
133
+ _: 1
134
+ }, 8, ["label"]),
135
+ n(y, {
136
+ label: o.$t("inventoryRecord.siteName"),
137
+ prop: "likeSiteName"
138
+ }, {
139
+ default: l(() => [
140
+ n(E, {
141
+ modelValue: a.value.likeSiteName,
142
+ "onUpdate:modelValue": t[2] || (t[2] = (e) => a.value.likeSiteName = e),
143
+ placeholder: o.$t("inventoryRecord.siteNamePlaceholder"),
144
+ onKeyup: t[3] || (t[3] = R((e) => r(s).handleQuery(), ["enter"]))
145
+ }, null, 8, ["modelValue", "placeholder"])
146
+ ]),
147
+ _: 1
148
+ }, 8, ["label"]),
149
+ n(y, {
150
+ label: o.$t("inventoryRecord.inventoryStatus"),
151
+ prop: "inventoryStatus"
152
+ }, {
153
+ default: l(() => [
154
+ n(q, {
155
+ modelValue: a.value.inventoryStatus,
156
+ "onUpdate:modelValue": t[4] || (t[4] = (e) => a.value.inventoryStatus = e),
157
+ placeholder: o.$t("inventoryRecord.inventoryStatus"),
158
+ data: r(b).inventoryResults.values,
159
+ onKeyup: t[5] || (t[5] = R((e) => r(s).handleQuery(), ["enter"]))
160
+ }, null, 8, ["modelValue", "placeholder", "data"])
161
+ ]),
162
+ _: 1
163
+ }, 8, ["label"]),
164
+ n(y, {
165
+ label: o.$t("inventoryRecord.inventoryTime"),
166
+ prop: "inventoryTime"
167
+ }, {
168
+ default: l(() => [
169
+ n(F, {
170
+ modelValue: c.value,
171
+ "onUpdate:modelValue": t[6] || (t[6] = (e) => c.value = e),
172
+ class: "dropdown-left",
173
+ type: "daterange",
174
+ "start-placeholder": o.$t("serviceApptRecord.startDate"),
175
+ "end-placeholder": o.$t("serviceApptRecord.endDate"),
176
+ format: "YYYY-MM-DD",
177
+ onChange: B
178
+ }, null, 8, ["modelValue", "start-placeholder", "end-placeholder"])
179
+ ]),
180
+ _: 1
181
+ }, 8, ["label"]),
182
+ n(y, { class: "search-btn" }, {
183
+ default: l(() => [
184
+ n(k, {
185
+ type: "primary",
186
+ onClick: t[7] || (t[7] = (e) => r(s).handleQuery())
187
+ }, {
188
+ default: l(() => [
189
+ w(d(o.$t("common.search")), 1)
190
+ ]),
191
+ _: 1
192
+ }),
193
+ n(k, { onClick: S }, {
194
+ default: l(() => [
195
+ w(d(o.$t("common.reset")), 1)
196
+ ]),
197
+ _: 1
198
+ })
199
+ ]),
200
+ _: 1
201
+ })
202
+ ]),
203
+ _: 1
204
+ }, 8, ["model"])
205
+ ]),
206
+ n(W, {
207
+ shadow: "never",
208
+ class: "table-container"
209
+ }, {
210
+ header: l(() => [
211
+ n(O, {
212
+ justify: "space-between",
213
+ span: 20
214
+ }, {
215
+ default: l(() => [
216
+ n(M, {
217
+ span: 24,
218
+ class: "container-float"
219
+ }, {
220
+ default: l(() => [
221
+ n(K, {
222
+ modelValue: r(v),
223
+ "onUpdate:modelValue": t[8] || (t[8] = (e) => $(v) ? v.value = e : v = e),
224
+ "label-name": "asset/asset-inventory-record"
225
+ }, null, 8, ["modelValue"])
226
+ ]),
227
+ _: 1
228
+ })
229
+ ]),
230
+ _: 1
231
+ })
232
+ ]),
233
+ footer: l(() => [
234
+ r(_) > 0 ? (f(), V(J, {
235
+ key: 0,
236
+ total: r(_),
237
+ "onUpdate:total": t[9] || (t[9] = (e) => $(_) ? _.value = e : null),
238
+ "current-page": a.value.curPage,
239
+ "onUpdate:currentPage": t[10] || (t[10] = (e) => a.value.curPage = e),
240
+ "page-size": a.value.pageSize,
241
+ "onUpdate:pageSize": t[11] || (t[11] = (e) => a.value.pageSize = e),
242
+ onPagination: t[12] || (t[12] = (e) => r(s).getList())
243
+ }, null, 8, ["total", "current-page", "page-size"])) : N("", !0)
244
+ ]),
245
+ default: l(() => [
246
+ n(G, {
247
+ ref_key: "multipleTableRef",
248
+ ref: U,
249
+ class: "table-top",
250
+ "row-key": "inventoryId",
251
+ "list-loading": r(z),
252
+ data: r(A),
253
+ "table-label": r(v),
254
+ onSelectionChange: L
255
+ }, {
256
+ orgId: l((e) => [
257
+ u("span", null, d(r(b).unionOrgBizLayDict.getValue(e.data.row.orgId)), 1)
258
+ ]),
259
+ siteName: l((e) => [
260
+ u("span", null, d(e.data.row.siteName), 1)
261
+ ]),
262
+ inventoryTime: l((e) => [
263
+ u("span", null, d(r(T).$moment.formatDate(
264
+ e.data.row.inventoryTime,
265
+ "YYYY-MM-DD HH:mm"
266
+ )), 1)
267
+ ]),
268
+ userName: l((e) => [
269
+ u("span", null, d(e.data.row.userName), 1)
270
+ ]),
271
+ inventoryStatus: l((e) => [
272
+ u("span", null, d(r(b).inventoryResults.getEnumValue(e.data.row.inventoryStatus)), 1)
273
+ ]),
274
+ inventoryNote: l((e) => [
275
+ u("span", null, d(e.data.row.inventoryNote), 1)
276
+ ]),
277
+ operation: l((e) => [
278
+ le((f(), V(k, {
279
+ type: "primary",
280
+ size: "small",
281
+ link: "",
282
+ onClick: (ve) => Y(e.data.row)
283
+ }, {
284
+ default: l(() => [
285
+ w(d(o.$t("common.view")), 1)
286
+ ]),
287
+ _: 2
288
+ }, 1032, ["onClick"])), [
289
+ [Z, ["asset:inventory_record:view"]]
290
+ ])
291
+ ]),
292
+ _: 1
293
+ }, 8, ["list-loading", "data", "table-label"])
294
+ ]),
295
+ _: 1
296
+ }),
297
+ u("button", {
298
+ onClick: t[13] || (t[13] = (e) => p.value = !0)
299
+ }, "测试弹框按钮A"),
300
+ p.value ? (f(), V(ne, {
301
+ key: 0,
302
+ modelValue: p.value,
303
+ "onUpdate:modelValue": t[14] || (t[14] = (e) => p.value = e),
304
+ width: "700px",
305
+ onRefreshA: D
306
+ }, null, 8, ["modelValue"])) : N("", !0),
307
+ u("button", {
308
+ onClick: t[15] || (t[15] = (e) => g.value = !0)
309
+ }, "测试弹框组件B"),
310
+ g.value ? (f(), V(ae, {
311
+ key: 1,
312
+ modelValue: g.value,
313
+ "onUpdate:modelValue": t[16] || (t[16] = (e) => g.value = e),
314
+ width: "1000px"
315
+ }, null, 8, ["modelValue"])) : N("", !0),
316
+ n(X, { "dept-id": h.value }, null, 8, ["dept-id"])
317
+ ]);
318
+ };
319
+ }
320
+ });
321
+ export {
322
+ we as default
323
+ };
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .position-center[data-v-84f6d27c]{position:absolute;right:0;top:30%;transform:translateY(-30%)}.plus-position[data-v-84f6d27c]{position:absolute;right:0;top:0;margin-top:8px}.position-center[data-v-198fdb2f]{position:absolute;right:0;top:30%;transform:translateY(-30%)}.plus-position[data-v-198fdb2f]{position:absolute;right:0;top:0;margin-top:8px}
1
+ @charset "UTF-8";.blue_color{color:#3370ff;font-size:16px;font-weight:600;margin-left:3px;margin-right:3px}.dis_bottom{margin-bottom:0!important}.total-num{border:var(--el-border);border-color:#bae7ff;background-color:#e6f7ff!important;padding:9px 18px;border-radius:3px;font-size:14px;margin-bottom:10px;color:#545a5d}.position-center[data-v-b36a82ba]{position:absolute;right:0;top:30%;transform:translateY(-30%)}.plus-position[data-v-b36a82ba]{position:absolute;right:0;top:0;margin-top:8px}:root{--el-color-white:#ffffff;--el-color-black:#000000;--el-color-primary-rgb:64,158,255;--el-color-success-rgb:103,194,58;--el-color-warning-rgb:230,162,60;--el-color-danger-rgb:245,108,108;--el-color-error-rgb:245,108,108;--el-color-info-rgb:144,147,153;--el-font-size-extra-large:20px;--el-font-size-large:18px;--el-font-size-medium:16px;--el-font-size-base:14px;--el-font-size-small:13px;--el-font-size-extra-small:12px;--el-font-family:"Helvetica Neue",Helvetica,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","微软雅黑",Arial,sans-serif;--el-font-weight-primary:500;--el-font-line-height-primary:24px;--el-index-normal:1;--el-index-top:1000;--el-index-popper:2000;--el-border-radius-base:4px;--el-border-radius-small:2px;--el-border-radius-round:20px;--el-border-radius-circle:100%;--el-transition-duration:.3s;--el-transition-duration-fast:.2s;--el-transition-function-ease-in-out-bezier:cubic-bezier(.645,.045,.355,1);--el-transition-function-fast-bezier:cubic-bezier(.23,1,.32,1);--el-transition-all:all var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier);--el-transition-fade:opacity var(--el-transition-duration) var(--el-transition-function-fast-bezier);--el-transition-md-fade:transform var(--el-transition-duration) var(--el-transition-function-fast-bezier),opacity var(--el-transition-duration) var(--el-transition-function-fast-bezier);--el-transition-fade-linear:opacity var(--el-transition-duration-fast) linear;--el-transition-border:border-color var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);--el-transition-box-shadow:box-shadow var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);--el-transition-color:color var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);--el-component-size-large:40px;--el-component-size:32px;--el-component-size-small:24px}:root{color-scheme:light;--el-color-primary:#409eff;--el-color-primary-light-3:#79bbff;--el-color-primary-light-5:#a0cfff;--el-color-primary-light-7:#c6e2ff;--el-color-primary-light-8:#d9ecff;--el-color-primary-light-9:#ecf5ff;--el-color-primary-dark-2:#337ecc;--el-color-success:#67c23a;--el-color-success-light-3:#95d475;--el-color-success-light-5:#b3e19d;--el-color-success-light-7:#d1edc4;--el-color-success-light-8:#e1f3d8;--el-color-success-light-9:#f0f9eb;--el-color-success-dark-2:#529b2e;--el-color-warning:#e6a23c;--el-color-warning-light-3:#eebe77;--el-color-warning-light-5:#f3d19e;--el-color-warning-light-7:#f8e3c5;--el-color-warning-light-8:#faecd8;--el-color-warning-light-9:#fdf6ec;--el-color-warning-dark-2:#b88230;--el-color-danger:#f56c6c;--el-color-danger-light-3:#f89898;--el-color-danger-light-5:#fab6b6;--el-color-danger-light-7:#fcd3d3;--el-color-danger-light-8:#fde2e2;--el-color-danger-light-9:#fef0f0;--el-color-danger-dark-2:#c45656;--el-color-error:#f56c6c;--el-color-error-light-3:#f89898;--el-color-error-light-5:#fab6b6;--el-color-error-light-7:#fcd3d3;--el-color-error-light-8:#fde2e2;--el-color-error-light-9:#fef0f0;--el-color-error-dark-2:#c45656;--el-color-info:#909399;--el-color-info-light-3:#b1b3b8;--el-color-info-light-5:#c8c9cc;--el-color-info-light-7:#dedfe0;--el-color-info-light-8:#e9e9eb;--el-color-info-light-9:#f4f4f5;--el-color-info-dark-2:#73767a;--el-bg-color:#ffffff;--el-bg-color-page:#f2f3f5;--el-bg-color-overlay:#ffffff;--el-text-color-primary:#303133;--el-text-color-regular:#606266;--el-text-color-secondary:#909399;--el-text-color-placeholder:#a8abb2;--el-text-color-disabled:#c0c4cc;--el-border-color:#dcdfe6;--el-border-color-light:#e4e7ed;--el-border-color-lighter:#ebeef5;--el-border-color-extra-light:#f2f6fc;--el-border-color-dark:#d4d7de;--el-border-color-darker:#cdd0d6;--el-fill-color:#f0f2f5;--el-fill-color-light:#f5f7fa;--el-fill-color-lighter:#fafafa;--el-fill-color-extra-light:#fafcff;--el-fill-color-dark:#ebedf0;--el-fill-color-darker:#e6e8eb;--el-fill-color-blank:#ffffff;--el-box-shadow:0px 12px 32px 4px rgba(0,0,0,.04),0px 8px 20px rgba(0,0,0,.08);--el-box-shadow-light:0px 0px 12px rgba(0,0,0,.12);--el-box-shadow-lighter:0px 0px 6px rgba(0,0,0,.12);--el-box-shadow-dark:0px 16px 48px 16px rgba(0,0,0,.08),0px 12px 32px rgba(0,0,0,.12),0px 8px 16px -8px rgba(0,0,0,.16);--el-disabled-bg-color:var(--el-fill-color-light);--el-disabled-text-color:var(--el-text-color-placeholder);--el-disabled-border-color:var(--el-border-color-light);--el-overlay-color:rgba(0,0,0,.8);--el-overlay-color-light:rgba(0,0,0,.7);--el-overlay-color-lighter:rgba(0,0,0,.5);--el-mask-color:rgba(255,255,255,.9);--el-mask-color-extra-light:rgba(255,255,255,.3);--el-border-width:1px;--el-border-style:solid;--el-border-color-hover:var(--el-text-color-disabled);--el-border:var(--el-border-width) var(--el-border-style) var(--el-border-color);--el-svg-monochrome-grey:var(--el-border-color)}.fade-in-linear-enter-active,.fade-in-linear-leave-active{transition:var(--el-transition-fade-linear)}.fade-in-linear-enter-from,.fade-in-linear-leave-to{opacity:0}.el-fade-in-linear-enter-active,.el-fade-in-linear-leave-active{transition:var(--el-transition-fade-linear)}.el-fade-in-linear-enter-from,.el-fade-in-linear-leave-to{opacity:0}.el-fade-in-enter-active,.el-fade-in-leave-active{transition:all var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}.el-fade-in-enter-from,.el-fade-in-leave-active{opacity:0}.el-zoom-in-center-enter-active,.el-zoom-in-center-leave-active{transition:all var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}.el-zoom-in-center-enter-from,.el-zoom-in-center-leave-active{opacity:0;transform:scaleX(0)}.el-zoom-in-top-enter-active,.el-zoom-in-top-leave-active{opacity:1;transform:scaleY(1);transform-origin:center top;transition:var(--el-transition-md-fade)}.el-zoom-in-top-enter-active[data-popper-placement^=top],.el-zoom-in-top-leave-active[data-popper-placement^=top]{transform-origin:center bottom}.el-zoom-in-top-enter-from,.el-zoom-in-top-leave-active{opacity:0;transform:scaleY(0)}.el-zoom-in-bottom-enter-active,.el-zoom-in-bottom-leave-active{opacity:1;transform:scaleY(1);transform-origin:center bottom;transition:var(--el-transition-md-fade)}.el-zoom-in-bottom-enter-from,.el-zoom-in-bottom-leave-active{opacity:0;transform:scaleY(0)}.el-zoom-in-left-enter-active,.el-zoom-in-left-leave-active{opacity:1;transform:scale(1);transform-origin:top left;transition:var(--el-transition-md-fade)}.el-zoom-in-left-enter-from,.el-zoom-in-left-leave-active{opacity:0;transform:scale(.45)}.collapse-transition{transition:var(--el-transition-duration) height ease-in-out,var(--el-transition-duration) padding-top ease-in-out,var(--el-transition-duration) padding-bottom ease-in-out}.el-collapse-transition-enter-active,.el-collapse-transition-leave-active{transition:var(--el-transition-duration) max-height ease-in-out,var(--el-transition-duration) padding-top ease-in-out,var(--el-transition-duration) padding-bottom ease-in-out}.horizontal-collapse-transition{transition:var(--el-transition-duration) width ease-in-out,var(--el-transition-duration) padding-left ease-in-out,var(--el-transition-duration) padding-right ease-in-out}.el-list-enter-active,.el-list-leave-active{transition:all 1s}.el-list-enter-from,.el-list-leave-to{opacity:0;transform:translateY(-30px)}.el-list-leave-active{position:absolute!important}.el-opacity-transition{transition:opacity var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}.el-icon-loading{-webkit-animation:rotating 2s linear infinite;animation:rotating 2s linear infinite}.el-icon--right{margin-left:5px}.el-icon--left{margin-right:5px}@-webkit-keyframes rotating{0%{transform:rotate(0)}to{transform:rotate(1turn)}}@keyframes rotating{0%{transform:rotate(0)}to{transform:rotate(1turn)}}.el-icon{--color:inherit;align-items:center;display:inline-flex;height:1em;justify-content:center;line-height:1em;position:relative;width:1em;fill:currentColor;color:var(--color);font-size:inherit}.el-icon.is-loading{-webkit-animation:rotating 2s linear infinite;animation:rotating 2s linear infinite}.el-icon svg{height:1em;width:1em}.el-badge{--el-badge-bg-color:var(--el-color-danger);--el-badge-radius:10px;--el-badge-font-size:12px;--el-badge-padding:6px;--el-badge-size:18px;display:inline-block;position:relative;vertical-align:middle;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.el-badge__content{align-items:center;background-color:var(--el-badge-bg-color);border:1px solid var(--el-bg-color);border-radius:var(--el-badge-radius);color:var(--el-color-white);display:inline-flex;font-size:var(--el-badge-font-size);height:var(--el-badge-size);justify-content:center;padding:0 var(--el-badge-padding);white-space:nowrap}.el-badge__content.is-fixed{position:absolute;right:calc(1px + var(--el-badge-size)/2);top:0;transform:translateY(-50%) translate(100%);z-index:var(--el-index-normal)}.el-badge__content.is-fixed.is-dot{right:5px}.el-badge__content.is-dot{border-radius:50%;height:8px;padding:0;right:0;width:8px}.el-badge__content--primary{background-color:var(--el-color-primary)}.el-badge__content--success{background-color:var(--el-color-success)}.el-badge__content--warning{background-color:var(--el-color-warning)}.el-badge__content--info{background-color:var(--el-color-info)}.el-badge__content--danger{background-color:var(--el-color-danger)}.el-message{--el-message-bg-color:var(--el-color-info-light-9);--el-message-border-color:var(--el-border-color-lighter);--el-message-padding:11px 15px;--el-message-close-size:16px;--el-message-close-icon-color:var(--el-text-color-placeholder);--el-message-close-hover-color:var(--el-text-color-secondary);align-items:center;background-color:var(--el-message-bg-color);border-color:var(--el-message-border-color);border-radius:var(--el-border-radius-base);border-style:var(--el-border-style);border-width:var(--el-border-width);box-sizing:border-box;display:flex;gap:8px;left:50%;max-width:calc(100% - 32px);padding:var(--el-message-padding);position:fixed;top:20px;transform:translate(-50%);transition:opacity var(--el-transition-duration),transform .4s,top .4s;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.el-message.is-center{justify-content:center}.el-message.is-plain{background-color:var(--el-bg-color-overlay);border-color:var(--el-bg-color-overlay);box-shadow:var(--el-box-shadow-light)}.el-message p{margin:0}.el-message--success{--el-message-bg-color:var(--el-color-success-light-9);--el-message-border-color:var(--el-color-success-light-8);--el-message-text-color:var(--el-color-success)}.el-message--success .el-message__content{color:var(--el-message-text-color);overflow-wrap:break-word}.el-message .el-message-icon--success{color:var(--el-message-text-color)}.el-message--info{--el-message-bg-color:var(--el-color-info-light-9);--el-message-border-color:var(--el-color-info-light-8);--el-message-text-color:var(--el-color-info)}.el-message--info .el-message__content{color:var(--el-message-text-color);overflow-wrap:break-word}.el-message .el-message-icon--info{color:var(--el-message-text-color)}.el-message--warning{--el-message-bg-color:var(--el-color-warning-light-9);--el-message-border-color:var(--el-color-warning-light-8);--el-message-text-color:var(--el-color-warning)}.el-message--warning .el-message__content{color:var(--el-message-text-color);overflow-wrap:break-word}.el-message .el-message-icon--warning{color:var(--el-message-text-color)}.el-message--error{--el-message-bg-color:var(--el-color-error-light-9);--el-message-border-color:var(--el-color-error-light-8);--el-message-text-color:var(--el-color-error)}.el-message--error .el-message__content{color:var(--el-message-text-color);overflow-wrap:break-word}.el-message .el-message-icon--error{color:var(--el-message-text-color)}.el-message .el-message__badge{position:absolute;right:-8px;top:-8px}.el-message__content{font-size:14px;line-height:1;padding:0}.el-message__content:focus{outline-width:0}.el-message .el-message__closeBtn{color:var(--el-message-close-icon-color);cursor:pointer;font-size:var(--el-message-close-size)}.el-message .el-message__closeBtn:focus{outline-width:0}.el-message .el-message__closeBtn:hover{color:var(--el-message-close-hover-color)}.el-message-fade-enter-from,.el-message-fade-leave-to{opacity:0;transform:translate(-50%,-100%)}.el-form-item--default[data-v-73f35db4]{margin-bottom:0}
@@ -1,20 +1,25 @@
1
1
  import type { AxiosPromise } from "axios";
2
- import type { AssetApi, AssetReq, AssetModel, AssetPage, AssetList, AssetKey, AssetCreateReq, AssetUpdateReq, AssetExportReq, AssetImportReq } from "./types";
2
+ import type { AssetApi, AssetReq, AssetModel, AssetPage, AssetList, AssetKey, AssetCreateReq, AssetUpdateReq, AssetExportReq, AssetImportReq, AssetassignReq, UnionOrgReq, UnionOrgTree } from "./types";
3
3
  declare class AssetApiImpl implements AssetApi {
4
4
  getKey(model: AssetModel): AssetKey;
5
5
  findPage(query?: AssetReq): AxiosPromise<AssetPage>;
6
6
  findList(query?: AssetReq): AxiosPromise<AssetList>;
7
7
  findById(query: AssetKey): AxiosPromise<AssetModel>;
8
8
  create(data: AssetCreateReq): AxiosPromise<AssetModel>;
9
- update: (data: AssetUpdateReq) => AxiosPromise<AssetModel>;
10
- move(key: AssetKey, up: boolean): AxiosPromise<boolean>;
11
- enable(key: AssetKey, enable: boolean): AxiosPromise<boolean>;
9
+ update(data: AssetUpdateReq): AxiosPromise<AssetModel>;
12
10
  delete(query: AssetKey): AxiosPromise<AssetModel>;
13
11
  batchDelete(keys: AssetKey[]): AxiosPromise<number>;
14
12
  downloadTemplate(): AxiosPromise;
15
13
  importExcel(data: AssetImportReq): AxiosPromise<string>;
14
+ assignment(data: AssetassignReq): AxiosPromise<boolean>;
16
15
  exportExcel(queryParams: AssetExportReq): AxiosPromise;
17
- exportPdf(queryParams: AssetExportReq): AxiosPromise;
16
+ /**
17
+ * 获取工会组织架构树形列表
18
+ *
19
+ * @param query 查询参数,可选
20
+ * @returns 返回工会组织架构树形列表的 AxiosPromise 对象
21
+ */
22
+ findUnionOrgTreeListApi(query?: UnionOrgReq): AxiosPromise<UnionOrgTree>;
18
23
  }
19
24
  declare const assetApi: AssetApiImpl;
20
25
  export { assetApi };
@@ -1,10 +1,20 @@
1
- import type { EntityApi, EntityReq, EntityModel, EntityList, EntityPage, EntityTotal, EntityKey, EntityKeyList, EntityCreateReq, EntityUpdateReq, EntityExportReq, EntityImportReq } from "jmash-core";
1
+ import type { EntityApi, EntityReq, EntityModel, EntityList, EntityPage, EntityTotal, EntityKey, EntityKeyList, EntityCreateReq, EntityUpdateReq, EntityExportReq, EntityImportReq, LayEntry } from "jmash-core";
2
2
  export interface AssetApi extends EntityApi {
3
3
  }
4
+ export interface UnionOrgReq extends EntityReq {
5
+ likeOrgName?: string;
6
+ hasStatus?: boolean;
7
+ status?: boolean;
8
+ }
9
+ export interface UnionOrgTree {
10
+ results: LayEntry[];
11
+ }
4
12
  export interface AssetReq extends EntityReq {
13
+ hasAssetSort?: boolean;
5
14
  name?: string;
6
15
  assetSort?: string;
7
16
  assignStatus?: boolean;
17
+ hasAssignStatus?: boolean;
8
18
  likeName?: string;
9
19
  }
10
20
  export interface AssetModel extends EntityModel {
@@ -14,13 +24,29 @@ export interface AssetModel extends EntityModel {
14
24
  code?: string;
15
25
  number?: number;
16
26
  unit?: string;
27
+ model?: string;
17
28
  buyDate?: string;
18
- buyMoney?: string;
19
- oldMoney?: string;
29
+ buyMoney?: number;
30
+ oldMoney?: number;
20
31
  depreciationType?: string;
21
32
  useLimit?: number;
22
33
  monthDepreciation?: string;
34
+ assignStatus?: boolean;
23
35
  totalDepreciation?: string;
36
+ netSalvage?: string;
37
+ netAssetValue?: string;
38
+ }
39
+ export interface AssetassignReq extends EntityUpdateReq {
40
+ tentant?: string;
41
+ requestId?: string;
42
+ assetId: string;
43
+ assignOrgs: Array<assignOrgsList>;
44
+ name?: string;
45
+ }
46
+ export interface assignOrgsList {
47
+ siteId?: string;
48
+ orgId?: string;
49
+ assignNumber?: number;
24
50
  }
25
51
  export interface AssetList extends EntityList {
26
52
  results: Array<AssetModel>;
@@ -42,19 +68,19 @@ export interface AssetKeyList extends EntityKeyList {
42
68
  assetId?: Array<string>;
43
69
  }
44
70
  export interface AssetCreateReq extends EntityCreateReq {
45
- assetId?: string;
46
71
  name?: string;
47
- assetSort?: string;
48
72
  code?: string;
49
73
  number?: number;
50
74
  unit?: string;
51
- model?: string;
52
75
  buyDate?: string;
53
- buyMoney?: string;
54
- oldMoney?: string;
76
+ assetSort?: string;
77
+ assetId?: string;
78
+ model?: string;
79
+ buyMoney?: number;
80
+ oldMoney?: number;
55
81
  depreciationType?: string;
56
82
  useLimit?: number;
57
- netSalvage?: string;
83
+ netSalvage?: number;
58
84
  monthDepreciation?: string;
59
85
  totalDepreciation?: string;
60
86
  }
@@ -67,12 +93,12 @@ export interface AssetUpdateReq extends EntityUpdateReq {
67
93
  unit?: string;
68
94
  model?: string;
69
95
  buyDate?: string;
70
- buyMoney?: string;
71
- oldMoney?: string;
96
+ buyMoney?: number;
97
+ oldMoney?: number;
72
98
  depreciationType?: string;
73
99
  useLimit?: number;
74
- netSalvage?: string;
75
- monthDepreciation?: string;
100
+ netSalvage?: number;
101
+ monthDepreciation?: number;
76
102
  totalDepreciation?: string;
77
103
  }
78
104
  export type AssetFormReq = AssetCreateReq | AssetUpdateReq;
@@ -81,13 +107,3 @@ export interface AssetExportReq extends EntityExportReq {
81
107
  }
82
108
  export interface AssetImportReq extends EntityImportReq {
83
109
  }
84
- export interface AssetMoveKey {
85
- tenant?: string;
86
- assetId?: string;
87
- up?: boolean;
88
- }
89
- export interface AssetEnableKey {
90
- tenant?: string;
91
- assetId?: string;
92
- enable?: boolean;
93
- }
@@ -0,0 +1,12 @@
1
+ import type { AxiosPromise } from "axios";
2
+ import type { AssetDetailApi, AssetDetailReq, AssetDetailModel, AssetDetailPage, AssetDetailList, AssetDetailKey, AssetDetailUpdateReq, AssetDetailExportReq } from "./types";
3
+ declare class AssetDetailApiImpl implements AssetDetailApi {
4
+ getKey(model: AssetDetailModel): AssetDetailKey;
5
+ findPage(query?: AssetDetailReq): AxiosPromise<AssetDetailPage>;
6
+ findList(query?: AssetDetailReq): AxiosPromise<AssetDetailList>;
7
+ findById(query: AssetDetailKey): AxiosPromise<AssetDetailModel>;
8
+ update(data: AssetDetailUpdateReq): AxiosPromise<AssetDetailModel>;
9
+ exportExcel(queryParams: AssetDetailExportReq): AxiosPromise;
10
+ }
11
+ declare const assetDetailApi: AssetDetailApiImpl;
12
+ export { assetDetailApi };