@@ -74,6 +74,7 @@ | |||
"vite": "^2.9.12", | |||
"vite-plugin-compression": "^0.5.1", | |||
"vite-plugin-eslint": "^1.6.1", | |||
"vite-plugin-progress": "^0.0.7", | |||
"vite-plugin-top-level-await": "^1.1.1", | |||
"vue-cli-plugin-vue-next": "~0.1.4", | |||
"vue-tsc": "^0.37.7" |
@@ -268,13 +268,14 @@ | |||
{ label: '身份证号', value: data?.customerIdNum }, | |||
{ label: '证件有效期', value: data?.customerIdVld ? moment(data?.customerIdVld).format('YYYY-MM-DD') : '---' }, | |||
{ label: '地址', value: data?.orderInfoExt?.customerAddress }, | |||
{ label: '联系方式', value: data?.customerTel } | |||
{ label: '联系方式', value: data?.customerTel }, | |||
{ label: '委托书', value: data?.orderInfoExt?.proxyUrl, type: 'image' }, | |||
] | |||
//经办人信息 | |||
agentInfoList = [ | |||
{ label: '经办人人像面', value: data?.orderInfoExt?.agentPosImgUrl, type: 'image', index: 2 }, | |||
{ label: '经办人国徽面', value: data?.orderInfoExt?.agentNegImgUrl, type: 'image', index: 3 }, | |||
{ label: '经办人人像面', value: data?.orderInfoExt?.agentPosImgUrl, type: 'image', index: 3 }, | |||
{ label: '经办人国徽面', value: data?.orderInfoExt?.agentNegImgUrl, type: 'image', index: 4 }, | |||
{ label: '经办人姓名', value: data?.orderInfoExt?.agentName }, | |||
{ label: '经办人性别', value: data?.orderInfoExt?.agentGender }, | |||
{ label: '经办人身份证号', value: data?.orderInfoExt?.agentIdNum }, | |||
@@ -352,6 +353,7 @@ | |||
srcList = [ | |||
data?.orderInfoExt?.customerPositiveImageUrl, | |||
data?.orderInfoExt?.customerNegativeImageUrl, | |||
data?.orderInfoExt?.proxyUrl, | |||
data?.orderInfoExt?.positiveImageUrl, | |||
data?.negativeImageUrl, | |||
data?.orderInfoExt?.agentPosImgUrl, |
@@ -41,7 +41,7 @@ | |||
</template> | |||
<template #CustomButton> | |||
<el-button v-if="IsPermission(route, 'GET_ORDER_LIST')" type="primary" @click="getOrderFn(1)"> | |||
<span style="font-family: `楷体`">批量领取订单</span> | |||
<span >批量领取订单</span> | |||
</el-button> | |||
</template> | |||
<template #tableOperation> | |||
@@ -63,7 +63,7 @@ | |||
<el-button :loading="scope.row.btnLoading" | |||
v-if="(scope.row.receiveStatus == 0 || scope.row.receiveStatus == 2) && IsPermission(route, 'GET_ORDER_LIST')" | |||
type="primary" size="small" @click="getOrderFn(2, scope.row)"> | |||
<span style="font-family: `楷体`">领取订单</span> | |||
<span>领取订单</span> | |||
</el-button> | |||
</template> | |||
</crud-template> |
@@ -244,13 +244,14 @@ | |||
{ label: '身份证号', value: data?.customerIdNum }, | |||
{ label: '证件有效期', value: data?.customerIdVld ? moment(data?.customerIdVld).format('YYYY-MM-DD') : '---' }, | |||
{ label: '地址', value: data?.orderInfoExt?.customerAddress }, | |||
{ label: '联系方式', value: data?.customerTel } | |||
{ label: '联系方式', value: data?.customerTel }, | |||
{ label: '委托书', value: data?.orderInfoExt?.proxyUrl, type: 'image', index: 2 } | |||
] | |||
//经办人信息 | |||
agentInfoList = [ | |||
{ label: '经办人人像面', value: data?.orderInfoExt?.agentPosImgUrl, type: 'image', index: 2 }, | |||
{ label: '经办人国徽面', value: data?.orderInfoExt?.agentNegImgUrl, type: 'image', index: 3 }, | |||
{ label: '经办人人像面', value: data?.orderInfoExt?.agentPosImgUrl, type: 'image', index: 3 }, | |||
{ label: '经办人国徽面', value: data?.orderInfoExt?.agentNegImgUrl, type: 'image', index: 4 }, | |||
{ label: '经办人姓名', value: data?.orderInfoExt?.agentName }, | |||
{ label: '经办人性别', value: data?.orderInfoExt?.agentGender }, | |||
{ label: '经办人身份证号', value: data?.orderInfoExt?.agentIdNum }, |
@@ -244,13 +244,14 @@ | |||
{ label: '身份证号', value: data?.customerIdNum }, | |||
{ label: '证件有效期', value: data?.customerIdVld ? moment(data?.customerIdVld).format('YYYY-MM-DD') : '---' }, | |||
{ label: '地址', value: data?.orderInfoExt?.customerAddress }, | |||
{ label: '联系方式', value: data?.customerTel } | |||
{ label: '联系方式', value: data?.customerTel }, | |||
{ label: '委托书', value: data?.orderInfoExt?.proxyUrl, type: 'image', index: 2 }, | |||
] | |||
//经办人信息 | |||
agentInfoList = [ | |||
{ label: '经办人人像面', value: data?.orderInfoExt?.agentPosImgUrl, type: 'image', index: 2 }, | |||
{ label: '经办人国徽面', value: data?.orderInfoExt?.agentNegImgUrl, type: 'image', index: 3 }, | |||
{ label: '经办人人像面', value: data?.orderInfoExt?.agentPosImgUrl, type: 'image', index: 3 }, | |||
{ label: '经办人国徽面', value: data?.orderInfoExt?.agentNegImgUrl, type: 'image', index: 4 }, | |||
{ label: '经办人姓名', value: data?.orderInfoExt?.agentName }, | |||
{ label: '经办人性别', value: data?.orderInfoExt?.agentGender }, | |||
{ label: '经办人身份证号', value: data?.orderInfoExt?.agentIdNum }, |
@@ -27,7 +27,7 @@ | |||
<el-option v-for="item in agencyList" :key="item.value" :label="item.label" :value="item.value" /> | |||
</el-select> | |||
</el-form-item> | |||
<el-form-item prop="serviceHallId" label="所属网点"> | |||
<el-form-item prop="serviceHallId" style="margin-bottom: 20px;" label="所属网点"> | |||
<el-select clearable :ref="(el) => elSelectRef = el" v-model="dataForm.serviceHallId" style="width: 100%" | |||
placeholder="请选择所属网点" filterable remote :remote-method="(value) => filterMethod(value, false)" | |||
v-loading="selectLoading"> | |||
@@ -37,7 +37,7 @@ | |||
</el-option> | |||
</el-select> | |||
</el-form-item> | |||
<div class="btn-wrap"> | |||
<div class="btn-wrap" style="margin-top: 20px"> | |||
<el-button type="primary" @click="cancelHandle">取消</el-button> | |||
<el-button type="primary" @click="dataFormSubmitHandle">确认</el-button> | |||
</div> | |||
@@ -263,11 +263,11 @@ async function getPageServiceList() { | |||
}) | |||
}) | |||
// if (selectPage.value.pageNo !== 1) { | |||
// pageServiceHallList.value = [...pageServiceHallList.value, ...list] | |||
// } else { | |||
// pageServiceHallList.value = list | |||
// } | |||
if (selectPage.value.pageNo !== 1) { | |||
pageServiceHallList.value = [...pageServiceHallList.value, ...list] | |||
} else { | |||
pageServiceHallList.value = list | |||
} | |||
selectLoading.value = false; | |||
hasPage.value = bizContent.pageCount === selectPage.value.pageNo ? false : true; | |||
} else { |
@@ -1,6 +1,7 @@ | |||
{ | |||
"compilerOptions": { | |||
"strictNullChecks": true, | |||
// "allowImportingTsExtensions": true, // 支持 .ts 扩展名导入 | |||
"strictFunctionTypes": false, | |||
"noUnusedLocals": false, | |||
"noUnusedParameters": false, | |||
@@ -12,8 +13,8 @@ | |||
"strict": false, //所有严格模式的总开关 | |||
"jsx": "preserve", | |||
"sourceMap": true, //sourceMap 简单说,Source map 就是一个信息文件,里面储存着位置信息。也就是说,转换后的代码的每一个位置,所对应的转换前的位置。有了它,出错的时候,除错工具将直接显示原始代码,而不是转换后的代码。这无疑给开发者带来了很大方便。 | |||
"resolveJsonModule": false, | |||
"esModuleInterop": false, | |||
"resolveJsonModule": true, //方便导入 JSON 文件(如配置文件)。 | |||
"esModuleInterop": true, //让项目能更兼容 CommonJS 模块(如某些 Node.js 库)。 | |||
"skipLibCheck": true, //跳过库文件的类型检查 | |||
"alwaysStrict": false, //用来设置编译后的文件是否使用严格模式,默认为false | |||
"removeComments": true, //是否移除注释 | |||
@@ -35,13 +36,14 @@ | |||
"src/**/*.d.ts", | |||
"src/**/*.tsx", | |||
"src/**/*.vue", | |||
"vite.config.ts", // 确保 Vite 配置文件的类型检查 | |||
"src/api/system/commonApi.js" | |||
], | |||
"angularCompilerOptions": { | |||
"strictInjectionParameters": true, | |||
"strictTemplates": true, | |||
"fullTemplateTypeCheck": true | |||
}, | |||
// "angularCompilerOptions": { | |||
// "strictInjectionParameters": true, | |||
// "strictTemplates": true, | |||
// "fullTemplateTypeCheck": true | |||
// }, | |||
"editor": { | |||
"suggestions": { | |||
"strings": false | |||
@@ -51,6 +53,8 @@ | |||
//取消在 HTML 文件中的 TypeScript 校验 | |||
// "src/**/*.vue", | |||
"node_modules/**/*", | |||
"dist", | |||
"**/*.test.ts", | |||
"elment-plus/**/*" | |||
] | |||
} |
@@ -5,8 +5,8 @@ import path from 'path' | |||
import viteCompression from 'vite-plugin-compression' | |||
import VueLayouts from 'vite-plugin-vue-layouts' | |||
import legacy from '@vitejs/plugin-legacy' | |||
// import vueExtend from 'vite-plugin-vue-setup-extend' | |||
import progress from 'vite-plugin-progress' | |||
import vueExtend from 'vite-plugin-vue-setup-extend' | |||
// https://vitejs.dev/config/ | |||
export default defineConfig(({ command, mode }) => { | |||
@@ -19,13 +19,13 @@ export default defineConfig(({ command, mode }) => { | |||
return { | |||
base: './', //打包路径 | |||
plugins: [ | |||
progress(), | |||
legacy({ | |||
// targets: ['defaults'], // 需要兼容的目标列表,可以设置多个 , 'not IE 11' | |||
// additionalLegacyPolyfills: ['regenerator-runtime/runtime'] // 面向IE11时需要此插件 | |||
}), | |||
vue(), | |||
VueLayouts(), | |||
// gzip压缩 生产环境生成 .gz 文件 | |||
viteCompression({ | |||
threshold: 10240, | |||
@@ -64,11 +64,14 @@ export default defineConfig(({ command, mode }) => { | |||
server: { | |||
host: '0.0.0.0', | |||
port: 8085, | |||
hmr:true, | |||
hmr: true, // 确保 HMR 启用 | |||
force: true, // 强制依赖预构建(vite 3.x+) | |||
open: true, // 类型: boolean | string在服务器启动时自动在浏览器中打开应用程序; | |||
cors: true, // 类型: boolean | CorsOptions 为开发服务器配置 CORS。默认启用并允许任何源 | |||
watch: { | |||
usePolling: true, // 解决 Docker/NFS 等环境下的监听问题 | |||
interval: 1000, // 轮询间隔(毫秒) | |||
}, | |||
proxy: { | |||
'/common': { | |||
target: 'https://medusa.etcjz.cn', //这里填入你要请求的接口的前缀 | |||
@@ -150,15 +153,26 @@ export default defineConfig(({ command, mode }) => { | |||
}, | |||
}, | |||
}, | |||
optimizeDeps: { | |||
exclude: ['your-large-dependency','some-heavy-package'], // 排除可能引起缓存问题的大型依赖 | |||
}, | |||
// 生产环境打包配置 | |||
//去除 console debugger | |||
build: { | |||
// target: ['chrome52'], | |||
// cssTarget: ["chrome52"], | |||
// rollupOptions: { | |||
// input: 'src/main.ts' // 根据您的实际入口文件路径进行设置 | |||
// }, | |||
minify: 'terser', | |||
rollupOptions: { | |||
output: { | |||
manualChunks: { | |||
'vue': ['vue', 'vue-router'], | |||
'element-plus': ['element-plus'] | |||
} | |||
} | |||
// input: 'src/main.ts' // 根据您的实际入口文件路径进行设置 | |||
}, | |||
target: 'esnext', // 输出为现代浏览器支持的 ES 版本 | |||
minify: 'terser', // 代码压缩方式 | |||
cssTarget: 'chrome80', // 避免低版本 Chrome 的 CSS 兼容问题 | |||
terserOptions: { | |||
compress: { | |||
//生产环境移除 console |