whj 1 năm trước cách đây
mục cha
commit
4ef0c825eb

+ 2 - 2
src/views/sb/info/modules/SbBomSyncSelectModal.vue

@@ -110,7 +110,7 @@
 
 <script>
 import { STable, Ellipsis } from '@/components'
-import { getSbInfoSyncPage, SyncSbBom, getSbInfoTree } from '@/api/sb/info'
+import { getSbInfoPage, SyncSbBom, getSbInfoTree } from '@/api/sb/info'
 import { querySbPosition } from '@/api/sb/position'
 import { fetchSbTypeTree } from '@/api/sb/type'
 
@@ -232,7 +232,7 @@ export default {
             sortName: 'no'
           }
         }
-        return getSbInfoSyncPage(Object.assign(parameter, this.queryParam))
+        return getSbInfoPage(Object.assign(parameter, this.queryParam))
           .then(res => {
             return res.data
           })

+ 1 - 1
src/views/sb/modelbom/modules/Detail.vue

@@ -215,7 +215,7 @@ export default {
     handleSpareStoreSelected (record, keys, rows) {
       const addData = []
       for (let i = 0; i < rows.length; i++) {
-        addData.push({ spareId: 111111, sbId: this.model.id, modelId: this.model.id, no: rows[i].no, spareName: rows[i].spareName, num: 1, ggxh: rows[i].ggxh })
+        addData.push({ spareId: keys[i], sbId: this.model.id, modelId: this.model.id, no: rows[i].no, spareName: rows[i].spareName, num: 1, ggxh: rows[i].ggxh })
       }
       addSbModelBomBatch(addData)
         .then((response) => {