Bläddra i källkod

评估报销修改

lizhenhao 2 år sedan
förälder
incheckning
cad2cafd4c

+ 2 - 2
src/views/modules/cw/reimbursementApproval/info/InfoList.vue

@@ -124,13 +124,13 @@
           <vxe-column width="100" title="报销部门" field="deptName"></vxe-column>
           <vxe-column width="100" title="报销日期" field="reimDate"></vxe-column>
           <vxe-column width="150" title="报销金额(元)" field="number"></vxe-column>
-          <vxe-column width="100" title="状态" fixed="right" field="type">
+          <vxe-column width="100" title="状态" fixed="right" align="center" field="type">
             <template slot-scope="scope">
               <el-button type="text" @click="detail(scope.row)" :type="$dictUtils.getDictLabel('status_info', scope.row.type, '-')" effect="dark" size="mini">{{$dictUtils.getDictLabel("status", scope.row.type, '未开始')}} </el-button>
             </template>
           </vxe-column>
 
-          <vxe-column title="操作" width="150px" fixed="right" align="center">
+          <vxe-column title="操作" width="130px" fixed="right" align="center">
             <template  slot-scope="scope">
               <el-button v-if="hasPermission('reimbursement:info:edit') && scope.row.createId === $store.state.user.id && (scope.row.type === '1' || scope.row.type === '3' )" type="text"  size="small" @click="edit(scope.row)">修改</el-button>
               <el-button v-if="hasPermission('reimbursement:info:edit') && scope.row.createId === $store.state.user.id && (scope.row.type === '2')" type="text"  size="small" @click="reback(scope.row)">撤回</el-button>

+ 6 - 6
src/views/modules/reimbursement/info/InfoList.vue

@@ -85,7 +85,7 @@
           <el-button v-if="hasPermission('sys:project:exportFile')"  type="warning" plain @click="exportFile()" size="small">导出</el-button>
         </template>
       </vxe-toolbar>
-      <div style="height: calc(100% - 50px)">
+      <div style="height: calc(100% - 80px)">
         <vxe-table
           border="inner"
           auto-resize
@@ -124,17 +124,17 @@
           <vxe-column width="100" title="报销部门" field="deptName"></vxe-column>
           <vxe-column width="100" title="报销日期" field="reimDate"></vxe-column>
           <vxe-column width="150" title="报销金额(元)" field="number"></vxe-column>
-          <vxe-column width="100" title="状态" field="type">
+          <vxe-column width="100" title="状态" fixed="right" align="center" field="type">
             <template slot-scope="scope">
               <el-button type="text" @click="detail(scope.row)" :type="$dictUtils.getDictLabel('status_info', scope.row.type, '-')" effect="dark" size="mini">{{$dictUtils.getDictLabel("status", scope.row.type, '未开始')}} </el-button>
             </template>
           </vxe-column>
 
-          <vxe-column title="操作" width="230px" fixed="right" align="center">
+          <vxe-column title="操作" width="130px" fixed="right" align="center">
             <template  slot-scope="scope">
-              <el-button v-if="hasPermission('reimbursement:info:edit') && (scope.row.type === '1' || scope.row.type === '3' || scope.row.type === '4')" type="text"  size="small" @click="edit(scope.row)">修改</el-button>
-              <el-button v-if="hasPermission('reimbursement:info:edit') && (scope.row.type === '2')" type="text"  size="small" @click="reback(scope.row)">撤回</el-button>
-              <el-button v-if="hasPermission('reimbursement:info:del') && (scope.row.type === '1')" type="text"  size="small" @click="del(scope.row.id)">删除</el-button>
+              <el-button v-if="hasPermission('reimbursement:info:edit')&& scope.row.createId === $store.state.user.id && (scope.row.type === '1' || scope.row.type === '3' || scope.row.type === '4')" type="text"  size="small" @click="edit(scope.row)">修改</el-button>
+              <el-button v-if="hasPermission('reimbursement:info:edit')&& scope.row.createId === $store.state.user.id && (scope.row.type === '2')" type="text"  size="small" @click="reback(scope.row)">撤回</el-button>
+              <el-button v-if="hasPermission('reimbursement:info:del')&& scope.row.createId === $store.state.user.id && (scope.row.type === '1')" type="text"  size="small" @click="del(scope.row.id)">删除</el-button>
             </template>
           </vxe-column>
         </vxe-table>