Commit 8a864a00 by 毛勇泽

物资管理

parent 1ec44baa
......@@ -24,12 +24,117 @@ struct AddConversionPage{
@Builder VoucherRow(){
Flex({direction:FlexDirection.Column}){
Row(){
}
}.backgroundColor("#fff")
.borderRadius(10)
.margin(10)
Divider()
.vertical(true)
.height(14)
.strokeWidth(3)
.color('#19ac88')
.opacity(0.6)
.margin({ left: 8, right: 8 })
Text("物资管理")
.fontWeight(FontWeight.Medium)
.fontSize(14)
.fontColor($r("app.color.item_color_black"))
}.padding("2vp")
.width("100%")
Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) {
Text("凭证类型:")
.fontSize(14)
.width("30%")
.height(50)
.fontColor($r("app.color.item_color_black"))
TextInput({placeholder:"物资换位"})
.enterKeyType(EnterKeyType.Search)
.borderColor("#454545")
.borderRadius(10).width('80%').height(50).padding({top:10,bottom:10})
.backgroundColor($r("app.color.disabledColor"))
.enabled(false)
}.padding("10vp")
Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) {
Text("凭证号:")
.fontSize(14)
.width("30%")
.height(50)
.fontColor($r("app.color.item_color_black"))
TextInput({placeholder:"请输入凭证号"})
.enterKeyType(EnterKeyType.Search)
.borderRadius(10).width('80%').height(50).padding({top:10,bottom:10})
.backgroundColor($r("app.color.disabledColor"))
}.padding("10vp")
Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) {
Text("库房:")
.fontSize(14)
.width("30%")
.height(50)
.fontColor($r("app.color.item_color_black"))
Select([{ value: "1号库房" }, { value: "2号库房" }])
.value('请选择库房')
.width("80%")
.borderWidth(2)
.borderRadius(10)
.height(50)
.borderColor($r("app.color.rank_third_gradient_end"))
.onSelect((index: number, value?: string) => {
console.log("选择库房",value)
})
.flexGrow(1)
}.padding("10vp")
Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) {
Text("发物管理单位:")
.fontSize(14)
.width("30%")
.height(50)
.fontColor($r("app.color.item_color_black"))
Select([{ value: "1号库房" }, { value: "2号库房" }])
.value('请选择发物管理单位')
.width("80%")
.borderWidth(2)
.borderRadius(10)
.height(50)
.borderColor("#454545")
.onSelect((index: number, value?: string) => {
})
.flexGrow(1)
}.padding("10vp")
Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) {
Text("收物管理单位:")
.fontSize(14)
.width("30%")
.height(50)
.fontColor($r("app.color.item_color_black"))
Select([{ value: "1号库房" }, { value: "2号库房" }])
.value('请选择收物管理单位')
.width("80%")
.borderWidth(2)
.borderRadius(10)
.height(50)
.borderColor("#454545")
.onSelect((index: number, value?: string) => {
})
.flexGrow(1)
}.padding("10vp")
Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) {
Text("账目类型:")
.fontSize(14)
.width("30%")
.height(50)
.fontColor($r("app.color.item_color_black"))
Select([{ value: "正常供应被装帐" },{ value: "战略储备被装预计帐" }, { value: "战役储备被装预计帐" }, { value: "战术储备被装预计帐" }])
.value('请选择账目类型')
.width("80%")
.borderWidth(2)
.borderRadius(10)
.height(50)
.borderColor("#454545")
.onSelect((index: number, value?: string) => {
})
.flexGrow(1)
}.padding("10vp").width("100%")
}.padding(20)
.width("100%")
.height("100%")
.borderRadius(15)
.backgroundColor("#fff")
}
build(){
Column() {
......@@ -38,13 +143,15 @@ struct AddConversionPage{
Tabs({ barPosition: BarPosition.Start, controller: this.controller }) {
TabContent() {
// Column().width('100%').height('100%').backgroundColor('#00CB87')
this.VoucherRow()
}.tabBar(this.TabBuilder(0, '凭证信息'))
TabContent() {
// Column().width('100%').height('100%').backgroundColor('#007DFF')
}.tabBar(this.TabBuilder(1, '物资信息'))
}
.height(80)
.height(500)
.margin(15)
.onChange((index: number) => {
this.currentIndex = index
})
......
import { TitleBar } from '../../view/title/TitleBar'
import { BasicTable } from '../../view/BasicTable/BasicTable'
import router from '@ohos.router';
@Extend(Button) function bottomBtnSty() {
.borderWidth(1)
.borderColor('#0fa983')
......@@ -17,7 +18,10 @@ struct WzConversionPage{
Flex({ justifyContent: FlexAlign.SpaceEvenly, alignItems: ItemAlign.Center }) {
Button("新建换位")
.bottomBtnSty()
.onClick(async () => {
.onClick( () => {
router.pushUrl({
url: "pages/metailmange/AddConversionPage",
})
})
.fontColor("#0fa983")
.fontSize("14vp")
......
......@@ -10,6 +10,7 @@
"pages/metailmange/WzConversionPage",
"pages/metailmange/WzInvPage",
"pages/metailmange/WzPositionPage",
"pages/metailmange/WzReversePage"
"pages/metailmange/WzReversePage",
"pages/metailmange/AddConversionPage"
]
}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论