xyvcard-reports 0.0.1
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/README.md +51 -0
- package/dist/FileSaver.min-CsYbMEwD.mjs +74 -0
- package/dist/_plugin-vue_export-helper-CHgC5LLL.mjs +9 -0
- package/dist/add-Cy3sJJ7g.mjs +318 -0
- package/dist/edit-BAGsETAq.mjs +411 -0
- package/dist/edit-Bjwtnj4P.mjs +168 -0
- package/dist/edit-Bxcb4i2M.mjs +403 -0
- package/dist/edit-C8qWCW9s.mjs +556 -0
- package/dist/edit-CiU1D1Jz.mjs +349 -0
- package/dist/edit-Cmne_lfW.mjs +382 -0
- package/dist/edit-K7u73FcA.mjs +411 -0
- package/dist/follow-9aVr4ibB.mjs +318 -0
- package/dist/import-upload-0sdXY1HZ.mjs +198 -0
- package/dist/import-upload-DUeH28xE.mjs +198 -0
- package/dist/index-B5w3z8Uz.mjs +20 -0
- package/dist/index-B_hFZVhb-C3Oi__-I.mjs +1851 -0
- package/dist/index-Bu_3ElUk.mjs +7989 -0
- package/dist/index-CK9MaZXF.mjs +467 -0
- package/dist/index-D1lQtxJR.mjs +21 -0
- package/dist/index-D1oq_3kJ.mjs +471 -0
- package/dist/index-D3AJ_PUR.mjs +315 -0
- package/dist/index-DOju9U4r.mjs +97 -0
- package/dist/index-DVvlf-iS.mjs +62 -0
- package/dist/index-DelDUsnl.mjs +504 -0
- package/dist/index-DwYDVqTx.mjs +497 -0
- package/dist/index-U4WVV44p.mjs +1412 -0
- package/dist/index-dCp3LVPJ.mjs +415 -0
- package/dist/index-s8Isx9r4.mjs +4 -0
- package/dist/index.mjs +2818 -0
- package/dist/index.vue_vue_type_script_setup_true_lang-CEG9dHlK.mjs +309 -0
- package/dist/info-Br2M6Km-.mjs +4 -0
- package/dist/info-CFB6sv2K.mjs +4 -0
- package/dist/info-CXnZKXhF.mjs +4 -0
- package/dist/info-DrJSbVMC.mjs +4 -0
- package/dist/info-Fz09GDFn.mjs +4 -0
- package/dist/info.vue_vue_type_script_setup_true_lang-Bqk5gi3s.mjs +275 -0
- package/dist/info.vue_vue_type_script_setup_true_lang-CZzSMDzL.mjs +211 -0
- package/dist/info.vue_vue_type_script_setup_true_lang-D-RdMz1r.mjs +169 -0
- package/dist/info.vue_vue_type_script_setup_true_lang-DmEdMXdW.mjs +211 -0
- package/dist/info.vue_vue_type_script_setup_true_lang-kb5E2gev.mjs +211 -0
- package/dist/style.css +1 -0
- package/dts/src/App.vue.d.ts +2 -0
- package/dts/src/api/reports/dict.d.ts +7 -0
- package/dts/src/api/reports/index.d.ts +15 -0
- package/dts/src/api/reports/report-demand-ledger/index.d.ts +13 -0
- package/dts/src/api/reports/report-demand-ledger/types.d.ts +91 -0
- package/dts/src/api/reports/report-demand-record/index.d.ts +13 -0
- package/dts/src/api/reports/report-demand-record/types.d.ts +63 -0
- package/dts/src/api/reports/report-files/index.d.ts +8 -0
- package/dts/src/api/reports/report-files/types.d.ts +85 -0
- package/dts/src/api/reports/report-third-party/index.d.ts +16 -0
- package/dts/src/api/reports/report-third-party/types.d.ts +100 -0
- package/dts/src/api/reports/task-inspect-matters/index.d.ts +20 -0
- package/dts/src/api/reports/task-inspect-matters/types.d.ts +78 -0
- package/dts/src/api/reports/task-inspect-type/index.d.ts +20 -0
- package/dts/src/api/reports/task-inspect-type/types.d.ts +68 -0
- package/dts/src/constant.d.ts +38 -0
- package/dts/src/index.d.ts +6 -0
- package/dts/src/lang/index.d.ts +1 -0
- package/dts/src/lang/reports/en.d.ts +0 -0
- package/dts/src/lang/reports/zh-cn.d.ts +207 -0
- package/dts/src/main.d.ts +5 -0
- package/dts/src/permission.d.ts +1 -0
- package/dts/src/router/index.d.ts +9 -0
- package/dts/src/utils/timePlugin.d.ts +5 -0
- package/dts/src/views/reports/report-demand-ledger/edit.vue.d.ts +37 -0
- package/dts/src/views/reports/report-demand-ledger/follow.vue.d.ts +55 -0
- package/dts/src/views/reports/report-demand-ledger/index.vue.d.ts +2 -0
- package/dts/src/views/reports/report-demand-ledger/info.vue.d.ts +28 -0
- package/dts/src/views/reports/report-third-matter/edit.vue.d.ts +37 -0
- package/dts/src/views/reports/report-third-matter/import-upload.vue.d.ts +31 -0
- package/dts/src/views/reports/report-third-matter/index.vue.d.ts +2 -0
- package/dts/src/views/reports/report-third-matter/info.vue.d.ts +28 -0
- package/dts/src/views/reports/report-third-month-summary/edit.vue.d.ts +37 -0
- package/dts/src/views/reports/report-third-month-summary/index.vue.d.ts +2 -0
- package/dts/src/views/reports/report-third-month-summary/info.vue.d.ts +28 -0
- package/dts/src/views/reports/report-third-party/edit.vue.d.ts +37 -0
- package/dts/src/views/reports/report-third-party/index.vue.d.ts +2 -0
- package/dts/src/views/reports/report-third-party/info.vue.d.ts +28 -0
- package/dts/src/views/reports/report-third-use-support/edit.vue.d.ts +37 -0
- package/dts/src/views/reports/report-third-use-support/import-upload.vue.d.ts +31 -0
- package/dts/src/views/reports/report-third-use-support/index.vue.d.ts +2 -0
- package/dts/src/views/reports/report-third-use-support/info.vue.d.ts +28 -0
- package/dts/src/views/reports/task-inspect-matters/edit.vue.d.ts +28 -0
- package/dts/src/views/reports/task-inspect-matters/index.vue.d.ts +2 -0
- package/dts/src/views/reports/task-inspect-type/add.vue.d.ts +11 -0
- package/dts/src/views/reports/task-inspect-type/edit.vue.d.ts +2 -0
- package/dts/src/views/reports/task-inspect-type/index.vue.d.ts +2 -0
- package/package.json +61 -0
package/README.md
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# pnpm publish --no-git-checks
|
|
2
|
+
npm config set registry https://registry.npmjs.org/
|
|
3
|
+
|
|
4
|
+
# pnpm install
|
|
5
|
+
npm config set registry https://registry.npmmirror.com/
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
This template should help get you started developing with Vue 3 in Vite.
|
|
9
|
+
|
|
10
|
+
## Recommended IDE Setup
|
|
11
|
+
|
|
12
|
+
[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin).
|
|
13
|
+
|
|
14
|
+
## Type Support for `.vue` Imports in TS
|
|
15
|
+
|
|
16
|
+
TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin) to make the TypeScript language service aware of `.vue` types.
|
|
17
|
+
|
|
18
|
+
If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a [Take Over Mode](https://github.com/johnsoncodehk/volar/discussions/471#discussioncomment-1361669) that is more performant. You can enable it by the following steps:
|
|
19
|
+
|
|
20
|
+
1. Disable the built-in TypeScript Extension
|
|
21
|
+
1) Run `Extensions: Show Built-in Extensions` from VSCode's command palette
|
|
22
|
+
2) Find `TypeScript and JavaScript Language Features`, right click and select `Disable (Workspace)`
|
|
23
|
+
2. Reload the VSCode window by running `Developer: Reload Window` from the command palette.
|
|
24
|
+
|
|
25
|
+
## Customize configuration
|
|
26
|
+
|
|
27
|
+
See [Vite Configuration Reference](https://vitejs.dev/config/).
|
|
28
|
+
|
|
29
|
+
## Project Setup
|
|
30
|
+
|
|
31
|
+
```sh
|
|
32
|
+
pnpm install
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### Compile and Hot-Reload for Development
|
|
36
|
+
|
|
37
|
+
```sh
|
|
38
|
+
pnpm dev
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### Type-Check, Compile and Minify for Production
|
|
42
|
+
|
|
43
|
+
```sh
|
|
44
|
+
pnpm build
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
### Lint with [ESLint](https://eslint.org/)
|
|
48
|
+
|
|
49
|
+
```sh
|
|
50
|
+
pnpm lint
|
|
51
|
+
```
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { c } from "./index-U4WVV44p.mjs";
|
|
2
|
+
var E = { exports: {} };
|
|
3
|
+
(function(h, j) {
|
|
4
|
+
(function(p, i) {
|
|
5
|
+
i();
|
|
6
|
+
})(c, function() {
|
|
7
|
+
function p(e, t) {
|
|
8
|
+
return typeof t > "u" ? t = { autoBom: !1 } : typeof t != "object" && (console.warn("Deprecated: Expected third argument to be a object"), t = { autoBom: !t }), t.autoBom && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type) ? new Blob(["\uFEFF", e], { type: e.type }) : e;
|
|
9
|
+
}
|
|
10
|
+
function i(e, t, r) {
|
|
11
|
+
var n = new XMLHttpRequest();
|
|
12
|
+
n.open("GET", e), n.responseType = "blob", n.onload = function() {
|
|
13
|
+
u(n.response, t, r);
|
|
14
|
+
}, n.onerror = function() {
|
|
15
|
+
console.error("could not download file");
|
|
16
|
+
}, n.send();
|
|
17
|
+
}
|
|
18
|
+
function v(e) {
|
|
19
|
+
var t = new XMLHttpRequest();
|
|
20
|
+
t.open("HEAD", e, !1);
|
|
21
|
+
try {
|
|
22
|
+
t.send();
|
|
23
|
+
} catch {
|
|
24
|
+
}
|
|
25
|
+
return 200 <= t.status && 299 >= t.status;
|
|
26
|
+
}
|
|
27
|
+
function l(e) {
|
|
28
|
+
try {
|
|
29
|
+
e.dispatchEvent(new MouseEvent("click"));
|
|
30
|
+
} catch {
|
|
31
|
+
var t = document.createEvent("MouseEvents");
|
|
32
|
+
t.initMouseEvent("click", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), e.dispatchEvent(t);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
var a = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof c == "object" && c.global === c ? c : void 0, w = a.navigator && /Macintosh/.test(navigator.userAgent) && /AppleWebKit/.test(navigator.userAgent) && !/Safari/.test(navigator.userAgent), u = a.saveAs || (typeof window != "object" || window !== a ? function() {
|
|
36
|
+
} : "download" in HTMLAnchorElement.prototype && !w ? function(e, t, r) {
|
|
37
|
+
var n = a.URL || a.webkitURL, o = document.createElement("a");
|
|
38
|
+
t = t || e.name || "download", o.download = t, o.rel = "noopener", typeof e == "string" ? (o.href = e, o.origin === location.origin ? l(o) : v(o.href) ? i(e, t, r) : l(o, o.target = "_blank")) : (o.href = n.createObjectURL(e), setTimeout(function() {
|
|
39
|
+
n.revokeObjectURL(o.href);
|
|
40
|
+
}, 4e4), setTimeout(function() {
|
|
41
|
+
l(o);
|
|
42
|
+
}, 0));
|
|
43
|
+
} : "msSaveOrOpenBlob" in navigator ? function(e, t, r) {
|
|
44
|
+
if (t = t || e.name || "download", typeof e != "string") navigator.msSaveOrOpenBlob(p(e, r), t);
|
|
45
|
+
else if (v(e)) i(e, t, r);
|
|
46
|
+
else {
|
|
47
|
+
var n = document.createElement("a");
|
|
48
|
+
n.href = e, n.target = "_blank", setTimeout(function() {
|
|
49
|
+
l(n);
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
} : function(e, t, r, n) {
|
|
53
|
+
if (n = n || open("", "_blank"), n && (n.document.title = n.document.body.innerText = "downloading..."), typeof e == "string") return i(e, t, r);
|
|
54
|
+
var o = e.type === "application/octet-stream", b = /constructor/i.test(a.HTMLElement) || a.safari, m = /CriOS\/[\d]+/.test(navigator.userAgent);
|
|
55
|
+
if ((m || o && b || w) && typeof FileReader < "u") {
|
|
56
|
+
var f = new FileReader();
|
|
57
|
+
f.onloadend = function() {
|
|
58
|
+
var s = f.result;
|
|
59
|
+
s = m ? s : s.replace(/^data:[^;]*;/, "data:attachment/file;"), n ? n.location.href = s : location = s, n = null;
|
|
60
|
+
}, f.readAsDataURL(e);
|
|
61
|
+
} else {
|
|
62
|
+
var y = a.URL || a.webkitURL, d = y.createObjectURL(e);
|
|
63
|
+
n ? n.location = d : location.href = d, n = null, setTimeout(function() {
|
|
64
|
+
y.revokeObjectURL(d);
|
|
65
|
+
}, 4e4);
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
a.saveAs = u.saveAs = u, h.exports = u;
|
|
69
|
+
});
|
|
70
|
+
})(E);
|
|
71
|
+
var R = E.exports;
|
|
72
|
+
export {
|
|
73
|
+
R as F
|
|
74
|
+
};
|
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
import { defineComponent as M, mergeModels as F, ref as R, reactive as T, useModel as U, resolveComponent as m, createBlock as j, openBlock as B, withCtx as o, createVNode as a, unref as u, createElementVNode as A, createTextVNode as I, toDisplayString as V } from "vue";
|
|
2
|
+
import { ElMessage as O } from "element-plus";
|
|
3
|
+
import { useUserStore as s, clearEmpty as l, request as p } from "jmash-core";
|
|
4
|
+
import { q as S } from "./index-U4WVV44p.mjs";
|
|
5
|
+
import { useI18n as z } from "vue-i18n";
|
|
6
|
+
import { D as w } from "./index-Bu_3ElUk.mjs";
|
|
7
|
+
import { _ as K } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
8
|
+
class L {
|
|
9
|
+
getKey(e) {
|
|
10
|
+
return {
|
|
11
|
+
inspectId: e.inspectId
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
// 查询翻页信息检查类型
|
|
15
|
+
findPage(e) {
|
|
16
|
+
const t = s().user.tenant;
|
|
17
|
+
return e && (e.hasStatus = e.inspectStatus !== void 0, e.hasType = e.inspectType !== void 0), l(e), p({
|
|
18
|
+
url: "/v1/inspect/task_inspect_type/page/" + t,
|
|
19
|
+
method: "get",
|
|
20
|
+
params: e
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
// 查询列表信息检查类型
|
|
24
|
+
findList(e) {
|
|
25
|
+
const t = s().user.tenant;
|
|
26
|
+
return l(e), p({
|
|
27
|
+
url: "/v1/inspect/task_inspect_type/list/" + t,
|
|
28
|
+
method: "get",
|
|
29
|
+
params: e
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
// 查询检查类型
|
|
33
|
+
findById(e) {
|
|
34
|
+
const t = s().user.tenant;
|
|
35
|
+
return l(e), p({
|
|
36
|
+
url: "/v1/inspect/task_inspect_type/id/" + t + "/" + e.inspectId,
|
|
37
|
+
method: "get"
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
// 创建实体检查类型
|
|
41
|
+
create(e) {
|
|
42
|
+
return e.tenant = s().user.tenant, l(e), p({
|
|
43
|
+
url: "/v1/inspect/task_inspect_type",
|
|
44
|
+
method: "post",
|
|
45
|
+
data: e
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
// 修改实体检查类型
|
|
49
|
+
update(e) {
|
|
50
|
+
return e.tenant = s().user.tenant, l(e), p({
|
|
51
|
+
url: "/v1/inspect/task_inspect_type",
|
|
52
|
+
method: "patch",
|
|
53
|
+
data: e
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
// 上移下移
|
|
57
|
+
move(e, t) {
|
|
58
|
+
let n = { ...e };
|
|
59
|
+
return n.tenant = s().user.tenant, n.up = t, l(n), p({
|
|
60
|
+
url: "/v1/inspect/task_inspect_type/move",
|
|
61
|
+
method: "put",
|
|
62
|
+
data: n
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
// 启用/禁用
|
|
66
|
+
enable(e, t) {
|
|
67
|
+
let n = { ...e };
|
|
68
|
+
return n.tenant = s().user.tenant, n.enable = t, l(n), p({
|
|
69
|
+
url: "/v1/inspect/task_inspect_type/enable",
|
|
70
|
+
method: "put",
|
|
71
|
+
data: n
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
// 删除检查类型
|
|
75
|
+
delete(e) {
|
|
76
|
+
return e.tenant = s().user.tenant, l(e), p({
|
|
77
|
+
url: "/v1/inspect/task_inspect_type/id",
|
|
78
|
+
method: "delete",
|
|
79
|
+
params: e
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
// 批量删除检查类型
|
|
83
|
+
batchDelete(e) {
|
|
84
|
+
const t = e.map((c) => c.inspectId), n = {
|
|
85
|
+
tenant: s().user.tenant,
|
|
86
|
+
inspectId: t
|
|
87
|
+
};
|
|
88
|
+
return l(n), p({
|
|
89
|
+
url: "/v1/inspect/task_inspect_type/batch",
|
|
90
|
+
method: "put",
|
|
91
|
+
data: n
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
// 下载导入模板检查类型
|
|
95
|
+
downloadTemplate() {
|
|
96
|
+
const e = s().user.tenant;
|
|
97
|
+
return p({
|
|
98
|
+
url: "/v1/inspect/task_inspect_type/" + e + "/template.xlsx",
|
|
99
|
+
method: "get",
|
|
100
|
+
responseType: "blob",
|
|
101
|
+
params: {
|
|
102
|
+
tenant: s().user.tenant
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
// 导入检查类型
|
|
107
|
+
importExcel(e) {
|
|
108
|
+
return e.tenant = s().user.tenant, l(e), p({
|
|
109
|
+
url: "/v1/inspect/task_inspect_type/import",
|
|
110
|
+
method: "patch",
|
|
111
|
+
data: e
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
// 导出检查类型Excel文件
|
|
115
|
+
exportExcel(e) {
|
|
116
|
+
const t = s().user.tenant;
|
|
117
|
+
l(e);
|
|
118
|
+
const n = S.stringify(e, {
|
|
119
|
+
arrayFormat: "brackets",
|
|
120
|
+
allowDots: !0
|
|
121
|
+
});
|
|
122
|
+
return p({
|
|
123
|
+
url: "/v1/inspect/task_inspect_type/" + t + "/task_inspect_types.xlsx?" + n,
|
|
124
|
+
method: "get",
|
|
125
|
+
responseType: "blob"
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
// 打印检查类型PDF文件
|
|
129
|
+
exportPdf(e) {
|
|
130
|
+
const t = s().user.tenant;
|
|
131
|
+
l(e);
|
|
132
|
+
const n = S.stringify(e, {
|
|
133
|
+
arrayFormat: "brackets",
|
|
134
|
+
allowDots: !0
|
|
135
|
+
});
|
|
136
|
+
return p({
|
|
137
|
+
url: "/v1/inspect/task_inspect_type/" + t + "/task_inspect_types.pdf?" + n,
|
|
138
|
+
method: "get",
|
|
139
|
+
responseType: "blob"
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
const P = new L(), G = { class: "dialog-footer" }, H = /* @__PURE__ */ M({
|
|
144
|
+
__name: "add",
|
|
145
|
+
props: {
|
|
146
|
+
modelValue: { type: Boolean },
|
|
147
|
+
modelModifiers: {}
|
|
148
|
+
},
|
|
149
|
+
emits: /* @__PURE__ */ F(["refresh"], ["update:modelValue"]),
|
|
150
|
+
setup(k, { emit: e }) {
|
|
151
|
+
const { t } = z(), n = R();
|
|
152
|
+
let c = T({
|
|
153
|
+
requestId: Math.random() * 10 + ""
|
|
154
|
+
// updateMask: "",
|
|
155
|
+
});
|
|
156
|
+
const N = T({
|
|
157
|
+
inspectId: [
|
|
158
|
+
{
|
|
159
|
+
required: !0,
|
|
160
|
+
message: t("taskInspectType.inspectId"),
|
|
161
|
+
trigger: "change"
|
|
162
|
+
}
|
|
163
|
+
],
|
|
164
|
+
inspectName: [
|
|
165
|
+
{
|
|
166
|
+
required: !0,
|
|
167
|
+
message: t("taskInspectType.inspectName"),
|
|
168
|
+
trigger: "change"
|
|
169
|
+
}
|
|
170
|
+
],
|
|
171
|
+
inspectStatus: [
|
|
172
|
+
{
|
|
173
|
+
required: !0,
|
|
174
|
+
message: t("taskInspectType.inspectStatus"),
|
|
175
|
+
trigger: "change"
|
|
176
|
+
}
|
|
177
|
+
],
|
|
178
|
+
inspectType: [
|
|
179
|
+
{
|
|
180
|
+
required: !0,
|
|
181
|
+
message: t("taskInspectType.inspectType"),
|
|
182
|
+
trigger: "change"
|
|
183
|
+
}
|
|
184
|
+
]
|
|
185
|
+
}), _ = U(k, "modelValue"), $ = e, x = async () => {
|
|
186
|
+
var r;
|
|
187
|
+
await ((r = n.value) == null ? void 0 : r.validate((i) => {
|
|
188
|
+
i && P.create(c).then((f) => {
|
|
189
|
+
console.log(f), f.status === 200 && (O({
|
|
190
|
+
message: t("common.submitSuccess"),
|
|
191
|
+
type: "success"
|
|
192
|
+
}), _.value && (_.value = !1), $("refresh", f.status === 200));
|
|
193
|
+
});
|
|
194
|
+
}));
|
|
195
|
+
};
|
|
196
|
+
function b() {
|
|
197
|
+
_.value && (_.value = !1);
|
|
198
|
+
}
|
|
199
|
+
return (r, i) => {
|
|
200
|
+
const f = m("el-input"), y = m("el-form-item"), g = m("el-col"), h = m("jmash-select"), D = m("el-row"), E = m("el-form"), v = m("el-button"), C = m("el-dialog");
|
|
201
|
+
return B(), j(C, {
|
|
202
|
+
modelValue: _.value,
|
|
203
|
+
"onUpdate:modelValue": i[3] || (i[3] = (d) => _.value = d),
|
|
204
|
+
onClose: b
|
|
205
|
+
}, {
|
|
206
|
+
footer: o(() => [
|
|
207
|
+
A("div", G, [
|
|
208
|
+
a(v, { onClick: b }, {
|
|
209
|
+
default: o(() => [
|
|
210
|
+
I(V(r.$t("common.cancel")), 1)
|
|
211
|
+
]),
|
|
212
|
+
_: 1
|
|
213
|
+
}),
|
|
214
|
+
a(v, {
|
|
215
|
+
type: "primary",
|
|
216
|
+
onClick: x
|
|
217
|
+
}, {
|
|
218
|
+
default: o(() => [
|
|
219
|
+
I(V(r.$t("common.confirm")), 1)
|
|
220
|
+
]),
|
|
221
|
+
_: 1
|
|
222
|
+
})
|
|
223
|
+
])
|
|
224
|
+
]),
|
|
225
|
+
default: o(() => [
|
|
226
|
+
a(E, {
|
|
227
|
+
ref_key: "taskInspectTypeFormRef",
|
|
228
|
+
ref: n,
|
|
229
|
+
model: u(c),
|
|
230
|
+
"label-width": "120px",
|
|
231
|
+
rules: N
|
|
232
|
+
}, {
|
|
233
|
+
default: o(() => [
|
|
234
|
+
a(D, null, {
|
|
235
|
+
default: o(() => [
|
|
236
|
+
a(g, { span: 24 }, {
|
|
237
|
+
default: o(() => [
|
|
238
|
+
a(y, {
|
|
239
|
+
label: r.$t("taskInspectType.likeInspectName"),
|
|
240
|
+
prop: "inspectName"
|
|
241
|
+
}, {
|
|
242
|
+
default: o(() => [
|
|
243
|
+
a(f, {
|
|
244
|
+
modelValue: u(c).inspectName,
|
|
245
|
+
"onUpdate:modelValue": i[0] || (i[0] = (d) => u(c).inspectName = d),
|
|
246
|
+
placeholder: r.$t("taskInspectType.likeInspectNameRead"),
|
|
247
|
+
maxlength: "45",
|
|
248
|
+
"show-word-limit": "",
|
|
249
|
+
clearable: ""
|
|
250
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
251
|
+
]),
|
|
252
|
+
_: 1
|
|
253
|
+
}, 8, ["label"])
|
|
254
|
+
]),
|
|
255
|
+
_: 1
|
|
256
|
+
}),
|
|
257
|
+
a(g, { span: 12 }, {
|
|
258
|
+
default: o(() => [
|
|
259
|
+
a(y, {
|
|
260
|
+
label: r.$t("taskInspectType.inspectStatus"),
|
|
261
|
+
prop: "inspectStatus"
|
|
262
|
+
}, {
|
|
263
|
+
default: o(() => [
|
|
264
|
+
a(h, {
|
|
265
|
+
modelValue: u(c).inspectStatus,
|
|
266
|
+
"onUpdate:modelValue": i[1] || (i[1] = (d) => u(c).inspectStatus = d),
|
|
267
|
+
data: u(w).inspectStatusEnum.values,
|
|
268
|
+
placeholder: r.$t("taskInspectType.inspectStatusRead"),
|
|
269
|
+
class: "w-full",
|
|
270
|
+
clearable: ""
|
|
271
|
+
}, null, 8, ["modelValue", "data", "placeholder"])
|
|
272
|
+
]),
|
|
273
|
+
_: 1
|
|
274
|
+
}, 8, ["label"])
|
|
275
|
+
]),
|
|
276
|
+
_: 1
|
|
277
|
+
}),
|
|
278
|
+
a(g, { span: 12 }, {
|
|
279
|
+
default: o(() => [
|
|
280
|
+
a(y, {
|
|
281
|
+
label: r.$t("taskInspectType.inspectType"),
|
|
282
|
+
prop: "inspectType"
|
|
283
|
+
}, {
|
|
284
|
+
default: o(() => [
|
|
285
|
+
a(h, {
|
|
286
|
+
modelValue: u(c).inspectType,
|
|
287
|
+
"onUpdate:modelValue": i[2] || (i[2] = (d) => u(c).inspectType = d),
|
|
288
|
+
data: u(w).inspectTypeEnum.values,
|
|
289
|
+
placeholder: r.$t("taskInspectType.inspectTypeRead"),
|
|
290
|
+
clearable: "",
|
|
291
|
+
class: "w-full"
|
|
292
|
+
}, null, 8, ["modelValue", "data", "placeholder"])
|
|
293
|
+
]),
|
|
294
|
+
_: 1
|
|
295
|
+
}, 8, ["label"])
|
|
296
|
+
]),
|
|
297
|
+
_: 1
|
|
298
|
+
})
|
|
299
|
+
]),
|
|
300
|
+
_: 1
|
|
301
|
+
})
|
|
302
|
+
]),
|
|
303
|
+
_: 1
|
|
304
|
+
}, 8, ["model", "rules"])
|
|
305
|
+
]),
|
|
306
|
+
_: 1
|
|
307
|
+
}, 8, ["modelValue"]);
|
|
308
|
+
};
|
|
309
|
+
}
|
|
310
|
+
}), J = /* @__PURE__ */ K(H, [["__scopeId", "data-v-dcc3fb2b"]]), te = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
311
|
+
__proto__: null,
|
|
312
|
+
default: J
|
|
313
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
314
|
+
export {
|
|
315
|
+
J as a,
|
|
316
|
+
te as b,
|
|
317
|
+
P as t
|
|
318
|
+
};
|