Browse Source

要货计划订单号前端展示

master_hella_20240701
chenfang 8 months ago
parent
commit
3eb3812b3b
  1. 146
      src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts

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

@ -55,7 +55,31 @@ export const PurchasePlanMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
isForm: false, form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
isSearchList: true,
searchListPlaceholder: '请选择订单号',
searchField: 'number',
searchTitle: '采购订单信息',
searchAllSchemas: PurchaseMain.allSchemas,
searchPage: PurchaseMainApi.getPurchaseMainPage,
searchCondition: [{
key: 'available',
value: 'TRUE',
isMainValue: false
},{
key: 'supplierCode',
value: 'supplierCode',
message: '请填写供应商代码!',
isMainValue: true
},{
key: 'status',
value: 2,
isMainValue: false
}]
}
}
}, },
{ {
label: '送达日期', label: '送达日期',
@ -315,6 +339,9 @@ export const PurchasePlanMainRules = reactive({
available: [ available: [
{ required: true, message: '请选择是否可用', trigger: 'change' } { required: true, message: '请选择是否可用', trigger: 'change' }
], ],
poNumber: [
{ required: true, message: '请选择采购订单号', trigger: 'change' }
],
deliveryDate: [ deliveryDate: [
{ required: true, message: '请选择送达时间', trigger: 'change' } { required: true, message: '请选择送达时间', trigger: 'change' }
], ],
@ -350,62 +377,62 @@ export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
{ // {
label: '订单号', // label: '订单号',
field: 'poNumber', // field: 'poNumber',
sort: 'custom', // sort: 'custom',
table: { // table: {
width: 180 // width: 180
}, // },
tableForm: { // tableForm: {
isInpuFocusShow: true, // isInpuFocusShow: true,
searchListPlaceholder: '请选择订单号', // searchListPlaceholder: '请选择订单号',
searchField: 'number', // searchField: 'number',
searchTitle: '采购订单信息', // searchTitle: '采购订单信息',
searchAllSchemas: PurchaseMain.allSchemas, // searchAllSchemas: PurchaseMain.allSchemas,
searchPage: PurchaseMainApi.getPurchaseMainPage, // searchPage: PurchaseMainApi.getPurchaseMainPage,
searchCondition: [{ // searchCondition: [{
key: 'available', // key: 'available',
value: 'TRUE', // value: 'TRUE',
isMainValue: false // isMainValue: false
}, { // }, {
key: 'supplierCode', // key: 'supplierCode',
value: 'supplierCode', // value: 'supplierCode',
message: '请填写供应商代码!', // message: '请填写供应商代码!',
isMainValue: true // isMainValue: true
}, { // }, {
key: 'status', // key: 'status',
value: 2, // value: 2,
isMainValue: false // isMainValue: false
} // }
] // ]
}, // },
form: { // form: {
// labelMessage: '信息提示说明!!!', // // labelMessage: '信息提示说明!!!',
componentProps: { // componentProps: {
isSearchList: true, // isSearchList: true,
searchListPlaceholder: '请选择订单号', // searchListPlaceholder: '请选择订单号',
searchField: 'number', // searchField: 'number',
searchTitle: '采购订单信息', // searchTitle: '采购订单信息',
searchAllSchemas: PurchaseMain.allSchemas, // searchAllSchemas: PurchaseMain.allSchemas,
searchPage: PurchaseMainApi.getPurchaseMainPage, // searchPage: PurchaseMainApi.getPurchaseMainPage,
searchCondition: [{ // searchCondition: [{
key: 'available', // key: 'available',
value: 'TRUE', // value: 'TRUE',
isMainValue: false // isMainValue: false
},{ // },{
key: 'supplierCode', // key: 'supplierCode',
value: 'supplierCode', // value: 'supplierCode',
message: '请填写供应商代码!', // message: '请填写供应商代码!',
isMainValue: true // isMainValue: true
},{ // },{
key: 'status', // key: 'status',
value: 2, // value: 2,
isMainValue: false // isMainValue: false
}] // }]
} // }
} // }
}, // },
{ {
label: '订单行', label: '订单行',
field: 'poLine', field: 'poLine',
@ -530,7 +557,7 @@ export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([
}, },
tableForm: { tableForm: {
type: 'Select', type: 'Select',
disabled:false, disabled:true,
} }
}, },
{ {
@ -617,9 +644,6 @@ export const PurchasePlanDetailRules = reactive({
// available: [ // available: [
// { required: true, message: '请选择是否可用', trigger: 'change' } // { required: true, message: '请选择是否可用', trigger: 'change' }
// ], // ],
poNumber: [
{ required: true, message: '请选择采购订单号', trigger: 'change' }
],
shippedQty: [ shippedQty: [
{ required: true, message: '请输入已发货数量', trigger: 'blur' } { required: true, message: '请输入已发货数量', trigger: 'blur' }
], ],

Loading…
Cancel
Save