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
f9f141b1
Commit
f9f141b1
authored
Jan 17, 2024
by
ning
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
43e610b2
4f474ca4
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
20 个修改的文件
包含
485 行增加
和
105 行删除
+485
-105
database.ets
entry/src/main/ets/database/database.ets
+1
-1
AddTemporaryInPage.ets
entry/src/main/ets/pages/metailmange/AddTemporaryInPage.ets
+0
-0
WzConversionPage.ets
entry/src/main/ets/pages/metailmange/WzConversionPage.ets
+8
-4
WzExchangePage.ets
entry/src/main/ets/pages/metailmange/WzExchangePage.ets
+10
-4
WzInPage.ets
entry/src/main/ets/pages/metailmange/WzInPage.ets
+94
-29
WzInvPage.ets
entry/src/main/ets/pages/metailmange/WzInvPage.ets
+10
-3
WzOutPage.ets
entry/src/main/ets/pages/metailmange/WzOutPage.ets
+8
-4
WzPositionPage.ets
entry/src/main/ets/pages/metailmange/WzPositionPage.ets
+9
-4
WzReversePage.ets
entry/src/main/ets/pages/metailmange/WzReversePage.ets
+9
-4
WzStatus.ets
entry/src/main/ets/pages/metailmange/WzStatus.ets
+164
-0
PzAdjustModelPage.ets
entry/src/main/ets/pages/order_detail/PzAdjustModelPage.ets
+5
-1
PzInOutDetailPage.ets
entry/src/main/ets/pages/order_detail/PzInOutDetailPage.ets
+4
-1
PzInvDetailPage.ets
entry/src/main/ets/pages/order_detail/PzInvDetailPage.ets
+5
-1
PzPourStoragePage.ets
entry/src/main/ets/pages/order_detail/PzPourStoragePage.ets
+5
-1
demo.ets
entry/src/main/ets/pages/sub_systemMaintenance/demo.ets
+0
-46
LeftDialog.ets
entry/src/main/ets/view/LeftDialog/LeftDialog.ets
+20
-0
demo.ets
entry/src/main/ets/view/demo/demo.ets
+59
-0
demo1.ets
entry/src/main/ets/view/demo/demo1.ets
+72
-0
trash.png
entry/src/main/resources/base/media/trash.png
+0
-0
main_pages.json
entry/src/main/resources/base/profile/main_pages.json
+2
-2
没有找到文件。
entry/src/main/ets/database/database.ets
View file @
f9f141b1
...
@@ -57,7 +57,7 @@ class Database {
...
@@ -57,7 +57,7 @@ class Database {
while (!result.isAtLastRow) {
while (!result.isAtLastRow) {
let obj = {
} as T
let obj = {} as T
// 3.3.指针移动到下一行
// 3.3.指针移动到下一行
result.goToNextRow()
result.goToNextRow()
...
...
entry/src/main/ets/pages/metailmange/AddTemporaryInPage.ets
View file @
f9f141b1
差异被折叠。
点击展开。
entry/src/main/ets/pages/metailmange/WzConversionPage.ets
View file @
f9f141b1
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)
...
...
entry/src/main/ets/pages/metailmange/WzExchangePage.ets
View file @
f9f141b1
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)
...
@@ -104,9 +107,12 @@ struct WzExchangePage{
...
@@ -104,9 +107,12 @@ struct WzExchangePage{
.onChange((index: number) => {
.onChange((index: number) => {
this.currentIndex = index
this.currentIndex = index
})
})
Column(){
BasicTable({dataSource:[]})
// 列表
}.flexGrow(1)
Column() {
Demo({itemClick: this.itemClick}).width('90%')
}.flexGrow(1).backgroundColor('#fff').alignSelf(ItemAlign.Center)
Row(){
Row(){
// 底部按钮
// 底部按钮
this.bottomButtons();
this.bottomButtons();
...
...
entry/src/main/ets/pages/metailmange/WzInPage.ets
View file @
f9f141b1
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';
import { BasicDialog } from '../../view/BasicDialog/BasicDialog';
@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
})
.borderColor('#0fa983')
.borderColor('#0fa983')
.backgroundColor('#fff')
.backgroundColor('#fff')
.fontColor('#0fa983')
.fontColor('#0fa983')
...
@@ -13,6 +15,7 @@ import router from '@ohos.router';
...
@@ -13,6 +15,7 @@ import router from '@ohos.router';
.stateEffect(true)
.stateEffect(true)
}
}
@Entry
@Entry
@Component
@Component
export struct WzInPage {
export struct WzInPage {
...
@@ -20,7 +23,57 @@ export struct WzInPage {
...
@@ -20,7 +23,57 @@ 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()
private searchcontroller: SearchController = new SearchController()
itemClick() {
router.pushUrl({url:'pages/order_detail/PzInOutDetailPage'})
}
@Builder container() {
Column() {
Row() {
Flex({ justifyContent: FlexAlign.SpaceBetween }) {
Text('完成').margin({ left: 20 })
Radio({ value: 'Radio1', group: 'radioGroup' })
.onChange((isChecked: boolean) => {
console.log('Radio1 status is ' + isChecked)
}).margin({ right: 20 })
}
}.padding({ top: 10, bottom: 10 })
Row() {
Flex({ justifyContent: FlexAlign.SpaceBetween }) {
Text('未完成').margin({ left: 20 })
Radio({ value: 'Radio1', group: 'radioGroup' })
.onChange((isChecked: boolean) => {
console.log('Radio1 status is ' + isChecked)
}).margin({ right: 20 })
}
}.padding({ top: 10, bottom: 10 })
}
}
dialogController: CustomDialogController = new CustomDialogController({
builder: BasicDialog({
cancel: this.onCancel,
confirm: this.onSubmit,
title: '设置状态',
container: this.container
}),
autoCancel: true,
alignment: DialogAlignment.Bottom,
offset: { dx: 0, dy: -20 },
gridCount: 4,
customStyle: false
})
onCancel() {
console.info('------取消------')
}
onSubmit() {
console.info('------确认------')
}
@Builder TabBuilder(index: number, name: string) {
@Builder TabBuilder(index: number, name: string) {
Column() {
Column() {
...
@@ -28,7 +81,7 @@ export struct WzInPage {
...
@@ -28,7 +81,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({bottom: 7 })
.margin({
bottom: 7 })
Divider()
Divider()
.strokeWidth(2)
.strokeWidth(2)
.color('#fff')
.color('#fff')
...
@@ -36,13 +89,14 @@ export struct WzInPage {
...
@@ -36,13 +89,14 @@ export struct WzInPage {
.opacity(this.currentIndex === index ? 1 : 0)
.opacity(this.currentIndex === index ? 1 : 0)
}.width('100%')
}.width('100%')
}
}
@Builder bottomButtons() {
@Builder bottomButtons() {
Row() {
Row() {
Flex({ justifyContent: FlexAlign.SpaceEvenly, alignItems: ItemAlign.Center }) {
Flex({ justifyContent: FlexAlign.SpaceEvenly, alignItems: ItemAlign.Center }) {
Button("临时收物")
Button("临时收物")
.visibility(this.currentIndex === 1 ? Visibility.Visible
:
Visibility.None)
.visibility(this.currentIndex === 1 ? Visibility.Visible
:
Visibility.None)
.bottomBtnSty()
.bottomBtnSty()
.onClick(
() => {
.onClick(() => {
router.pushUrl({
router.pushUrl({
url: "pages/metailmange/AddTemporaryInPage",
url: "pages/metailmange/AddTemporaryInPage",
})
})
...
@@ -52,27 +106,31 @@ export struct WzInPage {
...
@@ -52,27 +106,31 @@ export struct WzInPage {
Button("设置状态")
Button("设置状态")
.bottomBtnSty()
.bottomBtnSty()
.onClick(() => {
.onClick(() => {
if (this.dialogController != undefined) {
this.dialogController.open()
}
})
})
.fontColor("#0fa983")
.fontColor("#0fa983")
.fontSize("14vp")
.fontSize("14vp")
Button("导出数据包")
Button("导出数据包")
.bottomBtnSty()
.bottomBtnSty()
.onClick(() => {
.onClick(() => {
}).fontColor("#0fa983")
.fontSize("14vp")
}).fontColor("#0fa983").fontSize("14vp")
Button("全选")
//
Button("全选")
.bottomBtnSty().fontColor("#0fa983") .fontSize("14vp")
//
.bottomBtnSty().fontColor("#0fa983") .fontSize("14vp")
Button("清空选择")
Button("清空选择")
.bottomBtnSty()
.bottomBtnSty()
.onClick(() =>{
.onClick(() =>
{
}).fontColor("#0fa983")
.fontSize("14vp")
}).fontColor("#0fa983").fontSize("14vp")
}
}
}.height(80)
}.height(80)
}
}
build(){
build() {
Column() {
Column() {
Flex({
direction:FlexDirection.Column})
{
Flex({
direction: FlexDirection.Column })
{
TitleBar({ title:"物资入库" })
TitleBar({ title:
"物资入库" })
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')
...
@@ -86,8 +144,9 @@ export struct WzInPage {
...
@@ -86,8 +144,9 @@ export struct WzInPage {
.onChange((index: number) => {
.onChange((index: number) => {
this.currentIndex = index
this.currentIndex = index
})
})
Row(){
Flex({ justifyContent: FlexAlign.SpaceBetween, alignItems: ItemAlign.Center }){
Row() {
Flex({ justifyContent: FlexAlign.SpaceBetween, alignItems: ItemAlign.Center }) {
Search({ placeholder: '请输入凭证号', controller: this.searchcontroller })
Search({ placeholder: '请输入凭证号', controller: this.searchcontroller })
.height(40)
.height(40)
.backgroundColor('#F5F5F5')
.backgroundColor('#F5F5F5')
...
@@ -95,7 +154,7 @@ export struct WzInPage {
...
@@ -95,7 +154,7 @@ export struct WzInPage {
.textAlign(TextAlign.Center)
.textAlign(TextAlign.Center)
.placeholderFont({ size: 14, weight: 400 })
.placeholderFont({ size: 14, weight: 400 })
.textFont({ size: 14, weight: 400 })
.textFont({ size: 14, weight: 400 })
.width('
7
0%')
.width('
6
0%')
.onSubmit((value: string) => {
.onSubmit((value: string) => {
})
})
.onChange((value: string) => {
.onChange((value: string) => {
...
@@ -104,35 +163,40 @@ export struct WzInPage {
...
@@ -104,35 +163,40 @@ export struct WzInPage {
Select([{ value: "未完成" }, { value: "已完成" }])
Select([{ value: "未完成" }, { value: "已完成" }])
.value('请选择状态')
.value('请选择状态')
.borderWidth(1)
.borderWidth(1)
.borderRadius(10)
.borderRadius(6)
.height(42)
.margin({ left: 10 })
.borderColor("#454545")
.borderColor("#454545")
.onSelect(async (index: number, value?: string) => {
.onSelect(async (index: number, value?: string) => {
if(value == '未完成') {
if
(value == '未完成') {
console.log("未完成",'未完成')
console.log("未完成",
'未完成')
} else {
} else {
console.log("已完成",'已完成')
console.log("已完成",
'已完成')
}
}
})
})
.width(1
1
0)
.width(1
2
0)
.padding({
.padding({
right:
10
right:
15
})
})
}
}
}.margin({
top:-30
})
}.margin({
top: -20
})
.width("100%")
.width("100%")
.padding('15vp')
.padding('15vp')
Column(){
BasicTable({dataSource:[]})
// 列表
}.flexGrow(1)
Column() {
Row(){
Demo({itemClick: this.itemClick}).width('90%')
// 底部按钮
}.flexGrow(1).backgroundColor('#fff').alignSelf(ItemAlign.Center)
// 底部按钮
Row() {
this.bottomButtons();
this.bottomButtons();
}.backgroundColor("#97c6a6").width("100%").height(80)
}.backgroundColor("#97c6a6").width("100%").height(80)
}
}
}.linearGradient({
}.linearGradient({
direction: GradientDirection.Right, // 渐变方向
direction: GradientDirection.Right, // 渐变方向
repeating: true, // 渐变颜色是否重复
repeating: true, // 渐变颜色是否重复
colors: [[0x36a3c0, 0.0], [0x97c6a6, 1], [0xc7d799, 0.0]]
// 数组末尾元素占比小于1时满足重复着色效果
colors: [[0x36a3c0, 0.0], [0x97c6a6, 1], [0xc7d799, 0.0]] // 数组末尾元素占比小于1时满足重复着色效果
})
})
}
}
}
}
\ No newline at end of file
entry/src/main/ets/pages/metailmange/WzInvPage.ets
View file @
f9f141b1
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();
...
...
entry/src/main/ets/pages/metailmange/WzOutPage.ets
View file @
f9f141b1
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();
...
...
entry/src/main/ets/pages/metailmange/WzPositionPage.ets
View file @
f9f141b1
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({
...
...
entry/src/main/ets/pages/metailmange/WzReversePage.ets
View file @
f9f141b1
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();
...
...
entry/src/main/ets/pages/metailmange/WzStatus.ets
0 → 100644
View file @
f9f141b1
import { LeftDialog } from '../../view/LeftDialog/LeftDialog'
import { TitleBar } from '../../view/title/TitleBar'
@Extend(Button) function CommonButtonStyle() {
.borderWidth(2)
.borderColor('#0fa983')
.backgroundColor('#fff')
.fontColor('#0fa983')
.borderRadius(3)
.type(ButtonType.Normal)
.height(30)
.stateEffect(true)
}
@Entry
@Component
export struct WzStatus {
@State private finishNum: number = 0
@State private unFinishNum: number = 5
@State private numberPercentage: string = "0/500个"
@State show: boolean = false
@State private dataSource: any = [
{mc: '冬季防寒靴100000',dm: 100000, pzsl: 0, rksl: 100, status: '未完成', hx: '180100002'},
{mc: '冬季防寒靴100000',dm: 100000, pzsl: 0, rksl: 100, status: '未完成', hx: '180100002'},
{mc: '冬季防寒靴100000',dm: 100000, pzsl: 0, rksl: 100, status: '未完成', hx: '180100002'},
{mc: '冬季防寒靴100000',dm: 100000, pzsl: 0, rksl: 100, status: '未完成', hx: '180100002'},
{mc: '冬季防寒靴100000',dm: 100000, pzsl: 0, rksl: 100, status: '未完成', hx: '180100002'},
{mc: '冬季防寒靴100000',dm: 100000, pzsl: 0, rksl: 100, status: '未完成', hx: '180100002'},
{mc: '冬季防寒靴100000',dm: 100000, pzsl: 0, rksl: 100, status: '未完成', hx: '180100002'},
{mc: '冬季防寒靴100000',dm: 100000, pzsl: 0, rksl: 100, status: '未完成', hx: '180100002'},
{mc: '冬季防寒靴100000',dm: 100000, pzsl: 0, rksl: 100, status: '未完成', hx: '180100002'},
{mc: '冬季防寒靴100000',dm: 100000, pzsl: 0, rksl: 100, status: '未完成', hx: '180100002'},
{mc: '冬季防寒靴100000',dm: 100000, pzsl: 0, rksl: 100, status: '未完成', hx: '180100002'},
{mc: '冬季防寒靴100000',dm: 100000, pzsl: 0, rksl: 100, status: '未完成', hx: '180100002'},
{mc: '冬季防寒靴100000',dm: 100000, pzsl: 0, rksl: 100, status: '未完成', hx: '180100002'},
]
@Builder DetailBuilder() {
Column() {
List({ space: 2 }) {
ListItem() {
Row() {
Flex({ direction: FlexDirection.Column, justifyContent: FlexAlign.Center }) {
Text('号型:180100002').fontSize(12).fontColor('#3b4144')
Text('凭证数量:0').fontSize(12).fontColor('#3b4144')
}
.width('70%')
Blank()
.layoutWeight(1)
Flex({ direction: FlexDirection.Column, justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) {
Text('未完成').fontSize(12).fontColor('#3b4144')
Text('入库数量:100').fontSize(12).fontColor('#3b4144')
}
.width('40%')
}
.width('100%')
.justifyContent(FlexAlign.SpaceBetween)
.padding({ left: 12, right: 18 })
}.height(90)
}.margin({top: 100})
}.width('100%')
}
dialogController: CustomDialogController = new CustomDialogController({
builder: LeftDialog({
cancel: this.onCancel,
confirm: this.onSubmit,
container: this.DetailBuilder,
}),
alignment: DialogAlignment.CenterEnd,
customStyle: true,
})
onCancel() {
console.info('------取消------')
}
onSubmit() {
console.info('------确认------')
}
existApp() {
console.info('Click the callback in the blank area')
}
build() {
Column() {
TitleBar({ title: "物资状态" })
Flex({ direction: FlexDirection.Column }) {
Flex({ justifyContent: FlexAlign.SpaceBetween, alignItems: ItemAlign.Center }) {
Column() {
Text('完成:' + this.finishNum + '个' + ' 未完成:' + this.unFinishNum + '个').fontSize(13)
}
Column() {
Text('数量:'+ this.numberPercentage).fontSize(13)
}
}
.width('100%')
.backgroundColor('#fff')
.height(52)
.borderRadius(5)
.margin({ bottom: 10 })
.padding({ left: 10, right: 10 })
Row() {
List({ space: 2 }) {
ForEach(this.dataSource, (item: any) => {
ListItem() {
Row() {
Flex({ direction: FlexDirection.Column, justifyContent: FlexAlign.Center }) {
Text('名称: ' + item.mc).fontSize(14).fontColor('#3b4144')
Text('代码: ' + item.dm).fontSize(14).fontColor('#3b4144')
Button('号型信息').CommonButtonStyle()
}
.width('70%')
Blank()
.layoutWeight(1)
Flex({ direction: FlexDirection.Column, justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) {
Text('凭证数量: ' + item.pzsl).fontSize(14).fontColor('#3b4144')
Text('入库数量: ' + item.rksl).fontSize(14).fontColor('#3b4144')
Text(item.status).fontSize(14).fontColor( item.status == '未完成' ? 'red': 'green')
}
.width('40%')
}
.width('100%')
.justifyContent(FlexAlign.SpaceBetween)
.padding({ left: 12, right: 18 })
}
.height(90)
.onClick((item) => {
if (this.dialogController != undefined) {
this.dialogController.open()
this.DetailBuilder()
}
})
})
}
.width('100%')
.backgroundColor('#fff')
.divider({ strokeWidth: 1, color: 'rgb(242,242,242)' }) // 每行之间的分界线
}.margin({ bottom: 50 })
}.padding({ bottom: 20, left: 20, right: 20 })
}
.height('100%')
.linearGradient({
direction: GradientDirection.RightBottom,
repeating: true,
colors: [['#36a3c0', 0.0], ['#97c6a6', 1.0], ['#c7d799', 2.0]]
})
}
}
\ No newline at end of file
entry/src/main/ets/pages/order_detail/PzAdjustModelPage.ets
View file @
f9f141b1
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(){
...
...
entry/src/main/ets/pages/order_detail/PzInOutDetailPage.ets
View file @
f9f141b1
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(){
...
...
entry/src/main/ets/pages/order_detail/PzInvDetailPage.ets
View file @
f9f141b1
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(){
...
...
entry/src/main/ets/pages/order_detail/PzPourStoragePage.ets
View file @
f9f141b1
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(){
...
...
entry/src/main/ets/pages/sub_systemMaintenance/demo.ets
deleted
100644 → 0
View file @
43e610b2
@Entry
@Component
struct ActionSheetExample {
build() {
Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) {
Button('Click to Show ActionSheet')
.onClick(() => {
ActionSheet.show({
title: '',
message: '',
autoCancel: false,
confirm: {
value: '取消',
action: () => {
console.log('Get Alert Dialog handled')
}
},
alignment: DialogAlignment.Bottom,
offset: { dx: 0, dy: -10 },
sheets: [
{
title: '清除基础数据',
action: () => {
console.log('apples')
}
},
{
title: '清除单据数据',
action: () => {
console.log('bananas')
}
},
{
title: 'pears',
action: () => {
console.log('pears')
}
}
]
})
})
}.width('100%')
.height('100%')
}
}
\ No newline at end of file
entry/src/main/ets/view/LeftDialog/LeftDialog.ets
0 → 100644
View file @
f9f141b1
@CustomDialog
@Component
export struct LeftDialog {
controller: CustomDialogController
cancel: () => void
confirm: () => void
@BuilderParam container: () => void
build() {
Column() {
this.container()
}
.width('60%')
.height('100%')
.backgroundColor('#fff')
}
}
\ No newline at end of file
entry/src/main/ets/view/demo/demo.ets
0 → 100644
View file @
f9f141b1
@Entry
@Component
export struct Demo {
arr = [1, 2, 3, 4, 5, 6,7,8,9,10,11,12]
itemClick: () => void
build() {
Column() {
Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) {
CheckboxGroup({ group: 'checkboxGroup' })
.selectedColor('#007DFF')
.onChange((itemName: CheckboxGroupResult) => {
console.info("checkbox group content" + JSON.stringify(itemName))
})
Text("全选").margin({ left: 10 })
}.margin({ bottom: -15, left: 8 }).backgroundColor('#fff').zIndex(999)
List(){
ForEach(this.arr, (item, index) => {
ListItem(){
Row() {
Checkbox({ name: 'checkbox1', group: 'checkboxGroup' })
.selectedColor('#007DFF')
.onChange((value: boolean) => {
console.info('Checkbox1 change is' + value)
}).margin({ right: 10,left: 10 })
Column() {
Text('2023-01-17').alignSelf(ItemAlign.Start).width("30%")
Text("收物单").alignSelf(ItemAlign.Start).width("30%").margin({ top: 5 })
}
Column() {
Row() {
Text('凭证号: ')
Text('1')
}.alignSelf(ItemAlign.Start).padding({ top: 8, bottom: 8 })
Row() {
Text("数量: ")
Text('0').fontColor('#ff3d43')
Text('/').fontColor('#ff3d43')
Text('500').fontColor('#ff3d43')
}.alignSelf(ItemAlign.Start)
}.width("30%").padding({ top: 8, bottom: 8 })
Row() {
Text("状态: ")
Text("未完成").fontColor('#ff3d43')
}
}.margin({ top: 10 }).border({ width: { bottom: '1lpx' }, color: "#717171" })
}.onClick(() => this.itemClick())
})
}
}.width('100%').height('100%')
}
}
\ No newline at end of file
entry/src/main/ets/view/demo/demo1.ets
0 → 100644
View file @
f9f141b1
@Observed
class Good {
index: number
constructor(index) {
this.index = index
}
}
@Entry
@Component
export struct Demo1 {
@State goodList: Good[] = [new Good(10), new Good(20) ]
build() {
Column() {
ForEach(this.goodList, (item) => {
child({ good: item })
})
}.width('100%').height('100%')
}
}
@Component
struct child {
@ObjectLink good: Good
build() {
Column() {
Flex({ justifyContent: FlexAlign.SpaceBetween }) {
Column() {
Text("冬季防寒靴100000").padding({ top: 5, bottom: 5 })
Row() {
Text("号型: ")
Text("1003")
}.alignSelf(ItemAlign.Start).padding({ top: 5, bottom: 5 })
Row() {
Text("货位号: ")
Text("2")
}.alignSelf(ItemAlign.Start).padding({ top: 5, bottom: 5 })
}.margin({ left: 15 })
Column() {
Row() {
Text("总数: ")
Text(this.good.index.toString())
}.alignSelf(ItemAlign.End).padding({ top: 5, bottom: 5 })
Row() {
Counter() {
Text(this.good.index.toString())
}
.width(120)
.onInc(() => {
this.good.index++
console.log("item++",this.good.index)
})
.onDec(() => {
this.good.index--
})
}.alignSelf(ItemAlign.End)
Row() {
Image($r('app.media.trash')).width(35)
}.alignSelf(ItemAlign.End)
}.margin({ right: 20 })
}.margin({ top: 10 }).border({ width: { bottom: '1lpx' }, color: "#717171" })
}
}
}
\ No newline at end of file
entry/src/main/resources/base/media/trash.png
0 → 100644
View file @
f9f141b1
853 Bytes
entry/src/main/resources/base/profile/main_pages.json
View file @
f9f141b1
...
@@ -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
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论