工程管理

This commit is contained in:
itcast 2025-11-18 10:14:51 +08:00
parent 6f05db2107
commit d5319fd04d
1 changed files with 52 additions and 53 deletions

View File

@ -21,23 +21,23 @@
/> />
</el-form-item> </el-form-item>
<!-- <el-form-item prop="pro_code" label="工程编号" style="margin-bottom: 0; width: 320px">--> <!-- <el-form-item prop="pro_code" label="工程编号" style="margin-bottom: 0; width: 320px">-->
<!-- <el-input--> <!-- <el-input-->
<!-- clearable--> <!-- clearable-->
<!-- placeholder="请输入工程编号"--> <!-- placeholder="请输入工程编号"-->
<!-- v-model="searchParams.pro_code"--> <!-- v-model="searchParams.pro_code"-->
<!-- style="width: 100%; min-width: 200px;"--> <!-- style="width: 100%; min-width: 200px;"-->
<!-- />--> <!-- />-->
<!-- </el-form-item>--> <!-- </el-form-item>-->
<!-- <el-form-item prop="org_name" label="建管单位" style="margin-bottom: 0; width: 320px">--> <!-- <el-form-item prop="org_name" label="建管单位" style="margin-bottom: 0; width: 320px">-->
<!-- <el-input--> <!-- <el-input-->
<!-- clearable--> <!-- clearable-->
<!-- placeholder="请输入单位名称"--> <!-- placeholder="请输入单位名称"-->
<!-- v-model="searchParams.org_name"--> <!-- v-model="searchParams.org_name"-->
<!-- style="width: 100%; min-width: 200px;"--> <!-- style="width: 100%; min-width: 200px;"-->
<!-- />--> <!-- />-->
<!-- </el-form-item>--> <!-- </el-form-item>-->
<el-form-item prop="project_type" label="工程类型" style="margin-bottom: 0; width: 320px"> <el-form-item prop="project_type" label="工程类型" style="margin-bottom: 0; width: 320px">
<el-select <el-select
@ -132,14 +132,14 @@
<!-- 查看详情按钮复用编辑按钮样式仅改文字和方法 --> <!-- 查看详情按钮复用编辑按钮样式仅改文字和方法 -->
<!-- <el-button--> <!-- <el-button-->
<!-- size="small"--> <!-- size="small"-->
<!-- type="info"--> <!-- type="info"-->
<!-- class="primary-lease"--> <!-- class="primary-lease"-->
<!-- @click="handleViewDetails(scope.row)"--> <!-- @click="handleViewDetails(scope.row)"-->
<!-- >--> <!-- >-->
<!-- 查看--> <!-- 查看-->
<!-- </el-button>--> <!-- </el-button>-->
@ -577,7 +577,7 @@ export default {
// areaCode valuename label // areaCode valuename label
this.provinceOptions = res.data.map(item => ({ this.provinceOptions = res.data.map(item => ({
value: item.areaCode, // value: item.areaCode, //
label: item.name // label: item.short_name //
})) }))
} else { } else {
Message.error('加载省份失败:' + (res.message || '未知错误')) Message.error('加载省份失败:' + (res.message || '未知错误'))
@ -610,7 +610,7 @@ export default {
if (res.code === 200) { if (res.code === 200) {
this.cityOptions = res.data.map(item => ({ this.cityOptions = res.data.map(item => ({
value: item.areaCode, value: item.areaCode,
label: item.name label: item.short_name
})) }))
} else { } else {
Message.error('加载城市失败') Message.error('加载城市失败')
@ -653,7 +653,6 @@ export default {
}, },
// //
async getProjectListData() { async getProjectListData() {
try { try {
@ -782,7 +781,7 @@ export default {
const provinceCode = targetProvince ? targetProvince.value : ''; const provinceCode = targetProvince ? targetProvince.value : '';
if (!provinceCode) { if (!provinceCode) {
Message.warning(`未找到“${projectData.province}”对应的编码,请手动选择`); Message.warning(`未找到“${projectData.province}”对应的编码,请手动选择`);
this.addOrEditForm = { ...projectData }; // 使 this.addOrEditForm = {...projectData}; // 使
this.addOrEditDialogVisible = true; this.addOrEditDialogVisible = true;
return; return;
} }