1
This commit is contained in:
@ -5,13 +5,15 @@ VITE_APP_TITLE = 煤科建管平台
|
|||||||
VITE_APP_ENV = 'development'
|
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
|
# 李陈杰 209
|
||||||
# VITE_APP_BASE_API = 'http://192.168.110.209:8899'
|
# VITE_APP_BASE_API = 'http://192.168.110.209:8899'
|
||||||
# 李陈杰 209
|
# 李陈杰 209
|
||||||
# VITE_APP_BASE_API = 'http://192.168.110.209:8899'
|
# VITE_APP_BASE_API = 'http://192.168.110.209:8899'
|
||||||
# 曾涛
|
# 曾涛
|
||||||
# VITE_APP_BASE_API = 'http://192.168.110.149:8899'
|
|
||||||
|
VITE_APP_BASE_API = 'http://192.168.110.209:8899'
|
||||||
|
|
||||||
# 罗成
|
# 罗成
|
||||||
# VITE_APP_BASE_API = 'http://192.168.110.188:8899'
|
# VITE_APP_BASE_API = 'http://192.168.110.188:8899'
|
||||||
# 朱银
|
# 朱银
|
||||||
|
|||||||
@ -98,7 +98,6 @@ export interface MechanicalrewritingVO {
|
|||||||
* 备注
|
* 备注
|
||||||
*/
|
*/
|
||||||
remark: string;
|
remark: string;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface MechanicalrewritingForm extends BaseEntity {
|
export interface MechanicalrewritingForm extends BaseEntity {
|
||||||
@ -201,11 +200,9 @@ export interface MechanicalrewritingForm extends BaseEntity {
|
|||||||
* 备注
|
* 备注
|
||||||
*/
|
*/
|
||||||
remark?: string;
|
remark?: string;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface MechanicalrewritingQuery extends PageQuery {
|
export interface MechanicalrewritingQuery extends PageQuery {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 项目ID
|
* 项目ID
|
||||||
*/
|
*/
|
||||||
@ -295,12 +292,13 @@ export interface MechanicalrewritingQuery extends PageQuery {
|
|||||||
* 检验报告
|
* 检验报告
|
||||||
*/
|
*/
|
||||||
verificationReport?: string;
|
verificationReport?: string;
|
||||||
|
/**
|
||||||
|
* 工区
|
||||||
|
*/
|
||||||
|
workArea?: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 日期范围参数
|
* 日期范围参数
|
||||||
*/
|
*/
|
||||||
params?: any;
|
params?: any;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,10 @@
|
|||||||
import request from '@/utils/request';
|
import request from '@/utils/request';
|
||||||
import { AxiosPromise } from 'axios';
|
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'
|
method: 'get'
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 施工进度计划完成
|
||||||
|
* @param id
|
||||||
|
*/
|
||||||
|
export const finishConstructionSchedulePlan = (id: string | number | Array<string | number>) => {
|
||||||
|
return request({
|
||||||
|
url: '/progress/constructionSchedulePlan/finish/' + id,
|
||||||
|
method: 'put'
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|||||||
@ -7,7 +7,9 @@
|
|||||||
<el-form-item label="设备名称" prop="devicename">
|
<el-form-item label="设备名称" prop="devicename">
|
||||||
<el-input v-model="queryParams.devicename" placeholder="请输入设备名称" clearable @keyup.enter="handleQuery" />
|
<el-input v-model="queryParams.devicename" placeholder="请输入设备名称" clearable @keyup.enter="handleQuery" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item label="工区" prop="workArea">
|
||||||
|
<el-input v-model="queryParams.workArea" placeholder="请输入工区" clearable @keyup.enter="handleQuery" />
|
||||||
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button>
|
<el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button>
|
||||||
<el-button icon="Refresh" @click="resetQuery">重置</el-button>
|
<el-button icon="Refresh" @click="resetQuery">重置</el-button>
|
||||||
@ -160,6 +162,7 @@ const data = reactive<PageData<MechanicalrewritingForm, MechanicalrewritingQuery
|
|||||||
qualification: undefined,
|
qualification: undefined,
|
||||||
equipmentPhoto: undefined,
|
equipmentPhoto: undefined,
|
||||||
verificationReport: undefined,
|
verificationReport: undefined,
|
||||||
|
workArea: undefined,
|
||||||
params: {}
|
params: {}
|
||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
|
|||||||
@ -102,6 +102,15 @@
|
|||||||
v-hasPermi="['progress:constructionSchedulePlan:remove']"
|
v-hasPermi="['progress:constructionSchedulePlan:remove']"
|
||||||
/>
|
/>
|
||||||
</el-tooltip>
|
</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>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
@ -172,7 +181,8 @@ import {
|
|||||||
delConstructionSchedulePlan,
|
delConstructionSchedulePlan,
|
||||||
addConstructionSchedulePlan,
|
addConstructionSchedulePlan,
|
||||||
updateConstructionSchedulePlan,
|
updateConstructionSchedulePlan,
|
||||||
getProjectStructure
|
getProjectStructure,
|
||||||
|
finishConstructionSchedulePlan
|
||||||
} from '@/api/progress/constructionSchedulePlan';
|
} from '@/api/progress/constructionSchedulePlan';
|
||||||
import {
|
import {
|
||||||
ConstructionSchedulePlanVO,
|
ConstructionSchedulePlanVO,
|
||||||
@ -282,7 +292,13 @@ const cancel = () => {
|
|||||||
reset();
|
reset();
|
||||||
dialog.visible = false;
|
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 handleExport = async () => {
|
||||||
const ids = queryParams.value.projectId;
|
const ids = queryParams.value.projectId;
|
||||||
proxy?.download('/progress/constructionSchedulePlan/exportTemplate/' + ids, {}, `施工里程碑计划模版.xlsx`, true);
|
proxy?.download('/progress/constructionSchedulePlan/exportTemplate/' + ids, {}, `施工里程碑计划模版.xlsx`, true);
|
||||||
|
|||||||
Reference in New Issue
Block a user