|
|
|
|
@ -1,7 +1,10 @@
|
|
|
|
|
<template>
|
|
|
|
|
<view>
|
|
|
|
|
<u-navbar bgColor="#ffffff" :placeholder="true" titleStyle="font-weight:600" title="物资盘点" :autoBack="true">
|
|
|
|
|
|
|
|
|
|
<view slot="right" style="display: flex;align-items: center;flex-direction: column;" @click="popCheBian()">
|
|
|
|
|
<image style="width: 48rpx; height: 48rpx;" src="../../../../static/images/wuzhi/qiehuancangku.png"></image>
|
|
|
|
|
<span style="font-size: 18rpx; font-weight: 600;margin-right: 10rpx;color: #1296db;">切换仓库</span>
|
|
|
|
|
</view>
|
|
|
|
|
</u-navbar>
|
|
|
|
|
<u-sticky bgColor="#fff" style="padding: 20rpx;">
|
|
|
|
|
<u-search placeholder="请输入需要搜索的物资名称" @focus="openSelect" :clearabled="false" v-model="keyword" :showAction="false"></u-search>
|
|
|
|
|
@ -208,7 +211,18 @@
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</u-popup>
|
|
|
|
|
|
|
|
|
|
<!-- 侧边栏 -->
|
|
|
|
|
<u-popup :show="wuzhiCheBian" mode="left" :customStyle="{ width: '70vw' }" :safeAreaInsetBottom="true" @close="offPop()">
|
|
|
|
|
<view style="height: 50px;margin-bottom: 10rpx;"></view>
|
|
|
|
|
<u-search placeholder="请输入仓库名称搜索" v-model="keyword" :clearabled="false" :showAction="false"></u-search>
|
|
|
|
|
<scroll-view scroll-y="true" style="height: 95vh;" scroll-with-animation="true">
|
|
|
|
|
<view class="status_bar"></view>
|
|
|
|
|
<uni-list>
|
|
|
|
|
<uni-list-item v-for="(item, index) in titlelist" :title="`${index + 1}.${item.name}`" :clickable="true" @click="xuanZheChangKu(item)"></uni-list-item>
|
|
|
|
|
</uni-list>
|
|
|
|
|
<view style="height: 50px;"></view>
|
|
|
|
|
</scroll-view>
|
|
|
|
|
</u-popup>
|
|
|
|
|
<!-- <u-popup mode="bottom" :round="10" :show="SelectPanDianNumShow" @close="SelectPanDianclose"
|
|
|
|
|
@open="SelectPanDianopen">
|
|
|
|
|
<view style="display: flex; width: 100vw;height: 900rpx; margin-top: 15rpx;padding-bottom: 15rpx; align-items: center;
|
|
|
|
|
@ -297,9 +311,11 @@ export default {
|
|
|
|
|
materialName: '',
|
|
|
|
|
categoryId: ''
|
|
|
|
|
},
|
|
|
|
|
wuzhiCheBian: false,
|
|
|
|
|
changkuId: '',
|
|
|
|
|
kucunlist: [],
|
|
|
|
|
tabsList: [],
|
|
|
|
|
titlelist: [],
|
|
|
|
|
keyword: '',
|
|
|
|
|
SelectPanDianNumShow: false,
|
|
|
|
|
operationWZ: {},
|
|
|
|
|
@ -336,6 +352,40 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
//弹出侧边栏
|
|
|
|
|
popCheBian() {
|
|
|
|
|
//弹出侧边栏
|
|
|
|
|
this.wuzhiCheBian = true;
|
|
|
|
|
//发场库请求
|
|
|
|
|
listWarehouse().then(res => {
|
|
|
|
|
this.titlelist = res.rows;
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
xuanZheChangKu(item) {
|
|
|
|
|
console.log("item,",item)
|
|
|
|
|
//给入库接口入参
|
|
|
|
|
// this.addWzParams.deptId = item.deptId;
|
|
|
|
|
// this.addWzParams.houseId = item.id;
|
|
|
|
|
// 部门名称
|
|
|
|
|
this.deptName = item.deptName;
|
|
|
|
|
// 获取仓库名称
|
|
|
|
|
this.name = item.name;
|
|
|
|
|
this.houseId=item.id;
|
|
|
|
|
//获取仓库名称和ID
|
|
|
|
|
this.changku = item.name;
|
|
|
|
|
this.changkuId = item.id;
|
|
|
|
|
this.getKuCun();
|
|
|
|
|
//弹出侧边栏
|
|
|
|
|
this.wuzhiCheBian = false;
|
|
|
|
|
//清空搜索
|
|
|
|
|
this.keyword = '';
|
|
|
|
|
},
|
|
|
|
|
offPop() {
|
|
|
|
|
//弹出侧边栏
|
|
|
|
|
this.wuzhiCheBian = false;
|
|
|
|
|
//清空搜索
|
|
|
|
|
this.keyword = '';
|
|
|
|
|
},
|
|
|
|
|
SelectPanDianNumCancel() {
|
|
|
|
|
this.pandianShow = false;
|
|
|
|
|
},
|
|
|
|
|
|