From e24b10019f0c5026adfe3bed574fc25369131b9f Mon Sep 17 00:00:00 2001 From: shijing Date: Mon, 29 Jul 2024 17:01:54 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E8=BE=93=E5=85=A5=E8=BE=93=E5=87=BA?= =?UTF-8?q?=E7=89=A9=E6=96=99=E6=98=BE=E7=A4=BA=E6=9D=A1=E4=BB=B6=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/mtm/route_form.vue | 9 ++++++++- src/views/mtm/routepack_form.vue | 10 ++++++---- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/src/views/mtm/route_form.vue b/src/views/mtm/route_form.vue index 1ad22cc9..da6a75b9 100644 --- a/src/views/mtm/route_form.vue +++ b/src/views/mtm/route_form.vue @@ -72,7 +72,9 @@ placeholder="物料" clearable filterable + :value-on-clear="null" style="width: 100%" + @clear="clearHandle('material_in')" > { @@ -223,7 +230,7 @@ export default { getMaterialOut() { let that = this; this.$API.mtm.material.list - .req({ page: 0, type__in: "10,20", is_hidden: false }) + .req({ page: 0, type__in: "10,20" }) .then((res) => { this.materialsOut = res; }); diff --git a/src/views/mtm/routepack_form.vue b/src/views/mtm/routepack_form.vue index bee00e4e..ee5ba3ad 100644 --- a/src/views/mtm/routepack_form.vue +++ b/src/views/mtm/routepack_form.vue @@ -152,7 +152,7 @@ style="margin-right: 4px" >{{ item.name }} - 退出 @@ -197,7 +197,7 @@ export default { materials: [], apiObj: null, query: { - material: "", + routepack: "", }, rules: { name: [{ required: true, message: "请输入" }], @@ -249,9 +249,11 @@ export default { .req(that.form.id, that.form) .then((res) => { that.routepack = res.id; + that.query.routepack = res.id; + console.log("that.query", that.query); + that.apiObj = that.$API.mtm.route.list; that.active = 1; - this.query.material = this.form.material; - this.apiObj = this.$API.mtm.route.list; + // that.$refs.tables.refresh(); }); } else { that.$API.mtm.routepack.create.req(form).then((res) => {