xdd il y a 6 jours
Parent
commit
82fb87ae47

+ 1 - 1
package.json

@@ -1,7 +1,7 @@
 {
   "name": "fs",
   "version": "1.1.0",
-  "description": "芳华佳选客户服务管理系统",
+  "description": "芳华客户服务管理系统",
   "author": "FS",
   "license": "MIT",
   "scripts": {

+ 1 - 1
src/layout/components/Sidebar/Logo.vue

@@ -26,7 +26,7 @@ export default {
   },
   data() {
     return {
-      title: '芳华佳选',
+      title: '芳华',
       logo: logoImg
     }
   }

+ 4 - 4
src/settings.js

@@ -1,19 +1,19 @@
 module.exports = {
-  title: '御君方管理总后台',
+  title: '芳华悦管理总后台',
+
 
- 
 
   /**
    * 是否系统布局配置
    */
   showSettings: false,
 
-  
+
   /**
    * 是否显示顶部导航
    */
    topNav: true,
- 
+
 
   /**
    * 是否显示 tagsView

+ 1 - 1
src/views/login.vue

@@ -1,7 +1,7 @@
 <template>
    <div class="login" id="loginBox">
     <div class="login-con">
-        <div class="title">芳华佳选客户服务管理系统</div>
+        <div class="title">芳华客户服务管理系统</div>
         <el-form   ref="loginForm" :model="loginForm" :rules="loginRules" class="login-form">
 
         <el-form-item prop="username">

+ 78 - 9
src/views/store/prescribe/index.vue

@@ -49,8 +49,8 @@
       <el-table-column label="病情描述(主诉)" align="center" prop="chiefComplaint" />
       <el-table-column label="现病史" align="center" prop="nowIllness" />
       <el-table-column label="既往史" align="center" prop="historyIllness" />
-      
-     
+
+
       <!-- <el-table-column label="体重" align="center" prop="weight" /> -->
       <el-table-column label="是否有过敏史" align="center" prop="isHistoryAllergic" />
       <!-- <el-table-column label="过敏史" align="center" prop="historyAllergic" /> -->
@@ -59,10 +59,10 @@
       <el-table-column label="是否是备孕/怀孕/哺乳期" align="center" prop="lactationFlag" />
       <el-table-column label="复诊凭证" align="center" prop="recordPic" width="120">
         <template slot-scope="scope">
-          <el-image 
+          <el-image
             v-if="scope.row.recordPic!=null"
             style="width: 50px; height: 50px"
-            :src="parsePhoto(scope.row.recordPic)[0]" 
+            :src="parsePhoto(scope.row.recordPic)[0]"
             :preview-src-list="parsePhoto(scope.row.recordPic)">
           </el-image>
         </template>
@@ -100,11 +100,19 @@
             @click="handleShowOrder(scope.row)"
             v-hasPermi="['store:prescribe:showOrder']"
           >查看订单</el-button>
-        
+
+          <el-button
+            size="mini"
+            type="text"
+            @click="handleDoctorDeal(scope.row)"
+            v-hasPermi="['store:prescribe:showOrder']"
+            v-if="scope.row.status === 0">
+            医生开方
+          </el-button>
         </template>
       </el-table-column>
     </el-table>
-    
+
     <pagination
       v-show="total>0"
       :total="total"
@@ -112,9 +120,27 @@
       :limit.sync="queryParams.pageSize"
       @pagination="getList"
     />
-    <el-dialog :title="show.title" v-if="show.open" :visible.sync="show.open" width="1000px" append-to-body>
+    <el-dialog :title="show.title" v-if="show.open" :visible.sync="show.open" width="1200px" append-to-body>
         <product-order  ref="order" />
     </el-dialog>
+    <el-dialog title="医生开方" v-if="show.doctorOpen" :visible.sync="show.doctorOpen" width="1000px" append-to-body>
+      <el-form :model="editForm" ref="editForm" :rules="editRules">
+        <el-form-item label="主诉" prop="chiefComplaint" required>
+          <el-input type="textarea" v-model="editForm.chiefComplaint"></el-input>
+        </el-form-item>
+
+        <el-form-item label="诊断" prop="diagnose" required>
+          <el-input type="textarea" v-model="editForm.diagnose">
+          </el-input>
+        </el-form-item>
+      </el-form>
+      <div slot="footer" class="dialog-footer">
+        <el-button type="primary" @click="handleDoctorUpdate">确 定</el-button>
+        <el-button type="danger" @click="handleDoctorUpdate">拒 绝</el-button>
+        <el-button @click="handleDoctorDealCancel">取 消</el-button>
+      </div>
+    </el-dialog>
+
   </div>
 </template>
 
@@ -129,8 +155,21 @@ export default {
     return {
       show:{
         open:false,
+        doctorOpen: false,
         title:"订单详情"
       },
+      editForm: {
+        chiefComplaint: '',
+        diagnose: ''
+      },
+      editRules: {
+        chiefComplaint: [
+          { required: true, message: "请输入主述", trigger: "blur" }
+        ],
+        diagnose: [
+          { required: true, message: "请输入诊断意见", trigger: "blur" }
+        ]
+      },
       prescribeStatusOptions:[],
       // 遮罩层
       loading: true,
@@ -196,6 +235,17 @@ export default {
     this.getList();
   },
   methods: {
+    handleDoctorDeal(row){
+      this.show.doctorOpen = true;
+      const prescribeId = row.prescribeId || this.ids
+      getPrescribe(prescribeId).then(response => {
+        this.form = response.data;
+        this.editForm.chiefComplaint = this.form.chiefComplaint;
+        this.editForm.diagnose = this.form.diagnose;
+        this.open = true;
+        this.title = "修改处方";
+      });
+    },
     handleShowOrder(row){
       this.show.open=true;
       const orderId = row.orderId ;
@@ -284,6 +334,26 @@ export default {
         this.title = "修改处方";
       });
     },
+    handleDoctorDealCancel(){
+      this.editForm.chiefComplaint = null;
+      this.editForm.diagnose = null;
+      this.show.doctorOpen = false;
+    },
+    handleDoctorUpdate(){
+      this.$refs['editForm'].validate(valid => {
+        if(valid) {
+          let updateData = {...this.form,chiefComplaint: this.editForm.chiefComplaint,diagnose: this.editForm.diagnose}
+          updatePrescribe(updateData).then(response => {
+            if (response.code === 200) {
+              this.msgSuccess("修改成功");
+              this.show.doctorOpen = false;
+              this.getList();
+              this.form = {};
+            }
+          });
+        }
+      })
+    },
     /** 提交按钮 */
     submitForm() {
       this.$refs["form"].validate(valid => {
@@ -338,5 +408,4 @@ export default {
   }
 };
 </script>
- 
-  
+

+ 15 - 0
src/views/store/storeProduct/index.vue

@@ -374,6 +374,21 @@
                     <el-input type="text" v-model="scope.row.groupBarCode"/>
                   </template>
                 </el-table-column>
+                <el-table-column prop="usageMethod" label="服用方法" align="center" width="200px">
+                  <template slot-scope="scope">
+                    <el-input type="text" v-model="scope.row.usageMethod"/>
+                  </template>
+                </el-table-column>
+                <el-table-column prop="frequency" label="一日几次" align="center" width="230px">
+                  <template slot-scope="scope">
+                    <el-input-number v-model="scope.row.frequency"/>
+                  </template>
+                </el-table-column>
+                <el-table-column prop="dosage" label="用药数量" align="center" width="230px">
+                  <template slot-scope="scope">
+                    <el-input-number v-model="scope.row.dosage"/>
+                  </template>
+                </el-table-column>
                 <el-table-column prop="weight" label="重量(KG)" align="center">
                   <template slot-scope="scope">
                     <el-input type="text" v-model="scope.row.weight"/>

+ 1 - 1
vue.config.js

@@ -13,7 +13,7 @@ function resolve(dir) {
   return path.join(__dirname, dir)
 }
 
-const name = defaultSettings.title || '芳华佳选' // 标题
+const name = defaultSettings.title || '芳华' // 标题
 
 const port = process.env.port || process.env.npm_config_port || 80 // 端口