Commit 71b01a2b by liyuhang19990520

人力情报线索

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