|
|
@@ -4,7 +4,7 @@
|
|
|
|
|
|
<view class="material rx-ss" v-for="(mate, idx) in list">
|
|
|
<view class="left rx-ss" @click="getDelete(idx)">
|
|
|
- <uni-icons custom-prefix="iconfont" type="icon-shanchu" size="20" color="#fa3534"></uni-icons>
|
|
|
+ <uni-icons custom-prefix="iconfont" type="icon-shanchu" size="20" color="#fa3534"></uni-icons>
|
|
|
</view>
|
|
|
<view class="content_table">
|
|
|
<view class="item">
|
|
|
@@ -18,22 +18,24 @@
|
|
|
<view class="lable rx-cc">名称</view>
|
|
|
<view class="content">{{mate.name}}</view>
|
|
|
</view>
|
|
|
-
|
|
|
-
|
|
|
- <view class="item" v-for="(itm, index) in tableH(4)" :key="index" >
|
|
|
+
|
|
|
+
|
|
|
+ <view class="item" v-for="(itm, index) in tableH(4)" :key="index">
|
|
|
<view class="lable rx-cc">{{ itm.label }}</view>
|
|
|
<view class="content">{{ mate[itm.prop] }}</view>
|
|
|
-
|
|
|
+
|
|
|
</view>
|
|
|
-
|
|
|
+
|
|
|
|
|
|
<view class="item">
|
|
|
<view class="lable rx-cc">数量</view>
|
|
|
- <view class="content content_num">
|
|
|
- <input class="uni-input" v-model="mate.demandQuantity" @blur='mate.demandQuantity > mate.availableCountBase ? mate.demandQuantity = mate.availableCountBase : mate.demandQuantity' type="digit"></input>
|
|
|
- <view class="unit">/{{mate.unit}}</view>
|
|
|
- <view> (库存:{{ mate.availableCountBase }})</view>
|
|
|
- </view>
|
|
|
+ <view class="content content_num">
|
|
|
+ <input class="uni-input" v-model="mate.demandQuantity"
|
|
|
+ @blur='mate.demandQuantity > mate.availableCountBase ? mate.demandQuantity = mate.availableCountBase : mate.demandQuantity'
|
|
|
+ type="digit"></input>
|
|
|
+ <view class="unit">/{{mate.unit}}</view>
|
|
|
+ <view> (库存:{{ mate.availableCountBase }})</view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
|
|
|
|
|
|
@@ -41,7 +43,7 @@
|
|
|
<view class="item">
|
|
|
<view class="lable rx-cc">领料仓库</view>
|
|
|
<view class="content ">
|
|
|
- {{ mate.pathName }}
|
|
|
+ {{ mate.pathName }}
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
@@ -63,9 +65,9 @@
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
- tableH(type) {
|
|
|
- return tableHeader(type)
|
|
|
- },
|
|
|
+ tableH(type) {
|
|
|
+ return tableHeader(type)
|
|
|
+ },
|
|
|
|
|
|
getDelete(idx) {
|
|
|
this.list.splice(idx, 1)
|
|
|
@@ -137,13 +139,13 @@
|
|
|
}
|
|
|
|
|
|
.content_num {
|
|
|
-
|
|
|
+
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
padding: 0 4rpx;
|
|
|
|
|
|
/deep/ .uni-input-input {
|
|
|
- width: 200rpx ;
|
|
|
+ width: 200rpx;
|
|
|
border: 2rpx solid #F0F8F2;
|
|
|
background: #F0F8F2;
|
|
|
color: $theme-color;
|