Commit 96aa2aa8 by liyuhang19990520

侦查指令

parent 1a5fcb36
File added
/* /*
* @Author: your name * @Author: your name
* @Date: 2021-10-15 10:55:14 * @Date: 2021-10-15 10:55:14
* @LastEditTime: 2021-10-15 10:59:54 * @LastEditTime: 2021-10-22 17:01:29
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: In User Settings Edit * @Description: In User Settings Edit
* @FilePath: \founder_vue\src\api\zczl\xxgl.js * @FilePath: \founder_vue\src\api\zczl\xxgl.js
...@@ -13,8 +13,14 @@ import base from "@/api/base"; ...@@ -13,8 +13,14 @@ import base from "@/api/base";
//删除联络员 //删除联络员
export const llyDel = params => export const llyDel = params =>
postform(`${base.alyIP}/zczl/llyDel`, params); postform(`${base.alyIP}/zczl/llyDel`, params);
//人像比对详情 //查询是否可以设置联络员
// export const rxdbDetail = params => export const checkLly = params =>
// post(`${base.alyIP}/rxbz/queryByXxzjbh`, params); postform(`${base.alyIP}/zczl/checkLly`, params);
//设置联络员
export const setLly = params =>
postform(`${base.alyIP}/zczl/setLly`, params);
//权限分配
export const doQxfp = params =>
post(`${base.alyIP}/zczl/doQxfp`, params);
/* /*
* @Author: your name * @Author: your name
* @Date: 2021-10-15 10:55:14 * @Date: 2021-10-15 10:55:14
* @LastEditTime: 2021-10-15 16:48:15 * @LastEditTime: 2021-10-22 16:37:48
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: In User Settings Edit * @Description: In User Settings Edit
* @FilePath: \founder_vue\src\api\zczl\xxgl.js * @FilePath: \founder_vue\src\api\zczl\xxgl.js
...@@ -15,6 +15,17 @@ export const exportZczlExcel = params => ...@@ -15,6 +15,17 @@ export const exportZczlExcel = params =>
postdown(`${base.alyIP}/zczl/exportZczlExcel`, params); postdown(`${base.alyIP}/zczl/exportZczlExcel`, params);
export const getTjListPic = params => export const getTjListPic = params =>
post(`${base.alyIP}/zczl/getTjListPic`, params); post(`${base.alyIP}/zczl/getTjListPic`, params);
//新增侦查指令
export const doAddZczlxx = params =>
postform(`${base.alyIP}/zczl/doAddZczlxx`, params);
//侦查指令审批
export const tjsp = params =>
post(`${base.alyIP}/zczl/tjsp`, params);
//通过侦查指令编号查询指令详情
export const queryZlxqByZczlbh = params =>
postform(`${base.alyIP}/zczl/queryZlxqByZczlbh`, params);
//人像比对详情 //人像比对详情
// export const rxdbDetail = params => // export const rxdbDetail = params =>
// post(`${base.alyIP}/rxbz/queryByXxzjbh`, params); // post(`${base.alyIP}/rxbz/queryByXxzjbh`, params);
......
...@@ -291,7 +291,11 @@ ...@@ -291,7 +291,11 @@
pageBs != 'wscdajtj' && pageBs != 'wscdajtj' &&
pageBs != 'queryXnpg' && pageBs != 'queryXnpg' &&
pageBs != 'queryPgtj' && pageBs != 'queryPgtj' &&
pageBs != 'wscdaj' pageBs != 'wscdaj' &&
pageBs != 'wsqfbdzczl' &&
pageBs != 'llycx' &&
pageBs != 'xywspdzczl' &&
pageBs != 'sqqxgl'
" "
> >
<i class="el-icon-plus"></i> 新增 <i class="el-icon-plus"></i> 新增
...@@ -306,6 +310,13 @@ ...@@ -306,6 +310,13 @@
<el-button <el-button
type="primary" type="primary"
size="mini" size="mini"
v-if="pageBs == 'wsqfbdzczl'"
@click="$emit('sqfbzl', formData)"
>申请发布指令</el-button
>
<el-button
type="primary"
size="mini"
v-if="pageBs == 'wscdaj'" v-if="pageBs == 'wscdaj'"
@click="$emit('ajsx')" @click="$emit('ajsx')"
>案件筛选</el-button >案件筛选</el-button
...@@ -736,12 +747,22 @@ ...@@ -736,12 +747,22 @@
pageBs == 'queryZjcl' || pageBs == 'queryZjcl' ||
pageBs == 'llygl' || pageBs == 'llygl' ||
pageBs == 'wscdaj' || pageBs == 'wscdaj' ||
pageBs == 'queryRyzp' pageBs == 'queryRyzp' ||
pageBs == 'llycx' ||
pageBs == 'xywspdzczl' ||
pageBs == 'sqqxgl'
) )
" "
>修改</span >修改</span
> >
<span <span
@click="$emit('szlly', scope)"
class="edit"
style="margin-right: 16px"
v-if="pageBs == 'llycx' && scope.row.sflly == 0"
>设置联络员</span
>
<span
@click="editRole(scope)" @click="editRole(scope)"
class="edit" class="edit"
style="margin-right: 16px" style="margin-right: 16px"
...@@ -771,7 +792,10 @@ ...@@ -771,7 +792,10 @@
pageBs != 'yhkxsGl' && pageBs != 'yhkxsGl' &&
pageBs != 'rwbd' && pageBs != 'rwbd' &&
pageBs != 'rwbdjs' && pageBs != 'rwbdjs' &&
pageBs != 'queryRlqbxsSH' pageBs != 'queryRlqbxsSH' &&
pageBs != 'llycx' &&
pageBs != 'xywspdzczl' &&
pageBs != 'sqqxgl'
" "
>删除</span >删除</span
> >
...@@ -782,6 +806,12 @@ ...@@ -782,6 +806,12 @@
>审核</span >审核</span
> >
<span <span
@click="$emit('qxfp', scope)"
class="dele"
v-if="pageBs == 'sqqxgl'"
>权限分配</span
>
<span
@click="guoDetail(scope, 'guo')" @click="guoDetail(scope, 'guo')"
class="dele" class="dele"
v-if="pageBszfc == 'yhkxsGl'" v-if="pageBszfc == 'yhkxsGl'"
...@@ -796,7 +826,7 @@ ...@@ -796,7 +826,7 @@
@click="examine(scope)" @click="examine(scope)"
class="edit" class="edit"
style="margin-right: 16px" style="margin-right: 16px"
v-if="pageBs == 'rySp'" v-if="pageBs == 'rySp' || pageBs == 'xywspdzczl'"
>审批</span >审批</span
> >
<span <span
...@@ -1090,7 +1120,7 @@ import { ...@@ -1090,7 +1120,7 @@ import {
getXdryDetail, getXdryDetail,
updateZdyCode, updateZdyCode,
} from "@/api/zdry/zdryGl.js"; } from "@/api/zdry/zdryGl.js";
import {postform } from "@/utils/http.js"; import { postform } from "@/utils/http.js";
export default { export default {
name: "ptCxForm", name: "ptCxForm",
components: { components: {
...@@ -1618,16 +1648,22 @@ export default { ...@@ -1618,16 +1648,22 @@ export default {
} }
} }
if (flag) { if (flag) {
if (self.formData.hasOwnProperty('file') || self.formData.hasOwnProperty('imageFile')) { if (
self.formData.hasOwnProperty("file") ||
self.formData.hasOwnProperty("imageFile")
) {
let formDatas = new FormData(); let formDatas = new FormData();
for (let i in self.formData) { for (let i in self.formData) {
if (i == "file" || i == "imageFile") { if (i == "file" || i == "imageFile") {
formDatas.append(i,JSON.stringify(self.imgRaw) == "{}" ? '' : self.imgRaw) formDatas.append(
i,
JSON.stringify(self.imgRaw) == "{}" ? "" : self.imgRaw
);
} else { } else {
formDatas.append(i,self.formData[i]) formDatas.append(i, self.formData[i]);
} }
} }
postform(`${url.alyIP}${this.cxUrl}`,formDatas).then((response) => { postform(`${url.alyIP}${this.cxUrl}`, formDatas).then((response) => {
if (response.success === true) { if (response.success === true) {
self.tableData = response.data.rows; self.tableData = response.data.rows;
self.tableDataLength = response.data.total; self.tableDataLength = response.data.total;
......
/* /*
* @Author: your name * @Author: your name
* @Date: 2021-10-14 15:35:19 * @Date: 2021-10-14 15:35:19
* @LastEditTime: 2021-10-15 16:41:30 * @LastEditTime: 2021-10-22 11:39:26
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: In User Settings Edit * @Description: In User Settings Edit
* @FilePath: \founder_vue\src\router\modules\zczl.js * @FilePath: \founder_vue\src\router\modules\zczl.js
...@@ -112,6 +112,15 @@ const menuLayouts = [ ...@@ -112,6 +112,15 @@ const menuLayouts = [
}, },
component: () => import("@/views/zczl/zczlxd/zczlxdList.vue") component: () => import("@/views/zczl/zczlxd/zczlxdList.vue")
}, },
{
path: "/addsqfbzl",
name: "addsqfbzl",
meta: {
title: '侦查指令',
isAdd: true
},
component: () => import("@/views/zczl/zczl/addsqfbzl.vue")
},
]; ];
......
...@@ -7,10 +7,7 @@ ...@@ -7,10 +7,7 @@
:cxQueryField="cxQueryField" :cxQueryField="cxQueryField"
:cxDefaultFormThead="cxDefaultFormThead" :cxDefaultFormThead="cxDefaultFormThead"
:cxUrl="cxUrl" :cxUrl="cxUrl"
@add="add" @szlly="szlly"
@edit="edit"
@dele="dele"
@toInfor="toInfor"
ref="rightContent" ref="rightContent"
></right-content> ></right-content>
</div> </div>
...@@ -18,7 +15,7 @@ ...@@ -18,7 +15,7 @@
<script> <script>
import rightContent from "@c/ptCxForm_components.vue"; import rightContent from "@c/ptCxForm_components.vue";
import { deleteKyxsxx } from "@/api/rlqbxs.js"; import { checkLly, setLly } from "@/api/zczl/xxgl.js";
export default { export default {
name: "rlqbxsxx", name: "rlqbxsxx",
components: { components: {
...@@ -112,32 +109,41 @@ export default { ...@@ -112,32 +109,41 @@ export default {
this.$store.commit("user/SET_Menu", this.Menu); this.$store.commit("user/SET_Menu", this.Menu);
}, },
methods: { methods: {
add() { settingPerson(scope, loading) {
this.$router.push("adjustRlqbxs"); let params = new FormData();
}, params.append("userId", scope.row.userId);
edit(scope) { setLly(params).then((res) => {
this.$router.push({ loading.close();
path: "adjustRlqbxs", if (res.code == 200 && res.success) {
query: { xxzjbh: scope.row.xxzjbh }, this.$message.success("设置联络员成功");
this.$refs.rightContent.doQuery("yes");
} else {
this.$message.error("设置联络员失败");
}
}); });
}, },
dele(scope) { szlly(scope) {
console.log(scope); let self = this;
this.$confirm("此操作将永久删除该文件, 是否继续?", "提示", { this.$confirm("此操作将设置该人员为联络员, 是否继续?", "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning", type: "warning",
}) })
.then(() => { .then(() => {
deleteKyxsxx({ let params = new FormData();
xxzjbh: scope.row.xxzjbh, let loading = self.$loading({
}).then((res) => { lock: true,
if (res.success && res.code == 200) { text: "正在设置...",
this.$message({ spinner: "el-icon-loading",
type: "success", background: "rgba(255, 255, 255, 0.7)",
message: "删除成功",
}); });
this.$refs.rightContent.doQuery("yes"); params.append("userId", scope.row.userId);
checkLly(params).then((res) => {
if (res.code == 200 && res.data.flag == "1") {
self.settingPerson(scope, loading);
} else {
loading.close();
self.$message.error("该人员不可设置为联络员");
} }
}); });
}) })
...@@ -148,14 +154,6 @@ export default { ...@@ -148,14 +154,6 @@ export default {
}); });
}); });
}, },
toInfor(scope) {
this.$router.push({
path: "/detailRlqbxs",
query: {
xxzjbh: scope.xxzjbh,
},
});
},
}, },
mounted() {}, mounted() {},
}; };
......
...@@ -7,10 +7,7 @@ ...@@ -7,10 +7,7 @@
:cxQueryField="cxQueryField" :cxQueryField="cxQueryField"
:cxDefaultFormThead="cxDefaultFormThead" :cxDefaultFormThead="cxDefaultFormThead"
:cxUrl="cxUrl" :cxUrl="cxUrl"
@add="add" @qxfp="qxfp"
@edit="edit"
@dele="dele"
@toInfor="toInfor"
ref="rightContent" ref="rightContent"
></right-content> ></right-content>
</div> </div>
...@@ -18,7 +15,7 @@ ...@@ -18,7 +15,7 @@
<script> <script>
import rightContent from "@c/ptCxForm_components.vue"; import rightContent from "@c/ptCxForm_components.vue";
import { deleteKyxsxx } from "@/api/rlqbxs.js"; import { doQxfp } from "@/api/zczl/xxgl.js";
export default { export default {
name: "rlqbxsxx", name: "rlqbxsxx",
components: { components: {
...@@ -26,8 +23,8 @@ export default { ...@@ -26,8 +23,8 @@ export default {
}, },
data() { data() {
return { return {
header: "联络员管理", header: "申请权限管理",
pageBs: "llygl", pageBs: "sqqxgl",
cxFormData: { cxFormData: {
unitcode: "", unitcode: "",
truename: "", truename: "",
...@@ -122,9 +119,9 @@ export default { ...@@ -122,9 +119,9 @@ export default {
cxUrl: "/zczl/getSpUserList", cxUrl: "/zczl/getSpUserList",
Menu: [ Menu: [
{ {
id: "llygl", id: "sqqxgl",
label: "联络员管理", label: "申请权限管理",
index: "llygl", index: "sqqxgl",
auth: "M0101", auth: "M0101",
className: "iconfont iconrizhi", className: "iconfont iconrizhi",
disabled: false, disabled: false,
...@@ -136,32 +133,24 @@ export default { ...@@ -136,32 +133,24 @@ export default {
this.$store.commit("user/SET_Menu", this.Menu); this.$store.commit("user/SET_Menu", this.Menu);
}, },
methods: { methods: {
add() { qxfp(scope) {
this.$router.push("adjustRlqbxs"); this.$confirm("此操作将分配该人员权限, 是否继续?", "提示", {
},
edit(scope) {
this.$router.push({
path: "adjustRlqbxs",
query: { xxzjbh: scope.row.xxzjbh },
});
},
dele(scope) {
console.log(scope);
this.$confirm("此操作将永久删除该文件, 是否继续?", "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning", type: "warning",
}) })
.then(() => { .then(() => {
deleteKyxsxx({ doQxfp({
xxzjbh: scope.row.xxzjbh, userid: scope.row.userId,
}).then((res) => { }).then((res) => {
if (res.success && res.code == 200) { if (res.success && res.code == 200) {
this.$message({ this.$message({
type: "success", type: "success",
message: "删除成功", message: "分配成功",
}); });
this.$refs.rightContent.doQuery("yes"); this.$refs.rightContent.doQuery("yes");
} else {
this.$message.error("分配失败");
} }
}); });
}) })
...@@ -172,14 +161,6 @@ export default { ...@@ -172,14 +161,6 @@ export default {
}); });
}); });
}, },
toInfor(scope) {
this.$router.push({
path: "/detailRlqbxs",
query: {
xxzjbh: scope.xxzjbh,
},
});
},
}, },
mounted() {}, mounted() {},
}; };
......
<template>
<div>
<form-compontent
:formField="propFormField"
:formLabelAligns="formLabelAlign"
@submit="submit"
:propTitle="title"
>
</form-compontent>
</div>
</template>
<script>
import formCompontent from "@c/form.vue";
import { doAddZczlxx } from "@/api/zczl/zczl.js";
import { djfc } from "@/utils/params.js";
export default {
name: "addGzry",
components: {
formCompontent,
},
data() {
return {
title: "新增侦查指令",
propFormField: [
//基本信息
{
title: "",
id: 1,
objStr: "",
index: 0,
data: [
{
name: "文件列表:",
id: "file",
type: "file",
value: "",
requestUrl: "/flwsFj/tbstasjflwsCj/save",
col: "1",
// acceptType: "image/jpeg,image/gif,image/png",
},
{
name: "业务名称:",
id: "ywmc",
type: "text",
value: "",
placeholder: "请输入",
col: "2",
},
{
name: "回报期限:",
id: "hbqx",
type: "text",
value: "",
placeholder: "请输入",
col: "2",
},
{
name: "业务类型:",
id: "ywlx",
type: "codeTree",
codeTree: "CODE_YWLXDM",
codeOptions: [],
value: "",
placeholder: "请输入",
col: "2",
},
{
name: "指令类型:",
id: "zllx",
type: "codeTree",
codeTree: "CODE_ZLLXDM",
codeOptions: [],
value: "",
placeholder: "请输入",
col: "2",
},
{
name: "指令接收单位:",
id: "zljsdwdm",
type: "codeTree",
codeTree: "CODE_UNIT",
codeOptions: [],
value: "",
placeholder: "请输入",
col: "2",
},
{
name: "指令事由:",
id: "zlsy",
type: "textarea",
value: "",
placeholder: "请输入",
col: "18",
},
{
name: "工作要求:",
id: "gzyq",
type: "textarea",
value: "",
placeholder: "请输入",
col: "18",
},
],
},
],
formLabelAlign: {},
breadcrumbList: [
{
name: "刑嫌列控管理",
to: "/queryGzry",
isActive: false,
},
{
name: "房产信息列表",
to: "/queryFcxx",
isActive: false,
},
{
name: this.$route.query.xxzjbh ? "修改房产信息" : "新增房产信息",
to: "/addFcxx",
isActive: true,
},
],
glxxXxzjbh: "",
xxzjbh: "",
};
},
methods: {
submit(params) {
params.append("glxxXxzjbh", this.glxxXxzjbh);
let loading = this.$loading({
lock: true,
text: "正在保存...",
spinner: "el-icon-loading",
background: "rgba(255, 255, 255, 0.7)",
});
if (!this.xxzjbh) {
this.addSubmit(params, loading);
} else {
this.editSubmit(params, loading);
}
},
addSubmit(params, loading) {
doAddZczlxx(params).then((res) => {
console.log(111111,res)
if (res.success && res.code == 200) {
this.$alert("保存成功!", "提示", {
confirmButtonText: "确定",
type: "success",
callback: () => {
loading.close();
this.$router.push("queryFcxx");
},
});
} else {
loading.close();
this.$message.error("添加失败,请检查数据格式是否正确");
}
});
},
editSubmit(params, loading) {
params.append("xxzjbh", this.xxzjbh);
updateGzryFc(params).then((res) => {
if (res.success && res.code == 200) {
this.$alert("保存成功!", "提示", {
confirmButtonText: "确定",
type: "success",
callback: () => {
loading.close();
this.$router.push("queryFcxx");
},
});
} else {
loading.close();
this.$message.error("添加失败,请检查数据格式是否正确");
}
});
},
getshuju() {
let loading = this.$loading({
lock: true,
text: "正在加载...",
spinner: "el-icon-loading",
background: "rgba(255, 255, 255, 0.7)",
});
var self = this;
selectFcById({
xxzjbh: this.xxzjbh,
}).then((res) => {
var result = res.data.rows;
self.propFormField.forEach((fieldItem) => {
if (fieldItem.data && fieldItem.data.length > 0) {
fieldItem.data.forEach((i) => {
this.$set(this.formLabelAlign, i.id, result[i.id]);
});
}
this.$forceUpdate();
});
self.$set(self.formLabelAlign, "editing", true);
self.$forceUpdate();
setTimeout(() => {
loading.close();
}, 500);
});
},
},
created() {
this.$store.commit("user/SET_Breadcrumb", this.breadcrumbList);
if (this.$route.query.glxxXxzjbh) {
this.glxxXxzjbh = this.$route.query.glxxXxzjbh;
}
if (this.$route.query.xxzjbh) {
// this.$set(this.propFormField[0], "title", "修改房产信息");
this.title = "修改侦查指令";
this.xxzjbh = this.$route.query.xxzjbh;
this.getshuju();
}
},
};
</script>
<style scoped lang="scss">
</style>
\ No newline at end of file
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2021-09-03 09:32:50 * @Date: 2021-09-03 09:32:50
* @LastEditTime: 2021-10-15 17:39:38 * @LastEditTime: 2021-10-22 10:41:54
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: In User Settings Edit * @Description: In User Settings Edit
* @FilePath: \founder_vue\src\views\zdry\dytj.vue * @FilePath: \founder_vue\src\views\zdry\dytj.vue
...@@ -249,7 +249,13 @@ export default { ...@@ -249,7 +249,13 @@ export default {
position: relative; position: relative;
.datetimerange { .datetimerange {
margin-bottom: 10px; margin-bottom: 10px;
/deep/ {
.el-icon-time {
transform: translateY(-4px);
} }
}
}
#noDataText { #noDataText {
text-align: center; text-align: center;
position: absolute; position: absolute;
......
...@@ -98,7 +98,7 @@ export default { ...@@ -98,7 +98,7 @@ export default {
col: "3", col: "3",
}, },
{ {
name: "指令接单位", name: "指令接单位",
id: "zljsdwdm", id: "zljsdwdm",
type: "codeTreeDialog", type: "codeTreeDialog",
props: "checkEmpty", props: "checkEmpty",
......
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
@edit="edit" @edit="edit"
@dele="dele" @dele="dele"
@toInfor="toInfor" @toInfor="toInfor"
@sqfbzl="sqfbzl"
ref="rightContent" ref="rightContent"
></right-content> ></right-content>
</div> </div>
...@@ -258,6 +259,9 @@ export default { ...@@ -258,6 +259,9 @@ export default {
add() { add() {
this.$router.push("adjustRlqbxs"); this.$router.push("adjustRlqbxs");
}, },
sqfbzl(){
this.$router.push("addsqfbzl");
},
edit(scope) { edit(scope) {
this.$router.push({ this.$router.push({
path: "adjustRlqbxs", path: "adjustRlqbxs",
......
...@@ -7,18 +7,58 @@ ...@@ -7,18 +7,58 @@
:cxQueryField="cxQueryField" :cxQueryField="cxQueryField"
:cxDefaultFormThead="cxDefaultFormThead" :cxDefaultFormThead="cxDefaultFormThead"
:cxUrl="cxUrl" :cxUrl="cxUrl"
@add="add" @examine="examine"
@edit="edit"
@dele="dele"
@toInfor="toInfor"
ref="rightContent" ref="rightContent"
></right-content> ></right-content>
<!-- 撤控 -->
<el-dialog title="申请指令信息" :visible.sync="revokeVisiable" width="30%">
<el-form :inline="true" :model="ckForm" class="demo-form-inline">
<el-row>
<el-col :span="20" :offset="2" style="margin-top: 20px">
<el-form-item :label="labelForm.xm" style="width:100%">
<el-input
disabled
type="text"
v-model="ckForm.fqyxm"
style="width: 120px"
></el-input>
</el-form-item>
</el-col>
<el-col :span="20" :offset="2">
<el-form-item :label="labelForm.dwmc" style="width:100%">
<el-input
disabled
type="text"
v-model="ckForm.fqydwmc"
style="width: 120px"
></el-input>
</el-form-item>
</el-col>
<el-col :span="20" :offset="2">
<el-form-item :label="labelForm.dh" style="width:100%">
<el-input
disabled
type="text"
v-model="ckForm.fqylxdh"
style="width: 120px"
></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="revokeVisiable = false">取 消</el-button>
<el-button type="danger" @click="submitCKD('0')">不通过</el-button>
<el-button type="primary" @click="submitCKD('1')">通过</el-button>
</div>
</el-dialog>
</div> </div>
</template> </template>
<script> <script>
import rightContent from "@c/ptCxForm_components.vue"; import rightContent from "@c/ptCxForm_components.vue";
import { deleteKyxsxx } from "@/api/rlqbxs.js"; import { tjsp, queryZlxqByZczlbh } from "@/api/zczl/zczl.js";
export default { export default {
name: "rlqbxsxx", name: "rlqbxsxx",
components: { components: {
...@@ -28,6 +68,19 @@ export default { ...@@ -28,6 +68,19 @@ export default {
return { return {
header: "需要我审批的侦查指令", header: "需要我审批的侦查指令",
pageBs: "xywspdzczl", pageBs: "xywspdzczl",
revokeVisiable: false,
zlxx: "",
ckForm: {
fqyxm: "",
fqydwmc: "",
fqylxdh: "",
},
labelForm: {
xm: "申请发起人姓名",
dwmc: "申请发起人单位",
dh: "申请发起人电话",
},
params: {},
cxFormData: { cxFormData: {
zlwh: "", zlwh: "",
ywlx: "", ywlx: "",
...@@ -192,48 +245,57 @@ export default { ...@@ -192,48 +245,57 @@ export default {
this.$store.commit("user/SET_Menu", this.Menu); this.$store.commit("user/SET_Menu", this.Menu);
}, },
methods: { methods: {
add() { submitCKD(tgzt) {
this.$router.push("adjustRlqbxs"); this.$set(this.params, "spsftg", tgzt);
}, tjsp(this.params).then((res) => {
edit(scope) {
this.$router.push({
path: "adjustRlqbxs",
query: { xxzjbh: scope.row.xxzjbh },
});
},
dele(scope) {
console.log(scope);
this.$confirm("此操作将永久删除该文件, 是否继续?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
deleteKyxsxx({
xxzjbh: scope.row.xxzjbh,
}).then((res) => {
if (res.success && res.code == 200) { if (res.success && res.code == 200) {
this.$message({ this.$message.success("审批成功");
type: "success", this.revokeVisiable = false;
message: "删除成功", } else {
}); this.$message.error("审批失败");
this.$refs.rightContent.doQuery("yes");
} }
}); });
})
.catch(() => {
this.$message({
type: "info",
message: "已取消删除",
});
});
},
toInfor(scope) {
this.$router.push({
path: "/detailRlqbxs",
query: {
xxzjbh: scope.xxzjbh,
}, },
examine(scope) {
if (scope.row.ifsp == "0") {
this.$message.error("不可以审批此条消息");
return;
}
let params = new FormData();
let self = this;
params.append("zczlbh", scope.row.zczlbh);
this.$set(self.params, "zczlbh", scope.row.zczlbh);
let loading = self.$loading({
lock: true,
text: "正在设置...",
spinner: "el-icon-loading",
background: "rgba(255, 255, 255, 0.7)",
});
queryZlxqByZczlbh(params).then((res) => {
if (res.code == 200 && res.success) {
loading.close();
let result = res.data.tbYwZczl;
if (result.qqfqrxm) {
this.$set(self.ckForm, "fqyxm", result.qqfqrxm);
this.$set(self.ckForm, "fqydwmc", result.qqfqrdwmc);
this.$set(self.ckForm, "fqylxdh", result.qqfqrlxdh);
this.$set(self.labelForm, "xm", "申请发起人姓名");
this.$set(self.labelForm, "dwmc", "申请发起人单位");
this.$set(self.labelForm, "dh", "申请发起人电话");
this.$set(self.params, "sfqqzl", "1");
} else {
this.$set(self.ckForm, "fqyxm", result.zlfqrxm);
this.$set(self.ckForm, "fqydwmc", result.zlfqrdwmc);
this.$set(self.ckForm, "fqylxdh", result.zlfqrlxdh);
this.$set(self.labelForm, "xm", "指令发起人姓名");
this.$set(self.labelForm, "dwmc", "指令发起人单位");
this.$set(self.labelForm, "dh", "指令发起人电话");
this.$set(self.params, "sfqqzl", "0");
}
self.revokeVisiable = true;
} else {
this.$message.error("提取信息失败");
}
}); });
}, },
}, },
...@@ -289,4 +351,9 @@ export default { ...@@ -289,4 +351,9 @@ export default {
</style> </style>
<style scoped lang="scss"> <style scoped lang="scss">
@import "@/assets/styles/rightContent.scss"; @import "@/assets/styles/rightContent.scss";
.el-input {
/deep/ .el-input__inner {
color: #333;
}
}
</style> </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