魏熙美 vor 5 Jahren
Ursprung
Commit
a53c3311ec

+ 5
- 1
src/config/api.js Datei anzeigen

@@ -193,7 +193,11 @@ const apis = {
193 193
     },
194 194
     drift: { // 游客列表
195 195
       method: `get`,
196
-      url: `${commPrefix}//customer/recommend/drift`
196
+      url: `${commPrefix}/customer/recommend/drift`
197
+    },
198
+    verify: { // 审核用户
199
+      method: `put`,
200
+      url: `${commPrefix}/customer/recommend/verify/:id`
197 201
     }
198 202
   },
199 203
   goods:{

+ 13
- 0
src/store/modules/customer.js Datei anzeigen

@@ -120,6 +120,19 @@ export default {
120 120
         })
121 121
       })
122 122
     },
123
+    verifyRecommend({ commit }, payload) { // 查询推荐客户列表
124
+      return new Promise((resolve, reject) => {
125
+        request({
126
+          ...apis.recommendCustomer.verify,
127
+          urlData: { id: payload.customerId },
128
+          params: payload,
129
+        }).then((data) => {
130
+          resolve(data)
131
+        }).catch(({ message }) => {
132
+          reject(message)
133
+        })
134
+      })
135
+    },
123 136
     
124 137
   }
125 138
 }

+ 4
- 2
src/views/customer/editRecommend.vue Datei anzeigen

@@ -122,7 +122,8 @@ export default {
122 122
         verifyStatus: '0',
123 123
         buildings: [],
124 124
         realtyConsultant: '',
125
-        sex: ''
125
+        sex: '',
126
+        verifyRemark: ''
126 127
       },
127 128
       dialogForm: {
128 129
         pageNumber: 1,
@@ -231,8 +232,9 @@ export default {
231 232
       this.imgList = fileList;
232 233
     },
233 234
     submitForm() {
235
+        console.log('this.detail: ', this.detail)
234 236
       this.showLoadding("保存中...");
235
-      this.$store.dispatch('customer/getRecommendCustomersUpdate',this.detail)
237
+      this.$store.dispatch('customer/verifyRecommend',this.detail)
236 238
         .then(res => {
237 239
           if (res.personId) {
238 240
             this.detail = res;

+ 2
- 0
src/views/customer/integralRecord.vue Datei anzeigen

@@ -126,6 +126,8 @@ export default {
126 126
           return '分享'
127 127
         case 'authorize':
128 128
           return '授权'
129
+        case 'signup-agent':
130
+          return '推荐客户'
129 131
         default:
130 132
           return '未知类型'
131 133
       }

+ 1
- 1
src/views/customer/recommendCustomer.vue Datei anzeigen

@@ -80,7 +80,7 @@
80 80
       </el-table-column>
81 81
       <el-table-column fixed="right" width="200" label="操作">
82 82
         <template slot-scope="scope">
83
-          <router-link :to="{ name:'editRecommend', query: { id: scope.row.customerId } }" v-if="scope.row.verifyStatus !== 1">审核</router-link>
83
+          <router-link :to="{ name:'editRecommend', query: { id: scope.row.customerId } }" >审核</router-link> <!-- v-if="scope.row.verifyStatus !== 1" -->
84 84
         </template>
85 85
       </el-table-column>
86 86
     </el-table>