123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296 |
- <template>
- <view class="home">
- <view class="detail-area">
- <view class="layout-row">
- <u-row
- justify="space-between"
- gutter="10">
- <u-col span="4">
- <view class="demo-layout">
- 资产编号
- </view>
- </u-col>
- <u-col span="8" >
- <view class="demo-layout">001077-00007335</view>
- </u-col>
- </u-row>
- </view>
- <view class="layout-row">
- <u-row
- justify="space-between"
- gutter="10">
- <u-col span="4">
- <view class="demo-layout">资产名称</view>
- </u-col>
- <u-col span="8">
- <view class="demo-layout">放免防护屏</view>
- </u-col>
- </u-row>
- </view>
- <view class="layout-row">
- <u-row
- justify="space-between"
- gutter="10">
- <u-col span="4">
- <view class="demo-layout">资产种类</view>
- </u-col>
- <u-col span="8">
- <view class="demo-layout">固定资产</view>
- </u-col>
- </u-row>
- </view>
- <view class="layout-row">
- <u-row
- justify="space-between"
- gutter="10">
- <u-col span="4">
- <view class="demo-layout">资产分类</view>
- </u-col>
- <u-col span="8">
- <view class="demo-layout">[3220399]其他医用电子仪器</view>
- </u-col>
- </u-row>
- </view>
- <view class="layout-row">
- <u-row
- justify="space-between"
- gutter="10">
- <u-col span="4">
- <view class="demo-layout">使用部门</view>
- </u-col>
- <u-col span="8">
- <view class="demo-layout">生物医学工程系实验中心</view>
- </u-col>
- </u-row>
- </view>
- <view class="layout-row">
- <u-row
- justify="space-between"
- gutter="10">
- <u-col span="4">
- <view class="demo-layout">资产原值(元)</view>
- </u-col>
- <u-col span="8">
- <view class="demo-layout">1820.00</view>
- </u-col>
- </u-row>
- </view>
- <view class="layout-row">
- <u-row
- justify="space-between"
- gutter="10">
- <u-col span="4">
- <view class="demo-layout">数量</view>
- </u-col>
- <u-col span="8">
- <view class="demo-layout">1</view>
- </u-col>
- </u-row>
- </view>
- <view class="layout-row">
- <u-row
- justify="space-between"
- gutter="10">
- <u-col span="4">
- <view class="demo-layout">存放地点</view>
- </u-col>
- <u-col span="8">
- <view class="demo-layout">番禺A1-512</view>
- </u-col>
- </u-row>
- </view>
- <view class="layout-row">
- <u-row
- justify="space-between"
- gutter="10">
- <u-col span="4">
- <view class="demo-layout">登记人</view>
- </u-col>
- <u-col span="8">
- <view class="demo-layout">超级用户</view>
- </u-col>
- </u-row>
- </view>
- <view class="layout-row">
- <u-row
- justify="space-between"
- gutter="10">
- <u-col span="4">
- <view class="demo-layout">取得日期</view>
- </u-col>
- <u-col span="8">
- <view class="demo-layout">2022-12-14</view>
- </u-col>
- </u-row>
- </view>
- <view class="layout-row">
- <u-row
- justify="space-between"
- gutter="10">
- <u-col span="4">
- <view class="demo-layout">资产用途</view>
- </u-col>
- <u-col span="8">
- <view class="demo-layout">培训教学</view>
- </u-col>
- </u-row>
- </view>
- <view class="layout-row">
- <u-row
- justify="space-between"
- gutter="10">
- <u-col span="4">
- <view class="demo-layout">规格型号</view>
- </u-col>
- <u-col span="8">
- <view class="demo-layout">RKD-01</view>
- </u-col>
- </u-row>
- </view>
- </view>
- <view class="borrow-date" v-if="status==1">
- <view class="layout-row">
- <u-row
- justify="space-between"
- gutter="10">
- <u-col span="4">
- <view class="demo-layout">借用日期</view>
- </u-col>
- <u-col span="8">
- <view class="demo-layout">
- <u--input
- placeholder="请输入内容"
- border="none"
- v-model="borrowDate"
- @focus="borrowShow = true"
- ></u--input>
- <u-datetime-picker
- :show="borrowShow"
- v-model="borrowValue"
- mode="datetime"
- @confirm="changeDate"
- @cancel="borrowShow = false"
- ></u-datetime-picker>
- </view>
- </u-col>
- </u-row>
- </view>
- <view class="layout-row">
- <u-row
- justify="space-between"
- gutter="10">
- <u-col span="4">
- <view class="demo-layout">归还日期</view>
- </u-col>
- <u-col span="8">
- <view class="demo-layout">
- <u--input
- placeholder="请输入内容"
- border="none"
- v-model="returnDate"
- @focus="returnShow = true"
- ></u--input>
- <u-datetime-picker
- :show="returnShow"
- v-model="returnValue"
- mode="datetime"
- @confirm="returnChange"
- @cancel="returnShow = false"
- ></u-datetime-picker>
- </view>
- </u-col>
- </u-row>
- </view>
- </view>
- <view class="btn-area">
- <u-button text="借用" color="#000" v-if="status==1">借用</u-button>
- <u-button text="归还" color="#000" v-else-if="status==2">归还</u-button>
- </view>
- <view class="repair-btn">
- <i class="iconfont icon-a-shezhi2"></i>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- borrowDate:this.$core.dateToString(new Date()),
- returnDate:this.$core.dateToString(new Date()),
- borrowShow:false,
- borrowValue:Number(new Date()),
- returnShow:false,
- returnValue:Number(new Date()),
- status:1
- };
- },
- onLoad:function(option){
- console.log(option.number)
- },
- methods:{
- changeDate(val){
- let date = this.$core.dateToString(val.value);
- this.borrowDate = date
- this.borrowShow = false
- },
- returnChange(val){
- let date = this.$core.dateToString(val.value);
- this.returnDate = date
- this.returnShow = false
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- .home{
- padding: 20rpx;
- display: flex;
- flex-direction: column;
- height: 100vh;
- box-sizing: border-box;
- }
- .detail-area{
- height: 72%;
- border: 1px solid $uni-border-black;
- padding: 0 20rpx;
- overflow-y: scroll;
- }
- .borrow-date{
- border: 1px solid $uni-border-black;
- padding: 0 20rpx;
- margin-top: 20rpx;
- }
- .layout-row{
- border-top: 2rpx solid #999999;
- padding: 20rpx 0 ;
- }
- .demo-layout {
- height: 25px;
- }
- .btn-area{
- margin-top: 20rpx;
- padding: 0 250rpx;
- }
- .repair-btn{
- width: 80rpx;
- height: 80rpx;
- color: rgba(80, 80, 80, 1);
- border-radius: 21px;
- line-height: 150%;
- box-shadow: 0px 1px 1px 0px rgba(0, 0, 0, 0.5);
- display: flex;
- align-items: center;
- justify-content: center;
- text-align: center;
- flex-direction: column;
- font-size: 36rpx;
- position: fixed;
- bottom: 20rpx;
- right: 20rpx;
- .iconfont{
- font-size: 42rpx;
- }
- }
- </style>
|