Commit 8705034b by zhangzhen

生产领料细节优化

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