| | |
| | | label="序号" |
| | | type="index" |
| | | width="60" /> |
| | | <el-table-column label="入库日期" |
| | | prop="createTime" |
| | | width="120"> |
| | | <template #default="scope"> |
| | | {{ parseTime(scope.row.createTime, '{y}-{m}-{d}') || '-' }} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="产品名称" |
| | | prop="productName" |
| | | width="180" |
| | | show-overflow-tooltip /> |
| | | <el-table-column label="产品编号" |
| | | prop="productCode" |
| | | width="180" |
| | | show-overflow-tooltip /> |
| | | <el-table-column label="产品规格" |
| | |
| | | </div> |
| | | <div> |
| | | <el-button @click="handleOut">导出</el-button> |
| | | <el-button type="danger" |
| | | plain |
| | | @click="handleFrozen">冻结</el-button> |
| | | <el-button type="success" |
| | | plain |
| | | @click="handleThaw">解冻</el-button> |
| | | <!-- <el-button type="danger" plain @click="handleDelete">删除</el-button>--> |
| | | </div> |
| | | </div> |
| | |
| | | width="60" /> |
| | | <el-table-column label="入库日期" |
| | | prop="createTime" |
| | | width="100" |
| | | show-overflow-tooltip /> |
| | | width="120" |
| | | show-overflow-tooltip> |
| | | <template #default="scope"> |
| | | {{ parseTime(scope.row.createTime, '{y}-{m}-{d}') || '-' }} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="采购合同号" |
| | | prop="purchaseContractNumber" |
| | | width="180" |
| | |
| | | <el-table-column label="含税总价(元)" |
| | | prop="taxInclusiveTotalPrice" |
| | | width="150"></el-table-column> |
| | | <el-table-column label="状态" |
| | | align="center" |
| | | prop="isFrozen" |
| | | width="100"> |
| | | <template #default="scope"> |
| | | <el-tag :type="scope.row.isFrozen ? 'danger' : 'success'"> |
| | | {{ scope.row.isFrozen ? '已冻结' : '正常' }} |
| | | </el-tag> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <pagination v-show="total > 0" |
| | | :total="total" |
| | |
| | | getStockManagePage, |
| | | getStockManagePageByProduction, |
| | | delStockManage, getStockManageProduction, |
| | | frozenQuality, |
| | | thawQuality, |
| | | } from "@/api/inventoryManagement/stockManage.js"; |
| | | import { |
| | | updateManagement, |
| | |
| | | proxy.$modal.msg("已取消"); |
| | | }); |
| | | }; |
| | | |
| | | // 冻结 |
| | | const handleFrozen = () => { |
| | | let ids = []; |
| | | if (selectedRows.value.length > 0) { |
| | | ids = selectedRows.value.map(item => item.id); |
| | | } else { |
| | | proxy.$modal.msgWarning("请选择数据"); |
| | | return; |
| | | } |
| | | ElMessageBox.confirm("选中的内容将被标记为不合格产品并冻结,是否确认?", "警告", { |
| | | confirmButtonText: "确认", |
| | | cancelButtonText: "取消", |
| | | type: "warning", |
| | | }) |
| | | .then(() => { |
| | | frozenQuality(ids).then(res => { |
| | | proxy.$modal.msgSuccess("操作成功"); |
| | | getList(); |
| | | }); |
| | | }) |
| | | .catch(() => { |
| | | proxy.$modal.msg("已取消"); |
| | | }); |
| | | }; |
| | | |
| | | // 解冻 |
| | | const handleThaw = () => { |
| | | let ids = []; |
| | | if (selectedRows.value.length > 0) { |
| | | ids = selectedRows.value.map(item => item.id); |
| | | } else { |
| | | proxy.$modal.msgWarning("请选择数据"); |
| | | return; |
| | | } |
| | | ElMessageBox.confirm("选中的内容将被解冻,是否确认?", "提示", { |
| | | confirmButtonText: "确认", |
| | | cancelButtonText: "取消", |
| | | type: "success", |
| | | }) |
| | | .then(() => { |
| | | thawQuality(ids).then(res => { |
| | | proxy.$modal.msgSuccess("操作成功"); |
| | | getList(); |
| | | }); |
| | | }) |
| | | .catch(() => { |
| | | proxy.$modal.msg("已取消"); |
| | | }); |
| | | }; |
| | | // 删除 |
| | | const handleDelete = () => { |
| | | let ids = []; |