工程清单审批\是否上传文件
This commit is contained in:
@ -5,7 +5,7 @@ VITE_APP_TITLE = 新能源项目管理平台
|
|||||||
VITE_APP_ENV = 'development'
|
VITE_APP_ENV = 'development'
|
||||||
|
|
||||||
# 开发环境
|
# 开发环境
|
||||||
VITE_APP_BASE_API = 'http://192.168.110.180:8898'
|
VITE_APP_BASE_API = 'http://192.168.110.159:8898'
|
||||||
|
|
||||||
# 无人机接口地址
|
# 无人机接口地址
|
||||||
|
|
||||||
|
@ -42,14 +42,14 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-upload ref="uploadRef" class="upload-demo" :http-request="importExcel" style="margin-right: 12px;"
|
<el-upload ref="uploadRef" class="upload-demo" :http-request="importExcel" style="margin-right: 12px;"
|
||||||
v-if="Object.keys(state.versionsData).length === 0 ||state.versionsData.status=='cancel'||state.versionsData.status=='draft'"
|
v-if="Object.keys(state.versionsData).length === 0 ||state.versionsData.status=='cancel'"
|
||||||
:show-file-list="false">
|
:show-file-list="false">
|
||||||
<template #trigger>
|
<template #trigger>
|
||||||
<el-button type="primary">导入excel</el-button>
|
<el-button type="primary">导入excel</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-upload>
|
</el-upload>
|
||||||
<el-button v-if="state.versionsData.status=='draft'" type="primary"con="edit" @click="clickApprovalSheet()">审核</el-button>
|
<el-button v-if="state.versionsData.status=='draft'" type="primary"con="edit" @click="clickApprovalSheet()">审核</el-button>
|
||||||
<el-button v-if="state.versionsData.status=='warning'||state.versionsData.status=='finish'" icon="view" @click="lookApprovalSheet()" type="warning">查看流程</el-button>
|
<el-button v-if="state.versionsData.status=='waiting'||state.versionsData.status=='finish'" icon="view" @click="lookApprovalFlow()" type="warning">查看流程</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
</el-card>
|
</el-card>
|
||||||
@ -152,6 +152,10 @@ async function getVersionNums(isSheet = true) {
|
|||||||
state.options = rows || [];
|
state.options = rows || [];
|
||||||
if (state.options.length > 0) {
|
if (state.options.length > 0) {
|
||||||
state.queryForm.versions = state.options[0].versions;
|
state.queryForm.versions = state.options[0].versions;
|
||||||
|
if (state.work_order_type == 3) {
|
||||||
|
state.versionsData = state.options[0] || [];
|
||||||
|
console.log('state.versionsData',state.versionsData);
|
||||||
|
}
|
||||||
// 等待表名加载完成
|
// 等待表名加载完成
|
||||||
console.log(isSheet, state.sheets.length);
|
console.log(isSheet, state.sheets.length);
|
||||||
if (isSheet) {
|
if (isSheet) {
|
||||||
@ -218,9 +222,6 @@ async function handleQueryList(isSheet = true) {
|
|||||||
const result = await obtainTheList(state.queryForm);
|
const result = await obtainTheList(state.queryForm);
|
||||||
|
|
||||||
if (result?.code === 200) {
|
if (result?.code === 200) {
|
||||||
if (state.work_order_type == 3) {
|
|
||||||
state.versionsData = result.data || [];
|
|
||||||
}
|
|
||||||
state.tableData = result.data || [];
|
state.tableData = result.data || [];
|
||||||
} else {
|
} else {
|
||||||
state.error = `获取列表数据失败: 错误码 ${result?.code}`;
|
state.error = `获取列表数据失败: 错误码 ${result?.code}`;
|
||||||
|
Reference in New Issue
Block a user