|
|
|
@ -124,6 +124,13 @@
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<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="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="createdBy" v-if="columns[10].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-input v-model="form.usedDepartment" placeholder="请输入使用部门" />
|
|
|
|
|
</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-select v-model="form.productLineCode" placeholder="请选择所属工位">
|
|
|
|
|
<el-option
|
|
|
|
@ -268,6 +289,9 @@ export default {
|
|
|
|
|
deviceAddress: null,
|
|
|
|
|
deviceStatus: null,
|
|
|
|
|
usedDepartment: null,
|
|
|
|
|
costCenter: null,
|
|
|
|
|
manufacturer: null,
|
|
|
|
|
enableDate: null,
|
|
|
|
|
productLineCode: null,
|
|
|
|
|
isFlag: null,
|
|
|
|
|
createdBy: null,
|
|
|
|
@ -295,6 +319,9 @@ export default {
|
|
|
|
|
{ key: 11, label: `创建时间`, visible: false },
|
|
|
|
|
{ key: 12, label: `更新人`, visible: false },
|
|
|
|
|
{ key: 13, label: `更新时间`, visible: false },
|
|
|
|
|
{ key: 14, label: `成本中心`, visible: true },
|
|
|
|
|
{ key: 15, label: `生产厂商`, visible: true },
|
|
|
|
|
{ key: 16, label: `启用日期`, visible: true },
|
|
|
|
|
],
|
|
|
|
|
// 产线选项
|
|
|
|
|
productLineList: [],
|
|
|
|
@ -333,6 +360,9 @@ export default {
|
|
|
|
|
deviceStatus: 0,
|
|
|
|
|
usedDepartment: null,
|
|
|
|
|
productLineCode: null,
|
|
|
|
|
costCenter: null,
|
|
|
|
|
manufacturer: null,
|
|
|
|
|
enableDate: null,
|
|
|
|
|
isFlag: 0,
|
|
|
|
|
createdBy: null,
|
|
|
|
|
createdTime: null,
|
|
|
|
|