Commit 2255d2b3 authored by huangjie's avatar huangjie

*

parent a71b3705
...@@ -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)
} }
}, },
} }
......
...@@ -295,11 +295,14 @@ ...@@ -295,11 +295,14 @@
methods:{ methods:{
importdata(){ importdata(){
this.visible = true this.visible = true
this.$refs['ruleForm'].validate((valid) => { let valid = true
if(this.directExpense&&this.quantitySummary&&this.measureProject&&this.otherProject&&this.sceneExpense&&this.cbSummary){
valid = true
}else{
valid = false
}
if (valid) { if (valid) {
importData(this.formdata.id).then(res=>{ 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 +325,6 @@ ...@@ -322,7 +325,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