Ver Fonte

销售公司 小程序改为非必填

ct há 1 semana atrás
pai
commit
7efac0e73f
1 ficheiros alterados com 8 adições e 0 exclusões
  1. 8 0
      src/views/his/company/index.vue

+ 8 - 0
src/views/his/company/index.vue

@@ -765,6 +765,14 @@ export default {
           if(this.doctorIds!=null){
             this.form.doctorIds= (this.doctorIds).toString()
           }
+          if (this.form.miniAppMaster==null || this.form.miniAppMaster.length ===0 ){
+            return this.$message.error("请选择主小程序")
+          }
+
+          if (this.form.miniAppServer==null || this.form.miniAppServer.length ===0 ){
+            return this.$message.error("请选择备小程序")
+          }
+
           if (this.form.companyId != null) {
             updateCompany(this.form).then(response => {
               this.msgSuccess("修改成功");