feat:玻纤后面的几个成品检验工序添加出入库记录
This commit is contained in:
parent
153ccb2cf3
commit
3a317a03d3
|
|
@ -81,6 +81,13 @@
|
||||||
:mgroup_code="mgroup_code"
|
:mgroup_code="mgroup_code"
|
||||||
:mgroupMtype = "mgroupMtype"
|
:mgroupMtype = "mgroupMtype"
|
||||||
></inmOut>
|
></inmOut>
|
||||||
|
<record v-else-if="values == '出入库记录'"
|
||||||
|
:mgroupId="mgroupId"
|
||||||
|
:deptId = "mgroupDept"
|
||||||
|
:mgroupName="mgroupName"
|
||||||
|
:processId="processId"
|
||||||
|
:mgroupcode="mgroup_code"
|
||||||
|
></record>
|
||||||
</el-main>
|
</el-main>
|
||||||
</el-container>
|
</el-container>
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -89,10 +96,11 @@ import inmIn from "./inmIn.vue";
|
||||||
import inmOut from "./inmOut.vue";
|
import inmOut from "./inmOut.vue";
|
||||||
import mlogs from "./mlogs.vue";
|
import mlogs from "./mlogs.vue";
|
||||||
import mtask from "./mtask.vue";
|
import mtask from "./mtask.vue";
|
||||||
|
import record from "./../wpm_gx/inmrecord.vue";
|
||||||
import handover from "./handover.vue";
|
import handover from "./handover.vue";
|
||||||
export default {
|
export default {
|
||||||
name: "bx",
|
name: "bx",
|
||||||
components: { inmIn, mlogs, mtask, handover,inmOut },
|
components: { inmIn, mlogs, mtask, handover,inmOut,record },
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
mgroups:[],
|
mgroups:[],
|
||||||
|
|
@ -118,6 +126,12 @@ export default {
|
||||||
let paths = this.$route.path;
|
let paths = this.$route.path;
|
||||||
let arr = paths.split("/");
|
let arr = paths.split("/");
|
||||||
this.mgroup_code = arr[2];
|
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);
|
console.log('this.mgroup_code',this.mgroup_code);
|
||||||
that.getMgroups(this.mgroup_code);
|
that.getMgroups(this.mgroup_code);
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -163,9 +163,7 @@
|
||||||
prop="material"
|
prop="material"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
>
|
>
|
||||||
<template #default="scope"
|
<template #default="scope">{{ scope.row.material_name }}</template>
|
||||||
>{{ scope.row.material_name }}
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="批次号" prop="batch">
|
<el-table-column label="批次号" prop="batch">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
@ -173,6 +171,14 @@
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="数量" prop="count">
|
<el-table-column label="数量" prop="count">
|
||||||
</el-table-column>
|
</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>
|
</scTable>
|
||||||
</el-main>
|
</el-main>
|
||||||
</el-container>
|
</el-container>
|
||||||
|
|
@ -514,6 +520,18 @@ export default {
|
||||||
this.$refs.saveDialog.open("edit").setData(row);
|
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() {
|
table_submit() {
|
||||||
let that = this;
|
let that = this;
|
||||||
that.$API.inm.mio.submit.req(that.mioId).then((res) => {
|
that.$API.inm.mio.submit.req(that.mioId).then((res) => {
|
||||||
|
|
|
||||||
|
|
@ -3,20 +3,17 @@
|
||||||
<el-header>
|
<el-header>
|
||||||
<div class="left-panel">
|
<div class="left-panel">
|
||||||
<el-button type="primary" @click="tomio('do_out')" v-auth="'mio.do'"
|
<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>
|
||||||
<el-button type="primary" @click="tomio('do_in')" v-auth="'mio.do'">入库</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
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
@click="tomio('return_in')"
|
@click="tomio('return_in')"
|
||||||
v-auth="'mio.do'"
|
v-auth="'mio.do'"
|
||||||
|
v-if="project_code=='gxerp'"
|
||||||
>退还入库</el-button>
|
>退还入库</el-button>
|
||||||
<el-select
|
<el-select
|
||||||
|
v-if="project_code=='gxerp'"
|
||||||
v-model="query.type"
|
v-model="query.type"
|
||||||
clearable
|
clearable
|
||||||
style="width: 120px; margin-left: 2px"
|
style="width: 120px; margin-left: 2px"
|
||||||
|
|
@ -236,6 +233,7 @@ export default {
|
||||||
let that = this;
|
let that = this;
|
||||||
that.params.mgroup = that.mgroupId;
|
that.params.mgroup = that.mgroupId;
|
||||||
that.apiObj = that.$API.inm.mio.list;
|
that.apiObj = that.$API.inm.mio.list;
|
||||||
|
that.project_code = this.$TOOL.data.get("BASE_INFO").base.base_code;
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
tomio(type) {
|
tomio(type) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue