| | |
| | | <el-col :span="12" style="line-height: 32px;">标准BOM</el-col> |
| | | <el-col :span="12" style="text-align: right;"> |
| | | <el-button type="primary" icon="el-icon-plus" style="background: #004EA2;" |
| | | @click="showBomAddModel">新增</el-button> |
| | | @click="bomAddModelVisible = true">新增</el-button> |
| | | <el-button icon="el-icon-plus">新增版本</el-button> |
| | | <el-button @click="bomRightDl=true" icon="el-icon-delete">删除</el-button> |
| | | </el-col> |
| | |
| | | </div> |
| | | </el-tree> |
| | | </div> |
| | | |
| | | |
| | | <div class="right"> |
| | | <div class="choose"> |
| | | <span>类型:</span> |
| | |
| | | <el-option :value="3" label="生产工艺"></el-option> |
| | | </el-select> |
| | | <span>{{ tableType == 1 ? '项目:' : '工艺名称:' }}</span> |
| | | <el-input v-model="searchName" size="small" placeholder="请输入" style="width: 224px;margin-right: 24px;" |
| | | <el-input v-model="searchName" size="small" placeholder="请输入" style="width: 224px;margin-right: 50px;" |
| | | clearable></el-input> |
| | | <span>{{ tableType == 1 ? '版本:' : '版本:' }}</span> |
| | | <el-select size="small" v-model="VER" @change="verevent" style="width: 280px;" placeholder="请选择"> |
| | | <span>版本:</span> |
| | | <el-select v-model="version2" @change="verevent" size="small" style="width: 280px;margin-right: 10px;" placeholder="请选择"> |
| | | <el-option v-for="item in version" :key="item" :label="item" :value="item"> |
| | | </el-option> |
| | | </el-select> |
| | | <el-button style="margin-left:10px;" size="mini" @click="() => { searchName = ''; selectProductTableData() }"><span>重 置</span></el-button> |
| | | <el-button size="mini" @click="() => { searchName = ''; selectProductTableData() }"><span>重 置</span></el-button> |
| | | <el-button size="mini" type="primary" style="background: #004EA2;" @click="selectProductTableData"><span>查 |
| | | 询</span></el-button> |
| | | </div> |
| | | |
| | | <div v-if="this.typeselect == 0"> |
| | | <div class="contentTable" v-if="this.typeselect == 0"> |
| | | <technology :tableType="tableType" :tableData="tableData"></technology> |
| | | </div> |
| | | <div v-if="this.typeselect == 1"> |
| | | <target :tableType="tableType" :tableData="tableData"></target> |
| | | </div> |
| | | <div v-if="this.typeselect == 2"> |
| | | <material :tableType="tableType" :tableData="tableData"></material> |
| | | <bom :tableType="tableType" :tableData="tableData"></bom> |
| | | </div> |
| | | <div v-if="this.typeselect == 3"> |
| | | <product :tableType="tableType" :tableData="tableData"></product> |
| | | </div> |
| | | <div v-if="this.typeselect == 3">生产工艺</div> |
| | | |
| | | </div> |
| | | </div> |
| | |
| | | <script> |
| | | import technology from "./standard-table/technology.vue" |
| | | import material from "./standard-table/material.vue" |
| | | import target from "./standard-table/target.vue" |
| | | import product from "./standard-table/product.vue" |
| | | // import bom from "./standard-table/bom.vue" |
| | | import bomClickAdd from '@/components/view/standard-box/bomClickAdd' |
| | | export default { |
| | | components: { technology,material,target,product,bomClickAdd }, |
| | | components: { technology,material,bomClickAdd }, |
| | | |
| | | data() { |
| | | var checkPq = (rule,value,callback)=>{ |
| | | if(value!='' && !Number.isInteger(value)){ |
| | |
| | | name: null, |
| | | specifications: null |
| | | }, |
| | | VER: {}, |
| | | version2: {}, |
| | | verdata: {}, |
| | | character: 0, |
| | | restaurants: [], |
| | |
| | | this.$refs[formName].resetFields(); |
| | | }, |
| | | leftAddBom(){ |
| | | |
| | | |
| | | }, |
| | | //右侧bom,确认新增 |
| | | confirmAdd(formName){ |
| | |
| | | TYPE(val) {//类型.数据 |
| | | // console.log(val); |
| | | this.typeselect = val |
| | | |
| | | // console.log(this.typeselect); |
| | | this.selectVersion() |
| | | }, |
| | |
| | | return this.verdata[0] |
| | | }) |
| | | this.character=v |
| | | this.VER="v"+v |
| | | this.version2="v"+v |
| | | this.selectAll() |
| | | }, |
| | | //右侧数据 |