whj 1 年之前
父节点
当前提交
2a8d9214f1
共有 1 个文件被更改,包括 5 次插入4 次删除
  1. 5 4
      src/views/purchase/purchase-order-page/modules/BaseForm.vue

+ 5 - 4
src/views/purchase/purchase-order-page/modules/BaseForm.vue

@@ -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)
     }