Jelajahi Sumber

入库保存新增转圈等待

caojunjie 2 tahun lalu
induk
melakukan
344a2ef9fb
1 mengubah file dengan 9 tambahan dan 0 penghapusan
  1. 9 0
      src/views/Warehousing/inStock/AddOrUpdate.vue

+ 9 - 0
src/views/Warehousing/inStock/AddOrUpdate.vue

@@ -8465,6 +8465,12 @@ export default {
                   return this.$message.error('付款信息第' + (Number(item) + 1) + '行' + '计价单位不能为空')
                 }
               }
+              const loading = this.$loading({
+                lock: true,
+                text: '加载中',
+                spinner: 'el-icon-loading',
+                background: 'rgba(255,255,255,0.7)'
+              })
               this.$set(this.form, 'fFeetunit', this.form.fFeetUnit)
               formData.append('tWarehouseBills', JSON.stringify(this.form))
               // 库存明细
@@ -8484,9 +8490,11 @@ export default {
                     cancelButtonText: '取消',
                     type: 'warning'
                   }).then(() => {
+                    loading.close();
                     this.mblnoStatus = true
                     this.saveForm()
                   }).catch(() => {
+                    loading.close();
                     this.$message({
                       type: 'info',
                       message: '已取消'
@@ -8498,6 +8506,7 @@ export default {
                     this.TFformdata(response.data.warehouseBills)
                     this.detailList = response.data.warehousebillsitems
                     this.msgSuccess('保存成功')
+                    loading.close();
                     getWarehousebills(this.form.fId).then((response) => {
                       this.TFformdata(response.data.warehousebills)
                       if (!this.copyStatus || this.recordStatus === true) {