Commit 63eccdcb by zhangzhijie

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

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