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: {
type: Number,
// 10
default: new Date(new Date().getFullYear() - 10, 0, 1).getTime()
default: new Date(new Date().getFullYear() - 80, 0, 1).getTime()
},
// mode=time
minHour: {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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