wms特殊退货单页面打印

master
mengjiao 2 months ago
parent 691430571f
commit 7083d3e8eb

@ -48,6 +48,18 @@
<el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport"
v-hasPermi="['wms:outorder:export']">导出</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="success"
plain
:disabled="single"
icon="el-icon-download"
size="mini"
@click="showPrint"
v-hasPermi="['mes:prepare:export']"
>打印特殊退货单</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
<el-table v-loading="loading" :data="outorderList" @selection-change="handleSelectionChange"
@ -248,7 +260,7 @@
<!-- 打印预览弹出层(生产物料) -->
<el-dialog
title="退料单打印"
title="特殊出库单打印"
:visible.sync="printDialogVisible"
:width="shengchan?'861px':'871px'"
>
@ -257,40 +269,29 @@
<el-form :model="form">
<!-- 表头-工单信息 -->
<!-- 导航栏 -->
<el-row class="my-print-nav">
<el-col :span="24">
<div style="display: flex; justify-content: flex-end;">
<div class="my-print-barcode" :width="shengchan ? '631px' : '621px'">
<svg id="barcode"></svg>
</div>
</div>
</el-col>
</el-row>
<!-- 主数据 -->
<!-- 表头-工单信息 -->
<el-row>
<div class="my-print-head">
<el-col :span="24" style="text-align: center;">
<h3 style="margin: 0;">普通领料/退料单</h3>
<div style="margin-top: 10px;">
<span>领料</span>
<span style="margin-left: 20px;">退料 <span style="color: green;"></span></span>
</div>
<h3 style="margin: 0; display: flex; align-items: center; justify-content: center; text-align: center; margin-left: 160px;">
特殊出库单
<svg id="barcode" style="margin-left: 10px;"></svg>
</h3>
</el-col>
</div>
</el-row>
<!-- 导航栏 -->
<el-row class="my-print-nav">
<el-col :span="6">领料单:{{printData.factory}}</el-col>
<el-col :span="6">领料单:{{printData.produceCode}}</el-col>
<el-col :span="6">工厂编码:{{printData.factory}}</el-col>
<el-col :span="6">库存地点:</el-col>
<el-col :span="6">发料日期:</el-col>
<el-col :span="6">打印日期:{{printData.printDate}}</el-col>
</el-row>
<el-row class="my-print-nav">
<el-col :span="6">成本中心编码:</el-col>
<el-col :span="6">成本中心编码:{{printData.userDefined3}}</el-col>
<el-col :span="6">成本中心:</el-col>
<el-col :span="6">移动类型:</el-col>
<el-col :span="6">物料凭证:</el-col>
@ -298,13 +299,13 @@
<el-table
v-if="refreshNewWorkerTable" v-loading="newWorkerLoading" class="my-print-table" :data="printData.workTable"
border style="width: 1000px;padding-bottom: 1px;">
<el-table-column prop="materialCode" label="物料编码" :width="150" :formatter="productCodeFormate"></el-table-column>
<el-table-column prop="materialDesc" label="物料描述" :width="200"></el-table-column>
<el-table-column prop="userDefined1" width="55" label="单位"></el-table-column>
<el-table-column prop="userDefined5" width="165" label="批号"></el-table-column>
<el-table-column prop="quantity" label="计划数量" width="100"></el-table-column>
<el-table-column prop="planNumber" width="75" label="实发数量"></el-table-column>
<el-table-column prop="routeCode" width="75" label="备注"></el-table-column>
<el-table-column prop="materialCode" label="物料编码" :width="140" :formatter="productCodeFormate"></el-table-column>
<el-table-column prop="materialDesc" label="物料描述" :width="230"></el-table-column>
<el-table-column prop="userDefined1" width="150" label="批号"></el-table-column>
<el-table-column prop="userDefined2" width="150" label="总账科目编号"></el-table-column>
<el-table-column prop="planNumber" label="计划数量" width="75"></el-table-column>
<el-table-column prop="outNumber" width="75" label="实发数量"></el-table-column>
<!-- <el-table-column prop="routeCode" width="75" label="备注"></el-table-column>-->
</el-table>
<!-- 底部 -->
<el-row class="my-print-foot0">
@ -779,16 +780,17 @@ export default {
let queryParams = {
produceCode: this.outorderList[0].produceCode
};
listReturnDY(queryParams).then(response => {
listckTS(queryParams).then(response => {
this.showWorkorderCode = true;
this.printData.printTitle = '订单物料';
this.printData.factory = response.data[0].siteCode
this.printData.factory = response.rows[0].siteCode
//this.printData.productDate = response.data.mesPrepareDetailList[0].productDate
this.printData.printDate = moment(new Date()).format('YYYY-MM-DD')
this.printData.produceCode = response.data[0].produceCode
this.printData.workTable = response.data;
this.printData.pageNo = response.data.length;
this.printData.createBy= response.data[0].createBy;
this.printData.produceCode = response.rows[0].produceCode
this.printData.userDefined3 = response.rows[0].userDefined3
this.printData.workTable = response.rows;
this.printData.pageNo = response.rows.length;
this.printData.createBy= response.rows[0].createBy;
// let chunkedArray = [];
// console.log(this.printData.workTable[0].produceCode)
// //this.printData.workTable
@ -802,7 +804,7 @@ export default {
// }
// this.printData.workTable = chunkedArray;
console.log(this.printData.workTable[0].produceCode)
this.printData.produceCode = response.data.produceCode
this.printData.produceCode = response.rows[0].produceCode
this.refreshNewWorkerTable = true // refreshProTabletrue
this.newWorkerLoading = false // false

Loading…
Cancel
Save