From 01b53033db11aa30ed6d408f6b5c8f27cd851b17 Mon Sep 17 00:00:00 2001
From: yaowanxin <3588231647@qq.com>
Date: 星期五, 09 一月 2026 11:42:03 +0800
Subject: [PATCH] 1.基础数据-供应商黑名单,添加资质管理字段,可上传资质文件 2.采购管理-收货管理-添加入库数量输入和合格状态选择功能,实现采购异常记录的添加和更新接口 3.客户档案-分类功能,零售客户和进销商客户 4.添加采购审批页面,显示台账审批状态 5.固定资产核算界面,库存核算统计页面-移至军泰伟业
---
src/views/productionManagement/workOrder/index.vue | 29 +++++++++++++++++++++++------
1 files changed, 23 insertions(+), 6 deletions(-)
diff --git a/src/views/productionManagement/workOrder/index.vue b/src/views/productionManagement/workOrder/index.vue
index f120ae7..34b368d 100644
--- a/src/views/productionManagement/workOrder/index.vue
+++ b/src/views/productionManagement/workOrder/index.vue
@@ -61,9 +61,9 @@
</el-form>
<template #footer>
<span class="dialog-footer">
- <el-button @click="editDialogVisible = false">鍙栨秷</el-button>
<el-button type="primary"
@click="handleUpdate">纭畾</el-button>
+ <el-button @click="editDialogVisible = false">鍙栨秷</el-button>
</span>
</template>
</el-dialog>
@@ -164,7 +164,7 @@
<el-form :model="reportForm"
label-width="120px">
<el-form-item label="寰呯敓浜ф暟閲�">
- <el-input v-model="reportForm.remainingQuantity"
+ <el-input v-model="reportForm.planQuantity"
readonly
style="width: 300px" />
</el-form-item>
@@ -184,9 +184,9 @@
</el-form>
<template #footer>
<span class="dialog-footer">
- <el-button @click="reportDialogVisible = false">鍙栨秷</el-button>
<el-button type="primary"
@click="handleReport">纭畾</el-button>
+ <el-button @click="reportDialogVisible = false">鍙栨秷</el-button>
</span>
</template>
</el-dialog>
@@ -214,6 +214,11 @@
width: "140",
},
{
+ label: "鐢熶骇璁㈠崟鍙�",
+ prop: "productOrderNpsNo",
+ width: "140",
+ },
+ {
label: "浜у搧鍚嶇О",
prop: "productName",
width: "140",
@@ -229,6 +234,11 @@
{
label: "宸ュ簭鍚嶇О",
prop: "processName",
+ },
+ {
+ label: "寰呯敓浜ф暟閲�",
+ prop: "planQuantity",
+ width: "140",
},
{
label: "璁″垝鐢熶骇鏁伴噺",
@@ -279,6 +289,7 @@
clickFun: row => {
showReportDialog(row);
},
+ disabled: row => row.planQuantity <= 0,
},
],
},
@@ -294,7 +305,7 @@
const transferCardRowData = ref(null);
const reportDialogVisible = ref(false);
const reportForm = reactive({
- remainingQuantity: 0,
+ planQuantity: 0,
quantity: 0,
userName: "",
workOrderId: "",
@@ -378,7 +389,7 @@
const showReportDialog = row => {
currentReportRowData.value = row;
- reportForm.remainingQuantity = 1;
+ reportForm.planQuantity = row.planQuantity;
reportForm.quantity = row.quantity;
reportForm.productProcessRouteItemId = row.productProcessRouteItemId;
reportForm.workOrderId = row.id;
@@ -390,13 +401,19 @@
};
const handleReport = () => {
+ if (reportForm.planQuantity <= 0) {
+ ElMessageBox.alert("寰呯敓浜ф暟閲忎负0锛屾棤娉曟姤宸�", "鎻愮ず", {
+ confirmButtonText: "纭畾",
+ });
+ return;
+ }
if (!reportForm.quantity || reportForm.quantity <= 0) {
ElMessageBox.alert("璇疯緭鍏ユ湁鏁堢殑鏈鐢熶骇鏁伴噺", "鎻愮ず", {
confirmButtonText: "纭畾",
});
return;
}
- if (reportForm.quantity > reportForm.remainingQuantity) {
+ if (reportForm.quantity > reportForm.planQuantity) {
ElMessageBox.alert("鏈鐢熶骇鏁伴噺涓嶈兘瓒呰繃寰呯敓浜ф暟閲�", "鎻愮ず", {
confirmButtonText: "纭畾",
});
--
Gitblit v1.9.3