diff --git a/src/pages/processCenter/pages/creatProcess/xmpg/step1-1.vue b/src/pages/processCenter/pages/creatProcess/xmpg/step1-1.vue index fdc53a326..41fe2f200 100644 --- a/src/pages/processCenter/pages/creatProcess/xmpg/step1-1.vue +++ b/src/pages/processCenter/pages/creatProcess/xmpg/step1-1.vue @@ -25,6 +25,22 @@ > + + + + + + 选择已拆分标准 @@ -522,7 +538,7 @@ export default { // 查询相关参数 searching: false, commentText:'', - fileType: 'FBGBJBD', + fileType: '', standardSearch: { standType: "", standName: "" @@ -531,6 +547,7 @@ export default { productLine: '', uname: '', }, + decomposeOptions: [], //分解单来源数据 standardTypeOptions: [ { value: "INLAND", @@ -717,7 +734,12 @@ export default { this.standardSearch.standType = type; }, choiceShow() { - this.ListModel = true; + if(!this.fileType){ + this.$message.warning('请先选择分解单来源') + }else{ + this.getStandData(); + this.ListModel = true; + } }, drawerCheck(data) { var getlist = this.$refs.tree.getCheckedNodes().concat(this.$refs.tree.getHalfCheckedNodes()); @@ -1002,6 +1024,9 @@ export default { this.page = 1; this.getStandData(); }, + fileTypeChange(type){ + this.fileType = type + }, //获取标准数据 getStandData() { this.$http.post("SarStandItems/sar-stand-items/findStand", { @@ -1050,10 +1075,19 @@ export default { this.standStateOptions = res.data.WBZTCLASS; // 文本状态 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.getTree(); this.getProductData(); - this.getStandData(); } }; diff --git a/src/pages/processCenter/pages/creatProcess/xmpg/step1.vue b/src/pages/processCenter/pages/creatProcess/xmpg/step1.vue index 63b699a47..7767dd3a7 100644 --- a/src/pages/processCenter/pages/creatProcess/xmpg/step1.vue +++ b/src/pages/processCenter/pages/creatProcess/xmpg/step1.vue @@ -25,6 +25,22 @@ > + + + + + + 选择已拆分标准 @@ -261,6 +277,7 @@ custom-class="demo-drawer" >
+ 数据获取中
@@ -500,6 +517,7 @@ import ProcessHeader from "../../components/ProcessHeader"; import ProcessFooter from "../../components/ProcessFooter"; import ProcessTitle from "../../components/ProcessTitle"; import { saveTaskFirst } from "api/process"; +import file from "@/pages/knowledgeGraph/components/file"; export default { name: "xmpgStep1", @@ -516,6 +534,7 @@ export default { satisfyFlag: true, active: "1", standModel: false, + tableLoading: false, sarAccessListDatas: [], productData: [], //添加抽屉的数据 standList: [], //新添加的标准 @@ -524,7 +543,7 @@ export default { drawerTitle: "", //drawer标题 // 查询相关参数 searching: false, - fileType: "FBGBJBD", + fileType: "", projectSearch: { productLine: '', uname: '', @@ -533,6 +552,7 @@ export default { standType: "", standName: "" }, + decomposeOptions: [], //分解单数据 standardTypeOptions: [ { value: "INLAND", @@ -710,7 +730,13 @@ export default { this.standardSearch.standType = type; }, choiceShow() { - this.ListModel = true; + if(!this.fileType){ + this.$message.warning('请先选择分解单来源') + }else{ + this.getStandData(); + this.ListModel = true; + } + }, drawerCheck(data) { var getlist = this.$refs.tree.getCheckedNodes().concat(this.$refs.tree.getHalfCheckedNodes()); @@ -999,8 +1025,12 @@ export default { this.page = 1; this.getStandData(); }, + fileTypeChange(type){ + this.fileType = type + }, //获取标准数据 getStandData() { + this.tableLoading = true this.$http.post("SarStandItems/sar-stand-items/findStand", { page: this.page, size: this.pageSize, @@ -1011,6 +1041,7 @@ export default { }, res => { this.sarAccessListDatas = res.records; this.total = res.total; + this.tableLoading = false }, e => { }); @@ -1047,9 +1078,18 @@ export default { this.standStateOptions = res.data.WBZTCLASS; // 文本状态 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.getProductData(); - this.getStandData(); } };