Commit 01db4852 authored by Facius's avatar Facius

我的备件

parent 86d9e393
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
case '-1': // 审核未通过 case '-1': // 审核未通过
return '#FA5A49' return '#FA5A49'
case '1': // 已取消 case '1': // 已取消
return '#666666' return '#333333'
default: default:
return '#2272FF' return '#2272FF'
} }
......
<template> <template>
<view class="u-flex bottom"> <view class="u-flex bottom" :style="customStyle">
<view class="u-flex bottom-left" v-if="showChecked"> <view class="select-view">
<view class="left-list"><u-checkbox v-model="checked" @change="selectAll" shape="circle" width="30rpx" /></view> <view class="u-flex bottom-left" v-if="showChecked">
<view class="left-list">全选</view> <view class="left-list"><u-checkbox icon-size="30" size="40" v-model="checked" @change="selectAll" shape="circle"/></view>
</view> <view class="left-list">全选</view>
<view class="u-flex bottom-center"> </view>
<view class="center-list">已选择 {{ partNum }} 种配件</view> <view class="u-flex bottom-center">
<view class="center-list">合计 <text class="num"> {{ num }} </text></view> <view class="center-list">已选择 {{ partNum }}</view>
</view> <view class="center-list">合计:<text class="num"> {{ num }} </text></view>
</view>
</view>
<view class="u-flex bottom-right"> <view class="u-flex bottom-right">
<button :class="['btn', btnActive]" @click="submit">{{ submitTxt }}</button> <button :class="['btn', btnActive]" @click="submit">{{ submitTxt }}</button>
</view> </view>
...@@ -53,6 +55,10 @@ ...@@ -53,6 +55,10 @@
return '确定' return '确定'
} }
} }
},
customStyle: {
type: String,
default: 'background-color: #FFFFFF;padding: 0 30rpx;'
}, },
data() { data() {
return { return {
...@@ -86,28 +92,33 @@ ...@@ -86,28 +92,33 @@
.bottom { .bottom {
width: 100%; width: 100%;
height: 180rpx; height: 180rpx;
background: #fff; // background: #fff;
justify-content: space-between; justify-content: space-between;
.u-flex { .u-flex {
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
} }
.select-view {
display: flex;
align-items: center;
}
.bottom-left { .bottom-left {
margin-left: 30rpx; // margin-left: 30rpx;
.left-list { .left-list {
width: 100%; width: 100%;
&:nth-of-type(1) { &:nth-of-type(1) {
padding-left: 10rpx; padding-left: 3rpx;
} }
&:nth-of-type(2) { &:nth-of-type(2) {
padding-top: 20rpx; margin-top: 8rpx;
font-size: 20rpx;
} }
} }
} }
.bottom-center { .bottom-center {
flex: 1; flex: 1;
align-items: flex-start; align-items: flex-start;
margin: 0 20rpx; // margin: 0 20rpx;
.center-list { .center-list {
&:nth-of-type(1) { &:nth-of-type(1) {
color: #666; color: #666;
...@@ -115,18 +126,19 @@ ...@@ -115,18 +126,19 @@
} }
&:nth-of-type(2) { &:nth-of-type(2) {
color: #333; color: #333;
font-size: 28rpx; font-size: 32rpx;
margin-top: 20rpx; margin-top: 8rpx;
font-weight: bold;
.num { .num {
color: #2272FF; color: #2272FF;
padding: 0 10rpx; padding-right: 10rpx;
} }
} }
} }
} }
.bottom-right { .bottom-right {
width: 340rpx; width: 360rpx;
margin-right: 20rpx; // margin-right: 20rpx;
.btn { .btn {
width: 100%; width: 100%;
padding: 30rpx; padding: 30rpx;
......
...@@ -147,6 +147,12 @@ ...@@ -147,6 +147,12 @@
value: '', value: '',
icon: process.uniEnv.qn_base_url + 'cangku.png', icon: process.uniEnv.qn_base_url + 'cangku.png',
}, },
{
pathName: 'warehouse/records',
title: '出入库记录',
value: '',
icon: process.uniEnv.qn_base_url + 'cangku.png',
},
] ]
}, },
telTip() { telTip() {
......
...@@ -9,12 +9,6 @@ ...@@ -9,12 +9,6 @@
<text class="search-btn-placeholder">请输入关键字</text> <text class="search-btn-placeholder">请输入关键字</text>
</view> </view>
<text class="search-btn-text">搜索</text> <text class="search-btn-text">搜索</text>
</view>
<view class="title-view">
<view>返件列表列表</view>
<!-- <u-button class="right-btn" @click="handleClickRecords" :custom-style="buttonStyle" type="primary"
shape="circle">操作记录</u-button> -->
<view class="right-btn" @click="handleClickRecords">操作记录</view>
</view> </view>
<view class="tab-view"> <view class="tab-view">
<scroll-view scroll-y style="height: 100%;width: 100%;" @scrolltolower="reachBottom" scroll-anchoring <scroll-view scroll-y style="height: 100%;width: 100%;" @scrolltolower="reachBottom" scroll-anchoring
...@@ -114,11 +108,7 @@ ...@@ -114,11 +108,7 @@
url: 'pages/mine/warehouse/partsDetail' url: 'pages/mine/warehouse/partsDetail'
}) })
}, },
handleClickRecords() {
uni.navigateTo({
url: 'pages/mine/warehouse/records'
})
},
handleClickSearch() { handleClickSearch() {
}, },
...@@ -182,19 +172,7 @@ ...@@ -182,19 +172,7 @@
text-align: right; text-align: right;
} }
} }
.title-view {
display: flex;
justify-content: space-between;
align-items: center;
color: #333333;
font-weight: bold;
font-size: 32rpx;
.right-btn {
padding-left: 20rpx;
color: #666666;
font-size: 26rpx;
}
}
.tab-view { .tab-view {
height: 100%; height: 100%;
overflow: auto; overflow: auto;
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment