Commit 8705034b by zhangzhen

生产领料细节优化

parent 5728d9b2
...@@ -276,7 +276,8 @@ ...@@ -276,7 +276,8 @@
inventTypeBoxList:[], inventTypeBoxList:[],
inventTypeBoxEnum:{}, inventTypeBoxEnum:{},
userList:[], userList:[],
userIndex:-1 userIndex:-1,
confirmBtn: false
}; };
}, },
onLoad() { onLoad() {
...@@ -291,6 +292,7 @@ ...@@ -291,6 +292,7 @@
this.formList[i].amount = Number(e) * Number(this.formList[i].invQty); this.formList[i].amount = Number(e) * Number(this.formList[i].invQty);
}, },
onAddSub(){ onAddSub(){
if(this.confirmBtn) return;
if(this.factoryIndex<0){ if(this.factoryIndex<0){
uni.showToast({ uni.showToast({
icon:"none", icon:"none",
...@@ -343,6 +345,7 @@ ...@@ -343,6 +345,7 @@
}, },
onSubmit() { onSubmit() {
if(this.confirmBtn) return;
if (this.factoryIndex < 0) { if (this.factoryIndex < 0) {
uni.showToast({ uni.showToast({
icon: "none", icon: "none",
...@@ -395,6 +398,7 @@ ...@@ -395,6 +398,7 @@
this.onCancel(); this.onCancel();
}, },
onSave() { onSave() {
this.confirmBtn = true;
this.show = false; this.show = false;
uni.showLoading({ uni.showLoading({
title: "加载中..." title: "加载中..."
...@@ -446,6 +450,7 @@ ...@@ -446,6 +450,7 @@
title:"提交成功" title:"提交成功"
}) })
setTimeout(()=>{ setTimeout(()=>{
this.confirmBtn = false;
this.onBack(); this.onBack();
},1500) },1500)
return; return;
...@@ -461,11 +466,12 @@ ...@@ -461,11 +466,12 @@
}else{ }else{
uni.showToast({ uni.showToast({
icon:"none", icon:"none",
title:`领料单创建成功,明细第${i+1}条添加失败,即将返回上一页` title:`领料单创建成功,明细第${i+1}条添加失败,即将返回上一页`,
duration:3000
}) })
setTimeout(()=>{ setTimeout(()=>{
this.onBack(); this.onBack();
},5000) },3500)
} }
}) })
}, },
......
...@@ -39,9 +39,8 @@ ...@@ -39,9 +39,8 @@
lineColor="#0072fc" :activeStyle="{color: '#0072fc',fontWeight:'bold',fontSize:'16px'}"></u-tabs> lineColor="#0072fc" :activeStyle="{color: '#0072fc',fontWeight:'bold',fontSize:'16px'}"></u-tabs>
</view> </view>
<view class="flex-col part-3"> <view class="flex-col part-3">
<view v-for="(item,k) in projectDataList" :key="k" class="content-item"> <view v-for="(item,k) in projectDataList" :key="k" class="content-item" @tap="onNavToOrderInfo(item)">
<view class="header-title" >
<view class="header-title" @tap="onNavToOrderInfo(item)">
<image src="../../static/icon5.png" mode="widthFix"></image> <image src="../../static/icon5.png" mode="widthFix"></image>
<view class="flex-between"> <view class="flex-between">
<text class="text-black text-bold ellipsis">{{item.projName}}</text> <text class="text-black text-bold ellipsis">{{item.projName}}</text>
......
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