领料出库

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