调整部分价格换算,调整部分表单布局
This commit is contained in:
1 parent
39bc822b2c
commit
1a8f5192cb
15 files changed
+290
-163
No files matched your search
@@ -2,28 +2,28 @@
|
||||
<el-dialog :title="form.id ? '编辑' : '新增'" v-model="visible" :close-on-click-modal="false" draggable>
|
||||
<el-form ref="dataFormRef" :model="form" :rules="dataRules" formDialogRef label-width="90px" v-loading="loading">
|
||||
<el-row :gutter="24">
|
||||
<el-col :span="12" class="mb20">
|
||||
<el-col :span="14" class="mb20">
|
||||
<el-form-item label="商户" prop="merchantId">
|
||||
<select-mch v-model="form.merchantId" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12" class="mb20">
|
||||
<el-col :span="14" class="mb20">
|
||||
<el-form-item label="包厢名称" prop="name">
|
||||
<el-input v-model="form.name" placeholder="请输入包厢名称" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="24" class="mb20">
|
||||
<el-form-item label="包厢图片" prop="images">
|
||||
<upload-img v-model="form.images"></upload-img>
|
||||
<upload-img v-model:imageUrl="form.images"></upload-img>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12" class="mb20">
|
||||
<el-col :span="14" class="mb20">
|
||||
<el-form-item label="容纳人数" prop="capacity">
|
||||
<el-input v-model="form.capacity" placeholder="请输入容纳人数" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
||||
<el-col :span="12" class="mb20">
|
||||
<el-col :span="24" class="mb20">
|
||||
<el-form-item label="包厢状态" prop="status">
|
||||
<el-radio-group v-model="form.status">
|
||||
<el-radio :label="item.value" v-for="(item, index) in boxes_status" border :key="index">{{ item.label }} </el-radio>
|
||||
@@ -129,7 +129,9 @@ const getboxesInfoData = (id: string) => {
|
||||
loading.value = true;
|
||||
getObj(id)
|
||||
.then((res: any) => {
|
||||
Object.assign(form, res.data);
|
||||
Object.assign(form, res.data, {
|
||||
status: '' + res.data.status,
|
||||
});
|
||||
})
|
||||
.finally(() => {
|
||||
loading.value = false;
|
||||
|
||||
@@ -40,20 +40,24 @@
|
||||
@sort-change="sortChangeHandle"
|
||||
>
|
||||
<el-table-column type="selection" width="40" align="center" />
|
||||
<el-table-column type="index" label="#" width="40" />
|
||||
<el-table-column type="index" label="#" width="50" />
|
||||
<el-table-column prop="name" label="包厢名称" show-overflow-tooltip />
|
||||
<el-table-column prop="capacity" label="容纳人数" show-overflow-tooltip />
|
||||
<el-table-column prop="description" label="包厢描述" show-overflow-tooltip />
|
||||
<el-table-column prop="address" label="包厢地址" show-overflow-tooltip />
|
||||
<el-table-column prop="images" label="包厢图片" show-overflow-tooltip />
|
||||
<el-table-column prop="images" label="包厢图片" show-overflow-tooltip>
|
||||
<template #default="scope">
|
||||
<preview-image :src="scope.row.images" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="status" label="包厢状态" show-overflow-tooltip>
|
||||
<template #default="scope">
|
||||
<dict-tag :options="boxes_status" :value="scope.row.status"></dict-tag>
|
||||
<dict-tag :options="boxes_status" :value="scope.row.status" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="price" label="包厢价格单位分" show-overflow-tooltip />
|
||||
<el-table-column prop="merchantId" label="商户id" show-overflow-tooltip />
|
||||
<el-table-column label="操作" width="150">
|
||||
<el-table-column label="操作" width="150" fixed="right">
|
||||
<template #default="scope">
|
||||
<el-button icon="edit-pen" text type="primary" v-auth="'canteen_boxesInfo_edit'" @click="formDialogRef.openDialog(scope.row.id)">
|
||||
编辑
|
||||
|
||||
Reference in new issue
Block a user