fix:日志新增输入物料表单清空

This commit is contained in:
shijing 2025-03-13 11:11:36 +08:00
parent 7f036f7343
commit 414ef4bbc7
2 changed files with 12 additions and 2 deletions

View File

@ -156,6 +156,10 @@ export default {
methods: {
open() {
this.visible = true;
this.form.mtask = "";
this.wm_in = "";
this.form.count_use = "";
this.form.parent = "";
},
getMlogbIn(){
let that = this;
@ -197,6 +201,8 @@ export default {
obj.page =0;
if(that.isfix){
obj.state =30;
}else{
obj.state =10;
}
this.$API.wpm.wmaterial.list.req(obj).then((res) => {
that.materialOptions = res;

View File

@ -145,6 +145,10 @@ export default {
methods: {
open() {
this.visible = true;
this.form.mtask = "";
this.form.wm_in = "";
this.form.count_use = "";
this.form.parent = "";
},
getMtask() {
let that = this;
@ -157,12 +161,12 @@ export default {
//
getMaterial() {
let that = this;
this.$API.wpm.wmaterial.list
.req({
this.$API.wpm.wmaterial.list.req({
mtaskx: that.form.mtask,
mgroupx: that.mgroup,
material: that.materialIn,
page: 0,
state:10
})
.then((res) => {
that.materialOptions = res;