Jelajahi Sumber

提交一下

1
mo 2 tahun lalu
induk
melakukan
a0f8f20a46

+ 18 - 0
src/views/returnVisitManager/api.js

@@ -21,3 +21,21 @@ export function addVisit (data) {
     },
   })
 }
+
+export function getWaitVisitList (data) {
+  return request({
+    url: api + '/visit/queryVisitPage',
+    method: 'get',
+    params: data
+  })
+}
+
+
+export function updateProbStatus (data) {
+  return request({
+    url: api + '/visit/updateProbStatus',
+    method: 'post',
+    data,
+
+  })
+}

+ 23 - 1
src/views/returnVisitManager/components/returnVisitList.vue

@@ -117,6 +117,13 @@
           </el-table-column>
           <el-table-column align="center" prop="purpose" label="回访目的">
           </el-table-column>
+          <el-table-column align="center" prop="probStatus" label="问题状态">
+            <template slot-scope="scope">
+              <div>
+                {{scope.row.probStatus?'已解决':'待跟进'}}
+              </div>
+            </template>
+          </el-table-column>
 
           <el-table-column align="center" prop="name" label="回访图片">
             <template slot-scope="scope">
@@ -150,6 +157,9 @@
                 <el-button type="text" @click="lookDetail(scope.row)"
                   >查看</el-button
                 >
+                <el-button type="text" v-if="!scope.row.probStatus" @click="updateState(scope.row)"
+                  >状态修改</el-button
+                >
               </div>
             </template>
           </el-table-column>
@@ -230,7 +240,7 @@
 import { visitChiose1 } from "@/utils/searchArray";
 import pagination from "@/components/Pagination/index";
 import { getEmployeeOrgan } from "@/api/buildTeam";
-import { getVisitList } from "../api.js";
+import { getVisitList,updateProbStatus } from "../api.js";
 import cleanDeep from "clean-deep";
 import { getTimes } from "@/utils";
 import { resetQuery } from "@/utils/utils";
@@ -347,6 +357,18 @@ export default {
       this.imageList = this.activeRow.attachments.split(",");
       this.detailVisible = true;
     },
+    updateState(row){
+      this.$confirm("是否将问题状态更变为'已解决'", "提示", {
+        confirmButtonText: "确定",
+        cancelButtonText: "取消",
+        type: "warning",
+      }).then(res=>{
+        updateProbStatus({id:row.id,probStatus:1}).then(res=>{
+          this.$message.success('修改成功')
+          this.getList()
+        })
+      })
+    },
     changeTimer(val) {
       if (val && val.length > 0) {
         this.searchForm.startTime = this.timer[0];

+ 17 - 20
src/views/returnVisitManager/components/waitVisit.vue

@@ -14,7 +14,7 @@
         <el-form-item>
           <el-input
             placeholder="学员姓名/编号/手机号"
-            v-model.trim="searchForm.search"
+            v-model.trim="searchForm.student"
             @keyup.enter.native="
               (e) => {
                 e.target.blur();
@@ -63,7 +63,7 @@
         </el-form-item> -->
         <el-form-item>
           <el-date-picker
-            v-model.trim="searchForm.timer"
+            v-model.trim="searchForm.visitCycle"
 
             type="month"
             placeholder="回访周期"
@@ -97,11 +97,11 @@
           </el-table-column>
           <el-table-column align="center" prop="organName" label="分部">
             <template slot-scope="scope">
-              <copy-text>{{ scope.row.organName }}</copy-text>
+              <copy-text>{{ scope.row.orgname }}</copy-text>
             </template>
           </el-table-column>
 
-          <el-table-column align="center" prop="type" label="回访周期">
+          <el-table-column align="center" prop="visitCycle" label="回访周期">
           </el-table-column>
           <el-table-column align="center" prop="isVisit" label="回访状态">
             <template slot-scope="scope">
@@ -161,7 +161,7 @@
 import { visitChiose1 } from "@/utils/searchArray";
 import pagination from "@/components/Pagination/index";
 import { getEmployeeOrgan } from "@/api/buildTeam";
-import { getVisitList } from "../api.js";
+import { getWaitVisitList } from "../api.js";
 import cleanDeep from "clean-deep";
 import { getTimes } from "@/utils";
 import { resetQuery } from "@/utils/utils";
@@ -171,11 +171,11 @@ export default {
   data() {
     return {
       searchForm: {
-        search: "",
+        student: "",
         organId: "",
         visiterType: "",
-        typeList: [],
-        timer: [],
+        isVisit: '',
+        visitCycle: '',
       },
 
       visitChiose: visitChiose1,
@@ -250,23 +250,20 @@ export default {
     },
     getList() {
       // cleanDeep
-      let { timer, typeList, ...rest } = this.searchForm;
-      let type,
-        purpose = null;
-      if (typeList.length > 0) {
-        type = typeList[0];
-        purpose = typeList[1];
-      }
+      // let { timer, typeList, ...rest } = this.searchForm;
+      // let type,
+      //   purpose = null;
+      // if (typeList.length > 0) {
+      //   type = typeList[0];
+      //   purpose = typeList[1];
+      // }
 
       let params = {
-        ...rest,
+        ...this.searchForm,
         page: this.rules.page,
         rows: this.rules.limit,
-        ...getTimes(timer, ["startTime", "endTime"]),
-        type,
-        purpose,
       };
-      getVisitList(cleanDeep(params)).then((res) => {
+      getWaitVisitList(cleanDeep(params)).then((res) => {
         if (res.code == 200) {
           this.tableList = res.data.rows;
           this.rules.total = res.data.total;