| | |
| | | <el-table-column label="入库时间" prop="updateTime" align="center" /> |
| | | <el-table-column label="当前状态" prop="state" align="center"> |
| | | <template #default="scope"> |
| | | <span>{{scope.row.state ===0 || scope.row.state === 1 ? '在库' :scope.row.state === 2? '领用中': scope.row.state === 3 ? '已用完' : scope.row.state === 4 ? '标签作废' : ''}}</span> |
| | | <span>{{scope.row.state ===0 ? '初次入柜' :scope.row.state === 1? '回库': scope.row.state === 2 ? '出库' : scope.row.state === 4 ? '标签作废' : ''}}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="在库余量" prop="remaining" align="center" > |
| | |
| | | } from "@/api/hazardousChemicals/rawRecord"; |
| | | import viewQRcode from '@/views/hazardousChemicals/electronicWarehouseMenu/electronicWarehouse/components/viewQR.vue' |
| | | import Cookies from "js-cookie"; |
| | | import {getOrderDetailById} from "@/api/hazardousChemicals/orderWarehouse"; |
| | | const route = useRoute() |
| | | const router = useRouter(); |
| | | const dialogRef = ref(); |
| | |
| | | }, |
| | | { |
| | | id: 1, |
| | | name: '入库' |
| | | name: '回库' |
| | | }, |
| | | { |
| | | id: 2, |
| | | name: '出库' |
| | | }, |
| | | { |
| | | id: 3, |
| | | name: '作废' |
| | | }, |
| | | // { |
| | | // id: 3, |
| | | // name: '作废' |
| | | // }, |
| | | { |
| | | id: 4, |
| | | name: '待入库' |
| | | name: '标签作废' |
| | | }, |
| | | |
| | | ], |
| | |
| | | }) |
| | | const getList = async () => { |
| | | loading.value = true |
| | | const res = await getWhRawDetail(data.queryParams) |
| | | const res = await getOrderDetailById(data.queryParams) |
| | | if(res.code == 200){ |
| | | data.dataList = res.data.list |
| | | data.total = res.data.total |
| | |
| | | } |
| | | const reset = () => { |
| | | data.queryParams = { |
| | | entryId: null, |
| | | entryId: data.queryParams.entryId, |
| | | state: null, |
| | | pageNum: 1, |
| | | pageSize: 10, |