Commit b0ecfd63 by 韦竞

add

0 parents
Showing 385 changed files with 1687 additions and 0 deletions
> 1%
last 2 versions
not ie <= 8
root = true
[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
# 所有环境默认
# 页面 title 前缀
VUE_APP_TITLE=D+
# 仓库地址
VUE_APP_REPO=https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config
# 国际化配置
VUE_APP_I18N_LOCALE=zh-chs
VUE_APP_I18N_FALLBACK_LOCALE=en
VUE_APP_ELEMENT_COLOR=#409EFF
VUE_APP_STORAGE_PREFIX=d+
\ No newline at end of file
# 开发环境
# 网络请求开发地址
# VUE_APP_API=http://192.168.3.171:7300/mock/5d638b3b6fbe9a0ac59d872e/tFIMS
VUE_APP_REPO=http://192.168.3.171:7300/mock/5be17454f31545347559d499/config
\ No newline at end of file
# No Mock 构建
# 指定构建模式
NODE_ENV=production
# 标记当前是 No Mock 构建
VUE_APP_BUILD_MODE=nomock
# travis
# 指定构建模式
NODE_ENV=production
# 标记当前是 CI 自动构建
VUE_APP_BUILD_MODE=TRAVIS
# 忽略目录
build/
tests/
node_modules/
# node 覆盖率文件
coverage/
# 忽略文件
**/*-min.js
**/*.min.js
module.exports = {
root: true,
env: {
node: true
},
'extends': [
'plugin:vue/essential',
'@vue/prettier'
],
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
},
parserOptions: {
parser: 'babel-eslint'
}
}
module.exports = {
root: true,
parserOptions: {
parser: 'babel-eslint'
},
env: {
browser: true
},
extends: [
// https://github.com/vuejs/eslint-plugin-vue#priority-a-essential-error-prevent
// ion consider switching to `plugin:vue/strongly-recommended` or
// `plugin:vue/recommended` for stricter rules.
'plugin:vue/essential',
// https://github.com/standard/standard/blob/master/docs/RULES-en.md
'standard'
],
// required to lint *.vue files
plugins: ['vue'],
globals: {
NODE_ENV: false,
_: false,
echarts: false
},
rules: {
'arrow-spacing': [
2,
{
before: true,
after: true
}
],
eqeqeq: 'off',
// 'no-eval': ['error', { allowIndirect: false }], // default is false
'no-eval': 'off', // default is false
// allow async-await
'generator-star-spacing': 'off',
// 'block-spacing': [2, 'always'],
'brace-style': [
2,
'1tbs',
{
allowSingleLine: true
}
],
'comma-dangle': [2, 'never'],
'comma-spacing': [
2,
{
before: false,
after: true
}
],
'comma-style': [2, 'last'],
curly: [2, 'multi-line'],
'dot-location': [2, 'property'],
indent: [
2,
2,
{
SwitchCase: 1
}
],
'key-spacing': [
2,
{
beforeColon: false,
afterColon: true
}
],
'keyword-spacing': [
2,
{
before: true,
after: true
}
],
'new-cap': [
2,
{
newIsCap: true,
capIsNew: false
}
],
'no-extra-parens': [2, 'functions'],
'no-floating-decimal': 2,
'no-multi-spaces': 2,
'no-multiple-empty-lines': [
2,
{
max: 1
}
],
'no-trailing-spaces': 2,
quotes: [
2,
'single',
{
avoidEscape: true,
allowTemplateLiterals: true
}
],
semi: [2, 'never'],
'space-before-blocks': [2, 'always'],
// 'space-before-function-paren': [2, 'never'],
'space-before-function-paren': 0,
'space-in-parens': [2, 'never'],
'space-infix-ops': 2,
'space-unary-ops': [
2,
{
words: true,
nonwords: false
}
],
'spaced-comment': [2, 'always'],
'prefer-const': 2
}
}
.DS_Store
node_modules
/dist
/.history
<<<<<<< HEAD
<<<<<<< HEAD
/cache
/copyDirTarget
=======
/copyDirTarget
/cache
>>>>>>> dev_v4.7.1
=======
/copyDirTarget
/cache
>>>>>>> f81240335293fde6e6360bb9dc5570d1d01e7660
# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw*
\ No newline at end of file
module.exports = {
plugins: {
autoprefixer: {}
}
}
{
"semi": false,
"singleQuote": true
}
\ No newline at end of file
auth.token=45d2be625091494b9a0de35af25bb273c0a471650575471096d60dd61f6995e6
defaults.url = http://sentry.glsx.com.cn
defaults.org = sentry
defaults.project =dj-carlife-web
language: node_js
node_js: stable
cache:
directories:
- "node_modules"
branches:
only:
- master
script:
- npm run build:travis
before_install:
- ./qshell account $AK $SK
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH=$HOME/.yarn/bin:$PATH
after_success:
- ./qshell qupload qiniu-config
- ./qshell cdnrefresh -dirs cdnrefresh-dirs.txt
\ No newline at end of file
pipeline {
environment {
JENKINS='true'
}
agent any
stages{
stage('change permissions') {
steps {
sh "chmod 777 ./mvnw "
}
}
stage('clean') {
steps {
sh './mvnw clean install'
}
}
stage('yarn install') {
steps{
sh 'npm install -g yarn'
sh 'yarn install'
}
}
stage('yarn webpack:build') {
steps {
sh 'yarn webpack:build'
}
}
# stage('backend tests') {
# steps {
# sh './mvnw test'
# }
# }
#
# stage('frontend tests') {
# steps {
# sh 'yarn test'
# }
# }
}
}
\ No newline at end of file
MIT License
Copyright (c) 2018 李杨
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
[![Build Status](https://www.travis-ci.org/d2-projects/d2-admin-start-kit.svg?branch=master)](https://www.travis-ci.org/d2-projects/d2-admin-start-kit)
[D2Admin](https://github.com/d2-projects/d2-admin) simplified version of the start template, delete all the sample code in the full version, retain all core functions.
[Gitee](https://gitee.com/fairyever/d2-admin-start-kit)
从 develop 分支号 dev_v4.4.0 本来用来开发审核以及报表功能版本, wangql_dev_v4.4.0 已开发部分对应需求,未往 dev_v4.4.0 版本合并,因此目前 dev_v4.4.0 分支无用
从 develop 拉分支号 dev_v4.5.1 用来开发转化加 V4.5.0 功能需求
从 dev_v4.5.0 拉分支号 dev_v4.5.2 用来新建菜单对应现在的虚拟对公账户功能,以前的菜单保留以防万一
从 develop 拉分支号 dev_v4.7.0 需求功能:零售商品的审核以及首页的数据报表
dev_v4.7.0 已上线并且已合并到 develop 与 mater 上
从 develop 拉分支号 dev_v4.7.1,dev_v4.7.0 上线后已将代码合并到 dev_v4.7.1(上线后需合并代码到 dev_v4.7.2 和 dev_v4.8.0)
从 develop 拉分支号 dev_v4.7.2,需求:广汇 ERP
从 dev_v4.7.1 已提测未上线版本中拉分支 dev_v4.8.0,需求:虚拟对公账户和订单补录 7 月中旬需求
dev_v4.8.0 下载二维码地址在上线需换 path,并且需要配置按钮权限,ERP 功能视情况是否与 7 月紧急版本一起上线,不然就上线时屏蔽
dev_v4.8.0 已上线,合并到 develop 以及 master 主干上
[![Build Status](https://www.travis-ci.org/d2-projects/d2-admin-start-kit.svg?branch=master)](https://www.travis-ci.org/d2-projects/d2-admin-start-kit)
[D2Admin](https://github.com/d2-projects/d2-admin) 简化版起始模板,删除所有完整版中的示例代码,保留所有核心功能。
[码云镜像](https://gitee.com/fairyever/d2-admin-start-kit)
\ No newline at end of file
module.exports = {
plugins: [
'@babel/plugin-proposal-nullish-coalescing-operator', // 双问号
'@babel/plugin-proposal-optional-chaining' // 可选链
// '@babel/plugin-proposal-optional-chaining', // 可选链 ?.
// '@babel/plugin-proposal-nullish-coalescing-operator' // 空值合并 ??
],
presets: ['@vue/app'],
// 允许两种编码引入方式共存,也就是 common 规范与 es6 规范的共存处理
sourceType: 'unambiguous'
}
No preview for this file type
No preview for this file type
module.exports = {
moduleFileExtensions: [
'js',
'jsx',
'json',
'vue'
],
transform: {
'^.+\\.vue$': 'vue-jest',
'.+\\.(css|styl|less|sass|scss|png|jpg|ttf|woff|woff2)$': 'jest-transform-stub',
'^.+\\.jsx?$': 'babel-jest'
},
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/src/$1'
},
snapshotSerializers: [
'jest-serializer-vue'
],
testMatch: [
'**/tests/unit/**/*.spec.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx)'
],
testURL: 'http://localhost/'
}
This diff could not be displayed because it is too large.
{
"name": "dj-car-life-system",
"version": "0.1.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve --open",
"start": "npm run serve",
"dev": "npm run serve",
"build": "vue-cli-service build --mode nomock && rm -fr ./dist/js/*.map ",
"build:nomock": "vue-cli-service build --mode nomock",
"build:travis": "vue-cli-service build --mode travis",
"lint": "vue-cli-service lint --fix",
"test:unit": "vue-cli-service test:unit",
"report": "vue-cli-service build --report"
},
"dependencies": {
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.17.12",
"@babel/plugin-proposal-optional-chaining": "7.13.12",
"@sentry/browser": "^7.3.0",
"@sentry/tracing": "^7.3.0",
"@sentry/vue": "^7.3.0",
"@sentry/webpack-plugin": "^1.18.9",
"axios": "^0.18.0",
"better-scroll": "^1.15.2",
"dayjs": "^1.8.12",
"default-passive-events": "^2.0.0",
"echarts": "^5.3.2",
"element-ui": "^2.13.1",
"eslint-plugin-standard": "^5.0.0",
"file-saver": "^2.0.5",
"flex.css": "^1.1.7",
"fuse.js": "^3.4.4",
"hotkeys-js": "^3.6.2",
"html2canvas": "^1.4.1",
"js-cookie": "^2.2.0",
"js-md5": "^0.7.3",
"jspdf": "^2.5.1",
"lodash": "^4.17.11",
"lowdb": "^1.0.0",
"nprogress": "^0.2.0",
"qs": "^6.8.0",
"screenfull": "^4.2.0",
"sha1": "^1.1.1",
"speed-measure-webpack-plugin": "^1.5.0",
"ua-parser-js": "^0.7.19",
"vue": "^2.6.10",
"vue-i18n": "^8.14.0",
"vue-qr": "^2.5.0",
"vue-router": "3.0.5",
"vue2-org-tree": "^1.3.6",
"vuex": "^3.0.1",
"xlsx": "^0.16.9"
},
"devDependencies": {
"@kazupon/vue-i18n-loader": "^0.4.1",
"@vue/cli-plugin-babel": "^3.6.0",
"@vue/cli-plugin-eslint": "^3.6.0",
"@vue/cli-plugin-unit-jest": "^3.6.0",
"@vue/cli-service": "^3.6.0",
"@vue/eslint-config-standard": "^4.0.0",
"@vue/test-utils": "1.0.0-beta.29",
"babel-core": "7.0.0-bridge.0",
"babel-eslint": "^10.0.1",
"babel-jest": "^23.6.0",
"eslint": "^5.16.0",
"eslint-plugin-vue": "^5.0.0",
"hard-source-webpack-plugin": "^0.13.1",
"sass": "^1.18.0",
"sass-loader": "^7.1.0",
"script-loader": "^0.7.2",
"svg-sprite-loader": "^4.1.3",
"vue-template-compiler": "^2.5.21",
"webpack-theme-color-replacer": "^1.2.15"
}
}
> 1%
last 2 versions
not ie <= 8
.DS_Store
node_modules
/dist
# local env files
.env.local
.env.*.local
# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw*
module.exports = {
plugins: {
autoprefixer: {}
}
}
# filters-dayjs
\ No newline at end of file
module.exports = {
presets: [
'@vue/app'
]
}
This diff could not be displayed because it is too large.
{
"name": "@d2-admin/filters-dayjs",
"version": "1.0.3",
"main": "dist/@d2-admin/filters-dayjs.common.js",
"scripts": {
"build": "vue-cli-service build --target lib --name @d2-admin/filters-dayjs --entry src/main.js"
},
"dependencies": {
"core-js": "^2.6.5",
"dayjs": "^1.8.12",
"vue": "^2.6.6"
},
"devDependencies": {
"@vue/cli-plugin-babel": "^3.0.0",
"@vue/cli-service": "^3.0.0",
"vue-template-compiler": "^2.5.21"
}
}
// 日期时间相关 filter
// https://github.com/iamkun/dayjs/blob/master/docs/zh-cn/API-reference.md
import dayjs from 'dayjs'
// 对象代理
const P = Day => {
return new Proxy(Day, {
get (target, key) {
if (dayjs.isDayjs(target)) {
// 是 Dayjs 对象,正常返回
return target[key]
} else {
// 不是 Dayjs 对象
if (dayjs(target).isValid()) {
// 尝试帮用户解析成 Dayjs 对象
return dayjs(target)[key]
} else {
// 无法解析
return function () {
return '无效日期'
}
}
}
},
set (target, key, value) {
target[key] = value
}
})
}
export default {
// ---------- [ dayjs 解析 ] ----------
// 时间字符串 | Date 对象 | Unix 时间戳 (毫秒)
day: value => dayjs(value),
// Unix 时间戳 (秒)
date_unix: value => dayjs.unix(value),
// ---------- [ 获取 ] ----------
date_year: Day => P(Day).year(),
date_month: Day => P(Day).month(),
date_date: Day => P(Day).date(),
date_day: Day => P(Day).day(),
date_hour: Day => P(Day).hour(),
date_minute: Day => P(Day).minute(),
date_second: Day => P(Day).second(),
date_millisecond: Day => P(Day).millisecond(),
// ---------- [ 设置 ] ----------
// date | day | month | year | hour | minute | second | millisecond
// 对大小写不敏感
date_set: (Day, unit, value) => P(Day).set(unit, value),
// ---------- [ 操作 ] ----------
// 增加
date_add: (Day, value, unit) => P(Day).add(value, unit),
// 减少
date_subtract: (Day, value, unit) => P(Day).subtract(value, unit),
// 开头时间
date_startof: (Day, unit) => P(Day).startOf(unit),
// 末尾时间
date_endof: (Day, unit) => P(Day).endOf(unit),
// ---------- [ 显示 ] ----------
// 格式化
date_format: (Day, setting = 'YYYY-MM-DD HH:mm:ss') => P(Day).format(setting),
// 时间差
date_diff: (Day, Day2 = '', unit = 'millisecond', accurate = false) => P(Day).diff(dayjs(Day2), unit, accurate),
// Unix 时间戳 (毫秒)
date_value_millisecond: Day => P(Day).valueOf(),
// Unix 时间戳 (秒)
date_value_second: Day => P(Day).unix(),
// 月份的天数
date_days_in_month: Day => P(Day).daysInMonth(),
// Date 对象
date_to_date: Day => P(Day).toDate(),
// JSON
date_to_json: Day => P(Day).toJSON(),
// ISO8601 格式
date_to_iso: Day => P(Day).toISOString(),
// 字符
date_to_string: Day => P(Day).toString(),
// ---------- [ 查询 ] ----------
// 是否之前
date_is_before: (Day, Day2, unit = 'millisecond') => P(Day).isBefore(dayjs(Day2), unit),
// 是否之后
date_is_after: (Day, Day2, unit = 'millisecond') => P(Day).isAfter(dayjs(Day2), unit),
// 是否相同
date_is_same: (Day, Day2, unit = 'millisecond') => P(Day).isSame(dayjs(Day2), unit)
}
import filters from './filters'
const vueFiltersDate = {
install: function (Vue, options) {
Object.keys(filters).forEach(name => {
Vue.filter(name, filters[name])
})
}
}
if (typeof window !== 'undefined' && window.Vue) {
window.Vue.use(vueFiltersDate)
}
export default vueFiltersDate
This diff could not be displayed because it is too large.
const path = require('path')
class copyDir {
apply(compiler) {
// done是webpack 得编译完成周期
compiler.hooks.afterEmit.tap('DonePlugins', function(stats) {
// console.log('编译完成!!')
// 因为写在文件夹里面 要找外面的文件要加../
// 删除老文件夹 并拷贝
removeDir(`${__dirname}/../dist`)
cpSync(
path.join(__dirname, '../copyDirTarget'),
path.join(__dirname, '../dist')
)
cpSync(
path.join(__dirname, '../copyDirTarget'),
path.join(__dirname, '../dist//dj-carlife-web')
)
// removeDir(`${__dirname}/../copyDirTarget`)
})
}
}
/** 主要版本 */
const major = process.version.match(/v([0-9]*).([0-9]*)/)[1]
/** 特性版本 */
const minor = process.version.match(/v([0-9]*).([0-9]*)/)[2]
/**
* 文件夹复制
* @param {string} source 源文件夹
* @param {string} destination 目标文件夹
*/
function cpSync(source, destination) {
const fs = require('fs')
// console.log('source', source)
// 判断node版本不是16.7.0以上的版本
// 则进入兼容处理
// 这样处理是因为16.7.0的版本支持了直接复制文件夹的操作
if (Number(major) < 16 || (Number(major) == 16 && Number(minor) < 7)) {
// 如果存在文件夹 先递归删除该文件夹
if (fs.existsSync(destination)) fs.rmSync(destination, { recursive: true })
// 新建文件夹 递归新建
fs.mkdirSync(destination, { recursive: true })
// 读取源文件夹
const rd = fs.readdirSync(source)
// console.log('rd', rd)
for (const fd of rd) {
// 循环拼接源文件夹/文件全名称
const sourceFullName = source + '/' + fd
// 循环拼接目标文件夹/文件全名称
const destFullName = destination + '/' + fd
// 读取文件信息
const lstatRes = fs.lstatSync(sourceFullName)
// 是否是文件
if (lstatRes.isFile()) fs.copyFileSync(sourceFullName, destFullName)
// 是否是文件夹
if (lstatRes.isDirectory()) cpSync(sourceFullName, destFullName)
}
} else fs.cpSync(source, destination, { force: true, recursive: true })
}
/**
* @caption 删除本地文件夹/文件
* @param {String} directoryPath 例: d://x/x/x.json 或者 d://x/x/x
*/
function removeDir(directoryPath) {
const fs = require('fs')
// 判断文件是否存在
require('fs').existsSync(directoryPath) && dleteDir()
function dleteDir() {
const files = fs.readdirSync(directoryPath)
for (var i = 0; i < files.length; i++) {
const newPath = path.join(directoryPath, files[i])
const stat = fs.statSync(newPath)
if (stat.isDirectory()) {
// 如果是文件夹就递归下去
removeDir(newPath)
} else {
// 删除文件
fs.unlinkSync(newPath)
}
}
fs.rmdirSync(directoryPath) // 如果文件夹是空的,就将自己删除掉
}
}
module.exports = copyDir
const removeDir = require('./removeFn')
class AsyncRomveDir {
apply(compiler) {
// console.log('自定义异步组件');
compiler.hooks.afterEmit.tapAsync('AsyncPlugin', (compilation, cb) => {
setTimeout(() => {
// console.log()
removeDir(`${__dirname}/../copyDirTarget`)
cb()
}, 5000)
})
}
}
module.exports = AsyncRomveDir
/**
* @caption 删除本地文件夹/文件
* @param {String} directoryPath 例: d://x/x/x.json 或者 d://x/x/x
*/
function removeDir(directoryPath) {
const fs = require('fs')
const path = require('path')
// 判断文件是否存在
require('fs').existsSync(directoryPath) && dleteDir()
function dleteDir() {
const files = fs.readdirSync(directoryPath)
for (var i = 0; i < files.length; i++) {
const newPath = path.join(directoryPath, files[i])
const stat = fs.statSync(newPath)
if (stat.isDirectory()) {
// 如果是文件夹就递归下去
removeDir(newPath)
} else {
// 删除文件
fs.unlinkSync(newPath)
}
}
fs.rmdirSync(directoryPath) // 如果文件夹是空的,就将自己删除掉
}
}
module.exports = removeDir
No preview for this file type
No preview for this file type
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="32" height="32" fill="white">
<path opacity=".25" d="M16 0 A16 16 0 0 0 16 32 A16 16 0 0 0 16 0 M16 4 A12 12 0 0 1 16 28 A12 12 0 0 1 16 4"/>
<path d="M16 0 A16 16 0 0 1 32 16 L28 16 A12 12 0 0 0 16 4z">
<animateTransform attributeName="transform" type="rotate" from="0 16 16" to="360 16 16" dur="0.8s" repeatCount="indefinite" />
</path>
</svg>
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>icon.ico">
<!-- 使用CDN的CSS文件 -->
<% for (var i in htmlWebpackPlugin.options.cdn && htmlWebpackPlugin.options.cdn.css) { %>
<link href="<%= htmlWebpackPlugin.options.cdn.css[i] %>" rel="preload" as="style" />
<link href="<%= htmlWebpackPlugin.options.cdn.css[i] %>" rel="stylesheet" />
<% } %>
<!-- 使用CDN的JS文件 预加载 -->
<% for (var i in htmlWebpackPlugin.options.cdn && htmlWebpackPlugin.options.cdn.js) { %>
<link href="<%= htmlWebpackPlugin.options.cdn.js[i] %>" rel="preload" as="script" />
<% } %>
<title><%= VUE_APP_TITLE %></title>
<style>
html,
body,
#app {
height: 100%;
margin: 0px;
padding: 0px;
width: 100%;
}
.d2-home {
background-color: #2A343D;
height: 100%;
display: flex;
flex-direction: column;
}
.d2-home__main {
user-select: none;
width: 100%;
flex-grow: 1;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
.d2-home__footer {
width: 100%;
flex-grow: 0;
text-align: center;
padding: 1em 0;
}
.d2-home__footer>a {
font-size: 12px;
color: #fff;
text-decoration: none;
}
.d2-home__loading {
height: 32px;
width: 32px;
margin-bottom: 20px;
}
.d2-home__title {
color: #FFF;
font-size: 20px;
margin-bottom: 10px;
}
.d2-home__sub-title {
color: #fff;
font-size: 14px;
}
</style>
<!-- <script>
var _hmt = _hmt || [];
var hmid = "1dfa88d0c8571eef2d383070cb3e5ca1";
(function() { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?" + hmid; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s);})();
</script> -->
</head>
<body>
<noscript>
<strong>
很抱歉,如果没有 JavaScript 支持,系统 将不能正常工作。请启用浏览器的 JavaScript 然后继续。
</strong>
</noscript>
<div id="app">
<div class="d2-home">
<div class="d2-home__main">
<img class="d2-home__loading" src="./image/loading/loading-spin.svg" alt="loading">
<div class="d2-home__title">
正在加载资源
</div>
<div class="d2-home__sub-title">
初次加载资源可能需要较多时间 请耐心等待
</div>
</div>
<div class="d2-home__footer">
<a href="http://www.glsx.com.cn" target="_blank">
<!-- 版权所有&copy-2019 GLSX粤ICP备12020087号 -->
</a>
</div>
</div>
</div>
<!-- built files will be auto injected -->
<% for (var i in htmlWebpackPlugin.options.cdn && htmlWebpackPlugin.options.cdn.js) { %>
<script src="<%= htmlWebpackPlugin.options.cdn.js[i] %>"></script>
<% } %>
</body>
</html>
\ No newline at end of file
{
"src_dir" : "/home/travis/build/d2-projects/d2-admin-start-kit/dist",
"bucket" : "d2-admin-start-kit",
"ignore_dir" : false,
"overwrite" : true,
"check_exists" : true,
"check_hash" : true,
"check_size" : true,
"rescan_local" : true,
"skip_file_prefixes" : "test,demo,",
"skip_path_prefixes" : "hello/,temp/",
"skip_fixed_strings" : ".svn,.git",
"skip_suffixes" : ".DS_Store,.exe",
"log_file" : "upload.log",
"log_level" : "info",
"log_rotate" : 1,
"log_stdout" : false
}
\ No newline at end of file
No preview for this file type
var express = require('express')
var app = express()
app.use(express.static('./dist'))
app.get('/', function(req, res) {
res.send('Hello Vue')
})
app.listen(8080)
console.log('服务已运行:\r\n localhost:8080')
<template>
<div id="app">
<router-view />
</div>
</template>
<script>
export default {
name: 'app',
created() {
// console.log(abcd.efg)
},
methods: {
}
}
</script>
<style lang="scss">
@import '~@/assets/style/public-class.scss';
.el_table {
thead {
th {
background: #f5f7fa;
}
}
}
</style>
import request from './request'
const path = 'dj.api.smartcarlife.orderDivision.'
const pathSub = 'dj.api.smartcarlife.subOrderDivision.'
const path2 = 'dj.api.withdraw.'
const pathServicer = 'dj.api.smartcarlife.sevicerOrderDivision.'
// const path3 = 'dj.api.smartcarlife.'
// 分账 - start
export function getListApi(data) {
data.method = `${path}page`
return request(data, 'post')
}
export function getCountApi(data) {
data.method = `${path}count`
return request(data, 'post')
}
export function exportApi(data) {
data.method = `${path}export`
return request(data, 'post')
}
// 分账 - end
// 服务商 - 分账 - start
export function getSeviceListApi(data) {
data.method = `${pathSub}page`
return request(data, 'post')
}
export function getSeviceCountApi(data) {
data.method = `${pathSub}count`
return request(data, 'post')
}
export function exportSeviceApi(data) {
data.method = `${pathSub}export`
return request(data, 'post')
}
// 服务商 - 分账 - end
// 提现 - start
export function getWithdrawList(data) {
data.method = `${path2}listWithPage`
return request(data, 'post')
}
export function getWithdrawCountApi(data) {
data.method = `${path2}count`
return request(data, 'post')
}
// 获取提现账号和提现余额
export function getBankBalanceApi(data) {
data.method = `${path2}bankBalance`
return request(data, 'post')
}
// 发起提现
export function createWithdraw(data) {
data.method = `${path2}create`
return request(data, 'post')
}
// 获取服务商关联的园区店信息
export function getPartnerYqListApi(data) {
data.method = 'dj.smartcarlife.api.partnerMerchant.listYq'
return request(data, 'post')
}
// 分账-服务商-列表
export function getSeviceList(data) {
data.method = `${pathServicer}page`
return request(data, 'post')
}
// 分账-服务商-统计
export function getSeviceCount(data) {
data.method = `${pathServicer}count`
return request(data, 'post')
}
// 分账-服务商-导出
export function getSeviceExport(data) {
data.method = `${pathServicer}export`
return request(data, 'post')
}
import request from './request'
const path = 'dj.api.'
const path2 = 'dj.smartcarlife.api.'
export function getList(data) {
data.method = `${path}basegoods.page`
return request(data)
}
// 分页查找园区店
export function commodityAddSeviceMerchant(data) {
data.method = `${path}servicemerchantref.page`
return request(data)
}
// 根据基础商品Id查询商品
export function getGoodsInfoById(data) {
data.method = `${path}basegoods.get.byId`
return request(data)
}
// 根据基础商品id获取分配门店列表 - 查看门店
export function getMerchantList(data) {
data.method = 'dj.basegoodsmerchantref.list.byBaseGoodsId'
return request(data)
}
// 查询产品列表
export function getGoodsList(data) {
data.method = `${path}goodsinfo.list`
return request(data)
}
// 新增商品
export function baseGoodsAdd(data) {
data.method = `${path}basegoods.add`
return request(data, 'post')
}
// 修改商品
export function baseGoodsUpdate(data) {
data.method = `${path}basegoods.update`
return request(data, 'post')
}
// 下架商品
export function baseGoodsUpOrDown(data) {
// data.method = `${path2}basegoods.changeShelfStatus`
data.method = `${path2}basegoods.shelfStatus.update`
return request(data, 'post')
}
// 删除商品
export function baseGoodsDelete(data) {
data.method = `${path2}basegoods.delete`
return request(data, 'post')
}
// 导出
export function exportBaseList(data) {
data.method = `${path}basegoods.export`
return request(data, 'post')
}
// 下架子商品
export function baseGoodsUpOrDownForChild(data) {
data.method = `${path2}upgradedGoods.shelfStatus.update`
return request(data, 'post')
}
// 提交商品审核结果
export function submitReviewResult(data) {
data.method = `${path2}upgradedGoods.submitReviewResult`
return request(data, 'post')
}
import request from './request'
const path = 'dj.api.life.merchant.'
const pathCustomer = 'dj.api.life.customer.'
export function getList(data) {
data.method = `${path}coupon.list`
return request(data)
}
export function exportListApi(data) {
data.method = `${path}coupon.exportExcel`
return request(data)
}
export function addCouponApi(data) {
data.method = 'dj.api.life.coupon.info.add'
return request(data, 'post')
}
export function deleteCouponApi(data) {
data.method = `${path}coupon.delete`
return request(data)
}
export function updateCouponApi(data) {
data.method = `${path}coupon.update`
return request(data, 'post')
}
// 领用明细
export function getDetailList(data) {
data.method = `${pathCustomer}coupon.list`
return request(data)
}
export function exportDetailListApi(data) {
data.method = `${pathCustomer}coupon.exportExcel`
return request(data)
}
export function getDistinctColum(data) {
data.method = `${pathCustomer}coupon.distinctColum`
return request(data)
}
import request from './request'
const path = 'dj.api.'
// 客户订单列表
export function getList(data) {
data.method = `${path}customer.search`
return request(data)
}
// 订单统计
export function orderCount(data) {
data.method = `${path}customer.count`
return request(data)
}
// 导出
export function exportFile(data) {
data.method = `${path}customer.exportExcel`
return request(data)
}
import request from './request'
const path = 'dj.api.'
const path2 = 'dj.api.smartcarlife.'
/** 获取园区店列表 - 园区店 */
export function getParkStore(data) {
data.method = 'dj.smartcarlife.api.yqMerchant.list'
return request(data)
}
/** 获取园区店列表 - 流量来源 */
export function getServiceStore(data) {
data.method = `${path}servicemerchantref.list`
return request(data)
}
/** 根据门店商户号获取员工列表 */
export function getStaff(data) {
data.method = `${path}employee.getByMerchantId`
return request(data)
}
/** 获取车型车系 */
export function getCarInfo(data) {
data.method = `${path}car.series.list`
return request(data)
}
/** 根据车系id获取车辆类型 */
export function getCarType(data) {
data.method = `${path}car.type.list`
return request(data)
}
/** 根据门店商户号获取基础商品列表 */
export function getGoods(data) {
data.method = `${path}basegoods.list`
return request(data)
}
/** 预录订单 */
export function addOrder(data) {
// data.method = `${path}order.advanceCreate`
data.method = `${path}order.advance.add`
return request(data, 'post')
}
/** 预录订单 - 编辑 */
export function editOrder(data) {
data.method = `${path2}advanceOrder.update`
return request(data, 'post')
}
import request from './request'
const path = 'dj.api.smartcarlife.'
// 出库订单查询
export function getIssueOrder(data) {
data.method = `${path}goodsOrder.getIssueOrder`
return request(data, 'post')
}
// erp订单查询
export function getErpOrderDetail(data) {
data.method = `${path}goodsOrder.getErpOrderDetail`
return request(data, 'post', '', { timeout: 3 * 1000 })
}
// 替换升级产品查询
export function getReplaceUpgrade(data) {
data.method = `${path}goodsOrder.getReplaceUpgrade`
return request(data, 'post')
}
// erp销售升级订单
export function ErpUpgradeSales(data) {
data.method = `${path}goodsOrder.ErpUpgradeSales`
return request(data, 'post')
}
import request from './request'
// const path = 'dj.api.'
const path2 = 'dj.api.smartcarlife.'
export function getSummary(data) {
data.method = `${path2}goodsOrderProfitAllocation.statistics`
return request(data)
}
// 超管-查询列表
export function getList(data) {
data.method = `${path2}goodsOrderProfitAllocation.page.byOrder`
return request(data)
}
// 园区店-查询列表
export function getYqList(data) {
data.method = `${path2}goodsOrderProfitAllocation.page.bySubOrder`
return request(data)
}
export function getListTotal(data) {
data.method = `${path2}goodsOrderProfitAllocation.page.count`
return request(data)
}
export function exportFile(data) {
data.method = `${path2}goodsOrderProfitAllocation.export`
return request(data)
}
// 服务商接口
// 服务商和园区店绑定关系
export function getServicerefApi(data) {
data.method = `${path2}get.service.ref`
return request(data)
}
/** 服务商查询 */
export function getServiceListApi(data) {
data.method = `${path2}goodsOrderProfitAllocation.page.bySubOrder`
return request(data)
}
export function getServiceSummaryApi(data) {
data.method = `${path2}goodsOrderProfitAllocation.count.service.merchant`
return request(data, 'post')
}
export function exportAccountStatement(data) {
data.method = `${path2}goodsOrderProfitAllocation.exportAccountStatement`
return request(data, 'post')
}
import request from './request'
// const path = 'dj.api.'
const path2 = 'dj.api.smartcarlife.'
export function getTodayInvite(data) {
data.method = `${path2}workbench.todayToInvite.count`
return request(data)
}
export function getTotalData(data) {
data.method = `${path2}workbench.statistics.total`
return request(data)
}
export function getCustomerData(data) {
data.method = `${path2}workbench.statistics.customer`
return request(data)
}
export function getTransferData(data) {
data.method = `${path2}workbench.statistics.customer.transfer`
return request(data)
}
export function getCustomerTransList(data) {
data.method = `${path2}workbench.statistics.customer.listCountByDay`
return request(data)
}
export function getStoreFlow(data) {
data.method = `${path2}workbench.statistics.serviceMerchantToShop.radioRankList`
return request(data)
}
export function getOrderProductData(data) {
data.method = `${path2}workbench.statistics.goods.countRankByDay`
return request(data)
}
export function getIncomeFlowList(data) {
data.method = `${path2}workbench.statistics.income.listCountByMonth`
return request(data)
}
export function getIncomeProductList(data) {
data.method = `${path2}workbench.statistics.goods.grossProfitRadio`
return request(data)
}
// 获取平台方列表
export function getPlatformMerchantList(data) {
data.method = `${path2}serviceMerchant.platformMerchant.list`
return request(data, 'post')
}
export function getExportDailyReport(data) {
data.method = `${path2}workbench.exportDailyReport`
return request(data)
}
export function getMerchantOutputValueTarget(data) {
data.method = `${path2}workbench.listMerchantOutputValueTarget`
return request(data)
}
export function setMerchantOutputValueTarget(data) {
data.method = `${path2}workbench.inputMerchantOutputValueTarget`
return request(data)
}
import request from './request'
const path = 'dj.api.inviteRecord.'
// 待预约、已预约总数查询
export function getTotalCount(data) {
data.method = `${path}count`
return request(data)
}
// 待预约、已预约总数查询
export function getList(data) {
data.method = `${path}search`
return request(data)
}
import request from './request'
import RequestMethods from './request.methods'
const path = 'dj.api.'
const path2 = 'dj.api.smartcarlife.'
export function getList(data) {
// data.method = `${path2}merchantSettleAccountRule.page.byMerchant`
data.method = `${path}servicemerchantref.shop.page`
return request(data)
}
// 删除4s门店
export function deleteMerchant(data) {
data.method = `${path}servicemerchantref.delete.byId`
return request(data)
}
// 获取4s列表
export function serviceGetMerchantList(data) {
data.method = `${path}merchant.page`
return request(data)
}
// 获取已经关联的4s店商户号列表
export function getRefShopList(data) {
data.method = 'dj.api.smartcarlife.refedShop.merchantId.list'
return request(data)
}
// 新增4s门店
export function addServiceMerchant(data) {
data.method = `${path}servicemerchantref.add`
return request(data, RequestMethods.POST)
}
// 获取园区店关联的服务商信息
export function getPartnerByYq(data) {
data.method = 'dj.smartcarlife.api.partnerMerchant.getByYq'
return request(data, RequestMethods.POST)
}
// 财务
// 获取财务设置进度
export function getRuleProgressApi(data) {
data.method = `${path2}merchantSettleAccountRule.get.progress`
return request(data, 'post')
}
export function updateRule(data) {
data.method = `${path2}merchantSettleAccountRule.update`
return request(data)
}
export function sendSms(data) {
data.method = `${path2}sms.sendMerchantCompantSmsCode`
return request(data)
}
export function getAdminInfo(data) {
data.method = `${path2}sms.merchantCompantSms.adminInfo`
return request(data, 'post')
}
/** 根据商户号获取商户的财务结算规则 */
export function getAccountRule(data) {
data.method = `${path2}merchantSettleAccountRule.get.byMerchantId`
return request(data, 'post')
}
// 财务 - 获取服务4s店(包含园区店、服务商信息)详情
export function getShopDetail(data) {
data.method = `${path}servicemerchantref.shop.detail`
return request(data, 'post')
}
// 获取分账规则
export function getDivisionRuleApi(data) {
data.method = `${path2}merchantDivisionRule.get.byMerchantId`
return request(data, 'post')
}
// 修改分账规则
export function updateDivisionRuleApi(data) {
data.method = `${path2}merchantDivisionRule.update`
return request(data, 'post')
}
// 财务 - 2 - 获取导流方
export function getMerchantLevelApi(data) {
data.method = `${path2}get.merchantLevel`
return request(data, 'post')
}
// 财务 - 3 - 保存/验证金额
export function moneyValidApi(data) {
data.method = `${path2}divisionRuleTest.money.valid`
return request(data, 'post')
}
// 财务 - 3 - websocket
export function getWsUrlApi(data) {
data.method = `${path}user.getWsUrl`
return request(data)
}
// 商户管理 - 查看详情 - 修改入驻日期
export function entrydateUpdate(data) {
data.method = `${path2}entrydate.update`
return request(data, 'post')
}
import request from './request'
// const path = 'dj.api.'
const path2 = 'dj.api.smartcarlife.'
export function getList(data) {
data.method = `${path2}ordermanage.page`
return request(data)
}
export function exportFile(data) {
data.method = `${path2}ordermanage.export`
return request(data)
}
export function getOrderDetail(data) {
data.method = `${path2}advanceOrder.detail`
return request(data)
}
export function getOrderCount(data) {
data.method = `${path2}ordermanage.count`
return request(data)
}
// 待补录订单统计(交易记录条数,已补录数,待补录数)
export function waitinputorderCount(data) {
data.method = `${path2}waitinputorder.count`
return request(data)
}
// 待补录订单导出
export function waitinputorderExport(data) {
data.method = `${path2}waitinputorder.export`
return request(data)
}
// 分页查询待补录订单
export function waitinputorderPage(data) {
data.method = `${path2}waitinputorder.page`
return request(data)
}
// 订单导入
export function orderImport(data) {
data.method = `${path2}order.import`
return request(data, 'post', ['file'])
}
// 订单导入结果查询
export function getImportResult(data) {
data.method = `${path2}order.getImportResult`
return request(data, 'post')
}
// 订单模板下载
export function downloadTemplate(data) {
data.method = `${path2}order.downloadTemplate`
return request(data, 'post')
}
import request from './request'
const path = 'dj.api.'
export function getUserInfo(data) {
data.method = `${path}user.info`
return request(data)
}
import request from './request'
const path = 'dj.api.'
const path2 = 'dj.smartcarlife.api.'
export function getList(data) {
data.method = `${path}goodsinfo.page`
return request(data)
}
export function getType(data) {
data.method = `${path}goods.type.list`
return request(data)
}
// 添加产品
export function addGoods(data) {
data.method = `${path}goodsinfo.add`
return request(data, 'post')
}
// 编辑产品
export function editGoods(data) {
data.method = `${path}goodsinfo.update`
return request(data, 'post')
}
// 判断产品是否可删除
export function checkDeleteGoods(data) {
data.method = `${path2}goodsinfo.checkDeleteable`
return request(data, 'post')
}
// 删除产品
export function deleteGoods(data) {
data.method = `${path2}goodsinfo.delete`
return request(data, 'post')
}
// 导出产品
export function exportGoodsList(data) {
data.method = `${path}goodsinfo.export`
return request(data, 'post')
}
import request from './request'
const djPath = 'dj.api.'
const path = 'dj.api.serviceMerchant.'
// 分页查询服务门店
export function getListApi(data) {
data.method = `${path}listWithPage`
return request(data, 'post')
}
// 注册线下商户
export function registerYseMerchantApi(data) {
data.method = `${djPath}yseMerchantOffline.register`
return request(data, 'post')
}
// 注册线下商户_新版 registerYseMerchantApiNew
export function registerYseMerchantApiNew(data) {
data.method = `${djPath}yseMerchantOffline.registerNew`
return request(data, 'post')
}
// 注册线下商户-存草稿
export function draftYseMerchantApi(data) {
data.method = `${djPath}yseMerchantOffline.saveDrafts`
return request(data, 'post')
}
// 注册线下商户-存草稿_新版
export function draftYseMerchantApiNew(data) {
data.method = `${djPath}yseMerchantOffline.saveDraftsNew`
return request(data, 'post')
}
// 获取商户虚拟对公账户详情
export function getDetailApi(data) {
data.method = `${djPath}yseMerchantOffline.getDetail`
return request(data, 'post')
}
// 渠道级联dj.api.smartcarlife.get.merchant.level
export function getMerchantLevelApi(data) {
data.method = `${djPath}smartcarlife.get.merchant.level`
return request(data, 'post')
}
// 分页搜索服务门店
export function getMerchantPageSearch(data) {
data.method = `${path}page.search`
return request(data, 'post')
}
// 下载账户合同
export function downloadContract(data) {
data.method = `${path}yseMerchantOffline.downSign`
return request(data, 'post')
}
// 获取省市区信息
export function getAreaInfoApi(data) {
data.method = `${djPath}yseMerchantOffline.getAreaInfo`
return request(data, 'post')
}
// 根据开户支行编号查询区域信息
export function getAreaInfoByOpenAccBankTypeApi(data) {
data.method = `${djPath}yseMerchantOffline.getAreaInfoByOpenAccBankType`
return request(data, 'post')
}
// 分账规则历史记录
export function getHistoryRecord(data) {
data.method = `${djPath}smartcarlife.divisionRuleEffectRecord.getHistoryRecord`
return request(data, 'post')
}
import request from './request'
const path = 'dj.smartcarlife.api.'
// 预录订单列表
export function getList(data) {
data.method = `${path}yqAdvanceOrder.page`
return request(data)
}
export function getOrderDetail(data) {
data.method = 'dj.api.smartcarlife.advanceOrder.detail'
return request(data)
}
export function getOrderTotal(data) {
data.method = 'dj.api.smartcarlife.yqAdvanceOrder.total'
return request(data)
}
// 文件导入
export function recordUpload(data) {
data.method = `${path}advanceOrder.import`
return request(data, 'post', ['file'])
}
This diff could not be displayed because it is too large.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff could not be displayed because it is too large.
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!