|
@@ -600,7 +600,7 @@
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="form-item flex flex-col-center">
|
|
<div class="form-item flex flex-col-center">
|
|
|
- <span>*</span>
|
|
|
|
|
|
|
+ <span> </span>
|
|
|
<div class="name">最少治疗时长:</div>
|
|
<div class="name">最少治疗时长:</div>
|
|
|
<div class="input">
|
|
<div class="input">
|
|
|
<el-input
|
|
<el-input
|
|
@@ -1172,10 +1172,10 @@ export default {
|
|
|
if (!d.countCoefficient)
|
|
if (!d.countCoefficient)
|
|
|
return this.$message.error("请输入计数系数");
|
|
return this.$message.error("请输入计数系数");
|
|
|
}
|
|
}
|
|
|
- if (!d.minTreatmentDuration)
|
|
|
|
|
- return this.$message.error("请输入最少治疗时长");
|
|
|
|
|
- if (!/^\d+$/.test(String(d.minTreatmentDuration)) || Number(d.minTreatmentDuration) <= 0)
|
|
|
|
|
- return this.$message.error("最少治疗时长必须为正整数");
|
|
|
|
|
|
|
+ if (d.minTreatmentDuration !== '' && d.minTreatmentDuration !== null && d.minTreatmentDuration !== undefined) {
|
|
|
|
|
+ if (!/^\d+$/.test(String(d.minTreatmentDuration)) || Number(d.minTreatmentDuration) <= 0)
|
|
|
|
|
+ return this.$message.error("最少治疗时长必须为正整数");
|
|
|
|
|
+ }
|
|
|
if (!d.classify) return this.$message.error("请选择分类");
|
|
if (!d.classify) return this.$message.error("请选择分类");
|
|
|
try {
|
|
try {
|
|
|
const params = { ...this.itemEditData };
|
|
const params = { ...this.itemEditData };
|