From a44eaa7b5d004ee041a53305511b9aff809b356c Mon Sep 17 00:00:00 2001
From: 小小儁爺 <1694218219@qq.com>
Date: 星期二, 12 十一月 2024 10:13:08 +0800
Subject: [PATCH] 1.递交
---
src/views/produce/productWarehouse2.vue | 19 +++++++++++--------
1 files changed, 11 insertions(+), 8 deletions(-)
diff --git a/src/views/produce/productWarehouse2.vue b/src/views/produce/productWarehouse2.vue
index f8e77aa..6af2847 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>
@@ -639,7 +639,7 @@
},
// 鑾峰彇鍗曟嵁缂栧彿(鍏ュ簱鍗曞彿)銆佹祦姘村彿
async getProductInHouseOrderCodeSearch() {
- const { data: res } = await ProductInHouseOrderCodeSearch({ rightcode: '0604' })
+ const { data: res } = await ProductInHouseOrderCodeSearch({ rightcode: '0605' })
this.form.hbillno = res[0]
this.form.incbit = res[1]
},
@@ -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) => {
@@ -730,7 +733,7 @@
})
const data = {
- 'rightcode': '0604', // 鍔熻兘缂栧彿
+ 'rightcode': '0605', // 鍔熻兘缂栧彿
'incbit': this.form.incbit, // 娴佹按鍙�
'TableData': [
[
--
Gitblit v1.9.3