diff --git a/components.d.ts b/components.d.ts index c84f273..f818db3 100644 --- a/components.d.ts +++ b/components.d.ts @@ -9,6 +9,8 @@ declare module 'vue' { export interface GlobalComponents { Breadcrumb: typeof import('./src/components/Breadcrumb/index.vue')['default'] ElBadge: typeof import('element-plus/es')['ElBadge'] + ElBreadcrumb: typeof import('element-plus/es')['ElBreadcrumb'] + ElBreadcrumbItem: typeof import('element-plus/es')['ElBreadcrumbItem'] ElButton: typeof import('element-plus/es')['ElButton'] ElCarousel: typeof import('element-plus/es')['ElCarousel'] ElCarouselItem: typeof import('element-plus/es')['ElCarouselItem'] @@ -16,11 +18,13 @@ declare module 'vue' { ElCheckbox: typeof import('element-plus/es')['ElCheckbox'] ElCol: typeof import('element-plus/es')['ElCol'] ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider'] + ElCountdown: typeof import('element-plus/es')['ElCountdown'] ElDatePicker: typeof import('element-plus/es')['ElDatePicker'] ElDialog: typeof import('element-plus/es')['ElDialog'] ElEmpty: typeof import('element-plus/es')['ElEmpty'] ElForm: typeof import('element-plus/es')['ElForm'] ElFormItem: typeof import('element-plus/es')['ElFormItem'] + ElHeader: typeof import('element-plus/es')['ElHeader'] ElIcon: typeof import('element-plus/es')['ElIcon'] ElImage: typeof import('element-plus/es')['ElImage'] ElInput: typeof import('element-plus/es')['ElInput'] @@ -28,11 +32,16 @@ declare module 'vue' { ElMenu: typeof import('element-plus/es')['ElMenu'] ElMenuItem: typeof import('element-plus/es')['ElMenuItem'] ElOption: typeof import('element-plus/es')['ElOption'] + ElPageHeader: typeof import('element-plus/es')['ElPageHeader'] ElPagination: typeof import('element-plus/es')['ElPagination'] ElPopconfirm: typeof import('element-plus/es')['ElPopconfirm'] ElProgress: typeof import('element-plus/es')['ElProgress'] + ElRadioButton: typeof import('element-plus/es')['ElRadioButton'] + ElRadioGroup: typeof import('element-plus/es')['ElRadioGroup'] ElRow: typeof import('element-plus/es')['ElRow'] ElSelect: typeof import('element-plus/es')['ElSelect'] + ElStep: typeof import('element-plus/es')['ElStep'] + ElSteps: typeof import('element-plus/es')['ElSteps'] ElTable: typeof import('element-plus/es')['ElTable'] ElTableColumn: typeof import('element-plus/es')['ElTableColumn'] ElTag: typeof import('element-plus/es')['ElTag'] diff --git a/env/.env.dev b/env/.env.dev index 12a9914..8c14d12 100644 --- a/env/.env.dev +++ b/env/.env.dev @@ -7,9 +7,9 @@ VITE_API_URL = '/proxyApi' # 开发环境接口地址 # VITE_proxyTarget = 'http://10.40.92.74:8080' #盛旭 -# VITE_proxyTarget = 'http://192.168.2.246:28080' # 马帅 +VITE_proxyTarget = 'http://192.168.2.246:28080' # 马帅 # VITE_proxyTarget = 'http://192.168.2.123:28080' # 梁超 -VITE_proxyTarget = 'http://192.168.0.244:28580' # 测试服务 +# VITE_proxyTarget = 'http://192.168.0.244:28580' # 测试服务 # VITE_proxyTarget = 'http://192.168.2.129:18080' # 马帅 # VITE_proxyTarget = 'http://10.40.92.185:9206' # 赵福海 ( 设备类型) diff --git a/src/components/uploadComponentNew/index.vue b/src/components/uploadComponentNew/index.vue index 89f8ae6..3e790f5 100644 --- a/src/components/uploadComponentNew/index.vue +++ b/src/components/uploadComponentNew/index.vue @@ -100,6 +100,11 @@ const props = defineProps({ type: Number || String, default: 10, }, + currentIndex: { + // 文件上传的最大体积 M + type: Number, + default: 0, + }, disabledFlag: { //是否禁用 type: Boolean, @@ -185,7 +190,7 @@ const successUpload = (response: any, file: any) => { } Object.assign(fileInfo, response.data) fileListNew.value.push(fileInfo) - emit('onFileChange', fileListNew.value) + emit('onFileChange', fileListNew.value, props.currentIndex) // console.log(fileListNew.value, '-----------3333333333333') } else { @@ -242,7 +247,7 @@ const handleExceed = (files: any, fileList: any) => { // 移除文件 const removeFile = (file: any, data: any) => { fileListNew.value = fileListNew.value.filter((e: any) => e.uid != file.uid) - emit('onFileChange', fileListNew.value) + emit('onFileChange', fileListNew.value, props.currentIndex) } // 预览 const preview = (data: any) => { diff --git a/src/http/api/rent-termination/index.ts b/src/http/api/rent-termination/index.ts index dffee16..f9e9f75 100644 --- a/src/http/api/rent-termination/index.ts +++ b/src/http/api/rent-termination/index.ts @@ -5,10 +5,30 @@ import { post, get, put } from 'http/index' */ /** - * * @param data 查询参数 获取退租列表 * @returns */ export const getRentTerminationListApi = (data: any = {}) => { return get(`/material-mall/lease-repair/list`, data) +} +/** + * @param orderId 查询参数 获取退租详情 订单ID + * @returns + */ +export const getOrderDetailsByIdApi = (orderId: any) => { + return get(`/material-mall/order/getOrderDetailsById`, { orderId }) +} +/** + * @param data 退租检修提交 获取退租详情 data参数 + * @returns + */ +export const setAddLeaseRepairApi = (data: any) => { + return post(`/material-mall/lease-repair/add`, data) +} +/** + * @param orderId 退租检修提交 获取检修详情 订单ID + * @returns + */ +export const getOverhaulApi = (orderId: any) => { + return get(`/material-mall/lease-repair/getById`, { orderId }) } \ No newline at end of file diff --git a/src/views/cart/components/date-picker-button.vue b/src/views/cart/components/date-picker-button.vue index b71493b..afe0ce1 100644 --- a/src/views/cart/components/date-picker-button.vue +++ b/src/views/cart/components/date-picker-button.vue @@ -4,15 +4,16 @@ {{ displayDate }} @@ -20,6 +21,11 @@ diff --git a/src/views/user/lessor/settlement/index.vue b/src/views/user/lessor/settlement/index.vue index 83f1f02..9c64ce8 100644 --- a/src/views/user/lessor/settlement/index.vue +++ b/src/views/user/lessor/settlement/index.vue @@ -12,7 +12,7 @@ @@ -100,13 +100,14 @@ }" > - - - - - - - + + + + + + + + diff --git a/src/views/user/sourcingNeed/index.vue b/src/views/user/sourcingNeed/index.vue index f972aa3..711438d 100644 --- a/src/views/user/sourcingNeed/index.vue +++ b/src/views/user/sourcingNeed/index.vue @@ -10,20 +10,20 @@ @@ -44,9 +44,9 @@ @@ -121,19 +121,18 @@