From 4d8db47ca6e8ad9986fa80f7b5819646ea494d98 Mon Sep 17 00:00:00 2001
From: Admin <978517621@qq.com>
Date: Fri, 30 Sep 2022 09:58:21 +0800
Subject: [PATCH] Default Changelist
---
src/views/specialWorkSystem/workTicket/workApply/components/fire.vue | 22 ++++++++++++++++++++--
1 files changed, 20 insertions(+), 2 deletions(-)
diff --git a/src/views/specialWorkSystem/workTicket/workApply/components/fire.vue b/src/views/specialWorkSystem/workTicket/workApply/components/fire.vue
index 3d7fa88..82e57fd 100644
--- a/src/views/specialWorkSystem/workTicket/workApply/components/fire.vue
+++ b/src/views/specialWorkSystem/workTicket/workApply/components/fire.vue
@@ -270,6 +270,24 @@
return
}
for(let i in state.materialList){
+ for(let j in state.materialList[i].mustList){
+ if(state.materialList[i].mustList[j].value>state.materialList[i].mustList[j].stock){
+ ElMessage({
+ type: 'warning',
+ message: '部分物资库存不足,请重新配置数量。'
+ });
+ return
+ }
+ }
+ for(let j in state.materialList[i].unList){
+ if(state.materialList[i].unList[j].value>state.materialList[i].unList[j].stock){
+ ElMessage({
+ type: 'warning',
+ message: '部分物资库存不足,请重新配置数量。'
+ });
+ return
+ }
+ }
state.materialList[i].mustList = state.materialList[i].mustList.map((item:any)=>{
const obj = {
defaultVal: item.value,
@@ -298,13 +316,13 @@
message: '提交成功!'
});
formEl.resetFields()
- state.materialList = []
} else {
ElMessage({
type: 'warning',
message: res.data.msg
});
}
+ state.materialList = []
} else {
console.log('error submit!', fields)
}
@@ -363,6 +381,7 @@
state.equipmentDialog = true
}
}
+
const conFirmDevices = ()=>{
for(let i in state.materialList){
for(let j in state.materialList[i].mustList){
@@ -383,7 +402,6 @@
return
}
}
-
}
ElMessageBox.confirm('是否确认物资及数量配置?')
.then(() => {
--
Gitblit v1.9.2