From 88ebe9f8ee064523329c65e7a61f6f738e651fdd Mon Sep 17 00:00:00 2001 From: maven <2163098428@qq.com> Date: 星期四, 28 八月 2025 09:59:06 +0800 Subject: [PATCH] yys 库存增加编号字段 --- src/views/warehouseManagement/index.vue | 7 ++++++- src/views/production/productionReporting/components/ProductionDialog.vue | 6 ++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/views/production/productionReporting/components/ProductionDialog.vue b/src/views/production/productionReporting/components/ProductionDialog.vue index 4d6bf8c..0cc62e1 100644 --- a/src/views/production/productionReporting/components/ProductionDialog.vue +++ b/src/views/production/productionReporting/components/ProductionDialog.vue @@ -30,7 +30,7 @@ <el-row :gutter="30"> <el-col :span="12"> <el-form-item label="寰呯敓浜ф暟閲忥細"> - <el-input v-model="pendingNum" placeholder="璇疯緭鍏�" clearable disabled/> + <el-input v-model="pendingNumTemp" placeholder="璇疯緭鍏�" clearable disabled/> </el-form-item> </el-col> <el-col :span="12"> @@ -85,12 +85,14 @@ }, }); const { form, rules } = toRefs(data); +const pendingNumTemp = ref(0) const changeNum = (value) => { + console.log(value) if (value > pendingNum.value) { form.value.finishedNum = pendingNum.value ElMessage.warning("鏈鐢熶骇鏁伴噺涓嶅彲澶т簬鎺掍骇鏁伴噺"); } - pendingNum.value = pendingNum.value - form.value.finishedNum; + pendingNumTemp.value = pendingNum.value - value; } // Props 鍜� Emits const props = defineProps({ diff --git a/src/views/warehouseManagement/index.vue b/src/views/warehouseManagement/index.vue index a7d612c..6183677 100644 --- a/src/views/warehouseManagement/index.vue +++ b/src/views/warehouseManagement/index.vue @@ -77,6 +77,11 @@ align="center" /> <el-table-column + prop="code" + label="缂栧彿" + width="180" + /> + <el-table-column prop="supplierName" label="渚涜揣鍟嗗悕绉�" width="180" @@ -84,7 +89,7 @@ /> <el-table-column prop="type" label="鐓ゆ枡绫诲瀷"> <template #default="scope"> - {{scope.row.type === 1 ? '鎴愬搧' : '鍘熸枡'}} + {{scope.row.type == 1 ? '鎴愬搧' : '鍘熸枡'}} </template> </el-table-column> <el-table-column prop="coal" label="鐓ょ" sortable /> -- Gitblit v1.9.3