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
8197c372
Commit
8197c372
authored
Jan 16, 2024
by
毛勇泽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
图标+创建临时收发物单
parent
157e5018
隐藏空白字符变更
内嵌
并排
正在显示
22 个修改的文件
包含
730 行增加
和
62 行删除
+730
-62
build-profile.json5
build-profile.json5
+15
-1
StatusBarManager.ts
common/src/main/ets/components/StatusBarManager.ts
+2
-1
oh-package.json5
entry/oh-package.json5
+8
-9
AddConversionPage.ets
entry/src/main/ets/pages/metailmange/AddConversionPage.ets
+4
-5
AddTemporaryInPage.ets
entry/src/main/ets/pages/metailmange/AddTemporaryInPage.ets
+299
-0
AddTemporaryOutPage.ets
entry/src/main/ets/pages/metailmange/AddTemporaryOutPage.ets
+300
-0
WzInPage.ets
entry/src/main/ets/pages/metailmange/WzInPage.ets
+50
-7
WzOutPage.ets
entry/src/main/ets/pages/metailmange/WzOutPage.ets
+16
-4
main_pages.json
entry/src/main/resources/base/profile/main_pages.json
+2
-1
oh-package.json5
features/DirectConnect/oh-package.json5
+5
-5
oh-package.json5
features/MaterialManagement/oh-package.json5
+5
-4
GridWordViewModel.ets
features/MaterialManagement/src/main/ets/viewModel/GridWordViewModel.ets
+7
-7
icon_hr_conversion.png
features/MaterialManagement/src/main/resources/base/media/icon_hr_conversion.png
+0
-0
icon_hr_in.png
features/MaterialManagement/src/main/resources/base/media/icon_hr_in.png
+0
-0
icon_hr_inv.png
features/MaterialManagement/src/main/resources/base/media/icon_hr_inv.png
+0
-0
icon_hr_out.png
features/MaterialManagement/src/main/resources/base/media/icon_hr_out.png
+0
-0
icon_hr_position.png
features/MaterialManagement/src/main/resources/base/media/icon_hr_position.png
+0
-0
icon_hr_th.png
features/MaterialManagement/src/main/resources/base/media/icon_hr_th.png
+0
-0
icon_hr_tiaohao.png
features/MaterialManagement/src/main/resources/base/media/icon_hr_tiaohao.png
+0
-0
oh-package.json5
features/PageManagement/oh-package.json5
+5
-5
oh-package.json5
features/SystemMaintenance/oh-package.json5
+5
-5
oh-package.json5
oh-package.json5
+7
-8
没有找到文件。
build-profile.json5
View file @
8197c372
{
{
"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": [
...
...
common/src/main/ets/components/StatusBarManager.ts
View file @
8197c372
...
@@ -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
:
'#0
FA983
'
statusBarColor
:
'#0
0000000
'
};
};
//设置窗口内导航栏、状态栏的属性
//设置窗口内导航栏、状态栏的属性
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
;
}
}
...
...
entry/oh-package.json5
View file @
8197c372
{
{
"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"
}
}
}
}
entry/src/main/ets/pages/metailmange/AddConversionPage.ets
View file @
8197c372
...
@@ -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
})
})
...
...
entry/src/main/ets/pages/metailmange/AddTemporaryInPage.ets
0 → 100644
View file @
8197c372
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
entry/src/main/ets/pages/metailmange/AddTemporaryOutPage.ets
0 → 100644
View file @
8197c372
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
entry/src/main/ets/pages/metailmange/WzInPage.ets
View file @
8197c372
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({
...
...
entry/src/main/ets/pages/metailmange/WzOutPage.ets
View file @
8197c372
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")
}
}
...
...
entry/src/main/resources/base/profile/main_pages.json
View file @
8197c372
...
@@ -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"
,
...
...
features/DirectConnect/oh-package.json5
View file @
8197c372
{
{
"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"
}
}
...
...
features/MaterialManagement/oh-package.json5
View file @
8197c372
{
{
"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"
}
}
...
...
features/MaterialManagement/src/main/ets/viewModel/GridWordViewModel.ets
View file @
8197c372
...
@@ -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.
fon
t'), 'out'),
new ItemData($r('app.string.wz_out'), $r('app.media.
icon_hr_ou
t'), '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;
...
...
features/MaterialManagement/src/main/resources/base/media/icon_hr_conversion.png
0 → 100644
View file @
8197c372
1.24 KB
features/MaterialManagement/src/main/resources/base/media/icon_hr_in.png
0 → 100644
View file @
8197c372
1.43 KB
features/MaterialManagement/src/main/resources/base/media/icon_hr_inv.png
0 → 100644
View file @
8197c372
1.21 KB
features/MaterialManagement/src/main/resources/base/media/icon_hr_out.png
0 → 100644
View file @
8197c372
1.38 KB
features/MaterialManagement/src/main/resources/base/media/icon_hr_position.png
0 → 100644
View file @
8197c372
1.81 KB
features/MaterialManagement/src/main/resources/base/media/icon_hr_th.png
0 → 100644
View file @
8197c372
1.35 KB
features/MaterialManagement/src/main/resources/base/media/icon_hr_tiaohao.png
0 → 100644
View file @
8197c372
1.08 KB
features/PageManagement/oh-package.json5
View file @
8197c372
{
{
"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"
}
}
...
...
features/SystemMaintenance/oh-package.json5
View file @
8197c372
{
{
"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": {}
}
}
oh-package.json5
View file @
8197c372
{
{
"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
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论