公章,批量缴费
This commit is contained in:
@@ -30,21 +30,41 @@
|
||||
v-if="scope.row.identifyStatus == '已认证'" icon="el-icon-upload2">上传公章</el-button>
|
||||
<el-button size="mini" @click="sealManage(scope.row)" type="text"
|
||||
v-if="scope.row.identifyStatus == '已认证'" icon="el-icon-upload2">公章管理</el-button>
|
||||
<el-button size="mini" @click="sealDelete(scope.row)" type="text" icon="el-icon-delete">删除</el-button>
|
||||
<el-button size="mini" @click="eidtSeal(scope.row)" type="text"
|
||||
v-if="scope.row.identifyStatus == '未认证'" icon="el-icon-edit">修改</el-button>
|
||||
<el-button size="mini" @click="sealDelete(scope.row)" v-if="scope.row.identifyStatus == '未认证'"
|
||||
type="text" icon="el-icon-delete">删除</el-button>
|
||||
<el-button size="mini" @click="eidtSeal(scope.row)" type="text" v-if="scope.row.identifyStatus == '未认证'"
|
||||
icon="el-icon-edit">修改</el-button>
|
||||
<el-button size="mini" @click="selectUser(scope.row)" type="text"
|
||||
v-if="scope.row.identifyStatus == '未认证'" icon="el-icon-edit">选择经办人</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
|
||||
@pagination="getList(queryParams)" />
|
||||
<addInstitution :operateVisable="operateVisable" @cancelFilingreview="cancelFilingreview" :queryParams="queryParams" @getList="getList">
|
||||
<addInstitution :operateVisable="operateVisable" @cancelFilingreview="cancelFilingreview" :queryParams="queryParams"
|
||||
@getList="getList">
|
||||
</addInstitution>
|
||||
<uploadSeal :uploadVisable="uploadVisable" @cancelUpload="cancelUpload" :queryParams="queryParams" :uploadData="uploadData" @getList="getList">
|
||||
<uploadSeal :uploadVisable="uploadVisable" @cancelUpload="cancelUpload" :queryParams="queryParams"
|
||||
:uploadData="uploadData" @getList="getList">
|
||||
</uploadSeal>
|
||||
<sealManage :sealVisable="sealVisable" @cancelSeal="cancelSeal" :queryParams="queryParams" :sealData="sealData">
|
||||
</sealManage>
|
||||
<eidtInstitution :editVisable="editVisable" @cancelEdit="cancelEdit" :queryParams="queryParams" @getList="getList" :editData="editData"></eidtInstitution>
|
||||
<eidtInstitution :editVisable="editVisable" @cancelEdit="cancelEdit" :queryParams="queryParams" @getList="getList"
|
||||
:editData="editData"></eidtInstitution>
|
||||
<el-dialog title="选择经办人" :visible.sync="selectVisible" width="600px" @close="selectClose">
|
||||
<el-form :model="slectFrom" :rules="rules" ref="slectFrom" label-width="80px">
|
||||
<el-form-item label="经办人" prop="id">
|
||||
<el-select v-model="slectFrom.id" clearable placeholder="请选择">
|
||||
<el-option v-for="item in userList" :key="item.userId" :label="item.nickName" :value="item.userId">
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button @click="selectClose" class="endbutton"><span>取 消</span></el-button>
|
||||
<el-button type="primary" @click="submitUser" class="endbutton"><span>确认</span></el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -53,7 +73,9 @@ import {
|
||||
deptIdentifyList,
|
||||
enableDept,
|
||||
selectDeptIndefiUrl,
|
||||
deleteSeal
|
||||
deleteSeal,
|
||||
selectPostUserByDeptId,
|
||||
bindHandler
|
||||
} from "@/api/officialSeal/officialSeal.js";
|
||||
|
||||
import addInstitution from "./components/addInstitution";
|
||||
@@ -88,25 +110,62 @@ export default {
|
||||
sealVisable: false,//公章列表弹窗
|
||||
uploadData: {},
|
||||
sealData: {},
|
||||
editVisable:false,
|
||||
editData:{}
|
||||
editVisable: false,
|
||||
editData: {},
|
||||
selectVisible: false,
|
||||
slectFrom: {},
|
||||
userList: [],
|
||||
templateId: null,
|
||||
rules: {
|
||||
id: [
|
||||
{ required: true, message: '请选择经办人', trigger: 'blur' },
|
||||
]
|
||||
}
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.getList(this.queryParams)
|
||||
},
|
||||
methods: {
|
||||
// 选择经办人
|
||||
selectUser(row) {
|
||||
this.selectVisible = true;
|
||||
this.templateId = row.id;
|
||||
selectPostUserByDeptId({ id: row.id }).then(res => {
|
||||
this.userList = res.data;
|
||||
if (row.userId) {
|
||||
this.slectFrom.id = row.userId;
|
||||
} else {
|
||||
this.slectFrom = {};
|
||||
}
|
||||
})
|
||||
},
|
||||
// 确认经办人
|
||||
submitUser() {
|
||||
this.$refs['slectFrom'].validate((valid) => {
|
||||
if (valid) {
|
||||
bindHandler({ id: this.templateId, userId: this.slectFrom.id }).then(res => {
|
||||
this.$modal.msgSuccess("选择成功");
|
||||
this.selectVisible = false;
|
||||
this.getList(this.queryParams);
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
selectClose() {
|
||||
this.selectVisible = false;
|
||||
},
|
||||
// 删除
|
||||
sealDelete(row){
|
||||
sealDelete(row) {
|
||||
this.$modal
|
||||
.confirm("是否更改状态")
|
||||
.then((res) => {
|
||||
this.deleteSealFn({id:row.id})
|
||||
this.deleteSealFn({ id: row.id })
|
||||
})
|
||||
},
|
||||
// 删除接口
|
||||
deleteSealFn(data){
|
||||
deleteSeal(data).then(res=>{
|
||||
deleteSealFn(data) {
|
||||
deleteSeal(data).then(res => {
|
||||
this.$modal.msgSuccess("删除成功!");
|
||||
this.getList(this.queryParams);
|
||||
})
|
||||
@@ -135,11 +194,11 @@ export default {
|
||||
this.operateVisable = true;
|
||||
},
|
||||
// 编辑
|
||||
eidtSeal(row){
|
||||
eidtSeal(row) {
|
||||
this.editVisable = true;
|
||||
this.editData = row;
|
||||
},
|
||||
cancelEdit(){
|
||||
cancelEdit() {
|
||||
this.editVisable = false;
|
||||
},
|
||||
// 启用认证按钮
|
||||
@@ -160,6 +219,10 @@ export default {
|
||||
},
|
||||
// 认证按钮
|
||||
DeptIndefiUrl(row) {
|
||||
if (!row.operName || !row.legalPerPhone) {
|
||||
this.$modal.msgError("当前没有经办人 ,无法认证!!");
|
||||
return
|
||||
}
|
||||
this.$modal.confirm('是否认证?')
|
||||
.then(function () {
|
||||
selectDeptIndefiUrl({ id: row.id }).then(res => {
|
||||
@@ -194,7 +257,9 @@ export default {
|
||||
this.dataList.forEach(item => {
|
||||
if (item.identifyStatus == 0 || item.identifyStatus == null) {
|
||||
item.identifyStatus = '未认证'
|
||||
} else {
|
||||
} else if (item.identifyStatus == 2) {
|
||||
item.identifyStatus = '认证中'
|
||||
} else if (item.identifyStatus == 1) {
|
||||
item.identifyStatus = '已认证'
|
||||
}
|
||||
if (item.isUse == 0 || item.isUse == null) {
|
||||
|
||||
Reference in New Issue
Block a user