|
@ -134,6 +134,7 @@ export default {
|
|
|
watch:{
|
|
|
step(n){
|
|
|
if(n==2){
|
|
|
clearInterval(countDownFunc)
|
|
|
this.countDown()
|
|
|
}else if(n!=3){
|
|
|
this.rsType = 0
|
|
@ -214,7 +215,7 @@ export default {
|
|
|
this.$toast.clear()
|
|
|
this.$loading('加载中..')
|
|
|
this.shippingType = pickUpNum? 1 : 2
|
|
|
this.oldCardNo = cardNum? cardNo : ''
|
|
|
this.oldCardNo = cardNum || ''
|
|
|
let p = {
|
|
|
deviceId: this.deviceNum, //设备编号
|
|
|
pickUpNum, //取药码
|
|
@ -390,10 +391,8 @@ export default {
|
|
|
try{
|
|
|
if (msgobj.mess.indexOf("异常") != -1 || msgobj.mess.indexOf("读取信息失败") != -1) {
|
|
|
if(this.nextOrderDetail){
|
|
|
this.$toast.loading({
|
|
|
duration: 0,
|
|
|
this.$toast({
|
|
|
forbidClick: true, // 禁用背景点击
|
|
|
loadingType: 'loading',
|
|
|
message: msgobj.mess,
|
|
|
onClose: ()=>{
|
|
|
this.onPrev()
|
|
@ -414,16 +413,15 @@ export default {
|
|
|
var cardNo = json['卡号']
|
|
|
if(this.nextOrderDetail){
|
|
|
if(cardNo != this.oldCardNo){
|
|
|
this.$toast.loading({
|
|
|
duration: 0,
|
|
|
this.$toast({
|
|
|
forbidClick: true, // 禁用背景点击
|
|
|
loadingType: 'loading',
|
|
|
message: "医保卡信息不匹配,请重新操作",
|
|
|
onClose: ()=>{
|
|
|
this.onPrev()
|
|
|
}
|
|
|
});
|
|
|
} else {
|
|
|
this.$toast.clear()
|
|
|
var order = this.nextOrderDetail
|
|
|
this.nextOrderDetail = ''
|
|
|
this.showOrderDetail(order)
|
|
@ -544,6 +542,7 @@ export default {
|
|
|
this.socket.send(JSON.stringify(obj));
|
|
|
},
|
|
|
SetPrintPage: function() {
|
|
|
debugger
|
|
|
// string type; //text 文本 |line 间隔行|barcode 条码|qrcode 二维码|reset 重置打印机 |nline 走纸【进行【
|
|
|
// string text; //文本内容
|
|
|
// int nLan;//文本编码类型0:GBK 1:UTF-8
|
|
@ -563,7 +562,7 @@ export default {
|
|
|
var printcon =[
|
|
|
{type:"reset"},
|
|
|
{type:"nline"},
|
|
|
{type:"text", text:"智能药房\n小票凭据\n",nLan:0,nOrgx:-2,nWidthTimes:0,nHeightTimes:0,FontType:0,nFontStyle:0},
|
|
|
{type:"text", text:"智慧药房\n小票凭据\n",nLan:0,nOrgx:-2,nWidthTimes:0,nHeightTimes:0,FontType:0,nFontStyle:0},
|
|
|
{type:"text", text:"--------------------------------\n",nLan:0,nOrgx:-2,nWidthTimes:0,nHeightTimes:0,FontType:0,nFontStyle:0},
|
|
|
];
|
|
|
var allPrice = 0, allcount = 0
|