zxz 2 years ago
parent
commit
0642ea731e
1 changed files with 5 additions and 1 deletions
  1. 5 1
      src/views/houseSelfCollect/acquisitionManagement.vue

+ 5 - 1
src/views/houseSelfCollect/acquisitionManagement.vue

@@ -52,7 +52,7 @@
       <el-table-column label="操作" width="500">
         <template slot-scope="scope">
           <el-button size="mini" @click="newAcquisition(scope.$index, scope.row,'查看')">查看</el-button>
-          <el-button v-if="scope.row.approveStatus && scope.row.approveStatus !='发起人撤回'" size="mini" @click="withdraw(scope.row)">撤回</el-button>
+          <el-button v-show="scope.row.showFlag" v-if="scope.row.approveStatus && scope.row.approveStatus !='发起人撤回'" size="mini" @click="withdraw(scope.row)">撤回</el-button>
           <el-button v-if="scope.row.status!='审核中' || scope.row.approveStatus =='发起人撤回' " size="mini" @click="newAcquisition(scope.$index, scope.row,'编辑')"
             v-hasPermission=" `acquisitionManagement.acquisitionCustomer.edit`">编辑</el-button>
           <el-button v-if="scope.row.status=='审核中'" size="mini" :disabled="!scope.row.taskId"
@@ -97,6 +97,7 @@
         compId: '',
         accountName: '',
         tableData: [],
+        showFlag:false,
         selectVal: '',
         goodsNameList: [],
         warehouseList: [],
@@ -258,6 +259,9 @@
           .then(response => {
             for (let i = 0; i < response.records.length; i++) {
               this.goodsNameList.push(response.records[i].goodsName)
+              if(response.records[i].createUserId == localStorage.getItem('ws-pf_userId')){
+                response.records[i].showFlag = true
+              }
             }
             this.tableData = response.records
             this.deptBudgetTotal = response.total