|
@@ -109,14 +109,6 @@
|
|
|
size="mini"
|
|
|
type="text"
|
|
|
icon="el-icon-edit"
|
|
|
- @click="viewSource(scope.row,'check')"
|
|
|
- v-hasPermi="['zdsz:engineeringIndustry:edit']"
|
|
|
- >审核
|
|
|
- </el-button>
|
|
|
- <el-button
|
|
|
- size="mini"
|
|
|
- type="text"
|
|
|
- icon="el-icon-edit"
|
|
|
@click="handleUpdate(scope.row)"
|
|
|
v-hasPermi="['zdsz:engineeringIndustry:edit']"
|
|
|
>修改
|
|
@@ -161,6 +153,12 @@
|
|
|
>历史施工
|
|
|
</el-button>
|
|
|
<el-button
|
|
|
+ type="text"
|
|
|
+ icon="el-icon-download"
|
|
|
+ size="mini"
|
|
|
+ @click="download(scope.row.enginName)"
|
|
|
+ >下载图片</el-button>
|
|
|
+ <el-button
|
|
|
size="mini"
|
|
|
type="text"
|
|
|
icon="el-icon-delete"
|
|
@@ -367,7 +365,7 @@ import {getDicts} from "@/api/system/dict/data";
|
|
|
import EngineePipe from '@/components/EngineePipe'
|
|
|
import {validPhoneMobile} from '@/api/rules'
|
|
|
import ConstructionDetails from '@/components/ConstructionDetails/index.vue'
|
|
|
-import {getEnginMaterialQualityList, insertReview, engineeringCivilReview} from '@/api/zdsz/enginee'
|
|
|
+import {getEnginMaterialQualityList, insertReview, engineeringCivilReview, downloadZip} from '@/api/zdsz/enginee'
|
|
|
import {getEnginSpecificationsList} from '@/api/zdsz/enginSpecifications'
|
|
|
|
|
|
export default {
|
|
@@ -535,6 +533,9 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
methods: {
|
|
|
+ download(name){
|
|
|
+ downloadZip(this.form.type=='1'?'工业工程':'市政工程',name)
|
|
|
+ },
|
|
|
changName(val) {
|
|
|
if (this.form.type == '1')
|
|
|
return val;
|
|
@@ -549,6 +550,36 @@ export default {
|
|
|
// 节点单项审核
|
|
|
checkWorking(checkingInfo) {
|
|
|
console.log('checkingInfo===', checkingInfo)
|
|
|
+ function existsImg(arr) {
|
|
|
+ return arr != null && arr.length > 0;
|
|
|
+ }
|
|
|
+ function forInImg(arr,list) {
|
|
|
+ arr.forEach(o=>{
|
|
|
+ list.push(o)
|
|
|
+ })
|
|
|
+ return list;
|
|
|
+ }
|
|
|
+ if (this.form.type=='2'){
|
|
|
+ checkingInfo.infoIdList.forEach(item=>{
|
|
|
+ let listImg = [];
|
|
|
+ if (existsImg(item.welding)) {
|
|
|
+ listImg =forInImg(item.welding,listImg)
|
|
|
+ }
|
|
|
+ if (existsImg(item.aczoiling)) {
|
|
|
+ listImg =forInImg(item.aczoiling,listImg)
|
|
|
+ }
|
|
|
+ if (existsImg(item.piping)) {
|
|
|
+ listImg =forInImg(item.piping,listImg)
|
|
|
+ }
|
|
|
+ if (existsImg(item.warning)) {
|
|
|
+ listImg =forInImg(item.warning,listImg)
|
|
|
+ }
|
|
|
+ if (existsImg(item.backfilling)) {
|
|
|
+ listImg =forInImg(item.backfilling,listImg)
|
|
|
+ }
|
|
|
+ item.zEngiineeringPhotoBoList=listImg;
|
|
|
+ });
|
|
|
+ }
|
|
|
let params = checkingInfo
|
|
|
params.createTime = this.createTime
|
|
|
insertReview(params).then(res => {
|