From a9b2ee32ecdd3fbe05945777e9ca5fc273f95fab Mon Sep 17 00:00:00 2001
From: zuozhengqing <a13193816592@163.com>
Date: 星期五, 15 十二月 2023 16:49:39 +0800
Subject: [PATCH] 采购订单修改参数类型
---
src/views/purchaseManage/purchase/components/AddPurchase.vue | 20 ++++++++++----------
src/components/layout/components/appHeader/index.vue | 2 +-
2 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/src/components/layout/components/appHeader/index.vue b/src/components/layout/components/appHeader/index.vue
index 03fb874..5c33bdc 100644
--- a/src/components/layout/components/appHeader/index.vue
+++ b/src/components/layout/components/appHeader/index.vue
@@ -47,7 +47,7 @@
prod: `//${window.location.hostname}:9080`,
test: `//192.168.20.119:9080`,
// 鎯宠烦鍒版湰鍦板惎鍔ㄧ殑鐧诲綍椤电殑璇濋渶瑕佹妸dev鏀规垚浣犳湰鍦伴」鐩矾寰�
- dev: `//192.168.20.102:8080`
+ dev: `//192.168.8.107:8080`
}
return loginPathMap[this.environmentType()]
},
diff --git a/src/views/purchaseManage/purchase/components/AddPurchase.vue b/src/views/purchaseManage/purchase/components/AddPurchase.vue
index 541e76c..f782552 100644
--- a/src/views/purchaseManage/purchase/components/AddPurchase.vue
+++ b/src/views/purchaseManage/purchase/components/AddPurchase.vue
@@ -651,8 +651,8 @@
quantity: data.quantity // 閲囪喘鏁伴噺
}
}
- if (data.ID) {
- params.purchase.id = data.ID
+ if (data.id) {
+ params.purchase.id = data.id
}
return params
},
@@ -676,13 +676,13 @@
},
// 閫夋嫨渚涘簲鍟�
async handleSelectClient(value, item) {
- this.productTableList.supplierId = item.ID
+ this.productTableList.supplierId = item.id
if (value === "client") {
this.supplierId = item.id
- this.editConfig.infomation.supplierId = item.ID
+ this.editConfig.infomation.supplierId = item.id
}
await getProductList({
- supplierId: item.ID,
+ supplierId: item.id,
page: 1,
pageSize: 100
}).then((res) => {
@@ -697,7 +697,7 @@
},
async selClient(row) {
await getProductList({
- supplierId: row.ID,
+ supplierId: row.id,
page: 1,
pageSize: 100
}).then((res) => {
@@ -708,7 +708,7 @@
this.$set(this.editConfig.infomation, "supplierName", row.name)
this.editConfig.infomation.contact = row.contact
this.editConfig.infomation.phone = row.phone
- this.editConfig.infomation.supplierId = row.ID
+ this.editConfig.infomation.supplierId = row.id
},
// 娓呴櫎宸查�夋嫨鐢ㄦ埛
clearupClient(value) {
@@ -719,11 +719,11 @@
}
},
setTableForm() {
- if (!this.editConfig.infomation.ID || this.editConfig.infomation.productList.length === 0) {
+ if (!this.editConfig.infomation.id || this.editConfig.infomation.productList.length === 0) {
this.tableData = [
{
purchaseId: 0,
- productId: this.productId,
+ productId:Number(this.productId),
productIndex: this.productIndex,
amount: 0,
name: "",
@@ -860,7 +860,7 @@
},
//閫変腑浜у搧
handleProduct(item) {
- this.tableData[this.productListIdx].productId = item.ID
+ this.tableData[this.productListIdx].productId = Number(item.id)
console.log(item, "閫変腑浜у搧", this.tableData)
}
}
--
Gitblit v1.8.0