소스 검색

内部协议

@dongkboy 1 년 전
부모
커밋
d7fe0f5ecf

+ 2 - 3
src/views/personnel/roleManagement.vue

@@ -361,7 +361,7 @@ function roleSubmit() {
           dataMark: roleInfo.dataMark,
         },
       })
-      .then((res) => {
+      .then((_res) => {
         // console.log(res);
         ElMessage.success("操作成功");
         getRoleList();
@@ -374,7 +374,7 @@ function deleteRole() {
     .roleDeleteValid({
       id: roleId.value,
     })
-    .then((res) => {
+    .then((res:any) => {
       console.log(res);
       if (res.code == 200) {
         ElMessageBox.confirm("确认要删除当前数据吗?", "提示", {
@@ -461,7 +461,6 @@ function disabledTree(list: any[], id: string) {
       } else {
         list[i].disabled = false;
       }
-
       //
     } else {
       list[i].disabled = false;

+ 18 - 3
src/views/quoteConfig/agreement/agreementAdd.vue

@@ -97,7 +97,7 @@
           </ElCol>
           <ElCol :md="24" :lg="6">
             <el-form-item label="出单账号" prop="attributionId">
-              <el-input v-model="agreementFrom.attributionId" placeholder="请选择" />
+              <el-input v-model="attributionName" placeholder="请选择" type="textarea" @click="orderAccountVisible = true" />
             </el-form-item>
           </ElCol>
           <ElCol :md="24" :lg="12">
@@ -152,8 +152,11 @@
         取消
       </ElButton>
     </FixedActionBar>
+    <!-- 选择管理人 -->
     <managerModal :managerModal="managerModalVisible" :deptOptions="deptOptions" :managerlist="managerlist"
       @save="managerModalsave" @NodeClick="managerModalNodeClick" @query="managerModalQuery" @cancel="managerModalVisible = false" />
+      <!-- 选择出单账号 -->
+      <orderAccount :orderAccount="orderAccountVisible" @cancel="orderAccountVisible = false" @save="orderAccountSave" />
   </div>
 </template>
 
@@ -164,6 +167,7 @@ import { loadDicts, getDict } from '@/utils/composables/dictService';//字典组
 import { Fileonload, formatFileSize, processFileName } from '@/utils/composables/fileProcessing';//文件处理工具
 import { useRoute, useRouter } from 'vue-router';
 import managerModal from "./components/managerModal.vue";
+import orderAccount from "./components/orderAccount.vue";
 import api from '@/api';
 const parentIdprops = {
   expandTrigger: 'hover' as const,
@@ -435,14 +439,25 @@ const managerModalQuery=(searchValue:string)=>{
     }
   });
 }
-//保存事件
+//选择管理人保存事件
 const managerModalsave = (id: string, name: string, deptName: string) => {
   agreementFrom.custodianId = id;
   managerName.value = name + ' - ' + deptName;
   managerModalVisible.value = false;
 
 }
-
+//选择出单账号
+const orderAccountVisible=ref(false);
+const attributionName=ref();
+const attributionUserAbbr=ref();
+//保存事件
+const orderAccountSave=( id: string, name: string, userAbbr:string)=>{
+  console.log(id,name,userAbbr)
+  agreementFrom.attributionId = id;
+  attributionName.value=`用户名:${name}\n简称:${userAbbr}`;
+  attributionUserAbbr.value=userAbbr;
+  orderAccountVisible.value=false;
+}
 </script>
 <style lang="scss" scoped>
 .disabled :deep(.el-upload--picture-card) {

+ 236 - 0
src/views/quoteConfig/agreement/agreementCopy.vue

@@ -0,0 +1,236 @@
+<!-- 模板区域 -->
+<template>
+  <div>
+    <PageMain>
+      <div class="headers">
+        <span class="strong">天勤恒邦吕梁协议 - 非晋M - 0136</span>
+        <el-descriptions :column="2" style="margin-top: 10px;">
+          <el-descriptions-item label="协议号:">{{ agreementInfo.agreementCode }}</el-descriptions-item>
+          <el-descriptions-item label="协议名称:">{{ agreementInfo.agreementTitle }}</el-descriptions-item>
+          <el-descriptions-item label="归属机构:">{{ agreementInfo.deptName }}</el-descriptions-item>
+          <el-descriptions-item label="授权机构:">{{ authDeptlength }}</el-descriptions-item>
+          <el-descriptions-item label="添加人:">
+            {{ agreementInfo.createBy }}
+          </el-descriptions-item>
+          <el-descriptions-item label="添加时间:">
+            {{ agreementInfo.createTime }}
+          </el-descriptions-item>
+        </el-descriptions>
+      </div>
+      <div class="content m-top-20 flex a-c">
+        <span>出单费用{{ feeData.length }}条</span>
+        <div class="grayBlock m-right-10 m-left-20 flex a-c j-s">
+          <span class="m-right-20" style="line-height: 14px;">有效状态</span>
+          <el-dropdown trigger="click" @command="validStateCommand">
+            <el-button link style="font-size: 14px;color: #333;"> {{ valid_statusName ? valid_statusName : '全部'
+            }}<el-icon>
+                <arrow-down />
+              </el-icon>
+            </el-button>
+            <template #dropdown>
+              <el-dropdown-menu>
+                <el-dropdown-item :command="item.label" v-for="(item, index) in getDict('valid_status')" :key="index">{{
+                  item.label }}</el-dropdown-item>
+              </el-dropdown-menu>
+            </template>
+          </el-dropdown>
+        </div>
+        <div class="grayBlock m-right-10 m-left-20 flex a-c j-s">
+          <span class="m-right-20" style="line-height: 14px;">费用状态</span>
+          <el-dropdown placement="bottom-start" @command="agreementStatusCommand">
+            <el-button link style="font-size: 14px;color: #333;">{{ is_enableName ? is_enableName : '全部' }}<el-icon>
+                <arrow-down />
+              </el-icon>
+            </el-button>
+            <template #dropdown>
+              <el-dropdown-menu>
+                <el-dropdown-item :command="item.label" v-for="(item, index) in is_enable" :key="index">{{ item.label
+                }}</el-dropdown-item>
+              </el-dropdown-menu>
+            </template>
+          </el-dropdown>
+        </div>
+      </div>
+      <ComplexTable :tableData="feeData" :columns="columns" :showIndex="false" :columnwidth="200" :showOperation="false"
+        :showSelect="true" uniqueIdName="costId" @selectionChange="selectionChange">
+      </ComplexTable>
+
+    </PageMain>
+    <FixedActionBar>
+      <ElButton @click="router.back()">
+        取消
+      </ElButton>
+      <ElButton type="primary" @click="agreementcopy" :disabled="!sysUpAndDownList.length">
+        复制协议
+      </ElButton>
+    </FixedActionBar>
+  </div>
+</template>
+
+<!-- 行为区域 -->
+<script lang='ts' setup>
+import { ref, reactive } from 'vue'
+import api from '@/api'
+import { useRoute, useRouter } from 'vue-router';
+import { ElMessage, ElMessageBox } from 'element-plus'
+import { loadDicts, getDict } from '@/utils/composables/dictService';//字典组件
+const route = useRoute();
+const router = useRouter();
+const id = ref(route.query.id as string);//id参数
+interface Agreement {
+  [key: string]: string | number; // 协议名称
+}
+const agreementInfo = ref<Agreement>({}); // 初始值为 null
+const authDeptlength = ref<number>(0);
+const feeData = ref([]);//费用数据
+const valid_status = ref();
+const valid_statusName = ref();
+const is_enable = ref();
+const is_enableName = ref();
+const sysUpAndDownList = ref<string[]>([])//选中id
+const formInline = reactive({
+  validState: '',//协议信息
+  agreementStatus: "",//归属
+})
+const columns = [
+
+  {
+    prop: "costRules", label: "规则明细", width: '500',
+  },
+  {
+    prop: "productName", label: "保险产品", width: '120',
+  },
+  {
+    prop: "isEnabled", label: "费用状态", width: '100', component: "Tag",
+    formatter: (row: any) => {
+      let name = getDict('is_enable').find(val => val.value == row.isEnabled).label
+      if (name) {
+        return { type: 'primary', text: name };
+      }
+    }
+  },
+  {
+    prop: "approved", label: "有效状态", width: '120', component: "Tag", formatter: (row: any) => {
+      if (row.isValid == '0') {
+        return { type: 'primary', text: '生效中' }
+      } else {
+        return { type: 'danger', text: '已失效' }
+
+      }
+
+    }
+  },
+  { prop: "effectiveTime", label: "生效时间", width: '200' },
+  { prop: "failureTime", label: "失效时间", width: '200' },
+  {
+    prop: "ruleConditions", label: "交强费用", width: '300', formatter: (row: any) => {
+      let info = row.ruleConditions.find((val: any) => val.costType == '交强险');
+      if (info) {
+        return `入口:${info.inlet.toFixed(2)}% 出口:${info.export.toFixed(2)}%\n加投:${info.addThrow.toFixed(2)}% 手续费:${info.commission.toFixed(2)}%`
+      } else {
+        return '-';
+      }
+    }
+  },
+  {
+    prop: "ruleConditions", label: "商业费用", width: '300', formatter: (row: any) => {
+      let info = row.ruleConditions.find((val: any) => val.costType == '商业险');
+      if (info) {
+        return `入口:${info.inlet.toFixed(2)}% 出口:${info.export.toFixed(2)}%\n加投:${info.addThrow.toFixed(2)}% 手续费:${info.commission.toFixed(2)}%`
+      } else {
+        return '-';
+      }
+    }
+  },
+  {
+    prop: "ruleConditions", label: "驾意险费用", width: '300', formatter: (row: any) => {
+      let info = row.ruleConditions.find((val: any) => val.costType == '驾意险');
+      if (info) {
+        return `入口:${info.inlet.toFixed(2)}% 出口:${info.export.toFixed(2)}%\n加投:${info.addThrow.toFixed(2)}% 手续费:${info.commission.toFixed(2)}%`
+      } else {
+        return '-';
+      }
+    }
+  },
+];
+onBeforeMount(async () => {
+  await loadDicts(['valid_status', 'is_enable']);//获取多个字典
+  if (id.value) {
+    detailsInfo();//协议信息
+    findpage();
+    valid_status.value = getDict('valid_status')
+    is_enable.value = getDict('is_enable')
+  }
+})
+//协议详情
+const detailsInfo = () => {
+  api.agreementApi.agreementGet(id.value).then((res: any) => {
+    if (res.code == '200') {
+      res.data.agreement.fileName = processFileName(res.data.agreement.fileName)
+      res.data.agreement.fileSize = formatFileSize(res.data.agreement.fileSize);
+      agreementInfo.value = res.data.agreement;
+      authDeptlength.value = res.data.dept.length;
+    } else {
+    }
+  });
+}
+//费用数据查询
+function findpage() {
+  api.agreementApi.queryByFeePage({ pages: 1, size: 100, ...formInline }).then((res: any) => {
+    if (res.code == '200') {
+      feeData.value = res.data.records;
+    } else {
+    }
+  });
+}
+//费用复制
+const agreementcopy = () => {
+  api.agreementApi.agreementCopy({id:id.value,costIds:sysUpAndDownList.value}).then((res: any) => {
+    if (res.code == '200') {
+      ElMessage({
+        type: 'success',
+        message: res.msg,
+        plain: true,
+      })
+      router.back()
+    } else {
+    }
+  });
+}
+//多选事件
+const selectionChange = (val: any) => {
+  console.log(val)
+  sysUpAndDownList.value = val;
+}
+const validStateCommand = (e: any) => {
+  let info = valid_status.value.find((val: any) => val.label == e);
+  valid_statusName.value = info.label;
+  formInline.validState = info.value;
+  findpage();
+
+}
+const agreementStatusCommand = (e: any) => {
+  let info = is_enable.value.find((val: any) => val.label == e);
+  is_enableName.value = info.label;
+  formInline.agreementStatus = info.value;
+  findpage();
+}
+</script>
+<!-- 样式区域 -->
+<style lang='scss' scoped>
+.headers {
+  border-bottom: 1px solid #f2f2f2;
+}
+
+.grayBlock {
+  padding: 8px 10px;
+  font-size: 14px;
+  color: #666;
+  background: #f2f2f2;
+  border-radius: 4px;
+}
+
+:deep(.el-descriptions__cell) {
+  width: 33.33%;
+}
+</style>

+ 29 - 18
src/views/quoteConfig/agreement/agreementIndex.vue

@@ -16,7 +16,7 @@
             </el-button>
           </RouterLink>
           <el-dropdown placement="bottom-start">
-            <el-button> 批量管理<el-icon>
+            <el-button > 批量管理<el-icon>
                 <arrow-down />
               </el-icon>
             </el-button>
@@ -41,9 +41,9 @@
                 <el-dropdown-item @click="enable(scope.operationData.id)">启用</el-dropdown-item>
                 <el-dropdown-item @click="disable(scope.operationData.id)">禁用</el-dropdown-item>
                 <el-dropdown-item @click="del(scope.operationData.id)">删除</el-dropdown-item>
-                <el-dropdown-item @click="agreemenCopy">复制协议</el-dropdown-item>
+                <el-dropdown-item @click="agreemenCopy(scope.operationData.id)">复制协议</el-dropdown-item>
                 <el-dropdown-item @click="batchAuthorization(scope.operationData.id)">协议授权</el-dropdown-item>
-                <el-dropdown-item @click="agreemenUpdate(scope.operationData)">费用管理</el-dropdown-item>
+                <el-dropdown-item @click="cost(scope.operationData.id)">费用管理</el-dropdown-item>
               </el-dropdown-menu>
             </template>
           </el-dropdown>
@@ -91,7 +91,6 @@ const parentIdprops = {
 }
 const tableData = ref([
 ]);
-
 const sysUpAndDownList = ref<string[]>([])//选中id
 const provinceoptions = ref<string[]>([])//省市区回显数据
 const deptOptions = ref()//机构数据
@@ -120,6 +119,9 @@ const formInline = reactive({
   takeEndDate: "",
   loseStartDate: "",
   loseEndDate: "",
+  isExternal:'0',
+  value1:[],
+  value2:[],
 })
 
 //表格字段数据
@@ -152,14 +154,15 @@ const fields = ref([
     label: "出单账号", model: "attributionName", type: "input", placeholder: "选择出单账号"
   },
   {
-    label: "生效时间", model: "takeStartDate", type: "date", dateType: "datetimerange", startplaceholder: "开始时间", endplaceholder: "结束时间",
+    label: "生效时间", model: "value1", type: "date", dateType: "datetimerange", startplaceholder: "开始时间", endplaceholder: "结束时间",
     onChange: (value: any) => {
+      console.log(value)
       formInline.takeStartDate = value[0];
       formInline.takeEndDate = value[1];
     }
   },
   {
-    label: "失效时间", model: "loseStartDate", type: "date", dateType: "datetimerange", startplaceholder: "开始时间", endplaceholder: "结束时间",
+    label: "失效时间", model: "value2", type: "date", dateType: "datetimerange", startplaceholder: "开始时间", endplaceholder: "结束时间",
     onChange: (value: any) => {
       formInline.loseStartDate = value[0];
       formInline.loseEndDate = value[1];
@@ -231,7 +234,11 @@ const columns = [
       return 'T' + row.moneyTime
     }
   },
-  { prop: "attributionId", label: "出单账号", width: '120', },
+  { prop: "username", label: "出单账号", width: '220',
+  formatter: (row: any) => {
+      return `用户名:${row.username}\n简称:${row.userAbbr}`
+    }
+  },
   { prop: "company", label: "保险公司", width: '200' },
   { prop: "dockingPerson", label: "对接人", width: '200' },
   { prop: "custodianId", label: "管理人", width: '200' },
@@ -309,6 +316,14 @@ function agreemenUpdate(item: any) {
     }
   })
 }
+const cost=(id:string)=>{
+  router.push({
+    name: 'CostManagement',
+    query: {
+      id: id
+    }
+  })
+}
 //多选事件
 const selectionChange = (val: any) => {
   sysUpAndDownList.value = val;
@@ -329,8 +344,13 @@ const batchAuthorization = (value: string) => {
 
 }
 //复制协议
-const agreemenCopy = () => {
-
+const agreemenCopy = (id:string) => {
+  router.push({
+    name: 'AgreementCopy',
+    query: {
+      id: id
+    }
+  })
 }
 //禁用
 const disable = (value: string) => {
@@ -445,15 +465,6 @@ const sysUpAndDown = async (type: string, list?: string[]) => {
     }
   });
 }
-//添加子机构
-const subOrganizationAdd = (code: string) => {
-  router.push({
-    name: 'OrganizationDeptAdd',
-    query: {
-      code: code
-    }
-  })
-}
 const resetForm = () => {
   formInline.searchValue = '';
   provinceoptions.value = [];

+ 134 - 0
src/views/quoteConfig/agreement/components/orderAccount.vue

@@ -0,0 +1,134 @@
+<!-- 模板区域 -->
+<template>
+  <div>
+    <el-dialog v-model="props.orderAccount" title="选择出单账号" width="50%" @close="close">
+      <div class="flex a-c j-s ">
+        <div class="flex a-c">
+          <el-input v-model="searchValue" style="width: 240px;margin-right: 10px;" clearable
+            placeholder="输入姓名,手机号,工号查找" />
+          <el-button type="primary">查询</el-button>
+        </div>
+        <div>
+          <el-button type="default" @click="addAccount">添加账号
+            <template #icon>
+              <el-icon>
+                <Plus />
+              </el-icon>
+            </template>
+          </el-button>
+          <el-button type="default" @click="refresh">刷新</el-button>
+        </div>
+      </div>
+      <ComplexTable :tableData="tableData" :columns="columns" :showIndex="false" :columnwidth="200" :showSelect="false"
+        :showOperation="false" :pageInfo="pageInfo" :maxHeight="400" @getList="getList" :highlightCurrentRow="true"
+        :loading="loding" @currentChange="currentChange">
+      </ComplexTable>
+      <template #footer>
+        <div class="dialog-footer">
+          <el-button @click="cancel">取消</el-button>
+          <el-button type="primary" @click="save" :disabled="!activeInfo">
+            确定
+          </el-button>
+        </div>
+      </template>
+    </el-dialog>
+  </div>
+</template>
+
+<!-- 行为区域 -->
+<script lang='ts' setup>
+import { ref,  } from 'vue'
+import api from '@/api'
+import {  useRouter } from "vue-router";
+import { defineProps, defineEmits } from "vue";
+interface PageInfo {
+  pageNum: number;
+  pageSize: number;
+  sizes: number[];
+  total: number;
+}
+const pageInfo = ref({
+  pageNum: 1,
+  pageSize: 20,
+  sizes: [10, 20, 30, 40, 50],
+  total: 100,
+});
+const router = useRouter();
+const props = defineProps<{
+  orderAccount: boolean,
+}>();
+const emits = defineEmits(["cancel", 'save']);
+const searchValue = ref();
+const activeInfo = ref();//选中对象
+const tableData = ref([
+]);
+const loding = ref(false);
+const columns = [
+  {
+    prop: "username", label: "账号信息", align: 'left', formatter: (row: any) => {
+      return `用户名:${row.username}\n简称:${row.userAbbr}`
+    }
+  },
+  {
+    prop: "insCompanyName", label: "保险公司",
+  },
+  { prop: "url", label: "系统", },
+  { prop: "deptName", label: "归属", },
+];
+//分页事件
+function getList(item: PageInfo) {
+  pageInfo.value.pageNum = item.pageNum;
+  pageInfo.value.pageSize = item.pageSize;
+  findpage();
+
+};
+onMounted(() => {
+  findpage();
+})
+//数据查询
+function findpage() {
+  api.insuranceApi.getAgreementAttributionList({ pages: pageInfo.value.pageNum, size: pageInfo.value.pageSize, username: searchValue.value }).then((res: any) => {
+    if (res.code == '200') {
+      tableData.value = res.data.records;
+      pageInfo.value.pageNum = res.data.current;
+      pageInfo.value.pageSize = res.data.size;
+      pageInfo.value.total = res.data.total;
+    } else {
+    }
+  });
+}
+const currentChange = (info: object) => {
+  console.log(info)
+  activeInfo.value = info;
+}
+const cancel = () => {
+  emits("cancel")
+}
+const close = () => {
+  emits('cancel')
+}
+const save = () => {
+  emits('save', activeInfo.value.id, activeInfo.value.username, activeInfo.value.userAbbr)
+}
+//打开新标签页
+const addAccount = () => {
+  const url = router.resolve({
+    name: 'InsuranceAccountAdd',
+  }).href; // 获取目标路由的完整 URL
+  window.open(url, '_blank'); // 在新标签页中打开
+
+}
+const refresh = () => {
+  loding.value = true;
+  api.insuranceApi.getAgreementAttributionList({ pages: 1, size: 20, username: searchValue.value }).then((res: any) => {
+    if (res.code == '200') {
+      tableData.value = res.data.records;
+      pageInfo.value.pageNum = res.data.current;
+      pageInfo.value.pageSize = res.data.size;
+      pageInfo.value.total = res.data.total;
+      loding.value = false;
+
+    }
+  });
+}
+</script>

+ 34 - 28
src/views/quoteConfig/costManagement.vue

@@ -96,7 +96,7 @@
 
 <script lang="ts" setup>
 import { ref, reactive } from 'vue'
-import {  useRouter } from "vue-router";
+import { useRoute, useRouter } from 'vue-router';
 import { ElMessage, ElMessageBox } from 'element-plus'
 import { loadDicts, getDict } from '@/utils/composables/dictService';//字典组件
 import ruleFeeDialog from "./agreement/components/ruleFeeDialog.vue";
@@ -109,14 +109,18 @@ interface PageInfo {
   total: number;
 }
 onBeforeMount(async () => {
-  await loadDicts([ 'valid_status', 'is_enable', 'audit_status','insurance_type']);//获取多个字典
+  await loadDicts(['valid_status', 'is_enable', 'audit_status', 'insurance_type']);//获取多个字典
+  if(id.value){
+    formInline.agreement=id.value;
+  }
   findpage();//列表数据
   getDeptTree();
   agreement();
   valid_status.value = getDict('valid_status');//生效状态
   is_enable.value = getDict('is_enable');//协议状态
-  insurance_type.value=getDict('insurance_type')
-  audit_status.value=getDict('audit_status')
+  insurance_type.value = getDict('insurance_type')
+  audit_status.value = getDict('audit_status')
+
 });
 const tableData = ref([
 ]);
@@ -124,11 +128,13 @@ const agreementQueryName = ref();//选择协议查询
 const agreementList = ref();//协议列表
 const sysUpAndDownList = ref<string[]>([])//选中id
 const deptOptions = ref()//机构数据
-const insurance_type=ref();
+const insurance_type = ref();
 const valid_status = ref();
-const audit_status=ref();
+const audit_status = ref();
 const is_enable = ref();
+const route = useRoute();
 const router = useRouter();
+const id = ref(route.query.id as string);//id参数
 const pageInfo = ref({
   pageNum: 1,
   pageSize: 20,
@@ -136,19 +142,15 @@ const pageInfo = ref({
   total: 100,
 });
 const formInline = reactive({
-  searchValue: '',//协议信息
-  deptId: "",//归属
-  companyId: '',//保险公司id
-  agreementType: '',//协议类型
-  validStatus: "",//有效状态
-  isEnable: "",//协议状态
-  withTax: "",
-  dockingPerson: "",
-  attributionName: "",
-  takeStartDate: "",
-  takeEndDate: "",
-  loseStartDate: "",
-  loseEndDate: "",
+  agreement: '',//协议信息
+  productId: "",//归属
+  rulesName: '',//保险公司id
+  costRules: '',//协议类型
+  agreementStatus: "",//有效状态
+  auditStatus: "",//协议状态
+  validState: "",
+  effectiveTime: [],
+  failureTime: [],
 })
 
 //表格字段数据
@@ -177,15 +179,13 @@ const fields = ref([
     label: "生效时间", model: "effectiveTime", type: "date", dateType: "datetimerange", startplaceholder: "开始时间", endplaceholder: "结束时间",
     onChange: (value: any) => {
       console.log(value)
-      formInline.takeStartDate = value[0];
-      formInline.takeEndDate = value[1];
+      formInline.effectiveTime = value;
     }
   },
   {
     label: "失效时间", model: "failureTime", type: "date", dateType: "datetimerange", startplaceholder: "开始时间", endplaceholder: "结束时间",
     onChange: (value: any) => {
-      formInline.loseStartDate = value[0];
-      formInline.loseEndDate = value[1];
+      formInline.failureTime = value;
     }
   },
 ]);
@@ -223,7 +223,7 @@ const columns = [
   },
   { prop: "productName", label: "险种", width: '120', },
   {
-    prop: "costRules", label: "费用规则",width: '500',
+    prop: "costRules", label: "费用规则", width: '500',
   },
   {
     prop: "isEnabled", label: "费用状态", width: '100', component: "Tag",
@@ -307,7 +307,7 @@ const ruleFeeEditSave = (data: object) => {
         message: res.msg,
         plain: true,
       })
-      ruleFeeEditVisible.value=false;
+      ruleFeeEditVisible.value = false;
       findpage();
     } else {
     }
@@ -489,9 +489,15 @@ const sysUpAndDown = async (type: boolean, list?: string[]) => {
   });
 }
 const resetForm = () => {
-  for(let key in formInline){
-    formInline[key as keyof typeof formInline]='';
-  }
+  formInline.agreement = '';//协议信息
+  formInline.productId = "";//归属
+  formInline.rulesName = '';//保险公司id
+  formInline.costRules = '';//协议类型
+  formInline.agreementStatus = "";//有效状态
+  formInline.auditStatus = "";//协议状态
+  formInline.validState = "";
+  formInline.effectiveTime = [];
+  formInline.failureTime = [];
   findpage();
 }
 const getDeptTree = () => {