|
|
@ -2,7 +2,6 @@ import type { CrudSchema } from '@/hooks/web/useCrudSchemas' |
|
|
|
import { dateFormatter } from '@/utils/formatTime' |
|
|
|
import * as getRequestsettingApi from '@/api/wms/requestsetting/index' |
|
|
|
|
|
|
|
import * as ItembasicApi from '@/api/wms/itembasic' |
|
|
|
import { Itembasic } from '@/views/wms/basicDataManage/itemManage/itembasic/itembasic.data' |
|
|
|
|
|
|
|
import {Warehouse} from "@/views/wms/basicDataManage/factoryModeling/warehouse/warehouse.data"; |
|
|
@ -18,8 +17,6 @@ import * as ItempackageApi from '@/api/wms/itempackage' |
|
|
|
import { Itempackaging } from '@/views/wms/basicDataManage/itemManage/itempackage/itempackage.data' |
|
|
|
|
|
|
|
import * as ProductionitemcodeSpareitemcodeApi from '@/api/wms/productionitemcodeSpareitemcode' |
|
|
|
import { ProductionitemcodeSpareitemcode } from '@/views/wms/basicDataManage/itemManage/productionitemcodeSpareitemcode/productionitemcodeSpareitemcode.data' |
|
|
|
import * as confgiApi from '@/api/infra/config' |
|
|
|
// 获取自动提交自动通过自动执行,跳过任务直接删生成记录的默认值
|
|
|
|
const queryParams = { |
|
|
|
pageSize:10, |
|
|
@ -28,7 +25,6 @@ const queryParams = { |
|
|
|
} |
|
|
|
const data = await getRequestsettingApi.getRequestsettingPage(queryParams) |
|
|
|
const requestsettingData =data?.list[0]||{} |
|
|
|
const confgiData = await confgiApi.queryByKey("relegateItemType") |
|
|
|
// 表单校验
|
|
|
|
export const RelegateRequestMainRules = reactive({ |
|
|
|
fromWarehouseCode: [required], |
|
|
@ -343,7 +339,7 @@ export const RelegateRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
// value: 'TRUE',
|
|
|
|
// isMainValue: false
|
|
|
|
// }
|
|
|
|
,{ |
|
|
|
{ |
|
|
|
message: '请选择从仓库代码!', |
|
|
|
key: 'fromWarehouseCode', |
|
|
|
value: 'fromWarehouseCode', |
|
|
@ -355,24 +351,24 @@ export const RelegateRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '降级物料代码', |
|
|
|
label: '物料变更代码', |
|
|
|
field: 'downItemCode', |
|
|
|
sort: 'custom', |
|
|
|
form: { |
|
|
|
componentProps: { |
|
|
|
enterSearch: true, |
|
|
|
isSearchList: true, |
|
|
|
searchListPlaceholder: '请选择降级物料代码', |
|
|
|
searchListPlaceholder: '请选择物料代码', |
|
|
|
searchField: 'productionItemCode', |
|
|
|
searchTitle: '物料基础信息', |
|
|
|
searchAllSchemas: ProductionitemcodeSpareitemcode.allSchemas, |
|
|
|
searchAllSchemas: Itembasic.allSchemas, |
|
|
|
searchPage: ProductionitemcodeSpareitemcodeApi.getProductionitemcodeSpareitemcodeRelation, |
|
|
|
searchCondition: [{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
},{ |
|
|
|
key: 'itemCode', |
|
|
|
key: 'code', |
|
|
|
value: 'itemCode', |
|
|
|
isTableRowValue: true, |
|
|
|
isMainValue:false |
|
|
@ -389,10 +385,10 @@ export const RelegateRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
}, |
|
|
|
tableForm:{ |
|
|
|
isInpuFocusShow: true, |
|
|
|
searchListPlaceholder: '请选择降级物料代码', // 输入框占位文本
|
|
|
|
searchListPlaceholder: '请选择物料代码', // 输入框占位文本
|
|
|
|
searchField: 'productionItemCode', // 查询弹窗赋值字段
|
|
|
|
searchTitle: '物料基础信息', // 查询弹窗标题
|
|
|
|
searchAllSchemas: ProductionitemcodeSpareitemcode.allSchemas, // 查询弹窗所需类
|
|
|
|
searchAllSchemas: Itembasic.allSchemas, // 查询弹窗所需类
|
|
|
|
searchPage: ProductionitemcodeSpareitemcodeApi.getProductionitemcodeSpareitemcodeRelation, // 查询弹窗所需分页方法
|
|
|
|
searchCondition:[ |
|
|
|
{ |
|
|
@ -400,7 +396,7 @@ export const RelegateRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
},{ |
|
|
|
key: 'itemCode', |
|
|
|
key: 'code', |
|
|
|
value: 'itemCode', |
|
|
|
isTableRowValue: true, |
|
|
|
isMainValue:false |
|
|
|