Browse Source

HL-6310WMS 制品上架,没有按照业务类型进行筛选库存余额

hella_chenfang
yufei_wang 4 weeks ago
parent
commit
f94f72f7b3
  1. 1
      src/views/wms/basicDataManage/subject/mstr/index.vue
  2. 10
      src/views/wms/productionManage/productputaway/productputawayRequestMain/productputawayRequestMain.data.ts
  3. 32
      src/views/wms/productionManage/productputawayAssemble/productputawayAssembleRequestMain/productputawayAssembleRequestMain.data.ts

1
src/views/wms/basicDataManage/subject/mstr/index.vue

@ -68,6 +68,7 @@ import Detail from '@/components/Detail/src/Detail.vue'
import { formatDate } from '@/utils/formatTime' import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading' import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading() const { loadStart, loadDone } = usePageLoading()
//
defineOptions({ name: 'Mstr' }) defineOptions({ name: 'Mstr' })
const message = useMessage() // const message = useMessage() //

10
src/views/wms/productionManage/productputaway/productputawayRequestMain/productputawayRequestMain.data.ts

@ -475,6 +475,11 @@ export const ProductputawayRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
searchCondition: [{ searchCondition: [{
key: 'businessType', key: 'businessType',
value: businessTypeData.code, value: businessTypeData.code,
},
{
key: 'inOrOut',
value: 'out',
isMainValue: false
}] }]
}, },
form: { form: {
@ -489,6 +494,11 @@ export const ProductputawayRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
searchCondition: [{ searchCondition: [{
key: 'businessType', key: 'businessType',
value: businessTypeData.code, value: businessTypeData.code,
},
{
key: 'inOrOut',
value: 'out',
isMainValue: false
}] }]
} }
} }

32
src/views/wms/productionManage/productputawayAssemble/productputawayAssembleRequestMain/productputawayAssembleRequestMain.data.ts

@ -4,6 +4,7 @@ import * as getRequestsettingApi from '@/api/wms/requestsetting/index'
import * as BalanceApi from '@/api/wms/balance' import * as BalanceApi from '@/api/wms/balance'
import { Balance } from '@/views/wms/inventoryManage/balance/balance.data' import { Balance } from '@/views/wms/inventoryManage/balance/balance.data'
import * as getBusinessTypeApi from '@/api/wms/businesstype/index'
import { TableColumn } from '@/types/table' import { TableColumn } from '@/types/table'
@ -18,6 +19,7 @@ const queryParams = {
const data = await getRequestsettingApi.getRequestsettingPage(queryParams) const data = await getRequestsettingApi.getRequestsettingPage(queryParams)
const requestsettingData =data?.list[0]||{} const requestsettingData =data?.list[0]||{}
// 获取当前操作人的部门 // 获取当前操作人的部门
import { useUserStore } from '@/store/modules/user' import { useUserStore } from '@/store/modules/user'
const userStore = useUserStore() const userStore = useUserStore()
@ -26,6 +28,14 @@ const userDept = userStore.userSelfInfo.dept
userDept.id = userDept.id.toString() userDept.id = userDept.id.toString()
const userDeptArray:any = [userDept] const userDeptArray:any = [userDept]
const businessTypeQueryParams = {
pageSize:10,
pageNo:1,
code:'ProductPutaway'
}
const businessTypeValue = await getBusinessTypeApi.getBusinesstypePage(businessTypeQueryParams)
const businessTypeData =businessTypeValue?.list[0]||{}
/** /**
* @returns {Array} * @returns {Array}
*/ */
@ -463,7 +473,16 @@ export const ProductputawayRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
searchField: 'itemCode', // 查询弹窗赋值字段 searchField: 'itemCode', // 查询弹窗赋值字段
searchTitle: '库存余额信息', // 查询弹窗标题 searchTitle: '库存余额信息', // 查询弹窗标题
searchAllSchemas: Balance.allSchemas, // 查询弹窗所需类 searchAllSchemas: Balance.allSchemas, // 查询弹窗所需类
searchPage: BalanceApi.getBalancePage // 查询弹窗所需分页方法 searchPage: BalanceApi.getBalancePageByBusinessTypeByItemType, // 查询弹窗所需分页方法
searchCondition: [{
key: 'businessType',
value: businessTypeData.code,
},
{
key: 'inOrOut',
value: 'out',
isMainValue: false
}]
}, },
form: { form: {
// labelMessage: '信息提示说明!!!', // labelMessage: '信息提示说明!!!',
@ -473,7 +492,16 @@ export const ProductputawayRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
searchField: 'itemCode', // 查询弹窗赋值字段 searchField: 'itemCode', // 查询弹窗赋值字段
searchTitle: '库存余额信息', // 查询弹窗标题 searchTitle: '库存余额信息', // 查询弹窗标题
searchAllSchemas: Balance.allSchemas, // 查询弹窗所需类 searchAllSchemas: Balance.allSchemas, // 查询弹窗所需类
searchPage: BalanceApi.getBalancePage // 查询弹窗所需分页方法 searchPage: BalanceApi.getBalancePageByBusinessTypeByItemType, // 查询弹窗所需分页方法
searchCondition: [{
key: 'businessType',
value: businessTypeData.code,
},
{
key: 'inOrOut',
value: 'out',
isMainValue: false
}]
} }
} }
}, },

Loading…
Cancel
Save