|
|
|
@ -111,6 +111,7 @@ |
|
|
|
<van-picker title="事项" |
|
|
|
:columns="data.item_columns" |
|
|
|
@confirm="itemConfirm" |
|
|
|
@change="itemChange" |
|
|
|
@cancel="gaCancel" |
|
|
|
/> |
|
|
|
</van-popup> |
|
|
|
@ -132,6 +133,7 @@ import {queryUserInfo} from '../../api/enforce' |
|
|
|
import { queryEnterpriseInfoList } from '../../api/enterprise' |
|
|
|
import { reactive, ref } from "vue"; |
|
|
|
import { getDict } from "../../api/Home"; |
|
|
|
import { queryLinkage, queryLinkageDictByValueAndParentId } from "../../api/linkage"; |
|
|
|
import {uploadFile} from "../../util/fileUpload"; |
|
|
|
//用户筛选弹窗 |
|
|
|
import UserPopup from './userFilter.vue'; |
|
|
|
@ -228,6 +230,9 @@ const itemConfirm = ({ selectedOptions }) => { |
|
|
|
data.showGA = false; |
|
|
|
data.showItem = false; |
|
|
|
}; |
|
|
|
const itemChange =({ selectedOptions }) => { |
|
|
|
getLinkageByParentIdToGA(selectedOptions[0].id); |
|
|
|
} |
|
|
|
const gaCancel = () => { |
|
|
|
data.showGA = false; |
|
|
|
data.showItem = false; |
|
|
|
@ -254,6 +259,42 @@ const submit = () =>{ |
|
|
|
console.log("登记失败") |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
const getLinkageByValueAndParentId = (value, parentId) => { |
|
|
|
// 查询检查要求字典信息 |
|
|
|
queryLinkageDictByValueAndParentId({"value":value, "parentId": parentId}, success => { |
|
|
|
getLinkageByParentIdToItem(success.id) |
|
|
|
},error=>{}); |
|
|
|
} |
|
|
|
|
|
|
|
const getLinkageByParentIdToItem = (parentId) => { |
|
|
|
// 查询检查要求字典信息 |
|
|
|
queryLinkage({"parentId": parentId}, success => { |
|
|
|
for(var i=0; i<success.length; i++) { |
|
|
|
data.item_columns.push({ text: success[i].title, value: success[i].value, id: success[i].id }) |
|
|
|
if (i==0) { |
|
|
|
data.checkItemText = success[i].title; |
|
|
|
submitData.checkItem = success[i].value; |
|
|
|
getLinkageByParentIdToGA(success[i].id); |
|
|
|
} |
|
|
|
} |
|
|
|
},error=>{}); |
|
|
|
} |
|
|
|
|
|
|
|
const getLinkageByParentIdToGA = (parentId) => { |
|
|
|
// 查询检查要求字典信息 |
|
|
|
data.ga_columns = []; |
|
|
|
queryLinkage({"parentId": parentId}, success => { |
|
|
|
for(var i=0; i<success.length; i++) { |
|
|
|
data.ga_columns.push({ text: success[i].title, value: success[i].value, id: success[i].id }) |
|
|
|
if (i==0) { |
|
|
|
data.checkRequireText = success[i].title; |
|
|
|
submitData.checkRequire = success[i].value; |
|
|
|
} |
|
|
|
} |
|
|
|
},error=>{}); |
|
|
|
} |
|
|
|
|
|
|
|
//初始化参数,获取扫码的企业统一信用编码 |
|
|
|
onMounted(() =>{ |
|
|
|
//查询当前登录人员信息 |
|
|
|
@ -265,19 +306,21 @@ onMounted(() =>{ |
|
|
|
submitData.lawEnforcementId = success.data.dept.deptId; |
|
|
|
},error=>{}); |
|
|
|
|
|
|
|
getLinkageByValueAndParentId("check_item", "100"); |
|
|
|
|
|
|
|
// 查询检查要求字典信息 |
|
|
|
getDict({"dictType": "checkRequire"}, success => { |
|
|
|
for(var i=0; i<success.data.length; i++) { |
|
|
|
data.ga_columns.push({ text: success.data[i].dictLabel, value: success.data[i].dictValue }) |
|
|
|
} |
|
|
|
},error=>{}); |
|
|
|
// getDict({"dictType": "checkRequire"}, success => { |
|
|
|
// for(var i=0; i<success.data.length; i++) { |
|
|
|
// data.ga_columns.push({ text: success.data[i].dictLabel, value: success.data[i].dictValue }) |
|
|
|
// } |
|
|
|
// },error=>{}); |
|
|
|
|
|
|
|
// 查询检查要求字典信息 |
|
|
|
getDict({"dictType": "checkItem"}, success => { |
|
|
|
for(var i=0; i<success.data.length; i++) { |
|
|
|
data.item_columns.push({ text: success.data[i].dictLabel, value: success.data[i].dictValue }) |
|
|
|
} |
|
|
|
},error=>{}); |
|
|
|
// getDict({"dictType": "checkItem"}, success => { |
|
|
|
// for(var i=0; i<success.data.length; i++) { |
|
|
|
// data.item_columns.push({ text: success.data[i].dictLabel, value: success.data[i].dictValue }) |
|
|
|
// } |
|
|
|
// },error=>{}); |
|
|
|
}) |
|
|
|
|
|
|
|
const reciveData = (item) =>{ |
|
|
|
|