wuguojie 1 год назад
Родитель
Сommit
f11f333f81

+ 15 - 0
src/views/externalAgreement/agreement/agreementIndex.vue

@@ -459,6 +459,21 @@ const sysUpAndDown = async (type: string, list?: string[]) => {
 }
 const resetForm = () => {
   formInline.searchValue = '';
+  formInline.deptId = '';
+  formInline.companyId = '';
+  formInline.agreementType = '';
+  formInline.validStatus = '';
+  formInline.isEnable = '';
+  formInline.withTax = '';
+  formInline.dockingPerson = '';
+  formInline.attributionName = '';
+  formInline.takeStartDate = '';
+  formInline.takeEndDate = '';
+  formInline.loseStartDate = '';
+  formInline.loseEndDate = '';
+  formInline.isExternal = '1';
+  formInline.value1 = [];
+  formInline.value2 = [];
   provinceoptions.value = [];
   findpage();
 }

+ 1 - 1
src/views/operationManagement/channel.vue

@@ -48,7 +48,7 @@
           <el-table-column label="工号" prop="userId" width="200"></el-table-column>
           <el-table-column label="类型" prop="typeAttr" width="100">
             <template #default="scope">
-              {{ scope.row.typeAttr == '0'?'个代':scope.row.typeAttr == '1'?'渠道':scope.row.typeAttr == '2'?'团队':scope.row.typeAttr == '3'?'电销组': '' }}
+              {{ scope.row.typeAttr == '1'?'个代':scope.row.typeAttr == '3'?'渠道':scope.row.typeAttr == '2'?'团队':scope.row.typeAttr == '4'?'电销组': '' }}
             </template>
           </el-table-column>
           <el-table-column label="归属" prop="deptName" width="200"></el-table-column>

+ 6 - 5
src/views/operationManagement/modules/addOperation.vue

@@ -13,10 +13,10 @@
               <el-col :span="10">
                 <el-form-item prop="typeAttr" label="业务员类型">
                   <el-select v-model="operationForm.typeAttr" placeholder="请选择业务员类型" @change="typeAttrChange">
-                    <el-option key="1" value="6" label="个代"></el-option>
-                    <el-option key="2" value="8" label="渠道"></el-option>
-                    <el-option key="3" value="5" label="团队"></el-option>
-                    <el-option key="4" value="7" label="电销组"></el-option>
+                    <el-option key="1" value="1" label="个代"></el-option>
+                    <el-option key="2" value="3" label="渠道"></el-option>
+                    <el-option key="3" value="2" label="团队"></el-option>
+                    <el-option key="4" value="4" label="电销组"></el-option>
                     <!--<el-option key="1" value="1" label="前线人员"></el-option>
                     <el-option key="2" value="2" label="后线人员"></el-option>
                     <el-option key="3" value="3" label="合伙人"></el-option>
@@ -719,7 +719,7 @@ const initEditData = (id, ids) => {
         let formData = res.data
         initTeamData(formData?.typeAttr==='5'?'1':formData?.typeAttr==='8'?'2':formData?.typeAttr==='7'?'3':'')
         operationForm.value = formData
-        operationForm.value.organization = formData.deptName
+        operationForm.value.organization = formData.deptId
         operationForm.value.deptId = formData.deptId
         operationForm.value.leaderNumber = formData.leaderId
         operationForm.value.referrerNumber = formData.referrerId
@@ -1350,6 +1350,7 @@ onMounted(() => {
   initInfo()
   getArea()
   initBankCard()
+  institutionList()
 })
 
 defineExpose({

+ 1 - 1
src/views/operationManagement/operation.vue

@@ -112,7 +112,7 @@
       <el-table-column label="工号" prop="userId" width="200"></el-table-column>
       <el-table-column label="类型" prop="typeAttr" width="100">
         <template #default="scope">
-          {{ scope.row.typeAttr == '6'?'个代':scope.row.typeAttr == '8'?'渠道':scope.row.typeAttr == '5'?'团队':scope.row.typeAttr == '7'?'电销组': '' }}
+          {{ scope.row.typeAttr == '1'?'个代':scope.row.typeAttr == '3'?'渠道':scope.row.typeAttr == '2'?'团队':scope.row.typeAttr == '4'?'电销组': '' }}
         </template>
       </el-table-column>
       <el-table-column label="归属" prop="organizationName" width="200"></el-table-column>

+ 5 - 5
src/views/operationManagement/operationDetail.vue

@@ -122,21 +122,21 @@
             <el-descriptions title="资料附件">
               <el-descriptions-item>
                 <template #default>
-                  <div class="fileItem">
+                  <div class="fileItem" v-if="imageChangeName('sfz1')">
                     <span class="label">身份证(人像面)</span>
                     <div class="fileName">
                       <span class="file-name">{{ imageChangeName('sfz1') }}</span>
                       <el-icon class="file-icon" @click="imageView('sfz1')"><View /></el-icon>
                     </div>
                   </div>
-                  <div class="fileItem">
+                  <div class="fileItem" v-if="imageChangeName('sfz2')">
                     <span class="label">身份证(国徽面)</span>
                     <div class="fileName">
                       <span class="file-name">{{ imageChangeName('sfz2') }}</span>
                       <el-icon class="file-icon" @click="imageView('sfz2')"><View /></el-icon>
                     </div>
                   </div>
-                  <div class="fileItem">
+                  <div class="fileItem" v-if="imageChangeName('qualification')">
                     <span class="label">展业资格证</span>
                     <div class="fileName">
                       <span class="file-name">{{ imageChangeName('qualification') }}</span>
@@ -432,13 +432,13 @@ const closeAddOperation = (text: string) => {
 const imageChangeName = (type) => {
   if(dataDetail.value&&dataDetail.value.fileList.length>0) {
     let obj = dataDetail.value.fileList.find(item => item.fileType === type)
-    return obj.fileName
+    return obj?.fileName
   }
 }
 const imageChangeUrl = (type) => {
   if(dataDetail.value.fileList.length>0) {
     let obj = dataDetail.value.fileList.find(item => item.fileType == type)
-    return obj.fileUrl
+    return obj?.fileUrl
   }
 }
 

+ 1 - 1
src/views/operationManagement/team.vue

@@ -48,7 +48,7 @@
           <el-table-column label="工号" prop="userId" width="200"></el-table-column>
           <el-table-column label="类型" prop="typeAttr" width="100">
             <template #default="scope">
-              {{ scope.row.typeAttr == '0'?'个代':scope.row.typeAttr == '1'?'渠道':scope.row.typeAttr == '2'?'团队':scope.row.typeAttr == '3'?'电销组': '' }}
+              {{ scope.row.typeAttr == '1'?'个代':scope.row.typeAttr == '3'?'渠道':scope.row.typeAttr == '2'?'团队':scope.row.typeAttr == '4'?'电销组': '' }}
             </template>
           </el-table-column>
           <el-table-column label="归属" prop="deptName" width="200"></el-table-column>

+ 1 - 1
src/views/operationManagement/telemarketing.vue

@@ -48,7 +48,7 @@
           <el-table-column label="工号" prop="userId" width="200"></el-table-column>
           <el-table-column label="类型" prop="typeAttr" width="100">
             <template #default="scope">
-              {{ scope.row.typeAttr == '0'?'个代':scope.row.typeAttr == '1'?'渠道':scope.row.typeAttr == '2'?'团队':scope.row.typeAttr == '3'?'电销组': '' }}
+              {{ scope.row.typeAttr == '1'?'个代':scope.row.typeAttr == '3'?'渠道':scope.row.typeAttr == '2'?'团队':scope.row.typeAttr == '4'?'电销组': '' }}
             </template>
           </el-table-column>
           <el-table-column label="归属" prop="deptName" width="200"></el-table-column>