jsy-app/pages/retrace/stockWms.vue

123 lines
3.1 KiB
Vue
Raw Normal View History

<template>
<z-paging ref="paging" @query="queryList" v-model="dataList" :default-page-size="queryParams.pageSize"
:auto-show-system-loading="true" empty-view-text="抱歉,暂时还没有相关数据!">
<template #top>
<custom-nav-bar :left="true" title="业务明细">
</custom-nav-bar>
<view style="background: #e7fdeb;padding: 5px;">
<u-search placeholder="请输入设备编号" v-model="queryParams.deviceCode" @search="queryList" shape="square"
@custom="queryList" />
</view>
</template>
<view class="index-container">
<view class="item-container" v-for="item in dataList">
<view style="display: flex; align-items: center; justify-content: space-between;">
<view class="flex-text" style="margin: 15px;">
<view class="flex-text-one" style="color: black;">设备编号</view>
<view>{{ item.deviceCode}}</view>
</view>
</view>
<u-gap height="1" bgColor="#D2D2D2"></u-gap>
<view style="display: flex;justify-content: space-between;align-items: center;">
<view class="data">
<view class="flex-text global-font-size-1">
<view class="flex-text-one">设备类型</view>
<view>{{ item.deviceTypeName}}</view>
</view>
<view class="flex-text global-font-size-1" style="margin-top: 5px;">
<view class="flex-text-one">操作人</view>
<view>{{ item.operUser}}</view>
</view>
<view class="flex-text global-font-size-1" style="margin-top: 5px;">
<view class="flex-text-one">业务类型</view>
<view>{{ item.billTypeName}}</view>
</view>
<view class="flex-text global-font-size-1" style="margin-top: 5px;">
<view class="flex-text-one">业务时间</view>
<view>{{ item.occurTime}}</view>
</view>
</view>
</view>
</view>
</view>
</z-paging>
</template>
<script>
import store from "@/store"
import {
getDeviceBillWmsList
} from "@/api/iot/deviceBillWms.js"
export default {
data() {
return {
dataList: [],
queryParams: {
billDetailIds: null,
deviceTypeId:null,
pageNum: 1,
pageSize: 20,
deviceCode: "",
}
}
},
onLoad(options) {
if(options){
this.queryParams.billDetailIds = options.ids+",".split(",");
this.queryParams.deviceTypeId =options.deviceTypeId;
}
},
onShow() {},
mounted() {},
methods: {
maskClick(e) {},
queryList(pageNo, pageSize) {
this.queryParams.pageNum = pageNo;
getDeviceBillWmsList(this.queryParams).then(res => {
this.$refs.paging.completeByTotal(res.rows, res.total);
});
},
}
}
</script>
<style lang="scss">
.index-container {
.list {
margin: 0px 10px;
}
.list-size {
display: flex;
padding: 5px 5px;
background: white;
justify-content: center;
}
.search {
background-color: white;
padding: 10px;
}
.item-container {
margin: 10px 10px;
background-color: white;
padding-bottom: 10px;
border-radius: 10px;
box-shadow: 1px 1px 2px 2px rgba(0, 0, 0, 0.05);
}
.flex-text {
display: flex;
align-items: center;
.flex-text-one {
color: #939393;
font-weight: bold;
}
}
.data {
margin: 10px 20px;
}
}
</style>