领料单打印调整

yangwl
guoshuang 3 months ago
parent 681505fc47
commit 3144dc4d8b

@ -233,9 +233,7 @@
<el-form :model="form"> <el-form :model="form">
<!-- 表头-工单信息 --> <!-- 表头-工单信息 -->
<div class="my-print-barcode" :width="shengchan?'731px':'721px'">
<svg id="barcode"></svg>
</div>
<el-row> <el-row>
<div class="my-print-head"> <div class="my-print-head">
<el-col>生产订单备料单({{printData.printTitle}})</el-col> <el-col>生产订单备料单({{printData.printTitle}})</el-col>
@ -243,14 +241,19 @@
</el-row> </el-row>
<!-- 导航栏 --> <!-- 导航栏 -->
<el-row class="my-print-nav"> <el-row class="my-print-nav">
<el-col :span="8">工厂:{{printData.factory}}</el-col> <el-col :span="6">工厂:{{printData.factory}}</el-col>
<el-col :span="8">工作中心:{{printData.workCenter}}</el-col> <el-col :span="6">工作中心:{{printData.workCenter}}</el-col>
<el-col :span="8" v-if="printData.prodLineCode!=null">线:{{printData.prodLineCode}}</el-col> <el-col :span="4" v-if="printData.prodLineCode!=null">线:{{printData.prodLineCode}}</el-col>
<el-col style="position: absolute;right: 0px;" :span="8">
<div class="my-print-barcode" :width="shengchan?'631px':'621px'">
<svg id="barcode"></svg>
</div>
</el-col>
</el-row> </el-row>
<el-row class="my-print-nav"> <el-row class="my-print-nav">
<el-col :span="8">生产日期:{{printData.productDate}}</el-col> <el-col :span="6">生产日期:{{printData.productDate}}</el-col>
<el-col :span="8">打印日期:{{printData.printDate}}</el-col> <el-col :span="6">打印日期:{{printData.printDate}}</el-col>
<el-col :span="8">页次: 1/ 1</el-col> <el-col :span="6">页次: 1/ 1</el-col>
</el-row> </el-row>
<!-- 主数据 --> <!-- 主数据 -->
<div v-for="(item,index) in printData.workTable" :key="index"> <div v-for="(item,index) in printData.workTable" :key="index">
@ -310,8 +313,8 @@ export default {
// components: {Detail}, // components: {Detail},
data() { data() {
return { return {
fenyeNumber:2, fenyeNumber:4,
fenyeNumberTwo:4, fenyeNumberTwo:6,
shengchan:true, shengchan:true,
newWorkerLoading: false, newWorkerLoading: false,
refreshNewWorkerTable:true, refreshNewWorkerTable:true,
@ -527,8 +530,8 @@ export default {
generateBarcode(barcode){ generateBarcode(barcode){
JsBarcode("#barcode", barcode, { JsBarcode("#barcode", barcode, {
format: "CODE128", format: "CODE128",
height:75, height:35,
width:2, width:1.5,
displayValue: true, displayValue: true,
}); });
}, },
@ -687,7 +690,7 @@ export default {
.my-print-nav { .my-print-nav {
margin-top: 10px; margin-top: 10px;
margin-bottom: 10px; margin-bottom: 20px;
} }
.my-print-foot { .my-print-foot {

Loading…
Cancel
Save