bug 修复
This commit is contained in:
parent
bedb962335
commit
822623eeef
|
|
@ -1163,25 +1163,25 @@ export default {
|
|||
},
|
||||
//编码-内部维修- 弹窗保存
|
||||
saveInnerDialog() {
|
||||
const isNum = this.partTableList.some(
|
||||
(item) => item.partNum == 0 || item.partNum == undefined
|
||||
);
|
||||
if (isNum) {
|
||||
this.$message.error("配件数量不能为0!");
|
||||
return;
|
||||
}
|
||||
// const isNum = this.partTableList.some(
|
||||
// (item) => item.partNum == 0 || item.partNum == undefined
|
||||
// );
|
||||
// if (isNum) {
|
||||
// this.$message.error("配件数量不能为0!");
|
||||
// return;
|
||||
// }
|
||||
this.innerRowData.partTableList = this.partTableList;
|
||||
this.innerRowData.repairType = 1;
|
||||
this.innerRowData.partTableList.forEach((item) => {
|
||||
this.innerRowData.codeInRepairPartList.push(item);
|
||||
});
|
||||
if(this.partTableList.length==0) {
|
||||
this.$message.error("请添加配件!");
|
||||
return;
|
||||
}else{
|
||||
// if(this.partTableList.length==0) {
|
||||
// this.$message.error("请添加配件!");
|
||||
// return;
|
||||
// }else{
|
||||
this.innerRowData.status = 1;
|
||||
this.openInner = false;
|
||||
}
|
||||
// }
|
||||
// console.log(this.equipmentList)
|
||||
},
|
||||
|
||||
|
|
@ -1526,6 +1526,13 @@ export default {
|
|||
},
|
||||
//数量管理保存
|
||||
async saveNumAll() {
|
||||
if((Number(this.formLeft.repairNum) + Number(this.formMiddle.repairNum)+ Number(this.formRight.scrapNum)) >this.disrepairNumTemp) {
|
||||
this.$message({
|
||||
message: '维修总数不能大于待维修数量',
|
||||
type: 'warning'
|
||||
})
|
||||
return
|
||||
}
|
||||
let refTemp = [];
|
||||
if(this.formLeft.repairNum!=0){
|
||||
refTemp.push(this.$refs.formLeft)
|
||||
|
|
|
|||
Loading…
Reference in New Issue