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,11 +295,16 @@ ...@@ -295,11 +295,16 @@
methods:{ methods:{
importdata(){ importdata(){
this.visible = true this.visible = true
this.$refs['ruleForm'].validate((valid) => { let valid = true
if(this.directExpense.length>0&&this.quantitySummary.length>0
&&this.measureProject.length>0&&this.otherProject.length>0
&&this.sceneExpense.length>0&&this.cbSummary.length>0){
valid = true
importData(this.formdata.id).then(res=>{})
}else{
valid = false
}
if (valid) { if (valid) {
importData(this.formdata.id).then(res=>{
})
this.issub = true this.issub = true
this.directExpense.forEach(item=>{ this.directExpense.forEach(item=>{
item.fileParseStatus = 1 item.fileParseStatus = 1
...@@ -322,7 +327,6 @@ ...@@ -322,7 +327,6 @@
} else { } else {
this.issub = false 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