123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381 |
- <template>
- <view class="groundtials-wrap">
- <view class="list-item" v-for="(item,index) in mentItem" :key="index">
- <view class="list-data">
- <text class="text-label">单据编号:</text>
- <text class="text-cont">{{item.id_instock}}</text>
- </view>
- <view class="list-data">
- <text class="text-label">供应商:</text>
- <text class="text-cont">{{item.lykf}}</text>
- </view>
- <view class="list-data">
- <text class="text-label">商品数量:</text>
- <text class="text-cont">{{item.qty}}</text>
- </view>
- <view class="list-data">
- <text class="text-label">单据时间:</text>
- <text class="text-cont">{{item.rq}}</text>
- </view>
- <!-- <view class="list-data">
- <text class="text-label">到货时间:</text>
- <text class="text-cont">{{item.daohuoTime}}</text>
- </view> -->
- <view class="status-text">{{item.flag}}</view>
- </view>
- <!-- <view>{{textCode}}</view>
- <qs-scanlistener @scan="scanCode"></qs-scanlistener> -->
- <view class="total-wrap">
- <view class="total-item">
- <view class="total-label">
- 待上架数量:
- </view>
- <view class="total-await">
- 100
- </view>
- </view>
- <view class="total-item">
- <view class="total-label">
- 已上架数量:
- </view>
- <view class="total-aready">
- 100
- </view>
- </view>
- </view>
- <view class="inventory-wrap">
- <view class="inner-item" v-for="(item,index) in groundDetailsData" :key="index" @click.stop="itemDetails(item)">
- <view class="inventory-item">
- {{item.name_material}}
- </view>
- <view class="inventory-item">
- <view class="shuo-item">
- <view class="shuo-label">
- 规格:
- </view>
- <view class="shuo-cont">
- {{item.spec}}
- </view>
- </view>
- <view class="shuo-item">
- <view class="shuo-label">
- 型号:
- </view>
- <view class="shuo-cont">
- {{item.model}}
- </view>
- </view>
- </view>
- <view class="inventory-item">
- <view class="shuo-item">
- <view class="shuo-label">
- 验收数量:
- </view>
- <view class="shuo-await">
- {{item.qty}}
- </view>
- </view>
- <view class="shuo-item">
- <view class="shuo-label">
- 已上架数:
- </view>
- <view class="shuo-ready">
- {{item.yishangj}}
- </view>
- </view>
- </view>
- <view class="inventory-item">
- <view class="shuo-label">
- 生产厂家:
- </view>
- <view class="shuo-cont">
- {{item.factory}}
- </view>
- </view>
- <view class="inventory-item">
- <view class="shuo-label">
- 上架货位:
- </view>
- <view class="shuo-cont">
- {{item.id_cell}}
- </view>
- </view>
- <view class="inventory-item">
- <view class="shuo-label">
- 上架时间:
- </view>
- <view class="shuo-cont">
- {{item.id_cell}}
- </view>
- </view>
- <view class="all-text">{{item.zt}}</view>
- </view>
- </view>
- </view>
- </template>
- <script>
- import {
- listData
- } from './list.js';
- import {
- mapState,
- mapMutations,
- mapActions
- } from 'vuex';
- export default {
- data() {
- return {
- datas: [{
- code: "KMT20231126",
- hispName: "国药山西长治有限公司",
- snub: 200,
- danjuTime: "2023-11-26 14:05:08",
- daohuoTime: "2023-11-26 14:05:08"
- }],
- textCode: "显示扫码结果",
- listDatacont: []
- }
- },
- onLoad() {
- },
- computed: {
- ...mapState(['mentItem','groundDetailsData'])
- },
- onBackPress(options) {
- uni.$emit('update',{msg:'页面更新'});
- },
- mounted() {
- this.listDatacont = listData;
- this.getDetails();
- },
- methods: {
- ...mapActions(['getDetails']),
- queryList(pageNo, pageSize) {
- this.$refs.paging.complete(this.data);
- },
- //跳转上架详情
- itemDetails(item) {
- uni.navigateTo({
- url: '/pages/groundeitalscont/groundetials',
- success: function(res) {}
- });
- uni.setStorageSync('detailsCont', [item]);
- },
- scanCode(code) {
- this.textCode = code;
- }
- }
- }
- </script>
- <style lang="scss">
- .groundtials-wrap {
- width: 100%;
- height: 100%;
- padding: 20rpx;
- box-sizing: border-box;
- overflow-y: scroll;
- background-color: #F1F1F1;
- .list-item {
- width: 100%;
- height: 260rpx;
- margin-top: 10rpx;
- border: 2rpx solid #BDBDBD;
- padding: 20rpx 20rpx 20rpx 50rpx;
- box-sizing: border-box;
- position: relative;
- background-color: #fff;
- border-radius: 20rpx;
- .list-data {
- width: 70%;
- height: 40rpx;
- line-height: 40rpx;
- margin-top: 10rpx;
- .text-label {
- color: rgba(16, 16, 16, 1);
- font-size: 28rpx;
- font-family: PingFangSC-medium;
- }
- .text-cont {
- color: rgba(16, 16, 16, 1);
- font-size: 28rpx;
- font-family: PingFangSC-regular;
- }
- }
- .status-text {
- width: 100rpx;
- height: 40rpx;
- position: absolute;
- right: 20rpx;
- top: 30rpx;
- font-family: PingFangSC-semiBold;
- font-size: 28rpx;
- color: rgba(71, 73, 161, 0.86);
- }
- }
- .total-wrap {
- width: 100%;
- height: 100rpx;
- margin-top: 10rpx;
- border: 2rpx solid #BDBDBD;
- padding: 20rpx;
- box-sizing: border-box;
- background-color: #fff;
- border-radius: 20rpx;
- display: flex;
- .total-item {
- width: 50%;
- height: 100%;
- display: flex;
- .total-label {
- height: 100%;
- padding-left: 30rpx;
- line-height: 50rpx;
- color: rgba(16, 16, 16, 1);
- font-size: 32rpx;
- text-align: left;
- font-family: PingFangSC-regular;
- }
- .total-await {
- height: 100%;
- line-height: 50rpx;
- color: rgba(255, 191, 107, 1);
- font-size: 28rpx;
- text-align: left;
- font-family: PingFangSC-regular;
- margin-left: 20rpx;
- }
- .total-aready {
- height: 100%;
- line-height: 50rpx;
- color: rgba(162, 239, 77, 1);
- font-size: 28rpx;
- text-align: left;
- font-family: PingFangSC-regular;
- margin-left: 20rpx;
- }
- }
- }
- .inventory-wrap {
- width: 100%;
- border: 2rpx solid #BDBDBD;
- margin-top: 20rpx;
- border-radius: 20rpx;
- .inner-item {
- width: 100%;
- height: 360rpx;
- border-bottom: 2rpx solid #BDBDBD;
- padding: 20rpx 20rpx 20rpx 50rpx;
- box-sizing: border-box;
- position: relative;
- background-color: #fff;
- border-radius: 20rpx;
- position: relative;
- .all-text {
- width: 150rpx;
- height: 40rpx;
- position: absolute;
- right: 20rpx;
- bottom: 25rpx;
- font-family: PingFangSC-regular;
- font-size: 28rpx;
- color: rgba(52, 124, 175, 0.6);
- }
- .inventory-item {
- width: 100%;
- height: 40rpx;
- color: rgba(16, 16, 16, 1);
- font-size: 28rpx;
- text-align: left;
- font-family: PingFangSC-semiBold;
- margin-top: 10rpx;
- display: flex;
- align-items: center;
- .shuo-label {
- color: rgba(16, 16, 16, 1);
- font-size: 28rpx;
- text-align: left;
- font-family: PingFangSC-regular;
- width:130rpx;
- }
- .shuo-cont {
- color: rgba(16, 16, 16, 1);
- font-size: 28rpx;
- text-align: left;
- font-family: PingFangSC-regular;
- margin-left: 30rpx;
- overflow:hidden;
- text-overflow:ellipsis;
- white-space:nowrap;
- }
- .shuo-item {
- width: 50%;
- height: 100%;
- line-height: 20rpx;
- display: flex;
- align-items: center;
- .shuo-label {
- color: rgba(16, 16, 16, 1);
- font-size: 28rpx;
- text-align: left;
- font-family: PingFangSC-regular;
- }
- .shuo-cont {
- color: rgba(16, 16, 16, 1);
- font-size: 28rpx;
- text-align: left;
- font-family: PingFangSC-regular;
- margin-left: 30rpx;
- overflow:hidden;
- text-overflow:ellipsis;
- white-space:nowrap;
- }
- .shuo-await {
- color: rgba(255, 191, 107, 1);
- font-size: 28rpx;
- text-align: left;
- font-family: PingFangSC-regular;
- margin-left: 20rpx;
- }
- .shuo-ready {
- color: rgba(162, 239, 77, 1);
- font-size: 28rpx;
- text-align: left;
- font-family: PingFangSC-regular;
- margin-left: 20rpx;
- }
- }
- }
- }
- }
- }
- uni-page-body{
- width:100%;
- height:100%;
- }
- </style>
|