diff --git a/src/views/smart/operationticket.vue b/src/views/smart/operationticket.vue index edc7786..6d0be57 100644 --- a/src/views/smart/operationticket.vue +++ b/src/views/smart/operationticket.vue @@ -254,6 +254,7 @@ import {getList, getDetail, add, update, remove, closeticket} from "@/api/smart/ { label: "计划结束时间", prop: "plannedEndTime", + type: "date", format: 'yyyy/MM/dd', valueFormat: "yyyyMMdd", rules: [{ @@ -265,6 +266,7 @@ import {getList, getDetail, add, update, remove, closeticket} from "@/api/smart/ { label: "签发时间", prop: "workIssuanceTime", + type: "date", format: 'yyyy/MM/dd', valueFormat: "yyyyMMdd", rules: [{ diff --git a/src/views/smart/operationticketDetail.vue b/src/views/smart/operationticketDetail.vue index 342fd10..f86478a 100644 --- a/src/views/smart/operationticketDetail.vue +++ b/src/views/smart/operationticketDetail.vue @@ -77,7 +77,7 @@ 驳回 修改 { - 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 { - this.addUpdateShowButton=true; + } + else { + if(this.$route.query.frameMode!=="add"){ + this.updateToSearch() + }else { + this.addUpdateShowButton = this.type.prop !== 'operationItem'; + } } },