Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
J
jump_hm_warehouse
概览
Overview
Details
Activity
Cycle Analytics
版本库
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
问题
0
Issues
0
列表
Board
标记
里程碑
合并请求
0
Merge Requests
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
Snippets
成员
Members
Collapse sidebar
Close sidebar
活动
图像
聊天
创建新问题
作业
提交
Issue Boards
Open sidebar
毛勇泽
jump_hm_warehouse
Commits
86a1202a
Commit
86a1202a
authored
Jan 15, 2024
by
陈桂东
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.sothing.top/Mmao/jump_hm_warehouse
parents
2fc4eb1b
c6bcdff9
显示空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
102 行增加
和
7 行删除
+102
-7
GoodsShelf.ets
entry/src/main/ets/pages/sub_systemMaintenance/GoodsShelf.ets
+39
-0
Pmhx.ets
entry/src/main/ets/pages/sub_systemMaintenance/Pmhx.ets
+50
-0
Unit.ets
entry/src/main/ets/pages/sub_systemMaintenance/Unit.ets
+1
-0
Warehouse.ets
entry/src/main/ets/pages/sub_systemMaintenance/Warehouse.ets
+2
-2
BasicTable.ets
entry/src/main/ets/view/BasicTable/BasicTable.ets
+5
-2
main_pages.json
entry/src/main/resources/base/profile/main_pages.json
+3
-1
UniInitList.ets
features/SystemMaintenance/src/main/ets/model/UniInitList.ets
+2
-2
没有找到文件。
entry/src/main/ets/pages/sub_systemMaintenance/GoodsShelf.ets
0 → 100644
View file @
86a1202a
import { BasicTable } from '../../view/BasicTable/BasicTable'
import { TitleBar } from '../../view/title/TitleBar'
@Entry
@Component
export struct GoodsShelf {
@State searchValue: string = ''
controller: SearchController = new SearchController()
build() {
Column() {
Flex({ direction: FlexDirection.Column }) {
TitleBar({ title: "货架查看" })
Row() {
Search({ value: this.searchValue, placeholder: '请输入货架号', controller: this.controller })
.height(40)
.backgroundColor('#F5F5F5')
.placeholderColor(Color.Grey)
.placeholderFont({ size: 14, weight: 400 })
.textFont({ size: 14, weight: 400 })
.onChange((value: string) => {
this.searchValue = value
})
.margin(20)
.borderRadius(5)
}
Column() {
BasicTable({ dataSource: [], emptyTitle: '暂无货架数据' })
}
}
}.linearGradient({
direction: GradientDirection.RightBottom,
repeating: true,
colors: [['#36a3c0', 0.0], ['#97c6a6', 1.0], ['#c7d799', 2.0]]
})
}
}
\ No newline at end of file
entry/src/main/ets/pages/sub_systemMaintenance/Pmhx.ets
0 → 100644
View file @
86a1202a
import { BasicTable } from '../../view/BasicTable/BasicTable'
import { TitleBar } from '../../view/title/TitleBar'
@Entry
@Component
export struct Pmhx {
@State searchValue: string = ''
controller: SearchController = new SearchController()
build() {
Column() {
Flex({ direction: FlexDirection.Column }) {
TitleBar({ title: "品名号型查看" })
Row() {
Flex({ justifyContent: FlexAlign.SpaceBetween, alignItems: ItemAlign.Center }) {
Column() {
Text('品名数量: 0个')
}
Column() {
Text('号型数量: 0个')
}
}
.width('100%').backgroundColor('#fff').height(52).borderRadius(5).padding({ left: 10, right: 10 })
}.padding({ top: 20, right: 20, left: 20 })
Row() {
Search({ value: this.searchValue, placeholder: '请输入六位品名代码', controller: this.controller })
.height(40)
.backgroundColor('#F5F5F5')
.placeholderColor(Color.Grey)
.placeholderFont({ size: 14, weight: 400 })
.textFont({ size: 14, weight: 400 })
.onChange((value: string) => {
this.searchValue = value
})
.margin(20)
.borderRadius(5)
}
Column() {
BasicTable({ dataSource: [], emptyTitle: '暂无品名号型数据' })
}
}
}.linearGradient({
direction: GradientDirection.RightBottom,
repeating: true,
colors: [['#36a3c0', 0.0], ['#97c6a6', 1.0], ['#c7d799', 2.0]]
})
}
}
\ No newline at end of file
entry/src/main/ets/pages/sub_systemMaintenance/Unit.ets
View file @
86a1202a
...
@@ -22,6 +22,7 @@ export struct Unit {
...
@@ -22,6 +22,7 @@ export struct Unit {
this.searchValue = value
this.searchValue = value
})
})
.margin(20)
.margin(20)
.borderRadius(5)
}
}
}
}
...
...
entry/src/main/ets/pages/sub_systemMaintenance/Warehouse.ets
View file @
86a1202a
...
@@ -22,11 +22,11 @@ export struct Warehouse {
...
@@ -22,11 +22,11 @@ export struct Warehouse {
this.searchValue = value
this.searchValue = value
})
})
.margin(20)
.margin(20)
.borderRadius(5)
}
}
Column() {
Column() {
BasicTable({ dataSource: [] })
BasicTable({ dataSource: []
, emptyTitle: '暂无库房数据'
})
}
}
}
}
}.linearGradient({
}.linearGradient({
direction: GradientDirection.RightBottom,
direction: GradientDirection.RightBottom,
...
...
entry/src/main/ets/view/BasicTable/BasicTable.ets
View file @
86a1202a
...
@@ -4,6 +4,9 @@ import { BasicColumn } from './table.type'
...
@@ -4,6 +4,9 @@ import { BasicColumn } from './table.type'
export struct BasicTable {
export struct BasicTable {
private columns: BasicColumn[];
private columns: BasicColumn[];
private dataSource: any[];
private dataSource: any[];
private emptyTitle: string;
private pageNo: string;
private pageSize: string;
@Builder renderList() {
@Builder renderList() {
Column() {
Column() {
...
@@ -39,9 +42,9 @@ export struct BasicTable {
...
@@ -39,9 +42,9 @@ export struct BasicTable {
Flex({justifyContent:FlexAlign.Center,alignItems:ItemAlign.Center}) {
Flex({justifyContent:FlexAlign.Center,alignItems:ItemAlign.Center}) {
Column() {
Column() {
Image($r("app.media.empty")).width("42%")
Image($r("app.media.empty")).width("42%")
Text("暂无数据").fontSize(22).fontColor("#fff").margin({top: 5})
Text(
this.emptyTitle ||
"暂无数据").fontSize(22).fontColor("#fff").margin({top: 5})
}
}
}.height('
10
0%')
}.height('
7
0%')
}
}
...
...
entry/src/main/resources/base/profile/main_pages.json
View file @
86a1202a
...
@@ -14,6 +14,8 @@
...
@@ -14,6 +14,8 @@
"pages/metailmange/AddConversionPage"
,
"pages/metailmange/AddConversionPage"
,
"pages/metailmange/WzReversePage"
,
"pages/metailmange/WzReversePage"
,
"pages/sub_systemMaintenance/Unit"
,
"pages/sub_systemMaintenance/Unit"
,
"pages/sub_systemMaintenance/Warehouse"
"pages/sub_systemMaintenance/Warehouse"
,
"pages/sub_systemMaintenance/GoodsShelf"
,
"pages/sub_systemMaintenance/Pmhx"
]
]
}
}
features/SystemMaintenance/src/main/ets/model/UniInitList.ets
View file @
86a1202a
...
@@ -33,14 +33,14 @@ export const uniInitList: UniListItem[] = [
...
@@ -33,14 +33,14 @@ export const uniInitList: UniListItem[] = [
showExtraIcon: true,
showExtraIcon: true,
showArrow: true,
showArrow: true,
//extraIcon: '',
//extraIcon: '',
url: '
g
oodsShelf'
url: '
pages/sub_systemMaintenance/G
oodsShelf'
},
},
{
{
title: '品名号型查看',
title: '品名号型查看',
showExtraIcon: true,
showExtraIcon: true,
showArrow: true,
showArrow: true,
//extraIcon: '',
//extraIcon: '',
url: 'pmhx'
url: 'p
ages/sub_systemMaintenance/P
mhx'
},
},
{
{
title: '系统设置',
title: '系统设置',
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论