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
               <el-input v-model="form.drug_spec" style="width:160px;" placeholder="" maxlength="30"></el-input>
43
               <el-input v-model="form.drug_spec" style="width:160px;" placeholder="" maxlength="30"></el-input>
44
             </el-form-item>
44
             </el-form-item>
45
             <el-form-item label="药品类型 : " prop="drug_type">
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
             </el-form-item>
54
             </el-form-item>
48
             <el-form-item label="库存警戒:" prop="drug_stock_limit" >
55
             <el-form-item label="库存警戒:" prop="drug_stock_limit" >
49
               <el-input v-model="form.drug_stock_limit" style="width:160px;" placeholder="" maxlength="30"></el-input>
56
               <el-input v-model="form.drug_stock_limit" style="width:160px;" placeholder="" maxlength="30"></el-input>
52
               <el-input v-model="form.drug_origin_place" style="width:160px;" placeholder="" maxlength="30"></el-input>
59
               <el-input v-model="form.drug_origin_place" style="width:160px;" placeholder="" maxlength="30"></el-input>
53
             </el-form-item>
60
             </el-form-item>
54
             <el-form-item label="药品剂型 : " prop="drug_dosage_form" >
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
             </el-form-item>
70
             </el-form-item>
57
             <el-form-item label="医保等级 : " prop="medical_insurance_level" >
71
             <el-form-item label="医保等级 : " prop="medical_insurance_level" >
58
               <el-select v-model="form.medical_insurance_level" style="width:160px;" placeholder="请选择">
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
       <el-table-column prop="date" label="操作" width="300" align="center">
86
       <el-table-column prop="date" label="操作" width="300" align="center">
87
         <template slot-scope="scope">
87
         <template slot-scope="scope">
88
           <el-button @click="handleGoodInfoEdit(scope.$index, scope.row)" type="primary" size="small">编辑</el-button>
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
           <el-button type="danger" size="small" @click="handleGoodInfoDelete(scope.$index, scope.row)">删除</el-button>
90
           <el-button type="danger" size="small" @click="handleGoodInfoDelete(scope.$index, scope.row)">删除</el-button>
91
         </template>
91
         </template>
92
       </el-table-column>
92
       </el-table-column>

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

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

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

264
         }
264
         }
265
         return name;
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
       handleBack: function() {
269
       handleBack: function() {
292
         this.$router.go(-1);
270
         this.$router.go(-1);
293
       },
271
       },
294
       handleSizeChange(val) {
272
       handleSizeChange(val) {
295
         this.limit = val;
273
         this.limit = val;
296
-        this.GetAllStockQuery();
274
+        this.GetAllDrugStockQueryList();
297
       },
275
       },
298
       handleCurrentChange(val) {
276
       handleCurrentChange(val) {
299
         this.page = val;
277
         this.page = val;
300
-        this.GetAllStockQuery();
278
+        this.GetAllDrugStockQueryList();
301
       },
279
       },
302
       calculate: function(val) {
280
       calculate: function(val) {
303
         return Math.round(parseFloat(val) * 100) / 100;
281
         return Math.round(parseFloat(val) * 100) / 100;
304
       },
282
       },
305
       startTimeChange: function() {
283
       startTimeChange: function() {
306
-        this.GetAllStockQuery();
284
+        this.GetAllDrugStockQueryList();
307
       },
285
       },
308
       endTimeChange: function() {
286
       endTimeChange: function() {
309
-        this.GetAllStockQuery();
287
+        this.GetAllDrugStockQueryList();
310
       },
288
       },
311
       stockInCount: function(row) {
289
       stockInCount: function(row) {
312
         let total = 0;
290
         let total = 0;
341
       showStockOutDetailDialog: function() {},
319
       showStockOutDetailDialog: function() {},
342
       showCancelStockDetailDialog: function() {},
320
       showCancelStockDetailDialog: function() {},
343
       search: function() {
321
       search: function() {
344
-        this.GetAllStockQuery();
322
+        this.GetAllDrugStockQueryList();
345
       },setting:function() {
323
       },setting:function() {
346
         this.$refs.dialog.show()
324
         this.$refs.dialog.show()
347
       }
325
       }