|
|
@ -3,7 +3,14 @@ import { dateFormatter } from '@/utils/formatTime' |
|
|
|
|
|
|
|
import * as BalanceApi from '@/api/wms/balance' |
|
|
|
import { Balance } from '@/views/wms/inventoryManage/balance/balance.data' |
|
|
|
|
|
|
|
import * as getBusinessTypeApi from '@/api/wms/businesstype/index' |
|
|
|
const businessTypeQueryParams = { |
|
|
|
pageSize:10, |
|
|
|
pageNo:1, |
|
|
|
code:'Productredress' |
|
|
|
} |
|
|
|
const businessTypeValue = await getBusinessTypeApi.getBusinesstypePage(businessTypeQueryParams) |
|
|
|
const businessTypeData =businessTypeValue?.list[0]||{} |
|
|
|
// 表单校验
|
|
|
|
export const ProductredressRequestMainRules = reactive({ |
|
|
|
autoCommit: [required], |
|
|
@ -316,13 +323,14 @@ export const ProductredressRequestDetail = useCrudSchemas(reactive<CrudSchema[]> |
|
|
|
searchField: 'itemCode', // 查询弹窗赋值字段
|
|
|
|
searchTitle: '库存余额信息', // 查询弹窗标题
|
|
|
|
searchAllSchemas: Balance.allSchemas, // 查询弹窗所需类
|
|
|
|
searchPage: BalanceApi.getBalancePage, // 查询弹窗所需分页方法
|
|
|
|
searchCondition:[ |
|
|
|
{ |
|
|
|
key: 'inventoryStatus', |
|
|
|
value: 'OK', |
|
|
|
isMainValue: false |
|
|
|
},{ |
|
|
|
searchPage: BalanceApi.getBalancePageByBusinessType, // 查询弹窗所需分页方法
|
|
|
|
searchCondition: [{ |
|
|
|
key: 'businessType', |
|
|
|
value: businessTypeData.code, |
|
|
|
action: '==', // 查询拼接条件
|
|
|
|
isSearch: true, // 使用自定义拼接条件
|
|
|
|
isMainValue: false // 拼接条件必须要 false 同时不能与 isMainValue: true 同用
|
|
|
|
},{ |
|
|
|
key: 'packingNumber', // 查询列表中字段
|
|
|
|
value: '', // 指查询具体值
|
|
|
|
action: 'isNotStr', // 查询拼接条件
|
|
|
@ -338,12 +346,13 @@ export const ProductredressRequestDetail = useCrudSchemas(reactive<CrudSchema[]> |
|
|
|
searchField: 'itemCode', // 查询弹窗赋值字段
|
|
|
|
searchTitle: '库存余额信息', // 查询弹窗标题
|
|
|
|
searchAllSchemas: Balance.allSchemas, // 查询弹窗所需类
|
|
|
|
searchPage: BalanceApi.getBalancePage, // 查询弹窗所需分页方法
|
|
|
|
searchCondition:[ |
|
|
|
{ |
|
|
|
key: 'inventoryStatus', |
|
|
|
value: 'OK', |
|
|
|
isMainValue: false |
|
|
|
searchPage: BalanceApi.getBalancePageByBusinessType, // 查询弹窗所需分页方法
|
|
|
|
searchCondition: [{ |
|
|
|
key: 'businessType', |
|
|
|
value: businessTypeData.code, |
|
|
|
action: '==', // 查询拼接条件
|
|
|
|
isSearch: true, // 使用自定义拼接条件
|
|
|
|
isMainValue: false // 拼接条件必须要 false 同时不能与 isMainValue: true 同用
|
|
|
|
},{ |
|
|
|
key: 'packingNumber', // 查询列表中字段
|
|
|
|
value: '', // 指查询具体值
|
|
|
|