Commit c4b8612c by zhangzhen

细节优化

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