This commit is contained in:
Teo
2025-08-30 00:32:52 +08:00
10 changed files with 53 additions and 44 deletions

View File

@ -6,7 +6,7 @@ VITE_APP_ENV = 'development'
# 开发环境 # 开发环境
# 李陈杰 209 # 李陈杰 209
VITE_APP_BASE_API = 'http://192.168.110.188:8899' VITE_APP_BASE_API = 'http://192.168.110.149:8899'
# 曾涛 # 曾涛
# VITE_APP_BASE_API = 'http://192.168.110.180:8899' # VITE_APP_BASE_API = 'http://192.168.110.180:8899'
# 罗成 # 罗成

View File

@ -314,14 +314,14 @@ let volumeMap = new Map();
const handleSelect = (val) => { const handleSelect = (val) => {
let obj = volumeMap.get(val); let obj = volumeMap.get(val);
console.log('🚀 ~ handleSelect ~ obj:', obj);
fileVoList.value = obj.fileVoList; fileVoList.value = obj.fileVoList;
designId.value = obj.design; designId.value = obj.design;
form.value.volumeName = obj.volumeName; form.value.volumeName = obj.volumeName;
form.value.specialty = obj.specialty; form.value.specialty = obj.specialty;
form.value.specialtyName = obj.specialtyName; form.value.specialtyName = obj.specialtyName;
form.value.extendDetail.subName = obj.designSubitem; form.value.extendDetail.subName = obj.designSubitem;
form.value.saveFile = [];
getBlueprintList();
}; };
// 获取图纸列表 // 获取图纸列表
const blueprintListAll = ref([]); const blueprintListAll = ref([]);
@ -331,9 +331,6 @@ const getBlueprintList = async () => {
}; };
const handleRadio = (val) => { const handleRadio = (val) => {
form.value.saveFile = []; form.value.saveFile = [];
if (val == 2) {
getBlueprintList();
}
}; };
/** 表单重置 */ /** 表单重置 */
@ -351,8 +348,15 @@ const getInfo = () => {
let id = routeParams.value.id.split('_')[0]; let id = routeParams.value.id.split('_')[0];
const res = await getDesignChange(id); const res = await getDesignChange(id);
Object.assign(form.value, res.data); Object.assign(form.value, res.data);
console.log(form.value); if (form.value.status != 'draft') {
form.value.id = id + '_audit';
}
if (form.value.extendDetail.designDisposal == 2) {
let obj = volumeMap.get(form.value.volumeNo);
designId.value = obj.design;
form.value.saveFile = form.value.saveFile.split(',');
getBlueprintList();
}
if (form.value.changeReason.length > 0) { if (form.value.changeReason.length > 0) {
form.value.changeReason = form.value.changeReason.split(','); form.value.changeReason = form.value.changeReason.split(',');
} }
@ -504,9 +508,7 @@ onMounted(() => {
.el-input__inner, .el-input__inner,
.el-select .el-input__inner { .el-select .el-input__inner {
border-radius: 4px; border-radius: 4px;
transition: transition: border-color 0.2s, box-shadow 0.2s;
border-color 0.2s,
box-shadow 0.2s;
&:focus { &:focus {
border-color: var(--primary-light); border-color: var(--primary-light);
@ -516,9 +518,7 @@ onMounted(() => {
.el-textarea__inner { .el-textarea__inner {
border-radius: 4px; border-radius: 4px;
transition: transition: border-color 0.2s, box-shadow 0.2s;
border-color 0.2s,
box-shadow 0.2s;
&:focus { &:focus {
border-color: var(--primary-light); border-color: var(--primary-light);

View File

@ -49,7 +49,7 @@
</el-form> </el-form>
<template #footer> <template #footer>
<div class="dialog-footer"> <div class="dialog-footer">
<el-button :loading="buttonLoading" type="primary" @click="submitForm"> </el-button> <el-button v-hasPermi="['design:subcontract:add']" :loading="buttonLoading" type="primary" @click="submitForm"> </el-button>
<el-button @click="cancel"> </el-button> <el-button @click="cancel"> </el-button>
</div> </div>
</template> </template>

View File

@ -47,16 +47,16 @@
<template #header> <template #header>
<el-row :gutter="10" class="mb8"> <el-row :gutter="10" class="mb8">
<el-col :span="1.5"> <el-col :span="1.5">
<el-button type="primary" plain icon="Plus" @click="handleAdd()" v-hasPermi="['formalities:listOfFormalities:add']">新增</el-button> <el-button type="primary" plain icon="Plus" @click="handleAdd()" v-hasPermi="['formalities:formalitiesAreConsolidated:getTree']"
>新增</el-button
>
<span style="margin-left: 10px" <span style="margin-left: 10px"
><el-tooltip class="box-item" effect="dark" content="从原有模板列表选择新增" placement="top"> ><el-tooltip class="box-item" effect="dark" content="从原有模板列表选择新增" placement="top">
<el-icon color="#409efc"><WarningFilled /></el-icon> </el-tooltip <el-icon color="#409efc"><WarningFilled /></el-icon> </el-tooltip
></span> ></span>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5" v-hasPermi="['formalities:listOfFormalities:list']">
<el-button type="primary" plain icon="Plus" @click="addTemplate()" v-hasPermi="['formalities:formalitiesAreConsolidated:addFormalities']" <el-button type="primary" plain icon="Plus" @click="addTemplate()">新增数据</el-button>
>新增数据</el-button
>
<span style="margin-left: 10px"> <span style="margin-left: 10px">
<el-tooltip class="box-item" effect="dark" content="创建新模板并添加数据" placement="top"> <el-tooltip class="box-item" effect="dark" content="创建新模板并添加数据" placement="top">
<el-icon color="#409efc"><WarningFilled /></el-icon> <el-icon color="#409efc"><WarningFilled /></el-icon>

View File

@ -31,11 +31,17 @@
<el-button type="success" plain icon="Plus" @click="downloadTemplate" v-hasPermi="['land:enterRoad:import']">模板下载</el-button> <el-button type="success" plain icon="Plus" @click="downloadTemplate" v-hasPermi="['land:enterRoad:import']">模板下载</el-button>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
<el-upload ref="uploadRef" class="upload-demo" :http-request="handleImport" :show-file-list="false"> <el-upload
<template #trigger> ref="uploadRef"
<el-button plain type="primary">导入excel</el-button> v-hasPermi="['land:enterRoad:upload']"
</template> class="upload-demo"
</el-upload> :http-request="handleImport"
:show-file-list="false"
>
<template #trigger>
<el-button plain type="primary">导入excel</el-button>
</template>
</el-upload>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
<el-button type="danger" plain icon="Delete" :disabled="multiple" @click="handleDelete()" v-hasPermi="['land:enterRoad:remove']" <el-button type="danger" plain icon="Delete" :disabled="multiple" @click="handleDelete()" v-hasPermi="['land:enterRoad:remove']"
@ -93,7 +99,7 @@
</el-form> </el-form>
<template #footer> <template #footer>
<div class="dialog-footer"> <div class="dialog-footer">
<el-button :loading="buttonLoading" type="primary" @click="submitForm"> </el-button> <el-button :loading="buttonLoading" type="primary" v-hasPermi="['land:enterRoad:add']" @click="submitForm"> </el-button>
<el-button @click="cancel"> </el-button> <el-button @click="cancel"> </el-button>
</div> </div>
</template> </template>
@ -102,7 +108,7 @@
</template> </template>
<script setup name="EnterRoad" lang="ts"> <script setup name="EnterRoad" lang="ts">
import { listEnterRoad, getEnterRoad, delEnterRoad, addEnterRoad, updateEnterRoad ,importEnterRoad} from '@/api/system/landTransfer/enterRoad'; import { listEnterRoad, getEnterRoad, delEnterRoad, addEnterRoad, updateEnterRoad, importEnterRoad } from '@/api/system/landTransfer/enterRoad';
import { EnterRoadVO, EnterRoadQuery, EnterRoadForm } from '@/api/system/landTransfer/enterRoad/types'; import { EnterRoadVO, EnterRoadQuery, EnterRoadForm } from '@/api/system/landTransfer/enterRoad/types';
import { listLandBlock } from '@/api/system/landTransfer/landBlock'; import { listLandBlock } from '@/api/system/landTransfer/landBlock';
import { useUserStoreHook } from '@/store/modules/user'; import { useUserStoreHook } from '@/store/modules/user';
@ -267,20 +273,23 @@ const listeningProject = watch(
// 导入文件 // 导入文件
const handleImport = (options: any) => { const handleImport = (options: any) => {
loading.value = true; loading.value = true;
let formData = new FormData(); let formData = new FormData();
formData.append('file', options.file); formData.append('file', options.file);
importEnterRoad(currentProject.value?.id,formData).then((res) => { importEnterRoad(currentProject.value?.id, formData)
if (res.code == 200) { .then((res) => {
proxy.$modal.msgSuccess(res.msg || '导入成功'); if (res.code == 200) {
getListLand(); proxy.$modal.msgSuccess(res.msg || '导入成功');
getList(); getListLand();
} getList();
}).catch((err) => { }
proxy.$modal.msgError(err.msg || '导入失败'); })
}).finally(() => { .catch((err) => {
loading.value = false; proxy.$modal.msgError(err.msg || '导入失败');
}); })
.finally(() => {
loading.value = false;
});
}; };
// 下载模板 // 下载模板
const downloadTemplate = () => { const downloadTemplate = () => {

View File

@ -99,7 +99,7 @@
</el-form> </el-form>
<template #footer> <template #footer>
<div class="dialog-footer"> <div class="dialog-footer">
<el-button :loading="buttonLoading" type="primary" @click="submitForm"> </el-button> <el-button :loading="buttonLoading" type="primary" @click="submitForm" v-hasPermi="['land:landBlock:add']"> </el-button>
<el-button @click="cancel"> </el-button> <el-button @click="cancel"> </el-button>
</div> </div>
</template> </template>

View File

@ -208,7 +208,7 @@
</el-form> </el-form>
<template #footer> <template #footer>
<div class="dialog-footer"> <div class="dialog-footer">
<el-button :loading="buttonLoading" type="primary" @click="submitForm"> </el-button> <el-button v-hasPermi="['land:landTransferLedger:add']" :loading="buttonLoading" type="primary" @click="submitForm"> </el-button>
<el-button @click="cancel"> </el-button> <el-button @click="cancel"> </el-button>
</div> </div>
</template> </template>

View File

@ -142,7 +142,7 @@
</el-form> </el-form>
<template #footer> <template #footer>
<div class="dialog-footer"> <div class="dialog-footer">
<el-button :loading="buttonLoading" type="primary" @click="submitForm"> </el-button> <el-button v-hasPermi="['land:landTransferLedger:add']" :loading="buttonLoading" type="primary" @click="submitForm"> </el-button>
<el-button @click="cancel"> </el-button> <el-button @click="cancel"> </el-button>
</div> </div>
</template> </template>

View File

@ -145,7 +145,7 @@
</el-form> </el-form>
<template #footer> <template #footer>
<div class="dialog-footer"> <div class="dialog-footer">
<el-button :loading="buttonLoading" type="primary" @click="submitForm"> </el-button> <el-button :loading="buttonLoading" type="primary" v-hasPermi="['land:landTransferLedger:add']" @click="submitForm"> </el-button>
<el-button @click="cancel"> </el-button> <el-button @click="cancel"> </el-button>
</div> </div>
</template> </template>

View File

@ -119,7 +119,7 @@
</el-form> </el-form>
<template #footer> <template #footer>
<div class="dialog-footer"> <div class="dialog-footer">
<el-button :loading="buttonLoading" type="primary" @click="submitForm"> </el-button> <el-button v-hasPermi="['design:subcontract:add']" :loading="buttonLoading" type="primary" @click="submitForm"> </el-button>
<el-button @click="cancel"> </el-button> <el-button @click="cancel"> </el-button>
</div> </div>
</template> </template>