소스 검색

bug 修复

lilei 3 년 전
부모
커밋
44a649059b
2개의 변경된 파일8개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      src/views/allocationManagement/transferReturn/edit.vue
  2. 4 0
      src/views/allocationManagement/transferReturn/editGrp.vue

+ 4 - 0
src/views/allocationManagement/transferReturn/edit.vue

@@ -464,6 +464,10 @@ export default {
     //  提交
     handleSubmit () {
       const _this = this
+      if (this.localDataSource.length == 0) {
+        _this.$message.error('请选择退货产品!')
+        return
+      }
       _this.spinning = true
       allocateReturnSubmit({ allocateReturnSn: this.$route.params.sn }).then(res => {
         if (res.status == 200) {

+ 4 - 0
src/views/allocationManagement/transferReturn/editGrp.vue

@@ -455,6 +455,10 @@ export default {
     //  提交
     handleSubmit () {
       const _this = this
+      if (this.localDataSource.length == 0) {
+        _this.$message.error('请选择退货产品!')
+        return
+      }
       _this.spinning = true
       allocateReturnSubmit({ allocateReturnSn: this.$route.params.sn }).then(res => {
         if (res.status == 200) {