| | |
| | | export default { |
| | | serverUrl:"10.153.19.150:8086" |
| | | serverUrl:"10.153.19.150:8080" |
| | | //serverUrl:"res.abeim.cn" |
| | | } |
| | |
| | | "xlsx": "^0.18.5" |
| | | }, |
| | | "devDependencies": { |
| | | "@types/node": "^20.11.30", |
| | | "@types/sortablejs": "^1.15.7", |
| | | "@vitejs/plugin-vue": "^4.3.4", |
| | | "vite": "^4.4.9" |
| | |
| | | "integrity": "sha512-ZTcmhiI3NNU7dEvWLZJkzG6ao49zOIjEgIE0RgV7wbPxU0f2xT3VSAHw2gmst8swH6V0YkLRGp4qPlX/6I90MQ==", |
| | | "dependencies": { |
| | | "@types/lodash": "*" |
| | | } |
| | | }, |
| | | "node_modules/@types/node": { |
| | | "version": "20.11.30", |
| | | "resolved": "https://registry.npmmirror.com/@types/node/-/node-20.11.30.tgz", |
| | | "integrity": "sha512-dHM6ZxwlmuZaRmUPfv1p+KrdD1Dci04FbdEm/9wEMouFqxYoFl5aMkt0VMAUtYRQDyYvD41WJLukhq/ha3YuTw==", |
| | | "dev": true, |
| | | "dependencies": { |
| | | "undici-types": "~5.26.4" |
| | | } |
| | | }, |
| | | "node_modules/@types/sortablejs": { |
| | |
| | | "node": ">=8.0" |
| | | } |
| | | }, |
| | | "node_modules/undici-types": { |
| | | "version": "5.26.5", |
| | | "resolved": "https://registry.npmmirror.com/undici-types/-/undici-types-5.26.5.tgz", |
| | | "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", |
| | | "dev": true |
| | | }, |
| | | "node_modules/unplugin": { |
| | | "version": "1.5.0", |
| | | "resolved": "https://registry.npmjs.org/unplugin/-/unplugin-1.5.0.tgz", |
| | |
| | | "integrity": "sha512-ZTcmhiI3NNU7dEvWLZJkzG6ao49zOIjEgIE0RgV7wbPxU0f2xT3VSAHw2gmst8swH6V0YkLRGp4qPlX/6I90MQ==", |
| | | "requires": { |
| | | "@types/lodash": "*" |
| | | } |
| | | }, |
| | | "@types/node": { |
| | | "version": "20.11.30", |
| | | "resolved": "https://registry.npmmirror.com/@types/node/-/node-20.11.30.tgz", |
| | | "integrity": "sha512-dHM6ZxwlmuZaRmUPfv1p+KrdD1Dci04FbdEm/9wEMouFqxYoFl5aMkt0VMAUtYRQDyYvD41WJLukhq/ha3YuTw==", |
| | | "dev": true, |
| | | "requires": { |
| | | "undici-types": "~5.26.4" |
| | | } |
| | | }, |
| | | "@types/sortablejs": { |
| | |
| | | "is-number": "^7.0.0" |
| | | } |
| | | }, |
| | | "undici-types": { |
| | | "version": "5.26.5", |
| | | "resolved": "https://registry.npmmirror.com/undici-types/-/undici-types-5.26.5.tgz", |
| | | "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", |
| | | "dev": true |
| | | }, |
| | | "unplugin": { |
| | | "version": "1.5.0", |
| | | "resolved": "https://registry.npmjs.org/unplugin/-/unplugin-1.5.0.tgz", |
| | |
| | | "xlsx": "^0.18.5" |
| | | }, |
| | | "devDependencies": { |
| | | "@types/node": "^20.11.30", |
| | | "@types/sortablejs": "^1.15.7", |
| | | "@vitejs/plugin-vue": "^4.3.4", |
| | | "vite": "^4.4.9" |
New file |
| | |
| | | export default function downloadFile(url,fileName){ |
| | | // 文件的URL地址 |
| | | const link = document.createElement('a'); |
| | | link.href = url; |
| | | link.setAttribute('download', fileName); |
| | | link.click(); |
| | | } |
| | |
| | | shape:'Shape', |
| | | bendRadius:'Bend Radius', |
| | | edgingType:'Edging Type', |
| | | import:'import', |
| | | import:'Import', |
| | | template:'Template', |
| | | msg:{ |
| | | productCheck:'Please select a product', |
| | | tableLengthNot:'No table data', |
| | |
| | | bendRadius:'弯钢弧度', |
| | | edgingType:'磨边类型', |
| | | import:'导入', |
| | | template:'模板', |
| | | msg:{ |
| | | productCheck:'请选择产品', |
| | | tableLengthNot:'没有表格数据', |
| | |
| | | import useUserInfoStore from '@/stores/userInfo' |
| | | import SelectProduct from "@/views/sd/product/SelectProduct.vue" |
| | | import {changeFilterEvent,filterChanged} from "@/hook" |
| | | import {addListener,toolbarButtonClickEvent} from "@/hook/mouseMove"; |
| | | import {addListener,toolbarButtonClickEvent} from "@/hook/mouseMove" |
| | | import downLoadFile from "@/hook/downLoadFile" |
| | | import {useI18n} from "vue-i18n" |
| | | const { t } = useI18n() |
| | | |
| | |
| | | fileReader.readAsBinaryString(files[0]) |
| | | } |
| | | |
| | | //模板下载 |
| | | const importTemplate = () => { |
| | | downLoadFile('../../../../public/importTemplate.xlsx','importTemplate.xlsx') |
| | | } |
| | | |
| | | //行单元格修改修改触发此事件 |
| | | const editClosedEvent = ({ row, column }) => { |
| | | //判断修改相应的数值修改面积与金额 |
| | |
| | | </div> |
| | | </template> |
| | | <template #toolbar_buttons> |
| | | <vxe-button @click="importTemplate">{{$t('order.template')}}</vxe-button> |
| | | <vxe-button @click="importEvent">{{$t('order.import')}}</vxe-button> |
| | | </template> |
| | | |
| | |
| | | |
| | | server: |
| | | port: 8086 |
| | | port: 8080 |
| | | |
| | | |
| | | spring: |