Selaa lähdekoodia

Bug Fix: 未上传做校验

chris 3 vuotta sitten
vanhempi
commit
4928f606a6

+ 4 - 1
src/views/modules/cus/communicate-add-or-update.vue

@@ -242,10 +242,13 @@
                   url: fList[i].url
                 })
               }
+            } else {
+              this.$message.error('请上传文件')
+              return
             }
             if (this.dataForm.coType === '1') {
               if (this.cusRCommProductVOS.length === 0) {
-                this.$message.warning('请选择订单产品明细')
+                this.$message.error('请选择订单产品明细')
                 return
               }
               this.dataForm.cusRCommProductVOS = this.cusRCommProductVOS

+ 3 - 0
src/views/modules/cus/contract-add-or-update.vue

@@ -215,6 +215,9 @@
                   url: fList[i].url
                 })
               }
+            } else {
+              this.$message.error('请上传文件')
+              return
             }
             this.$http({
               url: this.$http.adornUrl(`/biz-service/flow/cusContractReview/submit`),

+ 3 - 0
src/views/modules/notice/notice-add-or-update.vue

@@ -132,6 +132,9 @@
                   url: fList[i].url
                 })
               }
+            } else {
+              this.$message.error('请上传文件')
+              return
             }
             if (!this.dataForm.receivers || this.dataForm.receivers.length === 0) {
               this.$message.error('清选择接收对象')

+ 6 - 0
src/views/modules/order/order-add-or-update.vue

@@ -306,6 +306,9 @@
                   url: fList[i].url
                 })
               }
+            } else {
+              this.$message.error('请上传文件')
+              return
             }
             // 订单产品明细
             let pList = this.productDetails
@@ -315,6 +318,9 @@
               this.dataForm.saleROrderProductParamsList.forEach((item) => {
                 item.rate = toNumber(item.rateVal)
               })
+            } else {
+              this.$message.error('请添加订单产品明细')
+              return
             }
             this.$http({
               url: this.$http.adornUrl(`/biz-service/order/save`),

+ 3 - 0
src/views/modules/production/equipment-add-or-update.vue

@@ -156,6 +156,9 @@
                   url: fList[i].url
                 })
               }
+            } else {
+              this.$message.error('请上传文件')
+              return
             }
             this.$http({
               url: !this.id ? this.$http.adornUrl(`/biz-service/equipment/save`) : this.$http.adornUrl(`/biz-service/equipment/update`),

+ 3 - 0
src/views/modules/tech/ctafts-add-or-detail.vue

@@ -236,6 +236,9 @@ export default {
                 url: fList[i].url
               })
             }
+          } else {
+            this.$message.error('请上传文件')
+            return
           }
 
           this.$http({

+ 3 - 0
src/views/modules/tech/draw-add-or-update.vue

@@ -109,6 +109,9 @@
                   url: fList[i].url
                 })
               }
+            } else {
+              this.$message.error('请上传文件')
+              return
             }
             this.$http({
               url: !this.id ? this.$http.adornUrl(`/biz-service/drawing/save`) : this.$http.adornUrl(`/biz-service/drawing/update`),