| | |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <el-form-item label="零件" prop="partId"> |
| | | <el-tooltip class="item" effect="dark" :content="partStr" > |
| | | <el-input v-model="partStr" placeholder="" readonly> |
| | | <el-button |
| | | v-if="!this.dataForm.id" |
| | |
| | | @click="openRoutingDialog()" |
| | | ></el-button> |
| | | </el-input> |
| | | </el-tooltip> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row :gutter="10"> |
| | | <el-col :span="3"> |
| | | <el-col :span="4"> |
| | | <el-form-item label="需求数量" prop="qtyRequired"> |
| | | <el-input |
| | | v-model="dataForm.qtyRequired" |
| | |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="3"> |
| | | <el-col :span="4"> |
| | | <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="5"> |
| | | <el-form-item label="备注" prop="remark"> |
| | | <el-input v-model="dataForm.remark" placeholder=""></el-input> |
| | | <el-tooltip class="item" effect="dark" :content="dataForm.remark"> |
| | | <el-input v-model="dataForm.remark" placeholder=""> |
| | | </el-input> |
| | | </el-tooltip> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <el-col :span="5"> |
| | | <el-form-item label="制造属性" prop="manufactureAttr"> |
| | | <el-select |
| | | v-model="dataForm.manufactureAttr" |
| | |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col |
| | | <el-col :span="10"> |
| | | <el-form-item label="工艺文件" prop="technologyDocumentName"> |
| | | <el-tooltip class="item" effect="dark" :content="dataForm.technologyDocumentName"> |
| | | <el-input v-model="dataForm.technologyDocumentName" placeholder=""> |
| | | </el-input> |
| | | </el-tooltip> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <!-- <el-col |
| | | :span="2" |
| | | v-if="permissions.plan_manufacturingorder_bom_sure" |
| | | > |
| | |
| | | <el-switch v-model="dataForm.standardConfirmStatus"> |
| | | </el-switch> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="2"> |
| | | </el-col> --> |
| | | <!-- <el-col :span="2"> |
| | | <el-form-item |
| | | label="IFS车间订单接收时报告工序" |
| | | prop="isReportOperation" |
| | |
| | | <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> |
| | |
| | | </el-table> |
| | | </el-card> |
| | | </el-tab-pane> |
| | | <el-tab-pane |
| | | <!-- <el-tab-pane |
| | | label="检测标准" |
| | | key="tb1" |
| | | id="tb1" |
| | |
| | | :moRoutingOperationId="moRoutingOperationId" |
| | | @refreshTestStandardInfo="refreshTestStandardInfo" |
| | | ></testStandardTable> |
| | | </el-tab-pane> |
| | | </el-tab-pane> --> |
| | | <!-- <el-tab-pane |
| | | label="抽检规则" |
| | | key="tb2" |
| | |
| | | label="单位" |
| | | /> |
| | | |
| | | <el-table-column |
| | | <!-- <el-table-column |
| | | prop="discNum" |
| | | width="150" |
| | | header-align="center" |
| | | align="center" |
| | | label="盘数(盘)" |
| | | /> |
| | | /> --> |
| | | |
| | | <!-- <el-table-column |
| | | prop="version" |
| | |
| | | endDate: null, |
| | | manufactureAttr: 'N', |
| | | isReportOperation: false, |
| | | outPutBatchList: [] |
| | | outPutBatchList: [], |
| | | technologyDocumentId: null, |
| | | technologyDocumentName: null, |
| | | }, |
| | | currentRow: [], |
| | | currentRouting: {}, // 当前选择的工艺 |
| | |
| | | operationTemplateList: [], // 参数集 |
| | | templateParamList: [], // 参数 |
| | | dataRule: { |
| | | technologyDocumentName:[ |
| | | { required: true, message: '工艺文件不能为空', trigger: 'blur' } |
| | | ], |
| | | workshopTypeCode: [ |
| | | { required: true, message: '车间订单类型不能为空', trigger: 'blur' } |
| | | ], |
| | |
| | | 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 (newValue && newValue.id) { |
| | | // 查询产品结构对应的组件 |
| | | getBom(newValue.id).then((response) => { |
| | | console.log("查",this.components); |
| | | // this.components = [response.data.data.tree] |
| | | }) |
| | | } |
| | |
| | | checkPart(value, this.dataForm.workshopTypeCode) |
| | | .then((response) => { |
| | | const manufacturingOrderDTO = response.data.data |
| | | /* this.dataForm.routingList = manufacturingOrderDTO.routingList.filter( |
| | | (e) => e.bomTypeDb === this.dataForm.workshopTypeCode |
| | | ) */ |
| | | this.dataForm.routingList = manufacturingOrderDTO.routingList |
| | | /* this.dataForm.bomList = manufacturingOrderDTO.bomList.filter( |
| | | (e) => e.bomTypeDb === this.dataForm.workshopTypeCode |
| | | ) */ |
| | | this.dataForm.bomList = manufacturingOrderDTO.bomList |
| | | this.dataForm.technologyRoutingId = |
| | | manufacturingOrderDTO.technologyRoutingId |
| | |
| | | this.showRouting = true |
| | | }, |
| | | selectRouting(param) { |
| | | console.log(param); |
| | | if (param) { |
| | | this.dataForm.partNo = param.partNo |
| | | this.dataForm.partName = param.partName |
| | | this.dataForm.partId = param.partId |
| | | this.dataForm.technologyDocumentId = param.id |
| | | this.dataForm.technologyDocumentName = param.name |
| | | this.$refs.dataForm.validateField('partId', (valid) => {}) |
| | | } |
| | | }, |
| | |
| | | }) |
| | | }, |
| | | // 2.tabs-工艺路线 |
| | | //工艺文件选择 |
| | | |
| | | // 工艺路线选择 |
| | | routingSelectChanged(routingId) { |
| | | this.currentRouting = this.dataForm.routingList.find( |
| | |
| | | }, |
| | | // 新增工序 |
| | | addOperation(operation) { |
| | | console.log('operation', operation) |
| | | }, |
| | | insertOperation(operation) {}, |
| | | structSelectionChange(val) { |