Przeglądaj źródła

入库功能列表权限调整

lizhenhao 2 lat temu
rodzic
commit
4ef1c3b1e8

+ 5 - 5
src/views/modules/materialManagement/wareHouse/WareHouseList.vue

@@ -118,15 +118,15 @@
                 <el-button type="text" v-if="scope.row.status==='0' || scope.row.status==='5'"  size="small" @click="del(scope.row.id)">删除</el-button>
               </div>
               <div v-else>
-                <el-button v-if="hasPermission('material:wareHouse:edit')&&(scope.row.status==='0'||scope.row.status==='5')" type="text"  size="small" @click="push(scope.row)">申请修改</el-button>
+                <el-button v-if="hasPermission('material:wareHouse:edit')&&scope.row.createBy === $store.state.user.id&&(scope.row.status==='0'||scope.row.status==='5')" type="text"  size="small" @click="push(scope.row)">申请修改</el-button>
               <!--              当前申请人撤回-->
-                <el-button v-if="hasPermission('material:wareHouse:edit')&&scope.row.updateUser === $store.state.user.id&&scope.row.status==='2'" type="text"  size="small" @click="reback(scope.row)">撤回</el-button>
+                <el-button v-if="hasPermission('material:wareHouse:edit')&&scope.row.createBy === $store.state.user.id&&scope.row.status==='2'" type="text"  size="small" @click="reback(scope.row)">撤回</el-button>
               <!--              当前申请人撤回后->申请修改-->
-                <el-button v-if="hasPermission('material:wareHouse:edit')&&scope.row.updateUser === $store.state.user.id&&scope.row.status==='3'" type="text"  size="small" @click="push(scope.row)">申请修改</el-button>
+                <el-button v-if="hasPermission('material:wareHouse:edit')&&scope.row.createBy === $store.state.user.id&&scope.row.status==='3'" type="text"  size="small" @click="push(scope.row)">申请修改</el-button>
               <!--              当前申请人撤回后->取消修改申请-->
-                <el-button v-if="hasPermission('material:wareHouse:edit')&&scope.row.updateUser === $store.state.user.id&&scope.row.status==='3'" type="text"  size="small" @click="stopUpdate(scope.row.id)">取消修改</el-button>
+                <el-button v-if="hasPermission('material:wareHouse:edit')&&scope.row.createBy === $store.state.user.id&&scope.row.status==='3'" type="text"  size="small" @click="stopUpdate(scope.row.id)">取消修改</el-button>
                 <el-button v-if="scope.row.status==='2' && checkIsAudit(scope.row)" type="text"  size="small" @click="examine(scope.row)">审核</el-button>
-                <el-button v-if="hasPermission('material:wareHouse:edit')&&scope.row.status === '4'&&scope.row.updateUser === $store.state.user.id" type="text"  size="small" @click="adjust(scope.row)">驳回调整</el-button>
+                <el-button v-if="hasPermission('material:wareHouse:edit')&&scope.row.status === '4'&&scope.row.createBy === $store.state.user.id" type="text"  size="small" @click="adjust(scope.row)">驳回调整</el-button>
               </div>
             </template>
           </vxe-column>