作者 刘建成

1

正在显示 79 个修改的文件 包含 4693 行增加0 行删除

要显示太多修改。

为保证性能只显示 79 of 79+ 个文件。

{
"presets": [
["env", {
"modules": false,
"targets": {
"browsers": ["> 1%", "last 2 versions", "not ie <= 8"]
}
}],
"stage-2"
],
"plugins": ["transform-vue-jsx", "transform-runtime"]
}
... ...
root = true
[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
... ...
.DS_Store
node_modules/
/dist/
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
... ...
// 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": {}
}
}
... ...
# wuliu
> A Vue.js project
## Build Setup
``` bash
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
# build for production and view the bundle analyzer report
npm run build --report
```
For a detailed explanation on how things work, check out the [guide](http://vuejs-templates.github.io/webpack/) and [docs for vue-loader](http://vuejs.github.io/vue-loader).
... ...
'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, // If you are using ts-loader, setting this to true will make TypeScript errors show up during build.
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'
))
})
})
... ...
'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)
}
}
... ...
'use strict'
const path = require('path')
const config = require('../config')
const ExtractTextPlugin = require('extract-text-webpack-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 = options.usePostCSS ? [cssLoader, postcssLoader] : [cssLoader]
if (loader) {
loaders.push({
loader: loader + '-loader',
options: Object.assign({}, loaderOptions, {
sourceMap: options.sourceMap
})
})
}
// Extract CSS when that option is specified
// (which is the case during production build)
if (options.extract) {
return ExtractTextPlugin.extract({
use: loaders,
fallback: 'vue-style-loader'
})
} else {
return ['vue-style-loader'].concat(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')
})
}
}
... ...
'use strict'
const utils = require('./utils')
const config = require('../config')
const isProduction = process.env.NODE_ENV === 'production'
const sourceMapEnabled = isProduction
? config.build.productionSourceMap
: config.dev.cssSourceMap
module.exports = {
loaders: utils.cssLoaders({
sourceMap: sourceMapEnabled,
extract: isProduction
}),
cssSourceMap: sourceMapEnabled,
cacheBusting: config.dev.cacheBusting,
transformToRequire: {
video: ['src', 'poster'],
source: 'src',
img: 'src',
image: 'xlink:href'
}
}
... ...
'use strict'
const path = require('path')
const utils = require('./utils')
const config = require('../config')
const vueLoaderConfig = require('./vue-loader.conf')
function resolve (dir) {
return path.join(__dirname, '..', dir)
}
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: {
'vue$': 'vue/dist/vue.esm.js',
'@': resolve('src'),
}
},
module: {
rules: [
{
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: /\.(png|jpe?g|gif|svg)(\?.*)?$/,
loader: 'url-loader',
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]')
}
}
]
},
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'
}
}
... ...
'use strict'
const utils = require('./utils')
const webpack = require('webpack')
const config = require('../config')
const merge = require('webpack-merge')
const path = require('path')
const baseWebpackConfig = require('./webpack.base.conf')
const CopyWebpackPlugin = require('copy-webpack-plugin')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const FriendlyErrorsPlugin = require('friendly-errors-webpack-plugin')
const portfinder = require('portfinder')
const HOST = process.env.HOST
const PORT = process.env.PORT && Number(process.env.PORT)
const devWebpackConfig = merge(baseWebpackConfig, {
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: {
rewrites: [
{ from: /.*/, to: path.posix.join(config.dev.assetsPublicPath, 'index.html') },
],
},
hot: true,
contentBase: false, // since we use CopyWebpackPlugin.
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(),
new webpack.NamedModulesPlugin(), // HMR shows correct file names in console on update.
new webpack.NoEmitOnErrorsPlugin(),
// https://github.com/ampedandwired/html-webpack-plugin
new HtmlWebpackPlugin({
filename: 'index.html',
template: 'index.html',
inject: true
}),
// copy custom static assets
new CopyWebpackPlugin([
{
from: path.resolve(__dirname, '../static'),
to: config.dev.assetsSubDirectory,
ignore: ['.*']
}
])
]
})
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)
}
})
})
... ...
'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 ExtractTextPlugin = require('extract-text-webpack-plugin')
const OptimizeCSSPlugin = require('optimize-css-assets-webpack-plugin')
const UglifyJsPlugin = require('uglifyjs-webpack-plugin')
const env = require('../config/prod.env')
const webpackConfig = merge(baseWebpackConfig, {
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].js'),
chunkFilename: utils.assetsPath('js/[id].[chunkhash].js')
},
plugins: [
// http://vuejs.github.io/vue-loader/en/workflow/production.html
new webpack.DefinePlugin({
'process.env': env
}),
new UglifyJsPlugin({
uglifyOptions: {
compress: {
warnings: false
}
},
sourceMap: config.build.productionSourceMap,
parallel: true
}),
// extract css into its own file
new ExtractTextPlugin({
filename: utils.assetsPath('css/[name].[contenthash].css'),
// Setting the following option to `false` will not extract CSS from codesplit chunks.
// Their CSS will instead be inserted dynamically with style-loader when the codesplit chunk has been loaded by webpack.
// It's currently set to `true` because we are seeing that sourcemaps are included in the codesplit bundle as well when it's `false`,
// increasing file size: https://github.com/vuejs-templates/webpack/issues/1110
allChunks: true,
}),
// Compress extracted CSS. We are using this plugin so that possible
// duplicated CSS from different components can be deduped.
new OptimizeCSSPlugin({
cssProcessorOptions: config.build.productionSourceMap
? { safe: true, map: { inline: false } }
: { safe: true }
}),
// 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,
minify: {
removeComments: true,
collapseWhitespace: true,
removeAttributeQuotes: true
// more options:
// https://github.com/kangax/html-minifier#options-quick-reference
},
// necessary to consistently work with multiple chunks via CommonsChunkPlugin
chunksSortMode: 'dependency'
}),
// keep module.id stable when vendor modules does not change
new webpack.HashedModuleIdsPlugin(),
// enable scope hoisting
new webpack.optimize.ModuleConcatenationPlugin(),
// split vendor js into its own file
new webpack.optimize.CommonsChunkPlugin({
name: 'vendor',
minChunks (module) {
// any required modules inside node_modules are extracted to vendor
return (
module.resource &&
/\.js$/.test(module.resource) &&
module.resource.indexOf(
path.join(__dirname, '../node_modules')
) === 0
)
}
}),
// extract webpack runtime and module manifest to its own file in order to
// prevent vendor hash from being updated whenever app bundle is updated
new webpack.optimize.CommonsChunkPlugin({
name: 'manifest',
minChunks: Infinity
}),
// This instance extracts shared chunks from code splitted chunks and bundles them
// in a separate chunk, similar to the vendor chunk
// see: https://webpack.js.org/plugins/commons-chunk-plugin/#extra-async-commons-chunk
new webpack.optimize.CommonsChunkPlugin({
name: 'app',
async: 'vendor-async',
children: true,
minChunks: 3
}),
// copy custom static assets
new CopyWebpackPlugin([
{
from: path.resolve(__dirname, '../static'),
to: config.build.assetsSubDirectory,
ignore: ['.*']
}
])
]
})
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.bundleAnalyzerReport) {
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin
webpackConfig.plugins.push(new BundleAnalyzerPlugin())
}
module.exports = webpackConfig
... ...
'use strict'
const merge = require('webpack-merge')
const prodEnv = require('./prod.env')
module.exports = merge(prodEnv, {
NODE_ENV: '"development"'
})
... ...
'use strict'
// Template version: 1.3.1
// see http://vuejs-templates.github.io/webpack for documentation.
const path = require('path')
module.exports = {
dev: {
// Paths
assetsSubDirectory: 'static',
assetsPublicPath: '/',
proxyTable: {
'/api': {
target: 'http://wisdom.jd.brotop.cn', // 请求的第三方接口 或 后端,线上接口
changeOrigin: true, // 在本地会创建一个虚拟服务端,然后发送请求的数据,并同时接收请求的数据,这样服务端和服务端进行数据的交互就不会有跨域问题
secure: false, //true是https false是http
pathRewrite: { // 路径重写,
'^/api': '/' // 替换target中的请求地址,也就是说以后你在请求http://api.douban.com/v2/XXXXX这个地址的时候直接写成/api即可。
}
},
},
// Various Dev Server settings
host: 'localhost', // can be overwritten by process.env.HOST
port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
autoOpenBrowser: false,
errorOverlay: true,
notifyOnErrors: true,
poll: false, // https://webpack.js.org/configuration/dev-server/#devserver-watchoptions-
/**
* Source Maps
*/
// https://webpack.js.org/configuration/devtool/#development
devtool: 'cheap-module-eval-source-map',
// If you have problems debugging vue-files in devtools,
// set this to false - it *may* help
// https://vue-loader.vuejs.org/en/options.html#cachebusting
cacheBusting: true,
cssSourceMap: true
},
build: {
// Template for index.html
index: path.resolve(__dirname, '../dist/index.html'),
// Paths
assetsRoot: path.resolve(__dirname, '../dist'),
assetsSubDirectory: 'static',
assetsPublicPath: '/',
/**
* Source Maps
*/
productionSourceMap: true,
// 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
}
}
... ...
'use strict'
module.exports = {
NODE_ENV: '"production"'
}
... ...
不能预览此文件类型
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>wuliu</title>
</head>
<body>
<div id="app"></div>
<!-- built files will be auto injected -->
</body>
</html>
... ...
此 diff 太大无法显示。
{
"name": "wuliu",
"version": "1.0.0",
"description": "A Vue.js project",
"author": "liujiancheng <ljc@bronet.cn>",
"private": true,
"scripts": {
"dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js",
"start": "npm run dev",
"build": "node build/build.js"
},
"dependencies": {
"element-china-area-data": "^5.0.2",
"element-ui": "^2.14.1",
"vue": "^2.5.2",
"vue-router": "^3.0.1"
},
"devDependencies": {
"autoprefixer": "^7.1.2",
"axios": "^0.21.1",
"babel-core": "^6.22.1",
"babel-helper-vue-jsx-merge-props": "^2.0.3",
"babel-loader": "^7.1.1",
"babel-plugin-syntax-jsx": "^6.18.0",
"babel-plugin-transform-runtime": "^6.22.0",
"babel-plugin-transform-vue-jsx": "^3.5.0",
"babel-preset-env": "^1.3.2",
"babel-preset-stage-2": "^6.22.0",
"chalk": "^2.0.1",
"copy-webpack-plugin": "^4.0.1",
"css-loader": "^0.28.0",
"extract-text-webpack-plugin": "^3.0.0",
"file-loader": "^1.1.4",
"friendly-errors-webpack-plugin": "^1.6.1",
"html-webpack-plugin": "^2.30.1",
"node-notifier": "^5.1.2",
"optimize-css-assets-webpack-plugin": "^3.2.0",
"ora": "^1.2.0",
"portfinder": "^1.0.13",
"postcss-import": "^11.0.0",
"postcss-loader": "^2.0.8",
"postcss-url": "^7.2.1",
"rimraf": "^2.6.0",
"semver": "^5.3.0",
"shelljs": "^0.7.6",
"uglifyjs-webpack-plugin": "^1.1.1",
"url-loader": "^0.5.8",
"vue-loader": "^13.3.0",
"vue-style-loader": "^3.0.1",
"vue-template-compiler": "^2.5.2",
"webpack": "^3.6.0",
"webpack-bundle-analyzer": "^2.9.0",
"webpack-dev-server": "^2.9.1",
"webpack-merge": "^4.1.0"
},
"engines": {
"node": ">= 6.0.0",
"npm": ">= 3.0.0"
},
"browserslist": [
"> 1%",
"last 2 versions",
"not ie <= 8"
]
}
... ...
<template>
<div id="app">
<router-view />
</div>
</template>
<script>
export default {
name: "App",
data() {
return {
};
},
methods: {
},
};
</script>
<style>
* {
margin: 0;
padding: 0;
}
</style>
... ...
import Axios from "axios";
// 请求拦截
Axios.interceptors.request.use(
function(config) {
return config;
},
function(err) {
return Promise.reject(error);
}
);
// 响应拦截
Axios.interceptors.response.use(
function(response) {
console.log(response)
//对响应数据做事情
console.log("请求成功", response);
if (response.data.code == 200) {
return response.data;
} else {
return Promise.reject(response.data);
}
},
function(error) {
console.log(error);
return Promise.reject(error.response.data);
}
);
export default Axios;
\ No newline at end of file
... ...
<template>
<div>
<div class="box-loii">
<div class="box-img">
<img src="../assets/ditu.png" class="ditus" alt="" />
</div>
<div class="zaitus">
<div class="lis">
<img src="../assets/16.png" class="zai-img" alt="" />
<div class="zaitus-text">在途车辆</div>
<div class="shulian">1080</div>
</div>
<div class="lis">
<img src="../assets/16.png" class="zai-img" alt="" />
<div class="zaitus-text">往程车辆</div>
<div class="shulian">1080</div>
</div>
<div class="lis">
<img src="../assets/16.png" class="zai-img" alt="" />
<div class="zaitus-text">返程车辆</div>
<div class="shulian">1080</div>
</div>
<div class="benninas">
<el-tabs v-model="activeName" @tab-click="handleClick">
<el-tab-pane label="本月" name="first">
<div class="fasuns">
<div class="fayuns">发运产品件数</div>
<div class="danshu">99999</div>
</div>
<div class="fasuns">
<div class="fayuns">运输车次</div>
<div class="danshu">99999</div>
</div>
<div class="fasuns">
<div class="fayuns">运输里程</div>
<div class="danshu">99999</div>
</div>
<div class="fasuns">
<div class="fayuns">告警数量</div>
<div class="danshu">99999</div>
</div>
</el-tab-pane>
<el-tab-pane label="本年" name="second"
><div class="fasuns">
<div class="fayuns">发运产品件数</div>
<div class="danshu">99999</div>
</div>
<div class="fasuns">
<div class="fayuns">运输车次</div>
<div class="danshu">99999</div>
</div>
<div class="fasuns">
<div class="fayuns">运输里程</div>
<div class="danshu">99999</div>
</div>
<div class="fasuns">
<div class="fayuns">告警数量</div>
<div class="danshu">99999</div>
</div></el-tab-pane
>
</el-tabs>
</div>
<div class="danqian">
<div class="lisr">
<div class="geli"></div>
<div class="danqina">当前车辆信息</div>
</div>
<div class="right" @click="dialogVisible = true">
<div class="chakans">查看详情</div>
<img src="../assets/you.png" class="you-img" alt="" />
</div>
</div>
<div class="raolus">
<div class="nash">
<img src="../assets/gantan.png" class="gans" alt="" />
<div class="cheliang">车辆绕路</div>
</div>
<div class="nash">
<img src="../assets/gantan.png" class="gans" alt="" />
<div class="cheliang">产品偏移</div>
</div>
<div class="nash">
<img src="../assets/gantan.png" class="gans" alt="" />
<div class="cheliang">司机未按路线行驶</div>
</div>
</div>
<div>
<div class="fasuns">
<div class="fayuns">发运产品件数</div>
<div class="danshu">99999</div>
</div>
<div class="fasuns">
<div class="fayuns">运输车次</div>
<div class="danshu">99999</div>
</div>
<div class="fasuns">
<div class="fayuns">运输里程</div>
<div class="danshu">99999</div>
</div>
<div class="fasuns">
<div class="fayuns">告警数量</div>
<div class="danshu">99999</div>
</div>
<div class="fasuns">
<div class="fayuns">发运产品件数</div>
<div class="danshu">99999</div>
</div>
<div class="fasuns">
<div class="fayuns">运输车次</div>
<div class="danshu">99999</div>
</div>
<div class="fasuns">
<div class="fayuns">运输里程</div>
<div class="danshu">99999</div>
</div>
<div class="fasuns">
<div class="fayuns">告警数量</div>
<div class="danshu">99999</div>
</div>
</div>
</div>
</div>
<!-- 途中检查记录 -->
<el-dialog
title="技术资料"
:visible.sync="dialogVisible"
width="80%"
style="margin-top: 20px"
:append-to-body="true"
>
<div class="jishus" style='height: 800px'>
<div class="jichuss">
<div class="ges"></div>
<div class="jichusa">基础信息</div>
</div>
<div class="fahuo-li" style="margin-top:20px">
<div class="a" style="width:33.3%;">
<div class="sd">
<div class="fa-ji">当前状况</div>
<div class="conrt">车辆绕路、产品偏移、司机未按路线形式.5</div>
</div>
<div class="sd">
<div class="fa-ji">收货单位</div>
<div class="conrt">内容字段</div>
</div>
<div class="sd">
<div class="fa-ji">当前位置</div>
<div class="conrt">天津市</div>
</div>
<div class="sd">
<div class="fa-ji">加速度的加速数据</div>
<div class="biaos">
<div class="chaos">X轴(超速)</div>
<div class="chaos">Y轴</div>
<div class="chaos">Z轴</div>
</div>
<div class="biaoss">
<div class="chaoss">1000</div>
<div class="chaoss">60</div>
<div class="chaoss">55</div>
</div>
</div>
<div class="sd">
<div class="fa-ji">GPS定位</div>
<div class="conrt">经度:117.201081309 纬度:39.1439299</div>
</div>
<div class="sd">
<div class="fa-ji">GPS位置精度</div>
<div class="conrt">50</div>
</div>
</div>
<div class="a" style="width:33.3%;">
<div class="sd">
<div class="fa-ji">当前状况</div>
<div class="conrt">车辆绕路、产品偏移、司机未按路线形式.5</div>
</div>
<div class="sd">
<div class="fa-ji">收货单位</div>
<div class="conrt">内容字段</div>
</div>
<div class="sd">
<div class="fa-ji">当前位置</div>
<div class="conrt">天津市</div>
</div>
<div class="sd">
<div class="fa-ji">加速度的加速数据</div>
<div class="biaos">
<div class="chaos">X轴(超速)</div>
<div class="chaos">Y轴</div>
<div class="chaos">Z轴</div>
</div>
<div class="biaoss">
<div class="chaoss">1000</div>
<div class="chaoss">60</div>
<div class="chaoss">55</div>
</div>
</div>
<div class="sd">
<div class="fa-ji">GPS定位</div>
<div class="conrt">经度:117.201081309 纬度:39.1439299</div>
</div>
<div class="sd">
<div class="fa-ji">GPS位置精度</div>
<div class="conrt">50</div>
</div>
</div>
<div class="a" style="width:33.3%;">
<div class="sd">
<div class="fa-ji">当前状况</div>
<div class="conrt">车辆绕路、产品偏移、司机未按路线形式.5</div>
</div>
<div class="sd">
<div class="fa-ji">收货单位</div>
<div class="conrt">内容字段</div>
</div>
<div class="sd">
<div class="fa-ji">当前位置</div>
<div class="conrt">天津市</div>
</div>
<div class="sd">
<div class="fa-ji">加速度的加速数据</div>
<div class="biaos">
<div class="chaos">X轴(超速)</div>
<div class="chaos">Y轴</div>
<div class="chaos">Z轴</div>
</div>
<div class="biaoss">
<div class="chaoss">1000</div>
<div class="chaoss">60</div>
<div class="chaoss">55</div>
</div>
</div>
<div class="sd">
<div class="fa-ji">GPS定位</div>
<div class="conrt">经度:117.201081309 纬度:39.1439299</div>
</div>
<div class="sd">
<div class="fa-ji">GPS位置精度</div>
<div class="conrt">50</div>
</div>
</div>
</div>
<div class="jichuss">
<div class="ges"></div>
<div class="jichusa">产品货运单</div>
</div>
<div class="lista">
<el-table
:data="tablelist"
border
style="width: 100%"
height="100%"
:header-cell-style="{ background: '#F4F4F5', color: '#303133' }"
>
<el-table-column fixed prop="date" label="铲平货运单编号" width="292">
</el-table-column>
<el-table-column prop="name" label="收货单位" width="292">
</el-table-column>
<el-table-column prop="province" label="产品名称" width="292">
</el-table-column>
<el-table-column prop="city" label="产品编号" width="292">
</el-table-column>
<el-table-column prop="city" label="装车清单" width="292">
</el-table-column>
<el-table-column prop="city" label="总件数" width="292">
</el-table-column>
<el-table-column fixed="right" label="操作" width="292">
<template slot-scope="scope">
<el-button
@click="handleClick(scope.row)"
type="text"
size="small"
>删除</el-button
>
</template>
</el-table-column>
</el-table>
</div>
<div class="jichuss" style="margin-top: 23px;">
<div class="ges"></div>
<div class="jichusa">异常事件报告</div>
</div>
<div class="lista">
<el-table
:data="tablelist"
border
style="width: 100%"
height="100%"
:header-cell-style="{ background: '#F4F4F5', color: '#303133' }"
>
<el-table-column fixed prop="date" label="铲平货运单编号" width="292">
</el-table-column>
<el-table-column prop="name" label="收货单位" width="292">
</el-table-column>
<el-table-column prop="province" label="产品名称" width="292">
</el-table-column>
<el-table-column prop="city" label="产品编号" width="292">
</el-table-column>
<el-table-column prop="city" label="装车清单" width="292">
</el-table-column>
<el-table-column prop="city" label="总件数" width="292">
</el-table-column>
<el-table-column fixed="right" label="操作" width="292">
<template slot-scope="scope">
<el-button
@click="handleClick(scope.row)"
type="text"
size="small"
>删除</el-button
>
</template>
</el-table-column>
</el-table>
</div>
<div class="chaknas">查看更多....</div>
<div class="jichuss" style="margin-top: 23px;">
<div class="ges"></div>
<div class="jichusa">途中检查记录</div>
</div>
<div class="lista">
<el-table
:data="tablelist"
border
style="width: 100%"
height="100%"
:header-cell-style="{ background: '#F4F4F5', color: '#303133' }"
>
<el-table-column fixed prop="date" label="途中检查记录id" width="292">
</el-table-column>
<el-table-column prop="name" label="检查转态" width="292">
</el-table-column>
<el-table-column prop="province" label="检查说明" width="292">
</el-table-column>
<el-table-column prop="city" label="检查时间" width="292">
</el-table-column>
<el-table-column prop="city" label="检查地点" width="292">
</el-table-column>
<el-table-column prop="city" label="总件数" width="292">
</el-table-column>
<el-table-column fixed="right" label="操作" width="292">
<template slot-scope="scope">
<el-button
@click="handleClick(scope.row)"
type="text"
size="small"
>删除</el-button
>
</template>
</el-table-column>
</el-table>
</div>
<div class="chaknas" style="margin-bottom: 20px;">查看更多....</div>
</div>
</el-dialog>
<Tabbar :actives="1"></Tabbar>
</div>
</template>
<script>
import Tabbar from "./tabbar.vue";
export default {
components: {
Tabbar,
},
data() {
return {
activeName: "second",
dialogVisible: false,
tablelists: [
{
date: "请输入产品型号",
name: "请输入产品编号",
province: "请输入产品数量",
city: "请输入到货时间",
zhuan: "已完成",
},
],
tablelist: [
{
date: "请输入产品型号",
name: "请输入产品编号",
province: "请输入产品数量",
city: "请输入到货时间",
zhuan: "已完成",
},
],
};
},
methods: {
handleClick(tab, event) {
console.log(tab, event);
},
},
};
</script>
<style>
.el-tabs .el-tabs--top {
width: 80%;
}
.is-top {
width: 80%;
text-align: center;
}
.el-dialog {
border-radius: 16px;
}
.el-dialog__body{
padding: 0 20px 20px 20px;
}
</style>
<style scoped>
@import "../css/home.css";
@import "../css/fa.css";
</style>
\ No newline at end of file
... ...
<template>
<div class="logo">
<div class="logo-box">
<div class="img">
<img src="../assets/logo.png" class="img-box" alt="" />
</div>
<div class="yong-ping">
<div class="box-cont">
<div class="title">智慧数字物流管理平台</div>
<div class="shouji">
<div class="shoujivv">手机号</div>
<div class="shouinput">
<img src="../assets/Icon.png" class="iphone-img" alt="" />
<input
type="number"
placeholder="请输入手机号"
class="iphontiphone"
v-model="name"
/>
</div>
</div>
<div class="shouji">
<div class="shoujivv">密码</div>
<div class="shouinput">
<img src="../assets/Icon_1.png" class="iphone-img" alt="" />
<input
type="password"
placeholder="请输入密码"
class="iphontiphone"
v-model="pass"
/>
</div>
</div>
<div class="shouji">
<div class="shoujivv">验证码</div>
<div class="yanzheng">
<div class="shouinputt">
<img src="../assets/Icon_2.png" class="iphone-img" alt="" />
<input
type="text"
placeholder="请输入验证码"
class="iphontiphonet"
v-model="code"
/>
</div>
<img :src="imgs" class="yan-img" alt="" @click="qie" />
</div>
</div>
<div class="btna" @click="btn">登录</div>
</div>
</div>
</div>
</div>
</template>
<script>
export default {
name: "HelloWorld",
data() {
return {
imgs: "",
uuid: "",
code: "",
name: "",
pass: "",
};
},
methods() {},
created() {
this.codes();
},
methods: {
//登录
btn() {
let that = this;
var url = "/api/auth/login";
let params = {
code: that.code,
password: that.pass,
username: that.name,
uuid: that.uuid,
};
that.$axios
.post(url, params)
.then(function (res) {
console.log(res);
that.$message({
message: "登录成功",
type: "success",
});
setTimeout(function () {
that.$router.push("./home");
}, 800);
sessionStorage.setItem("token", res.data.access_token);
})
.catch(function (err) {
console.log(err);
that.$message.error(err.msg)
that.codes();
});
},
//切换验证码
qie() {
this.codes();
},
//获取验证码接口
codes() {
let that = this;
var url = "/api/code";
let params = {};
that.$axios
.get(url)
.then(function (res) {
console.log(res)
that.imgs = "data:image/png;base64," + res.img;
that.uuid = res.uuid;
})
.catch(function (err) {
console.log(err);
});
},
},
};
</script>
<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
@import "../css/logo.css";
</style>
... ...
<template>
<div class="container" >
<div class="xiugais">
<div class="tanchuans">
<div class="liumima">旧密码</div>
<div class="shuru">
<img src="../assets/Icon_1.png" class="mimas" alt="">
<input type="text" placeholder="请输入旧密码" class="jiumima">
</div>
</div>
<div class="tanchuans">
<div class="liumima">新密码</div>
<div class="shuru">
<img src="../assets/Icon_1.png" class="mimas" alt="">
<input type="text" placeholder="请输入旧密码" class="jiumima">
</div>
</div>
<div class="tanchuans">
<div class="liumima">重复密码</div>
<div class="shuru">
<img src="../assets/Icon_1.png" class="mimas" alt="">
<input type="text" placeholder="请输入旧密码" class="jiumima">
</div>
</div>
<div class="denlu">
<div class="demhlu">登录</div>
<div class="quxiao" @click="close">取消</div>
</div>
</div>
</div>
</template>
<script>
export default {
name: "popup",
methods: {
close() {
this.$emit("close");
},
},
};
</script>
<style>
.container {
position: fixed;
top: 0;
bottom: 0;
left: 0;
right: 0;
background-color: rgba(0, 0, 0, 0.3);
display: flex;
justify-content: center;
align-items: center;
z-index: 9999;
}
.xiugais{
width: 600px;
height: 454px;
background: #FFF;
border-radius: 24px;
padding-top: 20px;
box-sizing: border-box;
}
.tanchuans{
width: 70%;
display: flex;
align-items: left;
justify-content: flex-end;
flex-direction: column;
margin: 30px auto 0;
}
.shuru{
color: #606266;
width: 100%;
height: 40px;
border: solid 1px #E4EAED;
border-radius: 5px;
margin-top: 10px;
display: flex;
align-items: center;
padding-left: 10px;
box-sizing: border-box;
}
.liumima{
font-size: 19px;
color: #606266;
}
.mimas{
width: 24px;
height: 24px;
}
.jiumima{
width: 80%;
height: 100%;
border: none;
outline: none;
font-size: 15px;
margin-left: 11px;
}
.denlu{
width: 70%;
margin: 20px auto 0;
display: flex;
align-items: center;
justify-content: space-between;
}
.demhlu{
width: 40%;
height: 50px;
background: #2f54eb;
font-size: 18px;
color: #FFF;
text-align: center;
line-height: 50px;
border-radius: 12px;
}
.quxiao{
width: 40%;
height: 50px;
border: solid 1px #E4EAED;
font-size: 18px;
color: #606266;
text-align: center;
line-height: 50px;
border-radius: 12px;
}
</style>
... ...
<template>
<div id="app">
<div class="dinbu">
<img src="../assets/wuliu-img.png" class="wuliu" alt="" />
<div class="yunshu">
<div :class="active == 1 ? 'active' : 'yun'" @click="yuns(1)">
运输监管
<div class="gexian" v-if="active == 1"></div>
</div>
<div :class="active == 2 ? 'active' : 'yun'" @click="yuns(2)">
运输管理
<div class="gexian" v-if="active == 2"></div>
</div>
<div :class="active == 3 ? 'active' : 'yun'" @click="yuns(3)">
主数据管理
<div class="gexian" v-if="active == 3"></div>
</div>
<div :class="active == 4 ? 'active' : 'yun'" @click="yuns(4)">
系统管理
<div class="gexian" v-if="active == 4"></div>
</div>
</div>
<div class="touxian">
<div class="tou-img" @click="showPopup">
<img src="../assets/touxian.png" class="touxina" alt="" />
<div class="name">连义昌</div>
</div>
<div class="yous" @click="news">
<img src="../assets/youixna.png" class="you-img" alt="" />
<div class="dian"></div>
</div>
<div class="tuichus">退出登录</div>
</div>
</div>
<popup v-show="isPopupVisible" @close="closePopup">
</popup>
<router-view />
</div>
</template>
<script>
import popup from "./popup";
export default {
name: "App",
props: ["actives"],
components: {
popup,
},
data() {
return {
active: "1",
dialogVisibleyu: false,
isPopupVisible: false,
};
},
mounted() {
this.active = this.actives;
console.log(this.actives);
},
methods: {
//tab切换
yuns(index) {
console.log(index)
this.active = index;
if (this.active == 1) {
this.$router.push("./home");
} else if (this.active == 2) {
this.$router.push("./transport");
}else if(this.active == 3){
this.$router.push("./zhushu");
}else if(this.active == 4){
this.$router.push("./xitons");
}
},
//消息
news() {
this.$router.push("./xiaoxi?ac=" + this.active);
},
showPopup() {
this.isPopupVisible = true;
},
closePopup() {
this.isPopupVisible = false;
},
},
};
</script>
<style>
* {
margin: 0;
padding: 0;
}
.box-a .el-dialog {
width: 100px !important;
height: 100px !important;
}
.el-dialog__body {
overflow: auto;
color: #666666;
}
.el-dialog{
margin-top: 0 !important;
border-radius: 10px;
}
.el-button.is-round{
border-radius: 20px;
padding: 12px 51px;
}
</style>
<style scoped>
@import "../css/app.css";
</style>
... ...
<template>
<div>
<div class="transport-box">
<div class="fahuo">
<ul class="ul-list">
<li
v-for="(item, index) in addlist"
:key="index"
:class="active == index ? 'liks' : 'lik'"
@click="li(index)"
>
<img
:src="item.activeUrl"
class="fa-img"
alt=""
v-if="active == index"
/>
<img :src="item.url" class="fa-img" alt="" v-else />
{{ item.text }}
</li>
</ul>
</div>
</div>
<Tabbar :actives="2"></Tabbar>
<Fa v-if="fai"></Fa>
<Pei v-if="peii"></Pei>
<Pai v-if="paii"></Pai>
<Zhuan v-if="zhuan"></Zhuan>
<Fayun v-if="fayun"></Fayun>
<Zaitu v-if="zaitu"></Zaitu>
<Sonda v-if="sonda"></Sonda>
<Jie v-if="jies"></Jie>
</div>
</template>
<script>
import Tabbar from "./tabbar.vue";
import Fa from "./yunshu/fa.vue";
import Pei from "./yunshu/pei.vue";
import Pai from "./yunshu/pai.vue";
import Zhuan from "./yunshu/zhuan.vue";
import Fayun from "./yunshu/fayun.vue";
import Zaitu from './yunshu/zaitu.vue';
import Sonda from './yunshu/sonda.vue';
import Jie from './yunshu/jie.vue';
export default {
components: {
Tabbar,
Fa,
Pei,
Pai,
Zhuan,
Fayun,
Zaitu,
Sonda,
Jie
},
data() {
return {
addlist: [
{
url: require("../assets/21.png"),
activeUrl: require("../assets/9.png"),
text: "发货计划",
},
{
url: require("../assets/14.png"),
activeUrl: require("../assets/4.png"),
text: "配车计划",
},
{
url: require("../assets/20.png"),
activeUrl: require("../assets/8.png"),
text: "派车管理",
},
{
url: require("../assets/17.png"),
activeUrl: require("../assets/3.png"),
text: "装车作业",
},
{
url: require("../assets/12.png"),
activeUrl: require("../assets/7.png"),
text: "发运管理",
},
{
url: require("../assets/16.png"),
activeUrl: require("../assets/2.png"),
text: "在途管理",
},
{
url: require("../assets/15.png"),
activeUrl: require("../assets/5.png"),
text: "送达作业",
},
{
url: require("../assets/13.png"),
activeUrl: require("../assets/6.png"),
text: "结项管理",
},
],
active: "0",
fai: true,
peii: false,
paii: false,
zhuan:false,
fayun:false,
zaitu:false,
sonda:false,
jies:false
};
},
methods: {
//tab切换
li(index) {
this.active = index;
if (this.active == 0) {
this.fai = true;
this.peii = false;
this.paii = false;
this.zhuan = false
this.fayun = false
this.zaitu = false
this.sonda = false
this.jies = false
} else if (this.active == 1) {
this.peii = true;
this.fai = false;
this.paii = false;
this.zhuan = false
this.fayun = false
this.zaitu = false
this.sonda = false
this.jies = false
} else if (this.active == 2) {
this.fai = false;
this.peii = false;
this.paii = true;
this.zhuan = false
this.fayun = false
this.zaitu = false
this.sonda = false
this.jies = false
}else if(this.active == 3){
this.fai = false;
this.peii = false;
this.paii = false;
this.zhuan = true
this.fayun = false
this.zaitu = false
this.sonda = false
this.jies = false
}else if(this.active == 4){
this.fai = false;
this.peii = false;
this.paii = false;
this.zhuan = false
this.fayun = true
this.zaitu = false
this.sonda = false
this.jies = false
}else if(this.active == 5){
this.fai = false;
this.peii = false;
this.paii = false;
this.zhuan = false
this.fayun = false
this.zaitu = true
this.sonda = false
this.jies = false
}else if(this.active == 6){
this.fai = false;
this.peii = false;
this.paii = false;
this.zhuan = false
this.fayun = false
this.zaitu = false
this.sonda = true
this.jies = false
}else if(this.active == 7){
this.fai = false;
this.peii = false;
this.paii = false;
this.zhuan = false
this.fayun = false
this.zaitu = false
this.sonda = false
this.jies = true
}
console.log(index);
},
},
};
</script>
<style scoped>
@import "../css/transport.css";
</style>
\ No newline at end of file
... ...
<template>
<div>
<div class="xiaoxi-box">
<div class="xiaoxi-boxs">
<div class="xitong">
<img src="../assets/zuojian.png" class="zuojiantou" alt="" />
<div class="xitong-texct">系统消息</div>
</div>
<div class="xitongs">
<div class="xitons-left">
<div
v-for="(item, index) in ad"
:key="index"
:class="tl == index ? 'quanbus' : 'quanbu'"
@click="bg(index)"
>
{{ item }}
<div class="gexiansf" v-if="tl == index"></div>
</div>
</div>
<div class="xioons-right">
<div class="xioons-rights">
<img src="../assets/search.png" class="search-imgs" alt="" />
<input type="text" placeholder="搜索关键词查找" class="inputsafa" />
</div>
<div class="chaxuns">查询</div>
</div>
</div>
<div class="lists">
<div class="list-s" v-for="(item, index) in addlist" :key="index">
<div class="lists-tou">
<div class="xiaoxi">消息类型</div>
<div class="weidus">未读</div>
</div>
<div class="xiso-cont">
消息内容消息内容消息内容消息内容消息内容消息内容消息内容消息内容消息消息内容消息内容消息内容消息容...
</div>
<div class="shijians">
<img src="../assets/shijian.png" class="shi-imgs" alt="" />
<div class="timer">2020.01.10 10:30:30</div>
</div>
</div>
</div>
<div class="tiaoshu">
<div class="left-io"></div>
<div class="gon">共400条</div>
<div class="kls">
<el-pagination
:page-size="20"
:pager-count="11"
layout="prev, pager, next"
:total="1000"
>
</el-pagination>
</div>
</div>
</div>
</div>
<Tabbar :actives="1"></Tabbar>
</div>
</template>
<script>
import Tabbar from "./tabbar.vue";
export default {
components: {
Tabbar,
},
data() {
return {
aco: "",
activeName: "second",
ad: ["全部", "已读", "未读"],
dialogVisible: false,
tl: "0",
addlist: [{}, {}, {}, {}, {}, {}, {}, {}, {}],
tablelists: [
{
date: "请输入产品型号",
name: "请输入产品编号",
province: "请输入产品数量",
city: "请输入到货时间",
zhuan: "已完成",
},
],
};
},
created() {
let that = this;
setTimeout(function () {
that.aco = that.$route.query.ac;
console.log(that.aco);
}, 100);
},
mounted() {
let that = this;
setTimeout(function () {
that.aco = that.$route.query.ac;
console.log(that.aco);
}, 100);
},
methods: {
handleClick(tab, event) {
console.log(tab, event);
},
bg(index) {
this.tl = index;
},
},
};
</script>
<style>
.el-tabs .el-tabs--top {
width: 80%;
}
.is-top {
width: 80%;
text-align: center;
}
.el-dialog {
border-radius: 16px;
}
.el-dialog__body {
padding: 0 20px 20px 20px;
}
</style>
<style scoped>
@import "../css/home.css";
@import "../css/fa.css";
@import "../css/xiaoxi.css";
</style>
\ No newline at end of file
... ...
<template>
<div>
<div class="fa-box">
<div class="lik">
<div class="fa-ji">
<div class="ge"></div>
<div class="fa-text">账号管理</div>
</div>
<div class="peiches">
<el-button type="primary" @click="dialogVisible = true">添加结项记录</el-button>
</div>
</div>
<div class="biaoge">
<div class="zhonlistas">
<el-table
:data="tableData"
border
style="width: 100%"
height="100%"
:header-cell-style="{ background: '#F4F4F5', color: '#303133' }"
>
<el-table-column fixed prop="date" label="编号" style="width: 25%">
</el-table-column>
<el-table-column prop="name" label="短信模板" style="width: 25%">
</el-table-column>
<el-table-column prop="province" label="状态" style="width: 25%">
<template slot-scope="scope">
<span
v-if="scope.row.province == '审核中'"
style="color: #e6a23c"
>审核中</span
>
<span
v-if="scope.row.province == '审核通过'"
style="color: #67c23a"
>审核通过</span
>
<span
v-if="scope.row.province == '审核失败'"
style="color: #f56c6c"
>审核失败</span
>
</template>
</el-table-column>
<el-table-column fixed="right" label="操作" style="width: 25%">
<template slot-scope="scope">
<el-button
type="text"
size="small"
@click="dialogVisibleh = true"
>配车明细</el-button
>
<el-button
type="text"
size="small"
v-if="scope.row.province == '审核中'"
>审核</el-button
>
</template>
</el-table-column>
</el-table>
</div>
</div>
<div class="tiaoshu">
<div class="left-io"></div>
<div class="gon">共400条</div>
<div class="kls">
<el-pagination
:page-size="20"
:pager-count="11"
layout="prev, pager, next"
:total="1000"
>
</el-pagination>
</div>
</div>
</div>
<!-- 编制成套配车计划 -->
<el-dialog
title="权限管理"
:visible.sync="dialogVisible"
width="50%"
style='margin-top:10%;'
:append-to-body="true"
>
<div class="liebiao">
<div class="lise">
<div class="lise-left">
<div class="shenfen">身份名称</div>
<input
type="text"
class="shen-ingpuy"
placeholder="请输入身份名称"
/>
</div>
<div class="lise-left">
<div class="shenfen">身份名称</div>
<div class="as">
<el-tree
:data="data"
show-checkbox
node-key="id"
:default-expanded-keys="[5]"
:default-checked-keys="[5]"
:props="defaultProps"
>
</el-tree>
</div>
</div>
</div>
<div class="queren">
<el-button type="primary" round @click="dialogVisible = false">确认</el-button>
<el-button round @click='dialogVisible = false'>取消</el-button>
</div>
</div>
</el-dialog>
</div>
</template>
<script>
export default {
data() {
return {
tableData: [
{
date: "P2112020092300",
name: "P2112020092300",
province: "审核中",
city: "赵吾光",
address: "178 2038 0191",
zip: "重庆市南岸区长生桥镇长生路46号附1号",
},
{
date: "P2112020092300",
name: "P2112020092300",
province: "审核通过",
city: "审核通过",
address: "178 2038 0191",
zip: "重庆市南岸区长生桥镇长生路46号附1号",
},
{
date: "P2112020092300",
name: "P2112020092300",
province: "审核中",
city: "审核中",
address: "178 2038 0191",
zip: "重庆市南岸区长生桥镇长生路46号附1号",
},
{
date: "P2112020092300",
name: "P2112020092300",
province: "审核通过",
city: "赵吾光",
address: "178 2038 0191",
zip: "重庆市南岸区长生桥镇长生路46号附1号",
},
{
date: "P2112020092300",
name: "P2112020092300",
province: "审核通过",
city: "赵吾光",
address: "178 2038 0191",
zip: "重庆市南岸区长生桥镇长生路46号附1号",
},
{
date: "P2112020092300",
name: "P2112020092300",
province: "审核失败",
city: "赵吾光",
address: "178 2038 0191",
zip: "重庆市南岸区长生桥镇长生路46号附1号",
},
{
date: "P2112020092300",
name: "P2112020092300",
province: "北京电站",
city: "赵吾光",
address: "178 2038 0191",
zip: "重庆市南岸区长生桥镇长生路46号附1号",
},
{
date: "P2112020092300",
name: "P2112020092300",
province: "北京电站",
city: "赵吾光",
address: "178 2038 0191",
zip: "重庆市南岸区长生桥镇长生路46号附1号",
},
{
date: "P2112020092300",
name: "P2112020092300",
province: "北京电站",
city: "赵吾光",
address: "178 2038 0191",
zip: "重庆市南岸区长生桥镇长生路46号附1号",
},
{
date: "P2112020092300",
name: "P2112020092300",
province: "北京电站",
city: "赵吾光",
address: "178 2038 0191",
zip: "重庆市南岸区长生桥镇长生路46号附1号",
},
],
dialogVisible: false,
dialogImageUrl: "",
data: [
{
id: 1,
label: "全部选中"
},
{
id: 2,
label: "首页"
},
{
id: 3,
label: "运输管理",
children: [
{
id: 7,
label: "二级 3-1",
},
{
id: 8,
label: "二级 3-2",
},
],
},
{
id: 4,
label: "在途管理",
children: [
{
id: 7,
label: "二级 3-1",
},
{
id: 8,
label: "二级 3-2",
},
],
},
{
id: 5,
label: "系统管理",
children: [
{
id: 7,
label: "用户管理",
},
{
id: 8,
label: "权限管理",
},
{
id: 9,
label: "仪表类型管理",
},
{
id: 10,
label: "车辆类型管理",
},
],
},
],
defaultProps: {
children: "children",
label: "label",
},
};
},
methods: {
//编辑发货申请
handleClick(row) {
console.log(row);
},
//上传图片
handleRemove(file, fileList) {
console.log(file, fileList);
},
handlePictureCardPreview(file) {
this.dialogImageUrl = file.url;
this.dialogVisible = true;
},
},
};
</script>
<style>
.el-dialog__body {
padding: 5px 20px;
padding-bottom: 68px;
}
.el-dialog__title {
font-size: 29px !important;
color: #000000 !important;
font-weight: 500;
}
.el-upload--picture-card {
width: 107px !important;
height: 107px !important;
line-height: 107px !important;
}
.el-upload-list--picture-card .el-upload-list__item {
width: 107px !important;
height: 107px !important;
line-height: 107px !important;
}
.el-carousel__container {
margin-top: 52px;
height: 629px;
}
/* .el-table /deep/.DisabledSelection .cell .el-checkbox__inner{
margin-left: -30px;
position:relative;
} */
.el-table /deep/.DisabledSelection .cell:before {
content: "全选";
position: absolute;
right: 42px;
}
</style>
<style scoped>
@import "../../css/fa.css";
@import "../../css/pei.css";
@import "../../css/gon.css";
</style>
\ No newline at end of file
... ...
<template>
<div>
<div class="fa-box">
<div class="lik">
<div class="fa-ji">
<div class="ge"></div>
<div class="fa-text">账号管理</div>
</div>
<div class="peiches">
<el-button type="primary" @click="dialogVisible = true">添加结项记录</el-button>
</div>
</div>
<div class="biaoge">
<div class="zhonlistas">
<el-table
:data="tableData"
border
style="width: 100%"
height="100%"
:header-cell-style="{ background: '#F4F4F5', color: '#303133' }"
>
<el-table-column fixed prop="date" label="编号" style="width: 25%">
</el-table-column>
<el-table-column prop="name" label="身份名称" style="width: 25%">
</el-table-column>
<el-table-column prop="province" label="状态" style="width: 25%">
<template slot-scope="scope">
<span
v-if="scope.row.province == '审核中'"
style="color: #e6a23c"
>审核中</span
>
<span
v-if="scope.row.province == '审核通过'"
style="color: #67c23a"
>审核通过</span
>
<span
v-if="scope.row.province == '审核失败'"
style="color: #f56c6c"
>审核失败</span
>
</template>
</el-table-column>
<el-table-column fixed="right" label="操作" style="width: 25%">
<template slot-scope="scope">
<el-button
type="text"
size="small"
@click="dialogVisibleh = true"
>配车明细</el-button
>
<el-button
type="text"
size="small"
v-if="scope.row.province == '审核中'"
>审核</el-button
>
</template>
</el-table-column>
</el-table>
</div>
</div>
<div class="tiaoshu">
<div class="left-io"></div>
<div class="gon">共400条</div>
<div class="kls">
<el-pagination
:page-size="20"
:pager-count="11"
layout="prev, pager, next"
:total="1000"
>
</el-pagination>
</div>
</div>
</div>
<!-- 编制成套配车计划 -->
<el-dialog
title="权限管理"
:visible.sync="dialogVisible"
width="50%"
style='margin-top:10%;'
:append-to-body="true"
>
<div class="liebiao">
<div class="lise">
<div class="lise-left">
<div class="shenfen">身份名称</div>
<input
type="text"
class="shen-ingpuy"
placeholder="请输入身份名称"
/>
</div>
<div class="lise-left">
<div class="shenfen">身份名称</div>
<div class="as">
<el-tree
:data="data"
show-checkbox
node-key="id"
:default-expanded-keys="[5]"
:default-checked-keys="[5]"
:props="defaultProps"
>
</el-tree>
</div>
</div>
</div>
<div class="queren">
<el-button type="primary" round @click="dialogVisible = false">确认</el-button>
<el-button round @click='dialogVisible = false'>取消</el-button>
</div>
</div>
</el-dialog>
</div>
</template>
<script>
export default {
data() {
return {
tableData: [
{
date: "P2112020092300",
name: "P2112020092300",
province: "审核中",
city: "赵吾光",
address: "178 2038 0191",
zip: "重庆市南岸区长生桥镇长生路46号附1号",
},
{
date: "P2112020092300",
name: "P2112020092300",
province: "审核通过",
city: "审核通过",
address: "178 2038 0191",
zip: "重庆市南岸区长生桥镇长生路46号附1号",
},
{
date: "P2112020092300",
name: "P2112020092300",
province: "审核中",
city: "审核中",
address: "178 2038 0191",
zip: "重庆市南岸区长生桥镇长生路46号附1号",
},
{
date: "P2112020092300",
name: "P2112020092300",
province: "审核通过",
city: "赵吾光",
address: "178 2038 0191",
zip: "重庆市南岸区长生桥镇长生路46号附1号",
},
{
date: "P2112020092300",
name: "P2112020092300",
province: "审核通过",
city: "赵吾光",
address: "178 2038 0191",
zip: "重庆市南岸区长生桥镇长生路46号附1号",
},
{
date: "P2112020092300",
name: "P2112020092300",
province: "审核失败",
city: "赵吾光",
address: "178 2038 0191",
zip: "重庆市南岸区长生桥镇长生路46号附1号",
},
{
date: "P2112020092300",
name: "P2112020092300",
province: "北京电站",
city: "赵吾光",
address: "178 2038 0191",
zip: "重庆市南岸区长生桥镇长生路46号附1号",
},
{
date: "P2112020092300",
name: "P2112020092300",
province: "北京电站",
city: "赵吾光",
address: "178 2038 0191",
zip: "重庆市南岸区长生桥镇长生路46号附1号",
},
{
date: "P2112020092300",
name: "P2112020092300",
province: "北京电站",
city: "赵吾光",
address: "178 2038 0191",
zip: "重庆市南岸区长生桥镇长生路46号附1号",
},
{
date: "P2112020092300",
name: "P2112020092300",
province: "北京电站",
city: "赵吾光",
address: "178 2038 0191",
zip: "重庆市南岸区长生桥镇长生路46号附1号",
},
],
dialogVisible: false,
dialogImageUrl: "",
data: [
{
id: 1,
label: "全部选中"
},
{
id: 2,
label: "首页"
},
{
id: 3,
label: "运输管理",
children: [
{
id: 7,
label: "二级 3-1",
},
{
id: 8,
label: "二级 3-2",
},
],
},
{
id: 4,
label: "在途管理",
children: [
{
id: 7,
label: "二级 3-1",
},
{
id: 8,
label: "二级 3-2",
},
],
},
{
id: 5,
label: "系统管理",
children: [
{
id: 7,
label: "用户管理",
},
{
id: 8,
label: "权限管理",
},
{
id: 9,
label: "仪表类型管理",
},
{
id: 10,
label: "车辆类型管理",
},
],
},
],
defaultProps: {
children: "children",
label: "label",
},
};
},
methods: {
//编辑发货申请
handleClick(row) {
console.log(row);
},
//上传图片
handleRemove(file, fileList) {
console.log(file, fileList);
},
handlePictureCardPreview(file) {
this.dialogImageUrl = file.url;
this.dialogVisible = true;
},
},
};
</script>
<style>
.el-dialog__body {
padding: 5px 20px;
padding-bottom: 12px ;
}
.el-dialog__title {
font-size: 29px !important;
color: #000000 !important;
font-weight: 500;
}
.el-upload--picture-card {
width: 107px !important;
height: 107px !important;
line-height: 107px !important;
}
.el-upload-list--picture-card .el-upload-list__item {
width: 107px !important;
height: 107px !important;
line-height: 107px !important;
}
.el-carousel__container {
margin-top: 52px;
height: 629px;
}
/* .el-table /deep/.DisabledSelection .cell .el-checkbox__inner{
margin-left: -30px;
position:relative;
} */
.el-table /deep/.DisabledSelection .cell:before {
content: "全选";
position: absolute;
right: 42px;
}
</style>
<style scoped>
@import "../../css/fa.css";
@import "../../css/pei.css";
@import "../../css/gon.css";
</style>
\ No newline at end of file
... ...
<template>
<div>
<div class="fa-box">
<div class="lik">
<div class="fa-ji">
<div class="ge"></div>
<div class="fa-text">账号管理</div>
</div>
<div class="peiches">
<el-button type="primary" @click="dialogVisible = true">添加结项记录</el-button>
</div>
</div>
<div class="biaoge">
<div class="zhonlistas">
<el-table
:data="tableData"
border
style="width: 100%"
height="100%"
:header-cell-style="{ background: '#F4F4F5', color: '#303133' }"
>
<el-table-column fixed prop="date" label="编号" style="width: 25%">
</el-table-column>
<el-table-column prop="name" label="系统消息模板" style="width: 25%">
</el-table-column>
<el-table-column prop="province" label="状态" style="width: 25%">
<template slot-scope="scope">
<span
v-if="scope.row.province == '审核中'"
style="color: #e6a23c"
>审核中</span
>
<span
v-if="scope.row.province == '审核通过'"
style="color: #67c23a"
>审核通过</span
>
<span
v-if="scope.row.province == '审核失败'"
style="color: #f56c6c"
>审核失败</span
>
</template>
</el-table-column>
<el-table-column fixed="right" label="操作" style="width: 25%">
<template slot-scope="scope">
<el-button
type="text"
size="small"
@click="dialogVisibleh = true"
>配车明细</el-button
>
<el-button
type="text"
size="small"
v-if="scope.row.province == '审核中'"
>审核</el-button
>
</template>
</el-table-column>
</el-table>
</div>
</div>
<div class="tiaoshu">
<div class="left-io"></div>
<div class="gon">共400条</div>
<div class="kls">
<el-pagination
:page-size="20"
:pager-count="11"
layout="prev, pager, next"
:total="1000"
>
</el-pagination>
</div>
</div>
</div>
<!-- 编制成套配车计划 -->
<el-dialog
title="权限管理"
:visible.sync="dialogVisible"
width="50%"
style='margin-top:10%;'
:append-to-body="true"
>
<div class="liebiao">
<div class="lise">
<div class="lise-left">
<div class="shenfen">身份名称</div>
<input
type="text"
class="shen-ingpuy"
placeholder="请输入身份名称"
/>
</div>
<div class="lise-left">
<div class="shenfen">身份名称</div>
<div class="as">
<el-tree
:data="data"
show-checkbox
node-key="id"
:default-expanded-keys="[5]"
:default-checked-keys="[5]"
:props="defaultProps"
>
</el-tree>
</div>
</div>
</div>
<div class="queren">
<el-button type="primary" round @click="dialogVisible = false">确认</el-button>
<el-button round @click='dialogVisible = false'>取消</el-button>
</div>
</div>
</el-dialog>
</div>
</template>
<script>
export default {
data() {
return {
tableData: [
{
date: "P2112020092300",
name: "P2112020092300",
province: "审核中",
city: "赵吾光",
address: "178 2038 0191",
zip: "重庆市南岸区长生桥镇长生路46号附1号",
},
{
date: "P2112020092300",
name: "P2112020092300",
province: "审核通过",
city: "审核通过",
address: "178 2038 0191",
zip: "重庆市南岸区长生桥镇长生路46号附1号",
},
{
date: "P2112020092300",
name: "P2112020092300",
province: "审核中",
city: "审核中",
address: "178 2038 0191",
zip: "重庆市南岸区长生桥镇长生路46号附1号",
},
{
date: "P2112020092300",
name: "P2112020092300",
province: "审核通过",
city: "赵吾光",
address: "178 2038 0191",
zip: "重庆市南岸区长生桥镇长生路46号附1号",
},
{
date: "P2112020092300",
name: "P2112020092300",
province: "审核通过",
city: "赵吾光",
address: "178 2038 0191",
zip: "重庆市南岸区长生桥镇长生路46号附1号",
},
{
date: "P2112020092300",
name: "P2112020092300",
province: "审核失败",
city: "赵吾光",
address: "178 2038 0191",
zip: "重庆市南岸区长生桥镇长生路46号附1号",
},
{
date: "P2112020092300",
name: "P2112020092300",
province: "北京电站",
city: "赵吾光",
address: "178 2038 0191",
zip: "重庆市南岸区长生桥镇长生路46号附1号",
},
{
date: "P2112020092300",
name: "P2112020092300",
province: "北京电站",
city: "赵吾光",
address: "178 2038 0191",
zip: "重庆市南岸区长生桥镇长生路46号附1号",
},
{
date: "P2112020092300",
name: "P2112020092300",
province: "北京电站",
city: "赵吾光",
address: "178 2038 0191",
zip: "重庆市南岸区长生桥镇长生路46号附1号",
},
{
date: "P2112020092300",
name: "P2112020092300",
province: "北京电站",
city: "赵吾光",
address: "178 2038 0191",
zip: "重庆市南岸区长生桥镇长生路46号附1号",
},
],
dialogVisible: false,
dialogImageUrl: "",
data: [
{
id: 1,
label: "全部选中"
},
{
id: 2,
label: "首页"
},
{
id: 3,
label: "运输管理",
children: [
{
id: 7,
label: "二级 3-1",
},
{
id: 8,
label: "二级 3-2",
},
],
},
{
id: 4,
label: "在途管理",
children: [
{
id: 7,
label: "二级 3-1",
},
{
id: 8,
label: "二级 3-2",
},
],
},
{
id: 5,
label: "系统管理",
children: [
{
id: 7,
label: "用户管理",
},
{
id: 8,
label: "权限管理",
},
{
id: 9,
label: "仪表类型管理",
},
{
id: 10,
label: "车辆类型管理",
},
],
},
],
defaultProps: {
children: "children",
label: "label",
},
};
},
methods: {
//编辑发货申请
handleClick(row) {
console.log(row);
},
//上传图片
handleRemove(file, fileList) {
console.log(file, fileList);
},
handlePictureCardPreview(file) {
this.dialogImageUrl = file.url;
this.dialogVisible = true;
},
},
};
</script>
<style>
.el-dialog__body {
padding: 5px 20px;
padding-bottom: 68px;
}
.el-dialog__title {
font-size: 29px !important;
color: #000000 !important;
font-weight: 500;
}
.el-upload--picture-card {
width: 107px !important;
height: 107px !important;
line-height: 107px !important;
}
.el-upload-list--picture-card .el-upload-list__item {
width: 107px !important;
height: 107px !important;
line-height: 107px !important;
}
.el-carousel__container {
margin-top: 52px;
height: 629px;
}
/* .el-table /deep/.DisabledSelection .cell .el-checkbox__inner{
margin-left: -30px;
position:relative;
} */
.el-table /deep/.DisabledSelection .cell:before {
content: "全选";
position: absolute;
right: 42px;
}
</style>
<style scoped>
@import "../../css/fa.css";
@import "../../css/pei.css";
@import "../../css/gon.css";
</style>
\ No newline at end of file
... ...
<template>
<div>
<div class="transport-box">
<div class="fahuo">
<ul class="ul-list">
<li
v-for="(item, index) in addlist"
:key="index"
:class="active == index ? 'liks' : 'lik'"
@click="li(index)"
>
<img
:src="item.activeUrl"
class="fa-img"
alt=""
v-if="active == index"
/>
<img :src="item.url" class="fa-img" alt="" v-else />
{{ item.text }}
</li>
</ul>
</div>
</div>
<Tabbar :actives="4"></Tabbar>
<Yon v-if="fai"></Yon>
<Pei v-if="peii"></Pei>
<Pai v-if="paii"></Pai>
<Zhuan v-if="zhuan"></Zhuan>
</div>
</template>
<script>
import Tabbar from "../tabbar.vue";
import Yon from "../xiton/yonhu.vue";
import Pei from "../xiton/gon.vue";
import Pai from "../xiton/xi.vue";
import Zhuan from "../xiton/duan.vue";
export default {
components: {
Tabbar,
Yon,
Pei,
Pai,
Zhuan
},
data() {
return {
addlist: [
{
url: require("../../assets/21.png"),
activeUrl: require("../../assets/9.png"),
text: "用户管理",
},
{
url: require("../../assets/14.png"),
activeUrl: require("../../assets/4.png"),
text: "功能权限管理",
},
{
url: require("../../assets/20.png"),
activeUrl: require("../../assets/8.png"),
text: "系统消息设置",
},
{
url: require("../../assets/17.png"),
activeUrl: require("../../assets/3.png"),
text: "手机短信设置",
}
],
active: "0",
fai: true,
peii: false,
paii: false,
zhuan:false,
fayun:false,
zaitu:false,
sonda:false,
jies:false
};
},
methods: {
//tab切换
li(index) {
this.active = index;
if (this.active == 0) {
this.fai = true;
this.peii = false;
this.paii = false;
this.zhuan = false
this.fayun = false
this.zaitu = false
this.sonda = false
this.jies = false
} else if (this.active == 1) {
this.peii = true;
this.fai = false;
this.paii = false;
this.zhuan = false
this.fayun = false
this.zaitu = false
this.sonda = false
this.jies = false
} else if (this.active == 2) {
this.fai = false;
this.peii = false;
this.paii = true;
this.zhuan = false
this.fayun = false
this.zaitu = false
this.sonda = false
this.jies = false
}else if(this.active == 3){
this.fai = false;
this.peii = false;
this.paii = false;
this.zhuan = true
this.fayun = false
this.zaitu = false
this.sonda = false
this.jies = false
}
console.log(index);
},
},
};
</script>
<style scoped>
@import "../../css/transport.css";
</style>
\ No newline at end of file
... ...
<template>
<div class="yonhu">
<div class="fa-box">
<div class="lik">
<div class="fa-ji">
<div class="ge"></div>
<div class="fa-text">员工账号管理</div>
</div>
</div>
<div class="biaoge">
<div class="biao-box">
<div class="fhuosg">
<div class="fahuos">
<div class="fas-text">编号</div>
<input
type="text"
placeholder="请输入编号"
class="fa-inputgb"
/>
</div>
<div class="fahuos">
<div class="fas-text">姓名</div>
<input
type="text"
placeholder="请输入姓名"
class="fa-inputgb"
/>
</div>
<div class="fahuos">
<div class="fas-text">工号</div>
<input type="text" placeholder="请输入工号" class="fa-inputgb" />
</div>
<div class="fahuos">
<div class="fas-text">账号类型</div>
<input type="text" placeholder="请输入账号类型" class="fa-inputgb" />
</div>
<div class="fahuos">
<div class="fas-text">用户组</div>
<input
type="text"
placeholder="请输入用户组"
class="fa-inputgb"
/>
</div>
<div class="fahuos">
<div class="fas-text">状态</div>
<input
type="text"
placeholder="请输入状态"
class="fa-inputgb"
/>
</div>
<div class="chaxunsa" @click="dialogVisible = true">开通账号</div>
</div>
</div>
<div class="zhonlist">
<el-table
:data="tableData"
border
style="width: 100%"
height="100%"
:header-cell-style="{ background: '#F4F4F5', color: '#303133' }"
>
<el-table-column fixed prop="date" label="工号" width="270">
</el-table-column>
<el-table-column prop="name" label="姓名" width="270">
</el-table-column>
<el-table-column prop="province" label="手机号" width="220">
</el-table-column>
<el-table-column prop="city" label="身份证明" width="220">
</el-table-column>
<el-table-column prop="address" label="状态" width="220">
</el-table-column>
<el-table-column fixed="right" label="操作" width="256">
<template>
<el-button
type="text"
size="small"
>编辑</el-button
>
<el-button type="text" size="small">禁用</el-button>
</template>
</el-table-column>
</el-table>
</div>
</div>
<div class="tiaoshu">
<div class="left-io"></div>
<div class="gon">共400条</div>
<div class="kls">
<el-pagination
:page-size="20"
:pager-count="11"
layout="prev, pager, next"
:total="1000"
>
</el-pagination>
</div>
</div>
</div>
<!-- 编辑发货申请 -->
<el-dialog
title="开通账号"
:visible.sync="dialogVisible"
width="60%"
style='margin-top: 10%'
:append-to-body="true"
>
<div class="liebiao">
<div class="fahuo-li">
<div class="a" style="width:33.3%;">
<div class="sd">
<div class="fa-ji">选择人员</div>
<input type="text" placeholder="请输入选择人员" class="input" />
</div>
<div class="sd">
<div class="fa-ji">用户组</div>
<div class="inputt" style='padding-left: 15px;padding-right: 15px;'>
<input type="text" placeholder="请输入用户组" class="ss" />
<img src="../../assets/xiala.png" class="xial" alt="" />
</div>
</div>
</div>
<div class="a" style="width:33.3%;">
<div class="sd">
<div class="fa-ji">手机号</div>
<input type="text" placeholder="请输入手机号" class="input" />
</div>
</div>
<div class="a" style="width:33.3%;">
<div class="sd">
<div class="fa-ji">账号类型</div>
<div class="inputt" style='padding-left: 15px;padding-right: 15px;'>
<input type="text" placeholder="请输入合同编码" class="ss" />
<img src="../../assets/xiala.png" class="xial" alt="" />
</div>
</div>
</div>
</div>
<div class="queren">
<el-button type="primary" round @click="dialogVisible = false">确认</el-button>
<el-button round @click='dialogVisible = false'>取消</el-button>
</div>
</div>
</el-dialog>
</div>
</template>
<script>
export default {
data() {
return {
tableData: [
{
date: "P2112020092300",
name: "P2112020092300",
province: "北京电站",
city: "赵吾光",
address: "178 2038 0191",
zip: "重庆市南岸区长生桥镇长生路46号附1号",
},
{
date: "P2112020092300",
name: "P2112020092300",
province: "北京电站",
city: "赵吾光",
address: "178 2038 0191",
zip: "重庆市南岸区长生桥镇长生路46号附1号",
},
{
date: "P2112020092300",
name: "P2112020092300",
province: "北京电站",
city: "赵吾光",
address: "178 2038 0191",
zip: "重庆市南岸区长生桥镇长生路46号附1号",
},
{
date: "P2112020092300",
name: "P2112020092300",
province: "北京电站",
city: "赵吾光",
address: "178 2038 0191",
zip: "重庆市南岸区长生桥镇长生路46号附1号",
},
{
date: "P2112020092300",
name: "P2112020092300",
province: "北京电站",
city: "赵吾光",
address: "178 2038 0191",
zip: "重庆市南岸区长生桥镇长生路46号附1号",
},
{
date: "P2112020092300",
name: "P2112020092300",
province: "北京电站",
city: "赵吾光",
address: "178 2038 0191",
zip: "重庆市南岸区长生桥镇长生路46号附1号",
},
{
date: "P2112020092300",
name: "P2112020092300",
province: "北京电站",
city: "赵吾光",
address: "178 2038 0191",
zip: "重庆市南岸区长生桥镇长生路46号附1号",
},
{
date: "P2112020092300",
name: "P2112020092300",
province: "北京电站",
city: "赵吾光",
address: "178 2038 0191",
zip: "重庆市南岸区长生桥镇长生路46号附1号",
},
{
date: "P2112020092300",
name: "P2112020092300",
province: "北京电站",
city: "赵吾光",
address: "178 2038 0191",
zip: "重庆市南岸区长生桥镇长生路46号附1号",
},
{
date: "P2112020092300",
name: "P2112020092300",
province: "北京电站",
city: "赵吾光",
address: "178 2038 0191",
zip: "重庆市南岸区长生桥镇长生路46号附1号",
},
],
dialogVisible: false,
dialogImageUrl: "",
};
},
mounted(){
console.log('111')
},
methods: {
//编辑发货申请
handleClick(row) {
console.log(row);
},
//上传图片
handleRemove(file, fileList) {
console.log(file, fileList);
},
handlePictureCardPreview(file) {
this.dialogImageUrl = file.url;
this.dialogVisible = true;
},
},
};
</script>
<style>
.el-dialog__title {
font-size: 29px !important;
color: #000000 !important;
font-weight: 500;
}
.el-upload--picture-card {
width: 107px !important;
height: 107px !important;
line-height: 107px !important;
}
.el-upload-list--picture-card .el-upload-list__item {
width: 107px !important;
height: 107px !important;
line-height: 107px !important;
}
.el-carousel__container{
margin-top: 52px;
height: 629px;
}
</style>
<style scoped>
@import "../../css/fa.css";
@import "../../css/yonhu.css";
</style>
\ No newline at end of file
... ...
<template>
<div>
<div class="fa-box">
<div class="lik">
<div class="fa-ji">
<div class="ge"></div>
<div class="fa-text">发货计划</div>
</div>
<el-button type="primary" @click="dialogVisible = true">编制发货计划</el-button>
</div>
<div class="biaoge">
<div class="biao-box">
<div class="fhuo">
<div class="fahuos">
<div class="fas-text">发货计划</div>
<input
type="text"
placeholder="请输入发货计划"
class="fa-input"
v-model="shipId"
/>
</div>
<div class="fahuos">
<div class="fas-text">合同编码</div>
<input
type="text"
placeholder="请输入合同编码"
class="fa-input"
v-model="contractCode"
/>
</div>
<div class="fahuos">
<div class="fas-text">电站</div>
<input
type="text"
placeholder="请输入电站"
class="fa-input"
v-model="telegramListName"
/>
</div>
<div class="fahuos">
<div class="fas-text">申请人</div>
<input
type="text"
placeholder="请输入申请人"
class="fa-input"
v-model="createBy"
/>
</div>
<div class="fahuos">
<div class="fas-text">申请时间</div>
<!-- <input
type="text"
placeholder="请输入申请时间"
class="fa-input"
v-model="createTime"
/> -->
<el-date-picker
v-model="createTime"
type="date"
placeholder="请输入申请时间"
@click.native.prevent="datass"
>
</el-date-picker>
</div>
<div class="chaxun">
<img
src="../../assets/chaxun.png"
class="cha-imgs"
alt=""
@click="chaxun"
/>
</div>
</div>
</div>
<div class="zhonlist">
<el-table
:data="tableData"
border
style="width: 100%"
height="100%"
:header-cell-style="{ background: '#F4F4F5', color: '#303133' }"
>
<el-table-column
fixed
prop="shipId"
label="发货计划编码"
width="180"
>
</el-table-column>
<el-table-column prop="contractCode" label="合同编码" width="270">
</el-table-column>
<el-table-column prop="telegramList" label="电站" width="128">
</el-table-column>
<el-table-column
prop="moneyContactPerson"
label="到货联系人"
width="128"
>
</el-table-column>
<el-table-column
prop="moneyContactPhone"
label="到货联系电话"
width="160"
>
</el-table-column>
<el-table-column prop="moneyAddress" label="到货地点" width="280">
</el-table-column>
<el-table-column
prop="vehicleRequirements"
label="车辆要求"
width="180"
>
</el-table-column>
<el-table-column prop="moneyTime" label="到货时间要求" width="180">
</el-table-column>
<el-table-column prop="deliveryMethod" label="交货方式" width="180">
</el-table-column>
<el-table-column
prop="productionStatus"
label="生产情况"
width="180"
>
</el-table-column>
<!-- <el-table-column prop="fileIds" label="附带资料" width="180">
</el-table-column> -->
<el-table-column prop="remarks" label="备注" width="180">
</el-table-column>
<el-table-column prop="productId" label="产品信息" width="180">
</el-table-column>
<el-table-column prop="createBy" label="申请人" width="180">
</el-table-column>
<el-table-column prop="createTime" label="申请时间" width="180">
</el-table-column>
<el-table-column prop="zip" label="审核人" width="180">
</el-table-column>
<el-table-column prop="zip" label="审核时间" width="180">
</el-table-column>
<el-table-column prop="status" label="状态" width="180">
<template slot-scope="scope">
<el-button type="text" size="small" v-if="scope.row.status == 0"
>待审核</el-button
>
<el-button type="text" v-if="scope.row.status == 1" size="small"
>已审核</el-button
>
<el-button
type="text"
size="small"
@click="cha"
v-if="scope.row.status == 2"
>已完成</el-button
>
<el-button
type="text"
size="small"
@click="que"
v-if="scope.row.status == 3"
>已关闭</el-button
>
</template>
</el-table-column>
<el-table-column fixed="right" label="操作" width="186">
<template slot-scope="scope">
<el-button
type="text"
size="small"
@click="chasa(scope.row.shipId)"
>查看</el-button
>
<el-button
type="text"
size="small"
@click="chaas(scope.row.shipId)"
v-if="scope.row.status == 0"
>审核</el-button
>
<el-button
type="text"
size="small"
@click="que(scope.row.shipId)"
v-if="scope.row.status != 2"
>确认完成</el-button
>
</template>
</el-table-column>
</el-table>
</div>
</div>
<div class="tiaoshu">
<div class="left-io"></div>
<div class="gon">共{{ total }}条</div>
<div class="kls">
<el-pagination
:page-size="20"
:pager-count="11"
layout="prev, pager, next"
:total="total"
>
</el-pagination>
</div>
</div>
</div>
<!-- 编辑发货申请 -->
<el-dialog
title="新增发货计划"
:visible.sync="dialogVisible"
width="80%"
style="margin-top: 90px;"
:append-to-body="true"
>
<div class="liebiao">
<div class="fahuo-li">
<div class="a">
<div class="sd">
<div class="fa-ji">发货计划</div>
<input
type="text"
placeholder="请输入发货计划"
v-model="shipPlan"
class="input"
/>
</div>
<div class="sd">
<div class="fa-ji">到货联系电话</div>
<input
type="text"
placeholder="请输入到货联系电话"
class="input"
v-model="moneyContactPhone"
disabled
/>
</div>
<div class="sd">
<div class="fa-ji">生产情况</div>
<input
type="text"
placeholder="请输入生产情况"
class="input"
v-model="productionStatus"
/>
</div>
<div class="sd">
<div class="fa-ji">附带资料</div>
<div class="ziliao-list">
<div class="liulan" @click="handleFileChange">浏览</div>
<input
type="file"
ref="sa"
@change="handleFileChange"
style="display: none"
/>
<div class="ziliaotu">
<div class="ziliao-left">
<img src="../../assets/21.png" class="ziliao-img" alt="" />
<span class="text-sp">food.jpg</span>
</div>
<img src="../../assets/chen.png" class="chen-img" alt="" />
</div>
</div>
</div>
</div>
<div class="a">
<div class="sd">
<div class="fa-ji">合同编码</div>
<input
type="text"
placeholder="请输入合同编码"
class="input"
v-model="contractCode"
/>
</div>
<div class="sd">
<div class="fa-ji">到货地点</div>
<input
type="text"
placeholder="请输入到货地点"
class="input"
v-model="moneyAddress"
disabled
/>
</div>
<div class="sd">
<div class="fa-ji">车辆要求</div>
<input
type="text"
placeholder="请输入车辆要求"
class="input"
v-model="vehicleRequirements"
/>
</div>
</div>
<div class="a">
<div class="sd">
<div class="fa-ji">电站</div>
<div class="inputt">
<el-select
v-model="value"
:filter-method="onSubmit"
@change="currentSel"
filterable
placeholder="请选择"
style="width: 283px"
>
<el-option
v-for="(item, index) in options"
:key="index"
:label="item.telegramName"
:value="item.telegramId"
>
</el-option>
</el-select>
</div>
</div>
<div class="sd">
<div class="fa-ji">详细地点</div>
<input
type="text"
placeholder="请输入详细地点"
class="input"
v-model="fullAddress"
disabled
/>
</div>
<div class="sd">
<div class="fa-ji">备注</div>
<textarea
placeholder="请输入备注"
class="inputs"
v-model="remarks"
></textarea>
<!-- <input type="text" /> -->
</div>
</div>
<div class="a">
<div class="sd">
<div class="fa-ji">到货联系人</div>
<input
type="text"
placeholder="请输入到货联系人"
class="input"
v-model="moneyContactPerson"
disabled
/>
</div>
<div class="sd">
<div class="fa-ji">交货方式</div>
<input
type="text"
placeholder="请输入交货方式"
class="input"
v-model="deliveryMethod"
/>
</div>
<div class="sd">
<div class="fa-ji">传真照片</div>
<div class="chuanzheng">
<el-upload
action="https://jsonplaceholder.typicode.com/posts/"
list-type="picture-card"
:on-preview="handlePictureCardPreview"
:on-remove="handleRemove"
>
<i class="el-icon-plus"></i>
</el-upload>
<el-dialog :visible.sync="dialogVisiblex">
<img width="100%" :src="dialogImageUrl" alt="" />
</el-dialog>
</div>
<!-- <input type="text" /> -->
</div>
<div class="sg">
<div class="tianjia" @click="tianbtn">添加产品</div>
</div>
</div>
</div>
<div class="lista">
<el-table
:data="tablelist"
border
style="width: 100%"
height="100%"
:header-cell-style="{ background: '#F4F4F5', color: '#303133' }"
>
<el-table-column
fixed
prop="productId"
label="产品型号"
width="222"
>
<template slot-scope="scope">
<el-select
v-model="scope.row.productId"
placeholder="请输入产品型号"
filterable
@change="getCategoryOptions(scope.row.productId,scope.$index, tablelist)"
>
<el-option
v-for="item in optionsas"
:key="item.value"
:label="item.productCoding"
:value="item.productId"
>
</el-option>
</el-select>
<!-- <input
type="text"
v-model="scope.row.productId"
placeholder="请输入产品型号"
class="inputsvs"
/> -->
</template>
</el-table-column>
<el-table-column prop="detailId" label="产品编号" width="222">
<template slot-scope="scope">
<input
type="text"
v-model="scope.row.detailId"
placeholder="请输入产品编号"
class="inputsvs"
disabled
/>
</template>
</el-table-column>
<el-table-column prop="zhon" label="配件种类" width="222">
<template slot-scope="scope">
<input
type="text"
v-model="scope.row.zhon"
placeholder="请输入配件种类"
class="inputsvs"
/>
</template>
</el-table-column>
<el-table-column prop="num" label="产品数量" width="222">
<template slot-scope="scope">
<input
type="text"
v-model="scope.row.num"
class="inputsvs"
placeholder="请输入产品数量"
/>
</template>
</el-table-column>
<el-table-column prop="moneyTime" label="要求到货时间" width="222">
<template slot-scope="scope">
<!-- <el-tag
v-model="scope.row.moneyTime"
class="inputsvs"
@click.native.prevent="shi(scope.$index, tablelist)"
style="color: black"
>
请选择到货时间
</el-tag> -->
<el-date-picker
v-model="scope.row.moneyTime"
type="date"
placeholder="请选择到货时间"
@click.native.prevent="datas(scope.$index, tablelist)"
>
</el-date-picker>
<!-- <input type="text" v-model="scope.row.moneyTime" @click.native.prevent="shi(scope.$index,tablelist)" disabled placeholder="请输入到货时间" class="inputsvs" /> -->
</template>
</el-table-column>
<el-table-column fixed="right" label="操作" width="200">
<template slot-scope="scope">
<el-button
@click.native.prevent="deleteRow(scope.$index, tablelist)"
type="text"
size="small"
>删除</el-button
>
</template>
</el-table-column>
</el-table>
</div>
<div class="queren">
<el-button type="primary" round @click="btn">确认</el-button>
<el-button round @click="dialogVisible = false">取消</el-button>
</div>
</div>
</el-dialog>
<!-- 发货计划审核 -->
<el-dialog
title="发货计划审核"
:visible.sync="dialogVisibleg"
width="70%"
style="margin-top: 90px;"
:append-to-body="true"
>
<div class="liebiao">
<div class="jichus">
<div class="gesk"></div>
<div class="jichu">基础信息</div>
</div>
<div class="fahuo-li">
<div class="a">
<div class="sd">
<div class="fa-ji">发货计划</div>
<div class="conrt">{{ details.shipPlan }}</div>
</div>
<div class="sd">
<div class="fa-ji">到货联系电话</div>
<div class="conrt">{{ details.moneyContactPhone }}</div>
</div>
<div class="sd">
<div class="fa-ji">生产情况</div>
<div class="conrt">{{ details.productionStatus }}</div>
</div>
<div class="sd">
<div class="fa-ji">传真照片</div>
<div class="img-chuan">
<!-- <div class="lisg" v-for="(item,index) in details.photoIds" :key="index">
<img :src="item" class="tu" alt="" />
<img
src="../../assets/fanda.png"
class="fan"
alt=""
@click="chuans"
/>
</div> -->
</div>
</div>
</div>
<div class="a">
<div class="sd">
<div class="fa-ji">合同编码</div>
<div class="conrt">{{ details.contractCode }}</div>
</div>
<div class="sd">
<div class="fa-ji">到货地点</div>
<div class="conrt">{{ details.moneyAddress }}</div>
</div>
<div class="sd">
<div class="fa-ji">车辆要求</div>
<div class="conrt">{{ details.vehicleRequirements }}</div>
</div>
</div>
<div class="a">
<div class="sd">
<div class="fa-ji">电站</div>
<div class="conrt">{{ details.telegramList }}</div>
</div>
<div class="sd">
<div class="fa-ji">详细地点</div>
<div class="conrt">{{ details.fullAddress }}</div>
</div>
<div class="sd">
<div class="fa-ji">备注</div>
<div class="conrt">{{ details.remarks }}</div>
</div>
</div>
<div class="a">
<div class="sd">
<div class="fa-ji">到货联系人</div>
<div class="conrt">{{ details.moneyContactPerson }}</div>
</div>
<div class="sd">
<div class="fa-ji">交货方式</div>
<div class="conrt">{{ details.deliveryMethod }}</div>
</div>
<div class="sd">
<div class="fa-ji">附带资料</div>
<div class="ziliao-lists">
<div class="ziliaotu">
<div class="ziliao-left">
<img src="../../assets/21.png" class="ziliao-img" alt="" />
<span class="text-sp">food.jpg</span>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="lista">
<el-table
:data="details.mainShipDetail"
border
style="width: 100%"
height="100%"
:header-cell-style="{ background: '#F4F4F5', color: '#303133' }"
>
<el-table-column fixed prop="date" label="产品型号" width="260">
</el-table-column>
<el-table-column prop="productId" label="产品编号" width="260">
</el-table-column>
<el-table-column prop="num" label="产品数量" width="260">
</el-table-column>
<el-table-column prop="moneyTime" label="要求到货时间" width="250">
</el-table-column>
<el-table-column prop="status" label="转态" width="272">
</el-table-column>
</el-table>
</div>
<div class="queren">
<el-button type="primary" round @click="tonguo(1)">审核通过</el-button>
<el-button round @click="butong(2)">审核不通过</el-button>
</div>
</div>
</el-dialog>
<!-- 确认发货 -->
<el-dialog
title="完成发货计划"
:visible.sync="dialogVisibleq"
width="70%"
style="margin-top: 90px;"
:append-to-body="true"
>
<div class="liebiao">
<div class="jichus">
<div class="gesk"></div>
<div class="jichu">基础信息</div>
</div>
<div class="fahuo-li">
<div class="a">
<div class="sd">
<div class="fa-ji">发货计划</div>
<div class="conrt">{{ details.shipPlan }}</div>
</div>
<div class="sd">
<div class="fa-ji">到货联系电话</div>
<div class="conrt">{{ details.moneyContactPhone }}</div>
</div>
<div class="sd">
<div class="fa-ji">生产情况</div>
<div class="conrt">{{ details.productionStatus }}</div>
</div>
<div class="sd">
<div class="fa-ji">传真照片</div>
<div class="img-chuan">
<!-- <div class="lisg" v-for="(item,index) in details.photoIds" :key="index">
<img :src="item" class="tu" alt="" />
<img
src="../../assets/fanda.png"
class="fan"
alt=""
@click="chuans"
/>
</div> -->
</div>
</div>
</div>
<div class="a">
<div class="sd">
<div class="fa-ji">合同编码</div>
<div class="conrt">{{ details.contractCode }}</div>
</div>
<div class="sd">
<div class="fa-ji">到货地点</div>
<div class="conrt">{{ details.moneyAddress }}</div>
</div>
<div class="sd">
<div class="fa-ji">车辆要求</div>
<div class="conrt">{{ details.vehicleRequirements }}</div>
</div>
</div>
<div class="a">
<div class="sd">
<div class="fa-ji">电站</div>
<div class="conrt">{{ details.telegramList }}</div>
</div>
<div class="sd">
<div class="fa-ji">详细地点</div>
<div class="conrt">{{ details.fullAddress }}</div>
</div>
<div class="sd">
<div class="fa-ji">备注</div>
<div class="conrt">{{ details.remarks }}</div>
</div>
</div>
<div class="a">
<div class="sd">
<div class="fa-ji">到货联系人</div>
<div class="conrt">{{ details.moneyContactPerson }}</div>
</div>
<div class="sd">
<div class="fa-ji">交货方式</div>
<div class="conrt">{{ details.deliveryMethod }}</div>
</div>
<div class="sd">
<div class="fa-ji">附带资料</div>
<div class="ziliao-lists">
<div class="ziliaotu">
<div class="ziliao-left">
<img src="../../assets/21.png" class="ziliao-img" alt="" />
<span class="text-sp">food.jpg</span>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="lista" style="height: 200px">
<el-table
:data="details.mainShipDetail"
border
style="width: 100%"
height="100%"
:header-cell-style="{ background: '#F4F4F5', color: '#303133' }"
>
<el-table-column fixed prop="date" label="产品型号" width="252">
</el-table-column>
<el-table-column prop="productId" label="产品编号" width="252">
</el-table-column>
<el-table-column prop="num" label="产品数量" width="252">
</el-table-column>
<el-table-column prop="moneyTime" label="要求到货时间" width="272">
</el-table-column>
<el-table-column fixed="right" label="操作" width="272">
<template slot-scope="scope">
<el-button
@click="handleClick(scope.row.shipId, 3)"
type="text"
size="small"
>确认完成</el-button
>
</template>
</el-table-column>
</el-table>
</div>
<div class="queren">
<el-button type="primary" round @click="dialogVisibleq = false">确认</el-button>
<el-button round @click="dialogVisibleq = false">取消</el-button>
</div>
</div>
</el-dialog>
<!-- 查看详情 -->
<el-dialog
title="查看详情"
:visible.sync="dialogVisibleh"
width="70%"
style="margin-top: 110px;"
:append-to-body="true"
>
<div class="liebiao">
<div class="jichus">
<div class="gesk"></div>
<div class="jichu">基础信息</div>
</div>
<div class="fahuo-li">
<div class="a">
<div class="sd">
<div class="fa-ji">发货计划</div>
<div class="conrt">{{ details.shipPlan }}</div>
</div>
<div class="sd">
<div class="fa-ji">到货联系电话</div>
<div class="conrt">{{ details.moneyContactPhone }}</div>
</div>
<div class="sd">
<div class="fa-ji">生产情况</div>
<div class="conrt">{{ details.productionStatus }}</div>
</div>
<div class="sd">
<div class="fa-ji">传真照片</div>
<div class="img-chuan">
<!-- <div class="lisg" v-for="(item,index) in details.photoIds" :key="index">
<img :src="item" class="tu" alt="" />
<img
src="../../assets/fanda.png"
class="fan"
alt=""
@click="chuans"
/>
</div> -->
</div>
</div>
</div>
<div class="a">
<div class="sd">
<div class="fa-ji">合同编码</div>
<div class="conrt">{{ details.contractCode }}</div>
</div>
<div class="sd">
<div class="fa-ji">到货地点</div>
<div class="conrt">{{ details.moneyAddress }}</div>
</div>
<div class="sd">
<div class="fa-ji">车辆要求</div>
<div class="conrt">{{ details.vehicleRequirements }}</div>
</div>
</div>
<div class="a">
<div class="sd">
<div class="fa-ji">电站</div>
<div class="conrt">{{ details.telegramList }}</div>
</div>
<div class="sd">
<div class="fa-ji">详细地点</div>
<div class="conrt">{{ details.fullAddress }}</div>
</div>
<div class="sd">
<div class="fa-ji">备注</div>
<div class="conrt">{{ details.remarks }}</div>
</div>
</div>
<div class="a">
<div class="sd">
<div class="fa-ji">到货联系人</div>
<div class="conrt">{{ details.moneyContactPerson }}</div>
</div>
<div class="sd">
<div class="fa-ji">交货方式</div>
<div class="conrt">{{ details.deliveryMethod }}</div>
</div>
<div class="sd">
<div class="fa-ji">附带资料</div>
<div class="ziliao-lists">
<div class="ziliaotu">
<div class="ziliao-left">
<img src="../../assets/21.png" class="ziliao-img" alt="" />
<span class="text-sp">food.jpg</span>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="lista">
<el-table
:data="details.mainShipDetail"
border
style="width: 100%"
height="100%"
:header-cell-style="{ background: '#F4F4F5', color: '#303133' }"
>
<el-table-column fixed prop="date" label="产品型号" width="232">
</el-table-column>
<el-table-column prop="productId" label="产品编号" width="242">
</el-table-column>
<el-table-column prop="num" label="产品数量" width="242">
</el-table-column>
<el-table-column prop="moneyTime" label="要求到货时间" width="292">
</el-table-column>
<el-table-column prop="status" label="转态" width="292">
</el-table-column>
</el-table>
</div>
<div class="queren">
<el-button type="primary" round @click="dialogVisibleh = false">确认</el-button>
<el-button round @click="dialogVisibleh = false">取消</el-button>
<!-- <div class="querens" @click="dialogVisibleh = false">确认</div>
<div class="quxiaos" @click="dialogVisibleh = false">取消</div> -->
</div>
</div>
</el-dialog>
<!-- 预览图片 -->
<el-dialog
:visible.sync="dialogVisibleyu"
width="80%"
:append-to-body="true"
>
<div class="fanhui" @click="fanhuis">
<img src="../../assets/zuojian.png" class="zuojian" alt="" />
<div class="sski">返回上一层</div>
</div>
<el-carousel indicator-position="outside">
<el-carousel-item v-for="item in 4" :key="item">
<img src="../../assets/tu.png" class="swipeb" alt="" />
</el-carousel-item>
</el-carousel>
</el-dialog>
</div>
</template>
<script>
export default {
data() {
return {
tableData: [],
tablelist: [
{
productId: "",
num: "",
moneyTime: "",
detailId: "",
lastNum: "",
shipId: "",
status: "",
},
],
tablelists: [],
options: [],
dialogVisible: false,
dialogVisibleg: false,
dialogVisibleq: false,
dialogVisibleh: false,
dialogVisibleyu: false,
dialogImageUrl: "",
dialogVisiblex: false,
shipPlan: "", //发货计划
moneyContactPhone: "", //到货联系电话
productionStatus: "", //生产情况
contractCode: "", //合同编码
moneyAddress: "", //到货地点
vehicleRequirements: "", //车辆要求
fullAddress: "", //详细地点
remarks: "", //备注
moneyContactPerson: "", //到货联系人
deliveryMethod: "", //交货方式
telegramList: "", //电站
value: "",
contractCode: "", //合同编码
createBy: "", //申请人
createTime: "", //申请时间
shipId: "", //申请计划
telegramListName: "", //电站名称
pageNum: 1,
pageSize: 10,
details: [],
total: null, //总条数
optionsas: [],
name: "",
};
},
mounted() {
this.dian();
this.fahuo();
this.chan();
},
methods: {
onSubmit(val) {
this.value = val;
this.dian();
},
//查询
chaxun() {
this.fahuo();
},
//select发生改变市
currentSel(selVal) {
console.log(selVal);
this.value = selVal;
this.telegramId();
},
//根据电站id查询数据
telegramId() {
let that = this;
var url = "/api/system/telegram/" + that.value;
let params = {};
that.$axios
.get(url)
.then(function (res) {
console.log(res);
that.moneyContactPerson = res.data.contactPerson;
that.moneyContactPhone = res.data.phoneNumber;
that.moneyAddress = res.data.address;
that.fullAddress = res.data.detailAddress;
})
.catch(function (err) {
console.log(err);
});
},
//确认完成
handleClick(id, index) {
let that = this;
var url = "/api/ship/ship/" + id + "/" + index;
let params = {};
that.$axios
.put(url)
.then(function (res) {
that.$message({
message: "确认完成",
type: "success",
});
// that.dialogVisibleg = false;
// that.fahuo();
// console.log(res);
})
.catch(function (err) {
console.log(err);
});
},
//审核通过
tonguo(id) {
console.log(id);
let that = this;
var url = "/api/ship/ship/" + that.details.shipId + "/" + id;
let params = {};
that.$axios
.put(url)
.then(function (res) {
that.$message({
message: "审核成功",
type: "success",
});
that.dialogVisibleg = false;
that.fahuo();
console.log(res);
})
.catch(function (err) {
console.log(err);
});
},
//搜索
getCategoryOptions(val,index, rows) {
console.log(val);
console.log()
this.chanping(val,index, rows)
// this.chan()
},
//根据产品id搜索
chanping(id,index, rows) {
let that = this;
var url = "/api/system/product/" + id;
let params = {};
that.$axios
.get(url)
.then(function (res) {
console.log(index, rows);
rows[index].detailId = res.data.productCoding
})
.catch(function (err) {
console.log(err);
});
},
//获取产品信息列表
chan() {
let that = this;
var url = "/api/system/product/selectList?name=" + "";
let params = {};
that.$axios
.get(url)
.then(function (res) {
that.optionsas = res.data;
console.log(res);
})
.catch(function (err) {
console.log(err);
});
},
//审核不通过
butong(id) {
console.log(id);
let that = this;
var url = "/api/ship/ship/" + that.details.shipId + "/" + id;
let params = {};
that.$axios
.put(url)
.then(function (res) {
that.$message({
message: "审核成功",
type: "success",
});
that.dialogVisibleg = false;
that.fahuo();
console.log(res);
})
.catch(function (err) {
console.log(err);
});
},
//获取电站列表
dian() {
let that = this;
var url = "/api/system/telegram/selectList?name=" + that.value;
let params = {};
that.$axios
.get(url)
.then(function (res) {
console.log(res);
that.options = res.data;
})
.catch(function (err) {
console.log(err);
});
},
//获取发货计划列表
fahuo() {
let that = this;
var url = "/api/ship/ship/list";
let params = {
pageSize: that.pageSize,
createBy: that.createBy,
createTime: that.createTime,
pageNum: that.pageNum,
pageSize: that.pageSize,
shipId: that.shipId,
telegramListName: that.telegramListName,
};
that.$axios
.post(url, params)
.then(function (res) {
console.log(res);
that.tableData = res.rows;
that.total = res.total;
})
.catch(function (err) {
console.log(err);
});
},
//查看发货计划详情
chasa(id) {
this.dialogVisibleh = true;
let that = this;
var url = "/api/ship/ship/" + id;
let params = {};
that.$axios
.get(url)
.then(function (res) {
console.log(res);
that.details = res.data;
})
.catch(function (err) {
console.log(err);
});
},
//新增发货计划确认
btn() {
let that = this;
var url = "/api/ship/ship/add";
let params = {
shipPlan: that.shipPlan, //发货计划
fileIds:
"https://zqvcil8xjx.feishu.cn/docs/doccnzYUyK8v7fK3MQrPNodwPMQ", //附带资料
moneyContactPerson: that.moneyContactPerson, //到货联系人
telegramList: that.value, //发电站编码集合
latitude: "31.25658", //经度
longitude: "131.26589", //纬度
moneyAddress: that.moneyAddress, //到货地点
contractCode: that.contractCode, //合同编码
moneyContactPhone: that.moneyContactPhone, //到货联系电话
fullAddress: that.fullAddress, //详细地点
deliveryMethod: that.deliveryMethod, //交货方式
productionStatus: that.productionStatus, //生产情况
vehicleRequirements: that.vehicleRequirements, //车辆要求
remarks: that.remarks, //备注
photoIds:
"https://images.cnblogs.com/cnblogs_com/s313139232/1258426/o_o_headers.jpg", //传真照片
mainShipDetail: that.tablelist,
};
that.$axios
.post(url, params)
.then(function (res) {
console.log(res);
that.$message({
message: "添加成功",
type: "success",
});
that.dialogVisible = false;
that.fahuo()
})
.catch(function (err) {
that.$message.error(err.msg)
console.log(err);
});
},
//时间选择
dayClick: function (date, dateStr) {
console.log(date);
console.log(dateStr);
console.log(this.value);
},
//添加产品
tianbtn() {
if (this.tablelist == undefined) {
this.bcglXiangXiList = new Array();
}
let obj = {};
obj.productId = "";
obj.num = "";
obj.moneyTime = "";
obj.detailId = "";
obj.lastNum = "";
obj.shipId = "";
obj.status = "";
this.tablelist.push(obj);
},
handleFileChange(e) {
console.log(e);
this.$refs.sa.click();
},
//添加产品删除
deleteRow(index, rows) {
rows.splice(index, 1);
},
//时间选择
datas(index, rows) {
console.log(rows[index].moneyTime);
},
//申请时间选择
datass() {
console.log(this.createTime);
},
//上传图片
handleRemove(file, fileList) {
console.log(file, fileList);
},
handlePictureCardPreview(file) {
this.dialogImageUrl = file.url;
this.dialogVisible = true;
},
//查看订单
chaas(id) {
this.dialogVisibleg = true;
let that = this;
var url = "/api/ship/ship/" + id;
let params = {};
that.$axios
.get(url)
.then(function (res) {
console.log(res);
that.details = res.data;
})
.catch(function (err) {
console.log(err);
});
},
//确认发货
que(id) {
this.dialogVisibleq = true;
let that = this;
var url = "/api/ship/ship/" + id;
let params = {};
that.$axios
.get(url)
.then(function (res) {
console.log(res);
that.details = res.data;
})
.catch(function (err) {
console.log(err);
});
},
//预览图片
chuans() {
this.dialogVisibleh = false;
this.dialogVisibleyu = true;
},
//返回上一层
fanhuis() {
this.dialogVisibleh = false;
this.dialogVisibleyu = true;
},
},
};
</script>
<style>
.el-calendar {
position: fixed;
width: 100%;
height: 100%;
top: 10px;
left: 0;
z-index: 99999;
}
.el-dialog__body {
padding: 5px 20px;
padding-bottom: 0;
}
.el-dialog__title {
font-size: 22px !important;
color: #000000 !important;
font-weight: 500;
}
.el-upload--picture-card {
width: 80px !important;
height: 80px !important;
line-height: 80px !important;
}
.el-upload-list--picture-card .el-upload-list__item {
width: 80px !important;
height: 80px !important;
line-height: 80px !important;
}
.el-carousel__container {
margin-top: 52px;
height: 629px;
}
.el-icon-date:before {
content: "";
}
.el-input--prefix .el-input__inner {
padding-left: 10px;
}
.el-date-editor.el-input,
.el-date-editor.el-input__inner {
width: 195px;
border: none;
}
.el-input__inner {
border: 1px solid #fff;
}
.el-select {
width: 100%;
}
.el-input__inner {
height: 38px;
padding: 0 15px;
border-radius: 11px;
}
.fahuos .el-date-editor.el-input,
.el-date-editor.el-input__inner {
width: 250px;
border: 1px solid #e4e9ed;
margin-top: 16px;
border-radius: 11px;
box-shadow: 0px 3px 16px 0px rgba(0, 0, 0, 0.10000000149011612);
}
</style>
<style scoped>
@import "../../css/fa.css";
</style>
\ No newline at end of file
... ...