diff --git a/components.d.ts b/components.d.ts
index 9a5a2ad..e740531 100644
--- a/components.d.ts
+++ b/components.d.ts
@@ -17,11 +17,12 @@ 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']
@@ -31,11 +32,12 @@ declare module 'vue' {
ElOption: typeof import('element-plus/es')['ElOption']
ElPagination: typeof import('element-plus/es')['ElPagination']
ElPopconfirm: typeof import('element-plus/es')['ElPopconfirm']
+ ElPopover: typeof import('element-plus/es')['ElPopover']
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/src/components/uploadComponentNew/index.vue b/src/components/uploadComponentNew/index.vue
index ec80c72..89f8ae6 100644
--- a/src/components/uploadComponentNew/index.vue
+++ b/src/components/uploadComponentNew/index.vue
@@ -10,9 +10,7 @@
:on-error="errorUpload"
:accept="props.acceptTypeList.join(',')"
:before-upload="beforeUpload"
- :multiple="props.multiple"
- :limit="props.maxLimit"
- :on-exceed="handleExceed"
+ :multiple="false"
:file-list="fileListNew"
:disabled="props.disabledFlag"
:on-change="changeFileFn"
@@ -92,6 +90,11 @@ const props = defineProps({
type: Number || String,
default: 1,
},
+ minLimit: {
+ // 最大上传个数限制
+ type: Number || String,
+ default: 1,
+ },
maxSize: {
// 文件上传的最大体积 M
type: Number || String,
@@ -200,6 +203,8 @@ const errorUpload = (res: any) => {
}
const beforeUpload = (file: any) => {
console.log('file', file)
+
+ console.log(props.minLimit, '个数---')
const { name = '', size } = file
if (size > props.maxSize * 1024 * 1000) {
ElMessage({
@@ -208,6 +213,14 @@ const beforeUpload = (file: any) => {
})
return false
}
+
+ if (fileListNew.value.length + props.minLimit >= 4) {
+ ElMessage({
+ type: 'warning',
+ message: `最多只能上传${props.maxLimit}个文件`,
+ })
+ return false
+ }
let names = name.split('.')
let currentName = names[names.length - 1]
console.log('acceptTypeListacceptTypeList', props.acceptTypeList, currentName)
diff --git a/src/store/user.ts b/src/store/user.ts
index 74287e4..88dc173 100644
--- a/src/store/user.ts
+++ b/src/store/user.ts
@@ -144,14 +144,14 @@ export const useStore = defineStore('myUser', {
editUserMenuList(type: number) {
const leaseList: any = [
{ title: '订单管理', name: 'orderManagementCz' },
- { title: '商品管理', name: 'goodsManagement' },
+ { title: '装备管理', name: 'goodsManagement' },
{ title: '商品上下架', name: 'goodsUpdown' },
// { title: '机手管理', name: 'operatorManagement' },
// { title: '寻源竞价', name: 'sourcingBidding' },
// { title: '专区管理', name: 'zoneManag' },
]
const lesseeList: any = [
- { title: '寻源需求', name: 'sourcingNeed' },
+ { title: '需求管理', name: 'sourcingNeed' },
{ title: '订单管理', name: 'orderManagement' },
]
this.leaseAndLesseeUserList = []
diff --git a/src/views/cart/components/date-picker-button.vue b/src/views/cart/components/date-picker-button.vue
new file mode 100644
index 0000000..b71493b
--- /dev/null
+++ b/src/views/cart/components/date-picker-button.vue
@@ -0,0 +1,120 @@
+
+