小票全部采用本地usb打印

This commit is contained in:
gyq
2024-07-30 18:04:53 +08:00
parent b2e450fd52
commit 49cabfed21
13 changed files with 459 additions and 291 deletions

View File

@@ -15,7 +15,7 @@
<span class="member_info" v-if="memberInfo.telephone">会员{{ memberInfo.telephone }}</span>
</div>
<div class="btm">
<span class="p">服务员{{ store.userInfo.shopName || "暂无" }}</span>
<span class="p">服务员{{ store.userInfo.loginAccount || "暂无" }}</span>
<span class="t">{{
props.orderInfo.createdAt &&
dayjs(props.orderInfo.createdAt).format("MM-DD HH:mm")
@@ -155,6 +155,7 @@ const printHandle = _.throttle(async function () {
// 打印订单标签
async function printOrderLable() {
try {
if (!isPrint.value) return
const res = await orderfindOrder({
shopId: store.userInfo.shopId,
status: '',
@@ -298,6 +299,10 @@ onMounted(() => {
.p {
color: #999;
width: 160px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
}
}