From 7ecbf507254c49bec38f3ca96aa33ac84ac5f1e9 Mon Sep 17 00:00:00 2001
From: yangfeng <wanwan926_4@163.com>
Date: 星期三, 13 三月 2024 10:20:13 +0800
Subject: [PATCH] 采购类型相关问题修改
---
src/views/purchaseManage/purchase/components/AddPurchase.vue | 18 ++----------------
src/views/purchaseManage/purchase/index.vue | 9 +++------
2 files changed, 5 insertions(+), 22 deletions(-)
diff --git a/src/views/purchaseManage/purchase/components/AddPurchase.vue b/src/views/purchaseManage/purchase/components/AddPurchase.vue
index 653cca7..b7936a4 100644
--- a/src/views/purchaseManage/purchase/components/AddPurchase.vue
+++ b/src/views/purchaseManage/purchase/components/AddPurchase.vue
@@ -51,7 +51,6 @@
v-model="editConfig.infomation.purchaseTypeId"
clearable
style="width: calc(100% - 30px)"
- @visible-change="selPurchaseChange"
>
<el-option
v-for="ele in plcBrandList"
@@ -435,9 +434,7 @@
},
created() {
console.log(this.editConfig, "鍙傛暟")
- if (this.editConfig.title == "鏂板缓") {
- this.handleGetBomKindDictList()
- }
+ this.handleGetBomKindDictList()
this.getWarehouseInfo()
this.$store.dispatch("getSupplier")
this.formInfo()
@@ -451,9 +448,7 @@
"editCommonConfig.visible": {
immediate: true,
handler: function () {
- if (this.editConfig.title == "鏂板缓") {
- this.handleGetBomKindDictList(true)
- }
+ this.handleGetBomKindDictList(true)
}
}
},
@@ -513,9 +508,6 @@
this.plcBrandList = res.data
this.setTableForm()
if (val) {
- // this.plcBrandList.map((item)=>{
- // item.purchaseTypeId=item.id
- // })
for (let i in this.plcBrandList) {
if (this.plcBrandList[i][this.editRow.isDefault]) {
this.editConfig.infomation.purchaseTypeId = this.editConfig.infomation.purchaseTypeId
@@ -527,12 +519,6 @@
}
}
})
- },
- // 閫夋嫨閲囪喘绫诲瀷涓嬫媺鏂规硶
- selPurchaseChange(val) {
- if (val) {
- this.handleGetBomKindDictList()
- }
},
handleConfirmSave(data) {
console.log(data, "data")
diff --git a/src/views/purchaseManage/purchase/index.vue b/src/views/purchaseManage/purchase/index.vue
index c67ed91..3887b14 100644
--- a/src/views/purchaseManage/purchase/index.vue
+++ b/src/views/purchaseManage/purchase/index.vue
@@ -381,8 +381,7 @@
this.editConfig.infomation = {
productList: res.data.productList,
supplierName: res.data.purchase.supplier.name,
- ...res.data.purchase,
- purchaseTypeId: res.data.purchase.purchaseTypeId == "0" ? "" : res.data.purchase.purchaseTypeId
+ ...res.data.purchase
}
} else {
this.$message.error(res.msg ? res.msg + "," : "" + "鑾峰彇淇℃伅澶辫触锛�")
@@ -391,9 +390,8 @@
setTimeout(() => {
this.tableLoading = false
}, 3000)
- // this.editRow = row;
- // this.$refs.add.islook = true;
},
+
// 纭鍙戣揣
btnConfirm(row) {
let string = "鏄惁鎻愪氦锛�"
@@ -483,8 +481,7 @@
this.editConfig.infomation = {
productList: res.data.productList,
supplierName: res.data.purchase.supplier.name,
- ...res.data.purchase,
- purchaseTypeId: res.data.purchase.purchaseTypeId == "0" ? "" : res.data.purchase.purchaseTypeId
+ ...res.data.purchase
}
} else {
this.$message.error(res.msg ? res.msg + "," : "" + "鑾峰彇淇℃伅澶辫触锛�")
--
Gitblit v1.8.0