|
@@ -682,6 +682,7 @@
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
var ccode = this.$route.query.id;
|
|
var ccode = this.$route.query.id;
|
|
|
|
+ this.factorySignatureUrl = '';
|
|
if (ccode != undefined && ccode != ""){
|
|
if (ccode != undefined && ccode != ""){
|
|
this.visible=true
|
|
this.visible=true
|
|
this.showFooter=false
|
|
this.showFooter=false
|
|
@@ -712,14 +713,18 @@
|
|
push(){
|
|
push(){
|
|
this.visibleTs = false
|
|
this.visibleTs = false
|
|
var pushOk = 'yes'
|
|
var pushOk = 'yes'
|
|
- this.incidentTicketChildrenTable.dataSource.every(item=>{
|
|
|
|
- if(item.zhanghaoId==''||!item.zhanghaoId){
|
|
|
|
- this.$message.warning('请选择账套号!')
|
|
|
|
- pushOk = 'no'
|
|
|
|
- return false;
|
|
|
|
- }
|
|
|
|
- return true
|
|
|
|
- })
|
|
|
|
|
|
+ console.log("sssssssssssssssss",this.formState.isConfirm);
|
|
|
|
+ if(this.formState.isConfirm !='1'){
|
|
|
|
+ this.incidentTicketChildrenTable.dataSource.every(item=>{
|
|
|
|
+ if(item.zhanghaoId==''||!item.zhanghaoId){
|
|
|
|
+ this.$message.warning('请选择账套号!')
|
|
|
|
+ pushOk = 'no'
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ return true
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+
|
|
if(pushOk=='yes'){
|
|
if(pushOk=='yes'){
|
|
this.confirmLoading = true
|
|
this.confirmLoading = true
|
|
getAction('/oa/incidentTicket/propelling', {headId:this.formState.id}).then((res) => {
|
|
getAction('/oa/incidentTicket/propelling', {headId:this.formState.id}).then((res) => {
|
|
@@ -770,6 +775,8 @@
|
|
})
|
|
})
|
|
},
|
|
},
|
|
getHeaderList(id){
|
|
getHeaderList(id){
|
|
|
|
+
|
|
|
|
+ this.factorySignatureUrl = '';
|
|
getAction('/oa/incidentTicket/queryById', {id:id}).then((res) => {
|
|
getAction('/oa/incidentTicket/queryById', {id:id}).then((res) => {
|
|
if(res.success){
|
|
if(res.success){
|
|
var zhuId = '' //主表id
|
|
var zhuId = '' //主表id
|
|
@@ -896,13 +903,13 @@
|
|
|
|
|
|
textArea[i].style.height = '100px';// 先设置成auto,再设置高度,删除文字的时候高度才会改变
|
|
textArea[i].style.height = '100px';// 先设置成auto,再设置高度,删除文字的时候高度才会改变
|
|
if(textArea[i].value.length > 1000){
|
|
if(textArea[i].value.length > 1000){
|
|
- textArea[i].style.height = textArea[i].scrollHeight+200 + 'px'
|
|
|
|
|
|
+ textArea[i].style.height = textArea[i].scrollHeight+100 + 'px'
|
|
}else if(textArea[i].value.length > 900){
|
|
}else if(textArea[i].value.length > 900){
|
|
- textArea[i].style.height = textArea[i].scrollHeight+175 + 'px'
|
|
|
|
|
|
+ textArea[i].style.height = textArea[i].scrollHeight+100 + 'px'
|
|
}else if(textArea[i].value.length > 750){
|
|
}else if(textArea[i].value.length > 750){
|
|
- textArea[i].style.height = textArea[i].scrollHeight+150 + 'px'
|
|
|
|
|
|
+ textArea[i].style.height = textArea[i].scrollHeight+100 + 'px'
|
|
}else if(textArea[i].value.length > 600){
|
|
}else if(textArea[i].value.length > 600){
|
|
- textArea[i].style.height = textArea[i].scrollHeight+120 + 'px'
|
|
|
|
|
|
+ textArea[i].style.height = textArea[i].scrollHeight+100 + 'px'
|
|
}else if(textArea[i].value.length > 300){
|
|
}else if(textArea[i].value.length > 300){
|
|
textArea[i].style.height = textArea[i].scrollHeight+80 + 'px'
|
|
textArea[i].style.height = textArea[i].scrollHeight+80 + 'px'
|
|
}else if(textArea[i].value.length > 200){
|
|
}else if(textArea[i].value.length > 200){
|
|
@@ -911,10 +918,27 @@
|
|
textArea[i].style.height = textArea[i].scrollHeight+30 + 'px'
|
|
textArea[i].style.height = textArea[i].scrollHeight+30 + 'px'
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ // textArea[i].style.height = '100px';// 先设置成auto,再设置高度,删除文字的时候高度才会改变
|
|
|
|
+ // if(textArea[i].value.length > 1000){
|
|
|
|
+ // textArea[i].style.height = textArea[i].scrollHeight+200 + 'px'
|
|
|
|
+ // }else if(textArea[i].value.length > 900){
|
|
|
|
+ // textArea[i].style.height = textArea[i].scrollHeight+175 + 'px'
|
|
|
|
+ // }else if(textArea[i].value.length > 750){
|
|
|
|
+ // textArea[i].style.height = textArea[i].scrollHeight+150 + 'px'
|
|
|
|
+ // }else if(textArea[i].value.length > 600){
|
|
|
|
+ // textArea[i].style.height = textArea[i].scrollHeight+120 + 'px'
|
|
|
|
+ // }else if(textArea[i].value.length > 300){
|
|
|
|
+ // textArea[i].style.height = textArea[i].scrollHeight+80 + 'px'
|
|
|
|
+ // }else if(textArea[i].value.length > 200){
|
|
|
|
+ // textArea[i].style.height = textArea[i].scrollHeight+60 + 'px'
|
|
|
|
+ // }else{
|
|
|
|
+ // textArea[i].style.height = textArea[i].scrollHeight+30 + 'px'
|
|
|
|
+ // }
|
|
|
|
+
|
|
}
|
|
}
|
|
win.print();
|
|
win.print();
|
|
win.close();
|
|
win.close();
|
|
- },1000)
|
|
|
|
|
|
+ },1500)
|
|
|
|
|
|
})
|
|
})
|
|
|
|
|