Parcourir la source

企微客户添加下次联系时间

xgb il y a 1 semaine
Parent
commit
7fde37c7de

+ 1 - 0
src/views/qw/externalContact/index.vue

@@ -435,6 +435,7 @@
         </template>
         </template>
       </el-table-column>
       </el-table-column>
       <el-table-column label="企业id" align="center" prop="corpId" />
       <el-table-column label="企业id" align="center" prop="corpId" />
+      <el-table-column label="下次联系时间" align="center" prop="nextContactTime" />
       <el-table-column label="重粉看课历史" width="100px" align="center" fixed="right">
       <el-table-column label="重粉看课历史" width="100px" align="center" fixed="right">
         <template slot-scope="scope">
         <template slot-scope="scope">
           <div v-if="scope.row.fsUserId">
           <div v-if="scope.row.fsUserId">

+ 32 - 20
src/views/qw/externalContact/myExternalContact.vue

@@ -424,6 +424,7 @@
         </template>
         </template>
       </el-table-column>
       </el-table-column>
       <el-table-column label="企业id" align="center" prop="corpId" />
       <el-table-column label="企业id" align="center" prop="corpId" />
+      <el-table-column label="下次联系时间" align="center" prop="nextContactTime" />
       <el-table-column label="重粉看课历史" width="100px" align="center" fixed="right">
       <el-table-column label="重粉看课历史" width="100px" align="center" fixed="right">
         <template slot-scope="scope">
         <template slot-scope="scope">
           <div v-if="scope.row.fsUserId">
           <div v-if="scope.row.fsUserId">
@@ -444,24 +445,6 @@
           <el-tag v-else type="info"> 未绑定</el-tag>
           <el-tag v-else type="info"> 未绑定</el-tag>
         </template>
         </template>
       </el-table-column>
       </el-table-column>
-      <el-table-column label="修改" align="center" class-name="small-padding fixed-width" width="120px" fixed="right">
-        <template slot-scope="scope">
-          <el-button
-            v-show="scope.row.status==0||scope.row.status==2"
-            size="mini"
-            type="text"
-            icon="el-icon-edit"
-            @click="handleUpdate(scope.row)"
-            v-hasPermi="['qw:externalContact:edit']"
-          >修改备注</el-button>
-          <el-button
-            size="mini"
-            type="text"
-            icon="el-icon-user-solid"
-            @click="handleAppellation(scope.row)"
-          >修改客户称呼</el-button>
-        </template>
-      </el-table-column>
       <el-table-column label="沟通内容" align="center" width="100px" fixed="right">
       <el-table-column label="沟通内容" align="center" width="100px" fixed="right">
         <template slot-scope="scope">
         <template slot-scope="scope">
           <el-button @click="handleCommunication(scope.row)" type="text" size="small">
           <el-button @click="handleCommunication(scope.row)" type="text" size="small">
@@ -552,6 +535,23 @@
         >
         >
           修改状态
           修改状态
         </el-button>
         </el-button>
+          <el-button
+            v-show="scope.row.status==0||scope.row.status==2"
+            size="mini"
+            type="text"
+            icon="el-icon-edit"
+            @click="handleUpdate(scope.row)"
+            v-hasPermi="['qw:externalContact:edit']"
+          >修改备注</el-button>
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-user-solid"
+            @click="handleAppellation(scope.row)"
+          >修改</el-button>
+          <el-button @click="handleCommunication(scope.row)" type="text" size="small">
+            {{ scope.row.hasCommunication ? '编辑沟通内容' : '编辑沟通内容' }}
+          </el-button>
         </template>
         </template>
       </el-table-column>
       </el-table-column>
     </el-table>
     </el-table>
@@ -876,6 +876,14 @@
         <el-form-item label="客户称呼" prop="stageStatus">
         <el-form-item label="客户称呼" prop="stageStatus">
           <el-input v-model="callOpenFrom.stageStatus" placeholder="请输入客户称呼" />
           <el-input v-model="callOpenFrom.stageStatus" placeholder="请输入客户称呼" />
         </el-form-item>
         </el-form-item>
+        <el-form-item label="下次联系时间" prop="nextContactTime">
+          <el-date-picker
+            v-model="callOpenFrom.nextContactTime"
+            type="datetime"
+            placeholder="选择下次联系时间"
+            value-format="yyyy-MM-dd HH:mm:ss"            style="width: 100%;"
+          />
+        </el-form-item>
       </el-form>
       </el-form>
       <div slot="footer" class="dialog-footer" >
       <div slot="footer" class="dialog-footer" >
         <el-button type="primary" @click="submitCallOpenFrom">确 定</el-button>
         <el-button type="primary" @click="submitCallOpenFrom">确 定</el-button>
@@ -1277,10 +1285,10 @@ export default {
       callOpenFrom:{
       callOpenFrom:{
         id:null,
         id:null,
         stageStatus:null,
         stageStatus:null,
+        nextContactTime:null,
       },
       },
 
 
       callOpenRule:{
       callOpenRule:{
-        stageStatus:[{required:true,message:"员工称呼不能为空",trigger:"blur"}]
       },
       },
 
 
       //绑定的参数表
       //绑定的参数表
@@ -2327,8 +2335,12 @@ export default {
 
 
       this.$refs["callOpenFrom"].validate(valid => {
       this.$refs["callOpenFrom"].validate(valid => {
         if (valid) {
         if (valid) {
+          if(this.callOpenFrom.stageStatus == null && this.callOpenFrom.nextContactTime == null){
+            this.msgError("请输入参数");
+            return;
+          }
 
 
-          if (this.callOpenFrom.id != null && this.callOpenFrom.stageStatus != null) {
+          if (this.callOpenFrom.id != null) {
             updateExternalContactCall(this.callOpenFrom).then(res=>{
             updateExternalContactCall(this.callOpenFrom).then(res=>{
               this.$message.success('修改成功');
               this.$message.success('修改成功');
               this.callOpen.open=false;
               this.callOpen.open=false;