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
4fd626e2
Commit
4fd626e2
authored
Jan 20, 2024
by
huangqy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
货位
parent
88a97bbf
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
77 行增加
和
1 行删除
+77
-1
GoodsSelectHwPage.ets
entry/src/main/ets/pages/metailmange/GoodsSelectHwPage.ets
+77
-1
没有找到文件。
entry/src/main/ets/pages/metailmange/GoodsSelectHwPage.ets
View file @
4fd626e2
import { TitleBar } from '../../view/title/TitleBar'
import { TitleBar } from '../../view/title/TitleBar'
import { BasicTable } from '../../view/BasicTable/BasicTable'
import promptAction from '@ohos.promptAction'
@Extend(Button) function CommonButtonStyle() {
.borderWidth(2)
.borderColor('#0fa983')
.backgroundColor('#fff')
.fontColor('#0fa983')
.borderRadius(10)
.type(ButtonType.Normal)
.stateEffect(true)
}
@Entry
@Entry
@Component
@Component
struct GoodsSelectHwPage{
struct GoodsSelectHwPage{
@State model: boolean = true
build(){
build(){
Column() {
Column() {
Flex({ direction: FlexDirection.Column }) {
Flex({ direction: FlexDirection.Column }) {
TitleBar({ title: "货位"})
TitleBar({ title: "货位"})
Flex({ justifyContent: FlexAlign.SpaceEvenly, alignItems: ItemAlign.Center }) {
Column() {
Select([{ value: "LS-1-1-2" }, { value: "LS-1-1-3" }, { value: "LS-1-1-4" }])
.value('请选择')
.borderWidth(1)
.borderRadius(6)
.flexGrow(1)
.height(34)
.fontColor('rgb(103,110,112)')
.backgroundColor('#00000000')
.borderColor("#e5e5e5")
.width(220)
.onSelect((index: number, value?: string) => {
})
}.width('70%').margin({ right: 10 })
Button(this.model ? "切换自动选" : "切换手动选")
.borderRadius(6)
.width('30%')
.fontColor('#0fa983')
.backgroundColor('#fff')
.type(ButtonType.Normal)
.onClick(() => {
this.model = ! this.model
})
}.padding({left: 20, right: 20})
Column() {
if (this.model) {
} else {
Flex({ justifyContent: FlexAlign.Center , alignItems: ItemAlign.Center }) {
Text('请扫描货位码').fontColor('#fff').fontSize(20)
}
.width('100%')
.height('100%')
.border({ width: 1, color: '#fff', style: BorderStyle.Dotted})
}
}
.padding(20)
.height('100%')
Flex({ justifyContent: FlexAlign.Center }) {
Button("保存")
.borderRadius(4)
.type(ButtonType.Normal)
.width('90%')
.fontColor('#0fa983')
.backgroundColor('#fff')
.onClick(() => {
promptAction.showToast({
message: "保存"
})
})
}
.height(70)
}.width("100%")
}.width("100%")
}.linearGradient({
}.linearGradient({
direction: GradientDirection.Right, // 渐变方向
direction: GradientDirection.Right, // 渐变方向
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论