From 02bd5982028af6e791dd0857f535a41aaf74679e Mon Sep 17 00:00:00 2001 From: 马宇豪 <978517621@qq.com> Date: 星期一, 10 二月 2025 13:14:32 +0800 Subject: [PATCH] 修改 --- src/views/specialOperationsPay/notCoalPay/index.vue | 37 ++++++++++++++++++++++--------------- 1 files changed, 22 insertions(+), 15 deletions(-) diff --git a/src/views/specialOperationsPay/notCoalPay/index.vue b/src/views/specialOperationsPay/notCoalPay/index.vue index fc8b607..1a54724 100644 --- a/src/views/specialOperationsPay/notCoalPay/index.vue +++ b/src/views/specialOperationsPay/notCoalPay/index.vue @@ -3,13 +3,13 @@ <div> <el-button size="medium" - style="margin-bottom: 10px;background-color: #0FC7F0;color: white" + style="margin-right: 10px;background-color: #0FC7F0;color: white" @click="handleAdd('add',{})" v-if="isAhthority" >录入批次 </el-button> <el-date-picker - style="margin-left: 30px;width: 300px" + style="width: 300px" size="small" v-model="dateValue" @change="changeDate" @@ -20,14 +20,14 @@ start-placeholder="开始日期" end-placeholder="结束日期"> </el-date-picker> - <el-select v-model="queryParams.districtCode" size="small" style="margin-left: 15px;margin-right: 15px" placeholder="行政区划"> - <el-option - v-for="item in areaList" - :key="item.id" - :label="item.name" - :value="item.code"> - </el-option> - </el-select> +<!-- <el-select v-model="queryParams.districtCode" size="small" style="margin-left: 15px;margin-right: 15px" placeholder="行政区划">--> +<!-- <el-option--> +<!-- v-for="item in areaList"--> +<!-- :key="item.id"--> +<!-- :label="item.name"--> +<!-- :value="item.code">--> +<!-- </el-option>--> +<!-- </el-select>--> <!-- <el-select v-model="queryParams.deptId" size="small" style="margin-left: 15px;" placeholder="请选择考试点">--> <!-- <el-option--> <!-- v-for="item in examList"--> @@ -37,7 +37,7 @@ <!-- </el-option>--> <!-- </el-select>--> <!-- <treeselect v-model="queryParams.deptId" :options="deptOptions" :show-count="true" placeholder="请选择组织架构" />--> - <el-cascader v-model="queryParams.deptId" size="small" :options="deptOptions" placeholder="组织架构" :props="{ expandTrigger: 'hover',checkStrictly: true,emitPath: false,value: 'id' }"></el-cascader> + <el-cascader v-model="queryParams.deptId" size="small" style="margin-left: 10px" :options="deptOptions" placeholder="组织架构" :props="{ expandTrigger: 'hover',checkStrictly: true,emitPath: false,value: 'id' }"></el-cascader> <el-button size="small" type="primary" @@ -58,7 +58,7 @@ <el-table-column label="提交时间" align="center" prop="createTime"/> <el-table-column label="批次名称" align="center" prop="batchName"/> <el-table-column label="组织架构" align="center" prop="deptName"/> - <el-table-column label="所属地州" align="center" prop="districtName"/> + <el-table-column label="行政管辖" align="center" prop="districtName"/> <el-table-column label="缴费类型" align="center" prop="payType"> <template #default="scope"> {{scope.row.payType == 1?'初训理论':scope.row.payType == 2?'初训实操':scope.row.payType == 3?'初训理论与实操':scope.row.payType == 4?'复训理论':''}} @@ -80,7 +80,7 @@ <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="180px"> <template #default="scope"> <el-button v-if="isAhthority" size="mini" type="text" style="color: #1890ff" @click="handleViewStu(scope.row)">学员管理</el-button> -<!-- <el-button v-if="isAhthority" size="mini" type="text" style="color: #1890ff" @click="handleBatchPay(scope.row,'')">批量缴费</el-button>--> + <el-button v-if="isAhthority && scope.row.payPersonType == 2 && (scope.row.havePayNum < scope.row.totalNum)" size="mini" type="text" style="color: #1890ff" @click="handleBatchPay(scope.row,'add')">批量缴费</el-button> <el-button v-if="isAhthority" size="mini" type="text" style="color:lightcoral" @click="handleDelete(scope.row)">删除</el-button> </template> </el-table-column> @@ -142,6 +142,13 @@ }; }, created() { + const userInfo = store.getters && store.getters.userInfo + this.districtCode = userInfo.district.districtCode + if(userInfo.district.districtCode !== '65'){ + this.queryParams.districtCode = this.districtCode + }else{ + this.queryParams.districtCode = '' + } this.getDistrict() this.getList() this.getDeptList() @@ -193,8 +200,8 @@ handleViewStu(val) { this.$refs.stuDialogRef.openDialog(val.id); }, - handleBatchPay(val) { - this.$refs.batchPayRef.openDialog(val); + handleBatchPay(val,type) { + this.$refs.batchPayRef.openDialog(val,type); }, handleQuery() { this.getList(); -- Gitblit v1.9.2