From 32f10392ab00b07e85c0b4229037c30af7c3f28e Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期二, 27 一月 2026 10:42:49 +0800
Subject: [PATCH] 浪潮对接单点登录:mis调整2

---
 src/views/personnelManagement/onboarding/components/formDia.vue |   33 +++++++++++++++++++++++++++------
 1 files changed, 27 insertions(+), 6 deletions(-)

diff --git a/src/views/personnelManagement/onboarding/components/formDia.vue b/src/views/personnelManagement/onboarding/components/formDia.vue
index d0e76cc..515eeb8 100644
--- a/src/views/personnelManagement/onboarding/components/formDia.vue
+++ b/src/views/personnelManagement/onboarding/components/formDia.vue
@@ -124,6 +124,26 @@
             </el-form-item>
           </el-col>
         </el-row>
+        <el-row :gutter="30">
+          <el-col :span="12">
+            <el-form-item label="璇曠敤鏈燂紙鏈堬級锛�" prop="probationPeriod">
+              <el-input-number v-model="form.probationPeriod" :precision="0" :step="1" min="0" style="width: 100%"/>
+            </el-form-item>
+          </el-col>
+          <!-- <el-col :span="12">
+            <el-form-item label="鍏ヨ亴鏃ユ湡锛�" prop="entryDate">
+              <el-date-picker
+                  v-model="form.entryDate"
+                  type="date"
+                  placeholder="璇烽�夋嫨鏃ユ湡"
+                  value-format="YYYY-MM-DD"
+                  format="YYYY-MM-DD"
+                  clearable
+                  style="width: 100%"
+              />
+            </el-form-item>
+          </el-col> -->
+        </el-row>
       </el-form>
       <template #footer>
         <div class="dialog-footer">
@@ -136,7 +156,7 @@
 </template>
 
 <script setup>
-import {ref} from "vue";
+import {ref, reactive, toRefs} from "vue";
 import {getStaffJoinInfo, staffJoinAdd, staffJoinUpdate} from "@/api/personnelManagement/onboarding.js";
 const { proxy } = getCurrentInstance()
 const emit = defineEmits(['close'])
@@ -162,6 +182,7 @@
     contractStartTime: "",
     contractEndTime: "",
     staffState: "",
+    probationPeriod: 3, // 榛樿璇曠敤鏈�3涓湀
   },
   rules: {
     staffNo: [{ required: true, message: "璇疯緭鍏�", trigger: "blur" },],
@@ -220,20 +241,20 @@
   if (form.value.contractStartTime && form.value.contractEndTime) {
     const startDate = new Date(form.value.contractStartTime);
     const endDate = new Date(form.value.contractEndTime);
-    
+
     if (endDate > startDate) {
       // 璁$畻骞翠唤宸�
       const yearDiff = endDate.getFullYear() - startDate.getFullYear();
       const monthDiff = endDate.getMonth() - startDate.getMonth();
       const dayDiff = endDate.getDate() - startDate.getDate();
-      
+
       let years = yearDiff;
-      
+
       // 濡傛灉缁撴潫鏃ユ湡鐨勬湀鏃ュ皬浜庡紑濮嬫棩鏈熺殑鏈堟棩锛屽垯鍑忓幓1骞�
       if (monthDiff < 0 || (monthDiff === 0 && dayDiff < 0)) {
         years = yearDiff - 1;
       }
-      
+
       form.value.contractTerm = Math.max(0, years);
     } else {
       form.value.contractTerm = 0;
@@ -256,4 +277,4 @@
 
 <style scoped>
 
-</style>
\ No newline at end of file
+</style>

--
Gitblit v1.9.3