This commit is contained in:
ljx
2025-09-16 20:25:23 +08:00
parent d640cd7f95
commit 4ad2b0c6dc
3 changed files with 35 additions and 4 deletions

View File

@ -5,7 +5,7 @@ VITE_APP_TITLE = 煤科建管平台
VITE_APP_ENV = 'development'
# 开发环境
VITE_APP_BASE_API = 'http://192.168.110.180:8899'
# VITE_APP_BASE_API = 'http://192.168.110.180:8899'
# 李陈杰 209
# VITE_APP_BASE_API = 'http://192.168.110.209:8899'
# 李陈杰 209

View File

@ -1,6 +1,10 @@
import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { ConstructionSchedulePlanVO, ConstructionSchedulePlanForm, ConstructionSchedulePlanQuery } from '@/api/progress/constructionSchedulePlan/types';
import {
ConstructionSchedulePlanVO,
ConstructionSchedulePlanForm,
ConstructionSchedulePlanQuery
} from '@/api/progress/constructionSchedulePlan/types';
/**
* 查询施工进度计划列表
@ -71,3 +75,14 @@ export const getProjectStructure = (id: string | number | Array<string | number>
method: 'get'
});
};
/**
* 施工进度计划完成
* @param id
*/
export const finishConstructionSchedulePlan = (id: string | number | Array<string | number>) => {
return request({
url: '/progress/constructionSchedulePlan/finish/' + id,
method: 'put'
});
};

View File

@ -102,6 +102,15 @@
v-hasPermi="['progress:constructionSchedulePlan:remove']"
/>
</el-tooltip>
<el-button
v-if="scope.row.status != '4'"
link
type="primary"
@click="handleFinish(scope.row)"
v-hasPermi="['progress:constructionSchedulePlan:editFinish']"
>
确定
</el-button>
</template>
</el-table-column>
</el-table>
@ -172,7 +181,8 @@ import {
delConstructionSchedulePlan,
addConstructionSchedulePlan,
updateConstructionSchedulePlan,
getProjectStructure
getProjectStructure,
finishConstructionSchedulePlan
} from '@/api/progress/constructionSchedulePlan';
import {
ConstructionSchedulePlanVO,
@ -282,7 +292,13 @@ const cancel = () => {
reset();
dialog.visible = false;
};
const handleFinish = async (row: ConstructionSchedulePlanVO) => {
const res = await finishConstructionSchedulePlan(row.id);
if (res.code === 200) {
proxy.$modal.msgSuccess('操作成功');
getList();
}
};
const handleExport = async () => {
const ids = queryParams.value.projectId;
proxy?.download('/progress/constructionSchedulePlan/exportTemplate/' + ids, {}, `施工里程碑计划模版.xlsx`, true);