You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

211 lines
5.7 KiB

2 months ago
<template>
<view class="">
<view class="paibanBox">
<view class="paiban">
<u--input placeholder="前置图标" prefixIcon="search" shape="circle"
prefixIconStyle="font-size: 22px;color: #909399"></u--input>
</view>
<scroll-view scroll-y="true" style="height: 89vh;padding: 20rpx;" scroll-with-animation="true">
<view class="" v-for="item in this.ruKuMxList" :key="item.id" @click="openDetail(item)"
style="margin-bottom: 30rpx;">
<view class="danhaoTitle">
<view class="danhao">
<span
style="color: #fff;background-color: #f5bf45;border-radius: 10rpx;width: 80rpx;text-align: center;margin-right: 10rpx;">单号</span><span
style="font-weight: 600;font-size: 29rpx;">{{item.waterNum}}</span>
</view>
<view style="">
<span style="color: #3e72d2;">{{item.deptName}}</span>
</view>
</view>
<view style="display: flex;width: 100%; align-items: center;
justify-content: space-between;padding: 12rpx;">
<view style="width: 175rpx;height: 175rpx;border: 1px solid #EFEFEF;">
<image style="width: 100%;height: 100%;" src="../../../../static/mine/edit.png"></image>
</view>
<view style="display: flex;width: 75%;">
<view
style=" width: 75%;display: flex;flex-direction: column;justify-content: space-between; align-items: flex-start;margin-left: 10rpx;">
<span
style="font-size: 28rpx;color: #999999;margin-bottom: 10rpx;">登记人{{item.djUserName}}</span>
<span
style="align-self: flex-start;font-size: 29rpx;color: #999999;margin-bottom: 10rpx;margin-right: 20rpx;width: 900rpx;">出库时间{{item.djTime}}</span>
</view>
</view>
</view>
</view>
</scroll-view>
</view>
<u-popup :round="10" mode="bottom" :show="Detailshow" @close="closeDetail" @open="openDetailDialog">
<view class="ruKuInfo">
<view style="color: #3c6fd2;font-size: 36rpx;font-weight: 600;">
入库单
</view>
<view style="color: #99a2a9;font-size: 29rpx;font-weight: 600;">
入库单号{{ruKuMxDetail.waterNum}}
</view>
<view class="process">
<span
style="text-align: center; margin-right: 25rpx;background-color: #EFEFEF;width: 170rpx;border-radius: 10px;">采购</span>
<u-icon style="margin-right: 25rpx;" color="#5cc0ae" name="play-right-fill"></u-icon>
<span
style="text-align: center;background-color: #EFEFEF;width: 170rpx;border-radius: 10px;">入库完成</span>
</view>
</view>
<view style="display: flex;flex-direction: column; justify-content: center;align-items: center;">
<view class="textInfo">
入库仓库<span style="color: #85898c;">{{ruKuMxDetail.houseName}}</span>
</view>
<view class="textInfo">
仓库人员<span style="color: #85898c;">总仓</span>
</view>
<view class="textInfo">
创建时间<span style="color: #85898c;">{{ruKuMxDetail.djTime}}</span>
</view>
</view>
<view
style="display: flex;width: 100%; margin-top: 20rpx;padding-bottom: 15rpx; align-items: center; justify-content: space-between;padding: 12rpx; background-color: #fff;">
<view style="width: 175rpx;height: 175rpx;border: 1px solid #fff;">
<image style="width: 100%;height: 100%;" src="../../../../static/mine/edit.png"></image>
</view>
<view style="display: flex;width: 75%;">
<view
style=" width: 75%;display: flex;flex-direction: column;justify-content: space-between; align-items: flex-start;margin-left: 10rpx;">
<span
style="font-weight: 600;font-size: 28rpx;width: 100%;margin-bottom: 10rpx;">{{ruKuMxDetail.materialName}}</span>
<span
style="font-size: 28rpx;color: #999999;margin-bottom: 10rpx;">{{ruKuMxDetail.houseName}}</span>
</view>
<view
style=" width: 75%;display: flex;flex-direction: column;justify-content: space-between; align-items: flex-end;margin-right: 30rpx;">
<span
style="font-weight: 600;font-size: 28rpx;margin-bottom: 10rpx;">{{ruKuMxDetail.money}}</span>
<span
style="font-size: 28rpx;color: #999999;margin-bottom: 10rpx;">×{{ruKuMxDetail.realNum}}{{ruKuMxDetail.materialUnit}}</span>
</view>
</view>
</view>
</u-popup>
</view>
</template>
<script>
// 查询入库单列表
import {
listInList,
getInList
} from '@/api/indexpage/yjWz/wzRuKu.js';
export default {
data() {
return {
ruKuMxList: [],
Detailshow: false,
ruKuMxDetail: {},
};
},
methods: {
onLoad(options) {
//获取场库入库单号
let inOutDbId = options.inOutDbId;
this.getListInList(inOutDbId);
},
getListInList(inOutDbId) {
listInList({
inOutDbId: inOutDbId
}).then(res => {
this.ruKuMxList = res.rows;
})
},
getInListById(id) {
getInList(id).then(res => {
this.ruKuMxDetail = res.data;
console.log(res, "getInListgetInList");
})
},
closeDetail() {
this.Detailshow = false;
},
openDetailDialog() {
},
openDetail(item) {
this.Detailshow = true;
this.getInListById(item.id);
},
}
};
</script>
<style scoped lang="scss">
.danhao {
display: flex;
}
.danhaoTitle {
display: flex;
justify-content: space-between;
}
.textInfo {
padding: 20rpx;
border-bottom: #dceaf1 1px solid;
width: 90vw;
}
.ruKuInfo {
background-color: #dceaf1;
border-top-left-radius: 20rpx;
border-top-right-radius: 20rpx;
height: 200rpx;
width: 100vw;
display: flex;
flex-direction: column;
justify-content: space-around;
align-items: center;
.process {
display: flex;
margin: 20rpx 0;
}
}
.paiban {
padding: 20rpx;
}
.paibanBox {
width: 100vw;
// height: 900rpx;
background-color: #fff;
box-shadow: 0rpx 4rpx 12rpx 0rpx rgba(0, 37, 105, 0.1);
}
</style>