|
|
@@ -0,0 +1,442 @@
|
|
|
+<template>
|
|
|
+ <div class="ele-body">
|
|
|
+ <el-card shadow="never" class="tabs_box">
|
|
|
+ <el-button size="small" type="primary" class="ele-btn-icon"
|
|
|
+ >关闭</el-button
|
|
|
+ >
|
|
|
+ <headerTitle style="margin-top: 10px" />
|
|
|
+ <el-form
|
|
|
+ ref="form"
|
|
|
+ :model="form"
|
|
|
+ :rules="rules"
|
|
|
+ label-position="right"
|
|
|
+ label-width="140px"
|
|
|
+ >
|
|
|
+ <el-row :gutter="10" class="basic">
|
|
|
+ <el-col :lg="8" :md="12" :sm="12" :xl="8" :xs="12">
|
|
|
+ <el-form-item label="计划编号:">
|
|
|
+ <el-input v-model="form.order" disabled></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :lg="8" :md="12" :sm="12" :xl="8" :xs="12">
|
|
|
+ <el-form-item label="批次号:">
|
|
|
+ <el-input v-model="form.order" disabled></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :lg="8" :md="12" :sm="12" :xl="8" :xs="12">
|
|
|
+ <el-form-item label="编码:">
|
|
|
+ <el-input v-model="form.order" disabled></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :lg="8" :md="12" :sm="12" :xl="8" :xs="12">
|
|
|
+ <el-form-item label="名称:">
|
|
|
+ <el-input v-model="form.order" disabled></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :lg="8" :md="12" :sm="12" :xl="8" :xs="12">
|
|
|
+ <el-form-item label="零部件图号:">
|
|
|
+ <el-input v-model="form.order" disabled></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :lg="8" :md="12" :sm="12" :xl="8" :xs="12">
|
|
|
+ <el-form-item label="计划数量:">
|
|
|
+ <el-input v-model="form.order" disabled></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :lg="8" :md="12" :sm="12" :xl="8" :xs="12">
|
|
|
+ <el-form-item label="BOM类型:">
|
|
|
+ <el-input v-model="form.order" disabled></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :lg="8" :md="12" :sm="12" :xl="8" :xs="12">
|
|
|
+ <el-form-item label="BOM版本:">
|
|
|
+ <el-input v-model="form.order" disabled></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :lg="8" :md="12" :sm="12" :xl="8" :xs="12">
|
|
|
+ <el-form-item label="投料控制清单号:">
|
|
|
+ <el-input v-model="form.order" disabled></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :lg="8" :md="12" :sm="12" :xl="8" :xs="12">
|
|
|
+ <el-form-item label="需求订单号:">
|
|
|
+ <el-input v-model="form.order" disabled></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :lg="8" :md="12" :sm="12" :xl="8" :xs="12">
|
|
|
+ <el-form-item label="顶级产品编号:">
|
|
|
+ <el-input v-model="form.order" disabled></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :lg="8" :md="12" :sm="12" :xl="8" :xs="12">
|
|
|
+ <el-form-item label="顶级产品名称:">
|
|
|
+ <el-input v-model="form.order" disabled></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :lg="8" :md="12" :sm="12" :xl="8" :xs="12">
|
|
|
+ <el-form-item label="生产工单号:">
|
|
|
+ <el-input v-model="form.order" disabled></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </el-form>
|
|
|
+
|
|
|
+ <seek-page :seekList="seekList" @search="search"></seek-page>
|
|
|
+
|
|
|
+ <ele-pro-table
|
|
|
+ ref="table"
|
|
|
+ :columns="columns"
|
|
|
+ :datasource="datasource"
|
|
|
+ :selection.sync="selection"
|
|
|
+ row-key="id"
|
|
|
+ cache-key="entrust_list_data"
|
|
|
+ :height="tableHeight"
|
|
|
+ :pageSize="20"
|
|
|
+ @fullscreen-change="fullscreenChange"
|
|
|
+ ></ele-pro-table>
|
|
|
+ </el-card>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+ export default {
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ visible: false,
|
|
|
+ form: {},
|
|
|
+ rules: {},
|
|
|
+ tableHeight: 'calc(100vh - 665px)',
|
|
|
+ selection: []
|
|
|
+ };
|
|
|
+ },
|
|
|
+
|
|
|
+ computed: {
|
|
|
+ columns() {
|
|
|
+ return [
|
|
|
+ {
|
|
|
+ columnKey: 'selection',
|
|
|
+ type: 'selection',
|
|
|
+ width: 45,
|
|
|
+ align: 'center',
|
|
|
+ fixed: 'left'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ columnKey: 'index',
|
|
|
+ label: '序号',
|
|
|
+ type: 'index',
|
|
|
+ width: 55,
|
|
|
+ align: 'center',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ fixed: 'left'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: 'type',
|
|
|
+ label: '物料分类',
|
|
|
+ width: 100,
|
|
|
+ align: 'center',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ slot: 'type'
|
|
|
+ },
|
|
|
+ ,
|
|
|
+ {
|
|
|
+ prop: 'type',
|
|
|
+ label: '属性类型',
|
|
|
+ width: 100,
|
|
|
+ align: 'center',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ slot: 'type'
|
|
|
+ },
|
|
|
+ ,
|
|
|
+ {
|
|
|
+ prop: 'type',
|
|
|
+ label: '存货类型',
|
|
|
+ width: 100,
|
|
|
+ align: 'center',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ slot: 'type'
|
|
|
+ },
|
|
|
+ ,
|
|
|
+ {
|
|
|
+ prop: 'type',
|
|
|
+ label: '生产类型',
|
|
|
+ width: 100,
|
|
|
+ align: 'center',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ slot: 'type'
|
|
|
+ },
|
|
|
+ ,
|
|
|
+ {
|
|
|
+ prop: 'type',
|
|
|
+ label: '物料编码',
|
|
|
+ width: 100,
|
|
|
+ align: 'center',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ slot: 'type'
|
|
|
+ },
|
|
|
+ ,
|
|
|
+ {
|
|
|
+ prop: 'type',
|
|
|
+ label: '需求订单号',
|
|
|
+ width: 100,
|
|
|
+ align: 'center',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ slot: 'type'
|
|
|
+ },
|
|
|
+ ,
|
|
|
+ {
|
|
|
+ prop: 'type',
|
|
|
+ label: '物料名称',
|
|
|
+ width: 100,
|
|
|
+ align: 'center',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ slot: 'type'
|
|
|
+ },
|
|
|
+ ,
|
|
|
+ {
|
|
|
+ prop: 'type',
|
|
|
+ label: '型号',
|
|
|
+ width: 100,
|
|
|
+ align: 'center',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ slot: 'type'
|
|
|
+ },
|
|
|
+ ,
|
|
|
+ {
|
|
|
+ prop: 'type',
|
|
|
+ label: '规格',
|
|
|
+ width: 100,
|
|
|
+ align: 'center',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ slot: 'type'
|
|
|
+ },
|
|
|
+ ,
|
|
|
+ {
|
|
|
+ prop: 'type',
|
|
|
+ label: '尺寸',
|
|
|
+ width: 100,
|
|
|
+ align: 'center',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ slot: 'type'
|
|
|
+ },
|
|
|
+ ,
|
|
|
+ {
|
|
|
+ prop: 'type',
|
|
|
+ label: '基本数量',
|
|
|
+ width: 100,
|
|
|
+ align: 'center',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ slot: 'type'
|
|
|
+ },
|
|
|
+ ,
|
|
|
+ {
|
|
|
+ prop: 'type',
|
|
|
+ label: '投料控制数量/定额数量',
|
|
|
+ width: 190,
|
|
|
+ align: 'center',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ slot: 'type'
|
|
|
+ },
|
|
|
+ ,
|
|
|
+ {
|
|
|
+ prop: 'type',
|
|
|
+ label: '计量单位',
|
|
|
+ width: 100,
|
|
|
+ align: 'center',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ slot: 'type'
|
|
|
+ },
|
|
|
+ ,
|
|
|
+ {
|
|
|
+ prop: 'type',
|
|
|
+ label: '牌号',
|
|
|
+ width: 100,
|
|
|
+ align: 'center',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ slot: 'type'
|
|
|
+ },
|
|
|
+ ,
|
|
|
+ {
|
|
|
+ prop: 'type',
|
|
|
+ label: '重量',
|
|
|
+ width: 100,
|
|
|
+ align: 'center',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ slot: 'type'
|
|
|
+ },
|
|
|
+ ,
|
|
|
+ {
|
|
|
+ prop: 'type',
|
|
|
+ label: '重量单位',
|
|
|
+ width: 100,
|
|
|
+ align: 'center',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ slot: 'type'
|
|
|
+ },
|
|
|
+ ,
|
|
|
+ {
|
|
|
+ prop: 'type',
|
|
|
+ label: '机型',
|
|
|
+ width: 100,
|
|
|
+ align: 'center',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ slot: 'type'
|
|
|
+ },
|
|
|
+ ,
|
|
|
+ {
|
|
|
+ prop: 'type',
|
|
|
+ label: '颜色',
|
|
|
+ width: 100,
|
|
|
+ align: 'center',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ slot: 'type'
|
|
|
+ },
|
|
|
+ ,
|
|
|
+ {
|
|
|
+ prop: 'type',
|
|
|
+ label: '已领数量',
|
|
|
+ width: 100,
|
|
|
+ align: 'center',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ slot: 'type'
|
|
|
+ },
|
|
|
+ ,
|
|
|
+ {
|
|
|
+ prop: 'type',
|
|
|
+ label: '未领数量',
|
|
|
+ width: 100,
|
|
|
+ align: 'center',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ slot: 'type'
|
|
|
+ },
|
|
|
+ ,
|
|
|
+ {
|
|
|
+ prop: 'type',
|
|
|
+ label: '已出库数量',
|
|
|
+ width: 100,
|
|
|
+ align: 'center',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ slot: 'type'
|
|
|
+ },
|
|
|
+ ,
|
|
|
+ {
|
|
|
+ prop: 'type',
|
|
|
+ label: '未出库数量',
|
|
|
+ width: 100,
|
|
|
+ align: 'center',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ slot: 'type'
|
|
|
+ },
|
|
|
+ ,
|
|
|
+ {
|
|
|
+ prop: 'type',
|
|
|
+ label: '已投数量',
|
|
|
+ width: 100,
|
|
|
+ align: 'center',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ slot: 'type'
|
|
|
+ },
|
|
|
+ ,
|
|
|
+ {
|
|
|
+ prop: 'type',
|
|
|
+ label: '未投数量',
|
|
|
+ width: 100,
|
|
|
+ align: 'center',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ slot: 'type'
|
|
|
+ },
|
|
|
+ ,
|
|
|
+ {
|
|
|
+ prop: 'type',
|
|
|
+ label: '余料数量',
|
|
|
+ width: 100,
|
|
|
+ align: 'center',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ slot: 'type'
|
|
|
+ },
|
|
|
+ ,
|
|
|
+ {
|
|
|
+ prop: 'type',
|
|
|
+ label: '创建人',
|
|
|
+ width: 100,
|
|
|
+ align: 'center',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ slot: 'type'
|
|
|
+ },
|
|
|
+ ,
|
|
|
+ {
|
|
|
+ prop: 'type',
|
|
|
+ label: '创建时间',
|
|
|
+ width: 100,
|
|
|
+ align: 'center',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ slot: 'type'
|
|
|
+ }
|
|
|
+ ];
|
|
|
+ },
|
|
|
+
|
|
|
+ seekList() {
|
|
|
+ return [
|
|
|
+ {
|
|
|
+ label: '计划编号:',
|
|
|
+ value: 'name',
|
|
|
+ type: 'input',
|
|
|
+ labelWidth: 100
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '批次号:',
|
|
|
+ value: 'name',
|
|
|
+ type: 'input',
|
|
|
+ labelWidth: 80
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '编码:',
|
|
|
+ value: 'name',
|
|
|
+ type: 'input',
|
|
|
+ labelWidth: 50
|
|
|
+ }
|
|
|
+ ];
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
+ methods: {
|
|
|
+ datasource() {
|
|
|
+ return [];
|
|
|
+ },
|
|
|
+
|
|
|
+ open() {
|
|
|
+ this.visible = true;
|
|
|
+ },
|
|
|
+
|
|
|
+ cancel() {
|
|
|
+ this.visible = false;
|
|
|
+ },
|
|
|
+
|
|
|
+ search() {},
|
|
|
+
|
|
|
+ fullscreenChange(fullscreen) {
|
|
|
+ if (fullscreen) {
|
|
|
+ this.tableHeight = 'calc(100vh - 120px)';
|
|
|
+ } else {
|
|
|
+ this.tableHeight = 'calc(100vh - 665px)';
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ };
|
|
|
+</script>
|
|
|
+
|
|
|
+<style scoped>
|
|
|
+ ::v-deep .el-form-item {
|
|
|
+ margin-bottom: 15px !important;
|
|
|
+ }
|
|
|
+</style>
|