main
zhen 11 months ago
parent 8fffd3d41b
commit 19924726b3
  1. 24
      src/views/smart/operationticketDetail.vue

@ -77,7 +77,7 @@
驳回</el-button>
<el-button type="primary"
size="small"
@click="seachToUpdate"
@click="searchToUpdate"
v-if="shouldShowButton">
修改</el-button>
<el-button type="primary"
@ -613,7 +613,7 @@ export default {
created () {
this.type = this.option.column[0];
// this.option.column.push({ label: '', prop: 'operationItem' });
if(this.$route.query.frameMode == "add"){
if(this.$route.query.frameMode === "add"){
this.readonlyForm=false;
this.shouldShowButton=false;
this.addUpdateShowButton=true;
@ -665,14 +665,14 @@ export default {
},
//
Submit() {
if(this.$route.query.frameMode=="add"){
if(this.$route.query.frameMode==="add"){
this.$confirm("是否新增所填数据?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
}).then(() => {
this.tab1_form.reviewStatus="1"
this.tab1_form.sts= "1"
this.tab1_form.reviewStatus="1";
this.tab1_form.sts= "1" ;
add(this.tab1_form).then(()=>{
this.$router.push({
path: "/smart/operationticket",
@ -697,7 +697,7 @@ export default {
type: "warning"
}).then(() => {
this.tab1_form.reviewStatus="1"
add(this.tab1_form).then(() => {
update(this.tab1_form).then(() => {
this.$router.push({
path: "/smart/operationticket",
query: {},
@ -716,14 +716,14 @@ export default {
}
},
back() {
if(this.$route.query.frameMode=="add") {
if(this.$route.query.frameMode==="add") {
this.$router.push({path: "/smart/operationticket"});
}else{
this.updateToSearch();
this.SearchDetail();
}
},
seachToUpdate () {
searchToUpdate () {
this.shouldShowButton=false;
this.addUpdateShowButton=true;
this.readonlyForm=false;
@ -740,9 +740,15 @@ export default {
this.item_form.operationTicketNo = this.tab1_form.operationTicketNo;
this.item_onLoad();
if(this.type.prop==='operationItem'){
this.shouldShowButton=false;
this.addUpdateShowButton=false;
}
else {
if(this.$route.query.frameMode!=="add"){
this.updateToSearch()
}else {
this.addUpdateShowButton=true;
this.addUpdateShowButton = this.type.prop !== 'operationItem';
}
}
},

Loading…
Cancel
Save