Commit 25b7842d by crushh

update: bugfix

parent 8b8249d7
...@@ -402,8 +402,10 @@ export default { ...@@ -402,8 +402,10 @@ export default {
color: #606266; color: #606266;
height: 22px; height: 22px;
line-height: 22px; line-height: 22px;
/* width: 230px; */
font-size: 14px; font-size: 14px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
} }
.category-ellipsis { .category-ellipsis {
color: #909399; color: #909399;
......
...@@ -106,7 +106,7 @@ ...@@ -106,7 +106,7 @@
</el-button> </el-button>
<el-button <el-button
plain plain
@click="multipleClose" @click="multipleClose()"
style="margin:0 10px 0 0" style="margin:0 10px 0 0"
v-if="$getButtonLimit($buttonCode.deliverSetBatchDeActive)" v-if="$getButtonLimit($buttonCode.deliverSetBatchDeActive)"
:limit-code="$buttonCode.deliverSetBatchDeActive" :limit-code="$buttonCode.deliverSetBatchDeActive"
...@@ -158,6 +158,14 @@ ...@@ -158,6 +158,14 @@
> >
编辑 编辑
</el-button> </el-button>
<el-button
type="text"
v-if="scope.row.isValid==1&&$getButtonLimit($buttonCode.deliverSetDeActive)"
@click="multipleClose(scope.row)"
:limit-code="$buttonCode.deliverSetDeActive"
>
失效
</el-button>
<el-popover <el-popover
placement="top" placement="top"
width="160" width="160"
...@@ -445,17 +453,24 @@ export default { ...@@ -445,17 +453,24 @@ export default {
} }
}); });
}, },
multipleClose () { multipleClose (row) {
if (this.selectList.length < 1) { if (!row && this.selectList.length < 1) {
this.$message.error('未选择任何自提点,不能操作批量失效'); this.$message.error('未选择任何自提点,不能操作批量失效');
return; return;
} }
this.$confirm(`您已选择${this.selectList.length}个自提点,是否确认操作批量失效?操作后这些自提点将不能用于门店自提商品的自提`, '提示', { const len = row ? 1 : this.selectList.length;
this.$confirm(`您已选择${len}个自提点,是否确认操作批量失效?操作后这些自提点将不能用于门店自提商品的自提`, '提示', {
type: 'warning', type: 'warning',
}).then(_ => { }).then(_ => {
this.loading = true; this.loading = true;
const integralMallPickUpPointIdList = this.selectList.map(item => item.integralMallPickUpPointId); let data = {};
request.post('/api-integral-mall/unvalid-pick-up-point', { integralMallPickUpPointIdList }).then(res => { if (row) {
data = { integralMallPickUpPointIdList: [row.integralMallPickUpPointId] };
} else {
const integralMallPickUpPointIdList = this.selectList.map(item => item.integralMallPickUpPointId);
data = { integralMallPickUpPointIdList };
}
request.post('/api-integral-mall/unvalid-pick-up-point', data).then(res => {
this.$message.success('失效成功'); this.$message.success('失效成功');
this.getList(); this.getList();
}).finally(_ => { }).finally(_ => {
......
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