Commit 7c33f78b authored by 黄奎's avatar 黄奎

页面修改

parent 03131675
...@@ -76,40 +76,40 @@ ...@@ -76,40 +76,40 @@
</template> </template>
<template v-slot:body-cell-optioned="props"> <template v-slot:body-cell-optioned="props">
<q-td :props="props"> <q-td :props="props">
<q-btn flat size="xs" icon="edit" color="accent" style="font-weight:400" label="修改" <q-btn flat size="xs" v-if="IsEditEduReceipAudit" icon="edit" color="accent" style="font-weight:400" label="修改"
@click="getCurrentAuditMan(props.row)" /> @click="getCurrentAuditMan(props.row)" />
<q-popup-proxy v-if="isShowEdit"> <q-popup-proxy v-if="isShowEdit">
<q-banner> <q-banner>
<div class="billDialog"> <div class="billDialog">
<div v-for="(item,index) in AuditList" class="col row" style="margin-top:20px;"> <div v-for="(item,index) in AuditList" class="col row" style="margin-top:20px;">
<div class="col-5" style="align-items:center;"> <div class="col-5" style="align-items:center;">
<q-select v-model="item.AuditEmId" :options="EmployeeList" filled disable <q-select v-model="item.AuditEmId" :options="EmployeeList" filled disable
option-label="EmployeeName" option-value="Id" ref="EmployeeName" class="col-6" emit-value option-label="EmployeeName" option-value="Id" ref="EmployeeName" class="col-6" emit-value
map-options> map-options>
</q-select> </q-select>
</div> </div>
<span style="margin:20px;">-</span> <span style="margin:20px;">-</span>
<div class="col-5"> <div class="col-5">
<q-select v-model="item.NewAuditEmId" :options="EmployeeList" filled clearable use-input <q-select v-model="item.NewAuditEmId" :options="EmployeeList" filled clearable use-input
label="审核人员" option-label="EmployeeName" option-value="Id" ref="EmployeeName" class="col-6" label="审核人员" option-label="EmployeeName" option-value="Id" ref="EmployeeName" class="col-6"
emit-value map-options @filter="filterFn"> emit-value map-options @filter="filterFn">
<template v-slot:no-option> <template v-slot:no-option>
<q-item> <q-item>
<q-item-section class="text-grey"> <q-item-section class="text-grey">
未找到相关数据 未找到相关数据
</q-item-section> </q-item-section>
</q-item> </q-item>
</template> </template>
</q-select> </q-select>
</div>
</div> </div>
</div> </div>
</q-banner> </div>
<q-card-actions align="right" class="bg-white"> </q-banner>
<q-btn label="取消" flat color="grey-10" @click="isShowEdit=false" style="font-weight:400 !important" /> <q-card-actions align="right" class="bg-white">
<q-btn label="确认" color="accent q-px-md" style="font-weight:400 !important" @click="saveBill" /> <q-btn label="取消" flat color="grey-10" @click="isShowEdit=false" style="font-weight:400 !important" />
</q-card-actions> <q-btn label="确认" color="accent q-px-md" style="font-weight:400 !important" @click="saveBill" />
</q-popup-proxy> </q-card-actions>
</q-popup-proxy>
</q-btn> </q-btn>
<q-btn flat size="xs" icon="iconfont icon-View" color="accent" style="font-weight:400" label="查看" <q-btn flat size="xs" icon="iconfont icon-View" color="accent" style="font-weight:400" label="查看"
@click="showBillForm(props.row,1)" /> @click="showBillForm(props.row,1)" />
...@@ -238,11 +238,20 @@ ...@@ -238,11 +238,20 @@
isShowEdit: false, isShowEdit: false,
AuditList: [], //角色数组 AuditList: [], //角色数组
EmployeeList: [], EmployeeList: [],
AllemployeeList: [] AllemployeeList: [],
IsEditEduReceipAudit:false,//是否有修改审核人权限
} }
}, },
created() { created() {
var localStorageData = window.localStorage["loginUserInfo"];
let ActionMenuList = JSON.parse(localStorageData).data.ActionMenuList
if (ActionMenuList && ActionMenuList.length > 0) {
ActionMenuList.forEach(x => {
if (x.FunctionCode == 'Edit_EduReceipAudit') {
this.IsEditEduReceipAudit = true;
}
})
}
}, },
mounted() { mounted() {
this.currentUrl = this.$route.path; this.currentUrl = this.$route.path;
...@@ -284,7 +293,7 @@ ...@@ -284,7 +293,7 @@
} }
this.showType = type; this.showType = type;
this.billObj = item; this.billObj = item;
this.isShowEdit=false; this.isShowEdit = false;
}, },
//重新查询 //重新查询
resetSearch() { resetSearch() {
...@@ -372,10 +381,10 @@ ...@@ -372,10 +381,10 @@
//保存 //保存
saveBill() { saveBill() {
saveAuditMan({ saveAuditMan({
Info:this.AuditList Info: this.AuditList
}).then(res => { }).then(res => {
if (res.Code == 1) { if (res.Code == 1) {
this.isShow=false; this.isShow = false;
this.$q.notify({ this.$q.notify({
icon: 'iconfont icon-chenggong', icon: 'iconfont icon-chenggong',
color: 'accent', color: 'accent',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment