commit
This commit is contained in:
+8
@@ -155,8 +155,16 @@ public class ActivityReimbursementMineController {
|
|||||||
if (!group.isEmpty()) {
|
if (!group.isEmpty()) {
|
||||||
cnd.and(group);
|
cnd.and(group);
|
||||||
} else {
|
} else {
|
||||||
|
if(!SecurityUtil.getUserLoginname().equals("CS2025015")){
|
||||||
cnd.and("info.userId", "=", SecurityUtil.getUserId());
|
cnd.and("info.userId", "=", SecurityUtil.getUserId());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
if (StrUtil.isNotBlank(pageParam.getSearchKeyword())){
|
||||||
|
SqlExpressionGroup groupUser = new SqlExpressionGroup();
|
||||||
|
groupUser.orLike("info.userName", pageParam.getSearchKeyword());
|
||||||
|
groupUser.orLike("info.loginName", pageParam.getSearchKeyword());
|
||||||
|
cnd.and(groupUser);
|
||||||
|
}
|
||||||
|
|
||||||
cnd.andEX("info.clubId", "=", pageParam.getClubId());
|
cnd.andEX("info.clubId", "=", pageParam.getClubId());
|
||||||
cnd.andEX("YEAR(info.applyTime)", "=", pageParam.getYear());
|
cnd.andEX("YEAR(info.applyTime)", "=", pageParam.getYear());
|
||||||
|
|||||||
@@ -195,6 +195,9 @@ module.exports = {
|
|||||||
requestFullFile(ids) {
|
requestFullFile(ids) {
|
||||||
this.$axios.post("/platform/sys/file/previewFileData", {ids: JSON.stringify(ids)}).then((res) => {
|
this.$axios.post("/platform/sys/file/previewFileData", {ids: JSON.stringify(ids)}).then((res) => {
|
||||||
if (res.code === 0) {
|
if (res.code === 0) {
|
||||||
|
res.data.map(v => {
|
||||||
|
v.suffix = v.suffix.toLowerCase()
|
||||||
|
})
|
||||||
this.fileList = res.data
|
this.fileList = res.data
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -208,19 +211,23 @@ module.exports = {
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
height: calc(100vh - 43px - 32px - 20px - 10px);
|
height: calc(100vh - 43px - 32px - 20px - 10px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.file-preview-drawer .el-col {
|
.file-preview-drawer .el-col {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.file-preview-title {
|
.file-preview-title {
|
||||||
padding-left: 20px;
|
padding-left: 20px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.file-preview-menu {
|
.file-preview-menu {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
padding-left: 10px;
|
padding-left: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.file-preview-menu .el-menu-item,
|
.file-preview-menu .el-menu-item,
|
||||||
.file-preview-menu .el-submenu__title {
|
.file-preview-menu .el-submenu__title {
|
||||||
height: 40px;
|
height: 40px;
|
||||||
@@ -229,6 +236,7 @@ module.exports = {
|
|||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
|
|
||||||
.file-preview-drawer iframe {
|
.file-preview-drawer iframe {
|
||||||
vertical-align: bottom;
|
vertical-align: bottom;
|
||||||
display: block;
|
display: block;
|
||||||
@@ -237,6 +245,7 @@ module.exports = {
|
|||||||
.preview-content-col {
|
.preview-content-col {
|
||||||
/*padding: 0 20px 10px;*/
|
/*padding: 0 20px 10px;*/
|
||||||
}
|
}
|
||||||
|
|
||||||
.preview-content-wrapper {
|
.preview-content-wrapper {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
@@ -244,17 +253,20 @@ module.exports = {
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
.preview-main-content {
|
.preview-main-content {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
margin: 0 10px 10px;
|
margin: 0 10px 10px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
.preview-main-content .file-preview-image {
|
.preview-main-content .file-preview-image {
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
max-width: 80%;
|
max-width: 80%;
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.preview-footer {
|
.preview-footer {
|
||||||
line-height: 60px;
|
line-height: 60px;
|
||||||
padding: 0 10px;
|
padding: 0 10px;
|
||||||
@@ -265,9 +277,11 @@ module.exports = {
|
|||||||
/* position: sticky;
|
/* position: sticky;
|
||||||
bottom: 0; */
|
bottom: 0; */
|
||||||
}
|
}
|
||||||
|
|
||||||
.file-preview-drawer .el-menu-item.is-active {
|
.file-preview-drawer .el-menu-item.is-active {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
.file-preview-drawer .el-drawer__body {
|
.file-preview-drawer .el-drawer__body {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|||||||
+3
-3
@@ -46,14 +46,14 @@ const INFO = {
|
|||||||
</template>
|
</template>
|
||||||
<el-descriptions-item label="费用" :span="2">
|
<el-descriptions-item label="费用" :span="2">
|
||||||
<el-table :data="viewData.budgets" border max-height="500" size="mini"
|
<el-table :data="viewData.budgets" border max-height="500" size="mini"
|
||||||
style="width: calc(1200px - 150px - 15%)" show-summary :summary-method="getSummaries">
|
show-summary :summary-method="getSummaries">
|
||||||
<el-table-column label="序号" sortable type="index" fixed></el-table-column>
|
<el-table-column label="序号" sortable type="index" fixed></el-table-column>
|
||||||
<el-table-column label="费用项目名称" fixed prop="name" fixed></el-table-column>
|
<el-table-column label="费用项目名称" fixed prop="name" fixed></el-table-column>
|
||||||
<el-table-column label="预算费用" prop="budgetPrice"
|
<el-table-column label="预算费用" prop="budgetPrice"
|
||||||
v-if="viewData.activityReimbursementMode==='activity'"></el-table-column>
|
v-if="viewData.activityReimbursementMode==='activity'"></el-table-column>
|
||||||
<el-table-column label="实际费用" prop="actualPrice"></el-table-column>
|
<el-table-column label="实际费用" prop="actualPrice"></el-table-column>
|
||||||
<el-table-column label="收款人" prop="username"></el-table-column>
|
<el-table-column label="收款人" prop="username"></el-table-column>
|
||||||
<el-table-column label="支行名称" prop="bankName"></el-table-column>
|
<el-table-column label="支行名称" prop="bankName"width="180"></el-table-column>
|
||||||
<el-table-column label="报销卡号" prop="bankCardNum" width="180"></el-table-column>
|
<el-table-column label="报销卡号" prop="bankCardNum" width="180"></el-table-column>
|
||||||
<el-table-column label="备注" prop="remark"></el-table-column>
|
<el-table-column label="备注" prop="remark"></el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
@@ -166,7 +166,7 @@ const INFO = {
|
|||||||
sums[index] = values.reduce((prev, curr) => {
|
sums[index] = values.reduce((prev, curr) => {
|
||||||
const value = Number(curr);
|
const value = Number(curr);
|
||||||
if (!isNaN(value)) {
|
if (!isNaN(value)) {
|
||||||
return prev + curr;
|
return Number((prev + curr).toFixed(2));
|
||||||
} else {
|
} else {
|
||||||
return prev;
|
return prev;
|
||||||
}
|
}
|
||||||
|
|||||||
+4
-1
@@ -96,7 +96,10 @@ layout("/layouts/platform.html"){
|
|||||||
</el-button>
|
</el-button>
|
||||||
<el-button v-if="row.canRevoke" @click="onRevoke(row)" size="mini" type="danger">撤回
|
<el-button v-if="row.canRevoke" @click="onRevoke(row)" size="mini" type="danger">撤回
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button v-if="row.taskKey === 'startTask' || !row.instanceId" @click="onDelete(row.id)"
|
<el-button v-if="(row.taskKey === 'startTask' || !row.instanceId)&&$store.state.user.loginname!=='CS2025015'" @click="onDelete(row.id)"
|
||||||
|
size="mini" type="danger">删除
|
||||||
|
</el-button>
|
||||||
|
<el-button v-if="$store.state.user.loginname==='CS2025015'" @click="onDelete(row.id)"
|
||||||
size="mini" type="danger">删除
|
size="mini" type="danger">删除
|
||||||
</el-button>
|
</el-button>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user