浏览代码

Merge branch 'superman' of http://git.shengws.com/zhangbj/xt_vue into superman

庄逸洲 6 年前
父节点
当前提交
d0959c2f33

+ 1 - 1
src/views/layout/Layout.vue 查看文件

@@ -2,7 +2,7 @@
2 2
   <div class="app-wrapper" :class="classObj">
3 3
     <div v-if="device==='mobile'&&sidebar.opened" class="drawer-bg" @click="handleClickOutside"></div>
4 4
       <navbar></navbar>
5
-    
5
+
6 6
     <div class="Header-container">
7 7
     <sidebar class="sidebar-container"></sidebar>
8 8
     <div class="main-container">

+ 2 - 4
src/views/layout/components/Navbar.vue 查看文件

@@ -5,10 +5,8 @@
5 5
     </div>
6 6
     <el-menu class="navbar" mode="horizontal">
7 7
       <div>
8
-        <el-dropdown trigger="click" style="color:#fff;">
9
-        <span class="el-dropdown-link">{{ this.$store.getters.xt_user.org.org_name }}
8
+        <span> {{this.$store.getters.xt_user.org.org_name}}
10 9
         </span>
11
-        </el-dropdown>
12 10
       </div>
13 11
       <div class="system-nav">
14 12
         <div class="system-nav-menu active">
@@ -116,7 +114,7 @@
116 114
       }
117 115
 
118 116
     },
119
-    create() {
117
+    created() {
120 118
       var xtuser = this.$store.getters.xt_user
121 119
       this.orgname = xtuser.org.org_name
122 120
       console.log(this.orgname)

+ 7 - 5
src/xt_pages/stock/Dialog/stockInDialog.vue 查看文件

@@ -85,19 +85,19 @@
85 85
         multipleSelection: [],
86 86
         currentGoodTypeId: 0,
87 87
         isClose: false,
88
-        visibility: false,
88
+        visibility: false
89 89
       }
90 90
     },
91 91
     props: {
92 92
       propForm: {
93 93
         type: Object
94
-      },
94
+      }
95 95
     },
96 96
     methods: {
97
-      hide:function(){
97
+      hide: function() {
98 98
         this.visibility = false
99 99
       },
100
-      show:function(){
100
+      show: function() {
101 101
         this.visibility = true
102 102
       },
103 103
       goodTypeTableChange: function(currentRow, oldCurrentRow) {
@@ -124,12 +124,14 @@
124 124
         this.goodInfoTableData = []
125 125
         this.$emit('dialog-cancle', this.getValue())
126 126
         this.$refs.multipleTable.clearSelection()
127
+        this.$refs.templatetable.setCurrentRow(null)
127 128
       },
128 129
       comfirm: function(formName) {
129 130
         this.goodInfo = []
130 131
         this.goodInfoTableData = []
131 132
         this.$emit('dialog-comfirm', this.getValue())
132 133
         this.$refs.multipleTable.clearSelection()
134
+        this.$refs.templatetable.setCurrentRow(null)
133 135
       },
134 136
       getValue: function() {
135 137
         const obj = {
@@ -182,7 +184,7 @@
182 184
         this.multipleSelection = val
183 185
       }, changeAllGoodInfoTableData: function(val) {
184 186
         this.multipleSelection = val
185
-      },clickRow:function(row) {
187
+      }, clickRow: function(row) {
186 188
         this.$refs.multipleTable.toggleRowSelection(row)
187 189
       }
188 190
     }

+ 12 - 11
src/xt_pages/user/components/PatientForm.vue 查看文件

@@ -87,14 +87,14 @@
87 87
                   <el-input v-model="form.homeTelephone" maxlength="20"></el-input>
88 88
                 </el-form-item>
89 89
               </el-col>
90
-              <el-col :span="8" :style="isEdit?'width:360px':''" style="height:58px;" >
90
+              <el-col :span="8" :style="isEdit?'width:360px':''"  >
91 91
                 <el-form-item label="患者来源 : " class="is-required" prop="source" >
92 92
                   <el-radio-group v-model="form.source">
93 93
                     <el-radio v-for="item in sourceOptions" :key="item.value" :label="item.value" :value="item.value" >{{item.label}}</el-radio>
94 94
                   </el-radio-group>
95 95
                 </el-form-item>
96 96
               </el-col>
97
-              <el-col :span="8" :style="isEdit?'width:360px':''" style="height:58px;">
97
+              <el-col :span="8" :style="isEdit?'width:360px':''" >
98 98
                 <el-form-item label="治疗状态(转归) : " class="is-required" prop="lapseto" >
99 99
                   <el-radio-group v-model="form.lapseto">
100 100
                     <el-radio v-for="item in lapsetoOptions" :key="item.value" :label="item.value" :value="item.value" >{{item.label}}</el-radio>
@@ -113,7 +113,7 @@
113 113
                 </el-form-item>
114 114
               </el-col>
115 115
 
116
-              <el-col :span="8" >
116
+              <el-col :span="8" :style="isEdit?'width:360px':''" >
117 117
                 <el-form-item label="家庭住址 : " prop="homeAddress">
118 118
                   <el-input v-model="form.homeAddress"></el-input>
119 119
                 </el-form-item>
@@ -185,12 +185,12 @@
185 185
                     </el-select>
186 186
                   </el-form-item>
187 187
                 </el-col>
188
-                <el-col :span="8" >
188
+                <el-col :span="8" :style="isEdit?'width:360px':''" >
189 189
                   <el-form-item label="工作单位 : " prop="work">
190 190
                     <el-input v-model="form.work"></el-input>
191 191
                   </el-form-item>
192 192
                 </el-col>
193
-                <el-col :span="8" >
193
+                <el-col :span="8" :style="isEdit?'width:360px':''">
194 194
                   <el-form-item label="单位地址 : " prop="unit_address">
195 195
                     <el-input v-model="form.unit_address"></el-input>
196 196
                   </el-form-item>
@@ -241,17 +241,17 @@
241 241
 
242 242
         <div class="dataTitle">治疗信息</div>
243 243
         <el-row :span="24">
244
-          <el-col :span="8">
244
+          <el-col :span="12">
245 245
             <el-form-item label="主诉 : " prop="patient_complains">
246 246
               <el-input type="textarea" :rows="3" v-model="form.patient_complains" resize="none" placeholder=""></el-input>
247 247
             </el-form-item>
248 248
           </el-col>
249
-          <el-col :span="8">
249
+          <el-col :span="12">
250 250
             <el-form-item label="现病史 : " prop="present_history">
251 251
               <el-input type="textarea" :rows="3" v-model="form.present_history" resize="none" placeholder=""></el-input>
252 252
             </el-form-item>
253 253
           </el-col>
254
-          <el-col :span="8">
254
+          <el-col :span="12">
255 255
             <el-form-item label="既往史 : " prop="past_history">
256 256
               <el-input type="textarea" :rows="3" v-model="form.past_history" resize="none" placeholder=""></el-input>
257 257
             </el-form-item>
@@ -498,9 +498,9 @@
498 498
       }
499 499
 
500 500
       return {
501
-        crumbs:[
502
-          {path:false, name:'病人管理'},
503
-          {path:false, name:'新增病人'},
501
+        crumbs: [
502
+          { path: false, name: '病人管理' },
503
+          { path: false, name: '新增病人' }
504 504
         ],
505 505
         generic_info_fold: true,
506 506
         treat_info_fold: true,
@@ -1010,6 +1010,7 @@
1010 1010
   .el-form{
1011 1011
   .el-col-6,.el-col-8{
1012 1012
     width: 430px;
1013
+    height: 59px!important;
1013 1014
   }
1014 1015
   .el-form-item {
1015 1016
   .el-select {

+ 66 - 67
src/xt_pages/workforce/components/setup_template_dialog.vue 查看文件

@@ -18,81 +18,80 @@
18 18
 </template>
19 19
 
20 20
 <script>
21
-import { setTemplateMode } from "@/api/schedule_template/patient"
21
+import { setTemplateMode } from '@/api/schedule_template/patient'
22 22
 
23 23
 export default {
24
-    name: "SetUpTemplateDialog",
25
-    data() {
26
-        return {
27
-            visible: false,
28
-            form: {
29
-                mode: 0,
30
-            },
31
-        }
24
+  name: 'SetUpTemplateDialog',
25
+  data() {
26
+    return {
27
+      visible: false,
28
+      form: {
29
+        mode: 0
30
+      }
31
+    }
32
+  },
33
+  props: {
34
+    template_mode: {
35
+      type: Object
32 36
     },
33
-    props: {
34
-        template_mode: {
35
-            type: Object,
36
-        },
37
-        origin_mode: {
38
-            type: Number,
39
-        }
37
+    origin_mode: {
38
+      type: Number
39
+    }
40
+  },
41
+  watch: {
42
+    'template_mode.mode': function() {
43
+      this.form.mode = this.template_mode.mode
44
+    }
45
+  },
46
+  methods: {
47
+    _close: function(done) {
48
+      this.clear()
49
+      done()
40 50
     },
41
-    watch: {
42
-        "template_mode.mode": function() {
43
-            this.form.mode = this.template_mode.mode
44
-        }
51
+    clear: function() {
52
+
53
+    },
54
+    show() {
55
+      this.clear()
56
+      this.visible = true
45 57
     },
46
-    methods: {
47
-        _close: function(done) {
48
-            this.clear()
49
-            done()
50
-        },
51
-        clear: function() {
52
-         
53
-        },
54
-        show() {
55
-            this.clear()
56
-            this.visible = true
57
-        },
58
-        hide() {
59
-            this.clear()
60
-            this.visible = false
61
-        },
62
-        saveAction: function() {
63
-            var msg = ""
64
-            if (this.origin_mode == 0) { // 0 -> 1 或 0 -> 2 直接清除下两周的排班
65
-                msg = "开启模板将清除下两周已设置的排班!是否继续开启?"
66
-            } else if (this.form.mode == 0) { // 1 -> 0 或 2 -> 0 则不处理排班,但清除所有模板item
58
+    hide() {
59
+      this.clear()
60
+      this.visible = false
61
+    },
62
+    saveAction: function() {
63
+      var msg = ''
64
+      if (this.origin_mode == 0) { // 0 -> 1 或 0 -> 2 直接清除下两周的排班
65
+        msg = '开启模板将清除下两周已设置的排班!是否继续开启?'
66
+      } else if (this.form.mode == 0) { // 1 -> 0 或 2 -> 0 则不处理排班,但清除所有模板item
67 67
 
68
-            } else if (this.origin_mode == 1 && this.form.mode == 2) { // 1 -> 2 清除第二周排班
69
-                msg = "开启双周模板将清除下第二周已设置的排班!是否继续开启?"
70
-            } else if (this.origin_mode == 2 && this.form.mode == 1) { // 2 -> 1 清除第二周模板item,清除第二周排班,将第一周的排班重复到第二周
71
-                msg = "双周模板调整为单周模板时,下第二周排班将被清除,并用单周模板生成下第二周的排班!是否继续调整?"
72
-            }
73
-            if (msg.length == 0) {
74
-                this.submit()
75
-            } else {
76
-                this.$confirm(msg, '提示', {confirmButtonText: '确 定', cancelButtonText: '取 消', type: 'warning'})
77
-                .then(() => {
78
-                    this.submit()
79
-                })
80
-            }
81
-        },
82
-        submit: function() {
83
-            setTemplateMode(this.form.mode).then(rs => {
84
-                var resp = rs.data
85
-                if (resp.state == 1) {
86
-                    this.template_mode.mode = this.form.mode
87
-                    this.hide()
88
-                    this.$emit("chenge_mode", this.form.mode)
89
-                    
90
-                } else {
91
-                    this.$message.error(resp.msg)
92
-                }
93
-            })
68
+      } else if (this.origin_mode == 1 && this.form.mode == 2) { // 1 -> 2 清除第二周排班
69
+        msg = '开启双周模板将清除下第二周已设置的排班!是否继续开启?'
70
+      } else if (this.origin_mode == 2 && this.form.mode == 1) { // 2 -> 1 清除第二周模板item,清除第二周排班,将第一周的排班重复到第二周
71
+        msg = '双周模板调整为单周模板时,下第二周排班将被清除,并用单周模板生成下第二周的排班!是否继续调整?'
72
+      }
73
+      if (msg.length == 0) {
74
+        this.submit()
75
+      } else {
76
+        this.$confirm(msg, '提示', { confirmButtonText: '确 定', cancelButtonText: '取 消', type: 'warning' })
77
+          .then(() => {
78
+            this.submit()
79
+          })
80
+      }
81
+    },
82
+    submit: function() {
83
+      setTemplateMode(this.form.mode).then(rs => {
84
+        var resp = rs.data
85
+        if (resp.state == 1) {
86
+          this.template_mode.mode = this.form.mode
87
+          this.hide()
88
+          this.$emit('chenge_mode', this.form.mode)
89
+        } else {
90
+          this.$message.error(resp.msg)
94 91
         }
92
+      })
95 93
     }
94
+  }
96 95
 }
97 96
 </script>
98 97