Pārlūkot izejas kodu

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

陈少旭 6 dienas atpakaļ
vecāks
revīzija
05b3d457c2

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 4681 - 21667
package-lock.json


+ 2 - 0
package.json Parādīt failu

43
     "clipboard": "^1.7.1",
43
     "clipboard": "^1.7.1",
44
     "codemirror": "5.32.0",
44
     "codemirror": "5.32.0",
45
     "connect": "3.6.6",
45
     "connect": "3.6.6",
46
+    "cross-spawn": "^7.0.6",
46
     "default-passive-events": "^2.0.0",
47
     "default-passive-events": "^2.0.0",
47
     "driver.js": "0.5.2",
48
     "driver.js": "0.5.2",
48
     "dropzone": "5.2.0",
49
     "dropzone": "5.2.0",
115
     "html-webpack-plugin": "2.30.1",
116
     "html-webpack-plugin": "2.30.1",
116
     "lint-staged": "7.2.0",
117
     "lint-staged": "7.2.0",
117
     "node-notifier": "5.1.2",
118
     "node-notifier": "5.1.2",
119
+    "node-sass": "^4.14.1",
118
     "optimize-css-assets-webpack-plugin": "3.2.0",
120
     "optimize-css-assets-webpack-plugin": "3.2.0",
119
     "ora": "1.3.0",
121
     "ora": "1.3.0",
120
     "portfinder": "1.0.13",
122
     "portfinder": "1.0.13",

+ 8 - 0
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Parādīt failu

3113
             } else if (schedual.schedule_type == 3) {
3113
             } else if (schedual.schedule_type == 3) {
3114
               this.start_time = year + '-' + month + '-' + day + ' ' + '17:30'
3114
               this.start_time = year + '-' + month + '-' + day + ' ' + '17:30'
3115
             }
3115
             }
3116
+           }else if(this.$store.getters.xt_user.org.id == 10745){
3117
+              if (schedual.schedule_type == 1) {
3118
+              this.start_time = year + '-' + month + '-' + day + ' ' + '7:00'
3119
+            } else if (schedual.schedule_type == 2) {
3120
+              this.start_time = year + '-' + month + '-' + day + ' ' + '11:00'
3121
+            } else if (schedual.schedule_type == 3) {
3122
+              this.start_time = year + '-' + month + '-' + day + ' ' + '17:30'
3123
+            }
3116
            }else if (this.$store.getters.xt_user.org.id == 10551){
3124
            }else if (this.$store.getters.xt_user.org.id == 10551){
3117
             var date = new Date()
3125
             var date = new Date()
3118
             var year = date.getFullYear()
3126
             var year = date.getFullYear()

+ 2 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue Parādīt failu

1454
                           <td width="50" v-if="org_id == 9671">在线尿素监测</td>
1454
                           <td width="50" v-if="org_id == 9671">在线尿素监测</td>
1455
                           <td width="50" v-if="org_id == 9538 || org_id == 9919 || org_id == 9671">血容量<br />(L)</td>
1455
                           <td width="50" v-if="org_id == 9538 || org_id == 9919 || org_id == 9671">血容量<br />(L)</td>
1456
                           <td width="50" v-if="org_id == 10490">碳酸氢钠<br />(ml)</td>
1456
                           <td width="50" v-if="org_id == 10490">碳酸氢钠<br />(ml)</td>
1457
-                          <td width="50" v-if="org_id == 10598">护士签名</td>
1457
+                          <td width="50" v-if="org_id == 10598 || org_id == 10726">护士签名</td>
1458
                           <td width="50" v-if="org_id == 9829">SpO₂<br />(%)</td>
1458
                           <td width="50" v-if="org_id == 9829">SpO₂<br />(%)</td>
1459
                           <td width="200">病情变化及处理</td>
1459
                           <td width="200">病情变化及处理</td>
1460
                         </tr>
1460
                         </tr>
1663
                           <td width="50" v-if="org_id == 10490">
1663
                           <td width="50" v-if="org_id == 10490">
1664
                             {{ monitor.dicarbonate ? monitor.dicarbonate : "" }}
1664
                             {{ monitor.dicarbonate ? monitor.dicarbonate : "" }}
1665
                           </td>
1665
                           </td>
1666
-                          <td width="50" v-if="org_id == 10598">
1666
+                          <td width="50" v-if="org_id == 10598 || org_id == 10726">
1667
                             <span v-if="monitor.creator == 0">
1667
                             <span v-if="monitor.creator == 0">
1668
                               <span v-if="setAdminUserES(monitor.modify) == ''">{{ getAdminUser(monitor.modify)
1668
                               <span v-if="setAdminUserES(monitor.modify) == ''">{{ getAdminUser(monitor.modify)
1669
                                 }}</span>
1669
                                 }}</span>

+ 28 - 7
src/xt_pages/stock/drugs/components/drugOutDetail.vue Parādīt failu

844
     exportListDetai(){
844
     exportListDetai(){
845
       console.log("hwhhwhwhwhwhw",this.tableData)
845
       console.log("hwhhwhwhwhwhw",this.tableData)
846
      
846
      
847
+     
847
       import('@/vendor/Export2Excel').then(excel => {
848
       import('@/vendor/Export2Excel').then(excel => {
848
        const tHeader = ['序号','单据编号', '药品类型', '药品名称','规格型号','生产厂商','进销商','批号','生产日期','有效日期','操作时间','制单人','进货价','出货价','使用人','数量','总价']
849
        const tHeader = ['序号','单据编号', '药品类型', '药品名称','规格型号','生产厂商','进销商','批号','生产日期','有效日期','操作时间','制单人','进货价','出货价','使用人','数量','总价']
849
        const filterVal = ['index','warehouse_out_order_number', 'drugtype', 'drug_name','specification_name','manufacturer_name','dealer_name','number_bath','product_date_name','expiry_date_name','time','user_name','in_price','price','patient_name','count','total_price']
850
        const filterVal = ['index','warehouse_out_order_number', 'drugtype', 'drug_name','specification_name','manufacturer_name','dealer_name','number_bath','product_date_name','expiry_date_name','time','user_name','in_price','price','patient_name','count','total_price']
892
               if(this.tableData[i].count_unit == this.tableData[i].max_unit && this.tableData[i].max_unit ==this.tableData[i].min_unit){
893
               if(this.tableData[i].count_unit == this.tableData[i].max_unit && this.tableData[i].max_unit ==this.tableData[i].min_unit){
893
                 this.tableData[i].total_price = (this.tableData[i].count * this.tableData[i].price)*this.tableData[i].min_number
894
                 this.tableData[i].total_price = (this.tableData[i].count * this.tableData[i].price)*this.tableData[i].min_number
894
               }
895
               }
896
+            }
895
 
897
 
896
-              this.tableData[i].number_bath =""
897
-              this.tableData[i].number_bath =  this.tableData[i].batch_number
898
+            this.tableData[i].number_bath =""
899
+            this.tableData[i].number_bath =  this.tableData[i].batch_number
898
 
900
 
899
-              this.tableData[i].expiry_date_name = this.getTime(this.tableData[i].expiry_date)
901
+            console.log("批次额",this.tableData[i].number_bath)
900
 
902
 
901
-              this.tableData[i].product_date_name = this.getTime(this.tableData[i].product_date)
902
-            }
903
+            this.tableData[i].expiry_date_name = this.getTime(this.tableData[i].expiry_date)
904
+
905
+            console.log("经销商",this.tableData[i].expiry_date_name)
906
+
907
+            this.tableData[i].product_date_name = this.getTime(this.tableData[i].product_date)
908
+
909
+            console.log("生产日期",this.tableData[i].product_date_name)
903
          }
910
          }
904
        }
911
        }
905
-      
906
-      
912
+
913
+       console.log("tabldateData",this.tableData)
914
+     
907
        const data = this.formatJson(filterVal, this.tableData)
915
        const data = this.formatJson(filterVal, this.tableData)
908
 
916
 
909
 
917
 
954
             }
962
             }
955
             
963
             
956
          }
964
          }
965
+         this.tableData[i].number_bath =""
966
+        this.tableData[i].number_bath =  this.tableData[i].batch_number
967
+
968
+        console.log("批次额",this.tableData[i].number_bath)
969
+
970
+        this.tableData[i].expiry_date_name = this.getTime(this.tableData[i].expiry_date)
971
+
972
+        console.log("经销商",this.tableData[i].expiry_date_name)
973
+
974
+        this.tableData[i].product_date_name = this.getTime(this.tableData[i].product_date)
975
+
976
+        console.log("生产日期",this.tableData[i].product_date_name)
957
        }
977
        }
958
        const data = this.formatJson(filterVal, this.tableData)
978
        const data = this.formatJson(filterVal, this.tableData)
959
 
979
 
1101
            
1121
            
1102
             this.dealerList = response.data.data.dealerList
1122
             this.dealerList = response.data.data.dealerList
1103
             this.manufacturerList = response.data.data.manufacturerList
1123
             this.manufacturerList = response.data.data.manufacturerList
1124
+            console.log("生产昌吉-----------",this.manufacturerList)
1104
             let objInfo = {}
1125
             let objInfo = {}
1105
             if(this.org_id == 9919){
1126
             if(this.org_id == 9919){
1106
               list.forEach((item,index)=>{
1127
               list.forEach((item,index)=>{

+ 7 - 5
src/xt_pages/stock/drugs/drugStockInOrder.vue Parādīt failu

316
             </span>
316
             </span>
317
           </template>
317
           </template>
318
         </el-table-column>
318
         </el-table-column>
319
-        <!-- <el-table-column label="拆零零售价" align="center">
320
-          <template slot-scope="scope">
321
-            {{scope.row.retail_price}}
322
-          </template>
323
-        </el-table-column> -->
319
+      
324
         <el-table-column label="进货价" align="center">
320
         <el-table-column label="进货价" align="center">
325
           <template slot-scope="scope">
321
           <template slot-scope="scope">
326
             <span v-if="scope.row.is_total == 0">{{ scope.row.price }}</span> 
322
             <span v-if="scope.row.is_total == 0">{{ scope.row.price }}</span> 
327
           </template>
323
           </template>
328
         </el-table-column>
324
         </el-table-column>
325
+
326
+        <el-table-column label="拆零零售价" align="center">
327
+          <template slot-scope="scope">
328
+            {{scope.row.retail_price}}
329
+          </template>
330
+        </el-table-column>
329
         <el-table-column label="总价" align="center">
331
         <el-table-column label="总价" align="center">
330
           <template slot-scope="scope">
332
           <template slot-scope="scope">
331
             <!-- {{scope.row.total_price}} -->
333
             <!-- {{scope.row.total_price}} -->

+ 8 - 22
src/xt_pages/stock/stockInOrder.vue Parādīt failu

71
             @change="endTimeChange"
71
             @change="endTimeChange"
72
           ></el-date-picker>
72
           ></el-date-picker>
73
         </div>
73
         </div>
74
-        <!-- <div style="margin-left: 10px">
75
-          <span>审核状态:</span>
76
-          <el-select
77
-            v-model="check_id"
78
-            style="width: 140px; margin-right: 10px"
79
-            placeholder="请选择"
80
-            @change="changeTypeName"
81
-          >
82
-            <el-option
83
-              v-for="item in checkList"
84
-              :key="item.id"
85
-              :label="item.name"
86
-              :value="item.id"
87
-            >
88
-            </el-option>
89
-          </el-select>
90
-        </div> -->
74
+       
91
 
75
 
92
       </div>
76
       </div>
93
 
77
 
294
            <span v-if="scope.row.is_total == 0">{{ scope.row.warehousing_count}}{{scope.row.GoodInfo.packing_unit}} </span> 
278
            <span v-if="scope.row.is_total == 0">{{ scope.row.warehousing_count}}{{scope.row.GoodInfo.packing_unit}} </span> 
295
           </template>
279
           </template>
296
         </el-table-column>
280
         </el-table-column>
297
-         <!-- <el-table-column label="零售价" align="center">
298
-          <template slot-scope="scope">
299
-            {{ scope.row.packing_price}}
300
-          </template>
301
-        </el-table-column> -->
281
+       
302
         <el-table-column label="进货价" align="center">
282
         <el-table-column label="进货价" align="center">
303
           <template slot-scope="scope">
283
           <template slot-scope="scope">
304
             <span v-if="scope.row.is_total == 0">
284
             <span v-if="scope.row.is_total == 0">
306
             </span> 
286
             </span> 
307
           </template>
287
           </template>
308
         </el-table-column>
288
         </el-table-column>
289
+
290
+        <el-table-column label="零售价" align="center">
291
+          <template slot-scope="scope">
292
+            {{ scope.row.packing_price}}
293
+          </template>
294
+        </el-table-column>
309
         <el-table-column label="总价" align="center">
295
         <el-table-column label="总价" align="center">
310
           <template slot-scope="scope">
296
           <template slot-scope="scope">
311
             <span v-if="scope.row.is_total==0">
297
             <span v-if="scope.row.is_total==0">

+ 13 - 13
src/xt_permission.js Parādīt failu

12
 
12
 
13
 router.beforeEach((to, from, next) => {
13
 router.beforeEach((to, from, next) => {
14
   // 线上注释
14
   // 线上注释
15
-  if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
-    store.dispatch('VerifyConfigList', []).then(() => {
17
-      next()
18
-    })
19
-  }
20
-  if (store.getters.permission_routers === undefined) {
21
-    store.dispatch('xt_GenerateRoutes', []).then(() => {
22
-      next()
23
-    })
24
-  } else {
25
-    next()
26
-  }
27
-  return
15
+  // if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
+  //   store.dispatch('VerifyConfigList', []).then(() => {
17
+  //     next()
18
+  //   })
19
+  // }
20
+  // if (store.getters.permission_routers === undefined) {
21
+  //   store.dispatch('xt_GenerateRoutes', []).then(() => {
22
+  //     next()
23
+  //   })
24
+  // } else {
25
+  //   next()
26
+  // }
27
+  // return
28
 //  // 线上注释
28
 //  // 线上注释
29
   NProgress.start()
29
   NProgress.start()
30
   // console.log(store.getters.current_role_urls.indexOf(to.path))
30
   // console.log(store.getters.current_role_urls.indexOf(to.path))