|
@@ -280,19 +280,26 @@
|
280
|
280
|
<el-input v-model="scope.row.remark" placeholder=""></el-input>
|
281
|
281
|
</template>
|
282
|
282
|
</el-table-column>
|
|
283
|
+ <el-table-column
|
|
284
|
+ label="推送频率"
|
|
285
|
+ width="120"><!--这------------里-->
|
|
286
|
+ <template slot-scope="scope">
|
|
287
|
+
|
|
288
|
+ </template>
|
|
289
|
+ </el-table-column>
|
283
|
290
|
<el-table-column
|
284
|
291
|
fixed="right"
|
285
|
292
|
label="操作"
|
286
|
293
|
width="120">
|
287
|
294
|
<template slot-scope="scope">
|
288
|
295
|
<el-button
|
289
|
|
- @click.native.prevent="addRow(scope.$index, item.tableDatas)"
|
|
296
|
+ @click.native.prevent="addRow2(scope.$index, item.project)"
|
290
|
297
|
type="text"
|
291
|
298
|
size="small">
|
292
|
299
|
添加
|
293
|
300
|
</el-button>
|
294
|
301
|
<el-button
|
295
|
|
- @click.native.prevent="deleteRow(scope.$index, item.tableDatas)"
|
|
302
|
+ @click.native.prevent="deleteRow(scope.$index, item.project)"
|
296
|
303
|
type="text"
|
297
|
304
|
size="small">
|
298
|
305
|
移除
|
|
@@ -343,6 +350,7 @@ export default {
|
343
|
350
|
}],
|
344
|
351
|
project:[{
|
345
|
352
|
id:"",
|
|
353
|
+ translate:"组",
|
346
|
354
|
drug_name:"王小美",
|
347
|
355
|
single_dose:0,
|
348
|
356
|
single_dose_unit: '',
|
|
@@ -374,14 +382,14 @@ export default {
|
374
|
382
|
}],
|
375
|
383
|
project:[{
|
376
|
384
|
id:"",
|
377
|
|
- drug_name:"王小美",
|
|
385
|
+ translate:"组",
|
|
386
|
+ name:"王小美",
|
378
|
387
|
single_dose:0,
|
379
|
|
- single_dose_unit: '',
|
380
|
|
- delivery_way: '给药途径',
|
|
388
|
+ unit: '',
|
|
389
|
+ delivery_way: '用法',
|
381
|
390
|
execution_frequency: '执行频率',
|
382
|
391
|
day: 0,
|
383
|
392
|
prescribing_number:0,
|
384
|
|
- prescribing_number_unit:"",
|
385
|
393
|
price:"",
|
386
|
394
|
remark:"",
|
387
|
395
|
}],
|
|
@@ -467,7 +475,35 @@ export default {
|
467
|
475
|
rows.splice(index, 1);
|
468
|
476
|
},
|
469
|
477
|
addRow(index, rows){
|
470
|
|
- rows.splice(index+1,0,{date:'2016-05-02',name:'hah',province:'上海',city:'普陀区',address:'shngahai',zip:20033});
|
|
478
|
+ rows.splice(index+1,0,{
|
|
479
|
+ id:"",
|
|
480
|
+ drug_name: '',
|
|
481
|
+ single_dose:0,
|
|
482
|
+ single_dose_unit: '',
|
|
483
|
+ delivery_way: '给药途径',
|
|
484
|
+ execution_frequency: '执行频率',
|
|
485
|
+ day: 0,
|
|
486
|
+ prescribing_number:0,
|
|
487
|
+ prescribing_number_unit:"",
|
|
488
|
+ price:"",
|
|
489
|
+ remark:"",
|
|
490
|
+ });
|
|
491
|
+ },
|
|
492
|
+ addRow2(index, rows){
|
|
493
|
+ rows.splice(index+1,0,{
|
|
494
|
+ id:"",
|
|
495
|
+ translate:"组",
|
|
496
|
+ drug_name:"王小美",
|
|
497
|
+ single_dose:0,
|
|
498
|
+ single_dose_unit: '',
|
|
499
|
+ delivery_way: '给药途径',
|
|
500
|
+ execution_frequency: '执行频率',
|
|
501
|
+ day: 0,
|
|
502
|
+ prescribing_number:0,
|
|
503
|
+ prescribing_number_unit:"",
|
|
504
|
+ price:"",
|
|
505
|
+ remark:"",
|
|
506
|
+ });
|
471
|
507
|
},
|
472
|
508
|
qieusername(){
|
473
|
509
|
var params = {
|