|
@@ -1,5 +1,5 @@
|
|
<template>
|
|
<template>
|
|
- <template-page ref="pageRef" :get-list="getList" :table-attributes="tableAttributes" :table-events="tableEvents" :operationColumnWidth="200"
|
|
|
|
|
|
+ <template-page ref="pageRef" :get-list="getList" :table-attributes="tableAttributes" :table-events="tableEvents" :operationColumnWidth="280"
|
|
:options-evens-group="optionsEvensGroup" :moreParameters="moreParameters" :column-parsing="columnParsing"
|
|
:options-evens-group="optionsEvensGroup" :moreParameters="moreParameters" :column-parsing="columnParsing"
|
|
:operation="operation">
|
|
:operation="operation">
|
|
<!-- :exportList="exportList" -->
|
|
<!-- :exportList="exportList" -->
|
|
@@ -55,7 +55,7 @@
|
|
import TemplatePage from '@/components/template/template-page-1.vue'
|
|
import TemplatePage from '@/components/template/template-page-1.vue'
|
|
import import_mixin from '@/components/template/import_mixin.js'
|
|
import import_mixin from '@/components/template/import_mixin.js'
|
|
import { required, mobileRequired, mobile } from '@/components/template/rules_verify.js'
|
|
import { required, mobileRequired, mobile } from '@/components/template/rules_verify.js'
|
|
-import { memberListService2,memberPageExport, getMemberDetail, memberAudit, memberInner, getWebsit } from "@/api/distributorManagement";
|
|
|
|
|
|
+import { memberListService2,memberPageExport, getMemberDetail, memberAudit, memberInner, memberInsideInner, getWebsit } from "@/api/distributorManagement";
|
|
export default {
|
|
export default {
|
|
components: { TemplatePage },
|
|
components: { TemplatePage },
|
|
mixins: [import_mixin],
|
|
mixins: [import_mixin],
|
|
@@ -234,6 +234,7 @@ export default {
|
|
this.dialogVisible = true
|
|
this.dialogVisible = true
|
|
})
|
|
})
|
|
}}>设为工程师</el-button>:null}
|
|
}}>设为工程师</el-button>:null}
|
|
|
|
+
|
|
{row.examineStatus != 'WAIT' ?<el-button type="text" onClick={() => {
|
|
{row.examineStatus != 'WAIT' ?<el-button type="text" onClick={() => {
|
|
this.$confirm('请确认是否设为客户, 是否继续?', '提示', {
|
|
this.$confirm('请确认是否设为客户, 是否继续?', '提示', {
|
|
confirmButtonText: '确定',
|
|
confirmButtonText: '确定',
|
|
@@ -253,6 +254,26 @@ export default {
|
|
})
|
|
})
|
|
});
|
|
});
|
|
}}>设为客户</el-button>:null}
|
|
}}>设为客户</el-button>:null}
|
|
|
|
+
|
|
|
|
+ <el-button type="text" onClick={() => {
|
|
|
|
+ this.$confirm(`请确认是否${row.innerr?'取消':'设为'}内部分销员, 是否继续?`, '提示', {
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
+ cancelButtonText: '取消',
|
|
|
|
+ type: 'warning'
|
|
|
|
+ }).then(() => {
|
|
|
|
+ memberInsideInner({
|
|
|
|
+ innerr: !row.innerr,
|
|
|
|
+ userIds: row.userId
|
|
|
|
+ }).then(res => {
|
|
|
|
+ if (res.code == 200) {
|
|
|
|
+ this.$message({ type: 'success', message: (row.innerr?'取消':'设为')+ '内部分销员成功!' })
|
|
|
|
+ this.$refs.pageRef.refreshList()
|
|
|
|
+ } else {
|
|
|
|
+ this.$message.error(res.msg);
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ });
|
|
|
|
+ }}>{ (row.innerr?'取消':'设为')+'内部分销员'}</el-button>
|
|
</div>
|
|
</div>
|
|
)
|
|
)
|
|
},
|
|
},
|