标准合规评估带入标准

This commit is contained in:
宋伟佳
2021-11-26 15:15:57 +08:00
parent 9c05c6fd5d
commit 1e69ab4faf
2 changed files with 80 additions and 6 deletions
@@ -25,6 +25,22 @@
> >
<el-row :gutter="24"> <el-row :gutter="24">
<el-col :span="24"> <el-col :span="24">
<el-form-item label="分解单来源" class="add-form-item form-item-disabled">
<el-select
@change="fileTypeChange"
v-model="listForm.fileType"
placeholder="请选择"
filterable
>
<el-option
v-for="item in decomposeOptions"
:value="item.attrField"
:key="item.id"
:label="item.attrName"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item label="选择标准" prop="orgName" class="add-form-item form-item-disabled"> <el-form-item label="选择标准" prop="orgName" class="add-form-item form-item-disabled">
<el-button size="mini" type="primary" style="margin-left: 10px;" @click="choiceShow">选择已拆分标准</el-button> <el-button size="mini" type="primary" style="margin-left: 10px;" @click="choiceShow">选择已拆分标准</el-button>
</el-form-item> </el-form-item>
@@ -522,7 +538,7 @@ export default {
// 查询相关参数 // 查询相关参数
searching: false, searching: false,
commentText:'', commentText:'',
fileType: 'FBGBJBD', fileType: '',
standardSearch: { standardSearch: {
standType: "", standType: "",
standName: "" standName: ""
@@ -531,6 +547,7 @@ export default {
productLine: '', productLine: '',
uname: '', uname: '',
}, },
decomposeOptions: [], //分解单来源数据
standardTypeOptions: [ standardTypeOptions: [
{ {
value: "INLAND", value: "INLAND",
@@ -717,7 +734,12 @@ export default {
this.standardSearch.standType = type; this.standardSearch.standType = type;
}, },
choiceShow() { choiceShow() {
this.ListModel = true; if(!this.fileType){
this.$message.warning('请先选择分解单来源')
}else{
this.getStandData();
this.ListModel = true;
}
}, },
drawerCheck(data) { drawerCheck(data) {
var getlist = this.$refs.tree.getCheckedNodes().concat(this.$refs.tree.getHalfCheckedNodes()); var getlist = this.$refs.tree.getCheckedNodes().concat(this.$refs.tree.getHalfCheckedNodes());
@@ -1002,6 +1024,9 @@ export default {
this.page = 1; this.page = 1;
this.getStandData(); this.getStandData();
}, },
fileTypeChange(type){
this.fileType = type
},
//获取标准数据 //获取标准数据
getStandData() { getStandData() {
this.$http.post("SarStandItems/sar-stand-items/findStand", { this.$http.post("SarStandItems/sar-stand-items/findStand", {
@@ -1050,10 +1075,19 @@ export default {
this.standStateOptions = res.data.WBZTCLASS; // 文本状态 this.standStateOptions = res.data.WBZTCLASS; // 文本状态
this.setMap(this.standStateOptions); this.setMap(this.standStateOptions);
}); });
//查找分解单来源数据
this.$http.get('lawss/sarStandAttrDetails/getListData',{},{
_this: this
}, res => {
res.data.forEach(item => {
if(item.sarType === 'STAND' || item.sarType === 'INLAND_STAND' || item.sarType === 'FOREIGN_STAND'){
this.decomposeOptions.push(item)
}
})
})
this.getData(); this.getData();
this.getTree(); this.getTree();
this.getProductData(); this.getProductData();
this.getStandData();
} }
}; };
@@ -25,6 +25,22 @@
> >
<el-row :gutter="24"> <el-row :gutter="24">
<el-col :span="24"> <el-col :span="24">
<el-form-item label="分解单来源" class="add-form-item form-item-disabled">
<el-select
@change="fileTypeChange"
v-model="listForm.fileType"
placeholder="请选择"
filterable
>
<el-option
v-for="item in decomposeOptions"
:value="item.attrField"
:key="item.id"
:label="item.attrName"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item label="选择标准" prop="orgName" class="add-form-item form-item-disabled"> <el-form-item label="选择标准" prop="orgName" class="add-form-item form-item-disabled">
<el-button size="mini" type="primary" style="margin-left: 10px;" @click="choiceShow">选择已拆分标准</el-button> <el-button size="mini" type="primary" style="margin-left: 10px;" @click="choiceShow">选择已拆分标准</el-button>
</el-form-item> </el-form-item>
@@ -261,6 +277,7 @@
custom-class="demo-drawer" custom-class="demo-drawer"
> >
<div class="demo-drawer-content"> <div class="demo-drawer-content">
<loading :loading="tableLoading">数据获取中</loading>
<div style="position: absolute;bottom: 48px;top:60px;left: 0;right: 0"> <div style="position: absolute;bottom: 48px;top:60px;left: 0;right: 0">
<div style="position: absolute;bottom: 55px;top: 0;right: 0;left: 0"> <div style="position: absolute;bottom: 55px;top: 0;right: 0;left: 0">
<div class="left"> <div class="left">
@@ -500,6 +517,7 @@ import ProcessHeader from "../../components/ProcessHeader";
import ProcessFooter from "../../components/ProcessFooter"; import ProcessFooter from "../../components/ProcessFooter";
import ProcessTitle from "../../components/ProcessTitle"; import ProcessTitle from "../../components/ProcessTitle";
import { saveTaskFirst } from "api/process"; import { saveTaskFirst } from "api/process";
import file from "@/pages/knowledgeGraph/components/file";
export default { export default {
name: "xmpgStep1", name: "xmpgStep1",
@@ -516,6 +534,7 @@ export default {
satisfyFlag: true, satisfyFlag: true,
active: "1", active: "1",
standModel: false, standModel: false,
tableLoading: false,
sarAccessListDatas: [], sarAccessListDatas: [],
productData: [], //添加抽屉的数据 productData: [], //添加抽屉的数据
standList: [], //新添加的标准 standList: [], //新添加的标准
@@ -524,7 +543,7 @@ export default {
drawerTitle: "", //drawer标题 drawerTitle: "", //drawer标题
// 查询相关参数 // 查询相关参数
searching: false, searching: false,
fileType: "FBGBJBD", fileType: "",
projectSearch: { projectSearch: {
productLine: '', productLine: '',
uname: '', uname: '',
@@ -533,6 +552,7 @@ export default {
standType: "", standType: "",
standName: "" standName: ""
}, },
decomposeOptions: [], //分解单数据
standardTypeOptions: [ standardTypeOptions: [
{ {
value: "INLAND", value: "INLAND",
@@ -710,7 +730,13 @@ export default {
this.standardSearch.standType = type; this.standardSearch.standType = type;
}, },
choiceShow() { choiceShow() {
this.ListModel = true; if(!this.fileType){
this.$message.warning('请先选择分解单来源')
}else{
this.getStandData();
this.ListModel = true;
}
}, },
drawerCheck(data) { drawerCheck(data) {
var getlist = this.$refs.tree.getCheckedNodes().concat(this.$refs.tree.getHalfCheckedNodes()); var getlist = this.$refs.tree.getCheckedNodes().concat(this.$refs.tree.getHalfCheckedNodes());
@@ -999,8 +1025,12 @@ export default {
this.page = 1; this.page = 1;
this.getStandData(); this.getStandData();
}, },
fileTypeChange(type){
this.fileType = type
},
//获取标准数据 //获取标准数据
getStandData() { getStandData() {
this.tableLoading = true
this.$http.post("SarStandItems/sar-stand-items/findStand", { this.$http.post("SarStandItems/sar-stand-items/findStand", {
page: this.page, page: this.page,
size: this.pageSize, size: this.pageSize,
@@ -1011,6 +1041,7 @@ export default {
}, res => { }, res => {
this.sarAccessListDatas = res.records; this.sarAccessListDatas = res.records;
this.total = res.total; this.total = res.total;
this.tableLoading = false
}, e => { }, e => {
}); });
@@ -1047,9 +1078,18 @@ export default {
this.standStateOptions = res.data.WBZTCLASS; // 文本状态 this.standStateOptions = res.data.WBZTCLASS; // 文本状态
this.setMap(this.standStateOptions); this.setMap(this.standStateOptions);
}); });
//查找分解单来源数据
this.$http.get('lawss/sarStandAttrDetails/getListData',{},{
_this: this
}, res => {
res.data.forEach(item => {
if(item.sarType === 'STAND' || item.sarType === 'INLAND_STAND' || item.sarType === 'FOREIGN_STAND'){
this.decomposeOptions.push(item)
}
})
})
this.getTree(); this.getTree();
this.getProductData(); this.getProductData();
this.getStandData();
} }
}; };