diff --git a/src/views/order/index/config/content.ts b/src/views/order/index/config/content.ts
index 0246ba4..15236ef 100644
--- a/src/views/order/index/config/content.ts
+++ b/src/views/order/index/config/content.ts
@@ -139,7 +139,7 @@ const contentConfig: IContentConfig = {
label: "操作",
align: "center",
fixed: "right",
- width: 180,
+ width: 240,
templet: "custom",
slotName: "operate",
},
diff --git a/src/views/order/index/index.vue b/src/views/order/index/index.vue
index 4aa2a45..8d4a9d0 100644
--- a/src/views/order/index/index.vue
+++ b/src/views/order/index/index.vue
@@ -2,37 +2,19 @@
-
+
-
+
{{ returnOriginAmount(scope.row) }}
-
+
{{ scope.row.orderNo }}
@@ -73,7 +55,7 @@
- 打印失败({{ scope.row.printStatus.map((item) => item.name).join("、") }})
+ 打印失败({{scope.row.printStatus.map((item) => item.name).join("、")}})
@@ -87,25 +69,18 @@
{{ scope.row[scope.prop] }}
-
+
{{ returnPayTypeOptionsLabel(scope.prop, scope.row[scope.prop]) }}
- 打印
+ 打印前台
+ 打印厨房
详情
-
+
结账
@@ -121,11 +96,7 @@
-
+
@@ -191,11 +162,11 @@ onMounted(() => {
});
// 打印订单
-async function printOrderHandle(order: getListResponse) {
+async function printOrderHandle(order: getListResponse, type: number) {
try {
await orderApi.printOrder({
id: order.id,
- type: 0,
+ type: type,
});
ElMessage.success("打印成功");
} catch (error) {
@@ -404,7 +375,7 @@ function showdetail(row: OrderInfoVo) {
left: 36%;
padding: 18px;
- > div:first-child {
+ >div:first-child {
display: flex;
align-items: center;
justify-content: space-between;
@@ -415,7 +386,7 @@ function showdetail(row: OrderInfoVo) {
transform: translateX(-80px);
}
- > div:last-child {
+ >div:last-child {
text-align: center;
}
}