Commit c4b8612c by zhangzhen

细节优化

parent 43a1b1af
...@@ -169,13 +169,14 @@ ...@@ -169,13 +169,14 @@
<view class="flex-col"> <view class="flex-col">
<view class="margin-sm"> <view class="margin-sm">
<text class="text-black text-title text-lg">收货数量:</text> <text class="text-black text-title text-lg">收货数量:</text>
</view> </view>
<u--input <u--input
placeholder="请输入" placeholder="请输入"
border="surround" border="surround"
v-model="orderInfo.receiveQty" v-model="orderInfo.depositQty"
:disabled="true" :disabled="true"
@change="onQtyChange"
></u--input> ></u--input>
</view> </view>
<view class="flex-col"> <view class="flex-col">
...@@ -202,7 +203,7 @@ ...@@ -202,7 +203,7 @@
</view> </view>
<view class="flex-col content-part-1"> <view class="flex-col content-part-1">
<view v-if="orderInfo && orderInfo.status == 0" class="footer-content"> <view v-if="orderInfo && ['0','2'].includes(orderInfo.status)" class="footer-content">
<view class="btn-box"> <view class="btn-box">
<button class="cu-btn block bg-blue lg round" @tap="onOpenTip">提交</button> <button class="cu-btn block bg-blue lg round" @tap="onOpenTip">提交</button>
</view> </view>
...@@ -254,6 +255,10 @@ ...@@ -254,6 +255,10 @@
}, },
methods: { methods: {
onQtyChange(e){
console.log(e, 9666666666)
this.orderInfo.receiveWeight = e*Number(this.orderInfo.receiveUnitWeight);
},
onBack() { onBack() {
uni.redirectTo({ uni.redirectTo({
url:"/pages/warehousing-inspection/index?tabIndex=1" url:"/pages/warehousing-inspection/index?tabIndex=1"
...@@ -270,7 +275,8 @@ ...@@ -270,7 +275,8 @@
} }
] ]
getSubList({ getSubList({
id: this.id companyCode:'',
primaryId: this.id
}).then(res=>{ }).then(res=>{
uni.hideLoading(); uni.hideLoading();
...@@ -281,7 +287,8 @@ ...@@ -281,7 +287,8 @@
receiveDate: moment(list[0].receiveDate).format("YYYY-MM-DD"), receiveDate: moment(list[0].receiveDate).format("YYYY-MM-DD"),
receiveQty: Number(list[0].receiveQty) || 0, receiveQty: Number(list[0].receiveQty) || 0,
qualifyQty: Number(list[0].qualifyQty) || 0, qualifyQty: Number(list[0].qualifyQty) || 0,
unqualifyQty: Number(list[0].unqualifyQty) || 0 unqualifyQty: Number(list[0].unqualifyQty) || 0,
depositQty: Number(list[0].receiveQty) || 0
}; };
} }
}) })
......
...@@ -411,7 +411,7 @@ ...@@ -411,7 +411,7 @@
}, },
onNavTo2(val) { onNavTo2(val) {
uni.navigateTo({ uni.navigateTo({
url: `/pages/warehousing-inspection/detail?id=${val.id}` url: `/pages/warehousing-inspection/detail?id=${val.primaryId}`
}) })
}, },
onStartFloat(e) { onStartFloat(e) {
......
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