From b2de7b84159354d7f871724e0501ca6bf509ae21 Mon Sep 17 00:00:00 2001 From: chenfang Date: Fri, 24 May 2024 15:00:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wms/balance/index.ts | 2 +- .../callmaterials/callmaterials.data.ts | 46 +++++++++++++++++-- .../labelManage/callmaterials/index.vue | 1 + .../inventorychangeRecordMain.data.ts | 2 +- .../inventorychangeRequestMain/index.vue | 1 - .../inventorychangeRequestMain.data.ts | 24 ++++++++-- 6 files changed, 64 insertions(+), 12 deletions(-) diff --git a/src/api/wms/balance/index.ts b/src/api/wms/balance/index.ts index 6ddf5473a..cb17a3200 100644 --- a/src/api/wms/balance/index.ts +++ b/src/api/wms/balance/index.ts @@ -83,7 +83,7 @@ export const getBalancePageByBusinessType = async (params) => { } -// 查询库存余额列表根据业务类型 +// 查询库存余额列表根据业务类型的物料类型 export const getBalancePageByBusinessTypeByItemType = async (params) => { if (params.isSearch) { delete params.isSearch diff --git a/src/views/wms/basicDataManage/labelManage/callmaterials/callmaterials.data.ts b/src/views/wms/basicDataManage/labelManage/callmaterials/callmaterials.data.ts index 216b92563..5c852da86 100644 --- a/src/views/wms/basicDataManage/labelManage/callmaterials/callmaterials.data.ts +++ b/src/views/wms/basicDataManage/labelManage/callmaterials/callmaterials.data.ts @@ -29,8 +29,13 @@ const confgiDataOne = await confgiApi.queryByKey("WorkStation-IN") // 表单校验 export const CallmaterialsRules = reactive({ itemCode: [required], - itemName: [required], - barcodeString: [required] + packUnit: [required], + qty: [required], + productionLineCode: [required], + callmaterialQtySum: [required], + warehouseCode: [required], + workshopCode: [required], + workStationCode: [required], }) export const Callmaterials = useCrudSchemas(reactive([ @@ -72,7 +77,7 @@ export const Callmaterials = useCrudSchemas(reactive([ componentProps: { isSearch:true, isSearchList: true, // 开启查询弹窗 - searchListPlaceholder: '请选择物料代码', // 输入框占位文本 + searchListPlaceholder: '请选择包装规格', // 输入框占位文本 searchField: 'itemCode', // 查询弹窗赋值字段 searchTitle: '物料包装信息', // 查询弹窗标题 searchAllSchemas: Itempackaging.allSchemas, // 查询弹窗所需类 @@ -91,12 +96,45 @@ export const Callmaterials = useCrudSchemas(reactive([ } }, { - label: '包装数量', + label: '叫料包装数量', field: 'qty', sort: 'custom', table: { width: 120 }, + form: { + component: 'InputNumber', + componentProps: { + disabled: true, + style: {width:'100%'}, + min: 0, + precision: 6 + } + } + }, + { + label: '包装数量', + field: 'callmaterialQty', + sort: 'custom', + table: { + width: 120 + }, + form: { + component: 'InputNumber', + componentProps: { + style: {width:'100%'}, + min: 0, + precision: 6 + } + } + }, + { + label: '叫料总数量', + field: 'callmaterialQtySum', + sort: 'custom', + table: { + width: 120 + }, form: { component: 'InputNumber', componentProps: { diff --git a/src/views/wms/basicDataManage/labelManage/callmaterials/index.vue b/src/views/wms/basicDataManage/labelManage/callmaterials/index.vue index 620c91a76..1aa4b89a4 100644 --- a/src/views/wms/basicDataManage/labelManage/callmaterials/index.vue +++ b/src/views/wms/basicDataManage/labelManage/callmaterials/index.vue @@ -90,6 +90,7 @@ const searchTableSuccess = (formField, searchField, val, formRef) => { } else if (formField == 'packUnit') { setV['uom'] = val[0]['uom'] setV['packUnit'] = val[0]['packUnit'] + setV['callmaterialQty'] = val[0]['packQty'] }else { setV[formField] = val[0][searchField] } diff --git a/src/views/wms/moveManage/inventorychange/inventorychangeRecordMain/inventorychangeRecordMain.data.ts b/src/views/wms/moveManage/inventorychange/inventorychangeRecordMain/inventorychangeRecordMain.data.ts index bcb4a54d9..bd30dfe67 100644 --- a/src/views/wms/moveManage/inventorychange/inventorychangeRecordMain/inventorychangeRecordMain.data.ts +++ b/src/views/wms/moveManage/inventorychange/inventorychangeRecordMain/inventorychangeRecordMain.data.ts @@ -615,7 +615,7 @@ export const InventorychangeRecordDetail = useCrudSchemas(reactive }, { label: '是否冻结', - field: 'available', + field: 'frozen', sort: 'custom', dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', diff --git a/src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/index.vue b/src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/index.vue index 9da46ac24..56525c2a8 100644 --- a/src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/index.vue +++ b/src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/index.vue @@ -94,7 +94,6 @@ const route = useRoute() // 路由信息 const routeName = ref() routeName.value = route.name const tableColumns = ref([...InventorychangeRequestMain.allSchemas.tableColumns,...InventorychangeRequestDetail.allSchemas.tableMainColumns]) - const { tableObject, tableMethods } = useTable({ getListApi: InventorychangeRequestDetailApi.getInventorychangeRequestDetailPage // 分页接口 }) diff --git a/src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/inventorychangeRequestMain.data.ts b/src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/inventorychangeRequestMain.data.ts index d9bb40b13..b29734a9b 100644 --- a/src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/inventorychangeRequestMain.data.ts +++ b/src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/inventorychangeRequestMain.data.ts @@ -4,7 +4,7 @@ import * as getRequestsettingApi from '@/api/wms/requestsetting/index' import * as BalanceApi from '@/api/wms/balance' import { Balance } from '@/views/wms/inventoryManage/balance/balance.data' - +import * as getBusinessTypeApi from '@/api/wms/businesstype/index' import * as OwnerApi from '@/api/wms/owner' import { Owner } from '@/views/wms/basicDataManage/orderManage/owner/owner.data' @@ -15,10 +15,16 @@ const queryParams = { pageSize:10, pageNo:1, code:'InventoryChangeRequest' +} +const businessTypeQueryParams = { + pageSize:10, + pageNo:1, + code:'Change' } const data = await getRequestsettingApi.getRequestsettingPage(queryParams) const requestsettingData =data?.list[0]||{} - + const businessTypeValue = await getBusinessTypeApi.getBusinesstypePage(businessTypeQueryParams) + const businessTypeData =businessTypeValue?.list[0]||{} // 获取当前操作人的部门 import { useUserStore } from '@/store/modules/user' import { TableColumn } from '@/types/table' @@ -374,7 +380,11 @@ export const InventorychangeRequestDetail = useCrudSchemas(reactive