Commit c08d171b authored by pengyunqian's avatar pengyunqian

update:bug更改

parent ea5a7edc
......@@ -342,7 +342,7 @@ export default {
this.selectActivity = code;
console.log(code);
try {
const res = await getDelivererList({ code });
const res = await getDelivererList({ code});
this.deliverer = res.response;
this.isEdit = true;
this.getList();
......@@ -368,9 +368,11 @@ export default {
const { selectActivity, multipleSelection } = this;
const uids = multipleSelection.map((item) => item.deliverer_id);
if (!selectActivity) return ElMessage("请选择活动姓名");
// if (!uids.length) return this.$message.info("请至少选择一名骑手");
try {
await getSaveDeliverer({ code: selectActivity, uids: uids.join(",") });
ElMessage("分配配送员成功");
const {code, reason} = await getSaveDeliverer({ code: selectActivity, uids: uids.join(",") });
if(code !== 0) return this.$message.error(reason || (this.isEdit ? "修改配送员失败":"分配配送员失败"))
ElMessage(this.isEdit ? "修改配送员成功":"分配配送员成功");
this.dialogFormAssign = false;
this.isEdit = false;
this.getList();
......
......@@ -514,7 +514,7 @@ export default {
marketing_id: val,
};
const res = await getGoodsList(params);
const res = await getSubShopList(params);
// const res = await getSubShopList(params);
this.tradeNameArr = res.result;
this.selLiftPoinArr = res.result;
},
......
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