Commit fa90252b authored by jingnan's avatar jingnan 👀

物料关键字组件修改

parent cd0efbeb
......@@ -155,8 +155,12 @@ export default {
// 带出物料相关默认值
const SELECT_MATERIAL = this.material.find((item) => item.resCode === v)
if (SELECT_MATERIAL) {
if (this.$route.query && this.$route.query.title === '例外放行') {
this.$set(this.form, 'material', SELECT_MATERIAL)
} else {
this.$set(this.form, 'partName', SELECT_MATERIAL.resName)
}
}
},
change(val) {
this.changeMaterial(val)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment