diff --git a/src/api/order/index.js b/src/api/order/index.js index e22ad3d..c08a018 100644 --- a/src/api/order/index.js +++ b/src/api/order/index.js @@ -37,3 +37,15 @@ export function payreturnOrder(data) { }); } +/** + * 打印 + * @param {*} params + * @returns + */ +export function cloudPrinterprint(params) { + return request({ + method: "post", + url: "cloudPrinter/print", + params + }); +} diff --git a/src/views/login.vue b/src/views/login.vue index 895d92d..c92b67d 100644 --- a/src/views/login.vue +++ b/src/views/login.vue @@ -72,7 +72,7 @@ const loading = ref(false); const form = reactive({ serialNumber: RandomNumBoth(1000, 9999), clientType: 'pc', - merchantName: '', + merchantName: '',//19191703856 loginName: "", password: "", }); diff --git a/src/views/order/components/add.vue b/src/views/order/components/add.vue index 5dd805f..7c60965 100644 --- a/src/views/order/components/add.vue +++ b/src/views/order/components/add.vue @@ -2,9 +2,12 @@
+
已退款
+
-
-
{{ item.zdNo || "pos" }}
+
+
{{ item.zdNo || "pos" }}
@@ -18,8 +21,8 @@
{{ item.orderNo }}
- {{item.names && item.names[0] }} - 等{{ item.names && item.names.length }}项 + {{ item.names && item.names[0] }} + {{ item.names && item.names.length }}项
@@ -45,8 +48,8 @@ const props = defineProps({ ordereData: { type: Object, default: { - list:[{ - names:[] + list: [{ + names: [] }] } } @@ -70,14 +73,30 @@ const clickitemboxshow = (e) => { border-radius: 6px; display: flex; justify-content: space-between; - // background: #eeeeee; border-bottom: 1px solid #ccc; + position: relative; + .demo_tabs_boxitem_oneyt { + position: absolute; + top: 20%; + transform: translate(-50%, 0); + transform: rotate(45deg); + right: 200px; + display: inline-block; + border: 3px solid red; + color: red; + font-weight: bold; + border-radius: 6px; + text-align: center; + padding: 10px 6px; + } .demo_tabs_boxitem_one { display: flex; justify-content: flex-start; flex-shrink: 0; + + .demo_tabs_boxitem_oneone { display: flex; margin-left: 20px; diff --git a/src/views/order/index.vue b/src/views/order/index.vue index a821ce7..1ad2373 100644 --- a/src/views/order/index.vue +++ b/src/views/order/index.vue @@ -15,14 +15,14 @@ @current-change="handleCurrentChange" /> - +
暂无数据
- +
暂无数据
收银员:{{ orderDetaildata.userName }}
- 创建时间:{{ orderDetaildata.createdAt }} + 创建时间:{{dayjs( orderDetaildata.createdAt).format("YYYY-MM-DD HH:mm:ss") }}
终端:{{ orderDetaildata.zdNo }} @@ -80,21 +80,22 @@
-
{{ item.productName }}-{{ item.productSkuName }}号商品
+
{{ item.productName }}-{{ item.productSkuName }}
{{ item.num }}
{{ item.price }}
-
{{ item.priceAmount }}
+
已退
+
{{ item.priceAmount }}
-
- - 打票 + 退单 +
+ + 重打收銀打票 - 退单 + 重打出品小票
- 结算
@@ -161,7 +162,7 @@ 单号:{{ orderDetaildata.orderNo }}
- 下单时间:{{ orderDetaildata.createdAt }} + 下单时间:{{ dayjs(orderDetaildata.createdAt).format("YYYY-MM-DD HH:mm:ss") }}
金额:¥{{ orderDetaildata.orderAmount }} @@ -249,6 +250,7 @@ const payreturnOrderclick = async () => { await payreturnOrder(arr) changechecked.value = false recharge.value = false + ElMessage.error('退款成功!') asyncorderfindOrder() } else { ElMessage.error('以没有退款项目!') @@ -722,7 +724,7 @@ onMounted(() => { .tableDataclass { width: 100%; overflow: auto; - height: 75%; + height: 80%; .orderbox_right_item { margin-top: 6px; @@ -740,6 +742,7 @@ onMounted(() => { bottom: 16px; .orderbox_right_buttonbutton { + margin-top: 10px; display: flex; justify-content: space-between; align-items: center;