change - 字段修改

master
yinq 1 year ago
parent 4ea8d10381
commit b389dba0fe

@ -6,7 +6,7 @@
<div class="head-container">
<el-input
v-model="workUnitName"
placeholder="请输入计量设备名称"
placeholder="请输入统计单元名称"
clearable
size="small"
prefix-icon="el-icon-search"
@ -29,7 +29,7 @@
</el-col>
<el-col :span="19" :xs="24">
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="100px">
<el-form-item label="计量设备状态" prop="monitorStatus">
<el-select v-model="queryParams.monitorStatus" placeholder="请选择计量设备状态" clearable>
<el-option
@ -40,16 +40,16 @@
/>
</el-select>
</el-form-item>
<el-form-item label="计量设备类型" prop="monitorType">
<el-select v-model="queryParams.monitorType" placeholder="请选择计量设备类型" clearable>
<el-option
v-for="dict in dict.type.monitor_type"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
<!-- <el-form-item label="计量设备类型" prop="monitorType">-->
<!-- <el-select v-model="queryParams.monitorType" placeholder="请选择计量设备类型" clearable>-->
<!-- <el-option-->
<!-- v-for="dict in dict.type.monitor_type"-->
<!-- :key="dict.value"-->
<!-- :label="dict.label"-->
<!-- :value="dict.value"-->
<!-- />-->
<!-- </el-select>-->
<!-- </el-form-item>-->
<el-form-item label="计算方式" prop="formulaMode">
<el-select v-model="queryParams.formulaMode" placeholder="请选择计算方式" clearable>
<el-option
@ -117,11 +117,6 @@
<el-table-column label="主键标识" align="center" prop="objId" v-if="columns[0].visible"/>
<el-table-column label="计量设备编号" align="center" prop="monitorCode" v-if="columns[1].visible"/>
<el-table-column label="统计单元编号" align="center" prop="workUnitCode" v-if="columns[2].visible"/>
<el-table-column label="计量设备状态" align="center" prop="monitorStatus" v-if="columns[3].visible">
<template slot-scope="scope">
<dict-tag :options="dict.type.is_flag" :value="scope.row.monitorStatus"/>
</template>
</el-table-column>
<el-table-column label="计量设备类型" align="center" prop="monitorType" v-if="columns[4].visible">
<template slot-scope="scope">
<dict-tag :options="dict.type.monitor_type" :value="scope.row.monitorType"/>
@ -133,6 +128,11 @@
</template>
</el-table-column>
<el-table-column label="比率" align="center" prop="proportion" v-if="columns[6].visible"/>
<el-table-column label="计量设备状态" align="center" prop="monitorStatus" v-if="columns[3].visible">
<template slot-scope="scope">
<dict-tag :options="dict.type.is_flag" :value="scope.row.monitorStatus"/>
</template>
</el-table-column>
<el-table-column label="备注" align="center" prop="remark" v-if="columns[7].visible"/>
<el-table-column label="启用标识" align="center" prop="isFlag" v-if="columns[8].visible">
<template slot-scope="scope">
@ -183,7 +183,7 @@
<!-- 添加或修改统计计量信息对话框 -->
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
<el-form-item label="计量设备" prop="monitorCode">
<el-form-item label="计量设备名称" prop="monitorCode">
<treeselect v-model="form.monitorCode" :options="monitorInfoOptions" :normalizer="normalizer" placeholder="请选择计量设备" />
</el-form-item>
<el-form-item label="统计单元编号" prop="workUnitCode">
@ -195,15 +195,6 @@
<!-- <el-form-item label="统计单元编号" prop="workUnitCode">-->
<!-- <el-input v-model="form.workUnitCode" placeholder="请输入统计单元编号" />-->
<!-- </el-form-item>-->
<el-form-item label="计量设备状态" prop="monitorStatus">
<el-radio-group v-model="form.monitorStatus">
<el-radio
v-for="dict in dict.type.is_flag"
:key="dict.value"
:label="parseInt(dict.value)"
>{{dict.label}}</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item label="计量设备类型" prop="monitorType">
<el-radio-group v-model="form.monitorType">
<el-radio
@ -228,6 +219,15 @@
<el-form-item label="备注" prop="remark">
<el-input v-model="form.remark" placeholder="请输入备注" />
</el-form-item>
<el-form-item label="计量设备状态" prop="monitorStatus">
<el-radio-group v-model="form.monitorStatus">
<el-radio
v-for="dict in dict.type.is_flag"
:key="dict.value"
:label="parseInt(dict.value)"
>{{dict.label}}</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item label="启用标识" prop="isFlag">
<el-radio-group v-model="form.isFlag">
<el-radio

@ -1,6 +1,6 @@
<template>
<div class="app-container">
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="100px">
<el-form-item label="统计单元名称" prop="workUnitName">
<el-input
v-model="queryParams.workUnitName"
@ -9,32 +9,32 @@
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="统计区域" prop="workUnitAddress">
<el-input
v-model="queryParams.workUnitAddress"
placeholder="请输入统计区域"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="产线/工位" prop="productLineCode">
<el-input
v-model="queryParams.productLineCode"
placeholder="请输入产线/工位"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="统计单元类型" prop="workUnitType">
<el-select v-model="queryParams.workUnitType" placeholder="请选择统计单元类型" clearable>
<el-option
v-for="dict in dict.type.work_unit_type"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
<!-- <el-form-item label="统计区域" prop="workUnitAddress">-->
<!-- <el-input-->
<!-- v-model="queryParams.workUnitAddress"-->
<!-- placeholder="请输入统计区域"-->
<!-- clearable-->
<!-- @keyup.enter.native="handleQuery"-->
<!-- />-->
<!-- </el-form-item>-->
<!-- <el-form-item label="产线/工位" prop="productLineCode">-->
<!-- <el-input-->
<!-- v-model="queryParams.productLineCode"-->
<!-- placeholder="请输入产线/工位"-->
<!-- clearable-->
<!-- @keyup.enter.native="handleQuery"-->
<!-- />-->
<!-- </el-form-item>-->
<!-- <el-form-item label="统计单元类型" prop="workUnitType">-->
<!-- <el-select v-model="queryParams.workUnitType" placeholder="请选择统计单元类型" clearable>-->
<!-- <el-option-->
<!-- v-for="dict in dict.type.work_unit_type"-->
<!-- :key="dict.value"-->
<!-- :label="dict.label"-->
<!-- :value="dict.value"-->
<!-- />-->
<!-- </el-select>-->
<!-- </el-form-item>-->
<el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery"></el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"></el-button>
@ -77,11 +77,11 @@
<el-table-column label="统计单元名称" align="center" prop="workUnitName" />
<el-table-column label="统计区域" align="center" prop="workUnitAddress" />
<el-table-column label="产线/工位" align="center" prop="productLineName"/>
<el-table-column label="统计单元类型" align="center" prop="workUnitType">
<template slot-scope="scope">
<dict-tag :options="dict.type.work_unit_type" :value="scope.row.workUnitType"/>
</template>
</el-table-column>
<!-- <el-table-column label="统计单元类型" align="center" prop="workUnitType">-->
<!-- <template slot-scope="scope">-->
<!-- <dict-tag :options="dict.type.work_unit_type" :value="scope.row.workUnitType"/>-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column label="启用标识" align="center" prop="isFlag">-->
<!-- <template slot-scope="scope">-->
<!-- <dict-tag :options="dict.type.is_flag" :value="scope.row.isFlag"/>-->
@ -128,13 +128,13 @@
<!-- 添加或修改统计单元信息对话框 -->
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
<el-form-item label="统计单元编号" prop="workUnitCode">
<el-input v-model="form.workUnitCode" placeholder="请输入统计单元编号" />
</el-form-item>
<el-form ref="form" :model="form" :rules="rules" label-width="110px">
<el-form-item label="父级编号" prop="parentId">
<treeselect v-model="form.parentId" :options="workUnitOptions" :normalizer="normalizer" placeholder="请选择父级编号" />
</el-form-item>
<el-form-item label="统计单元编号" prop="workUnitCode">
<el-input v-model="form.workUnitCode" placeholder="请输入统计单元编号" />
</el-form-item>
<el-form-item label="统计单元名称" prop="workUnitName">
<el-input v-model="form.workUnitName" placeholder="请输入统计单元名称" />
</el-form-item>
@ -151,16 +151,16 @@
</el-option>
</el-select>
</el-form-item>
<el-form-item label="统计单元类型" prop="workUnitType">
<el-select v-model="form.workUnitType" placeholder="请选择统计单元类型">
<el-option
v-for="dict in dict.type.work_unit_type"
:key="dict.value"
:label="dict.label"
:value="parseInt(dict.value)"
></el-option>
</el-select>
</el-form-item>
<!-- <el-form-item label="统计单元类型" prop="workUnitType">-->
<!-- <el-select v-model="form.workUnitType" placeholder="请选择统计单元类型">-->
<!-- <el-option-->
<!-- v-for="dict in dict.type.work_unit_type"-->
<!-- :key="dict.value"-->
<!-- :label="dict.label"-->
<!-- :value="parseInt(dict.value)"-->
<!-- ></el-option>-->
<!-- </el-select>-->
<!-- </el-form-item>-->
<el-form-item label="启用标识" prop="isFlag">
<el-radio-group v-model="form.isFlag">
<el-radio

Loading…
Cancel
Save