fix: 修改代客下单仅下单后不展示历史下单数据

This commit is contained in:
2025-03-17 14:35:52 +08:00
parent 09aec0e733
commit 2850cb94d4
2 changed files with 6 additions and 7 deletions

View File

@@ -128,7 +128,7 @@
<el-button
type="primary"
size="large"
:disabled="!goodsMapisFinish"
:disabled="!goodsMapisFinish || carts.isEmpty"
@click="createOrder('only-create')"
>
仅下单

View File

@@ -398,10 +398,7 @@ async function createOrder(key) {
if (res) {
carts.clear();
carts.dataReset();
if (key == "only-create") {
refresh();
return;
}
if (res.userId) {
const userRes = await shopUserApi.get({ userId: res.userId });
user.value = userRes;
@@ -416,7 +413,9 @@ async function createOrder(key) {
orderInfo.value = res1;
carts.setOldOrder(res1);
}
if (key == "only-create") {
return;
}
showOrder.value = true;
if (key == "wx-aiplay") {
nextTick(() => {
@@ -815,7 +814,7 @@ $pl: 30px;
height: 100%;
max-height: calc(100vh - 256px);
.left {
width: 330px;
width: 350px;
padding-right: 14px;
box-sizing: border-box;
display: flex;