Commit 7ea287f2 authored by mengwenhao's avatar mengwenhao

fix:商品-字遮挡,无法驳回

parent 2486e431
......@@ -48,3 +48,10 @@
background-color: #199ffb;
}
}
.el-input__inner {
padding-right: 15%;
}
.el-textarea__inner {
padding-bottom: 10%;
}
......@@ -241,7 +241,9 @@
<el-table-column
type="selection"
width="55"
> </el-table-column>
:selectable="canChooseShop"
>
</el-table-column>
<el-table-column
align="center"
prop="shop_name"
......@@ -574,11 +576,11 @@
<section style="display:flex;justify-content:center;">
<el-button
type="danger"
@click="onDefault"
@click.stop="onDefault"
>驳回</el-button>
<el-button
type="primary"
@click="rejectVisible = false"
@click.stop="rejectVisible = false"
>取消
</el-button>
</section>
......@@ -863,20 +865,28 @@ export default {
};
const res = await getShopsList(query);
if (res.code !== 0) return this.$message.error(res.reason);
console.log(res);
this.shopsList = res.result;
this.shopsCount = res.count;
},
// 门店列表更改时操作
handleShopsChange (value) {
console.log(value);
this.goodsObj.sub_shop = this.goodsObj.sub_shop.concat(value);
this.goodsObj.sub_shop = value;
const shopList = value.map(item => {
return item.sub_shop_id;
});
this.shopIds = "";
this.shopIds = shopList.join(",");
},
// 是否可选门店
canChooseShop () {
if (this.goodsObj.sub_shop.length === 1) {
return false;
} else {
return true;
}
},
// 添加新门店
async addShop () {
......@@ -992,7 +1002,7 @@ export default {
if (!this.inventoryAdd) {
this.$nextTick(() => {
this.inventoryAdd = 0;
})
});
}
if (this.inventoryAdd + this.goodsObj.inventory_rest < 0) {
this.$nextTick(() => {
......@@ -1117,7 +1127,8 @@ export default {
// 审核拒绝
async onDefault () {
if (this.rejectReason.reason != "0" || this.rejectReason.reason === "") {
console.log(this.rejectReason.reason);
if (this.rejectReason.reason == "") {
return this.$message.error("审核驳回时,驳回原因不能为空");
}
const query = {
......
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