|
@@ -223,6 +223,13 @@
|
|
|
@click="handleUpdateConfirm(scope.row)"
|
|
|
v-hasPermi="['lineSideCabin:lineSideCabin:edit']"
|
|
|
>出库确认</el-button>
|
|
|
+ <el-button
|
|
|
+ size="mini"
|
|
|
+ type="text"
|
|
|
+ icon="el-icon-edit"
|
|
|
+ @click="handleUpdateConfirmPrint(scope.row)"
|
|
|
+ v-hasPermi="['lineSideCabin:lineSideCabin:edit']"
|
|
|
+ >打印流转单</el-button>
|
|
|
<!-- <el-button-->
|
|
|
<!-- size="mini"-->
|
|
|
<!-- type="text"-->
|
|
@@ -371,6 +378,111 @@
|
|
|
<el-button @click="cancels">取 消</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
+
|
|
|
+ <el-dialog :title="title" :visible.sync="prinopens" width="500px" append-to-body>
|
|
|
+ <el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
|
|
+ <el-form-item label="机台" prop="machineTool">
|
|
|
+ <!-- <el-input v-model="form.machineTool" placeholder="请输入机台" />-->
|
|
|
+ <span>{{form.machineTool}}</span>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="产品:" prop="productNo">
|
|
|
+ <!-- <el-input v-model="form.productNo" placeholder="请输入产品编号" />-->
|
|
|
+ <span>{{form.productName}}--{{form.productSpecifications}}</span>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="色泽:" prop="colours">
|
|
|
+ <!-- <el-input v-model="form.colours" placeholder="请输入色泽" />-->
|
|
|
+ <span>{{form.colours}}</span>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="批号" prop="batchNumber">
|
|
|
+ <!-- <el-input v-model="form.batchNumber" placeholder="请输入批号" />-->
|
|
|
+ <span>{{form.batchNumber}}</span>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="卷数" prop="js">
|
|
|
+ <!-- <el-input v-model="form.js" placeholder="请输入卷数" />-->
|
|
|
+ <span>{{form.js}}</span>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="净重" prop="standby2">
|
|
|
+ <!-- <el-input v-model="form.standby2" placeholder="请输入净重" />-->
|
|
|
+ <span>{{form.standby2}}</span>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="丝车" prop="scid">
|
|
|
+ <!-- <el-input v-model="form.standby2" placeholder="请输入净重" />-->
|
|
|
+ <span>{{form.scid}}</span>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="领料车间" prop="workshop">
|
|
|
+ <span>{{form.workshop}}</span>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="领料人" prop="recipient">
|
|
|
+<!-- <el-input v-model="form.recipient" placeholder="请输入领料人" />-->
|
|
|
+ <span>{{form.recipient}}</span>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="确认人" prop="recipient">
|
|
|
+ <span>{{form.confirm}}</span>
|
|
|
+<!-- <el-input v-model="form.confirm" placeholder="请输入领料人" />-->
|
|
|
+ </el-form-item>
|
|
|
+ <!-- <el-form-item label="领料时间" prop="collectTime">-->
|
|
|
+ <!-- <el-input v-model="form.collectTime" placeholder="请输入领料时间" />-->
|
|
|
+ <!-- </el-form-item>-->
|
|
|
+
|
|
|
+ <!-- <el-form-item label="确认时间" prop="confirmTime">-->
|
|
|
+ <!-- <el-input v-model="form.confirmTime" placeholder="请输入确认时间" />-->
|
|
|
+ <!-- </el-form-item>-->
|
|
|
+ </el-form>
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
+ <el-button type="primary" @click="printDetails">打 印</el-button>
|
|
|
+ <el-button @click="cancelprint">取 消</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
+
|
|
|
+ <div id="printSection" v-show="false">
|
|
|
+ <el-form :model="form" :rules="rules" label-width="80px">
|
|
|
+ <table border="1px" style="width: 400px;height: 650px">
|
|
|
+ <tr>
|
|
|
+ <td colspan="2" style="text-align: center;">流转单</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td style="text-align: center;">机台</td>
|
|
|
+ <td style="text-align: center;">{{form.machineTool}}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td style="text-align: center;">产品</td>
|
|
|
+ <td style="text-align: center;">{{form.productName}}---{{form.productSpecifications}}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td style="text-align: center;">色泽</td>
|
|
|
+ <td style="text-align: center;">{{form.colours}}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td style="text-align: center;">批号</td>
|
|
|
+ <td style="text-align: center;">{{form.batchNumber}}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td style="text-align: center;">卷数</td>
|
|
|
+ <td style="text-align: center;">{{form.js}}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td style="text-align: center;">净重</td>
|
|
|
+ <td style="text-align: center;">{{form.standby2}}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td style="text-align: center;">领料车间</td>
|
|
|
+ <td style="text-align: center;">{{form.workshop}}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td style="text-align: center;">送达人</td>
|
|
|
+ <td ></td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td style="text-align: center;">接收人</td>
|
|
|
+ <td ></td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td style="text-align: center;">日期</td>
|
|
|
+ <td style="text-align: right;">(日夜)</td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ </el-form>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -398,8 +510,9 @@ export default {
|
|
|
// 弹出层标题
|
|
|
title: "",
|
|
|
// 是否显示弹出层
|
|
|
- open: false,
|
|
|
- opens:false,
|
|
|
+ open: false,//领料
|
|
|
+ opens:false,//确认领料
|
|
|
+ prinopens:false,//打印详情
|
|
|
// 查询参数
|
|
|
queryParams: {
|
|
|
pageNum: 1,
|
|
@@ -446,6 +559,15 @@ export default {
|
|
|
this.loading = false;
|
|
|
});
|
|
|
},
|
|
|
+ printDetails() {
|
|
|
+ const printContents = document.getElementById('printSection');
|
|
|
+ const originalContents = document.body.innerHTML;
|
|
|
+ document.body.innerHTML = printContents.innerHTML;
|
|
|
+ window.print();
|
|
|
+ document.body.innerHTML = originalContents;
|
|
|
+ window.location.reload();
|
|
|
+ return false;
|
|
|
+ },
|
|
|
// 取消按钮
|
|
|
cancel() {
|
|
|
this.open = false;
|
|
@@ -457,6 +579,11 @@ export default {
|
|
|
this.opens = false;
|
|
|
this.reset();
|
|
|
},
|
|
|
+ // 取消按钮
|
|
|
+ cancelprint() {
|
|
|
+ this.prinopens = false;
|
|
|
+ this.reset();
|
|
|
+ },
|
|
|
// 表单重置
|
|
|
reset() {
|
|
|
this.form = {
|
|
@@ -528,6 +655,17 @@ export default {
|
|
|
this.title = "领料出库登记";
|
|
|
});
|
|
|
},
|
|
|
+ /** 打印流转单 */
|
|
|
+ handleUpdateConfirmPrint(row) {
|
|
|
+ this.reset();
|
|
|
+ const id = row.id || this.ids
|
|
|
+ getLineSideCabin(id).then(response => {
|
|
|
+ this.form = response.data;
|
|
|
+ this.prinopens = true;
|
|
|
+ this.title = "物料流转转打印";
|
|
|
+ });
|
|
|
+ },
|
|
|
+
|
|
|
/** 确认出库提交按钮 */
|
|
|
submitFormqr() {
|
|
|
this.$refs["form"].validate(valid => {
|