Browse Source

Merge remote-tracking branch 'origin/20230223_pc_vue_new_branch' into 20230223_pc_vue_new_branch

yq1 1 day ago
parent
commit
bbd03d7e3f

+ 34 - 2
src/xt_pages/Pharmacy/drugCode.vue View File

@@ -46,6 +46,19 @@
46 46
         </div>
47 47
       </div>
48 48
 
49
+      <div>
50
+        <div>结算状态:
51
+          <el-select size="small" v-model="is_settle" placeholder="请选择" style="width:100px;" @change="changeSettle">
52
+            <el-option
53
+              v-for="item,index in settle_items"
54
+              :key="index"
55
+              :label="item.name"
56
+              :value="item.id">
57
+            </el-option>
58
+          </el-select>
59
+        </div>
60
+      </div>
61
+
49 62
       <div>
50 63
         <el-button type="primary" @click="batchUpload()">批量上传</el-button>
51 64
         <el-button type="primary" @click="query()">查询</el-button>
@@ -103,6 +116,14 @@
103 116
         </template>
104 117
       </el-table-column>
105 118
 
119
+
120
+      <el-table-column align="center" prop="name" label="结算状态">
121
+        <template slot-scope="scope">
122
+          <div v-if="scope.row.pre.order_status == 2">已结算</div>
123
+          <div v-if="scope.row.pre.order_status != 2">未结算</div>
124
+        </template>
125
+      </el-table-column>
126
+
106 127
       <el-table-column align="center" prop="name" label="操作" width="200">
107 128
         <template slot-scope="scope">
108 129
           <div>
@@ -119,13 +140,14 @@
119 140
 
120 141
 
121 142
     </el-table>
122
-    
143
+
123 144
     <el-pagination
124 145
       @size-change="handleSizeChange"
125 146
       @current-change="handleCurrentChange"
126 147
       :page-size="10"
127 148
       :page-sizes="[10, 20, 50, 100,500,1000,2000]"
128 149
       background
150
+      layout="total, sizes, prev, pager, next, jumper"
129 151
       style="margin-top:20px;float: right"
130 152
       :total="total"
131 153
     ></el-pagination>
@@ -176,7 +198,7 @@ export default {
176 198
       drugTypeList: [{id: 0, name: "全部"}],
177 199
       start_time: new Date(new Date().getFullYear(), new Date().getMonth(), 1).toLocaleDateString('en-CA'),
178 200
       end_time: new Date(new Date().getFullYear(), new Date().getMonth() + 1, 0).toLocaleDateString('en-CA'),
179
-
201
+      is_settle:"0",
180 202
       tableData: [],
181 203
       change_type: "3",
182 204
       selection: [],
@@ -189,6 +211,11 @@ export default {
189 211
         {id: "1", name: '已上传'},
190 212
         {id: "2", name: '未上传'},
191 213
       ],
214
+      settle_items: [
215
+        {id: "0", name: '全部'},
216
+        {id: "2", name: '已结算'},
217
+        {id: "1", name: '未结算'},
218
+      ],
192 219
       patientList: [],
193 220
       drugList: [],
194 221
       dialogVisibleOne: false,
@@ -567,6 +594,7 @@ export default {
567 594
         page: this.page,
568 595
         limit: this.limit,
569 596
         is_sale: this.is_sale,
597
+        is_settle:this.is_settle,
570 598
 
571 599
       }
572 600
       getHisDrugCodeQueryList(params).then(response => {
@@ -582,6 +610,10 @@ export default {
582 610
           this.is_open = response.data.data.codeConfig.is_open
583 611
         }
584 612
       })
613
+    },changeSettle(val){
614
+
615
+      this.is_settle = val
616
+      this.getlist()
585 617
     },
586 618
     changeStock(val) {
587 619
       this.is_sale = val

+ 1 - 1
src/xt_pages/stock/drugs/components/purchaseDrugQuery.vue View File

@@ -412,7 +412,7 @@ export default {
412 412
               list[i].drugAdd = this.drugAddInfo(list[i].DrugWarehouseInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryProfit)
413 413
               list[i].drugAddOne = this.drugAddInfoOne(list[i].DrugWarehouseInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryProfit)
414 414
             
415
-              if(this.org_id == 0 || this.org_id == 10644){
415
+              if(this.org_id == 0 || this.org_id == 10644 || this.org_id == 10752){
416 416
                 list[i].drugAddPrice = ""
417 417
                 list[i].drugAddSalePrice = this.drugAddInfoOnePirce(list[i].DrugWarehouseInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryProfit)
418 418
               }else{

+ 13 - 13
src/xt_permission.js View File

@@ -12,19 +12,19 @@ const permissionWhiteList = loginWhiteList.concat(['/']) // 权限验证白名
12 12
 
13 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 29
   NProgress.start()
30 30
   // console.log(store.getters.current_role_urls.indexOf(to.path))