From 663dbe4ddca1fa409e6acbc1f77d924c161b0c39 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期一, 09 六月 2025 17:04:50 +0800
Subject: [PATCH] 提交一把订单
---
company/src/components/business/OpearaCaseEntryWindow.vue | 25 +++++++++++++++++++++++--
1 files changed, 23 insertions(+), 2 deletions(-)
diff --git a/company/src/components/business/OpearaCaseEntryWindow.vue b/company/src/components/business/OpearaCaseEntryWindow.vue
index acd53ae..dab49d4 100644
--- a/company/src/components/business/OpearaCaseEntryWindow.vue
+++ b/company/src/components/business/OpearaCaseEntryWindow.vue
@@ -11,8 +11,8 @@
<div class="box_item">
<div class="box_item_title">
<span>鍑洪櫓浜轰俊鎭�</span>
- <el-select v-model="ruleForm.status" style="width: 100px;" placeholder="璇烽�夋嫨">
- <el-option label="寰呯珛妗�" :value="2"></el-option>
+ <el-select v-model="ruleForm.status" style="width: 100px;" placeholder="璇烽�夋嫨妗堜欢鐘舵��">
+ <el-option label="宸叉姤妗�" :value="1"></el-option>
<el-option label="宸查��鍥�" :value="4"></el-option>
<el-option label="寰呭彈鐞�" :value="5"></el-option>
<el-option label="宸叉嫆缁�" :value="6"></el-option>
@@ -51,6 +51,7 @@
<el-date-picker
v-model="ruleForm.extData.memberBirthday"
type="date"
+ @change="changeMemberBirthday"
placeholder="閫夋嫨鏃ユ湡"
format="yyyy 骞� MM 鏈� dd 鏃�"
value-format="yyyy-MM-dd">
@@ -982,6 +983,26 @@
}
this.getCompensations()
},
+ changeMemberBirthday(e) {
+ if (!e) {
+ this.ruleForm.extData.memberAge = ''
+ } else {
+ this.ruleForm.extData.memberAge = this.calculateAge(e)
+ }
+ },
+ calculateAge(birthDate) {
+ const today = new Date();
+ const birthDateObject = new Date(birthDate);
+
+ let age = today.getFullYear() - birthDateObject.getFullYear();
+ const monthDiff = today.getMonth() - birthDateObject.getMonth();
+
+ if (monthDiff < 0 || (monthDiff === 0 && today.getDate() < birthDateObject.getDate())) {
+ age--;
+ }
+
+ return age;
+ },
confirm () {
this.$refs.ruleForm.validate((valid) => {
if (!valid) return
--
Gitblit v1.9.3