|
|
@@ -16,9 +16,11 @@
|
|
|
<el-button type="primary" size="mini" style="margin-left:10px; margin-top: -4px;">添加</el-button>
|
|
|
</router-link> -->
|
|
|
<!-- <el-button type="primary" size="mini" style="margin-left:10px; margin-top: -4px;">导入</el-button> -->
|
|
|
- <el-button type="primary" size="mini" style="margin-left:10px; margin-top: -4px;" @click="exportExcel">导出</el-button>
|
|
|
- <!-- <el-button type="primary" size="mini" style="margin-left:10px; margin-top: -4px;" @click="onChangeSelect">{{selectBoolean?'取消':'一键处理'}}</el-button>
|
|
|
- <el-button type="primary" size="mini" style="margin-left:10px; margin-top: -4px;" v-if="selectBoolean" @click="onChangeSelectSubmit">处理</el-button> -->
|
|
|
+ <!-- <el-button type="primary" size="mini" style="margin-left:10px; margin-top: -4px;" @click="exportExcel">导出</el-button> -->
|
|
|
+ <el-button type="primary" size="mini" style="margin-left:10px; margin-top: -4px;" v-if="!selectAllButtonBoolean&&userSelectBoolean" @click="onSelectAllButton">一键处理</el-button>
|
|
|
+ <el-button type="info" size="mini" style="margin-left:10px; margin-top: -4px;" v-if="selectAllButtonBoolean" @click="onSelectAllButtonDelete">取消</el-button>
|
|
|
+ <el-button type="primary" size="mini" style="margin-left:10px; margin-top: -4px;" v-if="selectAllButtonBoolean" @click="onSelectAllButtonTrue">确定</el-button>
|
|
|
+
|
|
|
</span>
|
|
|
<el-form ref="form" :inline="true" style="float: right; margin-top: -10px">
|
|
|
<el-form-item label="上报时间">
|
|
|
@@ -37,7 +39,8 @@
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
</div>
|
|
|
- <el-table id="rebateSetTable" stripe size="mini" :data="entityList" border height="calc(100vh - 243px)" style="width: 100%" @sort-change="orderby" @selection-change="onSelectChange">
|
|
|
+ <el-table id="rebateSetTable" stripe size="mini" :data="entityList" border height="calc(100vh - 243px)" style="width: 100%" @sort-change="orderby" @selection-change="onSelectAll">
|
|
|
+ <el-table-column v-if="selectAllButtonBoolean" :selectable="selectableFun" type="selection" width="55"></el-table-column>
|
|
|
<el-table-column
|
|
|
align="center"
|
|
|
fixed
|
|
|
@@ -116,6 +119,9 @@
|
|
|
:page-sizes="[10, 15, 20, 25]" :page-size="size" layout="total, sizes, prev, pager, next, jumper" :total="currentItemCount">
|
|
|
</el-pagination>
|
|
|
</el-card>
|
|
|
+
|
|
|
+ <!-- :selectDeptBoolean="false"-->
|
|
|
+ <submitPopup ref="submitpopup" :selectDeptBoolean="false" :eveId="eveIdList" @refreshPage="initDatas" ></submitPopup>
|
|
|
|
|
|
<el-dialog title="高级查询" :visible.sync="dialogVisible" width="720px" class="advancedsearchFormClass">
|
|
|
<el-form ref="advancedsearchForm" label-width="110px">
|
|
|
@@ -210,6 +216,7 @@
|
|
|
</template>
|
|
|
<script>
|
|
|
import { mapGetters } from 'vuex';
|
|
|
+ import apiContract from '@/api/oilcontract/contract';
|
|
|
import api from '@/api/oilcontract/contractSumScore';
|
|
|
import permissionApi from '@/api/oilcontract/permission';
|
|
|
import FileSaver from 'file-saver'
|
|
|
@@ -291,6 +298,10 @@
|
|
|
|
|
|
data() {
|
|
|
return {
|
|
|
+ userSelectBoolean:false,
|
|
|
+ eveIdList:'',
|
|
|
+ selectAllButtonBoolean:false,
|
|
|
+
|
|
|
editeBoolean:false,
|
|
|
deleteBoolean:false,
|
|
|
selectBoolean:false,//表格选项框
|
|
|
@@ -335,8 +346,58 @@
|
|
|
this.statusFun()
|
|
|
},
|
|
|
methods: {
|
|
|
+ //一键处理
|
|
|
+ onSelectAll(e){
|
|
|
+ console.log(e)
|
|
|
+ var list = []
|
|
|
+ e.map((item,index) => {
|
|
|
+ list.push(item.Id)
|
|
|
+ })
|
|
|
+ this.eveIdList = String(list)
|
|
|
+ },
|
|
|
+ //筛选
|
|
|
+ selectableFun(row,index){
|
|
|
+ if(row.Status==4){
|
|
|
+ return true;
|
|
|
+ }else{
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ },
|
|
|
+ //一键处理按钮
|
|
|
+ onSelectAllButton(){
|
|
|
+ this.selectAllButtonBoolean = true
|
|
|
+ },
|
|
|
+ //一键处理确定
|
|
|
+ onSelectAllButtonTrue(){
|
|
|
+ if(this.eveIdList!=''&&this.eveIdList!=undefined){
|
|
|
+ this.$refs.submitpopup.dialogCommonAuditMakeSureVisible = true
|
|
|
+ }else{
|
|
|
+ this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: '请选择评价'
|
|
|
+ });
|
|
|
+ }
|
|
|
+ },
|
|
|
+ //一键处理取消
|
|
|
+ onSelectAllButtonDelete(){
|
|
|
+ this.selectAllButtonBoolean = false
|
|
|
+ },
|
|
|
//状态判断
|
|
|
statusFun(){
|
|
|
+ // 一键处理权限
|
|
|
+ var data = {
|
|
|
+ percode:'oil_contract.SumStore.Batch',
|
|
|
+ }
|
|
|
+ permissionApi.permissionIsauth(data, this.$axios).then(res => {
|
|
|
+ console.log('一键处理权限权限',res.data)
|
|
|
+ if(res.data.code==0){
|
|
|
+ if(res.data.message=='有权限'){
|
|
|
+ this.userSelectBoolean = true
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }).catch(err => {
|
|
|
+ console.error(err)
|
|
|
+ })
|
|
|
var data = {
|
|
|
percode:'oil_contract.SumStore.Delete',
|
|
|
}
|
|
|
@@ -364,18 +425,6 @@
|
|
|
}).catch(err => {
|
|
|
console.error(err)
|
|
|
})
|
|
|
- },
|
|
|
- //选择选项
|
|
|
- onSelectChange(item,index){
|
|
|
- console.log(222,item,index)
|
|
|
- },
|
|
|
- // 打开一键处理
|
|
|
- onChangeSelect(){
|
|
|
- this.selectBoolean = !this.selectBoolean
|
|
|
- },
|
|
|
- // 一键处理
|
|
|
- onChangeSelectSubmit(){
|
|
|
-
|
|
|
},
|
|
|
//跳转评价
|
|
|
onNavigateScore(item){
|