| | |
| | | @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-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 |
| | |
| | | |
| | | data() { |
| | | return { |
| | | componentsTable:[], |
| | | typeOptions: [], |
| | | paramTemplateSelArr: [], |
| | | paramTemplateSelCol: 'operationTemplateNo', |
| | |
| | | this.getBomTypeDbOptions() |
| | | this.getManufactureAttrs('manufacture_attr_type') |
| | | this.getSysParam(sysParam.IS_REPORT_OPERATION) |
| | | // console.log(this.components); |
| | | }, |
| | | watch: { |
| | | 'dataForm.partId'(newValue, oldValue) { |
| | |
| | | } |
| | | } |
| | | }, |
| | | |
| | | components(newVal,oldVal){ |
| | | console.log("新",newVal); |
| | | console.log("老",oldVal); |
| | | console.log(this.components); |
| | | }, |
| | | 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] |
| | | console.log("查",this.components); |
| | | // 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] |
| | | } |
| | | }) |
| | | }, |