Browse Source

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

yq1 2 days ago
parent
commit
bbd03d7e3f

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

46
         </div>
46
         </div>
47
       </div>
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
       <div>
62
       <div>
50
         <el-button type="primary" @click="batchUpload()">批量上传</el-button>
63
         <el-button type="primary" @click="batchUpload()">批量上传</el-button>
51
         <el-button type="primary" @click="query()">查询</el-button>
64
         <el-button type="primary" @click="query()">查询</el-button>
103
         </template>
116
         </template>
104
       </el-table-column>
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
       <el-table-column align="center" prop="name" label="操作" width="200">
127
       <el-table-column align="center" prop="name" label="操作" width="200">
107
         <template slot-scope="scope">
128
         <template slot-scope="scope">
108
           <div>
129
           <div>
119
 
140
 
120
 
141
 
121
     </el-table>
142
     </el-table>
122
-    
143
+
123
     <el-pagination
144
     <el-pagination
124
       @size-change="handleSizeChange"
145
       @size-change="handleSizeChange"
125
       @current-change="handleCurrentChange"
146
       @current-change="handleCurrentChange"
126
       :page-size="10"
147
       :page-size="10"
127
       :page-sizes="[10, 20, 50, 100,500,1000,2000]"
148
       :page-sizes="[10, 20, 50, 100,500,1000,2000]"
128
       background
149
       background
150
+      layout="total, sizes, prev, pager, next, jumper"
129
       style="margin-top:20px;float: right"
151
       style="margin-top:20px;float: right"
130
       :total="total"
152
       :total="total"
131
     ></el-pagination>
153
     ></el-pagination>
176
       drugTypeList: [{id: 0, name: "全部"}],
198
       drugTypeList: [{id: 0, name: "全部"}],
177
       start_time: new Date(new Date().getFullYear(), new Date().getMonth(), 1).toLocaleDateString('en-CA'),
199
       start_time: new Date(new Date().getFullYear(), new Date().getMonth(), 1).toLocaleDateString('en-CA'),
178
       end_time: new Date(new Date().getFullYear(), new Date().getMonth() + 1, 0).toLocaleDateString('en-CA'),
200
       end_time: new Date(new Date().getFullYear(), new Date().getMonth() + 1, 0).toLocaleDateString('en-CA'),
179
-
201
+      is_settle:"0",
180
       tableData: [],
202
       tableData: [],
181
       change_type: "3",
203
       change_type: "3",
182
       selection: [],
204
       selection: [],
189
         {id: "1", name: '已上传'},
211
         {id: "1", name: '已上传'},
190
         {id: "2", name: '未上传'},
212
         {id: "2", name: '未上传'},
191
       ],
213
       ],
214
+      settle_items: [
215
+        {id: "0", name: '全部'},
216
+        {id: "2", name: '已结算'},
217
+        {id: "1", name: '未结算'},
218
+      ],
192
       patientList: [],
219
       patientList: [],
193
       drugList: [],
220
       drugList: [],
194
       dialogVisibleOne: false,
221
       dialogVisibleOne: false,
567
         page: this.page,
594
         page: this.page,
568
         limit: this.limit,
595
         limit: this.limit,
569
         is_sale: this.is_sale,
596
         is_sale: this.is_sale,
597
+        is_settle:this.is_settle,
570
 
598
 
571
       }
599
       }
572
       getHisDrugCodeQueryList(params).then(response => {
600
       getHisDrugCodeQueryList(params).then(response => {
582
           this.is_open = response.data.data.codeConfig.is_open
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
     changeStock(val) {
618
     changeStock(val) {
587
       this.is_sale = val
619
       this.is_sale = val

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

412
               list[i].drugAdd = this.drugAddInfo(list[i].DrugWarehouseInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryProfit)
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
               list[i].drugAddOne = this.drugAddInfoOne(list[i].DrugWarehouseInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryProfit)
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
                 list[i].drugAddPrice = ""
416
                 list[i].drugAddPrice = ""
417
                 list[i].drugAddSalePrice = this.drugAddInfoOnePirce(list[i].DrugWarehouseInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryProfit)
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
               }else{
418
               }else{

+ 13 - 13
src/xt_permission.js View File

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))