From fdf0f9d0ae6659d4110aee59bcf9216f9e0fac7f Mon Sep 17 00:00:00 2001
From: 小小儁爺 <1694218219@qq.com>
Date: 星期一, 02 十二月 2024 15:25:19 +0800
Subject: [PATCH] 1.登录页样式替换
---
src/views/produce/productWarehouse2.vue | 35 ++++++++++++++++++++++-------------
1 files changed, 22 insertions(+), 13 deletions(-)
diff --git a/src/views/produce/productWarehouse2.vue b/src/views/produce/productWarehouse2.vue
index f8e77aa..84d35c2 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]
},
@@ -657,6 +657,9 @@
},
// 鑾峰彇澶у垪琛ㄦ煡璇�
async getProductInHouseOrderSearch() {
+ if (this.form.wkshopcode === '') {
+ return this.$message.info('鐢熶骇杞﹂棿涓嶈兘涓虹┖锛�')
+ }
const data = {
saleordercode: this.form.saleordercode, // 閿�鍞崟鍙�
wkshopcode: this.form.wkshopcode, // 鐢熶骇杞﹂棿
@@ -664,16 +667,19 @@
mesordercode: this.form.mesordercode, // 宸ュ崟缂栧彿
partcode: this.form.partcode, // 浜у搧缂栫爜
partname: this.form.partname, // 浜у搧鍚嶇О
- partspec: this.form.partspec // 瑙勬牸鍨嬪彿
-
+ partspec: this.form.partspec, // 瑙勬牸鍨嬪彿
+ deptno: ''// 鍏ュ簱閮ㄩ棬
}
const { data: res } = await ProductInHouseOrderSearch(data)
this.tableDataDetail = res
},
// 鍏ュ簱浠撳簱鍊兼敼鍙樻椂
- 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 +705,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 +736,7 @@
})
const data = {
- 'rightcode': '0604', // 鍔熻兘缂栧彿
+ 'rightcode': '0605', // 鍔熻兘缂栧彿
'incbit': this.form.incbit, // 娴佹按鍙�
'TableData': [
[
@@ -762,13 +768,16 @@
}
// console.log(JSON.stringify(data))
+ this.$store.state.app.buttonIsDisabled = true
const res = await TProductInHouseOrderSpSeave(data)
+ this.$store.state.app.buttonIsDisabled = false
if (res.code === '200') {
this.$message.success('鍏ュ簱鎴愬姛锛�')
this.multipleSelection = []
- this.form.deptno = ''
- this.form.stockcode = ''
- await this.getProductInHouseOrderSearch()
+ // this.form.deptno = ''
+ // this.form.stockcode = ''
+ this.reset()
+ // await this.getProductInHouseOrderSearch()
await this.getProductInHouseOrderCodeSearch()
}
},
--
Gitblit v1.9.3