feat(wms): 添加特殊标识字段,特殊标识字段用于区分调拨和退库操作

- 在入库记录和出库记录中添加特殊标识字段,用于区分调拨和退库
- 优化仓库列表获取函数,传递 null 参数以获取完整列表
- 在 WMS 盘点任务中添加物料类型名称和仓库名称字段
master^2
zangch@mesnac.com 2 days ago
parent 9cfacd896b
commit c3bf1f3362

@ -72,6 +72,11 @@ export interface InstockRecordVO {
*/
updateTime: string;
/**
* 01退
*/
specialType: string | number;
}
export interface InstockRecordForm extends BaseEntity {
@ -142,6 +147,11 @@ export interface InstockRecordForm extends BaseEntity {
*/
erpSynchronousQty?: number;
/**
* 01退
*/
specialType?: string | number;
}
export interface InstockRecordQuery extends PageQuery {
@ -198,6 +208,11 @@ export interface InstockRecordQuery extends PageQuery {
*/
erpSynchronousQty?: number;
/**
* 01退
*/
specialType?: string | number;
/**
*
*/

@ -62,6 +62,12 @@ export interface OutstockRecordVO {
*/
erpSynchronousQty: number;
/**
* 01退
*/
specialType: string | number;
}
export interface OutstockRecordForm extends BaseEntity {
@ -122,6 +128,12 @@ export interface OutstockRecordForm extends BaseEntity {
*/
erpSynchronousQty?: number;
/**
* 01退
*/
specialType?: string | number;
}
export interface OutstockRecordQuery extends PageQuery {
@ -148,6 +160,11 @@ export interface OutstockRecordQuery extends PageQuery {
*/
erpSynchronousStatus?: string;
/**
* 01退
*/
specialType?: string | number;
/**
*
*/

@ -59,6 +59,16 @@ export interface WmsCheckTaskVO {
*/
executeMonth?: number;
/**
*
*/
matrialTypeName: string;
/**
*
*/
warehouseName: string;
}
export interface WmsCheckTaskForm extends BaseEntity {
@ -113,6 +123,16 @@ export interface WmsCheckTaskForm extends BaseEntity {
executeMonth?: number;
/**
*
*/
matrialTypeName?: string;
/**
*
*/
warehouseName?: string;
}
export interface WmsCheckTaskQuery extends PageQuery {
@ -162,6 +182,16 @@ export interface WmsCheckTaskQuery extends PageQuery {
*/
wmsCheckTaskFrequency?: string;
/**
*
*/
matrialTypeName?: string;
/**
*
*/
warehouseName?: string;
/**
*
*/

@ -696,7 +696,7 @@ const state = reactive({
});
//
getBaseWarehouseList().then(e => {
getBaseWarehouseList(null).then(e => {
baseStoreList.value = e.data
})

@ -82,7 +82,6 @@
<el-table-column label="物料名称" align="center" prop="materialName" v-if="columns[7].visible"/>
<el-table-column label="入库数量" align="center" prop="instockQty" v-if="columns[8].visible"/>
<el-table-column label="物料大类" align="center" prop="materialCategoryName" v-if="columns[9].visible">
</el-table-column>
<el-table-column label="入库人" align="center" prop="createBy" v-if="columns[10].visible"/>
<el-table-column label="创建时间" align="center" prop="createTime" width="180" v-if="columns[11].visible">
@ -96,11 +95,16 @@
</template>
</el-table-column>
<el-table-column label="erp同步数量" align="center" prop="erpSynchronousQty" v-if="columns[13].visible"/>
<el-table-column label="同步时间" align="center" prop="updateTime" width="180" v-if="columns[15].visible">
<el-table-column label="同步时间" align="center" prop="updateTime" width="180" v-if="columns[14].visible">
<template #default="scope">
<span>{{ parseTime(scope.row.updateTime, '{y}-{m}-{d} {h}:{i}:{s}') }}</span>
</template>
</el-table-column>
<el-table-column label="特殊标识" align="center" prop="specialType" v-if="columns[15].visible">
<template #default="scope">
<dict-tag :options="wms_special_type" :value="scope.row.specialType"/>
</template>
</el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template #default="scope">
<el-tooltip content="修改" placement="top">
@ -185,7 +189,7 @@ import { InstockRecordVO, InstockRecordQuery, InstockRecordForm } from '@/api/wm
import {getBaseWarehouseList} from "@/api/wms/baseWarehouse";
import { getBaseMaterialCategoryListInWMS } from '@/api/wms/baseMaterialCategory';
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
const { material_mategories, sys_common_status } = toRefs<any>(proxy?.useDict('material_mategories', 'sys_common_status'));
const { material_mategories, sys_common_status, wms_special_type } = toRefs<any>(proxy?.useDict('material_mategories', 'sys_common_status', 'wms_special_type'));
const instockRecordList = ref<InstockRecordVO[]>([]);
const buttonLoading = ref(false);
@ -221,10 +225,10 @@ const columns = ref<FieldOption[]>([
{ key: 11, label: `创建时间`, visible: true },
{ key: 12, label: `erp同步状态`, visible: true },
{ key: 13, label: `erp同步数量`, visible: true },
{ key: 14, label: `修改人`, visible: true },
{ key: 15, label: `同步时间`, visible: true },
{ key: 16, label: `创建部门`, visible: true },
{ key: 17, label: `租户号`, visible: true },
// { key: 14, label: ``, visible: true },
{ key: 14, label: `同步时间`, visible: true },
// { key: 16, label: ``, visible: true },
// { key: 17, label: ``, visible: true },
]);
const initFormData: InstockRecordForm = {
@ -239,6 +243,7 @@ const initFormData: InstockRecordForm = {
materialCategoryName: undefined,//
erpSynchronousStatus: undefined,
erpSynchronousQty: undefined,
specialType: undefined,
}
const data = reactive<PageData<InstockRecordForm, InstockRecordQuery>>({
form: {...initFormData},
@ -254,6 +259,7 @@ const data = reactive<PageData<InstockRecordForm, InstockRecordQuery>>({
materialCategoryName: undefined,//
erpSynchronousStatus: undefined,
erpSynchronousQty: undefined,
specialType: undefined,
params: {
}
},

@ -84,6 +84,11 @@
</template>
</el-table-column>
<el-table-column label="erp同步数量" align="center" prop="erpSynchronousQty" v-if="columns[11].visible"/>
<el-table-column label="特殊标识" align="center" prop="specialType" v-if="columns[12].visible">
<template #default="scope">
<dict-tag :options="wms_special_type" :value="scope.row.specialType"/>
</template>
</el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template #default="scope">
<el-tooltip content="修改" placement="top">
@ -187,7 +192,7 @@ import { getBaseMaterialCategoryListInWMS } from '@/api/wms/baseMaterialCategory
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
const { sys_common_status, wms_return_flag, } = toRefs<any>(proxy?.useDict('sys_common_status' ,'wms_return_flag'));
const { sys_common_status, wms_return_flag, wms_special_type } = toRefs<any>(proxy?.useDict('sys_common_status' ,'wms_return_flag', 'wms_special_type'));
const outstockRecordList = ref<OutstockRecordVO[]>([]);
const buttonLoading = ref(false);
@ -220,6 +225,7 @@ const columns = ref<FieldOption[]>([
{ key: 9, label: `提交时间`, visible: true },
{ key: 10, label: `erp同步状态`, visible: true },
{ key: 11, label: `erp同步数量`, visible: true },
{ key: 12, label: `特殊标识`, visible: true },
// { key: 12, label: `${comment}`, visible: true },
// { key: 13, label: `${comment}`, visible: true },
// { key: 14, label: `${comment}`, visible: true },
@ -239,6 +245,7 @@ const initFormData: OutstockRecordForm = {
createBy: undefined,
erpSynchronousStatus: undefined,
erpSynchronousQty: undefined,
specialType: undefined,
}
const data = reactive<PageData<OutstockRecordForm, OutstockRecordQuery>>({
form: {...initFormData},
@ -250,6 +257,7 @@ const data = reactive<PageData<OutstockRecordForm, OutstockRecordQuery>>({
materialCategoryId: undefined,
materialCategoryName: undefined,//
erpSynchronousStatus: undefined,
specialType: undefined,
params: {
}
},

Loading…
Cancel
Save