| | |
| | | v-adaptive="{ bottomOffset: 20, fixedHeight: 0 }" height="100px" border |
| | | @selection-change="palletTransportsDetailSelectionChange" stripe ref="palletTransportsDetailTable"> |
| | | <el-table-column type="selection" width="55"> </el-table-column> |
| | | <el-table-column prop="partNo" label="零件号" align="center" show-overflow-tooltip> |
| | | <el-table-column prop="part_no" label="零件号" align="center" show-overflow-tooltip> |
| | | </el-table-column> |
| | | <el-table-column prop="partDesc" label="零件描述" align="center" show-overflow-tooltip> |
| | | <el-table-column prop="part_desc" label="零件描述" align="center" show-overflow-tooltip> |
| | | </el-table-column> |
| | | <!-- <el-table-column prop="batchNo" label="批次号" align="center" show-overflow-tooltip> |
| | | </el-table-column> |
| | | <el-table-column prop="wdr" label="WDR" align="center"> |
| | | </el-table-column> --> |
| | | <el-table-column prop="operationTaskNo" label="工单" align="center" show-overflow-tooltip> |
| | | <el-table-column prop="operation_task_no" label="工单" align="center" show-overflow-tooltip> |
| | | </el-table-column> |
| | | <el-table-column prop="transferQuantity" label="移库数量" align="center"> |
| | | <el-table-column prop="transfer_quantity" label="移库数量" align="center"> |
| | | </el-table-column> |
| | | <el-table-column prop="unit" label="单位" align="center"> |
| | | </el-table-column> |
| | | <!-- <el-table-column prop="fromIfsLocationNo" label="IFS从库位" align="center"> |
| | | </el-table-column> --> |
| | | <el-table-column prop="toIfsLocationNo" label="移至库位" align="center"> |
| | | <template slot-scope="scope"> |
| | | <el-table-column prop="to_ifs_location_no" label="移至库位" align="center"> |
| | | <!-- <template slot-scope="scope"> |
| | | <el-link type="primary" @click="openSingleLocationDialog(scope.row)">{{ scope.row.toIfsLocationNo |
| | | }}</el-link> |
| | | </template> |
| | | </template> --> |
| | | </el-table-column> |
| | | <el-table-column prop="state" label="状态" align="center"> |
| | | <template slot-scope="scope"> |
| | |
| | | </el-table-column> |
| | | <el-table-column label="操作" align="center" width="85"> |
| | | <template slot-scope="scope"> |
| | | <el-button type="text" @click="openEditStockDialog(scope.row)" |
| | | :disabled="scope.row.state === '01initial' ? false : true">编辑</el-button> |
| | | <!-- <el-button type="text" @click="openEditStockDialog(scope.row)" |
| | | :disabled="scope.row.state === '01initial' ? false : true">编辑</el-button> --> |
| | | <el-button type="text" @click="delDetail(scope.row)" |
| | | :disabled="scope.row.state === '01initial' ? false : true">删除</el-button> |
| | | </template> |
| | |
| | | delPalletTransportsMaterialObj, |
| | | palletTransportsDetailFetchList, |
| | | delPalletTransportsDetailObj, |
| | | executeMoveLocation |
| | | executeMoveLocation, |
| | | selectAll, |
| | | } from '@/api/warehouse/pallettransports' |
| | | import { getByPalletTransId } from '@/api/plan/operationtask' |
| | | import ttable from '@/views/common/ztt-table.vue' |
| | |
| | | operationTaskId:this.WorkOrder.id, |
| | | unit: el.unit, |
| | | }}) |
| | | this.palletTransportsDetailData = transportsDetails |
| | | // this.palletTransportsDetailData = transportsDetails |
| | | if (transportsDetails.length > 0) { |
| | | saveBatchPalletTransportsDetail(transportsDetails) |
| | | .then((response) => { |
| | |
| | | }, |
| | | // 打开单个明细批量更新库位弹框 |
| | | openSingleLocationDialog(row) { |
| | | console.log(row); |
| | | if (row.state === '01initial') { |
| | | this.detailList = [] |
| | | this.detailList.push(row) |
| | | this.showDetailLocation = true |
| | | // this.showDetailLocation = true |
| | | } else { |
| | | this.$message.error('移库明细已执行') |
| | | } |
| | |
| | | } |
| | | }, |
| | | palletTransportsMaterialSelectionChange(val) { |
| | | console.log(val,"12312313"); |
| | | |
| | | this.palletTransportsMaterialMultipleSelection = val |
| | | let nn =[] |
| | | this.palletTransportsMaterialMultipleSelection.forEach(el =>{nn.push(el.id)}) |
| | | let xx = nn[nn.length - 1]; |
| | | console.log(xx); |
| | | console.log(this.currPalletTransportsRow.id,"默认"); |
| | | this.palletTransportsDetailData = [] |
| | | if (xx) { |
| | | selectAll({transportsId:this.currPalletTransportsRow.id,transportsMaterialId:xx}).then((res) =>{ |
| | | console.log(res.data.data); |
| | | this.palletTransportsDetailData.push(res.data.data)}) |
| | | } |
| | | // if (this.palletTransportsMaterialMultipleSelection.length > 0) { |
| | | // const currPalletTransportsMaterial = this |
| | | // .palletTransportsMaterialMultipleSelection[ |