|
@@ -73,7 +73,7 @@
|
|
</a-radio-group>
|
|
</a-radio-group>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</a-col>
|
|
</a-col>
|
|
- <span v-if="editParam.isEquivalent === 0">
|
|
|
|
|
|
+ <span v-show="editParam.isEquivalent === 0">
|
|
<!--测试地点-->
|
|
<!--测试地点-->
|
|
<a-col :lg="16" :md="24" :sm="24" :xl="12" :xs="24">
|
|
<a-col :lg="16" :md="24" :sm="24" :xl="12" :xs="24">
|
|
<a-form-item :label="$t('plan.dvp.test-site')" required>
|
|
<a-form-item :label="$t('plan.dvp.test-site')" required>
|
|
@@ -123,7 +123,7 @@
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</a-col>
|
|
</a-col>
|
|
</span>
|
|
</span>
|
|
- <span v-else>
|
|
|
|
|
|
+ <span v-show="editParam.isEquivalent === 1">
|
|
<!--等效实验报告编号-->
|
|
<!--等效实验报告编号-->
|
|
<a-col :lg="16" :md="24" :sm="24" :xl="12" :xs="24">
|
|
<a-col :lg="16" :md="24" :sm="24" :xl="12" :xs="24">
|
|
<a-form-item :label="$t('plan.dvp.equivalent-experiment-report-number')" required>
|
|
<a-form-item :label="$t('plan.dvp.equivalent-experiment-report-number')" required>
|
|
@@ -408,6 +408,14 @@ export default {
|
|
if (!_that.editParam.equivalentId) {
|
|
if (!_that.editParam.equivalentId) {
|
|
message.push(_that.$t('global-btn.please-select') + _that.$t('plan.dvp.equivalent-experiment-report-number'));
|
|
message.push(_that.$t('global-btn.please-select') + _that.$t('plan.dvp.equivalent-experiment-report-number'));
|
|
}
|
|
}
|
|
|
|
+ _that.editParam.testSite = null;
|
|
|
|
+ _that.editParam.testOwner = null;
|
|
|
|
+ _that.editParam.testStep = null;
|
|
|
|
+ _that.editParam.testFrequency = null;
|
|
|
|
+ _that.editParam.sampleNumber = null;
|
|
|
|
+ _that.editParam.sampleType = null;
|
|
|
|
+ _that.editParam.planStartTime = null;
|
|
|
|
+ _that.editParam.planEndTime = null;
|
|
}
|
|
}
|
|
if (message && message.length > 0) {
|
|
if (message && message.length > 0) {
|
|
for (let i = 0; i < message.length; i++) {
|
|
for (let i = 0; i < message.length; i++) {
|
|
@@ -481,19 +489,14 @@ export default {
|
|
*/
|
|
*/
|
|
handleEquivalent(e) {
|
|
handleEquivalent(e) {
|
|
this.editParam.isEquivalent = e.target.value;
|
|
this.editParam.isEquivalent = e.target.value;
|
|
|
|
+ // 以下写法,会导致频繁切换后,输入不了数据
|
|
// 如果选择了非等效,清除等效报告ID
|
|
// 如果选择了非等效,清除等效报告ID
|
|
- if (this.editParam.isEquivalent === 0) {
|
|
|
|
- this.editParam.equivalentId = undefined;
|
|
|
|
- } else if (this.editParam.isEquivalent === 1) { // 如果选择了等效,清除测试地点、测试负责人、测试阶段、测试次数、计划开始时间、计划结束时间
|
|
|
|
- this.editParam.testSite = undefined;
|
|
|
|
- this.editParam.testOwner = undefined;
|
|
|
|
- this.editParam.testStep = undefined;
|
|
|
|
- this.editParam.testFrequency = undefined;
|
|
|
|
- this.editParam.sampleNumber = undefined;
|
|
|
|
- this.editParam.sampleType = undefined;
|
|
|
|
- this.editParam.planStartTime = undefined;
|
|
|
|
- this.editParam.planEndTime = undefined;
|
|
|
|
- }
|
|
|
|
|
|
+ // if (this.editParam.isEquivalent === 0) {
|
|
|
|
+ // this.editParam.equivalentId = undefined;
|
|
|
|
+ // }
|
|
|
|
+ // else if (this.editParam.isEquivalent === 1) { // 如果选择了等效,清除测试地点、测试负责人、测试阶段、测试次数、计划开始时间、计划结束时间
|
|
|
|
+ //
|
|
|
|
+ // }
|
|
},
|
|
},
|
|
|
|
|
|
/**
|
|
/**
|