From 5aebf4e12fcbc706d35df26f9bf15f1d32603c51 Mon Sep 17 00:00:00 2001
From: lcw <1878680531@qq.com>
Date: Thu, 25 Sep 2025 10:37:22 +0800
Subject: [PATCH] lcw
---
src/api/pxzx.js | 8 ++++++++
src/components/aboutTable/FormMessage.vue | 1 +
.../components/detailForm.vue | 17 +++++++++++++----
.../components/pxApllication.vue | 12 ++++++------
.../AnnualInspectionApplicants/index.vue | 3 ++-
5 files changed, 30 insertions(+), 11 deletions(-)
diff --git a/src/api/pxzx.js b/src/api/pxzx.js
index 06c5f7f..08da16c 100644
--- a/src/api/pxzx.js
+++ b/src/api/pxzx.js
@@ -75,3 +75,11 @@ export const baxxNjryNjshPage = (data) => {
data
});
};
+// /baxx/njry / njsh Edit
+export const baxxNjryNjryNjsh = (data) => {
+ return request({
+ url: api + "/baxx/njry/njsh",
+ method: "POST",
+ data
+ });
+};
diff --git a/src/components/aboutTable/FormMessage.vue b/src/components/aboutTable/FormMessage.vue
index 44ccea3..d6971cf 100644
--- a/src/components/aboutTable/FormMessage.vue
+++ b/src/components/aboutTable/FormMessage.vue
@@ -53,6 +53,7 @@
+
diff --git a/src/views/Training/AnnualInspectionApplicants/components/detailForm.vue b/src/views/Training/AnnualInspectionApplicants/components/detailForm.vue
index 50949f0..62800a2 100644
--- a/src/views/Training/AnnualInspectionApplicants/components/detailForm.vue
+++ b/src/views/Training/AnnualInspectionApplicants/components/detailForm.vue
@@ -12,8 +12,8 @@
- 通过
- 不通过
+ 通过
+ 不通过
@@ -22,7 +22,7 @@
import { qcckPost , qcckGet} from "@/api/qcckApi.js";
import FormMessage from "@/components/aboutTable/FormMessage.vue";
import { ref, reactive, defineEmits, getCurrentInstance } from 'vue';
-import {baxxNjryEdit} from "@/api/pxzx.js";
+import {baxxNjryEdit,baxxNjryNjryNjsh} from "@/api/pxzx.js";
const emit = defineEmits(["refresh"]);
const props = defineProps({
dict: {
@@ -90,7 +90,16 @@ const save = () => {
// })
});
}
-
+const submit = (val) => {
+ baxxNjryNjryNjsh({
+ id: listQuery.value.id,
+ njzt: val,
+ }).then(res => {
+ proxy.$message.success('操作成功');
+ emit("refresh");
+ close();
+ })
+}
const close = () => {
dialogForm.value = false;
diff --git a/src/views/Training/AnnualInspectionApplicants/components/pxApllication.vue b/src/views/Training/AnnualInspectionApplicants/components/pxApllication.vue
index 3858be5..a550917 100644
--- a/src/views/Training/AnnualInspectionApplicants/components/pxApllication.vue
+++ b/src/views/Training/AnnualInspectionApplicants/components/pxApllication.vue
@@ -36,7 +36,7 @@ const FormRef = ref();
const listQuery = ref({});
const formList = reactive([
[
- { label: "培训日期", prop: "pxrq", type: "input" },
+ { label: "培训日期", prop: "pxrq", type: "date" },
{ label: "培训时间", prop: "pxsj", type: "input" },
{ label: "课程名称", prop: "kcmc", type: "input" },
],
@@ -47,8 +47,8 @@ const formList = reactive([
],
{ label: "分割线", prop: "diver", type: "slot" },
[
- { label: "培训日期", prop: "pxrq", type: "input" },
- { label: "培训时间", prop: "pxsj", type: "input" },
+ { label: "培训日期", prop: "pxrq", type: "date" },
+ { label: "培训时间", prop: "pxsj", type: "time" },
{ label: "课程名称", prop: "kcmc", type: "input" },
],
[
@@ -58,8 +58,8 @@ const formList = reactive([
],
{ label: "分割线", prop: "diver", type: "slot" },
[
- { label: "培训日期", prop: "pxrq", type: "input" },
- { label: "培训时间", prop: "pxsj", type: "input" },
+ { label: "培训日期", prop: "pxrq", type: "date" },
+ { label: "培训时间", prop: "pxsj", type: "time" },
{ label: "课程名称", prop: "kcmc", type: "input" },
],
[
@@ -67,7 +67,7 @@ const formList = reactive([
{ label: "授课教员", prop: "skfcy", type: "select" },
{ label: "培训内容", prop: "pxnr", type: "input" },
],
-
+
])
const pageData = reactive({
diff --git a/src/views/Training/AnnualInspectionApplicants/index.vue b/src/views/Training/AnnualInspectionApplicants/index.vue
index faa2ada..5923a13 100644
--- a/src/views/Training/AnnualInspectionApplicants/index.vue
+++ b/src/views/Training/AnnualInspectionApplicants/index.vue
@@ -18,7 +18,8 @@
{{ row.bazyj&&row.tjzm&&row.wfzzmjl?'已上传':'未上传' }}
-
+ {{ row.njzt == '01'?'通过':row.njzt == '02'?'不通过':'' }}
+