Browse Source

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

XMLWAN 4 years ago
parent
commit
3e90725605

+ 16 - 2
src/xt_pages/data/components/addDrugs.vue View File

@@ -43,7 +43,14 @@
43 43
               <el-input v-model="form.drug_spec" style="width:160px;" placeholder="" maxlength="30"></el-input>
44 44
             </el-form-item>
45 45
             <el-form-item label="药品类型 : " prop="drug_type">
46
-              <el-input v-model="form.drug_type" style="width:160px;" placeholder="" maxlength="30"></el-input>
46
+              <el-select v-model="form.drug_type" style="width:160px;" placeholder="请选择">
47
+                <el-option
48
+                  v-for="item,index in getDictionaryDataConfig('system','drug_type')"
49
+                  :key="index"
50
+                  :label="item.name"
51
+                  :value="item.id">
52
+                </el-option>
53
+              </el-select>
47 54
             </el-form-item>
48 55
             <el-form-item label="库存警戒:" prop="drug_stock_limit" >
49 56
               <el-input v-model="form.drug_stock_limit" style="width:160px;" placeholder="" maxlength="30"></el-input>
@@ -52,7 +59,14 @@
52 59
               <el-input v-model="form.drug_origin_place" style="width:160px;" placeholder="" maxlength="30"></el-input>
53 60
             </el-form-item>
54 61
             <el-form-item label="药品剂型 : " prop="drug_dosage_form" >
55
-              <el-input v-model="form.drug_dosage_form" style="width:160px;" placeholder="" maxlength="30"></el-input>
62
+              <el-select v-model="form.drug_dosage_form" style="width:160px;" placeholder="请选择">
63
+                <el-option
64
+                  v-for="item,index in getDictionaryDataConfig('system','drug_dosage_form')"
65
+                  :key="index"
66
+                  :label="item.name"
67
+                  :value="item.id">
68
+                </el-option>
69
+              </el-select>
56 70
             </el-form-item>
57 71
             <el-form-item label="医保等级 : " prop="medical_insurance_level" >
58 72
               <el-select v-model="form.medical_insurance_level" style="width:160px;" placeholder="请选择">

+ 1 - 1
src/xt_pages/data/components/consumables.vue View File

@@ -86,7 +86,7 @@
86 86
       <el-table-column prop="date" label="操作" width="300" align="center">
87 87
         <template slot-scope="scope">
88 88
           <el-button @click="handleGoodInfoEdit(scope.$index, scope.row)" type="primary" size="small">编辑</el-button>
89
-          <el-button type="primary" size="small" @click="clickSelfPayment(scope.row.id)">自付比例</el-button>
89
+          <!--<el-button type="primary" size="small" @click="clickSelfPayment(scope.row.id)">自付比例</el-button>-->
90 90
           <el-button type="danger" size="small" @click="handleGoodInfoDelete(scope.$index, scope.row)">删除</el-button>
91 91
         </template>
92 92
       </el-table-column>

+ 2 - 2
src/xt_pages/data/components/drugs.vue View File

@@ -71,13 +71,13 @@
71 71
       </el-table-column>
72 72
       <el-table-column label="状态" width="60" align="center">
73 73
         <template slot-scope="scope">
74
-          <div>{{scope.row.drug_status}}</div>
74
+          <div>{{scope.row.drug_status.indexOf('停用') == -1 ? '启用':'停用' }}</div>
75 75
         </template>
76 76
       </el-table-column>
77 77
       <el-table-column prop="date" label="操作" width="400" align="center">
78 78
         <template slot-scope="scope">
79 79
           <el-button @click="openForm(scope.row.id)" type="primary" size="small">编辑</el-button>
80
-          <el-button type="primary" size="small" @click="clickSelfPayment(scope.row.id)">自付比例</el-button>
80
+          <!--<el-button type="primary" size="small" @click="clickSelfPayment(scope.row.id)">自付比例</el-button>-->
81 81
           <!--<el-button type="primary" size="small" @click="clickMainTain">单位维护</el-button>-->
82 82
           <!--<el-button type="danger" size="small">删除</el-button>-->
83 83
         </template>

+ 7 - 29
src/xt_pages/stock/drugs/query.vue View File

@@ -264,49 +264,27 @@
264 264
         }
265 265
         return name;
266 266
       },
267
-      GetAllGoodType: function() {
268
-        GetAllGoodType().then(response => {
269
-          if (response.data.state == 0) {
270
-            this.$message.error(response.data.msg);
271
-            return false;
272
-          } else {
273
-            for (let i = 0; i < response.data.data.goodType.length; i++) {
274
-              this.goodType.push(response.data.data.goodType[i]);
275
-            }
276
-          }
277
-        });
278
-      },
279
-      GetAllGoodInfo: function() {
280
-        GetAllGoodInfo().then(response => {
281
-          if (response.data.state == 0) {
282
-            this.$message.error(response.data.msg);
283
-            return false;
284
-          } else {
285
-            for (let i = 0; i < response.data.data.goodInfo.length; i++) {
286
-              this.goodInfo.push(response.data.data.goodInfo[i]);
287
-            }
288
-          }
289
-        });
290
-      },
267
+
268
+
291 269
       handleBack: function() {
292 270
         this.$router.go(-1);
293 271
       },
294 272
       handleSizeChange(val) {
295 273
         this.limit = val;
296
-        this.GetAllStockQuery();
274
+        this.GetAllDrugStockQueryList();
297 275
       },
298 276
       handleCurrentChange(val) {
299 277
         this.page = val;
300
-        this.GetAllStockQuery();
278
+        this.GetAllDrugStockQueryList();
301 279
       },
302 280
       calculate: function(val) {
303 281
         return Math.round(parseFloat(val) * 100) / 100;
304 282
       },
305 283
       startTimeChange: function() {
306
-        this.GetAllStockQuery();
284
+        this.GetAllDrugStockQueryList();
307 285
       },
308 286
       endTimeChange: function() {
309
-        this.GetAllStockQuery();
287
+        this.GetAllDrugStockQueryList();
310 288
       },
311 289
       stockInCount: function(row) {
312 290
         let total = 0;
@@ -341,7 +319,7 @@
341 319
       showStockOutDetailDialog: function() {},
342 320
       showCancelStockDetailDialog: function() {},
343 321
       search: function() {
344
-        this.GetAllStockQuery();
322
+        this.GetAllDrugStockQueryList();
345 323
       },setting:function() {
346 324
         this.$refs.dialog.show()
347 325
       }