Przeglądaj źródła

加业务员必选校验

@dongkboy 4 miesięcy temu
rodzic
commit
ec5e2c99bc
2 zmienionych plików z 16 dodań i 5 usunięć
  1. 4 4
      .env.development
  2. 12 1
      src/views/insurancePolicy/index.vue

+ 4 - 4
.env.development

@@ -3,11 +3,11 @@ VITE_APP_SETTING = true
 # 页面标题
 VITE_APP_TITLE = 租户平台
 # 接口请求地址,会设置到 axios 的 baseURL 参数上
-VITE_APP_API_BASEURL = https://tennat.baoxianzhanggui.com/api #默认地址
-# VITE_APP_API_BASEURL = http://192.168.0.253:8001  #田智
+# VITE_APP_API_BASEURL = https://tennat.baoxianzhanggui.com/api #默认地址
+VITE_APP_API_BASEURL = http://192.168.5.249:8001  #田智
 # VITE_APP_API_BASEURL = http://192.168.0.19:8001  #董鑫
-# VITE_APP_API_BASEURL = http://192.168.5.47:8001  #屈晨
-# VITE_APP_API_BASEURL = http://192.168.0.59:8001  #徐强
+# VITE_APP_API_BASEURL = http://192.168.5.17:8001  #李鹏飞
+# VITE_APP_API_BASEURL = http://192.168.5.28:8001  #贾凯
 
 # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空
 VITE_APP_DEBUG_TOOL =

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

@@ -1103,7 +1103,7 @@
                   <span style="display: flex; align-items: center; color: #FF4545;"><el-icon class="mr-2">
                       <WarningFilled size="14" color="#FF4545" />
                     </el-icon>核保失败</span>
-                  <el-popover title="提示" :width="300" raw-content placement="bottom-end">
+                  <el-popover title="提示" :width="500" raw-content placement="bottom">
                     <template #default>
                       <span v-html="scope.row.underwritingMsg.replace(/\n/g, '<br>')"></span>
                     </template>
@@ -1456,6 +1456,7 @@ const router = useRouter()         // 路由器实例
  * @returns 格式化后的日期字符串
  */
 const changeDate = (e: any) => {
+
   return dayjs(e.target.value).format('YYYY-MM-DD')
 }
 
@@ -3129,6 +3130,15 @@ const handleSubmit = async (InsurancePolicyRefs: FormInstance | undefined, scope
     InsurancePolicyRefs?.resetFields()
     return
   }
+  if (!insurancePolicyForm.value.salesman) {
+    ElMessage({
+      message: '业务员必选',
+      type: 'warning'
+    })
+    return
+  }
+  console.log(insurancePolicyForm.value)
+  // return
   await InsurancePolicyRefs.validate((valid: any) => {
     if (valid) {
       // 设置当前报价项的加载状态
@@ -3224,6 +3234,7 @@ const handleSubmit = async (InsurancePolicyRefs: FormInstance | undefined, scope
       let data = {
         systemType: '2',
         order: {
+          realQuoteUserId: insurancePolicyForm.value.mobile,
           insuranceCompanyCode: quoteData.value[scope.$index].id,  // 保险公司代码
           quoteNo: insurancePolicyForm.value.order.quoteNo,       // 报价单号
           agreementId: quoteData.value[scope.$index].isDispatch ? quoteData.value[scope.$index].dispatchAgreementId : quoteData.value[scope.$index].agreement, // 协议ID