Commit b4b0bfac authored by tianhongyang's avatar tianhongyang

Merge branch 'V20231129-中建一局二公司' of http://192.168.60.201/root/dsk-operate-sys...

Merge branch 'V20231129-中建一局二公司' of http://192.168.60.201/root/dsk-operate-sys into V20231129-中建一局二公司
parents 1aadf323 069ee2b7
......@@ -80,7 +80,7 @@ public class DataAnalysisComponent {
item.setCbProjectFileId(file.getId());
}).collect(Collectors.toList());
if (quantitySummaryList.isEmpty()) {
throw new ServiceException("表格中不存在有效数据数据!");
throw new ServiceException("表格中不存在有效数据!");
}
transactionTemplate.execute(status -> {
try {
......
......@@ -47,7 +47,7 @@
</div>
</div>
<div class="upload-project">
<el-form :model="uploaddata" label-width="200px" :rules="uprules" label-position="right" :inline="true">
<el-form :model="uploaddata" label-width="200px" :rules="uprules" ref="ruleForm" label-position="right" :inline="true" :show-message="false">
<el-row>
<el-form-item label="直接费成本" prop="zjfcb">
<div class="filelist">
......@@ -220,11 +220,23 @@
</div>
<el-divider></el-divider>
<div class="pro-btns">
<el-button type="primary" size="small" >导入数据</el-button>
<el-button type="primary" size="small" @click="importdata">导入数据</el-button>
<el-button size="small" @click="goback">返回</el-button>
</div>
</div>
<el-dialog title="提示" :visible.sync="visible" width="480px" custom-class='dialog-supplier'>
<el-divider></el-divider>
<div class="protypes">
<div class="ck" v-if="issub">解析成本数据过程需3~10分钟,稍后可到项目列表查看导入结果。</div>
<div class="ck" v-else>请将各阶段成本数据全部上传后,再次点击导入数据按钮。</div>
</div>
<el-divider></el-divider>
<div style="padding: 16px 20px 24px;text-align: right">
<el-button type="primary" size="small" @click="goback" v-if="issub">返回项目列表</el-button>
<el-button type="primary" size="small" @click="visible = false" v-else>我知道了</el-button>
</div>
</el-dialog>
</div>
</template>
......@@ -269,16 +281,28 @@
sceneExpense:[],
cbSummary:[],
uploadtype:0,//上传的版块类型
visible:false,
issub:false,//已填完数据可以开始解析
}
},
created() {
this.formdata = JSON.parse(JSON.stringify(this.uploadData))
this.formdata.cbStage = this.formdata.cbStage.toString()
this.getDetail()
console.log(this.uploadData)
},
methods:{
importdata(){
this.visible = true
this.$refs['ruleForm'].validate((valid) => {
if (valid) {
this.issub = true
} else {
this.issub = false
}
});
},
goback(){
this.visible = false
this.$emit('closeupload')
},
getDetail(){
......@@ -387,6 +411,17 @@
</script>
<style scoped lang="scss">
.protypes{
padding: 24px 20px;
height: 120px;
.ck {
margin-bottom: 12px;
height: 22px;
font-size: 14px;
color: rgba(35, 35, 35, 0.8);
line-height: 22px;
}
}
.title-small{
font-size: 12px;
line-height: 24px;
......
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