Commit 8197c372 by 毛勇泽

图标+创建临时收发物单

parent 157e5018
{ {
"app": { "app": {
"signingConfigs": [], "signingConfigs": [
{
"name": "default",
"type": "HarmonyOS",
"material": {
"certpath": "C:\\Users\\Administrator\\.ohos\\config\\auto_debug_StoreManagement_com.junmp.store_management_80086000137761574.cer",
"storePassword": "0000001AA1F94F9275E69E7D71EA60FFFDA63D0E446A208F4D7F23681A4628CFA87B62A93422A8EE005F",
"keyAlias": "debugKey",
"keyPassword": "0000001A3460D9B6DDA73B29063AD7DC6F583D3E33894F3F1EB87E0B2760DFE66191403E13815EFA7BF2",
"profile": "C:\\Users\\Administrator\\.ohos\\config\\auto_debug_StoreManagement_com.junmp.store_management_80086000137761574.p7b",
"signAlg": "SHA256withECDSA",
"storeFile": "C:\\Users\\Administrator\\.ohos\\config\\auto_debug_StoreManagement_com.junmp.store_management_80086000137761574.p12"
}
}
],
"compileSdkVersion": 9, "compileSdkVersion": 9,
"compatibleSdkVersion": 9, "compatibleSdkVersion": 9,
"products": [ "products": [
......
...@@ -63,7 +63,7 @@ export class StatusBarManager { ...@@ -63,7 +63,7 @@ export class StatusBarManager {
windowClass.setWindowSystemBarEnable(['status']).then(() => { windowClass.setWindowSystemBarEnable(['status']).then(() => {
//4、设置状态栏透明背景 //4、设置状态栏透明背景
const systemBarProperties: window.SystemBarProperties = { const systemBarProperties: window.SystemBarProperties = {
statusBarColor: '#0FA983' statusBarColor: '#00000000'
}; };
//设置窗口内导航栏、状态栏的属性 //设置窗口内导航栏、状态栏的属性
windowClass.setWindowSystemBarProperties(systemBarProperties) windowClass.setWindowSystemBarProperties(systemBarProperties)
...@@ -149,6 +149,7 @@ export class StatusBarManager { ...@@ -149,6 +149,7 @@ export class StatusBarManager {
if (this.mConfig.hasKey(this.CONFIG_SYSTEM_BAR_HEIGHT)) { if (this.mConfig.hasKey(this.CONFIG_SYSTEM_BAR_HEIGHT)) {
height = this.mConfig.get(this.CONFIG_SYSTEM_BAR_HEIGHT) as number; height = this.mConfig.get(this.CONFIG_SYSTEM_BAR_HEIGHT) as number;
} }
console.log("偏移量"+height)
return height; return height;
} }
......
{ {
"name": "entry", "license": "entry",
"version": "1.0.0",
"devDependencies": {}, "devDependencies": {},
"repository": {}, "author": "",
"name": "entry",
"description": "Please describe the basic information.", "description": "Please describe the basic information.",
"main": "", "main": "",
"author": "", "repository": {},
"license": "entry", "version": "1.0.0",
"dependencies": { "dependencies": {
"@ohos/common": "file:../common",
"@ohos/direct": "file:../features/DirectConnect",
"@ohos/material": "file:../features/MaterialManagement", "@ohos/material": "file:../features/MaterialManagement",
"@ohos/direct": "file:../features/DirectConnect",
"@ohos/pagemanagement": "file:../features/PageManagement", "@ohos/pagemanagement": "file:../features/PageManagement",
"@ohos/system": "file:../features/SystemMaintenance" "@ohos/system": "file:../features/SystemMaintenance",
"@ohos/common": "file:../common"
} }
} }
...@@ -257,21 +257,20 @@ struct AddConversionPage { ...@@ -257,21 +257,20 @@ struct AddConversionPage {
build() { build() {
Column() { Column() {
Flex({ direction: FlexDirection.Column }) { Flex({ direction: FlexDirection.Column }) {
TitleBar({ title: "物资换位" }) TitleBar({ title: "物资换位" }).padding({bottom:10})
Tabs({ barPosition: BarPosition.Start, controller: this.controller }) { Tabs({ barPosition: BarPosition.Start, controller: this.controller }) {
TabContent() { TabContent() {
Column(){ Column(){
this.VoucherRow() this.VoucherRow()
}.width("100%").margin({top:15}) }.width("100%")
}.tabBar(this.TabBuilder(0, '凭证信息')) }.tabBar(this.TabBuilder(0, '凭证信息'))
TabContent() { TabContent() {
Column(){ Column(){
this.WzInfoRow() this.WzInfoRow()
}.width("100%").margin({top:15}) }.width("100%")
}.tabBar(this.TabBuilder(1, '物资信息')) }.tabBar(this.TabBuilder(1, '物资信息'))
} }.margin({left:15,right:15})
.margin(15)
.onChange((index: number) => { .onChange((index: number) => {
this.currentIndex = index this.currentIndex = index
}) })
......
import { TitleBar } from '../../view/title/TitleBar'
import { BasicTable } from '../../view/BasicTable/BasicTable'
@Extend(Button) function CommonButtonStyle() {
.borderWidth(2)
.borderColor('#0fa983')
.backgroundColor('#97c6a6')
.fontColor('#fff')
.borderRadius(5)
.type(ButtonType.Normal)
.stateEffect(true)
}
@Entry
@Component
export struct AddTemporaryInPage {
@State fontColor: string = '#182431'
@State selectedFontColor: string = '#fff'
@State currentIndex: number = 0
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(22)
.margin({ bottom: 7 })
Divider()
.strokeWidth(2)
.color('#fff')
.width(50)
.opacity(this.currentIndex === index ? 1 : 0)
}.width('100%')
}
@Builder VoucherRow() {
Flex({ direction: FlexDirection.Column }) {
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"))
}.padding("2vp")
.width("100%")
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 }) {
Text("账目类型:")
.fontSize(14)
.width("30%")
.height(40)
.fontColor($r("app.color.item_color_black"))
Select([{ value: "正常供应被装帐" }, { value: "战略储备被装预计帐" }, { value: "战役储备被装预计帐" }, {
value: "战术储备被装预计帐"
}])
.value('请选择账目类型')
.width(230)
.borderWidth(2)
.borderRadius(5)
.height(40)
.borderColor("#7E7E7E")
.onSelect((index: number, value?: string) => {
})
.padding(5)
.flexGrow(1)
}.padding("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").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)
.width("100%")
.height("100%")
.borderRadius(15)
.backgroundColor("#fff")
}
@Builder WzInfoRow() {
Flex({ direction: FlexDirection.Column }) {
Column() {
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"))
}.padding({left:2})
.width("100%")
.height(40)
}
.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%")
}
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() {
Column(){
this.WzInfoRow()
}.width("100%")
}.tabBar(this.TabBuilder(1, '物资信息'))
}
.margin({left:15,right:15})
.onChange((index: number) => {
this.currentIndex = index
})
Row() {
Flex({ justifyContent: FlexAlign.SpaceEvenly, alignItems: ItemAlign.Center }) {
Button("射频扫码").CommonButtonStyle().width("50%")
Button("保存").CommonButtonStyle().width("50%")
}
}.margin({left:20,right:20}).height(80)
}
}.linearGradient({
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 { BasicTable } from '../../view/BasicTable/BasicTable'
@Extend(Button) function CommonButtonStyle() {
.borderWidth(2)
.borderColor('#0fa983')
.backgroundColor('#97c6a6')
.fontColor('#fff')
.borderRadius(5)
.type(ButtonType.Normal)
.stateEffect(true)
}
@Entry
@Component
struct AddTemporaryOutPage{
@State fontColor: string = '#182431'
@State selectedFontColor: string = '#fff'
@State currentIndex: number = 0
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(22)
.margin({bottom: 7 })
Divider()
.strokeWidth(2)
.color('#fff')
.width(50)
.opacity(this.currentIndex === index ? 1 : 0)
}.width('100%')
}
@Builder VoucherRow() {
Flex({ direction: FlexDirection.Column }) {
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"))
}.padding("2vp")
.width("100%")
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 }) {
Text("账目类型:")
.fontSize(14)
.width("30%")
.height(40)
.fontColor($r("app.color.item_color_black"))
Select([{ value: "正常供应被装帐" }, { value: "战略储备被装预计帐" }, { value: "战役储备被装预计帐" }, {
value: "战术储备被装预计帐"
}])
.value('请选择账目类型')
.width(230)
.borderWidth(2)
.borderRadius(5)
.height(40)
.borderColor("#7E7E7E")
.onSelect((index: number, value?: string) => {
})
.padding(5)
.flexGrow(1)
}.padding("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)
}.padding("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)
}.padding("10vp")
}
.padding(20)
.width("100%")
.height("100%")
.borderRadius(15)
.backgroundColor("#fff")
}
@Builder WzInfoRow() {
Flex({ direction: FlexDirection.Column }) {
Column() {
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"))
}.padding({left:2})
.width("100%")
.height(40)
}
.borderRadius(5)
.width("100%")
.backgroundColor("#fff")
.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/0").fontColor($r("app.color.title_background")).fontSize("24vp")
}
}.padding({left:2,right:10})
.width("100%")
Column(){
BasicTable({dataSource:[]})
}.flexGrow(1)
}.padding({bottom:20,top:20}).borderRadius(15)
.margin({top:20})
.width("100%")
.backgroundColor("#fff")
}
.width("100%")
.height("100%")
}
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() {
Column(){
this.WzInfoRow()
}.width("100%")
}.tabBar(this.TabBuilder(1, '物资信息'))
}
.margin({left:15,right:15})
.onChange((index: number) => {
this.currentIndex = index
})
Row() {
Flex({ justifyContent: FlexAlign.SpaceEvenly, alignItems: ItemAlign.Center }) {
Button("射频扫码").CommonButtonStyle().width("50%")
Button("保存").CommonButtonStyle().width("50%")
}
}.margin({left:20,right:20}).height(80)
}.width("100%")
}.linearGradient({
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';
@Extend(Button) function bottomBtnSty() {
.borderWidth(1)
.padding({top:1,bottom:1,right:7,left:7})
.borderColor('#0fa983')
.backgroundColor('#fff')
.fontColor('#0fa983')
.borderRadius(7)
.type(ButtonType.Normal)
.stateEffect(true)
}
@Entry @Entry
@Component @Component
export struct WzInPage { export struct WzInPage {
...@@ -15,7 +28,7 @@ export struct WzInPage { ...@@ -15,7 +28,7 @@ export struct WzInPage {
.fontColor(this.currentIndex === index ? this.selectedFontColor : this.fontColor) .fontColor(this.currentIndex === index ? this.selectedFontColor : this.fontColor)
.fontSize(16) .fontSize(16)
.lineHeight(22) .lineHeight(22)
.margin({ top: 17, bottom: 7 }) .margin({bottom: 7 })
Divider() Divider()
.strokeWidth(2) .strokeWidth(2)
.color('#fff') .color('#fff')
...@@ -23,6 +36,39 @@ export struct WzInPage { ...@@ -23,6 +36,39 @@ export struct WzInPage {
.opacity(this.currentIndex === index ? 1 : 0) .opacity(this.currentIndex === index ? 1 : 0)
}.width('100%') }.width('100%')
} }
@Builder bottomButtons() {
Row() {
Flex({ justifyContent: FlexAlign.SpaceEvenly, alignItems: ItemAlign.Center }) {
Button("临时收物")
.visibility(this.currentIndex === 1 ? Visibility.Visible:Visibility.None)
.bottomBtnSty()
.onClick( () => {
router.pushUrl({
url: "pages/metailmange/AddTemporaryInPage",
})
})
.fontColor("#0fa983")
.fontSize("14vp")
Button("设置状态")
.bottomBtnSty()
.onClick(() => {
})
.fontColor("#0fa983")
.fontSize("14vp")
Button("导出数据包")
.bottomBtnSty()
.onClick(() => {
}).fontColor("#0fa983") .fontSize("14vp")
Button("全选")
.bottomBtnSty().fontColor("#0fa983") .fontSize("14vp")
Button("清空选择")
.bottomBtnSty()
.onClick(() =>{
}).fontColor("#0fa983") .fontSize("14vp")
}
}.height(80)
}
build(){ build(){
Column() { Column() {
Flex({direction:FlexDirection.Column}){ Flex({direction:FlexDirection.Column}){
...@@ -72,18 +118,15 @@ export struct WzInPage { ...@@ -72,18 +118,15 @@ export struct WzInPage {
right:10 right:10
}) })
} }
}.margin({top:-15}) }.margin({top:-30})
.width("100%") .width("100%")
.padding('15vp') .padding('15vp')
Column(){ Column(){
BasicTable({dataSource:[]}) BasicTable({dataSource:[]})
}.flexGrow(1) }.flexGrow(1)
Row(){ Row(){
Flex({justifyContent:FlexAlign.SpaceAround}){ // 底部按钮
Button("打印面单").width("15%") this.bottomButtons();
Button("扫码取件").width("15%")
Button("手动取件").width("15%")
}
}.backgroundColor("#97c6a6").width("100%").height(80) }.backgroundColor("#97c6a6").width("100%").height(80)
} }
}.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 router from '@ohos.router';
@Extend(Button) function bottomBtnSty() { @Extend(Button) function bottomBtnSty() {
.borderWidth(2) .borderWidth(1)
.padding({top:1,bottom:1,right:7,left:7})
.borderColor('#0fa983') .borderColor('#0fa983')
.backgroundColor('#fff') .backgroundColor('#fff')
.fontColor('#0fa983') .fontColor('#0fa983')
.borderRadius(10) .borderRadius(7)
.type(ButtonType.Normal) .type(ButtonType.Normal)
.stateEffect(true) .stateEffect(true)
...@@ -36,9 +38,19 @@ export struct WzOutPage { ...@@ -36,9 +38,19 @@ export struct WzOutPage {
@Builder bottomButtons() { @Builder bottomButtons() {
Row() { Row() {
Flex({ justifyContent: FlexAlign.SpaceEvenly, alignItems: ItemAlign.Center }) { Flex({ justifyContent: FlexAlign.SpaceEvenly, alignItems: ItemAlign.Center }) {
Button("临时发物")
.visibility(this.currentIndex === 1 ? Visibility.Visible:Visibility.None)
.bottomBtnSty()
.onClick( () => {
router.pushUrl({
url: "pages/metailmange/AddTemporaryOutPage",
})
})
.fontColor("#0fa983")
.fontSize("14vp")
Button("设置状态") Button("设置状态")
.bottomBtnSty() .bottomBtnSty()
.onClick(async () => { .onClick(() => {
}) })
.fontColor("#0fa983") .fontColor("#0fa983")
.fontSize("14vp") .fontSize("14vp")
...@@ -50,7 +62,7 @@ export struct WzOutPage { ...@@ -50,7 +62,7 @@ export struct WzOutPage {
.bottomBtnSty().fontColor("#0fa983") .fontSize("14vp") .bottomBtnSty().fontColor("#0fa983") .fontSize("14vp")
Button("清空选择") Button("清空选择")
.bottomBtnSty() .bottomBtnSty()
.onClick(async () =>{ .onClick(() =>{
}).fontColor("#0fa983") .fontSize("14vp") }).fontColor("#0fa983") .fontSize("14vp")
} }
......
...@@ -12,7 +12,8 @@ ...@@ -12,7 +12,8 @@
"pages/metailmange/WzPositionPage", "pages/metailmange/WzPositionPage",
"pages/metailmange/WzReversePage", "pages/metailmange/WzReversePage",
"pages/metailmange/AddConversionPage", "pages/metailmange/AddConversionPage",
"pages/metailmange/WzReversePage", "pages/metailmange/AddTemporaryInPage",
"pages/metailmange/AddTemporaryOutPage",
"pages/sub_systemMaintenance/Unit", "pages/sub_systemMaintenance/Unit",
"pages/sub_systemMaintenance/Warehouse", "pages/sub_systemMaintenance/Warehouse",
"pages/sub_systemMaintenance/GoodsShelf", "pages/sub_systemMaintenance/GoodsShelf",
......
{ {
"name": "directconnect", "license": "Apache-2.0",
"version": "1.0.0", "devDependencies": {},
"author": "",
"name": "@ohos/direct",
"description": "Please describe the basic information.", "description": "Please describe the basic information.",
"main": "index.ets", "main": "index.ets",
"name": "@ohos/direct", "version": "1.0.0",
"author": "",
"license": "Apache-2.0",
"dependencies": { "dependencies": {
"@ohos/common": "file:../../common" "@ohos/common": "file:../../common"
} }
......
{ {
"version": "1.0.0", "license": "Apache-2.0",
"devDependencies": {},
"author": "",
"name": "@ohos/material",
"description": "Please describe the basic information.", "description": "Please describe the basic information.",
"main": "index.ets", "main": "index.ets",
"name": "@ohos/material", "version": "1.0.0",
"author": "",
"license": "Apache-2.0",
"dependencies": { "dependencies": {
"@ohos/common": "file:../../common" "@ohos/common": "file:../../common"
} }
......
...@@ -8,13 +8,13 @@ export class GridWordViewModel { ...@@ -8,13 +8,13 @@ export class GridWordViewModel {
*/ */
getGridWorkData(): Array<ItemData> { getGridWorkData(): Array<ItemData> {
let secondGridData: ItemData[] = [ let secondGridData: ItemData[] = [
new ItemData($r('app.string.wz_out'), $r('app.media.font'), 'out'), new ItemData($r('app.string.wz_out'), $r('app.media.icon_hr_out'), 'out'),
new ItemData($r('app.string.wz_in'), $r('app.media.font'), 'in'), new ItemData($r('app.string.wz_in'), $r('app.media.icon_hr_in'), 'in'),
new ItemData($r('app.string.wz_exchange'), $r('app.media.font'), 'exchange'), new ItemData($r('app.string.wz_exchange'), $r('app.media.icon_hr_th'), 'exchange'),
new ItemData($r('app.string.wz_reverse'), $r('app.media.font'), 'reverse'), new ItemData($r('app.string.wz_reverse'), $r('app.media.icon_hr_tiaohao'), 'reverse'),
new ItemData($r('app.string.wz_inv'), $r('app.media.font'), 'inv'), new ItemData($r('app.string.wz_inv'), $r('app.media.icon_hr_inv'), 'inv'),
new ItemData($r('app.string.wz_conversion'), $r('app.media.font'), 'conversion'), new ItemData($r('app.string.wz_conversion'), $r('app.media.icon_hr_conversion'), 'conversion'),
new ItemData($r('app.string.wz_position'), $r('app.media.font'), 'position') new ItemData($r('app.string.wz_position'), $r('app.media.icon_hr_position'), 'position')
] ]
; ;
return secondGridData; return secondGridData;
......
{ {
"name": "pagemanagement", "license": "Apache-2.0",
"version": "1.0.0", "devDependencies": {},
"author": "",
"name": "@ohos/pagemanagement",
"description": "Please describe the basic information.", "description": "Please describe the basic information.",
"main": "index.ets", "main": "index.ets",
"name": "@ohos/pagemanagement", "version": "1.0.0",
"author": "",
"license": "Apache-2.0",
"dependencies": { "dependencies": {
"@ohos/common": "file:../../common" "@ohos/common": "file:../../common"
} }
......
{ {
"name": "systemmaintenance", "license": "Apache-2.0",
"version": "1.0.0", "devDependencies": {},
"author": "",
"name": "@ohos/system",
"description": "Please describe the basic information.", "description": "Please describe the basic information.",
"main": "index.ets", "main": "index.ets",
"name": "@ohos/system", "version": "1.0.0",
"author": "",
"license": "Apache-2.0",
"dependencies": {} "dependencies": {}
} }
{ {
"name": "storemanagement",
"version": "1.0.0",
"description": "Please describe the basic information.",
"main": "",
"author": "",
"license": "", "license": "",
"dependencies": {
},
"devDependencies": { "devDependencies": {
"@ohos/hypium": "1.0.6" "@ohos/hypium": "1.0.6"
} },
"author": "",
"name": "storemanagement",
"description": "Please describe the basic information.",
"main": "",
"version": "1.0.0",
"dependencies": {}
} }
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论