提交 9ad369b1 编写于 作者: changdi.hao's avatar changdi.hao

Merge branch 'dev-20210702' into 'release'

Dev 20210702

See merge request !22
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
<!-- </el-row>--> <!-- </el-row>-->
<span slot="footer" class="dialog-footer" style="text-align: center;"> <span slot="footer" class="dialog-footer" style="text-align: center;">
<el-button @click="cancel">取 消</el-button> <el-button @click="cancel">取 消</el-button>
<el-button type="primary" @click="confirm">确定</el-button> <el-button type="primary" @click="confirm" :disabled="isClick">确定</el-button>
</span> </span>
</el-dialog> </el-dialog>
</div> </div>
...@@ -61,6 +61,7 @@ export default { ...@@ -61,6 +61,7 @@ export default {
confirmTxt: '确定', confirmTxt: '确定',
cancleTxt: '', cancleTxt: '',
_promise: null, _promise: null,
isClick:false,
model: { model: {
diagnoseChannel: 1, diagnoseChannel: 1,
appointBeginTime: "", appointBeginTime: "",
...@@ -125,7 +126,9 @@ export default { ...@@ -125,7 +126,9 @@ export default {
appointBeginTime: this.rangeTime[0], appointBeginTime: this.rangeTime[0],
appointEndTime: this.rangeTime[1] appointEndTime: this.rangeTime[1]
} }
vm.isClick = true;
updateDiagnosis(req).then(function (res) { updateDiagnosis(req).then(function (res) {
vm.isClick = false;
if (res.code == "000000") { if (res.code == "000000") {
vm.cancel(); vm.cancel();
vm.$emit('search'); vm.$emit('search');
...@@ -133,6 +136,7 @@ export default { ...@@ -133,6 +136,7 @@ export default {
vm.$message.error(res.message); vm.$message.error(res.message);
} }
}).catch(function (error) { }).catch(function (error) {
vm.isClick = false;
vm.$message.error(res.message); vm.$message.error(res.message);
}); });
// } // }
......
...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
<!-- </el-row>--> <!-- </el-row>-->
<span slot="footer" class="dialog-footer" style="text-align: center;"> <span slot="footer" class="dialog-footer" style="text-align: center;">
<el-button @click="cancel">取 消</el-button> <el-button @click="cancel">取 消</el-button>
<el-button type="primary" @click="confirm">确定</el-button> <el-button type="primary" @click="confirm" :disabled="isClick">确定</el-button>
</span> </span>
</el-dialog> </el-dialog>
</div> </div>
...@@ -109,6 +109,7 @@ export default { ...@@ -109,6 +109,7 @@ export default {
confirmTxt: '确定', confirmTxt: '确定',
cancleTxt: '', cancleTxt: '',
_promise: null, _promise: null,
isClick: false,
formData:{ formData:{
receptionId:this.doctorId, receptionId:this.doctorId,
receptionName:"", receptionName:"",
...@@ -203,7 +204,9 @@ export default { ...@@ -203,7 +204,9 @@ export default {
receptionEndTime:this.rangeTime[1], receptionEndTime:this.rangeTime[1],
} }
} }
vm.isClick = true
updateDiagnosis(req).then(function (res) { updateDiagnosis(req).then(function (res) {
vm.isClick = false
if(res.code == "000000") { if(res.code == "000000") {
vm.cancel(); vm.cancel();
vm.$emit('search'); vm.$emit('search');
...@@ -211,12 +214,14 @@ export default { ...@@ -211,12 +214,14 @@ export default {
vm.$message.error(res.message); vm.$message.error(res.message);
} }
}).catch(function (error) { }).catch(function (error) {
vm.isClick = false
vm.$message.error(res.message); vm.$message.error(res.message);
}); });
} }
}) })
}, },
cancel(){ cancel(){
this.formData.outsideDoctor = '';
this.$emit('update:diagnosisDoctorVisible', false); this.$emit('update:diagnosisDoctorVisible', false);
}, },
doctorChanged(value) { doctorChanged(value) {
......
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
<!-- </el-row>--> <!-- </el-row>-->
<span slot="footer" class="dialog-footer" style="text-align: center;"> <span slot="footer" class="dialog-footer" style="text-align: center;">
<el-button @click="cancel">取 消</el-button> <el-button @click="cancel">取 消</el-button>
<el-button type="primary" @click="confirm">确定</el-button> <el-button type="primary" @click="confirm" :disabled-="isClick">确定</el-button>
</span> </span>
</el-dialog> </el-dialog>
</div> </div>
...@@ -76,6 +76,7 @@ export default { ...@@ -76,6 +76,7 @@ export default {
confirmTxt: '确定', confirmTxt: '确定',
cancleTxt: '', cancleTxt: '',
_promise: null, _promise: null,
isClick: false,
model: { model: {
assistantRemark: "" assistantRemark: ""
}, },
...@@ -116,6 +117,7 @@ export default { ...@@ -116,6 +117,7 @@ export default {
vm.$message.warning("请选择助诊意向时间"); vm.$message.warning("请选择助诊意向时间");
return; return;
} }
vm.isClick = true
let req = { let req = {
id:this.diagnoseLogId, id:this.diagnoseLogId,
bizType:this.bizType, bizType:this.bizType,
...@@ -124,6 +126,7 @@ export default { ...@@ -124,6 +126,7 @@ export default {
assistantRemark:this.model.assistantRemark assistantRemark:this.model.assistantRemark
} }
updateDiagnosis(req).then(function (res) { updateDiagnosis(req).then(function (res) {
vm.isClick = false;
if(res.code == "000000") { if(res.code == "000000") {
vm.cancel(); vm.cancel();
vm.$emit('search'); vm.$emit('search');
...@@ -131,6 +134,7 @@ export default { ...@@ -131,6 +134,7 @@ export default {
vm.$message.error(res.message); vm.$message.error(res.message);
} }
}).catch(function (error) { }).catch(function (error) {
vm.isClick = false;
vm.$message.error(res.message); vm.$message.error(res.message);
}); });
// } // }
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
<!-- </el-row>--> <!-- </el-row>-->
<span slot="footer" class="dialog-footer" style="text-align: center;"> <span slot="footer" class="dialog-footer" style="text-align: center;">
<el-button @click="cancel">取 消</el-button> <el-button @click="cancel">取 消</el-button>
<el-button type="primary" @click="confirm">确定</el-button> <el-button type="primary" @click="confirm" :disabled="isClick">确定</el-button>
</span> </span>
</el-dialog> </el-dialog>
</div> </div>
...@@ -53,6 +53,7 @@ export default { ...@@ -53,6 +53,7 @@ export default {
confirmTxt: '确定', confirmTxt: '确定',
cancleTxt: '', cancleTxt: '',
_promise: null, _promise: null,
isClick: false,
model:{ model:{
refundReason:"" refundReason:""
}, },
...@@ -75,7 +76,9 @@ export default { ...@@ -75,7 +76,9 @@ export default {
bizType: 2, bizType: 2,
refundReason: this.model.refundReason refundReason: this.model.refundReason
} }
vm.isClick = true
updateDiagnosis(req).then(function (res) { updateDiagnosis(req).then(function (res) {
vm.isClick = false
if (res.code == "000000") { if (res.code == "000000") {
vm.cancel(); vm.cancel();
vm.$emit('search'); vm.$emit('search');
...@@ -83,6 +86,7 @@ export default { ...@@ -83,6 +86,7 @@ export default {
vm.$message.error(res.message); vm.$message.error(res.message);
} }
}).catch(function (error) { }).catch(function (error) {
vm.isClick = false
vm.$message.error(res.message); vm.$message.error(res.message);
}); });
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册