From 12b411cd617a1f8d4ef7d03b2d0677f23515ce2f Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期二, 30 十二月 2025 13:30:45 +0800
Subject: [PATCH] 1.双奇点-bug修改

---
 src/views/inventoryManagement/issueManagement/index.vue |   31 ++++++++++++++++++++-----------
 1 files changed, 20 insertions(+), 11 deletions(-)

diff --git a/src/views/inventoryManagement/issueManagement/index.vue b/src/views/inventoryManagement/issueManagement/index.vue
index de8f8be..f0597e3 100644
--- a/src/views/inventoryManagement/issueManagement/index.vue
+++ b/src/views/inventoryManagement/issueManagement/index.vue
@@ -81,7 +81,7 @@
            :summary-method="summarizeMainTable" height="calc(100vh - 18.5em)">
            <el-table-column align="center" type="selection" width="55" />
            <el-table-column align="center" label="搴忓彿" type="index" width="60" />
-           <el-table-column label="鍏ュ簱鏃堕棿" prop="inboundDate" width="100" show-overflow-tooltip />
+           <el-table-column label="鍏ュ簱鏃堕棿" prop="createTime" width="100" show-overflow-tooltip />
             <el-table-column label="浜у搧鍚嶇О" prop="productCategory" show-overflow-tooltip />
             <el-table-column label="浜у搧楂樺害" prop="specificationModel" width="100" show-overflow-tooltip>
               <template #default="scope">
@@ -91,12 +91,13 @@
 						<el-table-column label="鍏ュ簱鏁伴噺/浠�" prop="inboundNum" width="100" show-overflow-tooltip />
 						<el-table-column label="姣忎欢鏁伴噺/鏀�" prop="boxNum" width="100" show-overflow-tooltip />
             <el-table-column label="鍓╀綑搴撳瓨" prop="inboundNum0" width="90" show-overflow-tooltip />
-						<el-table-column label="鍗曚环(鍏�)" prop="taxInclusiveUnitPrice" width="150"></el-table-column>
+						<el-table-column label="鍗曚环(鍏�)/浠�" prop="taxInclusiveUnitPrice" width="150"></el-table-column>
+						<el-table-column label="鍗曚环(缇庡厓)/浠�" prop="dollarPrice" width="150"></el-table-column>
             <el-table-column label="绾哥瑙勬牸" prop="cartonSpecifications" width="150"></el-table-column>
             <el-table-column label="鍏ュ簱浜�" prop="createBy" width="80" show-overflow-tooltip />
            <el-table-column fixed="right" label="鎿嶄綔" min-width="60" align="center">
              <template #default="scope">
-               <el-button link type="primary" size="small" @click="openForm(scope.row);">棰嗙敤</el-button>
+               <el-button link type="primary" size="small" @click="openForm(scope.row);" :disabled="!scope.row.inboundNum0">棰嗙敤</el-button>
              </template>
            </el-table-column>
          </el-table>
@@ -155,12 +156,13 @@
 						<el-table-column label="鍏ュ簱鏁伴噺/浠�" prop="inboundNum" width="100" show-overflow-tooltip />
 						<el-table-column label="姣忎欢鏁伴噺/鏀�" prop="boxNum" width="100" show-overflow-tooltip />
             <el-table-column label="鍓╀綑搴撳瓨" prop="inboundNum0" width="90" show-overflow-tooltip />
-						<el-table-column label="鍗曚环(鍏�)" prop="taxInclusiveUnitPrice" width="150"></el-table-column>
+						<el-table-column label="鍗曚环(鍏�)/浠�" prop="taxInclusiveUnitPrice" width="150"></el-table-column>
+						<el-table-column label="鍗曚环(缇庡厓)/浠�" prop="dollarPrice" width="150"></el-table-column>
             <el-table-column label="绾哥瑙勬牸" prop="cartonSpecifications" width="150"></el-table-column>
-            <el-table-column label="鍏ュ簱浜�" prop="createBy" width="80" show-overflow-tooltip />
+            <el-table-column label="鍏ュ簱浜�" prop="createBy" width="150" show-overflow-tooltip />
             <el-table-column fixed="right" label="鎿嶄綔" width="100" align="center">
               <template #default="scope">
-                <el-button link type="primary" size="small" @click="openForm(scope.row);">棰嗙敤</el-button>
+                <el-button link type="primary" size="small" @click="openForm(scope.row);" :disabled="!scope.row.inboundNum0">棰嗙敤</el-button>
               </template>
             </el-table-column>
           </el-table>
@@ -173,7 +175,7 @@
       <el-form :model="form" label-width="140px" label-position="top" :rules="rules" ref="formRef">
 				<div>鍙嚭搴撴暟閲�:{{currentRowNum}}</div>
         <el-form-item label="鍑哄簱鏁伴噺锛�" prop="salesContractNo">
-          <el-input-number :step="1" :min="0" style="width: 100%" v-model="form.inboundQuantity" placeholder="璇疯緭鍏�" clearable />
+          <el-input-number :step="1" :min="0" :max="currentRowNum" style="width: 100%" v-model="form.inboundQuantity" placeholder="璇疯緭鍏�" clearable />
         </el-form-item>
         <el-form-item label="鍑哄簱鏃ユ湡锛�" prop="projectName">
           <el-date-picker style="width: 100%" v-model="form.inboundTime" value-format="YYYY-MM-DD" format="YYYY-MM-DD"
@@ -213,6 +215,7 @@
     delStockManage,
     stockOut,
 } from "@/api/inventoryManagement/stockManage.js";
+const javaApiUrl = __BASE_API__;
 
 const userStore = useUserStore()
 const { proxy } = getCurrentInstance()
@@ -234,7 +237,7 @@
   searchForm: {
     supplierName: '',
     customerName: '',
-    inboundQuantity:'',
+    inboundQuantity:0,
     inboundTime:'',
     nickName: '',
     userId: '',
@@ -295,7 +298,7 @@
   page.current = 1
   searchForm.value.supplierName = ''
   searchForm.value.customerName = ''
-  searchForm.value.timeStr = ''
+  searchForm.value.timeStr = getCurrentDate() // 閲嶇疆涓哄綋鍓嶆棩鏈�
   selectedRows.value = []
   searchForm.value.productCategory = ''
   getList()
@@ -342,7 +345,7 @@
   // 鍒濆鍖栬〃鍗曟暟鎹�
   form.value = {
     productrecordId: '',
-    inboundQuantity: '', // 鍑哄簱鏁伴噺娓呯┖
+    inboundQuantity: 0, // 鍑哄簱鏁伴噺娓呯┖
     inboundTime: getCurrentDate(), // 榛樿褰撳墠鏃ユ湡
     nickName: '', // 榛樿褰撳墠鐢ㄦ埛
   }
@@ -360,7 +363,13 @@
 const submitForm = () => {
   let num = Number(form.value.inboundQuantity)
   if(num <= 0 || num > currentRowNum.value){
-    return proxy.$modal.msgWarning("璇峰~鍏ユ湁鏁堟暟瀛�")
+    return proxy.$modal.msgWarning("璇峰~鍐欏嚭搴撴暟閲�")
+  }
+  if(!form.value.nickName){
+    return proxy.$modal.msgWarning("璇烽�夋嫨鍑哄簱浜�")
+  }
+  if(!form.value.inboundTime){
+    return proxy.$modal.msgWarning("璇烽�夋嫨鍑哄簱鏃堕棿")
   }
   proxy.$refs["formRef"].validate(valid => {
     if (valid && currentRowId.value) {

--
Gitblit v1.9.3