| | |
| | | <div v-if="!showDetailFlag"> |
| | | <el-card class="box-card"> |
| | | <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px"> |
| | | <el-form-item label-width="100" label="生产通知单" prop="productName"> |
| | | <el-form-item label-width="100" label="生产通知单" prop="productionNotice"> |
| | | <el-input v-model="queryParams.productionNotice" placeholder="请输入生产通知单" clearable @keyup.enter.native="handleQuery"/> |
| | | </el-form-item> |
| | | <el-form-item label-width="100" label="工厂编号" prop="workshopCode"> |
| | |
| | | plain |
| | | icon="el-icon-edit" |
| | | size="mini" |
| | | :disabled="single" |
| | | :disabled="multiple" |
| | | @click="handleUpdate" |
| | | v-hasPermi="['om:productionOrde:edit']" |
| | | >修改</el-button> |
| | |
| | | }, |
| | | /** 多选框选中数据 */ |
| | | handleSelectionChange(selection) { |
| | | console.log('this.single1111',this.single) |
| | | console.log('selecion',selection) |
| | | this.ids = selection.map(item => item.id) |
| | | this.move = selection.length!==1 |
| | | if(!selection.length){ |
| | | if (selection.length >1){ |
| | | this.single = false |
| | | this.multiple = true |
| | | } else if (selection.length === 1){ |
| | | this.single = true |
| | | this.multiple = false |
| | | } else { |
| | | this.single = true |
| | | this.multiple = true |
| | | }else { |
| | | if(selection[0].orderStatus === '1' && selection.length === 1){ |
| | | this.single = false |
| | | this.multiple = false |
| | | } |
| | | if(selection[0].orderStatus === '2' && selection.length === 1){ |
| | | this.singleSelect = selection[0] |
| | | } |
| | | } |
| | | // let statusList = selection.filter(x => x.orderStatus === "1") |
| | | // console.log('statusList',statusList) |
| | | // if (selection.length === statusList.length){ |
| | | // //待生成 |
| | | // this.single = false |
| | | // } |
| | | |
| | | // this.ids = selection.map(item => item.id) |
| | | // this.move = selection.length!==1 |
| | | // if(!selection.length){ |
| | | // console.log('1') |
| | | // this.single = true |
| | | // this.multiple = true |
| | | // } else { |
| | | // if(selection[0].orderStatus === '1' && selection.length === 1){ |
| | | // console.log('2') |
| | | // this.single = false |
| | | // this.multiple = false |
| | | // } |
| | | // if(selection[0].orderStatus === '2' && selection.length === 1){ |
| | | // console.log('3',this.single) |
| | | // this.singleSelect = selection[0] |
| | | // } |
| | | // } |
| | | }, |
| | | |
| | | /** 新增按钮操作 */ |