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
b7c3c872
Commit
b7c3c872
authored
Jan 15, 2024
by
毛勇泽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改搜索框
parent
86a1202a
显示空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
129 行增加
和
47 行删除
+129
-47
AddConversionPage.ets
entry/src/main/ets/pages/metailmange/AddConversionPage.ets
+32
-4
WzConversionPage.ets
entry/src/main/ets/pages/metailmange/WzConversionPage.ets
+13
-5
WzExchangePage.ets
entry/src/main/ets/pages/metailmange/WzExchangePage.ets
+14
-7
WzInPage.ets
entry/src/main/ets/pages/metailmange/WzInPage.ets
+13
-3
WzInvPage.ets
entry/src/main/ets/pages/metailmange/WzInvPage.ets
+13
-7
WzOutPage.ets
entry/src/main/ets/pages/metailmange/WzOutPage.ets
+13
-4
WzPositionPage.ets
entry/src/main/ets/pages/metailmange/WzPositionPage.ets
+14
-7
WzReversePage.ets
entry/src/main/ets/pages/metailmange/WzReversePage.ets
+17
-10
没有找到文件。
entry/src/main/ets/pages/metailmange/AddConversionPage.ets
View file @
b7c3c872
...
@@ -148,6 +148,20 @@ struct AddConversionPage {
...
@@ -148,6 +148,20 @@ struct AddConversionPage {
.padding(5)
.padding(5)
.flexGrow(1)
.flexGrow(1)
}.padding("10vp").width("100%")
}.padding("10vp").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)
.borderRadius(10)
.borderColor($r("app.color.disabledColor"))
.width(230)
.height(40)
.padding({ top: 10, bottom: 10 })
}.padding("10vp").width("100%")
}
}
.padding(20)
.padding(20)
.width("100%")
.width("100%")
...
@@ -249,21 +263,35 @@ struct AddConversionPage {
...
@@ -249,21 +263,35 @@ struct AddConversionPage {
TabContent() {
TabContent() {
Column(){
Column(){
this.VoucherRow()
this.VoucherRow()
}.margin({top:15})
}.
width("100%").
margin({top:15})
}.tabBar(this.TabBuilder(0, '凭证信息'))
}.tabBar(this.TabBuilder(0, '凭证信息'))
TabContent() {
TabContent() {
Column(){
Column(){
this.WzInfoRow()
this.WzInfoRow()
}.margin({top:15})
}.
width("100%").
margin({top:15})
}.tabBar(this.TabBuilder(1, '物资信息'))
}.tabBar(this.TabBuilder(1, '物资信息'))
}
}
.height(500)
.margin(15)
.margin(15)
.onChange((index: number) => {
.onChange((index: number) => {
this.currentIndex = index
this.currentIndex = index
})
})
Row(){
Flex({justifyContent:FlexAlign.Center}){
Button("保存")
.backgroundColor("#97c6a6")
.fontColor('#fff')
.borderRadius(5)
.type(ButtonType.Normal)
.stateEffect(true)
.onClick(async () => {
})
.fontSize("16vp")
.width('90%')
.padding(10)
}
}
.margin(20)
}
}
}.linearGradient({
}.linearGradient({
direction: GradientDirection.Right, // 渐变方向
direction: GradientDirection.Right, // 渐变方向
...
...
entry/src/main/ets/pages/metailmange/WzConversionPage.ets
View file @
b7c3c872
...
@@ -13,6 +13,7 @@ import router from '@ohos.router';
...
@@ -13,6 +13,7 @@ import router from '@ohos.router';
@Entry
@Entry
@Component
@Component
struct WzConversionPage{
struct WzConversionPage{
private searchcontroller: SearchController = new SearchController()
@Builder bottomButtons() {
@Builder bottomButtons() {
Row() {
Row() {
Flex({ justifyContent: FlexAlign.SpaceEvenly, alignItems: ItemAlign.Center }) {
Flex({ justifyContent: FlexAlign.SpaceEvenly, alignItems: ItemAlign.Center }) {
...
@@ -51,17 +52,24 @@ struct WzConversionPage{
...
@@ -51,17 +52,24 @@ struct WzConversionPage{
TitleBar({ title:"物资换位" })
TitleBar({ title:"物资换位" })
Row(){
Row(){
Flex({ justifyContent: FlexAlign.SpaceBetween, alignItems: ItemAlign.Center }){
Flex({ justifyContent: FlexAlign.SpaceBetween, alignItems: ItemAlign.Center }){
TextInput({placeholder:"请输入凭证号"})
Search({ placeholder: '请输入凭证号',controller: this.searchcontroller })
.enterKeyType(EnterKeyType.Search)
.height(40)
.borderRadius("13vp").width('100%').padding({top:10,bottom:10}
.backgroundColor('#F5F5F5')
).backgroundColor("#fff")
.placeholderColor(Color.Grey)
.placeholderFont({ size: 14, weight: 400 })
.textFont({ size: 14, weight: 400 })
.width('100%')
.onSubmit((value: string) => {
})
.onChange((value: string) => {
})
}.height(60)
}.height(60)
}.width("100%")
}.width("100%")
.padding('15vp')
.padding('15vp')
Row(){
Row(){
// 底部按钮
// 底部按钮
this.bottomButtons();
this.bottomButtons();
}.width("100%").height(
8
0)
}.width("100%").height(
4
0)
Column(){
Column(){
BasicTable({dataSource:[]})
BasicTable({dataSource:[]})
}.flexGrow(1)
}.flexGrow(1)
...
...
entry/src/main/ets/pages/metailmange/WzExchangePage.ets
View file @
b7c3c872
...
@@ -16,6 +16,7 @@ struct WzExchangePage{
...
@@ -16,6 +16,7 @@ struct WzExchangePage{
@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()
private searchcontroller: SearchController = new SearchController()
@Builder TabBuilder(index: number, name: string) {
@Builder TabBuilder(index: number, name: string) {
Column() {
Column() {
...
@@ -60,14 +61,20 @@ struct WzExchangePage{
...
@@ -60,14 +61,20 @@ struct WzExchangePage{
TitleBar({ title:"物资调号" })
TitleBar({ title:"物资调号" })
Row(){
Row(){
Flex({ justifyContent: FlexAlign.SpaceBetween, alignItems: ItemAlign.Center }){
Flex({ justifyContent: FlexAlign.SpaceBetween, alignItems: ItemAlign.Center }){
TextInput({placeholder:"请输入凭证号"})
Search({ placeholder: '请输入凭证号',controller: this.searchcontroller })
.enterKeyType(EnterKeyType.Search)
.height(40)
.borderRadius("13vp").width('100%').padding({top:10,bottom:10}
.backgroundColor('#F5F5F5')
)
.placeholderColor(Color.Grey)
.backgroundColor("#fff")
.placeholderFont({ size: 14, weight: 400 })
}.margin("15vp").height(60)
.textFont({ size: 14, weight: 400 })
.width('100%')
.onSubmit((value: string) => {
})
.onChange((value: string) => {
})
}.height(60)
}.width("100%")
}.width("100%")
.padding(
'15vp'
)
.padding(
{left:15,right:15,top:15}
)
Tabs({ barPosition: BarPosition.Start, controller: this.controller }) {
Tabs({ barPosition: BarPosition.Start, controller: this.controller }) {
TabContent() {
TabContent() {
// Column().width('100%').height('100%').backgroundColor('#00CB87')
// Column().width('100%').height('100%').backgroundColor('#00CB87')
...
...
entry/src/main/ets/pages/metailmange/WzInPage.ets
View file @
b7c3c872
...
@@ -7,6 +7,7 @@ export struct WzInPage {
...
@@ -7,6 +7,7 @@ export struct WzInPage {
@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()
private searchcontroller: SearchController = new SearchController()
@Builder TabBuilder(index: number, name: string) {
@Builder TabBuilder(index: number, name: string) {
Column() {
Column() {
...
@@ -41,8 +42,17 @@ export struct WzInPage {
...
@@ -41,8 +42,17 @@ export struct WzInPage {
})
})
Row(){
Row(){
Flex({ justifyContent: FlexAlign.SpaceBetween, alignItems: ItemAlign.Center }){
Flex({ justifyContent: FlexAlign.SpaceBetween, alignItems: ItemAlign.Center }){
TextInput({placeholder:"请输入凭证号"}).borderRadius("12vp").width('65%').padding({top:10,bottom:10})
Search({ placeholder: '请输入凭证号', controller: this.searchcontroller })
.backgroundColor("#fff")
.height(40)
.backgroundColor('#F5F5F5')
.placeholderColor(Color.Grey)
.placeholderFont({ size: 14, weight: 400 })
.textFont({ size: 14, weight: 400 })
.width('70%')
.onSubmit((value: string) => {
})
.onChange((value: string) => {
})
Select([{ value: "未完成" }, { value: "已完成" }])
Select([{ value: "未完成" }, { value: "已完成" }])
.value('请选择状态')
.value('请选择状态')
.borderWidth(1)
.borderWidth(1)
...
@@ -59,7 +69,7 @@ export struct WzInPage {
...
@@ -59,7 +69,7 @@ export struct WzInPage {
.padding({
.padding({
right:10
right:10
})
})
}
.height(50)
}
}.width("100%")
}.width("100%")
.padding('15vp')
.padding('15vp')
Column(){
Column(){
...
...
entry/src/main/ets/pages/metailmange/WzInvPage.ets
View file @
b7c3c872
...
@@ -16,7 +16,7 @@ struct WzInvPage{
...
@@ -16,7 +16,7 @@ struct WzInvPage{
@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()
private searchcontroller: SearchController = new SearchController()
@Builder TabBuilder(index: number, name: string) {
@Builder TabBuilder(index: number, name: string) {
Column() {
Column() {
Text(name)
Text(name)
...
@@ -56,12 +56,18 @@ struct WzInvPage{
...
@@ -56,12 +56,18 @@ struct WzInvPage{
TitleBar({ title:"物资盘库" })
TitleBar({ title:"物资盘库" })
Row(){
Row(){
Flex({ justifyContent: FlexAlign.SpaceBetween, alignItems: ItemAlign.Center }){
Flex({ justifyContent: FlexAlign.SpaceBetween, alignItems: ItemAlign.Center }){
TextInput({placeholder:"请输入凭证号"})
Search({ placeholder: '请输入凭证号',controller: this.searchcontroller })
.enterKeyType(EnterKeyType.Search)
.height(40)
.borderRadius("13vp").width('100%').padding({top:10,bottom:10}
.backgroundColor('#F5F5F5')
)
.placeholderColor(Color.Grey)
.backgroundColor("#fff")
.placeholderFont({ size: 14, weight: 400 })
}.margin("15vp").height(60)
.textFont({ size: 14, weight: 400 })
.width('100%')
.onSubmit((value: string) => {
})
.onChange((value: string) => {
})
}.height(60)
}.width("100%")
}.width("100%")
.padding('15vp')
.padding('15vp')
Tabs({ barPosition: BarPosition.Start, controller: this.controller }) {
Tabs({ barPosition: BarPosition.Start, controller: this.controller }) {
...
...
entry/src/main/ets/pages/metailmange/WzOutPage.ets
View file @
b7c3c872
...
@@ -17,6 +17,7 @@ export struct WzOutPage {
...
@@ -17,6 +17,7 @@ export struct WzOutPage {
@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()
private searchcontroller: SearchController = new SearchController()
@Builder TabBuilder(index: number, name: string) {
@Builder TabBuilder(index: number, name: string) {
Column() {
Column() {
...
@@ -61,10 +62,18 @@ export struct WzOutPage {
...
@@ -61,10 +62,18 @@ export struct WzOutPage {
TitleBar({ title:"物资出库" })
TitleBar({ title:"物资出库" })
Row(){
Row(){
Flex({ justifyContent: FlexAlign.SpaceBetween, alignItems: ItemAlign.Center }){
Flex({ justifyContent: FlexAlign.SpaceBetween, alignItems: ItemAlign.Center }){
TextInput({placeholder:"请输入凭证号"}).borderRadius("13vp").width('100%').padding({top:10,bottom:10}
Search({ placeholder: '请输入凭证号',controller: this.searchcontroller })
)
.height(40)
.backgroundColor("#fff")
.backgroundColor('#F5F5F5')
}.margin("15vp").height(60)
.placeholderColor(Color.Grey)
.placeholderFont({ size: 14, weight: 400 })
.textFont({ size: 14, weight: 400 })
.width('100%')
.onSubmit((value: string) => {
})
.onChange((value: string) => {
})
}.height(40)
}.width("100%")
}.width("100%")
.padding('15vp')
.padding('15vp')
Tabs({ barPosition: BarPosition.Start, controller: this.controller }) {
Tabs({ barPosition: BarPosition.Start, controller: this.controller }) {
...
...
entry/src/main/ets/pages/metailmange/WzPositionPage.ets
View file @
b7c3c872
...
@@ -12,6 +12,7 @@ import { BasicTable } from '../../view/BasicTable/BasicTable'
...
@@ -12,6 +12,7 @@ import { BasicTable } from '../../view/BasicTable/BasicTable'
@Entry
@Entry
@Component
@Component
struct WzPositionPage{
struct WzPositionPage{
private searchcontroller: SearchController = new SearchController()
@State fontColor: string = '#182431'
@State fontColor: string = '#182431'
@State selectedFontColor: string = '#fff'
@State selectedFontColor: string = '#fff'
@State currentIndex: number = 0
@State currentIndex: number = 0
...
@@ -32,7 +33,7 @@ struct WzPositionPage{
...
@@ -32,7 +33,7 @@ struct WzPositionPage{
}).fontColor("#0fa983") .fontSize("14vp")
}).fontColor("#0fa983") .fontSize("14vp")
}
}
}.height(
8
0)
}.height(
5
0)
}
}
build(){
build(){
Column() {
Column() {
...
@@ -40,12 +41,18 @@ struct WzPositionPage{
...
@@ -40,12 +41,18 @@ struct WzPositionPage{
TitleBar({ title:"物资落位" })
TitleBar({ title:"物资落位" })
Row(){
Row(){
Flex({ justifyContent: FlexAlign.SpaceBetween, alignItems: ItemAlign.Center }){
Flex({ justifyContent: FlexAlign.SpaceBetween, alignItems: ItemAlign.Center }){
TextInput({placeholder:"请输入品名名称"})
Search({ placeholder: '请输入凭证号',controller: this.searchcontroller })
.enterKeyType(EnterKeyType.Search)
.height(40)
.borderRadius("13vp").width('100%').padding({top:10,bottom:10}
.backgroundColor('#F5F5F5')
)
.placeholderColor(Color.Grey)
.backgroundColor("#fff")
.placeholderFont({ size: 14, weight: 400 })
}.height(60)
.textFont({ size: 14, weight: 400 })
.width('100%')
.onSubmit((value: string) => {
})
.onChange((value: string) => {
})
}.height(40)
}.width("100%")
}.width("100%")
.padding('15vp')
.padding('15vp')
Row(){
Row(){
...
...
entry/src/main/ets/pages/metailmange/WzReversePage.ets
View file @
b7c3c872
...
@@ -17,6 +17,7 @@ struct WzReversePage{
...
@@ -17,6 +17,7 @@ struct WzReversePage{
@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()
private searchcontroller: SearchController = new SearchController()
@Builder TabBuilder(index: number, name: string) {
@Builder TabBuilder(index: number, name: string) {
Column() {
Column() {
...
@@ -28,9 +29,9 @@ struct WzReversePage{
...
@@ -28,9 +29,9 @@ struct WzReversePage{
Divider()
Divider()
.strokeWidth(2)
.strokeWidth(2)
.color('#fff')
.color('#fff')
.width(
5
0)
.width(
4
0)
.opacity(this.currentIndex === index ? 1 : 0)
.opacity(this.currentIndex === index ? 1 : 0)
}.width('100%')
}.width('100%')
.height(50)
}
}
@Builder bottomButtons() {
@Builder bottomButtons() {
Row() {
Row() {
...
@@ -49,7 +50,7 @@ struct WzReversePage{
...
@@ -49,7 +50,7 @@ struct WzReversePage{
}).fontColor("#0fa983") .fontSize("14vp")
}).fontColor("#0fa983") .fontSize("14vp")
}
}
}.height(
8
0)
}.height(
5
0)
}
}
build(){
build(){
Column() {
Column() {
...
@@ -57,12 +58,18 @@ struct WzReversePage{
...
@@ -57,12 +58,18 @@ struct WzReversePage{
TitleBar({ title:"物资倒库" })
TitleBar({ title:"物资倒库" })
Row(){
Row(){
Flex({ justifyContent: FlexAlign.SpaceBetween, alignItems: ItemAlign.Center }){
Flex({ justifyContent: FlexAlign.SpaceBetween, alignItems: ItemAlign.Center }){
TextInput({placeholder:"请输入凭证号"})
Search({ placeholder: '请输入凭证号',controller: this.searchcontroller })
.enterKeyType(EnterKeyType.Search)
.height(40)
.borderRadius("13vp").width('100%').padding({top:10,bottom:10}
.backgroundColor('#F5F5F5')
)
.placeholderColor(Color.Grey)
.backgroundColor("#fff")
.placeholderFont({ size: 14, weight: 400 })
}.margin("15vp").height(60)
.textFont({ size: 14, weight: 400 })
.width('100%')
.onSubmit((value: string) => {
})
.onChange((value: string) => {
})
}.height(40)
}.width("100%")
}.width("100%")
.padding('15vp')
.padding('15vp')
Tabs({ barPosition: BarPosition.Start, controller: this.controller }) {
Tabs({ barPosition: BarPosition.Start, controller: this.controller }) {
...
@@ -74,7 +81,7 @@ struct WzReversePage{
...
@@ -74,7 +81,7 @@ struct WzReversePage{
// Column().width('100%').height('100%').backgroundColor('#007DFF')
// Column().width('100%').height('100%').backgroundColor('#007DFF')
}.tabBar(this.TabBuilder(1, '已完成'))
}.tabBar(this.TabBuilder(1, '已完成'))
}
}
.height(
8
0)
.height(
6
0)
.onChange((index: number) => {
.onChange((index: number) => {
this.currentIndex = index
this.currentIndex = index
})
})
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论