fix:预定修改
This commit is contained in:
parent
8fae78121d
commit
5d26c5fee5
|
@ -36,7 +36,7 @@
|
|||
</div>
|
||||
</el-row>
|
||||
</el-form>
|
||||
<el-footer v-show="mode!=='show'">
|
||||
<el-footer v-show="type!=='show'">
|
||||
<ticketd_b_start
|
||||
:workflow_key="'booking'"
|
||||
:title="bookingTitle"
|
||||
|
@ -168,7 +168,6 @@ export default {
|
|||
that.getmRoomList();
|
||||
that.getTid();
|
||||
if(that.type=='edit'){
|
||||
that.form = that.bookingIitem;
|
||||
that.mroomName = that.bookingIitem.mroom_name;
|
||||
that.bookingTitle = that.mroomName+"预定";
|
||||
that.handleEidt(that.editId);
|
||||
|
@ -187,9 +186,9 @@ export default {
|
|||
that.$API.wpm.handover.item.req(that.t_id).then(res=>{
|
||||
that.setData(res);
|
||||
if(res.ticket_.state_.type == 1 && res.create_by == that.$TOOL.data.get("USER_INFO").id ) {
|
||||
that.mode = "edit";
|
||||
that.type = "edit";
|
||||
}else{
|
||||
that.mode = "show";
|
||||
that.type = "show";
|
||||
}
|
||||
that.$nextTick(()=>{
|
||||
that.$refs.ticketd_b_start.init();
|
||||
|
@ -227,10 +226,10 @@ export default {
|
|||
},
|
||||
async submit_b_func() {
|
||||
let that = this;
|
||||
if(that.mode == "add") {
|
||||
if(that.type == "add") {
|
||||
let res = await that.$API.ofm.mroombooking.create.req(that.form);
|
||||
that.form.id = res.id;
|
||||
} else if (that.mode == "edit") {
|
||||
} else if (that.type == "edit") {
|
||||
await that.$API.ofm.mroombooking.update.req(that.form.id, that.form);
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue