项目合规评估-项目,流程发起界面,将数据保存至草稿,从草稿进入 分解单来源显示不对Bug修改

This commit is contained in:
zhaoxianhui
2022-07-05 11:30:14 +08:00
parent c648deba74
commit 0c86bdee23
@@ -235,6 +235,7 @@
@submit="handleSubmit" @submit="handleSubmit"
> >
</ProcessFooter> </ProcessFooter>
<loading :loading="loading">数据获取中</loading>
<!-- 选择项目抽屉--> <!-- 选择项目抽屉-->
<el-drawer <el-drawer
title="选择项目" title="选择项目"
@@ -461,6 +462,7 @@ export default {
return time.getTime() < Date.now() - 8.64e7; return time.getTime() < Date.now() - 8.64e7;
}, },
}, },
loading:false,
managementHostName: [], //管理主体名称下拉框 managementHostName: [], //管理主体名称下拉框
developmentHostName: [], //开发主体名称下拉框 developmentHostName: [], //开发主体名称下拉框
categoryName: [], //项目细分类下拉框 categoryName: [], //项目细分类下拉框
@@ -474,12 +476,7 @@ export default {
saveLoading: false, saveLoading: false,
fileType: '', fileType: '',
bpnId: '', bpnId: '',
decomposeOptions: [ decomposeOptions: [], //分解单来源数据
{
value: "BDR",
label: '不带入'
}
], //分解单来源数据
//表单的数据 //表单的数据
listForm: { listForm: {
projectNumber: "", //项目编号 projectNumber: "", //项目编号
@@ -576,16 +573,16 @@ export default {
}); });
}, },
typeList(row){ typeList(row){
// this.decomposeOptions = [] this.decomposeOptions = []
this.$http.get("SarStandItems/sar-stand-items/getFileType", { this.$http.get("SarStandItems/sar-stand-items/getFileType", {
standId: row.standId standId: row.standId
}, {}, res => { }, {}, res => {
// this.decomposeOptions.push( this.decomposeOptions.push(
// { {
// value: "BDR", value: "BDR",
// label: '不带入' label: '不带入'
// } }
// ) )
res.data.forEach(item => { res.data.forEach(item => {
this.decomposeOptions.push(item) this.decomposeOptions.push(item)
}) })
@@ -951,15 +948,14 @@ export default {
this.dataList = mes.form.dataList; this.dataList = mes.form.dataList;
this.roleForm = mes.roleForm; this.roleForm = mes.roleForm;
this.commentText = mes.commentText; this.commentText = mes.commentText;
this.loading=false
}); });
}, },
}, },
mounted() { mounted() {
this.loading=true
this.optionsChange() this.optionsChange()
this.bpnId = this.$route.query.bpnId this.bpnId = this.$route.query.bpnId
if (this.bpnId !== undefined) {
this.getData()
}
this.getProjectData(); this.getProjectData();
// 查询各下拉框数据 // 查询各下拉框数据
this.$http.get("sys/dictype/getDicTypeListCode", "", { this.$http.get("sys/dictype/getDicTypeListCode", "", {
@@ -970,21 +966,28 @@ export default {
}, e => { }, e => {
}); });
//查找分解单来源数据 //查找分解单来源数据
// this.$http.get('lawss/sarStandAttrDetails/getListData',{},{ this.$http.get('lawss/sarStandAttrDetails/getListData',{},{
// _this: this _this: this
// }, res => { }, res => {
// this.decomposeOptions.push( this.decomposeOptions.push(
// { {
// attrField: 'BDR', value: 'BDR',
// attrName: '不带入' label: '不带入'
// } }
// ) )
// res.data.forEach(item => { res.data.forEach(item => {
// if(item.sarType === 'STAND' || item.sarType === 'INLAND_STAND' || item.sarType === 'FOREIGN_STAND'){ if(item.sarType === 'STAND' || item.sarType === 'INLAND_STAND' || item.sarType === 'FOREIGN_STAND'){
// this.decomposeOptions.push(item) let itemTemp={
// } value:item.attrField,
// }) label:item.attrName
// }) }
this.decomposeOptions.push(itemTemp)
}
})
if (this.bpnId !== undefined) {
this.getData()
}
})
} }
}; };
</script> </script>