Browse Source

上传质检报告

master_hella_20240701
yufei0306 7 months ago
parent
commit
9f1f0e2f6d
  1. 6
      src/components/Detail/src/Detail.vue
  2. 29
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverInspectionDetail/supplierdeliverInspectionDetail.data.ts
  3. 1
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue

6
src/components/Detail/src/Detail.vue

@ -108,9 +108,10 @@
/> />
</ElScrollbar> </ElScrollbar>
</ContentWrap> </ContentWrap>
<ContentWrap class="w-[100%]">
<Table <Table
v-if="!isBasic && fromeWhere != 'countPlan'" v-if="!isBasic && fromeWhere != 'countPlan'"
:align="annexItem.align?annexItem.align:'center'"
:columns="annexItem.subDetailTableData.tableColumns" :columns="annexItem.subDetailTableData.tableColumns"
:data="annexItem.subDetailTableData.tableList" :data="annexItem.subDetailTableData.tableList"
:loading="annexItem.subDetailTableData.loading" :loading="annexItem.subDetailTableData.loading"
@ -118,6 +119,8 @@
v-model:pageSize="tableObjectRef.pageSize" v-model:pageSize="tableObjectRef.pageSize"
v-model:currentPage="tableObjectRef.currentPage" v-model:currentPage="tableObjectRef.currentPage"
/> />
</ContentWrap>
</div> </div>
<!-- 附件/备注/变更记录 --> <!-- 附件/备注/变更记录 -->
<ContentWrap class="w-[100%]" v-show="tabsList[current].label=='附件'||tabsList[current].label=='备注'||tabsList[current].label=='变更记录'" :style="{height:remarkHeight+'px'}"> <ContentWrap class="w-[100%]" v-show="tabsList[current].label=='附件'||tabsList[current].label=='备注'||tabsList[current].label=='变更记录'" :style="{height:remarkHeight+'px'}">
@ -443,6 +446,7 @@ const getAnnexFileList = async (row:id) => {
annexData.annexList = annexList annexData.annexList = annexList
}else{ }else{
annexTableData.value.push({ annexTableData.value.push({
align:item.align,
label: item.label, label: item.label,
tableName: item?.tableName || '', tableName: item?.tableName || '',
annexList, annexList,

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

@ -9,10 +9,28 @@ export const SupplierdeliverInspectionDetailRules = reactive({
}) })
export const SupplierdeliverInspectionDetail = useCrudSchemas(reactive<CrudSchema[]>([ export const SupplierdeliverInspectionDetail = useCrudSchemas(reactive<CrudSchema[]>([
{
label: '上传质检报告',
field: 'uploadFile',
sort: 'custom',
isTable:false,
isTableForm:false,
form: {
component: 'UploadFile',
componentProps: {
upData:{
tableId: '',
tableName: 'SupplierdeliverInspectionDetail'
},
limit:1,
}
},
},
{ {
label: '代码', label: '代码',
field: 'itemCode', field: 'itemCode',
sort: 'custom', sort: 'custom',
isForm:false,
isSearch: true, isSearch: true,
}, },
{ {
@ -21,6 +39,7 @@ export const SupplierdeliverInspectionDetail = useCrudSchemas(reactive<CrudSchem
dictType: DICT_TYPE.UOM, dictType: DICT_TYPE.UOM,
dictClass: 'string', dictClass: 'string',
isTable: true, isTable: true,
isForm:false,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -33,18 +52,23 @@ export const SupplierdeliverInspectionDetail = useCrudSchemas(reactive<CrudSchem
label: '批次', label: '批次',
field: 'batch', field: 'batch',
sort: 'custom', sort: 'custom',
isForm:false,
isSearch: true, isSearch: true,
}, },
{ {
label: '计划数量', label: '计划数量',
field: 'planQty', field: 'planQty',
sort: 'custom', sort: 'custom',
isForm:false,
isSearch: true, isSearch: true,
}, },
{ {
label: '备注', label: '备注',
field: 'remark', field: 'remark',
sort: 'custom', sort: 'custom',
isForm:false,
isTable: false,
isTableForm: false,
isSearch: true, isSearch: true,
}, },
{ {
@ -61,6 +85,7 @@ export const SupplierdeliverInspectionDetail = useCrudSchemas(reactive<CrudSchem
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
} }
}, },
isTableForm: false,
isForm: false, isForm: false,
}, },
{ {
@ -69,11 +94,15 @@ export const SupplierdeliverInspectionDetail = useCrudSchemas(reactive<CrudSchem
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
isForm: false, isForm: false,
isTable: false,
isTableForm: false,
}, },
{ {
label: '操作', label: '操作',
field: 'action', field: 'action',
isForm: false, isForm: false,
isTable: false,
isTableForm: false,
table: { table: {
width: 150, width: 150,
fixed: 'right' fixed: 'right'

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

@ -79,6 +79,7 @@
prop: 'uploadFile', prop: 'uploadFile',
tableName:'SupplierdeliverInspectionDetail', tableName:'SupplierdeliverInspectionDetail',
hasSubDetail:true, // hasSubDetail:true, //
align:'left',
// //
subDetailTableData:{ subDetailTableData:{
queryParams:[{ queryParams:[{

Loading…
Cancel
Save