Ver Fonte

面损表查看

fenghaifu há 2 anos atrás
pai
commit
cb4467866c
1 ficheiros alterados com 25 adições e 1 exclusões
  1. 25 1
      src/views/reportForms/fabric-loss-table.vue

+ 25 - 1
src/views/reportForms/fabric-loss-table.vue

@@ -375,7 +375,7 @@
       </div> -->
 
       <!-- 页面底部保存 -->
-      <a-row :gutter="24" style="marginTop:40px;float:right" class="noprint">
+      <a-row :gutter="24" style="marginTop:40px;float:right" class="noprint" v-if="!isView">
         <a-col :md="12" :sm="12" style="display:flex">
           <a-button type="primary" @click="daYin" style="margin-right:6px" :disabled ="PrintButton">
             打印
@@ -477,6 +477,7 @@ export default {
       },
       edit:'0',
       planNO:'',//计划单号
+      isView:false,//是否查看状态
       // 采购订单 表头
       purchaseOrderColumns: [
         { title: '货物名称', width: '21%', dataIndex: 'cinvName', className: 'replacecolor specel-width'},
@@ -1424,6 +1425,29 @@ export default {
     //   item.ioriSum = parseFloat(ioriSum.toFixed(4));
     //   return [item];
     // }
+  },
+  created(){
+    var ccode = this.$route.query.ccode;
+    /*
+    console.log("----------------ccode 1:"+ccode);
+
+    var url = window.location.href ;             //获取当前url
+    var dz_url = url.split('#')[0];                //获取#/之前的字符串
+    var cs = dz_url.split('?')[1];                //获取?之后的参数字符串
+    var cs_arr = cs.split('&');                    //参数字符串分割为数组
+    var cs={};
+    for(var i=0;i<cs_arr.length;i++){         //遍历数组,拿到json对象
+      cs[cs_arr[i].split('=')[0]] = cs_arr[i].split('=')[1]
+    }
+    ccode = cs.ccode;
+        console.log("----------------ccode 2:"+ccode);     */
+        
+    if (ccode != undefined && ccode != ""){
+      this.planNO = ccode;
+      this.showSelect=1;
+      this.isView = true;
+      this.onSearch(this.planNO,'0');
+    }
   }
 }
 </script>