|
@@ -204,12 +204,23 @@ export default {
|
|
},
|
|
},
|
|
// 解绑
|
|
// 解绑
|
|
handleDelete (row) {
|
|
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
|
|
this.spinning = true
|
|
- serviceCenterUnbinding(ajaxData).then(res => {
|
|
|
|
|
|
+ serviceCenterUnbinding(params).then(res => {
|
|
if (res.status == 200) {
|
|
if (res.status == 200) {
|
|
this.$message.success('解绑成功')
|
|
this.$message.success('解绑成功')
|
|
this.$refs.table.refresh(true)
|
|
this.$refs.table.refresh(true)
|