123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255 |
- <!-- 入库单绑定标签 -->
- <template>
- <view class="container-wrap">
- <uni-nav-bar title="绑定标签" :status-bar="true" background-color="#3F92F9" color="#FFF">
- <view slot="left">
- <u-icon name="account-fill" color="#FFF" size="35"></u-icon>
- <span style="padding: 0 5rpx;color: #FFFFFF;">{{ userInfo.name }}</span>
- </view>
- <view slot="right" @tap="$utils.back()">
- <span style="color: #FFFFFF;">返回</span>
- </view>
- </uni-nav-bar>
- <view class="container">
- <view class="info">
- <view class="row flex-start">
- <view class="label">入库单号:</view>
- <view class="value">SI-202107051338562167</view>
- </view>
- <view class="row flex-start">
- <view class="label">物料编码:</view>
- <view class="value">01.001.0002</view>
- </view>
- <view class="row flex-start">
- <view class="label">物料名称:</view>
- <view class="value">直喷110g针织-130cm</view>
- </view>
- <view class="row flex-start">
- <view class="label">仓库名称:</view>
- <view class="value">面料仓</view>
- </view>
- <view class="row flex-start">
- <view class="label">入库区域:</view>
- <view class="value">2#</view>
- </view>
- </view>
- <view class="title">
- 绑定记录
- </view>
- <view class="subtitle">
- 已绑定标签数:800 米
- </view>
- <!-- <view class="history-list">
- <view class="item" v-for="(item, index) in 6" :key="index">
- <view class="row-title">
- 入库数量:100 米
- </view>
- <view class="row flex-between">
- <view class="col">操作员:张三</view>
- <view class="col">2021-07-10 15:00:00</view>
- </view>
- </view>
- </view> -->
- <view class="list">
- <u-swipe-action :index="index"
- v-for="(item, index) in list" :key="index"
- @click="click" @open="open(item)"
- :options="options"
- >
- <view class="item u-border-bottom">
- <!-- 此层wrap在此为必写的,否则可能会出现标题定位错误 -->
- <view class="title-wrap">
- <view class="row-title">
- 绑定物料数量:100 米
- </view>
- <view class="row flex-between">
- <view class="col">标签值:01239982713</view>
- </view>
- </view>
- </view>
- </u-swipe-action>
- </view>
- </view>
- <view class="footer flex-between">
- <view class="bind">
- 绑定二维码
- </view>
- <view class="bind">
- 绑定RFID标签
- </view>
- <my-fixed-button :customClick="true" text="完成绑定"></my-fixed-button>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- data: {},
- list: [
- {
- id: 1,
- title: '长安回望绣成堆,山顶千门次第开,一骑红尘妃子笑,无人知是荔枝来',
- images: 'https://cdn.uviewui.com/uview/common/logo.png',
- show: false
- },
- {
- id: 2,
- title: '新丰绿树起黄埃,数骑渔阳探使回,霓裳一曲千峰上,舞破中原始下来',
- images: 'https://cdn.uviewui.com/uview/common/logo.png',
- show: false
- },
- {
- id: 3,
- title: '登临送目,正故国晚秋,天气初肃。千里澄江似练,翠峰如簇',
- images: 'https://cdn.uviewui.com/uview/common/logo.png',
- show: false,
- },
- {
- id: 3,
- title: '登临送目,正故国晚秋,天气初肃。千里澄江似练,翠峰如簇',
- images: 'https://cdn.uviewui.com/uview/common/logo.png',
- show: false,
- },
- {
- id: 3,
- title: '登临送目,正故国晚秋,天气初肃。千里澄江似练,翠峰如簇',
- images: 'https://cdn.uviewui.com/uview/common/logo.png',
- show: false,
- },
- {
- id: 3,
- title: '登临送目,正故国晚秋,天气初肃。千里澄江似练,翠峰如簇',
- images: 'https://cdn.uviewui.com/uview/common/logo.png',
- show: false,
- },
- {
- id: 3,
- title: '登临送目,正故国晚秋,天气初肃。千里澄江似练,翠峰如簇',
- images: 'https://cdn.uviewui.com/uview/common/logo.png',
- show: false,
- },
- {
- id: 3,
- title: '登临送目,正故国晚秋,天气初肃。千里澄江似练,翠峰如簇',
- images: 'https://cdn.uviewui.com/uview/common/logo.png',
- show: false,
- },
- {
- id: 3,
- title: '登临送目,正故国晚秋,天气初肃。千里澄江似练,翠峰如簇',
- images: 'https://cdn.uviewui.com/uview/common/logo.png',
- show: false,
- },
- {
- id: 3,
- title: '登临送目,正故国晚秋,天气初肃。千里澄江似练,翠峰如簇',
- images: 'https://cdn.uviewui.com/uview/common/logo.png',
- show: false,
- }
- ],
- options: [
- {
- text: '删除',
- style: {
- backgroundColor: '#dd524d'
- }
- }
- ]
- };
- },
- methods: {
- click(index, index1) {
- console.log(index, index1)
- },
- open() {
- },
- getPageList() {
- console.log(123)
- }
- },
- onLoad(option) {
- this.data = this.$utils.code2Object(option.data)
- console.log(this.data)
- }
- }
- </script>
- <style lang="scss">
- .container-wrap {
- overflow: hidden;
- .container {
- height: calc(100vh - 150rpx);
- overflow: auto;
- padding: 20rpx;
- padding-bottom: 100rpx;
- .info {
- padding: 20rpx 40rpx;
- width: 100%;
- .row {
- padding-bottom: 10rpx;
- &:last-child {
- padding-bottom: 0;
- }
- .label, .value {
- font-size: 32rpx;
- }
- }
- }
- .title {
- padding-top: 30rpx;
- font-size: 36rpx;
- font-weight: bold;
- text-align: center;
- }
- .subtitle {
- padding-bottom: 10rpx;
- text-align: center;
- }
- .list {
- background-color: #FFFFFF;
- border: 1px solid #666666;
- border-bottom: none;
- height: 740rpx;
- overflow: auto;
- .item {
- padding: 20rpx;
- &.u-border-bottom {
- border-bottom: 1px solid #666666 !important;
- &:last-child {
- border-bottom: none;
- }
- }
- .row-title {
- padding-bottom: 10rpx;
- font-size: 32rpx;
- color: #333333;
- }
- .row {
- .col {
- color: #7F7F7F;
- }
- }
- }
- }
- }
- .footer {
- padding: 0 20rpx;
- position: fixed;
- bottom: 80rpx;
- left: 0;
- width: 100%;
- .bind {
- flex: 1;
- height: 80rpx;
- line-height: 80rpx;
- background-color: #FFFFFF;
- text-align: center;
- &:first-child {
- margin-right: 10rpx;
- }
- }
- }
- }
- </style>
|