| | |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="7"> |
| | | <el-col :span="10"> |
| | | <el-form-item label="工作中心" prop="workCenter"> |
| | | <el-select v-model="dataForm.workCenter" :disabled="!editable" filterable placeholder="请选择工作中心" |
| | | style="width:100%" @change="changeWorkCenter"> |
| | |
| | | :key="index"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row :gutter="10"> |
| | | <el-col :span="15"> |
| | | <el-form-item label="计划时间" prop="localDateTimes"> |
| | | <el-date-picker :class="tattimest ? 'sed' : ''" v-model="dataForm.localDateTimes" |
| | | type="datetimerange" range-separator="至" start-placeholder="开始" end-placeholder="结束" |
| | | value-format="yyyy-MM-dd HH:mm:ss" @change="selectChangedplannedDate"> |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | |
| | | </el-col> |
| | | </el-row> |
| | | <el-row :gutter="10"> |
| | | <el-col :span="14"> |
| | | <el-form-item label="计划时间" prop="localDateTimes"> |
| | | <el-date-picker :class="tattimest ? 'sed' : ''" v-model="dataForm.localDateTimes" |
| | | type="datetimerange" range-separator="至" start-placeholder="开始" end-placeholder="结束" |
| | | value-format="yyyy-MM-dd HH:mm:ss" @change="selectChangedplannedDate"> |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="10"> |
| | | <el-form-item label="计划数量" prop="plannedQuantity"> |
| | | <el-input v-model="dataForm.plannedQuantity" :disabled="!editable" placeholder="计划数量" |
| | | style="width:calc(100% - 30px)"></el-input> |
| | | <span>{{ dataForm.unit }}</span> |
| | | </el-form-item> |
| | | </el-col></el-row> |
| | | <el-row :gutter="10"> |
| | | <el-col :span="12"> |
| | | <el-form-item label="零件" prop="partName"> |
| | | <el-input v-model="dataForm.partName" placeholder="零件" disabled></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <el-form-item label="零件号" prop="partNo"> |
| | | <el-input v-model="dataForm.partNo" placeholder="零件号" disabled></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <el-col :span="10"> |
| | | <el-form-item label="工单所需时间" prop="taskTheoreticalTime"> |
| | | <el-input v-model="dataForm.taskTheoreticalTime" placeholder="工单所需时间" |
| | | style="width:calc(100% - 30px)"></el-input> |
| | | <span>min</span> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row :gutter="10"> |
| | | <el-col :span="12"> |
| | | <el-form-item label="零件" prop="partName"> |
| | | <el-tooltip class="item" effect="dark" :content="dataForm.partName" > |
| | | <el-input v-model="dataForm.partName" placeholder="零件" disabled></el-input> |
| | | </el-tooltip> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="10"> |
| | | <el-form-item label="零件号" prop="partNo"> |
| | | <el-tooltip class="item" effect="dark" :content="dataForm.partNo" > |
| | | <el-input v-model="dataForm.partNo" placeholder="零件号" disabled></el-input> |
| | | </el-tooltip> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | |
| | | <!-- </el-table>--> |
| | | <!-- </el-card>--> |
| | | <!-- </el-tab-pane>--> |
| | | <el-tab-pane label="工单供应表" v-if="this.dataForm.id"> |
| | | <!-- <el-tab-pane label="工单供应表" v-if="this.dataForm.id"> |
| | | <manufacturing-order :operationId="this.dataForm.id" ref="manufacturing"></manufacturing-order> |
| | | </el-tab-pane> |
| | | <el-tab-pane label="工单所需物料" v-if="this.dataForm.id"> |
| | | </el-tab-pane> --> |
| | | <!-- <el-tab-pane label="工单所需物料" v-if="this.dataForm.id"> |
| | | <operation-supply :operationId="this.dataForm.id" :routingOperationId="this.dataForm.moRoutingOperationId" |
| | | ref="manufacturing"></operation-supply> |
| | | </el-tab-pane> |
| | | </el-tab-pane> --> |
| | | </el-tabs> |
| | | |
| | | <span slot="footer" class="dialog-footer"> |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | routingList: [], |
| | | routingList: {}, |
| | | routingOptions: [], |
| | | locationOptions: [], |
| | | workstationOption: [], |
| | |
| | | } |
| | | }) |
| | | }, |
| | | changeWorkCenter() { |
| | | changeWorkCenter(opName) { |
| | | this.workstations = [] |
| | | this.dataForm.workstationId = null |
| | | this.locationOptions = [] |
| | |
| | | this.$refs.ganttIndex.init(this.workCenter) |
| | | }) |
| | | |
| | | this.changeWorkCenterAction() |
| | | this.changeWorkCenterAction(opName) |
| | | }, |
| | | changeWorkCenterAction() { |
| | | changeWorkCenterAction(opName) { |
| | | if (this.dataForm.workCenter) { |
| | | const queryParamStation = Object.assign({ |
| | | workCenter: this.dataForm.workCenter |
| | |
| | | getAllWorkstationList(queryParamStation).then((response) => { |
| | | const resData = response.data.data |
| | | if (resData && resData.length > 0) { |
| | | let obj = null |
| | | resData.forEach((ele)=>{ |
| | | if(ele.name.indexOf(opName)>-1){ |
| | | obj = ele |
| | | } |
| | | }) |
| | | if(obj){ |
| | | this.dataForm.workstationId = obj.id |
| | | } |
| | | this.workstations = resData |
| | | } |
| | | }) |
| | |
| | | this.$refs.ganttIndex.init(this.dataForm.workCenter, 1) |
| | | }) |
| | | } |
| | | }) |
| | | }) |
| | | }, |
| | | // 表单提交 |
| | | dataFormSubmit() { |
| | |
| | | |
| | | this.dataForm.operationName = routingOperation.operationName |
| | | this.dataForm.workCenter = routingOperation.workCenter |
| | | this.changeWorkCenter() |
| | | this.changeWorkCenter(routingOperation.operationName) |
| | | this.dataForm.routingOperationId = |
| | | routingOperation.technologyRoutingOperationId |
| | | }, |
| | | |
| | | // 根据工作站切换库位 |
| | | selectLocationByWorkstation() { |
| | | this.locationOptions = [] |