权限重构
This commit is contained in:
		| @ -64,32 +64,32 @@ | ||||
|           </el-table-column> | ||||
|           <el-table-column label="计量单位" align="center" prop="unit"> | ||||
|             <template #default="{ row }"> | ||||
|               {{ row.parentId == 0 ? '' : row.unit }} | ||||
|               {{ row.unitType == 0 ? '' : row.unit }} | ||||
|             </template> | ||||
|           </el-table-column> | ||||
|           <el-table-column label="综合单价(业主)" align="center" prop="ownerPrice"> | ||||
|             <template #default="{ row }"> | ||||
|               {{ row.parentId == 0 ? '' : row.ownerPrice }} | ||||
|               {{ row.unitType == 0 ? '' : row.ownerPrice }} | ||||
|             </template> | ||||
|           </el-table-column> | ||||
|           <el-table-column label="综合单价(分包)" align="center" prop="constructionPrice"> | ||||
|             <template #default="{ row }"> | ||||
|               {{ row.parentId == 0 ? '' : row.constructionPrice }} | ||||
|               {{ row.unitType == 0 ? '' : row.constructionPrice }} | ||||
|             </template> | ||||
|           </el-table-column> | ||||
|           <el-table-column label="产值金额(业主)" align="center" prop="ownerOutputValue"> | ||||
|             <template #default="{ row }"> | ||||
|               {{ row.parentId == 0 ? '' : row.ownerOutputValue }} | ||||
|               {{ row.unitType == 0 ? '' : row.ownerOutputValue }} | ||||
|             </template> | ||||
|           </el-table-column> | ||||
|           <el-table-column label="产值金额(分包)" align="center" prop="constructionOutputValue"> | ||||
|             <template #default="{ row }"> | ||||
|               {{ row.parentId == 0 ? '' : row.constructionOutputValue }} | ||||
|               {{ row.unitType == 0 ? '' : row.constructionOutputValue }} | ||||
|             </template> | ||||
|           </el-table-column> | ||||
|           <el-table-column label="总数量" align="center" prop="total"> | ||||
|             <template #default="{ row }"> | ||||
|               {{ row.parentId == 0 ? '' : row.total }} | ||||
|               {{ row.unitType == 0 ? '' : row.total }} | ||||
|             </template> | ||||
|           </el-table-column> | ||||
|           <el-table-column label="关联结构" align="center" prop="relevancyStructure" width="100"> | ||||
| @ -128,7 +128,7 @@ | ||||
|             check-strictly | ||||
|           /> | ||||
|         </el-form-item> | ||||
|         <el-form-item label="计量方式" prop="unitType" v-if="!form.workType"> | ||||
|         <el-form-item label="计量方式" prop="unitType" v-if="!form.workType && form.unitType != '0'"> | ||||
|           <el-select v-model="form.unitType" placeholder="请选择关联数据"> | ||||
|             <el-option v-for="dict in progress_unit_type" :key="dict.value" :label="dict.label" :value="dict.value" /> | ||||
|           </el-select> | ||||
| @ -153,12 +153,12 @@ | ||||
|             <el-option v-for="dict in progress_work_type" :key="dict.value" :label="dict.label" :value="dict.value" /> | ||||
|           </el-select> | ||||
|         </el-form-item> | ||||
|         <el-form-item label="关联结构" prop="relevancyStructure"> | ||||
|         <!-- <el-form-item label="关联结构" prop="relevancyStructure"> | ||||
|           <el-select v-model="form.relevancyStructure" value-key="" placeholder="请选择关联结构" clearable filterable @change=""> | ||||
|             <el-option label="子项目" value="1"></el-option> | ||||
|             <el-option label="方阵" value="2"></el-option> | ||||
|           </el-select> | ||||
|         </el-form-item> | ||||
|         </el-form-item> --> | ||||
|         <el-form-item label="备注" prop="remark" v-if="!form.id"> | ||||
|           <el-input v-model="form.remark" placeholder="请输入备注" /> | ||||
|         </el-form-item> | ||||
| @ -433,12 +433,12 @@ const handleUpdate = async (row: ProgressCategoryVO) => { | ||||
| }; | ||||
|  | ||||
| const handleExport = async () => { | ||||
|   const ids = treeRef.value.getCheckedNodes()[0].pathNodes[0].childrenData.map((item) => item.matrixId); | ||||
|   const fileName = treeRef.value.getCheckedNodes()[0].pathNodes[0].label; | ||||
|   const ids = queryParams.value.projectId; | ||||
|   const fileName = matrixOptions.value.find((item) => item.projectId == ids)?.name || currentProject.value?.name || '工程项目'; | ||||
|   proxy?.download( | ||||
|     '/progress/progressCategory/export', | ||||
|     { | ||||
|       ids: ids | ||||
|       projectId: ids | ||||
|     }, | ||||
|     `${fileName}分项工程单价导入.xlsx`, | ||||
|     true | ||||
|  | ||||
		Reference in New Issue
	
	Block a user