Commit 8f526ad5 by liupeng

修改了人员审批

parent e6841f93
...@@ -453,8 +453,8 @@ ...@@ -453,8 +453,8 @@
<el-table-column align="center" label="操作" width="300"> <el-table-column align="center" label="操作" width="300">
<template slot-scope="scope"> <template slot-scope="scope">
<span @click="edit(scope)" class="edit" style="margin-right: 16px" <span @click="edit(scope)" class="edit" style="margin-right: 16px"
>修改</span v-if="pageBs != 'rySp'"
> >修改</span>
<span <span
@click="gz(scope)" @click="gz(scope)"
class="dele" class="dele"
...@@ -464,7 +464,7 @@ ...@@ -464,7 +464,7 @@
<span <span
@click="dele(scope)" @click="dele(scope)"
class="dele" class="dele"
v-if="pageBs != 'zdryGl' && pageBs != 'dytj'" v-if="pageBs != 'zdryGl' && pageBs != 'dytj' && pageBs != 'rySp'"
>删除</span >删除</span
> >
<span <span
...@@ -478,6 +478,10 @@ ...@@ -478,6 +478,10 @@
v-if="pageBszfc == 'yhkxsGl'" v-if="pageBszfc == 'yhkxsGl'"
><img src="../assets/img/sheng.png" ><img src="../assets/img/sheng.png"
/></span> /></span>
<span @click="examine(scope)" class="edit"
style="margin-right: 16px"
v-if="pageBs == 'rySp'"
>审批</span>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -738,6 +742,9 @@ export default { ...@@ -738,6 +742,9 @@ export default {
returnBtn() { returnBtn() {
this.$emit("returnBtn"); this.$emit("returnBtn");
}, },
examine(scope) {
this.$emit("examine", scope);
},
guoDetail(scope, type) { guoDetail(scope, type) {
if (type == "guo") { if (type == "guo") {
this.$router.pushToTab({ this.$router.pushToTab({
......
<template>
<div class="Content">
<right-content
:pageBs="pageBs"
:header="header"
:cxFormData="cxFormData"
:cxQueryField="cxQueryField"
:cxDefaultFormThead="cxDefaultFormThead"
:cxUrl="cxUrl"
@toInfor="toInfor"
@examine="examine"
></right-content>
<!-- 审批意见框 -->
<el-dialog title="审批" :visible.sync="dialogVisible" width="30%" center>
<el-form :inline="true" :model="examineInfo" class="demo-form-inline">
<el-row>
<el-col :span="24">
<el-form-item label="审批意见">
<el-input
type="textarea"
v-model="examineInfo.textarea"
:autosize="{ minRows: 2, maxRows: 4}"
placeholder="审批意见"
></el-input>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="审批状态">
<el-radio v-model="examineInfo.examinetype" label="待审核"
>待审核</el-radio
>
<el-radio v-model="examineInfo.examinetype" label="通过"
>审核通过</el-radio
>
</el-form-item>
</el-col>
</el-row>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button @click="dialogVisible = false">取 消</el-button>
<el-button type="primary" @click="dialogVisible = false"
>确 定</el-button
>
</span>
</el-dialog>
</div>
</template>
<script>
import { getRybq } from "@/api/zdry/zdryGl.js";
import { deleteAddZdry } from "@/api/zdry/zdrysp.js";
import rightContent from "@c/ptCxForm_components.vue";
export default {
name: "rySp",
components: {
rightContent,
},
data() {
return {
header: "人员审批",
pageBs: "rySp",
cxFormData: {
limit: 10,
page: 1,
},
cxQueryField: [
// {
// name: '',
// id: 'zdyCode',
// type: 'checkbox',
// value: '01',
// placeholder: '',
// col: '1',
// checkList: [
// { label: '电信网络诈骗', val: 'zd010002' },
// { label: '涉黑涉恶', val: 'zd010006' },
// { label: '团伙作案', val: 'zd010018' },
// { label: '一人多案', val: 'zd010015' }
// ]
// },
{
name: "姓名",
id: "xm",
type: "text",
value: "",
placeholder: "",
col: "3",
},
{
name: "证件号码",
id: "zjhm",
type: "text",
value: "",
placeholder: "",
col: "3",
},
{
name: "户籍地区划",
id: "xzqhdm",
type: "codeTreeDialog",
props: "checkEmpty",
value: "",
placeholder: "请选择",
col: "3",
codeOptions: [],
codeTree: "CODE_XZQH",
},
{
name: "案件主类别",
id: "ajzlb",
type: "codeTreeDialog",
props: "checkEmpty",
value: "",
placeholder: "请选择",
col: "3",
codeOptions: [],
codeTree: "CODE_AJZLB",
},
{
name: "刑事类案案别",
id: "xalbdmbcms",
type: "codeTreeDialog",
props: "checkEmpty",
value: "",
placeholder: "请选择",
col: "3",
codeOptions: [],
codeTree: "CODE_XALBDMBCMS",
},
{
name: "案件类别",
id: "ajlbCode",
type: "codeTreeDialog",
props: "checkEmpty",
value: "",
placeholder: "请选择",
col: "3",
codeOptions: [],
codeTree: "CODE_AJLB",
},
{
name: "自定义标签",
id: "zdyCodeTxt",
type: "select",
value: "",
col: "3",
selectData: [],
},
{
name: "人员标签",
id: "zdyCode",
type: "select",
value: "",
col: "3",
selectData: [],
},
{
name: "性别",
id: "xbdm",
type: "codeTreeDialog",
props: "checkEmpty",
value: "",
placeholder: "请选择",
col: "3",
codeOptions: [],
codeTree: "CODE_XB",
},
{
name: "民族",
id: "mzdm",
type: "codeTreeDialog",
props: "checkEmpty",
value: "",
placeholder: "请选择",
col: "3",
codeOptions: [],
codeTree: "CODE_MZ",
},
{
name: "审批流程",
id: "splc",
props: "checkEmpty",
type: "select",
selectData: [
{
name: "",
value: "",
},
{
name: "暂未审批",
value: "1",
},
],
value: "",
placeholder: "请选择",
col: "3",
},
{
name: "审批人警号",
id: "sprjh",
type: "text",
value: "",
placeholder: "请填写",
col: "3",
},
],
cxDefaultFormThead: [
{
label: "姓名",
prop: "xm",
},
{
label: "身份证号",
prop: "Zjhm",
},
{
label: "性别",
prop: "xbdmText",
},
{
label: "民族",
prop: "mzdmText",
},
{
label: "户籍",
prop: "xzqhdmText",
},
{
label: "录入人",
prop: "lrr",
width: "200",
},
{
label: "审批人",
prop: "sprxm",
},
{
label: "审批流程",
prop: "splcText",
},
{
label: "审批意见",
prop: "spyj",
},
],
cxUrl: "zdGzry/getZdGzryxx",
Menu: [
{
id: "rySp",
label: "人员审批",
index: "rySp",
auth: "M0101",
className: "iconfont iconrizhi",
disabled: false,
},
],
dialogVisible: false,
examineInfo: {
textarea: "",
examinetype: "待审核",
},
};
},
created() {
this.$store.commit("user/SET_Menu", this.Menu);
this.getCode();
// debugger;
},
methods: {
getCode() {
let arr = [];
getRybq().then((res) => {
res.data.rows.forEach((item) => {
arr.push({
value: item.code,
name: item.name,
});
});
});
this.$set(this.cxQueryField[9], "selectData", arr);
},
add() {
this.$router.push("/addInsertZdry");
},
edit(scope) {
this.$router.push({
path: "/addInsertZdry",
query: { id: scope.row.id },
});
},
dele(scope) {
this.$confirm("此操作将永久删除该文件, 是否继续?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
let params = new FormData();
params.sppend("id", this.id);
deleteAddZdry(params).then((res) => {
if (res.success && res.code == 200) {
this.$message({
type: "success",
message: "删除成功",
});
this.$refs.rightContent.doQuery("yes");
}
});
})
.catch(() => {
this.$message({
type: "info",
message: "已取消删除",
});
});
console.log(scope.row.id);
},
toInfor(data) {
this.$router.push({
path: "/addDetailZdry",
query: {
id: data.id,
},
});
},
examine(scope) {
this.dialogVisible = true;
},
},
};
</script>
<style>
.el-dialog__body {
padding: 10px 15px !important;
}
.rightContent .el-input__inner,
#formCommonPage .el-input__inner {
height: 32px;
line-height: 32px;
font-family: inherit;
}
.el-table__header-wrapper th,
.el-table__header-wrapper tr {
background: #f4f6f7;
}
.rightContent .el-input__icon,
#formCommonPage .el-input__icon,
.el-input__suffix-inner {
line-height: 36px;
}
.rightContent .el-range-separator {
position: relative;
top: -4px;
}
.rightContent .el-textarea__inner,
#formCommonPage .el-textarea__inner {
width: 100%;
font-family: inherit;
}
.rightContent .el-range-input,
#formCommonPage .el-range-input {
vertical-align: top;
}
.rightContent .el-date-editor .el-range__close-icon {
margin-top: -4px;
}
.rightContent .el-form-item__error {
left: calc(66% - 27px);
top: 12px;
}
.success-row {
background-color: #fbf9f4 !important;
}
.Content .el-input,
.Content .el-date-editor--daterange.el-input__inner {
width: 100% !important;
}
</style>
<style scoped lang="scss">
@import "@/assets/styles/rightContent.scss";
</style>
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