change - 物料信息、设备信息

master
yinq 1 year ago
parent 0dc923baf4
commit e3e824f773

@ -124,6 +124,13 @@
</el-table-column> </el-table-column>
<el-table-column label="使用部门" align="center" prop="usedDepartment" v-if="columns[7].visible"/> <el-table-column label="使用部门" align="center" prop="usedDepartment" v-if="columns[7].visible"/>
<el-table-column label="所属工位" align="center" prop="productLineCode" v-if="columns[8].visible"/> <el-table-column label="所属工位" align="center" prop="productLineCode" v-if="columns[8].visible"/>
<el-table-column label="成本中心" align="center" prop="costCenter" v-if="columns[14].visible"/>
<el-table-column label="生产厂商" align="center" prop="manufacturer" v-if="columns[15].visible"/>
<el-table-column label="启用日期" align="center" prop="enableDate" width="180" v-if="columns[16].visible">
<template slot-scope="scope">
<span>{{ parseTime(scope.row.enableDate, '{y}-{m}-{d}') }}</span>
</template>
</el-table-column>
<el-table-column label="启用标识" align="center" prop="isFlag" v-if="columns[9].visible"/> <el-table-column label="启用标识" align="center" prop="isFlag" v-if="columns[9].visible"/>
<el-table-column label="创建人" align="center" prop="createdBy" v-if="columns[10].visible"/> <el-table-column label="创建人" align="center" prop="createdBy" v-if="columns[10].visible"/>
<el-table-column label="创建时间" align="center" prop="createdTime" width="180" v-if="columns[11].visible"> <el-table-column label="创建时间" align="center" prop="createdTime" width="180" v-if="columns[11].visible">
@ -202,6 +209,20 @@
<el-form-item label="使用部门" prop="usedDepartment"> <el-form-item label="使用部门" prop="usedDepartment">
<el-input v-model="form.usedDepartment" placeholder="请输入使用部门" /> <el-input v-model="form.usedDepartment" placeholder="请输入使用部门" />
</el-form-item> </el-form-item>
<el-form-item label="成本中心" prop="costCenter">
<el-input v-model="form.costCenter" placeholder="请输入成本中心" />
</el-form-item>
<el-form-item label="生产厂商" prop="manufacturer">
<el-input v-model="form.manufacturer" placeholder="请输入生产厂商" />
</el-form-item>
<el-form-item label="启用日期" prop="enableDate">
<el-date-picker clearable
v-model="form.enableDate"
type="date"
value-format="yyyy-MM-dd"
placeholder="请选择启用日期">
</el-date-picker>
</el-form-item>
<el-form-item label="所属工位"> <el-form-item label="所属工位">
<el-select v-model="form.productLineCode" placeholder="请选择所属工位"> <el-select v-model="form.productLineCode" placeholder="请选择所属工位">
<el-option <el-option
@ -268,6 +289,9 @@ export default {
deviceAddress: null, deviceAddress: null,
deviceStatus: null, deviceStatus: null,
usedDepartment: null, usedDepartment: null,
costCenter: null,
manufacturer: null,
enableDate: null,
productLineCode: null, productLineCode: null,
isFlag: null, isFlag: null,
createdBy: null, createdBy: null,
@ -295,6 +319,9 @@ export default {
{ key: 11, label: `创建时间`, visible: false }, { key: 11, label: `创建时间`, visible: false },
{ key: 12, label: `更新人`, visible: false }, { key: 12, label: `更新人`, visible: false },
{ key: 13, label: `更新时间`, visible: false }, { key: 13, label: `更新时间`, visible: false },
{ key: 14, label: `成本中心`, visible: true },
{ key: 15, label: `生产厂商`, visible: true },
{ key: 16, label: `启用日期`, visible: true },
], ],
// 线 // 线
productLineList: [], productLineList: [],
@ -333,6 +360,9 @@ export default {
deviceStatus: 0, deviceStatus: 0,
usedDepartment: null, usedDepartment: null,
productLineCode: null, productLineCode: null,
costCenter: null,
manufacturer: null,
enableDate: null,
isFlag: 0, isFlag: 0,
createdBy: null, createdBy: null,
createdTime: null, createdTime: null,

@ -133,6 +133,11 @@
<el-table-column label="物料规格" align="center" prop="materialSpecifications" v-if="columns[8].visible"/> <el-table-column label="物料规格" align="center" prop="materialSpecifications" v-if="columns[8].visible"/>
<el-table-column label="所属工厂" align="center" prop="plantName" v-if="columns[9].visible"/> <el-table-column label="所属工厂" align="center" prop="plantName" v-if="columns[9].visible"/>
<el-table-column label="产线工位" align="center" prop="productLineName" v-if="columns[10].visible"/> <el-table-column label="产线工位" align="center" prop="productLineName" v-if="columns[10].visible"/>
<el-table-column label="增量日期" align="center" prop="incrementDate" width="180" v-if="columns[16].visible">
<template slot-scope="scope">
<span>{{ parseTime(scope.row.incrementDate, '{y}-{m}-{d}') }}</span>
</template>
</el-table-column>
<el-table-column label="启用标识" align="center" prop="isFlag" v-if="columns[11].visible"> <el-table-column label="启用标识" align="center" prop="isFlag" v-if="columns[11].visible">
<template slot-scope="scope"> <template slot-scope="scope">
<dict-tag :options="dict.type.is_flag" :value="scope.row.isFlag"/> <dict-tag :options="dict.type.is_flag" :value="scope.row.isFlag"/>
@ -246,6 +251,14 @@
></el-option> ></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="增量日期" prop="incrementDate">
<el-date-picker clearable
v-model="form.incrementDate"
type="date"
value-format="yyyy-MM-dd"
placeholder="请选择采集时间">
</el-date-picker>
</el-form-item>
<el-form-item label="启用标识" prop="isFlag"> <el-form-item label="启用标识" prop="isFlag">
<el-radio-group v-model="form.isFlag"> <el-radio-group v-model="form.isFlag">
<el-radio <el-radio
@ -307,6 +320,7 @@ export default {
plantCode: null, plantCode: null,
productLineCode: null, productLineCode: null,
isFlag: null, isFlag: null,
incrementDate: null,
createdBy: null, createdBy: null,
createdTime: null, createdTime: null,
updatedBy: null, updatedBy: null,
@ -334,6 +348,7 @@ export default {
{ key: 13, label: `创建时间`, visible: false }, { key: 13, label: `创建时间`, visible: false },
{ key: 14, label: `更新人`, visible: false }, { key: 14, label: `更新人`, visible: false },
{ key: 15, label: `更新时间`, visible: false }, { key: 15, label: `更新时间`, visible: false },
{ key: 16, label: `增量日期`, visible: true },
], ],
// //
factoryList: [], factoryList: [],
@ -379,6 +394,7 @@ export default {
materialSpecifications: null, materialSpecifications: null,
plantCode: null, plantCode: null,
productLineCode: null, productLineCode: null,
incrementDate: null,
isFlag: 0, isFlag: 0,
createdBy: null, createdBy: null,
createdTime: null, createdTime: null,

Loading…
Cancel
Save