fix:预定修改

This commit is contained in:
shijing 2025-09-26 16:30:40 +08:00
parent 8fae78121d
commit 5d26c5fee5
1 changed files with 5 additions and 6 deletions

View File

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