Browse Source

立项申请表详情页面修改

ljb 9 months ago
parent
commit
e4f37edd03

+ 11 - 0
src/api/projectManage/projectList.js

@@ -34,6 +34,17 @@ export const getDetail = (params) => {
   })
   })
 }
 }
 
 
+// 获取项目立项信息
+export const getApprove = (params) => {
+  return request({
+    url: '/api/kd-scientific/xm/approval',
+    method: 'get',
+    params: {
+      ...params,
+    }
+  })
+}
+
 export const add = (row) => {
 export const add = (row) => {
   return request({
   return request({
     url: '/api/kd-scientific/xm/save',
     url: '/api/kd-scientific/xm/save',

+ 2 - 2
src/views/project-manage/components/apply-form.vue

@@ -201,7 +201,7 @@ import secondUnitCascader from "@/components/second-unit-cascader";
 import personSelect from "@/components/person-select";
 import personSelect from "@/components/person-select";
 import { getDictionary } from "@/api/system/dictbiz";
 import { getDictionary } from "@/api/system/dictbiz";
 import { getList as getTechnicanRosterList } from "@/api/basicResource/technicianRoster";
 import { getList as getTechnicanRosterList } from "@/api/basicResource/technicianRoster";
-import { add, update, getDetail } from "@/api/projectManage/projectList";
+import { add, update, getApprove } from "@/api/projectManage/projectList";
 import moment from "moment";
 import moment from "moment";
 import { deepClone } from "@/util/util";
 import { deepClone } from "@/util/util";
 import Decimal from "decimal.js";
 import Decimal from "decimal.js";
@@ -403,7 +403,7 @@ export default {
     },
     },
     getProjectDetail(xmId) {
     getProjectDetail(xmId) {
       this.loading = true;
       this.loading = true;
-      getDetail({ id: xmId }).then(({ data }) => {
+      getApprove({ xmId }).then(({ data }) => {
         this.loading = false;
         this.loading = false;
         if (data.code == 200) {
         if (data.code == 200) {
           let beanData = { ...data.data };
           let beanData = { ...data.data };