添加营销系统模块

This commit is contained in:
hedekun
2018-11-08 08:39:42 +08:00
commit f7eb22e5bb
181 changed files with 35426 additions and 0 deletions

12
.babelrc Normal file
View File

@@ -0,0 +1,12 @@
{
"presets": [
["env", {
"modules": false,
"targets": {
"browsers": ["> 1%", "last 2 versions", "not ie <= 8"]
}
}],
"stage-2"
],
"plugins":["transform-vue-jsx", "transform-runtime"]
}

14
.editorconfig Normal file
View File

@@ -0,0 +1,14 @@
# http://editorconfig.org
root = true
[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
[*.md]
insert_final_newline = false
trim_trailing_whitespace = false

5
.eslintignore Normal file
View File

@@ -0,0 +1,5 @@
build/*.js
config/*.js
src/assets
src/icon
src/views/ProjectManagement

196
.eslintrc.js Normal file
View File

@@ -0,0 +1,196 @@
module.exports = {
root: true,
parserOptions: {
parser: 'babel-eslint',
sourceType: 'module'
},
env: {
browser: true,
node: true,
es6: true,
},
extends: ['plugin:vue/recommended', 'eslint:recommended'],
// add your custom rules here
//it is base on https://github.com/vuejs/eslint-config-vue
rules: {
"vue/max-attributes-per-line": [2, {
"singleline": 10,
"multiline": {
"max": 1,
"allowFirstLine": false
}
}],
"vue/name-property-casing": ["error", "PascalCase"],
'accessor-pairs': 2,
'arrow-spacing': [2, {
'before': true,
'after': true
}],
'block-spacing': [2, 'always'],
'brace-style': [2, '1tbs', {
'allowSingleLine': true
}],
'camelcase': [0, {
'properties': 'always'
}],
'comma-dangle': [2, 'never'],
'comma-spacing': [2, {
'before': false,
'after': true
}],
'comma-style': [2, 'last'],
'constructor-super': 2,
'curly': [2, 'multi-line'],
'dot-location': [2, 'property'],
'eol-last': 2,
'eqeqeq': [2, 'allow-null'],
'generator-star-spacing': [2, {
'before': true,
'after': true
}],
'handle-callback-err': [2, '^(err|error)$'],
'indent': [2, 2, {
'SwitchCase': 1
}],
'jsx-quotes': [2, 'prefer-single'],
'key-spacing': [2, {
'beforeColon': false,
'afterColon': true
}],
'keyword-spacing': [2, {
'before': true,
'after': true
}],
'new-cap': [2, {
'newIsCap': true,
'capIsNew': false
}],
'new-parens': 2,
'no-array-constructor': 2,
'no-caller': 2,
'no-console': 'off',
'no-class-assign': 2,
'no-cond-assign': 2,
'no-const-assign': 2,
'no-control-regex': 2,
'no-delete-var': 2,
'no-dupe-args': 2,
'no-dupe-class-members': 2,
'no-dupe-keys': 2,
'no-duplicate-case': 2,
'no-empty-character-class': 2,
'no-empty-pattern': 2,
'no-eval': 2,
'no-ex-assign': 2,
'no-extend-native': 2,
'no-extra-bind': 2,
'no-extra-boolean-cast': 2,
'no-extra-parens': [2, 'functions'],
'no-fallthrough': 2,
'no-floating-decimal': 2,
'no-func-assign': 2,
'no-implied-eval': 2,
'no-inner-declarations': [2, 'functions'],
'no-invalid-regexp': 2,
'no-irregular-whitespace': 2,
'no-iterator': 2,
'no-label-var': 2,
'no-labels': [2, {
'allowLoop': false,
'allowSwitch': false
}],
'no-lone-blocks': 2,
'no-mixed-spaces-and-tabs': 2,
'no-multi-spaces': 2,
'no-multi-str': 2,
'no-multiple-empty-lines': [2, {
'max': 1
}],
'no-native-reassign': 2,
'no-negated-in-lhs': 2,
'no-new-object': 2,
'no-new-require': 2,
'no-new-symbol': 2,
'no-new-wrappers': 2,
'no-obj-calls': 2,
'no-octal': 2,
'no-octal-escape': 2,
'no-path-concat': 2,
'no-proto': 2,
'no-redeclare': 2,
'no-regex-spaces': 2,
'no-return-assign': [2, 'except-parens'],
'no-self-assign': 2,
'no-self-compare': 2,
'no-sequences': 2,
'no-shadow-restricted-names': 2,
'no-spaced-func': 2,
'no-sparse-arrays': 2,
'no-this-before-super': 2,
'no-throw-literal': 2,
'no-trailing-spaces': 2,
'no-undef': 2,
'no-undef-init': 2,
'no-unexpected-multiline': 2,
'no-unmodified-loop-condition': 2,
'no-unneeded-ternary': [2, {
'defaultAssignment': false
}],
'no-unreachable': 2,
'no-unsafe-finally': 2,
'no-unused-vars': [2, {
'vars': 'all',
'args': 'none'
}],
'no-useless-call': 2,
'no-useless-computed-key': 2,
'no-useless-constructor': 2,
'no-useless-escape': 0,
'no-whitespace-before-property': 2,
'no-with': 2,
'one-var': [2, {
'initialized': 'never'
}],
'operator-linebreak': [2, 'after', {
'overrides': {
'?': 'before',
':': 'before'
}
}],
'padded-blocks': [2, 'never'],
'quotes': [2, 'single', {
'avoidEscape': true,
'allowTemplateLiterals': true
}],
'semi': [2, 'never'],
'semi-spacing': [2, {
'before': false,
'after': true
}],
'space-before-blocks': [2, 'always'],
'space-before-function-paren': [2, 'never'],
'space-in-parens': [2, 'never'],
'space-infix-ops': 2,
'space-unary-ops': [2, {
'words': true,
'nonwords': false
}],
'spaced-comment': [2, 'always', {
'markers': ['global', 'globals', 'eslint', 'eslint-disable', '*package', '!', ',']
}],
'template-curly-spacing': [2, 'never'],
'use-isnan': 2,
'valid-typeof': 2,
'wrap-iife': [2, 'any'],
'yield-star-spacing': [2, 'both'],
'yoda': [2, 'never'],
'prefer-const': 2,
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
'object-curly-spacing': [2, 'always', {
objectsInObjects: false
}],
'array-bracket-spacing': [2, 'never']
}
}

15
.gitignore vendored Normal file
View File

@@ -0,0 +1,15 @@
.DS_Store
node_modules/
dist/
npm-debug.log*
yarn-debug.log*
yarn-error.log*
package-lock.json
# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln

10
.postcssrc.js Normal file
View File

@@ -0,0 +1,10 @@
// https://github.com/michael-ciniawsky/postcss-load-config
module.exports = {
"plugins": {
"postcss-import": {},
"postcss-url": {},
// to edit target browsers: use "browserslist" field in package.json
"autoprefixer": {}
}
}

5
.travis.yml Normal file
View File

@@ -0,0 +1,5 @@
language: node_js
node_js: stable
script: npm run test
notifications:
email: false

21
LICENSE Normal file
View File

@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2017-present PanJiaChen
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.

45
build/build.js Normal file
View File

@@ -0,0 +1,45 @@
'use strict'
require('./check-versions')()
process.env.NODE_ENV = 'production'
const ora = require('ora')
const rm = require('rimraf')
const path = require('path')
const chalk = require('chalk')
const webpack = require('webpack')
const config = require('../config')
const webpackConfig = require('./webpack.prod.conf')
const spinner = ora('building for production...')
spinner.start()
rm(path.join(config.build.assetsRoot, config.build.assetsSubDirectory), err => {
if (err) throw err
webpack(webpackConfig, (err, stats) => {
spinner.stop()
if (err) throw err
process.stdout.write(
stats.toString({
colors: true,
modules: false,
children: false,
chunks: false,
chunkModules: false
}) + '\n\n'
)
if (stats.hasErrors()) {
console.log(chalk.red(' Build failed with errors.\n'))
process.exit(1)
}
console.log(chalk.cyan(' Build complete.\n'))
console.log(
chalk.yellow(
' Tip: built files are meant to be served over an HTTP server.\n' +
" Opening index.html over file:// won't work.\n"
)
)
})
})

64
build/check-versions.js Normal file
View File

@@ -0,0 +1,64 @@
'use strict'
const chalk = require('chalk')
const semver = require('semver')
const packageConfig = require('../package.json')
const shell = require('shelljs')
function exec(cmd) {
return require('child_process')
.execSync(cmd)
.toString()
.trim()
}
const versionRequirements = [
{
name: 'node',
currentVersion: semver.clean(process.version),
versionRequirement: packageConfig.engines.node
}
]
if (shell.which('npm')) {
versionRequirements.push({
name: 'npm',
currentVersion: exec('npm --version'),
versionRequirement: packageConfig.engines.npm
})
}
module.exports = function() {
const warnings = []
for (let i = 0; i < versionRequirements.length; i++) {
const mod = versionRequirements[i]
if (!semver.satisfies(mod.currentVersion, mod.versionRequirement)) {
warnings.push(
mod.name +
': ' +
chalk.red(mod.currentVersion) +
' should be ' +
chalk.green(mod.versionRequirement)
)
}
}
if (warnings.length) {
console.log('')
console.log(
chalk.yellow(
'To use this template, you must update following to modules:'
)
)
console.log()
for (let i = 0; i < warnings.length; i++) {
const warning = warnings[i]
console.log(' ' + warning)
}
console.log()
process.exit(1)
}
}

BIN
build/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

108
build/utils.js Normal file
View File

@@ -0,0 +1,108 @@
'use strict'
const path = require('path')
const config = require('../config')
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
const packageConfig = require('../package.json')
exports.assetsPath = function(_path) {
const assetsSubDirectory =
process.env.NODE_ENV === 'production'
? config.build.assetsSubDirectory
: config.dev.assetsSubDirectory
return path.posix.join(assetsSubDirectory, _path)
}
exports.cssLoaders = function(options) {
options = options || {}
const cssLoader = {
loader: 'css-loader',
options: {
sourceMap: options.sourceMap
}
}
const postcssLoader = {
loader: 'postcss-loader',
options: {
sourceMap: options.sourceMap
}
}
// generate loader string to be used with extract text plugin
function generateLoaders(loader, loaderOptions) {
const loaders = []
// Extract CSS when that option is specified
// (which is the case during production build)
if (options.extract) {
loaders.push(MiniCssExtractPlugin.loader)
} else {
loaders.push('vue-style-loader')
}
loaders.push(cssLoader)
if (options.usePostCSS) {
loaders.push(postcssLoader)
}
if (loader) {
loaders.push({
loader: loader + '-loader',
options: Object.assign({}, loaderOptions, {
sourceMap: options.sourceMap
})
})
}
return loaders
}
// https://vue-loader.vuejs.org/en/configurations/extract-css.html
return {
css: generateLoaders(),
postcss: generateLoaders(),
less: generateLoaders('less'),
sass: generateLoaders('sass', {
indentedSyntax: true
}),
scss: generateLoaders('sass'),
stylus: generateLoaders('stylus'),
styl: generateLoaders('stylus')
}
}
// Generate loaders for standalone style files (outside of .vue)
exports.styleLoaders = function(options) {
const output = []
const loaders = exports.cssLoaders(options)
for (const extension in loaders) {
const loader = loaders[extension]
output.push({
test: new RegExp('\\.' + extension + '$'),
use: loader
})
}
return output
}
exports.createNotifierCallback = () => {
const notifier = require('node-notifier')
return (severity, errors) => {
if (severity !== 'error') return
const error = errors[0]
const filename = error.file && error.file.split('!').pop()
notifier.notify({
title: packageConfig.name,
message: severity + ': ' + error.name,
subtitle: filename || '',
icon: path.join(__dirname, 'logo.png')
})
}
}

5
build/vue-loader.conf.js Normal file
View File

@@ -0,0 +1,5 @@
'use strict'
module.exports = {
//You can set the vue-loader configuration by yourself.
}

107
build/webpack.base.conf.js Normal file
View File

@@ -0,0 +1,107 @@
'use strict'
const path = require('path')
const utils = require('./utils')
const config = require('../config')
const { VueLoaderPlugin } = require('vue-loader')
const vueLoaderConfig = require('./vue-loader.conf')
function resolve(dir) {
return path.join(__dirname, '..', dir)
}
const createLintingRule = () => ({
test: /\.(js|vue)$/,
loader: 'eslint-loader',
enforce: 'pre',
include: [resolve('src'), resolve('test')],
options: {
formatter: require('eslint-friendly-formatter'),
emitWarning: !config.dev.showEslintErrorsInOverlay
}
})
module.exports = {
context: path.resolve(__dirname, '../'),
entry: {
app: './src/main.js'
},
output: {
path: config.build.assetsRoot,
filename: '[name].js',
publicPath:
process.env.NODE_ENV === 'production'
? config.build.assetsPublicPath
: config.dev.assetsPublicPath
},
resolve: {
extensions: ['.js', '.vue', '.json'],
alias: {
'@': resolve('src')
}
},
module: {
rules: [
...(config.dev.useEslint ? [createLintingRule()] : []),
{
test: /\.vue$/,
loader: 'vue-loader',
options: vueLoaderConfig
},
{
test: /\.js$/,
loader: 'babel-loader',
include: [
resolve('src'),
resolve('test'),
resolve('node_modules/webpack-dev-server/client')
]
},
{
test: /\.svg$/,
loader: 'svg-sprite-loader',
include: [resolve('src/icons')],
options: {
symbolId: 'icon-[name]'
}
},
{
test: /\.(png|jpe?g|gif|svg)(\?.*)?$/,
loader: 'url-loader',
exclude: [resolve('src/icons')],
options: {
limit: 10000,
name: utils.assetsPath('img/[name].[hash:7].[ext]')
}
},
{
test: /\.(mp4|webm|ogg|mp3|wav|flac|aac)(\?.*)?$/,
loader: 'url-loader',
options: {
limit: 10000,
name: utils.assetsPath('media/[name].[hash:7].[ext]')
}
},
{
test: /\.(woff2?|eot|ttf|otf)(\?.*)?$/,
loader: 'url-loader',
options: {
limit: 10000,
name: utils.assetsPath('fonts/[name].[hash:7].[ext]')
}
}
]
},
plugins: [new VueLoaderPlugin()],
node: {
// prevent webpack from injecting useless setImmediate polyfill because Vue
// source contains it (although only uses it if it's native).
setImmediate: false,
// prevent webpack from injecting mocks to Node native modules
// that does not make sense for the client
dgram: 'empty',
fs: 'empty',
net: 'empty',
tls: 'empty',
child_process: 'empty'
}
}

93
build/webpack.dev.conf.js Normal file
View File

@@ -0,0 +1,93 @@
'use strict'
const path = require('path')
const utils = require('./utils')
const webpack = require('webpack')
const config = require('../config')
const merge = require('webpack-merge')
const baseWebpackConfig = require('./webpack.base.conf')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const FriendlyErrorsPlugin = require('friendly-errors-webpack-plugin')
const portfinder = require('portfinder')
function resolve(dir) {
return path.join(__dirname, '..', dir)
}
const HOST = process.env.HOST
const PORT = process.env.PORT && Number(process.env.PORT)
const devWebpackConfig = merge(baseWebpackConfig, {
mode: 'development',
module: {
rules: utils.styleLoaders({
sourceMap: config.dev.cssSourceMap,
usePostCSS: true
})
},
// cheap-module-eval-source-map is faster for development
devtool: config.dev.devtool,
// these devServer options should be customized in /config/index.js
devServer: {
clientLogLevel: 'warning',
historyApiFallback: true,
hot: true,
compress: true,
host: HOST || config.dev.host,
port: PORT || config.dev.port,
open: config.dev.autoOpenBrowser,
overlay: config.dev.errorOverlay
? { warnings: false, errors: true }
: false,
publicPath: config.dev.assetsPublicPath,
proxy: config.dev.proxyTable,
quiet: true, // necessary for FriendlyErrorsPlugin
watchOptions: {
poll: config.dev.poll
}
},
plugins: [
new webpack.DefinePlugin({
'process.env': require('../config/dev.env')
}),
new webpack.HotModuleReplacementPlugin(),
// https://github.com/ampedandwired/html-webpack-plugin
new HtmlWebpackPlugin({
filename: 'index.html',
template: 'index.html',
inject: true,
favicon: resolve('favicon.ico'),
title: 'vue-admin-template'
})
]
})
module.exports = new Promise((resolve, reject) => {
portfinder.basePort = process.env.PORT || config.dev.port
portfinder.getPort((err, port) => {
if (err) {
reject(err)
} else {
// publish the new Port, necessary for e2e tests
process.env.PORT = port
// add port to devServer config
devWebpackConfig.devServer.port = port
// Add FriendlyErrorsPlugin
devWebpackConfig.plugins.push(
new FriendlyErrorsPlugin({
compilationSuccessInfo: {
messages: [
`Your application is running here: http://${devWebpackConfig.devServer.host}:${port}`
]
},
onErrors: config.dev.notifyOnErrors
? utils.createNotifierCallback()
: undefined
})
)
resolve(devWebpackConfig)
}
})
})

178
build/webpack.prod.conf.js Normal file
View File

@@ -0,0 +1,178 @@
'use strict'
const path = require('path')
const utils = require('./utils')
const webpack = require('webpack')
const config = require('../config')
const merge = require('webpack-merge')
const baseWebpackConfig = require('./webpack.base.conf')
const CopyWebpackPlugin = require('copy-webpack-plugin')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const ScriptExtHtmlWebpackPlugin = require('script-ext-html-webpack-plugin')
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin')
const UglifyJsPlugin = require('uglifyjs-webpack-plugin')
function resolve(dir) {
return path.join(__dirname, '..', dir)
}
const env = require('../config/prod.env')
// For NamedChunksPlugin
const seen = new Set()
const nameLength = 4
const webpackConfig = merge(baseWebpackConfig, {
mode: 'production',
module: {
rules: utils.styleLoaders({
sourceMap: config.build.productionSourceMap,
extract: true,
usePostCSS: true
})
},
devtool: config.build.productionSourceMap ? config.build.devtool : false,
output: {
path: config.build.assetsRoot,
filename: utils.assetsPath('js/[name].[chunkhash:8].js'),
chunkFilename: utils.assetsPath('js/[name].[chunkhash:8].js')
},
plugins: [
// http://vuejs.github.io/vue-loader/en/workflow/production.html
new webpack.DefinePlugin({
'process.env': env
}),
// extract css into its own file
new MiniCssExtractPlugin({
filename: utils.assetsPath('css/[name].[contenthash:8].css'),
chunkFilename: utils.assetsPath('css/[name].[contenthash:8].css')
}),
// generate dist index.html with correct asset hash for caching.
// you can customize output by editing /index.html
// see https://github.com/ampedandwired/html-webpack-plugin
new HtmlWebpackPlugin({
filename: config.build.index,
template: 'index.html',
inject: true,
favicon: resolve('favicon.ico'),
title: 'vue-admin-template',
minify: {
removeComments: true,
collapseWhitespace: true,
removeAttributeQuotes: true
// more options:
// https://github.com/kangax/html-minifier#options-quick-reference
}
// default sort mode uses toposort which cannot handle cyclic deps
// in certain cases, and in webpack 4, chunk order in HTML doesn't
// matter anyway
}),
new ScriptExtHtmlWebpackPlugin({
//`runtime` must same as runtimeChunk name. default is `runtime`
inline: /runtime\..*\.js$/
}),
// keep chunk.id stable when chunk has no name
new webpack.NamedChunksPlugin(chunk => {
if (chunk.name) {
return chunk.name
}
const modules = Array.from(chunk.modulesIterable)
if (modules.length > 1) {
const hash = require('hash-sum')
const joinedHash = hash(modules.map(m => m.id).join('_'))
let len = nameLength
while (seen.has(joinedHash.substr(0, len))) len++
seen.add(joinedHash.substr(0, len))
return `chunk-${joinedHash.substr(0, len)}`
} else {
return modules[0].id
}
}),
// keep module.id stable when vender modules does not change
new webpack.HashedModuleIdsPlugin(),
// copy custom static assets
new CopyWebpackPlugin([
{
from: path.resolve(__dirname, '../static'),
to: config.build.assetsSubDirectory,
ignore: ['.*']
}
])
],
optimization: {
splitChunks: {
chunks: 'all',
cacheGroups: {
libs: {
name: 'chunk-libs',
test: /[\\/]node_modules[\\/]/,
priority: 10,
chunks: 'initial' // 只打包初始时依赖的第三方
},
elementUI: {
name: 'chunk-elementUI', // 单独将 elementUI 拆包
priority: 20, // 权重要大于 libs 和 app 不然会被打包进 libs 或者 app
test: /[\\/]node_modules[\\/]element-ui[\\/]/
}
}
},
runtimeChunk: 'single',
minimizer: [
new UglifyJsPlugin({
uglifyOptions: {
mangle: {
safari10: true
}
},
sourceMap: config.build.productionSourceMap,
cache: true,
parallel: true
}),
// Compress extracted CSS. We are using this plugin so that possible
// duplicated CSS from different components can be deduped.
new OptimizeCSSAssetsPlugin()
]
}
})
if (config.build.productionGzip) {
const CompressionWebpackPlugin = require('compression-webpack-plugin')
webpackConfig.plugins.push(
new CompressionWebpackPlugin({
asset: '[path].gz[query]',
algorithm: 'gzip',
test: new RegExp(
'\\.(' + config.build.productionGzipExtensions.join('|') + ')$'
),
threshold: 10240,
minRatio: 0.8
})
)
}
if (config.build.generateAnalyzerReport || config.build.bundleAnalyzerReport) {
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer')
.BundleAnalyzerPlugin
if (config.build.bundleAnalyzerReport) {
webpackConfig.plugins.push(
new BundleAnalyzerPlugin({
analyzerPort: 8080,
generateStatsFile: false
})
)
}
if (config.build.generateAnalyzerReport) {
webpackConfig.plugins.push(
new BundleAnalyzerPlugin({
analyzerMode: 'static',
reportFilename: 'bundle-report.html',
openAnalyzer: false
})
)
}
}
module.exports = webpackConfig

8
config/dev.env.js Normal file
View File

@@ -0,0 +1,8 @@
'use strict'
const merge = require('webpack-merge')
const prodEnv = require('./prod.env')
module.exports = merge(prodEnv, {
NODE_ENV: '"development"',
BASE_API: '"https://easy-mock.com/mock/5950a2419adc231f356a6636/vue-admin"',
})

91
config/index.js Normal file
View File

@@ -0,0 +1,91 @@
'use strict'
// Template version: 1.2.6
// see http://vuejs-templates.github.io/webpack for documentation.
const path = require('path')
const os = require('os')
const networkInterfaces = os.networkInterfaces()
const ip = networkInterfaces['WLAN'][1].address
module.exports = {
dev: {
// Paths
assetsSubDirectory: 'static',
assetsPublicPath: '/',
proxyTable: {},
// Various Dev Server settings
host: ip, // can be overwritten by process.env.HOST
port: 9528, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
autoOpenBrowser: true,
errorOverlay: true,
notifyOnErrors: false,
poll: false, // https://webpack.js.org/configuration/dev-server/#devserver-watchoptions-
// Use Eslint Loader?
// If true, your code will be linted during bundling and
// linting errors and warnings will be shown in the console.
useEslint: true,
// If true, eslint errors and warnings will also be shown in the error overlay
// in the browser.
showEslintErrorsInOverlay: false,
/**
* Source Maps
*/
// https://webpack.js.org/configuration/devtool/#development
devtool: 'cheap-source-map',
// CSS Sourcemaps off by default because relative paths are "buggy"
// with this option, according to the CSS-Loader README
// (https://github.com/webpack/css-loader#sourcemaps)
// In our experience, they generally work as expected,
// just be aware of this issue when enabling this option.
cssSourceMap: false
},
build: {
// Template for index.html
index: path.resolve(__dirname, '../dist/index.html'),
// Paths
assetsRoot: path.resolve(__dirname, '../dist'),
assetsSubDirectory: 'static',
/**
* You can set by youself according to actual condition
* You will need to set this if you plan to deploy your site under a sub path,
* for example GitHub pages. If you plan to deploy your site to https://foo.github.io/bar/,
* then assetsPublicPath should be set to "/bar/".
* In most cases please use '/' !!!
*/
assetsPublicPath: '/',
/**
* Source Maps
*/
productionSourceMap: false,
// https://webpack.js.org/configuration/devtool/#production
devtool: 'source-map',
// Gzip off by default as many popular static hosts such as
// Surge or Netlify already gzip all static assets for you.
// Before setting to `true`, make sure to:
// npm install --save-dev compression-webpack-plugin
productionGzip: false,
productionGzipExtensions: ['js', 'css'],
// Run the build command with an extra argument to
// View the bundle analyzer report after build finishes:
// `npm run build --report`
// Set to `true` or `false` to always turn it on or off
bundleAnalyzerReport: process.env.npm_config_report || false,
// `npm run build:prod --generate_report`
generateAnalyzerReport: process.env.npm_config_generate_report || false
}
}

5
config/prod.env.js Normal file
View File

@@ -0,0 +1,5 @@
'use strict'
module.exports = {
NODE_ENV: '"production"',
BASE_API: '"https://easy-mock.com/mock/5950a2419adc231f356a6636/vue-admin"',
}

BIN
favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

12
index.html Normal file
View File

@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>高精机电装备有限公司数字化工厂</title>
</head>
<body>
<div id="app"></div>
<!-- built files will be auto injected -->
</body>
</html>

89
package.json Normal file
View File

@@ -0,0 +1,89 @@
{
"name": "gaojing",
"version": "1.1.0",
"description": "A Management Information System of JANGSU GAOJING MECHANICAL EQUIPMENET CO,.LTD,the template is from git+https://github.com/PanJiaChen/vue-element-admin.git",
"author": "MESWORK",
"scripts": {
"dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js",
"start": "npm run dev",
"build": "node build/build.js",
"build:report": "npm_config_report=true npm run build",
"lint": "eslint --fix --ext .js,.vue src",
"test": "npm run lint",
"svgo": "svgo -f src/icons/svg --config=src/icons/svgo.yml"
},
"dependencies": {
"axios": "0.18.0",
"echarts": "^4.2.0-rc.2",
"element-ui": "2.4.6",
"file-saver": "^1.3.8",
"js-cookie": "2.2.0",
"node-sass": "^4.9.3",
"normalize.css": "7.0.0",
"nprogress": "0.2.0",
"time-formater": "^1.0.3",
"vue": "2.5.17",
"vue-router": "3.0.1",
"vuex": "3.0.1",
"xlsx": "^0.14.0",
"xlsx-style": "^0.8.13"
},
"devDependencies": {
"autoprefixer": "8.5.0",
"babel-core": "6.26.0",
"babel-eslint": "8.2.6",
"babel-helper-vue-jsx-merge-props": "2.0.3",
"babel-loader": "7.1.5",
"babel-plugin-syntax-jsx": "6.18.0",
"babel-plugin-transform-runtime": "6.23.0",
"babel-plugin-transform-vue-jsx": "3.7.0",
"babel-preset-env": "1.7.0",
"babel-preset-stage-2": "6.24.1",
"chalk": "2.4.1",
"copy-webpack-plugin": "4.5.2",
"css-loader": "1.0.0",
"eslint": "4.19.1",
"eslint-friendly-formatter": "4.0.1",
"eslint-loader": "2.0.0",
"eslint-plugin-vue": "4.7.1",
"eventsource-polyfill": "0.9.6",
"file-loader": "1.1.11",
"friendly-errors-webpack-plugin": "1.7.0",
"html-webpack-plugin": "4.0.0-alpha",
"mini-css-extract-plugin": "0.4.1",
"node-notifier": "5.2.1",
"optimize-css-assets-webpack-plugin": "5.0.0",
"ora": "3.0.0",
"portfinder": "1.0.16",
"postcss-import": "12.0.0",
"postcss-loader": "2.1.6",
"postcss-url": "7.3.2",
"rimraf": "2.6.2",
"sass-loader": "7.0.3",
"script-ext-html-webpack-plugin": "2.0.1",
"script-loader": "^0.7.2",
"semver": "5.5.0",
"shelljs": "0.8.2",
"svg-sprite-loader": "3.8.0",
"svgo": "1.0.5",
"uglifyjs-webpack-plugin": "1.2.7",
"url-loader": "1.0.1",
"vue-loader": "15.3.0",
"vue-style-loader": "4.1.2",
"vue-template-compiler": "2.5.17",
"webpack": "4.16.5",
"webpack-bundle-analyzer": "2.13.1",
"webpack-cli": "3.1.0",
"webpack-dev-server": "3.1.5",
"webpack-merge": "4.1.4"
},
"engines": {
"node": ">= 6.0.0",
"npm": ">= 3.0.0"
},
"browserslist": [
"> 1%",
"last 2 versions",
"not ie <= 8"
]
}

11
src/App.vue Normal file
View File

@@ -0,0 +1,11 @@
<template>
<div id="app">
<router-view/>
</div>
</template>
<script>
export default {
name: 'App'
}
</script>

View File

@@ -0,0 +1,332 @@
import request from '@/utils/request'
export function getTree() {
return request({
url: '',
method: 'post',
data: {
type: 1,
name: '人事档案管理_部门关系_查询节点',
param: '子节点=0=int'
}
})
}
export function tree(data, pid) {
const result = []
let temp
for (let i = 0; i < data.length; i++) {
if (data[i].父节点 === pid) {
const obj = { label: data[i].节点名称, id: data[i].子节点 }
temp = tree(data, data[i].子节点)
if (temp.length > 0) {
obj.children = temp
}
result.push(obj)
}
}
return result
}
export function getTablePeople(code, pageCurrent, pageSize) {
return request({
url: '',
method: 'post',
data: {
type: 1,
name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号',
param: '考核部门编号=' + code + '=int',
pagination: pageCurrent + '&' + pageSize
}
})
}
export function getTablePeopleForName(name) {
return request({
url: '',
method: 'post',
data: {
type: 1,
name: '人事档案管理_人员名单_查询数据_根据姓名_MESWORK',
param: '姓名=' + name + '=string'
}
})
}
// 新增部门
export function addDepartmentName(num1, num2, num3) {
return request({
url: '',
method: 'post',
data: {
type: 2,
name: '人事档案管理_部门关系_增加节点',
param: '父节点=' + num1 + '=int&节点名称=' + num2 + '=string&子节点=' + num3
}
})
}
// 删除部门
export function delList(num1) {
return request({
url: '',
method: 'post',
data: {
type: 2,
name: '人事档案管理_部门关系_删除节点',
param: '子节点=' + num1 + '=int'
}
})
}
// 编辑部门
export function editList(num1, num2) {
return request({
url: '',
method: 'post',
data: {
type: 2,
name: '人事档案管理_部门关系_修改节点',
param: '子节点=' + num1 + '=int&节点名称=' + num2 + '=string'
}
})
}
export function delPeopleList(num1) {
return request({
url: '',
method: 'post',
data: {
type: 2,
name: '人事档案管理_人员名单_删除数据_MESWORK',
param: '人员编号=' + num1 + '=int'
}
})
}
export function initUniversity() {
return request({
url: '',
method: 'post',
data: {
type: 1,
name: '人事档案管理_基础表_毕业院校_查询数据'
}
})
}
export function fetchEducationData() {
return request({
url: '',
method: 'post',
data: {
type: 1,
name: '人事档案管理_基础表_学历_查询数据'
}
})
}
export function initMajor() {
return request({
url: '',
method: 'post',
data: {
type: 1,
name: '人事档案管理_基础表_所学专业_查询数据'
}
})
}
export function fetchForeignLanguageLevelDate() {
return request({
url: '',
method: 'post',
data: {
type: 1,
name: '人事档案管理_基础表_外语及熟练程度_查询数据'
}
})
}
export function fetchTitleData() {
return request({
url: '',
method: 'post',
data: {
type: 1,
name: '人事档案管理_基础表_职称_查询数据'
}
})
}
export function fetchPostData() {
return request({
url: '',
method: 'post',
data: {
type: 1,
name: '人事档案管理_基础表_人员岗位_查询数据'
}
})
}
export function fetchPositionStatusData() {
return request({
url: '',
method: 'post',
data: {
type: 1,
name: '人事档案管理_基础表_岗位状态_查询数据'
}
})
}
export function addPeople(id, Sex, Education, Address, Nation, Post, AccountNumber, Password, Name, IDcard, TimeOfEntry, Birthday, ContactInformation) {
return request({
url: '',
method: 'post',
data: {
type: 2,
name: '人事档案管理_人员名单_增加数据_MESWORK',
param: '考核部门编号=' + id + '=int&性别编号=' + Sex + '=int&学历编号=' + Education + '=int&家庭住址=' + Address + '&民族=' + Nation + '&岗位编号=' + Post + '=int&考勤编号=' + AccountNumber + '=string&密码=' + Password + '=string&姓名=' + Name + '=string&身份证号=' + IDcard + '=string&入公司时间=' + TimeOfEntry + '=string&出生日期=' + Birthday + '=string&联系电话=' + ContactInformation + '=string'
}
})
}
export function editPeople(id, Sex, Education, Address, Nation, Post, AccountNumber, Password, Name, IDcard, TimeOfEntry, Birthday, ContactInformation) {
return request({
url: '',
method: 'post',
data: {
type: 2,
name: '人事档案管理_人员名单_修改数据_MESWORK',
param: '人员编号=' + id + '=int&性别编号=' + Sex + '=int&学历编号=' + Education + '=int&家庭住址=' + Address + '&民族=' + Nation + '&岗位编号=' + Post + '=int&考勤编号=' + AccountNumber + '=string&密码=' + Password + '=string&姓名=' + Name + '=string&身份证号=' + IDcard + '=string&入公司时间=' + TimeOfEntry + '=string&出生日期=' + Birthday + '=string&联系电话=' + ContactInformation + '=string'
}
})
}
export function moveGroups(num1, num2) {
return request({
url: '',
method: 'post',
data: {
type: 2,
name: '人事档案管理_人员名单_移动数据_MESWORK',
param: '人员编号=' + num1 + '=int&考核部门编号=' + num2 + '=int'
}
})
}
export function feacthUniversity(num1) {
return request({
url: '',
method: 'post',
data: {
type: 1,
name: '人事档案管理_基础表_毕业院校_查询数据_根据学校名_MESWORK',
param: '毕业院校名称=' + num1 + '=string'
}
})
}
export function addUniversity(num1) {
return request({
url: '',
method: 'post',
data: {
type: 2,
name: '人事档案管理_基础表_毕业院校_增加数据',
param: '毕业院校名称=' + num1 + '=string'
}
})
}
export function editUniversity(num1, num2) {
return request({
url: '',
method: 'post',
data: {
type: 2,
name: '人事档案管理_基础表_毕业院校_修改数据',
param: '毕业院校编号=' + num1 + '=int&毕业院校名称=' + num2 + '=string'
}
})
}
export function delUniversity(num1) {
return request({
url: '',
method: 'post',
data: {
type: 2,
name: '人事档案管理_基础表_毕业院校_删除数据',
param: '毕业院校编号=' + num1 + '=int'
}
})
}
export function fetchMajor(num1) {
return request({
url: '',
method: 'post',
data: {
type: 1,
name: '人事档案管理_基础表_所学专业_查询数据_根据专业名_MESWORK',
param: '专业名称=' + num1 + '=string'
}
})
}
export function addMajor(num1) {
return request({
url: '',
method: 'post',
data: {
type: 2,
name: '人事档案管理_基础表_所学专业_增加数据',
param: '专业名称=' + num1 + '=string'
}
})
}
export function editMajor(num1, num2) {
return request({
url: '',
method: 'post',
data: {
type: 2,
name: '人事档案管理_基础表_所学专业_修改数据',
param: '专业编号=' + num1 + '=int&专业名称=' + num2 + '=string'
}
})
}
export function delMajor(num1) {
return request({
url: '',
method: 'post',
data: {
type: 2,
name: '人事档案管理_基础表_所学专业_删除数据',
param: '专业编号=' + num1 + '=int'
}
})
}
export function fetchPost(num1) {
return request({
url: '',
method: 'post',
data: {
type: 1,
name: '人事档案管理_基础表_人员岗位_查询数据_根据岗位名_MESWORK',
param: '岗位名称=' + num1 + '=string'
}
})
}
export function addPost(num1) {
return request({
url: '',
method: 'post',
data: {
type: 2,
name: '人事档案管理_基础表_人员岗位_增加数据',
param: '岗位名称=' + num1 + '=string'
}
})
}
export function editPost(num1, num2) {
return request({
url: '',
method: 'post',
data: {
type: 2,
name: '人事档案管理_基础表_人员岗位_修改数据',
param: '岗位编号=' + num1 + '=int&岗位名称=' + num2 + '=string'
}
})
}
export function delPost(num1) {
return request({
url: '',
method: 'post',
data: {
type: 2,
name: '人事档案管理_基础表_人员岗位_删除数据',
param: '岗位编号=' + num1 + '=int'
}
})
}

View File

@@ -0,0 +1,82 @@
import request from '@/utils/request'
export function getRole() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单系统模块_项目角色_查询数据_new'
}
})
}
export function getModule(role_check, role) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单系统模块_项目主模块列表_查询数据_gj',
param: `角色编号_check=${role_check}&角色编号=${role}=int`
}
})
}
export function addModule(module, role) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '菜单系统模块_项目角色模块列表_增加数据_gj',
param: `角色编号=${role}=int&主模块编号=${module}=int`
}
})
}
export function deleteModule(module, role) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '菜单系统模块_项目角色模块列表_删除数据_gj',
param: `角色编号=${role}=int&主模块编号=${module}=int`
}
})
}
export function getModelData(role) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单系统模块_项目主模块列表_查询单个模块_gj',
param: `主模块编号=${role}=int`
}
})
}
export function addModelData(component, title, icons) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '菜单系统模块_项目主模块列表_增加单个模块_gj',
param: `父路径=/${icons}&子名称=${icons}&子组件=${component}&标题=${title}&图标=${icons}`
}
})
}
export function editModelData(modelNum, component, title, icons) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '菜单系统模块_项目主模块列表_修改单个模块_gj',
param: `主模块编号=${modelNum}&父路径=/${icons}&子名称=${icons}&子组件=${component}&标题=${title}&图标=${icons}`
}
})
}

View File

@@ -0,0 +1,72 @@
import request from '@/utils/request'
// 初始化项目名称
export function initProject() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: 'PDM_项目名称_查询数据_按时间排序'
}
})
}
// 用项目查机床
export function searchMachine(num) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: 'PDM_机床名称_查询数据2',
param: '项目流水号=' + num
}
})
}
// 用机床查组件名称/号
export function searchGroupNum(num) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: 'PDM_零件明细表_组件流水号_查询数据_根据机床',
param: '机床流水号=' + num
}
})
}
export function searchTable(entryValue, machineValue, check2, GroupNumValue, check3, PartDrawingNumber, pageCurrent, pageSize) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_传递后_零件报废补投_查询数据_综合查询',
param: '项目流水号_check=1&项目流水号=' + entryValue + '&机床流水号_check=1&机床流水号=' + machineValue + '&组件流水号_check=' + check2 + '&组件流水号=' + GroupNumValue + '&组件零件基本件流水号_check=0&工艺计划流水号_check=0&工艺计划流水号_补投前_check=0&零件图号_check=' + check3 + '&零件图号=' + PartDrawingNumber,
pagination: pageCurrent + '&' + pageSize
}
})
}
export function searchTable1(num) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_零件工序_查询数据_根据工艺计划流水号',
param: '工艺计划流水号=' + num
}
})
}
export function searchTable2(check, entryNameValue, check1, machineNameValue, pageCurrent1, pageSize1) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_传递后_零件报废补投_查询数据_按机床查询',
param: '项目流水号_check=' + check + '&项目流水号=' + entryNameValue + '&机床流水号_check=' + check1 + '&机床流水号=' + machineNameValue,
pagination: pageCurrent1 + '&' + pageSize1
}
})
}

View File

@@ -0,0 +1,46 @@
import request from '@/utils/request'
export function initProject() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_基本件成组配套_查询项目名称'
}
})
}
export function searchmachine(num, check, pageCurrent, pageSize) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: 'PDM_机床名称_查询数据_分页',
param: '项目流水号_check=' + check + '=int&项目流水号=' + num + '=int&机床类型代码_check=0=int&机床类型代码=1=int&机床流水号_check=0=int&PageCurrent=' + pageCurrent + '=int&PageSize=' + pageSize + '=int&PageCount=1=int=output&ItemCount=1=int=output'
}
})
}
export function searchgroup(num, pageCurrent, pageSize) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: 'PDM_组件名称_查询数据_分页',
param: '机床流水号=' + num + '=int&PageCurrent=' + pageCurrent + '=int&PageSize=' + pageSize + '=int&PageCount=1=int=output&ItemCount=1=int=output'
}
})
}
export function searchTable(check, entryNameValue, check1, machine, check2, groupNum, check3, year, check4, month, check5, time, pageCurrent, pageSize) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_基本件成组配套_查询数据',
param: '项目流水号_check=' + check + '=int&项目流水号=' + entryNameValue + '=int&机床流水号_check=' + check1 + '=int&机床流水号=' + machine + '=int&组件流水号_check=' + check2 + '=int&组件流水号=' + groupNum + '=int&年_check=' + check3 + '=int&年=' + year + '=string&月_check=' + check4 + '=int&月=' + month + '=int&入库时间_check=' + check5 + '=int&入库时间=' + time + '=string',
pagination: pageCurrent + '&' + pageSize
}
})
}

View File

@@ -0,0 +1,113 @@
import request from '@/utils/request'
// 初始化 项目名称
export function getEntryNameValue() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_传递前_投产项目名称_查询数据',
param: '是否传递=1=int'
}
})
}
// 项目名称
export function getToolNum(num) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_传递后_机床名称_查询数据',
param: '项目流水号=' + num + '=int&是否传递=1=int'
}
})
}
// 组号
export function getNum(num) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_传递后_组件名称_查询数据',
param: '机床流水号=' + num + '=int&是否传递=1=int'
}
})
}
// 获取表格数据
export function getTable(num, pageList, pageSize) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_零件工艺计划_已投产_按组查',
param: '组件流水号=' + num + '=int',
Pagination: pageList + '&' + pageSize
}
})
}
// 投产
export function production(num, a, b, d, e, f, g, h, i, j, k, l, m, n, o, p, q, x, s, t, u, v, w) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '设备管理_可安排生产计划零件排序_制定组时间_同时传递',
param: '组件零件基本件流水号=' + num + '=int&投产类型流水号=' + a + '=int&数据类型=' + b + '=int&投产批次=1=int&批次数量=' + d + '=string&计划开始时间=' + e + '=string&计划结束时间=' + f + '=string&工艺计划开始时间=' + g + '=string&工艺计划结束时间=' + h + '=string&定额计划开始时间=' + i + '=string&定额计划结束时间=' + j + '=string&计划编制计划开始时间=' + k + '=string&计划编制计划结束时间=' + l + '=string&机加工开始时间=' + m + '=string&机加工结束时间=' + n + '=string&单件外协时间=' + o + '=string&单件是否外协=' + p + '=int&单件是否外协分类=' + q + '=string&计划制定人员编号=' + x + '&材料流水号=' + s + '=int&是否临时件=' + t + '=int&是否难度件=' + u + '=string&是否着急=' + v + '=int&是否白图=' + w + '=int'
}
})
}
// 获取表2的值
export function getTable1(num, pageList, pageSize) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_零件工艺计划_分批投产计划查询_查询显示',
param: '组件零件基本件流水号=' + num + '=int',
Pagination: pageList + '&' + pageSize
}
})
}
// 分批投产
export function revisionBatch(num, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, x, s, t, u, v, w) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '设备管理_可安排生产计划零件排序_制定组时间_同时传递',
param: '组件零件基本件流水号=' + num + '=int&投产类型流水号=' + a + '=int&数据类型=' + b + '=int&投产批次=' + c + '=int&批次数量=' + d + '=string&计划开始时间=' + e + '=string&计划结束时间=' + f + '=string&工艺计划开始时间=' + g + '=string&工艺计划结束时间=' + h + '=string&定额计划开始时间=' + i + '=string&定额计划结束时间=' + j + '=string&计划编制计划开始时间=' + k + '=string&计划编制计划结束时间=' + l + '=string&机加工开始时间=' + m + '=string&机加工结束时间=' + n + '=string&单件外协时间=' + o + '=string&单件是否外协=' + p + '=int&单件是否外协分类=' + q + '=string&计划制定人员编号=' + x + '&材料流水号=' + s + '=int&是否临时件=' + t + '=int&是否难度件=' + u + '=string&是否着急=' + v + '=int&是否白图=' + w + '=int'
}
})
}
// 编辑
export function editList(num, a, b, c) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间生产管理工艺_零件工艺计划_修改批次数量',
param: '工艺计划流水号=' + num + '=int&批次数量=' + a + '=string&机加工开始时间=' + b + '=string&机加工结束时间=' + c + '=string'
}
})
}
// 打回档案
export function dele(num, a, b) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: 'MRP_计划订单_车间打回零件_增加数据',
param: '组件零件基本件流水号=' + num + '=int&打回原因=' + a + '=string&打回时间=' + b + '=string'
}
})
}

View File

@@ -0,0 +1,24 @@
import request from '@/utils/request'
export function initProject() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '设备管理_传递后_项目名称_查询数据',
param: '考核状态=5'
}
})
}
export function searchData(check1, num1, check2, start, end, type) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_新排产算法_工时统计_单个项目总工时',
param: '项目流水号_check=' + check1 + '&项目流水号=' + num1 + '&日期_check=' + check2 + '&开始日期=' + start + '&结束日期=' + end + '&查询类型=' + type
}
})
}

View File

@@ -0,0 +1,191 @@
import request from '@/utils/request'
// 初始化项目
export function initProject() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: 'PDM_项目名称_查询数据'
}
})
}
// 机床查询
export function searchmachine(num, check) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: 'PDM_机床名称_查询数据',
param: '项目流水号_check=' + check + '=int&项目流水号=' + num
}
})
}
// 组件查询
export function searchgroup(num) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: 'PDM_组件名称_查询数据',
param: '机床流水号=' + num
}
})
}
export function searchTable(projectValue, check1, machineNumberValue, check2, groupNumberValue, check3) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间管理_基本件采购_查询数据',
param: '项目流水号_check=' + check1 + '&项目流水号=' + projectValue + '&机床流水号_check=' + check2 + '&机床流水号=' + machineNumberValue + '&组件流水号_check=' + check3 + '&组件流水号=' + groupNumberValue
}
})
}
export function searchPart(num) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: 'PDM_零件明细表_基本件_查询数据',
param: '组件流水号=' + num
}
})
}
export function searchPart1(num, type) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: 'PDM_项目管理_零件明细表_标准件和外购件_车间采购_查询数据',
param: '组件流水号=' + num + '&标准件类型=' + type
}
})
}
export function searchTable1(PurchaseOrder, check4) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间管理_基本件采购_请购单_查询数据',
param: '请购单编号=' + PurchaseOrder + '&请购单编号_check=' + check4
}
})
}
export function addData(num, num1, num2, id, time) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间管理_基本件采购_请购单_增加数据',
param: '请购单编号=' + num + '&请购车间=' + num1 + '&请购人=' + num2 + '&人员编号=' + id + '&请购时间=' + time
}
})
}
export function editData(RequisitionList, num, num1, time) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间管理_基本件采购_请购单_编辑数据',
param: '请购单流水号=' + RequisitionList + '&请购单编号=' + num + '&请购车间=' + num1 + '&请购时间=' + time
}
})
}
export function deleteData(RequisitionList) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间管理_基本件采购_请购单_删除数据',
param: '请购单流水号=' + RequisitionList
}
})
}
export function searchDetailed(num) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间管理_基本件采购_请购单明细_查询数据',
param: '请购单流水号=' + num
}
})
}
export function purchaseRequisition(RequisitionList, projectName, projectFloatValue, MachineToolNumber, machineFloatValue, groupName, groupFloatValue, BasicPartsNumber, MaterialName, NumberOfParts, PartType, time, MaterialNum) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间管理_基本件采购_请购单明细_请购',
param: '请购单流水号=' + RequisitionList + '&项目名称=' + projectName + '&项目流水号=' + projectFloatValue + '&机床图号=' + MachineToolNumber + '&机床流水号=' + machineFloatValue + '&组号=' + groupName + '&组件流水号=' + groupFloatValue + '&基本件流水号=' + BasicPartsNumber + '&物料名称=' + MaterialName + '&零件数量=' + NumberOfParts + '&零件类型=' + PartType + '&物料计划到货时间=' + time + '&物料流水号=' + MaterialNum
}
})
}
export function purchaseRequisition1(RequisitionList, projectName, projectFloatValue, MachineToolNumber, machineFloatValue, groupName, groupFloatValue, StandardPartsAndOutsourcing, MaterialName, MaterialSpecification, MaterialModel, NumberOfParts, PartType, time, MaterialNum) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间管理_基本件采购_请购单明细_请购',
param: '请购单流水号=' + RequisitionList + '&项目名称=' + projectName + '&项目流水号=' + projectFloatValue + '&机床图号=' + MachineToolNumber + '&机床流水号=' + machineFloatValue + '&组号=' + groupName + '&组件流水号=' + groupFloatValue + '&标准件和外购件流水号=' + StandardPartsAndOutsourcing + '&物料名称=' + MaterialName + '&物料规格=' + MaterialSpecification + '&物料型号=' + MaterialModel + '&零件数量=' + NumberOfParts + '&零件类型=' + PartType + '&物料计划到货时间=' + time + '&物料流水号=' + MaterialNum
}
})
}
export function MoveOut(num, num1) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间管理_基本件采购_请购单明细_移出',
param: '请购单明细流水号=' + num + '&基本件流水号=' + num1
}
})
}
export function MoveOut1(num, num1) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间管理_基本件采购_请购单明细_移出',
param: '请购单明细流水号=' + num + '&标准件和外购件流水号=' + num1
}
})
}
export function PurchasingDepartment(num, num1, time, MaterialNum, NumberOfParts, projectFloatValue, machineFloatValue) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间管理_车间采购_标准件和外购件_传递数据',
param: `组件流水号=${num}&标准件和外购件流水号组=${num1}&物料计划到货时间=${time}=datetime&物料流水号组=${MaterialNum}&零件数量组=${NumberOfParts}&项目流水号=${projectFloatValue}&机床流水号=${machineFloatValue}`
}
})
}
export function Production(num, MaterialNum, projectFloatValue, machineFloatValue) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间管理_车间采购_基本件_传递数据',
param: `组件流水号=${num}&基本件流水号组=${MaterialNum}&项目流水号=${projectFloatValue}&机床流水号=${machineFloatValue}`
}
})
}

View File

@@ -0,0 +1,38 @@
import request from '@/utils/request'
// 查询
export function search(pageCurrent, pageSize, num) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_零件工序_查询数据_已编制工序的全部零件及工序_按零件图号查',
param: '零件图号=' + num,
Pagination: pageCurrent + '&' + pageSize
}
})
}
// 显示表1
export function searchtable1(num) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_零件工序_查询数据_根据工艺计划流水号_工艺定额查询_系数',
param: '工艺计划流水号=' + num
}
})
}
export function searchtable2(num) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_零件加工路线单_查询数据_系数',
param: '工艺计划流水号=' + num
}
})
}

View File

@@ -0,0 +1,384 @@
import request from '@/utils/request'
// 初始化 工艺员A
export function initCraftmen() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号',
param: '考核部门编号=10'
}
})
}
// 查询 未编制 零件号
export function getPartnames1(num1, num2) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_零件工艺计划_编制工艺_按人员查',
param: '工艺人员编号=' + num1 + '&零件图号=' + num2
}
})
}
// 初始化 已编制 零件号
export function getPartnames2(num1, num2) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_零件工艺计划_查询已完成工艺制定零件',
param: '工艺人员编号=' + num1 + '&零件图号=' + num2
}
})
}
// 零件详细信息
export function detailInfo(serialNum) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_零件工艺计划_查已投产零件信息',
param: '工艺计划流水号=' + serialNum + '=int'
}
})
}
// 初始化材质
export function getMaterial(pageCurrent, pageSize) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_材质表_查询数据',
Pagination: pageCurrent + '&' + pageSize
}
})
}
// 根据材质名称查材质
export function searchMaterial(pageCurrent, pageSize, name) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_材质表_查询数据_根据材料名称',
param: '材料名称=' + name,
Pagination: pageCurrent + '&' + pageSize
}
})
}
// 典型工艺选择零件分类A
export function typicalProcess() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_基础表_典型工艺名称_分类_查询数据'
}
})
}
// 典型工艺选择零件名称、工艺号、备注
export function FcK(serialNum) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_基础表_典型工艺名称_查询数据_查典型工艺名称',
param: '典型工艺名称分类流水号=' + serialNum + '=int'
}
})
}
// 典型工艺查询
export function searchProcess(check1, a, check2, b, check3, c) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_基础表_典型工艺名称_查询数据_综合查询',
param: '典型工艺名称分类流水号_check=' + check1 + '=bit&典型工艺名称分类流水号=' + a + '=int&典型工艺流水号_check=' + check2 + '=bit&典型工艺流水号=' + b + '=int&典型工艺流水号1_check=' + check3 + '=bit&典型工艺流水号1=' + c + '=int'
}
})
}
// 初始化工艺名称
export function processNameClick() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_基础表_工艺分类名称_查询数据'
}
})
}
// 工艺名称查询
export function processNameSelect(val) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_基础表_工艺名称_查询数据',
param: '工艺分类流水号_check=1=bit&工艺分类流水号=' + val + '=int'
}
})
}
// 工艺要求查询
export function processRequestSelect(val) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理_基础表_工艺要求_查询数据',
param: '工艺编号=' + val + '=int'
}
})
}
// 初始化公差A
export function initTolerance() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_基础表_公差对照表_查询数据'
}
})
}
// 公差查询
export function searchTolerance(val1, val2) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_基础表_公差对照表_公差_查询数据',
param: '输入数值=' + val1 + '&参数=' + val2
}
})
}
// 工艺定额人员查询
export function initPerson() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号',
param: '考核部门编号=10=int'
}
})
}
// 完艺工艺查询
export function searchWYgongyi(check1, tuhao, check2, bianhao, check3, start, end, check4, name) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_零件工艺计划_查询数据_根据零件图号查询已投产的工艺计划流水号',
param: '零件图号_check=' + check1 + '&零件图号=' + tuhao + '&工艺员编号_check=' + check2 + '&工艺员编号=' + bianhao + '&工艺时间_check=' + check3 + '&工艺开始时间=' + start + '=datetime&工艺结束时间=' + end + '=datetime&零件名称_check=' + check4 + '&零件名称=' + name
}
})
}
// 完艺工艺要求查询
export function gongyiYQ(num) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_零件工艺计划_查询数据',
param: '工艺计划流水号=' + num
}
})
}
// 完艺工艺拷贝
export function gongyiCopy(num1, num2) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_零件工序_工艺拷贝_工艺计划流水号',
param: '工艺计划流水号_完成工艺=' + num1 + '=int&工艺计划流水号_被拷工艺=' + num2 + '=int'
}
})
}
// 主界面选择零件号查主表
export function mainTable(num) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_零件工序_查询工序信息',
param: '工艺计划流水号=' + num + '=int'
}
})
}
// 主界面主表难度等级修改
export function hardEdit(num, hard) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间生产管理工艺_零件工序_修改数据_工艺难度等级',
param: '工序流水号=' + num + '=int&工艺难度等级=' + hard
}
})
}
// 主界面主表工艺要求修改
export function requestEdit(num, request0) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间生产管理工艺_零件工序_修改数据_工艺要求_根据工序流水号',
param: '工序流水号=' + num + '=int&工艺要求=' + request0
}
})
}
// 主界面主表插入功能
export function insertOne(num0, num1) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间生产管理工艺_零件工序_修改数据_工艺计划流水号和工序流水号',
param: '工艺计划流水号=' + num0 + '=int&工序流水号=' + num1 + '=int'
}
})
}
// 主界面主表删除功能
export function deleteOne(num0, num1) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间生产管理工艺_零件工序_删除数据_工序流水号',
param: '工艺计划流水号=' + num0 + '=int&工序流水号=' + num1 + '=int'
}
})
}
// 主界面主表上移功能
export function upOne(num0, num1) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间生产管理工艺_零件工序_修改数据_上移工序',
param: '工艺计划流水号=' + num0 + '=int&工序流水号=' + num1 + '=int'
}
})
}
// 主界面主表下移功能
export function downOne(num0, num1) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间生产管理工艺_零件工序_修改数据_下移工序',
param: '工艺计划流水号=' + num0 + '=int&工序流水号=' + num1 + '=int'
}
})
}
// 保存变更材质
export function saveMaterial(num0, num1) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间生产管理工艺_零件工艺计划_修改零件材料',
param: '工艺计划流水号=' + num0 + '&材料流水号=' + num1
}
})
}
// 核准保存
export function saveApprove(num0, num1, request0, spec, num2, outhelp, num3, num4, weight, area, num5, level) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间生产管理工艺_零件工序_增加数据_同时修改工艺计划',
param: '工艺计划流水号=' + num0 + '&工艺编号=' + num1 + '&工艺要求=' + request0 + '&原材料规格=' + spec + '&工序顺序=' + num2 + '&工序间是否外协=' + outhelp + '&工序流水号=' + num3 + '&材料流水号=' + num4 + '&重量=' + weight + '&面积=' + area + '&工艺人员编号=' + num5 + '&工艺难度等级=' + level
}
})
}
// 选择工艺要求
export function selectRequest(num0, num1, num2, num3, request0) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间生产管理工艺_零件工序_修改数据_根据工序流水号和工艺计划流水号',
param: '工序流水号=' + num0 + '&工艺计划流水号=' + num1 + '&工艺编号=' + num2 + '&工艺顺序=' + num3 + '&工艺要求=' + request0
}
})
}
// 粘贴
export function pasteTable(oldNum, newNum) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间生产管理工艺_零件工艺计划_拷贝零件工艺',
param: '工艺计划流水号旧=' + oldNum + '&工艺计划流水号新=' + newNum
}
})
}
// 删除
export function deleteTable(num) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间生产管理工艺_零件工序_删除零件工艺',
param: '工艺计划流水号=' + num
}
})
}
// 在制零件工艺修改
export function returnEdit(num) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间生产管理工艺_在制零件工艺调整_修改工艺',
param: '工艺计划流水号=' + num
}
})
}
// 查询工艺记录
export function searchRecord(num) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_在制零件工艺调整_查询工艺',
param: '工艺计划流水号=' + num
}
})
}

View File

@@ -0,0 +1,135 @@
import request from '@/utils/request'
// 初始化项目(全部)
export function getProject() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_传递后_项目名称_查询数据_工艺定额任务分配',
param: '考核状态=3&工艺任务分配状态=1&定额任务分配状态=1'
}
})
}
// 初始化项目(当天)
export function getProject0() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_零件工艺计划_工艺任务分配_项目查询'
}
})
}
// 获取机床图号(全部)
export function getGraphNum(num) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_传递后_机床名称_查询数据',
param: '项目流水号=' + num + '&是否传递=2&考核状态=3&工艺任务分配状态=1&定额任务分配状态=1&单件是否外协=0'
}
})
}
// 获取机床图号(当天)//////////////
export function getGraphNum0(num) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_零件工艺计划_工艺任务分配_机床查询',
param: '项目流水号=' + num
}
})
}
// 获取组号(全部)
export function getGroupNum(num) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_传递后_组件名称_查询数据',
param: '机床流水号=' + num + '&是否传递=2&考核状态=3&工艺任务分配状态=1&定额任务分配状态=1&单件是否外协=0'
}
})
}
// 获取组号(当天)/////////
export function getGroupNum0(num) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_零件工艺计划_工艺任务分配_组件查询',
param: '机床流水号=' + num
}
})
}
// 获取工艺计划,填充主表
export function getTable0(PageCurrent, PageSize, num) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_零件工艺计划_已制定计划_按组查',
param: '组件流水号=' + num,
Pagination: PageCurrent + '&' + PageSize
}
})
}
// 查询主表(当天)////////
export function getTable00(PageCurrent, PageSize, num) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_零件工艺计划_工艺任务分配_零件查询',
param: '组件流水号=' + num,
Pagination: PageCurrent + '&' + PageSize
}
})
}
// 保存
export function save(num1, num2, num3) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间生产管理工艺_工艺任务分配_保存数据',
param: '工艺计划流水号=' + num1 + '&人员编号=' + num2 + '&零件图号=' + num3
}
})
}
// // 模糊查询
// export function fuzzyQuery(num) {
// return request({
// url: '',
// method: 'post',
// data: {
// type: '1',
// name: '车间生产管理工艺_传递后_机床名称_查询数据_模糊查询',
// param: '机床图号=' + num + '&是否传递=2&考核状态=3&工艺任务分配状态=1&定额任务分配状态=1'
// }
// })
// }
// 工艺定额人员查询
export function initPerson() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号',
param: '考核部门编号=10=int'
}
})
}

View File

@@ -0,0 +1,63 @@
import request from '@/utils/request'
export function getNames() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_传递后_项目名称_查询数据',
param: '考核状态=6=int'
}
})
}
export function getMachines(gongyi) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_传递后_机床名称_查询数据_查询所有机床',
param: '项目流水号=' + gongyi + '=int'
}
})
}
export function getGroups(stepNumber) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_传递后_组件名称_查询数据_查询所有组',
param: '机床流水号=' + stepNumber + '=int'
}
})
}
export function getTable(stepNumber, a, b, c, d, e, f, g, i, pageCurrent, pageSize) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_零件工序_查询数据_已编制工序的全部零件及工序_横向赋值新建存储过程',
// param: '项目流水号_check=0=string&项目流水号=428=string&机床流水号_check=0=string&机床流水号=8903=string&组件流水号_check=1=string&组件流水号=39539=string&零件图号_check=0=string&零件图号=0=string&是否查询全部数据=1=string&单件是否外协=1=string&考核状态=6=string',
param: '项目流水号_check=' + stepNumber + '=string&项目流水号=' + a + '=string&机床流水号_check=' + b + '=string&机床流水号=' + c + '=string&组件流水号_check=' + d + '=string&组件流水号=' + e + '=string&零件图号_check=' + f + '=string&零件图号=' + g + '=string&是否查询全部数据=1=string&单件是否外协=' + i + '=string&考核状态=6=int',
Pagination: pageCurrent + '&' + pageSize
}
})
}
export function getTable2(stepNumber, a, b, c, d, e, g, i) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_零件工序_查询数据_已编制工序的全部零件及工序',
param: '项目流水号_check=' + stepNumber + '=string&项目流水号=' + a + '=string&机床流水号_check=' + b + '=string&机床流水号=' + c + '=string&组件流水号_check=' + d + '=string&组件流水号=' + e + '=string&零件图号_check=1=string&零件图号=' + g + '=string&是否查询全部数据=1=string&单件是否外协=' + i + '=string&考核状态=6=int'
}
})
}

View File

@@ -0,0 +1,100 @@
import request from '@/utils/request'
// 初始化 未编制 零件号111
export function getPartnames1() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_零件工艺计划_编制定额_查询数据'
}
})
}
// 初始化 已编制 零件号
export function getPartnames2(person) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_零件工艺计划_查询已完成定额制定零件',
param: '定额人员编号=' + person + '=int'
}
})
}
// 人员111
export function getPerson() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号',
param: '考核部门编号=11=int'
}
})
}
// 零件详细信息111
export function detailInfo(serialNum) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_零件工艺计划_查已投产零件信息',
param: '工艺计划流水号=' + serialNum + '=int'
}
})
}
// 主界面选择零件号查主表
export function mainTable(num) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_零件工序_查询数据_根据工艺计划流水号_零件定额制定',
param: '工艺计划流水号=' + num + '=int'
}
})
}
export function mainTable1(num) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_零件工序_查询数据_根据工艺计划流水号',
param: '工艺计划流水号=' + num + '=int'
}
})
}
// 已编制保存
export function TableAddLi(a, b, c, num0, num1) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间生产管理工艺_零件工序_增加数据_修改数据',
param: '单件定额工时=' + a + '=string&准结定额工时=' + b + '=string&零件图号=' + c + '=string&工序流水号=' + num0 + '=int&工艺计划流水号=' + num1 + '=int'
}
})
}
// 未编制保存
export function TableAddLi1(a, b) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间生产管理工艺_定额任务分配_保存数据',
param: '工艺计划流水号=' + a + '=string&人员编号=' + b + '=string'
}
})
}

View File

@@ -0,0 +1,113 @@
import request from '@/utils/request'
// 初始化工艺
export function searchTechnology(num) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_基础表_工艺名称_查询数据',
param: '工艺分类流水号_check=0&工艺分类流水号=' + num
}
})
}
// 查询人员编号
export function searchperson(num) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_员工回用报废工时统计表_查询数据',
param: '序号=' + num
}
})
}
// 查询
export function searchtable(check, num, pageCurrent, pageSize) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理_基础表_员工月修补工时_查询数据',
param: '人员编号_check=' + check + '&人员编号=' + num,
Pagination: pageCurrent + '&' + pageSize
}
})
}
// 增加
export function edittype(ManufacturerNumber, ManufacturerName, ManufacturerAbbreviation, address, roleName) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间生产管理_基础表_员工月修补工时_增加数据',
param: '人员编号=' + ManufacturerNumber + '&工艺编号=' + ManufacturerName + '&年=' + ManufacturerAbbreviation + '&月=' + address + '&修补工时=' + roleName
}
})
}
// 编辑
export function handlechange(CoManufacturerFlowNumber, ManufacturerNumber, ManufacturerName, ManufacturerAbbreviation, address, roleName) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间生产管理_基础表_员工月修补工时_修改数据',
param: '员工月修补工时流水号=' + CoManufacturerFlowNumber + '&人员编号=' + ManufacturerNumber + '&工艺编号=' + ManufacturerName + '&年=' + ManufacturerAbbreviation + '&月=' + address + '&修补工时=' + roleName
}
})
}
export function dialogtablevisible() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '人事档案管理_部门关系_查询节点',
param: '子节点=0'
}
})
}
// 初始化人员信息 弹出框
export function getTree() {
return request({
url: '',
method: 'post',
data: {
type: 1,
name: '人事档案管理_部门关系_查询节点',
param: '子节点=0=int'
}
})
}
export function fn(data, pid) {
const result = []
let temp
for (let i = 0; i < data.length; i++) {
if (data[i].父节点 === pid) {
const obj = { label: data[i].节点名称, id: data[i].子节点 }
temp = fn(data, data[i].子节点)
if (temp.length > 0) {
obj.children = temp
}
result.push(obj)
}
}
return result
}
export function getTable8(code) {
return request({
url: '',
method: 'post',
data: {
type: 1,
name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号',
param: '考核部门编号=' + code + '=int'
}
})
}

View File

@@ -0,0 +1,113 @@
import request from '@/utils/request'
export function ProjectNameSelect(stateID) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_传递后_项目名称_查询数据',
param: '考核状态=' + stateID + '=int'
}
})
}
export function MachineDrawingSelect(ProjectCode) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_传递后_机床名称_查询数据_查询所有机床',
param: '项目流水号=' + ProjectCode + '=int'
}
})
}
export function TeamSelect(MachineCode) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_传递后_组件名称_查询数据_查询所有组',
param: '机床流水号=' + MachineCode + '=int'
}
})
}
export function TableDataSelect(ProjectCode_check, ProjectCode, MachineCode_check, MachineCode, TeamCode_check, TeamCode, ComponentPartsBasicCattleTaxNumber_check, ComponentPartsBasicCattleTaxNumber, CutCode_check, CutCode, CutCodeBefore_check, CutCodeBefore, Assess_check, Assess, PartDrawing_check, PartDrawing, currentPage1, pageSize1) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_传递后_零件报废补投_查询数据',
param: '项目流水号_check=' + ProjectCode_check + '=int&项目流水号=' + ProjectCode + '=string&机床流水号_check=' + MachineCode_check + '=int&机床流水号=' + MachineCode + '=string&组件流水号_check=' + TeamCode_check + '=int&组件流水号=' + TeamCode + '=string&组件零件基本件流水号_check=' + ComponentPartsBasicCattleTaxNumber_check + '=int&组件零件基本件流水号=' + ComponentPartsBasicCattleTaxNumber + '=string&工艺计划流水号_check=' + CutCode_check + '=int&工艺计划流水号=' + CutCode + '=string&工艺计划流水号_补投前_check=' + CutCodeBefore_check + '=int&工艺计划流水号_补投前=' + CutCodeBefore + '=string&考核状态_check=' + Assess_check + '=int&考核状态=' + Assess + '=string&零件图号_check=' + PartDrawing_check + '=int&零件图号=' + PartDrawing + '=string',
Pagination: currentPage1 + '&' + pageSize1
}
})
}
export function editTime(CutCode, StartTime, FinishTime) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间生产管理工艺_零件工艺计划_修改时间_修改机加日期',
param: '工艺计划流水号=' + CutCode + '=string&机加工开始时间=' + StartTime + '=string&机加工结束时间=' + FinishTime + '=string'
}
})
}
export function editStop(CutCode, temp) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间生产管理工艺_零件工艺计划_修改停产',
param: '工艺计划流水号=' + CutCode + '=string&批次零件状态=' + temp + '=string'
}
})
}
export function TableDta2Select(CutCode, currentPage2, pageSize2) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_零件工序_查询数据_根据工艺计划流水号',
param: '工艺计划流水号=' + CutCode + '=string',
Pagination: currentPage2 + '&' + pageSize2
}
})
}
export function editA(CutCodebefore, Number, startCut) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间生产管理工艺_零件工艺计划_增加数据_补投',
param: '工艺计划流水号_补投前=' + CutCodebefore + '=string&批次数量=' + Number + '=string&开始工序=' + startCut + '=string'
}
})
}
export function TableData3Select(ProjectCode_check, ProjectCode, MachineCode_check, MachineCode, TeamCode_check, TeamCode, ComponentPartsBasicCattleTaxNumber_check, ComponentPartsBasicCattleTaxNumber, CutCode_check, CutCode, CutCodeBefore_check, CutCodeBefore, Assess_check, Assess) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_传递后_零件入库单_查询数据',
param: '项目流水号_check=' + ProjectCode_check + '=int&项目流水号=' + ProjectCode + '=string&机床流水号_check=' + MachineCode_check + '=int&机床流水号=' + MachineCode + '=string&组件流水号_check=' + TeamCode_check + '=int&组件流水号=' + TeamCode + '=string&组件零件基本件流水号_check=' + ComponentPartsBasicCattleTaxNumber_check + '=int&组件零件基本件流水号=' + ComponentPartsBasicCattleTaxNumber + '=string&工艺计划流水号_check=' + CutCode_check + '=int&工艺计划流水号=' + CutCode + '=string&工艺计划流水号_补投前_check=' + CutCodeBefore_check + '=int&工艺计划流水号_补投前=' + CutCodeBefore + '=string&考核状态_check=' + Assess_check + '=int&考核状态=' + Assess + '=string'
}
})
}
export function editchar(reason, time, num) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间生产管理工艺_零件工艺计划_增加数据_停产原因与时间_MESWORK',
param: '停产原因=' + reason + '=string&停产时间=' + time + '=string&工艺计划流水号=' + num + '=int'
}
})
}

View File

@@ -0,0 +1,67 @@
import request from '@/utils/request'
export function initProject() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: 'PDM_项目名称_查询数据_按时间排序'
}
})
}
export function intPartState() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_基础表_零件考核状态_查询数据'
}
})
}
export function searchmachine(num, check, pageCurrent, pageSize) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: 'PDM_机床名称_查询数据_分页',
param: '项目流水号_check=' + check + '=int&项目流水号=' + num + '&机床类型代码_check=0=int&机床类型代码=1=int&机床流水号_check=0=int&PageCurrent=' + pageCurrent + '=int&PageSize=' + pageSize + '=int&PageCount=1=int=output&ItemCount=1=int=output'
}
})
}
export function searchgroup(num, pageCurrent, pageSize) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: 'PDM_组件名称_查询数据_分页',
param: '机床流水号=' + num + '=int&PageCurrent=' + pageCurrent + '=int&PageSize=' + pageSize + '=int&PageCount=1=int=output&ItemCount=1=int=output'
}
})
}
export function searchTable(check, entryNameValue, check1, machine, check2, groupNum, check3, partNumber, check4, partStateValue, check5, partTypeValue, pageSize, pageCurrent) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_零件工艺计划_查询数据_状态_新',
param: '项目流水号_check=' + check + '=int&项目流水号=' + entryNameValue + '&机床流水号_check=' + check1 + '=int&机床流水号=' + machine + '=int&组件流水号_check=' + check2 + '=int&组件流水号=' + groupNum + '=int&零件图号_check=' + check3 + '=int&零件图号=' + partNumber + '=string&考核状态_check=' + check4 + '=int&考核状态=' + partStateValue + '=int&单件是否外协_check=' + check5 + '=int&单件是否外协=' + partTypeValue + '=int',
pagination: pageCurrent + '&' + pageSize
}
})
}
export function editData(num, state) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间生产管理工艺_零件工艺计划_考核状态',
param: '工艺计划流水号=' + num + '=int&考核状态=' + state + '=int'
}
})
}

View File

@@ -0,0 +1,167 @@
import request from '@/utils/request'
export function getPartsCategories() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_基础表_典型工艺名称_分类_查询数据 '
}
})
}
export function getPartsName(num) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_基础表_典型工艺名称_查询数据_查典型工艺名称',
param: `典型工艺名称分类流水号=${num}`
}
})
}
export function getTableData(partsCategoriesCheck, partsCategories, partsNameCheck, partsName) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_基础表_典型工艺名称_查询数据_综合查询',
param: `典型工艺名称分类流水号_check=${partsCategoriesCheck}&典型工艺名称分类流水号=${partsCategories}&典型工艺流水号_check=${partsNameCheck}&典型工艺流水号=${partsName}&典型工艺流水号1_check=0`
}
})
}
export function upMove(typicalProcessNum, typicalSerialNum) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间生产管理工艺_基础表_典型工艺工序_上移工序',
param: `典型工艺流水号=${typicalProcessNum}&典型工艺工序流水号=${typicalSerialNum}`
}
})
}
export function downMove(typicalProcessNum, typicalSerialNum) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间生产管理工艺_基础表_典型工艺工序_下移工序',
param: `典型工艺流水号=${typicalProcessNum}&典型工艺工序流水号=${typicalSerialNum}`
}
})
}
export function insertRow(typicalProcessNum, typicalSerialNum) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间生产管理工艺_基础表_典型工艺工序_添加工序',
param: `典型工艺流水号=${typicalProcessNum}&典型工艺工序流水号=${typicalSerialNum}`
}
})
}
export function deleRow(typicalProcessNum, typicalSerialNum) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间生产管理工艺_基础表_典型工艺名称_删除数据',
param: `典型工艺流水号=${typicalProcessNum}&典型工艺工序流水号=${typicalSerialNum}`
}
})
}
export function editConfirm(typicalProcessNum, typicalSerialNum, processNum, processNo, processClaim, pieceQuota, quasiQuota, remarks) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间生产管理工艺_基础表_典型工艺工序_修改数据',
param: `典型工艺流水号=${typicalProcessNum}&典型工艺工序流水号=${typicalSerialNum}&工艺序号=${processNum}&工艺编号=${processNo}&工艺要求=${processClaim}&单件定额工时=${pieceQuota}&准结定额工时=${quasiQuota}&备注=${remarks}`
}
})
}
export function processNameClick() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_基础表_工艺分类名称_查询数据'
}
})
}
export function processNameSelect(val) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_基础表_工艺名称_查询数据',
param: `工艺分类流水号_check=1=bit&工艺分类流水号=${val}=int`
}
})
}
export function processRequestSelect(val) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理_基础表_工艺要求_查询数据',
param: `工艺编号=${val}=int`
}
})
}
export function difficultyLevel(level, typicalSerialNum) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间生产管理工艺_零件工序_修改数据_典型工艺难度等级',
param: `工艺难度等级=${level}&典型工艺工序流水号=${typicalSerialNum}`
}
})
}
export function isAddOrEdit(typicalSerialNum) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_基础表_典型工艺工序_查询数据_根据典型工艺流水号',
param: `典型工艺流水号=${typicalSerialNum}`
}
})
}
export function addProcess(typicalSerialNum, processNum, processNo) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_基础表_典型工艺工序_增加数据_NEW',
param: `典型工艺流水号=${typicalSerialNum}&工艺序号=${processNum}&工艺编号=${processNo}`
}
})
}

View File

@@ -0,0 +1,58 @@
import request from '@/utils/request'
export function getData(check, equipmentName, pageCurrent, pageSize) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '设备管理_设备加工能力_查询数据_设备维护',
param: '设备名称_check=' + check + '=int&设备名称=' + equipmentName,
pagination: pageCurrent + '&' + pageSize
}
})
}
export function initProcessing(a = '') {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_基础表_工艺名称_查询数据',
param: '工艺分类流水号_check=0=int&工艺分类流水号=' + a
}
})
}
export function addTable(equipmentName, equipmentModel, performance, processingCapacity, workingTimeFactor, processName, processNumber, shift, reorganizationTimeFactor, equipmentNumber, reservedTimeFactor) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '设备管理_设备加工能力_增加数据_设备维护New',
param: '设备名称=' + equipmentName + '=string&设备型号=' + equipmentModel + '=string&设备性能指标=' + performance + '= string&设备加工能力工时=' + processingCapacity + '=string&设备工时系数=' + workingTimeFactor + '=string&工艺名称简称=' + processName + '=string&工艺编号=' + processNumber + '=string&班次类型=' + shift + '= string&整改工时系数=' + reorganizationTimeFactor + '=string&设备编号=' + equipmentNumber + '=string&预留工时系数=' + reservedTimeFactor
}
})
}
export function editTable(equipmentSerialNumber, equipmentName, equipmentModel, performance, processingCapacity, workingTimeFactor, shift, processCode, reorganizationTimeFactor, equipmentNumber, reservedTimeFactor) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '设备管理_设备加工能力_修改数据_设备维护New',
param: '设备流水号=' + equipmentSerialNumber + '=int&设备名称=' + equipmentName + '=string&设备型号=' + equipmentModel + '=string&设备性能指标=' + performance + '= string&设备加工能力工时=' + processingCapacity + '=string&设备工时系数=' + workingTimeFactor + '=string&班次类型=' + shift + '=int&工艺属性代码=' + processCode + '=string&整改工时系数=' + reorganizationTimeFactor + '=string&设备编号=' + equipmentNumber + '=string&预留工时系数=' + reservedTimeFactor
}
})
}
export function deleteTable(number) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '设备管理_设备加工能力_删除数据_设备维护',
param: '设备流水号=' + number + '=int'
}
})
}

View File

@@ -0,0 +1,118 @@
import request from '@/utils/request'
export function initType() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '投标保证金管理_保证金类型查询'
}
})
}
export function selectBidBond() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '投标保证金管理_投标保证金查询',
param: '是否收回_check=' + arguments[0] + '&是否收回=' + arguments[1] + '&保金类型_check=' + arguments[2] + '&保金类型=' + arguments[3] + '&投标人_check=' + arguments[4] + '&投标人=' + arguments[5] + '&招标企业_check=' + arguments[6] + '&招标企业=' + arguments[7] + '&开始日期_check=' + arguments[8] + '&开始日期=' + arguments[9] + '&结束日期_check=' + arguments[10] + '&结束日期=' + arguments[11],
Pagination: arguments[12] + '&' + arguments[13]
}
})
}
export function getTree() {
return request({
url: '',
method: 'post',
data: {
type: 1,
name: '人事档案管理_部门关系_查询节点',
param: '子节点=0=int'
}
})
}
export function tree(data, pid) {
const result = []
let temp
for (let i = 0; i < data.length; i++) {
if (data[i].父节点 === pid) {
const obj = { label: data[i].节点名称, id: data[i].子节点 }
temp = tree(data, data[i].子节点)
if (temp.length > 0) {
obj.children = temp
}
result.push(obj)
}
}
return result
}
export function getTablePeople(code) {
return request({
url: '',
method: 'post',
data: {
type: 1,
name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号',
param: '考核部门编号=' + code + '=int'
}
})
}
export function TakeBack() {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '投标保证金管理_投标保证金_收回',
param: '招标保证金流水号=' + arguments[0] + '&实际收回日期=' + arguments[1]
}
})
}
export function ComplianceGold() {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '招标保证金管理_招标保证金_转履约金',
param: '招标保证金流水号=' + arguments[0]
}
})
}
export function addBidBond() {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '投标保证金管理_投标保证金信息_增加',
param: '招标企业=' + arguments[0] + '&联系人=' + arguments[1] + '&联系电话=' + arguments[2] + '&保证金金额=' + arguments[3] + '&人员流水号=' + arguments[4] + '&保证金类型流水号=' + arguments[5] + '&投标日期=' + arguments[6] + '&预计收回日期=' + arguments[7] + '&备注=' + arguments[8] + '&提前X天提醒=' + arguments[9]
}
})
}
export function editBidBond() {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '投标保证金管理_投标保证金信息_修改',
param: '招标企业=' + arguments[0] + '&联系人=' + arguments[1] + '&联系电话=' + arguments[2] + '&保证金金额=' + arguments[3] + '&人员流水号=' + arguments[4] + '&保证金类型流水号=' + arguments[5] + '&投标日期=' + arguments[6] + '&预计收回日期=' + arguments[7] + '&备注=' + arguments[8] + '&提前X天提醒=' + arguments[9] + '&招标保证金流水号=' + arguments[10]
}
})
}
export function delBidBond() {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '投标保证金管理_投标保证金信息_删除',
param: '招标保证金流水号=' + arguments[0]
}
})
}

View File

@@ -0,0 +1,185 @@
import request from '@/utils/request'
// 查询价值评估等级下拉框
export function searchValue() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: 'dbo.客户关系管理系统_价值评估_查询数据_MESWORK'
}
})
}
// 地区查询
export function selectAdress() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '发货管理_省份查询'
}
})
}
export function selectCustomer(AdressID, pageCurrent, pageSize) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '客户关系管理系统_按地区查询_客户名称',
param: '省份流水号=' + AdressID,
Pagination: pageCurrent + '&' + pageSize
}
})
}
// 通过名称查
export function selectCustomerOfName(name, pageCurrent, pageSize) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '客户关系管理系统_按客户名称查询_客户名称',
param: '客户流水号=' + name,
Pagination: pageCurrent + '&' + pageSize
}
})
}
export function selectMarketingManager(AdressID) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '客户关系管理系统_按地区查询_营销经理',
param: '省份流水号=' + AdressID
}
})
}
export function initCustomer() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '客户关系管理系统_初始化查询_客户名称'
}
})
}
export function getTree() {
return request({
url: '',
method: 'post',
data: {
type: 1,
name: '人事档案管理_部门关系_查询节点',
param: '子节点=0=int'
}
})
}
export function tree(data, pid) {
const result = []
let temp
for (let i = 0; i < data.length; i++) {
if (data[i].父节点 === pid) {
const obj = { label: data[i].节点名称, id: data[i].子节点 }
temp = tree(data, data[i].子节点)
if (temp.length > 0) {
obj.children = temp
}
result.push(obj)
}
}
return result
}
export function getTablePeople(code) {
return request({
url: '',
method: 'post',
data: {
type: 1,
name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号',
param: '考核部门编号=' + code + '=int'
}
})
}
export function deleteCustomer(customerId) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: 'dbo.客户关系管理系统_客户_删除数据_MESWORK',
param: '客户流水号=' + customerId
}
})
}
export function deleteMarketingManager(MarketingManagerId) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '客户关系管理系统_营销经理_删除数据_MESWORK',
param: '营销经理地区流水号=' + MarketingManagerId
}
})
}
export function addMarketingManager(MarketingManagerId, AdressID) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '客户关系管理系统_营销经理_增加数据_MESWORK',
param: '营销经理流水号=' + MarketingManagerId + '&省份流水号=' + AdressID
}
})
}
export function editMarketingManager(MarketingManagerId, AdressID) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '客户关系管理系统_营销经理_修改数据_MESWORK',
param: '营销经理流水号=' + MarketingManagerId + '&营销经理地区流水号=' + AdressID
}
})
}
export function addCustomer(AdressID, CustomerName, CallNumber, Fax, Adress, People, Email, BankAccount, DutyParagraph, Assessment, Remark) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '客户关系管理系统_客户_增加数据_MESWORK',
param: '省份流水号=' + AdressID + '&客户名称=' + CustomerName + '&电话=' + CallNumber + '&传真=' + Fax + '&地址=' + Adress + '&联系人=' + People + '&电子邮箱=' + Email + '&银行账号=' + BankAccount + '&税号=' + DutyParagraph + '&价值评估流水号=' + Assessment + '&备注=' + Remark
}
})
}
export function selectAdressOfID(AdressID) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '客户关系管理系统_通过省份流水号查省份名称_查询数据_MESWORK',
param: '省份流水号=' + AdressID
}
})
}
export function editCustomer(AdressID, CustomerName, CallNumber, Fax, Adress, People, Email, BankAccount, DutyParagraph, Assessment, Remark, ID) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '客户关系管理系统_客户_修改数据_MESWORK',
param: '省份流水号=' + AdressID + '&客户名称=' + CustomerName + '&电话=' + CallNumber + '&传真=' + Fax + '&地址=' + Adress + '&联系人=' + People + '&电子邮箱=' + Email + '&银行账号=' + BankAccount + '&税号=' + DutyParagraph + '&价值评估流水号=' + Assessment + '&备注=' + Remark + '&客户流水号=' + ID
}
})
}

View File

@@ -0,0 +1,344 @@
import request from '@/utils/request'
export function initProject() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '合同信息管理_项目名称_总_查询'
}
})
}
export function initMarketingManager() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '合同信息管理_营销人员_总_查询'
}
})
}
export function searchTable1(pageCurrent, pageSize, num1, num2) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '合同资金管理_资金信息_查询',
param: '合同ID=' + num1 + '=int&人员ID=' + num2 + '=int',
Pagination: pageCurrent + '&' + pageSize
}
})
}
export function searchTable2(pageCurrent, pageSize, num1) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '合同资金管理_分批资金_查询',
param: '资金ID=' + num1 + '=int',
Pagination: pageCurrent + '&' + pageSize
}
})
}
export function editBatchCapitalChar(num1, num2, num3, num4) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '合同资金管理_批次付款表_增加数据',
param: '资金ID=' + num1 + '=int&付款阶段ID=' + num2 + '=int&本次付款=' + num3 + '=float&付款时间=' + num4 + '=string'
}
})
}
export function deletechar(num1) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '合同资金管理_批次付款表_删除',
param: '批次资金ID=' + num1 + '=int'
}
})
}
export function addList(num1, num2) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '基础表_合同资金表_增加数据',
param: '合同ID=' + num1 + '=int&合同总金额=' + num2 + '=float'
}
})
}
export function searchProjectNumber() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '合同信息管理_项目名称_总_查询'
}
})
}
export function searchProjectName(num1) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '合同信息管理_项目名称_通过合同ID查_查询',
param: '合同ID=' + num1 + '=int'
}
})
}
export function PaymentPhase() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '合同资金管理_付款阶段_查询'
}
})
}
export function dellist(num1) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '合同资金管理_资金信息_删除',
param: '资金ID=' + num1 + '=int'
}
})
}
export function getTree() {
return request({
url: '',
method: 'post',
data: {
type: 1,
name: '人事档案管理_部门关系_查询节点',
param: '子节点=0=int'
}
})
}
export function tree(data, pid) {
const result = []
let temp
for (let i = 0; i < data.length; i++) {
if (data[i].父节点 === pid) {
const obj = { label: data[i].节点名称, id: data[i].子节点 }
temp = tree(data, data[i].子节点)
if (temp.length > 0) {
obj.children = temp
}
result.push(obj)
}
}
return result
}
export function getTablePeople(code) {
return request({
url: '',
method: 'post',
data: {
type: 1,
name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号',
param: '考核部门编号=' + code + '=int'
}
})
}
export function editChart(code, num1, num2, num3) {
return request({
url: '',
method: 'post',
data: {
type: 2,
name: '合同资金管理_批次付款表_修改',
param: '批次资金ID=' + code + '=int&本次付款金额新=' + num1 + '=string&付款时间=' + num2 + '=string&付款阶段ID=' + num3 + '=int'
}
})
}
export function editTableData(code, num1) {
return request({
url: '',
method: 'post',
data: {
type: 2,
name: '合同资金管理_合同资金表_修改',
param: '资金ID=' + code + '=int&合同总金额=' + num1 + '=string'
}
})
}
export function selectMachine(code) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: 'PDM_机床名称_查询数据_通过项目流水号',
param: '项目流水号=' + code
}
})
}
export function selectBatchFundingDetails(code) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '合同资金管理_分批付款明细_查询',
param: '批次资金ID=' + code
}
})
}
export function SelectMarketingManager(code) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '客户关系管理系统_按地区查询_营销经理',
param: '省份流水号=' + code
}
})
}
export function selectProvince() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '发货管理_省份查询'
}
})
}
export function fukuan(code, num1, num2) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '合同资金管理_批次付款明细表_增加数据',
param: '批次资金ID=' + code + '=int&本次收款金额=' + num1 + '=string&本次收款时间=' + num2 + '=string'
}
})
}
export function editFukuan(code, num1, num2) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '合同资金管理_批次付款明细表_修改数据',
param: '批次付款明细ID=' + code + '=int&本次收款金额=' + num1 + '=string&本次收款时间=' + num2 + '=string'
}
})
}
export function selectMax(code) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '合同资金管理_批次资金明细修改最大值_查询',
param: '批次付款明细ID=' + code + '=int'
}
})
}
export function editTime(code, num2) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '合同资金管理_批次付款表_修改计划时间',
param: '批次资金ID=' + code + '=int&计划付款时间=' + num2 + '=string'
}
})
}
export function delMoney(code) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '合同资金管理_批次付款明细表_删除数据新',
param: '批次付款明细ID=' + code + '=int'
}
})
}
export function editList(num1, num2, num3) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '基础表_合同资金表_修改数据',
param: '合同ID=' + num1 + '=int&合同总金额=' + num2 + '=float&资金ID=' + num3 + '=int'
}
})
}
export function selectBatch(num1) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '合同资金管理_分批资金_批次查询',
param: '资金ID=' + num1 + '=int'
}
})
}
export function TransPlanning(num1, num2, num3) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '合同资金管理_批次付款表_转移计划',
param: '批次资金ID原=' + num1 + '=int&批次资金ID转=' + num2 + '=int&转移金额=' + num3 + '=string'
}
})
}
export function editDay(num1, num2) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '合同资金管理_分批资金表_修改提醒天数',
param: '批次资金ID=' + num1 + '=int&提前X天提醒=' + num2 + '=int'
}
})
}
export function AccountsReceivable() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '合同资金管理_催收账款_查询'
}
})
}
export function SelectContractFunds(num1, pageCurrent, pageSize) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '合同资金管理_资金信息_查询_通过资金ID',
param: '资金ID=' + num1 + '=int',
Pagination: pageCurrent + '&' + pageSize
}
})
}

View File

@@ -0,0 +1,245 @@
import request from '@/utils/request'
export function initProject() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '合同信息管理_项目名称_总_查询'
}
})
}
export function initMarketingManager() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '合同信息管理_营销人员_总_查询'
}
})
}
export function searchTable1(pageCurrent, pageSize, num1, num2) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '合同信息管理_合同信息_查询',
param: '合同ID=' + num1 + '=int&人员ID=' + num2 + '=int',
Pagination: pageCurrent + '&' + pageSize
}
})
}
export function fetchExecutionProgress(num) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '合同信息管理_执行进度_通过合同ID查_查询',
param: '合同ID=' + num + '=int'
}
})
}
export function delList(num) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '合同信息管理_合同信息_删除',
param: '合同ID=' + num + '=int'
}
})
}
export function addList() {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '基础表_合同信息表_增加数据',
param: '项目名称=' + arguments[0] + '&图纸会签节点=' + arguments[1] + '&设备预验收节点=' + arguments[2] + '&发货节点=' + arguments[3] + '&安装调试节点=' + arguments[4] + '&人员ID=' + arguments[5] + '&执行进度ID=' + arguments[6] + '&客户流水号=' + arguments[7] + '&备注=' + arguments[8] + '&付款方式代码=' + arguments[9]
}
})
}
export function fetchPersonnelID() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '合同信息管理_营销人员_查询'
}
})
}
export function executionProgressID() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '合同信息管理_执行进度_查询'
}
})
}
export function editchar() {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '合同信息管理_合同信息_编辑',
param: '项目名称=' + arguments[0] + '&图纸会签节点=' + arguments[1] + '&设备预验收节点=' + arguments[2] + '&发货节点=' + arguments[3] + '&安装调试节点=' + arguments[4] + '&人员ID=' + arguments[5] + '&执行进度ID=' + arguments[6] + '&客户流水号=' + arguments[7] + '&合同信息备注=' + arguments[8] + '&项目流水号=' + arguments[9] + '&付款方式代码=' + arguments[10]
}
})
}
export function getTree() {
return request({
url: '',
method: 'post',
data: {
type: 1,
name: '人事档案管理_部门关系_查询节点',
param: '子节点=0=int'
}
})
}
export function tree(data, pid) {
const result = []
let temp
for (let i = 0; i < data.length; i++) {
if (data[i].父节点 === pid) {
const obj = { label: data[i].节点名称, id: data[i].子节点 }
temp = tree(data, data[i].子节点)
if (temp.length > 0) {
obj.children = temp
}
result.push(obj)
}
}
return result
}
export function getTablePeople(code) {
return request({
url: '',
method: 'post',
data: {
type: 1,
name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号',
param: '考核部门编号=' + code + '=int'
}
})
}
export function fetchCustomerData(PageCurrent, PageSize, name) {
return request({
url: '',
method: 'post',
data: {
type: 1,
name: '创建合同_客户信息查询',
param: '客户名称=' + name + '=string',
Pagination: PageCurrent + '&' + PageSize
}
})
}
export function getFileData(projectNum) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '合同管理_文件路径_查询数据',
param: `项目流水号=${projectNum}`
}
})
}
export function deleteFileData(id) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '合同管理_文件路径_删除数据',
param: `文件标识=${id}`
}
})
}
export function selectMachine(code) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: 'PDM_机床名称_查询数据_通过项目流水号',
param: '项目流水号=' + code
}
})
}
export function selectProvince() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '发货管理_省份查询'
}
})
}
export function SelectMarketingManager(code) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '客户关系管理系统_按地区查询_营销经理',
param: '省份流水号=' + code
}
})
}
export function submitMachine() {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '创建合同_机床名称_增加数据',
param: '项目流水号=' + arguments[0] + '&机床图号=' + arguments[1] + '&机床名称=' + arguments[2]
}
})
}
export function editMachine() {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '创建合同_机床名称_修改数据',
param: '机床流水号=' + arguments[0] + '&机床图号=' + arguments[1] + '&机床名称=' + arguments[2]
}
})
}
export function delMachine() {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: 'PDM_机床名称_删除数据',
param: '机床流水号=' + arguments[0]
}
})
}
export function money() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '合同信息管理_付款方式_查询'
}
})
}

View File

@@ -0,0 +1,114 @@
import request from '@/utils/request'
export function initProject() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '合同信息管理_项目名称_总_查询'
}
})
}
export function searchTable1(pageCurrent, pageSize, num1, num2) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '安全保证金管理_安全保证金信息查询',
param: '项目流水号=' + num1 + '=int&查询类型=' + num2 + '=int',
Pagination: pageCurrent + '&' + pageSize
}
})
}
export function searchTable2(pageCurrent, pageSize, num1) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '安全保证金管理_扣款记录查询',
param: '安全保证金流水号=' + num1,
Pagination: pageCurrent + '&' + pageSize
}
})
}
export function addSafetyMargin() {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '安全保证金管理_安全保证金信息_增加',
param: '项目流水号=' + arguments[0] + '&保证金金额=' + arguments[1] + '&交付日期=' + arguments[2] + '&提前X天提醒=' + arguments[3] + '&预计收回日期=' + arguments[4] + '&备注=' + arguments[5]
}
})
}
export function editSafetyMargin() {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '安全保证金管理_安全保证金信息_修改',
param: '项目流水号=' + arguments[0] + '&保证金金额=' + arguments[1] + '&交付日期=' + arguments[2] + '&提前X天提醒=' + arguments[3] + '&预计收回日期=' + arguments[4] + '&备注=' + arguments[5] + '&安全保证金流水号=' + arguments[6]
}
})
}
export function Withdrawing() {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '安全保证金管理_扣款记录表_增加',
param: '安全保证金流水号=' + arguments[0] + '&扣款金额=' + arguments[1] + '&被扣款人=' + arguments[2] + '&扣款原因=' + arguments[3] + '&扣款日期=' + arguments[4]
}
})
}
export function delSafetyMargin() {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '安全保证金管理_安全保证金信息_删除',
param: '安全保证金流水号=' + arguments[0]
}
})
}
export function delWithdrawing() {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '安全保证金管理_扣款记录表_删除',
param: '扣款流水号=' + arguments[0]
}
})
}
export function edtWithdrawing() {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '安全保证金管理_扣款记录表_修改',
param: '扣款流水号=' + arguments[0] + '&扣款金额新=' + arguments[1] + '&被扣款人=' + arguments[2] + '&扣款原因=' + arguments[3] + '&扣款日期=' + arguments[4]
}
})
}
export function TakeBack() {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '安全保证金管理_安全保证金_收回',
param: '安全保证金流水号=' + arguments[0] + '&实际收回日期=' + arguments[1]
}
})
}

View File

@@ -0,0 +1,76 @@
import request from '@/utils/request'
// 查询(未编制)
export function searchPartNum1(num1, start, end, pageCurrent, pageSize) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_零件工艺计划_查询序间外协零件_价格预算',
param: '定额人员编号=0&零件图号=' + num1 + '&开始时间=' + start + '&结束时间=' + end + '&预算状态=0',
Pagination: pageCurrent + '&' + pageSize
}
})
}
// 查询零件号(已编制)
export function searchPartNum2(num, start, end, pageCurrent, pageSize) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_零件工艺计划_查询序间外协零件_价格预算',
param: '定额人员编号=0&零件图号=' + num + '&开始时间=' + start + '&结束时间=' + end + '&预算状态=1',
Pagination: pageCurrent + '&' + pageSize
}
})
}
// 查询零件工艺
export function searchTable(num, outHelp) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_零件工序_查询数据_根据工艺计划流水号_新',
param: '工艺计划流水号=' + num + '&单件是否外协=' + outHelp
}
})
}
// 保存重量面积
export function saveWeightArea(num, weight, area) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间生产管理工艺_零件工艺计划_修改数据_重量面积',
param: '工艺计划流水号=' + num + '&重量=' + weight + '&面积=' + area
}
})
}
// 保存材料费
export function saveMaterialPrice(num, price) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间生产管理工艺_零件工艺计划_修改数据_材料费',
param: '工艺计划流水号=' + num + '&材料费=' + price
}
})
}
// 保存每行价格
export function saveRowPrice(num1, price1, num2, price2) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间生产管理工艺_零件工序_修改数据_序间外协预算价格_系数',
param: '工序流水号=' + num1 + '&外协预算价格=' + price1 + '&工艺计划流水号=' + num2 + '&材料费=' + price2
}
})
}

View File

@@ -0,0 +1,51 @@
import request from '@/utils/request'
// 查询按钮功能实现
export function searchtable(pageCurrent, pageSize, num1, ManufacturerNumber, num2, ManufacturerName, num10, ManufacturerAbbreviation, num3, address, num4, roleName, num5, phNumber, num6, Fax, num7, Remarks, num8, category, num11, attention, num9, EquipmentCondition) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_基础表_外协厂家_查询数据_ 根据条件',
param: '序号_check=' + num1 + '=int&序号=' + ManufacturerNumber + '&外协厂家名称_check=' + num2 + '=int&外协厂家名称=' + ManufacturerName + '&外协厂家简称_check=' + num10 + '=int&外协厂家简称=' + ManufacturerAbbreviation + '&地址_check=' + num3 + '=int&地址=' + address + '&联系人_check=' + num4 + '=int&联系人=' + roleName + '&电话_check=' + num5 + '=int&电话=' + phNumber + '&传真_check=' + num6 + '=int&传真=' + Fax + '&备注_check=' + num7 + '=int&备注=' + Remarks + '&类别_check=' + num8 + '=int&类别=' + category + '&关注_check=' + num11 + '=int&关注=' + attention + '&设备情况_check=' + num9 + '=int&设备情况=' + EquipmentCondition,
Pagination: pageCurrent + '&' + pageSize
}
})
}
// 增加按钮功能
export function edittype(ManufacturerNumber, ManufacturerName, ManufacturerAbbreviation, address, roleName, phNumber, Fax, Remarks, category, attention, EquipmentCondition) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间生产管理工艺_基础表_外协厂家_增加数据',
param: '序号=' + ManufacturerNumber + '&外协厂家名称=' + ManufacturerName + '&外协厂家简称=' + ManufacturerAbbreviation + '&地址=' + address + '&联系人=' + roleName + '&电话=' + phNumber + '&传真=' + Fax + '&备注=' + Remarks + '&类别=' + category + '&关注=' + attention + '&设备情况=' + EquipmentCondition
}
})
}
// 编辑按钮功能
export function handlechange(CoManufacturerFlowNumber, ManufacturerNumber, ManufacturerName, ManufacturerAbbreviation, address, roleName, phNumber, Fax, Remarks, category, attention, EquipmentCondition) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间生产管理工艺_基础表_外协厂家_修改数据',
param: '外协厂家流水号=' + CoManufacturerFlowNumber + '&序号=' + ManufacturerNumber + '&外协厂家名称=' + ManufacturerName + '&外协厂家简称=' + ManufacturerAbbreviation + '&地址=' + address + '&联系人=' + roleName + '&电话=' + phNumber + '&传真=' + Fax + '&备注=' + Remarks + '&类别=' + category + '&关注=' + attention + '&设备情况=' + EquipmentCondition
}
})
}
// 删除按钮功能
export function handledelete(CoManufacturerFlowNumber) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间生产管理工艺_基础表_外协厂家_删除数据',
param: '外协厂家流水号=' + CoManufacturerFlowNumber + '=int'
}
})
}

View File

@@ -0,0 +1,62 @@
import request from '@/utils/request'
// 初始化获取分类
export function getType() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_基础表_工艺分类名称_查询数据'
}
})
}
// 根据条件查询工艺信息
export function getTable(check, Code, check1, Code1, pageList, pageSize) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_基础表_工艺名称_查询数据_按工艺名称和分类查',
param: '工艺名称_check=' + check + '&工艺名称=' + Code + '&工艺分类流水号_check=' + check1 + '&工艺分类流水号=' + Code1,
Pagination: pageList + '&' + pageSize
}
})
}
// 删除工艺信息
export function delList(MaterialCode) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间生产管理工艺_基础表_工艺名称_删除数据',
param: '工艺编号=' + MaterialCode
}
})
}
// 新增工艺信息
export function Add(Name, ShortName) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间生产管理工艺_基础表_工艺名称_增加数据',
param: '工艺名称=' + Name + '&工艺名称简称=' + ShortName
}
})
}
// 修改工艺信息
export function editList(Code, Price, weightPrice, areaPrice, FlowNumber) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间生产管理工艺_基础表_工艺名称_外协价格_修改数据',
param: '工艺编号=' + Code + '&外协价格1=' + Price + '&重量价格1=' + weightPrice + '&面积价格1=' + areaPrice + '&外协价格计算标准流水号=' + FlowNumber
}
})
}

View File

@@ -0,0 +1,38 @@
import request from '@/utils/request'
// 初始化 外协厂商
export function initOutHelp() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_基础表_外协厂家_查询数据'
}
})
}
// 查询主表
export function searchTable(PageCurrent, PageSize, check1, num1, check2, num2, check3, num3) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理_外协加工任务单明细_查询数据_条件查询_新1',
param: '外协厂家_check=' + check1 + '&外协厂家流水号=' + num1 + '&表单号_check=' + check2 + '&表单号=' + num2 + '&零件图号_check=' + check3 + '&零件图号=' + num3,
Pagination: PageCurrent + '&' + PageSize
}
})
}
// 保存
export function saveRow(num1, inspectDate1, inspectNum1, checkDate1, qualifyNum1, inspectDate2, inspectNum2, checkDate2, qualifyNum2, inspectDate3, inspectNum3, checkDate3, qualifyNum3, num2) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间生产管理_外协加工任务单明细_修改数据_交检',
param: '外协加工任务单明细流水号=' + num1 + '&交检日期1=' + inspectDate1 + '&交检数量1=' + inspectNum1 + '&检查日期1=' + checkDate1 + '&合格数量1=' + qualifyNum1 + '&交检日期2=' + inspectDate2 + '&交检数量2=' + inspectNum2 + '&检查日期2=' + checkDate2 + '&合格数量2=' + qualifyNum2 + '&交检日期3=' + inspectDate3 + '&交检数量3=' + inspectNum3 + '&检查日期3=' + checkDate3 + '&合格数量3=' + qualifyNum3 + '&废品数量=' + num2
}
})
}

View File

@@ -0,0 +1,75 @@
import request from '@/utils/request'
// 初始化 外协厂商
export function initOutHelp() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_基础表_外协厂家_查询数据'
}
})
}
// 查询表格数据
export function searchtable(num2, ManufacturerName, num10, ManufacturerAbbreviation, num3, address, num4, roleName, phNumber, Fax, pageCurrent, pageSize) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理_外协加工任务单_查询数据_付款计划',
param: '外协加工任务单_check=0&外协加工任务单流水号=0&表单号_check=' + num2 + '&表单号=' + ManufacturerName + '&外协厂家_check=' + num10 + '&外协厂家=' + ManufacturerAbbreviation + '&任务下达日期时间_check=' + num3 + '&开始时间=' + address + '&结束时间=' + num4 + '&实际付款时间段_check=' + roleName + '&实际付款开始时间=' + phNumber + '&实际付款结束时间=' + Fax + '&外协计划员编号_check=0&外协计划员编号=0',
Pagination: pageCurrent + '&' + pageSize
}
})
}
// 修改实际付款日期
export function payTime(num, time) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间生产管理_外协加工任务单_修改数据_实际付款时间',
param: '外协加工任务单流水号=' + num + '&实际付款时间=' + time
}
})
}
// 修改扣款数据、扣款说明
export function WithdrawingEdit(num, quality, plan, Other, Explain) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间生产管理_外协加工任务单_修改数据',
param: '外协加工任务单流水号=' + num + '&扣款_质量=' + quality + '&扣款_计划=' + plan + '&扣款_其他=' + Other + '&扣款说明=' + Explain
}
})
}
// 单据状态: 1 未成交 2 成交 3 作废
export function payment(num) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间生产管理_外协加工任务单_修改数据_作废',
param: '外协加工任务单流水号=' + num + '&单据状态=3'
}
})
}
// 查询零件信息
export function getParts(Number, pageCurrent, pageSize) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理_外协加工任务单明细_查询数据',
param: '外协加工任务单流水号=' + Number + '=int',
Pagination: pageCurrent + '&' + pageSize
}
})
}

View File

@@ -0,0 +1,77 @@
import request from '@/utils/request'
// 查询(未编制)
export function searchPartNum1(num1, start, end, pageCurrent, pageSize) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '外协价格预算查询零件_MESWORK',
param: '零件图号=' + num1 + '&开始时间=' + start + '&结束时间=' + end,
Pagination: pageCurrent + '&' + pageSize
}
})
}
// 查询零件号(已编制)
export function searchPartNum2(num, start, end, pageCurrent, pageSize) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '外协价格预算查询零件已编制_MESWORK',
param: '零件图号=' + num + '&开始时间=' + start + '&结束时间=' + end,
Pagination: pageCurrent + '&' + pageSize
}
})
}
// 查询零件工艺
export function searchTable(num, outHelp) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_零件工序_查询数据_根据工艺计划流水号_新',
param: '工艺计划流水号=' + num + '&单件是否外协=' + outHelp
}
})
}
// 保存重量面积
export function saveWeightArea(num, weight, area) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间生产管理工艺_零件工艺计划_修改数据_重量面积',
param: '工艺计划流水号=' + num + '&重量=' + weight + '&面积=' + area
}
})
}
// 保存材料费
export function saveMaterialPrice(num, price) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间生产管理工艺_零件工艺计划_修改数据_材料费',
param: '工艺计划流水号=' + num + '&材料费=' + price
}
})
}
// 保存每行价格
export function saveRowPrice(num1, price1, num2, price2) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间生产管理工艺_零件工序_修改数据_外协预算价格_系数',
param: '工序流水号=' + num1 + '&外协预算价格=' + price1 + '&工艺计划流水号=' + num2 + '&材料费=' + price2
}
})
}

View File

@@ -0,0 +1,15 @@
import request from '@/utils/request'
// 查询外协零件状态
export function searchOutHelpState(PageCurrent, PageSize, check, num) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理_外协零件状态_查询数据',
param: '零件图号_check=' + check + '&零件图号=' + num + '&外协零件状态_check=0&外协零件状态=0',
Pagination: PageCurrent + '&' + PageSize
}
})
}

View File

@@ -0,0 +1,178 @@
import request from '@/utils/request'
export function getTable(checked, contractNumber, checked1, manufacturers, checked2, time1, time2) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理_外协加工任务单_查询数据',
param: '外协加工任务单_check=0=int&表单号_check=' + checked + '=int&表单号=' + contractNumber + '=string&外协厂家_check=' + checked1 + '=int&外协厂家=' + manufacturers + '=int&任务下达日期_时间段=' + checked2 + '=int&开始时间=' + time1 + '&结束时间=' + time2 + '&单据状态_check=1=int&单据状态=2=int&外协员编号_check=1=int&外协员编号=1180=int'
}
})
}
export function getData1() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_基础表_外协厂家_查询数据'
}
})
}
export function getTable1(check, partNumber) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_零件工艺计划_查询数据_外协_新',
param: '零件图号_check=' + check + '=int&零件图号=' + partNumber + '=string'
}
})
}
export function getprocedure(processPlan, single) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_零件工序_查询数据_根据工艺计划流水号_工艺名称简称_新',
param: '工艺计划流水号=' + processPlan + '=int&单件是否外协=' + single + '=int'
}
})
}
export function searchManufactor(name) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_基础表_外协厂家_查询数据_ 根据条件',
param: '序号_check=0=bit&序号=' + ' ' + '=string&外协厂家名称_check=1=bit&外协厂家名称=' + name + '=string&外协厂家简称_check=0=bit&外协厂家简称=' + ' ' + '=string&地址_check=0=bit&地址=' + ' ' + '=string&联系人_check=0=bit&联系人=' + ' ' + '=string&电话_check=0=bit&电话=' + ' ' + '=string&传真_check=0=bit&传真=' + ' ' + '=string&备注_check=0=bit&备注=' + ' ' + '=string&类别_check=0=bit&类别=' + ' ' + '=string&关注_check=0=bit&关注=' + ' ' + '=string&设备情况_check=0=bit&设备情况=' + ' ' + '=string'
}
})
}
export function spareParts(processNum, single) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_零件工序_查询数据_根据工艺计划流水号_全部_新',
param: '工艺计划流水号=' + processNum + '=int&工序数量=21=int&单件是否外协=' + single + '=int'
}
})
}
export function spareParts1(processNum, single) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_零件工序_查询数据_根据工艺计划流水号_全部_新',
param: '工艺计划流水号=' + processNum + '=int&工序数量=31=int&单件是否外协=' + single + '=int'
}
})
}
export function addTable(contractNumber, manufacturers, time, freight) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间生产管理_外协加工任务单_增加数据',
param: '表单号=' + contractNumber + '=string&外协计划员编号=1180=int&外协厂家=' + manufacturers + '=int&任务下达日期=' + time + '=string&运费=' + freight + '=int'
}
})
}
export function deleteData(Number) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间生产管理_外协加工任务单_删除数据',
param: '外协加工任务单流水号=' + Number + '=int'
}
})
}
export function deleteData1(Number) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间生产管理_外协加工任务单明细_删除数据',
param: '外协加工任务单明细流水号=' + Number + '=int'
}
})
}
export function insertParts(processNum, Number) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间生产管理_外协加工任务单明细_增加数据',
param: '外协加工任务单流水号=' + Number + '=int&工艺计划流水号=' + processNum + '=int'
}
})
}
export function getParts(Number) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理_外协加工任务单明细_查询数据',
param: '外协加工任务单流水号=' + Number + '=int'
}
})
}
export function getNumber(time) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理_外协加工任务单_查询数据_单据编号',
param: '任务下达日期=' + time + '=string&表单号=1=string=output'
}
})
}
export function getPrice(Number, money, money1, money2, money3) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间生产管理_外协加工任务单明细_修改数据',
param: '外协加工任务单明细流水号=' + Number + '=int&加工价格_预算=' + money + '&加工价格_成交=' + money1 + '&材料价格_价格=' + money2 + '&其他价格=' + money3 + '&入库标志=1=int&交检数量=0=int&合格数量=0=int&回用数量=0=int&废品数量=0=int'
}
})
}
export function editData(Number, manufacturers, freight, documentStatus, sign, Explain) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间生产管理_外协加工任务单_修改数据',
param: '外协加工任务单流水号=' + Number + '=int&外协厂家=' + manufacturers + '=int&运费=' + freight + '=int&单据状态=' + documentStatus + '=int&入库标志=' + sign + '=int&扣款说明=' + Explain
}
})
}
export function editData1(Number, manufacturers, freight, documentStatus, sign, Explain) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间生产管理_外协加工任务单_修改数据',
param: '外协加工任务单流水号=' + Number + '=int&外协厂家=' + manufacturers + '=int&运费=' + freight + '=int&单据状态=' + documentStatus + '=int&入库标志=' + sign + '=int&扣款说明=' + Explain + '&扣款_质量=0=int&扣款_计划=0=int&扣款_其他=0=int'
}
})
}

View File

@@ -0,0 +1,194 @@
import request from '@/utils/request'
// 初始化获取已生成的外协加工任务单初始化获取已生成的外协加工任务单
export function getTable(checked, contractNumber, checked1, manufacturers, checked2, time1, time2, num, pageCurrent, pageSize) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理_外协加工任务单_查询数据',
param: '外协加工任务单_check=0&外协加工任务单流水号=null&表单号_check=' + checked + '&表单号=' + contractNumber + '&外协厂家_check=' + checked1 + '&外协厂家=' + manufacturers + '&任务下达日期_时间段=' + checked2 + '&开始时间=' + time1 + '&结束时间=' + time2 + '&单据状态_check=0&单据状态=1&外协员编号_check=0&外协员编号=' + num,
Pagination: pageCurrent + '&' + pageSize
}
})
}
// 初始化获取外协厂家数据
export function getData1() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_基础表_外协厂家_查询数据'
}
})
}
// 初始化获取已预算价格,未选入到外协加工任务单的零件
export function getTable1(check, partNumber) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_零件工艺计划_查询数据_外协_新',
param: '零件图号_check=' + check + '=int&零件图号=' + partNumber + '=string'
}
})
}
// 获取零件工序信息(零件号表中)
export function getprocedure(processPlan, single) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_零件工序_查询数据_根据工艺计划流水号_工艺名称简称_新',
param: '工艺计划流水号=' + processPlan + '=int&单件是否外协=' + single + '=int'
}
})
}
// 外协厂家查询
export function searchManufactor(name) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_基础表_外协厂家_查询数据_ 根据条件',
param: '序号_check=0=bit&序号=' + ' ' + '=string&外协厂家名称_check=1=bit&外协厂家名称=' + name + '=string&外协厂家简称_check=0=bit&外协厂家简称=' + ' ' + '=string&地址_check=0=bit&地址=' + ' ' + '=string&联系人_check=0=bit&联系人=' + ' ' + '=string&电话_check=0=bit&电话=' + ' ' + '=string&传真_check=0=bit&传真=' + ' ' + '=string&备注_check=0=bit&备注=' + ' ' + '=string&类别_check=0=bit&类别=' + ' ' + '=string&关注_check=0=bit&关注=' + ' ' + '=string&设备情况_check=0=bit&设备情况=' + ' ' + '=string'
}
})
}
// 确定价格
export function spareParts(processNum, single) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_零件工序_查询数据_根据工艺计划流水号_全部_新',
param: '工艺计划流水号=' + processNum + '=int&工序数量=21=int&单件是否外协=' + single + '=int'
}
})
}
// 暂未启用
export function spareParts1(processNum, single) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_零件工序_查询数据_根据工艺计划流水号_全部_新',
param: '工艺计划流水号=' + processNum + '=int&工序数量=31=int&单件是否外协=' + single + '=int'
}
})
}
// 新建外协加工任务单
export function addTable(contractNumber, personNum, manufacturers, time, freight) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间生产管理_外协加工任务单_增加数据',
param: '表单号=' + contractNumber + '=string&外协计划员编号=' + personNum + '&外协厂家=' + manufacturers + '=int&任务下达日期=' + time + '=string&运费=' + freight + '=int'
}
})
}
// 外协加工任务单修改
export function editData(Number, manufacturers, freight, documentStatus, sign, Explain) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间生产管理_外协加工任务单_修改数据',
param: '外协加工任务单流水号=' + Number + '=int&外协厂家=' + manufacturers + '=int&运费=' + freight + '=int&单据状态=' + documentStatus + '=int&入库标志=' + sign + '=int&扣款说明=' + Explain
}
})
}
// 成交
export function editData1(Number, manufacturers, freight, documentStatus, sign, Explain) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间生产管理_外协加工任务单_修改数据',
param: '外协加工任务单流水号=' + Number + '=int&外协厂家=' + manufacturers + '=int&运费=' + freight + '=int&单据状态=' + documentStatus + '=int&入库标志=' + sign + '=int&扣款说明=' + Explain + '&扣款_质量=0&扣款_计划=0&扣款_其他=0'
}
})
}
// 删除外协加工任务单
export function deleteData(Number) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间生产管理_外协加工任务单_删除数据',
param: '外协加工任务单流水号=' + Number + '=int'
}
})
}
// 移除零件
export function deleteData1(Number) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间生产管理_外协加工任务单明细_删除数据',
param: '外协加工任务单明细流水号=' + Number + '=int'
}
})
}
// 选入零件
export function insertParts(processNum, Number) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间生产管理_外协加工任务单明细_增加数据',
param: '外协加工任务单流水号=' + Number + '=int&工艺计划流水号=' + processNum + '=int'
}
})
}
// 查询任务单明细
export function getParts(Number) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理_外协加工任务单明细_查询数据',
param: '外协加工任务单流水号=' + Number + '=int'
}
})
}
// 数据库生产表单号
export function getNumber(time) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理_外协加工任务单_查询数据_单据编号',
param: '任务下达日期=' + time + '=string&表单号=1=string=output'
}
})
}
// 计算价格
export function getPrice(Number, money, money1, money2, money3) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间生产管理_外协加工任务单明细_修改数据',
param: '外协加工任务单明细流水号=' + Number + '=int&加工价格_预算=' + money + '&加工价格_成交=' + money1 + '&材料价格_价格=' + money2 + '&其他价格=' + money3 + '&入库标志=1=int&交检数量=0=int&合格数量=0=int&回用数量=0=int&废品数量=0=int'
}
})
}

View File

@@ -0,0 +1,237 @@
import request from '@/utils/request'
// 初始化项目名称
export function initProject() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_传递后_项目名称_查询数据',
param: '考核状态=5'
}
})
}
// 查询机床号
export function searchMachine(num) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_传递后_机床名称_查询数据',
param: '项目流水号=' + num + '&是否传递=2&考核状态=5&工艺任务分配状态=2&定额任务分配状态=2&单件是否外协=2'
}
})
}
// 查询组号
export function searchGroup(num) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_传递后_组件名称_查询数据',
param: '机床流水号=' + num + '&是否传递=2&考核状态=5&工艺任务分配状态=2&定额任务分配状态=2&单件是否外协=2'
}
})
}
// 查询表1
export function searchTable1(PageCurrent, PageSize, check1, num1, check2, num2, check3, num3, check4, num4) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_零件工序_查询数据_已编制工序的全部零件及工序_New',
param: '项目流水号_check=' + check1 + '&项目流水号=' + num1 + '&机床流水号_check=' + check2 + '&机床流水号=' + num2 + '&组件流水号_check=' + check3 + '&组件流水号=' + num3 + '&零件图号_check=' + check4 + '&零件图号=' + num4 + '&是否查询全部数据=1&单件是否外协=2&考核状态=5',
Pagination: PageCurrent + '&' + PageSize
}
})
}
// 判断上班状态
export function judgeWork(date) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_基础表_工作日历_获得状态',
param: '工作日期=' + date
}
})
}
// 修改机加工开始结束时间
export function makePartPlan(num, start, end) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间生产管理工艺_零件工艺计划_机加工时间_修改数据',
param: '工艺计划流水号=' + num + '&机加工开始时间=' + start + '&机加工结束时间=' + end
}
})
}
// 制定零件计划 计算工序时间(猜测:机加工开始时间和计划开始时间应该是同一个)
export function computeProcedureTime(num, start, end) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间生产管理工艺_零件工序_修改数据_计算工序计划时间',
param: '工艺计划流水号=' + num + '&计划开始时间=' + start + '&计划结束时间=' + end
}
})
}
// 板焊结束
export function boardWeldEnd(num, time) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间生产管理工艺_零件工艺计划_修改数据_修改板焊工段计划完成时间',
param: '工艺计划流水号=' + num + '&板焊工段计划完成时间=' + time
}
})
}
// 取消外协
export function cancelOut(num, num1) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间生产管理工艺_零件工艺计划_划为外协',
param: '工艺计划流水号=' + num + '&单件是否外协=1&单件是否外协分类=' + num1
}
})
}
// 查询工序能力
export function searchProcessAbility(start, end, PageCurrent, PageSize) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_计划平衡表_各个工序总加工能力_查询数据_新',
param: '查询开始日期=' + start + '&查询结束日期=' + end + '&单件是否外协=2',
Pagination: PageCurrent + '&' + PageSize
}
})
}
// 查询工序工时
export function searchProcedureTime(time, num1, PageCurrent, PageSize) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_零件工序_查询数据_工序工时',
param: '计划日期_check=1&计划日期=' + time + '&工艺编号_check=1&工艺编号=' + num1 + '&组件流水号_check=0&组件流水号=0&单件是否外协=2',
Pagination: PageCurrent + '&' + PageSize
// check1, time, check2, num1, check3, num2
// param: '计划日期_check=' + check1 + '&计划日期=' + time + '&工艺编号_check=' + check2 + '&工艺编号=' + num1 + '&组件流水号_check=' + check3 + '&组件流水号=' + num2 + '&单件是否外协=2'
}
})
}
// 调整单件进度(↑)
export function adjustSingleProgress(num, start, end) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间生产管理工艺_零件工艺计划_机加工时间_修改数据',
param: '工艺计划流水号=' + num + '&机加工开始时间=' + start + '&机加工结束时间=' + end
}
})
}
// 确定零件进度(↑)
export function confirmPartProgress(num, num1) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间生产管理工艺_零件工艺计划_划为外协',
param: '工艺计划流水号=' + num + '&单件是否外协=1&单件是否外协分类=' + num1
}
})
}
// 确定零件计划
export function confirmPartPlan(num, num1) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间生产管理工艺_零件工艺计划_划为外协_系数',
param: '工艺计划流水号=' + num + '&单件是否外协=2&单件是否外协分类=' + num1
}
})
}
// 查询表1零件图号等
export function searchTable11(PageCurrent, PageSize, check1, num1, check2, num2, check3, num3, check4, num4) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_零件工序_查询数据_已编制工序的全部零件及工序_Newdistinct',
param: '项目流水号_check=' + check1 + '&项目流水号=' + num1 + '&机床流水号_check=' + check2 + '&机床流水号=' + num2 + '&组件流水号_check=' + check3 + '&组件流水号=' + num3 + '&零件图号_check=' + check4 + '&零件图号=' + num4 + '&是否查询全部数据=1&单件是否外协=2&考核状态=5',
Pagination: PageCurrent + '&' + PageSize
}
})
}
// 查询表130列
export function searchTable12(num4) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_零件工序_查询数据_已编制工序的全部零件及工序_NewNew',
param: '零件图号=' + num4
}
})
}
// 点击表格外协更改状态
export function table1Out(num1, num3) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间生产管理工艺_零件工艺计划_外协平衡',
param: '工艺计划流水号=' + num1 + '&是否预计外协=1&是否预计外协分类=' + num3
}
})
}
// 修改零件着急状态
export function zhaoji(num, a) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间生产管理工艺_零件工艺计划_修改数据_修改零件着急状态',
param: '工艺计划流水号=' + num + '&零件类型=' + a
}
})
}
// 修改加工件合格时间
export function machiningQualified(num, a) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间生产管理工艺_零件工艺计划_修改数据_修改加工件合格时间',
param: '工艺计划流水号=' + num + '&加工件合格时间=' + a
}
})
}

View File

@@ -0,0 +1,50 @@
import request from '@/utils/request'
// 查询表1
export function searchTable(check, num1, pageCurrent, pageSize) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_零件工艺计划_查询数据_状态_新',
param: '项目流水号_check=0&项目流水号=0&机床流水号_check=0&机床流水号=0&组件流水号_check=0&组件流水号=0&零件图号_check=' + check + '&零件图号=' + num1 + '&考核状态_check=0&考核状态=0&单件是否外协_check=1&单件是否外协=1&时间=0&机加工开始时间=0&机加工结束时间=0&零件类型=0',
Pagination: pageCurrent + '&' + pageSize
}
})
}
// 查询表2
export function searchTable2(num1) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_零件工序_查询数据_工序工时_划单序外协',
param: '工艺计划流水号=' + num1
}
})
}
// 序间外协状态更改
export function edit(num1, num2) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间生产管理工艺_零件工序_修改数据_单序外协',
param: '工序流水号=' + num1 + '&工序间是否外协=' + num2
}
})
}
export function edit2(num1, num2, num3) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间生产管理工艺_零件工艺计划_序间外协转换',
param: '工序流水号=' + num1 + '&工艺计划流水号=' + num2 + '&是否外协=' + num3
}
})
}

View File

@@ -0,0 +1,38 @@
import request from '@/utils/request'
// 初始化 外协厂商
export function initOutHelp() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_基础表_外协厂家_查询数据'
}
})
}
// 查询主表
export function searchTable(PageCurrent, PageSize, check1, num1, check2, num2, check3, num3, check4, num4, check5, num5) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理_外协加工任务单明细_查询数据_条件查询_新1',
param: '外协厂家_check=' + check1 + '&外协厂家流水号=' + num1 + '&表单号_check=' + check2 + '&表单号=' + num2 + '&零件图号_check=' + check3 + '&零件图号=' + num3 + '&任务下达日期_年_check=' + check4 + '&任务下达日期_年=' + num4 + '&任务下达日期_月_check=' + check5 + '&任务下达日期_月=' + num5,
Pagination: PageCurrent + '&' + PageSize
}
})
}
// 编辑不合格数量
export function editList(num, num1, num2) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间生产管理_外协加工任务单明细_修改数据_不合格处理',
param: '外协加工任务单明细流水号=' + num + '&废品数量=' + num1 + '&不合格处理方式=' + num2
}
})
}

View File

@@ -0,0 +1,12 @@
import request from '@/utils/request'
export function projectSelect() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: 'PDM_项目名称_查询数据'
}
})
}

View File

@@ -0,0 +1,36 @@
import request from '@/utils/request'
export function projectSelect() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: 'PDM_项目名称_查询数据'
}
})
}
export function getTableData(num) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '项目总结_查询数据',
param: `项目流水号=${num}`
}
})
}
export function editTableData(num, projectValue, projectName, projectNum, producer, reviewer, projectManager, makeTime, startTime, planTime, accturalTime, timeAnalysis, planCost, accturalCost, costAnalysis, planResult, accturalResult, notResult, resultAnalysis, summary, projectManagerDate, reviewerDate) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '项目总结_编辑数据',
param: `项目总结流水号=${num}&项目流水号=${projectValue}&项目名称=${projectName}&项目编号=${projectNum}&制作人=${producer}&审核人=${reviewer}&项目经理=${projectManager}&制作日期=${makeTime}&开始时间=${startTime}&计划完成日期=${planTime}&实际完成日期=${accturalTime}&时间分析=${timeAnalysis}&计划费用=${planCost}&实际费用=${accturalCost}&成本分析=${costAnalysis}&计划交付结果=${planResult}&实际交付结果=${accturalResult}&未交付结果=${notResult}&交付结果分析=${resultAnalysis}&项目经验教训总结=${summary}&项目经理签字日期=${projectManagerDate}&审核人签字日期=${reviewerDate}`
}
})
}

View File

@@ -0,0 +1,226 @@
import request from '@/utils/request'
export function projectSelect() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: 'PDM_项目名称_查询数据'
}
})
}
export function getReciptData(projectNum) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: 'PDM_装箱单_总单据_查询数据',
param: `项目流水号=${projectNum}`
}
})
}
export function insertReciptData(num, time, name, address, tel, contact, projectNum) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: 'PDM_装箱单_总单据_增加数据',
param: `装箱单号=${num}&发货节点=${time}&名称=${name}&收货单位=${address}&联系方式=${tel}&联系人=${contact}&项目流水号=${projectNum}`
}
})
}
export function updateReciptData(num, time, name, address, tel, contact, projectNum) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: 'PDM_装箱单_总单据_修改数据',
param: `装箱单号=${num}&发货节点=${time}&名称=${name}&收货单位=${address}&联系方式=${tel}&联系人=${contact}&装箱单编号=${projectNum}`
}
})
}
export function deleteReciptData(num) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: 'PDM_装箱单_总单据_删除数据',
param: `装箱单编号=${num}`
}
})
}
export function getMachineData(num) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: 'PDM_装箱单_主机_查询数据',
param: `装箱单编号=${num}`
}
})
}
export function deleteMachineData(num) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: 'PDM_装箱单_主机_删除数据',
param: `序号=${num}`
}
})
}
export function addMachineData(projectName, machine, remark, number, num) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: 'PDM_装箱单_主机_增加数据',
param: `项目=${projectName}&机床号=${machine}&数量=${number}&备注=${remark}&装箱单编号=${num}`
}
})
}
export function updateMachineData(No, number, remark) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: 'PDM_装箱单_主机_修改数据',
param: `序号=${No}&数量=${number}&备注=${remark}`
}
})
}
export function getGroupData(project, machine) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: 'PDM_装箱单_机床所属部件_查询数据',
param: `项目=${project}&机床=${machine}`
}
})
}
export function machineSelect(projectValue) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: 'PDM_机床名称_查询数据2',
param: `项目流水号=${projectValue}`
}
})
}
export function getFileData(num) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: 'PDM_装箱单_随机技术文件_查询数据',
param: `装箱单编号=${num}`
}
})
}
export function deleteFileData(num) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: 'PDM_装箱单_随机技术文件_删除数据',
param: `序号=${num}`
}
})
}
export function editFileData(name, number, remark, num) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: 'PDM_装箱单_随机技术文件_修改数据',
param: `名称=${name}&数量=${number}&备注=${remark}&序号=${num}`
}
})
}
export function addFileData(name, number, remark, num) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: 'PDM_装箱单_随机技术文件_增加数据',
param: `名称=${name}&数量=${number}&备注=${remark}&装箱单编号=${num}`
}
})
}
export function getSpareData(num) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: 'PDM_装箱单_备件_查询数据',
param: `装箱单编号=${num}`
}
})
}
export function deleteSpareData(num) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: 'PDM_装箱单_备件_删除数据',
param: `序号=${num}`
}
})
}
export function editSpareData(name, specification, number, unit, remark, num) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: 'PDM_装箱单_备件_修改数据',
param: `名称=${name}&规格=${specification}&数量=${number}&单位=${unit}&备注=${remark}&序号=${num}`
}
})
}
export function addSpareData(name, specification, number, unit, remark, num) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: 'PDM_装箱单_备件_增加数据',
param: `名称=${name}&规格=${specification}&数量=${number}&单位=${unit}&备注=${remark}&装箱单编号=${num}`
}
})
}

View File

@@ -0,0 +1,249 @@
import request from '@/utils/request'
// 初始化 项目名称
export function initProject() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: 'PDM_项目名称_查询数据_按时间排序'
}
})
}
export function isExit(projectNum, machineNum) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '组件明细表_基本件_导入数据_校验',
param: `项目流水号=${projectNum}&机床图号=${machineNum}`
}
})
}
export function isDrawingNum(projectName, machineNum, groupNum, drawingNum) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '组件明细表_基本件_导入验证gj',
param: `项目名称=${projectName}&机床名称=${machineNum}&分组名称=${groupNum}&图号=${drawingNum}`
}
})
}
export function importBasics(establishment, proofread, review, date, projectName, machineNum, machineName, componentName, componentNum, groupNum, contractNum, totalNum, pageNum, drawingNum, name, type, material, spareNum, useNum, manufacturer, remarks, classificationCode) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '组件明细表_基本件_导入数据gj',
param: `编制=${establishment}&校对=${proofread}&审核=${review}&日期=${date}&项目=${projectName}&机床=${machineNum}&设备名称=${machineName}&部件名称=${componentName}&部件数量=${componentNum}&组号=${groupNum}&合同编号=${contractNum}&合计页码=${totalNum}&页码=${pageNum}&图号=${drawingNum}&名称=${name}&规格=${type}&材料=${material}&备件数量=${spareNum}&装机数量=${useNum}&制造商=${manufacturer}&备注=${remarks}&分类码=${classificationCode}`
}
})
}
export function importPurcharse(establishment, proofread, review, date, projectName, machineNum, machineName, componentName, componentNum, groupNum, contractNum, totalNum, pageNum, drawingNum, name, type, material, spareNum, useNum, manufacturer, remarks, classificationCode) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '零件明细表_外购件和标准件_导入数据gj',
param: `编制=${establishment}&校对=${proofread}&审核=${review}&日期=${date}&项目=${projectName}&机床=${machineNum}&设备名称=${machineName}&部件名称=${componentName}&部件数量=${componentNum}&组号=${groupNum}&合同编号=${contractNum}&合计页码=${totalNum}&页码=${pageNum}&图号=${drawingNum}&名称=${name}&规格=${type}&材料=${material}&备件数量=${spareNum}&装机数量=${useNum}&制造商=${manufacturer}&备注=${remarks}&分类码=${classificationCode}`
}
})
}
export function specificationQuery(projectCheck, project, machineCheck, machine, groupCheck, group) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: 'PDM_零件明细表_基本件_规范数据查询_gj',
param: `项目名字_check=${projectCheck}&项目名字=${project}&机床名字_check=${machineCheck}&机床名字=${machine}&组号_check=${groupCheck}&组号=${group}`
}
})
}
export function specificationQueryWB(projectCheck, project, machineCheck, machine, groupCheck, group) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: 'PDM_零件明细表_外购件和标准件_规范数据查询_gj',
param: `项目名字_check=${projectCheck}&项目名字=${project}&机床名字_check=${machineCheck}&机床名字=${machine}&组号_check=${groupCheck}&组号=${group}`
}
})
}
export function unSpecificationQuery(projectCheck, project, machineCheck, machine, groupCheck, group) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: 'PDM_零件明细表_基本件_不规范数据查询_gj',
param: `项目名字_check=${projectCheck}&项目名字=${project}&机床名字_check=${machineCheck}&机床名字=${machine}&组号_check=${groupCheck}&组号=${group}`
}
})
}
export function unSpecificationQueryWB(projectCheck, project, machineCheck, machine, groupCheck, group) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: 'PDM_零件明细表_外购件和标准件_不规范数据查询gj',
param: `项目名字_check=${projectCheck}&项目名字=${project}&机床名字_check=${machineCheck}&机床名字=${machine}&组号_check=${groupCheck}&组号=${group}`
}
})
}
export function deleteBasicParts(id) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: 'PDM_零件明细表_基本件_数据导入保存_删除数据gj',
param: 'id=' + id
}
})
}
export function deleteBWParts(id) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: 'PDM_零件明细表_外购件和标准件_数据导入保存_删除数据gj',
param: 'id=' + id
}
})
}
export function getMaterial() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: 'PDM_零件明细表_材料_名称_查询数据_gj'
}
})
}
export function getMaterialWB(pageCurrent, pageSize) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: 'PDM_零件明细表_物料查询总gj',
pagination: pageCurrent + '&' + pageSize
}
})
}
export function searchMaterialWB(material, pageCurrent, pageSize) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: 'PDM_零件明细表_物料查询gj',
param: `物料=${material}`,
pagination: pageCurrent + '&' + pageSize
}
})
}
export function updateRow(drawingNum, name, type, materialName, spareNum, useNum, manufacturer, remarks, classificationCode, id, materialNum, partsNum) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '组件明细表_基本件_导入数据_更新数据_gj',
param: `图号=${drawingNum}&名称=${name}&规格=${type}&材料=${materialName}&备件数量=${spareNum}&装机数量=${useNum}&制造商=${manufacturer}&备注=${remarks}&分类码=${classificationCode}&id=${id}&材料流水号=${materialNum}&部件数量=${partsNum}`
}
})
}
export function updateRowWB(drawingNum, name, type, materialName, spareNum, useNum, manufacturer, remarks, classificationCode, id, materialNum, partsNum) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '零件明细表_外购件和标准件_导入数据_更新数据_gj',
param: `图号=${drawingNum}&名称=${name}&规格=${type}&材料=${materialName}&备件数量=${spareNum}&装机数量=${useNum}&制造商=${manufacturer}&备注=${remarks}&分类码=${classificationCode}&id=${id}&物料流水号=${materialNum}&部件数量=${partsNum}`
}
})
}
// 查询机床名称
export function searchMachine(project) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: 'PDM_零件明细表_基本件_数据导入保存_机床_查询数据gj',
param: `项目=${project}`
}
})
}
export function searchMachine2(project) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: 'PDM_零件明细表_外购件和标准件_数据导入保存_机床_查询数据gj',
param: `项目=${project}`
}
})
}
// 查询组号
export function searchGroupNum(project, name) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: 'PDM_零件明细表_基本件_数据导入保存_组号_查询数据gj',
param: `项目=${project}&机床=${name}`
}
})
}
// 传递零件
export function transferMX(num1, name, num2, remark, mark, num3, num4, num5, type, transmit, num6, id) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: 'PDM_零件明细表_基本件_大量导入',
param: '图号或者型号=' + num1 + '&零件名称=' + name + '&零件数量=' + num2 + '&零件备注=' + remark + '&标记=' + mark + '&设计者编号=' + num3 + '&组件流水号=' + num4 + '&材料流水号=' + num5 + '&数据类型=' + type + '&是否传递=' + transmit + '&序号=' + num6 + '&id=' + id
}
})
}
export function transferWG(groupNum, materialNum, totalNum, remarks, mark, designNum, isTransfer, dataType, No, id) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: 'PDM_零件明细表_标准件和外购件_大量导入',
param: `组件流水号=${groupNum}&物料流水号=${materialNum}&零件数量=${totalNum}&备注=${remarks}&标记=${mark}&设计者编号=${designNum}&是否传递=${isTransfer}&数据类型=${dataType}&序号=${No}&id=${id}`
}
})
}

View File

@@ -0,0 +1,83 @@
import request from '@/utils/request'
export function projectSelect() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: 'PDM_项目名称_查询数据'
}
})
}
export function machineSelect(projectValue) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: 'PDM_机床名称_查询数据2',
param: `项目流水号=${projectValue}`
}
})
}
export function groupSelect(machineValue) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: 'PDM_零件明细表_组件流水号_查询数据_根据机床',
param: `机床流水号=${machineValue}`
}
})
}
export function basicPartsData(project_check, project, machine_check, machine, group_check, group, pageSize, pageCurrent) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: 'PDM_零件明细表_基本件_查询数据_综合gj',
param: `项目流水号_check=${project_check}&项目流水号=${project}&机床流水号_check=${machine_check}&机床流水号=${machine}&组件流水号_check=${group_check}&组件流水号=${group}`,
Pagination: pageCurrent + '&' + pageSize
}
})
}
export function purchasePartsData(num, type, pageCurrent, pageSize) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: 'PDM_零件明细表_标准件和外购件_查询数据',
param: `组件流水号=${num}&标准件类型=${type}`,
pagination: pageCurrent + '&' + pageSize
}
})
}
export function deleteBasicParts(basicNum) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: 'PDM_零件明细表_基本件_删除数据',
param: `基本件流水号=${basicNum}`
}
})
}
export function deletePurchaseData(num) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: 'PDM_零件明细表_标准件和外购件_删除数据',
param: '标准件和外购件流水号=' + num + '=int'
}
})
}

38
src/api/login.js Normal file
View File

@@ -0,0 +1,38 @@
import request from '@/utils/request'
export function login(username, password) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单系统模块_用户名密码_查询数据_new2',
param: `用户名=${username}&密码=${password}`
}
})
}
export function getInfo(token) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单系统模块_项目角色模块列表_查询数据gj',
param: `角色编号=${token}`
}
})
}
// 查询按钮功能实现
export function editPassword(num1, num2, num3, num4) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '账号信息_修改密码_MESWORK',
param: '考勤编号=' + num1 + '=int&原始密码=' + num2 + '=string&新密码=' + num3 + '=string&返回=' + num4 + '=string=output'
}
})
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

BIN
src/assets/img/user.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

View File

@@ -0,0 +1,51 @@
<template>
<el-breadcrumb class="app-breadcrumb" separator="/">
<transition-group name="breadcrumb">
<el-breadcrumb-item v-for="(item,index) in levelList" v-if="item.meta.title" :key="item.path">
<span v-if="item.redirect==='noredirect'||index==levelList.length-1" class="no-redirect">{{ item.meta.title }}</span>
<router-link v-else :to="item.redirect||item.path">{{ item.meta.title }}</router-link>
</el-breadcrumb-item>
</transition-group>
</el-breadcrumb>
</template>
<script>
export default {
data() {
return {
levelList: null
}
},
watch: {
$route() {
this.getBreadcrumb()
}
},
created() {
this.getBreadcrumb()
},
methods: {
getBreadcrumb() {
let matched = this.$route.matched.filter(item => item.name)
const first = matched[0]
if (first && first.name !== 'dashboard') {
matched = [{ path: '/dashboard', meta: { title: '主页' }}].concat(matched)
}
this.levelList = matched
}
}
}
</script>
<style rel="stylesheet/scss" lang="scss" scoped>
.app-breadcrumb.el-breadcrumb {
display: inline-block;
font-size: 14px;
line-height: 50px;
margin-left: 10px;
.no-redirect {
color: #97a8be;
cursor: text;
}
}
</style>

View File

@@ -0,0 +1,58 @@
<template>
<div>
<svg
:class="{'is-active':isActive}"
t="1492500959545"
class="hamburger"
style=""
viewBox="0 0 1024 1024"
version="1.1"
xmlns="http://www.w3.org/2000/svg"
p-id="1691"
xmlns:xlink="http://www.w3.org/1999/xlink"
width="64"
height="64"
@click="toggleClick">
<path
d="M966.8023 568.849776 57.196677 568.849776c-31.397081 0-56.850799-25.452695-56.850799-56.850799l0 0c0-31.397081 25.452695-56.849776 56.850799-56.849776l909.605623 0c31.397081 0 56.849776 25.452695 56.849776 56.849776l0 0C1023.653099 543.397081 998.200404 568.849776 966.8023 568.849776z"
p-id="1692" />
<path
d="M966.8023 881.527125 57.196677 881.527125c-31.397081 0-56.850799-25.452695-56.850799-56.849776l0 0c0-31.397081 25.452695-56.849776 56.850799-56.849776l909.605623 0c31.397081 0 56.849776 25.452695 56.849776 56.849776l0 0C1023.653099 856.07443 998.200404 881.527125 966.8023 881.527125z"
p-id="1693" />
<path
d="M966.8023 256.17345 57.196677 256.17345c-31.397081 0-56.850799-25.452695-56.850799-56.849776l0 0c0-31.397081 25.452695-56.850799 56.850799-56.850799l909.605623 0c31.397081 0 56.849776 25.452695 56.849776 56.850799l0 0C1023.653099 230.720755 998.200404 256.17345 966.8023 256.17345z"
p-id="1694" />
</svg>
</div>
</template>
<script>
export default {
name: 'Hamburger',
props: {
isActive: {
type: Boolean,
default: false
},
toggleClick: {
type: Function,
default: null
}
}
}
</script>
<style scoped>
.hamburger {
display: inline-block;
cursor: pointer;
width: 20px;
height: 20px;
transform: rotate(90deg);
transition: .38s;
transform-origin: 50% 50%;
}
.hamburger.is-active {
transform: rotate(0deg);
}
</style>

View File

@@ -0,0 +1,72 @@
<template>
<div ref="scrollContainer" class="scroll-container" @wheel.prevent="handleScroll">
<div ref="scrollWrapper" :style="{left: left + 'px'}" class="scroll-wrapper">
<slot/>
</div>
</div>
</template>
<script>
const padding = 15 // tag's padding
export default {
name: 'ScrollPane',
data() {
return {
left: 0
}
},
methods: {
handleScroll(e) {
const eventDelta = e.wheelDelta || -e.deltaY * 3
const $container = this.$refs.scrollContainer
const $containerWidth = $container.offsetWidth
const $wrapper = this.$refs.scrollWrapper
const $wrapperWidth = $wrapper.offsetWidth
if (eventDelta > 0) {
this.left = Math.min(0, this.left + eventDelta)
} else {
if ($containerWidth - padding < $wrapperWidth) {
if (this.left < -($wrapperWidth - $containerWidth + padding)) {
this.left = this.left
} else {
this.left = Math.max(this.left + eventDelta, $containerWidth - $wrapperWidth - padding)
}
} else {
this.left = 0
}
}
},
moveToTarget($target) {
const $container = this.$refs.scrollContainer
const $containerWidth = $container.offsetWidth
const $targetLeft = $target.offsetLeft
const $targetWidth = $target.offsetWidth
if ($targetLeft < -this.left) {
// tag in the left
this.left = -$targetLeft + padding
} else if ($targetLeft + padding > -this.left && $targetLeft + $targetWidth < -this.left + $containerWidth - padding) {
// tag in the current view
// eslint-disable-line
} else {
// tag in the right
this.left = -($targetLeft - ($containerWidth - $targetWidth) + padding)
}
}
}
}
</script>
<style rel="stylesheet/scss" lang="scss" scoped>
.scroll-container {
white-space: nowrap;
position: relative;
overflow: hidden;
width: 100%;
.scroll-wrapper {
position: absolute;
}
}
</style>

View File

@@ -0,0 +1,43 @@
<template>
<svg :class="svgClass" aria-hidden="true">
<use :xlink:href="iconName"/>
</svg>
</template>
<script>
export default {
name: 'SvgIcon',
props: {
iconClass: {
type: String,
required: true
},
className: {
type: String,
default: ''
}
},
computed: {
iconName() {
return `#icon-${this.iconClass}`
},
svgClass() {
if (this.className) {
return 'svg-icon ' + this.className
} else {
return 'svg-icon'
}
}
}
}
</script>
<style scoped>
.svg-icon {
width: 1em;
height: 1em;
vertical-align: -0.15em;
fill: currentColor;
overflow: hidden;
}
</style>

370
src/icon/demo.css Normal file
View File

@@ -0,0 +1,370 @@
*{margin: 0;padding: 0;list-style: none;}
/*
KISSY CSS Reset
理念1. reset 的目的不是清除浏览器的默认样式,这仅是部分工作。清除和重置是紧密不可分的。
2. reset 的目的不是让默认样式在所有浏览器下一致,而是减少默认样式有可能带来的问题。
3. reset 期望提供一套普适通用的基础样式。但没有银弹,推荐根据具体需求,裁剪和修改后再使用。
特色1. 适应中文2. 基于最新主流浏览器。
维护:玉伯<lifesinger@gmail.com>, 正淳<ragecarrier@gmail.com>
*/
/** 清除内外边距 **/
body, h1, h2, h3, h4, h5, h6, hr, p, blockquote, /* structural elements 结构元素 */
dl, dt, dd, ul, ol, li, /* list elements 列表元素 */
pre, /* text formatting elements 文本格式元素 */
form, fieldset, legend, button, input, textarea, /* form elements 表单元素 */
th, td /* table elements 表格元素 */ {
margin: 0;
padding: 0;
}
/** 设置默认字体 **/
body,
button, input, select, textarea /* for ie */ {
font: 12px/1.5 tahoma, arial, \5b8b\4f53, sans-serif;
}
h1, h2, h3, h4, h5, h6 { font-size: 100%; }
address, cite, dfn, em, var { font-style: normal; } /* 将斜体扶正 */
code, kbd, pre, samp { font-family: courier new, courier, monospace; } /* 统一等宽字体 */
small { font-size: 12px; } /* 小于 12px 的中文很难阅读,让 small 正常化 */
/** 重置列表元素 **/
ul, ol { list-style: none; }
/** 重置文本格式元素 **/
a { text-decoration: none; }
a:hover { text-decoration: underline; }
/** 重置表单元素 **/
legend { color: #000; } /* for ie6 */
fieldset, img { border: 0; } /* img 搭车:让链接里的 img 无边框 */
button, input, select, textarea { font-size: 100%; } /* 使得表单元素在 ie 下能继承字体大小 */
/* 注optgroup 无法扶正 */
/** 重置表格元素 **/
table { border-collapse: collapse; border-spacing: 0; }
/* 清除浮动 */
.ks-clear:after, .clear:after {
content: '\20';
display: block;
height: 0;
clear: both;
}
.ks-clear, .clear {
*zoom: 1;
}
.main {
padding: 30px 100px;
width: 960px;
margin: 0 auto;
}
.main h1{font-size:36px; color:#333; text-align:left;margin-bottom:30px; border-bottom: 1px solid #eee;}
.helps{margin-top:40px;}
.helps pre{
padding:20px;
margin:10px 0;
border:solid 1px #e7e1cd;
background-color: #fffdef;
overflow: auto;
}
.icon_lists{
width: 100% !important;
}
.icon_lists li{
float:left;
width: 100px;
height:180px;
text-align: center;
list-style: none !important;
}
.icon_lists .icon{
font-size: 42px;
line-height: 100px;
margin: 10px 0;
color:#333;
-webkit-transition: font-size 0.25s ease-out 0s;
-moz-transition: font-size 0.25s ease-out 0s;
transition: font-size 0.25s ease-out 0s;
}
.icon_lists .icon:hover{
font-size: 100px;
}
.markdown {
color: #666;
font-size: 14px;
line-height: 1.8;
}
.highlight {
line-height: 1.5;
}
.markdown img {
vertical-align: middle;
max-width: 100%;
}
.markdown h1 {
color: #404040;
font-weight: 500;
line-height: 40px;
margin-bottom: 24px;
}
.markdown h2,
.markdown h3,
.markdown h4,
.markdown h5,
.markdown h6 {
color: #404040;
margin: 1.6em 0 0.6em 0;
font-weight: 500;
clear: both;
}
.markdown h1 {
font-size: 28px;
}
.markdown h2 {
font-size: 22px;
}
.markdown h3 {
font-size: 16px;
}
.markdown h4 {
font-size: 14px;
}
.markdown h5 {
font-size: 12px;
}
.markdown h6 {
font-size: 12px;
}
.markdown hr {
height: 1px;
border: 0;
background: #e9e9e9;
margin: 16px 0;
clear: both;
}
.markdown p,
.markdown pre {
margin: 1em 0;
}
.markdown > p,
.markdown > blockquote,
.markdown > .highlight,
.markdown > ol,
.markdown > ul {
width: 80%;
}
.markdown ul > li {
list-style: circle;
}
.markdown > ul li,
.markdown blockquote ul > li {
margin-left: 20px;
padding-left: 4px;
}
.markdown > ul li p,
.markdown > ol li p {
margin: 0.6em 0;
}
.markdown ol > li {
list-style: decimal;
}
.markdown > ol li,
.markdown blockquote ol > li {
margin-left: 20px;
padding-left: 4px;
}
.markdown code {
margin: 0 3px;
padding: 0 5px;
background: #eee;
border-radius: 3px;
}
.markdown pre {
border-radius: 6px;
background: #f7f7f7;
padding: 20px;
}
.markdown pre code {
border: none;
background: #f7f7f7;
margin: 0;
}
.markdown strong,
.markdown b {
font-weight: 600;
}
.markdown > table {
border-collapse: collapse;
border-spacing: 0px;
empty-cells: show;
border: 1px solid #e9e9e9;
width: 95%;
margin-bottom: 24px;
}
.markdown > table th {
white-space: nowrap;
color: #333;
font-weight: 600;
}
.markdown > table th,
.markdown > table td {
border: 1px solid #e9e9e9;
padding: 8px 16px;
text-align: left;
}
.markdown > table th {
background: #F7F7F7;
}
.markdown blockquote {
font-size: 90%;
color: #999;
border-left: 4px solid #e9e9e9;
padding-left: 0.8em;
margin: 1em 0;
font-style: italic;
}
.markdown blockquote p {
margin: 0;
}
.markdown .anchor {
opacity: 0;
transition: opacity 0.3s ease;
margin-left: 8px;
}
.markdown .waiting {
color: #ccc;
}
.markdown h1:hover .anchor,
.markdown h2:hover .anchor,
.markdown h3:hover .anchor,
.markdown h4:hover .anchor,
.markdown h5:hover .anchor,
.markdown h6:hover .anchor {
opacity: 1;
display: inline-block;
}
.markdown > br,
.markdown > p > br {
clear: both;
}
.hljs {
display: block;
background: white;
padding: 0.5em;
color: #333333;
overflow-x: auto;
}
.hljs-comment,
.hljs-meta {
color: #969896;
}
.hljs-string,
.hljs-variable,
.hljs-template-variable,
.hljs-strong,
.hljs-emphasis,
.hljs-quote {
color: #df5000;
}
.hljs-keyword,
.hljs-selector-tag,
.hljs-type {
color: #a71d5d;
}
.hljs-literal,
.hljs-symbol,
.hljs-bullet,
.hljs-attribute {
color: #0086b3;
}
.hljs-section,
.hljs-name {
color: #63a35c;
}
.hljs-tag {
color: #333333;
}
.hljs-title,
.hljs-attr,
.hljs-selector-id,
.hljs-selector-class,
.hljs-selector-attr,
.hljs-selector-pseudo {
color: #795da3;
}
.hljs-addition {
color: #55a532;
background-color: #eaffea;
}
.hljs-deletion {
color: #bd2c00;
background-color: #ffecec;
}
.hljs-link {
text-decoration: underline;
}
pre{
background: #fff;
}

30
src/icon/iconfont.css Normal file
View File

@@ -0,0 +1,30 @@
@font-face {font-family: "fontFamily";
src: url('iconfont.eot?t=1527493375212'); /* IE9*/
src: url('iconfont.eot?t=1527493375212#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAAAXoAAsAAAAACHwAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADMAAABCsP6z7U9TLzIAAAE8AAAARAAAAFZW7kf3Y21hcAAAAYAAAABjAAABnM7GacRnbHlmAAAB5AAAAfsAAAIsdf0weGhlYWQAAAPgAAAALwAAADYRguv+aGhlYQAABBAAAAAcAAAAJAfeA4VobXR4AAAELAAAABAAAAAQD+kAAGxvY2EAAAQ8AAAACgAAAAoBjAC6bWF4cAAABEgAAAAfAAAAIAEaAF1uYW1lAAAEaAAAAVMAAAKFV8s9R3Bvc3QAAAW8AAAAKgAAADsY6RIYeJxjYGRgYOBikGPQYWB0cfMJYeBgYGGAAJAMY05meiJQDMoDyrGAaQ4gZoOIAgCKIwNPAHicY2Bk/sU4gYGVgYOpk+kMAwNDP4RmfM1gxMjBwMDEwMrMgBUEpLmmMDgwVDzjZm7438AQw9zA0AAUZgTJAQAk0wx5eJzFkNENgCAMRK+ChIij+GkcyC9HYOKugdfCDxNw5JX2ckkJAHYAgVwkAvJBYHrpivsBh/sRD+fMs/GumrS0NnUm8UT2LlhSEpZJ1q2edXq9x2T/XQd8oqaO+Vo62H4fLw+3AHicLZC/b9NAFMffu6udpM0PbMdx4jQ/LhfXoDRBtpN2IGkXkArNgNQpKkiNYlSBRNd2YKiQEB0YWFDFCkiIiYEfytAJVbDTv6CFjYXSFhbsckE53dP3fZ/e6X3egQRwfkj3aBY0uAgOXIWbACjXsJIkBWR2s0FqqDNJN9JJanObRXilQTtoVOR0xp1rzhhyRE5hEovoMXfObhAbW80FcgXdTAExlzdXVGtapU9xMmsXH4U3yAvUS3w6tVAPr88upt2yFt2Mq2pOVZ9EZUmKEjKRSuJ9IxOTYpNy+EpKmfpe6RIpYTxnm91eopxX+zvNjYJlxBC3t1HLl5OvFxVTEfeBmdHUXORCIpo1E7yaxs3vU1ktXpj5BuJExK7P6A/agwmIQhxyUAAGltiXKUyxmM5GicaF4Yqns5ZnoCjqns5RBK0GlO4Hy7gTbuFRcESKu6vBvdVdAurL4DF2w/cHB1jvdGjvb5uy9Q/B3VFt1E27x8cPw2vtdpt83QIxGc6f0190A6hgmoKU+HsD8lACDpfBg3kAQ4AYo5ljRcFEecuTRG6NeSzeEpj/QTkVfl5EFofh0trp6dpY8RMOBycnwbLrkpLjBIdC3w1+zvaxduez73/x/XUc3jrDjzi8/RtXwiXx7u2Z7zhOmHbq+8JXB3/CN/1+H+AfnVR/vQB4nGNgZGBgAOLuWSW34/ltvjJwszCAwHXDy/8R9P+pLAzMeUAuBwMTSBQAWOoL7AB4nGNgZGBgbvjfwBDDwgACQJKRARWwAABHCgJtBAAAAAPpAAAEAAAABAAAAAAAAAAAdgC6ARYAAHicY2BkYGBgYQhk4GEAASYg5gJCBob/YD4DABGzAXgAeJxtkk1uwjAQhZ/LT9UgddHSdlmvWBQp/CzZooZlJRbsQ3AgKIkjxyDRXQ/Q8/QQPUE3vUHv0EcwQkIk8uibN2/GthIAd/iFwOF54DqwgMfswFe4xrPjGvWO4zq577iBFkaOm9RfHXvo4s1xC/d45wRRv2H2gk/HAm18Ob7CLb4d16j/OK6T/xw38CiE4yba4smxh5noOm6hIz68sVGhVQs538kk0nmsc+vtQxBmSbqbquUmDc1JONFMmTLRuRz4/ZM4Ubkyx3nldjm0Npax0ZkM6FFpqmVh9FpF1l9ZW4x6vdjpfqQzHm8MA4UQlnEBiTl2jAkiaOSIq2jpO1JAb8Z6St+UPUtsyCGnXHJc0mbsMiiZ7WsSA/j8ZJecEzrzyn1+vhJb7jykatkpuQz7M1Lg5ihOSMkSRVVbU4mo+1hVXQV/jR7f+MzvVzfP/gHCFnRdAHicY2BigAAuBuyAhZGJkZmRhZGVgbGCycCSI7WoPDUzN9GQgQEAJkQEKgAA') format('woff'),
url('iconfont.ttf?t=1527493375212') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/
url('iconfont.svg?t=1527493375212#fontFamily') format('svg'); /* iOS 4.1- */
}
.fontFamily {
font-family:"fontFamily" !important;
font-size:16px;
font-style:normal;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
[class^="el-icon-cjn"], [class*=" el-icon-cjn"] {
font-family:"fontFamily" !important;
/* 以下内容参照第三方图标库本身的规则 */
font-size: 13px;
font-style:normal;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.el-icon-cjn-09:before { content: "\e60b"; }
.el-icon-cjn-erweima1:before { content: "\e606"; }

BIN
src/icon/iconfont.eot Normal file

Binary file not shown.

1
src/icon/iconfont.js Normal file
View File

@@ -0,0 +1 @@
(function(window) { var svgSprite = '<svg><symbol id="el-icon-cjn-09" viewBox="0 0 1024 1024"><path d="M804.141176 39.152941H39.152941v963.764706h963.764706V201.788235l-198.776471-162.635294z m-493.929411 60.235294h391.529411v180.705883h-391.529411v-180.705883z m481.882353 843.294118h-542.117647v-331.294118h542.117647v331.294118z m150.588235 0h-90.352941v-391.529412h-662.588236v391.529412h-90.352941v-843.294118h150.588236v240.941177h512v-240.941177h18.070588l162.635294 129.505883v713.788235z" fill="#2c2c2c" ></path><path d="M310.211765 671.623529h331.294117v60.235295h-331.294117zM310.211765 792.094118h210.823529v60.235294h-210.823529zM611.388235 129.505882h60.235294v120.470589h-60.235294z" fill="#2c2c2c" ></path></symbol><symbol id="el-icon-cjn-erweima1" viewBox="0 0 1024 1024"><path d="M23.92225303 998.84837371l439.58598408 0L463.50823711 559.26238962 23.92225303 559.26238962 23.92225303 998.84837371zM119.78212494 651.01398129l243.75796004 0 0 245.12738674L119.78212494 896.14136803 119.78212494 651.01398129z" ></path><path d="M23.92225303 457.92481072l439.58598408 0 0-439.58598412L23.92225303 18.33882658 23.92225303 457.92481072zM119.78212494 111.45984508l243.75796004 0 0 245.12738672L119.78212494 356.5872318 119.78212494 111.45984508z" ></path><path d="M570.32352297 18.33882658l0 439.58598414L1009.90950704 457.92481072l0-439.58598412L570.32352297 18.33882658zM911.31078166 355.21780509L667.55282162 355.21780509l0-245.12738681 243.75796004 0L911.31078166 355.21780509z" ></path><path d="M218.38085034 210.05857039l49.29936273 0 0 49.29936276-49.29936273 0 0-49.29936276Z" ></path><path d="M760.67384005 210.05857039l49.29936271 0 0 49.29936276-49.29936273 0 0-49.29936276Z" ></path><path d="M218.38085034 750.98213347l49.29936273 0 0 49.29936266-49.29936273 0 0-49.29936266Z" ></path><path d="M908.57192818 755.09041369L809.97320276 755.09041369 809.97320276 559.26238962 570.32352297 559.26238962 570.32352297 998.84837371 614.14517874 998.84837371 614.14517874 707.16047766 711.37447735 707.16047766 711.37447735 805.75920314 1009.90950704 805.75920314 1009.90950704 559.26238962 908.57192818 559.26238962Z" ></path><path d="M711.37447735 901.61907503l99.96815218 0 0 97.22929868-99.96815218 0 0-97.22929868Z" ></path><path d="M909.94135491 901.61907503l99.96815213 0 0 97.22929868-99.96815213 0 0-97.22929868Z" ></path></symbol></svg>'; var script = (function() { var scripts = document.getElementsByTagName('script'); return scripts[scripts.length - 1] }()); var shouldInjectCss = script.getAttribute('data-injectcss'); var ready = function(fn) { if (document.addEventListener) { if (~['complete', 'loaded', 'interactive'].indexOf(document.readyState)) { setTimeout(fn, 0) } else { var loadFn = function() { document.removeEventListener('DOMContentLoaded', loadFn, false); fn() }; document.addEventListener('DOMContentLoaded', loadFn, false) } } else if (document.attachEvent) { IEContentLoaded(window, fn) } function IEContentLoaded(w, fn) { var d = w.document, done = false, init = function() { if (!done) { done = true; fn() } }; var polling = function() { try { d.documentElement.doScroll('left') } catch (e) { setTimeout(polling, 50); return }init() }; polling(); d.onreadystatechange = function() { if (d.readyState == 'complete') { d.onreadystatechange = null; init() } } } }; var before = function(el, target) { target.parentNode.insertBefore(el, target) }; var prepend = function(el, target) { if (target.firstChild) { before(el, target.firstChild) } else { target.appendChild(el) } }; function appendSvg() { var div, svg; div = document.createElement('div'); div.innerHTML = svgSprite; svgSprite = null; svg = div.getElementsByTagName('svg')[0]; if (svg) { svg.setAttribute('aria-hidden', 'true'); svg.style.position = 'absolute'; svg.style.width = 0; svg.style.height = 0; svg.style.overflow = 'hidden'; prepend(svg, document.body) } } if (shouldInjectCss && !window.__iconfont__svg__cssinject__) { window.__iconfont__svg__cssinject__ = true; try { document.write('<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>') } catch (e) { console && console.log(e) } }ready(appendSvg) })(window)

39
src/icon/iconfont.svg Normal file
View File

@@ -0,0 +1,39 @@
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
<!--
2013-9-30: Created.
-->
<svg>
<metadata>
Created by iconfont
</metadata>
<defs>
<font id="fontFamily" horiz-adv-x="1024" >
<font-face
font-family="fontFamily"
font-weight="500"
font-stretch="normal"
units-per-em="1024"
ascent="896"
descent="-128"
/>
<missing-glyph />
<glyph glyph-name="x" unicode="x" horiz-adv-x="1001"
d="M281 543q-27 -1 -53 -1h-83q-18 0 -36.5 -6t-32.5 -18.5t-23 -32t-9 -45.5v-76h912v41q0 16 -0.5 30t-0.5 18q0 13 -5 29t-17 29.5t-31.5 22.5t-49.5 9h-133v-97h-438v97zM955 310v-52q0 -23 0.5 -52t0.5 -58t-10.5 -47.5t-26 -30t-33 -16t-31.5 -4.5q-14 -1 -29.5 -0.5
t-29.5 0.5h-32l-45 128h-439l-44 -128h-29h-34q-20 0 -45 1q-25 0 -41 9.5t-25.5 23t-13.5 29.5t-4 30v167h911zM163 247q-12 0 -21 -8.5t-9 -21.5t9 -21.5t21 -8.5q13 0 22 8.5t9 21.5t-9 21.5t-22 8.5zM316 123q-8 -26 -14 -48q-5 -19 -10.5 -37t-7.5 -25t-3 -15t1 -14.5
t9.5 -10.5t21.5 -4h37h67h81h80h64h36q23 0 34 12t2 38q-5 13 -9.5 30.5t-9.5 34.5q-5 19 -11 39h-368zM336 498v228q0 11 2.5 23t10 21.5t20.5 15.5t34 6h188q31 0 51.5 -14.5t20.5 -52.5v-227h-327z" />
<glyph glyph-name="09" unicode="&#58891;" d="M804.141 856.847h-764.988v-963.765h963.765v801.129l-198.776 162.635zM310.212 796.612h391.529v-180.706h-391.529v180.706zM792.094-46.682h-542.118v331.294h542.118v-331.294zM942.682-46.682h-90.353v391.529h-662.588v-391.529h-90.353v843.294h150.588v-240.941h512v240.941h18.071l162.635-129.506v-713.788zM310.212 224.376h331.294v-60.235h-331.294zM310.212 103.906h210.824v-60.235h-210.824zM611.388 766.494h60.235v-120.471h-60.235z" horiz-adv-x="1024" />
<glyph glyph-name="erweima1" unicode="&#58886;" d="M23.92225303-102.84837371000003l439.58598408 0L463.50823711 336.73761038 23.92225303 336.73761038 23.92225303-102.84837371000003zM119.78212494 244.98601871000005l243.75796004 0 0-245.12738674L119.78212494-0.1413680299999669 119.78212494 244.98601871000005zM23.92225303 438.07518928l439.58598408 0 0 439.58598412L23.92225303 877.66117342 23.92225303 438.07518928zM119.78212494 784.54015492l243.75796004 0 0-245.12738672L119.78212494 539.4127682000001 119.78212494 784.54015492zM570.32352297 877.66117342l0-439.58598414L1009.90950704 438.07518928l0 439.58598412L570.32352297 877.66117342zM911.31078166 540.78219491L667.55282162 540.78219491l0 245.12738681 243.75796004 0L911.31078166 540.78219491zM218.38085034 685.94142961l49.29936273 0 0-49.29936276-49.29936273 0 0 49.29936276ZM760.67384005 685.94142961l49.29936271 0 0-49.29936276-49.29936273 0 0 49.29936276ZM218.38085034 145.01786653l49.29936273 0 0-49.29936266-49.29936273 0 0 49.29936266ZM908.57192818 140.90958631L809.97320276 140.90958631 809.97320276 336.73761038 570.32352297 336.73761038 570.32352297-102.84837371000003 614.14517874-102.84837371000003 614.14517874 188.83952234000003 711.37447735 188.83952234000003 711.37447735 90.24079686000005 1009.90950704 90.24079686000005 1009.90950704 336.73761038 908.57192818 336.73761038ZM711.37447735-5.619075029999976l99.96815218 0 0-97.22929868-99.96815218 0 0 97.22929868ZM909.94135491-5.619075029999976l99.96815213 0 0-97.22929868-99.96815213 0 0 97.22929868Z" horiz-adv-x="1024" />
</font>
</defs></svg>

After

Width:  |  Height:  |  Size: 3.2 KiB

BIN
src/icon/iconfont.ttf Normal file

Binary file not shown.

BIN
src/icon/iconfont.woff Normal file

Binary file not shown.

9
src/icons/index.js Normal file
View File

@@ -0,0 +1,9 @@
import Vue from 'vue'
import SvgIcon from '@/components/SvgIcon' // svg组件
// register globally
Vue.component('svg-icon', SvgIcon)
const requireAll = requireContext => requireContext.keys().map(requireContext)
const req = require.context('./svg', false, /\.svg$/)
requireAll(req)

View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><path d="M500 10C229.4 10 10 229.4 10 500s219.4 490 490 490 490-219.4 490-490S770.6 10 500 10zM393.9 313.3L555.7 220c12.7-7.3 29.2-2.9 36.5 9.7 7.3 12.7 2.9 29-9.8 36.5l-161.8 93.5c-12.7 7.3-29 2.9-36.3-9.8-7.4-13-3.1-29.3 9.6-36.6zm295.3 137.6l-161.8 93.3-93.3-161.8 161.8-93.3 93.3 161.8zM157.1 650.3c-11-19.2-4.5-43.7 14.7-54.7l295.6-155.2 26.7 46.3L211.8 665c-19.1 11-43.7 4.5-54.7-14.7zM785 783.7H438l-1.3-25.5 26.2-1.2s1.6-11.9 1.6-26.7c0-14.8 12-26.7 26.7-26.7h240.2c14.8 0 26.7 11.9 26.7 26.7V757l27.5-.6-.6 27.3zm-55.7-263.3l-161.9 93.3c-12.7 7.3-29.2 2.9-36.5-9.8-7.3-12.7-2.9-29.2 9.7-36.5l161.8-93.3c12.7-7.3 29.2-2.9 36.5 9.8 7.6 12.7 3.2 29-9.6 36.5z"/></svg>

After

Width:  |  Height:  |  Size: 737 B

1
src/icons/svg/CRM.svg Normal file
View File

@@ -0,0 +1 @@
<svg class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="200" height="200"><defs><style/></defs><path d="M847.5 960.3H175c-32.5 0-17.8-44.8-17.8-44.8 21.3-159.3 116.9-289.1 243.5-337.8-93.2-42.1-158.2-135.6-158.4-244.4-.3-148.4 120.6-269.6 269-269.6 148.6 0 269 120.4 269 269 0 109.1-65.1 202.8-158.4 245C748.3 626.4 844 756.2 865.3 915.5c0 0 18.8 44.8-17.8 44.8zM467.4 824.8l31.2 81.7c6.5 11.3 17 11.3 23.6 0l31.2-81.7c3.9-15.7 3.4-30 0-40.8l-31.2-129c-6.5-11.3-17.1-11.3-23.6 0l-31.2 129c-3 11.7-3.6 26.5 0 40.8zm123.4-266.9H430.5c-12.6 13.2-12.6 34.7 0 47.9l57.2 30.4c12.6 13.2 33.2 13.2 45.8 0l57.3-30.4c12.6-13.2 12.6-34.7 0-47.9z"/></svg>

After

Width:  |  Height:  |  Size: 671 B

View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><path d="M549.9 662.2v113.4c21.3-11.5 32.8-31.1 32.8-55.8 0-24.8-10.2-42.7-32.8-57.6M456.1 524.5c0 21.3 8.1 36.2 25.6 49v-95.1c-17.9 11.6-25.6 29.5-25.6 46.1"/><path d="M586.1 245.3c55.4-55 91.2-147.5 100.2-172.2 4.3-11.9.9-25.6-9-33.7-9.8-8.1-23.9-9.4-35-3.4-.4 0-33.2 18.3-63.5 18.3-5.1 0-6.8-.9-16.6-11.9C550.7 29.6 533.2 10 500 10s-50.7 19.6-62.2 32.4c-9.8 11.1-11.5 11.9-16.2 11.9-30.3 0-63.1-17.9-63.1-18.3-11.1-6.4-25.1-4.7-35 3.4-9.8 8.1-13.2 21.7-9 33.7 9 24.7 44.8 117.2 100.2 172.2C247.2 313.9 81 557.3 81 719.3 81 958 292.8 990 500 990s419-32 419-270.7c0-162-166.2-405.4-332.9-474M549.9 822v49.4h-68.2v-43.1c-33.3-2.6-66.5-12.8-84.8-25.2l13.2-42.6c18.8 11.9 43.9 21.3 71.6 24.3V630.7c-48.2-22.6-76.7-54.1-76.7-100.6s29.4-83.5 76.7-98.9v-50.3h68.2V424c30.7 2.1 54.1 10.2 68.2 18.3L604 483.6c-9.8-6-29-14.5-54.6-17.5v139.8c55.8 25.2 84 55.8 84 108.7.4 48.2-26.8 91.2-83.5 107.4"/></svg>

After

Width:  |  Height:  |  Size: 960 B

View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><path d="M23.85 26.83c-3.46 2.12-7.89 6.54-10 10C10 43.18 10 47.6 10 500c0 452.4 0 456.82 3.85 463.17 2.12 3.46 6.54 7.89 10 10 6.35 3.85 10.58 3.85 362.38 3.85h356.03l6.54-4.42c13.85-9.04 13.27-4.04 12.89-137.91l-.58-119.83-26.35 28.28-26.55 28.26v151.77H63.86V76.84h644.36l.39 189.65.58 189.46 26.54-37.7 26.35-37.7V212.83c0-187.15.77-176.19-13.27-185.42l-6.54-4.42H386.23c-351.8-.01-356.03-.01-362.38 3.84z"/><path d="M154.64 210.71c-3.85 2.69-4.23 4.62-4.23 18.85 0 13.08.58 16.54 3.46 19.04 3.27 3.08 22.12 3.27 231.39 3.27 203.12 0 228.31-.39 232.16-3.08 3.85-2.5 4.23-4.62 4.23-18.27 0-25.77 29.04-22.89-235.24-22.89-202.72 0-227.92.39-231.77 3.08zM905.75 251.87c-10.58 2.69-25 10.58-32.51 17.7-4.81 4.62-245.24 345.65-254.09 360.45-2.31 3.85-34.04 150.61-34.04 157.34 0 7.69 4.04 11.54 9.81 9.81 2.31-.77 34.43-20.58 71.17-44.05l66.94-42.51 124.44-177.72c68.48-97.9 126.18-181.77 128.49-186.57 3.08-6.92 3.85-12.89 4.04-26.16 0-15.77-.58-18.66-6.16-30.01-11.54-23.27-32.89-37.7-57.7-39.24-7.12-.38-16.35 0-20.39.96zm-25.39 124.64c12.69 8.85 24.23 17.12 25.58 18.47 1.73 1.73-17.89 31.16-93.67 139.45-52.7 75.4-96.56 137.14-97.33 137.14-.77.19-13.46-8.27-28.08-18.47l-26.74-18.66 12.89-18.85c97.71-140.41 180.8-257.36 182.34-256.4.97.59 12.32 8.48 25.01 17.32zM682.63 694.27c4.23 3.27 3.85 3.46-21.93 19.81-14.43 9.23-26.54 16.35-26.93 15.96-.58-.38 5.58-29.62 11.93-56.55.96-4.23 1.73-4.04 16.93 6.54 8.65 6.16 17.69 12.51 20 14.24zM154.26 346.12c-5.39 5.39-5.58 32.31-.39 37.12 3.27 3.08 22.12 3.27 232.55 3.27 264.09 0 235.24 2.69 235.24-21.73 0-25.2 28.85-22.5-235.62-22.5-225.43 0-227.93 0-231.78 3.84zM157.14 479.23c-5.96 3.46-6.73 5.39-6.73 20.77 0 7.89.77 15.39 1.54 16.54 4.23 6.35 7.89 6.54 234.66 6.54 262.75 0 235.05 2.69 235.05-23.08s27.7-23.08-235.43-23.08c-164.27.19-226.2.77-229.09 2.31zM163.88 613.1c-11.35 1.16-13.46 4.62-13.46 21.93 0 24.81-11.35 22.7 117.33 22.7s117.33 2.12 117.33-22.7c0-23.85 10.39-21.73-110.98-22.12-56.94-.2-106.57-.2-110.22.19zM552.41 673.11c-1.54.77-13.66 23.27-26.93 49.82-13.27 26.54-24.43 48.28-25.01 48.28s-5.96-10-12.12-22.12c-8.08-16.54-12.31-22.7-15.77-24.04-9.62-3.66-13.66.19-25.39 24.04-6.15 12.12-11.54 22.12-12.12 22.12s-5.96-10-12.12-22.12c-11.73-23.85-15.77-27.7-25.39-24.04-3.46 1.35-7.69 7.5-15.77 24.04-6.15 12.12-11.54 22.12-12.12 22.12s-5.96-10-12.12-22.12c-11.73-23.85-15.77-27.7-25.39-24.04-3.46 1.35-7.69 7.5-15.77 24.04-6.15 12.12-11.54 22.12-12.12 22.12s-5.96-10-12.12-22.12c-8.27-16.93-12.12-22.7-15.96-24.04-10.96-4.23-13.08-1.35-46.36 64.44-17.12 33.85-31.16 63.86-31.35 66.74 0 10 11.54 16.35 20.77 11.35 1.73-.96 14.04-23.46 27.31-50.01 13.27-26.54 24.43-48.28 25-48.28s6.16 10.19 12.5 22.7c9.23 18.08 12.5 22.7 16.16 23.08 10.77 1.54 13.27-.77 24.62-23.66 6.15-12.12 11.54-22.12 12.12-22.12s6.16 10.19 12.5 22.7c9.23 18.08 12.5 22.7 16.16 23.08 10.77 1.54 13.27-.77 24.62-23.66 6.15-12.12 11.54-22.12 12.12-22.12s6.16 10.19 12.5 22.7l11.54 22.5h17.32l11.54-22.5c6.35-12.5 11.93-22.7 12.5-22.7s6.16 10.19 12.5 22.7l11.54 22.5h17.32l32.12-63.47c17.7-35.01 32.12-65.4 32.31-67.9.21-8.86-12.67-15.2-21.14-10.01z"/></svg>

After

Width:  |  Height:  |  Size: 3.1 KiB

View File

@@ -0,0 +1 @@
<svg class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="200" height="200"><defs><style/></defs><path d="M692 136.1V67.9H332v68.2H117v820h378.9v-50H167v-720h165v61.8h360v-61.8h165V548h50V136.1H692zm-50 61.8H382v-80h260v80zM287 525.8h280v50H287v-50zm450-100.7H287v-50h450v50zm5 316h165v50H742v165h-50v-165H527v-50h165v-165h50v165z"/></svg>

After

Width:  |  Height:  |  Size: 365 B

View File

@@ -0,0 +1 @@
<svg class="icon" viewBox="0 0 1265 1024" xmlns="http://www.w3.org/2000/svg" width="247.07" height="200"><defs><style/></defs><path d="M1025.725 311.892A401.37 401.37 0 0 0 298.08 182.418a310.738 310.738 0 0 0 25.895 621.476 51.79 51.79 0 0 0 0-103.58 207.159 207.159 0 0 1 0-414.317h16.314l5.179-1.553 4.402-1.813 4.66-2.59 3.885-2.589a25.895 25.895 0 0 0 4.143-3.107 41.173 41.173 0 0 1 3.367-3.367 20.457 20.457 0 0 0 3.107-3.884 22.787 22.787 0 0 0 3.107-4.402l1.295-1.813A298.05 298.05 0 0 1 930.95 371.45v1.554a6.215 6.215 0 0 0 0 2.072c0 2.59 0 5.179 1.812 7.768v1.554a51.79 51.79 0 0 0 3.626 7.768 51.79 51.79 0 0 0 5.696 7.51 51.79 51.79 0 0 0 38.325 17.35h8.027a133.876 133.876 0 0 1 21.752-1.554 142.422 142.422 0 0 1 0 284.843h-38.842a51.79 51.79 0 0 0 0 103.579h38.842a245.742 245.742 0 0 0 15.537-492.002z"/><path d="M682.877 491.602a35.735 35.735 0 0 0-12.17-8.027 41.95 41.95 0 0 0-13.984-2.59 37.806 37.806 0 0 0-14.242 2.849 38.842 38.842 0 0 0-13.206 9.063L475.719 646.453a38.842 38.842 0 0 0 27.448 66.291 39.62 39.62 0 0 0 25.636-12.43l87.525-87.783v372.627a38.842 38.842 0 0 0 77.684 0V612.79l87.784 87.525a38.842 38.842 0 1 0 54.897-55.156z"/></svg>

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@@ -0,0 +1 @@
<svg class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="200" height="200"><defs><style/></defs><path d="M890.393 720.928h-64.604v-56.966c0-6.303-5.211-11.151-11.391-11.151h-140.24v-45.693h64.481c10.544 0 18.787-8.487 18.787-18.908V436.575c0-8.076-4.841-14.925-11.84-17.699a18.42 18.42 0 0 0-8.352-1.999H672.63v-56.966c0-6.303-5.212-11.151-11.392-11.151H521v-45.694h64.482c10.544 0 18.786-8.487 18.786-18.908V132.525c0-10.547-8.242-19.028-18.786-19.028H433.853c-10.667 0-19.154 8.481-19.154 19.028v151.633c0 10.421 8.487 18.908 19.154 18.908h64.237v45.694H357.853c-6.303 0-11.15 4.848-11.15 11.151v56.966H282.1c-10.666 0-19.031 8.487-19.031 19.035v151.627c0 9.867 7.496 17.986 17.34 18.83a19.47 19.47 0 0 0 5.318.748h64.237v45.693H209.726c-6.303 0-11.15 4.849-11.15 11.151v56.966h-64.603c-10.666 0-19.031 8.486-19.031 19.034v151.625c0 10.427 8.365 18.915 19.031 18.915h151.753c10.182 0 18.785-8.488 18.785-18.915V739.962c0-10.548-8.604-19.034-18.785-19.034H221.12v-45.574h278.74v45.574h-64.602c-10.666 0-19.031 8.486-19.031 19.034v151.625c0 10.427 8.365 18.915 19.031 18.915h153.851c10.425 0 18.666-8.488 18.666-18.915V739.962c0-10.548-8.241-19.034-18.666-19.034h-64.606v-45.574H802.88v45.574h-64.24c-10.665 0-19.15 8.486-19.15 19.034v151.625c0 10.427 8.485 18.915 19.15 18.915h151.753c10.425 0 18.667-8.488 18.667-18.915V739.962c0-10.548-8.243-19.034-18.667-19.034zM266.571 758.99v113.57H152.758V758.99h113.813zm339.226-303.387h112.289v112.908H605.797V455.603zM452.639 265.25V151.554h113.692V265.25H452.639zm-37.941 303.261H304.511V455.603h110.188v112.908zM567.855 758.99v113.57H456.142V758.99h111.713zm83.393-106.179H372.873v-45.693h64.481c10.544 0 18.787-8.487 18.787-18.908V436.575c0-9.998-7.412-18.127-17.166-18.947a18.216 18.216 0 0 0-5.124-.75h-64.605v-45.575h280.475v45.575h-64.24c-10.666 0-19.151 8.487-19.151 19.035v151.626c0 8.021 5.03 14.877 12.203 17.621a19.303 19.303 0 0 0 8.475 1.957h64.239v45.694zm219.996 219.75H757.427V758.99h113.817v113.571z"/></svg>

After

Width:  |  Height:  |  Size: 2.0 KiB

View File

@@ -0,0 +1 @@
<svg class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="200" height="200"><defs><style/></defs><path d="M739.556 608.757v-5.735a45.511 45.511 0 0 1 91.022 0v5.735c16.702 4.278 32.495 10.922 46.967 19.478l4.096-4.096a45.511 45.511 0 0 1 64.353 64.399l-4.096 4.05c8.556 14.473 15.2 30.265 19.479 46.968h5.734a45.511 45.511 0 0 1 0 91.022h-5.734c-4.278 16.702-10.923 32.495-19.479 46.967l4.096 4.096a45.511 45.511 0 0 1-64.398 64.353l-4.05-4.096a180.952 180.952 0 0 1-46.968 19.479v5.734a45.511 45.511 0 0 1-91.022 0v-5.734a180.952 180.952 0 0 1-46.968-19.479l-4.096 4.096a45.511 45.511 0 0 1-64.353-64.353l4.096-4.096a180.952 180.952 0 0 1-19.478-46.967h-5.735a45.511 45.511 0 0 1 0-91.022h5.735c4.278-16.703 10.922-32.495 19.478-46.968l-4.096-4.096a45.511 45.511 0 0 1 64.399-64.353l4.05 4.096a180.952 180.952 0 0 1 46.968-19.478zM479.687 876.089H56.89a45.511 45.511 0 0 1-45.511-45.511v-45.511a364.089 364.089 0 0 1 606.8-271.429 318.396 318.396 0 0 0-151.69 271.429c0 31.63 4.598 62.168 13.2 91.022zm-104.22-455.111c-100.58 0-182.045-91.705-182.045-204.8s81.465-204.8 182.045-204.8 182.044 91.705 182.044 204.8-81.465 204.8-182.044 204.8zm409.6 455.11a91.022 91.022 0 1 0 0-182.044 91.022 91.022 0 0 0 0 182.045z"/></svg>

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

@@ -0,0 +1 @@
<svg class="icon" viewBox="0 0 1045 1024" xmlns="http://www.w3.org/2000/svg" width="204.102" height="200"><defs><style/></defs><path d="M229.836 177.192h461.986v57.748H229.836v-57.748zm-1.54 116.063h461.986v57.748H228.297v-57.748zm-113.955-232.5h692.977v461.984h57.748V60.754c0-31.893-25.855-57.748-57.748-57.748H114.34c-31.893 0-57.748 25.855-57.748 57.748v808.473c0 31.893 25.855 57.748 57.748 57.748h404.237v-57.748H114.34V60.754zm115.11 463.486v57.748h140.453c0-20.068 2.94-39.447 8.386-57.748H229.451zm236.111-115.496H228.297v57.748H403.84a203.177 203.177 0 0 1 61.722-57.748zm437.246 464.777L770.39 742.678c30.444-35.382 48.852-81.417 48.852-131.754 0-111.627-90.493-202.119-202.117-202.119-111.626 0-202.118 90.492-202.118 202.119 0 111.624 90.492 202.118 202.118 202.118 40.412 0 78.05-11.867 109.63-32.299l135.218 133.614c11.276 11.276 29.558 11.276 40.834 0 11.274-11.277 11.274-29.558 0-40.835zM472.754 610.924c0-79.734 64.639-144.37 144.372-144.37 79.731 0 144.369 64.636 144.369 144.37 0 79.731-64.638 144.37-144.37 144.37s-144.37-64.639-144.37-144.37z"/></svg>

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><path d="M281.2 119.7s124.7 129.9 109.1 223.5-275.4 83.2-296.2 301.5c-20.8 218.3 78 337.8 233.9 343 155.9 5.2 223.5 0 223.5 0"/><path d="M718.8 119.7S594.1 249.6 609.7 343.2s275.5 83.2 296.2 301.4c20.8 218.3-78 337.8-233.9 343-155.9 5.2-223.5 0-223.5 0"/><path d="M281.2 119.7s83.2 88.4 119.5 98.7c36.4 10.4 31.2-46.8 83.2-49.4s23.9 57.1 92.5 50.6 94.6-42.8 141.4-100c46.8-57.2-64.4-46.8-141.4-31.2-76.9 15.6-27.8-67-74-75-76.2-13.3-49.7 12.7-86.1 54.2-36.3 41.7-135.1 52.1-135.1 52.1zM374.8 348.4s176.7 72.8 265.1 0c11.3-9.3 22.4-18.2 33.4-26.6 75.2-57.3 145.5-88.2 231.7-20.2M639.8 364.6s142.9-45.1 240.4 16.1M515.5 496.3V859 496.3z"/></svg>

After

Width:  |  Height:  |  Size: 707 B

View File

@@ -0,0 +1 @@
<svg class="icon" viewBox="0 0 1025 1024" xmlns="http://www.w3.org/2000/svg" width="200.195" height="200"><defs><style/></defs><path d="M292.63 897.189H162.433c13.141-181.37 164.907-324.91 349.57-324.91 43.34 0 84.868 7.91 123.217 22.356l39.267-39.267c-2.04-.903-4.075-1.81-6.133-2.681a401.237 401.237 0 0 0-34.501-12.76c18.548-10.671 35.812-23.853 51.35-39.39 46.264-46.264 71.742-107.775 71.742-173.202 0-65.428-25.478-126.938-71.742-173.202C638.94 107.869 577.429 82.39 512.002 82.39s-126.937 25.479-173.2 71.743c-46.265 46.264-71.743 107.774-71.743 173.202 0 65.427 25.478 126.938 71.742 173.201 15.538 15.538 32.802 28.719 51.35 39.39a401.237 401.237 0 0 0-34.501 12.76c-47.832 20.232-90.785 49.19-127.664 86.069-36.88 36.88-65.837 79.832-86.068 127.664-20.952 49.536-31.575 102.14-31.575 156.353 0 14.13 11.454 25.584 25.584 25.584H292.63c14.131 0 25.584-11.455 25.584-25.584s-11.454-25.583-25.584-25.583zm25.597-569.853c0-106.849 86.927-193.777 193.776-193.777S705.78 220.487 705.78 327.336s-86.927 193.776-193.776 193.776-193.776-86.928-193.776-193.776zM882.089 766.42c-18.228-43.095-43.56-82.212-75.368-116.513l-36.323 36.323c51.763 56.497 85.305 129.946 91.174 210.959H731.35c-14.13 0-25.584 11.454-25.584 25.584s11.455 25.584 25.584 25.584h156.73c14.13 0 25.584-11.455 25.584-25.584 0-54.212-10.624-106.817-31.575-156.353zm-90.541-215.407c-9.992-9.99-26.19-9.99-36.18 0l-244.121 244.12-107.032-107.03c-9.992-9.99-26.19-9.99-36.18 0-9.992 9.991-9.992 26.19 0 36.18l125.122 125.122c4.996 4.995 11.542 7.493 18.09 7.493s13.096-2.498 18.092-7.493l262.211-262.21c9.989-9.99 9.989-26.19-.002-36.182z"/></svg>

After

Width:  |  Height:  |  Size: 1.6 KiB

1
src/icons/svg/eye.svg Normal file
View File

@@ -0,0 +1 @@
<svg width="128" height="64" xmlns="http://www.w3.org/2000/svg"><path d="M127.072 7.994c1.37-2.208.914-5.152-.914-6.87-2.056-1.717-4.797-1.226-6.396.982-.229.245-25.586 32.382-55.74 32.382-29.24 0-55.74-32.382-55.968-32.627-1.6-1.963-4.57-2.208-6.397-.49C-.17 3.086-.399 6.275 1.2 8.238c.457.736 5.94 7.36 14.62 14.72L4.17 35.96c-1.828 1.963-1.6 5.152.228 6.87.457.98 1.6 1.471 2.742 1.471s2.284-.49 3.198-1.472l12.564-13.983c5.94 4.416 13.021 8.587 20.788 11.53l-4.797 17.418c-.685 2.699.686 5.397 3.198 6.133h1.37c2.057 0 3.884-1.472 4.341-3.68L52.6 42.83c3.655.736 7.538 1.227 11.422 1.227 3.883 0 7.767-.49 11.422-1.227l4.797 17.173c.457 2.208 2.513 3.68 4.34 3.68.457 0 .914 0 1.143-.246 2.513-.736 3.883-3.434 3.198-6.133l-4.797-17.172c7.767-2.944 14.848-7.114 20.788-11.53l12.336 13.738c.913.981 2.056 1.472 3.198 1.472s2.284-.49 3.198-1.472c1.828-1.963 1.828-4.906.228-6.87l-11.65-13.001c9.366-7.36 14.849-14.474 14.849-14.474z"/></svg>

After

Width:  |  Height:  |  Size: 944 B

View File

@@ -0,0 +1 @@
<svg class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="200" height="200"><defs><style/></defs><path d="M780.8 354.58H665.6v-42.89c0-72.31-19.85-193.3-153.6-193.3-138.87 0-153.6 135.05-153.6 193.3v42.89H243.2v-42.89C243.2 122.25 348.79 0 512 0s268.8 122.25 268.8 311.69v42.89zm-192 314.84c0-43.52-34.58-78.65-76.8-78.65s-76.8 35.13-76.8 78.65c0 29.46 15.4 54.47 38.44 67.82v89.64c0 21.74 17.25 39.7 38.4 39.7s38.4-17.96 38.4-39.7v-89.64c23-13.35 38.36-38.36 38.36-67.82zM896 512v393.61c0 65.26-51.87 118.39-115.2 118.39H243.2c-63.291 0-115.2-53.13-115.2-118.39V512c0-65.22 51.87-118.39 115.2-118.39h537.6c63.33 0 115.2 53.17 115.2 118.39z"/></svg>

After

Width:  |  Height:  |  Size: 675 B

View File

@@ -0,0 +1 @@
<svg class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="200" height="200"><defs><style/></defs><path d="M914.286 802.89q0 68.534-41.692 108.25T761.71 950.858H262.29q-69.12 0-110.884-39.716T109.714 802.89q0-30.281 1.975-59.172t7.973-62.318 15.14-62.025 24.576-55.735 35.401-46.3 48.86-30.573 63.707-11.41q5.12 0 23.991 12.287t42.57 27.429 61.732 27.429 76.288 12.288 76.288-12.288 61.732-27.429 42.57-27.429 23.99-12.288q34.89 0 63.708 11.41t48.86 30.574 35.4 46.3 24.576 55.735 15.141 62.025 7.973 62.318 1.974 59.172zM731.429 292.57q0 90.844-64.293 155.136T512 512t-155.136-64.293-64.293-155.136 64.293-155.136T512 73.143t155.136 64.292 64.293 155.136z"/></svg>

After

Width:  |  Height:  |  Size: 690 B

22
src/icons/svgo.yml Normal file
View File

@@ -0,0 +1,22 @@
# replace default config
# multipass: true
# full: true
plugins:
# - name
#
# or:
# - name: false
# - name: true
#
# or:
# - name:
# param1: 1
# param2: 2
- removeAttrs:
attrs:
- 'fill'
- 'fill-rule'

39
src/main.js Normal file
View File

@@ -0,0 +1,39 @@
import Vue from 'vue'
import 'normalize.css/normalize.css' // A modern alternative to CSS resets
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import '@/styles/index.scss' // global css
import App from './App'
import router from './router'
import store from './store'
import echarts from 'echarts'
import '@/icons' // icon
import '@/permission' // permission control
import curd from '@/utils/curd'
import time from 'time-formater'
Vue.use(curd)
Vue.use(ElementUI)
// 处理时间字符串格式全局过滤器 '2018/1/23 00:00:00' to '2018-01-23'
Vue.filter('formatTime', function(value) {
if (!value) return ''
const isTime = /^\d{4}([-\/.])\d{1,2}\1\d{1,2}/
if (!isTime.test(value)) return value
let result = time(value).format('YYYY-MM-DD')
result = result.indexOf('1900-01-01') > -1 ? '' : result
return result
})
Vue.prototype.$echarts = echarts
Vue.config.productionTip = false
new Vue({
el: '#app',
router,
store,
render: h => h(App)
})

83
src/permission.js Normal file
View File

@@ -0,0 +1,83 @@
import router from './router'
import store from './store'
import { Message } from 'element-ui'
import NProgress from 'nprogress' // progress bar
import 'nprogress/nprogress.css'// progress bar style
import { getToken } from '@/utils/auth' // getToken from cookie
NProgress.configure({ showSpinner: false })// NProgress Configuration
// permission judge function
function hasPermission(roles, permissionRoles) {
if (roles.indexOf('admin') >= 0) return true // admin permission passed directly
if (!permissionRoles) return true
return roles.some(role => permissionRoles.indexOf(role) >= 0)
}
function getRouter(data) {
const result = []
for (let i = 0; i < data.length; i++) {
const obj = {
'path': data[i].父路径,
'component': () => import(`@/views/layout/${data[i].父组件}`),
'children': [
{
'path': data[i].子路径,
'name': data[i].子名称,
'component': () => import(`@/views${data[i].子组件}`),
'meta': { 'title': data[i].标题, 'icon': data[i].图标 }
}
]
}
result.push(obj)
}
return result
}
const whiteList = ['/login', '/auth-redirect']// no redirect whitelist
router.beforeEach((to, from, next) => {
NProgress.start() // start progress bar
if (getToken()) { // determine if there has token
/* has token*/
if (to.path === '/login') {
next({ path: '/' })
NProgress.done() // if current page is dashboard will not trigger afterEach hook, so manually handle it
} else {
if (store.getters.roles.length === 0) { // 判断当前用户是否已拉取完user_info信息
store.dispatch('GetInfo').then(res => { // 拉取user_info
const data = res.data
const asyncRouterMap = getRouter(data)
asyncRouterMap.push({ path: '*', redirect: '/404', hidden: true })
store.dispatch('GenerateRoutes', asyncRouterMap).then(() => { // 根据roles权限生成可访问的路由表
router.addRoutes(store.getters.addRouters) // 动态添加可访问路由表
next({ ...to, replace: true }) // hack方法 确保addRoutes已完成 ,set the replace: true so the navigation will not leave a history record
})
}).catch((err) => {
store.dispatch('FedLogOut').then(() => {
Message.error(err || 'Verification failed, please login again')
next({ path: '/' })
})
})
} else {
// 没有动态改变权限的需求可直接next() 删除下方权限判断 ↓
if (hasPermission(store.getters.roles, to.meta.roles)) {
next()
} else {
next({ path: '/401', replace: true, query: { noGoBack: true }})
}
// 可删 ↑
}
}
} else {
/* has no token*/
if (whiteList.indexOf(to.path) !== -1) { // 在免登录白名单,直接进入
next()
} else {
next(`/login?redirect=${to.path}`) // 否则全部重定向到登录页
NProgress.done() // if current page is login will not trigger afterEach hook, so manually handle it
}
}
})
router.afterEach(() => {
NProgress.done() // finish progress bar
})

145
src/router/index.js Normal file
View File

@@ -0,0 +1,145 @@
import Vue from 'vue'
import Router from 'vue-router'
// in development-env not use lazy-loading, because lazy-loading too many pages will cause webpack hot update too slow. so only in production use lazy-loading;
// detail: https://panjiachen.github.io/vue-element-admin-site/#/lazy-loading
Vue.use(Router)
/* Layout */
import Layout from '../views/layout/Layout'
/**
* hidden: true if `hidden:true` will not show in the sidebar(default is false)
* alwaysShow: true if set true, will always show the root menu, whatever its child routes length
* if not set alwaysShow, only more than one route under the children
* it will becomes nested mode, otherwise not show the root menu
* redirect: noredirect if `redirect:noredirect` will no redirect in the breadcrumb
* name:'router-name' the name is used by <keep-alive> (must set!!!)
* meta : {
title: 'title' the name show in submenu and breadcrumb (recommend set)
icon: 'svg-name' the icon show in the sidebar,
}
**/
export const constantRouterMap = [
{ path: '/login', component: () => import('@/views/login/index'), hidden: true },
{ path: '/404', component: () => import('@/views/404'), hidden: true },
{
path: '/',
component: Layout,
redirect: '/dashboard',
name: 'Dashboard',
hidden: true,
children: [{
path: 'dashboard',
component: () => import('@/views/dashboard/index')
}]
}
// {
// path: '/ProjectManagement',
// component: Layout,
// children: [
// {
// path: 'summarize',
// name: 'summarize',
// component: () => import('@/views/ProjectManagement/summarize'),
// meta: { title: '项目总结', icon: 'summarize' }
// }
// ]
// },
// {
// path: '/ProjectManagement',
// component: Layout,
// children: [
// {
// path: 'assess',
// name: 'assess',
// component: () => import('@/views/ProjectManagement/assess'),
// meta: { title: '项目考核', icon: 'assess' }
// }
// ]
// },
// {
// path: '/ProjectManagement',
// component: Layout,
// children: [
// {
// path: 'progress',
// name: 'progress',
// component: () => import('@/views/ProjectManagement/progress'),
// meta: { title: '项目进展', icon: 'progress' }
// }
// ]
// }
]
export default new Router({
// mode: 'history', //后端支持可开
scrollBehavior: () => ({ y: 0 }),
routes: constantRouterMap
})
export const asyncRouterMap = [
{
path: '/BasicData',
component: Layout,
children: [
{
path: 'PersonnelManagement',
name: 'PersonnelManagement',
component: () => import('@/views/BasicData/PersonnelManagement'),
meta: { title: '人员管理', icon: 'PersonnelManagement' }
}
]
},
{
path: '/BasicData',
component: Layout,
children: [
{
path: 'UserRightsManagement',
name: 'UserRightsManagement',
component: () => import('@/views/BasicData/UserRightsManagement'),
meta: { title: '用户权限管理', icon: 'UserRightsManagement' }
}
]
},
{
path: '/TechnologyCenter',
component: Layout,
children: [
{
path: 'ImportParts',
name: 'ImportParts',
component: () => import('@/views/TechnologyCenter/ImportParts'),
meta: { title: '零件导入', icon: 'ImportParts' }
}
]
},
{
path: '/QueryParts',
component: Layout,
children: [
{
path: 'QueryParts',
name: 'QueryParts',
component: () => import('@/views/TechnologyCenter/QueryParts'),
meta: { title: '零件查询', icon: 'QueryParts' }
}
]
},
{
path: '/CreatePackingList',
component: Layout,
children: [
{
path: 'CreatePackingList',
name: 'CreatePackingList',
component: () => import('@/views/TechnologyCenter/CreatePackingList'),
meta: { title: '创建装箱单', icon: 'CreatePackingList' }
}
]
},
{ path: '*', redirect: '/404', hidden: true }
]

13
src/store/getters.js Normal file
View File

@@ -0,0 +1,13 @@
const getters = {
sidebar: state => state.app.sidebar,
device: state => state.app.device,
token: state => state.user.token,
avatar: state => state.user.avatar,
name: state => state.user.name,
roles: state => state.user.roles,
visitedViews: state => state.tagsView.visitedViews,
cachedViews: state => state.tagsView.cachedViews,
permission_routers: state => state.permission.routers,
addRouters: state => state.permission.addRouters
}
export default getters

21
src/store/index.js Normal file
View File

@@ -0,0 +1,21 @@
import Vue from 'vue'
import Vuex from 'vuex'
import app from './modules/app'
import tagsView from './modules/tagsView'
import user from './modules/user'
import permission from './modules/permission'
import getters from './getters'
Vue.use(Vuex)
const store = new Vuex.Store({
modules: {
app,
user,
tagsView,
permission
},
getters
})
export default store

43
src/store/modules/app.js Normal file
View File

@@ -0,0 +1,43 @@
import Cookies from 'js-cookie'
const app = {
state: {
sidebar: {
opened: !+Cookies.get('sidebarStatus'),
withoutAnimation: false
},
device: 'desktop'
},
mutations: {
TOGGLE_SIDEBAR: state => {
if (state.sidebar.opened) {
Cookies.set('sidebarStatus', 1)
} else {
Cookies.set('sidebarStatus', 0)
}
state.sidebar.opened = !state.sidebar.opened
state.sidebar.withoutAnimation = false
},
CLOSE_SIDEBAR: (state, withoutAnimation) => {
Cookies.set('sidebarStatus', 1)
state.sidebar.opened = false
state.sidebar.withoutAnimation = withoutAnimation
},
TOGGLE_DEVICE: (state, device) => {
state.device = device
}
},
actions: {
ToggleSideBar: ({ commit }) => {
commit('TOGGLE_SIDEBAR')
},
CloseSideBar({ commit }, { withoutAnimation }) {
commit('CLOSE_SIDEBAR', withoutAnimation)
},
ToggleDevice({ commit }, device) {
commit('TOGGLE_DEVICE', device)
}
}
}
export default app

Some files were not shown because too many files have changed in this diff Show More