Procházet zdrojové kódy

优化跟进会员页面展示信息

cgp před 1 týdnem
rodič
revize
1b5601af73
2 změnil soubory, kde provedl 10 přidání a 51 odebrání
  1. 2 49
      src/views/memberSales/index.vue
  2. 8 2
      src/views/task/unprocessed.vue

+ 2 - 49
src/views/memberSales/index.vue

@@ -85,31 +85,6 @@
       @pagination="getList"
       @pagination="getList"
     />
     />
 
 
-    <!-- 添加或修改医生会员搭销对话框 -->
-    <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
-      <el-form ref="form" :model="form" :rules="rules" label-width="80px">
-        <el-form-item label="企业外部联系人id" prop="exId">
-          <el-input v-model="form.exId" placeholder="请输入企业外部联系人id" />
-        </el-form-item>
-        <el-form-item label="会员id" prop="fsUserId">
-          <el-input v-model="form.fsUserId" placeholder="请输入会员id" />
-        </el-form-item>
-        <el-form-item label="销售id" prop="companyUserId">
-          <el-input v-model="form.companyUserId" placeholder="请输入销售id" />
-        </el-form-item>
-        <el-form-item label="销售公司" prop="companyId">
-          <el-input v-model="form.companyId" placeholder="请输入销售公司" />
-        </el-form-item>
-        <el-form-item label="医生id" prop="doctorId">
-          <el-input v-model="form.doctorId" placeholder="请输入医生id" />
-        </el-form-item>
-      </el-form>
-      <div slot="footer" class="dialog-footer">
-        <el-button type="primary" @click="submitForm">确 定</el-button>
-        <el-button @click="cancel">取 消</el-button>
-      </div>
-    </el-dialog>
-
     <!-- 处理记录弹窗 -->
     <!-- 处理记录弹窗 -->
     <el-dialog
     <el-dialog
       title="处理记录"
       title="处理记录"
@@ -165,7 +140,7 @@
               </span>
               </span>
             </template>
             </template>
           </el-table-column>
           </el-table-column>
-          <el-table-column label="处理时间" align="center" prop="createTime" width="180" />
+          <el-table-column label="处理时间" align="center" prop="updateTime" width="180" />
         </el-table>
         </el-table>
 
 
         <!-- 分页组件 -->
         <!-- 分页组件 -->
@@ -337,6 +312,7 @@ export default {
         userName: row.userName,
         userName: row.userName,
         phone: row.phone,
         phone: row.phone,
         fsUserId: row.fsUserId,
         fsUserId: row.fsUserId,
+        doctorId: row.doctorId,
         companyUserName: row.companyUserName,
         companyUserName: row.companyUserName,
         baseInfo: row.baseInfo,
         baseInfo: row.baseInfo,
       }
       }
@@ -392,29 +368,6 @@ export default {
       this.single = selection.length!==1
       this.single = selection.length!==1
       this.multiple = !selection.length
       this.multiple = !selection.length
     },
     },
-
-    /** 提交按钮 */
-    submitForm() {
-      this.$refs["form"].validate(valid => {
-        if (valid) {
-          if (this.form.id != null) {
-            // 假设 updateMemberSales 函数存在
-            // updateMemberSales(this.form).then(response => {
-            //   this.msgSuccess("修改成功");
-            //   this.open = false;
-            //   this.getList();
-            // });
-          } else {
-            // 假设 addMemberSales 函数存在
-            // addMemberSales(this.form).then(response => {
-            //   this.msgSuccess("新增成功");
-            //   this.open = false;
-            //   this.getList();
-            // });
-          }
-        }
-      });
-    },
     /** 导出按钮操作 */
     /** 导出按钮操作 */
     handleExport() {
     handleExport() {
       const queryParams = this.queryParams;
       const queryParams = this.queryParams;

+ 8 - 2
src/views/task/unprocessed.vue

@@ -255,6 +255,7 @@ export default {
       baseInfo: null,
       baseInfo: null,
       phone: null,
       phone: null,
       fsUserId: null, // 保存用户ID
       fsUserId: null, // 保存用户ID
+      doctorId: null, // 医生ID
       // 用于存储从 collection API 获取的数据
       // 用于存储从 collection API 获取的数据
       formData: {
       formData: {
         id: null,
         id: null,
@@ -369,6 +370,7 @@ export default {
     this.userName = this.$route.query.userName;
     this.userName = this.$route.query.userName;
     this.phone = this.$route.query.phone;
     this.phone = this.$route.query.phone;
     this.fsUserId = this.$route.query.fsUserId;
     this.fsUserId = this.$route.query.fsUserId;
+    this.doctorId = this.$route.query.doctorId;
     this.companyUserName = this.$route.query.companyUserName;
     this.companyUserName = this.$route.query.companyUserName;
     this.baseInfo = this.$route.query.baseInfo;
     this.baseInfo = this.$route.query.baseInfo;
     this.fetchCollectionInfo();
     this.fetchCollectionInfo();
@@ -480,7 +482,9 @@ export default {
         remark: '',
         remark: '',
         selectedOrderNo: '',
         selectedOrderNo: '',
         doctorMemberSalesId: row.doctorMemberSalesId,
         doctorMemberSalesId: row.doctorMemberSalesId,
-        companyUserId: row.companyUserId
+        companyUserId: row.companyUserId,
+        exId: row.qwExternalContactId,
+        doctorId: this.doctorId
       };
       };
 
 
       this.orderSearchKeyword = '';
       this.orderSearchKeyword = '';
@@ -566,7 +570,9 @@ export default {
           handleType: Number(this.form.handleType),
           handleType: Number(this.form.handleType),
           remark: this.form.remark,
           remark: this.form.remark,
           doctorMemberSalesId: this.form.doctorMemberSalesId,
           doctorMemberSalesId: this.form.doctorMemberSalesId,
-          companyUserId: this.form.companyUserId
+          companyUserId: this.form.companyUserId,
+          exId: this.form.exId,
+          doctorId: this.form.doctorId
         };
         };
 
 
         if (submitData.handleType === 1) {
         if (submitData.handleType === 1) {