|
@@ -66,11 +66,18 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<template #slot-column-option="{scope}">
|
|
<template #slot-column-option="{scope}">
|
|
|
|
|
+ <el-button v-if="scope.row.status != 1 && scope.row.status != 5" @click.stop="beginPrint(scope.row)" size="small" type="primary">打小票</el-button>
|
|
|
|
|
+ <el-button v-else size="small">打小票</el-button>
|
|
|
|
|
+
|
|
|
<el-button v-if="scope.row.status != 1 && scope.row.status != 5" @click.stop="printOrder(scope.row)" size="small" type="primary">打A4</el-button>
|
|
<el-button v-if="scope.row.status != 1 && scope.row.status != 5" @click.stop="printOrder(scope.row)" size="small" type="primary">打A4</el-button>
|
|
|
- <el-button v-else disabled size="small">打A4</el-button>
|
|
|
|
|
|
|
+ <el-button v-else size="small">打A4</el-button>
|
|
|
<el-button @click.stop="detailShowFn(scope.row)" size="small" type="success">详情</el-button>
|
|
<el-button @click.stop="detailShowFn(scope.row)" size="small" type="success">详情</el-button>
|
|
|
- <el-button @click.stop="down(scope.row)" size="small" type="primary">下载</el-button>
|
|
|
|
|
- <el-button @click.stop="allDown(scope.row)" size="small" type="primary">全部下载</el-button>
|
|
|
|
|
|
|
+
|
|
|
|
|
+ <el-button @click.stop="down(scope.row)" size="small" type="primary" v-if="scope.row.status!=5 && scope.row.status!=1">下载</el-button>
|
|
|
|
|
+ <el-button size="small" v-else>下载</el-button>
|
|
|
|
|
+
|
|
|
|
|
+ <el-button @click.stop="allDown(scope.row)" size="small" type="primary" v-if="scope.row.status!=5 && scope.row.status!=1 && scope.row.sameTimeIdsNum>1">全部下载</el-button>
|
|
|
|
|
+ <el-button size="small" v-else>全部下载</el-button>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<template #slot-order-book="{scope}">
|
|
<template #slot-order-book="{scope}">
|
|
@@ -224,6 +231,24 @@ export default {
|
|
|
// this.$store.dispatch('getCategory');
|
|
// this.$store.dispatch('getCategory');
|
|
|
this.$store.dispatch('getUsage');
|
|
this.$store.dispatch('getUsage');
|
|
|
},
|
|
},
|
|
|
|
|
+ beginPrint(item){
|
|
|
|
|
+ if(item.printNum && Number(item.printNum)>0){
|
|
|
|
|
+ this.$confirm('请检查是否发过货,确认补打?', '提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' }).then(() => {
|
|
|
|
|
+ this.printBilling(item)
|
|
|
|
|
+ })
|
|
|
|
|
+ }else{
|
|
|
|
|
+ this.printBilling(item)
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ printBilling(item){
|
|
|
|
|
+ this.$service.order.cloudPrintOrder({id:item.id}).then(data => {
|
|
|
|
|
+ if(data.hasNoPrint && data.hasNoPrint == 1){
|
|
|
|
|
+ this.$confirm('请先设置打印小票机', '提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' }).then(() => { })
|
|
|
|
|
+ }else{
|
|
|
|
|
+ this.$notify({ title: '已打小票', message: '操作成功', type: 'success'})
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
printOrder(info){
|
|
printOrder(info){
|
|
|
this.$service.order.info({ id: info.id }).then(res => {
|
|
this.$service.order.info({ id: info.id }).then(res => {
|
|
|
let printData = res.printData ? res.printData : ''
|
|
let printData = res.printData ? res.printData : ''
|
|
@@ -298,7 +323,7 @@ export default {
|
|
|
prop: 'customMobile',
|
|
prop: 'customMobile',
|
|
|
label: '手机号',
|
|
label: '手机号',
|
|
|
align: 'center',
|
|
align: 'center',
|
|
|
- width: '110'
|
|
|
|
|
|
|
+ width: '100'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
prop: 'bigNum',
|
|
prop: 'bigNum',
|
|
@@ -314,15 +339,15 @@ export default {
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
prop: 'book',
|
|
prop: 'book',
|
|
|
- label: '预订单',
|
|
|
|
|
|
|
+ label: '预订',
|
|
|
align: 'center',
|
|
align: 'center',
|
|
|
- width: '70'
|
|
|
|
|
|
|
+ width: '50'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
prop: 'sendTimeWant',
|
|
prop: 'sendTimeWant',
|
|
|
label: '预订发货',
|
|
label: '预订发货',
|
|
|
align: 'center',
|
|
align: 'center',
|
|
|
- width: '90'
|
|
|
|
|
|
|
+ width: '75'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
prop: 'sameTimeIdsNum',
|
|
prop: 'sameTimeIdsNum',
|
|
@@ -359,13 +384,13 @@ export default {
|
|
|
prop: 'addTime',
|
|
prop: 'addTime',
|
|
|
label: '开单时间',
|
|
label: '开单时间',
|
|
|
align: 'center',
|
|
align: 'center',
|
|
|
- width: 110
|
|
|
|
|
|
|
+ width: 90
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
prop: 'status',
|
|
prop: 'status',
|
|
|
label: '状态',
|
|
label: '状态',
|
|
|
align: 'center',
|
|
align: 'center',
|
|
|
- width: 90
|
|
|
|
|
|
|
+ width: 70
|
|
|
}
|
|
}
|
|
|
],
|
|
],
|
|
|
on: {
|
|
on: {
|
|
@@ -384,7 +409,7 @@ export default {
|
|
|
op: {
|
|
op: {
|
|
|
visible: true,
|
|
visible: true,
|
|
|
props: {
|
|
props: {
|
|
|
- width: 350,
|
|
|
|
|
|
|
+ width: 430,
|
|
|
align: 'center',
|
|
align: 'center',
|
|
|
fixed: 'right',
|
|
fixed: 'right',
|
|
|
label: '操作'
|
|
label: '操作'
|