Commit cf0e9287 by zhangzhen

细节优化

parent d1966f02
......@@ -203,7 +203,7 @@
</view>
<view class="footer-box">
<button class="cu-btn block bg-blue" @tap="onSubmit">提交</button>
<button class="cu-btn block bg-blue" @tap="onSubmit">保存</button>
</view>
<u-calendar :show="show2" mode="single" :defaultDate="receiptDate" :minDate="minDate" :monthNum='4'
@confirm="onConfirm" @close="onCancel"></u-calendar>
......@@ -345,6 +345,23 @@
})
return
}
if (!this.formList.length) {
uni.showToast({
icon: "none",
title: "请添加至少一项明细"
})
return
}
let len = this.formList.filter(item=> item.inventRecordIndex>=0)
if(!len.length){
uni.showToast({
icon: "none",
title: "请将明细数据补充完整"
})
return
}
this.show = true
},
onOpenCalendar() {
......@@ -420,6 +437,14 @@
}).then(res =>{
if (res.data.__sys__.status === 0) {
this.onSubSave(++i);
}else{
uni.showToast({
icon:"none",
title:`领料单创建成功,明细第${i+1}条添加失败,即将返回上一页`
})
setTimeout(()=>{
this.onBack();
},5000)
}
})
},
......
......@@ -184,7 +184,7 @@
<view v-if="orderInfo.status=='0'" class="footer-box">
<button class="cu-btn block bg-blue" @tap="onSubmit(1)">提交</button>
<button class="cu-btn block bg-blue" @tap="onSubmit(1)">保存</button>
<button v-if="subId" class="cu-btn block bg-green" @tap="onSubmit(2)">删除</button>
</view>
<u-modal :show="show" title="提示" :content='content' :showCancelButton="true" @confirm="onSave"
......
......@@ -39,6 +39,30 @@
:disabled="true"
></u--input>
</view>
<view class="flex-col">
<view class="margin-sm">
<text class="text-black text-title text-lg">产品规格:</text>
</view>
<u--input
placeholder="请输入内容"
border="surround"
v-model="orderInfo.spec"
:disabled="true"
></u--input>
</view>
<view class="flex-col">
<view class="margin-sm">
<text class="text-black text-title text-lg">产品长度:</text>
</view>
<u--input
placeholder="请输入内容"
border="surround"
v-model="orderInfo.length"
:disabled="true"
></u--input>
</view>
<view class="flex-col">
<view class="margin-sm">
<text class="text-black text-title text-lg">公司名称:</text>
......
......@@ -133,6 +133,16 @@
<text class="text-title">{{item.productName}}({{item.processName}})</text>
</view>
<view class="flex-row">
<text class="text-gray part-1">产品规格</text>
<text class="text-gray part-2">:</text>
<text class="text-title">{{item.spec}}</text>
</view>
<view class="flex-row">
<text class="text-gray part-1">产品长度</text>
<text class="text-gray part-2">:</text>
<text class="text-title">{{item.length}}</text>
</view>
<view class="flex-row">
<text class="text-gray part-1">计划完成日期</text>
<text class="text-gray part-2">:</text>
<text class="text-title">{{item.planEndDate}}</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