Commit e801990f authored by zhanglongbao's avatar zhanglongbao

fix

parent b93d00ac
/* eslint-disable */
/* prettier-ignore */
// @ts-nocheck
// noinspection JSUnusedGlobalSymbols
// Generated by unplugin-auto-import
export {}
declare global {
}
/* eslint-disable */
// @ts-nocheck
// Generated by unplugin-vue-components
// Read more: https://github.com/vuejs/core/pull/3399
export {}
/* prettier-ignore */
declare module 'vue' {
export interface GlobalComponents {
Address: typeof import('./src/components/widget/field/address/index.vue')['default']
Avatar: typeof import('./src/components/avatar/index.vue')['default']
Client_tag: typeof import('./src/components/widget/field/client_tag/index.vue')['default']
Create_form_data: typeof import('./src/components/create_form_data/index.vue')['default']
Date_time: typeof import('./src/components/widget/field/date_time/index.vue')['default']
Date_time_range: typeof import('./src/components/widget/field/date_time_range/index.vue')['default']
Dd: typeof import('./src/components/name/dd.vue')['default']
Dept: typeof import('./src/components/widget/field/dept/index.vue')['default']
File: typeof import('./src/components/widget/field/file/index.vue')['default']
Image: typeof import('./src/components/widget/field/image/index.vue')['default']
Input: typeof import('./src/components/widget/field/input/index.vue')['default']
Multiline: typeof import('./src/components/widget/field/multiline/index.vue')['default']
Name: typeof import('./src/components/name/index.vue')['default']
Number: typeof import('./src/components/widget/field/number/index.vue')['default']
Order_client: typeof import('./src/components/widget/field/order_client/index.vue')['default']
Order_product: typeof import('./src/components/widget/field/order_product/index.vue')['default']
Order_tag: typeof import('./src/components/widget/field/order_tag/index.vue')['default']
Parting_line: typeof import('./src/components/widget/field/parting_line/index.vue')['default']
Popup: typeof import('./src/components/popup/index.vue')['default']
Priority: typeof import('./src/components/widget/field/priority/index.vue')['default']
RouterLink: typeof import('vue-router')['RouterLink']
RouterView: typeof import('vue-router')['RouterView']
Select: typeof import('./src/components/select/index.vue')['default']
Select_address: typeof import('./src/components/select_address/index.vue')['default']
Select_client: typeof import('./src/components/select_client/index.vue')['default']
Select_client_tag: typeof import('./src/components/select_client_tag/index.vue')['default']
Select_order_tag: typeof import('./src/components/select_order_tag/index.vue')['default']
Select_product: typeof import('./src/components/select_product/index.vue')['default']
Select_time: typeof import('./src/components/select_time/index.vue')['default']
Select_user_dept: typeof import('./src/components/select_user_dept/index.vue')['default']
Signature: typeof import('./src/components/widget/field/signature/index.vue')['default']
Single_choice: typeof import('./src/components/widget/field/single_choice/index.vue')['default']
Toast: typeof import('./src/components/toast/index.vue')['default']
User: typeof import('./src/components/widget/field/user/index.vue')['default']
User_dept_list: typeof import('./src/components/user_dept_list/index.vue')['default']
VanCheckbox: typeof import('vant/es')['Checkbox']
VanPicker: typeof import('vant/es')['Picker']
VanPopup: typeof import('vant/es')['Popup']
Widget: typeof import('./src/components/widget/index.vue')['default']
Wx: typeof import('./src/components/name/wx.vue')['default']
}
}
......@@ -10,9 +10,12 @@
"dependencies": {
"axios": "^1.7.5",
"dingtalk-jsapi": "^3.0.38",
"mitt": "^3.0.1",
"pinia": "^2.2.2",
"smooth-signature": "^1.0.15",
"vant": "^4.9.4",
"vconsole": "^3.15.1",
"viewerjs": "^1.11.6",
"vue": "^3.4.37",
"vue-router": "^4.4.3"
},
......@@ -72,6 +75,18 @@
"node": ">=6.0.0"
}
},
"node_modules/@babel/runtime": {
"version": "7.25.6",
"resolved": "https://mirrors.huaweicloud.com/repository/npm/@babel/runtime/-/runtime-7.25.6.tgz",
"integrity": "sha512-VBj9MYyDb9tuLq7yzqjgzt6Q+IBQLrGZfdjOekyEirZPHxXWoTSGUTMrpsfi58Up73d13NfYLv8HT9vmznjzhQ==",
"license": "MIT",
"dependencies": {
"regenerator-runtime": "^0.14.0"
},
"engines": {
"node": ">=6.9.0"
}
},
"node_modules/@babel/types": {
"version": "7.25.6",
"resolved": "https://mirrors.huaweicloud.com/repository/npm/@babel/types/-/types-7.25.6.tgz",
......@@ -1150,6 +1165,29 @@
"url": "https://github.com/sponsors/mesqueeb"
}
},
"node_modules/copy-text-to-clipboard": {
"version": "3.2.0",
"resolved": "https://mirrors.huaweicloud.com/repository/npm/copy-text-to-clipboard/-/copy-text-to-clipboard-3.2.0.tgz",
"integrity": "sha512-RnJFp1XR/LOBDckxTib5Qjr/PMfkatD0MUCQgdpqS8MdKiNUzBjAQBEN6oUy+jW7LI93BBG3DtMB2KOOKpGs2Q==",
"license": "MIT",
"engines": {
"node": ">=12"
},
"funding": {
"url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/core-js": {
"version": "3.38.1",
"resolved": "https://mirrors.huaweicloud.com/repository/npm/core-js/-/core-js-3.38.1.tgz",
"integrity": "sha512-OP35aUorbU3Zvlx7pjsFdu1rGNnD4pgw/CWoYzRY3t2EzoVT7shKHY1dlAy3f41cGIO7ZDPQimhGFTlEYkG/Hw==",
"hasInstallScript": true,
"license": "MIT",
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/core-js"
}
},
"node_modules/csstype": {
"version": "3.1.3",
"resolved": "https://mirrors.huaweicloud.com/repository/npm/csstype/-/csstype-3.1.3.tgz",
......@@ -1634,6 +1672,12 @@
"url": "https://github.com/sponsors/isaacs"
}
},
"node_modules/mitt": {
"version": "3.0.1",
"resolved": "https://mirrors.huaweicloud.com/repository/npm/mitt/-/mitt-3.0.1.tgz",
"integrity": "sha512-vKivATfr97l2/QBCYAkXYDbrIWPM2IIKEl7YPhjCvKlG3kE2gm+uBo6nEXK3M5/Ffh/FLpKExzOQ3JJoJGFKBw==",
"license": "MIT"
},
"node_modules/mlly": {
"version": "1.7.1",
"resolved": "https://mirrors.huaweicloud.com/repository/npm/mlly/-/mlly-1.7.1.tgz",
......@@ -1661,6 +1705,11 @@
"dev": true,
"license": "MIT"
},
"node_modules/mutation-observer": {
"version": "1.0.3",
"resolved": "https://mirrors.huaweicloud.com/repository/npm/mutation-observer/-/mutation-observer-1.0.3.tgz",
"integrity": "sha512-M/O/4rF2h776hV7qGMZUH3utZLO/jK7p8rnNgGkjKUw8zCGjRQPxB8z6+5l8+VjRUQ3dNYu4vjqXYLr+U8ZVNA=="
},
"node_modules/nanoid": {
"version": "3.3.7",
"resolved": "https://mirrors.huaweicloud.com/repository/npm/nanoid/-/nanoid-3.3.7.tgz",
......@@ -1907,6 +1956,12 @@
"node": ">=8.10.0"
}
},
"node_modules/regenerator-runtime": {
"version": "0.14.1",
"resolved": "https://mirrors.huaweicloud.com/repository/npm/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz",
"integrity": "sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==",
"license": "MIT"
},
"node_modules/reusify": {
"version": "1.0.4",
"resolved": "https://mirrors.huaweicloud.com/repository/npm/reusify/-/reusify-1.0.4.tgz",
......@@ -2242,6 +2297,24 @@
"vue": "^3.0.0"
}
},
"node_modules/vconsole": {
"version": "3.15.1",
"resolved": "https://mirrors.huaweicloud.com/repository/npm/vconsole/-/vconsole-3.15.1.tgz",
"integrity": "sha512-KH8XLdrq9T5YHJO/ixrjivHfmF2PC2CdVoK6RWZB4yftMykYIaXY1mxZYAic70vADM54kpMQF+dYmvl5NRNy1g==",
"license": "MIT",
"dependencies": {
"@babel/runtime": "^7.17.2",
"copy-text-to-clipboard": "^3.0.1",
"core-js": "^3.11.0",
"mutation-observer": "^1.0.3"
}
},
"node_modules/viewerjs": {
"version": "1.11.6",
"resolved": "https://mirrors.huaweicloud.com/repository/npm/viewerjs/-/viewerjs-1.11.6.tgz",
"integrity": "sha512-TlhdSp2oEOLFXvEp4psKaeTjR5zBjTRcM/sHUN8PkV1UWuY8HKC8n7GaVdW5Xqnwdr/F1OmzLik1QwDjI4w/nw==",
"license": "MIT"
},
"node_modules/vite": {
"version": "5.4.2",
"resolved": "https://mirrors.huaweicloud.com/repository/npm/vite/-/vite-5.4.2.tgz",
......@@ -2419,6 +2492,14 @@
"@babel/types": "^7.25.6"
}
},
"@babel/runtime": {
"version": "7.25.6",
"resolved": "https://mirrors.huaweicloud.com/repository/npm/@babel/runtime/-/runtime-7.25.6.tgz",
"integrity": "sha512-VBj9MYyDb9tuLq7yzqjgzt6Q+IBQLrGZfdjOekyEirZPHxXWoTSGUTMrpsfi58Up73d13NfYLv8HT9vmznjzhQ==",
"requires": {
"regenerator-runtime": "^0.14.0"
}
},
"@babel/types": {
"version": "7.25.6",
"resolved": "https://mirrors.huaweicloud.com/repository/npm/@babel/types/-/types-7.25.6.tgz",
......@@ -3040,6 +3121,16 @@
"is-what": "^3.14.1"
}
},
"copy-text-to-clipboard": {
"version": "3.2.0",
"resolved": "https://mirrors.huaweicloud.com/repository/npm/copy-text-to-clipboard/-/copy-text-to-clipboard-3.2.0.tgz",
"integrity": "sha512-RnJFp1XR/LOBDckxTib5Qjr/PMfkatD0MUCQgdpqS8MdKiNUzBjAQBEN6oUy+jW7LI93BBG3DtMB2KOOKpGs2Q=="
},
"core-js": {
"version": "3.38.1",
"resolved": "https://mirrors.huaweicloud.com/repository/npm/core-js/-/core-js-3.38.1.tgz",
"integrity": "sha512-OP35aUorbU3Zvlx7pjsFdu1rGNnD4pgw/CWoYzRY3t2EzoVT7shKHY1dlAy3f41cGIO7ZDPQimhGFTlEYkG/Hw=="
},
"csstype": {
"version": "3.1.3",
"resolved": "https://mirrors.huaweicloud.com/repository/npm/csstype/-/csstype-3.1.3.tgz",
......@@ -3356,6 +3447,11 @@
"brace-expansion": "^2.0.1"
}
},
"mitt": {
"version": "3.0.1",
"resolved": "https://mirrors.huaweicloud.com/repository/npm/mitt/-/mitt-3.0.1.tgz",
"integrity": "sha512-vKivATfr97l2/QBCYAkXYDbrIWPM2IIKEl7YPhjCvKlG3kE2gm+uBo6nEXK3M5/Ffh/FLpKExzOQ3JJoJGFKBw=="
},
"mlly": {
"version": "1.7.1",
"resolved": "https://mirrors.huaweicloud.com/repository/npm/mlly/-/mlly-1.7.1.tgz",
......@@ -3380,6 +3476,11 @@
"integrity": "sha512-VNTrAak/KhO2i8dqqnqnAHOa3cYBwXEZe9h+D5h/1ZqFSTEFHdM65lR7RoIqq3tBBYavsOXV84NoHXZ0AkPyqQ==",
"dev": true
},
"mutation-observer": {
"version": "1.0.3",
"resolved": "https://mirrors.huaweicloud.com/repository/npm/mutation-observer/-/mutation-observer-1.0.3.tgz",
"integrity": "sha512-M/O/4rF2h776hV7qGMZUH3utZLO/jK7p8rnNgGkjKUw8zCGjRQPxB8z6+5l8+VjRUQ3dNYu4vjqXYLr+U8ZVNA=="
},
"nanoid": {
"version": "3.3.7",
"resolved": "https://mirrors.huaweicloud.com/repository/npm/nanoid/-/nanoid-3.3.7.tgz",
......@@ -3508,6 +3609,11 @@
"picomatch": "^2.2.1"
}
},
"regenerator-runtime": {
"version": "0.14.1",
"resolved": "https://mirrors.huaweicloud.com/repository/npm/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz",
"integrity": "sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw=="
},
"reusify": {
"version": "1.0.4",
"resolved": "https://mirrors.huaweicloud.com/repository/npm/reusify/-/reusify-1.0.4.tgz",
......@@ -3727,6 +3833,22 @@
"@vue/shared": "^3.4.33"
}
},
"vconsole": {
"version": "3.15.1",
"resolved": "https://mirrors.huaweicloud.com/repository/npm/vconsole/-/vconsole-3.15.1.tgz",
"integrity": "sha512-KH8XLdrq9T5YHJO/ixrjivHfmF2PC2CdVoK6RWZB4yftMykYIaXY1mxZYAic70vADM54kpMQF+dYmvl5NRNy1g==",
"requires": {
"@babel/runtime": "^7.17.2",
"copy-text-to-clipboard": "^3.0.1",
"core-js": "^3.11.0",
"mutation-observer": "^1.0.3"
}
},
"viewerjs": {
"version": "1.11.6",
"resolved": "https://mirrors.huaweicloud.com/repository/npm/viewerjs/-/viewerjs-1.11.6.tgz",
"integrity": "sha512-TlhdSp2oEOLFXvEp4psKaeTjR5zBjTRcM/sHUN8PkV1UWuY8HKC8n7GaVdW5Xqnwdr/F1OmzLik1QwDjI4w/nw=="
},
"vite": {
"version": "5.4.2",
"resolved": "https://mirrors.huaweicloud.com/repository/npm/vite/-/vite-5.4.2.tgz",
......
......@@ -40,9 +40,6 @@ devDependencies:
'@types/sortablejs':
specifier: ^1.15.8
version: 1.15.8
'@vant/auto-import-resolver':
specifier: ^1.2.1
version: 1.2.1
'@vitejs/plugin-vue':
specifier: ^5.1.2
version: 5.1.2(vite@5.4.2)(vue@3.4.38)
......@@ -52,12 +49,6 @@ devDependencies:
typescript:
specifier: ^5.5.3
version: 5.5.4
unplugin-auto-import:
specifier: ^0.18.2
version: 0.18.2
unplugin-vue-components:
specifier: ^0.27.4
version: 0.27.4(vue@3.4.38)
vite:
specifier: ^5.4.1
version: 5.4.2(@types/node@22.5.0)(less@4.2.0)
......@@ -67,10 +58,6 @@ devDependencies:
packages:
/@antfu/utils@0.7.10:
resolution: {integrity: sha512-+562v9k4aI80m1+VuMHehNJWLOFjBnXn3tdOitzD0il5b7smkSBal4+a3oKiQTbrwMmN/TBUMDvbdoWDehgOww==}
dev: true
/@babel/helper-string-parser@7.24.8:
resolution: {integrity: sha512-pO9KhhRcuUyGnJWwyEgnRJTSIZHiT+vMD0kPeD+so0l7mxkMT19g3pjY9GTnHySck/hDzq+dtW/4VgnMkippsQ==}
engines: {node: '>=6.9.0'}
......@@ -311,41 +298,6 @@ packages:
/@jridgewell/sourcemap-codec@1.5.0:
resolution: {integrity: sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==}
/@nodelib/fs.scandir@2.1.5:
resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==}
engines: {node: '>= 8'}
dependencies:
'@nodelib/fs.stat': 2.0.5
run-parallel: 1.2.0
dev: true
/@nodelib/fs.stat@2.0.5:
resolution: {integrity: sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==}
engines: {node: '>= 8'}
dev: true
/@nodelib/fs.walk@1.2.8:
resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==}
engines: {node: '>= 8'}
dependencies:
'@nodelib/fs.scandir': 2.1.5
fastq: 1.17.1
dev: true
/@rollup/pluginutils@5.1.0:
resolution: {integrity: sha512-XTIWOPPcpvyKI6L1NHo0lFlCyznUEyPmPY1mc3KpPVDYulHSTvyeLNVW00QTLIAFNhR3kYnJTQHeGqU4M3n09g==}
engines: {node: '>=14.0.0'}
peerDependencies:
rollup: ^1.20.0||^2.0.0||^3.0.0||^4.0.0
peerDependenciesMeta:
rollup:
optional: true
dependencies:
'@types/estree': 1.0.5
estree-walker: 2.0.2
picomatch: 2.3.1
dev: true
/@rollup/rollup-android-arm-eabi@4.21.0:
resolution: {integrity: sha512-WTWD8PfoSAJ+qL87lE7votj3syLavxunWhzCnx3XFxFiI/BA/r3X7MUM8dVrH8rb2r4AiO8jJsr3ZjdaftmnfA==}
cpu: [arm]
......@@ -497,10 +449,6 @@ packages:
resolution: {integrity: sha512-b79830lW+RZfwaztgs1aVPgbasJ8e7AXtZYHTELNXZPsERt4ymJdjV4OccDbHQAvHrCcFpbF78jkm0R6h/pZVg==}
dev: true
/@vant/auto-import-resolver@1.2.1:
resolution: {integrity: sha512-czGWW4UolNITkF3qQSQlpHDHAsI3/GHVKbRMmEEpry7NWdnU4p5a5jBi0VApbaLa5g80Hy10XVs3IB+UozoSUw==}
dev: true
/@vant/popperjs@1.3.0:
resolution: {integrity: sha512-hB+czUG+aHtjhaEmCJDuXOep0YTZjdlRR+4MSmIFnkCQIxJaXLQdSsR90XWvAI2yvKUI7TCGqR8pQg2RtvkMHw==}
dev: false
......@@ -637,20 +585,6 @@ packages:
/@vue/shared@3.4.38:
resolution: {integrity: sha512-q0xCiLkuWWQLzVrecPb0RMsNWyxICOjPrcrwxTUEHb1fsnvni4dcuyG7RT/Ie7VPTvnjzIaWzRMUBsrqNj/hhw==}
/acorn@8.12.1:
resolution: {integrity: sha512-tcpGyI9zbizT9JbV6oYE477V6mTlXvvi0T0G3SNIYE2apm/G5huBa1+K89VGeovbg+jycCrfhl3ADxErOuO6Jg==}
engines: {node: '>=0.4.0'}
hasBin: true
dev: true
/anymatch@3.1.3:
resolution: {integrity: sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==}
engines: {node: '>= 8'}
dependencies:
normalize-path: 3.0.0
picomatch: 2.3.1
dev: true
/asynckit@0.4.0:
resolution: {integrity: sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==}
dev: false
......@@ -669,39 +603,12 @@ packages:
resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==}
dev: true
/binary-extensions@2.3.0:
resolution: {integrity: sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==}
engines: {node: '>=8'}
dev: true
/brace-expansion@2.0.1:
resolution: {integrity: sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==}
dependencies:
balanced-match: 1.0.2
dev: true
/braces@3.0.3:
resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==}
engines: {node: '>=8'}
dependencies:
fill-range: 7.1.1
dev: true
/chokidar@3.6.0:
resolution: {integrity: sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==}
engines: {node: '>= 8.10.0'}
dependencies:
anymatch: 3.1.3
braces: 3.0.3
glob-parent: 5.1.2
is-binary-path: 2.1.0
is-glob: 4.0.3
normalize-path: 3.0.0
readdirp: 3.6.0
optionalDependencies:
fsevents: 2.3.3
dev: true
/combined-stream@1.0.8:
resolution: {integrity: sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==}
engines: {node: '>= 0.8'}
......@@ -713,10 +620,6 @@ packages:
resolution: {integrity: sha512-7CEBgcMjVmitjYo5q8JTJVra6X5mQ20uTThdK+0kR7UEaDrAWEQcRiBtWJzga4eRpP6afNwwLsX2SET2JhVB1Q==}
dev: true
/confbox@0.1.7:
resolution: {integrity: sha512-uJcB/FKZtBMCJpK8MQji6bJHgu1tixKPxRLeGkNzBoOZzpnZUJm0jm2/sBDWcuBx1dYgxV4JU+g5hmNxCyAmdA==}
dev: true
/copy-anything@2.0.6:
resolution: {integrity: sha512-1j20GZTsvKNkc4BY3NpMOM8tt///wY3FpIzozTOFO2ffuZcV61nojHXVKIy3WM+7ADCy5FVhdZYHYDdgTU0yJw==}
dependencies:
......@@ -740,18 +643,6 @@ packages:
resolution: {integrity: sha512-e/1zu3xH5MQryN2zdVaF0OrdNLUbvWxzMbi+iNA6Bky7l1RoP8a2fIbRocyHclXt/arDrrR6lL3TqFD9pMQTsg==}
dev: true
/debug@4.3.6:
resolution: {integrity: sha512-O/09Bd4Z1fBrU4VzkhFqVgpPzaGbw6Sm9FEkBT1A/YBXQFGuuSxa1dN2nxgxS34JmKXqYx8CZAwEVoJFImUXIg==}
engines: {node: '>=6.0'}
peerDependencies:
supports-color: '*'
peerDependenciesMeta:
supports-color:
optional: true
dependencies:
ms: 2.1.2
dev: true
/delayed-stream@1.0.0:
resolution: {integrity: sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==}
engines: {node: '>=0.4.0'}
......@@ -807,44 +698,9 @@ packages:
'@esbuild/win32-x64': 0.21.5
dev: true
/escape-string-regexp@5.0.0:
resolution: {integrity: sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw==}
engines: {node: '>=12'}
dev: true
/estree-walker@2.0.2:
resolution: {integrity: sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==}
/estree-walker@3.0.3:
resolution: {integrity: sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==}
dependencies:
'@types/estree': 1.0.5
dev: true
/fast-glob@3.3.2:
resolution: {integrity: sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==}
engines: {node: '>=8.6.0'}
dependencies:
'@nodelib/fs.stat': 2.0.5
'@nodelib/fs.walk': 1.2.8
glob-parent: 5.1.2
merge2: 1.4.1
micromatch: 4.0.8
dev: true
/fastq@1.17.1:
resolution: {integrity: sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==}
dependencies:
reusify: 1.0.4
dev: true
/fill-range@7.1.1:
resolution: {integrity: sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==}
engines: {node: '>=8'}
dependencies:
to-regex-range: 5.0.1
dev: true
/follow-redirects@1.15.6:
resolution: {integrity: sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA==}
engines: {node: '>=4.0'}
......@@ -872,13 +728,6 @@ packages:
dev: true
optional: true
/glob-parent@5.1.2:
resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==}
engines: {node: '>= 6'}
dependencies:
is-glob: 4.0.3
dev: true
/graceful-fs@4.2.11:
resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==}
requiresBuild: true
......@@ -907,38 +756,10 @@ packages:
dev: true
optional: true
/is-binary-path@2.1.0:
resolution: {integrity: sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==}
engines: {node: '>=8'}
dependencies:
binary-extensions: 2.3.0
dev: true
/is-extglob@2.1.1:
resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==}
engines: {node: '>=0.10.0'}
dev: true
/is-glob@4.0.3:
resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==}
engines: {node: '>=0.10.0'}
dependencies:
is-extglob: 2.1.1
dev: true
/is-number@7.0.0:
resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==}
engines: {node: '>=0.12.0'}
dev: true
/is-what@3.14.1:
resolution: {integrity: sha512-sNxgpk9793nzSs7bA6JQJGeIuRBQhAaNGG77kzYQgMkrID+lS6SlK07K5LaptscDlSaIgH+GPFzf+d75FVxozA==}
dev: true
/js-tokens@9.0.0:
resolution: {integrity: sha512-WriZw1luRMlmV3LGJaR6QOJjWwgLUTf89OwT2lUOyjX2dJGBwgmIkbcz+7WFZjrZM635JOIR517++e/67CP9dQ==}
dev: true
/less@4.2.0:
resolution: {integrity: sha512-P3b3HJDBtSzsXUl0im2L7gTO5Ubg8mEN6G8qoTS77iXxXX4Hvu4Qj540PZDvQ8V6DmX6iXo98k7Md0Cm1PrLaA==}
engines: {node: '>=6'}
......@@ -957,14 +778,6 @@ packages:
source-map: 0.6.1
dev: true
/local-pkg@0.5.0:
resolution: {integrity: sha512-ok6z3qlYyCDS4ZEU27HaU6x/xZa9Whf8jD4ptH5UZTQYZVYeb9bnZ3ojVhiJNLiXK1Hfc0GNbLXcmZ5plLDDBg==}
engines: {node: '>=14'}
dependencies:
mlly: 1.7.1
pkg-types: 1.2.0
dev: true
/magic-string@0.30.11:
resolution: {integrity: sha512-+Wri9p0QHMy+545hKww7YAu5NyzF8iomPL/RQazugQ9+Ez4Ic3mERMd8ZTX5rfK944j+560ZJi8iAwgak1Ac7A==}
dependencies:
......@@ -980,19 +793,6 @@ packages:
dev: true
optional: true
/merge2@1.4.1:
resolution: {integrity: sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==}
engines: {node: '>= 8'}
dev: true
/micromatch@4.0.8:
resolution: {integrity: sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==}
engines: {node: '>=8.6'}
dependencies:
braces: 3.0.3
picomatch: 2.3.1
dev: true
/mime-db@1.52.0:
resolution: {integrity: sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==}
engines: {node: '>= 0.6'}
......@@ -1024,19 +824,6 @@ packages:
resolution: {integrity: sha512-vKivATfr97l2/QBCYAkXYDbrIWPM2IIKEl7YPhjCvKlG3kE2gm+uBo6nEXK3M5/Ffh/FLpKExzOQ3JJoJGFKBw==}
dev: false
/mlly@1.7.1:
resolution: {integrity: sha512-rrVRZRELyQzrIUAVMHxP97kv+G786pHmOKzuFII8zDYahFBS7qnHh2AlYSl1GAHhaMPCz6/oHjVMcfFYgFYHgA==}
dependencies:
acorn: 8.12.1
pathe: 1.1.2
pkg-types: 1.2.0
ufo: 1.5.4
dev: true
/ms@2.1.2:
resolution: {integrity: sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==}
dev: true
/muggle-string@0.4.1:
resolution: {integrity: sha512-VNTrAak/KhO2i8dqqnqnAHOa3cYBwXEZe9h+D5h/1ZqFSTEFHdM65lR7RoIqq3tBBYavsOXV84NoHXZ0AkPyqQ==}
dev: true
......@@ -1061,11 +848,6 @@ packages:
dev: true
optional: true
/normalize-path@3.0.0:
resolution: {integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==}
engines: {node: '>=0.10.0'}
dev: true
/parse-node-version@1.0.1:
resolution: {integrity: sha512-3YHlOa/JgH6Mnpr05jP9eDG254US9ek25LyIxZlDItp2iJtwyaXQb57lBYLdT3MowkUFYEV2XXNAYIPlESvJlA==}
engines: {node: '>= 0.10'}
......@@ -1075,18 +857,9 @@ packages:
resolution: {integrity: sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==}
dev: true
/pathe@1.1.2:
resolution: {integrity: sha512-whLdWMYL2TwI08hn8/ZqAbrVemu0LNaNNJZX73O6qaIdCTfXutsLhMkjdENX0qhsQ9uIimo4/aQOmXkoon2nDQ==}
dev: true
/picocolors@1.0.1:
resolution: {integrity: sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==}
/picomatch@2.3.1:
resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==}
engines: {node: '>=8.6'}
dev: true
/pify@4.0.1:
resolution: {integrity: sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==}
engines: {node: '>=6'}
......@@ -1112,14 +885,6 @@ packages:
vue-demi: 0.14.10(vue@3.4.38)
dev: false
/pkg-types@1.2.0:
resolution: {integrity: sha512-+ifYuSSqOQ8CqP4MbZA5hDpb97n3E8SVWdJe+Wms9kj745lmd3b7EZJiqvmLwAlmRfjrI7Hi5z3kdBJ93lFNPA==}
dependencies:
confbox: 0.1.7
mlly: 1.7.1
pathe: 1.1.2
dev: true
/postcss@8.4.41:
resolution: {integrity: sha512-TesUflQ0WKZqAvg52PWL6kHgLKP6xB6heTOdoYM0Wt2UHyxNa4K25EZZMgKns3BH1RLVbZCREPpLY0rhnNoHVQ==}
engines: {node: ^10 || ^12 || >=14}
......@@ -1142,26 +907,10 @@ packages:
dev: true
optional: true
/queue-microtask@1.2.3:
resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==}
dev: true
/readdirp@3.6.0:
resolution: {integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==}
engines: {node: '>=8.10.0'}
dependencies:
picomatch: 2.3.1
dev: true
/regenerator-runtime@0.14.1:
resolution: {integrity: sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==}
dev: false
/reusify@1.0.4:
resolution: {integrity: sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==}
engines: {iojs: '>=1.0.0', node: '>=0.10.0'}
dev: true
/rollup@4.21.0:
resolution: {integrity: sha512-vo+S/lfA2lMS7rZ2Qoubi6I5hwZwzXeUIctILZLbHI+laNtvhhOIon2S1JksA5UEDQ7l3vberd0fxK44lTYjbQ==}
engines: {node: '>=18.0.0', npm: '>=8.0.0'}
......@@ -1188,12 +937,6 @@ packages:
fsevents: 2.3.3
dev: true
/run-parallel@1.2.0:
resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==}
dependencies:
queue-microtask: 1.2.3
dev: true
/safer-buffer@2.1.2:
resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==}
requiresBuild: true
......@@ -1206,10 +949,6 @@ packages:
dev: true
optional: true
/scule@1.3.0:
resolution: {integrity: sha512-6FtHJEvt+pVMIB9IBY+IcCJ6Z5f1iQnytgyfKMhDKgmzYG+TeH/wx1y3l27rshSbLiSanrR9ffZDrEsmjlQF2g==}
dev: true
/semver@5.7.2:
resolution: {integrity: sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==}
hasBin: true
......@@ -1238,23 +977,10 @@ packages:
dev: true
optional: true
/strip-literal@2.1.0:
resolution: {integrity: sha512-Op+UycaUt/8FbN/Z2TWPBLge3jWrP3xj10f3fnYxf052bKuS3EKs1ZQcVGjnEMdsNVAM+plXRdmjrZ/KgG3Skw==}
dependencies:
js-tokens: 9.0.0
dev: true
/to-fast-properties@2.0.0:
resolution: {integrity: sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==}
engines: {node: '>=4'}
/to-regex-range@5.0.1:
resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==}
engines: {node: '>=8.0'}
dependencies:
is-number: 7.0.0
dev: true
/tslib@2.7.0:
resolution: {integrity: sha512-gLXCKdN1/j47AiHiOkJN69hJmcbGTHI0ImLmbYLHykhgeN0jVGola9yVjFgzCUklsZQMW55o+dW7IXv3RCXDzA==}
dev: true
......@@ -1264,97 +990,10 @@ packages:
engines: {node: '>=14.17'}
hasBin: true
/ufo@1.5.4:
resolution: {integrity: sha512-UsUk3byDzKd04EyoZ7U4DOlxQaD14JUKQl6/P7wiX4FNvUfm3XL246n9W5AmqwW5RSFJ27NAuM0iLscAOYUiGQ==}
dev: true
/undici-types@6.19.8:
resolution: {integrity: sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==}
dev: true
/unimport@3.11.1:
resolution: {integrity: sha512-DuB1Uoq01LrrXTScxnwOoMSlTXxyKcULguFxbLrMDFcE/CO0ZWHpEiyhovN0mycPt7K6luAHe8laqvwvuoeUPg==}
dependencies:
'@rollup/pluginutils': 5.1.0
acorn: 8.12.1
escape-string-regexp: 5.0.0
estree-walker: 3.0.3
fast-glob: 3.3.2
local-pkg: 0.5.0
magic-string: 0.30.11
mlly: 1.7.1
pathe: 1.1.2
pkg-types: 1.2.0
scule: 1.3.0
strip-literal: 2.1.0
unplugin: 1.12.2
transitivePeerDependencies:
- rollup
dev: true
/unplugin-auto-import@0.18.2:
resolution: {integrity: sha512-Dwb3rAic75harVBrVjwiq6H24PT+nBq2dpxV5BH8NNI6sDFaTytvP+iyo4xy7prQbR3r5K6nMs4f5Wp9PE4g8A==}
engines: {node: '>=14'}
peerDependencies:
'@nuxt/kit': ^3.2.2
'@vueuse/core': '*'
peerDependenciesMeta:
'@nuxt/kit':
optional: true
'@vueuse/core':
optional: true
dependencies:
'@antfu/utils': 0.7.10
'@rollup/pluginutils': 5.1.0
fast-glob: 3.3.2
local-pkg: 0.5.0
magic-string: 0.30.11
minimatch: 9.0.5
unimport: 3.11.1
unplugin: 1.12.2
transitivePeerDependencies:
- rollup
dev: true
/unplugin-vue-components@0.27.4(vue@3.4.38):
resolution: {integrity: sha512-1XVl5iXG7P1UrOMnaj2ogYa5YTq8aoh5jwDPQhemwO/OrXW+lPQKDXd1hMz15qxQPxgb/XXlbgo3HQ2rLEbmXQ==}
engines: {node: '>=14'}
peerDependencies:
'@babel/parser': ^7.15.8
'@nuxt/kit': ^3.2.2
vue: 2 || 3
peerDependenciesMeta:
'@babel/parser':
optional: true
'@nuxt/kit':
optional: true
dependencies:
'@antfu/utils': 0.7.10
'@rollup/pluginutils': 5.1.0
chokidar: 3.6.0
debug: 4.3.6
fast-glob: 3.3.2
local-pkg: 0.5.0
magic-string: 0.30.11
minimatch: 9.0.5
mlly: 1.7.1
unplugin: 1.12.2
vue: 3.4.38(typescript@5.5.4)
transitivePeerDependencies:
- rollup
- supports-color
dev: true
/unplugin@1.12.2:
resolution: {integrity: sha512-bEqQxeC7rxtxPZ3M5V4Djcc4lQqKPgGe3mAWZvxcSmX5jhGxll19NliaRzQSQPrk4xJZSGniK3puLWpRuZN7VQ==}
engines: {node: '>=14.0.0'}
dependencies:
acorn: 8.12.1
chokidar: 3.6.0
webpack-sources: 3.2.3
webpack-virtual-modules: 0.6.2
dev: true
/vant@4.9.4(vue@3.4.38):
resolution: {integrity: sha512-dUu3yopMf2a6MkrdBWxGfDIcHmSs/ULgvBkBcfK8gE29QZ/A6kFyhnUzcMU2yklMGUUwAygzx44TPEfhp7hkfQ==}
peerDependencies:
......@@ -1469,12 +1108,3 @@ packages:
'@vue/server-renderer': 3.4.38(vue@3.4.38)
'@vue/shared': 3.4.38
typescript: 5.5.4
/webpack-sources@3.2.3:
resolution: {integrity: sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==}
engines: {node: '>=10.13.0'}
dev: true
/webpack-virtual-modules@0.6.2:
resolution: {integrity: sha512-66/V2i5hQanC51vBQKPH4aI8NMAcBW59FVBs+rC7eGHupMyfn34q7rZIE+ETlJ+XTevqfUhVVBgSUNSW2flEUQ==}
dev: true
import http from "../axios";
import { container } from "@/utils/container/index";
export default {
// 获取工单状态数量
......@@ -8,21 +7,15 @@ export default {
},
// 工单列表
listOrder(params: { form_id?: string; where?: string }) {
return http.post(
`/order.${container.qr_code ? "external" : "order"}/listOrder`,
params
);
return http.post("/order.order/listOrder", params);
},
// 工单列表
deleteOrder(params: { form_id: string; id: string }) {
deleteOrder(params: { data: { form_id: string; id: string }[] }) {
return http.post("/order.order/deleteOrder", params);
},
// 新建/修改工单
saveOrder(params: any) {
return http.post(
`/order.${container.qr_code ? "external" : "order"}/saveOrder`,
params
);
return http.post("/order.order/saveOrder", params);
},
// 工单详情
orderDetail(params: { form_id: string; id: string }) {
......@@ -61,12 +54,89 @@ export default {
getTemplateData(params: { form_id: string; order_id: string }) {
return http.post("/order.order_template/getTemplateData", params);
},
// 工单标签
listOrderLabel(params: { keyword?: string; page: number; size: number }) {
return http.post(
`/order.${container.qr_code ? "external" : "order"}/listOrderLabel`,
params
);
return http.post("/order.order/listOrderLabel", params);
},
// 指派列表
assignOrderList(params: {
page: number;
size: number;
form_id: string[];
key_word?: string;
where?: string;
}) {
return http.post("/order.order/assignOrderList", params);
},
// 超时工单
timeoutOrderList(params: {
page: number;
size: number;
key_word?: string;
where?: string;
timeout_type: number;
form_id: string;
}) {
return http.post("/order.order/timeoutOrderList", params);
},
// 回访工单
evaluateOrderList(params: {
page: number;
size: number;
form_id: string;
where?: string;
key_word?: string;
evaluate_type: number;
}) {
return http.post("/order.order/evaluateOrderList", params);
},
// 回访工单
fileOrderList(params: {
page: number;
size: number;
form_id: string;
where?: string;
key_word?: string;
}) {
return http.post("/order.order/fileOrderList", params);
},
// 审批工单
approveOrderList(params: {
page: number;
size: number;
form_id: string;
where?: string;
key_word?: string;
approve_type: number;
}) {
return http.post("/order.order/approveOrderList", params);
},
// 审批通过
approvePass(params: {
form_id: string;
id: string;
approve_id: string;
approve_user_id: string;
}) {
return http.post("/order.order/approvePass", params);
},
// 审批退回
approveReturn(params: {
form_id: string;
id: string;
approve_id: string;
approve_user_id: string;
}) {
return http.post("/order.order/approveReturn", params);
},
// 审批取消
reApproveOrder(params: {
form_id: string;
id: string;
submit_ids?: string[];
}) {
return http.post("/order.order/reApproveOrder", params);
},
};
......@@ -24,4 +24,8 @@ export default {
}) {
return http.post("/order.power/CreatePart", params);
},
// 获取当前登录人的权限
GetMyPower() {
return http.post("/order.power/GetMyPower");
},
};
......@@ -30,20 +30,18 @@ export interface Props {
data?: object; // 修改初始化数据
defaultData?: object; // 默认数据(用于兼容初始化关联数据的字段,里面会弹出eidtData)
onHide?: () => void;
onConfirm?: (data: object) => void;
onEditConfirm?: (data: object) => void;
onConfirm?: (data: object, close: Function) => void;
onEditConfirm?: (data: object, close: Function) => void;
}
const props = withDefaults(defineProps<Props>(), {});
console.log("defaultData", props);
const show = ref(false);
onMounted(() => {
show.value = true;
});
const confirm = () => {
props.onConfirm?.(data.value);
props.onEditConfirm?.(edit.value);
close();
props.onConfirm?.(data.value, close);
props.onEditConfirm?.(edit.value, close);
};
const popup_comp = ref();
const close = () => {
......
import { createApp } from "vue";
import Comp from "./index.vue";
import type { Props } from "./index.vue";
import { initApp } from "@/utils/init";
export const $select = (options: Props) => {
const container = document.createElement("div");
......@@ -12,6 +13,7 @@ export const $select = (options: Props) => {
};
const vm = createApp(Comp, options as any);
initApp(vm);
vm.mount(container);
document.body.appendChild(container);
};
import { createApp } from "vue";
import Comp from "./index.vue";
import type { Props } from "./index.vue";
import { initApp } from "@/utils/init";
export const $selectAddress = (options: Props) => {
const container = document.createElement("div");
......@@ -12,6 +13,7 @@ export const $selectAddress = (options: Props) => {
};
const vm = createApp(Comp, options as any);
initApp(vm);
vm.mount(container);
document.body.appendChild(container);
};
import { createApp } from "vue";
import Comp from "./index.vue";
import type { Props } from "./index.vue";
import { initApp } from "@/utils/init";
export const $selectClient = (options: Props) => {
const container = document.createElement("div");
......@@ -12,6 +13,7 @@ export const $selectClient = (options: Props) => {
};
const vm = createApp(Comp, options as any);
initApp(vm);
vm.mount(container);
document.body.appendChild(container);
};
import { createApp } from "vue";
import Comp from "./index.vue";
import type { Props } from "./index.vue";
import { initApp } from "@/utils/init";
export const $selectClientTag = (options: Props) => {
const container = document.createElement("div");
......@@ -12,6 +13,7 @@ export const $selectClientTag = (options: Props) => {
};
const vm = createApp(Comp, options as any);
initApp(vm);
vm.mount(container);
document.body.appendChild(container);
};
import { createApp } from "vue";
import Comp from "./index.vue";
import type { Props } from "./index.vue";
import { initApp } from "@/utils/init";
export const $selectOrderTag = (options: Props) => {
const container = document.createElement("div");
......@@ -12,6 +13,7 @@ export const $selectOrderTag = (options: Props) => {
};
const vm = createApp(Comp, options as any);
initApp(vm);
vm.mount(container);
document.body.appendChild(container);
};
import { createApp } from "vue";
import Comp from "./index.vue";
import type { Props } from "./index.vue";
import { initApp } from "@/utils/init";
export const $selectProduct = (options: Props) => {
const container = document.createElement("div");
......@@ -12,6 +13,7 @@ export const $selectProduct = (options: Props) => {
};
const vm = createApp(Comp, options as any);
initApp(vm);
vm.mount(container);
document.body.appendChild(container);
};
import { createApp } from "vue";
import Comp from "./index.vue";
import type { Props } from "./index.vue";
import { initApp } from "@/utils/init";
export const $selectTime = (options: Props) => {
const container = document.createElement("div");
......@@ -12,6 +13,7 @@ export const $selectTime = (options: Props) => {
};
const vm = createApp(Comp, options as any);
initApp(vm);
vm.mount(container);
document.body.appendChild(container);
};
......@@ -7,7 +7,9 @@
<div class="content">
<div class="img" v-for="it in files">
<img v-signature:src="it.file_url" />
<img
v-signature:src="it.file_url"
@click="preview(it.file_url)" />
<i class="icon-12 remove" @click="remove(it)"></i>
</div>
<div class="img add" @click="upload">
......@@ -20,7 +22,7 @@
<script setup lang="ts">
import { ref } from "vue";
import { FieldProps } from "../config";
import { uploadFile, File } from "@/utils/public";
import { uploadFile, File, preview } from "@/utils/public";
const props = defineProps<FieldProps>();
const emit = defineEmits(["edit"]);
......
......@@ -9,6 +9,7 @@
:disabled="disabled"
:data="modelValue"
:defaultData="defaultData"
:required="it.isneed == 1"
@edit="edit" />
</template>
</div>
......
......@@ -5,6 +5,7 @@ import router from "@/router";
import { createPinia } from "pinia";
import mitt from "mitt";
import VConsole from "vconsole";
import vant from "vant";
// css
import "./assets/css/reset.css";
......@@ -18,5 +19,6 @@ new VConsole();
const app = createApp(App);
app.use(createPinia());
app.use(router);
app.use(vant);
initApp(app);
app.mount("#app");
......@@ -63,8 +63,11 @@ router.beforeEach(async (to, from, next) => {
if (!token) {
await login();
token = getToken()!;
}
} else {
if (!getToken()) {
setToken(token);
}
}
const USER = useUserStore();
await USER.getUserInfo(token); // 获取用户信息
......
......@@ -11,6 +11,7 @@ interface UserStatus {
export const useUserStore = defineStore("user", () => {
const user_info = ref<UserInfo>({} as UserInfo);
const user_status = ref<UserStatus>({} as UserStatus);
const user_power = ref<any>({});
// 获取用户信息
const getUserInfo = async (token: string) => {
......@@ -22,6 +23,7 @@ export const useUserStore = defineStore("user", () => {
}
getWorkStatus();
getUserPower();
};
// 获取用户工作状态
......@@ -32,10 +34,21 @@ export const useUserStore = defineStore("user", () => {
}
};
// 获取用户权限
const getUserPower = async () => {
const msg = await api.power.GetMyPower();
if (msg.code == 0) {
user_power.value = msg.data;
console.log("权限:", user_power.value);
}
};
return {
user_info,
getUserInfo,
user_status,
getWorkStatus,
user_power,
getUserPower,
};
});
import { getUrlKey } from "../public";
import { getToken, getUrlKey } from "../public";
import * as dd_util from "./dd";
import * as wx_util from "./wx";
import { useUserStore } from "@/store/user";
/**
* 判断打开程序的容器
......@@ -26,5 +27,10 @@ export const login = async () => {
await wx_util.login();
} else if (container.browser) {
// router.push({ name: "codeLogin" });
return;
}
const token = getToken()!;
const USER = useUserStore();
await USER.getUserInfo(token); // 获取用户信息
};
import { App } from "vue";
import vant from "vant";
// 指令
import directive from "@/utils/directive";
......@@ -10,5 +11,6 @@ import nameComp from "@/components/name/index.vue";
export const initApp = (app: App<Element>) => {
app.component("avatarComp", avatarComp);
app.component("nameComp", nameComp);
app.use(vant);
app.use(directive);
};
......@@ -2,6 +2,9 @@ import { useOssStore } from "@/store/oss";
import axios from "axios";
import file_icon from "@/assets/file_icon/index";
import { $toast } from "@/components/toast";
import { useUserStore } from "@/store/user";
import { ossSignature } from "./ossSignature";
import { showImagePreview } from "vant";
/**
* 格式化文件大小
......@@ -254,3 +257,18 @@ export const dataFormat = (date: any, fmt: string = "YYYY-MM-DD HH:mm:ss") => {
return fmt.replace(/YYYY|MM|DD|HH|mm|ss/g, (match) => formatMap[match]());
};
// 获取权限
export const getPermission = (permission: string) => {
const USER = useUserStore();
return USER.user_power[permission] == 1;
};
// 查看文件
export const preview = async (url: string) => {
const newUrl = await ossSignature(url);
showImagePreview({
images: [newUrl],
});
};
......@@ -25,7 +25,6 @@ export const getPriority = (label: string): Priority => {
export interface OrderType {
label: string;
value: string;
key: string;
bg_color?: string;
color?: string;
}
......@@ -33,73 +32,45 @@ export const order_type: OrderType[] = [
{
label: "待指派",
value: "0",
key: "WaitOrder",
bg_color: "#EB6539",
color: "white",
},
{
label: "待接单",
value: "1",
key: "MissOrder",
bg_color: "#323F54",
color: "white",
},
{
label: "待开始",
value: "2",
key: "WaitBegin",
bg_color: "#8DA4CE",
color: "white",
},
{
label: "处理中",
value: "3",
key: "Dealing",
bg_color: "#3B8CF7",
color: "white",
},
// {
// label: "待确认",
// value: "4",
// key: "Confirm",
// },
{
label: "已完成",
value: "5",
key: "Finish",
bg_color: "#3E9586",
color: "white",
},
{
label: "已评价",
value: "6",
key: "Evaluate",
bg_color: "#3F93B7",
color: "white",
},
// {
// label: "已确认",
// value: "7",
// key: "Confirming",
// },
{
label: "已取消",
value: "8",
key: "Cancel",
bg_color: "#F24537",
color: "white",
},
// {
// label: "已退回",
// value: "9",
// key: "Return",
// },
{
label: "已挂起",
value: "10",
key: "HangUp",
bg_color: "#856CA8",
color: "white",
label: "待受理",
value: "14",
bg_color: "var(--bg_gray)",
color: "gray",
},
];
export const getType = (type: string) => {
......
......@@ -94,7 +94,8 @@
<img
v-for="it in product_detail?.product_info
?.product_images || []"
v-signature:src="it.file_url" />
v-signature:src="it.file_url"
@click="preview(it.file_url)" />
</div>
</div>
</div>
......@@ -113,7 +114,7 @@
<script setup lang="ts">
import { ref } from "vue";
import api from "@/api";
import { File, hexToRgba } from "@/utils/public";
import { File, hexToRgba, preview } from "@/utils/public";
import { $createFormData } from "@/components/create_form_data/index";
import { $toast } from "@/components/toast/index";
import { useRouter } from "vue-router";
......@@ -179,7 +180,7 @@ const createFormData = (button: ButtonType) => {
product_id: product_detail.value.product_info,
customer_id: product_detail.value.customer_info,
},
onConfirm: async (data) => {
onConfirm: async (data, close) => {
const msg = await api.order.saveOrder({
...data,
form_id: button.order_form_id,
......@@ -187,6 +188,7 @@ const createFormData = (button: ButtonType) => {
});
if (msg.code == 0) {
$toast({ type: "success", message: "创建成功" });
close();
}
},
});
......@@ -226,7 +228,7 @@ init();
box-sizing: border-box;
display: flex;
flex-direction: column;
box-shadow: 0 -2px 4px 1px #f3f3f3;
box-shadow: 0 0 4px 1px #f3f3f3;
.order {
display: flex;
......
......@@ -5,9 +5,35 @@ import { $createFormData } from "@/components/create_form_data/index";
import { order_type, OrderType } from "@/utils/variable";
import { useDataList } from "@/utils/hook";
import { $toast } from "@/components/toast";
import { showConfirmDialog } from "vant";
import { useUserStore } from "@/store/user";
// 工单方法
export const useOrderControls = (callBack = () => {}) => {
const USER = useUserStore();
// 显示审批按钮
const show_approval_btn = (order_detail: any) => {
return (
order_detail.approve_status == 1 &&
(order_detail.approve_users_info || []).find(
(it: any) => it.user_id.id == USER.user_info.id
)?.uid_status == 1
);
};
// 显示重新审批
const show_reapproval_btn = (order_detail: any) => {
return order_detail.status == 14 && order_detail.approve_status == 2;
};
// 显示操作按钮
const showControls = (order_detail: any) => {
return (
order_detail.now_node_id !=
order_detail.node_info?.[order_detail.node_info.length - 1]?.id
);
};
// 派单
const assignOrder = ({ form_id, id }: any) => {
$selectUserDept({
......@@ -73,7 +99,7 @@ export const useOrderControls = (callBack = () => {}) => {
$createFormData({
form_id: finish_order.receipt_template_id,
onEditConfirm: async (data) => {
onEditConfirm: async (data, close) => {
const msg = await api.order.finishOrder({
form_id: form_id,
id: id,
......@@ -81,6 +107,7 @@ export const useOrderControls = (callBack = () => {}) => {
});
if (msg.code == 0) {
$toast({ type: "success", message: "完成工单" });
close();
callBack();
}
},
......@@ -95,7 +122,7 @@ export const useOrderControls = (callBack = () => {}) => {
$createFormData({
form_id: evaluate_order.template_id,
onEditConfirm: async (data) => {
onEditConfirm: async (data, close) => {
const msg = await api.order.evaluateOrder({
form_id: form_id,
id: id,
......@@ -103,6 +130,7 @@ export const useOrderControls = (callBack = () => {}) => {
});
if (msg.code == 0) {
$toast({ type: "success", message: "感谢评价" });
close();
callBack();
}
},
......@@ -116,7 +144,7 @@ export const useOrderControls = (callBack = () => {}) => {
$createFormData({
form_id: order_detail.form_id,
data: order_detail,
onEditConfirm: async (data) => {
onEditConfirm: async (data, close) => {
if (order_detail?.id) {
const msg = await api.order.saveOrder({
form_id: order_detail.form_id,
......@@ -125,6 +153,7 @@ export const useOrderControls = (callBack = () => {}) => {
});
if (msg.code == 0) {
$toast({ type: "success", message: "修改成功" });
close();
callBack();
}
}
......@@ -132,6 +161,86 @@ export const useOrderControls = (callBack = () => {}) => {
});
};
// 通过审批
const approval_pass = (order_detail: any) => {
showConfirmDialog({
title: "提示",
width: "300px",
message: "是否通过审批?",
}).then(async () => {
const msg = await api.order.approvePass({
form_id: order_detail.form_id,
id: order_detail.id,
approve_id: order_detail.approve_info.id,
approve_user_id: USER.user_info.id,
});
if (msg.code == 0) {
$toast({ type: "success", message: "审批通过" });
callBack();
}
});
};
// 退回审批
const approval_return = (order_detail: any) => {
showConfirmDialog({
title: "提示",
width: "300px",
message: "是否退回审批?",
}).then(async () => {
const msg = await api.order.approveReturn({
form_id: order_detail.form_id,
id: order_detail.id,
approve_id: order_detail.approve_info.id,
approve_user_id: USER.user_info.id,
});
if (msg.code == 0) {
$toast({ type: "success", message: "审批退回" });
callBack();
}
});
};
// 重新发起审批
const reApproveOrder = (order_detail: any) => {
showConfirmDialog({
title: "提示",
width: "300px",
message: "是否重新发起审批?",
}).then(async () => {
const msg = await api.order.reApproveOrder({
form_id: order_detail.form_id,
id: order_detail.id,
});
if (msg.code == 0) {
$toast({ type: "success", message: "审批退回" });
callBack();
}
});
};
// 删除
const deleteOrder = (order_detail: any) => {
showConfirmDialog({
title: "提示",
width: "300px",
message: "是否删除工单?",
}).then(async () => {
const msg = await api.order.deleteOrder({
data: [
{
form_id: order_detail.form_id,
id: order_detail.id,
},
],
});
if (msg.code == 0) {
$toast({ type: "success", message: "删除工单" });
callBack();
}
});
};
return {
assignOrder,
receiveOrder,
......@@ -139,6 +248,13 @@ export const useOrderControls = (callBack = () => {}) => {
finishOrder,
evaluateOrder,
editOrder,
approval_pass,
approval_return,
reApproveOrder,
deleteOrder,
show_approval_btn,
show_reapproval_btn,
showControls,
};
};
......@@ -201,7 +317,7 @@ export const useOrder = (props: ComputedRef<Props>) => {
const create_order = (order_form: FormInfo) => {
$createFormData({
form_id: order_form.form_id,
onConfirm: async (data) => {
onConfirm: async (data, close) => {
const msg = await api.order.saveOrder({
...data,
form_id: order_form.form_id,
......@@ -209,6 +325,7 @@ export const useOrder = (props: ComputedRef<Props>) => {
});
if (msg.code == 0) {
$toast({ type: "success", message: "创建成功" });
close();
props.value.init();
}
},
......@@ -223,17 +340,6 @@ export const useOrder = (props: ComputedRef<Props>) => {
show_detail.value = true;
};
// 工单操作
const {
assignOrder,
receiveOrder,
startOrder,
finishOrder,
evaluateOrder,
} = useOrderControls(() => {
props.value.init();
});
return {
order_form_list,
default_order_form,
......@@ -254,10 +360,5 @@ export const useOrder = (props: ComputedRef<Props>) => {
show_detail,
detail_info,
detail,
assignOrder,
receiveOrder,
startOrder,
finishOrder,
evaluateOrder,
};
};
......@@ -69,9 +69,35 @@
</div>
<div class="controls">
<template v-if="[1, 2].includes(+it.approve_status)">
<template v-if="show_approval_btn(it)">
<span
class="button green text"
v-if="it.status == 0"
@click="approval_pass(it)">
通过
</span>
<span
class="button green text"
@click="approval_return(it)">
退回
</span>
</template>
<template v-else-if="show_reapproval_btn(it)">
<span
class="button green text"
@click="reApproveOrder(it)">
重新审批
</span>
</template>
</template>
<template v-else-if="showControls(it)">
<span
class="button green text"
v-if="
it.status == 0 && getPermission('assign_order')
"
@click="assignOrder(it)">
派单
</span>
......@@ -103,8 +129,9 @@
@click="evaluateOrder(it)">
评价
</span>
</template>
<span class="button text green" @click="delOrder(it)">
<span class="button text green" @click="deleteOrder(it)">
删除
</span>
</div>
......@@ -115,11 +142,11 @@
<script setup lang="ts">
import { getType, getPriority } from "@/utils/variable";
import { useOrder } from "./hook";
import { useOrder, useOrderControls } from "./hook";
import { computed } from "vue";
import { showConfirmDialog } from "vant";
import { $select } from "@/components/select/index";
import { useScroll } from "@/utils/hook";
import { getPermission } from "@/utils/public";
const init = async () => {
await getOrderFormList();
......@@ -145,29 +172,23 @@ const {
page,
count,
getList,
deleteData,
// create_order,
// show_detail,
// detail_info,
// detail,
} = useOrder(useOrderProps);
// 工单操作
const {
assignOrder,
receiveOrder,
startOrder,
finishOrder,
evaluateOrder,
} = useOrder(useOrderProps);
// 删除工单
const delOrder = (order: any) => {
showConfirmDialog({
title: "提示",
message: "是否删除该工单?删除后将无法恢复。",
}).then(() => {
deleteData({
data: [{ id: order.id, form_id: order.form_id }],
});
});
};
approval_pass,
approval_return,
reApproveOrder,
deleteOrder,
show_approval_btn,
show_reapproval_btn,
showControls,
} = useOrderControls(init);
// 切换工单类型
const changeOrderForm = () => {
......
import { defineConfig, loadEnv } from "vite";
import vue from "@vitejs/plugin-vue";
import path from "path";
import AutoImport from "unplugin-auto-import/vite";
import Components from "unplugin-vue-components/vite";
import { VantResolver } from "@vant/auto-import-resolver";
// https://vitejs.dev/config/
export default ({ mode }: any) => {
......@@ -13,15 +10,7 @@ export default ({ mode }: any) => {
return defineConfig({
base: "./",
plugins: [
vue(),
AutoImport({
resolvers: [VantResolver()],
}),
Components({
resolvers: [VantResolver()],
}),
],
plugins: [vue()],
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment