修改挂单功能

This commit is contained in:
2025-09-09 16:25:28 +08:00
parent e6c6b1f43f
commit ded24a8446
23 changed files with 1073 additions and 231 deletions

View File

@@ -20,7 +20,7 @@
:loading="loading"
>
<template #item.actions="{item}">
<a :href="'create.aspx?statusid='+item.uuid" class="btn btn-primary"><i class="mdi mdi-pencil"></i>修改</a>
<a :href="'create.aspx?code='+item.code" class="btn btn-primary"><i class="mdi mdi-pencil"></i>修改</a>
<button
type="button"
class="btn btn-outline-danger"
@@ -46,11 +46,10 @@
data() {
return {
headers: [
{ text: 'Id', value: 'id' },
{ text: '狀態名稱', value: 'name' },
{ text: '狀態代碼', value: 'code' },
{ text: '描述', value: 'description' },
{ text: '状态分类', value: 'categoryName'},
{ text: '状态分类', value: 'categoryName' },
{ text: '', value: 'actions' }
],
items: [],
@@ -75,10 +74,10 @@
},
deleteStatus(item) {
axios.post('/api/region/bed/status/delete', null, {
params: { id: item.uuid }
params: { code: item.code }
})
.then(() => {
this.items = this.items.filter(i => i.uuid != item.uuid);
this.items = this.items.filter(i => i.code != item.code);
this.$refs.messageModal.open({
title: '操作成功',
message: '刪除成功!',