Commit b374f158 by 陈羽

update: 代理不可编辑【导购编辑】

parent d5cf62ae
...@@ -29,7 +29,8 @@ ...@@ -29,7 +29,8 @@
</div> </div>
</div> </div>
<div class="m-t-20"> <div class="m-t-20">
<el-table class="select-table" ref="multipleTable" v-loading="loading" :data="tableData" tooltip-effect="dark" :style="{ width: '100%', minHeight: tableH }"> <el-table class="select-table" ref="multipleTable" v-loading="loading" :data="tableData"
tooltip-effect="dark" :style="{ width: '100%', minHeight: tableH }">
<el-table-column prop="" label="商户列表" show-overflow-tooltip min-width="200"> <el-table-column prop="" label="商户列表" show-overflow-tooltip min-width="200">
<template slot-scope="scope"> <template slot-scope="scope">
<div class="ul-li-cell flex"> <div class="ul-li-cell flex">
...@@ -38,8 +39,8 @@ ...@@ -38,8 +39,8 @@
</div> </div>
<div class="cell-info"> <div class="cell-info">
<div class="cell-info-name flex font-14 color-303133"> <div class="cell-info-name flex font-14 color-303133">
<span class="gic-name color-606266">{{ scope.row.enterpriseName || '--' }}</span <span class="gic-name color-606266">{{ scope.row.enterpriseName || '--' }}</span><span
><span class="gic-version color-606266">{{ scope.row.version || '3.0' }}</span> class="gic-version color-606266">{{ scope.row.version || '3.0' }}</span>
</div> </div>
<div class="cell-info-name flex font-14 color-606266"> <div class="cell-info-name flex font-14 color-606266">
<span class="gic-name">{{ scope.row.brandName || '--' }}</span> <span class="gic-name">{{ scope.row.brandName || '--' }}</span>
...@@ -49,24 +50,23 @@ ...@@ -49,24 +50,23 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="" label="企业类型" show-overflow-tooltip> <el-table-column prop="" label="企业类型" show-overflow-tooltip>
<template slot-scope="scope" <template slot-scope="scope"><span
><span class="color-606266">{{ scope.row.wxEnterpriseType | wxEnterpriseTypeFilter }}</span></template class="color-606266">{{ scope.row.wxEnterpriseType | wxEnterpriseTypeFilter }}</span></template>
>
</el-table-column> </el-table-column>
<el-table-column prop="" label="开平类型" show-overflow-tooltip> <el-table-column prop="" label="开平类型" show-overflow-tooltip>
<template slot-scope="scope" <template slot-scope="scope"><span
><span class="color-606266">{{ scope.row.memberOpenCardFlag ? '不同开平' : '同一开平' }}</span></template class="color-606266">{{ scope.row.memberOpenCardFlag ? '不同开平' : '同一开平' }}</span></template>
>
</el-table-column> </el-table-column>
<el-table-column prop="" label="导购编辑" show-overflow-tooltip> <el-table-column prop="" label="导购编辑" show-overflow-tooltip>
<template slot-scope="scope"> <template slot-scope="scope">
<el-switch v-model="scope.row.clerkEditFlag" :active-value="1" :inactive-value="0" @change="clerkEditFlagChange(scope.row, scope.$index)"></el-switch> <el-switch v-model="scope.row.clerkEditFlag" :active-value="1" :inactive-value="0"
:disabled="scope.row.wxEnterpriseType===1" @change="clerkEditFlagChange(scope.row, scope.$index)">
</el-switch>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="" label="提交人" show-overflow-tooltip> <el-table-column prop="" label="提交人" show-overflow-tooltip>
<template slot-scope="scope" <template slot-scope="scope"><span
><span class="color-606266">{{ scope.row.staffName || '--' }}</span></template class="color-606266">{{ scope.row.staffName || '--' }}</span></template>
>
</el-table-column> </el-table-column>
<el-table-column prop="" label="完成时间" show-overflow-tooltip> <el-table-column prop="" label="完成时间" show-overflow-tooltip>
<template slot-scope="scope"> <template slot-scope="scope">
...@@ -78,12 +78,15 @@ ...@@ -78,12 +78,15 @@
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="text" @click="AddAuthMerchant(scope.row)">编辑授权设置</el-button> <el-button type="text" @click="AddAuthMerchant(scope.row)">编辑授权设置</el-button>
<el-button type="text" @click="toStoreList(scope.row)">绑定门店列表</el-button> <el-button type="text" @click="toStoreList(scope.row)">绑定门店列表</el-button>
<el-button slot="reference" type="text" size="small" @click="refreshStoreBind(scope.row)">刷新门店</el-button> <el-button slot="reference" type="text" size="small" @click="refreshStoreBind(scope.row)">刷新门店
</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<div class="block common-wrap__page text-right m-t-24" v-if="tableData.length != 0"> <div class="block common-wrap__page text-right m-t-24" v-if="tableData.length != 0">
<dm-pagination background @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage" :page-sizes="[20, 40, 60, 80]" :page-size="pageSize" layout="total, sizes, prev, pager, next, jumper" :total="8"> </dm-pagination> <dm-pagination background @size-change="handleSizeChange" @current-change="handleCurrentChange"
:current-page="currentPage" :page-sizes="[20, 40, 60, 80]" :page-size="pageSize"
layout="total, sizes, prev, pager, next, jumper" :total="8"> </dm-pagination>
</div> </div>
</div> </div>
</div> </div>
...@@ -201,7 +204,7 @@ export default { ...@@ -201,7 +204,7 @@ export default {
} }
errMsg.errorMsg(resData); errMsg.errorMsg(resData);
}) })
.catch(function(error) { .catch(function (error) {
that.loading = false; that.loading = false;
that.$message.error({ that.$message.error({
duration: 1000, duration: 1000,
...@@ -233,7 +236,7 @@ export default { ...@@ -233,7 +236,7 @@ export default {
} }
errMsg.errorMsg(resData); errMsg.errorMsg(resData);
}) })
.catch(function(error) { .catch(function (error) {
that.loading = false; that.loading = false;
that.$message.error({ that.$message.error({
duration: 1000, duration: 1000,
...@@ -241,7 +244,7 @@ export default { ...@@ -241,7 +244,7 @@ export default {
}); });
}); });
}) })
.catch(() => {}); .catch(() => { });
}, },
clerkEditFlagChange(item, index) { clerkEditFlagChange(item, index) {
const that = this; const that = this;
...@@ -253,7 +256,7 @@ export default { ...@@ -253,7 +256,7 @@ export default {
}) })
.then(() => { .then(() => {
that.loading = true; that.loading = true;
let para = { wxEnterprieseRelatedId: item.wxEnterpriseRelatedId, clerkEditFlag: that.tableData[index].clerkEditFlag ? 1 : 0 }; let para = { wxEnterprieseRelatedId: item.wxEnterpriseRelatedId, clerkEditFlag: that.tableData[ index ].clerkEditFlag ? 1 : 0 };
getRequest('/haoban-manage3-web/set-clerk-edit', para) getRequest('/haoban-manage3-web/set-clerk-edit', para)
.then(res => { .then(res => {
that.loading = false; that.loading = false;
...@@ -269,7 +272,7 @@ export default { ...@@ -269,7 +272,7 @@ export default {
this.getTableList(); this.getTableList();
errMsg.errorMsg(resData); errMsg.errorMsg(resData);
}) })
.catch(function(error) { .catch(function (error) {
that.loading = false; that.loading = false;
that.$message.error({ that.$message.error({
duration: 1000, duration: 1000,
...@@ -279,16 +282,16 @@ export default { ...@@ -279,16 +282,16 @@ export default {
}); });
}) })
.catch(() => { .catch(() => {
that.tableData[index].clerkEditFlag = that.tableData[index].clerkEditFlag ? 0 : 1; that.tableData[ index ].clerkEditFlag = that.tableData[ index ].clerkEditFlag ? 0 : 1;
}); });
} }
}, },
watch: { watch: {
activeBrand: function(newData, oldData) { activeBrand: function (newData, oldData) {
const that = this; const that = this;
that.activeBrand = newData; that.activeBrand = newData;
}, },
activeGroup: function(newData, oldData) { activeGroup: function (newData, oldData) {
const that = this; const that = this;
that.activeGroup = newData; that.activeGroup = newData;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment