Commit ce046a86 by huangqy

先提交再说

parent e447d0d8
......@@ -137,6 +137,7 @@ export struct WzInfo {
// 页面初始化
aboutToAppear() {
this.pzxqGuild = this.wzcrk.guid
this.historicalInformation = []
// 获取物资明细信息
this.getMxDetailsData()
this.getData()
......@@ -299,13 +300,10 @@ export struct WzInfo {
// 扫描物资
if (res.data && res.data.length > 0) {
console.log(">>>>>>>>扫描物资>>>>>>>" + JSON.stringify(res.data))
let isNumber = false
res.data.forEach(element => {
if (/^\d+$/.test(element.srsl)) { // 判断扫描的物资的srsl一定是数字才会通过校验不是就报错
isNumber = true
}
});
if (!isNumber) {
// 判断扫描的物资的srsl一定是数字才会通过校验不是就报错
const errNumber = res.data.filter(i => !/^\d+$/.test(i.srsl))?.length
console.log(">>>>>>>>扫描物资>>>>>>>" + errNumber)
if (errNumber > 0) {
Prompt.showToast({
message: '当前扫描的物资信息不完整',
})
......@@ -450,6 +448,7 @@ export struct WzInfo {
async pageInit(ITEM, tip, callback?) {
try {
this.historicalInformation = []
// 不同号型新增
// 查询同号型数据
const params = {
......@@ -464,13 +463,9 @@ export struct WzInfo {
})
}
this.currentPmdmcode = ITEM.pmdmcode
this.historicalInformation = []
res.forEach(element => {
this.historicalInformation.push(new historicalInformationClass(element))
})
res.forEach(i => {
Logger.info(this, '赋值成为了什么', JSON.stringify(i))
})
this.setDefaultActive()
callback && callback()
} catch (e) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论