diff --git a/src/views/mtm/routepack_form.vue b/src/views/mtm/routepack_form.vue
index 7e785bf0..6fb13f5a 100644
--- a/src/views/mtm/routepack_form.vue
+++ b/src/views/mtm/routepack_form.vue
@@ -23,6 +23,7 @@
>
+
{{ productName }}
@@ -224,7 +225,8 @@ export default {
name: [{ required: true, message: "请输入" }],
},
routepack: "",
- project_code:''
+ project_code:'',
+ productName:'',
};
},
mounted() {
@@ -261,6 +263,9 @@ export default {
that.materials = res;
});
},
+ handleMaterialChange(val){
+ console.log("val",val);
+ },
handleStep(val) {
//点击步骤条
if (this.stepSuc.includes(val) === true) {
@@ -277,14 +282,12 @@ export default {
let form = {};
form.name = that.form.name;
form.material = that.form.material;
- // console.log("that.form",that.form)
if (that.form.id) {
that.$API.mtm.routepack.update
.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;
// that.$refs.tables.refresh();
@@ -294,9 +297,13 @@ export default {
this.active = 1;
that.form.id = res.id;
that.routepack = res.id;
- // console.log("that.form",that.form)
});
}
+ that.materials.forEach((item) => {
+ if (item.id == that.form.material) {
+ that.productName = item.full_name;
+ }
+ })
},
table_add() {
this.dialog.save = true;
@@ -377,3 +384,12 @@ export default {
},
};
+
\ No newline at end of file