From d8d997c16725c208090eb1cd6371105aa89aaeee Mon Sep 17 00:00:00 2001
From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com>
Date: Wed, 4 Dec 2024 16:40:54 +0800
Subject: [PATCH] =?UTF-8?q?=E9=80=80=E7=A7=9F=E7=AE=A1=E7=90=86=E9=A1=B5?=
=?UTF-8?q?=E9=9D=A2=E5=8A=9F=E8=83=BD=E5=AE=8C=E5=96=84?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components.d.ts | 9 +
env/.env.dev | 4 +-
src/components/uploadComponentNew/index.vue | 9 +-
src/http/api/rent-termination/index.ts | 22 +-
.../cart/components/date-picker-button.vue | 28 +-
src/views/cart/index.vue | 1 -
src/views/equip/detail.vue | 9 +-
.../user/lessor/rent-termination/index.vue | 1118 +++++++++--------
src/views/user/lessor/settlement/index.vue | 21 +-
src/views/user/sourcingNeed/index.vue | 154 +--
10 files changed, 724 insertions(+), 651 deletions(-)
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 @@
{
- addOrEditDialogVisible = true
isRepublish = true
dialogTitle = '新增'
+ addOrEditDialogVisible = true
}
"
type="primary"
@@ -95,8 +95,8 @@
:data="leaseList"
show-overflow-tooltip
:header-cell-style="{
- background: '#00a288',
color: '#fff',
+ background: '#00a288',
}"
>
@@ -121,19 +121,18 @@
重新发布
@@ -148,7 +147,7 @@
v-if="row.leaseStatus != 1"
>
-
+
删除
@@ -170,47 +169,23 @@
-
-
-
-
-
-
-
-
-
@@ -307,8 +266,8 @@
clearable
:max="9999"
style="width: 100%"
- v-model="addOrEditForm.leaseDay"
placeholder="请输入预估租期"
+ v-model="addOrEditForm.leaseDay"
/>
@@ -319,8 +278,8 @@
:min="1"
:max="9999"
style="width: 100%"
- v-model="addOrEditForm.leaseNum"
placeholder="请输入预估数量"
+ v-model="addOrEditForm.leaseNum"
/>
@@ -333,12 +292,29 @@
type="date"
style="width: 100%"
value-format="YYYY-MM-DD"
+ :disabled-date="disabledDate"
v-model="addOrEditForm.endTime"
placeholder="请选择需求截止日期"
- :disabled-date="disabledDate"
/>
+
+
+
+
+
+
+
@@ -367,17 +343,17 @@
@@ -420,8 +396,8 @@