zhouwenxuan
2024-02-22 32025887cb0e13634d800330bb33e3533fd3f70d
src/views/safetyReview/userManage/expertUsers/components/projectDialog.vue
@@ -39,20 +39,20 @@
          </template>
        </el-table-column>
        <el-table-column label="项目实施天数" prop="filingDate" align="center"  width="150"/>
        <el-table-column label="项目变更" prop="" align="center"  width="120">
          <template #default="scope">
            <div style="cursor:pointer;color: #3b82f6;" >
              <span v-if="scope.row.process !== 1" @click="goMenu('toFive',scope.row)">{{}}</span>
              <span v-else></span>
            </div>
          </template>
        </el-table-column>
<!--        <el-table-column label="项目变更" prop="" align="center"  width="120">-->
<!--          <template #default="scope">-->
<!--            <div style="cursor:pointer;color: #3b82f6;" >-->
<!--              <span v-if="scope.row.process !== 1" @click="goMenu('toFive',scope.row)">{{}}</span>-->
<!--              <span v-else></span>-->
<!--            </div>-->
<!--          </template>-->
<!--        </el-table-column>-->
        <el-table-column label="预估金额(万元)" prop="contractMoney" align="center"  width="130"/>
        <el-table-column label="归档金额(万元)" prop="actualContractMoney" align="center"  width="130"/>
        <el-table-column label="缺失要件" prop="" align="center"  width="150">
          <template #default="scope">
            <div style="cursor:pointer;color: #3b82f6;" >
              <span v-if="scope.row.process === 5" @click="goMenu('toTwelve',scope.row)">{{scope.row.materialCnt}}</span>
              <span v-if="scope.row.process === 5" @click="goMenu('toTwelve',scope.row)">{{scope.row.missingMaterialCnt}}</span>
              <span v-else></span>
            </div>
          </template>
@@ -60,7 +60,7 @@
        <el-table-column label="归档确认" prop="" align="center"  width="150">
          <template #default="scope">
            <div style="cursor:pointer;color: #3b82f6;" >
              <span v-if="scope.row.process === 5" @click="goMenu('toThirteen',scope.row)">{{}}</span>
              <span v-if="scope.row.process === 5 && scope.row.personRecognition"  @click="goMenu('toThirteen',scope.row)">{{scope.row.personRecognition.recognitionCnt}}/{{scope.row.personRecognition.personCnt}}</span>
              <span v-else></span>
            </div>
          </template>
@@ -93,6 +93,7 @@
<script setup>
import {reactive, ref} from "vue";
import {getProjectList} from "@/api/projectManage/project";
import {ElMessage} from "element-plus";
const loading = ref(false);
const dataList = ref([]);
const tableRef  = ref(null);
@@ -127,7 +128,8 @@
        area: item.district ? item.province + '/' + item.city + '/' + item.district : item.city?item.province + '/' + item.city:item.province ,
        filingDate: item.filingDate ? item.filingDate : conversionDays(item.createTime),
        contractMoney: item.contract ? item.contract.contractMoney : '',
        actualContractMoney: item.contract ? item.contract.actualContractMoney : ''
        actualContractMoney: item.contract ? item.contract.actualContractMoney : '',
        missingMaterialCnt:  3-item.materialCnt
      }
    })
    console.log(dataList.value,'dataList.value')
@@ -155,6 +157,10 @@
}
const goMenu = (toPath,val) => {
  console.log("val",val)
  if(toPath ==='toThirteen' && val.personRecognition && val.personRecognition. recognitionCnt === 0){
    ElMessage.warning('未进行签字确认,无法查看!')
    return;
  }
  toProcess('edit',val,toPath);
}
const conversionDays = (createTime) => {