ccj 1 year ago
parent
commit
bb16c1d245
2 changed files with 21 additions and 6 deletions
  1. 17 2
      src/views/home/index.vue
  2. 4 4
      src/views/warehousenew/warehouseManagementList.vue

+ 17 - 2
src/views/home/index.vue

@@ -281,9 +281,24 @@ export default {
       this.rightTopDataObj = {
         'ck':res[4].biViewInfoList,
         'rk':res[5].biViewInfoList,
-        
       }
-      this.rightCenterDataList = res[7].biViewInfoList
+      if(this.compId == '258fba198eea4cd1a5eddc71ba421b4a'){
+        // this.rightCenterDataList = res[7].biViewInfoList
+        // var result = []
+        for(var i =0;i<res[7].biViewInfoList.length;i++){
+          var tmp = res[7].biViewInfoList[i]
+          if(tmp.name == '密山市大自然粮贸有限公司'||
+          tmp.name == '密山市大自然粮贸有限公司(光复)'||
+          tmp.name == '黑龙江阳光种业有限公司'
+          ){
+            this.rightCenterDataList.push(tmp)
+          }
+        }
+      }
+      else{
+        this.rightCenterDataList = res[7].biViewInfoList
+      }
+      
       this.rightBottomDataList = res[8].contractManagementInfos
       this.MapList =  res[3].biViewInfoList
       

+ 4 - 4
src/views/warehousenew/warehouseManagementList.vue

@@ -2,7 +2,7 @@
 <template>
   <div class="container">
     <!-- 表格 -->
-    <div v-if="this.compId=='!258fba198eea4cd1a5eddc71ba421b4a'" class="top_form" v-hasPermission="`warehouseManagement.warehouse.warehouseInfo.kan`">
+    <div v-if="this.compId!='258fba198eea4cd1a5eddc71ba421b4a'" class="top_form" v-hasPermission="`warehouseManagement.warehouse.warehouseInfo.kan`">
       <div style='position:relative;' class="title">
         <span style="font-size:18px;font-weight: 600;margin-left:20px">今日储量明细</span><span style="color:#8890B1;font-size:16px">({{dateTime}})</span>
         <ws-button type="primary" v-hasPermission="`warehouseManagement.warehouse.warehouseInfo.kan`" @click="handleall()" style="margin-left:20px;position:absolute;right:10px;top:50%;transform: translateY(-50%);">库存明细</ws-button>
@@ -16,7 +16,7 @@
         <el-form class="position" ref="deptBudgetList" :rules="rules" :model="deptBudgetList">
           <div class="title"><span class="cangInfo">仓库信息</span></div>
           <!-- 仓储部负责人 -->
-          <el-form-item v-if="this.compId=='!258fba198eea4cd1a5eddc71ba421b4a'" label-width="120px" label="仓储部负责人" span="1" prop="acceptanceMethod">
+          <el-form-item v-if="this.compId!='258fba198eea4cd1a5eddc71ba421b4a'" label-width="120px" label="仓储部负责人" span="1" prop="acceptanceMethod">
              <el-input v-model="responsible" placeholder="暂无" maxlength="100" size="small" disabled/>
           </el-form-item>
           <!--仓库名称-->
@@ -44,7 +44,7 @@
                <el-input v-model="warehouseInfo.personCharge" placeholder="暂无" maxlength="100" size="small" disabled/>
           </el-form-item>
           <!--其他负责人-->
-          <el-form-item v-if="this.compId=='!258fba198eea4cd1a5eddc71ba421b4a'" label-width="120px" label="其他驻库人员" span="1" prop="otherPersonCharge">
+          <el-form-item v-if="this.compId!='258fba198eea4cd1a5eddc71ba421b4a'" label-width="120px" label="其他驻库人员" span="1" prop="otherPersonCharge">
             <!-- <el-select v-model="WarehouseInfo.otherPersonPhone" placeholder="暂无" @change="selectstaffOther" multiple filterable clearable collapse-tags disabled> -->
                <el-input v-model="warehouseInfo.otherPersonCharge" placeholder="暂无" maxlength="100" size="small" disabled/>
           </el-form-item>
@@ -113,7 +113,7 @@
           </div>
         </div>
     </div>
-    <div v-if="this.compId=='!258fba198eea4cd1a5eddc71ba421b4a'" class="position">
+    <div v-if="this.compId!='258fba198eea4cd1a5eddc71ba421b4a'" class="position">
       <div class="title"><span style="font-size:18px;font-weight: 600;margin-left:20px">当期储量</span></div>
       <ws-button type="primary" @click="handleAdd()" v-hasPermission="`warehouseManagement.warehouse.warehouseInfo.add`" style="margin-left:20px">添加</ws-button>
       <ws-button v-hasPermission="`warehouseManagement.warehouse.warehouseInfo.view` " @click="handleLook()">查看</ws-button>