Ver Fonte

修改工位屏-设备打印项目选择时的接口未成功 ---cjh

17767204043 há 3 anos atrás
pai
commit
32612fae3b
1 ficheiros alterados com 3 adições e 8 exclusões
  1. 3 8
      src/views/ChipPrintScreen/ChipPrintScreenEquipment.vue

+ 3 - 8
src/views/ChipPrintScreen/ChipPrintScreenEquipment.vue

@@ -607,7 +607,6 @@ export default {
       this.axios.get('/api/ext_print_format_station').then(res=>{
        this.printTip = res.data.data;
     })  
-    console.log(this.printTip);
   },
   methods: {
       totalChoose(){
@@ -726,7 +725,6 @@ export default {
       }
     //   if (row.un_print == 0) {
     //     row.isFinished = true;
-       console.log(this.selectedObj);
     },
     handleSelectionClick(row, obj) {
       row.list.map((v) => (v.isCurrent = false));
@@ -933,7 +931,6 @@ export default {
     },
     //项目、图号确认
     handleSelectionComfirm(row) {
-      console.log(`row`, row);
       // 这里需要把弹框关闭之后赋值到selectedInfo上
       // this.selectedInfo.order_no;
       // 1 项目选择  2图号选择
@@ -941,6 +938,9 @@ export default {
         this.selectedInfo.order_no = this.chooseOrderNo.order_no;
         this.selectedInfo.residential_name = this.chooseOrderNo.residential_name;
         this.selectionModal = false;
+        this.selectedInfo.url_number = "";
+        this.selectedInfo.product_id = "";
+        this.getChipDetail();
       } else if (row.type == 2) {
         this.selectedInfo.url_number = this.chooseUrlNo.url_number;
         this.selectedInfo.product_id = this.chooseUrlNo.product_id;
@@ -974,7 +974,6 @@ export default {
             this.selectedObj.forEach(v=>{
                 ids.push(v.id);
             })
-          console.log(`res`, res);
           res.data.data.map(v=>{
               if(ids.indexOf(v.id)>=0){
                   v.isChoosed=true
@@ -1156,9 +1155,7 @@ export default {
            if(printer_brand === '灵天智能'){
               const wxsoect = new WebSocket(`ws://localhost:${printerUsbPort?printerUsbPort:'1808'}`);
           this.wxsoect = wxsoect;
-           console.log("this.wxsoect :>> ", this.wxsoect);
            wxsoect.onopen = function(evt) {
-              console.log(`已成功打开`);
                  };
           }
 
@@ -1174,7 +1171,6 @@ export default {
                })
           }else if(printer_brand === 'POSTEK'){      
           this.axios.get("/api/get_print_local_url").then((res) => {
-            console.log(res);
             if (res.code == 200) {
 
               if (res.data.state) {
@@ -1575,7 +1571,6 @@ export default {
           PTK_SetLabelHeight: 624 + "," + 24 + ",0,false",
         });
         printparamsJsonArray.push({ PTK_SetLabelWidth: 1080 });
-        console.log(`contents`, contents);
         if (type == 1) {
           contents.map((content) => {
             //江山打印格式