|
|
|
@ -87,9 +87,10 @@
|
|
|
|
|
<el-select |
|
|
|
|
v-model="form.warehouseId" |
|
|
|
|
filterable |
|
|
|
|
allow-create |
|
|
|
|
default-first-option |
|
|
|
|
:reserve-keyword="false" |
|
|
|
|
remote |
|
|
|
|
reserve-keyword |
|
|
|
|
remote-show-suffix |
|
|
|
|
:remote-method="remoteWareHouse" |
|
|
|
|
@change="getMen($event,2)" |
|
|
|
|
placeholder="请输入所在仓库" |
|
|
|
|
> |
|
|
|
@ -292,8 +293,9 @@ import {mapGetters} from "vuex";
|
|
|
|
|
import { getDictionaryBiz } from '@/api/system/dict'; |
|
|
|
|
import { getListUser } from '@/api/distribution/distributionStockup'; |
|
|
|
|
import { getListClient } from '@/api/basicdata/basicClient'; |
|
|
|
|
import { getDept,getList } from '@/api/system/dept'; |
|
|
|
|
import { getDept } from '@/api/system/dept'; |
|
|
|
|
import { getListMaterial } from '@/api/basic/basicMaterial'; |
|
|
|
|
import { getListCopy } from '@/api/basicdata/basicdataWarehouse'; |
|
|
|
|
import dayjs from 'dayjs'; |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -589,8 +591,31 @@ export default {
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
//客户查询 |
|
|
|
|
//仓库查询 |
|
|
|
|
async remoteWareHouse(query){ |
|
|
|
|
if (query) { |
|
|
|
|
// this.loading = true; |
|
|
|
|
let cl = await getListCopy(this.page.currentPage, this.page.pageSize,{name:query}); |
|
|
|
|
// console.log(">>>>",cl.data.data.records); |
|
|
|
|
this.store = []; |
|
|
|
|
cl.data.data.records.forEach(i =>{ |
|
|
|
|
let st= { |
|
|
|
|
label: i.name, |
|
|
|
|
value: i.id |
|
|
|
|
} |
|
|
|
|
this.store.push(st); |
|
|
|
|
}); |
|
|
|
|
// setTimeout(() => { |
|
|
|
|
// this.loading = false |
|
|
|
|
// this.loading = this.list.filter((item) => { |
|
|
|
|
// return item.label.toLowerCase().includes(query.toLowerCase()) |
|
|
|
|
// }) |
|
|
|
|
// }, 200) |
|
|
|
|
} else { |
|
|
|
|
this.store = [] |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
//客户查询 |
|
|
|
|
async remoteMethod(query){ |
|
|
|
|
if (query) { |
|
|
|
|
// this.loading = true; |
|
|
|
@ -843,6 +868,12 @@ export default {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
},*/ |
|
|
|
|
/** |
|
|
|
|
* 查询仓库信息 |
|
|
|
|
* @param page |
|
|
|
|
* @param params |
|
|
|
|
* @returns {Promise<void>} |
|
|
|
|
*/ |
|
|
|
|
async getWareHoust(page, params = {}){ |
|
|
|
|
let a = await getListUser(); |
|
|
|
|
let b = await getDept(a.data.data.deptId); |
|
|
|
@ -855,16 +886,16 @@ export default {
|
|
|
|
|
value: b.data.data.deptName |
|
|
|
|
} |
|
|
|
|
this.store.push(st); |
|
|
|
|
this.form.warehouse = b.data.data.id; |
|
|
|
|
this.form.warehouseId = b.data.data.id; |
|
|
|
|
}else{ |
|
|
|
|
//查询全部仓库 |
|
|
|
|
|
|
|
|
|
let li = await getList(page.currentPage, page.pageSize,{deptCategory:4}); |
|
|
|
|
// console.log("li>>>>",li.data.data); |
|
|
|
|
let li = await getListCopy(page.currentPage, page.pageSize,{}); |
|
|
|
|
console.log("li>>>>",li.data.data); |
|
|
|
|
this.store = []; |
|
|
|
|
li.data.data.forEach(i =>{ |
|
|
|
|
li.data.data.records.forEach(i =>{ |
|
|
|
|
let st= { |
|
|
|
|
label: i.deptName, |
|
|
|
|
label: i.name, |
|
|
|
|
value: i.id |
|
|
|
|
} |
|
|
|
|
this.store.push(st); |
|
|
|
|