@@ -375,7 +375,7 @@
:options="partTypeTreeTwo"
:searchable="true"
:disable-branch-nodes="true"
- :show-count="false"
+ :show-count="false"
:expand-on-click-node="false"
placeholder="请选择配件型号"
style="width: 200px;"
@@ -401,7 +401,7 @@
-
+
@@ -477,7 +477,7 @@
-
@@ -518,7 +518,7 @@
-
+
{
this.partTypeTreeTwo = this.filterTree(res.data);
this.resetForm("formLeft");
@@ -964,7 +964,7 @@ export default {
});
}
if (this.repairRowData.repairDeviceList&&this.repairRowData.repairDeviceList.length > 0) {
- this.repairDeviceList = this.repairRowData.repairDeviceList;
+ this.repairDeviceList = this.repairRowData.repairDeviceList;
}
},
//遍历树状数据
@@ -979,7 +979,7 @@ export default {
return node;
});
},
-
+
// ********编码维修********
@@ -1008,10 +1008,10 @@ export default {
this.equipmentList = res.data;
this.equipmentList.forEach((e) => {
e.disrepairNum = Number(e.typeRepairNum) - Number(e.typeRepairedNum)-Number(e.typeScrapNum);
- });
+ });
this.openCode = false;
// console.log(this.equipmentList)
- },
+ },
// 编码维修弹窗取消
async cancelCodeDialog(){
let param = {
@@ -1023,7 +1023,7 @@ export default {
this.equipmentList = res.data;
this.equipmentList.forEach((e) => {
e.disrepairNum = Number(e.typeRepairNum) - Number(e.typeRepairedNum)-Number(e.typeScrapNum);
- });
+ });
this.openCode = false;
},
@@ -1046,7 +1046,7 @@ export default {
const params = {};
const res = await partTypeTreeList(params);
console.log("treeData==========", res);
- this.partTypeTree = res.data;
+ this.partTypeTree = res.data;
},
//编码-内部维修- 反显 树结构数据获取父 -旧组件
getSelectId(list, id) {
@@ -1155,7 +1155,7 @@ export default {
return null; // 未找到父节点时返回null
},
//编码-内部维修- 重置按钮操作
- resetInner() {
+ resetInner() {
this.partTypeId=null;
this.partTableList = [];
},
@@ -1310,6 +1310,11 @@ export default {
this.uploadKey = Date.now();
this.$refs["scrapForm"].validate(async(valid) => {
if(valid){
+ // 添加文件必传验证
+ if(this.fileList.length === 0){
+ this.$message.error('请上传照片');
+ return;
+ }
if(this.fileList.length!=0){
await this.getImaUpload(),
await this.addWaitRepairPic(this.scrapForm);
@@ -1336,7 +1341,7 @@ export default {
this.fileList = [];
this.fileListTemp = [];
this.resetForm("scrapForm");
- },
+ },
//编码-待报废-上传文件库
async getImaUpload(){
this.fileListTemp = [];
@@ -1447,7 +1452,7 @@ export default {
};
// this.scrapForm={}
}
- },
+ },
@@ -1512,7 +1517,7 @@ export default {
this.partItems.splice(index, 1);
this.dividerHeight -= 200; // 每次删除配件时,竖线高度减少
}
- },
+ },
//数量管理中间-返厂维修-添加
addPartItemMiddle() {
this.partItemsMiddle.push({ partTypeName: "", partNum: "", partType: "0" });
@@ -1539,6 +1544,13 @@ export default {
})
return
}
+ if((Number(this.formLeft.repairNum) + Number(this.formMiddle.repairNum)+ Number(this.formRight.scrapNum)) ==0) {
+ this.$message({
+ message: '请输入维修数量 ',
+ type: 'warning'
+ })
+ return
+ }
let refTemp = [];
if(this.formLeft.repairNum!=0){
refTemp.push(this.$refs.formLeft)
@@ -1548,6 +1560,11 @@ export default {
}
if(this.formRight.scrapNum!=0){
refTemp.push(this.$refs.formRight)
+ // 添加文件必传验证
+ if(this.fileList.length === 0){
+ this.$message.error('请上传照片');
+ return;
+ }
}
const valid = await this.validateForms(refTemp)
if(valid){
@@ -1596,7 +1613,7 @@ export default {
this.equipmentList = res.data;
this.equipmentList.forEach((e) => {
e.disrepairNum = Number(e.typeRepairNum) - Number(e.typeRepairedNum)-Number(e.typeScrapNum);
- });
+ });
this.openNum=false;
}
});
@@ -1659,7 +1676,7 @@ export default {
// this.equipmentList = res.data;
// this.equipmentList.forEach((e) => {
// e.disrepairNum = Number(e.typeRepairNum) - Number(e.typeRepairedNum)-Number(e.typeScrapNum);
- // });
+ // });
// this.openNum=false;
// }
// });
@@ -1713,12 +1730,12 @@ export default {
// this.equipmentList = res.data;
// this.equipmentList.forEach((e) => {
// e.disrepairNum = Number(e.typeRepairNum) - Number(e.typeRepairedNum)-Number(e.typeScrapNum);
- // });
+ // });
// }
// })
// }
-
+
},
//数量维修取消
saveCancelAll(){
@@ -1730,7 +1747,7 @@ export default {
this.partItems = [{ partNum: "", partType: "0", partId:null, storageNum:"" }],
this.partItemsMiddle = [{ partName: "", partNum: "", partPrice: "0", partType: "0" }],
this.openNum=false;
- },
+ },
//待维修数量限制统计
waitRepairCount(){
if((Number(this.formLeft.repairNum) + Number(this.formMiddle.repairNum)+ Number(this.formRight.scrapNum)) >this.disrepairNumTemp){
@@ -1748,7 +1765,7 @@ export default {
if(Number(this.formRight.scrapNum)==0){
this.resetForm("formRight")
}
- },
+ },
},
};
@@ -1794,4 +1811,4 @@ export default {
margin: 0 10px;
flex-shrink: 0; /* 防止竖线在内容较少时缩小 */
}
-
\ No newline at end of file
+
diff --git a/src/views/material/repair/repairManage/component/home.vue b/src/views/material/repair/repairManage/component/home.vue
index f22d1d19..1c39a53e 100644
--- a/src/views/material/repair/repairManage/component/home.vue
+++ b/src/views/material/repair/repairManage/component/home.vue
@@ -311,40 +311,50 @@
-
-
-
-
负责人:
+
+
+
+
+ 维修人员:
+
+
+
-
-
- 完成日期:
- {{ repairTicketlLevelOne.finishTime }}
-
-
-
-
-
-
-
-
-
-
-
- 检验人员:
-
+
+
+ 完成日期:
+ {{ repairTicketlLevelOne.repairTime }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -510,8 +520,8 @@ export default {
//维修单显示
openPrint:false,
printData: {},
- //选择的taskId数组
- ids:[],
+ // //选择的taskId数组
+ // ids:[],
taskList:[],
//维修任务单上部分数据
repairTicketlLevelOne:{},
@@ -866,4 +876,8 @@ export default {
.part-info .total-price {
margin-left: 20px; /* 调整间距大小 */
}
+.is-rotate {
+ transform: rotate(-90deg);
+ transform-origin: center center;
+}