工程管理
This commit is contained in:
parent
6f05db2107
commit
d5319fd04d
|
|
@ -21,23 +21,23 @@
|
|||
/>
|
||||
</el-form-item>
|
||||
|
||||
<!-- <el-form-item prop="pro_code" label="工程编号" style="margin-bottom: 0; width: 320px">-->
|
||||
<!-- <el-input-->
|
||||
<!-- clearable-->
|
||||
<!-- placeholder="请输入工程编号"-->
|
||||
<!-- v-model="searchParams.pro_code"-->
|
||||
<!-- style="width: 100%; min-width: 200px;"-->
|
||||
<!-- />-->
|
||||
<!-- </el-form-item>-->
|
||||
<!-- <el-form-item prop="pro_code" label="工程编号" style="margin-bottom: 0; width: 320px">-->
|
||||
<!-- <el-input-->
|
||||
<!-- clearable-->
|
||||
<!-- placeholder="请输入工程编号"-->
|
||||
<!-- v-model="searchParams.pro_code"-->
|
||||
<!-- style="width: 100%; min-width: 200px;"-->
|
||||
<!-- />-->
|
||||
<!-- </el-form-item>-->
|
||||
|
||||
<!-- <el-form-item prop="org_name" label="建管单位" style="margin-bottom: 0; width: 320px">-->
|
||||
<!-- <el-input-->
|
||||
<!-- clearable-->
|
||||
<!-- placeholder="请输入单位名称"-->
|
||||
<!-- v-model="searchParams.org_name"-->
|
||||
<!-- style="width: 100%; min-width: 200px;"-->
|
||||
<!-- />-->
|
||||
<!-- </el-form-item>-->
|
||||
<!-- <el-form-item prop="org_name" label="建管单位" style="margin-bottom: 0; width: 320px">-->
|
||||
<!-- <el-input-->
|
||||
<!-- clearable-->
|
||||
<!-- placeholder="请输入单位名称"-->
|
||||
<!-- v-model="searchParams.org_name"-->
|
||||
<!-- style="width: 100%; min-width: 200px;"-->
|
||||
<!-- />-->
|
||||
<!-- </el-form-item>-->
|
||||
|
||||
<el-form-item prop="project_type" label="工程类型" style="margin-bottom: 0; width: 320px">
|
||||
<el-select
|
||||
|
|
@ -132,14 +132,14 @@
|
|||
|
||||
|
||||
<!-- 查看详情按钮(复用编辑按钮样式,仅改文字和方法) -->
|
||||
<!-- <el-button-->
|
||||
<!-- size="small"-->
|
||||
<!-- type="info"-->
|
||||
<!-- class="primary-lease"-->
|
||||
<!-- @click="handleViewDetails(scope.row)"-->
|
||||
<!-- >-->
|
||||
<!-- 查看-->
|
||||
<!-- </el-button>-->
|
||||
<!-- <el-button-->
|
||||
<!-- size="small"-->
|
||||
<!-- type="info"-->
|
||||
<!-- class="primary-lease"-->
|
||||
<!-- @click="handleViewDetails(scope.row)"-->
|
||||
<!-- >-->
|
||||
<!-- 查看-->
|
||||
<!-- </el-button>-->
|
||||
|
||||
|
||||
|
||||
|
|
@ -292,19 +292,19 @@
|
|||
</el-col>
|
||||
|
||||
|
||||
<el-col :span="12">
|
||||
<el-form-item label="机械化率" prop="mechanize_rate">
|
||||
<el-input
|
||||
v-model="addOrEditForm.mechanize_rate"
|
||||
placeholder="请输入机械化率"
|
||||
style="width: 100%"
|
||||
maxlength="50"
|
||||
show-word-limit
|
||||
:disabled="isView"
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="机械化率" prop="mechanize_rate">
|
||||
<el-input
|
||||
v-model="addOrEditForm.mechanize_rate"
|
||||
placeholder="请输入机械化率"
|
||||
style="width: 100%"
|
||||
maxlength="50"
|
||||
show-word-limit
|
||||
:disabled="isView"
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
|
||||
|
||||
|
|
@ -364,12 +364,12 @@
|
|||
@change="loadDistricts"
|
||||
:disabled="!addOrEditForm.province"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in cityOptions"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
/>
|
||||
<el-option
|
||||
v-for="item in cityOptions"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
|
@ -382,12 +382,12 @@
|
|||
v-model="addOrEditForm.county"
|
||||
:disabled="!addOrEditForm.city"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in districtOptions"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
/>
|
||||
<el-option
|
||||
v-for="item in districtOptions"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
|
@ -577,7 +577,7 @@ export default {
|
|||
// 关键转换:将 areaCode → value,name → label
|
||||
this.provinceOptions = res.data.map(item => ({
|
||||
value: item.areaCode, // 下拉框的选项值(存储用)
|
||||
label: item.name // 下拉框的显示文本(用户看)
|
||||
label: item.short_name // 下拉框的显示文本(用户看)
|
||||
}))
|
||||
} else {
|
||||
Message.error('加载省份失败:' + (res.message || '未知错误'))
|
||||
|
|
@ -610,7 +610,7 @@ export default {
|
|||
if (res.code === 200) {
|
||||
this.cityOptions = res.data.map(item => ({
|
||||
value: item.areaCode,
|
||||
label: item.name
|
||||
label: item.short_name
|
||||
}))
|
||||
} else {
|
||||
Message.error('加载城市失败')
|
||||
|
|
@ -653,7 +653,6 @@ export default {
|
|||
},
|
||||
|
||||
|
||||
|
||||
// 获取工程列表
|
||||
async getProjectListData() {
|
||||
try {
|
||||
|
|
@ -782,7 +781,7 @@ export default {
|
|||
const provinceCode = targetProvince ? targetProvince.value : '';
|
||||
if (!provinceCode) {
|
||||
Message.warning(`未找到“${projectData.province}”对应的编码,请手动选择`);
|
||||
this.addOrEditForm = { ...projectData }; // 这里也会使用处理后的数据
|
||||
this.addOrEditForm = {...projectData}; // 这里也会使用处理后的数据
|
||||
this.addOrEditDialogVisible = true;
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue