gjy 3 vuotta sitten
vanhempi
commit
2460c7739c

+ 21 - 0
src/views/purchasingManagement/purchaseOrderList.vue

@@ -293,6 +293,9 @@
             "
             class="record"
             @click="makeabargain(scope.row)"
+            v-hasPermission="
+            `procurement.procurementOrder.deal`
+          "
           >
             成交
           </div>
@@ -304,6 +307,9 @@
             "
             class="record"
             @click="addthedeposit(scope.row)"
+            v-hasPermission="
+            `procurement.procurementOrder.deposit`
+          "
           >
             补充定金
           </div>
@@ -314,6 +320,9 @@
             "
             class="record"
             @click="unfreeze(scope.row)"
+            v-hasPermission="
+            `procurement.procurementOrder.thaw`
+          "
           >
             解冻定金
           </div>
@@ -326,6 +335,9 @@
             "
             class="record"
             @click="cloaeposition1(scope.row)"
+            v-hasPermission="
+            `procurement.procurementOrder.close`
+          "
           >
             平仓
           </div>
@@ -336,6 +348,9 @@
             "
             class="record"
             @click="handle(scope.row)"
+            v-hasPermission="
+            `procurement.procurementOrder.complete`
+          "
           >
             完成
           </div>
@@ -347,6 +362,9 @@
             type="text"
             class="record"
             @click="aduit(scope.row)"
+            v-hasPermission="
+            `procurement.procurementOrder.view`
+          "
           >
             审核
           </div>
@@ -354,6 +372,9 @@
             v-if="scope.row.status == '待审核'"
             class="record"
             @click="deletehandle(scope.row)"
+            v-hasPermission="
+            `procurement.procurementOrder.delete`
+          "
           >
             删除
           </div>

+ 6 - 6
src/views/salesManagement/component/routers/route.js

@@ -8,7 +8,7 @@ const purchasingManagementRouter = {
   alwaysShow: true, // will always show the root menu
   meta: {
     title: 'salesManagement',
-    module: 'contractManagement',
+    module: 'sale',
     icon: '-xiaoshou2'
   },
   children: [
@@ -21,7 +21,7 @@ const purchasingManagementRouter = {
       meta: {
         title: 'salesPlanList',
         shortcutEntrance: 'salesManagement',
-        module: 'contractManagement.salesContract',
+        module: 'sale.salePlan.view',
         permissicon: [],
         keepAlive: true
         // module: 'procurement.sparepart.applDetail'
@@ -36,7 +36,7 @@ const purchasingManagementRouter = {
       meta: {
         title: 'salesPlanAdd',
         shortcutEntrance: 'salesManagement',
-        module: 'contractManagement.salesContract',
+        module: 'sale.salePlan.add',
         permissicon: [],
         keepAlive: true
       },
@@ -51,7 +51,7 @@ const purchasingManagementRouter = {
       meta: {
         title: 'salesPlanEdit',
         shortcutEntrance: 'salesManagement',
-        module: 'contractManagement.salesContract',
+        module: 'sale.salePlan.edit',
         permissicon: [],
         keepAlive: true
         // module: 'procurement.sparepart.applDetail'
@@ -66,7 +66,7 @@ const purchasingManagementRouter = {
       meta: {
         title: 'salesPlanLook',
         shortcutEntrance: 'salesManagement',
-        module: 'contractManagement.salesContract',
+        module: 'sale.salePlan.view',
         permissicon: [],
         keepAlive: true
         // module: 'procurement.sparepart.applDetail'
@@ -82,7 +82,7 @@ const purchasingManagementRouter = {
       meta: {
         title: 'salesOrderList',
         shortcutEntrance: 'salesManagement',
-        module: 'contractManagement.salesContract',
+        module: 'sale.salePlan.view',
         permissicon: [],
         keepAlive: true
         // module: 'procurement.sparepart.applDetail'

+ 12 - 4
src/views/salesManagement/salesPlanList.vue

@@ -2,7 +2,9 @@
 <template>
   <div class="container">
     <BaseHeaderLayout :leftSpan="10">
-      <template slot="left">  <ws-button type="primary" @click="handleAdd()">添加</ws-button> </template>
+      <template slot="left">  <ws-button type="primary" v-hasPermission="
+            `sale.salePlan.add`
+          " @click="handleAdd()">添加</ws-button> </template>
       <!-- 接单开始 -->
       <template slot="right">
         <ws-input
@@ -184,9 +186,15 @@
       ></el-table-column>
       <el-table-column prop="seller" label="操作" width="300">
         <template slot-scope="scope">
-          <div class="record" @click="handleLook(scope.row)">查看</div>
-          <div class="record" @click="handleEdit(scope.row)">编辑</div>
-          <div class="record" @click="handleDelete(scope.row)">删除</div>
+          <div class="record"  v-hasPermission="
+            `sale.salePlan.view`
+          " @click="handleLook(scope.row)">查看</div>
+          <div class="record"  v-hasPermission="
+            `sale.salePlan.edit`
+          " @click="handleEdit(scope.row)">编辑</div>
+          <div class="record" v-hasPermission="
+            `sale.salePlan.delete`
+          " @click="handleDelete(scope.row)">删除</div>
         </template>
       </el-table-column>
     </el-table>

+ 21 - 0
src/views/salesManagement/salesPlanOrderList.vue

@@ -329,6 +329,9 @@
               scope.row.salePlanType == '期货'
             "
             class="record"
+            v-hasPermission="
+            `sale.saleOrder.deal`
+          "
             @click="makeabargain(scope.row)"
           >
             成交
@@ -339,6 +342,9 @@
               scope.row.defaultDeposit > 0 && scope.row.salePlanType == '期货'
             "
             class="record"
+            v-hasPermission="
+            `sale.saleOrder.deposit`
+          "
             @click="addthedeposit(scope.row)"
           >
             补充定金
@@ -349,6 +355,9 @@
               scope.row.freezingDeposit > 0 && scope.row.salePlanType == '期货'
             "
             class="record"
+            v-hasPermission="
+            `sale.saleOrder.thaw`
+          "
             @click="unfreeze(scope.row)"
           >
             解冻定金
@@ -359,6 +368,9 @@
               scope.row.openPosition > 0 && scope.row.salePlanType == '期货'
             "
             class="record"
+            v-hasPermission="
+            `sale.saleOrder.close`
+          "
             @click="cloaeposition1(scope.row)"
           >
             平仓
@@ -370,6 +382,9 @@
               scope.row.salePlanType == '期货'
             "
             class="record"
+            v-hasPermission="
+            `sale.saleOrder.complete`
+          "
             @click="handle(scope.row)"
           >
             完成
@@ -379,6 +394,9 @@
             v-if="scope.row.status == '待审核'"
             type="text"
             class="record"
+            v-hasPermission="
+            `sale.saleOrder.view`
+          "
             @click="aduit(scope.row)"
           >
             审核
@@ -387,6 +405,9 @@
           <div
             v-if="scope.row.status == '待审核'"
             class="record"
+            v-hasPermission="
+            `sale.saleOrder.delete`
+          "
             @click="deletehandle(scope.row)"
           >
             删除

+ 5 - 5
src/views/statisticalReport/component/routers/route.js

@@ -8,7 +8,7 @@ const statisticalReportRouter = {
   alwaysShow: true, // will always show the root menu
   meta: {
     title: 'statisticalReport',
-    module: 'contractManagement',
+    module: 'report',
     icon: '-tongjibaobiao'
   },
   children: [
@@ -21,7 +21,7 @@ const statisticalReportRouter = {
       meta: {
         title: 'purchaseReceiptStatisticsList',
         shortcutEntrance: 'statisticalReport',
-        module: 'contractManagement.salesContract',
+        module: 'report.procurementInReport',
         permissicon: [],
         keepAlive: true
         // module: 'procurement.sparepart.applDetail'
@@ -36,7 +36,7 @@ const statisticalReportRouter = {
           meta: {
           title: 'purchaseClosingCashierList',
           shortcutEntrance: 'statisticalReport',
-          module: 'contractManagement.salesContract',
+          module: 'report.procurementCloseReport',
           permissicon: [],
           keepAlive: true
           // module: 'procurement.sparepart.applDetail'
@@ -51,7 +51,7 @@ const statisticalReportRouter = {
         meta: {
         title: 'salesClosingCashierList',
         shortcutEntrance: 'statisticalReport',
-        module: 'contractManagement.salesContract',
+        module: 'report.saleCloseReport',
         permissicon: [],
         keepAlive: true
         // module: 'procurement.sparepart.applDetail'
@@ -66,7 +66,7 @@ const statisticalReportRouter = {
       meta: {
         title: 'salesDeliveryReportList',
         shortcutEntrance: 'statisticalReport',
-        module: 'contractManagement.salesContract',
+        module: 'report.saleOutReport',
         permissicon: [],
         keepAlive: true
         // module: 'procurement.sparepart.applDetail'

+ 25 - 9
src/views/statisticalReport/purchaseClosingCashierList.vue

@@ -3,20 +3,34 @@
   <div class="container">
     <el-scrollbar style="height:100%">
       <el-row>
-        <el-col style='padding-left:15px;' :span="12">
+        <el-col style='padding-left:15px;' :span="16">
           <ws-button :type="searchType==1?'primary':''" @click="handlestatus(1)">待审核</ws-button>
           <ws-button :type="searchType==2?'primary':''" @click="handlestatus(2)">待结算</ws-button>
           <ws-button :type="searchType==3?'primary':''" @click="handlestatus(3)">已结算</ws-button>
           <ws-button :type="searchType==''?'primary':''" @click="handlestatus('')">全部</ws-button>
-         <ws-button v-if='roleId=="9ad8abb997714ef29068f23c2ad3b125"' type="primary" @click="handlepass1()">通过1</ws-button>
-          <ws-button v-if='roleId=="9ad8abb997714ef29068f23c2ad3b125"' type="primary" @click="handlereject(3)">驳回1</ws-button>
-          <ws-button v-if='roleId=="cca3cf0ca2814d1e918f5b0a4380fe69"' type="primary" @click="handlepass()">通过</ws-button>
-          <ws-button v-if='roleId=="cca3cf0ca2814d1e918f5b0a4380fe69"' type="primary" @click="handlereject(2)">驳回</ws-button>
-          <ws-button v-if='roleId=="4c2d50d8ff2943c1b7a1e947feefe048"' type="primary" @click="handleAudit()">审核</ws-button>
-          <ws-button v-if='roleId=="3d7b9179552b4c3e9c2d7af43962e2e4"' type="primary" @click="handlepayment()">付款</ws-button>
-          <ws-button v-if='roleId=="3d7b9179552b4c3e9c2d7af43962e2e4"' type="primary" @click="handlecollect()">收款</ws-button>
+         <ws-button v-if='roleId=="9ad8abb997714ef29068f23c2ad3b125"||roleId=="4ef070439cd64784bce8844fd3f0f8e1"' type="primary" v-hasPermission="
+            `report.procurementCloseReport.view`
+          " @click="handlepass1()">通过</ws-button>
+          <ws-button v-if='roleId=="9ad8abb997714ef29068f23c2ad3b125"||roleId=="4ef070439cd64784bce8844fd3f0f8e1"' type="primary" v-hasPermission="
+            `report.procurementCloseReport.view`
+          " @click="handlereject(3)">驳回</ws-button>
+          <ws-button v-if='roleId=="cca3cf0ca2814d1e918f5b0a4380fe69"||roleId=="4ef070439cd64784bce8844fd3f0f8e1"' type="primary" v-hasPermission="
+            `report.procurementCloseReport.view`
+          " @click="handlepass()">通过</ws-button>
+          <ws-button v-if='roleId=="cca3cf0ca2814d1e918f5b0a4380fe69"||roleId=="4ef070439cd64784bce8844fd3f0f8e1"' type="primary" v-hasPermission="
+            `report.procurementCloseReport.view`
+          " @click="handlereject(2)">驳回</ws-button>
+          <ws-button v-if='roleId=="4c2d50d8ff2943c1b7a1e947feefe048"||roleId=="4ef070439cd64784bce8844fd3f0f8e1"' type="primary" v-hasPermission="
+            `report.procurementCloseReport.view`
+          " @click="handleAudit()">审核</ws-button>
+          <ws-button v-if='roleId=="3d7b9179552b4c3e9c2d7af43962e2e4"||roleId=="4ef070439cd64784bce8844fd3f0f8e1"' type="primary" v-hasPermission="
+            `report.procurementCloseReport.payment`
+          " @click="handlepayment()">付款</ws-button>
+          <ws-button v-if='roleId=="3d7b9179552b4c3e9c2d7af43962e2e4"||roleId=="4ef070439cd64784bce8844fd3f0f8e1"' type="primary" v-hasPermission="
+            `report.procurementCloseReport.recive`
+          " @click="handlecollect()">收款</ws-button>
         </el-col>
-        <el-col style='text-align:right;line-height:60px;padding-right:10px;' :span="12">
+        <el-col style='text-align:right;line-height:60px;padding-right:10px;' :span="8">
           <ws-select
             v-model="contractNo"
             placeholder="请选择合同"
@@ -441,6 +455,8 @@ export default {
         this.roleFlag=3
       }else if(this.roleId=='3d7b9179552b4c3e9c2d7af43962e2e4'){
         this.roleFlag=4
+      }else if(this.roleId=="4ef070439cd64784bce8844fd3f0f8e1"){
+        this.roleFlag=''
       }
       getclose({
         compId: sessionStorage.getItem('ws-pf_compId'),

+ 31 - 11
src/views/statisticalReport/purchaseReceiptStatisticsList.vue

@@ -3,22 +3,40 @@
   <div class="container">
     <el-scrollbar style="height: 100%">
      <el-row>
-        <el-col style='padding-left:15px;' :span="12">
+        <el-col style='padding-left:15px;' :span="16">
         <ws-button :type="searchType==1?'primary':''" @click="handlestatus(1)">待审核</ws-button>
           <ws-button :type="searchType==2?'primary':''" @click="handlestatus(2)">待结算</ws-button>
           <ws-button :type="searchType==3?'primary':''" @click="handlestatus(3)">已结算</ws-button>
           <ws-button :type="searchType==''?'primary':''" @click="handlestatus('')">全部</ws-button>
-        <ws-button v-if='roleId=="9ad8abb997714ef29068f23c2ad3b125"' type="primary" @click="handlepass1()">通过</ws-button>
-        <ws-button v-if='roleId=="9ad8abb997714ef29068f23c2ad3b125"' type="primary" @click="handlereject(3)">驳回</ws-button>
-        <ws-button v-if='roleId=="cca3cf0ca2814d1e918f5b0a4380fe69"' type="primary" @click="handlepass()">通过</ws-button>
-        <ws-button v-if='roleId=="cca3cf0ca2814d1e918f5b0a4380fe69"' type="primary" @click="handlereject(2)">驳回</ws-button>
-        <ws-button v-if='roleId=="3d7b9179552b4c3e9c2d7af43962e2e4"' type="primary" @click="handlepayment">付款</ws-button>
-        <ws-button v-if='roleId=="3d7b9179552b4c3e9c2d7af43962e2e4"' type="primary" @click="handleninvoice">开发票</ws-button>
-        <ws-button v-if='roleId=="4c2d50d8ff2943c1b7a1e947feefe048"' type="primary" @click="amend()">修改</ws-button>
-        <ws-button v-if='roleId=="4c2d50d8ff2943c1b7a1e947feefe048"' type="primary" @click="carryover">补货结转</ws-button>
-        <ws-button  v-if='roleId=="4c2d50d8ff2943c1b7a1e947feefe048"' type="primary" @click="handleAudit()">审核</ws-button>
+        <ws-button v-if='roleId=="9ad8abb997714ef29068f23c2ad3b125"||roleId=="4ef070439cd64784bce8844fd3f0f8e1"' type="primary"  v-hasPermission="
+            `report.procurementInReport.view`
+          " @click="handlepass1()">通过</ws-button>
+        <ws-button v-if='roleId=="9ad8abb997714ef29068f23c2ad3b125"||roleId=="4ef070439cd64784bce8844fd3f0f8e1"' type="primary" v-hasPermission="
+            `report.procurementInReport.view`
+          " @click="handlereject(3)">驳回</ws-button>
+        <ws-button v-if='roleId=="cca3cf0ca2814d1e918f5b0a4380fe69"||roleId=="4ef070439cd64784bce8844fd3f0f8e1"' type="primary" v-hasPermission="
+            `report.procurementInReport.view`
+          " @click="handlepass()">通过</ws-button>
+        <ws-button v-if='roleId=="cca3cf0ca2814d1e918f5b0a4380fe69"||roleId=="4ef070439cd64784bce8844fd3f0f8e1"' type="primary" v-hasPermission="
+            `report.procurementInReport.view`
+          " @click="handlereject(2)">驳回</ws-button>
+        <ws-button v-if='roleId=="3d7b9179552b4c3e9c2d7af43962e2e4"||roleId=="4ef070439cd64784bce8844fd3f0f8e1"' type="primary" v-hasPermission="
+            `report.procurementInReport.payment`
+          " @click="handlepayment">付款</ws-button>
+        <ws-button v-if='roleId=="3d7b9179552b4c3e9c2d7af43962e2e4"||roleId=="4ef070439cd64784bce8844fd3f0f8e1"' type="primary" v-hasPermission="
+            `report.procurementInReport.draw`
+          " @click="handleninvoice">开发票</ws-button>
+        <ws-button v-if='roleId=="4c2d50d8ff2943c1b7a1e947feefe048"||roleId=="4ef070439cd64784bce8844fd3f0f8e1"' type="primary" v-hasPermission="
+            `report.procurementInReport.edit`
+          " @click="amend()">修改</ws-button>
+        <ws-button v-if='roleId=="4c2d50d8ff2943c1b7a1e947feefe048"||roleId=="4ef070439cd64784bce8844fd3f0f8e1"' type="primary" v-hasPermission="
+            `report.procurementInReport.carry`
+          " @click="carryover">补货结转</ws-button>
+        <ws-button  v-if='roleId=="4c2d50d8ff2943c1b7a1e947feefe048"||roleId=="4ef070439cd64784bce8844fd3f0f8e1"' type="primary" v-hasPermission="
+            `report.procurementInReport.view`
+          " @click="handleAudit()">审核</ws-button>
         </el-col>
-        <el-col style='text-align:right;line-height:60px;padding-right:10px;' :span="12">
+        <el-col style='text-align:right;line-height:60px;padding-right:10px;' :span="8">
         <ws-select
           v-model="contractNo"
           placeholder="请选择合同"
@@ -1026,6 +1044,8 @@ export default {
         this.roleFlag=3
       }else if(this.roleId=='3d7b9179552b4c3e9c2d7af43962e2e4'){
         this.roleFlag=4
+      }else if(this.roleId=="4ef070439cd64784bce8844fd3f0f8e1"){
+        this.roleFlag=''
       }
       getpurchreceipt({
         compId: sessionStorage.getItem('ws-pf_compId'),

+ 25 - 9
src/views/statisticalReport/salesClosingCashierList.vue

@@ -2,20 +2,34 @@
 <template>
   <div class="container">
         <el-row>
-        <el-col style='padding-left:15px;' :span="12">
+        <el-col style='padding-left:15px;' :span="16">
           <ws-button :type="searchType==1?'primary':''" @click="handlestatus(1)">待审核</ws-button>
           <ws-button :type="searchType==2?'primary':''" @click="handlestatus(2)">待结算</ws-button>
           <ws-button :type="searchType==3?'primary':''" @click="handlestatus(3)">已结算</ws-button>
           <ws-button :type="searchType==''?'primary':''" @click="handlestatus('')">全部</ws-button>
-          <ws-button v-if='roleId=="9ad8abb997714ef29068f23c2ad3b125"' type="primary" @click="handleAudit(3,2)">驳回</ws-button>
-          <ws-button v-if='roleId=="9ad8abb997714ef29068f23c2ad3b125"' type="primary" @click="handleAudit(3,1)">通过</ws-button>
-          <ws-button v-if='roleId=="cca3cf0ca2814d1e918f5b0a4380fe69"' type="primary" @click="handleAudit(2,2)">驳回</ws-button>
-          <ws-button v-if='roleId=="cca3cf0ca2814d1e918f5b0a4380fe69"' type="primary" @click="handleAudit(2,1)">通过</ws-button>
-          <ws-button v-if='roleId=="4c2d50d8ff2943c1b7a1e947feefe048"' type="primary" @click="handleAudit(1)">审核</ws-button>
-          <ws-button v-if='roleId=="3d7b9179552b4c3e9c2d7af43962e2e4"' type="primary" @click="payment()">付款</ws-button>
-          <ws-button v-if='roleId=="3d7b9179552b4c3e9c2d7af43962e2e4"' type="primary" @click="collection()">收款</ws-button>
+          <ws-button v-if='roleId=="9ad8abb997714ef29068f23c2ad3b125"||roleId=="4ef070439cd64784bce8844fd3f0f8e1"' type="primary" v-hasPermission="
+            `report.saleCloseReport.view`
+          " @click="handleAudit(3,2)">驳回</ws-button>
+          <ws-button v-if='roleId=="9ad8abb997714ef29068f23c2ad3b125"||roleId=="4ef070439cd64784bce8844fd3f0f8e1"' type="primary" v-hasPermission="
+            `report.saleCloseReport.view`
+          " @click="handleAudit(3,1)">通过</ws-button>
+          <ws-button v-if='roleId=="cca3cf0ca2814d1e918f5b0a4380fe69"||roleId=="4ef070439cd64784bce8844fd3f0f8e1"' type="primary" v-hasPermission="
+            `report.saleCloseReport.view`
+          " @click="handleAudit(2,2)">驳回</ws-button>
+          <ws-button v-if='roleId=="cca3cf0ca2814d1e918f5b0a4380fe69"||roleId=="4ef070439cd64784bce8844fd3f0f8e1"' type="primary" v-hasPermission="
+            `report.saleCloseReport.view`
+          " @click="handleAudit(2,1)">通过</ws-button>
+          <ws-button v-if='roleId=="4c2d50d8ff2943c1b7a1e947feefe048"||roleId=="4ef070439cd64784bce8844fd3f0f8e1"' type="primary" v-hasPermission="
+            `report.saleCloseReport.view`
+          " @click="handleAudit(1)">审核</ws-button>
+          <ws-button v-if='roleId=="3d7b9179552b4c3e9c2d7af43962e2e4"||roleId=="4ef070439cd64784bce8844fd3f0f8e1"' type="primary" v-hasPermission="
+            `report.saleCloseReport.payment`
+          " @click="payment()">付款</ws-button>
+          <ws-button v-if='roleId=="3d7b9179552b4c3e9c2d7af43962e2e4"||roleId=="4ef070439cd64784bce8844fd3f0f8e1"' type="primary" v-hasPermission="
+            `report.saleCloseReport.recive`
+          " @click="collection()">收款</ws-button>
            </el-col>
-        <el-col style='text-align:right;line-height:60px;padding-right:10px;' :span="12">
+        <el-col style='text-align:right;line-height:60px;padding-right:10px;' :span="8">
           <ws-select
             v-model="contractNo"
             placeholder="请选择合同"
@@ -601,6 +615,8 @@ export default {
         this.roleFlag=3
       }else if(this.roleId=='3d7b9179552b4c3e9c2d7af43962e2e4'){
         this.roleFlag=4
+      }else if(this.roleId=="4ef070439cd64784bce8844fd3f0f8e1"){
+        this.roleFlag=''
       }
       getsalelist({
         compId: sessionStorage.getItem('ws-pf_compId'),

+ 28 - 10
src/views/statisticalReport/salesDeliveryReportList.vue

@@ -3,21 +3,37 @@
   <div class="container">
     <el-scrollbar style="height:100%">
         <el-row>
-        <el-col style='padding-left:15px;' :span="12">
+        <el-col style='padding-left:15px;' :span="16">
           <ws-button :type="searchType==1?'primary':''" @click="handlestatus(1)">待审核</ws-button>
           <ws-button :type="searchType==2?'primary':''" @click="handlestatus(2)">待结算</ws-button>
           <ws-button :type="searchType==3?'primary':''" @click="handlestatus(3)">已结算</ws-button>
           <ws-button :type="searchType==''?'primary':''" @click="handlestatus('')">全部</ws-button>
-          <ws-button  v-if='roleId=="9ad8abb997714ef29068f23c2ad3b125"' type="primary" @click="handlepass1()">通过</ws-button>
-          <ws-button  v-if='roleId=="9ad8abb997714ef29068f23c2ad3b125"' type="primary" @click="handlereject(3)">驳回</ws-button>
-          <ws-button  v-if='roleId=="cca3cf0ca2814d1e918f5b0a4380fe69"' type="primary" @click="handlepass()">通过</ws-button>
-          <ws-button  v-if='roleId=="cca3cf0ca2814d1e918f5b0a4380fe69"' type="primary" @click="handlereject(2)">驳回</ws-button>
-          <ws-button v-if='roleId=="3d7b9179552b4c3e9c2d7af43962e2e4"' type="primary" @click="handlecollect()">收款</ws-button>
-          <ws-button v-if='roleId=="3d7b9179552b4c3e9c2d7af43962e2e4"' type="primary" @click="handleninvoice()">开发票</ws-button>
-          <ws-button v-if='roleId=="4c2d50d8ff2943c1b7a1e947feefe048"' type="primary" @click="amend()">最终结算价</ws-button>
-          <ws-button v-if='roleId=="4c2d50d8ff2943c1b7a1e947feefe048"' type="primary" @click="handleAudit()">审核</ws-button>
+          <ws-button  v-if='roleId=="9ad8abb997714ef29068f23c2ad3b125"||roleId=="4ef070439cd64784bce8844fd3f0f8e1"' type="primary" v-hasPermission="
+            `report.saleOutReport.view`
+          " @click="handlepass1()">通过</ws-button>
+          <ws-button  v-if='roleId=="9ad8abb997714ef29068f23c2ad3b125"||roleId=="4ef070439cd64784bce8844fd3f0f8e1"' type="primary" v-hasPermission="
+            `report.saleOutReport.view`
+          " @click="handlereject(3)">驳回</ws-button>
+          <ws-button  v-if='roleId=="cca3cf0ca2814d1e918f5b0a4380fe69"||roleId=="4ef070439cd64784bce8844fd3f0f8e1"' type="primary" v-hasPermission="
+            `report.saleOutReport.view`
+          " @click="handlepass()">通过</ws-button>
+          <ws-button  v-if='roleId=="cca3cf0ca2814d1e918f5b0a4380fe69"||roleId=="4ef070439cd64784bce8844fd3f0f8e1"' type="primary" v-hasPermission="
+            `report.saleOutReport.view`
+          " @click="handlereject(2)">驳回</ws-button>
+          <ws-button v-if='roleId=="3d7b9179552b4c3e9c2d7af43962e2e4"||roleId=="4ef070439cd64784bce8844fd3f0f8e1"' type="primary" v-hasPermission="
+            `report.saleOutReport.payment`
+          " @click="handlecollect()">收款</ws-button>
+          <ws-button v-if='roleId=="3d7b9179552b4c3e9c2d7af43962e2e4"||roleId=="4ef070439cd64784bce8844fd3f0f8e1"' type="primary" v-hasPermission="
+            `report.saleOutReport.draw`
+          " @click="handleninvoice()">开发票</ws-button>
+          <ws-button v-if='roleId=="4c2d50d8ff2943c1b7a1e947feefe048"||roleId=="4ef070439cd64784bce8844fd3f0f8e1"' type="primary" v-hasPermission="
+            `report.saleOutReport.carry`
+          " @click="amend()">最终结算价</ws-button>
+          <ws-button v-if='roleId=="4c2d50d8ff2943c1b7a1e947feefe048"||roleId=="4ef070439cd64784bce8844fd3f0f8e1"' type="primary" v-hasPermission="
+            `report.saleOutReport.view`
+          " @click="handleAudit()">审核</ws-button>
           </el-col>
-        <el-col style='text-align:right;line-height:60px;padding-right:10px;' :span="12">
+        <el-col style='text-align:right;line-height:60px;padding-right:10px;' :span="8">
           <ws-select
             v-model="contractNo"
             placeholder="请选择合同"
@@ -715,6 +731,8 @@ export default {
         this.roleFlag=3
       }else if(this.roleId=='3d7b9179552b4c3e9c2d7af43962e2e4'){
         this.roleFlag=4
+      }else if(this.roleId=="4ef070439cd64784bce8844fd3f0f8e1"){
+        this.roleFlag=''
       }
       salelist({
         compId: sessionStorage.getItem('ws-pf_compId'),