浏览代码

迁移用户信息采集到我的企微客户

wjj 3 天之前
父节点
当前提交
7d5f4d5eb6
共有 2 个文件被更改,包括 29 次插入2 次删除
  1. 1 1
      src/views/qw/externalContact/collection.vue
  2. 28 1
      src/views/qw/externalContact/myExternalContact.vue

+ 1 - 1
src/views/qw/externalContact/collection.vue

@@ -45,7 +45,7 @@
         </el-form>
         <div slot="footer" class="dialog-footer">
             <el-button type="primary" @click="submitForm">确 定</el-button>
-            <el-button @click="cancel">取 消</el-button>
+            <!-- <el-button @click="cancel">取 消</el-button> -->
         </div>
 
 

+ 28 - 1
src/views/qw/externalContact/myExternalContact.vue

@@ -464,6 +464,14 @@
           >
             <span>初诊单</span>
           </el-button>
+          <el-button
+             size="mini"
+             type="text"
+             @click="handleInfoCollection(scope.row)"
+             v-if="scope.row.fsUserId"
+             >
+             <span>信息采集</span>
+          </el-button>
 
 <!--          <el-button v-if="scope.row.customerId"-->
 <!--            size="mini"-->
@@ -831,6 +839,9 @@
     <el-dialog :title="user.title" :visible.sync="user.open" width="800px" append-to-body>
       <selectUser ref="selectUser" @bindMiniCustomerId="bindMiniCustomerId"></selectUser>
     </el-dialog>
+    <el-dialog :title="collection.title" :visible.sync="collection.open"   width="1100px" append-to-body>
+	  <collection   ref="collection" />
+	</el-dialog>
   </div>
 </template>
 
@@ -867,11 +878,16 @@ import { editTalk,editAllTalk } from "@/api/qw/externalContactInfo";
 import {createLinkUrl} from "@/api/course/sopCourseLink";
 import {docList} from "@/api/doctor/doctor";
 import PaginationMore from "../../../components/PaginationMore/index.vue";
+import Collection from './collection.vue';
 export default {
   name: "ExternalContact",
-  components:{PaginationMore, mycustomer,customerDetails,SopDialog,selectUser,info},
+  components:{PaginationMore, mycustomer,customerDetails,SopDialog,selectUser,info,Collection},
   data() {
     return {
+      collection:{
+        titile:"信息采集",
+        open:false,
+      },
       doctorList:[],
       diagnosisForm:{},
       diagnosisOpen:false,
@@ -1088,6 +1104,17 @@ export default {
 
   },
   methods: {
+    handleInfoCollection(row){
+      this.collection.title = "信息采集";
+      this.collection.open = true;
+      this.userId = row.fsUserId;
+      setTimeout(() => {
+                 this.$refs.collection.getCollectionInfo(row.fsUserId);
+            }, 1);
+    },
+    closeCollection(){
+      this.collection.open = false;
+    }, 
     doctorChange(val){
       for(const doctor of this.doctorList) {
         if(doctor.id == val) {