| | |
| | | :page.sync="form.page" |
| | | :limit.sync="form.rows" |
| | | align="right" |
| | | layout="total,prev, pager, next,sizes" |
| | | layout="total,prev, pager, next,sizes,jumper" |
| | | popper-class="select_bottom" |
| | | @pagination="getInventoryFileSelect" |
| | | /> |
| | |
| | | </div> |
| | | </div> |
| | | |
| | | <el-divider /> |
| | | <div> |
| | | <i class="el-icon-s-operation" :style="{color:$store.state.settings.theme}" /> 默认工艺路线 |
| | | </div> |
| | | <div style="margin-top: 20px"> |
| | | <el-select |
| | | v-model="defaultroute_code" |
| | | filterable |
| | | style="width: 200px;" |
| | | placeholder="请选择" |
| | | class="defaultroute_code" |
| | | > |
| | | <el-option |
| | | v-for="item in defaultroute_codeArr" |
| | | :key="item.code" |
| | | :label="item.name" |
| | | :value="item.code" |
| | | /> |
| | | </el-select> |
| | | </div> |
| | | <!-- <el-divider />--> |
| | | <!-- <div >--> |
| | | <!-- <i class="el-icon-s-operation" :style="{color:$store.state.settings.theme}" /> 默认工艺路线--> |
| | | <!-- </div>--> |
| | | <!-- <div style="margin-top: 20px">--> |
| | | <!-- <el-select--> |
| | | <!-- v-model="defaultroute_code"--> |
| | | <!-- filterable--> |
| | | <!-- style="width: 200px;"--> |
| | | <!-- placeholder="请选择"--> |
| | | <!-- class="defaultroute_code"--> |
| | | <!-- >--> |
| | | <!-- <el-option--> |
| | | <!-- v-for="item in defaultroute_codeArr"--> |
| | | <!-- :key="item.code"--> |
| | | <!-- :label="item.name"--> |
| | | <!-- :value="item.code"--> |
| | | <!-- />--> |
| | | <!-- </el-select>--> |
| | | <!-- </div>--> |
| | | <el-divider /> |
| | | <div style="margin-bottom: 10px"> |
| | | <i class="el-icon-s-operation" :style="{color:$store.state.settings.theme}" /> 工序列表 |
| | |
| | | // routeOperationSelectedArr: [] // 工艺路线选中集合数组 |
| | | }, |
| | | defaultroute_code: '', // 默认工艺路线选中值 |
| | | defaultroute_codeArr: '', // 默认工艺路线数组 |
| | | defaultroute_codeArr: [], // 默认工艺路线数组 |
| | | projectTableData: [], // 设备列表 |
| | | isBatchNo: false, // 是否批次管理 |
| | | isFifo: false, // 是否先进先出 |
| | |
| | | background: 'rgba(0, 0, 0, 0.7)' |
| | | }) |
| | | |
| | | this.defaultroute_code = row.default_route |
| | | // this.defaultroute_code = row.default_route |
| | | // this.defaultroute_code = '' |
| | | this.dialogFormRoute.projectCode = row.partcode |
| | | this.dialogFormRoute.projectName = row.partname |
| | | |
| | |
| | | } |
| | | }) |
| | | |
| | | this.defaultroute_codeArr = this.dialogFormRoute.routeOperationArr.filter(item => item.flag === 'Y') |
| | | // this.defaultroute_codeArr = this.dialogFormRoute.routeOperationArr.filter(item => item.flag === 'Y') |
| | | }, 1000) |
| | | } else { |
| | | loading.close() |
| | |
| | | // 对话框关闭 |
| | | handleCloseRoute() { |
| | | this.dialogFormRoute.routeOperationArr = [] |
| | | this.defaultroute_codeArr = [] |
| | | // this.defaultroute_codeArr = [] |
| | | }, |
| | | // 取消 |
| | | routeDialogVisibleCancel() { |
| | |
| | | }, |
| | | // 确定 |
| | | async routeDialogVisibleConfirm() { |
| | | console.log(this.defaultroute_code) |
| | | if (this.defaultroute_code === null || this.defaultroute_code === 'null') { |
| | | return this.$message.info('默认工艺路线不能为空!') |
| | | } |
| | | // console.log(this.defaultroute_code) |
| | | // if (this.defaultroute_code === null || this.defaultroute_code === 'null') { |
| | | // return this.$message.info('默认工艺路线不能为空!') |
| | | // } |
| | | |
| | | // 提交格式 |
| | | const data = [] |
| | | this.dialogFormRoute.routeOperationArr.forEach(item => { |
| | | if (item.isSelected2) { |
| | | data.push({ code: item.code, name: item.name }) |
| | | data.push({ |
| | | code: item.code, |
| | | name: item.name, |
| | | wkshopcode: item.wkshopcode, |
| | | wkshopname: item.wkshopname |
| | | }) |
| | | } |
| | | }) |
| | | this.$store.state.app.buttonIsDisabled = true |
| | | const res = await SaveInventoryFile(this.dialogFormRoute.projectCode, this.defaultroute_code, data) |
| | | // const res = await SaveInventoryFile(this.dialogFormRoute.projectCode, this.defaultroute_code, data) |
| | | const res = await SaveInventoryFile(this.dialogFormRoute.projectCode, '', data) |
| | | if (res.code === '200') { |
| | | this.dialogVisibleRoute = false |
| | | this.$message.success('保存成功!') |
| | |
| | | item.flag = !item.flag |
| | | } |
| | | }) |
| | | if (val.code === this.defaultroute_code) { |
| | | this.defaultroute_code = '' |
| | | } |
| | | this.defaultroute_codeArr = this.dialogFormRoute.routeOperationArr.filter(item => item.isSelected2) |
| | | // if (val.code === this.defaultroute_code) { |
| | | // this.defaultroute_code = '' |
| | | // } |
| | | // this.defaultroute_codeArr = this.dialogFormRoute.routeOperationArr.filter(item => item.isSelected2) |
| | | this.$forceUpdate() |
| | | }, |
| | | /* 单位模块*/ |
| | | // 单位按钮点击事件 |
| | |
| | | } |
| | | } |
| | | |
| | | .defaultroute_code ::v-deep .el-input__suffix-inner { |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | margin-top: -3px; |
| | | } |
| | | //.defaultroute_code ::v-deep .el-input__suffix-inner { |
| | | // display: flex; |
| | | // align-items: center; |
| | | // justify-content: center; |
| | | // margin-top: -3px; |
| | | //} |
| | | </style> |
| | | |
| | | <!--公共页面样式--> |