commit 02d1678fffc8d61a895e6c3a04a281cc18d12204 Author: zhangdingyu <974548713@qq.com> Date: Wed Sep 18 09:34:02 2019 +0800 家里的样式 diff --git a/.babelrc b/.babelrc new file mode 100644 index 00000000..a2a380fe --- /dev/null +++ b/.babelrc @@ -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"] +} diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..ea6e20f5 --- /dev/null +++ b/.editorconfig @@ -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 diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 00000000..7a8a0c6b --- /dev/null +++ b/.eslintignore @@ -0,0 +1,5 @@ +build/*.js +config/*.js +src/assets +src/icon +src/views/ProjectManagement diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100644 index 00000000..0e5c28a5 --- /dev/null +++ b/.eslintrc.js @@ -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'] + } +} + diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..78a0eada --- /dev/null +++ b/.gitignore @@ -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 diff --git a/.postcssrc.js b/.postcssrc.js new file mode 100644 index 00000000..eee3e92d --- /dev/null +++ b/.postcssrc.js @@ -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": {} + } +} diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..16574d97 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,5 @@ +language: node_js +node_js: stable +script: npm run test +notifications: + email: false diff --git a/LICENSE b/LICENSE new file mode 100644 index 00000000..61515750 --- /dev/null +++ b/LICENSE @@ -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. diff --git a/build/build.js b/build/build.js new file mode 100644 index 00000000..8c6cebd6 --- /dev/null +++ b/build/build.js @@ -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" + ) + ) + }) +}) diff --git a/build/check-versions.js b/build/check-versions.js new file mode 100644 index 00000000..c5c29e90 --- /dev/null +++ b/build/check-versions.js @@ -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) + } +} diff --git a/build/logo.png b/build/logo.png new file mode 100644 index 00000000..f3d2503f Binary files /dev/null and b/build/logo.png differ diff --git a/build/utils.js b/build/utils.js new file mode 100644 index 00000000..c96d0936 --- /dev/null +++ b/build/utils.js @@ -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') + }) + } +} diff --git a/build/vue-loader.conf.js b/build/vue-loader.conf.js new file mode 100644 index 00000000..5496c931 --- /dev/null +++ b/build/vue-loader.conf.js @@ -0,0 +1,5 @@ +'use strict' + +module.exports = { + //You can set the vue-loader configuration by yourself. +} diff --git a/build/webpack.base.conf.js b/build/webpack.base.conf.js new file mode 100644 index 00000000..4be51b10 --- /dev/null +++ b/build/webpack.base.conf.js @@ -0,0 +1,107 @@ +'use strict' +const path = require('path') +const utils = require('./utils') +const config = require('../config') +const { VueLoaderPlugin } = require('vue-loader') +const vueLoaderConfig = require('./vue-loader.conf') + +function resolve(dir) { + return path.join(__dirname, '..', dir) +} + +const createLintingRule = () => ({ + test: /\.(js|vue)$/, + loader: 'eslint-loader', + enforce: 'pre', + include: [resolve('src'), resolve('test')], + options: { + formatter: require('eslint-friendly-formatter'), + emitWarning: !config.dev.showEslintErrorsInOverlay + } +}) + +module.exports = { + context: path.resolve(__dirname, '../'), + entry: { + app: './src/main.js' + }, + output: { + path: config.build.assetsRoot, + filename: '[name].js', + publicPath: + process.env.NODE_ENV === 'production' + ? config.build.assetsPublicPath + : config.dev.assetsPublicPath + }, + resolve: { + extensions: ['.js', '.vue', '.json'], + alias: { + '@': resolve('src') + } + }, + module: { + rules: [ + ...(config.dev.useEslint ? [createLintingRule()] : []), + { + test: /\.vue$/, + loader: 'vue-loader', + options: vueLoaderConfig + }, + { + test: /\.js$/, + loader: 'babel-loader', + include: [ + resolve('src'), + resolve('test'), + resolve('node_modules/webpack-dev-server/client') + ] + }, + { + test: /\.svg$/, + loader: 'svg-sprite-loader', + include: [resolve('src/icons')], + options: { + symbolId: 'icon-[name]' + } + }, + { + test: /\.(png|jpe?g|gif|svg)(\?.*)?$/, + loader: 'url-loader', + exclude: [resolve('src/icons')], + options: { + limit: 10000, + name: utils.assetsPath('img/[name].[hash:7].[ext]') + } + }, + { + test: /\.(mp4|webm|ogg|mp3|wav|flac|aac)(\?.*)?$/, + loader: 'url-loader', + options: { + limit: 10000, + name: utils.assetsPath('media/[name].[hash:7].[ext]') + } + }, + { + test: /\.(woff2?|eot|ttf|otf)(\?.*)?$/, + loader: 'url-loader', + options: { + limit: 10000, + name: utils.assetsPath('fonts/[name].[hash:7].[ext]') + } + } + ] + }, + plugins: [new VueLoaderPlugin()], + node: { + // prevent webpack from injecting useless setImmediate polyfill because Vue + // source contains it (although only uses it if it's native). + setImmediate: false, + // prevent webpack from injecting mocks to Node native modules + // that does not make sense for the client + dgram: 'empty', + fs: 'empty', + net: 'empty', + tls: 'empty', + child_process: 'empty' + } +} diff --git a/build/webpack.dev.conf.js b/build/webpack.dev.conf.js new file mode 100644 index 00000000..13525ee8 --- /dev/null +++ b/build/webpack.dev.conf.js @@ -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) + } + }) +}) diff --git a/build/webpack.prod.conf.js b/build/webpack.prod.conf.js new file mode 100644 index 00000000..4be56e77 --- /dev/null +++ b/build/webpack.prod.conf.js @@ -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 diff --git a/config/dev.env.js b/config/dev.env.js new file mode 100644 index 00000000..e3c8ffc7 --- /dev/null +++ b/config/dev.env.js @@ -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"', +}) diff --git a/config/index.js b/config/index.js new file mode 100644 index 00000000..7609b831 --- /dev/null +++ b/config/index.js @@ -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: 9528, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined + autoOpenBrowser: true, + errorOverlay: true, + notifyOnErrors: false, + poll: false, // https://webpack.js.org/configuration/dev-server/#devserver-watchoptions- + + // Use Eslint Loader? + // If true, your code will be linted during bundling and + // linting errors and warnings will be shown in the console. + useEslint: true, + // If true, eslint errors and warnings will also be shown in the error overlay + // in the browser. + showEslintErrorsInOverlay: false, + + /** + * Source Maps + */ + + // https://webpack.js.org/configuration/devtool/#development + devtool: 'cheap-source-map', + + // CSS Sourcemaps off by default because relative paths are "buggy" + // with this option, according to the CSS-Loader README + // (https://github.com/webpack/css-loader#sourcemaps) + // In our experience, they generally work as expected, + // just be aware of this issue when enabling this option. + cssSourceMap: false + }, + + build: { + // Template for index.html + index: path.resolve(__dirname, '../dist/index.html'), + + // Paths + assetsRoot: path.resolve(__dirname, '../dist'), + assetsSubDirectory: 'static', + + /** + * You can set by youself according to actual condition + * You will need to set this if you plan to deploy your site under a sub path, + * for example GitHub pages. If you plan to deploy your site to https://foo.github.io/bar/, + * then assetsPublicPath should be set to "/bar/". + * In most cases please use '/' !!! + */ + assetsPublicPath: '/', + + /** + * Source Maps + */ + + productionSourceMap: false, + // https://webpack.js.org/configuration/devtool/#production + devtool: 'source-map', + + // Gzip off by default as many popular static hosts such as + // Surge or Netlify already gzip all static assets for you. + // Before setting to `true`, make sure to: + // npm install --save-dev compression-webpack-plugin + productionGzip: false, + productionGzipExtensions: ['js', 'css'], + + // Run the build command with an extra argument to + // View the bundle analyzer report after build finishes: + // `npm run build --report` + // Set to `true` or `false` to always turn it on or off + bundleAnalyzerReport: process.env.npm_config_report || false, + + // `npm run build:prod --generate_report` + generateAnalyzerReport: process.env.npm_config_generate_report || false + } +} diff --git a/config/prod.env.js b/config/prod.env.js new file mode 100644 index 00000000..836ec67c --- /dev/null +++ b/config/prod.env.js @@ -0,0 +1,5 @@ +'use strict' +module.exports = { + NODE_ENV: '"production"', + BASE_API: '"https://easy-mock.com/mock/5950a2419adc231f356a6636/vue-admin"', +} diff --git a/debug.log b/debug.log new file mode 100644 index 00000000..4faf2275 --- /dev/null +++ b/debug.log @@ -0,0 +1,5 @@ +[0301/083149.303:ERROR:http_transport_win.cc(273)] WinHttpSendRequest: ɹɡ (0x0) +[0515/102246.688:ERROR:http_transport_win.cc(276)] WinHttpSendRequest: ɹɡ (0x0) +[0531/081503.881:ERROR:http_transport_win.cc(276)] WinHttpSendRequest: ɹɡ (0x0) +[0605/094355.406:ERROR:http_transport_win.cc(276)] WinHttpSendRequest: ɹɡ (0x0) +[0710/121232.515:ERROR:http_transport_win.cc(276)] WinHttpSendRequest: ɹɡ (0x0) diff --git a/favicon.ico b/favicon.ico new file mode 100644 index 00000000..8ec6528d Binary files /dev/null and b/favicon.ico differ diff --git a/index.html b/index.html new file mode 100644 index 00000000..d8202829 --- /dev/null +++ b/index.html @@ -0,0 +1,14 @@ + + + + + + 高精机电装备有限公司数字化工厂 + + + +
+ + + + diff --git a/package.json b/package.json new file mode 100644 index 00000000..a9b81f49 --- /dev/null +++ b/package.json @@ -0,0 +1,97 @@ +{ + "name": "gaojing", + "version": "1.1.0", + "description": "A Management Information System of JANGSU GAOJING MECHANICAL EQUIPMENET CO,.LTD,the template is from git+https://github.com/PanJiaChen/vue-element-admin.git", + "author": "MESWORK", + "scripts": { + "dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js", + "start": "npm run dev", + "build": "node build/build.js", + "build:report": "npm_config_report=true npm run build", + "lint": "eslint --fix --ext .js,.vue src", + "test": "npm run lint", + "svgo": "svgo -f src/icons/svg --config=src/icons/svgo.yml" + }, + "dependencies": { + "@xkeshi/vue-barcode": "^1.0.0", + "axios": "0.18.0", + "echarts": "^4.2.0-rc.2", + "element-ui": "2.8.2", + "file-saver": "^1.3.8", + "html2canvas": "^1.0.0-alpha.12", + "jquery": "^3.3.1", + "js-cookie": "2.2.0", + "jspdf": "^1.5.2", + "node-sass": "^4.10.0", + "normalize.css": "7.0.0", + "nprogress": "0.2.0", + "qrcode": "^1.3.2", + "time-formater": "^1.0.3", + "v-viewer": "^1.3.1", + "vue": "2.5.17", + "vue-count-to": "^1.0.13", + "vue-direction-key": "^1.0.5", + "vue-router": "3.0.1", + "vuex": "3.0.1", + "xlsx": "^0.14.0", + "xlsx-style": "^0.8.13" + }, + "devDependencies": { + "autoprefixer": "8.5.0", + "babel-core": "6.26.0", + "babel-eslint": "8.2.6", + "babel-helper-vue-jsx-merge-props": "2.0.3", + "babel-loader": "7.1.5", + "babel-plugin-syntax-jsx": "6.18.0", + "babel-plugin-transform-runtime": "6.23.0", + "babel-plugin-transform-vue-jsx": "3.7.0", + "babel-preset-env": "1.7.0", + "babel-preset-stage-2": "6.24.1", + "chalk": "2.4.1", + "copy-webpack-plugin": "4.5.2", + "css-loader": "1.0.0", + "eslint": "4.19.1", + "eslint-friendly-formatter": "4.0.1", + "eslint-loader": "2.0.0", + "eslint-plugin-vue": "4.7.1", + "eventsource-polyfill": "0.9.6", + "file-loader": "1.1.11", + "friendly-errors-webpack-plugin": "1.7.0", + "html-webpack-plugin": "4.0.0-alpha", + "mini-css-extract-plugin": "0.4.1", + "node-notifier": "5.2.1", + "optimize-css-assets-webpack-plugin": "5.0.0", + "ora": "3.0.0", + "portfinder": "1.0.16", + "postcss-import": "12.0.0", + "postcss-loader": "2.1.6", + "postcss-url": "7.3.2", + "rimraf": "2.6.2", + "sass-loader": "7.0.3", + "script-ext-html-webpack-plugin": "2.0.1", + "script-loader": "^0.7.2", + "semver": "5.5.0", + "shelljs": "0.8.2", + "svg-sprite-loader": "3.8.0", + "svgo": "1.0.5", + "uglifyjs-webpack-plugin": "1.2.7", + "url-loader": "1.0.1", + "vue-loader": "15.3.0", + "vue-style-loader": "4.1.2", + "vue-template-compiler": "2.5.17", + "webpack": "4.16.5", + "webpack-bundle-analyzer": "2.13.1", + "webpack-cli": "3.1.0", + "webpack-dev-server": "3.1.5", + "webpack-merge": "4.1.4" + }, + "engines": { + "node": ">= 6.0.0", + "npm": ">= 3.0.0" + }, + "browserslist": [ + "> 1%", + "last 2 versions", + "not ie <= 8" + ] +} diff --git a/src/App.vue b/src/App.vue new file mode 100644 index 00000000..cb46977e --- /dev/null +++ b/src/App.vue @@ -0,0 +1,29 @@ + + + diff --git a/src/api/Assembly/AssemblyExecution.js b/src/api/Assembly/AssemblyExecution.js new file mode 100644 index 00000000..857fc6a1 --- /dev/null +++ b/src/api/Assembly/AssemblyExecution.js @@ -0,0 +1,111 @@ +import request from '@/utils/request' +// 初始化机床项目 +export function initProject() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_项目名称_查询数据' + } + }) +} +// 组件查询 +export function searchgroup(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_组件名称_查询数据', + param: '机床流水号=' + num + } + }) +} +// 机床查询 +export function searchTable1(machineNumberValue, check2) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间装配管理_机床信息_查询数据', + param: '机床流水号_check=' + check2 + '&机床流水号=' + machineNumberValue + } + }) +} +// // 组件查询 +// 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: { + type: '1', + name: 'PDM_机床名称_机床状态_修改数据', + param: '机床流水号=' + machineNumberValue + '&装配状态=' + check + } + }) +} + +// 机床名称_调试状态_修改数据 +export function DebugStatusUpdate(machineNumberValue, check) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_机床名称_调试状态_修改数据', + param: '机床流水号=' + machineNumberValue + '&调试状态=' + check + } + }) +} + +// 组件名称_组件状态_修改数据 +export function ComponentStateUpdate() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间管理_工作计划_执行计划', + param: '计划流水号=' + arguments[0] + '&是否工作=' + arguments[1] + } + }) +} +// 车间管理_工作计划_查询 +// 2019/8/3 16:40:23 +export function searchTable2() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间管理_工作计划_查询', + param: '机床流水号=' + arguments[0] + '&计划类型=' + arguments[1] + } + }) +} +// 车间管理_工作计划_执行计划_编辑 +export function submitTable2() { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间管理_工作计划_执行计划_编辑', + param: '备注=' + arguments[0] + '&计划流水号=' + arguments[1] + '&实际工时=' + arguments[2] + '&修补工时=' + arguments[3] + } + }) +} diff --git a/src/api/Assembly/AssemblyInformationInput.js b/src/api/Assembly/AssemblyInformationInput.js new file mode 100644 index 00000000..b2fbf253 --- /dev/null +++ b/src/api/Assembly/AssemblyInformationInput.js @@ -0,0 +1,86 @@ +import request from '@/utils/request' + +// 初始化项目 +export function initProject() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_项目名称_查询数据' + } + }) +} +// 查询组件工艺 +export function searchDetail(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 update(num, num1, num2, num3, num4) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间装配管理_装配工序工时_编辑数据', + param: '装配工序流水号=' + num + '&实际工时=' + num1 + '&完成情况=' + num2 + '&检验情况=' + num3 + '&备注=' + num4 + } + }) +} +export function getTree() { + return request({ + url: '', + method: 'post', + data: { + type: 1, + name: '人事档案管理_部门关系_查询节点', + param: '子节点=0=int' + } + }) +} +export function getTable8(code) { + return request({ + url: '', + method: 'post', + data: { + 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 +} diff --git a/src/api/Assembly/AssemblyPlan.js b/src/api/Assembly/AssemblyPlan.js new file mode 100644 index 00000000..2c8ac5b8 --- /dev/null +++ b/src/api/Assembly/AssemblyPlan.js @@ -0,0 +1,38 @@ +import request from '@/utils/request' + +// 初始化项目 +export function initProject() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_项目名称_查询数据' + } + }) +} +// 主表查询 +export function searchTable(check1, machineNumberValue, check2, time, time1, pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + 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: { + type: '2', + name: '车间装配管理_装配计划_下发', + param: '项目流水号=' + ProjectSerialNumber + '&机床流水号=' + MachineSerialNumber + '&工艺开始时间=' + ProcessStartTime + '&工艺结束时间=' + ProcessEndTime + '&下发时间=' + TimeToGo + } + }) +} diff --git a/src/api/Assembly/AssemblyProcessAssignment.js b/src/api/Assembly/AssemblyProcessAssignment.js new file mode 100644 index 00000000..d523b22f --- /dev/null +++ b/src/api/Assembly/AssemblyProcessAssignment.js @@ -0,0 +1,49 @@ +import request from '@/utils/request' + +// 初始化项目 +export function initProject() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_项目名称_查询数据' + } + }) +} +export function initPerson() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号', + param: '考核部门编号=9=int' + } + }) +} +// 主表查询 +export function searchTable(check1, machineNumberValue, pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间装配管理_工艺任务_查询数据', + param: '机床流水号_check=' + check1 + '=int&机床流水号=' + machineNumberValue, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 任务分配 +export function Preservation(ProcessSerialNumber, PersonnelNumber) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间装配管理_装配工艺_任务分配', + param: '工艺计划流水号=' + ProcessSerialNumber + '&人员编号=' + PersonnelNumber + } + }) +} diff --git a/src/api/Assembly/AssemblyProcessPlanning.js b/src/api/Assembly/AssemblyProcessPlanning.js new file mode 100644 index 00000000..229319bb --- /dev/null +++ b/src/api/Assembly/AssemblyProcessPlanning.js @@ -0,0 +1,276 @@ +import request from '@/utils/request' + +// 初始化 工艺员A +export function initCraftmen() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号', + param: '考核部门编号=9' + } + }) +} +// 初始化 工序分类 +export function initprocessNameClass() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间装配管理_工序分类_查询数据' + } + }) +} +// 初始化 机床分类 +export function initmachineType() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间装配管理_机床分类_查询数据' + } + }) +} +// 查询机床编号 +export function SearchMachine(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间装配管理_典型机床_查询数据', + param: '机床分类流水号=' + num + } + }) +} +// 查询工序名称 +export function initProcessName(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间装配管理_工序名称_查询数据', + param: '工序分类流水号=' + num + } + }) +} +// 查询机床 +export function searchMachine(num, num1) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间装配管理_机床编号_查询数据', + param: '人员编号=' + num + '&是否编制=' + num1 + } + }) +} +// 查询组件 +export function searchGroup(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间装配管理_组件名称_查询数据', + param: '机床流水号=' + num + } + }) +} +// 查询组件工艺 +export function searchDetail(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间装配管理_组件工艺_查询数据', + param: '机床流水号=' + num + } + }) +} +// 增加组件工艺 +export function submitAdd(machineNumberValue, SerialNumber, Group, AssemblyTask, GroupNumberValue1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间装配管理_组件工艺_增加数据', + param: '机床流水号=' + machineNumberValue + '&序号=' + SerialNumber + '&组号=' + Group + '&装配任务=' + AssemblyTask + '&组件流水号=' + GroupNumberValue1 + } + }) +} +// 编辑组件工艺 +export function submitEdit(GroupProcessNumber, SerialNumber, Group, AssemblyTask, GroupNumberValue1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间装配管理_组件工艺_编辑数据', + param: '组件工艺流水号=' + GroupProcessNumber + '&序号=' + SerialNumber + '&组号=' + Group + '&装配任务=' + AssemblyTask + '&组件流水号=' + GroupNumberValue1 + } + }) +} +// 删除组件工艺 +export function deleteGroup(GroupProcessNumber) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间装配管理_组件工艺_删除数据', + param: '组件工艺流水号=' + GroupProcessNumber + } + }) +} +// 查询工序 +export function searchProcess(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间装配管理_装配工序_查询数据', + param: '组件工艺流水号=' + num + } + }) +} +// 增加工序 +export function insertOne(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间装配管理_装配工序_增加数据', + param: '组件工艺流水号=' + num + } + }) +} +// 编辑工序 +export function update(num, num1, num2, num3, num4) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间装配管理_装配工序_编辑数据', + param: '装配工序流水号=' + num + '&序号=' + num1 + '&工序名称=' + num2 + '&工艺内容及装配具体要求=' + num3 + '&质检=' + num4 + } + }) +} +// 编辑工序1 +export function update1(num, num1, num2, num3) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间装配管理_装配工序_编辑数据', + param: '装配工序流水号=' + num + '&序号=' + num1 + '&工序名称=' + num2 + '&工艺内容及装配具体要求=' + num3 + } + }) +} +// 上移 +export function upOne(num, num1, num2) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间装配管理_装配工序_上移', + param: '装配工序流水号=' + num + '&组件工艺流水号=' + num1 + '&工序顺序=' + num2 + } + }) +} +// 下移 +export function downOne(num, num1, num2) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间装配管理_装配工序_下移', + param: '装配工序流水号=' + num + '&组件工艺流水号=' + num1 + '&工序顺序=' + num2 + } + }) +} +// 删除工序 +export function deleteOne(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间装配管理_装配工序_删除数据', + param: '装配工序流水号=' + num + } + }) +} +// 保存 +export function saveApprove(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间装配管理_机床工艺_编制完成', + param: '机床流水号=' + num + } + }) +} +// 工艺调整 +export function returnEdit(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间装配管理_机床工艺_调整', + param: '机床流水号=' + num + } + }) +} +// 工艺删除 +export function deleteTable(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间装配管理_机床工艺_删除数据', + param: '机床流水号=' + num + } + }) +} +// 增加已完组件工艺 工艺拷贝 +export function processCopy1(machineNumberValue, SerialNumber, Group, AssemblyTask) { + return request({ + url: '', + method: 'post', + data: { + 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: { + type: '2', + name: '车间装配管理_已完装配工序_增加数据', + param: '组件工艺流水号=' + GroupNum + '&序号=' + SerialNumberGroup + '&工序名称=' + ProcedureNameGroup + '&工艺内容及装配具体要求=' + ProcessContentGroup + '&质检=' + QualityTesting + '&工序顺序=' + ProcessSequence + } + }) +} diff --git a/src/api/Assembly/AssemblyQualityInspection.js b/src/api/Assembly/AssemblyQualityInspection.js new file mode 100644 index 00000000..7644efc4 --- /dev/null +++ b/src/api/Assembly/AssemblyQualityInspection.js @@ -0,0 +1,64 @@ +import request from '@/utils/request' + +// 初始化机床项目 +export function initProject() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_项目名称_查询数据' + } + }) +} +// 初始化检测项 +export function searchTest() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '质检管理_装配质检_检测项_查询数据' + } + }) +} +// 组件查询 +export function searchgroup(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_组件名称_查询数据', + param: '机床流水号=' + num + } + }) +} +// 质检管理_质量情况_查询数据 +export function selecttable(check1, value1, check2, value2, check3, value3, check4, value4, pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '质检管理_装配质检_质检情况_查询数据', + param: '机床流水号_check=' + check1 + '&机床流水号=' + value1 + '&组件流水号_check=' + check2 + '&组件流水号=' + value2 + '&检测项_check=' + check3 + '&检测项流水号=' + value3 + + '&质检情况_check=' + check4 + '&质检情况=' + value4, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 质检管理_质量情况_查询数据 +export function selecttable22(check1, value1, check2, value2, check3, value3, check4, value4) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '质检管理_装配质检_质检情况_查询数据', + param: '机床流水号_check=' + check1 + '&机床流水号=' + value1 + '&组件流水号_check=' + check2 + '&组件流水号=' + value2 + '&检测项_check=' + check3 + '&检测项流水号=' + value3 + + '&质检情况_check=' + check4 + '&质检情况=' + value4 + } + }) +} + diff --git a/src/api/Assembly/AssemblyQuotaSetting.js b/src/api/Assembly/AssemblyQuotaSetting.js new file mode 100644 index 00000000..62050c24 --- /dev/null +++ b/src/api/Assembly/AssemblyQuotaSetting.js @@ -0,0 +1,86 @@ +import request from '@/utils/request' + +// 初始化 工艺员A +export function initCraftmen() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号', + param: '考核部门编号=9' + } + }) +} +// 查询机床 +export function searchMachine(num1) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间装配管理_机床编号_查询数据_根据定额', + param: '是否定额=' + num1 + } + }) +} +// 查询组件工艺 +export function searchDetail(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 update(num, num1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间装配管理_装配工序工时_编辑数据', + param: '装配工序流水号=' + num + '&工艺工时=' + num1 + } + }) +} +// 保存 +export function saveApprove(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间装配管理_机床工艺_定额完成', + param: '机床流水号=' + num + } + }) +} +// 工艺调整 +export function returnEdit(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间装配管理_机床工艺_定额调整', + param: '机床流水号=' + num + } + }) +} diff --git a/src/api/Assembly/DeliveryApplication.js b/src/api/Assembly/DeliveryApplication.js new file mode 100644 index 00000000..5d27c1d4 --- /dev/null +++ b/src/api/Assembly/DeliveryApplication.js @@ -0,0 +1,38 @@ +import request from '@/utils/request' + +// 初始化机床项目 +export function initProject() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_项目名称_查询数据' + } + }) +} +// PDM_机床名称_发货状态_查询数据 +export function selecttable(check2, machineNumberValue) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_机床名称_发货状态_查询数据', + param: '机床流水号_check=' + check2 + '&机床流水号=' + machineNumberValue + } + }) +} +// PDM_机床名称_发货状态_编辑数据 +export function updatestate(machineNumberValue, state) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_机床名称_发货状态_编辑数据', + param: '机床流水号=' + machineNumberValue + '&发货状态=' + state + } + }) +} + diff --git a/src/api/Assembly/DeliveryConfirmation.js b/src/api/Assembly/DeliveryConfirmation.js new file mode 100644 index 00000000..25cb1df2 --- /dev/null +++ b/src/api/Assembly/DeliveryConfirmation.js @@ -0,0 +1,46 @@ +import request from '@/utils/request' +export function InvoiceListSearch() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '发货管理_发货确认_发货单_发货单列表_查询', + param: '发货单名=' + arguments[0] + '\\&发货单号=' + arguments[1] + '\\&收货单位=' + arguments[2] + '\\&车辆牌号=' + arguments[3] + '\\&司机姓名=' + arguments[4] + '\\&司机电话=' + arguments[5] + '\\&制单人=' + arguments[6] + '\\&核准人=' + arguments[7] + '\\&执行人=' + arguments[8] + '\\&开始制单日期=' + arguments[9] + '\\&结束制单日期=' + arguments[10] + '\\&开始核准日期=' + arguments[11] + '\\&结束核准日期=' + arguments[12] + '\\&开始发货日期=' + arguments[13] + '\\&结束发货日期=' + arguments[14] + '\\&发货单名_check=' + arguments[15] + '\\&发货单号_check=' + arguments[16] + '\\&收货单位_check=' + arguments[17] + '\\&车辆牌号_check=' + arguments[18] + '\\&司机姓名_check=' + arguments[19] + '\\&司机电话_check=' + arguments[20] + '\\&制单人_check=' + arguments[21] + '\\&核准人_check=' + arguments[22] + '\\&执行人_check=' + arguments[23] + '\\&开始制单日期_check=' + arguments[24] + '\\&结束制单日期_check=' + arguments[25] + '\\&开始核准日期_check=' + arguments[26] + '\\&结束核准日期_check=' + arguments[27] + '\\&开始发货日期_check=' + arguments[28] + '\\&结束发货日期_check=' + arguments[29] + '\\&是否发出_check=' + arguments[30] + '\\&是否发出=' + arguments[31], + Pagination: arguments[32] + '&' + arguments[33] + } + }) +} +export function DetailsFeach() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '发货管理_发货申请_发货单明细_查询', + param: '发货单流水号=' + arguments[0] + } + }) +} +export function confirmation() { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '发货管理_发货确认_发货单_发货确认', + param: '发货单流水号=' + arguments[0] + '&司机姓名=' + arguments[1] + '&司机电话=' + arguments[2] + '&车辆牌号=' + arguments[3] + '&执行人=' + arguments[4] + '&备注=' + arguments[5] + } + }) +} +export function reconfirmation() { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '发货管理_发货确认_发货单_打回确认', + param: '发货单流水号=' + arguments[0] + } + }) +} diff --git a/src/api/Assembly/ElectricalAssembly.js b/src/api/Assembly/ElectricalAssembly.js new file mode 100644 index 00000000..f4b44b56 --- /dev/null +++ b/src/api/Assembly/ElectricalAssembly.js @@ -0,0 +1,98 @@ +import request from '@/utils/request' +// 初始化机床项目 +export function initProject() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_项目名称_查询数据' + } + }) +} +// 组件查询 +export function searchgroup(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_组件名称_查询数据', + param: '机床流水号=' + num + } + }) +} +// 机床查询 +export function searchTable1(machineNumberValue, check2) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间装配管理_机床信息_查询数据', + param: '机床流水号_check=' + check2 + '&机床流水号=' + machineNumberValue + } + }) +} +// 组件查询 +export function searchTable2() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间管理_工作计划_查询', + param: '机床流水号=' + arguments[0] + '&计划类型=' + arguments[1] + } + }) +} +// 机床名称_机床状态_修改数据 +export function MachineToolStateUpdate() { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: 'PDM_机床名称_电气状态_修改数据', + param: '机床流水号=' + arguments[0] + '&电气装配状态=' + arguments[1] + } + }) +} + +// 机床名称_调试状态_修改数据 +export function DebugStatusUpdate(machineNumberValue, check) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_机床名称_电气调试状态_修改数据', + param: '机床流水号=' + arguments[0] + '&电气调试状态=' + arguments[1] + } + }) +} + +// 组件名称_组件状态_修改数据 +export function ComponentStateUpdate() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间管理_工作计划_执行计划', + param: '计划流水号=' + arguments[0] + '&是否工作=' + arguments[1] + } + }) +} +// 车间管理_工作计划_执行计划_编辑 +export function submitTable2() { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间管理_工作计划_执行计划_编辑', + param: '备注=' + arguments[0] + '&计划流水号=' + arguments[1] + '&实际工时=' + arguments[2] + '&修补工时=' + arguments[3] + } + }) +} diff --git a/src/api/Assembly/InstallationAndMonitoring.js b/src/api/Assembly/InstallationAndMonitoring.js new file mode 100644 index 00000000..ee9e4f46 --- /dev/null +++ b/src/api/Assembly/InstallationAndMonitoring.js @@ -0,0 +1,123 @@ +import request from '@/utils/request' + +// 初始化项目 +export function initProject() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_项目名称_查询数据' + } + }) +} +// 机床查询 +export function searchMachine(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间装配管理_机床_查询数据', + param: '项目流水号=' + num + } + }) +} +// 关键节点查询 +export function searchTable(num, pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间装配管理_安装调试_关键节点_查询数据', + param: '机床流水号=' + num, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 工作记录查询 +export function searchTable1(num, pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间装配管理_安装调试_工作记录_查询数据', + param: '机床流水号=' + num, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 增加关键节点 +export function addData(machineNumberValue, KeyNode, completion, Remarks) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间装配管理_安装调试_关键节点_增加数据', + param: '机床流水号=' + machineNumberValue + '&关键节点=' + KeyNode + '&完成情况=' + completion + '&备注=' + Remarks + } + }) +} +// 编辑关键节点 +export function editData(KeyNodeNum, KeyNode, completion, Remarks) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间装配管理_安装调试_关键节点_编辑数据', + param: '关键节点流水号=' + KeyNodeNum + '&关键节点=' + KeyNode + '&完成情况=' + completion + '&备注=' + Remarks + } + }) +} +// 删除关键节点 +export function deleteData(KeyNodeNum) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间装配管理_安装调试_关键节点_删除数据', + param: '关键节点流水号=' + KeyNodeNum + } + }) +} +// 增加工作记录 +export function addData1(machineNumberValue, WorkRecord, WorkDay) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间装配管理_安装调试_工作记录_增加数据', + param: '机床流水号=' + machineNumberValue + '&工作情况=' + WorkRecord + '&工作日期=' + WorkDay + } + }) +} +// 编辑工作记录 +export function editData1(WorkRecordNum, WorkRecord, WorkDay) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间装配管理_安装调试_工作记录_编辑数据', + param: '工作记录流水号=' + WorkRecordNum + '&工作情况=' + WorkRecord + '&工作日期=' + WorkDay + } + }) +} +// 删除工作记录 +export function deleteData1(WorkRecordNum) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间装配管理_安装调试_工作记录_删除数据', + param: '工作记录流水号=' + WorkRecordNum + } + }) +} diff --git a/src/api/Assembly/MakeAssemblyPlan.js b/src/api/Assembly/MakeAssemblyPlan.js new file mode 100644 index 00000000..e4f4e939 --- /dev/null +++ b/src/api/Assembly/MakeAssemblyPlan.js @@ -0,0 +1,103 @@ +import request from '@/utils/request' +// 初始化机床项目 +export function initProject() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_项目名称_查询数据' + } + }) +} +// 组件查询 +export function searchgroup(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_组件名称_查询数据', + param: '机床流水号=' + num + } + }) +} +export function searchgroupName(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_组件名称_查询数据_查询名称', + param: '组件流水号=' + num + } + }) +} +export function getFileData(MachineDrawValue) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_机床总图_查询数据', + param: `机床流水号=${MachineDrawValue}` + } + }) +} +// 机床查询 +export function searchTable1(machineNumberValue, check2) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间装配管理_机床信息_查询数据', + param: '机床流水号_check=' + check2 + '&机床流水号=' + machineNumberValue + } + }) +} +// 组件查询 +export function searchTable2(machineNumberValue, type) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间管理_工作计划_查询数据', + param: '机床流水号=' + machineNumberValue + '&计划类型=' + type + } + }) +} +export function deletedata(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间管理_工作计划_删除数据', + param: '计划流水号=' + num + } + }) +} +export function editData(num, group, groupName, Name, time) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间管理_工作计划_编辑数据', + param: '计划流水号=' + num + '&组件流水号=' + group + '&组号=' + groupName + '&任务名称=' + Name + '&计划工时=' + time + } + }) +} +export function addData(num, type) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间管理_工作计划_增加数据', + param: '机床流水号=' + num + '&计划类型=' + type + } + }) +} diff --git a/src/api/Assembly/PlanExecution.js b/src/api/Assembly/PlanExecution.js new file mode 100644 index 00000000..f4b44b56 --- /dev/null +++ b/src/api/Assembly/PlanExecution.js @@ -0,0 +1,98 @@ +import request from '@/utils/request' +// 初始化机床项目 +export function initProject() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_项目名称_查询数据' + } + }) +} +// 组件查询 +export function searchgroup(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_组件名称_查询数据', + param: '机床流水号=' + num + } + }) +} +// 机床查询 +export function searchTable1(machineNumberValue, check2) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间装配管理_机床信息_查询数据', + param: '机床流水号_check=' + check2 + '&机床流水号=' + machineNumberValue + } + }) +} +// 组件查询 +export function searchTable2() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间管理_工作计划_查询', + param: '机床流水号=' + arguments[0] + '&计划类型=' + arguments[1] + } + }) +} +// 机床名称_机床状态_修改数据 +export function MachineToolStateUpdate() { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: 'PDM_机床名称_电气状态_修改数据', + param: '机床流水号=' + arguments[0] + '&电气装配状态=' + arguments[1] + } + }) +} + +// 机床名称_调试状态_修改数据 +export function DebugStatusUpdate(machineNumberValue, check) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_机床名称_电气调试状态_修改数据', + param: '机床流水号=' + arguments[0] + '&电气调试状态=' + arguments[1] + } + }) +} + +// 组件名称_组件状态_修改数据 +export function ComponentStateUpdate() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间管理_工作计划_执行计划', + param: '计划流水号=' + arguments[0] + '&是否工作=' + arguments[1] + } + }) +} +// 车间管理_工作计划_执行计划_编辑 +export function submitTable2() { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间管理_工作计划_执行计划_编辑', + param: '备注=' + arguments[0] + '&计划流水号=' + arguments[1] + '&实际工时=' + arguments[2] + '&修补工时=' + arguments[3] + } + }) +} diff --git a/src/api/Assembly/PrintingAssemblyProcessCard.js b/src/api/Assembly/PrintingAssemblyProcessCard.js new file mode 100644 index 00000000..244be49e --- /dev/null +++ b/src/api/Assembly/PrintingAssemblyProcessCard.js @@ -0,0 +1,50 @@ +import request from '@/utils/request' + +// 初始化项目 +export function initProject() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_项目名称_查询数据' + } + }) +} +// 查询组件工艺 +export function searchDetail(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 searchTable(check1, machineNumberValue, pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间装配管理_项目打印_查询数据', + param: '机床流水号_check=' + check1 + '=int&机床流水号=' + machineNumberValue, + Pagination: pageCurrent + '&' + pageSize + } + }) +} diff --git a/src/api/Assembly/QualityBasicData.js b/src/api/Assembly/QualityBasicData.js new file mode 100644 index 00000000..8e9c91d7 --- /dev/null +++ b/src/api/Assembly/QualityBasicData.js @@ -0,0 +1,248 @@ +import request from '@/utils/request' + +// 初始化 不合格原因 +export function initReasons() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '质检管理_不合格原因_查询数据' + } + }) +} +// 初始化 不合格处理 +export function initHandle() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '质检管理_不合格处理_查询数据' + } + }) +} +// 初始化 质检尺寸 +export function initSize() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '质检管理_质检尺寸_基础表_查询数据' + } + }) +} +// 初始化 质检外观 +export function initAppearance() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '质检管理_质检外观_基础表_查询数据' + } + }) +} +// 初始化 质检形位 +export function initPosition() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '质检管理_质检形位_基础表_查询数据' + } + }) +} +// 初始化 检测项 +export function initTest() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '质检管理_装配质检_检测项_查询数据' + } + }) +} +// 查询 检测项明细 +export function initTesting(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '质检管理_装配质检_检测项明细_查询数据', + param: '检测项流水号=' + num + } + }) +} +// 增加 检测项 +export function addTest(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '质检管理_装配质检_检测项_增加数据', + param: '检测项=' + num + } + }) +} +// 查询 检测项明细 +export function addTesting(num, num1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '质检管理_装配质检_检测项明细_增加数据', + param: '检测项流水号=' + num + '&检测项明细=' + num1 + } + }) +} +// 增加 不合格原因 +export function addReasons(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '质检管理_不合格原因_增加数据', + param: '不合格原因文本=' + num + } + }) +} +// 增加 不合格处理 +export function addHandle(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '质检管理_不合格处理_增加数据', + param: '不合格处理文本=' + num + } + }) +} +// 增加 质检尺寸 +export function addSize(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '质检管理_质检尺寸_基础表_增加数据', + param: '质检尺寸=' + num + } + }) +} +// 增加 质检外观 +export function addAppearance(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '质检管理_质检外观_基础表_增加数据', + param: '质检外观=' + num + } + }) +} +// 增加 质检形位 +export function addPosition(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '质检管理_质检形位_基础表_增加数据', + param: '质检形位=' + num + } + }) +} +// 删除 检测项 +export function deleteTest(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '质检管理_装配质检_检测项_删除数据', + param: '检测项流水号=' + num + } + }) +} +// 删除 检测项明细 +export function deleteTesting(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '质检管理_装配质检_检测项明细_删除数据', + param: '检测项明细流水号=' + num + } + }) +} +// 删除 不合格原因 +export function deleteReasons(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '质检管理_不合格原因_删除数据', + param: '不合格原因=' + num + } + }) +} +// 删除 不合格处理 +export function deleteHandle(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '质检管理_不合格处理_删除数据', + param: '不合格处理=' + num + } + }) +} +// 删除 质检尺寸 +export function deleteSize(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '质检管理_质检尺寸_基础表_删除数据', + param: '质检尺寸流水号=' + num + } + }) +} +// 删除 质检外观 +export function deleteAppearance(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '质检管理_质检外观_基础表_删除数据', + param: '质检外观流水号=' + num + } + }) +} +// 删除 质检形位 +export function deletePosition(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '质检管理_质检形位_基础表_删除数据', + param: '质检形位流水号=' + num + } + }) +} diff --git a/src/api/Assembly/QualityInspectionInformationInquiry.js b/src/api/Assembly/QualityInspectionInformationInquiry.js new file mode 100644 index 00000000..cf9639fd --- /dev/null +++ b/src/api/Assembly/QualityInspectionInformationInquiry.js @@ -0,0 +1,141 @@ +import request from '@/utils/request' + +// 初始化机床项目 +export function initProject() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_项目名称_查询数据' + } + }) +} +// 初始化质检类型 +export function QualityType() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '质检管理_质检类型_查询数据' + } + }) +} +// 初始化质检人员 +export function initPerson() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '质检管理_质量情况_查询数据_质检人员' + } + }) +} +// 组件查询 +export function searchgroup(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_组件名称_查询数据', + param: '机床流水号=' + num + } + }) +} +// 质检管理_质量情况_查询数据 +export function selecttable(check1, value1, check2, value2, check3, value3, check4, value4, check5, value5, check6, value6, check7, value7, check8, value8, pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '质检管理_质量情况_查询数据', + param: '机床流水号_check=' + check1 + '&机床流水号=' + value1 + '&组件流水号_check=' + check2 + '&组件流水号=' + value2 + '&零件名称_check=' + check3 + '&零件名称=' + value3 + + '&质检类型代码_check=' + check4 + '&质检类型代码=' + value4 + '&开始时间_check=' + check5 + '&开始时间=' + value5 + '&结束时间_check=' + check6 + '&结束时间=' + value6 + '&质检情况_check=' + check7 + '&质检情况=' + value7 + '&人员编号_check=' + check8 + '&人员编号=' + value8, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 质检管理_质量情况_查询数据 +export function selecttable22(check1, value1, check2, value2, check3, value3, check4, value4, check5, value5, check6, value6, check7, value7, check8, value8) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '质检管理_质量情况_查询数据', + param: '机床流水号_check=' + check1 + '&机床流水号=' + value1 + '&组件流水号_check=' + check2 + '&组件流水号=' + value2 + '&零件名称_check=' + check3 + '&零件名称=' + value3 + + '&质检类型代码_check=' + check4 + '&质检类型代码=' + value4 + '&开始时间_check=' + check5 + '&开始时间=' + value5 + '&结束时间_check=' + check6 + '&结束时间=' + value6 + '&质检情况_check=' + check7 + '&质检情况=' + value7 + '&人员编号_check=' + check8 + '&人员编号=' + value8 + } + }) +} +export function searchPic(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '质检管理_图片_查询数据', + param: '质检流水号=' + num + } + }) +} +// 查询外协到货单明细 +export function searchTableDetail(...params) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '质检管理_质检数据_查询数据', + param: `检测类型=${params[0]}&质检流水号=${params[1]}` + } + }) +} +export function searchData(pageSize, pageCurrent) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_加工顺序调整_查询正在加工零件工序_NEW', + Pagination: pageCurrent + '&' + pageSize + } + }) +} +export function searchData1(pageSize, pageCurrent) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'MES_机加工MES_记录零件待加工显示_NEW', + Pagination: pageCurrent + '&' + pageSize + } + }) +} +export function processingStatus(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理_成组配套加工进度_查询数据', + param: '工艺计划流水号=' + num + } + }) +} +export function Prohibit(num, num1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '质检管理_质检情况_禁用', + param: '质检流水号=' + num + '&质检类型代码=' + num1 + } + }) +} diff --git a/src/api/Assembly/ShipmentApproval.js b/src/api/Assembly/ShipmentApproval.js new file mode 100644 index 00000000..efa590b6 --- /dev/null +++ b/src/api/Assembly/ShipmentApproval.js @@ -0,0 +1,38 @@ +import request from '@/utils/request' + +// 初始化机床项目 +export function initProject() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_项目名称_查询数据' + } + }) +} +// PDM_机床名称_发货状态_查询数据 +export function selecttable(check2, machineNumberValue) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_机床名称_发货状态_查询数据', + param: '机床流水号_check=' + check2 + '&机床流水号=' + machineNumberValue + } + }) +} +// PDM_机床名称_发货状态_编辑数据 +export function updatestate(machineNumberValue, state, attention) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_机床名称_发货审批_编辑数据', + param: '机床流水号=' + machineNumberValue + '&发货状态=' + state + '&注意事项=' + attention + } + }) +} + diff --git a/src/api/Assembly/SparePartsOutStockRecord.js b/src/api/Assembly/SparePartsOutStockRecord.js new file mode 100644 index 00000000..09a480be --- /dev/null +++ b/src/api/Assembly/SparePartsOutStockRecord.js @@ -0,0 +1,39 @@ +import request from '@/utils/request' + +// 初始化机床项目 +export function initProject() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_项目名称_查询数据' + } + }) +} +// 组件查询 +export function searchgroup(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_组件名称_查询数据', + param: '机床流水号=' + num + } + }) +} +// 车间生产管理工艺_备料管理_备料出库记录_视图_查询数据 +export function selecttable(check1, value1, check2, value2, check3, value3, check4, value4, check5, value5, pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_备料管理_备料出库记录_视图_查询数据', + param: '机床流水号_check=' + check1 + '&机床流水号=' + value1 + '&组件流水号_check=' + check2 + '&组件流水号=' + value2 + '&零件图号_check=' + check3 + '&零件图号=' + value3 + '&开始时间_check=' + check4 + '&开始时间=' + value4 + '&结束时间_check=' + check5 + '&结束时间=' + value5, + Pagination: pageCurrent + '&' + pageSize + } + }) +} + diff --git a/src/api/Assembly/TypicalAssemblyMaintenance.js b/src/api/Assembly/TypicalAssemblyMaintenance.js new file mode 100644 index 00000000..81e27e4d --- /dev/null +++ b/src/api/Assembly/TypicalAssemblyMaintenance.js @@ -0,0 +1,240 @@ +import request from '@/utils/request' + +// 初始化 工艺员A +export function initCraftmen() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号', + param: '考核部门编号=17' + } + }) +} +// 初始化 工序分类 +export function initprocessNameClass() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间装配管理_工序分类_查询数据' + } + }) +} +// 初始化 机床分类 +export function initmachineType() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间装配管理_机床分类_查询数据' + } + }) +} +// 查询机床编号 +export function SearchMachine(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间装配管理_典型机床_查询数据', + param: '机床分类流水号=' + num + } + }) +} +// 查询工序名称 +export function initProcessName(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间装配管理_工序名称_查询数据', + param: '工序分类流水号=' + num + } + }) +} +// 查询组件 +export function searchGroup(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间装配管理_组件名称_查询数据', + param: '机床流水号=' + num + } + }) +} +// 查询组件工艺 +export function searchDetail(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间装配管理_组件工艺_查询数据', + param: '机床流水号=' + num + } + }) +} +// 增加组件工艺 +export function submitAdd(machineNumberValue, SerialNumber, Group, AssemblyTask, GroupNumberValue1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间装配管理_组件工艺_增加数据', + param: '机床流水号=' + machineNumberValue + '&序号=' + SerialNumber + '&组号=' + Group + '&装配任务=' + AssemblyTask + '&组件流水号=' + GroupNumberValue1 + } + }) +} +// 编辑组件工艺 +export function submitEdit(GroupProcessNumber, SerialNumber, Group, AssemblyTask, GroupNumberValue1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间装配管理_组件工艺_编辑数据', + param: '组件工艺流水号=' + GroupProcessNumber + '&序号=' + SerialNumber + '&组号=' + Group + '&装配任务=' + AssemblyTask + '&组件流水号=' + GroupNumberValue1 + } + }) +} +// 删除组件工艺 +export function deleteGroup(GroupProcessNumber) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间装配管理_组件工艺_删除数据', + param: '组件工艺流水号=' + GroupProcessNumber + } + }) +} +// 查询工序 +export function searchProcess(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间装配管理_装配工序_查询数据', + param: '组件工艺流水号=' + num + } + }) +} +// 增加工序 +export function insertOne(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间装配管理_装配工序_增加数据', + param: '组件工艺流水号=' + num + } + }) +} +// 编辑工序 +export function update(num, num1, num2, num3, num4) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间装配管理_装配工序_编辑数据', + param: '装配工序流水号=' + num + '&序号=' + num1 + '&工序名称=' + num2 + '&工艺内容及装配具体要求=' + num3 + '&质检=' + num4 + } + }) +} +// 编辑工序1 +export function update1(num, num1, num2, num3) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间装配管理_装配工序_编辑数据', + param: '装配工序流水号=' + num + '&序号=' + num1 + '&工序名称=' + num2 + '&工艺内容及装配具体要求=' + num3 + } + }) +} +// 编辑工时 +export function update2(num, num1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间装配管理_装配工序工时_编辑数据', + param: '装配工序流水号=' + num + '&工艺工时=' + num1 + } + }) +} +// 保存 +export function saveApprove(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间装配管理_机床工艺_定额完成', + param: '机床流水号=' + num + } + }) +} +// 上移 +export function upOne(num, num1, num2) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间装配管理_装配工序_上移', + param: '装配工序流水号=' + num + '&组件工艺流水号=' + num1 + '&工序顺序=' + num2 + } + }) +} +// 下移 +export function downOne(num, num1, num2) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间装配管理_装配工序_下移', + param: '装配工序流水号=' + num + '&组件工艺流水号=' + num1 + '&工序顺序=' + num2 + } + }) +} +// 删除工序 +export function deleteOne(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间装配管理_装配工序_删除数据', + param: '装配工序流水号=' + num + } + }) +} +// 工艺删除 +export function deleteTable(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间装配管理_机床工艺_删除数据', + param: '机床流水号=' + num + } + }) +} diff --git a/src/api/BasicData/EquipmentCapabilitySetting.js b/src/api/BasicData/EquipmentCapabilitySetting.js new file mode 100644 index 00000000..1d36976d --- /dev/null +++ b/src/api/BasicData/EquipmentCapabilitySetting.js @@ -0,0 +1,63 @@ +import request from '@/utils/request' + +// 初始化获取工艺 +export function getTechnology() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_基础表_工艺名称_查询数据', + param: '工艺分类流水号_check=0' + } + }) +} +// 查询表格数据 +export function searchtable(pageCurrent, pageSize, num1, ManufacturerNumber) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '设备管理_设备加工能力_查询数据_设备维护', + param: '设备名称_check=' + num1 + '&设备名称=' + ManufacturerNumber, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 增加 +export function edittype(ManufacturerNumber, ManufacturerName, ManufacturerAbbreviation, address, phNumber, Fax, Remarks, category, attention, EquipmentCondition) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '设备管理_设备加工能力_增加数据_设备维护New', + param: '设备名称=' + ManufacturerNumber + '&设备型号=' + ManufacturerName + '&设备性能指标=' + ManufacturerAbbreviation + '&设备工时系数=' + address + '&工艺编号=' + phNumber + '&班次类型=' + Fax + '&设备加工能力工时=' + Remarks + '&整改工时系数=' + category + '&设备编号=' + attention + '&预留工时系数=' + EquipmentCondition + } + }) +} +// 编辑 +export function handlechange(num, ManufacturerNumber, ManufacturerName, ManufacturerAbbreviation, address, phNumber, Fax, Remarks, category, attention, EquipmentCondition) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '设备管理_设备加工能力_修改数据_设备维护New', + param: '设备流水号=' + num + '&设备名称=' + ManufacturerNumber + '&设备型号=' + ManufacturerName + '&设备性能指标=' + ManufacturerAbbreviation + '&设备工时系数=' + address + '&工艺属性代码=' + phNumber + '&班次类型=' + Fax + '&设备加工能力工时=' + Remarks + '&整改工时系数=' + category + '&设备编号=' + attention + '&预留工时系数=' + EquipmentCondition + } + }) +} +// 删除 +export function handledelete(CoManufacturerFlowNumber) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '设备管理_设备加工能力_删除数据_设备维护', + param: '设备流水号=' + CoManufacturerFlowNumber + } + }) +} diff --git a/src/api/BasicData/FactoryCalendar.js b/src/api/BasicData/FactoryCalendar.js new file mode 100644 index 00000000..46be67f7 --- /dev/null +++ b/src/api/BasicData/FactoryCalendar.js @@ -0,0 +1,25 @@ +import request from '@/utils/request' +// 初始化日历 +export function initClendar(year, month) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_基础表_工作日历_获得状态', + param: '工作年=' + year + '&工作月=' + month + } + }) +} +// 修改工作状态 +export function changeState(time, code) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_基础表_工作日历_设置状态', + param: '工作日期=' + time + '&工作日状态=' + code + } + }) +} diff --git a/src/api/BasicData/Materialmaintenance.js b/src/api/BasicData/Materialmaintenance.js new file mode 100644 index 00000000..a104e7d9 --- /dev/null +++ b/src/api/BasicData/Materialmaintenance.js @@ -0,0 +1,47 @@ +import request from '@/utils/request' + +export function featchMaterial(num1, pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_材质表_查询数据_根据材料名称', + param: '材料名称=' + num1, + pagination: pageCurrent + '&' + pageSize + } + }) +} +export function addMaterial(num1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_材质表_增加数据', + param: '材料=' + num1 + } + }) +} +export function delMaterial(num1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_材质表_删除数据', + param: '材料流水号=' + num1 + } + }) +} +export function editMaterial(num1, num2) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_材质表_修改数据', + param: '材料流水号=' + num1 + '=int&材料=' + num2 + } + }) +} diff --git a/src/api/BasicData/MenuManagement.js b/src/api/BasicData/MenuManagement.js new file mode 100644 index 00000000..a9b0ecce --- /dev/null +++ b/src/api/BasicData/MenuManagement.js @@ -0,0 +1,94 @@ +import request from '@/utils/request' + +// 初始化角色 +export function getRole() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '菜单系统模块_项目角色_查询数据_new' + } + }) +} +// 根据角色查模块 +export function getModule(role) { + return request({ + url: '', + method: 'post', + data: { + type: '3', + name: `select * from 基础表_角色模块信息 inner join 基础表_模块信息 on 基础表_角色模块信息.id = 基础表_模块信息.id where 角色编号=${role} order by 模块顺序` + } + }) +} +// 初始化一级菜单 +export function initFisrtLevel() { + return request({ + url: '', + method: 'post', + data: { + type: '3', + name: `select id,title from 基础表_模块信息 where [path] = '/'` + } + }) +} +// 初始化二级菜单 +export function initSecondLevel() { + return request({ + url: '', + method: 'post', + data: { + type: '3', + name: `select id,title from 基础表_模块信息 where [path] <> '/'` + } + }) +} +// 撤回分配模块 +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}` + } + }) +} diff --git a/src/api/BasicData/PartsNumberMaintenance.js b/src/api/BasicData/PartsNumberMaintenance.js new file mode 100644 index 00000000..1233566a --- /dev/null +++ b/src/api/BasicData/PartsNumberMaintenance.js @@ -0,0 +1,300 @@ +import request from '@/utils/request' + +export function projectSelect() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_项目名称_查询数据_按时间排序' + } + }) +} + +export function machineSelect(projectValue) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_机床名称_查询数据2', + param: `项目流水号=${projectValue}` + } + }) +} + +export function groupSelect(machineValue) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_零件明细表_组件流水号_查询数据_根据机床', + param: `机床流水号=${machineValue}` + } + }) +} +export function searchTable5(pageCurrent, pageSize, projectCheck, project, machineCheck, machine, groupCheck, group) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_零件明细表_外购件和标准件_临时表数据查询', + param: `项目名字_check=${projectCheck}&项目名字=${project}&机床名字_check=${machineCheck}&机床名字=${machine}&组号_check=${groupCheck}&组号=${group}`, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +export function searchTable6(pageCurrent, pageSize, projectCheck, project, machineCheck, machine, groupCheck, group) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_零件明细表_基本件_临时表数据查询', + param: `项目名字_check=${projectCheck}&项目名字=${project}&机床名字_check=${machineCheck}&机床名字=${machine}&组号_check=${groupCheck}&组号=${group}`, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +export function searchTable7(pageCurrent, pageSize, projectCheck, project, machineCheck, machine, groupCheck, group) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_零件明细表_外购件_临时表数据查询', + param: `项目名字_check=${projectCheck}&项目名字=${project}&机床名字_check=${machineCheck}&机床名字=${machine}&组号_check=${groupCheck}&组号=${group}`, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +export function basicPartsData(project_check, project, machine_check, machine, group_check, group, pageSize, pageCurrent) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_零件明细表_基本件_查询数据_综合gj', + param: `项目流水号_check=${project_check}&项目流水号=${project}&机床流水号_check=${machine_check}&机床流水号=${machine}&组件流水号_check=${group_check}&组件流水号=${group}`, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +export function purchasePartsData(num, pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_零件明细表_标准件和外购件_查询数据', + param: `组件流水号=${num}`, + pagination: pageCurrent + '&' + pageSize + } + }) +} +export function deleteBasicParts(basicNum) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: 'PDM_零件明细表_基本件_删除数据', + param: `基本件流水号=${basicNum}` + } + }) +} +export function alldelete(basicNum) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: 'PDM_零件明细表_基本件_删除数据_根据组件流水号', + param: `组件流水号=${basicNum}` + } + }) +} +export function deleteBasicParts5(basicNum) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: 'PDM_零件明细表_外购件和标准件_临时表_删除', + param: `id=${basicNum}` + } + }) +} +export function alldeleteBasicParts5(project, machine, group) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: 'PDM_零件明细表_外购件和标准件_临时表_全部删除', + param: `项目=${project}&机床=${machine}&组号=${group}` + } + }) +} +export function deleteBasicParts6(basicNum) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: 'PDM_零件明细表_基本件_临时表_删除', + param: `id=${basicNum}` + } + }) +} +export function alldeleteBasicParts6(project, machine, group) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: 'PDM_零件明细表_基本件_临时表_全部删除', + param: `项目=${project}&机床=${machine}&组号=${group}` + } + }) +} +export function deletePurchaseData(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: 'PDM_零件明细表_标准件和外购件_删除数据', + param: '标准件和外购件流水号=' + num + '=int' + } + }) +} +export function alldeleteWB(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: 'PDM_零件明细表_标准件和外购件_删除数据_根据组件流水号', + param: '组件流水号=' + num + '=int' + } + }) +} +export function editPurchaseData(num, num1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: 'PDM_零件明细表_标准件和外购件_修改数据', + param: '标准件和外购件流水号=' + num + '&零件数量=' + num1 + } + }) +} +export function editBasicParts(num, num1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: 'PDM_零件明细表_基本件_编辑数据', + param: '基本件流水号=' + num + '&零件数量=' + num1 + } + }) +} +export function getTable(num, pageList, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_零件工艺计划_已投产_按组查', + param: '组件流水号=' + num + '=int', + Pagination: pageList + '&' + pageSize + } + }) +} +export function editProductNum(num, num1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: 'MRP_计划订单_组件零件清单_基本件_编辑数据', + param: '组件零件基本件流水号=' + num + '&数量=' + num1 + } + }) +} +export function getTable1(num, a, b, c, d, e, f, g, pageList, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_新排产算法_能力平衡_查询数据_要平衡的零件', + param: '项目流水号_check=' + num + '=string&项目流水号=' + a + '=int&机床流水号_check=' + b + '=string&机床流水号=' + c + '=int&组件流水号_check=' + d + '=string&组件流水号=' + e + '=int&零件图号_check=' + f + '=string&零件图号=' + g + '=string&是否查询全部数据=1=string&单件是否外协=1=int&考核状态=5=int', + Pagination: pageList + '&' + pageSize + } + }) +} +export function editProduceNum(num, num1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_零件工艺计划_修改数据', + param: '工艺计划流水号=' + num + '&零件数量=' + num1 + } + }) +} +// 查询表1标准件和外购件 +export function searchTable1(...params) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_采购部采购_查询物料_数量维护', + param: `项目流水号_check=${params[2]}&项目流水号=${params[3]}&机床流水号_check=${params[4]}&机床流水号=${params[5]}&组件流水号_check=${params[6]}&组件流水号=${params[7]}&物料状态=1`, + Pagination: params[0] + '&' + params[1] + } + }) +} +// 查询表1基本件 +export function searchTable2(...params) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_采购部采购_查询物料_基本件_数量维护', + param: `项目流水号_check=${params[2]}&项目流水号=${params[3]}&机床流水号_check=${params[4]}&机床流水号=${params[5]}&组件流水号_check=${params[6]}&组件流水号=${params[7]}&物料状态=1`, + Pagination: params[0] + '&' + params[1] + } + }) +} +export function editGroupPartNum(num, num1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: 'MRP_计划订单_组件零件清单_编辑数据', + param: '组件零件流水号=' + num + '&零件数量=' + num1 + } + }) +} +export function editGroupBasicPartNum(num, num1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: 'MRP_计划订单_组件零件清单_基本件_采购_编辑数据', + param: '组件零件基本件流水号=' + num + '&零件数量=' + num1 + } + }) +} diff --git a/src/api/BasicData/PersonnelManagement.js b/src/api/BasicData/PersonnelManagement.js new file mode 100644 index 00000000..83959a0d --- /dev/null +++ b/src/api/BasicData/PersonnelManagement.js @@ -0,0 +1,354 @@ +import request from '@/utils/request' +export function getTree() { + return request({ + url: '', + method: 'post', + data: { + type: 1, + name: '人事档案管理_部门关系_查询节点', + param: '子节点=0=int' + } + }) +} +export function tree(data, pid) { + const result = [] + let temp + for (let i = 0; i < data.length; i++) { + if (data[i].父节点 === pid) { + const obj = { label: data[i].节点名称, id: data[i].子节点 } + temp = tree(data, data[i].子节点) + if (temp.length > 0) { + obj.children = temp + } + result.push(obj) + } + } + return result +} +export function getTablePeople(code, pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: 1, + name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号', + param: '考核部门编号=' + code + '=int', + pagination: pageCurrent + '&' + pageSize + } + }) +} +export function getTablePeopleForName(name) { + return request({ + url: '', + method: 'post', + data: { + type: 1, + name: '人事档案管理_人员名单_查询数据_根据姓名_MESWORK', + param: '姓名=' + name + '=string' + } + }) +} +// 新增部门 +export function addDepartmentName(num1, num2, num3) { + return request({ + url: '', + method: 'post', + data: { + type: 2, + name: '人事档案管理_部门关系_增加节点', + param: '父节点=' + num1 + '=int&节点名称=' + num2 + '=string&子节点=' + num3 + } + }) +} +// 删除部门 +export function delList(num1) { + return request({ + url: '', + method: 'post', + data: { + type: 2, + name: '人事档案管理_部门关系_删除节点', + param: '子节点=' + num1 + '=int' + } + }) +} +// 编辑部门 +export function editList(num1, num2) { + return request({ + url: '', + method: 'post', + data: { + type: 2, + name: '人事档案管理_部门关系_修改节点', + param: '子节点=' + num1 + '=int&节点名称=' + num2 + '=string' + } + }) +} +export function delPeopleList(num1) { + return request({ + url: '', + method: 'post', + data: { + type: 2, + name: '人事档案管理_人员名单_删除数据_MESWORK', + param: '人员编号=' + num1 + '=int' + } + }) +} +export function initUniversity() { + return request({ + url: '', + method: 'post', + data: { + type: 1, + name: '人事档案管理_基础表_毕业院校_查询数据' + } + }) +} +export function fetchEducationData() { + return request({ + url: '', + method: 'post', + data: { + type: 1, + name: '人事档案管理_基础表_学历_查询数据' + } + }) +} +export function initMajor() { + return request({ + url: '', + method: 'post', + data: { + type: 1, + name: '人事档案管理_基础表_所学专业_查询数据' + } + }) +} +export function fetchForeignLanguageLevelDate() { + return request({ + url: '', + method: 'post', + data: { + type: 1, + name: '人事档案管理_基础表_外语及熟练程度_查询数据' + } + }) +} +export function fetchTitleData() { + return request({ + url: '', + method: 'post', + data: { + type: 1, + name: '人事档案管理_基础表_职称_查询数据' + } + }) +} +export function fetchPostData() { + return request({ + url: '', + method: 'post', + data: { + type: 1, + name: '人事档案管理_基础表_人员岗位_查询数据' + } + }) +} +export function fetchPositionStatusData() { + return request({ + url: '', + method: 'post', + data: { + type: 1, + name: '人事档案管理_基础表_岗位状态_查询数据' + } + }) +} +export function addPeople(id, Sex, Education, Address, Nation, Post, AccountNumber, Password, Name, IDcard, TimeOfEntry, Birthday, ContactInformation) { + return request({ + url: '', + method: 'post', + data: { + type: 2, + name: '人事档案管理_人员名单_增加数据_MESWORK', + param: '考核部门编号=' + id + '=int&性别编号=' + Sex + '=int&学历编号=' + Education + '=int&家庭住址=' + Address + '&民族=' + Nation + '&岗位编号=' + Post + '=int&考勤编号=' + AccountNumber + '=string&密码=' + Password + '=string&姓名=' + Name + '=string&身份证号=' + IDcard + '=string&入公司时间=' + TimeOfEntry + '=string&出生日期=' + Birthday + '=string&联系电话=' + ContactInformation + '=string' + } + }) +} +export function editPeople(id, Sex, Education, Address, Nation, Post, AccountNumber, Password, Name, IDcard, TimeOfEntry, Birthday, ContactInformation) { + return request({ + url: '', + method: 'post', + data: { + type: 2, + name: '人事档案管理_人员名单_修改数据_MESWORK', + param: '人员编号=' + id + '=int&性别编号=' + Sex + '=int&学历编号=' + Education + '=int&家庭住址=' + Address + '&民族=' + Nation + '&岗位编号=' + Post + '=int&考勤编号=' + AccountNumber + '=string&密码=' + Password + '=string&姓名=' + Name + '=string&身份证号=' + IDcard + '=string&入公司时间=' + TimeOfEntry + '=string&出生日期=' + Birthday + '=string&联系电话=' + ContactInformation + '=string' + } + }) +} +export function moveGroups(num1, num2) { + return request({ + url: '', + method: 'post', + data: { + type: 2, + name: '人事档案管理_人员名单_移动数据_MESWORK', + param: '人员编号=' + num1 + '=int&考核部门编号=' + num2 + '=int' + } + }) +} +export function feacthUniversity(num1) { + return request({ + url: '', + method: 'post', + data: { + type: 1, + name: '人事档案管理_基础表_毕业院校_查询数据_根据学校名_MESWORK', + param: '毕业院校名称=' + num1 + '=string' + } + }) +} +export function addUniversity(num1) { + return request({ + url: '', + method: 'post', + data: { + type: 2, + name: '人事档案管理_基础表_毕业院校_增加数据', + param: '毕业院校名称=' + num1 + '=string' + } + }) +} +export function editUniversity(num1, num2) { + return request({ + url: '', + method: 'post', + data: { + type: 2, + name: '人事档案管理_基础表_毕业院校_修改数据', + param: '毕业院校编号=' + num1 + '=int&毕业院校名称=' + num2 + '=string' + } + }) +} +export function delUniversity(num1) { + return request({ + url: '', + method: 'post', + data: { + type: 2, + name: '人事档案管理_基础表_毕业院校_删除数据', + param: '毕业院校编号=' + num1 + '=int' + } + }) +} +export function fetchMajor(num1) { + return request({ + url: '', + method: 'post', + data: { + type: 1, + name: '人事档案管理_基础表_所学专业_查询数据_根据专业名_MESWORK', + param: '专业名称=' + num1 + '=string' + } + }) +} +export function addMajor(num1) { + return request({ + url: '', + method: 'post', + data: { + type: 2, + name: '人事档案管理_基础表_所学专业_增加数据', + param: '专业名称=' + num1 + '=string' + } + }) +} +export function editMajor(num1, num2) { + return request({ + url: '', + method: 'post', + data: { + type: 2, + name: '人事档案管理_基础表_所学专业_修改数据', + param: '专业编号=' + num1 + '=int&专业名称=' + num2 + '=string' + } + }) +} +export function delMajor(num1) { + return request({ + url: '', + method: 'post', + data: { + type: 2, + name: '人事档案管理_基础表_所学专业_删除数据', + param: '专业编号=' + num1 + '=int' + } + }) +} +export function fetchPost(num1) { + return request({ + url: '', + method: 'post', + data: { + type: 1, + name: '人事档案管理_基础表_人员岗位_查询数据_根据岗位名_MESWORK', + param: '岗位名称=' + num1 + '=string' + } + }) +} +export function addPost(num1) { + return request({ + url: '', + method: 'post', + data: { + type: 2, + name: '人事档案管理_基础表_人员岗位_增加数据', + param: '岗位名称=' + num1 + '=string' + } + }) +} +export function editPost(num1, num2) { + return request({ + url: '', + method: 'post', + data: { + type: 2, + name: '人事档案管理_基础表_人员岗位_修改数据', + param: '岗位编号=' + num1 + '=int&岗位名称=' + num2 + '=string' + } + }) +} +export function delPost(num1) { + return request({ + url: '', + method: 'post', + data: { + type: 2, + name: '人事档案管理_基础表_人员岗位_删除数据', + param: '岗位编号=' + num1 + '=int' + } + }) +} +export function quit(num1) { + return request({ + url: '', + method: 'post', + data: { + type: 2, + name: '人事档案管理_人员_离职操作', + param: '人员编号=' + num1 + '=int' + } + }) +} +export function searchLeavingList(pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: 1, + name: '人事档案管理_人员_离职人员查询', + pagination: pageCurrent + '&' + pageSize + } + }) +} diff --git a/src/api/BasicData/ShiftManagement.js b/src/api/BasicData/ShiftManagement.js new file mode 100644 index 00000000..18f45f6a --- /dev/null +++ b/src/api/BasicData/ShiftManagement.js @@ -0,0 +1,74 @@ +import request from '@/utils/request' + +// 查询班次 +export function getScheduling(SchedulingType) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '设备管理_基础表_班次表_查询数据', + param: '班次类型=' + SchedulingType + } + }) +} +// 查询班次 +export function searchProgramme() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '设备管理_基础表_班次表_查询班次' + } + }) +} + +// 新增班次 +export function addShift(starttime, endtime, shifttype, shiftnumber, nightwork, work, temporary, difficult, note) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '设备管理_基础表_班次表_增加数据', + param: '开始工作时间=' + starttime + '&结束工作时间=' + endtime + '&班次类型=' + shifttype + '&班次代码=' + shiftnumber + '&是否夜班=' + nightwork + '&是否工作=' + work + '=int&是否可以安排临时件=' + temporary + '=int&是否可以安排高难度件=' + difficult + '=int&备注=' + note + } + }) +} +// 编辑班次 +export function editShift(shiftCode, starttime, endtime, shifttype, shiftnumber, nightwork, work, temporary, difficult, note) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '设备管理_基础表_班次表_修改数据', + param: '序号=' + shiftCode + '=int&开始工作时间=' + starttime + '=datetime&结束工作时间=' + endtime + '=datetime&班次类型=' + shifttype + '=int&班次代码=' + shiftnumber + '=int&是否夜班=' + nightwork + '=int&是否工作=' + work + '=int&是否可以安排临时件=' + temporary + '=int&是否可以安排高难度件=' + difficult + '=int&备注=' + note + } + }) +} +// 删除班次 +export function deleteShift(shiftCode) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '设备管理_基础表_班次表_删除数据', + param: '序号=' + shiftCode + } + }) +} +// 班次类型与工作时间增加 +export function addShiftType() { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '设备管理_基础表_班次表_班次类型与工作时间_增加' + } + }) +} + diff --git a/src/api/BasicData/SystemRrolemaintenance.js b/src/api/BasicData/SystemRrolemaintenance.js new file mode 100644 index 00000000..df3b93e5 --- /dev/null +++ b/src/api/BasicData/SystemRrolemaintenance.js @@ -0,0 +1,59 @@ +import request from '@/utils/request' + +export function InitRolefunction(pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '菜单系统模块_项目角色_查询数据_MESWORK', + Pagination: pageCurrent + '&' + pageSize + } + }) +} +export function deleteData(code) { + return request({ + url: '', + method: 'post', + data: { + type: 2, + name: '菜单系统模块_项目角色_删除_MESWORK', + param: '角色编号=' + code + '=int' + } + }) +} +export function searchTable(num, pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '菜单系统模块_项目角色_查询数据_MESWORK', + param: '角色功能=' + num + '=string', + Pagination: pageCurrent + '&' + pageSize + } + }) +} +export function addData(code) { + return request({ + url: '', + method: 'post', + data: { + type: 2, + name: '菜单系统模块_项目角色_增加_MESWORK', + param: '角色功能=' + code + '=string' + } + }) +} +export function addData2(code1, num1) { + return request({ + url: '', + method: 'post', + data: { + type: 2, + name: '菜单系统模块_项目角色_修改数据_MESWORK', + param: '角色功能=' + code1 + '&角色编号=' + num1 + } + }) +} + diff --git a/src/api/BasicData/UserRightsManagement.js b/src/api/BasicData/UserRightsManagement.js new file mode 100644 index 00000000..31da703e --- /dev/null +++ b/src/api/BasicData/UserRightsManagement.js @@ -0,0 +1,82 @@ +import request from '@/utils/request' + +export function getRole() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '菜单系统模块_项目角色_查询数据_new' + } + }) +} + +export function getModule(role_check, role) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '菜单系统模块_项目主模块列表_查询数据_gj', + param: `角色编号_check=${role_check}&角色编号=${role}=int` + } + }) +} +export function addModule(module, role) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '菜单系统模块_项目角色模块列表_增加数据_gj', + param: `角色编号=${role}=int&主模块编号=${module}=int` + } + }) +} +export function deleteModule(module, role) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '菜单系统模块_项目角色模块列表_删除数据_gj', + param: `角色编号=${role}=int&主模块编号=${module}=int` + } + }) +} + +export function getModelData(role) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '菜单系统模块_项目主模块列表_查询单个模块_gj', + param: `主模块编号=${role}=int` + } + }) +} + +export function addModelData(component, title, icons) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '菜单系统模块_项目主模块列表_增加单个模块_gj', + param: `父路径=/${icons}&子名称=${icons}&子组件=${component}&标题=${title}&图标=${icons}` + } + }) +} + +export function editModelData(modelNum, component, title, icons) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '菜单系统模块_项目主模块列表_修改单个模块_gj', + param: `主模块编号=${modelNum}&父路径=/${icons}&子名称=${icons}&子组件=${component}&标题=${title}&图标=${icons}` + } + }) +} diff --git a/src/api/BasicData/WorkshopPersonnelRoleMana.js b/src/api/BasicData/WorkshopPersonnelRoleMana.js new file mode 100644 index 00000000..d287983e --- /dev/null +++ b/src/api/BasicData/WorkshopPersonnelRoleMana.js @@ -0,0 +1,151 @@ +import request from '@/utils/request.js' +// 查询项目名称 +export function dialogtablevisible() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '人事档案管理_部门关系_查询节点', + param: '子节点=0' + } + }) +} +export function dialogtablevisible1() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '人事档案管理_部门关系_查询节点', + param: '子节点=0' + } + }) +} +export function addData1(code, groupNum) { + return request({ + url: '', + method: 'post', + data: { + type: 2, + name: '菜单系统模块_项目角色员工综合_增加数据', + param: '人员编号=' + code + '=int&角色编号=' + groupNum + '=int&项目编号=10=int' + } + }) +} +export function addData2(lsh, code, groupNum) { + return request({ + url: '', + method: 'post', + data: { + type: 2, + name: '菜单系统模块_项目角色员工综合_修改数据', + param: '人员角色流水号=' + lsh + '&人员编号=' + code + '&角色编号=' + groupNum + } + }) +} +// 初始化科室 +export function initDepartment() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '人事档案管理_部门关系_查询节点' + } + }) +} +// 初始化人员信息 弹出框 +export function getTree() { + return request({ + url: '', + method: 'post', + data: { + type: 1, + name: '人事档案管理_部门关系_查询节点', + param: '子节点=0=int' + } + }) +} +export function fn(data, pid) { + const result = [] + let temp + for (let i = 0; i < data.length; i++) { + if (data[i].父节点 === pid) { + const obj = { label: data[i].节点名称, id: data[i].子节点 } + temp = fn(data, data[i].子节点) + if (temp.length > 0) { + obj.children = temp + } + result.push(obj) + } + } + return result +} +export function getTable8(code) { + return request({ + url: '', + method: 'post', + data: { + type: 1, + name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号', + param: '考核部门编号=' + code + '=int' + } + }) +} +export function handledelete(ryjslsh) { + return request({ + url: '', + method: 'post', + data: { + type: 2, + name: '菜单系统模块_项目角色员工综合_删除数据', + param: '人员角色流水号=' + ryjslsh + '=string' + } + }) +} +export function deleteData(Number) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '菜单系统模块_项目角色员工综合_删除数据', + param: '人员角色流水号=' + Number + '=int' + } + }) +} +export function searchdesigner(num2) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号', + param: '考核部门编号=' + num2 + '=int' + } + }) +} +export function initOrderType() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '菜单系统模块_项目角色_查询数据_new' + } + }) +} +export function searchTable(check1, staffName, check2, systemAdministrator, pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '菜单系统模块_项目角色员工综合_查询数据', + param: '姓名_check=' + check1 + '=int&姓名=' + staffName + '=string&角色编号_check=' + check2 + ' =int&角色编号=' + systemAdministrator + '=int', + Pagination: pageCurrent + '&' + pageSize + } + }) +} + diff --git a/src/api/BasicData/WorkshopProcessMaintenance.js b/src/api/BasicData/WorkshopProcessMaintenance.js new file mode 100644 index 00000000..8d6dcc09 --- /dev/null +++ b/src/api/BasicData/WorkshopProcessMaintenance.js @@ -0,0 +1,156 @@ +import request from '@/utils/request' +// 查工艺分类名称 +export function searchProcessClassification() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_基础表_工艺分类名称_查询数据' + } + }) +} +// 增加工艺分类 +export function addProcessClassification(ProcessClassification) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_基础表_工艺分类名称_增加数据', + param: '工艺分类名称=' + ProcessClassification + } + }) +} +// 编辑工艺分类 +export function editProcessClassification(ProcessClassificationNum, ProcessClassification) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_基础表_工艺分类名称_修改数据', + param: '工艺分类流水号=' + ProcessClassificationNum + '&工艺分类名称=' + ProcessClassification + } + }) +} +// 通过工艺编分类流水号查工艺分类名称 +export function searchProcessClassificationOfProcessClassificationNum(ProcessNum) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_基础表_工艺分类名称_根据流水号_查询数据_MESWORK', + param: '工艺分类流水号=' + ProcessNum + } + }) +} +// 删除工艺分类 +export function delProcessClassification(ProcessClassificationNum) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_基础表_工艺分类名称_删除数据', + param: '工艺分类流水号=' + ProcessClassificationNum + } + }) +} +// 通过工艺分类流水号查工艺名称 +export function searchProcessNameOfProcessClassification(ProcessClassificationNum) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_基础表_工艺名称_查询数据_按工艺分类流水号查_MESWORK', + param: '工艺分类流水号=' + ProcessClassificationNum + } + }) +} +// 通过工艺编号查工艺要求 +export function searchTechnologicalRequirementsOfProcessNum(ProcessNum) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理_基础表_工艺要求_查询数据', + param: '工艺编号=' + ProcessNum + } + }) +} +// 增加工艺 +export function addProcess(ProcessClassificationNum, ProcessName, ShortName) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: 'dbo.车间生产管理工艺_基础表_工艺名称_增加数据', + param: '工艺分类流水号=' + ProcessClassificationNum + '&工艺名称=' + ProcessName + '&工艺名称简称=' + ShortName + } + }) +} +// 编辑工艺 +export function editProcess(ProcessClassificationNum, ProcessName, ShortName) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_基础表_工艺名称_修改名称及简称', + param: '工艺编号=' + ProcessClassificationNum + '&工艺名称=' + ProcessName + '&工艺名称简称=' + ShortName + } + }) +} +// 删除工艺 +export function delProcess(ProcessNum) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_基础表_工艺名称_删除数据', + param: '工艺编号=' + ProcessNum + } + }) +} +// 新增工艺要求 +export function addTechnologicalRequirements(ProcessClassificationNum, ProcessName) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理_基础表_工艺要求_增加数据', + param: '工艺编号=' + ProcessClassificationNum + '&工艺要求=' + ProcessName + } + }) +} +// 编辑工艺要求 +export function editTechnologicalRequirements(ProcessClassificationNum, ProcessName) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理_基础表_工艺要求_修改数据', + param: '工艺要求流水号=' + ProcessClassificationNum + '&工艺要求=' + ProcessName + } + }) +} +// 删除工艺要求 +export function delTechnologicalRequirements(ProcessClassificationNum) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理_基础表_工艺要求_删除数据', + param: '工艺要求流水号=' + ProcessClassificationNum + } + }) +} diff --git a/src/api/BasicData/maintenanceEquipmentPerson.js b/src/api/BasicData/maintenanceEquipmentPerson.js new file mode 100644 index 00000000..e33a68c5 --- /dev/null +++ b/src/api/BasicData/maintenanceEquipmentPerson.js @@ -0,0 +1,97 @@ +import request from '@/utils/request' + +// 初始化设备名称 +export function getEquipment(id, equipmentNum) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '设备管理_设备名称与班次关系_查询数据', + param: `查询代码=${id}=int&设备流水号=${equipmentNum}` + } + }) +} + +export function getDepartment() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '设备管理_部门查询' + } + }) +} + +export function getTablePeople(number) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号', + param: `考核部门编号=${number}` + } + }) +} + +export function getTableData(equipmentCheck, equipmentNameValue, operatorCheck, operatorNumber, pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '设备管理_设备名称_人员关系_查询数据', + param: `设备流水号_check=${equipmentCheck}&设备流水号=${equipmentNameValue}&操作者编号_check=${operatorCheck}&操作者编号=${operatorNumber}`, + pagination: pageCurrent + '&' + pageSize + } + }) +} + +export function deleteTable(number) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '设备管理_设备名称_人员关系_删除数据', + param: '设备人员关系流水号=' + number + '=int' + } + }) +} + +export function getStaff() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '设备管理_基础表_班次表_查询班次' + } + }) +} + +export function addTable(equipmentNumber, shift, operator, operatorNumber) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '设备管理_设备名称_人员关系_增加数据', + param: '设备流水号=' + equipmentNumber + '=int&班次代码=' + shift + '=int&操作者=' + operator + '=string&操作者编号=' + operatorNumber + '=int' + } + }) +} + +export function editTable(equipmentNumber, shift, operator, operatorNumber, Number) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '设备管理_设备名称_人员关系_修改数据', + param: '设备流水号=' + equipmentNumber + '=int&班次代码=' + shift + '=int&操作者=' + operator + '=string&操作者编号=' + operatorNumber + '=int&设备人员关系流水号=' + Number + '=int' + } + }) +} diff --git a/src/api/Inventory/CreatePickingList.js b/src/api/Inventory/CreatePickingList.js new file mode 100644 index 00000000..d22ce193 --- /dev/null +++ b/src/api/Inventory/CreatePickingList.js @@ -0,0 +1,122 @@ +import request from '@/utils/request' + +// 初始化人员 +export function initPickPerson() { + return request({ + url: '', + method: 'post', + data: { + type: '3', + name: 'select 姓名,人员编号 from 人事档案管理_人员名单 where 是否离职 = 0' + } + }) +} +// 初始化机床项目 +export function initMachineProject() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_项目名称_查询数据' + } + }) +} +// 组件查询 +export function searchgroup(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_组件名称_查询数据', + param: '机床流水号=' + num + } + }) +} +// 查询三表 +export function searchTable(...params) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间装配管理_领料单_三表_查询数据', + param: `机床流水号_check=${params[0]}&机床流水号=${params[1]}&组件流水号_check=${params[2]}&组件流水号=${params[3]}&零件类型=${params[6]}`, + Pagination: params[4] + '&' + params[5] + } + }) +} +// 领料单查询 +export function searchList(pageCurrent, pageSize, listNumber_check, listNumber, isElectrical) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间装配管理_领料单_查询数据', + param: '领料单编号_check=' + listNumber_check + '&领料单编号=' + listNumber + '&是否电气=' + isElectrical, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 创建领料单 +export function createList(num, remark, isElectrical) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间装配管理_领料单_增加数据', + param: '领料人流水号=' + num + '&领料单备注=' + remark + '&是否电气=' + isElectrical + } + }) +} +// 删除领料单 +export function dropList(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间装配管理_领料单_删除数据', + param: '领料单流水号=' + num + } + }) +} +// 查询领料单明细 +export function searchListDetail(...params) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间装配管理_领料单明细_查询数据', + param: `领料单流水号=${params[0]}` + } + }) +} +// 选入领料单 +export function selectIntoList(...params) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间装配管理_领料单明细_增加数据', + param: `基本件流水号组=${params[0]}&标准件和外购件流水号组=${params[1]}&领料单流水号=${params[2]}` + } + }) +} +// 删除领料单 +export function dropListDetail(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间装配管理_领料单明细_删除数据', + param: '领料单明细流水号=' + num + } + }) +} diff --git a/src/api/Inventory/DirectPart.js b/src/api/Inventory/DirectPart.js new file mode 100644 index 00000000..1afd3ca0 --- /dev/null +++ b/src/api/Inventory/DirectPart.js @@ -0,0 +1,133 @@ +import request from '@/utils/request' + +// 初始化项目 +export function initProject() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_项目名称_查询数据_按时间排序' + } + }) +} +// 机床查询 +export function searchmachine(check, num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_机床名称_查询数据', + param: '项目流水号_check=' + check + '=int&项目流水号=' + num + } + }) +} +// 分组查询 +export function searchTeam(machineNumber) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_组件名称_查询数据', + param: '机床流水号=' + machineNumber + } + }) +} +// 采购合同查询 +export function searchContract() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_库存管理_采购合同查询' + } + }) +} +// 采购合同明细查询 +export function searchContractDetail(contractnumber) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_采购合同明细_查询数据', + param: '采购合同流水号=' + contractnumber + } + }) +} +// 直达件查询 +export function searchDirectPart(pageCurrent, pageSize, project_check, project, machine_check, machine, group_check, group, contract_check, contract) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_直达件_零件查询', + param: '项目流水号_check=' + project_check + '&项目流水号=' + project + '&机床流水号_check=' + machine_check + '&机床流水号=' + machine + '&组件流水号_check=' + group_check + '&组件流水号=' + group + '&合同流水号_check=' + contract_check + '&合同流水号=' + contract, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 人员查询 需要在部门确定之后修改 +export function searchPeople(data1) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_人员查询_库存部门', + param: '角色编号=' + data1 + } + }) +} +// 直达件增加 +export function addDirectPart(data1, data2, data3, data4, data5, data6, data7, data8, data9, data10, data11, data12, data13, data14, data15) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '库存管理_直达件_直达件增加', + param: '实际到货数量=' + data1 + '&采购合同明细流水号=' + data2 + '&入库人员流水号=' + data3 + '&领用者=' + data4 + '&出库数量=' + data5 + '&组件零件流水号=' + data6 + '&组件零件基本件流水号=' + data7 + '&项目流水号=' + data8 + '&机床流水号=' + data9 + '&组件流水号=' + data10 + '&名称=' + data11 + '&备注=' + data12 + '&物料型号=' + data13 + '&物料规格=' + data14 + '&零件图号=' + data15 + } + }) +} +// 直达件记录查询 +export function searchDirectRec(contractnumber) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_直达件_直达件记录查询', + param: '采购合同明细流水号=' + contractnumber + } + }) +} +// 直达件记录修改 +export function editDirectRec(data1, data2, data3, data4) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '库存管理_直达件_直达件记录修改', + param: '直达件流水号=' + data1 + '&到货数量=' + data2 + '&领用人员流水号=' + data3 + '&备注=' + data4 + } + }) +} +// 直达件记录删除 +export function deleteDirectRec(data1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '库存管理_直达件_直达件记录删除', + param: '直达件流水号=' + data1 + } + }) +} diff --git a/src/api/Inventory/ExchangeApproval.js b/src/api/Inventory/ExchangeApproval.js new file mode 100644 index 00000000..a8d02e43 --- /dev/null +++ b/src/api/Inventory/ExchangeApproval.js @@ -0,0 +1,39 @@ +import request from '@/utils/request' + +// 交换件查询 +export function searchExchangePart(pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_交换件_交换件审批查询', + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 通过交换件 +export function approvalExchangepart(data1, data2, data22, data3, data33, data4) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '库存管理_交换件_交换件审批通过', + param: '交换单流水号=' + data1 + '&交换件采购合同明细流水号=' + data2 + '&被交换件采购合同明细流水号=' + data22 + '&交换件货位流水号=' + data3 + '&被交换货位流水号=' + data33 + '&交换数量=' + data4 + } + }) +} + +// 拒绝交换件 +export function disappExchangepart(data1, data2) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '库存管理_交换件_交换件审批拒绝', + param: '交换单流水号=' + data1 + '&不通过原因=' + data2 + } + }) +} diff --git a/src/api/Inventory/ExchangePart.js b/src/api/Inventory/ExchangePart.js new file mode 100644 index 00000000..aa5ea965 --- /dev/null +++ b/src/api/Inventory/ExchangePart.js @@ -0,0 +1,122 @@ +import request from '@/utils/request' + +// 初始化项目 +export function initProject() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_项目名称_查询数据_按时间排序' + } + }) +} +// 机床查询 +export function searchmachine(check, num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_机床名称_查询数据', + param: '项目流水号_check=' + check + '=int&项目流水号=' + num + } + }) +} +// 分组查询 +export function searchTeam(machineNumber) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_组件名称_查询数据', + param: '机床流水号=' + machineNumber + } + }) +} +// 外购件、标准件查询 +export function searchPurchasePart(pageCurrent, pageSize, project_check, project, machine_check, machine, group_check, group) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_外购件出库_零件查询', + param: '项目流水号_check=' + project_check + '&项目流水号=' + project + '&机床流水号_check=' + machine_check + '&机床流水号=' + machine + '&组件流水号_check=' + group_check + '&组件流水号=' + group, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 领料单查询 +export function searchList(listNumber) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间装配管理_领料单_领料单查询', + param: '领料单编号=' + listNumber + } + }) +} +// 交换件查询 +export function searchExchangePart(pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_交换件_交换件查询', + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 增加交换件 +export function addExchangepart(data1, data2, data3, data4, data5, data6, data7, data8, data9, data10, data11, data12, data13, data14, data15, data16, data17) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '库存管理_交换件_交换件增加', + param: '交换单编号=' + data1 + '&交换件采购合同明细流水号=' + data2 + '&被交换件采购合同明细流水号=' + data3 + '&交换件名称=' + data4 + '&被交换件名称=' + data5 + '&交换件项目流水号=' + data6 + '&被交换件项目流水号=' + data7 + '&交换件机床流水号=' + data8 + '&被交换件机床流水号=' + data9 + '&交换件组件流水号=' + data10 + '&被交换件组件流水号=' + data11 + '&货位流水号=' + data12 + '&被交换货位流水号=' + data13 + '&交换数量=' + data14 + '&申请人=' + data15 + '&备注=' + data16 + '&领料单流水号=' + data17 + } + }) +} +// 删除交换单 +export function dropExchangeList(PickingListNumberx) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '库存管理_交换件_交换件删除', + param: '交换单流水号=' + PickingListNumberx + } + }) +} +// 交换单修改 +export function editExchangeList(data1, data2, data3, data4, data5) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '库存管理_交换件_交换单修改', + param: '交换单流水号=' + data1 + '&交换单编号=' + data2 + '&交换数量=' + data3 + '&领料单流水号=' + data4 + '&备注=' + data5 + } + }) +} +// 领料单查询 +export function searchList1(listNumber_check, listNumber) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间装配管理_领料单_领料单查询', + param: '领料单编号_check=' + 0 + '&领料单编号=' + listNumber + } + }) +} diff --git a/src/api/Inventory/GenneralPart.js b/src/api/Inventory/GenneralPart.js new file mode 100644 index 00000000..f60553b3 --- /dev/null +++ b/src/api/Inventory/GenneralPart.js @@ -0,0 +1,48 @@ +import request from '@/utils/request' +// 查询零件入库情况 +export function searchTable(partnumber) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'MES_机加工MES_库存管理_入库模块_零件基础信息查询_根据零件图号', + param: '零件图号=' + partnumber + '=string' + } + }) +} +// 仓库查询 +export function getinventory() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_货位主文件_仓库查询' + } + }) +} +// 货位查询 +export function getlocate(housenumber) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_货位主文件_查询数据', + param: '仓库流水号=' + housenumber + '=int' + } + }) +} +// 修改入库数量 +export function insertOne(num0, num1, people, num4, num5, num6, num7) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: 'MES_机加工MES_库存管理_入库模块_增加入库信息_修改入库数量', + param: '工艺计划流水号=' + num0 + '=int&入库数量=' + num1 + '=int&收件人员编号=' + people + '=int&送件人员编号=1001' + '&漆塑=' + num4 + '&仓库流水号=' + num5 + '&货位流水号=' + num6 + '&备注=' + num7 + } + }) +} diff --git a/src/api/Inventory/InboundCard.js b/src/api/Inventory/InboundCard.js new file mode 100644 index 00000000..04c53795 --- /dev/null +++ b/src/api/Inventory/InboundCard.js @@ -0,0 +1,156 @@ +import request from '@/utils/request' +// 采购合同查询 +export function searchContract() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_库存管理_采购合同查询' + } + }) +} +export function searchShopContract() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_库存管理_车间采购合同查询' + } + }) +} + +// 仓库查询 +export function searchInventory() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_货位主文件_仓库查询' + } + }) +} +// 入库记录查询 +export function searchInbound(...data) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_入库记录_采购部查询', + param: `采购合同流水号_check=${data[0]}&采购合同流水号=${data[1]}&到货时间_check=${data[2]}&到货开始时间=${data[3]}&到货结束时间=${data[4]}&仓库流水号_check=${data[5]}&仓库流水号=${data[6]}` + } + }) +} +// 车间采购查询 +export function searchShopInbound(data1, data2, data3) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_入库记录_车间采购查询', + param: '采购合同流水号=' + data1 + '&到货时间=' + data2 + '&仓库流水号=' + data3 + } + }) +} +// 入库单查询 +export function searchInboundCard(data1, data2) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_采购入库单_入库单查询', + param: '入库单号_check=' + data1 + '&入库单号=' + data2 + } + }) +} +// 入库单增加 +export function addInboundCard(data1, data2, data3, data4, data5, data6, data7, data8, data9, data10, data11) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '库存管理_采购入库单_入库单增加', + param: '入库日期=' + data1 + '&仓库流水号=' + data2 + '&合同流水号=' + data3 + '&到货单号=' + data4 + '&业务员=' + data5 + '&业务号=' + data6 + '&到货日期=' + data7 + '&业务类型=' + data8 + '&采购类型=' + data9 + '&入库类别=' + data10 + '&备注=' + data11 + } + }) +} +// 入库单删除 +export function deleteInboundCard(data1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '库存管理_采购入库单_入库单删除', + param: '采购入库单流水号=' + data1 + } + }) +} +// 入库单修改 +export function editInboundCard(data0, data1, data2, data3, data4, data5, data6, data7, data8, data9, data10, data11) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '库存管理_采购入库单_入库单修改', + param: '采购入库单流水号=' + data0 + '&入库日期=' + data1 + '&仓库流水号=' + data2 + '&合同流水号=' + data3 + '&到货单号=' + data4 + '&业务员=' + data5 + '&业务号=' + data6 + '&到货日期=' + data7 + '&业务类型=' + data8 + '&采购类型=' + data9 + '&入库类别=' + data10 + '&备注=' + data11 + } + }) +} +// 库存角色查询 +export function searchAffairPeople(data1) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_人员查询_库存部门', + param: '角色编号=' + data1 + } + }) +} + +// 入库单明细查询 +export function searchInboundCardDetail(data1) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_采购入库单_入库单明细_查询数据', + param: '采购入库单流水号=' + data1 + } + }) +} +// 入库单明细增加 +export function addInboundCardDetail(data1, data2, data3, data4, data5, data6, data7) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '库存管理_采购入库单_批量增加入库单明细', + param: '采购入库单流水号=' + data1 + '&名称组=' + data2 + '&型号组=' + data3 + '&规格组=' + data4 + '&图号组=' + data5 + '&数量组=' + data6 + '&本币单价组=' + data7 + } + }) +} + +// 入库单明细删除 +export function deleteInboundCardDetail(data1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '库存管理_采购入库单_采购入库单明细删除', + param: '采购入库单明细流水号=' + data1 + } + }) +} diff --git a/src/api/Inventory/Inboundscanning.js b/src/api/Inventory/Inboundscanning.js new file mode 100644 index 00000000..92e8ae6c --- /dev/null +++ b/src/api/Inventory/Inboundscanning.js @@ -0,0 +1,70 @@ +import request from '@/utils/request' +// 查询零件入库情况 +export function searchTable(partnumber) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'MES_机加工MES_库存管理_入库模块_零件基础信息查询_根据零件图号', + param: '工艺计划流水号=' + partnumber + } + }) +} +export function searchPartNumber(partnumber) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_基本件入库_零件图号', + param: '工艺计划流水号=' + partnumber + } + }) +} +export function CraftNumber(partnumber) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_基本件入库_工艺计划流水号', + param: '零件图号=' + partnumber + } + }) +} +// 仓库查询 +export function getinventory() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_货位主文件_仓库查询' + } + }) +} +// 货位查询 +export function getlocate(housenumber) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_货位主文件_查询数据', + param: '仓库流水号=' + housenumber + '=int' + } + }) +} +// 修改入库数量 +export function insertOne(num0, num1, people, num4, num5, num6, num7) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: 'MES_机加工MES_库存管理_入库模块_增加入库信息_修改入库数量', + param: '工艺计划流水号=' + num0 + '=int&入库数量=' + num1 + '=int&收件人员编号=' + people + '=int&送件人员编号=1001' + '&漆塑=' + num4 + '&仓库流水号=' + num5 + '&货位流水号=' + num6 + '&备注=' + num7 + } + }) +} diff --git a/src/api/Inventory/InventoryCheck.js b/src/api/Inventory/InventoryCheck.js new file mode 100644 index 00000000..99c7cdc7 --- /dev/null +++ b/src/api/Inventory/InventoryCheck.js @@ -0,0 +1,249 @@ +import request from '@/utils/request' + +// 初始化项目 +export function initProject() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_项目名称_查询数据_按时间排序' + } + }) +} +// 机床查询 +export function searchmachine(check, num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_机床名称_查询数据', + param: '项目流水号_check=' + check + '=int&项目流水号=' + num + } + }) +} +// 分组查询 +export function searchTeam(machineNumber) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_组件名称_查询数据', + param: '机床流水号=' + machineNumber + } + }) +} +// 外购件查询 +export function searchPurchasePart(pageCurrent, pageSize, project_check, project, machine_check, machine, group_check, group) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_库存盘点_外购件查询', + param: '项目流水号_check=' + project_check + '&项目流水号=' + project + '&机床流水号_check=' + machine_check + '&机床流水号=' + machine + '&组件流水号_check=' + group_check + '&组件流水号=' + group, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 外购件入库记录查询 +export function searchPurchasePartIn(contractdetail) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_库存盘点_外购件入库记录', + param: '采购合同明细流水号=' + contractdetail + } + }) +} +// 外购件出库记录查询 +export function searchPurchasePartOut(teampart) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_库存盘点_外购件出库记录', + param: '采购合同明细流水号=' + teampart + } + }) +} +// 标准件查询 +export function searchStandardPart(pageCurrent, pageSize, project_check, project, machine_check, machine, group_check, group) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_库存盘点_标准件查询', + param: '项目流水号_check=' + project_check + '&项目流水号=' + project + '&机床流水号_check=' + machine_check + '&机床流水号=' + machine + '&组件流水号_check=' + group_check + '&组件流水号=' + group, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 标准件入库记录查询 +export function searchStandardPartIn(data1) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_库存盘点_标准件入库记录', + param: '采购合同明细流水号=' + data1 + } + }) +} +// 标准件出库记录查询 +export function searchStandardPartOut(data1) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_库存盘点_标准件出库记录', + param: '采购合同明细流水号=' + data1 + } + }) +} +// 标准件安全库存修改 +export function safeAmount(data1, data2) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '库存管理_库存盘点_标准件安全库存修改', + param: '组件零件流水号=' + data1 + '&安全库存量=' + data2 + } + }) +} + +// 采购基本件件查询 +export function searchPurchaseBasicPart(pageCurrent, pageSize, project_check, project, machine_check, machine, group_check, group) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_库存盘点_采购部基本件查询', + param: '项目流水号_check=' + project_check + '&项目流水号=' + project + '&机床流水号_check=' + machine_check + '&机床流水号=' + machine + '&组件流水号_check=' + group_check + '&组件流水号=' + group, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 基本件查询 +export function searchBasicPart(pageCurrent, pageSize, project_check, project, machine_check, machine, group_check, group) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_库存盘点_基本件查询', + param: '项目流水号_check=' + project_check + '&项目流水号=' + project + '&机床流水号_check=' + machine_check + '&机床流水号=' + machine + '&组件流水号_check=' + group_check + '&组件流水号=' + group, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 基本件入库记录查询 +export function searchBasicPartIn(craftNumber) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_库存盘点_基本件入库记录', + param: '工艺计划流水号=' + craftNumber + } + }) +} +// 基本件出库记录查询 +export function searchBasicPartOut(craftNumber) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_库存盘点_基本件出库记录', + param: '工艺计划流水号=' + craftNumber + } + }) +} +// 通用件查询 +export function searchGeneralPart(pageCurrent, pageSize, project_check, project, machine_check, machine, group_check, group) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_库存盘点_通用件查询', + param: '项目流水号_check=' + project_check + '&项目流水号=' + project + '&机床流水号_check=' + machine_check + '&机床流水号=' + machine + '&组件流水号_check=' + group_check + '&组件流水号=' + group, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 车间采购基本件查询 +export function searchHourseBasicPart(pageCurrent, pageSize, project_check, project, machine_check, machine, group_check, group) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_库存盘点_车间采购基本件查询', + param: '项目流水号_check=' + project_check + '&项目流水号=' + project + '&机床流水号_check=' + machine_check + '&机床流水号=' + machine + '&组件流水号_check=' + group_check + '&组件流水号=' + group, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 车间采购外购件查询 +export function searchHoursePurchasePart(pageCurrent, pageSize, project_check, project, machine_check, machine, group_check, group) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_库存盘点_车间采购外购件查询', + param: '项目流水号_check=' + project_check + '&项目流水号=' + project + '&机床流水号_check=' + machine_check + '&机床流水号=' + machine + '&组件流水号_check=' + group_check + '&组件流水号=' + group, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 车间采购外购件出库记录查询 +export function searchShopPurchasePartOut(teampart) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_库存盘点_车间外购件出库记录', + param: '请购单明细流水号=' + teampart + } + }) +} +// 车间采购外购件入库记录查询 +export function searchShopPurchasePartIn(teampart) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_库存盘点_车间外购件入库记录', + param: '请购单明细流水号=' + teampart + } + }) +} +// 车间采购库存盘点修改 +export function CheckAlter(receive, project, machinenumber, partnumber, oldnumber, reason, number, people, locate, contractdetail, craftnumber, materialType, materiallocate, name, mode, picture, type, material) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '库存管理_库存盘点_修改数量', + param: '收件信息ID=' + receive + '&项目流水号=' + project + '&机床流水号=' + machinenumber + '&组件流水号=' + partnumber + '&原数量=' + oldnumber + '&修改原因=' + reason + '&数量=' + number + '&人员编号=' + people + '&货位流水号=' + locate + '&采购合同明细流水号=' + contractdetail + '&工艺计划流水号=' + craftnumber + '&零件类型代码=' + materialType + '&物料与货位对照流水号=' + materiallocate + '&名称=' + name + '&规格=' + mode + '&图号=' + picture + '&型号=' + type + '&材料=' + material + } + }) +} diff --git a/src/api/Inventory/InventoryManagement.js b/src/api/Inventory/InventoryManagement.js new file mode 100644 index 00000000..2e6d2393 --- /dev/null +++ b/src/api/Inventory/InventoryManagement.js @@ -0,0 +1,109 @@ +import request from '@/utils/request' + +// 查询仓库 +export function initWarehouse() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_货位仓库_仓库_查询数据' + } + }) +} +// 增加仓库 +export function addWarehouse(num0, num1, num2, num3, num4, num5) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '库存管理_货位仓库_仓库_增加数据', + param: '仓库编号=' + num0 + '&仓库名称=' + num1 + '&仓库描述=' + num2 + '&地址=' + num3 + '&联系人=' + num4 + '&备注=' + num5 + } + }) +} +// 修改仓库 +export function alterWarehouse(num, num0, num1, num2, num3, num4, num5) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '库存管理_货位仓库_仓库_修改数据', + param: '仓库流水号=' + num + '&仓库编号=' + num0 + '&仓库名称=' + num1 + '&仓库描述=' + num2 + '&地址=' + num3 + '&联系人=' + num4 + '&备注=' + num5 + } + }) +} +// 删除仓库 +export function deleteWarehouse(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '库存管理_货位仓库_仓库_删除数据', + param: '仓库流水号=' + num + } + }) +} +// 查询货位 +export function searchLocate(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_货位主文件_查询数据', + param: '仓库流水号=' + num + } + }) +} +// 增加货位 +export function addLocate(num0, num1, num2, num3, num4) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '库存管理_货位主文件_增加数据', + param: '货位名称=' + num0 + '&工作中心=' + num1 + '&仓库流水号=' + num2 + '&永久=' + num3 + '&不可用量=' + num4 + } + }) +} +// 修改货位 +export function alterLocate(num, num0, num1, num2, num3, num4) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '库存管理_货位主文件_修改数据', + param: '货位流水号=' + num + '&货位名称=' + num0 + '&工作中心=' + num1 + '&仓库流水号=' + num2 + '&永久=' + num3 + '&不可用量=' + num4 + } + }) +} +// 删除货位 +export function deleteLocate(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '库存管理_货位主文件_删除数据', + param: '货位流水号=' + num + } + }) +} +// 人员查询 需要在部门确定之后修改 +export function searchPeople(role) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '菜单系统模块_项目角色员工综合_查询数据', + param: '姓名_check=' + 0 + '&角色编号_check=' + 1 + '&角色编号=' + role + '&考核部门编号_check=' + 0 + } + }) +} diff --git a/src/api/Inventory/MaterialOut.js b/src/api/Inventory/MaterialOut.js new file mode 100644 index 00000000..7568a16e --- /dev/null +++ b/src/api/Inventory/MaterialOut.js @@ -0,0 +1,156 @@ +import request from '@/utils/request' + +// 初始化人员 +export function initPickPerson() { + return request({ + url: '', + method: 'post', + data: { + type: '3', + name: 'select 姓名,人员编号 from 人事档案管理_人员名单 where 是否离职 = 0' + } + }) +} +// 初始化机床项目 +export function initMachineProject() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_项目名称_查询数据' + } + }) +} +// 组件查询 +export function searchgroup(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_组件名称_查询数据', + param: '机床流水号=' + num + } + }) +} +// 领料单查询 +export function searchList(pageCurrent, pageSize, listNumber_check, listNumber) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间装配管理_领料单_查询数据', + param: '领料单编号_check=' + listNumber_check + '&领料单编号=' + listNumber + '&是否审批=1', + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 查询领料单明细 +export function searchListDetail(...params) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间装配管理_领料单明细_查询数据', + param: `领料单流水号=${params[0]}` + } + }) +} +// 查看领料单明细相关的物料货位数量 +export function searchStockNumber1(...params) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_物料出库_标准件和外购件_查询数据', + param: `物料流水号=${params[0]}` + } + }) +} +// 查看领料单明细相关的物料货位数量 +export function searchStockNumber2(...params) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_物料出库_基本件_查询数据', + param: `基本件流水号=${params[0]}` + } + }) +} +// 查看领料单明细相关的物料货位数量 +export function searchStockNumber3(...params) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_物料出库_车间采购件_查询数据', + param: `请购单明细流水号=${params[0]}` + } + }) +} +// 出库 +export function submitOutStore(...params) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '库存管理_物料出库_出库记录_增加数据', + param: `物料流水号=${params[0]}&货位流水号=${params[1]}&出库数量=${params[2]}&出库人流水号=${params[3]}&基本件流水号=${params[4]}&标准件和外购件流水号=${params[5]}&请购单明细流水号=${params[6]}&领料单流水号=${params[7]}&领料人流水号=${params[8]}&仓库流水号=${params[9]}&出库类别=${params[10]}` + } + }) +} +// 异常出库 +export function errorRecord(...params) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '库存管理_物料出库_异常记录_增加数据', + param: `异常数量=${params[0]}&异常原因=${params[1]}&物料流水号=${params[2]}&基本件流水号=${params[3]}&货位流水号=${params[4]}}` + } + }) +} +// 初始化出库类别 +export function initOutType() { + return request({ + url: '', + method: 'post', + data: { + type: '3', + name: 'select * from 库存管理_出库类别' + } + }) +} +// 领料确认 +export function pickingSubmit(...params) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_物料出库_领料确认_修改数据', + param: `人员编号=${params[0]}&密码=${params[1]}` + } + }) +} +// 归还 +export function sendBack(...params) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '库存管理_物料出库_归还记录_增加数据', + param: `货位流水号=${params[0]}&物料流水号=${params[1]}&入库数量=${params[2]}&入库人流水号=${params[3]}&基本件流水号=${params[4]}&标准件和外购件流水号=${params[5]}&请购单明细流水号=${params[6]}&仓库流水号=${params[7]}&领料单流水号=${params[8]}` + } + }) +} diff --git a/src/api/Inventory/OfflinePartOut.js b/src/api/Inventory/OfflinePartOut.js new file mode 100644 index 00000000..ab33de83 --- /dev/null +++ b/src/api/Inventory/OfflinePartOut.js @@ -0,0 +1,87 @@ +import request from '@/utils/request' + +// 初始化项目 +export function initProject() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_项目名称_查询数据_按时间排序' + } + }) +} +// 机床查询 +export function searchmachine(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_机床名称_查询数据', + param: '项目流水号_check=1&项目流水号=' + num + } + }) +} +// 分组查询 +export function searchTeam(machineNumber) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_组件名称_查询数据', + param: '机床流水号=' + machineNumber + } + }) +} +// 初始化物料 +export function searchPart(...params) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_离线外购件_出库查询', + param: `物料名称_check=${params[0]}&物料名称=${params[1]}&物料规格_check=${params[2]}&物料规格=${params[3]}&物料型号_check=${params[4]}&物料型号=${params[5]}`, + Pagination: params[6] + '&' + params[7] + } + }) +} +// 人员查询 需要在部门确定之后修改 +export function searchPeople(data1) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_人员查询_库存部门', + param: '角色编号=' + data1 + } + }) +} +// 离线件出库 +export function outlinePartOut(data2, data3, data4, data5, data6, data7, data8, data9, data10, data11) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '库存管理_离线采购件_零件出库', + param: '领用者=' + data2 + '&出库数量=' + data3 + '&货位流水号=' + data4 + '&备注=' + data5 + '&项目流水号=' + data6 + '&机床流水号=' + data7 + '&组件流水号=' + data8 + '&物料流水号=' + data9 + '&出库人员流水号=' + data10 + '&离线合同明细流水号=' + data11 + } + }) +} +// 查询出库记录 +export function outRecord(...params) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_离线外购件出库_出库记录', + param: '物料流水号=' + params[0], + Pagination: params[1] + '&' + params[2] + } + }) +} diff --git a/src/api/Inventory/OfflinePurchase.js b/src/api/Inventory/OfflinePurchase.js new file mode 100644 index 00000000..5c90819b --- /dev/null +++ b/src/api/Inventory/OfflinePurchase.js @@ -0,0 +1,123 @@ +import request from '@/utils/request' + +// 请购单查询 +export function searchRequestCard(pageCurrent, pageSize, card_check, card) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_离线请购单_请购单查询', + param: '请购单编号_check=' + card_check + '&请购单编号=' + card, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 请购单增加 +export function addRequestCard(peoplenumber, housenumber) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '库存管理_离线请购单_请购单增加', + param: '请购人编号=' + peoplenumber + '&仓库流水号=' + housenumber + } + }) +} +// 查询仓库 +export function initWarehouse() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_货位仓库_仓库_查询数据' + } + }) +} +// 查询库存数 +export function searchInventoryNum(pageCurrent, pageSize, check1, name, check2, state1) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_离线物料_物料余量_查询数据', + param: `物料名称_check=${check1}&物料名称=${name}&库存状态_check=${check2}&库存状态=${state1}`, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 查询请购单明细 +export function SeeDetail(data) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_离线请购单_请购单明细查询', + param: '离线请购单流水号=' + data + } + }) +} +// 请购单明细增加 +export function addRequestCardDetail(data1, data2) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '库存管理_离线请购单_请购单明细增加', + param: '离线请购单流水号=' + data1 + '&物料流水号组=' + data2 + } + }) +} +// 请购单明细修改 +export function alterNumber(data2, data3) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '库存管理_离线请购单_请购单明细修改', + param: '离线请购单明细流水号组=' + data2 + '&数量组=' + data3 + } + }) +} +// 请购单删除 +export function deleteRequest(data1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '库存管理_离线请购单_请购单删除', + param: '离线请购单流水号=' + data1 + } + }) +} +// 请购单明细删除 +export function deleteRequestDetail(data1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '库存管理_离线请购单_请购单明细删除', + param: '离线请购单明细流水号=' + data1 + } + }) +} +// 设置安全库存 +export function setSafeValue(...params) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_离线合同_物料安全库存_修改数据', + param: `物料流水号=${params[0]}&安全库存量=${params[1]}` + } + }) +} diff --git a/src/api/Inventory/OutPartSelect.js b/src/api/Inventory/OutPartSelect.js new file mode 100644 index 00000000..9c927b49 --- /dev/null +++ b/src/api/Inventory/OutPartSelect.js @@ -0,0 +1,39 @@ +import request from '@/utils/request' + +// 机床查询 +export function getMachines(check, num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_机床名称_查询数据', + param: '项目流水号_check=' + check + '=int&项目流水号=' + num + } + }) +} +// 分组查询 +export function getGroups(machineNumber) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_组件名称_查询数据', + param: '机床流水号=' + machineNumber + } + }) +} +// 主表查询 +export function getTable(num1, num2, num3, num4, num5, num6, pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_库存管理_基本件出库记录查询', + param: '机床流水号_check=' + num1 + '&机床流水号=' + num2 + '&组件流水号_check=' + num3 + '&组件流水号=' + num4 + '&零件图号_check=' + num5 + '&零件图号=' + num6, + Pagination: pageCurrent + '&' + pageSize + } + }) +} diff --git a/src/api/Inventory/PartOut.js b/src/api/Inventory/PartOut.js new file mode 100644 index 00000000..61834b1a --- /dev/null +++ b/src/api/Inventory/PartOut.js @@ -0,0 +1,123 @@ +import request from '@/utils/request' + +// 领料单查询 +export function searchList(listNumber_check, listNumber, pageCurrent, pageSize, isCheck) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间装配管理_领料单_领料单查询', + param: '领料单编号_check=' + listNumber_check + '&领料单编号=' + listNumber + '&是否确认=0', + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 领料单明细查询 +export function searchListDetail(listNumber) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间装配管理_领料单_领料单明细查询', + param: '领料单流水号=' + listNumber + } + }) +} +// 领料单明细出库 +// export function ListDetailOut(listNumber) { +// return request({ +// url: '', +// method: 'post', +// data: { +// type: '1', +// name: '车间装配管理_领料单_领料单明细出库', +// param: '领料单明细流水号=' + listNumber +// } +// }) +// } +// 交换件查询 +export function ExchangeOut(listNumber) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_零件出库_交换件查询', + param: '领料单流水号=' + listNumber + } + }) +} +// 滞货件出库 +export function backlogPart(...params) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_滞货件出库_修改数据', + param: `领料单明细流水号=${params[0]}&出库数量=${params[1]}&滞货物料与货位对照流水号=${params[2]}` + } + }) +} +// 外购件零件出库 +export function PurchasePart(listNumber, data1, data2, data3, data4, data5, data6) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '库存管理_外购件出库_修改数据', + param: '领料单明细流水号=' + listNumber + '采购合同明细流水号=' + data1 + '&领用者=' + data2 + '&出库数量=' + data3 + '&货位流水号=' + data4 + '&物料与货位对照流水号=' + data5 + '&备注=' + data6 + } + }) +} +// 基本件零件出库 +export function BasicPart(listNumber, data1, data2, data3, data4, data5) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: 'MES_机加工MES_库存管理_出库模块_出库零件信息_零件出库', + param: '领料单明细流水号=' + listNumber + '&工艺计划流水号=' + data1 + '&本次出库数量=' + data2 + '&收件信息ID=' + data3 + '&领用人编号=' + data4 + '&出库备注=' + data5 + } + }) +} +// 车间采购件零件出库 +export function WorkShopPart(listNumber, data1, data2, data3, data4, data5, data6) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '库存管理_车间采购出库_修改数据', + param: '领料单明细流水号=' + listNumber + '请购单明细流水号=' + data1 + '&领用者=' + data2 + '&出库数量=' + data3 + '&货位流水号=' + data4 + '&物料与货位对照流水号=' + data5 + '&备注=' + data6 + } + }) +} +// 异常出库 +export function ErrorOut(data1, data2, data3, data4, data5, data6, data7, data8, data9, data10, data11, data12) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '零件出库_零件出库_异常出库', + param: '项目流水号=' + data1 + '&机床流水号=' + data2 + '&组件流水号=' + data3 + '&名称=' + data4 + '&人员编号=' + data5 + '&采购合同明细流水号=' + data6 + '&请购单明细流水号=' + data7 + '&工艺计划流水号=' + data8 + '&货位流水号=' + data9 + '&异常数量=' + data10 + '&异常原因=' + data11 + '&零件类型=' + data12 + } + }) +} +// 交换出库 +export function ExchangePartOut(data0, data1, data2, data3, data4, data5) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '库存管理_交换件出库_修改数据', + param: '交换单流水号=' + data0 + '&采购合同明细流水号=' + data1 + '&领用者=' + data2 + '&出库数量=' + data3 + '&货位流水号=' + data4 + '&备注=' + data5 + } + }) +} diff --git a/src/api/Inventory/PartsReplacement.js b/src/api/Inventory/PartsReplacement.js new file mode 100644 index 00000000..4bebb323 --- /dev/null +++ b/src/api/Inventory/PartsReplacement.js @@ -0,0 +1,148 @@ +import request from '@/utils/request' +// 初始化项目 +export function initProject() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_项目名称_查询数据_按时间排序' + } + }) +} +// 查询仓库 +export function initWarehouse() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_货位仓库_仓库_查询数据' + } + }) +} +// 机床查询 +export function searchmachine(check, num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_机床名称_查询数据', + param: '项目流水号_check=' + check + '=int&项目流水号=' + num + } + }) +} +// 分组查询 +export function searchTeam(machineNumber) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_组件名称_查询数据', + param: '机床流水号=' + machineNumber + } + }) +} + +// 修改记录查询 +export function searchAlterRecord(pageCurrent, pageSize, project_check, project, machine_check, machine, group_check, group) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_库存盘点_修改记录查询', + param: '项目流水号_check=' + project_check + '&项目流水号=' + project + '&机床流水号_check=' + machine_check + '&机床流水号=' + machine + '&组件流水号_check=' + group_check + '&组件流水号=' + group, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 异常记录查询 +export function searchErrorRecord(pageCurrent, pageSize, project_check, project, machine_check, machine, group_check, group) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_零件出库_异常记录查询', + param: '项目流水号_check=' + project_check + '&项目流水号=' + project + '&机床流水号_check=' + machine_check + '&机床流水号=' + machine + '&组件流水号_check=' + group_check + '&组件流水号=' + group, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 补投单查询 +export function searchReplacementCard(pageCurrent, pageSize, card_check, card) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_补投单_补投单查询', + param: '补投单编号_check=' + card_check + '&补投单编号=' + card, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 补投增加 +export function addReplacementCard(Number, house) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '库存管理_补投单_补投单增加', + param: '人员编号=' + Number + '&仓库流水号=' + house + } + }) +} +// 补投删除 +export function deleteReplacementCard(Number) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '库存管理_补投单_补投单删除', + param: '补投单流水号=' + Number + } + }) +} +// 补投删除 +export function deleteCardDetail(Number) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '库存管理_补投单_补投单明细删除', + param: '补投单明细流水号=' + Number + } + }) +} +// 补投增加 +export function addCardDetail(Number, project, machine, team, name, mass, locate, parttype, reason) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '库存管理_零件补投_批量增加补投单明细', + param: '补投单流水号=' + Number + '&项目流水号组=' + project + '&机床流水号组=' + machine + '&组件流水号组=' + team + '&名称组=' + name + '&数量组=' + mass + '&货位流水号组=' + locate + '&零件类型组=' + parttype + '&原因组=' + reason + } + }) +} + +// 补投单明细查询 +export function searchCardDetail(cardNumber) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_仓库补投_补投单明细_查询', + param: '补投单流水号=' + cardNumber + } + }) +} diff --git a/src/api/Inventory/PickingList.js b/src/api/Inventory/PickingList.js new file mode 100644 index 00000000..30f32faa --- /dev/null +++ b/src/api/Inventory/PickingList.js @@ -0,0 +1,187 @@ +import request from '@/utils/request' + +// 初始化项目 +export function initProject() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_项目名称_查询数据_按时间排序' + } + }) +} +// 机床查询 +export function searchmachine(check, num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_机床名称_查询数据', + param: '项目流水号_check=' + check + '=int&项目流水号=' + num + } + }) +} +// 分组查询 +export function searchTeam(machineNumber) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_组件名称_查询数据', + param: '机床流水号=' + machineNumber + } + }) +} +// 外购件、标准件查询 +export function searchPurchasePart(pageCurrent, pageSize, project_check, project, machine_check, machine, group_check, group) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_外购件出库_零件查询', + param: '项目流水号_check=' + project_check + '&项目流水号=' + project + '&机床流水号_check=' + machine_check + '&机床流水号=' + machine + '&组件流水号_check=' + group_check + '&组件流水号=' + group, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 基本件、通用件查询 +export function searchBasicPart(pageCurrent, pageSize, project_check, project, machine_check, machine, group_check, group) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_基本件出库_零件查询', + param: '项目流水号_check=' + project_check + '&项目流水号=' + project + '&机床流水号_check=' + machine_check + '&机床流水号=' + machine + '&组件流水号_check=' + group_check + '&组件流水号=' + group, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 车间采购件查询 +export function searchHoursePart(pageCurrent, pageSize, project_check, project, machine_check, machine, group_check, group) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_车间采购出库_零件查询', + param: '项目流水号_check=' + project_check + '&项目流水号=' + project + '&机床流水号_check=' + machine_check + '&机床流水号=' + machine + '&组件流水号_check=' + group_check + '&组件流水号=' + group, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 领料单查询 +export function searchList(pageCurrent, pageSize, listNumber_check, listNumber) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间装配管理_领料单_领料单查询', + param: '领料单编号_check=' + listNumber_check + '&领料单编号=' + listNumber, + Pagination: pageCurrent + '&' + pageSize + } + }) +} + +// 领料单明细查询 +export function searchListDetail(listNumber) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间装配管理_领料单_领料单明细查询', + param: '领料单流水号=' + listNumber + } + }) +} +// 创建领料单 +export function addList(peopleNumber) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间装配管理_领料单_领料单增加', + param: '领料人流水号=' + peopleNumber + } + }) +} +// 删除领料单 +export function dropList(PickingListNumberx) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间装配管理_领料单_领料单删除', + param: '领料单流水号=' + PickingListNumberx + } + }) +} +// 删除领料单明细 +export function dropListDetail(DetailNumberx, isBacklog) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间装配管理_领料单_领料单明细删除', + param: '领料单明细流水号=' + DetailNumberx + '&是否是滞货=' + isBacklog + } + }) +} +// 删除领料单明细/基本件 +export function dropListDetailBasic(...params) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间装配管理_领料单_领料单明细删除_基本件', + param: `领料单明细流水号=${params[0]}&收件信息ID=${params[1]}&返还数量=${params[2]}` + } + }) +} +// 增加领料单明细 +export function addListDetail(PickingListNumberx, projectnumber, machinenumber, teamNumber, outNumber, partType, Note, data1, data2, data4, data5, data6, data7, data8, data9, data10, data11, data12, data13) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间装配管理_领料单_领料单明细增加', + param: '领料单流水号=' + PickingListNumberx + '&项目流水号=' + projectnumber + '&机床流水号=' + machinenumber + '&组件流水号=' + teamNumber + '&出库数量=' + outNumber + '&零件类型=' + partType + '&备注\\=' + Note + '&工艺计划流水号=' + data1 + '&收件信息ID=' + data2 + '&采购合同明细流水号=' + data4 + '&请购单明细流水号=' + data5 + '&货位流水号=' + data6 + '&出库类型=' + data7 + '&物料与货位对照流水号=' + data8 + '&名称=' + data9 + '&物料规格\\=' + data10 + '&物料型号=' + data11 + '&零件图号=' + data12 + '&材料=' + data13 + } + }) +} +// 查询滞货件 +export function searchBacklogPart(pageCurrent, pageSize, project_check, project, machine_check, machine, group_check, group) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_滞货件领料_查询数据', + param: '项目流水号_check=' + project_check + '&项目流水号=' + project + '&机床流水号_check=' + machine_check + '&机床流水号=' + machine + '&组件流水号_check=' + group_check + '&组件流水号=' + group, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 领料滞货件 +export function submitAddBacklogList(...params) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_领料单明细_滞货件_增加数据', + param: `领料单流水号=${params[0]}&项目流水号=${params[1]}&机床流水号=${params[2]}&组件流水号=${params[3]}&出库数量=${params[4]}&备注\\=${params[5]}&货位流水号=${params[6]}&物料与货位对照流水号=${params[7]}&名称=${params[8]}&物料规格\\=${params[9]}&物料型号=${params[10]}` + } + }) +} diff --git a/src/api/Inventory/PurchaseInRecord.js b/src/api/Inventory/PurchaseInRecord.js new file mode 100644 index 00000000..e86dedea --- /dev/null +++ b/src/api/Inventory/PurchaseInRecord.js @@ -0,0 +1,63 @@ +import request from '@/utils/request' + +// 初始化项目 +export function initProject() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_项目名称_查询数据_按时间排序' + } + }) +} +// 机床查询 +export function searchMachine(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_机床名称_查询数据', + param: '项目流水号_check=1&项目流水号=' + num + } + }) +} +// 分组查询 +export function searchGroup(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_组件名称_查询数据', + param: '机床流水号=' + num + } + }) +} +// 查询采购件入库记录 +export function searchRecord1(check1, project, check2, machine, check3, group, check4, name, check5, spec, check6, model, pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: `库存管理_入库记录_采购件_查询数据`, + param: `项目流水号_check=${check1}&项目流水号=${project}&机床流水号_check=${check2}&机床流水号=${machine}&组件流水号_check=${check3}&组件流水号=${group}&名称_check=${check4}&名称=${name}&规格_check=${check5}&规格=${spec}&图号或型号_check=${check6}&图号或型号=${model}`, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 查询离线件入库记录 +export function searchRecord2(check4, name, check5, spec, check6, model, pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: `库存管理_入库记录_离线件_查询数据`, + param: `名称_check=${check4}&名称=${name}&规格_check=${check5}&规格=${spec}&图号或型号_check=${check6}&图号或型号=${model}`, + Pagination: pageCurrent + '&' + pageSize + } + }) +} diff --git a/src/api/Inventory/PurchaseOutRecord.js b/src/api/Inventory/PurchaseOutRecord.js new file mode 100644 index 00000000..27505231 --- /dev/null +++ b/src/api/Inventory/PurchaseOutRecord.js @@ -0,0 +1,50 @@ +import request from '@/utils/request' + +// 初始化项目 +export function initProject() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_项目名称_查询数据_按时间排序' + } + }) +} +// 机床查询 +export function searchMachine(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_机床名称_查询数据', + param: '项目流水号_check=1&项目流水号=' + num + } + }) +} +// 分组查询 +export function searchGroup(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_组件名称_查询数据', + param: '机床流水号=' + num + } + }) +} +// 查询记录 +export function searchRecord(check1, project, check2, machine, check3, group, check4, name, check5, spec, check6, model, check7, time1, time2, pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: `库存管理_出库记录_查询数据`, + param: `项目流水号_check=${check1}&项目流水号=${project}&机床流水号_check=${check2}&机床流水号=${machine}&组件流水号_check=${check3}&组件流水号=${group}&名称_check=${check4}&名称=${name}&规格_check=${check5}&规格=${spec}&图号或型号_check=${check6}&图号或型号=${model}&出库时间_check=${check7}&出库开始时间=${time1}&出库结束时间=${time2}`, + Pagination: pageCurrent + '&' + pageSize + } + }) +} diff --git a/src/api/Inventory/StockInquiry.js b/src/api/Inventory/StockInquiry.js new file mode 100644 index 00000000..70438de1 --- /dev/null +++ b/src/api/Inventory/StockInquiry.js @@ -0,0 +1,39 @@ +import request from '@/utils/request' + +// 机床查询 +export function getMachines(check, num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_机床名称_查询数据', + param: '项目流水号_check=' + check + '=int&项目流水号=' + num + } + }) +} +// 分组查询 +export function getGroups(machineNumber) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_组件名称_查询数据', + param: '机床流水号=' + machineNumber + } + }) +} +// 主表查询 +export function getTable(num1, num2, num3, num4, num5, num6, pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_库存管理_基本件库存查询', + param: '机床流水号_check=' + num1 + '&机床流水号=' + num2 + '&组件流水号_check=' + num3 + '&组件流水号=' + num4 + '&零件图号_check=' + num5 + '&零件图号=' + num6, + Pagination: pageCurrent + '&' + pageSize + } + }) +} diff --git a/src/api/Inventory/SubPartCome.js b/src/api/Inventory/SubPartCome.js new file mode 100644 index 00000000..b817862e --- /dev/null +++ b/src/api/Inventory/SubPartCome.js @@ -0,0 +1,25 @@ +import request from '@/utils/request' +// 替换单查询 +export function searchSubstitutedCard(data1, data2, data3, data4) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_替换件_替换单查询', + param: '替换单编号_check=' + data1 + '&替换单编号=' + data2 + '&替换件名称_check=' + data3 + '&替换件名称=' + data4 + } + }) +} +// 替换件到货 +export function SubstitutedCome(data1, data2, data3) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '库存管理_替换件_替换件到货', + param: '替换单流水号=' + data1 + '&物料与货位对照流水号=' + data2 + '&替换数量=' + data3 + } + }) +} diff --git a/src/api/Inventory/SubstitutePart.js b/src/api/Inventory/SubstitutePart.js new file mode 100644 index 00000000..56405778 --- /dev/null +++ b/src/api/Inventory/SubstitutePart.js @@ -0,0 +1,109 @@ +import request from '@/utils/request' + +// 初始化项目 +export function initProject() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_项目名称_查询数据_按时间排序' + } + }) +} +// 机床查询 +export function searchmachine(check, num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_机床名称_查询数据', + param: '项目流水号_check=' + check + '=int&项目流水号=' + num + } + }) +} +// 分组查询 +export function searchTeam(machineNumber) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_组件名称_查询数据', + param: '机床流水号=' + machineNumber + } + }) +} +// 外购件、标准件查询 +export function searchPurchasePart(pageCurrent, pageSize, project_check, project, machine_check, machine, group_check, group) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_外购件出库_零件查询', + param: '项目流水号_check=' + project_check + '&项目流水号=' + project + '&机床流水号_check=' + machine_check + '&机床流水号=' + machine + '&组件流水号_check=' + group_check + '&组件流水号=' + group, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 被替换件查询 +export function searchSubstituted() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_离线外购件_出库查询' + } + }) +} +// 替换单查询 +export function searchSubstitutedCard() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_替换件_替换单查询' + } + }) +} +// 替换单修改 +export function editSubstitutedCard(data1, data2, data3, data4) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '库存管理_替换件_替换单修改', + param: '替换单流水号=' + data1 + '&替换单编号=' + data2 + '&替换数量=' + data3 + '&备注=' + data4 + } + }) +} + +// 替换单删除 +export function deleteSubstitutedCard(data1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '库存管理_替换件_替换单删除', + param: '替换单流水号=' + data1 + } + }) +} +// 增加替换件 +export function addSubstitutepart(data1, data2, data3, data4, data55, data5, data6, data7, data8) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '库存管理_替换件_零件替换', + param: '离线合同明细流水号=' + data1 + '&替换件采购合同明细流水号=' + data2 + '&替换单编号=' + data3 + '&替换件名称=' + data4 + '&被替换件货位流水号=' + data55 + '&被替换件名称=' + data5 + '&申请人=' + data6 + '&替换数量=' + data7 + '&备注=' + data8 + } + }) +} diff --git a/src/api/ManufacturingCenter/ActualTimeSupplement.js b/src/api/ManufacturingCenter/ActualTimeSupplement.js new file mode 100644 index 00000000..1e282db5 --- /dev/null +++ b/src/api/ManufacturingCenter/ActualTimeSupplement.js @@ -0,0 +1,97 @@ +import request from '@/utils/request' +// 查询加工工时统计表 +export function searchTable() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_工时统计_综合_查询数据', + param: '工艺名称=' + arguments[0] + '&工艺名称_check=' + arguments[1] + '&工作者姓名=' + arguments[2] + '&工作者姓名_check=' + arguments[3] + '&开始加工时间_check=' + arguments[4] + '&开始加工时间结束=' + arguments[5] + '&开始加工时间开始=' + arguments[6] + '&零件图号=' + arguments[7] + '&零件图号_check=' + arguments[8] + '&完成加工时间_check=' + arguments[9] + '&完成加工时间结束=' + arguments[10] + '&完成加工时间开始=' + arguments[11], + Pagination: arguments[12] + '&' + arguments[13] + } + }) +} +// 查询加工工时统计表 +export function editTime() { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_工时统计_修补工时_修改数据', + param: '人员编号=' + arguments[0] + '&完成过程流水号=' + arguments[1] + '&修补工时=' + arguments[2] + '&数量=' + arguments[3] + } + }) +} +// 初始化项目 +export function initProject() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_传递后_项目名称_查询数据_加工进度修改' + } + }) +} +// 查机床 +export function getMachines(gongyi) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_传递后_机床名称_查询数据_查询所有机床', + param: '项目流水号=' + gongyi + '=int' + } + }) +} +// 查分组 +export function getGroups(stepNumber) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_传递后_组件名称_查询数据_查询所有组', + param: '机床流水号=' + stepNumber + '=int' + } + }) +} +// 查零件 +export function getParts(stepNumber, a, b, c, d, e, f, g) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理_基础表_员工月修补工时_查询零件', + param: '项目流水号_check=' + stepNumber + '=string&项目流水号=' + a + '=string&机床流水号_check=' + b + '=string&机床流水号=' + c + '=string&组件流水号_check=' + d + '=string&组件流水号=' + e + '=string&零件图号_check=' + f + '=string&零件图号=' + g + '=string&是否查询全部数据=1=string&单件是否外协=0' + } + }) +} +// 提交新增 +export function submitAdd(num1, time, num2, person) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理_修补工时_增加数据', + param: `工序流水号=${num1}&修补工时=${time}&数量=${num2}&修补人员编号=${person}` + } + }) +} +// 根据部门查人员 +export function getTable8(code) { + return request({ + url: '', + method: 'post', + data: { + type: 1, + name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号', + param: '考核部门编号=' + code + '=int' + } + }) +} diff --git a/src/api/ManufacturingCenter/AntonMonitoring.js b/src/api/ManufacturingCenter/AntonMonitoring.js new file mode 100644 index 00000000..d5b48e32 --- /dev/null +++ b/src/api/ManufacturingCenter/AntonMonitoring.js @@ -0,0 +1,25 @@ +import request from '@/utils/request' +// 电子看板_线体上下线数量统计_查询 +export function ANDON_countselect() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'ANDON_大屏幕显示', + param: 'WorkShopType=A' + } + }) +} +export function ANDON_opselect(opname) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'ANDON_办公室监控_消息通知', + param: 'WorkShopType=A' + '&工位号=' + opname + '=string' + } + }) +} + diff --git a/src/api/ManufacturingCenter/CreateIntakeList.js b/src/api/ManufacturingCenter/CreateIntakeList.js new file mode 100644 index 00000000..3df2e2fb --- /dev/null +++ b/src/api/ManufacturingCenter/CreateIntakeList.js @@ -0,0 +1,148 @@ +import request from '@/utils/request' + +// 创建领料单 +export function addList(peopleNumber) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_备料管理_领料单增加', + param: '领料人流水号=' + peopleNumber + } + }) +} +// 领料单查询 +export function searchList(pageCurrent, pageSize, listNumber_check, listNumber) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_备料管理_查询备料领料单', + param: '领料单编号_check=' + listNumber_check + '&领料单编号=' + listNumber, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 删除领料单明细/基本件 +export function dropListDetailBasic(...params) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_备料管理_备料领料单明细移除', + param: `备料领料单明细流水号=${params[0]}&是否外购=${params[1]}&工艺计划流水号=${params[2]}` + } + }) +} +// 初始化项目 +export function initProject() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_项目查询' + } + }) +} +// 机床查询 +export function searchmachine(check, num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_机床名称_查询数据', + param: '项目流水号_check=' + check + '=int&项目流水号=' + num + } + }) +} +// 分组查询 +export function searchTeam(machineNumber) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_组件名称_查询数据', + param: '机床流水号=' + machineNumber + } + }) +} +// 自家备料零件 +export function searchBasicPart(pageCurrent, pageSize, project_check, project, machine_check, machine, group_check, group) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_备料管理_自家备料零件查询', + param: '项目流水号_check=' + project_check + '&项目流水号=' + project + '&机床流水号_check=' + machine_check + '&机床流水号=' + machine + '&组件流水号_check=' + group_check + '&组件流水号=' + group, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 外购备料零件 +export function searchPurchasePart(pageCurrent, pageSize, project_check, project, machine_check, machine, group_check, group) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_备料管理_外购备料零件查询', + param: '项目流水号_check=' + project_check + '&项目流水号=' + project + '&机床流水号_check=' + machine_check + '&机床流水号=' + machine + '&组件流水号_check=' + group_check + '&组件流水号=' + group, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 自家备料选入 +export function addBasicList(listNumber, num1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_备料管理_自家备料选入', + param: '备料领料单流水号=' + listNumber + '&工艺计划流水号=' + num1 + } + }) +} +// 外购备料选入 +export function addPurchaseList(listNumber, num1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_备料管理_外购备料选入', + param: '备料领料单流水号=' + listNumber + '&工艺计划流水号=' + num1 + } + }) +} +// 领料单明细查询 +export function searchListDetail(listNumber) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_备料管理_备料领料单明细查询', + param: '备料领料单流水号=' + listNumber + } + }) +} +// 删除领料单 +export function dropList(PickingListNumberx) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_备料管理_备料领料单删除', + param: '备料领料单流水号=' + PickingListNumberx + } + }) +} diff --git a/src/api/ManufacturingCenter/CreatePreparationBill.js b/src/api/ManufacturingCenter/CreatePreparationBill.js new file mode 100644 index 00000000..dc985372 --- /dev/null +++ b/src/api/ManufacturingCenter/CreatePreparationBill.js @@ -0,0 +1,51 @@ +import request from '@/utils/request' + +// 查询零件 +export function searchtable(num1, num2, num3, num4, pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_零件工艺计划_编制工艺_备料零件查询', + param: '零件图号_check=' + num1 + '&零件图号=' + num2 + '&备料打印_check=' + num3 + '&备料打印=' + num4 + '&备料到货=0', + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 查询零件工艺 +export function searchtable2(num1) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_备料打印_查询工序信息', + param: '工艺计划流水号=' + num1 + } + }) +} +// 自家备料 +export function edit(num1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_备料单导出_状态更改', + param: `工艺计划流水号=${num1}&备料打印=1` + } + }) +} +// 外购备料 +export function edit2(num1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_备料单导出_外购备料', + param: `工艺计划流水号组=${num1}&是否外购备料=1` + } + }) +} diff --git a/src/api/ManufacturingCenter/DiscardedPartsInquiry.js b/src/api/ManufacturingCenter/DiscardedPartsInquiry.js new file mode 100644 index 00000000..238b9303 --- /dev/null +++ b/src/api/ManufacturingCenter/DiscardedPartsInquiry.js @@ -0,0 +1,72 @@ +import request from '@/utils/request' + +// 初始化项目名称 +export function initProject() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_项目名称_查询数据_按时间排序' + } + }) +} +// 用项目查机床 +export function searchMachine(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_机床名称_查询数据2', + param: '项目流水号=' + num + } + }) +} +// 用机床查组件名称/号 +export function searchGroupNum(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_零件明细表_组件流水号_查询数据_根据机床', + param: '机床流水号=' + num + } + }) +} +export function searchTable(entryValue, machineValue, check2, GroupNumValue, check3, PartDrawingNumber, pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_传递后_零件报废补投_查询数据_综合查询', + param: '项目流水号_check=1&项目流水号=' + entryValue + '&机床流水号_check=1&机床流水号=' + machineValue + '&组件流水号_check=' + check2 + '&组件流水号=' + GroupNumValue + '&组件零件基本件流水号_check=0&工艺计划流水号_check=0&工艺计划流水号_补投前_check=0&零件图号_check=' + check3 + '&零件图号=' + PartDrawingNumber, + pagination: pageCurrent + '&' + pageSize + } + }) +} +export function searchTable1(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_零件工序_查询数据_根据工艺计划流水号', + param: '工艺计划流水号=' + num + } + }) +} +export function searchTable2(check, entryNameValue, check1, machineNameValue, pageCurrent1, pageSize1) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_传递后_零件报废补投_查询数据_按机床查询', + param: '项目流水号_check=' + check + '&项目流水号=' + entryNameValue + '&机床流水号_check=' + check1 + '&机床流水号=' + machineNameValue, + pagination: pageCurrent1 + '&' + pageSize1 + } + }) +} diff --git a/src/api/ManufacturingCenter/EquipmentConditionAnalysis.js b/src/api/ManufacturingCenter/EquipmentConditionAnalysis.js new file mode 100644 index 00000000..9d5837f6 --- /dev/null +++ b/src/api/ManufacturingCenter/EquipmentConditionAnalysis.js @@ -0,0 +1,69 @@ +import request from '@/utils/request' + +export function getData(num, num1, pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理_设备运行情况_查询数据', + param: '工位号=' + num + '&日期=' + num1, + pagination: pageCurrent + '&' + pageSize + } + }) +} +export function getData1(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理_设备运行情况_查询数据_全员', + param: '日期=' + num + } + }) +} +export function getData2(num, num1, num2) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理_设备运行情况_查询数据_折线图', + param: '工位号=' + num + '&开始时间=' + num1 + '&结束时间=' + num2 + } + }) +} +export function getData3(num, num1, num2) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理_设备运行情况_查询数据_状态分布图', + param: '工位号=' + num + '&开始时间=' + num1 + '&结束时间=' + num2 + } + }) +} +// 初始化 人员和工位 +export function getMachine() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_加工顺序调整_查询工位及人员' + } + }) +} +// 初始化 状态 +export function searchState() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'MES_机加工MES_设备状态查询_初始化' + } + }) +} diff --git a/src/api/ManufacturingCenter/GroupMatching.js b/src/api/ManufacturingCenter/GroupMatching.js new file mode 100644 index 00000000..582033f8 --- /dev/null +++ b/src/api/ManufacturingCenter/GroupMatching.js @@ -0,0 +1,118 @@ +import request from '@/utils/request' + +export function initProject() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_基本件成组配套_查询项目名称' + } + }) +} +export function searchmachine(num, check, pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_机床名称_查询数据_分页', + param: '项目流水号_check=' + check + '=int&项目流水号=' + num + '=int&机床类型代码_check=0=int&机床类型代码=1=int&机床流水号_check=0=int&PageCurrent=' + pageCurrent + '=int&PageSize=' + pageSize + '=int&PageCount=1=int=output&ItemCount=1=int=output' + } + }) +} +export function searchgroup(num, pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_组件名称_查询数据_分页', + param: '机床流水号=' + num + '=int&PageCurrent=' + pageCurrent + '=int&PageSize=' + pageSize + '=int&PageCount=1=int=output&ItemCount=1=int=output' + } + }) +} +export function searchTable(check, entryNameValue, check1, machine, check2, groupNum, pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_基本件成组配套_查询数据', + param: '项目流水号_check=' + check + '=int&项目流水号=' + entryNameValue + '=int&机床流水号_check=' + check1 + '=int&机床流水号=' + machine + '=int&组件流水号_check=' + check2 + '=int&组件流水号=' + groupNum + '=int', + pagination: pageCurrent + '&' + pageSize + } + }) +} +export function searchTable22(check, entryNameValue, check1, machine, check2, groupNum, check3, year, check4, month, check5, time) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_基本件成组配套_查询数据', + param: '项目流水号_check=' + check + '=int&项目流水号=' + entryNameValue + '=int&机床流水号_check=' + check1 + '=int&机床流水号=' + machine + '=int&组件流水号_check=' + check2 + '=int&组件流水号=' + groupNum + '=int&年_check=' + check3 + '=int&年=' + year + '=string&月_check=' + check4 + '=int&月=' + month + '=int&入库时间_check=' + check5 + '=int&入库时间=' + time + '=string' + } + }) +} +export function searchPurchaseTable(check, entryNameValue, check1, machine, check2, groupNum, check3, year, check4, month, check5, time, pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_外购件成组配套_查询数据', + param: '项目流水号_check=' + check + '=int&项目流水号=' + entryNameValue + '=int&机床流水号_check=' + check1 + '=int&机床流水号=' + machine + '=int&组件流水号_check=' + check2 + '=int&组件流水号=' + groupNum + '=int&年_check=' + check3 + '=int&年=' + year + '=string&月_check=' + check4 + '=int&月=' + month + '=int&入库时间_check=' + check5 + '=int&入库时间=' + time + '=string', + pagination: pageCurrent + '&' + pageSize + } + }) +} +export function searchTable1(check, entryNameValue, check1, machine, check2, groupNum, pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_车间采购出库_零件查询', + param: '项目流水号_check=' + check + '=int&项目流水号=' + entryNameValue + '=int&机床流水号_check=' + check1 + '=int&机床流水号=' + machine + '=int&组件流水号_check=' + check2 + '=int&组件流水号=' + groupNum + '=int', + pagination: pageCurrent + '&' + pageSize + } + }) +} +export function processingStatus(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理_成组配套加工进度_查询数据', + param: '工艺计划流水号=' + num + } + }) +} +// 查询表1标准件和外购件 +export function searchTable01(...params) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_采购部采购_查询物料_分配后_加供应商', + param: `项目流水号_check=${params[0]}&项目流水号=${params[1]}&机床流水号_check=${params[2]}&机床流水号=${params[3]}&组件流水号_check=${params[4]}&组件流水号=${params[5]}`, + Pagination: params[6] + '&' + params[7] + } + }) +} +// 查询表1基本件 +export function searchTable02(...params) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_采购部采购_查询物料_基本件_分配后_加供应商', + param: `项目流水号_check=${params[0]}&项目流水号=${params[1]}&机床流水号_check=${params[2]}&机床流水号=${params[3]}&组件流水号_check=${params[4]}&组件流水号=${params[5]}`, + Pagination: params[6] + '&' + params[7] + } + }) +} diff --git a/src/api/ManufacturingCenter/InitialProduction.js b/src/api/ManufacturingCenter/InitialProduction.js new file mode 100644 index 00000000..e4f26004 --- /dev/null +++ b/src/api/ManufacturingCenter/InitialProduction.js @@ -0,0 +1,136 @@ +import request from '@/utils/request' + +// 初始化 项目名称 +export function getEntryNameValue() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_传递前_投产项目名称_查询数据', + param: '是否传递=1=int' + } + }) +} +// 机床名称 +export function getToolNum() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_传递后_机床名称_根据机床查询', + param: '是否传递=1' + } + }) +} +// 组号 +export function getNum(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_传递后_组件名称_查询数据', + param: '机床流水号=' + num + '=int&是否传递=1=int' + } + }) +} +// 获取表格数据 +export function getTable(num, pageList, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_零件工艺计划_已投产_按组查', + param: '组件流水号=' + num + '=int', + Pagination: pageList + '&' + pageSize + } + }) +} +// 投产 +export function production(num, a, b, d, e, f, g, h, i, j, k, l, m, n, o, p, q, x, s, t, u, v, w) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '设备管理_可安排生产计划零件排序_制定组时间_同时传递', + param: '组件零件基本件流水号=' + num + '=int&投产类型流水号=' + a + '=int&数据类型=' + b + '=int&投产批次=1=int&批次数量=' + d + '=string&计划开始时间=' + e + '=string&计划结束时间=' + f + '=string&工艺计划开始时间=' + g + '=string&工艺计划结束时间=' + h + '=string&定额计划开始时间=' + i + '=string&定额计划结束时间=' + j + '=string&计划编制计划开始时间=' + k + '=string&计划编制计划结束时间=' + l + '=string&机加工开始时间=' + m + '=string&机加工结束时间=' + n + '=string&单件外协时间=' + o + '=string&单件是否外协=' + p + '=int&单件是否外协分类=' + q + '=string&计划制定人员编号=' + x + '&材料流水号=' + s + '=int&是否临时件=' + t + '=int&是否难度件=' + u + '=string&是否着急=' + v + '=int&是否白图=' + w + '=int' + } + }) +} +// 合并投产 +export function production2(num1, num2, num, b, d, e, f, g, h, i, j, k, l, m, n, o, p, q, x, s, t, u, v, w) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '设备管理_可安排生产计划零件排序_制定组时间_同时传递_合并投产', + param: '零件图号=' + num1 + '&规格=' + num2 + '&机床流水号=' + num + '&投产类型流水号=' + 1 + '=int&数据类型=' + b + '=int&投产批次=1=int&批次数量=' + d + '=string&计划开始时间=' + e + '=string&计划结束时间=' + f + '=string&工艺计划开始时间=' + g + '=string&工艺计划结束时间=' + h + '=string&定额计划开始时间=' + i + '=string&定额计划结束时间=' + j + '=string&计划编制计划开始时间=' + k + '=string&计划编制计划结束时间=' + l + '=string&机加工开始时间=' + m + '=string&机加工结束时间=' + n + '=string&单件外协时间=' + o + '=string&单件是否外协=' + p + '=int&单件是否外协分类=' + q + '=string&计划制定人员编号=' + x + '&材料流水号=' + s + '=int&是否临时件=' + t + '=int&是否难度件=' + u + '=string&是否着急=' + v + '=int&是否白图=' + w + '=int' + } + }) +} +// 获取表2的值 +export function getTable1(num, pageList, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_零件工艺计划_分批投产计划查询_查询显示', + param: '组件零件基本件流水号=' + num + '=int', + Pagination: pageList + '&' + pageSize + } + }) +} +// 分批投产 +export function revisionBatch(num, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, x, s, t, u, v, w) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '设备管理_可安排生产计划零件排序_制定组时间_同时传递', + param: '组件零件基本件流水号=' + num + '=int&投产类型流水号=' + a + '=int&数据类型=' + b + '=int&投产批次=' + c + '=int&批次数量=' + d + '=string&计划开始时间=' + e + '=string&计划结束时间=' + f + '=string&工艺计划开始时间=' + g + '=string&工艺计划结束时间=' + h + '=string&定额计划开始时间=' + i + '=string&定额计划结束时间=' + j + '=string&计划编制计划开始时间=' + k + '=string&计划编制计划结束时间=' + l + '=string&机加工开始时间=' + m + '=string&机加工结束时间=' + n + '=string&单件外协时间=' + o + '=string&单件是否外协=' + p + '=int&单件是否外协分类=' + q + '=string&计划制定人员编号=' + x + '&材料流水号=' + s + '=int&是否临时件=' + t + '=int&是否难度件=' + u + '=string&是否着急=' + v + '=int&是否白图=' + w + '=int' + } + }) +} +// 编辑 +export function editList(num, a, b, c) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_零件工艺计划_修改批次数量', + param: '工艺计划流水号=' + num + '=int&批次数量=' + a + '=string&机加工开始时间=' + b + '=string&机加工结束时间=' + c + '=string' + } + }) +} +// 打回档案 +export function dele(num, a, b) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: 'MRP_计划订单_车间打回零件_增加数据', + param: '组件零件基本件流水号=' + num + '=int&打回原因=' + a + '=string&打回时间=' + b + '=string' + } + }) +} +// 打回 +export function edit(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: 'MRP_计划订单_组件零件清单_基本件_打回数据', + param: '组件零件基本件流水号=' + num + } + }) +} diff --git a/src/api/ManufacturingCenter/MachiningSequenceAdjustment.js b/src/api/ManufacturingCenter/MachiningSequenceAdjustment.js new file mode 100644 index 00000000..58d19483 --- /dev/null +++ b/src/api/ManufacturingCenter/MachiningSequenceAdjustment.js @@ -0,0 +1,119 @@ +import request from '@/utils/request' +// 初始化 人员和工位 +export function getMachine() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_加工顺序调整_查询工位及人员' + } + }) +} +// 获取工位 +export function getMachine2() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_加工顺序调整_查询工位' + } + }) +} +export function searchtable(num, pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'MES_机加工MES_记录零件待加工显示', + param: 'MES终端编号=' + num, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 调序 +export function Order(num1, num2, num3) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: 'MES_机加工MES_待加工区列表_排序', + param: 'MES终端编号=' + num1 + '&排序ID=' + num2 + '&排序类型=' + num3 + } + }) +} +// 调序权限 +export function JurisdictionControl(num1, num2) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_加工顺序调整_更改权限', + param: 'MES终端号=' + num1 + '&变更类型=' + num2 + } + }) +} +// 所有工序(原) +export function getTable2(stepNumber) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_零件工序_查询数据_加工顺序调整查询', + param: '项目流水号_check=0&项目流水号=0&机床流水号_check=0&机床流水号=0&组件流水号_check=0&组件流水号=0&零件图号_check=1=string&零件图号=' + stepNumber + '=string&是否查询全部数据=1=string&单件是否外协=1&考核状态=6=int' + } + }) +} +// 所有工序(新) +export function getTable3(stepNumber) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_加工进度修改2_查询', + param: '工艺计划流水号=' + stepNumber + } + }) +} +// 正在加工零件 +export function searchParts(stepNumber) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_加工顺序调整_查询正在加工零件工序', + param: '终端编号=' + stepNumber + } + }) +} +// 跳序权限 +export function JurisdictionContro2(num1, num2) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_加工顺序调整_更改跳序权限', + param: 'MES终端号=' + num1 + '&变更类型=' + num2 + } + }) +} +// 撤出零件 +export function outParts(code) { + return request({ + url: '', + method: 'post', + data: { + type: 2, + name: '车间生产管理工艺_零件撤出待加工库', + param: '工艺计划流水号=' + code + '&结果=11111=string=output' + } + }) +} diff --git a/src/api/ManufacturingCenter/MaterialArrivalManagement.js b/src/api/ManufacturingCenter/MaterialArrivalManagement.js new file mode 100644 index 00000000..7595f247 --- /dev/null +++ b/src/api/ManufacturingCenter/MaterialArrivalManagement.js @@ -0,0 +1,112 @@ +import request from '@/utils/request' + +// 外购备料出库 +export function change3(Number, code, num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_自家备料到货更改', + param: '工序流水号组=' + Number + '&工作者考勤编号=' + code + '&工艺计划流水号组=' + num + } + }) +} +// 查询零件 +export function searchtable(num1, num2, num3, pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_零件工艺计划_编制工艺_备料到货查询', + param: '零件图号_check=' + num1 + '&零件图号=' + num2 + '&备料到货_check=' + num3, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 查询零件工艺 +export function searchtable2(num1) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_备料打印_查询工序信息', + param: '工艺计划流水号=' + num1 + } + }) +} +// 完成备料工序 +export function handlechange(Number, code) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_零件工序_修改数据_工作者', + param: '工序流水号=' + Number + '&工作者考勤编号=' + code + } + }) +} +// 查询外购备料零件 +export function searchtable3(num, num1, pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '备料管理_外购备料查询', + param: '零件图号_check=' + num + '&零件图号=' + num1, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 自家备料出库 +export function change(Number, code, num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_备料到货_状态更改', + param: '工艺计划流水号=' + Number + '&重量=' + code + '&单价=' + num + } + }) +} +// 外购备料出库 +export function change2(Number, code, num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_外购备料到货更改', + param: '工序流水号组=' + Number + '&工作者考勤编号=' + code + '&工艺计划流水号组=' + num + } + }) +} +export function handlechange2(Number, code) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_零件工序_修改数据_修改实际完成时间', + param: '工序流水号=' + Number + '&实际完成时间=' + code + } + }) +} + +// 打回 +export function edit(num1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_备料单导出_状态更改', + param: `工艺计划流水号=${num1}&备料打印=0` + } + }) +} diff --git a/src/api/ManufacturingCenter/OwnTimeStatistics.js b/src/api/ManufacturingCenter/OwnTimeStatistics.js new file mode 100644 index 00000000..96837534 --- /dev/null +++ b/src/api/ManufacturingCenter/OwnTimeStatistics.js @@ -0,0 +1,24 @@ +import request from '@/utils/request' + +export function initProject() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '设备管理_传递后_项目名称_查询数据', + param: '考核状态=5' + } + }) +} +export function searchData(check1, num1, check2, start, end, type) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_新排产算法_工时统计_单个项目总工时', + param: '项目流水号_check=' + check1 + '&项目流水号=' + num1 + '&日期_check=' + check2 + '&开始日期=' + start + '&结束日期=' + end + '&查询类型=' + type + } + }) +} diff --git a/src/api/ManufacturingCenter/ParseQuery.js b/src/api/ManufacturingCenter/ParseQuery.js new file mode 100644 index 00000000..e8c717d2 --- /dev/null +++ b/src/api/ManufacturingCenter/ParseQuery.js @@ -0,0 +1,12 @@ +import request from '@/utils/request' +export function SelectMachine() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '发货管理_发货申请_发货单_机床_查询', + param: '机床图号=' + arguments[0] + } + }) +} diff --git a/src/api/ManufacturingCenter/PartAssignment.js b/src/api/ManufacturingCenter/PartAssignment.js new file mode 100644 index 00000000..891c63a9 --- /dev/null +++ b/src/api/ManufacturingCenter/PartAssignment.js @@ -0,0 +1,287 @@ +import request from '@/utils/request' + +// 初始化机床项目 +export function initProject() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_项目名称_查询数据' + } + }) +} +// 组件查询 +export function searchgroup(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_组件名称_查询数据', + param: '机床流水号=' + num + } + }) +} +export function searchTable(machineNumberValue, check2, groupNumberValue, check3) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间管理_基本件采购_查询数据', + param: '机床流水号_check=' + check2 + '&机床流水号=' + machineNumberValue + '&组件流水号_check=' + check3 + '&组件流水号=' + groupNumberValue + } + }) +} +export function searchPart(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_零件明细表_基本件_查询数据', + param: '组件流水号=' + num + } + }) +} +export function searchPart1(num, type) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_项目管理_零件明细表_标准件和外购件_车间采购_查询数据', + param: '组件流水号=' + num + '&标准件类型=' + type + } + }) +} +export function searchTable1(PurchaseOrder, check4) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间管理_基本件采购_请购单_查询数据', + param: '请购单编号=' + PurchaseOrder + '&请购单编号_check=' + check4 + } + }) +} +export function addData(num1, num2, id, time) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间管理_基本件采购_请购单_增加数据', + param: '请购车间=' + num1 + '&请购人=' + num2 + '&人员编号=' + id + '&请购时间=' + time + } + }) +} +export function editData(RequisitionList, num1, time) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间管理_基本件采购_请购单_编辑数据', + param: '请购单流水号=' + RequisitionList + '&请购车间=' + num1 + '&请购时间=' + time + } + }) +} +export function deleteData(RequisitionList) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间管理_基本件采购_请购单_删除数据', + param: '请购单流水号=' + RequisitionList + } + }) +} +export function searchDetailed(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间管理_基本件采购_请购单明细_查询数据_外购件', + param: '请购单流水号=' + num + } + }) +} +export function searchDetailed1(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间管理_基本件采购_请购单明细_查询数据_基本件', + param: '请购单流水号=' + num + } + }) +} +export function purchaseRequisition(RequisitionList, projectName, projectFloatValue, MachineToolNumber, machineFloatValue, groupName, groupFloatValue, BasicPartsNumber, MaterialName, PartToolNumber, Material, NumberOfParts, PartType, time, MaterialNum, ReMarks) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间管理_基本件采购_请购单明细_请购', + param: '请购单流水号=' + RequisitionList + '&项目名称=' + projectName + '&项目流水号=' + projectFloatValue + '&机床图号=' + MachineToolNumber + '&机床流水号=' + machineFloatValue + '&组号=' + groupName + '&组件流水号=' + groupFloatValue + '&基本件流水号=' + BasicPartsNumber + '&物料名称=' + MaterialName + '&零件图号=' + PartToolNumber + '&材料=' + Material + '&零件数量=' + NumberOfParts + '&零件类型=' + PartType + '&物料计划到货时间=' + time + '&物料流水号=' + MaterialNum + '&备注=' + ReMarks + } + }) +} +export function purchaseRequisition1(RequisitionList, projectName, projectFloatValue, MachineToolNumber, machineFloatValue, groupName, groupFloatValue, StandardPartsAndOutsourcing, MaterialName, MaterialCode, MaterialSpecification, MaterialModel, NumberOfParts, PartType, time, MaterialNum, ReMarks) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间管理_基本件采购_请购单明细_请购', + param: '请购单流水号=' + RequisitionList + '&项目名称=' + projectName + '&项目流水号=' + projectFloatValue + '&机床图号=' + MachineToolNumber + '&机床流水号=' + machineFloatValue + '&组号=' + groupName + '&组件流水号=' + groupFloatValue + '&标准件和外购件流水号=' + StandardPartsAndOutsourcing + '&物料名称=' + MaterialName + '&物料代码=' + MaterialCode + '&物料规格=' + MaterialSpecification + '&物料型号=' + MaterialModel + '&零件数量=' + NumberOfParts + '&零件类型=' + PartType + '&物料计划到货时间=' + time + '&物料流水号=' + MaterialNum + '&备注=' + ReMarks + } + }) +} +export function purchaseRequisition2(projectFloatValue, machineFloatValue, groupFloatValue, BasicPartsNumber, NumberOfParts, time) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间管理_采购部采购_基本件_传递数据', + param: `组件流水号=${groupFloatValue}&基本件流水号组=${BasicPartsNumber}&项目流水号=${projectFloatValue}&机床流水号=${machineFloatValue}&物料计划到货时间=${time}&零件数量组=${NumberOfParts}` + } + }) +} +export function MoveOut(num, num1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间管理_基本件采购_请购单明细_移出', + param: '请购单明细流水号=' + num + '&基本件流水号=' + num1 + } + }) +} +export function MoveOut1(num, num1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间管理_基本件采购_请购单明细_移出', + param: '请购单明细流水号=' + num + '&标准件和外购件流水号=' + num1 + } + }) +} +export function PurchasingDepartment(num, num1, time, MaterialNum, NumberOfParts, projectFloatValue, machineFloatValue) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间管理_车间采购_标准件和外购件_传递数据', + param: `组件流水号=${num}&标准件和外购件流水号组=${num1}&物料计划到货时间=${time}=datetime&物料流水号组=${MaterialNum}&零件数量组=${NumberOfParts}&项目流水号=${projectFloatValue}&机床流水号=${machineFloatValue}` + } + }) +} +export function Production(num, MaterialNum, Number, projectFloatValue, machineFloatValue) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间管理_车间采购_基本件_传递数据', + param: `组件流水号=${num}&基本件流水号组=${MaterialNum}&零件数量组=${Number}&项目流水号=${projectFloatValue}&机床流水号=${machineFloatValue}` + } + }) +} +export function PartCallbackInformation() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_退回记录_基本件_查询数据' + } + }) +} +export function PartCallbackInformation1() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_退回记录_标准件和外购件_查询数据' + } + }) +} +export function submit(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_退回记录_确认数据', + param: '基本件流水号=' + num + } + }) +} +export function submit1(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_退回记录_确认数据', + param: '标准件和外购件流水号=' + num + } + }) +} +export function Delete(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_退回记录_删除数据', + param: '基本件流水号=' + num + } + }) +} +export function Delete1(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_退回记录_删除数据', + param: '标准件和外购件流水号=' + num + } + }) +} +export function editStock(num, num1, num2, num3, num4) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '零件分配_标准件和外购件_使用库存', + param: '标准件和外购件流水号=' + num + '&数量=' + num1 + '&零件数量=' + num2 + '&物料流水号=' + num3 + '&安全库存量=' + num4 + } + }) +} +export function editNum(num, num1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间管理_标准件和外购件_更改数量', + param: '请购单明细流水号=' + num + '&数量=' + num1 + } + }) +} diff --git a/src/api/ManufacturingCenter/PartWorkCraftSelect_rdlc.js b/src/api/ManufacturingCenter/PartWorkCraftSelect_rdlc.js new file mode 100644 index 00000000..76649a97 --- /dev/null +++ b/src/api/ManufacturingCenter/PartWorkCraftSelect_rdlc.js @@ -0,0 +1,85 @@ +import request from '@/utils/request' + +// 初始化机床项目 +export function initMachineProject() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_项目名称_查询数据' + } + }) +} +// 组件查询 +export function searchgroup(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_组件名称_查询数据', + param: '机床流水号=' + num + } + }) +} +// 工艺定额人员查询 +export function initPerson() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号', + param: '考核部门编号=20' + } + }) +} +// 查询 +export function search(pageCurrent, pageSize, check1, val1, check2, val2, check3, val3, check4, val4) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_零件工序_查询数据_已编制工序的全部零件及工序_按机床分组图号人员查', + param: `机床流水号_check=${check1}&机床流水号=${val1}&组件流水号_check=${check2}&组件流水号=${val2}&零件图号_check=${check3}&零件图号=${val3}&人员编号_check=${check4}&人员编号=${val4}`, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 显示表1 +export function searchtable1(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_零件工序_查询数据_根据工艺计划流水号_工艺定额查询_系数', + param: '工艺计划流水号=' + num + } + }) +} +export function searchtable2(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_零件加工路线单_查询数据_系数', + param: '工艺计划流水号=' + num + } + }) +} +// 在制零件工艺修改 +export function returnEdit(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_在制零件工艺调整_修改工艺_循环', + param: `工艺计划流水号组=${num}` + } + }) +} diff --git a/src/api/ManufacturingCenter/ProcessAdjustQuery.js b/src/api/ManufacturingCenter/ProcessAdjustQuery.js new file mode 100644 index 00000000..ae7575dd --- /dev/null +++ b/src/api/ManufacturingCenter/ProcessAdjustQuery.js @@ -0,0 +1,62 @@ +import request from '@/utils/request' + +// 初始化工艺员 +export function initCraftmen() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号', + param: '考核部门编号=20' + } + }) +} +// 根据工艺员查零件 +export function searchPart(person) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_在制零件工艺调整_被调整零件查询', + param: '工艺人员编号=' + person + } + }) +} +// 根据零件查工艺 旧 +export function searchProcessOld(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_在制零件工艺调整_查询工艺', + param: '工艺计划流水号=' + num + } + }) +} +// 根据零件查工艺 新 +export function searchProcessNew(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_零件工序_查询工序信息', + param: '工艺计划流水号=' + num + } + }) +} +// 查询各工艺员调整工艺情况 +export function searchChart() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_在制零件工艺调整_被调整零件数量查询' + } + }) +} + diff --git a/src/api/ManufacturingCenter/ProcessPlanning.js b/src/api/ManufacturingCenter/ProcessPlanning.js new file mode 100644 index 00000000..7cf21080 --- /dev/null +++ b/src/api/ManufacturingCenter/ProcessPlanning.js @@ -0,0 +1,433 @@ +import request from '@/utils/request' + +// 典艺查询<高精原有数据> +export function searchProcess11(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_原零件工艺查询_MESWORK', + param: '零件图号=' + num + } + }) +} +// 典艺查询<高精原有数据> +export function numChange(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_原零件工艺明细查询_MESWORK', + param: '典艺流水号=' + num + } + }) +} +// 保存主表工艺 +export function selectRequest(num0, num1, num2, num3, request0) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_零件工序_修改数据_根据工序流水号和工艺计划流水号', + param: '工序流水号=' + num0 + '&工艺计划流水号=' + num1 + '&工艺编号=' + num2 + '&工艺顺序=' + num3 + '&工艺要求=' + request0 + } + }) +} +// 初始化 工艺员A +export function initCraftmen() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号', + param: '考核部门编号=20' + } + }) +} +// 查询 未编制 零件号 +export function getPartnames1(num1, num2) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_零件工艺计划_编制工艺_按人员查', + param: '工艺人员编号=' + num1 + '&零件图号=' + num2 + } + }) +} +// 初始化 已编制 零件号 +export function getPartnames2(num1, num2) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_零件工艺计划_查询已完成工艺制定零件', + param: '工艺人员编号=' + num1 + '&零件图号=' + num2 + } + }) +} +// 零件详细信息 +export function detailInfo(serialNum) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_零件工艺计划_查已投产零件信息', + param: '工艺计划流水号=' + serialNum + '=int' + } + }) +} +// 初始化材质 +export function getMaterial(pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_材质表_查询数据', + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 根据材质名称查材质 +export function searchMaterial(pageCurrent, pageSize, name) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_材质表_查询数据_根据材料名称', + param: '材料名称=' + name, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 典型工艺选择零件分类A +export function typicalProcess() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_基础表_典型工艺名称_分类_查询数据' + } + }) +} +// 典型工艺选择零件名称、工艺号、备注 +export function FcK(serialNum) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_基础表_典型工艺名称_查询数据_查典型工艺名称', + param: '典型工艺名称分类流水号=' + serialNum + '=int' + } + }) +} +// 典型工艺查询 +export function searchProcess(check1, a, check2, b, check3, c) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_基础表_典型工艺名称_查询数据_综合查询', + param: '典型工艺名称分类流水号_check=' + check1 + '=bit&典型工艺名称分类流水号=' + a + '=int&典型工艺流水号_check=' + check2 + '=bit&典型工艺流水号=' + b + '=int&典型工艺流水号1_check=' + check3 + '=bit&典型工艺流水号1=' + c + '=int' + } + }) +} +// 初始化工艺名称 +export function processNameClick() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_基础表_工艺分类名称_查询数据_零件工艺制定专用' + } + }) +} +// 工艺名称查询 +export function processNameSelect(val) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_基础表_工艺名称_查询数据', + param: '工艺分类流水号_check=1=bit&工艺分类流水号=' + val + '=int' + } + }) +} +// 工艺要求查询 +export function processRequestSelect(val) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理_基础表_工艺要求_查询数据', + param: '工艺编号=' + val + '=int' + } + }) +} +// 初始化公差A +export function initTolerance() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_基础表_公差对照表_查询数据' + } + }) +} +// 公差查询 +export function searchTolerance(val1, val2) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_基础表_公差对照表_公差_查询数据', + param: '输入数值=' + val1 + '&参数=' + val2 + } + }) +} +// 工艺定额人员查询 +export function initPerson() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号', + param: '考核部门编号=9' + } + }) +} +// 完艺工艺查询 +export function searchWYgongyi(check1, tuhao, check2, bianhao, check3, start, end, check4, name) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_零件工艺计划_查询数据_根据零件图号查询已投产的工艺计划流水号', + param: '零件图号_check=' + check1 + '&零件图号=' + tuhao + '&工艺员编号_check=' + check2 + '&工艺员编号=' + bianhao + '&工艺时间_check=' + check3 + '&工艺开始时间=' + start + '=datetime&工艺结束时间=' + end + '=datetime&零件名称_check=' + check4 + '&零件名称=' + name + } + }) +} +// 完艺工艺要求查询 +export function gongyiYQ(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_零件工艺计划_查询数据', + param: '工艺计划流水号=' + num + } + }) +} +// 完艺工艺拷贝 +export function gongyiCopy(num1, num2) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_零件工序_工艺拷贝_工艺计划流水号', + param: '工艺计划流水号_完成工艺=' + num1 + '=int&工艺计划流水号_被拷工艺=' + num2 + '=int' + } + }) +} +// 主界面选择零件号查主表 +export function mainTable(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_零件工序_查询工序信息', + param: '工艺计划流水号=' + num + '=int' + } + }) +} +// 主界面主表难度等级修改 +export function hardEdit(num, hard) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_零件工序_修改数据_工艺难度等级', + param: '工序流水号=' + num + '=int&工艺难度等级=' + hard + } + }) +} +// 主界面主表工艺要求修改 +export function requestEdit(num, request0) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_零件工序_修改数据_工艺要求_根据工序流水号', + param: '工序流水号=' + num + '=int&工艺要求=' + request0 + } + }) +} +// 主界面主表插入功能 +export function insertOne(num0, num1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_零件工序_修改数据_工艺计划流水号和工序流水号', + param: '工艺计划流水号=' + num0 + '=int&工序流水号=' + num1 + '=int' + } + }) +} +// 主界面主表删除功能 +export function deleteOne(num0, num1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_零件工序_删除数据_工序流水号', + param: '工艺计划流水号=' + num0 + '=int&工序流水号=' + num1 + '=int' + } + }) +} +// 主界面主表上移功能 +export function upOne(num0, num1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_零件工序_修改数据_上移工序', + param: '工艺计划流水号=' + num0 + '=int&工序流水号=' + num1 + '=int' + } + }) +} +// 主界面主表下移功能 +export function downOne(num0, num1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_零件工序_修改数据_下移工序', + param: '工艺计划流水号=' + num0 + '=int&工序流水号=' + num1 + '=int' + } + }) +} +// 保存变更材质 +export function saveMaterial(num0, num1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_零件工艺计划_修改零件材料', + param: '工艺计划流水号=' + num0 + '&材料流水号=' + num1 + } + }) +} +// 核准保存 +export function saveApprove(num0, num1, request0, spec, num2, outhelp, num3, num4, weight, area, num5, level) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_零件工序_增加数据_同时修改工艺计划', + param: '工艺计划流水号=' + num0 + '&工艺编号=' + num1 + '&工艺要求=' + request0 + '&原材料规格=' + spec + '&工序顺序=' + num2 + '&工序间是否外协=' + outhelp + '&工序流水号=' + num3 + '&材料流水号=' + num4 + '&重量=' + weight + '&面积=' + area + '&工艺人员编号=' + num5 + '&工艺难度等级=' + level + } + }) +} + +// 粘贴 +export function pasteTable(oldNum, newNum) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_零件工艺计划_拷贝零件工艺', + param: '工艺计划流水号旧=' + oldNum + '&工艺计划流水号新=' + newNum + } + }) +} +// 删除 +export function deleteTable(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_零件工序_删除零件工艺', + param: '工艺计划流水号=' + num + } + }) +} +// 在制零件工艺修改 +export function returnEdit(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_在制零件工艺调整_修改工艺', + param: '工艺计划流水号=' + num + } + }) +} +// 查询工艺记录 +export function searchRecord(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_在制零件工艺调整_查询工艺', + param: '工艺计划流水号=' + num + } + }) +} +// 重量拷贝 +export function WeightCopy(num, num2) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_零件工序_重量拷贝_工艺计划流水号', + param: '工艺计划流水号=' + num + '&重量信息=' + num2 + } + }) +} +// 保存变更材质 +export function saveWeight(num0, num1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_零件工艺计划_修改零件重量', + param: '工艺计划流水号=' + num0 + '&重量=' + num1 + } + }) +} diff --git a/src/api/ManufacturingCenter/ProcessQuotaEstablishment.js b/src/api/ManufacturingCenter/ProcessQuotaEstablishment.js new file mode 100644 index 00000000..6867c148 --- /dev/null +++ b/src/api/ManufacturingCenter/ProcessQuotaEstablishment.js @@ -0,0 +1,517 @@ +import request from '@/utils/request' + +// 查询零件未编制(包含借用件) +export function getPartnames3(num1, num2) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_零件工艺计划_编制工艺_按人员机床组号或图号查', + param: '工艺人员编号=' + num1 + '&机床组号或图号=' + num2 + } + }) +} +// 查询零件已编制(包含借用件) +export function getPartnames4(num1, num2) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_零件工艺计划_查询已完成工艺制定零件_按人员机床组号或图号查', + param: '工艺人员编号=' + num1 + '&机床组号或图号=' + num2 + } + }) +} +// 典艺查询<高精原有数据> +export function searchProcess11(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_原零件工艺查询_MESWORK', + param: '零件图号=' + num + } + }) +} +// 典艺查询<高精原有数据> +export function numChange(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_原零件工艺明细查询_MESWORK', + param: '典艺流水号=' + num + } + }) +} +// 保存主表工艺 +export function selectRequest(num0, num1, num2, num3, request0) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_零件工序_修改数据_根据工序流水号和工艺计划流水号', + param: '工序流水号=' + num0 + '&工艺计划流水号=' + num1 + '&工艺编号=' + num2 + '&工艺顺序=' + num3 + '&工艺要求=' + request0 + } + }) +} +// 初始化 工艺员A +export function initCraftmen() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号', + param: '考核部门编号=20' + } + }) +} +// 查询 未编制 零件号 +export function getPartnames1(num1, num2) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_零件工艺计划_编制工艺_按人员查', + param: '工艺人员编号=' + num1 + '&零件图号=' + num2 + } + }) +} +// 初始化 已编制 零件号 +export function getPartnames2(num1, num2) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_零件工艺计划_查询已完成工艺制定零件', + param: '工艺人员编号=' + num1 + '&零件图号=' + num2 + } + }) +} +// 零件详细信息 +export function detailInfo(serialNum) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_零件工艺计划_查已投产零件信息', + param: '工艺计划流水号=' + serialNum + '=int' + } + }) +} +// 初始化材质 +export function getMaterial(pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_材质表_查询数据', + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 根据材质名称查材质 +export function searchMaterial(pageCurrent, pageSize, name) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_材质表_查询数据_根据材料名称', + param: '材料名称=' + name, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 典型工艺选择零件分类A +export function typicalProcess() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_基础表_典型工艺名称_分类_查询数据' + } + }) +} +// 典型工艺选择零件名称、工艺号、备注 +export function FcK(serialNum) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_基础表_典型工艺名称_查询数据_查典型工艺名称', + param: '典型工艺名称分类流水号=' + serialNum + '=int' + } + }) +} +// 典型工艺查询 +export function searchProcess(check1, a, check2, b, check3, c) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_基础表_典型工艺名称_查询数据_综合查询', + param: '典型工艺名称分类流水号_check=' + check1 + '=bit&典型工艺名称分类流水号=' + a + '=int&典型工艺流水号_check=' + check2 + '=bit&典型工艺流水号=' + b + '=int&典型工艺流水号1_check=' + check3 + '=bit&典型工艺流水号1=' + c + '=int' + } + }) +} +// 初始化工艺名称 +export function processNameClick() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_基础表_工艺分类名称_查询数据_零件工艺制定专用' + } + }) +} +// 工艺名称查询 +export function processNameSelect(val) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_基础表_工艺名称_查询数据', + param: '工艺分类流水号_check=1=bit&工艺分类流水号=' + val + '=int' + } + }) +} +// 工艺要求查询 +export function processRequestSelect(val) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理_基础表_工艺要求_查询数据', + param: '工艺编号=' + val + '=int' + } + }) +} +// 初始化公差A +export function initTolerance() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_基础表_公差对照表_查询数据' + } + }) +} +// 公差查询 +export function searchTolerance(val1, val2) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_基础表_公差对照表_公差_查询数据', + param: '输入数值=' + val1 + '&参数=' + val2 + } + }) +} +// 工艺定额人员查询 +export function initPerson() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号', + param: '考核部门编号=9' + } + }) +} +// 完艺工艺查询 +export function searchWYgongyi(check1, tuhao, check2, bianhao, check3, start, end, check4, name) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_零件工艺计划_查询数据_根据零件图号查询已投产的工艺计划流水号', + param: '零件图号_check=' + check1 + '&零件图号=' + tuhao + '&工艺员编号_check=' + check2 + '&工艺员编号=' + bianhao + '&工艺时间_check=' + check3 + '&工艺开始时间=' + start + '=datetime&工艺结束时间=' + end + '=datetime&零件名称_check=' + check4 + '&零件名称=' + name + } + }) +} +// 完艺工艺要求查询 +export function gongyiYQ(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_零件工艺计划_查询数据', + param: '工艺计划流水号=' + num + } + }) +} +// 完艺工艺拷贝 +export function gongyiCopy(num1, num2) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_零件工序_工艺拷贝_工艺计划流水号', + param: '工艺计划流水号_完成工艺=' + num1 + '=int&工艺计划流水号_被拷工艺=' + num2 + '=int' + } + }) +} +// 主界面选择零件号查主表 +export function mainTable(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_零件工序_查询工序信息', + param: '工艺计划流水号=' + num + '=int' + } + }) +} +// 主界面主表难度等级修改 +export function hardEdit(num, hard) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_零件工序_修改数据_工艺难度等级', + param: '工序流水号=' + num + '=int&工艺难度等级=' + hard + } + }) +} +// 主界面主表工艺要求修改 +export function requestEdit(num, request0) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_零件工序_修改数据_工艺要求_根据工序流水号', + param: '工序流水号=' + num + '=int&工艺要求=' + request0 + } + }) +} +// 主界面主表插入功能 +export function insertOne(num0, num1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_零件工序_修改数据_工艺计划流水号和工序流水号', + param: '工艺计划流水号=' + num0 + '=int&工序流水号=' + num1 + '=int' + } + }) +} +// 主界面主表删除功能 +export function deleteOne(num0, num1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_零件工序_删除数据_工序流水号', + param: '工艺计划流水号=' + num0 + '=int&工序流水号=' + num1 + '=int' + } + }) +} +// 主界面主表上移功能 +export function upOne(num0, num1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_零件工序_修改数据_上移工序', + param: '工艺计划流水号=' + num0 + '=int&工序流水号=' + num1 + '=int' + } + }) +} +// 主界面主表下移功能 +export function downOne(num0, num1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_零件工序_修改数据_下移工序', + param: '工艺计划流水号=' + num0 + '=int&工序流水号=' + num1 + '=int' + } + }) +} +// 保存变更材质 +export function saveMaterial(num0, num1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_零件工艺计划_修改零件材料', + param: '工艺计划流水号=' + num0 + '&材料流水号=' + num1 + } + }) +} +// 核准保存 +export function saveApprove(num0, num1, request0, spec, num2, outhelp, num3, num4, weight, area, num5, level) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_零件工序_增加数据_同时修改工艺计划', + param: '工艺计划流水号=' + num0 + '&工艺编号=' + num1 + '&工艺要求=' + request0 + '&原材料规格=' + spec + '&工序顺序=' + num2 + '&工序间是否外协=' + outhelp + '&工序流水号=' + num3 + '&材料流水号=' + num4 + '&重量=' + weight + '&面积=' + area + '&工艺人员编号=' + num5 + '&工艺难度等级=' + level + } + }) +} + +// 粘贴 +export function pasteTable(oldNum, newNum) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_零件工艺计划_拷贝零件工艺', + param: '工艺计划流水号旧=' + oldNum + '&工艺计划流水号新=' + newNum + } + }) +} +// 删除 +export function deleteTable(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_零件工序_删除零件工艺', + param: '工艺计划流水号=' + num + } + }) +} +// 在制零件工艺修改 +export function returnEdit(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_在制零件工艺调整_修改工艺', + param: '工艺计划流水号=' + num + } + }) +} +// 查询工艺记录 +export function searchRecord(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_在制零件工艺调整_查询工艺', + param: '工艺计划流水号=' + num + } + }) +} +// 重量拷贝 +export function WeightCopy(num, num2) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_零件工序_重量拷贝_工艺计划流水号', + param: '工艺计划流水号=' + num + '&重量信息=' + num2 + } + }) +} +// 保存变更材质 +export function saveWeight(num0, num1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_零件工艺计划_修改零件重量', + param: '工艺计划流水号=' + num0 + '&重量=' + num1 + } + }) +} +// 单件工时改变 +export function singleChange(val1, val2) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_零件工序_单件准结定额_修改数据', + param: '工序流水号=' + val1 + '&单件定额工时=' + val2 + } + }) +} +// 准结工时改变 +export function readyChange(val1, val2) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_零件工序_单件准结定额_修改数据', + param: '工序流水号=' + val1 + '&准结定额工时=' + val2 + } + }) +} +// 未编制定额保存 +export function TableAddLi1(a, b) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_定额任务分配_保存数据', + param: '工艺计划流水号=' + a + '=string&人员编号=' + b + '=string' + } + }) +} +// 已编制定额保存 +export function TableAddLi(a, b, c, num0, num1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_零件工序_增加数据_修改数据', + param: '单件定额工时=' + a + '=string&准结定额工时=' + b + '=string&零件图号=' + c + '=string&工序流水号=' + num0 + '=int&工艺计划流水号=' + num1 + '=int' + } + }) +} +// 修改备注 +export function modifyRemark(...params) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_零件工艺计划_工艺修改记录_增加数据', + param: `修改人员编号=${params[0]}&修改备注=${params[1]}&工艺计划流水号=${params[2]}` + } + }) +} diff --git a/src/api/ManufacturingCenter/ProcessTaskAssignment.js b/src/api/ManufacturingCenter/ProcessTaskAssignment.js new file mode 100644 index 00000000..8b763061 --- /dev/null +++ b/src/api/ManufacturingCenter/ProcessTaskAssignment.js @@ -0,0 +1,135 @@ +import request from '@/utils/request' + +// 初始化项目(全部) +export function getProject() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_传递后_项目名称_查询数据_工艺定额任务分配', + param: '考核状态=3&工艺任务分配状态=1&定额任务分配状态=1' + } + }) +} +// 初始化项目(当天) +export function getProject0() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_零件工艺计划_工艺任务分配_项目查询' + } + }) +} +// 获取机床图号(全部) +export function getGraphNum() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_传递后_机床名称_根据机床查询', + param: '是否传递=2&考核状态=3&工艺任务分配状态=1&定额任务分配状态=1&单件是否外协=0' + } + }) +} +// 获取机床图号(当天)////////////// +export function getGraphNum0(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_零件工艺计划_工艺任务分配_机床查询', + param: '项目流水号=' + num + } + }) +} +// 获取组号(全部) +export function getGroupNum(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_传递后_组件名称_查询数据', + param: '机床流水号=' + num + '&是否传递=2&考核状态=3&工艺任务分配状态=1&定额任务分配状态=1&单件是否外协=0' + } + }) +} +// 获取组号(当天)///////// +export function getGroupNum0(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_零件工艺计划_工艺任务分配_组件查询', + param: '机床流水号=' + num + } + }) +} +// 获取工艺计划,填充主表 +export function getTable0(PageCurrent, PageSize, num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_零件工艺计划_已制定计划_按组查', + param: '组件流水号=' + num, + Pagination: PageCurrent + '&' + PageSize + } + }) +} +// 查询主表(当天)//////// +export function getTable00(PageCurrent, PageSize, num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_零件工艺计划_工艺任务分配_零件查询', + param: '组件流水号=' + num, + Pagination: PageCurrent + '&' + PageSize + } + }) +} +// 保存 +export function save(num1, num2, num3) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_工艺任务分配_保存数据', + param: '工艺计划流水号=' + num1 + '&人员编号=' + num2 + '&零件图号=' + num3 + } + }) +} +// // 模糊查询 +// export function fuzzyQuery(num) { +// return request({ +// url: '', +// method: 'post', +// data: { +// type: '1', +// name: '车间生产管理工艺_传递后_机床名称_查询数据_模糊查询', +// param: '机床图号=' + num + '&是否传递=2&考核状态=3&工艺任务分配状态=1&定额任务分配状态=1' +// } +// }) +// } +// 工艺定额人员查询 +export function initPerson() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号', + param: '考核部门编号=20' + } + }) +} diff --git a/src/api/ManufacturingCenter/ProcessingStatus.js b/src/api/ManufacturingCenter/ProcessingStatus.js new file mode 100644 index 00000000..dec697fc --- /dev/null +++ b/src/api/ManufacturingCenter/ProcessingStatus.js @@ -0,0 +1,81 @@ +import request from '@/utils/request' + +export function getNames() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_传递后_项目名称_查询数据', + param: '考核状态=6=int' + } + }) +} +// 机床名称 +export function getMachines() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_传递后_机床名称_根据机床查询', + param: '是否传递=2=int&考核状态=6=int&工艺任务分配状态=2=int&定额任务分配状态=2=int&单件是否外协=1=int' + } + }) +} + +export function getGroups(stepNumber) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_传递后_组件名称_查询数据_查询所有组', + param: '机床流水号=' + stepNumber + '=int' + } + }) +} + +export function getTable(stepNumber, a, b, c, d, e, f, g, i, j, k, l, m, pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_零件工序_查询数据_已编制工序的全部零件及工序_横向赋值新建存储过程', + param: '项目流水号_check=' + stepNumber + '=string&项目流水号=' + a + '=string&机床流水号_check=' + b + '=string&机床流水号=' + c + '=string&组件流水号_check=' + d + '=string&组件流水号=' + e + '=string&零件图号_check=' + f + '=string&零件图号=' + g + '=string&是否查询全部数据=1=string&单件是否外协=' + i + '=string&考核状态=6=int&开始时间_check=' + j + '&开始时间=' + k + '&结束时间_check=' + l + '&结束时间=' + m, + Pagination: pageCurrent + '&' + pageSize + } + }) +} + +export function getTable2(stepNumber) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_加工进度查询_查询', + param: '工艺计划流水号=' + stepNumber + } + }) +} +export function getExport(num) { + return request({ + url: '', + method: 'post', + data: { + type: '3', + name: `select 机床流水号,机床图号,组件流水号,组号,车间生产管理工艺_零件工艺计划.工艺计划流水号,车间生产管理工艺_零件工艺计划.零件图号_零件工艺计划,车间生产管理工艺_零件工序_视图.零件名称,待加工工序顺序,车间生产管理工艺_零件工序.工序流水号,车间生产管理工艺_零件工序.工艺编号,车间生产管理工艺_基础表_工艺名称.工艺名称,批次数量,材料 +from ( select 工艺计划流水号,min(工序顺序) as 待加工工序顺序 + from 车间生产管理工艺_零件工序_视图 + where 完成日期_短 is null and 考核状态 = 6 or 考核状态 = 7 + group by 工艺计划流水号) as 当前加工工序表 +inner join 车间生产管理工艺_零件工艺计划 on 当前加工工序表.工艺计划流水号 = 车间生产管理工艺_零件工艺计划.工艺计划流水号 +inner join 车间生产管理工艺_零件工序 on 当前加工工序表.工艺计划流水号 = 车间生产管理工艺_零件工序.工艺计划流水号 and 当前加工工序表.待加工工序顺序 = 车间生产管理工艺_零件工序.工序顺序 +inner join 车间生产管理工艺_基础表_工艺名称 on 车间生产管理工艺_基础表_工艺名称.工艺编号 = 车间生产管理工艺_零件工序.工艺编号 +inner join 车间生产管理工艺_零件工序_视图 on 车间生产管理工艺_零件工序_视图.工艺计划流水号 = 车间生产管理工艺_零件工艺计划.工艺计划流水号 and 当前加工工序表.待加工工序顺序 = 车间生产管理工艺_零件工序_视图.工序顺序 +where 机床流水号 = ${num}` + } + }) +} diff --git a/src/api/ManufacturingCenter/ProcessingStatusEdit.js b/src/api/ManufacturingCenter/ProcessingStatusEdit.js new file mode 100644 index 00000000..28bed7e4 --- /dev/null +++ b/src/api/ManufacturingCenter/ProcessingStatusEdit.js @@ -0,0 +1,157 @@ +import request from '@/utils/request' + +export function getNames() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_传递后_项目名称_查询数据_加工进度修改' + } + }) +} + +export function getMachines() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_传递后_机床名称_加工进度修改模块查询_MESWORK' + } + }) +} + +export function getGroups(stepNumber) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_传递后_组件名称_查询数据_查询所有组', + param: '机床流水号=' + stepNumber + '=int' + } + }) +} + +export function getTable(stepNumber, a, b, c, d, e, f, g, h, i, j, k, pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_零件工序_查询数据_已编制工序的全部零件及工序_加工进度修改专用', + param: '项目流水号_check=' + stepNumber + '=string&项目流水号=' + a + '=string&机床流水号_check=' + b + '=string&机床流水号=' + c + '=string&组件流水号_check=' + d + '=string&组件流水号=' + e + '=string&零件图号_check=' + f + '=string&零件图号=' + g + '=string&是否查询全部数据=1=string&单件是否外协=0&开始时间_check=' + h + '&开始时间=' + i + '&结束时间_check=' + j + '&结束时间=' + k, + Pagination: pageCurrent + '&' + pageSize + } + }) +} + +export function getTable2(stepNumber) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_加工进度修改2_查询', + param: '工艺计划流水号=' + stepNumber + } + }) +} + +export function handlechange(Number, code) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_零件工序_修改数据_修改实际完成时间', + param: '工序流水号=' + Number + '&实际完成时间=' + code + } + }) +} + +export function handlechange2(Number, code) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_零件工序_修改数据_工作者', + param: '工序流水号=' + Number + '&工作者考勤编号=' + code + } + }) +} + +export function handlechange3(Number, code) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_零件工序_修改数据_工作者_MESWORK', + param: '工序流水号=' + Number + '&工作者考勤编号=' + code + } + }) +} +export function dialogtablevisible() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '人事档案管理_部门关系_查询节点', + param: '子节点=0' + } + }) +} +// 初始化人员信息 弹出框 +export function getTree() { + return request({ + url: '', + method: 'post', + data: { + type: 1, + name: '人事档案管理_部门关系_查询节点', + param: '子节点=0=int' + } + }) +} +export function fn(data, pid) { + const result = [] + let temp + for (let i = 0; i < data.length; i++) { + if (data[i].父节点 === pid) { + const obj = { label: data[i].节点名称, id: data[i].子节点 } + temp = fn(data, data[i].子节点) + if (temp.length > 0) { + obj.children = temp + } + result.push(obj) + } + } + return result +} + +export function getTable8(code) { + return request({ + url: '', + method: 'post', + data: { + type: 1, + name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号', + param: '考核部门编号=' + code + '=int' + } + }) +} +export function isMachining(code) { + return request({ + url: '', + method: 'post', + data: { + type: 2, + name: '车间生产管理工艺_零件撤出待加工库', + param: '工艺计划流水号=' + code + '&结果=11111=string=output' + } + }) +} diff --git a/src/api/ManufacturingCenter/ProductionCapacityBalance.js b/src/api/ManufacturingCenter/ProductionCapacityBalance.js new file mode 100644 index 00000000..f9e29fd9 --- /dev/null +++ b/src/api/ManufacturingCenter/ProductionCapacityBalance.js @@ -0,0 +1,314 @@ +import request from '@/utils/request' +// 初始化 项目名称 +export function getEntryNameValue() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_传递后_项目名称_查询数据', + param: '考核状态=5=int' + } + }) +} +// 机床名称 +export function getToolNum() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_传递后_机床名称_根据机床查询', + param: '是否传递=2=int&考核状态=5=int&工艺任务分配状态=2=int&定额任务分配状态=2=int&单件是否外协=1=int' + } + }) +} +// 组号 +export function getNum(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_传递后_组件名称_查询数据', + param: '机床流水号=' + num + '=int&是否传递=2=int&考核状态=5=int&工艺任务分配状态=2=int&定额任务分配状态=2=int&单件是否外协=1=int' + } + }) +} +// 获取表格数据 +export function getTable(num, a, b, c, d, e, f, g, pageList, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_新排产算法_能力平衡_查询数据_要平衡的零件', + param: '项目流水号_check=' + num + '=string&项目流水号=' + a + '=int&机床流水号_check=' + b + '=string&机床流水号=' + c + '=int&组件流水号_check=' + d + '=string&组件流水号=' + e + '=int&零件图号_check=' + f + '=string&零件图号=' + g + '=string&是否查询全部数据=1=string&单件是否外协=1=int&考核状态=5=int', + Pagination: pageList + '&' + pageSize + } + }) +} +// 全部选入专用 +export function getTable12580(num, a, b, c, d, e, f, g, pageList, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_新排产算法_能力平衡_查询数据_要平衡的零件', + param: '项目流水号_check=' + num + '=string&项目流水号=' + a + '=int&机床流水号_check=' + b + '=string&机床流水号=' + c + '=int&组件流水号_check=' + d + '=string&组件流水号=' + e + '=int&零件图号_check=' + f + '=string&零件图号=' + g + '=string&是否查询全部数据=1=string&单件是否外协=1=int&考核状态=5=int' + } + }) +} +// 扫描查询 +export function getTable5(pageList, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_新排产算法_能力平衡_查询数据_要平衡的零件_扫描平衡', + Pagination: pageList + '&' + pageSize + } + }) +} +// 选入 +export function selection(num, a, b, c) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_新排产算法_要排产零件_增加数据', + param: '工艺计划流水号=' + num + '=int&工序数量=' + a + '=int&排序顺序=' + b + '=string&人员编号=' + c + } + }) +} +// 选入后查询 +export function selection1(a, pageList, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_新排产算法_要排产零件_查询数据', + param: '人员编号=' + a, + Pagination: pageList + '&' + pageSize + } + }) +} +// 全部选出查询专用 +export function selection10086(a) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_新排产算法_要排产零件_查询数据', + param: '人员编号=' + a + } + }) +} +export function selection2(a) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_新排产算法_能力平衡_工序信息查询_根据工艺计划流水号', + param: '工艺计划流水号=' + a + '=int' + } + }) +} +// 排产 +export function discharge(a) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理_能力平衡_循环执行', + param: '工艺计划流水号组=' + a + } + }) +} +// 确定零件计划4.1 +export function plan(a) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_新排产算法_要排产零件_删除数据', + param: '工艺计划流水号=' + a + '=int&操作类型=2=int' + } + }) +} +// 判断板焊 +export function han(a) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_新排产算法_设备能力_清除占用_板焊后序能力', + param: '工艺计划流水号=' + a + '=int' + } + }) +} +// 全部选出 +export function allOut(a) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_新排产算法_要排产零件_删除数据', + param: '工艺计划流水号=' + a + '=int&操作类型=1=int' + } + }) +} +// 是否划为外协 +export function out(a, b) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_零件工艺计划_划为外协', + param: '工艺计划流水号=' + a + '=int&单件是否外协=' + b + '=int&单件是否外协分类=1=int' + } + }) +} +// 选出 +export function xuanchu(a) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_新排产算法_要排产零件_删除数据', + param: '工艺计划流水号=' + a + '=int&操作类型=1=int' + } + }) +} +// 板焊 +export function platewelding(a, b, c) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_零件工艺计划_修改数据_修改板焊工段计划完成时间_new', + param: '工艺计划流水号=' + a + '=int&板焊工段计划完成时间=' + b + '=string&是否焊接=' + c + '=int' + } + }) +} +// 确定零件计划 车间生产管理工艺_新排产算法_设备能力_系数有效时间设定 +export function partPlan(a, b, c) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_新排产算法_修改数据_机加工时间', + param: '工艺计划流水号=' + a + '=int&机加工开始时间=' + b + '=string&机加工结束时间=' + c + '=string&state=1=int=output' + } + }) +} +// 刷新 +export function refreshChart(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_新排产算法_调整工序计划_查询数据', + param: '零件图号=' + num + } + }) +} +// 更新 +export function updateDate(num1, num2, date) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_新排产算法_制定计划_调整计划_增加数据New1', + param: '工序流水号=' + num1 + '&调整人编号=' + num2 + '&调整计划完成日期=' + date + } + }) +} +// 查图表1 +export function searchChart1(num, start, end) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_新排产算法_调整工序计划_设备情况_查询数据1', + param: '工序流水号=' + num + '&开始日期=' + start + '&结束日期=' + end + } + }) +} +// 查图表的表1 +export function searchChartTable1(num, start, end) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_新排产算法_调整工序计划_设备情况_查询数据2', + param: '工序流水号=' + num + '&开始日期=' + start + '&结束日期=' + end + } + }) +} +// 查图表2 +export function searchChart2(start, end, type) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_新排产算法_工时统计_总工时与总能力对比', + param: '开始=' + start + '&结束=' + end + '&查询类型=' + type + } + }) +} +// 导出 +export function Export(num, a, b, c, d, e, f, g) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_零件工序_查询数据_已编制工序的全部零件及工序_New_外协报表', + param: '项目流水号_check=' + num + '=string&项目流水号=' + a + '=int&机床流水号_check=' + b + '=string&机床流水号=' + c + '=int&组件流水号_check=' + d + '=string&组件流水号=' + e + '=int&零件图号_check=' + f + '=string&零件图号=' + g + '=string&是否查询全部数据=1=string&单件是否外协=1=int&考核状态=5=int' + } + }) +} +// 主表1外协改变 +export function table1Out(num, preOut) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_零件工艺计划_外协平衡', + param: '工艺计划流水号=' + num + '&是否预计外协=' + preOut + '&是否预计外协分类=1' + } + }) +} +// 修改加工件合格时间 +export function timeChange(num, a) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_零件工艺计划_修改数据_修改加工件合格时间', + param: '工艺计划流水号=' + num + '&加工件合格时间=' + a + } + }) +} diff --git a/src/api/ManufacturingCenter/ProjectPlanningManagement.js b/src/api/ManufacturingCenter/ProjectPlanningManagement.js new file mode 100644 index 00000000..c795d409 --- /dev/null +++ b/src/api/ManufacturingCenter/ProjectPlanningManagement.js @@ -0,0 +1,124 @@ +import request from '@/utils/request' + +export function getProject() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_项目名称_查询数据_总计划' + } + }) +} +export function getToolNum(check, num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_机床名称_查询数据', + param: '项目流水号_check=' + check + '=int&项目流水号=' + num + } + }) +} +// 组件查询 +export function searchgroup(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_组件名称_查询数据', + param: '机床流水号=' + num + } + }) +} +// 组件名称查询 +export function searchgroupName(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_组件名称_查询数据_查询名称', + param: '组件流水号=' + num + } + }) +} +export function getCustomerName() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '客户关系管理系统_初始化查询_客户名称' + } + }) +} +export function searchtable(num1, num2, num3, num4, num5, num6, num7, num8, num9, num10, num11, num12, pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '项目计划管理_项目总计划_查询数据', + param: `项目流水号_check=` + num1 + '&项目流水号=' + num2 + '&机床流水号_check=' + num3 + '&机床流水号=' + num4 + '&客户名称_check=' + num5 + '&客户名称=' + num6 + '&签订日期_check=' + num7 + '&签订日期开始时间=' + num8 + '&签订日期结束时间=' + num9 + '&交货期_check=' + num10 + '&交货期开始时间=' + num11 + '&交货期结束时间=' + num12, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +export function editTable(num1, num2, num3, num5, num13, num14, num15, num6, num7, num8, num9, num10, num11, num12) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '项目计划管理_项目总计划_编辑数据', + param: `项目流水号=` + num1 + '&机床流水号=' + num2 + '&项目编号=' + num3 + '&设计者=' + num5 + '&审图计划开始时间=' + num13 + '&审图计划完成时间=' + num14 + '&审图实际完成时间=' + num15 + '&机床设计完成时间=' + num6 + '&采购完成时间=' + num7 + '&备料完成时间=' + num8 + '&机床生产完成时间=' + num9 + '&机床装配完成时间=' + num10 + '&完成顺序=' + num11 + '&更新=' + num12 + } + }) +} +export function searchTable2(num1, num2) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '项目计划管理_项目详细计划_查询数据', + param: `机床流水号=` + num1 + '&计划类型=' + num2 + } + }) +} +export function editTable2(num1, num2, num3, num4, num5, num6, num7, num8, num9, num10) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '项目计划管理_项目详细计划_编辑数据', + param: `组件计划流水号=` + num1 + '&组件流水号=' + num2 + '&任务名称=' + num3 + '&负责人=' + num4 + '&接收任务时间=' + num5 + '&任务开始时间=' + num6 + '&计划完成时间=' + num7 + '&货期=' + num8 + '&实际完成时间=' + num9 + '&备注=' + num10 + } + }) +} +export function Delete(num1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '项目计划管理_项目详细计划_删除数据', + param: `组件计划流水号=` + num1 + } + }) +} +export function addTable(num1, num2) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '项目计划管理_项目详细计划_增加数据', + param: `机床流水号=` + num1 + '&计划类型=' + num2 + } + }) +} diff --git a/src/api/ManufacturingCenter/ProjectPlanningQuery.js b/src/api/ManufacturingCenter/ProjectPlanningQuery.js new file mode 100644 index 00000000..4480d5a3 --- /dev/null +++ b/src/api/ManufacturingCenter/ProjectPlanningQuery.js @@ -0,0 +1,61 @@ +import request from '@/utils/request' + +// 初始化 项目名称 +export function initProject() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_项目名称_查询数据_总计划' + } + }) +} +// 查询机床 +export function initMachine(projectNum) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_机床名称_查询数据2', + param: `项目流水号=${projectNum}` + } + }) +} +// 查询总计划 +export function searchtable(projectNum, machineValue) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '项目计划管理_项目总计划_查询数据', + param: '项目流水号_check=1&项目流水号=' + projectNum + '&机床流水号_check=1&机床流水号=' + machineValue + } + }) +} +// 查询分计划 +export function searchtable2(machineValue, type) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '项目计划管理_项目详细计划_查询数据', + param: '机床流水号=' + machineValue + '&计划类型=' + type + } + }) +} +export function searchtable5(num1, num2, num3, num4, num5, num6, num7, num8, num9, num10, num11, num12, pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '项目计划管理_项目总计划_查询数据', + param: `项目流水号_check=` + num1 + '&项目流水号=' + num2 + '&机床流水号_check=' + num3 + '&机床流水号=' + num4 + '&客户名称_check=' + num5 + '&客户名称=' + num6 + '&签订日期_check=' + num7 + '&签订日期开始时间=' + num8 + '&签订日期结束时间=' + num9 + '&交货期_check=' + num10 + '&交货期开始时间=' + num11 + '&交货期结束时间=' + num12, + Pagination: pageCurrent + '&' + pageSize + } + }) +} diff --git a/src/api/ManufacturingCenter/QuotaFormulation.js b/src/api/ManufacturingCenter/QuotaFormulation.js new file mode 100644 index 00000000..2b3f6421 --- /dev/null +++ b/src/api/ManufacturingCenter/QuotaFormulation.js @@ -0,0 +1,99 @@ +import request from '@/utils/request' + +// 初始化 未编制 零件号111 +export function getPartnames1() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_零件工艺计划_编制定额_查询数据' + } + }) +} +// 初始化 已编制 零件号 +export function getPartnames2(person) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_零件工艺计划_查询已完成定额制定零件', + param: '定额人员编号=' + person + '=int' + } + }) +} + +// 人员111 +export function getPerson() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号', + param: '考核部门编号=20' + } + }) +} +// 零件详细信息111 +export function detailInfo(serialNum) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_零件工艺计划_查已投产零件信息', + param: '工艺计划流水号=' + serialNum + '=int' + } + }) +} + +// 主界面选择零件号查主表 +export function mainTable(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_零件工序_查询数据_根据工艺计划流水号_零件定额制定', + param: '工艺计划流水号=' + num + '=int' + } + }) +} +export function mainTable1(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_零件工序_查询数据_根据工艺计划流水号', + param: '工艺计划流水号=' + num + '=int' + } + }) +} + +// 已编制保存 +export function TableAddLi(a, b, c, num0, num1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_零件工序_增加数据_修改数据', + param: '单件定额工时=' + a + '=string&准结定额工时=' + b + '=string&零件图号=' + c + '=string&工序流水号=' + num0 + '=int&工艺计划流水号=' + num1 + '=int' + } + }) +} +// 未编制保存 +export function TableAddLi1(a, b) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_定额任务分配_保存数据', + param: '工艺计划流水号=' + a + '=string&人员编号=' + b + '=string' + } + }) +} diff --git a/src/api/ManufacturingCenter/RawMaterialsMaintenance.js b/src/api/ManufacturingCenter/RawMaterialsMaintenance.js new file mode 100644 index 00000000..e9c8bbb3 --- /dev/null +++ b/src/api/ManufacturingCenter/RawMaterialsMaintenance.js @@ -0,0 +1,47 @@ +import request from '@/utils/request' + +export function searchTableData(num, pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_原材料库存管理_查询', + param: '原材料名称=' + num, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +export function addData(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '库存管理_原材料库存管理_新增', + param: '原材料名称=' + num + } + }) +} +export function editData(num1, num2) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '库存管理_原材料库存管理_编辑', + param: '原材料流水号=' + num1 + '&原材料名称=' + num2 + } + }) +} +export function deleteCategory(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '库存管理_原材料库存管理_删除', + param: '原材料流水号=' + num + } + }) +} diff --git a/src/api/ManufacturingCenter/RepairTimeEntry.js b/src/api/ManufacturingCenter/RepairTimeEntry.js new file mode 100644 index 00000000..937b6c2e --- /dev/null +++ b/src/api/ManufacturingCenter/RepairTimeEntry.js @@ -0,0 +1,169 @@ +import request from '@/utils/request' + +// 初始化工艺 +export function searchTechnology(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_基础表_工艺名称_查询数据', + param: '工艺分类流水号_check=0&工艺分类流水号=' + num + } + }) +} +export function getNames() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_传递后_项目名称_查询数据_加工进度修改' + } + }) +} + +export function getMachines(gongyi) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_传递后_机床名称_查询数据_查询所有机床', + param: '项目流水号=' + gongyi + '=int' + } + }) +} +export function getGroups(stepNumber) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_传递后_组件名称_查询数据_查询所有组', + param: '机床流水号=' + stepNumber + '=int' + } + }) +} +export function getParts(stepNumber, a, b, c, d, e, f, g) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理_基础表_员工月修补工时_查询零件', + param: '项目流水号_check=' + stepNumber + '=string&项目流水号=' + a + '=string&机床流水号_check=' + b + '=string&机床流水号=' + c + '=string&组件流水号_check=' + d + '=string&组件流水号=' + e + '=string&零件图号_check=' + f + '=string&零件图号=' + g + '=string&是否查询全部数据=1=string&单件是否外协=0' + } + }) +} +// 查询人员编号 +export function searchperson(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_员工回用报废工时统计表_查询数据', + param: '序号=' + num + } + }) +} +// 查询 +export function searchtable(check, num, pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理_基础表_员工月修补工时_查询数据_MESWORK', + param: '人员编号_check=' + check + '&人员编号=' + num, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 增加 +export function edittype(num1, ManufacturerNumber, ManufacturerAbbreviation, address, roleName, num2) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理_基础表_员工月修补工时_增加数据', + param: '工艺计划流水号=' + num1 + '&人员编号=' + ManufacturerNumber + '&年=' + ManufacturerAbbreviation + '&月=' + address + '&修补工时=' + roleName + '&修补工艺=' + num2 + } + }) +} +// 编辑 +export function handlechange(CoManufacturerFlowNumber, num1, ManufacturerNumber, ManufacturerAbbreviation, address, roleName, num2) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理_基础表_员工月修补工时_修改数据', + param: '员工月修补工时流水号=' + CoManufacturerFlowNumber + '&工艺计划流水号=' + num1 + '&人员编号=' + ManufacturerNumber + '&年=' + ManufacturerAbbreviation + '&月=' + address + '&修补工时=' + roleName + '&修补工艺=' + num2 + } + }) +} +// 删除工艺信息 +export function delList(MaterialCode) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理_基础表_员工月修补工时_删除数据', + param: '员工月修补工时流水号=' + MaterialCode + } + }) +} +export function dialogtablevisible() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '人事档案管理_部门关系_查询节点', + param: '子节点=0' + } + }) +} +// 初始化人员信息 弹出框 +export function getTree() { + return request({ + url: '', + method: 'post', + data: { + type: 1, + name: '人事档案管理_部门关系_查询节点', + param: '子节点=0=int' + } + }) +} +export function fn(data, pid) { + const result = [] + let temp + for (let i = 0; i < data.length; i++) { + if (data[i].父节点 === pid) { + const obj = { label: data[i].节点名称, id: data[i].子节点 } + temp = fn(data, data[i].子节点) + if (temp.length > 0) { + obj.children = temp + } + result.push(obj) + } + } + return result +} + +export function getTable8(code) { + return request({ + url: '', + method: 'post', + data: { + type: 1, + name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号', + param: '考核部门编号=' + code + '=int' + } + }) +} diff --git a/src/api/ManufacturingCenter/SparePartsForScrap.js b/src/api/ManufacturingCenter/SparePartsForScrap.js new file mode 100644 index 00000000..6167fe8a --- /dev/null +++ b/src/api/ManufacturingCenter/SparePartsForScrap.js @@ -0,0 +1,113 @@ +import request from '@/utils/request' +export function ProjectNameSelect(stateID) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_传递后_项目名称_查询数据', + param: '考核状态=' + stateID + '=int' + } + }) +} +export function MachineDrawingSelect(ProjectCode) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_传递后_机床名称_查询数据_查询所有机床', + param: '项目流水号=' + ProjectCode + '=int' + } + }) +} +export function TeamSelect(MachineCode) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_传递后_组件名称_查询数据_查询所有组', + param: '机床流水号=' + MachineCode + '=int' + } + }) +} +export function TableDataSelect(ProjectCode_check, ProjectCode, MachineCode_check, MachineCode, TeamCode_check, TeamCode, ComponentPartsBasicCattleTaxNumber_check, ComponentPartsBasicCattleTaxNumber, CutCode_check, CutCode, CutCodeBefore_check, CutCodeBefore, Assess_check, Assess, PartDrawing_check, PartDrawing, currentPage1, pageSize1) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_传递后_零件报废补投_查询数据', + param: '项目流水号_check=' + ProjectCode_check + '=int&项目流水号=' + ProjectCode + '=string&机床流水号_check=' + MachineCode_check + '=int&机床流水号=' + MachineCode + '=string&组件流水号_check=' + TeamCode_check + '=int&组件流水号=' + TeamCode + '=string&组件零件基本件流水号_check=' + ComponentPartsBasicCattleTaxNumber_check + '=int&组件零件基本件流水号=' + ComponentPartsBasicCattleTaxNumber + '=string&工艺计划流水号_check=' + CutCode_check + '=int&工艺计划流水号=' + CutCode + '=string&工艺计划流水号_补投前_check=' + CutCodeBefore_check + '=int&工艺计划流水号_补投前=' + CutCodeBefore + '=string&考核状态_check=' + Assess_check + '=int&考核状态=' + Assess + '=string&零件图号_check=' + PartDrawing_check + '=int&零件图号=' + PartDrawing + '=string', + Pagination: currentPage1 + '&' + pageSize1 + } + }) +} +export function editTime(CutCode, StartTime, FinishTime) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_零件工艺计划_修改时间_修改机加日期', + param: '工艺计划流水号=' + CutCode + '=string&机加工开始时间=' + StartTime + '=string&机加工结束时间=' + FinishTime + '=string' + } + }) +} +export function editStop(CutCode, temp) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_零件工艺计划_修改停产', + param: '工艺计划流水号=' + CutCode + '=string&批次零件状态=' + temp + '=string' + } + }) +} +export function TableDta2Select(CutCode, currentPage2, pageSize2) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_零件工序_查询数据_根据工艺计划流水号', + param: '工艺计划流水号=' + CutCode + '=string', + Pagination: currentPage2 + '&' + pageSize2 + } + }) +} +export function editA(CutCodebefore, Number, startCut) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_零件工艺计划_增加数据_补投', + param: '工艺计划流水号_补投前=' + CutCodebefore + '=string&批次数量=' + Number + '=string&开始工序=' + startCut + '=string' + } + }) +} +export function TableData3Select(ProjectCode_check, ProjectCode, MachineCode_check, MachineCode, TeamCode_check, TeamCode, ComponentPartsBasicCattleTaxNumber_check, ComponentPartsBasicCattleTaxNumber, CutCode_check, CutCode, CutCodeBefore_check, CutCodeBefore, Assess_check, Assess) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_传递后_零件入库单_查询数据', + param: '项目流水号_check=' + ProjectCode_check + '=int&项目流水号=' + ProjectCode + '=string&机床流水号_check=' + MachineCode_check + '=int&机床流水号=' + MachineCode + '=string&组件流水号_check=' + TeamCode_check + '=int&组件流水号=' + TeamCode + '=string&组件零件基本件流水号_check=' + ComponentPartsBasicCattleTaxNumber_check + '=int&组件零件基本件流水号=' + ComponentPartsBasicCattleTaxNumber + '=string&工艺计划流水号_check=' + CutCode_check + '=int&工艺计划流水号=' + CutCode + '=string&工艺计划流水号_补投前_check=' + CutCodeBefore_check + '=int&工艺计划流水号_补投前=' + CutCodeBefore + '=string&考核状态_check=' + Assess_check + '=int&考核状态=' + Assess + '=string' + } + }) +} +export function editchar(reason, time, num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_零件工艺计划_增加数据_停产原因与时间_MESWORK', + param: '停产原因=' + reason + '=string&停产时间=' + time + '=string&工艺计划流水号=' + num + '=int' + } + }) +} diff --git a/src/api/ManufacturingCenter/SparePartsOut.js b/src/api/ManufacturingCenter/SparePartsOut.js new file mode 100644 index 00000000..b7bb4a4f --- /dev/null +++ b/src/api/ManufacturingCenter/SparePartsOut.js @@ -0,0 +1,88 @@ +import request from '@/utils/request' + +// 查询零件 +export function searchtable(num1, num2, num3, pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_零件工艺计划_编制工艺_备料到货查询', + param: '零件图号_check=' + num1 + '&零件图号=' + num2 + '&备料到货_check=' + num3, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 查询零件工艺 +export function searchtable2(num1) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_备料打印_查询工序信息', + param: '工艺计划流水号=' + num1 + } + }) +} +// 完成备料工序 +export function handlechange(Number, code) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_零件工序_修改数据_工作者', + param: '工序流水号=' + Number + '&工作者考勤编号=' + code + } + }) +} +// 查询外购备料零件 +export function searchtable3(num, num1, pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '备料管理_外购备料查询', + param: '零件图号_check=' + num + '&零件图号=' + num1, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 自家备料出库 +export function change(Number, code, num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_备料到货_状态更改', + param: '工艺计划流水号=' + Number + '&重量=' + code + '&单价=' + num + } + }) +} +// 外购备料出库 +export function change2(Number, code, num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_外购备料到货更改', + param: '工序流水号组=' + Number + '&工作者考勤编号=' + code + '&工艺计划流水号组=' + num + } + }) +} +export function handlechange2(Number, code) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_零件工序_修改数据_修改实际完成时间', + param: '工序流水号=' + Number + '&实际完成时间=' + code + } + }) +} + diff --git a/src/api/ManufacturingCenter/SparePartsPurchase.js b/src/api/ManufacturingCenter/SparePartsPurchase.js new file mode 100644 index 00000000..e9c8bbb3 --- /dev/null +++ b/src/api/ManufacturingCenter/SparePartsPurchase.js @@ -0,0 +1,47 @@ +import request from '@/utils/request' + +export function searchTableData(num, pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_原材料库存管理_查询', + param: '原材料名称=' + num, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +export function addData(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '库存管理_原材料库存管理_新增', + param: '原材料名称=' + num + } + }) +} +export function editData(num1, num2) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '库存管理_原材料库存管理_编辑', + param: '原材料流水号=' + num1 + '&原材料名称=' + num2 + } + }) +} +export function deleteCategory(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '库存管理_原材料库存管理_删除', + param: '原材料流水号=' + num + } + }) +} diff --git a/src/api/ManufacturingCenter/StatusQuery.js b/src/api/ManufacturingCenter/StatusQuery.js new file mode 100644 index 00000000..e27efdec --- /dev/null +++ b/src/api/ManufacturingCenter/StatusQuery.js @@ -0,0 +1,69 @@ +import request from '@/utils/request' + +export function initProject() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_项目名称_查询数据_按时间排序' + } + }) +} +export function intPartState() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_基础表_零件考核状态_查询数据' + } + }) +} +export function searchmachine(num, check, pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_机床名称_查询数据', + param: '项目流水号_check=' + check + '=int&项目流水号=' + num + '&机床类型代码_check=0=int&机床类型代码=1=int&机床流水号_check=0', + Pagination: pageCurrent + '&' + pageSize + } + }) +} +export function searchgroup(num, pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_组件名称_查询数据', + param: '机床流水号=' + num, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +export function searchTable(check, entryNameValue, check1, machine, check2, groupNum, check3, partNumber, check4, partStateValue, check5, partTypeValue, pageSize, pageCurrent) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_零件工艺计划_查询数据_状态_新_MESWORK', + param: '项目流水号_check=' + check + '=int&项目流水号=' + entryNameValue + '&机床流水号_check=' + check1 + '=int&机床流水号=' + machine + '=int&组件流水号_check=' + check2 + '=int&组件流水号=' + groupNum + '=int&零件图号_check=' + check3 + '=int&零件图号=' + partNumber + '=string&考核状态_check=' + check4 + '=int&考核状态=' + partStateValue + '=int&单件是否外协_check=' + check5 + '=int&单件是否外协=' + partTypeValue + '=int', + pagination: pageCurrent + '&' + pageSize + } + }) +} +export function editData(num, state) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_零件工艺计划_考核状态', + param: '工艺计划流水号=' + num + '=int&考核状态=' + state + '=int' + } + }) +} diff --git a/src/api/ManufacturingCenter/TraceabilityOfParts.js b/src/api/ManufacturingCenter/TraceabilityOfParts.js new file mode 100644 index 00000000..1d6fcea6 --- /dev/null +++ b/src/api/ManufacturingCenter/TraceabilityOfParts.js @@ -0,0 +1,57 @@ +import request from '@/utils/request' + +export function SelectPart() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_零件工艺计划_查询数据_状态_新_MESWORK', + param: '项目流水号_check=' + arguments[0] + '&项目流水号=' + arguments[1] + '&机床流水号_check=' + arguments[2] + '&机床流水号=' + arguments[3] + '&组件流水号_check=' + arguments[4] + '&组件流水号=' + arguments[5] + '&零件图号_check=' + arguments[6] + '&零件图号=' + arguments[7] + '&考核状态_check=' + arguments[8] + '&考核状态=' + arguments[9] + '&单件是否外协_check=' + arguments[10] + '&单件是否外协=' + arguments[11] + '&时间=' + arguments[12] + '&机加工开始时间=' + arguments[13] + '&机加工结束时间=' + arguments[14] + '&零件类型=' + arguments[15] + '&工艺计划流水号=' + arguments[16] + } + }) +} +export function getTable(stepNumber, a, b, c, d, e, f, g, i, j, k, l, m) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_零件工序_查询数据_已编制工序的全部零件及工序_横向赋值新建存储过程', + param: '项目流水号_check=' + stepNumber + '=string&项目流水号=' + a + '=string&机床流水号_check=' + b + '=string&机床流水号=' + c + '=string&组件流水号_check=' + d + '=string&组件流水号=' + e + '=string&零件图号_check=' + f + '=string&零件图号=' + g + '=string&是否查询全部数据=1=string&单件是否外协=' + i + '=string&考核状态=6=int&开始时间_check=' + j + '&开始时间=' + k + '&结束时间_check=' + l + '&结束时间=' + m + } + }) +} +export function SelectProcessingProgress() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_加工进度查询_查询', + param: '工艺计划流水号=' + arguments[0] + } + }) +} +export function SelectPreparation() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '零件追溯_备料信息_查询数据', + param: '工艺计划流水号=' + arguments[0] + } + }) +} +export function SelectOut() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '零件追溯_外协信息_查询数据', + param: '工艺计划流水号=' + arguments[0] + } + }) +} diff --git a/src/api/ManufacturingCenter/TypicalProcessMaintenance.js b/src/api/ManufacturingCenter/TypicalProcessMaintenance.js new file mode 100644 index 00000000..a7d5bb4f --- /dev/null +++ b/src/api/ManufacturingCenter/TypicalProcessMaintenance.js @@ -0,0 +1,168 @@ +import request from '@/utils/request' + +export function getPartsCategories() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_基础表_典型工艺名称_分类_查询数据 ' + } + }) +} + +export function getPartsName(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_基础表_典型工艺名称_查询数据_查典型工艺名称', + param: `典型工艺名称分类流水号=${num}` + } + }) +} + +export function getTableData(pageCurrent, pageSize, partsCategoriesCheck, partsCategories, partsNameCheck, partsName) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_基础表_典型工艺名称_查询数据_综合查询', + param: `典型工艺名称分类流水号_check=${partsCategoriesCheck}&典型工艺名称分类流水号=${partsCategories}&典型工艺流水号_check=${partsNameCheck}&典型工艺流水号=${partsName}&典型工艺流水号1_check=0`, + Pagination: pageCurrent + '&' + pageSize + } + }) +} + +export function upMove(typicalProcessNum, typicalSerialNum) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_基础表_典型工艺工序_上移工序', + param: `典型工艺流水号=${typicalProcessNum}&典型工艺工序流水号=${typicalSerialNum}` + } + }) +} + +export function downMove(typicalProcessNum, typicalSerialNum) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_基础表_典型工艺工序_下移工序', + param: `典型工艺流水号=${typicalProcessNum}&典型工艺工序流水号=${typicalSerialNum}` + } + }) +} + +export function insertRow(typicalProcessNum, typicalSerialNum) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_基础表_典型工艺工序_添加工序', + param: `典型工艺流水号=${typicalProcessNum}&典型工艺工序流水号=${typicalSerialNum}` + } + }) +} + +export function deleRow(typicalProcessNum, typicalSerialNum) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_基础表_典型工艺名称_删除数据', + param: `典型工艺流水号=${typicalProcessNum}&典型工艺工序流水号=${typicalSerialNum}` + } + }) +} + +export function editConfirm(typicalProcessNum, typicalSerialNum, processNum, processNo, processClaim, pieceQuota, quasiQuota, remarks) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_基础表_典型工艺工序_修改数据', + param: `典型工艺流水号=${typicalProcessNum}&典型工艺工序流水号=${typicalSerialNum}&工艺序号=${processNum}&工艺编号=${processNo}&工艺要求=${processClaim}&单件定额工时=${pieceQuota}&准结定额工时=${quasiQuota}&备注=${remarks}` + } + }) +} + +export function processNameClick() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_基础表_工艺分类名称_查询数据' + } + }) +} + +export function processNameSelect(val) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_基础表_工艺名称_查询数据', + param: `工艺分类流水号_check=1=bit&工艺分类流水号=${val}=int` + } + }) +} + +export function processRequestSelect(val) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理_基础表_工艺要求_查询数据', + param: `工艺编号=${val}=int` + } + }) +} + +export function difficultyLevel(level, typicalSerialNum) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_零件工序_修改数据_典型工艺难度等级', + param: `工艺难度等级=${level}&典型工艺工序流水号=${typicalSerialNum}` + } + }) +} + +export function isAddOrEdit(typicalSerialNum) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_基础表_典型工艺工序_查询数据_根据典型工艺流水号', + param: `典型工艺流水号=${typicalSerialNum}` + } + }) +} + +export function addProcess(typicalSerialNum, processNum, processNo) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_基础表_典型工艺工序_增加数据_NEW', + param: `典型工艺流水号=${typicalSerialNum}&工艺序号=${processNum}&工艺编号=${processNo}` + } + }) +} diff --git a/src/api/ManufacturingCenter/WorkshopEquipmentManagement.js b/src/api/ManufacturingCenter/WorkshopEquipmentManagement.js new file mode 100644 index 00000000..470c27a3 --- /dev/null +++ b/src/api/ManufacturingCenter/WorkshopEquipmentManagement.js @@ -0,0 +1,79 @@ +import request from '@/utils/request' + +export function getData(check, equipmentName, pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '设备管理_设备加工能力_查询数据_设备维护NEW', + param: '设备名称_check=' + check + '=int&设备名称=' + equipmentName, + pagination: pageCurrent + '&' + pageSize + } + }) +} +export function initProcessing(a = '') { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_基础表_工艺名称_查询数据', + param: '工艺分类流水号_check=0=int&工艺分类流水号=' + a + } + }) +} +export function addTable(equipmentName, equipmentModel, performance, processingCapacity, workingTimeFactor, processName, processNumber, shift, reorganizationTimeFactor, equipmentNumber, reservedTimeFactor) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '设备管理_设备加工能力_增加数据_设备维护New', + param: '设备名称=' + equipmentName + '&设备型号=' + equipmentModel + '&设备性能指标=' + performance + '&设备加工能力工时=' + processingCapacity + '&设备工时系数=' + workingTimeFactor + '&工艺名称简称=' + processName + '&工艺编号=' + processNumber + '&班次类型=' + shift + '&整改工时系数=' + reorganizationTimeFactor + '&设备编号=' + equipmentNumber + '&预留工时系数=' + reservedTimeFactor + } + }) +} +export function editTable(equipmentSerialNumber, equipmentName, equipmentModel, performance, processingCapacity, workingTimeFactor, shift, processCode, reorganizationTimeFactor, equipmentNumber, reservedTimeFactor) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '设备管理_设备加工能力_修改数据_设备维护New', + param: '设备流水号=' + equipmentSerialNumber + '=int&设备名称=' + equipmentName + '=string&设备型号=' + equipmentModel + '=string&设备性能指标=' + performance + '= string&设备加工能力工时=' + processingCapacity + '=string&设备工时系数=' + workingTimeFactor + '=string&班次类型=' + shift + '=int&工艺属性代码=' + processCode + '=string&整改工时系数=' + reorganizationTimeFactor + '=string&设备编号=' + equipmentNumber + '=string&预留工时系数=' + reservedTimeFactor + } + }) +} +export function deleteTable(number) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '设备管理_设备加工能力_删除数据_设备维护', + param: '设备流水号=' + number + '=int' + } + }) +} +export function setUp(time) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_新排产算法_设备能力_系数有效时间设定', + param: '系数有效时间=' + time + } + }) +} +export function generate() { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_新排产算法_设备加工能力_生成设备能力表' + } + }) +} diff --git a/src/api/ManufacturingCenter/machiningHoursStatistics.js b/src/api/ManufacturingCenter/machiningHoursStatistics.js new file mode 100644 index 00000000..ee02ffc3 --- /dev/null +++ b/src/api/ManufacturingCenter/machiningHoursStatistics.js @@ -0,0 +1,113 @@ +import request from '@/utils/request' + +// 查询人员总工工时 +export function searchtable(num1, num2, num3, num4, num5, pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_工时统计_查询数据2', + param: '操作者_check=' + num1 + '&姓名=' + num2 + '&时间_check=' + num3 + '&开始时间=' + num4 + '&结束时间=' + num5, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 查询人员总工工时 +export function searchtable11(num1, num2, num3, num4, num5) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_工时统计_查询数据2', + param: '操作者_check=' + num1 + '&姓名=' + num2 + '&时间_check=' + num3 + '&开始时间=' + num4 + '&结束时间=' + num5 + } + }) +} +// 查询人员具体工序 +export function searchtable2(num1, num2, num3, num4, pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_工时统计按人员查询_查询数据2', + param: '工作者编号=' + num1 + '&时间_check=' + num2 + '&开始时间=' + num3 + '&结束时间=' + num4, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 查询人员具体工序 +export function searchtable22(num1, num2, num3, num4) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_工时统计按人员查询_查询数据2', + param: '工作者编号=' + num1 + '&时间_check=' + num2 + '&开始时间=' + num3 + '&结束时间=' + num4 + } + }) +} +// 初始化机床项目 +export function initProject() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_项目名称_查询数据' + } + }) +} +// 车间生产管理工艺_工时统计_机床查询_查询数据 +export function searchtable4(num1, num2, pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_工时统计_机床查询_查询数据', + param: '机床流水号_check=' + num1 + '&机床流水号=' + num2, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 车间生产管理工艺_工时统计_机床查询_查询数据 +export function searchtable44(num1, num2) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_工时统计_机床查询_查询数据', + param: '机床流水号_check=' + num1 + '&机床流水号=' + num2 + } + }) +} +// 车间生产管理工艺_工时统计_组号查询_查询数据 +export function searchtable5(num1, pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_工时统计_组号查询_查询数据', + param: '机床流水号=' + num1, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 车间生产管理工艺_工时统计_组号查询_查询数据 +export function searchtable55(num1) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_工时统计_组号查询_查询数据', + param: '机床流水号=' + num1 + } + }) +} diff --git a/src/api/MarketingCenter/BidBond.js b/src/api/MarketingCenter/BidBond.js new file mode 100644 index 00000000..b924ad2c --- /dev/null +++ b/src/api/MarketingCenter/BidBond.js @@ -0,0 +1,160 @@ +import request from '@/utils/request' + +export function initType() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '投标保证金管理_保证金类型查询' + } + }) +} + +export function selectBidBond() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '投标保证金管理_投标保证金查询', + param: '保金类型_check=' + arguments[0] + '&保金类型=' + arguments[1] + '&投标人_check=' + arguments[2] + '&投标人=' + arguments[3] + '&招标企业_check=' + arguments[4] + '&招标企业=' + arguments[5] + '&开始日期_check=' + arguments[6] + '&开始日期=' + arguments[7] + '&结束日期_check=' + arguments[8] + '&结束日期=' + arguments[9], + Pagination: arguments[10] + '&' + arguments[11] + } + }) +} + +export function getTree() { + return request({ + url: '', + method: 'post', + data: { + type: 1, + name: '人事档案管理_部门关系_查询节点', + param: '子节点=0=int' + } + }) +} +export function tree(data, pid) { + const result = [] + let temp + for (let i = 0; i < data.length; i++) { + if (data[i].父节点 === pid) { + const obj = { label: data[i].节点名称, id: data[i].子节点 } + temp = tree(data, data[i].子节点) + if (temp.length > 0) { + obj.children = temp + } + result.push(obj) + } + } + return result +} +export function getTablePeople(code) { + return request({ + url: '', + method: 'post', + data: { + type: 1, + name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号', + param: '考核部门编号=' + code + '=int' + } + }) +} +export function TakeBack() { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '投标保证金管理_投标保证金_收回', + param: '招标保证金流水号=' + arguments[0] + '&实际收回日期=' + arguments[1] + } + }) +} +export function ComplianceGold() { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '招标保证金管理_招标保证金_转履约金', + param: '招标保证金流水号=' + arguments[0] + } + }) +} +export function addBidBond() { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '投标保证金管理_投标保证金信息_增加', + param: '招标企业=' + arguments[0] + '&联系人=' + arguments[1] + '&联系电话=' + arguments[2] + '&保证金金额=' + arguments[3] + '&人员流水号=' + arguments[4] + '&保证金类型流水号=' + arguments[5] + '&投标日期=' + arguments[6] + '&备注=' + arguments[7] + '&提前X天提醒=' + arguments[8] + } + }) +} +export function editBidBond() { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '投标保证金管理_投标保证金信息_修改', + param: '招标企业=' + arguments[0] + '&联系人=' + arguments[1] + '&联系电话=' + arguments[2] + '&保证金金额=' + arguments[3] + '&人员流水号=' + arguments[4] + '&保证金类型流水号=' + arguments[5] + '&投标日期=' + arguments[6] + '&备注=' + arguments[7] + '&提前X天提醒=' + arguments[8] + '&招标保证金流水号=' + arguments[9] + } + }) +} +export function delBidBond() { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '投标保证金管理_投标保证金信息_删除', + param: '招标保证金流水号=' + arguments[0] + } + }) +} +export function winningBid() { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '投标保证金管理_投标保证金信息_投标结果', + param: '招标保证金流水号=' + arguments[0] + '&投标结果=' + arguments[1] + '&公布日期=' + arguments[2] + '&中标服务费=' + arguments[3] + } + }) +} +export function executionProgressID() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '合同信息管理_执行进度_查询' + } + }) +} +export function intProject() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '合同信息管理_投标保证金转履约保证金_项目名称查询' + } + }) +} +export function submitPerformanceBond() { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '合同信息管理_投标保证金转履约保证金', + param: '招标保证金流水号=' + arguments[0] + '&项目流水号=' + arguments[1] + '&保证金金额=' + arguments[2] + '&保证金类型流水号=' + arguments[3] + '&收回条件=' + arguments[4] + '&截止时间=' + arguments[5] + } + }) +} diff --git a/src/api/MarketingCenter/CRM.js b/src/api/MarketingCenter/CRM.js new file mode 100644 index 00000000..651b9561 --- /dev/null +++ b/src/api/MarketingCenter/CRM.js @@ -0,0 +1,196 @@ +import request from '@/utils/request' + +// 查询价值评估等级下拉框 +export function searchValue() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'dbo.客户关系管理系统_价值评估_查询数据_MESWORK' + } + }) +} +// 地区查询 +export function selectAdress() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '发货管理_省份查询' + } + }) +} +export function selectCustomer(AdressID, pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '客户关系管理系统_按地区查询_客户名称', + param: '省份流水号=' + AdressID, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 通过名称查 +export function selectCustomerOfName(name, pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '客户关系管理系统_按客户名称查询_客户名称', + param: '客户流水号=' + name, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +export function selectMarketingManager(AdressID) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '客户关系管理系统_按地区查询_营销经理', + param: '省份流水号=' + AdressID + } + }) +} +export function initCustomer() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '客户关系管理系统_初始化查询_客户名称' + } + }) +} +export function getTree() { + return request({ + url: '', + method: 'post', + data: { + type: 1, + name: '人事档案管理_部门关系_查询节点', + param: '子节点=0=int' + } + }) +} +export function tree(data, pid) { + const result = [] + let temp + for (let i = 0; i < data.length; i++) { + if (data[i].父节点 === pid) { + const obj = { label: data[i].节点名称, id: data[i].子节点 } + temp = tree(data, data[i].子节点) + if (temp.length > 0) { + obj.children = temp + } + result.push(obj) + } + } + return result +} +export function getTablePeople(code) { + return request({ + url: '', + method: 'post', + data: { + type: 1, + name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号', + param: '考核部门编号=' + code + '=int' + } + }) +} +export function deleteCustomer(customerId) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: 'dbo.客户关系管理系统_客户_删除数据_MESWORK', + param: '客户流水号=' + customerId + } + }) +} +export function deleteMarketingManager(MarketingManagerId) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '客户关系管理系统_营销经理_删除数据_MESWORK', + param: '营销经理地区流水号=' + MarketingManagerId + } + }) +} +export function addMarketingManager(MarketingManagerId, AdressID) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '客户关系管理系统_营销经理_增加数据_MESWORK', + param: '营销经理流水号=' + MarketingManagerId + '&省份流水号=' + AdressID + '&导入类型=0=int=output' + } + }) +} +export function addPer(MarketingManagerId, AdressID) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '客户关系管理系统_营销经理_增加数据_MESWORK_NEW', + param: '营销经理流水号=' + MarketingManagerId + '&省份流水号=' + AdressID + } + }) +} +export function editMarketingManager(MarketingManagerId, AdressID) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '客户关系管理系统_营销经理_修改数据_MESWORK', + param: '营销经理流水号=' + MarketingManagerId + '&营销经理地区流水号=' + AdressID + } + }) +} +export function addCustomer(AdressID, CustomerName, CallNumber, Fax, Adress, People, Email, BankAccount, DutyParagraph, Assessment, Remark, OpeningBank) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '客户关系管理系统_客户_增加数据_MESWORK', + param: '省份流水号=' + AdressID + '&客户名称=' + CustomerName + '&电话=' + CallNumber + '&传真=' + Fax + '&地址=' + Adress + '&联系人=' + People + '&电子邮箱=' + Email + '&银行账号=' + BankAccount + '&税号=' + DutyParagraph + '&价值评估流水号=' + Assessment + '&备注=' + Remark + '&开户行=' + OpeningBank + } + }) +} +export function selectAdressOfID(AdressID) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '客户关系管理系统_通过省份流水号查省份名称_查询数据_MESWORK', + param: '省份流水号=' + AdressID + } + }) +} +export function editCustomer(AdressID, CustomerName, CallNumber, Fax, Adress, People, Email, BankAccount, DutyParagraph, Assessment, Remark, ID, OpeningBank) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '客户关系管理系统_客户_修改数据_MESWORK', + param: '省份流水号=' + AdressID + '&客户名称=' + CustomerName + '&电话=' + CallNumber + '&传真=' + Fax + '&地址=' + Adress + '&联系人=' + People + '&电子邮箱=' + Email + '&银行账号=' + BankAccount + '&税号=' + DutyParagraph + '&价值评估流水号=' + Assessment + '&备注=' + Remark + '&客户流水号=' + ID + '&开户行=' + OpeningBank + } + }) +} + diff --git a/src/api/MarketingCenter/ComprehensiveInquiryMS.js b/src/api/MarketingCenter/ComprehensiveInquiryMS.js new file mode 100644 index 00000000..92319fb9 --- /dev/null +++ b/src/api/MarketingCenter/ComprehensiveInquiryMS.js @@ -0,0 +1,133 @@ +import request from '@/utils/request' + +export function initProject() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '合同信息管理_项目名称_总_查询' + } + }) +} +export function selectProvince() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '发货管理_省份查询' + } + }) +} +export function SelectMarketingManager(code) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '客户关系管理系统_按地区查询_营销经理', + param: '省份流水号=' + code + } + }) +} +export function searchTable1(pageCurrent, pageSize, num1, num2, num3, num4, num5, num6, num7, num8, num9, num10) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '合同信息管理_合同信息_查询', + param: '合同ID=' + num1 + '=int&人员ID=' + num2 + '=int&项目流水号_check=' + num3 + '=int&营销经理流水号_check=' + num4 + '=int&开始日期_check=' + num5 + '=int&结束日期_check=' + num6 + '=int&开始日期=' + num7 + '=date&结束日期=' + num8 + '=date&机床型号_check=' + num9 + '=int&机床型号=' + num10 + '=string', + Pagination: pageCurrent + '&' + pageSize + } + }) +} +export function selectMachine(code) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_机床名称_查询数据_通过项目流水号', + param: '项目流水号=' + code + } + }) +} +export function searchTableDataInvoiceRecord(num1) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '合同信息管理_开票记录_查询', + param: '项目流水号=' + num1 + '=int' + } + }) +} +export function searchTableContractCapitalManagement(num1) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '合同资金管理_资金信息_查询', + param: '合同ID=' + num1 + '=int' + } + }) +} +export function searchTableSafetyMargin(num1) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '安全保证金管理_安全保证金信息查询', + param: '项目流水号=' + num1 + '=int' + } + }) +} +export function searchTableBidBond(num1) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '营销综合查询_投标保证金_按项目查', + param: '项目流水号=' + num1 + '=int' + } + }) +} +export function typeOfPerformanceBond(num1) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '合同信息管理_履约保证金类型_查询', + param: '项目流水号=' + num1 + '=int' + } + }) +} +export function searchTableDataPerformanceBond(num1) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '合同信息管理_履约保证金_查询', + param: '项目流水号=' + num1 + '=int' + } + }) +} +export function searchTableDataDeliveryManagement(num1) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '营销综合查询_发货单_按项目查', + param: '项目流水号=' + num1 + '=int' + } + }) +} diff --git a/src/api/MarketingCenter/ContractCapitalManagement.js b/src/api/MarketingCenter/ContractCapitalManagement.js new file mode 100644 index 00000000..00e6287c --- /dev/null +++ b/src/api/MarketingCenter/ContractCapitalManagement.js @@ -0,0 +1,375 @@ +import request from '@/utils/request' + +export function initProject() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '合同信息管理_项目名称_总_查询' + } + }) +} +export function initMarketingManager() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '合同信息管理_营销人员_总_查询' + } + }) +} +export function searchTable1(pageCurrent, pageSize, num1, num2) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '合同资金管理_资金信息_查询', + param: '合同ID=' + num1 + '=int&人员ID=' + num2 + '=int', + Pagination: pageCurrent + '&' + pageSize + } + }) +} +export function searchTable2(pageCurrent, pageSize, num1) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '合同资金管理_分批资金_查询', + param: '资金ID=' + num1 + '=int', + Pagination: pageCurrent + '&' + pageSize + } + }) +} +export function editBatchCapitalChar(num1, num2, num3, num4) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '合同资金管理_批次付款表_增加数据', + param: '资金ID=' + num1 + '=int&付款阶段ID=' + num2 + '=int&本次付款=' + num3 + '=float&付款时间=' + num4 + '=string' + } + }) +} +export function deletechar(num1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '合同资金管理_批次付款表_删除', + param: '批次资金ID=' + num1 + '=int' + } + }) +} +export function addList(num1, num2) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '基础表_合同资金表_增加数据', + param: '合同ID=' + num1 + '=int&合同总金额=' + num2 + '=float' + } + }) +} +export function searchProjectNumber() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '合同信息管理_项目名称_总_查询' + } + }) +} +export function searchProjectNumber2() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '合同信息管理_项目名称_总_查询_增加限制' + } + }) +} +export function searchProjectName(num1) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '合同信息管理_项目名称_通过合同ID查_查询', + param: '合同ID=' + num1 + '=int' + } + }) +} +export function PaymentPhase() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '合同资金管理_付款阶段_查询' + } + }) +} +export function dellist(num1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '合同资金管理_资金信息_删除', + param: '资金ID=' + num1 + '=int' + } + }) +} +export function getTree() { + return request({ + url: '', + method: 'post', + data: { + type: 1, + name: '人事档案管理_部门关系_查询节点', + param: '子节点=0=int' + } + }) +} +export function tree(data, pid) { + const result = [] + let temp + for (let i = 0; i < data.length; i++) { + if (data[i].父节点 === pid) { + const obj = { label: data[i].节点名称, id: data[i].子节点 } + temp = tree(data, data[i].子节点) + if (temp.length > 0) { + obj.children = temp + } + result.push(obj) + } + } + return result +} +export function getTablePeople(code) { + return request({ + url: '', + method: 'post', + data: { + type: 1, + name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号', + param: '考核部门编号=' + code + '=int' + } + }) +} +export function editChart(code, num1, num2, num3) { + return request({ + url: '', + method: 'post', + data: { + type: 2, + name: '合同资金管理_批次付款表_修改', + param: '批次资金ID=' + code + '=int&本次付款金额新=' + num1 + '=string&付款时间=' + num2 + '=string&付款阶段ID=' + num3 + '=int' + } + }) +} +export function editTableData(code, num1) { + return request({ + url: '', + method: 'post', + data: { + type: 2, + name: '合同资金管理_合同资金表_修改', + param: '资金ID=' + code + '=int&合同总金额=' + num1 + '=string' + } + }) +} +export function selectMachine(code) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '合同收款计划_发货情况_查询数据', + param: '项目流水号=' + code + } + }) +} +export function selectBatchFundingDetails(code) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '合同资金管理_分批付款明细_查询', + param: '批次资金ID=' + code + } + }) +} +export function SelectMarketingManager(code) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '客户关系管理系统_按姓名查询_营销经理', + param: '姓名=' + code + } + }) +} +export function selectProvince() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '发货管理_省份查询' + } + }) +} +export function fukuan(code, num1, num2) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '合同资金管理_批次付款明细表_增加数据', + param: '批次资金ID=' + code + '=int&本次收款金额=' + num1 + '=string&本次收款时间=' + num2 + '=string' + } + }) +} +export function editFukuan(code, num1, num2) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '合同资金管理_批次付款明细表_修改数据', + param: '批次付款明细ID=' + code + '=int&本次收款金额=' + num1 + '=string&本次收款时间=' + num2 + '=string' + } + }) +} +export function selectMax(code) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '合同资金管理_批次资金明细修改最大值_查询', + param: '批次付款明细ID=' + code + '=int' + } + }) +} +export function editTime(code, num2) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '合同资金管理_批次付款表_修改计划时间', + param: '批次资金ID=' + code + '=int&执行进度ID=' + num2 + '=int' + } + }) +} +export function delMoney(code) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '合同资金管理_批次付款明细表_删除数据新', + param: '批次付款明细ID=' + code + '=int' + } + }) +} +export function editList(num1, num2, num3) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '基础表_合同资金表_修改数据', + param: '合同ID=' + num1 + '=int&合同总金额=' + num2 + '=float&资金ID=' + num3 + '=int' + } + }) +} +export function selectBatch(num1) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '合同资金管理_分批资金_批次查询', + param: '资金ID=' + num1 + '=int' + } + }) +} +export function TransPlanning(num1, num2, num3) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '合同资金管理_批次付款表_转移计划', + param: '批次资金ID原=' + num1 + '=int&批次资金ID转=' + num2 + '=int&转移金额=' + num3 + '=string' + } + }) +} +export function editDay(num1, num2) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '合同资金管理_分批资金表_修改提醒天数', + param: '批次资金ID=' + num1 + '=int&提前X天提醒=' + num2 + '=int' + } + }) +} +export function AccountsReceivable() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '合同资金管理_催收账款_查询' + } + }) +} +export function SelectContractFunds(num1, pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '合同资金管理_资金信息_查询_通过资金ID', + param: '资金ID=' + num1 + '=int', + Pagination: pageCurrent + '&' + pageSize + } + }) +} +export function executionProgressID() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '合同信息管理_执行进度_查询' + } + }) +} +export function never(num1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '合同资金管理_催收账款_不再提醒', + param: '批次资金ID=' + num1 + '=int' + } + }) +} diff --git a/src/api/MarketingCenter/ContractInformationManagement.js b/src/api/MarketingCenter/ContractInformationManagement.js new file mode 100644 index 00000000..b828ad70 --- /dev/null +++ b/src/api/MarketingCenter/ContractInformationManagement.js @@ -0,0 +1,289 @@ +import request from '@/utils/request' + +export function initProject() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '合同信息管理_项目名称_总_查询' + } + }) +} +export function initMarketingManager() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '合同信息管理_营销人员_总_查询' + } + }) +} +export function searchTable1(pageCurrent, pageSize, num1, num2, num3, num4, num5, num6, num7, num8, num9, num10) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '合同信息管理_合同信息_查询', + param: '合同ID=' + num1 + '=int&人员ID=' + num2 + '=int&项目流水号_check=' + num3 + '=int&营销经理流水号_check=' + num4 + '=int&开始日期_check=' + num5 + '=int&结束日期_check=' + num6 + '=int&开始日期=' + num7 + '=date&结束日期=' + num8 + '=date&机床型号_check=' + num9 + '=int&机床型号=' + num10 + '=string', + Pagination: pageCurrent + '&' + pageSize + } + }) +} +export function fetchExecutionProgress(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '合同信息管理_执行进度_通过合同ID查_查询', + param: '合同ID=' + num + '=int' + } + }) +} +export function delList(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '合同信息管理_合同信息_删除', + param: '合同ID=' + num + '=int' + } + }) +} +export function addList() { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '基础表_合同信息表_增加数据', + param: '项目名称=' + arguments[0] + '&图纸会签节点=' + arguments[1] + '&设备预验收节点=' + arguments[2] + '&发货节点=' + arguments[3] + '&安装调试节点=' + arguments[4] + '&人员ID=' + arguments[5] + '&执行进度ID=' + arguments[6] + '&客户流水号=' + arguments[7] + '&备注=' + arguments[8] + '&付款方式代码=' + arguments[9] + '&合同签订日期=' + arguments[10] + '&招标保证金流水号=' + arguments[11] + } + }) +} +export function fetchPersonnelID() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '合同信息管理_营销人员_查询' + } + }) +} +export function executionProgressID() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '合同信息管理_执行进度_查询' + } + }) +} +export function editchar() { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '合同信息管理_合同信息_编辑', + param: '项目名称=' + arguments[0] + '&图纸会签节点=' + arguments[1] + '&设备预验收节点=' + arguments[2] + '&发货节点=' + arguments[3] + '&安装调试节点=' + arguments[4] + '&人员ID=' + arguments[5] + '&执行进度ID=' + arguments[6] + '&客户流水号=' + arguments[7] + '&合同信息备注=' + arguments[8] + '&项目流水号=' + arguments[9] + '&付款方式代码=' + arguments[10] + '&合同签订日期=' + arguments[11] + '&招标保证金流水号=' + arguments[12] + } + }) +} +export function getTree() { + return request({ + url: '', + method: 'post', + data: { + type: 1, + name: '人事档案管理_部门关系_查询节点', + param: '子节点=0=int' + } + }) +} +export function tree(data, pid) { + const result = [] + let temp + for (let i = 0; i < data.length; i++) { + if (data[i].父节点 === pid) { + const obj = { label: data[i].节点名称, id: data[i].子节点 } + temp = tree(data, data[i].子节点) + if (temp.length > 0) { + obj.children = temp + } + result.push(obj) + } + } + return result +} +export function getTablePeople(code) { + return request({ + url: '', + method: 'post', + data: { + type: 1, + name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号', + param: '考核部门编号=' + code + '=int' + } + }) +} +export function fetchCustomerData(PageCurrent, PageSize, name) { + return request({ + url: '', + method: 'post', + data: { + type: 1, + name: '创建合同_客户信息查询', + param: '客户名称=' + name + '=string', + Pagination: PageCurrent + '&' + PageSize + } + }) +} + +export function getFileData(projectNum) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '合同管理_文件路径_查询数据', + param: `项目流水号=${projectNum}` + } + }) +} +export function deleteFileData(id) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '合同管理_文件路径_删除数据', + param: `文件标识=${id}` + } + }) +} +export function selectMachine(code) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_机床名称_查询数据_通过项目流水号', + param: '项目流水号=' + code + } + }) +} +export function selectProvince() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '发货管理_省份查询' + } + }) +} +export function SelectMarketingManager(code) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '客户关系管理系统_按姓名查询_营销经理', + param: '姓名=' + code + } + }) +} +export function submitMachine() { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '创建合同_机床名称_增加数据', + param: '项目流水号=' + arguments[0] + '&机床图号=' + arguments[1] + '&机床名称=' + arguments[2] + '&机床数量=' + arguments[3] + } + }) +} +export function editMachine() { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '创建合同_机床名称_修改数据', + param: '机床流水号=' + arguments[0] + '&机床图号=' + arguments[1] + '&机床名称=' + arguments[2] + '&机床数量=' + arguments[3] + } + }) +} +export function delMachine() { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: 'PDM_机床名称_删除数据', + param: '机床流水号=' + arguments[0] + } + }) +} +export function money() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '合同信息管理_付款方式_查询' + } + }) +} +export function changeExecutionProgressID() { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '创建合同_改变执行进度', + param: '执行进度流水号=' + arguments[0] + '&项目流水号=' + arguments[1] + '&进度完成日期=' + arguments[2] + } + }) +} +export function selectBidBond() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '投标保证金管理_投标保证金查询', + param: '保金类型_check=' + arguments[0] + '&保金类型=' + arguments[1] + '&投标人_check=' + arguments[2] + '&投标人=' + arguments[3] + '&招标企业_check=' + arguments[4] + '&招标企业=' + arguments[5] + '&开始日期_check=' + arguments[6] + '&开始日期=' + arguments[7] + '&结束日期_check=' + arguments[8] + '&结束日期=' + arguments[9] + } + }) +} +export function searchTime() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '创建合同_查询执行进度时间', + param: '项目流水号=' + arguments[0] + '&执行进度流水号=' + arguments[1] + } + }) +} +export function searchTimeAll() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '创建合同_查询执行进度时间_总', + param: '项目流水号=' + arguments[0] + } + }) +} diff --git a/src/api/MarketingCenter/CreateProject.js b/src/api/MarketingCenter/CreateProject.js new file mode 100644 index 00000000..33408fec --- /dev/null +++ b/src/api/MarketingCenter/CreateProject.js @@ -0,0 +1,101 @@ +import request from '@/utils/request' + +export function initProject() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '合同信息管理_项目名称_制造部_查询' + } + }) +} +export function searchTable1(pageCurrent, pageSize, num1, num3, num5, num6, num7, num8, num9, num10) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '合同信息管理_合同信息_制造部_查询', + param: '合同ID=' + num1 + '=int&项目流水号_check=' + num3 + '=int&开始日期_check=' + num5 + '=int&结束日期_check=' + num6 + '=int&开始日期=' + num7 + '=date&结束日期=' + num8 + '=date&机床型号_check=' + num9 + '=int&机床型号=' + num10 + '=string', + Pagination: pageCurrent + '&' + pageSize + } + }) +} +export function selectMachine(code) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_机床名称_查询数据_通过项目流水号', + param: '项目流水号=' + code + } + }) +} +export function addList() { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '基础表_合同信息表_制造部_增加数据', + param: '项目名称=' + arguments[0] + '&备注=' + arguments[1] + '&合同签订日期=' + arguments[2] + } + }) +} +export function editchar() { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '合同信息管理_合同信息_制造部_编辑', + param: '项目名称=' + arguments[0] + '&合同信息备注=' + arguments[1] + '&项目流水号=' + arguments[2] + '&合同签订日期=' + arguments[3] + } + }) +} +export function delList(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '合同信息管理_合同信息_删除', + param: '合同ID=' + num + '=int' + } + }) +} +export function submitMachine() { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '创建合同_机床名称_增加数据', + param: '项目流水号=' + arguments[0] + '&机床图号=' + arguments[1] + '&机床名称=' + arguments[2] + '&机床数量=' + arguments[3] + } + }) +} +export function editMachine() { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '创建合同_机床名称_修改数据', + param: '机床流水号=' + arguments[0] + '&机床图号=' + arguments[1] + '&机床名称=' + arguments[2] + '&机床数量=' + arguments[3] + } + }) +} +export function delMachine() { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: 'PDM_机床名称_删除数据', + param: '机床流水号=' + arguments[0] + } + }) +} diff --git a/src/api/MarketingCenter/DeliveryApplication.js b/src/api/MarketingCenter/DeliveryApplication.js new file mode 100644 index 00000000..b513f798 --- /dev/null +++ b/src/api/MarketingCenter/DeliveryApplication.js @@ -0,0 +1,167 @@ +import request from '@/utils/request' + +export function InvoiceAdd() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '发货管理_发货申请_发货单_新增', + param: '制单人=' + arguments[0] + '&发货单流水号=0=int=output' + } + }) +} +export function InvoiceDelete() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '发货管理_发货申请_发货单_删除', + param: '发货单流水号=' + arguments[0] + } + }) +} +export function InvoiceSelectPush() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '发货管理_发货申请_发货单_下拉框数据_查询', + param: '查询条件=' + arguments[0] + } + }) +} +export function PickSelectPush() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '发货管理_发货申请_发货单_货品_查询', + param: '查询类别=' + arguments[0] + '\\&查询条件=' + arguments[1] + } + }) +} +export function SelectMachine() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '发货管理_发货申请_发货单_机床_查询', + param: '机床图号=' + arguments[0] + } + }) +} +export function SelectAssembly() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '发货管理_发货申请_发货单_组件_查询', + param: '组号=' + arguments[0] + } + }) +} +export function SelectPart() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '发货管理_发货申请_发货单_零件_查询', + param: '零件图号=' + arguments[0] + } + }) +} +export function SelectMateriel() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '发货管理_发货申请_发货单_物料_查询', + param: '物料名称=' + arguments[0] + } + }) +} +export function InvoiceFeach() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '发货管理_发货申请_发货单数据_查询', + param: '发货单流水号=' + arguments[0] + } + }) +} +export function InvoiceSave() { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '发货管理_发货申请_发货单_保存', + param: '发货单流水号=' + arguments[0] + '\\&收货单位=' + arguments[1] + '\\&收货地址=' + arguments[2] + '\\&收货人员=' + arguments[3] + '\\&联系电话=' + arguments[4] + '\\&注意事项=' + arguments[5] + '\\&发货单名称=' + arguments[6] + '\\&机床流水号=' + arguments[7] + } + }) +} +export function InvoiceExamine() { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '发货管理_发货申请_发货单_审核', + param: '发货单流水号=' + arguments[0] + '&审核人=' + arguments[1] + } + }) +} +export function InvoiceAbandoningTrial() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '发货管理_发货申请_发货单_弃审', + param: '发货单流水号=' + arguments[0] + } + }) +} +export function DetailsFeach() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '发货管理_发货申请_发货单明细_查询', + param: '发货单流水号=' + arguments[0] + } + }) +} +export function InvoiceDetailsSave() { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '发货管理_发货申请_发货单_发货单明细_循环增加', + param: '货品类别组=' + arguments[0] + '\\&货品编号组=' + arguments[1] + '\\&货品名称组=' + arguments[2] + '\\&货品规格组=' + arguments[3] + '\\&货品型号组=' + arguments[4] + '\\&设计者组=' + arguments[5] + '\\&数量组=' + arguments[6] + '\\&发货单流水号=' + arguments[7] + } + }) +} +export function InvoiceListSearch() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '发货管理_发货申请_发货单_发货单列表_查询', + param: '发货单名=' + arguments[0] + '\\&发货单号=' + arguments[1] + '\\&收货单位=' + arguments[2] + '\\&车辆牌号=' + arguments[3] + '\\&司机姓名=' + arguments[4] + '\\&司机电话=' + arguments[5] + '\\&制单人=' + arguments[6] + '\\&核准人=' + arguments[7] + '\\&执行人=' + arguments[8] + '\\&开始制单日期=' + arguments[9] + '\\&结束制单日期=' + arguments[10] + '\\&开始核准日期=' + arguments[11] + '\\&结束核准日期=' + arguments[12] + '\\&开始发货日期=' + arguments[13] + '\\&结束发货日期=' + arguments[14] + '\\&发货单名_check=' + arguments[15] + '\\&发货单号_check=' + arguments[16] + '\\&收货单位_check=' + arguments[17] + '\\&车辆牌号_check=' + arguments[18] + '\\&司机姓名_check=' + arguments[19] + '\\&司机电话_check=' + arguments[20] + '\\&制单人_check=' + arguments[21] + '\\&核准人_check=' + arguments[22] + '\\&执行人_check=' + arguments[23] + '\\&开始制单日期_check=' + arguments[24] + '\\&结束制单日期_check=' + arguments[25] + '\\&开始核准日期_check=' + arguments[26] + '\\&结束核准日期_check=' + arguments[27] + '\\&开始发货日期_check=' + arguments[28] + '\\&结束发货日期_check=' + arguments[29] + } + }) +} diff --git a/src/api/MarketingCenter/DeliveryManagement.js b/src/api/MarketingCenter/DeliveryManagement.js new file mode 100644 index 00000000..c6156076 --- /dev/null +++ b/src/api/MarketingCenter/DeliveryManagement.js @@ -0,0 +1,268 @@ +import request from '@/utils/request' + +// 初始化形目名称 +export function searchProjectName() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '发货管理_总装箱单_查询' + } + }) +} + +// 查询装箱单总单据信息 +export function searchPackingList() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '发货管理_总装箱单_查询_通过编号', + param: '装箱单编号=' + arguments[0] + } + }) +} + +// 查询备件 +export function searchSparePart() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '发货管理_备件_查询数据', + param: '装箱单编号=' + arguments[0] + } + }) +} + +// 查询随机文件 +export function searchFile() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '发货管理_随机文件_查询数据', + param: '装箱单编号=' + arguments[0] + } + }) +} + +// 查询主机 +export function searchHost() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '发货管理_主机_查询数据', + param: '装箱单编号=' + arguments[0] + } + }) +} + +// 查询机床所属部件 +export function searchParts() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '发货管理_机床所属部件_查询数据', + param: '代号=' + arguments[0] + } + }) +} + +// 查询发货单 +export function searchInvoice() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '发货管理_发货单_查询数据', + param: '装箱单编号=' + arguments[0] + } + }) +} +// 收货地址初始化 +export function addressSearch(pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '发货管理_收货地址查询', + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 省份初始化 +export function provinceSearch() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '发货管理_省份查询' + } + }) +} +export function citySearch(num1) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '发货管理_市名查询_根据省流水号', + param: '省份流水号=' + num1 + } + }) +} +export function deleteAdress(num1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '发货管理_收货地址删除', + param: '收货地址流水号=' + num1 + } + }) +} +export function addAdress(num1, num2, num3, num4, num5) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '发货管理_收货地址增加', + param: '省份流水号=' + num1 + '&市流水号=' + num2 + '&详细地址=' + num3 + '&联系人=' + num4 + '&联系方式=' + num5 + } + }) +} +export function editAdress(num1, num2, num3, num4, num5, num6) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '发货管理_收货地址修改', + param: '省份流水号=' + num1 + '&市流水号=' + num2 + '&详细地址=' + num3 + '&联系人=' + num4 + '&联系方式=' + num5 + '&收货地址流水号=' + num6 + } + }) +} +export function addInvoice() { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '发货管理_发货单_增加数据', + param: '装箱单编号=' + arguments[0] + '&车辆牌号=' + arguments[1] + '&运输状态=' + arguments[2] + '&收货地址流水号=' + arguments[3] + '&发货日期=' + arguments[4] + '&运费=' + arguments[5] + } + }) +} +export function delInvoice() { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '发货管理_发货单_删除数据', + param: '发货单编号=' + arguments[0] + } + }) +} +export function editInvoice() { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '发货管理_发货单_修改数据', + param: '车辆牌号=' + arguments[0] + '&运输状态=' + arguments[1] + '&收货地址流水号=' + arguments[2] + '&发货日期=' + arguments[3] + '&发货单编号=' + arguments[4] + '&运费=' + arguments[5] + } + }) +} +export function searchCargoBox() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '发货管理_货箱号_查询数据', + param: '发货单编号=' + arguments[0] + } + }) +} +export function addCargoBox() { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '发货管理_货箱号_增加数据', + param: '发货单编号=' + arguments[0] + } + }) +} +export function delCargoBox() { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '发货管理_货箱号_删除数据', + param: '货箱号编号=' + arguments[0] + } + }) +} +export function submitMoveInto() { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '发货管理_货箱明细_移入', + param: '货箱号编号=' + arguments[0] + '&代号=' + arguments[1] + '&名称=' + arguments[2] + '&规格=' + arguments[3] + '&数量=' + arguments[4] + '&备注=' + arguments[5] + '&部件编号=' + arguments[6] + '&@备件编号=' + arguments[7] + '&文件编号=' + arguments[8] + } + }) +} +export function searchCargoBoxDetailed() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '发货管理_货箱明细_查询', + param: '货箱号编号=' + arguments[0] + } + }) +} +export function submitRremove() { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '发货管理_货箱明细_移除', + param: '货箱明细编号=' + arguments[0] + '&数量=' + arguments[1] + '&部件编号=' + arguments[2] + '&备件编号=' + arguments[3] + '&文件编号=' + arguments[4] + '&货箱号编号=' + arguments[5] + } + }) +} +export function selectDelivery() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '发货管理_发货单二维码扫描查询', + param: '发货单编号=' + arguments[0] + } + }) +} diff --git a/src/api/MarketingCenter/InvoiceRecord.js b/src/api/MarketingCenter/InvoiceRecord.js new file mode 100644 index 00000000..8f4ae65f --- /dev/null +++ b/src/api/MarketingCenter/InvoiceRecord.js @@ -0,0 +1,112 @@ +import request from '@/utils/request' + +export function initProject() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '合同信息管理_项目名称_总_查询' + } + }) +} +export function searchTableData1(pageCurrent, pageSize, num1, num2, num3, num4, num5, num6, num7, num8) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '合同资金管理_开票记录_合同信息统计_查询', + param: '合同ID=' + num1 + '=int&人员ID=' + num2 + '=int&项目流水号_check=' + num3 + '=int&营销经理流水号_check=' + num4 + '=int&开始日期_check=' + num5 + '=int&结束日期_check=' + num6 + '=int&开始日期=' + num7 + '=date&结束日期=' + num8 + '=date', + Pagination: pageCurrent + '&' + pageSize + } + }) +} +export function searchTableData2(num1) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '合同信息管理_开票记录_查询', + param: '项目流水号=' + num1 + '=int' + } + }) +} +export function revisionOfTaxRate(num1, num2) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '合同信息管理_开票记录_税率修改', + param: '项目流水号=' + num1 + '=int&税率=' + num2 + '=float' + } + }) +} +export function selectProvince() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '发货管理_省份查询' + } + }) +} +export function SelectMarketingManager(code) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '客户关系管理系统_按姓名查询_营销经理', + param: '姓名=' + code + } + }) +} +export function fetchCustomerData(PageCurrent, PageSize, name) { + return request({ + url: '', + method: 'post', + data: { + type: 1, + name: '创建合同_客户信息查询', + param: '客户名称=' + name + '=string', + Pagination: PageCurrent + '&' + PageSize + } + }) +} +export function addSubmit(num1, num2, num3, num4, num5) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '合同信息管理_开票记录_增加', + param: '项目流水号=' + num1 + '=int&客户流水号=' + num2 + '=int&开票金额=' + num3 + '=float&开票时间=' + num4 + '=string&备注=' + num5 + '=string' + } + }) +} +export function editSubmit(num2, num3, num4, num5, num6) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '合同信息管理_开票记录_修改', + param: '客户流水号=' + num2 + '=int&开票金额=' + num3 + '=float&开票时间=' + num4 + '=string&备注=' + num5 + '=string&开票记录流水号=' + num6 + '=string' + } + }) +} +export function delSubmit(num1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '合同信息管理_开票记录_删除', + param: '开票记录流水号=' + num1 + '=int' + } + }) +} diff --git a/src/api/MarketingCenter/PerformanceBond.js b/src/api/MarketingCenter/PerformanceBond.js new file mode 100644 index 00000000..aa498530 --- /dev/null +++ b/src/api/MarketingCenter/PerformanceBond.js @@ -0,0 +1,132 @@ +import request from '@/utils/request' + +export function initProject() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '合同信息管理_项目名称_总_查询' + } + }) +} +export function searchTableData1(pageCurrent, pageSize, num1, num2, num3, num4, num5, num6) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '合同信息管理_履约保证金_合同信息统计_查询', + param: '项目流水号=' + num1 + '=int&项目流水号_check=' + num2 + '=int&开始日期_check=' + num3 + '=int&结束日期_check=' + num4 + '=int&开始日期=' + num5 + '=date&结束日期=' + num6 + '=date', + Pagination: pageCurrent + '&' + pageSize + } + }) +} +export function typeOfPerformanceBond(num1) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '合同信息管理_履约保证金类型_查询', + param: '项目流水号=' + num1 + '=int' + } + }) +} +export function searchTableData2(num1) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '合同信息管理_履约保证金_查询', + param: '项目流水号=' + num1 + '=int' + } + }) +} +export function takeBack(num1, num2) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '合同信息管理_履约保证金_收回', + param: '履约保证金流水号=' + num1 + '=int&实际收回日期=' + num2 + '=string' + } + }) +} +export function executionProgressID() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '合同信息管理_执行进度_查询' + } + }) +} +export function initType() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '投标保证金管理_保证金类型查询' + } + }) +} +export function addPerformanceBond() { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '合同信息管理_履约保证金_增加', + param: '项目流水号=' + arguments[0] + '&保证金金额=' + arguments[1] + '&保证金类型流水号=' + arguments[2] + '&收回条件=' + arguments[3] + '&截止时间=' + arguments[4] + } + }) +} +export function editPerformanceBond() { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '合同信息管理_履约保证金_修改', + param: '项目流水号=' + arguments[0] + '&保证金金额=' + arguments[1] + '&保证金类型流水号=' + arguments[2] + '&收回条件=' + arguments[3] + '&截止时间=' + arguments[4] + '&履约保证金流水号=' + arguments[5] + } + }) +} +export function delPerformanceBond() { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '合同信息管理_履约保证金_删除', + param: '项目流水号=' + arguments[0] + '&履约保证金流水号=' + arguments[1] + } + }) +} +export function addPerformanceGuarantee() { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '合同信息管理_履约保证金_履约保函新增', + param: '项目流水号=' + arguments[0] + } + }) +} +export function delPerformanceGuarantee() { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '合同信息管理_履约保证金_履约保函_删除', + param: '项目流水号=' + arguments[0] + } + }) +} diff --git a/src/api/MarketingCenter/SafetyMargin.js b/src/api/MarketingCenter/SafetyMargin.js new file mode 100644 index 00000000..d2d5f1bc --- /dev/null +++ b/src/api/MarketingCenter/SafetyMargin.js @@ -0,0 +1,136 @@ +import request from '@/utils/request' + +export function initProject() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '合同信息管理_项目名称_总_查询' + } + }) +} +export function searchTable1(pageCurrent, pageSize, num1) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '安全保证金管理_安全保证金信息查询', + param: '项目流水号=' + num1 + '=int', + Pagination: pageCurrent + '&' + pageSize + } + }) +} +export function searchTable2(pageCurrent, pageSize, num1) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '安全保证金管理_扣款记录查询', + param: '安全保证金流水号=' + num1, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +export function addSafetyMargin() { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '安全保证金管理_安全保证金信息_增加', + param: '项目流水号=' + arguments[0] + '&保证金金额=' + arguments[1] + '&交付日期=' + arguments[2] + '&提前X天提醒=' + arguments[3] + '&执行进度流水号=' + arguments[4] + '&备注=' + arguments[5] + } + }) +} +export function editSafetyMargin() { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '安全保证金管理_安全保证金信息_修改', + param: '项目流水号=' + arguments[0] + '&保证金金额=' + arguments[1] + '&交付日期=' + arguments[2] + '&提前X天提醒=' + arguments[3] + '&执行进度流水号=' + arguments[4] + '&备注=' + arguments[5] + '&安全保证金流水号=' + arguments[6] + } + }) +} +export function Withdrawing() { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '安全保证金管理_扣款记录表_增加', + param: '安全保证金流水号=' + arguments[0] + '&扣款金额=' + arguments[1] + '&被扣款人=' + arguments[2] + '&扣款原因=' + arguments[3] + '&扣款日期=' + arguments[4] + } + }) +} +export function delSafetyMargin() { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '安全保证金管理_安全保证金信息_删除', + param: '安全保证金流水号=' + arguments[0] + '&项目流水号=' + arguments[1] + } + }) +} + +export function delWithdrawing() { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '安全保证金管理_扣款记录表_删除', + param: '扣款流水号=' + arguments[0] + } + }) +} +export function edtWithdrawing() { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '安全保证金管理_扣款记录表_修改', + param: '扣款流水号=' + arguments[0] + '&扣款金额新=' + arguments[1] + '&被扣款人=' + arguments[2] + '&扣款原因=' + arguments[3] + '&扣款日期=' + arguments[4] + } + }) +} +export function TakeBack() { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '安全保证金管理_安全保证金_收回', + param: '安全保证金流水号=' + arguments[0] + '&实际收回日期=' + arguments[1] + } + }) +} +export function searchTableDataProject(pageCurrent, pageSize, num1, num2, num3, num4, num5, num6) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '合同信息管理_安全保证金_合同信息统计_查询', + param: '项目流水号=' + num1 + '=int&项目流水号_check=' + num2 + '=int&开始日期_check=' + num3 + '=int&结束日期_check=' + num4 + '=int&开始日期=' + num5 + '=date&结束日期=' + num6 + '=date', + Pagination: pageCurrent + '&' + pageSize + } + }) +} +export function executionProgressID() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '合同信息管理_执行进度_查询' + } + }) +} diff --git a/src/api/Outsourcing/InterBudgetaryBudgets.js b/src/api/Outsourcing/InterBudgetaryBudgets.js new file mode 100644 index 00000000..ee365243 --- /dev/null +++ b/src/api/Outsourcing/InterBudgetaryBudgets.js @@ -0,0 +1,95 @@ +import request from '@/utils/request' + +export function machine() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_序间外协_项目查询' + } + }) +} +export function getToolNum() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_零件工艺计划_序间外协预算机床查询' + } + }) +} +// 组号 +export function getNum(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_传递后_组件名称_查询数据_查询所有组', + param: '机床流水号=' + num + } + }) +} +// 查询(未编制) +export function searchPartNum1(num1, num2, num3, num4, num5, num6, num7, num8, num9, pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_零件工艺计划_查询序间外协零件_价格预算_new', + param: '项目流水号_check=' + num1 + '&项目流水号=' + num2 + '&机床流水号_check=' + num3 + '&机床流水号=' + num4 + '&组件流水号_check=' + num5 + '&组件流水号=' + num6 + '&零件图号_check=' + num7 + '&零件图号=' + num8 + '&预算状态=' + num9, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 查询零件工艺 +export function searchTable(num, outHelp) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_零件工序_查询数据_根据工艺计划流水号_新', + param: '工艺计划流水号=' + num + '&单件是否外协=' + outHelp + } + }) +} +// 保存重量面积 +export function saveWeightArea(num, weight, area) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_零件工艺计划_修改数据_重量面积', + param: '工艺计划流水号=' + num + '&重量=' + weight + '&面积=' + area + } + }) +} +// 保存材料费 +export function saveMaterialPrice(num, price) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_零件工艺计划_修改数据_材料费', + param: '工艺计划流水号=' + num + '&材料费=' + price + } + }) +} +// 保存每行价格 +export function saveRowPrice(num1, price1, num2, price2) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_零件工序_修改数据_序间外协预算价格_系数', + param: '工序流水号=' + num1 + '&外协预算价格=' + price1 + '&工艺计划流水号=' + num2 + '&材料费=' + price2 + } + }) +} diff --git a/src/api/Outsourcing/OutFactoryMaintenance.js b/src/api/Outsourcing/OutFactoryMaintenance.js new file mode 100644 index 00000000..d46d8793 --- /dev/null +++ b/src/api/Outsourcing/OutFactoryMaintenance.js @@ -0,0 +1,51 @@ +import request from '@/utils/request' + +// 查询 +export function searchtable(pageCurrent, pageSize, num1, ManufacturerNumber, num2, ManufacturerName, num10, ManufacturerAbbreviation, num3, address, num4, roleName, num5, phNumber, num6, Fax, num7, Remarks, num8, category, num11, attention, num9, EquipmentCondition) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_基础表_外协厂家_查询数据_ 根据条件', + param: '序号_check=' + num1 + '=int&序号=' + ManufacturerNumber + '&外协厂家名称_check=' + num2 + '=int&外协厂家名称=' + ManufacturerName + '&外协厂家简称_check=' + num10 + '=int&外协厂家简称=' + ManufacturerAbbreviation + '&地址_check=' + num3 + '=int&地址=' + address + '&联系人_check=' + num4 + '=int&联系人=' + roleName + '&电话_check=' + num5 + '=int&电话=' + phNumber + '&传真_check=' + num6 + '=int&传真=' + Fax + '&备注_check=' + num7 + '=int&备注=' + Remarks + '&类别_check=' + num8 + '=int&类别=' + category + '&关注_check=' + num11 + '=int&关注=' + attention + '&设备情况_check=' + num9 + '=int&设备情况=' + EquipmentCondition, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 增加 +export function edittype(ManufacturerNumber, ManufacturerName, ManufacturerAbbreviation, address, roleName, phNumber, Fax, Remarks, category, attention, EquipmentCondition) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_基础表_外协厂家_增加数据', + param: '序号=' + ManufacturerNumber + '&外协厂家名称=' + ManufacturerName + '&外协厂家简称=' + ManufacturerAbbreviation + '&地址=' + address + '&联系人=' + roleName + '&电话=' + phNumber + '&传真=' + Fax + '&备注=' + Remarks + '&类别=' + category + '&关注=' + attention + '&设备情况=' + EquipmentCondition + } + }) +} +// 编辑 +export function handlechange(CoManufacturerFlowNumber, ManufacturerNumber, ManufacturerName, ManufacturerAbbreviation, address, roleName, phNumber, Fax, Remarks, category, attention, EquipmentCondition) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_基础表_外协厂家_修改数据', + param: '外协厂家流水号=' + CoManufacturerFlowNumber + '&序号=' + ManufacturerNumber + '&外协厂家名称=' + ManufacturerName + '&外协厂家简称=' + ManufacturerAbbreviation + '&地址=' + address + '&联系人=' + roleName + '&电话=' + phNumber + '&传真=' + Fax + '&备注=' + Remarks + '&类别=' + category + '&关注=' + attention + '&设备情况=' + EquipmentCondition + } + }) +} +// 删除 +export function handledelete(CoManufacturerFlowNumber) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_基础表_外协厂家_删除数据', + param: '外协厂家流水号=' + CoManufacturerFlowNumber + '=int' + } + }) +} diff --git a/src/api/Outsourcing/OutsourcingDataMaintenance.js b/src/api/Outsourcing/OutsourcingDataMaintenance.js new file mode 100644 index 00000000..b08f61eb --- /dev/null +++ b/src/api/Outsourcing/OutsourcingDataMaintenance.js @@ -0,0 +1,62 @@ +import request from '@/utils/request' + +// 初始化获取分类 +export function getType() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_基础表_工艺分类名称_查询数据' + } + }) +} +// 根据条件查询工艺信息 +export function getTable(check, Code, check1, Code1, pageList, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_基础表_工艺名称_查询数据_按工艺名称和分类查', + param: '工艺名称_check=' + check + '&工艺名称=' + Code + '&工艺分类流水号_check=' + check1 + '&工艺分类流水号=' + Code1, + Pagination: pageList + '&' + pageSize + } + }) +} +// 删除工艺信息 +export function delList(MaterialCode) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_基础表_工艺名称_删除数据', + param: '工艺编号=' + MaterialCode + } + }) +} +// 新增工艺信息 +export function Add(Name, ShortName) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_基础表_工艺名称_增加数据', + param: '工艺名称=' + Name + '&工艺名称简称=' + ShortName + } + }) +} +// 修改工艺信息 +export function editList(Code, Price, weightPrice, areaPrice, FlowNumber) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_基础表_工艺名称_外协价格_修改数据', + param: '工艺编号=' + Code + '&外协价格1=' + Price + '&重量价格1=' + weightPrice + '&面积价格1=' + areaPrice + '&外协价格计算标准流水号=' + FlowNumber + } + }) +} diff --git a/src/api/Outsourcing/OutsourcingInspectionEntry.js b/src/api/Outsourcing/OutsourcingInspectionEntry.js new file mode 100644 index 00000000..e5589f53 --- /dev/null +++ b/src/api/Outsourcing/OutsourcingInspectionEntry.js @@ -0,0 +1,38 @@ +import request from '@/utils/request' + +// 初始化 外协厂商 +export function initOutHelp() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_基础表_外协厂家_查询数据' + } + }) +} +// 查询主表 +export function searchTable(PageCurrent, PageSize, check1, num1, check2, num2, check3, num3) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理_外协加工任务单明细_查询数据_条件查询_新1', + param: '外协厂家_check=' + check1 + '&外协厂家流水号=' + num1 + '&表单号_check=' + check2 + '&表单号=' + num2 + '&零件图号_check=' + check3 + '&零件图号=' + num3, + Pagination: PageCurrent + '&' + PageSize + } + }) +} +// 保存 +export function saveRow(num1, inspectDate1, inspectNum1, checkDate1, qualifyNum1, inspectDate2, inspectNum2, checkDate2, qualifyNum2, inspectDate3, inspectNum3, checkDate3, qualifyNum3, num2) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理_外协加工任务单明细_修改数据_交检', + param: '外协加工任务单明细流水号=' + num1 + '&交检日期1=' + inspectDate1 + '&交检数量1=' + inspectNum1 + '&检查日期1=' + checkDate1 + '&合格数量1=' + qualifyNum1 + '&交检日期2=' + inspectDate2 + '&交检数量2=' + inspectNum2 + '&检查日期2=' + checkDate2 + '&合格数量2=' + qualifyNum2 + '&交检日期3=' + inspectDate3 + '&交检数量3=' + inspectNum3 + '&检查日期3=' + checkDate3 + '&合格数量3=' + qualifyNum3 + '&废品数量=' + num2 + } + }) +} diff --git a/src/api/Outsourcing/OutsourcingPaymentPlanManagement.js b/src/api/Outsourcing/OutsourcingPaymentPlanManagement.js new file mode 100644 index 00000000..afa0a20c --- /dev/null +++ b/src/api/Outsourcing/OutsourcingPaymentPlanManagement.js @@ -0,0 +1,111 @@ +import request from '@/utils/request' + +// 初始化 外协厂商 +export function initOutHelp() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_基础表_外协厂家_查询数据' + } + }) +} +// 查询表格数据 +export function searchtable(num2, ManufacturerName, num10, ManufacturerAbbreviation, num3, address, num4, roleName, phNumber, Fax, pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理_外协加工任务单_查询数据_付款计划', + param: '外协加工任务单_check=0&外协加工任务单流水号=0&表单号_check=' + num2 + '&表单号=' + ManufacturerName + '&外协厂家_check=' + num10 + '&外协厂家=' + ManufacturerAbbreviation + '&任务下达日期时间_check=' + num3 + '&开始时间=' + address + '&结束时间=' + num4 + '&实际付款时间段_check=' + roleName + '&实际付款开始时间=' + phNumber + '&实际付款结束时间=' + Fax + '&外协计划员编号_check=0&外协计划员编号=0', + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 修改实际付款日期 +export function payTime(num, time) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理_外协加工任务单_修改数据_实际付款时间', + param: '外协加工任务单流水号=' + num + '&实际付款时间=' + time + } + }) +} +// 修改扣款数据、扣款说明 +export function WithdrawingEdit(num, quality, plan, Other, Explain) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理_外协加工任务单_修改数据', + param: '外协加工任务单流水号=' + num + '&扣款_质量=' + quality + '&扣款_计划=' + plan + '&扣款_其他=' + Other + '&扣款说明=' + Explain + } + }) +} +// 单据状态: 1 未成交 2 成交 3 作废 +export function payment(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理_外协加工任务单_修改数据_作废', + param: '外协加工任务单流水号=' + num + '&单据状态=3' + } + }) +} +// 查询零件信息 +export function getParts(Number, pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_外协发票管理_查询数据', + param: '外协厂家流水号=' + Number + '=int', + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 增加 +export function edittype(num1, num2, num3, num4, num5, num6, num7, num8) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_外协发票管理_增加数据', + param: '外协加工任务单流水号=' + num1 + '&发票号=' + num2 + '&开户行=' + num3 + '&开票时间=' + num4 + '&开票金额=' + num5 + '&接收人=' + num6 + '&接收时间=' + num7 + '&备注=' + num8 + } + }) +} +// 编辑 +export function handlechange(num, num2, num3, num4, num5, num6, num7, num8) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_外协发票管理_编辑数据', + param: 'id=' + num + '&发票号=' + num2 + '&开户行=' + num3 + '&开票时间=' + num4 + '&开票金额=' + num5 + '&接收人=' + num6 + '&接收时间=' + num7 + '&备注=' + num8 + } + }) +} +// 删除 +export function handledelete(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_外协发票管理_删除数据', + param: 'id=' + num + } + }) +} diff --git a/src/api/Outsourcing/OutsourcingPaymentPlanManagement2.js b/src/api/Outsourcing/OutsourcingPaymentPlanManagement2.js new file mode 100644 index 00000000..5aae6564 --- /dev/null +++ b/src/api/Outsourcing/OutsourcingPaymentPlanManagement2.js @@ -0,0 +1,125 @@ +import request from '@/utils/request' + +// 初始化 外协厂商 +export function initOutHelp() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_基础表_外协厂家_查询数据' + } + }) +} +// 查询表格数据 +export function searchtable(check, num, pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_零件工艺计划_序间外协付款查询', + param: '外协厂家流水号_check=' + check + '&外协厂家流水号=' + num, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 查询发票信息 +export function getParts(Number, pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_外协发票管理_查询数据', + param: '外协厂家流水号=' + Number + '=int', + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 增加 +export function edittype(num1, num2, num3, num4, num5, num6, num7, num8) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_外协发票管理_增加数据', + param: '外协厂家流水号=' + num1 + '&发票号=' + num2 + '&开户行=' + num3 + '&开票时间=' + num4 + '&开票金额=' + num5 + '&接收人=' + num6 + '&接收时间=' + num7 + '&备注=' + num8 + } + }) +} +// 编辑 +export function handlechange(num, num2, num3, num4, num5, num6, num7, num8) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_外协发票管理_编辑数据', + param: 'id=' + num + '&发票号=' + num2 + '&开户行=' + num3 + '&开票时间=' + num4 + '&开票金额=' + num5 + '&接收人=' + num6 + '&接收时间=' + num7 + '&备注=' + num8 + } + }) +} +// 删除 +export function handledelete(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_外协发票管理_删除数据', + param: 'id=' + num + } + }) +} + +// 查询付款数据 +export function getParts3(num, pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_零件工艺计划_序间外协付款明细查询', + param: '外协厂家流水号=' + num, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 外协付款增加 +export function outPay(num1, num2, num3, num4) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_外协付款计划_增加数据', + param: '外协厂家流水号=' + num1 + '&付款金额=' + num2 + '&付款日期=' + num3 + '&备注=' + num4 + } + }) +} +// 外协付款编辑 +export function edit(num1, num2, num3) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_外协付款计划_修改数据', + param: '外协付款流水号=' + num1 + '&付款金额=' + num2 + '&备注=' + num3 + } + }) +} +// 外协付款删除 +export function handledelete3(num1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_外协付款计划_删除数据', + param: '外协付款流水号=' + num1 + } + }) +} diff --git a/src/api/Outsourcing/OutsourcingPriceBudget.js b/src/api/Outsourcing/OutsourcingPriceBudget.js new file mode 100644 index 00000000..4baf9614 --- /dev/null +++ b/src/api/Outsourcing/OutsourcingPriceBudget.js @@ -0,0 +1,77 @@ +import request from '@/utils/request' + +// 查询(未编制) +export function searchPartNum1(num1, start, end, pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '外协价格预算查询零件_MESWORK', + param: '零件图号=' + num1 + '&开始时间=' + start + '&结束时间=' + end, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 查询零件号(已编制) +export function searchPartNum2(num, start, end, pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '外协价格预算查询零件已编制_MESWORK', + param: '零件图号=' + num + '&开始时间=' + start + '&结束时间=' + end, + Pagination: pageCurrent + '&' + pageSize + } + }) +} + +// 查询零件工艺 +export function searchTable(num, outHelp) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_零件工序_查询数据_根据工艺计划流水号_新', + param: '工艺计划流水号=' + num + '&单件是否外协=' + outHelp + } + }) +} +// 保存重量面积 +export function saveWeightArea(num, weight, area) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_零件工艺计划_修改数据_重量面积', + param: '工艺计划流水号=' + num + '&重量=' + weight + '&面积=' + area + } + }) +} +// 保存材料费 +export function saveMaterialPrice(num, price) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_零件工艺计划_修改数据_材料费', + param: '工艺计划流水号=' + num + '&材料费=' + price + } + }) +} +// 保存每行价格 +export function saveRowPrice(num1, price1, num2, price2) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_零件工序_修改数据_外协预算价格_系数', + param: '工序流水号=' + num1 + '&外协预算价格=' + price1 + '&工艺计划流水号=' + num2 + '&材料费=' + price2 + } + }) +} diff --git a/src/api/Outsourcing/OutsourcingQCSearch.js b/src/api/Outsourcing/OutsourcingQCSearch.js new file mode 100644 index 00000000..53d65092 --- /dev/null +++ b/src/api/Outsourcing/OutsourcingQCSearch.js @@ -0,0 +1,39 @@ +import request from '@/utils/request' + +// 查询外协到货单列表 +export function searchTable1(...params) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理_外协到货单_查询数据', + param: `外协到货单号_check=${params[2]}&外协到货单号=${params[3]}&外协厂家_check=${params[4]}&外协厂家=${params[5]}`, + Pagination: params[0] + '&' + params[1] + } + }) +} +// 查询外协到货单明细 +export function searchTable2(...params) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理_外协到货单明细_查询数据', + param: `外协到货单流水号=${params[0]}` + } + }) +} +// 查询外协到货单明细 +export function searchTableDetail(...params) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '质检管理_外协质检数据_查询数据', + param: `检测类型=${params[0]}&外协到货单明细流水号=${params[1]}` + } + }) +} diff --git a/src/api/Outsourcing/OutsourcingStatus.js b/src/api/Outsourcing/OutsourcingStatus.js new file mode 100644 index 00000000..3ca5a933 --- /dev/null +++ b/src/api/Outsourcing/OutsourcingStatus.js @@ -0,0 +1,15 @@ +import request from '@/utils/request' + +// 查询外协零件状态 +export function searchOutHelpState(PageCurrent, PageSize, check, num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理_外协零件状态_查询数据', + param: '零件图号_check=' + check + '&零件图号=' + num + '&外协零件状态_check=0&外协零件状态=0', + Pagination: PageCurrent + '&' + PageSize + } + }) +} diff --git a/src/api/Outsourcing/OutsourcingTaskChanges.js b/src/api/Outsourcing/OutsourcingTaskChanges.js new file mode 100644 index 00000000..322d6cb5 --- /dev/null +++ b/src/api/Outsourcing/OutsourcingTaskChanges.js @@ -0,0 +1,178 @@ +import request from '@/utils/request' + +export function getTable(checked, contractNumber, checked1, manufacturers, checked2, time1, time2) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理_外协加工任务单_查询数据', + param: '外协加工任务单_check=0=int&表单号_check=' + checked + '=int&表单号=' + contractNumber + '=string&外协厂家_check=' + checked1 + '=int&外协厂家=' + manufacturers + '=int&任务下达日期_时间段=' + checked2 + '=int&开始时间=' + time1 + '&结束时间=' + time2 + '&单据状态_check=1=int&单据状态=2=int&外协员编号_check=1=int&外协员编号=1180=int' + } + }) +} +export function getData1() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_基础表_外协厂家_查询数据' + } + }) +} +export function getTable1(check, partNumber) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_零件工艺计划_查询数据_外协_新', + param: '零件图号_check=' + check + '=int&零件图号=' + partNumber + '=string' + } + }) +} +export function getprocedure(processPlan, single) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_零件工序_查询数据_根据工艺计划流水号_工艺名称简称_新', + param: '工艺计划流水号=' + processPlan + '=int&单件是否外协=' + single + '=int' + } + }) +} +export function searchManufactor(name) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_基础表_外协厂家_查询数据_ 根据条件', + param: '序号_check=0=bit&序号=' + ' ' + '=string&外协厂家名称_check=1=bit&外协厂家名称=' + name + '=string&外协厂家简称_check=0=bit&外协厂家简称=' + ' ' + '=string&地址_check=0=bit&地址=' + ' ' + '=string&联系人_check=0=bit&联系人=' + ' ' + '=string&电话_check=0=bit&电话=' + ' ' + '=string&传真_check=0=bit&传真=' + ' ' + '=string&备注_check=0=bit&备注=' + ' ' + '=string&类别_check=0=bit&类别=' + ' ' + '=string&关注_check=0=bit&关注=' + ' ' + '=string&设备情况_check=0=bit&设备情况=' + ' ' + '=string' + } + }) +} +export function spareParts(processNum, single) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_零件工序_查询数据_根据工艺计划流水号_全部_新', + param: '工艺计划流水号=' + processNum + '=int&工序数量=21=int&单件是否外协=' + single + '=int' + } + }) +} +export function spareParts1(processNum, single) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_零件工序_查询数据_根据工艺计划流水号_全部_新', + param: '工艺计划流水号=' + processNum + '=int&工序数量=31=int&单件是否外协=' + single + '=int' + } + }) +} +export function addTable(contractNumber, manufacturers, time, freight) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理_外协加工任务单_增加数据', + param: '表单号=' + contractNumber + '=string&外协计划员编号=1180=int&外协厂家=' + manufacturers + '=int&任务下达日期=' + time + '=string&运费=' + freight + '=int' + } + }) +} + +export function deleteData(Number) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理_外协加工任务单_删除数据', + param: '外协加工任务单流水号=' + Number + '=int' + } + }) +} +export function deleteData1(Number) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理_外协加工任务单明细_删除数据', + param: '外协加工任务单明细流水号=' + Number + '=int' + } + }) +} +export function insertParts(processNum, Number) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理_外协加工任务单明细_增加数据', + param: '外协加工任务单流水号=' + Number + '=int&工艺计划流水号=' + processNum + '=int' + } + }) +} +export function getParts(Number) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理_外协加工任务单明细_查询数据', + param: '外协加工任务单流水号=' + Number + '=int' + } + }) +} +export function getNumber(time) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理_外协加工任务单_查询数据_单据编号', + param: '任务下达日期=' + time + '=string&表单号=1=string=output' + } + }) +} +export function getPrice(Number, money, money1, money2, money3) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理_外协加工任务单明细_修改数据', + param: '外协加工任务单明细流水号=' + Number + '=int&加工价格_预算=' + money + '&加工价格_成交=' + money1 + '&材料价格_价格=' + money2 + '&其他价格=' + money3 + '&入库标志=1=int&交检数量=0=int&合格数量=0=int&回用数量=0=int&废品数量=0=int' + } + }) +} +export function editData(Number, manufacturers, freight, documentStatus, sign, Explain) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理_外协加工任务单_修改数据', + param: '外协加工任务单流水号=' + Number + '=int&外协厂家=' + manufacturers + '=int&运费=' + freight + '=int&单据状态=' + documentStatus + '=int&入库标志=' + sign + '=int&扣款说明=' + Explain + } + }) +} +export function editData1(Number, manufacturers, freight, documentStatus, sign, Explain) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理_外协加工任务单_修改数据', + param: '外协加工任务单流水号=' + Number + '=int&外协厂家=' + manufacturers + '=int&运费=' + freight + '=int&单据状态=' + documentStatus + '=int&入库标志=' + sign + '=int&扣款说明=' + Explain + '&扣款_质量=0=int&扣款_计划=0=int&扣款_其他=0=int' + } + }) +} diff --git a/src/api/Outsourcing/OutsourcingTaskExecution.js b/src/api/Outsourcing/OutsourcingTaskExecution.js new file mode 100644 index 00000000..a445f1f5 --- /dev/null +++ b/src/api/Outsourcing/OutsourcingTaskExecution.js @@ -0,0 +1,194 @@ +import request from '@/utils/request' + +// 初始化获取已生成的外协加工任务单 +export function getTable(checked, contractNumber, checked1, manufacturers, checked2, time1, time2, num, pageCurrent, pageSize, documentStatus, num3) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理_外协加工任务单_查询数据', + param: '外协加工任务单_check=0&外协加工任务单流水号=null&表单号_check=' + checked + '&表单号=' + contractNumber + '&外协厂家_check=' + checked1 + '&外协厂家=' + manufacturers + '&任务下达日期_时间段=' + checked2 + '&开始时间=' + time1 + '&结束时间=' + time2 + '&单据状态_check=' + num3 + '&单据状态=' + documentStatus + '&外协员编号_check=0&外协员编号=' + num, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 初始化获取外协厂家数据 +export function getData1() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_基础表_外协厂家_查询数据' + } + }) +} +// 初始化获取已预算价格,未选入到外协加工任务单的零件 +export function getTable1(check, partNumber) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_零件工艺计划_查询数据_外协_新', + param: '零件图号_check=' + check + '=int&零件图号=' + partNumber + '=string' + } + }) +} +// 获取零件工序信息(零件号表中) +export function getprocedure(processPlan, single) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_零件工序_查询数据_根据工艺计划流水号_工艺名称简称_新', + param: '工艺计划流水号=' + processPlan + '=int&单件是否外协=' + single + '=int' + } + }) +} +// 外协厂家查询 +export function searchManufactor(check, name) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_基础表_外协厂家_查询数据_ 根据条件', + param: '序号_check=0=bit&序号=' + ' ' + '=string&外协厂家名称_check=' + check + '=bit&外协厂家名称=' + name + '&外协厂家简称_check=0=bit&外协厂家简称=' + ' ' + '=string&地址_check=0=bit&地址=' + ' ' + '=string&联系人_check=0=bit&联系人=' + ' ' + '=string&电话_check=0=bit&电话=' + ' ' + '=string&传真_check=0=bit&传真=' + ' ' + '=string&备注_check=0=bit&备注=' + ' ' + '=string&类别_check=0=bit&类别=' + ' ' + '=string&关注_check=0=bit&关注=' + ' ' + '=string&设备情况_check=0=bit&设备情况=' + ' ' + '=string' + } + }) +} +// 确定价格 +export function spareParts(processNum, single) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_零件工序_查询数据_根据工艺计划流水号_全部_新', + param: '工艺计划流水号=' + processNum + '=int&工序数量=21=int&单件是否外协=' + single + '=int' + } + }) +} +// 暂未启用 +export function spareParts1(processNum, single) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_零件工序_查询数据_根据工艺计划流水号_全部_新', + param: '工艺计划流水号=' + processNum + '=int&工序数量=31=int&单件是否外协=' + single + '=int' + } + }) +} +// 新建外协加工任务单 +export function addTable(contractNumber, personNum, manufacturers, time, freight) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理_外协加工任务单_增加数据', + param: '表单号=' + contractNumber + '=string&外协计划员编号=' + personNum + '&外协厂家=' + manufacturers + '=int&任务下达日期=' + time + '=string&运费=' + freight + '=int' + } + }) +} +// 外协加工任务单修改 +export function editData(Number, manufacturers, freight, Explain) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理_外协加工任务单_修改数据', + param: '外协加工任务单流水号=' + Number + '=int&外协厂家=' + manufacturers + '=int&运费=' + freight + '=int&扣款说明=' + Explain + } + }) +} +// 成交 +export function editData1(Number, manufacturers, freight, Explain) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理_外协加工任务单_修改数据', + param: '外协加工任务单流水号=' + Number + '=int&外协厂家=' + manufacturers + '=int&运费=' + freight + '=int&单据状态=2&入库标志=1&扣款说明=' + Explain + '&扣款_质量=0&扣款_计划=0&扣款_其他=0' + } + }) +} +// 删除外协加工任务单 +export function deleteData(Number) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理_外协加工任务单_删除数据', + param: '外协加工任务单流水号=' + Number + '=int' + } + }) +} +// 移除零件 +export function deleteData1(Number) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理_外协加工任务单明细_删除数据', + param: '外协加工任务单明细流水号=' + Number + '=int' + } + }) +} +// 选入零件 +export function insertParts(processNum, Number) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理_外协加工任务单明细_增加数据', + param: '外协加工任务单流水号=' + Number + '=int&工艺计划流水号=' + processNum + '=int' + } + }) +} +// 查询任务单明细 +export function getParts(Number) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理_外协加工任务单明细_查询数据', + param: '外协加工任务单流水号=' + Number + '=int' + } + }) +} +// 数据库生产表单号 +export function getNumber(time) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理_外协加工任务单_查询数据_单据编号', + param: '任务下达日期=' + time + '=string&表单号=1=string=output' + } + }) +} +// 计算价格 +export function getPrice(Number, money, money1, money2, money3) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理_外协加工任务单明细_修改数据', + param: '外协加工任务单明细流水号=' + Number + '=int&加工价格_预算=' + money + '&加工价格_成交=' + money1 + '&材料价格_价格=' + money2 + '&其他价格=' + money3 + '&入库标志=1=int&交检数量=0=int&合格数量=0=int&回用数量=0=int&废品数量=0=int' + } + }) +} diff --git a/src/api/Outsourcing/OutsourcingTaskQuery.js b/src/api/Outsourcing/OutsourcingTaskQuery.js new file mode 100644 index 00000000..ac006459 --- /dev/null +++ b/src/api/Outsourcing/OutsourcingTaskQuery.js @@ -0,0 +1,216 @@ +import request from '@/utils/request' + +// 单据状态: 1 未成交 2 成交 3 作废 +export function shouhuo(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理_外协加工任务单_修改数据_作废', + param: '外协加工任务单流水号=' + num + '&单据状态=3' + } + }) +} +// 初始化获取已生成的外协加工任务单初始化获取已生成的外协加工任务单 +export function getTable(checked, contractNumber, checked1, manufacturers, checked2, time1, time2, num, pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理_外协加工任务单_查询数据_查询页', + param: '外协加工任务单_check=0&外协加工任务单流水号=null&表单号_check=' + checked + '&表单号=' + contractNumber + '&外协厂家_check=' + checked1 + '&外协厂家=' + manufacturers + '&任务下达日期_时间段=' + checked2 + '&开始时间=' + time1 + '&结束时间=' + time2 + '&单据状态_check=0&单据状态=1&外协员编号_check=0&外协员编号=' + num, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 初始化获取外协厂家数据 +export function getData1() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_基础表_外协厂家_查询数据' + } + }) +} +// 初始化获取已预算价格,未选入到外协加工任务单的零件 +export function getTable1(check, partNumber) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_零件工艺计划_查询数据_外协_新', + param: '零件图号_check=' + check + '=int&零件图号=' + partNumber + '=string' + } + }) +} +// 获取零件工序信息(零件号表中) +export function getprocedure(processPlan, single) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_零件工序_查询数据_根据工艺计划流水号_工艺名称简称_新', + param: '工艺计划流水号=' + processPlan + '=int&单件是否外协=' + single + '=int' + } + }) +} +// 外协厂家查询 +export function searchManufactor(name) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_基础表_外协厂家_查询数据_ 根据条件', + param: '序号_check=0=bit&序号=' + ' ' + '=string&外协厂家名称_check=1=bit&外协厂家名称=' + name + '=string&外协厂家简称_check=0=bit&外协厂家简称=' + ' ' + '=string&地址_check=0=bit&地址=' + ' ' + '=string&联系人_check=0=bit&联系人=' + ' ' + '=string&电话_check=0=bit&电话=' + ' ' + '=string&传真_check=0=bit&传真=' + ' ' + '=string&备注_check=0=bit&备注=' + ' ' + '=string&类别_check=0=bit&类别=' + ' ' + '=string&关注_check=0=bit&关注=' + ' ' + '=string&设备情况_check=0=bit&设备情况=' + ' ' + '=string' + } + }) +} +export function spareParts(processNum, single) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_零件工序_查询数据_根据工艺计划流水号_全部_新', + param: '工艺计划流水号=' + processNum + '=int&工序数量=21=int&单件是否外协=' + single + '=int' + } + }) +} +// 暂未启用 +export function spareParts1(processNum, single) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_零件工序_查询数据_根据工艺计划流水号_全部_新', + param: '工艺计划流水号=' + processNum + '=int&工序数量=31=int&单件是否外协=' + single + '=int' + } + }) +} +// 新建外协加工任务单 +export function addTable(contractNumber, personNum, manufacturers, time, freight) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理_外协加工任务单_增加数据', + param: '表单号=' + contractNumber + '=string&外协计划员编号=' + personNum + '&外协厂家=' + manufacturers + '=int&任务下达日期=' + time + '=string&运费=' + freight + '=int' + } + }) +} +// 外协加工任务单修改 +export function editData(Number, manufacturers, freight, documentStatus, sign, Explain) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理_外协加工任务单_修改数据', + param: '外协加工任务单流水号=' + Number + '=int&外协厂家=' + manufacturers + '=int&运费=' + freight + '=int&单据状态=' + documentStatus + '=int&入库标志=' + sign + '=int&扣款说明=' + Explain + } + }) +} +// 成交 +export function editData1(Number, manufacturers, freight, documentStatus, sign, Explain) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理_外协加工任务单_修改数据', + param: '外协加工任务单流水号=' + Number + '=int&外协厂家=' + manufacturers + '=int&运费=' + freight + '=int&单据状态=' + documentStatus + '=int&入库标志=' + sign + '=int&扣款说明=' + Explain + '&扣款_质量=0&扣款_计划=0&扣款_其他=0' + } + }) +} +// 删除外协加工任务单 +export function deleteData(Number) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理_外协加工任务单_删除数据', + param: '外协加工任务单流水号=' + Number + '=int' + } + }) +} +// 移除零件 +export function deleteData1(Number) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理_外协加工任务单_修改数据_作废', + param: '外协加工任务单明细流水号=' + Number + '&单据状态=4' + } + }) +} +// 零件到货 +export function Arrival(Number) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理_外协零件_到货', + param: `外协加工任务单明细流水号组=${Number}` + } + }) +} +// 查询任务单明细 +export function getParts(Number) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理_外协加工任务单明细_查询数据', + param: '外协加工任务单流水号=' + Number + '=int' + } + }) +} +// 数据库生产表单号 +export function getNumber(time) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理_外协加工任务单_查询数据_单据编号', + param: '任务下达日期=' + time + '=string&表单号=1=string=output' + } + }) +} +// 计算价格 +export function getPrice(Number, money, money1, money2, money3) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理_外协加工任务单明细_修改数据', + param: '外协加工任务单明细流水号=' + Number + '=int&加工价格_预算=' + money + '&加工价格_成交=' + money1 + '&材料价格_价格=' + money2 + '&其他价格=' + money3 + '&入库标志=1=int&交检数量=0=int&合格数量=0=int&回用数量=0=int&废品数量=0=int' + } + }) +} +export function handlechange(Number, code) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_零件工序_修改数据_工作者', + param: '工序流水号=' + Number + '&工作者考勤编号=' + code + } + }) +} diff --git a/src/api/Outsourcing/OutsourcingTimeBalance.js b/src/api/Outsourcing/OutsourcingTimeBalance.js new file mode 100644 index 00000000..6657ebf1 --- /dev/null +++ b/src/api/Outsourcing/OutsourcingTimeBalance.js @@ -0,0 +1,237 @@ +import request from '@/utils/request' + +// 初始化项目名称 +export function initProject() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_传递后_项目名称_查询数据', + param: '考核状态=5' + } + }) +} +// 查询机床号 +export function searchMachine(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_传递后_机床名称_查询数据', + param: '项目流水号=' + num + '&是否传递=2&考核状态=5&工艺任务分配状态=2&定额任务分配状态=2&单件是否外协=2' + } + }) +} +// 查询组号 +export function searchGroup(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_传递后_组件名称_查询数据', + param: '机床流水号=' + num + '&是否传递=2&考核状态=5&工艺任务分配状态=2&定额任务分配状态=2&单件是否外协=2' + } + }) +} +// 查询表1 +export function searchTable1(PageCurrent, PageSize, check1, num1, check2, num2, check3, num3, check4, num4) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_零件工序_查询数据_已编制工序的全部零件及工序_New', + param: '项目流水号_check=' + check1 + '&项目流水号=' + num1 + '&机床流水号_check=' + check2 + '&机床流水号=' + num2 + '&组件流水号_check=' + check3 + '&组件流水号=' + num3 + '&零件图号_check=' + check4 + '&零件图号=' + num4 + '&是否查询全部数据=1&单件是否外协=2&考核状态=5', + Pagination: PageCurrent + '&' + PageSize + } + }) +} +// 判断上班状态 +export function judgeWork(date) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_基础表_工作日历_获得状态', + param: '工作日期=' + date + } + }) +} +// 修改机加工开始结束时间 +export function makePartPlan(num, start, end) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_零件工艺计划_机加工时间_修改数据', + param: '工艺计划流水号=' + num + '&机加工开始时间=' + start + '&机加工结束时间=' + end + } + }) +} +// 制定零件计划 计算工序时间(猜测:机加工开始时间和计划开始时间应该是同一个) +export function computeProcedureTime(num, start, end) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_零件工序_修改数据_计算工序计划时间', + param: '工艺计划流水号=' + num + '&计划开始时间=' + start + '&计划结束时间=' + end + } + }) +} +// 板焊结束 +export function boardWeldEnd(num, time) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_零件工艺计划_修改数据_修改板焊工段计划完成时间', + param: '工艺计划流水号=' + num + '&板焊工段计划完成时间=' + time + } + }) +} +// 取消外协 +export function cancelOut(num, num1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_零件工艺计划_划为外协', + param: '工艺计划流水号=' + num + '&单件是否外协=1&单件是否外协分类=' + num1 + } + }) +} +// 查询工序能力 +export function searchProcessAbility(start, end, PageCurrent, PageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_计划平衡表_各个工序总加工能力_查询数据_新', + param: '查询开始日期=' + start + '&查询结束日期=' + end + '&单件是否外协=2', + Pagination: PageCurrent + '&' + PageSize + } + }) +} +// 查询工序工时 +export function searchProcedureTime(time, num1, PageCurrent, PageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_零件工序_查询数据_工序工时', + param: '计划日期_check=1&计划日期=' + time + '&工艺编号_check=1&工艺编号=' + num1 + '&组件流水号_check=0&组件流水号=0&单件是否外协=2', + Pagination: PageCurrent + '&' + PageSize + // check1, time, check2, num1, check3, num2 + // param: '计划日期_check=' + check1 + '&计划日期=' + time + '&工艺编号_check=' + check2 + '&工艺编号=' + num1 + '&组件流水号_check=' + check3 + '&组件流水号=' + num2 + '&单件是否外协=2' + } + }) +} +// 调整单件进度(↑) +export function adjustSingleProgress(num, start, end) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_零件工艺计划_机加工时间_修改数据', + param: '工艺计划流水号=' + num + '&机加工开始时间=' + start + '&机加工结束时间=' + end + } + }) +} +// 确定零件进度(↑) +export function confirmPartProgress(num, num1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_零件工艺计划_划为外协', + param: '工艺计划流水号=' + num + '&单件是否外协=1&单件是否外协分类=' + num1 + } + }) +} +// 确定零件计划 +export function confirmPartPlan(num, num1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_零件工艺计划_划为外协_系数', + param: '工艺计划流水号=' + num + '&单件是否外协=2&单件是否外协分类=' + num1 + } + }) +} +// 查询表1(零件图号等) +export function searchTable11(PageCurrent, PageSize, check1, num1, check2, num2, check3, num3, check4, num4) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_零件工序_查询数据_已编制工序的全部零件及工序_Newdistinct', + param: '项目流水号_check=' + check1 + '&项目流水号=' + num1 + '&机床流水号_check=' + check2 + '&机床流水号=' + num2 + '&组件流水号_check=' + check3 + '&组件流水号=' + num3 + '&零件图号_check=' + check4 + '&零件图号=' + num4 + '&是否查询全部数据=1&单件是否外协=2&考核状态=5', + Pagination: PageCurrent + '&' + PageSize + } + }) +} +// 查询表1(30列) +export function searchTable12(num4) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_零件工序_查询数据_已编制工序的全部零件及工序_NewNew', + param: '零件图号=' + num4 + } + }) +} +// 点击表格外协更改状态 +export function table1Out(num1, num3) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_零件工艺计划_外协平衡', + param: '工艺计划流水号=' + num1 + '&是否预计外协=1&是否预计外协分类=' + num3 + } + }) +} +// 修改零件着急状态 +export function zhaoji(num, a) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_零件工艺计划_修改数据_修改零件着急状态', + param: '工艺计划流水号=' + num + '&零件类型=' + a + } + }) +} +// 修改加工件合格时间 +export function machiningQualified(num, a) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_零件工艺计划_修改数据_修改加工件合格时间', + param: '工艺计划流水号=' + num + '&加工件合格时间=' + a + } + }) +} + diff --git a/src/api/Outsourcing/PreorderAssociation.js b/src/api/Outsourcing/PreorderAssociation.js new file mode 100644 index 00000000..eabfa6ff --- /dev/null +++ b/src/api/Outsourcing/PreorderAssociation.js @@ -0,0 +1,82 @@ +import request from '@/utils/request' + +export function machine() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_序间外协_项目查询' + } + }) +} +export function getToolNum() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_零件工艺计划_序间外协机床查询' + } + }) +} +// 组号 +export function getNum(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_传递后_组件名称_查询数据_查询所有组', + param: '机床流水号=' + num + } + }) +} +// 查询表1 +export function searchTable(num1, num2, num3, num4, num5, num6, check, num7, pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_零件工艺计划_查询数据_状态_新', + param: '项目流水号_check=' + num1 + '&项目流水号=' + num2 + '&机床流水号_check=' + num3 + '&机床流水号=' + num4 + '&组件流水号_check=' + num5 + '&组件流水号=' + num6 + '&零件图号_check=' + check + '&零件图号=' + num7 + '&考核状态_check=0&考核状态=0&单件是否外协_check=1&单件是否外协=1&时间=0&机加工开始时间=0&机加工结束时间=0&零件类型=0', + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 查询表2 +export function searchTable2(num1) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_零件工序_查询数据_工序工时_划单序外协', + param: '工艺计划流水号=' + num1 + } + }) +} +// 序间外协状态更改 +export function edit(num1, num2) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_零件工序_修改数据_单序外协', + param: '工序流水号=' + num1 + '&工序间是否外协=' + num2 + } + }) +} +export function edit2(num1, num2, num3) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_零件工艺计划_序间外协转换', + param: '工序流水号=' + num1 + '&工艺计划流水号=' + num2 + '&是否外协=' + num3 + } + }) +} diff --git a/src/api/Outsourcing/UnqualifiedTreatment.js b/src/api/Outsourcing/UnqualifiedTreatment.js new file mode 100644 index 00000000..03b64f4d --- /dev/null +++ b/src/api/Outsourcing/UnqualifiedTreatment.js @@ -0,0 +1,38 @@ +import request from '@/utils/request' + +// 初始化 外协厂商 +export function initOutHelp() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_基础表_外协厂家_查询数据' + } + }) +} +// 查询主表 +export function searchTable(PageCurrent, PageSize, check1, num1, check2, num2, check3, num3, check4, num4, check5, num5) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理_外协加工任务单明细_查询数据_条件查询_新1', + param: '外协厂家_check=' + check1 + '&外协厂家流水号=' + num1 + '&表单号_check=' + check2 + '&表单号=' + num2 + '&零件图号_check=' + check3 + '&零件图号=' + num3 + '&任务下达日期_年_check=' + check4 + '&任务下达日期_年=' + num4 + '&任务下达日期_月_check=' + check5 + '&任务下达日期_月=' + num5, + Pagination: PageCurrent + '&' + PageSize + } + }) +} +// 编辑不合格数量 +export function editList(num, num1, num2) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理_外协加工任务单明细_修改数据_不合格处理', + param: '外协加工任务单明细流水号=' + num + '&废品数量=' + num1 + '&不合格处理方式=' + num2 + } + }) +} diff --git a/src/api/ProjectManagement/progress.js b/src/api/ProjectManagement/progress.js new file mode 100644 index 00000000..9048515f --- /dev/null +++ b/src/api/ProjectManagement/progress.js @@ -0,0 +1,12 @@ +import request from '@/utils/request' + +export function projectSelect() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_项目名称_查询数据' + } + }) +} diff --git a/src/api/ProjectManagement/summarize.js b/src/api/ProjectManagement/summarize.js new file mode 100644 index 00000000..93a87cec --- /dev/null +++ b/src/api/ProjectManagement/summarize.js @@ -0,0 +1,36 @@ +import request from '@/utils/request' + +export function projectSelect() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_项目名称_查询数据' + } + }) +} + +export function getTableData(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '项目总结_查询数据', + param: `项目流水号=${num}` + } + }) +} + +export function editTableData(num, projectValue, projectName, projectNum, producer, reviewer, projectManager, makeTime, startTime, planTime, accturalTime, timeAnalysis, planCost, accturalCost, costAnalysis, planResult, accturalResult, notResult, resultAnalysis, summary, projectManagerDate, reviewerDate) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '项目总结_编辑数据', + param: `项目总结流水号=${num}&项目流水号=${projectValue}&项目名称=${projectName}&项目编号=${projectNum}&制作人=${producer}&审核人=${reviewer}&项目经理=${projectManager}&制作日期=${makeTime}&开始时间=${startTime}&计划完成日期=${planTime}&实际完成日期=${accturalTime}&时间分析=${timeAnalysis}&计划费用=${planCost}&实际费用=${accturalCost}&成本分析=${costAnalysis}&计划交付结果=${planResult}&实际交付结果=${accturalResult}&未交付结果=${notResult}&交付结果分析=${resultAnalysis}&项目经验教训总结=${summary}&项目经理签字日期=${projectManagerDate}&审核人签字日期=${reviewerDate}` + } + }) +} diff --git a/src/api/PurchasingCenter/ArrivalStateSearch.js b/src/api/PurchasingCenter/ArrivalStateSearch.js new file mode 100644 index 00000000..03a7851e --- /dev/null +++ b/src/api/PurchasingCenter/ArrivalStateSearch.js @@ -0,0 +1,38 @@ +import request from '@/utils/request' + +// 初始化合同 +export function initArrivalStateContact() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_采购请款表_查询数据' + } + }) +} +// 查询到货情况 +export function searchArrivalState(pageCurrent, pageSize, check1, num, check2, name) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_到货情况_查询数据', + param: `采购合同流水号_check=${check1}&采购合同流水号=${num}&供应商名称_check=${check2}&供应商名称=${name}`, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 查询到货情况 +export function searchArrivalNum(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_合同物料到货情况_查询数据', + param: `采购合同流水号=${num}` + } + }) +} diff --git a/src/api/PurchasingCenter/BacklogGoodsAnalysis.js b/src/api/PurchasingCenter/BacklogGoodsAnalysis.js new file mode 100644 index 00000000..b0e934a8 --- /dev/null +++ b/src/api/PurchasingCenter/BacklogGoodsAnalysis.js @@ -0,0 +1,40 @@ +import request from '@/utils/request' + +// 查询库存量 +export function searchMaterialNum(pageCurrent, pageSize, check1, val1, check2, val2, check3, val3) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_物料与货位对照_查询数据', + param: `物料名称_check=${check1}&物料名称=${val1}&物料规格_check=${check2}&物料规格=${val2}&物料型号_check=${check3}&物料型号=${val3}`, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 查询滞货库存量 +export function searchBacklogNum(pageCurrent, pageSize, check1, val1, check2, val2, check3, val3) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_滞货物料与货位对照_查询数据', + param: `物料名称_check=${check1}&物料名称=${val1}&物料规格_check=${check2}&物料规格=${val2}&物料型号_check=${check3}&物料型号=${val3}`, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 转为滞货 +export function submitTurn(...params) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_转为滞货', + param: `物料流水号=${params[0]}&转滞货数量=${params[1]}&物料与货位对照流水号=${params[2]}&货位流水号=${params[3]}` + } + }) +} diff --git a/src/api/PurchasingCenter/BacklogGoodsPrepare.js b/src/api/PurchasingCenter/BacklogGoodsPrepare.js new file mode 100644 index 00000000..bdd1b2d2 --- /dev/null +++ b/src/api/PurchasingCenter/BacklogGoodsPrepare.js @@ -0,0 +1,51 @@ +import request from '@/utils/request' + +// 查询滞货使用记录 +export function searchBacklogUseRecord(pageCurrent, pageSize, status) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_滞货使用记录_查询数据', + param: '关联状态=' + status, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 查询滞货使用记录 +export function searchBacklogLocation(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_滞货物料与货位_查询数据', + param: '物料流水号=' + num + } + }) +} +// 提交关联 +export function submitConnectBacklog(...params) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_滞货物料关联_增加数据', + param: `滞货使用流水号=${params[0]}&物料与货位对照流水号组=${params[1]}&关联数量组=${params[2]}` + } + }) +} +// 查询滞货关联明细 +export function searchBacklogConnectDetail(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_滞货关联明细_查询数据', + param: '滞货使用流水号=' + num + } + }) +} diff --git a/src/api/PurchasingCenter/CreateInquirySheet.js b/src/api/PurchasingCenter/CreateInquirySheet.js new file mode 100644 index 00000000..45b96472 --- /dev/null +++ b/src/api/PurchasingCenter/CreateInquirySheet.js @@ -0,0 +1,334 @@ +import request from '@/utils/request' + +// 查询全部未询价的标准件和外购件 +export function getExport1(num) { + return request({ + url: '', + method: 'post', + data: { + type: '3', + name: ` SELECT distinct + [项目名称] + ,[机床图号] + ,[组号] + ,[姓名] + ,[人员编号] + ,[物料名称] + ,[物料规格] + ,[物料型号] + ,[零件数量] + ,[询价状态编号] + ,[备注] + ,[供货商] + ,[使用滞货数量] + ,[任务分配时间] + ,[零件数量] - [使用滞货数量] as 待询价数量 + FROM MRP_计划订单_组件零件清单_标准件和外购件_视图 + where 询价状态编号 = 1 and 人员编号 = ${num}` + } + }) +} +// 查询全部未询价的基本件 +export function getExport2(num) { + return request({ + url: '', + method: 'post', + data: { + type: '3', + name: ` SELECT distinct [项目名称] + ,[机床图号] + ,[组号] + ,[材料] + ,[零件名称] + ,[零件图号] + ,[备注] + ,[供货商] + ,[规格] + ,[零件数量] as 待询价数量 + ,[询价状态编号] + ,[姓名] + ,[人员编号] + ,[任务分配时间] + FROM MRP_计划订单_组件零件清单_基本件_视图 + where 询价状态编号 = 1 and 人员编号=${num}` + } + }) +} +// 查询分配后的标准件和外购件 +export function searchMaterial(pageCurrent, pageSize, num1, check1, val1, check2, val2, check3, val3, person, check4, val4, check5, val5, check6, val6, val7) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_采购部采购_查询物料_分配后', + param: `物料状态编号=${num1}&物料名称_check=${check1}&物料名称=${val1}&物料规格_check=${check2}&物料规格=${val2}&物料型号_check=${check3}&物料型号=${val3}&人员编号=${person}&项目流水号_check=${check4}&项目流水号=${val4}&机床流水号_check=${check5}&机床流水号=${val5}&组件流水号_check=${check6}&组件流水号=${val6}&零件类型=${val7}`, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 查询分配后的基本件 +export function searchPart(pageCurrent, pageSize, num1, check1, val1, check2, val2, check3, val3, person, check4, val4, check5, val5, check6, val6) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_采购部采购_查询物料_基本件_分配后', + param: `物料状态编号=${num1}&零件图号_check=${check1}&零件图号=${val1}&零件名称_check=${check2}&零件名称=${val2}&零件规格_check=${check3}&零件规格=${val3}&人员编号=${person}&项目流水号_check=${check4}&项目流水号=${val4}&机床流水号_check=${check5}&机床流水号=${val5}&组件流水号_check=${check6}&组件流水号=${val6}`, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 查询供应商 +export function searchSupplier(check1, value1, check2, value2, check3, value3, check4, value4, check5, value5, check6, value6, check7, value7, check8, value8, check9, value9, check10, value10, check11, value11, check12, value12) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_供应商_查询数据_根据条件', + param: '供应商名称_check=' + check1 + '&供应商名称=' + value1 + '&企业性质_check=' + check2 + '&企业性质=' + value2 + '&创立日期_check=' + check3 + '&创立日期=' + value3 + '&注册资本_check=' + check4 + '&注册资本=' + value4 + '&税号_check=' + check5 + '&税号=' + value5 + '&电子信箱_check=' + check6 + '&电子信箱=' + value6 + '&地址_check=' + check7 + '&地址=' + value7 + '&帐号_check=' + check8 + '&帐号=' + value8 + '&开户行_check=' + check9 + '&开户行=' + value9 + '&电话号码_check=' + check10 + '&电话号码=' + value10 + '&传真_check=' + check11 + '&传真=' + value11 + '&货期_check=' + check12 + '&货期=' + value12 + } + }) +} +// 查询询价单 +export function searchCreateInquirySheet(pageCurrent, pageSize, check1, name, check2, num, id) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_询价单_查询数据', + param: `供应商名称_check=${check1}&供应商名称=${name}&询价单编号_check=${check2}&询价单编号=${num}&采购员流水号_check=1&采购员流水号=${id}`, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 查询询价单--不分页 +export function searchCreateInquirySheet2() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_询价单_查询数据', + param: `供应商名称_check=0&供应商名称=0&询价单编号_check=0&询价单编号=0&采购员流水号_check=0&采购员流水号=0` + } + }) +} +// 查询询价单明细 +export function searchSheetDetail(num2) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_询价单明细_查询数据', + param: '询价单流水号=' + num2 + } + }) +} +// 创建询价单 +export function createInquirySheet(num1, num2, remark, id) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_询价单_增加数据', + param: `询价单编号=${num1}&采购员=${id}&供应商流水号=${num2}&备注=${remark}&identity=1=output` + } + }) +} +// 删除询价单 +export function deleteInquirySheet(num1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_询价单_删除数据', + param: '询价单流水号=' + num1 + } + }) +} +// 将标准件和外购件追加现有询价单 +export function addInquirySheet1(num1, num2, num3) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_询价单明细_增加数据', + param: '询价单流水号=' + num1 + '&组件零件流水号=' + num2 + '&数量=' + num3 + } + }) +} +// 将基本件追加现有询价单 +export function addInquirySheet2(num1, num2, num3) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_询价单明细_增加数据', + param: '询价单流水号=' + num1 + '&组件零件基本件流水号=' + num2 + '&数量=' + num3 + } + }) +} +// 移出询价单 +export function outInquirySheet(num1, num2, num3) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_询价单明细_删除数据', + param: '询价单明细流水号=' + num1 + '&组件零件流水号=' + num2 + '&组件零件基本件流水号=' + num3 + } + }) +} +// 查询物料 +export function searchAllMaterial(check1, MaterialName, check2, MaterialSpec, check3, MaterialModel, pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_物料主文件_基本_查询数据_分页', + param: `物料名称_check=${check1}&物料名称=${MaterialName}&物料规格_check=${check2}&物料规格=${MaterialSpec}&物料型号_check=${check3}&物料型号=${MaterialModel}&PageCurrent=${pageCurrent}=int&PageSize=${pageSize}=int&PageCount=1=int=output&ItemCount=1=int=output` + } + }) +} +// 物料变更 +export function materialChange(num1, num2, num3, num4, person) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_采购物料修改_修改数据', + param: `组件零件流水号=${num1}&标准件和外购件流水号=${num2}&原物料流水号=${num3}&新物料流水号=${num4}&申请人=${person}` + } + }) +} +// 编辑询价单 +export function editInquirySheet(num1, num2, num3) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_询价单_修改数据', + param: `询价单流水号=${num1}&询价单编号=${num2}&供应商流水号=${num3}` + } + }) +} +// 编辑询价单 +export function saveOrder(num1, num2, num3) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_询价单明细_保存数据', + param: `询价单明细流水号组=${num1}&数量组=${num2}&备注组=${num3}` + } + }) +} +// 使用滞货 +export function submitUseInventory(...params) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_使用滞货', + param: `物料流水号=${params[0]}&使用滞货数量=${params[1]}&组件零件流水号=${params[2]}&使用人编号=${params[3]}` + } + }) +} +// 取消使用滞货 +export function cancelUseInventory(...params) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_取消使用滞货', + param: `物料流水号=${params[0]}&取消数量=${params[1]}&组件零件流水号=${params[2]}` + } + }) +} +// 初始化项目 +export function initProject() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_项目名称_查询数据_按时间排序' + } + }) +} +// 机床查询 +export function searchMachine(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_机床名称_查询数据', + param: '项目流水号_check=1&项目流水号=' + num + } + }) +} +// 分组查询 +export function searchGroup(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_组件名称_查询数据', + param: '机床流水号=' + num + } + }) +} +// 查询询价单基础信息维护 +export function searchBaseInfo(id) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_询价单基础信息_查询数据', + param: '人员编号=' + id + } + }) +} +// 查询询价单基础信息维护 +export function editBaseInfo(...params) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_询价单基础信息_增改数据', + param: `人员编号=${params[0]}&手机=${params[1]}&传真=${params[2]}&邮箱=${params[3]}&公司地址=${params[4]}&邮编=${params[5]}&公司电话=${params[6]}&税号=${params[7]}&送货地址=${params[8]}&帐号=${params[9]}&开户行=${params[10]}` + } + }) +} +// 查询询价单基础信息维护 +export function searchMerge(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_询价单明细合并_查询数据', + param: '询价单流水号=' + num + } + }) +} diff --git a/src/api/PurchasingCenter/CreatePurchaseContract.js b/src/api/PurchasingCenter/CreatePurchaseContract.js new file mode 100644 index 00000000..06fb7d44 --- /dev/null +++ b/src/api/PurchasingCenter/CreatePurchaseContract.js @@ -0,0 +1,107 @@ +import request from '@/utils/request' + +// 初始化供应商 +export function initSupplier(num) { + return request({ + url: '', + method: 'post', + data: { + type: '3', + name: `SELECT distinct 供应商流水号,供应商名称 +FROM 采购管理_询价单_视图 +where not EXISTS (select * from 采购管理_采购合同_采购部 where 是否启用 = 1 and 是否未通过 is null and 询价单编号 = 采购合同编号) and 采购员流水号 = ${num}` + } + }) +} +// 查询询价单列表 表1 +export function searchInquirySheet(check1, value1, check2, value2, check3, id, check4, supplier) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_询价单_查询数据', + param: `供应商名称_check=${check1}&供应商名称=${value1}&询价单编号_check=${check2}&询价单编号=${value2}&采购员流水号_check=${check3}&采购员流水号=${id}&供应商流水号_check=${check4}&供应商流水号=${supplier}` + } + }) +} +// 根据询价单流水号查询物料详情 +export function searchSheetContract(num1) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_询价单明细_查询数据', + param: '询价单流水号=' + num1 + } + }) +} +// 生成采购合同 +export function doneContract(...params) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_采购合同_增加数据', + param: `采购合同编号=${params[0]}\\&采购合同名称=${params[1]}\\&交货日期=${params[2]}\\&支付日期=${params[3]}\\&支付方式=${params[4]}\\&开票信息=${params[5]}\\&其他说明=${params[6]}\\&合同总额=${params[7]}\\&采购员流水号=${params[8]}\\&供应商流水号=${params[9]}\\&单价是否含税=${params[10]}\\&组件零件流水号组=${params[11]}\\&组件零件基本件流水号组=${params[12]}\\&数量组=${params[13]}\\&单价组=${params[14]}\\&交货期组=${params[15]}\\&合同内容\\=${params[16]}\\&税率=${params[17]}\\&询价单明细流水号组=${params[18]}\\&备注组=${params[19]}` + } + }) +} +// 查询询价单基础信息维护 +export function searchBaseInfo(id) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_询价单基础信息_查询数据', + param: '人员编号=' + id + } + }) +} +// 实时保存单价 +export function savePrice(price, num1, num2, num3, num4, num5) { + return request({ + url: '', + method: 'post', + data: { + type: '4', + name: `update 采购管理_询价单明细_视图 set 单价 = ${price} where isnull(物料流水号,0) = isnull('${num1}',0) and 询价单流水号 = ${num2} and isnull(零件名称,'') = '${num3}' and isnull(零件图号,'') = '${num4}' and (isnull(规格,'') = '${num5}' or isnull(物料规格,'') = '${num5}')` + } + }) +} +// 实时保存备注 +export function saveRemark(price, num1, num2, num3, num4, num5) { + return request({ + url: '', + method: 'post', + data: { + type: '4', + name: `update 采购管理_询价单明细_视图 set 备注 = '${price}' where isnull(物料流水号,0) = isnull('${num1}',0) and 询价单流水号 = ${num2} and isnull(零件名称,'') = '${num3}' and isnull(零件图号,'') = '${num4}' and (isnull(规格,'') = '${num5}' or isnull(物料规格,'') = '${num5}')` + } + }) +} +// 实时保存合同头 +export function saveContractHeader(...params) { + return request({ + url: '', + method: 'post', + data: { + type: '4', + name: `update 采购管理_询价单 set 交货日期 = '${params[0]}' , 开票信息 = '${params[1]}' , 支付日期 = '${params[2]}' , 支付方式 = '${params[3]}' , 其他说明 = '${params[4]}' where 询价单流水号 = ${params[5]}` + } + }) +} +// 获取合同头 +export function searchContractHeader(...params) { + return request({ + url: '', + method: 'post', + data: { + type: '3', + name: `select * from 采购管理_询价单 where 询价单流水号 = ${params[0]}` + } + }) +} diff --git a/src/api/PurchasingCenter/FundApproval.js b/src/api/PurchasingCenter/FundApproval.js new file mode 100644 index 00000000..5a696614 --- /dev/null +++ b/src/api/PurchasingCenter/FundApproval.js @@ -0,0 +1,100 @@ +import request from '@/utils/request' + +// 查询审核/审批/付款 +export function initApproval(pageCurrent, pageSize, state) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_采购合同_审批付款_查询数据', + param: `审批_付款状态=${state}`, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 执行审核/审批/付款 +export function execApproval(num1, num2, reason, person, state) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_采购合同_审批付款_修改数据', + param: `采购合同请款流水号=${num1}&审批_付款情况流水号=${num2}&未通过原因=${reason}&操作员编号=${person}&审批_付款状态=${state}` + } + }) +} +// 查询离线合同审核/审批/付款 +export function initApprovalOffline(pageCurrent, pageSize, state) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_离线合同_审批付款_查询数据', + param: `审批_付款状态=${state}`, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 查询离线合同请款信息明细 +export function searchRequsetFundDetail1(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_采购合同_请款明细_查询数据', + param: `采购合同请款流水号=${num}` + } + }) +} +// 查询离线合同请款信息明细 +export function searchRequsetFundDetail2(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_离线合同_请款明细_查询数据', + param: `离线合同请款流水号=${num}` + } + }) +} +// 执行审核/审批/付款(离线合同) +export function execApprovalOffline(num1, num2, reason, person, state) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_离线合同_审批付款_修改数据', + param: `离线合同请款流水号=${num1}&审批_付款情况流水号=${num2}&未通过原因=${reason}&操作员编号=${person}&审批_付款状态=${state}` + } + }) +} +// 采购合同内容查询 +export function searchContactDetail(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_采购合同内容_查询数据', + param: '采购合同流水号=' + num + } + }) +} +// 查询离线合同明细 +export function searchMateriel(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_离线合同明细_查询数据', + param: `离线合同流水号=${num}` + } + }) +} diff --git a/src/api/PurchasingCenter/InvoiceSettlementApplication.js b/src/api/PurchasingCenter/InvoiceSettlementApplication.js new file mode 100644 index 00000000..3a131aa0 --- /dev/null +++ b/src/api/PurchasingCenter/InvoiceSettlementApplication.js @@ -0,0 +1,146 @@ +import request from '@/utils/request' + +// 查询供应商 +export function searchSupplier() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_供应商_查询数据_根据条件' + } + }) +} +// 根据条件查发票结算申请单 +export function searchTable1(...group) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_发票结算申请单_查询数据', + param: `发票号_check=${group[0]}&发票号=${group[1]}`, + Pagination: group[2] + '&' + group[3] + } + }) +} +// 编辑发票结算申请单 +export function submitEdit(...group) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_发票结算申请单_修改数据', + param: `发票号=${group[0]}&发票金额=${group[1]}&已付款项=${group[2]}&尚欠金额=${group[3]}&税额=${group[4]}&是否费用类=${group[5]}&备注=${group[6]}&发票结算申请单流水号=${group[7]}` + } + }) +} +// 删除发票结算申请单 +export function submitDelete(...group) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_发票结算申请单_删除数据', + param: `发票结算申请单流水号=${group[0]}` + } + }) +} +// 提交申请 发票结算申请单 +export function submitApply(...group) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_发票结算申请单_提交申请', + param: `发票结算申请单流水号=${group[0]}&申请人=${group[1]}` + } + }) +} +// 发票结算申请单明细列表 +export function searchTable2(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_发票结算申请单明细_查询数据', + param: `发票结算申请单流水号=${num}` + } + }) +} +// 根据供应商查询采购合同 +export function searchPurchase(data) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_采购合同_查询数据', + param: '供应商流水号_check=1&供应商流水号=' + data + } + }) +} +// 根据供应商查询离线合同 +export function searchOffline(data) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_离线合同_查询数据', + param: '供应商流水号_check=1&供应商流水号=' + data + } + }) +} +// 查询采购合同明细 +export function searchPurchaseDetail(data) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_采购合同明细_查询数据', + param: '采购合同流水号=' + data + } + }) +} +// 查询离线合同明细 +export function searchOfflineDetail(data) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_离线合同明细_查询数据', + param: '离线合同流水号=' + data + } + }) +} +// 发票结算申请单明细增加-1采购/2离线 +export function addTable2(data, group1, group2, type) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_发票结算申请单明细_增加数据', + param: '发票结算申请单流水号=' + data + '&合同明细流水号组=' + group1 + '&到票数量组=' + group2 + '&合同类型=' + type + } + }) +} +// 发票结算申请单明细删除 +export function deleteTable2(data) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_发票结算申请单明细_删除数据', + param: '发票结算申请单明细流水号=' + data + } + }) +} diff --git a/src/api/PurchasingCenter/InvoiceSettlementApprove.js b/src/api/PurchasingCenter/InvoiceSettlementApprove.js new file mode 100644 index 00000000..650d34d5 --- /dev/null +++ b/src/api/PurchasingCenter/InvoiceSettlementApprove.js @@ -0,0 +1,39 @@ +import request from '@/utils/request' + +// 根据条件查发票结算申请单 +export function searchTable1(...group) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_发票结算申请单_查询数据', + param: `时间段_check=${group[0]}&开始日期=${group[1]}&结束日期=${group[2]}&是否提交=1&角色编号=${group[5]}`, + Pagination: group[3] + '&' + group[4] + } + }) +} +// 发票结算申请单明细列表 +export function searchTable2(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_发票结算申请单明细_查询数据', + param: `发票结算申请单流水号=${num}` + } + }) +} +// 执行审批 +export function excuteApprove(...data) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_发票结算申请单_执行审批', + param: `发票结算申请单流水号=${data[0]}&人员编号=${data[1]}&审批代号=${data[2]}` + } + }) +} diff --git a/src/api/PurchasingCenter/MaterialManagement.js b/src/api/PurchasingCenter/MaterialManagement.js new file mode 100644 index 00000000..3d258b15 --- /dev/null +++ b/src/api/PurchasingCenter/MaterialManagement.js @@ -0,0 +1,197 @@ +import request from '@/utils/request' + +export function initDepartmentName() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_物料主文件_基本_物料部门_查询数据' + } + }) +} +export function initMaterialCategory(check, DepartmentValue) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_物料类别编号_查询数据_根据物料部门编号', + param: '物料部门流水号_check=' + check + '=int&物料部门流水号=' + DepartmentValue + } + }) +} +export function initMaterialVariety(MaterialCategoryValue) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_物料品种编号_查询数据', + param: '物料类别流水号=' + MaterialCategoryValue + } + }) +} +export function initMeasurementUnit() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_计量单位主文件_查询数据' + } + }) +} +export function initMaterialSource() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_物料来源_查询数据' + } + }) +} +export function searchmaterial(check1, MaterialName, check2, FullNameOfMaterial, check3, MaterialSpecification, check4, MaterialModel, pageCurrent, pageSize, check5, MaterialCategoryValue, check6, MaterialVarietyValue, check7, MeasurementUnitValue, check8, MaterialSourceValue, check9, supplierValue) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_物料主文件_基本_查询数据_分页', + param: '物料流水号_check=0&物料代码_check=0&物料名称_check=' + check1 + '=int&物料名称=' + MaterialName + '&物料全名_check=' + check2 + '=int&物料全名=' + FullNameOfMaterial + '&物料规格_check=' + check3 + '=int&物料规格=' + MaterialSpecification + '&物料型号_check=' + check4 + '=int&物料型号=' + MaterialModel + '&物料类别流水号_check=' + check5 + '=int&物料类别流水号=' + MaterialCategoryValue + '&物料品种流水号_check=' + check6 + '=int&物料品种流水号=' + MaterialVarietyValue + '&供货商流水号_check=' + check9 + '&供货商流水号=' + supplierValue + '&计量单位流水号_check=' + check7 + '&计量单位流水号=' + MeasurementUnitValue + '&物料来源流水号_check=' + check8 + '&物料来源流水号=' + MaterialSourceValue + '&PageCurrent=' + pageCurrent + '=int&PageSize=' + pageSize + '=int&PageCount=1=int=output&ItemCount=1=int=output' + } + }) +} +export function getSupplier(check, num, pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_供货商_查询数据_根据条件', + param: '供货商_check=' + check + '=int&供货商=' + num, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +export function addData(MaterialVariety, MaterialName, FullNameOfMaterial, MaterialSpecification, MaterialModel, MeasurementUnitValue, MaterialSourceValue, supplierValue1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '库存管理_物料主文件_基本_增加数据', + param: '物料品种流水号=' + MaterialVariety + '&物料名称\\=' + MaterialName + '&物料全名\\=' + FullNameOfMaterial + '&物料规格\\=' + MaterialSpecification + '&物料型号\\=' + MaterialModel + '&计量单位流水号=' + MeasurementUnitValue + '&物料来源流水号=' + MaterialSourceValue + '&供货商流水号=' + supplierValue1 + } + }) +} +export function editData(MaterialValue, MaterialVariety, MaterialName, FullNameOfMaterial, MaterialSpecification, MaterialModel, MeasurementUnitValue, MaterialSourceValue, supplierValue1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '库存管理_物料主文件_基本_修改数据', + param: '物料流水号=' + MaterialValue + '&物料品种流水号=' + MaterialVariety + '&物料名称\\=' + MaterialName + '&物料全名\\=' + FullNameOfMaterial + '&物料规格\\=' + MaterialSpecification + '&物料型号\\=' + MaterialModel + '&计量单位流水号=' + MeasurementUnitValue + '&物料来源流水号=' + MaterialSourceValue + '&供货商流水号=' + supplierValue1 + } + }) +} +export function deleteData(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '库存管理_物料主文件_基本_删除数据', + param: '物料流水号=' + num + } + }) +} +export function searchCategory() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_物料类别编号_查询数据_根据物料部门编号' + } + }) +} +export function searchVarieties(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_物料品种编号_查询数据', + param: '物料类别流水号=' + num + } + }) +} +export function editCategory(MaterialCategoryNum, MaterialCategory2, CategoryNumber) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '库存管理_物料类别编号_修改数据', + param: '物料类别流水号=' + MaterialCategoryNum + '&物料类别=' + MaterialCategory2 + '&类别编号=' + CategoryNumber + } + }) +} +export function addCategory(MaterialCategory2, CategoryNumber) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '库存管理_物料类别编号_增加数据', + param: '物料类别=' + MaterialCategory2 + '&类别编号=' + CategoryNumber + } + }) +} +export function deleteCategory(MaterialCategoryNum) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '库存管理_物料类别编号_删除数据', + param: '物料类别流水号=' + MaterialCategoryNum + } + }) +} +export function editVariety(MaterialVarietyNum, MaterialCategoryNum, MaterialVariety2, VarietyNumber, Specifications1, Specifications2) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '库存管理_物料品种编号_修改数据', + param: '物料品种流水号=' + MaterialVarietyNum + '&物料类别流水号=' + MaterialCategoryNum + '&物料品种=' + MaterialVariety2 + '&品种编号=' + VarietyNumber + '&规格1=' + Specifications1 + '&规格2=' + Specifications2 + } + }) +} +export function addVariety(MaterialCategoryNum, MaterialVariety2, VarietyNumber, Specifications1, Specifications2) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '库存管理_物料品种编号_增加数据', + param: '物料类别流水号=' + MaterialCategoryNum + '&物料品种=' + MaterialVariety2 + '&品种编号=' + VarietyNumber + '&规格1=' + Specifications1 + '&规格2=' + Specifications2 + } + }) +} +export function deleteVariety(MaterialVarietyNum) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '库存管理_物料品种编号_删除数据', + param: '物料品种流水号=' + MaterialVarietyNum + } + }) +} diff --git a/src/api/PurchasingCenter/OfflineContract.js b/src/api/PurchasingCenter/OfflineContract.js new file mode 100644 index 00000000..37be21be --- /dev/null +++ b/src/api/PurchasingCenter/OfflineContract.js @@ -0,0 +1,209 @@ +import request from '@/utils/request' + +// 询价状态修改 +export function changeInquiryStatus(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_询价状态_修改数据', + param: `组件零件流水号组=${num}` + } + }) +} +// 查询库存数 +export function searchInventoryNum(pageCurrent, pageSize, check1, val1, check2, val2, check3, val3, check4, state1, state2) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_离线合同_物料余量_查询数据', + param: `物料名称_check=${check1}&物料名称=${val1}&物料规格_check=${check2}&物料规格=${val2}&物料型号_check=${check3}&物料型号=${val3}&库存状态_check=${check4}&库存状态=${state1}&采购状态=${state2}`, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 查询离线合同 +export function searchOfflineContract(pageCurrent, pageSize, check1, num, check2, name) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_离线合同_查询数据', + param: `离线合同编号_check=${check1}&离线合同编号=${num}&供应商名称_check=${check2}&供应商名称=${name}`, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 查询离线合同 (不分页) +export function searchOfflineContract2() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_离线合同_查询数据', + param: `离线合同编号_check=0&离线合同编号=0&供应商名称_check=0&供应商名称=0` + } + }) +} +// 查询供应商 +export function searchSupplier(check1, value1, check2, value2, check3, value3, check4, value4, check5, value5, check6, value6, check7, value7, check8, value8, check9, value9, check10, value10, check11, value11, check12, value12) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_供应商_查询数据_根据条件', + param: '供应商名称_check=' + check1 + '&供应商名称=' + value1 + '&企业性质_check=' + check2 + '&企业性质=' + value2 + '&创立日期_check=' + check3 + '&创立日期=' + value3 + '&注册资本_check=' + check4 + '&注册资本=' + value4 + '&税号_check=' + check5 + '&税号=' + value5 + '&电子信箱_check=' + check6 + '&电子信箱=' + value6 + '&地址_check=' + check7 + '&地址=' + value7 + '&帐号_check=' + check8 + '&帐号=' + value8 + '&开户行_check=' + check9 + '&开户行=' + value9 + '&电话号码_check=' + check10 + '&电话号码=' + value10 + '&传真_check=' + check11 + '&传真=' + value11 + '&货期_check=' + check12 + '&货期=' + value12 + } + }) +} +// 增加离线合同 +export function addOfflineContract(contractNum, contractName, supplier, person, date, remark) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_离线合同_增加数据', + param: `离线合同编号=${contractNum}&离线合同名称=${contractName}&供应商流水号=${supplier}&人员编号=${person}&规定到货时间=${date}&离线合同备注=${remark}` + } + }) +} +// 编辑离线合同 +export function editOfflineContract(contractNumValue, contractNum, contractName, supplier, person, date, remark) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_离线合同_修改数据', + param: `离线合同流水号=${contractNumValue}&离线合同编号=${contractNum}&离线合同名称=${contractName}&供应商流水号=${supplier}&人员编号=${person}&规定到货时间=${date}&离线合同备注=${remark}` + } + }) +} +// 作废离线合同 +export function deleteOfflineContract(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_离线合同_删除数据', + param: '离线合同流水号=' + num + } + }) +} +// 查询离线合同明细 +export function searchMateriel(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_离线合同明细_查询数据', + param: `离线合同流水号=${num}` + } + }) +} +// 增加离线合同明细 +export function addMateriel(num1, num2) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_离线合同明细_增加数据', + param: `离线合同流水号=${num1}&物料流水号组=${num2}` + } + }) +} +// 删除离线合同明细 +export function deleteMateriel(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_离线合同明细_删除数据', + param: `离线合同明细流水号=${num}` + } + }) +} +// 保存离线合同 +export function saveOfflineContact(contractNum, total, partGroup, numGroup, priceGroup, dateGroup, remarkGroup, taxRate) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_离线合同_保存合同', + param: `离线合同流水号=${contractNum}&合同总额=${total}&离线合同明细流水号组=${partGroup}&数量组=${numGroup}&单价组=${priceGroup}&交货期要求组=${dateGroup}&备注组=${remarkGroup}&税率=${taxRate}` + } + }) +} +// 生成离线合同 +export function doneOfflineContact(contractNum, total, partGroup, numGroup, priceGroup, dateGroup, remarkGroup, taxRate) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_离线合同_生成合同', + param: `离线合同流水号=${contractNum}&合同总额=${total}&离线合同明细流水号组=${partGroup}&数量组=${numGroup}&单价组=${priceGroup}&交货期要求组=${dateGroup}&备注组=${remarkGroup}&税率=${taxRate}` + } + }) +} +// 设置安全库存 +export function setSafeValue(...params) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_离线合同_物料安全库存_修改数据', + param: `物料流水号=${params[0]}&安全库存量=${params[1]}` + } + }) +} +// 查询分配后的标准件和外购件 +export function searchMaterial(pageCurrent, pageSize, num1, check1, val1, check2, val2, check3, val3, person, type) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_采购部采购_查询物料_分配后', + param: `物料状态编号=${num1}&物料名称_check=${check1}&物料名称=${val1}&物料规格_check=${check2}&物料规格=${val2}&物料型号_check=${check3}&物料型号=${val3}&人员编号=${person}&零件类型=${type}`, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 初始化离线合同 +export function initOfflineContract() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_离线合同_查询数据', + param: `未全部到货=1` + } + }) +} +// 提交绑定 +export function submitBind(...params) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_离线合同_物料绑定', + param: `组件零件流水号组=${params[0]}&离线合同流水号=${params[1]}` + } + }) +} diff --git a/src/api/PurchasingCenter/OfflineContractRequestFund.js b/src/api/PurchasingCenter/OfflineContractRequestFund.js new file mode 100644 index 00000000..2f5e2215 --- /dev/null +++ b/src/api/PurchasingCenter/OfflineContractRequestFund.js @@ -0,0 +1,86 @@ +import request from '@/utils/request' + +// 查询请款表 +export function searchRequestFund(pageCurrent, pageSize, check1, start, end, check2, num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_离线合同_请款_查询数据', + param: `时间段_check=${check1}&开始时间=${start}&结束时间=${end}&供应商流水号_check=${check2}&供应商流水号=${num}`, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 查询供应商 +export function searchSupplier() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_供应商_查询数据_根据条件' + } + }) +} +// 查询离线合同待请款信息 +export function searchOfflineContract(check, num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_离线合同_查询数据', + param: `供应商流水号_check=${check}&供应商流水号=${num}` + } + }) +} +// 查询离线合同待请款信息 +export function submitRequestFund(contractGroup, sumGroup, supplier, money, person) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_离线合同_请款_增加数据', + param: `离线合同流水号组=${contractGroup}&合同总额组=${sumGroup}&供应商流水号=${supplier}&请款金额=${money}&请款人=${person}` + } + }) +} +// 查询离线合同待请款信息 +export function searchRequsetFundDetail(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_离线合同_请款明细_查询数据', + param: `离线合同请款流水号=${num}` + } + }) +} +// 取消请款 +export function cancelRequestFund(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_离线合同_请款_删除数据', + param: `离线合同请款流水号=${num}` + } + }) +} +// 查询离线合同明细 +export function searchMateriel(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_离线合同明细_查询数据', + param: `离线合同流水号=${num}` + } + }) +} diff --git a/src/api/PurchasingCenter/OfflineContractSearch.js b/src/api/PurchasingCenter/OfflineContractSearch.js new file mode 100644 index 00000000..1f6bf658 --- /dev/null +++ b/src/api/PurchasingCenter/OfflineContractSearch.js @@ -0,0 +1,27 @@ +import request from '@/utils/request' + +// 查询离线合同 +export function searchOfflineContract(pageCurrent, pageSize, check1, num, check2, name) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_离线合同_查询数据', + param: `离线合同编号_check=${check1}&离线合同编号=${num}&供应商名称_check=${check2}&供应商名称=${name}&是否不包含编辑中=1`, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 查询离线合同明细 +export function searchOfflineContractContent(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_离线合同明细_查询数据', + param: `离线合同流水号=${num}` + } + }) +} diff --git a/src/api/PurchasingCenter/PayStateSearch.js b/src/api/PurchasingCenter/PayStateSearch.js new file mode 100644 index 00000000..7b87f61c --- /dev/null +++ b/src/api/PurchasingCenter/PayStateSearch.js @@ -0,0 +1,26 @@ +import request from '@/utils/request' + +// 初始化合同 +export function initPayState() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_付款情况_查询数据' + } + }) +} +// 查询表1 +export function searchPayState(pageCurrent, pageSize, check1, num, check2, name) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_付款情况_查询数据', + param: `采购合同流水号_check=${check1}&采购合同流水号=${num}&供应商名称_check=${check2}&供应商名称=${name}`, + Pagination: pageCurrent + '&' + pageSize + } + }) +} diff --git a/src/api/PurchasingCenter/ProjectTotalSearch.js b/src/api/PurchasingCenter/ProjectTotalSearch.js new file mode 100644 index 00000000..ea0da409 --- /dev/null +++ b/src/api/PurchasingCenter/ProjectTotalSearch.js @@ -0,0 +1,49 @@ +import request from '@/utils/request' + +// 初始化项目 +export function initProject() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_项目名称_查询数据_按时间排序' + } + }) +} +// 机床查询 +export function searchMachine(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_机床名称_查询数据', + param: '项目流水号_check=1&项目流水号=' + num + } + }) +} +// 分组查询 +export function searchGroup(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_组件名称_查询数据', + param: '机床流水号=' + num + } + }) +} +// 初始化项目金额统计表 +export function searchProjectTotal(check1, num1, check2, num2, check3, num3) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_项目采购总价_查询数据', + param: `项目流水号_check=${check1}&项目流水号=${num1}&机床流水号_check=${check2}&机床流水号=${num2}&组件流水号_check=${check3}&组件流水号=${num3}` + } + }) +} diff --git a/src/api/PurchasingCenter/PurchaseContractApproval.js b/src/api/PurchasingCenter/PurchaseContractApproval.js new file mode 100644 index 00000000..8d221734 --- /dev/null +++ b/src/api/PurchasingCenter/PurchaseContractApproval.js @@ -0,0 +1,73 @@ +import request from '@/utils/request' + +// 初始化合同号 +export function initContract() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_合同审批_查询数据' + } + }) +} +// 初始化采购员 +export function initBuyer() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '人事档案管理_人员与角色_查询数据_采购员' + } + }) +} +// 查询供应商 +export function searchSupplier(check1, value1, check2, value2, check3, value3, check4, value4, check5, value5, check6, value6, check7, value7, check8, value8, check9, value9, check10, value10, check11, value11, check12, value12) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_供应商_查询数据_根据条件', + param: '供应商名称_check=' + check1 + '&供应商名称=' + value1 + '&企业性质_check=' + check2 + '&企业性质=' + value2 + '&创立日期_check=' + check3 + '&创立日期=' + value3 + '&注册资本_check=' + check4 + '&注册资本=' + value4 + '&税号_check=' + check5 + '&税号=' + value5 + '&电子信箱_check=' + check6 + '&电子信箱=' + value6 + '&地址_check=' + check7 + '&地址=' + value7 + '&帐号_check=' + check8 + '&帐号=' + value8 + '&开户行_check=' + check9 + '&开户行=' + value9 + '&电话号码_check=' + check10 + '&电话号码=' + value10 + '&传真_check=' + check11 + '&传真=' + value11 + '&货期_check=' + check12 + '&货期=' + value12 + } + }) +} +// 采购合同查询 +export function searchTable1(pageCurrent, pageSize, check1, start, end, check2, contract, check3, name, check4, supplier) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_合同审批_查询数据', + param: '时间段_check=' + check1 + '&开始时间=' + start + '=datetime&结束时间=' + end + '=datetime&采购合同流水号_check=' + check2 + '&采购合同流水号=' + contract + '&人员编号_check=' + check3 + '&人员编号=' + name + '&供应商名称_check=' + check4 + '&供应商名称=' + supplier, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 采购合同明细查询 +export function searchTable2(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_采购合同内容_查询数据', + param: '采购合同流水号=' + num + } + }) +} +// 执行审批 +export function submitApproval(num, num1, num2) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_合同审批_采购部_修改数据', + param: '采购合同流水号=' + num + '&审批情况流水号=' + num1 + '&未通过原因=' + num2 + } + }) +} diff --git a/src/api/PurchasingCenter/PurchaseContractRequestFund.js b/src/api/PurchasingCenter/PurchaseContractRequestFund.js new file mode 100644 index 00000000..4c8c7443 --- /dev/null +++ b/src/api/PurchasingCenter/PurchaseContractRequestFund.js @@ -0,0 +1,97 @@ +import request from '@/utils/request' +// 查询付款计划 +export function searchTable0(check, date1, date2) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_付款计划_查询数据', + param: `时间段_check=${check}&开始时间=${date1}&结束时间=${date2}` + } + }) +} +// 采购合同内容查询 +export function searchContract(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_采购合同内容_查询数据', + param: '采购合同流水号=' + num + } + }) +} +// 查询请款表 +export function searchRequestFund(pageCurrent, pageSize, check1, start, end, check2, num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_采购合同_请款_查询数据', + param: `时间段_check=${check1}&开始时间=${start}&结束时间=${end}&供应商流水号_check=${check2}&供应商流水号=${num}`, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 查询供应商 +export function searchSupplier() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_供应商_查询数据_根据条件' + } + }) +} +// 采购合同请款 +export function submitRequestFund(contractGroup, sumGroup, supplier, money, person) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_采购合同_请款_增加数据', + param: `采购合同流水号组=${contractGroup}&合同总额组=${sumGroup}&供应商流水号=${supplier}&请款金额=${money}&请款人=${person}` + } + }) +} +// 查询离线合同待请款信息 +export function searchRequsetFundDetail(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_采购合同_请款明细_查询数据', + param: `采购合同请款流水号=${num}` + } + }) +} +// 取消请款 +export function cancelRequestFund(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_采购合同_请款_删除数据', + param: `采购合同请款流水号=${num}` + } + }) +} +// 查询离线合同待请款信息 +export function searchPurchaseContract(check, num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_采购合同_查询数据', + param: `供应商流水号_check=${check}&供应商流水号=${num}` + } + }) +} diff --git a/src/api/PurchasingCenter/PurchaseContractReview.js b/src/api/PurchasingCenter/PurchaseContractReview.js new file mode 100644 index 00000000..031b702c --- /dev/null +++ b/src/api/PurchasingCenter/PurchaseContractReview.js @@ -0,0 +1,84 @@ +import request from '@/utils/request' + +// 初始化合同号 +export function initContract() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_合同审核_查询数据' + } + }) +} +// 初始化采购员 +export function initBuyer() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '人事档案管理_人员与角色_查询数据_采购员' + } + }) +} +// 初始化接收人 +export function initPerson() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_接收人员_查询数据' + } + }) +} +// 查询供应商 +export function searchSupplier(check1, value1, check2, value2, check3, value3, check4, value4, check5, value5, check6, value6, check7, value7, check8, value8, check9, value9, check10, value10, check11, value11, check12, value12) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_供应商_查询数据_根据条件', + param: '供应商名称_check=' + check1 + '&供应商名称=' + value1 + '&企业性质_check=' + check2 + '&企业性质=' + value2 + '&创立日期_check=' + check3 + '&创立日期=' + value3 + '&注册资本_check=' + check4 + '&注册资本=' + value4 + '&税号_check=' + check5 + '&税号=' + value5 + '&电子信箱_check=' + check6 + '&电子信箱=' + value6 + '&地址_check=' + check7 + '&地址=' + value7 + '&帐号_check=' + check8 + '&帐号=' + value8 + '&开户行_check=' + check9 + '&开户行=' + value9 + '&电话号码_check=' + check10 + '&电话号码=' + value10 + '&传真_check=' + check11 + '&传真=' + value11 + '&货期_check=' + check12 + '&货期=' + value12 + } + }) +} +// 采购合同查询 +export function searchTable1(pageCurrent, pageSize, check1, start, end, check2, contract, check3, name, check4, supplier) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_合同审核_查询数据', + param: '时间段_check=' + check1 + '&开始时间=' + start + '=datetime&结束时间=' + end + '=datetime&采购合同流水号_check=' + check2 + '&采购合同流水号=' + contract + '&人员编号_check=' + check3 + '&人员编号=' + name + '&供应商名称_check=' + check4 + '&供应商名称=' + supplier, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 采购合同明细查询 +export function searchTable2(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_采购合同内容_查询数据', + param: '采购合同流水号=' + num + } + }) +} +// 执行审核 +export function submitApproval(num, num1, num2) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_合同审核_采购部_修改数据', + param: '采购合同流水号=' + num + '&审核情况流水号=' + num1 + '&未通过审核原因=' + num2 + } + }) +} diff --git a/src/api/PurchasingCenter/PurchaseContractSearch.js b/src/api/PurchasingCenter/PurchaseContractSearch.js new file mode 100644 index 00000000..30f3cc57 --- /dev/null +++ b/src/api/PurchasingCenter/PurchaseContractSearch.js @@ -0,0 +1,61 @@ +import request from '@/utils/request' + +// 初始化合同号 +export function initContract() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_采购合同_查询_采购部采购' + } + }) +} +// 初始化采购员 +export function initBuyer() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '人事档案管理_人员与角色_查询数据_采购员' + } + }) +} +// 采购合同查询 +export function searchTable1(pageCurrent, pageSize, check1, start, end, check2, contract, check3, name, check4, supplier, check5, approval, numberCheck, number, check6, review) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_合同_查询数据_采购部采购', + param: '时间段_check=' + check1 + '&开始时间=' + start + '=datetime&结束时间=' + end + '=datetime&采购合同流水号_check=' + check2 + '&采购合同流水号=' + contract + '&人员编号_check=' + check3 + '&人员编号=' + name + '&供应商名称_check=' + check4 + '&供应商名称=' + supplier + '&审批情况流水号_check=' + check5 + '&审批情况流水号=' + approval + '&采购合同编号_check=' + numberCheck + '&采购合同编号=' + number + '&审核情况流水号_check=' + check6 + '&审核情况流水号=' + review, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 采购合同内容查询 +export function searchTable2(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_采购合同内容_查询数据', + param: '采购合同流水号=' + num + } + }) +} +// 删除采购合同 +export function deleteContract(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_采购合同_删除_采购部采购', + param: '采购合同流水号=' + num + } + }) +} diff --git a/src/api/PurchasingCenter/PurchaseInvoiceDelivery.js b/src/api/PurchasingCenter/PurchaseInvoiceDelivery.js new file mode 100644 index 00000000..563a0ef3 --- /dev/null +++ b/src/api/PurchasingCenter/PurchaseInvoiceDelivery.js @@ -0,0 +1,120 @@ +import request from '@/utils/request' + +// 初始化项目 +export function initProject() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_项目名称_采购部采购_查询数据' + } + }) +} +// 发票查询 +export function searchInvoice(...params) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_采购发票_查询数据', + param: `供应商流水号_check=${params[2]}&供应商流水号=${params[3]}&采购合同流水号_check=${params[4]}&采购合同流水号=${params[5]}`, + Pagination: params[0] + '&' + params[1] + } + }) +} +// 发票增加(后台调用) +export function addInvoice(...params) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_采购发票_增加数据', + param: `采购合同流水号=${params[0]}&开票金额=${params[1]}&传送人流水号=${params[2]}&备注=${params[3]}` + } + }) +} +// 发票编辑 +export function editInvoice(...params) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_采购发票_修改数据', + param: `发票交接流水号=${params[0]}&发票号=${params[1]}&开户行=${params[2]}&开票时间=${params[3]}&接收人流水号=${params[4]}` + } + }) +} +// 发票删除 +export function deleteInvoice(num1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_采购发票_删除数据', + param: '发票交接流水号=' + num1 + } + }) +} +// 传送人初始化 +export function initSender() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '人事档案管理_人员与角色_查询数据_采购员' + } + }) +} +// 初始化供应商 +export function initSupplier() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_供应商_查询数据_根据条件' + } + }) +} +// 根据供应商查合同 +export function searchContract(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_采购合同_查询数据_根据供应商', + param: `供应商流水号=${num}` + } + }) +} +// 根据供应商查合同 +export function searchOffline(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_离线合同_查询数据_根据供应商', + param: `供应商流水号=${num}` + } + }) +} +// 根据供应商查合同 +export function invoiceDetail(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_采购发票明细_查询数据', + param: `发票交接流水号=${num}` + } + }) +} diff --git a/src/api/PurchasingCenter/PurchaseMaterielModify.js b/src/api/PurchasingCenter/PurchaseMaterielModify.js new file mode 100644 index 00000000..4ca3392f --- /dev/null +++ b/src/api/PurchasingCenter/PurchaseMaterielModify.js @@ -0,0 +1,25 @@ +import request from '@/utils/request' + +export function searchTable(PageCurrent, PageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_采购物料修改确认_查询数据', + Pagination: PageCurrent + '&' + PageSize + } + }) +} +export function edit(num, num1, num2, num3, num4, num5) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_采购物料修改确认_是否通过', + param: '组件零件流水号=' + num + '&标准件和外购件流水号=' + num1 + '&物料变更记录流水号=' + num2 + '&确认通过状态=' + num3 + '&确认人=' + num4 + '&原物料流水号=' + num5 + } + }) +} + diff --git a/src/api/PurchasingCenter/PurchaseSituationSearch.js b/src/api/PurchasingCenter/PurchaseSituationSearch.js new file mode 100644 index 00000000..0445867b --- /dev/null +++ b/src/api/PurchasingCenter/PurchaseSituationSearch.js @@ -0,0 +1,75 @@ +import request from '@/utils/request' + +// 初始化机床项目 +export function initMachineProject() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_项目名称_查询数据' + } + }) +} +// 组件查询 +export function searchgroup(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_组件名称_查询数据', + param: '机床流水号=' + num + } + }) +} +// 查询表1标准件和外购件 +export function searchTable1(...params) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_采购部采购_查询物料_分配后_加供应商', + param: `机床流水号_check=${params[0]}&机床流水号=${params[1]}&组件流水号_check=${params[2]}&组件流水号=${params[3]}&零件类型=${params[6]}&物料名称_check=${params[7]}&物料名称=${params[8]}&物料规格_check=${params[9]}&物料规格=${params[10]}&物料型号_check=${params[11]}&物料型号=${params[12]}`, + Pagination: params[4] + '&' + params[5] + } + }) +} +// 查询表1基本件 +export function searchTable2(...params) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_采购部采购_查询物料_基本件_分配后_加供应商', + param: `机床流水号_check=${params[0]}&机床流水号=${params[1]}&组件流水号_check=${params[2]}&组件流水号=${params[3]}&零件名称_check=${params[6]}&零件名称=${params[7]}&零件规格_check=${params[8]}&零件规格=${params[9]}&零件图号_check=${params[10]}&零件图号=${params[11]}`, + Pagination: params[4] + '&' + params[5] + } + }) +} +// 查询表1标准件和外购件无分页 +export function searchTable1Export(...params) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_采购部采购_查询物料_分配后_加供应商', + param: `机床流水号_check=${params[0]}&机床流水号=${params[1]}&组件流水号_check=${params[2]}&组件流水号=${params[3]}&零件类型=${params[4]}` + } + }) +} +// 查询表1基本件无分页 +export function searchTable2Export(...params) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_采购部采购_查询物料_基本件_分配后_加供应商', + param: `机床流水号_check=${params[0]}&机床流水号=${params[1]}&组件流水号_check=${params[2]}&组件流水号=${params[3]}` + } + }) +} diff --git a/src/api/PurchasingCenter/PurchaseTaskAllocate.js b/src/api/PurchasingCenter/PurchaseTaskAllocate.js new file mode 100644 index 00000000..2b1e345a --- /dev/null +++ b/src/api/PurchasingCenter/PurchaseTaskAllocate.js @@ -0,0 +1,169 @@ +import request from '@/utils/request' +// 物料类别 +export function initMaterialCategory(check, DepartmentValue) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_物料类别编号_查询数据_根据物料部门编号', + param: '物料部门流水号_check=' + check + '=int&物料部门流水号=' + DepartmentValue + } + }) +} +// 物料品种 +export function initMaterialVariety(MaterialCategoryValue) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_物料品种编号_查询数据', + param: '物料类别流水号=' + MaterialCategoryValue + } + }) +} +// 初始化项目(车间传递来的) +export function initProject() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_项目名称_采购部采购_查询数据' + } + }) +} +// 初始化采购员 +export function initBuyer() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '人事档案管理_人员与角色_查询数据_采购员' + } + }) +} +// 机床查询 +export function searchMachine(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_机床名称_查询数据', + param: '项目流水号_check=1&项目流水号=' + num + } + }) +} +// 分组查询 +export function searchGroup(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_组件名称_查询数据', + param: '机床流水号=' + num + } + }) +} +// 查询表1标准件和外购件 +export function searchTable1(...params) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_采购部采购_查询物料_分配后', + param: `物料类别流水号_check=${params[2]}&物料类别流水号=${params[3]}&物料品种流水号_check=${params[4]}&物料品种流水号=${params[5]}&项目流水号_check=${params[6]}&项目流水号=${params[7]}&机床流水号_check=${params[8]}&机床流水号=${params[9]}&组件流水号_check=${params[10]}&组件流水号=${params[11]}&物料名称_check=${params[12]}&物料名称=${params[13]}&物料状态编号=${params[14]}&物料规格_check=${params[15]}&物料规格=${params[16]}&物料型号_check=${params[17]}&物料型号=${params[18]}&零件类型=${params[19]}`, + Pagination: params[0] + '&' + params[1] + } + }) +} +// 查询表1基本件 +export function searchTable2(...params) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_采购部采购_查询物料_基本件_分配后', + param: `项目流水号_check=${params[2]}&项目流水号=${params[3]}&机床流水号_check=${params[4]}&机床流水号=${params[5]}&组件流水号_check=${params[6]}&组件流水号=${params[7]}&物料状态编号=${params[8]}&零件图号_check=${params[9]}&零件图号=${params[10]}&零件名称_check=${params[11]}&零件名称=${params[12]}&零件规格_check=${params[13]}&零件规格=${params[14]}&材料_check=${params[15]}&材料=${params[16]}`, + Pagination: params[0] + '&' + params[1] + } + }) +} +// 分配任务1标准件和外购件 +export function allocateTask1(group, person) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购部采购_分配任务', + param: `标准件和外购件流水号组=${group}&人员编号=${person}` + } + }) +} +// 分配任务2基本件 +export function allocateTask2(group, person) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购部采购_分配任务_基本件', + param: `基本件流水号组=${group}&人员编号=${person}` + } + }) +} +// 执行退回1标准件和外购件 +export function executeReturn1(...params) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购部采购_退回物料', + param: `标准件和外购件流水号组=${params[0]}&组件零件流水号组=${params[1]}` + } + }) +} +// 执行退回1基本件 +export function executeReturn2(...params) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购部采购_退回物料_基本件', + param: `基本件流水号组=${params[0]}&组件零件基本件流水号组=${params[1]}` + } + }) +} +// 执行退回1标准件和外购件 +export function retract1(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购部采购_撤回物料', + param: `标准件和外购件流水号=${num}` + } + }) +} +// 执行退回1基本件 +export function retract2(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购部采购_撤回物料_基本件', + param: `基本件流水号=${num}` + } + }) +} diff --git a/src/api/PurchasingCenter/ReceiveCheck.js b/src/api/PurchasingCenter/ReceiveCheck.js new file mode 100644 index 00000000..ad68cd63 --- /dev/null +++ b/src/api/PurchasingCenter/ReceiveCheck.js @@ -0,0 +1,49 @@ +import request from '@/utils/request' + +// 初始化项目 +export function initProject() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_项目名称_查询数据_按时间排序' + } + }) +} +// 机床查询 +export function searchMachine(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_机床名称_查询数据', + param: '项目流水号_check=1&项目流水号=' + num + } + }) +} +// 分组查询 +export function searchGroup(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_组件名称_查询数据', + param: '机床流水号=' + num + } + }) +} +// 初始化项目金额统计表 +export function searchReceiveCheck(check1, num1, check2, num2, check3, num3) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_领用核算_查询数据', + param: `项目流水号_check=${check1}&项目流水号=${num1}&机床流水号_check=${check2}&机床流水号=${num2}&组件流水号_check=${check3}&组件流水号=${num3}` + } + }) +} diff --git a/src/api/PurchasingCenter/SetPayPlan.js b/src/api/PurchasingCenter/SetPayPlan.js new file mode 100644 index 00000000..9b57baee --- /dev/null +++ b/src/api/PurchasingCenter/SetPayPlan.js @@ -0,0 +1,74 @@ +import request from '@/utils/request' + +// 初始化合同 +export function initContract() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_采购请款表_查询数据' + } + }) +} +// 查询表1 +export function searchTable1(...params) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_采购请款表_查询数据', + param: '采购合同流水号_check=' + params[2] + '&采购合同流水号=' + params[3] + '&供应商名称_check=' + params[4] + '&供应商名称=' + params[5], + Pagination: params[0] + '&' + params[1] + } + }) +} +// 查询表01付款计划 +export function searchTable01(...params) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_付款计划_查询数据', + param: '采购合同流水号_check=1&采购合同流水号=' + params[0] + } + }) +} +// 增加表01付款计划 +export function addTable01(...params) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_付款计划_增加数据', + param: `采购合同流水号=${params[0]}&计划付款日期=${params[1]}&计划付款金额=${params[2]}&计划付款备注=${params[3]}` + } + }) +} +// 删除表01付款计划 +export function deleteTable01(...params) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_付款计划_删除数据', + param: `付款计划流水号=${params[0]}` + } + }) +} +// 采购合同内容查询 +export function searchTable2(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_采购合同内容_查询数据', + param: '采购合同流水号=' + num + } + }) +} diff --git a/src/api/PurchasingCenter/SupplierManagement.js b/src/api/PurchasingCenter/SupplierManagement.js new file mode 100644 index 00000000..71620895 --- /dev/null +++ b/src/api/PurchasingCenter/SupplierManagement.js @@ -0,0 +1,98 @@ +import request from '@/utils/request' + +export function searchData(check1, supplierName, check2, businessNature, check3, creationDate, check4, registeredCapital, check5, taxNumber, check6, bank, check7, account, check8, email, check9, address, check10, telephone, check11, fax, check12, deliveryPeriod, pageCurrent, pageSize, check13, mainProduction) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_供应商_查询数据_根据条件', + param: '供应商名称_check=' + check1 + '=int&供应商名称=' + supplierName + '&企业性质_check=' + check2 + '=int&企业性质=' + businessNature + '&创立日期_check=' + check3 + '=int&创立日期=' + creationDate + '&注册资本_check=' + check4 + '=int&注册资本=' + registeredCapital + '&税号_check=' + check5 + '=int&税号=' + taxNumber + '&开户行_check=' + check6 + '=int&开户行=' + bank + '&帐号_check=' + check7 + '=int&帐号=' + account + '&电子信箱_check=' + check8 + '=int&电子信箱=' + email + '&地址_check=' + check9 + '=int&地址=' + address + '&电话号码_check=' + check10 + '=int&电话号码=' + telephone + '&传真_check=' + check11 + '=int&传真=' + fax + '&货期_check=' + check12 + '=int&货期=' + deliveryPeriod + '&主要产品_check=' + check13 + '&主要产品=' + mainProduction, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 增加新的数据 +export function addTable(supplierName, businessNature, creationDate, registeredCapital, taxNumber, bank, account, email, address, telephone, fax, deliveryPeriod) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_供应商_增加数据', + param: '供应商名称=' + supplierName + '&企业性质=' + businessNature + '&创立日期=' + creationDate + '&注册资本=' + registeredCapital + '&税号=' + taxNumber + '&开户行=' + bank + '&账号=' + account + '&电子信箱=' + email + '&地址=' + address + '&电话号码=' + telephone + '&传真=' + fax + '&货期=' + deliveryPeriod + '&output1=1=int=output' + } + }) +} + +export function editTable(supplierName, businessNature, creationDate, registeredCapital, taxNumber, bank, account, email, address, supplierSerialNumber, fax, deliveryPeriod, telephone) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_供应商_修改数据', + param: '供应商名称=' + supplierName + '&企业性质=' + businessNature + '&创立日期=' + creationDate + '&注册资本=' + registeredCapital + '&税号=' + taxNumber + '&开户行=' + bank + '&账号=' + account + '&电子信箱=' + email + '&地址=' + address + '&供应商流水号=' + supplierSerialNumber + '&传真=' + fax + '&货期=' + deliveryPeriod + '&电话号码=' + telephone + } + }) +} + +export function deleteData(supplierSerialNumber) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_供应商_删除数据', + param: '供应商流水号=' + supplierSerialNumber + } + }) +} + +export function getName(supplierSerialNumber) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_供应商联系人_查询数据', + param: '供应商流水号=' + supplierSerialNumber + } + }) +} +// 增加联系人 +export function addPerson(name, work, phone, telephone, fax, num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_供应商联系人_增加数据', + param: '姓名=' + name + '&职务=' + work + '&电话=' + phone + '&手机=' + telephone + '&传真=' + fax + '&供应商流水号=' + num + } + }) +} +// 编辑联系人 +export function editPerson(name, work, phone, telephone, fax, num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_供应商联系人_修改数据', + param: '姓名=' + name + '&职务=' + work + '&电话=' + phone + '&手机=' + telephone + '&传真=' + fax + '&供应商联系人流水号=' + num + } + }) +} +// 删除联系人 +export function deletePerson(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_供应商联系人_删除数据', + param: '供应商联系人流水号=' + num + } + }) +} diff --git a/src/api/TechnologyCenter/CreatePackingList.js b/src/api/TechnologyCenter/CreatePackingList.js new file mode 100644 index 00000000..59761626 --- /dev/null +++ b/src/api/TechnologyCenter/CreatePackingList.js @@ -0,0 +1,250 @@ +import request from '@/utils/request' + +export function projectSelect() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_项目名称_查询数据_按时间排序' + } + }) +} +export function getReciptData(projectNum) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_装箱单_总单据_查询数据', + param: `项目流水号=${projectNum}` + } + }) +} +export function insertReciptData(num, time, name, address, tel, contact, projectNum) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: 'PDM_装箱单_总单据_增加数据', + param: `装箱单号=${num}&发货节点=${time}&名称=${name}&收货单位=${address}&联系方式=${tel}&联系人=${contact}&项目流水号=${projectNum}` + } + }) +} + +export function updateReciptData(num, time, name, address, tel, contact, projectNum) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: 'PDM_装箱单_总单据_修改数据', + param: `装箱单号=${num}&发货节点=${time}&名称=${name}&收货单位=${address}&联系方式=${tel}&联系人=${contact}&装箱单编号=${projectNum}` + } + }) +} + +export function deleteReciptData(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: 'PDM_装箱单_总单据_删除数据', + param: `装箱单编号=${num}` + } + }) +} + +export function deleteGroupData(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: 'PDM_装箱单_机床所属部件_删除数据', + param: `部件编号=${num}` + } + }) +} + +export function getMachineData(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_装箱单_主机_查询数据', + param: `装箱单编号=${num}` + } + }) +} + +export function deleteMachineData(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: 'PDM_装箱单_主机_删除数据', + param: `序号=${num}` + } + }) +} + +export function addMachineData(projectName, machine, remark, number, num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: 'PDM_装箱单_主机_增加数据', + param: `项目=${projectName}&机床号=${machine}&数量=${number}&备注=${remark}&装箱单编号=${num}` + } + }) +} + +export function updateMachineData(No, number, remark) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: 'PDM_装箱单_主机_修改数据', + param: `序号=${No}&数量=${number}&备注=${remark}` + } + }) +} + +export function getGroupData(machine) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_装箱单_机床所属部件_查询数据', + param: `机床流水号=${machine}` + } + }) +} + +export function editGroupData(num, num1, num2, num3, num4, num5) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: 'PDM_装箱单_部件_编辑数据', + param: `部件编号=${num}&代号=${num1}&名称=${num2}&规格=${num3}&数量=${num4}&备注=${num5}` + } + }) +} + +export function machineSelect(projectValue) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_机床名称_查询数据2', + param: `项目流水号=${projectValue}` + } + }) +} + +export function getFileData(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_装箱单_随机技术文件_查询数据', + param: `装箱单编号=${num}` + } + }) +} + +export function deleteFileData(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: 'PDM_装箱单_随机技术文件_删除数据', + param: `文件编号=${num}` + } + }) +} + +export function editFileData(name, number, remark, num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: 'PDM_装箱单_随机技术文件_修改数据', + param: `名称=${name}&数量=${number}&备注=${remark}&文件编号=${num}` + } + }) +} + +export function addFileData(name, number, remark, num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: 'PDM_装箱单_随机技术文件_增加数据', + param: `名称=${name}&数量=${number}&备注=${remark}&装箱单编号=${num}` + } + }) +} + +export function getSpareData(num, num1) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_装箱单_备件_查询数据', + param: `项目流水号=${num}&机床流水号=${num1}` + } + }) +} + +export function deleteSpareData(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: 'PDM_装箱单_备件_删除数据', + param: `备件编号=${num}` + } + }) +} + +export function editSpareData(MapNumber, name, specification, unit, number, remark, num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: 'PDM_装箱单_备件_修改数据', + param: `图号=${MapNumber}&名称=${name}&规格=${specification}&数量=${number}&单位=${unit}&备注=${remark}&备件编号=${num}` + } + }) +} + +export function addSpareData(MapNumber, name, specification, unit, number, remark, num, num1, num2) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: 'PDM_装箱单_备件_增加数据', + param: `图号=${MapNumber}&名称=${name}&规格=${specification}&数量=${number}&单位=${unit}&备注=${remark}&装箱单编号=${num}&项目流水号=${num1}&机床流水号=${num2}` + } + }) +} diff --git a/src/api/TechnologyCenter/ImportParts.js b/src/api/TechnologyCenter/ImportParts.js new file mode 100644 index 00000000..8649d062 --- /dev/null +++ b/src/api/TechnologyCenter/ImportParts.js @@ -0,0 +1,435 @@ +import request from '@/utils/request' + +// 初始化 项目名称 +export function initProject() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_项目名称_查询数据_按时间排序' + } + }) +} + +export function isExit(projectNum, machineNum) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '组件明细表_基本件_导入数据_校验', + param: `项目流水号=${projectNum}&机床图号=${machineNum}` + } + }) +} +export function isExit1(projectNum, machineNum, groupNum) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '组件明细表_基本件_导入数据_校验组件', + param: `项目流水号=${projectNum}&机床图号=${machineNum}&组号=${groupNum}` + } + }) +} +export function isDrawingNum(projectName, machineNum, groupNum, drawingNum) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '组件明细表_基本件_导入验证gj', + param: `项目名称=${projectName}&机床名称=${machineNum}&分组名称=${groupNum}&图号=${drawingNum}` + } + }) +} +export function update(projectName, machineNum, id, type, drawingNum) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: 'PDM_零件明细表_基本件_数据导入保存_编辑整改类型', + param: `项目名称=${projectName}&机床名称=${machineNum}&id=${id}&整改类型=${type}&前图号或者型号=${drawingNum}` + } + }) +} +export function update1(id, type) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: 'PDM_零件明细表_外购件和标准件_数据导入保存_编辑整改类型', + param: `id=${id}&整改类型=${type}` + } + }) +} +export function searchOldParts(projectName, machineNum, drawingNum) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_零件明细表_整改件_数据关联查询_gj', + param: `项目名称=${projectName}&机床名称=${machineNum}&图号或者型号=${drawingNum}` + } + }) +} +export function importBasics(establishment, proofread, review, date, projectName, machineNum, machineName, componentName, componentNum, groupNum, contractNum, totalNum, pageNum, drawingNum, name, type, material, spareNum, useNum, manufacturer, remarks, classificationCode) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '组件明细表_基本件_导入数据gj', + param: `编制=${establishment}&校对=${proofread}&审核=${review}&日期=${date}&项目=${projectName}&机床=${machineNum}&设备名称=${machineName}&部件名称=${componentName}&部件数量=${componentNum}&组号=${groupNum}&合同编号=${contractNum}&合计页码=${totalNum}&页码=${pageNum}&图号=${drawingNum}&名称=${name}&规格\\=${type}&材料=${material}&备件数量=${spareNum}&装机数量=${useNum}&制造商=${manufacturer}&备注\\=${remarks}&分类码=${classificationCode}&导入类型=0=int=output` + } + }) +} +export function importTotal(establishment, projectName, machineNum, machineName, componentNum, drawingNum, name, type, material, useNum, manufacturer, remarks) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '组件明细表_总图_导入数据gj', + param: `编制=${establishment}&项目=${projectName}&机床=${machineNum}&设备名称=${machineName}&部件数量=${componentNum}&图号=${drawingNum}&名称=${name}&规格\\=${type}&材料=${material}&装机数量=${useNum}&制造商=${manufacturer}&备注\\=${remarks}&导入类型=0=int=output` + } + }) +} +export function importPurcharse(establishment, proofread, review, date, projectName, machineNum, machineName, componentName, componentNum, groupNum, contractNum, totalNum, pageNum, drawingNum, name, type, material, spareNum, useNum, manufacturer, remarks, classificationCode) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '零件明细表_外购件和标准件_导入数据gj', + param: `编制=${establishment}&校对=${proofread}&审核=${review}&日期=${date}&项目=${projectName}&机床=${machineNum}&设备名称=${machineName}&部件名称=${componentName}&部件数量=${componentNum}&组号=${groupNum}&合同编号=${contractNum}&合计页码=${totalNum}&页码=${pageNum}&图号=${drawingNum}&名称=${name}&规格\\=${type}&材料=${material}&备件数量=${spareNum}&装机数量=${useNum}&制造商=${manufacturer}&备注\\=${remarks}&分类码=${classificationCode}&导入类型=0=int=output` + } + }) +} + +export function specificationQuery(projectCheck, project, machineCheck, machine, groupCheck, group) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_零件明细表_基本件_规范数据查询_gj', + param: `项目名字_check=${projectCheck}&项目名字=${project}&机床名字_check=${machineCheck}&机床名字=${machine}&组号_check=${groupCheck}&组号=${group}` + } + }) +} +export function specificationQuery1(projectCheck, project, machineCheck, machine, groupCheck, group) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_零件明细表_整改件_规范数据查询_gj', + param: `项目名字_check=${projectCheck}&项目名字=${project}&机床名字_check=${machineCheck}&机床名字=${machine}&组号_check=${groupCheck}&组号=${group}` + } + }) +} +export function specificationQueryWB(projectCheck, project, machineCheck, machine, groupCheck, group) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_零件明细表_外购件和标准件_规范数据查询_gj', + param: `项目名字_check=${projectCheck}&项目名字=${project}&机床名字_check=${machineCheck}&机床名字=${machine}&组号_check=${groupCheck}&组号=${group}` + } + }) +} +export function specificationQueryWB1(projectCheck, project, machineCheck, machine, groupCheck, group) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_零件明细表_外购件和标准件_整改件_规范数据查询_gj', + param: `项目名字_check=${projectCheck}&项目名字=${project}&机床名字_check=${machineCheck}&机床名字=${machine}&组号_check=${groupCheck}&组号=${group}` + } + }) +} +export function unSpecificationQuery(projectCheck, project, machineCheck, machine, groupCheck, group) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_零件明细表_基本件_不规范数据查询_gj', + param: `项目名字_check=${projectCheck}&项目名字=${project}&机床名字_check=${machineCheck}&机床名字=${machine}&组号_check=${groupCheck}&组号=${group}` + } + }) +} +export function unSpecificationQuery1(projectCheck, project, machineCheck, machine, groupCheck, group) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_零件明细表_整改件_不规范数据查询_gj', + param: `项目名字_check=${projectCheck}&项目名字=${project}&机床名字_check=${machineCheck}&机床名字=${machine}&组号_check=${groupCheck}&组号=${group}` + } + }) +} +export function unSpecificationQueryWB(projectCheck, project, machineCheck, machine, groupCheck, group) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_零件明细表_外购件和标准件_不规范数据查询gj', + param: `项目名字_check=${projectCheck}&项目名字=${project}&机床名字_check=${machineCheck}&机床名字=${machine}&组号_check=${groupCheck}&组号=${group}` + } + }) +} +export function unSpecificationQueryWB1(projectCheck, project, machineCheck, machine, groupCheck, group) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_零件明细表_外购件和标准件_整改件_不规范数据查询gj', + param: `项目名字_check=${projectCheck}&项目名字=${project}&机床名字_check=${machineCheck}&机床名字=${machine}&组号_check=${groupCheck}&组号=${group}` + } + }) +} + +export function deleteBasicParts(id) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: 'PDM_零件明细表_基本件_数据导入保存_删除数据gj', + param: 'id=' + id + } + }) +} + +export function deleteBWParts(id) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: 'PDM_零件明细表_外购件和标准件_数据导入保存_删除数据gj', + param: 'id=' + id + } + }) +} + +export function getMaterial() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_零件明细表_材料_名称_查询数据_gj' + } + }) +} + +export function getMaterialWB(pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_零件明细表_物料查询总gj', + pagination: pageCurrent + '&' + pageSize + } + }) +} + +export function searchMaterialWB(material, pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_零件明细表_物料查询gj', + param: `物料=${material}`, + pagination: pageCurrent + '&' + pageSize + } + }) +} + +export function updateRow(drawingNum, name, type, materialName, spareNum, useNum, manufacturer, remarks, classificationCode, id, materialNum, partsNum) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '组件明细表_基本件_导入数据_更新数据_gj', + param: `图号=${drawingNum}&名称=${name}&规格=${type}&材料=${materialName}&备件数量=${spareNum}&装机数量=${useNum}&制造商=${manufacturer}&备注=${remarks}&分类码=${classificationCode}&id=${id}&材料流水号=${materialNum}&部件数量=${partsNum}` + } + }) +} + +export function updateRowWB(drawingNum, name, type, materialName, spareNum, useNum, manufacturer, remarks, classificationCode, id, materialNum, partsNum) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '零件明细表_外购件和标准件_导入数据_更新数据_gj', + param: `图号=${drawingNum}&名称=${name}&规格=${type}&材料=${materialName}&备件数量=${spareNum}&装机数量=${useNum}&制造商=${manufacturer}&备注=${remarks}&分类码=${classificationCode}&id=${id}&物料流水号=${materialNum}&部件数量=${partsNum}` + } + }) +} +// 查询机床名称 +export function searchMachine(project) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_零件明细表_基本件_数据导入保存_机床_查询数据gj', + param: `项目=${project}` + } + }) +} +// 查询组号 +export function searchGroupNum(project, name) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_零件明细表_基本件_数据导入保存_组号_查询数据gj', + param: `项目=${project}&机床=${name}` + } + }) +} +// 查询组号 +export function searchGroupNum1(project, name) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_零件明细表_整改件_数据导入保存_组号_查询数据gj', + param: `项目=${project}&机床=${name}` + } + }) +} +// 一键删除 +export function allDelete(project, machine, group) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: 'PDM_零件明细表_一键删除', + param: `项目=${project}&机床=${machine}&组号=${group}` + } + }) +} +// 传递零件 +export function transferMX(num1, name, num2, remark, mark, num3, num4, num5, num7, type, transmit, num6, id, Num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: 'PDM_零件明细表_基本件_大量导入', + param: '图号或者型号=' + num1 + '&零件名称=' + name + '&零件数量=' + num2 + '&零件备注\\=' + remark + '&标记=' + mark + '&设计者编号=' + num3 + '&组件流水号=' + num4 + '&材料流水号=' + num5 + '&规格\\=' + num7 + '&数据类型=' + type + '&是否传递=' + transmit + '&序号=' + num6 + '&id=' + id + '&备件数量=' + Num + } + }) +} +// 传递零件 +export function transferMX1(num1, name, num2, remark, mark, num3, num4, num5, num7, type, transmit, num6, num8, num9, id, oldId, oldNum) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: 'PDM_零件明细表_整改件_大量导入', + param: '图号或者型号=' + num1 + '&零件名称=' + name + '&零件数量=' + num2 + '&零件备注\\=' + remark + '&标记=' + mark + '&设计者编号=' + num3 + '&组件流水号=' + num4 + '&材料流水号=' + num5 + '&规格\\=' + num7 + '&数据类型=' + type + '&是否传递=' + transmit + '&序号=' + num6 + '&分类码=' + num8 + '&整改类型=' + num9 + '&id=' + id + '&前id=' + oldId + '&前图号或者型号=' + oldNum + } + }) +} +export function transferWG(groupNum, materialNum, totalNum, remarks, mark, designNum, isTransfer, dataType, No, id, Num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: 'PDM_零件明细表_标准件和外购件_大量导入', + param: `组件流水号=${groupNum}&物料流水号=${materialNum}&零件数量=${totalNum}&备注\\=${remarks}&标记=${mark}&设计者编号=${designNum}&是否传递=${isTransfer}&数据类型=${dataType}&序号=${No}&id=${id}&备件数量=${Num}` + } + }) +} +export function transferWG1(groupNum, materialNum, totalNum, remarks, mark, designNum, isTransfer, dataType, No, id, Num, num6, num7) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: 'PDM_零件明细表_标准件和外购件_大量导入', + param: `组件流水号=${groupNum}&物料流水号=${materialNum}&零件数量=${totalNum}&备注\\=${remarks}&标记=${mark}&设计者编号=${designNum}&是否传递=${isTransfer}&数据类型=${dataType}&序号=${No}&id=${id}&备件数量=${Num}&分类码=${num6}&整改类型=${num7}` + } + }) +} +export function searchMaterial1(num, name, Specifications) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_零件明细表_标准件和外购件_物料对比', + param: `图号或者型号=${num}&名称=${name}&规格=${Specifications}` + } + }) +} +export function getMachineNames(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_机床名称_查询数据_获取数量和名称', + param: `机床图号=${num}` + } + }) +} +export function machineSelect(projectValue) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_机床名称_查询数据2', + param: `项目流水号=${projectValue}` + } + }) +} +export function getFileData(MachineDrawValue) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_机床总图_查询数据', + param: `机床流水号=${MachineDrawValue}` + } + }) +} +export function deleteFileData(id) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: 'PDM_机床总图_删除数据', + param: `文件标识=${id}` + } + }) +} diff --git a/src/api/TechnologyCenter/PartDrawingMaintenance.js b/src/api/TechnologyCenter/PartDrawingMaintenance.js new file mode 100644 index 00000000..70908f37 --- /dev/null +++ b/src/api/TechnologyCenter/PartDrawingMaintenance.js @@ -0,0 +1,48 @@ +import request from '@/utils/request' + +export function projectSelect() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_项目名称_查询数据_按时间排序' + } + }) +} + +export function machineSelect(projectValue) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_机床名称_查询数据2', + param: `项目流水号=${projectValue}` + } + }) +} + +export function groupSelect(machineValue) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_零件明细表_组件流水号_查询数据_根据机床', + param: `机床流水号=${machineValue}` + } + }) +} +export function basicPartsData(project_check, project, machine_check, machine, group_check, group, pageSize, pageCurrent) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_零件明细表_基本件_查询数据_综合gj', + param: `项目流水号_check=${project_check}&项目流水号=${project}&机床流水号_check=${machine_check}&机床流水号=${machine}&组件流水号_check=${group_check}&组件流水号=${group}`, + Pagination: pageCurrent + '&' + pageSize + } + }) +} diff --git a/src/api/TechnologyCenter/QueryParts.js b/src/api/TechnologyCenter/QueryParts.js new file mode 100644 index 00000000..52e3273b --- /dev/null +++ b/src/api/TechnologyCenter/QueryParts.js @@ -0,0 +1,94 @@ +import request from '@/utils/request' + +export function projectSelect() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_项目名称_查询数据_按时间排序' + } + }) +} + +export function machineSelect(projectValue) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_机床名称_查询数据2', + param: `项目流水号=${projectValue}` + } + }) +} + +export function groupSelect(machineValue) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_零件明细表_组件流水号_查询数据_根据机床', + param: `机床流水号=${machineValue}` + } + }) +} + +export function basicPartsData(project_check, project, machine_check, machine, group_check, group, pageSize, pageCurrent) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_零件明细表_基本件_查询数据_综合gj', + param: `项目流水号_check=${project_check}&项目流水号=${project}&机床流水号_check=${machine_check}&机床流水号=${machine}&组件流水号_check=${group_check}&组件流水号=${group}`, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +export function purchasePartsData(num, pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_零件明细表_标准件和外购件_查询数据', + param: `组件流水号=${num}`, + pagination: pageCurrent + '&' + pageSize + } + }) +} +export function deleteBasicParts(basicNum) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: 'PDM_零件明细表_基本件_删除数据', + param: `基本件流水号=${basicNum}` + } + }) +} +export function deletePurchaseData(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: 'PDM_零件明细表_标准件和外购件_删除数据', + param: '标准件和外购件流水号=' + num + '=int' + } + }) +} +export function getFileData(MachineDrawValue) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_机床总图_查询数据', + param: `机床流水号=${MachineDrawValue}` + } + }) +} diff --git a/src/api/WorkshopProcurement/AccountingPrice.js b/src/api/WorkshopProcurement/AccountingPrice.js new file mode 100644 index 00000000..4a53883d --- /dev/null +++ b/src/api/WorkshopProcurement/AccountingPrice.js @@ -0,0 +1,38 @@ +import request from '@/utils/request' + +// 初始化合同 +export function initPayState() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间采购管理_采购合同_查询' + } + }) +} +// 查询表1 +export function searchParts(pageCurrent, pageSize, check1, num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间管理_核算价格_查询数据', + param: `采购合同流水号_check=${check1}&采购合同流水号=${num}`, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 保存 +export function Preservation(id, num, num1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间管理_核算总额_编辑数据', + param: `请购单明细流水号组=${id}&核算总额组=${num}&核算单价组=${num1}` + } + }) +} diff --git a/src/api/WorkshopProcurement/ArrivalStateSearch.js b/src/api/WorkshopProcurement/ArrivalStateSearch.js new file mode 100644 index 00000000..fc550fe1 --- /dev/null +++ b/src/api/WorkshopProcurement/ArrivalStateSearch.js @@ -0,0 +1,51 @@ +import request from '@/utils/request' + +// 初始化合同 +export function initArrivalStateContact() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间管理_到货情况_查询数据', + param: '采购合同流水号_check=0&供应商名称_check=0' + } + }) +} +// 查询到货情况 +export function searchArrivalState(pageCurrent, pageSize, check1, num, check2, name) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间管理_到货情况_查询数据', + param: `采购合同流水号_check=${check1}&采购合同流水号=${num}&供应商名称_check=${check2}&供应商名称=${name}`, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 查询到货情况 +export function searchArrivalNum(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间管理_合同物料到货情况_查询数据_外购件', + param: `采购合同流水号=${num}` + } + }) +} +// 查询到货情况 +export function searchArrivalNum1(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间管理_合同物料到货情况_查询数据_基本件', + param: `采购合同流水号=${num}` + } + }) +} diff --git a/src/api/WorkshopProcurement/CreatingProcurementContracts.js b/src/api/WorkshopProcurement/CreatingProcurementContracts.js new file mode 100644 index 00000000..62fafb41 --- /dev/null +++ b/src/api/WorkshopProcurement/CreatingProcurementContracts.js @@ -0,0 +1,93 @@ +import request from '@/utils/request' + +// 查询合同模板 +export function searchContractDemo(num1 = null) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_合同模板_查询数据', + param: '合同模板流水号=' + num1 + } + }) +} +export function initPurchaseOrder() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间管理_基本件采购_请购单_查询数据' + } + }) +} +export function searchData(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间管理_基本件采购_请购单明细_查询数据', + param: '请购单流水号=' + num + } + }) +} +export function searchData1(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间管理_基本件采购_请购单明细_查询数据_外购件', + param: '请购单流水号=' + num + } + }) +} +export function searchData2(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间管理_基本件采购_请购单明细_查询数据_基本件', + param: '请购单流水号=' + num + } + }) +} +export function update(num, time, remarks) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间管理_基本件采购_请购单明细_编辑数据', + param: '请购单明细流水号=' + num + '&物料计划到货时间=' + time + '&备注=' + remarks + } + }) +} +// 查询供应商 +export function searchSupplier(check1, value1, check2, value2, check3, value3, check4, value4, check5, value5, check6, value6, check7, value7, check8, value8, check9, value9, check10, value10, check11, value11, check12, value12) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_供应商_查询数据_根据条件', + param: '供应商名称_check=' + check1 + '&供应商名称=' + value1 + '&企业性质_check=' + check2 + '&企业性质=' + value2 + '&创立日期_check=' + check3 + '&创立日期=' + value3 + '&注册资本_check=' + check4 + '&注册资本=' + value4 + '&税号_check=' + check5 + '&税号=' + value5 + '&电子信箱_check=' + check6 + '&电子信箱=' + value6 + '&地址_check=' + check7 + '&地址=' + value7 + '&帐号_check=' + check8 + '&帐号=' + value8 + '&开户行_check=' + check9 + '&开户行=' + value9 + '&电话号码_check=' + check10 + '&电话号码=' + value10 + '&传真_check=' + check11 + '&传真=' + value11 + '&货期_check=' + check12 + '&货期=' + value12 + } + }) +} +// 生成采购合同 +export function doneContract(num1, RequisitionNumber, name1, time1, time2, num2, text, type, freight, num3, partsNum, priceGroup, taxGroup, currency, num4, id, singleQuota, readyQuota, AdvanceCharge) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间管理_基本件采购_请购单和请购单明细_增加数据', + param: `请购单流水号=${num1}&请购单编号=${RequisitionNumber}&采购合同名称=${name1}&预到货时间=${time1}&规定到货时间=${time2}&采购员=${id}&供应商流水号=${num2}&合同文本=${text}&模板类型=${type}&运费=${freight}&物料流水号组=${num3}&请购单明细流水号组=${num4}&数量组=${partsNum}&单价组=${priceGroup}&税率组=${taxGroup}&币种流水号组=${currency}&单件定额工时组=${singleQuota}&准结定额工时组=${readyQuota}&预付款=${AdvanceCharge}` + } + }) +} + diff --git a/src/api/WorkshopProcurement/CreatingPurchasingMaterials.js b/src/api/WorkshopProcurement/CreatingPurchasingMaterials.js new file mode 100644 index 00000000..2ce93a00 --- /dev/null +++ b/src/api/WorkshopProcurement/CreatingPurchasingMaterials.js @@ -0,0 +1,187 @@ +import request from '@/utils/request' + +// 查询原材料库存 +export function searchRawMaterial(num, pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '库存管理_原材料库存管理_查询', + param: '原材料名称=' + num, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 增加采购计划明细 +export function addMateriel2(num1, num2) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '备料管理_采购计划明细_增加数据2', + param: `采购计划流水号=${num1}&原材料流水号组=${num2}` + } + }) +} +// 保存重量和备注 +export function saveWeight(num1, num2, num3, num4) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '备料管理_采购计划明细_保存重量和备注', + param: `采购计划明细流水号=${num1}&重量=${num2}&备注=${num3}&单价=${num4}` + } + }) +} +// ////////////////////////////////////////////////////////////////////////////////0529新加↑ + +// 查询外购备料列表 +export function initPartDrawing(check1, name) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '备料管理_外购备料_查询数据', + param: `零件图号_check=${check1}&零件图号=${name}` + } + }) +} +// 查询外购备料 +export function searchPurchasedMaterials(pageCurrent, pageSize, check1, name) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '备料管理_外购备料_查询数据', + param: `零件图号_check=${check1}&零件图号=${name}`, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 查询采购单 +export function searchPurchaseOrder(pageCurrent, pageSize, check1, num, check2, name) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '备料管理_采购计划_查询数据', + param: `采购单号_check=${check1}&采购单号=${num}&供应商名称_check=${check2}&供应商名称=${name}`, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 创建采购单 +export function addPurchaseOrder(PurchaseOrderName, supplier, person, date) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '备料管理_采购计划_增加数据', + param: `采购单名称=${PurchaseOrderName}&采购员=${person}&供应商=${supplier}&计划完成日期=${date}` + } + }) +} +// 编辑采购单 +export function editPurchaseOrder(PurchaseOrderNameValue, PurchaseOrderName, supplier, date) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '备料管理_采购计划_编辑数据', + param: `采购计划流水号=${PurchaseOrderNameValue}&采购单名称=${PurchaseOrderName}&供应商=${supplier}&计划完成日期=${date}` + } + }) +} +// 删除采购单 +export function deletePurchaseOrder(PurchaseOrderNameValue) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '备料管理_采购计划_删除数据', + param: `采购计划流水号=${PurchaseOrderNameValue}` + } + }) +} +// 查询采购计划明细 +export function searchMateriel(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '备料管理_采购计划明细_查询数据', + param: `采购计划流水号=${num}` + } + }) +} +// 增加采购计划明细 +export function addMateriel(num1, num2) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '备料管理_采购计划明细_增加数据', + param: `采购计划流水号=${num1}&工艺计划流水号组=${num2}` + } + }) +} +// 保存采购计划明细 +export function saveMateriel(num1, num2, num3, num4) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '备料管理_采购计划明细_保存数据', + param: `采购计划流水号=${num1}&采购计划明细流水号组=${num2}&单位组=${num3}&备注组=${num4}` + } + }) +} +// 删除采购计划明细 +export function deleteMateriel(num, num1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '备料管理_外购备料_移出数据', + param: `采购计划明细流水号=${num}&工艺计划流水号=${num1}` + } + }) +} +// 查询供应商 +export function searchSupplier(check1, value1, check2, value2, check3, value3, check4, value4, check5, value5, check6, value6, check7, value7, check8, value8, check9, value9, check10, value10, check11, value11, check12, value12) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_供应商_查询数据_根据条件', + param: '供应商名称_check=' + check1 + '&供应商名称=' + value1 + '&企业性质_check=' + check2 + '&企业性质=' + value2 + '&创立日期_check=' + check3 + '&创立日期=' + value3 + '&注册资本_check=' + check4 + '&注册资本=' + value4 + '&税号_check=' + check5 + '&税号=' + value5 + '&电子信箱_check=' + check6 + '&电子信箱=' + value6 + '&地址_check=' + check7 + '&地址=' + value7 + '&帐号_check=' + check8 + '&帐号=' + value8 + '&开户行_check=' + check9 + '&开户行=' + value9 + '&电话号码_check=' + check10 + '&电话号码=' + value10 + '&传真_check=' + check11 + '&传真=' + value11 + '&货期_check=' + check12 + '&货期=' + value12 + } + }) +} +// 打回备料 +export function edit2(num1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_备料单导出_外购备料', + param: `工艺计划流水号组=${num1}&是否外购备料=0` + } + }) +} diff --git a/src/api/WorkshopProcurement/DepartmentBuyerRequestFund.js b/src/api/WorkshopProcurement/DepartmentBuyerRequestFund.js new file mode 100644 index 00000000..ce8338c2 --- /dev/null +++ b/src/api/WorkshopProcurement/DepartmentBuyerRequestFund.js @@ -0,0 +1,75 @@ +import request from '@/utils/request' + +// 查询表1 +export function searchTable1(pageCurrent, pageSize, check1, start, end, check2, num1, check3, name1, check4, name2) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间采购管理_请款表_查询数据', + param: '时间段_check=' + check1 + '&开始时间=' + start + '&结束时间=' + end + '&合同号_check=' + check2 + '&采购合同编号=' + num1 + '&采购员_check=' + check3 + '&采购员流水号=' + name1 + '&供应商_check=' + check4 + '&供应商名称=' + name2, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 请款 +export function requestFund(num1, money, time, id) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_请款表_增加数据', + param: `采购合同流水号=${num1}&请款金额=${money}&请款人=${id}&请款时间=${time}` + } + }) +} +// 查询请款付款情况 +export function searchCondition(num1) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_请款表_查询数据_已付款', + param: '采购合同流水号=' + num1 + } + }) +} +// 取消请款 +export function cancelRequestFund(num1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_请款表_删除数据', + param: '采购科请款流水号=' + num1 + } + }) +} +// 查询请款表 +export function searchRequestTable(check, start, end) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间采购管理_请款表_查询数据_请款Excel', + param: '请款时间段_check=' + check + '&开始时间=' + start + '&结束时间=' + end + } + }) +} +// 初始化采购员 +export function initBuyer() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号', + param: '考核部门编号=5' + } + }) +} diff --git a/src/api/WorkshopProcurement/FundApproval.js b/src/api/WorkshopProcurement/FundApproval.js new file mode 100644 index 00000000..dc333c70 --- /dev/null +++ b/src/api/WorkshopProcurement/FundApproval.js @@ -0,0 +1,137 @@ +import request from '@/utils/request' + +// 查询审批/付款 +export function initApproval(pageCurrent, pageSize, state) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间采购管理_采购合同_审批付款_查询数据', + param: `审批_付款状态=${state}`, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 执行审批/付款 +export function execApproval(num1, num2, reason, person, state) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间采购管理_采购合同_审批付款_修改数据', + param: `采购合同请款流水号=${num1}&审批_付款情况流水号=${num2}&未通过原因=${reason}&操作员编号=${person}&审批_付款状态=${state}` + } + }) +} +// 查询车间合同审批/付款 +export function initApproval1(pageCurrent, pageSize, state) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间采购管理_采购合同_审批付款_查询数据', + param: `审批_付款状态=${state}`, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +export function searchRequsetFundDetail3(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间采购管理_采购合同_请款明细_查询数据', + param: `采购合同请款流水号=${num}` + } + }) +} +// 执行车间合同审批/付款 +export function execApproval1(num1, num2, reason, person, state) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间采购管理_采购合同_审批付款_修改数据', + param: `采购合同请款流水号=${num1}&审批_付款情况流水号=${num2}&未通过原因=${reason}&操作员编号=${person}&审批_付款状态=${state}` + } + }) +} +// 查询离线合同审批/付款 +export function initApprovalOffline(pageCurrent, pageSize, state) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间采购管理_离线合同_审批付款_查询数据', + param: `审批_付款状态=${state}`, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 查询离线合同请款信息明细 +export function searchRequsetFundDetail(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间采购管理_离线合同_请款明细_查询数据', + param: `离线合同请款流水号=${num}` + } + }) +} +// 执行审批/付款(离线合同) +export function execApprovalOffline(num1, num2, reason, person, state) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间采购管理_离线合同_审批付款_修改数据', + param: `离线合同请款流水号=${num1}&审批_付款情况流水号=${num2}&未通过原因=${reason}&操作员编号=${person}&审批_付款状态=${state}` + } + }) +} +// 查询采购计划待请款信息 +export function searchRequsetFundDetail1(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '备料管理_请款明细_查询数据', + param: `采购计划请款流水号=${num}` + } + }) +} +// 查询备料审批/付款 +export function initApprovalMaterials(pageCurrent, pageSize, state) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '备料管理_审批付款_查询数据', + param: `审批_付款状态=${state}`, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 执行审批/付款(备料) +export function execMaterials(num1, num2, reason, person, state) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '备料管理_审批付款_修改数据', + param: `采购计划请款流水号=${num1}&审批_付款情况流水号=${num2}&未通过原因=${reason}&操作员编号=${person}&审批_付款状态=${state}` + } + }) +} diff --git a/src/api/WorkshopProcurement/InvoiceSettlementApplication1.js b/src/api/WorkshopProcurement/InvoiceSettlementApplication1.js new file mode 100644 index 00000000..fe0d5835 --- /dev/null +++ b/src/api/WorkshopProcurement/InvoiceSettlementApplication1.js @@ -0,0 +1,146 @@ +import request from '@/utils/request' + +// 查询供应商 +export function searchSupplier() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_供应商_查询数据_根据条件' + } + }) +} +// 根据条件查发票结算申请单 +export function searchTable1(...group) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间采购管理_发票结算申请单_查询数据', + param: `发票号_check=${group[0]}&发票号=${group[1]}`, + Pagination: group[2] + '&' + group[3] + } + }) +} +// 编辑发票结算申请单 +export function submitEdit(...group) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间采购管理_发票结算申请单_修改数据', + param: `发票号=${group[0]}&发票金额=${group[1]}&已付款项=${group[2]}&尚欠金额=${group[3]}&税额=${group[4]}&是否费用类=${group[5]}&备注=${group[6]}&发票结算申请单流水号=${group[7]}` + } + }) +} +// 删除发票结算申请单 +export function submitDelete(...group) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间采购管理_发票结算申请单_删除数据', + param: `发票结算申请单流水号=${group[0]}` + } + }) +} +// 提交申请 发票结算申请单 +export function submitApply(...group) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间采购管理_发票结算申请单_提交申请', + param: `发票结算申请单流水号=${group[0]}&申请人=${group[1]}` + } + }) +} +// 发票结算申请单明细列表 +export function searchTable2(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间采购管理_发票结算申请单明细_查询数据', + param: `发票结算申请单流水号=${num}` + } + }) +} +// 根据供应商查询采购合同 +export function searchPurchase(data) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间采购管理_采购合同_查询数据', + param: '供应商流水号_check=1&供应商流水号=' + data + } + }) +} +// 根据供应商查询离线合同 +export function searchOffline(data) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间采购管理_离线合同_查询数据', + param: '供应商流水号_check=1&供应商流水号=' + data + } + }) +} +// 查询采购合同明细 +export function searchPurchaseDetail(data) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间采购管理_采购合同明细_查询数据', + param: '采购合同流水号=' + data + } + }) +} +// 查询离线合同明细 +export function searchOfflineDetail(data) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间采购管理_离线合同明细_查询数据', + param: '离线合同流水号=' + data + } + }) +} +// 发票结算申请单明细增加-1采购/2离线 +export function addTable2(data, group1, group2, type) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间采购管理_发票结算申请单明细_增加数据', + param: '发票结算申请单流水号=' + data + '&合同明细流水号组=' + group1 + '&到票数量组=' + group2 + '&合同类型=' + type + } + }) +} +// 发票结算申请单明细删除 +export function deleteTable2(data) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间采购管理_发票结算申请单明细_删除数据', + param: '发票结算申请单明细流水号=' + data + } + }) +} diff --git a/src/api/WorkshopProcurement/InvoiceSettlementApprove1.js b/src/api/WorkshopProcurement/InvoiceSettlementApprove1.js new file mode 100644 index 00000000..84d6c7f6 --- /dev/null +++ b/src/api/WorkshopProcurement/InvoiceSettlementApprove1.js @@ -0,0 +1,39 @@ +import request from '@/utils/request' + +// 根据条件查发票结算申请单 +export function searchTable1(...group) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间采购管理_发票结算申请单_查询数据', + param: `时间段_check=${group[0]}&开始日期=${group[1]}&结束日期=${group[2]}&是否提交=1`, + Pagination: group[3] + '&' + group[4] + } + }) +} +// 发票结算申请单明细列表 +export function searchTable2(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间采购管理_发票结算申请单明细_查询数据', + param: `发票结算申请单流水号=${num}` + } + }) +} +// 执行审批 +export function excuteApprove(...data) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间采购管理_发票结算申请单_执行审批', + param: `发票结算申请单流水号=${data[0]}&人员编号=${data[1]}&审批代号=${data[2]}` + } + }) +} diff --git a/src/api/WorkshopProcurement/InvoiceStateSearch.js b/src/api/WorkshopProcurement/InvoiceStateSearch.js new file mode 100644 index 00000000..e5085095 --- /dev/null +++ b/src/api/WorkshopProcurement/InvoiceStateSearch.js @@ -0,0 +1,50 @@ +import request from '@/utils/request' + +// 发票合同 +export function searchContractInvoice(pageCurrent, pageSize, check1, num, check2, name) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间采购管理_到票情况_查询数据', + param: `采购合同流水号_check=${check1}&采购合同流水号=${num}&供应商名称_check=${check2}&供应商名称=${name}`, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 发票查询 +export function searchInvoice(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间采购管理_发票_查询数据', + param: '采购合同流水号_check=1&采购合同流水号=' + num + } + }) +} +// 传送人接收人初始化 采购科改16 +export function initPerson() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号', + param: '考核部门编号=16' + } + }) +} +// 初始化合同号 +export function initContract() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间采购管理_付款情况_查询数据' + } + }) +} diff --git a/src/api/WorkshopProcurement/OfflineContract1.js b/src/api/WorkshopProcurement/OfflineContract1.js new file mode 100644 index 00000000..8f48e305 --- /dev/null +++ b/src/api/WorkshopProcurement/OfflineContract1.js @@ -0,0 +1,148 @@ +import request from '@/utils/request' + +// 查询库存数 +export function searchInventoryNum(pageCurrent, pageSize, check1, name, check2, state1, state2) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_离线合同_物料余量_查询数据', + param: `物料名称_check=${check1}&物料名称=${name}&库存状态_check=${check2}&库存状态=${state1}&采购状态=${state2}`, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 查询离线合同 +export function searchOfflineContract(pageCurrent, pageSize, check1, num, check2, name) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间采购管理_离线合同_查询数据', + param: `离线合同编号_check=${check1}&离线合同编号=${num}&供应商名称_check=${check2}&供应商名称=${name}`, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 查询离线合同 (不分页) +export function searchOfflineContract2() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间采购管理_离线合同_查询数据', + param: `离线合同编号_check=0&离线合同编号=0&供应商名称_check=0&供应商名称=0` + } + }) +} +// 查询供应商 +export function searchSupplier(check1, value1, check2, value2, check3, value3, check4, value4, check5, value5, check6, value6, check7, value7, check8, value8, check9, value9, check10, value10, check11, value11, check12, value12) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_供应商_查询数据_根据条件', + param: '供应商名称_check=' + check1 + '&供应商名称=' + value1 + '&企业性质_check=' + check2 + '&企业性质=' + value2 + '&创立日期_check=' + check3 + '&创立日期=' + value3 + '&注册资本_check=' + check4 + '&注册资本=' + value4 + '&税号_check=' + check5 + '&税号=' + value5 + '&电子信箱_check=' + check6 + '&电子信箱=' + value6 + '&地址_check=' + check7 + '&地址=' + value7 + '&帐号_check=' + check8 + '&帐号=' + value8 + '&开户行_check=' + check9 + '&开户行=' + value9 + '&电话号码_check=' + check10 + '&电话号码=' + value10 + '&传真_check=' + check11 + '&传真=' + value11 + '&货期_check=' + check12 + '&货期=' + value12 + } + }) +} +// 增加离线合同 +export function addOfflineContract(contractNum, contractName, supplier, person, date, remark) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间采购管理_离线合同_增加数据', + param: `离线合同编号=${contractNum}&离线合同名称=${contractName}&供应商流水号=${supplier}&人员编号=${person}&规定到货时间=${date}&离线合同备注=${remark}` + } + }) +} +// 编辑离线合同 +export function editOfflineContract(contractNumValue, contractNum, contractName, supplier, person, date, remark) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间采购管理_离线合同_编辑数据', + param: `离线合同流水号=${contractNumValue}&离线合同编号=${contractNum}&离线合同名称=${contractName}&供应商流水号=${supplier}&人员编号=${person}&规定到货时间=${date}&离线合同备注=${remark}` + } + }) +} +// 作废离线合同 +export function deleteOfflineContract(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间采购管理_离线合同_删除数据', + param: '离线合同流水号=' + num + } + }) +} +// 查询离线合同明细 +export function searchMateriel(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间采购管理_离线合同明细_查询数据', + param: `离线合同流水号=${num}` + } + }) +} +// 增加离线合同明细 +export function addMateriel(num1, num2) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间采购管理_离线合同明细_增加数据', + param: `离线合同流水号=${num1}&物料流水号组=${num2}` + } + }) +} +// 删除离线合同明细 +export function deleteMateriel(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间采购管理_离线合同明细_删除数据', + param: `离线合同明细流水号=${num}` + } + }) +} +// 生成离线合同 +export function doneOfflineContact(contractNum, total, partGroup, numGroup, priceGroup) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间采购管理_离线合同_生成合同', + param: `离线合同流水号=${contractNum}&合同总额=${total}&离线合同明细流水号组=${partGroup}&数量组=${numGroup}&单价组=${priceGroup}` + } + }) +} +// 设置安全库存 +export function setSafeValue(...params) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_离线合同_物料安全库存_修改数据', + param: `物料流水号=${params[0]}&安全库存量=${params[1]}` + } + }) +} diff --git a/src/api/WorkshopProcurement/OfflineContractRequestFund1.js b/src/api/WorkshopProcurement/OfflineContractRequestFund1.js new file mode 100644 index 00000000..922c91e3 --- /dev/null +++ b/src/api/WorkshopProcurement/OfflineContractRequestFund1.js @@ -0,0 +1,74 @@ +import request from '@/utils/request' + +// 查询请款表 +export function searchRequestFund(pageCurrent, pageSize, check1, start, end, check2, num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间采购管理_离线合同_请款_查询数据', + param: `时间段_check=${check1}&开始时间=${start}&结束时间=${end}&供应商流水号_check=${check2}&供应商流水号=${num}`, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 查询供应商 +export function searchSupplier() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_供应商_查询数据_根据条件' + } + }) +} +// 查询离线合同待请款信息 +export function searchOfflineContract(check, num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间采购管理_离线合同_查询数据', + param: `供应商流水号_check=${check}&供应商流水号=${num}` + } + }) +} +// 查询离线合同待请款信息 +export function submitRequestFund(contractGroup, sumGroup, supplier, money, person) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间采购管理_离线合同_请款_增加数据', + param: `离线合同流水号组=${contractGroup}&合同总额组=${sumGroup}&供应商流水号=${supplier}&请款金额=${money}&请款人=${person}` + } + }) +} +// 查询离线合同待请款信息 +export function searchRequsetFundDetail(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间采购管理_离线合同_请款明细_查询数据', + param: `离线合同请款流水号=${num}` + } + }) +} +// 取消请款 +export function cancelRequestFund(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间采购管理_离线合同_请款_删除数据', + param: `离线合同请款流水号=${num}` + } + }) +} diff --git a/src/api/WorkshopProcurement/OutsourcingMaterialsInvoice.js b/src/api/WorkshopProcurement/OutsourcingMaterialsInvoice.js new file mode 100644 index 00000000..633a338a --- /dev/null +++ b/src/api/WorkshopProcurement/OutsourcingMaterialsInvoice.js @@ -0,0 +1,122 @@ +import request from '@/utils/request' + +// 发票查询 +export function searchInvoice(pageCurrent, pageSize, check1, num1, check2, supplierName0, check3, transmit, check4, recipient) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '备料管理_发票_查询数据', + param: '发票号_check=' + check1 + '&发票号=' + num1 + '&供应商名称_check=' + check2 + '&供应商名称=' + supplierName0 + '&传送人_check=' + check3 + '&传送人=' + transmit + '&接收人_check=' + check4 + '&接收人=' + recipient, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 发票明细查询 +export function searchInvoiceDetail(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '备料管理_发票明细_查询数据', + param: '发票流水号=' + num + } + }) +} +// 发票增加 +export function addInvoice(num1, time1, money, send, receive, remark, num3, num4) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '备料管理_发票_增加数据', + param: `采购计划流水号组=${num1}&开票时间=${time1}&开票金额=${money}&传送人=${send}&接收人=${receive}&备注=${remark}&供应商=${num3}&采购计划流水号字符串=${num4}` + } + }) +} +// 发票编辑 +export function editInvoice(num1, time1, money, send, receive, remark, num3) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '备料管理_发票_编辑数据', + param: '发票流水号=' + num1 + '&供应商=' + num3 + '&开票时间=' + time1 + '&开票金额=' + money + '&传送人=' + send + '&接收人=' + receive + '&备注=' + remark + } + }) +} +// 发票删除 +export function deleteInvoice(num1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '备料管理_发票_删除数据', + param: '发票流水号=' + num1 + } + }) +} +// 初始化采购计划 +export function initPurchase() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '备料管理_采购计划_查询数据_发票' + } + }) +} +// 接收人初始化 +export function initPerson() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号', + param: '考核部门编号=9' + } + }) +} +// 传送人初始化 +export function initPerson1() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号', + param: '考核部门编号=5' + } + }) +} +// 初始化合同号 +export function initContract() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间采购管理_付款情况_查询数据', + param: '采购合同流水号_check=0&供应商名称_check=0' + } + }) +} +// 查询供应商 +export function searchSupplier(check1, value1, check2, value2, check3, value3, check4, value4, check5, value5, check6, value6, check7, value7, check8, value8, check9, value9, check10, value10, check11, value11, check12, value12) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_供应商_查询数据_根据条件', + param: '供应商名称_check=' + check1 + '&供应商名称=' + value1 + '&企业性质_check=' + check2 + '&企业性质=' + value2 + '&创立日期_check=' + check3 + '&创立日期=' + value3 + '&注册资本_check=' + check4 + '&注册资本=' + value4 + '&税号_check=' + check5 + '&税号=' + value5 + '&电子信箱_check=' + check6 + '&电子信箱=' + value6 + '&地址_check=' + check7 + '&地址=' + value7 + '&帐号_check=' + check8 + '&帐号=' + value8 + '&开户行_check=' + check9 + '&开户行=' + value9 + '&电话号码_check=' + check10 + '&电话号码=' + value10 + '&传真_check=' + check11 + '&传真=' + value11 + '&货期_check=' + check12 + '&货期=' + value12 + } + }) +} diff --git a/src/api/WorkshopProcurement/OutsourcingProcessPlanning.js b/src/api/WorkshopProcurement/OutsourcingProcessPlanning.js new file mode 100644 index 00000000..5e240d46 --- /dev/null +++ b/src/api/WorkshopProcurement/OutsourcingProcessPlanning.js @@ -0,0 +1,265 @@ +import request from '@/utils/request' + +// 初始化 工艺员A +export function initCraftmen() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号', + param: '考核部门编号=20' + } + }) +} +// 查询 项目 +export function getProject(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间采购管理工艺_零件工艺计划_项目查询', + param: '是否制定计划=' + num + } + }) +} +// 查询 机床 +export function getMachine(num, num1) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间采购管理工艺_零件工艺计划_机床查询', + param: '项目流水号=' + num1 + '&是否制定计划=' + num + } + }) +} +// 查询 组号 +export function getGroup(num, num1) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间采购管理工艺_零件工艺计划_组号查询', + param: '机床流水号=' + num1 + '&是否制定计划=' + num + } + }) +} +// 查询 零件号 +export function getPartnames1(num, num1, num2, pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间采购管理工艺_零件工艺计划_零件查询', + param: '组件流水号=' + num1 + '&是否制定计划=' + num + '&组件类别=' + num2, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 查询 零件工序 +export function getProcedure(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间采购管理工艺_零件工序_查询工序信息', + param: '工艺流水号=' + num + } + }) +} +// 初始化工艺名称 +export function processNameClick() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_基础表_工艺分类名称_查询数据' + } + }) +} +// 工艺名称查询 +export function processNameSelect(val) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_基础表_工艺名称_查询数据', + param: '工艺分类流水号_check=1=bit&工艺分类流水号=' + val + '=int' + } + }) +} +// 工艺要求查询 +export function processRequestSelect(val) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理_基础表_工艺要求_查询数据', + param: '工艺编号=' + val + '=int' + } + }) +} +// 初始化公差A +export function initTolerance() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_基础表_公差对照表_查询数据' + } + }) +} +// 公差查询 +export function searchTolerance(val1, val2) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_基础表_公差对照表_公差_查询数据', + param: '输入数值=' + val1 + '&参数=' + val2 + } + }) +} +// 完艺工艺拷贝 +export function gongyiCopy(num1, num2) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间采购管理工艺_零件工序_工艺拷贝_工艺流水号', + param: '工艺流水号_完成工艺=' + num1 + '=int&工艺流水号_被拷工艺=' + num2 + '=int' + } + }) +} +// 主界面主表难度等级修改 +export function hardEdit(num, hard) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间采购管理工艺_零件工序_修改数据_工艺难度等级', + param: '外购件工序流水号=' + num + '=int&工艺难度等级=' + hard + } + }) +} +// 主界面主表工艺要求修改 +export function requestEdit(num, request0) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间采购管理工艺_零件工序_修改数据_工艺要求_根据外购件工序流水号', + param: '外购件工序流水号=' + num + '=int&工艺要求=' + request0 + } + }) +} +// 主界面主表插入功能 +export function insertOne(num0, num1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间采购管理工艺_零件工序_修改数据_工艺流水号和外购件工序流水号', + param: '工艺流水号=' + num0 + '&外购件工序流水号=' + num1 + } + }) +} +// 主界面主表删除功能 +export function deleteOne(num0, num1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间采购管理工艺_零件工序_删除数据_外购件工序流水号', + param: '工艺流水号=' + num0 + '&外购件工序流水号=' + num1 + } + }) +} +// 主界面主表上移功能 +export function upOne(num0, num1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间采购管理工艺_零件工序_修改数据_上移工序', + param: '工艺流水号=' + num0 + '&外购件工序流水号=' + num1 + } + }) +} +// 主界面主表下移功能 +export function downOne(num0, num1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间采购管理工艺_零件工序_修改数据_下移工序', + param: '工艺流水号=' + num0 + '&外购件工序流水号=' + num1 + } + }) +} +// 核准保存 +export function saveApprove(num0, num1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间采购管理工艺_零件工序_增加数据_同时修改工艺计划', + param: '工艺流水号=' + num0 + '&工艺人员编号=' + num1 + } + }) +} +// 选择工艺要求 +export function selectRequest(num0, num1, num2, num3, request0) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间采购管理工艺_零件工序_修改数据_根据外购件工序流水号和工艺流水号', + param: '外购件工序流水号=' + num0 + '&工艺流水号=' + num1 + '&工艺编号=' + num2 + '&工艺顺序=' + num3 + '&工艺要求=' + request0 + } + }) +} +// 删除 +export function deleteTable(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间采购管理工艺_零件工序_删除零件工艺', + param: '工艺流水号=' + num + } + }) +} +// 零件工艺修改 +export function returnEdit(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间采购管理工艺_工艺调整_修改工艺', + param: '工艺流水号=' + num + } + }) +} diff --git a/src/api/WorkshopProcurement/OutsourcingQuotaSetting.js b/src/api/WorkshopProcurement/OutsourcingQuotaSetting.js new file mode 100644 index 00000000..f0b425a4 --- /dev/null +++ b/src/api/WorkshopProcurement/OutsourcingQuotaSetting.js @@ -0,0 +1,111 @@ +import request from '@/utils/request' + +// 人员111 +export function getPerson() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号', + param: '考核部门编号=20' + } + }) +} +// 查询 项目 +export function getProject(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间采购管理工艺_零件定额计划_项目查询', + param: '是否制定定额=' + num + } + }) +} +// 查询 机床 +export function getMachine(num, num1) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间采购管理工艺_零件定额计划_机床查询', + param: '项目流水号=' + num1 + '&是否制定定额=' + num + } + }) +} +// 查询 组号 +export function getGroup(num, num1) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间采购管理工艺_零件定额计划_组号查询', + param: '机床流水号=' + num1 + '&是否制定定额=' + num + } + }) +} +// 查询 零件号 +export function getPartnames1(num, num1, num2, pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间采购管理工艺_零件定额计划_零件查询', + param: '组件流水号=' + num1 + '&是否制定定额=' + num + '&组件类别=' + num2, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 查询 零件工序 +export function getProcedure(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间采购管理工艺_零件工序_查询工序信息', + param: '工艺流水号=' + num + } + }) +} +// 定额状态修改 +export function returnEdit(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间采购管理工艺_工艺调整_修改定额', + param: '工艺流水号=' + num + } + }) +} +// 零件定额修改 +export function update(num, num1, num2) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间采购管理工艺_零件定额计划_修改定额', + param: '外购件工序流水号=' + num + '&单件定额工时=' + num1 + '&准结定额工时=' + num2 + } + }) +} +// 保存 +export function saveApprove(num0, num1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间采购管理工艺_零件工序_修改定额计划', + param: '工艺流水号=' + num0 + '&定额人员编号=' + num1 + } + }) +} diff --git a/src/api/WorkshopProcurement/OutsourcingStockArrival.js b/src/api/WorkshopProcurement/OutsourcingStockArrival.js new file mode 100644 index 00000000..41d73b6d --- /dev/null +++ b/src/api/WorkshopProcurement/OutsourcingStockArrival.js @@ -0,0 +1,63 @@ +import request from '@/utils/request' + +// 查询采购单列表 +export function initPurchaseOrder(check1, num, check2, name) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '备料管理_采购计划_查询数据_到货', + param: `采购单号_check=${check1}&采购单号=${num}&供应商名称_check=${check2}&供应商名称=${name}` + } + }) +} +// 查询采购单 +export function searchPurchaseOrder(pageCurrent, pageSize, check1, num, check2, name) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '备料管理_采购计划_查询数据_到货', + param: `采购单号_check=${check1}&采购单号=${num}&供应商名称_check=${check2}&供应商名称=${name}`, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 查询采购单明细 +export function searchMateriel(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '备料管理_采购计划明细_查询数据', + param: `采购计划流水号=${num}` + } + }) +} +// 到货 +export function Arrival(num, num1, num2) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '备料管理_采购计划_到货', + param: `采购计划明细流水号=${num}&重量=${num1}&单价=${num2}` + } + }) +} +// 总价 +export function totalChange(num, num1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '备料管理_采购计划_保存总价', + param: `采购计划流水号=${num}&总价=${num1}` + } + }) +} diff --git a/src/api/WorkshopProcurement/PayStateSearch.js b/src/api/WorkshopProcurement/PayStateSearch.js new file mode 100644 index 00000000..3aab6e65 --- /dev/null +++ b/src/api/WorkshopProcurement/PayStateSearch.js @@ -0,0 +1,26 @@ +import request from '@/utils/request' + +// 初始化合同 +export function initPayState() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间采购管理_付款情况_查询数据' + } + }) +} +// 查询表1 +export function searchPayState(pageCurrent, pageSize, check1, num, check2, name) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间采购管理_付款情况_查询数据', + param: `采购合同流水号_check=${check1}&采购合同流水号=${num}&供应商名称_check=${check2}&供应商名称=${name}`, + Pagination: pageCurrent + '&' + pageSize + } + }) +} diff --git a/src/api/WorkshopProcurement/ProcurementContractApproval.js b/src/api/WorkshopProcurement/ProcurementContractApproval.js new file mode 100644 index 00000000..d7f6fe41 --- /dev/null +++ b/src/api/WorkshopProcurement/ProcurementContractApproval.js @@ -0,0 +1,61 @@ +import request from '@/utils/request' + +// 初始化合同号 +export function initContract() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间采购管理_采购合同_未审批查询' + } + }) +} +// 初始化采购员 +export function initBuyer() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号', + param: '考核部门编号=5' + } + }) +} +// 采购合同查询 +export function searchTable1(pageCurrent, pageSize, check1, start, end, check2, contract, check3, name, check4, supplier) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间采购管理_合同审批_查询数据', + param: '时间段_check=' + check1 + '&开始时间=' + start + '=datetime&结束时间=' + end + '=datetime&采购合同流水号_check=' + check2 + '&采购合同流水号=' + contract + '&人员编号_check=' + check3 + '&人员编号=' + name + '&供应商名称_check=' + check4 + '&供应商名称=' + supplier, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 采购合同明细查询 +export function searchTable2(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间采购管理_采购合同明细_查询数据NEW', + param: '采购合同流水号=' + num + } + }) +} +export function submitApproval(num, num1, num2, num3) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_合同审批_修改数据', + param: '采购合同流水号=' + num + '&请购单流水号=' + num3 + '&审批情况流水号=' + num1 + '&未通过原因=' + num2 + } + }) +} diff --git a/src/api/WorkshopProcurement/ProcurementContractEnquiry.js b/src/api/WorkshopProcurement/ProcurementContractEnquiry.js new file mode 100644 index 00000000..9e4bdcfc --- /dev/null +++ b/src/api/WorkshopProcurement/ProcurementContractEnquiry.js @@ -0,0 +1,73 @@ +import request from '@/utils/request' + +// 初始化合同号 +export function initContract() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间采购管理_采购合同_查询_cjn' + } + }) +} +// 初始化采购员 +export function initBuyer() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号', + param: '考核部门编号=5' + } + }) +} +// 采购合同查询 +export function searchTable1(pageCurrent, pageSize, check1, start, end, check2, contract, check3, name, check4, supplier, check5, approval) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_合同_查询数据', + param: '时间段_check=' + check1 + '&开始时间=' + start + '=datetime&结束时间=' + end + '=datetime&采购合同流水号_check=' + check2 + '&采购合同流水号=' + contract + '&人员编号_check=' + check3 + '&人员编号=' + name + '&供应商名称_check=' + check4 + '&供应商名称=' + supplier + '&审批情况流水号_check=' + check5 + '&审批情况流水号=' + approval, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 采购合同明细查询 +export function searchTable2(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间采购管理_采购合同明细_查询数据NEW', + param: '采购合同流水号=' + num + } + }) +} +// 采购合同明细查询 +export function searchTable3(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间采购管理_采购合同_查询数据_基本件', + param: '采购合同流水号=' + num + } + }) +} +export function Disable(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_采购合同_禁用', + param: '采购合同流水号=' + num + } + }) +} diff --git a/src/api/WorkshopProcurement/ProjectTotalSearch.js b/src/api/WorkshopProcurement/ProjectTotalSearch.js new file mode 100644 index 00000000..049db1a5 --- /dev/null +++ b/src/api/WorkshopProcurement/ProjectTotalSearch.js @@ -0,0 +1,37 @@ +import request from '@/utils/request' + +// 初始化项目 +export function initProject() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_项目名称_查询数据_按时间排序' + } + }) +} +// 初始化项目金额统计表 +export function searchProjectTotal1(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间采购管理_项目总价_明细_查询数据_外购件', + param: `项目流水号=${num}` + } + }) +} +// 初始化项目金额统计表 +export function searchProjectTotal2(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间采购管理_项目总价_明细_查询数据_基本件', + param: `项目流水号=${num}` + } + }) +} diff --git a/src/api/WorkshopProcurement/PurchaseContractChange.js b/src/api/WorkshopProcurement/PurchaseContractChange.js new file mode 100644 index 00000000..124734fd --- /dev/null +++ b/src/api/WorkshopProcurement/PurchaseContractChange.js @@ -0,0 +1,121 @@ +import request from '@/utils/request' + +// 初始化合同号 +export function initContract() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间采购管理_采购合同_查询' + } + }) +} +// 初始化合同号 +export function initContract1() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间采购管理_采购合同变更_合同初始化' + } + }) +} +// 初始化采购员 +export function initBuyer() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号', + param: '考核部门编号=5' + } + }) +} +// 采购合同查询 +export function searchTable1(pageCurrent, pageSize, check2, contract, check3, name, check4, supplier) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间采购管理_现有合同_查询数据', + param: '采购合同流水号_check=' + check2 + '&采购合同流水号=' + contract + '&人员编号_check=' + check3 + '&人员编号=' + name + '&供应商名称_check=' + check4 + '&供应商名称=' + supplier, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 采购合同明细查询 +export function searchTable2(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间采购管理_采购合同_查询数据_外购件', + param: '采购合同流水号=' + num + } + }) +} +// 采购合同明细查询 +export function searchTable5(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间采购管理_采购合同_查询数据_基本件', + param: '采购合同流水号=' + num + } + }) +} +// 采购合同变更查询 +export function searchTable3(pageCurrent, pageSize, check2, contract, check3, name, check4, supplier) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间采购管理_采购合同变更_查询数据_根据条件_cjn', + param: '采购合同变更流水号_check=' + check2 + '&采购合同变更流水号=' + contract + '&人员编号_check=' + check3 + '&人员编号=' + name + '&供应商名称_check=' + check4 + '&供应商名称=' + supplier, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 采购合同变更明细查询 +export function searchTable4(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间采购管理_采购合同明细变更_查询数据_外购件', + param: '采购合同变更流水号=' + num + } + }) +} +export function searchTable6(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间采购管理_采购合同明细变更_查询数据_基本件', + param: '采购合同变更流水号=' + num + } + }) +} +// 采购合同变更 +export function submitContract(num, text) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_车间采购合同变更_增加数据', + param: '采购合同流水号=' + num + '&合同变更原因=' + text + } + }) +} diff --git a/src/api/WorkshopProcurement/PurchaseContractRequestFund1.js b/src/api/WorkshopProcurement/PurchaseContractRequestFund1.js new file mode 100644 index 00000000..dac0b585 --- /dev/null +++ b/src/api/WorkshopProcurement/PurchaseContractRequestFund1.js @@ -0,0 +1,73 @@ +import request from '@/utils/request' + +// 查询请款表 +export function searchRequestFund(pageCurrent, pageSize, check1, start, end, check2, num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间采购管理_采购合同_请款_查询数据', + param: `时间段_check=${check1}&开始时间=${start}&结束时间=${end}&供应商流水号_check=${check2}&供应商流水号=${num}`, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 查询供应商 +export function searchSupplier() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_供应商_查询数据_根据条件' + } + }) +} +export function submitRequestFund(contractGroup, sumGroup, supplier, money, person) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间采购管理_采购合同_请款_增加数据', + param: `采购合同流水号组=${contractGroup}&合同总额组=${sumGroup}&供应商流水号=${supplier}&请款金额=${money}&请款人=${person}` + } + }) +} +// 查询离线合同待请款信息 +export function searchRequsetFundDetail(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间采购管理_采购合同_请款明细_查询数据', + param: `采购合同请款流水号=${num}` + } + }) +} +// 取消请款 +export function cancelRequestFund(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间采购管理_采购合同_请款_删除数据', + param: `采购合同请款流水号=${num}` + } + }) +} +// 查询离线合同待请款信息 +export function searchPurchaseContract(check, num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间采购管理_采购合同_查询数据', + param: `供应商流水号_check=${check}&供应商流水号=${num}` + } + }) +} diff --git a/src/api/WorkshopProcurement/PurchaseInvoiceDelivery.js b/src/api/WorkshopProcurement/PurchaseInvoiceDelivery.js new file mode 100644 index 00000000..f4ce8c71 --- /dev/null +++ b/src/api/WorkshopProcurement/PurchaseInvoiceDelivery.js @@ -0,0 +1,109 @@ +import request from '@/utils/request' + +// 发票查询 +export function searchInvoice(...params) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间采购管理_采购发票_查询数据', + param: `供应商流水号_check=${params[2]}&供应商流水号=${params[3]}&采购合同流水号_check=${params[4]}&采购合同流水号=${params[5]}`, + Pagination: params[0] + '&' + params[1] + } + }) +} +// 发票增加(后台调用) +export function addInvoice(...params) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间采购管理_采购发票_增加数据', + param: `采购合同流水号=${params[0]}&开票金额=${params[1]}&传送人流水号=${params[2]}&备注=${params[3]}` + } + }) +} +// 发票编辑 +export function editInvoice(...params) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间采购管理_采购发票_修改数据', + param: `发票交接流水号=${params[0]}&发票号=${params[1]}&开户行=${params[2]}&开票时间=${params[3]}&接收人流水号=${params[4]}` + } + }) +} +// 发票删除 +export function deleteInvoice(num1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间采购管理_采购发票_删除数据', + param: '发票交接流水号=' + num1 + } + }) +} +// 传送人初始化 +export function initSender() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '人事档案管理_人员与角色_查询数据_采购员' + } + }) +} +// 初始化供应商 +export function initSupplier() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_供应商_查询数据_根据条件' + } + }) +} +// 根据供应商查合同 +export function searchContract(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间采购管理_采购合同_查询数据_根据供应商', + param: `供应商流水号=${num}` + } + }) +} +// 根据供应商查合同 +export function searchOffline(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间采购管理_离线合同_查询数据_根据供应商', + param: `供应商流水号=${num}` + } + }) +} +// 根据供应商查合同 +export function invoiceDetail(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间采购管理_采购发票明细_查询数据', + param: `发票交接流水号=${num}` + } + }) +} diff --git a/src/api/WorkshopProcurement/PurchasingQualityInspection.js b/src/api/WorkshopProcurement/PurchasingQualityInspection.js new file mode 100644 index 00000000..91957d6b --- /dev/null +++ b/src/api/WorkshopProcurement/PurchasingQualityInspection.js @@ -0,0 +1,62 @@ +import request from '@/utils/request' + +// 初始化合同 +export function initPayState() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间采购管理_采购合同_查询' + } + }) +} +// 查询表1 +export function searchParts(pageCurrent, pageSize, check1, num, check2, name) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间管理_基本件外购质检_查询数据', + param: `采购合同流水号_check=${check1}&采购合同流水号=${num}&供应商名称_check=${check2}&供应商名称=${name}`, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 编辑数据 +export function update(id, time, number1, number, time1, reason, remarks) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间管理_基本件外购质检_编辑数据', + param: `ID=${id}&交检日期=${time}&检验数量=${number1}&废品数量=${number}&检查日期=${time1}&报废原因=${reason}&备注=${remarks}` + } + }) +} +// 通过数据 +export function editData(id) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间管理_基本件外购质检_通过', + param: `ID=${id}` + } + }) +} +// 通过数据 +export function deleteData(id) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间管理_基本件外购质检_删除数据', + param: `ID=${id}` + } + }) +} diff --git a/src/api/WorkshopProcurement/QualityInspectionQuery.js b/src/api/WorkshopProcurement/QualityInspectionQuery.js new file mode 100644 index 00000000..d2d5e9ab --- /dev/null +++ b/src/api/WorkshopProcurement/QualityInspectionQuery.js @@ -0,0 +1,26 @@ +import request from '@/utils/request' + +// 初始化合同 +export function initPayState() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间采购管理_采购合同_查询' + } + }) +} +// 查询表1 +export function searchParts(pageCurrent, pageSize, check1, num, check2, name) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间管理_质检情况_查询数据', + param: `采购合同流水号_check=${check1}&采购合同流水号=${num}&供应商名称_check=${check2}&供应商名称=${name}`, + Pagination: pageCurrent + '&' + pageSize + } + }) +} diff --git a/src/api/WorkshopProcurement/ReceiptConnectionSheet.js b/src/api/WorkshopProcurement/ReceiptConnectionSheet.js new file mode 100644 index 00000000..0af7fba4 --- /dev/null +++ b/src/api/WorkshopProcurement/ReceiptConnectionSheet.js @@ -0,0 +1,87 @@ +import request from '@/utils/request' + +// 发票查询 +export function searchInvoice(pageCurrent, pageSize, check1, num1, check2, time, check3, transmit, check4, recipient, check5, num2) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间采购管理_发票_查询数据', + param: '发票号_check=' + check1 + '&发票号=' + num1 + '&开票时间_check=' + check2 + '&开票时间=' + time + '&传送人_check=' + check3 + '&传送人=' + transmit + '&接收人_check=' + check4 + '&接收人=' + recipient + '&采购合同流水号_check=' + check5 + '&采购合同流水号=' + num2, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 发票增加 +export function addInvoice(num1, num2, time1, money, send, receive, remark, time2, money1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_发票_增加数据', + param: '采购合同流水号=' + num1 + '&发票号=' + num2 + '&开票时间=' + time1 + '&开票金额=' + money + '&传送人=' + send + '&接收人=' + receive + '&备注=' + remark + '&扣除金额=' + money1 + '&操作时间=' + time2 + '&identity_receiptLiushuihao=1=int=output' + } + }) +} +// 发票编辑 +export function editInvoice(num1, num2, num3, time1, money, send, receive, remark, money1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_发票_修改数据', + param: '发票流水号=' + num1 + '&采购合同流水号=' + num2 + '&发票号=' + num3 + '&开票时间=' + time1 + '&开票金额=' + money + '&传送人=' + send + '&接收人=' + receive + '&备注=' + remark + '&扣除金额=' + money1 + } + }) +} +// 发票删除 +export function deleteInvoice(num1, num2) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_发票_删除数据', + param: '发票流水号=' + num1 + '&采购合同流水号=' + num2 + } + }) +} +// 接收人初始化 +export function initPerson() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号', + param: '考核部门编号=9' + } + }) +} +// 传送人初始化 +export function initPerson1() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号', + param: '考核部门编号=5' + } + }) +} +// 初始化合同号 +export function initContract() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间采购管理_付款情况_查询数据', + param: '采购合同流水号_check=0&供应商名称_check=0' + } + }) +} diff --git a/src/api/WorkshopProcurement/RequestOutsourcingMaterials.js b/src/api/WorkshopProcurement/RequestOutsourcingMaterials.js new file mode 100644 index 00000000..60f0080d --- /dev/null +++ b/src/api/WorkshopProcurement/RequestOutsourcingMaterials.js @@ -0,0 +1,75 @@ +import request from '@/utils/request' + +// 查询请款表 +export function searchRequestFund(pageCurrent, pageSize, check1, start, end, check2, name) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '备料管理_请款_查询数据', + param: `时间段_check=${check1}&开始时间=${start}&结束时间=${end}&供应商名称_check=${check2}&供应商名称=${name}`, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 查询采购计划待请款信息 +export function searchOfflineContract(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '备料管理_待请款_查询数据', + param: `供应商=${num}` + } + }) +} +// 增加请款 +export function submitRequestFund(contractGroup, sumGroup, supplier, money, person) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '备料管理_请款_增加数据', + param: `采购计划流水号组=${contractGroup}&合同总额组=${sumGroup}&供应商=${supplier}&请款金额=${money}&请款人=${person}` + } + }) +} +// 查询采购计划待请款信息 +export function searchRequsetFundDetail(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '备料管理_请款明细_查询数据', + param: `采购计划请款流水号=${num}` + } + }) +} +// 取消请款 +export function cancelRequestFund(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '备料管理_请款_删除数据', + param: `采购计划请款流水号=${num}` + } + }) +} +// 保存请款明细 +export function SavingMoney(num, num1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '备料管理_请款明细_保存数据', + param: `采购计划请款明细流水号组=${num}&请款金额组=${num1}` + } + }) +} diff --git a/src/api/WorkshopProcurement/StockPreparation.js b/src/api/WorkshopProcurement/StockPreparation.js new file mode 100644 index 00000000..960770b4 --- /dev/null +++ b/src/api/WorkshopProcurement/StockPreparation.js @@ -0,0 +1,74 @@ +import request from '@/utils/request' + +// 查询入库单列表 +export function initWarehouseReceipt(check1, num, check2, name) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '备料管理_入库单_查询数据', + param: `入库单号_check=${check1}&入库单号=${num}&供应商名称_check=${check2}&供应商名称=${name}` + } + }) +} +// 查询采购单列表 +export function initPurchaseOrder() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '备料管理_采购计划_查询数据_发票' + } + }) +} +// 查询入库单 +export function searchWarehouseReceipt(pageCurrent, pageSize, check1, num, check2, name) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '备料管理_入库单_查询数据', + param: `入库单号_check=${check1}&入库单号=${num}&供应商名称_check=${check2}&供应商名称=${name}`, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 查询入库单明细 +export function searchMateriel(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '备料管理_采购计划明细_查询数据', + param: `采购计划流水号=${num}` + } + }) +} +// 创建入库单 +export function AddWarehousing(num, num1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '备料管理_入库单_增加数据', + param: `采购计划流水号=${num}&入库人员=${num1}` + } + }) +} +// 删除入库单 +export function deleteWarehousing(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '备料管理_入库单_删除数据', + param: `入库单流水号=${num}` + } + }) +} diff --git a/src/api/WorkshopProcurement/costStatistics.js b/src/api/WorkshopProcurement/costStatistics.js new file mode 100644 index 00000000..dd3a241c --- /dev/null +++ b/src/api/WorkshopProcurement/costStatistics.js @@ -0,0 +1,56 @@ +import request from '@/utils/request' + +export function initProject() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_项目名称_查询数据_成本分析' + } + }) +} +export function searchPurchase(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_项目采购总价_成本分析_查询数据', + param: '项目流水号=' + num + } + }) +} +export function searchOutsourcing(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_外协成本统计_查询数据', + param: '项目流水号=' + num + } + }) +} +export function searchHome(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_项目成本统计_查询数据', + param: '项目流水号=' + num + } + }) +} +export function searchWorkPurchase(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间采购管理_项目总价_明细_查询数据_总价', + param: '项目流水号=' + num + } + }) +} diff --git a/src/api/login.js b/src/api/login.js new file mode 100644 index 00000000..9faf8494 --- /dev/null +++ b/src/api/login.js @@ -0,0 +1,46 @@ +import request from '@/utils/request' + +export function login(username, password) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '菜单系统模块_用户名密码_查询数据_new2', + param: `用户名=${username}&密码=${password}` + } + }) +} +export function getInfo(token) { + return request({ + url: '', + method: 'post', + data: { + type: '3', + name: `select * from 基础表_角色模块信息 inner join 基础表_模块信息 on 基础表_角色模块信息.id = 基础表_模块信息.id where 角色编号=${token} order by 模块顺序` + } + }) +} +// 查询按钮功能实现 +export function editPassword(num1, num2, num3, num4) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '账号信息_修改密码_MESWORK', + param: '考勤编号=' + num1 + '=int&原始密码=' + num2 + '=string&新密码=' + num3 + '=string&返回=' + num4 + '=string=output' + } + }) +} +export function cloudEditPassword(num1, num2) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '人事档案管理_人员名单_云上改密码', + param: 'id=' + num1 + '=int&新密码=' + num2 + '=string' + } + }) +} diff --git a/src/assets/404_images/404.png b/src/assets/404_images/404.png new file mode 100644 index 00000000..3d8e2305 Binary files /dev/null and b/src/assets/404_images/404.png differ diff --git a/src/assets/404_images/404_cloud.png b/src/assets/404_images/404_cloud.png new file mode 100644 index 00000000..c6281d09 Binary files /dev/null and b/src/assets/404_images/404_cloud.png differ diff --git a/src/assets/img/gaojingLogo.png b/src/assets/img/gaojingLogo.png new file mode 100644 index 00000000..609a7995 Binary files /dev/null and b/src/assets/img/gaojingLogo.png differ diff --git a/src/assets/img/img4.png b/src/assets/img/img4.png new file mode 100644 index 00000000..730a5437 Binary files /dev/null and b/src/assets/img/img4.png differ diff --git a/src/assets/img/user.jpg b/src/assets/img/user.jpg new file mode 100644 index 00000000..a968d954 Binary files /dev/null and b/src/assets/img/user.jpg differ diff --git a/src/components/Breadcrumb/index.vue b/src/components/Breadcrumb/index.vue new file mode 100644 index 00000000..58dca557 --- /dev/null +++ b/src/components/Breadcrumb/index.vue @@ -0,0 +1,52 @@ + + + + + diff --git a/src/components/Calendar/calendar.js b/src/components/Calendar/calendar.js new file mode 100644 index 00000000..3f736c3a --- /dev/null +++ b/src/components/Calendar/calendar.js @@ -0,0 +1,526 @@ +/** +* @1900-2100区间内的公历、农历互转 +* @charset UTF-8 +* @Author Jea杨(JJonline@JJonline.Cn) +* @Time 2014-7-21 +* @Time 2016-8-13 Fixed 2033hex、Attribution Annals +* @Time 2016-9-25 Fixed lunar LeapMonth Param Bug +* @Version 1.0.2 +* @公历转农历:calendar.solar2lunar(1987,11,01); //[you can ignore params of prefix 0] +* @农历转公历:calendar.lunar2solar(1987,09,10); //[you can ignore params of prefix 0] +*/ +/* eslint-disable */ +var calendar = { + + /** + * 农历1900-2100的润大小信息表 + * @Array Of Property + * @return Hex + */ + lunarInfo:[0x04bd8,0x04ae0,0x0a570,0x054d5,0x0d260,0x0d950,0x16554,0x056a0,0x09ad0,0x055d2,//1900-1909 + 0x04ae0,0x0a5b6,0x0a4d0,0x0d250,0x1d255,0x0b540,0x0d6a0,0x0ada2,0x095b0,0x14977,//1910-1919 + 0x04970,0x0a4b0,0x0b4b5,0x06a50,0x06d40,0x1ab54,0x02b60,0x09570,0x052f2,0x04970,//1920-1929 + 0x06566,0x0d4a0,0x0ea50,0x06e95,0x05ad0,0x02b60,0x186e3,0x092e0,0x1c8d7,0x0c950,//1930-1939 + 0x0d4a0,0x1d8a6,0x0b550,0x056a0,0x1a5b4,0x025d0,0x092d0,0x0d2b2,0x0a950,0x0b557,//1940-1949 + 0x06ca0,0x0b550,0x15355,0x04da0,0x0a5b0,0x14573,0x052b0,0x0a9a8,0x0e950,0x06aa0,//1950-1959 + 0x0aea6,0x0ab50,0x04b60,0x0aae4,0x0a570,0x05260,0x0f263,0x0d950,0x05b57,0x056a0,//1960-1969 + 0x096d0,0x04dd5,0x04ad0,0x0a4d0,0x0d4d4,0x0d250,0x0d558,0x0b540,0x0b6a0,0x195a6,//1970-1979 + 0x095b0,0x049b0,0x0a974,0x0a4b0,0x0b27a,0x06a50,0x06d40,0x0af46,0x0ab60,0x09570,//1980-1989 + 0x04af5,0x04970,0x064b0,0x074a3,0x0ea50,0x06b58,0x055c0,0x0ab60,0x096d5,0x092e0,//1990-1999 + 0x0c960,0x0d954,0x0d4a0,0x0da50,0x07552,0x056a0,0x0abb7,0x025d0,0x092d0,0x0cab5,//2000-2009 + 0x0a950,0x0b4a0,0x0baa4,0x0ad50,0x055d9,0x04ba0,0x0a5b0,0x15176,0x052b0,0x0a930,//2010-2019 + 0x07954,0x06aa0,0x0ad50,0x05b52,0x04b60,0x0a6e6,0x0a4e0,0x0d260,0x0ea65,0x0d530,//2020-2029 + 0x05aa0,0x076a3,0x096d0,0x04afb,0x04ad0,0x0a4d0,0x1d0b6,0x0d250,0x0d520,0x0dd45,//2030-2039 + 0x0b5a0,0x056d0,0x055b2,0x049b0,0x0a577,0x0a4b0,0x0aa50,0x1b255,0x06d20,0x0ada0,//2040-2049 + /**Add By JJonline@JJonline.Cn**/ + 0x14b63,0x09370,0x049f8,0x04970,0x064b0,0x168a6,0x0ea50, 0x06b20,0x1a6c4,0x0aae0,//2050-2059 + 0x0a2e0,0x0d2e3,0x0c960,0x0d557,0x0d4a0,0x0da50,0x05d55,0x056a0,0x0a6d0,0x055d4,//2060-2069 + 0x052d0,0x0a9b8,0x0a950,0x0b4a0,0x0b6a6,0x0ad50,0x055a0,0x0aba4,0x0a5b0,0x052b0,//2070-2079 + 0x0b273,0x06930,0x07337,0x06aa0,0x0ad50,0x14b55,0x04b60,0x0a570,0x054e4,0x0d160,//2080-2089 + 0x0e968,0x0d520,0x0daa0,0x16aa6,0x056d0,0x04ae0,0x0a9d4,0x0a2d0,0x0d150,0x0f252,//2090-2099 + 0x0d520],//2100 + + /** + * 公历每个月份的天数普通表 + * @Array Of Property + * @return Number + */ + solarMonth:[31,28,31,30,31,30,31,31,30,31,30,31], + + /** + * 天干地支之天干速查表 + * @Array Of Property trans["甲","乙","丙","丁","戊","己","庚","辛","壬","癸"] + * @return Cn string + */ + Gan:["\u7532","\u4e59","\u4e19","\u4e01","\u620a","\u5df1","\u5e9a","\u8f9b","\u58ec","\u7678"], + + /** + * 天干地支之地支速查表 + * @Array Of Property + * @trans["子","丑","寅","卯","辰","巳","午","未","申","酉","戌","亥"] + * @return Cn string + */ + Zhi:["\u5b50","\u4e11","\u5bc5","\u536f","\u8fb0","\u5df3","\u5348","\u672a","\u7533","\u9149","\u620c","\u4ea5"], + + /** + * 天干地支之地支速查表<=>生肖 + * @Array Of Property + * @trans["鼠","牛","虎","兔","龙","蛇","马","羊","猴","鸡","狗","猪"] + * @return Cn string + */ + Animals:["\u9f20","\u725b","\u864e","\u5154","\u9f99","\u86c7","\u9a6c","\u7f8a","\u7334","\u9e21","\u72d7","\u732a"], + + /** + * 24节气速查表 + * @Array Of Property + * @trans["小寒","大寒","立春","雨水","惊蛰","春分","清明","谷雨","立夏","小满","芒种","夏至","小暑","大暑","立秋","处暑","白露","秋分","寒露","霜降","立冬","小雪","大雪","冬至"] + * @return Cn string + */ + solarTerm:["\u5c0f\u5bd2","\u5927\u5bd2","\u7acb\u6625","\u96e8\u6c34","\u60ca\u86f0","\u6625\u5206","\u6e05\u660e","\u8c37\u96e8","\u7acb\u590f","\u5c0f\u6ee1","\u8292\u79cd","\u590f\u81f3","\u5c0f\u6691","\u5927\u6691","\u7acb\u79cb","\u5904\u6691","\u767d\u9732","\u79cb\u5206","\u5bd2\u9732","\u971c\u964d","\u7acb\u51ac","\u5c0f\u96ea","\u5927\u96ea","\u51ac\u81f3"], + + /** + * 1900-2100各年的24节气日期速查表 + * @Array Of Property + * @return 0x string For splice + */ + sTermInfo:['9778397bd097c36b0b6fc9274c91aa','97b6b97bd19801ec9210c965cc920e','97bcf97c3598082c95f8c965cc920f', + '97bd0b06bdb0722c965ce1cfcc920f','b027097bd097c36b0b6fc9274c91aa','97b6b97bd19801ec9210c965cc920e', + '97bcf97c359801ec95f8c965cc920f','97bd0b06bdb0722c965ce1cfcc920f','b027097bd097c36b0b6fc9274c91aa', + '97b6b97bd19801ec9210c965cc920e','97bcf97c359801ec95f8c965cc920f','97bd0b06bdb0722c965ce1cfcc920f', + 'b027097bd097c36b0b6fc9274c91aa','9778397bd19801ec9210c965cc920e','97b6b97bd19801ec95f8c965cc920f', + '97bd09801d98082c95f8e1cfcc920f','97bd097bd097c36b0b6fc9210c8dc2','9778397bd197c36c9210c9274c91aa', + '97b6b97bd19801ec95f8c965cc920e','97bd09801d98082c95f8e1cfcc920f','97bd097bd097c36b0b6fc9210c8dc2', + '9778397bd097c36c9210c9274c91aa','97b6b97bd19801ec95f8c965cc920e','97bcf97c3598082c95f8e1cfcc920f', + '97bd097bd097c36b0b6fc9210c8dc2','9778397bd097c36c9210c9274c91aa','97b6b97bd19801ec9210c965cc920e', + '97bcf97c3598082c95f8c965cc920f','97bd097bd097c35b0b6fc920fb0722','9778397bd097c36b0b6fc9274c91aa', + '97b6b97bd19801ec9210c965cc920e','97bcf97c3598082c95f8c965cc920f','97bd097bd097c35b0b6fc920fb0722', + '9778397bd097c36b0b6fc9274c91aa','97b6b97bd19801ec9210c965cc920e','97bcf97c359801ec95f8c965cc920f', + '97bd097bd097c35b0b6fc920fb0722','9778397bd097c36b0b6fc9274c91aa','97b6b97bd19801ec9210c965cc920e', + '97bcf97c359801ec95f8c965cc920f','97bd097bd097c35b0b6fc920fb0722','9778397bd097c36b0b6fc9274c91aa', + '97b6b97bd19801ec9210c965cc920e','97bcf97c359801ec95f8c965cc920f','97bd097bd07f595b0b6fc920fb0722', + '9778397bd097c36b0b6fc9210c8dc2','9778397bd19801ec9210c9274c920e','97b6b97bd19801ec95f8c965cc920f', + '97bd07f5307f595b0b0bc920fb0722','7f0e397bd097c36b0b6fc9210c8dc2','9778397bd097c36c9210c9274c920e', + '97b6b97bd19801ec95f8c965cc920f','97bd07f5307f595b0b0bc920fb0722','7f0e397bd097c36b0b6fc9210c8dc2', + '9778397bd097c36c9210c9274c91aa','97b6b97bd19801ec9210c965cc920e','97bd07f1487f595b0b0bc920fb0722', + '7f0e397bd097c36b0b6fc9210c8dc2','9778397bd097c36b0b6fc9274c91aa','97b6b97bd19801ec9210c965cc920e', + '97bcf7f1487f595b0b0bb0b6fb0722','7f0e397bd097c35b0b6fc920fb0722','9778397bd097c36b0b6fc9274c91aa', + '97b6b97bd19801ec9210c965cc920e','97bcf7f1487f595b0b0bb0b6fb0722','7f0e397bd097c35b0b6fc920fb0722', + '9778397bd097c36b0b6fc9274c91aa','97b6b97bd19801ec9210c965cc920e','97bcf7f1487f531b0b0bb0b6fb0722', + '7f0e397bd097c35b0b6fc920fb0722','9778397bd097c36b0b6fc9274c91aa','97b6b97bd19801ec9210c965cc920e', + '97bcf7f1487f531b0b0bb0b6fb0722','7f0e397bd07f595b0b6fc920fb0722','9778397bd097c36b0b6fc9274c91aa', + '97b6b97bd19801ec9210c9274c920e','97bcf7f0e47f531b0b0bb0b6fb0722','7f0e397bd07f595b0b0bc920fb0722', + '9778397bd097c36b0b6fc9210c91aa','97b6b97bd197c36c9210c9274c920e','97bcf7f0e47f531b0b0bb0b6fb0722', + '7f0e397bd07f595b0b0bc920fb0722','9778397bd097c36b0b6fc9210c8dc2','9778397bd097c36c9210c9274c920e', + '97b6b7f0e47f531b0723b0b6fb0722','7f0e37f5307f595b0b0bc920fb0722','7f0e397bd097c36b0b6fc9210c8dc2', + '9778397bd097c36b0b70c9274c91aa','97b6b7f0e47f531b0723b0b6fb0721','7f0e37f1487f595b0b0bb0b6fb0722', + '7f0e397bd097c35b0b6fc9210c8dc2','9778397bd097c36b0b6fc9274c91aa','97b6b7f0e47f531b0723b0b6fb0721', + '7f0e27f1487f595b0b0bb0b6fb0722','7f0e397bd097c35b0b6fc920fb0722','9778397bd097c36b0b6fc9274c91aa', + '97b6b7f0e47f531b0723b0b6fb0721','7f0e27f1487f531b0b0bb0b6fb0722','7f0e397bd097c35b0b6fc920fb0722', + '9778397bd097c36b0b6fc9274c91aa','97b6b7f0e47f531b0723b0b6fb0721','7f0e27f1487f531b0b0bb0b6fb0722', + '7f0e397bd097c35b0b6fc920fb0722','9778397bd097c36b0b6fc9274c91aa','97b6b7f0e47f531b0723b0b6fb0721', + '7f0e27f1487f531b0b0bb0b6fb0722','7f0e397bd07f595b0b0bc920fb0722','9778397bd097c36b0b6fc9274c91aa', + '97b6b7f0e47f531b0723b0787b0721','7f0e27f0e47f531b0b0bb0b6fb0722','7f0e397bd07f595b0b0bc920fb0722', + '9778397bd097c36b0b6fc9210c91aa','97b6b7f0e47f149b0723b0787b0721','7f0e27f0e47f531b0723b0b6fb0722', + '7f0e397bd07f595b0b0bc920fb0722','9778397bd097c36b0b6fc9210c8dc2','977837f0e37f149b0723b0787b0721', + '7f07e7f0e47f531b0723b0b6fb0722','7f0e37f5307f595b0b0bc920fb0722','7f0e397bd097c35b0b6fc9210c8dc2', + '977837f0e37f14998082b0787b0721','7f07e7f0e47f531b0723b0b6fb0721','7f0e37f1487f595b0b0bb0b6fb0722', + '7f0e397bd097c35b0b6fc9210c8dc2','977837f0e37f14998082b0787b06bd','7f07e7f0e47f531b0723b0b6fb0721', + '7f0e27f1487f531b0b0bb0b6fb0722','7f0e397bd097c35b0b6fc920fb0722','977837f0e37f14998082b0787b06bd', + '7f07e7f0e47f531b0723b0b6fb0721','7f0e27f1487f531b0b0bb0b6fb0722','7f0e397bd097c35b0b6fc920fb0722', + '977837f0e37f14998082b0787b06bd','7f07e7f0e47f531b0723b0b6fb0721','7f0e27f1487f531b0b0bb0b6fb0722', + '7f0e397bd07f595b0b0bc920fb0722','977837f0e37f14998082b0787b06bd','7f07e7f0e47f531b0723b0b6fb0721', + '7f0e27f1487f531b0b0bb0b6fb0722','7f0e397bd07f595b0b0bc920fb0722','977837f0e37f14998082b0787b06bd', + '7f07e7f0e47f149b0723b0787b0721','7f0e27f0e47f531b0b0bb0b6fb0722','7f0e397bd07f595b0b0bc920fb0722', + '977837f0e37f14998082b0723b06bd','7f07e7f0e37f149b0723b0787b0721','7f0e27f0e47f531b0723b0b6fb0722', + '7f0e397bd07f595b0b0bc920fb0722','977837f0e37f14898082b0723b02d5','7ec967f0e37f14998082b0787b0721', + '7f07e7f0e47f531b0723b0b6fb0722','7f0e37f1487f595b0b0bb0b6fb0722','7f0e37f0e37f14898082b0723b02d5', + '7ec967f0e37f14998082b0787b0721','7f07e7f0e47f531b0723b0b6fb0722','7f0e37f1487f531b0b0bb0b6fb0722', + '7f0e37f0e37f14898082b0723b02d5','7ec967f0e37f14998082b0787b06bd','7f07e7f0e47f531b0723b0b6fb0721', + '7f0e37f1487f531b0b0bb0b6fb0722','7f0e37f0e37f14898082b072297c35','7ec967f0e37f14998082b0787b06bd', + '7f07e7f0e47f531b0723b0b6fb0721','7f0e27f1487f531b0b0bb0b6fb0722','7f0e37f0e37f14898082b072297c35', + '7ec967f0e37f14998082b0787b06bd','7f07e7f0e47f531b0723b0b6fb0721','7f0e27f1487f531b0b0bb0b6fb0722', + '7f0e37f0e366aa89801eb072297c35','7ec967f0e37f14998082b0787b06bd','7f07e7f0e47f149b0723b0787b0721', + '7f0e27f1487f531b0b0bb0b6fb0722','7f0e37f0e366aa89801eb072297c35','7ec967f0e37f14998082b0723b06bd', + '7f07e7f0e47f149b0723b0787b0721','7f0e27f0e47f531b0723b0b6fb0722','7f0e37f0e366aa89801eb072297c35', + '7ec967f0e37f14998082b0723b06bd','7f07e7f0e37f14998083b0787b0721','7f0e27f0e47f531b0723b0b6fb0722', + '7f0e37f0e366aa89801eb072297c35','7ec967f0e37f14898082b0723b02d5','7f07e7f0e37f14998082b0787b0721', + '7f07e7f0e47f531b0723b0b6fb0722','7f0e36665b66aa89801e9808297c35','665f67f0e37f14898082b0723b02d5', + '7ec967f0e37f14998082b0787b0721','7f07e7f0e47f531b0723b0b6fb0722','7f0e36665b66a449801e9808297c35', + '665f67f0e37f14898082b0723b02d5','7ec967f0e37f14998082b0787b06bd','7f07e7f0e47f531b0723b0b6fb0721', + '7f0e36665b66a449801e9808297c35','665f67f0e37f14898082b072297c35','7ec967f0e37f14998082b0787b06bd', + '7f07e7f0e47f531b0723b0b6fb0721','7f0e26665b66a449801e9808297c35','665f67f0e37f1489801eb072297c35', + '7ec967f0e37f14998082b0787b06bd','7f07e7f0e47f531b0723b0b6fb0721','7f0e27f1487f531b0b0bb0b6fb0722'], + + /** + * 数字转中文速查表 + * @Array Of Property + * @trans ['日','一','二','三','四','五','六','七','八','九','十'] + * @return Cn string + */ + nStr1:["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d","\u4e03","\u516b","\u4e5d","\u5341"], + + /** + * 日期转农历称呼速查表 + * @Array Of Property + * @trans ['初','十','廿','卅'] + * @return Cn string + */ + nStr2:["\u521d","\u5341","\u5eff","\u5345"], + + /** + * 月份转农历称呼速查表 + * @Array Of Property + * @trans ['正','一','二','三','四','五','六','七','八','九','十','冬','腊'] + * @return Cn string + */ + nStr3:["\u6b63","\u4e8c","\u4e09","\u56db","\u4e94","\u516d","\u4e03","\u516b","\u4e5d","\u5341","\u51ac","\u814a"], + + /** + * 返回农历y年一整年的总天数 + * @param lunar Year + * @return Number + * @eg:var count = calendar.lYearDays(1987) ;//count=387 + */ + lYearDays:function(y) { + var i, sum = 348; + for(i=0x8000; i>0x8; i>>=1) { sum += (calendar.lunarInfo[y-1900] & i)? 1: 0; } + return(sum+calendar.leapDays(y)); + }, + + /** + * 返回农历y年闰月是哪个月;若y年没有闰月 则返回0 + * @param lunar Year + * @return Number (0-12) + * @eg:var leapMonth = calendar.leapMonth(1987) ;//leapMonth=6 + */ + leapMonth:function(y) { //闰字编码 \u95f0 + return(calendar.lunarInfo[y-1900] & 0xf); + }, + + /** + * 返回农历y年闰月的天数 若该年没有闰月则返回0 + * @param lunar Year + * @return Number (0、29、30) + * @eg:var leapMonthDay = calendar.leapDays(1987) ;//leapMonthDay=29 + */ + leapDays:function(y) { + if(calendar.leapMonth(y)) { + return((calendar.lunarInfo[y-1900] & 0x10000)? 30: 29); + } + return(0); + }, + + /** + * 返回农历y年m月(非闰月)的总天数,计算m为闰月时的天数请使用leapDays方法 + * @param lunar Year + * @return Number (-1、29、30) + * @eg:var MonthDay = calendar.monthDays(1987,9) ;//MonthDay=29 + */ + monthDays:function(y,m) { + if(m>12 || m<1) {return -1}//月份参数从1至12,参数错误返回-1 + return( (calendar.lunarInfo[y-1900] & (0x10000>>m))? 30: 29 ); + }, + + /** + * 返回公历(!)y年m月的天数 + * @param solar Year + * @return Number (-1、28、29、30、31) + * @eg:var solarMonthDay = calendar.leapDays(1987) ;//solarMonthDay=30 + */ + solarDays:function(y,m) { + if(m>12 || m<1) {return -1} //若参数错误 返回-1 + var ms = m-1; + if(ms==1) { //2月份的闰平规律测算后确认返回28或29 + return(((y%4 == 0) && (y%100 != 0) || (y%400 == 0))? 29: 28); + }else { + return(calendar.solarMonth[ms]); + } + }, + + /** + * 农历年份转换为干支纪年 + * @param lYear 农历年的年份数 + * @return Cn string + */ + toGanZhiYear:function(lYear) { + var ganKey = (lYear - 3) % 10; + var zhiKey = (lYear - 3) % 12; + if(ganKey == 0) ganKey = 10;//如果余数为0则为最后一个天干 + if(zhiKey == 0) zhiKey = 12;//如果余数为0则为最后一个地支 + return calendar.Gan[ganKey-1] + calendar.Zhi[zhiKey-1]; + + }, + + /** + * 公历月、日判断所属星座 + * @param cMonth [description] + * @param cDay [description] + * @return Cn string + */ + toAstro:function(cMonth,cDay) { + var s = "\u9b54\u7faf\u6c34\u74f6\u53cc\u9c7c\u767d\u7f8a\u91d1\u725b\u53cc\u5b50\u5de8\u87f9\u72ee\u5b50\u5904\u5973\u5929\u79e4\u5929\u874e\u5c04\u624b\u9b54\u7faf"; + var arr = [20,19,21,21,21,22,23,23,23,23,22,22]; + return s.substr(cMonth*2 - (cDay < arr[cMonth-1] ? 2 : 0),2) + "\u5ea7";//座 + }, + + /** + * 传入offset偏移量返回干支 + * @param offset 相对甲子的偏移量 + * @return Cn string + */ + toGanZhi:function(offset) { + return calendar.Gan[offset%10] + calendar.Zhi[offset%12]; + }, + + /** + * 传入公历(!)y年获得该年第n个节气的公历日期 + * @param y公历年(1900-2100);n二十四节气中的第几个节气(1~24);从n=1(小寒)算起 + * @return day Number + * @eg:var _24 = calendar.getTerm(1987,3) ;//_24=4;意即1987年2月4日立春 + */ + getTerm:function(y,n) { + if(y<1900 || y>2100) {return -1;} + if(n<1 || n>24) {return -1;} + var _table = calendar.sTermInfo[y-1900]; + var _info = [ + parseInt('0x'+_table.substr(0,5)).toString() , + parseInt('0x'+_table.substr(5,5)).toString(), + parseInt('0x'+_table.substr(10,5)).toString(), + parseInt('0x'+_table.substr(15,5)).toString(), + parseInt('0x'+_table.substr(20,5)).toString(), + parseInt('0x'+_table.substr(25,5)).toString() + ]; + var _calday = [ + _info[0].substr(0,1), + _info[0].substr(1,2), + _info[0].substr(3,1), + _info[0].substr(4,2), + + _info[1].substr(0,1), + _info[1].substr(1,2), + _info[1].substr(3,1), + _info[1].substr(4,2), + + _info[2].substr(0,1), + _info[2].substr(1,2), + _info[2].substr(3,1), + _info[2].substr(4,2), + + _info[3].substr(0,1), + _info[3].substr(1,2), + _info[3].substr(3,1), + _info[3].substr(4,2), + + _info[4].substr(0,1), + _info[4].substr(1,2), + _info[4].substr(3,1), + _info[4].substr(4,2), + + _info[5].substr(0,1), + _info[5].substr(1,2), + _info[5].substr(3,1), + _info[5].substr(4,2), + ]; + return parseInt(_calday[n-1]); + }, + + /** + * 传入农历数字月份返回汉语通俗表示法 + * @param lunar month + * @return Cn string + * @eg:var cnMonth = calendar.toChinaMonth(12) ;//cnMonth='腊月' + */ + toChinaMonth:function(m) { // 月 => \u6708 + if(m>12 || m<1) {return -1} //若参数错误 返回-1 + var s = calendar.nStr3[m-1]; + s+= "\u6708";//加上月字 + return s; + }, + + /** + * 传入农历日期数字返回汉字表示法 + * @param lunar day + * @return Cn string + * @eg:var cnDay = calendar.toChinaDay(21) ;//cnMonth='廿一' + */ + toChinaDay:function(d){ //日 => \u65e5 + var s; + switch (d) { + case 10: + s = '\u521d\u5341'; break; + case 20: + s = '\u4e8c\u5341'; break; + break; + case 30: + s = '\u4e09\u5341'; break; + break; + default : + s = calendar.nStr2[Math.floor(d/10)]; + s += calendar.nStr1[d%10]; + } + return(s); + }, + + /** + * 年份转生肖[!仅能大致转换] => 精确划分生肖分界线是“立春” + * @param y year + * @return Cn string + * @eg:var animal = calendar.getAnimal(1987) ;//animal='兔' + */ + getAnimal: function(y) { + return calendar.Animals[(y - 4) % 12] + }, + + /** + * 传入阳历年月日获得详细的公历、农历object信息 <=>JSON + * @param y solar year + * @param m solar month + * @param d solar day + * @return JSON object + * @eg:console.log(calendar.solar2lunar(1987,11,01)); + */ + solar2lunar:function (y,m,d) { //参数区间1900.1.31~2100.12.31 + if(y<1900 || y>2100) {return -1;}//年份限定、上限 + if(y==1900&&m==1&&d<31) {return -1;}//下限 + if(!y) { //未传参 获得当天 + var objDate = new Date(); + }else { + var objDate = new Date(y,parseInt(m)-1,d) + } + var i, leap=0, temp=0; + //修正ymd参数 + var y = objDate.getFullYear(),m = objDate.getMonth()+1,d = objDate.getDate(); + var offset = (Date.UTC(objDate.getFullYear(),objDate.getMonth(),objDate.getDate()) - Date.UTC(1900,0,31))/86400000; + for(i=1900; i<2101 && offset>0; i++) { temp=calendar.lYearDays(i); offset-=temp; } + if(offset<0) { offset+=temp; i--; } + + //是否今天 + var isTodayObj = new Date(),isToday=false; + if(isTodayObj.getFullYear()==y && isTodayObj.getMonth()+1==m && isTodayObj.getDate()==d) { + isToday = true; + } + //星期几 + var nWeek = objDate.getDay(),cWeek = calendar.nStr1[nWeek]; + if(nWeek==0) {nWeek =7;}//数字表示周几顺应天朝周一开始的惯例 + //农历年 + var year = i; + + var leap = calendar.leapMonth(i); //闰哪个月 + var isLeap = false; + + //效验闰月 + for(i=1; i<13 && offset>0; i++) { + //闰月 + if(leap>0 && i==(leap+1) && isLeap==false){ + --i; + isLeap = true; temp = calendar.leapDays(year); //计算农历闰月天数 + } + else{ + temp = calendar.monthDays(year, i);//计算农历普通月天数 + } + //解除闰月 + if(isLeap==true && i==(leap+1)) { isLeap = false; } + offset -= temp; + } + + if(offset==0 && leap>0 && i==leap+1) + if(isLeap){ + isLeap = false; + }else{ + isLeap = true; --i; + } + if(offset<0){ offset += temp; --i; } + //农历月 + var month = i; + //农历日 + var day = offset + 1; + + //天干地支处理 + var sm = m-1; + var gzY = calendar.toGanZhiYear(year); + + //月柱 1900年1月小寒以前为 丙子月(60进制12) + var firstNode = calendar.getTerm(year,(m*2-1));//返回当月「节」为几日开始 + var secondNode = calendar.getTerm(year,(m*2));//返回当月「节」为几日开始 + + //依据12节气修正干支月 + var gzM = calendar.toGanZhi((y-1900)*12+m+11); + if(d>=firstNode) { + gzM = calendar.toGanZhi((y-1900)*12+m+12); + } + + //传入的日期的节气与否 + var isTerm = false; + var Term = null; + if(firstNode==d) { + isTerm = true; + Term = calendar.solarTerm[m*2-2]; + } + if(secondNode==d) { + isTerm = true; + Term = calendar.solarTerm[m*2-1]; + } + //日柱 当月一日与 1900/1/1 相差天数 + var dayCyclical = Date.UTC(y,sm,1,0,0,0,0)/86400000+25567+10; + var gzD = calendar.toGanZhi(dayCyclical+d-1); + //该日期所属的星座 + var astro = calendar.toAstro(m,d); + + return {'lYear':year,'lMonth':month,'lDay':day,'Animal':calendar.getAnimal(year),'IMonthCn':(isLeap?"\u95f0":'')+calendar.toChinaMonth(month),'IDayCn':calendar.toChinaDay(day),'cYear':y,'cMonth':m,'cDay':d,'gzYear':gzY,'gzMonth':gzM,'gzDay':gzD,'isToday':isToday,'isLeap':isLeap,'nWeek':nWeek,'ncWeek':"\u661f\u671f"+cWeek,'isTerm':isTerm,'Term':Term,'astro':astro}; + }, + + /** + * 传入农历年月日以及传入的月份是否闰月获得详细的公历、农历object信息 <=>JSON + * @param y lunar year + * @param m lunar month + * @param d lunar day + * @param isLeapMonth lunar month is leap or not.[如果是农历闰月第四个参数赋值true即可] + * @return JSON object + * @eg:console.log(calendar.lunar2solar(1987,9,10)); + */ + lunar2solar:function(y,m,d,isLeapMonth) { //参数区间1900.1.31~2100.12.1 + var isLeapMonth = !!isLeapMonth; + var leapOffset = 0; + var leapMonth = calendar.leapMonth(y); + var leapDay = calendar.leapDays(y); + if(isLeapMonth&&(leapMonth!=m)) {return -1;}//传参要求计算该闰月公历 但该年得出的闰月与传参的月份并不同 + if(y==2100&&m==12&&d>1 || y==1900&&m==1&&d<31) {return -1;}//超出了最大极限值 + var day = calendar.monthDays(y,m); + var _day = day; + //bugFix 2016-9-25 + //if month is leap, _day use leapDays method + if(isLeapMonth) { + _day = calendar.leapDays(y,m); + } + if(y < 1900 || y > 2100 || d > _day) {return -1;}//参数合法性效验 + + //计算农历的时间差 + var offset = 0; + for(var i=1900;i0) { + offset+=calendar.leapDays(y);isAdd = true; + } + } + offset+=calendar.monthDays(y,i); + } + //转换闰月农历 需补充该年闰月的前一个月的时差 + if(isLeapMonth) {offset+=day;} + //1900年农历正月一日的公历时间为1900年1月30日0时0分0秒(该时间也是本农历的最开始起始点) + var stmap = Date.UTC(1900,1,30,0,0,0); + var calObj = new Date((offset+d-31)*86400000+stmap); + var cY = calObj.getUTCFullYear(); + var cM = calObj.getUTCMonth()+1; + var cD = calObj.getUTCDate(); + + return calendar.solar2lunar(cY,cM,cD); + } +}; + +export default calendar +/* eslint-disable */ diff --git a/src/components/Calendar/calendar.vue b/src/components/Calendar/calendar.vue new file mode 100644 index 00000000..b0976ff2 --- /dev/null +++ b/src/components/Calendar/calendar.vue @@ -0,0 +1,837 @@ + + + + + diff --git a/src/components/Hamburger/index.vue b/src/components/Hamburger/index.vue new file mode 100644 index 00000000..f1f9bda1 --- /dev/null +++ b/src/components/Hamburger/index.vue @@ -0,0 +1,58 @@ + + + + + diff --git a/src/components/Scrollpane/index.vue b/src/components/Scrollpane/index.vue new file mode 100644 index 00000000..7b25e7b6 --- /dev/null +++ b/src/components/Scrollpane/index.vue @@ -0,0 +1,72 @@ + + + + + diff --git a/src/components/Sticky/index.vue b/src/components/Sticky/index.vue new file mode 100644 index 00000000..fa165bc7 --- /dev/null +++ b/src/components/Sticky/index.vue @@ -0,0 +1,91 @@ + + + diff --git a/src/components/SvgIcon/index.vue b/src/components/SvgIcon/index.vue new file mode 100644 index 00000000..12a1f58d --- /dev/null +++ b/src/components/SvgIcon/index.vue @@ -0,0 +1,43 @@ + + + + + diff --git a/src/components/Tinymce/components/editorImage.vue b/src/components/Tinymce/components/editorImage.vue new file mode 100644 index 00000000..bcd82099 --- /dev/null +++ b/src/components/Tinymce/components/editorImage.vue @@ -0,0 +1,103 @@ + + + + + diff --git a/src/components/Tinymce/index.vue b/src/components/Tinymce/index.vue new file mode 100644 index 00000000..b8d03287 --- /dev/null +++ b/src/components/Tinymce/index.vue @@ -0,0 +1,204 @@ +