This commit is contained in:
2026-03-03 15:05:20 +08:00
parent 7785356347
commit 124de2926e
6 changed files with 36 additions and 15 deletions

View File

@@ -58,9 +58,9 @@ const columns: ColumnItem[] = reactive([
span: 24,
},
{
label: '物料单次可称量最大重量(kg)',
field: 'maxWeight',
type: 'input-number',
label: '物料规格',
field: 'materialSpec',
type: 'input',
span: 24,
},
{

View File

@@ -90,8 +90,7 @@ const columns = ref<TableInstanceColumns[]>([
{ title: '物料名称', dataIndex: 'materialName', slotName: 'materialName' },
{ title: '物料编码', dataIndex: 'encoding', slotName: 'encoding' },
{ title: '物料单位重量(g)', dataIndex: 'unitWeight', slotName: 'unitWeight' },
{ title: '物料单次可称量最大重量(kg)', dataIndex: 'maxWeight', slotName: 'maxWeight' },
// 可给photoUrl列添加宽度优化显示
{ title: '物料规格', dataIndex: 'materialSpec', slotName: 'materialSpec' },
{ title: '物料照片', dataIndex: 'photoUrl', slotName: 'photoUrl', width: 120, align: 'center' },
{ title: '创建人', dataIndex: 'createUserString', slotName: 'createUser' },
{ title: '创建时间', dataIndex: 'createTime', slotName: 'createTime' },

View File

@@ -13,7 +13,7 @@
</template>
<script setup lang="ts">
import { Message, type TreeNodeData } from '@arco-design/web-vue'
import { Message } from '@arco-design/web-vue'
import { useWindowSize } from '@vueuse/core'
import { addUser, getUser, updateUser } from '@/apis/system/user'
import { type ColumnItem, GiForm } from '@/components/GiForm'

View File

@@ -102,6 +102,7 @@ import { DisEnableStatusList } from '@/constant/common'
import { useDownload, useResetReactive, useTable } from '@/hooks'
import { isMobile } from '@/utils'
import has from '@/utils/has'
import type { ColumnItem } from '@/components/GiForm'
defineOptions({ name: 'SystemUser' })
@@ -122,7 +123,7 @@ const queryFormColumns: ColumnItem[] = reactive([
hideLabel: true,
},
props: {
placeholder: '搜索用户名/昵称/描述',
placeholder: '搜索用户名',
showWordLimit: false,
},
},
@@ -167,7 +168,7 @@ const columns: TableInstanceColumns[] = [
fixed: !isMobile() ? 'left' : undefined,
},
{ title: '用户名', dataIndex: 'username', slotName: 'username', minWidth: 100, ellipsis: true, tooltip: true },
{ title:'卡号', dataIndex: 'cardNo', slotName: 'cardNo' },
{ title: '卡号', dataIndex: 'cardNo', slotName: 'cardNo' },
{ title: '状态', dataIndex: 'status', slotName: 'status', align: 'center' },
{ title: '性别', dataIndex: 'gender', slotName: 'gender', align: 'center' },
{ title: '角色', dataIndex: 'roleNames', slotName: 'roleNames', minWidth: 165 },