123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- <template>
- <view class="check">
- <uni-search-bar @confirm="getData" v-model="req.keyword" @cancel="reload">
- </uni-search-bar>
-
- <view class="addQrcode-list" v-for="(i,index) in listData" :key="i.materialId" @click="toRouter(index)">
- <view class="fl">
- <view class="" style="color: #aaaaaa;">
- 质检单编号:{{i.id}}
- </view>
- <view class="">
- 物料名称:<span>{{i.materialName}}</span>
- </view>
- <view class="">
- 合同编号:{{i.purchaseBillNo}} <span style="margin-left: 40rpx;">批次号:{{i.batchNo}}</span>
- </view>
- <view class="name">
- 待质检数:{{i.notCheckNum}}
- </view>
- </view>
- <view class="fr">
- <uni-icons type="forward" color="#0066CC" size="30"></uni-icons>
- </view>
- </view>
- <view class="commons-no-data" v-if="listData.length == 0">
- 已经没有数据了。。
- </view>
- </view>
- </template>
- <script>
- import {
- getInfo
- } from "@/util/api.js";
- export default {
- data() {
- return {
- listData:[],
- req:{
- keyword:null,
- }
- }
- },
- onLoad() {
- const v = this
- v.getData()
-
- },
- methods: {
- reload(){
- this.req.keyword = null
- this.getData()
- },
- getData(){
- const v = this
- v.$post('/wx/check/list',v.req).then(res=>{
- v.listData = res.data
-
- })
- },
- toRouter(i){
- const v = this
- uni.navigateTo({
- url: '/pages/weigh/checkDtl?data=' + encodeURIComponent(JSON.stringify(v.listData[i]))
- })
- },
- },
- }
- </script>
- <style lang="less">
- .check{
- .addQrcode-list {
- height: 120rpx;
- display: flex;
- justify-content: space-between;
- padding: 15rpx;
- border-bottom: 1rpx solid #dcdcdc;
- font-size: 24rpx;
- .fr {
- line-height: 120rpx;
- color: #0066CC;
- }
- }
- }
-
- </style>
|