|
|
|
@ -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: {
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|