Browse Source

方剂医嘱模板

XMLWAN 4 years ago
parent
commit
7d34c1849f
2 changed files with 5 additions and 4 deletions
  1. 1 0
      src/xt_pages/management/home.vue
  2. 4 4
      src/xt_pages/user/doctorAdvice.vue

+ 1 - 0
src/xt_pages/management/home.vue View File

4267
         selectBed(id).then(response => {
4267
         selectBed(id).then(response => {
4268
           if (response.data.state === 1) {
4268
           if (response.data.state === 1) {
4269
             var zone = response.data.data.zone
4269
             var zone = response.data.data.zone
4270
+            this.$forceUpdate()
4270
             this.userform.bed_number = zone.id
4271
             this.userform.bed_number = zone.id
4271
             this.userform.zone = zone.zone_id
4272
             this.userform.zone = zone.zone_id
4272
             console.log('zone', zone)
4273
             console.log('zone', zone)

+ 4 - 4
src/xt_pages/user/doctorAdvice.vue View File

165
             <span v-else></span>
165
             <span v-else></span>
166
           </template>
166
           </template>
167
         </el-table-column>
167
         </el-table-column>
168
+
168
         <el-table-column
169
         <el-table-column
169
           label="医嘱内容"
170
           label="医嘱内容"
170
           property="advice_name"
171
           property="advice_name"
191
                   @click.native="openStop(scope.$index, scope.row)"
192
                   @click.native="openStop(scope.$index, scope.row)"
192
                   >停止医嘱
193
                   >停止医嘱
193
                 </el-dropdown-item>
194
                 </el-dropdown-item>
195
+                
194
                 <el-dropdown-item
196
                 <el-dropdown-item
195
                   v-if="scope.row.advice_type == 3"
197
                   v-if="scope.row.advice_type == 3"
196
                   :disabled="
198
                   :disabled="
246
               </el-dropdown-menu>
248
               </el-dropdown-menu>
247
             </el-dropdown>
249
             </el-dropdown>
248
           </template>
250
           </template>
251
+
249
         </el-table-column>
252
         </el-table-column>
250
         <!-- <el-table-column  label="药品规格*数量" width="180"  property="drug_spec" align="center">
253
         <!-- <el-table-column  label="药品规格*数量" width="180"  property="drug_spec" align="center">
251
                     <template slot-scope="scope" >
254
                     <template slot-scope="scope" >
3169
       });
3172
       });
3170
     },
3173
     },
3171
     changeAdvice(selection) {
3174
     changeAdvice(selection) {
3172
-      console.log("溶剂", selection);
3173
       // if (this.adviceType == 3) {
3175
       // if (this.adviceType == 3) {
3174
       //   this.lstableData = selection
3176
       //   this.lstableData = selection
3175
       // } else if (this.adviceType == 1) {
3177
       // } else if (this.adviceType == 1) {
3190
       this.groupSelectRow = row;
3192
       this.groupSelectRow = row;
3191
     },
3193
     },
3192
     selectAdvice(selection, row) {
3194
     selectAdvice(selection, row) {
3193
-      console.log("row", row);
3194
-      console.log("selection");
3195
       if (this.adviceType == 3) {
3195
       if (this.adviceType == 3) {
3196
         this.lstableData = selection;
3196
         this.lstableData = selection;
3197
       } else if (this.adviceType == 1) {
3197
       } else if (this.adviceType == 1) {
3198
         this.cqtableData = selection;
3198
         this.cqtableData = selection;
3199
       }
3199
       }
3200
       if (this.adviceType != 3) {
3200
       if (this.adviceType != 3) {
3201
-
3202
         this.lstableData = [];
3201
         this.lstableData = [];
3203
       } else if (this.adviceType != 1) {
3202
       } else if (this.adviceType != 1) {
3204
         this.cqtableData = [];
3203
         this.cqtableData = [];
3232
     },
3231
     },
3233
     printThisInfo() {
3232
     printThisInfo() {
3234
       if (this.adviceType == 1) {
3233
       if (this.adviceType == 1) {
3234
+        console.log("长度", this.cqtableData.length);
3235
         if (this.cqtableData.length == 0) {
3235
         if (this.cqtableData.length == 0) {
3236
           this.$message.error("请勾选需要打印的医嘱!");
3236
           this.$message.error("请勾选需要打印的医嘱!");
3237
           return false;
3237
           return false;