| | |
| | | }} |
| | | </div> |
| | | <el-divider /> |
| | | <div style="margin-bottom: 10px"> |
| | | <div style="margin-bottom: 10px;display: flex;align-items: center"> |
| | | <i class="el-icon-s-operation" :style="{color:$store.state.settings.theme}" /> 工艺路线集合 |
| | | <el-input v-model="filterRoute" style="width: 200px;margin-left: 10px;" placeholder="请输入工艺路线进行过滤" @input="filterRouteChange" /> |
| | | |
| | | </div> |
| | | |
| | | <div class="myCheckboxGroup"> |
| | |
| | | <div style="width:calc(100% - 460px)"> |
| | | <div style="margin-bottom: 10px"> |
| | | <i class="el-icon-s-operation" :style="{color:$store.state.settings.theme}" /> 工艺路线集合 |
| | | <el-input v-model="filterRoute" style="width: 200px;margin-left: 10px;" placeholder="请输入工艺路线进行过滤" @input="filterRouteChange2" /> |
| | | </div> |
| | | |
| | | <div class="myCheckboxGroup"> |
| | |
| | | batchRouteDataSelectedIndex: 0, // 左侧产品选中值 带出右侧工艺路线 |
| | | |
| | | dialogVisibleBatchStep: false, |
| | | batchStepSelectedValue: [] |
| | | batchStepSelectedValue: [], |
| | | |
| | | filterRoute: '', |
| | | routeOperationArrTemp: [] |
| | | } |
| | | }, |
| | | watch: { |
| | |
| | | this.getSelectApi() |
| | | }, |
| | | methods: { |
| | | filterRouteChange(val) { |
| | | this.dialogFormRoute.routeOperationArr = this.routeOperationArrTemp.filter(i => i.name.includes(val)) |
| | | }, |
| | | filterRouteChange2(val) { |
| | | this.batchRouteDataSelected = this.routeOperationArrTemp.filter(i => i.routename.includes(val)) |
| | | }, |
| | | |
| | | // 工艺点击 ,按工序走 |
| | | async routeClick2(row) { |
| | | this.dialogVisibleStep = true |
| | |
| | | if (this.mesSetting.route) { // 按工艺路线 |
| | | this.batchRouteData = res.data |
| | | this.batchRouteDataSelected = this.batchRouteData[0].children |
| | | this.routeOperationArrTemp = this.batchRouteData[0].children |
| | | this.batchRouteDataSelectedIndex = 0 |
| | | this.batchRouteData[this.batchRouteDataSelectedIndex].children.forEach((item, index) => { |
| | | item.isSelected1 = false |
| | |
| | | this.defaultroute_code = '' |
| | | this.defaultroute_codeArr = [] |
| | | this.batchRouteData = [] |
| | | this.filterRoute = '' |
| | | }, |
| | | partcodeSelected(val, index) { |
| | | this.batchRouteDataSelected = val.children |
| | | this.batchRouteDataSelected = val.children.filter(i => i.routename.includes(this.filterRoute)) |
| | | this.batchRouteDataSelectedIndex = index |
| | | this.batchRouteData[this.batchRouteDataSelectedIndex].children.forEach((item, index) => { |
| | | item.isSelected1 = false |
| | |
| | | loading.close() |
| | | this.dialogVisibleRoute = true |
| | | this.dialogFormRoute.routeOperationArr = res.data |
| | | this.routeOperationArrTemp = res.data |
| | | // let waitFlag = false// 回显等待是否放行 |
| | | |
| | | this.dialogFormRoute.routeOperationArr.forEach((item, index) => { |
| | |
| | | handleCloseRoute() { |
| | | this.dialogFormRoute.routeOperationArr = [] |
| | | this.defaultroute_codeArr = [] |
| | | this.filterRoute = '' |
| | | }, |
| | | // 取消 |
| | | routeDialogVisibleCancel() { |
| | |
| | | .myCheckboxGroup { |
| | | display: flex; |
| | | flex-wrap: wrap; |
| | | max-height: 200px; |
| | | overflow: auto; |
| | | |
| | | .myCheckbox { |
| | | //border: 1px solid $main_color; |