|
@@ -1,13 +1,14 @@
|
|
|
<template>
|
|
|
<div class="detail-container">
|
|
|
- <div class="top-container">
|
|
|
+ <!-- <div class="top-container">
|
|
|
<el-radio-group v-model="currentType" size="medium" @change="changeType()">
|
|
|
<el-radio-button v-for="(item, index) in typeList" :key="index" :label="item.value">{{item.label}}</el-radio-button>
|
|
|
</el-radio-group>
|
|
|
- </div>
|
|
|
+ </div> -->
|
|
|
|
|
|
<div id="printMe">
|
|
|
|
|
|
+ <PrintCommon :detailData="detailData" :company="company" v-if="currentType === 0" />
|
|
|
<PrintFoshan :detailData="detailData" :company="company" v-if="currentType === 1" />
|
|
|
<PrintGuangzhou :detailData="detailData" :company="company" v-if="currentType === 2" />
|
|
|
<PrintShaoguan :detailData="detailData" :company="company" v-if="currentType === 3" />
|
|
@@ -28,6 +29,7 @@
|
|
|
import print from 'vue-print-nb'
|
|
|
import { getDetail, addPrint } from "@/api/supply/pickup";
|
|
|
import { getCompanyList } from "@/api/user";
|
|
|
+import PrintCommon from "@/components/Common/print-common";
|
|
|
import PrintFoshan from "@/components/Common/print-foshan";
|
|
|
import PrintGuangzhou from "@/components/Common/print-guangzhou";
|
|
|
import PrintShaoguan from "@/components/Common/print-shaoguan";
|
|
@@ -40,14 +42,16 @@ export default {
|
|
|
PrintFoshan,
|
|
|
PrintGuangzhou,
|
|
|
PrintShaoguan,
|
|
|
+ PrintCommon,
|
|
|
},
|
|
|
directives: {
|
|
|
print
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- currentType: 1,
|
|
|
+ currentType: 0,
|
|
|
typeList: [
|
|
|
+ { label: '通用', value: 0 },
|
|
|
{ label: '佛山', value: 1 },
|
|
|
{ label: '广州', value: 2 },
|
|
|
{ label: '韶关', value: 3 },
|