Commit 2255d2b3 authored by huangjie's avatar huangjie

*

parent a71b3705
......@@ -61,7 +61,7 @@ export function getProjectFileUploadDetail(projectId) {
export function importData(projectId) {
return request({
url: '/cbProjectRecord/importData/'+projectId,
method: 'get',
method: 'post',
});
}
......
......@@ -40,7 +40,7 @@
</div>
<!--单条-->
<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">
<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">
......@@ -448,6 +448,7 @@ export default {
inputnum(){
this.cbVisible = false
this.isinput = true
this.$refs.edittable.bodyWrapper.scrollLeft=Number(2220)
}
},
}
......
......@@ -295,34 +295,36 @@
methods:{
importdata(){
this.visible = true
this.$refs['ruleForm'].validate((valid) => {
if (valid) {
importData(this.formdata.id).then(res=>{
})
this.issub = true
this.directExpense.forEach(item=>{
item.fileParseStatus = 1
})
this.quantitySummary.forEach(item=>{
item.fileParseStatus = 1
})
this.measureProject.forEach(item=>{
item.fileParseStatus = 1
})
this.otherProject.forEach(item=>{
item.fileParseStatus = 1
})
this.sceneExpense.forEach(item=>{
item.fileParseStatus = 1
})
this.cbSummary.forEach(item=>{
item.fileParseStatus = 1
})
} else {
this.issub = false
}
});
let valid = true
if(this.directExpense&&this.quantitySummary&&this.measureProject&&this.otherProject&&this.sceneExpense&&this.cbSummary){
valid = true
}else{
valid = false
}
if (valid) {
importData(this.formdata.id).then(res=>{})
this.issub = true
this.directExpense.forEach(item=>{
item.fileParseStatus = 1
})
this.quantitySummary.forEach(item=>{
item.fileParseStatus = 1
})
this.measureProject.forEach(item=>{
item.fileParseStatus = 1
})
this.otherProject.forEach(item=>{
item.fileParseStatus = 1
})
this.sceneExpense.forEach(item=>{
item.fileParseStatus = 1
})
this.cbSummary.forEach(item=>{
item.fileParseStatus = 1
})
} else {
this.issub = false
}
},
goback(){
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