diff --git a/.env.development b/.env.development index 21892b7..fe20df3 100644 --- a/.env.development +++ b/.env.development @@ -5,7 +5,7 @@ VITE_APP_TITLE = 新能源项目管理平台 VITE_APP_ENV = 'development' # 开发环境 -VITE_APP_BASE_API = 'http://192.168.110.180:8898' +VITE_APP_BASE_API = 'http://192.168.110.159:8898' # 无人机接口地址 diff --git a/src/views/design/billofQuantities/index.vue b/src/views/design/billofQuantities/index.vue index 1881ffc..6bbc7ba 100644 --- a/src/views/design/billofQuantities/index.vue +++ b/src/views/design/billofQuantities/index.vue @@ -42,14 +42,14 @@ 审核 - 查看流程 + 查看流程 @@ -152,6 +152,10 @@ async function getVersionNums(isSheet = true) { state.options = rows || []; if (state.options.length > 0) { 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); if (isSheet) { @@ -218,9 +222,6 @@ async function handleQueryList(isSheet = true) { const result = await obtainTheList(state.queryForm); if (result?.code === 200) { - if (state.work_order_type == 3) { - state.versionsData = result.data || []; - } state.tableData = result.data || []; } else { state.error = `获取列表数据失败: 错误码 ${result?.code}`; diff --git a/src/views/materials/overallPlanMaterialSupply/index.vue b/src/views/materials/overallPlanMaterialSupply/index.vue new file mode 100644 index 0000000..e69de29