Commit 4f474ca4 by 毛勇泽

单据PZ详情+物资信息

parent b41e99db
import { TitleBar } from '../../view/title/TitleBar' import { TitleBar } from '../../view/title/TitleBar'
import { BasicTable } from '../../view/BasicTable/BasicTable' import { BasicTable } from '../../view/BasicTable/BasicTable'
@Extend(Button) function CommonButtonStyle() { @Extend(Button) function CommonButtonStyle() {
.borderWidth(2) .borderWidth(2)
.borderColor('#0fa983') .borderColor('#0fa983')
.backgroundColor('#97c6a6') .backgroundColor('#97c6a6')
.fontColor('#fff') .fontColor('#fff')
.borderRadius(5) .borderRadius(5)
.type(ButtonType.Normal) .type(ButtonType.Normal)
.stateEffect(true) .stateEffect(true)
} }
@Entry @Entry
@Component @Component
export struct AddTemporaryInPage { export struct AddTemporaryInPage {
@State fontColor: string = '#0FA983' @State fontColor: string = '#0FA983'
@State selectedFontColor: string = '#fff' @State selectedFontColor: string = '#fff'
@State currentIndex: number = 0 @State currentIndex: number = 0
private controller: TabsController = new TabsController() private controller: TabsController = new TabsController()
@Builder TabBuilder(index: number, name: string) {
Column() {
Text(name)
.fontColor(this.currentIndex === index ? this.selectedFontColor : this.fontColor)
.fontSize(21)
.lineHeight(36)
} .width('100%')
.height(45)
.border({ width: 2, color: 'rgb(15, 169, 131)' })
.borderRadius(3)
.backgroundColor(this.currentIndex === index ? this.fontColor : '#00000000')
}
@Builder VoucherRow() { @Builder TabBuilder(index: number, name: string) {
Flex({ direction: FlexDirection.Column }) { Column() {
Row() { Text(name)
Divider() .fontColor(this.currentIndex === index ? this.selectedFontColor : this.fontColor)
.vertical(true) .fontSize(21)
.height(14) .lineHeight(36)
.strokeWidth(3) }
.color('#19ac88') .width('100%')
.opacity(0.6) .height(45)
.margin({ left: 8, right: 8 }) .border({ width: 2, color: 'rgb(15, 169, 131)' })
Text("物资管理") .borderRadius(3)
.fontWeight(FontWeight.Medium) .backgroundColor(this.currentIndex === index ? this.fontColor : '#00000000')
.fontSize(14) }
.fontColor($r("app.color.item_color_black"))
}.padding("2vp") @Builder VoucherRow() {
.width("100%") Flex({ direction: FlexDirection.Column }) {
Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { Row() {
Text("凭证类型:") Divider()
.fontSize(14) .vertical(true)
.width("30%") .height(14)
.height(40) .strokeWidth(3)
.fontColor($r("app.color.item_color_black")) .color('#19ac88')
TextInput({ placeholder: "收物单" }) .opacity(0.6)
.enterKeyType(EnterKeyType.Search) .margin({ left: 8, right: 8 })
.borderColor("#454545") Text("物资管理")
.borderRadius(5) .fontWeight(FontWeight.Medium)
.width("70%") .fontSize(14)
.height(40) .fontColor($r("app.color.item_color_black"))
.padding(10) }.padding("2vp")
.backgroundColor($r("app.color.disabledColor")) .width("100%")
.enabled(false)
}.padding("10vp") Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) {
Text("凭证类型:")
.fontSize(14)
.width("30%")
.height(40)
.fontColor($r("app.color.item_color_black"))
TextInput({ placeholder: "收物单" })
.enterKeyType(EnterKeyType.Search)
.borderColor("#454545")
.borderRadius(5)
.width("70%")
.height(40)
.padding(10)
.backgroundColor($r("app.color.disabledColor"))
.enabled(false)
}.padding("10vp")
Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) {
Text("凭证号:")
.fontSize(14)
.width("30%")
.height(40)
.fontColor($r("app.color.item_color_black"))
TextInput({ placeholder: "请输入凭证号" })
.enterKeyType(EnterKeyType.Search)
.borderRadius(5)
.width("70%")
.height(40)
.padding(10)
.backgroundColor($r("app.color.disabledColor"))
}.padding("10vp")
Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) {
Text("库房:")
.fontSize(14)
.width("30%")
.height(40)
.fontColor($r("app.color.item_color_black"))
Select([{ value: "1号库房" }, { value: "2号库房" }])
.value('请选择库房')
.width(230)
.borderWidth(2)
.borderRadius(5)
.height(40)
.borderColor($r("app.color.rank_secondary_border"))
.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(40)
.fontColor($r("app.color.item_color_black"))
TextInput({ placeholder: "调入" })
.enterKeyType(EnterKeyType.Search)
.borderColor("#454545")
.borderRadius(5)
.width("70%")
.height(40)
.padding(10)
.backgroundColor($r("app.color.disabledColor"))
.enabled(false)
}.padding("10vp")
Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) {
Text("发物管理单位:")
.fontSize(14)
.width("30%")
.height(40)
.fontColor($r("app.color.item_color_black"))
Select([{ value: "1号库房" }, { value: "2号库房" }])
.value('请选择发物管理单位')
.width(230)
.borderWidth(2)
.borderRadius(5)
.height(40)
.borderColor("#7E7E7E")
.onSelect((index: number, value?: string) => {
})
.flexGrow(1)
}.padding("10vp")
Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) {
Text("收物管理单位:")
.fontSize(14)
.width("30%")
.height(40)
.fontColor($r("app.color.item_color_black"))
Select([{ value: "1号库房" }, { value: "2号库房" }])
.value('请选择收物管理单位')
.width(230)
.borderWidth(2)
.borderRadius(5)
.height(40)
.borderColor("#7E7E7E")
.onSelect((index: number, value?: string) => {
})
.flexGrow(1)
}.padding("10vp")
Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) {
Text("凭证号:") Text("账目类型:")
.fontSize(14) .fontSize(14)
.width("30%") .width("30%")
.height(40) .height(40)
.fontColor($r("app.color.item_color_black")) .fontColor($r("app.color.item_color_black"))
TextInput({ placeholder: "请输入凭证号" }) Select([{ value: "正常供应被装帐" }, { value: "战略储备被装预计帐" }, { value: "战役储备被装预计帐" }, {
.enterKeyType(EnterKeyType.Search) value: "战术储备被装预计帐"
.borderRadius(5) }])
.width("70%") .value('请选择账目类型')
.height(40) .width(230)
.padding(10) .borderWidth(2)
.backgroundColor($r("app.color.disabledColor")) .borderRadius(5)
}.padding("10vp") .height(40)
.borderColor("#7E7E7E")
.onSelect((index: number, value?: string) => {
})
.padding(5)
.flexGrow(1)
}.padding("10vp").width("100%")
Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { Flex({ justifyContent: FlexAlign.SpaceBetween, alignItems: ItemAlign.Center }) {
Text("库房:") Text("运单号:")
.fontSize(14) .fontSize(14)
.width("30%") .height(40)
.height(40) .fontColor($r("app.color.item_color_black"))
.fontColor($r("app.color.item_color_black")) TextInput({ placeholder: "请输入运单号" })
Select([{ value: "1号库房" }, { value: "2号库房" }]) .enterKeyType(EnterKeyType.Search)
.value('请选择库房') .borderRadius(5)
.width(230) .backgroundColor($r("app.color.disabledColor"))
.borderWidth(2) .width("70%")
.borderRadius(5) .height(40)
.height(40) .padding(10)
.borderColor($r("app.color.rank_secondary_border")) }.margin("10vp").width("100%")
.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(40)
.fontColor($r("app.color.item_color_black"))
TextInput({ placeholder: "调入" })
.enterKeyType(EnterKeyType.Search)
.borderColor("#454545")
.borderRadius(5)
.width("70%")
.height(40)
.padding(10)
.backgroundColor($r("app.color.disabledColor"))
.enabled(false)
}.padding("10vp")
Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { Flex({ justifyContent: FlexAlign.SpaceBetween, alignItems: ItemAlign.Center }) {
Text("发物管理单位:") Text("备注:")
.fontSize(14) .fontSize(14)
.width("30%") .height(40)
.height(40) .fontColor($r("app.color.item_color_black"))
.fontColor($r("app.color.item_color_black")) TextInput({ placeholder: "请输入备注" })
Select([{ value: "1号库房" }, { value: "2号库房" }]) .enterKeyType(EnterKeyType.Search)
.value('请选择发物管理单位') .borderRadius(5)
.width(230) .backgroundColor($r("app.color.disabledColor"))
.borderWidth(2) .width("70%")
.borderRadius(5) .height(40)
.height(40) .padding(10)
.borderColor("#7E7E7E") }.margin("10vp")
.onSelect((index: number, value?: string) => { }
}) .padding(20)
.flexGrow(1) .width("100%")
}.padding("10vp") .height("100%")
.borderRadius(15)
.backgroundColor("#fff")
}
Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { @Builder WzInfoRow() {
Text("收物管理单位:") Flex({ direction: FlexDirection.Column }) {
.fontSize(14) Flex({
.width("30%") direction: FlexDirection.Row, // 设置主轴方向,默认为Row
.height(40) alignItems: ItemAlign.Center // 设置交叉轴的对齐方式
.fontColor($r("app.color.item_color_black")) }) {
Select([{ value: "1号库房" }, { value: "2号库房" }]) Row() {
.value('请选择收物管理单位') Divider()
.width(230) .vertical(true)
.borderWidth(2) .height(14)
.borderRadius(5) .strokeWidth(3)
.height(40) .color('#19ac88')
.borderColor("#7E7E7E") .opacity(0.6)
.onSelect((index: number, value?: string) => { .margin({ left: 8, right: 8 })
}) Text("单位/库房信息")
.flexGrow(1) .fontWeight(FontWeight.Medium)
}.padding("10vp") .fontSize(14)
.fontColor($r("app.color.item_color_black"))
}
Text("浙江钧普科技股份有限公司1号库房")
.fontWeight(FontWeight.Medium)
.fontSize(21)
.fontColor($r("app.color.title_background"))
.width("80%")
.textAlign(TextAlign.Start)
.margin({left:15})
}.width("100%").height("15%").backgroundColor("#fff").padding({top:10,bottom:10,left:2,right:5})
Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { Flex({ direction: FlexDirection.Column }) {
Text("账目类型:") Flex({ justifyContent: FlexAlign.SpaceBetween, alignItems: ItemAlign.Center }) {
.fontSize(14) Row() {
.width("30%") Divider()
.height(40) .vertical(true)
.fontColor($r("app.color.item_color_black")) .height(14)
Select([{ value: "正常供应被装帐" }, { value: "战略储备被装预计帐" }, { value: "战役储备被装预计帐" }, { .strokeWidth(3)
value: "战术储备被装预计帐" .color('#19ac88')
}]) .opacity(0.6)
.value('请选择账目类型') .margin({ left: 8, right: 8 })
.width(230) Text("物资列表")
.borderWidth(2) .fontWeight(FontWeight.Medium)
.borderRadius(5) .fontSize(14)
.height(40) .fontColor($r("app.color.item_color_black"))
.borderColor("#7E7E7E") }
.onSelect((index: number, value?: string) => {
}) Row() {
.padding(5) Text("品种个数:").margin({ left: 10, right: 10 })
.flexGrow(1) Text("0").fontColor($r("app.color.title_background")).fontSize("24vp")
}.padding("10vp").width("100%") Text("合计数量").margin({ left: 10, right: 10 })
Flex({ justifyContent: FlexAlign.SpaceBetween, alignItems: ItemAlign.Center }) { Text("0").fontColor($r("app.color.title_background")).fontSize("24vp")
Text("运单号:") }
.fontSize(14) }.padding({ left: 2, right: 10, bottom: 20, top: 20 })
.height(40) .width("100%")
.fontColor($r("app.color.item_color_black"))
TextInput({ placeholder: "请输入运单号" }) Column() {
.enterKeyType(EnterKeyType.Search) BasicTable({ dataSource: [] })
.borderRadius(5) }.flexGrow(1)
.backgroundColor($r("app.color.disabledColor"))
.width("70%")
.height(40)
.padding(10)
}.margin("10vp").width("100%")
Flex({ justifyContent: FlexAlign.SpaceBetween, alignItems: ItemAlign.Center }) {
Text("备注:")
.fontSize(14)
.height(40)
.fontColor($r("app.color.item_color_black"))
TextInput({ placeholder: "请输入备注" })
.enterKeyType(EnterKeyType.Search)
.borderRadius(5)
.backgroundColor($r("app.color.disabledColor"))
.width("70%")
.height(40)
.padding(10)
}.margin("10vp")
} }
.padding(20) .padding({})
.width("100%")
.height("100%")
.borderRadius(15) .borderRadius(15)
.margin({ top: 20 })
.width("100%")
.backgroundColor("#fff") .backgroundColor("#fff")
} }
.width("100%")
.height("100%")
@Builder WzInfoRow() { }
build() {
Column() {
Flex({ direction: FlexDirection.Column }) { Flex({ direction: FlexDirection.Column }) {
Column() { TitleBar({ title: "物资新增" }).padding({ bottom: 10 })
Flex({justifyContent:FlexAlign.SpaceEvenly, alignItems: ItemAlign.Center}){ Tabs({ barPosition: BarPosition.Start, controller: this.controller }) {
Row() { TabContent() {
Divider() Column() {
.vertical(true) this.VoucherRow()
.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"))
}
.width("40%")
Text("浙江钧普科技股份有限公司1号库房")
.fontWeight(FontWeight.Medium)
.fontSize(21)
.fontColor($r("app.color.title_background"))
.width("60%")
.textAlign(TextAlign.Start)
.padding({left:2,bottom:20})
}.width("100%") }.width("100%")
}.padding({bottom:20,top:20})
.borderRadius(5)
.width("100%")
.backgroundColor("#fff")
Flex({ direction: FlexDirection.Column}) {
Flex({ justifyContent: FlexAlign.SpaceBetween, alignItems: ItemAlign.Center }){
Row() {
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"))
}
Row(){
Text("品种个数:").margin({left:10,right:10})
Text("0").fontColor($r("app.color.title_background")).fontSize("24vp")
Text("合计数量").margin({left:10,right:10})
Text("0").fontColor($r("app.color.title_background")).fontSize("24vp")
}
}.padding({left:2,right:10,bottom:20,top:20})
.width("100%")
Column(){
BasicTable({dataSource:[]})
}.flexGrow(1)
}.padding({}).borderRadius(15)
.margin({top:20})
.width("100%")
.backgroundColor("#fff")
}
.width("100%")
.height("100%")
} }.tabBar(this.TabBuilder(0, '凭证信息'))
build(){
Column() {
Flex({ direction: FlexDirection.Column }) {
TitleBar({ title: "物资新增" }).padding({bottom:10})
Tabs({ barPosition: BarPosition.Start, controller: this.controller }) {
TabContent() {
Column(){
this.VoucherRow()
}.width("100%")
}.tabBar(this.TabBuilder(0, '凭证信息')) TabContent() {
TabContent() { Column() {
Column(){ this.WzInfoRow()
this.WzInfoRow() }.width("100%")
}.width("100%") }.tabBar(this.TabBuilder(1, '物资信息'))
}.tabBar(this.TabBuilder(1, '物资信息')) }
} .margin({ left: 15, right: 15, top: 15 })
.margin({left:15,right:15,top:15}) .onChange((index: number) => {
.onChange((index: number) => { this.currentIndex = index
this.currentIndex = index })
}) Flex({ justifyContent: FlexAlign.SpaceEvenly, alignItems: ItemAlign.Center }) {
Row() { Button("射频扫码").CommonButtonStyle().width("45%")
Flex({ justifyContent: FlexAlign.SpaceEvenly, alignItems: ItemAlign.Center }) { Button("保存").CommonButtonStyle().width("45%")
Button("射频扫码").CommonButtonStyle().width("50%") }.height(80).width("100%")
Button("保存").CommonButtonStyle().width("50%") }
} }.linearGradient({
}.margin({left:20,right:20}).height(80) direction: GradientDirection.Right, // 渐变方向
} repeating: true, // 渐变颜色是否重复
}.linearGradient({ colors: [[0x36a3c0, 0.0], [0x97c6a6, 1], [0xc7d799, 0.0]] // 数组末尾元素占比小于1时满足重复着色效果
direction: GradientDirection.Right, // 渐变方向 })
repeating: true, // 渐变颜色是否重复 }
colors: [[0x36a3c0, 0.0], [0x97c6a6, 1], [0xc7d799, 0.0]] // 数组末尾元素占比小于1时满足重复着色效果
})
}
} }
\ No newline at end of file
import { TitleBar } from '../../view/title/TitleBar' import { TitleBar } from '../../view/title/TitleBar'
import { BasicTable } from '../../view/BasicTable/BasicTable' import { BasicTable } from '../../view/BasicTable/BasicTable'
import router from '@ohos.router'; import router from '@ohos.router';
import { Demo } from '../../view/demo/demo';
@Extend(Button) function bottomBtnSty() { @Extend(Button) function bottomBtnSty() {
.borderWidth(1) .borderWidth(1)
.padding({top:1,bottom:1,right:7,left:7}) .padding({top:1,bottom:1,right:7,left:7})
...@@ -15,6 +16,9 @@ import router from '@ohos.router'; ...@@ -15,6 +16,9 @@ import router from '@ohos.router';
@Component @Component
struct WzConversionPage{ struct WzConversionPage{
private searchcontroller: SearchController = new SearchController() private searchcontroller: SearchController = new SearchController()
itemClick() {
router.pushUrl({url:'pages/order_detail/PzAdjustModelPage'})
}
@Builder bottomButtons() { @Builder bottomButtons() {
Row() { Row() {
Flex({ justifyContent: FlexAlign.SpaceEvenly, alignItems: ItemAlign.Center }) { Flex({ justifyContent: FlexAlign.SpaceEvenly, alignItems: ItemAlign.Center }) {
...@@ -68,10 +72,10 @@ struct WzConversionPage{ ...@@ -68,10 +72,10 @@ struct WzConversionPage{
}.height(60) }.height(60)
}.width("100%") }.width("100%")
.padding('15vp') .padding('15vp')
Row(){ // 列表
// 底部按钮 Column() {
this.bottomButtons(); Demo({itemClick: this.itemClick}).width('90%')
}.width("100%").padding("2vp").height(40) }.flexGrow(1).backgroundColor('#fff').alignSelf(ItemAlign.Center)
Column(){ Column(){
BasicTable({dataSource:[]}) BasicTable({dataSource:[]})
}.flexGrow(1) }.flexGrow(1)
......
import { TitleBar } from '../../view/title/TitleBar' import { TitleBar } from '../../view/title/TitleBar'
import { BasicTable } from '../../view/BasicTable/BasicTable' import { BasicTable } from '../../view/BasicTable/BasicTable'
import router from '@ohos.router'; import router from '@ohos.router';
import { Demo } from '../../view/demo/demo';
@Extend(Button) function bottomBtnSty() { @Extend(Button) function bottomBtnSty() {
.borderWidth(1) .borderWidth(1)
.padding({top:1,bottom:1,right:7,left:7}) .padding({top:1,bottom:1,right:7,left:7})
...@@ -20,7 +21,9 @@ struct WzExchangePage{ ...@@ -20,7 +21,9 @@ struct WzExchangePage{
@State currentIndex: number = 0 @State currentIndex: number = 0
private controller: TabsController = new TabsController() private controller: TabsController = new TabsController()
private searchcontroller: SearchController = new SearchController() private searchcontroller: SearchController = new SearchController()
itemClick() {
router.pushUrl({url:'pages/order_detail/PzAdjustModelPage'})
}
@Builder TabBuilder(index: number, name: string) { @Builder TabBuilder(index: number, name: string) {
Column() { Column() {
Text(name) Text(name)
...@@ -105,9 +108,10 @@ struct WzExchangePage{ ...@@ -105,9 +108,10 @@ struct WzExchangePage{
this.currentIndex = index this.currentIndex = index
}) })
Column(){ // 列表
BasicTable({dataSource:[]}) Column() {
}.flexGrow(1) Demo({itemClick: this.itemClick}).width('90%')
}.flexGrow(1).backgroundColor('#fff').alignSelf(ItemAlign.Center)
Row(){ Row(){
// 底部按钮 // 底部按钮
......
...@@ -26,7 +26,7 @@ export struct WzInPage { ...@@ -26,7 +26,7 @@ export struct WzInPage {
private searchcontroller: SearchController = new SearchController() private searchcontroller: SearchController = new SearchController()
itemClick() { itemClick() {
router.pushUrl({url:'pages/order_detail/PzInvDetailPage'}) router.pushUrl({url:'pages/order_detail/PzInOutDetailPage'})
} }
@Builder container() { @Builder container() {
......
import { TitleBar } from '../../view/title/TitleBar' import { TitleBar } from '../../view/title/TitleBar'
import { BasicTable } from '../../view/BasicTable/BasicTable' import { BasicTable } from '../../view/BasicTable/BasicTable'
import { Demo } from '../../view/demo/demo';
import router from '@ohos.router';
@Extend(Button) function bottomBtnSty() { @Extend(Button) function bottomBtnSty() {
.borderWidth(1) .borderWidth(1)
.borderColor('#0fa983') .borderColor('#0fa983')
...@@ -17,6 +19,10 @@ struct WzInvPage{ ...@@ -17,6 +19,10 @@ struct WzInvPage{
@State currentIndex: number = 0 @State currentIndex: number = 0
private controller: TabsController = new TabsController() private controller: TabsController = new TabsController()
private searchcontroller: SearchController = new SearchController() private searchcontroller: SearchController = new SearchController()
itemClick() {
router.pushUrl({url:'pages/order_detail/PzInvDetailPage'})
}
@Builder TabBuilder(index: number, name: string) { @Builder TabBuilder(index: number, name: string) {
Column() { Column() {
Text(name) Text(name)
...@@ -86,9 +92,10 @@ struct WzInvPage{ ...@@ -86,9 +92,10 @@ struct WzInvPage{
.onChange((index: number) => { .onChange((index: number) => {
this.currentIndex = index this.currentIndex = index
}) })
Column(){ // 列表
BasicTable({dataSource:[]}) Column() {
}.flexGrow(1) Demo({itemClick: this.itemClick}).width('90%')
}.flexGrow(1).backgroundColor('#fff').alignSelf(ItemAlign.Center)
Row(){ Row(){
// 底部按钮 // 底部按钮
this.bottomButtons(); this.bottomButtons();
......
import { TitleBar } from '../../view/title/TitleBar' import { TitleBar } from '../../view/title/TitleBar'
import { BasicTable } from '../../view/BasicTable/BasicTable' import { Demo } from '../../view/demo/demo';
import router from '@ohos.router'; import router from '@ohos.router';
@Extend(Button) function bottomBtnSty() { @Extend(Button) function bottomBtnSty() {
.borderWidth(1) .borderWidth(1)
...@@ -20,6 +20,9 @@ export struct WzOutPage { ...@@ -20,6 +20,9 @@ export struct WzOutPage {
@State currentIndex: number = 0 @State currentIndex: number = 0
private controller: TabsController = new TabsController() private controller: TabsController = new TabsController()
private searchcontroller: SearchController = new SearchController() private searchcontroller: SearchController = new SearchController()
itemClick() {
router.pushUrl({url:'pages/order_detail/PzInOutDetailPage'})
}
@Builder TabBuilder(index: number, name: string) { @Builder TabBuilder(index: number, name: string) {
Column() { Column() {
...@@ -104,9 +107,10 @@ export struct WzOutPage { ...@@ -104,9 +107,10 @@ export struct WzOutPage {
.onChange((index: number) => { .onChange((index: number) => {
this.currentIndex = index this.currentIndex = index
}) })
Column(){ // 列表
BasicTable({dataSource:[]}) Column() {
}.flexGrow(1) Demo({itemClick: this.itemClick}).width('90%')
}.flexGrow(1).backgroundColor('#fff').alignSelf(ItemAlign.Center)
Row(){ Row(){
// 底部按钮 // 底部按钮
this.bottomButtons(); this.bottomButtons();
......
import { TitleBar } from '../../view/title/TitleBar' import { TitleBar } from '../../view/title/TitleBar'
import { BasicTable } from '../../view/BasicTable/BasicTable' import { BasicTable } from '../../view/BasicTable/BasicTable'
import { Demo } from '../../view/demo/demo';
import router from '@ohos.router';
@Extend(Button) function bottomBtnSty() { @Extend(Button) function bottomBtnSty() {
.borderWidth(1) .borderWidth(1)
.borderColor('#0fa983') .borderColor('#0fa983')
...@@ -18,6 +19,9 @@ struct WzPositionPage{ ...@@ -18,6 +19,9 @@ struct WzPositionPage{
@State selectedFontColor: string = '#fff' @State selectedFontColor: string = '#fff'
@State currentIndex: number = 0 @State currentIndex: number = 0
@State titleBarPadding:number=0 @State titleBarPadding:number=0
itemClick() {
router.pushUrl({url:'pages/order_detail/PzPourStoragePage'})
}
@Builder bottomButtons() { @Builder bottomButtons() {
Row() { Row() {
Flex({ justifyContent: FlexAlign.SpaceEvenly, alignItems: ItemAlign.Center }) { Flex({ justifyContent: FlexAlign.SpaceEvenly, alignItems: ItemAlign.Center }) {
...@@ -62,9 +66,10 @@ struct WzPositionPage{ ...@@ -62,9 +66,10 @@ struct WzPositionPage{
// 底部按钮 // 底部按钮
this.bottomButtons(); this.bottomButtons();
}.width("100%").height(80) }.width("100%").height(80)
Column(){ // 列表
BasicTable({dataSource:[]}) Column() {
}.flexGrow(1) Demo({itemClick: this.itemClick}).width('90%')
}.flexGrow(1).backgroundColor('#fff').alignSelf(ItemAlign.Center)
} }
}.linearGradient({ }.linearGradient({
......
import { TitleBar } from '../../view/title/TitleBar' import { TitleBar } from '../../view/title/TitleBar'
import { BasicTable } from '../../view/BasicTable/BasicTable' import { BasicTable } from '../../view/BasicTable/BasicTable'
import { Demo } from '../../view/demo/demo';
import router from '@ohos.router';
@Extend(Button) function bottomBtnSty() { @Extend(Button) function bottomBtnSty() {
.borderWidth(1) .borderWidth(1)
.borderColor('#0fa983') .borderColor('#0fa983')
...@@ -18,7 +20,9 @@ struct WzReversePage{ ...@@ -18,7 +20,9 @@ struct WzReversePage{
@State currentIndex: number = 0 @State currentIndex: number = 0
private controller: TabsController = new TabsController() private controller: TabsController = new TabsController()
private searchcontroller: SearchController = new SearchController() private searchcontroller: SearchController = new SearchController()
itemClick() {
router.pushUrl({url:'pages/order_detail/PzPourStoragePage'})
}
@Builder TabBuilder(index: number, name: string) { @Builder TabBuilder(index: number, name: string) {
Column() { Column() {
Text(name) Text(name)
...@@ -87,9 +91,10 @@ struct WzReversePage{ ...@@ -87,9 +91,10 @@ struct WzReversePage{
.onChange((index: number) => { .onChange((index: number) => {
this.currentIndex = index this.currentIndex = index
}) })
Column(){ // 列表
BasicTable({dataSource:[]}) Column() {
}.flexGrow(1) Demo({itemClick: this.itemClick}).width('90%')
}.flexGrow(1).backgroundColor('#fff').alignSelf(ItemAlign.Center)
Row(){ Row(){
// 底部按钮 // 底部按钮
this.bottomButtons(); this.bottomButtons();
......
import { TitleBar } from '../../view/title/TitleBar' import { TitleBar } from '../../view/title/TitleBar'
import { BasicTable } from '../../view/BasicTable/BasicTable' import { BasicTable } from '../../view/BasicTable/BasicTable'
import router from '@ohos.router';
@Extend(Button) function CommonButtonStyle() { @Extend(Button) function CommonButtonStyle() {
.borderWidth(2) .borderWidth(2)
.borderColor('#0fa983') .borderColor('#0fa983')
...@@ -273,7 +275,9 @@ struct PzAdjustModelPage{ ...@@ -273,7 +275,9 @@ struct PzAdjustModelPage{
.onChange((value: string) => { .onChange((value: string) => {
}).margin({left:10}) }).margin({left:10})
.borderRadius(5) .borderRadius(5)
Button("查看状态").CommonButtonStyle().width("25%").margin({left:5,right:5}) Button("查看状态").CommonButtonStyle().width("25%").margin({left:5,right:5}).onClick(()=>{
router.pushUrl({url:'pages/metailmange/WzStatus'})
})
}.width("100%") }.width("100%")
}.padding({top:10,bottom:10}).width("100%") }.padding({top:10,bottom:10}).width("100%")
Column(){ Column(){
......
import { TitleBar } from '../../view/title/TitleBar' import { TitleBar } from '../../view/title/TitleBar'
import { BasicTable } from '../../view/BasicTable/BasicTable' import { BasicTable } from '../../view/BasicTable/BasicTable'
import router from '@ohos.router';
@Extend(Button) function CommonButtonStyle() { @Extend(Button) function CommonButtonStyle() {
.borderWidth(2) .borderWidth(2)
.borderColor('#0fa983') .borderColor('#0fa983')
...@@ -247,7 +248,9 @@ struct PzInOutDetailPage{ ...@@ -247,7 +248,9 @@ struct PzInOutDetailPage{
.onChange((value: string) => { .onChange((value: string) => {
}).margin({left:10}) }).margin({left:10})
.borderRadius(5) .borderRadius(5)
Button("查看状态").CommonButtonStyle().width("25%").margin({left:5,right:5}) Button("查看状态").CommonButtonStyle().width("25%").margin({left:5,right:5}).onClick(()=>{
router.pushUrl({url:'pages/metailmange/WzStatus'})
})
}.width("100%") }.width("100%")
}.padding({top:10,bottom:10}).width("100%") }.padding({top:10,bottom:10}).width("100%")
Column(){ Column(){
......
import { TitleBar } from '../../view/title/TitleBar' import { TitleBar } from '../../view/title/TitleBar'
import { BasicTable } from '../../view/BasicTable/BasicTable' import { BasicTable } from '../../view/BasicTable/BasicTable'
import router from '@ohos.router';
@Extend(Button) function CommonButtonStyle() { @Extend(Button) function CommonButtonStyle() {
.borderWidth(2) .borderWidth(2)
.borderColor('#0fa983') .borderColor('#0fa983')
...@@ -232,7 +234,9 @@ struct PzInvDetailPage{ ...@@ -232,7 +234,9 @@ struct PzInvDetailPage{
.onChange((value: string) => { .onChange((value: string) => {
}).margin({left:10}) }).margin({left:10})
.borderRadius(5) .borderRadius(5)
Button("查看状态").CommonButtonStyle().width("25%").margin({left:5,right:5}) Button("查看状态").CommonButtonStyle().width("25%").margin({left:5,right:5}).onClick(()=>{
router.pushUrl({url:'pages/metailmange/WzStatus'})
})
}.width("100%") }.width("100%")
}.padding({top:10,bottom:10}).width("100%") }.padding({top:10,bottom:10}).width("100%")
Column(){ Column(){
......
import { TitleBar } from '../../view/title/TitleBar' import { TitleBar } from '../../view/title/TitleBar'
import { BasicTable } from '../../view/BasicTable/BasicTable' import { BasicTable } from '../../view/BasicTable/BasicTable'
import router from '@ohos.router';
@Extend(Button) function CommonButtonStyle() { @Extend(Button) function CommonButtonStyle() {
.borderWidth(2) .borderWidth(2)
.borderColor('#0fa983') .borderColor('#0fa983')
...@@ -311,7 +313,9 @@ struct PzPourStoragePage{ ...@@ -311,7 +313,9 @@ struct PzPourStoragePage{
.onChange((value: string) => { .onChange((value: string) => {
}).margin({left:10}) }).margin({left:10})
.borderRadius(5) .borderRadius(5)
Button("查看状态").CommonButtonStyle().width("25%").margin({left:5,right:5}) Button("查看状态").CommonButtonStyle().width("25%").margin({left:5,right:5}).onClick(()=>{
router.pushUrl({url:'pages/metailmange/WzStatus'})
})
}.width("100%") }.width("100%")
}.padding({top:10,bottom:10}).width("100%") }.padding({top:10,bottom:10}).width("100%")
Column(){ Column(){
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
"pages/order_detail/PzInvDetailPage", "pages/order_detail/PzInvDetailPage",
"pages/order_detail/PzPourStoragePage", "pages/order_detail/PzPourStoragePage",
"pages/sub_systemMaintenance/Version", "pages/sub_systemMaintenance/Version",
"pages/sub_systemMaintenance/Feedback" "pages/sub_systemMaintenance/Feedback",
"pages/metailmange/WzStatus"
] ]
} }
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论