|
@@ -189,10 +189,10 @@
|
|
|
<a-icon type="plus"/>
|
|
|
物料库添加
|
|
|
</a-button>
|
|
|
- <!-- <a-button size="small" :disabled="!(oldOrNew&&sbId)" style="margin-left:20px;" type="primary" @click="handleBomSpareStoreSelect">
|
|
|
+ <a-button size="small" :disabled="!(oldOrNew&&sbId)" style="margin-left:20px;" type="primary" @click="handleBomSpareStoreSelect">
|
|
|
<a-icon type="plus"/>
|
|
|
BOM添加
|
|
|
- </a-button> -->
|
|
|
+ </a-button>
|
|
|
</div>
|
|
|
<a-table
|
|
|
bordered
|
|
@@ -414,10 +414,10 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
handleSpareStoreSelect () {
|
|
|
- this.$refs.spareStoreSelectModal.base({ tokenType: this.params.oldOrNew })
|
|
|
+ this.$refs.spareStoreSelectModal.base({ tokenType: this.oldOrNew })
|
|
|
},
|
|
|
handleBomSpareStoreSelect () {
|
|
|
- this.$refs.bomSpareStoreSelectModal.base({ tokenType: this.params.oldOrNew, sbId: this.sbId })
|
|
|
+ this.$refs.bomSpareStoreSelectModal.base({ tokenType: this.oldOrNew, sbId: this.sbId })
|
|
|
},
|
|
|
handleSpareStoreSelected (record, keys, rows) {
|
|
|
console.log(rows)
|
|
@@ -449,6 +449,7 @@ export default {
|
|
|
this.params = {}
|
|
|
this.form.resetFields()
|
|
|
this.sbId = null
|
|
|
+ this.oldOrNew = null
|
|
|
this.$emit('ok', values)
|
|
|
}
|
|
|
|