Browse Source

bug 修复

lilei 3 năm trước cách đây
mục cha
commit
44a649059b

+ 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) {