|
|
@ -9,8 +9,8 @@
|
|
|
|
<!-- @keyup.enter.native="handleQuery"-->
|
|
|
|
<!-- @keyup.enter.native="handleQuery"-->
|
|
|
|
<!-- />-->
|
|
|
|
<!-- />-->
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
<el-form-item label="所属产线" prop="productLineCode">
|
|
|
|
<el-form-item label="所属工位" prop="productLineCode">
|
|
|
|
<el-select v-model="queryParams.productLineCode" placeholder="请选择所属产线" clearable>
|
|
|
|
<el-select v-model="queryParams.productLineCode" placeholder="请选择所属工位" clearable>
|
|
|
|
<el-option
|
|
|
|
<el-option
|
|
|
|
v-for="item in productLineList"
|
|
|
|
v-for="item in productLineList"
|
|
|
|
:key="item.productLineCode"
|
|
|
|
:key="item.productLineCode"
|
|
|
@ -55,10 +55,10 @@
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</el-select>
|
|
|
|
</el-select>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<!-- <el-form-item label="班组编号" prop="teamCode">-->
|
|
|
|
<!-- <el-form-item label="班组名称" prop="teamCode">-->
|
|
|
|
<!-- <el-input-->
|
|
|
|
<!-- <el-input-->
|
|
|
|
<!-- v-model="queryParams.teamCode"-->
|
|
|
|
<!-- v-model="queryParams.teamCode"-->
|
|
|
|
<!-- placeholder="请输入班组编号"-->
|
|
|
|
<!-- placeholder="请输入班组名称"-->
|
|
|
|
<!-- clearable-->
|
|
|
|
<!-- clearable-->
|
|
|
|
<!-- @keyup.enter.native="handleQuery"-->
|
|
|
|
<!-- @keyup.enter.native="handleQuery"-->
|
|
|
|
<!-- />-->
|
|
|
|
<!-- />-->
|
|
|
@ -131,7 +131,7 @@
|
|
|
|
<el-table-column type="selection" width="55" align="center"/>
|
|
|
|
<el-table-column type="selection" width="55" align="center"/>
|
|
|
|
<el-table-column label="主键标识" align="center" prop="objId" v-if="columns[0].visible"/>
|
|
|
|
<el-table-column label="主键标识" align="center" prop="objId" v-if="columns[0].visible"/>
|
|
|
|
<el-table-column label="设备编号" align="center" prop="deviceCode" v-if="columns[1].visible"/>
|
|
|
|
<el-table-column label="设备编号" align="center" prop="deviceCode" v-if="columns[1].visible"/>
|
|
|
|
<el-table-column label="设备名称" align="center" prop="deviceName" v-if="columns[2].visible"/>
|
|
|
|
<el-table-column label="设备名称" align="center" prop="deviceName" v-if="columns[2].visible" width="180"/>
|
|
|
|
<el-table-column label="设备型号" align="center" prop="deviceModel" v-if="columns[3].visible"/>
|
|
|
|
<el-table-column label="设备型号" align="center" prop="deviceModel" v-if="columns[3].visible"/>
|
|
|
|
<el-table-column label="设备类型" align="center" prop="deviceType" v-if="columns[4].visible">
|
|
|
|
<el-table-column label="设备类型" align="center" prop="deviceType" v-if="columns[4].visible">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
@ -152,14 +152,14 @@
|
|
|
|
<span>{{ parseTime(scope.row.enableDate, '{y}-{m}-{d}') }}</span>
|
|
|
|
<span>{{ parseTime(scope.row.enableDate, '{y}-{m}-{d}') }}</span>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column label="所属产线" align="center" prop="productLineName" v-if="columns[11].visible"/>
|
|
|
|
<el-table-column label="所属工位" align="center" prop="productLineName" v-if="columns[11].visible"/>
|
|
|
|
<el-table-column label="启用标识" align="center" prop="isFlag" v-if="columns[12].visible">
|
|
|
|
<el-table-column label="启用标识" align="center" prop="isFlag" v-if="columns[12].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"/>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column label="工厂编号" align="center" prop="factoryCode" v-if="columns[17].visible"/>
|
|
|
|
<el-table-column label="工厂编号" align="center" prop="factoryCode" v-if="columns[17].visible"/>
|
|
|
|
<el-table-column label="班组编号" align="center" prop="teamCode" v-if="columns[18].visible"/>
|
|
|
|
<el-table-column label="班组名称" align="center" prop="teamCode" v-if="columns[18].visible"/>
|
|
|
|
<el-table-column label="资产编号" align="center" prop="assetCode" v-if="columns[19].visible"/>
|
|
|
|
<el-table-column label="资产编号" align="center" prop="assetCode" v-if="columns[19].visible"/>
|
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="100">
|
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="100">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
@ -244,8 +244,8 @@
|
|
|
|
>
|
|
|
|
>
|
|
|
|
</el-date-picker>
|
|
|
|
</el-date-picker>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="所属产线" prop="productLineCode">
|
|
|
|
<el-form-item label="所属工位" prop="productLineCode">
|
|
|
|
<el-select v-model="form.productLineCode" placeholder="请选择所属产线">
|
|
|
|
<el-select v-model="form.productLineCode" placeholder="请选择所属工位">
|
|
|
|
<el-option
|
|
|
|
<el-option
|
|
|
|
v-for="item in productLineList"
|
|
|
|
v-for="item in productLineList"
|
|
|
|
:key="item.productLineCode"
|
|
|
|
:key="item.productLineCode"
|
|
|
@ -267,8 +267,8 @@
|
|
|
|
<!-- <el-form-item label="工厂编号" prop="factoryCode">-->
|
|
|
|
<!-- <el-form-item label="工厂编号" prop="factoryCode">-->
|
|
|
|
<!-- <el-input v-model="form.factoryCode" placeholder="请输入工厂编号"/>-->
|
|
|
|
<!-- <el-input v-model="form.factoryCode" placeholder="请输入工厂编号"/>-->
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
<el-form-item label="班组编号" prop="teamCode">
|
|
|
|
<el-form-item label="班组名称" prop="teamCode">
|
|
|
|
<el-input v-model="form.teamCode" placeholder="请输入班组编号"/>
|
|
|
|
<el-input v-model="form.teamCode" placeholder="请输入班组名称"/>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<!-- <el-form-item label="资产编号" prop="assetCode">-->
|
|
|
|
<!-- <el-form-item label="资产编号" prop="assetCode">-->
|
|
|
|
<!-- <el-input v-model="form.assetCode" placeholder="请输入资产编号"/>-->
|
|
|
|
<!-- <el-input v-model="form.assetCode" placeholder="请输入资产编号"/>-->
|
|
|
@ -358,14 +358,14 @@ export default {
|
|
|
|
{ key: 8, label: `成本中心`, visible: false },
|
|
|
|
{ key: 8, label: `成本中心`, visible: false },
|
|
|
|
{ key: 9, label: `生产厂商`, visible: true },
|
|
|
|
{ key: 9, label: `生产厂商`, visible: true },
|
|
|
|
{ key: 10, label: `启用日期`, visible: true },
|
|
|
|
{ key: 10, label: `启用日期`, visible: true },
|
|
|
|
{ key: 11, label: `所属产线`, visible: true },
|
|
|
|
{ key: 11, label: `所属工位`, visible: true },
|
|
|
|
{ key: 12, label: `启用标识`, visible: true },
|
|
|
|
{ key: 12, label: `启用标识`, visible: false },
|
|
|
|
{ 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: false },
|
|
|
|
{ key: 16, label: `更新时间`, visible: false },
|
|
|
|
{ key: 17, label: `工厂编号`, visible: true },
|
|
|
|
{ key: 17, label: `工厂编号`, visible: false },
|
|
|
|
{ key: 18, label: `班组编号`, visible: true },
|
|
|
|
{ key: 18, label: `班组名称`, visible: false },
|
|
|
|
{ key: 19, label: `资产编号`, visible: false }
|
|
|
|
{ key: 19, label: `资产编号`, visible: false }
|
|
|
|
],
|
|
|
|
],
|
|
|
|
// 产线选项
|
|
|
|
// 产线选项
|
|
|
@ -373,7 +373,7 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
created() {
|
|
|
|
created() {
|
|
|
|
getBaseProductLineList({ productLineType: 1 }).then(response => {
|
|
|
|
getBaseProductLineList({ productLineType: 2 }).then(response => {
|
|
|
|
this.productLineList = response.data
|
|
|
|
this.productLineList = response.data
|
|
|
|
})
|
|
|
|
})
|
|
|
|
this.getList()
|
|
|
|
this.getList()
|
|
|
|