Commit 23f27215 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 2079e492 946a6314
...@@ -61,7 +61,7 @@ export function getProjectFileUploadDetail(projectId) { ...@@ -61,7 +61,7 @@ export function getProjectFileUploadDetail(projectId) {
export function importData(projectId) { export function importData(projectId) {
return request({ return request({
url: '/cbProjectRecord/importData/'+projectId, url: '/cbProjectRecord/importData/'+projectId,
method: 'get', method: 'post',
}); });
} }
......
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
</div> </div>
<!--单条--> <!--单条-->
<div class="table-item" v-else> <div class="table-item" v-else>
<el-table element-loading-text="Loading" :data="tableData" row-key="id" v-horizontal-scroll="'hover'" default-expand-all <el-table element-loading-text="Loading" ref="edittable" :data="tableData" row-key="id" v-horizontal-scroll="'hover'" default-expand-all
:tree-props="{children: 'children', hasChildren: 'hasChildren'}" border highlight-current-row :cell-class-name="tored1" :header-cell-class-name="tored1"> :tree-props="{children: 'children', hasChildren: 'hasChildren'}" border highlight-current-row :cell-class-name="tored1" :header-cell-class-name="tored1">
<el-table-column label="序号" width="60" align="left" type="index" fixed="left"></el-table-column> <el-table-column label="序号" width="60" align="left" type="index" fixed="left"></el-table-column>
<el-table-column label="清单内容" width="130" prop="itemContent" fixed="left"> <el-table-column label="清单内容" width="130" prop="itemContent" fixed="left">
...@@ -448,6 +448,7 @@ export default { ...@@ -448,6 +448,7 @@ export default {
inputnum(){ inputnum(){
this.cbVisible = false this.cbVisible = false
this.isinput = true this.isinput = true
this.$refs.edittable.bodyWrapper.scrollLeft=Number(2220)
} }
}, },
} }
......
...@@ -503,6 +503,7 @@ ...@@ -503,6 +503,7 @@
this.uploadData = data this.uploadData = data
this.isupload = true this.isupload = true
this.cgxVisible = false this.cgxVisible = false
this.prodetail = false
}, },
handleCurrentChange(val){ handleCurrentChange(val){
this.formdata.pageNum = val this.formdata.pageNum = val
......
...@@ -220,7 +220,7 @@ ...@@ -220,7 +220,7 @@
</div> </div>
<el-divider></el-divider> <el-divider></el-divider>
<div class="pro-btns"> <div class="pro-btns">
<el-button type="primary" size="small" @click="importdata">导入数据</el-button> <el-button type="primary" size="small" @click="importdata" v-if="!prodetail">导入数据</el-button>
<el-button size="small" @click="goback">返回</el-button> <el-button size="small" @click="goback">返回</el-button>
</div> </div>
...@@ -295,34 +295,38 @@ ...@@ -295,34 +295,38 @@
methods:{ methods:{
importdata(){ importdata(){
this.visible = true this.visible = true
this.$refs['ruleForm'].validate((valid) => { let valid = true
if (valid) { if(this.directExpense.length>0&&this.quantitySummary.length>0
importData(this.formdata.id).then(res=>{ &&this.measureProject.length>0&&this.otherProject.length>0
&&this.sceneExpense.length>0&&this.cbSummary.length>0){
}) valid = true
this.issub = true importData(this.formdata.id).then(res=>{})
this.directExpense.forEach(item=>{ }else{
item.fileParseStatus = 1 valid = false
}) }
this.quantitySummary.forEach(item=>{ if (valid) {
item.fileParseStatus = 1 this.issub = true
}) this.directExpense.forEach(item=>{
this.measureProject.forEach(item=>{ item.fileParseStatus = 1
item.fileParseStatus = 1 })
}) this.quantitySummary.forEach(item=>{
this.otherProject.forEach(item=>{ item.fileParseStatus = 1
item.fileParseStatus = 1 })
}) this.measureProject.forEach(item=>{
this.sceneExpense.forEach(item=>{ item.fileParseStatus = 1
item.fileParseStatus = 1 })
}) this.otherProject.forEach(item=>{
this.cbSummary.forEach(item=>{ item.fileParseStatus = 1
item.fileParseStatus = 1 })
}) this.sceneExpense.forEach(item=>{
} else { item.fileParseStatus = 1
this.issub = false })
} this.cbSummary.forEach(item=>{
}); item.fileParseStatus = 1
})
} else {
this.issub = false
}
}, },
goback(){ goback(){
this.visible = false this.visible = false
......
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