whycq
2024-06-06 c48093016b1511ce8b33ffb49062a3bf7a1aed16
pages/phyz/orderOut/orderCheck.vue
@@ -56,7 +56,7 @@
      <!-- 底部操作按钮 -->
      <view class="buttom">
         <button size="mini" @click="reset('warn')">稍后处理</button>
         <button size="mini" type="primary" @click="combConfirm('warn')">立即出库</button>
         <button size="mini" type="primary" @click="combConfirm('warn')" :disabled="combDis">立即出库</button>
      </view>
   </view>
</template>
@@ -69,7 +69,8 @@
            token: '',
            data: {},
            option: '',
            count: 0
            count: 0,
            combDis: false
         }
      },
      onShow() {
@@ -139,6 +140,7 @@
         },
         combConfirm() {
            let _this = this
            _this.combDis = true
            if (_this.data.anfme == 0) {
               uni.showToast({ title: '出库数量不能为0!', icon: "error", position: 'top'})
               return
@@ -152,6 +154,7 @@
               data: combList,
               method: 'POST',
               success(res) {
                  _this.combDis = true
                  res = res.data
                  if (res.code === 200) {
                     uni.hideLoading({})
@@ -167,6 +170,9 @@
                  } else {
                     uni.showToast({ title: res.msg, icon: "error", position: 'top' })
                  }
               },
               fail(res) {
                  _this.combDis = false
               }
            })
         }