This commit is contained in:
caoqianming 2025-11-20 11:09:49 +08:00
commit 274b8125a0
10 changed files with 61 additions and 11 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 56 MiB

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 56 MiB

After

Width:  |  Height:  |  Size: 104 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 56 MiB

After

Width:  |  Height:  |  Size: 31 KiB

View File

@ -74,7 +74,7 @@
</el-table-column> </el-table-column>
<el-table-column width="90"> <el-table-column width="90">
<template #default="scope"> <template #default="scope">
<!-- <el-button @click="printMaterial(scope.row)" type="text">物料标签</el-button> --> <el-button @click="printMaterial(scope.row)" type="text">标签</el-button>
<el-link :underline="false" type="primary" <el-link :underline="false" type="primary"
@click="handleWatch(scope.row)" @click="handleWatch(scope.row)"
>流程图</el-link> >流程图</el-link>

View File

@ -161,7 +161,7 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="备注"> <el-form-item label="备注">
<el-input v-model="form.note" placeholder="编号" /> <el-input v-model="form.note" placeholder="备注" />
</el-form-item> </el-form-item>
</el-form> </el-form>
<template #footer> <template #footer>

View File

@ -362,11 +362,12 @@ export default {
}, },
inputChange(e){ inputChange(e){
console.log('e',e); console.log('e',e);
let that = this;
if(e!==''&&e!==null&&e!==undefined){ if(e!==''&&e!==null&&e!==undefined){
let codeId = e.split('#')[1]; let codeId = e.split('#')[1];
this.$API.cm.labelmat.item.req(codeId).then((res) => { this.$API.cm.labelmat.item.req(codeId).then((res) => {
if(res){ if(res){
arr = that.batchOptions.filter((item) => { let arr = that.batchOptions.filter((item) => {
return item.batch == res.batch&&item.state==res.state; return item.batch == res.batch&&item.state==res.state;
}) })
if (arr.length > 0) { if (arr.length > 0) {
@ -377,6 +378,9 @@ export default {
that.form.count = Number(arr[0].count_canmio); that.form.count = Number(arr[0].count_canmio);
that.form.warehouse = arr[0].warehouse; that.form.warehouse = arr[0].warehouse;
that.inputBatchDisable = true; that.inputBatchDisable = true;
setTimeout(() => {
options.value = res.batch;
}, 200)
}else{ }else{
that.selectBatch = ''; that.selectBatch = '';
that.$message.error("批次号不存在"); that.$message.error("批次号不存在");

View File

@ -257,6 +257,10 @@ export default {
type: String, type: String,
default: "done", default: "done",
}, },
wmItem: {
type: Object,
default: () => ({}),
},
}, },
components: { components: {
scanDialog scanDialog
@ -384,6 +388,11 @@ export default {
that.materialObj = materialObj; that.materialObj = materialObj;
that.form.handle_date =that.form.send_date =this.$TOOL.dateFormat2(new Date()); that.form.handle_date =that.form.send_date =this.$TOOL.dateFormat2(new Date());
that.form.send_mgroup = that.mgroupId; that.form.send_mgroup = that.mgroupId;
if(that.wmItem.wm){
that.form.new_batch = that.wmItem.batch;
that.form.material_changed = that.wmItem.material;
that.form.material_changed_fname = that.wmItem.material_name;
}
if(that.type==20||that.type==50){ if(that.type==20||that.type==50){
that.form.recive_mgroup = that.mgroupId; that.form.recive_mgroup = that.mgroupId;
} }

View File

@ -149,9 +149,9 @@
type="primary" type="primary"
style="margin-left: 10px;" style="margin-left: 10px;"
>检验</el-link> >检验</el-link>
<!-- <el-link :underline="false" type="primary" <el-link :underline="false" type="primary"
@click="handleWatch(scope.row)" @click="handleAddWpr(scope.row)"
>流程图</el-link> --> >添加物料</el-link>
</template> </template>
</el-table-column> </el-table-column>
</scTable> </scTable>
@ -244,6 +244,7 @@
ref="scrapDialog" ref="scrapDialog"
:type="type" :type="type"
:tag="tag" :tag="tag"
:wmItem="wmItem"
:mgroupName="mgroup_name" :mgroupName="mgroup_name"
:mgroupId="mgroupId" :mgroupId="mgroupId"
@success="handleScrapSuccess" @success="handleScrapSuccess"
@ -377,6 +378,7 @@ export default {
search: "", search: "",
material: "", material: "",
}, },
wmItem:{},
wprParams:{ wprParams:{
page:0, page:0,
wm: "" wm: ""
@ -693,7 +695,22 @@ export default {
}) })
}, },
handleWprSuccess(row){} handleAddWpr(row){
this.dialog.scrap = true;
this.type = 50;
let obj = {};
obj.wm = row.id;
obj.batch = row.batch;
obj.mgroup = row.mgroup;
obj.material = row.material;
obj.mgroup_name = row.mgroup_name;
obj.material_name = row.material_name;
this.wmItem = obj;
this.$nextTick(() => {
this.$refs.scrapDialog.open("add");
});
},
handleWprSuccess(row){},
}, },
}; };
</script> </script>

View File

@ -234,6 +234,7 @@
> >
<template #default="scope"> <template #default="scope">
<el-link :underline="false" @click="printMaterial(scope.row,'wpr')" type="primary">物料标签</el-link> <el-link :underline="false" @click="printMaterial(scope.row,'wpr')" type="primary">物料标签</el-link>
<el-link :underline="false" type="primary" @click="handleAddWpr(scope.row)">添加物料</el-link>
</template> </template>
</el-table-column> </el-table-column>
</scTable> </scTable>
@ -258,6 +259,7 @@
v-if="dialog.scrap" v-if="dialog.scrap"
ref="scrapDialog" ref="scrapDialog"
:type="type" :type="type"
:wmItem="wmItem"
:mgroupName="mgroup_name" :mgroupName="mgroup_name"
:mgroupId="mgroupId" :mgroupId="mgroupId"
@success="handleScrapSuccess" @success="handleScrapSuccess"
@ -397,6 +399,7 @@ export default {
page:0, page:0,
wm: "" wm: ""
}, },
wmItem:{},
number_out_last:'', number_out_last:'',
route_code:"", route_code:"",
wmMaterial:'', wmMaterial:'',
@ -735,6 +738,21 @@ export default {
}) })
}, },
handleAddWpr(row){
this.dialog.scrap = true;
this.type = 50;
let obj = {};
obj.wm = row.id;
obj.batch = row.batch;
obj.mgroup = row.mgroup;
obj.material = row.material;
obj.mgroup_name = row.mgroup_name;
obj.material_name = row.material_name;
this.wmItem = obj;
this.$nextTick(() => {
this.$refs.scrapDialog.open("add");
});
},
}, },
}; };
</script> </script>

View File

@ -3,17 +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'&&project_code=='gxerp'" v-if="mgroupName!=='size'&&mgroupName!=='facade'&&project_code=='gx'"
>领料</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 <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'" v-if="project_code=='gx'"
>退还入库</el-button> >退还入库</el-button>
<el-select <el-select
v-if="project_code=='gxerp'" v-if="project_code=='gx'"
v-model="query.type" v-model="query.type"
clearable clearable
style="width: 120px; margin-left: 2px" style="width: 120px; margin-left: 2px"
@ -225,6 +225,7 @@ export default {
process: "", process: "",
cate: "good", cate: "good",
mioId: "", mioId: "",
project_code: "",
visibleDrawer: false, visibleDrawer: false,
inmRecordDialog:false, inmRecordDialog:false,
}; };
@ -234,6 +235,7 @@ export default {
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; that.project_code = this.$TOOL.data.get("BASE_INFO").base.base_code;
console.log("project_code",that.project_code);
}, },
methods: { methods: {
tomio(type) { tomio(type) {