Răsfoiți Sursa

fix: 修改bug

wuguojie 9 luni în urmă
părinte
comite
3400cb0baa

+ 5 - 3
src/api/modules/dispatch.ts

@@ -9,15 +9,17 @@ const dispatchApi = (axiosInstance: ApiInstance) => ({
   getCompanyList: () => axiosInstance.get(`scheme/getCompanyList?systemCode=${localStorage.getItem('login_system')}`),
   //协议列表
   dispatchList: (data: any) => axiosInstance.get('pltAgreement/attr/list', data),
+  // 新的协议列表
+  listByParam: (data: any) => axiosInstance.post('/pltAgreement/attr/listByParam', data),
   //详情信息查询
   getByCompanyIdt: (data: any) => axiosInstance.get(`agreement/getByCompanyId?companyId=${data}`),
   //保司账号
   getLoginUrl:(data: any) => axiosInstance.post(`manager/attribution/getLoginUrl`,data),
   //保存
   addAgreementDispatch:(data: any) => axiosInstance.post(`ptlAgreementDispatch/addAgreementDispatch`,data),
-  //获取后线人员    
+  //获取后线人员
   getUserList: (data: any) => axiosInstance.post(`userInfo/getUser`,data),
-  //添加调度动作  
+  //添加调度动作
   addAgreementDispatchAction: (data: any) => axiosInstance.post(`ptlAgreementDispatch/addAgreementDispatchAction`,data),
   //获取调度规则列表 getAgreementDispatch
   getAgreementDispatch: (data: any) => axiosInstance.post(`ptlAgreementDispatch/getAgreementDispatch`,data),
@@ -25,7 +27,7 @@ const dispatchApi = (axiosInstance: ApiInstance) => ({
   deleteAgreementDispatch: (data: any) => axiosInstance.get(`ptlAgreementDispatch/deleteAgreementDispatch?dispatchId=${data}`),
   //修改调度规则
   updateAgreementDispatch: (data: any) => axiosInstance.post(`ptlAgreementDispatch/updateAgreementDispatch`,data),
-  //修改规则名称  
+  //修改规则名称
   updateDispatchName:(data:any) => axiosInstance.get(`ptlAgreementDispatch/updateDispatchName?dispatchId=${data.dispatchId}&name=${data.name}`),
   //获取保司账号
   getAgreementAttributionByCompanyId:(data:any) => axiosInstance.get(`/manager/attributionTemplate/getAgreementAttributionByCompanyId?companyId=${data}`,),

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

@@ -2893,7 +2893,7 @@ const handleSubmit = async (InsurancePolicyRefs: FormInstance | undefined, scope
         order: {
           insuranceCompanyCode: insurancePolicyForm.value.order.insuranceCompanyCode,
           quoteNo: insurancePolicyForm.value.order.quoteNo,
-          agreementId: quoteData.value[scope.$index].agreement
+          agreementId: quoteData.value[scope.$index].isDispatch?quoteData.value[scope.$index].dispatchAgreementId:quoteData.value[scope.$index].agreement
         },
         productId: insurancePolicyForm.value.productId,
         carInfoVo: {

+ 3 - 3
src/views/insurancePolicy/orderDetail.vue

@@ -11,7 +11,7 @@
                     <span class="tips">{{ detailData?.order?.orderStatus === '0'?'订单报价中,请耐心等待':detailData?.order?.orderStatus === '1'?'订单已完成报价,请立即核保!':detailData?.order?.orderStatus === '2'?'订单核保中,请耐心等待':detailData?.order?.orderStatus === '3'?'订单人工处理中,请耐心等待':detailData?.order?.orderStatus === '4'?'订单核保已通过,请尽快支付!':detailData?.order?.orderStatus === '5'?'已承保':detailData?.order?.orderStatus === '6'?'计算保费失败,请按要求修改订单':detailData?.order?.orderStatus === '7'?'核保不通过,请按意见修改订单':detailData?.order?.orderStatus === '8'?'订单已关闭,有投保需求请重新报价':'--' }}</span>
                 </el-col>
             </el-row>
-            
+
             <div class="authBox" v-if="detailData?.insOrderAdjustVo && [1, 3].indexOf(detailData?.insOrderAdjustVo.status) !== -1">
                 <div class="left">
                     <el-icon class="mr-[16px]" size="24" color="#E6A23C"><WarningFilled /></el-icon>
@@ -32,7 +32,7 @@
                     <el-button type="primary" @click="openDetail">详情</el-button>
                 </div>
             </div>
-            
+
             <el-row :gutter="10">
                 <el-col :span="6">
                     <span class="label">业务员</span>
@@ -1812,7 +1812,7 @@ const handleQuote = () => {
 const handleUnderWriting = () => {
     api.insurancePolicyApi.underwriting({
         order: {
-            ordersNo: detailData.value?.order?.orderNo
+            ordersNo: detailData.value?.ordersNo
         }
     }).then((res: any) => {
         if(res.code === 200) {

+ 11 - 8
src/views/quoteConfig/dispatch/components/rule.vue

@@ -727,7 +727,10 @@ const handlePhoneInput = () => {
 // 获取条件类型列表
 const getList = async () => {
   try {
-    const res = await api.dispatchApi.dispatchList({});
+    const res = await api.dispatchApi.listByParam({
+        scopeApplication: 'PROTOCOL_SCHEDULING',
+        companyId: props.companyId
+    });
     dispatchList.value = res.data;
   } catch (error) {
     console.error("获取条件类型列表失败:", error);
@@ -851,7 +854,7 @@ onMounted(async () => {
   // 2. 提取props参数
   const { editType, editData } = props;
   console.log("当前操作类型:", editType);
-  
+
   dispatchId.value = editData?.dispatchId || "";
 
   // 3. 初始化formData基础结构(固定保留actionJson默认值,仅动态处理conditionGroups)
@@ -875,15 +878,15 @@ onMounted(async () => {
   };
  let isDefaultScene = false;
   // 4. 新增场景:仅初始化conditionGroups为默认一组条件
-    if (!editType || editType === "add") { 
+    if (!editType || editType === "add") {
     isDefaultScene = true;
     console.log("[初始化] 进入场景:无editType或add"); // 新增日志
 
     // 提取原始条件组(兼容editData可能的格式)
-    const rawGroups = editData?.groupedAttrLinks 
-      ? editData.groupedAttrLinks 
-      : editData?.attrLinks 
-        ? [editData.attrLinks] 
+    const rawGroups = editData?.groupedAttrLinks
+      ? editData.groupedAttrLinks
+      : editData?.attrLinks
+        ? [editData.attrLinks]
         : [];
     console.log("[初始化] 提取到的rawGroups:", rawGroups, "长度:", rawGroups.length); // 新增日志
 
@@ -1134,4 +1137,4 @@ onMounted(async () => {
 :deep(.el-drawer__body) {
   padding: 0 24px;
 }
-</style>
+</style>