|
|
@ -77,7 +77,7 @@ |
|
|
|
驳回</el-button> |
|
|
|
驳回</el-button> |
|
|
|
<el-button type="primary" |
|
|
|
<el-button type="primary" |
|
|
|
size="small" |
|
|
|
size="small" |
|
|
|
@click="seachToUpdate" |
|
|
|
@click="searchToUpdate" |
|
|
|
v-if="shouldShowButton"> |
|
|
|
v-if="shouldShowButton"> |
|
|
|
修改</el-button> |
|
|
|
修改</el-button> |
|
|
|
<el-button type="primary" |
|
|
|
<el-button type="primary" |
|
|
@ -340,9 +340,9 @@ export default { |
|
|
|
rules: [{ |
|
|
|
rules: [{ |
|
|
|
required: true, |
|
|
|
required: true, |
|
|
|
}], |
|
|
|
}], |
|
|
|
type: "date", |
|
|
|
type: "datetime", |
|
|
|
format: 'yyyy/MM/dd', |
|
|
|
format: 'yyyy/MM/dd HH:mm:ss', |
|
|
|
valueFormat: "yyyyMMdd", |
|
|
|
valueFormat: "yyyyMMddHH:mm:ss", |
|
|
|
span: 8, |
|
|
|
span: 8, |
|
|
|
maxlength: 20, |
|
|
|
maxlength: 20, |
|
|
|
}, |
|
|
|
}, |
|
|
@ -352,9 +352,9 @@ export default { |
|
|
|
rules: [{ |
|
|
|
rules: [{ |
|
|
|
required: true, |
|
|
|
required: true, |
|
|
|
}], |
|
|
|
}], |
|
|
|
type: "date", |
|
|
|
type: "datetime", |
|
|
|
format: 'yyyy/MM/dd', |
|
|
|
format: 'yyyy/MM/dd HH:mm:ss', |
|
|
|
valueFormat: "yyyyMMdd", |
|
|
|
valueFormat: "yyyyMMddHH:mm:ss", |
|
|
|
span: 8, |
|
|
|
span: 8, |
|
|
|
maxlength: 20, |
|
|
|
maxlength: 20, |
|
|
|
}, |
|
|
|
}, |
|
|
@ -364,9 +364,9 @@ export default { |
|
|
|
rules: [{ |
|
|
|
rules: [{ |
|
|
|
required: true, |
|
|
|
required: true, |
|
|
|
}], |
|
|
|
}], |
|
|
|
type: "date", |
|
|
|
type: "datetime", |
|
|
|
format: 'yyyy/MM/dd', |
|
|
|
format: 'yyyy/MM/dd HH:mm:ss', |
|
|
|
valueFormat: "yyyyMMdd", |
|
|
|
valueFormat: "yyyyMMddHH:mm:ss", |
|
|
|
span: 8, |
|
|
|
span: 8, |
|
|
|
maxlength: 20, |
|
|
|
maxlength: 20, |
|
|
|
}, |
|
|
|
}, |
|
|
@ -613,7 +613,7 @@ export default { |
|
|
|
created () { |
|
|
|
created () { |
|
|
|
this.type = this.option.column[0]; |
|
|
|
this.type = this.option.column[0]; |
|
|
|
// this.option.column.push({ label: '操作项目', prop: 'operationItem' }); |
|
|
|
// this.option.column.push({ label: '操作项目', prop: 'operationItem' }); |
|
|
|
if(this.$route.query.frameMode == "add"){ |
|
|
|
if(this.$route.query.frameMode === "add"){ |
|
|
|
this.readonlyForm=false; |
|
|
|
this.readonlyForm=false; |
|
|
|
this.shouldShowButton=false; |
|
|
|
this.shouldShowButton=false; |
|
|
|
this.addUpdateShowButton=true; |
|
|
|
this.addUpdateShowButton=true; |
|
|
@ -665,14 +665,14 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 处理表单提交 |
|
|
|
// 处理表单提交 |
|
|
|
Submit() { |
|
|
|
Submit() { |
|
|
|
if(this.$route.query.frameMode=="add"){ |
|
|
|
if(this.$route.query.frameMode==="add"){ |
|
|
|
this.$confirm("是否新增所填数据?", "提示", { |
|
|
|
this.$confirm("是否新增所填数据?", "提示", { |
|
|
|
confirmButtonText: "确定", |
|
|
|
confirmButtonText: "确定", |
|
|
|
cancelButtonText: "取消", |
|
|
|
cancelButtonText: "取消", |
|
|
|
type: "warning" |
|
|
|
type: "warning" |
|
|
|
}).then(() => { |
|
|
|
}).then(() => { |
|
|
|
this.tab1_form.reviewStatus="1" |
|
|
|
this.tab1_form.reviewStatus="1"; |
|
|
|
this.tab1_form.sts= "1" |
|
|
|
this.tab1_form.sts= "1" ; |
|
|
|
add(this.tab1_form).then(()=>{ |
|
|
|
add(this.tab1_form).then(()=>{ |
|
|
|
this.$router.push({ |
|
|
|
this.$router.push({ |
|
|
|
path: "/smart/operationticket", |
|
|
|
path: "/smart/operationticket", |
|
|
@ -697,7 +697,7 @@ export default { |
|
|
|
type: "warning" |
|
|
|
type: "warning" |
|
|
|
}).then(() => { |
|
|
|
}).then(() => { |
|
|
|
this.tab1_form.reviewStatus="1" |
|
|
|
this.tab1_form.reviewStatus="1" |
|
|
|
add(this.tab1_form).then(() => { |
|
|
|
update(this.tab1_form).then(() => { |
|
|
|
this.$router.push({ |
|
|
|
this.$router.push({ |
|
|
|
path: "/smart/operationticket", |
|
|
|
path: "/smart/operationticket", |
|
|
|
query: {}, |
|
|
|
query: {}, |
|
|
@ -716,14 +716,14 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
back() { |
|
|
|
back() { |
|
|
|
if(this.$route.query.frameMode=="add") { |
|
|
|
if(this.$route.query.frameMode==="add") { |
|
|
|
this.$router.push({path: "/smart/operationticket"}); |
|
|
|
this.$router.push({path: "/smart/operationticket"}); |
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
this.updateToSearch(); |
|
|
|
this.updateToSearch(); |
|
|
|
this.SearchDetail(); |
|
|
|
this.SearchDetail(); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
seachToUpdate () { |
|
|
|
searchToUpdate () { |
|
|
|
this.shouldShowButton=false; |
|
|
|
this.shouldShowButton=false; |
|
|
|
this.addUpdateShowButton=true; |
|
|
|
this.addUpdateShowButton=true; |
|
|
|
this.readonlyForm=false; |
|
|
|
this.readonlyForm=false; |
|
|
@ -740,9 +740,15 @@ export default { |
|
|
|
this.item_form.operationTicketNo = this.tab1_form.operationTicketNo; |
|
|
|
this.item_form.operationTicketNo = this.tab1_form.operationTicketNo; |
|
|
|
this.item_onLoad(); |
|
|
|
this.item_onLoad(); |
|
|
|
if(this.type.prop==='operationItem'){ |
|
|
|
if(this.type.prop==='operationItem'){ |
|
|
|
|
|
|
|
this.shouldShowButton=false; |
|
|
|
this.addUpdateShowButton=false; |
|
|
|
this.addUpdateShowButton=false; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
else { |
|
|
|
|
|
|
|
if(this.$route.query.frameMode!=="add"){ |
|
|
|
|
|
|
|
this.updateToSearch() |
|
|
|
}else { |
|
|
|
}else { |
|
|
|
this.addUpdateShowButton=true; |
|
|
|
this.addUpdateShowButton = this.type.prop !== 'operationItem'; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|