From cb1d513a43683c59850ca40d9adbe8dbf0f1c4ce Mon Sep 17 00:00:00 2001
From: 小小儁爺 <1694218219@qq.com>
Date: 星期五, 08 十一月 2024 15:45:48 +0800
Subject: [PATCH] 1.递交
---
src/views/produce/productWarehouse2.vue | 15 +++++++++------
1 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/src/views/produce/productWarehouse2.vue b/src/views/produce/productWarehouse2.vue
index f8e77aa..af9c4bc 100644
--- a/src/views/produce/productWarehouse2.vue
+++ b/src/views/produce/productWarehouse2.vue
@@ -355,7 +355,7 @@
show-tooltip-when-overflow
>
<template slot-scope="{row}">
- <div v-if="row.initname">{{ row.initname }}</div>
+ <div v-if="row.unitname">{{ row.unitname }}</div>
<div v-else>/</div>
</template>
</el-table-column>
@@ -672,8 +672,11 @@
},
// 鍏ュ簱浠撳簱鍊兼敼鍙樻椂
- stockCodeChange() {
-
+ stockCodeChange(val) {
+ this.multipleSelection.forEach(i => {
+ i.stockcode = val
+ i.stockid = this.stockcodeArr.find(j => j.code === val).noid
+ })
},
stockCodeRowChange(val, row) {
@@ -699,9 +702,9 @@
if (this.form.stockcode === '') {
return this.$message.info('鍏ュ簱浠撳簱涓嶈兘涓虹┖锛�')
}
- // if (this.form.deptno === '') {
- // return this.$message.info('鍏ュ簱閮ㄩ棬涓嶈兘涓虹┖锛�')
- // }
+ if (this.multipleSelection.find(i => i.stockid === '' || i.stockid === null)) {
+ return this.$message.info('琛ㄦ牸鍐呭叆搴撲粨搴撲笉鑳戒负绌猴紒')
+ }
const TableDetailData = []
this.multipleSelection.forEach((i, index) => {
--
Gitblit v1.9.3