|
@@ -821,33 +821,65 @@
|
821
|
821
|
this.$refs[formName].validate(valid => {
|
822
|
822
|
if (valid) {
|
823
|
823
|
if (_this.nameForm.isEdit) {
|
824
|
|
- var submitForm = {
|
825
|
|
- advice_type: _this.groupForm.advice_type,
|
826
|
|
- advice_date: _this.groupForm.advice_date,
|
827
|
|
- start_time: _this.groupForm.start_time,
|
828
|
|
- advice_name: _this.nameForm.advice_name,
|
829
|
|
- advice_desc: _this.nameForm.advice_desc,
|
830
|
|
- single_dose: '' + _this.nameForm.single_dose,
|
831
|
|
- single_dose_unit: _this.nameForm.single_dose_unit,
|
832
|
|
- drug_spec: '' + _this.nameForm.drug_spec,
|
833
|
|
- drug_spec_unit: _this.nameForm.drug_spec_unit,
|
834
|
|
- prescribing_number: '' + _this.nameForm.prescribing_number,
|
835
|
|
- prescribing_number_unit: _this.nameForm.prescribing_number_unit,
|
836
|
|
- delivery_way: _this.nameForm.delivery_way,
|
837
|
|
- execution_frequency: _this.nameForm.execution_frequency,
|
838
|
|
- isEdit: 0,
|
839
|
|
- id: 0,
|
840
|
|
- advice_doctor: '',
|
841
|
|
- remark: _this.groupForm.remark,
|
842
|
|
- parent_id: _this.groupSelectRow.parent_id,
|
843
|
|
- groupno: _this.groupForm.groupno,
|
844
|
|
- frequency_type: _this.nameForm.frequency_type,
|
845
|
|
- day_count: _this.nameForm.day_count.toString(),
|
846
|
|
- week_days: this.weeks
|
847
|
|
- .filter(function(s) {
|
848
|
|
- return s && s.trim()
|
849
|
|
- })
|
850
|
|
- .join(',')
|
|
824
|
+ var submitForm = null
|
|
825
|
+ if(!this.isChild){
|
|
826
|
+
|
|
827
|
+ submitForm = {
|
|
828
|
+ advice_type: _this.groupForm.advice_type,
|
|
829
|
+ advice_date: _this.groupForm.advice_date,
|
|
830
|
+ start_time: _this.groupForm.start_time,
|
|
831
|
+ advice_name: _this.nameForm.advice_name,
|
|
832
|
+ advice_desc: _this.nameForm.advice_desc,
|
|
833
|
+ single_dose: '' + _this.nameForm.single_dose,
|
|
834
|
+ single_dose_unit: _this.nameForm.single_dose_unit,
|
|
835
|
+ drug_spec: '' + _this.nameForm.drug_spec,
|
|
836
|
+ drug_spec_unit: _this.nameForm.drug_spec_unit,
|
|
837
|
+ prescribing_number: '' + _this.nameForm.prescribing_number,
|
|
838
|
+ prescribing_number_unit: _this.nameForm.prescribing_number_unit,
|
|
839
|
+ delivery_way: _this.nameForm.delivery_way,
|
|
840
|
+ execution_frequency: _this.nameForm.execution_frequency,
|
|
841
|
+ isEdit: 0,
|
|
842
|
+ id: 0,
|
|
843
|
+ advice_doctor: '',
|
|
844
|
+ remark: _this.groupForm.remark,
|
|
845
|
+ parent_id: _this.groupSelectRow.parent_id,
|
|
846
|
+ groupno: _this.groupForm.groupno,
|
|
847
|
+ frequency_type: _this.nameForm.frequency_type,
|
|
848
|
+ day_count: _this.nameForm.day_count.toString(),
|
|
849
|
+ week_days: this.weeks
|
|
850
|
+ .filter(function(s) {
|
|
851
|
+ return s && s.trim()
|
|
852
|
+ })
|
|
853
|
+ .join(',')
|
|
854
|
+ }
|
|
855
|
+
|
|
856
|
+ }else{
|
|
857
|
+ submitForm = {
|
|
858
|
+ advice_type: _this.groupForm.advice_type,
|
|
859
|
+ advice_date: _this.groupForm.advice_date,
|
|
860
|
+ start_time: _this.groupForm.start_time,
|
|
861
|
+ advice_name: _this.nameForm.advice_name,
|
|
862
|
+ advice_desc: _this.nameForm.advice_desc,
|
|
863
|
+ single_dose: '' + _this.nameForm.single_dose,
|
|
864
|
+ single_dose_unit: _this.nameForm.single_dose_unit,
|
|
865
|
+ drug_spec: '' + _this.nameForm.drug_spec,
|
|
866
|
+ drug_spec_unit: _this.nameForm.drug_spec_unit,
|
|
867
|
+ prescribing_number: '' + _this.nameForm.prescribing_number,
|
|
868
|
+ prescribing_number_unit: _this.nameForm.prescribing_number_unit,
|
|
869
|
+ delivery_way: _this.nameForm.delivery_way,
|
|
870
|
+ execution_frequency: _this.nameForm.execution_frequency,
|
|
871
|
+ isEdit: 0,
|
|
872
|
+ id: 0,
|
|
873
|
+ advice_doctor: '',
|
|
874
|
+ remark: _this.groupForm.remark,
|
|
875
|
+ parent_id: _this.groupSelectRow.parent_id,
|
|
876
|
+ groupno: _this.groupForm.groupno,
|
|
877
|
+ frequency_type: 0,
|
|
878
|
+ day_count: "0",
|
|
879
|
+ week_days: "",
|
|
880
|
+ }
|
|
881
|
+
|
|
882
|
+
|
851
|
883
|
}
|
852
|
884
|
let mode = ''
|
853
|
885
|
|
|
@@ -1402,8 +1434,13 @@
|
1402
|
1434
|
week_days: this.groupSelectRow.week_day,
|
1403
|
1435
|
frequency_type: this.groupSelectRow.frequency_type
|
1404
|
1436
|
}
|
1405
|
|
- // console.log(this.nameForm.week_days)
|
1406
|
|
- this.weeks = this.groupSelectRow.week_day.split(',')
|
|
1437
|
+
|
|
1438
|
+ if(!this.isChild){
|
|
1439
|
+ this.weeks = this.groupSelectRow.week_day.split(',')
|
|
1440
|
+
|
|
1441
|
+ }
|
|
1442
|
+
|
|
1443
|
+
|
1407
|
1444
|
this.nameFormTitle = '修改医嘱内容'
|
1408
|
1445
|
} else {
|
1409
|
1446
|
this.nameForm = {
|