ソースを参照

修复手术情况表格无法修改的问题

xiezhiming 8 ヶ月 前
コミット
6160d7a6a2
3 ファイル変更80 行追加77 行削除
  1. 10 8
      src/js/qcScore.js
  2. 2 1
      webpack.config.js
  3. 68 68
      webpack.configCopy.jsx

+ 10 - 8
src/js/qcScore.js

@@ -48,8 +48,8 @@ $(function () {
   let global_flaws = [];  //缺陷条目列表缓存
   let global_selectedFlaw = {};    //新增时选中的条目信息
   let isPlacefile = getCookie('isPlacefile')
-  let global_diagList
-  let global_operaList
+  let global_diagList = []
+  let global_operaList = []
 
   getAllModules();
   let showCheckBtns = global_code === "YH-ZKHC-HCRWLB";
@@ -1195,7 +1195,7 @@ $(function () {
   /**保存病案首页数据更新*/
   function saveOrUpdate() {
     /**病案首页编号*/
-    const homePageId = $('.patient-info span').eq(0).text().match(/\d+/)[0]
+    const homePageId = $(`.content-item[code=${global_activeTab}] .title`).text().match(/\d+/)[0]
 
     /**医院ID*/
     const hospitalId = getUrlArgObject("hid")
@@ -1505,11 +1505,11 @@ $(function () {
     /** 放射与病理 */
     const isRadiatePathology = results_anchor2304["放射与病理"] || "";
 
-    let matchs_nchor2305 = $('#anchor2305 p').text().match(/\d+/g)
+    let matchs_anchor2305 = $('#anchor2305 p').text().match(/\d+/g)
     /** 病人抢救次数 */
-    const rescueNum = matchs_nchor2305 ? matchs_nchor2305[0] : "0";
+    const rescueNum = matchs_anchor2305 ? matchs_anchor2305[0] : "0";
     /** 病人抢救成功次数 */
-    const rescueSuccessNum = matchs_nchor2305 ? matchs_nchor2305[1] : "0";
+    const rescueSuccessNum = matchs_anchor2305 ? matchs_anchor2305[1] : "0";
 
     /** 是否为自动出院 */
     const isAutoLeavehospital = '';
@@ -1772,6 +1772,7 @@ $(function () {
           "firstAssistantId": "",
           "healingLevel": "",
           "homePageId": "",
+          "behospitalCode": global_id,
           "hospitalId": global_hid,
           "operationCode": "",
           "operationDate": "",
@@ -1780,7 +1781,8 @@ $(function () {
           "operationName": "",
           "operationOrderNo": "",
           "secondAssistantId": "",
-          "shamOperationName": ""
+          "shamOperationName": "",
+          "anaesthesiaDoctor": ""
         }
         operationObj.operationOrderNo = global_operaList[i].手术序号
         // operationObj.homePageId = $('.patient-info span').eq(0).text().match(/\d+/)[0]
@@ -1795,7 +1797,7 @@ $(function () {
         operationObj.cutLevel = $(this).find('td').eq(7).text()
         operationObj.healingLevel = $(this).find('td').eq(8).text()
         operationObj.anaesthesiaName = $(this).find('td').eq(9).text()
-        operationObj.anaesthesiaName = $(this).find('td').eq(10).text()
+        operationObj.anaesthesiaDoctor = $(this).find('td').eq(10).text()
         operationsArry.push(operationObj)
         i = i + 1
       }

+ 2 - 1
webpack.config.js

@@ -7,7 +7,8 @@ const CopyWebpackPlugin = require('copy-webpack-plugin');
 const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
 const webpack = require('webpack');
 const glob = require('glob');
-const proxyHost = "http://173.18.12.195:5858";
+// const proxyHost = "http://173.18.12.195:5858";
+const proxyHost = "http://173.18.12.195:5656";
 // const proxyHost = "http://192.168.2.241:5858";
 // const proxyHost = "http://192.168.4.222:5858";
 // const proxyHost = "http://192.168.3.117:5858";//铁钢

+ 68 - 68
webpack.configCopy.jsx

@@ -7,23 +7,23 @@ const CopyWebpackPlugin = require('copy-webpack-plugin');
 const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
 const webpack = require('webpack');
 // const proxyHost = "http://192.168.2.236:5858";
-const proxyHost = "http://173.18.12.195:5858";
-// const proxyHost = "http://192.168.4.222:5858";
+// const proxyHost = "http://173.18.12.195:5858";
+const proxyHost = "http://192.168.4.222:5858";
 // const proxyHost = "http://192.168.3.117:5858";//铁钢
 // const proxyHost = "http://192.168.3.113:5858";//王峰
 module.exports = {
   entry: {
     index: path.resolve(__dirname, 'src/js', 'index.js'),
-    qcScore:path.resolve(__dirname, 'src/js', 'qcScore.js'),
-    login:path.resolve(__dirname, 'src/js', 'login.js'),
-    console:path.resolve(__dirname, 'src/js', 'console.js'),
-    deptConsole:path.resolve(__dirname, 'src/js', 'deptConsole.js'),
+    qcScore: path.resolve(__dirname, 'src/js', 'qcScore.js'),
+    login: path.resolve(__dirname, 'src/js', 'login.js'),
+    console: path.resolve(__dirname, 'src/js', 'console.js'),
+    deptConsole: path.resolve(__dirname, 'src/js', 'deptConsole.js'),
     moduleManager: path.resolve(__dirname, 'src/js', 'moduleManager.js'),
     itemManager: path.resolve(__dirname, 'src/js', 'itemManager.js'),
     qcList: path.resolve(__dirname, 'src/js', 'qcList.js'),
-    qcListDocteam:path.resolve(__dirname, 'src/js', 'qcListDocteam.js'),
-    qcListDept:path.resolve(__dirname, 'src/js', 'qcListDept.js'),
-    qcListPerson:path.resolve(__dirname, 'src/js', 'qcListPerson.js'),
+    qcListDocteam: path.resolve(__dirname, 'src/js', 'qcListDocteam.js'),
+    qcListDept: path.resolve(__dirname, 'src/js', 'qcListDept.js'),
+    qcListPerson: path.resolve(__dirname, 'src/js', 'qcListPerson.js'),
     userManager: path.resolve(__dirname, 'src/js', 'userManager.js'),
     roleManager: path.resolve(__dirname, 'src/js', 'roleManager.js'),
     tiaomu: path.resolve(__dirname, 'src/js', 'tiaomu.js'),
@@ -45,30 +45,30 @@ module.exports = {
     tiaomuControl: path.resolve(__dirname, 'src/js', 'tiaomuControl.js'),
     assertType: path.resolve(__dirname, 'src/js', 'assertType.js'),
     assertTypeDetail: path.resolve(__dirname, 'src/js', 'assertTypeDetail.js'),
-    singleVeto:path.resolve(__dirname, 'src/js', 'singleVeto.js'),
-    itemDefectDetail:path.resolve(__dirname, 'src/js', 'itemDefectDetail.js'),
-    keyItemFlawControl:path.resolve(__dirname, 'src/js', 'keyItemFlawControl.js'),
+    singleVeto: path.resolve(__dirname, 'src/js', 'singleVeto.js'),
+    itemDefectDetail: path.resolve(__dirname, 'src/js', 'itemDefectDetail.js'),
+    keyItemFlawControl: path.resolve(__dirname, 'src/js', 'keyItemFlawControl.js'),
     qualifiedPhysician: path.resolve(__dirname, 'src/js', 'qualifiedPhysician.js'),
     deptQualifiedPhysician: path.resolve(__dirname, 'src/js', 'deptQualifiedPhysician.js'),
-    qcListCopy:path.resolve(__dirname, 'src/js', 'qcListCopy.js'),
+    qcListCopy: path.resolve(__dirname, 'src/js', 'qcListCopy.js'),
     qcListCopyUnqualified: path.resolve(__dirname, 'src/js', 'qcListCopyUnqualified.js'),
-    qcListOutHospital:path.resolve(__dirname, 'src/js', 'qcListOutHospital.js'),
-    checkControl:path.resolve(__dirname, 'src/js', 'checkControl.js'),
-    advice:path.resolve(__dirname, 'src/js', 'advice.js'),
-    uncorrectedCasesStatistics:path.resolve(__dirname, 'src/js', 'uncorrectedCasesStatistics.js'),
-    uncorrectedCopy:path.resolve(__dirname, 'src/js', 'uncorrectedCopy.js'),
-    uccDetail:path.resolve(__dirname, 'src/js', 'uccDetail.js'),
-    readmission:path.resolve(__dirname, 'src/js', 'readmission.js'),
-    pacs:path.resolve(__dirname, 'src/js', 'pacs.js'),
-    pacsDetail:path.resolve(__dirname, 'src/js', 'pacsDetail.js'),
-    assist:path.resolve(__dirname, 'src/js', 'assist.js'),
-    error:path.resolve(__dirname, 'src/js', 'error.js'),
-    nursing:path.resolve(__dirname, 'src/js', 'nursing.js'),
-    other:path.resolve(__dirname, 'src/js', 'other.js'),
-    mentCenter:path.resolve(__dirname, 'src/js', 'mentCenter.js'),
-    test:path.resolve(__dirname, 'src/js/dept', 'test.js'),
-    partDetailControlDept:path.resolve(__dirname, 'src/js/dept', 'partDetailControlDept.js'),
-    messageNoti:path.resolve(__dirname, 'src/js/dept', 'messageNoti.js'),
+    qcListOutHospital: path.resolve(__dirname, 'src/js', 'qcListOutHospital.js'),
+    checkControl: path.resolve(__dirname, 'src/js', 'checkControl.js'),
+    advice: path.resolve(__dirname, 'src/js', 'advice.js'),
+    uncorrectedCasesStatistics: path.resolve(__dirname, 'src/js', 'uncorrectedCasesStatistics.js'),
+    uncorrectedCopy: path.resolve(__dirname, 'src/js', 'uncorrectedCopy.js'),
+    uccDetail: path.resolve(__dirname, 'src/js', 'uccDetail.js'),
+    readmission: path.resolve(__dirname, 'src/js', 'readmission.js'),
+    pacs: path.resolve(__dirname, 'src/js', 'pacs.js'),
+    pacsDetail: path.resolve(__dirname, 'src/js', 'pacsDetail.js'),
+    assist: path.resolve(__dirname, 'src/js', 'assist.js'),
+    error: path.resolve(__dirname, 'src/js', 'error.js'),
+    nursing: path.resolve(__dirname, 'src/js', 'nursing.js'),
+    other: path.resolve(__dirname, 'src/js', 'other.js'),
+    mentCenter: path.resolve(__dirname, 'src/js', 'mentCenter.js'),
+    test: path.resolve(__dirname, 'src/js/dept', 'test.js'),
+    partDetailControlDept: path.resolve(__dirname, 'src/js/dept', 'partDetailControlDept.js'),
+    messageNoti: path.resolve(__dirname, 'src/js/dept', 'messageNoti.js'),
     vendor: 'lodash',  //多个页面所需的公共库文件,防止重复打包带入
   },
   output: {
@@ -85,7 +85,7 @@ module.exports = {
       title: 'test',
       template: path.resolve(__dirname, 'src/html/dept', 'test.html'),
       filename: 'test.html',
-      chunks: ['test', 'vendor', 'common','src/resouce/dot.js'],
+      chunks: ['test', 'vendor', 'common', 'src/resouce/dot.js'],
       hash: true, //防止缓存
       inject: true,
       minify: {
@@ -98,7 +98,7 @@ module.exports = {
       title: 'index',
       template: path.resolve(__dirname, 'src/html', 'index.html'),
       filename: 'index.html',
-      chunks: ['index', 'vendor', 'common','scrollBar','src/resouce/dot.js'],
+      chunks: ['index', 'vendor', 'common', 'scrollBar', 'src/resouce/dot.js'],
       hash: true, //防止缓存
       inject: true,
       minify: {
@@ -133,12 +133,12 @@ module.exports = {
         collapseWhitespace: true //删除空白符与换行符
       }
     }),
-    
+
     new HtmlWebpackPlugin({
       title: 'nursing',
       template: path.resolve(__dirname, 'src/html', 'nursing.html'),
       filename: 'nursing.html',
-      chunks: ['nursing', 'vendor', 'common','scrollBar'],
+      chunks: ['nursing', 'vendor', 'common', 'scrollBar'],
       hash: true, //防止缓存
       inject: true,
       minify: {
@@ -151,7 +151,7 @@ module.exports = {
       title: 'other',
       template: path.resolve(__dirname, 'src/html', 'other.html'),
       filename: 'other.html',
-      chunks: ['other', 'vendor', 'common','scrollBar'],
+      chunks: ['other', 'vendor', 'common', 'scrollBar'],
       hash: true, //防止缓存
       inject: true,
       minify: {
@@ -164,7 +164,7 @@ module.exports = {
       title: 'mentCenter',
       template: path.resolve(__dirname, 'src/html', 'mentCenter.html'),
       filename: 'mentCenter.html',
-      chunks: ['mentCenter', 'vendor', 'common','scrollBar'],
+      chunks: ['mentCenter', 'vendor', 'common', 'scrollBar'],
       hash: true, //防止缓存
       inject: true,
       minify: {
@@ -190,7 +190,7 @@ module.exports = {
       title: 'console.html',
       template: path.resolve(__dirname, 'src/html', 'console.html'),
       filename: 'console.html',
-      chunks: ['console', 'vendor', 'common','scrollBar'],
+      chunks: ['console', 'vendor', 'common', 'scrollBar'],
       hash: true, //防止缓存
       inject: true,
       minify: {
@@ -203,7 +203,7 @@ module.exports = {
       title: 'uncorrectedCopy.html',
       template: path.resolve(__dirname, 'src/html', 'uncorrectedCopy.html'),
       filename: 'uncorrectedCopy.html',
-      chunks: ['uncorrectedCopy', 'vendor', 'common','scrollBar'],
+      chunks: ['uncorrectedCopy', 'vendor', 'common', 'scrollBar'],
       hash: true, //防止缓存
       inject: true,
       minify: {
@@ -216,7 +216,7 @@ module.exports = {
       title: 'pacs.html',
       template: path.resolve(__dirname, 'src/html', 'pacs.html'),
       filename: 'pacs.html',
-      chunks: ['pacs', 'vendor', 'common','scrollBar'],
+      chunks: ['pacs', 'vendor', 'common', 'scrollBar'],
       hash: true, //防止缓存
       inject: true,
       minify: {
@@ -229,7 +229,7 @@ module.exports = {
       title: 'pacsDetail.html',
       template: path.resolve(__dirname, 'src/html', 'pacsDetail.html'),
       filename: 'pacsDetail.html',
-      chunks: ['pacsDetail', 'vendor', 'common','scrollBar'],
+      chunks: ['pacsDetail', 'vendor', 'common', 'scrollBar'],
       hash: true, //防止缓存
       inject: true,
       minify: {
@@ -242,7 +242,7 @@ module.exports = {
       title: 'assist.html',
       template: path.resolve(__dirname, 'src/html', 'assist.html'),
       filename: 'assist.html',
-      chunks: ['assist', 'vendor', 'common','scrollBar'],
+      chunks: ['assist', 'vendor', 'common', 'scrollBar'],
       hash: true, //防止缓存
       inject: true,
       minify: {
@@ -671,7 +671,7 @@ module.exports = {
       title: 'qcScore.html',
       template: path.resolve(__dirname, 'src/html', 'qcScore.html'),
       filename: 'qcScore.html',
-      chunks: [ 'qcScore','vendor', 'common'],
+      chunks: ['qcScore', 'vendor', 'common'],
       hash: true, //防止缓存
       inject: true,
       minify: {
@@ -825,9 +825,9 @@ module.exports = {
     }),
     new CopyWebpackPlugin([
       {
-        from:'src/resource',
-        to:path.resolve(__dirname,'dist','resource'),
-        flatten:true,   //false会拷贝原始文件夹路径
+        from: 'src/resource',
+        to: path.resolve(__dirname, 'dist', 'resource'),
+        flatten: true,   //false会拷贝原始文件夹路径
       }
     ]),
     new MiniCssExtractPlugin({
@@ -851,7 +851,7 @@ module.exports = {
             except: ['e']
           },
           output: {
-              beautify: true
+            beautify: true
           },
           sourceMap: false
         }
@@ -870,14 +870,14 @@ module.exports = {
       }
     }
   },
-      
+
   module: {
     noParse: /WdatePicker/,
     rules: [
       {
-          test: /.js$/,
-          enforce: 'post', 
-          loader: 'es3ify-loader'
+        test: /.js$/,
+        enforce: 'post',
+        loader: 'es3ify-loader'
       },
       {
         test: /\.m?js$/,
@@ -885,41 +885,41 @@ module.exports = {
         use: {
           loader: 'babel-loader',
           options: {
-            presets:['@babel/preset-env']
+            presets: ['@babel/preset-env']
           }
         }
       },
       {
         test: /\.css$/,
         use: [{
-            loader: MiniCssExtractPlugin.loader
-          },
+          loader: MiniCssExtractPlugin.loader
+        },
           'css-loader'
         ]
       },
       {
         test: /\.less$/,
         use: [{
-            loader: MiniCssExtractPlugin.loader
-          },
+          loader: MiniCssExtractPlugin.loader
+        },
           'css-loader', 'less-loader'
         ]
       },
       {
-        test:/\.(png|gif|jpg|jpeg|svg|eot|ttf|woff|woff2)$/,
-        use:[{
-          loader:'url-loader',
-          options:{
-            limit:10240,
-            esModule:false,
-            name:'[name]_[hash:6].[ext]',
-            outputPath:'images/'
+        test: /\.(png|gif|jpg|jpeg|svg|eot|ttf|woff|woff2)$/,
+        use: [{
+          loader: 'url-loader',
+          options: {
+            limit: 10240,
+            esModule: false,
+            name: '[name]_[hash:6].[ext]',
+            outputPath: 'images/'
           }
         }],
-        exclude:/node_modules/
-      },{
-        test:/.html$/,
-        use:'html-withimg-loader'
+        exclude: /node_modules/
+      }, {
+        test: /.html$/,
+        use: 'html-withimg-loader'
       }
     ]
   },
@@ -931,6 +931,6 @@ module.exports = {
       '/': proxyHost
     },
     hot: true,
-    openPage:'login.html'
+    openPage: 'login.html'
   }
 }