whj 1 年之前
父節點
當前提交
de314b4763
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      src/views/sb/modelbom/modules/Detail.vue

+ 4 - 0
src/views/sb/modelbom/modules/Detail.vue

@@ -260,6 +260,8 @@ export default {
       modal.base(record)
     },
     handleCancel () {
+      this.spareIds = []
+      this.sparePartInfoList = []
       this.visible = false
       this.confirmLoading = false
       this.$emit('ok')
@@ -311,6 +313,8 @@ export default {
       addSyncBoms(params)
         .then((response) => {
           this.$message.info('同步成功')
+          this.spareIds = []
+          this.sparePartInfoList = []
           this.handleOk()
         }).catch(() => {
           this.confirmLoading = false