| | |
| | | v-hasPermi="['bs:formulaChild:export']" |
| | | >导出</el-button> |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="warning" |
| | | plain |
| | | icon="el-icon-close" |
| | | size="mini" |
| | | @click="handleClose" |
| | | >关闭</el-button> |
| | | </el-col> |
| | | <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> |
| | | </el-row> |
| | | |
| | | <el-descriptions class="margin-top" :column="4" :size="size" border> |
| | | <el-descriptions-item :span="1"> |
| | | <template slot="label"> |
| | | <i class="el-icon-user"></i> |
| | | 配方编码 |
| | | </template> |
| | | {{headerInformationData.formulaCode}} |
| | | </el-descriptions-item> |
| | | <el-descriptions-item :span="1"> |
| | | <template slot="label"> |
| | | <i class="el-icon-mobile-phone"></i> |
| | | 配方名称 |
| | | </template> |
| | | {{headerInformationData.formulaName}} |
| | | </el-descriptions-item> |
| | | <el-descriptions-item :span="1"> |
| | | <template slot="label"> |
| | | <i class="el-icon-location-outline"></i> |
| | | 产品编码 |
| | | </template> |
| | | {{headerInformationData.productCode}} |
| | | </el-descriptions-item> |
| | | <el-descriptions-item :span="1"> |
| | | <template slot="label"> |
| | | <i class="el-icon-tickets"></i> |
| | | 产品名称 |
| | | </template> |
| | | <!-- {{headerInformationData.productName}}--> |
| | | </el-descriptions-item> |
| | | </el-descriptions> |
| | | |
| | | <el-table border v-loading="loading" :data="formulaChildList" @selection-change="handleSelectionChange"> |
| | | <el-table-column type="selection" width="55" align="center" /> |
| | | <el-table-column label="id" align="center" prop="id" /> |
| | | <el-table-column label="车间" align="center" prop="workshopCode"> |
| | | <!-- <el-table-column label="车间" align="center" prop="workshopCode">--> |
| | | <!-- </el-table-column>--> |
| | | <!-- <el-table-column label="产线" align="center" prop="lineCode">--> |
| | | <!-- </el-table-column>--> |
| | | <el-table-column label="工序" width="90" align="center" prop="processesCode"> |
| | | </el-table-column> |
| | | <el-table-column label="产线" align="center" prop="lineCode"> |
| | | <el-table-column label="产品编号" width="150" align="center" prop="productCode"> |
| | | </el-table-column> |
| | | <el-table-column label="工序" align="center" prop="processesCode"> |
| | | <el-table-column label="操作内容" :show-overflow-tooltip='true' width="150" align="center" prop="operationSteps"> |
| | | </el-table-column> |
| | | <el-table-column label="产品编号" align="center" prop="productCode"> |
| | | <el-table-column label="技术要求" width="150" :show-overflow-tooltip='true' align="center" prop="techRequirement"> |
| | | </el-table-column> |
| | | <el-table-column label="操作内容" align="center" prop="operationSteps"> |
| | | <el-table-column label="类型" width="90" align="center" prop="operationType"> |
| | | </el-table-column> |
| | | <el-table-column label="技术要求" :show-overflow-tooltip='true' align="center" prop="techRequirement"> |
| | | <el-table-column label="排序" width="90" align="center" prop="stepSort"> |
| | | </el-table-column> |
| | | <el-table-column label="类型" align="center" prop="operationType"> |
| | | <el-table-column label="参数编码" width="130" align="center" prop="paramCode"> |
| | | </el-table-column> |
| | | <el-table-column label="排序" align="center" prop="stepSort"> |
| | | <el-table-column label="物料编码" width="130" align="center" prop="materialCode"> |
| | | </el-table-column> |
| | | <el-table-column label="参数编码" align="center" prop="paramCode"> |
| | | <el-table-column label="配方编码" width="130" align="center" prop="formulaCode"> |
| | | </el-table-column> |
| | | <el-table-column label="物料编码" align="center" prop="materialCode"> |
| | | <el-table-column label="图片" :show-overflow-tooltip='true' width="130" align="center" prop="picture"> |
| | | </el-table-column> |
| | | <el-table-column label="配方编码" align="center" prop="formulaCode"> |
| | | <el-table-column label="备注" width="130" align="center" prop="remarks"> |
| | | </el-table-column> |
| | | <el-table-column label="图片" align="center" prop="picture"> |
| | | <el-table-column label="创建用户" width="130" align="center" prop="createUser"> |
| | | </el-table-column> |
| | | <el-table-column label="备注" align="center" prop="remarks"> |
| | | <el-table-column label="创建时间" width="150" align="center" prop="createTime"> |
| | | </el-table-column> |
| | | <el-table-column label="创建用户" align="center" prop="createUser"> |
| | | <el-table-column label="更改用户" width="130" align="center" prop="updateUser"> |
| | | </el-table-column> |
| | | <el-table-column label="创建时间" align="center" prop="createTime"> |
| | | </el-table-column> |
| | | <el-table-column label="更改用户" align="center" prop="updateUser"> |
| | | </el-table-column> |
| | | <el-table-column label="更改时间" align="center" prop="updateTime"> |
| | | <el-table-column label="更改时间" width="160" align="center" prop="updateTime"> |
| | | </el-table-column> |
| | | <el-table-column fixed="right" width="200" label="操作" align="center" class-name="small-padding fixed-width"> |
| | | <template slot-scope="scope"> |
| | |
| | | {{titleName}} |
| | | </span> |
| | | <el-form ref="form" :model="form" :rules="rules" label-width="80px"> |
| | | <el-form-item label="车间" prop="workshopCode"> |
| | | <el-input v-model="form.workshopCode" placeholder="请输入车间" /> |
| | | </el-form-item> |
| | | <el-form-item label="产线" prop="lineCode"> |
| | | <el-input v-model="form.lineCode" placeholder="请输入产线" /> |
| | | <!-- <el-form-item label="车间" prop="workshopCode">--> |
| | | <!-- <el-input v-model="form.workshopCode" placeholder="请输入车间" />--> |
| | | <!-- </el-form-item>--> |
| | | <!-- <el-form-item label="产线" prop="lineCode">--> |
| | | <!-- <el-input v-model="form.lineCode" placeholder="请输入产线" />--> |
| | | <!-- </el-form-item>--> |
| | | <el-form-item label="配方编码"> |
| | | <el-input v-model="formulaCode" :disabled="true" /> |
| | | </el-form-item> |
| | | <el-form-item label="工序" prop="processesCode"> |
| | | <el-input v-model="form.processesCode" placeholder="请输入工序" /> |
| | |
| | | <el-form-item label="物料编码" prop="materialCode"> |
| | | <el-input v-model="form.materialCode" placeholder="请输入物料编码" /> |
| | | </el-form-item> |
| | | <el-form-item label="配方编码" prop="formulaCode"> |
| | | <el-input v-model="form.formulaCode" placeholder="请输入配方编码" /> |
| | | </el-form-item> |
| | | <!-- <el-form-item label="配方编码" prop="formulaCode">--> |
| | | <!-- <el-input v-model="form.formulaCode" placeholder="请输入配方编码" />--> |
| | | <!-- </el-form-item>--> |
| | | <el-form-item label="图片" prop="picture"> |
| | | <el-input v-model="form.picture" placeholder="请输入图片" /> |
| | | </el-form-item> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { listFormula} from "@/api/main/bs/formula/formula"; |
| | | import { listFormulaChild, getFormulaChild, delFormulaChild, addFormulaChild, updateFormulaChild } from "@/api/main/bs/formulaChild/formulaChild"; |
| | | |
| | | export default { |
| | | name: "FormulaChild", |
| | | data() { |
| | | return { |
| | | headerInformationData:{ |
| | | formulaCode: "", |
| | | formulaName: "", |
| | | productCode: "", |
| | | productName: "" |
| | | }, |
| | | // 遮罩层 |
| | | loading: true, |
| | | titleName: "", |
| | |
| | | showSearch: true, |
| | | // 总条数 |
| | | total: 0, |
| | | formulaCode: "", |
| | | // 配方配置子信息表格数据 |
| | | formulaChildList: [], |
| | | // 弹出层标题 |
| | |
| | | processesCode: null, |
| | | productCode: null, |
| | | operationType: null, |
| | | formulaCode: null, |
| | | }, |
| | | // 表单参数 |
| | | form: {}, |
| | |
| | | }; |
| | | }, |
| | | created() { |
| | | const formulaCode = this.$route.params && this.$route.params.formulaCode; |
| | | this.queryParams.formulaCode = formulaCode; |
| | | this.formulaCode = formulaCode; |
| | | this.headerInformation(); |
| | | this.getList(); |
| | | }, |
| | | methods: { |
| | | /** 工艺流程表头信息 */ |
| | | headerInformation() { |
| | | listFormula(this.queryParams).then(response => { |
| | | this.headerInformationData = response.rows[0]; |
| | | }); |
| | | }, |
| | | /** 返回按钮操作 */ |
| | | handleClose() { |
| | | const obj = { path: "/main/pm/formula" }; |
| | | this.$tab.closeOpenPage(obj); |
| | | }, |
| | | /** 查询配方配置子信息列表 */ |
| | | getList() { |
| | | this.loading = true; |