Ver código fonte

提交代码

陈少旭 1 ano atrás
pai
commit
b0e43e0c60

+ 5 - 6
src/xt_pages/outpatientDoctorStation/prescriptionTemplatedetail.vue Ver arquivo

1711
               }
1711
               }
1712
               this.curStatus = 1
1712
               this.curStatus = 1
1713
             }
1713
             }
1714
+            console.log("~~~~222222~~~~~~~")
1715
+            console.log(temp2)
1714
 
1716
 
1715
             if (temp2.length > 0) {
1717
             if (temp2.length > 0) {
1718
+              console.log("~~~~11111~~~~~~~")
1716
               for (let b = 0; b < temp2.length; b++) {
1719
               for (let b = 0; b < temp2.length; b++) {
1717
                 let obj = {
1720
                 let obj = {
1718
                   id: 0,
1721
                   id: 0,
1765
         this.teamList = row
1768
         this.teamList = row
1766
       },
1769
       },
1767
       selectChange(selection, row) {
1770
       selectChange(selection, row) {
1768
-        if ( this.org_id == 10206 && row.zuobiao_stock_num <= 0) {
1771
+        if (this.org_id == 10206 && row.zuobiao_stock_num <= 0) {
1769
           if (row.type == 3) {
1772
           if (row.type == 3) {
1770
             if (selection) {
1773
             if (selection) {
1771
               selection.forEach(row => {
1774
               selection.forEach(row => {
1776
             } else {
1779
             } else {
1777
               this.$refs.tables.clearSelection()
1780
               this.$refs.tables.clearSelection()
1778
             }
1781
             }
1779
-
1780
             this.$message.error(row.project_name + '库存不足')
1782
             this.$message.error(row.project_name + '库存不足')
1781
             return
1783
             return
1782
-          }else{
1783
-            this.teamList = row
1784
           }
1784
           }
1785
-        }else{
1786
-          this.teamList = row
1787
         }
1785
         }
1786
+        this.teamList = selection
1788
       }, getPrescriptionTemplateInfo() {
1787
       }, getPrescriptionTemplateInfo() {
1789
         let params = {
1788
         let params = {
1790
           id: this.$route.query.id
1789
           id: this.$route.query.id