Browse Source

解绑省仓客户

chenrui 1 năm trước cách đây
mục cha
commit
a00dd35a60

+ 16 - 5
src/views/dealerManagement/provincialWarehouseManagement/relatedDealersList.vue

@@ -204,12 +204,23 @@ export default {
     },
     // 解绑
     handleDelete (row) {
-      const ajaxData = {
-        serviceCenterSn: this.$route.query.sn,
-        dealerSn: row.dealerSn
-      }
+      const _this = this
+      this.$confirm({
+        title: '提示',
+        content: '解绑后,该经销商无法向省仓采购,确定解绑吗?',
+        centered: true,
+        onOk () {
+          const ajaxData = {
+            serviceCenterSn: this.$route.query.sn,
+            dealerSn: row.dealerSn
+          }
+          _this.submitDel(ajaxData)
+        }
+      })
+    },
+    submitDel (params) {
       this.spinning = true
-      serviceCenterUnbinding(ajaxData).then(res => {
+      serviceCenterUnbinding(params).then(res => {
         if (res.status == 200) {
           this.$message.success('解绑成功')
           this.$refs.table.refresh(true)