feat: 芯烨云打印机接入
This commit is contained in:
1 parent
9681a18bd1
commit
1cc030d0db
19 files changed
+465
-17
No files matched your search
@@ -110,6 +110,11 @@ export const getOrderHtml = async (param1,param2) => {
|
||||
return await request.get({ url: `/order/store-order/printOrder?id=` + param1 + `&electId=` + param2})
|
||||
}
|
||||
|
||||
/** 补打小票 */
|
||||
export const printStoreOrder = async (id: number) => {
|
||||
return await request.get({ url: `/order/store-order/printOrder?id=` + id })
|
||||
}
|
||||
|
||||
export const getShopCount = async () => {
|
||||
return await request.get({ url: `/order/store-order/count`})
|
||||
}
|
||||
|
||||
@@ -200,6 +200,10 @@
|
||||
<template #dropdown>
|
||||
<el-dropdown-menu>
|
||||
<el-dropdown-item v-if = "scope.row.statusStr == '未支付'" @click="handlePay(scope.row.id)">确认付款</el-dropdown-item>
|
||||
<el-dropdown-item
|
||||
v-if="scope.row.statusStr != '未支付' && (scope.row.orderType == 'takein' || scope.row.orderType == 'takeout')"
|
||||
@click="handlePrint(scope.row.id)"
|
||||
>补打</el-dropdown-item>
|
||||
<el-dropdown-item @click="openForm('orderDetail', scope.row.id)">订单详情</el-dropdown-item>
|
||||
<el-dropdown-item @click="openForm('orderRecord', scope.row.id)">订单记录</el-dropdown-item>
|
||||
<el-dropdown-item @click="handleDelete(scope.row.id)">删除订单</el-dropdown-item>
|
||||
@@ -364,6 +368,15 @@ const handlePay = async (id: number) => {
|
||||
} catch {}
|
||||
}
|
||||
|
||||
/** 补打小票 */
|
||||
const handlePrint = async (id: number) => {
|
||||
try {
|
||||
await message.confirm('确认补打该订单小票?')
|
||||
await StoreOrderApi.printStoreOrder(id)
|
||||
message.success('已发送打印')
|
||||
} catch {}
|
||||
}
|
||||
|
||||
/** 确认收货按钮操作 */
|
||||
const handleTake = async (id: number) => {
|
||||
try {
|
||||
|
||||
@@ -86,6 +86,10 @@
|
||||
</el-select>
|
||||
<div style="color: red;">绑定管理员用于分店管理</div>
|
||||
</el-form-item>
|
||||
<el-form-item label="打印机SN" prop="uniprintId">
|
||||
<el-input v-model="formData.uniprintId" placeholder="芯烨云打印机设备底部 SN,为空则不自动打印" />
|
||||
<div style="color: #909399; font-size: 12px;">登录芯烨云开放平台绑定打印机后,填入设备 SN</div>
|
||||
</el-form-item>
|
||||
<el-form-item label="是否营业" prop="status">
|
||||
<el-radio-group v-model="formData.status">
|
||||
<el-radio :label="1">是</el-radio>
|
||||
|
||||
Reference in new issue
Block a user