From 0563fbc0a87510c5fcf803f9ee6379a3c26b1a42 Mon Sep 17 00:00:00 2001
From: TengXF <302828528@qq.com>
Date: Tue, 21 May 2024 09:16:45 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20update=20=E5=8F=AB=E6=96=99=E5=A2=9E?=
=?UTF-8?q?=E5=8A=A0=E5=BC=B9=E7=AA=97=E6=8F=90=E7=A4=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages/mes/workScheduling/callMaterial.vue | 44 ++++++++++++-------
1 file changed, 29 insertions(+), 15 deletions(-)
diff --git a/src/pages/mes/workScheduling/callMaterial.vue b/src/pages/mes/workScheduling/callMaterial.vue
index 47353d4..44ba349 100644
--- a/src/pages/mes/workScheduling/callMaterial.vue
+++ b/src/pages/mes/workScheduling/callMaterial.vue
@@ -17,11 +17,17 @@
计划数量:{{ item.srcMaterialCounts * planCountStr }}
-
+
+ 叫料数量:
+
+
+
+
+
提交
@@ -109,23 +115,31 @@ function submitCMForm () {
proxy.$modal.alert("叫料数量不能大于计划数量");
return
}
+ if( parseInt(list.value[i].totalMaterialCounts) == 0 ){
+ proxy.$modal.alert("叫料数量不能为0");
+ return
+ }
+
}
- param.value.remark = JSON.stringify(list.value)
- workSchedulingListApi.callBasicItemForm(param.value).then((res) => {
- console.log(res)
- if (res.data) {
- proxy.$modal.showToast('成功')
- setTimeout(() => {
- proxy.$tab.navigateBack()
+ proxy.$modal.confirm('确定提交处理吗').then(() => {
+ param.value.remark = JSON.stringify(list.value)
+ workSchedulingListApi.callBasicItemForm(param.value).then((res) => {
+ console.log(res)
+ if (res.data) {
+ proxy.$modal.showToast('成功')
+ setTimeout(() => {
+ proxy.$tab.navigateBack()
+ loading.value = false
+ proxy.$modal.closeLoading()
+ }, 1000)
+ }else{
+ proxy.$modal.showToast('失败')
loading.value = false
proxy.$modal.closeLoading()
- }, 1000)
- }else{
- proxy.$modal.showToast('失败')
- loading.value = false
- proxy.$modal.closeLoading()
- }
+ }
+ })
})
+
}
//滑动到底部展示