diff --git a/.env.development b/.env.development index 36f63d9..f8f2a3b 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.210:18899' +VITE_APP_BASE_API = 'http://192.168.110.149:18899' # 应用访问路径 例如使用前缀 /admin/ VITE_APP_CONTEXT_PATH = '/' diff --git a/src/api/wuziguanli/beijian/index.ts b/src/api/wuziguanli/beijian/index.ts index a066032..f913945 100644 --- a/src/api/wuziguanli/beijian/index.ts +++ b/src/api/wuziguanli/beijian/index.ts @@ -61,3 +61,16 @@ export const delBeipinBeijian = (id: string | number | Array) = method: 'delete' }); }; + +/** + * 运维-物资-备件-查询总览 + * @param query + * @returns {*} + */ +export const chuRuKuTotal = (data:any): AxiosPromise => { + return request({ + url: '/ops/beipinBeijian/getCount', + method: 'get', + params: data + }); +}; \ No newline at end of file diff --git a/src/api/wuziguanli/caigouPlan/index.ts b/src/api/wuziguanli/caigouPlan/index.ts index ba6a719..c5a50ac 100644 --- a/src/api/wuziguanli/caigouPlan/index.ts +++ b/src/api/wuziguanli/caigouPlan/index.ts @@ -54,3 +54,45 @@ export const caigouPlanDetail = (id: string | number): AxiosPromise => { + return request({ + url: '/ops/caigouPlan', + method: 'put', + data: data + }); +}; + +// /** +// * 查询运维-物资-采购计划单年度金额 +// * @param query +// * @returns {*} +// */ +// export const getJinE = (query?: CaigouPlanQuery): AxiosPromise => { +// return request({ +// url: '/ops/caigouPlan/getJinE', +// method: 'get', +// params: query +// }); +// }; + +/** + * 查询运维-物资-采购计划单年度金额 + * @param id + * @returns {*} + */ +export const getCount = (id: string | number): AxiosPromise => { + return request({ + url: '/ops/caigouPlan/getJinE', + method: 'get', + params: { + projectId: id + } + }); +}; diff --git a/src/api/wuziguanli/caigouPlan/types.ts b/src/api/wuziguanli/caigouPlan/types.ts index 83d1196..ea67c67 100644 --- a/src/api/wuziguanli/caigouPlan/types.ts +++ b/src/api/wuziguanli/caigouPlan/types.ts @@ -178,6 +178,18 @@ export interface CaigouPlanVO { * 采购申请计划文件 查询 */ opsCaigouPlanFilesVos?: Array; + /** + * 申请原因 + */ + reason?: string; + /** + * 供应商名称 + */ + gonyingshangName?: string; + /** + * 设备类型 + */ + shebeiType?: string; } @@ -360,8 +372,18 @@ export interface CaigouPlanForm extends BaseEntity { * 出货时间 */ chouhuoTime?: string; - - + /** + * 申请原因 + */ + reason?: string; + /** + * 供应商名称 + */ + gonyingshangName?: string; + /** + * 设备类型 + */ + shebeiType?: string; } export interface CaigouPlanQuery extends PageQuery { @@ -545,6 +567,18 @@ export interface CaigouPlanQuery extends PageQuery { * 出货时间 */ chouhuoTime?: string; + /** + * 申请原因 + */ + reason?: string; + /** + * 供应商名称 + */ + gonyingshangName?: string; + /** + * 设备类型 + */ + shebeiType?: string; } diff --git a/src/api/wuziguanli/churuku/index.ts b/src/api/wuziguanli/churuku/index.ts index 98f16ff..4a8b4d1 100644 --- a/src/api/wuziguanli/churuku/index.ts +++ b/src/api/wuziguanli/churuku/index.ts @@ -62,15 +62,43 @@ export const delChurukudan = (id: string | number | Array) => { }); }; +/** + * 运维-物资-出入库单折现图 + * @param query + * @returns {*} + */ +export const getChuRuKuCountLine = (data:any): AxiosPromise => { + return request({ + url: '/ops/churukudan/getChuRuKuDayCount', + method: 'get', + params: data + }); +}; + /** * 运维-物资-出入库单柱状图 * @param query * @returns {*} */ -export const getChuRuKuCountBar = (data:any): AxiosPromise => { +export const getChuRuKuDayCountBar = (data:any): AxiosPromise => { return request({ url: '/ops/churukudan/getChuRuKuCount', method: 'get', params: data }); }; + +/** + * 运维-物资-出入库单-查询产品名称列表 + * @param query + * @returns {*} + */ +export const getChanpinLists = (data:any): AxiosPromise => { + return request({ + url: '/ops/caigouPlan/getChanpinList', + method: 'get', + params: data + }); +}; + + diff --git a/src/api/wuziguanli/churuku/types.ts b/src/api/wuziguanli/churuku/types.ts index d9a539b..4457dc5 100644 --- a/src/api/wuziguanli/churuku/types.ts +++ b/src/api/wuziguanli/churuku/types.ts @@ -47,6 +47,18 @@ export interface ChurukudanVO { */ danjvType: string; + /** + * 审核状态 + */ + auditStatus?: string; + /** + * 产品名称 + */ + chanpinName?: string; + /** + * 产品id + */ + chanpinId?: string | number; } export interface ChurukudanForm extends BaseEntity { @@ -102,6 +114,14 @@ export interface ChurukudanForm extends BaseEntity { * 审核状态 */ auditStatus?: string; + /** + * 产品名称 + */ + chanpinName?: string; + /** + * 产品id + */ + chanpinId?: string | number; } @@ -139,11 +159,18 @@ export interface ChurukudanQuery extends PageQuery { * 开始日期 */ startDate?: string; - + /** + * 产品名称 + */ + chanpinName?: string; /** * 结束日期 */ endDate?: string; + /** + * 产品id + */ + chanpinId?: string | number; /** * 日期范围参数 */ diff --git a/src/components/FileUpload/index.vue b/src/components/FileUpload/index.vue index 13093ec..2347861 100644 --- a/src/components/FileUpload/index.vue +++ b/src/components/FileUpload/index.vue @@ -1,5 +1,16 @@ @@ -55,7 +55,7 @@ import { propTypes } from '@/utils/propTypes'; import { delOss, listByIds } from '@/api/system/oss'; import { globalHeaders } from '@/utils/request'; - +import { ref } from 'vue'; const props = defineProps({ modelValue: { type: [String, Object, Array], @@ -89,7 +89,6 @@ const showTip = computed(() => props.isShowTip && (props.fileType || props.fileS const fileUploadRef = ref(); - // 监听 fileType 变化,更新 fileAccept const fileAccept = computed(() => props.fileType.map((type) => `.${type}`).join(',')); @@ -200,7 +199,6 @@ const uploadedSuccessfully = () => { uploadList.value = []; number.value = 0; emit('update:modelValue', listToString(fileList.value)); - emit('update:fileList', fileList.value); proxy?.$modal.closeLoading(); } }; diff --git a/src/layout/components/AppMain.vue b/src/layout/components/AppMain.vue index b6c7b61..cb0db77 100644 --- a/src/layout/components/AppMain.vue +++ b/src/layout/components/AppMain.vue @@ -2,9 +2,11 @@
- +
+ +
diff --git a/src/store/modules/procurementDraft.ts b/src/store/modules/procurementDraft.ts index 3b042d2..a099e4d 100644 --- a/src/store/modules/procurementDraft.ts +++ b/src/store/modules/procurementDraft.ts @@ -70,11 +70,18 @@ export const useProcurementDraftStore = defineStore('procurementDraft', () => { return false; }; + // 清除所有草稿 + const clearAllDrafts = (): void => { + draftList.value = []; + saveDraftsToStorage(draftList.value); + }; + return { draftList, saveDraft, getDraftList, getDraft, - deleteDraft + deleteDraft, + clearAllDrafts }; }); \ No newline at end of file diff --git a/src/views/integratedManage/stateManage/components/manageForm.vue b/src/views/integratedManage/stateManage/components/manageForm.vue index 5d6d9ae..e584bc6 100644 --- a/src/views/integratedManage/stateManage/components/manageForm.vue +++ b/src/views/integratedManage/stateManage/components/manageForm.vue @@ -2,7 +2,7 @@
- + diff --git a/src/views/materialManagement/components/DataAnalysis.vue b/src/views/materialManagement/components/DataAnalysis.vue index 2181888..4602de8 100644 --- a/src/views/materialManagement/components/DataAnalysis.vue +++ b/src/views/materialManagement/components/DataAnalysis.vue @@ -19,9 +19,29 @@ \ No newline at end of file diff --git a/src/views/materialManagement/components/updateInfo.vue b/src/views/materialManagement/components/updateInfo.vue deleted file mode 100644 index 7a4b752..0000000 --- a/src/views/materialManagement/components/updateInfo.vue +++ /dev/null @@ -1,261 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/views/materialManagement/components/upload.vue b/src/views/materialManagement/components/upload.vue new file mode 100644 index 0000000..48b9fc8 --- /dev/null +++ b/src/views/materialManagement/components/upload.vue @@ -0,0 +1,278 @@ + + + + + diff --git a/src/views/materialManagement/inventoryManagement.vue b/src/views/materialManagement/inventoryManagement.vue index e291202..6839ecc 100644 --- a/src/views/materialManagement/inventoryManagement.vue +++ b/src/views/materialManagement/inventoryManagement.vue @@ -8,8 +8,8 @@
单据列表
- +
@@ -23,20 +23,20 @@ - + + - - - - + + - + - +
@@ -252,7 +252,7 @@ - + @@ -260,12 +260,12 @@ :value="dict.value"> - +