Commit 4ba4d39a authored by 黄卓's avatar 黄卓

入仓储位只显示当前城市的仓库

parent 91b21e55
...@@ -35,10 +35,11 @@ export function getWarehouseArea(id) { ...@@ -35,10 +35,11 @@ export function getWarehouseArea(id) {
} }
// 获得仓库查询库域 // 获得仓库查询库域
export function getByWarehouseId() { export function getByWarehouseId(params) {
return request({ return request({
url: '/ecw/warehouse-area/getByWarehouseId', url: '/ecw/warehouse-area/getByWarehouseId',
method: 'get' method: 'get',
params
}) })
} }
......
...@@ -63,7 +63,11 @@ export default { ...@@ -63,7 +63,11 @@ export default {
default: false default: false
}, },
value: Array, value: Array,
orderId: Number orderId: Number,
cityId: {
type: Number,
default: undefined
}
}, },
data() { data() {
...@@ -148,7 +152,7 @@ export default { ...@@ -148,7 +152,7 @@ export default {
this.opened = true this.opened = true
} }
getByWarehouseId().then(r => { getByWarehouseId({cityId: this.cityId}).then(r => {
const area = r.data const area = r.data
area.forEach(e => { area.forEach(e => {
// 仓库 // 仓库
......
...@@ -105,7 +105,7 @@ ...@@ -105,7 +105,7 @@
</div> </div>
</el-form> </el-form>
<warehouse-area-dialog ref="area" :visible.sync="areaVisible" v-model="form.orderLocationCreateReqVOList" :order-id="orderId"></warehouse-area-dialog> <warehouse-area-dialog ref="area" :visible.sync="areaVisible" v-model="form.orderLocationCreateReqVOList" :order-id="orderId" :city-id="order.departureVO.departureId"></warehouse-area-dialog>
<edit-dialog :visible.sync="warehousingVisible" :warehousing="warehousing" :edit="order.status === 5"></edit-dialog> <edit-dialog :visible.sync="warehousingVisible" :warehousing="warehousing" :edit="order.status === 5"></edit-dialog>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment