Commit fa90252b authored by jingnan's avatar jingnan 👀

物料关键字组件修改

parent cd0efbeb
...@@ -155,7 +155,11 @@ export default { ...@@ -155,7 +155,11 @@ export default {
// 带出物料相关默认值 // 带出物料相关默认值
const SELECT_MATERIAL = this.material.find((item) => item.resCode === v) const SELECT_MATERIAL = this.material.find((item) => item.resCode === v)
if (SELECT_MATERIAL) { if (SELECT_MATERIAL) {
this.$set(this.form, 'partName', SELECT_MATERIAL.resName) 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) { change(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