change - 工单字段修改

main
yinq 5 months ago
parent 086e7b3674
commit 915152fb5b

@ -228,7 +228,6 @@ export default {
obj.planBeginTime = this.form.beginDate obj.planBeginTime = this.form.beginDate
obj.planEndTime = this.form.endDate obj.planEndTime = this.form.endDate
this.mesProductPlanList.push(obj) this.mesProductPlanList.push(obj)
console.log(this.mesProductPlanList)
}) })
}) })
}, },

@ -94,17 +94,17 @@
</el-form> </el-form>
<el-row :gutter="10" class="mb8"> <el-row :gutter="10" class="mb8">
<el-col :span="1.5"> <!-- <el-col :span="1.5">-->
<el-button <!-- <el-button-->
type="primary" <!-- type="primary"-->
plain <!-- plain-->
icon="el-icon-plus" <!-- icon="el-icon-plus"-->
size="mini" <!-- size="mini"-->
@click="handleAdd" <!-- @click="handleAdd"-->
v-hasPermi="['mes/prod:prodPlanInfo:add']" <!-- v-hasPermi="['mes/prod:prodPlanInfo:add']"-->
>新增 <!-- >新增-->
</el-button> <!-- </el-button>-->
</el-col> <!-- </el-col>-->
<el-col :span="1.5"> <el-col :span="1.5">
<el-button <el-button
type="success" type="success"
@ -150,9 +150,9 @@
<el-table-column label="订单编号" align="center" prop="orderCode" v-if="columns[2].visible"/> <el-table-column label="订单编号" align="center" prop="orderCode" v-if="columns[2].visible"/>
<el-table-column label="物料编号" align="center" prop="materialCode" v-if="columns[3].visible"/> <el-table-column label="物料编号" align="center" prop="materialCode" v-if="columns[3].visible"/>
<el-table-column label="物料名称" align="center" prop="materialName" v-if="columns[4].visible"/> <el-table-column label="物料名称" align="center" prop="materialName" v-if="columns[4].visible"/>
<el-table-column label="计划工位" align="center" prop="stationCode" v-if="columns[5].visible"/> <el-table-column label="计划工位" align="center" prop="stationName" v-if="columns[5].visible"/>
<el-table-column label="设备编号" align="center" prop="deviceCode" v-if="columns[6].visible"/> <el-table-column label="设备编号" align="center" prop="deviceCode" v-if="columns[6].visible"/>
<el-table-column label="计划班组" align="center" prop="teamCode" v-if="columns[7].visible"/> <el-table-column label="计划班组" align="center" prop="teamName" v-if="columns[7].visible"/>
<el-table-column label="计划数量" align="center" prop="planAmount" v-if="columns[8].visible"/> <el-table-column label="计划数量" align="center" prop="planAmount" v-if="columns[8].visible"/>
<el-table-column label="完成数量" align="center" prop="completeAmount" v-if="columns[9].visible"/> <el-table-column label="完成数量" align="center" prop="completeAmount" v-if="columns[9].visible"/>
<el-table-column label="实际开始时间" align="center" prop="beginTime" width="180" v-if="columns[10].visible"> <el-table-column label="实际开始时间" align="center" prop="beginTime" width="180" v-if="columns[10].visible">
@ -182,26 +182,26 @@
<span>{{ parseTime(scope.row.updatedTime, '{y}-{m}-{d} {h}:{i}:{s}') }}</span> <span>{{ parseTime(scope.row.updatedTime, '{y}-{m}-{d} {h}:{i}:{s}') }}</span>
</template> </template>
</el-table-column> </el-table-column>
<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">-->
<el-button <!-- <el-button-->
size="mini" <!-- size="mini"-->
type="text" <!-- type="text"-->
icon="el-icon-edit" <!-- icon="el-icon-edit"-->
@click="handleUpdate(scope.row)" <!-- @click="handleUpdate(scope.row)"-->
v-hasPermi="['mes/prod:prodPlanInfo:edit']" <!-- v-hasPermi="['mes/prod:prodPlanInfo:edit']"-->
>修改 <!-- >修改-->
</el-button> <!-- </el-button>-->
<el-button <!-- <el-button-->
size="mini" <!-- size="mini"-->
type="text" <!-- type="text"-->
icon="el-icon-delete" <!-- icon="el-icon-delete"-->
@click="handleDelete(scope.row)" <!-- @click="handleDelete(scope.row)"-->
v-hasPermi="['mes/prod:prodPlanInfo:remove']" <!-- v-hasPermi="['mes/prod:prodPlanInfo:remove']"-->
>删除 <!-- >删除-->
</el-button> <!-- </el-button>-->
</template> <!-- </template>-->
</el-table-column> <!-- </el-table-column>-->
</el-table> </el-table>
<pagination <pagination
@ -370,23 +370,23 @@ export default {
] ]
}, },
columns: [ columns: [
{ key: 0, label: `主键标识`, visible: true }, { key: 0, label: `主键标识`, visible: false },
{ key: 1, label: `工单编号`, visible: true }, { key: 1, label: `工单编号`, visible: true },
{ key: 2, label: `订单编号`, visible: true }, { key: 2, label: `订单编号`, visible: true },
{ key: 3, label: `物料编号`, visible: true }, { key: 3, label: `物料编号`, visible: true },
{ key: 4, label: `物料名称`, visible: true }, { key: 4, label: `物料名称`, visible: true },
{ key: 5, label: `计划工位`, visible: true }, { key: 5, label: `计划工位`, visible: true },
{ key: 6, label: `设备编号`, visible: true }, { key: 6, label: `设备编号`, visible: false },
{ key: 7, label: `计划班组`, visible: true }, { key: 7, label: `计划班组`, visible: true },
{ key: 8, label: `计划数量`, visible: true }, { key: 8, label: `计划数量`, visible: true },
{ 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: true },
{ key: 13, label: `创建人`, visible: true }, { key: 13, label: `创建人`, visible: false },
{ key: 14, label: `创建时间`, visible: true }, { key: 14, label: `创建时间`, visible: false },
{ key: 15, label: `更新人`, visible: true }, { key: 15, label: `更新人`, visible: false },
{ key: 16, label: `更新时间`, visible: true } { key: 16, label: `更新时间`, visible: false }
] ]
} }
}, },

@ -29,10 +29,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"
/> />
@ -55,29 +55,29 @@
</el-form> </el-form>
<el-row :gutter="10" class="mb8"> <el-row :gutter="10" class="mb8">
<el-col :span="1.5"> <!-- <el-col :span="1.5">-->
<el-button <!-- <el-button-->
type="primary" <!-- type="primary"-->
plain <!-- plain-->
icon="el-icon-plus" <!-- icon="el-icon-plus"-->
size="mini" <!-- size="mini"-->
@click="handleAdd" <!-- @click="handleAdd"-->
v-hasPermi="['mes/record:recordStaffAttendance:add']" <!-- v-hasPermi="['mes/record:recordStaffAttendance:add']"-->
>新增 <!-- >新增-->
</el-button> <!-- </el-button>-->
</el-col> <!-- </el-col>-->
<el-col :span="1.5"> <!-- <el-col :span="1.5">-->
<el-button <!-- <el-button-->
type="success" <!-- type="success"-->
plain <!-- plain-->
icon="el-icon-edit" <!-- icon="el-icon-edit"-->
size="mini" <!-- size="mini"-->
:disabled="single" <!-- :disabled="single"-->
@click="handleUpdate" <!-- @click="handleUpdate"-->
v-hasPermi="['mes/record:recordStaffAttendance:edit']" <!-- v-hasPermi="['mes/record:recordStaffAttendance:edit']"-->
>修改 <!-- >修改-->
</el-button> <!-- </el-button>-->
</el-col> <!-- </el-col>-->
<el-col :span="1.5"> <el-col :span="1.5">
<el-button <el-button
type="danger" type="danger"
@ -108,17 +108,23 @@
<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="员工ID" align="center" prop="staffId" v-if="columns[1].visible"/> <el-table-column label="员工ID" align="center" prop="staffId" v-if="columns[1].visible"/>
<el-table-column label="员工姓名" align="center" prop="staffName" v-if="columns[12].visible"/>
<el-table-column label="打卡类型" align="center" prop="attendanceType" v-if="columns[2].visible"> <el-table-column label="打卡类型" align="center" prop="attendanceType" v-if="columns[2].visible">
<template slot-scope="scope"> <template slot-scope="scope">
<dict-tag :options="dict.type.attendance_type" :value="scope.row.attendanceType"/> <dict-tag :options="dict.type.attendance_type" :value="scope.row.attendanceType"/>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="班组编号" align="center" prop="teamCode" v-if="columns[3].visible"/> <el-table-column label="班组" align="center" prop="teamName" v-if="columns[3].visible"/>
<el-table-column label="班次" align="center" prop="classes" v-if="columns[4].visible"> <el-table-column label="班次" align="center" prop="classes" v-if="columns[4].visible">
<template slot-scope="scope"> <template slot-scope="scope">
<dict-tag :options="dict.type.classes" :value="scope.row.classes"/> <dict-tag :options="dict.type.classes" :value="scope.row.classes"/>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="打卡时间" align="center" prop="createTime" width="180" v-if="columns[8].visible">
<template slot-scope="scope">
<span>{{ parseTime(scope.row.createTime, '{y}-{m}-{d} {h}:{i}:{s}') }}</span>
</template>
</el-table-column>
<el-table-column label="备注" align="center" prop="remark" v-if="columns[5].visible"/> <el-table-column label="备注" align="center" prop="remark" v-if="columns[5].visible"/>
<el-table-column label="是否标识" align="center" prop="isFlag" v-if="columns[6].visible"> <el-table-column label="是否标识" align="center" prop="isFlag" v-if="columns[6].visible">
<template slot-scope="scope"> <template slot-scope="scope">
@ -126,11 +132,6 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="创建人" align="center" prop="createBy" v-if="columns[7].visible"/> <el-table-column label="创建人" align="center" prop="createBy" v-if="columns[7].visible"/>
<el-table-column label="打卡时间" align="center" prop="createTime" width="180" v-if="columns[8].visible">
<template slot-scope="scope">
<span>{{ parseTime(scope.row.createTime, '{y}-{m}-{d} {h}:{i}:{s}') }}</span>
</template>
</el-table-column>
<el-table-column label="更新人" align="center" prop="updateBy" v-if="columns[9].visible"/> <el-table-column label="更新人" align="center" prop="updateBy" v-if="columns[9].visible"/>
<el-table-column label="更新时间" align="center" prop="updateTime" width="180" v-if="columns[10].visible"> <el-table-column label="更新时间" align="center" prop="updateTime" width="180" v-if="columns[10].visible">
<template slot-scope="scope"> <template slot-scope="scope">
@ -138,26 +139,26 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="机台编号" align="center" prop="machineCode" v-if="columns[11].visible"/> <el-table-column label="机台编号" align="center" prop="machineCode" v-if="columns[11].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">-->
<el-button <!-- <el-button-->
size="mini" <!-- size="mini"-->
type="text" <!-- type="text"-->
icon="el-icon-edit" <!-- icon="el-icon-edit"-->
@click="handleUpdate(scope.row)" <!-- @click="handleUpdate(scope.row)"-->
v-hasPermi="['mes/record:recordStaffAttendance:edit']" <!-- v-hasPermi="['mes/record:recordStaffAttendance:edit']"-->
>修改 <!-- >修改-->
</el-button> <!-- </el-button>-->
<el-button <!-- <el-button-->
size="mini" <!-- size="mini"-->
type="text" <!-- type="text"-->
icon="el-icon-delete" <!-- icon="el-icon-delete"-->
@click="handleDelete(scope.row)" <!-- @click="handleDelete(scope.row)"-->
v-hasPermi="['mes/record:recordStaffAttendance:remove']" <!-- v-hasPermi="['mes/record:recordStaffAttendance:remove']"-->
>删除 <!-- >删除-->
</el-button> <!-- </el-button>-->
</template> <!-- </template>-->
</el-table-column> <!-- </el-table-column>-->
</el-table> </el-table>
<pagination <pagination
@ -184,8 +185,8 @@
</el-radio> </el-radio>
</el-radio-group> </el-radio-group>
</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="classes"> <el-form-item label="班次" prop="classes">
<el-radio-group v-model="form.classes"> <el-radio-group v-model="form.classes">
@ -276,15 +277,16 @@ export default {
{ key: 0, label: `主键标识`, visible: false }, { key: 0, label: `主键标识`, visible: false },
{ key: 1, label: `员工ID`, visible: true }, { key: 1, label: `员工ID`, visible: true },
{ key: 2, label: `打卡类型`, visible: true }, { key: 2, label: `打卡类型`, visible: true },
{ key: 3, label: `班组编号`, visible: true }, { key: 3, label: `所属班组`, visible: true },
{ key: 4, label: `班次`, visible: true }, { key: 4, label: `班次`, visible: false },
{ key: 5, label: `备注`, visible: true }, { key: 5, label: `备注`, visible: true },
{ key: 6, label: `是否标识`, visible: false }, { key: 6, label: `是否标识`, visible: false },
{ key: 7, label: `创建人`, visible: false }, { key: 7, label: `创建人`, visible: false },
{ key: 8, label: `打卡时间`, visible: true }, { key: 8, label: `打卡时间`, visible: true },
{ key: 9, label: `更新人`, visible: false }, { key: 9, label: `更新人`, visible: false },
{ key: 10, label: `更新时间`, visible: false }, { key: 10, label: `更新时间`, visible: false },
{ key: 11, label: `机台编号`, visible: true } { key: 11, label: `机台编号`, visible: false },
{ key: 12, label: `员工姓名`, visible: true },
] ]
} }
}, },

Loading…
Cancel
Save