diff --git a/auto-imports.d.ts b/auto-imports.d.ts index 00e05c3..a606bd4 100644 --- a/auto-imports.d.ts +++ b/auto-imports.d.ts @@ -82,6 +82,6 @@ declare global { // for type re-export declare global { // @ts-ignore - export type { Component, ComponentPublicInstance, ComputedRef, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, VNode, WritableComputedRef } from 'vue' + export type { Component, ComponentPublicInstance, ComputedRef, DirectiveBinding, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, MaybeRef, MaybeRefOrGetter, VNode, WritableComputedRef } from 'vue' import('vue') } diff --git a/components.d.ts b/components.d.ts index cea2857..570c1c5 100644 --- a/components.d.ts +++ b/components.d.ts @@ -8,41 +8,23 @@ export {} 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'] ElCascader: typeof import('element-plus/es')['ElCascader'] - 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'] - ElImg: typeof import('element-plus/es')['ElImg'] ElInput: typeof import('element-plus/es')['ElInput'] - ElInputNumber: typeof import('element-plus/es')['ElInputNumber'] 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/src/router/index.ts b/src/router/index.ts index 12bffc3..04e4fe0 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -235,6 +235,17 @@ const routes: Array = [ isLogin: true }, }, + { + path: '/contract-manage', + name: 'contract-manage', + component: () => import('views/user/contract-manage/index.vue'), + meta: { + title: '合同管理', + keepAlive: true, + AuthFlag: false, + isLogin: true + }, + }, { path: '/rent-termination', name: 'rent-termination', @@ -246,6 +257,7 @@ const routes: Array = [ isLogin: true }, }, + { path: '/settlement-manage', name: 'settlement-manage', diff --git a/src/views/user/contract-manage/index.vue b/src/views/user/contract-manage/index.vue new file mode 100644 index 0000000..e52a769 --- /dev/null +++ b/src/views/user/contract-manage/index.vue @@ -0,0 +1,362 @@ + + + + + diff --git a/src/views/user/goodsManagement/index.vue b/src/views/user/goodsManagement/index.vue index 1abdb17..fc8cc77 100644 --- a/src/views/user/goodsManagement/index.vue +++ b/src/views/user/goodsManagement/index.vue @@ -401,6 +401,20 @@ const dialogTypeChange = () => { // equipmentDeploymentParams.value.deviceCount = 1 // countDisabled.value = true // } + console.log('deviceTypeList',deviceTypeList[0].data.propertyNames) + if(deviceTypeList[0].data.propertyNames==null){ + propertyNames.value=[] + }else{ + propertyNames.value=[] + deviceTypeList[0].data.propertyNames.forEach((item:any) =>{ + propertyNames.value.push({'maType':item,'value':null}) + options.value.push({'label':item,'value':item}) + }) + console.log(propertyNames.value) + // propertyNames.value = deviceTypeList[0].data.propertyNames + // console.log(propertyNames.value) + } + // propertyNames.value = deviceTypeList[0].data.propertyNames isDisabled.value = true addAndEditForm.unitName = deviceTypeList[0].data.unitName addAndEditForm.dayLeasePrice = deviceTypeList[0].data.leasePrice @@ -960,6 +974,45 @@ const onDeleteImgExaminationPdf = (j: any, index: any) => { const onDialogClose = () => { addAndEditFormRef.value.resetFields() } +const propertyNames = ref([ + // { + // maType: 1, + // value: 2, + // }, + // { + // maType: 2, + // value: 3, + // }, + // { + // maType: 3, + // value: 4, + // }, +]) +const options = ref([ + // { + // label:'重量', + // value:1 + // }, + // { + // label:'宽度', + // value:2 + // }, + // { + // label:'长度', + // value:3 + // } +]) + + //新增属性 + const addPartItem = () => { + propertyNames.value.push({'maType':null,'value':null}); + } + + const removePartItem = (index:any)=> { + if (propertyNames.value.length > 1) { + propertyNames.value.splice(index, 1); + } + }