|
|
|
@ -71,7 +71,11 @@
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="备注" align="center" prop="remark" />
|
|
|
|
|
<el-table-column label="激活标识(1是 0否)" align="center" prop="activeFlag" />
|
|
|
|
|
<el-table-column label="激活标识" align="center" prop="activeFlag">
|
|
|
|
|
<template #default="scope">
|
|
|
|
|
<dict-tag :options="active_flag" :value="scope.row.activeFlag"/>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<!-- <el-table-column label="创建部门" align="center" prop="createDept" />
|
|
|
|
|
<el-table-column label="创建人" align="center" prop="createBy" />
|
|
|
|
|
<el-table-column label="创建时间" align="center" prop="createTime" width="180">
|
|
|
|
@ -102,7 +106,7 @@
|
|
|
|
|
</el-card>
|
|
|
|
|
<!-- 添加或修改计量单位信息对话框 -->
|
|
|
|
|
<el-dialog :title="dialog.title" v-model="dialog.visible" width="500px" append-to-body>
|
|
|
|
|
<el-form ref="baseMeasurementUnitInfoFormRef" :model="form" :rules="rules" label-width="80px">
|
|
|
|
|
<el-form ref="baseMeasurementUnitInfoFormRef" :model="form" :rules="rules" label-width="120px">
|
|
|
|
|
<!-- <el-form-item label="主键标识" prop="unitId">
|
|
|
|
|
<el-input v-model="form.unitId" placeholder="请输入主键标识" />
|
|
|
|
|
</el-form-item>-->
|
|
|
|
@ -123,7 +127,8 @@
|
|
|
|
|
<el-input v-model="form.unitName" placeholder="请输入计量单位名称" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="计量单位转换" prop="unitConversion">
|
|
|
|
|
<el-input v-model="form.unitConversion" placeholder="请输入计量单位转换" />
|
|
|
|
|
<!-- <el-input v-model="form.unitConversion" placeholder="请输入计量单位转换" />-->
|
|
|
|
|
<el-input-number v-model="form.unitConversion" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<!-- <el-form-item label="祖级列表" prop="ancestors">
|
|
|
|
|
<el-input v-model="form.ancestors" placeholder="请输入祖级列表" />
|
|
|
|
@ -142,7 +147,13 @@
|
|
|
|
|
<el-input v-model="form.remark" placeholder="请输入备注" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="激活标识" prop="activeFlag">
|
|
|
|
|
<el-input v-model="form.activeFlag" placeholder="请输入激活标识" />
|
|
|
|
|
<el-radio-group v-model="form.activeFlag">
|
|
|
|
|
<el-radio
|
|
|
|
|
v-for="dict in active_flag"
|
|
|
|
|
:key="dict.value"
|
|
|
|
|
:value="dict.value"
|
|
|
|
|
>{{dict.label}}</el-radio>
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-form>
|
|
|
|
|
<template #footer>
|
|
|
|
@ -168,6 +179,7 @@ type BaseMeasurementUnitInfoOption = {
|
|
|
|
|
const { proxy } = getCurrentInstance() as ComponentInternalInstance;;
|
|
|
|
|
|
|
|
|
|
const { unit_type } = toRefs<any>(proxy?.useDict('unit_type'));
|
|
|
|
|
const { active_flag } = toRefs<any>(proxy?.useDict('active_flag'));
|
|
|
|
|
|
|
|
|
|
const baseMeasurementUnitInfoList = ref<BaseMeasurementUnitInfoVO[]>([]);
|
|
|
|
|
const baseMeasurementUnitInfoOptions = ref<BaseMeasurementUnitInfoOption[]>([]);
|
|
|
|
@ -195,7 +207,7 @@ const initFormData: BaseMeasurementUnitInfoForm = {
|
|
|
|
|
ancestors: undefined,
|
|
|
|
|
unitType: undefined,
|
|
|
|
|
remark: undefined,
|
|
|
|
|
activeFlag: undefined,
|
|
|
|
|
activeFlag: '1',
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const data = reactive<PageData<BaseMeasurementUnitInfoForm, BaseMeasurementUnitInfoQuery>>({
|
|
|
|
|