采购台账的对应产品选择质检时,该质检产品手动入库按钮需要置灰,不质检的产品则可以点击手动入库
| | |
| | | </el-button> |
| | | <el-button link |
| | | type="primary" |
| | | :disabled="scope.row.approvalStatus !== 3 || scope.row.stockInStatus === '完全入库'" |
| | | :disabled="scope.row.approvalStatus !== 3 || scope.row.stockInStatus === '完全入库' || scope.row.allNeedQualityCheck" |
| | | @click="handleStockIn(scope.row)">入库 |
| | | </el-button> |
| | | <el-button link |
| | |
| | | |
| | | try { |
| | | proxy.$modal.loading("正在加载产品信息..."); |
| | | const res = await productList({ salesLedgerId: row.id, type: 2 }); |
| | | const res = await productList({ salesLedgerId: row.id, type: 2, isChecked: true}); |
| | | if (res.code === 200) { |
| | | const productDetails = (res.data || []).map(item => { |
| | | const pendingInboundQuantity = Number(item.pendingInboundQuantity || 0); |