|
@@ -193,6 +193,30 @@ export default {
|
|
|
this.count++;
|
|
|
},
|
|
|
},
|
|
|
+ "params.sysMaterialMedcineApply.isDrug": {
|
|
|
+ handler: function (nVal, oVal) {
|
|
|
+ if (nVal === "2") {
|
|
|
+ this.rules.registrationNo = [
|
|
|
+ {
|
|
|
+ required: true,
|
|
|
+ message: "注册证号/备案凭证编号",
|
|
|
+ trigger: "change",
|
|
|
+ },
|
|
|
+ ];
|
|
|
+ this.rules.medicalInstruments = [
|
|
|
+ {
|
|
|
+ required: true,
|
|
|
+ message: "管理类别",
|
|
|
+ trigger: "change",
|
|
|
+ },
|
|
|
+ ];
|
|
|
+ } else {
|
|
|
+ this.rules.registrationNo = null;
|
|
|
+ this.rules.medicalInstruments = null;
|
|
|
+ }
|
|
|
+ this.count++;
|
|
|
+ },
|
|
|
+ },
|
|
|
},
|
|
|
methods: {
|
|
|
setVisible(prop) {
|