Browse Source

库存管理页面及字段修改

master
李胜楠 1 year ago
parent
commit
880fd61604
  1. 108
      src/views/wms/inventoryManage/balance/balance.data.ts
  2. 14
      src/views/wms/inventoryManage/balance/index.vue
  3. 15
      src/views/wms/inventoryManage/container/containerMain.data.ts
  4. 2
      src/views/wms/inventoryManage/container/index.vue
  5. 26
      src/views/wms/inventoryManage/expectin/expectin.data.ts
  6. 14
      src/views/wms/inventoryManage/expectin/index.vue
  7. 34
      src/views/wms/inventoryManage/expectout/expectout.data.ts
  8. 14
      src/views/wms/inventoryManage/expectout/index.vue
  9. 14
      src/views/wms/inventoryManage/locationcapacity/index.vue
  10. 18
      src/views/wms/inventoryManage/locationcapacity/locationcapacity.data.ts
  11. 14
      src/views/wms/inventoryManage/transaction/index.vue
  12. 162
      src/views/wms/inventoryManage/transaction/transaction.data.ts
  13. 14
      src/views/wms/inventoryManage/transferlog/index.vue
  14. 42
      src/views/wms/inventoryManage/transferlog/transferlog.data.ts

108
src/views/wms/inventoryManage/balance/balance.data.ts

@ -71,6 +71,52 @@ export const Balance = useCrudSchemas(reactive<CrudSchema[]>([
width: 150 width: 150
}, },
}, },
{
label: '仓库代码',
field: 'warehouseCode',
sort: 'custom',
table: {
width: 150
},
},
{
label: '库存状态',
field: 'inventoryStatus',
dictType: DICT_TYPE.INVENTORY_STATUS,
dictClass: 'string',
isTable: true,
sort: 'custom',
table: {
width: 150
},
},
{
label: '库位组代码',
field: 'locationGroupCode',
sort: 'custom',
table: {
width: 150
},
},
{
label: '库区代码',
field: 'areaCode',
sort: 'custom',
table: {
width: 150
},
},
{
label: 'ERP库位代码',
field: 'erpLocationCode',
dictType: DICT_TYPE.ERP_LOCATION,
dictClass: 'string',
isTable: true,
sort: 'custom',
table: {
width: 150
},
},
{ {
label: '替代批次', label: '替代批次',
field: 'altBatch', field: 'altBatch',
@ -136,52 +182,6 @@ export const Balance = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
{
label: '库存状态',
field: 'inventoryStatus',
dictType: DICT_TYPE.INVENTORY_STATUS,
dictClass: 'string',
isTable: true,
sort: 'custom',
table: {
width: 150
},
},
{
label: '库位组代码',
field: 'locationGroupCode',
sort: 'custom',
table: {
width: 150
},
},
{
label: '库区代码',
field: 'areaCode',
sort: 'custom',
table: {
width: 150
},
},
{
label: '仓库代码',
field: 'warehouseCode',
sort: 'custom',
table: {
width: 150
},
},
{
label: 'ERP库位代码',
field: 'erpLocationCode',
dictType: DICT_TYPE.ERP_LOCATION,
dictClass: 'string',
isTable: true,
sort: 'custom',
table: {
width: 150
},
},
{ {
label: '货主代码', label: '货主代码',
field: 'ownerCode', field: 'ownerCode',
@ -283,14 +283,6 @@ export const Balance = useCrudSchemas(reactive<CrudSchema[]>([
width: 150 width: 150
}, },
}, },
{
label: '最后事务号',
field: 'lastTransNumber',
sort: 'custom',
table: {
width: 150
},
},
{ {
label: '重量', label: '重量',
field: 'weight', field: 'weight',
@ -324,6 +316,14 @@ export const Balance = useCrudSchemas(reactive<CrudSchema[]>([
component: 'InputNumber', component: 'InputNumber',
} }
}, },
{
label: '最后事务号',
field: 'lastTransNumber',
sort: 'custom',
table: {
width: 150
},
},
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',

14
src/views/wms/inventoryManage/balance/index.vue

@ -27,9 +27,9 @@
v-model:currentPage="tableObject.currentPage" v-model:currentPage="tableObject.currentPage"
v-model:sort="tableObject.sort" v-model:sort="tableObject.sort"
> >
<template #code="{row}"> <template #itemCode="{row}">
<el-button type="primary" link @click="openDetail(row, '代码', row.code)"> <el-button type="primary" link @click="openDetail(row, '物料代码', row.itemCode)">
<span>{{ row.code }}</span> <span>{{ row.itemCode }}</span>
</el-button> </el-button>
</template> </template>
<template #action="{ row }"> <template #action="{ row }">
@ -147,7 +147,7 @@ const openForm = (type: string, row?: any) => {
/** 详情操作 */ /** 详情操作 */
const detailRef = ref() const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => { const openDetail = (row: any, titleName: any, titleValue: any) => {
detailRef.value.openDetail(row, titleName, titleValue, 'basicSupplier') detailRef.value.openDetail(row, titleName, titleValue)
} }
/** 删除按钮操作 */ /** 删除按钮操作 */
@ -172,7 +172,7 @@ const handleExport = async () => {
// //
exportLoading.value = true exportLoading.value = true
const data = await BalanceApi.exportBalance(setSearchParams) const data = await BalanceApi.exportBalance(setSearchParams)
download.excel(data, '供应商.xlsx') download.excel(data, '库存余额.xlsx')
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false
@ -187,7 +187,7 @@ const handleImport = () => {
// //
const importTemplateData = reactive({ const importTemplateData = reactive({
templateUrl: '', templateUrl: '',
templateTitle: '供应商导入模版.xlsx' templateTitle: '库存余额导入模版.xlsx'
}) })
// //
const importSuccess = () => { const importSuccess = () => {
@ -206,6 +206,6 @@ const searchFormClick = (searchData) => {
/** 初始化 **/ /** 初始化 **/
onMounted(async() => { onMounted(async() => {
getList() getList()
importTemplateData.templateUrl = await BalanceApi.importTemplate() // importTemplateData.templateUrl = await BalanceApi.importTemplate()
}) })
</script> </script>

15
src/views/wms/inventoryManage/container/containerMain.data.ts

@ -8,9 +8,6 @@ export const ContainerMain = useCrudSchemas(reactive<CrudSchema[]>([
label: '号码', label: '号码',
field: 'number', field: 'number',
sort: 'custom', sort: 'custom',
table: {
width: 150
},
isSearch: true, isSearch: true,
}, },
{ {
@ -21,18 +18,12 @@ export const ContainerMain = useCrudSchemas(reactive<CrudSchema[]>([
isTable: true, isTable: true,
isForm: true, isForm: true,
sort: 'custom', sort: 'custom',
table: {
width: 150
},
isSearch: true, isSearch: true,
}, },
{ {
label: '总容量', label: '总容量',
field: 'capacity', field: 'capacity',
sort: 'custom', sort: 'custom',
table: {
width: 150
},
form: { form: {
component: 'InputNumber', component: 'InputNumber',
}, },
@ -42,18 +33,12 @@ export const ContainerMain = useCrudSchemas(reactive<CrudSchema[]>([
label: '状态', label: '状态',
field: 'status', field: 'status',
sort: 'custom', sort: 'custom',
table: {
width: 150
},
isSearch: true, isSearch: true,
}, },
{ {
label: '货主代码', label: '货主代码',
field: 'ownerCode', field: 'ownerCode',
sort: 'custom', sort: 'custom',
table: {
width: 150
},
} }
])) ]))

2
src/views/wms/inventoryManage/container/index.vue

@ -142,7 +142,7 @@ const handleExport = async () => {
// //
exportLoading.value = true exportLoading.value = true
const data = await ContainerMainApi.exportContainerMain(setSearchParams) const data = await ContainerMainApi.exportContainerMain(setSearchParams)
download.excel(data, '供应商发票记录主.xlsx') download.excel(data, '器具主.xlsx')
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

26
src/views/wms/inventoryManage/expectin/expectin.data.ts

@ -39,16 +39,15 @@ export const Expectin = useCrudSchemas(reactive<CrudSchema[]>([
isSearch: true, isSearch: true,
}, },
{ {
label: '库存状态', label: '数量',
field: 'inventoryStatus', field: 'qty',
dictType: DICT_TYPE.INVENTORY_STATUS,
dictClass: 'string',
isSearch: true,
isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
form: {
component: 'InputNumber',
}
}, },
{ {
label: '计量单位', label: '计量单位',
@ -63,15 +62,12 @@ export const Expectin = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '数量', label: '仓库代码',
field: 'qty', field: 'warehouseCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
form: {
component: 'InputNumber',
}
}, },
{ {
label: '库位代码', label: '库位代码',
@ -82,8 +78,12 @@ export const Expectin = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '仓库代码', label: '库存状态',
field: 'warehouseCode', field: 'inventoryStatus',
dictType: DICT_TYPE.INVENTORY_STATUS,
dictClass: 'string',
isSearch: true,
isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150

14
src/views/wms/inventoryManage/expectin/index.vue

@ -27,9 +27,9 @@
v-model:currentPage="tableObject.currentPage" v-model:currentPage="tableObject.currentPage"
v-model:sort="tableObject.sort" v-model:sort="tableObject.sort"
> >
<template #code="{row}"> <template #jobNumber="{row}">
<el-button type="primary" link @click="openDetail(row, '代码', row.code)"> <el-button type="primary" link @click="openDetail(row, '任务号', row.jobNumber)">
<span>{{ row.code }}</span> <span>{{ row.jobNumber }}</span>
</el-button> </el-button>
</template> </template>
<template #action="{ row }"> <template #action="{ row }">
@ -147,7 +147,7 @@ const openForm = (type: string, row?: any) => {
/** 详情操作 */ /** 详情操作 */
const detailRef = ref() const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => { const openDetail = (row: any, titleName: any, titleValue: any) => {
detailRef.value.openDetail(row, titleName, titleValue, 'basicSupplier') detailRef.value.openDetail(row, titleName, titleValue)
} }
/** 删除按钮操作 */ /** 删除按钮操作 */
@ -172,7 +172,7 @@ const handleExport = async () => {
// //
exportLoading.value = true exportLoading.value = true
const data = await ExpectinApi.exportExpectin(setSearchParams) const data = await ExpectinApi.exportExpectin(setSearchParams)
download.excel(data, '供应商.xlsx') download.excel(data, '预计入库存.xlsx')
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false
@ -187,7 +187,7 @@ const handleImport = () => {
// //
const importTemplateData = reactive({ const importTemplateData = reactive({
templateUrl: '', templateUrl: '',
templateTitle: '供应商导入模版.xlsx' templateTitle: '预计入库存导入模版.xlsx'
}) })
// //
const importSuccess = () => { const importSuccess = () => {
@ -206,6 +206,6 @@ const searchFormClick = (searchData) => {
/** 初始化 **/ /** 初始化 **/
onMounted(async() => { onMounted(async() => {
getList() getList()
importTemplateData.templateUrl = await ExpectinApi.importTemplate() // importTemplateData.templateUrl = await ExpectinApi.importTemplate()
}) })
</script> </script>

34
src/views/wms/inventoryManage/expectout/expectout.data.ts

@ -21,8 +21,8 @@ export const Expectout = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '包装号', label: '物品代码',
field: 'packingNumber', field: 'itemCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -30,8 +30,8 @@ export const Expectout = useCrudSchemas(reactive<CrudSchema[]>([
isSearch: true, isSearch: true,
}, },
{ {
label: '物品代码', label: '包装号',
field: 'itemCode', field: 'packingNumber',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -48,16 +48,15 @@ export const Expectout = useCrudSchemas(reactive<CrudSchema[]>([
isSearch: true, isSearch: true,
}, },
{ {
label: '库存状态', label: '数量',
field: 'inventoryStatus', field: 'qty',
dictType: DICT_TYPE.INVENTORY_STATUS,
dictClass: 'string',
isSearch: true,
isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
form: {
component: 'InputNumber',
}
}, },
{ {
label: '计量单位', label: '计量单位',
@ -71,15 +70,12 @@ export const Expectout = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '数量', label: '仓库代码',
field: 'qty', field: 'warehouseCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
form: {
component: 'InputNumber',
}
}, },
{ {
label: '库位代码', label: '库位代码',
@ -90,8 +86,12 @@ export const Expectout = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '仓库代码', label: '库存状态',
field: 'warehouseCode', field: 'inventoryStatus',
dictType: DICT_TYPE.INVENTORY_STATUS,
dictClass: 'string',
isSearch: true,
isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150

14
src/views/wms/inventoryManage/expectout/index.vue

@ -27,9 +27,9 @@
v-model:currentPage="tableObject.currentPage" v-model:currentPage="tableObject.currentPage"
v-model:sort="tableObject.sort" v-model:sort="tableObject.sort"
> >
<template #code="{row}"> <template #jobNumber="{row}">
<el-button type="primary" link @click="openDetail(row, '代码', row.code)"> <el-button type="primary" link @click="openDetail(row, '任务号', row.jobNumber)">
<span>{{ row.code }}</span> <span>{{ row.jobNumber }}</span>
</el-button> </el-button>
</template> </template>
<template #action="{ row }"> <template #action="{ row }">
@ -147,7 +147,7 @@ const openForm = (type: string, row?: any) => {
/** 详情操作 */ /** 详情操作 */
const detailRef = ref() const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => { const openDetail = (row: any, titleName: any, titleValue: any) => {
detailRef.value.openDetail(row, titleName, titleValue, 'basicSupplier') detailRef.value.openDetail(row, titleName, titleValue)
} }
/** 删除按钮操作 */ /** 删除按钮操作 */
@ -172,7 +172,7 @@ const handleExport = async () => {
// //
exportLoading.value = true exportLoading.value = true
const data = await ExpectoutApi.exportExpectout(setSearchParams) const data = await ExpectoutApi.exportExpectout(setSearchParams)
download.excel(data, '供应商.xlsx') download.excel(data, '预计出库存.xlsx')
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false
@ -187,7 +187,7 @@ const handleImport = () => {
// //
const importTemplateData = reactive({ const importTemplateData = reactive({
templateUrl: '', templateUrl: '',
templateTitle: '供应商导入模版.xlsx' templateTitle: '预计出库存导入模版.xlsx'
}) })
// //
const importSuccess = () => { const importSuccess = () => {
@ -206,6 +206,6 @@ const searchFormClick = (searchData) => {
/** 初始化 **/ /** 初始化 **/
onMounted(async() => { onMounted(async() => {
getList() getList()
importTemplateData.templateUrl = await ExpectoutApi.importTemplate() // importTemplateData.templateUrl = await ExpectoutApi.importTemplate()
}) })
</script> </script>

14
src/views/wms/inventoryManage/locationcapacity/index.vue

@ -27,9 +27,9 @@
v-model:currentPage="tableObject.currentPage" v-model:currentPage="tableObject.currentPage"
v-model:sort="tableObject.sort" v-model:sort="tableObject.sort"
> >
<template #code="{row}"> <template #locationCode="{row}">
<el-button type="primary" link @click="openDetail(row, '代码', row.code)"> <el-button type="primary" link @click="openDetail(row, '库位代码', row.locationCode)">
<span>{{ row.code }}</span> <span>{{ row.locationCode }}</span>
</el-button> </el-button>
</template> </template>
<template #action="{ row }"> <template #action="{ row }">
@ -147,7 +147,7 @@ const openForm = (type: string, row?: any) => {
/** 详情操作 */ /** 详情操作 */
const detailRef = ref() const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => { const openDetail = (row: any, titleName: any, titleValue: any) => {
detailRef.value.openDetail(row, titleName, titleValue, 'basicSupplier') detailRef.value.openDetail(row, titleName, titleValue)
} }
/** 删除按钮操作 */ /** 删除按钮操作 */
@ -172,7 +172,7 @@ const handleExport = async () => {
// //
exportLoading.value = true exportLoading.value = true
const data = await LocationcapacityApi.exportLocationcapacity(setSearchParams) const data = await LocationcapacityApi.exportLocationcapacity(setSearchParams)
download.excel(data, '供应商.xlsx') download.excel(data, '库位容量.xlsx')
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false
@ -187,7 +187,7 @@ const handleImport = () => {
// //
const importTemplateData = reactive({ const importTemplateData = reactive({
templateUrl: '', templateUrl: '',
templateTitle: '供应商导入模版.xlsx' templateTitle: '库位容量导入模版.xlsx'
}) })
// //
const importSuccess = () => { const importSuccess = () => {
@ -206,6 +206,6 @@ const searchFormClick = (searchData) => {
/** 初始化 **/ /** 初始化 **/
onMounted(async() => { onMounted(async() => {
getList() getList()
importTemplateData.templateUrl = await LocationcapacityApi.importTemplate() // importTemplateData.templateUrl = await LocationcapacityApi.importTemplate()
}) })
</script> </script>

18
src/views/wms/inventoryManage/locationcapacity/locationcapacity.data.ts

@ -8,44 +8,29 @@ export const Locationcapacity = useCrudSchemas(reactive<CrudSchema[]>([
label: '库位代码', label: '库位代码',
field: 'locationCode', field: 'locationCode',
sort: 'custom', sort: 'custom',
table: {
width: 150
},
isSearch: true, isSearch: true,
}, },
{ {
label: '仓库代码', label: '仓库代码',
field: 'warehouseCode', field: 'warehouseCode',
sort: 'custom', sort: 'custom',
table: {
width: 150
},
isSearch: true, isSearch: true,
}, },
{ {
label: '已用容量百分比', label: '已用容量百分比',
field: 'usedCapacity', field: 'usedCapacity',
sort: 'custom', sort: 'custom',
table: {
width: 150
},
isSearch: true, isSearch: true,
}, },
{ {
label: '可用容量百分比', label: '可用容量百分比',
field: 'availableCapacity', field: 'availableCapacity',
sort: 'custom', sort: 'custom',
table: {
width: 150
},
}, },
{ {
label: '可承受过载容量百分比', label: '可承受过载容量百分比',
field: 'bearableOverloadCapacity', field: 'bearableOverloadCapacity',
sort: 'custom', sort: 'custom',
table: {
width: 150
},
}, },
{ {
label: '是否无限容量', label: '是否无限容量',
@ -55,9 +40,6 @@ export const Locationcapacity = useCrudSchemas(reactive<CrudSchema[]>([
isSearch: true, isSearch: true,
isTable: true, isTable: true,
sort: 'custom', sort: 'custom',
table: {
width: 150
},
form: { form: {
component: 'Switch', component: 'Switch',
value: 'TRUE', value: 'TRUE',

14
src/views/wms/inventoryManage/transaction/index.vue

@ -27,9 +27,9 @@
v-model:currentPage="tableObject.currentPage" v-model:currentPage="tableObject.currentPage"
v-model:sort="tableObject.sort" v-model:sort="tableObject.sort"
> >
<template #code="{row}"> <template #number="{row}">
<el-button type="primary" link @click="openDetail(row, '代码', row.code)"> <el-button type="primary" link @click="openDetail(row, '事务号', row.number)">
<span>{{ row.code }}</span> <span>{{ row.number }}</span>
</el-button> </el-button>
</template> </template>
<template #action="{ row }"> <template #action="{ row }">
@ -147,7 +147,7 @@ const openForm = (type: string, row?: any) => {
/** 详情操作 */ /** 详情操作 */
const detailRef = ref() const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => { const openDetail = (row: any, titleName: any, titleValue: any) => {
detailRef.value.openDetail(row, titleName, titleValue, 'basicSupplier') detailRef.value.openDetail(row, titleName, titleValue)
} }
/** 删除按钮操作 */ /** 删除按钮操作 */
@ -172,7 +172,7 @@ const handleExport = async () => {
// //
exportLoading.value = true exportLoading.value = true
const data = await TransactionApi.exportTransaction(setSearchParams) const data = await TransactionApi.exportTransaction(setSearchParams)
download.excel(data, '供应商.xlsx') download.excel(data, '事务类型.xlsx')
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false
@ -187,7 +187,7 @@ const handleImport = () => {
// //
const importTemplateData = reactive({ const importTemplateData = reactive({
templateUrl: '', templateUrl: '',
templateTitle: '供应商导入模版.xlsx' templateTitle: '事务类型导入模版.xlsx'
}) })
// //
const importSuccess = () => { const importSuccess = () => {
@ -206,6 +206,6 @@ const searchFormClick = (searchData) => {
/** 初始化 **/ /** 初始化 **/
onMounted(async() => { onMounted(async() => {
getList() getList()
importTemplateData.templateUrl = await TransactionApi.importTemplate() // importTemplateData.templateUrl = await TransactionApi.importTemplate()
}) })
</script> </script>

162
src/views/wms/inventoryManage/transaction/transaction.data.ts

@ -58,32 +58,67 @@ export const Transaction = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '生效时间', label: '物料代码',
field: 'activeTime', field: 'itemCode',
isTable: true, sort: 'custom',
formatter: dateFormatter, table: {
detail: { width: 150
dateFormat: 'YYYY-MM-DD HH:mm:ss'
}, },
isSearch: true,
},
{
label: '数量',
field: 'qty',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
form: { form: {
component: 'DatePicker', component: 'InputNumber',
componentProps: {
type: 'datetime',
}
} }
}, },
{ {
label: '物料代码', label: '计量单位',
field: 'itemCode', field: 'uom',
dictType: DICT_TYPE.UOM,
dictClass: 'string',
isTable: true,
sort: 'custom',
table: {
width: 150
},
},
{
label: '单价',
field: 'singlePrice',
sort: 'custom',
table: {
width: 150
},
},
{
label: '金额',
field: 'amount',
sort: 'custom',
table: {
width: 150
},
},
{
label: '包装号',
field: 'packingNumber',
sort: 'custom',
table: {
width: 150
},
},
{
label: '器具号',
field: 'containerNumber',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
isSearch: true,
}, },
{ {
label: '批次', label: '批次',
@ -94,6 +129,14 @@ export const Transaction = useCrudSchemas(reactive<CrudSchema[]>([
}, },
isSearch: true, isSearch: true,
}, },
{
label: '库位代码',
field: 'locationCode',
sort: 'custom',
table: {
width: 150
},
},
{ {
label: '库存状态', label: '库存状态',
field: 'inventoryStatus', field: 'inventoryStatus',
@ -107,38 +150,35 @@ export const Transaction = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '计量单位', label: '仓库代码',
field: 'uom', field: 'warehouseCode',
dictType: DICT_TYPE.UOM,
dictClass: 'string',
isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '数量', label: '库区代码',
field: 'qty', field: 'areaCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
form: {
component: 'InputNumber',
}
}, },
{ {
label: '单价', label: '库位组代码',
field: 'singlePrice', field: 'locationGroupCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '金额', label: 'ERP库位代码',
field: 'amount', field: 'erpLocationCode',
dictType: DICT_TYPE.ERP_LOCATION,
dictClass: 'string',
isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -191,8 +231,8 @@ export const Transaction = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
{ {
label: '失效日期', label: '生效时间',
field: 'expireDate', field: 'activeTime',
isTable: true, isTable: true,
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {
@ -210,63 +250,23 @@ export const Transaction = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
{ {
label: '包装号', label: '失效日期',
field: 'packingNumber', field: 'expireDate',
sort: 'custom',
table: {
width: 150
},
},
{
label: '器具号',
field: 'containerNumber',
sort: 'custom',
table: {
width: 150
},
},
{
label: '库位代码',
field: 'locationCode',
sort: 'custom',
table: {
width: 150
},
},
{
label: '仓库代码',
field: 'warehouseCode',
sort: 'custom',
table: {
width: 150
},
},
{
label: '库区代码',
field: 'areaCode',
sort: 'custom',
table: {
width: 150
},
},
{
label: '库位组代码',
field: 'locationGroupCode',
sort: 'custom',
table: {
width: 150
},
},
{
label: 'ERP库位代码',
field: 'erpLocationCode',
dictType: DICT_TYPE.ERP_LOCATION,
dictClass: 'string',
isTable: true, isTable: true,
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
form: {
component: 'DatePicker',
componentProps: {
type: 'datetime',
}
}
}, },
{ {
label: '货主代码', label: '货主代码',

14
src/views/wms/inventoryManage/transferlog/index.vue

@ -27,9 +27,9 @@
v-model:currentPage="tableObject.currentPage" v-model:currentPage="tableObject.currentPage"
v-model:sort="tableObject.sort" v-model:sort="tableObject.sort"
> >
<template #code="{row}"> <template #number="{row}">
<el-button type="primary" link @click="openDetail(row, '代码', row.code)"> <el-button type="primary" link @click="openDetail(row, '库存转移日志', row.number)">
<span>{{ row.code }}</span> <span>{{ row.number }}</span>
</el-button> </el-button>
</template> </template>
<template #action="{ row }"> <template #action="{ row }">
@ -147,7 +147,7 @@ const openForm = (type: string, row?: any) => {
/** 详情操作 */ /** 详情操作 */
const detailRef = ref() const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => { const openDetail = (row: any, titleName: any, titleValue: any) => {
detailRef.value.openDetail(row, titleName, titleValue, 'basicSupplier') detailRef.value.openDetail(row, titleName, titleValue)
} }
/** 删除按钮操作 */ /** 删除按钮操作 */
@ -172,7 +172,7 @@ const handleExport = async () => {
// //
exportLoading.value = true exportLoading.value = true
const data = await ExpectinApi.exportTransferlog(setSearchParams) const data = await ExpectinApi.exportTransferlog(setSearchParams)
download.excel(data, '供应商.xlsx') download.excel(data, '库存转移日志.xlsx')
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false
@ -187,7 +187,7 @@ const handleImport = () => {
// //
const importTemplateData = reactive({ const importTemplateData = reactive({
templateUrl: '', templateUrl: '',
templateTitle: '供应商导入模版.xlsx' templateTitle: '库存转移日志导入模版.xlsx'
}) })
// //
const importSuccess = () => { const importSuccess = () => {
@ -206,6 +206,6 @@ const searchFormClick = (searchData) => {
/** 初始化 **/ /** 初始化 **/
onMounted(async() => { onMounted(async() => {
getList() getList()
importTemplateData.templateUrl = await ExpectinApi.importTemplate() // importTemplateData.templateUrl = await ExpectinApi.importTemplate()
}) })
</script> </script>

42
src/views/wms/inventoryManage/transferlog/transferlog.data.ts

@ -46,26 +46,24 @@ export const Transferlog = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '生效时间', label: '物品代码',
field: 'activeTime', field: 'itemCode',
isTable: true,
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
isSearch: true,
}, },
{ {
label: '物品代码', label: '数量',
field: 'itemCode', field: 'qty',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
isSearch: true, form: {
component: 'InputNumber',
}
}, },
{ {
label: '计量单位', label: '计量单位',
@ -79,17 +77,6 @@ export const Transferlog = useCrudSchemas(reactive<CrudSchema[]>([
}, },
isSearch: true, isSearch: true,
}, },
{
label: '数量',
field: 'qty',
sort: 'custom',
table: {
width: 150
},
form: {
component: 'InputNumber',
}
},
{ {
label: '替代批次', label: '替代批次',
field: 'altBatch', field: 'altBatch',
@ -136,6 +123,19 @@ export const Transferlog = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
{
label: '生效时间',
field: 'activeTime',
isTable: true,
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom',
table: {
width: 150
},
},
{ {
label: '失效日期', label: '失效日期',
field: 'expireDate', field: 'expireDate',

Loading…
Cancel
Save