Commit 4fd626e2 by huangqy

货位

parent 88a97bbf
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 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论