|
@@ -128,8 +128,8 @@
|
128
|
128
|
<!--</el-button>-->
|
129
|
129
|
|
130
|
130
|
<el-button type="primary" size="small" icon="el-icon-refresh-left">
|
131
|
|
- <span v-if="scope.row.is_mark == 0 || scope.row.is_mark == 2" @click="putOnRecord(scope.row.id)" >目录对照</span>
|
132
|
|
- <span v-if="scope.row.is_mark == 1" @click="putOnUnRecord(scope.row.id)" >撤消对照</span>
|
|
131
|
+ <span @click="putOnRecord(scope.row.id)" >目录对照</span>
|
|
132
|
+ <span @click="putOnUnRecord(scope.row.id)" >撤消对照</span>
|
133
|
133
|
</el-button>
|
134
|
134
|
</template>
|
135
|
135
|
</el-table-column>
|
|
@@ -902,16 +902,16 @@ export default {
|
902
|
902
|
},
|
903
|
903
|
exportList(){
|
904
|
904
|
import('@/vendor/Export2Excel').then(excel => {
|
905
|
|
-
|
|
905
|
+
|
906
|
906
|
for(let i=0;i<this.tableData.length;i++){
|
907
|
907
|
for(let j=0;j<this.getDictionaryDataConfig('system','cost_classify').length;j++){
|
908
|
908
|
if(this.tableData[i].cost_classify == this.getDictionaryDataConfig('system','cost_classify')[j].id){
|
909
|
|
- this.tableData[i].cost_classify_name = this.getDictionaryDataConfig('system','cost_classify')[j].name
|
|
909
|
+ this.tableData[i].cost_classify_name = this.getDictionaryDataConfig('system','cost_classify')[j].name
|
910
|
910
|
}
|
911
|
911
|
}
|
912
|
912
|
for(let y=0;y<this.getDictionaryDataConfig('system','medical_insurance_level').length;y++){
|
913
|
913
|
if(this.tableData[i].medical_coverage == this.getDictionaryDataConfig('system','medical_insurance_level')[y].id){
|
914
|
|
- this.tableData[i].medical_coverage_name = this.getDictionaryDataConfig('system','medical_insurance_level')[y].name
|
|
914
|
+ this.tableData[i].medical_coverage_name = this.getDictionaryDataConfig('system','medical_insurance_level')[y].name
|
915
|
915
|
}
|
916
|
916
|
}
|
917
|
917
|
for(let a=0;a<this.departMentList.length;a++){
|
|
@@ -922,23 +922,23 @@ export default {
|
922
|
922
|
}
|
923
|
923
|
console.log("this.table",this.tableData)
|
924
|
924
|
const tHeader = ['项目名称','零价','单位','费用类别','执行科室','医保等级','国家编码','社保目录编码']
|
925
|
|
- const filterVal = ['project_name', 'price','unit','cost_classify_name','executive_section_name','medical_coverage_name','medical_code','social_security_directory_code']
|
926
|
|
-
|
|
925
|
+ const filterVal = ['project_name', 'price','unit','cost_classify_name','executive_section_name','medical_coverage_name','medical_code','social_security_directory_code']
|
|
926
|
+
|
927
|
927
|
const data = this.formatJson(filterVal,this.tableData)
|
928
|
|
-
|
|
928
|
+
|
929
|
929
|
excel.export_json_to_excel({
|
930
|
930
|
header: tHeader,
|
931
|
931
|
data,
|
932
|
932
|
filename: '项目信息'
|
933
|
933
|
})
|
934
|
934
|
this.downloadLoading = false
|
935
|
|
-
|
|
935
|
+
|
936
|
936
|
})
|
937
|
937
|
},
|
938
|
938
|
formatJson(filterVal, jsonData) {
|
939
|
939
|
return jsonData.map(v => filterVal.map(j => v[j]))
|
940
|
940
|
},
|
941
|
|
-
|
|
941
|
+
|
942
|
942
|
},
|
943
|
943
|
created(){
|
944
|
944
|
this.getlist();
|