|
|
@@ -286,7 +286,7 @@
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
<el-button @click="open = false">取 消</el-button>
|
|
|
<el-button type="primary" @click="submitForm">保 存</el-button>
|
|
|
- <el-button type="primary" @click="confirmPrescribe" v-if="form.doctorConfirm == 0">确认处方</el-button>
|
|
|
+ <el-button type="primary" @click="confirmPrescribe" v-if="form.doctorConfirm === 0">确认处方</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
<!-- 药品新增/编辑对话框 -->
|
|
|
@@ -388,6 +388,7 @@ export default {
|
|
|
beginAuditTime: undefined,
|
|
|
endAuditTime: undefined
|
|
|
},
|
|
|
+ currentConfirm: null,
|
|
|
form: {},
|
|
|
rules: {
|
|
|
prescribeType: [{ required: true, message: "处方类型不能为空", trigger: "change" }],
|
|
|
@@ -516,6 +517,8 @@ export default {
|
|
|
handleUpdate(row) {
|
|
|
this.reset();
|
|
|
const prescribeId = row.prescribeId || this.ids[0];
|
|
|
+ this.currentConfirm = row.doctorConfirm;
|
|
|
+
|
|
|
getPrescribe(prescribeId).then(response => {
|
|
|
this.form = response.data;
|
|
|
this.open = true;
|
|
|
@@ -525,7 +528,9 @@ export default {
|
|
|
if (this.form.prescribeId) {
|
|
|
this.drugQueryParams.prescribeId = this.form.prescribeId;
|
|
|
}
|
|
|
- });
|
|
|
+ }).finally(()=>{
|
|
|
+ this.currentConfirm = null;
|
|
|
+ })
|
|
|
},
|
|
|
confirmPrescribe(){
|
|
|
confirmPrescribe(this.form).then(response => {
|