Browse Source

身份为渠道时业务员数据默认取登录人信息

祁鹏飞 1 week ago
parent
commit
c7c91466cb

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

@@ -28,7 +28,7 @@
         </el-col>
         <el-col :span="6" v-if="insurancePolicyForm.salesman">
           <!-- 更换业务员按钮 -->
-          <el-button link type="primary" @click="handleFocus" style="margin-top: 10px">更换业务员</el-button>
+          <el-button link type="primary" @click="handleFocus" style="margin-top: 16px">更换业务员</el-button>
         </el-col>
       </el-row>
       <!-- 可折叠面板:包含各种信息模块 -->
@@ -4123,6 +4123,12 @@ onMounted(() => {
   initDept()       // 初始化部门数据
   initOption()     // 初始化下拉选项
   initDetail()   // 如果有订单号,初始化详情
+  if (!myRoute.query.orderNo && userInfo.value.typeAttr?.includes('7')) {
+    insurancePolicyForm.value.salesman = userInfo.value.name
+    insurancePolicyForm.value.mobile = userInfo.value.username
+    insurancePolicyForm.value.deptId = userInfo.value.deptId
+  }
+
 })
 
 </script>

+ 0 - 1
src/views/quoteConfig/agreement/agreementDetails.vue

@@ -285,7 +285,6 @@
         <ComplexTable :tableData="tableData" tableheight="calc(100vh - 410px)" :showOperation="false"
           :columns="columns1" :columnwidth="200" :showSelect="true" :pageInfo="pageInfo" @getList="getList"
           @selectionChange="selectionChange" uniqueIdName="costId">
-
         </ComplexTable>
       </div>
       <template #footer>