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
7fee8966
Commit
7fee8966
authored
Jan 22, 2024
by
陈桂东
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
数据保存
parent
f7c77630
显示空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
20 行增加
和
30 行删除
+20
-30
WzcrkDao.ets
common/src/main/ets/db/dao/WzcrkDao.ets
+2
-0
Wzcrkmx.ts
common/src/main/ets/entity/Wzcrkmx.ts
+2
-1
WzInPage.ets
entry/src/main/ets/pages/metailmange/WzInPage/WzInPage.ets
+3
-2
Wzin.data.ets
entry/src/main/ets/pages/metailmange/WzInPage/Wzin.data.ets
+6
-6
WzInfo.ets
entry/src/main/ets/pages/metailmange/WzInPage/WzinDetail/WzInfo.ets
+2
-0
WzinDetail.ets
entry/src/main/ets/pages/metailmange/WzInPage/WzinDetail/WzinDetail.ets
+5
-21
没有找到文件。
common/src/main/ets/db/dao/WzcrkDao.ets
View file @
7fee8966
...
...
@@ -159,8 +159,10 @@ export class WzcrkDao extends BaseTable<Wzcrk> {
// wp.equalTo('CRKLX', crklx)
// wp.orderByAsc('PZH');
for (const [key, value] of Object.entries(data)) {
if(value) {
wp.equalTo(key, value)
}
}
return this.query(wp, this.getTableColumns());
}
...
...
common/src/main/ets/entity/Wzcrkmx.ts
View file @
7fee8966
...
...
@@ -31,5 +31,5 @@ export interface Wzcrkmx {
/**
* 临时码
*/
// wzdm
: string
wzdm
?
:
string
}
\ No newline at end of file
entry/src/main/ets/pages/metailmange/WzInPage/WzInPage.ets
View file @
7fee8966
...
...
@@ -65,8 +65,8 @@ export struct WzInPage {
async getWzcrkList(qzh?: number, wczt?: string) {
Logger.info('出入库传入参数>>:', JSON.stringify(this.searchData))
this.dataSource = []
// const res = await wzcrkModel.query({ crklx: "2", pzh: Number(this.pzh), wczt: this.wczt, sjlx: this.sjlx
})
const res = await wzcrkModel.query({ crklx: "2" })
const res = await wzcrkModel.query({ crklx: "2", pzh: Number(this.pzh) , wczt: this.wczt, sjlx: this.currentIndex === 0 ? "导入" : "临时收物"
})
//
const res = await wzcrkModel.query({ crklx: "2" })
Logger.info('出入库数据>>:', JSON.stringify(res))
Logger.info('出入库数据长度>>:', JSON.stringify(res.length))
res.forEach(element => {
...
...
@@ -299,6 +299,7 @@ export struct WzInPage {
.height(80)
.onChange((index: number) => {
this.currentIndex = index
this.getWzcrkList()
})
Row() {
...
...
entry/src/main/ets/pages/metailmange/WzInPage/Wzin.data.ets
View file @
7fee8966
...
...
@@ -162,11 +162,11 @@ export class WzmxClass {
/**
* 工作年度
*/
gznd: string
//
gznd: string
/**
* 品名代码
*/
pmdmcode: string
//
pmdmcode: string
/**
* 凭证数量
*/
...
...
@@ -210,8 +210,8 @@ export class WzmxClass {
constructor(data: {
guid?: string,
gznd: string,
pmdmcode: string,
//
gznd: string,
//
pmdmcode: string,
pzsl: number,
crksl: number,
wzcrkguid: string,
...
...
@@ -224,8 +224,8 @@ export class WzmxClass {
wczt:string
}) {
this.guid = data.guid;
this.gznd = data.gznd;
this.pmdmcode = data.pmdmcode;
//
this.gznd = data.gznd;
//
this.pmdmcode = data.pmdmcode;
this.pzsl = data.pzsl;
this.crksl = data.crksl;
this.wzcrkguid = data.wzcrkguid;
...
...
entry/src/main/ets/pages/metailmange/WzInPage/WzinDetail/WzInfo.ets
View file @
7fee8966
...
...
@@ -24,6 +24,7 @@ export struct WzInfo {
@State sfdw: string = ''
@State private wzmx: WzmxClass[] = []
@ObjectLink wzcrk: WzinClass
getDetail: (wzpm?:string) => void
aboutToAppear(){
this.getData()
...
...
@@ -100,6 +101,7 @@ export struct WzInfo {
.textFont({ size: 14, weight: 400 })
.width('75%')
.onSubmit((value: string) => {
this.getDetail(value)
})
.onChange((value: string) => {
})
...
...
entry/src/main/ets/pages/metailmange/WzInPage/WzinDetail/WzinDetail.ets
View file @
7fee8966
...
...
@@ -43,30 +43,14 @@ struct WzinDetail {
}
// 获取凭证信息
async getDetail() {
const res = await wzcrkmxModel.query(this.wzcrk.guid)
async getDetail(wzpm?) {
this.wzmx = []
const res = await wzcrkmxModel.query(this.wzcrk.guid, wzpm)
res.forEach(i => {
// @ts-ignore
this.wzmx.push(new WzmxClass(i))
})
Logger.info('接收到出入库物资明细信息>>', JSON.stringify(res))
// for (let index = 0; index < res.length; index++) {
// const element = res[index];
// const res1 = await bzhxModel.queryByCode(element.pmdmcode)
// Logger.info('查询到对应品名代码》》', JSON.stringify(res1))
// // @ts-ignore
// element.xh = res1.xh
// // @ts-ignore
// element.hxmc = res1.hxmc
// // @ts-ignore
// element.pmdmSix = res1.pmdmSix
// // @ts-ignore
// element.wzpm = res1.wzpm
// // @ts-ignore
// element.wczt = this.wzcrk.wczt
// // @ts-ignore
// this.wzmx.push(new WzmxClass(element))
// }
}
@Builder TabBuilder(index: number, name: string) {
...
...
@@ -96,7 +80,7 @@ struct WzinDetail {
TabContent() {
Column() {
WzInfo({ wzmx: this.wzmx, wzcrk: this.wzcrk })
WzInfo({ wzmx: this.wzmx, wzcrk: this.wzcrk
,getDetail:this.getDetail
})
}.width("100%")
}.tabBar(this.TabBuilder(1, '物资信息'))
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论