Browse Source

fix: 添加转移登记日期

wuguojie 9 months ago
parent
commit
f512ee7979
1 changed files with 19 additions and 1 deletions
  1. 19 1
      src/views/insurancePolicy/index.vue

+ 19 - 1
src/views/insurancePolicy/index.vue

@@ -125,6 +125,7 @@
                   placeholder="请选择"
                   value-format="YYYY-MM-DD"
                   style="width: 100%"
+                  @change="issueDateChange"
                 />
               </el-form-item>
             </el-col>
@@ -189,6 +190,17 @@
                 </el-input>
               </el-form-item>
             </el-col>
+            <el-col v-if="insurancePolicyForm.transfer" :span="6">
+                <el-form-item label="转移登记日期" prop="transferDate">
+                    <el-date-picker
+                            v-model="insurancePolicyForm.transferDate"
+                            type="date"
+                            placeholder="请选择"
+                            value-format="YYYY-MM-DD"
+                            style="width: 100%"
+                    />
+                </el-form-item>
+            </el-col>
 
           </el-row>
           <template #icon="{ isActive }">
@@ -1542,6 +1554,7 @@ let insurancePolicyForm = ref({
   displacement: '',
   powerScale: '',
   carOwner: '',
+  transferDate: '',
 
   // 险种类型
   productId: '',
@@ -1881,6 +1894,10 @@ const longTime = () => {
     insurancePolicyForm.value.identifyValidEndDate1 = '9999-12-31'
 }
 
+const issueDateChange = (e) => {
+    insurancePolicyForm.value.transferDate = insurancePolicyForm.value.issueDate
+}
+
 // 是否同车主/同投保人
 let btns = ref({
   owner1Show: true,
@@ -2621,7 +2638,8 @@ const handleSubmit = async (InsurancePolicyRefs: FormInstance | undefined, scope
           carKindCode: insurancePolicyForm.value.plateType,
           transfer: insurancePolicyForm.value.transfer,
           biTransfer: insurancePolicyForm.value.biTransfer,
-          secondHandCar: insurancePolicyForm.value.secondHandCar
+          secondHandCar: insurancePolicyForm.value.secondHandCar,
+          transferDate: insurancePolicyForm.value.transferDate
         },
         ownersInfo: {
           property: 1,