Kaynağa Gözat

Merge branch '20201014_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20201014_pc_vue_new_branch

See999 4 yıl önce
ebeveyn
işleme
370a4dff75

+ 3 - 1
src/api/drug/drug_stock.js Dosyayı Görüntüle

356
 
356
 
357
 
357
 
358
 
358
 
359
-export function getWarehouseOutUser(params) {
359
+export function getDrugWarehouseOutUser(params) {
360
   return request({
360
   return request({
361
     url: '/api/drugwarehouseout/user',
361
     url: '/api/drugwarehouseout/user',
362
     method: 'get',
362
     method: 'get',
388
 
388
 
389
 
389
 
390
 
390
 
391
+
392
+

+ 2 - 1
src/lang/zh.js Dosyayı Görüntüle

149
     RescueRecord: '抢救记录',
149
     RescueRecord: '抢救记录',
150
     special_permission_manage: '特殊权限管理',
150
     special_permission_manage: '特殊权限管理',
151
     schedule_print: '排班打印',
151
     schedule_print: '排班打印',
152
-    
152
+
153
     otherManagement:'其他管理',
153
     otherManagement:'其他管理',
154
     drugsExpiryDate:'药品有效期预警',
154
     drugsExpiryDate:'药品有效期预警',
155
     drugsSurplus:'药品剩余预警',
155
     drugsSurplus:'药品剩余预警',
230
     bedManagement:'床位管理',
230
     bedManagement:'床位管理',
231
     dictionaryManagement:'字典管理',
231
     dictionaryManagement:'字典管理',
232
     templateManagement:'模板管理',
232
     templateManagement:'模板管理',
233
+    drugStockUserDetail:"出库人明细",
233
 
234
 
234
   },
235
   },
235
   navbar: {
236
   navbar: {

+ 7 - 0
src/router/modules/drugs.js Dosyayı Görüntüle

122
       hidden: true,
122
       hidden: true,
123
       is_menu: false,
123
       is_menu: false,
124
       meta: { title: 'cancelDrugStockDetail', noCache: true }
124
       meta: { title: 'cancelDrugStockDetail', noCache: true }
125
+    },{
126
+      path: '/drugstock/user/detail',
127
+      component: () => import('@/xt_pages/stock/drugs/drugStockUserDetail'),
128
+      name: 'drugStockUserDetail',
129
+      hidden: true,
130
+      is_menu: false,
131
+      meta: { title: 'drugStockUserDetail', noCache: true }
125
     },
132
     },
126
   ]
133
   ]
127
 }
134
 }

+ 1 - 5
src/xt_pages/data/components/consumables.vue Dosyayı Görüntüle

43
       :data="goodInfo.goodInfoData"
43
       :data="goodInfo.goodInfoData"
44
       v-loading="goodInfo.loading"
44
       v-loading="goodInfo.loading"
45
     >
45
     >
46
-      <el-table-column label="商品编码" align="center">
47
-        <template slot-scope="scope">
48
-          {{ scope.row.good_code }}
49
-        </template>
50
-      </el-table-column>
46
+      <el-table-column type="index" label="序号" width="60px" align="center"></el-table-column>
51
       <el-table-column label="名称" align="center">
47
       <el-table-column label="名称" align="center">
52
         <template slot-scope="scope">
48
         <template slot-scope="scope">
53
           {{ scope.row.good_name }}
49
           {{ scope.row.good_name }}

+ 2 - 5
src/xt_pages/data/components/drugs.vue Dosyayı Görüntüle

39
     </div>
39
     </div>
40
     <el-table :data="list" border style="width: 100%" :row-style="{ color: '#303133' }"
40
     <el-table :data="list" border style="width: 100%" :row-style="{ color: '#303133' }"
41
               :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)', color: '#606266'}">
41
               :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)', color: '#606266'}">
42
-      <el-table-column
43
-        type="index"
44
-        label="药品编码"
45
-        width="50">
46
-      </el-table-column>
42
+      <el-table-column type="index" label="序号" width="60px" align="center"></el-table-column>
43
+
47
       <el-table-column prop="date" label="药品名称" align="center">
44
       <el-table-column prop="date" label="药品名称" align="center">
48
         <template slot-scope="scope">
45
         <template slot-scope="scope">
49
           <div>{{scope.row.drug_name}}</div>
46
           <div>{{scope.row.drug_name}}</div>

+ 1 - 1
src/xt_pages/stock/drugs/drugStockOutOrderDetail.vue Dosyayı Görüntüle

204
         this.$emit('edit-record')
204
         this.$emit('edit-record')
205
       },jump(row){
205
       },jump(row){
206
         this.$router.push({
206
         this.$router.push({
207
-          name: 'user_detail',
207
+          name: 'drugStockUserDetail',
208
           query: { id: row.id }
208
           query: { id: row.id }
209
         })
209
         })
210
       },merge({ row, column, rowIndex, columnIndex }) {
210
       },merge({ row, column, rowIndex, columnIndex }) {

+ 6 - 22
src/xt_pages/stock/drugs/drugStockUserDetail.vue Dosyayı Görüntüle

11
       </div>
11
       </div>
12
 
12
 
13
       <div class="cell clearfix">
13
       <div class="cell clearfix">
14
-        <span style="width: 300px;color: #606266">商品类型: {{userList[0].type.type_name}} </span>
15
-        <span style="width: 300px;color: #606266">规格名称: {{userList[0].info.specification_name}}</span>
14
+        <span style="width: 300px;color: #606266">商品类型: {{userList[0].drug.drug_name}} </span>
15
+        <span style="width: 300px;color: #606266">规格名称: {{userList[0].drug.drug_spec}}</span>
16
       </div>
16
       </div>
17
 
17
 
18
       <el-row :gutter="12" style="margin-top: 10px">
18
       <el-row :gutter="12" style="margin-top: 10px">
64
 
64
 
65
 <script>
65
 <script>
66
   import { uParseTime } from '@/utils/tools'
66
   import { uParseTime } from '@/utils/tools'
67
-  import { getWarehouseOutUser } from '@/api/stock'
68
-  import BreadCrumb from '../components/bread-crumb'
67
+  import { getDrugWarehouseOutUser } from '@/api/drug/drug_stock'
68
+  import BreadCrumb from '../../components/bread-crumb'
69
 
69
 
70
   export default {
70
   export default {
71
     name: 'stockInOrderDetail',
71
     name: 'stockInOrderDetail',
88
       }
88
       }
89
     },
89
     },
90
     methods: {
90
     methods: {
91
-      getSpecificationName: function(id) {
92
-        let name = ''
93
-        for (let i = 0; i < this.goodInfo.length; i++) {
94
-          if (this.goodInfo[i].id == id) {
95
-            name = this.goodInfo[i].specification_name
96
-          }
97
-        }
98
-        return name
99
-      }, getTypeName: function(id) {
100
-        let name = ''
101
-        for (let i = 0; i < this.goodType.length; i++) {
102
-          if (this.goodType[i].id == id) {
103
-            name = this.goodType[i].type_name
104
-          }
105
-        }
106
-        return name
107
-      }, GetOrderDetail: function(order_id) {
91
+    GetOrderDetail: function(order_id) {
108
         const params = {
92
         const params = {
109
           'id': order_id
93
           'id': order_id
110
         }
94
         }
111
-        getWarehouseOutUser(params).then(response => {
95
+        getDrugWarehouseOutUser(params).then(response => {
112
           if (response.data.state == 0) {
96
           if (response.data.state == 0) {
113
             this.$message.error(response.data.msg)
97
             this.$message.error(response.data.msg)
114
             return false
98
             return false