| | |
| | | } |
| | | }).catch((error) => { |
| | | console.log('error = ' + JSON.stringify(error)); |
| | | this.showSpinner = false; |
| | | }); |
| | | } |
| | | //barcode录入 |
| | |
| | | if (this.data[i].prodid + this.data[i]["boxPiece"] == selectedRows[j].prodid + selectedRows[j]["boxPiece"]) { |
| | | this.data[i]["check"] = true; |
| | | } |
| | | // console.log('this.data[i].ProdId+this.data[i]["boxPiece"]'+this.data[i].ProdId+this.data[i]["boxPiece"]); |
| | | console.log('selectedRows[j].prodid+this.data[i]["boxPiece"]' + selectedRows[j].prodid + selectedRows[j]["boxPiece"]); |
| | | |
| | | } |
| | | console.log('data===>'+ JSON.stringify(this.data)); |
| | | } |
| | | // this.selectedRows = []; |
| | | |
| | | // if(this.barcode == ''||this.barcode==null){ |
| | | // this.showMyToast('获取失败','请输入BarCode号','error'); |
| | | // this.showSpinner = false; |
| | | // } |
| | | barcodeEntry({ |
| | | accountNameLWC: this.accountName, |
| | | agencyProTypeLWC: this.agencyProType, |
| | |
| | | } |
| | | } |
| | | this.showSpinner = false; |
| | | // this.showTables = true; |
| | | this.showTable = true; |
| | | } else { |
| | | if (result.status == 'Success1') { |
| | |
| | | this.showMyToast(result.msg,'','error'); |
| | | this.showSpinner = false; |
| | | this.showTable = true; |
| | | |
| | | } |
| | | |
| | | // this.showMyToast('获取失败', result.msg, 'error'); |
| | |
| | | } |
| | | |
| | | }).catch((error) => { |
| | | this.showSpinner = false; |
| | | console.log('error = ' + JSON.stringify(error)); |
| | | }); |
| | | |
| | |
| | | if (this.data[i].prodid+this.data[i]["boxPiece"] == selectedRows[j].prodid+ selectedRows[j]["boxPiece"]) { |
| | | this.data[i]["check"] = true; |
| | | } |
| | | // console.log('this.data[i].ProdId+this.data[i]["boxPiece"]'+this.data[i].ProdId+this.data[i]["boxPiece"]); |
| | | console.log('selectedRows[j].prodid+this.data[i]["boxPiece"]'+selectedRows[j].prodid+selectedRows[j]["boxPiece"]); |
| | | |
| | | } |
| | | } |
| | | // var el = this.template.querySelector('c-lex-custom-lightning-datatable'); |
| | | // var selected = el.getSelectedRows(); |
| | | // this.selectedData = selected; |
| | | // console.log('选中数据' + JSON.stringify(this.selectedData)); |
| | | // console.log('this.overdueList' + this.overdueList); |
| | | save({ |
| | | iSinventory: this.iSinventory, |
| | | saveCodPageRecords: JSON.stringify(this.data), |
| | |
| | | } else { |
| | | this.showMyToast('销存失败', result.msg, 'error'); |
| | | this.showSpinner = false; |
| | | |
| | | } |
| | | }) |
| | | .catch((error) => { |