|
|
|
@ -445,11 +445,9 @@ import {
|
|
|
|
|
import option from '@/option/warehouse/warehouseWarehousingDetail'; |
|
|
|
|
import { mapGetters, mapMutations } from 'vuex'; |
|
|
|
|
import { getDictionaryBiz } from '@/api/system/dict'; |
|
|
|
|
import { getListUser } from '@/api/distribution/distributionStockup'; |
|
|
|
|
import { getListClient } from '@/api/basicdata/basicClient'; |
|
|
|
|
import { getDept } from '@/api/system/dept'; |
|
|
|
|
import { getListMaterial } from '@/api/basic/basicMaterial'; |
|
|
|
|
import { getListCopy } from '@/api/basicdata/basicdataWarehouse'; |
|
|
|
|
import { getDetailWarehouse, getListCopy } from '@/api/basicdata/basicdataWarehouse'; |
|
|
|
|
import { getListIdsName } from '@/api/basicdata/basicdataStoreBrand'; |
|
|
|
|
import { getListName } from '@/api/basicdata/basicdataStoreBusiness'; |
|
|
|
|
|
|
|
|
@ -1205,19 +1203,12 @@ export default {
|
|
|
|
|
* @returns {Promise<void>} |
|
|
|
|
*/ |
|
|
|
|
async getWareHoust(page, params = {}) { |
|
|
|
|
let a = await getListUser(); |
|
|
|
|
let b = await getDept(a.data.data.deptId); |
|
|
|
|
// console.log("aaa",a); |
|
|
|
|
// console.log("bbb",b); |
|
|
|
|
//查询全部仓库 |
|
|
|
|
let sl = {}; |
|
|
|
|
if (b.data.data.deptCategory == '4') { |
|
|
|
|
sl.department = b.data.data.id; |
|
|
|
|
} |
|
|
|
|
let li = await getListCopy(page.currentPage, page.pageSize, sl); |
|
|
|
|
// console.log("li>>>>",li.data.data); |
|
|
|
|
|
|
|
|
|
let sl ={}; |
|
|
|
|
let li = await getDetailWarehouse( sl); |
|
|
|
|
console.log("li>>>>",li.data.data); |
|
|
|
|
this.store = []; |
|
|
|
|
li.data.data.records.forEach(i => { |
|
|
|
|
li.data.data.forEach(i => { |
|
|
|
|
let st = { |
|
|
|
|
label: i.name, |
|
|
|
|
value: i.id, |
|
|
|
|