From d37bf55e27b7edb61037bccde6cabeda1ddec6b7 Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期二, 30 七月 2024 15:54:22 +0800
Subject: [PATCH] git ch
---
company/src/components/enterprise/addEmployeeWithDu.vue | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/company/src/components/enterprise/addEmployeeWithDu.vue b/company/src/components/enterprise/addEmployeeWithDu.vue
index 2ffc3b7..7565552 100644
--- a/company/src/components/enterprise/addEmployeeWithDu.vue
+++ b/company/src/components/enterprise/addEmployeeWithDu.vue
@@ -79,7 +79,7 @@
this.visible = true
this.tempIndex = tempIndex
this.solutionId = obj.solutionId
- this.dispatching=[]
+ this.dispatching = []
this.list = [
{
memberName: '',
@@ -120,7 +120,7 @@
})
},
selectChangeWT (index) {
- this.list[index].workTypeName =null
+ this.list[index].workTypeName = null
this.list[index].options.forEach(item => {
if (item.id === this.list[index].worktypeId) {
this.list[index].workTypeName = item.name
@@ -167,6 +167,13 @@
this.$message.warning(`绗�${i + 1}椤瑰憳宸ヨ韩浠借瘉涓嶅悎娉昤)
return
}
+ const s=parseInt(this.list[i].idCard.substring(16,17))
+ // const s = parseInt(this.list[i].idCard.slice(16, 1))
+ if (s % 2 === 0) {
+ this.list[i].sex = 1
+ } else {
+ this.list[i].sex = 0
+ }
}
// 鍒ゆ柇璇︽儏鍒楄〃鏁版嵁韬唤璇佹槸鍚︽湁閲嶅
let next = true
@@ -181,6 +188,7 @@
this.list.forEach(item => {
item.fee = this.price
})
+ console.log(this.list)
this.$emit('result', this.list)
this.visible = false
} else {
--
Gitblit v1.9.3