diff --git a/components.d.ts b/components.d.ts index 16c4173..02bd1a8 100644 --- a/components.d.ts +++ b/components.d.ts @@ -17,6 +17,7 @@ declare module 'vue' { ElDatePicker: typeof import('element-plus/es')['ElDatePicker'] ElDialog: typeof import('element-plus/es')['ElDialog'] ElDivider: typeof import('element-plus/es')['ElDivider'] + ElEmpty: typeof import('element-plus/es')['ElEmpty'] ElForm: typeof import('element-plus/es')['ElForm'] ElFormItem: typeof import('element-plus/es')['ElFormItem'] ElIcon: typeof import('element-plus/es')['ElIcon'] @@ -28,6 +29,8 @@ declare module 'vue' { ElPageHeader: typeof import('element-plus/es')['ElPageHeader'] ElPagination: typeof import('element-plus/es')['ElPagination'] 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'] ElTable: typeof import('element-plus/es')['ElTable'] diff --git a/env/.env.sit b/env/.env.sit index 705ebda..71559b1 100644 --- a/env/.env.sit +++ b/env/.env.sit @@ -3,4 +3,4 @@ VITE_ENV = 'production' VITE_BUILD_MODE = 'sit' # 线上环境接口地址 -VITE_API_URL = 'https://testSit.com' \ No newline at end of file +VITE_API_URL = 'http://192.168.1.3:10086' \ No newline at end of file diff --git a/package.json b/package.json index 2d44b55..968873b 100644 --- a/package.json +++ b/package.json @@ -1,14 +1,14 @@ { - "name": "vue3pctemplate", + "name": "zrpt_front", "version": "0.0.0", "private": true, "scripts": { "dev": "vite --mode dev", "serve1": "vite --mode serve1", "build": "npm run build:pro", - "build:sit": "vue-tsc && vite build --mode sit", - "build:uat": "vue-tsc && vite build --mode uat", - "build:pro": "vue-tsc && vite build --mode production", + "build:sit": "vite build --mode sit", + "build:uat": "vite build --mode uat", + "build:pro": "vite build --mode production", "preview": "vite preview", "build-only": "vite build", "type-check": "vue-tsc --noEmit -p tsconfig.app.json --composite false" diff --git a/src/components/uploadComponent/index.vue b/src/components/uploadComponent/index.vue index 1e134c9..68102f6 100644 --- a/src/components/uploadComponent/index.vue +++ b/src/components/uploadComponent/index.vue @@ -5,7 +5,7 @@ :action="props.actionUrl" :auto-upload="props.autoUpload" style="width: 100%" - :on-success="(response, file) => successUpload(response, file)" + :on-success="(response:any, file:any) => successUpload(response, file)" :on-error="errorUpload" :accept="props.acceptTypeList.join(',')" :before-upload="beforeUpload" @@ -15,9 +15,9 @@ :file-list="props.fileList" :disabled="props.disabledFlag" :on-change="changeFileFn" - :on-remove="(file, fileList) => removeFile(file, fileList)" - :on-preview="(file) => preview(file)" - :on-progress="(event, file, fileList) => onProgressFn(event, file, fileList)" + :on-remove="(file:any, fileList:any) => removeFile(file, fileList)" + :on-preview="(file:any) => preview(file)" + :on-progress="(event:any, file:any, fileList:any) => onProgressFn(event, file, fileList)" :list-type="props.listType"> @@ -164,7 +164,7 @@ message: '上传失败请重试!' }) } - const beforeUpload = (file) => { + const beforeUpload = (file:any) => { const { name = '', size } = file if (size > props.maxSize * 1024 * 1000) { ElMessage({ @@ -182,7 +182,7 @@ return false } } - const handleExceed = (files, fileList) => { + const handleExceed = (files:any, fileList:any) => { ElMessage({ type: 'warning', message: `当前限制选择 10 个文件,本次选择了 ${files.length} 个文件,共选择了 ${ @@ -191,12 +191,12 @@ }) } // 移除文件 - const removeFile = (file, data) => { + const removeFile = (file:any, data:any) => { console.log(file, data) - props.fileList = data + // props.fileList = data } // 预览 - const preview = (data) => { + const preview = (data:any) => { const { url, response = {} } = data || {} let name = data.name const downLoadTypeList = props.downLoadTypeList @@ -229,7 +229,7 @@ } } - const onProgressFn = (event, file, fileList) => { + const onProgressFn = (event:any, file:any, fileList:any) => { processFlag.value = true loadProcess.value = event.percent.toFixed(2) if (loadProcess.value >= 100) { diff --git a/src/utils/elementCom.ts b/src/utils/elementCom.ts index dc4eae1..7ce75bf 100644 --- a/src/utils/elementCom.ts +++ b/src/utils/elementCom.ts @@ -33,7 +33,7 @@ export const ElMessageBoxOpert = (title = '', text = "", onfirmText = "", cancel inputErrorMessage: inputErrorMessage, confirmButtonClass:confirmButtonClass }) - .then(({ value }) => { + .then(( value ) => { callBack(row,value) }) .catch(() => { diff --git a/src/views/EnterpriseCertification.vue b/src/views/EnterpriseCertification.vue index 52b8577..7e1bcd7 100644 --- a/src/views/EnterpriseCertification.vue +++ b/src/views/EnterpriseCertification.vue @@ -412,7 +412,7 @@ - + - 上传附件 - + - + --> 提 交 diff --git a/src/views/user/orderManagement/index.vue b/src/views/user/orderManagement/index.vue index 9b77188..2615c5f 100644 --- a/src/views/user/orderManagement/index.vue +++ b/src/views/user/orderManagement/index.vue @@ -33,11 +33,14 @@ } /* 查看按钮 */ - const clickPreviewDetails = (row:any) => { - console.log('查看',row) - router.push({ name: 'orderDetails',query:{ - orderId:row.orderId - } }) + const clickPreviewDetails = (row: any) => { + console.log('查看', row) + router.push({ + name: 'orderDetails', + query: { + orderId: row.orderId + } + }) } /* 续租按钮 */ @@ -47,12 +50,15 @@ } /* 确认收货 */ - const clickConfirmReceipt = (row:any) => { + const clickConfirmReceipt = (row: any) => { console.log('确认收货') - router.push({ name: 'orderDetails',query:{ - orderId:row.orderId, - confirm:"true" - } }) + router.push({ + name: 'orderDetails', + query: { + orderId: row.orderId, + confirm: 'true' + } + }) } const time = ref([]) @@ -89,37 +95,40 @@ - - - - - - - - - - - - + + + + + + + + + + + + + + - + {{ detailsInfo.duration}} {{ detailsInfo.addressId @@ -26,9 +26,9 @@ {{ detailsInfo.realStartTime }} - {{ - detailsInfo.isMachinist - }} + + {{ detailsInfo.isMachinist == 0 ? '否' : '是' }} + {{ detailsInfo.address }} @@ -45,26 +45,49 @@ xxxx-xx-xx ~ xxxx-xx-xx --> - - + -
合计:234234元
+
合计:{{ totalMoneyFn() }}
- + -
请上传文件
+
请上传文件
@@ -141,7 +165,7 @@