Browse Source

汽运结算报表权限,费用管理消息跳转到费用详情页面

gjy 2 years ago
parent
commit
48b52bca00

+ 12 - 5
src/views/statisticalReport/autoSettlementList.vue

@@ -47,7 +47,7 @@
         </el-col>
       </el-row>
       <el-row>
-        <div style="display:flex;align-items:center;justify-content: flex-start;" v-if="contractNo!='全部合同'&&warehouseList.records.length>0"><div style="width:100px;">粮食单价:</div> <div v-if="grainPricetext=='编辑'">{{grainPrice}}</div><el-input style="margin:0;" v-else v-model="grainPrice"></el-input><el-button style="margin:0 0 0 5px;" type="primary" @click="editgrainPrice">{{grainPricetext}}</el-button></div>
+        <div v-hasPermission="`report.transportationReport.wuliu`" style="display:flex;align-items:center;justify-content: flex-start;" v-if="contractNo!='全部合同'&&warehouseList.records.length>0"><div style="width:100px;">粮食单价:</div> <div v-if="grainPricetext=='编辑'">{{grainPrice}}</div><el-input style="margin:0;" v-else v-model="grainPrice"></el-input><el-button style="margin:0 0 0 5px;" type="primary" @click="editgrainPrice">{{grainPricetext}}</el-button></div>
       </el-row>
       <el-row>
         <div style="color:red">注:审核时,同一运输阶段勾选任意复选框,当前运输阶段下所有条目都通过审核!</div>
@@ -115,6 +115,7 @@
               !scope.row.actualLosschange && scope.row.actualLoss
             ">{{ scope.row.actualLoss }}</span>
             <input v-if="scope.row.actualLosschange" style="width: 60px" v-model="actualLoss" type="text" />
+            <div v-hasPermission="`report.transportationReport.wuliu`">
             <i @click="changeactualLoss(scope.row)" v-if="
               (scope.row.actualLosschange &&
                 scope.row.status == '待请款') ||
@@ -126,7 +127,7 @@
               (!scope.row.actualLosschange &&
                 scope.row.status == '已驳回')
             " width="17" height="18" style="vertical-align: text-top; position: relative; top: -1px"
-              src="../../../public/img/edit.png" @click="editactualLoss(scope.row)" alt="" />
+              src="../../../public/img/edit.png" @click="editactualLoss(scope.row)" alt="" /></div>
           </template>
         </el-table-column>
         <el-table-column width="120" class="table_td" prop="transportPrice" label="预计单价(元/吨)"></el-table-column>
@@ -136,6 +137,7 @@
               !scope.row.settlementPricechange && scope.row.settlementPrice
             ">{{ scope.row.settlementPrice }}</span>
             <input v-if="scope.row.settlementPricechange" style="width: 60px" v-model="settlementPrice" type="text" />
+            <div v-hasPermission="`report.transportationReport.wuliu`">
             <i @click="changesettlementPrice(scope.row)" v-if="
               (scope.row.settlementPricechange &&
                 scope.row.status == '待请款') ||
@@ -150,7 +152,7 @@
                 scope.row.settlementWeight &&
                 scope.row.status == '已驳回')
             " width="17" height="18" style="vertical-align: text-top; position: relative; top: -1px"
-              src="../../../public/img/edit.png" @click="editsettlementPrice(scope.row)" alt="" />
+              src="../../../public/img/edit.png" @click="editsettlementPrice(scope.row)" alt="" /></div>
           </template>
         </el-table-column>
         <el-table-column width="120" class="table_td" prop="settlementWeight" label="结算重量(吨)"><template
@@ -161,6 +163,7 @@
             ">{{ scope.row.settlementWeight }}</span>
             <input v-if="scope.row.settlementWeightchange" style="width: 60px" v-model="settlementWeight" type="text" />
             <!--改结算重量-->
+            <div v-hasPermission="`report.transportationReport.wuliu`">
             <i @click="changesettlementWeight(scope.row)" v-if="
               (scope.row.settlementWeightchange &&
                 scope.row.status == '待请款') ||
@@ -175,7 +178,7 @@
                 scope.row.settlementWeight &&
                 scope.row.status == '已驳回')
             " width="17" height="18" style="vertical-align: text-top; position: relative; top: -1px"
-              src="../../../public/img/edit.png" @click="editsettlementWeight(scope.row)" alt="" />
+              src="../../../public/img/edit.png" @click="editsettlementWeight(scope.row)" alt="" /></div>
           </template></el-table-column>
           <el-table-column width="120" class="table_td" prop="cargoDamage" label="货损">
           </el-table-column>
@@ -185,6 +188,7 @@
             ">{{ scope.row.deductionAmount }}</span>
             <input v-if="scope.row.deductionAmountchange" style="width: 60px" v-model="deductionAmount" type="text" />
             <!--改扣款-->
+            <div v-hasPermission="`report.transportationReport.wuliu`">
             <i @click="changedeductionAmount(scope.row)" v-if="
               (scope.row.deductionAmountchange &&
                 scope.row.status == '待请款') ||
@@ -197,7 +201,7 @@
               (!scope.row.deductionAmountchange &&
                 scope.row.status == '已驳回')
             " width="17" height="18" style="vertical-align: text-top; position: relative; top: -1px"
-              src="../../../public/img/edit.png" @click="editdeductionAmount(scope.row)" alt="" />
+              src="../../../public/img/edit.png" @click="editdeductionAmount(scope.row)" alt="" /></div>
           </template></el-table-column>
           <el-table-column width="100" class="table_td" label="服务费(元)" prop="serviceCharge">
             <template slot-scope="scope">
@@ -206,6 +210,7 @@
             ">{{ scope.row.serviceCharge }}</span>
             <input v-if="scope.row.serviceChargechange" style="width: 60px" v-model="serviceCharge" type="text" />
             <!--改服务费-->
+            <div v-hasPermission="`report.transportationReport.wuliu`">
             <i @click="changeserviceCharge(scope.row)" v-if="
               (scope.row.serviceChargechange &&
                 scope.row.status == '待请款') ||
@@ -219,6 +224,8 @@
                 scope.row.status == '已驳回')
             " width="17" height="18" style="vertical-align: text-top; position: relative; top: -1px"
               src="../../../public/img/edit.png" @click="editserviceCharge(scope.row)" alt="" />
+            </div>
+            
           </template>
           </el-table-column>
           <el-table-column width="100" class="table_td" label="实付金额(元)" prop="amountActuallyPaid"></el-table-column>

+ 13 - 0
src/views/workNotification/utils/index.js

@@ -31,6 +31,8 @@ export function code2Url (type, code, state,status,message,businessId) {
       return trantask(code,state,message)
     case 'WAREHOUSE':
       return warehousetask(code,state)
+      case 'FEIYONGGUANLI':
+        return profitable(code,state)  
     default:
       return ''
   }
@@ -67,6 +69,17 @@ export function warehousetask(code, state){
   }
   return url
 }
+export function profitable(code, state){
+  let url = ''
+  switch (code) {
+    
+    //费用管理
+    case 'FEIYONGGUANLI-APPROVE':
+      url = 'expensemanagementdetails'
+      break
+  }
+  return url
+}
 export function checkNavigation (code, state) {
   // 航海
   let url = ''