|
@@ -1,5 +1,5 @@
|
|
|
import StorageRequest from '../common/util/request/StorageIndex';
|
|
|
-import {ScanStorageclass}from './IntelligentStorageWarehousing'
|
|
|
+import {ScanStoragecodeclass}from './IntelligentStorageWarehousing'
|
|
|
class Item{
|
|
|
name:string
|
|
|
id:string
|
|
@@ -16,7 +16,7 @@ class Item{
|
|
|
///无批次号物料详情弹窗
|
|
|
struct Outbound {
|
|
|
@Link value:number
|
|
|
- @State private items:Array<ScanStorageclass>=[]
|
|
|
+ @State private items:Array<ScanStoragecodeclass>=[]
|
|
|
@Link CunQuHuo:number
|
|
|
scroller: Scroller = new Scroller()
|
|
|
@State navigation:number=0
|
|
@@ -307,8 +307,8 @@ struct buffer {
|
|
|
@State num:number=0
|
|
|
@State materialName:string=''
|
|
|
@State itemCode:string='132451234'
|
|
|
- ScanStorageCode= async(itemCode:string) : Promise<ScanStorageclass> => {
|
|
|
- let obj: ScanStorageclass
|
|
|
+ ScanStorageCode= async(itemCode:string) : Promise<ScanStoragecodeclass> => {
|
|
|
+ let obj: ScanStoragecodeclass
|
|
|
let res = await StorageRequest.get("/api/v3/common/scanItem/"+itemCode)
|
|
|
//let res = await StorageRequest.get("/api/v3/stock/selectSafeList/1")
|
|
|
console.log('testTag', '扫码成功1!' + JSON.stringify(res))
|
|
@@ -329,7 +329,7 @@ struct buffer {
|
|
|
// // console.log("扫码成功4!"+JSON.stringify(this.ScanStoragelist))
|
|
|
// }
|
|
|
@State click:number=-1
|
|
|
- @Link private ScanStoragelist:Array<ScanStorageclass>
|
|
|
+ @Link private ScanStoragelist:Array<ScanStoragecodeclass>
|
|
|
@Link CunQuHuo:number
|
|
|
scroller: Scroller = new Scroller()
|
|
|
@State navigation:number=0
|
|
@@ -363,7 +363,7 @@ struct buffer {
|
|
|
.backgroundColor("#ffff")
|
|
|
.borderRadius(21)
|
|
|
.onSubmit(() => {
|
|
|
- this.ScanStorageCode(this.itemCode).then((obj : ScanStorageclass)=>{
|
|
|
+ this.ScanStorageCode(this.itemCode).then((obj : ScanStoragecodeclass)=>{
|
|
|
this.ScanStoragelist.push(obj)
|
|
|
})
|
|
|
})
|
|
@@ -383,7 +383,7 @@ struct buffer {
|
|
|
Column(){
|
|
|
Grid(this.scroller) {
|
|
|
if (this.ScanStoragelist && this.ScanStoragelist.length > 0) {
|
|
|
- ForEach(this.ScanStoragelist, (item:ScanStorageclass,index:number) => {
|
|
|
+ ForEach(this.ScanStoragelist, (item:ScanStoragecodeclass,index:number) => {
|
|
|
GridItem() {
|
|
|
Row(){
|
|
|
Column({space:10}){
|
|
@@ -564,7 +564,7 @@ export struct ScanTheStorageCode{
|
|
|
gridCount: 4,
|
|
|
customStyle: true,
|
|
|
})
|
|
|
- @Link private ScanStoragelist:Array<ScanStorageclass>
|
|
|
+ @Link private ScanStoragelist:Array<ScanStoragecodeclass>
|
|
|
scroller: Scroller = new Scroller()
|
|
|
MaterialRetrievalController: CustomDialogController = new CustomDialogController({
|
|
|
builder: buffer({
|
|
@@ -613,7 +613,7 @@ export struct ScanTheStorageCode{
|
|
|
///入库列表
|
|
|
Column({ space: 5 }) {
|
|
|
Grid(this.scroller) {
|
|
|
- ForEach(this.ScanStoragelist, (item:ScanStorageclass) => {
|
|
|
+ ForEach(this.ScanStoragelist, (item:ScanStoragecodeclass) => {
|
|
|
// ForEach(this.Number, (day: string) => {
|
|
|
GridItem() {
|
|
|
Row(){
|