小程序适配
This commit is contained in:
@@ -1,74 +1,86 @@
|
||||
<template>
|
||||
<view class="warehouseEntry">
|
||||
<ul>
|
||||
<li>
|
||||
<view>
|
||||
<view>
|
||||
<view>
|
||||
耗材名称
|
||||
</view>
|
||||
<view>
|
||||
{{datas.item.conName}}
|
||||
</view>
|
||||
</li>
|
||||
<li>
|
||||
</view>
|
||||
<view>
|
||||
<view>
|
||||
现有库存
|
||||
</view>
|
||||
<view>
|
||||
{{datas.item.stockNumber-datas.item.stockConsume}}
|
||||
</view>
|
||||
</li>
|
||||
<li>
|
||||
</view>
|
||||
<view>
|
||||
<view>
|
||||
<text style="color: red;">*</text> 入库数量
|
||||
</view>
|
||||
<view>
|
||||
<input type="number" placeholder="请输入数量" v-model="datas.form.list.stockNumber" name="" id="">
|
||||
</view>
|
||||
</li>
|
||||
<li>
|
||||
</view>
|
||||
<view style="justify-content: space-between;">
|
||||
<view>
|
||||
单位
|
||||
</view>
|
||||
<view style="width: 54%;" @tap="showStatusToggle">
|
||||
{{datas.status[nowStatusIndex]}}
|
||||
</view>
|
||||
<uni-icons type="bottom" size="16"></uni-icons>
|
||||
</view>
|
||||
<view>
|
||||
<view>
|
||||
<text style="color: red;">*</text>单价
|
||||
</view>
|
||||
<view>
|
||||
<input type="number" placeholder="请输入单价(元)" v-model="datas.form.list.price" name="" id="">
|
||||
</view>
|
||||
</li>
|
||||
<li>
|
||||
</view>
|
||||
<view>
|
||||
<view>
|
||||
应付金额
|
||||
</view>
|
||||
<view>
|
||||
{{datas.form.list.stockNumber*datas.form.list.price|0}}
|
||||
</view>
|
||||
</li>
|
||||
<li>
|
||||
</view>
|
||||
<view>
|
||||
<view>
|
||||
实付金额
|
||||
</view>
|
||||
<view>
|
||||
<input placeholder="请输入现有库存" type="text" v-model="datas.form.actualPayment" />
|
||||
</view>
|
||||
</li>
|
||||
<!-- <li>
|
||||
</view>
|
||||
<!-- <view>
|
||||
<view>
|
||||
总价值
|
||||
</view>
|
||||
<view>
|
||||
<input type="text" placeholder="请输入总价值(元)" name="" id="">
|
||||
</view>
|
||||
</li> -->
|
||||
<li style="justify-content: space-between;">
|
||||
</view> -->
|
||||
<view style="justify-content: space-between;">
|
||||
<view>
|
||||
供应商
|
||||
</view>
|
||||
<view style="width: 54%;" @tap="showStatusToggle">
|
||||
<view style="width: 375rpx;" @tap="showStatusToggle">
|
||||
{{datas.status[nowStatusIndex]}}
|
||||
</view>
|
||||
<uni-icons type="bottom" size="16"></uni-icons>
|
||||
<up-button type="text" style="color: #318AFE;width: 64rpx;" @tap="toggle" :plain="true"
|
||||
text="新增"></up-button>
|
||||
</li>
|
||||
</ul>
|
||||
<view style="color: #318AFE;width: 80rpx;text-align: center;" @tap="toggle">
|
||||
新增
|
||||
</view>
|
||||
<!-- <up-button type="text" style="color: #318AFE;" @tap="toggle" :plain="true"
|
||||
text="新增"></up-button> -->
|
||||
</view>
|
||||
</view>
|
||||
<view :style="{height:showStatus?statusHeight:0}" class="tranistion status overflow-hide">
|
||||
<view @tap="changeNowStatusIndex(index)" class="u-flex u-p-l-30 lh30 u-p-r-30 u-row-between"
|
||||
v-for="(item,index) in datas.status" :key="index">
|
||||
@@ -79,7 +91,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="bottombutton">
|
||||
<up-button type="primary" style="background-color: #318AFE;color: #fff;" @tap="sumbit" :plain="true"
|
||||
<up-button type="primary" style="background-color: #318AFE;color: #fff;width: 100%!important;" @tap="sumbit" :plain="true"
|
||||
text="保存"></up-button>
|
||||
<!-- <up-button type="text" style="background-color: #f9f9f9;color: #999;" @tap="toggle" :plain="true"
|
||||
text="取消"></up-button> -->
|
||||
@@ -202,6 +214,10 @@
|
||||
page {
|
||||
background-color: #f9f9f9;
|
||||
}
|
||||
|
||||
/* .u-button {
|
||||
width: 64rpx!important;
|
||||
} */
|
||||
</style>
|
||||
<style scoped lang="less">
|
||||
.df() {
|
||||
@@ -235,8 +251,8 @@
|
||||
padding: 20rpx 24rpx;
|
||||
box-sizing: border-box;
|
||||
|
||||
>ul {
|
||||
>li {
|
||||
>view {
|
||||
>view {
|
||||
width: 646rpx;
|
||||
height: 84rpx;
|
||||
background: #fcfcfc;
|
||||
@@ -264,6 +280,7 @@
|
||||
|
||||
.bottombutton {
|
||||
margin-top: 84rpx;
|
||||
padding: 0 24rpx;
|
||||
|
||||
>button {
|
||||
width: 530rpx;
|
||||
|
||||
Reference in New Issue
Block a user