|
|
|
|
@ -733,7 +733,7 @@ export default {
|
|
|
|
|
this.form.serviceData = this.serviceData;
|
|
|
|
|
let flag = false;
|
|
|
|
|
let serverImageFlag = false;
|
|
|
|
|
if (this.form.serviceData.length > 0) {
|
|
|
|
|
if (this.form.instrumentType == 2 && this.form.serviceData.length > 0) {
|
|
|
|
|
this.form.serviceData.forEach(data => {
|
|
|
|
|
if(data.startTimeArray == null || data.startTimeArray.length == 0) {
|
|
|
|
|
flag = true;
|
|
|
|
|
@ -754,15 +754,12 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error("启动/暂停图片不能为空");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (flag) {
|
|
|
|
|
this.$message.error("护理时间范围不能为空");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (serverImageFlag) {
|
|
|
|
|
if (this.form.instrumentType == 2 && !serverImageFlag) {
|
|
|
|
|
this.$message.error("启动/暂停图片不能为空");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|