|
@@ -538,11 +538,15 @@ export default {
|
|
console.log(this.ruleForm.type)
|
|
console.log(this.ruleForm.type)
|
|
},
|
|
},
|
|
typePrintClick(selection) {
|
|
typePrintClick(selection) {
|
|
-
|
|
|
|
|
|
+ sessionStorage.removeItem('inOutRecord_printBD')
|
|
|
|
+ sessionStorage.removeItem('inOutRecord_printJSD')
|
|
|
|
+ this.printList = []
|
|
|
|
+ this.printList1 = []
|
|
|
|
+ this.count = 0
|
|
for(let j = 0 ; j < this.ruleForm.type.length ; j++){
|
|
for(let j = 0 ; j < this.ruleForm.type.length ; j++){
|
|
if(this.ruleForm.type[j] == "打印磅单"){
|
|
if(this.ruleForm.type[j] == "打印磅单"){
|
|
for(let i = 0 ; i < selection.length ; i++){
|
|
for(let i = 0 ; i < selection.length ; i++){
|
|
- selection[i].printType = "打印磅单"
|
|
|
|
|
|
+ // selection[i].printType = "打印磅单"
|
|
selection[i].code = this.getdate() + selection[i].commonWarehouseNo + this.verifyinit()
|
|
selection[i].code = this.getdate() + selection[i].commonWarehouseNo + this.verifyinit()
|
|
this.printList.push(selection[i])
|
|
this.printList.push(selection[i])
|
|
}
|
|
}
|
|
@@ -557,44 +561,29 @@ export default {
|
|
this.printSettlementSheet(selection)
|
|
this.printSettlementSheet(selection)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
- for(let num = 0 ; num < selection.length ; num++){
|
|
|
|
- if(this.count == selection.length){
|
|
|
|
|
|
+ if(this.ruleForm.type.length == 1 && this.ruleForm.type[0] == "打印磅单"){
|
|
sessionStorage.setItem('inOutRecord_printBD', JSON.stringify(this.printList))
|
|
sessionStorage.setItem('inOutRecord_printBD', JSON.stringify(this.printList))
|
|
- sessionStorage.setItem('inOutRecord_printJSD', JSON.stringify(this.printList1))
|
|
|
|
- window.open('../../../../../static/tradeServicesPrint.html')
|
|
|
|
- }
|
|
|
|
|
|
+ window.open('../../../../../static/tradeServicesPrint.html')
|
|
}
|
|
}
|
|
},
|
|
},
|
|
async printSettlementSheet(list){
|
|
async printSettlementSheet(list){
|
|
for(let i = 0 ; i < list.length ; i++ ){
|
|
for(let i = 0 ; i < list.length ; i++ ){
|
|
- // if(list[i].paymentId){
|
|
|
|
getpaymentexamine({ id: list[i].paymentId })
|
|
getpaymentexamine({ id: list[i].paymentId })
|
|
.toPromise()
|
|
.toPromise()
|
|
.then((res) => {
|
|
.then((res) => {
|
|
- console.log(res)
|
|
|
|
- res.printType = "打印结算单"
|
|
|
|
|
|
+ // res.printType = "打印结算单"
|
|
this.printList1.push(res)
|
|
this.printList1.push(res)
|
|
this.count++
|
|
this.count++
|
|
|
|
+ if(this.count == list.length){
|
|
|
|
+ sessionStorage.setItem('inOutRecord_printBD', JSON.stringify(this.printList))
|
|
|
|
+ sessionStorage.setItem('inOutRecord_printJSD', JSON.stringify(this.printList1))
|
|
|
|
+ console.log("磅单",this.printList)
|
|
|
|
+ console.log("结算单",this.printList1)
|
|
|
|
+ window.open('../../../../../static/tradeServicesPrint.html')
|
|
|
|
+ }
|
|
})
|
|
})
|
|
- // }
|
|
|
|
-
|
|
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- // async tiaozhuan(){
|
|
|
|
- // for(let num = 0 ; num < selection.length ; num++){
|
|
|
|
- // if(this.count == selection.length){
|
|
|
|
- // console.log(this.count , selection.length)
|
|
|
|
- // console.log("bang单",this.printList)
|
|
|
|
- // console.log("结算单",this.printList1)
|
|
|
|
- // sessionStorage.setItem('inOutRecord_printBD', JSON.stringify(this.printList))
|
|
|
|
- // sessionStorage.setItem('inOutRecord_printJSD', JSON.stringify(this.printList1))
|
|
|
|
- // // window.open('../../../../../static/tradeServicesPrint.html')
|
|
|
|
- // }
|
|
|
|
- // }
|
|
|
|
-
|
|
|
|
- // },
|
|
|
|
-
|
|
|
|
handleSelectionChange(val) {
|
|
handleSelectionChange(val) {
|
|
this.selection = val
|
|
this.selection = val
|
|
console.log(val)
|
|
console.log(val)
|
|
@@ -615,24 +604,10 @@ export default {
|
|
handleLook(status, item) {
|
|
handleLook(status, item) {
|
|
if (status == 1) {
|
|
if (status == 1) {
|
|
this.tableData = item
|
|
this.tableData = item
|
|
- // getwarehousecount({
|
|
|
|
- // positionId:this.deptBudgetList.positionId,
|
|
|
|
- // // positionId: "6a46921d2f7a468d9c73663d6c28e294",
|
|
|
|
- // inOutFlag:item.inOutFlag
|
|
|
|
- // }).toPromise()
|
|
|
|
- // .then((res) => {
|
|
|
|
- // var count='000'+(res+1)
|
|
|
|
- // count=count.substring(count.length-3)
|
|
|
|
this.tableData.code =
|
|
this.tableData.code =
|
|
this.getdate() + item.commonWarehouseNo + this.verifyinit()
|
|
this.getdate() + item.commonWarehouseNo + this.verifyinit()
|
|
this.isCountShow = true
|
|
this.isCountShow = true
|
|
- // })
|
|
|
|
} else {
|
|
} else {
|
|
- // getsettleaccout({id:item.id}).toPromise()
|
|
|
|
- // .then((res) => {
|
|
|
|
- // this.printData=res
|
|
|
|
- // this.isShowPrint=true
|
|
|
|
- // })
|
|
|
|
getpaymentexamine({ id: item.paymentId })
|
|
getpaymentexamine({ id: item.paymentId })
|
|
.toPromise()
|
|
.toPromise()
|
|
.then((res) => {
|
|
.then((res) => {
|