Commit a678e22a by gao_yingdong

资金流

parent eb7c86eb
......@@ -7,7 +7,7 @@ export const getXsbh = params =>
//新增团伙
export const addThxs = params =>
postform(`${base.alyIP}/thajxs/addThxs`, params);
postform(`${base.alyIP}/thajxs/addThxs`, params);
//新增附件
export const addXsfj = params =>
......@@ -19,13 +19,24 @@ export const getThxsByZjbh = params =>
//团伙线索信息编辑
export const updateThxs = params =>
postform(`${base.alyIP}/thajxs/updateThxs`, params);
postform(`${base.alyIP}/thajxs/updateThxs`, params);
//团伙线索信息详情
export const delThxs = params =>
post(`${base.alyIP}/thajxs/delThxs`, params);
// 2.16 资金 新增任务
export const insertJtrw = params =>
post(`${base.alyIP}/ztypxx/insertJtrw`, params);
//2.18 资金 上传资金excle表
export const uploadFile = params =>
postform(`${base.alyIP}/ztypxx/uploadFile`, params);
// 2查询最新资金表的数据
export const selectZxzjbList = params =>
post(`${base.alyIP}/ztypxx/selectZxzjbList`, params);
......@@ -348,16 +348,23 @@
pageBs != 'wfzdzczl' &&
pageBs != 'qjgnsyrz' &&
pageBs != 'queryCheckBj' &&
pageBs != 'queryZj' &&
pageBs != 'queryWl' &&
pageBs != 'bjzycx' &&
pageBs != 'yhzyh' &&
pageBs != 'queryDx' &&
pageBs != 'queryZj' &&
pageBs != 'sqqxgl'
"
>
<i class="el-icon-plus"></i> 新增
</div>
<div
class="flTtitle Add"
@click="adds"
v-if="pageASs == 'queryZj'"
>
<i class="el-icon-plus"></i> 新增
</div>
<el-button
type="primary"
size="mini"
......@@ -504,7 +511,32 @@
size="small"
v-if="listMode != 2"
@selection-change="handleSelectionChange"
@expand-change="rowExpand"
>
<el-table-column type="expand" v-if="pageASs == 'queryZj'">
<template slot-scope="props">
<el-table
v-loading="loadingZxzjlList"
:data="tableData1"
stripe
style="width: 100%"
>
<el-table-column align="center" prop="bfkh" label="本方卡号">
</el-table-column>
<el-table-column align="center" prop="bfzhmc" label="账号名称">
</el-table-column>
<el-table-column align="center" prop="zhye" label="余额">
</el-table-column>
<el-table-column align="center" label="操作">
<template slot-scope="scope">
<el-button type="success" @click="sprops(scope)">
可视化分析
</el-button>
</template>
</el-table-column>
</el-table>
</template>
</el-table-column>
<el-table-column
align="center"
label="操作"
......@@ -854,7 +886,13 @@
<el-table-column
align="center"
label="操作"
:width="pageBs == 'zdxxgl' || pageBs == 'gzrygl' ? '460' : '200' || pageBs == 'queryHbyp' ? '500' : '200'"
:width="
pageBs == 'zdxxgl' || pageBs == 'gzrygl'
? '460'
: '200' || pageBs == 'queryHbyp'
? '500'
: '200'
"
:fixed="pageBs == 'rySp' ? 'right' : false"
v-if="
!(
......@@ -878,9 +916,9 @@
pageBs == 'wscdajtj' ||
pageBs == 'jszls' ||
pageBs == 'queryCheckBj' ||
pageBs == 'queryZj' ||
pageBs == 'queryWl' ||
pageBs == 'queryDna' ||
pageBs == 'queryZj' ||
pageBs == 'queryZw' ||
pageBs == 'wfqdzczl' ||
pageBs == 'xywspdzczl' ||
......@@ -1028,7 +1066,7 @@
v-if="pageBs == 'queryRlqbxsSH'"
>审核</span
>
<!-- <span
<!-- <span
@click="$emit('qxfp', scope)"
class="dele"
v-if="pageBs == 'sqqxgl'"
......@@ -1209,7 +1247,24 @@
v-if="tableOperation"
:width="tableOperationWidth"
align="center"
label="操作">
label="操作"
>
<template slot-scope="scope">
<slot name="btnGroup" :scope="scope"></slot>
</template>
</el-table-column>
<el-table-column
v-if="pageASs == 'queryZj'"
:width="
pageBs == 'zdxxgl' || pageBs == 'gzrygl'
? '460'
: '200' || pageBs == 'queryHbyp'
? '500'
: '200'
"
align="center"
label="操作"
>
<template slot-scope="scope">
<slot name="btnGroup" :scope="scope"></slot>
</template>
......@@ -1386,16 +1441,18 @@ export default {
LazySelectTreeDialog,
},
props: {
tableOperation:{
type:Boolean,
default:() => false
tableOperation: {
type: Boolean,
default: () => false,
},
tableOperationWidth:{
type:Number,
default:() => 100
tableOperationWidth: {
type: Number,
default: () => 100,
},
pageASs: String,
pageBs: String,
pageBt: String,
loadingZxzjlList: Boolean,
cxQueryField: {
type: Array,
default: () => [],
......@@ -1409,10 +1466,14 @@ export default {
cxUrl: String,
header: String,
pageFlag: String,
listOperation:{
listOperation: {
type: Array,
default: () => [],
}, //信息列表操作按钮
tableData1: {
type: Array,
default: () => [],
}, //信息列表操作按钮
},
},
data() {
return {
......@@ -1509,6 +1570,9 @@ export default {
};
},
methods: {
rowExpand(row, expandedRows) {
this.$emit("rowExpand", row);
},
switchingConditions() {
debugger;
this.toggleZd = !this.toggleZd;
......@@ -1777,6 +1841,9 @@ export default {
add() {
this.$emit("add");
},
adds() {
this.$emit("adds");
},
toInfor(data) {
this.$emit("toInfor", data);
},
......@@ -1908,6 +1975,9 @@ export default {
this.doQuery("yes");
}
},
sprops(scope) {
this.$emit("sprops", scope);
},
doQuery(flag) {
this.showLoading();
var jsonStr = [];
......
......@@ -7,15 +7,76 @@
:cxQueryField="cxQueryField"
:cxDefaultFormThead="cxDefaultFormThead"
:cxUrl="cxUrl"
:tableData1="tableData1"
ref="rightContent"
@toInfor="toInfor"
></right-content>
:pageASs="pageASs"
@rowExpand="rowExpand"
@adds="adds"
@sprops="sprops"
:loadingZxzjlList="loadingZxzjlList"
>
<template #btnGroup="scope">
<el-upload
class="upload-demo"
ref="upload"
action="/"
:on-change="handleChange"
:on-remove="handleRemove"
:file-list="fileList"
:auto-upload="false"
>
<el-button slot="trigger" size="small" type="primary"
>选取文件</el-button
>
<el-button
style="margin-left: 10px"
size="small"
type="primary"
@click="submitUpload(scope.scope)"
>上传</el-button
>
<div slot="tip" class="el-upload__tip">只能上传xls文件</div>
</el-upload>
</template>
</right-content>
<el-dialog
title="新增资金流转"
:visible.sync="dialogVisible"
width="40%"
center
>
<div style="margin: 20px 0 0 0">
<el-form :inline="true" :model="examineInfo" class="demo-form-inline">
<el-row>
<el-col :span="20" :offset="2">
<el-form-item label="任务名称:" style="width:100%">
<el-input
type="text"
v-model="examineInfo.zwmc"
:autosize="{ minRows: 3 }"
style="width: 300px"
placeholder="请输入"
></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
<span slot="footer" class="dialog-footer">
<el-button @click="dialogVisible = false">取 消</el-button>
<el-button type="primary" @click="addDb">确 定</el-button>
</span>
</el-dialog>
</div>
</template>
<script>
import rightContent from "@c/ptCxForm_components.vue";
import { delThxs } from "@/api/yzzfzxsyp/thxs.js";
import {
insertJtrw,
uploadFile,
selectZxzjbList,
} from "@/api/yzzfzxsyp/thxs.js";
export default {
name: "queryZj",
components: {
......@@ -23,76 +84,57 @@ export default {
},
data() {
return {
xls: {},
loadingZxzjlList: false,
tableData1: [],
fileList: [],
dialogVisible: false,
examineInfo: {
zwmc: "",
},
header: "主题研判",
pageBs: "queryZj",
pageASs: "queryZj",
cxFormData: {
limit: 10,
page: 1,
fsrzzzh: "",
fsrsfzh: "",
jsrzzzh: "",
jsrzzzh: "",
jsrsfz: "",
zwmc: "",
rwkssj: "",
rwjssj: "",
},
cxQueryField: [
{
name: "发送人账号",
id: "fsrzzzh",
type: "text",
value: "",
placeholder: "",
col: "3",
},
{
name: "发送人身份证",
id: "fsrsfzh",
type: "text",
value: "",
placeholder: "",
col: "3",
},
{
name: "接收人账号",
id: "jsrzzzh",
name: "任务名称",
id: "zwmc",
type: "text",
value: "",
placeholder: "",
col: "3",
},
{
name: "接收人身份证",
id: "jsrsfz",
type: "text",
name: "任务时间",
id: "rwkssj",
id2: "rwjssj",
type: "zdyDate",
value: "",
placeholder: "",
col: "3",
},
],
cxDefaultFormThead: [
{
label: "发送人账号",
prop: "fsrzzzh",
toInfor: true,
},
{
label: "发送人姓名",
prop: "fsrxm",
},
{
label: "发送人身份证",
prop: "fsrsfzh",
label: "任务名称",
prop: "zwmc",
},
{
label: "发送银行",
prop: "fsyh",
label: "数量",
prop: "wjzs",
},
{
label: "备注",
prop: "bz",
label: "任务时间",
prop: "djsj",
},
],
cxUrl: "/ztypxx/selectZjlxx",
cxUrl: "/ztypxx/selectJtrwList",
Menu: [
{
id: "queryZj",
......@@ -136,14 +178,7 @@ export default {
className: "iconfont icongongnengfuwu",
hasChildren: false,
},
{
id: "queryQt",
label: "群体研判信息管理",
index: "queryQt",
newAuth: "M01",
className: "iconfont icongongnengfuwu",
hasChildren: false,
},
{
id: "argxfx",
label: "案人关系分析",
......@@ -194,18 +229,93 @@ export default {
// debugger;
},
methods: {
toInfor(data) {
rowExpand(row) {
debugger;
this.tableData1 = [];
this.loadingZxzjlList = true;
selectZxzjbList({
ssrwbh: row.xxzjbh,
}).then((res) => {
if (res.code == 200) {
this.tableData1 = res.data.rows;
this.loadingZxzjlList = false;
}
});
},
submitUpload(scope) {
var params = new FormData();
params.append("files", this.xls);
params.append("xxzjbh", scope.row.xxzjbh);
uploadFile(params).then((res) => {
if (res.code == 200) {
this.$message.success("上传成功!");
this.fileList = [];
this.$refs.rightContent.doQuery("yes");
} else {
this.$message.error("上传失败!");
}
});
},
handleChange(file, fileList) {
debugger;
if (fileList.length < 3) {
var index = file.name.lastIndexOf(".");
const isJPG = /^.*\.(xls)$/i.test(file.name.substring(index));
if (isJPG) {
this.xls = file.raw;
} else {
fileList.forEach((item, index) => {
if (file.raw.uid == item.uid) {
fileList.splice(index, 1);
}
});
this.$message.error("请上传正确的文件格式!");
}
} else {
fileList.forEach((item, index) => {
if (file.raw.uid == item.uid) {
fileList.splice(index, 1);
}
});
this.$message.error("当前只能上传两个xls文件!");
}
},
handleRemove(file, fileList) {
debugger;
console.log(file, fileList);
},
handlePreview(file) {
debugger;
console.log(file);
},
adds() {
this.dialogVisible = true;
},
addDb() {
insertJtrw(this.examineInfo).then((res) => {
if (res.success && res.code == 200) {
this.$message.success("保存成功");
this.dialogVisible = false;
this.$refs.rightContent.doQuery("yes");
} else {
this.$message.error("保存失败");
}
});
},
sprops(data) {
debugger;
let params = {
yhkh: data.fsrzzzh,
bfkh: data.row.bfkh,
ssrwbh: data.row.ssrwbh,
};
let obj = {
childrenXhrStr: "/apialy/ztypxx/selectBySfz",
childrenXhrStr: "/apialy/ztypxx/selectzxBySfz",
photoXhrStr: null,
params: params,
nodedata: {
type: "zjl",
id: 0,
name: data.fsrzzzh,
name: data.row.bfkh,
children: true,
},
nodeClickBoo: false,
......@@ -214,7 +324,7 @@ export default {
this.$router.pushToTab({
path: "/ypEcharts",
query: {
key: data.fsrzzzh,
key: data.row.bfkh,
title: "资金流分析",
},
});
......
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