Explorar el Código

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

csx hace 4 años
padre
commit
2d1094a946

+ 5 - 0
package-lock.json Ver fichero

3190
       "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-1.5.2.tgz",
3190
       "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-1.5.2.tgz",
3191
       "integrity": "sha512-95k0GDqvBjZavkuvzx/YqVLv/6YYa17fz6ILMSf7neqQITCPbnfEnQvEgMPNjH4kgobe7+WIL0yJEHku+H3qtQ=="
3191
       "integrity": "sha512-95k0GDqvBjZavkuvzx/YqVLv/6YYa17fz6ILMSf7neqQITCPbnfEnQvEgMPNjH4kgobe7+WIL0yJEHku+H3qtQ=="
3192
     },
3192
     },
3193
+    "default-passive-events": {
3194
+      "version": "2.0.0",
3195
+      "resolved": "https://registry.npmjs.org/default-passive-events/-/default-passive-events-2.0.0.tgz",
3196
+      "integrity": "sha512-eMtt76GpDVngZQ3ocgvRcNCklUMwID1PaNbCNxfpDXuiOXttSh0HzBbda1HU9SIUsDc02vb7g9+3I5tlqe/qMQ=="
3197
+    },
3193
     "define-properties": {
3198
     "define-properties": {
3194
       "version": "1.1.3",
3199
       "version": "1.1.3",
3195
       "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz",
3200
       "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz",

+ 1 - 0
package.json Ver fichero

43
     "clipboard": "^1.7.1",
43
     "clipboard": "^1.7.1",
44
     "codemirror": "5.32.0",
44
     "codemirror": "5.32.0",
45
     "connect": "3.6.6",
45
     "connect": "3.6.6",
46
+    "default-passive-events": "^2.0.0",
46
     "driver.js": "0.5.2",
47
     "driver.js": "0.5.2",
47
     "dropzone": "5.2.0",
48
     "dropzone": "5.2.0",
48
     "echarts": "3.8.5",
49
     "echarts": "3.8.5",

+ 5 - 2
src/api/device/device.js Ver fichero

120
     })
120
     })
121
 }
121
 }
122
 
122
 
123
-export function createDeviceNumber(number, zone_id, group_id) {
123
+export function createDeviceNumber(number, zone_id, group_id,sort) {
124
     const params = {
124
     const params = {
125
         number: number,
125
         number: number,
126
         zone: zone_id,
126
         zone: zone_id,
127
         group: group_id,
127
         group: group_id,
128
+        sort:sort,
128
     }
129
     }
130
+   
129
     return request({
131
     return request({
130
         url: '/api/device/number/create',
132
         url: '/api/device/number/create',
131
         method: 'post',
133
         method: 'post',
133
     })
135
     })
134
 }
136
 }
135
 
137
 
136
-export function modifyDeviceNumber(id, number, zone_id, group_id) {
138
+export function modifyDeviceNumber(id, number, zone_id, group_id,sort) {
137
     const params = {
139
     const params = {
138
         id: id,
140
         id: id,
139
         number: number,
141
         number: number,
140
         zone: zone_id,
142
         zone: zone_id,
141
         group: group_id,
143
         group: group_id,
144
+        sort:sort
142
     }
145
     }
143
     return request({
146
     return request({
144
         url: '/api/device/number/modify',
147
         url: '/api/device/number/modify',

+ 3 - 1
src/api/dialysis.js Ver fichero

241
 }
241
 }
242
 
242
 
243
 export function CreateGroupAdvice(id, groupno, advices) {
243
 export function CreateGroupAdvice(id, groupno, advices) {
244
-  console.log('中国人名', advices)
244
+ 
245
   return request({
245
   return request({
246
     url: '/api/advice_remind/create?id=' + id + '&groupno=' + groupno,
246
     url: '/api/advice_remind/create?id=' + id + '&groupno=' + groupno,
247
     method: 'post',
247
     method: 'post',
290
 
290
 
291
   })
291
   })
292
 }
292
 }
293
+
294
+

+ 2 - 0
src/main.js Ver fichero

29
 import * as filters from './filters' // global filters
29
 import * as filters from './filters' // global filters
30
 
30
 
31
 import * as voicePromptFun from './utils/voicePrompt' 
31
 import * as voicePromptFun from './utils/voicePrompt' 
32
+
33
+import 'default-passive-events'
32
 Vue.prototype.voicePrompt = voicePromptFun.voicePrompt  //语音提醒
34
 Vue.prototype.voicePrompt = voicePromptFun.voicePrompt  //语音提醒
33
 
35
 
34
 Vue.use(Element, {
36
 Vue.use(Element, {

+ 1 - 1
src/views/layout/components/Navbar.vue Ver fichero

312
               this.showWsErr = false;
312
               this.showWsErr = false;
313
             }
313
             }
314
             this.websocket.send("1");
314
             this.websocket.send("1");
315
-          }, 3000);
315
+          }, 55000);
316
         }
316
         }
317
         
317
         
318
       }).catch(error => {
318
       }).catch(error => {

+ 1 - 1
src/xt_pages/data/druguseTemplate.vue Ver fichero

1817
             var arr = this.templateForm.advice_name.split("(自备药)")
1817
             var arr = this.templateForm.advice_name.split("(自备药)")
1818
             this.templateForm.advice_name = arr[0]
1818
             this.templateForm.advice_name = arr[0]
1819
         }
1819
         }
1820
-        console.log("2222",this.templateForm)
1820
+        // console.log("2222",this.templateForm)
1821
 
1821
 
1822
         this.$refs[formName].validate(valid => {
1822
         this.$refs[formName].validate(valid => {
1823
           this.templateForm.single_dose = parseFloat(this.templateForm.single_dose)
1823
           this.templateForm.single_dose = parseFloat(this.templateForm.single_dose)

+ 25 - 5
src/xt_pages/device/number_main.vue Ver fichero

36
               label="所属分组"
36
               label="所属分组"
37
               align="center"
37
               align="center"
38
             ></el-table-column>
38
             ></el-table-column>
39
+            <el-table-column prop="sort" label="排序" align="center">
40
+                <template slot-scope="scope">
41
+                    {{scope.row.sort?scope.row.sort:""}}
42
+                </template>
43
+            </el-table-column>
39
             <el-table-column label="操作" align="center">
44
             <el-table-column label="操作" align="center">
40
               <template slot-scope="scope">
45
               <template slot-scope="scope">
41
                 <el-tooltip
46
                 <el-tooltip
133
               ></el-option>
138
               ></el-option>
134
             </el-select>
139
             </el-select>
135
           </el-form-item>
140
           </el-form-item>
141
+          <el-form-item label="排序:">
142
+              <el-input style="width:220px" v-model="number_form.sort"></el-input>
143
+          </el-form-item>
136
           <!-- <el-form-item>
144
           <!-- <el-form-item>
137
                     <el-button @click="cancelModifyDeviceNumber">取 消</el-button>
145
                     <el-button @click="cancelModifyDeviceNumber">取 消</el-button>
138
                     <el-button :disabled="$store.getters.xt_user.subscibe.state==3?true:false" type="primary" @click="editDeviceNumberSubmitAction">保存</el-button>
146
                     <el-button :disabled="$store.getters.xt_user.subscibe.state==3?true:false" type="primary" @click="editDeviceNumberSubmitAction">保存</el-button>
176
         id: 0,
184
         id: 0,
177
         number: "",
185
         number: "",
178
         zone: "",
186
         zone: "",
179
-        group: ""
187
+        group: "",
188
+        sort:"",
180
       },
189
       },
181
       formLabelWidth: "110px",
190
       formLabelWidth: "110px",
182
       showEditDeviceNumber: false,
191
       showEditDeviceNumber: false,
194
       this.loading = false;
203
       this.loading = false;
195
       var resp = rs.data;
204
       var resp = rs.data;
196
       if (resp.state === 1) {
205
       if (resp.state === 1) {
197
-        // console.log(resp)
198
         this.zones.push(...resp.data.zones);
206
         this.zones.push(...resp.data.zones);
199
         this.groups.push(...resp.data.groups);
207
         this.groups.push(...resp.data.groups);
200
         this.device_numbers.push(...resp.data.numbers);
208
         this.device_numbers.push(...resp.data.numbers);
209
+        
201
       } else {
210
       } else {
202
         this.$message.error(resp.msg);
211
         this.$message.error(resp.msg);
203
       }
212
       }
212
       this.number_form.number = row.number;
221
       this.number_form.number = row.number;
213
       this.number_form.zone = row.zone_id;
222
       this.number_form.zone = row.zone_id;
214
       this.number_form.group = row.group_id;
223
       this.number_form.group = row.group_id;
224
+      if(row.sort == 0){
225
+        this.number_form.sort = ""
226
+      }
227
+      if(row.sort != 0){
228
+        this.number_form.sort = row.sort
229
+      }
230
+     
215
       this.showEditDeviceNumber = true;
231
       this.showEditDeviceNumber = true;
216
     },
232
     },
217
     cancelModifyDeviceNumber() {
233
     cancelModifyDeviceNumber() {
219
       this.number_form.number = "";
235
       this.number_form.number = "";
220
       this.number_form.zone = "";
236
       this.number_form.zone = "";
221
       this.number_form.group = "";
237
       this.number_form.group = "";
238
+      this.number_form.sort = ""
222
       this.$refs.form_number.clearValidate();
239
       this.$refs.form_number.clearValidate();
223
       this.showEditDeviceNumber = false;
240
       this.showEditDeviceNumber = false;
224
     },
241
     },
229
             createDeviceNumber(
246
             createDeviceNumber(
230
               this.number_form.number,
247
               this.number_form.number,
231
               this.number_form.zone,
248
               this.number_form.zone,
232
-              this.number_form.group
249
+              this.number_form.group,
250
+              this.number_form.sort
233
             ).then(rs => {
251
             ).then(rs => {
234
               var resp = rs.data;
252
               var resp = rs.data;
235
               if (resp.state === 1) {
253
               if (resp.state === 1) {
236
                 var newNumber = resp.data.number;
254
                 var newNumber = resp.data.number;
237
                 this.device_numbers.push(newNumber);
255
                 this.device_numbers.push(newNumber);
238
-                this.cancelModifyDeviceNumber();
256
+                this.cancelModifyDeviceNumber();           
239
               } else {
257
               } else {
240
                 this.$message.error("床位号/机号已存在!");
258
                 this.$message.error("床位号/机号已存在!");
241
               }
259
               }
245
               this.number_form.id,
263
               this.number_form.id,
246
               this.number_form.number,
264
               this.number_form.number,
247
               this.number_form.zone,
265
               this.number_form.zone,
248
-              this.number_form.group
266
+              this.number_form.group,
267
+              this.number_form.sort
249
             ).then(rs => {
268
             ).then(rs => {
250
               var resp = rs.data;
269
               var resp = rs.data;
251
               // console.log(resp.data)
270
               // console.log(resp.data)
262
                     number.group_id = resp.data.number.group_id;
281
                     number.group_id = resp.data.number.group_id;
263
                     number.zone_name = resp.data.number.zone_name;
282
                     number.zone_name = resp.data.number.zone_name;
264
                     number.group_name = resp.data.number.group_name;
283
                     number.group_name = resp.data.number.group_name;
284
+                    number.sort = resp.data.number.sort;
265
                     break;
285
                     break;
266
                   }
286
                   }
267
                 }
287
                 }

+ 2 - 2
src/xt_pages/dialysis/components/allSummary.vue Ver fichero

298
               }
298
               }
299
 
299
 
300
 
300
 
301
-             console.log("2222222",arr)
301
+            //  console.log("2222222",arr)
302
 
302
 
303
 
303
 
304
               let newObj = {
304
               let newObj = {
323
 
323
 
324
               }
324
               }
325
               }
325
               }
326
-              console.log("list22222",this.list)
326
+              // console.log("list22222",this.list)
327
              }
327
              }
328
           })
328
           })
329
         },
329
         },

+ 2 - 4
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Ver fichero

3218
         const res = new Map();
3218
         const res = new Map();
3219
         return arr.filter((arr) => !res.has(arr.name) && res.set(arr.name, 1));
3219
         return arr.filter((arr) => !res.has(arr.name) && res.set(arr.name, 1));
3220
       },
3220
       },
3221
+     
3221
     },
3222
     },
3222
-    // created(){
3223
-    //   var org_id =  this.$store.getters.xt_user.template_info.org_id
3224
-    //   console.log("org_id-----",org_id)
3225
-    // },
3223
+  
3226
     watch: {
3224
     watch: {
3227
       'dialysisPrescription.dialysis_duration_hour': function() {
3225
       'dialysisPrescription.dialysis_duration_hour': function() {
3228
         let dialysis_duration_minute = 0
3226
         let dialysis_duration_minute = 0

+ 4 - 3
src/xt_pages/dialysis/details/index.vue Ver fichero

970
         if (resp.state == 1) {
970
         if (resp.state == 1) {
971
           var patient = resp.data.patient // 患者信息
971
           var patient = resp.data.patient // 患者信息
972
           var schedual = resp.data.schedual // 患者排班信息
972
           var schedual = resp.data.schedual // 患者排班信息
973
-          // console.log("患者排班信息99999999",schedual)
973
+          console.log("患者排班信息99999999",schedual)
974
           var prescription = resp.data.prescription // 透析处方
974
           var prescription = resp.data.prescription // 透析处方
975
           if (prescription != null) {
975
           if (prescription != null) {
976
             if (prescription.body_fluid == -2) {
976
             if (prescription.body_fluid == -2) {
1118
           
1118
           
1119
           this.his_is_open = resp.data.is_open_config.is_open
1119
           this.his_is_open = resp.data.is_open_config.is_open
1120
           console.log(this.his_is_open)
1120
           console.log(this.his_is_open)
1121
-
1122
-
1121
+          
1122
+          // var stockType =  resp.data.stockType
1123
+          // console.log("stockTYPW",stockType)
1123
           for (let i = 0; i <  this.doctor_advices.length; i++){
1124
           for (let i = 0; i <  this.doctor_advices.length; i++){
1124
             this.doctor_advices[i]['origin'] = 1
1125
             this.doctor_advices[i]['origin'] = 1
1125
           }
1126
           }

+ 6 - 10
src/xt_pages/dialysis/schedualPatient.vue Ver fichero

346
         clearInterval(timer)
346
         clearInterval(timer)
347
       })
347
       })
348
 
348
 
349
-      this.timers = setInterval(() => {
350
-        let obj = {
351
-            cmd: "queue/join",
352
-            data: {type:3,page:0,size:0},
353
-        };
354
-        this.websocketSend(obj)
355
-      }, 1000*50);
349
+      let obj = {
350
+          cmd: "queue/join",
351
+          data: {type:3,page:0,size:0},
352
+      };
353
+      this.websocketSend(obj)
356
     },
354
     },
357
     beforeDestroy(){
355
     beforeDestroy(){
358
-      clearInterval(this.timers);  // 清除定时器
359
-      this.timers = null
360
 
356
 
361
       let unObj = {
357
       let unObj = {
362
           cmd: "queue/unjoin",
358
           cmd: "queue/unjoin",
380
         this.websocket.onmessage = e => {
376
         this.websocket.onmessage = e => {
381
           let res = JSON.parse(e.data);
377
           let res = JSON.parse(e.data);
382
           // let res = re.data;
378
           // let res = re.data;
383
-          // console.log('res3333333333',res)
379
+          console.log('res3333333333',res)
384
           if(res.channel == 'queue/join'){
380
           if(res.channel == 'queue/join'){
385
             if(res.data.fisrtQueueInfo != null){
381
             if(res.data.fisrtQueueInfo != null){
386
               if(res.data.fisrtQueueInfo.create_time){
382
               if(res.data.fisrtQueueInfo.create_time){

+ 10 - 7
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue Ver fichero

535
                       </td>
535
                       </td>
536
                       <td>{{ monitor.venous_pressure ? monitor.venous_pressure : "" }}
536
                       <td>{{ monitor.venous_pressure ? monitor.venous_pressure : "" }}
537
                       </td>
537
                       </td>
538
-                      <td v-if="(dialysisOrder && monitor.operate_time > dialysisOrder.end_time ) || (dialysisOrder && monitor.operate_time < dialysisOrder.start_time)">
539
-                        {{ monitor.transmembrane_pressure ? monitor.transmembrane_pressure : "" }}
540
-                      </td>
541
-                      <td v-if="(dialysisOrder && monitor.operate_time <= dialysisOrder.end_time) && (dialysisOrder && monitor.operate_time >= dialysisOrder.start_time)">
542
-                        {{ monitor.transmembrane_pressure ? monitor.transmembrane_pressure : 0 }}
538
+                      <td>
539
+                        <span v-if="(dialysisOrder && monitor.operate_time > dialysisOrder.end_time ) || (dialysisOrder && monitor.operate_time < dialysisOrder.start_time)">
540
+                          {{ monitor.transmembrane_pressure ? monitor.transmembrane_pressure : "" }}
541
+                        </span>
542
+                        <span v-if="(dialysisOrder && monitor.operate_time <= dialysisOrder.end_time) && (dialysisOrder && monitor.operate_time >= dialysisOrder.start_time)">
543
+                          {{ monitor.transmembrane_pressure ? monitor.transmembrane_pressure : 0 }}
544
+                        </span>
543
                       </td>
545
                       </td>
544
                       <td>{{ monitor.dialysate_temperature ? monitor.dialysate_temperature : "" }}</td>
546
                       <td>{{ monitor.dialysate_temperature ? monitor.dialysate_temperature : "" }}</td>
545
-                      <td>{{ monitor.sodium_concentration ? monitor.sodium_concentration : "" }}</td>
547
+                      <td>{{ monitor.conductivity ? monitor.conductivity : "" }}
548
+                      </td>
546
                       <td v-if="(dialysisOrder && monitor.operate_time > dialysisOrder.end_time) || (dialysisOrder && monitor.operate_time < dialysisOrder.start_time)">
549
                       <td v-if="(dialysisOrder && monitor.operate_time > dialysisOrder.end_time) || (dialysisOrder && monitor.operate_time < dialysisOrder.start_time)">
547
                         {{ monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : "" }}
550
                         {{ monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : "" }}
548
                       </td>
551
                       </td>
1340
           this.predialysis.blood_access_part_opera_id
1343
           this.predialysis.blood_access_part_opera_id
1341
         )
1344
         )
1342
         this.afterdialysis = response.data.data.AssessmentAfterDislysis
1345
         this.afterdialysis = response.data.data.AssessmentAfterDislysis
1343
-        console.log('透后体重', this.afterdialysis)
1346
+        // console.log('透后体重', this.afterdialysis)
1344
         this.lastafterdialysis = response.data.data.assessmentAfterDislysis
1347
         this.lastafterdialysis = response.data.data.assessmentAfterDislysis
1345
         this.operators = response.data.data.operators
1348
         this.operators = response.data.data.operators
1346
         console.log('operators', this.operators)
1349
         console.log('operators', this.operators)

+ 2 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderThirty.vue Ver fichero

146
                 <td width="80">透析前体重:</td>
146
                 <td width="80">透析前体重:</td>
147
                 <td width="70">
147
                 <td width="70">
148
                   <div class="under-line">
148
                   <div class="under-line">
149
-                    &nbsp;{{ predialysis.weight_before ? predialysis.weight_before : "" }}
149
+                    &nbsp;{{ predialysis.weight_before ? predialysis.weight_before : "未称重" }}
150
                   </div>
150
                   </div>
151
                 </td>
151
                 </td>
152
                 <td width="35">kg</td>
152
                 <td width="35">kg</td>
430
                     <td width="30"></td>
430
                     <td width="30"></td>
431
                     <td width='70'>透后体重:</td>
431
                     <td width='70'>透后体重:</td>
432
                     <td width="50">
432
                     <td width="50">
433
-                      <div class="under-line">&nbsp;{{ afterdialysis.weight_after ? afterdialysis.weight_after : "" }}</div>
433
+                      <div class="under-line">&nbsp;{{ afterdialysis.weight_after ? afterdialysis.weight_after : "未称重" }}</div>
434
                     </td>
434
                     </td>
435
                     <td width="10">Kg</td>
435
                     <td width="10">Kg</td>
436
                     <td></td>
436
                     <td></td>

+ 8 - 10
src/xt_pages/dialysis/template/DialysisPrintOrderTwentyFour.vue Ver fichero

1
 <template>
1
 <template>
2
   <div id="dialysis-print-box">
2
   <div id="dialysis-print-box">
3
     <div id='new-dialysis-1' class="dialysis-print-order">
3
     <div id='new-dialysis-1' class="dialysis-print-order">
4
-      <div class="order-yy-name"></div>
5
-      <div class="order-title">{{ orgname }} 血液净化治疗记录单</div>
6
-      <table class="table-box" style="margin-top: 10px;">
4
+      <div class="order-yy-name" style="font-size:28px;font-weight:bold;">{{ orgname }}</div>
5
+      <div class="order-title">血液净化治疗记录单</div>
6
+      <table class="table-box">
7
         <tbody>
7
         <tbody>
8
           <tr>
8
           <tr>
9
             <td width="50">姓 名:</td>
9
             <td width="50">姓 名:</td>
93
             </td>
93
             </td>
94
             <td width='30'></td>
94
             <td width='30'></td>
95
             <td width="30">机位</td>
95
             <td width="30">机位</td>
96
-            <td width="50">
96
+            <td width="120">
97
                 <div class="under-line">&nbsp;{{ getNumber() }}</div>
97
                 <div class="under-line">&nbsp;{{ getNumber() }}</div>
98
             </td>
98
             </td>
99
             <td width="20">号</td>
99
             <td width="20">号</td>
100
-            
101
-            <td width="20"></td>
102
 
100
 
103
             <td></td>
101
             <td></td>
104
 
102
 
168
                       </div>
166
                       </div>
169
                     </td>
167
                     </td>
170
                     <td width="100">
168
                     <td width="100">
171
-                        <div class="under-line">{{ predialysis.hemorrhage_other ? predialysis.hemorrhage_other : '' }}</div>
169
+                        <div class="under-line">&nbsp;{{ predialysis.hemorrhage_other ? predialysis.hemorrhage_other : '' }}</div>
172
                     </td>
170
                     </td>
173
                     <td></td>
171
                     <td></td>
174
                   </tr>
172
                   </tr>
376
                     <td width='50'>血流量</td>
374
                     <td width='50'>血流量</td>
377
                     <td width="220">
375
                     <td width="220">
378
                       <div>
376
                       <div>
379
-                        <label-box :isChecked="predialysis.catheter.indexOf('血流量-好') > -1 ? true : false" showValue="干洁"></label-box>
377
+                        <label-box :isChecked="predialysis.catheter.indexOf('血流量-好') > -1 ? true : false" showValue=""></label-box>
380
                         &nbsp;
378
                         &nbsp;
381
                         <label-box :isChecked="predialysis.catheter.indexOf('血流量差-A') > -1 ? true : false" showValue="A"></label-box>
379
                         <label-box :isChecked="predialysis.catheter.indexOf('血流量差-A') > -1 ? true : false" showValue="A"></label-box>
382
-                        &nbsp;
380
+                        /
383
                         <label-box :isChecked="predialysis.catheter.indexOf('血流量差-V') > -1 ? true : false" showValue="V"></label-box>
381
                         <label-box :isChecked="predialysis.catheter.indexOf('血流量差-V') > -1 ? true : false" showValue="V"></label-box>
384
-                        &nbsp;
382
+                        &nbsp;
385
                         <label-box :isChecked="predialysis.catheter.indexOf('血流量-AV反接') > -1 ? true : false" showValue="AV反接"></label-box>
383
                         <label-box :isChecked="predialysis.catheter.indexOf('血流量-AV反接') > -1 ? true : false" showValue="AV反接"></label-box>
386
                       </div>
384
                       </div>
387
                     </td>
385
                     </td>

+ 32 - 22
src/xt_pages/sign/lineUp.vue Ver fichero

43
                 <div class="lineUpMain">
43
                 <div class="lineUpMain">
44
                     <div class="lineUpMainLeft">
44
                     <div class="lineUpMainLeft">
45
                         <div class="lineUpMainLeftTitle">
45
                         <div class="lineUpMainLeftTitle">
46
-                            <p style="width:12%">排号</p>
46
+                            <p style="width:12%">排号</p>
47
                             <p style="width:14%">姓名</p>
47
                             <p style="width:14%">姓名</p>
48
                             <p style="width:14%">病例号</p>
48
                             <p style="width:14%">病例号</p>
49
                             <p style="width:14%">床位号</p>
49
                             <p style="width:14%">床位号</p>
53
                         </div>
53
                         </div>
54
                         <div class="lineUpList">
54
                         <div class="lineUpList">
55
                             <div class="lineUpListOne" v-for="(item,index) in lineUpList" :key="index">
55
                             <div class="lineUpListOne" v-for="(item,index) in lineUpList" :key="index">
56
-                                <p style="width:12%">{{ item.queue_no }}</p>
56
+                                <p style="width:12%">
57
+                                    <span v-if="item.schedule_type == 1">上午</span>
58
+                                    <span v-if="item.schedule_type == 2">下午</span>
59
+                                    <span v-if="item.schedule_type == 3">晚上</span>
60
+                                    {{ item.queue_no }}号
61
+                                </p>
57
                                 <p style="width:14%">{{ item.patient_name }}</p>
62
                                 <p style="width:14%">{{ item.patient_name }}</p>
58
                                 <p style="width:14%">{{ item.dialysis_no }}</p>
63
                                 <p style="width:14%">{{ item.dialysis_no }}</p>
59
                                 <p style="width:14%">{{ item.partition_name + item.bed_name }}</p>
64
                                 <p style="width:14%">{{ item.partition_name + item.bed_name }}</p>
76
                                 <div class="callingTop" style="margin-bottom:10px;">
81
                                 <div class="callingTop" style="margin-bottom:10px;">
77
                                     <div class="callingTopTip"><span style="margin: 0 auto;">正在<br />接诊</span></div>
82
                                     <div class="callingTopTip"><span style="margin: 0 auto;">正在<br />接诊</span></div>
78
                                     <div class="callingContent">
83
                                     <div class="callingContent">
79
-                                        <p style="margin:50px 0 14px;"><span v-for="(item,index) in receivingPatient.slice(0,3)" :key="index">{{ item.patient_name }}、</span></p>
80
-                                        <p><span v-for="(item,index) in receivingPatient.slice(3,6)" :key="index">{{ item.patient_name }}、</span></p>
84
+                                        <p style="margin:50px 0 14px;"><span v-for="(item,index) in (receivingPatient || '').slice(0,3)" :key="index">{{ item.patient_name }}、</span></p>
85
+                                        <p><span v-for="(item,index) in (receivingPatient || '').slice(3,6)" :key="index">{{ item.patient_name }}、</span></p>
81
                                     </div>
86
                                     </div>
82
                                 </div>
87
                                 </div>
83
                                 <div class="callingTop" style="border-radius: 0 0 15px 0;">
88
                                 <div class="callingTop" style="border-radius: 0 0 15px 0;">
84
                                     <div class="callingTopTip"><span style="margin: 0 auto;">等待<br />接诊</span></div>
89
                                     <div class="callingTopTip"><span style="margin: 0 auto;">等待<br />接诊</span></div>
85
                                     <div class="callingContent">
90
                                     <div class="callingContent">
86
-                                        <p style="margin:50px 0 14px;"><span v-for="(item,index) in waitDoctorList.slice(0,3)" :key="index">{{ item.patient_name }}、</span></p>
87
-                                        <p><span v-for="(item,index) in waitDoctorList.slice(3,6)" :key="index">{{ item.patient_name }}、</span></p>
91
+                                        <p style="margin:50px 0 14px;"><span v-for="(item,index) in (waitDoctorList || '').slice(0,3)" :key="index">{{ item.patient_name }}、</span></p>
92
+                                        <p><span v-for="(item,index) in (waitDoctorList || '').slice(3,6)" :key="index">{{ item.patient_name }}、</span></p>
88
                                     </div>
93
                                     </div>
89
                                 </div>
94
                                 </div>
90
                             </div>
95
                             </div>
95
                                 <div class="callingTop" style="margin-bottom:10px;">
100
                                 <div class="callingTop" style="margin-bottom:10px;">
96
                                     <div class="callingTopTip newCallingTopTip"><span style="margin: 0 auto;">正在<br />叫号</span></div>
101
                                     <div class="callingTopTip newCallingTopTip"><span style="margin: 0 auto;">正在<br />叫号</span></div>
97
                                     <div class="callingContent newCallingContent">
102
                                     <div class="callingContent newCallingContent">
98
-                                        <p style="margin:50px 0 14px;"><span v-for="(item,index) in upPatientList.slice(0,3)" :key="index">{{ item.patient_name }}、</span></p>
99
-                                        <p><span v-for="(item,index) in upPatientList.slice(3,6)" :key="index">{{ item.patient_name }}、</span></p>
103
+                                        <p style="margin:50px 0 14px;"><span v-for="(item,index) in (upPatientList || '').slice(0,3)" :key="index">{{ item.patient_name }}、</span></p>
104
+                                        <p><span v-for="(item,index) in (upPatientList || '').slice(3,6)" :key="index">{{ item.patient_name }}、</span></p>
100
                                     </div>
105
                                     </div>
101
                                 </div>
106
                                 </div>
102
                                 <div class="callingTop" style="border-radius: 0 0 15px 0;">
107
                                 <div class="callingTop" style="border-radius: 0 0 15px 0;">
103
                                     <div class="callingTopTip newCallingTopTip"><span style="margin: 0 auto;">等待<br />叫号</span></div>
108
                                     <div class="callingTopTip newCallingTopTip"><span style="margin: 0 auto;">等待<br />叫号</span></div>
104
                                     <div class="callingContent newCallingContent">
109
                                     <div class="callingContent newCallingContent">
105
-                                        <p style="margin:50px 0 14px;"><span v-for="(item,index) in receivingPatient.slice(0,3)" :key="index">{{ item.patient_name }}、</span></p>
106
-                                        <p><span v-for="(item,index) in receivingPatient.slice(3,6)" :key="index">{{ item.patient_name }}、</span></p>
110
+                                        <p style="margin:50px 0 14px;"><span v-for="(item,index) in (receivingPatient || '').slice(0,3)" :key="index">{{ item.patient_name }}、</span></p>
111
+                                        <p><span v-for="(item,index) in (receivingPatient || '').slice(3,6)" :key="index">{{ item.patient_name }}、</span></p>
107
                                     </div>
112
                                     </div>
108
                                 </div>
113
                                 </div>
109
                             </div>
114
                             </div>
122
                 <div class="lineUpMain">
127
                 <div class="lineUpMain">
123
                     <div class="lineUpMainLeft">
128
                     <div class="lineUpMainLeft">
124
                         <div class="lineUpMainLeftTitle">
129
                         <div class="lineUpMainLeftTitle">
125
-                            <p style="width:12%">排号</p>
130
+                            <p style="width:12%">排号</p>
126
                             <p style="width:14%">姓名</p>
131
                             <p style="width:14%">姓名</p>
127
                             <p style="width:14%">病例号</p>
132
                             <p style="width:14%">病例号</p>
128
                             <p style="width:14%">床位号</p>
133
                             <p style="width:14%">床位号</p>
132
                         </div>
137
                         </div>
133
                         <div class="lineUpList">
138
                         <div class="lineUpList">
134
                             <div class="lineUpListOne" v-for="(item,index) in lineUpList" :key="index">
139
                             <div class="lineUpListOne" v-for="(item,index) in lineUpList" :key="index">
135
-                                <p style="width:12%">{{ item.queue_no }}</p>
140
+                                <p style="width:12%">
141
+                                    <span v-if="item.schedule_type == 1">上午</span>
142
+                                    <span v-if="item.schedule_type == 2">下午</span>
143
+                                    <span v-if="item.schedule_type == 3">晚上</span>
144
+                                    {{ item.queue_no }}号
145
+                                </p>
136
                                 <p style="width:14%">{{ item.patient_name }}</p>
146
                                 <p style="width:14%">{{ item.patient_name }}</p>
137
                                 <p style="width:14%">{{ item.dialysis_no }}</p>
147
                                 <p style="width:14%">{{ item.dialysis_no }}</p>
138
                                 <p style="width:14%">{{ item.partition_name + item.bed_name }}</p>
148
                                 <p style="width:14%">{{ item.partition_name + item.bed_name }}</p>
155
                                 <div class="callingTop" style="margin-bottom:10px;">
165
                                 <div class="callingTop" style="margin-bottom:10px;">
156
                                     <div class="callingTopTip"><span style="margin: 0 auto;">正在<br />接诊</span></div>
166
                                     <div class="callingTopTip"><span style="margin: 0 auto;">正在<br />接诊</span></div>
157
                                     <div class="callingContent">
167
                                     <div class="callingContent">
158
-                                        <p style="margin:50px 0 14px;"><span v-for="(item,index) in receivingPatient.slice(0,3)" :key="index">{{ item.patient_name }}、</span></p>
159
-                                        <p><span v-for="(item,index) in receivingPatient.slice(3,6)" :key="index">{{ item.patient_name }}、</span></p>
168
+                                        <p style="margin:50px 0 14px;"><span v-for="(item,index) in (receivingPatient || '').slice(0,3)" :key="index">{{ item.patient_name }}、</span></p>
169
+                                        <p><span v-for="(item,index) in (receivingPatient || '').slice(3,6)" :key="index">{{ item.patient_name }}、</span></p>
160
                                     </div>
170
                                     </div>
161
                                 </div>
171
                                 </div>
162
                                 <div class="callingTop" style="border-radius: 0 0 15px 0;">
172
                                 <div class="callingTop" style="border-radius: 0 0 15px 0;">
163
                                     <div class="callingTopTip"><span style="margin: 0 auto;">等待<br />接诊</span></div>
173
                                     <div class="callingTopTip"><span style="margin: 0 auto;">等待<br />接诊</span></div>
164
                                     <div class="callingContent">
174
                                     <div class="callingContent">
165
-                                        <p style="margin:50px 0 14px;"><span v-for="(item,index) in waitDoctorList.slice(0,3)" :key="index">{{ item.patient_name }}、</span></p>
166
-                                        <p><span v-for="(item,index) in waitDoctorList.slice(3,6)" :key="index">{{ item.patient_name }}、</span></p>
175
+                                        <p style="margin:50px 0 14px;"><span v-for="(item,index) in (waitDoctorList || '').slice(0,3)" :key="index">{{ item.patient_name }}、</span></p>
176
+                                        <p><span v-for="(item,index) in (waitDoctorList || '').slice(3,6)" :key="index">{{ item.patient_name }}、</span></p>
167
                                     </div>
177
                                     </div>
168
                                 </div>
178
                                 </div>
169
                             </div>
179
                             </div>
174
                                 <div class="callingTop" style="margin-bottom:10px;">
184
                                 <div class="callingTop" style="margin-bottom:10px;">
175
                                     <div class="callingTopTip newCallingTopTip"><span style="margin: 0 auto;">正在<br />叫号</span></div>
185
                                     <div class="callingTopTip newCallingTopTip"><span style="margin: 0 auto;">正在<br />叫号</span></div>
176
                                     <div class="callingContent newCallingContent">
186
                                     <div class="callingContent newCallingContent">
177
-                                        <p style="margin:50px 0 14px;"><span v-for="(item,index) in upPatientList.slice(0,3)" :key="index">{{ item.patient_name }}、</span></p>
178
-                                        <p><span v-for="(item,index) in upPatientList.slice(3,6)" :key="index">{{ item.patient_name }}、</span></p>
187
+                                        <p style="margin:50px 0 14px;"><span v-for="(item,index) in (upPatientList || '').slice(0,3)" :key="index">{{ item.patient_name }}、</span></p>
188
+                                        <p><span v-for="(item,index) in (upPatientList || '').slice(3,6)" :key="index">{{ item.patient_name }}、</span></p>
179
                                     </div>
189
                                     </div>
180
                                 </div>
190
                                 </div>
181
                                 <div class="callingTop" style="border-radius: 0 0 15px 0;">
191
                                 <div class="callingTop" style="border-radius: 0 0 15px 0;">
182
                                     <div class="callingTopTip newCallingTopTip"><span style="margin: 0 auto;">等待<br />叫号</span></div>
192
                                     <div class="callingTopTip newCallingTopTip"><span style="margin: 0 auto;">等待<br />叫号</span></div>
183
                                     <div class="callingContent newCallingContent">
193
                                     <div class="callingContent newCallingContent">
184
-                                        <p style="margin:50px 0 14px;"><span v-for="(item,index) in receivingPatient.slice(0,3)" :key="index">{{ item.patient_name }}、</span></p>
185
-                                        <p><span v-for="(item,index) in receivingPatient.slice(3,6)" :key="index">{{ item.patient_name }}、</span></p>
194
+                                        <p style="margin:50px 0 14px;"><span v-for="(item,index) in (receivingPatient || '').slice(0,3)" :key="index">{{ item.patient_name }}、</span></p>
195
+                                        <p><span v-for="(item,index) in (receivingPatient || '').slice(3,6)" :key="index">{{ item.patient_name }}、</span></p>
186
                                     </div>
196
                                     </div>
187
                                 </div>
197
                                 </div>
188
                             </div>
198
                             </div>
284
                 this.page++
294
                 this.page++
285
                 let obj = {
295
                 let obj = {
286
                     cmd: "queue/queuelist",
296
                     cmd: "queue/queuelist",
287
-                    data: {page:this.page,size:6}
297
+                    data: {page:this.page,size:6,sort:0}
288
                 };
298
                 };
289
                 this.websocketSend(obj)
299
                 this.websocketSend(obj)
290
                 setTimeout(() => {
300
                 setTimeout(() => {
295
                 this.page = 1
305
                 this.page = 1
296
                 let a = {
306
                 let a = {
297
                     cmd: "queue/queuelist",
307
                     cmd: "queue/queuelist",
298
-                    data: {page:this.page,size:6}
308
+                    data: {page:this.page,size:6,sort:0}
299
                 };
309
                 };
300
                 this.websocketSend(a)
310
                 this.websocketSend(a)
301
                 setTimeout(() => {
311
                 setTimeout(() => {

+ 49 - 26
src/xt_pages/sign/signIn.vue Ver fichero

44
                     <div style="display: flex;justify-content: space-between;padding:10px;">
44
                     <div style="display: flex;justify-content: space-between;padding:10px;">
45
                         <div class="signInMainLeft">
45
                         <div class="signInMainLeft">
46
                             <div class="signInMainLeftTitle">
46
                             <div class="signInMainLeftTitle">
47
-                                <p>排号</p>
47
+                                <p>排号</p>
48
                                 <p>姓名</p>
48
                                 <p>姓名</p>
49
                                 <p>病历号</p>
49
                                 <p>病历号</p>
50
                                 <p>签到时间</p>
50
                                 <p>签到时间</p>
51
                             </div>
51
                             </div>
52
                             <div class="signInList">
52
                             <div class="signInList">
53
                                 <div class="signInListOne" v-for="(item,index) in signInList" :key="index">
53
                                 <div class="signInListOne" v-for="(item,index) in signInList" :key="index">
54
-                                    <p>{{ item.queue_no }}</p>
54
+                                    <p>
55
+                                        <span v-if="item.schedule_type == 1">上午</span>
56
+                                        <span v-if="item.schedule_type == 2">下午</span>
57
+                                        <span v-if="item.schedule_type == 3">晚上</span>
58
+                                        {{ item.queue_no }}号
59
+                                    </p>
55
                                     <p>{{ item.patient_name }}</p>
60
                                     <p>{{ item.patient_name }}</p>
56
                                     <p>{{ item.dialysis_no }}</p>
61
                                     <p>{{ item.dialysis_no }}</p>
57
                                     <p>{{ item.create_time }}</p>
62
                                     <p>{{ item.create_time }}</p>
61
                         <div class="signInMainRight">
66
                         <div class="signInMainRight">
62
                             <div class="signInMainRightTitle"><span style="margin:0 auto;" v-if='Object.keys(queueInfo).length>0'>{{ queueInfo.patient_name }}</span></div>
67
                             <div class="signInMainRightTitle"><span style="margin:0 auto;" v-if='Object.keys(queueInfo).length>0'>{{ queueInfo.patient_name }}</span></div>
63
                             <div class="signInMainRightContent">
68
                             <div class="signInMainRightContent">
64
-                                <p style="margin: 0 auto;display:flex;align-items: center;" v-if='Object.keys(queueInfo).length>0'><span>排号&nbsp;</span><span style="font-size:180px;">{{ queueInfo.queue_no }}</span></p>
69
+                                <p style="margin: 0 auto;display:flex;align-items: center;" v-if='Object.keys(queueInfo).length>0'><span>排号&nbsp;</span><span style="font-size:180px;">{{ queueInfo.queue_no }}</span></p>
65
                             </div>
70
                             </div>
66
                             <div class="signInMianRightBottom"><span style="margin:0 auto;" v-if='Object.keys(queueInfo).length>0'>签到成功</span></div>
71
                             <div class="signInMianRightBottom"><span style="margin:0 auto;" v-if='Object.keys(queueInfo).length>0'>签到成功</span></div>
67
                         </div>
72
                         </div>
82
                     <div style="display: flex;justify-content: space-between;padding:10px;">
87
                     <div style="display: flex;justify-content: space-between;padding:10px;">
83
                         <div class="signInMainLeft">
88
                         <div class="signInMainLeft">
84
                             <div class="signInMainLeftTitle">
89
                             <div class="signInMainLeftTitle">
85
-                                <p>排号</p>
90
+                                <p>排号</p>
86
                                 <p>姓名</p>
91
                                 <p>姓名</p>
87
                                 <p>病历号</p>
92
                                 <p>病历号</p>
88
                                 <p>签到时间</p>
93
                                 <p>签到时间</p>
89
                             </div>
94
                             </div>
90
                             <div class="signInList">
95
                             <div class="signInList">
91
                                 <div class="signInListOne" v-for="(item,index) in signInList" :key="index">
96
                                 <div class="signInListOne" v-for="(item,index) in signInList" :key="index">
92
-                                    <p>{{ item.queue_no }}</p>
97
+                                    <p>
98
+                                        <span v-if="item.schedule_type == 1">上午</span>
99
+                                        <span v-if="item.schedule_type == 2">下午</span>
100
+                                        <span v-if="item.schedule_type == 3">晚上</span>
101
+                                        {{ item.queue_no }}号
102
+                                    </p>
93
                                     <p>{{ item.patient_name }}</p>
103
                                     <p>{{ item.patient_name }}</p>
94
                                     <p>{{ item.dialysis_no }}</p>
104
                                     <p>{{ item.dialysis_no }}</p>
95
                                     <p>{{ item.create_time }}</p>
105
                                     <p>{{ item.create_time }}</p>
99
                         <div class="signInMainRight">
109
                         <div class="signInMainRight">
100
                             <div class="signInMainRightTitle"><span style="margin:0 auto;" v-if='Object.keys(queueInfo).length>0'>{{ queueInfo.patient_name }}</span></div>
110
                             <div class="signInMainRightTitle"><span style="margin:0 auto;" v-if='Object.keys(queueInfo).length>0'>{{ queueInfo.patient_name }}</span></div>
101
                             <div class="signInMainRightContent">
111
                             <div class="signInMainRightContent">
102
-                                <p style="margin: 0 auto;display:flex;align-items: center;" v-if='Object.keys(queueInfo).length>0'><span>排号&nbsp;</span><span style="font-size:180px;">{{ queueInfo.queue_no }}</span></p>
112
+                                <p style="margin: 0 auto;display:flex;align-items: center;" v-if='Object.keys(queueInfo).length>0'><span>排号&nbsp;</span><span style="font-size:180px;">{{ queueInfo.queue_no }}</span></p>
103
                             </div>
113
                             </div>
104
                             <div class="signInMianRightBottom"><span style="margin:0 auto;" v-if='Object.keys(queueInfo).length>0'>签到成功</span></div>
114
                             <div class="signInMianRightBottom"><span style="margin:0 auto;" v-if='Object.keys(queueInfo).length>0'>签到成功</span></div>
105
                         </div>
115
                         </div>
155
         this.websocketMess();
165
         this.websocketMess();
156
     },
166
     },
157
     mounted(){
167
     mounted(){
158
-        if(this.page < Math.ceil(this.count / 10)){
159
-            console.log('执行')
160
-            this.page++
161
-            let obj = {
162
-                cmd: "queue/queuelist",
163
-                data: {page:this.page,size:10}
164
-            };
165
-            this.websocketSend(obj)
166
-        }else{
167
-            console.log('执行2222')
168
-            this.page = 1
169
-            let newobj = {
170
-                cmd: "queue/queuelist",
171
-                data: {page:this.page,size:10}
172
-            };
173
-            this.websocketSend(newobj)
174
-        }
168
+        this.timer = setInterval(() => {
169
+            if(this.page < Math.ceil(this.count / 10)){
170
+                console.log('执行')
171
+                this.page++
172
+                let obj = {
173
+                    cmd: "queue/queuelist",
174
+                    data: {page:this.page,size:10,sort:1}
175
+                };
176
+                this.websocketSend(obj)
177
+            }else{
178
+                console.log('执行2222')
179
+                this.page = 1
180
+                let newobj = {
181
+                    cmd: "queue/queuelist",
182
+                    data: {page:this.page,size:10,sort:1}
183
+                };
184
+                this.websocketSend(newobj)
185
+            }
186
+        }, 20000);
175
         
187
         
176
         this.timerID = setInterval(() => {
188
         this.timerID = setInterval(() => {
177
             this.updateTime()
189
             this.updateTime()
179
         // this.updateTime();
191
         // this.updateTime();
180
     },
192
     },
181
     beforeDestroy(){
193
     beforeDestroy(){
194
+        clearInterval(this.timer);  // 清除定时器
182
         clearInterval(this.timerID);  // 清除定时器
195
         clearInterval(this.timerID);  // 清除定时器
183
         let obj = {
196
         let obj = {
184
             cmd: "queue/unjoin",
197
             cmd: "queue/unjoin",
211
                 }else if(res.channel == "patientQueueInfo"){
224
                 }else if(res.channel == "patientQueueInfo"){
212
 
225
 
213
                     this.queueInfo = res.data.queueInfo
226
                     this.queueInfo = res.data.queueInfo
227
+                    this.page = 1
214
                     let obj = {
228
                     let obj = {
215
                         cmd: "queue/queuelist",
229
                         cmd: "queue/queuelist",
216
-                        data: {page:1,size:10}
230
+                        data: {page:1,size:10,sort:1}
217
                     };
231
                     };
218
                     this.websocketSend(obj)
232
                     this.websocketSend(obj)
219
                     
233
                     
295
         
309
         
296
     }
310
     }
297
     .signInMainLeft{
311
     .signInMainLeft{
298
-        width:65%;
312
+        width:69%;
299
         height: 980px;
313
         height: 980px;
300
         border-radius: 15px;
314
         border-radius: 15px;
301
     }
315
     }
317
     .signInList{
331
     .signInList{
318
         font-size: 36px;
332
         font-size: 36px;
319
         font-weight: 600;
333
         font-weight: 600;
334
+        >div:nth-child(1){
335
+            font-size: 50px;
336
+        }
337
+        >div:nth-child(2){
338
+            font-size: 50px;
339
+        }
340
+        >div:nth-child(3){
341
+            font-size: 50px;
342
+        }
320
         >div:nth-child(odd){
343
         >div:nth-child(odd){
321
             background: #F9FDFF;
344
             background: #F9FDFF;
322
         }
345
         }
339
         }
362
         }
340
     }
363
     }
341
     .signInMainRight{
364
     .signInMainRight{
342
-        width: 34%;
365
+        width: 30%;
343
         height: 980px;
366
         height: 980px;
344
     }
367
     }
345
     .signInMainRightTitle{
368
     .signInMainRightTitle{

+ 17 - 4
src/xt_pages/stock/Dialog/goodTypeDialog.vue Ver fichero

9
           </el-form-item>
9
           </el-form-item>
10
         </el-col>
10
         </el-col>
11
       </el-row>
11
       </el-row>
12
+      <el-row>
13
+        <el-col>
14
+          <el-form-item label="耗材属性">
15
+              <el-radio v-model="formValue.stock_attribute" label="1">无</el-radio>
16
+              <el-radio v-model="formValue.stock_attribute" label="2">透析器</el-radio>
17
+              <el-radio v-model="formValue.stock_attribute" label="3">灌流器</el-radio>
18
+          </el-form-item>
19
+        </el-col>
20
+      </el-row>
12
       <el-row>
21
       <el-row>
13
         <el-col>
22
         <el-col>
14
           <el-form-item label="耗材出库" prop="out_stock">
23
           <el-form-item label="耗材出库" prop="out_stock">
15
-             <el-radio v-model="out_stock" label="1">是</el-radio>
16
-             <el-radio v-model="out_stock" label="2">否</el-radio>
24
+             <el-radio v-model="formValue.out_stock" label="1">是</el-radio>
25
+             <el-radio v-model="formValue.out_stock" label="2">否</el-radio>
17
           </el-form-item>     
26
           </el-form-item>     
18
         </el-col>
27
         </el-col>
19
       </el-row>
28
       </el-row>
57
           { required: true, message: "请输入类型名称", trigger: "blur" }
66
           { required: true, message: "请输入类型名称", trigger: "blur" }
58
         ]
67
         ]
59
       },
68
       },
60
-       out_stock: '1'
69
+       out_stock: '1',
70
+       stock_attribute:"1"
61
     };
71
     };
62
   },
72
   },
63
   props: {
73
   props: {
96
       form["type_name"] = this.formValue.type_name;
106
       form["type_name"] = this.formValue.type_name;
97
       form["remark"] = this.formValue.remark;
107
       form["remark"] = this.formValue.remark;
98
       form["isCreated"] = this.isCreated;
108
       form["isCreated"] = this.isCreated;
99
-      form['out_stock'] = this.out_stock;
109
+      form['out_stock'] = this.formValue.out_stock;
110
+      form["stock_attribute"] = this.formValue.stock_attribute
100
       return form;
111
       return form;
101
     }
112
     }
102
   },
113
   },
107
           this.$refs["formValue"].resetFields();
118
           this.$refs["formValue"].resetFields();
108
           this.formValue.remark = "";
119
           this.formValue.remark = "";
109
           this.formValue.type_name = "";
120
           this.formValue.type_name = "";
121
+          this.formValue.stock_attribute="1";
122
+          this.formValue.out_stock = "1"
110
         }, 0);
123
         }, 0);
111
     }
124
     }
112
   }
125
   }

+ 11 - 5
src/xt_pages/stock/config/goodType.vue Ver fichero

228
           isCreated: 1, //1.创建 2.编辑 3.查看详情
228
           isCreated: 1, //1.创建 2.编辑 3.查看详情
229
           formValue: {
229
           formValue: {
230
             type_name: "",
230
             type_name: "",
231
-            remark: ""
231
+            remark: "",
232
+            stock_attribute:"1",
233
+            out_stock:"1",
232
           },
234
           },
233
           isVisibility: false
235
           isVisibility: false
234
         }
236
         }
251
           this.$message.error(response.data.msg);
253
           this.$message.error(response.data.msg);
252
           return false;
254
           return false;
253
         } else {
255
         } else {
254
-          this.goodType.goodTypeDialog.formValue.remark =
255
-            response.data.data.goodType.remark;
256
-          this.goodType.goodTypeDialog.formValue.type_name =
257
-            response.data.data.goodType.type_name;
256
+          console.log("response.data.data",response.data.data.goodType)
257
+          this.goodType.goodTypeDialog.formValue.remark = response.data.data.goodType.remark;
258
+          this.goodType.goodTypeDialog.formValue.type_name =response.data.data.goodType.type_name;
259
+          this.goodType.goodTypeDialog.formValue.stock_attribute = response.data.data.goodType.stock_attribute.toString()
260
+          this.goodType.goodTypeDialog.formValue.out_stock = response.data.data.goodType.out_stock.toString()
258
           this.goodType.goodTypeDialog.isCreated = 2;
261
           this.goodType.goodTypeDialog.isCreated = 2;
259
           this.$refs.dialog.show();
262
           this.$refs.dialog.show();
260
           this.goodType.type_code = response.data.data.goodType.type_code;
263
           this.goodType.type_code = response.data.data.goodType.type_code;
264
+
261
         }
265
         }
262
       });
266
       });
263
     },
267
     },
315
           type_code: this.goodType.type_code,
319
           type_code: this.goodType.type_code,
316
           id: this.goodType.editTypeId,
320
           id: this.goodType.editTypeId,
317
           out_stock:val.out_stock,
321
           out_stock:val.out_stock,
322
+          stock_attribute:val.stock_attribute,
318
         };
323
         };
319
       
324
       
320
         modifyGoodType(params).then(response => {
325
         modifyGoodType(params).then(response => {
334
         });
339
         });
335
       } else if (val.isCreated == 1) {
340
       } else if (val.isCreated == 1) {
336
         //新增
341
         //新增
342
+        console.log("val22222",val)
337
        
343
        
338
         createGoodType(val).then(response => {
344
         createGoodType(val).then(response => {
339
           
345
           

+ 1 - 1
src/xt_pages/upload/fast/basicInfo.vue Ver fichero

198
     watch:{
198
     watch:{
199
         patient:{
199
         patient:{
200
             handler:function(val) {
200
             handler:function(val) {
201
-                console.log(1111111111111,val)
201
+                // console.log(1111111111111,val)
202
                 Object.keys(val).map((item,index) => {
202
                 Object.keys(val).map((item,index) => {
203
                     this.$set(this.form, item, val[item])
203
                     this.$set(this.form, item, val[item])
204
                     this.$forceUpdate()
204
                     this.$forceUpdate()