Browse Source

采购收货

master
zhang_li 1 year ago
parent
commit
45c7091641
  1. 4
      src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue
  2. 27
      src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/purchasereceiptRequestMain.data.ts

4
src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue

@ -106,8 +106,10 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
//row[formField] = val[0][searchField] //row[formField] = val[0][searchField]
if(formField == 'itemCode') { if(formField == 'itemCode') {
row['itemCode'] = val[0]['code'] row['itemCode'] = val[0]['code']
} else { } else if(formField == 'poNumber') {
row['poNumber'] = val[0]['number'] row['poNumber'] = val[0]['number']
} else {
// row['poNumber'] = val[0]['number']
row['poLine'] = val[0]['lineNumber'] row['poLine'] = val[0]['lineNumber']
} }
} else { } else {

27
src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/purchasereceiptRequestMain.data.ts

@ -515,6 +515,11 @@ export const PurchasereceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]
valueFormat: 'x', valueFormat: 'x',
} }
}, },
tableForm:{
type:'FormDate',
placeholder: '请选择到货日期',
valueFormat: 'x',
},
}, },
{ {
label: '生产日期', label: '生产日期',
@ -536,6 +541,11 @@ export const PurchasereceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]
valueFormat: 'x', valueFormat: 'x',
} }
}, },
tableForm:{
type:'FormDate',
placeholder: '请选择生产日期',
valueFormat: 'x',
},
}, },
{ {
label: '过期日期', label: '过期日期',
@ -557,6 +567,11 @@ export const PurchasereceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]
valueFormat: 'x', valueFormat: 'x',
} }
}, },
tableForm:{
type:'FormDate',
placeholder: '请选择过期日期',
valueFormat: 'x',
},
}, },
{ {
label: '库存状态', label: '库存状态',
@ -951,22 +966,22 @@ export const PurchasereceiptRequestDetailRules = reactive({
{ required: true, message: '请输入批次', trigger: 'blur' } { required: true, message: '请输入批次', trigger: 'blur' }
], ],
produceDate: [ produceDate: [
{ required: true, message: '请输入生产日期', trigger: 'blur' } { required: true, message: '请输入生产日期', trigger: 'change' }
], ],
arriveDate: [ arriveDate: [
{ required: true, message: '请输入到货日期', trigger: 'blur' } { required: true, message: '请输入到货日期', trigger: 'change' }
], ],
expireDate: [ expireDate: [
{ required: true, message: '请输入过期日期', trigger: 'blur' } { required: true, message: '请输入过期日期', trigger: 'change' }
], ],
stdPackQty: [ stdPackQty: [
{ required: true, message: '请输入标包数量', trigger: 'blur' } { required: true, message: '请输入标包数量', trigger: 'blur' }
], ],
poNumber: [ poNumber: [
{ required: true, message: '请输入订单号', trigger: 'blur' } { required: true, message: '请输入订单号', trigger: 'change' }
], ],
poLine: [ poLine: [
{ required: true, message: '请输入订单行', trigger: 'blur' } { required: true, message: '请输入订单行', trigger: 'change' }
], ],
stdPackUnit: [ stdPackUnit: [
{ required: true, message: '请选择标包单位', trigger: 'change' } { required: true, message: '请选择标包单位', trigger: 'change' }
@ -978,6 +993,6 @@ export const PurchasereceiptRequestDetailRules = reactive({
{ required: true, message: '请选择库存状态', trigger: 'change' } { required: true, message: '请选择库存状态', trigger: 'change' }
], ],
itemCode: [ itemCode: [
{ required: true, message: '请输入物品代码', trigger: 'blur' } { required: true, message: '请输入物品代码', trigger: 'change' }
], ],
}) })
Loading…
Cancel
Save