Browse Source

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

master_hella_20240701
zhaoxuebing 7 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 }) 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) => { export const createSupplierdeliverInspectionDetail = async (data: SupplierdeliverInspectionDetailVO) => {
return await request.post({ url: `/wms/supplierdeliver-inspection-detail/create`, data }) 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', sort: 'custom',
isForm:false, isForm:false,
isSearch: true, isSearch: true,
form: {
componentProps: {
disabled: true
}
},
tableForm: {
disabled: true
}
}, },
{ {
label: '供应商批次', label: '供应商批次',
@ -33,6 +41,14 @@ export const SupplierdeliverInspectionDetail = useCrudSchemas(reactive<CrudSchem
sort: 'custom', sort: 'custom',
isForm:false, isForm:false,
isSearch: true, isSearch: true,
form: {
componentProps: {
disabled: true
}
},
tableForm: {
disabled: true
}
}, },
{ {
label: '发货数量', label: '发货数量',
@ -40,11 +56,19 @@ export const SupplierdeliverInspectionDetail = useCrudSchemas(reactive<CrudSchem
sort: 'custom', sort: 'custom',
isForm:false, isForm:false,
isSearch: true, isSearch: true,
form: {
componentProps: {
disabled: true
}
},
tableForm: { tableForm: {
disabled: true,
type: 'InputNumber', type: 'InputNumber',
min: 0, min: 0,
precision: 6 precision: 6
} },
}, },
{ {
label: '计量单位', label: '计量单位',
@ -58,8 +82,14 @@ export const SupplierdeliverInspectionDetail = useCrudSchemas(reactive<CrudSchem
width: 150 width: 150
}, },
tableForm: { tableForm: {
type: 'Select' type: 'Select',
} disabled: true
},
form: {
componentProps: {
disabled: true
}
},
}, },
{ {
label: '备注', label: '备注',

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

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

Loading…
Cancel
Save