瀏覽代碼

11月14日 库存扣减更新

XMLWAN 3 年之前
父節點
當前提交
ffe8ae5828
共有 1 個文件被更改,包括 10 次插入2 次删除
  1. 10 2
      src/xt_pages/stock/drugs/components/drugOutDetail.vue

+ 10 - 2
src/xt_pages/stock/drugs/components/drugOutDetail.vue 查看文件

@@ -572,8 +572,16 @@ export default {
572 572
        for(let i=0;i<this.tableData.length;i++){
573 573
          if(this.tableData[i].is_total == 0){
574 574
             this.tableData[i].index = i+1
575
-      
576
-            this.tableData[i].drugtype = this.getTypeList(this.tableData[i].drugtype)
575
+            if(this.tableData[i].drug_type == 1){
576
+              this.tableData[i].drugtype = "西药"
577
+            }
578
+            if(this.tableData[i].drug_type == 2){
579
+              this.tableData[i].drugtype = "草药"
580
+            }
581
+            if(this.tableData[i].drug_type == 3){
582
+              this.tableData[i].drugtype = "成药"
583
+            }
584
+            // this.tableData[i].drugtype = this.getTypeList(this.tableData[i].drugtype)
577 585
             this.tableData[i].specification_name = this.tableData[i].dose + this.tableData[i].dose_unit +"*" + this.tableData[i].min_number + this.tableData[i].min_unit +  "/" + this.tableData[i].max_unit
578 586
             this.tableData[i].time = this.getTime(this.tableData[i].ctime)
579 587
             this.tableData[i].user_name = this.getAdminUser(this.tableData[i].creater)