|
|
@ -108,7 +108,7 @@
|
|
|
|
<el-table-column label="销售订单行号" align="center" prop="saleorderLinenumber" v-if="columns[4].visible"/>
|
|
|
|
<el-table-column label="销售订单行号" align="center" prop="saleorderLinenumber" v-if="columns[4].visible"/>
|
|
|
|
<el-table-column label="物料编号" align="center" prop="materialCode" v-if="columns[5].visible"/>
|
|
|
|
<el-table-column label="物料编号" align="center" prop="materialCode" v-if="columns[5].visible"/>
|
|
|
|
<el-table-column label="物料名称" align="center" prop="materialName" v-if="columns[6].visible"/>
|
|
|
|
<el-table-column label="物料名称" align="center" prop="materialName" v-if="columns[6].visible"/>
|
|
|
|
<el-table-column label="计划工位" align="center" prop="productLineCode" v-if="columns[7].visible"/>
|
|
|
|
<el-table-column label="计划工位" align="center" prop="productLineName" 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">
|
|
|
@ -168,27 +168,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 添加或修改生产计划对话框 -->
|
|
|
|
<!-- 添加或修改生产计划对话框 -->
|
|
|
|
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
|
|
|
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
|
|
|
<el-form-item label="计划编号" prop="planCode">
|
|
|
|
<el-form-item label="计划编号" prop="planCode">
|
|
|
|
<el-input v-model="form.planCode" placeholder="请输入计划编号" />
|
|
|
|
<el-input v-model="form.planCode" placeholder="请输入计划编号" :disabled="true"/>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="工单编号" prop="orderCode">
|
|
|
|
<el-form-item label="工单编号" prop="orderCode">
|
|
|
|
<el-input v-model="form.orderCode" placeholder="请输入工单编号" />
|
|
|
|
<el-input v-model="form.orderCode" placeholder="请输入工单编号" :disabled="true"/>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="销售订单编号" prop="saleOrderCode">
|
|
|
|
<el-form-item label="销售订单编号" prop="saleOrderCode">
|
|
|
|
<el-input v-model="form.saleOrderCode" placeholder="请输入销售订单编号" />
|
|
|
|
<el-input v-model="form.saleOrderCode" placeholder="请输入销售订单编号" :disabled="true"/>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="销售订单行号" prop="saleorderLinenumber">
|
|
|
|
<el-form-item label="销售订单行号" prop="saleorderLinenumber">
|
|
|
|
<el-input v-model="form.saleorderLinenumber" placeholder="请输入销售订单行号" />
|
|
|
|
<el-input v-model="form.saleorderLinenumber" placeholder="请输入销售订单行号" :disabled="true"/>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="物料编号" prop="materialCode">
|
|
|
|
<el-form-item label="物料编号" prop="materialCode">
|
|
|
|
<el-input v-model="form.materialCode" placeholder="请输入物料编号" />
|
|
|
|
<el-input v-model="form.materialCode" placeholder="请输入物料编号" :disabled="true"/>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="物料名称" prop="materialName">
|
|
|
|
<el-form-item label="物料名称" prop="materialName">
|
|
|
|
<el-input v-model="form.materialName" placeholder="请输入物料名称" />
|
|
|
|
<el-input v-model="form.materialName" placeholder="请输入物料名称" :disabled="true"/>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="计划工位" prop="productLineCode">
|
|
|
|
<el-form-item label="计划工位">
|
|
|
|
<el-input v-model="form.productLineCode" placeholder="请输入计划工位" />
|
|
|
|
<el-select v-model="form.productLineCode" placeholder="请选择产线工位">
|
|
|
|
|
|
|
|
<el-option
|
|
|
|
|
|
|
|
v-for="item in productLineList"
|
|
|
|
|
|
|
|
:key="item.productLineCode"
|
|
|
|
|
|
|
|
:label="item.productLineName"
|
|
|
|
|
|
|
|
:value="item.productLineCode"
|
|
|
|
|
|
|
|
></el-option>
|
|
|
|
|
|
|
|
</el-select>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="计划数量" prop="planAmount">
|
|
|
|
<el-form-item label="计划数量" prop="planAmount">
|
|
|
|
<el-input v-model="form.planAmount" placeholder="请输入计划数量" />
|
|
|
|
<el-input v-model="form.planAmount" placeholder="请输入计划数量" />
|
|
|
@ -223,6 +230,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
import { listPlanInfo, getPlanInfo, delPlanInfo, addPlanInfo, updatePlanInfo } from "@/api/production/planInfo";
|
|
|
|
import { listPlanInfo, getPlanInfo, delPlanInfo, addPlanInfo, updatePlanInfo } from "@/api/production/planInfo";
|
|
|
|
|
|
|
|
import { findProductLineList } from '@//api/base/productLine'
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
name: "PlanInfo",
|
|
|
|
name: "PlanInfo",
|
|
|
@ -295,11 +303,16 @@ export default {
|
|
|
|
{ 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 },
|
|
|
|
]
|
|
|
|
],
|
|
|
|
|
|
|
|
// 产线工位选项
|
|
|
|
|
|
|
|
productLineList: [],
|
|
|
|
};
|
|
|
|
};
|
|
|
|
},
|
|
|
|
},
|
|
|
|
created() {
|
|
|
|
created() {
|
|
|
|
this.getList();
|
|
|
|
this.getList();
|
|
|
|
|
|
|
|
findProductLineList().then(response => {
|
|
|
|
|
|
|
|
this.productLineList = response.data;
|
|
|
|
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
/** 查询生产计划列表 */
|
|
|
|
/** 查询生产计划列表 */
|
|
|
|