Browse Source

质量报告上传界面改为带出发货申请中的明细信息(物料号、供应商批次、数量、单位)且不可编辑

master_hella_20240701
zhaoxuebing 6 months ago
parent
commit
69d184c49e
  1. 5
      src/api/wms/supplierdeliverInspectionDetail/index.ts
  2. 36
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverInspectionDetail/supplierdeliverInspectionDetail.data.ts
  3. 13
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue

5
src/api/wms/supplierdeliverInspectionDetail/index.ts

@ -28,6 +28,11 @@ export const getSupplierdeliverInspectionDetail = async (id: number) => {
return await request.get({ url: `/wms/supplierdeliver-inspection-detail/get?id=` + id })
}
// 查询供应商发货申请质子列表
export const getSupplierdeliverDetailInfo = async (id: number) => {
return await request.get({ url: `/wms/supplierdeliver-inspection-detail/queryByMasterId?masterId=` + id })
}
// 新增供应商发货申请质检信息子
export const createSupplierdeliverInspectionDetail = async (data: SupplierdeliverInspectionDetailVO) => {
return await request.post({ url: `/wms/supplierdeliver-inspection-detail/create`, data })

36
src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverInspectionDetail/supplierdeliverInspectionDetail.data.ts

@ -26,6 +26,14 @@ export const SupplierdeliverInspectionDetail = useCrudSchemas(reactive<CrudSchem
sort: 'custom',
isForm:false,
isSearch: true,
form: {
componentProps: {
disabled: true
}
},
tableForm: {
disabled: true
}
},
{
label: '供应商批次',
@ -33,6 +41,14 @@ export const SupplierdeliverInspectionDetail = useCrudSchemas(reactive<CrudSchem
sort: 'custom',
isForm:false,
isSearch: true,
form: {
componentProps: {
disabled: true
}
},
tableForm: {
disabled: true
}
},
{
label: '发货数量',
@ -40,11 +56,19 @@ export const SupplierdeliverInspectionDetail = useCrudSchemas(reactive<CrudSchem
sort: 'custom',
isForm:false,
isSearch: true,
form: {
componentProps: {
disabled: true
}
},
tableForm: {
disabled: true,
type: 'InputNumber',
min: 0,
precision: 6
}
},
},
{
label: '计量单位',
@ -58,8 +82,14 @@ export const SupplierdeliverInspectionDetail = useCrudSchemas(reactive<CrudSchem
width: 150
},
tableForm: {
type: 'Select'
}
type: 'Select',
disabled: true
},
form: {
componentProps: {
disabled: true
}
},
},
{
label: '备注',

13
src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue

@ -143,7 +143,8 @@
@handleAddTable="handleAddQualityReport"
@handleDeleteTable="handleDeleteQualityReport"
@submitForm="submitFormUploadQualityReport"
:isShowReduceButton="true"
:isShowReduceButton="false"
:isShowButton="false"
>
<template #SupplierdeliverInspectionDetail>
<span>1111</span>
@ -642,11 +643,17 @@ const handleUploadQualityReport = async (row) => {
}
ploadQualityReportRef.value.open('create', null, {masterId:row.masterId},'上传质检报告','上传质检报告')// createLabel
const tableFormKeys = {}
SupplierdeliverInspectionDetail.allSchemas.tableFormColumns.forEach((item) => {
tableFormKeys[item.field] = item.default ? item.default : ''
})
uploadQualityReportTableData.value = [tableFormKeys]
await SupplierdeliverInspectionDetailApi.getSupplierdeliverDetailInfo(row.masterId).then(res => {
if(res){
// console.log(":",res)
uploadQualityReportTableData.value = res;
}
})
//uploadQualityReportTableData.value = [tableFormKeys]
}
const submitFormUploadQualityReport = async (formType, data) => {

Loading…
Cancel
Save