Browse Source

采购订单 要货计划修改

master
陈薪名 1 year ago
parent
commit
8450544f6d
  1. 16
      src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/purchaseMain.data.ts
  2. 62
      src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts

16
src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/purchaseMain.data.ts

@ -581,13 +581,7 @@ export const PurchaseDetail = useCrudSchemas(reactive<CrudSchema[]>([
key:'supplierCode',
value:'supplierCode',
isMainValue: true
}//, //条件,例:isMainValue: true,表示查询条件是主表的字段的值 itemCode:查询列表中字段 supplierCode:指主表某字段
// {
// key:'available',
// value:'TRUE',
// isMainValue: false
// }
] // 条件,例:isMainValue: false,表示查询条件不是主表的字段的值 available:查询列表中字段 TRUE:指查询具体值
}]
},
form: {
// labelMessage: '信息提示说明!!!',
@ -602,13 +596,7 @@ export const PurchaseDetail = useCrudSchemas(reactive<CrudSchema[]>([
key:'supplierCode',
value:'supplierCode',
isMainValue: true
}//, //条件,例:isMainValue: true,表示查询条件是主表的字段的值 itemCode:查询列表中字段 supplierCode:指主表某字段
// {
// key:'available',
// value:'TRUE',
// isMainValue: false
// }
] // 条件,例:isMainValue: false,表示查询条件不是主表的字段的值 available:查询列表中字段 TRUE:指查询具体值
}]
}
}
},

62
src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts

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

Loading…
Cancel
Save