csx 6 lat temu
rodzic
commit
65c5b41822

+ 216 - 191
src/views/layout/components/Navbar.vue Wyświetl plik

@@ -1,133 +1,134 @@
1 1
 <template>
2
-<div class="top-nav">
3
-   <div class="nav-logo">
4
-       <img :src="require(`../../../assets/logo/logo.png`)" alt="">
2
+  <div class="top-nav">
3
+    <div class="nav-logo">
4
+      <img :src="require(`../../../assets/logo/logo.png`)" alt="">
5 5
     </div>
6
-  <el-menu class="navbar" mode="horizontal">
7
-    <div>
8
-      <el-dropdown trigger="click" style="color:#fff;">
9
-        <span class="el-dropdown-link">
10
-          南山市人民医院<i class="el-icon-arrow-down el-icon--right"></i>
11
-        </span>
12
-        <el-dropdown-menu slot="dropdown" style="margin-top:21px;">
13
-          <el-dropdown-item >深圳市人民医院</el-dropdown-item>
14
-          <el-dropdown-item >长沙是透析中心</el-dropdown-item>
15
-          <el-dropdown-item >东莞血液透析中心</el-dropdown-item>
16
-          <el-dropdown-item >东莞血液透析中心</el-dropdown-item>
17
-          <el-dropdown-item >东莞血液透析中心</el-dropdown-item>
18
-        </el-dropdown-menu>
19
-      </el-dropdown>
20
-    </div>
21
-    <div class="system-nav">
22
-       <div class="system-nav-menu">
23
-          <a  href="http://jk.kuyicloud.com/">
24
-          <!-- <a  href="http://test1.sgjyun.com/"> -->
25
-             <span ><i class="iconfont icon-pengyou"></i> SCRM</span>
26
-          </a>
27
-       </div>
28
-       <div class="system-nav-menu">
29
-        <a href="http://mall.kuyicloud.com/">
30
-        <!-- <a href="http://mall.test.sgjyun.com/"> -->
31
-          <span ><i class="icon iconfont icon-service_fill"></i> 微商城</span>
32
-        </a>
33
-      </div>
34
-      <div class="system-nav-menu active">
35
-        <a>
36
-          <span><i class="icon iconfont icon-jiankangshuidi"></i> 血透管理</span>
37
-        </a>
38
-      </div>
39
-      <div class="system-nav-menu">
40
-        <a href="http://cdm.kuyicloud.com/">
41
-          <span ><i class="icon iconfont icon-manbing-xuanzhong"></i> 慢病管理</span>
42
-        </a>
6
+    <el-menu class="navbar" mode="horizontal">
7
+      <div>
8
+        <!--<el-dropdown trigger="click" style="color:#fff;">-->
9
+        <!--<span class="el-dropdown-link">-->
10
+          <!--南山市人民医院<i class="el-icon-arrow-down el-icon&#45;&#45;right"></i>-->
11
+        <!--</span>-->
12
+          <!--&lt;!&ndash;<el-dropdown-menu slot="dropdown" style="margin-top:21px;">&ndash;&gt;-->
13
+            <!--&lt;!&ndash;<el-dropdown-item>深圳市人民医院</el-dropdown-item>&ndash;&gt;-->
14
+            <!--&lt;!&ndash;<el-dropdown-item>长沙是透析中心</el-dropdown-item>&ndash;&gt;-->
15
+            <!--&lt;!&ndash;<el-dropdown-item>东莞血液透析中心</el-dropdown-item>&ndash;&gt;-->
16
+            <!--&lt;!&ndash;<el-dropdown-item>东莞血液透析中心</el-dropdown-item>&ndash;&gt;-->
17
+            <!--&lt;!&ndash;<el-dropdown-item>东莞血液透析中心</el-dropdown-item>&ndash;&gt;-->
18
+          <!--&lt;!&ndash;</el-dropdown-menu>&ndash;&gt;-->
19
+        <!--</el-dropdown>-->
43 20
       </div>
21
+      <div class="system-nav">
22
+        <div class="system-nav-menu">
23
+          <!--<a  href="http://jk.kuyicloud.com/">-->
24
+          <a href="http://test1.sgjyun.com/">
25
+            <span><i class="iconfont icon-pengyou"></i> SCRM</span>
26
+          </a>
27
+        </div>
28
+        <div class="system-nav-menu">
29
+          <!--<a href="http://mall.kuyicloud.com/">-->
30
+          <a href="http://mall.test.sgjyun.com/">
31
+            <span><i class="icon iconfont icon-service_fill"></i> 微商城</span>
32
+          </a>
33
+        </div>
34
+        <div class="system-nav-menu active">
35
+          <a>
36
+            <span><i class="icon iconfont icon-jiankangshuidi"></i> 血透管理</span>
37
+          </a>
38
+        </div>
39
+        <div class="system-nav-menu">
40
+          <!--<a href="http://cdm.kuyicloud.com/">-->
41
+          <a href=" http://cdm.test.sgjyun.com/">
42
+            <span><i class="icon iconfont icon-manbing-xuanzhong"></i> 慢病管理</span>
43
+          </a>
44
+        </div>
44 45
 
45
-      <div class="system-nav-menu">
46
-        <a href="http://sso.kuyicloud.com/org/app/create">
47
-        <!-- <a href="http://testsso.sgjyun.com/org/app/create"> -->
48
-          <span ><i class="icon iconfont icon-suoyou"></i> 应用</span>
49
-        </a>
46
+        <div class="system-nav-menu">
47
+          <!--<a href="http://sso.kuyicloud.com/org/app/create">-->
48
+          <a href="http://testsso.sgjyun.com/org/app/create">
49
+            <span><i class="icon iconfont icon-suoyou"></i> 应用</span>
50
+          </a>
51
+        </div>
50 52
       </div>
51
-    </div>
52 53
 
53
-    <div class="right-menu">
54
-      <el-dropdown class="avatar-container right-menu-item" trigger="click">
55
-        <div class="avatar-wrapper">
56
-          <img class="user-avatar" :src="avater">
57
-          <span class="user-title">{{ this.$store.getters.xt_user.user.user_name }}</span>
58
-          <i class="el-icon-caret-bottom"></i>
59
-        </div>
60
-        <el-dropdown-menu slot="dropdown">
61
-          <el-dropdown-item>
62
-            <span @click="modifyUserInfoAction">修改个人信息</span>
63
-          </el-dropdown-item>
64
-          <el-dropdown-item divided>
65
-            <span @click="myServe">我的服务</span>
66
-          </el-dropdown-item>
67
-          <el-dropdown-item divided>
68
-            <span @click="logout" style="display:block;">{{$t('navbar.logOut')}}</span>
69
-          </el-dropdown-item>
70
-        </el-dropdown-menu>
71
-      </el-dropdown>
72
-
73
-      <!-- <screenfull class="screenfull right-menu-item"></screenfull> -->
74
-      <modify-user-info-dialog ref="modify_user_info_dialog"></modify-user-info-dialog>
54
+      <div class="right-menu">
55
+        <el-dropdown class="avatar-container right-menu-item" trigger="click">
56
+          <div class="avatar-wrapper">
57
+            <img class="user-avatar" :src="avater">
58
+            <span class="user-title">{{ this.$store.getters.xt_user.user.user_name }}</span>
59
+            <i class="el-icon-caret-bottom"></i>
60
+          </div>
61
+          <el-dropdown-menu slot="dropdown">
62
+            <el-dropdown-item>
63
+              <span @click="modifyUserInfoAction">修改个人信息</span>
64
+            </el-dropdown-item>
65
+            <el-dropdown-item divided>
66
+              <span @click="myServe">我的服务</span>
67
+            </el-dropdown-item>
68
+            <el-dropdown-item divided>
69
+              <span @click="logout" style="display:block;">{{$t('navbar.logOut')}}</span>
70
+            </el-dropdown-item>
71
+          </el-dropdown-menu>
72
+        </el-dropdown>
75 73
 
76
-    </div>
77
-  </el-menu>
78
-</div>
74
+        <!-- <screenfull class="screenfull right-menu-item"></screenfull> -->
75
+        <modify-user-info-dialog ref="modify_user_info_dialog"></modify-user-info-dialog>
76
+
77
+      </div>
78
+    </el-menu>
79
+  </div>
79 80
 </template>
80 81
 
81 82
 <script>
82
-import { mapGetters } from "vuex";
83
-// import Breadcrumb from "@/components/Breadcrumb";
84
-// import Hamburger from "@/components/Hamburger";
85
-import Screenfull from "@/components/Screenfull";
86
-import ModifyUserInfoDialog from "@/xt_pages/home/modify_user_info_dialog";
87
-
88
-export default {
89
-  components: {
90
-    // Breadcrumb,
91
-    // Hamburger,
92
-    Screenfull,
93
-    ModifyUserInfoDialog
94
-  },
95
-  computed: {
96
-    ...mapGetters(["sidebar"]),
97
-    avater: function() {
98
-      var avatar = this.$store.getters.xt_user.user.avatar;
99
-      return avatar.length > 0
100
-        ? avatar
101
-        : require("../../../assets/home/userData.png");
102
-    }
103
-  },
104
-  methods: {
105
-    // toggleSideBar() {
106
-    //   this.$store.dispatch("toggleSideBar");
107
-    // },
108
-    logout() {
109
-      this.$store.dispatch("FrontendLogout");
110
-      window.location.href = process.env.BASE_API + "/logout";
83
+  import { mapGetters } from 'vuex'
84
+  // import Breadcrumb from "@/components/Breadcrumb";
85
+  // import Hamburger from "@/components/Hamburger";
86
+  import Screenfull from '@/components/Screenfull'
87
+  import ModifyUserInfoDialog from '@/xt_pages/home/modify_user_info_dialog'
88
+
89
+  export default {
90
+    components: {
91
+      // Breadcrumb,
92
+      // Hamburger,
93
+      Screenfull,
94
+      ModifyUserInfoDialog
111 95
     },
112
-    modifyUserInfoAction() {
113
-      this.$refs.modify_user_info_dialog.show();
96
+    computed: {
97
+      ...mapGetters(['sidebar']),
98
+      avater: function() {
99
+        var avatar = this.$store.getters.xt_user.user.avatar
100
+        return avatar.length > 0
101
+          ? avatar
102
+          : require('../../../assets/home/userData.png')
103
+      }
114 104
     },
115
-    myServe() {
116
-      this.$router.push("/service");
117
-      return false;
105
+    methods: {
106
+      // toggleSideBar() {
107
+      //   this.$store.dispatch("toggleSideBar");
108
+      // },
109
+      logout() {
110
+        this.$store.dispatch('FrontendLogout')
111
+        window.location.href = process.env.BASE_API + '/logout'
112
+      },
113
+      modifyUserInfoAction() {
114
+        this.$refs.modify_user_info_dialog.show()
115
+      },
116
+      myServe() {
117
+        this.$router.push('/service')
118
+        return false
119
+      }
118 120
     }
119 121
   }
120
-};
121 122
 </script>
122 123
 
123 124
 <style rel="stylesheet/scss" lang="scss" scoped>
124
-.top-nav {
125
-  background: #409eff;
126
-  position: fixed;
127
-  top: 0;
128
-  left: 0;
129
-  right: 0;
130
-  // z-index: 2052;
125
+  .top-nav {
126
+    background: #409eff;
127
+    position: fixed;
128
+    top: 0;
129
+    left: 0;
130
+    right: 0;
131
+
131 132
   .nav-logo {
132 133
     width: 162px;
133 134
     display: flex;
@@ -138,10 +139,12 @@ export default {
138 139
     padding: 10px 0;
139 140
     box-sizing: border-box;
140 141
     float: left;
141
-    img {
142
-      display: inline-block;
143
-      width: 100px;
144
-    }
142
+
143
+  img {
144
+    display: inline-block;
145
+    width: 100px;
146
+  }
147
+
145 148
   }
146 149
   .navbar {
147 150
     border-radius: 0px !important;
@@ -153,81 +156,102 @@ export default {
153 156
     border: none;
154 157
     background: #409eff;
155 158
     float: left;
156
-    .breadcrumb-container {
157
-      float: left;
158
-    }
159
-    .errLog-container {
160
-      display: inline-block;
161
-      vertical-align: top;
162
-    }
163
-    .right-menu {
164
-      float: right;
165
-      height: 100%;
166
-      &:focus {
167
-        outline: none;
168
-      }
169
-      .right-menu-item {
170
-        display: inline-block;
171
-        margin: 0 8px;
172
-        .iconfont {
173
-          font-size: 18px;
174
-        }
175
-      }
176
-      .screenfull {
177
-        height: 20px;
178
-      }
179
-      .international {
180
-        vertical-align: top;
181
-      }
182
-      .theme-switch {
183
-        vertical-align: 15px;
184
-      }
185
-      .avatar-container {
186
-        margin-right: 10px;
187
-        .avatar-wrapper {
188
-          cursor: pointer;
189
-          margin-top: 3px;
190
-          display: flex;
191
-          align-items: center;
192
-          justify-content: center;
193
-          .user-avatar {
194
-            width: 40px;
195
-            height: 40px;
196
-            border-radius: 50%;
197
-            object-fit: cover;
198
-            object-position: center;
199
-          }
200
-          .user-title {
201
-            margin: 0 8px;
202
-            font-size: 14px;
203
-            color: #fff;
204
-          }
205
-          .el-icon-caret-bottom {
206
-            font-size: 12px;
207
-            color: #fff;
208
-          }
209
-        }
210
-      }
211
-    }
159
+
160
+  .breadcrumb-container {
161
+    float: left;
162
+  }
163
+
164
+  .errLog-container {
165
+    display: inline-block;
166
+    vertical-align: top;
167
+  }
168
+
169
+  .right-menu {
170
+    float: right;
171
+    height: 100%;
172
+
173
+  &
174
+  :focus {
175
+    outline: none;
176
+  }
177
+
178
+  .right-menu-item {
179
+    display: inline-block;
180
+    margin: 0 8px;
181
+
182
+  .iconfont {
183
+    font-size: 18px;
184
+  }
185
+
186
+  }
187
+  .screenfull {
188
+    height: 20px;
189
+  }
190
+
191
+  .international {
192
+    vertical-align: top;
193
+  }
194
+
195
+  .theme-switch {
196
+    vertical-align: 15px;
197
+  }
198
+
199
+  .avatar-container {
200
+    margin-right: 10px;
201
+
202
+  .avatar-wrapper {
203
+    cursor: pointer;
204
+    margin-top: 3px;
205
+    display: flex;
206
+    align-items: center;
207
+    justify-content: center;
208
+
209
+  .user-avatar {
210
+    width: 40px;
211
+    height: 40px;
212
+    border-radius: 50%;
213
+    object-fit: cover;
214
+    object-position: center;
215
+  }
216
+
217
+  .user-title {
218
+    margin: 0 8px;
219
+    font-size: 14px;
220
+    color: #fff;
221
+  }
222
+
223
+  .el-icon-caret-bottom {
224
+    font-size: 12px;
225
+    color: #fff;
226
+  }
227
+
228
+  }
229
+  }
230
+  }
212 231
   }
213 232
   .system-nav {
214
-    .system-nav-menu {
215
-      float: left;
216
-      height: 60px;
217
-      line-height: 60px;
218
-      padding: 0 25px;
219
-      a {
220
-        font-size: 15px;
221
-        .iconfont {
222
-          font-size: 18px;
223
-        }
224
-      }
225
-    }
226
-    .active {
227
-      background: #3090eb;
228
-      border-left: 1px #5fabf7 solid;
229
-      border-right: 1px #5fabf7 solid;
230
-    }
233
+
234
+  .system-nav-menu {
235
+    float: left;
236
+    height: 60px;
237
+    line-height: 60px;
238
+    padding: 0 25px;
239
+
240
+  a {
241
+    font-size: 15px;
242
+
243
+  .iconfont {
244
+    font-size: 18px;
245
+  }
246
+
247
+  }
248
+  }
249
+  .active {
250
+    background: #3090eb;
251
+    border-left: 1px #5fabf7 solid;
252
+    border-right: 1px #5fabf7 solid;
253
+  }
254
+
231 255
   }
232 256
   .el-menu::after,
233 257
   .el-menu::before {
@@ -237,5 +261,6 @@ export default {
237 261
     top: 0;
238 262
     left: 0;
239 263
   }
240
-}
264
+
265
+  }
241 266
 </style>

+ 4 - 0
src/xt_pages/stock/Dialog/stockInDialog.vue Wyświetl plik

@@ -111,10 +111,14 @@
111 111
         })
112 112
       },
113 113
       cancle: function(formName) {
114
+        this.goodInfo = []
115
+        this.goodInfoTableData = []
114 116
         this.$emit('dialog-cancle', this.getValue())
115 117
         this.$refs.multipleTable.clearSelection()
116 118
       },
117 119
       comfirm: function(formName) {
120
+        this.goodInfo = []
121
+        this.goodInfoTableData = []
118 122
         this.$emit('dialog-comfirm', this.getValue())
119 123
         this.$refs.multipleTable.clearSelection()
120 124
       },

+ 1 - 1
src/xt_pages/stock/cancelStockOrder.vue Wyświetl plik

@@ -278,7 +278,7 @@
278 278
           }
279 279
         }
280 280
       }, handleEdit: function(index, row) {
281
-        this.$router.push({ name: 'cancelStockDetail', query: { id: row.id }})
281
+        this.$router.push({ name: 'cancelStockDetail', query: { id: row.id,type: this.type }})
282 282
       }, handleDelete: function(index, row) {
283 283
         const ids = []
284 284
         ids.push(row.id)

+ 8 - 1
src/xt_pages/stock/cancelStockOrderAdd.vue Wyświetl plik

@@ -27,7 +27,7 @@
27 27
         </div>
28 28
         <div class="cell clearfix">
29 29
           <label class="title"><span class="name">厂商</span> : </label>
30
-          <el-select  v-model="form.manufacturer" clearable  placeholder="请选择厂商" >
30
+          <el-select  v-model="form.manufacturer" clearable  placeholder="请选择厂商" @change="changeManufacturer()">
31 31
             <el-option
32 32
               v-for="(option, index) in manufacturer"
33 33
               :key="index"
@@ -344,6 +344,13 @@
344 344
             return false
345 345
           }
346 346
         })
347
+      },changeManufacturer(){
348
+        this.recordInfo.recordData = []
349
+        const tempObj = {}
350
+        tempObj['good_type_id'] = 0
351
+        tempObj['good_id'] = 0
352
+        tempObj['return_count'] = ''
353
+        this.recordInfo.recordData.push(tempObj)
347 354
       }
348 355
     },
349 356
     created() {

+ 5 - 0
src/xt_pages/stock/salesReturnEdit.vue Wyświetl plik

@@ -217,6 +217,10 @@
217 217
               obj3[next.id] ? '' : obj3[next.id] = true && cur.push(next)
218 218
               return cur
219 219
             }, [])
220
+            console.log(this.propForm.goodInfo)
221
+            console.log(this.propForm.goodType)
222
+
223
+
220 224
           }
221 225
         })
222 226
       }, typeName: function(good_type_id) {
@@ -228,6 +232,7 @@
228 232
         }
229 233
         return name
230 234
       }, specificationName: function(good_info_id) {
235
+
231 236
         let name = ''
232 237
         for (let i = 0; i < this.propForm.goodInfo.length; i++) {
233 238
           if (this.propForm.goodInfo[i].id == good_info_id) {

+ 9 - 1
src/xt_pages/stock/salesReturnOrderAdd.vue Wyświetl plik

@@ -23,7 +23,7 @@
23 23
 
24 24
       <div class="cell clearfix">
25 25
         <label class="title"><span class="name">厂商</span> : </label>
26
-        <el-select v-model="form.manufacturer" clearable placeholder="请选择厂商">
26
+        <el-select v-model="form.manufacturer" clearable placeholder="请选择厂商" @change="changeManufacturer()">
27 27
           <el-option
28 28
             v-for="(option, index) in manufacturer"
29 29
             :key="index"
@@ -354,6 +354,14 @@
354 354
             return false
355 355
           }
356 356
         })
357
+      },changeManufacturer(){
358
+        this.recordInfo.recordData = []
359
+        const tempObj = {}
360
+        tempObj['good_type_id'] = 0
361
+        tempObj['good_id'] = 0
362
+        tempObj['return_count'] = ''
363
+        tempObj['price'] = ''
364
+        this.recordInfo.recordData.push(tempObj)
357 365
       }
358 366
     },
359 367
     created() {

+ 17 - 1
src/xt_pages/stock/stockInOrderAdd.vue Wyświetl plik

@@ -23,7 +23,7 @@
23 23
 
24 24
       <div class="cell clearfix">
25 25
         <label class="title"><span class="name">厂商</span> : </label>
26
-        <el-select  v-model="form.manufacturer" clearable  placeholder="请选择厂商" >
26
+        <el-select  v-model="form.manufacturer" clearable  placeholder="请选择厂商" @change="changeManufacturer()" >
27 27
           <el-option
28 28
             v-for="(option, index) in manufacturer"
29 29
             :key="index"
@@ -462,6 +462,7 @@
462 462
           const params = {
463 463
             id: this.form.manufacturer
464 464
           }
465
+          this.propForm.goodType = []
465 466
           GetAllGoodInfoByID(params).then(response => {
466 467
             if (response.data.state == 0) {
467 468
               this.$message.error(response.data.msg)
@@ -550,6 +551,21 @@
550 551
             return false
551 552
           }
552 553
         })
554
+      },changeManufacturer(){
555
+        this.recordInfo.recordData = []
556
+        const tempObj = {}
557
+        tempObj['good_type_id'] = 0
558
+        tempObj['good_id'] = 0
559
+        tempObj['number'] = ''
560
+        tempObj['product_date'] = ''
561
+        tempObj['expiry_date'] = ''
562
+        tempObj['warehousing_count'] = ''
563
+        tempObj['price'] = ''
564
+        tempObj['remark'] = ''
565
+        tempObj['dealer'] = ''
566
+        tempObj['manufacturer'] = ''
567
+        this.recordInfo.recordData.push(tempObj)
568
+
553 569
       }
554 570
     },
555 571
     created() {

+ 1 - 0
src/xt_pages/stock/stockInOrderEdit.vue Wyświetl plik

@@ -377,6 +377,7 @@ export default {
377 377
           const params = {
378 378
             id: this.form.manufacturer
379 379
           }
380
+          this.propForm.goodType = []
380 381
           GetAllGoodInfoByID(params).then(response => {
381 382
             if (response.data.state == 0) {
382 383
               this.$message.error(response.data.msg)

+ 10 - 1
src/xt_pages/stock/stockOutOrderAdd.vue Wyświetl plik

@@ -26,7 +26,7 @@
26 26
 
27 27
     <div class="cell clearfix">
28 28
       <label class="title"><span class="name">厂商</span> : </label>
29
-      <el-select  v-model="form.manufacturer" clearable  placeholder="请选择厂商" >
29
+      <el-select  v-model="form.manufacturer" clearable  placeholder="请选择厂商"  @change="changeManufacturer()">
30 30
         <el-option
31 31
           v-for="(option, index) in manufacturer"
32 32
           :key="index"
@@ -380,6 +380,15 @@
380 380
             return false
381 381
           }
382 382
         })
383
+      },changeManufacturer(){
384
+        this.recordInfo.recordData = []
385
+        const tempObj = {}
386
+        tempObj['good_type_id'] = 0
387
+        tempObj['good_id'] = 0
388
+        tempObj['return_count'] = 0
389
+        tempObj['price'] = ''
390
+        tempObj['remark'] = ''
391
+        this.recordInfo.recordData.push(tempObj)
383 392
       }
384 393
     },
385 394
     created() {