zhouwx
4 days ago 398794afbbe0696e763aa002313dcf4c3b82420c
src/views/hazardousChemicals/warehouseManageMenu/orderWarehouse/components/detail.vue
@@ -54,7 +54,7 @@
      <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" >
@@ -128,6 +128,7 @@
} 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();
@@ -151,19 +152,19 @@
    },
    {
      id: 1,
      name: '入库'
      name: '回库'
    },
    {
      id: 2,
      name: '出库'
    },
    {
      id: 3,
      name: '作废'
    },
    // {
    //   id: 3,
    //   name: '作废'
    // },
    {
      id: 4,
      name: '待入库'
      name: '标签作废'
    },
  ],
@@ -188,7 +189,7 @@
})
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
@@ -199,7 +200,7 @@
}
const reset = () => {
  data.queryParams = {
    entryId: null,
    entryId: data.queryParams.entryId,
    state: null,
    pageNum: 1,
    pageSize: 10,