祁鹏飞 před 3 měsíci
rodič
revize
08574129dd

+ 7 - 4
src/views/operationManagement/channel.vue

@@ -390,11 +390,14 @@ const closeAllocation = (type: boolean) => {
 const tableDataCommand = (scope, e) => {
   switch (e) {
     case '编辑':
-      dialogShow.value = true
-      nextTick(() => {
-        AddOperationRef.value.initEditData(scope.row.userId, scope.row.id)
+      myRouter.push({
+        path: '/operationManagement/operation/addOperation',
+        query: {
+          id: scope.row.userId,
+          ids: scope.row.id,
+          type: 'edit'
+        }
       })
-      title.value = '编辑'
       break;
     case '删除':
       ElMessageBox({

+ 4 - 10
src/views/operationManagement/modules/addOperation.vue

@@ -105,9 +105,6 @@
         <el-descriptions-item>
           <template #default>
             <el-form-item prop="IDCardFront" label="身份证(人像面)" label-width="150" label-position="top">
-              <template #label>
-                <span style="color: #f56c6c">*</span>身份证(人像面)
-              </template>
               <el-upload ref="sfz1" v-model:file-list="IDCardFileList" :class="IDCardFileList.length ? 'hide' : ''" :auto-upload="false" action="#" list-type="picture-card"
                 accept=".png, .jpg, .jpeg" @change="uploadImage($event, 'sfz1')">
                 <div class="flex flex-col items-center justify-center">
@@ -149,9 +146,6 @@
               </el-upload>
             </el-form-item>
             <el-form-item prop="IDCardBack" label-width="150" label-position="top">
-              <template #label>
-                <span style="color: #f56c6c">*</span>身份证(国徽面)
-              </template>
               <el-upload ref="sfz2" v-model:file-list="IDCardBackFileList" :class="IDCardBackFileList.length ? 'hide' : ''" :auto-upload="false" action="#" list-type="picture-card"
                 accept=".png, .jpg, .jpeg" @change="uploadImage($event, 'sfz2')">
                 <div class="flex flex-col items-center justify-center">
@@ -527,7 +521,7 @@
       </el-descriptions>
       </div>
       <div class="flex justify-center h-64px items-center b-t-(1px solid #F4F4F4)">
-        <el-button class="border-[#0083FF] color-[#0083FF]" plain  @click="onSubmit(OperationFormRef, 0)">取消</el-button>
+        <el-button class="border-[#0083FF] color-[#0083FF]" plain size="default"  @click="onSubmit(OperationFormRef, 0)">取消</el-button>
         <el-button type="primary" size="default" @click="onSubmit(OperationFormRef, 1)">确定</el-button>
       </div>
     </el-form>
@@ -652,9 +646,9 @@ const operationRules = ref<FormRules>({
   leaderNumber: [
     { required: true, trigger: "blur", message: "请填写管理人工号" }
   ],
-  referrerId: [
-    { required: true, trigger: "blur", message: "请选择推荐人" }
-  ],
+  // referrerId: [
+  //   { required: true, trigger: "blur", message: "请选择推荐人" }
+  // ],
   referrerNumber: [
     { required: true, trigger: "blur", message: "请填写推荐人工号" }
   ],

+ 9 - 10
src/views/operationManagement/operationDetail.vue

@@ -67,9 +67,9 @@
                 <el-descriptions-item label="手机号:" width="33%">{{ dataDetail?.mobile }}</el-descriptions-item>
                 <el-descriptions-item label="证件号:" width="33%">{{ dataDetail?.identity }}</el-descriptions-item>
                 <el-descriptions-item label="证件有效期始:" width="33%">{{ dataDetail?.identityTimeStart
-                  }}</el-descriptions-item>
+                }}</el-descriptions-item>
                 <el-descriptions-item label="证件有效期止:" width="33%">{{ dataDetail?.identityTimeEnd
-                  }}</el-descriptions-item>
+                }}</el-descriptions-item>
               </el-descriptions>
               <el-descriptions title="其他信息">
                 <el-descriptions-item label="管理人:" width="33%">{{ dataDetail?.leaderName }}</el-descriptions-item>
@@ -204,9 +204,6 @@
     <el-dialog v-model="bankCardDialogShow" :title="bankTitle" width="500">
       <addCard v-if="bankCardDialogShow" @closeDialog="closeAddBankCard" :userInfo="bankCardInfo"></addCard>
     </el-dialog>
-    <el-dialog v-model="dialogShow" title="编辑" width="1000">
-      <addOperation ref="AddOperationRef" @closeDialog="closeAddOperation"></addOperation>
-    </el-dialog>
     <el-dialog v-model="allocationShow" title="分配管理人" width="800">
       <allocation ref="AllocationRef" @closeDialog="closeAllocation"></allocation>
     </el-dialog>
@@ -223,7 +220,6 @@
 
 <script setup lang="ts">
 import { nextTick, ref } from 'vue'
-import addOperation from './modules/addOperation.vue'
 import addCard from './modules/addCard.vue'
 import pinyin from "js-pinyin";
 import { ElMessage, ElMessageBox } from 'element-plus'
@@ -235,7 +231,6 @@ import VueOfficeDocx from "@vue-office/docx";
 import { getDictItems } from "@/api/dict";
 
 
-let AddOperationRef = ref(null)
 const AllocationRef = ref(null)
 
 let myRouter = useRouter()
@@ -499,9 +494,13 @@ const checkNotPass = () => {
 // 编辑/修改
 let dialogShow = ref(false)
 const editDetail = () => {
-  dialogShow.value = true
-  nextTick(() => {
-    AddOperationRef.value.initEditData(dataDetail.value.userId, dataDetail.value.id)
+  myRouter.push({
+    path: '/operationManagement/operation/addOperation',
+    query: {
+      id: dataDetail.value.userId,
+      ids: dataDetail.value.id,
+      type: 'edit'
+    }
   })
 }
 const closeAddOperation = (text: string) => {

+ 14 - 4
src/views/operationManagement/team.vue

@@ -275,6 +275,7 @@ const treeNodeCommend = (item, e) => {
       nextTick(() => {
         AddTeamRef.value.initEdit(item, true, 1)
       })
+
       break;
     case '删除':
       ElMessageBox({
@@ -390,11 +391,20 @@ const closeAllocation = (type: boolean) => {
 const tableDataCommand = (scope, e) => {
   switch (e) {
     case '编辑':
-      dialogShow.value = true
-      nextTick(() => {
-        AddOperationRef.value.initEditData(scope.row.userId, scope.row.id)
+      // dialogShow.value = true
+      // nextTick(() => {
+      //   AddOperationRef.value.initEditData(scope.row.userId, scope.row.id)
+      // })
+      // title.value = '编辑'
+
+      myRouter.push({
+        path: '/operationManagement/modules/addOperation',
+        query: {
+          id: scope.row.userId,
+          ids: scope.row.id,
+          type: 'edit'
+        }
       })
-      title.value = '编辑'
       break;
     case '删除':
       ElMessageBox({

+ 7 - 4
src/views/operationManagement/telemarketing.vue

@@ -408,11 +408,14 @@ const closeAllocation = (type: boolean) => {
 const tableDataCommand = (scope, e) => {
   switch (e) {
     case '编辑':
-      dialogShow.value = true
-      nextTick(() => {
-        AddOperationRef.value.initEditData(scope.row.userId, scope.row.id)
+      myRouter.push({
+        path: '/operationManagement/operation/addOperation',
+        query: {
+          id: scope.row.userId,
+          ids: scope.row.id,
+          type: 'edit'
+        }
       })
-      title.value = '编辑'
       break;
     case '删除':
       ElMessageBox({