xiebaomin il y a 2 ans
Parent
commit
c27d70ea60

+ 0 - 1
pages/goods/components/procurement-popup.vue

@@ -23,7 +23,6 @@
                             <view class="input_icon">¥</view>
                             <input
                                 class="uni-input"
-                                type="number"
                                 maxlength="10"
                                 :always-embed="true"
                                 :adjust-position="true" 

+ 3 - 0
pages/goods/mixins/procurementMixins.js

@@ -72,6 +72,9 @@ export default {
                 this.isLastPage = data.total === this.procurementList.length
                 this.loadding = !this.isLastPage
                 this.pullUpOn = !this.isLastPage
+                if (this.procurementList.length === 0) {
+                    this.isEmpty = true
+                }
             } catch (error) {
                 console.log(error)
             }

+ 1 - 0
pages/goods/procurement.vue

@@ -147,6 +147,7 @@ export default {
     onLoad() {
         // 刷新数据
         uni.$on('refreshAddData', () => {
+            this.isEmpty = false
             this.procurementAllAddList()
         })
     },

+ 1 - 1
pages/goods/procurementAdd.vue

@@ -30,7 +30,6 @@
                 <view>
                     <input
                         class="uni-input"
-                        type="number"
                         placeholder="请输入您对商品的期望单价"
                         v-model="formData.price"
                         @input="fpNumInput($event, 'formData', 'price')"
@@ -176,6 +175,7 @@ export default {
             if (this.detailData.id) {
                 form.id = this.detailData.id
             }
+            this.isActive = false
             try {
                 const data = await this.ProcurementService.procurementSave(form)
                 uni.showToast({