From 3bd59622961f569ac181a0f17aeffd44858efa4f Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期日, 28 四月 2024 17:19:13 +0800
Subject: [PATCH] 价税合计和数量,采购单价 3者之间计算管理的逻辑处理
---
src/views/supplierManage/supplier/index.vue | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/views/supplierManage/supplier/index.vue b/src/views/supplierManage/supplier/index.vue
index 279bc87..501c717 100644
--- a/src/views/supplierManage/supplier/index.vue
+++ b/src/views/supplierManage/supplier/index.vue
@@ -58,7 +58,7 @@
:amount-view="false"
:show-screen="false"
:show-action-btn="false"
- :placeholder="'璇疯緭鍏ヤ骇鍝佸悕绉�'"
+ :placeholder="'璇疯緭鍏ヤ骇鍝佸悕绉�/浜у搧瑙勬牸/浜у搧缂栫爜'"
@searchClick="onProductFilterSearch"
>
<template slot="leftButton">
@@ -124,7 +124,7 @@
import AddSupplier from "@/views/supplierManage/supplier/AddSupplier"
import RaleteSupplierList from "@/views/supplierManage/supplier/RaleteSupplierList"
import AddNewProduct from "@/views/supplierManage/supplier/AddNewProduct"
-import { getProductList, deleteProduct } from "@/api/productManage/product"
+import { getProductListTwo, deleteProduct } from "@/api/productManage/product"
import AddPurchase from "@/views/purchaseManage/purchase/components/AddPurchase"
export default {
@@ -317,7 +317,7 @@
// 浜у搧鍒楄〃
async getProductList(val, content) {
console.log(val, content)
- await getProductList({
+ await getProductListTwo({
[val]: content,
supplierId: this.supplierId,
page: this.productPagerOptions.currPage,
@@ -341,7 +341,7 @@
// 鎼滅储浜у搧
onProductFilterSearch(searchText) {
this.productPagerOptions.currPage = 1
- this.getProductList("name", searchText)
+ this.getProductList("keyword", searchText)
},
// 鏂板缓渚涘簲鍟�
addBtnClick() {
@@ -356,7 +356,7 @@
async enableClick(row, value) {
let status = value === "鍚敤" ? 1 : 0
await changeSupplierStatus({
- id:Number(row.id),
+ id: Number(row.id),
status: status
}).then((res) => {
if (res.code === 200) {
@@ -385,7 +385,6 @@
},
// 淇敼浜у搧
editClick(row) {
- console.log(row)
this.newProductConfig.visible = true
this.newProductConfig.title = "淇敼"
this.newProductConfig.infomation = { ...row }
@@ -447,6 +446,7 @@
this.editPurchaseConfig.title = "鏂板缓"
this.editPurchaseConfig.infomation = {
supplierId: this.selectRow.id,
+ purchaseTypeId: "2",
supplierName: this.selectRow.name
}
}
--
Gitblit v1.8.0