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) => {