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

View File

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