|
@ -4,6 +4,9 @@ import * as SupplierApi from '@/api/wms/supplier' |
|
|
import { Supplier } from '@/views/wms/basicDataManage/supplierManage/supplier/supplier.data' |
|
|
import { Supplier } from '@/views/wms/basicDataManage/supplierManage/supplier/supplier.data' |
|
|
import * as SupplieritemApi from '@/api/wms/supplieritem' |
|
|
import * as SupplieritemApi from '@/api/wms/supplieritem' |
|
|
import { Supplieritem } from '@/views/wms/basicDataManage/supplierManage/supplieritem/supplieritem.data' |
|
|
import { Supplieritem } from '@/views/wms/basicDataManage/supplierManage/supplieritem/supplieritem.data' |
|
|
|
|
|
import * as PurchaseMainApi from '@/api/wms/purchaseMain' |
|
|
|
|
|
import * as PurchaseDetailApi from '@/api/wms/purchaseDetail' |
|
|
|
|
|
import { PurchaseDetail, PurchaseMain } from '../purchaseMain/purchaseMain.data' |
|
|
const { t } = useI18n() // 国际化
|
|
|
const { t } = useI18n() // 国际化
|
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
@ -57,7 +60,7 @@ export const DemandforecastingMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
form: { |
|
|
form: { |
|
|
component: 'DatePicker', |
|
|
component: 'DatePicker', |
|
|
componentProps: { |
|
|
componentProps: { |
|
|
style: {width:'100%'}, |
|
|
style: { width: '100%' }, |
|
|
type: 'datetime', |
|
|
type: 'datetime', |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
valueFormat: 'x', |
|
|
valueFormat: 'x', |
|
@ -80,7 +83,7 @@ export const DemandforecastingMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
form: { |
|
|
form: { |
|
|
component: 'DatePicker', |
|
|
component: 'DatePicker', |
|
|
componentProps: { |
|
|
componentProps: { |
|
|
style: {width:'100%'}, |
|
|
style: { width: '100%' }, |
|
|
type: 'datetime', |
|
|
type: 'datetime', |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
valueFormat: 'x', |
|
|
valueFormat: 'x', |
|
@ -103,7 +106,7 @@ export const DemandforecastingMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
form: { |
|
|
form: { |
|
|
component: 'DatePicker', |
|
|
component: 'DatePicker', |
|
|
componentProps: { |
|
|
componentProps: { |
|
|
style: {width:'100%'}, |
|
|
style: { width: '100%' }, |
|
|
type: 'datetime', |
|
|
type: 'datetime', |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
valueFormat: 'x', |
|
|
valueFormat: 'x', |
|
@ -132,7 +135,7 @@ export const DemandforecastingMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
isForm: false, |
|
|
isForm: false, |
|
|
form: { |
|
|
form: { |
|
|
value: 'PurchasePrediction', |
|
|
value: 'PurchasePrediction', |
|
|
componentProps:{ |
|
|
componentProps: { |
|
|
disabled: true |
|
|
disabled: true |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
@ -179,7 +182,7 @@ export const DemandforecastingMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
form: { |
|
|
form: { |
|
|
component: 'DatePicker', |
|
|
component: 'DatePicker', |
|
|
componentProps: { |
|
|
componentProps: { |
|
|
style: {width:'100%'}, |
|
|
style: { width: '100%' }, |
|
|
type: 'datetime', |
|
|
type: 'datetime', |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
valueFormat: 'x', |
|
|
valueFormat: 'x', |
|
@ -270,7 +273,7 @@ export const DemandforecastingDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
form: { |
|
|
form: { |
|
|
component: 'DatePicker', |
|
|
component: 'DatePicker', |
|
|
componentProps: { |
|
|
componentProps: { |
|
|
style: {width:'100%'}, |
|
|
style: { width: '100%' }, |
|
|
type: 'datetime', |
|
|
type: 'datetime', |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
valueFormat: 'x', |
|
|
valueFormat: 'x', |
|
@ -283,76 +286,142 @@ export const DemandforecastingDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '单据号', |
|
|
label: '订单号', |
|
|
field: 'number', |
|
|
field: 'poNumber', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
isTableForm: false, |
|
|
tableForm: { |
|
|
|
|
|
isInpuFocusShow: true, |
|
|
|
|
|
searchListPlaceholder: '请选择订单号', |
|
|
|
|
|
searchField: 'number', |
|
|
|
|
|
searchTitle: '采购订单信息', |
|
|
|
|
|
searchAllSchemas: PurchaseMain.allSchemas, |
|
|
|
|
|
searchPage: PurchaseMainApi.getPurchaseMainPage, |
|
|
|
|
|
searchCondition: [{ |
|
|
|
|
|
key: 'available', |
|
|
|
|
|
value: 'TRUE', |
|
|
|
|
|
isMainValue: false |
|
|
|
|
|
}, { |
|
|
|
|
|
key: 'supplierCode', |
|
|
|
|
|
value: 'supplierCode', |
|
|
|
|
|
isMainValue: true |
|
|
|
|
|
} |
|
|
|
|
|
, { |
|
|
|
|
|
key: 'status', |
|
|
|
|
|
value: 2, |
|
|
|
|
|
isMainValue: false |
|
|
|
|
|
} |
|
|
|
|
|
] |
|
|
|
|
|
}, |
|
|
form: { |
|
|
form: { |
|
|
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
componentProps: { |
|
|
componentProps: { |
|
|
disbaled: true |
|
|
isSearchList: true, |
|
|
|
|
|
searchListPlaceholder: '请选择订单号', |
|
|
|
|
|
searchField: 'number', |
|
|
|
|
|
searchTitle: '采购订单信息', |
|
|
|
|
|
searchAllSchemas: PurchaseMain.allSchemas, |
|
|
|
|
|
searchPage: PurchaseMainApi.getPurchaseMainPage, |
|
|
|
|
|
searchCondition: [{ |
|
|
|
|
|
key: 'available', |
|
|
|
|
|
value: 'TRUE', |
|
|
|
|
|
isMainValue: false |
|
|
|
|
|
}] |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '物品代码', |
|
|
label: '订单行', |
|
|
field: 'itemCode', |
|
|
field: 'poLine', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
tableForm:{ |
|
|
form: { |
|
|
isInpuFocusShow: true, |
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
searchListPlaceholder: '请选择供应商物品', |
|
|
componentProps: { |
|
|
searchField: 'itemCode', |
|
|
isSearchList: true, |
|
|
searchTitle: '供应商物品信息', |
|
|
searchListPlaceholder: '请选择订单行', |
|
|
searchAllSchemas: Supplieritem.allSchemas, |
|
|
searchField: 'lineNumber', |
|
|
searchPage: SupplieritemApi.getSupplieritemPage, |
|
|
searchTitle: '采购订单信息', |
|
|
|
|
|
searchAllSchemas: PurchaseDetail.allSchemas, |
|
|
|
|
|
searchPage: PurchaseDetailApi.getPurchaseDetailPage, |
|
|
searchCondition: [{ |
|
|
searchCondition: [{ |
|
|
key:'supplierCode', |
|
|
key: 'number', |
|
|
value:'supplierCode', |
|
|
value: 'poNumber', |
|
|
isMainValue: true |
|
|
isMainValue: true |
|
|
},{ |
|
|
}, { |
|
|
key: 'available', |
|
|
key: 'available', |
|
|
value: 'TRUE', |
|
|
value: 'TRUE', |
|
|
isMainValue: false |
|
|
isMainValue: false |
|
|
}//, //条件,例:isMainValue: true,表示查询条件是主表的字段的值 itemCode:查询列表中字段 supplierCode:指主表某字段
|
|
|
}] |
|
|
// {
|
|
|
} |
|
|
// key:'available',
|
|
|
|
|
|
// value:'TRUE',
|
|
|
|
|
|
// isMainValue: false
|
|
|
|
|
|
// }
|
|
|
|
|
|
] // 条件,例:isMainValue: false,表示查询条件不是主表的字段的值 available:查询列表中字段 TRUE:指查询具体值
|
|
|
|
|
|
}, |
|
|
}, |
|
|
form: { |
|
|
tableForm: { |
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
isInpuFocusShow: true, |
|
|
componentProps: { |
|
|
searchListPlaceholder: '请选择订单行', |
|
|
isSearchList: true, |
|
|
searchField: 'lineNumber', |
|
|
searchListPlaceholder: '请选择供应商物品', |
|
|
searchTitle: '采购订单信息', |
|
|
searchField: 'itemCode', |
|
|
searchAllSchemas: PurchaseDetail.allSchemas, |
|
|
searchTitle: '供应商物品信息', |
|
|
searchPage: PurchaseDetailApi.getPurchaseDetailPage, |
|
|
searchAllSchemas: Supplieritem.allSchemas, |
|
|
|
|
|
searchPage: SupplieritemApi.getSupplieritemPage, |
|
|
|
|
|
searchCondition: [{ |
|
|
searchCondition: [{ |
|
|
key:'supplierCode', |
|
|
key: 'number', |
|
|
value:'supplierCode', |
|
|
value: 'poNumber', |
|
|
isMainValue: true |
|
|
isMainValue: true |
|
|
},{ |
|
|
}, { |
|
|
key: 'available', |
|
|
key: 'available', |
|
|
value: 'TRUE', |
|
|
value: 'TRUE', |
|
|
isMainValue: false |
|
|
isMainValue: false |
|
|
}//, //条件,例:isMainValue: true,表示查询条件是主表的字段的值 itemCode:查询列表中字段 supplierCode:指主表某字段
|
|
|
}] |
|
|
// {
|
|
|
} |
|
|
// key:'available',
|
|
|
}, |
|
|
// value:'TRUE',
|
|
|
{ |
|
|
// isMainValue: false
|
|
|
label: '单据号', |
|
|
// }
|
|
|
field: 'number', |
|
|
] // 条件,例:isMainValue: false,表示查询条件不是主表的字段的值 available:查询列表中字段 TRUE:指查询具体值
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
isTableForm: false, |
|
|
|
|
|
form: { |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
disbaled: true |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '物品代码', |
|
|
|
|
|
field: 'itemCode', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
form: { |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
disabled: true |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
tableForm: { |
|
|
|
|
|
disabled: true |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '计量单位', |
|
|
|
|
|
field: 'uom', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
dictType: DICT_TYPE.UOM, |
|
|
|
|
|
dictClass: 'string', |
|
|
|
|
|
isSearch: true, |
|
|
|
|
|
isTable: true, |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
tableForm: { |
|
|
|
|
|
type: 'Select' |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '备注', |
|
|
label: '备注', |
|
|
field: 'remark', |
|
|
field: 'remark', |
|
@ -375,7 +444,7 @@ export const DemandforecastingDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
form: { |
|
|
form: { |
|
|
component: 'DatePicker', |
|
|
component: 'DatePicker', |
|
|
componentProps: { |
|
|
componentProps: { |
|
|
style: {width:'100%'}, |
|
|
style: { width: '100%' }, |
|
|
type: 'datetime', |
|
|
type: 'datetime', |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
valueFormat: 'x', |
|
|
valueFormat: 'x', |
|
@ -414,20 +483,7 @@ export const DemandforecastingDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
precision: 6 |
|
|
precision: 6 |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
|
|
|
label: '计量单位', |
|
|
|
|
|
field: 'uom', |
|
|
|
|
|
dictType: DICT_TYPE.UOM, |
|
|
|
|
|
dictClass: 'string', |
|
|
|
|
|
isTable: true, |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
tableForm: { |
|
|
|
|
|
type: 'Select' |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
{ |
|
|
label: '最后更新时间', |
|
|
label: '最后更新时间', |
|
|
field: 'updateTime', |
|
|
field: 'updateTime', |
|
@ -442,7 +498,7 @@ export const DemandforecastingDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
form: { |
|
|
form: { |
|
|
component: 'DatePicker', |
|
|
component: 'DatePicker', |
|
|
componentProps: { |
|
|
componentProps: { |
|
|
style: {width:'100%'}, |
|
|
style: { width: '100%' }, |
|
|
type: 'datetime', |
|
|
type: 'datetime', |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
valueFormat: 'x', |
|
|
valueFormat: 'x', |
|
@ -465,12 +521,12 @@ export const DemandforecastingDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
label: '操作', |
|
|
label: '操作', |
|
|
field: 'action', |
|
|
field: 'action', |
|
|
isDetail: false, |
|
|
isDetail: false, |
|
|
isForm: false , |
|
|
isForm: false, |
|
|
table: { |
|
|
table: { |
|
|
width: 150, |
|
|
width: 150, |
|
|
fixed: 'right' |
|
|
fixed: 'right' |
|
|
}, |
|
|
}, |
|
|
isTableForm:false, |
|
|
isTableForm: false, |
|
|
} |
|
|
} |
|
|
])) |
|
|
])) |
|
|
|
|
|
|
|
|