fix:报废时物料显示

This commit is contained in:
shijing 2026-07-10 16:56:53 +08:00
parent 44cc291540
commit b4b992a4e4
3 changed files with 8 additions and 4 deletions

View File

@ -556,6 +556,7 @@ export default {
let that = this; let that = this;
that.materialOptions = []; that.materialOptions = [];
var req = { var req = {
tag:that.tag,
mgroupx: that.mgroupId, mgroupx: that.mgroupId,
page: 0 page: 0
}; };

View File

@ -4,7 +4,7 @@
<div class="left-panel"> <div class="left-panel">
<el-button type="primary" @click="tomio('do_out')" v-auth="'mio.do'" v-if="route_code=='qingxi'">领料</el-button> <el-button type="primary" @click="tomio('do_out')" v-auth="'mio.do'" v-if="route_code=='qingxi'">领料</el-button>
<el-button type="primary" v-auth="'wmaterial.create'" @click="table_create()">来料</el-button> <el-button type="primary" v-auth="'wmaterial.create'" @click="table_create()">来料</el-button>
<el-button type="primary" v-auth="'handover.create'" @click="table_add(40)">报废</el-button> <el-button type="primary" v-auth="'handover.create'" @click="table_add(40,'todo')">报废</el-button>
<el-button type="primary" v-auth="'handover.create'" @click="batchConcat()">合批</el-button> <el-button type="primary" v-auth="'handover.create'" @click="batchConcat()">合批</el-button>
</div> </div>
<div class="right-panel"> <div class="right-panel">
@ -512,9 +512,10 @@ export default {
} }
}, },
// //
table_add(type) { table_add(type,tag) {
this.dialog.scrap = true; this.dialog.scrap = true;
this.type = type; this.type = type;
this.tag = tag;
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.scrapDialog.open("add"); this.$refs.scrapDialog.open("add");
}); });

View File

@ -3,7 +3,7 @@
<el-header> <el-header>
<div class="left-panel"> <div class="left-panel">
<el-button type="primary" @click="tomio('do_out')" v-auth="'mio.do'" v-if="route_code=='qingxi'">领料</el-button> <el-button type="primary" @click="tomio('do_out')" v-auth="'mio.do'" v-if="route_code=='qingxi'">领料</el-button>
<el-button type="primary" v-auth="'handover.create'" @click="table_add(40)">报废</el-button> <el-button type="primary" v-auth="'handover.create'" @click="table_add(40,'done')">报废</el-button>
<el-button type="primary" v-auth="'handover.create'" @click="batchConcat()">合批</el-button> <el-button type="primary" v-auth="'handover.create'" @click="batchConcat()">合批</el-button>
<el-button type="primary" @click="tomio('do_in')" v-auth="'mio.doin'">入库</el-button> <el-button type="primary" @click="tomio('do_in')" v-auth="'mio.doin'">入库</el-button>
</div> </div>
@ -255,6 +255,7 @@
v-if="dialog.scrap" v-if="dialog.scrap"
ref="scrapDialog" ref="scrapDialog"
:type="type" :type="type"
:tag="tag"
:wmItem="wmItem" :wmItem="wmItem"
:mgroupName="mgroup_name" :mgroupName="mgroup_name"
:mgroupId="mgroupId" :mgroupId="mgroupId"
@ -501,9 +502,10 @@ export default {
} }
}, },
// //
table_add(type) { table_add(type,tag) {
this.dialog.scrap = true; this.dialog.scrap = true;
this.type = type; this.type = type;
this.tag = tag;
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.scrapDialog.open("add"); this.$refs.scrapDialog.open("add");
}); });