|
@@ -735,8 +735,9 @@ export default {
|
|
prescribeName: [
|
|
prescribeName: [
|
|
{ required: true, message: "处方药不能为空", trigger: "blur" }
|
|
{ required: true, message: "处方药不能为空", trigger: "blur" }
|
|
],
|
|
],
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+ companyIds: [
|
|
|
|
+ { required: true, message: "销售公司不能为空", trigger: "blur" }
|
|
|
|
+ ],
|
|
}
|
|
}
|
|
};
|
|
};
|
|
},
|
|
},
|
|
@@ -1096,7 +1097,7 @@ export default {
|
|
});
|
|
});
|
|
}
|
|
}
|
|
// 组装companyIds
|
|
// 组装companyIds
|
|
- if (response.data.companyIds != null) {
|
|
|
|
|
|
+ if (response.data.companyIds != null && response.data.companyIds != undefined && response.data.companyIds.length > 0) {
|
|
this.form.companyIds = response.data.companyIds.split(',').map(Number);
|
|
this.form.companyIds = response.data.companyIds.split(',').map(Number);
|
|
}
|
|
}
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
@@ -1157,7 +1158,7 @@ export default {
|
|
return this.$message.warning('请点击生成规格!');
|
|
return this.$message.warning('请点击生成规格!');
|
|
}
|
|
}
|
|
// 组装companyIds
|
|
// 组装companyIds
|
|
- if (this.form.companyIds.length != 0) {
|
|
|
|
|
|
+ if (this.form.companyIds != null && this.form.companyIds != undefined) {
|
|
this.form.companyIds = this.form.companyIds.join(',');
|
|
this.form.companyIds = this.form.companyIds.join(',');
|
|
}
|
|
}
|
|
addOrEdit(this.form).then(response => {
|
|
addOrEdit(this.form).then(response => {
|