领料出库

This commit is contained in:
jjLv 2024-11-15 09:22:11 +08:00
parent edf3233332
commit 73354af9bc
1 changed files with 29 additions and 11 deletions

View File

@ -118,7 +118,7 @@
label="申请数量" label="申请数量"
align="center" align="center"
prop="preCountNum" prop="preCountNum"
width="110px" width="80px"
:show-overflow-tooltip="true" :show-overflow-tooltip="true"
> >
</el-table-column> </el-table-column>
@ -127,7 +127,7 @@
label="已出库数量" label="已出库数量"
align="center" align="center"
prop="alNum" prop="alNum"
width="110px" width="80px"
:show-overflow-tooltip="true" :show-overflow-tooltip="true"
> >
</el-table-column> </el-table-column>
@ -175,7 +175,7 @@
:show-overflow-tooltip="true" :show-overflow-tooltip="true"
/> />
<el-table-column label="操作" align="center" width="230"> <el-table-column label="操作" align="center" width="270">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
size="mini" size="mini"
@ -189,7 +189,7 @@
style="margin-bottom: 10px" style="margin-bottom: 10px"
type="primary" type="primary"
@click="handleOut(scope.row)" @click="handleOut(scope.row)"
v-if="scope.row.taskStatus != 5" v-if="scope.row.taskStatus != 4"
v-hasPermi="['purchase:info:edit']" v-hasPermi="['purchase:info:edit']"
>出库</el-button >出库</el-button
> >
@ -197,15 +197,15 @@
<el-button <el-button
size="mini" size="mini"
type="warning" type="warning"
@click="handlePrint(scope.row)" @click="handleLld(scope.row)"
v-if="scope.row.taskStatus == 5" v-if="scope.row.taskStatus == 4"
>领料单</el-button >领料单</el-button
> >
<el-button <el-button
size="mini" size="mini"
type="warning" type="warning"
@click="handlePrint(scope.row)" @click="handlePrint(scope.row)"
v-if="scope.row.taskStatus == 5" v-if="scope.row.taskStatus == 4"
>出库检验单</el-button >出库检验单</el-button
> >
</template> </template>
@ -644,11 +644,12 @@
</template> </template>
<script> <script>
import { getListLeaseApply } from "@/api/lease/apply"; import { getListLeaseApply, getApplyInfo } from "@/api/lease/apply";
import { outInfoList, getDetailsByTypeId, submitOut } from "@/api/lease/out"; import { outInfoList, getDetailsByTypeId, submitOut } from "@/api/lease/out";
import vueEasyPrint from "vue-easy-print";
export default { export default {
dicts: ["lease_task_status"], dicts: ["lease_task_status"],
// components: { vueEasyPrint }, components: { vueEasyPrint },
data() { data() {
return { return {
// //
@ -716,6 +717,10 @@ export default {
outNum: 0, outNum: 0,
outObj: {}, outObj: {},
parentIdTemp: undefined, parentIdTemp: undefined,
//
leaseApplyDetails: [],
//
leaseApplyData: {},
}; };
}, },
created() { created() {
@ -732,6 +737,7 @@ export default {
manageType: 0, manageType: 0,
maId: item.maId, maId: item.maId,
parentId: this.parentIdTemp, parentId: this.parentIdTemp,
outNum: 1,
}); });
}); });
this.single = selection.length != 1; this.single = selection.length != 1;
@ -803,10 +809,10 @@ export default {
// //
codeOut(row) { codeOut(row) {
// this.title = '' this.title = "编码出库";
this.openCode = true; this.openCode = true;
// this.resetForm("codeOutForm"); // this.resetForm("codeOutForm");
// this.resetForm("outQuery"); this.resetForm("outQuery");
this.parentIdTemp = row.parentId; this.parentIdTemp = row.parentId;
this.outNum = row.outNum; this.outNum = row.outNum;
this.outQuery.typeId = row.typeId; this.outQuery.typeId = row.typeId;
@ -872,6 +878,18 @@ export default {
this.openPrint = true; this.openPrint = true;
this.title = "机具设备到货验收单"; this.title = "机具设备到货验收单";
}, },
//
async handleLld(row) {
this.open = true;
var ids = row.id;
const res = await getApplyInfo(ids);
console.log(res);
this.leaseApplyDetails = res.data.leaseApplyDetailsList;
this.leaseApplyData = res.data.leaseApplyInfo;
console.log(this.leaseApplyData);
},
// //
print() { print() {
this.$refs.remarksPrintRef.print(); this.$refs.remarksPrintRef.print();