From 5392dc649209ff372ec276aa6cbf86b16b12a375 Mon Sep 17 00:00:00 2001
From: 周宾 <2802492122@qq.com>
Date: 星期五, 26 十二月 2025 16:41:16 +0800
Subject: [PATCH] 天津双奇点-仓储物流板块开发

---
 src/pages/inventoryManagement/issueManagement/edit.vue |   35 ++++++++++++++++++++++++++++++++---
 1 files changed, 32 insertions(+), 3 deletions(-)

diff --git a/src/pages/inventoryManagement/issueManagement/edit.vue b/src/pages/inventoryManagement/issueManagement/edit.vue
index a98d6d8..b212925 100644
--- a/src/pages/inventoryManagement/issueManagement/edit.vue
+++ b/src/pages/inventoryManagement/issueManagement/edit.vue
@@ -9,14 +9,16 @@
                         <uni-easyinput v-model="productCategory" placeholder="" disabled />
                     </uni-forms-item>
                     <uni-forms-item label="鍑哄簱鏁伴噺/浠�" required>
-                        <uni-number-box v-model="goods.quantity" :min="0"></uni-number-box>
+                        <uni-number-box v-model="goods.quantity" :min="0" :max="inboundNum0"></uni-number-box>
                     </uni-forms-item>
                     <uni-forms-item label="鍑哄簱鏃ユ湡" required>
                         <uni-datetime-picker type="date" :clear-icon="false" v-model="goods.time" />
                     </uni-forms-item>
                     <uni-forms-item label="鍑哄簱浜�" required>
                         <picker :range="userList" @change="swichUser" range-key="nickName">
-                            <text>{{ userName||'璇烽�夋嫨' }}</text>
+                            <view  style="border: 1px solid #f5f5f5;border-radius: 4rpx;padding: 20rpx;">
+                                <text>{{ userName||'璇烽�夋嫨' }}</text>
+                            </view>
                         </picker>
                     </uni-forms-item>
                 </uni-forms>
@@ -38,6 +40,7 @@
 const pageTitle = ref('棰嗙敤浜у搧')
 const userList = ref([])
 const userName = ref('')
+const inboundNum0 = ref(0)
 const goods = ref({
     id: 0,
     quantity: 0,
@@ -52,6 +55,30 @@
     uni.navigateBack()
 }
 const submitForm = async () => {
+    if(!goods.value.quantity){
+        uni.showToast({
+            title:'璇锋坊鍔犲嚭搴撴暟閲�',
+            icon: 'none',
+            duration: 1500
+        })
+        return
+    }
+    if(!goods.value.time){
+        uni.showToast({
+            title:'璇烽�夋嫨鍑哄簱鏃ユ湡',
+            icon: 'none',
+            duration: 1500
+        })
+        return
+    }
+    if(!goods.value.userId){
+        uni.showToast({
+            title:'璇烽�夋嫨鍑哄簱浜�',
+            icon: 'none',
+            duration: 1500
+        })
+        return
+    }
     let res = await stockout(goods.value)
     if (res.code !== 200) {
         uni.showToast({
@@ -83,6 +110,8 @@
     let _goods = JSON.parse(props.goods)
     goods.value.id = _goods.id
     productCategory.value = _goods.productCategory
+    inboundNum0.value = _goods.inboundNum0
+    goods.value.type = _goods.purchaseContractNumber?1:3
     initContacts()
 })
 </script>
@@ -99,7 +128,7 @@
     box-sizing: border-box;
     margin-bottom: 20rpx;
     padding: 20rpx;
-    background-color: #f5f5f5;
+    
     border-radius: 20rpx;
 }
 

--
Gitblit v1.9.3