cashier_desktop/public/print.html

101 lines
2.2 KiB
HTML

<!--
~ Copyright (c) 2023. Author Hubert Formin <2399270194@qq.com>
-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Print preview</title>
<style>
@page {
size: auto;
}
html {
padding-bottom: 100px;
}
.title_wrap {
font-weight: bold;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 50px 0;
}
.title {
font-size: 24px;
}
.min_title {
font-size: 18px;
padding-top: 10px;
}
.item {
padding: 20px 0;
}
.item.b {
font-weight: bold;
}
.img {
width: 100%;
display: block;
}
</style>
</head>
<body>
<section id="app">
<RS:2><L><CB>####### 6 ######</CB></L><BR>
<RS:2><C>*沙县小吃*</C><BR>
<RS:2><CB>--已在线支付--</CB><BR>
<RS:2><C>----------------</C><BR>
送达时间: 2021-01-04 13:28:50<BR>
送达时间: 2021-01-04 12:28:50<BR>
订单编号: 1200897812792015996<BR>
-------01号篮子------<BR>
<L>爆炒肥肠 x2 80.0</L><BR>
<L>蚂蚁上树 x1 12.3</L><BR>
[会员减配送费: 0.0]<BR>
<RS:1>[商家承担的配送费: 1.0]<BR>
配送费: ¥1.0<BR>
<B>实付: ¥43.3</B><BR>
<B>手机号: 13012345678</B><BR>
<RS:2><B>仲恺高新区惠风西3路1号</B><BR>
备 注: 不要辣椒<BR>
发票抬头: 惠州市博实结科技有限公司<BR>
<LOGO>
<CUT>
</section>
<script type="module">
const { ipcRenderer } = require("electron");
import {
createApp,
ref,
onMounted,
} from "../node_modules/vue/dist/vue.esm-browser.js";
createApp({
setup() {
const data = ref({});
onMounted(() => {
ipcRenderer.on("getParams", (event, arg) => {
data.value = JSON.parse(arg);
});
ipcRenderer.send("printStart");
});
return {
data,
};
},
}).mount("#app");
</script>
</body>
</html>