This commit is contained in:
Net 2025-06-11 23:35:00 +08:00
parent b431e1bff5
commit 3ee472f690
9 changed files with 112 additions and 86 deletions

View File

@ -79,7 +79,7 @@ export default {
minDate: { minDate: {
type: Number, type: Number,
// 10 // 10
default: new Date(new Date().getFullYear() - 10, 0, 1).getTime() default: new Date(new Date().getFullYear() - 80, 0, 1).getTime()
}, },
// mode=time // mode=time
minHour: { minHour: {

View File

@ -261,7 +261,7 @@
{ {
"path": "pages/view/hr/teacherProfile/position", "path": "pages/view/hr/teacherProfile/position",
"style": { "style": {
"navigationBarTitleText": "任教任职", "navigationBarTitleText": "任情况",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
}, },

View File

@ -48,17 +48,25 @@
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { useForm } from "@/components/BasicForm/hooks/useForm"; import {useDataStore} from "@/store/modules/data";
import { useDataStore } from "@/store/modules/data"; import {navigateBack, navigateTo} from "@/utils/uniapp";
import { navigateTo, navigateBack } from "@/utils/uniapp"; import {cloneDeep, map} from "lodash";
import { cloneDeep, map } from "lodash";
const schema = reactive<FormsSchema[]>([ const schema = reactive<FormsSchema[]>([
{ {
field: "gztime", field: "gztime",
label: "起止时间", label: "开始时间",
component: "BasicDateTimes", component: "BasicDateTime",
componentProps: {}, componentProps: {
mode: "year-month",
},
}, {
field: "jssj",
label: "结束时间",
component: "BasicDateTime",
componentProps: {
mode: "year-month",
},
}, },
{ {
field: "gzdw", field: "gzdw",

View File

@ -123,7 +123,8 @@ function submit() {
return item.value; return item.value;
}), }),
}); });
navigateTo("/pages/view/hr/teacherProfile/PersonalHonor"); // navigateTo("/pages/view/hr/teacherProfile/PersonalHonor");
navigateTo("/pages/view/hr/teacherProfile/RecordMaterials");
} }
</script> </script>
<style> <style>

View File

@ -47,16 +47,10 @@
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { import {dicApi} from "@/api/system/dic";
findAllNjBjTreeApi, import {useDataStore} from "@/store/modules/data";
xqgwFindAllApi, import {navigateBack, navigateTo} from "@/utils/uniapp";
xqxjFindAllApi, import {cloneDeep, map} from "lodash";
} from "@/api/base/server";
import { dicApi } from "@/api/system/dic";
import { useForm } from "@/components/BasicForm/hooks/useForm";
import { useDataStore } from "@/store/modules/data";
import { navigateTo, navigateBack } from "@/utils/uniapp";
import { cloneDeep, map } from "lodash";
const schema = reactive<FormsSchema[]>([ const schema = reactive<FormsSchema[]>([
// { // {
@ -83,7 +77,21 @@ const schema = reactive<FormsSchema[]>([
}, },
{ {
field: "gwrztime", field: "gwrztime",
label: "岗位任职时间", label: "岗位聘用开始时间",
component: "BasicDateTime",
componentProps: {
mode: "year-month",
},
}, {
field: "gwpyjssj",
label: "岗位聘用结束时间",
component: "BasicDateTime",
componentProps: {
mode: "year-month",
},
}, {
field: "gwpyjssj",
label: "当时时间-岗位聘用开始时间",
component: "BasicDateTimes", component: "BasicDateTimes",
componentProps: {}, componentProps: {},
}, },

View File

@ -131,6 +131,14 @@ const schema = reactive<FormsSchema[]>([
componentProps: {}, componentProps: {},
}, },
{ {
field: "sczczs",
label: "上传职称证书",
component: "BasicUpload",
itemProps: {
labelPosition: "top",
},
componentProps: {},
}, {
field: "pywjh", field: "pywjh",
label: "上传任职文件", label: "上传任职文件",
component: "BasicUpload", component: "BasicUpload",

View File

@ -23,10 +23,10 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { navigateBack, navigateTo } from "@/utils/uniapp"; import {navigateBack, navigateTo} from "@/utils/uniapp";
import { useForm } from "@/components/BasicForm/hooks/useForm"; import {useForm} from "@/components/BasicForm/hooks/useForm";
import { dicApi } from "@/api/system/dic"; import {dicApi} from "@/api/system/dic";
import { useDataStore } from "@/store/modules/data"; import {useDataStore} from "@/store/modules/data";
const { getFile, setFile } = useDataStore(); const { getFile, setFile } = useDataStore();
@ -81,8 +81,10 @@ const [register, { getValue, setValue }] = useForm({
{ {
field: "zhbynytime", field: "zhbynytime",
label: "最后学历毕业年月", label: "最后学历毕业年月",
component: "BasicDateTimes", component: "BasicDateTime",
componentProps: {}, componentProps: {
mode: "year-month",
},
}, },
{ {
field: "xw", field: "xw",

View File

@ -17,14 +17,13 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { navigateBack, navigateTo } from "@/utils/uniapp"; import {navigateTo} from "@/utils/uniapp";
import { useForm } from "@/components/BasicForm/hooks/useForm"; import {useForm} from "@/components/BasicForm/hooks/useForm";
import { dicApi, findDicTreeByPidApi } from "@/api/system/dic"; import {dicApi, findDicTreeByPidApi} from "@/api/system/dic";
import { useDataStore } from "@/store/modules/data"; import {useDataStore} from "@/store/modules/data";
import { map } from "lodash"; import {map} from "lodash";
import dayjs from "dayjs"; import dayjs from "dayjs";
import { ok } from "assert";
const { getFile, setFile } = useDataStore(); const { getFile, setFile } = useDataStore();
const jsjg = ref(""); const jsjg = ref("");
@ -151,7 +150,6 @@ const [register, { getValue, setValue, setSchema }] = useForm({
componentProps: { componentProps: {
mode: "year-month", mode: "year-month",
ok: (e: any) => { ok: (e: any) => {
console.log(e);
const yearDiff = calculateYearDiff(e.value); const yearDiff = calculateYearDiff(e.value);
setValue({ jsgl: yearDiff }); setValue({ jsgl: yearDiff });
}, },
@ -168,9 +166,10 @@ const [register, { getValue, setValue, setSchema }] = useForm({
{ {
field: "jsTime", field: "jsTime",
label: "任教开始时间", label: "任教开始时间",
component: "BasicDateTimes", component: "BasicDateTime",
componentProps: { componentProps: {
change: (e: any) => { mode: "year-month",
ok: (e: any) => {
const yearDiff = calculateYearDiff(e); const yearDiff = calculateYearDiff(e);
setValue({ jl: yearDiff }); setValue({ jl: yearDiff });
}, },

View File

@ -67,46 +67,46 @@ const [register, { getValue, setValue }] = useForm({
savaKey: "dictionaryCode", savaKey: "dictionaryCode",
}, },
}, },
{ // {
field: "zrxk", // field: "zrxk",
label: "主任学科", // label: "",
component: "BasicPicker", // component: "BasicPicker",
componentProps: { // componentProps: {
api: kmFindAllApi, // api: kmFindAllApi,
rangeKey: "kmmc", // rangeKey: "kmmc",
savaKey: "id", // savaKey: "id",
}, // },
}, // },
{ // {
field: "zrbj", // field: "zrbj",
label: "主任班级", // label: "",
component: "BasicPicker", // component: "BasicPicker",
componentProps: { // componentProps: {
api: findAllNjBjTree, // api: findAllNjBjTree,
rangeKey: "title", // rangeKey: "title",
savaKey: "key", // savaKey: "key",
}, // },
}, // },
{ // {
field: "jrxk", // field: "jrxk",
label: "兼任学科", // label: "",
component: "BasicPicker", // component: "BasicPicker",
componentProps: { // componentProps: {
api: kmFindAllApi, // api: kmFindAllApi,
rangeKey: "kmmc", // rangeKey: "kmmc",
savaKey: "id", // savaKey: "id",
}, // },
}, // },
{ // {
field: "jrbj", // field: "jrbj",
label: "兼任班级", // label: "",
component: "BasicPicker", // component: "BasicPicker",
componentProps: { // componentProps: {
api: findAllNjBjTree, // api: findAllNjBjTree,
rangeKey: "title", // rangeKey: "title",
savaKey: "key", // savaKey: "key",
}, // },
}, // },
{ {
field: "njId", field: "njId",
label: "所属年级", label: "所属年级",
@ -117,16 +117,16 @@ const [register, { getValue, setValue }] = useForm({
savaKey: "key", savaKey: "key",
}, },
}, },
{ // {
field: "bzrBjId", // field: "bzrBjId",
label: "班主任班级", // label: "",
component: "BasicTree", // component: "BasicTree",
componentProps: { // componentProps: {
api: findAllNjBjTree, // api: findAllNjBjTree,
rangeKey: "title", // rangeKey: "title",
savaKey: "key", // savaKey: "key",
}, // },
}, // },
], ],
}); });