代码审查问题修改
This commit is contained in:
parent
1baf4d5e50
commit
f30cde0cec
|
|
@ -301,6 +301,7 @@
|
||||||
countCost(list){
|
countCost(list){
|
||||||
let arrCost = 0;
|
let arrCost = 0;
|
||||||
list.forEach(item=>{
|
list.forEach(item=>{
|
||||||
|
console.log(item)
|
||||||
if(item.partType==0){
|
if(item.partType==0){
|
||||||
arrCost = arrCost
|
arrCost = arrCost
|
||||||
}else if(item.scrapType==0){
|
}else if(item.scrapType==0){
|
||||||
|
|
@ -310,7 +311,7 @@
|
||||||
}
|
}
|
||||||
// console.log(arrCost)
|
// console.log(arrCost)
|
||||||
})
|
})
|
||||||
console.log(arrCost)
|
// console.log(arrCost)
|
||||||
return arrCost.toFixed(2)
|
return arrCost.toFixed(2)
|
||||||
},
|
},
|
||||||
//提交按钮
|
//提交按钮
|
||||||
|
|
|
||||||
|
|
@ -104,7 +104,7 @@ export default {
|
||||||
top: 20%;
|
top: 20%;
|
||||||
left: 14%;
|
left: 14%;
|
||||||
width: auto;
|
width: auto;
|
||||||
height: 500px;
|
// height: 500px;
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
display: flex;
|
display: flex;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
|
|
@ -164,7 +164,6 @@ export default {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
font-family: Arial;
|
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
letter-spacing: 1px;
|
letter-spacing: 1px;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -133,7 +133,7 @@
|
||||||
checkMan:'',//本次检验人
|
checkMan:'',//本次检验人
|
||||||
thisCheckTime:'',//本次检验日期
|
thisCheckTime:'',//本次检验日期
|
||||||
nextCheckTime:'',//下次检验日期
|
nextCheckTime:'',//下次检验日期
|
||||||
maStatusName:'',//设备状态
|
// maStatusName:'',//设备状态
|
||||||
inspectMan:'',//检验人员
|
inspectMan:'',//检验人员
|
||||||
inspectStatus:'',//检验结论
|
inspectStatus:'',//检验结论
|
||||||
phone:'',//联系电话
|
phone:'',//联系电话
|
||||||
|
|
|
||||||
|
|
@ -489,14 +489,14 @@ export default {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
passAll() {
|
passAll() {
|
||||||
console.log(this.query.taskId)
|
// console.log(this.query.taskId)
|
||||||
console.log(this.ids)
|
// console.log(this.ids)
|
||||||
this.ids.forEach(item => {
|
this.ids.forEach(item => {
|
||||||
item.taskId = this.query.taskId;
|
item.taskId = this.query.taskId;
|
||||||
item.typeId= item.typeId
|
// item.typeId= item.typeId
|
||||||
item.maId= item.maId
|
// item.maId= item.maId
|
||||||
item.inputNum= item.checkNum
|
item.inputNum= item.checkNum
|
||||||
item.maCode= item.maCode
|
// item.maCode= item.maCode
|
||||||
});
|
});
|
||||||
let param ={
|
let param ={
|
||||||
taskId:this.query.taskId,
|
taskId:this.query.taskId,
|
||||||
|
|
@ -515,8 +515,8 @@ export default {
|
||||||
},
|
},
|
||||||
//拒绝
|
//拒绝
|
||||||
refused(row) {
|
refused(row) {
|
||||||
console.log(row)
|
// console.log(row)
|
||||||
console.log(this.query.taskId)
|
// console.log(this.query.taskId)
|
||||||
row.taskId = this.query.taskId;
|
row.taskId = this.query.taskId;
|
||||||
let obj = {
|
let obj = {
|
||||||
taskId:this.query.taskId,
|
taskId:this.query.taskId,
|
||||||
|
|
@ -542,14 +542,14 @@ export default {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
refusedAll() {
|
refusedAll() {
|
||||||
console.log(this.query.taskId)
|
// console.log(this.query.taskId)
|
||||||
console.log(this.ids)
|
// console.log(this.ids)
|
||||||
this.ids.forEach(item => {
|
this.ids.forEach(item => {
|
||||||
item.taskId = this.query.taskId;
|
item.taskId = this.query.taskId;
|
||||||
item.typeId= item.typeId
|
// item.typeId= item.typeId
|
||||||
item.maId= item.maId
|
// item.maId= item.maId
|
||||||
item.inputNum= item.checkNum
|
item.inputNum= item.checkNum
|
||||||
item.maCode= item.maCode
|
// item.maCode= item.maCode
|
||||||
});
|
});
|
||||||
let param ={
|
let param ={
|
||||||
taskId:this.query.taskId,
|
taskId:this.query.taskId,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue