Browse Source

2019.4.25

zhengchengwu 5 years ago
commit
2d8414346b
100 changed files with 30944 additions and 0 deletions
  1. 18 0
      .babelrc
  2. 9 0
      .editorconfig
  3. 5 0
      .eslintignore
  4. 29 0
      .eslintrc.js
  5. 19 0
      .gitignore
  6. 10 0
      .postcssrc.js
  7. 30 0
      README.md
  8. 41 0
      build/build.js
  9. 54 0
      build/check-versions.js
  10. BIN
      build/logo.png
  11. 129 0
      build/utils.js
  12. 22 0
      build/vue-loader.conf.js
  13. 117 0
      build/webpack.base.conf.js
  14. 95 0
      build/webpack.dev.conf.js
  15. 149 0
      build/webpack.prod.conf.js
  16. 10 0
      config/dev.env.js
  17. 76 0
      config/index.js
  18. 6 0
      config/prod.env.js
  19. 7 0
      config/test.env.js
  20. 6 0
      cordova-hcp.json
  21. 12 0
      index.html
  22. 19233 0
      package-lock.json
  23. 112 0
      package.json
  24. 16 0
      src/App.vue
  25. 23 0
      src/api/admin_user.js
  26. 96 0
      src/api/advice.js
  27. 25 0
      src/api/check.js
  28. 203 0
      src/api/dialysis.js
  29. 14 0
      src/api/doctor.js
  30. 13 0
      src/api/login.js
  31. 27 0
      src/api/monitor.js
  32. 73 0
      src/api/patient.js
  33. 8 0
      src/api/qiniu.js
  34. BIN
      src/assets/login/data.jpg
  35. BIN
      src/assets/login/logo.png
  36. BIN
      src/assets/login/nodata.jpg
  37. BIN
      src/assets/my/11.png
  38. BIN
      src/assets/my/12.png
  39. BIN
      src/assets/my/13.png
  40. BIN
      src/assets/my/14.png
  41. BIN
      src/assets/my/15.png
  42. BIN
      src/assets/my/16.png
  43. BIN
      src/assets/my/ico_gywm.png
  44. BIN
      src/assets/my/ico_rgsz.png
  45. BIN
      src/assets/my/ico_rjgx.png
  46. BIN
      src/assets/my/ico_sybz.png
  47. BIN
      src/assets/my/ico_xtsz.png
  48. BIN
      src/assets/my/ico_xxtz.png
  49. BIN
      src/assets/product/ico_1.png
  50. BIN
      src/assets/product/ico_2.png
  51. BIN
      src/assets/product/logo.png
  52. BIN
      src/assets/product/test.jpg
  53. BIN
      src/assets/record/1.png
  54. BIN
      src/assets/record/10.png
  55. BIN
      src/assets/record/11.png
  56. BIN
      src/assets/record/12.png
  57. BIN
      src/assets/record/13.png
  58. BIN
      src/assets/record/14.png
  59. BIN
      src/assets/record/15.png
  60. BIN
      src/assets/record/16.png
  61. BIN
      src/assets/record/2.png
  62. BIN
      src/assets/record/3.png
  63. BIN
      src/assets/record/4.png
  64. BIN
      src/assets/record/5.png
  65. BIN
      src/assets/record/6.png
  66. BIN
      src/assets/record/7.png
  67. BIN
      src/assets/record/8.png
  68. BIN
      src/assets/record/9.png
  69. 59 0
      src/assets/styles/iconfont - 副本.css
  70. 63 0
      src/assets/styles/iconfont.css
  71. 180 0
      src/assets/styles/iconfont/demo_unicode.html
  72. 51 0
      src/assets/styles/iconfont/iconfont.css
  73. BIN
      src/assets/styles/iconfont/iconfont.eot
  74. 32 0
      src/assets/styles/iconfont/iconfont.svg
  75. BIN
      src/assets/styles/iconfont/iconfont.ttf
  76. BIN
      src/assets/styles/iconfont/iconfont.woff
  77. 44 0
      src/main.js
  78. 127 0
      src/pages/advice/AdvicePage.vue
  79. 398 0
      src/pages/advice/DialysisAdviceTable.vue
  80. 395 0
      src/pages/advice/NormalAdviceTable.vue
  81. 84 0
      src/pages/advice/index.vue
  82. 172 0
      src/pages/home/login.vue
  83. 28 0
      src/pages/layout/ContentArea.vue
  84. 119 0
      src/pages/layout/RecordPage.vue
  85. 96 0
      src/pages/layout/SideBar.vue
  86. 29 0
      src/pages/layout/layout.vue
  87. 177 0
      src/pages/main/DetailsPage.vue
  88. 305 0
      src/pages/main/DialysisArea.vue
  89. 284 0
      src/pages/main/PatientBox.vue
  90. 2414 0
      src/pages/main/Print.vue
  91. 2480 0
      src/pages/main/PrintIndex.vue
  92. 141 0
      src/pages/main/RecordPage.vue
  93. 272 0
      src/pages/main/WaitingArea.vue
  94. 401 0
      src/pages/main/add_urgent_schedule.vue
  95. 215 0
      src/pages/main/dialog/AcceptsDialog.vue
  96. 641 0
      src/pages/main/dialog/AssessmentDialog.vue
  97. 191 0
      src/pages/main/dialog/ComputerDialog.vue
  98. 315 0
      src/pages/main/dialog/DoubleDialog.vue
  99. 544 0
      src/pages/main/dialog/LongDialog.vue
  100. 0 0
      src/pages/main/dialog/MonitDialog.vue

+ 18 - 0
.babelrc View File

@@ -0,0 +1,18 @@
1
+{
2
+  "presets": [
3
+    ["env", {
4
+      "modules": false,
5
+      "targets": {
6
+        "browsers": ["> 1%", "last 2 versions", "not ie <= 8"]
7
+      }
8
+    }],
9
+    "stage-2"
10
+  ],
11
+  "plugins": ["transform-vue-jsx", "transform-runtime"],
12
+  "env": {
13
+    "test": {
14
+      "presets": ["env", "stage-2"],
15
+      "plugins": ["transform-vue-jsx", "transform-es2015-modules-commonjs", "dynamic-import-node"]
16
+    }
17
+  }
18
+}

+ 9 - 0
.editorconfig View File

@@ -0,0 +1,9 @@
1
+root = true
2
+
3
+[*]
4
+charset = utf-8
5
+indent_style = space
6
+indent_size = 2
7
+end_of_line = lf
8
+insert_final_newline = true
9
+trim_trailing_whitespace = true

+ 5 - 0
.eslintignore View File

@@ -0,0 +1,5 @@
1
+/build/
2
+/config/
3
+/dist/
4
+/*.js
5
+/test/unit/coverage/

+ 29 - 0
.eslintrc.js View File

@@ -0,0 +1,29 @@
1
+// https://eslint.org/docs/user-guide/configuring
2
+
3
+module.exports = {
4
+  root: true,
5
+  parserOptions: {
6
+    parser: 'babel-eslint'
7
+  },
8
+  env: {
9
+    browser: true,
10
+  },
11
+  extends: [
12
+    // https://github.com/vuejs/eslint-plugin-vue#priority-a-essential-error-prevention
13
+    // consider switching to `plugin:vue/strongly-recommended` or `plugin:vue/recommended` for stricter rules.
14
+    'plugin:vue/essential', 
15
+    // https://github.com/standard/standard/blob/master/docs/RULES-en.md
16
+    'standard'
17
+  ],
18
+  // required to lint *.vue files
19
+  plugins: [
20
+    'vue'
21
+  ],
22
+  // add your custom rules here
23
+  rules: {
24
+    // allow async-await
25
+    'generator-star-spacing': 'off',
26
+    // allow debugger during development
27
+    'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
28
+  }
29
+}

+ 19 - 0
.gitignore View File

@@ -0,0 +1,19 @@
1
+.DS_Store
2
+node_modules/
3
+/dist/
4
+npm-debug.log*
5
+yarn-debug.log*
6
+yarn-error.log*
7
+/test/unit/coverage/
8
+/test/e2e/reports/
9
+selenium-debug.log
10
+
11
+# Editor directories and files
12
+.idea
13
+.vscode
14
+*.suo
15
+*.ntvs*
16
+*.njsproj
17
+*.sln
18
+.svn
19
+.dist

+ 10 - 0
.postcssrc.js View File

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

+ 30 - 0
README.md View File

@@ -0,0 +1,30 @@
1
+# yes
2
+
3
+> A Vue.js project
4
+
5
+## Build Setup
6
+
7
+``` bash
8
+# install dependencies
9
+npm install
10
+
11
+# serve with hot reload at localhost:8080
12
+npm run dev
13
+
14
+# build for production with minification
15
+npm run build
16
+
17
+# build for production and view the bundle analyzer report
18
+npm run build --report
19
+
20
+# run unit tests
21
+npm run unit
22
+
23
+# run e2e tests
24
+npm run e2e
25
+
26
+# run all tests
27
+npm test
28
+```
29
+
30
+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).

+ 41 - 0
build/build.js View File

@@ -0,0 +1,41 @@
1
+'use strict'
2
+require('./check-versions')()
3
+
4
+process.env.NODE_ENV = 'production'
5
+
6
+const ora = require('ora')
7
+const rm = require('rimraf')
8
+const path = require('path')
9
+const chalk = require('chalk')
10
+const webpack = require('webpack')
11
+const config = require('../config')
12
+const webpackConfig = require('./webpack.prod.conf')
13
+
14
+const spinner = ora('building for production...')
15
+spinner.start()
16
+
17
+rm(path.join(config.build.assetsRoot, config.build.assetsSubDirectory), err => {
18
+  if (err) throw err
19
+  webpack(webpackConfig, (err, stats) => {
20
+    spinner.stop()
21
+    if (err) throw err
22
+    process.stdout.write(stats.toString({
23
+      colors: true,
24
+      modules: false,
25
+      children: false, // If you are using ts-loader, setting this to true will make TypeScript errors show up during build.
26
+      chunks: false,
27
+      chunkModules: false
28
+    }) + '\n\n')
29
+
30
+    if (stats.hasErrors()) {
31
+      console.log(chalk.red('  Build failed with errors.\n'))
32
+      process.exit(1)
33
+    }
34
+
35
+    console.log(chalk.cyan('  Build complete.\n'))
36
+    console.log(chalk.yellow(
37
+      '  Tip: built files are meant to be served over an HTTP server.\n' +
38
+      '  Opening index.html over file:// won\'t work.\n'
39
+    ))
40
+  })
41
+})

+ 54 - 0
build/check-versions.js View File

@@ -0,0 +1,54 @@
1
+'use strict'
2
+const chalk = require('chalk')
3
+const semver = require('semver')
4
+const packageConfig = require('../package.json')
5
+const shell = require('shelljs')
6
+
7
+function exec (cmd) {
8
+  return require('child_process').execSync(cmd).toString().trim()
9
+}
10
+
11
+const versionRequirements = [
12
+  {
13
+    name: 'node',
14
+    currentVersion: semver.clean(process.version),
15
+    versionRequirement: packageConfig.engines.node
16
+  }
17
+]
18
+
19
+if (shell.which('npm')) {
20
+  versionRequirements.push({
21
+    name: 'npm',
22
+    currentVersion: exec('npm --version'),
23
+    versionRequirement: packageConfig.engines.npm
24
+  })
25
+}
26
+
27
+module.exports = function () {
28
+  const warnings = []
29
+
30
+  for (let i = 0; i < versionRequirements.length; i++) {
31
+    const mod = versionRequirements[i]
32
+
33
+    if (!semver.satisfies(mod.currentVersion, mod.versionRequirement)) {
34
+      warnings.push(mod.name + ': ' +
35
+        chalk.red(mod.currentVersion) + ' should be ' +
36
+        chalk.green(mod.versionRequirement)
37
+      )
38
+    }
39
+  }
40
+
41
+  if (warnings.length) {
42
+    console.log('')
43
+    console.log(chalk.yellow('To use this template, you must update following to modules:'))
44
+    console.log()
45
+
46
+    for (let i = 0; i < warnings.length; i++) {
47
+      const warning = warnings[i]
48
+      console.log('  ' + warning)
49
+    }
50
+
51
+    console.log()
52
+    process.exit(1)
53
+  }
54
+}

BIN
build/logo.png View File


+ 129 - 0
build/utils.js View File

@@ -0,0 +1,129 @@
1
+'use strict'
2
+const path = require('path')
3
+const config = require('../config')
4
+const ExtractTextPlugin = require('extract-text-webpack-plugin')
5
+const packageConfig = require('../package.json')
6
+
7
+exports.assetsPath = function (_path) {
8
+  const assetsSubDirectory = process.env.NODE_ENV === 'production'
9
+    ? config.build.assetsSubDirectory
10
+    : config.dev.assetsSubDirectory
11
+
12
+  return path.posix.join(assetsSubDirectory, _path)
13
+}
14
+
15
+exports.cssLoaders = function (options) {
16
+  options = options || {}
17
+
18
+  const cssLoader = {
19
+    loader: 'css-loader',
20
+    options: {
21
+      sourceMap: options.sourceMap
22
+    }
23
+  }
24
+
25
+  const postcssLoader = {
26
+    loader: 'postcss-loader',
27
+    options: {
28
+      sourceMap: options.sourceMap
29
+    }
30
+  }
31
+
32
+  // generate loader string to be used with extract text plugin
33
+  function generateLoaders (loader, loaderOptions) {
34
+    const loaders = options.usePostCSS ? [cssLoader, postcssLoader] : [cssLoader]
35
+
36
+    if (loader) {
37
+      loaders.push({
38
+        loader: loader + '-loader',
39
+        options: Object.assign({}, loaderOptions, {
40
+          sourceMap: options.sourceMap
41
+        })
42
+      })
43
+    }
44
+
45
+    // Extract CSS when that option is specified
46
+    // (which is the case during production build)
47
+    if (options.extract) {
48
+      return ExtractTextPlugin.extract({
49
+        use: loaders,
50
+        fallback: 'vue-style-loader'
51
+      })
52
+    } else {
53
+      return ['vue-style-loader'].concat(loaders)
54
+    }
55
+  }
56
+ 
57
+  // 全局文件引入 当然只想编译一个文件的话可以省去这个函数
58
+function resolveResource(name) {
59
+  return path.resolve(__dirname, '../src/styles/' + name);
60
+}
61
+function generateSassResourceLoader() {
62
+  var loaders = [
63
+    cssLoader,
64
+    'sass-loader',
65
+    {
66
+      loader: 'sass-resources-loader',
67
+      options: {
68
+        // 多个文件时用数组的形式传入,单个文件时可以直接使用 path.resolve(__dirname, '../static/style/common.scss'
69
+        resources: [resolveResource('variables.scss')]  
70
+      }
71
+    }
72
+    ];
73
+    if (options.extract) {
74
+      return ExtractTextPlugin.extract({
75
+        use: loaders,
76
+        fallback: 'vue-style-loader'
77
+      })
78
+    } else {
79
+      return ['vue-style-loader'].concat(loaders)
80
+    }
81
+  }
82
+
83
+  // https://vue-loader.vuejs.org/en/configurations/extract-css.html
84
+  return {
85
+    css: generateLoaders(),
86
+    postcss: generateLoaders(),
87
+    less: generateLoaders('less'),
88
+    // sass: generateLoaders('sass', { indentedSyntax: true }),
89
+    // scss: generateLoaders('sass'),
90
+    sass: generateSassResourceLoader(),
91
+    scss: generateSassResourceLoader(),
92
+    stylus: generateLoaders('stylus'),
93
+    styl: generateLoaders('stylus')
94
+  }
95
+}
96
+
97
+// Generate loaders for standalone style files (outside of .vue)
98
+exports.styleLoaders = function (options) {
99
+  const output = []
100
+  const loaders = exports.cssLoaders(options)
101
+
102
+  for (const extension in loaders) {
103
+    const loader = loaders[extension]
104
+    output.push({
105
+      test: new RegExp('\\.' + extension + '$'),
106
+      use: loader
107
+    })
108
+  }
109
+
110
+  return output
111
+}
112
+
113
+exports.createNotifierCallback = () => {
114
+  const notifier = require('node-notifier')
115
+
116
+  return (severity, errors) => {
117
+    if (severity !== 'error') return
118
+
119
+    const error = errors[0]
120
+    const filename = error.file && error.file.split('!').pop()
121
+
122
+    notifier.notify({
123
+      title: packageConfig.name,
124
+      message: severity + ': ' + error.name,
125
+      subtitle: filename || '',
126
+      icon: path.join(__dirname, 'logo.png')
127
+    })
128
+  }
129
+}

+ 22 - 0
build/vue-loader.conf.js View File

@@ -0,0 +1,22 @@
1
+'use strict'
2
+const utils = require('./utils')
3
+const config = require('../config')
4
+const isProduction = process.env.NODE_ENV === 'production'
5
+const sourceMapEnabled = isProduction
6
+  ? config.build.productionSourceMap
7
+  : config.dev.cssSourceMap
8
+
9
+module.exports = {
10
+  loaders: utils.cssLoaders({
11
+    sourceMap: sourceMapEnabled,
12
+    extract: isProduction
13
+  }),
14
+  cssSourceMap: sourceMapEnabled,
15
+  cacheBusting: config.dev.cacheBusting,
16
+  transformToRequire: {
17
+    video: ['src', 'poster'],
18
+    source: 'src',
19
+    img: 'src',
20
+    image: 'xlink:href'
21
+  }
22
+}

+ 117 - 0
build/webpack.base.conf.js View File

@@ -0,0 +1,117 @@
1
+'use strict'
2
+const path = require('path')
3
+const utils = require('./utils')
4
+const config = require('../config')
5
+const vueLoaderConfig = require('./vue-loader.conf')
6
+
7
+
8
+function resolve (dir) {
9
+  return path.join(__dirname, '..', dir)
10
+}
11
+
12
+const createLintingRule = () => ({
13
+  test: /\.(js|vue)$/,
14
+  loader: 'eslint-loader',
15
+  enforce: 'pre',
16
+  include: [resolve('src'), resolve('test')],
17
+  options: {
18
+    formatter: require('eslint-friendly-formatter'),
19
+    emitWarning: !config.dev.showEslintErrorsInOverlay
20
+  }
21
+})
22
+
23
+let webpackConfig = {
24
+  context: path.resolve(__dirname, '../'),
25
+  entry: {
26
+    app: './src/main.js'
27
+  },
28
+  output: {
29
+    path: config.build.assetsRoot,
30
+    filename: '[name].js',
31
+    publicPath: process.env.NODE_ENV === 'production'
32
+      ? config.build.assetsPublicPath
33
+      : config.dev.assetsPublicPath
34
+  },
35
+  resolve: {
36
+    extensions: ['.js', '.vue', '.json'],
37
+    alias: {
38
+      'vue$': 'vue/dist/vue.esm.js',
39
+      '@': resolve('src'),
40
+      'jquery':'jquery',
41
+    }
42
+  },
43
+  module: {
44
+    rules: [
45
+      // ...(config.dev.useEslint ? [createLintingRule()] : []),
46
+      {
47
+        test: /\.vue$/,
48
+        loader: 'vue-loader',
49
+        options: vueLoaderConfig
50
+      },
51
+      {
52
+        test: /\.js$/,
53
+        loader: 'babel-loader',
54
+        include: [resolve('src'), resolve('test'), resolve('node_modules/webpack-dev-server/client')]
55
+      },
56
+      {
57
+        test: /\.(png|jpe?g|gif|svg)(\?.*)?$/,
58
+        loader: 'url-loader',
59
+        options: {
60
+          limit: 10000,
61
+          name: utils.assetsPath('img/[name].[hash:7].[ext]')
62
+        }
63
+      },
64
+      {
65
+        test: /\.(mp4|webm|ogg|mp3|wav|flac|aac)(\?.*)?$/,
66
+        loader: 'url-loader',
67
+        options: {
68
+          limit: 10000,
69
+          name: utils.assetsPath('media/[name].[hash:7].[ext]')
70
+        }
71
+      },
72
+      {
73
+        test: /\.(woff2?|eot|ttf|otf)(\?.*)?$/,
74
+        loader: 'url-loader',
75
+        options: {
76
+          limit: 10000,
77
+          name: utils.assetsPath('fonts/[name].[hash:7].[ext]')
78
+        }
79
+      }
80
+    ]
81
+  },
82
+  node: {
83
+    // prevent webpack from injecting useless setImmediate polyfill because Vue
84
+    // source contains it (although only uses it if it's native).
85
+    setImmediate: false,
86
+    // prevent webpack from injecting mocks to Node native modules
87
+    // that does not make sense for the client
88
+    dgram: 'empty',
89
+    fs: 'empty',
90
+    net: 'empty',
91
+    tls: 'empty',
92
+    child_process: 'empty'
93
+  }
94
+}
95
+module.exports = webpackConfig
96
+
97
+// var vueLoaderConfig = require('./vue-loader.conf')
98
+const vuxLoader = require('vux-loader')
99
+
100
+module.exports = vuxLoader.merge(webpackConfig, {
101
+  plugins: ['vux-ui']
102
+})
103
+
104
+module.exports = vuxLoader.merge(webpackConfig, {
105
+  plugins: [
106
+    {
107
+      name: 'vux-ui'
108
+    },
109
+    {
110
+      name: 'duplicate-style'
111
+    },
112
+    {
113
+      name: 'less-theme', 
114
+      path: 'src/styles/vux.less'
115
+    }
116
+  ]
117
+})

+ 95 - 0
build/webpack.dev.conf.js View File

@@ -0,0 +1,95 @@
1
+'use strict'
2
+const utils = require('./utils')
3
+const webpack = require('webpack')
4
+const config = require('../config')
5
+const merge = require('webpack-merge')
6
+const path = require('path')
7
+const baseWebpackConfig = require('./webpack.base.conf')
8
+const CopyWebpackPlugin = require('copy-webpack-plugin')
9
+const HtmlWebpackPlugin = require('html-webpack-plugin')
10
+const FriendlyErrorsPlugin = require('friendly-errors-webpack-plugin')
11
+const portfinder = require('portfinder')
12
+
13
+const HOST = process.env.HOST
14
+const PORT = process.env.PORT && Number(process.env.PORT)
15
+
16
+const devWebpackConfig = merge(baseWebpackConfig, {
17
+  module: {
18
+    rules: utils.styleLoaders({ sourceMap: config.dev.cssSourceMap, usePostCSS: true })
19
+  },
20
+  // cheap-module-eval-source-map is faster for development
21
+  devtool: config.dev.devtool,
22
+
23
+  // these devServer options should be customized in /config/index.js
24
+  devServer: {
25
+    clientLogLevel: 'warning',
26
+    historyApiFallback: {
27
+      rewrites: [
28
+        { from: /.*/, to: path.posix.join(config.dev.assetsPublicPath, 'index.html') },
29
+      ],
30
+    },
31
+    hot: true,
32
+    contentBase: false, // since we use CopyWebpackPlugin.
33
+    compress: true,
34
+    host: HOST || config.dev.host,
35
+    port: PORT || config.dev.port,
36
+    open: config.dev.autoOpenBrowser,
37
+    overlay: config.dev.errorOverlay
38
+      ? { warnings: false, errors: true }
39
+      : false,
40
+    publicPath: config.dev.assetsPublicPath,
41
+    proxy: config.dev.proxyTable,
42
+    quiet: true, // necessary for FriendlyErrorsPlugin
43
+    watchOptions: {
44
+      poll: config.dev.poll,
45
+    }
46
+  },
47
+  plugins: [
48
+    new webpack.DefinePlugin({
49
+      'process.env': require('../config/dev.env')
50
+    }),
51
+    new webpack.HotModuleReplacementPlugin(),
52
+    new webpack.NamedModulesPlugin(), // HMR shows correct file names in console on update.
53
+    new webpack.NoEmitOnErrorsPlugin(),
54
+    // https://github.com/ampedandwired/html-webpack-plugin
55
+    new HtmlWebpackPlugin({
56
+      filename: 'index.html',
57
+      template: 'index.html',
58
+      inject: true
59
+    }),
60
+    // copy custom static assets
61
+    new CopyWebpackPlugin([
62
+      {
63
+        from: path.resolve(__dirname, '../static'),
64
+        to: config.dev.assetsSubDirectory,
65
+        ignore: ['.*']
66
+      }
67
+    ])
68
+  ]
69
+})
70
+
71
+module.exports = new Promise((resolve, reject) => {
72
+  portfinder.basePort = process.env.PORT || config.dev.port
73
+  portfinder.getPort((err, port) => {
74
+    if (err) {
75
+      reject(err)
76
+    } else {
77
+      // publish the new Port, necessary for e2e tests
78
+      process.env.PORT = port
79
+      // add port to devServer config
80
+      devWebpackConfig.devServer.port = port
81
+
82
+      // Add FriendlyErrorsPlugin
83
+      devWebpackConfig.plugins.push(new FriendlyErrorsPlugin({
84
+        compilationSuccessInfo: {
85
+          messages: [`Your application is running here: http://${devWebpackConfig.devServer.host}:${port}`],
86
+        },
87
+        onErrors: config.dev.notifyOnErrors
88
+        ? utils.createNotifierCallback()
89
+        : undefined
90
+      }))
91
+
92
+      resolve(devWebpackConfig)
93
+    }
94
+  })
95
+})

+ 149 - 0
build/webpack.prod.conf.js View File

@@ -0,0 +1,149 @@
1
+'use strict'
2
+const path = require('path')
3
+const utils = require('./utils')
4
+const webpack = require('webpack')
5
+const config = require('../config')
6
+const merge = require('webpack-merge')
7
+const baseWebpackConfig = require('./webpack.base.conf')
8
+const CopyWebpackPlugin = require('copy-webpack-plugin')
9
+const HtmlWebpackPlugin = require('html-webpack-plugin')
10
+const ExtractTextPlugin = require('extract-text-webpack-plugin')
11
+const OptimizeCSSPlugin = require('optimize-css-assets-webpack-plugin')
12
+const UglifyJsPlugin = require('uglifyjs-webpack-plugin')
13
+
14
+const env = process.env.NODE_ENV === 'testing'
15
+  ? require('../config/test.env')
16
+  : require('../config/prod.env')
17
+
18
+const webpackConfig = merge(baseWebpackConfig, {
19
+  module: {
20
+    rules: utils.styleLoaders({
21
+      sourceMap: config.build.productionSourceMap,
22
+      extract: true,
23
+      usePostCSS: true
24
+    })
25
+  },
26
+  devtool: config.build.productionSourceMap ? config.build.devtool : false,
27
+  output: {
28
+    path: config.build.assetsRoot,
29
+    filename: utils.assetsPath('js/[name].[chunkhash].js'),
30
+    chunkFilename: utils.assetsPath('js/[id].[chunkhash].js')
31
+  },
32
+  plugins: [
33
+    // http://vuejs.github.io/vue-loader/en/workflow/production.html
34
+    new webpack.DefinePlugin({
35
+      'process.env': env
36
+    }),
37
+    new UglifyJsPlugin({
38
+      uglifyOptions: {
39
+        compress: {
40
+          warnings: false
41
+        }
42
+      },
43
+      sourceMap: config.build.productionSourceMap,
44
+      parallel: true
45
+    }),
46
+    // extract css into its own file
47
+    new ExtractTextPlugin({
48
+      filename: utils.assetsPath('css/[name].[contenthash].css'),
49
+      // Setting the following option to `false` will not extract CSS from codesplit chunks.
50
+      // Their CSS will instead be inserted dynamically with style-loader when the codesplit chunk has been loaded by webpack.
51
+      // It's currently set to `true` because we are seeing that sourcemaps are included in the codesplit bundle as well when it's `false`, 
52
+      // increasing file size: https://github.com/vuejs-templates/webpack/issues/1110
53
+      allChunks: true,
54
+    }),
55
+    // Compress extracted CSS. We are using this plugin so that possible
56
+    // duplicated CSS from different components can be deduped.
57
+    new OptimizeCSSPlugin({
58
+      cssProcessorOptions: config.build.productionSourceMap
59
+        ? { safe: true, map: { inline: false } }
60
+        : { safe: true }
61
+    }),
62
+    // generate dist index.html with correct asset hash for caching.
63
+    // you can customize output by editing /index.html
64
+    // see https://github.com/ampedandwired/html-webpack-plugin
65
+    new HtmlWebpackPlugin({
66
+      filename: process.env.NODE_ENV === 'testing'
67
+        ? 'index.html'
68
+        : config.build.index,
69
+      template: 'index.html',
70
+      inject: true,
71
+      minify: {
72
+        removeComments: true,
73
+        collapseWhitespace: true,
74
+        removeAttributeQuotes: true
75
+        // more options:
76
+        // https://github.com/kangax/html-minifier#options-quick-reference
77
+      },
78
+      // necessary to consistently work with multiple chunks via CommonsChunkPlugin
79
+      chunksSortMode: 'dependency'
80
+    }),
81
+    // keep module.id stable when vendor modules does not change
82
+    new webpack.HashedModuleIdsPlugin(),
83
+    // enable scope hoisting
84
+    new webpack.optimize.ModuleConcatenationPlugin(),
85
+    // split vendor js into its own file
86
+    new webpack.optimize.CommonsChunkPlugin({
87
+      name: 'vendor',
88
+      minChunks (module) {
89
+        // any required modules inside node_modules are extracted to vendor
90
+        return (
91
+          module.resource &&
92
+          /\.js$/.test(module.resource) &&
93
+          module.resource.indexOf(
94
+            path.join(__dirname, '../node_modules')
95
+          ) === 0
96
+        )
97
+      }
98
+    }),
99
+    // extract webpack runtime and module manifest to its own file in order to
100
+    // prevent vendor hash from being updated whenever app bundle is updated
101
+    new webpack.optimize.CommonsChunkPlugin({
102
+      name: 'manifest',
103
+      minChunks: Infinity
104
+    }),
105
+    // This instance extracts shared chunks from code splitted chunks and bundles them
106
+    // in a separate chunk, similar to the vendor chunk
107
+    // see: https://webpack.js.org/plugins/commons-chunk-plugin/#extra-async-commons-chunk
108
+    new webpack.optimize.CommonsChunkPlugin({
109
+      name: 'app',
110
+      async: 'vendor-async',
111
+      children: true,
112
+      minChunks: 3
113
+    }),
114
+
115
+    // copy custom static assets
116
+    new CopyWebpackPlugin([
117
+      {
118
+        from: path.resolve(__dirname, '../static'),
119
+        to: config.build.assetsSubDirectory,
120
+        ignore: ['.*']
121
+      }
122
+    ])
123
+  ]
124
+})
125
+
126
+if (config.build.productionGzip) {
127
+  const CompressionWebpackPlugin = require('compression-webpack-plugin')
128
+
129
+  webpackConfig.plugins.push(
130
+    new CompressionWebpackPlugin({
131
+      asset: '[path].gz[query]',
132
+      algorithm: 'gzip',
133
+      test: new RegExp(
134
+        '\\.(' +
135
+        config.build.productionGzipExtensions.join('|') +
136
+        ')$'
137
+      ),
138
+      threshold: 10240,
139
+      minRatio: 0.8
140
+    })
141
+  )
142
+}
143
+
144
+if (config.build.bundleAnalyzerReport) {
145
+  const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin
146
+  webpackConfig.plugins.push(new BundleAnalyzerPlugin())
147
+}
148
+
149
+module.exports = webpackConfig

+ 10 - 0
config/dev.env.js View File

@@ -0,0 +1,10 @@
1
+'use strict'
2
+const merge = require('webpack-merge')
3
+const prodEnv = require('./prod.env')
4
+
5
+module.exports = merge(prodEnv, {
6
+  NODE_ENV: '"development"',
7
+  BASE_API: '"http://api.xt.test.sgjyun.com"',
8
+   //http://api.xt.test.sgjyun.com http://localhost:9529
9
+  // BASE_API: '"http://localhost:9529"'
10
+})

+ 76 - 0
config/index.js View File

@@ -0,0 +1,76 @@
1
+'use strict'
2
+// Template version: 1.3.1
3
+// see http://vuejs-templates.github.io/webpack for documentation.
4
+
5
+const path = require('path')
6
+
7
+module.exports = {
8
+  dev: {
9
+
10
+    // Paths
11
+    assetsSubDirectory: 'static',
12
+    assetsPublicPath: '/',
13
+    proxyTable: {},
14
+
15
+    // Various Dev Server settings
16
+    host: 'localhost', // can be overwritten by process.env.HOST
17
+    port: 8081, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
18
+    autoOpenBrowser: false,
19
+    errorOverlay: true,
20
+    notifyOnErrors: true,
21
+    poll: false, // https://webpack.js.org/configuration/dev-server/#devserver-watchoptions-
22
+
23
+    // Use Eslint Loader?
24
+    // If true, your code will be linted during bundling and
25
+    // linting errors and warnings will be shown in the console.
26
+    useEslint: true,
27
+    // If true, eslint errors and warnings will also be shown in the error overlay
28
+    // in the browser.
29
+    showEslintErrorsInOverlay: false,
30
+
31
+    /**
32
+     * Source Maps
33
+     */
34
+
35
+    // https://webpack.js.org/configuration/devtool/#development
36
+    devtool: 'cheap-module-eval-source-map',
37
+
38
+    // If you have problems debugging vue-files in devtools,
39
+    // set this to false - it *may* help
40
+    // https://vue-loader.vuejs.org/en/options.html#cachebusting
41
+    cacheBusting: true,
42
+
43
+    cssSourceMap: true
44
+  },
45
+
46
+  build: {
47
+    // Template for index.html
48
+    index: path.resolve(__dirname, '../dist/index.html'),
49
+
50
+    // Paths
51
+    assetsRoot: path.resolve(__dirname, '../dist'),
52
+    assetsSubDirectory: 'static',
53
+    assetsPublicPath: './',
54
+
55
+    /**
56
+     * Source Maps
57
+     */
58
+
59
+    productionSourceMap: false,
60
+    // https://webpack.js.org/configuration/devtool/#production
61
+    devtool: '#source-map',
62
+
63
+    // Gzip off by default as many popular static hosts such as
64
+    // Surge or Netlify already gzip all static assets for you.
65
+    // Before setting to `true`, make sure to:
66
+    // npm install --save-dev compression-webpack-plugin
67
+    productionGzip: false,
68
+    productionGzipExtensions: ['js', 'css'],
69
+
70
+    // Run the build command with an extra argument to
71
+    // View the bundle analyzer report after build finishes:
72
+    // `npm run build --report`
73
+    // Set to `true` or `false` to always turn it on or off
74
+    bundleAnalyzerReport: process.env.npm_config_report
75
+  }
76
+}

+ 6 - 0
config/prod.env.js View File

@@ -0,0 +1,6 @@
1
+'use strict'
2
+module.exports = {
3
+  NODE_ENV: '"production"',
4
+  BASE_API: '"http://api.xt.test.sgjyun.com"'
5
+  // '"http://api.xt.kuyicloud.com"', //'"http://api.xt.kuyicloud.com"','"http://api.xt.test.sgjyun.com"'
6
+}

+ 7 - 0
config/test.env.js View File

@@ -0,0 +1,7 @@
1
+'use strict'
2
+const merge = require('webpack-merge')
3
+const devEnv = require('./dev.env')
4
+
5
+module.exports = merge(devEnv, {
6
+  NODE_ENV: '"testing"'
7
+})

+ 6 - 0
cordova-hcp.json View File

@@ -0,0 +1,6 @@
1
+{
2
+    "name": "name",
3
+    "update": "now",
4
+    "min_native_interface": 3,
5
+    "content_url": "http://pad.kuyicloud.com"
6
+}

+ 12 - 0
index.html View File

@@ -0,0 +1,12 @@
1
+<!DOCTYPE html>
2
+<html>
3
+  <head>
4
+    <meta charset="utf-8">
5
+    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
6
+    <title>血透平板端系统</title>
7
+  </head>
8
+  <body>
9
+    <div id="app"></div>
10
+    <!-- built files will be auto injected -->
11
+  </body>
12
+</html>

File diff suppressed because it is too large
+ 19233 - 0
package-lock.json


+ 112 - 0
package.json View File

@@ -0,0 +1,112 @@
1
+{
2
+  "name": "yes",
3
+  "version": "1.0.0",
4
+  "description": "A Vue.js project",
5
+  "author": "superman",
6
+  "private": true,
7
+  "scripts": {
8
+    "dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js",
9
+    "start": "npm run dev",
10
+    "unit": "jest --config test/unit/jest.conf.js --coverage",
11
+    "e2e": "node test/e2e/runner.js",
12
+    "test": "npm run unit && npm run e2e",
13
+    "lint": "eslint --ext .js,.vue src test/unit test/e2e/specs",
14
+    "build": "cross-env NODE_ENV=production env_config=prod node build/build.js && npm run fixfont && npm run fiximg",
15
+    "fixfont": "xcopy %cd%\\dist\\static\\fonts %cd%\\dist\\static\\css\\static\\fonts /s /y /d /e /i",
16
+    "fiximg": "xcopy %cd%\\dist\\static\\img %cd%\\dist\\static\\css\\static\\img /s /y /d /e /i"
17
+  },
18
+  "dependencies": {
19
+    "axios": "^0.18.0",
20
+    "cropperjs": "^1.4.3",
21
+    "element-ui": "^2.4.6",
22
+    "lib-flexible": "^0.3.2",
23
+    "mint-ui": "^2.2.13",
24
+    "print-js": "^1.0.54",
25
+    "vant": "^1.6.8",
26
+    "vue": "^2.5.2",
27
+    "vue-cropper": "^0.4.8",
28
+    "vue-cropperjs": "^3.0.0",
29
+    "vue-pickers": "^1.1.5",
30
+    "vue-router": "^3.0.1",
31
+    "vuex": "^3.0.1",
32
+    "vux": "^2.9.2"
33
+  },
34
+  "devDependencies": {
35
+    "autoprefixer": "^7.1.2",
36
+    "babel-core": "^6.22.1",
37
+    "babel-eslint": "^8.2.1",
38
+    "babel-helper-vue-jsx-merge-props": "^2.0.3",
39
+    "babel-jest": "^21.0.2",
40
+    "babel-loader": "^7.1.1",
41
+    "babel-plugin-dynamic-import-node": "^1.2.0",
42
+    "babel-plugin-import": "^1.9.1",
43
+    "babel-plugin-syntax-jsx": "^6.18.0",
44
+    "babel-plugin-transform-es2015-modules-commonjs": "^6.26.0",
45
+    "babel-plugin-transform-runtime": "^6.22.0",
46
+    "babel-plugin-transform-vue-jsx": "^3.5.0",
47
+    "babel-preset-env": "^1.3.2",
48
+    "babel-preset-stage-2": "^6.22.0",
49
+    "babel-register": "^6.22.0",
50
+    "chalk": "^2.0.1",
51
+    "chromedriver": "^2.46.0",
52
+    "copy-webpack-plugin": "^4.0.1",
53
+    "cropper": "^4.0.0",
54
+    "cross-env": "^5.2.0",
55
+    "cross-spawn": "^5.0.1",
56
+    "css-loader": "^0.28.0",
57
+    "eslint": "^4.15.0",
58
+    "eslint-config-standard": "^10.2.1",
59
+    "eslint-friendly-formatter": "^3.0.0",
60
+    "eslint-loader": "^1.7.1",
61
+    "eslint-plugin-import": "^2.7.0",
62
+    "eslint-plugin-node": "^5.2.0",
63
+    "eslint-plugin-promise": "^3.4.0",
64
+    "eslint-plugin-standard": "^3.0.1",
65
+    "eslint-plugin-vue": "^4.0.0",
66
+    "extract-text-webpack-plugin": "^3.0.0",
67
+    "file-loader": "^1.1.4",
68
+    "friendly-errors-webpack-plugin": "^1.6.1",
69
+    "html-webpack-plugin": "^2.30.1",
70
+    "jest": "^22.0.4",
71
+    "jest-serializer-vue": "^0.3.0",
72
+    "jquery": "^3.3.1",
73
+    "less": "^3.8.1",
74
+    "less-loader": "^4.1.0",
75
+    "nightwatch": "^0.9.12",
76
+    "node-notifier": "^5.1.2",
77
+    "node-sass": "^4.9.3",
78
+    "optimize-css-assets-webpack-plugin": "^3.2.0",
79
+    "ora": "^1.2.0",
80
+    "portfinder": "^1.0.13",
81
+    "postcss-import": "^11.0.0",
82
+    "postcss-loader": "^2.0.8",
83
+    "postcss-url": "^7.2.1",
84
+    "rimraf": "^2.6.0",
85
+    "sass-loader": "^7.1.0",
86
+    "sass-resources-loader": "^1.3.3",
87
+    "selenium-server": "^3.0.1",
88
+    "semver": "^5.3.0",
89
+    "shelljs": "^0.7.6",
90
+    "uglifyjs-webpack-plugin": "^1.1.1",
91
+    "url-loader": "^0.5.8",
92
+    "vue-jest": "^1.0.2",
93
+    "vue-loader": "^13.3.0",
94
+    "vue-style-loader": "^3.0.1",
95
+    "vue-template-compiler": "^2.5.2",
96
+    "vux-loader": "^1.2.9",
97
+    "webpack": "^3.6.0",
98
+    "webpack-bundle-analyzer": "^2.9.0",
99
+    "webpack-dev-server": "^2.9.1",
100
+    "webpack-merge": "^4.1.0",
101
+    "yaml-loader": "^0.5.0"
102
+  },
103
+  "engines": {
104
+    "node": ">= 6.0.0",
105
+    "npm": ">= 3.0.0"
106
+  },
107
+  "browserslist": [
108
+    "> 1%",
109
+    "last 2 versions",
110
+    "not ie <= 8"
111
+  ]
112
+}

+ 16 - 0
src/App.vue View File

@@ -0,0 +1,16 @@
1
+<template>
2
+  <div id="app">
3
+    <!-- <img src="./assets/logo.png"> -->
4
+    <router-view/>
5
+  </div>
6
+</template>
7
+
8
+<script>
9
+export default {
10
+  name: "App"
11
+};
12
+</script>
13
+
14
+<style>
15
+
16
+</style>

+ 23 - 0
src/api/admin_user.js View File

@@ -0,0 +1,23 @@
1
+import request from '@/utils/request'
2
+
3
+export function GetElectronicSignature(){
4
+    return request({
5
+        url:'/m/api/getelectronicsignature',
6
+        method:'get',
7
+    })
8
+}
9
+
10
+export function SaveElectronicSignature(es){
11
+    return request({
12
+        url:'/m/api/savelectronicsignature',
13
+        method:'post',
14
+        data:es,
15
+    })
16
+}
17
+
18
+export function GetMyInfo(){
19
+    return request({
20
+        url:'/m/api/my',
21
+        method:'get',
22
+    })
23
+}

+ 96 - 0
src/api/advice.js View File

@@ -0,0 +1,96 @@
1
+import request from '@/utils/request'
2
+
3
+export function getAdviceConfig(){
4
+    return request({
5
+        url:'/m/api/getadviceconfigs',
6
+        method:'get',
7
+    })
8
+}
9
+
10
+export function CreateDoctorAdvice(id, advice){
11
+    return request({
12
+        url:'/m/api/advice/create?id='+id,
13
+        method:'post',
14
+        data:advice,
15
+    })
16
+}
17
+export function EditDoctorAdvice(id, advice){
18
+    return request({
19
+        url:'/m/api/advice/edit?id='+id,
20
+        method:'put',
21
+        data:advice,
22
+    })
23
+}
24
+
25
+export function StopDoctorAdvice(id, advice){
26
+    return request({
27
+        url:'/m/api/advice/stop?id='+id,
28
+        method:'Post',
29
+        data:advice,
30
+    })
31
+}
32
+
33
+export function ExecDoctorAdvice(params){
34
+    return request({
35
+        url:'/m/api/advice/exec',
36
+        method:'Post',
37
+        params:params,
38
+    })
39
+}
40
+
41
+export function CheckDoctorAdvice(params){
42
+    return request({
43
+        url:'/m/api/advice/check',
44
+        method:'Post',
45
+        params:params,
46
+    })
47
+}
48
+
49
+export function DeleteDoctorAdvice(id){
50
+    return request({
51
+        url:'/m/api/advice/delete?id='+id,
52
+        method:'Delete',
53
+    })
54
+}
55
+
56
+export function DeleteDoctorAdviceNew(group_no, advice_id) {
57
+    return request({
58
+        url: "/m/api/newadvice/delete",
59
+        method: "Delete",
60
+        params: {
61
+            groupno: group_no,
62
+            advice_id: advice_id,
63
+        }
64
+    })
65
+}
66
+
67
+export function getSchedualDoctors(params) {
68
+    return request({
69
+        url: "/m/api/schedule/advices",
70
+        method: "get",
71
+        params: params,
72
+    })
73
+}
74
+
75
+export function batchCreateAdvices(patient_id, group_no, data) {
76
+    return request({
77
+        url: "/m/api/advice/creategroup",
78
+        method: "post",
79
+        params: {
80
+            id: patient_id,
81
+            group_no: group_no,
82
+        },
83
+        data: data,
84
+    })
85
+}
86
+
87
+export function modifyAdviceGroupStartTime(group_no, start_time_str) {
88
+    return request({
89
+        url: "/m/api/advice/group/modify_starttime",
90
+        method: "post",
91
+        params: {
92
+            group_no: group_no,
93
+            start_time: start_time_str,
94
+        }
95
+    })
96
+}

+ 25 - 0
src/api/check.js View File

@@ -0,0 +1,25 @@
1
+import request from '@/utils/request'
2
+
3
+
4
+
5
+export function GetInspection(params){
6
+  return request({
7
+    url:'/m/api/inspection/reference',
8
+    method:'get',
9
+    params:params
10
+  })
11
+}
12
+
13
+
14
+
15
+export function GetInspectionItemValue(params){
16
+  return request({
17
+    url:'/m/api/inspection/list',
18
+    method:'get',
19
+    params:params
20
+  })
21
+}
22
+
23
+
24
+
25
+

+ 203 - 0
src/api/dialysis.js View File

@@ -0,0 +1,203 @@
1
+import request from "@/utils/request"
2
+
3
+export function getDialysisScheduals(params) {
4
+    return request({
5
+        url: "/m/api/scheduals",
6
+        method: "get",
7
+        params: params,
8
+    })
9
+}
10
+
11
+export function getWaitingScheduals(params) {
12
+    return request({
13
+        url: "/m/api/waiting_scheduals",
14
+        method: "get",
15
+        params: params,
16
+    })
17
+}
18
+
19
+export function getDialysisRecord(params) {
20
+    return request({
21
+        url: "/m/api/dialysis/record",
22
+        method: "get",
23
+        params: params,
24
+    })
25
+}
26
+
27
+export function dialysisGlobalConfig() {
28
+    return request({
29
+        url: "/m/api/dialysisglobalconfig",
30
+        method: "get",
31
+    })
32
+}
33
+
34
+
35
+
36
+export function commitTreatmentSummary(params) {
37
+  return request({
38
+    url: "/m/api/dialysis/treatmentSummary",
39
+    method: "post",
40
+    params: params,
41
+
42
+  })
43
+}
44
+
45
+export function commitDoubleCheck(params) {
46
+  return request({
47
+    url: "/m/api/dialysis/doublecheck",
48
+    method: "post",
49
+    params: params,
50
+
51
+
52
+  })
53
+}
54
+
55
+
56
+
57
+export function commitAcceptsAssessment(params) {
58
+  return request({
59
+    url: "/m/api/dialysis/acceptsAssessment",
60
+    method: "post",
61
+    params: params,
62
+
63
+  })
64
+}
65
+
66
+
67
+export function finish(params) {
68
+  return request({
69
+    url: "/m/api/dialysis/finish",
70
+    method: "post",
71
+    params: params,
72
+  })
73
+}
74
+
75
+
76
+
77
+
78
+export function commitDialysisPrescription(params) {
79
+  return request({
80
+    url: "/m/api/dialysis/dialysisPrescription",
81
+    method: "post",
82
+    params: params,
83
+  })
84
+}
85
+
86
+
87
+export function commitAssessmentAfterDislysis(params) {
88
+  return request({
89
+    url: "/m/api/dialysis/assessmentAfterDislysis",
90
+    method: "post",
91
+    params: params,
92
+  })
93
+}
94
+
95
+export function addMonitorRecord(params) {
96
+  return request({
97
+    url: "/m/api/monitor/add",
98
+    method: "post",
99
+    params: params,
100
+  })
101
+}
102
+
103
+export function editMonitorRecord(params) {
104
+  return request({
105
+    url: "/m/api/monitor/edit",
106
+    method: "post",
107
+    params: params,
108
+  })
109
+}
110
+
111
+export function deleteMonitorRecord(params) {
112
+  return request({
113
+    url: "/m/api/monitor/delete",
114
+    method: "post",
115
+    params: params,
116
+  })
117
+}
118
+
119
+export function GetAllZone(params){
120
+  return request({
121
+    url:'/m/api/dialysis/allzone',
122
+    method:'get',
123
+    params:params
124
+  })
125
+}
126
+
127
+export function getSchedualPatient(params){
128
+  return request({
129
+    url:'/m/api/dialysis/patients',
130
+    method:'get',
131
+    params:params
132
+  })
133
+}
134
+
135
+export function postSolution(params){
136
+  return request({
137
+    url:'/m/api/solution',
138
+    method:'post',
139
+    params:params
140
+  })
141
+}
142
+
143
+
144
+export function startDialysis(params){
145
+  return request({
146
+    url:'/m/api/dialysis/start',
147
+    method:'post',
148
+    params:params
149
+  })
150
+}
151
+
152
+
153
+export function getLastAccepts(params){
154
+  return request({
155
+    url:'/m/api/accepts/get',
156
+    method:'get',
157
+    params:params
158
+  })
159
+}
160
+
161
+export function getPrintDialysisRecord(params) {
162
+  return request({
163
+    url:'/m/api/print/dialysisorder',
164
+    method:'Get',
165
+    params:params
166
+  })
167
+}
168
+
169
+export function getUrgentScheduleInitData() {
170
+  return request({
171
+    url: '/m/api/schedule/urgentinit',
172
+    method: 'Get',
173
+  })
174
+}
175
+
176
+export function postUrgentSchedule(params) {
177
+  return request({
178
+    url: '/m/api/schedule/urgentadd',
179
+    method: 'post',
180
+    params: params,
181
+  })
182
+}
183
+
184
+export function postSign(params) {
185
+  return request({
186
+    url: '/m/api/dialysis/sign',
187
+    method: 'Post',
188
+    params:params
189
+
190
+  })
191
+}
192
+
193
+
194
+
195
+
196
+
197
+export function GetMonitor(params){
198
+  return request({
199
+    url:'/m/api/monitor/get',
200
+    method:'get',
201
+    params:params
202
+  })
203
+}

+ 14 - 0
src/api/doctor.js View File

@@ -0,0 +1,14 @@
1
+import request from '@/utils/request'
2
+
3
+export function fetchAllDoctorAndNurse(){
4
+  return request({
5
+    url:'/m/api/alldoctors',
6
+    method:'get',
7
+  })
8
+}
9
+export function fetchAllAdminUsers(){
10
+  return request({
11
+    url:'/m/api/admin/users',
12
+    method:'get',
13
+  })
14
+}

+ 13 - 0
src/api/login.js View File

@@ -0,0 +1,13 @@
1
+import request from "@/utils/request"
2
+
3
+export function loginByPwd(mobile, password) {
4
+    const params = {
5
+        mobile: mobile,
6
+        password: password,
7
+    }
8
+    return request({
9
+        url: "/m/api/login/pwd",
10
+        method: "post",
11
+        params: params,
12
+    })
13
+}

+ 27 - 0
src/api/monitor.js View File

@@ -0,0 +1,27 @@
1
+import request from '@/utils/request'
2
+
3
+export function getMonitorList(params){
4
+  return request({
5
+    url:'/m/api/monitor',
6
+    method:'get',
7
+    params:params
8
+
9
+  })
10
+}
11
+
12
+export function getPatientMonitors(params) {
13
+  return request({
14
+    url: '/m/api/monitor/patient',
15
+    method: 'get',
16
+    params: params,
17
+  })
18
+}
19
+
20
+
21
+export function GetAllZone(params){
22
+  return request({
23
+    url:'/m/api/dialysis/allzone',
24
+    method:'get',
25
+    params:params
26
+  })
27
+}

+ 73 - 0
src/api/patient.js View File

@@ -0,0 +1,73 @@
1
+import request from "@/utils/request"
2
+
3
+
4
+export function createPatientDialysisSolution(id,solution){
5
+    return request({
6
+        url:'/m/api/solution/create?patient='+id,
7
+        method:'post',
8
+        data:solution,
9
+    })
10
+}
11
+export function EditDialysisSolution(id,solution){
12
+    return request({
13
+        url:'/m/api/solution/edit?id='+id,
14
+        method:'post',
15
+        data:solution,
16
+    })
17
+}
18
+
19
+export function EditAssessmentBeforeDislysis(id,assessment_date,before){
20
+    return request({
21
+        url:'/m/api/assessmentbefore/commit?patient='+id+"&assessment_date="+assessment_date,
22
+        method:'post',
23
+        data:before,
24
+    })
25
+}
26
+export function GetPatientInfoWithDiseases(id){
27
+    return request({
28
+        url:'/m/api/patient/info?patient='+id,
29
+        method:'Get',
30
+    })
31
+}
32
+
33
+
34
+export function getAllEducationList(params){
35
+    return request({
36
+      url:'/m/api/patient/education',
37
+      method:'get',
38
+      params:params,
39
+    })
40
+  }
41
+
42
+  export function getSchedualList(params){
43
+    return request({
44
+      url:'/m/api/patients/schedules',
45
+      method:'get',
46
+      params:params,
47
+    })
48
+  }
49
+
50
+
51
+export function getRecordList(params){
52
+  return request({
53
+    url:'/m/api/patients/record',
54
+    method:'get',
55
+    params:params,
56
+  })
57
+}
58
+
59
+
60
+export function GetPatientDialysisSolutionList(params) {
61
+    return request({
62
+        url:'/m/api/patients/solutions',
63
+        method:'get',
64
+        params:params,
65
+    })
66
+}
67
+export function GetDoctorAdvices(params) {
68
+    return request({
69
+        url:'/m/api/patients/doctoradvices',
70
+        method:'get',
71
+        params:params,
72
+    })
73
+}

+ 8 - 0
src/api/qiniu.js View File

@@ -0,0 +1,8 @@
1
+import request from '@/utils/request'
2
+
3
+export function getToken(){
4
+    return request({
5
+        url:'/m/api/qiniu/uptoken',
6
+        method:'get',
7
+    })
8
+}

BIN
src/assets/login/data.jpg View File


BIN
src/assets/login/logo.png View File


BIN
src/assets/login/nodata.jpg View File


BIN
src/assets/my/11.png View File


BIN
src/assets/my/12.png View File


BIN
src/assets/my/13.png View File


BIN
src/assets/my/14.png View File


BIN
src/assets/my/15.png View File


BIN
src/assets/my/16.png View File


BIN
src/assets/my/ico_gywm.png View File


BIN
src/assets/my/ico_rgsz.png View File


BIN
src/assets/my/ico_rjgx.png View File


BIN
src/assets/my/ico_sybz.png View File


BIN
src/assets/my/ico_xtsz.png View File


BIN
src/assets/my/ico_xxtz.png View File


BIN
src/assets/product/ico_1.png View File


BIN
src/assets/product/ico_2.png View File


BIN
src/assets/product/logo.png View File


BIN
src/assets/product/test.jpg View File


BIN
src/assets/record/1.png View File


BIN
src/assets/record/10.png View File


BIN
src/assets/record/11.png View File


BIN
src/assets/record/12.png View File


BIN
src/assets/record/13.png View File


BIN
src/assets/record/14.png View File


BIN
src/assets/record/15.png View File


BIN
src/assets/record/16.png View File


BIN
src/assets/record/2.png View File


BIN
src/assets/record/3.png View File


BIN
src/assets/record/4.png View File


BIN
src/assets/record/5.png View File


BIN
src/assets/record/6.png View File


BIN
src/assets/record/7.png View File


BIN
src/assets/record/8.png View File


BIN
src/assets/record/9.png View File


+ 59 - 0
src/assets/styles/iconfont - 副本.css View File

@@ -0,0 +1,59 @@
1
+
2
+@font-face {font-family: "iconfont";
3
+  src: url('./iconfont/iconfont.eot?t=1539257906607'); /* IE9*/
4
+  src: url('./iconfont/iconfont.eot?t=1539257906607#iefix') format('embedded-opentype'), /* IE6-IE8 */
5
+  url('data:application/x-font-woff;charset=utf-8;base64,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') format('woff'),
6
+  url('./iconfont/iconfont.ttf?t=1539257906607') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/
7
+  url('./iconfont/iconfont.svg?t=1539257906607#iconfont') format('svg'); /* iOS 4.1- */
8
+}
9
+
10
+.iconfont {
11
+  font-family:"iconfont" !important;
12
+  font-size:16px;
13
+  font-style:normal;
14
+  -webkit-font-smoothing: antialiased;
15
+  -moz-osx-font-smoothing: grayscale;
16
+}
17
+
18
+.icon-icon_tingzhi:before { content: "\e64c"; }
19
+
20
+.icon-activity:before { content: "\e6de"; }
21
+
22
+.icon-add:before { content: "\e6df"; }
23
+
24
+.icon-brush:before { content: "\e6e5"; }
25
+
26
+.icon-brush_fill:before { content: "\e6e6"; }
27
+
28
+.icon-close:before { content: "\e6e9"; }
29
+
30
+.icon-document:before { content: "\e6f3"; }
31
+
32
+.icon-document_fill:before { content: "\e6f4"; }
33
+
34
+.icon-dynamic_fill:before { content: "\e6f5"; }
35
+
36
+.icon-dynamic:before { content: "\e6f6"; }
37
+
38
+.icon-editor:before { content: "\e6f7"; }
39
+
40
+.icon-empty:before { content: "\e6f8"; }
41
+
42
+.icon-enter:before { content: "\e6f9"; }
43
+
44
+.icon-people_fill:before { content: "\e715"; }
45
+
46
+.icon-people:before { content: "\e716"; }
47
+
48
+.icon-return:before { content: "\e720"; }
49
+
50
+.icon-right:before { content: "\e721"; }
51
+
52
+.icon-search:before { content: "\e741"; }
53
+
54
+.icon-packup:before { content: "\e749"; }
55
+
56
+.icon-unfold:before { content: "\e74a"; }
57
+
58
+.icon-add1:before { content: "\e604"; }
59
+

+ 63 - 0
src/assets/styles/iconfont.css View File

@@ -0,0 +1,63 @@
1
+
2
+@font-face {font-family: "iconfont";
3
+  src: url('./iconfont/iconfont.eot?t=1539762088773'); /* IE9*/
4
+  src: url('./iconfont/iconfont.eot?t=1539762088773#iefix') format('embedded-opentype'), /* IE6-IE8 */
5
+  url('data:application/x-font-woff;charset=utf-8;base64,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') format('woff'),
6
+  url('./iconfont/iconfont.ttf?t=1539762088773') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/
7
+  url('./iconfont/iconfont.svg?t=1539762088773#iconfont') format('svg'); /* iOS 4.1- */
8
+}
9
+
10
+.iconfont {
11
+  font-family:"iconfont" !important;
12
+  font-size:16px;
13
+  font-style:normal;
14
+  -webkit-font-smoothing: antialiased;
15
+  -moz-osx-font-smoothing: grayscale;
16
+}
17
+
18
+.icon-lock:before { content: "\e6c0"; }
19
+
20
+.icon-my:before { content: "\e78b"; }
21
+
22
+.icon-icon_tingzhi:before { content: "\e64c"; }
23
+
24
+.icon-activity:before { content: "\e6de"; }
25
+
26
+.icon-add:before { content: "\e6df"; }
27
+
28
+.icon-brush:before { content: "\e6e5"; }
29
+
30
+.icon-brush_fill:before { content: "\e6e6"; }
31
+
32
+.icon-close:before { content: "\e6e9"; }
33
+
34
+.icon-document:before { content: "\e6f3"; }
35
+
36
+.icon-document_fill:before { content: "\e6f4"; }
37
+
38
+.icon-dynamic_fill:before { content: "\e6f5"; }
39
+
40
+.icon-dynamic:before { content: "\e6f6"; }
41
+
42
+.icon-editor:before { content: "\e6f7"; }
43
+
44
+.icon-empty:before { content: "\e6f8"; }
45
+
46
+.icon-enter:before { content: "\e6f9"; }
47
+
48
+.icon-people_fill:before { content: "\e715"; }
49
+
50
+.icon-people:before { content: "\e716"; }
51
+
52
+.icon-return:before { content: "\e720"; }
53
+
54
+.icon-right:before { content: "\e721"; }
55
+
56
+.icon-search:before { content: "\e741"; }
57
+
58
+.icon-packup:before { content: "\e749"; }
59
+
60
+.icon-unfold:before { content: "\e74a"; }
61
+
62
+.icon-add1:before { content: "\e604"; }
63
+

+ 180 - 0
src/assets/styles/iconfont/demo_unicode.html View File

@@ -0,0 +1,180 @@
1
+
2
+<!DOCTYPE html>
3
+<html>
4
+<head>
5
+    <meta charset="utf-8"/>
6
+    <title>IconFont</title>
7
+    <link rel="stylesheet" href="demo.css">
8
+
9
+    <style type="text/css">
10
+
11
+        @font-face {font-family: "iconfont";
12
+          src: url('iconfont.eot'); /* IE9*/
13
+          src: url('iconfont.eot#iefix') format('embedded-opentype'), /* IE6-IE8 */
14
+          url('iconfont.woff') format('woff'), /* chrome, firefox */
15
+          url('iconfont.ttf') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/
16
+          url('iconfont.svg#iconfont') format('svg'); /* iOS 4.1- */
17
+        }
18
+
19
+        .iconfont {
20
+          font-family:"iconfont" !important;
21
+          font-size:16px;
22
+          font-style:normal;
23
+          -webkit-font-smoothing: antialiased;
24
+          -webkit-text-stroke-width: 0.2px;
25
+          -moz-osx-font-smoothing: grayscale;
26
+        }
27
+
28
+    </style>
29
+</head>
30
+<body>
31
+    <div class="main markdown">
32
+        <h1>IconFont 图标</h1>
33
+        <ul class="icon_lists clear">
34
+            
35
+                <li>
36
+                <i class="icon iconfont">&#xe6c0;</i>
37
+                    <div class="name">lock</div>
38
+                    <div class="code">&amp;#xe6c0;</div>
39
+                </li>
40
+            
41
+                <li>
42
+                <i class="icon iconfont">&#xe736;</i>
43
+                    <div class="name">people</div>
44
+                    <div class="code">&amp;#xe736;</div>
45
+                </li>
46
+            
47
+                <li>
48
+                <i class="icon iconfont">&#xe7d3;</i>
49
+                    <div class="name">查看 眼睛 实时分析</div>
50
+                    <div class="code">&amp;#xe7d3;</div>
51
+                </li>
52
+            
53
+                <li>
54
+                <i class="icon iconfont">&#xe7b7;</i>
55
+                    <div class="name">关闭</div>
56
+                    <div class="code">&amp;#xe7b7;</div>
57
+                </li>
58
+            
59
+                <li>
60
+                <i class="icon iconfont">&#xe6e5;</i>
61
+                    <div class="name">brush_fill</div>
62
+                    <div class="code">&amp;#xe6e5;</div>
63
+                </li>
64
+            
65
+                <li>
66
+                <i class="icon iconfont">&#xe6f3;</i>
67
+                    <div class="name">document_fill</div>
68
+                    <div class="code">&amp;#xe6f3;</div>
69
+                </li>
70
+            
71
+                <li>
72
+                <i class="icon iconfont">&#xe6f4;</i>
73
+                    <div class="name">dynamic_fill</div>
74
+                    <div class="code">&amp;#xe6f4;</div>
75
+                </li>
76
+            
77
+                <li>
78
+                <i class="icon iconfont">&#xe6f8;</i>
79
+                    <div class="name">enter</div>
80
+                    <div class="code">&amp;#xe6f8;</div>
81
+                </li>
82
+            
83
+                <li>
84
+                <i class="icon iconfont">&#xe715;</i>
85
+                    <div class="name">people_fill</div>
86
+                    <div class="code">&amp;#xe715;</div>
87
+                </li>
88
+            
89
+                <li>
90
+                <i class="icon iconfont">&#xe720;</i>
91
+                    <div class="name">return</div>
92
+                    <div class="code">&amp;#xe720;</div>
93
+                </li>
94
+            
95
+                <li>
96
+                <i class="icon iconfont">&#xe749;</i>
97
+                    <div class="name">packup</div>
98
+                    <div class="code">&amp;#xe749;</div>
99
+                </li>
100
+            
101
+                <li>
102
+                <i class="icon iconfont">&#xe74a;</i>
103
+                    <div class="name">unfold</div>
104
+                    <div class="code">&amp;#xe74a;</div>
105
+                </li>
106
+            
107
+                <li>
108
+                <i class="icon iconfont">&#xe600;</i>
109
+                    <div class="name">验证码</div>
110
+                    <div class="code">&amp;#xe600;</div>
111
+                </li>
112
+            
113
+                <li>
114
+                <i class="icon iconfont">&#xe64d;</i>
115
+                    <div class="name">搜索</div>
116
+                    <div class="code">&amp;#xe64d;</div>
117
+                </li>
118
+            
119
+                <li>
120
+                <i class="icon iconfont">&#xe617;</i>
121
+                    <div class="name">眼睛-闭</div>
122
+                    <div class="code">&amp;#xe617;</div>
123
+                </li>
124
+            
125
+                <li>
126
+                <i class="icon iconfont">&#xe6f5;</i>
127
+                    <div class="name">手机</div>
128
+                    <div class="code">&amp;#xe6f5;</div>
129
+                </li>
130
+            
131
+                <li>
132
+                <i class="icon iconfont">&#xe60c;</i>
133
+                    <div class="name">向下三角形</div>
134
+                    <div class="code">&amp;#xe60c;</div>
135
+                </li>
136
+            
137
+        </ul>
138
+        <h2 id="unicode-">unicode引用</h2>
139
+        <hr>
140
+
141
+        <p>unicode是字体在网页端最原始的应用方式,特点是:</p>
142
+        <ul>
143
+        <li>兼容性最好,支持ie6+,及所有现代浏览器。</li>
144
+        <li>支持按字体的方式去动态调整图标大小,颜色等等。</li>
145
+        <li>但是因为是字体,所以不支持多色。只能使用平台里单色的图标,就算项目里有多色图标也会自动去色。</li>
146
+        </ul>
147
+        <blockquote>
148
+        <p>注意:新版iconfont支持多色图标,这些多色图标在unicode模式下将不能使用,如果有需求建议使用symbol的引用方式</p>
149
+        </blockquote>
150
+        <p>unicode使用步骤如下:</p>
151
+        <h3 id="-font-face">第一步:拷贝项目下面生成的font-face</h3>
152
+        <pre><code class="lang-js hljs javascript">@font-face {
153
+  font-family: <span class="hljs-string">'iconfont'</span>;
154
+  src: url(<span class="hljs-string">'iconfont.eot'</span>);
155
+  src: url(<span class="hljs-string">'iconfont.eot?#iefix'</span>) format(<span class="hljs-string">'embedded-opentype'</span>),
156
+  url(<span class="hljs-string">'iconfont.woff'</span>) format(<span class="hljs-string">'woff'</span>),
157
+  url(<span class="hljs-string">'iconfont.ttf'</span>) format(<span class="hljs-string">'truetype'</span>),
158
+  url(<span class="hljs-string">'iconfont.svg#iconfont'</span>) format(<span class="hljs-string">'svg'</span>);
159
+}
160
+</code></pre>
161
+        <h3 id="-iconfont-">第二步:定义使用iconfont的样式</h3>
162
+        <pre><code class="lang-js hljs javascript">.iconfont{
163
+  font-family:<span class="hljs-string">"iconfont"</span> !important;
164
+  font-size:<span class="hljs-number">16</span>px;font-style:normal;
165
+  -webkit-font-smoothing: antialiased;
166
+  -webkit-text-stroke-width: <span class="hljs-number">0.2</span>px;
167
+  -moz-osx-font-smoothing: grayscale;
168
+}
169
+</code></pre>
170
+        <h3 id="-">第三步:挑选相应图标并获取字体编码,应用于页面</h3>
171
+        <pre><code class="lang-js hljs javascript">&lt;i <span class="hljs-class"><span class="hljs-keyword">class</span></span>=<span class="hljs-string">"iconfont"</span>&gt;&amp;#x33;<span class="xml"><span class="hljs-tag">&lt;/<span class="hljs-name">i</span>&gt;</span></span></code></pre>
172
+
173
+        <blockquote>
174
+        <p>"iconfont"是你项目下的font-family。可以通过编辑项目查看,默认是"iconfont"。</p>
175
+        </blockquote>
176
+    </div>
177
+
178
+
179
+</body>
180
+</html>

+ 51 - 0
src/assets/styles/iconfont/iconfont.css View File

@@ -0,0 +1,51 @@
1
+
2
+@font-face {font-family: "iconfont";
3
+  src: url('iconfont.eot?t=1537270796441'); /* IE9*/
4
+  src: url('iconfont.eot?t=1537270796441#iefix') format('embedded-opentype'), /* IE6-IE8 */
5
+  url('data:application/x-font-woff;charset=utf-8;base64,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') format('woff'),
6
+  url('iconfont.ttf?t=1537270796441') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/
7
+  url('iconfont.svg?t=1537270796441#iconfont') format('svg'); /* iOS 4.1- */
8
+}
9
+
10
+.iconfont {
11
+  font-family:"iconfont" !important;
12
+  font-size:16px;
13
+  font-style:normal;
14
+  -webkit-font-smoothing: antialiased;
15
+  -moz-osx-font-smoothing: grayscale;
16
+}
17
+
18
+.icon-lock:before { content: "\e6c0"; }
19
+
20
+.icon-people:before { content: "\e736"; }
21
+
22
+.icon-chakanyanjingshishifenxi:before { content: "\e7d3"; }
23
+
24
+.icon-guanbi:before { content: "\e7b7"; }
25
+
26
+.icon-brush_fill:before { content: "\e6e5"; }
27
+
28
+.icon-document_fill:before { content: "\e6f3"; }
29
+
30
+.icon-dynamic_fill:before { content: "\e6f4"; }
31
+
32
+.icon-enter:before { content: "\e6f8"; }
33
+
34
+.icon-people_fill:before { content: "\e715"; }
35
+
36
+.icon-return:before { content: "\e720"; }
37
+
38
+.icon-packup:before { content: "\e749"; }
39
+
40
+.icon-unfold:before { content: "\e74a"; }
41
+
42
+.icon-yanzhengma:before { content: "\e600"; }
43
+
44
+.icon-sousuo:before { content: "\e64d"; }
45
+
46
+.icon-yanjing-bi:before { content: "\e617"; }
47
+
48
+.icon-shouji:before { content: "\e6f5"; }
49
+
50
+.icon-xiaotuziCduan_:before { content: "\e60c"; }
51
+

BIN
src/assets/styles/iconfont/iconfont.eot View File


+ 32 - 0
src/assets/styles/iconfont/iconfont.svg View File

@@ -0,0 +1,32 @@
1
+<?xml version="1.0" standalone="no"?>
2
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
3
+<!--
4
+2013-9-30: Created.
5
+-->
6
+<svg>
7
+<metadata>
8
+Created by iconfont
9
+</metadata>
10
+<defs>
11
+
12
+<font id="iconfont" horiz-adv-x="1024" >
13
+  <font-face
14
+    font-family="iconfont"
15
+    font-weight="500"
16
+    font-stretch="normal"
17
+    units-per-em="1024"
18
+    ascent="896"
19
+    descent="-128"
20
+  />
21
+    <missing-glyph />
22
+    
23
+    <glyph glyph-name="mima" unicode="&#58939;" d="M832 544H192c-35.3 0-64-28.7-64-64v-512c0-35.3 28.7-64 64-64h640c35.3 0 64 28.7 64 64V480c0 35.3-28.7 64-64 64z m0-512c0-35.3-28.7-64-64-64H256c-35.3 0-64 28.7-64 64V416c0 35.3 28.7 64 64 64h512c35.3 0 64-28.7 64-64v-384zM512 800c141.4 0 256-114.6 256-256h64c0 176.7-143.3 320-320 320S192 720.7 192 544h64c0 141.4 114.6 256 256 256z m0-448c-35.3 0-64-28.7-64-64v-64c0-35.3 28.7-64 64-64s64 28.7 64 64v64c0 35.3-28.7 64-64 64z"  horiz-adv-x="1024" />
24
+
25
+    
26
+    <glyph glyph-name="gerenzhongxinwoderenwubiaozhuntouxianxing" unicode="&#58927;" d="M382.35 396.089a227.556 227.556 0 1 0 250.027-6.087C794.112 334.137 910.222 180.622 910.222 0a28.444 28.444 0 0 0-56.889 0c0 196.38-159.175 355.556-355.555 355.556S142.222 196.38 142.222 0a28.444 28.444 0 0 0-56.889 0c0 187.733 125.412 346.169 297.017 396.089zM512 412.444a170.667 170.667 0 1 1 0 341.334 170.667 170.667 0 0 1 0-341.334z"  horiz-adv-x="1024" />
27
+
28
+    
29
+
30
+
31
+  </font>
32
+</defs></svg>

BIN
src/assets/styles/iconfont/iconfont.ttf View File


BIN
src/assets/styles/iconfont/iconfont.woff View File


+ 44 - 0
src/main.js View File

@@ -0,0 +1,44 @@
1
+// The Vue build version to load with the `import` command
2
+// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
3
+import Vue from 'vue'
4
+import App from './App'
5
+import router from './router'
6
+import MintUI from 'mint-ui'
7
+import store from './store'
8
+import 'mint-ui/lib/style.css'
9
+import './assets/styles/iconfont.css'
10
+import './permission'
11
+
12
+import '@/styles/reset.scss'
13
+import '@/styles/variables.scss'
14
+import '@/styles/style.scss'
15
+
16
+import Vant from 'vant'
17
+import 'vant/lib/index.css'
18
+import 'vant/lib/icon/local.css'
19
+// import '@/styles/vant-css/index.css'
20
+
21
+import ElementUI from 'element-ui'
22
+import 'element-ui/lib/theme-chalk/index.css'
23
+
24
+// main.js
25
+// import 'lib-flexible'
26
+
27
+// import { AlertPlugin, ToastPlugin } from 'vux'
28
+
29
+// Vue.use(AlertPlugin)
30
+// Vue.use(ToastPlugin)
31
+
32
+Vue.use(MintUI)
33
+Vue.use(Vant)
34
+Vue.use(ElementUI)
35
+Vue.config.productionTip = false
36
+
37
+/* eslint-disable no-new */
38
+new Vue({
39
+  el: '#app',
40
+  router,
41
+  store,
42
+  components: { App },
43
+  template: '<App/>'
44
+})

+ 127 - 0
src/pages/advice/AdvicePage.vue View File

@@ -0,0 +1,127 @@
1
+<template>
2
+  <div>
3
+    <van-row class="top_row">
4
+      <van-col :span="9">
5
+        <div style="visibility: hidden">
6
+          <span class="title"></span>
7
+        </div>
8
+      </van-col>
9
+      <van-col :span="8">
10
+        <div class="department">
11
+          <ul>
12
+            <li v-for="(item,i) in ['透析临嘱','普通医嘱']" :key="i" :class="index == i? 'active':'' " @click="ClickTab(i)" >{{item}}</li>
13
+          </ul>
14
+        </div>
15
+      </van-col>
16
+
17
+
18
+      <van-col :span="5">
19
+        <router-link to="/add_urgent_schedule">
20
+        </router-link>
21
+        <div class="search" style="visibility: hidden">
22
+          <van-field v-model="search_input" ref="search_field" placeholder="透析号/姓名" class="field">
23
+            <i class="iconfont" slot="left-icon">&#xe741;</i>
24
+            <van-button slot="button" size="small" type="info" style="border: none;" @click="searchWithKeyword">搜索</van-button>
25
+          </van-field>
26
+        </div>
27
+      </van-col>
28
+    </van-row>
29
+
30
+
31
+    <div class="area">
32
+      <DialysisAdviceTable v-show="index==0"> </DialysisAdviceTable>
33
+      <NormalAdviceTable v-show="index==1"></NormalAdviceTable>
34
+    </div>
35
+
36
+  </div>
37
+</template>
38
+
39
+<script>
40
+import DialysisAdviceTable from "./DialysisAdviceTable";
41
+import NormalAdviceTable from "./NormalAdviceTable";
42
+export default {
43
+  name: "RecordPage",
44
+  data() {
45
+    return {
46
+      index: 0,
47
+      search_input: "",
48
+      search_keyword: ""
49
+    };
50
+  },
51
+  components: {
52
+    NormalAdviceTable,
53
+    DialysisAdviceTable
54
+  },
55
+  methods: {
56
+    ClickTab: function(tabIndex) {
57
+      this.index = tabIndex;
58
+    },
59
+    searchWithKeyword: function() {
60
+      this.$refs.search_field.blur();
61
+      this.search_keyword = this.search_input;
62
+    },
63
+    clearKeyword: function() {
64
+      this.search_input = "";
65
+      this.search_keyword = "";
66
+    }
67
+  }
68
+};
69
+</script>
70
+
71
+<style style="stylesheet/scss" lang="scss" scoped>
72
+.top_row {
73
+  font-size: 0.3rem;
74
+  padding: 0.3rem 0.3rem;
75
+  border-bottom: 1px #e5e5e5 solid;
76
+  display: flex;
77
+  align-items: center;
78
+}
79
+.title {
80
+  font-size: 0.34rem;
81
+  font-weight: 600;
82
+  color: $title-color;
83
+}
84
+.department {
85
+  text-align: center;
86
+  ul {
87
+    li {
88
+      float: left;
89
+      font-size: 0.36rem;
90
+      margin: 0 0.2rem;
91
+      height: 0.64rem;
92
+      line-height: 0.64rem;
93
+      padding: 0 0.3rem;
94
+      color: $title-color;
95
+      &.active {
96
+        background: $main-color;
97
+        color: #fff;
98
+        border-radius: 30px;
99
+      }
100
+    }
101
+  }
102
+}
103
+.search {
104
+  color: #a8b3ba;
105
+  width: 4.2rem;
106
+  float: right;
107
+
108
+  .iconfont {
109
+    color: #a8b3ba;
110
+    font-size: 0.36rem;
111
+  }
112
+  .field {
113
+    background-color: #ebf1f7;
114
+    height: 0.6rem;
115
+    line-height: 0.6rem;
116
+    padding: 0 0 0 10px;
117
+    border-radius: 30px;
118
+  }
119
+}
120
+.add_schedule_btn {
121
+  margin-left: 10px;
122
+  float: right;
123
+  background-color: #ff7978;
124
+  border: none;
125
+}
126
+</style>
127
+

+ 398 - 0
src/pages/advice/DialysisAdviceTable.vue View File

@@ -0,0 +1,398 @@
1
+<template>
2
+  <div class="mainBox">
3
+    <div class="choice">
4
+      <ul>
5
+
6
+        <el-popover placement="bottom" trigger="click" v-model="show_patient_type_selector">
7
+          <li slot="reference">{{patient_types[patient_selected].text}}<span class="iconfont">&#xe74a;</span></li>
8
+          <div class="popover-demo-content">
9
+            <ul>
10
+              <li v-for="type in patient_types" :key="type.value" @click="handlePaitentType(type.value)" :class="advice_type_selected == type.value ? 'tick' : ''" >{{type.text}}</li>
11
+            </ul>
12
+          </div>
13
+        </el-popover>
14
+
15
+
16
+        <el-popover placement="bottom" trigger="click" v-model="show_zone_selector">
17
+          <li slot="reference">{{zones[zone_selected].text}}<span class="iconfont">&#xe74a;</span></li>
18
+          <div class="popover-demo-content">
19
+            <ul>
20
+              <li v-for="(zone, index) in zones" :key="zone.value" @click="handleZoneChange(index)"  :class="zone_selected == index ? 'tick' : ''">{{zone.text}}</li>
21
+            </ul>
22
+          </div>
23
+        </el-popover>
24
+        <el-popover placement="bottom" trigger="click" v-model="show_sch_type_selector">
25
+          <li slot="reference">{{schedule_types[schedule_type_selected].text}}<span class="iconfont">&#xe74a;</span></li>
26
+          <div class="popover-demo-content">
27
+            <ul>
28
+              <li v-for="scheduleType in schedule_types" :key="scheduleType.value" @click="handletimeType(scheduleType.value)" :class="schedule_type_selected == scheduleType.value ? 'tick' : ''" >{{scheduleType.text}}</li>
29
+            </ul>
30
+          </div>
31
+        </el-popover>
32
+        <!--<el-popover placement="bottom" trigger="click" v-model="show_advice_type_selector">-->
33
+          <!--<li slot="reference">{{advice_types[advice_type_selected].text}}<span class="iconfont">&#xe74a;</span></li>-->
34
+          <!--<div class="popover-demo-content">-->
35
+            <!--<ul>-->
36
+              <!--<li v-for="type in advice_types" :key="type.value" @click="handleAdviceType(type.value)" :class="advice_type_selected == type.value ? 'tick' : ''" >{{type.text}}</li>-->
37
+            <!--</ul>-->
38
+          <!--</div>-->
39
+        <!--</el-popover>-->
40
+
41
+        <li @click="openPicker()">
42
+          {{ selected_date_str }}
43
+          <span class="iconfont">&#xe74a;</span>
44
+        </li>
45
+      </ul>
46
+    </div>
47
+
48
+    <div class="blueBorder"></div>
49
+    <div style="width:100%;overflow:hildden;overflow-x:auto;">
50
+     <table class="table">
51
+      <tr>
52
+        <th width="50px">机号</th>
53
+        <th width="50px">姓名</th>
54
+        <th width="50px">透析号</th>
55
+        <th width="50px">期效</th>
56
+        <th width="100px">开始时间</th>
57
+        <th width="200px">医嘱内容</th>
58
+        <th width="50px">执行时间</th>
59
+        <th width="50px">执行护士</th>
60
+        <th width="50px">校对护士</th>
61
+        <th width="100px">校对时间</th>
62
+        <th width="50px">开嘱医生</th>
63
+        <th width="100px">开嘱时间</th>
64
+
65
+
66
+
67
+      </tr>
68
+      <template v-for="(schedules, zone_name, index) in filtedScheduals">
69
+        <tr :key="index">
70
+          <td>{{ zone_name }}</td>
71
+          <td></td>
72
+          <td></td>
73
+          <td></td>
74
+          <td></td>
75
+          <td></td>
76
+          <td></td>
77
+          <td></td>
78
+          <td></td>
79
+          <td></td>
80
+          <td></td>
81
+          <td></td>
82
+
83
+
84
+        </tr>
85
+        <template v-for="(schedule) in schedules">
86
+          <tr v-for="(advice, advice_index) in schedule.doctor_advice" :key="advice_index + '_' + index"  @click="clickfunction(schedule)">
87
+            <td>{{ advice.parent_id == 0 ? schedule.device_number.number : "" }}</td>
88
+            <td>{{ advice.parent_id == 0 ? schedule.patient.name : "" }}</td>
89
+            <td>{{ advice.parent_id == 0 ? schedule.patient.dialysis_no : "" }}</td>
90
+            <td>{{ getAdaviceType(advice.advice_type)}}</td>
91
+            <td>{{ advice.parent_id == 0 ? parseTime(advice.start_time, "{m}-{d} {h}:{i}") : "" }}</td>
92
+            <td>
93
+              <span >{{advice.advice_name }}</span>
94
+              <span >{{advice.advice_desc}}</span>
95
+              <span>{{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
96
+              <span> 单次用量 {{advice.single_dose}}{{advice.single_dose_unit}}</span>
97
+              <span >{{advice.delivery_way}}</span>
98
+              <span >{{advice.execution_frequency}}</span>
99
+            </td>
100
+            <td>{{ advice.parent_id == 0 ? parseTime(advice.execution_time, "{m}-{d} {h}:{i}") : "" }}</td>
101
+            <td>{{ advice.parent_id == 0 ? getName(advice.execution_staff) : "" }}</td>
102
+            <td>{{ advice.parent_id == 0 ? getName(advice.checker) : "" }}</td>
103
+            <td>{{ advice.parent_id == 0 ? parseTime(advice.check_time, "{m}-{d} {h}:{i}") : "" }}</td>
104
+            <td>{{ advice.parent_id == 0 ? getName(advice.advice_doctor) : "" }}</td>
105
+            <td>{{ advice.parent_id == 0 ? parseTime(advice.created_time, "{m}-{d} {h}:{i}") : "" }}</td>
106
+
107
+
108
+          </tr>
109
+        </template>
110
+      </template>
111
+    </table>
112
+    </div>
113
+    <!--<div class="NoData" v-show="zones.length <= 1"><img src="@/assets/login/data.jpg" alt=""></div>-->
114
+    <div class="NoData" v-show="zones.length  <= 1"><img style="margin-top: 50px; margin-bottom: 50px" src="@/assets/login/data.jpg" alt=""></div>
115
+
116
+  <mt-datetime-picker
117
+    v-model="selected_date"
118
+    type="date"
119
+    ref="picker"
120
+    year-format="{value} "
121
+    month-format="{value} "
122
+    date-format="{value} "
123
+    @confirm="requestSchedualDoctors">
124
+  </mt-datetime-picker>
125
+  </div>
126
+</template>
127
+
128
+<script>
129
+import SideBar from "@/pages/layout/SideBar";
130
+import { parseTime } from "@/utils";
131
+import { getSchedualDoctors } from "@/api/advice";
132
+
133
+export default {
134
+  name: "DialysisAdviceTable",
135
+  components: {
136
+    SideBar
137
+  },
138
+  data() {
139
+    return {
140
+      selected_date: new Date(),
141
+      admin_user: [],
142
+
143
+      show_sch_type_selector: false,
144
+      schedule_type_selected: 0,
145
+      schedule_types: [
146
+        { value: 0, text: "全部班次" },
147
+        { value: 1, text: "上午" },
148
+        { value: 2, text: "下午" },
149
+        { value: 3, text: "晚上" }
150
+      ],
151
+
152
+      show_zone_selector: false,
153
+      zone_selected: 0,
154
+      show_patient_type_selector: false,
155
+      zones: [{ value: 0, text: "全部分区", select: true }],
156
+
157
+      show_advice_type_selector: false,
158
+      advice_type_selected: 0,
159
+      advice_types: [
160
+        { value: 0, text: "全部医嘱" },
161
+        { value: 1, text: "长期医嘱" },
162
+        { value: 3, text: "临时医嘱" }
163
+      ],
164
+
165
+      patient_types: [
166
+        { value: 0, text: "全部病人" },
167
+        { value: 1, text: "我的病人" },
168
+        { value: 2, text: "未执行病人" }
169
+      ],
170
+      patient_selected: 0,
171
+
172
+      scheduleMap: {}
173
+    };
174
+  },
175
+  computed: {
176
+    selected_date_str: function() {
177
+      return parseTime(this.selected_date, "{y}-{m}-{d}");
178
+    },
179
+    filtedScheduals: function() {
180
+      var scheduleMap = new Object();
181
+      if (this.zone_selected == 0) {
182
+        for (const key in this.scheduleMap) {
183
+          scheduleMap[key] = this.scheduleMap[key];
184
+        }
185
+      } else {
186
+        var zone_name = this.zones[this.zone_selected].text;
187
+        scheduleMap[zone_name] = this.scheduleMap[zone_name];
188
+      }
189
+
190
+      if (this.schedule_type_selected != 0) {
191
+        var _scheduleMap = {};
192
+        for (const key in scheduleMap) {
193
+          var origin_schedules = scheduleMap[key];
194
+          var schedules = [];
195
+          for (let index = 0; index < origin_schedules.length; index++) {
196
+            const schedule = origin_schedules[index];
197
+            if (schedule.schedule_type == this.schedule_type_selected) {
198
+              schedules.push(schedule);
199
+            }
200
+          }
201
+          if (schedules.length > 0) {
202
+            _scheduleMap[key] = schedules;
203
+          }
204
+        }
205
+
206
+        scheduleMap = _scheduleMap;
207
+      }
208
+      return scheduleMap;
209
+    }
210
+  },
211
+  created() {
212
+    this.requestSchedualDoctors();
213
+  },
214
+  methods: {
215
+    clickfunction: function(val) {
216
+      console.log(val);
217
+      this.$router.push({
218
+        path: "/details",
219
+        query: {
220
+          patient_id: val.patient.id,
221
+          date: this.selected_date.getTime() / 1000,
222
+          patient_name: val.patient.name
223
+        }
224
+      });
225
+    },
226
+    handlePaitentType: function(index) {
227
+      this.patient_selected = index;
228
+      this.show_patient_type_selector = false;
229
+      this.requestSchedualDoctors();
230
+    },
231
+    openPicker() {
232
+      this.$refs.picker.open();
233
+    },
234
+    getAdaviceType(type) {
235
+      if (type == 1) {
236
+        return "长嘱";
237
+      } else if (type == 2) {
238
+        return "临嘱";
239
+      } else if (type == 3) {
240
+        return "临嘱";
241
+      }
242
+    },
243
+    getName(val) {
244
+
245
+      for (let i = 0; i < this.admin_user.length; i++) {
246
+        if ((this.admin_user[i].id = val)) {
247
+          return this.admin_user[i].name;
248
+        }
249
+      }
250
+    },
251
+    handletimeType: function(index) {
252
+      this.schedule_type_selected = index;
253
+      this.show_sch_type_selector = false;
254
+    },
255
+    handleAdviceType: function(index) {
256
+      this.advice_type_selected = index;
257
+      this.show_advice_type_selector = false;
258
+      this.requestSchedualDoctors();
259
+    },
260
+    handleZoneChange: function(index) {
261
+      this.zone_selected = index;
262
+      this.show_zone_selector = false;
263
+    },
264
+    parseTime: function(time, layout) {
265
+      console.log(time);
266
+      if (time == 0) {
267
+        return "";
268
+      }
269
+      return parseTime(time, layout);
270
+    },
271
+    requestSchedualDoctors() {
272
+      getSchedualDoctors({
273
+        date: this.selected_date_str,
274
+        patient_type: this.patient_selected,
275
+        advice_type: 2
276
+      }).then(rs => {
277
+        var resp = rs.data;
278
+        if (resp.state == 1) {
279
+          this.admin_user = resp.data.adminUser;
280
+          var schedules = resp.data.scheduals;
281
+          var zoneMap = {};
282
+          var scheduleMap = {};
283
+          for (let index = 0; index < schedules.length; index++) {
284
+            const schedule = schedules[index];
285
+            if (schedule.doctor_advice.length == 0) {
286
+              continue;
287
+            }
288
+            if (scheduleMap[schedule.device_zone.name] == null) {
289
+              scheduleMap[schedule.device_zone.name] = [];
290
+            }
291
+            scheduleMap[schedule.device_zone.name].push(schedule);
292
+            if (zoneMap[schedule.device_zone.name] == null) {
293
+              zoneMap[schedule.device_zone.name] = schedule.device_zone;
294
+            }
295
+          }
296
+
297
+          var zones = [];
298
+          zones.push({ value: 0, text: "全部分区" });
299
+          for (var zoneName in zoneMap) {
300
+            zones.push({ value: zoneMap[zoneName].id, text: zoneName });
301
+          }
302
+
303
+          zones = zones.sort(function(a, b) {
304
+            return a.value > b.value;
305
+          });
306
+          this.zones = zones;
307
+
308
+          this.scheduleMap = scheduleMap;
309
+        } else {
310
+          this.$toast({
311
+            message: resp.msg
312
+          });
313
+        }
314
+      });
315
+    },
316
+    adviceDesc(advice) {}
317
+  }
318
+};
319
+</script>
320
+
321
+<style style="stylesheet/scss" lang="scss" scoped>
322
+.top {
323
+  .hospital {
324
+    width: 2rem;
325
+  }
326
+  .TopTitle {
327
+    font-size: 0.36rem;
328
+    color: $title-color;
329
+    font-weight: normal;
330
+  }
331
+  padding: 0.3rem 0.3rem;
332
+  @include display-flex;
333
+  @include align-items-center;
334
+  @include text-align;
335
+  @include justify-content-between;
336
+  border-bottom: 1px #e5e5e5 solid;
337
+  .title {
338
+    font-size: 0.3rem;
339
+    font-weight: bold;
340
+    color: $pgh-color;
341
+  }
342
+  .iconfont {
343
+    font-size: 0.4rem;
344
+    color: #a8b3ba;
345
+  }
346
+}
347
+.search {
348
+  background: #ebf1f7;
349
+  border-radius: 30px;
350
+  padding: 0 0.3rem;
351
+  height: 0.6rem;
352
+  line-height: 0.6rem;
353
+  color: #a8b3ba;
354
+
355
+  .iconfont {
356
+    color: #a8b3ba;
357
+    font-size: 0.28rem;
358
+  }
359
+  .searchInput {
360
+    font-size: 0.28rem;
361
+    border: none;
362
+    outline: none;
363
+    background: #ebf1f7;
364
+  }
365
+}
366
+.choice {
367
+  border-bottom: 1px #e5e5e5 solid;
368
+  ul {
369
+    @include display-flex;
370
+    @include align-items-center;
371
+    @include text-align;
372
+    @include justify-content-between;
373
+    width: 70%;
374
+    margin: 0 auto;
375
+    font-size: 0.32rem;
376
+    color: $pgh-color;
377
+    li {
378
+      @include display-flex;
379
+      @include align-items-center;
380
+      @include text-align;
381
+      @include justify-content-between;
382
+      padding: 0.3rem 0;
383
+      font-size: 0.32rem;
384
+      .iconfont {
385
+        margin: 0 0.1rem;
386
+      }
387
+      .line {
388
+        background: #a8b3ba;
389
+        width: 0.2rem;
390
+        height: 1px;
391
+        margin: 0 0.2rem;
392
+        display: inline-block;
393
+      }
394
+    }
395
+  }
396
+}
397
+
398
+</style>

+ 395 - 0
src/pages/advice/NormalAdviceTable.vue View File

@@ -0,0 +1,395 @@
1
+<template>
2
+  <div class="mainBox">
3
+    <div class="choice">
4
+      <ul>
5
+
6
+        <el-popover placement="bottom" trigger="click" v-model="show_patient_type_selector">
7
+          <li slot="reference">{{patient_types[patient_selected].text}}<span class="iconfont">&#xe74a;</span></li>
8
+          <div class="popover-demo-content">
9
+            <ul>
10
+              <li v-for="type in patient_types" :key="type.value" @click="handlePaitentType(type.value)" :class="advice_type_selected == type.value ? 'tick' : ''" >{{type.text}}</li>
11
+            </ul>
12
+          </div>
13
+        </el-popover>
14
+
15
+
16
+        <el-popover placement="bottom" trigger="click" v-model="show_zone_selector">
17
+          <li slot="reference">{{zones[zone_selected].text}}<span class="iconfont">&#xe74a;</span></li>
18
+          <div class="popover-demo-content">
19
+            <ul>
20
+              <li v-for="(zone, index) in zones" :key="zone.value" @click="handleZoneChange(index)"  :class="zone_selected == index ? 'tick' : ''">{{zone.text}}</li>
21
+            </ul>
22
+          </div>
23
+        </el-popover>
24
+        <el-popover placement="bottom" trigger="click" v-model="show_sch_type_selector">
25
+          <li slot="reference">{{schedule_types[schedule_type_selected].text}}<span class="iconfont">&#xe74a;</span></li>
26
+          <div class="popover-demo-content">
27
+            <ul>
28
+              <li v-for="scheduleType in schedule_types" :key="scheduleType.value" @click="handletimeType(scheduleType.value)" :class="schedule_type_selected == scheduleType.value ? 'tick' : ''" >{{scheduleType.text}}</li>
29
+            </ul>
30
+          </div>
31
+        </el-popover>
32
+        <!--<el-popover placement="bottom" trigger="click" v-model="show_advice_type_selector">-->
33
+        <!--<li slot="reference">{{advice_types[advice_type_selected].text}}<span class="iconfont">&#xe74a;</span></li>-->
34
+        <!--<div class="popover-demo-content">-->
35
+        <!--<ul>-->
36
+        <!--<li v-for="type in advice_types" :key="type.value" @click="handleAdviceType(type.value)" :class="advice_type_selected == type.value ? 'tick' : ''" >{{type.text}}</li>-->
37
+        <!--</ul>-->
38
+        <!--</div>-->
39
+        <!--</el-popover>-->
40
+
41
+        <li @click="openPicker()">
42
+          {{ selected_date_str }}
43
+          <span class="iconfont">&#xe74a;</span>
44
+        </li>
45
+      </ul>
46
+    </div>
47
+
48
+    <div class="blueBorder"></div>
49
+    <div style="width:100%;overflow:hildden;overflow-x:auto;">
50
+      <table class="table">
51
+        <tr>
52
+          <th width="50px">机号</th>
53
+          <th width="50px">姓名</th>
54
+          <th width="50px">透析号</th>
55
+          <th width="50px">期效</th>
56
+          <th width="100px">开始时间</th>
57
+          <th width="200px">医嘱内容</th>
58
+          <th width="50px">执行时间</th>
59
+          <th width="50px">执行护士</th>
60
+          <th width="50px">校对护士</th>
61
+          <th width="100px">校对时间</th>
62
+          <th width="50px">开嘱医生</th>
63
+          <th width="100px">开嘱时间</th>
64
+
65
+
66
+
67
+        </tr>
68
+        <template v-for="(schedules, zone_name, index) in filtedScheduals">
69
+          <tr :key="index">
70
+            <td>{{ zone_name }}</td>
71
+            <td></td>
72
+            <td></td>
73
+            <td></td>
74
+            <td></td>
75
+            <td></td>
76
+            <td></td>
77
+            <td></td>
78
+            <td></td>
79
+            <td></td>
80
+            <td></td>
81
+            <td></td>
82
+
83
+          </tr>
84
+          <template v-for="(schedule) in schedules">
85
+            <tr v-for="(advice, advice_index) in schedule.doctor_advice" :key="advice_index + '_' + index"  @click="clickfunction(schedule)">
86
+              <td>{{ advice.parent_id == 0 ? schedule.device_number.number : "" }}</td>
87
+              <td>{{ advice.parent_id == 0 ? schedule.patient.name : "" }}</td>
88
+              <td>{{ advice.parent_id == 0 ? schedule.patient.dialysis_no : "" }}</td>
89
+              <td>{{ getAdaviceType(advice.advice_type)}}</td>
90
+              <td>{{ advice.parent_id == 0 ? parseTime(advice.start_time, "{m}-{d} {h}:{i}") : "" }}</td>
91
+              <td>
92
+                <span >{{advice.advice_name }}</span>
93
+                <span >{{advice.advice_desc}}</span>
94
+
95
+                <span>{{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
96
+                <span> 单次用量 {{advice.single_dose}}{{advice.single_dose_unit}}</span>
97
+                <span >{{advice.delivery_way}}</span>
98
+                <span >{{advice.execution_frequency}}</span>
99
+              </td>
100
+              <td>{{ advice.parent_id == 0 ? parseTime(advice.execution_time, "{m}-{d} {h}:{i}") : "" }}</td>
101
+              <td>{{ advice.parent_id == 0 ? getName(advice.execution_staff) : "" }}</td>
102
+              <td>{{ advice.parent_id == 0 ? getName(advice.checker) : "" }}</td>
103
+              <td>{{ advice.parent_id == 0 ? parseTime(advice.check_time, "{m}-{d} {h}:{i}") : "" }}</td>
104
+              <td>{{ advice.parent_id == 0 ? getName(advice.advice_doctor) : "" }}</td>
105
+              <td>{{ advice.parent_id == 0 ? parseTime(advice.created_time, "{m}-{d} {h}:{i}") : "" }}</td>
106
+
107
+
108
+            </tr>
109
+          </template>
110
+        </template>
111
+      </table>
112
+    </div>
113
+    <!--<div class="NoData" v-show="zones.length <= 1"><img src="@/assets/login/data.jpg" alt=""></div>-->
114
+    <div class="NoData" v-show="zones.length  <= 1"><img style="margin-top: 50px; margin-bottom: 50px" src="@/assets/login/data.jpg" alt=""></div>
115
+
116
+    <mt-datetime-picker
117
+      v-model="selected_date"
118
+      type="date"
119
+      ref="picker"
120
+      year-format="{value} "
121
+      month-format="{value} "
122
+      date-format="{value} "
123
+      @confirm="requestSchedualDoctors">
124
+    </mt-datetime-picker>
125
+  </div>
126
+</template>
127
+
128
+<script>
129
+  import SideBar from "@/pages/layout/SideBar";
130
+  import { parseTime } from "@/utils";
131
+  import { getSchedualDoctors } from "@/api/advice";
132
+
133
+  export default {
134
+    name: "DialysisAdviceTable",
135
+    components: {
136
+      SideBar
137
+    },
138
+    data() {
139
+      return {
140
+        selected_date: new Date(),
141
+        admin_user:[],
142
+
143
+        show_sch_type_selector: false,
144
+        schedule_type_selected: 0,
145
+        schedule_types: [
146
+          { value: 0, text: "全部班次" },
147
+          { value: 1, text: "上午" },
148
+          { value: 2, text: "下午" },
149
+          { value: 3, text: "晚上" }
150
+        ],
151
+
152
+        show_zone_selector: false,
153
+        zone_selected: 0,
154
+        show_patient_type_selector:false,
155
+        zones: [{ value: 0, text: "全部分区", select: true }],
156
+
157
+        show_advice_type_selector: false,
158
+        advice_type_selected: 0,
159
+        advice_types: [
160
+          { value: 0, text: "全部医嘱" },
161
+          { value: 1, text: "长期医嘱" },
162
+          { value: 3, text: "临时医嘱" }
163
+        ],
164
+
165
+        patient_types: [
166
+          { value: 0, text: "全部病人" },
167
+          { value: 1, text: "我的病人" },
168
+          { value: 2, text: "未执行病人" },
169
+        ],
170
+        patient_selected: 0,
171
+
172
+        scheduleMap: {}
173
+      };
174
+    },
175
+    computed: {
176
+      selected_date_str: function() {
177
+        return parseTime(this.selected_date, "{y}-{m}-{d}");
178
+      },
179
+      filtedScheduals: function() {
180
+        var scheduleMap = new Object();
181
+        if (this.zone_selected == 0) {
182
+          for (const key in this.scheduleMap) {
183
+            scheduleMap[key] = this.scheduleMap[key];
184
+          }
185
+        } else {
186
+          var zone_name = this.zones[this.zone_selected].text;
187
+          scheduleMap[zone_name] = this.scheduleMap[zone_name];
188
+        }
189
+
190
+        if (this.schedule_type_selected != 0) {
191
+          var _scheduleMap = {};
192
+          for (const key in scheduleMap) {
193
+            var origin_schedules = scheduleMap[key];
194
+            var schedules = [];
195
+            for (let index = 0; index < origin_schedules.length; index++) {
196
+              const schedule = origin_schedules[index];
197
+              if (schedule.schedule_type == this.schedule_type_selected) {
198
+                schedules.push(schedule);
199
+              }
200
+            }
201
+            if (schedules.length > 0) {
202
+              _scheduleMap[key] = schedules;
203
+            }
204
+          }
205
+
206
+          scheduleMap = _scheduleMap;
207
+        }
208
+        return scheduleMap;
209
+      }
210
+    },
211
+    created() {
212
+      this.requestSchedualDoctors();
213
+    },
214
+    methods: {
215
+      clickfunction: function(val) {
216
+        console.log(val);
217
+        this.$router.push({
218
+          path: "/details",
219
+          query: {
220
+            patient_id: val.patient.id,
221
+            date: this.selected_date.getTime() / 1000,
222
+            patient_name: val.patient.name
223
+          }
224
+        });
225
+      }, handlePaitentType:function(index){
226
+        this.patient_selected = index;
227
+        this.show_patient_type_selector = false;
228
+        this.requestSchedualDoctors();
229
+
230
+      },
231
+      openPicker() {
232
+        this.$refs.picker.open();
233
+      },getAdaviceType(type){
234
+        if(type == 1){
235
+          return "长嘱"
236
+        }else if(type == 2){
237
+          return "临嘱"
238
+        }else if(type == 3){
239
+          return "临嘱"
240
+        }
241
+      },getName(val){
242
+        for(let i = 0; i < this.admin_user.length; i++){
243
+          if(this.admin_user[i].id = val){
244
+            return this.admin_user[i].name
245
+          }
246
+        }
247
+      },
248
+      handletimeType: function(index) {
249
+        this.schedule_type_selected = index;
250
+        this.show_sch_type_selector = false;
251
+      },
252
+      handleAdviceType: function(index) {
253
+        this.advice_type_selected = index;
254
+        this.show_advice_type_selector = false;
255
+        this.requestSchedualDoctors();
256
+      },
257
+      handleZoneChange: function(index) {
258
+        this.zone_selected = index;
259
+        this.show_zone_selector = false;
260
+      },
261
+      parseTime: function(time, layout) {
262
+        if (time == 0) {
263
+          return "";
264
+        }
265
+        return parseTime(time, layout);
266
+      },
267
+      requestSchedualDoctors() {
268
+        getSchedualDoctors({
269
+          date: this.selected_date_str,
270
+          patient_type:this.patient_selected,
271
+          advice_type: this.advice_type_selected,
272
+        }).then(rs => {
273
+          var resp = rs.data;
274
+          if (resp.state == 1) {
275
+            this.admin_user = resp.data.adminUser
276
+            var schedules = resp.data.scheduals;
277
+            var zoneMap = {};
278
+            var scheduleMap = {};
279
+            for (let index = 0; index < schedules.length; index++) {
280
+              const schedule = schedules[index];
281
+              if (schedule.doctor_advice.length == 0) {
282
+                continue;
283
+              }
284
+              if (scheduleMap[schedule.device_zone.name] == null) {
285
+                scheduleMap[schedule.device_zone.name] = [];
286
+              }
287
+              scheduleMap[schedule.device_zone.name].push(schedule);
288
+              if (zoneMap[schedule.device_zone.name] == null) {
289
+                zoneMap[schedule.device_zone.name] = schedule.device_zone;
290
+              }
291
+            }
292
+
293
+            var zones = [];
294
+            zones.push({ value: 0, text: "全部分区" });
295
+            for (var zoneName in zoneMap) {
296
+              zones.push({ value: zoneMap[zoneName].id, text: zoneName });
297
+            }
298
+
299
+            zones = zones.sort(function(a, b) {
300
+              return a.value > b.value;
301
+            });
302
+            this.zones = zones;
303
+
304
+            this.scheduleMap = scheduleMap;
305
+          } else {
306
+            this.$toast({
307
+              message: resp.msg
308
+            });
309
+          }
310
+        });
311
+      },
312
+      adviceDesc(advice) {}
313
+    }
314
+  };
315
+</script>
316
+
317
+<style style="stylesheet/scss" lang="scss" scoped>
318
+  .top {
319
+  .hospital {
320
+  width: 2rem;
321
+  }
322
+  .TopTitle {
323
+  font-size: 0.36rem;
324
+  color: $title-color;
325
+  font-weight: normal;
326
+  }
327
+  padding: 0.3rem 0.3rem;
328
+  @include display-flex;
329
+  @include align-items-center;
330
+  @include text-align;
331
+  @include justify-content-between;
332
+  border-bottom: 1px #e5e5e5 solid;
333
+  .title {
334
+  font-size: 0.3rem;
335
+  font-weight: bold;
336
+  color: $pgh-color;
337
+  }
338
+  .iconfont {
339
+  font-size: 0.4rem;
340
+  color: #a8b3ba;
341
+  }
342
+  }
343
+  .search {
344
+  background: #ebf1f7;
345
+  border-radius: 30px;
346
+  padding: 0 0.3rem;
347
+  height: 0.6rem;
348
+  line-height: 0.6rem;
349
+  color: #a8b3ba;
350
+
351
+  .iconfont {
352
+  color: #a8b3ba;
353
+  font-size: 0.28rem;
354
+  }
355
+  .searchInput {
356
+  font-size: 0.28rem;
357
+  border: none;
358
+  outline: none;
359
+  background: #ebf1f7;
360
+  }
361
+  }
362
+  .choice {
363
+  border-bottom: 1px #e5e5e5 solid;
364
+  ul {
365
+  @include display-flex;
366
+  @include align-items-center;
367
+  @include text-align;
368
+  @include justify-content-between;
369
+  width: 70%;
370
+  margin: 0 auto;
371
+  font-size: 0.32rem;
372
+  color: $pgh-color;
373
+  li {
374
+  @include display-flex;
375
+  @include align-items-center;
376
+  @include text-align;
377
+  @include justify-content-between;
378
+  padding: 0.3rem 0;
379
+  font-size: 0.32rem;
380
+  .iconfont {
381
+  margin: 0 0.1rem;
382
+  }
383
+  .line {
384
+  background: #a8b3ba;
385
+  width: 0.2rem;
386
+  height: 1px;
387
+  margin: 0 0.2rem;
388
+  display: inline-block;
389
+  }
390
+  }
391
+  }
392
+  }
393
+  .table {
394
+  }
395
+</style>

+ 84 - 0
src/pages/advice/index.vue View File

@@ -0,0 +1,84 @@
1
+<template>
2
+  <div class="mainBox">
3
+    <side-bar :active_index="2"></side-bar>
4
+    <div class="mainContent">
5
+      <AdvicePage></AdvicePage>
6
+    </div>
7
+  </div>
8
+</template>
9
+
10
+
11
+<script>
12
+import SideBar from "@/pages/layout/SideBar";
13
+import AdvicePage from "./AdvicePage";
14
+export default {
15
+  name: "index",
16
+  components: {
17
+    AdvicePage,
18
+    SideBar
19
+  }
20
+};
21
+</script>
22
+
23
+<style style="stylesheet/scss" lang="scss"   scoped>
24
+html,
25
+body {
26
+  height: 100%;
27
+}
28
+.mainBox {
29
+  height: 100%;
30
+  font-size: 0.3rem;
31
+  background: #fff;
32
+  .sideColumn {
33
+    .column {
34
+      .head {
35
+        @include display-flex;
36
+        @include align-items-center;
37
+        @include flex-direction;
38
+        @include text-align;
39
+        @include justify-content-center;
40
+        margin: 0.5rem 0 0.5rem 0;
41
+        img {
42
+          width: 100%;
43
+          height: 100%;
44
+          border-radius: 0.5rem;
45
+          width: 0.7rem;
46
+          height: 0.7rem;
47
+        }
48
+      }
49
+      .sidebar {
50
+        @include display-flex;
51
+        @include align-items-center;
52
+        @include flex-direction;
53
+        @include text-align;
54
+        padding: 0;
55
+        li {
56
+          padding: 0 0 0.8rem 0;
57
+          a {
58
+            color: #a8b3ba;
59
+            display: inline-block;
60
+            padding: 0;
61
+            margin: 0;
62
+            p {
63
+              font-size: 0.24rem;
64
+              margin-top: 0.2rem;
65
+            }
66
+            .iconfont {
67
+              font-size: 0.5rem;
68
+              display: inline-block;
69
+            }
70
+          }
71
+          &.active {
72
+            a {
73
+              color: #409eff;
74
+            }
75
+          }
76
+        }
77
+      }
78
+    }
79
+  }
80
+}
81
+.mainContent {
82
+  margin: 0 0 0 1.58rem;
83
+}
84
+</style>

+ 172 - 0
src/pages/home/login.vue View File

@@ -0,0 +1,172 @@
1
+<template>
2
+  <div class="container">
3
+    <div class="login">
4
+      <div class="logo"><img src="../../assets/login/logo.png" alt=""></div>
5
+      <div class="reg">
6
+        <div class="form">
7
+          <ul>
8
+            <li>
9
+              <span class="iconfont">&#xe78b;</span>
10
+              <input placeholder="请输入手机号" type="tel" class="tel" v-model="form.mobile">
11
+            </li>
12
+            <li>
13
+              <span class="iconfont">&#xe6c0;</span>
14
+              <input placeholder="请输入密码" type="password" class="tel" v-model="form.pwd">
15
+            </li>
16
+          </ul>
17
+        </div>
18
+        <!-- <router-link to="/product"> -->
19
+          <button class="loginBtn" @click="loginAction" :class="loginDisable ? 'disableLoginBtn' : ''" :disabled="loginDisable">登录</button>
20
+        <!-- </router-link> -->
21
+        <!-- <div class="forget">
22
+          <a href="">免密码登录</a>
23
+          <a href="">忘记密码?</a>
24
+        </div> -->
25
+      </div>
26
+    </div>
27
+  </div>
28
+</template>
29
+
30
+<script>
31
+import {loginByPwd} from "@/api/login"
32
+import {hex_md5} from "@/utils/md5"
33
+import { getLoginInfoCache, cacheLoginInfo } from '@/utils/admin_info_cache'
34
+
35
+export default {
36
+  name: "Home",
37
+  data() {
38
+    return {
39
+      form: {
40
+        mobile: "",
41
+        pwd: "",
42
+      },
43
+    }
44
+  },
45
+  computed: {
46
+    loginDisable() {
47
+      // return false
48
+      return this.form.mobile.length == 0 || /^1[234578]\d{9}$/.test(this.form.mobile) == false || this.form.pwd.length == 0
49
+    }
50
+  },
51
+  created() {
52
+    var loginInfo = getLoginInfoCache()
53
+    this.form.mobile = loginInfo.mobile
54
+    this.form.pwd = loginInfo.password
55
+  },
56
+  methods: {
57
+    loginAction: function() {
58
+      loginByPwd(this.form.mobile, hex_md5(this.form.pwd)).then(rs => {
59
+        var resp = rs.data
60
+        if (resp.state == 1) {
61
+          cacheLoginInfo(this.form.mobile, this.form.pwd)
62
+
63
+          var user = resp.data.user
64
+          var org = resp.data.org
65
+          var subscibe = resp.data.subscibe
66
+          var config_list = resp.data.config_list
67
+          this.$store.dispatch("InitUserInfo", {user: user, org: org, subscibe: subscibe })
68
+          this.$store.dispatch("SetConfigList", config_list)
69
+
70
+          // this.$router.push({path: "/product"})
71
+          this.$router.push({path: "/main"})
72
+
73
+        } else {
74
+          this.$toast({
75
+            message: resp.msg,
76
+          })
77
+        }
78
+      })
79
+    }
80
+  }
81
+};
82
+</script>
83
+
84
+<style rel="stylesheet/scss" lang="scss" scoped >
85
+.container {
86
+  background: $white-bg;
87
+  @include box-sizing;
88
+  position: fixed;
89
+  width: 100%;
90
+  height: 100%;
91
+  .login {
92
+    // @include box-shadow;
93
+    @include text-align;
94
+    @include display-flex;
95
+    @include align-items-center;
96
+    @include justify-content-center;
97
+    @include flex-direction;
98
+    height: 100%;
99
+    .logo {
100
+      padding: 0 0 1rem;
101
+      img {
102
+        width: 70%;
103
+        height: auto;
104
+        display: inline-block;
105
+      }
106
+    }
107
+    .reg {
108
+      width: 10.77rem;
109
+      .form {
110
+        border: 1px $border-color solid;
111
+        border-radius: 4px;
112
+        li {
113
+          border-bottom: 1px $border-color solid;
114
+          @include align-items-center;
115
+          @include text-align;
116
+          @include display-flex;
117
+          @include box-sizing;
118
+          .tel {
119
+            padding: 0.4rem 0;
120
+            width: 90%;
121
+            border: none;
122
+            outline: none;
123
+            font-size: 0.34rem;
124
+          }
125
+          .mint-cell {
126
+            width: 100%;
127
+          }
128
+          &:last-child {
129
+            border: none;
130
+          }
131
+          .iconfont {
132
+            color: $main-color;
133
+            font-size: 0.5rem;
134
+            margin: 0 0.46rem;
135
+          }
136
+        }
137
+      }
138
+      .forget {
139
+        text-align: left;
140
+        padding: 0.45rem 1rem;
141
+        a {
142
+          float: left;
143
+          font-size: 0.28rem;
144
+          color: $main-color;
145
+          &:nth-child(2) {
146
+            color: #999999;
147
+            float: right;
148
+          }
149
+          &:active {
150
+            background: $white-bg;
151
+          }
152
+        }
153
+      }
154
+      .loginBtn {
155
+        width: 100%;
156
+        height: 1rem;
157
+        line-height: 1rem;
158
+        background: $main-color;
159
+        color: #fff;
160
+        font-size: 0.36rem;
161
+        @include text-align;
162
+        border-radius: 4px;
163
+        margin: 40px 0 0 0;
164
+      }
165
+      .disableLoginBtn {
166
+        background: lightgray;
167
+      }
168
+    }
169
+  }
170
+}
171
+</style>
172
+

+ 28 - 0
src/pages/layout/ContentArea.vue View File

@@ -0,0 +1,28 @@
1
+<template>
2
+    <div class="mainContent">
3
+      <!-- <record-page></record-page> -->
4
+      <router-view :key="key"></router-view>
5
+    </div>
6
+</template>
7
+
8
+<script>
9
+import RecordPage from "./RecordPage";
10
+export default {
11
+    name:'ContentArea',
12
+    components:{  
13
+      RecordPage
14
+    },
15
+    computed: {
16
+      key() {
17
+        return this.$route.fullPath
18
+      }
19
+    }
20
+}
21
+</script>
22
+
23
+<style style="stylesheet/scss" lang="scss" scoped>
24
+.mainContent{
25
+  margin: 0 0 0 1.58rem;
26
+}
27
+</style>
28
+

+ 119 - 0
src/pages/layout/RecordPage.vue View File

@@ -0,0 +1,119 @@
1
+<template>
2
+<div class="record">
3
+    <div class="top">
4
+      <popover placement="bottom" >
5
+        <div slot="content" class="popover-demo-content">
6
+          <ul>
7
+            <li>医院医院医院</li>
8
+            <li>医院医院医院 <span class="iconfont">&#xe721;</span></li>
9
+          </ul>
10
+        </div>
11
+        <div class="hospital"><span class="title"> 深圳市人民医院血液透析中心</span><span class="iconfont">&#xe74a;</span></div>
12
+      </popover>
13
+
14
+        <div class="department">
15
+            <ul>
16
+                <li v-for="(item,i) in ['候诊室','透析区']" :key="i" :class="index == i? 'active':'' " @click="ClickTab(i)" >{{item}}</li>
17
+                
18
+            </ul>
19
+        </div>
20
+        <div class="search">
21
+            <span class="iconfont">&#xe64d;</span>
22
+            <input type="text" class="searchInput" placeholder="透析号/姓名">
23
+        </div>
24
+    </div>
25
+    <div class="area">
26
+       <waiting-area v-show="index==0" title="候诊区"></waiting-area>
27
+       <dialysis-area v-show="index==1" title="透析区"></dialysis-area>
28
+    </div>
29
+    
30
+</div>  
31
+</template>
32
+
33
+
34
+<script>
35
+import DialysisArea from "@/pages/main/DialysisArea";
36
+import WaitingArea from "@/pages/main/WaitingArea";
37
+import { Popover } from 'vux'
38
+export default {
39
+  name: "RecordPage",
40
+  data(){
41
+    return{
42
+      index:0
43
+    }
44
+  },
45
+  components: {
46
+    DialysisArea,
47
+    WaitingArea,
48
+    Popover,
49
+    // Group,
50
+    // Cell
51
+  },
52
+   methods: {
53
+    ClickTab: function(tabIndex) {
54
+      this.index = tabIndex;
55
+    },
56
+   }
57
+};
58
+</script>
59
+
60
+<style style="stylesheet/scss" lang="scss"   scoped>
61
+.record {
62
+  .top {
63
+    padding: 0.28rem 0.3rem;
64
+    @include display-flex;
65
+    @include align-items-center;
66
+    @include text-align;
67
+    @include justify-content-between;
68
+    font-size: 0.3rem;
69
+    border-bottom: 1px #e5e5e5 solid;
70
+    .title {
71
+      font-size: 0.3rem;
72
+      font-weight: bold;
73
+      color: $pgh-color;
74
+    }
75
+    .iconfont{
76
+      font-size: 0.24rem;
77
+      color: #a8b3ba;
78
+    }
79
+  }
80
+  .department {
81
+    
82
+    ul {
83
+      li {
84
+        float: left;
85
+        font-size: 0.28rem;
86
+        margin: 0 0.2rem; 
87
+        height: 0.48rem;
88
+        line-height: 0.48rem;
89
+        width: 1.4rem;
90
+        &.active {
91
+          background: $main-color;
92
+          color: #fff;
93
+          border-radius: 30px;
94
+        }
95
+      }
96
+    }
97
+  }
98
+  .search {
99
+    background: #ebf1f7;
100
+    border-radius: 30px;
101
+    padding: 0 0.3rem;
102
+    height: 0.6rem;
103
+    line-height: 0.6rem;
104
+    color: #a8b3ba;
105
+
106
+    .iconfont {
107
+      color: #a8b3ba;
108
+    }
109
+    .searchInput {
110
+      font-size: 0.28rem;
111
+      border: none;
112
+      outline: none;
113
+      background: #ebf1f7;
114
+    }
115
+  }
116
+  
117
+}
118
+</style>
119
+

+ 96 - 0
src/pages/layout/SideBar.vue View File

@@ -0,0 +1,96 @@
1
+<template>
2
+    <div class="sideColumn">
3
+      <div class="column">
4
+        <div class="head"><img :src="$store.getters.user.org.org_logo" alt=""></div>
5
+        <ul class="sidebar">
6
+            <li :class="active_index == 0 ? 'active' : ''">
7
+                <router-link to="/main"><span class="iconfont">&#xe6e6;</span><p>记录</p></router-link>
8
+            </li>
9
+             <li :class="active_index == 1 ? 'active' : ''">
10
+                <router-link to="/monitoring"><span class="iconfont">&#xe6f5;</span><p>监控</p></router-link>
11
+            </li>
12
+             <li :class="active_index == 2 ? 'active' : ''">
13
+                <router-link to="/advice"><span class="iconfont">&#xe6f4;</span><p>医嘱</p></router-link>
14
+            </li>
15
+             <li :class="active_index == 3 ? 'active' : ''">
16
+                <router-link to="/my"><span class="iconfont">&#xe715;</span><p>我的</p></router-link>
17
+            </li> 
18
+        </ul>
19
+       </div>
20
+    </div>
21
+</template>
22
+
23
+<script>
24
+export default {
25
+  name: "SideBar",
26
+  props: {
27
+    active_index: {
28
+      type: Number,
29
+      default: 0
30
+    }
31
+  }
32
+};
33
+</script>
34
+
35
+<style style="stylesheet/scss" lang="scss" scoped>
36
+.sideColumn {
37
+  float: left;
38
+  width: 1.58rem;
39
+  background: #f5f8fb;
40
+  height: 100%;
41
+  border-right: 1px  solid rgba(193, 193, 193, 0.8);
42
+  position: fixed;
43
+  z-index: 999;
44
+  .column {
45
+    .head {
46
+      @include display-flex;
47
+      @include align-items-center;
48
+      @include text-align;
49
+      @include justify-content-center;
50
+      margin: 0.5rem auto 0.7rem auto;
51
+      width: 1rem;
52
+        height: 1rem;
53
+        overflow: hidden;
54
+        border-radius: 50%;
55
+      img {
56
+        width: 100%;
57
+        height: auto;
58
+        display: block;
59
+      }
60
+    }
61
+    .sidebar {
62
+      @include display-flex;
63
+      @include align-items-center;
64
+      @include flex-direction;
65
+      @include text-align;
66
+      padding: 0;
67
+      li {
68
+        padding: 0 0 0.8rem 0;
69
+        a {
70
+          color: #a8b3ba;
71
+          display: inline-block;
72
+          padding: 0;
73
+          margin: 0;
74
+          p {
75
+            font-size: 0.32rem;
76
+            margin-top: 0.05rem;
77
+          }
78
+          .iconfont {
79
+            font-size: 0.52rem;
80
+            display: inline-block;
81
+          }
82
+        }
83
+        &.active {
84
+          a {
85
+            color: $main-color;
86
+            .iconfont {
87
+              color: $main-color;
88
+            }
89
+          }
90
+        }
91
+      }
92
+    }
93
+  }
94
+}
95
+</style>
96
+

+ 29 - 0
src/pages/layout/layout.vue View File

@@ -0,0 +1,29 @@
1
+<template>
2
+    <div class="mainBox">
3
+       <side-bar></side-bar>
4
+       <content-area></content-area> 
5
+    </div>
6
+</template>
7
+
8
+<script>
9
+import SideBar from "./Sidebar";
10
+import ContentArea from "./ContentArea";
11
+export default {
12
+  name: "layout",
13
+  components: {
14
+    SideBar,
15
+    ContentArea
16
+  }
17
+};
18
+</script>
19
+
20
+<style style="stylesheet/scss" lang="scss"  scoped>
21
+html,
22
+body {
23
+  height: 100%;
24
+}
25
+.mainBox {
26
+  height: 100%;
27
+  font-size: 0.3rem;
28
+}
29
+</style>

+ 177 - 0
src/pages/main/DetailsPage.vue View File

@@ -0,0 +1,177 @@
1
+<template>
2
+    <div class="mainBox">
3
+        <side-bar :active_index="0"></side-bar>
4
+        <div class="mainContent">
5
+            <div class="navigation">
6
+                <div class="goBack">
7
+                    <span class="back" @click="backAction()"><span class="iconfont">&#xe720;</span>返回</span>
8
+                    <el-popover
9
+                      placement="bottom"
10
+                      trigger="click" :disabled="true">
11
+                      <li slot="reference" class="name">{{ patient_name }}</li>
12
+                    </el-popover>
13
+                </div>
14
+                <div class="nav">
15
+                  <ul>
16
+                     <li v-for="(item,i) in ['病历','透析','今日']" :key="i" :class="index == i? 'active':'' " @click="ClickTab(i)" >{{item}}</li>
17
+                  </ul>
18
+                </div>
19
+
20
+                <!-- <div @click="openPicker()" class="time">
21
+                  {{pickerVisible}}<span class="iconfont">&#xe74a;</span>
22
+                </div> -->
23
+                <!-- <div class="time" style="width:1.49rem;">
24
+                  <span class="iconfont">2018-01-01&#xe74a;</span>
25
+                </div> -->
26
+
27
+              <div class="print" style="float: right">
28
+                <el-button size="mini" type="primary" @click="print" icon="el-icon-printer">打印</el-button>
29
+              </div>
30
+
31
+            </div>
32
+            <div class="Tab">
33
+              <CaseHistory v-show="index==0" title="病历"></CaseHistory>
34
+              <!--<check-tab v-show="index==1" title="化验单"></check-tab>-->
35
+              <dialysis-tab v-show="index==1" title="透析" v-on:records="jump(val)"></dialysis-tab>
36
+              <today-tab ref="today" v-show="index==2" title="今日" ></today-tab>
37
+            </div>
38
+
39
+
40
+        </div>
41
+         <!-- <mt-datetime-picker
42
+            v-model="pickerVisible"
43
+            type="date"
44
+            ref="picker"
45
+            year-format="{value} "
46
+            month-format="{value} "
47
+            date-format="{value} ">
48
+        </mt-datetime-picker> -->
49
+    </div>
50
+</template>
51
+
52
+<script>
53
+import SideBar from "@/pages/layout/SideBar";
54
+import TodayTab from "./today/TodayTab";
55
+import DialysisTab from "./dialysis/DialysisTab";
56
+import RecordsTab from "./records/RecordsTab";
57
+import { Popover } from "vux";
58
+import CheckTab from "./dialysis/CheckTab";
59
+import {parseTime} from "@/utils"
60
+import {GetPatientInfoWithDiseases} from "@/api/patient";
61
+import { Toast } from 'vant';
62
+import CaseHistory from "./records/CaseHistory";
63
+
64
+export default {
65
+  name: "DetailsPage",
66
+  components: {
67
+    CaseHistory,
68
+    CheckTab,
69
+    SideBar,
70
+    TodayTab,
71
+    DialysisTab,
72
+    RecordsTab,
73
+    Popover,
74
+  },
75
+  data() {
76
+    return {
77
+      // pickerVisible: new Date(),
78
+      patient_id: 0,
79
+      patient_name: "",
80
+      date: 0,
81
+      index: 2,
82
+      patient: null,
83
+    };
84
+  },
85
+  created() {
86
+    var patient_id = this.$route.query.patient_id;
87
+    var date = this.$route.query.date;
88
+    var patient_name = this.$route.query.patient_name;
89
+    this.patient_id = patient_id;
90
+    this.date = date;
91
+    this.patient_name = patient_name;
92
+    this.GetPatientInfoWithDiseases(this.patient_id);
93
+  },
94
+  methods: {
95
+    ClickTab: function(tabIndex) {
96
+      this.index = tabIndex;
97
+    },
98
+    backAction() {
99
+      this.$router.back(-1);
100
+    },
101
+    openPicker() {
102
+      this.$refs.picker.open();
103
+    },print:function () {
104
+      var xtdate = parseTime(this.date, "{y}-{m}-{d}")
105
+      if(this.patient != null){
106
+        this.$router.push('/Print?xtdate='+xtdate+'&xtno='+this.patient.dialysis_no);
107
+      }
108
+    },GetPatientInfoWithDiseases(id) {
109
+      GetPatientInfoWithDiseases(id).then(response=>{
110
+        if (response.data.state==1) {
111
+          this.patient = response.data.data.patient;
112
+        }else {
113
+          Toast.fail("网络异常");
114
+          return false;
115
+        }
116
+      }).catch(() => {
117
+        // on cancel
118
+        Toast.fail("网络异常");
119
+        return false;
120
+      });
121
+    },jump:function (val) {
122
+      this.index = 2
123
+
124
+    }
125
+  }
126
+};
127
+</script>
128
+
129
+<style style="stylesheet/scss" lang="scss" scoped>
130
+.mainContent {
131
+  position: relative;
132
+  .navigation {
133
+    @include display-flex;
134
+    @include align-items-center;
135
+    @include text-align;
136
+    @include box-sizing;
137
+    @include justify-content-between;
138
+    padding: 0.3rem 0.36rem;
139
+    border-bottom: 1px #e5e5e5 solid;
140
+    position: fixed;
141
+    top: 0;
142
+    left:1.58rem;
143
+    right: 0;
144
+    z-index: 100;
145
+    background: #fff;
146
+   
147
+    .nav {
148
+      ul {
149
+        li {
150
+          float: left;
151
+          font-size: 0.36rem;
152
+          margin: 0 0.2rem;
153
+          height: 0.64rem;
154
+          line-height: 0.64rem;
155
+          padding: 0 0.3rem;
156
+          cursor: pointer;
157
+          &.active {
158
+            background: $main-color;
159
+            color: #fff;
160
+            border-radius: 30px;
161
+          }
162
+        }
163
+      }
164
+    }
165
+    .time {
166
+      cursor: pointer;
167
+      .iconfont {
168
+        margin-left: 0.1rem;
169
+      }
170
+    }
171
+  }
172
+  .Tab {
173
+    padding-top: 63px;
174
+  }
175
+}
176
+</style>
177
+

+ 305 - 0
src/pages/main/DialysisArea.vue View File

@@ -0,0 +1,305 @@
1
+<template>
2
+    <div>
3
+       <div class="screening">
4
+           <ul>
5
+              <popover placement="bottom" >
6
+                <div slot="content" class="popover-demo-content">
7
+                  <ul>
8
+                    <li v-for="(zone, index) in zones" :key="zone.value" @click="handleZoneChange(index)"  :class="zone_selected == index ? 'tick' : ''">{{zone.text}}</li>
9
+                  </ul>
10
+                </div>
11
+               <li>{{ zones.length <= 1 && zone_selected > 0 ? "全部分区" : zones[zone_selected].text }}<span class="iconfont">&#xe74a;</span></li>
12
+               </popover>
13
+               
14
+               <popover placement="bottom" >  
15
+                <div slot="content" class="popover-demo-content">
16
+                  <ul>
17
+                    <li v-for="schedualType in schedual_types" :key="schedualType.value" @click="handletimeType(schedualType.value)" :class="schedual_type_selected == schedualType.value ? 'tick' : ''" >{{schedualType.text}}</li>
18
+                  </ul> 
19
+                </div>
20
+                <li>{{ schedual_types[schedual_type_selected].text}}<span class="iconfont">&#xe74a;</span></li>
21
+               </popover>
22
+
23
+              
24
+               <li @click="openPicker()">{{selected_date_str}}<span class="iconfont">&#xe74a;</span></li>
25
+           </ul>
26
+       </div>
27
+      <div class="stateBox ">
28
+        <div v-for="(item, index) in filtedScheduals" :key="index" >
29
+          <h2 class="title" >{{item.zone_name}}</h2>
30
+          <patient-box class="clearfix" :patients="item.scheduals"></patient-box>
31
+        </div>
32
+        <div class="NoData" v-show="filtedScheduals.length == 0"><img style="margin-top: 50px; margin-bottom: 50px" src="@/assets/login/data.jpg" alt=""></div>
33
+
34
+      </div>
35
+      <mt-datetime-picker
36
+        v-model="selected_date"
37
+        ref="picker"
38
+        type="date"
39
+        year-format="{value} "
40
+        month-format="{value} "
41
+        date-format="{value} "
42
+        @confirm="handleScheduleDateChange">
43
+      </mt-datetime-picker>
44
+    </div>  
45
+</template>
46
+
47
+<script>
48
+import PatientBox from "./PatientBox";
49
+import { Popover } from "vux";
50
+import { Datetime } from "vux";
51
+import { parseTime } from "@/utils/index";
52
+import { getDialysisScheduals } from "@/api/dialysis";
53
+
54
+export default {
55
+  name: "DialysisArea",
56
+  components: {
57
+    PatientBox,
58
+    Popover,
59
+    Datetime
60
+  },
61
+  data() {
62
+    return {
63
+      selected_date: this.$store.getters.app.dialysis_area.schedule_date, //new Date(),
64
+      schedual_types: [
65
+        { value: 0, text: "全部班", select: true },
66
+        { value: 1, text: "上午", select: false },
67
+        { value: 2, text: "下午", select: false },
68
+        { value: 3, text: "晚上", select: false }
69
+      ],
70
+      schedual_type_selected: this.$store.getters.app.dialysis_area
71
+        .schedule_type_select_index,
72
+
73
+      zone_selected: this.$store.getters.app.dialysis_area.zone_select_index,
74
+      zones: [{ value: 0, text: "全部分区", select: true }],
75
+      dialysis_scheduals: []
76
+    };
77
+  },
78
+  props: {
79
+    search_keyword: {
80
+      type: String,
81
+      default: ""
82
+    }
83
+  },
84
+  computed: {
85
+    selected_date_str: function() {
86
+      return parseTime(this.selected_date, "{y}-{m}-{d}");
87
+    },
88
+
89
+    filtedScheduals: function() {
90
+      if (this.dialysis_scheduals.length == 0) {
91
+        return [];
92
+      }
93
+
94
+      var search_keyword = this.search_keyword;
95
+      if (search_keyword.length > 0) {
96
+        var schedules = [];
97
+        for (let o_i = 0; o_i < this.dialysis_scheduals.length; o_i++) {
98
+          const scheduleInfo = this.dialysis_scheduals[o_i];
99
+          var originSchedules = scheduleInfo.scheduals;
100
+          if (originSchedules.length == 0) {
101
+            continue;
102
+          }
103
+          var filtedSchedules = [];
104
+          for (let s_i = 0; s_i < originSchedules.length; s_i++) {
105
+            const schedule = originSchedules[s_i];
106
+            if (
107
+              schedule.patient.name.indexOf(search_keyword) != -1 ||
108
+              schedule.patient.dialysis_no.indexOf(search_keyword) != -1
109
+            ) {
110
+              filtedSchedules.push(schedule);
111
+              break;
112
+            }
113
+          }
114
+          if (filtedSchedules.length > 0) {
115
+            schedules.push({
116
+              zone_name: scheduleInfo.zone_name,
117
+              scheduals: filtedSchedules
118
+            });
119
+          }
120
+        }
121
+        return schedules;
122
+      }
123
+
124
+      var zone_selected = this.zone_selected;
125
+      var timetype_selected = this.schedual_type_selected;
126
+      if (
127
+        (zone_selected == 0 && timetype_selected == 0) ||
128
+        this.zones.length <= 1
129
+      ) {
130
+        return this.dialysis_scheduals;
131
+      }
132
+
133
+      var zone_name = zone_selected == 0 ? "" : this.zones[zone_selected].text;
134
+      var schedules = [];
135
+      for (let o_i = 0; o_i < this.dialysis_scheduals.length; o_i++) {
136
+        const scheduleInfo = this.dialysis_scheduals[o_i];
137
+        var originSchedules = scheduleInfo.scheduals;
138
+        var filtedSchedules = [];
139
+        for (let s_i = 0; s_i < originSchedules.length; s_i++) {
140
+          const schedule = originSchedules[s_i];
141
+          if (
142
+            zone_name.length == 0 ||
143
+            (zone_name.length > 0 && zone_name == schedule.device_zone.name)
144
+          ) {
145
+            if (
146
+              timetype_selected == 0 ||
147
+              schedule.schedule_type == timetype_selected
148
+            ) {
149
+              filtedSchedules.push(schedule);
150
+            }
151
+          }
152
+        }
153
+        if (filtedSchedules.length > 0) {
154
+          schedules.push({
155
+            zone_name: scheduleInfo.zone_name,
156
+            scheduals: filtedSchedules
157
+          });
158
+        }
159
+      }
160
+      return schedules;
161
+    }
162
+  },
163
+  created() {
164
+    this.requestDialysisScheduals();
165
+  },
166
+  methods: {
167
+    handletimeType: function(index) {
168
+      this.schedual_type_selected = index;
169
+      this.$emit("clear_search_keyword");
170
+      this.$store.dispatch("SaveDialysisAreaSelectIndexs", {
171
+        zone: this.zone_selected,
172
+        schedule_type: this.schedual_type_selected,
173
+        schedule_date: this.selected_date
174
+      });
175
+    },
176
+    handleZoneChange: function(index) {
177
+      this.zone_selected = index;
178
+      this.$emit("clear_search_keyword");
179
+      this.$store.dispatch("SaveDialysisAreaSelectIndexs", {
180
+        zone: this.zone_selected,
181
+        schedule_type: this.schedual_type_selected,
182
+        schedule_date: this.selected_date
183
+      });
184
+    },
185
+    handleScheduleDateChange: function(date) {
186
+      this.zone_selected = 0;
187
+      this.schedual_type_selected = 0;
188
+      this.$emit("clear_search_keyword");
189
+      this.$store.dispatch("SaveDialysisAreaSelectIndexs", {
190
+        zone: this.zone_selected,
191
+        schedule_type: this.schedual_type_selected,
192
+        schedule_date: this.selected_date
193
+      });
194
+      this.requestDialysisScheduals();
195
+    },
196
+
197
+    requestDialysisScheduals() {
198
+      var type = 0;
199
+      getDialysisScheduals({ type: type, date: this.selected_date_str })
200
+        .then(rs => {
201
+          var resp = rs.data;
202
+          if (resp.state == 1) {
203
+            // console.log(resp.data)
204
+            var scheduals = resp.data.scheduals;
205
+            var zoneMap = {};
206
+            var schedualMap = {};
207
+            for (let index = 0; index < scheduals.length; index++) {
208
+              const schedual = scheduals[index];
209
+              if (schedual.dialysis_order == null) {
210
+                continue;
211
+              }
212
+              if (schedualMap[schedual.device_zone.name] == null) {
213
+                schedualMap[schedual.device_zone.name] = [];
214
+              }
215
+              schedualMap[schedual.device_zone.name].push(schedual);
216
+              if (zoneMap[schedual.device_zone.name] == null) {
217
+                zoneMap[schedual.device_zone.name] = schedual.device_zone;
218
+              }
219
+            }
220
+
221
+            var zones = [];
222
+            zones.push({ value: 0, text: "全部分区" });
223
+            for (var zoneName in zoneMap) {
224
+              zones.push({ value: zoneMap[zoneName].id, text: zoneName });
225
+            }
226
+
227
+            zones = zones.sort(function(a, b) {
228
+              return a.value > b.value;
229
+            });
230
+            this.zones = zones;
231
+
232
+            var dialysis_scheduals = [];
233
+            for (let index = 0; index < zones.length; index++) {
234
+              const zone = zones[index];
235
+              var scheduals = schedualMap[zone.text];
236
+              if (scheduals == null) {
237
+                continue;
238
+              }
239
+              dialysis_scheduals.push({
240
+                zone_name: zone.text,
241
+                scheduals: scheduals
242
+              });
243
+            }
244
+            this.dialysis_scheduals = dialysis_scheduals;
245
+          } else {
246
+            this.$toast({
247
+              message: resp.msg
248
+            });
249
+          }
250
+        })
251
+        .catch(v => {});
252
+    },
253
+    openPicker() {
254
+      this.$refs.picker.open();
255
+    }
256
+  }
257
+};
258
+</script>
259
+
260
+<style style="stylesheet/scss" lang="scss" scoped>
261
+.screening {
262
+  border-bottom: 1px #e5e5e5 solid;
263
+  ul {
264
+    @include display-flex;
265
+    @include align-items-center;
266
+    @include text-align;
267
+    @include justify-content-between;
268
+    width: 60%;
269
+    margin: 0 auto;
270
+    li {
271
+      font-size: 0.32rem;
272
+      padding: 0.3rem 0;
273
+      cursor: pointer;
274
+      .iconfont {
275
+        font-size: 0.32rem;
276
+        color: #a8b3ba;
277
+        margin-left: 0.1rem;
278
+      }
279
+    }
280
+  }
281
+}
282
+.stateBox {
283
+  padding: 0.26rem 0 0 0.6rem;
284
+  background: #fff;
285
+  .title {
286
+    font-size: 0.34rem;
287
+    font-weight: 600;
288
+    color: $title-color;
289
+    height: 0.8rem;
290
+    line-height: 0.8rem;
291
+    display: inline-block;
292
+  }
293
+}
294
+</style>
295
+
296
+<style>
297
+.picker-toolbar {
298
+  height: 60px;
299
+}
300
+.mint-datetime-action {
301
+  line-height: 60px;
302
+  font-size: 0.34rem;
303
+}
304
+</style>
305
+

+ 284 - 0
src/pages/main/PatientBox.vue View File

@@ -0,0 +1,284 @@
1
+<template>
2
+  <div>
3
+    <div class="patient" :class="borderColor(patient)" v-for="(patient, index) in patients" :key="index" @click="detailAction(patient)">
4
+      <!-- <router-link :to="{path:'/details',  query: {patient_id: patient.patient_id, date: patient.schedule_date}}"> -->
5
+        <div class="kehu">
6
+          <div class="tx">
7
+            <img :src="patient.patient.avatar.length > 0 ? patient.patient.avatar : '../../assets/product/test.jpg'" alt="">
8
+            <div class="right">
9
+               <h3 class="name">{{patient.patient.name}}<span class="yc" v-show="isAbnormal(patient)">异常</span></h3>
10
+               <span class="num">{{ genderText(patient) }} | {{ age(patient) }}岁</span>
11
+               <!-- 性别、年龄 -->
12
+            </div>
13
+          </div>
14
+          <div class="online" v-show="computeState(patient) != 4" >
15
+            <p :class="stateColor(patient)">{{stateText(patient)}}</p>
16
+            <!-- <span class="time">剩余时间 : 90:08</span>     -->
17
+          </div>
18
+        </div>
19
+      <!-- </router-link> -->
20
+      <div class="function" :class="functionColor(patient)">
21
+        <ul>
22
+          <li><span class="iconfont">&#xe6f7;</span>班次 : {{timeTypeText(patient)}}</li>
23
+          <li><span class="iconfont">&#xe6de;</span>床位号 : {{patient.device_number.number}}</li>
24
+          <li><span class="iconfont">&#xe6f6;</span>透析模式 : {{$store.getters.treatment_mode[patient.mode_id].name}}</li>
25
+        </ul>
26
+      </div>
27
+    </div>
28
+  </div>
29
+</template>
30
+
31
+<script>
32
+import { parseTime } from "@/utils";
33
+
34
+export default {
35
+  name: "PatientBox",
36
+  props: {
37
+    patients: Array
38
+  },
39
+  data() {
40
+    return {};
41
+  },
42
+  methods: {
43
+    stateColor: function(schedual) {
44
+      var state = this.computeState(schedual);
45
+      if (state == 1) {
46
+        return "blue";
47
+      } else if (state == 2) {
48
+        return "gray";
49
+      } else if (state == 3) {
50
+        return "red";
51
+      } else {
52
+        return "blue";
53
+      }
54
+    },
55
+    functionColor: function(schedual) {
56
+      var state = this.computeState(schedual);
57
+      if (state == 1 || state == 3) {
58
+        return "blue";
59
+      } else if (state == 2) {
60
+        return "gray";
61
+      } else {
62
+        return "blue";
63
+      }
64
+    },
65
+    borderColor: function(schedual) {
66
+      var yc = this.isAbnormal(schedual);
67
+      if (yc == true) {
68
+        return "red";
69
+      } else {
70
+        return "gray";
71
+      }
72
+    },
73
+    stateText: function(schedual) {
74
+      var state = this.computeState(schedual);
75
+      if (state == 1) {
76
+        return "已上机";
77
+      } else if (state == 2) {
78
+        return "已下机";
79
+      } else if (state == 3) {
80
+        return "监测中";
81
+      } else {
82
+        // return schedual.patient.gender == 1 ? "男" : "女"
83
+        return "未上机";
84
+      }
85
+    },
86
+    computeState: function(schedual) {
87
+      if (schedual.dialysis_order == null) {
88
+        // 未上机
89
+        return 4;
90
+      } else if (schedual.dialysis_order.stage == 2) {
91
+        // 已下机
92
+        return 2;
93
+      } else if (
94
+        schedual.dialysis_order.stage == 1 &&
95
+        schedual.monitoring_records != null &&
96
+        schedual.monitoring_records.length > 1
97
+      ) {
98
+        // 监测中
99
+        return 3;
100
+      } else {
101
+        return 1;
102
+      }
103
+    },
104
+
105
+    orderState: function(schedual) {
106
+      if (schedual.dialysis_order == null) {
107
+        // 未上机
108
+        return 4;
109
+      } else if (schedual.dialysis_order.stage == 2) {
110
+        // 已下机
111
+        return 2;
112
+      } else if (
113
+        schedual.dialysis_order.stage == 1 &&
114
+        schedual.monitoring_records != null &&
115
+        schedual.monitoring_records.length > 1
116
+      ) {
117
+        // 监测中
118
+        return 3;
119
+      } else {
120
+        return 1;
121
+      }
122
+    },
123
+    isAbnormal: function(schedual) {
124
+      return false; // schedual.yc;
125
+    },
126
+    timeTypeText: function(schedual) {
127
+      if (schedual.schedule_type == 1) {
128
+        return "上午";
129
+      } else if (schedual.schedule_type == 2) {
130
+        return "下午";
131
+      } else {
132
+        return "晚上";
133
+      }
134
+    },
135
+    genderText: function(schedual) {
136
+      if (schedual.patient.gender == 0) {
137
+        return "未知";
138
+      } else if (schedual.patient.gender == 1) {
139
+        return "男";
140
+      } else {
141
+        return "女";
142
+      }
143
+    },
144
+    age: function(schedual) {
145
+      var now = new Date();
146
+      var nowYear = parseTime(now, "{y}");
147
+      var birthdayYear = parseTime(schedual.patient.birthday, "{y}");
148
+      // console.log(nowYear)
149
+      // console.log(birthdayYear)
150
+      return nowYear - birthdayYear;
151
+    },
152
+    detailAction: function(schedual) {
153
+      var patient_id = schedual.patient_id;
154
+      var date = schedual.schedule_date;
155
+      this.$router.push({
156
+        path: "/details",
157
+        query: {
158
+          patient_id: patient_id,
159
+          date: date,
160
+          patient_name: schedual.patient.name
161
+        }
162
+      });
163
+    }
164
+  }
165
+};
166
+</script>
167
+
168
+<style style="stylesheet/scss" lang="scss" scoped>
169
+.patient {
170
+  border: 1px #e5e5ee solid;
171
+  padding: 0.33rem 0;
172
+  width: 47%;
173
+  margin: 0 3% 0.5rem 0;
174
+  float: left;
175
+  .function {
176
+    padding: 0.3rem 0.32rem 0 0.32rem;
177
+    color: #7b8a97;
178
+    ul {
179
+      @include display-flex;
180
+      @include align-items-center;
181
+      @include text-align;
182
+      @include justify-content-between;
183
+      li {
184
+        font-size: 0.3rem;
185
+        @include display-flex;
186
+        @include align-items-center;
187
+        .iconfont {
188
+          margin: 0 0.1rem 0 0;
189
+          font-size: 0.4rem;
190
+        }
191
+      }
192
+    }
193
+  }
194
+  .blue {
195
+    color: $main-color;
196
+    .iconfont {
197
+      color: $main-color;
198
+    }
199
+  }
200
+  .kehu {
201
+    @include display-flex;
202
+    @include align-items-center;
203
+    @include text-align;
204
+    @include justify-content-between;
205
+    border-bottom: 1px #e5e5e5 solid;
206
+    padding: 0 0 0.3rem 0.32rem;
207
+    .tx {
208
+      @include display-flex;
209
+      @include align-items-center;
210
+      img {
211
+        width: 1rem;
212
+        height: 1rem;
213
+        border-radius: 50%;
214
+        float: left;
215
+        margin: 0 0.3rem 0 0;
216
+      }
217
+      .right {
218
+        float: left;
219
+        text-align: left;
220
+        .name {
221
+          font-size: 0.34rem;
222
+          color: $title-color;
223
+          font-weight: 600;
224
+          margin-bottom: 0.1rem;
225
+          .yc {
226
+            background: #ff7979;
227
+            color: #fff;
228
+            height: 0.38rem;
229
+            line-height: 0.38rem;
230
+            font-size: 0.24rem;
231
+            width: 0.74rem;
232
+            border-radius: 4px;
233
+            display: inline-block;
234
+            text-align: center;
235
+            margin-left: 0.13rem;
236
+          }
237
+        }
238
+        .num {
239
+          font-size: 0.3rem;
240
+        }
241
+      }
242
+    }
243
+
244
+    .online {
245
+      text-align: center;
246
+      width: 50%;
247
+      border-left: 1px #e5e5e5 solid;
248
+      p {
249
+        background: #c6cdd2;
250
+        color: #fff;
251
+        width: 1.35rem;
252
+        height: 0.56rem;
253
+        line-height: 0.56rem;
254
+        border-radius: 4px;
255
+        margin: 0 auto;
256
+        font-size: 0.32rem;
257
+      }
258
+      .blue {
259
+        background: $main-color;
260
+      }
261
+      .red {
262
+        background: #f18f68;
263
+      }
264
+      .green {
265
+        background: #5bd18b;
266
+      }
267
+      .gray {
268
+        background: #a8b3ba;
269
+      }
270
+      .lightGray {
271
+        background: #c6cdd2;
272
+      }
273
+      .time {
274
+        font-size: 0.26rem;
275
+        color: #34495e;
276
+      }
277
+    }
278
+  }
279
+}
280
+.red {
281
+  border: 1px #ff7979 solid;
282
+}
283
+</style>
284
+

File diff suppressed because it is too large
+ 2414 - 0
src/pages/main/Print.vue


File diff suppressed because it is too large
+ 2480 - 0
src/pages/main/PrintIndex.vue


+ 141 - 0
src/pages/main/RecordPage.vue View File

@@ -0,0 +1,141 @@
1
+<template>
2
+<div>
3
+    <van-row class="top_row">
4
+      <van-col :span="9">
5
+        <div>
6
+          <span class="title"> {{ $store.getters.user.org.org_short_name }} </span>
7
+        </div>
8
+      </van-col>
9
+      <van-col :span="6">
10
+        <div class="department">
11
+            <ul>
12
+                <li v-for="(item,i) in ['候诊室','透析区']" :key="i" :class="index == i? 'active':'' " @click="ClickTab(i)" >{{item}}</li> 
13
+            </ul>
14
+        </div>
15
+      </van-col>
16
+      <van-col :span="9">
17
+        <router-link to="/add_urgent_schedule">
18
+          <van-button size="small" type="info" class="add_schedule_btn">临时排班</van-button>
19
+        </router-link>
20
+        <div class="search">
21
+          <van-field v-model="search_input" ref="search_field" placeholder="透析号/姓名" class="field">
22
+            <i class="iconfont" slot="left-icon">&#xe741;</i>
23
+            <van-button slot="button" size="small" type="info" style="border: none;" @click="searchWithKeyword">搜索</van-button>
24
+          </van-field>
25
+        </div>
26
+      </van-col>
27
+    </van-row>
28
+
29
+    <!-- <div class="top">
30
+        <div class="hospital">
31
+          <span class="title"> {{ $store.getters.user.org.org_short_name }} </span>
32
+        </div>
33
+        <div class="department">
34
+            <ul>
35
+                <li v-for="(item,i) in ['候诊室','透析区']" :key="i" :class="index == i? 'active':'' " @click="ClickTab(i)" >{{item}}</li> 
36
+            </ul>
37
+        </div>
38
+        <div class="search">
39
+          <van-field v-model="search_input" ref="search_field" placeholder="透析号/姓名" style="background-color: #ebf1f7; height: 0.6rem; line-height: 0.6rem; padding: 0 0 0 10px; border-radius: 30px;">
40
+            <i class="iconfont" slot="left-icon">&#xe741;</i>
41
+            <van-button slot="button" size="small" type="info" style="border: none;" @click="searchWithKeyword">搜索</van-button>
42
+          </van-field>
43
+        </div>
44
+        <van-button size="small" type="info">临时排班</van-button>
45
+    </div> -->
46
+    <div class="area">
47
+       <waiting-area v-show="index==0" title="候诊区" :search_keyword="search_keyword"></waiting-area>
48
+       <dialysis-area v-show="index==1" title="透析区" :search_keyword="search_keyword" @clear_search_keyword="clearKeyword"></dialysis-area>
49
+    </div>
50
+    
51
+</div>  
52
+</template>
53
+
54
+
55
+<script>
56
+import DialysisArea from "./DialysisArea";
57
+import WaitingArea from "./WaitingArea";
58
+import { Popover } from "vux";
59
+export default {
60
+  name: "RecordPage",
61
+  data() {
62
+    return {
63
+      index: 1,
64
+      search_input: "",
65
+      search_keyword: ""
66
+      // yyList: [
67
+      //   {
68
+      //     value: "0",
69
+      //     name: "济南医院"
70
+      //   },
71
+      //   {
72
+      //     value: "1",
73
+      //     name: "血透中心"
74
+      //   }
75
+      // ]
76
+    };
77
+  },
78
+  components: {
79
+    DialysisArea,
80
+    WaitingArea,
81
+    Popover
82
+    // Group,
83
+    // Cell
84
+  },
85
+  methods: {
86
+    ClickTab: function(tabIndex) {
87
+      this.index = tabIndex;
88
+    },
89
+    searchWithKeyword: function() {
90
+      this.$refs.search_field.blur();
91
+      this.search_keyword = this.search_input;
92
+    },
93
+    clearKeyword: function() {
94
+      this.search_input = "";
95
+      this.search_keyword = "";
96
+    }
97
+  }
98
+};
99
+</script>
100
+
101
+<style style="stylesheet/scss" lang="scss" scoped>
102
+.top_row {
103
+  font-size: 0.3rem;
104
+  padding: 0.3rem 0.3rem;
105
+  border-bottom: 1px #e5e5e5 solid;
106
+  display: flex;
107
+  align-items: center;
108
+}
109
+.title {
110
+  font-size: 0.34rem;
111
+  font-weight: 600;
112
+  color: $title-color;
113
+}
114
+.department {
115
+  text-align: center;
116
+  ul {
117
+    li {
118
+      float: left;
119
+      font-size: 0.36rem;
120
+      margin: 0 0.2rem;
121
+      height: 0.64rem;
122
+      line-height: 0.64rem;
123
+      padding: 0 0.3rem;
124
+      color: $title-color;
125
+      &.active {
126
+        background: $main-color;
127
+        color: #fff;
128
+        border-radius: 30px;
129
+      }
130
+    }
131
+  }
132
+}
133
+
134
+.add_schedule_btn {
135
+  margin-left: 10px;
136
+  float: right;
137
+  background-color: #ff7978;
138
+  border: none;
139
+}
140
+</style>
141
+

+ 272 - 0
src/pages/main/WaitingArea.vue View File

@@ -0,0 +1,272 @@
1
+<template>
2
+  <div>
3
+    <div class="screening">
4
+      <ul>
5
+       
6
+        <popover placement="bottom" >
7
+          <div slot="content" class="popover-demo-content">
8
+            <ul>
9
+              <li v-for="(option, index) in zone_options" :key="index" @click="handleZoneChange(index)" :class="zone_selected == index ? 'tick' : ''">{{ option.text }}</li>
10
+            </ul>
11
+          </div>
12
+          <li>{{ zone_options[zone_selected].text }}<span class="iconfont">&#xe74a;</span></li>
13
+        </popover>
14
+         <li v-for="(item,i) in menuList" :class="select_index == i ? 'active' : ''" @click="menuTabClick(i)" 
15
+        :key="i">{{ item.label + (item.count > 0 ? '(' + item.count + ')' : '') }}</li>
16
+      </ul>
17
+    </div>
18
+    <div class="stateBox ">
19
+      <!-- <patient-box class="clearfix" :patients="filtedScheduals "></patient-box> -->
20
+      <div v-for="(item, index) in filtedScheduals" :key="index">
21
+        <h2 class="title" >{{item.zone_name}}</h2>
22
+        <patient-box class="clearfix" :patients="item.scheduals"></patient-box>
23
+      </div>
24
+      <div class="NoData" v-show="filtedScheduals.length == 0"><img style="margin-top: 50px; margin-bottom: 50px" src="@/assets/login/data.jpg" alt=""></div>
25
+
26
+    </div>
27
+  </div>
28
+</template>
29
+
30
+<script>
31
+import PatientBox from "./PatientBox";
32
+import { getWaitingScheduals } from "@/api/dialysis";
33
+import { parseTime } from "@/utils";
34
+import { Popover } from "vux";
35
+
36
+export default {
37
+  name: "WaitingArea",
38
+  components: {
39
+    PatientBox,
40
+    Popover
41
+  },
42
+  data() {
43
+    return {
44
+      menuList: [
45
+        { value: "2", label: "透前称量", count: 0 },
46
+        { value: "3", label: "制定处方", count: 0 }
47
+      ],
48
+
49
+      select_index: -1,
50
+      zone_selected: 0,
51
+
52
+      scheduals: [],
53
+
54
+      zone_options: [{ value: 0, text: "全部分区" }],
55
+      zone_scheduals: []
56
+    };
57
+  },
58
+  props: {
59
+    search_keyword: {
60
+      type: String
61
+    }
62
+  },
63
+  computed: {
64
+    filtedScheduals: function() {
65
+      var search_keyword = this.search_keyword;
66
+      if (this.search_keyword.length > 0) {
67
+        var scheduals = [];
68
+        for (let index = 0; index < this.scheduals.length; index++) {
69
+          const schedual = this.scheduals[index];
70
+          if (
71
+            schedual.patient.name.indexOf(search_keyword) != -1 ||
72
+            schedual.patient.dialysis_no.indexOf(search_keyword) != -1
73
+          ) {
74
+            scheduals.push(schedual);
75
+          }
76
+        }
77
+        return this.processScheduals(scheduals);
78
+      }
79
+
80
+      if (this.zone_selected != 0) {
81
+        var zone_name = this.zone_options[this.zone_selected].text;
82
+        for (let index = 0; index < this.zone_scheduals.length; index++) {
83
+          const zone_scheduals = this.zone_scheduals[index];
84
+          if (zone_scheduals.zone_name == zone_name) {
85
+            return [zone_scheduals];
86
+          }
87
+        }
88
+      }
89
+
90
+      if (this.select_index == 0) {
91
+        // console.log("点击了第二个");
92
+        var scheduals = [];
93
+        for (let index = 0; index < this.scheduals.length; index++) {
94
+          const schedual = this.scheduals[index];
95
+          if (schedual.assessment_before_dislysis != null) {
96
+            scheduals.push(schedual);
97
+          }
98
+        }
99
+        return this.processScheduals(scheduals);
100
+        // return scheduals;
101
+      } else if (this.select_index == 1) {
102
+        // console.log("点击了第三个");
103
+        var scheduals = [];
104
+        for (let index = 0; index < this.scheduals.length; index++) {
105
+          const schedual = this.scheduals[index];
106
+          if (
107
+            schedual.assessment_before_dislysis == null &&
108
+            schedual.prescription != null
109
+          ) {
110
+            scheduals.push(schedual);
111
+          }
112
+        }
113
+        // return scheduals;
114
+        return this.processScheduals(scheduals);
115
+      } else {
116
+        return this.zone_scheduals;
117
+      }
118
+    }
119
+  },
120
+  created() {
121
+    this.requestScheduals();
122
+  },
123
+  methods: {
124
+    menuTabClick: function(tabIndex) {
125
+      this.select_index = tabIndex;
126
+      this.zone_selected = 0;
127
+    },
128
+    handleZoneChange: function(index) {
129
+      this.zone_selected = index;
130
+      this.select_index = -1;
131
+    },
132
+
133
+    requestScheduals() {
134
+      var date = parseTime(Date.parse(new Date()), "{y}-{m}-{d}");
135
+      getWaitingScheduals({ date: date }).then(rs => {
136
+        var resp = rs.data;
137
+        // console.log(resp);
138
+        if (resp.state == 1) {
139
+          var scheduals = resp.data.scheduals;
140
+          var totalCount = scheduals.length;
141
+          var prescription_count = 0;
142
+          var assessment_before_dislysis_count = 0;
143
+          for (let index = 0; index < scheduals.length; index++) {
144
+            const schedual = scheduals[index];
145
+            if (schedual.assessment_before_dislysis != null) {
146
+              assessment_before_dislysis_count += 1;
147
+            } else if (schedual.prescription != null) {
148
+              prescription_count += 1;
149
+            }
150
+          }
151
+          this.menuList[0].count = assessment_before_dislysis_count;
152
+          this.menuList[1].count = prescription_count;
153
+          this.scheduals = scheduals;
154
+
155
+          this.zone_options = this.makeZones(scheduals);
156
+          this.zone_scheduals = this.processScheduals(scheduals);
157
+        } else {
158
+          this.$toast({
159
+            message: resp.msg
160
+          });
161
+        }
162
+      });
163
+    },
164
+    makeZones: function(scheduals) {
165
+      var zoneMap = {};
166
+      for (let index = 0; index < scheduals.length; index++) {
167
+        const schedual = scheduals[index];
168
+        if (zoneMap[schedual.device_zone.id] == null) {
169
+          zoneMap[schedual.device_zone.id] = schedual.device_zone;
170
+        }
171
+      }
172
+
173
+      var zones = [];
174
+      zones.push({ value: 0, text: "全部分区" });
175
+      for (var zoneId in zoneMap) {
176
+        zones.push({ value: zoneMap[zoneId].id, text: zoneMap[zoneId].name });
177
+      }
178
+
179
+      zones = zones.sort(function(a, b) {
180
+        return a.id > b.id;
181
+      });
182
+      return zones;
183
+    },
184
+    processScheduals: function(scheduals) {
185
+      var zoneMap = {};
186
+      var schedualMap = {};
187
+      for (let index = 0; index < scheduals.length; index++) {
188
+        const schedual = scheduals[index];
189
+        if (schedualMap[schedual.device_zone.id] == null) {
190
+          schedualMap[schedual.device_zone.id] = [];
191
+        }
192
+        schedualMap[schedual.device_zone.id].push(schedual);
193
+        if (zoneMap[schedual.device_zone.id] == null) {
194
+          zoneMap[schedual.device_zone.id] = schedual.device_zone;
195
+        }
196
+      }
197
+
198
+      var zones = [];
199
+      // zones.push({ value: 0, text: "全部分区" })
200
+      for (var zoneId in zoneMap) {
201
+        zones.push({ id: zoneMap[zoneId].id, name: zoneMap[zoneId].name });
202
+      }
203
+
204
+      zones = zones.sort(function(a, b) {
205
+        return a.id > b.id;
206
+      });
207
+      // this.zones = zones
208
+
209
+      var zone_scheduals = [];
210
+      for (let index = 0; index < zones.length; index++) {
211
+        const zone = zones[index];
212
+        var scheduals = schedualMap[zone.id];
213
+        zone_scheduals.push({
214
+          zone_id: zone.id,
215
+          zone_name: zone.name,
216
+          scheduals: scheduals
217
+        });
218
+      }
219
+      // this.zone_scheduals = zone_scheduals;
220
+      return zone_scheduals;
221
+    }
222
+  }
223
+};
224
+</script>
225
+
226
+<style style="stylesheet/scss" lang="scss" scoped>
227
+.screening {
228
+  border-bottom: 1px #e5e5e5 solid;
229
+  ul {
230
+    @include display-flex;
231
+    @include align-items-center;
232
+    @include text-align;
233
+    @include justify-content-between;
234
+    width: 60%;
235
+    margin: 0 auto;
236
+    font-size: 0.32rem;
237
+    color:$title-color;
238
+    li {
239
+      padding: 0.3rem 0;
240
+      .iconfont {
241
+        font-size: 0.32rem;
242
+        margin-left: 0.1rem;
243
+      }
244
+    }
245
+    .active {
246
+      position: relative;
247
+      &::before {
248
+        position: absolute;
249
+        bottom: 0;
250
+        left: 0;
251
+        width: 100%;
252
+        height: 2px;
253
+        background: $main-color;
254
+        // border-bottom: 0.04rem $main-color solid;
255
+        content: "";
256
+      }
257
+    }
258
+  }
259
+}
260
+.stateBox {
261
+  padding: 0.5rem 0 0 0.6rem;
262
+  .title {
263
+    font-size: 0.34rem;
264
+    color: #34495e;
265
+    font-weight: 600;
266
+    height: 0.9rem;
267
+    line-height: 0.9rem;
268
+    display: inline-block;
269
+  }
270
+}
271
+</style>
272
+

+ 401 - 0
src/pages/main/add_urgent_schedule.vue View File

@@ -0,0 +1,401 @@
1
+<template>
2
+    <div class="mainBox">
3
+        <side-bar :active_index="0"></side-bar>
4
+        <div class="mainContent">
5
+            <div class="navigation">
6
+                <div class="goBack">
7
+                    <span class="back" @click="$router.back(-1)"><span class="iconfont">&#xe720;</span>返回</span>
8
+                </div>
9
+                <div class="nav">
10
+                    <span>临时排班</span>
11
+                </div>
12
+                <div class="goBack"></div>
13
+            </div>
14
+
15
+            <div class="form" v-loading="loading">
16
+                <van-row class="row">
17
+                    <van-col :span="24" class="danger_hint">
18
+                        本次临时排班会覆盖已有排班中的同班次、同床位的排班,请仔细检查后再提交
19
+                    </van-col>
20
+                </van-row>  
21
+                <van-row class="row">
22
+                    <van-col :span="9">
23
+                        <span class="title">日期:</span>
24
+                        <div class="field_panel">
25
+                            <van-field v-model="date" disabled class="field"></van-field>
26
+                        </div>
27
+                    </van-col>
28
+                </van-row>
29
+                <van-row class="row">
30
+                    <van-col :span="9">
31
+                        <span class="title">患者:</span>
32
+                        <div class="field_panel">
33
+                            <van-field ref="patient_field" @focus="selectPatientAction" :value="patient_name" class="field" left-icon="arrow-down"></van-field>
34
+                        </div>
35
+                    </van-col>
36
+                    <van-col :span="9">
37
+                        <span class="title">班次:</span>
38
+                        <div class="field_panel">
39
+                            <van-field ref="sch_type_field" @focus="selectSchTypeAction" :value="schedule_type_title" class="field" left-icon="arrow-down"></van-field>
40
+                        </div>
41
+                    </van-col>
42
+                </van-row>
43
+                <van-row class="row">
44
+                    <van-col :span="9">
45
+                        <span class="title">治疗模式:</span>
46
+                        <div class="field_panel">
47
+                            <van-field ref="mode_field" @focus="selectModeAction" :value="mode_name" class="field" left-icon="arrow-down"></van-field>
48
+                        </div>
49
+                    </van-col>
50
+                    <van-col :span="9">
51
+                        <span class="title">床位:</span>
52
+                        <div class="field_panel">
53
+                            <van-field ref="bed_field" @focus="selectBedAction" :value="bed_name" class="field" left-icon="arrow-down"></van-field>
54
+                        </div>
55
+                    </van-col>
56
+                </van-row>
57
+                <van-row class="row">
58
+                    <van-col :span="24">
59
+                        <span class="title">&nbsp;</span>
60
+                        <div class="field_panel">
61
+                            <van-button type="info" @click="submitAction">立即排班</van-button>
62
+                        </div>
63
+                    </van-col>
64
+                </van-row>
65
+            </div>
66
+        </div>
67
+
68
+        <van-popup v-model="show_patient_picker" position="bottom" class="popup">
69
+            <van-picker :columns="patients" value-key="name" @change="didChangePatient"></van-picker>
70
+        </van-popup>
71
+        <van-popup v-model="show_mode_picker" position="bottom" class="popup">
72
+            <van-picker :columns="modes" value-key="name" @change="didChangeMode"></van-picker>
73
+        </van-popup>
74
+        <van-popup v-model="show_bed_picker" position="bottom" class="popup">
75
+            <van-picker :columns="zone_device_options" value-key="number" @change="didChangeBed"></van-picker>
76
+        </van-popup>
77
+        <van-popup v-model="show_sch_type_picker" position="bottom" class="popup">
78
+            <van-picker :columns="schedule_types" value-key="text" @change="didChangeSchType" ></van-picker>
79
+        </van-popup>
80
+    </div>
81
+</template>
82
+
83
+<script>
84
+import SideBar from "@/pages/layout/SideBar";
85
+import { parseTime } from "@/utils"
86
+import { getUrgentScheduleInitData, postUrgentSchedule } from "@/api/dialysis"
87
+import { Toast, Dialog } from 'vant';
88
+
89
+export default {
90
+    name: "AddUrgentSchedule",
91
+    components: {
92
+        SideBar,
93
+    },
94
+    data() {
95
+        return {
96
+            loading: false,
97
+
98
+            date: "2019-09-09",
99
+            patient_id: 0,
100
+            mode_id: 0,
101
+            device_id: 0,
102
+            schedule_type: 1,
103
+            zone_name: "",
104
+
105
+            show_patient_picker: false,
106
+            show_mode_picker: false,
107
+            show_bed_picker: false,
108
+            show_sch_type_picker: false,
109
+
110
+            patients: [],
111
+            modes: [],
112
+            schedule_types: [
113
+                { value: 1, text: "上午" },
114
+                { value: 2, text: "下午" },
115
+                { value: 3, text: "晚上" },
116
+            ],
117
+
118
+            origin_device_numbers: [],
119
+            zone_device_map: {},
120
+            zone_names: [],
121
+            current_devices: [],
122
+            zone_device_options: [],
123
+
124
+            origin_schedules: [],
125
+        }
126
+    },
127
+    computed: {
128
+        patient_name: function() {
129
+            for (let index = 0; index < this.patients.length; index++) {
130
+                const patient = this.patients[index];
131
+                if (patient.id == this.patient_id) {
132
+                    return patient.name
133
+                }
134
+            }
135
+            return ""
136
+        },
137
+        mode_name: function() {
138
+            for (let index = 0; index < this.modes.length; index++) {
139
+                const mode = this.modes[index];
140
+                if (mode.id == this.mode_id) {
141
+                    return mode.name
142
+                }
143
+            }
144
+            return ""
145
+        },
146
+        bed_name: function() {
147
+            if (this.zone_name.length > 0 && this.device_id != 0) {
148
+                for (let index = 0; index < this.current_devices.length; index++) {
149
+                    const device_number = this.current_devices[index];
150
+                    if (device_number.id == this.device_id) {
151
+                        return device_number.zone.name + " - " + device_number.number
152
+                    }
153
+                }
154
+            }
155
+            return ""
156
+        },
157
+        schedule_type_title: function() {
158
+            for (let index = 0; index < this.schedule_types.length; index++) {
159
+                const type = this.schedule_types[index];
160
+                if (type.value == this.schedule_type) {
161
+                    return type.text
162
+                }
163
+            }
164
+            return ""
165
+        },
166
+    },
167
+    mounted() {
168
+        var today = new Date()
169
+        this.date = parseTime(today, "{y}-{m}-{d}")
170
+
171
+        var hour = today.getHours()
172
+        if (hour > 3 && hour < 11) {
173
+            this.schedule_type = 1
174
+        } else if (hour >= 11 && hour < 18) {
175
+            this.schedule_type = 2
176
+        } else {
177
+            this.schedule_type = 3
178
+        }
179
+
180
+        this.loading = true
181
+        getUrgentScheduleInitData().then(rs => {
182
+            this.loading = false
183
+            // console.log(rs.data.data)
184
+            if (rs.data.state == 1) {
185
+                this.origin_schedules = rs.data.data.schedules
186
+                this.patients = rs.data.data.patients
187
+                this.modes = rs.data.data.modes
188
+                this.origin_device_numbers = rs.data.data.device_numbers
189
+
190
+                if (this.patients.length > 0) {
191
+                    this.patient_id = this.patients[0].id
192
+                }
193
+                if (this.modes.length > 0) {
194
+                    this.mode_id = this.modes[0].id
195
+                }
196
+
197
+                var zone_device_map = {}
198
+                for (let index = 0; index < this.origin_device_numbers.length; index++) {
199
+                    const device_number = this.origin_device_numbers[index];
200
+                    if (zone_device_map[device_number.zone.name] == null || zone_device_map[device_number.zone.name] == undefined) {
201
+                        zone_device_map[device_number.zone.name] = []
202
+                    }
203
+                    zone_device_map[device_number.zone.name].push(device_number)
204
+                }
205
+                this.zone_device_map = zone_device_map
206
+
207
+                this.zone_names = Object.keys(this.zone_device_map)
208
+                if (this.zone_names.length > 0) {
209
+                    this.zone_name = this.zone_names[0]
210
+                    this.current_devices = this.zone_device_map[this.zone_name]
211
+                    this.device_id = this.current_devices[0].id
212
+                }
213
+                this.zone_device_options = [
214
+                    { values: this.zone_names },
215
+                    // { values: this.getDeviceNumberNames(this.current_devices) },
216
+                    { values: this.current_devices },
217
+                ]
218
+
219
+            } else {
220
+                Toast.fail(rs.data.msg)
221
+            }
222
+            
223
+
224
+        }).catch(err => {
225
+            this.loading = false
226
+            Toast.fail(err)
227
+        })
228
+    },
229
+    methods: {
230
+        // getDeviceNumberNames: function(device_numbers) {
231
+        //     var names = []
232
+        //     for (let index = 0; index < device_numbers.length; index++) {
233
+        //         const device_number = device_numbers[index];
234
+        //         names.push(device_number.number)
235
+        //     }
236
+        //     return names
237
+        // },
238
+
239
+        selectPatientAction: function() {
240
+            this.$refs.patient_field.blur()
241
+            this.show_patient_picker = true
242
+        },
243
+        selectModeAction: function() {
244
+            this.$refs.mode_field.blur()
245
+            this.show_mode_picker = true
246
+        },
247
+        selectBedAction: function() {
248
+            this.$refs.bed_field.blur()
249
+            this.show_bed_picker = true
250
+        },
251
+        selectSchTypeAction: function() {
252
+            this.$refs.sch_type_field.blur()
253
+            this.show_sch_type_picker = true
254
+        },
255
+
256
+        didChangePatient: function(picker, patient, index) {
257
+            this.patient_id = patient.id
258
+        },
259
+        didChangeMode: function(picker, mode, index) {
260
+            this.mode_id = mode.id
261
+        },
262
+        didChangeBed: function(picker, values, col_index) {
263
+            if (col_index == 0) {
264
+                this.zone_name = values[0]
265
+                this.current_devices = this.zone_device_map[this.zone_name]
266
+                this.device_id = this.current_devices[0].id
267
+
268
+                picker.setColumnValues(1, this.current_devices)
269
+
270
+            } else if (col_index == 1) {
271
+                this.device_id = values[1].id
272
+            }
273
+        },
274
+        didChangeSchType: function(picker, sch_type, index) {
275
+            this.schedule_type = sch_type.value
276
+        },
277
+
278
+        submitAction: function() {
279
+            if (this.patient_id == 0 || this.mode_id == 0 || this.device_id == 0) {
280
+                Toast.fail("请选择班次、床位等")
281
+                return
282
+            }
283
+
284
+            var repeated = false
285
+            for (let index = 0; index < this.origin_schedules.length; index++) {
286
+                const schedule = this.origin_schedules[index];
287
+                if (schedule.bed_id == this.device_id && this.schedule_type == schedule.schedule_type) {
288
+                    repeated = true
289
+                    break
290
+                }
291
+            }
292
+            if (repeated) {
293
+                Dialog.confirm({
294
+                    title: '提醒',
295
+                    message: '你选择的床位已经被排班,确认要替换吗?'
296
+                }).then(() => {
297
+                    // on confirm
298
+                    this.submit()
299
+                }).catch(() => {
300
+                    // on cancel
301
+                });
302
+            } else {
303
+                this.submit()
304
+            }
305
+        },
306
+        submit: function() {
307
+            var params = {
308
+                patient_id: this.patient_id,
309
+                mode: this.mode_id,
310
+                schedule_type: this.schedule_type,
311
+                bed: this.device_id,
312
+            }
313
+            this.loading = true
314
+            postUrgentSchedule(params).then(rs => {
315
+                this.loading = false
316
+                var resp = rs.data
317
+                if (resp.state == 1) {
318
+                    console.log(resp.data)
319
+                    var patient = resp.data.patient
320
+                    var schedule = resp.data.schedule
321
+                    this.$router.push({ path: "/details", query: {patient_id: patient.id, date: schedule.schedule_date, patient_name: patient.name}})
322
+
323
+                } else {
324
+                    Toast.fail(resp.msg)
325
+                }
326
+
327
+            }).catch(err => {
328
+                this.loading = false
329
+                Toast.fail("err")
330
+            })
331
+        }
332
+    }
333
+}
334
+</script>
335
+
336
+<style style="stylesheet/scss" lang="scss" scoped>
337
+.mainContent {
338
+    position: relative;
339
+    .navigation {
340
+        padding: 0.3rem 0.36rem;
341
+        border-bottom: 1px #e5e5e5 solid;
342
+        // position: fixed;
343
+        // top: 0;
344
+        // left:1.58rem;
345
+        // right: 0;
346
+        z-index: 100;
347
+        background: #fff;
348
+        .goBack {
349
+            float: left;
350
+            .back {
351
+                color: $main-color;
352
+                margin-right: 0.87rem;
353
+                .iconfont {
354
+                    color: $main-color;
355
+                }
356
+            }
357
+        }
358
+        .nav {
359
+            text-align: center;
360
+            font-size: 0.36rem;
361
+        }
362
+    }
363
+
364
+    .form {
365
+        padding: 10px 10px;
366
+        .row {
367
+            padding: 5px 0;
368
+            .title {
369
+                color: #8f8f8f;
370
+                margin-right: 5px;
371
+                text-align: right;
372
+                font-size: 16px;
373
+                line-height: 45px;
374
+                width: 80px;
375
+                float: left;
376
+            }
377
+            .field_panel {
378
+                display: inline-block;
379
+                .field {
380
+                    padding: 0 0; 
381
+                    font-size: 18px; 
382
+                    line-height: 45px;
383
+                    width: 180px;
384
+                }
385
+            }
386
+
387
+            .danger_hint {
388
+                font-size: 0.34rem;
389
+                line-height: 40px;
390
+                text-align: center;
391
+                color: red;
392
+            }
393
+        }
394
+    }
395
+}
396
+.popup {
397
+    border-radius: 0 !important;
398
+    top: initial !important;
399
+}
400
+</style>
401
+

+ 215 - 0
src/pages/main/dialog/AcceptsDialog.vue View File

@@ -0,0 +1,215 @@
1
+<template>
2
+<div>
3
+    <div class="Dialog">
4
+        <div class="DialogTit">
5
+            <span class="iconfont" @click="close()">&#xe6e9;</span>
6
+            <h1 class="name">接诊评估</h1>
7
+            <span class="success" @click="commitInfo">完成</span>
8
+        </div>
9
+        <div class="DialogContent choose">
10
+            <el-form :model="receiveTreatmentAsses" label-width="90px">
11
+                <el-form-item label="入室方式 : ">
12
+                      <el-radio v-model="receiveTreatmentAsses.way" label="1">步行</el-radio>
13
+                      <el-radio v-model="receiveTreatmentAsses.way" label="2">扶行</el-radio>
14
+                      <el-radio v-model="receiveTreatmentAsses.way" label="3">轮椅</el-radio>
15
+                      <el-radio v-model="receiveTreatmentAsses.way" label="4">平车</el-radio>
16
+                    <!--</el-radio-group>-->
17
+                </el-form-item>
18
+                <el-form-item label="病人意识 : ">
19
+
20
+                  <el-radio v-model="receiveTreatmentAsses.consciousness" label="1">清醒</el-radio>
21
+                  <el-radio v-model="receiveTreatmentAsses.consciousness" label="2">嗜睡</el-radio>
22
+                  <el-radio v-model="receiveTreatmentAsses.consciousness" label="3">昏迷</el-radio>
23
+
24
+                </el-form-item>
25
+                <el-form-item label="病人食欲 : ">
26
+                      <el-radio v-model="receiveTreatmentAsses.appetite" label="1">正常</el-radio>
27
+                      <el-radio v-model="receiveTreatmentAsses.appetite" label="2">减退</el-radio>
28
+                      <el-radio v-model="receiveTreatmentAsses.appetite" label="3">恶心</el-radio>
29
+                      <el-radio v-model="receiveTreatmentAsses.appetite" label="4">呕吐</el-radio>
30
+                      <el-radio v-model="receiveTreatmentAsses.appetite" label="5">腹泻</el-radio>
31
+                </el-form-item>
32
+                 <el-form-item label="病人情况 : ">
33
+                      <el-radio v-model="receiveTreatmentAsses.condition" label="1">住院</el-radio>
34
+                      <el-radio v-model="receiveTreatmentAsses.condition" label="2">门诊</el-radio>
35
+                      <el-radio v-model="receiveTreatmentAsses.condition" label="3">手术期</el-radio>
36
+                </el-form-item>
37
+                <el-form-item label="体位 : ">
38
+                      <el-radio v-model="receiveTreatmentAsses.posture" label="1">自动体位</el-radio>
39
+                      <el-radio v-model="receiveTreatmentAsses.posture" label="2">平卧位</el-radio>
40
+                      <el-radio v-model="receiveTreatmentAsses.posture" label="3">半卧位</el-radio>
41
+                      <el-radio v-model="receiveTreatmentAsses.posture" label="4">端坐位</el-radio>
42
+                      <el-radio v-model="receiveTreatmentAsses.posture" label="5">躁动不安</el-radio>
43
+                </el-form-item>
44
+            </el-form>
45
+            <!-- <div class="button">
46
+              <button @click="commitInfo" class="submitButton">提交</button>
47
+          </div> -->
48
+        </div>
49
+        <!-- <div class="footer">
50
+            处方医生:刘小军 医生
51
+        </div> -->
52
+    </div>
53
+</div>
54
+</template>
55
+
56
+<script>
57
+import { commitAcceptsAssessment, getLastAccepts } from "@/api/dialysis";
58
+import { Toast } from "vant";
59
+
60
+export default {
61
+  name: "AcceptsDialog",
62
+  data() {
63
+    return {
64
+      receiveTreatmentAsses: {
65
+        way: "1",
66
+        consciousness: "1",
67
+        appetite: "1",
68
+        condition: "1",
69
+        posture: "1"
70
+      },
71
+      patient: {
72
+        id: 0
73
+      },
74
+      record_date: ""
75
+    };
76
+  },
77
+  props: {
78
+    accepts: {
79
+      type: Object
80
+    },
81
+    patient_prop: {
82
+      type: Object
83
+    }
84
+  },
85
+  created() {
86
+    if (this.accepts == null || this.accepts.id == "") {
87
+      let ParamsQuery = {};
88
+      ParamsQuery["patient"] = this.$route.query.patient_id;
89
+      getLastAccepts(ParamsQuery).then(response => {
90
+        if (response.data.state == 0) {
91
+          return false;
92
+        } else {
93
+          for (const key in response.data.data.receiveTreatmentAsses) {
94
+            this.accepts[key] = response.data.data.receiveTreatmentAsses[key];
95
+            this.receiveTreatmentAsses.way = this.accepts.way + "";
96
+            this.receiveTreatmentAsses.consciousness =
97
+              this.accepts.consciousness + "";
98
+            this.receiveTreatmentAsses.appetite = this.accepts.appetite + "";
99
+            this.receiveTreatmentAsses.condition = this.accepts.condition + "";
100
+            this.receiveTreatmentAsses.posture = this.accepts.posture + "";
101
+          }
102
+        }
103
+      });
104
+    } else {
105
+      if (
106
+        this.accepts.way == 0 &&
107
+        this.accepts.consciousness == 0 &&
108
+        this.accepts.appetite == 0 &&
109
+        this.accepts.condition == 0 &&
110
+        this.accepts.posture == 0
111
+      ) {
112
+        let ParamsQuery = {};
113
+        ParamsQuery["patient"] = this.$route.query.patient_id;
114
+        getLastAccepts(ParamsQuery).then(response => {
115
+          if (response.data.state == 0) {
116
+            return false;
117
+          } else {
118
+            for (const key in response.data.data.receiveTreatmentAsses) {
119
+              this.accepts[key] = response.data.data.receiveTreatmentAsses[key];
120
+              this.receiveTreatmentAsses.way = this.accepts.way + "";
121
+              this.receiveTreatmentAsses.consciousness =
122
+                this.accepts.consciousness + "";
123
+              this.receiveTreatmentAsses.appetite = this.accepts.appetite + "";
124
+              this.receiveTreatmentAsses.condition =
125
+                this.accepts.condition + "";
126
+              this.receiveTreatmentAsses.posture = this.accepts.posture + "";
127
+            }
128
+          }
129
+        });
130
+      } else {
131
+        this.receiveTreatmentAsses.way = this.accepts.way + "";
132
+        this.receiveTreatmentAsses.consciousness =
133
+          this.accepts.consciousness + "";
134
+        this.receiveTreatmentAsses.appetite = this.accepts.appetite + "";
135
+        this.receiveTreatmentAsses.condition = this.accepts.condition + "";
136
+        this.receiveTreatmentAsses.posture = this.accepts.posture + "";
137
+      }
138
+    }
139
+
140
+    var date = this.$route.query && this.$route.query.date;
141
+    date *= 1000;
142
+    var newDate = new Date(date);
143
+
144
+    var y = newDate.getFullYear();
145
+    var m = newDate.getMonth() + 1;
146
+    var d = newDate.getDate();
147
+    if (isNaN(y) || isNaN(m) || isNaN(d)) {
148
+      newDate = new Date();
149
+      y = newDate.getFullYear();
150
+      m = newDate.getMonth() + 1;
151
+      d = newDate.getDate();
152
+    }
153
+    this.record_date =
154
+      y + "-" + (m < 10 ? "0" + m : m) + "-" + (d < 10 ? "0" + d : d);
155
+    this.patient.id = this.patient_prop.id;
156
+  },
157
+  methods: {
158
+    commitInfo: function() {
159
+      Toast.loading({ forbidClick: true, duration: 0 });
160
+      let ParamsQuery = this.receiveTreatmentAsses;
161
+      // ParamsQuery["patient"] =  this.patient.id
162
+      ParamsQuery["patient"] = this.$route.query.patient_id;
163
+      ParamsQuery["record_date"] = this.record_date;
164
+
165
+      commitAcceptsAssessment(ParamsQuery).then(response => {
166
+        if (response.data.state == 0) {
167
+          Toast.fail(response.data.msg);
168
+          return false;
169
+        } else {
170
+          Toast.success("提交成功");
171
+          for (const key in response.data.data.receiveTreatmentAsses) {
172
+            this.accepts[key] = response.data.data.receiveTreatmentAsses[key];
173
+          }
174
+          this.finish();
175
+        }
176
+      });
177
+    },
178
+    finish: function() {
179
+      this.$emit("finish");
180
+    },
181
+    close: function() {
182
+      this.$emit("close");
183
+    }
184
+  }
185
+};
186
+</script>
187
+
188
+<style style="stylesheet/scss" lang="scss"  scoped>
189
+.choose {
190
+  .el-form-item {
191
+    margin-bottom: 0;
192
+    border-bottom: 1px #e5e5e5 solid;
193
+    padding: 0.15rem 0.36rem;
194
+    .el-radio {
195
+      font-size: 18px;
196
+    }
197
+    
198
+  }
199
+  .button {
200
+    text-align: center;
201
+    margin-top: 1rem;
202
+    .submitButton {
203
+      width: 3rem;
204
+      height: 0.8rem;
205
+      line-height: 0.8rem;
206
+      background: $main-color;
207
+      color: #fff;
208
+      font-size: 0.3rem;
209
+      text-align: center;
210
+      border-radius: 6px;
211
+    }
212
+  }
213
+}
214
+</style>
215
+

+ 641 - 0
src/pages/main/dialog/AssessmentDialog.vue View File

@@ -0,0 +1,641 @@
1
+<template>
2
+  <div>
3
+    <div v-if="isShowDialog" class="Dialog">
4
+      <div class="DialogTit">
5
+        <span class="iconfont" @click="close()">&#xe6e9;</span>
6
+        <h1 class="name">透前评估</h1>
7
+        <span @click="commitInfo" class="success">完成</span>
8
+      </div>
9
+
10
+      <div class="DialogContent" id="dialogTop">
11
+        <div class="item">
12
+          <h2 class="name">透前体重(kg)</h2>
13
+          <div class="content">
14
+            <input type="tel" @focus="inputFocus" v-model="formValue.weight_before"/>
15
+          </div>
16
+        </div>
17
+        <div class="item">
18
+          <h2 class="name">干体重(kg)</h2>
19
+          <div class="content">
20
+            <input type="tel" @focus="inputFocus" v-model="formValue.dry_weight"/>
21
+          </div>
22
+        </div>
23
+        <div class="item">
24
+          <h2 class="name">体温(℃)</h2>
25
+          <div class="content">
26
+            <input type="tel" @focus="inputFocus" v-model="formValue.temperature"/>
27
+          </div>
28
+        </div>
29
+        <div class="item">
30
+          <h2 class="name">出血</h2>
31
+          <div class="content">
32
+            <span class="text" style="width: 50px;"><div style="padding-top: 0.08rem; height: 0.8rem;"><van-switch v-model="hemorrhage_state" @change="hemorrhageStateChange" /></div></span>
33
+          </div>
34
+        </div>
35
+        <div @click="showSubMenu('hemorrhage')" class="item" ref="hemorrhage" v-show="hemorrhage_state">
36
+          <h2 class="name">—— 出血选项</h2>
37
+          <div class="content">
38
+            <span class="text" style="width: 50px">{{formValue.hemorrhage}}</span>
39
+            <span class="iconfont">&#xe6f9;</span>
40
+          </div>
41
+        </div>
42
+        <div class="item" v-show="hemorrhage_state">
43
+          <h2 class="name">—— 其他出血情况</h2>
44
+          <div class="content">
45
+            <input @focus="inputFocus" v-model="formValue.hemorrhage_other"/>
46
+          </div>
47
+        </div>
48
+        <div @click="showSubMenu('internal_fistula')" class="item" ref="internal_fistula">
49
+          <h2 class="name">内瘘</h2>
50
+          <div class="content">
51
+            <span class="text" style="width: 100px">{{formValue.internal_fistula}}</span>
52
+            <span class="iconfont">&#xe6f9;</span>
53
+          </div>
54
+        </div>
55
+        <div @click="showSubMenu('internal_fistula_skin')" class="item" ref="internal_fistula_skin">
56
+          <h2 class="name">内瘘皮肤情况</h2>
57
+          <div class="content">
58
+            <span class="text" style="width: 100px">{{formValue.internal_fistula_skin}}</span>
59
+            <span class="iconfont">&#xe6f9;</span>
60
+          </div>
61
+        </div>
62
+        <div @click="showSubMenu('catheter')" class="item" ref="catheter">
63
+          <h2 class="name">导管</h2>
64
+          <div class="content">
65
+            <span class="text" >{{formValue.catheter}}</span>
66
+            <span class="iconfont">&#xe6f9;</span>
67
+          </div>
68
+        </div>
69
+        <div @click="showSubMenu('catheter_bend')" class="item" ref="catheter_bend">
70
+          <h2 class="name">导管打折</h2>
71
+          <div class="content">
72
+            <span class="text" >{{GetCatheterBendById(formValue.catheter_bend)}}</span>
73
+            <span class="iconfont">&#xe6f9;</span>
74
+          </div>
75
+        </div>
76
+
77
+        <div class="line"></div>
78
+        <div class="item">
79
+          <h2 class="name">收缩压(mmHg)</h2>
80
+          <div class="content">
81
+            <input type="tel" @focus="inputFocus" v-model="formValue.systolic_blood_pressure"/>
82
+          </div>
83
+        </div>
84
+        <div class="item">
85
+          <h2 class="name">舒张压(mmHg)</h2>
86
+          <div class="content">
87
+            <input type="tel" @focus="inputFocus" v-model="formValue.diastolic_blood_pressure"/>
88
+          </div>
89
+        </div>
90
+        <div class="item">
91
+          <h2 class="name">脉率(次/分)</h2>
92
+          <div class="content">
93
+            <input type="tel" @focus="inputFocus" v-model="formValue.pulse_frequency"/>
94
+          </div>
95
+        </div>
96
+        <div @click="showSubMenu('blood_access_part')" class="item" ref="blood_access_part">
97
+          <h2 class="name" >血管通路部位</h2>
98
+          <div class="content">
99
+            <span class="text">{{QueryPartById(formValue.blood_access_part_id)}}</span>
100
+            <span class="iconfont">&#xe6f9;</span>
101
+          </div>
102
+        </div>
103
+        <div @click="showSubMenu('blood_access_opera')" class="item" ref="blood_access_opera">
104
+          <h2 class="name">血管通路操作</h2>
105
+          <div class="content">
106
+            <span class="text">{{QueryOperaById(formValue.blood_access_part_opera_id)}}</span>
107
+            <span class="iconfont">&#xe6f9;</span>
108
+          </div>
109
+        </div>
110
+        <div class="line"></div>
111
+
112
+        <div @click="showSubMenu('complication')" class="item" ref="complication">
113
+          <h2 class="name">并发症</h2>
114
+          <div class="content">
115
+            <span class="text" style="width: 50px">{{formValue.complication}}</span>
116
+            <span class="iconfont">&#xe6f9;</span>
117
+          </div>
118
+        </div>
119
+        <div @click="showSubMenu('last_post_dialysis')" class="item" ref="last_post_dialysis">
120
+          <h2 class="name">前次透析后</h2>
121
+          <div class="content">
122
+            <span class="text" style="width: 100px">{{formValue.last_post_dialysis}}</span>
123
+            <span class="iconfont">&#xe6f9;</span>
124
+          </div>
125
+        </div>
126
+        <div @click="showSubMenu('dialysis_interphase')" class="item" ref="dialysis_interphase">
127
+          <h2 class="name">透析期间</h2>
128
+          <div class="content">
129
+            <span class="text" style="width: 100px">{{formValue.dialysis_interphase}}</span>
130
+            <span class="iconfont">&#xe6f9;</span>
131
+          </div>
132
+        </div>
133
+        <div @click="showSubMenu('symptom_before_dialysis')" class="item" ref="symptom_before_dialysis">
134
+          <h2 class="name">透析前症状</h2>
135
+          <div class="content">
136
+            <span class="text" style="width: 100px">{{formValue.symptom_before_dialysis}}</span>
137
+            <span class="iconfont">&#xe6f9;</span>
138
+          </div>
139
+        </div>
140
+
141
+        <div class="line"></div>
142
+        <div>
143
+          <div class="item">
144
+            <h2 class="name">备注</h2>
145
+            <div class="content">
146
+              <span class="text"></span>
147
+            </div>
148
+          </div>
149
+          <textarea class="textarea" placeholder="请输入内容" @focus="lastInputFocus" @blur="lastInputBlur" v-model="formValue.remark"></textarea>
150
+        </div>
151
+      </div>
152
+
153
+    </div>
154
+    <!--<two-menu title="二级菜单" v-show="true" ></two-menu>-->
155
+    <check-box-sub-menu :visibility="visibility" v-on:menu-cancle="menuCancle" v-on:menu-comfirm="menuComfirm"
156
+                        :propsForm="propForm"></check-box-sub-menu>
157
+  </div>
158
+</template>
159
+
160
+<script>
161
+  // import TwoMenu from "./TwoMenu";
162
+  import CheckBoxSubMenu from "./subMenu/checkBoxSubMenu";
163
+  import {EditAssessmentBeforeDislysis} from '@/api/patient';
164
+  import { Toast } from 'vant';
165
+  import {getDataConfig} from '@/utils/data';
166
+
167
+
168
+
169
+  export default {
170
+    name: "PrescriptionDialog",
171
+    props: {
172
+      patient_prop: {
173
+        type: Object,
174
+      },
175
+      predialysis: {
176
+        type: Object,
177
+      },
178
+      last_predialysis: {
179
+        type: Object,
180
+      },
181
+    },
182
+    data() {
183
+      return {
184
+        isShowDialog: true,
185
+        //sub menu prop
186
+        visibility: false,
187
+        propForm: {
188
+          title: '',
189
+          list: [],
190
+          optionList: [],
191
+          isMultiple: 2,
192
+          result: [], //选中的值
193
+          type: 1, //用来区分不同子菜单,方便对返回值进行赋值
194
+          selectId: 0,
195
+        },
196
+        hemorrhage_state: false,
197
+
198
+        formValue: {
199
+          weight_before: '',
200
+          dry_weight: '',
201
+          temperature: '',
202
+          systolic_blood_pressure: '',
203
+          diastolic_blood_pressure: '',
204
+          symptom_before_dialysis:'',
205
+          pulse_frequency: '',
206
+          last_post_dialysis:'',
207
+          dialysis_interphase:'',
208
+          catheter: '',
209
+          catheter_bend: 2,
210
+          complication: '',
211
+          remark: '',
212
+          blood_access_part_id: '',
213
+          blood_access_part_opera_id: '',
214
+          internal_fistula: '',
215
+          internal_fistula_skin: "",
216
+          is_hemorrhage: 1,
217
+          hemorrhage: "",
218
+          hemorrhage_other: "",
219
+        },
220
+
221
+        record_date:''
222
+
223
+
224
+      };
225
+    },
226
+    methods: {
227
+      hemorrhageStateChange: function(is_select) {
228
+        this.formValue.is_hemorrhage = is_select == true ? 1 : 2
229
+      },
230
+      inputFocus: function(event) {
231
+        var input = event.target
232
+        setTimeout(function () {
233
+          input.scrollIntoView()
234
+        }, 0);
235
+        
236
+        if (input.setSelectionRange) {
237
+          setTimeout(function () {
238
+              input.setSelectionRange(0, input.value.length);
239
+          }, 0);
240
+        } else if (input.createTextRange) {
241
+            var rng = input.createTextRange();
242
+            rng.move('character', input.value.length);
243
+            rng.select();
244
+        }
245
+      },
246
+      lastInputFocus: function(event) {
247
+        var input = event.target
248
+        setTimeout(function () {
249
+          input.style.marginBottom = "2rem"
250
+          input.parentNode.scrollIntoView()
251
+        }, 0);
252
+      },
253
+      lastInputBlur: function(event) {
254
+        var input = event.target
255
+        setTimeout(function () {
256
+          input.style.marginBottom = ""
257
+        }, 0);
258
+      },
259
+      showSubMenu: function (val) {
260
+        switch (val) {
261
+          case 'last_post_dialysis':
262
+            this.propForm.result = []
263
+
264
+            this.propForm.type = 1
265
+            this.isShowDialog = false
266
+            this.propForm.title = '前次透析后'
267
+            this.visibility = true
268
+            this.propForm.list = getDataConfig('hemodialysis','last_dialysis_after')
269
+            this.propForm.optionList = []
270
+            this.propForm.isMultiple = 2
271
+            if (this.formValue.last_post_dialysis != undefined || this.formValue.last_post_dialysis != null) {
272
+              if (this.formValue.last_post_dialysis.length > 0) {
273
+                this.propForm.result = this.formValue.last_post_dialysis.split(",")
274
+
275
+              } else {
276
+                this.propForm.result = []
277
+              }
278
+
279
+            } else {
280
+              this.propForm.result = []
281
+            }
282
+            
283
+            this.propForm.click_ref = "last_post_dialysis"
284
+
285
+            break
286
+          case 'dialysis_interphase':
287
+            this.propForm.result = []
288
+
289
+            this.propForm.type = 2
290
+            this.isShowDialog = false
291
+            this.propForm.title = '透析期间'
292
+            this.visibility = true
293
+            this.propForm.list = getDataConfig('hemodialysis','dialysis_duration')
294
+            this.propForm.optionList = []
295
+            this.propForm.isMultiple = 2
296
+            if (this.formValue.dialysis_interphase != undefined || this.formValue.dialysis_interphase != null) {
297
+              if (this.formValue.dialysis_interphase.length > 0) {
298
+                this.propForm.result = this.formValue.dialysis_interphase.split(",")
299
+              } else {
300
+                this.propForm.result = []
301
+              }
302
+            } else {
303
+              this.propForm.result = []
304
+            }
305
+            this.propForm.click_ref = "dialysis_interphase"
306
+            break
307
+
308
+          case 'symptom_before_dialysis':
309
+            this.propForm.result = []
310
+
311
+            this.propForm.type = 3
312
+            this.isShowDialog = false
313
+            this.propForm.title = '透析前症状'
314
+            this.visibility = true
315
+            this.propForm.list = getDataConfig('hemodialysis','dialysis_before')
316
+            this.propForm.optionList = []
317
+            this.propForm.isMultiple = 2
318
+            if (this.formValue.symptom_before_dialysis != undefined || this.formValue.symptom_before_dialysis != null) {
319
+              if (this.formValue.symptom_before_dialysis.length > 0) {
320
+                this.propForm.result = this.formValue.symptom_before_dialysis.split(",")
321
+              } else {
322
+                this.propForm.result = []
323
+              }
324
+            } else {
325
+              this.propForm.result = []
326
+            }
327
+            this.propForm.click_ref = "symptom_before_dialysis"
328
+            break
329
+
330
+          case 'catheter':
331
+            this.propForm.result = []
332
+
333
+            this.propForm.type = 4
334
+            this.isShowDialog = false
335
+            this.propForm.title = '导管'
336
+            this.visibility = true
337
+            this.propForm.list = getDataConfig('hemodialysis','catheter')
338
+            this.propForm.optionList = []
339
+            this.propForm.isMultiple = 2
340
+            if (this.formValue.catheter != undefined || this.formValue.catheter != null) {
341
+              if (this.formValue.catheter.length > 0) {
342
+                this.propForm.result = this.formValue.catheter.split(",")
343
+              } else {
344
+                this.propForm.result = []
345
+              }
346
+            } else {
347
+              this.propForm.result = []
348
+            }
349
+            
350
+            this.propForm.click_ref = "catheter"
351
+
352
+            break
353
+          case 'complication':
354
+            this.propForm.result = []
355
+
356
+            this.propForm.type = 5
357
+            this.isShowDialog = false
358
+            this.propForm.title = '并发症'
359
+            this.visibility = true
360
+            this.propForm.list = getDataConfig('hemodialysis','complication')
361
+            this.propForm.optionList = []
362
+            this.propForm.isMultiple = 2
363
+            // this.propForm.result = this.formValue.complication.split(",")
364
+            if (this.formValue.complication != undefined || this.formValue.complication != null) {
365
+              if (this.formValue.complication.length > 0) {
366
+                this.propForm.result = this.formValue.complication.split(",")
367
+              } else {
368
+                this.propForm.result = []
369
+              }
370
+            } else {
371
+              this.propForm.result = []
372
+            }
373
+            
374
+            this.propForm.click_ref = "complication"
375
+            break
376
+
377
+          case 'blood_access_part':
378
+            this.propForm.type = 6
379
+            this.isShowDialog = false
380
+            this.propForm.title = '血管通路部位'
381
+            this.visibility = true
382
+            this.propForm.list = []
383
+            this.propForm.optionList = getDataConfig('hemodialysis','vascular_access')
384
+            this.propForm.isMultiple = 1
385
+            this.propForm.selectId = this.formValue.blood_access_part_id
386
+            this.propForm.click_ref = "blood_access_part"
387
+            break
388
+
389
+          case 'blood_access_opera':
390
+            this.propForm.type = 7
391
+            this.isShowDialog = false
392
+            this.propForm.title = '血管通路操作'
393
+            this.visibility = true
394
+            this.propForm.list = []
395
+            this.propForm.optionList = getDataConfig('hemodialysis','vascular_access_desc')
396
+            this.propForm.isMultiple = 1
397
+            this.propForm.selectId = this.formValue.blood_access_part_opera_id
398
+            this.propForm.click_ref = "blood_access_opera"
399
+            break
400
+
401
+          case 'internal_fistula':
402
+            this.propForm.result = []
403
+
404
+            this.propForm.type = 8
405
+            this.isShowDialog = false
406
+            this.propForm.title = '内萎'
407
+            this.visibility = true
408
+            this.propForm.list = getDataConfig('hemodialysis','internal_fistula')
409
+            this.propForm.optionList = []
410
+            this.propForm.isMultiple = 2
411
+            // this.propForm.result = this.formValue.internal_fistula.split(",")
412
+            if (this.formValue.internal_fistula != undefined || this.formValue.internal_fistula != null) {
413
+              if (this.formValue.internal_fistula.length > 0) {
414
+                this.propForm.result = this.formValue.internal_fistula.split(",")
415
+              } else {
416
+                this.propForm.result = []
417
+              }
418
+            } else {
419
+              this.propForm.result = []
420
+            }
421
+            this.propForm.click_ref = "internal_fistula"
422
+            break
423
+
424
+          case "hemorrhage":
425
+            this.propForm.result = []
426
+
427
+            this.propForm.type = 9
428
+            this.isShowDialog = false
429
+            this.propForm.title = '出血'
430
+            this.visibility = true
431
+            this.propForm.list = getDataConfig('hemodialysis','hemorrhage')
432
+            this.propForm.optionList = []
433
+            this.propForm.isMultiple = 2
434
+            // this.propForm.result = typeof(this.formValue.hemorrhage) == "string"? this.formValue.hemorrhage.split(","):[]
435
+            if (this.formValue.hemorrhage != undefined || this.formValue.hemorrhage != null) {
436
+              if (this.formValue.hemorrhage.length > 0) {
437
+                this.propForm.result = this.formValue.hemorrhage.split(",")
438
+              } else {
439
+                this.propForm.result = []
440
+              }
441
+            } else {
442
+              this.propForm.result = []
443
+            }
444
+            this.propForm.click_ref = "hemorrhage"
445
+            break
446
+          case "internal_fistula_skin":
447
+            this.propForm.result = []
448
+
449
+            this.propForm.type = 10
450
+            this.isShowDialog = false
451
+            this.propForm.title = '内瘘皮肤情况'
452
+            this.visibility = true
453
+            this.propForm.list = this.$store.getters.internal_fistula_skin
454
+            this.propForm.optionList = []
455
+            this.propForm.isMultiple = 2
456
+            // this.propForm.result = this.formValue.hemorrhage.split(",")
457
+            if (this.formValue.internal_fistula_skin != undefined || this.formValue.internal_fistula_skin != null) {
458
+              if (this.formValue.internal_fistula_skin.length > 0) {
459
+                this.propForm.result = this.formValue.internal_fistula_skin.split(",")
460
+              } else {
461
+                this.propForm.result = []
462
+              }
463
+            } else {
464
+              this.propForm.result = []
465
+            }
466
+            this.propForm.click_ref = "internal_fistula_skin"
467
+            break
468
+
469
+          case 'catheter_bend':
470
+            this.propForm.type = 11
471
+            this.isShowDialog = false
472
+            this.propForm.title = '导管打折'
473
+            this.visibility = true
474
+            this.propForm.list = []
475
+            this.propForm.optionList = this.$store.getters.catheter_bend
476
+            this.propForm.isMultiple = 1
477
+            this.propForm.selectId = this.formValue.catheter_bend
478
+            this.propForm.click_ref = "catheter_bend"
479
+            break
480
+        }
481
+
482
+      }, menuCancle: function () {
483
+        this.visibility = false
484
+        this.isShowDialog = true
485
+        this.$nextTick( () => {
486
+          if (this.$refs[this.propForm.click_ref] != undefined && this.$refs[this.propForm.click_ref] != null) {
487
+            this.$refs[this.propForm.click_ref].scrollIntoView()
488
+          }
489
+        })
490
+
491
+      }, menuComfirm: function (val) {
492
+        this.visibility = false
493
+        this.isShowDialog = true
494
+        this.$nextTick( () => {
495
+          if (this.$refs[this.propForm.click_ref] != undefined && this.$refs[this.propForm.click_ref] != null) {
496
+            this.$refs[this.propForm.click_ref].scrollIntoView()
497
+          }
498
+        })
499
+        switch (val.type) {
500
+          case 1:
501
+            this.formValue.last_post_dialysis = val.result.join(',')
502
+            break
503
+          case 2:
504
+            this.formValue.dialysis_interphase = val.result.join(',')
505
+            break
506
+
507
+          case 3:
508
+            this.formValue.symptom_before_dialysis = val.result.join(',')
509
+            break
510
+          case 4:
511
+            this.formValue.catheter = val.result.join(',')
512
+            break
513
+          case 5:
514
+            this.formValue.complication = val.result.join(',')
515
+            break
516
+          case 6:
517
+            this.formValue.blood_access_part_id = val.selectId
518
+            break
519
+          case 7:
520
+            this.formValue.blood_access_part_opera_id = val.selectId
521
+            break
522
+          case 8:
523
+            this.formValue.internal_fistula = val.result.join(',')
524
+            break
525
+          case 9:
526
+            this.formValue.hemorrhage = val.result.join(',')
527
+            break
528
+          case 10:
529
+            this.formValue.internal_fistula_skin = val.result.join(",")
530
+            break
531
+          case 11:
532
+            this.formValue.catheter_bend = val.selectId
533
+            break
534
+        }
535
+
536
+      }, QueryPartById: function (val) {
537
+        let vascular_access_part_name = ''
538
+        let vascular_access = getDataConfig('hemodialysis','vascular_access')
539
+
540
+        for (let i = 0; i < vascular_access.length; i++) {
541
+          if (vascular_access[i].id == val) {
542
+            vascular_access_part_name = vascular_access[i].name
543
+          }
544
+        }
545
+        return  vascular_access_part_name
546
+
547
+      }, QueryOperaById: function (val) {
548
+        let vascular_access_desc_name = ''
549
+        let vascular_access_desc = getDataConfig('hemodialysis','vascular_access_desc')
550
+        for (let i = 0; i < vascular_access_desc.length; i++) {
551
+          if (vascular_access_desc[i].id == val) {
552
+            vascular_access_desc_name = vascular_access_desc[i].name
553
+          }
554
+        }
555
+
556
+        return vascular_access_desc_name
557
+
558
+      },
559
+      GetCatheterBendById: function (val) {
560
+        let name = "";
561
+        let options = this.$store.getters.catheter_bend;
562
+        for (let index = 0; index < options.length; index++) {
563
+          const option = options[index];
564
+          if (option.id == val) {
565
+            name = option.name
566
+            break
567
+          }
568
+        }
569
+        return name
570
+      },
571
+      commitInfo:function () {
572
+        Toast.loading({forbidClick: true, duration: 0})
573
+        EditAssessmentBeforeDislysis(this.$route.query.patient_id,  this.record_date, this.formValue).then(response=>{
574
+          if (response.data.state == 0) {
575
+            Toast(response.data.msg);
576
+            return false;
577
+          } else {
578
+            Toast("提交完成");
579
+            this.$emit('evaluation', response.data.data.evaluation);
580
+          }
581
+        });
582
+      },
583
+      close: function() {
584
+        this.$emit("close")
585
+      }, open:function(){
586
+        this.isShowDialog = true;
587
+        this.visibility = false;
588
+        var dialogTop = document.querySelector('#dialogTop');
589
+        if (dialogTop != null) {
590
+          this.$nextTick(() => {
591
+              dialogTop.scrollTop = 0;
592
+          });
593
+        }
594
+      }
595
+    }, components: {
596
+      CheckBoxSubMenu,
597
+
598
+    }, created(){
599
+
600
+      var date = this.$route.query && this.$route.query.date;
601
+      date *= 1000;
602
+      var newDate = new Date(date);
603
+
604
+      var y = newDate.getFullYear();
605
+      var m = newDate.getMonth() + 1;
606
+      var d = newDate.getDate();
607
+      if (isNaN(y) || isNaN(m) || isNaN(d)) {
608
+        newDate = new Date();
609
+        y = newDate.getFullYear();
610
+        m = newDate.getMonth() + 1;
611
+        d = newDate.getDate();
612
+      }
613
+      this.record_date = y + "-" + (m < 10 ? "0" + m : m) + "-" + (d < 10 ? "0" + d : d);
614
+      // console.log(this.predialysis)
615
+      this.formValue = this.predialysis
616
+      if (this.predialysis.id == undefined && this.last_predialysis.id != undefined) {
617
+        this.$set(this.formValue, "dry_weight", this.last_predialysis["dry_weight"])
618
+        this.$set(this.formValue, "internal_fistula", this.last_predialysis["internal_fistula"])
619
+        this.$set(this.formValue, "internal_fistula_skin", this.last_predialysis["internal_fistula_skin"])
620
+        this.$set(this.formValue, "blood_access_part_id", this.last_predialysis["blood_access_part_id"])
621
+        this.$set(this.formValue, "blood_access_part_opera_id", this.last_predialysis["blood_access_part_opera_id"])
622
+      }
623
+      this.hemorrhage_state = this.formValue.is_hemorrhage == 1
624
+    }
625
+  };
626
+</script>
627
+
628
+<style style="stylesheet/scss" lang="scss" scoped>
629
+  .textarea {
630
+  width: 100%;
631
+  height: 2.4rem;
632
+  line-height: 0.6rem;
633
+  color: $pgh-color;
634
+  font-size: 0.28rem;
635
+  padding-left: 0.36rem;
636
+  border: none;
637
+  border-bottom: 1px #e5e5e5 solid;
638
+  }
639
+ 
640
+</style>
641
+

+ 191 - 0
src/pages/main/dialog/ComputerDialog.vue View File

@@ -0,0 +1,191 @@
1
+<template>
2
+ <div>
3
+    <div class="Dialog" v-show="!selecting">
4
+        <div class="DialogTit">
5
+            <span @click="close()" class="iconfont">&#xe6e9;</span>
6
+            <h1 class="name">透析上机</h1>
7
+            <span class="success"></span>
8
+        </div>
9
+
10
+        <div class="DialogContent ">
11
+          <div class="item" @click="select_bed">
12
+            <h2 class="name">上机床位</h2>
13
+            <div class="content">
14
+              <span class="text" style="width: 100px">{{ device_number_map[bed_id].number }}</span>
15
+              <span class="iconfont">&#xe6f9;</span>
16
+            </div>
17
+          </div>
18
+          <div class="item" @click="select_nurse">
19
+            <h2 class="name">上机护士</h2>
20
+            <div class="content">
21
+              <span class="text" style="width: 100px">{{ admin_map[nurse_id].name }}</span>
22
+              <span class="iconfont">&#xe6f9;</span>
23
+            </div>
24
+          </div>
25
+          <div class="perform">
26
+              <!-- <p class="crew">上机人员 : <span>黄海燕 护士</span></p> -->
27
+              <!-- <button>执行上机</button> -->
28
+              <button @click="commitInfo" v-if="(record == null || record.id == '')">执行上机</button>
29
+            <button :disabled="true" style="background-color:lightgray;" v-else>已上机</button>
30
+          </div>
31
+        </div>
32
+    </div>
33
+
34
+    <two-menu ref="selector"></two-menu>
35
+  </div>
36
+</template>
37
+
38
+<script>
39
+import { startDialysis } from "@/api/dialysis";
40
+import { Toast } from 'vant';
41
+import TwoMenu from './TwoMenu'
42
+
43
+export default {
44
+  name: "ComputerDialog",
45
+  components: {
46
+    TwoMenu
47
+  },
48
+  data() {
49
+    return {
50
+      selecting: false,
51
+
52
+      bed_id: 0,
53
+      nurse_id: 0,
54
+      zone_beds: [], // 该排班的区里的床位
55
+    }
56
+  },
57
+  props:{
58
+    schedule: {
59
+      type: Object,
60
+    },
61
+    patient_prop: {
62
+      type: Object,
63
+    },
64
+    record: {
65
+      type: Object,
66
+    },
67
+    admins: {
68
+      type: Array,
69
+    },
70
+    device_numbers: {
71
+      type: Array,
72
+    },
73
+    admin_map: {
74
+      type: Object,
75
+    },
76
+    device_number_map: {
77
+      type: Object,
78
+    },
79
+  },
80
+  created(){
81
+    var date = this.$route.query && this.$route.query.date;
82
+    date *= 1000;
83
+    var newDate = new Date(date);
84
+    var y = newDate.getFullYear();
85
+    var m = newDate.getMonth() + 1;
86
+    var d = newDate.getDate();
87
+    if (isNaN(y) || isNaN(m) || isNaN(d)) {
88
+      newDate = new Date();
89
+      y = newDate.getFullYear();
90
+      m = newDate.getMonth() + 1;
91
+      d = newDate.getDate();
92
+    }
93
+    this.record_date = y + "-" + (m < 10 ? "0" + m : m) + "-" + (d < 10 ? "0" + d : d);
94
+
95
+    this.bed_id = (this.record == null || this.record.id == '') ? this.schedule.bed_id : this.record.bed_id
96
+    this.nurse_id = (this.record == null || this.record.id == '') ? this.$store.getters.user.user.id : this.record.start_nurse
97
+
98
+    var beds = []
99
+    for (let index = 0; index < this.device_numbers.length; index++) {
100
+      const device_number = this.device_numbers[index];
101
+      if (device_number.zone_id == this.schedule.partition_id) {
102
+        beds.push(device_number)
103
+      }
104
+    }
105
+    this.zone_beds = beds
106
+  },
107
+  methods: {
108
+    commitInfo: function () {
109
+      Toast.loading({forbidClick: true, duration: 0})
110
+      let ParamsQuery = {}
111
+      ParamsQuery['patient_id'] = this.patient_prop.id
112
+      ParamsQuery['record_date'] = this.record_date
113
+      ParamsQuery["nurse"] = this.nurse_id
114
+      ParamsQuery["bed"] = this.bed_id
115
+
116
+
117
+      startDialysis(ParamsQuery).then(response => {
118
+        if (response.data.state == 0) {
119
+          Toast.fail(response.data.msg);
120
+          return false;
121
+        } else {
122
+          Toast.success("上机成功");
123
+          this.$emit('did_start', response.data.data.dialysis_order);
124
+          var record = this.record
125
+          for (const key in response.data.data.dialysis_order) {
126
+            this.$set(record, key, response.data.data.dialysis_order[key])
127
+            // this.record[key] = response.data.data.dialysis_order[key]
128
+          }
129
+        }
130
+      });
131
+    },
132
+    close: function() {
133
+      this.$emit('close')
134
+    },
135
+    select_bed: function() {
136
+      if (this.record.id != 0) {
137
+        return
138
+      }
139
+      this.selecting = true
140
+      var t = this
141
+      this.$refs.selector.showSingleSelect(this.zone_beds, this.bed_id, "选择床位号", "number", "id", function(select_id) {
142
+        t.bed_id = select_id
143
+      }, function() {
144
+        t.selecting = false
145
+      })
146
+    },
147
+    select_nurse: function() {
148
+      if (this.record.id != 0) {
149
+        return
150
+      }
151
+      this.selecting = true
152
+      var t = this
153
+      this.$refs.selector.showSingleSelect(this.admins, this.nurse_id, "选择上机护士", "name", "id", function(select_id) {
154
+        console.log("nurse id: ", select_id)
155
+        t.nurse_id = select_id
156
+      }, function() {
157
+        t.selecting = false
158
+      })
159
+    },
160
+    open:function(){
161
+      this.selecting = false;
162
+      this.$refs.selector.hide();
163
+    }
164
+  }
165
+
166
+};
167
+</script>
168
+
169
+<style style="stylesheet/scss" lang="scss" scoped>
170
+
171
+.perform{
172
+  text-align: center;
173
+  font-size: 0.3rem;
174
+  padding-top: 2rem;
175
+  .crew{
176
+    color: $pgh-color;
177
+  }
178
+  button{
179
+    background:$main-color;
180
+    color: #fff;
181
+    font-size: 0.3rem;
182
+    text-align:center;
183
+    width: 3rem;
184
+    height: 0.7rem;
185
+    line-height: 0.7rem;
186
+    border-radius:4px;
187
+    margin-top:10px;
188
+  }
189
+}
190
+</style>
191
+

+ 315 - 0
src/pages/main/dialog/DoubleDialog.vue View File

@@ -0,0 +1,315 @@
1
+<template>
2
+  <div>
3
+    <div class="Dialog">
4
+      <div class="DialogTit">
5
+        <span @click="close()" class="iconfont">&#xe6e9;</span>
6
+        <h1 class="name">双人查对</h1>
7
+        <span @click="commitInfo" class="success">完成</span>
8
+      </div>
9
+      <div style="height: 8rem" class="DialogContent choose">
10
+        <el-form :inline="true" class="demo-form-inline" :model="doubleReview" label-width="130px">
11
+          <el-form-item label="透析物品核查 : ">
12
+            <el-radio v-model="doubleReview.dialysis_item_check" label="1">正确</el-radio>
13
+            <el-radio v-model="doubleReview.dialysis_item_check" label="2">错误</el-radio>
14
+          </el-form-item>
15
+          <el-form-item label="差错描述 : " label-width="90px">
16
+            <el-input v-model="doubleReview.dialysis_item_desc"></el-input>
17
+          </el-form-item>
18
+        </el-form>
19
+        <el-form :inline="true" class="demo-form-inline" :model="doubleReview" label-width="130px">
20
+          <el-form-item label="透析参数核查 : ">
21
+            <el-radio v-model="doubleReview.dialysis_parameter_check" label="1">正确</el-radio>
22
+            <el-radio v-model="doubleReview.dialysis_parameter_check" label="2">错误</el-radio>
23
+          </el-form-item>
24
+          <el-form-item label="差错描述 : " label-width="90px">
25
+            <el-input v-model="doubleReview.dialysis_parameter_desc"></el-input>
26
+          </el-form-item>
27
+        </el-form>
28
+        <el-form :inline="true" class="demo-form-inline" :model="doubleReview" label-width="130px">
29
+          <el-form-item label="血管通路核查 : ">
30
+            <!--<el-radio-group v-model="form.appetite">-->
31
+            <!--<el-radio label="正确"></el-radio>-->
32
+            <!--<el-radio label="整改"></el-radio>-->
33
+            <!--</el-radio-group>-->
34
+            <el-radio v-model="doubleReview.vascular_access_verification" label="1">正确</el-radio>
35
+            <el-radio v-model="doubleReview.vascular_access_verification" label="2">错误</el-radio>
36
+
37
+          </el-form-item>
38
+          <el-form-item label="差错描述 : " label-width="90px">
39
+            <el-input v-model="doubleReview.vascular_access_desc"></el-input>
40
+          </el-form-item>
41
+        </el-form>
42
+        <el-form :inline="true" class="demo-form-inline" :model="doubleReview" label-width="130px">
43
+          <el-form-item label="管道连接核查 : ">
44
+            <!--<el-radio-group v-model="form.condition">-->
45
+            <el-radio v-model="doubleReview.pipeline_connection_check" label="1">正确</el-radio>
46
+            <el-radio v-model="doubleReview.pipeline_connection_check" label="2">错误</el-radio>
47
+            <!--</el-radio-group>-->
48
+          </el-form-item>
49
+          <el-form-item label="差错描述 : " label-width="90px">
50
+            <el-input v-model="doubleReview.pipeline_connection_desc"></el-input>
51
+          </el-form-item>
52
+
53
+
54
+        </el-form>
55
+
56
+        <el-form :inline="true" class="demo-form-inline" :model="doubleReview" label-width="130px">
57
+
58
+          <p style="margin: 10px 0 10px 13px;" v-if="doubleReview.creater != 0">{{getFirstCheckDesc()}} </p>
59
+          <p style="margin: 10px 0 10px 13px;" v-if="doubleReview.modifier != 0">{{getScondCheckDesc()}}</p>
60
+
61
+        </el-form>
62
+
63
+
64
+        <!-- <div class="button">
65
+          <button @click="commitInfo" class="submitButton">提交</button>
66
+      </div> -->
67
+        <!--<div class="footer">-->
68
+        <!--处方医生:黄梦燕  医生-->
69
+        <!--</div>-->
70
+      </div>
71
+      <!-- <div class="footer">
72
+          处方医生:黄梦燕  护士
73
+      </div> -->
74
+    </div>
75
+  </div>
76
+</template>
77
+
78
+<script>
79
+import { commitDoubleCheck } from "@/api/dialysis";
80
+import { Toast } from "vant";
81
+import { uParseTime } from "@/utils/tools";
82
+import { parseTime } from "@/utils";
83
+
84
+export default {
85
+  name: "DoubleDialog",
86
+  data() {
87
+    return {
88
+      admin_users: [],
89
+      first_check_isShow: false,
90
+      second_check_isShow: false,
91
+      first_check_desc: "",
92
+      second_check_desc: "",
93
+      doubleReview: {
94
+        dialysis_item_check: "1",
95
+        dialysis_parameter_check: "1",
96
+        vascular_access_verification: "1",
97
+        pipeline_connection_check: "1",
98
+        dialysis_item_desc: "",
99
+        dialysis_parameter_desc: "",
100
+        vascular_access_desc: "",
101
+        pipeline_connection_desc: "",
102
+        collator: "",
103
+        creater: 0,
104
+        modifier: 0,
105
+        created_time: 0,
106
+        updated_time: 0
107
+      },
108
+      patient: {
109
+        id: 0
110
+      },
111
+      doctor: "",
112
+      record_date: ""
113
+    };
114
+  },
115
+  props: {
116
+    record: {
117
+      type: Object,
118
+      default: () => {
119
+        return { id: 0 };
120
+      }
121
+    },
122
+
123
+    patient_prop: {
124
+      type: Object
125
+    },
126
+    admin_users_prop: {
127
+      type: Array
128
+    }
129
+  },
130
+  created() {
131
+    this.admin_users = this.admin_users_prop;
132
+
133
+    if (this.record.id == "") {
134
+      this.doubleReview.dialysis_item_check = "1";
135
+      this.doubleReview.dialysis_parameter_check = "1";
136
+      this.doubleReview.vascular_access_verification = "1";
137
+      this.doubleReview.pipeline_connection_check = "1";
138
+      this.doubleReview.dialysis_item_desc = "";
139
+      this.doubleReview.dialysis_parameter_desc = "";
140
+      this.doubleReview.vascular_access_desc = "";
141
+      this.doubleReview.pipeline_connection_desc = "";
142
+    } else {
143
+      this.doubleReview.dialysis_item_check =
144
+        this.record.dialysis_item_check + "";
145
+      this.doubleReview.dialysis_parameter_check =
146
+        this.record.dialysis_parameter_check + "";
147
+      this.doubleReview.vascular_access_verification =
148
+        this.record.vascular_access_verification + "";
149
+      this.doubleReview.pipeline_connection_check =
150
+        this.record.pipeline_connection_check + "";
151
+      this.doubleReview.dialysis_item_desc = this.record.dialysis_item_desc;
152
+      this.doubleReview.dialysis_parameter_desc = this.record.dialysis_parameter_desc;
153
+      this.doubleReview.vascular_access_desc = this.record.vascular_access_desc;
154
+      this.doubleReview.pipeline_connection_desc = this.record.pipeline_connection_desc;
155
+
156
+      this.doubleReview.created_time = this.record.created_time;
157
+      this.doubleReview.creater = this.record.creater;
158
+      this.doubleReview.updated_time = this.record.updated_time;
159
+      this.doubleReview.modifier = this.record.modifier;
160
+    }
161
+
162
+    var date = this.$route.query && this.$route.query.date;
163
+    date *= 1000;
164
+    var newDate = new Date(date);
165
+    var y = newDate.getFullYear();
166
+    var m = newDate.getMonth() + 1;
167
+    var d = newDate.getDate();
168
+    if (isNaN(y) || isNaN(m) || isNaN(d)) {
169
+      newDate = new Date();
170
+      y = newDate.getFullYear();
171
+      m = newDate.getMonth() + 1;
172
+      d = newDate.getDate();
173
+    }
174
+    this.record_date =
175
+      y + "-" + (m < 10 ? "0" + m : m) + "-" + (d < 10 ? "0" + d : d);
176
+    // this.patient.id = this.patient_prop.id
177
+  },
178
+  methods: {
179
+    checkInf: function() {},
180
+    // initData(doubleReview, patient, doctor) {
181
+    //   //上层传值
182
+    //   this.patient = patient;
183
+    //   this.doubleReview = doubleReview;
184
+    //   this.doctor = doctor;
185
+    // },
186
+    commitInfo: function() {
187
+      Toast.loading({ forbidClick: true, duration: 0 });
188
+      let ParamsQuery = this.doubleReview;
189
+      // ParamsQuery["patient"] = this.patient.id
190
+      ParamsQuery["patient"] = this.$route.query.patient_id;
191
+      ParamsQuery["record_date"] = this.record_date;
192
+      commitDoubleCheck(ParamsQuery).then(response => {
193
+        if (response.data.state == 0) {
194
+          // this.$toast({message: response.data.msg});
195
+          Toast.fail(response.data.msg);
196
+          return false;
197
+        } else {
198
+          Toast.success("提交成功");
199
+
200
+          this.doubleReview.created_time =
201
+            response.data.data.doubleCheck.created_time;
202
+          this.doubleReview.creater = response.data.data.doubleCheck.creater;
203
+          this.doubleReview.updated_time =
204
+            response.data.data.doubleCheck.updated_time;
205
+          this.doubleReview.modifier = response.data.data.doubleCheck.modifier;
206
+
207
+          // console.log(response.data.data.doubleCheck)
208
+          for (const key in response.data.data.doubleCheck) {
209
+            this.record[key] = response.data.data.doubleCheck[key];
210
+          }
211
+          this.$emit("did_update", response.data.data.doubleCheck);
212
+        }
213
+      });
214
+    },
215
+    close: function() {
216
+      this.$emit("close");
217
+    },
218
+    getFirstCheckDesc: function() {
219
+      let time = uParseTime(
220
+        this.doubleReview.created_time,
221
+        "{y}-{m}-{d}  {h}:{i}"
222
+      );
223
+      if (this.doubleReview.creater <= 0) {
224
+        return "";
225
+      }
226
+
227
+      var desc = "";
228
+      if (
229
+        this.admin_users == null ||
230
+        typeof this.admin_users.length == "undefined"
231
+      ) {
232
+        return "";
233
+      }
234
+
235
+      var leng = this.admin_users.length;
236
+      if (leng == 0) {
237
+        return "";
238
+      }
239
+
240
+      for (let index = 0; index < leng; index++) {
241
+        if (this.admin_users[index].id == this.doubleReview.creater) {
242
+          let name = this.admin_users[index].name;
243
+          desc = "首次核对人员:" + name + " 首次核对时间:" + time;
244
+
245
+          break;
246
+        }
247
+      }
248
+      return desc;
249
+    },
250
+    getScondCheckDesc: function() {
251
+      let time = uParseTime(
252
+        this.doubleReview.updated_time,
253
+        "{y}-{m}-{d} {h}:{i}"
254
+      );
255
+      if (this.doubleReview.modifier <= 0) {
256
+        return "";
257
+      }
258
+      var desc = "";
259
+      if (
260
+        this.admin_users == null ||
261
+        typeof this.admin_users.length == "undefined"
262
+      ) {
263
+        return desc;
264
+      }
265
+      var leng = this.admin_users.length;
266
+      if (leng == 0) {
267
+        return desc;
268
+      }
269
+      for (let index = 0; index < leng; index++) {
270
+        if (this.admin_users[index].id == this.doubleReview.modifier) {
271
+          let name = this.admin_users[index].name;
272
+          desc = "第二次核对人员:" + name + " 第二次核对时间:" + time;
273
+          break;
274
+        }
275
+      }
276
+      return desc;
277
+    },
278
+    getDate: function(val) {
279
+      return parseTime(val, "{y}-{m}-{d} {h}:{i}");
280
+    }
281
+  }
282
+};
283
+</script>
284
+
285
+<style style="stylesheet/scss" lang="scss" scoped>
286
+.choose {
287
+  .demo-form-inline {
288
+    border-bottom: 1px #e5e5e5 solid;
289
+    .el-form-item {
290
+      margin-bottom: 0;
291
+      padding: 0.2rem 0.2rem;
292
+      margin-right: 0;
293
+    }
294
+    p {
295
+      color: $title-color;
296
+    }
297
+  }
298
+
299
+  .button {
300
+    text-align: center;
301
+    margin-top: 1rem;
302
+    .submitButton {
303
+      width: 3rem;
304
+      height: 0.8rem;
305
+      line-height: 0.8rem;
306
+      background: $main-color;
307
+      color: #fff;
308
+      font-size: 0.3rem;
309
+      text-align: center;
310
+      border-radius: 6px;
311
+    }
312
+  }
313
+}
314
+</style>
315
+

+ 544 - 0
src/pages/main/dialog/LongDialog.vue View File

@@ -0,0 +1,544 @@
1
+<template>
2
+  <div>
3
+    <div class="Dialog"  v-show="showObj.paden_show">
4
+      <div class="DialogTit">
5
+        <span class="iconfont"  @click="$emit('closeLongDialog')">&#xe6e9;</span>
6
+        <h1 class="name">长期处方</h1>
7
+        <span @click="submitSolution" class="success">完成</span>
8
+      </div>
9
+
10
+      <div class="DialogContent">
11
+        <div class="item" @click="showMenu(0)">
12
+          <h2 class="name">透析模式</h2>
13
+          <div class="content" >
14
+            <span class="text">{{dialysisSolution.mode_name}}</span>
15
+            <span class="iconfont">&#xe6f9;</span>
16
+          </div>
17
+        </div>
18
+        <div class="item">
19
+          <h2 class="name">透析时长(h)</h2>
20
+          <div class="content">
21
+            <input type="number" v-model="dialysisSolution.dialysis_duration">
22
+            <!-- <span class="text">1</span>   -->
23
+            <!-- <span class="iconfont">&#xe6f9;</span>  -->
24
+          </div>
25
+        </div>
26
+        <div class="item" @click="showMenu(1)">
27
+          <h2 class="name">透析器</h2>
28
+          <div class="content" >
29
+            <span class="text">{{dialysisSolution.hemodialysis_machine_name}}</span>
30
+            <span class="iconfont">&#xe6f9;</span>
31
+          </div>
32
+        </div>
33
+        <div class="item">
34
+          <h2 class="name">灌流器</h2>
35
+          <div class="content" @click="showMenu(2)">
36
+            <span class="text">{{dialysisSolution.perfusion_apparatus_name}}</span>
37
+            <span class="iconfont">&#xe6f9;</span>
38
+          </div>
39
+        </div>
40
+
41
+        <div class="item">
42
+          <h2 class="name">血流量(ml/min)</h2>
43
+          <div class="content">
44
+            <input type="number" v-model="dialysisSolution.blood_flow_volume">
45
+            <!-- <span class="text">HD</span>   -->
46
+            <!-- <span class="iconfont">&#xe6f9;</span> -->
47
+          </div>
48
+        </div>
49
+        <div class="item">
50
+          <h2 class="name">脱水量(L)</h2>
51
+          <div class="content">
52
+            <input type="number" v-model="dialysisSolution.dewater">
53
+            <!-- <span class="text">HD</span>   -->
54
+            <!-- <span class="iconfont">&#xe6f9;</span> -->
55
+          </div>
56
+        </div>
57
+
58
+        <div class="line"></div>
59
+
60
+        <div class="item">
61
+          <h2 class="name">置换液(L)</h2>
62
+          <div class="content">
63
+            <input type="number" v-model="dialysisSolution.displace_liqui">
64
+            <!-- <span class="text">HD</span>   -->
65
+            <!-- <span class="iconfont">&#xe6f9;</span> -->
66
+          </div>
67
+        </div>
68
+        <div class="item">
69
+          <h2 class="name">置换方式</h2>
70
+          <div class="content" @click="showMenu(3)">
71
+            <span class="text">{{dialysisSolution.replacement_way_name}}</span>
72
+            <span class="iconfont">&#xe6f9;</span>
73
+          </div>
74
+        </div>
75
+
76
+        <div class="item">
77
+          <h2 class="name">抗疑剂</h2>
78
+          <div class="content" @click="showMenu(4)">
79
+            <span class="text">{{dialysisSolution.anticoagulant_name}}</span>
80
+            <span class="iconfont">&#xe6f9;</span>
81
+          </div>
82
+        </div>
83
+        <div class="item" v-show="anticoagulant.shouji != -1">
84
+          <h2 class="name">首剂({{anticoagulant.shouji_unit}})</h2>
85
+          <div class="content">
86
+          <input type="text"  v-model="dialysisSolution.anticoagulant_shouji" :disabled="anticoagulant.shouji==1?false:true">
87
+          </div>
88
+        </div>
89
+        <div class="item" v-show="anticoagulant.weichi != -1">
90
+          <h2 class="name">维持({{anticoagulant.weichi_unit}})</h2>
91
+          <div class="content">
92
+          <input type="text"  v-model="dialysisSolution.anticoagulant_weichi" :disabled="anticoagulant.weichi==1?false:true">
93
+          </div>
94
+        </div>
95
+        <div class="item"  v-show="anticoagulant.zongliang != -1">
96
+          <h2 class="name">总量({{anticoagulant.zongliang_unit}})</h2>
97
+          <div class="content">
98
+          <input type="text" v-model="dialysisSolution.anticoagulant_zongliang" :disabled="anticoagulant.zongliang==1?false:true" >
99
+          </div>
100
+        </div>
101
+        <div class="item"  v-show="anticoagulant.gaimingcheng != -1">
102
+          <h2 class="name">钙({{anticoagulant.gaimingcheng_unit}})</h2>
103
+          <div class="content">
104
+            <input type="text" v-model="dialysisSolution.anticoagulant_gaimingcheng" :disabled="anticoagulant.gaimingcheng==1?false:true" >
105
+          </div>
106
+        </div>
107
+        <div class="item"  v-show="anticoagulant.gaijiliang != -1">
108
+          <h2 class="name">钙剂量</h2>
109
+          <div class="content">
110
+            <input type="text" v-model="dialysisSolution.anticoagulant_gaijiliang" :disabled="anticoagulant.gaijiliang==1?false:true" >
111
+          </div>
112
+        </div>
113
+
114
+        <div class="line"></div>
115
+
116
+        <div class="item">
117
+          <h2 class="name">钾(mmol/L)</h2>
118
+          <div class="content">
119
+            <input type="number" v-model="dialysisSolution.kalium">
120
+            <!-- <span class="text">HD</span>   -->
121
+            <!-- <span class="iconfont">&#xe6f9;</span> -->
122
+          </div>
123
+        </div>
124
+        <div class="item">
125
+          <h2 class="name">钠(mmol/L):</h2>
126
+          <div class="content">
127
+            <input type="number" v-model="dialysisSolution.sodium">
128
+            <!-- <span class="text">HD</span>   -->
129
+            <!-- <span class="iconfont">&#xe6f9;</span> -->
130
+          </div>
131
+        </div>
132
+        <div class="item">
133
+          <h2 class="name">钙(mmol/L)</h2>
134
+          <div class="content">
135
+            <input type="number" v-model="dialysisSolution.calcium">
136
+            <!-- <span class="text">HD</span>   -->
137
+            <!-- <span class="iconfont">&#xe6f9;</span> -->
138
+          </div>
139
+        </div>
140
+        <div class="item">
141
+          <h2 class="name">碳酸氢盐(mmol/L)</h2>
142
+          <div class="content">
143
+            <input type="number" v-model="dialysisSolution.bicarbonate">
144
+            <!-- <span class="text">HD</span>   -->
145
+            <!-- <span class="iconfont">&#xe6f9;</span> -->
146
+          </div>
147
+        </div>
148
+        <div class="item">
149
+          <h2 class="name">葡萄糖(mmol/L)</h2>
150
+          <div class="content">
151
+            <input type="number" v-model="dialysisSolution.glucose">
152
+            <!-- <span class="text">HD</span>   -->
153
+            <!-- <span class="iconfont">&#xe6f9;</span> -->
154
+          </div>
155
+        </div>
156
+        <div class="item">
157
+          <h2 class="name">干体重(kg)</h2>
158
+          <div class="content">
159
+            <input type="number" v-model="dialysisSolution.dry_weight">
160
+            <!-- <span class="text">HD</span>   -->
161
+            <!-- <span class="iconfont">&#xe6f9;</span> -->
162
+          </div>
163
+        </div>
164
+
165
+        <div class="line"></div>
166
+
167
+        <div class="item">
168
+          <h2 class="name">透析液流量(ml/min)</h2>
169
+          <div class="content">
170
+            <input type="number" v-model="dialysisSolution.dialysate_flow">
171
+            <!-- <span class="text">HD</span>   -->
172
+            <!-- <span class="iconfont">&#xe6f9;</span> -->
173
+          </div>
174
+        </div>
175
+        <div class="item">
176
+          <h2 class="name">透析液温度(℃)</h2>
177
+          <div class="content">
178
+            <input type="number" v-model="dialysisSolution.dialysate_temperature">
179
+            <!-- <span class="text">HD</span>   -->
180
+            <!-- <span class="iconfont">&#xe6f9;</span> -->
181
+          </div>
182
+        </div>
183
+        <div class="item">
184
+          <h2 class="name">电导率(mS/cm)</h2>
185
+          <div class="content">
186
+            <input type="number" v-model="dialysisSolution.conductivity">
187
+            <!-- <span class="text">HD</span>   -->
188
+            <!-- <span class="iconfont">&#xe6f9;</span> -->
189
+          </div>
190
+        </div>
191
+
192
+        <div class="line"></div>
193
+
194
+        <div class="item">
195
+          <h2 class="name">备注</h2>
196
+          <div class="content">
197
+            <span class="text"></span>
198
+          </div>
199
+        </div>
200
+        <textarea class="textarea" placeholder="请输入内容" v-model="dialysisSolution.remark"></textarea>
201
+      </div>
202
+      <!--<div class="footer">-->
203
+        <!--处方医生:{{doctor}}-->
204
+      <!--</div>-->
205
+    </div>
206
+
207
+    <!-- <div class="Dialog" v-show="mode_show">
208
+        <div class="DialogTit">
209
+            <span class="iconfont" @click="paden_show=true;mode_show=false;">&#xe720; 返回</span>
210
+            <h1 class="name">模式</h1>
211
+            <span class="success"></span>
212
+        </div>
213
+        <div class="optionsBox">
214
+          <div class="list">
215
+            <ul>
216
+              <li @click="handleMode(item)" v-for="item in modeOptions" :key="item.id" value="item.id" :class="dialysisSolution.mode_id == item.id? 'tick':'' ">{{item.name}}</li>
217
+            </ul>
218
+          </div>
219
+        </div>
220
+    </div> -->
221
+    <long-dialog-menu title="模式" v-show="showObj.mode_show[0]" :show_index="0" :option_poro="modeList"  :data_prop="dialysisSolution" :show_prop="showObj" data_mode="mode" :index="dialysisSolution.mode_id"></long-dialog-menu>
222
+
223
+    <long-dialog-menu title="透析器" v-show="showObj.mode_show[1]" :show_index="1" :option_poro="dialyserList"  :data_prop="dialysisSolution" :show_prop="showObj" data_mode="hemodialysis_machine" :index="dialysisSolution.hemodialysis_machine"></long-dialog-menu>
224
+
225
+    <long-dialog-menu title="灌流器" v-show="showObj.mode_show[2]" :show_index="2" :option_poro="perfusion_apparatus"  :data_prop="dialysisSolution" :show_prop="showObj" data_mode="perfusion_apparatus" :index="dialysisSolution.perfusion_apparatus"></long-dialog-menu>
226
+
227
+    <long-dialog-menu title="置换方式" v-show="showObj.mode_show[3]" :show_index="3" :option_poro="replacementWays"  :data_prop="dialysisSolution"  :show_prop="showObj" data_mode="replacement_way" :index="dialysisSolution.replacement_way"></long-dialog-menu>
228
+
229
+    <long-dialog-menu title="搞凝剂" v-show="showObj.mode_show[4]" :show_index="4" :option_poro="anticoagulantsConfitList"  :data_prop="dialysisSolution"  :show_prop="showObj" data_mode="anticoagulant" :index="dialysisSolution.anticoagulant"></long-dialog-menu>
230
+  </div>
231
+</template>
232
+
233
+<script>
234
+import LongDialogMenu from "./subMenu/LongDialogMenu";
235
+import { createPatientDialysisSolution } from "@/api/patient";
236
+import { Toast } from "vant";
237
+
238
+export default {
239
+  name: "LongDialog",
240
+  components: {
241
+    LongDialogMenu
242
+  },
243
+  methods: {
244
+    handleDialyser(item) {
245
+      this.showObj.paden_show = true;
246
+    },
247
+    showModel() {
248
+      this.showObj.mode_show[0] = true;
249
+      this.showObj.paden_show = false;
250
+    },
251
+    showQi() {
252
+      this.showObj.mode_show[1] = true;
253
+      this.showObj.paden_show = false;
254
+    },
255
+    showMenu(index) {
256
+      this.showObj.mode_show[index] = true;
257
+      this.showObj.paden_show = false;
258
+    },
259
+
260
+    submitSolution() {
261
+      this.dialysisSolution.mode = this.dialysisSolution.mode_id;
262
+      createPatientDialysisSolution(
263
+        this.patient.id,
264
+        this.dialysisSolution
265
+      ).then(response => {
266
+        if (response.data.state == 0) {
267
+          Toast.fail(response.data.msg);
268
+          // this.$toast({message: response.data.msg});
269
+          return false;
270
+        } else {
271
+          Toast.success("创建成功");
272
+          // this.$toast({message: "创建成功"});
273
+          this.$emit("longSolution");
274
+          for (const key in response.data.data.solution) {
275
+            this.solution_prop[key] = response.data.data.solution[key];
276
+          }
277
+          // this.solution_prop = response.data.data.solution
278
+        }
279
+      });
280
+    }
281
+  },
282
+
283
+  props: {
284
+    patient_prop: {
285
+      type: Object
286
+    },
287
+    solution_prop: {
288
+      type: Object
289
+    },
290
+    machines_prop: {
291
+      type: Array,
292
+      default: function() {
293
+        return new Array();
294
+      }
295
+    }
296
+  },
297
+  data() {
298
+    return {
299
+      doctor: "",
300
+      showObj: {
301
+        mode_show: {
302
+          0: false,
303
+          1: false,
304
+          2: false,
305
+          3: false
306
+        },
307
+        paden_show: true
308
+      },
309
+      patient: {
310
+        id: 0
311
+      },
312
+      modeOptions: {},
313
+      modeList: [],
314
+      perfusion_apparatus: [],
315
+      anticoagulantsConfit: {},
316
+      anticoagulantsConfitList: [],
317
+      replacementWays: [],
318
+      dialyserList: [],
319
+
320
+      anticoagulant: {
321
+        id: 0,
322
+        name: "",
323
+        type: 1,
324
+        shouji: 1,
325
+        weichi: 1,
326
+        zongliang: 1,
327
+        gaimingcheng: -1,
328
+        gaijiliang: -1,
329
+        shouji_unit: "mg",
330
+        weichi_unit: "mg/h",
331
+        zongliang_unit: "mg",
332
+        gaimingcheng_unit: "",
333
+        gaijiliang_unit: ""
334
+      },
335
+      patient: {
336
+        id: 0
337
+      },
338
+      dialysisSolution: {
339
+        id: 0,
340
+        mode: "",
341
+        mode_id: "",
342
+        mode_name: "",
343
+        dialysis_duration: "",
344
+        hemodialysis_machine: "",
345
+        perfusion_apparatus: "",
346
+        perfusion_apparatus_name: "",
347
+        blood_flow_volume: "",
348
+        dewater: "",
349
+        displace_liqui: 0,
350
+        replacement_way: "",
351
+        replacement_way_name: "",
352
+        anticoagulant: "",
353
+        anticoagulant_name: "",
354
+        anticoagulant_shouji: "",
355
+        anticoagulant_weichi: "",
356
+        anticoagulant_zongliang: "",
357
+        anticoagulant_gaimingcheng: "",
358
+        anticoagulant_gaijiliang: "",
359
+        kalium: "",
360
+        sodium: "",
361
+        calcium: "",
362
+        bicarbonate: "",
363
+        glucose: "",
364
+        dry_weight: "",
365
+        dialysate_flow: "",
366
+        dialysate_temperature: "",
367
+        conductivity: "",
368
+        doctor: "",
369
+        remark: ""
370
+      }
371
+    };
372
+  },
373
+  watch: {
374
+    "dialysisSolution.anticoagulant": function() {
375
+      var thismode = parseInt(this.dialysisSolution.anticoagulant);
376
+      if (isNaN(thismode) || thismode <= 0) {
377
+        return false;
378
+      }
379
+      if (
380
+        typeof this.anticoagulantsConfit[thismode] == "undefined" ||
381
+        this.anticoagulantsConfit[thismode] == null
382
+      ) {
383
+        return false;
384
+      }
385
+      this.anticoagulant = this.anticoagulantsConfit[thismode];
386
+      this.dialysisSolution.anticoagulant_name = this.anticoagulantsConfit[thismode].name;
387
+    },
388
+    "dialysisSolution.hemodialysis_machine":function(){
389
+      var machine = parseInt(this.dialysisSolution.hemodialysis_machine);
390
+      if (isNaN(machine) || machine <= 0) {
391
+        return;
392
+      }
393
+      for (let index = 0; index < this.dialyserList.length; index++) {
394
+        if (machine == this.dialyserList[index].id) {
395
+          this.dialysisSolution.hemodialysis_machine_name = this.dialyserList[index].name;
396
+          break;
397
+        }
398
+      }
399
+    },
400
+    "dialysisSolution.perfusion_apparatus": function(){
401
+      var apparatus = parseInt(this.dialysisSolution.perfusion_apparatus);
402
+      if (isNaN(apparatus) || apparatus<=0) {
403
+        return false;
404
+      }
405
+      for (let index = 0; index < this.perfusion_apparatus.length; index++) {
406
+        if (apparatus == this.perfusion_apparatus[index].id) {
407
+          this.dialysisSolution.perfusion_apparatus_name = this.perfusion_apparatus[index].name;
408
+          break;
409
+        }
410
+      }
411
+    },
412
+    "dialysisSolution.replacement_way": function(){
413
+      var way = parseInt(this.dialysisSolution.replacement_way);
414
+      if (isNaN(way) || way<=0) {
415
+        return false;
416
+      }
417
+      for (let index = 0; index < this.replacementWays.length; index++) {
418
+        if (way == this.replacementWays[index].id) {
419
+          this.dialysisSolution.replacement_way_name = this.replacementWays[index].name;
420
+          break;
421
+        }
422
+      }
423
+    },
424
+  },
425
+  // computed:{
426
+  //   dialysisSolution:function(){
427
+  //     console.log("this.solution_prop",this.solution_prop);
428
+  //     console.log("this.solution_prop",this.solution_prop);
429
+  //     var solution = {};
430
+  //     if (this.solution_prop != null && this.solution_prop.id != '') {
431
+  //       for (const key in this.solution_prop) {
432
+  //         solution[key] = this.solution_prop[key];
433
+  //       }
434
+  //       return solution;
435
+  //     }else {
436
+  //       return {};
437
+  //     }
438
+  //   }
439
+
440
+
441
+  // },
442
+  created() {
443
+    this.doctor = this.$store.getters.user.user.user_name;
444
+    this.modeOptions = this.$store.getters.treatment_mode;
445
+    this.perfusion_apparatus = this.$store.getters.perfusion_apparatus;
446
+    this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
447
+    this.replacementWays = this.$store.getters.replacement_ways;
448
+
449
+    for (var modeOne in this.modeOptions) {
450
+      this.modeList.push(this.modeOptions[modeOne]);
451
+    }
452
+    for (var one in this.anticoagulantsConfit) {
453
+      this.anticoagulantsConfitList.push(this.anticoagulantsConfit[one]);
454
+    }
455
+
456
+    this.patient = this.patient_prop;
457
+
458
+    // console.log("this.solution_prop",this.solution_prop);
459
+    if (this.solution_prop != null && this.solution_prop.id != '') {
460
+      for (const key in this.solution_prop) {
461
+        this.dialysisSolution[key] = this.solution_prop[key];
462
+      }
463
+    }
464
+
465
+
466
+    this.dialyserList = this.machines_prop;
467
+  },
468
+  // data() {
469
+  //   return {
470
+  //     show_two_menu: false
471
+  //   };
472
+  // },
473
+  // methods: {
474
+  //   selectDialysisMode: function() {
475
+  //     var t = this;
476
+  //     this.$refs.two_menu.showSingleSelect(
477
+  //       [{ id: 1, name: "12e" }, { id: 2, name: "asdsadas" }],
478
+  //       0,
479
+  //       "透析模式",
480
+  //       "name",
481
+  //       "id",
482
+  //       function() {
483
+  //         t.show_two_menu = false;
484
+  //       }
485
+  //     );
486
+  //     this.show_two_menu = true;
487
+  //   }
488
+  // }
489
+};
490
+</script>
491
+
492
+<style style="stylesheet/scss" lang="scss" scoped>
493
+.textarea {
494
+  width: 100%;
495
+  height: 2.4rem;
496
+  line-height: 0.6rem;
497
+  color: $pgh-color;
498
+  font-size: 0.28rem;
499
+  padding-left: 0.36rem;
500
+  border: none;
501
+}
502
+.optionsBox {
503
+  background: #fff;
504
+  max-height: 10.6rem;
505
+  min-height: 5rem;
506
+  overflow-y: scroll;
507
+  ul {
508
+    li {
509
+      height: 1rem;
510
+      line-height: 1rem;
511
+      border-bottom: 1px #e5e5e5 solid;
512
+      padding: 0 0.38rem;
513
+    }
514
+    .tick {
515
+      position: relative;
516
+      &::before {
517
+        content: "";
518
+        display: inline-block;
519
+        border: 2px solid $main-color;
520
+        border-top-width: 0;
521
+        border-right-width: 0;
522
+        width: 0.3rem;
523
+        height: 0.15rem;
524
+        -webkit-transform: rotate(-50deg);
525
+        position: absolute;
526
+        top: 0.38rem;
527
+        right: 0.44rem;
528
+      }
529
+    }
530
+  }
531
+}
532
+.CheckBox {
533
+  background: #fff;
534
+  max-height: 10.6rem;
535
+  min-height: 5rem;
536
+  overflow-y: scroll;
537
+  ul {
538
+    li {
539
+      line-height: 1rem;
540
+    }
541
+  }
542
+}
543
+</style>
544
+

+ 0 - 0
src/pages/main/dialog/MonitDialog.vue View File


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