| | |
| | | </div> |
| | | <div class="btn-group header-right" v-if="editable"> |
| | | <el-button :disabled="isSubmit" v-thinclick="`dataFormSubmit`" |
| | | >保存</el-button |
| | | type="primary">保存</el-button |
| | | > |
| | | </div> |
| | | </div> |
| | |
| | | <el-col :span="3"> |
| | | <el-form-item label="完成数量" prop="qtyFinished"> |
| | | <el-input-number |
| | | style= "width: 90%" |
| | | v-model="dataForm.qtyFinished" |
| | | placeholder="" |
| | | :controls="false" |
| | |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <!-- <el-col :span="6"> |
| | | <el-form-item label="外护颜色" prop="outerColor"> |
| | | <el-input |
| | | readonly |
| | |
| | | placeholder="" |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | |
| | | <el-row :gutter="10"> |
| | | <el-col :span="6"> |
| | | </el-col> --> |
| | | <el-col :span="6"> |
| | | <el-form-item label="备注" prop="remark"> |
| | | <el-input v-model="dataForm.remark" placeholder=""></el-input> |
| | | </el-form-item> |
| | |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="8"> |
| | | <el-col |
| | | :span="8" |
| | | v-if="permissions.plan_manufacturingorder_bom_sure" |
| | | > |
| | | <el-form-item label="BOM确认"> |
| | | <el-switch v-model="dataForm.bomConfirmStatus"> </el-switch> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col |
| | | :span="8" |
| | | v-if="permissions.plan_manufacturingorder_process_sure" |
| | | > |
| | | <el-form-item label="工艺确认"> |
| | | <el-switch v-model="dataForm.processConfirmStatus"> |
| | | </el-switch> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col |
| | | :span="8" |
| | | v-if="permissions.plan_manufacturingorder_test_sure" |
| | | > |
| | | <el-form-item label="检测标准确认"> |
| | | <el-switch v-model="dataForm.standardConfirmStatus"> |
| | | </el-switch> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <!-- <el-col |
| | | :span="2" |
| | | v-if="permissions.plan_manufacturingorder_bom_sure" |
| | | > |
| | | <el-form-item label="BOM确认" label-width="110px"> |
| | | <el-switch v-model="dataForm.bomConfirmStatus"> </el-switch> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="4"> |
| | | <el-col |
| | | :span="2" |
| | | v-if="permissions.plan_manufacturingorder_process_sure" |
| | | > |
| | | <el-form-item label="工艺确认" label-width="110px"> |
| | | <el-switch v-model="dataForm.processConfirmStatus"> |
| | | </el-switch> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col |
| | | :span="2" |
| | | v-if="permissions.plan_manufacturingorder_test_sure" |
| | | > |
| | | <el-form-item label="检测标准确认" label-width="140px"> |
| | | <el-switch v-model="dataForm.standardConfirmStatus"> |
| | | </el-switch> |
| | | </el-form-item> |
| | | </el-col> --> |
| | | <!-- <el-col :span="2"> |
| | | <el-form-item |
| | | label="IFS车间订单接收时报告工序" |
| | | prop="isReportOperation" |
| | | label-width="200px" |
| | | label-width="250px" |
| | | > |
| | | <el-switch v-model="dataForm.isReportOperation" disabled> |
| | | </el-switch> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-col> --> |
| | | <!-- <el-col :span="2"> |
| | | <el-form-item label="BOM确认"> |
| | | <el-switch > |
| | |
| | | </el-switch> |
| | | </el-form-item> |
| | | </el-col> --> |
| | | </el-row> |
| | | |
| | | </div> |
| | | <div class="productorder-detail"> |
| | | <el-card class="productorder-list"> |
| | |
| | | <el-option |
| | | v-for="item in dataForm.routingList" |
| | | :key="item.id" |
| | | :label=" |
| | | item.routingNo + |
| | | '-' + |
| | | item.bomTypeDb + |
| | | '-' + |
| | | item.alternativeNo + |
| | | '-' + |
| | | item.alternativeDesc |
| | | " |
| | | :label="item.routingNo " |
| | | :value="item.id" |
| | | > |
| | | </el-option> |
| | |
| | | @refreshTestStandardInfo="refreshTestStandardInfo" |
| | | ></testStandardTable> |
| | | </el-tab-pane> |
| | | <el-tab-pane |
| | | <!-- <el-tab-pane |
| | | label="抽检规则" |
| | | key="tb2" |
| | | id="tb2" |
| | |
| | | </el-table> |
| | | </div> |
| | | </div> |
| | | </el-tab-pane> |
| | | </el-tab-pane> --> |
| | | </el-tabs> |
| | | </el-col> |
| | | </el-row> |
| | |
| | | |
| | | <el-tab-pane label="产品结构" id="ta1" key="ta1" name="ta1"> |
| | | <el-row> |
| | | <el-col :span="11"> |
| | | <el-form-item label="完整BOM"> |
| | | <el-col :span="2" style="text-align: center"> |
| | | <el-button |
| | | type="text" |
| | | size="small" |
| | | icon="el-icon-circle-plus-outline" |
| | | style="color:#f56c6c;" |
| | | :disabled="!dataForm.id" |
| | | @click="addStruct()" |
| | | >添加元素 |
| | | </el-button> |
| | | </el-col> |
| | | <el-col :offset="11" :span="11"> |
| | | <!-- <el-form-item label="完整BOM"> |
| | | <el-select |
| | | @change="bomSelectChanged" |
| | | disabled |
| | |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :offset="11" :span="2" style="text-align: center"> |
| | | <el-button |
| | | type="text" |
| | | size="small" |
| | | icon="el-icon-circle-plus-outline" |
| | | style="color:#f56c6c;" |
| | | :disabled="!dataForm.id" |
| | | @click="addStruct()" |
| | | >添加元素 |
| | | </el-button> |
| | | </el-form-item> --> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-table |
| | | default-expand-all |
| | | :data="components" |
| | | :data="components[0]" |
| | | @selection-change="structSelectionChange" |
| | | row-key="id" |
| | | border |
| | | :tree-props="{ |
| | | children: 'children' |
| | | }" |
| | | style="width: 100%" |
| | | height="400px" |
| | | :default-sort="{ prop: 'index' }" |
| | | > |
| | | <el-table-column type="selection" width="40" fixed="left" /> |
| | | <!-- <el-table-column type="selection" width="40" fixed="left" /> --> |
| | | <el-table-column |
| | | type="index" |
| | | width="50" |
| | |
| | | /> |
| | | <el-table-column |
| | | prop="partName" |
| | | width="" |
| | | width="200" |
| | | header-align="center" |
| | | align="left" |
| | | label="零件" |
| | |
| | | </el-table-column> |
| | | </el-table> |
| | | </el-row> |
| | | <el-row> |
| | | <!-- <el-row> |
| | | <el-col :span="24" |
| | | ><div style="margin-top:5px;"> |
| | | <span style="font-size:12px;">外协发料表</span> |
| | |
| | | </el-table-column> |
| | | </el-table> |
| | | </el-col> |
| | | </el-row> |
| | | </el-row> --> |
| | | </el-tab-pane> |
| | | <el-tab-pane label="客户订单" id="ta3" key="ta3" name="ta3"> |
| | | <CustomerOrder :orderId="dataForm.id" /> |
| | |
| | | |
| | | data() { |
| | | return { |
| | | componentsTable:[], |
| | | typeOptions: [], |
| | | paramTemplateSelArr: [], |
| | | paramTemplateSelCol: 'operationTemplateNo', |
| | |
| | | } |
| | | } |
| | | }, |
| | | |
| | | components(newVal,oldVal){ |
| | | }, |
| | | currentRouting(newValue, oldValue) { |
| | | if (newValue && newValue.id) { |
| | | if (this.dataForm.id != null && this.dataForm.id !== 0) { |
| | |
| | | if (newValue && newValue.id) { |
| | | // 查询产品结构对应的组件 |
| | | getBom(newValue.id).then((response) => { |
| | | this.components = [response.data.data.tree] |
| | | // this.components = [response.data.data.tree] |
| | | }) |
| | | } |
| | | }, |
| | |
| | | }, |
| | | // 查询当前车间订单信息 |
| | | getOrderInfo() { |
| | | let that=this |
| | | getManufacturingOrder(this.dataForm.id).then((response) => { |
| | | this.dataForm = response.data.data |
| | | // 把工艺挂上去 |
| | |
| | | } |
| | | // 把产品结构组件挂上去 |
| | | if (this.dataForm.bomRoot) { |
| | | this.components = [this.dataForm.bomRoot] |
| | | that.components = [this.dataForm.bomRoot] |
| | | } |
| | | }) |
| | | }, |
| | |
| | | }, |
| | | // 新增工序 |
| | | addOperation(operation) { |
| | | console.log('operation', operation) |
| | | }, |
| | | insertOperation(operation) {}, |
| | | structSelectionChange(val) { |
| | |
| | | }, |
| | | // 打开bom节点 |
| | | addStruct() { |
| | | if (this.structSelection.length <= 0) { |
| | | this.$message.error('请选择需要添加元素的节点') |
| | | } else { |
| | | if (this.structSelection.length === 1) { |
| | | this.selectedStruct = this.structSelection[0] |
| | | this.moId = this.dataForm.id |
| | | this.showStructForm = true |
| | | } else { |
| | | this.$message.error('只能为单个节点添加元素') |
| | | } |
| | | } |
| | | this.selectedStruct = this.structSelection[0] |
| | | this.moId = this.dataForm.id |
| | | this.showStructForm = true |
| | | // if (this.structSelection.length <= 0) { |
| | | // this.$message.error('请选择需要添加元素的节点') |
| | | // } else { |
| | | // if (this.structSelection.length === 1) { |
| | | // } else { |
| | | // this.$message.error('只能为单个节点添加元素') |
| | | // } |
| | | // } |
| | | }, |
| | | refreshBom(node) { |
| | | if (this.selectedStruct.children != null) { |