|
|
|
@ -1,6 +1,7 @@
|
|
|
|
|
<template>
|
|
|
|
|
<div class="p-2">
|
|
|
|
|
<transition :enter-active-class="proxy?.animate.searchAnimate.enter" :leave-active-class="proxy?.animate.searchAnimate.leave">
|
|
|
|
|
<transition :enter-active-class="proxy?.animate.searchAnimate.enter"
|
|
|
|
|
:leave-active-class="proxy?.animate.searchAnimate.leave">
|
|
|
|
|
<div v-show="showSearch" class="mb-[10px]">
|
|
|
|
|
<el-card shadow="hover">
|
|
|
|
|
<el-form ref="queryFormRef" :model="queryParams" :inline="true">
|
|
|
|
@ -17,22 +18,27 @@
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="盘点单号" prop="checkCode">
|
|
|
|
|
<el-input v-model="queryParams.checkCode" placeholder="请输入盘点单号" clearable @keyup.enter="handleQuery" />
|
|
|
|
|
<el-input v-model="queryParams.checkCode" placeholder="请输入盘点单号" clearable
|
|
|
|
|
@keyup.enter="handleQuery"/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="批次码" prop="batchCode">
|
|
|
|
|
<el-input v-model="queryParams.batchCode" placeholder="请输入批次码" clearable @keyup.enter="handleQuery" />
|
|
|
|
|
<el-input v-model="queryParams.batchCode" placeholder="请输入批次码" clearable
|
|
|
|
|
@keyup.enter="handleQuery"/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<!-- <el-form-item label="物料id" prop="materialId">
|
|
|
|
|
<el-input v-model="queryParams.materialId" placeholder="请输入物料id" clearable @keyup.enter="handleQuery" />
|
|
|
|
|
</el-form-item> -->
|
|
|
|
|
<el-form-item label="库位编码" prop="locationCode">
|
|
|
|
|
<el-input v-model="queryParams.locationCode" placeholder="请输入库位编码" clearable @keyup.enter="handleQuery" />
|
|
|
|
|
<el-input v-model="queryParams.locationCode" placeholder="请输入库位编码" clearable
|
|
|
|
|
@keyup.enter="handleQuery"/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="物料编码" prop="materialCode">
|
|
|
|
|
<el-input v-model="queryParams.materialCode" placeholder="请输入物料编码" clearable @keyup.enter="handleQuery" />
|
|
|
|
|
<el-input v-model="queryParams.materialCode" placeholder="请输入物料编码" clearable
|
|
|
|
|
@keyup.enter="handleQuery"/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="物料名称" prop="materialName">
|
|
|
|
|
<el-input v-model="queryParams.materialName" placeholder="请输入物料名称" clearable @keyup.enter="handleQuery" />
|
|
|
|
|
<el-input v-model="queryParams.materialName" placeholder="请输入物料名称" clearable
|
|
|
|
|
@keyup.enter="handleQuery"/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<!-- <el-form-item label="库存数量" prop="inventoryQty">
|
|
|
|
|
<el-input v-model="queryParams.inventoryQty" placeholder="请输入库存数量" clearable @keyup.enter="handleQuery" />
|
|
|
|
@ -107,17 +113,20 @@
|
|
|
|
|
<el-button type="danger" plain icon="Delete" :disabled="multiple" @click="handleDelete()" v-hasPermi="['system:inventoryCheckRecord:remove']">删除</el-button>
|
|
|
|
|
</el-col> -->
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
<el-button type="warning" plain icon="Download" @click="handleExport" v-hasPermi="['system:inventoryCheckRecord:export']">导出</el-button>
|
|
|
|
|
<el-button type="warning" plain icon="Download" @click="handleExport"
|
|
|
|
|
v-hasPermi="['system:inventoryCheckRecord:export']">导出
|
|
|
|
|
</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
<right-toolbar v-model:showSearch="showSearch" :columns="columns" :search="true" @queryTable="getList"></right-toolbar>
|
|
|
|
|
<right-toolbar v-model:showSearch="showSearch" :columns="columns" :search="true"
|
|
|
|
|
@queryTable="getList"></right-toolbar>
|
|
|
|
|
</el-row>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<el-table v-loading="loading" :data="inventoryCheckRecordList" @selection-change="handleSelectionChange">
|
|
|
|
|
<el-table-column type="selection" width="55" align="center"/>
|
|
|
|
|
<el-table-column label="盘点记录主键" align="center" prop="icRecordId" v-if="columns[0].visible"/>
|
|
|
|
|
<el-table-column label="物料大类" align="center" prop="materialCategoryName" v-if="columns[1].visible">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<!-- <el-table-column label="盘点记录主键" align="center" prop="icRecordId" v-if="columns[0].visible"/>-->
|
|
|
|
|
<!-- <el-table-column label="物料大类" align="center" prop="materialCategoryName" v-if="columns[1].visible">-->
|
|
|
|
|
<!-- </el-table-column>-->
|
|
|
|
|
<el-table-column label="盘点单号" align="center" prop="checkCode" v-if="columns[2].visible"/>
|
|
|
|
|
<el-table-column label="批次码" align="center" prop="batchCode" v-if="columns[3].visible"/>
|
|
|
|
|
<el-table-column label="库位编码" align="center" prop="locationCode" v-if="columns[5].visible"/>
|
|
|
|
@ -127,55 +136,58 @@
|
|
|
|
|
<el-table-column label="盘点数量" align="center" prop="checkQty" v-if="columns[9].visible"/>
|
|
|
|
|
<el-table-column label="盘点状态" align="center" prop="checkStatus" v-if="columns[12].visible">
|
|
|
|
|
<template #default="scope">
|
|
|
|
|
<dict-tag :options="wms_stockadjust_status" :value="scope.row.checkStatus"/>
|
|
|
|
|
<dict-tag :options="wms_stock_result" :value="scope.row.checkStatus"/>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="erp同步状态" align="center" prop="erpSynchronousStatus" v-if="columns[13].visible">
|
|
|
|
|
<template #default="scope">
|
|
|
|
|
<dict-tag :options="erp_synchronous_status" :value="scope.row.erpSynchronousStatus"/>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="erp同步数量" align="center" prop="erpSynchronousQty" v-if="columns[14].visible"/>
|
|
|
|
|
<!-- <el-table-column label="erp同步状态" align="center" prop="erpSynchronousStatus" v-if="columns[13].visible">-->
|
|
|
|
|
<!-- <template #default="scope">-->
|
|
|
|
|
<!-- <dict-tag :options="erp_synchronous_status" :value="scope.row.erpSynchronousStatus"/>-->
|
|
|
|
|
<!-- </template>-->
|
|
|
|
|
<!-- </el-table-column>-->
|
|
|
|
|
<!-- <el-table-column label="erp同步数量" align="center" prop="erpSynchronousQty" v-if="columns[14].visible"/>-->
|
|
|
|
|
<el-table-column label="是否发起调整" align="center" prop="isAdjust" v-if="columns[15].visible">
|
|
|
|
|
<template #default="scope">
|
|
|
|
|
<dict-tag :options="wms_stock_if" :value="scope.row.isAdjust"/>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="审核人" align="center" prop="auditBy" v-if="columns[16].visible"/>
|
|
|
|
|
<el-table-column label="审核时间" align="center" prop="auditTime" width="180" v-if="columns[17].visible">
|
|
|
|
|
<template #default="scope">
|
|
|
|
|
<span>{{ parseTime(scope.row.auditTime, '{y}-{m}-{d} {h}:{i}:{s}') }}</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="审核状态" align="center" prop="auditStatus" v-if="columns[18].visible">
|
|
|
|
|
<template #default="scope">
|
|
|
|
|
<dict-tag :options="approve_status" :value="scope.row.auditStatus"/>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="审核意见" align="center" prop="auditComments" v-if="columns[19].visible"/>
|
|
|
|
|
<!-- <el-table-column label="审核人" align="center" prop="auditBy" v-if="columns[16].visible"/>-->
|
|
|
|
|
<!-- <el-table-column label="审核时间" align="center" prop="auditTime" width="180" v-if="columns[17].visible">-->
|
|
|
|
|
<!-- <template #default="scope">-->
|
|
|
|
|
<!-- <span>{{ parseTime(scope.row.auditTime, '{y}-{m}-{d} {h}:{i}:{s}') }}</span>-->
|
|
|
|
|
<!-- </template>-->
|
|
|
|
|
<!-- </el-table-column>-->
|
|
|
|
|
<!-- <el-table-column label="审核状态" align="center" prop="auditStatus" v-if="columns[18].visible">-->
|
|
|
|
|
<!-- <template #default="scope">-->
|
|
|
|
|
<!-- <dict-tag :options="approve_status" :value="scope.row.auditStatus"/>-->
|
|
|
|
|
<!-- </template>-->
|
|
|
|
|
<!-- </el-table-column>-->
|
|
|
|
|
<!-- <el-table-column label="审核意见" align="center" prop="auditComments" v-if="columns[19].visible"/>-->
|
|
|
|
|
<el-table-column label="调整状态" align="center" prop="adjustStatus" v-if="columns[20].visible">
|
|
|
|
|
<template #default="scope">
|
|
|
|
|
<dict-tag :options="wms_stockadjust_status" :value="scope.row.adjustStatus"/>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="调整类型" align="center" prop="adjustType" v-if="columns[21].visible">
|
|
|
|
|
<template #default="scope">
|
|
|
|
|
<dict-tag :options="wms_stockadjust_type" :value="scope.row.adjustType"/>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<!-- <el-table-column label="调整类型" align="center" prop="adjustType" v-if="columns[21].visible">-->
|
|
|
|
|
<!-- <template #default="scope">-->
|
|
|
|
|
<!-- <dict-tag :options="wms_stockadjust_type" :value="scope.row.adjustType"/>-->
|
|
|
|
|
<!-- </template>-->
|
|
|
|
|
<!-- </el-table-column>-->
|
|
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
|
|
<template #default="scope">
|
|
|
|
|
<el-tooltip content="修改" placement="top">
|
|
|
|
|
<el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)" v-hasPermi="['system:inventoryCheckRecord:edit']"></el-button>
|
|
|
|
|
<el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)"
|
|
|
|
|
v-hasPermi="['system:inventoryCheckRecord:edit']"></el-button>
|
|
|
|
|
</el-tooltip>
|
|
|
|
|
<el-tooltip content="删除" placement="top">
|
|
|
|
|
<el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)" v-hasPermi="['system:inventoryCheckRecord:remove']"></el-button>
|
|
|
|
|
<el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)"
|
|
|
|
|
v-hasPermi="['system:inventoryCheckRecord:remove']"></el-button>
|
|
|
|
|
</el-tooltip>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
|
|
|
|
|
<pagination v-show="total > 0" :total="total" v-model:page="queryParams.pageNum" v-model:limit="queryParams.pageSize" @pagination="getList" />
|
|
|
|
|
<pagination v-show="total > 0" :total="total" v-model:page="queryParams.pageNum"
|
|
|
|
|
v-model:limit="queryParams.pageSize" @pagination="getList"/>
|
|
|
|
|
</el-card>
|
|
|
|
|
<!-- 添加或修改盘点记录和调整工单对话框 -->
|
|
|
|
|
<el-dialog :title="dialog.title" v-model="dialog.visible" width="500px" append-to-body>
|
|
|
|
@ -243,7 +255,8 @@
|
|
|
|
|
v-for="dict in wms_stock_if"
|
|
|
|
|
:key="dict.value"
|
|
|
|
|
:value="dict.value"
|
|
|
|
|
>{{dict.label}}</el-radio>
|
|
|
|
|
>{{ dict.label }}
|
|
|
|
|
</el-radio>
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="审核人" prop="auditBy">
|
|
|
|
@ -284,7 +297,8 @@
|
|
|
|
|
v-for="dict in wms_stockadjust_type"
|
|
|
|
|
:key="dict.value"
|
|
|
|
|
:value="dict.value"
|
|
|
|
|
>{{dict.label}}</el-radio>
|
|
|
|
|
>{{ dict.label }}
|
|
|
|
|
</el-radio>
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-form>
|
|
|
|
@ -299,14 +313,32 @@
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script setup name="InventoryCheckRecord" lang="ts">
|
|
|
|
|
import { listInventoryCheckRecord, getInventoryCheckRecord, delInventoryCheckRecord, addInventoryCheckRecord, updateInventoryCheckRecord } from '@/api/wms/inventoryCheckRecord';
|
|
|
|
|
import { InventoryCheckRecordVO, InventoryCheckRecordQuery, InventoryCheckRecordForm } from '@/api/wms/inventoryCheckRecord/types';
|
|
|
|
|
import {
|
|
|
|
|
listInventoryCheckRecord,
|
|
|
|
|
getInventoryCheckRecord,
|
|
|
|
|
delInventoryCheckRecord,
|
|
|
|
|
addInventoryCheckRecord,
|
|
|
|
|
updateInventoryCheckRecord
|
|
|
|
|
} from '@/api/wms/inventoryCheckRecord';
|
|
|
|
|
import {
|
|
|
|
|
InventoryCheckRecordVO,
|
|
|
|
|
InventoryCheckRecordQuery,
|
|
|
|
|
InventoryCheckRecordForm
|
|
|
|
|
} from '@/api/wms/inventoryCheckRecord/types';
|
|
|
|
|
|
|
|
|
|
import {getBaseMaterialCategoryListInWMS} from '@/api/wms/baseMaterialCategory';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const {proxy} = getCurrentInstance() as ComponentInternalInstance;
|
|
|
|
|
const { wms_stocking_type, wms_stockadjust_type, approve_status, erp_synchronous_status, wms_stockadjust_status, wms_stock_if } = toRefs<any>(proxy?.useDict( 'wms_stocking_type','wms_stockadjust_type','approve_status','erp_synchronous_status','wms_stockadjust_status','wms_stock_if'));
|
|
|
|
|
const {
|
|
|
|
|
wms_stocking_type,
|
|
|
|
|
wms_stockadjust_type,
|
|
|
|
|
approve_status,
|
|
|
|
|
erp_synchronous_status,
|
|
|
|
|
wms_stock_result,
|
|
|
|
|
wms_stockadjust_status,
|
|
|
|
|
wms_stock_if
|
|
|
|
|
} = toRefs<any>(proxy?.useDict('wms_stocking_type', 'wms_stockadjust_type', 'approve_status', 'erp_synchronous_status', 'wms_stockadjust_status', 'wms_stock_if', 'wms_stock_result'));
|
|
|
|
|
const inventoryCheckRecordList = ref<InventoryCheckRecordVO[]>([]);
|
|
|
|
|
const buttonLoading = ref(false);
|
|
|
|
|
const loading = ref(true);
|
|
|
|
@ -399,8 +431,7 @@ const data = reactive<PageData<InventoryCheckRecordForm, InventoryCheckRecordQue
|
|
|
|
|
auditComments: undefined,
|
|
|
|
|
adjustStatus: undefined,
|
|
|
|
|
adjustType: undefined,
|
|
|
|
|
params: {
|
|
|
|
|
}
|
|
|
|
|
params: {}
|
|
|
|
|
},
|
|
|
|
|
rules: {
|
|
|
|
|
icRecordId: [
|
|
|
|
|