Browse Source

上传质检报告

master_hella_20240701
yufei0306 7 months ago
parent
commit
9f1f0e2f6d
  1. 24
      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

24
src/components/Detail/src/Detail.vue

@ -108,16 +108,19 @@
/>
</ElScrollbar>
</ContentWrap>
<Table
v-if="!isBasic && fromeWhere != 'countPlan'"
:columns="annexItem.subDetailTableData.tableColumns"
:data="annexItem.subDetailTableData.tableList"
:loading="annexItem.subDetailTableData.loading"
:pagination="{ total: annexItem.subDetailTableData.tableList.length }"
v-model:pageSize="tableObjectRef.pageSize"
v-model:currentPage="tableObjectRef.currentPage"
/>
<ContentWrap class="w-[100%]">
<Table
v-if="!isBasic && fromeWhere != 'countPlan'"
:align="annexItem.align?annexItem.align:'center'"
:columns="annexItem.subDetailTableData.tableColumns"
:data="annexItem.subDetailTableData.tableList"
:loading="annexItem.subDetailTableData.loading"
:pagination="{ total: annexItem.subDetailTableData.tableList.length }"
v-model:pageSize="tableObjectRef.pageSize"
v-model:currentPage="tableObjectRef.currentPage"
/>
</ContentWrap>
</div>
<!-- 附件/备注/变更记录 -->
<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
}else{
annexTableData.value.push({
align:item.align,
label: item.label,
tableName: item?.tableName || '',
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[]>([
{
label: '上传质检报告',
field: 'uploadFile',
sort: 'custom',
isTable:false,
isTableForm:false,
form: {
component: 'UploadFile',
componentProps: {
upData:{
tableId: '',
tableName: 'SupplierdeliverInspectionDetail'
},
limit:1,
}
},
},
{
label: '代码',
field: 'itemCode',
sort: 'custom',
isForm:false,
isSearch: true,
},
{
@ -21,6 +39,7 @@ export const SupplierdeliverInspectionDetail = useCrudSchemas(reactive<CrudSchem
dictType: DICT_TYPE.UOM,
dictClass: 'string',
isTable: true,
isForm:false,
sort: 'custom',
table: {
width: 150
@ -33,18 +52,23 @@ export const SupplierdeliverInspectionDetail = useCrudSchemas(reactive<CrudSchem
label: '批次',
field: 'batch',
sort: 'custom',
isForm:false,
isSearch: true,
},
{
label: '计划数量',
field: 'planQty',
sort: 'custom',
isForm:false,
isSearch: true,
},
{
label: '备注',
field: 'remark',
sort: 'custom',
isForm:false,
isTable: false,
isTableForm: false,
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')]
}
},
isTableForm: false,
isForm: false,
},
{
@ -69,11 +94,15 @@ export const SupplierdeliverInspectionDetail = useCrudSchemas(reactive<CrudSchem
sort: 'custom',
isSearch: true,
isForm: false,
isTable: false,
isTableForm: false,
},
{
label: '操作',
field: 'action',
isForm: false,
isTable: false,
isTableForm: false,
table: {
width: 150,
fixed: 'right'

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

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

Loading…
Cancel
Save