chore: 初始化保镖 MES 管理端

This commit is contained in:
yexingqiang
2026-06-08 17:06:20 +08:00
commit bf9186e3b2
923 changed files with 83135 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.
}

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

@@ -0,0 +1,111 @@
'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]')
}
},
{
test: /\.txt$/,
use: 'raw-loader'
}
]
},
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'
}
}

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

@@ -0,0 +1,98 @@
'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-element-admin',
templateParameters: {
BASE_URL: config.dev.assetsPublicPath + config.dev.assetsSubDirectory,
},
}),
]
})
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)
}
})
})

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

@@ -0,0 +1,181 @@
'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',
templateParameters: {
BASE_URL: config.build.assetsPublicPath + config.build.assetsSubDirectory,
},
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] ? networkInterfaces['WLAN'][1].address : networkInterfaces['WLAN'][0].address
const ip = '127.0.0.1'
module.exports = {
dev: {
// Paths
assetsSubDirectory: 'static',
assetsPublicPath: '/',
proxyTable: {},
// Various Dev Server settings
host: ip, // can be overwritten by process.env.HOST
port: 1997, // 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: 17 KiB

14
index.html Normal file
View File

@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta content="width=device-width,initial-scale=1.0" name="viewport">
<title>保镖电子管理系统</title>
</head>
<body style="background-color: #eeeeee">
<script src=<%= BASE_URL %>/config.js></script>
<div id="app"></div>
<script></script>
<!-- built files will be auto injected -->
</body>
</html>

107
package.json Normal file
View File

@@ -0,0 +1,107 @@
{
"name": "MacroinfManage_MES",
"version": "1.1.0",
"description": "A Management Information System of QIANG LI 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",
"dhtmlx-gantt": "^7.1.12",
"docxtemplater": "^3.19.7",
"echarts": "^4.2.0-rc.2",
"element-ui": "^2.13.0",
"file-saver": "^1.3.8",
"html2canvas": "^1.0.0-alpha.12",
"jquery": "^3.5.1",
"js-cookie": "2.2.0",
"jspdf": "2.5.1",
"jszip-utils": "^0.1.0",
"mqtt": "^4.3.7",
"node-sass": "latest",
"normalize.css": "7.0.0",
"npm": "^7.20.5",
"nprogress": "0.2.0",
"qrcode": "^1.3.2",
"stylus": "0.52.4",
"stylus-loader": "^3.0.1",
"time-formater": "^1.0.3",
"uuid": "^9.0.0",
"v-viewer": "^1.3.1",
"view-ui-plus": "^1.3.1",
"vue": "2.5.17",
"vue-count-to": "^1.0.13",
"vue-direction-key": "^1.0.5",
"vue-draggable-resizable-gorkys": "^2.4.8",
"vue-router": "^3.0.7",
"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.5.2",
"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",
"raw-loader": "^4.0.2",
"rimraf": "2.6.2",
"sass-loader": "7.0.3",
"script-ext-html-webpack-plugin": "2.1.3",
"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.36.1",
"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"
]
}

29
src/App.vue Normal file
View File

@@ -0,0 +1,29 @@
<template>
<div id="app">
<router-view v-if="isRouterAlive"/>
</div>
</template>
<script>
export default {
name: 'App',
provide() {
return {
reload: this.reload
}
},
data() {
return {
isRouterAlive: true
}
},
methods: {
reload() {
this.isRouterAlive = false
this.$nextTick(function() {
this.isRouterAlive = true
})
}
}
}
</script>

23
src/WorkRecode/WorkRecode Normal file
View File

@@ -0,0 +1,23 @@
2022-08-29:
SQL SEVER点检表、视图、存储过程增加
2022-08-30:
1、订单计划状态
0 已结束
1 生产中
2 未上线
3 未完成
4 已超额
删除修改状态判断修改
2、SQL SEVER
1装配质量数据查询质量数据查询_综合查询新
2物料数据查询物料数据查询_报表新
3过站信息查询质量数据查询_测量数据发动机在线状态_报表_NEW新
4分线质量查询质量数据分线_导出新
5分线物料查询物料数据分线查询_报表新
6生产计划订单完工MES_计划BOM_发动机订单计划_订单完工_报表新
7设备报警统计测量数据工位报警全部视图_查询新
8物料ANDONANDON_ANDON信息_备份_物料Andon综合查询新
9质量ANDONANDON_ANDON信息_备份_质量Andon综合查询新
10设备ANDONANDON_ANDON信息_备份_故障Andon综合查询新
2022-09-05:
1、基本变量写入修改

View File

@@ -0,0 +1,31 @@
import request from '@/utils/request'
import state from '@/store'
import router from '@/router'
// 初始化日历
export function initClendar(year, month) {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '1',
name: '车间生产管理工艺_基础表_工作日历_获得状态',
param: '工作年=' + year + '&工作月=' + month
}
})
}
// 修改工作状态
export function changeState(time, code) {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '2',
name: '车间生产管理工艺_基础表_工作日历_设置状态',
param: '工作日期=' + time + '&工作日状态=' + code
}
})
}

View File

@@ -0,0 +1,105 @@
import request from '@/utils/request'
import state from '@/store'
import router from '@/router'
// 初始化角色
export function getRole() {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '1',
name: '菜单系统模块_项目角色_查询数据_MESWORK'
}
})
}
// 根据角色查模块
export function getModule(role) {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '3',
name: `select * from [dbo].[登录基础数据_二级菜单] where 账号代码=${role} and 是否启用 = 1 order by id`
}
})
}
// 初始化一级菜单
export function initFisrtLevel() {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '3',
name: ` select id,title from [dbo].[登录基础数据_二级菜单] where pid = 0 and 是否启用 =1 and 账号代码 = 1`
}
})
}
// 初始化二级菜单
export function initSecondLevel() {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '3',
name: `select a.id,a.title,a.pid,b.id,b.title as title1 from (select id,title,pid from [dbo].[登录基础数据_二级菜单] where pid <> 0 and 账号代码 = 1 and 是否启用 = 1 )as a
left join (select id,title from [dbo].[登录基础数据_二级菜单] where pid = 0 and 账号代码 = 1 and 是否启用 = 1 )as b on a.pid = b.id order by b.id`
}
})
}
// 撤回分配模块
export function returnModule(id, num) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: `菜单管理_角色模块_删除数据`,
param: `id=${id}&角色编号=${num}`
}
})
}
// 分配一级模块
export function giveFirstLevel(idGroup, num) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: `菜单管理_角色模块_一级_增加数据`,
param: `一级模块id组=${idGroup}&角色编号=${num}`
}
})
}
// 分配二级模块
export function giveSecondLevel(idGroup, num, pid) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: `菜单管理_角色模块_二级_增加数据`,
param: `二级模块id组=${idGroup}&角色编号=${num}&pid=${pid}`
}
})
}
// 新增一级菜单
export function submitAdd(name) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: `菜单管理_模块_一级_增加数据`,
param: `模块名称=${name}`
}
})
}

View File

@@ -0,0 +1,68 @@
import request from '@/utils/request'
import state from '@/store'
import router from '@/router'
export function InitRolefunction() {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '1',
name: '菜单系统模块_项目角色_查询数据_MESWORK'
}
})
}
export function deleteData(code) {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: 1,
name: '菜单系统模块_项目角色_删除_MESWORK',
param: '角色编号=' + code + '=int'
}
})
}
export function searchTable(num) {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '1',
name: '菜单系统模块_项目角色_查询数据_MESWORK',
param: '角色功能=' + num + '=string'
}
})
}
export function addData(code) {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: 2,
name: '菜单系统模块_项目角色_增加_MESWORK',
param: '角色功能=' + code + '=string'
}
})
}
export function addData2(code1, num1) {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: 2,
name: '菜单系统模块_项目角色_修改数据_MESWORK',
param: '角色功能=' + code1 + '&角色编号=' + num1
}
})
}

View File

@@ -0,0 +1,97 @@
import request from '@/utils/request'
import state from '@/store'
import router from '@/router'
export function getRole() {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '1',
name: '菜单模块系统_项目角色_查询数据'
}
})
}
export function getModule(role_check, role) {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '1',
name: '菜单模块系统_项目主模块列表_查询数据',
param: `角色编号_check=${role_check}&角色编号=${role}=int`
}
})
}
export function addModule(module, role) {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '2',
name: '菜单模块系统_项目角色模块列表_增加数据',
param: `角色编号=${role}=int&主模块编号=${module}=int`
}
})
}
export function deleteModule(module, role) {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '2',
name: '菜单模块系统_项目角色模块列表_删除数据',
param: `角色编号=${role}=int&主模块编号=${module}=int`
}
})
}
// 周一从这里开始改!!!
export function getModelData(role) {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '1',
name: '菜单模块系统_项目主模块列表_查询单个模块',
param: `主模块编号=${role}=int`
}
})
}
export function addModelData(component, title, icons) {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '2',
name: '菜单模块系统_项目主模块列表_增加单个模块',
param: `父路径=/${icons}&子名称=${icons}&子组件=${component}&标题=${title}&图标=${icons}`
}
})
}
export function editModelData(modelNum, component, title, icons) {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '2',
name: '菜单模块系统_项目主模块列表_修改单个模块',
param: `主模块编号=${modelNum}&父路径=/${icons}&子名称=${icons}&子组件=${component}&标题=${title}&图标=${icons}`
}
})
}

View File

@@ -0,0 +1,5 @@
import axios from 'axios'
export function getLine() {
return axios.post(window.dt_Config.ip + '/submit/QualityData_NormalDistribution.ashx?type=GetBaseTrendData')
}

View File

@@ -0,0 +1,122 @@
import request from '@/utils/request'
// 判断登陆角色
export function judgeRole() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_根据人角色编号',
param: '编号=' + arguments[0]
}
})
}
// GM查询
export function selectMUForGM() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_父节点_MU',
param: '人员编号=' + arguments[0]
}
})
}
// 初始化MU
export function initMU() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_父节点_部门查询',
param: '人员编号=' + arguments[0] + '\\&部门代码=' + '0'
}
})
}
// 除MU外部门查询Segment
export function selectSegment() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_父节点_部门查询',
param: '人员编号=' + arguments[0] + '\\&部门代码=' + arguments[1]
}
})
}
// MU查询Segment
export function selectSegmentForMU() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_父节点_Segment',
param: '人员编号=' + arguments[0] + '\\&部门代码=' + arguments[1]
}
})
}
// 除Segment外部门查询PV
export function selectPV() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_父节点_部门查询',
param: '人员编号=' + arguments[0] + '\\&部门代码=' + arguments[1]
}
})
}
// Segment查询PV
export function selectPVForSegment() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_父节点_PV',
param: '人员编号=' + arguments[0] + '\\&部门代码=' + arguments[1]
}
})
}
// 查询奖金得分
export function searchBonus() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '奖金绩效系统_生产奖金查询',
param: 'MU_Departments_Check=' + arguments[0] + '\\&MU_Departments=' + arguments[1] + '\\&Segment_Departments_Check=' + arguments[2] + '\\&Segment_Departments=' + arguments[3] + '\\&PV_Departments_Check=' + arguments[4] + '\\&PV_Departments=' + arguments[5] + '\\&月份=' + arguments[6],
pagination: arguments[7] + '&' + arguments[8]
}
})
}
// Segment结算奖金
export function BonusSettlement() {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '奖金绩效系统_生产奖金结算',
param: '月份=' + arguments[0] + '\\&MU代码=' + arguments[1] + '\\&Segment代码=' + arguments[2]
}
})
}
// 查询冻结权限
export function initrole() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '输入权限判断'
}
})
}

View File

@@ -0,0 +1,125 @@
import request from '@/utils/request'
// 判断登陆角色
export function judgeRole() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_根据人角色编号',
param: '编号=' + arguments[0]
}
})
}
// 初始化MU
export function initMU() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_父节点_部门查询',
param: '人员编号=' + arguments[0] + '&部门代码=' + '0'
}
})
}
// 是否可以提交
export function isCanSubmit() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '奖金绩效系统_蓝领奖金基数输入_是否提交',
param: '月份=' + arguments[0]
}
})
}
// 除MU外部门查询Segment
export function selectSegment() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_父节点_部门查询',
param: '人员编号=' + arguments[0] + '\\&部门代码=' + arguments[1]
}
})
}
// MU查询Segment
export function selectSegmentForMU() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_父节点_Segment',
param: '人员编号=' + arguments[0] + '\\&部门代码=' + arguments[1]
}
})
}
// GM查询
export function selectMUForGM() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_父节点_MU',
param: '人员编号=' + arguments[0]
}
})
}
// 查询蓝领奖金基数
export function searchBonus() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '奖金绩效系统_系统管理员奖金基数无数据查询',
param: '月份=' + arguments[0],
pagination: arguments[1] + '&' + arguments[2]
}
})
}
// 增加或修改数据
export function uploadBonus() {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '奖金绩效系统_蓝领奖金基数增加_整体录入',
param: `月份=${arguments[0]}\\&MU_Departments=${arguments[1]}\\&Segment_Departments=${arguments[2]}\\&人员性质组=${arguments[3]}\\&奖金基数组=${arguments[4]}\\&记录人代码=${arguments[5]}`,
pagination: arguments[6] + '&' + arguments[7]
}
})
}
// 提交数据
export function submit() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '奖金绩效系统_蓝领奖金基数系统管理员提交',
param: `月份=${arguments[0]}`
}
})
}
// 查询冻结权限
export function initrole() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '输入权限判断'
}
})
}

View File

@@ -0,0 +1,133 @@
import request from '@/utils/request'
// 判断登陆角色
export function judgeRole() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_根据人角色编号',
param: '编号=' + arguments[0]
}
})
}
// 初始化MU
export function initMU() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_父节点_部门查询',
param: '人员编号=' + arguments[0] + '\\&部门代码=' + '0'
}
})
}
// 查询生产奖金
export function searchBonus() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '奖金绩效系统_蓝领奖金基数查询',
param: '月份=' + arguments[0] + '\\&MU_Department=' + arguments[1]
}
})
}
// 除MU外部门查询Segment
export function selectSegment() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_父节点_部门查询',
param: '人员编号=' + arguments[0] + '\\&部门代码=' + arguments[1]
}
})
}
// MU查询Segment
export function selectSegmentForMU() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_父节点_Segment',
param: '人员编号=' + arguments[0] + '\\&部门代码=' + arguments[1]
}
})
}
// 除Segment外部门查询PV
export function selectPV() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_父节点_部门查询',
param: '人员编号=' + arguments[0] + '\\&部门代码=' + arguments[1]
}
})
}
// Segment查询PV
export function selectPVForSegment() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_父节点_PV',
param: '人员编号=' + arguments[0] + '\\&部门代码=' + arguments[1]
}
})
}
// 执行保存
export function handleSave() {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '奖金绩效系统_蓝领奖金基数修改_MU',
param: 'id=' + arguments[0] + '\\&奖金基数=' + arguments[1]
}
})
}
// 确认审核
export function ConfirmSubmit() {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '奖金绩效系统_蓝领奖金基数确认审核_MU',
param: '月份=' + arguments[0] + '\\&MU_Department=' + arguments[1]
}
})
}
// 是否确认审核
export function isCanConfirmSubmit() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '奖金绩效系统_蓝领奖金基数确认审核_是否可以审核',
param: '月份=' + arguments[0] + '\\&MU_Department=' + arguments[1]
}
})
}
// 查询冻结权限
export function initrole() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '输入权限判断'
}
})
}

View File

@@ -0,0 +1,159 @@
import request from '@/utils/request'
// 判断登陆角色
export function judgeRole() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_根据人角色编号',
param: '编号=' + arguments[0]
}
})
}
// 初始化MU
export function initMU() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_父节点_部门查询',
param: '人员编号=' + arguments[0] + '&部门代码=' + '0'
}
})
}
// 查询奖金得分 LLJ
export function searchBonus() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '奖金绩效系统_蓝领得分查询_PV',
param: '月份=' + arguments[0] + '&people_id =' + arguments[1] + '&rolenumber =' + arguments[2] + '&pv_check =' + arguments[3] + '&Area =' + arguments[4]
}
})
}
// 查询奖金得分
// export function searchBonus() {
// return request({
// url: '',
// method: 'post',
// data: {
// type: '1',
// name: '奖金绩效系统_蓝领得分PV查询',
// param: '月份=' + arguments[0] + '&PV部门代码=' + arguments[1]
// }
// })
// }
// 除MU外部门查询Segment
export function selectSegment() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_父节点_部门查询',
param: '人员编号=' + arguments[0] + '&部门代码=' + arguments[1]
}
})
}
// MU查询Segment
export function selectSegmentForMU() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_父节点_Segment',
param: '人员编号=' + arguments[0] + '\\&部门代码=' + arguments[1]
}
})
}
// 除Segment外部门查询PV
export function selectPV() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_父节点_部门查询',
param: '人员编号=' + arguments[0] + '\\&部门代码=' + arguments[1]
}
})
}
// Segment查询PV
export function selectPVForSegment() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_父节点_PV',
param: '人员编号=' + arguments[0] + '\\&部门代码=' + arguments[1]
}
})
}
// 执行保存
export function handleSave() {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '奖金绩效系统_生产奖金增加_整体录入',
param: `序号组=${arguments[0]}&计划完成率组=${arguments[1]}&工时效率组=${arguments[2]}&PV打分组=${arguments[3]}`
}
})
}
// 执行导入
export function upload_excle() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '奖金绩效系统_蓝领白领评分增加_整体导入',
param: `月份=${arguments[0]}&总体得分组=${arguments[1]}&工号组=${arguments[2]}&Area工号=${arguments[3]}`
}
})
}
// 查询冻结权限
export function initrole() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '输入权限判断'
}
})
}
// 提交
export function onload2() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '奖金绩效系统_蓝领得分提交_PV',
param: '月份=' + arguments[0] + '&操作者工号=' + arguments[1]
}
})
}
// PV查詢 LLJ 新增
export function initArea() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '奖金绩效系统_加载Area_PV蓝领打分',
param: '月份=' + arguments[0] + '&people_id=' + arguments[1]
}
})
}

View File

@@ -0,0 +1,50 @@
import request from '@/utils/request'
// 查询
export function searchTable(pageList, pageSize) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '基础数据_设备状态查询',
Pagination: pageList + '&' + 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,146 @@
import request from '@/utils/request'
// 判断登陆角色
export function judgeRole() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_根据人角色编号',
param: '编号=' + arguments[0]
}
})
}
// 查询奖金得分
export function searchBonus() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '奖金绩效系统_蓝领得分修改_查询',
param: '月份=' + arguments[0] + '\\&people_id =' + arguments[1] + '\\&rolenumber =' + arguments[2] + '\\&pv_check =' + arguments[3] + '\\&Area =' + arguments[4] + '\\&MU_check =' + arguments[5] + '\\&MU =' + arguments[6] + '\\&部门_check =' + arguments[7] + '\\&部门 =' + arguments[8]
}
})
}
// 查询MU
export function selectMU() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_蓝领筛选框_筛选MU',
param: '月份=' + arguments[0] + '&角色代码=' + arguments[1] + '&操作者工号=' + arguments[2]
}
})
}
// 查询部门
export function selectDepartment() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_蓝领筛选框_筛选SL',
param: '月份=' + arguments[0] + '&角色代码=' + arguments[1] + '&操作者工号=' + arguments[2] + '&MU=' + arguments[3]
}
})
}
// 查询Area
export function selectArea() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_蓝领筛选框_筛选Area',
param: '月份=' + arguments[0] + '&角色代码=' + arguments[1] + '&操作者工号=' + arguments[2] + '&部门=' + arguments[3]
}
})
}
// 初始化MU
export function initMU() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_父节点_部门查询',
param: '人员编号=' + arguments[0] + '&部门代码=' + '0'
}
})
}
// 除MU外部门查询Segment
export function selectSegment() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_父节点_部门查询',
param: '人员编号=' + arguments[0] + '&部门代码=' + arguments[1]
}
})
}
// MU查询Segment
export function selectSegmentForMU() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_父节点_Segment',
param: '人员编号=' + arguments[0] + '&部门代码=' + arguments[1]
}
})
}
// 除Segment外部门查询PV
export function selectPV() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_父节点_部门查询',
param: '人员编号=' + arguments[0] + '&部门代码=' + arguments[1]
}
})
}
// Segment查询PV
export function selectPVForSegment() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_父节点_PV',
param: '人员编号=' + arguments[0] + '&部门代码=' + arguments[1]
}
})
}
// 执行保存
export function handleSave() {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '奖金绩效系统_蓝领得分修改_更新',
param: 'id=' + arguments[0] + '&计划完成率=' + arguments[1] + '&工时效率=' + arguments[2] + '&PV打分=' + arguments[3]
}
})
}
// 查询冻结权限
export function initrole() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '输入权限判断'
}
})
}

View File

@@ -0,0 +1,113 @@
import request from '@/utils/request'
// 判断登陆角色
export function judgeRole() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_根据人角色编号',
param: '编号=' + arguments[0]
}
})
}
// 初始化MU
export function initMU() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_父节点_部门查询',
param: '人员编号=' + arguments[0] + '&部门代码=' + '0'
}
})
}
// 查询奖金得分
// 查询奖金得分
export function searchBonus() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '奖金绩效系统_蓝领得分查询_SL',
param: '月份=' + arguments[0] + '\\&操作者工号 =' + arguments[1] + '\\&角色代码 =' + arguments[2] + '\\&MU_check =' + arguments[3] + '\\&SL_check =' + arguments[4] + '\\&PV_check =' + arguments[5] + '\\&MU =' + arguments[6] +
'\\&部门 =' + arguments[7] + '\\&Area =' + arguments[8]
}
})
}
// 查询冻结权限
export function initrole() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '输入权限判断'
}
})
}
// MU查詢 LLJ 新增
export function SelectMU() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_蓝领筛选框_筛选MU',
param: '月份=' + arguments[0] + '&角色代码=' + arguments[1] + '&操作者工号=' + arguments[2]
}
})
}
// SL查询
export function SelectSL() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_蓝领筛选框_筛选SL',
param: '月份=' + arguments[0] + '\\&角色代码=' + arguments[1] + '\\&操作者工号=' + arguments[2] + '\\&MU=' + arguments[3]
}
})
}
// SL查询
export function SelectArea() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_蓝领筛选框_筛选Area',
param: '月份=' + arguments[0] + '\\&角色代码=' + arguments[1] + '\\&操作者工号=' + arguments[2] + '\\&部门=' + arguments[3]
}
})
}
// 审批
export function Approval2() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '奖金绩效系统_蓝领得分审核_SL',
param: '月份=' + arguments[0] + '\\&操作者工号=' + arguments[1] + '\\&部门=' + arguments[2]
}
})
}
// 确认编辑
export function confirmEdit() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '奖金绩效系统_蓝白领得分修改_SL',
param: 'id=' + arguments[0] + '&得分=' + arguments[1]
}
})
}

View File

@@ -0,0 +1,91 @@
import request from '@/utils/request'
// 判断登陆角色
export function judgeRole() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_根据人角色编号',
param: '编号=' + arguments[0]
}
})
}
// 初始化MU
export function initMU() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_父节点_部门查询',
param: '人员编号=' + arguments[0] + '\\&部门代码=' + '0'
}
})
}
// 除MU外部门查询Segment
export function selectSegment() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_父节点_部门查询',
param: '人员编号=' + arguments[0] + '\\&部门代码=' + arguments[1]
}
})
}
// MU查询Segment
export function selectSegmentForMU() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_父节点_Segment',
param: '人员编号=' + arguments[0] + '\\&部门代码=' + arguments[1]
}
})
}
// GM查询
export function selectMUForGM() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_父节点_MU',
param: '人员编号=' + arguments[0]
}
})
}
// 查询奖金基数
export function searchBonus() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '奖金绩效系统_生产奖金基数无数据查询',
param: '月份=' + arguments[0] + '\\&MU_Departments=' + arguments[1] + '\\&Segment_Departments=' + arguments[2],
pagination: arguments[3] + '&' + arguments[4]
}
})
}
// 增加或修改数据
export function uploadBonus() {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '奖金绩效系统_生产奖金基数增加_整体录入',
param: `月份=${arguments[0]}\\&MU_Departments=${arguments[1]}\\&Segment_Departments=${arguments[2]}\\&人员性质组=${arguments[3]}\\&奖金基数组=${arguments[4]}\\&记录人代码=${arguments[5]}`,
pagination: arguments[6] + '&' + arguments[7]
}
})
}

View File

@@ -0,0 +1,102 @@
import request from '@/utils/request'
// 判断登陆角色
export function judgeRole() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_根据人角色编号',
param: '编号=' + arguments[0]
}
})
}
// 初始化MU
export function initMU() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_父节点_部门查询',
param: '人员编号=' + arguments[0] + '\\&部门代码=' + '0'
}
})
}
// 除MU外部门查询Segment
export function selectSegment() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_父节点_部门查询',
param: '人员编号=' + arguments[0] + '\\&部门代码=' + arguments[1]
}
})
}
// MU查询Segment
export function selectSegmentForMU() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_父节点_Segment',
param: '人员编号=' + arguments[0] + '\\&部门代码=' + arguments[1]
}
})
}
// GM查询
export function selectMUForGM() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_父节点_MU',
param: '人员编号=' + arguments[0]
}
})
}
// 查询奖金基数
export function searchBonus() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '奖金绩效系统_生产奖金基数无数据查询',
param: '月份=' + arguments[0] + '\\&MU_Departments=' + arguments[1] + '\\&Segment_Departments=' + arguments[2],
pagination: arguments[3] + '&' + arguments[4]
}
})
}
// 增加或修改数据
export function uploadBonus() {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '奖金绩效系统_生产奖金基数增加_整体录入',
param: `月份=${arguments[0]}\\&MU_Departments=${arguments[1]}\\&Segment_Departments=${arguments[2]}\\&人员性质组=${arguments[3]}\\&奖金基数组=${arguments[4]}\\&记录人代码=${arguments[5]}`,
pagination: arguments[6] + '&' + arguments[7]
}
})
}
// 查询冻结权限
export function initrole() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '输入权限判断'
}
})
}

View File

@@ -0,0 +1,50 @@
import request from '@/utils/request'
// 查询
export function searchTable(pageList, pageSize) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '基础数据_设备类型查询',
Pagination: pageList + '&' + 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,123 @@
import request from '@/utils/request'
// 判断登陆角色
export function judgeRole() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_根据人角色编号',
param: '编号=' + arguments[0]
}
})
}
// 查询MU
export function selectMU() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_筛选框_筛选MU',
param: '角色代码=' + arguments[0] + '&操作者工号=' + arguments[1]
}
})
}
// 查询部门
export function selectDepartment() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_筛选框_筛选SL',
param: '角色代码=' + arguments[0] + '\\&操作者工号=' + arguments[1] + '\\&MU=' + arguments[2]
}
})
}
// 查询Area
export function selectArea() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_筛选框_筛选Area',
param: '角色代码=' + arguments[0] + '\\&操作者工号=' + arguments[1] + '\\&部门=' + arguments[2]
}
})
}
// 初始化MU
export function initMU() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_父节点_部门查询',
param: '人员编号=' + arguments[0] + '\\&部门代码=' + '0'
}
})
}
// 除MU外部门查询Segment
export function selectSegment() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_父节点_部门查询_多个查询',
param: '人员编号=' + arguments[0] + '\\&部门代码=' + arguments[1]
}
})
}
// MU查询Segment
export function selectSegmentForMU() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_父节点_Segment_多个查询',
param: '人员编号=' + arguments[0] + '\\&部门代码=' + arguments[1]
}
})
}
// GM查询
export function selectMUForGM() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_父节点_MU',
param: '人员编号=' + arguments[0]
}
})
}
// // 查询奖金基数
// export function searchBonus() {
// return request({
// url: '',
// method: 'post',
// data: {
// type: '1',
// name: '奖金绩效系统_生产奖金基数查询_改动2',
// param: `开始时间=${arguments[0]}&结束时间=${arguments[1]}&人员代码=${arguments[2]}&角色代码=${arguments[3]}&MU_Department=${arguments[4]}&MU_Department_check=${arguments[5]}&Segment_Department=${arguments[6]}&Segment_Department_check=${arguments[7]}`
// }
// })
// }
// 查询奖金基数
export function searchBonus() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '奖金绩效系统_生产奖金基数查询',
param: 'MU_Department=' + arguments[0] + '\\&MU_Department_check=' + arguments[1] + '\\&Segment_Department=' + arguments[2] + '\\&Segment_Department_check=' + arguments[3]
}
})
}

View File

@@ -0,0 +1,97 @@
import request from '@/utils/request'
// 判断登陆角色
export function judgeRole() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_根据人角色编号',
param: '编号=' + arguments[0]
}
})
}
// GM查询
export function selectMUForGM() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_父节点_MU',
param: '人员编号=' + arguments[0]
}
})
}
// 初始化MU
export function initMU() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_父节点_部门查询',
param: '人员编号=' + arguments[0] + '\\&部门代码=' + '0'
}
})
}
// 除MU外部门查询Segment
export function selectSegment() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_父节点_部门查询_多个查询',
param: '人员编号=' + arguments[0] + '\\&部门代码=' + arguments[1]
}
})
}
// MU查询Segment
export function selectSegmentForMU() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_父节点_Segment_多个查询',
param: '人员编号=' + arguments[0] + '\\&部门代码=' + arguments[1]
}
})
}
// 除Segment外部门查询PV
export function selectPV() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_父节点_部门查询_多个查询',
param: '人员编号=' + arguments[0] + '\\&部门代码=' + arguments[1]
}
})
}
// Segment查询PV
export function selectPVForSegment() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_父节点_PV_多个查询',
param: '人员编号=' + arguments[0] + '\\&部门代码=' + arguments[1]
}
})
}
export function searchBonus() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '奖金绩效系统_维度汇总报告查询_改动2',
param: `开始时间=${arguments[0]}\\&结束时间=${arguments[1]}\\&人员代码=${arguments[2]}\\&角色代码=${arguments[3]}\\&MU_Department=${arguments[4]}\\&MU_Department_check=${arguments[5]}\\&Segment_Department=${arguments[6]}\\&Segment_Department_check=${arguments[7]}\\&PV_Department=${arguments[8]}\\&PV_Department_check=${arguments[9]}`
}
})
}

View File

@@ -0,0 +1,122 @@
import request from '@/utils/request'
// 判断登陆角色
export function judgeRole() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_根据人角色编号',
param: '编号=' + arguments[0]
}
})
}
// GM查询
export function selectMUForGM() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_父节点_MU',
param: '人员编号=' + arguments[0]
}
})
}
// 初始化MU
export function initMU() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_父节点_部门查询',
param: '人员编号=' + arguments[0] + '\\&部门代码=' + '0'
}
})
}
// 除MU外部门查询Segment
export function selectSegment() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_父节点_部门查询',
param: '人员编号=' + arguments[0] + '\\&部门代码=' + arguments[1]
}
})
}
// MU查询Segment
export function selectSegmentForMU() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_父节点_Segment',
param: '人员编号=' + arguments[0] + '\\&部门代码=' + arguments[1]
}
})
}
// 除Segment外部门查询PV
export function selectPV() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_父节点_部门查询',
param: '人员编号=' + arguments[0] + '\\&部门代码=' + arguments[1]
}
})
}
// Segment查询PV
export function selectPVForSegment() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_父节点_PV',
param: '人员编号=' + arguments[0] + '\\&部门代码=' + arguments[1]
}
})
}
// 查询奖金得分
export function searchBonus() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '奖金绩效系统_生产奖金查询',
param: 'MU_Departments_Check=' + arguments[0] + '\\&MU_Departments=' + arguments[1] + '\\&Segment_Departments_Check=' + arguments[2] + '\\&Segment_Departments=' + arguments[3] + '\\&PV_Departments_Check=' + arguments[4] + '\\&PV_Departments=' + arguments[5] + '\\&月份=' + arguments[6],
pagination: arguments[7] + '&' + arguments[8]
}
})
}
// Segment结算奖金
export function BonusSettlement() {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '奖金绩效系统_生产奖金结算',
param: '月份=' + arguments[0] + '&MU代码=' + arguments[1] + '&Segment代码=' + arguments[2]
}
})
}
// 查询冻结权限
export function initrole() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '输入权限判断'
}
})
}

View File

@@ -0,0 +1,98 @@
import request from '@/utils/request'
// 判断登陆角色
export function judgeRole() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_根据人角色编号',
param: '编号=' + arguments[0]
}
})
}
// GM初始化MU
export function initMU1() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_父节点_MU',
param: '人员编号=' + arguments[0]
}
})
}
// 非GM初始化MU
export function initMU2() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_父节点_部门查询',
param: '人员编号=' + arguments[0] + '\\&部门代码=0'
}
})
}
// MU查Segment
export function searchSegment1() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_父节点_Segment_多个查询',
param: '人员编号=' + arguments[0] + '\\&部门代码=' + arguments[1]
}
})
}
// 非MU查Segment
export function searchSegment2() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_父节点_部门查询_多个查询',
param: '人员编号=' + arguments[0] + '\\&部门代码=' + arguments[1]
}
})
}
// 查询奖金得分
export function searchBonus() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '奖金绩效系统_维度汇总报告查询_改动2',
param: `开始时间=${arguments[0]}\\&结束时间=${arguments[1]}\\&人员代码=${arguments[2]}\\&角色代码=${arguments[3]}\\&MU_Department=${arguments[4]}\\&MU_Department_check=${arguments[5]}\\&Segment_Department=${arguments[6]}\\&Segment_Department_check=${arguments[7]}\\&PV_Department=${arguments[8]}\\&PV_Department_check=${arguments[9]}`
}
})
}
// Segment查询PV
export function selectPVForSegment() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_父节点_PV_多个查询',
param: '人员编号=' + arguments[0] + '\\&部门代码=' + arguments[1]
}
})
}
// 除Segment外部门查询PV
export function selectPV() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_父节点_部门查询_多个查询',
param: '人员编号=' + arguments[0] + '&部门代码=' + arguments[1]
}
})
}

View File

@@ -0,0 +1,148 @@
import request from '@/utils/request'
// 判断登陆角色
export function judgeRole() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_根据人角色编号',
param: '编号=' + arguments[0]
}
})
}
// 初始化MU
export function initMU() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_筛选框_筛选MU',
param: '角色代码=' + arguments[0] + '&操作者工号=' + arguments[1]
}
})
}
// MU查询Segment
export function changeMU() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_筛选框_筛选SL',
param: '角色代码=' + arguments[0] + '\\&操作者工号=' + arguments[1] + '\\&MU=' + arguments[2]
}
})
}
// 损失工时PV查询
export function searchBonusForPV() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '奖金绩效系统_损失工时PV查询',
param: '月份=' + arguments[0] + '\\&操作者工号=' + arguments[1] + '\\&角色代码=' + arguments[2] + '\\&MU=' + arguments[3] + '\\&MU_check=' + arguments[4] + '\\&部门=' + arguments[5] + '\\&部门_check=' + arguments[6] + '\\&Area=' + arguments[7] + '\\&Area_check=' + arguments[8],
pagination: arguments[9] + '&' + arguments[10]
}
})
}
// 损失工时删除
export function deleteLoss() {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '奖金绩效系统_损失工时PV删除',
param: 'ID=' + arguments[0]
}
})
}
// 确认编辑
export function confirmEditForPV() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '奖金绩效系统_损失工时PV修改',
param: 'ID=' + arguments[0] + '&时间数=' + arguments[1] + '&损失明细代码=' + arguments[2]
}
})
}
// 确认添加 pv
export function confirmAddForPV() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '奖金绩效系统_损失工时PV增加',
param: '月份=' + arguments[0] + '\\&MU=' + arguments[1] + '\\&部门=' + arguments[2] + '\\&Area=' + arguments[3] + '\\&损失原因明细代码=' + arguments[4] + '\\&时间数=' + arguments[5]
}
})
}
// Segment查询PV
export function changeSegment() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_筛选框_筛选Area',
param: '角色代码=' + arguments[0] + '\\&操作者工号=' + arguments[1] + '\\&部门=' + arguments[2]
}
})
}
// pv提交
export function submitPV() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '奖金绩效系统_损失工时PV提交',
param: `月份=${arguments[0]}\\&Area=${arguments[1]}`
}
})
}
// 初始化加载损失工时分类
export function initCentral() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '奖金绩效系统_损失工时原因分类_查询'
}
})
}
// 初始化加载损失工时明细
export function initCentralDetail() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '奖金绩效系统_损失工时原因明细_查询',
param: '损失工时原因代码=' + arguments[0]
}
})
}
// 查询冻结权限
export function initrole() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '输入权限判断'
}
})
}

View File

@@ -0,0 +1,88 @@
import request from '@/utils/request'
// 判断登陆角色
export function judgeRole() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_根据人角色编号',
param: '编号=' + arguments[0]
}
})
}
// 初始化MU
export function initMU() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_父节点_部门查询',
param: '人员编号=' + arguments[0] + '\\&部门代码=' + '0'
}
})
}
// 除MU外部门查询Segment
export function selectSegment() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_父节点_部门查询_多个查询',
param: '人员编号=' + arguments[0] + '\\&部门代码=' + arguments[1]
}
})
}
// MU查询Segment
export function selectSegmentForMU() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_父节点_Segment_多个查询',
param: '人员编号=' + arguments[0] + '\\&部门代码=' + arguments[1]
}
})
}
// GM查询
export function selectMUForGM() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_父节点_MU',
param: '人员编号=' + arguments[0]
}
})
}
// 损失工时查询
export function searchBonus() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '奖金绩效系统_损失工时查询_改动2',
param: '开始时间=' + arguments[0] + '&结束时间=' + arguments[1] + '&人员代码=' + arguments[2] + '&角色代码=' + arguments[3] + '&MU_Department=' + arguments[4] + '&MU_Department_check=' + arguments[5] + '&Segment_Department=' + arguments[6] + '&Segment_Department_check=' + arguments[7]
}
})
}
// 损失工时查询
export function sumBonus() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '奖金绩效系统_损失工时汇总',
param: '开始时间=' + arguments[0] + '\\&结束时间=' + arguments[1] + '\\&MU_Department=' + arguments[2] + '\\&MU_Department_check=' + arguments[3] + '\\&Segment_Department=' + arguments[4] + '\\&Segment_Department_check=' + arguments[5]
}
})
}

View File

@@ -0,0 +1,147 @@
import request from '@/utils/request'
// 判断登陆角色
export function judgeRole() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_根据人角色编号',
param: '编号=' + arguments[0]
}
})
}
// 初始化MU
export function initMU() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_筛选框_筛选MU',
param: '角色代码=' + arguments[0] + '&操作者工号=' + arguments[1]
}
})
}
// MU查询Segment
export function changeMU() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_筛选框_筛选SL',
param: '角色代码=' + arguments[0] + '\\&操作者工号=' + arguments[1] + '\\&MU=' + arguments[2]
}
})
}
// Segment查询PV
export function changeSegment() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_筛选框_筛选Area',
param: '角色代码=' + arguments[0] + '\\&操作者工号=' + arguments[1] + '\\&部门=' + arguments[2]
}
})
}
// 损失工时查询
export function searchBonus() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '奖金绩效系统_损失工时SL查询',
param: '月份=' + arguments[0] + '\\&操作者工号=' + arguments[1] + '\\&角色代码=' + arguments[2] + '\\&MU=' + arguments[3] + '\\&MU_check=' + arguments[4] + '\\&部门=' + arguments[5] + '\\&部门_check=' + arguments[6] + '\\&Area=' + arguments[7] + '\\&Area_check=' + arguments[8],
pagination: arguments[9] + '&' + arguments[10]
}
})
}
// 损失工时删除
export function deleteLoss() {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '奖金绩效系统_损失工时SL删除',
param: 'ID=' + arguments[0]
}
})
}
// 确认编辑
export function confirmEdit() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '奖金绩效系统_损失工时SL修改',
param: 'ID=' + arguments[0] + '&时间数=' + arguments[1] + '&损失明细代码=' + arguments[2]
}
})
}
// 确认添加
export function confirmAdd() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '奖金绩效系统_损失工时SL增加',
param: `月份=${arguments[0]}\\&MU=${arguments[1]}\\&部门=${arguments[2]}\\&Area=${arguments[3]}\\&损失原因明细代码=${arguments[4]}\\&时间数=${arguments[5]}`
}
})
}
// 确认审核
export function handleReview() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '奖金绩效系统_损失工时SL审核',
param: '月份=' + arguments[0] + '\\&Area=' + arguments[1]
}
})
}
// 初始化加载损失工时分类
export function initCentral() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '奖金绩效系统_损失工时原因分类_查询'
}
})
}
// 初始化加载损失工时明细
export function initCentralDetail() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '奖金绩效系统_损失工时原因明细_查询',
param: '损失工时原因代码=' + arguments[0]
}
})
}
// 查询冻结权限
export function initrole() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '输入权限判断'
}
})
}

View File

@@ -0,0 +1,50 @@
import request from '@/utils/request'
// 查询
export function searchTable(pageList, pageSize) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '基础数据_料桶信息_视图_查询',
Pagination: pageList + '&' + 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,49 @@
import request from '@/utils/request'
// 部门查询
export function DepartmentSelect() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '奖金绩效系统_组织结构维护_部门查询',
param: 'MU=' + arguments[0]
}
})
}
// 人员查询
export function personSelect() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '奖金绩效系统_组织结构维护_人员查询',
param: 'MU=' + arguments[0] + '\\&' + '部门=' + arguments[1] + '\\&' + 'MU_check=' + arguments[2] + '\\&' + '部门_check=' + arguments[3]
}
})
}
// MU查询
export function MUSelect() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '奖金绩效系统_组织结构维护_MU查询'
}
})
}
// 人员信息修改
export function personUpdate() {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '奖金绩效系统_组织结构维护_人员修改',
param: 'id=' + arguments[0] + '\\&' + 'OrgUnit=' + arguments[1] + '\\&' + 'Area=' + arguments[2] + '\\&' + 'N_1姓名=' + arguments[3] + '\\&' + '@N_1工号=' + arguments[4] + '\\&' + '部门=' + arguments[5] + '\\&' + 'N_2姓名=' + arguments[6] + '\\&' + 'N_2工号=' + arguments[7] + '\\&' + 'MU_GM=' + arguments[8] + '\\&' + 'N_3姓名=' + arguments[9] + '\\&' + 'N_3工号=' + arguments[10]
}
})
}

View File

@@ -0,0 +1,74 @@
import request from '@/utils/request'
// 判断登陆角色
export function judgeRole() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_根据人角色编号',
param: '编号=' + arguments[0]
}
})
}
// 初始化MU
export function initMU() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_TL筛选框_筛选MU',
param: '角色代码=' + arguments[0] + '&操作者工号=' + arguments[1] + '&月份=' + arguments[2]
}
})
}
// MU查询Segment
export function changeMU() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_TL筛选框_筛选SL',
param: '角色代码=' + arguments[0] + '\\&操作者工号=' + arguments[1] + '\\&MU=' + arguments[2] + '\\&月份=' + arguments[3]
}
})
}
// Segment查询PV
export function changeSegment() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_TL筛选框_筛选Area',
param: '角色代码=' + arguments[0] + '\\&操作者工号=' + arguments[1] + '\\&部门=' + arguments[2] + '\\&月份=' + arguments[3]
}
})
}
// 查询奖金得分
export function searchBonus() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '奖金绩效系统_部门TL月度奖金_查询',
param: '月份=' + arguments[0] + '\\&操作者工号=' + arguments[1] + '\\&角色代码=' + arguments[2] + '\\&MU=' + arguments[3] + '\\&MU_check=' + arguments[4] + '\\&部门=' + arguments[5] + '\\&部门_check=' + arguments[6] + '\\&Area=' + arguments[7] + '\\&Area_check=' + arguments[8]
}
})
}
// 查询损失工时
export function loseHours() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '奖金绩效系统_部门TL月度奖金_损失查询',
param: '月份=' + arguments[0] + '\\&操作者工号=' + arguments[1] + '\\&角色代码=' + arguments[2] + '\\&MU=' + arguments[3] + '\\&MU_check=' + arguments[4] + '\\&部门=' + arguments[5] + '\\&部门_check=' + arguments[6] + '\\&Area=' + arguments[7] + '\\&Area_check=' + arguments[8]
}
})
}

View File

@@ -0,0 +1,76 @@
import request from '@/utils/request'
import axios from 'axios'
export function dataImport(Personal_Number, Total_Name, Chinese_Name, OrgUnit, Cost_Center, Business_Area, PSG, Job_Title, Payroll_Area) {
const param = new URLSearchParams()
param.append('Personal_Number', Personal_Number)
param.append('Total_Name', Total_Name)
param.append('Chinese_Name', Chinese_Name)
param.append('OrgUnit', OrgUnit)
param.append('Cost_Center', Cost_Center)
param.append('Business_Area', Business_Area)
param.append('PSG', PSG)
param.append('Job_Title', Job_Title)
// param.append('Entry_Schaeffler', Entry_Schaeffler)
param.append('Payroll_Area', Payroll_Area)
return axios({
url: 'http://192.168.1.122:8055/submit/WebLED.ashx?type=PersonnelIntroduction',
method: 'post',
data: param
})
}
export function personFransfer() {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '人员信息表格导入后轮询到人员表'
}
})
}
export function personSelect(pageList, pageSize) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: 'SAP生产订单导入后_查询',
Pagination: pageList + '&' + pageSize
}
})
}
export function personDelete() {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '奖金绩效系统_人员维护_人员删除',
param: '人员编号=' + arguments[0]
}
})
}
export function addPeople() {
return request({
url: '',
method: 'post',
data: {
type: 2,
name: '奖金绩效系统_人员维护_人员增加新',
param: '工号=' + arguments[0] + '&密码=' + arguments[1] + '&姓名=' + arguments[2] + '&OrgUnit=' + arguments[3] + '&Cost_Center=' + arguments[4] + '&Business_Area=' + arguments[5] + '&PSG=' + arguments[6] +
'&Job_Title=' + arguments[7] + '&Payroll_Area=' + arguments[8] + '&导入数据是否覆盖=' + arguments[9] + '&中文名=' + arguments[10]
}
})
}
// 人员更新
export function personUpdate() {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '奖金绩效系统_人员维护_人员修改新',
param: 'id=' + arguments[0] + '\\&密码=' + arguments[1] + '\\&姓名=' + arguments[2] + '\\&OrgUnit=' + arguments[3] + '\\&Cost_Center=' + arguments[4] + '\\&Business_Area=' + arguments[5] + '\\&PSG=' + arguments[6] + '\\&Job_Title=' + arguments[7] + '\\&Payroll_Area=' + arguments[8] + '\\&导入数据是否覆盖=' + arguments[9] + '\\&中文名=' + arguments[10]
}
})
}

View File

@@ -0,0 +1,214 @@
import request from '@/utils/request'
import axios from 'axios'
export function daobiao(工号组, 姓名组, OrgUnit组, Cost_Center组, Business_Area组, PSG组, Job_Title组, Payroll_Area组) {
const param = new URLSearchParams()
param.append('工号组', 工号组)
param.append('姓名组', 姓名组)
param.append('OrgUnit组', OrgUnit组)
param.append('Cost_Center组', Cost_Center组)
param.append('Business_Area组', Business_Area组)
param.append('PSG组', PSG组)
param.append('Job_Title组', Job_Title组)
param.append('Payroll_Area组', Payroll_Area组)
return axios({
url: 'http://192.168.1.122:8055/submit/WebLED.ashx?type=PersonnelIntroduction',
method: 'post',
data: param
})
}
export function getTree() {
return request({
url: '',
method: 'post',
data: {
type: 1,
name: '奖金绩效系统_人员维护_部门关系_查询节点',
param: '子节点=0=int'
}
})
}
export function judgementLevel(code) {
return request({
url: '',
method: 'post',
data: {
type: 1,
name: '判断部门等级',
param: '部门代码=' + code + '=int'
}
})
}
export function tree(data, pid) {
const result = []
let temp
for (let i = 0; i < data.length; i++) {
if (data[i].parentNode === pid) {
const obj = { label: data[i].NodeName, id: data[i].subNode }
temp = tree(data, data[i].subNode)
if (temp.length > 0) {
obj.children = temp
}
result.push(obj)
}
}
return result
}
// 新增部门 LLJ lEV
export function addDepartmentName(num1, num2, num3, num4, num5) {
return request({
url: '',
method: 'post',
data: {
type: 2,
name: '奖金绩效系统_人员维护_部门关系_增加节点',
param: '父节点=' + num1 + '\\&节点名称=' + num2 + '\\&子节点=' + num3 + '\\&Departments_State=' + num4 + '\\&lev=' + num5
}
})
}
// 编辑部门
export function editList(num1, num2) {
return request({
url: '',
method: 'post',
data: {
type: 2,
name: '奖金绩效系统_人员维护_部门关系_修改节点',
param: '子节点=' + num1 + '\\&节点名称=' + num2
}
})
}
// 删除部门
export function delList(num1) {
return request({
url: '',
method: 'post',
data: {
type: 1,
name: '奖金绩效系统_人员维护_部门关系_删除节点',
param: '子节点=' + num1 + '=int'
}
})
}
export function getTablePeople(code, pageCurrent, pageSize) {
return request({
url: '',
method: 'post',
data: {
type: 1,
name: '奖金绩效系统_人员维护_人员查询_根据部门编号',
param: '部门编号=' + code + '=int',
pagination: pageCurrent + '&' + pageSize
}
})
}
export function searchPeople() {
return request({
url: '',
method: 'post',
data: {
type: 1,
name: '奖金绩效系统_人员维护_人员查询_根据工号',
param: '工号=' + arguments[0]
}
})
}
export function addPeople() {
return request({
url: '',
method: 'post',
data: {
type: 2,
name: '奖金绩效系统_人员维护_人员增加新',
param: '工号=' + arguments[0] + '&密码=' + arguments[1] + '&姓名=' + arguments[2] + '&OrgUnit=' + arguments[3] + '&Cost_Center=' + arguments[4] + '&Business_Area=' + arguments[5] + '&PSG=' + arguments[6] +
'&Job_Title=' + arguments[7] + '&Payroll_Area=' + arguments[8]
}
})
}
export function editPeople() {
return request({
url: '',
method: 'post',
data: {
type: 2,
name: '奖金绩效系统_人员维护_人员修改',
param: '工号=' + arguments[0] + '&密码=' + arguments[1] + '&人员性质编号=' + arguments[2] + '&姓名=' + arguments[3] + '&人员编号=' + arguments[4] + '&部门代码=' + arguments[5]
}
})
}
export function selectPersonnelNature() {
return request({
url: '',
method: 'post',
data: {
type: 1,
name: '奖金绩效系统_人员维护_人员性质查询'
}
})
}
export function delPeopleList(num1) {
return request({
url: '',
method: 'post',
data: {
type: 2,
name: '奖金绩效系统_人员维护_人员删除',
param: '人员编号=' + arguments[0]
}
})
}
export function moveGroups(num1, num2) {
return request({
url: '',
method: 'post',
data: {
type: 2,
name: '奖金绩效系统_人员维护_人员移动',
param: '人员编号=' + num1 + '=int&部门编号=' + num2 + '=int'
}
})
}
export function getTPeopleList() {
return request({
url: '',
method: 'post',
data: {
type: 1,
name: '奖金绩效系统_人员维护_人员查询'
}
})
}
export function allocationPeople_add(val1, val2, id) {
return request({
url: '',
method: 'post',
data: {
type: 2,
name: '奖金绩效系统_人员维护_人员分配',
param: '人员编号=' + val1 + '=int&部门编号=' + id + '=int&人员性质=' + val2
}
})
}
export function deleteDepartmentPeopleList(num1, id) {
return request({
url: '',
method: 'post',
data: {
type: 2,
name: '奖金绩效系统_人员维护_人员部门删除',
param: '人员编号=' + num1 + '=int&部门编号=' + id
}
})
}
// 人员整体录入
export function handleSave() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '奖金绩效系统_人员导入_整体录入',
param: `工号组=${arguments[0]}&姓名组=${arguments[1]}&OrgUnit组=${arguments[2]}&Cost_Center组=${arguments[3]}&Business_Area组=${arguments[4]}&PSG组=${arguments[5]}&Job_Title组=${arguments[6]}&Payroll_Area组=${arguments[7]}`
}
})
}

View File

@@ -0,0 +1,113 @@
import request from '@/utils/request'
// 初始化角色
export function initRole() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_项目角色_查询数据'
}
})
}
// 查询人员角色
export function searchPersonnelRole(check1, staffName, check2, num, pageCurrent, pageSize) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据',
param: `姓名_check=${check1}&姓名=${staffName}&角色编号_check=${check2}&角色编号=${num}`,
Pagination: pageCurrent + '&' + pageSize
}
})
}
// 初始化人员信息 弹出框
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].parentNode === pid) {
const obj = { label: data[i].NodeName, id: data[i].subNode }
temp = fn(data, data[i].subNode)
if (temp.length > 0) {
obj.children = temp
}
result.push(obj)
}
}
return result
}
// 根据部门查人员
export function searchPerson(code) {
return request({
url: '',
method: 'post',
data: {
type: 1,
name: '奖金绩效系统_人员维护_人员查询_根据部门编号',
param: `部门编号=${code}`
}
})
}
// 新增人员角色
export function addPersonnelRole(...params) {
return request({
url: '',
method: 'post',
data: {
type: 2,
name: '菜单模块系统_人员角色_增加数据',
param: `人员编号=${params[0]}&角色编号=${params[1]}`
}
})
}
// 删除人员角色
export function deletePersonnelRole(code) {
return request({
url: '',
method: 'post',
data: {
type: 2,
name: '菜单模块系统_人员角色_删除数据',
param: `人员角色流水号=${code}`
}
})
}
// 编辑人员角色
export function editPersonnelRole(...params) {
return request({
url: '',
method: 'post',
data: {
type: 2,
name: '菜单模块系统_人员角色_修改数据',
param: `人员角色流水号=${params[0]}&角色编号=${params[1]}`
}
})
}
export function searchpeople() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '奖金绩效系统_人员角色_人员查询_NEW',
param: 'account=' + arguments[0]
}
})
}

View File

@@ -0,0 +1,50 @@
import request from '@/utils/request'
// 查询
export function searchTable(pageList, pageSize) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '基础数据_库位信息_视图_查询',
Pagination: pageList + '&' + 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,110 @@
import request from '@/utils/request'
// 判断登陆角色
export function judgeRole() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_根据人角色编号',
param: '编号=' + arguments[0]
}
})
}
// 除Segment外部门查询PV
export function selectPV() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_父节点_部门查询',
param: '人员编号=' + arguments[0] + '&部门代码=' + arguments[1]
}
})
}
// Segment查询PV
export function selectPVForSegment() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_父节点_PV',
param: '人员编号=' + arguments[0] + '&部门代码=' + arguments[1]
}
})
}
// 查询奖金得分
export function searchBonus() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '奖金绩效系统_TL得分修改_查询',
param: '月份=' + arguments[0] + '\\&people_id =' + arguments[1] + '\\&rolenumber =' + arguments[2] + '\\&pv_check =' + arguments[3] + '\\&Area =' + arguments[4] + '\\&MU_check =' + arguments[5] + '\\&MU =' + arguments[6] + '\\&部门_check =' + arguments[7] + '\\&部门 =' + arguments[8]
}
})
}
// 查询MU
export function selectMU() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_TL筛选框_筛选MU',
param: '月份=' + arguments[0] + '&角色代码=' + arguments[1] + '&操作者工号=' + arguments[2]
}
})
}
// 查询部门
export function selectDepartment() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_TL筛选框_筛选SL',
param: '月份=' + arguments[0] + '\\&角色代码=' + arguments[1] + '\\&操作者工号=' + arguments[2] + '\\&MU=' + arguments[3]
}
})
}
// 查询Area
export function selectArea() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_TL筛选框_筛选Area',
param: '月份=' + arguments[0] + '\\&角色代码=' + arguments[1] + '\\&操作者工号=' + arguments[2] + '\\&部门=' + arguments[3]
}
})
}
// 执行保存
export function handleSave() {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '奖金绩效系统_TL得分修改_更新',
param: 'id=' + arguments[0] + '\\&计划完成率=' + arguments[1] + '\\&工时效率=' + arguments[2] + '\\&PV打分=' + arguments[3]
}
})
}
// 查询冻结权限
export function initrole() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '输入权限判断'
}
})
}

View File

@@ -0,0 +1,46 @@
import request from '@/utils/request'
export function searchMU() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_筛选框新月份区间_筛选MU',
param: '开始月份=' + arguments[0] + '&结束月份=' + arguments[1] + '&角色代码=' + arguments[2] + '&操作者工号=' + arguments[3]
}
})
}
export function searchSegment() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_筛选框新月份区间_筛选SL',
param: '开始月份=' + arguments[0] + '&结束月份=' + arguments[1] + '&角色代码=' + arguments[2] + '&操作者工号=' + arguments[3] + '&MU=' + arguments[4]
}
})
}
export function searchPV() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_筛选框新月份区间_筛选Area',
param: '开始月份=' + arguments[0] + '&结束月份=' + arguments[1] + '&角色代码=' + arguments[2] + '&操作者工号=' + arguments[3] + '&部门=' + arguments[4]
}
})
}
export function searchCharts() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '奖金绩效系统_报告查询_损失汇总',
param: '开始月份=' + arguments[0] + '&结束月份=' + arguments[1] + '&操作者工号=' + arguments[2] + '&角色代码=' + arguments[3] + '&MU=' + arguments[4] + '&MU_check=' + arguments[5] + '&部门=' + arguments[6] + '&部门_check=' + arguments[7] + '&Area=' + arguments[8] + '&Area_check=' + arguments[9]
}
})
}

View File

@@ -0,0 +1,50 @@
import request from '@/utils/request'
// 查询
export function searchTable(pageList, pageSize) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '基础数据_设备查询',
Pagination: pageList + '&' + 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,24 @@
import request from '@/utils/request'
export function searchMU() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_TL筛选框月份区间_筛选MU ',
param: '开始月份=' + arguments[0] + '&结束月份=' + arguments[1] + '&角色代码=' + arguments[2] + '&操作者工号=' + arguments[3]
}
})
}
export function searchCharts() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '奖金绩效系统_报告查询_TL奖金汇总_MU查询',
param: '开始月份=' + arguments[0] + '&结束月份=' + arguments[1] + '&操作者工号=' + arguments[2] + '&角色代码=' + arguments[3] + '&MU=' + arguments[4] + '&MU_check=' + arguments[5]
}
})
}

View File

@@ -0,0 +1,113 @@
import request from '@/utils/request'
// 判断登陆角色
export function judgeRole() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_根据人角色编号',
param: '编号=' + arguments[0]
}
})
}
// 初始化MU
export function initMU() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_父节点_部门查询',
param: '人员编号=' + arguments[0] + '&部门代码=' + '0'
}
})
}
// 查询奖金得分
// 查询奖金得分
export function searchBonus() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '奖金绩效系统_TL得分查询_SL',
param: '月份=' + arguments[0] + '\\&操作者工号 =' + arguments[1] + '\\&角色代码 =' + arguments[2] + '\\&MU_check =' + arguments[3] + '\\&SL_check =' + arguments[4] + '\\&PV_check =' + arguments[5] + '\\&MU =' + arguments[6] +
'\\&部门 =' + arguments[7] + '\\&Area =' + arguments[8]
}
})
}
// 查询冻结权限
export function initrole() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '输入权限判断'
}
})
}
// MU查詢 LLJ 新增
export function SelectMU() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_TL筛选框_筛选MU',
param: '月份=' + arguments[0] + '\\&角色代码=' + arguments[1] + '\\&操作者工号=' + arguments[2]
}
})
}
// SL查询
export function SelectSL() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_TL筛选框_筛选SL',
param: '月份=' + arguments[0] + '&角色代码=' + arguments[1] + '&操作者工号=' + arguments[2] + '&MU=' + arguments[3]
}
})
}
// SL查询
export function SelectArea() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_TL筛选框_筛选Area',
param: '月份=' + arguments[0] + '\\&角色代码=' + arguments[1] + '\\&操作者工号=' + arguments[2] + '\\&部门=' + arguments[3]
}
})
}
// 审批
export function Approval2() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '奖金绩效系统_TL得分审核_SL',
param: '月份=' + arguments[0] + '\\&操作者工号=' + arguments[1] + '\\&部门=' + arguments[2]
}
})
}
// 确认编辑
export function confirmEdit() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '奖金绩效系统_TL得分修改_SL',
param: 'id=' + arguments[0] + '\\&计划完成率=' + arguments[1] + '\\&工时效率=' + arguments[2] + '\\&PV打分=' + arguments[3]
}
})
}

View File

@@ -0,0 +1,40 @@
import request from '@/utils/request'
// 开启关闭权限控制
export function PowerControl() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '输入冻结日期开启关闭权限控制',
param: '是否开启=' + arguments[0]
}
})
}
// 输入权限判断
export function PowerJudge() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '输入权限判断',
param: '当前日期=' + arguments[0] + '&可以输入月份=' + arguments[1] + '&是否可以输入=' + arguments[2] + '&开始时间=' + arguments[3] + '&结束时间=' + arguments[4] + '&是否启用=' + arguments[5]
}
})
}
// 输入冻结日期
export function FreezeDateInput() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '输入冻结日期',
param: '开始日期=' + arguments[0] + '&结束日期=' + arguments[1]
}
})
}

View File

@@ -0,0 +1,79 @@
import request from '@/utils/request'
export function dataImport() {
return request({
url: '',
method: 'post',
data: {
type: '7',
name: '人员表',
param: arguments[0]
}
})
}
export function personFransfer() {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '人员信息表格导入后轮询到人员表'
}
})
}
export function personTruncate() {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '奖金绩效系统_人员导入_全部人员删除'
}
})
}
export function personSelect(pageList, pageSize) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '奖金绩效系统_人员维护_人员查询新',
Pagination: pageList + '&' + pageSize
}
})
}
export function personDelete() {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '奖金绩效系统_人员维护_人员删除',
param: '人员编号=' + arguments[0]
}
})
}
export function addPeople() {
return request({
url: '',
method: 'post',
data: {
type: 2,
name: '奖金绩效系统_人员维护_人员增加新',
param: '工号=' + arguments[0] + '&密码=' + arguments[1] + '&姓名=' + arguments[2] + '&OrgUnit=' + arguments[3] + '&Cost_Center=' + arguments[4] + '&Business_Area=' + arguments[5] + '&PSG=' + arguments[6] +
'&Job_Title=' + arguments[7] + '&Payroll_Area=' + arguments[8] + '&导入数据是否覆盖=' + arguments[9] + '&中文名=' + arguments[10]
}
})
}
// 人员更新
export function personUpdate() {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '奖金绩效系统_人员维护_人员修改新',
param: 'id=' + arguments[0] + '\\&密码=' + arguments[1] + '\\&姓名=' + arguments[2] + '\\&OrgUnit=' + arguments[3] + '\\&Cost_Center=' + arguments[4] + '\\&Business_Area=' + arguments[5] + '\\&PSG=' + arguments[6] + '\\&Job_Title=' + arguments[7] + '\\&Payroll_Area=' + arguments[8] + '\\&导入数据是否覆盖=' + arguments[9] + '\\&中文名=' + arguments[10]
}
})
}

View File

@@ -0,0 +1,24 @@
import request from '@/utils/request'
export function searchMU() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_白领筛选框月份区间_筛选MU ',
param: '开始月份=' + arguments[0] + '&结束月份=' + arguments[1] + '&角色代码=' + arguments[2] + '&操作者工号=' + arguments[3]
}
})
}
export function searchCharts() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '奖金绩效系统_报告查询_白领奖金汇总_MU查询',
param: '开始月份=' + arguments[0] + '&结束月份=' + arguments[1] + '&操作者工号=' + arguments[2] + '&角色代码=' + arguments[3] + '&MU=' + arguments[4] + '&MU_check=' + arguments[5]
}
})
}

View File

@@ -0,0 +1,147 @@
import request from '@/utils/request'
// 判断登陆角色
export function judgeRole() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_根据人角色编号',
param: '编号=' + arguments[0]
}
})
}
// 查询奖金得分
// 查询奖金得分
export function searchBonus() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '奖金绩效系统_白领得分修改_查询',
param: '月份=' + arguments[0] + '\\&people_id =' + arguments[1] + '\\&rolenumber =' + arguments[2] + '\\&pv_check =' + arguments[3] + '\\&Area =' + arguments[4] + '\\&MU_check =' + arguments[5] + '\\&MU =' + arguments[6] + '\\&部门_check =' + arguments[7] + '\\&部门 =' + arguments[8]
}
})
}
// 查询MU
export function selectMU() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_白领筛选框_筛选MU',
param: '月份=' + arguments[0] + '\\&角色代码=' + arguments[1] + '\\&操作者工号=' + arguments[2]
}
})
}
// 查询部门
export function selectDepartment() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_白领筛选框_筛选SL',
param: '月份=' + arguments[0] + '\\&角色代码=' + arguments[1] + '\\&操作者工号=' + arguments[2] + '\\&MU=' + arguments[3]
}
})
}
// 查询Area
export function selectArea() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_白领筛选框_筛选Area',
param: '月份=' + arguments[0] + '\\&角色代码=' + arguments[1] + '\\&操作者工号=' + arguments[2] + '\\&部门=' + arguments[3]
}
})
}
// 初始化MU
export function initMU() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_父节点_部门查询',
param: '人员编号=' + arguments[0] + '&部门代码=' + '0'
}
})
}
// 除MU外部门查询Segment
export function selectSegment() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_父节点_部门查询',
param: '人员编号=' + arguments[0] + '&部门代码=' + arguments[1]
}
})
}
// MU查询Segment
export function selectSegmentForMU() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_父节点_Segment',
param: '人员编号=' + arguments[0] + '&部门代码=' + arguments[1]
}
})
}
// 除Segment外部门查询PV
export function selectPV() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_父节点_部门查询',
param: '人员编号=' + arguments[0] + '&部门代码=' + arguments[1]
}
})
}
// Segment查询PV
export function selectPVForSegment() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_父节点_PV',
param: '人员编号=' + arguments[0] + '&部门代码=' + arguments[1]
}
})
}
// 执行保存
export function handleSave() {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '奖金绩效系统_白领得分修改_更新',
param: 'id=' + arguments[0] + '&计划完成率=' + arguments[1] + '&工时效率=' + arguments[2] + '&PV打分=' + arguments[3]
}
})
}
// 查询冻结权限
export function initrole() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '输入权限判断'
}
})
}

View File

@@ -0,0 +1,113 @@
import request from '@/utils/request'
// 判断登陆角色
export function judgeRole() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_根据人角色编号',
param: '编号=' + arguments[0]
}
})
}
// 初始化MU
export function initMU() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_人员角色_查询数据_父节点_部门查询',
param: '人员编号=' + arguments[0] + '&部门代码=' + '0'
}
})
}
// 查询奖金得分
// 查询奖金得分
export function searchBonus() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '奖金绩效系统_白领得分查询_SL',
param: '月份=' + arguments[0] + '\\&操作者工号 =' + arguments[1] + '\\&角色代码 =' + arguments[2] + '\\&MU_check =' + arguments[3] + '\\&SL_check =' + arguments[4] + '\\&PV_check =' + arguments[5] + '\\&MU =' + arguments[6] +
'\\&部门 =' + arguments[7] + '\\&Area =' + arguments[8]
}
})
}
// 查询冻结权限
export function initrole() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '输入权限判断'
}
})
}
// MU查詢 LLJ 新增
export function SelectMU() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_白领筛选框_筛选MU',
param: '月份=' + arguments[0] + '&角色代码=' + arguments[1] + '&操作者工号=' + arguments[2]
}
})
}
// SL查询
export function SelectSL() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_白领筛选框_筛选SL',
param: '月份=' + arguments[0] + '\\&角色代码=' + arguments[1] + '\\&操作者工号=' + arguments[2] + '\\&MU=' + arguments[3]
}
})
}
// SL查询
export function SelectArea() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '菜单模块系统_白领筛选框_筛选Area',
param: '月份=' + arguments[0] + '\\&角色代码=' + arguments[1] + '\\&操作者工号=' + arguments[2] + '\\&部门=' + arguments[3]
}
})
}
// 审批
export function Approval2() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '奖金绩效系统_白领得分审核_SL',
param: '月份=' + arguments[0] + '\\&操作者工号=' + arguments[1] + '\\&部门=' + arguments[2]
}
})
}
// 确认编辑
export function confirmEdit() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '奖金绩效系统_蓝白领得分修改_SL',
param: 'id=' + arguments[0] + '&得分=' + arguments[1]
}
})
}

View File

@@ -0,0 +1,213 @@
import request from '@/utils/request'
import axios from 'axios'
export function daobiao(工号组, 姓名组, OrgUnit组, Cost_Center组, Business_Area组, PSG组, Job_Title组, Payroll_Area组) {
const param = new URLSearchParams()
param.append('工号组', 工号组)
param.append('姓名组', 姓名组)
param.append('OrgUnit组', OrgUnit组)
param.append('Cost_Center组', Cost_Center组)
param.append('Business_Area组', Business_Area组)
param.append('PSG组', PSG组)
param.append('Job_Title组', Job_Title组)
param.append('Payroll_Area组', Payroll_Area组)
return axios({
url: 'http://192.168.1.122:8055/submit/WebLED.ashx?type=PersonnelIntroduction',
method: 'post',
data: param
})
}
export function getTree() {
return request({
url: '',
method: 'post',
data: {
type: 1,
name: '奖金绩效系统_人员维护_部门关系_查询节点',
param: '子节点=0=int'
}
})
}
export function judgementLevel(code) {
return request({
url: '',
method: 'post',
data: {
type: 1,
name: '判断部门等级',
param: '部门代码=' + code + '=int'
}
})
}
export function tree(data, pid) {
const result = []
let temp
for (let i = 0; i < data.length; i++) {
if (data[i].parentNode === pid) {
const obj = { label: data[i].NodeName, id: data[i].subNode }
temp = tree(data, data[i].subNode)
if (temp.length > 0) {
obj.children = temp
}
result.push(obj)
}
}
return result
}
// 新增部门 LLJ lEV
export function addDepartmentName(num1, num2, num3, num4, num5) {
return request({
url: '',
method: 'post',
data: {
type: 2,
name: '奖金绩效系统_人员维护_部门关系_增加节点',
param: '父节点=' + num1 + '\\&节点名称=' + num2 + '\\&子节点=' + num3 + '\\&Departments_State=' + num4 + '\\&lev=' + num5
}
})
}
// 编辑部门
export function editList(num1, num2) {
return request({
url: '',
method: 'post',
data: {
type: 2,
name: '奖金绩效系统_人员维护_部门关系_修改节点',
param: '子节点=' + num1 + '\\&节点名称=' + num2
}
})
}
// 删除部门
export function delList(num1) {
return request({
url: '',
method: 'post',
data: {
type: 1,
name: '奖金绩效系统_人员维护_部门关系_删除节点',
param: '子节点=' + num1 + '=int'
}
})
}
export function getTablePeople(code, pageCurrent, pageSize) {
return request({
url: '',
method: 'post',
data: {
type: 1,
name: '奖金绩效系统_人员维护_人员查询_根据部门编号',
param: '部门编号=' + code + '=int',
pagination: pageCurrent + '&' + pageSize
}
})
}
export function searchPeople() {
return request({
url: '',
method: 'post',
data: {
type: 1,
name: '奖金绩效系统_人员维护_人员查询_根据工号',
param: '工号=' + arguments[0]
}
})
}
export function addPeople() {
return request({
url: '',
method: 'post',
data: {
type: 2,
name: '奖金绩效系统_人员维护_人员增加',
param: '部门编号=' + arguments[0] + '&工号=' + arguments[1] + '&密码=' + arguments[2] + '&人员性质编号=' + arguments[3] + '&姓名=' + arguments[4]
}
})
}
export function editPeople() {
return request({
url: '',
method: 'post',
data: {
type: 2,
name: '奖金绩效系统_人员维护_人员修改',
param: '工号=' + arguments[0] + '&密码=' + arguments[1] + '&人员性质编号=' + arguments[2] + '&姓名=' + arguments[3] + '&人员编号=' + arguments[4] + '&部门代码=' + arguments[5]
}
})
}
export function selectPersonnelNature() {
return request({
url: '',
method: 'post',
data: {
type: 1,
name: '奖金绩效系统_人员维护_人员性质查询'
}
})
}
export function delPeopleList(num1) {
return request({
url: '',
method: 'post',
data: {
type: 2,
name: '奖金绩效系统_人员维护_人员删除',
param: '人员编号=' + arguments[0]
}
})
}
export function moveGroups(num1, num2) {
return request({
url: '',
method: 'post',
data: {
type: 2,
name: '奖金绩效系统_人员维护_人员移动',
param: '人员编号=' + num1 + '=int&部门编号=' + num2 + '=int'
}
})
}
export function getTPeopleList() {
return request({
url: '',
method: 'post',
data: {
type: 1,
name: '奖金绩效系统_人员维护_人员查询'
}
})
}
export function allocationPeople_add(val1, val2, id) {
return request({
url: '',
method: 'post',
data: {
type: 2,
name: '奖金绩效系统_人员维护_人员分配',
param: '人员编号=' + val1 + '=int&部门编号=' + id + '=int&人员性质=' + val2
}
})
}
export function deleteDepartmentPeopleList(num1, id) {
return request({
url: '',
method: 'post',
data: {
type: 2,
name: '奖金绩效系统_人员维护_人员部门删除',
param: '人员编号=' + num1 + '=int&部门编号=' + id
}
})
}
// 人员整体录入
export function handleSave() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '奖金绩效系统_人员导入_整体录入',
param: `工号组=${arguments[0]}&姓名组=${arguments[1]}&OrgUnit组=${arguments[2]}&Cost_Center组=${arguments[3]}&Business_Area组=${arguments[4]}&PSG组=${arguments[5]}&Job_Title组=${arguments[6]}&Payroll_Area组=${arguments[7]}`
}
})
}

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

@@ -0,0 +1,44 @@
import request from '@/utils/request'
import state from '@/store'
import router from '@/router'
export function login(username, password) {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '1',
name: '菜单模块系统_用户名密码_查询数据',
param: `用户名=${username}&密码=${password}`
}
})
}
//
export function getInfo(token) {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '1',
name: '菜单模块系统_项目角色模块列表_二级_查询数据',
param: `角色编号=${token}`
}
})
}
// 修改密码
export function editPassword(num1, num2, num3, num4) {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '2',
name: '账号信息_修改密码_MESWORK',
param: '考勤编号=' + num1 + '=string&原始密码=' + 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.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,70 @@
@font-face {
font-family: MiSans Demibold;
src: url("MiSans-Demibold.ttf");
font-weight: normal;
font-style: normal;
font-display: block;
}
@font-face {
font-family: MiSans Bold;
src: url("MiSans-Bold.ttf");
font-weight: normal;
font-style: normal;
font-display: block;
}
@font-face {
font-family: MiSans ExtraLight;
src: url("MiSans-ExtraLight.ttf");
font-weight: normal;
font-style: normal;
font-display: block;
}
@font-face {
font-family: MiSans Heavy;
src: url("MiSans-Heavy.ttf");
font-weight: normal;
font-style: normal;
font-display: block;
}
@font-face {
font-family: MiSans Light;
src: url("MiSans-Light.ttf");
font-weight: normal;
font-style: normal;
font-display: block;
}
@font-face {
font-family: MiSans Medium;
src: url("MiSans-Medium.ttf");
font-weight: normal;
font-style: normal;
font-display: block;
}
@font-face {
font-family: MiSans Normal;
src: url("MiSans-Normal.ttf");
font-weight: normal;
font-style: normal;
font-display: block;
}
@font-face {
font-family: MiSans Regular;
src: url("MiSans-Regular.ttf");
font-weight: normal;
font-style: normal;
font-display: block;
}
@font-face {
font-family: MiSans Semibold;
src: url("MiSans-Semibold.ttf");
font-weight: normal;
font-style: normal;
font-display: block;
}
@font-face {
font-family: MiSans Thin;
src: url("MiSans-Thin.ttf");
font-weight: normal;
font-style: normal;
font-display: block;
}

BIN
src/assets/gaojing.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

BIN
src/assets/img/111.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 121 KiB

BIN
src/assets/img/DFlogo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 408 KiB

BIN
src/assets/img/DFlogo2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

BIN
src/assets/img/Init1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 162 B

BIN
src/assets/img/MES.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
src/assets/img/MESLONG.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 810 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 822 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 307 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 300 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 306 KiB

View File

@@ -0,0 +1,142 @@
import request from '@/utils/request'
import state from '@/store'
import router from '@/router'
// 初始化机床项目
export function initProject() {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '1',
name: 'PDM_项目名称_查询数据'
}
})
}
// 组件查询
export function searchgroup(num) {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '1',
name: 'PDM_组件名称_查询数据',
param: '机床流水号=' + num
}
})
}
// 机床查询
export function searchTable1(machineNumberValue, check2) {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '1',
name: '车间装配管理_机床信息_查询数据',
param: '机床流水号_check=' + check2 + '&机床流水号=' + machineNumberValue
}
})
}
export function editData(machineNumberValue, num1, num2, num3, num4) {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '2',
name: 'PDM_机床名称_机床状态_修改数据_编辑',
param: '机床流水号=' + machineNumberValue + '&机床装配开始时间=' + num1 + '=datetime' + '&机床装配实际完成时间=' + num2 + '=datetime' + '&调试开始时间=' + num3 + '=datetime' + '&调试结束时间=' + num4 + '=datetime'
}
})
}
// // 组件查询
// export function searchTable2(machineNumberValue, check2, groupNumberValue, check3) {
// return request({
// url: '',
// method: 'post',
// data: {
// type: '1',
// name: '车间管理_基本件采购_查询数据',
// param: '机床流水号_check=' + check2 + '&机床流水号=' + machineNumberValue + '&组件流水号_check=' + check3 + '&组件流水号=' + groupNumberValue
// }
// })
// }
// 机床名称_机床状态_修改数据
export function MachineToolStateUpdate(machineNumberValue, check) {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '2',
name: 'PDM_机床名称_机床状态_修改数据',
param: '机床流水号=' + machineNumberValue + '&装配状态=' + check
}
})
}
// 机床名称_调试状态_修改数据
export function DebugStatusUpdate(machineNumberValue, check) {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '2',
name: 'PDM_机床名称_调试状态_修改数据',
param: '机床流水号=' + machineNumberValue + '&调试状态=' + check
}
})
}
// 组件名称_组件状态_修改数据
export function ComponentStateUpdate() {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '1',
name: '车间管理_工作计划_执行计划',
param: '计划流水号=' + arguments[0] + '&是否工作=' + arguments[1]
}
})
}
// 车间管理_工作计划_查询
// 2019/8/3 16:40:23
export function searchTable2() {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '1',
name: '车间管理_工作计划_查询',
param: '机床流水号=' + arguments[0] + '&计划类型=' + arguments[1]
}
})
}
// 车间管理_工作计划_执行计划_编辑
export function submitTable2() {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '2',
name: '车间管理_工作计划_执行计划_编辑',
param: '备注=' + arguments[0] + '&计划流水号=' + arguments[1] + '&实际工时=' + arguments[2] + '&修补工时=' + arguments[3]
}
})
}

View File

@@ -0,0 +1,100 @@
import request from '@/utils/request'
import state from '@/store'
import router from '@/router'
// 初始化项目
export function initProject() {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '1',
name: 'PDM_项目名称_查询数据'
}
})
}
// 查询组件工艺
export function searchDetail(num) {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '1',
name: '车间装配管理_组件工艺_查询数据',
param: '机床流水号=' + num
}
})
}
// 查询工序
export function searchProcess(num) {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '1',
name: '车间装配管理_装配工序_查询数据',
param: '组件工艺流水号=' + num
}
})
}
// 编辑
export function update(num, num1, num2, num3, num4) {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '2',
name: '车间装配管理_装配工序工时_编辑数据',
param: '装配工序流水号=' + num + '&实际工时=' + num1 + '&完成情况=' + num2 + '&检验情况=' + num3 + '&备注=' + num4
}
})
}
export function getTree() {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: 1,
name: '人事档案管理_部门关系_查询节点',
param: '子节点=0=int'
}
})
}
export function getTable8(code) {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: 1,
name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号',
param: '考核部门编号=' + code + '=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
}

View File

@@ -0,0 +1,153 @@
import request from '@/utils/request'
import state from '@/store'
import router from '@/router'
// 初始化机床项目
export function initProject() {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '1',
name: '车间装配管理_装配MES_机床编号_查询数据'
}
})
}
export function initProjectNew(role, personnel) {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '1',
name: '机床_查询_营销筛选',
param: '角色编号=' + role + '&人员编号=' + personnel
}
})
}
export function searchTable(check, machineNumberValue, check1, startTime, endTime, check2, stateValue, check3, workerValue) {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '1',
name: '车间管理_装配任务_MES_查询数据',
param: '机床流水号_check=' + check + '&机床流水号=' + machineNumberValue + '&时间段_check=' + check1 + '&开始时间=' + startTime + '&结束时间=' + endTime + '&状态_check=' + check2 + '&状态=' + stateValue + '&人员_check=' + check3 + '&人员=' + workerValue
}
})
}
export function searchTableALL(check, machineNumberValue, check1, startTime, endTime, check2, stateValue, check3, workerValue, role, personnel) {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '1',
name: '车间管理_装配任务_MES_查询数据_全部',
param: '机床流水号_check=' + check + '&机床流水号=' + machineNumberValue + '&时间段_check=' + check1 + '&开始时间=' + startTime + '&结束时间=' + endTime + '&状态_check=' + check2 + '&状态=' + stateValue + '&人员_check=' + check3 + '&人员=' + workerValue + '&角色编号=' + role + '&人员编号=' + personnel
}
})
}
// 获取分配后装配人员
export function searchName(num) {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '1',
name: '车间管理_装配计划_装配工_查询数据',
param: '计划流水号=' + num
}
})
}
export function ComponentStateUpdate() {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '2',
name: '车间管理_工作计划_执行计划',
param: '计划流水号=' + arguments[0] + '&是否工作=' + arguments[1] + '&考勤编号=' + arguments[2]
}
})
}
export function submitSuspend() {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '2',
name: '车间管理_工作计划_暂停计划',
param: '计划流水号=' + arguments[0] + '&是否暂停=' + arguments[1]
}
})
}
// 获取装配人员
export function searchPeople() {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '1',
name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号',
param: '考核部门编号=11'
}
})
}
export function submitRework() {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间装配管理_装配任务_返工',
param: '计划流水号=' + arguments[0] + '&返工原因=' + arguments[1] + '&返工工时=' + arguments[2]
}
})
}
export function searchReworkMX(num) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间装配管理_装配任务_返工记录_查询',
param: '计划流水号=' + num
}
})
}
export function searchProcess(num) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间装配管理_装配工艺_查询',
param: '计划流水号=' + num
}
})
}
export function submitRemark(num, remark) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '车间装配管理_装配工艺_备注编辑',
param: '计划流水号=' + num + '&备注=' + remark
}
})
}

View File

@@ -0,0 +1,46 @@
import request from '@/utils/request'
import state from '@/store'
import router from '@/router'
// 初始化项目
export function initProject() {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '1',
name: 'PDM_项目名称_查询数据'
}
})
}
// 主表查询
export function searchTable(check1, machineNumberValue, check2, time, time1, pageCurrent, pageSize) {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '1',
name: '车间装配管理_计划信息_查询数据',
param: '机床流水号_check=' + check1 + '=int&机床流水号=' + machineNumberValue + '&计划完成日期_check=' + check2 + '=int&开始时间=' + time + '&结束时间=' + time1,
Pagination: pageCurrent + '&' + pageSize
}
})
}
// 计划下发
export function goDown(ProjectSerialNumber, MachineSerialNumber, ProcessStartTime, ProcessEndTime, TimeToGo) {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '2',
name: '车间装配管理_装配计划_下发',
param: '项目流水号=' + ProjectSerialNumber + '&机床流水号=' + MachineSerialNumber + '&工艺开始时间=' + ProcessStartTime + '&工艺结束时间=' + ProcessEndTime + '&下发时间=' + TimeToGo
}
})
}

View File

@@ -0,0 +1,59 @@
import request from '@/utils/request'
import state from '@/store'
import router from '@/router'
// 初始化项目
export function initProject() {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '1',
name: 'PDM_项目名称_查询数据'
}
})
}
export function initPerson() {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '1',
name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号',
param: '考核部门编号=9=int'
}
})
}
// 主表查询
export function searchTable(check1, machineNumberValue, pageCurrent, pageSize) {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '1',
name: '车间装配管理_工艺任务_查询数据',
param: '机床流水号_check=' + check1 + '=int&机床流水号=' + machineNumberValue,
Pagination: pageCurrent + '&' + pageSize
}
})
}
// 任务分配
export function Preservation(ProcessSerialNumber, PersonnelNumber) {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '2',
name: '车间装配管理_装配工艺_任务分配',
param: '工艺计划流水号=' + ProcessSerialNumber + '&人员编号=' + PersonnelNumber
}
})
}

View File

@@ -0,0 +1,324 @@
import request from '@/utils/request'
import state from '@/store'
import router from '@/router'
// 初始化 工艺员A
export function initCraftmen() {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '1',
name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号',
param: '考核部门编号=9'
}
})
}
// 初始化 工序分类
export function initprocessNameClass() {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '1',
name: '车间装配管理_工序分类_查询数据'
}
})
}
// 初始化 机床分类
export function initmachineType() {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '1',
name: '车间装配管理_机床分类_查询数据'
}
})
}
// 查询机床编号
export function SearchMachine(num) {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '1',
name: '车间装配管理_典型机床_查询数据',
param: '机床分类流水号=' + num
}
})
}
// 查询工序名称
export function initProcessName(num) {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '1',
name: '车间装配管理_工序名称_查询数据',
param: '工序分类流水号=' + num
}
})
}
// 查询机床
export function searchMachine(num, num1) {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '1',
name: '车间装配管理_机床编号_查询数据',
param: '人员编号=' + num + '&是否编制=' + num1
}
})
}
// 查询组件
export function searchGroup(num) {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '1',
name: '车间装配管理_组件名称_查询数据',
param: '机床流水号=' + num
}
})
}
// 查询组件工艺
export function searchDetail(num) {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '1',
name: '车间装配管理_组件工艺_查询数据',
param: '机床流水号=' + num
}
})
}
// 增加组件工艺
export function submitAdd(machineNumberValue, SerialNumber, Group, AssemblyTask, GroupNumberValue1) {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '2',
name: '车间装配管理_组件工艺_增加数据',
param: '机床流水号=' + machineNumberValue + '&序号=' + SerialNumber + '&组号=' + Group + '&装配任务=' + AssemblyTask + '&组件流水号=' + GroupNumberValue1
}
})
}
// 编辑组件工艺
export function submitEdit(GroupProcessNumber, SerialNumber, Group, AssemblyTask, GroupNumberValue1) {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '2',
name: '车间装配管理_组件工艺_编辑数据',
param: '组件工艺流水号=' + GroupProcessNumber + '&序号=' + SerialNumber + '&组号=' + Group + '&装配任务=' + AssemblyTask + '&组件流水号=' + GroupNumberValue1
}
})
}
// 删除组件工艺
export function deleteGroup(GroupProcessNumber) {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '2',
name: '车间装配管理_组件工艺_删除数据',
param: '组件工艺流水号=' + GroupProcessNumber
}
})
}
// 查询工序
export function searchProcess(num) {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '1',
name: '车间装配管理_装配工序_查询数据',
param: '组件工艺流水号=' + num
}
})
}
// 增加工序
export function insertOne(num) {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '2',
name: '车间装配管理_装配工序_增加数据',
param: '组件工艺流水号=' + num
}
})
}
// 编辑工序
export function update(num, num1, num2, num3, num4) {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '2',
name: '车间装配管理_装配工序_编辑数据',
param: '装配工序流水号=' + num + '&序号=' + num1 + '&工序名称=' + num2 + '&工艺内容及装配具体要求=' + num3 + '&质检=' + num4
}
})
}
// 编辑工序1
export function update1(num, num1, num2, num3) {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '2',
name: '车间装配管理_装配工序_编辑数据',
param: '装配工序流水号=' + num + '&序号=' + num1 + '&工序名称=' + num2 + '&工艺内容及装配具体要求=' + num3
}
})
}
// 上移
export function upOne(num, num1, num2) {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '2',
name: '车间装配管理_装配工序_上移',
param: '装配工序流水号=' + num + '&组件工艺流水号=' + num1 + '&工序顺序=' + num2
}
})
}
// 下移
export function downOne(num, num1, num2) {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '2',
name: '车间装配管理_装配工序_下移',
param: '装配工序流水号=' + num + '&组件工艺流水号=' + num1 + '&工序顺序=' + num2
}
})
}
// 删除工序
export function deleteOne(num) {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '2',
name: '车间装配管理_装配工序_删除数据',
param: '装配工序流水号=' + num
}
})
}
// 保存
export function saveApprove(num) {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '2',
name: '车间装配管理_机床工艺_编制完成',
param: '机床流水号=' + num
}
})
}
// 工艺调整
export function returnEdit(num) {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '2',
name: '车间装配管理_机床工艺_调整',
param: '机床流水号=' + num
}
})
}
// 工艺删除
export function deleteTable(num) {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '2',
name: '车间装配管理_机床工艺_删除数据',
param: '机床流水号=' + num
}
})
}
// 增加已完组件工艺 工艺拷贝
export function processCopy1(machineNumberValue, SerialNumber, Group, AssemblyTask) {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '2',
name: '车间装配管理_已完组件工艺_增加数据',
param: '机床流水号=' + machineNumberValue + '&序号=' + SerialNumber + '&组号=' + Group + '&装配任务=' + AssemblyTask + '&组件工艺流水号=10=int=output'
}
})
}
// 增加已完装配工序 工艺拷贝
export function procedureCopy1(GroupNum, SerialNumberGroup, ProcedureNameGroup, ProcessContentGroup, QualityTesting, ProcessSequence) {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '2',
name: '车间装配管理_已完装配工序_增加数据',
param: '组件工艺流水号=' + GroupNum + '&序号=' + SerialNumberGroup + '&工序名称=' + ProcedureNameGroup + '&工艺内容及装配具体要求=' + ProcessContentGroup + '&质检=' + QualityTesting + '&工序顺序=' + ProcessSequence
}
})
}

View File

@@ -0,0 +1,103 @@
import request from '@/utils/request'
import state from '@/store'
import router from '@/router'
// 初始化机床项目
export function initProject() {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '1',
name: 'PDM_项目名称_查询数据'
}
})
}
// 初始化检测项
export function searchTest() {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '1',
name: '质检管理_装配质检_检测项_查询数据'
}
})
}
// 组件查询
export function searchgroup(num) {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '1',
name: 'PDM_组件名称_查询数据',
param: '机床流水号=' + num
}
})
}
// 质检管理_质量情况_查询数据
export function selecttable(check1, value1, check2, value2, check3, value3, check4, value4, check5, time1, time2, pageCurrent, pageSize) {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '1',
name: '质检管理_装配质检_质检情况_查询数据',
param: '机床流水号_check=' + check1 + '&机床流水号=' + value1 + '&组件流水号_check=' + check2 + '&组件流水号=' + value2 + '&检测项_check=' + check3 + '&检测项流水号=' + value3 +
'&质检情况_check=' + check4 + '&质检情况=' + value4 + '&时间段_check=' + check5 + '&开始时间=' + time1 + '&结束时间=' + time2,
Pagination: pageCurrent + '&' + pageSize
}
})
}
// 质检管理_质量情况_查询数据
export function selecttable22(check1, value1, check2, value2, check3, value3, check4, value4) {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '1',
name: '质检管理_装配质检_质检情况_查询数据',
param: '机床流水号_check=' + check1 + '&机床流水号=' + value1 + '&组件流水号_check=' + check2 + '&组件流水号=' + value2 + '&检测项_check=' + check3 + '&检测项流水号=' + value3 +
'&质检情况_check=' + check4 + '&质检情况=' + value4
}
})
}
// 检测项明细查询
export function searchMX(num) {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '1',
name: '质检管理_装配质检_明细_质检情况_查询数据',
param: '装配质检流水号=' + num
}
})
}
// 检测统计
export function searchTestStatistics(num) {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '1',
name: '质检管理_装配质检_质检情况_统计数据',
param: '机床流水号=' + num
}
})
}

View File

@@ -0,0 +1,102 @@
import request from '@/utils/request'
import state from '@/store'
import router from '@/router'
// 初始化 工艺员A
export function initCraftmen() {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '1',
name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号',
param: '考核部门编号=9'
}
})
}
// 查询机床
export function searchMachine(num1) {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '1',
name: '车间装配管理_机床编号_查询数据_根据定额',
param: '是否定额=' + num1
}
})
}
// 查询组件工艺
export function searchDetail(num) {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '1',
name: '车间装配管理_组件工艺_查询数据',
param: '机床流水号=' + num
}
})
}
// 查询工序
export function searchProcess(num) {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '1',
name: '车间装配管理_装配工序_查询数据',
param: '组件工艺流水号=' + num
}
})
}
// 编辑工时
export function update(num, num1) {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '2',
name: '车间装配管理_装配工序工时_编辑数据',
param: '装配工序流水号=' + num + '&工艺工时=' + num1
}
})
}
// 保存
export function saveApprove(num) {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '2',
name: '车间装配管理_机床工艺_定额完成',
param: '机床流水号=' + num
}
})
}
// 工艺调整
export function returnEdit(num) {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '2',
name: '车间装配管理_机床工艺_定额调整',
param: '机床流水号=' + num
}
})
}

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