|
@ -2,8 +2,8 @@ import type { CrudSchema } from '@/hooks/web/useCrudSchemas' |
|
|
import { dateFormatter } from '@/utils/formatTime' |
|
|
import { dateFormatter } from '@/utils/formatTime' |
|
|
import * as SupplierApi from '@/api/wms/supplier' |
|
|
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 ItembasicApi from '@/api/wms/itembasic' |
|
|
import * as SupplieritemApi from '@/api/wms/supplieritem' |
|
|
import { Itembasic } from '@/views/wms/basicDataManage/itemManage/itembasic/itembasic.data' |
|
|
import { Supplieritem } from '@/views/wms/basicDataManage/supplierManage/supplieritem/supplieritem.data' |
|
|
import * as PurchaseMainApi from '@/api/wms/purchaseMain' |
|
|
import * as PurchaseMainApi from '@/api/wms/purchaseMain' |
|
|
import * as PurchaseDetailApi from '@/api/wms/purchaseDetail' |
|
|
import * as PurchaseDetailApi from '@/api/wms/purchaseDetail' |
|
|
import { PurchaseDetail, PurchaseMain } from '../purchaseMain/purchaseMain.data' |
|
|
import { PurchaseDetail, PurchaseMain } from '../purchaseMain/purchaseMain.data' |
|
@ -33,7 +33,7 @@ export const PurchasePlanMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
}, |
|
|
}, |
|
|
isSearch: true, |
|
|
isSearch: true, |
|
|
form: { |
|
|
form: { |
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
labelMessage: '影响明细中物品代码,需在供应商物品中维护', |
|
|
componentProps: { |
|
|
componentProps: { |
|
|
isSearchList: true, // 开启查询弹窗
|
|
|
isSearchList: true, // 开启查询弹窗
|
|
|
searchListPlaceholder: '请选择供应商代码', // 输入框占位文本
|
|
|
searchListPlaceholder: '请选择供应商代码', // 输入框占位文本
|
|
@ -78,6 +78,7 @@ export const PurchasePlanMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
|
|
|
isForm: false, |
|
|
form: { |
|
|
form: { |
|
|
value: 'PurchaseReceipt', |
|
|
value: 'PurchaseReceipt', |
|
|
componentProps: { |
|
|
componentProps: { |
|
@ -314,7 +315,12 @@ export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
searchField: 'lineNumber', |
|
|
searchField: 'lineNumber', |
|
|
searchTitle: '采购订单信息', |
|
|
searchTitle: '采购订单信息', |
|
|
searchAllSchemas: PurchaseDetail.allSchemas, |
|
|
searchAllSchemas: PurchaseDetail.allSchemas, |
|
|
searchPage: PurchaseDetailApi.getPurchaseDetailPage |
|
|
searchPage: PurchaseDetailApi.getPurchaseDetailPage, |
|
|
|
|
|
searchCondition: [{ |
|
|
|
|
|
key:'number', |
|
|
|
|
|
value:'poNumber', |
|
|
|
|
|
isMainValue: true |
|
|
|
|
|
}] |
|
|
}, |
|
|
}, |
|
|
form: { |
|
|
form: { |
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
@ -324,7 +330,12 @@ export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
searchField: 'lineNumber', |
|
|
searchField: 'lineNumber', |
|
|
searchTitle: '采购订单信息', |
|
|
searchTitle: '采购订单信息', |
|
|
searchAllSchemas: PurchaseDetail.allSchemas, |
|
|
searchAllSchemas: PurchaseDetail.allSchemas, |
|
|
searchPage: PurchaseDetailApi.getPurchaseDetailPage |
|
|
searchPage: PurchaseDetailApi.getPurchaseDetailPage, |
|
|
|
|
|
searchCondition: [{ |
|
|
|
|
|
key:'lineNumber', |
|
|
|
|
|
value:'poNumber', |
|
|
|
|
|
isMainValue: true |
|
|
|
|
|
}] |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
@ -353,20 +364,30 @@ export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
componentProps: { |
|
|
componentProps: { |
|
|
isSearchList: true, |
|
|
isSearchList: true, |
|
|
searchListPlaceholder: '请选择物品代码', |
|
|
searchListPlaceholder: '请选择供应商物品', |
|
|
searchField: 'code', |
|
|
searchField: 'code', |
|
|
searchTitle: '物品基础信息', |
|
|
searchTitle: '供应商物品信息', |
|
|
searchAllSchemas: Itembasic.allSchemas, |
|
|
searchAllSchemas: Supplieritem.allSchemas, |
|
|
searchPage: ItembasicApi.getItembasicPage |
|
|
searchPage: SupplieritemApi.getSupplieritemPage, |
|
|
|
|
|
searchCondition: [{ |
|
|
|
|
|
key:'supplierCode', |
|
|
|
|
|
value:'supplierCode', |
|
|
|
|
|
isMainValue: true |
|
|
|
|
|
}] |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
tableForm: { |
|
|
tableForm: { |
|
|
isInpuFocusShow: true, |
|
|
isInpuFocusShow: true, |
|
|
searchListPlaceholder: '请选择物品代码', |
|
|
searchListPlaceholder: '请选择供应商物品', |
|
|
searchField: 'code', |
|
|
searchField: 'code', |
|
|
searchTitle: '物品基础信息', |
|
|
searchTitle: '供应商物品信息', |
|
|
searchAllSchemas: Itembasic.allSchemas, |
|
|
searchAllSchemas: Supplieritem.allSchemas, |
|
|
searchPage: ItembasicApi.getItembasicPage |
|
|
searchPage: SupplieritemApi.getSupplieritemPage, |
|
|
|
|
|
searchCondition: [{ |
|
|
|
|
|
key:'supplierCode', |
|
|
|
|
|
value:'supplierCode', |
|
|
|
|
|
isMainValue: true |
|
|
|
|
|
}] |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
@ -409,13 +430,6 @@ export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
tableForm: { |
|
|
|
|
|
component: 'InputNumber', |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
min: 1, |
|
|
|
|
|
precision: 6 |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
isTableForm: false, |
|
|
isTableForm: false, |
|
|
isForm: false |
|
|
isForm: false |
|
|
}, |
|
|
}, |
|
@ -427,11 +441,9 @@ export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
tableForm: { |
|
|
tableForm: { |
|
|
component: 'InputNumber', |
|
|
type: 'InputNumber', |
|
|
componentProps: { |
|
|
min: 1, |
|
|
min: 1, |
|
|
precision: 6 |
|
|
precision: 6 |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|