123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300 |
- <template>
- <view class="personalStat">
- <view class="header-banner">
- <view @click="headerNavType = 1" :class="headerNavType == 1 ? 'active' : ''">
- 领料
- </view>
- <view @click="headerNavType = 2" :class="headerNavType == 2 ? 'active' : ''">
- 退料
- </view>
- <view @click="headerNavType = 3" :class="headerNavType == 3 ? 'active' : ''">
- 转入
- </view>
- <view @click="headerNavType = 4" :class="headerNavType == 4 ? 'active' : ''">
- 转出
- </view>
- </view>
- <commons-select-time :date="req.date" @change="changeTime"></commons-select-time>
- <view class="" v-if="headerNavType === 1">
-
-
- <view style="margin: 0 30rpx 30rpx;font-size: 12rpx;background:#fff" v-for="(i,index) in issueData" :key="index">
- <view class="form-text">
- <view class="">
- 物料名称:{{i.materialName}}
- </view>
- <view class="">
- 物料编码:{{i.materialCode}}
- </view>
- </view>
- <uni-table border stripe emptyText="暂无更多数据" >
-
- <uni-tr>
- <uni-th width="150rpx" align="left">卷数 {{i.count}}</uni-th>
- <uni-th width="150rpx" align="left">米数 {{i.quantity}}</uni-th>
- <uni-th width="150rpx" align="left">面积 {{i.area}}</uni-th>
- </uni-tr>
-
- <uni-tr v-for="(j,jindex) in i.materialList" :key="jindex">
- <uni-td><view >卷{{jindex + 1}}</view></uni-td>
- <uni-td><view >{{j.quantity}}</view></uni-td>
- <uni-td><view >****{{j.rfid.slice(18,24)}}</view></uni-td>
- </uni-tr>
- </uni-table>
- </view>
- </view>
- <view class="" v-if="headerNavType === 2">
-
-
- <view style="margin: 0 30rpx 30rpx;font-size: 12rpx;background:#fff" v-for="(i,index) in materialReturnData" :key="index">
- <view class="form-text">
- <view class="">
- 物料名称:{{i.materialName}}
- </view>
- <view class="">
- 物料编码:{{i.materialCode}}
- </view>
- </view>
- <uni-table border stripe emptyText="暂无更多数据" >
-
- <uni-tr>
- <uni-th width="150rpx" align="left">卷数 {{i.count}}</uni-th>
- <uni-th width="150rpx" align="left">米数 {{i.quantity}}</uni-th>
- <uni-th width="150rpx" align="left">面积 {{i.area}}</uni-th>
- </uni-tr>
-
- <uni-tr v-for="(j,jindex) in i.materialList" :key="jindex">
- <uni-td><view >卷{{jindex + 1}}</view></uni-td>
- <uni-td><view >{{j.quantity}}</view></uni-td>
- <uni-td><view >****{{j.rfid.slice(18,24)}}</view></uni-td>
- </uni-tr>
- </uni-table>
- </view>
- </view>
- <view class="" v-if="headerNavType === 3">
-
-
- <view style="margin: 0 30rpx 30rpx;font-size: 12rpx;background:#fff" v-for="(i,index) in transferInData" :key="index">
- <view class="form-text">
- <view class="">
- 物料名称:{{i.materialName}}
- </view>
- <view class="">
- 物料编码:{{i.materialCode}}
- </view>
- <view class="">
- 提交人:{{i.submitUser}}
- </view>
- <view class="">
- 接收人:{{i.receiveUser}}
- </view>
- </view>
- <uni-table border stripe emptyText="暂无更多数据" >
-
- <uni-tr>
- <uni-th width="150rpx" align="left">卷数 {{i.count}}</uni-th>
- <uni-th width="150rpx" align="left">米数 {{i.quantity}}</uni-th>
- <uni-th width="150rpx" align="left">面积 {{i.area}}</uni-th>
- </uni-tr>
-
- <uni-tr v-for="(j,jindex) in i.materialList" :key="jindex">
- <uni-td><view >卷{{jindex + 1}}</view></uni-td>
- <uni-td><view ></view></uni-td>
- <uni-td><view >{{j.quantity}}</view></uni-td>
- </uni-tr>
- </uni-table>
- </view>
- </view>
- <view class="" v-if="headerNavType === 4">
-
-
- <view style="margin: 0 30rpx 30rpx;font-size: 12rpx;background:#fff" v-for="(i,index) in transferOutData" :key="index">
- <view class="form-text">
- <view class="">
- 物料名称:{{i.materialName}}
- </view>
- <view class="">
- 物料编码:{{i.materialCode}}
- </view>
- <view class="">
- 提交人:{{i.submitUser}}
- </view>
- <view class="">
- 接收人:{{i.receiveUser}}
- </view>
- </view>
- <uni-table border stripe emptyText="暂无更多数据" >
-
- <uni-tr>
- <uni-th width="150rpx" align="left">卷数 {{i.count}}</uni-th>
- <uni-th width="150rpx" align="left">米数 {{i.quantity}}</uni-th>
- <uni-th width="150rpx" align="left">面积 {{i.area}}</uni-th>
- </uni-tr>
-
- <uni-tr v-for="(j,jindex) in i.materialList" :key="jindex">
- <uni-td><view >卷{{jindex + 1}}</view></uni-td>
- <uni-td><view ></view></uni-td>
- <uni-td><view >{{j.quantity}}</view></uni-td>
- </uni-tr>
- </uni-table>
- </view>
- </view>
- </view>
- </template>
- <script>
- import commonsSelectTime from '../../components/commons-select-time/index2.vue'
- import {format} from '../../util/uitl.js'
- import {
- getInfo
- } from "@/util/api.js";
- export default {
- components:{
- commonsSelectTime
- },
- data() {
- return {
- headerNavType:1,
-
- req:{
- account:null,
- date:format(new Date()).slice(0,10),
-
- },
- issueData:[],
- materialReturnData:[],
- transferInData:[],
- transferOutData:[],
- }
- },
- onLoad(option) {
- const v = this
- uni.getStorage({
- key: 'Authorization',
- success: function (res) {
-
- v.req.account = res.data.account
- v.getList()
- }
- });
- },
- methods: {
- changeTime(e){
- this.req.date = e
- this.getList()
- },
- timeChangeFn(){
- console.log(this.req)
- },
- toRouter(url){
- console.log(123123)
- uni.navigateTo({
- url: '/pages' + url
- })
- },
-
- getList(){
- const v = this
- v.$post('/stockWater/issue',v.req).then(res=>{
- v.issueData = res.data
- })
- v.$post('/stockWater/materialReturn',v.req).then(res=>{
- v.materialReturnData = res.data
- })
- v.$post('/stockWater/transferIn',v.req).then(res=>{
- v.transferInData = res.data
- })
-
- v.$post('/stockWater/transferOut',v.req).then(res=>{
- v.transferOutData = res.data
- })
- },
-
-
- },
- }
- </script>
- <style>
- .personalStat .picker-content{
- text-align: center;
- }
- .personalStat .uni-table-th.table--border{
- border-top: 1px solid #000;
- }
- .personalStat .uni-table-th{
- border-color: black;
- color: #333;
- font-weight: 500;
- }
- .personalStat .uni-table-th,.personalStat .table--border{
- border-right:none!important;
- }
- .personalStat .uni-date-x--border{
- border:none!important;
- }
- </style>
- <style lang="less">
- .form-text{
- font-size: 28rpx;
- line-height: 60rpx;
- background-color: #fff;
- padding-left: 20rpx;
- }
- .commons-time-box{
- display: flex;
- height: 50rpx;
- line-height: 50rpx;
- font-size: 24rpx;
- margin:30rpx;
- border:1px solid #dcdcdc;
- border-radius: 8rpx;
- .time-box{
- width: 15%;
- text-align: center;
- }
- .time-box-icon{
- width: 10%;
- }
- .time-box.active{
- background-color: #487CFF;
- color: #fff;
- }
- }
- .uni-data-checklist{
- margin-top: 10rpx;
- padding:16rpx 10rpx;
- }
- .uni-table-td{
- font-size: 24rpx!important;
- }
- .uni-data-checklist .checklist-group .checklist-box{
- margin-right: 20rpx!important;
- }
- .personalStat {
- background-color: #f1f1f1;
- min-height: 100vh;
- color: #333;
- .header-banner {
- display: flex;
- justify-content: center;
- border-bottom: 1px solid #dcdcdc;
-
- view {
- width: 40%;
- text-align: center;
- height: 100rpx;
- line-height: 100rpx;
- color: #333;
- margin: 0 5%;
- }
- .active {
- color: #487CFF;
- border-bottom: 2px solid #487CFF;
- }
- }
-
- }
- </style>
|