From 809a043745ecf5d8986998ea30933e019f4f4f4d Mon Sep 17 00:00:00 2001
From: zuozhengqing <a13193816592@163.com>
Date: 星期六, 21 十月 2023 16:35:52 +0800
Subject: [PATCH] 报废单编辑接口参数调整
---
src/views/operate/scrap/AddScrapDialog.vue | 16 ++++++++--------
src/views/operate/inventoryAdjustment/index.vue | 4 +---
2 files changed, 9 insertions(+), 11 deletions(-)
diff --git a/src/views/operate/inventoryAdjustment/index.vue b/src/views/operate/inventoryAdjustment/index.vue
index 525b7d3..88eba30 100644
--- a/src/views/operate/inventoryAdjustment/index.vue
+++ b/src/views/operate/inventoryAdjustment/index.vue
@@ -102,7 +102,7 @@
selectBox: false,
selectIndex: true,
tableColumn: [
- { label: "浣嶇疆", prop: "locationName", location: false },
+ { label: "浣嶇疆", prop: "locationName", location: true },
{ label: "浜у搧", prop: "productName", product: true },
{ label: "鍦ㄥ簱鏁伴噺", prop: "amount" },
{ label: "璁¢噺鍗曚綅", prop: "unit" },
@@ -216,7 +216,6 @@
},
// 鍙栨秷
discardBtnClick() {
- console.log(this.tableList.tableData,"鐪嬬湅")
this.tableList.tableData.forEach((item)=>{
item.differenceAmount=0;
item.adjustAmount=0
@@ -276,7 +275,6 @@
},
// 琛岀偣鍑�
tableRowClick(row, rowIndex) {
- console.log(row,"kankna")
this.locationId=row.locationId
this.rowIndex = rowIndex
this.isSel()
diff --git a/src/views/operate/scrap/AddScrapDialog.vue b/src/views/operate/scrap/AddScrapDialog.vue
index 73911a4..b877a3e 100644
--- a/src/views/operate/scrap/AddScrapDialog.vue
+++ b/src/views/operate/scrap/AddScrapDialog.vue
@@ -168,7 +168,7 @@
currentState: "todo", // 褰撳墠鐘舵��
unit: "",
showButton: true,
- isValidateClick: false // 楠岃瘉鏄惁鏄剧ず
+ isValidateClick: false, // 楠岃瘉鏄惁鏄剧ず
}
},
created() {
@@ -267,12 +267,9 @@
} else if (this.editCommonConfig.title === "缂栬緫") {
this.$refs[formName].validate((valid) => {
if (valid) {
- this.editConfig.infomation.productId = this.productId
- this.editConfig.infomation.productName = this.productName
- this.editConfig.infomation.unit = this.unit
- updateScrap({
- amount: this.editConfig.infomation.amount, //鏁伴噺
- baseOperationType: 1,
+ let params={
+ amount: this.editConfig.infomation.amount,
+ baseOperationType: this.editConfig.infomation.baseOperationType,
fromLocationId: this.editConfig.infomation.fromLocationId,
id: this.editConfig.infomation.id,
number: this.editConfig.infomation.number,
@@ -281,7 +278,10 @@
sourceNumber: this.editConfig.infomation.sourceNumber,
status: this.editConfig.infomation.status,
toLocationId: this.editConfig.infomation.toLocationId
- }).then((res) => {
+ }
+ updateScrap(
+ params
+ ).then((res) => {
console.log(res)
this.editConfig.visible = false
if (res.code === 200) {
--
Gitblit v1.8.0