|
|
@ -2,37 +2,32 @@ import type { CrudSchema } from '@/hooks/web/useCrudSchemas' |
|
|
|
import { dateFormatter } from '@/utils/formatTime' |
|
|
|
import dayjs from 'dayjs' |
|
|
|
import * as DemandforecastingDetailApi from '@/api/wms/demandforecastingDetail' |
|
|
|
import * as CustomerDeliveryForecastApi from '@/api/wms/customerDeliveryForecast' |
|
|
|
import * as SupplieritemApi from '@/api/wms/supplieritem' |
|
|
|
import { Supplieritem } from '@/views/wms/basicDataManage/supplierManage/supplieritem/supplieritem.data' |
|
|
|
Supplieritem.allSchemas.searchSchema = Supplieritem.allSchemas.searchSchema.filter(item=>item.field!="allowOverShipment") |
|
|
|
|
|
|
|
export const Version = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
{ |
|
|
|
label: '供应商代码', |
|
|
|
field: 'supplierCodes', |
|
|
|
sort: 'custom', |
|
|
|
isSearch:true, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '订单号', |
|
|
|
field: 'poNumber', |
|
|
|
field: 'schdOrder', |
|
|
|
sort: 'custom', |
|
|
|
isSearch:true, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '订单行', |
|
|
|
field: 'poLine', |
|
|
|
field: 'schdLine', |
|
|
|
sort: 'custom', |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '物料代码', |
|
|
|
field: 'itemCode', |
|
|
|
field: 'schdPart', |
|
|
|
isSearch:true, |
|
|
|
sort: 'custom', |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '子表版本', |
|
|
|
field: 'detailVersion', |
|
|
|
label: '版本', |
|
|
|
field: 'version', |
|
|
|
sort: 'custom', |
|
|
|
} |
|
|
|
])) |
|
|
@ -45,6 +40,8 @@ export const CustomerDeliveryForecast = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
label: '地点代码', |
|
|
|
field: 'schdSite', |
|
|
|
sort: 'custom', |
|
|
|
isTable:false, |
|
|
|
isForm: false, |
|
|
|
isSearch: true |
|
|
|
}, |
|
|
|
{ |
|
|
@ -63,17 +60,23 @@ export const CustomerDeliveryForecast = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
label: '客户代码', |
|
|
|
field: 'schdCust', |
|
|
|
sort: 'custom', |
|
|
|
isTable:false, |
|
|
|
isForm: false, |
|
|
|
isSearch: true |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '发货至', |
|
|
|
field: 'schdShipto', |
|
|
|
sort: 'custom', |
|
|
|
isTable:false, |
|
|
|
isForm: false, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '码头', |
|
|
|
field: 'schdDock', |
|
|
|
sort: 'custom', |
|
|
|
isTable:false, |
|
|
|
isForm: false, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '物料编码', |
|
|
@ -120,13 +123,13 @@ export const CustomerDeliveryForecast = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
enterSearch: true, |
|
|
|
isSearchList: true, // 开启查询弹窗
|
|
|
|
searchListPlaceholder: '请选择版本号', // 输入框占位文本
|
|
|
|
searchField: 'detailVersion', // 查询弹窗赋值字段
|
|
|
|
searchField: 'version', // 查询弹窗赋值字段
|
|
|
|
searchTitle: '版本号', // 查询弹窗标题
|
|
|
|
searchAllSchemas: Version.allSchemas, // 查询弹窗所需类
|
|
|
|
searchPage: DemandforecastingDetailApi.queryVersion, // 查询弹窗所需分页方法
|
|
|
|
searchPage: CustomerDeliveryForecastApi.queryVersion, // 查询弹窗所需分页方法
|
|
|
|
searchCondition: [{ |
|
|
|
key: 'itemCodes', |
|
|
|
value: 'itemCode', |
|
|
|
value: 'schdPart', |
|
|
|
message: '请填写物料代码!', |
|
|
|
isMainValue: true, |
|
|
|
isCSV:true,//是否用逗号分隔参数
|
|
|
@ -142,11 +145,15 @@ export const CustomerDeliveryForecast = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
label: '净需求', |
|
|
|
field: 'schdNetReq', |
|
|
|
sort: 'custom', |
|
|
|
isTable:false, |
|
|
|
isForm: false, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '需求日期', |
|
|
|
field: 'schdDate', |
|
|
|
sort: 'custom', |
|
|
|
isTable:false, |
|
|
|
isForm: false, |
|
|
|
formatter: dateFormatter, |
|
|
|
form: { |
|
|
|
component: 'DatePicker', |
|
|
@ -171,6 +178,8 @@ export const CustomerDeliveryForecast = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
field: 'schdTime', |
|
|
|
sort: 'custom', |
|
|
|
formatter: dateFormatter, |
|
|
|
isTable:false, |
|
|
|
isForm: false, |
|
|
|
form: { |
|
|
|
component: 'DatePicker', |
|
|
|
componentProps: { |
|
|
@ -183,46 +192,61 @@ export const CustomerDeliveryForecast = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
label: '需求参考', |
|
|
|
field: 'schdReference', |
|
|
|
sort: 'custom', |
|
|
|
isTable:false, |
|
|
|
isForm: false, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '包装倍数', |
|
|
|
field: 'schdOrdMult', |
|
|
|
sort: 'custom', |
|
|
|
isTable:false, |
|
|
|
isForm: false, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '客户零件号', |
|
|
|
field: 'schdCustpart', |
|
|
|
sort: 'custom', |
|
|
|
isTable:false, |
|
|
|
isForm: false, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '包装代码', |
|
|
|
field: 'schdPkgCode', |
|
|
|
sort: 'custom', |
|
|
|
isTable:false, |
|
|
|
isForm: false, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '模型年', |
|
|
|
field: 'schdModelyr', |
|
|
|
sort: 'custom', |
|
|
|
isTable:false, |
|
|
|
isForm: false, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '客户参考', |
|
|
|
field: 'schdCustref', |
|
|
|
sort: 'custom', |
|
|
|
isTable:false, |
|
|
|
isForm: false, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '先前累计需求数量', |
|
|
|
field: 'schdPcrQty', |
|
|
|
sort: 'custom', |
|
|
|
isTable:false, |
|
|
|
isForm: false, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '创建时间', |
|
|
|
field: 'createTime', |
|
|
|
sort: 'custom', |
|
|
|
isTable:false, |
|
|
|
isForm: false, |
|
|
|
formatter: dateFormatter, |
|
|
|
table: { |
|
|
|
width: 180, |
|
|
|
}, |
|
|
|
isForm: false, |
|
|
|
form: { |
|
|
|
component: 'DatePicker', |
|
|
|
componentProps: { |
|
|
@ -245,6 +269,8 @@ export const CustomerDeliveryForecast = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
label: '是否可用', |
|
|
|
field: 'available', |
|
|
|
sort: 'custom', |
|
|
|
isTable:false, |
|
|
|
isForm: false, |
|
|
|
}, |
|
|
|
// {
|
|
|
|
// label: '操作',
|
|
|
|