Commit 63eccdcb by zhangzhijie

内蒙定制化开发,立案单位搜索条件变更为登记单位,根据用户等级获取用户unitcode

parent 84336e26
...@@ -554,7 +554,6 @@ export default { ...@@ -554,7 +554,6 @@ export default {
for (let i = 0; i < unitList.length; i++) { for (let i = 0; i < unitList.length; i++) {
if (unitList[i].id.indexOf(unitcode) == 0) { if (unitList[i].id.indexOf(unitcode) == 0) {
arr.push(unitList[i]); arr.push(unitList[i]);
break;
} }
} }
if (arr.length == 0) { if (arr.length == 0) {
...@@ -959,18 +958,28 @@ export default { ...@@ -959,18 +958,28 @@ export default {
} }
}); });
let unitcode = JSON.parse(sessionStorage.getItem("userInfo")).unitcode; let unitcode = JSON.parse(sessionStorage.getItem("userInfo")).unitcode;
let grade = JSON.parse(sessionStorage.getItem("userInfo")).grade;
if (this.pageBs == "queryAjNM" || this.pageBs == "checkAjbzInfo") { if (this.pageBs == "queryAjNM" || this.pageBs == "checkAjbzInfo") {
if (unitcode.substring(2) == '0000000000') { if ("T" == grade || "S" == grade) {
unitcode = unitcode.substring(0, 2); unitcode = unitcode.substring(0, 2);
} else if (unitcode.substring(4, 6) == "00") { } else if ("D" == grade) {
unitcode = unitcode.substring(0, 4) unitcode = unitcode.substring(0, 4);
} else if (unitcode.substring(6) == "000000") { } else if ("X" == grade) {
unitcode = unitcode.substring(0, 6) unitcode = unitcode.substring(0, 6);
} else if (unitcode.substring(8) == "0000") { } else if ("K" == grade) {
unitcode = unitcode.substring(0, 8) unitcode = unitcode.substring(0, 8);
} else if (unitcode.substring(10) == "00") {
unitcode = unitcode.substring(0, 10)
} }
/* if (unitcode.substring(2) == '0000000000') {
unitcode = unitcode.substring(0, 2);
} else if (unitcode.substring(4, 6) == "00") {
unitcode = unitcode.substring(0, 4)
} else if (unitcode.substring(6) == "000000") {
unitcode = unitcode.substring(0, 6)
} else if (unitcode.substring(8) == "0000") {
unitcode = unitcode.substring(0, 8)
} else if (unitcode.substring(10) == "00") {
unitcode = unitcode.substring(0, 10)
}*/
} }
if (this.pageBs == "queryAjNM" || this.pageBs == "checkAjbzInfo") { if (this.pageBs == "queryAjNM" || this.pageBs == "checkAjbzInfo") {
axios.get(`JsonData/CODE_UNITNM.json`).then((res) => { axios.get(`JsonData/CODE_UNITNM.json`).then((res) => {
......
...@@ -75,8 +75,8 @@ export default { ...@@ -75,8 +75,8 @@ export default {
// codeTree: 'CODE_AJLB' // codeTree: 'CODE_AJLB'
// }, // },
{ {
name: "立案单位", name: "信息登记单位",
id: "Ladw_gajgjgdms", id: "xxdjdwGajgjgdm",
type: "codeTreeDialog", type: "codeTreeDialog",
props: [], //字典弹框需要的字段 props: [], //字典弹框需要的字段
value: "", value: "",
...@@ -256,6 +256,11 @@ export default { ...@@ -256,6 +256,11 @@ export default {
width: "100", width: "100",
}, },
{ {
label: "信息登记单位名称",
prop: "xxdjDwGajgjgMc",
width: "300",
},
{
label: "立案单位名称", label: "立案单位名称",
prop: "ladwGajgjgdmMc", prop: "ladwGajgjgdmMc",
width: "300", width: "300",
......
...@@ -73,8 +73,8 @@ export default { ...@@ -73,8 +73,8 @@ export default {
// codeTree: 'CODE_AJLB' // codeTree: 'CODE_AJLB'
// }, // },
{ {
name: "立案单位", name: "信息登记单位",
id: "Ladw_gajgjgdms", id: "xxdjdwGajgjgdm",
type: "codeTreeDialog", type: "codeTreeDialog",
props: [], //字典弹框需要的字段 props: [], //字典弹框需要的字段
value: "", value: "",
...@@ -249,6 +249,11 @@ export default { ...@@ -249,6 +249,11 @@ export default {
width: "100", width: "100",
}, },
{ {
label: "信息登记单位名称",
prop: "xxdjDwGajgjgMc",
width: "300",
},
{
label: "立案单位名称", label: "立案单位名称",
prop: "ladwGajgjgdmMc", prop: "ladwGajgjgdmMc",
width: "300", width: "300",
......
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