sharechef-common-print-test
v0.0.14
Published
``` import {printTest, printLabel, printOrder} from 'sharechef-print-template' ```
Downloads
22
Readme
import {printTest, printLabel, printOrder} from 'sharechef-print-template'
IP
单个标签
window.android && window.android.linkNet(ip, '9100', -1)
printLabel(food, order)
window.android && window.android.printEnd()
多个标签
window.android && window.android.linkNet(ip, '9100', -1)
printLabel(food, order)
window.android && window.android.printEnd()
单个小票
window.android && window.android.linkNet(ip, '9100', -1)
printOrder(order, type)
window.android && window.android.printEnd()
测试
// 小票
printTest(ip, 'order')
// 标签
printTest(ip, 'label')
USB
订单
window.android && window.android.linkUsb('usb')
printOrder(order, type) // 可以多个
window.android && window.android.printEnd()
提交及发布
npm run git -- 'commit-msg'