|
@@ -54,9 +54,7 @@
|
|
|
type="text"
|
|
|
size="small"
|
|
|
>时间变更</el-button>
|
|
|
- <el-popconfirm title="确定提交此信息?" @confirm="onConfirm(scope.row)">
|
|
|
- <el-button slot="reference" type="text" size="small">确认</el-button>
|
|
|
- </el-popconfirm>
|
|
|
+ <el-button type="text" size="small" @click="hanldSelect(scope.row)">确认</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -173,6 +171,25 @@
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
</el-dialog>
|
|
|
+ <el-dialog title="免疫类型" :visible.sync="isSelect" width="40%">
|
|
|
+ <div style="padding: 20px">
|
|
|
+ <el-form>
|
|
|
+ <el-form-item label="免疫类型">
|
|
|
+ <el-radio-group v-model="vaccineStyle">
|
|
|
+ <el-radio :label="1">普免</el-radio>
|
|
|
+ <el-radio :label="2">防疫</el-radio>
|
|
|
+ </el-radio-group>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item>
|
|
|
+ <el-button @click="isSelect=false">取 消</el-button>
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ @click="onConfirm('timeChange')"
|
|
|
+ >保 存</el-button>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -210,6 +227,8 @@ export default {
|
|
|
remark: ""
|
|
|
},
|
|
|
timeForm: {},
|
|
|
+ isSelect: false,
|
|
|
+ vaccineStyle: 1,
|
|
|
rules
|
|
|
};
|
|
|
},
|
|
@@ -218,6 +237,19 @@ export default {
|
|
|
this.getImmunePlanList();
|
|
|
},
|
|
|
methods: {
|
|
|
+ hanldSelect(row) {
|
|
|
+ this.isSelect = true;
|
|
|
+ this.formData.id = row.id;
|
|
|
+ this.formData.target = row.target;
|
|
|
+ this.formData.batchNo = row.batchNo;
|
|
|
+ this.formData.performTime = row.performTime;
|
|
|
+ this.formData.number = row.number;
|
|
|
+ this.formData.medicine = row.medicine;
|
|
|
+ this.formData.medicineName = row.medicineName;
|
|
|
+ this.formData.method = row.method;
|
|
|
+ this.formData.opeUser = row.opeUser;
|
|
|
+ this.formData.remark = row.remark;
|
|
|
+ },
|
|
|
submitForm(formName) {
|
|
|
this.$refs[formName].validate(valid => {
|
|
|
if (valid) {
|
|
@@ -316,17 +348,31 @@ export default {
|
|
|
// 有id是update 没id是add
|
|
|
delete this.formData.id;
|
|
|
},
|
|
|
- onConfirm(row) {
|
|
|
- console.log(row);
|
|
|
- reqConfirm(row)
|
|
|
+ onConfirm() {
|
|
|
+ this.isSelect = false;
|
|
|
+ this.formData.vaccineStyle = this.vaccineStyle;
|
|
|
+ reqConfirm(this.formData)
|
|
|
.then(res => {
|
|
|
// 免疫程序列表
|
|
|
if (res.code == "success") {
|
|
|
this.$message.success(res.msg);
|
|
|
+ this.getImmunePlanList();
|
|
|
}
|
|
|
if (res.errCode == "delete failed") {
|
|
|
this.$message.error(res.errMsg);
|
|
|
}
|
|
|
+ this.formData = {
|
|
|
+ target: null,
|
|
|
+ batchNo: "",
|
|
|
+ performTime: '',
|
|
|
+ number: "",
|
|
|
+ medicineId: null,
|
|
|
+ method: "",
|
|
|
+ opeUser: null,
|
|
|
+ remark: ""
|
|
|
+ };
|
|
|
+ this.formData.vaccineStyle = '';
|
|
|
+ this.vaccineStyle = 1;
|
|
|
})
|
|
|
.catch(err => {
|
|
|
console.log(err);
|