Browse Source

详情组件修改

master
陈薪名 1 year ago
parent
commit
9deabbe83b
  1. 18
      src/components/Detail/src/Detail.vue
  2. 31
      src/utils/disposition/tableColumns.ts

18
src/components/Detail/src/Detail.vue

@ -10,17 +10,19 @@
<Descriptions :data="detailData" labelClassName="label-class-name" label-align="left" direction="vertical"
:column="8" :schema="allSchemas.detailSchema" :columns="2" width="200px" />
</ContentWrap>
<!-- 列表头部 -->
<TableHead
:HeadButttondata="HeadButttondata"
@button-base-click="buttonBaseClick"
:routeName="routeName"
@updataTableColumns="updataTableColumns"
/>
<Tabs :tabsList="tabsList" :current="current" @change="change" />
<div class="flex" v-if="current == 0">
<!-- 详情 -->
<ContentWrap class="w-[73%]">
<!-- 列表头部 -->
<TableHead
v-if="!isBasic"
:HeadButttondata="HeadButttondata"
@button-base-click="buttonBaseClick"
:routeName="routeName"
@updataTableColumns="updataTableColumns"
/>
<Descriptions v-if="isBasic" :data="detailData" :schema="allSchemas.detailSchema" :columns="2" />
<Table
v-if="!isBasic"
@ -279,7 +281,7 @@ const { tableObject, tableMethods } = useTable({
const { getList } = tableMethods
//
const HeadButttondata = [
defaultButtons.defaultAddBtn({ hasPermi: 'wms:purchaseclaim-request-main:create' }), //
defaultButtons.defaultAddBtn(null), //
]
//
const buttonBaseClick = (val, item) => {

31
src/utils/disposition/tableColumns.ts

@ -36,7 +36,8 @@ export const Itembasic = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom',
isSearch: true,
table: {
width: 150
width: 150,
fixed: 'left'
},
// tableForm:{
// minWidth:200,
@ -119,6 +120,7 @@ export const Itembasic = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
// colorType: 'danger',
isTable: true,
table: {
width: 120
@ -415,7 +417,8 @@ export const Itembasic = useCrudSchemas(reactive<CrudSchema[]>([
isDetail: false,
isForm: false ,
table: {
width: 150
width: 150,
fixed: 'right'
},
}
]))
@ -503,7 +506,8 @@ export const Itempackaging = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom',
isSearch: true,
table: {
width: 150
width: 150,
fixed: 'left'
}
},
{
@ -700,7 +704,8 @@ export const Itempackaging = useCrudSchemas(reactive<CrudSchema[]>([
isDetail: false,
isForm: false,
table: {
width: 150
width: 150,
fixed: 'right'
}
}
]))
@ -724,7 +729,8 @@ export const Bom = useCrudSchemas(reactive<CrudSchema[]>([
isSearch: true,
sort: 'custom',
table: {
width: 150
width: 150,
fixed: 'left'
}
},
{
@ -868,7 +874,8 @@ export const Bom = useCrudSchemas(reactive<CrudSchema[]>([
isDetail: false,
isForm: false ,
table: {
width: 150
width: 150,
fixed: 'right'
}
}
]))
@ -905,7 +912,8 @@ export const Stdcostprice = useCrudSchemas(reactive<CrudSchema[]>([
isSearch: true,
sort: 'custom',
table: {
width: 150
width: 150,
fixed: 'left'
}
},
{
@ -1016,7 +1024,8 @@ export const Stdcostprice = useCrudSchemas(reactive<CrudSchema[]>([
isDetail: false,
isForm: false ,
table: {
width: 150
width: 150,
fixed: 'right'
}
}
]))
@ -1050,7 +1059,8 @@ export const Productionlineitem = useCrudSchemas(reactive<CrudSchema[]>([
isSearch: true,
sort: 'custom',
table: {
width: 150
width: 150,
fixed: 'left'
}
},
{
@ -1153,7 +1163,8 @@ export const Productionlineitem = useCrudSchemas(reactive<CrudSchema[]>([
isDetail: false,
isForm: false ,
table: {
width: 150
width: 150,
fixed: 'right'
}
}
]))

Loading…
Cancel
Save