|
|
@ -234,7 +234,7 @@ |
|
|
</u-popup> |
|
|
</u-popup> |
|
|
<view class="tui-tabbar"> |
|
|
<view class="tui-tabbar"> |
|
|
<view class="tui-btn-mr" v-if="sales.status != 6 && sales.status != 2"> |
|
|
<view class="tui-btn-mr" v-if="sales.status != 6 && sales.status != 2"> |
|
|
<kk-printer ref="kkprinter" :bufferData="bufferData" @onPrint="onPrint">贴包单</kk-printer> |
|
|
<kk-printer ref="kkprinter" :bufferData="bufferData" @onPrint="onPrint"></kk-printer> |
|
|
</view> |
|
|
</view> |
|
|
<view class="tui-btn-mr" v-if="sales.status == 0 || sales.status == 1" @click="cancelOrder">取消订单</view> |
|
|
<view class="tui-btn-mr" v-if="sales.status == 0 || sales.status == 1" @click="cancelOrder">取消订单</view> |
|
|
<view class="tui-btn-mr" v-if="sales.status == 4" @click="returnGoods">{{ !isReturn ? '退货' : '确认退货'}}</view> |
|
|
<view class="tui-btn-mr" v-if="sales.status == 4" @click="returnGoods">{{ !isReturn ? '退货' : '确认退货'}}</view> |
|
|
@ -256,7 +256,11 @@ |
|
|
<script> |
|
|
<script> |
|
|
import util from '@/components/kk-printer/utils/util.js'; |
|
|
import util from '@/components/kk-printer/utils/util.js'; |
|
|
import * as blesdk from '@/components/kk-printer/utils/bluetoolth.js'; |
|
|
import * as blesdk from '@/components/kk-printer/utils/bluetoolth.js'; |
|
|
import kkPrinter from '@/components/kk-printer/index.vue'; |
|
|
import kkPrinter from '@/components/kk-printer/index.vue'; |
|
|
|
|
|
import { |
|
|
|
|
|
maskShopName, |
|
|
|
|
|
maskPhone |
|
|
|
|
|
} from '@/utils/global.js' |
|
|
export default { |
|
|
export default { |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
@ -405,9 +409,9 @@ |
|
|
strCmd += blesdk.addCPCLText('40', '30', '24', '0', 0, '沧州明珠商贸城--快衣店') |
|
|
strCmd += blesdk.addCPCLText('40', '30', '24', '0', 0, '沧州明珠商贸城--快衣店') |
|
|
strCmd += blesdk.addCPCLSETMAG(3, 3) |
|
|
strCmd += blesdk.addCPCLSETMAG(3, 3) |
|
|
blesdk.addCPCLSETBOLD('bold') |
|
|
blesdk.addCPCLSETBOLD('bold') |
|
|
strCmd += blesdk.addCPCLText('50', '120', '24', '0', 0, '收:' + this.sales.userName) |
|
|
strCmd += blesdk.addCPCLText('50', '120', '24', '0', 0, '收:' + maskShopName(this.sales.userName)) |
|
|
strCmd += blesdk.addCPCLSETMAG(1, 1) |
|
|
strCmd += blesdk.addCPCLSETMAG(1, 1) |
|
|
strCmd += blesdk.addCPCLText('50', '250', '24', '0', 0, this.order.phone) |
|
|
strCmd += blesdk.addCPCLText('50', '250', '24', '0', 0, maskPhone(this.order.phone)) |
|
|
strCmd += blesdk.addCPCLSETMAG(2, 2) |
|
|
strCmd += blesdk.addCPCLSETMAG(2, 2) |
|
|
blesdk.addCPCLSETBOLD('bold') |
|
|
blesdk.addCPCLSETBOLD('bold') |
|
|
strCmd += blesdk.addCPCLText('50', '330', '24', '0', 0, this.sales.province + '/' + this.sales.city + '/' + |
|
|
strCmd += blesdk.addCPCLText('50', '330', '24', '0', 0, this.sales.province + '/' + this.sales.city + '/' + |
|
|
@ -417,11 +421,11 @@ |
|
|
strCmd += blesdk.addCPCLSETMAG(2, 2) |
|
|
strCmd += blesdk.addCPCLSETMAG(2, 2) |
|
|
blesdk.addCPCLSETBOLD('bold') |
|
|
blesdk.addCPCLSETBOLD('bold') |
|
|
strCmd += blesdk.addCPCLText('0', '490', '24', '0', 0, '——————————————————————————————') |
|
|
strCmd += blesdk.addCPCLText('0', '490', '24', '0', 0, '——————————————————————————————') |
|
|
strCmd += blesdk.addCPCLText('50', '570', '24', '0', 0, '发货方式:' + this.sales.companyName) |
|
|
strCmd += blesdk.addCPCLText('50', '570', '24', '0', 0, '发货方式:' + this.sales.companyName?this.sales.companyName:'') |
|
|
strCmd += blesdk.addCPCLSETMAG(2, 2) |
|
|
strCmd += blesdk.addCPCLSETMAG(2, 2) |
|
|
strCmd += blesdk.addCPCLText('0', '650', '24', '0', 0, '——————————————————————————————') |
|
|
strCmd += blesdk.addCPCLText('0', '650', '24', '0', 0, '——————————————————————————————') |
|
|
strCmd += blesdk.addCPCLText('50', '730', '24', '0', 0, '店铺:' + this.sales.shopName) |
|
|
strCmd += blesdk.addCPCLText('50', '730', '24', '0', 0, '店铺:' + maskShopName(this.sales.shopName)) |
|
|
strCmd += blesdk.addCPCLText('50', '810', '24', '0', 0, this.sales.createByPhone) |
|
|
strCmd += blesdk.addCPCLText('50', '810', '24', '0', 0, maskPhone(this.sales.createByPhone)) |
|
|
strCmd += blesdk.addCPCLText('50', '890', '24', '0', 0, '地址:' + this.shopData.shopAddress) |
|
|
strCmd += blesdk.addCPCLText('50', '890', '24', '0', 0, '地址:' + this.shopData.shopAddress) |
|
|
strCmd += blesdk.addCPCLLocation(0); |
|
|
strCmd += blesdk.addCPCLLocation(0); |
|
|
strCmd += blesdk.addCPCLPrint(); |
|
|
strCmd += blesdk.addCPCLPrint(); |
|
|
|