feat:玻纤后面的几个成品检验工序添加出入库记录

This commit is contained in:
shijing 2025-11-17 17:09:17 +08:00
parent 153ccb2cf3
commit 3a317a03d3
3 changed files with 53 additions and 23 deletions

View File

@ -81,6 +81,13 @@
:mgroup_code="mgroup_code"
:mgroupMtype = "mgroupMtype"
></inmOut>
<record v-else-if="values == '出入库记录'"
:mgroupId="mgroupId"
:deptId = "mgroupDept"
:mgroupName="mgroupName"
:processId="processId"
:mgroupcode="mgroup_code"
></record>
</el-main>
</el-container>
</template>
@ -89,10 +96,11 @@ import inmIn from "./inmIn.vue";
import inmOut from "./inmOut.vue";
import mlogs from "./mlogs.vue";
import mtask from "./mtask.vue";
import record from "./../wpm_gx/inmrecord.vue";
import handover from "./handover.vue";
export default {
name: "bx",
components: { inmIn, mlogs, mtask, handover,inmOut },
components: { inmIn, mlogs, mtask, handover,inmOut,record },
data() {
return {
mgroups:[],
@ -118,6 +126,12 @@ export default {
let paths = this.$route.path;
let arr = paths.split("/");
this.mgroup_code = arr[2];
if(this.mgroup_code=='chengpingneiwaichujian'||this.mgroup_code=='guangzhuichengpjianc'||
this.mgroup_code=='chengpneizhifujian'||this.mgroup_code=='chengpingxinengjiance'||
this.mgroup_code=='chenpjianchicunjiance'||this.mgroup_code=='chengpwaiguanfujianyi'||
this.mgroup_code=='chengpwaiguanfujianer'){
this.options.push('出入库记录');
}
console.log('this.mgroup_code',this.mgroup_code);
that.getMgroups(this.mgroup_code);
},

View File

@ -163,9 +163,7 @@
prop="material"
show-overflow-tooltip
>
<template #default="scope"
>{{ scope.row.material_name }}
</template>
<template #default="scope">{{ scope.row.material_name }}</template>
</el-table-column>
<el-table-column label="批次号" prop="batch">
</el-table-column>
@ -173,6 +171,14 @@
</el-table-column>
<el-table-column label="数量" prop="count">
</el-table-column>
<el-table-column label="操作" width="90">
<template #default="scope">
<el-button
type="danger"
@click="table_del(scope.row)"
>删除</el-button>
</template>
</el-table-column>
</scTable>
</el-main>
</el-container>
@ -514,6 +520,18 @@ export default {
this.$refs.saveDialog.open("edit").setData(row);
});
},
table_del(row){
let that = this;
this.$confirm(`确定删除吗?`, "提示", {
type: "warning",
}).then(() => {
that.$API.inm.mioitem.delete.req(row.id).then((res) => {
that.$message.success("删除成功");
that.$refs.tables.refresh();
return res;
});
}).catch(() => {});
},
table_submit() {
let that = this;
that.$API.inm.mio.submit.req(that.mioId).then((res) => {

View File

@ -3,20 +3,17 @@
<el-header>
<div class="left-panel">
<el-button type="primary" @click="tomio('do_out')" v-auth="'mio.do'"
v-if="mgroupName!=='size'&&mgroupName!=='facade'"
v-if="mgroupName!=='size'&&mgroupName!=='facade'&&project_code=='gxerp'"
>领料</el-button>
<el-button type="primary" @click="tomio('do_in')" v-auth="'mio.do'">入库</el-button>
<!-- <el-button
type="primary"
@click="tomio('borrow_out')"
v-auth="'mio.do'"
>领用出库</el-button> -->
<el-button
type="primary"
@click="tomio('return_in')"
v-auth="'mio.do'"
v-if="project_code=='gxerp'"
>退还入库</el-button>
<el-select
v-if="project_code=='gxerp'"
v-model="query.type"
clearable
style="width: 120px; margin-left: 2px"
@ -236,6 +233,7 @@ export default {
let that = this;
that.params.mgroup = that.mgroupId;
that.apiObj = that.$API.inm.mio.list;
that.project_code = this.$TOOL.data.get("BASE_INFO").base.base_code;
},
methods: {
tomio(type) {