基础信息管理BOM

master
A0010407 1 year ago
parent 86d48e5154
commit 139c0ce488

@ -1,14 +1,6 @@
<template>
<div class="app-container">
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="88px">
<el-form-item label="工厂" prop="factoryCode">
<el-input
v-model="queryParams.factoryCode"
placeholder="请输入工厂"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="BOM单号" prop="bomCode">
<el-input
v-model="queryParams.bomCode"
@ -17,22 +9,15 @@
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="是否在用" prop="currentVersion">
<el-input
v-model="queryParams.currentVersion"
placeholder="请输入是否在用"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery"></el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"></el-button>
</el-form-item>
</el-form>
<!--
<el-row :gutter="10" class="mb8">
<!-- <el-col :span="1.5">
<el-col :span="1.5">
<el-button
type="primary"
plain
@ -73,49 +58,36 @@
@click="handleExport"
v-hasPermi="['wms:bom:export']"
>导出</el-button>
</el-col> -->
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
</el-row>-->
<el-table v-loading="loading" :data="bomList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
<el-table
v-loading="loading"
:data="bomList"
@selection-change="handleSelectionChange"
row-key="bomCode"
:tree-props="{children: 'children', hasChildren: 'hasChildren'}"
>
<el-table-column type="selection" align="center" />
<!-- 序号 -->
<el-table-column type="index" width="90" align="center" :index="indexMethod" label="序号"></el-table-column>
<el-table-column label="BOM单号" align="center" prop="bomCode" />
<el-table-column label="可选BOM" align="center" prop="optionalBom" />
<el-table-column label="可选BOM文本" align="center" prop="optionalBomText" />
<el-table-column label="生产版本有效期" align="center" prop="pvvd" width="180"></el-table-column>
<el-table-column label="生产版本截止日期" align="center" prop="pved" width="180"></el-table-column>
<el-table-column label="工厂" align="center" prop="factoryCode" />
<el-table-column label="生产版本" align="center" prop="productionVersion" />
<el-table-column label="BOM计算数量" align="center" prop="bomCalculateNumber" />
<el-table-column label="BOM计算单位" align="center" prop="bomCalculateUnit" />
<el-table-column label="BOM基本数量" align="center" prop="bomBaseNumber" />
<el-table-column label="BOM基本单位" align="center" prop="bomBaseUnit" />
<el-table-column label="BOM单号" width="120" align="center" prop="bomCode" />
<el-table-column label="物料编码" width="200" align="center" prop="productCode" />
<el-table-column label="组件上层物料编码" width="200" align="center" prop="cumc" />
<el-table-column label="组件编码" width="120" align="center" prop="component" />
<el-table-column label="BOM层次" align="center" prop="bomHierarchy" />
<el-table-column label="项目编号" align="center" prop="projectNo" />
<el-table-column label="标准用量" align="center" prop="standardDosage" />
<el-table-column label="损耗率" align="center" prop="lossRate" />
<el-table-column label="损耗额" align="center" prop="lossAmount" />
<el-table-column label="含损耗用量" align="center" prop="cilosses" />
<el-table-column label="组件数量单位" align="center" prop="componentUnit" />
<el-table-column label="组件采购标志" align="center" prop="componentProFlag" />
<el-table-column label="物料供应标识" align="center" prop="msi" />
<el-table-column label="成本核算标识相关" align="center" prop="sanka" />
<el-table-column label="备注" align="center" prop="remark" />
<el-table-column label="是否在用" align="center" prop="currentVersion" />
<!-- <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button
size="mini"
type="text"
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
v-hasPermi="['wms:bom:edit']"
>修改</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
v-hasPermi="['wms:bom:remove']"
>删除</el-button>
</template>
</el-table-column> -->
<el-table-column label="组件采购标志" align="center" prop="componentProFlag" />
<el-table-column label="物料供应标识" align="center" prop="msi"/>
<el-table-column label="成本核算标识相关" align="center" prop="sanka"/>
<el-table-column label="创建人" align="center" prop="createBy" />
<el-table-column label="创建时间" width="200" align="center" prop="createTime" />
</el-table>
<pagination
@ -125,77 +97,6 @@
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
<!-- 添加或修改BOM物料管理对话框 -->
<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-item label="BOM单号" prop="bomCode">
<el-input v-model="form.bomCode" placeholder="请输入BOM单号" />
</el-form-item>
<el-form-item label="可选BOM" prop="optionalBom">
<el-input v-model="form.optionalBom" placeholder="请输入可选BOM" />
</el-form-item>
<el-form-item label="可选BOM文本" prop="optionalBomText">
<el-input v-model="form.optionalBomText" placeholder="请输入可选BOM文本" />
</el-form-item>
<el-form-item label="生产版本有效期" prop="pvvd">
<el-date-picker clearable
v-model="form.pvvd"
type="date"
value-format="yyyy-MM-dd"
placeholder="请选择生产版本有效期">
</el-date-picker>
</el-form-item>
<el-form-item label="生产版本截止日期" prop="pved">
<el-date-picker clearable
v-model="form.pved"
type="date"
value-format="yyyy-MM-dd"
placeholder="请选择生产版本截止日期">
</el-date-picker>
</el-form-item>
<el-form-item label="工厂" prop="factoryCode">
<el-input v-model="form.factoryCode" placeholder="请输入工厂" />
</el-form-item>
<el-form-item label="生产版本" prop="productionVersion">
<el-input v-model="form.productionVersion" placeholder="请输入生产版本" />
</el-form-item>
<el-form-item label="BOM计算数量" prop="bomCalculateNumber">
<el-input v-model="form.bomCalculateNumber" placeholder="请输入BOM计算数量" />
</el-form-item>
<el-form-item label="BOM计算单位" prop="bomCalculateUnit">
<el-input v-model="form.bomCalculateUnit" placeholder="请输入BOM计算单位" />
</el-form-item>
<el-form-item label="BOM基本数量" prop="bomBaseNumber">
<el-input v-model="form.bomBaseNumber" placeholder="请输入BOM基本数量" />
</el-form-item>
<el-form-item label="BOM基本单位" prop="bomBaseUnit">
<el-input v-model="form.bomBaseUnit" placeholder="请输入BOM基本单位" />
</el-form-item>
<el-form-item label="组件数量单位" prop="componentUnit">
<el-input v-model="form.componentUnit" placeholder="请输入组件数量单位" />
</el-form-item>
<el-form-item label="组件采购标志" prop="componentProFlag">
<el-input v-model="form.componentProFlag" placeholder="请输入组件采购标志" />
</el-form-item>
<el-form-item label="物料供应标识" prop="msi">
<el-input v-model="form.msi" placeholder="请输入物料供应标识" />
</el-form-item>
<el-form-item label="成本核算标识相关" prop="sanka">
<el-input v-model="form.sanka" placeholder="请输入成本核算标识相关" />
</el-form-item>
<el-form-item label="备注" prop="remark">
<el-input v-model="form.remark" placeholder="请输入备注" />
</el-form-item>
<el-form-item label="是否在用" prop="currentVersion">
<el-input v-model="form.currentVersion" placeholder="请输入是否在用" />
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm"> </el-button>
<el-button @click="cancel"> </el-button>
</div>
</el-dialog>
</div>
</template>
@ -377,7 +278,7 @@ export default {
this.download('wms/bom/export', {
...this.queryParams
}, `bom_${new Date().getTime()}.xlsx`)
}
}
}
}
};
</script>

Loading…
Cancel
Save