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
ce046a86
Commit
ce046a86
authored
Jan 31, 2024
by
huangqy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
先提交再说
parent
e447d0d8
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
6 行增加
和
11 行删除
+6
-11
WzInfo.ets
entry/src/main/ets/pages/metailmange/Common/WzInfo.ets
+6
-11
没有找到文件。
entry/src/main/ets/pages/metailmange/Common/WzInfo.ets
View file @
ce046a86
...
@@ -137,6 +137,7 @@ export struct WzInfo {
...
@@ -137,6 +137,7 @@ export struct WzInfo {
// 页面初始化
// 页面初始化
aboutToAppear() {
aboutToAppear() {
this.pzxqGuild = this.wzcrk.guid
this.pzxqGuild = this.wzcrk.guid
this.historicalInformation = []
// 获取物资明细信息
// 获取物资明细信息
this.getMxDetailsData()
this.getMxDetailsData()
this.getData()
this.getData()
...
@@ -299,13 +300,10 @@ export struct WzInfo {
...
@@ -299,13 +300,10 @@ export struct WzInfo {
// 扫描物资
// 扫描物资
if (res.data && res.data.length > 0) {
if (res.data && res.data.length > 0) {
console.log(">>>>>>>>扫描物资>>>>>>>" + JSON.stringify(res.data))
console.log(">>>>>>>>扫描物资>>>>>>>" + JSON.stringify(res.data))
let isNumber = false
// 判断扫描的物资的srsl一定是数字才会通过校验不是就报错
res.data.forEach(element => {
const errNumber = res.data.filter(i => !/^\d+$/.test(i.srsl))?.length
if (/^\d+$/.test(element.srsl)) { // 判断扫描的物资的srsl一定是数字才会通过校验不是就报错
console.log(">>>>>>>>扫描物资>>>>>>>" + errNumber)
isNumber = true
if (errNumber > 0) {
}
});
if (!isNumber) {
Prompt.showToast({
Prompt.showToast({
message: '当前扫描的物资信息不完整',
message: '当前扫描的物资信息不完整',
})
})
...
@@ -450,6 +448,7 @@ export struct WzInfo {
...
@@ -450,6 +448,7 @@ export struct WzInfo {
async pageInit(ITEM, tip, callback?) {
async pageInit(ITEM, tip, callback?) {
try {
try {
this.historicalInformation = []
// 不同号型新增
// 不同号型新增
// 查询同号型数据
// 查询同号型数据
const params = {
const params = {
...
@@ -464,13 +463,9 @@ export struct WzInfo {
...
@@ -464,13 +463,9 @@ export struct WzInfo {
})
})
}
}
this.currentPmdmcode = ITEM.pmdmcode
this.currentPmdmcode = ITEM.pmdmcode
this.historicalInformation = []
res.forEach(element => {
res.forEach(element => {
this.historicalInformation.push(new historicalInformationClass(element))
this.historicalInformation.push(new historicalInformationClass(element))
})
})
res.forEach(i => {
Logger.info(this, '赋值成为了什么', JSON.stringify(i))
})
this.setDefaultActive()
this.setDefaultActive()
callback && callback()
callback && callback()
} catch (e) {
} catch (e) {
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论