hanfucheng 7 meses atrás
pai
commit
67edbc5a89

+ 8 - 1
lawenforcement-ui/src/views/lawenforcement/record/distribute.vue

@@ -126,7 +126,14 @@ export default {
     },
     /** 派发工单提交 */
     handleDispatch() {
-      this.distributeData.recordStatus = 'lawenforcement_type_9'
+      if (this.distributeData.personList.length==0){
+        this.$modal.msgSuccess("请选择人员");
+        return
+      }
+      if (this.distributeData.mainPerson==null){
+        this.$modal.msgSuccess("请选择主办人员");
+        return
+      }
       // 处理派发逻辑,这里可以写你的逻辑,比如保存数据或者提交请求
       distributeRecord(this.distributeData).then(res => {
         this.$modal.msgSuccess("派发成功");