Kaynağa Gözat

销售端新增获客链接新增Ipad加好友

cgp 3 hafta önce
ebeveyn
işleme
d2ec825002
1 değiştirilmiş dosya ile 8 ekleme ve 2 silme
  1. 8 2
      src/views/qw/acquisitionAssistant/index.vue

+ 8 - 2
src/views/qw/acquisitionAssistant/index.vue

@@ -1895,6 +1895,11 @@ export default {
         this.$message.warning('请选择成员')
         return
       }
+      // 验证是否选择了主体
+      if (!this.queryParams.corpId) {
+        this.$message.warning('请先在搜索栏选择主体')
+        return
+      }
 
       // 发送请求
       this.ipadBlindAddDialog.loading = true
@@ -1904,11 +1909,12 @@ export default {
         linkId: this.ipadBlindAddDialog.rowData.linkId,
         userId: this.ipadBlindAddDialog.selectedUserId,
         phone: phone,
-        qwAcquisitionAssistantId: this.ipadBlindAddDialog.rowData.id
+        qwAcquisitionAssistantId: this.ipadBlindAddDialog.rowData.id,
+        corpId: this.queryParams.corpId  //当前选中的主体ID
       }
 
       // 调用接口
-      this.ipadBlindAdd(params).then(response => {
+      ipadBlindAdd(params).then(response => {
         if (response.code === 200) {
           this.$message.success(response.msg || '添加成功')
           this.ipadBlindAddDialog.visible = false