Browse Source

YT-2087供应商便次配置表,便次多于6个显示不全

intex_online20250311
张立 1 month ago
parent
commit
b29ae03c07
  1. 11
      src/views/wms/supplierManage/supplierDeliMain/index.vue
  2. 18
      src/views/wms/supplierManage/supplierDeliMain/supplierDeliMain.data.ts

11
src/views/wms/supplierManage/supplierDeliMain/index.vue

@ -33,7 +33,7 @@
</el-button> </el-button>
</template> </template>
<template v-for="item in dateColumns" :key="item.field" #[item.field]="{row}"> <template v-for="item in dateColumns" :key="item.field" #[item.field]="{row}">
<div :style="{ maxHeight: getHeight(row) }"> <div :style="{ maxHeight: getMaxHeight(row)}">
<div v-for="(cur,index) in row[item.field]" :key="index"> <div v-for="(cur,index) in row[item.field]" :key="index">
{{cur}} {{cur}}
</div> </div>
@ -240,10 +240,10 @@ const buttonTableClick = async (val: string, row:any) => {
if (val == 'open') { // if (val == 'open') { //
// openForm('update', row) // openForm('update', row)
row.isOpen = true row.isOpen = true
getHeight(row) getMaxHeight(row)
} else if (val == 'retract') { // } else if (val == 'retract') { //
row.isOpen = false row.isOpen = false
getHeight(row) getMaxHeight(row)
// handleDelete(row.id) // handleDelete(row.id)
} }
} }
@ -336,10 +336,11 @@ const searchFormClick = (searchData: { filters: any }) => {
} }
getListExecute() // getListExecute() //
} }
const getHeight=(row)=> {
const getMaxHeight=(row)=> {
// //
if (row.isOpen === true) { // if (row.isOpen === true) { //
return 'auto'; // return 'none'; //
} }
return '140px'; // return '140px'; //
} }

18
src/views/wms/supplierManage/supplierDeliMain/supplierDeliMain.data.ts

@ -60,13 +60,13 @@ export const SupplierDeliMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
// { {
// label: '操作', label: '操作',
// field: 'action', field: 'action',
// isForm: false, isForm: false,
// table: { table: {
// width: 150, width: 150,
// fixed: 'right' fixed: 'right'
// } }
// } }
])) ]))

Loading…
Cancel
Save