change - 订单、工单页面优化

main
yinq 1 month ago
parent c3569d5c41
commit 09a2d898a9

@ -667,7 +667,7 @@ export default {
// //
rules: { rules: {
objId: [ objId: [
{ required: true, message: ' 主键标识不能为空', trigger: 'blur' } { required: true, message: '主键标识不能为空', trigger: 'blur' }
], ],
SeqNo: [ SeqNo: [
{ required: true, message: '任务编号不能为空', trigger: 'blur' } { required: true, message: '任务编号不能为空', trigger: 'blur' }

@ -62,41 +62,41 @@
</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:prodPlanErpInfo:add']" <!-- v-hasPermi="['mes/prod:prodPlanErpInfo: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/prod:prodPlanErpInfo:edit']" <!-- v-hasPermi="['mes/prod:prodPlanErpInfo: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"-->
plain <!-- plain-->
icon="el-icon-delete" <!-- icon="el-icon-delete"-->
size="mini" <!-- size="mini"-->
:disabled="multiple" <!-- :disabled="multiple"-->
@click="handleDelete" <!-- @click="handleDelete"-->
v-hasPermi="['mes/prod:prodPlanErpInfo:remove']" <!-- v-hasPermi="['mes/prod:prodPlanErpInfo:remove']"-->
>删除 <!-- >删除-->
</el-button> <!-- </el-button>-->
</el-col> <!-- </el-col>-->
<el-col :span="1.5"> <el-col :span="1.5">
<el-button <el-button
type="warning" type="warning"

@ -147,7 +147,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="orderCode" v-if="columns[2].visible" width="130"/> <el-table-column label="订单编号" align="center" prop="orderCode" v-if="columns[2].visible" width="130"/>
<el-table-column label="工单编号" align="center" prop="planCode" v-if="columns[1].visible" width="130"/> <el-table-column label="工单编号" align="center" prop="planCode" v-if="columns[1].visible" width="230"/>
<el-table-column label="物料编号" align="center" prop="materialCode" v-if="columns[3].visible" width="130"/> <el-table-column label="物料编号" align="center" prop="materialCode" v-if="columns[3].visible" width="130"/>
<el-table-column label="物料名称" align="center" prop="materialName" v-if="columns[4].visible" width="130"/> <el-table-column label="物料名称" align="center" prop="materialName" v-if="columns[4].visible" width="130"/>
<el-table-column label="计划工位" align="center" prop="stationName" v-if="columns[5].visible" width="130"/> <el-table-column label="计划工位" align="center" prop="stationName" v-if="columns[5].visible" width="130"/>
@ -182,12 +182,13 @@
<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" fixed="right"> <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-right" icon="el-icon-right"
v-if="scope.row.importFlag === '1'"
@click="handlePlanDetails(scope.row)" @click="handlePlanDetails(scope.row)"
>查看明细 >查看明细
</el-button> </el-button>
@ -357,6 +358,7 @@ export default {
teamCode: null, teamCode: null,
planAmount: null, planAmount: null,
completeAmount: null, completeAmount: null,
importFlag: null,
beginTime: null, beginTime: null,
endTime: null, endTime: null,
compFlag: null, compFlag: null,
@ -380,11 +382,11 @@ export default {
{ key: 0, label: `主键标识`, visible: false }, { 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: false },
{ 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: true }, { key: 7, label: `计划班组`, visible: false },
{ 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 },

Loading…
Cancel
Save