lilei 2 年 前
コミット
7675ad6925

+ 3 - 6
src/views/allocationManagement/transferOut/basicInfoModal.vue

@@ -59,7 +59,7 @@
         </a-form-model-item>
       </a-form-model>
       <div class="btn-cont">
-        <a-button type="primary" id="allocateBill-basicInfo-modal-save" @click="handleSave">保存</a-button>
+        <a-button type="primary" :loading="spinning" id="allocateBill-basicInfo-modal-save" @click="handleSave">保存</a-button>
         <a-button id="allocateBill-basicInfo-modal-back" @click="isShow = false" style="margin-left: 15px;">取消</a-button>
       </div>
     </a-spin>
@@ -177,11 +177,8 @@ export default {
           allocateBillSave(form).then(res => {
             if (res.status == 200) {
               _this.$message.success(res.message)
-              setTimeout(() => {
-                _this.isShow = false
-                _this.$emit('ok', res.data)
-                _this.spinning = false
-              }, 1000)
+              _this.isShow = false
+              _this.$emit('ok', res.data)
             } else {
               _this.spinning = false
             }

+ 1 - 1
src/views/common/dealerSubareaScopeList.vue

@@ -46,7 +46,7 @@ export default {
       const fetchId = this.lastFetchId
       this.data = []
       this.fetching = true
-      dealerSubareaScopeList({ nameLike: dealerName, pageNo: 1, pageSize: 20 }).then(res => {
+      dealerSubareaScopeList({ nameLike: dealerName.replace(/\s+/g, ''), pageNo: 1, pageSize: 20 }).then(res => {
         if (fetchId !== this.lastFetchId) {
           return
         }