Commit 71b01a2b by liyuhang19990520

人力情报线索

parent 6c8ae4aa
/* /*
* @Author: your name * @Author: your name
* @Date: 2021-09-01 10:46:56 * @Date: 2021-09-01 10:46:56
* @LastEditTime: 2021-09-08 10:10:12 * @LastEditTime: 2021-09-27 14:34:02
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: In User Settings Edit * @Description: In User Settings Edit
* @FilePath: \founder_vue\src\api\bkwpxx.js * @FilePath: \founder_vue\src\api\bkwpxx.js
...@@ -15,11 +15,11 @@ import base from "@/api/base"; ...@@ -15,11 +15,11 @@ import base from "@/api/base";
export const insertKyxs = params => export const insertKyxs = params =>
postform(`${base.alyIP}/rlqb/insertKyxs`, params); postform(`${base.alyIP}/rlqb/insertKyxs`, params);
//人力情报线索修改 //人力情报线索修改
export const updateZdxsxx = params => export const updateKyxsxx = params =>
postform(`${base.alyIP}/rlqb/updateKyxs`, params); postform(`${base.alyIP}/rlqb/updateKyxsxx`, params);
//人力情报线索删除 //人力情报线索删除
export const deleteKyxs = params => export const deleteKyxsxx = params =>
post(`${base.alyIP}/rlqb/deleteKyxsByxxzjbh`, params); post(`${base.alyIP}/rlqb/deleteKyxsxx`, params);
//人力情报线索回显/详情 //人力情报线索回显/详情
export const getKyxsByxxzjbh = params => export const getKyxsByxxzjbh = params =>
post(`${base.alyIP}/rlqb/getKyxsByxxzjbh`, params); post(`${base.alyIP}/rlqb/getKyxsByxxzjbh`, params);
......
...@@ -1036,6 +1036,7 @@ export default { ...@@ -1036,6 +1036,7 @@ export default {
default: () => {}, default: () => {},
}, },
propTitle: String, propTitle: String,
pageBs: String
}, },
data() { data() {
return { return {
...@@ -1980,7 +1981,7 @@ $-header-fontSize: 18px; ...@@ -1980,7 +1981,7 @@ $-header-fontSize: 18px;
} }
.addName { .addName {
display: inline-block; display: inline-block;
width: 148px; width: 100px;
text-align: right; text-align: right;
vertical-align: top; vertical-align: top;
font-size: 13px; font-size: 13px;
...@@ -1990,7 +1991,7 @@ $-header-fontSize: 18px; ...@@ -1990,7 +1991,7 @@ $-header-fontSize: 18px;
font-weight: 400; font-weight: 400;
} }
.addContent { .addContent {
width: calc(100% - 162px); width: calc(100% - 114px);
display: inline-block; display: inline-block;
background: #fef6ea; background: #fef6ea;
background: #fef6ea; background: #fef6ea;
...@@ -1999,6 +2000,7 @@ $-header-fontSize: 18px; ...@@ -1999,6 +2000,7 @@ $-header-fontSize: 18px;
border-radius: 4px; border-radius: 4px;
padding-top: 28px; padding-top: 28px;
margin: 24px 0 4px 0; margin: 24px 0 4px 0;
padding-bottom: 15px;
position: relative; position: relative;
.el-input, .el-input,
.el-select, .el-select,
......
/* /*
* @Author: your name * @Author: your name
* @Date: 2021-09-07 15:09:40 * @Date: 2021-09-07 15:09:40
* @LastEditTime: 2021-09-23 14:33:53 * @LastEditTime: 2021-09-27 14:31:07
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: In User Settings Edit * @Description: In User Settings Edit
* @FilePath: \founder_vue\src\utils\params.js * @FilePath: \founder_vue\src\utils\params.js
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
export const kysscj = [ export const kysscj = [
{ {
name: "线索状态:", name: "线索状态:",
id: "sfhgPdbz", id: "xsztdm",
type: "radio", type: "radio",
value: "0", value: "0",
placeholder: "请输入", placeholder: "请输入",
...@@ -70,6 +70,72 @@ export const kysscj = [ ...@@ -70,6 +70,72 @@ export const kysscj = [
placeholder: "请输入", placeholder: "请输入",
col: "2", col: "2",
}, },
{
name: "审批是否通过:",
id: "spsftg",
type: "text",
value: "",
placeholder: "请输入",
col: "2",
},
{
name: "省审批意见:",
id: "shengspyj",
type: "text",
value: "",
placeholder: "请输入",
col: "2",
},
{
name: "审批人姓名:",
id: "sprxm",
type: "text",
value: "",
placeholder: "请输入",
col: "2",
},
{
name: "审批人证件号码:",
id: "sprzjhm",
type: "text",
value: "",
placeholder: "请输入",
col: "2",
},
{
name: "审批人联系电话:",
id: "sprlxdh",
type: "text",
value: "",
placeholder: "请输入",
col: "2",
},
{
name: "审批单位代码:",
id: "spdwdm",
type: "codeTree",
codeTree: "QGCODE_UNIT",
codeOptions: [],
value: "",
placeholder: "请选择",
col: "2",
},
{
name: "审批单位名称:",
id: "spdwmc",
type: "text",
value: "",
placeholder: "请输入",
col: "2",
},
{
name: "审批时间:",
id: "spsj",
type: "dates",
value: "",
placeholder: "请输入",
col: "2",
},
] ]
//线索提供者 //线索提供者
export const xstgz = [ export const xstgz = [
...@@ -215,6 +281,33 @@ export const xstgz = [ ...@@ -215,6 +281,33 @@ export const xstgz = [
// 人员线索管理 // 人员线索管理
export const ryxsgl = [ export const ryxsgl = [
{ {
name: "姓名:",
id: "xm",
type: "text",
prop: 'checkEmpty',
value: "",
placeholder: "请输入",
col: "2",
},
{
name: "证件号码:",
id: "zjhm",
type: "text",
prop: 'checkEmpty',
value: "",
placeholder: "请输入",
col: "2",
},
{
name: "联系电话:",
id: "lxdh",
type: "text",
prop: 'checkEmpty',
value: "",
placeholder: "请输入",
col: "2",
},
{
name: "国籍:", name: "国籍:",
id: "gjdm", id: "gjdm",
type: "codeTree", type: "codeTree",
...@@ -354,7 +447,7 @@ export const jdcxsgl = [ ...@@ -354,7 +447,7 @@ export const jdcxsgl = [
col: "2", col: "2",
}, },
{ {
name: "非法营运判断标识:", name: "非法营运判断:",
id: "jsjdcFfyyPdbz", id: "jsjdcFfyyPdbz",
type: "codeTree", type: "codeTree",
codeTree: "CODE_IF", codeTree: "CODE_IF",
...@@ -459,9 +552,9 @@ export const jdcxsgl = [ ...@@ -459,9 +552,9 @@ export const jdcxsgl = [
}, },
{ {
name: "物权类别:", name: "物权类别:",
id: "jsjdcJdccsysdm", id: "jsjdcWqlbdm",
type: "codeTree", type: "codeTree",
codeTree: "CODE_YS", codeTree: "CODE_WQLB",
codeOptions: [], codeOptions: [],
value: "", value: "",
placeholder: "请选择", placeholder: "请选择",
...@@ -555,10 +648,10 @@ export const fjdcxsgl = [ ...@@ -555,10 +648,10 @@ export const fjdcxsgl = [
col: "2", col: "2",
}, },
{ {
name: "物品颜色:", name: "物权类别:",
id: "jsddfjdcWqlbdm", id: "jsddfjdcWqlbdm",
type: "codeTree", type: "codeTree",
codeTree: "CODE_YS", codeTree: "CODE_WQLB",
codeOptions: [], codeOptions: [],
value: "", value: "",
placeholder: "请选择", placeholder: "请选择",
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
<script> <script>
import formCompontent from "@c/form.vue"; import formCompontent from "@c/form.vue";
import { kysscj, xstgz, ryxsgl, jdcxsgl, fjdcxsgl } from "@/utils/params.js"; import { kysscj, xstgz, ryxsgl, jdcxsgl, fjdcxsgl } from "@/utils/params.js";
import { insertBbkwp, updateBbkwp, getBbkwpByxxzjbh } from "@/api/bkwpxx.js"; import { insertKyxs, updateKyxsxx, getKyxsByxxzjbh } from "@/api/rlqbxs.js";
export default { export default {
name: "addRlqbxs", name: "addRlqbxs",
components: { components: {
...@@ -27,28 +27,28 @@ export default { ...@@ -27,28 +27,28 @@ export default {
{ {
title: "可疑线索", title: "可疑线索",
id: 1, id: 1,
objStr: "", objStr: "kyxs",
index: 0, index: 0,
data: kysscj, data: kysscj,
}, },
{ {
title: "可疑线索", title: "线索提供者",
id: 10, id: 2,
objStr: "", objStr: "",
index: 20, index: 1,
data: [ data: [
{ {
name: "测试:", name: "线索提供者:",
col: "1", col: "1",
noshowMoreBtn: false, //是否显示添加按钮 noshowMoreBtn: false, //是否显示添加按钮
childrenAsAdd: [ childrenAsAdd: [
{ {
name: "测试:", name: "提供人:",
id: "test", id: "tgz",
flag: true, flag: true,
list: [ list: [
{ {
name: kysscj, name: xstgz,
}, },
], ],
iconClass: "el-icon-close", iconClass: "el-icon-close",
...@@ -58,32 +58,82 @@ export default { ...@@ -58,32 +58,82 @@ export default {
], ],
}, },
{ {
title: "线索提供者",
id: 2,
objStr: "",
index: 1,
data: xstgz,
},
{
title: "可疑人员", title: "可疑人员",
id: 3, id: 3,
objStr: "", objStr: "",
index: 2, index: 2,
data: ryxsgl, data: [
{
name: "可疑人员:",
col: "1",
noshowMoreBtn: false, //是否显示添加按钮
childrenAsAdd: [
{
name: "可疑人员:",
id: "ry",
flag: true,
list: [
{
name: ryxsgl,
},
],
iconClass: "el-icon-close",
},
],
},
],
}, },
{ {
title: "机动车线索管理", title: "机动车线索管理",
id: 4, id: 4,
objStr: "", objStr: "",
index: 3, index: 3,
data: jdcxsgl, data: [
{
name: "机动车线索管理:",
col: "1",
noshowMoreBtn: false, //是否显示添加按钮
childrenAsAdd: [
{
name: "可疑机动车:",
id: "jdc",
flag: true,
list: [
{
name: jdcxsgl,
},
],
iconClass: "el-icon-close",
},
],
},
],
}, },
{ {
title: "非机动车线索管理", title: "非机动车线索管理",
id: 5, id: 5,
objStr: "", objStr: "",
index: 4, index: 4,
data: fjdcxsgl, data: [
{
name: "非机动车线索管理:",
col: "1",
noshowMoreBtn: false, //是否显示添加按钮
childrenAsAdd: [
{
name: "可疑非机动车:",
id: "fjdc",
flag: true,
list: [
{
name: fjdcxsgl,
},
],
iconClass: "el-icon-close",
},
],
},
],
}, },
], ],
formLabelAlign: {}, formLabelAlign: {},
...@@ -119,36 +169,38 @@ export default { ...@@ -119,36 +169,38 @@ export default {
}, },
getshuju() { getshuju() {
var self = this; var self = this;
getBbkwpByxxzjbh({ getKyxsByxxzjbh({
xxzjbh: this.xxzjbh, xxzjbh: this.xxzjbh,
}).then((res) => { }).then((res) => {
var result = res.data.rows; var result = res.data.rows;
self.formField.forEach((fieldItem) => { self.formField.forEach((i) => {
if (fieldItem.data && fieldItem.data.length > 0) { console.log(i);
fieldItem.data.forEach((i) => { if (i.data && i.data.length > 0) {
if (i.type == "text" || i.type == "setValue") { i.data.forEach((j) => {
this.$set(this.formLabelAlign, i.id, result[i.id]); if (j.childrenAsAdd) {
j.childrenAsAdd.forEach((m) => {
self.$set(self.formLabelAlign, m.id, result[m.id] || []);
});
} else {
self.$set(self.formLabelAlign, j.id, result[i.objStr][j.id]);
} }
}); });
} }
this.$forceUpdate();
}); });
self.$set(self.formLabelAlign, "editing", true);
self.$forceUpdate(); self.$forceUpdate();
// this.isEmpty()
}); });
setTimeout(() => { setTimeout(() => {
self.loading = false; self.loading = false;
}, 1000); }, 1000);
}, },
addSubmit(params, loading) { addSubmit(params, loading) {
insertBbkwp(params).then((res) => { insertKyxs(params).then((res) => {
if (res.success && res.code == 200) { if (res.success && res.code == 200) {
this.$alert("保存成功!", "提示", { this.$alert("保存成功!", "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
type: "success", type: "success",
callback: () => { callback: () => {
this.$router.push("/queryBbkwpxx"); this.$router.push("/queryRlqbxs");
loading.close(); loading.close();
}, },
}); });
...@@ -159,13 +211,13 @@ export default { ...@@ -159,13 +211,13 @@ export default {
}, },
editSubmit(params, loading) { editSubmit(params, loading) {
params.append("xxzjbh", this.xxzjbh); params.append("xxzjbh", this.xxzjbh);
updateBbkwp(params).then((res) => { updateKyxsxx(params).then((res) => {
if (res.success && res.code == 200) { if (res.success && res.code == 200) {
this.$alert("修改成功!", "提示", { this.$alert("修改成功!", "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
type: "success", type: "success",
callback: () => { callback: () => {
this.$router.push("/queryBbkwpxx"); this.$router.push("/queryRlqbxs");
loading.close(); loading.close();
}, },
}); });
...@@ -179,7 +231,7 @@ export default { ...@@ -179,7 +231,7 @@ export default {
this.$store.commit("user/SET_Breadcrumb", this.Menu); this.$store.commit("user/SET_Breadcrumb", this.Menu);
if (this.$route.query.xxzjbh) { if (this.$route.query.xxzjbh) {
// this.$set(this.formField[0], "title", "修改被布控物品信息"); // this.$set(this.formField[0], "title", "修改被布控物品信息");
this.title = "人力情报线索修改" this.title = "人力情报线索修改";
this.xxzjbh = this.$route.query.xxzjbh; this.xxzjbh = this.$route.query.xxzjbh;
this.getshuju(); this.getshuju();
} }
......
...@@ -11,13 +11,14 @@ ...@@ -11,13 +11,14 @@
@edit="edit" @edit="edit"
@dele="dele" @dele="dele"
@toInfor="toInfor" @toInfor="toInfor"
ref="rightContent"
></right-content> ></right-content>
</div> </div>
</template> </template>
<script> <script>
import rightContent from "@c/ptCxForm_components.vue"; import rightContent from "@c/ptCxForm_components.vue";
import { deleteKyxs } from "@/api/rlqbxs.js"; import { deleteKyxsxx } from "@/api/rlqbxs.js";
export default { export default {
name: "rlqbxsxx", name: "rlqbxsxx",
components: { components: {
...@@ -141,7 +142,7 @@ export default { ...@@ -141,7 +142,7 @@ export default {
type: "warning", type: "warning",
}) })
.then(() => { .then(() => {
deleteKyxs({ deleteKyxsxx({
xxzjbh: scope.row.xxzjbh, xxzjbh: scope.row.xxzjbh,
}).then((res) => { }).then((res) => {
if (res.success && res.code == 200) { if (res.success && res.code == 200) {
......
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