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
4ccebb3f
Commit
4ccebb3f
authored
Jan 20, 2024
by
陈桂东
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit
parent
98fd287f
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
78 行增加
和
21 行删除
+78
-21
build-profile.json5
build-profile.json5
+16
-1
index.ets
common/index.ets
+2
-2
WzInList.ets
entry/src/main/ets/pages/metailmange/WzInPage/WzInList.ets
+3
-7
Wzin.data.ets
entry/src/main/ets/pages/metailmange/WzInPage/Wzin.data.ets
+15
-0
PzInOutDetailPage.ets
entry/src/main/ets/pages/order_detail/PzInOutDetailPage.ets
+41
-9
oh-package.json5
oh-package.json5
+1
-2
没有找到文件。
build-profile.json5
View file @
4ccebb3f
{
app: {
signingConfigs: [
{
"name": "default",
"type": "HarmonyOS",
"material": {
"certpath": "C:\\Users\\cgd\\.ohos\\config\\auto_debug_jump_hm_warehouse_com.junmp.store_management_2850086000348564163.cer",
"storePassword": "0000001B9BF52AC547EE766E8C0E7D35F78AD3EBFFCB7922BA6291485A6A13095D2D3E2A28C290E125B784",
"keyAlias": "debugKey",
"keyPassword": "0000001B9C59D6AC6D4337571D82CCC744B9747C56C966BF15885A3AE155FFF82DA4E2ED691CD61DA0EE10",
"profile": "C:\\Users\\cgd\\.ohos\\config\\auto_debug_jump_hm_warehouse_com.junmp.store_management_2850086000348564163.p7b",
"signAlg": "SHA256withECDSA",
"storeFile": "C:\\Users\\cgd\\.ohos\\config\\auto_debug_jump_hm_warehouse_com.junmp.store_management_2850086000348564163.p12"
}
}
],
compileSdkVersion: 9,
compatibleSdkVersion: 9,
...
...
@@ -18,7 +31,9 @@
targets: [
{
name: "default",
applyToProducts: ["default"],
applyToProducts: [
"default"
],
},
],
},
...
...
common/index.ets
View file @
4ccebb3f
...
...
@@ -30,4 +30,4 @@ export {Wzhxdm} from './src/main/ets/entity/Wzhxdm';
export {DrInfo} from './src/main/ets/entity/DrInfo';
export {Wzcrk} from './src/main/ets/entity/Wzcrk';
export {Wzcrkmx} from './src/main/ets/entity/Wzcrkmx';
export {pzlx_dict} from './src/main/ets/utils/dict';
\ No newline at end of file
export {pzlx_dict,szlx_dict, zmlx_dict} from './src/main/ets/utils/dict';
\ No newline at end of file
entry/src/main/ets/pages/metailmange/WzInPage/WzInList.ets
View file @
4ccebb3f
import { WzinClass } from './Wzin.data'
import { pzlx_dict } from '@ohos/common'
import { WzinClass
,renderPzlx
} from './Wzin.data'
@Component
export struct WzInList {
@ObjectLink item: WzinClass
renderPzlx(pzlx) {
return pzlx_dict.find(v => v.value == pzlx).text
}
build() {
Column() {
Row() {
...
...
@@ -19,7 +15,7 @@ export struct WzInList {
}).margin({ right: 10, left: 10 })
Column() {
Text(this.item.crkrq).alignSelf(ItemAlign.Start).width("30%")
Text(
this.
renderPzlx(this.item.pzlx)).alignSelf(ItemAlign.Start).width("30%").margin({ top: 5 })
Text(renderPzlx(this.item.pzlx)).alignSelf(ItemAlign.Start).width("30%").margin({ top: 5 })
}
Column() {
...
...
entry/src/main/ets/pages/metailmange/WzInPage/Wzin.data.ets
View file @
4ccebb3f
import { pzlx_dict, szlx_dict,zmlx_dict } from '@ohos/common'
@Observed
export class WzinClass {
guid?: string
...
...
@@ -151,4 +152,17 @@ export class WzinClass {
this.bdguid = data.bdguid;
this.dec = data.dec;
}
}
// 凭证类型
export function renderPzlx(pzlx) {
return pzlx_dict.find(v => v.value == pzlx).text
}
// 收支类型
export function renderSzlx(szlx) {
return szlx_dict.find(v => v.value == szlx).text
}
// 账目类型
export function renderZmlx(zmlx) {
return zmlx_dict.find(v => v.value == zmlx).text
}
\ No newline at end of file
entry/src/main/ets/pages/order_detail/PzInOutDetailPage.ets
View file @
4ccebb3f
import { TitleBar } from '../../view/title/TitleBar'
import { BasicTable } from '../../view/BasicTable/BasicTable'
import router from '@ohos.router';
import { Logger } from '@ohos/common/src/main/ets/utils/Logger';
import wzcrkmxModel from '../../model/WzcrkmxModel';
import { Wzcrk } from '@ohos/common/src/main/ets/entity/Wzcrk';
import { renderPzlx, renderSzlx,renderZmlx } from '../metailmange/WzInPage/Wzin.data';
@Extend(Button) function CommonButtonStyle() {
.borderWidth(2)
.borderColor('#0fa983')
...
...
@@ -10,6 +14,9 @@ import router from '@ohos.router';
.type(ButtonType.Normal)
.stateEffect(true)
}
interface params {
wzcrk: Wzcrk
}
/*入库.出库*/
@Entry
@Component
...
...
@@ -17,8 +24,26 @@ struct PzInOutDetailPage{
@State fontColor: string = '#0FA983'
@State selectedFontColor: string = '#fff'
@State currentIndex: number = 0
@State wzcrk: Wzcrk = null // 物资出入库单据信息
private controller: TabsController = new TabsController()
private searchcontroller: SearchController = new SearchController()
aboutToAppear(){
const params = router.getParams() as params
this.wzcrk = params.wzcrk
Logger.info('接收到出入库信息>>', JSON.stringify(params.wzcrk))
this.getDetail()
}
// 获取凭证信息
async getDetail() {
// const res = await wzcrkmxModel.query(this.wzcrk.guid)
// Logger.info('接收到出入库物资明细信息>>', JSON.stringify(res))
}
@Builder TabBuilder(index: number, name: string) {
Column() {
Text(name)
...
...
@@ -54,7 +79,7 @@ struct PzInOutDetailPage{
.width("30%")
.height(40)
.fontColor($r("app.color.item_color_black"))
TextInput({ placeholder: "发物单" })
TextInput({ placeholder: "发物单"
,text:renderPzlx(this.wzcrk.pzlx)
})
.enterKeyType(EnterKeyType.Search)
.borderColor("#454545")
.borderRadius(5)
...
...
@@ -71,13 +96,14 @@ struct PzInOutDetailPage{
.width("30%")
.height(40)
.fontColor($r("app.color.item_color_black"))
TextInput({ placeholder: "请输入凭证号" })
TextInput({ placeholder: "请输入凭证号"
,text:this.wzcrk.pzh + ''
})
.enterKeyType(EnterKeyType.Search)
.borderRadius(5)
.width("70%")
.height(40)
.padding(10)
.backgroundColor($r("app.color.disabledColor"))
.enabled(false)
}.padding("10vp")
Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) {
...
...
@@ -100,7 +126,7 @@ struct PzInOutDetailPage{
.width("30%")
.height(40)
.fontColor($r("app.color.item_color_black"))
TextInput({ placeholder: "调入"
})
TextInput({ placeholder: "调入"
,text :renderSzlx(this.wzcrk.pzszlx)
})
.enterKeyType(EnterKeyType.Search)
.borderColor("#454545")
.borderRadius(5)
...
...
@@ -115,13 +141,14 @@ struct PzInOutDetailPage{
.fontSize(14)
.height(40)
.fontColor($r("app.color.item_color_black"))
TextInput({ placeholder: "请输入运单号" })
TextInput({ placeholder: "请输入运单号"
,text:this.wzcrk.ydh
})
.enterKeyType(EnterKeyType.Search)
.borderRadius(5)
.backgroundColor($r("app.color.disabledColor"))
.width("70%")
.height(40)
.padding(10)
.enabled(false)
}.padding("10vp").width("100%")
Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) {
Text("发物管理单位:")
...
...
@@ -129,13 +156,14 @@ struct PzInOutDetailPage{
.width("30%")
.height(40)
.fontColor($r("app.color.item_color_black"))
TextInput({ placeholder: "浙江钧普科技股份有限公司" })
TextInput({ placeholder: "浙江钧普科技股份有限公司"
,text:this.wzcrk.fwgldwdm
})
.enterKeyType(EnterKeyType.Search)
.borderRadius(5)
.width("70%")
.height(40)
.padding(10)
.backgroundColor($r("app.color.disabledColor"))
.enabled(false)
}.padding("10vp")
Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) {
...
...
@@ -144,13 +172,14 @@ struct PzInOutDetailPage{
.width("30%")
.height(40)
.fontColor($r("app.color.item_color_black"))
TextInput({ placeholder: "浙江钧普科技股份有限公司" })
TextInput({ placeholder: "浙江钧普科技股份有限公司"
, text:this.wzcrk.swgldwdm
})
.enterKeyType(EnterKeyType.Search)
.borderRadius(5)
.width("70%")
.height(40)
.padding(10)
.backgroundColor($r("app.color.disabledColor"))
.enabled(false)
}.padding("10vp")
Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) {
...
...
@@ -159,7 +188,7 @@ struct PzInOutDetailPage{
.width("30%")
.height(40)
.fontColor($r("app.color.item_color_black"))
TextInput({ placeholder: "请输入账目类型" })
TextInput({ placeholder: "请输入账目类型"
,text:renderZmlx(this.wzcrk.zmlx)
})
.enterKeyType(EnterKeyType.Search)
.borderRadius(5)
.width("70%")
...
...
@@ -271,13 +300,16 @@ struct PzInOutDetailPage{
Tabs({ barPosition: BarPosition.Start, controller: this.controller }) {
TabContent() {
Column(){
this.VoucherRow()
//
this.VoucherRow()
}.width("100%")
}.tabBar(this.TabBuilder(0, '凭证信息'))
TabContent() {
Column(){
this.WzInfoRow()
if(this.wzcrk){
this.WzInfoRow()
}
}.width("100%")
}.tabBar(this.TabBuilder(1, '物资信息'))
}
...
...
oh-package.json5
View file @
4ccebb3f
...
...
@@ -11,4 +11,4 @@
"dependencies": {
"@ohos/axios": "^2.1.1"
}
}
\ No newline at end of file
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论