generated from Leo_Ding/web-template
Compare commits
2 Commits
120742819a
...
a6aab0cafd
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a6aab0cafd | ||
|
|
1ec378f305 |
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<a-modal :open="modal.open" :title="modal.title" :width="600" :confirm-loading="modal.confirmLoading"
|
<a-modal :open="modal.open" :title="modal.title" :width="750" :confirm-loading="modal.confirmLoading"
|
||||||
:after-close="onAfterClose" :cancel-text="cancelText" @ok="handleOk" @cancel="handleCancel">
|
:after-close="onAfterClose" :cancel-text="cancelText" @ok="handleOk" @cancel="handleCancel">
|
||||||
<a-card>
|
<a-card>
|
||||||
<a-form ref="formRef" :model="formData" :rules="formRules">
|
<a-form ref="formRef" :model="formData" :rules="formRules">
|
||||||
@ -33,7 +33,7 @@
|
|||||||
<template #addonAfter>
|
<template #addonAfter>
|
||||||
<a-select v-model:value="formData.priceUnit" style="width: 100px">
|
<a-select v-model:value="formData.priceUnit" style="width: 100px">
|
||||||
<a-select-option value="次">元/次</a-select-option>
|
<a-select-option value="次">元/次</a-select-option>
|
||||||
<a-select-option value="时">元/时</a-select-option>
|
<a-select-option value="时">元/小时</a-select-option>
|
||||||
</a-select>
|
</a-select>
|
||||||
</template>
|
</template>
|
||||||
</a-input-number>
|
</a-input-number>
|
||||||
@ -52,9 +52,9 @@
|
|||||||
<a-form-item label="服务频次" name="frequency">
|
<a-form-item label="服务频次" name="frequency">
|
||||||
<a-input-number v-model:value="formData.frequency" style="width: 100%;">
|
<a-input-number v-model:value="formData.frequency" style="width: 100%;">
|
||||||
<template #addonAfter>
|
<template #addonAfter>
|
||||||
<a-select v-model:value="formData.frequencyUnit" style="width: 80px">
|
<a-select v-model:value="formData.frequencyUnit" style="width: 120px">
|
||||||
<a-select-option value="元/次">元/次</a-select-option>
|
<a-select-option value="元/次">小时/次</a-select-option>
|
||||||
<a-select-option value="元/台">元/台</a-select-option>
|
<a-select-option value="元/台">小时/台</a-select-option>
|
||||||
</a-select>
|
</a-select>
|
||||||
</template>
|
</template>
|
||||||
</a-input-number>
|
</a-input-number>
|
||||||
|
|||||||
@ -51,6 +51,10 @@
|
|||||||
<span>{{ dicsStore.getDictLabel('PROJECT_TYPE', record.categoryType) }}</span>
|
<span>{{ dicsStore.getDictLabel('PROJECT_TYPE', record.categoryType) }}</span>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
<template v-if="column.key === 'price'">
|
||||||
|
<span>{{ record.price + record.frequencyUnit }}</span>
|
||||||
|
</template>
|
||||||
|
|
||||||
<template v-if="'action' === column.key">
|
<template v-if="'action' === column.key">
|
||||||
<x-action-button @click="$refs.editDialogRef.handleEdit(record)">
|
<x-action-button @click="$refs.editDialogRef.handleEdit(record)">
|
||||||
<span>编辑</span>
|
<span>编辑</span>
|
||||||
@ -85,7 +89,7 @@ const columns = [
|
|||||||
{ title: '分类名称', dataIndex: 'name', key: 'name', align: 'center', width: 180, },
|
{ title: '分类名称', dataIndex: 'name', key: 'name', align: 'center', width: 180, },
|
||||||
{ title: '项目名称', dataIndex: 'name', key: 'name', align: 'center', },
|
{ title: '项目名称', dataIndex: 'name', key: 'name', align: 'center', },
|
||||||
{ title: '价格', dataIndex: 'price', key: 'price', align: 'center', },
|
{ title: '价格', dataIndex: 'price', key: 'price', align: 'center', },
|
||||||
{ title: '简介', dataIndex: 'remark', key: 'remark', align: 'center', },
|
{ title: '简介', dataIndex: 'content', key: 'content', align: 'center', },
|
||||||
|
|
||||||
{ title: '操作', dataIndex: 'action', key: 'action', align: 'center', width: 120, fixed: 'right', }
|
{ title: '操作', dataIndex: 'action', key: 'action', align: 'center', width: 120, fixed: 'right', }
|
||||||
];
|
];
|
||||||
|
|||||||
@ -28,12 +28,17 @@
|
|||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="12">
|
<a-col :span="12">
|
||||||
<a-form-item :label="'组织机构代码'" name="orgCode" :required="true">
|
<a-form-item :label="'服务组织编号'" name="orgCode" :required="true">
|
||||||
<a-input v-model:value="formData.orgCode" placeholder="统一社会信用代码或组织机构代码" allow-clear />
|
<a-input v-model:value="formData.orgCode" placeholder="请输入服务组织编号" allow-clear />
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
<a-row :gutter="16">
|
<a-row :gutter="16">
|
||||||
|
<a-col :span="12">
|
||||||
|
<a-form-item :label="'组织机构代码'" name="orgCode33" :required="false">
|
||||||
|
<a-input v-model:value="formData.orgCode33" placeholder="请输入服务组织编号" allow-clear />
|
||||||
|
</a-form-item>
|
||||||
|
</a-col>
|
||||||
<a-col :span="12">
|
<a-col :span="12">
|
||||||
<a-form-item :label="'组织等级'" name="orgLv" :required="true">
|
<a-form-item :label="'组织等级'" name="orgLv" :required="true">
|
||||||
<a-select v-model:value="formData.orgLv" placeholder="请选择组织等级" allow-clear>
|
<a-select v-model:value="formData.orgLv" placeholder="请选择组织等级" allow-clear>
|
||||||
@ -242,6 +247,7 @@ const editingId = ref(null);
|
|||||||
const formData = reactive({
|
const formData = reactive({
|
||||||
name: '',
|
name: '',
|
||||||
orgCode: '',
|
orgCode: '',
|
||||||
|
orgCode33: '',
|
||||||
orgLv: '',
|
orgLv: '',
|
||||||
concatName: '',
|
concatName: '',
|
||||||
concatPhone: '',
|
concatPhone: '',
|
||||||
|
|||||||
@ -119,7 +119,7 @@
|
|||||||
<a-button type="link" size="small" @click="handleDetail(record)">详情</a-button>
|
<a-button type="link" size="small" @click="handleDetail(record)">详情</a-button>
|
||||||
<a-divider type="vertical" />
|
<a-divider type="vertical" />
|
||||||
<a-button type="link" size="small" @click="handleToggleStatus(record)">
|
<a-button type="link" size="small" @click="handleToggleStatus(record)">
|
||||||
{{ record.status === 'enabled' ? '停用' : '启用' }}
|
{{ record.status === '1' ? '停用' : '启用' }}
|
||||||
</a-button>
|
</a-button>
|
||||||
<a-divider type="vertical" />
|
<a-divider type="vertical" />
|
||||||
<!-- <a-button type="link" size="small" @click="handleDeviceManagement(record)">设备管理</a-button> -->
|
<!-- <a-button type="link" size="small" @click="handleDeviceManagement(record)">设备管理</a-button> -->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user