Browse Source

Merge branch 'master' of http://git.shengws.com/csx/Vue_New

XMLWAN 5 years ago
parent
commit
ca8a587464

+ 2 - 1
src/xt_pages/data/printTemplate.vue View File

@@ -222,8 +222,9 @@ export default {
222 222
               this.radio = template_id.toString();
223 223
               this.tempRadio = template_id.toString();
224 224
               // 同步
225
+              console.log(response.data.data.fileds)
225 226
               this.loading = false;
226
-               // store.dispatch("updateAllFiledConfigList", response.data.data.fileds).then(() => {});
227
+               store.dispatch("updateAllFiledConfigList", response.data.data.fileds).then(() => {});
227 228
               this.$message({
228 229
                 type: "success",
229 230
                 message: "切换成功"

File diff suppressed because it is too large
+ 2451 - 2452
src/xt_pages/dialysis/template/dialysisPrintOrderNine.vue


+ 7 - 0
src/xt_pages/user/components/PatientDetail.vue View File

@@ -391,6 +391,11 @@
391 391
           </el-radio-group>
392 392
         </el-form-item>
393 393
       </el-col>
394
+        <el-col :span="6" >
395
+          <el-form-item label="系统前透析次数 : " prop="first_dialysis_hospital">
396
+            <el-input v-model="form.user_sys_before_count" disabled></el-input>
397
+          </el-form-item>
398
+        </el-col>
394 399
       <el-col :span="6">
395 400
         <el-form-item label="首次诊治日期 : "  >
396 401
             <el-date-picker v-model="form.first_treatment_date" type="date" disabled format="yyyy-MM-dd" value-format="yyyy-MM-dd"></el-date-picker>
@@ -812,6 +817,8 @@ export default {
812 817
             // this.form.record_date = patietInfo.is_infectious
813 818
             this.form.response_result = patietInfo.response_result
814 819
             this.form.remind_cycle = patietInfo.remind_cycle
820
+            this.form.user_sys_before_count = patietInfo.user_sys_before_count
821
+
815 822
             this.infections = response.data.data.infections
816 823
             this.form.formItem = this.infections
817 824
             if (this.infections != null) {

+ 11 - 1
src/xt_pages/user/components/PatientForm.vue View File

@@ -587,6 +587,14 @@
587 587
               </el-form-item>
588 588
             </el-col>
589 589
 
590
+
591
+            <el-col :span="6" :style="isEdit?'width:360px':''">
592
+                <el-form-item label="系统前透析次数 : " prop="user_sys_before_count">
593
+                  <el-input v-model="form.user_sys_before_count"></el-input>
594
+              </el-form-item>
595
+            </el-col>
596
+
597
+
590 598
             <el-col :span="6" :style="isEdit?'width:360px':''">
591 599
               <el-form-item label="首次诊治时间 : ">
592 600
                 <el-date-picker
@@ -747,6 +755,7 @@ const defaultForm = {
747 755
   dialysis_age: "",
748 756
   expense_kind: "",
749 757
   contact_name: "",
758
+  user_sys_before_count:"",
750 759
 
751 760
   formItem: [
752 761
     {
@@ -1220,7 +1229,6 @@ export default {
1220 1229
                   this.$refs[formName].resetFields();
1221 1230
                   this.$store.dispatch("SetSubscibePatients");
1222 1231
                   var sub = this.$store.getters.xt_user.subscibe;
1223
-                  console.log(sub);
1224 1232
                   if (action !== "renew") {
1225 1233
                     this.$router.back(-1);
1226 1234
                   }
@@ -1387,6 +1395,8 @@ export default {
1387 1395
             this.form.homeAddress = patietInfo.home_address;
1388 1396
             this.form.work = patietInfo.work_unit;
1389 1397
             this.form.unit_address = patietInfo.unit_address;
1398
+            this.form.user_sys_before_count = patietInfo.user_sys_before_count;
1399
+
1390 1400
 
1391 1401
             if (patietInfo.profession > 0) {
1392 1402
               this.form.profession = patietInfo.profession;

+ 19 - 11
src/xt_pages/user/patient.vue View File

@@ -15,7 +15,7 @@
15 15
 	    <label class="title"><span class="name">日期查询</span> : </label>
16 16
        <el-date-picker size="small" v-model="listQuery.start_time"  prefix-icon="el-icon-date" @change="changeTime" :editable="false" style="width: 196px;" type="date" placeholder="选择日期时间" align="right"   format="yyyy-MM-dd" value-format="yyyy-MM-dd" > </el-date-picker>
17 17
        <span class="cellLine"> - </span>
18
-       <el-date-picker size="small" v-model="listQuery.end_time"  prefix-icon="el-icon-date" @change="changeTime" :editable="false" style="width: 196px;" type="date" placeholder="选择日期时间" align="right"   format="yyyy-MM-dd" value-format="yyyy-MM-dd"> </el-date-picker>       
18
+       <el-date-picker size="small" v-model="listQuery.end_time"  prefix-icon="el-icon-date" @change="changeTime" :editable="false" style="width: 196px;" type="date" placeholder="选择日期时间" align="right"   format="yyyy-MM-dd" value-format="yyyy-MM-dd"> </el-date-picker>
19 19
     </div>
20 20
     <div class="cell clearfix">
21 21
 	    <label class="title"><span class="name">排班班次</span> : </label>
@@ -95,9 +95,9 @@
95 95
         </el-table-column> -->
96 96
         <el-table-column align="center" label="全选" width="60px" type="selection" ></el-table-column>
97 97
         <el-table-column type="index" label="序号" width="60px" align="center"></el-table-column>
98
-        <el-table-column  label="透析号" min-width="80" property="dialysis_no" align="center"></el-table-column>         
98
+        <el-table-column  label="透析号" min-width="80" property="dialysis_no" align="center"></el-table-column>
99 99
         <el-table-column  label="住院号" min-width="80"  property="admission_number" align="center"> </el-table-column>
100
-        <el-table-column property="name" label="姓名" min-width="80" align="center"> 
100
+        <el-table-column property="name" label="姓名" min-width="80" align="center">
101 101
           <template slot-scope="scope" >
102 102
             <router-link :to="'/patients/edit/'+scope.row.id" style="color:#409eff" >{{scope.row.name}}</router-link>
103 103
           </template>
@@ -116,7 +116,11 @@
116 116
             <span v-else>未知</span>
117 117
           </template>
118 118
         </el-table-column>
119
-        <el-table-column property="total_dialysis" label="透析次数" min-width="94" align="center"> </el-table-column>
119
+        <el-table-column property="total_dialysis" label="透析次数" min-width="94" align="center">
120
+          <template slot-scope="scope" >
121
+            <span>{{getCount(scope.row)}}</span>
122
+          </template>
123
+        </el-table-column>
120 124
         <el-table-column min-width="150" label="二维码" align="center">
121 125
           <template slot-scope="scope"  type="text">
122 126
             <a style="color:#409eff"  v-if="scope.row.binding_state==1" @click="openWechatBindDialog">已绑定</a>
@@ -129,9 +133,9 @@
129 133
         </template>
130 134
         </el-table-column>
131 135
       </el-table>
132
-      
136
+
133 137
       <!-- <pagi-nation title="分页"></pagi-nation> -->
134
-      
138
+
135 139
       <el-pagination
136 140
         @size-change="handleSizeChange"
137 141
         @current-change="handleCurrentChange"
@@ -143,7 +147,7 @@
143 147
         layout="total, sizes, prev, pager, next, jumper"
144 148
         :total="total">
145 149
       </el-pagination>
146
-      
150
+
147 151
 
148 152
       <el-dialog
149 153
       title="微信绑定"
@@ -157,8 +161,8 @@
157 161
       </span>
158 162
     </el-dialog>
159 163
 
160
-    </div> 
161
-    
164
+    </div>
165
+
162 166
 </template>
163 167
 
164 168
 
@@ -282,6 +286,10 @@ export default {
282 286
     this.reimbursement_ways = this.$store.getters.reimbursement_ways;
283 287
   },
284 288
   methods: {
289
+    getCount(row){
290
+      console.log(row)
291
+      return row.total_dialysis + row.user_sys_before_count
292
+    },
285 293
     openWechatBindDialog(){
286 294
       this.bindWechatDialog = true;
287 295
     },
@@ -320,7 +328,7 @@ export default {
320 328
       this.sourceID = sourceID;
321 329
       this.lapsetoType = lapseto;
322 330
       this.listQuery.source = sourceID;
323
-      this.listQuery.lapseto = lapseto; 
331
+      this.listQuery.lapseto = lapseto;
324 332
       this.getList();
325 333
     },
326 334
     changeTime(){
@@ -345,7 +353,7 @@ export default {
345 353
         }
346 354
       });
347 355
     },
348
-    
356
+
349 357
   //  components:{
350 358
   //    pagiNation
351 359
   //  }

+ 7 - 1
src/xt_pages/user/patients.vue View File

@@ -265,11 +265,13 @@
265 265
           </template>
266 266
         </el-table-column>
267 267
         <el-table-column
268
-          property="total_dialysis"
269 268
           label="透析次数"
270 269
           min-width="94"
271 270
           align="center"
272 271
         >
272
+          <template slot-scope="scope" >
273
+            <span>{{getCount(scope.row)}}</span>
274
+          </template>
273 275
         </el-table-column>
274 276
         <!-- <el-table-column min-width="150" label="二维码" align="center">
275 277
         <template slot-scope="scope"  type="text">
@@ -574,6 +576,10 @@ export default {
574 576
   },
575 577
 
576 578
   methods: {
579
+    getCount(row){
580
+      console.log(row)
581
+      return row.total_dialysis + row.user_sys_before_count
582
+    },
577 583
     EditLapseto() {
578 584
       if (this.lapsetoForm.lapseto_time == "") {
579 585
         this.$message.error("请选择时间");