|
|
|
@ -1,6 +1,16 @@
|
|
|
|
|
<template>
|
|
|
|
|
<div class="app-container">
|
|
|
|
|
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
|
|
|
|
|
<el-form-item label="工作中心" prop="workCenterCode" >
|
|
|
|
|
<el-select v-model="queryParams.workCenterCode" placeholder="请选择工作中心" >
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in productLineList"
|
|
|
|
|
:key="item.workCenterCode"
|
|
|
|
|
:label="item.workCenterName"
|
|
|
|
|
:value="item.workCenterCode"
|
|
|
|
|
></el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="SAP计划编号" prop="orderCode">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="queryParams.orderCode"
|
|
|
|
@ -117,7 +127,13 @@
|
|
|
|
|
<span>{{ parseTime(scope.row.endDate, '{y}-{m}-{d}') }}</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="完成日期" align="center" prop="completeDate" width="180" v-if="columns[19].visible">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span>{{ parseTime(scope.row.completeDate, '{y}-{m}-{d}') }}</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="工厂编码" align="center" prop="factoryCode" v-if="columns[13].visible"/>
|
|
|
|
|
<el-table-column label="工作中心编码" align="center" prop="workCenterCode" v-if="columns[13].visible"/>
|
|
|
|
|
<el-table-column label="启用标识" align="center" prop="isFlag" v-if="columns[14].visible">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<dict-tag :options="dict.type.is_flag" :value="scope.row.isFlag"/>
|
|
|
|
@ -135,11 +151,7 @@
|
|
|
|
|
<span>{{ parseTime(scope.row.updatedTime, '{y}-{m}-{d} {h}:{i}:{s}') }}</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="完成日期" align="center" prop="completeDate" width="180" v-if="columns[19].visible">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span>{{ parseTime(scope.row.completeDate, '{y}-{m}-{d}') }}</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" fixed="right">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button
|
|
|
|
@ -275,6 +287,7 @@ import {
|
|
|
|
|
updateOrderInfo,
|
|
|
|
|
releaseOrderPlan
|
|
|
|
|
} from '@/api/base/orderInfo'
|
|
|
|
|
import { findProductLineList } from '@//api/base/productLine'
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
name: "OrderInfo",
|
|
|
|
@ -351,7 +364,9 @@ export default {
|
|
|
|
|
{ key: 18, label: `更新时间`, visible: false },
|
|
|
|
|
{ key: 19, label: `完成日期`, visible: true },
|
|
|
|
|
{ key: 20, label: `是否已下达生产计划`, visible: true },
|
|
|
|
|
]
|
|
|
|
|
],
|
|
|
|
|
// 产线选项
|
|
|
|
|
productLineList: [],
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
@ -366,6 +381,9 @@ export default {
|
|
|
|
|
this.total = response.total;
|
|
|
|
|
this.loading = false;
|
|
|
|
|
});
|
|
|
|
|
findProductLineList({productLineType: 1}).then(response => {
|
|
|
|
|
this.productLineList = response.data;
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
// 取消按钮
|
|
|
|
|
cancel() {
|
|
|
|
|