| src/views/consumablesLogistics/stockManagement/Qualified.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| src/views/inventoryManagement/stockManagement/Qualified.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/views/consumablesLogistics/stockManagement/Qualified.vue
@@ -15,8 +15,8 @@ <el-button type="primary" @click="handleQuery" style="margin-left: 10px">搜索</el-button> </div> <div> <el-button type="primary" @click="isShowNewModal = true">新增库存</el-button> <el-button type="info" plain icon="Upload" @click="isShowImportModal = true"> <el-button type="primary" @click="isShowNewModal = true" v-if="hasCDispatchCancel">新增库存</el-button> <el-button type="info" plain icon="Upload" @click="isShowImportModal = true" v-if="hasCDispatchCancel"> 导入库存 </el-button> <el-button @click="handleOut">导出</el-button> @@ -36,7 +36,7 @@ <!-- <el-table-column label="采购员" prop="purchaser" show-overflow-tooltip /> --> <el-table-column label="备注" prop="remark" show-overflow-tooltip /> <el-table-column label="最近更新时间" prop="updateTime" show-overflow-tooltip /> <el-table-column fixed="right" label="操作" min-width="60" align="center"> <el-table-column fixed="right" label="操作" min-width="60" align="center" v-if="hasCDispatchCancel"> <template #default="scope"> <el-button link type="primary" size="small" @click="showSubtractModal(scope.row)" :disabled="scope.row.unLockedQuantity === 0">出库</el-button> <!-- <el-button link type="primary" size="small" v-if="scope.row.unLockedQuantity > 0" @click="showFrozenModal(scope.row)">冻结</el-button> --> @@ -74,9 +74,10 @@ <script setup> import pagination from '@/components/PIMTable/Pagination.vue' import { ref, reactive, toRefs, onMounted, getCurrentInstance } from 'vue' import { ref, reactive, toRefs, computed, onMounted, getCurrentInstance } from 'vue' import {ElMessage, ElMessageBox} from "element-plus"; import { getConsumablesInListPage } from "@/api/consumablesLogistics/consumablesIn.js"; import { checkPermi } from "@/utils/permission.js"; const NewStockInventory = defineAsyncComponent(() => import("@/views/consumablesLogistics/stockManagement/New.vue")); const SubtractStockInventory = defineAsyncComponent(() => import("@/views/consumablesLogistics/stockManagement/Subtract.vue")); const ImportStockInventory = defineAsyncComponent(() => import("@/views/consumablesLogistics/stockManagement/Import.vue")); @@ -91,6 +92,7 @@ size: 100, }) const total = ref(0) const hasCDispatchCancel = computed(() => checkPermi(['c_dispatch_cancel'])); // 是否显示新增弹框 const isShowNewModal = ref(false) // 是否显示领用弹框 src/views/inventoryManagement/stockManagement/Qualified.vue
@@ -15,8 +15,8 @@ <el-button type="primary" @click="handleQuery" style="margin-left: 10px">搜索</el-button> </div> <div> <el-button type="primary" @click="isShowNewModal = true">新增库存</el-button> <el-button type="info" plain icon="Upload" @click="isShowImportModal = true"> <el-button type="primary" @click="isShowNewModal = true" v-if="hasDispatchCancel">新增库存</el-button> <el-button type="info" plain icon="Upload" @click="isShowImportModal = true" v-if="hasDispatchCancel"> 导入库存 </el-button> <el-button @click="handleOut">导出</el-button> @@ -38,7 +38,7 @@ <!-- <el-table-column label="净重(吨)" prop="netWeight" show-overflow-tooltip /> --> <el-table-column label="备注" prop="remark" show-overflow-tooltip /> <el-table-column label="最近更新时间" prop="updateTime" show-overflow-tooltip /> <el-table-column fixed="right" label="操作" min-width="60" align="center"> <el-table-column fixed="right" label="操作" min-width="60" align="center" v-if="hasDispatchCancel"> <template #default="scope"> <el-button link type="primary" size="small" @click="showSubtractModal(scope.row)" :disabled="scope.row.unLockedQuantity === 0">出库</el-button> <!-- <el-button link type="primary" size="small" v-if="scope.row.unLockedQuantity > 0" @click="showFrozenModal(scope.row)">冻结</el-button> --> @@ -76,9 +76,10 @@ <script setup> import pagination from '@/components/PIMTable/Pagination.vue' import { ref, reactive, toRefs, onMounted, getCurrentInstance } from 'vue' import { ref, reactive, toRefs, computed, onMounted, getCurrentInstance } from 'vue' import {ElMessage, ElMessageBox} from "element-plus"; import { getStockInventoryListPage } from "@/api/inventoryManagement/stockInventory.js"; import { checkPermi } from "@/utils/permission.js"; const NewStockInventory = defineAsyncComponent(() => import("@/views/inventoryManagement/stockManagement/New.vue")); const SubtractStockInventory = defineAsyncComponent(() => import("@/views/inventoryManagement/stockManagement/Subtract.vue")); const ImportStockInventory = defineAsyncComponent(() => import("@/views/inventoryManagement/stockManagement/Import.vue")); @@ -93,6 +94,7 @@ size: 100, }) const total = ref(0) const hasDispatchCancel = computed(() => checkPermi(['dispatch_cancel'])); // 是否显示新增弹框 const isShowNewModal = ref(false) // 是否显示领用弹框