Browse Source

HL-6311 按最新需求修改《器具管理》功能

hella_online_20241107
chenfang 4 weeks ago
parent
commit
4825f11b44
  1. 28
      src/api/wms/containerMainRequest/index.ts
  2. 46
      src/views/wms/inventoryjobManage/containermanage/createContainerMainRequest/createContainerMainRequest.data.ts
  3. 2
      src/views/wms/inventoryjobManage/containermanage/createContainerMainRequest/index.vue
  4. 2
      src/views/wms/inventoryjobManage/containermanage/initialContainerMainRequest/index.vue
  5. 7
      src/views/wms/inventoryjobManage/containermanage/moveContainerMainRequest/index.vue
  6. 2
      src/views/wms/inventoryjobManage/containermanage/returnContainerMainRequest/index.vue
  7. 2
      src/views/wms/inventoryjobManage/containermanage/scrapContainerMainRequest/index.vue
  8. 32
      src/views/wms/inventoryjobManage/containermanage/scrapContainerMainRequest/scrapContainerMainRequest.data.ts

28
src/api/wms/containerMainRequest/index.ts

@ -113,14 +113,30 @@ export const exportDeliverContainerMainRequest = async (params) => {
}
}
// 下载用户导入模板(器具初始化/新增)
export const importTemplate = () => {
return request.download({ url: '/wms/container-main-request/get-import-template' })
// 下载用户导入模板(器具初始化)
export const importTemplateInitial = () => {
return request.download({ url: '/wms/container-main-request/get-import-template-initial' })
}
// 下载用户导入模板(器具新增)
export const importTemplateCreate = () => {
return request.download({ url: '/wms/container-main-request/get-import-template-create' })
}
// 下载用户导入模板(器具报废)
export const importTemplateScrap = () => {
return request.download({ url: '/wms/container-main-request/get-import-template-scrap' })
}
// 下载用户导入模板(器具返回/移动/报废)
export const importTemplateReturnAndMove = () => {
return request.download({ url: '/wms/container-main-request/get-import-template-returnAndMove' })
// 下载用户导入模板(器具移动)
export const importTemplateMove = () => {
return request.download({ url: '/wms/container-main-request/get-import-template-move' })
}
// 下载用户导入模板(器具返回)
export const importTemplateReturn = () => {
return request.download({ url: '/wms/container-main-request/get-import-template-return' })
}
// 关闭

46
src/views/wms/inventoryjobManage/containermanage/createContainerMainRequest/createContainerMainRequest.data.ts

@ -79,7 +79,7 @@ export const ContainerMainRequest = useCrudSchemas(reactive<CrudSchema[]>([
}
},
{
label: '初始化库位代码',
label: '库位代码',
field: 'toLocationCode',
sort: 'custom',
table: {
@ -87,7 +87,7 @@ export const ContainerMainRequest = useCrudSchemas(reactive<CrudSchema[]>([
},
tableForm:{
isInpuFocusShow: true, // 开启查询弹窗
searchListPlaceholder: '请选择初始化库位代码',
searchListPlaceholder: '请选择库位代码',
searchField: 'code',
searchTitle: '库位信息',
searchAllSchemas: Location.allSchemas,
@ -105,7 +105,7 @@ export const ContainerMainRequest = useCrudSchemas(reactive<CrudSchema[]>([
// labelMessage: '信息提示说明!!!',
componentProps: {
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择初始化库位代码',
searchListPlaceholder: '请选择库位代码',
searchField: 'code',
searchTitle: '库位信息',
searchAllSchemas: Location.allSchemas,
@ -465,6 +465,26 @@ export const ContainerDetailRequest = useCrudSchemas(reactive<CrudSchema[]>([
}
}
},
{
label: '库存状态',
field: 'toInventoryStatus',
dictType: DICT_TYPE.INVENTORY_STATUS,
dictClass: 'string',
isTable: true,
sort: 'custom',
table: {
width: 150
},
tableForm: {
disabled: true,
type: 'Select'
},
form: {
componentProps: {
disabled: true
}
}
},
{
label: '数量',
field: 'toQty',
@ -503,26 +523,6 @@ export const ContainerDetailRequest = useCrudSchemas(reactive<CrudSchema[]>([
}
}
},
{
label: '库存状态',
field: 'toInventoryStatus',
dictType: DICT_TYPE.INVENTORY_STATUS,
dictClass: 'string',
isTable: true,
sort: 'custom',
table: {
width: 150
},
tableForm: {
disabled: true,
type: 'Select'
},
form: {
componentProps: {
disabled: true
}
}
},
{
label: '子备注',
field: 'remark',

2
src/views/wms/inventoryjobManage/containermanage/createContainerMainRequest/index.vue

@ -534,7 +534,7 @@ const searchFormClick = (searchData) => {
/** 初始化 **/
onMounted(async () => {
getList()
importTemplateData.templateUrl = await ContainerMainRequestApi.importTemplate()
importTemplateData.templateUrl = await ContainerMainRequestApi.importTemplateCreate()
})
</script>

2
src/views/wms/inventoryjobManage/containermanage/initialContainerMainRequest/index.vue

@ -534,7 +534,7 @@ const searchFormClick = (searchData) => {
/** 初始化 **/
onMounted(async () => {
getList()
importTemplateData.templateUrl = await ContainerMainRequestApi.importTemplate()
importTemplateData.templateUrl = await ContainerMainRequestApi.importTemplateInitial()
})
</script>

7
src/views/wms/inventoryjobManage/containermanage/moveContainerMainRequest/index.vue

@ -433,6 +433,11 @@ const submitForm = async (formType,submitData) => {
if(data.masterId){
data.id = data.masterId
}
let findLocation = tableData.value.find(item=>item.fromLocationCode==item.toLocationCode&&item.fromInventoryStatus==item.toInventoryStatus)
if(findLocation){
message.warning('从库位和到库位不能相同')
return
}
data.subList = tableData.value //
data.subList.forEach(item => {
if(item.qty == 0){
@ -535,7 +540,7 @@ const searchFormClick = (searchData) => {
/** 初始化 **/
onMounted(async () => {
getList()
importTemplateData.templateUrl = await ContainerMainRequestApi.importTemplateReturnAndMove()
importTemplateData.templateUrl = await ContainerMainRequestApi.importTemplateMove()
})
</script>

2
src/views/wms/inventoryjobManage/containermanage/returnContainerMainRequest/index.vue

@ -535,7 +535,7 @@ const searchFormClick = (searchData) => {
/** 初始化 **/
onMounted(async () => {
getList()
importTemplateData.templateUrl = await ContainerMainRequestApi.importTemplateReturnAndMove()
importTemplateData.templateUrl = await ContainerMainRequestApi.importTemplateReturn()
})
</script>

2
src/views/wms/inventoryjobManage/containermanage/scrapContainerMainRequest/index.vue

@ -557,7 +557,7 @@ const searchFormClick = (searchData) => {
/** 初始化 **/
onMounted(async () => {
getList()
importTemplateData.templateUrl = await ContainerMainRequestApi.importTemplateReturnAndMove()
importTemplateData.templateUrl = await ContainerMainRequestApi.importTemplateScrap()
})
</script>

32
src/views/wms/inventoryjobManage/containermanage/scrapContainerMainRequest/scrapContainerMainRequest.data.ts

@ -533,6 +533,21 @@ export const ContainerDetailRequest = useCrudSchemas(reactive<CrudSchema[]>([
// disabled: true,
// },
// },
{
label: '库存状态',
field: 'toInventoryStatus',
dictType: DICT_TYPE.INVENTORY_STATUS,
dictClass: 'string',
isTable: true,
sort: 'custom',
table: {
width: 150
},
tableForm: {
type: 'Select',
disabled: true
},
},
{
label: '数量',
field: 'toQty',
@ -566,23 +581,6 @@ export const ContainerDetailRequest = useCrudSchemas(reactive<CrudSchema[]>([
type: 'Select'
}
},
{
label: '到库存状态',
field: 'toInventoryStatus',
dictType: DICT_TYPE.INVENTORY_STATUS,
dictClass: 'string',
isForm: false,
isTableForm: false,
isTable: false,
sort: 'custom',
table: {
width: 150
},
tableForm: {
type: 'Select',
disabled: true
},
},
{
label: '子备注',
field: 'remark',

Loading…
Cancel
Save