Commit 4ccebb3f by 陈桂东

commit

parent 98fd287f
{
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"
],
},
],
},
......
......@@ -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
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() {
......
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
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, '物资信息'))
}
......
......@@ -11,4 +11,4 @@
"dependencies": {
"@ohos/axios": "^2.1.1"
}
}
\ No newline at end of file
}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论