1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- <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.recordDetailsId" @click="toRouter(i)">
- <view class="fl">
- <view class="" style="color: #aaaaaa;">
- {{i.materialId}} <span style="margin-left: 50rpx;">{{i.materialName}} </span>
- </view>
- <view class="">
- 库存件数:{{i.materialCount}} <span style="margin-left: 50rpx;">库存数量:{{i.materialSum}}</span>
- </view>
- <view :style="i.recordNum == 0 ? 'color:#D9001B' : 'color:#70B603'">
- 已盘点:{{i.recordNum}}
- </view>
- </view>
- <view class="fr">
- <uni-icons type="forward" color="#0066CC" size="30"></uni-icons>
- </view>
- </view>
- </view>
- </template>
- <script>
- import {
- getInfo
- } from "@/util/api.js";
- import {dateFormat,getTime} from '../../util/uitl.js'
- export default {
- data() {
- return {
- listData:[],
- req:{
- keyword:null,
- }
- }
- },
- onLoad(option) {
- const v = this
- v.req.recordId = option.id
- v.getData()
-
- },
- methods: {
- reload(){
- this.req.keyword = null
- this.getData()
- },
- getData(){
- const v = this
- v.$post('/wx/record/getDetailsList',v.req).then(res=>{
- v.listData = res.data
-
- })
- },
- toRouter(id){
- const v = this
- uni.navigateTo({
- url: '/pages/Inventory/InventorySubmit?data=' + encodeURIComponent(JSON.stringify(id))
- })
- },
- },
- }
- </script>
- <style lang="less">
- .check{
- .addQrcode-list {
- height: 100rpx;
- display: flex;
- justify-content: space-between;
- padding: 15rpx;
- border-bottom: 1rpx solid #dcdcdc;
- font-size: 24rpx;
- .fr {
- line-height: 100rpx;
- color: #0066CC;
- }
- }
- }
-
- </style>
|