Przeglądaj źródła

解除置灰打印文件

阿伏兔 4 lat temu
rodzic
commit
4c5bfae70e
1 zmienionych plików z 35 dodań i 35 usunięć
  1. 35 35
      src/views/Warehousing/inStock/AddOrUpdate.vue

+ 35 - 35
src/views/Warehousing/inStock/AddOrUpdate.vue

@@ -5282,41 +5282,41 @@ export default {
               this.print_lwqr = true;
             } else if (command == "f") {
               this.print_dpxx = true;
-              // }
-              // else if(command == "g"){
-              //   this.print_ccdzrkd = true
-              // } else if(command == "h"){
-              //   if(this.Printinglist.length == 1){
-              //     this.print_fxdkrkd = true
-              //   }else {
-              //     this.$message.error("请选择单条明细")
-              //   }
-              // } else if(command == "i"){
-              // this.print_khrkd = true
-              // } else if(command == "j"){
-              //   let date = new Date(this.Printinglist[0].fBsdate)
-              //   let Y = date.getFullYear()
-              //   let M = (date.getMonth() +1 <10 ?'0' + (date.getMonth() +1) : date.getMonth() +1)
-              //   let D = date.getDate()
-              //   this.form.fBsdate = Y + '-' + M + '-' + D
-              // this.print_xhcdrkd = true
-              // } else if(command == "k") {
-              //   let container = []
-              //   this.container = ''
-              //   this.CntrTable.map((e)=>{
-              //     this.cntrList.map((i)=>{
-              //       if(i.fId == e.fCntrid){
-              //         e.fCntrid = i.fName
-              //         container.push(e.fCntrid + '*' + e.fCntrcount + ',')
-              //       }
-              //     })
-              //   })
-              //   container.forEach(item =>{
-              //     this.container += item
-              //   })
-              //   this.container = this.container.slice(0,this.container.length-1)
-              //   console.log(this.container)
-              //   this.print_zpdkrkd = true
+              }
+              else if(command == "g"){
+                this.print_ccdzrkd = true
+              } else if(command == "h"){
+                if(this.Printinglist.length == 1){
+                  this.print_fxdkrkd = true
+                }else {
+                  this.$message.error("请选择单条明细")
+                }
+              } else if(command == "i"){
+              this.print_khrkd = true
+              } else if(command == "j"){
+                let date = new Date(this.Printinglist[0].fBsdate)
+                let Y = date.getFullYear()
+                let M = (date.getMonth() +1 <10 ?'0' + (date.getMonth() +1) : date.getMonth() +1)
+                let D = date.getDate()
+                this.form.fBsdate = Y + '-' + M + '-' + D
+              this.print_xhcdrkd = true
+              } else if(command == "k") {
+                let container = []
+                this.container = ''
+                this.CntrTable.map((e)=>{
+                  this.cntrList.map((i)=>{
+                    if(i.fId == e.fCntrid){
+                      e.fCntrid = i.fName
+                      container.push(e.fCntrid + '*' + e.fCntrcount + ',')
+                    }
+                  })
+                })
+                container.forEach(item =>{
+                  this.container += item
+                })
+                this.container = this.container.slice(0,this.container.length-1)
+                console.log(this.container)
+                this.print_zpdkrkd = true
             } else if (command == "z") {
               let date = new Date();
               let hours =